dhx-chart 9.2.2 → 9.2.3
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.
package/codebase/chart.min.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
3
|
|
|
4
|
-
dhtmlxChart v.9.2.
|
|
4
|
+
dhtmlxChart v.9.2.3 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
|
|
@@ -9,7 +9,7 @@ Please contact sales@dhtmlx.com. Usage without proper license is prohibited.
|
|
|
9
9
|
(c) XB Software.
|
|
10
10
|
|
|
11
11
|
*/
|
|
12
|
-
if(window.dhx&&(window.dhx_legacy=dhx,delete window.dhx),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.dhx=e():t.dhx=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/codebase/",n(n.s=34)}([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.getTextLines=e.getCloneObject=e.rgbToHex=e.getStringWidth=e.getMinArrayNumber=e.getMaxArrayNumber=e.isEmptyObj=e.isType=e.compare=e.debounce=e.downloadFile=e.isNumeric=e.range=e.isId=e.isDefined=e.wrapBox=e.unwrapBox=e.detectWidgetClick=e.singleOuterClick=e.isExistValue=e.findIndex=e.naturalSort=e.copy=e.extend=e.extendComponent=e.uid=void 0;var i=n(4),o=(new Date).valueOf();function a(t,e,n){"function"==typeof e[n]?t[n]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e[n].apply(e,t)}:Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){return e[n]=t},enumerable:!0,configurable:!0})}e.uid=function(){return"u"+o++},e.extendComponent=function(t,e){if(!e)return t;for(var n=0,r=Object.keys(e);n<r.length;n++){a(t,e,c=r[n])}for(var i=Object.getPrototypeOf(e);i&&i!==Object.prototype;){for(var o=0,s=Object.getOwnPropertyNames(i);o<s.length;o++){var c=s[o];t.hasOwnProperty(c)||a(t,e,c)}i=Object.getPrototypeOf(i)}return t},e.extend=function t(e,n,r){if(void 0===r&&(r=!0),n)for(var i in n){var o=n[i],a=e[i];void 0===o?delete e[i]:!r||"object"!=typeof a||a instanceof Date||a instanceof Array?e[i]=o:t(a,o)}return e},e.copy=function(t,e){var n={};for(var r in t)e&&r.startsWith("$")||(n[r]=t[r]);return n},e.naturalSort=function(t){return t.sort((function(t,e){return"string"==typeof t?t.localeCompare(e):t-e}))},e.findIndex=function(t,e){for(var n=t.length,r=0;r<n;r++)if(e(t[r]))return r;return-1},e.isExistValue=function(t,e){var n=e.toString(),r=t.toString();return!(n.length>r.length)&&r.toLowerCase().includes(n.toLowerCase())},e.singleOuterClick=function(t){var e=function(n){t(n)&&document.removeEventListener("click",e)};document.addEventListener("click",e)},e.detectWidgetClick=function(t,e){var n=function(n){return e((0,i.locate)(n,"data-dhx-widget-id")===t)};return document.addEventListener("click",n),function(){return document.removeEventListener("click",n)}},e.unwrapBox=function(t){return Array.isArray(t)?t[0]:t},e.wrapBox=function(t){return Array.isArray(t)?t:[t]},e.isDefined=function(t){return null!=t},e.isId=function(t){return"number"==typeof t||"string"==typeof t&&""!==t},e.range=function(t,e){if(t>e)return[];for(var n=[];t<=e;)n.push(t++);return n},e.isNumeric=function(t){return!isNaN(t-parseFloat(t))},e.downloadFile=function(t,e,n){void 0===n&&(n="text/plain");var r=new Blob([t],{type:n});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(r,e);else{var i=document.createElement("a"),o=URL.createObjectURL(r);i.href=o,i.download=e,document.body.appendChild(i),i.click(),setTimeout((function(){document.body.removeChild(i),window.URL.revokeObjectURL(o)}),0)}},e.debounce=function(t,e,n){var r;return function(){for(var i=this,o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=n&&!r;clearTimeout(r),r=setTimeout((function(){r=null,n||t.apply(i,o)}),e),s&&t.apply(this,o)}},e.compare=function t(e,n){for(var r in e){if(e.hasOwnProperty(r)!==n.hasOwnProperty(r))return!1;switch(typeof e[r]){case"object":if(!t(e[r],n[r]))return!1;break;case"function":if(void 0===n[r]||"compare"!==r&&e[r].toString()!==n[r].toString())return!1;break;default:if(e[r]!==n[r])return!1}}for(var r in n)if(!e.hasOwnProperty(r))return!1;return!0};e.isType=function(t){return((Object.prototype.toString.call(t).match(/^\[object (\S+?)\]$/)||[])[1]||"undefined").toLowerCase()};e.isEmptyObj=function(t){for(var e in t)return!1;return!0};e.getMaxArrayNumber=function(t){if(t.length){for(var e=-1/0,n=0,r=t.length;n<r;n++)t[n]>e&&(e=t[n]);return e}};e.getMinArrayNumber=function(t){if(t.length){for(var e=1/0,n=0,r=t.length;n<r;n++)t[n]<e&&(e=t[n]);return e}};e.getStringWidth=function(t,e){e=r({font:"normal 14px Roboto",lineHeight:20},e);var n=document.createElement("canvas"),o=n.getContext("2d");e.font&&(o.font=e.font);var a=o.measureText(t).width;return(0,i.isIE)()||n.remove(),a};e.rgbToHex=function(t){if("#"===t.substr(0,1))return t;if("rgb"===t.substr(0,3)){var e=/(.*?)rgb[a]?\((\d+), *(\d+), *(\d+),* *([\d+.]*)\)/.exec(t),n=parseInt(e[2],10).toString(16).padStart(2,"0"),r=parseInt(e[3],10).toString(16).padStart(2,"0"),i=parseInt(e[4],10).toString(16).padStart(2,"0");return"#".concat(n).concat(r).concat(i)}},e.getCloneObject=function t(e){if(!e)return e;var n=Array.isArray(e)?[]:{};for(var r in e){var i=e[r];i instanceof Date?n[r]=new Date(i):n[r]="object"==typeof i?t(i):i}return n};var s=function(t){var e=t.text;return t.ctx.measureText(e).width},c=function(t){for(var e=t.ctx,n=t.word,r=t.maxWidth,i=[],o="",a=0;a<n.length;a++)o+=n[a],s({text:o,ctx:e})>r&&(i.push(o.slice(0,-1)),o=n[a]);return o&&i.push(o),i};e.getTextLines=function(t){for(var e=t.ctx,n=t.text,r=t.maxWidth,i=n.split(" "),o="",a="",l=[],u=0;u<i.length;u++){var h=i[u];if(s({text:h,ctx:e})>r)for(var f=0,d=c({word:h,ctx:e,maxWidth:r});f<d.length;f++){var p=d[f];a+="".concat(p," "),s({text:a.trimEnd(),ctx:e})>r?(l.push(o.trimEnd()),o="".concat(p," "),a="".concat(p," ")):o+="".concat(p," ")}else a+="".concat(h," "),s({text:a.trimEnd(),ctx:e})>r&&u>0?(l.push(o.trimEnd()),o="".concat(h," "),a="".concat(h," ")):o+="".concat(h," ");u===i.length-1&&l.push(o.trimEnd())}return l}},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.getViewHeight=e.setTheme=e.awaitRedraw=e.resizeHandler=e.resizer=e.disableHelp=e.KEYED_LIST=e.inject=e.create=e.view=e.sv=e.el=void 0;var r=n(46),i=n(4);function o(t){var n=window.ResizeObserver,r=function(e){var n=e.el.offsetHeight,r=e.el.offsetWidth;t(r,n)};return n?(0,e.el)("div.dhx-resize-observer",{_hooks:{didInsert:function(t){new n((function(){return r(t)})).observe(t.el)}}}):(0,e.el)("iframe.dhx-resize-observer",{_hooks:{didInsert:function(t){t.el.contentWindow.onresize=function(){return r(t)},r(t)}}})}e.el=r.defineElement,e.sv=r.defineSvgElement,e.view=r.defineView,e.create=r.createView,e.inject=r.injectView,e.KEYED_LIST=r.KEYED_LIST,e.disableHelp=function(){r.DEVMODE.mutations=!1,r.DEVMODE.warnings=!1,r.DEVMODE.verbose=!1,r.DEVMODE.UNKEYED_INPUT=!1},e.resizer=o,e.resizeHandler=function(t,n){return(0,e.create)({render:function(){return o(n)}}).mount(t)},e.awaitRedraw=function(){return new t((function(t){requestAnimationFrame((function(){t()}))}))},e.setTheme=function(t,e){void 0===t&&(t="light");var n="data-dhx-theme";e||document.querySelectorAll("[".concat(n,"]")).forEach((function(t){return t.removeAttribute(n)})),e=e||document.documentElement,(0,i.toNode)(e).setAttribute(n,t)},e.getViewHeight=function(t,n){var r=(0,e.create)({render:function(){return(0,e.el)("div",{style:{position:"absolute",visibility:"hidden",width:n}},[t])}});r.mount(document.body);var i=r.node.el.offsetHeight;return r.unmount(),i}}).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.checkPositions=e.superposition=e.getSizesSVGText=e.getScales=e.getClassesForRotateScale=e.calcPointRef=e.verticalBottomText=e.verticalTopText=e.verticalCenteredText=e.roundToTwoNumAfterPoint=e.euclideanDistance=e.getRadialGradient=e.linearGradient=e.getFontStyle=e.getColorShade=e.getTextWidth=e.log10=e.locator=e.getDefaultColor=void 0;var i,o,a=n(1),s=["#2A9D8F","#78586F","#E76F51","#E5A910","#11A3D0","#985F99","#217B70","#BD9391","#9C89B8","#734B5E","#D66BA0","#5C5D8D"],c=["#237396","#2780A8","#3892A3","#4DA3A0","#67BF99"];function l(t){var e={};return function(n){return e[n]?e[n]:e[n]=t(n)}}e.getDefaultColor=function(t,e){return void 0===t&&(t=0),e?c[t]:s[t]},e.locator=function(t){return t?"string"==typeof t?function(e){return e[t]}:t:function(){return""}},e.log10=function(t){return Math.log(t)/Math.LN10},e.getTextWidth=(i=function(t,e){void 0===e&&(e="");var n=document.createElement("canvas").getContext("2d");return e&&(n.font=e),n.measureText(t).width},o={},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=o,r=0;r<t.length-1;r++)n[t[r]]=n[t[r]]||{},n=n[t[r]];var a=t.length-1;return n[a]?n[a]:n[a]=i.apply(void 0,t)});var u=l((function(t){var e=document.createElement("canvas").getContext("2d");e.fillStyle=t,e.fillRect(0,0,2,2);var n=e.getImageData(1,1,1,1).data;return[n[0],n[1],n[2]]}));function h(t,e){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}e.getColorShade=function(t,e){var n=u(t).map((function(t){return Math.floor(t*e+255*(1-e))})),r=n[0],i=n[1],o=n[2];return"rgb(".concat(r,",").concat(i,",").concat(o,")")},e.getFontStyle=l((function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("class","dhx_chart");var n=document.createElementNS("http://www.w3.org/2000/svg","text");n.setAttribute("class",t),e.setAttribute("visibility","hidden"),n.textContent="test",e.appendChild(n),document.body.appendChild(e);var r=getComputedStyle(n),i="".concat(r.fontSize," ").concat(r.fontFamily);return document.body.removeChild(e),i})),e.linearGradient=function(t,e){var n=t.stops.map((function(t){return(0,a.sv)("stop",{offset:"".concat(100*t.offset,"%"),"stop-color":t.color,"stop-opacity":t.opacity||1})}));return(0,a.sv)("linearGradient",{id:e,gradientTransform:"rotate(90)"},n)},e.getRadialGradient=function(t,e,n){var i=e.map((function(t){return(0,a.sv)("stop",{offset:t.offset,"stop-color":t.color,"stop-opacity":t.opacity||1})}));return(0,a.sv)("radialGradient",r({id:n,cx:0,cy:0,gradientUnits:"userSpaceOnUse"},t),i)},e.euclideanDistance=function(t,e,n,r){return Math.sqrt((t-n)*(t-n)+(e-r)*(e-r))},e.roundToTwoNumAfterPoint=function(t){return Math.round(100*(100*t+Number.EPSILON))/100},e.verticalCenteredText=function(t){return(0,a.sv)("tspan",{dy:"0.5ex",style:{pointerEvents:"none"}},t)},e.verticalTopText=function(t){return(0,a.sv)("tspan",{dy:"-0.5ex"},t)},e.verticalBottomText=function(t){return(0,a.sv)("tspan",{dy:"1.5ex"},t)},e.calcPointRef=function(t,e){return t+"_"+e},e.getClassesForRotateScale=function(t,e){var n="",r=[];switch("left"===t||"top"===t?r.push("start-text","end-text"):"right"!==t&&"bottom"!==t||r.push("end-text","start-text"),t){case"left":case"right":0===e?n=r[1]:e>0?180===e?n=r[0]:e>180?e<270?n=r[0]:e>270&&(n=r[1]):e<180&&(e>90?n=r[0]:e<90&&(n=r[1])):e<0&&(-180===e?n=r[0]:e<-180?e>-270?n=r[0]:e<-270&&(n=r[1]):e>-180&&(e<-90?n=r[0]:e>-90&&(n=r[1])));break;case"top":case"bottom":e>0?e>180?n=r[0]:e<180&&(n=r[1]):e<0&&(e>-180?n=r[0]:e<-180&&(n=r[1]))}return n},e.getScales=function(t){var e=[];for(var n in t){var r=t[n];(r.min||r.max||r.maxTicks||r.text||r.value)&&e.push(n)}return e},e.getSizesSVGText=function(t,n){var i=[];return n=r({font:"normal 14px Roboto",lineHeight:18},n),i.push((0,e.getTextWidth)(t,n.font)),i.push(n.lineHeight),i},e.superposition=h,e.checkPositions=function(t,e,n,r,i){if(h(t,e)){var o=i.right?e.y-t.y+t.height:e.y-e.height-t.y,a=i.text1.y+o;Math.abs(a)+i.dy>r&&(a=a>0?r+i.dy:-r+i.dy,i.changeSector=!i.changeSector);var s=Math.sqrt(Math.pow(n,2)-Math.pow((a-i.dy)*n/r,2));s=i.right?s:-s,i.changeSector&&(s*=-1,i.line*=-1,t.class=i.right?"pie-value end-text":"pie-value start-text"),i.text1.x=s,i.text1.y=a,i.text2.x=s,i.text2.y=a+16}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.splitCsv=e.throwMoveWarning=e.isOnlyPermanentFilters=e.hasJsonOrArrayStructure=e.isTreeCollection=e.copyWithoutInner=e.toDataDriver=e.toProxy=e.dhxError=e.dhxWarning=e.isDebug=e.findByConf=e.naturalCompare=e.isEqualObj=void 0;var r=n(0),i=n(8),o=n(22);function a(t){console.warn(t)}e.isEqualObj=function(t,e){for(var n in t)if(t[n]!==e[n]||Array.isArray(t[n]))return!1;return!0},e.naturalCompare=function(t,e){if(isNaN(t)||isNaN(e)){var n=[],r=[];for(t.replace(/(\d+)|(\D+)/g,(function(t,e,r){n.push([e||1/0,r||""])})),e.replace(/(\d+)|(\D+)/g,(function(t,e,n){r.push([e||1/0,n||""])}));n.length&&r.length;){var i=n.shift(),o=r.shift(),a=i[0]-o[0]||i[1].localeCompare(o[1]);if(a)return a}return n.length-r.length}return t-e},e.findByConf=function(t,e,n,r){if("function"==typeof e){if(e.call(this,t,n,r))return t}else if(e.by&&e.match&&t[e.by]===e.match)return t},e.isDebug=function(){var t=window.dhx;if(void 0!==t)return void 0!==t.debug&&t.debug},e.dhxWarning=a,e.dhxError=function(t){throw new Error(t)},e.toProxy=function(t){var e=typeof t;return"string"===e?new i.DataProxy(t):"object"===e?t:void 0},e.toDataDriver=function(t){if("string"==typeof t){var e=window.dhx,n=e&&e.dataDrivers||o.dataDrivers;if(n[t])return new n[t];console.warn("Incorrect data driver type:",t),console.warn("Available types:",JSON.stringify(Object.keys(n)))}else if("object"==typeof t)return t},e.copyWithoutInner=function(t,e){var n={};for(var r in t)r.startsWith("$")||e&&e[r]||(n[r]=t[r]);return n},e.isTreeCollection=function(t){return Boolean(t.getRoot)},e.hasJsonOrArrayStructure=function(t){if("object"==typeof t)return!0;if("string"!=typeof t)return!1;try{var e=JSON.parse(t);return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}catch(t){return!1}},e.isOnlyPermanentFilters=function(t){return!(!t||(0,r.isEmptyObj)(t))&&Object.keys(t).every((function(e){var n;return null===(n=t[e].config)||void 0===n?void 0:n.permanent}))},e.throwMoveWarning=function(t,e){return void 0===e&&(e=!0),a("item with ID ".concat(t," not ").concat(e?"moved":"found")),null},e.splitCsv=function(t,e){return t.trim().split(new RegExp("".concat(e,'(?=(?:[^"]*"[^"]*")*[^"]*$)')))}},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)};function i(t,e,n){for(void 0===e&&(e="data-dhx-id"),void 0===n&&(n="target"),t instanceof Event&&(t=t[n]);t;){if(t.getAttribute&&t.getAttribute(e))return t;t=t.parentNode}}Object.defineProperty(e,"__esModule",{value:!0}),e.getNodeOffset=e.getElementFromPoint=e.getPageLinksCss=e.getPageInlineCss=e.getLabelStyle=e.getPageCss=e.fitPosition=e.calculatePosition=e.getRealPosition=e.isFirefox=e.isSafari=e.isIE=e.getScrollbarHeight=e.getScrollbarWidth=e.getBox=e.locateNodeByClassName=e.locate=e.locateNode=e.eventHandler=e.toNode=void 0,e.toNode=function(t){var e;return"string"==typeof t?document.getElementById(t)||document.querySelector("[data-cell-id=".concat(t,"]"))||document.querySelector(t)||(null===(e=document.querySelector("[data-dhx-root-id=".concat(t,"]")))||void 0===e?void 0:e.parentElement)||document.body:t||document.body},e.eventHandler=function(t,e,n){var r=Object.keys(e);return function(i){var o=t(i);if(void 0!==o){var a=i.target;t:for(;a;){var s=a.getAttribute&&a.getAttribute("class")||"";if(s.length)for(var c=s.split(" "),l=0;l<r.length;l++)if(c.includes(r[l])){if(!1===e[r[l]](i,o)||i.cancelBubble)return!1;break t}a=a.parentNode}}return"function"==typeof n&&n(i),!0}},e.locateNode=i,e.locate=function(t,e){void 0===e&&(e="data-dhx-id");var n=i(t,e);return n?n.getAttribute(e):""},e.locateNodeByClassName=function(t,e){for(t instanceof Event&&(t=t.target);t;){if(e){if(t.classList&&t.classList.contains(e))return t}else if(t.getAttribute&&t.getAttribute("data-dhx-id"))return t;t=t.parentNode}},e.getBox=function(t){var e=t.getBoundingClientRect(),n=document.body,r=window.pageYOffset||n.scrollTop,i=window.pageXOffset||n.scrollLeft;return{top:e.top+r,left:e.left+i,right:n.offsetWidth-e.right,bottom:n.offsetHeight-e.bottom,width:e.right-e.left,height:e.bottom-e.top}};var o=-1;e.getScrollbarWidth=function(){if(o>-1)return o;var t=document.createElement("div");return document.body.appendChild(t),t.style.cssText="position: absolute;left: -99999px;overflow:scroll;width: 100px;height: 100px;",o=t.offsetWidth-t.clientWidth,document.body.removeChild(t),o};var a=-1;function s(t){var e=t.getBoundingClientRect();return{left:e.left+window.pageXOffset,right:e.right+window.pageXOffset,top:e.top+window.pageYOffset,bottom:e.bottom+window.pageYOffset}}function c(){return{rightBorder:window.pageXOffset+window.innerWidth,bottomBorder:window.pageYOffset+window.innerHeight}}function l(t,e){var n,i,o=c(),a=o.rightBorder,s=o.bottomBorder-t.bottom-e.height,l=t.top-e.height;if("bottom"===e.mode?s>=0?i=t.bottom:l>=0&&(i=l):l>=0?i=l:s>=0&&(i=t.bottom),s<0&&l<0){if(e.auto)return u(t,r(r({},e),{mode:"right",auto:!1}));i=s>l?t.bottom:l}if(e.centering)n=function(t,e,n){var r=(e-(t.right-t.left))/2,i=t.left-r,o=t.right+r;return i>=0&&o<=n?i:i<0?0:n-e}(t,e.width,a);else{var h=a-t.left-e.width,f=t.right-e.width;n=h>=0?t.left:f>=0?f:f>h?t.left:f}return{left:n,top:i}}function u(t,e){var n,i,o=c(),a=o.rightBorder,s=o.bottomBorder,u=a-t.right-e.width,h=t.left-e.width;if("right"===e.mode?u>=0?n=t.right:h>=0&&(n=h):h>=0?n=h:u>=0&&(n=t.right),h<0&&u<0){if(e.auto)return l(t,r(r({},e),{mode:"bottom",auto:!1}));n=h>u?h:t.right}if(e.centering)i=function(t,e,n){var r=(e-(t.bottom-t.top))/2,i=t.top-r,o=t.bottom+r;return i>=0&&o<=n?i:i<0?0:n-e}(t,e.height,s);else{var f=t.bottom-e.height,d=s-t.top-e.height;i=d>=0?t.top:f>0||f>d?f:t.top}return{left:n,top:i}}function h(t,e){var n="bottom"===e.mode||"top"===e.mode?l(t,e):u(t,e),r=n.left,i=n.top;return{left:Math.round(r)+"px",top:Math.round(i)+"px",minWidth:Math.round(e.width)+"px",position:"absolute"}}e.getScrollbarHeight=function(){if(a>-1)return a;var t=document.createElement("div");return document.body.appendChild(t),t.style.cssText="position: absolute;left: -99999px;overflow:scroll;width: 100px;height: 100px;",a=t.offsetHeight-t.clientHeight,document.body.removeChild(t),a},e.isIE=function(){var t=window.navigator.userAgent;return t.includes("MSIE ")||t.includes("Trident/")},e.isSafari=function(){var t=function(t){return t.test(window.navigator.userAgent)},e=t(/Chrome/),n=t(/Firefox/);return!e&&!n&&t(/Safari/)},e.isFirefox=function(){var t=function(t){return t.test(window.navigator.userAgent)},e=t(/Chrome/),n=t(/Safari/);return!e&&!n&&t(/Firefox/)},e.getRealPosition=s,e.calculatePosition=h,e.fitPosition=function(t,e){return h(s(t),e)},e.getPageCss=function(){for(var t=[],e=0;e<document.styleSheets.length;e++)for(var n=document.styleSheets[e],r=("cssRules"in n?n.cssRules:n.rules),i=0;i<r.length;i++){var o=r[i];"cssText"in o?t.push(o.cssText):t.push("".concat(o.selectorText," {\n").concat(o.style.cssText,"\n}\n"))}return t.join("\n")},e.getLabelStyle=function(t){var e=t.helpMessage,n=t.type,r=t.labelWidth,i=t.label,o=r&&r.toString().startsWith("0"),a="text"!==n&&t.required;return!!(e||a||!(!i||i&&o)||r&&!o)&&{style:(i||r)&&!o&&{width:r,"max-width":"100%"},label:i&&o?null:i}};var f=function(t){return t.href&&!t.href.startsWith(window.location.origin)};e.getPageInlineCss=function(){for(var t=[],e=0;e<document.styleSheets.length;e++){var n=document.styleSheets[e];if(!f(n))for(var r=("cssRules"in n&&n.cssRules.length?n.cssRules:n.rules),i=0;i<r.length;i++){var o=r[i];"cssText"in o?t.push(o.cssText):t.push("".concat(o.selectorText," {\n").concat(o.style.cssText,"\n}\n"))}}return t.join("\n")},e.getPageLinksCss=function(t){var e=[];if(t)t.forEach((function(t){return e.push('<link href="'.concat(t,'" rel="stylesheet"/>'))}));else for(var n=0;n<document.styleSheets.length;n++){var r=document.styleSheets[n];f(r)&&e.push('<link href="'.concat(r.href,'" rel="stylesheet"/>'))}return e.join("\n")},e.getElementFromPoint=function(t){var e,n,r=t.targetTouches?(null===(e=t.targetTouches[0])||void 0===e?void 0:e.clientX)||0:t.clientX,i=t.targetTouches?(null===(n=t.targetTouches[0])||void 0===n?void 0:n.clientY)||0:t.clientY,o=document.elementFromPoint(r,i);return(null==o?void 0:o.shadowRoot)?o.shadowRoot.elementFromPoint(r,i):o},e.getNodeOffset=function(t,e){var n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return{left:n.left-r.left,top:n.top-r.top}}},function(t,e,n){"use strict";var r,i,o,a;Object.defineProperty(e,"__esModule",{value:!0}),e.DataDriver=e.DragEvents=e.DataEvents=e.TreeFilterType=void 0,function(t){t.all="all",t.level="level",t.leafs="leafs"}(r||(e.TreeFilterType=r={})),function(t){t.afterAdd="afteradd",t.beforeAdd="beforeadd",t.removeAll="removeall",t.beforeRemove="beforeremove",t.afterRemove="afterremove",t.change="change",t.filter="filter",t.dataRequest="dataRequest",t.load="load",t.loadError="loaderror",t.beforeLazyLoad="beforelazyload",t.afterLazyLoad="afterlazyload",t.beforeItemLoad="beforeItemLoad",t.afterItemLoad="afterItemLoad",t.beforeGroup="beforeGroup",t.afterGroup="afterGroup",t.beforeUnGroup="beforeUnGroup",t.afterUnGroup="afterUnGroup"}(i||(e.DataEvents=i={})),function(t){t.beforeDrag="beforeDrag",t.dragStart="dragStart",t.dragOut="dragOut",t.dragIn="dragIn",t.canDrop="canDrop",t.cancelDrop="cancelDrop",t.beforeDrop="beforeDrop",t.afterDrop="afterDrop",t.afterDrag="afterDrag"}(o||(e.DragEvents=o={})),function(t){t.json="json",t.csv="csv",t.xml="xml"}(a||(e.DataDriver=a={}))},function(t,e,n){(function(e,n){!function(){e="undefined"!=typeof window?window:this;var r=1,i={},o=!1;function a(t){e.setImmediate?n(t):e.importScripts?setTimeout(t):(r++,i[r]=t,e.postMessage(r,"*"))}function s(t){"use strict";if("function"!=typeof t&&null!=t)throw TypeError();if("object"!=typeof this||this&&this.then)throw TypeError();var e,n,r=this,i=0,o=0,c=[];r.promise=r,r.resolve=function(t){return e=r.fn,n=r.er,i||(o=t,i=1,a(h)),r},r.reject=function(t){return e=r.fn,n=r.er,i||(o=t,i=2,a(h)),r},r._d=1,r.then=function(t,e){if(1!=this._d)throw TypeError();var n=new s;return n.fn=t,n.er=e,3==i?n.resolve(o):4==i?n.reject(o):c.push(n),n},r.catch=function(t){return r.then(null,t)};var l=function(t){i=t||4,c.map((function(t){3==i&&t.resolve(o)||t.reject(o)}))};try{"function"==typeof t&&t(r.resolve,r.reject)}catch(t){r.reject(t)}return r;function u(t,e,n,r){if(2==i)return r();if("object"!=typeof o&&"function"!=typeof o||"function"!=typeof t)r();else try{var a=0;t.call(o,(function(t){a++||(o=t,e())}),(function(t){a++||(o=t,n())}))}catch(t){o=t,n()}}function h(){var t;try{t=o&&o.then}catch(t){return o=t,i=2,h()}u(t,(function(){i=1,h()}),(function(){i=2,h()}),(function(){try{1==i&&"function"==typeof e?o=e(o):2==i&&"function"==typeof n&&(o=n(o),i=1)}catch(t){return o=t,l()}o==r?(o=TypeError(),l()):u(t,(function(){l(3)}),l,(function(){l(1==i&&3)}))}))}}e.setImmediate||e.addEventListener("message",(function(t){if(t.source==e)if(o)a(i[t.data]);else{o=!0;try{i[t.data]()}catch(t){}delete i[t.data],o=!1}})),s.resolve=function(t){if(1!=this._d)throw TypeError();return t instanceof s?t:new s((function(e){e(t)}))},s.reject=function(t){if(1!=this._d)throw TypeError();return new s((function(e,n){n(t)}))},s.all=function(t){if(1!=this._d)throw TypeError();if(!(t instanceof Array))return s.reject(TypeError());var e=new s;return function n(r,i){if(i)return e.resolve(i);if(r)return e.reject(r);0==t.reduce((function(t,e){return e&&e.then?t+1:t}),0)&&e.resolve(t),t.map((function(e,r){e&&e.then&&e.then((function(e){return t[r]=e,n(),e}),n)}))}(),e},s.race=function(t){if(1!=this._d)throw TypeError();if(!(t instanceof Array))return s.reject(TypeError());if(0==t.length)return new s;var e=new s;return function n(r,i){if(i)return e.resolve(i);if(r)return e.reject(r);0==t.reduce((function(t,e){return e&&e.then?t+1:t}),0)&&e.resolve(t),t.map((function(t,e){t&&t.then&&t.then((function(t){n(null,t)}),n)}))}(),e},s._d=1,t.exports=s}()}).call(this,n(12),n(43).setImmediate)},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(5),e),i(n(21),e),i(n(51),e),i(n(52),e),i(n(8),e),i(n(54),e),i(n(3),e),i(n(15),e),i(n(23),e),i(n(55),e),i(n(22),e),i(n(14),e),i(n(25),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DataProxy=void 0;var r=n(14),i=function(){function t(t,e){void 0===e&&(e={}),this.url=this._url=t,this.config=e}return t.prototype.updateUrl=function(t,e){for(var n in void 0===e&&(e={}),this._url=this.url=t||this._url,this.url+=this.url.includes("?")?"&":"?",e)this.config[n]=e[n],this.url+="".concat(n,"=").concat(encodeURIComponent(e[n]),"&");this.url=this.url.slice(0,-1)},t.prototype.load=function(){return r.ajax.get(this.url,void 0,this.config)},t.prototype.save=function(t,e){switch(e){case"delete":return r.ajax.delete(this.url,t,this.config);case"update":return r.ajax.put(this.url,t,this.config);default:return r.ajax.post(this.url,t,this.config)}},t}();e.DataProxy=i},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.ChartEvents=void 0,function(t){t.toggleSeries="toggleSeries",t.chartMouseMove="chartMouseMove",t.chartMouseLeave="chartMouseLeave",t.resize="resize",t.serieClick="serieClick",t.seriaMouseMove="seriaMouseMove",t.seriaMouseLeave="seriaMouseLeave"}(r||(e.ChartEvents=r={}))},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.radarScale=e.pieLikeHandlers=e.shiftCoordinates=e.getCoordinates=void 0;var i=n(1),o=n(2);function a(t,e,n,r){return r&&(t+=2*e*Math.asin(.5*r/e)/(2*Math.PI*e)),[Math.cos(2*Math.PI*t)*e,Math.sin(2*Math.PI*t)*n]}function s(t,e,n){t.setAttribute("transform","translate(".concat(e,", ").concat(n,") scale(1.05)")),t.classList.add("dhx_pie-transform-delay")}function c(t){t.setAttribute("transform","translate(0, 0)"),t.classList.remove("dhx_pie-transform-delay")}function l(t,e){var n=1e-6;return t-n<e&&t+n>e}function u(t,e){return"M".concat(-t,",0A").concat(t,",").concat(t," 0 ").concat(e?0:1," 1 ").concat(t,",0A").concat(t,",").concat(t," 0 ").concat(e?0:1," 1 ").concat(-t,",0")}e.getCoordinates=a,e.shiftCoordinates=function(t,e,n){return[t[0]+e,t[1]+n]},e.pieLikeHandlers={onmouseover:function(t,e,n,r){var i=r.parent.attrs.id;s(r.el,t,e),r.parent.body.forEach((function(n){n.attrs.id!=="".concat(i,"-text")&&n.attrs.id!=="".concat(i,"-connector")||s(n.el,t,e)}))},onmouseout:function(t,e){var n=e.parent.attrs.id;c(e.el),e.parent.body.forEach((function(t){t.attrs.id!=="".concat(n,"-text")&&t.attrs.id!=="".concat(n,"-connector")||c(t.el)}))}},e.radarScale=function(t,e,n){var s;s=n>e?e/2:n/2;var c=1/t.scales.length,h=c>.5?1:0,f=[],d=function(t,e){return(0,i.sv)("circle",{cx:0,cy:0,r:t,fill:e,stroke:"none",class:"background-circle"})}(s,"#fafafa");f.push(d);for(var p,v=-.25,g=[],_=t.axis,y="radar-grid ".concat(t.zebra?"zebra":""),m=1;m<_.length;m+=2){var x=s*_[m-1],b=s*_[m],w="".concat(u(x,!0)," ").concat(u(b,!1)),O=(0,i.sv)("path",{d:w,fill:"none",stroke:"black",class:y});g.push(O)}if(f.push(g),t.scales.forEach((function(t){var e=a(v,s,s),n=e[0],r=e[1],u=v+c,d=a(u,s,s),p=d[0],g=d[1],_="M ".concat(n," ").concat(r," A ").concat(s," ").concat(s," 0 ").concat(h," 1 ").concat(p," ").concat(g," L 0 0"),y=(0,i.sv)("path",{d:_,stroke:"black",fill:"none",class:"radar-scale"});f.push(y);var m=[8,8],x=m[0],b=m[1],w=l(v,0)||l(v,.5)?0:v<0||v>.5?-x:x,O=l(v,-.25)||l(v,.25)?0:v<-.25||v>.25?-b:b;if(l(v,-.25)||l(v,.25)){var D=l(v,-.25)?o.verticalTopText:o.verticalBottomText,S=(0,i.sv)("text",{x:n+O,y:r+w,class:"scale-text"},[D(t)]);f.push(S)}else{var T=v>=-.25&&v<=.25?"start-text scale-text":"end-text scale-text";S=(0,i.sv)("text",{x:n+O,y:r+w,class:T},[(0,o.verticalCenteredText)(t)]);f.push(S)}v=u})),v=-.25,t.realAxis){var D=t.realAxis.map((function(t,e){var n=a(-.25,s*_[e],s*_[e]),r=n[0],c=n[1];return(0,i.sv)("text",{x:r,y:c,dx:-10,class:"radar-axis-text"},[(0,o.verticalCenteredText)(t.toString())])}));f.push(D)}return(0,i.sv)("g",r({transform:"translate(".concat(e/2,", ").concat(n/2,")")},(p=t.attribute,{"aria-label":"x-axis".concat(p?", "+p:"")})),f)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(9),o=n(2),a=n(28),s=n(29),c=function(){function t(t,e,n){var o=this;this._data=t,this._handlers={onclick:function(t,e){return o._events.fire(i.ChartEvents.serieClick,[t,e])},onmousemove:function(t,e,n){return o._events.fire(i.ChartEvents.seriaMouseMove,[t,e,n])},onmouseleave:function(t,e){return o._events.fire(i.ChartEvents.seriaMouseLeave,[t,e])}},this.id=e.id=e.id||(0,r.uid)(),this._events=n,this._points=[],this._setDefaults(e)}return t.prototype.toggle=function(){this.config.active=!this.config.active},t.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[0],o[1]);n[0]>a&&(n[0]=a,n[1]=o[0],n[2]=o[1],n[3]=o[2])}return n},t.prototype.getClosestVertical=function(t){for(var e=[1/0,null,null,null,null],n=0,r=this._points;n<r.length;n++){var i=r[n],o=Math.abs(i[0]-t);e[0]>o&&(e[0]=o,e[1]=i[0],e[2]=i[1],e[3]=i[2],e[4]=i[4])}return e},t.prototype.getTooltipType=function(t){return"top"},t.prototype.getTooltipText=function(t){if((this._data.getItem(t)||"calendarHeatMap"===this.config.type)&&this.config.tooltip){var e=void 0,n=void 0;if("calendarHeatMap"===this.config.type){if(n=this._points.find((function(e){return e[2]===t.toString()}))){var r=new Date;r.setTime(n[0]),n=[(0,s.getFormattedDate)(this.config.dateFormat,r),n[1]]}}else e=this._defaultLocator(this._data.getItem(t));return this.config.tooltipTemplate?this.config.tooltipTemplate(e||n):e?e[0]:"".concat(n[1],", <br>").concat(n[0])}},t.prototype.dataReady=function(t){return this._points=[]},t.prototype.paint=function(t,e){return this._calckFinalPoints(t,e)},t.prototype.getPoints=function(){return this._points},t.prototype.addScale=function(t,e){},t.prototype._getClosestDist=function(t,e,n,r){return(0,o.euclideanDistance)(t,e,n,r)},t.prototype._calckFinalPoints=function(t,e){},t.prototype._setDefaults=function(t){this.config=t},t.prototype._defaultLocator=function(t){return[null,null]},t.prototype._getPointType=function(t,e){return(0,a.getShadeHelper)(t,e)},t}();e.default=c},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EventsMixin=e.EventSystem=void 0;var r=function(){function t(t){this.events={},this.context=t||this}return t.prototype.on=function(t,e,n){var r=t.toLowerCase();this.events[r]=this.events[r]||[],this.events[r].push({callback:e,context:n||this.context})},t.prototype.detach=function(t,e){var n=t.toLowerCase(),r=this.events[n];if(e&&r&&r.length)for(var i=r.length-1;i>=0;i--)r[i].context===e&&r.splice(i,1);else this.events[n]=[]},t.prototype.fire=function(t,e){void 0===e&&(e=[]);var n=t.toLowerCase();return!this.events[n]||!this.events[n].map((function(t){return t.callback.apply(t.context,e)})).includes(!1)},t.prototype.clear=function(){this.events={}},t}();e.EventSystem=r,e.EventsMixin=function(t){var e=new r(t=t||{});t.detachEvent=e.detach.bind(e),t.attachEvent=e.on.bind(e),t.callEvent=e.fire.bind(e)}},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.ajax=void 0;var r=n(5),i=n(3);function o(t){return t?t.includes("json")?"json":t.includes("xml")?"xml":"text":"text"}function a(e,n,a,s,c){var l=s||{};if(c&&(l.Accept="application/"+c),"GET"!==a&&(l["Content-Type"]=l["Content-Type"]||"application/json"),"GET"===a){var u=n&&"object"==typeof n?function(t){return Object.keys(t).reduce((function(e,n){var r="object"==typeof t[n]?JSON.stringify(t[n]):t[n];return e.push(n+"="+encodeURIComponent(r)),e}),[]).join("&")}(n):n&&"string"==typeof n?n:"";u&&(e+=e.includes("?")?"&":"?",e+=u),n=null}return window.fetch?("application/json"===l["Content-Type"]&&n&&"object"==typeof n&&(n=JSON.stringify(n)),window.fetch(e,{method:a,body:n||null,headers:l}).then((function(e){if(!e.ok)return e.text().then((function(n){return t.reject({status:e.status,statusText:e.statusText,message:n})}));var n=c||o(e.headers.get("Content-Type"));if("raw"===n)return{headers:Object.fromEntries(e.headers.entries()),url:e.url,body:e.body};if(204!==e.status)switch(n){case"json":return e.json();case"xml":var a=(0,i.toDataDriver)(r.DataDriver.xml);return a?e.text().then((function(t){return a.toJsonObject(t)})):e.text();default:return e.text()}}))):new t((function(t,s){var u=new XMLHttpRequest;for(var h in u.onload=function(){u.status>=200&&u.status<300?("raw"===c&&t({url:u.responseURL,headers:u.getAllResponseHeaders().trim().split(/[\r\n]+/).reduce((function(t,e){var n=e.split(": ");return t[n[0]]=n[1],t}),{}),body:u.response}),204===u.status?t():t(function(t,e){switch(e){case"json":return JSON.parse(t);case"text":default:return t;case"xml":var n=(0,i.toDataDriver)(r.DataDriver.xml);return n?n.toJsonObject(t):{parseError:"Incorrect data driver type: 'xml'"}}}(u.responseText,c||o(u.getResponseHeader("Content-Type"))))):s({status:u.status,statusText:u.statusText})},u.onerror=function(){s({status:u.status,statusText:u.statusText,message:u.responseText})},u.open(a,e),l)u.setRequestHeader(h,l[h]);switch(a){case"POST":case"DELETE":case"PUT":u.send(void 0!==n?JSON.stringify(n):"");break;default:u.send()}}))}e.ajax={get:function(t,e,n){return a(t,e,"GET",n&&n.headers,void 0!==n?n.responseType:void 0)},post:function(t,e,n){return a(t,e,"POST",n&&n.headers,void 0!==n?n.responseType:void 0)},put:function(t,e,n){return a(t,e,"PUT",n&&n.headers,void 0!==n?n.responseType:void 0)},delete:function(t,e,n){return a(t,e,"DELETE",n&&n.headers,void 0!==n?n.responseType:void 0)}}}).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.CsvDriver=void 0;var i=n(3),o=function(){function t(t){this.config=r(r({},{skipHeader:0,nameByHeader:!1,rowDelimiter:"\n",columnDelimiter:","}),t),this.config.nameByHeader&&(this.config.skipHeader=1)}return t.prototype.getFields=function(t,e){for(var n=(0,i.splitCsv)(t,this.config.columnDelimiter).map((function(t){return t.replace(/^"(.*)"$/s,"$1").replace(/""/g,'"')})),r={},o=0;o<n.length;o++)r[e?e[o]:o+1]=isNaN(Number(n[o]))?n[o]:parseFloat(n[o]);return r},t.prototype.getRows=function(t){return(0,i.splitCsv)(t,this.config.rowDelimiter)},t.prototype.toJsonArray=function(t){var e=this,n=this.getRows(t),r=this.config.names;if(this.config.skipHeader){var i=n.splice(0,this.config.skipHeader);this.config.nameByHeader&&(r=i[0].trim().split(this.config.columnDelimiter))}return n.map((function(t){return e.getFields(t,r)}))},t.prototype.serialize=function(t,e){var n=t[0]?Object.keys(t[0]).filter((function(t){return!t.startsWith("$")})).join(this.config.columnDelimiter)+this.config.rowDelimiter:"",r=this._serialize(t);return e?r:n+r},t.prototype._serialize=function(t){var e=this;return t.reduce((function(t,n){var r=Object.keys(n),i=r.reduce((function(t,i,o){var a,s;if(i.startsWith("$")||"items"===i)return t;var c=null!==(s=null===(a=n[i])||void 0===a?void 0:a.toString())&&void 0!==s?s:"";return t+(new RegExp("[".concat(e.config.columnDelimiter,'"\n]')).test(c)?'"'.concat(c.replace(/"/g,'""').replace(/\n/g,"\\n"),'"'):c)+(o===r.length-1||r[o+1].startsWith("$")?"":e.config.columnDelimiter)}),"");return n.items?"".concat(t).concat(t?"\n":"").concat(i).concat(e._serialize(n.items)):"".concat(t).concat(t?e.config.rowDelimiter:"").concat(i)}),"")},t}();e.CsvDriver=o},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.Scale=void 0;var i=n(65),o=n(26),a=n(2),s={left:o.left,right:o.right,bottom:o.bottom,top:o.top},c={left:o.leftGrid,right:o.rightGrid,bottom:o.bottomGrid,top:o.topGrid},l=function(){function t(t,e,n){this._data=t,this._padding=!1,this._charts=[],this._position=n,this._setDefaults(e),this._isXDirection="bottom"===n||"top"===n,"radial"!==n&&(this.config.size="left"===n||"right"===n?this.config.size||40+(this.config.title?40:0):this.config.size||20+(this.config.title?40:0))}return t.prototype.addPadding=function(){this._padding=!0},t.prototype.getSize=function(){return this.config.size},t.prototype.scaleReady=function(t){var e=[];this._charts.forEach((function(t){t.getPoints().forEach((function(t){return e.push(t[1])}))})),this._axis=new i.AxisCreator(e,this.config).getScale();var n=this._position;"radial"!==n&&(t[n]+=this.config.size)},t.prototype.point=function(t){return this.config.log?this._logPoint(t):this._isXDirection?(t-this._axis.min)/(this._axis.max-this._axis.min):1-(t-this._axis.min)/(this._axis.max-this._axis.min)},t.prototype.add=function(t){this._charts.push(t)},t.prototype.paint=function(t,e){var n=this;if(this.config.hidden)return null;var r=this._axis.steps.map((function(r){return[n._isXDirection?n.point(r)*t:n.point(r)*e,r]}));return 0===r.length&&"left"===this._position&&(r=[[0,0]]),s[this._position](r,this.config,t,e)},t.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),l=function(e,n){return t._axis.steps.map((function(r){return[t._isXDirection?t.point(r)*e:t.point(r)*n,r]}))}(o,a),u=t.point(t.config.targetValue),h={targetLine:s,dashed:r,grid:n,targetValue:u,hidden:i};return c[e](l,o,a,h)}}},t.prototype._setDefaults=function(t){t.locator&&(this.locator=(0,a.locator)(t.locator)),this.config=r(r({},{scalePadding:20,textPadding:11,grid:!0,targetLine:null,showText:!0}),t)},t.prototype._logPoint=function(t){var e,n=Math.abs(t)/t,r=this._axis.steps,i=r.length-1,o=r.indexOf(t);-1!==o?e=o/i:e=((this._axis.min<0?r.indexOf(0):0)+n*(0,a.log10)(Math.abs(t)))/i;return this._isXDirection?e:1-e},t}();e.Scale=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)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),a=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=e.locator):(this.yScale=e,this._yLocator=(0,o.locator)(this.config.value))},e.prototype.paint=function(e,n){t.prototype.paint.call(this,e,n)},e.prototype.dataReady=function(t){var e=this;return this.config.active?(this._points=this._data.map((function(n,r){var i=e._xLocator(n),o=e._yLocator(n)||0,a=[i,o,n.id,i,o];return t&&(a[1]+=t[r][1]),a})),this._points):this._points=[]},e.prototype._calckFinalPoints=function(t,e){var n=this;this._points.forEach((function(r,i){r[0]=n.xScale.point(r[0])*t||0;var o=n.yScale.point(r[1])*e;r[1]=isNaN(o)?"xbar"===n.config.type?0:e:o}))},e.prototype._defaultLocator=function(t){return[this._yLocator(t),this._xLocator(t)]},e.prototype._getCss=function(){return"chart ".concat(this.config.type," ").concat(this.config.css||""," ").concat(this.config.dashed?"dash-line":"")},e}(n(11).default);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)}),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(2),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._center=[0,0],e._tooltipData=[],e}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=this,e=this._data;return this._sum=e.reduce((function(e,n){return n.$hidden?e:e+parseFloat(t._valueLocator(n))}),0),this._points=e.reduce((function(e,n,r){if(n.$hidden)return e;var i=t._textLocator(n),o=t._valueLocator(n),s=o/t._sum,c=t._colorLocator?t._colorLocator(n):(0,a.getDefaultColor)(r);return e.push([s,o,n.id,i,c]),e}),[]),this._points},e.prototype.toggle=function(t){var e=this._data.getItem(t);e&&this._data.update(t,{$hidden:!e.$hidden})},e.prototype.getClosest=function(t,e){for(var n=1-(Math.atan2(t-this._center[0],e-this._center[1])+Math.PI)/Math.PI/2,r=this._points,i=0;i<r.length;i++){if(r[i][0]>=n)return[0,this._tooltipData[i][0],this._tooltipData[i][1],r[i][2]];n-=r[i][0]}return[1/0,null,null,null]},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[0]}},e.prototype.getTooltipType=function(t){return"simple"},e.prototype._setDefaults=function(t){var e=this,n={subType:"basic",paddings:t.useLines?70:50};this.config=o(o({},n),t),this._drawPointType=this._getPointType("empty","none"),this._valueLocator=(0,a.locator)(t.value),this._textLocator=(0,a.locator)(t.text),t.color?this._colorLocator=(0,a.locator)(t.color):t.monochrome&&(this._colorLocator=function(n){return(0,a.getColorShade)(t.monochrome,2*e._getPercent(n))})},e.prototype._defaultLocator=function(t){return[this._valueLocator(t),this._textLocator(t)]},e.prototype._getPercent=function(t){return parseFloat(this._valueLocator(t))/this._sum},e}(n(11).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(1),s=n(2),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.paint=function(e,n){var r=this;t.prototype.paint.call(this,e,n);var i,c=this.config.pointColor||this.config.color,l=[];if(this.config.strokeWidth&&l.push(this._getForm(this._points,this.config,e,n)),this.config.pointType){var u=this._getPointType(this.config.pointType,c);l=l.concat(this._points.map((function(t){return u(t[0],t[1],(0,s.calcPointRef)(t[2],r.id))})).map((function(t,e){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[3]," y=").concat(n[4]):"",tabindex:0}}(t.key,r._points)),r.config.tooltip&&(t.attrs.onmousemove=[r._handlers.onmousemove,r._points[e][2],r.id],t.attrs.onmouseleave=[r._handlers.onmouseleave,r._points[e][2],r.id],t.attrs.onclick=[r._handlers.onmousemove,r._points[e][2],r.id])),t})))}return(0,a.sv)("g",o(o({class:"seria",_key:this.id},(i=this.config,{"aria-label":"chart ".concat(i.value||"")})),{tabindex:0}),l)},e.prototype._getForm=function(t,e,n,r){var i=t.map((function(t,e){return(e?"L":"M")+"".concat(t[0]," ").concat(t[1])})).join(" ");return(0,a.sv)("path",{id:"seria"+e.id,d:i,stroke:e.color,class:this._getCss(),"stroke-width":this.config.strokeWidth,fill:"none"})},e.prototype._setDefaults=function(t){this.config=o(o({},{alpha:1,strokeWidth:2,active:!0,tooltip:!0}),t)},e}(n(17).default);e.default=c},function(t,e,n){"use strict";var r,i,o;Object.defineProperty(e,"__esModule",{value:!0}),e.MessageContainerPosition=e.Position=e.RealPosition=void 0,function(t){t.left="left",t.right="right",t.top="top",t.bottom="bottom",t.center="center"}(r||(e.RealPosition=r={})),function(t){t.right="right",t.bottom="bottom",t.center="center",t.left="left",t.top="top"}(i||(e.Position=i={})),function(t){t.topLeft="top-left",t.topRight="top-right",t.bottomLeft="bottom-left",t.bottomRight="bottom-right"}(o||(e.MessageContainerPosition=o={}))},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.DataCollection=void 0;var o=n(13),a=n(47),s=n(49),c=n(8),l=n(3),u=n(5),h=n(0),f=n(50),d=n(15),p=n(24),v=function(){function t(t,e){var n=this;this._filters={},this._sortingStates=[],this._changes={order:[]},this.config=t||{},this._group=new f.Group,this._sort=new s.Sort,this._loader=new a.Loader(this,this._changes),this.events=e||new o.EventSystem(this),this.events.on(u.DataEvents.dataRequest,(function(t,e){var r=n.dataProxy;r&&r.updateUrl&&(r.updateUrl(null,{from:t,limit:r.config.limit||e-t}),n.load(r))})),this.events.on(u.DataEvents.loadError,(function(t){setTimeout((function(){"string"!=typeof t?(0,l.dhxError)(t):(0,l.dhxWarning)(t)}),0)})),this._reset()}return t.prototype._reset=function(t){void 0===t&&(t={}),t.grouping||this.ungroup(),this._order=[],this._pull={},this._changes={order:[]},this._initFilterOrder=this._initSortOrder=null,this._meta=new WeakMap,this._loaded=!1},t.prototype.group=function(t,e){void 0===e&&(e={}),t||(0,l.dhxError)("The group method has mandatory arguments"),Array.isArray(t)||(0,l.dhxError)("The group method expects an array as an argument"),t.length||(0,l.dhxError)("The array with the group method values cannot be empty"),this.isGrouped()&&this.ungroup();var n=this._group.getGroupConfig(e);this.events.fire(u.DataEvents.beforeGroup,[n])&&(this._parse(this._group.group(t,(null==e?void 0:e.data)||this._order,e),u.DataDriver.json,!0),this.events.fire(u.DataEvents.afterGroup,[this._group.getGroupedFields(),n]))},t.prototype.ungroup=function(){if(this.isGrouped()){var t=this._group.getGroupedFields(),e=this._group.getGroupConfig();this.events.fire(u.DataEvents.beforeUnGroup,[t,e])&&(this._parse(this._group.ungroup(this._order)),this.events.fire(u.DataEvents.afterUnGroup,[t,e]))}},t.prototype.isGrouped=function(){return this._group.isGrouped()},t.prototype.add=function(t,e){var n,r=this;if(this.events.fire(u.DataEvents.beforeAdd,[t]))return n=Array.isArray(t)?t.map((function(t,n){return 0!==n&&e>=0&&(e+=1),r._add((0,h.copy)(t),e)})):this._add((0,h.copy)(t),e),this._reapplyFilters(),n},t.prototype.remove=function(t){var e=this;t instanceof Array?i([],t,!0).map((function(t){e._remove(t)})):(0,h.isId)(t)&&this._remove(t)},t.prototype.removeAll=function(){this._reset(),this.events.fire(u.DataEvents.removeAll),this.events.fire(u.DataEvents.change)},t.prototype.exists=function(t){return!!this._pull[t]},t.prototype.getNearId=function(t){var e;if(!this._pull[t])return(null===(e=this._order[0])||void 0===e?void 0:e.id)||""},t.prototype.getItem=function(t){return this._pull[t]},t.prototype.update=function(t,e,n){var r=this.getItem(t);if(r){if((0,l.isEqualObj)(e,r))return;(0,h.isId)(e.id)&&t!==e.id?((0,l.dhxWarning)("this method doesn't allow changing the id"),(0,l.isDebug)()):(e.parent&&r.parent&&e.parent!==r.parent&&this.move(t,-1,this,e.parent),(0,h.extend)(this._pull[t],e,!1),this.config.update&&this.config.update(this._pull[t]),n||this._onChange("update",t,this._pull[t])),this._reapplyFilters()}else(0,l.dhxWarning)("item not found")},t.prototype.getIndex=function(t){return(0,h.isId)(t)&&(0,h.isDefined)(this._pull[t])?this._order.findIndex((function(e){return(null==e?void 0:e.id)==t})):-1},t.prototype.getId=function(t){if(this._order[t])return this._order[t].id},t.prototype.getLength=function(){return this._order.length},t.prototype.isDataLoaded=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=this._order.length),(0,h.isNumeric)(t)&&(0,h.isNumeric)(e)?0===this._order.slice(t,e).filter((function(t){return t&&t.$empty})).length:(this._loaded||(this._loaded=!this.find((function(t){return t.$empty}))),!!this._loaded)},t.prototype.filter=function(t,e,n){var r,i;if((null==e?void 0:e.$restore)&&(t=this._normalizeFilters(t||this._filters)),!(null==e?void 0:e.add)&&(this._order=this._initFilterOrder||this._order,this._initFilterOrder=null,!(null==e?void 0:e.$restore)))for(var o in this._filters){var a=this._filters[o];(null===(r=a.config)||void 0===r?void 0:r.permanent)?this._applyFilters(a.rule):delete this._filters[o]}if(t&&!(null==e?void 0:e.$restore)&&(i=(null==e?void 0:e.id)||(0,h.uid)(),this._filters[i]={rule:t,config:e||{}}),t&&"function"!=typeof t)if((0,h.isDefined)(t.by))this._applyFilters(t);else for(var o in t)this._applyFilters(t[o]);else this._applyFilters(t);if(!n){var s=this._getPureFilters(this._filters);this.events.fire(u.DataEvents.filter,[(0,h.isEmptyObj)(s)?null:s])}return i},t.prototype.resetFilter=function(t,e){var n,r=t||{},i=r.id,o=r.permanent;if((0,h.isEmptyObj)(t))for(var a in this._filters)(null===(n=this._filters[a].config)||void 0===n?void 0:n.permanent)||delete this._filters[a];else o?this._filters={}:i&&delete this._filters[i];return this.filter(null,{$restore:!0},e),(0,h.isEmptyObj)(this._getPureFilters(this._filters))},t.prototype.getFilters=function(t){var e=this.getRawFilters(t),n=e?this._getPureFilters(e):{};return(0,h.isEmptyObj)(n)?null:n},t.prototype.getRawFilters=function(t){var e=this._filters;return(null==t?void 0:t.permanent)&&(e=Object.keys(e).reduce((function(t,n){var r;return(null===(r=e[n].config)||void 0===r?void 0:r.permanent)&&(t[n]=e[n]),t}),{})),(0,h.isEmptyObj)(e)?null:e},t.prototype.find=function(t){for(var e=this._initFilterOrder||this._order,n=0;n<e.length;n++){var r=(0,l.findByConf)(e[n],t,n,e);if(r)return r}return null},t.prototype.findAll=function(t){for(var e=this._initFilterOrder||this._order,n=[],r=0;r<e.length;r++){var i=(0,l.findByConf)(e[r],t,r,e);i&&n.push(i)}return n},t.prototype.sort=function(t,e,n){var o,a;if(void 0===n&&(n=!1),this.isDataLoaded()){if((null==e?void 0:e.smartSorting)&&(this._sorter=t),n||this._sortingStates.length&&!(null==e?void 0:e.smartSorting)&&((null===(o=this._sortingStates[0])||void 0===o?void 0:o.smartSorting)||(null==e?void 0:e.smartSorting))||(this._sortingStates=[r(r({},t),e)]),t){if(!n&&(this._initSortOrder=this._initSortOrder||i([],this._initFilterOrder||this._order,!0),!(null==e?void 0:e.smartSorting)&&(null===(a=this._sortingStates[0])||void 0===a?void 0:a.smartSorting))){var s=this._sortingStates.findIndex((function(e){return e.by==t.by}));-1!==s?this._sortingStates[s].dir=t.dir:this._sortingStates.push(t)}this._applySorters()}else this._initSortOrder&&(this._sortingStates=[],this._order=this._initSortOrder,this._sorter=this._initSortOrder=null,this._initFilterOrder&&(this._initFilterOrder=null,this.filter(null,{$restore:!0},!0)));n||this.events.fire(u.DataEvents.change,[void 0,"sort",t])}else(0,l.dhxWarning)("the method doesn't work with lazyLoad")},t.prototype.getSortingStates=function(){return this._sortingStates},t.prototype.copy=function(t,e,n,r){var i=this;return t instanceof Array?t.map((function(t,o){return i._copy(t,e,n,r,o)})):this._copy(t,e,n,r)},t.prototype.move=function(t,e,n,r,i){var o,a=this;if(t instanceof Array){var s=[];return t.forEach((function(t,i){(0,h.isId)(a._move(t,e,n,r,i))?s.push(t):(0,l.throwMoveWarning)(t,a.exists(t))})),s}return null!==(o=this._move(t,e,n,r,0,i))&&void 0!==o?o:(0,l.throwMoveWarning)(t,this.exists(t))},t.prototype.forEach=function(t){for(var e=0;e<this._order.length;e++)t.call(this,this._order[e],e,this._order)},t.prototype.load=function(t,e){return"string"==typeof t&&(this.dataProxy=t=new c.DataProxy(t)),"string"==typeof e&&(e=e.toLocaleLowerCase()),("xml"===e||"csv"===e||e instanceof p.XMLDriver||e instanceof d.CsvDriver)&&(t.config.responseType=t.config.responseType||"text"),this.dataProxy=t,this._loader.load(t,e)},t.prototype.parse=function(t,e){return this._parse(t,e)},t.prototype.$parse=function(t){var e=this.config.approximate;e&&(t=this._approximate(t,e.value,e.maxNum)),this._parse_data(t),this._reapplyFilters(),this.events.fire(u.DataEvents.change,[void 0,"load"]),this.events.fire(u.DataEvents.load)},t.prototype.save=function(t){"string"==typeof t&&(t=new c.DataProxy(t)),this._loader.save(t)},t.prototype.changeId=function(t,e,n){if(void 0===e&&(e=(0,h.uid)()),t!=e)if(this.exists(e))(0,l.dhxWarning)("item with ID ".concat(e," already exists"));else{var r=this.getItem(t);r?(r.id=e,(0,h.extend)(this._pull[t],r),this._pull[e]=this._pull[t],n||this._onChange("update",e,this._pull[e]),delete this._pull[t]):(0,l.dhxWarning)("item not found")}},t.prototype.isSaved=function(){return!this._changes.order.length},t.prototype.map=function(t){for(var e=[],n=0;n<this._order.length;n++)e.push(t.call(this,this._order[n],n,this._order));return e},t.prototype.mapRange=function(t,e,n){t<0&&(t=0),e>this._order.length-1&&(e=this._order.length-1);for(var r=this._order.slice(t,e+1),i=[],o=t;o<=e;o++)i.push(n.call(this,this._order[o],o,r));return i},t.prototype.reduce=function(t,e){for(var n=0;n<this._order.length;n++)e=t.call(this,e,this._order[n],n);return e},t.prototype.serialize=function(t){void 0===t&&(t=u.DataDriver.json);for(var e=[],n=function(t){var n=r({},i._order[t]);Object.keys(n).forEach((function(t){t.startsWith("$")&&delete n[t]})),(0,h.isDefined)(n.parent)||delete n.parent,e.push(n)},i=this,o=0;o<this._order.length;o++)n(o);var a=(0,l.toDataDriver)(t);if(a)return a.serialize(e)},t.prototype.getInitialData=function(){return this._initFilterOrder},t.prototype.setMeta=function(t,e,n){if(t){var r=this._meta.get(t);r||(r={},this._meta.set(t,r)),r[e]=n}},t.prototype.getMeta=function(t,e){var n=this._meta.get(t);return n?n[e]:null},t.prototype.getMetaMap=function(t){return this._meta.get(t)},t.prototype.setRange=function(t,e){this._range=e?[t,e]:null},t.prototype.getRawData=function(t,e,n,r){if(n=n||this._order,1===r)return n;if(this._range)if(t=this._range[0]+t,-1===e)e=this._range[1];else{var i=Math.abs(e-t);e=t+i>this._range[1]?this._range[1]:t+i}if(!e||0===t&&(-1===e||e===n.length))return n;if(t>=n.length)return[];(-1===e||e>n.length)&&(e=n.length);var o=n.slice(t,e);return 0!==o.filter((function(t){return t.$empty})).length&&this.events.fire(u.DataEvents.dataRequest,[t,e]),o},t.prototype._add=function(t,e){var n=this._addCore(t,e);return this._onChange("add",t.id,t),this.events.fire(u.DataEvents.afterAdd,[t]),n},t.prototype._remove=function(t){var e=this._pull[t];if(e){if(!this.events.fire(u.DataEvents.beforeRemove,[e]))return;this._removeCore(e.id),this._onChange("remove",t,e)}this.events.fire(u.DataEvents.afterRemove,[e])},t.prototype._copy=function(e,n,i,o,a){if(!this.exists(e))return null;var s=(0,h.uid)();return a&&(n=-1===n?-1:n+a),i?i instanceof t||!o?i.exists(e)?(i.add(r(r({},(0,l.copyWithoutInner)(this.getItem(e))),{id:s}),n),s):(i.add((0,l.copyWithoutInner)(this.getItem(e)),n),e):void i.add((0,l.copyWithoutInner)(this.getItem(e)),n):(this.add(r(r({},(0,l.copyWithoutInner)(this.getItem(e))),{id:s}),n),s)},t.prototype._move=function(t,e,n,r,i,o){if(!this.exists(t))return null;if(i&&e<this.getIndex(t)&&(e=-1===e?-1:e+i),n&&n!==this&&this.exists(t)){var a=(0,h.copy)(this.getItem(t),!0);return o&&(a.id=o),(!o&&n.exists(t)||n.exists(o))&&(a.id=(0,h.uid)()),r&&(a.parent=r),n.add(a,e),this.remove(t),a.id}if(this.getIndex(t)===e)return null;var s=this._order.splice(this.getIndex(t),1)[0];return-1===e&&(e=this._order.length),this._order.splice(e,0,s),this.events.fire(u.DataEvents.change,[t,"update",this.getItem(t)]),t},t.prototype._addCore=function(t,e){var n;return this.config.init&&(t=this.config.init(t)),t.id=null!==(n=t.id)&&void 0!==n?n:(0,h.uid)(),this._pull[t.id]&&(0,l.dhxError)("Item ".concat(t.id," already exist")),this._initFilterOrder&&!(0,l.isTreeCollection)(this)&&this._addToOrder(this._initFilterOrder,t,e),this._initSortOrder&&this._addToOrder(this._initSortOrder,t,e),this._addToOrder(this._order,t,e),t.id},t.prototype._removeCore=function(t){this._pull[t]&&(this._order=this._order.filter((function(e){return e.id!==t})),this._initFilterOrder&&this._initFilterOrder.length&&(this._initFilterOrder=this._initFilterOrder.filter((function(e){return e.id!==t}))),this._initSortOrder&&this._initSortOrder.length&&(this._initSortOrder=this._initSortOrder.filter((function(e){return e.id!==t}))),delete this._pull[t])},t.prototype._parse_data=function(t){for(var e=this._order.length,n=0,r=t;n<r.length;n++){var i=r[n];this._addCore(i,e++)}},t.prototype._approximate=function(t,e,n){for(var r=t.length,i=e.length,o=Math.floor(r/n),a=Array(Math.ceil(r/o)),s=0,c=0;c<r;c+=o){for(var l=(0,h.copy)(t[c]),u=Math.min(r,c+o),f=0;f<i;f++){for(var d=0,p=c;p<u;p++)d+=t[p][e[f]];l[e[f]]=d/(u-c)}a[s++]=l}return a},t.prototype._onChange=function(t,e,n){for(var i=0,o=0,a=this._changes.order;o<a.length;o++){var s=a[o],c=this._changes.order.indexOf(s);if(s.id===e&&!s.saving&&(i+=1,c===this._changes.order.length-1||this._changes.order[c+1].id!==e)){if(s.error&&(s.error=!1),s=r(r({},s),{obj:n,status:t}),(i+=1)>10?this._changes.order.splice(c,i-10,s):this._changes.order.splice(c+1,0,s),this._loader.updateChanges(this._changes),"remove"===t&&n.$emptyRow)return;return void this.events.fire(u.DataEvents.change,[e,t,n])}}this._changes.order.push({id:e,status:t,obj:r({},n),saving:!1}),this._loader.updateChanges(this._changes),this.events.fire(u.DataEvents.change,[e,t,n])},t.prototype._addToOrder=function(t,e,n){n>=0&&t[n]?(this._pull[e.id]=e,t.splice(n,0,e)):(this._pull[e.id]=e,t.push(e))},t.prototype._applySorters=function(){this._sortingStates.length>0&&(this._order=this._sort.sort(this._order,this._sortingStates),this._initFilterOrder&&this._initFilterOrder.length&&this._sort.sort(this._initFilterOrder,this._sortingStates))},t.prototype._applyFilters=function(t){if(t){if(!this._checkFilterRule(t))throw new Error("Invalid filter rule");var e="function"!=typeof t?this._getRuleCallback(t):t,n=this._order.filter((function(t){return e(t)}));this._initFilterOrder||(this._initFilterOrder=this._order),this._order=n}},t.prototype._reapplyFilters=function(){var t=this.getFilters({permanent:!0});t&&this.filter(t,{$restore:!0,add:!0},!0),this._sorter&&this._applySorters()},t.prototype._getRuleCallback=function(t){if((0,h.isDefined)(t.by)&&(0,h.isDefined)(t.match))return t.compare?function(e){return t.compare(e[t.by],t.match,e,t.multi)}:function(e){return e[t.by]==t.match}},t.prototype._getPureFilters=function(t){return Object.keys(t).reduce((function(e,n){var r;return(null===(r=t[n].config)||void 0===r?void 0:r.$local)||(e[n]=t[n]),e}),{})},t.prototype._normalizeFilters=function(t){var e=[];for(var n in t){var i=t[n].rule;if("function"!=typeof i)if((0,h.isDefined)(i.by))e.push(this._getRuleCallback(i));else for(var o in i)e.push(this._getRuleCallback(i[o]));else e.push(i)}return r({},e)},t.prototype._checkFilterRule=function(t){return"function"==typeof t||(0,h.isDefined)(t.by)&&(0,h.isDefined)(t.match)},t.prototype._parse=function(t,e,n){return void 0===e&&(e=u.DataDriver.json),void 0===n&&(n=!1),this._reset({grouping:n}),this._loader.parse(t,e)},t}();e.DataCollection=v},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.dataDriversPro=e.dataDrivers=void 0;var i=n(23),o=n(15),a=n(24);e.dataDrivers={json:i.JsonDriver,csv:o.CsvDriver},e.dataDriversPro=r(r({},e.dataDrivers),{xml:a.XMLDriver})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JsonDriver=void 0;var r=function(){function t(){}return t.prototype.toJsonArray=function(t){return this.getRows(t)},t.prototype.serialize=function(t){return t},t.prototype.getFields=function(t){return t},t.prototype.getRows=function(t){return"string"==typeof t?JSON.parse(t):t},t}();e.JsonDriver=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.XMLDriver=void 0;var r=n(48);function i(t,e){e=e||{};var n=t.attributes;if(n&&n.length)for(var r=0;r<n.length;r++)e[n[r].name]=n[r].value;var o=t.childNodes;for(r=0;r<o.length;r++){var a=o[r];if(a.nodeType===a.ELEMENT_NODE){var s=a.tagName;e[s]?("function"!=typeof e[s].push&&(e[s]=[e[s]]),e[s].push(i(a,{}))):e[s]=i(a,{})}}return e}var o=function(){function t(){}return t.prototype.toJsonArray=function(t){return this.getRows(t)},t.prototype.toJsonObject=function(t){var e;return"string"==typeof t&&(e=this._fromString(t)),i(e)},t.prototype.serialize=function(t){return(0,r.jsonToXML)(t)},t.prototype.getFields=function(t){return t},t.prototype.getRows=function(t){if("string"==typeof t&&(t=this._fromString(t)),t){var e=t.childNodes&&t.childNodes[0]&&t.childNodes[0].childNodes;return e&&e.length?this._getRows(e):null}return[]},t.prototype._getRows=function(t){for(var e=[],n=0;n<t.length;n++)"item"===t[n].tagName&&e.push(this._nodeToJS(t[n]));return e},t.prototype._fromString=function(t){try{return(new DOMParser).parseFromString(t,"text/xml")}catch(t){return null}},t.prototype._nodeToJS=function(t){var e={};if(this._haveAttrs(t))for(var n=t.attributes,r=0;r<n.length;r++){var i=n[r],o=i.name,a=i.value;e[o]=this._toType(a)}if(t.nodeType===t.TEXT_NODE)return e.value=e.value||this._toType(t.textContent),e;var s=t.childNodes;if(s)for(r=0;r<s.length;r++){var c=s[r],l=c.tagName;l&&("items"===l&&c.childNodes?e[l]=this._getRows(c.childNodes):this._haveAttrs(c)?e[l]=this._nodeToJS(c):e[l]=this._toType(c.textContent))}return e},t.prototype._toType=function(t){return"false"===t||"true"===t?"true"===t:t},t.prototype._haveAttrs=function(t){return t.attributes&&t.attributes.length},t}();e.XMLDriver=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.methods=void 0;var r=n(0);e.methods={sum:function(t,e){return parseFloat(t.reduce((function(t,n){return t+(+n[e]||0)}),0).toFixed(12))},avg:function(t,e){return parseFloat((t.reduce((function(t,n){return t+(+n[e]||0)}),0)/t.length).toFixed(12))},count:function(t,e){return void 0===t&&(t=[]),t.filter((function(t){return(0,r.isDefined)(t[e])&&""!==t[e]})).length},min:function(t,e){return Math.min.apply(Math,t.map((function(t){return+t[e]})))},max:function(t,e){return Math.max.apply(Math,t.map((function(t){return+t[e]})))}}},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.rightGrid=e.right=e.leftGrid=e.left=e.topGrid=e.top=e.bottomGrid=e.bottom=void 0;var i=n(0),o=n(1),a=n(2),s=function(t){return t.toString()},c=function(t,e){return{role:"graphics-object","aria-label":"".concat(t,"-axis").concat(e?", "+e:"")}};e.bottom=function(t,e,n,l){var u=e.title,h=e.textPadding,f=e.scalePadding,d=e.textTemplate,p=e.showText,v=e.scaleRotate,g=d||s,_=[],y=0;if(p){y=h;var m=v&&!isNaN(v),x=l+h;_=t.map((function(t){var e=t[0],n=m?"rotate(".concat(v," ").concat(e," ").concat(x,")"):"",r=["scale-text","top-text"];if(m){var i=v%360;r.push((0,a.getClassesForRotateScale)("bottom",i))}return(0,o.sv)("text",{x:e,y:x,class:r.join(" "),transform:n},[(0,a.verticalCenteredText)(g(t[1]))])}))}var b=(0,i.uid)(),w=null,O=(0,o.sv)("path",{class:"main-scale",d:"M0 ".concat(l," H").concat(n-.5),id:b});return u&&(w=(0,o.sv)("text",{dx:n/2,dy:f+y},[(0,o.sv)("textPath",{href:"#".concat(b),class:"scale-title "},u)])),(0,o.sv)("g",r({},c("x",u||e.text)),[O,w].concat(_))},e.bottomGrid=function(t,e,n,r){for(var i=r.dashed,a=r.grid,s=r.targetLine,c=r.targetValue,l=t.length,u=[],h="grid-line ".concat(i?"dash-line":""," ").concat(a?"":"hidden-line"),f=0;f<l;f++)if(0!==f||0!==t[f][0]||r.hidden)if(f!==s){var d="M".concat(t[f][0]," 0 V ").concat(n),p=(0,o.sv)("path",{d:d,class:h,_ref:"line"+Math.round(t[f][0])});if(u.push(p),f===l-1&&t[f][0]!==e){var v="M".concat(e," 0 V ").concat(n),g=(0,o.sv)("path",{d:v,class:h});u.push(g)}}else{var _="M".concat(t[f][0]," 0 V ").concat(n),y=(0,o.sv)("path",{d:_,class:"".concat(h," spec-grid-line")});u.push(y)}if(c){d="M".concat(c*e," 0 V ").concat(n),p=(0,o.sv)("path",{d:d,class:"".concat(h," spec-grid-line")});u.push(p)}return(0,o.sv)("g",u)},e.top=function(t,e,n,l){var u=e.title,h=e.textPadding,f=e.scalePadding,d=e.textTemplate,p=e.showText,v=e.scaleRotate,g=d||s,_=[],y=0;if(p){y=h;var m=v&&!isNaN(v),x=-h;_=t.map((function(t){var e=["scale-text"],n=t[0],r=m?"rotate(".concat(v," ").concat(n," ").concat(x,")"):"";if(m){var i=v%360;e.push((0,a.getClassesForRotateScale)("top",i))}return(0,o.sv)("text",{x:n,y:x,class:e.join(" "),transform:r},[(0,a.verticalCenteredText)(g(t[1]))])}))}var b=(0,i.uid)(),w=(0,o.sv)("path",{d:"M0 0 H".concat(n),class:"main-scale",id:b}),O=null;return u&&(O=(0,o.sv)("text",{dx:n/2,dy:-f-y},[(0,o.sv)("textPath",{href:"#".concat(b),class:"scale-title"},u)])),(0,o.sv)("g",r({},c("x",u||e.text)),[w,O].concat(_))},e.topGrid=function(t,e,n,r){for(var i=r.dashed,a=r.grid,s=r.targetLine,c=t.length,l=[],u="grid-line ".concat(i?"dash-line":""," ").concat(a?"":"hidden-line"),h=0;h<c;h++)if(0!==h||0!==t[h][0]||r.hidden)if(h!==s){var f="M".concat(t[h][0]," 0 V ").concat(n),d=(0,o.sv)("path",{d:f,class:u,_ref:"line"+Math.round(t[h][0])});if(l.push(d),h===c-1&&0!==t[h][0]){var p="M0 0 V ".concat(n),v=(0,o.sv)("path",{d:p,class:u});l.push(v)}}else{var g="M".concat(t[h][0]," 0 V ").concat(n),_=(0,o.sv)("path",{d:g,class:"".concat(u," spec-grid-line")});l.push(_)}return(0,o.sv)("g",l)},e.left=function(t,e,n,l){var u=e.title,h=e.textPadding,f=e.scalePadding,d=e.textTemplate,p=e.showText,v=e.scaleRotate,g=d||s,_=[],y=0;if(p){var m=(0,a.getFontStyle)("scale-text"),x=0,b=v&&!isNaN(v);_=t.map((function(t){var e=t[0],n=-h,r=b?"rotate(".concat(v," ").concat(n," ").concat(e,")"):"",i=["scale-text"],s=g(t[1]);if(u){var c=(0,a.getTextWidth)(s,m);x<c&&(x=c)}if(b){var l=v%360;i.push((0,a.getClassesForRotateScale)("left",l))}else i.push("end-text");return(0,o.sv)("text",{x:n,y:e,class:i.join(" "),transform:r},[(0,a.verticalCenteredText)(s)])})),y=x+h}var w=(0,i.uid)(),O=(0,o.sv)("path",{class:"main-scale",d:"M0 ".concat(l," V 0.5"),id:w,_ref:t.length?"line0":null}),D=null;return u&&(D=(0,o.sv)("text",{dx:l/2,dy:-f-y},[(0,o.sv)("textPath",{href:"#".concat(w),class:"scale-title"},u)])),(0,o.sv)("g",r({},c("y",u||e.text)),[O,D].concat(_))},e.leftGrid=function(t,e,n,r){for(var i=r.dashed,a=r.grid,s=r.targetLine,c=r.targetValue,l=t.length,u=[],h="grid-line ".concat(i?"dash-line":""),f=0;f<l;f++)if(0!==f||t[f][0]!==n||r.hidden)if(s!==f){if(a){v="M0 ".concat(t[f][0]," H ").concat(e),g=(0,o.sv)("path",{d:v,class:h});if(u.push(g),f===l-1&&t[f][0]!==e){var d="M0 0 H".concat(e),p=(0,o.sv)("path",{d:d,class:h});u.push(p)}}}else{var v="M0 ".concat(t[f][0]," H ").concat(e),g=(0,o.sv)("path",{d:v,class:"".concat(h," spec-grid-line")});u.push(g)}if(c){v="M0 ".concat(c*n," H ").concat(e),g=(0,o.sv)("path",{d:v,class:"".concat(h," spec-grid-line")});u.push(g)}return(0,o.sv)("g",u)},e.right=function(t,e,n,l){var u=e.title,h=e.textPadding,f=e.scalePadding,d=e.textTemplate,p=e.showText,v=e.scaleRotate,g=d||s,_=[],y=0;if(p){var m=(0,a.getFontStyle)("scale-text"),x=0,b=v&&!isNaN(v);_=t.map((function(t){var e=g(t[1]),r=t[0],i=n+h,s=b?"rotate(".concat(v," ").concat(i," ").concat(r,")"):"",c=["scale-text"];if(u){var l=(0,a.getTextWidth)(e,m);x<l&&(x=l)}if(b){var f=v%360;c.push((0,a.getClassesForRotateScale)("right",f))}else c.push("start-text");return(0,o.sv)("text",{x:i,y:r,class:c.join(" "),transform:s},[(0,a.verticalCenteredText)(e)])})),y=h+x}var w=(0,i.uid)(),O=(0,o.sv)("path",{d:"M".concat(n," ").concat(l," V 0"),class:"main-scale",id:w,_ref:t.length?"line0":null}),D=null;return u&&(D=(0,o.sv)("text",{dx:l/2,dy:f+y},[(0,o.sv)("textPath",{href:"#".concat(w),class:"scale-title"},u)])),(0,o.sv)("g",r({},c("y",u||e.text)),[O,D].concat(_))},e.rightGrid=function(t,e,n,r){for(var i=r.dashed,a=r.grid,s=r.targetLine,c=t.length,l=[],u="grid-line ".concat(i?"dash-line":""),h=0;h<c;h++)if(0!==h||t[h][0]!==n||r.hidden)if(s!==h){if(a){p="M0 ".concat(t[h][0]," H ").concat(e),v=(0,o.sv)("path",{d:p,class:u});if(l.push(v),h===c-1&&t[h][0]!==e){var f="M0 0 H".concat(e),d=(0,o.sv)("path",{d:f,class:u});l.push(d)}}}else{var p="M0 ".concat(t[h][0]," H ").concat(e),v=(0,o.sv)("path",{d:p,class:"".concat(u," spec-grid-line")});l.push(v)}return(0,o.sv)("g",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(2),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.paint=function(e,n,r){t.prototype.paint.call(this,e,n);var i,s=[];return this._form(e,n,s,r),this._markers(s),(0,a.sv)("g",o(o({class:"seria",_key:this.id},(i=this.config,{"aria-label":"chart ".concat(i.value||"")})),{tabindex:0}),s)},e.prototype.paintformAndMarkers=function(e,n,r){t.prototype.paint.call(this,e,n);var i=[],o=[];return this._form(e,n,i,r),this._markers(o),[(0,a.sv)("g",{class:"seria",_key:this.id},i),(0,a.sv)("g",{class:"seria_markers",_key:this.id+"_markers"},o)]},e.prototype._markers=function(t){var e=this;if(this.config.pointType){var n=this.config.pointColor||this.config.color,r=this._getPointType(this.config.pointType,n);t.push.apply(t,this._points.map((function(t){return r(t[0],t[1],(0,s.calcPointRef)(t[2],e.id))})))}},e.prototype._form=function(t,e,n,r){var i=this.config,o=i.id,s=i.fill,c=i.alpha,l=i.color,u=i.strokeWidth,h=this._points,f=h[h.length-1],d="";if(r){for(var p=r.length-1;p>=0;p--){var v=r[p];d+=p===h.length-1?"M".concat(v[0]," ").concat(v[1]," "):"L".concat(v[0]," ").concat(v[1]," ")}d+=h.map((function(t,e){return e?"L ".concat(t[0]," ").concat(t[1]):"V ".concat(t[1])})).join(" ")+"Z"}else d+=h.map((function(t,n){return n?"L".concat(t[0]," ").concat(t[1]):"M0 ".concat(e," L0 ").concat(t[1]," L").concat(t[0]," ").concat(t[1])})).join(" ")+"L".concat(t," ").concat(f[1]," V ").concat(e);if(u){var g=h.length-1,_=function(t){return t===g?-.5:t?0:.5},y=h.map((function(t,e){return e?"L".concat(t[0]+_(e)," ").concat(t[1]):"M0 ".concat(t[1]," L0 ").concat(t[1]+_(e)," L").concat(t[0]+_(e)," ").concat(t[1])})).join(" ")+"L".concat(t," ").concat(f[1]),m=(0,a.sv)("path",{d:y,"stroke-width":u,stroke:l,fill:"none",class:this._getCss()});n.push(m)}var x=(0,a.sv)("path",{id:"seria"+o,d:d,class:this._getCss(),fill:s,_ref:o,"fill-opacity":c,stroke:"none"});return n.push(x),n},e.prototype._setDefaults=function(t){var e={alpha:.3,strokeWidth:2,fill:t.color||"#5E83BA",color:"#5E83BA",active:!0,tooltip:!0,pointType:"empty"};this.config=o(o({},e),t);var n=this.config.pointType,r=this.config.pointColor||this.config.color;n&&(this._drawPointType=this._getPointType(n,r))},e}(n(17).default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShadeHTMLHelper=e.getShadeHelper=e.getHTMLHelper=e.getHelper=void 0;var r=n(1),i=n(2),o={circle:function(t,e,n,i,o,a){var s={_ref:a,cx:i,cy:o,r:4,class:"figure point-circle",fill:e,stroke:t,"stroke-width":2};return(0,r.sv)("circle",s)},rect:function(t,e,n,i,o,a){var s={_ref:a,x:i-4,y:o-4,width:8,height:8,class:"figure point-rect",fill:e,stroke:t,"stroke-width":2};return(0,r.sv)("rect",s)},rhombus:function(t,e,n,i,o,a){var s={_ref:a,points:"".concat(i-5,",").concat(o," ").concat(i,",").concat(o+5," ").concat(i+5,",").concat(o," ").concat(i,",").concat(o-5),class:"figure point-rhombus",fill:e,stroke:t,"stroke-width":2};return(0,r.sv)("polygon",s)},triangle:function(t,e,n,i,o,a){var s={_ref:a,points:"".concat(i,",").concat(o-5," ").concat(i+5,",").concat(o+5," ").concat(i-5,",").concat(o+5),class:"figure point-triangle",fill:e,stroke:t,"stroke-width":2};return(0,r.sv)("polygon",s)},simpleCircle:function(t,e,n,i,o,a){var s={_ref:a,cx:i,cy:o,r:3,class:"figure point-simple-circle",fill:t};return(0,r.sv)("circle",s)},simpleRect:function(t,e,n,i,o,a){var s={_ref:a,x:i-3,y:o-3,width:6,height:6,class:"figure point-simple-rect",fill:t};return(0,r.sv)("rect",s)},empty:function(){return null}},a={circle:function(t,e,n,r,i,o){return'<circle class="figure point-circle" _ref="'.concat(o,'" cx="').concat(r,'" cy="').concat(i,'" r="4" fill="').concat(e,'" stroke="').concat(t,'" stroke-width="2"/>')},rect:function(t,e,n,r,i,o){return'<rect _ref="'.concat(o,'" x="').concat(r-4,'" y="').concat(i-4,'" width="8" height="8" class="figure point-rect" fill="').concat(e,'" stroke="').concat(t,'" stroke-width="2"/>')},rhombus:function(t,e,n,r,i,o){return'<polygon _ref="'.concat(o,'" points="').concat(r-5,",").concat(i," ").concat(r,",").concat(i+5," ").concat(r+5,",").concat(i," ").concat(r,",").concat(i-5,'" class="figure point-rhombus" fill="').concat(e,'" stroke="').concat(t,'" stroke-width="2"/>')},triangle:function(t,e,n,r,i,o){return'<polygon _ref="'.concat(o,'" points="').concat(r,",").concat(i-5," ").concat(r+5,",").concat(i+5," ").concat(r-5,",").concat(i+5,'" class="figure point-triangle" fill="').concat(e,'" stroke="').concat(t,'" stroke-width="2"/>')},simpleCircle:function(t,e,n,r,i,o){return'<circle _ref="'.concat(o,'" cx="').concat(r,'" cy="').concat(i,'" r="3" class="figure point-simple-circle" fill="').concat(t,'"/>')},simpleRect:function(t,e,n,r,i,o){return'<rect _ref="id" x="'.concat(r-3,'" y="').concat(i-3,'" width="6" height="6" class="figure point-simple-rect" fill="').concat(t,'"/>')},empty:function(){return null}};function s(t){var e=o[t.toString()];if(!e)throw new Error("unknown point type");return e}function c(t){var e=a[t.toString()];if(!e)throw new Error("unknown point type");return e}e.getHelper=s,e.getHTMLHelper=c,e.getShadeHelper=function(t,e){var n=s(t);e=e||"none";var r=(0,i.getColorShade)(e,.2);return function(t,i,o){return n(e,r,"",t,i,o)}},e.getShadeHTMLHelper=function(t,e){var n=c(t);e=e||"none";var r=(0,i.getColorShade)(e,.2);return function(t,i,o){return n(e,r,"",t,i,o)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DateHelper=e.stringToDate=e.getExcelDate=e.getFormattedDate=e.locale=void 0;var r=n(0),i=n(0);e.locale={monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Monday"],cancel:"Cancel"};var o,a={"%d":function(t){var e=t.getDate();return e<10?"0"+e:e},"%j":function(t){return t.getDate()},"%l":function(t){return e.locale.days[t.getDay()]},"%D":function(t){return e.locale.daysShort[t.getDay()]},"%m":function(t){var e=t.getMonth()+1;return e<10?"0"+e:e},"%n":function(t){return t.getMonth()+1},"%M":function(t){return e.locale.monthsShort[t.getMonth()]},"%F":function(t){return e.locale.months[t.getMonth()]},"%y":function(t){return t.getFullYear().toString().slice(2)},"%Y":function(t){return t.getFullYear()},"%h":function(t){var e=t.getHours()%12;return 0===e&&(e=12),e<10?"0"+e:e},"%g":function(t){var e=t.getHours()%12;return 0===e&&(e=12),e},"%H":function(t){var e=t.getHours();return e<10?"0"+e:e},"%G":function(t){return t.getHours()},"%i":function(t){var e=t.getMinutes();return e<10?"0"+e:e},"%s":function(t){var e=t.getSeconds();return e<10?"0"+e:e},"%a":function(t){return t.getHours()>=12?"pm":"am"},"%A":function(t){return t.getHours()>=12?"PM":"AM"},"%u":function(t){return t.getMilliseconds()}},s={"%d":function(t,e,n,r){var i=/(^([0-9][0-9])$)/i.test(e);if(r)return i;i?t.setDate(Number(e)):t.setDate(Number(1))},"%j":function(t,e,n,r){var i=/(^([0-9]?[0-9])$)/i.test(e);if(r)return i;i?t.setDate(Number(e)):t.setDate(Number(1))},"%m":function(t,e,n,r){var i=/(^([0-9][0-9])$)/i.test(e);if(r)return i;i?t.setMonth(Number(e)-1):t.setMonth(Number(0)),i&&t.getMonth()!==Number(e)-1&&t.setMonth(Number(e)-1)},"%n":function(t,e,n,r){var i=/(^([0-9]?[0-9])$)/i.test(e);if(r)return i;i?t.setMonth(Number(e)-1):t.setMonth(Number(0)),i&&t.getMonth()!==Number(e)-1&&t.setMonth(Number(e)-1)},"%M":function(t,n,r,o){var a=(0,i.findIndex)(e.locale.monthsShort,(function(t){return t===n}));if(o)return-1!==a;-1===a?t.setMonth(0):t.setMonth(a),-1!==a&&t.getMonth()!==a&&t.setMonth(a)},"%F":function(t,n,r,o){var a=(0,i.findIndex)(e.locale.months,(function(t){return t===n}));if(o)return-1!==a;-1===a?t.setMonth(0):t.setMonth(a),-1!==a&&t.getMonth()!==a&&t.setMonth(a)},"%y":function(t,e,n,r){var i=/(^([0-9][0-9])$)/i.test(e);if(r)return i;i?t.setFullYear(Number("20"+e)):t.setFullYear(Number("2000"))},"%Y":function(t,e,n,r){var i=/(^([0-9][0-9][0-9][0-9])$)/i.test(e);if(r)return i;i?t.setFullYear(Number(e)):t.setFullYear(Number("2000"))},"%h":function(t,e,n,r){var i=/(^0[1-9]|1[0-2]$)/i.test(e);if(r)return i;i&&("am"===n||"pm"===n)||"AM"===n||"PM"===n?t.setHours(Number(e)):t.setHours(Number(0))},"%g":function(t,e,n,r){var i=/(^[1-9]$)|(^0[1-9]|1[0-2]$)/i.test(e);if(r)return i;i&&("am"===n||"pm"===n)||"AM"===n||"PM"===n?t.setHours(Number(e)):t.setHours(Number(0))},"%H":function(t,e,n,r){var i=/(^[0-2][0-9]$)/i.test(e);if(r)return i;i?t.setHours(Number(e)):t.setHours(Number(0))},"%G":function(t,e,n,r){var i=/(^[1-9][0-9]?$)/i.test(e);if(r)return i;i?t.setHours(Number(e)):t.setHours(Number(0))},"%i":function(t,e,n,r){var i=/(^([0-5][0-9])$)/i.test(e);if(r)return i;i?t.setMinutes(Number(e)):t.setMinutes(Number(0))},"%s":function(t,e,n,r){var i=/(^([0-5][0-9])$)/i.test(e);if(r)return i;i?t.setSeconds(Number(e)):t.setSeconds(Number(0))},"%u":function(t,e,n,r){var i=/(^([0-9][0-9][0-9])$)/i.test(e);if(r)return i;i?t.setMilliseconds(Number(e)):t.setMilliseconds(Number(0))},"%a":function(t,e,n,r){if(r)return"pm"===e||"am"===e;"pm"===e&&t.setHours(t.getHours()+12)},"%A":function(t,e,n,r){if(r)return"PM"===e||"AM"===e;"PM"===e&&t.setHours(t.getHours()+12)}};function c(t){for(var e=[],n="",r=0;r<t.length;r++)"%"===t[r]?(n.length>0&&(e.push({type:o.separator,value:n}),n=""),e.push({type:o.datePart,value:t[r]+t[r+1]}),r++):n+=t[r];return n.length>0&&e.push({type:o.separator,value:n}),e}!function(t){t[t.separator=0]="separator",t[t.datePart=1]="datePart"}(o||(o={})),e.getFormattedDate=function(t,e){return c(t).reduce((function(t,n){return n.type===o.separator?t+n.value:a[n.value]?t+a[n.value](e):t}),"")},e.getExcelDate=function(t){return t?25569+(t.getTime()-6e4*t.getTimezoneOffset())/864e5:null};var l={"%Y":1,"%y":1,"%M":2,"%F":2,"%m":2,"%n":2};function u(t,e,n){if("string"==typeof t){e=e.replace(/([a-z])(%a)/i,(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t=t.replace(/(am|pm)/i," $&"),e[1]+" "+e[2]}));for(var r,i=c(e),a=new Array(2),u=0,h=null,f="Incorrect date, see docs: https://docs.dhtmlx.com/suite/calendar__api__calendar_dateformat_config.html",d=function(t){var e=l[t.formatter];e?a[e-1]=t:("%A"!==t.formatter&&"%a"!==t.formatter||(r=t.value),a.push(t))},p=0;p<i.length;p++)if(i[p].type===o.separator){var v=t.indexOf(i[p].value,u);if(-1===v){if(n)return!1;throw new Error(f)}h&&(d({formatter:h,value:t.slice(u,v)}),h=null),u=v+i[p].value.length}else if(i[p].type===o.datePart){if(i[p+1]&&i[p+1].type!==o.separator){if(n)return!1;throw new Error(f)}h=i[p].value}h&&d({formatter:h,value:t.slice(u)});for(var g=new Date(0),_=0,y=a;_<y.length;_++){var m=y[_];if(m&&s[m.formatter]){if(n&&!s[m.formatter](g,m.value,r,n))return!1;s[m.formatter](g,m.value,r)}}return!!n||g}}e.stringToDate=u;e.DateHelper=function(){function t(){}return t.copy=function(t){return new Date(t)},t.fromYear=function(t){return new Date(t,0,1)},t.fromYearAndMonth=function(t,e){return new Date(t,e,1)},t.weekStart=function(t,e){var n=(t.getDay()+7-e)%7;return new Date(t.getFullYear(),t.getMonth(),t.getDate()-n)},t.monthStart=function(t){return new Date(t.getFullYear(),t.getMonth(),1)},t.yearStart=function(t){return new Date(t.getFullYear(),0,1)},t.dayStart=function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},t.addDay=function(t,e){return void 0===e&&(e=1),new Date(t.getFullYear(),t.getMonth(),t.getDate()+e)},t.addMonth=function(t,e){return void 0===e&&(e=1),new Date(t.getFullYear(),t.getMonth()+e)},t.addYear=function(t,e){return void 0===e&&(e=1),new Date(t.getFullYear()+e,t.getMonth())},t.withHoursAndMinutes=function(t,e,n,r){return void 0===r||!r&&12===e||r&&12!==e?new Date(t.getFullYear(),t.getMonth(),t.getDate(),e,n):r&&12===e?new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,n):new Date(t.getFullYear(),t.getMonth(),t.getDate(),e+12,n)},t.setMonth=function(t,e){t.setMonth(e)},t.setYear=function(t,e){t.setFullYear(e)},t.mergeHoursAndMinutes=function(t,e){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),e.getHours(),e.getMinutes())},t.isWeekEnd=function(t){return 0===t.getDay()||6===t.getDay()},t.getTwelweYears=function(t){var e=t.getFullYear(),n=e-e%12;return(0,r.range)(n,n+11)},t.getDayOrdinal=function(e){return(e.valueOf()-t.yearStart(e).valueOf())/864e5},t.getWeekNumber=function(e){var n=4===e.getDay()?e:t.addDay(e,4-e.getDay()),r=t.getDayOrdinal(n);return Math.trunc(r/7)+1},t.isSameDay=function(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()},t.toDateObject=function(t,e){return"string"==typeof t?u(t,e):new Date(t)},t.nullTimestampDate=new Date(0),t}()},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(2),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._shift=0,e}return i(e,t),e.prototype.addScale=function(e,n){t.prototype.addScale.call(this,e,n),n.addPadding()},e.prototype.seriesShift=function(t){return this._shift=t,this.config.barWidth},e.prototype.paint=function(e,n,r){t.prototype.paint.call(this,e,n);if(!this.config.active)return null;var i=[];this._gradient&&i.push((0,s.sv)("defs",[this._gradient()]));var a,c=this._getForm(this._points,e,n,r);return i=i.concat(c),(0,s.sv)("g",o(o({class:"seria",_key:this.id},(a=this.config,{"aria-label":"chart ".concat(a.value||"")})),{tabindex:0}),i)},e.prototype.getTooltipType=function(t,e,n){return void 0!==this.config.baseLine&&this._baseLinePosition<n?"bot":"top"},e.prototype._getClosestDist=function(t,e,n,r){return this.config.stacked&&e<r?1/0:Math.abs(t-n)},e.prototype._path=function(t,e){return t[0]+=this._shift,"\nM ".concat(t[0]-this.config.barWidth/2," ").concat(e,"\nV ").concat(t[1],"\nh ").concat(this.config.barWidth,"\nV ").concat(e)},e.prototype._base=function(t){var e=this.config.baseLine;return this._baseLinePosition=void 0!==e?this.yScale.point(e)*t:t-1},e.prototype._text=function(t,e,n){var r=t[0],i=(e+t[1])/2;return{x:r,y:i,class:"bar-text",transform:n&&!isNaN(n)?"rotate(".concat(n," ").concat(r," ").concat(i,")"):""}},e.prototype._getForm=function(t,e,n,r){var i=this,a=function(t,e,n){void 0===n&&(n=0);var r=e[3],i=n,o=e[4];return n>o&&(i=o,o=n),"xbar"===t?"bar y=".concat(r,", x from ").concat(i," to ").concat(o):"bar x=".concat(r,", y from ").concat(i," to ").concat(o)},l=this.config,u=l.baseLine,h=l.fill,f=l.alpha,d=l.showText,p=l.showTextTemplate,v=l.showTextRotate,g=[],_=this._base(n),y=function(t){return r?r[t][1]:_},m=t.map((function(t,e){return(0,s.sv)("path",o(o({_key:"seria"+i.config.id+e,_ref:(0,c.calcPointRef)(t[2],i.config.id),d:i._path(t,y(e)),class:i._getCss(),fill:h,onclick:[i._handlers.onclick,t[2],i.config.value],onmousemove:[i._handlers.onmousemove,t[2],i.config.id],onmouseleave:[i._handlers.onmouseleave,t[2],i.config.id],"fill-opacity":f},function(t,e,n){return{role:"graphics-symbol","aria-roledescription":"bar","aria-label":a(t,e,n)}}(i.config.type,t,u)),{tabindex:0}))}));if(g.push.apply(g,m),(d||p||v)&&!1!==d){var x=t.map((function(t,e){var n=i._getText(t);return function(t,e){return Math.abs(y(e)-t[1])>16}(t,e)?(0,s.sv)("text",o(o({},i._text(t,y(e),v)),{"aria-hidden":"true"}),[p?(0,c.verticalCenteredText)(p(n)):(0,c.verticalCenteredText)(n)]):null}));g.push.apply(g,x)}return g},e.prototype._getText=function(t){return t[4].toString()},e.prototype._setDefaults=function(t){this.config=o(o({},{barWidth:30,alpha:1,active:!0,tooltip:!0,pointType:"empty"}),t);var e=this.config.pointType,n=this.config.pointColor||this.config.color;if(e&&(this.config.pointType=e,this._drawPointType=this._getPointType(e,n)),this.config.gradient){var r="gradient"+(0,a.uid)(),i=this.config.gradient(this.config.fill);this._gradient=function(){return(0,c.linearGradient)(i,r)},this.config.fill="url(#".concat(r,")")}},e}(n(17).default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n,r=t.length;if(r<3)n=t;else{var i=t[0],o=t[0],a=t[1],s=t[2];n=[t[0].slice(0,2)];for(var c=1;c<r;c++)n.push([(-i[0]+6*o[0]+a[0])/6,(-i[1]+6*o[1]+a[1])/6,(o[0]+6*a[0]-s[0])/6,(o[1]+6*a[1]-s[1])/6,a[0],a[1]]),i=o,o=a,a=s,s=t[c+2]||s}var l="";for(c=0;c<n.length;c++){var u=n[c],h=u.length;c?l+=h>5?"C".concat(u[0]," ").concat(u[1],"\n\t\t\t\t").concat(u[2]," ").concat(u[3],"\n\t\t\t\t").concat(u[4]," ").concat(u[5]):5===h?"L".concat(u[0]," ").concat(u[1]):"S".concat(u[0]," ").concat(u[1],"\n\t\t\t\t").concat(u[2]," ").concat(u[3]):(l+=e?"L":"M",l+=5===h?"".concat(u[0]," ").concat(u[1]):"".concat(u[h-2]," ").concat(u[h-1]))}return l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={apply:"apply",reject:"reject"}},function(t,e,n){"use strict";function r(t){var e=document.activeElement;e.classList.contains("dhx_alert__apply-button")&&"Enter"===t.key||e.classList.contains("dhx_alert__confirm-reject")||e.classList.contains("dhx_alert__confirm-aply")||t.preventDefault()}Object.defineProperty(e,"__esModule",{value:!0}),e.blockScreen=void 0,e.blockScreen=function(t){var e=document.createElement("div");return e.className="dhx_alert__overlay "+(t||""),document.body.appendChild(e),document.addEventListener("keydown",r),function(){document.body.removeChild(e),document.removeEventListener("keydown",r)}}},function(t,e,n){n(35),n(36),n(37),n(38),n(39),t.exports=n(40)},function(t,e){Object.values=Object.values?Object.values:function(t){var e=Object.prototype.toString.call(t);if(null==t)throw new TypeError("Cannot convert undefined or null to object");if(~["[object String]","[object Object]","[object Array]","[object Function]"].indexOf(e)){if(Object.keys)return Object.keys(t).map((function(e){return t[e]}));var n=[];for(var r in t)t.hasOwnProperty(r)&&n.push(t[r]);return n}return[]},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){"use strict";for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(null==t)throw new TypeError("Cannot convert first argument to object");for(var r=Object(t),i=0;i<e.length;i++){var o=e[i];if(null!=o)for(var a=Object.keys(Object(o)),s=0,c=a.length;s<c;s++){var l=a[s],u=Object.getOwnPropertyDescriptor(o,l);void 0!==u&&u.enumerable&&(r[l]=o[l])}}return r}})},function(t,e){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(t,e){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),r=n.length>>>0;if(0===r)return!1;var i,o,a=0|e,s=Math.max(a>=0?a:r-Math.abs(a),0);for(;s<r;){if((i=n[s])===(o=t)||"number"==typeof i&&"number"==typeof o&&isNaN(i)&&isNaN(o))return!0;s++}return!1},configurable:!0,writable:!0}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var r=arguments[1],i=0;i<n;){var o=e[i];if(t.call(r,o,i,e))return o;i++}},configurable:!0,writable:!0}),Array.prototype.findIndex||(Array.prototype.findIndex=function(t){if(null==this)throw new TypeError("Array.prototype.findIndex called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;o<r;o++)if(e=n[o],t.call(i,e,o,n))return o;return-1})},function(t,e){String.prototype.includes||(String.prototype.includes=function(t,e){"use strict";return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){return e=e||0,this.indexOf(t,e)===e}}),String.prototype.padStart||(String.prototype.padStart=function(t,e){return t>>=0,e=String(e||" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),e.slice(0,t)+String(this))}),String.prototype.padEnd||(String.prototype.padEnd=function(t,e){return t>>=0,e=String(e||" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),String(this)+e.slice(0,t))})},function(t,e){if(Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}if("classList"in SVGElement.prototype||Object.defineProperty(SVGElement.prototype,"classList",{get:function(){var t=this;return{contains:function(e){return-1!==t.className.baseVal.split(" ").indexOf(e)},add:function(e){return t.setAttribute("class",t.getAttribute("class")+" "+e)},remove:function(e){var n=t.getAttribute("class").replace(new RegExp("(\\s|^)".concat(e,"(\\s|$)"),"g"),"$2");t.classList.contains(e)&&t.setAttribute("class",n)},toggle:function(t){this.contains(t)?this.remove(t):this.add(t)}}},configurable:!0}),!Object.entries){var r=Function.bind.call(Function.call,Array.prototype.reduce),i=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),o=Function.bind.call(Function.call,Array.prototype.concat);Object.entries=function(t){return r(Object.keys(t),(function(e,n){return o(e,"string"==typeof n&&i(t,n)?[[n,t[n]]]:[])}),[])}}Event.prototype.composedPath||(Event.prototype.composedPath=function(){if(this.path)return this.path;var t=this.target;for(this.path=[];null!==t.parentNode;)this.path.push(t),t=t.parentNode;return this.path.push(document,window),this.path})},function(t,e){Math.sign=Math.sign||function(t){return 0===(t=+t)||isNaN(t)?t:t>0?1:-1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Chart=e.methods=e.setTheme=e.awaitRedraw=e.resizeHandler=e.vmdom=void 0,n(41),n(42);var r=n(1);e.vmdom={sv:r.sv};var i=n(1);Object.defineProperty(e,"resizeHandler",{enumerable:!0,get:function(){return i.resizeHandler}}),Object.defineProperty(e,"awaitRedraw",{enumerable:!0,get:function(){return i.awaitRedraw}}),Object.defineProperty(e,"setTheme",{enumerable:!0,get:function(){return i.setTheme}});var o=n(7);Object.defineProperty(e,"methods",{enumerable:!0,get:function(){return o.methods}});var a=n(57);Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return a.Chart}})},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(44),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(12))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,i,o,a,s,c=1,l={},u=!1,h=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){p(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){p(t.data)},r=function(t){o.port2.postMessage(t)}):h&&"onreadystatechange"in h.createElement("script")?(i=h.documentElement,r=function(t){var e=h.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):r=function(t){setTimeout(p,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&p(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),r=function(e){t.postMessage(a+e,"*")}),f.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var i={callback:t,args:e};return l[c]=i,r(c),c++},f.clearImmediate=d}function d(t){delete l[t]}function p(t){if(u)setTimeout(p,0,t);else{var e=l[t];if(e){u=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}(e)}finally{d(t),u=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(12),n(45))},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var c,l=[],u=!1,h=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):h=-1,l.length&&d())}function d(){if(!u){var t=s(f);u=!0;for(var e=l.length;e;){for(c=l,l=[];++h<e;)c&&c[h].run();h=-1,e=l.length}c=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{return r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function v(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new p(t,e)),1!==l.length||u||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){
|
|
12
|
+
if(window.dhx&&(window.dhx_legacy=dhx,delete window.dhx),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.dhx=e():t.dhx=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/codebase/",n(n.s=34)}([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.getTextLines=e.getCloneObject=e.rgbToHex=e.getStringWidth=e.getMinArrayNumber=e.getMaxArrayNumber=e.isEmptyObj=e.isType=e.compare=e.debounce=e.downloadFile=e.isNumeric=e.range=e.isId=e.isDefined=e.wrapBox=e.unwrapBox=e.detectWidgetClick=e.singleOuterClick=e.isExistValue=e.findIndex=e.naturalSort=e.copy=e.extend=e.extendComponent=e.uid=void 0;var i=n(5),o=(new Date).valueOf();function a(t,e,n){"function"==typeof e[n]?t[n]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e[n].apply(e,t)}:Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){return e[n]=t},enumerable:!0,configurable:!0})}e.uid=function(){return"u"+o++},e.extendComponent=function(t,e){if(!e)return t;for(var n=0,r=Object.keys(e);n<r.length;n++){a(t,e,c=r[n])}for(var i=Object.getPrototypeOf(e);i&&i!==Object.prototype;){for(var o=0,s=Object.getOwnPropertyNames(i);o<s.length;o++){var c=s[o];t.hasOwnProperty(c)||a(t,e,c)}i=Object.getPrototypeOf(i)}return t},e.extend=function t(e,n,r){if(void 0===r&&(r=!0),n)for(var i in n){var o=n[i],a=e[i];void 0===o?delete e[i]:!r||"object"!=typeof a||a instanceof Date||a instanceof Array?e[i]=o:t(a,o)}return e},e.copy=function(t,e){var n={};for(var r in t)e&&r.startsWith("$")||(n[r]=t[r]);return n},e.naturalSort=function(t){return t.sort((function(t,e){return"string"==typeof t?t.localeCompare(e):t-e}))},e.findIndex=function(t,e){for(var n=t.length,r=0;r<n;r++)if(e(t[r]))return r;return-1},e.isExistValue=function(t,e){var n=e.toString(),r=t.toString();return!(n.length>r.length)&&r.toLowerCase().includes(n.toLowerCase())},e.singleOuterClick=function(t){var e=function(n){t(n)&&document.removeEventListener("click",e)};document.addEventListener("click",e)},e.detectWidgetClick=function(t,e){var n=function(n){return e((0,i.locate)(n,"data-dhx-widget-id")===t)};return document.addEventListener("click",n),function(){return document.removeEventListener("click",n)}},e.unwrapBox=function(t){return Array.isArray(t)?t[0]:t},e.wrapBox=function(t){return Array.isArray(t)?t:[t]},e.isDefined=function(t){return null!=t},e.isId=function(t){return"number"==typeof t||"string"==typeof t&&""!==t},e.range=function(t,e){if(t>e)return[];for(var n=[];t<=e;)n.push(t++);return n},e.isNumeric=function(t){return!isNaN(t-parseFloat(t))},e.downloadFile=function(t,e,n){void 0===n&&(n="text/plain");var r=new Blob([t],{type:n});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(r,e);else{var i=document.createElement("a"),o=URL.createObjectURL(r);i.href=o,i.download=e,document.body.appendChild(i),i.click(),setTimeout((function(){document.body.removeChild(i),window.URL.revokeObjectURL(o)}),0)}},e.debounce=function(t,e,n){var r;return function(){for(var i=this,o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=n&&!r;clearTimeout(r),r=setTimeout((function(){r=null,n||t.apply(i,o)}),e),s&&t.apply(this,o)}},e.compare=function t(e,n){for(var r in e){if(e.hasOwnProperty(r)!==n.hasOwnProperty(r))return!1;switch(typeof e[r]){case"object":if(!t(e[r],n[r]))return!1;break;case"function":if(void 0===n[r]||"compare"!==r&&e[r].toString()!==n[r].toString())return!1;break;default:if(e[r]!==n[r])return!1}}for(var r in n)if(!e.hasOwnProperty(r))return!1;return!0};e.isType=function(t){return((Object.prototype.toString.call(t).match(/^\[object (\S+?)\]$/)||[])[1]||"undefined").toLowerCase()};e.isEmptyObj=function(t){for(var e in t)return!1;return!0};e.getMaxArrayNumber=function(t){if(t.length){for(var e=-1/0,n=0,r=t.length;n<r;n++)t[n]>e&&(e=t[n]);return e}};e.getMinArrayNumber=function(t){if(t.length){for(var e=1/0,n=0,r=t.length;n<r;n++)t[n]<e&&(e=t[n]);return e}};e.getStringWidth=function(t,e){e=r({font:"normal 14px Roboto",lineHeight:20},e);var n=document.createElement("canvas"),o=n.getContext("2d");e.font&&(o.font=e.font);var a=o.measureText(t).width;return(0,i.isIE)()||n.remove(),a};e.rgbToHex=function(t){if("#"===t.substr(0,1))return t;if("rgb"===t.substr(0,3)){var e=/(.*?)rgb[a]?\((\d+), *(\d+), *(\d+),* *([\d+.]*)\)/.exec(t),n=parseInt(e[2],10).toString(16).padStart(2,"0"),r=parseInt(e[3],10).toString(16).padStart(2,"0"),i=parseInt(e[4],10).toString(16).padStart(2,"0");return"#".concat(n).concat(r).concat(i)}},e.getCloneObject=function t(e){if(!e)return e;var n=Array.isArray(e)?[]:{};for(var r in e){var i=e[r];i instanceof Date?n[r]=new Date(i):n[r]="object"==typeof i?t(i):i}return n};var s=function(t){var e=t.text;return t.ctx.measureText(e).width},c=function(t){for(var e=t.ctx,n=t.word,r=t.maxWidth,i=[],o="",a=0;a<n.length;a++)o+=n[a],s({text:o,ctx:e})>r&&(i.push(o.slice(0,-1)),o=n[a]);return o&&i.push(o),i};e.getTextLines=function(t){for(var e=t.ctx,n=t.text,r=t.maxWidth,i=n.split(" "),o="",a="",l=[],u=0;u<i.length;u++){var h=i[u];if(s({text:h,ctx:e})>r)for(var f=0,d=c({word:h,ctx:e,maxWidth:r});f<d.length;f++){var p=d[f];a+="".concat(p," "),s({text:a.trimEnd(),ctx:e})>r?(l.push(o.trimEnd()),o="".concat(p," "),a="".concat(p," ")):o+="".concat(p," ")}else a+="".concat(h," "),s({text:a.trimEnd(),ctx:e})>r&&u>0?(l.push(o.trimEnd()),o="".concat(h," "),a="".concat(h," ")):o+="".concat(h," ");u===i.length-1&&l.push(o.trimEnd())}return l}},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.getViewHeight=e.setTheme=e.awaitRedraw=e.resizeHandler=e.resizer=e.disableHelp=e.KEYED_LIST=e.inject=e.create=e.view=e.sv=e.el=void 0;var r=n(47),i=n(5);function o(t){var n=window.ResizeObserver,r=function(e){var n=e.el.offsetHeight,r=e.el.offsetWidth;t(r,n)};return n?(0,e.el)("div.dhx-resize-observer",{_hooks:{didInsert:function(t){new n((function(){return r(t)})).observe(t.el)}}}):(0,e.el)("iframe.dhx-resize-observer",{_hooks:{didInsert:function(t){t.el.contentWindow.onresize=function(){return r(t)},r(t)}}})}e.el=r.defineElement,e.sv=r.defineSvgElement,e.view=r.defineView,e.create=r.createView,e.inject=r.injectView,e.KEYED_LIST=r.KEYED_LIST,e.disableHelp=function(){r.DEVMODE.mutations=!1,r.DEVMODE.warnings=!1,r.DEVMODE.verbose=!1,r.DEVMODE.UNKEYED_INPUT=!1},e.resizer=o,e.resizeHandler=function(t,n){return(0,e.create)({render:function(){return o(n)}}).mount(t)},e.awaitRedraw=function(){return new t((function(t){requestAnimationFrame((function(){t()}))}))},e.setTheme=function(t,e){void 0===t&&(t="light");var n="data-dhx-theme";e||document.querySelectorAll("[".concat(n,"]")).forEach((function(t){return t.removeAttribute(n)})),e=e||document.documentElement,(0,i.toNode)(e).setAttribute(n,t)},e.getViewHeight=function(t,n){var r=(0,e.create)({render:function(){return(0,e.el)("div",{style:{position:"absolute",visibility:"hidden",width:n}},[t])}});r.mount(document.body);var i=r.node.el.offsetHeight;return r.unmount(),i}}).call(this,n(4))},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.checkPositions=e.superposition=e.getSizesSVGText=e.getScales=e.getClassesForRotateScale=e.calcPointRef=e.verticalBottomText=e.verticalTopText=e.verticalCenteredText=e.roundToTwoNumAfterPoint=e.euclideanDistance=e.getRadialGradient=e.linearGradient=e.getFontStyle=e.getColorShade=e.getTextWidth=e.log10=e.locator=e.getDefaultColor=void 0;var i,o,a=n(1),s=["#2A9D8F","#78586F","#E76F51","#E5A910","#11A3D0","#985F99","#217B70","#BD9391","#9C89B8","#734B5E","#D66BA0","#5C5D8D"],c=["#237396","#2780A8","#3892A3","#4DA3A0","#67BF99"];function l(t){var e={};return function(n){return e[n]?e[n]:e[n]=t(n)}}e.getDefaultColor=function(t,e){return void 0===t&&(t=0),e?c[t]:s[t]},e.locator=function(t){return t?"string"==typeof t?function(e){return e[t]}:t:function(){return""}},e.log10=function(t){return Math.log(t)/Math.LN10},e.getTextWidth=(i=function(t,e){void 0===e&&(e="");var n=document.createElement("canvas").getContext("2d");return e&&(n.font=e),n.measureText(t).width},o={},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=o,r=0;r<t.length-1;r++)n[t[r]]=n[t[r]]||{},n=n[t[r]];var a=t.length-1;return n[a]?n[a]:n[a]=i.apply(void 0,t)});var u=l((function(t){var e=document.createElement("canvas").getContext("2d");e.fillStyle=t,e.fillRect(0,0,2,2);var n=e.getImageData(1,1,1,1).data;return[n[0],n[1],n[2]]}));function h(t,e){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}e.getColorShade=function(t,e){var n=u(t).map((function(t){return Math.floor(t*e+255*(1-e))})),r=n[0],i=n[1],o=n[2];return"rgb(".concat(r,",").concat(i,",").concat(o,")")},e.getFontStyle=l((function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("class","dhx_chart");var n=document.createElementNS("http://www.w3.org/2000/svg","text");n.setAttribute("class",t),e.setAttribute("visibility","hidden"),n.textContent="test",e.appendChild(n),document.body.appendChild(e);var r=getComputedStyle(n),i="".concat(r.fontSize," ").concat(r.fontFamily);return document.body.removeChild(e),i})),e.linearGradient=function(t,e){var n=t.stops.map((function(t){return(0,a.sv)("stop",{offset:"".concat(100*t.offset,"%"),"stop-color":t.color,"stop-opacity":t.opacity||1})}));return(0,a.sv)("linearGradient",{id:e,gradientTransform:"rotate(90)"},n)},e.getRadialGradient=function(t,e,n){var i=e.map((function(t){return(0,a.sv)("stop",{offset:t.offset,"stop-color":t.color,"stop-opacity":t.opacity||1})}));return(0,a.sv)("radialGradient",r({id:n,cx:0,cy:0,gradientUnits:"userSpaceOnUse"},t),i)},e.euclideanDistance=function(t,e,n,r){return Math.sqrt((t-n)*(t-n)+(e-r)*(e-r))},e.roundToTwoNumAfterPoint=function(t){return Math.round(100*(100*t+Number.EPSILON))/100},e.verticalCenteredText=function(t){return(0,a.sv)("tspan",{dy:"0.5ex",style:{pointerEvents:"none"}},t)},e.verticalTopText=function(t){return(0,a.sv)("tspan",{dy:"-0.5ex"},t)},e.verticalBottomText=function(t){return(0,a.sv)("tspan",{dy:"1.5ex"},t)},e.calcPointRef=function(t,e){return t+"_"+e},e.getClassesForRotateScale=function(t,e){var n="",r=[];switch("left"===t||"top"===t?r.push("start-text","end-text"):"right"!==t&&"bottom"!==t||r.push("end-text","start-text"),t){case"left":case"right":0===e?n=r[1]:e>0?180===e?n=r[0]:e>180?e<270?n=r[0]:e>270&&(n=r[1]):e<180&&(e>90?n=r[0]:e<90&&(n=r[1])):e<0&&(-180===e?n=r[0]:e<-180?e>-270?n=r[0]:e<-270&&(n=r[1]):e>-180&&(e<-90?n=r[0]:e>-90&&(n=r[1])));break;case"top":case"bottom":e>0?e>180?n=r[0]:e<180&&(n=r[1]):e<0&&(e>-180?n=r[0]:e<-180&&(n=r[1]))}return n},e.getScales=function(t){var e=[];for(var n in t){var r=t[n];(r.min||r.max||r.maxTicks||r.text||r.value)&&e.push(n)}return e},e.getSizesSVGText=function(t,n){var i=[];return n=r({font:"normal 14px Roboto",lineHeight:18},n),i.push((0,e.getTextWidth)(t,n.font)),i.push(n.lineHeight),i},e.superposition=h,e.checkPositions=function(t,e,n,r,i){if(h(t,e)){var o=i.right?e.y-t.y+t.height:e.y-e.height-t.y,a=i.text1.y+o;Math.abs(a)+i.dy>r&&(a=a>0?r+i.dy:-r+i.dy,i.changeSector=!i.changeSector);var s=Math.sqrt(Math.pow(n,2)-Math.pow((a-i.dy)*n/r,2));s=i.right?s:-s,i.changeSector&&(s*=-1,i.line*=-1,t.class=i.right?"pie-value end-text":"pie-value start-text"),i.text1.x=s,i.text1.y=a,i.text2.x=s,i.text2.y=a+16}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.splitCsv=e.throwMoveWarning=e.isOnlyPermanentFilters=e.hasJsonOrArrayStructure=e.isTreeCollection=e.copyWithoutInner=e.toDataDriver=e.toProxy=e.dhxError=e.dhxWarning=e.isDebug=e.findByConf=e.naturalCompare=e.isEqualObj=void 0;var r=n(0),i=n(8),o=n(22);function a(t){console.warn(t)}e.isEqualObj=function(t,e){for(var n in t)if(t[n]!==e[n]||Array.isArray(t[n]))return!1;return!0},e.naturalCompare=function(t,e){if(isNaN(t)||isNaN(e)){var n=[],r=[];for(t.replace(/(\d+)|(\D+)/g,(function(t,e,r){n.push([e||1/0,r||""])})),e.replace(/(\d+)|(\D+)/g,(function(t,e,n){r.push([e||1/0,n||""])}));n.length&&r.length;){var i=n.shift(),o=r.shift(),a=i[0]-o[0]||i[1].localeCompare(o[1]);if(a)return a}return n.length-r.length}return t-e},e.findByConf=function(t,e,n,r){if("function"==typeof e){if(e.call(this,t,n,r))return t}else if(e.by&&e.match&&t[e.by]===e.match)return t},e.isDebug=function(){var t=window.dhx;if(void 0!==t)return void 0!==t.debug&&t.debug},e.dhxWarning=a,e.dhxError=function(t){throw new Error(t)},e.toProxy=function(t){var e=typeof t;return"string"===e?new i.DataProxy(t):"object"===e?t:void 0},e.toDataDriver=function(t){if("string"==typeof t){var e=window.dhx,n=e&&e.dataDrivers||o.dataDrivers;if(n[t])return new n[t];console.warn("Incorrect data driver type:",t),console.warn("Available types:",JSON.stringify(Object.keys(n)))}else if("object"==typeof t)return t},e.copyWithoutInner=function(t,e){var n={};for(var r in t)r.startsWith("$")||e&&e[r]||(n[r]=t[r]);return n},e.isTreeCollection=function(t){return Boolean(t.getRoot)},e.hasJsonOrArrayStructure=function(t){if("object"==typeof t)return!0;if("string"!=typeof t)return!1;try{var e=JSON.parse(t);return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}catch(t){return!1}},e.isOnlyPermanentFilters=function(t){return!(!t||(0,r.isEmptyObj)(t))&&Object.keys(t).every((function(e){var n;return null===(n=t[e].config)||void 0===n?void 0:n.permanent}))},e.throwMoveWarning=function(t,e){return void 0===e&&(e=!0),a("item with ID ".concat(t," not ").concat(e?"moved":"found")),null},e.splitCsv=function(t,e){return t.trim().split(new RegExp("".concat(e,'(?=(?:[^"]*"[^"]*")*[^"]*$)')))}},function(t,e,n){(function(e,n){!function(){e="undefined"!=typeof window?window:this;var r=1,i={},o=!1;function a(t){e.setImmediate?n(t):e.importScripts?setTimeout(t):(r++,i[r]=t,e.postMessage(r,"*"))}function s(t){"use strict";if("function"!=typeof t&&null!=t)throw TypeError();if("object"!=typeof this||this&&this.then)throw TypeError();var e,n,r=this,i=0,o=0,c=[];r.promise=r,r.resolve=function(t){return e=r.fn,n=r.er,i||(o=t,i=1,a(h)),r},r.reject=function(t){return e=r.fn,n=r.er,i||(o=t,i=2,a(h)),r},r._d=1,r.then=function(t,e){if(1!=this._d)throw TypeError();var n=new s;return n.fn=t,n.er=e,3==i?n.resolve(o):4==i?n.reject(o):c.push(n),n},r.catch=function(t){return r.then(null,t)};var l=function(t){i=t||4,c.map((function(t){3==i&&t.resolve(o)||t.reject(o)}))};try{"function"==typeof t&&t(r.resolve,r.reject)}catch(t){r.reject(t)}return r;function u(t,e,n,r){if(2==i)return r();if("object"!=typeof o&&"function"!=typeof o||"function"!=typeof t)r();else try{var a=0;t.call(o,(function(t){a++||(o=t,e())}),(function(t){a++||(o=t,n())}))}catch(t){o=t,n()}}function h(){var t;try{t=o&&o.then}catch(t){return o=t,i=2,h()}u(t,(function(){i=1,h()}),(function(){i=2,h()}),(function(){try{1==i&&"function"==typeof e?o=e(o):2==i&&"function"==typeof n&&(o=n(o),i=1)}catch(t){return o=t,l()}o==r?(o=TypeError(),l()):u(t,(function(){l(3)}),l,(function(){l(1==i&&3)}))}))}}e.setImmediate||e.addEventListener("message",(function(t){if(t.source==e)if(o)a(i[t.data]);else{o=!0;try{i[t.data]()}catch(t){}delete i[t.data],o=!1}})),s.resolve=function(t){if(1!=this._d)throw TypeError();return t instanceof s?t:new s((function(e){e(t)}))},s.reject=function(t){if(1!=this._d)throw TypeError();return new s((function(e,n){n(t)}))},s.all=function(t){if(1!=this._d)throw TypeError();if(!(t instanceof Array))return s.reject(TypeError());var e=new s;return function n(r,i){if(i)return e.resolve(i);if(r)return e.reject(r);0==t.reduce((function(t,e){return e&&e.then?t+1:t}),0)&&e.resolve(t),t.map((function(e,r){e&&e.then&&e.then((function(e){return t[r]=e,n(),e}),n)}))}(),e},s.race=function(t){if(1!=this._d)throw TypeError();if(!(t instanceof Array))return s.reject(TypeError());if(0==t.length)return new s;var e=new s;return function n(r,i){if(i)return e.resolve(i);if(r)return e.reject(r);0==t.reduce((function(t,e){return e&&e.then?t+1:t}),0)&&e.resolve(t),t.map((function(t,e){t&&t.then&&t.then((function(t){n(null,t)}),n)}))}(),e},s._d=1,t.exports=s}()}).call(this,n(12),n(41).setImmediate)},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)};function i(t,e,n){for(void 0===e&&(e="data-dhx-id"),void 0===n&&(n="target"),t instanceof Event&&(t=t[n]);t;){if(t.getAttribute&&t.getAttribute(e))return t;t=t.parentNode}}Object.defineProperty(e,"__esModule",{value:!0}),e.getNodeOffset=e.getElementFromPoint=e.getPageLinksCss=e.getPageInlineCss=e.getLabelStyle=e.getPageCss=e.fitPosition=e.calculatePosition=e.getRealPosition=e.isFirefox=e.isSafari=e.isIE=e.getScrollbarHeight=e.getScrollbarWidth=e.getBox=e.locateNodeByClassName=e.locate=e.locateNode=e.eventHandler=e.toNode=void 0,e.toNode=function(t){var e;return"string"==typeof t?document.getElementById(t)||document.querySelector("[data-cell-id=".concat(t,"]"))||document.querySelector(t)||(null===(e=document.querySelector("[data-dhx-root-id=".concat(t,"]")))||void 0===e?void 0:e.parentElement)||document.body:t||document.body},e.eventHandler=function(t,e,n){var r=Object.keys(e);return function(i){var o=t(i);if(void 0!==o){var a=i.target;t:for(;a;){var s=a.getAttribute&&a.getAttribute("class")||"";if(s.length)for(var c=s.split(" "),l=0;l<r.length;l++)if(c.includes(r[l])){if(!1===e[r[l]](i,o)||i.cancelBubble)return!1;break t}a=a.parentNode}}return"function"==typeof n&&n(i),!0}},e.locateNode=i,e.locate=function(t,e){void 0===e&&(e="data-dhx-id");var n=i(t,e);return n?n.getAttribute(e):""},e.locateNodeByClassName=function(t,e){for(t instanceof Event&&(t=t.target);t;){if(e){if(t.classList&&t.classList.contains(e))return t}else if(t.getAttribute&&t.getAttribute("data-dhx-id"))return t;t=t.parentNode}},e.getBox=function(t){var e=t.getBoundingClientRect(),n=document.body,r=window.pageYOffset||n.scrollTop,i=window.pageXOffset||n.scrollLeft;return{top:e.top+r,left:e.left+i,right:n.offsetWidth-e.right,bottom:n.offsetHeight-e.bottom,width:e.right-e.left,height:e.bottom-e.top}};var o=-1;e.getScrollbarWidth=function(){if(o>-1)return o;var t=document.createElement("div");return document.body.appendChild(t),t.style.cssText="position: absolute;left: -99999px;overflow:scroll;width: 100px;height: 100px;",o=t.offsetWidth-t.clientWidth,document.body.removeChild(t),o};var a=-1;function s(t){var e=t.getBoundingClientRect();return{left:e.left+window.pageXOffset,right:e.right+window.pageXOffset,top:e.top+window.pageYOffset,bottom:e.bottom+window.pageYOffset}}function c(){return{rightBorder:window.pageXOffset+window.innerWidth,bottomBorder:window.pageYOffset+window.innerHeight}}function l(t,e){var n,i,o=c(),a=o.rightBorder,s=o.bottomBorder-t.bottom-e.height,l=t.top-e.height;if("bottom"===e.mode?s>=0?i=t.bottom:l>=0&&(i=l):l>=0?i=l:s>=0&&(i=t.bottom),s<0&&l<0){if(e.auto)return u(t,r(r({},e),{mode:"right",auto:!1}));i=s>l?t.bottom:l}if(e.centering)n=function(t,e,n){var r=(e-(t.right-t.left))/2,i=t.left-r,o=t.right+r;return i>=0&&o<=n?i:i<0?0:n-e}(t,e.width,a);else{var h=a-t.left-e.width,f=t.right-e.width;n=h>=0?t.left:f>=0?f:f>h?t.left:f}return{left:n,top:i}}function u(t,e){var n,i,o=c(),a=o.rightBorder,s=o.bottomBorder,u=a-t.right-e.width,h=t.left-e.width;if("right"===e.mode?u>=0?n=t.right:h>=0&&(n=h):h>=0?n=h:u>=0&&(n=t.right),h<0&&u<0){if(e.auto)return l(t,r(r({},e),{mode:"bottom",auto:!1}));n=h>u?h:t.right}if(e.centering)i=function(t,e,n){var r=(e-(t.bottom-t.top))/2,i=t.top-r,o=t.bottom+r;return i>=0&&o<=n?i:i<0?0:n-e}(t,e.height,s);else{var f=t.bottom-e.height,d=s-t.top-e.height;i=d>=0?t.top:f>0||f>d?f:t.top}return{left:n,top:i}}function h(t,e){var n="bottom"===e.mode||"top"===e.mode?l(t,e):u(t,e),r=n.left,i=n.top;return{left:Math.round(r)+"px",top:Math.round(i)+"px",minWidth:Math.round(e.width)+"px",position:"absolute"}}e.getScrollbarHeight=function(){if(a>-1)return a;var t=document.createElement("div");return document.body.appendChild(t),t.style.cssText="position: absolute;left: -99999px;overflow:scroll;width: 100px;height: 100px;",a=t.offsetHeight-t.clientHeight,document.body.removeChild(t),a},e.isIE=function(){var t=window.navigator.userAgent;return t.includes("MSIE ")||t.includes("Trident/")},e.isSafari=function(){var t=function(t){return t.test(window.navigator.userAgent)},e=t(/Chrome/),n=t(/Firefox/);return!e&&!n&&t(/Safari/)},e.isFirefox=function(){var t=function(t){return t.test(window.navigator.userAgent)},e=t(/Chrome/),n=t(/Safari/);return!e&&!n&&t(/Firefox/)},e.getRealPosition=s,e.calculatePosition=h,e.fitPosition=function(t,e){return h(s(t),e)},e.getPageCss=function(){for(var t=[],e=0;e<document.styleSheets.length;e++)for(var n=document.styleSheets[e],r=("cssRules"in n?n.cssRules:n.rules),i=0;i<r.length;i++){var o=r[i];"cssText"in o?t.push(o.cssText):t.push("".concat(o.selectorText," {\n").concat(o.style.cssText,"\n}\n"))}return t.join("\n")},e.getLabelStyle=function(t){var e=t.helpMessage,n=t.type,r=t.labelWidth,i=t.label,o=r&&r.toString().startsWith("0"),a="text"!==n&&t.required;return!!(e||a||!(!i||i&&o)||r&&!o)&&{style:(i||r)&&!o&&{width:r,"max-width":"100%"},label:i&&o?null:i}};var f=function(t){return t.href&&!t.href.startsWith(window.location.origin)};e.getPageInlineCss=function(){for(var t=[],e=0;e<document.styleSheets.length;e++){var n=document.styleSheets[e];if(!f(n))for(var r=("cssRules"in n&&n.cssRules.length?n.cssRules:n.rules),i=0;i<r.length;i++){var o=r[i];"cssText"in o?t.push(o.cssText):t.push("".concat(o.selectorText," {\n").concat(o.style.cssText,"\n}\n"))}}return t.join("\n")},e.getPageLinksCss=function(t){var e=[];if(t)t.forEach((function(t){return e.push('<link href="'.concat(t,'" rel="stylesheet"/>'))}));else for(var n=0;n<document.styleSheets.length;n++){var r=document.styleSheets[n];f(r)&&e.push('<link href="'.concat(r.href,'" rel="stylesheet"/>'))}return e.join("\n")},e.getElementFromPoint=function(t){var e,n,r=t.targetTouches?(null===(e=t.targetTouches[0])||void 0===e?void 0:e.clientX)||0:t.clientX,i=t.targetTouches?(null===(n=t.targetTouches[0])||void 0===n?void 0:n.clientY)||0:t.clientY,o=document.elementFromPoint(r,i);return(null==o?void 0:o.shadowRoot)?o.shadowRoot.elementFromPoint(r,i):o},e.getNodeOffset=function(t,e){var n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return{left:n.left-r.left,top:n.top-r.top}}},function(t,e,n){"use strict";var r,i,o,a;Object.defineProperty(e,"__esModule",{value:!0}),e.DataDriver=e.DragEvents=e.DataEvents=e.TreeFilterType=void 0,function(t){t.all="all",t.level="level",t.leafs="leafs"}(r||(e.TreeFilterType=r={})),function(t){t.afterAdd="afteradd",t.beforeAdd="beforeadd",t.removeAll="removeall",t.beforeRemove="beforeremove",t.afterRemove="afterremove",t.change="change",t.filter="filter",t.dataRequest="dataRequest",t.load="load",t.loadError="loaderror",t.beforeLazyLoad="beforelazyload",t.afterLazyLoad="afterlazyload",t.beforeItemLoad="beforeItemLoad",t.afterItemLoad="afterItemLoad",t.beforeGroup="beforeGroup",t.afterGroup="afterGroup",t.beforeUnGroup="beforeUnGroup",t.afterUnGroup="afterUnGroup"}(i||(e.DataEvents=i={})),function(t){t.beforeDrag="beforeDrag",t.dragStart="dragStart",t.dragOut="dragOut",t.dragIn="dragIn",t.canDrop="canDrop",t.cancelDrop="cancelDrop",t.beforeDrop="beforeDrop",t.afterDrop="afterDrop",t.afterDrag="afterDrag"}(o||(e.DragEvents=o={})),function(t){t.json="json",t.csv="csv",t.xml="xml"}(a||(e.DataDriver=a={}))},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(6),e),i(n(21),e),i(n(52),e),i(n(53),e),i(n(8),e),i(n(55),e),i(n(3),e),i(n(15),e),i(n(23),e),i(n(56),e),i(n(22),e),i(n(14),e),i(n(25),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DataProxy=void 0;var r=n(14),i=function(){function t(t,e){void 0===e&&(e={}),this.url=this._url=t,this.config=e}return t.prototype.updateUrl=function(t,e){for(var n in void 0===e&&(e={}),this._url=this.url=t||this._url,this.url+=this.url.includes("?")?"&":"?",e)this.config[n]=e[n],this.url+="".concat(n,"=").concat(encodeURIComponent(e[n]),"&");this.url=this.url.slice(0,-1)},t.prototype.load=function(){return r.ajax.get(this.url,void 0,this.config)},t.prototype.save=function(t,e){switch(e){case"delete":return r.ajax.delete(this.url,t,this.config);case"update":return r.ajax.put(this.url,t,this.config);default:return r.ajax.post(this.url,t,this.config)}},t}();e.DataProxy=i},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.ChartEvents=void 0,function(t){t.toggleSeries="toggleSeries",t.chartMouseMove="chartMouseMove",t.chartMouseLeave="chartMouseLeave",t.resize="resize",t.serieClick="serieClick",t.seriaMouseMove="seriaMouseMove",t.seriaMouseLeave="seriaMouseLeave"}(r||(e.ChartEvents=r={}))},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.radarScale=e.pieLikeHandlers=e.shiftCoordinates=e.getCoordinates=void 0;var i=n(1),o=n(2);function a(t,e,n,r){return r&&(t+=2*e*Math.asin(.5*r/e)/(2*Math.PI*e)),[Math.cos(2*Math.PI*t)*e,Math.sin(2*Math.PI*t)*n]}function s(t,e,n){t.setAttribute("transform","translate(".concat(e,", ").concat(n,") scale(1.05)")),t.classList.add("dhx_pie-transform-delay")}function c(t){t.setAttribute("transform","translate(0, 0)"),t.classList.remove("dhx_pie-transform-delay")}function l(t,e){var n=1e-6;return t-n<e&&t+n>e}function u(t,e){return"M".concat(-t,",0A").concat(t,",").concat(t," 0 ").concat(e?0:1," 1 ").concat(t,",0A").concat(t,",").concat(t," 0 ").concat(e?0:1," 1 ").concat(-t,",0")}e.getCoordinates=a,e.shiftCoordinates=function(t,e,n){return[t[0]+e,t[1]+n]},e.pieLikeHandlers={onmouseover:function(t,e,n,r){var i=r.parent.attrs.id;s(r.el,t,e),r.parent.body.forEach((function(n){n.attrs.id!=="".concat(i,"-text")&&n.attrs.id!=="".concat(i,"-connector")||s(n.el,t,e)}))},onmouseout:function(t,e){var n=e.parent.attrs.id;c(e.el),e.parent.body.forEach((function(t){t.attrs.id!=="".concat(n,"-text")&&t.attrs.id!=="".concat(n,"-connector")||c(t.el)}))}},e.radarScale=function(t,e,n){var s;s=n>e?e/2:n/2;var c=1/t.scales.length,h=c>.5?1:0,f=[],d=function(t,e){return(0,i.sv)("circle",{cx:0,cy:0,r:t,fill:e,stroke:"none",class:"background-circle"})}(s,"#fafafa");f.push(d);for(var p,v=-.25,g=[],_=t.axis,y="radar-grid ".concat(t.zebra?"zebra":""),m=1;m<_.length;m+=2){var x=s*_[m-1],b=s*_[m],w="".concat(u(x,!0)," ").concat(u(b,!1)),O=(0,i.sv)("path",{d:w,fill:"none",stroke:"black",class:y});g.push(O)}if(f.push(g),t.scales.forEach((function(t){var e=a(v,s,s),n=e[0],r=e[1],u=v+c,d=a(u,s,s),p=d[0],g=d[1],_="M ".concat(n," ").concat(r," A ").concat(s," ").concat(s," 0 ").concat(h," 1 ").concat(p," ").concat(g," L 0 0"),y=(0,i.sv)("path",{d:_,stroke:"black",fill:"none",class:"radar-scale"});f.push(y);var m=[8,8],x=m[0],b=m[1],w=l(v,0)||l(v,.5)?0:v<0||v>.5?-x:x,O=l(v,-.25)||l(v,.25)?0:v<-.25||v>.25?-b:b;if(l(v,-.25)||l(v,.25)){var D=l(v,-.25)?o.verticalTopText:o.verticalBottomText,S=(0,i.sv)("text",{x:n+O,y:r+w,class:"scale-text"},[D(t)]);f.push(S)}else{var T=v>=-.25&&v<=.25?"start-text scale-text":"end-text scale-text";S=(0,i.sv)("text",{x:n+O,y:r+w,class:T},[(0,o.verticalCenteredText)(t)]);f.push(S)}v=u})),v=-.25,t.realAxis){var D=t.realAxis.map((function(t,e){var n=a(-.25,s*_[e],s*_[e]),r=n[0],c=n[1];return(0,i.sv)("text",{x:r,y:c,dx:-10,class:"radar-axis-text"},[(0,o.verticalCenteredText)(t.toString())])}));f.push(D)}return(0,i.sv)("g",r({transform:"translate(".concat(e/2,", ").concat(n/2,")")},(p=t.attribute,{"aria-label":"x-axis".concat(p?", "+p:"")})),f)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(9),o=n(2),a=n(28),s=n(29),c=function(){function t(t,e,n){var o=this;this._data=t,this._handlers={onclick:function(t,e){return o._events.fire(i.ChartEvents.serieClick,[t,e])},onmousemove:function(t,e,n){return o._events.fire(i.ChartEvents.seriaMouseMove,[t,e,n])},onmouseleave:function(t,e){return o._events.fire(i.ChartEvents.seriaMouseLeave,[t,e])}},this.id=e.id=e.id||(0,r.uid)(),this._events=n,this._points=[],this._setDefaults(e)}return t.prototype.toggle=function(){this.config.active=!this.config.active},t.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[0],o[1]);n[0]>a&&(n[0]=a,n[1]=o[0],n[2]=o[1],n[3]=o[2])}return n},t.prototype.getClosestVertical=function(t){for(var e=[1/0,null,null,null,null],n=0,r=this._points;n<r.length;n++){var i=r[n],o=Math.abs(i[0]-t);e[0]>o&&(e[0]=o,e[1]=i[0],e[2]=i[1],e[3]=i[2],e[4]=i[4])}return e},t.prototype.getTooltipType=function(t){return"top"},t.prototype.getTooltipText=function(t){if((this._data.getItem(t)||"calendarHeatMap"===this.config.type)&&this.config.tooltip){var e=void 0,n=void 0;if("calendarHeatMap"===this.config.type){if(n=this._points.find((function(e){return e[2]===t.toString()}))){var r=new Date;r.setTime(n[0]),n=[(0,s.getFormattedDate)(this.config.dateFormat,r),n[1]]}}else e=this._defaultLocator(this._data.getItem(t));return this.config.tooltipTemplate?this.config.tooltipTemplate(e||n):e?e[0]:"".concat(n[1],", <br>").concat(n[0])}},t.prototype.dataReady=function(t){return this._points=[]},t.prototype.paint=function(t,e){return this._calckFinalPoints(t,e)},t.prototype.getPoints=function(){return this._points},t.prototype.addScale=function(t,e){},t.prototype._getClosestDist=function(t,e,n,r){return(0,o.euclideanDistance)(t,e,n,r)},t.prototype._calckFinalPoints=function(t,e){},t.prototype._setDefaults=function(t){this.config=t},t.prototype._defaultLocator=function(t){return[null,null]},t.prototype._getPointType=function(t,e){return(0,a.getShadeHelper)(t,e)},t}();e.default=c},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EventsMixin=e.EventSystem=void 0;var r=function(){function t(t){this.events={},this.context=t||this}return t.prototype.on=function(t,e,n){var r=t.toLowerCase();this.events[r]=this.events[r]||[],this.events[r].push({callback:e,context:n||this.context})},t.prototype.detach=function(t,e){var n=t.toLowerCase(),r=this.events[n];if(e&&r&&r.length)for(var i=r.length-1;i>=0;i--)r[i].context===e&&r.splice(i,1);else this.events[n]=[]},t.prototype.fire=function(t,e){void 0===e&&(e=[]);var n=t.toLowerCase();return!this.events[n]||!this.events[n].map((function(t){return t.callback.apply(t.context,e)})).includes(!1)},t.prototype.clear=function(){this.events={}},t}();e.EventSystem=r,e.EventsMixin=function(t){var e=new r(t=t||{});t.detachEvent=e.detach.bind(e),t.attachEvent=e.on.bind(e),t.callEvent=e.fire.bind(e)}},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.ajax=void 0;var r=n(6),i=n(3);function o(t){return t?t.includes("json")?"json":t.includes("xml")?"xml":"text":"text"}function a(e,n,a,s,c){var l=s||{};if(c&&(l.Accept="application/"+c),"GET"!==a&&(l["Content-Type"]=l["Content-Type"]||"application/json"),"GET"===a){var u=n&&"object"==typeof n?function(t){return Object.keys(t).reduce((function(e,n){var r="object"==typeof t[n]?JSON.stringify(t[n]):t[n];return e.push(n+"="+encodeURIComponent(r)),e}),[]).join("&")}(n):n&&"string"==typeof n?n:"";u&&(e+=e.includes("?")?"&":"?",e+=u),n=null}return window.fetch?("application/json"===l["Content-Type"]&&n&&"object"==typeof n&&(n=JSON.stringify(n)),window.fetch(e,{method:a,body:n||null,headers:l}).then((function(e){if(!e.ok)return e.text().then((function(n){return t.reject({status:e.status,statusText:e.statusText,message:n})}));var n=c||o(e.headers.get("Content-Type"));if("raw"===n)return{headers:Object.fromEntries(e.headers.entries()),url:e.url,body:e.body};if(204!==e.status)switch(n){case"json":return e.json();case"xml":var a=(0,i.toDataDriver)(r.DataDriver.xml);return a?e.text().then((function(t){return a.toJsonObject(t)})):e.text();default:return e.text()}}))):new t((function(t,s){var u=new XMLHttpRequest;for(var h in u.onload=function(){u.status>=200&&u.status<300?("raw"===c&&t({url:u.responseURL,headers:u.getAllResponseHeaders().trim().split(/[\r\n]+/).reduce((function(t,e){var n=e.split(": ");return t[n[0]]=n[1],t}),{}),body:u.response}),204===u.status?t():t(function(t,e){switch(e){case"json":return JSON.parse(t);case"text":default:return t;case"xml":var n=(0,i.toDataDriver)(r.DataDriver.xml);return n?n.toJsonObject(t):{parseError:"Incorrect data driver type: 'xml'"}}}(u.responseText,c||o(u.getResponseHeader("Content-Type"))))):s({status:u.status,statusText:u.statusText})},u.onerror=function(){s({status:u.status,statusText:u.statusText,message:u.responseText})},u.open(a,e),l)u.setRequestHeader(h,l[h]);switch(a){case"POST":case"DELETE":case"PUT":u.send(void 0!==n?JSON.stringify(n):"");break;default:u.send()}}))}e.ajax={get:function(t,e,n){return a(t,e,"GET",n&&n.headers,void 0!==n?n.responseType:void 0)},post:function(t,e,n){return a(t,e,"POST",n&&n.headers,void 0!==n?n.responseType:void 0)},put:function(t,e,n){return a(t,e,"PUT",n&&n.headers,void 0!==n?n.responseType:void 0)},delete:function(t,e,n){return a(t,e,"DELETE",n&&n.headers,void 0!==n?n.responseType:void 0)}}}).call(this,n(4))},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.CsvDriver=void 0;var i=n(3),o=function(){function t(t){this.config=r(r({},{skipHeader:0,nameByHeader:!1,rowDelimiter:"\n",columnDelimiter:","}),t),this.config.nameByHeader&&(this.config.skipHeader=1)}return t.prototype.getFields=function(t,e){for(var n=(0,i.splitCsv)(t,this.config.columnDelimiter).map((function(t){return t.replace(/^"(.*)"$/s,"$1").replace(/""/g,'"')})),r={},o=0;o<n.length;o++)r[e?e[o]:o+1]=isNaN(Number(n[o]))?n[o]:parseFloat(n[o]);return r},t.prototype.getRows=function(t){return(0,i.splitCsv)(t,this.config.rowDelimiter)},t.prototype.toJsonArray=function(t){var e=this,n=this.getRows(t),r=this.config.names;if(this.config.skipHeader){var i=n.splice(0,this.config.skipHeader);this.config.nameByHeader&&(r=i[0].trim().split(this.config.columnDelimiter))}return n.map((function(t){return e.getFields(t,r)}))},t.prototype.serialize=function(t,e){var n=t[0]?Object.keys(t[0]).filter((function(t){return!t.startsWith("$")})).join(this.config.columnDelimiter)+this.config.rowDelimiter:"",r=this._serialize(t);return e?r:n+r},t.prototype._serialize=function(t){var e=this;return t.reduce((function(t,n){var r=Object.keys(n),i=r.reduce((function(t,i,o){var a,s;if(i.startsWith("$")||"items"===i)return t;var c=null!==(s=null===(a=n[i])||void 0===a?void 0:a.toString())&&void 0!==s?s:"";return t+(new RegExp("[".concat(e.config.columnDelimiter,'"\n]')).test(c)?'"'.concat(c.replace(/"/g,'""').replace(/\n/g,"\\n"),'"'):c)+(o===r.length-1||r[o+1].startsWith("$")?"":e.config.columnDelimiter)}),"");return n.items?"".concat(t).concat(t?"\n":"").concat(i).concat(e._serialize(n.items)):"".concat(t).concat(t?e.config.rowDelimiter:"").concat(i)}),"")},t}();e.CsvDriver=o},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.Scale=void 0;var i=n(66),o=n(26),a=n(2),s={left:o.left,right:o.right,bottom:o.bottom,top:o.top},c={left:o.leftGrid,right:o.rightGrid,bottom:o.bottomGrid,top:o.topGrid},l=function(){function t(t,e,n){this._data=t,this._padding=!1,this._charts=[],this._position=n,this._setDefaults(e),this._isXDirection="bottom"===n||"top"===n,"radial"!==n&&(this.config.size="left"===n||"right"===n?this.config.size||40+(this.config.title?40:0):this.config.size||20+(this.config.title?40:0))}return t.prototype.addPadding=function(){this._padding=!0},t.prototype.getSize=function(){return this.config.size},t.prototype.scaleReady=function(t){var e=[];this._charts.forEach((function(t){t.getPoints().forEach((function(t){return e.push(t[1])}))})),this._axis=new i.AxisCreator(e,this.config).getScale();var n=this._position;"radial"!==n&&(t[n]+=this.config.size)},t.prototype.point=function(t){return this.config.log?this._logPoint(t):this._isXDirection?(t-this._axis.min)/(this._axis.max-this._axis.min):1-(t-this._axis.min)/(this._axis.max-this._axis.min)},t.prototype.add=function(t){this._charts.push(t)},t.prototype.paint=function(t,e){var n=this;if(this.config.hidden)return null;var r=this._axis.steps.map((function(r){return[n._isXDirection?n.point(r)*t:n.point(r)*e,r]}));return 0===r.length&&"left"===this._position&&(r=[[0,0]]),s[this._position](r,this.config,t,e)},t.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),l=function(e,n){return t._axis.steps.map((function(r){return[t._isXDirection?t.point(r)*e:t.point(r)*n,r]}))}(o,a),u=t.point(t.config.targetValue),h={targetLine:s,dashed:r,grid:n,targetValue:u,hidden:i};return c[e](l,o,a,h)}}},t.prototype._setDefaults=function(t){t.locator&&(this.locator=(0,a.locator)(t.locator)),this.config=r(r({},{scalePadding:20,textPadding:11,grid:!0,targetLine:null,showText:!0}),t)},t.prototype._logPoint=function(t){var e,n=Math.abs(t)/t,r=this._axis.steps,i=r.length-1,o=r.indexOf(t);-1!==o?e=o/i:e=((this._axis.min<0?r.indexOf(0):0)+n*(0,a.log10)(Math.abs(t)))/i;return this._isXDirection?e:1-e},t}();e.Scale=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)});Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),a=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=e.locator):(this.yScale=e,this._yLocator=(0,o.locator)(this.config.value))},e.prototype.paint=function(e,n){t.prototype.paint.call(this,e,n)},e.prototype.dataReady=function(t){var e=this;return this.config.active?(this._points=this._data.map((function(n,r){var i=e._xLocator(n),o=e._yLocator(n)||0,a=[i,o,n.id,i,o];return t&&(a[1]+=t[r][1]),a})),this._points):this._points=[]},e.prototype._calckFinalPoints=function(t,e){var n=this;this._points.forEach((function(r,i){r[0]=n.xScale.point(r[0])*t||0;var o=n.yScale.point(r[1])*e;r[1]=isNaN(o)?"xbar"===n.config.type?0:e:o}))},e.prototype._defaultLocator=function(t){return[this._yLocator(t),this._xLocator(t)]},e.prototype._getCss=function(){return"chart ".concat(this.config.type," ").concat(this.config.css||""," ").concat(this.config.dashed?"dash-line":"")},e}(n(11).default);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)}),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(2),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._center=[0,0],e._tooltipData=[],e}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=this,e=this._data;return this._sum=e.reduce((function(e,n){return n.$hidden?e:e+parseFloat(t._valueLocator(n))}),0),this._points=e.reduce((function(e,n,r){if(n.$hidden)return e;var i=t._textLocator(n),o=t._valueLocator(n),s=o/t._sum,c=t._colorLocator?t._colorLocator(n):(0,a.getDefaultColor)(r);return e.push([s,o,n.id,i,c]),e}),[]),this._points},e.prototype.toggle=function(t){var e=this._data.getItem(t);e&&this._data.update(t,{$hidden:!e.$hidden})},e.prototype.getClosest=function(t,e){for(var n=1-(Math.atan2(t-this._center[0],e-this._center[1])+Math.PI)/Math.PI/2,r=this._points,i=0;i<r.length;i++){if(r[i][0]>=n)return[0,this._tooltipData[i][0],this._tooltipData[i][1],r[i][2]];n-=r[i][0]}return[1/0,null,null,null]},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[0]}},e.prototype.getTooltipType=function(t){return"simple"},e.prototype._setDefaults=function(t){var e=this,n={subType:"basic",paddings:t.useLines?70:50};this.config=o(o({},n),t),this._drawPointType=this._getPointType("empty","none"),this._valueLocator=(0,a.locator)(t.value),this._textLocator=(0,a.locator)(t.text),t.color?this._colorLocator=(0,a.locator)(t.color):t.monochrome&&(this._colorLocator=function(n){return(0,a.getColorShade)(t.monochrome,2*e._getPercent(n))})},e.prototype._defaultLocator=function(t){return[this._valueLocator(t),this._textLocator(t)]},e.prototype._getPercent=function(t){return parseFloat(this._valueLocator(t))/this._sum},e}(n(11).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(1),s=n(2),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.paint=function(e,n){var r=this;t.prototype.paint.call(this,e,n);var i,c=this.config.pointColor||this.config.color,l=[];if(this.config.strokeWidth&&l.push(this._getForm(this._points,this.config,e,n)),this.config.pointType){var u=this._getPointType(this.config.pointType,c);l=l.concat(this._points.map((function(t){return u(t[0],t[1],(0,s.calcPointRef)(t[2],r.id))})).map((function(t,e){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[3]," y=").concat(n[4]):"",tabindex:0}}(t.key,r._points)),r.config.tooltip&&(t.attrs.onmousemove=[r._handlers.onmousemove,r._points[e][2],r.id],t.attrs.onmouseleave=[r._handlers.onmouseleave,r._points[e][2],r.id],t.attrs.onclick=[r._handlers.onmousemove,r._points[e][2],r.id])),t})))}return(0,a.sv)("g",o(o({class:"seria",_key:this.id},(i=this.config,{"aria-label":"chart ".concat(i.value||"")})),{tabindex:0}),l)},e.prototype._getForm=function(t,e,n,r){var i=t.map((function(t,e){return(e?"L":"M")+"".concat(t[0]," ").concat(t[1])})).join(" ");return(0,a.sv)("path",{id:"seria"+e.id,d:i,stroke:e.color,class:this._getCss(),"stroke-width":this.config.strokeWidth,fill:"none"})},e.prototype._setDefaults=function(t){this.config=o(o({},{alpha:1,strokeWidth:2,active:!0,tooltip:!0}),t)},e}(n(17).default);e.default=c},function(t,e,n){"use strict";var r,i,o;Object.defineProperty(e,"__esModule",{value:!0}),e.MessageContainerPosition=e.Position=e.RealPosition=void 0,function(t){t.left="left",t.right="right",t.top="top",t.bottom="bottom",t.center="center"}(r||(e.RealPosition=r={})),function(t){t.right="right",t.bottom="bottom",t.center="center",t.left="left",t.top="top"}(i||(e.Position=i={})),function(t){t.topLeft="top-left",t.topRight="top-right",t.bottomLeft="bottom-left",t.bottomRight="bottom-right"}(o||(e.MessageContainerPosition=o={}))},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.DataCollection=void 0;var o=n(13),a=n(48),s=n(50),c=n(8),l=n(3),u=n(6),h=n(0),f=n(51),d=n(15),p=n(24),v=function(){function t(t,e){var n=this;this._filters={},this._sortingStates=[],this._changes={order:[]},this.config=t||{},this._group=new f.Group,this._sort=new s.Sort,this._loader=new a.Loader(this,this._changes),this.events=e||new o.EventSystem(this),this.events.on(u.DataEvents.dataRequest,(function(t,e){var r=n.dataProxy;r&&r.updateUrl&&(r.updateUrl(null,{from:t,limit:r.config.limit||e-t}),n.load(r))})),this.events.on(u.DataEvents.loadError,(function(t){setTimeout((function(){"string"!=typeof t?(0,l.dhxError)(t):(0,l.dhxWarning)(t)}),0)})),this._reset()}return t.prototype._reset=function(t){void 0===t&&(t={}),t.grouping||this.ungroup(),this._order=[],this._pull={},this._changes={order:[]},this._initFilterOrder=this._initSortOrder=null,this._meta=new WeakMap,this._loaded=!1},t.prototype.group=function(t,e){void 0===e&&(e={}),t||(0,l.dhxError)("The group method has mandatory arguments"),Array.isArray(t)||(0,l.dhxError)("The group method expects an array as an argument"),t.length||(0,l.dhxError)("The array with the group method values cannot be empty"),this.isGrouped()&&this.ungroup();var n=this._group.getGroupConfig(e);this.events.fire(u.DataEvents.beforeGroup,[n])&&(this._parse(this._group.group(t,(null==e?void 0:e.data)||this._order,e),u.DataDriver.json,!0),this.events.fire(u.DataEvents.afterGroup,[this._group.getGroupedFields(),n]))},t.prototype.ungroup=function(){if(this.isGrouped()){var t=this._group.getGroupedFields(),e=this._group.getGroupConfig();this.events.fire(u.DataEvents.beforeUnGroup,[t,e])&&(this._parse(this._group.ungroup(this._order)),this.events.fire(u.DataEvents.afterUnGroup,[t,e]))}},t.prototype.isGrouped=function(){return this._group.isGrouped()},t.prototype.add=function(t,e){var n,r=this;if(this.events.fire(u.DataEvents.beforeAdd,[t]))return n=Array.isArray(t)?t.map((function(t,n){return 0!==n&&e>=0&&(e+=1),r._add((0,h.copy)(t),e)})):this._add((0,h.copy)(t),e),this._reapplyFilters(),n},t.prototype.remove=function(t){var e=this;t instanceof Array?i([],t,!0).map((function(t){e._remove(t)})):(0,h.isId)(t)&&this._remove(t)},t.prototype.removeAll=function(){this._reset(),this.events.fire(u.DataEvents.removeAll),this.events.fire(u.DataEvents.change)},t.prototype.exists=function(t){return!!this._pull[t]},t.prototype.getNearId=function(t){var e;if(!this._pull[t])return(null===(e=this._order[0])||void 0===e?void 0:e.id)||""},t.prototype.getItem=function(t){return this._pull[t]},t.prototype.update=function(t,e,n){var r=this.getItem(t);if(r){if((0,l.isEqualObj)(e,r))return;(0,h.isId)(e.id)&&t!==e.id?((0,l.dhxWarning)("this method doesn't allow changing the id"),(0,l.isDebug)()):(e.parent&&r.parent&&e.parent!==r.parent&&this.move(t,-1,this,e.parent),(0,h.extend)(this._pull[t],e,!1),this.config.update&&this.config.update(this._pull[t]),n||this._onChange("update",t,this._pull[t])),this._reapplyFilters()}else(0,l.dhxWarning)("item not found")},t.prototype.getIndex=function(t){return(0,h.isId)(t)&&(0,h.isDefined)(this._pull[t])?this._order.findIndex((function(e){return(null==e?void 0:e.id)==t})):-1},t.prototype.getId=function(t){if(this._order[t])return this._order[t].id},t.prototype.getLength=function(){return this._order.length},t.prototype.isDataLoaded=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=this._order.length),(0,h.isNumeric)(t)&&(0,h.isNumeric)(e)?0===this._order.slice(t,e).filter((function(t){return t&&t.$empty})).length:(this._loaded||(this._loaded=!this.find((function(t){return t.$empty}))),!!this._loaded)},t.prototype.filter=function(t,e,n){var r,i;if((null==e?void 0:e.$restore)&&(t=this._normalizeFilters(t||this._filters)),!(null==e?void 0:e.add)&&(this._order=this._initFilterOrder||this._order,this._initFilterOrder=null,!(null==e?void 0:e.$restore)))for(var o in this._filters){var a=this._filters[o];(null===(r=a.config)||void 0===r?void 0:r.permanent)?this._applyFilters(a.rule):delete this._filters[o]}if(t&&!(null==e?void 0:e.$restore)&&(i=(null==e?void 0:e.id)||(0,h.uid)(),this._filters[i]={rule:t,config:e||{}}),t&&"function"!=typeof t)if((0,h.isDefined)(t.by))this._applyFilters(t);else for(var o in t)this._applyFilters(t[o]);else this._applyFilters(t);if(!n){var s=this._getPureFilters(this._filters);this.events.fire(u.DataEvents.filter,[(0,h.isEmptyObj)(s)?null:s])}return i},t.prototype.resetFilter=function(t,e){var n,r=t||{},i=r.id,o=r.permanent;if((0,h.isEmptyObj)(t))for(var a in this._filters)(null===(n=this._filters[a].config)||void 0===n?void 0:n.permanent)||delete this._filters[a];else o?this._filters={}:i&&delete this._filters[i];return this.filter(null,{$restore:!0},e),(0,h.isEmptyObj)(this._getPureFilters(this._filters))},t.prototype.getFilters=function(t){var e=this.getRawFilters(t),n=e?this._getPureFilters(e):{};return(0,h.isEmptyObj)(n)?null:n},t.prototype.getRawFilters=function(t){var e=this._filters;return(null==t?void 0:t.permanent)&&(e=Object.keys(e).reduce((function(t,n){var r;return(null===(r=e[n].config)||void 0===r?void 0:r.permanent)&&(t[n]=e[n]),t}),{})),(0,h.isEmptyObj)(e)?null:e},t.prototype.find=function(t){for(var e=this._initFilterOrder||this._order,n=0;n<e.length;n++){var r=(0,l.findByConf)(e[n],t,n,e);if(r)return r}return null},t.prototype.findAll=function(t){for(var e=this._initFilterOrder||this._order,n=[],r=0;r<e.length;r++){var i=(0,l.findByConf)(e[r],t,r,e);i&&n.push(i)}return n},t.prototype.sort=function(t,e,n){var o,a;if(void 0===n&&(n=!1),this.isDataLoaded()){if((null==e?void 0:e.smartSorting)&&(this._sorter=t),n||this._sortingStates.length&&!(null==e?void 0:e.smartSorting)&&((null===(o=this._sortingStates[0])||void 0===o?void 0:o.smartSorting)||(null==e?void 0:e.smartSorting))||(this._sortingStates=[r(r({},t),e)]),t){if(!n&&(this._initSortOrder=this._initSortOrder||i([],this._initFilterOrder||this._order,!0),!(null==e?void 0:e.smartSorting)&&(null===(a=this._sortingStates[0])||void 0===a?void 0:a.smartSorting))){var s=this._sortingStates.findIndex((function(e){return e.by==t.by}));-1!==s?this._sortingStates[s].dir=t.dir:this._sortingStates.push(t)}this._applySorters()}else this._initSortOrder&&(this._sortingStates=[],this._order=this._initSortOrder,this._sorter=this._initSortOrder=null,this._initFilterOrder&&(this._initFilterOrder=null,this.filter(null,{$restore:!0},!0)));n||this.events.fire(u.DataEvents.change,[void 0,"sort",t])}else(0,l.dhxWarning)("the method doesn't work with lazyLoad")},t.prototype.getSortingStates=function(){return this._sortingStates},t.prototype.copy=function(t,e,n,r){var i=this;return t instanceof Array?t.map((function(t,o){return i._copy(t,e,n,r,o)})):this._copy(t,e,n,r)},t.prototype.move=function(t,e,n,r,i){var o,a=this;if(t instanceof Array){var s=[];return t.forEach((function(t,i){(0,h.isId)(a._move(t,e,n,r,i))?s.push(t):(0,l.throwMoveWarning)(t,a.exists(t))})),s}return null!==(o=this._move(t,e,n,r,0,i))&&void 0!==o?o:(0,l.throwMoveWarning)(t,this.exists(t))},t.prototype.forEach=function(t){for(var e=0;e<this._order.length;e++)t.call(this,this._order[e],e,this._order)},t.prototype.load=function(t,e){return"string"==typeof t&&(this.dataProxy=t=new c.DataProxy(t)),"string"==typeof e&&(e=e.toLocaleLowerCase()),("xml"===e||"csv"===e||e instanceof p.XMLDriver||e instanceof d.CsvDriver)&&(t.config.responseType=t.config.responseType||"text"),this.dataProxy=t,this._loader.load(t,e)},t.prototype.parse=function(t,e){return this._parse(t,e)},t.prototype.$parse=function(t){var e=this.config.approximate;e&&(t=this._approximate(t,e.value,e.maxNum)),this._parse_data(t),this._reapplyFilters(),this.events.fire(u.DataEvents.change,[void 0,"load"]),this.events.fire(u.DataEvents.load)},t.prototype.save=function(t){"string"==typeof t&&(t=new c.DataProxy(t)),this._loader.save(t)},t.prototype.changeId=function(t,e,n){if(void 0===e&&(e=(0,h.uid)()),t!=e)if(this.exists(e))(0,l.dhxWarning)("item with ID ".concat(e," already exists"));else{var r=this.getItem(t);r?(r.id=e,(0,h.extend)(this._pull[t],r),this._pull[e]=this._pull[t],n||this._onChange("update",e,this._pull[e]),delete this._pull[t]):(0,l.dhxWarning)("item not found")}},t.prototype.isSaved=function(){return!this._changes.order.length},t.prototype.map=function(t){for(var e=[],n=0;n<this._order.length;n++)e.push(t.call(this,this._order[n],n,this._order));return e},t.prototype.mapRange=function(t,e,n){t<0&&(t=0),e>this._order.length-1&&(e=this._order.length-1);for(var r=this._order.slice(t,e+1),i=[],o=t;o<=e;o++)i.push(n.call(this,this._order[o],o,r));return i},t.prototype.reduce=function(t,e){for(var n=0;n<this._order.length;n++)e=t.call(this,e,this._order[n],n);return e},t.prototype.serialize=function(t){void 0===t&&(t=u.DataDriver.json);for(var e=[],n=function(t){var n=r({},i._order[t]);Object.keys(n).forEach((function(t){t.startsWith("$")&&delete n[t]})),(0,h.isDefined)(n.parent)||delete n.parent,e.push(n)},i=this,o=0;o<this._order.length;o++)n(o);var a=(0,l.toDataDriver)(t);if(a)return a.serialize(e)},t.prototype.getInitialData=function(){return this._initFilterOrder},t.prototype.setMeta=function(t,e,n){if(t){var r=this._meta.get(t);r||(r={},this._meta.set(t,r)),r[e]=n}},t.prototype.getMeta=function(t,e){var n=this._meta.get(t);return n?n[e]:null},t.prototype.getMetaMap=function(t){return this._meta.get(t)},t.prototype.setRange=function(t,e){this._range=e?[t,e]:null},t.prototype.getRawData=function(t,e,n,r){if(n=n||this._order,1===r)return n;if(this._range)if(t=this._range[0]+t,-1===e)e=this._range[1];else{var i=Math.abs(e-t);e=t+i>this._range[1]?this._range[1]:t+i}if(!e||0===t&&(-1===e||e===n.length))return n;if(t>=n.length)return[];(-1===e||e>n.length)&&(e=n.length);var o=n.slice(t,e);return 0!==o.filter((function(t){return t.$empty})).length&&this.events.fire(u.DataEvents.dataRequest,[t,e]),o},t.prototype._add=function(t,e){var n=this._addCore(t,e);return this._onChange("add",t.id,t),this.events.fire(u.DataEvents.afterAdd,[t]),n},t.prototype._remove=function(t){var e=this._pull[t];if(e){if(!this.events.fire(u.DataEvents.beforeRemove,[e]))return;this._removeCore(e.id),this._onChange("remove",t,e)}this.events.fire(u.DataEvents.afterRemove,[e])},t.prototype._copy=function(e,n,i,o,a){if(!this.exists(e))return null;var s=(0,h.uid)();return a&&(n=-1===n?-1:n+a),i?i instanceof t||!o?i.exists(e)?(i.add(r(r({},(0,l.copyWithoutInner)(this.getItem(e))),{id:s}),n),s):(i.add((0,l.copyWithoutInner)(this.getItem(e)),n),e):void i.add((0,l.copyWithoutInner)(this.getItem(e)),n):(this.add(r(r({},(0,l.copyWithoutInner)(this.getItem(e))),{id:s}),n),s)},t.prototype._move=function(t,e,n,r,i,o){if(!this.exists(t))return null;if(i&&e<this.getIndex(t)&&(e=-1===e?-1:e+i),n&&n!==this&&this.exists(t)){var a=(0,h.copy)(this.getItem(t),!0);return o&&(a.id=o),(!o&&n.exists(t)||n.exists(o))&&(a.id=(0,h.uid)()),r&&(a.parent=r),n.add(a,e),this.remove(t),a.id}if(this.getIndex(t)===e)return null;var s=this._order.splice(this.getIndex(t),1)[0];return-1===e&&(e=this._order.length),this._order.splice(e,0,s),this.events.fire(u.DataEvents.change,[t,"update",this.getItem(t)]),t},t.prototype._addCore=function(t,e){var n;return this.config.init&&(t=this.config.init(t)),t.id=null!==(n=t.id)&&void 0!==n?n:(0,h.uid)(),this._pull[t.id]&&(0,l.dhxError)("Item ".concat(t.id," already exist")),this._initFilterOrder&&!(0,l.isTreeCollection)(this)&&this._addToOrder(this._initFilterOrder,t,e),this._initSortOrder&&this._addToOrder(this._initSortOrder,t,e),this._addToOrder(this._order,t,e),t.id},t.prototype._removeCore=function(t){this._pull[t]&&(this._order=this._order.filter((function(e){return e.id!==t})),this._initFilterOrder&&this._initFilterOrder.length&&(this._initFilterOrder=this._initFilterOrder.filter((function(e){return e.id!==t}))),this._initSortOrder&&this._initSortOrder.length&&(this._initSortOrder=this._initSortOrder.filter((function(e){return e.id!==t}))),delete this._pull[t])},t.prototype._parse_data=function(t){for(var e=this._order.length,n=0,r=t;n<r.length;n++){var i=r[n];this._addCore(i,e++)}},t.prototype._approximate=function(t,e,n){for(var r=t.length,i=e.length,o=Math.floor(r/n),a=Array(Math.ceil(r/o)),s=0,c=0;c<r;c+=o){for(var l=(0,h.copy)(t[c]),u=Math.min(r,c+o),f=0;f<i;f++){for(var d=0,p=c;p<u;p++)d+=t[p][e[f]];l[e[f]]=d/(u-c)}a[s++]=l}return a},t.prototype._onChange=function(t,e,n){for(var i=0,o=0,a=this._changes.order;o<a.length;o++){var s=a[o],c=this._changes.order.indexOf(s);if(s.id===e&&!s.saving&&(i+=1,c===this._changes.order.length-1||this._changes.order[c+1].id!==e)){if(s.error&&(s.error=!1),s=r(r({},s),{obj:n,status:t}),(i+=1)>10?this._changes.order.splice(c,i-10,s):this._changes.order.splice(c+1,0,s),this._loader.updateChanges(this._changes),"remove"===t&&n.$emptyRow)return;return void this.events.fire(u.DataEvents.change,[e,t,n])}}this._changes.order.push({id:e,status:t,obj:r({},n),saving:!1}),this._loader.updateChanges(this._changes),this.events.fire(u.DataEvents.change,[e,t,n])},t.prototype._addToOrder=function(t,e,n){n>=0&&t[n]?(this._pull[e.id]=e,t.splice(n,0,e)):(this._pull[e.id]=e,t.push(e))},t.prototype._applySorters=function(){this._sortingStates.length>0&&(this._order=this._sort.sort(this._order,this._sortingStates),this._initFilterOrder&&this._initFilterOrder.length&&this._sort.sort(this._initFilterOrder,this._sortingStates))},t.prototype._applyFilters=function(t){if(t){if(!this._checkFilterRule(t))throw new Error("Invalid filter rule");var e="function"!=typeof t?this._getRuleCallback(t):t,n=this._order.filter((function(t){return e(t)}));this._initFilterOrder||(this._initFilterOrder=this._order),this._order=n}},t.prototype._reapplyFilters=function(){var t=this.getFilters({permanent:!0});t&&this.filter(t,{$restore:!0,add:!0},!0),this._sorter&&this._applySorters()},t.prototype._getRuleCallback=function(t){if((0,h.isDefined)(t.by)&&(0,h.isDefined)(t.match))return t.compare?function(e){return t.compare(e[t.by],t.match,e,t.multi)}:function(e){return e[t.by]==t.match}},t.prototype._getPureFilters=function(t){return Object.keys(t).reduce((function(e,n){var r;return(null===(r=t[n].config)||void 0===r?void 0:r.$local)||(e[n]=t[n]),e}),{})},t.prototype._normalizeFilters=function(t){var e=[];for(var n in t){var i=t[n].rule;if("function"!=typeof i)if((0,h.isDefined)(i.by))e.push(this._getRuleCallback(i));else for(var o in i)e.push(this._getRuleCallback(i[o]));else e.push(i)}return r({},e)},t.prototype._checkFilterRule=function(t){return"function"==typeof t||(0,h.isDefined)(t.by)&&(0,h.isDefined)(t.match)},t.prototype._parse=function(t,e,n){return void 0===e&&(e=u.DataDriver.json),void 0===n&&(n=!1),this._reset({grouping:n}),this._loader.parse(t,e)},t}();e.DataCollection=v},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.dataDriversPro=e.dataDrivers=void 0;var i=n(23),o=n(15),a=n(24);e.dataDrivers={json:i.JsonDriver,csv:o.CsvDriver},e.dataDriversPro=r(r({},e.dataDrivers),{xml:a.XMLDriver})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JsonDriver=void 0;var r=function(){function t(){}return t.prototype.toJsonArray=function(t){return this.getRows(t)},t.prototype.serialize=function(t){return t},t.prototype.getFields=function(t){return t},t.prototype.getRows=function(t){return"string"==typeof t?JSON.parse(t):t},t}();e.JsonDriver=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.XMLDriver=void 0;var r=n(49);function i(t,e){e=e||{};var n=t.attributes;if(n&&n.length)for(var r=0;r<n.length;r++)e[n[r].name]=n[r].value;var o=t.childNodes;for(r=0;r<o.length;r++){var a=o[r];if(a.nodeType===a.ELEMENT_NODE){var s=a.tagName;e[s]?("function"!=typeof e[s].push&&(e[s]=[e[s]]),e[s].push(i(a,{}))):e[s]=i(a,{})}}return e}var o=function(){function t(){}return t.prototype.toJsonArray=function(t){return this.getRows(t)},t.prototype.toJsonObject=function(t){var e;return"string"==typeof t&&(e=this._fromString(t)),i(e)},t.prototype.serialize=function(t){return(0,r.jsonToXML)(t)},t.prototype.getFields=function(t){return t},t.prototype.getRows=function(t){if("string"==typeof t&&(t=this._fromString(t)),t){var e=t.childNodes&&t.childNodes[0]&&t.childNodes[0].childNodes;return e&&e.length?this._getRows(e):null}return[]},t.prototype._getRows=function(t){for(var e=[],n=0;n<t.length;n++)"item"===t[n].tagName&&e.push(this._nodeToJS(t[n]));return e},t.prototype._fromString=function(t){try{return(new DOMParser).parseFromString(t,"text/xml")}catch(t){return null}},t.prototype._nodeToJS=function(t){var e={};if(this._haveAttrs(t))for(var n=t.attributes,r=0;r<n.length;r++){var i=n[r],o=i.name,a=i.value;e[o]=this._toType(a)}if(t.nodeType===t.TEXT_NODE)return e.value=e.value||this._toType(t.textContent),e;var s=t.childNodes;if(s)for(r=0;r<s.length;r++){var c=s[r],l=c.tagName;l&&("items"===l&&c.childNodes?e[l]=this._getRows(c.childNodes):this._haveAttrs(c)?e[l]=this._nodeToJS(c):e[l]=this._toType(c.textContent))}return e},t.prototype._toType=function(t){return"false"===t||"true"===t?"true"===t:t},t.prototype._haveAttrs=function(t){return t.attributes&&t.attributes.length},t}();e.XMLDriver=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.methods=void 0;var r=n(0);e.methods={sum:function(t,e){return parseFloat(t.reduce((function(t,n){return t+(+n[e]||0)}),0).toFixed(12))},avg:function(t,e){return parseFloat((t.reduce((function(t,n){return t+(+n[e]||0)}),0)/t.length).toFixed(12))},count:function(t,e){return void 0===t&&(t=[]),t.filter((function(t){return(0,r.isDefined)(t[e])&&""!==t[e]})).length},min:function(t,e){return Math.min.apply(Math,t.map((function(t){return+t[e]})))},max:function(t,e){return Math.max.apply(Math,t.map((function(t){return+t[e]})))}}},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.rightGrid=e.right=e.leftGrid=e.left=e.topGrid=e.top=e.bottomGrid=e.bottom=void 0;var i=n(0),o=n(1),a=n(2),s=function(t){return t.toString()},c=function(t,e){return{role:"graphics-object","aria-label":"".concat(t,"-axis").concat(e?", "+e:"")}};e.bottom=function(t,e,n,l){var u=e.title,h=e.textPadding,f=e.scalePadding,d=e.textTemplate,p=e.showText,v=e.scaleRotate,g=d||s,_=[],y=0;if(p){y=h;var m=v&&!isNaN(v),x=l+h;_=t.map((function(t){var e=t[0],n=m?"rotate(".concat(v," ").concat(e," ").concat(x,")"):"",r=["scale-text","top-text"];if(m){var i=v%360;r.push((0,a.getClassesForRotateScale)("bottom",i))}return(0,o.sv)("text",{x:e,y:x,class:r.join(" "),transform:n},[(0,a.verticalCenteredText)(g(t[1]))])}))}var b=(0,i.uid)(),w=null,O=(0,o.sv)("path",{class:"main-scale",d:"M0 ".concat(l," H").concat(n-.5),id:b});return u&&(w=(0,o.sv)("text",{dx:n/2,dy:f+y},[(0,o.sv)("textPath",{href:"#".concat(b),class:"scale-title "},u)])),(0,o.sv)("g",r({},c("x",u||e.text)),[O,w].concat(_))},e.bottomGrid=function(t,e,n,r){for(var i=r.dashed,a=r.grid,s=r.targetLine,c=r.targetValue,l=t.length,u=[],h="grid-line ".concat(i?"dash-line":""," ").concat(a?"":"hidden-line"),f=0;f<l;f++)if(0!==f||0!==t[f][0]||r.hidden)if(f!==s){var d="M".concat(t[f][0]," 0 V ").concat(n),p=(0,o.sv)("path",{d:d,class:h,_ref:"line"+Math.round(t[f][0])});if(u.push(p),f===l-1&&t[f][0]!==e){var v="M".concat(e," 0 V ").concat(n),g=(0,o.sv)("path",{d:v,class:h});u.push(g)}}else{var _="M".concat(t[f][0]," 0 V ").concat(n),y=(0,o.sv)("path",{d:_,class:"".concat(h," spec-grid-line")});u.push(y)}if(c){d="M".concat(c*e," 0 V ").concat(n),p=(0,o.sv)("path",{d:d,class:"".concat(h," spec-grid-line")});u.push(p)}return(0,o.sv)("g",u)},e.top=function(t,e,n,l){var u=e.title,h=e.textPadding,f=e.scalePadding,d=e.textTemplate,p=e.showText,v=e.scaleRotate,g=d||s,_=[],y=0;if(p){y=h;var m=v&&!isNaN(v),x=-h;_=t.map((function(t){var e=["scale-text"],n=t[0],r=m?"rotate(".concat(v," ").concat(n," ").concat(x,")"):"";if(m){var i=v%360;e.push((0,a.getClassesForRotateScale)("top",i))}return(0,o.sv)("text",{x:n,y:x,class:e.join(" "),transform:r},[(0,a.verticalCenteredText)(g(t[1]))])}))}var b=(0,i.uid)(),w=(0,o.sv)("path",{d:"M0 0 H".concat(n),class:"main-scale",id:b}),O=null;return u&&(O=(0,o.sv)("text",{dx:n/2,dy:-f-y},[(0,o.sv)("textPath",{href:"#".concat(b),class:"scale-title"},u)])),(0,o.sv)("g",r({},c("x",u||e.text)),[w,O].concat(_))},e.topGrid=function(t,e,n,r){for(var i=r.dashed,a=r.grid,s=r.targetLine,c=t.length,l=[],u="grid-line ".concat(i?"dash-line":""," ").concat(a?"":"hidden-line"),h=0;h<c;h++)if(0!==h||0!==t[h][0]||r.hidden)if(h!==s){var f="M".concat(t[h][0]," 0 V ").concat(n),d=(0,o.sv)("path",{d:f,class:u,_ref:"line"+Math.round(t[h][0])});if(l.push(d),h===c-1&&0!==t[h][0]){var p="M0 0 V ".concat(n),v=(0,o.sv)("path",{d:p,class:u});l.push(v)}}else{var g="M".concat(t[h][0]," 0 V ").concat(n),_=(0,o.sv)("path",{d:g,class:"".concat(u," spec-grid-line")});l.push(_)}return(0,o.sv)("g",l)},e.left=function(t,e,n,l){var u=e.title,h=e.textPadding,f=e.scalePadding,d=e.textTemplate,p=e.showText,v=e.scaleRotate,g=d||s,_=[],y=0;if(p){var m=(0,a.getFontStyle)("scale-text"),x=0,b=v&&!isNaN(v);_=t.map((function(t){var e=t[0],n=-h,r=b?"rotate(".concat(v," ").concat(n," ").concat(e,")"):"",i=["scale-text"],s=g(t[1]);if(u){var c=(0,a.getTextWidth)(s,m);x<c&&(x=c)}if(b){var l=v%360;i.push((0,a.getClassesForRotateScale)("left",l))}else i.push("end-text");return(0,o.sv)("text",{x:n,y:e,class:i.join(" "),transform:r},[(0,a.verticalCenteredText)(s)])})),y=x+h}var w=(0,i.uid)(),O=(0,o.sv)("path",{class:"main-scale",d:"M0 ".concat(l," V 0.5"),id:w,_ref:t.length?"line0":null}),D=null;return u&&(D=(0,o.sv)("text",{dx:l/2,dy:-f-y},[(0,o.sv)("textPath",{href:"#".concat(w),class:"scale-title"},u)])),(0,o.sv)("g",r({},c("y",u||e.text)),[O,D].concat(_))},e.leftGrid=function(t,e,n,r){for(var i=r.dashed,a=r.grid,s=r.targetLine,c=r.targetValue,l=t.length,u=[],h="grid-line ".concat(i?"dash-line":""),f=0;f<l;f++)if(0!==f||t[f][0]!==n||r.hidden)if(s!==f){if(a){v="M0 ".concat(t[f][0]," H ").concat(e),g=(0,o.sv)("path",{d:v,class:h});if(u.push(g),f===l-1&&t[f][0]!==e){var d="M0 0 H".concat(e),p=(0,o.sv)("path",{d:d,class:h});u.push(p)}}}else{var v="M0 ".concat(t[f][0]," H ").concat(e),g=(0,o.sv)("path",{d:v,class:"".concat(h," spec-grid-line")});u.push(g)}if(c){v="M0 ".concat(c*n," H ").concat(e),g=(0,o.sv)("path",{d:v,class:"".concat(h," spec-grid-line")});u.push(g)}return(0,o.sv)("g",u)},e.right=function(t,e,n,l){var u=e.title,h=e.textPadding,f=e.scalePadding,d=e.textTemplate,p=e.showText,v=e.scaleRotate,g=d||s,_=[],y=0;if(p){var m=(0,a.getFontStyle)("scale-text"),x=0,b=v&&!isNaN(v);_=t.map((function(t){var e=g(t[1]),r=t[0],i=n+h,s=b?"rotate(".concat(v," ").concat(i," ").concat(r,")"):"",c=["scale-text"];if(u){var l=(0,a.getTextWidth)(e,m);x<l&&(x=l)}if(b){var f=v%360;c.push((0,a.getClassesForRotateScale)("right",f))}else c.push("start-text");return(0,o.sv)("text",{x:i,y:r,class:c.join(" "),transform:s},[(0,a.verticalCenteredText)(e)])})),y=h+x}var w=(0,i.uid)(),O=(0,o.sv)("path",{d:"M".concat(n," ").concat(l," V 0"),class:"main-scale",id:w,_ref:t.length?"line0":null}),D=null;return u&&(D=(0,o.sv)("text",{dx:l/2,dy:f+y},[(0,o.sv)("textPath",{href:"#".concat(w),class:"scale-title"},u)])),(0,o.sv)("g",r({},c("y",u||e.text)),[O,D].concat(_))},e.rightGrid=function(t,e,n,r){for(var i=r.dashed,a=r.grid,s=r.targetLine,c=t.length,l=[],u="grid-line ".concat(i?"dash-line":""),h=0;h<c;h++)if(0!==h||t[h][0]!==n||r.hidden)if(s!==h){if(a){p="M0 ".concat(t[h][0]," H ").concat(e),v=(0,o.sv)("path",{d:p,class:u});if(l.push(v),h===c-1&&t[h][0]!==e){var f="M0 0 H".concat(e),d=(0,o.sv)("path",{d:f,class:u});l.push(d)}}}else{var p="M0 ".concat(t[h][0]," H ").concat(e),v=(0,o.sv)("path",{d:p,class:"".concat(u," spec-grid-line")});l.push(v)}return(0,o.sv)("g",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(2),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.paint=function(e,n,r){t.prototype.paint.call(this,e,n);var i,s=[];return this._form(e,n,s,r),this._markers(s),(0,a.sv)("g",o(o({class:"seria",_key:this.id},(i=this.config,{"aria-label":"chart ".concat(i.value||"")})),{tabindex:0}),s)},e.prototype.paintformAndMarkers=function(e,n,r){t.prototype.paint.call(this,e,n);var i=[],o=[];return this._form(e,n,i,r),this._markers(o),[(0,a.sv)("g",{class:"seria",_key:this.id},i),(0,a.sv)("g",{class:"seria_markers",_key:this.id+"_markers"},o)]},e.prototype._markers=function(t){var e=this;if(this.config.pointType){var n=this.config.pointColor||this.config.color,r=this._getPointType(this.config.pointType,n);t.push.apply(t,this._points.map((function(t){return r(t[0],t[1],(0,s.calcPointRef)(t[2],e.id))})))}},e.prototype._form=function(t,e,n,r){var i=this.config,o=i.id,s=i.fill,c=i.alpha,l=i.color,u=i.strokeWidth,h=this._points,f=h[h.length-1],d="";if(r){for(var p=r.length-1;p>=0;p--){var v=r[p];d+=p===h.length-1?"M".concat(v[0]," ").concat(v[1]," "):"L".concat(v[0]," ").concat(v[1]," ")}d+=h.map((function(t,e){return e?"L ".concat(t[0]," ").concat(t[1]):"V ".concat(t[1])})).join(" ")+"Z"}else d+=h.map((function(t,n){return n?"L".concat(t[0]," ").concat(t[1]):"M0 ".concat(e," L0 ").concat(t[1]," L").concat(t[0]," ").concat(t[1])})).join(" ")+"L".concat(t," ").concat(f[1]," V ").concat(e);if(u){var g=h.length-1,_=function(t){return t===g?-.5:t?0:.5},y=h.map((function(t,e){return e?"L".concat(t[0]+_(e)," ").concat(t[1]):"M0 ".concat(t[1]," L0 ").concat(t[1]+_(e)," L").concat(t[0]+_(e)," ").concat(t[1])})).join(" ")+"L".concat(t," ").concat(f[1]),m=(0,a.sv)("path",{d:y,"stroke-width":u,stroke:l,fill:"none",class:this._getCss()});n.push(m)}var x=(0,a.sv)("path",{id:"seria"+o,d:d,class:this._getCss(),fill:s,_ref:o,"fill-opacity":c,stroke:"none"});return n.push(x),n},e.prototype._setDefaults=function(t){var e={alpha:.3,strokeWidth:2,fill:t.color||"#5E83BA",color:"#5E83BA",active:!0,tooltip:!0,pointType:"empty"};this.config=o(o({},e),t);var n=this.config.pointType,r=this.config.pointColor||this.config.color;n&&(this._drawPointType=this._getPointType(n,r))},e}(n(17).default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShadeHTMLHelper=e.getShadeHelper=e.getHTMLHelper=e.getHelper=void 0;var r=n(1),i=n(2),o={circle:function(t,e,n,i,o,a){var s={_ref:a,cx:i,cy:o,r:4,class:"figure point-circle",fill:e,stroke:t,"stroke-width":2};return(0,r.sv)("circle",s)},rect:function(t,e,n,i,o,a){var s={_ref:a,x:i-4,y:o-4,width:8,height:8,class:"figure point-rect",fill:e,stroke:t,"stroke-width":2};return(0,r.sv)("rect",s)},rhombus:function(t,e,n,i,o,a){var s={_ref:a,points:"".concat(i-5,",").concat(o," ").concat(i,",").concat(o+5," ").concat(i+5,",").concat(o," ").concat(i,",").concat(o-5),class:"figure point-rhombus",fill:e,stroke:t,"stroke-width":2};return(0,r.sv)("polygon",s)},triangle:function(t,e,n,i,o,a){var s={_ref:a,points:"".concat(i,",").concat(o-5," ").concat(i+5,",").concat(o+5," ").concat(i-5,",").concat(o+5),class:"figure point-triangle",fill:e,stroke:t,"stroke-width":2};return(0,r.sv)("polygon",s)},simpleCircle:function(t,e,n,i,o,a){var s={_ref:a,cx:i,cy:o,r:3,class:"figure point-simple-circle",fill:t};return(0,r.sv)("circle",s)},simpleRect:function(t,e,n,i,o,a){var s={_ref:a,x:i-3,y:o-3,width:6,height:6,class:"figure point-simple-rect",fill:t};return(0,r.sv)("rect",s)},empty:function(){return null}},a={circle:function(t,e,n,r,i,o){return'<circle class="figure point-circle" _ref="'.concat(o,'" cx="').concat(r,'" cy="').concat(i,'" r="4" fill="').concat(e,'" stroke="').concat(t,'" stroke-width="2"/>')},rect:function(t,e,n,r,i,o){return'<rect _ref="'.concat(o,'" x="').concat(r-4,'" y="').concat(i-4,'" width="8" height="8" class="figure point-rect" fill="').concat(e,'" stroke="').concat(t,'" stroke-width="2"/>')},rhombus:function(t,e,n,r,i,o){return'<polygon _ref="'.concat(o,'" points="').concat(r-5,",").concat(i," ").concat(r,",").concat(i+5," ").concat(r+5,",").concat(i," ").concat(r,",").concat(i-5,'" class="figure point-rhombus" fill="').concat(e,'" stroke="').concat(t,'" stroke-width="2"/>')},triangle:function(t,e,n,r,i,o){return'<polygon _ref="'.concat(o,'" points="').concat(r,",").concat(i-5," ").concat(r+5,",").concat(i+5," ").concat(r-5,",").concat(i+5,'" class="figure point-triangle" fill="').concat(e,'" stroke="').concat(t,'" stroke-width="2"/>')},simpleCircle:function(t,e,n,r,i,o){return'<circle _ref="'.concat(o,'" cx="').concat(r,'" cy="').concat(i,'" r="3" class="figure point-simple-circle" fill="').concat(t,'"/>')},simpleRect:function(t,e,n,r,i,o){return'<rect _ref="id" x="'.concat(r-3,'" y="').concat(i-3,'" width="6" height="6" class="figure point-simple-rect" fill="').concat(t,'"/>')},empty:function(){return null}};function s(t){var e=o[t.toString()];if(!e)throw new Error("unknown point type");return e}function c(t){var e=a[t.toString()];if(!e)throw new Error("unknown point type");return e}e.getHelper=s,e.getHTMLHelper=c,e.getShadeHelper=function(t,e){var n=s(t);e=e||"none";var r=(0,i.getColorShade)(e,.2);return function(t,i,o){return n(e,r,"",t,i,o)}},e.getShadeHTMLHelper=function(t,e){var n=c(t);e=e||"none";var r=(0,i.getColorShade)(e,.2);return function(t,i,o){return n(e,r,"",t,i,o)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DateHelper=e.stringToDate=e.getExcelDate=e.getFormattedDate=e.locale=void 0;var r=n(0),i=n(0);e.locale={monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Monday"],cancel:"Cancel"};var o,a={"%d":function(t){var e=t.getDate();return e<10?"0"+e:e},"%j":function(t){return t.getDate()},"%l":function(t){return e.locale.days[t.getDay()]},"%D":function(t){return e.locale.daysShort[t.getDay()]},"%m":function(t){var e=t.getMonth()+1;return e<10?"0"+e:e},"%n":function(t){return t.getMonth()+1},"%M":function(t){return e.locale.monthsShort[t.getMonth()]},"%F":function(t){return e.locale.months[t.getMonth()]},"%y":function(t){return t.getFullYear().toString().slice(2)},"%Y":function(t){return t.getFullYear()},"%h":function(t){var e=t.getHours()%12;return 0===e&&(e=12),e<10?"0"+e:e},"%g":function(t){var e=t.getHours()%12;return 0===e&&(e=12),e},"%H":function(t){var e=t.getHours();return e<10?"0"+e:e},"%G":function(t){return t.getHours()},"%i":function(t){var e=t.getMinutes();return e<10?"0"+e:e},"%s":function(t){var e=t.getSeconds();return e<10?"0"+e:e},"%a":function(t){return t.getHours()>=12?"pm":"am"},"%A":function(t){return t.getHours()>=12?"PM":"AM"},"%u":function(t){return t.getMilliseconds()}},s={"%d":function(t,e,n,r){var i=/(^([0-9][0-9])$)/i.test(e);if(r)return i;i?t.setDate(Number(e)):t.setDate(Number(1))},"%j":function(t,e,n,r){var i=/(^([0-9]?[0-9])$)/i.test(e);if(r)return i;i?t.setDate(Number(e)):t.setDate(Number(1))},"%m":function(t,e,n,r){var i=/(^([0-9][0-9])$)/i.test(e);if(r)return i;i?t.setMonth(Number(e)-1):t.setMonth(Number(0)),i&&t.getMonth()!==Number(e)-1&&t.setMonth(Number(e)-1)},"%n":function(t,e,n,r){var i=/(^([0-9]?[0-9])$)/i.test(e);if(r)return i;i?t.setMonth(Number(e)-1):t.setMonth(Number(0)),i&&t.getMonth()!==Number(e)-1&&t.setMonth(Number(e)-1)},"%M":function(t,n,r,o){var a=(0,i.findIndex)(e.locale.monthsShort,(function(t){return t===n}));if(o)return-1!==a;-1===a?t.setMonth(0):t.setMonth(a),-1!==a&&t.getMonth()!==a&&t.setMonth(a)},"%F":function(t,n,r,o){var a=(0,i.findIndex)(e.locale.months,(function(t){return t===n}));if(o)return-1!==a;-1===a?t.setMonth(0):t.setMonth(a),-1!==a&&t.getMonth()!==a&&t.setMonth(a)},"%y":function(t,e,n,r){var i=/(^([0-9][0-9])$)/i.test(e);if(r)return i;i?t.setFullYear(Number("20"+e)):t.setFullYear(Number("2000"))},"%Y":function(t,e,n,r){var i=/(^([0-9][0-9][0-9][0-9])$)/i.test(e);if(r)return i;i?t.setFullYear(Number(e)):t.setFullYear(Number("2000"))},"%h":function(t,e,n,r){var i=/(^0[1-9]|1[0-2]$)/i.test(e);if(r)return i;i&&("am"===n||"pm"===n)||"AM"===n||"PM"===n?t.setHours(Number(e)):t.setHours(Number(0))},"%g":function(t,e,n,r){var i=/(^[1-9]$)|(^0[1-9]|1[0-2]$)/i.test(e);if(r)return i;i&&("am"===n||"pm"===n)||"AM"===n||"PM"===n?t.setHours(Number(e)):t.setHours(Number(0))},"%H":function(t,e,n,r){var i=/(^[0-2][0-9]$)/i.test(e);if(r)return i;i?t.setHours(Number(e)):t.setHours(Number(0))},"%G":function(t,e,n,r){var i=/(^[1-9][0-9]?$)/i.test(e);if(r)return i;i?t.setHours(Number(e)):t.setHours(Number(0))},"%i":function(t,e,n,r){var i=/(^([0-5][0-9])$)/i.test(e);if(r)return i;i?t.setMinutes(Number(e)):t.setMinutes(Number(0))},"%s":function(t,e,n,r){var i=/(^([0-5][0-9])$)/i.test(e);if(r)return i;i?t.setSeconds(Number(e)):t.setSeconds(Number(0))},"%u":function(t,e,n,r){var i=/(^([0-9][0-9][0-9])$)/i.test(e);if(r)return i;i?t.setMilliseconds(Number(e)):t.setMilliseconds(Number(0))},"%a":function(t,e,n,r){if(r)return"pm"===e||"am"===e;"pm"===e&&t.setHours(t.getHours()+12)},"%A":function(t,e,n,r){if(r)return"PM"===e||"AM"===e;"PM"===e&&t.setHours(t.getHours()+12)}};function c(t){for(var e=[],n="",r=0;r<t.length;r++)"%"===t[r]?(n.length>0&&(e.push({type:o.separator,value:n}),n=""),e.push({type:o.datePart,value:t[r]+t[r+1]}),r++):n+=t[r];return n.length>0&&e.push({type:o.separator,value:n}),e}!function(t){t[t.separator=0]="separator",t[t.datePart=1]="datePart"}(o||(o={})),e.getFormattedDate=function(t,e){return c(t).reduce((function(t,n){return n.type===o.separator?t+n.value:a[n.value]?t+a[n.value](e):t}),"")},e.getExcelDate=function(t){return t?25569+(t.getTime()-6e4*t.getTimezoneOffset())/864e5:null};var l={"%Y":1,"%y":1,"%M":2,"%F":2,"%m":2,"%n":2};function u(t,e,n){if("string"==typeof t){e=e.replace(/([a-z])(%a)/i,(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t=t.replace(/(am|pm)/i," $&"),e[1]+" "+e[2]}));for(var r,i=c(e),a=new Array(2),u=0,h=null,f="Incorrect date, see docs: https://docs.dhtmlx.com/suite/calendar__api__calendar_dateformat_config.html",d=function(t){var e=l[t.formatter];e?a[e-1]=t:("%A"!==t.formatter&&"%a"!==t.formatter||(r=t.value),a.push(t))},p=0;p<i.length;p++)if(i[p].type===o.separator){var v=t.indexOf(i[p].value,u);if(-1===v){if(n)return!1;throw new Error(f)}h&&(d({formatter:h,value:t.slice(u,v)}),h=null),u=v+i[p].value.length}else if(i[p].type===o.datePart){if(i[p+1]&&i[p+1].type!==o.separator){if(n)return!1;throw new Error(f)}h=i[p].value}h&&d({formatter:h,value:t.slice(u)});for(var g=new Date(0),_=0,y=a;_<y.length;_++){var m=y[_];if(m&&s[m.formatter]){if(n&&!s[m.formatter](g,m.value,r,n))return!1;s[m.formatter](g,m.value,r)}}return!!n||g}}e.stringToDate=u;e.DateHelper=function(){function t(){}return t.copy=function(t){return new Date(t)},t.fromYear=function(t){return new Date(t,0,1)},t.fromYearAndMonth=function(t,e){return new Date(t,e,1)},t.weekStart=function(t,e){var n=(t.getDay()+7-e)%7;return new Date(t.getFullYear(),t.getMonth(),t.getDate()-n)},t.monthStart=function(t){return new Date(t.getFullYear(),t.getMonth(),1)},t.yearStart=function(t){return new Date(t.getFullYear(),0,1)},t.dayStart=function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},t.addDay=function(t,e){return void 0===e&&(e=1),new Date(t.getFullYear(),t.getMonth(),t.getDate()+e)},t.addMonth=function(t,e){return void 0===e&&(e=1),new Date(t.getFullYear(),t.getMonth()+e)},t.addYear=function(t,e){return void 0===e&&(e=1),new Date(t.getFullYear()+e,t.getMonth())},t.withHoursAndMinutes=function(t,e,n,r){return void 0===r||!r&&12===e||r&&12!==e?new Date(t.getFullYear(),t.getMonth(),t.getDate(),e,n):r&&12===e?new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,n):new Date(t.getFullYear(),t.getMonth(),t.getDate(),e+12,n)},t.setMonth=function(t,e){t.setMonth(e)},t.setYear=function(t,e){t.setFullYear(e)},t.mergeHoursAndMinutes=function(t,e){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),e.getHours(),e.getMinutes())},t.isWeekEnd=function(t){return 0===t.getDay()||6===t.getDay()},t.getTwelweYears=function(t){var e=t.getFullYear(),n=e-e%12;return(0,r.range)(n,n+11)},t.getDayOrdinal=function(e){return(e.valueOf()-t.yearStart(e).valueOf())/864e5},t.getWeekNumber=function(e){var n=4===e.getDay()?e:t.addDay(e,4-e.getDay()),r=t.getDayOrdinal(n);return Math.trunc(r/7)+1},t.isSameDay=function(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()},t.toDateObject=function(t,e){return"string"==typeof t?u(t,e):new Date(t)},t.nullTimestampDate=new Date(0),t}()},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(2),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._shift=0,e}return i(e,t),e.prototype.addScale=function(e,n){t.prototype.addScale.call(this,e,n),n.addPadding()},e.prototype.seriesShift=function(t){return this._shift=t,this.config.barWidth},e.prototype.paint=function(e,n,r){t.prototype.paint.call(this,e,n);if(!this.config.active)return null;var i=[];this._gradient&&i.push((0,s.sv)("defs",[this._gradient()]));var a,c=this._getForm(this._points,e,n,r);return i=i.concat(c),(0,s.sv)("g",o(o({class:"seria",_key:this.id},(a=this.config,{"aria-label":"chart ".concat(a.value||"")})),{tabindex:0}),i)},e.prototype.getTooltipType=function(t,e,n){return void 0!==this.config.baseLine&&this._baseLinePosition<n?"bot":"top"},e.prototype._getClosestDist=function(t,e,n,r){return this.config.stacked&&e<r?1/0:Math.abs(t-n)},e.prototype._path=function(t,e){return t[0]+=this._shift,"\nM ".concat(t[0]-this.config.barWidth/2," ").concat(e,"\nV ").concat(t[1],"\nh ").concat(this.config.barWidth,"\nV ").concat(e)},e.prototype._base=function(t){var e=this.config.baseLine;return this._baseLinePosition=void 0!==e?this.yScale.point(e)*t:t-1},e.prototype._text=function(t,e,n){var r=t[0],i=(e+t[1])/2;return{x:r,y:i,class:"bar-text",transform:n&&!isNaN(n)?"rotate(".concat(n," ").concat(r," ").concat(i,")"):""}},e.prototype._getForm=function(t,e,n,r){var i=this,a=function(t,e,n){void 0===n&&(n=0);var r=e[3],i=n,o=e[4];return n>o&&(i=o,o=n),"xbar"===t?"bar y=".concat(r,", x from ").concat(i," to ").concat(o):"bar x=".concat(r,", y from ").concat(i," to ").concat(o)},l=this.config,u=l.baseLine,h=l.fill,f=l.alpha,d=l.showText,p=l.showTextTemplate,v=l.showTextRotate,g=[],_=this._base(n),y=function(t){return r?r[t][1]:_},m=t.map((function(t,e){return(0,s.sv)("path",o(o({_key:"seria"+i.config.id+e,_ref:(0,c.calcPointRef)(t[2],i.config.id),d:i._path(t,y(e)),class:i._getCss(),fill:h,onclick:[i._handlers.onclick,t[2],i.config.value],onmousemove:[i._handlers.onmousemove,t[2],i.config.id],onmouseleave:[i._handlers.onmouseleave,t[2],i.config.id],"fill-opacity":f},function(t,e,n){return{role:"graphics-symbol","aria-roledescription":"bar","aria-label":a(t,e,n)}}(i.config.type,t,u)),{tabindex:0}))}));if(g.push.apply(g,m),(d||p||v)&&!1!==d){var x=t.map((function(t,e){var n=i._getText(t);return function(t,e){return Math.abs(y(e)-t[1])>16}(t,e)?(0,s.sv)("text",o(o({},i._text(t,y(e),v)),{"aria-hidden":"true"}),[p?(0,c.verticalCenteredText)(p(n)):(0,c.verticalCenteredText)(n)]):null}));g.push.apply(g,x)}return g},e.prototype._getText=function(t){return t[4].toString()},e.prototype._setDefaults=function(t){this.config=o(o({},{barWidth:30,alpha:1,active:!0,tooltip:!0,pointType:"empty"}),t);var e=this.config.pointType,n=this.config.pointColor||this.config.color;if(e&&(this.config.pointType=e,this._drawPointType=this._getPointType(e,n)),this.config.gradient){var r="gradient"+(0,a.uid)(),i=this.config.gradient(this.config.fill);this._gradient=function(){return(0,c.linearGradient)(i,r)},this.config.fill="url(#".concat(r,")")}},e}(n(17).default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n,r=t.length;if(r<3)n=t;else{var i=t[0],o=t[0],a=t[1],s=t[2];n=[t[0].slice(0,2)];for(var c=1;c<r;c++)n.push([(-i[0]+6*o[0]+a[0])/6,(-i[1]+6*o[1]+a[1])/6,(o[0]+6*a[0]-s[0])/6,(o[1]+6*a[1]-s[1])/6,a[0],a[1]]),i=o,o=a,a=s,s=t[c+2]||s}var l="";for(c=0;c<n.length;c++){var u=n[c],h=u.length;c?l+=h>5?"C".concat(u[0]," ").concat(u[1],"\n\t\t\t\t").concat(u[2]," ").concat(u[3],"\n\t\t\t\t").concat(u[4]," ").concat(u[5]):5===h?"L".concat(u[0]," ").concat(u[1]):"S".concat(u[0]," ").concat(u[1],"\n\t\t\t\t").concat(u[2]," ").concat(u[3]):(l+=e?"L":"M",l+=5===h?"".concat(u[0]," ").concat(u[1]):"".concat(u[h-2]," ").concat(u[h-1]))}return l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={apply:"apply",reject:"reject"}},function(t,e,n){"use strict";function r(t){var e=document.activeElement;e.classList.contains("dhx_alert__apply-button")&&"Enter"===t.key||e.classList.contains("dhx_alert__confirm-reject")||e.classList.contains("dhx_alert__confirm-aply")||t.preventDefault()}Object.defineProperty(e,"__esModule",{value:!0}),e.blockScreen=void 0,e.blockScreen=function(t){var e=document.createElement("div");return e.className="dhx_alert__overlay "+(t||""),document.body.appendChild(e),document.addEventListener("keydown",r),function(){document.body.removeChild(e),document.removeEventListener("keydown",r)}}},function(t,e,n){n(35),n(36),n(37),n(38),n(39),n(40),t.exports=n(44)},function(t,e){Object.values=Object.values?Object.values:function(t){var e=Object.prototype.toString.call(t);if(null==t)throw new TypeError("Cannot convert undefined or null to object");if(~["[object String]","[object Object]","[object Array]","[object Function]"].indexOf(e)){if(Object.keys)return Object.keys(t).map((function(e){return t[e]}));var n=[];for(var r in t)t.hasOwnProperty(r)&&n.push(t[r]);return n}return[]},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){"use strict";for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(null==t)throw new TypeError("Cannot convert first argument to object");for(var r=Object(t),i=0;i<e.length;i++){var o=e[i];if(null!=o)for(var a=Object.keys(Object(o)),s=0,c=a.length;s<c;s++){var l=a[s],u=Object.getOwnPropertyDescriptor(o,l);void 0!==u&&u.enumerable&&(r[l]=o[l])}}return r}})},function(t,e){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(t,e){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),r=n.length>>>0;if(0===r)return!1;var i,o,a=0|e,s=Math.max(a>=0?a:r-Math.abs(a),0);for(;s<r;){if((i=n[s])===(o=t)||"number"==typeof i&&"number"==typeof o&&isNaN(i)&&isNaN(o))return!0;s++}return!1},configurable:!0,writable:!0}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var r=arguments[1],i=0;i<n;){var o=e[i];if(t.call(r,o,i,e))return o;i++}},configurable:!0,writable:!0}),Array.prototype.findIndex||(Array.prototype.findIndex=function(t){if(null==this)throw new TypeError("Array.prototype.findIndex called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;o<r;o++)if(e=n[o],t.call(i,e,o,n))return o;return-1})},function(t,e){String.prototype.includes||(String.prototype.includes=function(t,e){"use strict";return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{enumerable:!1,configurable:!0,writable:!0,value:function(t,e){return e=e||0,this.indexOf(t,e)===e}}),String.prototype.padStart||(String.prototype.padStart=function(t,e){return t>>=0,e=String(e||" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),e.slice(0,t)+String(this))}),String.prototype.padEnd||(String.prototype.padEnd=function(t,e){return t>>=0,e=String(e||" "),this.length>t?String(this):((t-=this.length)>e.length&&(e+=e.repeat(t/e.length)),String(this)+e.slice(0,t))})},function(t,e){if(Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}if("classList"in SVGElement.prototype||Object.defineProperty(SVGElement.prototype,"classList",{get:function(){var t=this;return{contains:function(e){return-1!==t.className.baseVal.split(" ").indexOf(e)},add:function(e){return t.setAttribute("class",t.getAttribute("class")+" "+e)},remove:function(e){var n=t.getAttribute("class").replace(new RegExp("(\\s|^)".concat(e,"(\\s|$)"),"g"),"$2");t.classList.contains(e)&&t.setAttribute("class",n)},toggle:function(t){this.contains(t)?this.remove(t):this.add(t)}}},configurable:!0}),!Object.entries){var r=Function.bind.call(Function.call,Array.prototype.reduce),i=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),o=Function.bind.call(Function.call,Array.prototype.concat);Object.entries=function(t){return r(Object.keys(t),(function(e,n){return o(e,"string"==typeof n&&i(t,n)?[[n,t[n]]]:[])}),[])}}Event.prototype.composedPath||(Event.prototype.composedPath=function(){if(this.path)return this.path;var t=this.target;for(this.path=[];null!==t.parentNode;)this.path.push(t),t=t.parentNode;return this.path.push(document,window),this.path})},function(t,e){Math.sign=Math.sign||function(t){return 0===(t=+t)||isNaN(t)?t:t>0?1:-1}},function(t,e,n){(function(t){t.prototype.finally||(t.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))})}).call(this,n(4))},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(42),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(12))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,i,o,a,s,c=1,l={},u=!1,h=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){p(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){p(t.data)},r=function(t){o.port2.postMessage(t)}):h&&"onreadystatechange"in h.createElement("script")?(i=h.documentElement,r=function(t){var e=h.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):r=function(t){setTimeout(p,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&p(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),r=function(e){t.postMessage(a+e,"*")}),f.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var i={callback:t,args:e};return l[c]=i,r(c),c++},f.clearImmediate=d}function d(t){delete l[t]}function p(t){if(u)setTimeout(p,0,t);else{var e=l[t];if(e){u=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}(e)}finally{d(t),u=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(12),n(43))},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var c,l=[],u=!1,h=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):h=-1,l.length&&d())}function d(){if(!u){var t=s(f);u=!0;for(var e=l.length;e;){for(c=l,l=[];++h<e;)c&&c[h].run();h=-1,e=l.length}c=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{return r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function v(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new p(t,e)),1!==l.length||u||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Chart=e.methods=e.setTheme=e.awaitRedraw=e.resizeHandler=e.vmdom=void 0,n(45),n(46);var r=n(1);e.vmdom={sv:r.sv};var i=n(1);Object.defineProperty(e,"resizeHandler",{enumerable:!0,get:function(){return i.resizeHandler}}),Object.defineProperty(e,"awaitRedraw",{enumerable:!0,get:function(){return i.awaitRedraw}}),Object.defineProperty(e,"setTheme",{enumerable:!0,get:function(){return i.setTheme}});var o=n(7);Object.defineProperty(e,"methods",{enumerable:!0,get:function(){return o.methods}});var a=n(58);Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return a.Chart}})},function(t,e,n){"use strict";n.r(e)},function(t,e,n){"use strict";n.r(e)},function(t,e,n){
|
|
13
13
|
/**
|
|
14
14
|
* Copyright (c) 2017, Leon Sorokin
|
|
15
15
|
* All rights reserved. (MIT Licensed)
|
|
@@ -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)&<(r)}}function ut(t){var e=t.el;if(0==(t.flags&R))l(t.body)&<(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}
|
|
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)&<(r)}}function ut(t){var e=t.el;if(0==(t.flags&R))l(t.body)&<(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(6),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(4))},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(6);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(5),a=n(54),s=n(6),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(4))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Selection=void 0;var r=n(13),i=n(57),o=n(6),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(59),l=n(7),u=n(60),h=n(62),f=n(9),d=n(64),p=n(68),v=n(79),g=n(2),_=n(80),y=n(0),m=n(86),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(5),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(61),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(63),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(65),i=n(16),o=n(67),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(69),a=n(70),s=n(19),c=n(71),l=n(72),u=n(73),h=n(74),f=n(75),d=n(76),p=n(77),v=n(78),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(81),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(82),e),i(n(83),e),i(n(84),e),i(n(85),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(5),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(4))},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(4))},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(5),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(5),o=function(){function t(t,e){this._name=t,this._view=e,this._version="9.2.3"}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}
|