dhx-suite 8.4.3 → 8.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
3
 
4
- dhtmlxSuite v.8.4.3 GPL
4
+ dhtmlxSuite v.8.4.5 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 i(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/codebase/",i(i.s=108)}([function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),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 n=i(120),o=i(3);function r(t){var i=window.ResizeObserver,n=function(e){var i=e.el.offsetHeight,n=e.el.offsetWidth;t(n,i)};return i?(0,e.el)("div.dhx-resize-observer",{_hooks:{didInsert:function(t){new i((function(){return n(t)})).observe(t.el)}}}):(0,e.el)("iframe.dhx-resize-observer",{_hooks:{didInsert:function(t){t.el.contentWindow.onresize=function(){return n(t)},n(t)}}})}e.el=n.defineElement,e.sv=n.defineSvgElement,e.view=n.defineView,e.create=n.createView,e.inject=n.injectView,e.KEYED_LIST=n.KEYED_LIST,e.disableHelp=function(){n.DEVMODE.mutations=!1,n.DEVMODE.warnings=!1,n.DEVMODE.verbose=!1,n.DEVMODE.UNKEYED_INPUT=!1},e.resizer=r,e.resizeHandler=function(t,i){return(0,e.create)({render:function(){return r(i)}}).mount(t)},e.awaitRedraw=function(){return new t((function(t){requestAnimationFrame((function(){t()}))}))},e.setTheme=function(t,e){void 0===t&&(t="light");var i="data-dhx-theme";e||document.querySelectorAll("[".concat(i,"]")).forEach((function(t){return t.removeAttribute(i)})),e=e||document.documentElement,(0,o.toNode)(e).setAttribute(i,t)}}).call(this,i(17))},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.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.uid=void 0;var o=i(3),r=(new Date).valueOf();e.uid=function(){return"u"+r++},e.extend=function t(e,i,n){if(void 0===n&&(n=!0),i)for(var o in i){var r=i[o],s=e[o];void 0===r?delete e[o]:!n||"object"!=typeof s||s instanceof Date||s instanceof Array?e[o]=r:t(s,r)}return e},e.copy=function(t,e){var i={};for(var n in t)e&&n.startsWith("$")||(i[n]=t[n]);return i},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 i=t.length,n=0;n<i;n++)if(e(t[n]))return n;return-1},e.isExistValue=function(t,e){var i=e.toString(),n=t.toString();return!(i.length>n.length)&&n.toLowerCase().includes(i.toLowerCase())},e.singleOuterClick=function(t){var e=function(i){t(i)&&document.removeEventListener("click",e)};document.addEventListener("click",e)},e.detectWidgetClick=function(t,e){var i=function(i){return e((0,o.locate)(i,"data-dhx-widget-id")===t)};return document.addEventListener("click",i),function(){return document.removeEventListener("click",i)}},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 i=[];t<=e;)i.push(t++);return i},e.isNumeric=function(t){return!isNaN(t-parseFloat(t))},e.downloadFile=function(t,e,i){void 0===i&&(i="text/plain");var n=new Blob([t],{type:i});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(n,e);else{var o=document.createElement("a"),r=URL.createObjectURL(n);o.href=r,o.download=e,document.body.appendChild(o),o.click(),setTimeout((function(){document.body.removeChild(o),window.URL.revokeObjectURL(r)}),0)}},e.debounce=function(t,e,i){var n;return function(){for(var o=this,r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var a=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(o,r)}),e),a&&t.apply(this,r)}},e.compare=function t(e,i){for(var n in e){if(e.hasOwnProperty(n)!==i.hasOwnProperty(n))return!1;switch(typeof e[n]){case"object":if(!t(e[n],i[n]))return!1;break;case"function":if(void 0===i[n]||"compare"!==n&&e[n].toString()!==i[n].toString())return!1;break;default:if(e[n]!==i[n])return!1}}for(var n in i)if(!e.hasOwnProperty(n))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,i=0,n=t.length;i<n;i++)t[i]>e&&(e=t[i]);return e}};e.getMinArrayNumber=function(t){if(t.length){for(var e=1/0,i=0,n=t.length;i<n;i++)t[i]<e&&(e=t[i]);return e}};e.getStringWidth=function(t,e){e=n({font:"normal 14px Roboto",lineHeight:20},e);var i=document.createElement("canvas"),r=i.getContext("2d");e.font&&(r.font=e.font);var s=r.measureText(t).width;return(0,o.isIE)()||i.remove(),s};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),i=parseInt(e[2],10).toString(16).padStart(2,"0"),n=parseInt(e[3],10).toString(16).padStart(2,"0"),o=parseInt(e[4],10).toString(16).padStart(2,"0");return"#".concat(i).concat(n).concat(o)}},e.getCloneObject=function t(e){if(!e)return e;var i=Array.isArray(e)?[]:{};for(var n in e){var o=e[n];o instanceof Date?i[n]=new Date(o):i[n]="object"==typeof o?t(o):o}return i},e.getTextLines=function(t,e,i){for(var n=e.split(" "),o="",r="",s=[],a=0;a<n.length;a++){r+="".concat(n[a]," "),t.measureText(r.trimEnd()).width>i&&a>0?(s.push(o),o="".concat(n[a]," "),r="".concat(n[a]," ")):o+="".concat(n[a]," "),a===n.length-1&&s.push(o)}return s}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EventsMixin=e.EventSystem=void 0;var n=function(){function t(t){this.events={},this.context=t||this}return t.prototype.on=function(t,e,i){var n=t.toLowerCase();this.events[n]=this.events[n]||[],this.events[n].push({callback:e,context:i||this.context})},t.prototype.detach=function(t,e){var i=t.toLowerCase(),n=this.events[i];if(e&&n&&n.length)for(var o=n.length-1;o>=0;o--)n[o].context===e&&n.splice(o,1);else this.events[i]=[]},t.prototype.fire=function(t,e){void 0===e&&(e=[]);var i=t.toLowerCase();return!this.events[i]||!this.events[i].map((function(t){return t.callback.apply(t.context,e)})).includes(!1)},t.prototype.clear=function(){this.events={}},t}();e.EventSystem=n,e.EventsMixin=function(t){var e=new n(t=t||{});t.detachEvent=e.detach.bind(e),t.attachEvent=e.on.bind(e),t.callEvent=e.fire.bind(e)}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};function o(t,e,i){for(void 0===e&&(e="data-dhx-id"),void 0===i&&(i="target"),t instanceof Event&&(t=t[i]);t;){if(t.getAttribute&&t.getAttribute(e))return t;t=t.parentNode}}Object.defineProperty(e,"__esModule",{value:!0}),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,i){var n=Object.keys(e);return function(o){var r=t(o);if(void 0!==r){var s=o.target;t:for(;s;){var a=s.getAttribute&&s.getAttribute("class")||"";if(a.length)for(var l=a.split(" "),c=0;c<n.length;c++)if(l.includes(n[c])){if(!1===e[n[c]](o,r)||o.cancelBubble)return!1;break t}s=s.parentNode}}return"function"==typeof i&&i(o),!0}},e.locateNode=o,e.locate=function(t,e){void 0===e&&(e="data-dhx-id");var i=o(t,e);return i?i.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(),i=document.body,n=window.pageYOffset||i.scrollTop,o=window.pageXOffset||i.scrollLeft;return{top:e.top+n,left:e.left+o,right:i.offsetWidth-e.right,bottom:i.offsetHeight-e.bottom,width:e.right-e.left,height:e.bottom-e.top}};var r=-1;e.getScrollbarWidth=function(){if(r>-1)return r;var t=document.createElement("div");return document.body.appendChild(t),t.style.cssText="position: absolute;left: -99999px;overflow:scroll;width: 100px;height: 100px;",r=t.offsetWidth-t.clientWidth,document.body.removeChild(t),r};var s=-1;function a(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 l(){return{rightBorder:window.pageXOffset+window.innerWidth,bottomBorder:window.pageYOffset+window.innerHeight}}function c(t,e){var i,o,r=l(),s=r.rightBorder,a=r.bottomBorder-t.bottom-e.height,c=t.top-e.height;if("bottom"===e.mode?a>=0?o=t.bottom:c>=0&&(o=c):c>=0?o=c:a>=0&&(o=t.bottom),a<0&&c<0){if(e.auto)return u(t,n(n({},e),{mode:"right",auto:!1}));o=a>c?t.bottom:c}if(e.centering)i=function(t,e,i){var n=(e-(t.right-t.left))/2,o=t.left-n,r=t.right+n;return o>=0&&r<=i?o:o<0?0:i-e}(t,e.width,s);else{var d=s-t.left-e.width,h=t.right-e.width;i=d>=0?t.left:h>=0?h:h>d?t.left:h}return{left:i,top:o}}function u(t,e){var i,o,r=l(),s=r.rightBorder,a=r.bottomBorder,u=s-t.right-e.width,d=t.left-e.width;if("right"===e.mode?u>=0?i=t.right:d>=0&&(i=d):d>=0?i=d:u>=0&&(i=t.right),d<0&&u<0){if(e.auto)return c(t,n(n({},e),{mode:"bottom",auto:!1}));i=d>u?d:t.right}if(e.centering)o=function(t,e,i){var n=(e-(t.bottom-t.top))/2,o=t.top-n,r=t.bottom+n;return o>=0&&r<=i?o:o<0?0:i-e}(t,e.height,a);else{var h=t.bottom-e.height,f=a-t.top-e.height;o=f>=0?t.top:h>0||h>f?h:t.top}return{left:i,top:o}}function d(t,e){var i="bottom"===e.mode||"top"===e.mode?c(t,e):u(t,e),n=i.left,o=i.top;return{left:Math.round(n)+"px",top:Math.round(o)+"px",minWidth:Math.round(e.width)+"px",position:"absolute"}}e.getScrollbarHeight=function(){if(s>-1)return s;var t=document.createElement("div");return document.body.appendChild(t),t.style.cssText="position: absolute;left: -99999px;overflow:scroll;width: 100px;height: 100px;",s=t.offsetHeight-t.clientHeight,document.body.removeChild(t),s},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/),i=t(/Firefox/);return!e&&!i&&t(/Safari/)},e.isFirefox=function(){var t=function(t){return t.test(window.navigator.userAgent)},e=t(/Chrome/),i=t(/Safari/);return!e&&!i&&t(/Firefox/)},e.getRealPosition=a,e.calculatePosition=d,e.fitPosition=function(t,e){return d(a(t),e)},e.getPageCss=function(){for(var t=[],e=0;e<document.styleSheets.length;e++)for(var i=document.styleSheets[e],n=("cssRules"in i?i.cssRules:i.rules),o=0;o<n.length;o++){var r=n[o];"cssText"in r?t.push(r.cssText):t.push("".concat(r.selectorText," {\n").concat(r.style.cssText,"\n}\n"))}return t.join("\n")},e.getLabelStyle=function(t){var e=t.helpMessage,i=t.type,n=t.labelWidth,o=t.label,r=n&&n.toString().startsWith("0"),s="text"!==i&&t.required;return!!(e||s||!(!o||o&&r)||n&&!r)&&{style:(o||n)&&!r&&{width:n,"max-width":"100%"},label:o&&r?null:o}};var h=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 i=document.styleSheets[e];if(!h(i))for(var n=("cssRules"in i&&i.cssRules.length?i.cssRules:i.rules),o=0;o<n.length;o++){var r=n[o];"cssText"in r?t.push(r.cssText):t.push("".concat(r.selectorText," {\n").concat(r.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 i=0;i<document.styleSheets.length;i++){var n=document.styleSheets[i];h(n)&&e.push('<link href="'.concat(n.href,'" rel="stylesheet"/>'))}return e.join("\n")}},function(t,e,i){"use strict";var n,o,r,s;Object.defineProperty(e,"__esModule",{value:!0}),e.ItemEvent=e.ValidationStatus=e.FormEvents=e.ClearMethod=void 0,function(t){t.value="value",t.validation="validation"}(n||(e.ClearMethod=n={})),function(t){t.beforeChange="beforeChange",t.change="change",t.click="click",t.focus="focus",t.blur="blur",t.keydown="keydown",t.beforeShow="beforeShow",t.afterShow="afterShow",t.beforeHide="beforeHide",t.afterHide="afterHide",t.afterValidate="afterValidate",t.beforeValidate="beforeValidate",t.beforeChangeProperties="beforeChangeProperties",t.afterChangeProperties="afterChangeProperties",t.beforeSend="beforesend",t.afterSend="aftersend",t.buttonClick="buttonClick",t.validationFail="validationfail"}(o||(e.FormEvents=o={})),function(t){t[t.pre=0]="pre",t[t.error=1]="error",t[t.success=2]="success"}(r||(e.ValidationStatus=r={})),function(t){t.click="click",t.beforeChange="beforeChange",t.change="change",t.input="input",t.focus="focus",t.blur="blur",t.keydown="keydown",t.beforeChangeOptions="beforeChangeOptions",t.changeOptions="changeOptions",t.beforeShow="beforeShow",t.afterShow="afterShow",t.beforeHide="beforeHide",t.afterHide="afterHide",t.beforeValidate="beforeValidate",t.afterValidate="afterValidate",t.beforeUploadFile="beforeUploadFile",t.uploadFile="uploadfile",t.uploadBegin="uploadBegin",t.uploadComplete="uploadComplete",t.uploadFail="uploadFail",t.uploadProgress="uploadProgress",t.beforeChangeProperties="beforeChangeProperties",t.afterChangeProperties="afterChangeProperties"}(s||(e.ItemEvent=s={}))},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.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 o,r,s=i(0),a=["#2A9D8F","#78586F","#E76F51","#E5A910","#11A3D0","#985F99","#217B70","#BD9391","#9C89B8","#734B5E","#D66BA0","#5C5D8D"],l=["#237396","#2780A8","#3892A3","#4DA3A0","#67BF99"];function c(t){var e={};return function(i){return e[i]?e[i]:e[i]=t(i)}}e.getDefaultColor=function(t,e){return void 0===t&&(t=0),e?l[t]:a[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=(o=function(t,e){void 0===e&&(e="");var i=document.createElement("canvas").getContext("2d");return e&&(i.font=e),i.measureText(t).width},r={},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=r,n=0;n<t.length-1;n++)i[t[n]]=i[t[n]]||{},i=i[t[n]];var s=t.length-1;return i[s]?i[s]:i[s]=o.apply(void 0,t)});var u=c((function(t){var e=document.createElement("canvas").getContext("2d");e.fillStyle=t,e.fillRect(0,0,2,2);var i=e.getImageData(1,1,1,1).data;return[i[0],i[1],i[2]]}));function d(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 i=u(t).map((function(t){return Math.floor(t*e+255*(1-e))})),n=i[0],o=i[1],r=i[2];return"rgb(".concat(n,",").concat(o,",").concat(r,")")},e.getFontStyle=c((function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("class","dhx_chart");var i=document.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("class",t),e.setAttribute("visibility","hidden"),i.textContent="test",e.appendChild(i),document.body.appendChild(e);var n=getComputedStyle(i),o="".concat(n.fontSize," ").concat(n.fontFamily);return document.body.removeChild(e),o})),e.linearGradient=function(t,e){var i=t.stops.map((function(t){return(0,s.sv)("stop",{offset:"".concat(100*t.offset,"%"),"stop-color":t.color,"stop-opacity":t.opacity||1})}));return(0,s.sv)("linearGradient",{id:e,gradientTransform:"rotate(90)"},i)},e.getRadialGradient=function(t,e,i){var o=e.map((function(t){return(0,s.sv)("stop",{offset:t.offset,"stop-color":t.color,"stop-opacity":t.opacity||1})}));return(0,s.sv)("radialGradient",n({id:i,cx:0,cy:0,gradientUnits:"userSpaceOnUse"},t),o)},e.euclideanDistance=function(t,e,i,n){return Math.sqrt((t-i)*(t-i)+(e-n)*(e-n))},e.roundToTwoNumAfterPoint=function(t){return Math.round(100*(100*t+Number.EPSILON))/100},e.verticalCenteredText=function(t){return(0,s.sv)("tspan",{dy:"0.5ex",style:{pointerEvents:"none"}},t)},e.verticalTopText=function(t){return(0,s.sv)("tspan",{dy:"-0.5ex"},t)},e.verticalBottomText=function(t){return(0,s.sv)("tspan",{dy:"1.5ex"},t)},e.calcPointRef=function(t,e){return t+"_"+e},e.getClassesForRotateScale=function(t,e){var i="",n=[];switch("left"===t||"top"===t?n.push("start-text","end-text"):"right"!==t&&"bottom"!==t||n.push("end-text","start-text"),t){case"left":case"right":0===e?i=n[1]:e>0?180===e?i=n[0]:e>180?e<270?i=n[0]:e>270&&(i=n[1]):e<180&&(e>90?i=n[0]:e<90&&(i=n[1])):e<0&&(-180===e?i=n[0]:e<-180?e>-270?i=n[0]:e<-270&&(i=n[1]):e>-180&&(e<-90?i=n[0]:e>-90&&(i=n[1])));break;case"top":case"bottom":e>0?e>180?i=n[0]:e<180&&(i=n[1]):e<0&&(e>-180?i=n[0]:e<-180&&(i=n[1]))}return i},e.getScales=function(t){var e=[];for(var i in t){var n=t[i];(n.min||n.max||n.maxTicks||n.text||n.value)&&e.push(i)}return e},e.getSizesSVGText=function(t,i){var o=[];return i=n({font:"normal 14px Roboto",lineHeight:18},i),o.push((0,e.getTextWidth)(t,i.font)),o.push(i.lineHeight),o},e.superposition=d,e.checkPositions=function(t,e,i,n,o){if(d(t,e)){var r=o.right?e.y-t.y+t.height:e.y-e.height-t.y,s=o.text1.y+r;Math.abs(s)+o.dy>n&&(s=s>0?n+o.dy:-n+o.dy,o.changeSector=!o.changeSector);var a=Math.sqrt(Math.pow(i,2)-Math.pow((s-o.dy)*i/n,2));a=o.right?a:-a,o.changeSector&&(a*=-1,o.line*=-1,t.class=o.right?"pie-value end-text":"pie-value start-text"),o.text1.x=a,o.text1.y=s,o.text2.x=a,o.text2.y=s+16}}},function(t,e,i){"use strict";var n,o=this&&this.__rest||function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]])}return i};Object.defineProperty(e,"__esModule",{value:!0}),e.setAttacments=e.widgetConfig=e.baseProps=e.isVerify=e.isTimeFormat=e.baseInputValidate=e.validateInput=e.isBlock=e.validateTemplate=e.getValidationMessage=e.getFormItemCss=void 0;var r=i(4),s=i(39),a=i(1);e.getFormItemCss=function(t,e,i){var n;void 0===i&&(i=!1);var o=t.labelPosition,s=t.required,a=t.disabled,l=t.hiddenLabel,c=t.$validationStatus,u=(n={},n[r.ValidationStatus.pre]="",n[r.ValidationStatus.error]=" dhx_form-group--state_error",n[r.ValidationStatus.success]=" dhx_form-group--state_success",n)[c]||"",d="left"===o?" dhx_form-group--inline":"",h=a?" dhx_form-group--disabled":"",f=l?" dhx_form-group--label_sr":"";return e?d+(i?"":u)+(s?" dhx_form-group--required":"")+h+f:d+h+f};var l=((n={})[s.Validation.validAlphaNumeric]=/^[a-zA-Z0-9_]+$/,n[s.Validation.validEmail]=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,n[s.Validation.validInteger]=/^-?\d+$/,n[s.Validation.validIPv4]=/\b((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.|$)){4}\b/,n[s.Validation.validNumeric]=/^-?\d+(\.\d+)?$/,n);function c(t){return"fieldset"!==t.type&&(Boolean(t.rows)||Boolean(t.cols))}e.getValidationMessage=function(t){var e;return(e={undefined:t.preMessage},e[r.ValidationStatus.pre]=t.preMessage,e[r.ValidationStatus.error]=t.errorMessage,e[r.ValidationStatus.success]=t.successMessage,e)[t.$validationStatus]||""},e.validateTemplate=function(t,e){return!l[t]||l[t].test(e)},e.isBlock=c,e.validateInput=function(t,e){var i=!0;if("function"==typeof e)i=e(t);else{var n=l[e];n&&(i=n.test(t.toString()))}return i},e.baseInputValidate=function(t,e){var i=null!=t?t:"";if(e.required){if(!String(i).trim())return!1}else if(""===i)return!0;var n=function(t,e,i){var n=(0,a.isDefined)(e),o=(0,a.isDefined)(i);return n&&o?Number(e)<=Number(i)&&Number(e)<=t&&Number(i)>=t:n?Number(e)<=t:!o||Number(i)>=t};return"number"===e.inputType?n(Number(i),e.min,e.max):n(String(i).length,e.minlength,e.maxlength)},e.isTimeFormat=function(t,e){return 12===e?/(^0?([1-9][0-2]?):[0-5][0-9]?([AP][M]?)$)/i.test(t):/(^(0[0-9]|1[0-9]|2[0-3]|[0-9]):[0-5][0-9]$)/i.test(t)},e.isVerify=function(t){return["required","validation","minlength","maxlength","min","max"].some((function(e){switch(e){case"required":return!!t[e];case"validation":return"function"==typeof t[e]||"email"===t[e]||"integer"===t[e]||"numeric"===t[e]||"alphanumeric"===t[e]||"IPv4"===t[e];case"minlength":case"maxlength":return"number"==typeof t[e]||"string"==typeof t[e];case"min":case"max":return("number"==typeof t[e]||"string"==typeof t[e])&&"number"===t.inputType}}))},e.baseProps=["width","height","padding","css"];function u(t,e,i){void 0===t&&(t=[]);for(var n=[],o=0;o<t.length;o++){var r=t[o];r.type&&(e[r.name].parent=i,n.push(e[r.name])),c(r)&&n.push.apply(n,u(r.rows||r.cols,e,i))}return n}e.widgetConfig=function(t){t.width,t.type,t.id,t.name,t.hidden,t.editable,t.css,t.required,t.helpMessage,t.preMessage,t.successMessage,t.errorMessage,t.label,t.labelWidth,t.labelPosition,t.hiddenLabel,t.validation,t.icon;return o(t,["width","type","id","name","hidden","editable","css","required","helpMessage","preMessage","successMessage","errorMessage","label","labelWidth","labelPosition","hiddenLabel","validation","icon"])},e.setAttacments=function(t,e){var i;for(var n in t){var o=t[n];"fieldset"===o.config.type?(o.setAttachments(u(o.config.rows||o.config.cols,t,o)),o.setCell(e.getCell(n))):null===(i=e.getCell(n))||void 0===i||i.attach(o)}}},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(22),e),o(i(60),e),o(i(125),e),o(i(126),e),o(i(27),e),o(i(128),e),o(i(23),e),o(i(63),e),o(i(62),e),o(i(129),e),o(i(61),e),o(i(41),e)},function(t,e,i){"use strict";var n,o,r,s,a;Object.defineProperty(e,"__esModule",{value:!0}),e.Split=e.GridSelectionEvents=e.GridSystemEvents=e.GridEvents=e.HeaderFilterEvent=void 0,function(t){t.change="change"}(n||(e.HeaderFilterEvent=n={})),function(t){t.scroll="scroll",t.expand="expand",t.filterChange="filterChange",t.beforeFilter="beforeFilter",t.beforeResizeStart="beforeResizeStart",t.resize="resize",t.afterResizeEnd="afterResizeEnd",t.cellClick="cellClick",t.cellRightClick="cellRightClick",t.cellMouseOver="cellMouseOver",t.cellMouseDown="cellMouseDown",t.cellDblClick="cellDblClick",t.headerCellClick="headerCellClick",t.footerCellClick="footerCellClick",t.headerCellMouseOver="headerCellMouseOver",t.footerCellMouseOver="footerCellMouseOver",t.headerCellMouseDown="headerCellMouseDown",t.footerCellMouseDown="footerCellMouseDown",t.headerCellDblClick="headerCellDblClick",t.footerCellDblClick="footerCellDblClick",t.headerCellRightClick="headerCellRightClick",t.footerCellRightClick="footerCellRightClick",t.beforeEditStart="beforeEditStart",t.afterEditStart="afterEditStart",t.beforeEditEnd="beforeEditEnd",t.afterEditEnd="afterEditEnd",t.beforeKeyDown="beforeKeyDown",t.afterKeyDown="afterKeyDown",t.beforeColumnHide="beforeColumnHide",t.afterColumnHide="afterColumnHide",t.beforeColumnShow="beforeColumnShow",t.afterColumnShow="afterColumnShow",t.beforeRowHide="beforeRowHide",t.afterRowHide="afterRowHide",t.beforeRowShow="beforeRowShow",t.afterRowShow="afterRowShow",t.beforeRowDrag="beforeRowDrag",t.dragRowStart="dragRowStart",t.dragRowOut="dragRowOut",t.dragRowIn="dragRowIn",t.canRowDrop="canRowDrop",t.cancelRowDrop="cancelRowDrop",t.beforeRowDrop="beforeRowDrop",t.afterRowDrop="afterRowDrop",t.afterRowDrag="afterRowDrag",t.beforeColumnDrag="beforeColumnDrag",t.dragColumnStart="dragColumnStart",t.dragColumnOut="dragColumnOut",t.dragColumnIn="dragColumnIn",t.canColumnDrop="canColumnDrop",t.cancelColumnDrop="cancelColumnDrop",t.beforeColumnDrop="beforeColumnDrop",t.afterColumnDrop="afterColumnDrop",t.afterColumnDrag="afterColumnDrag",t.beforeRowResize="beforeRowResize",t.afterRowResize="afterRowResize",t.beforeSort="beforeSort",t.afterSort="afterSort"}(o||(e.GridEvents=o={})),function(t){t.cellTouchMove="cellTouchMove",t.cellTouchEnd="cellTouchEnd",t.headerCellTouchMove="headerCellTouchMove",t.headerCellTouchEnd="headerCellTouchEnd"}(r||(e.GridSystemEvents=r={})),function(t){t.beforeUnSelect="beforeUnSelect",t.afterUnSelect="afterUnSelect",t.beforeSelect="beforeSelect",t.afterSelect="afterSelect"}(s||(e.GridSelectionEvents=s={})),function(t){t.left="leftSplit",t.right="rightSplit",t.top="topSplit",t.bottom="bottomSplit"}(a||(e.Split=a={}))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toViewLike=e.View=void 0;var n=i(1),o=i(3),r=function(){function t(t,e){var i;this.config=e||{},this._uid=null!==(i=this.config.rootId)&&void 0!==i?i:(0,n.uid)()}return t.prototype.mount=function(t,e){e&&(this._view=e),t&&this._view&&this._view.mount&&(this._container=(0,o.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=r,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,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Label=void 0;var s=i(0),a=i(3),l=i(9),c=i(13),u=i(4),d=function(t){function e(e,i){void 0===i&&(i={});var n=t.call(this,e,i)||this;n._handlers=r({showHelper:function(t){t.preventDefault(),t.stopPropagation(),n._helper.show(t.target,{mode:"left"===n.config.labelPosition?"bottom":"right",theme:t.target})},hideHelper:function(t){t.preventDefault(),t.stopPropagation(),n._helper.hide()}},n._getHandlers());return n.mount(e,(0,s.create)({render:function(){return n.config&&n._draw()}})),n}return o(e,t),e.prototype.setValidationStatus=function(t){void 0===t&&(t="pre"),this.config.$validationStatus=u.ValidationStatus[t]},e.prototype._destructor=function(){this._helper&&this._helper.destructor(),this.config=this._handlers=this._helper=null,this.unmount()},e.prototype._getHandlers=function(){return{}},e.prototype._init=function(){},e.prototype._draw=function(){return this._drawLabel()},e.prototype._drawLabel=function(){var t=this.config,e=t.id,i=t.helpMessage,n=t.required;this.config.helpMessage&&(this._helper||(this._helper=new c.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"})),this._helper.attachHTML(this.config.helpMessage));var o=(0,a.getLabelStyle)(this.config);return o&&(0,s.el)("".concat(this.config.type.includes("group")?"legend":"label",".dhx_label"),{for:e||this._uid,class:i?"dhx_label--with-help":"",style:o.style},i?[(o.label||n)&&(0,s.el)("span.dhx_label__holder",o.label),(0,s.el)("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper,onfocus:this._handlers.showHelper,onblur:this._handlers.hideHelper,id:"dhx_label__help_".concat(e||this._uid)})]:o.label)},e}(l.View);e.Label=d},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(42),e),o(i(132),e),o(i(43),e)},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(134),e),o(i(135),e),o(i(136),e),o(i(66),e),o(i(44),e)},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(152),e),o(i(68),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeyManager=void 0;var n=i(21),o=i(3);function r(t){for(var e=t.toLowerCase().match(/\w+/g),i=0,n="",o=0;o<e.length;o++){var r=e[o];"ctrl"===r?i+=4:"shift"===r?i+=2:"alt"===r?i+=1:n=r}return i+n}var s={Up:"arrowUp",Down:"arrowDown",Right:"arrowRight",Left:"arrowLeft",Esc:"escape",Spacebar:"space"},a=function(){function t(t){var e=this;this._keysStorage={},this._initHandler=function(t){var i;if(t.which>=48&&t.which<=57||t.which>=65&&t.which<=90)i=String.fromCharCode(t.which);else{var r=32===t.which?t.code:t.key;i=(0,o.isIE)()&&s[r]||r}var a=e._keysStorage[(t.ctrlKey||t.metaKey?4:0)+(t.shiftKey?2:0)+(t.altKey?1:0)+(i&&i.toLowerCase())];if(a)for(var l=0;l<a.length;l++){if(e._beforeCall&&!1===e._beforeCall(t,n.focusManager.getFocusId()))return;a[l].handler(t)}},t&&(this._beforeCall=t),document.addEventListener("keydown",this._initHandler)}return t.prototype.destructor=function(){document.removeEventListener("keydown",this._initHandler),this.removeHotKey()},t.prototype.addHotKey=function(t,e){var i=r(t);this._keysStorage[i]||(this._keysStorage[i]=[]),this._keysStorage[i].push({handler:e})},t.prototype.removeHotKey=function(t,e){var i=this;if(t)if(t&&e){var n=r(t),o=function(t){return t.toString().replace(/\n/g,"").replace(/\s/g,"")};this._keysStorage[n].forEach((function(t,r){o(t.handler)===o(e)&&(delete i._keysStorage[n][r],i._keysStorage[n]=i._keysStorage[n].filter((function(t){return t})))}))}else{var s=r(t);delete this._keysStorage[s]}else this._keysStorage={}},t.prototype.exist=function(t){var e=r(t);return!!this._keysStorage[e]},t.prototype.getKeyStorageLength=function(){return Object.keys(this._keysStorage).length},t}();e.KeyManager=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DateHelper=e.stringToDate=e.getFormattedDate=e.locale=void 0;var n=i(1),o=i(1);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 r,s={"%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()}},a={"%d":function(t,e,i,n){var o=/(^([0-9][0-9])$)/i.test(e);if(n)return o;o?t.setDate(Number(e)):t.setDate(Number(1))},"%j":function(t,e,i,n){var o=/(^([0-9]?[0-9])$)/i.test(e);if(n)return o;o?t.setDate(Number(e)):t.setDate(Number(1))},"%m":function(t,e,i,n){var o=/(^([0-9][0-9])$)/i.test(e);if(n)return o;o?t.setMonth(Number(e)-1):t.setMonth(Number(0)),o&&t.getMonth()!==Number(e)-1&&t.setMonth(Number(e)-1)},"%n":function(t,e,i,n){var o=/(^([0-9]?[0-9])$)/i.test(e);if(n)return o;o?t.setMonth(Number(e)-1):t.setMonth(Number(0)),o&&t.getMonth()!==Number(e)-1&&t.setMonth(Number(e)-1)},"%M":function(t,i,n,r){var s=(0,o.findIndex)(e.locale.monthsShort,(function(t){return t===i}));if(r)return-1!==s;-1===s?t.setMonth(0):t.setMonth(s),-1!==s&&t.getMonth()!==s&&t.setMonth(s)},"%F":function(t,i,n,r){var s=(0,o.findIndex)(e.locale.months,(function(t){return t===i}));if(r)return-1!==s;-1===s?t.setMonth(0):t.setMonth(s),-1!==s&&t.getMonth()!==s&&t.setMonth(s)},"%y":function(t,e,i,n){var o=/(^([0-9][0-9])$)/i.test(e);if(n)return o;o?t.setFullYear(Number("20"+e)):t.setFullYear(Number("2000"))},"%Y":function(t,e,i,n){var o=/(^([0-9][0-9][0-9][0-9])$)/i.test(e);if(n)return o;o?t.setFullYear(Number(e)):t.setFullYear(Number("2000"))},"%h":function(t,e,i,n){var o=/(^0[1-9]|1[0-2]$)/i.test(e);if(n)return o;o&&("am"===i||"pm"===i)||"AM"===i||"PM"===i?t.setHours(Number(e)):t.setHours(Number(0))},"%g":function(t,e,i,n){var o=/(^[1-9]$)|(^0[1-9]|1[0-2]$)/i.test(e);if(n)return o;o&&("am"===i||"pm"===i)||"AM"===i||"PM"===i?t.setHours(Number(e)):t.setHours(Number(0))},"%H":function(t,e,i,n){var o=/(^[0-2][0-9]$)/i.test(e);if(n)return o;o?t.setHours(Number(e)):t.setHours(Number(0))},"%G":function(t,e,i,n){var o=/(^[1-9][0-9]?$)/i.test(e);if(n)return o;o?t.setHours(Number(e)):t.setHours(Number(0))},"%i":function(t,e,i,n){var o=/(^([0-5][0-9])$)/i.test(e);if(n)return o;o?t.setMinutes(Number(e)):t.setMinutes(Number(0))},"%s":function(t,e,i,n){var o=/(^([0-5][0-9])$)/i.test(e);if(n)return o;o?t.setSeconds(Number(e)):t.setSeconds(Number(0))},"%u":function(t,e,i,n){var o=/(^([0-9][0-9][0-9])$)/i.test(e);if(n)return o;o?t.setMilliseconds(Number(e)):t.setMilliseconds(Number(0))},"%a":function(t,e,i,n){if(n)return"pm"===e||"am"===e;"pm"===e&&t.setHours(t.getHours()+12)},"%A":function(t,e,i,n){if(n)return"PM"===e||"AM"===e;"PM"===e&&t.setHours(t.getHours()+12)}};function l(t){for(var e=[],i="",n=0;n<t.length;n++)"%"===t[n]?(i.length>0&&(e.push({type:r.separator,value:i}),i=""),e.push({type:r.datePart,value:t[n]+t[n+1]}),n++):i+=t[n];return i.length>0&&e.push({type:r.separator,value:i}),e}!function(t){t[t.separator=0]="separator",t[t.datePart=1]="datePart"}(r||(r={})),e.getFormattedDate=function(t,e){return l(t).reduce((function(t,i){return i.type===r.separator?t+i.value:s[i.value]?t+s[i.value](e):t}),"")};var c={"%Y":1,"%y":1,"%M":2,"%F":2,"%m":2,"%n":2};function u(t,e,i){if("string"==typeof t){e=e.replace(/([a-z])(%a)/i,(function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t=t.replace(/(am|pm)/i," $&"),e[1]+" "+e[2]}));for(var n,o=l(e),s=new Array(2),u=0,d=null,h="Incorrect date, see docs: https://docs.dhtmlx.com/suite/calendar__api__calendar_dateformat_config.html",f=function(t){var e=c[t.formatter];e?s[e-1]=t:("%A"!==t.formatter&&"%a"!==t.formatter||(n=t.value),s.push(t))},p=0;p<o.length;p++)if(o[p].type===r.separator){var v=t.indexOf(o[p].value,u);if(-1===v){if(i)return!1;throw new Error(h)}d&&(f({formatter:d,value:t.slice(u,v)}),d=null),u=v+o[p].value.length}else if(o[p].type===r.datePart){if(o[p+1]&&o[p+1].type!==r.separator){if(i)return!1;throw new Error(h)}d=o[p].value}d&&f({formatter:d,value:t.slice(u)});for(var g=new Date(0),_=0,m=s;_<m.length;_++){var y=m[_];if(y&&a[y.formatter]){if(i&&!a[y.formatter](g,y.value,n,i))return!1;a[y.formatter](g,y.value,n)}}return!!i||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 i=(t.getDay()+7-e)%7;return new Date(t.getFullYear(),t.getMonth(),t.getDate()-i)},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,i,n){return void 0===n||!n&&12===e||n&&12!==e?new Date(t.getFullYear(),t.getMonth(),t.getDate(),e,i):n&&12===e?new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,i):new Date(t.getFullYear(),t.getMonth(),t.getDate(),e+12,i)},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(),i=e-e%12;return(0,n.range)(i,i+11)},t.getDayOrdinal=function(e){return(e.valueOf()-t.yearStart(e).valueOf())/864e5},t.getWeekNumber=function(e){var i=4===e.getDay()?e:t.addDay(e,4-e.getDay()),n=t.getDayOrdinal(i);return Math.trunc(n/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,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.scrollFixedColsAndRows=e.getTotalHeight=e.getTotalWidth=e.isHtmlEnable=e.isTooltip=e.getTooltipConfig=e.isContentTooltip=e.showTooltip=e.isAutoWidth=e.isSortable=e.isRowEmpty=e.isCssSupport=e.removeHTMLTags=e.getStyleByClass=e.transpose=void 0;var o=i(1),r=i(3),s=i(12);e.transpose=function(t,e){for(var i=[],n=0;n<t.length;n++)for(var o=t[n],r=0;r<o.length;r++){i[r]=i[r]||[];var s=e?e(o[r]):o[r];i[r].push(s)}return i},e.getStyleByClass=function(t,e,i,n){void 0===n&&(n=document.body);var r,s,a,l=n.querySelector("."+e.trim().replace(/\s/g,".")),c=(r=l,"string"==typeof(s='<div class="'.concat(t,'"></div>'))?(r.insertAdjacentHTML("beforeend",s),r.lastChild):(r.appendChild(s),s)),u=window.getComputedStyle(c),d="rgba(0, 0, 0, 0)";if(u.backgroundColor===d){var h=window.getComputedStyle(l);a=h.backgroundColor===d?i.background:(0,o.rgbToHex)(h.backgroundColor)}else a=(0,o.rgbToHex)(u.backgroundColor);var f={color:"rgb(0, 0, 0)"===u.color?i.color:(0,o.rgbToHex)(u.color),background:a,fontSize:Math.round(parseFloat(u.fontSize)),bold:["bold","700","600","500"].includes(u.fontWeight)};return l.removeChild(c),(0,o.compare)(f,i)?null:f},e.removeHTMLTags=function(t){return"string"!=typeof t&&"number"!=typeof t&&"boolean"!=typeof t?"":"".concat(null==t?"":t).replace(/<[^>]*>/g,"").replace(/["]/g,"&quot;").trim()},e.isCssSupport=function(t,e){try{return CSS.supports(t,e)}catch(n){var i=document.createElement("div");return i.style[t]=e,i.style[t]===e}},e.isRowEmpty=function(t){if(t)return Object.keys(t).reduce((function(e,i){return"id"===i||i.startsWith("$")?e:e&&void 0!==t[i]&&""!==t[i]?void 0:e}),!0)},e.isSortable=function(t,e){return!1!==e.sortable&&t.sortable||e.sortable},e.isAutoWidth=function(t,e){if(e)return!1!==e.autoWidth&&t.autoWidth||e.autoWidth;var i=!1;return t.columns.map((function(e){(!1!==e.autoWidth&&t.autoWidth||e.autoWidth)&&(i=!0)})),i},e.showTooltip=function(t,e){e.node&&(0,s.tooltip)(t.toString(),n(n({},e),{css:"dhx_grid_tooltip "+(e.css||"")}))},e.isContentTooltip=function(t,e,i,n){for(var o=!1,r="header"===n?t.headerTooltip:t.footerTooltip,s=[t.tooltip,r,e.tooltip,null==i?void 0:i.tooltip],a=0;a<s.length;a++)(s[a]||"boolean"==typeof s[a])&&(o=!!s[a]);return o},e.getTooltipConfig=function(t,e,i,n){return[null==i?void 0:i.tooltip,null==e?void 0:e.tooltip,n&&("header"===n?t.headerTooltip:t.footerTooltip),t.tooltip].find((function(t){return t instanceof Object}))||{}},e.isTooltip=function(t,e){return!1!==e.tooltip&&t.tooltip||e.tooltip},e.isHtmlEnable=function(t,e,i){var n,o;return!!(null!==(o=null!==(n=null==i?void 0:i.htmlEnable)&&void 0!==n?n:e.htmlEnable)&&void 0!==o?o:t.htmlEnable)},e.getTotalWidth=function(t){return t.reduce((function(t,e){return t+(e.$width||0)}),0)},e.getTotalHeight=function(t){return t.reduce((function(t,e){return t+(e.$height||0)}),0)},e.scrollFixedColsAndRows=function(t){var e=(0,r.locateNode)(t,"data-dhx-widget-id").querySelector(".dhx_grid-body"),i=t.deltaY,n=t.shiftKey?[i,0]:[0,i];null==e||e.scrollBy.apply(e,n)}},function(t,e,i){(function(e,i){!function(){e="undefined"!=typeof window?window:this;var n=1,o={},r=!1;function s(t){e.setImmediate?i(t):e.importScripts?setTimeout(t):(n++,o[n]=t,e.postMessage(n,"*"))}function a(t){"use strict";if("function"!=typeof t&&null!=t)throw TypeError();if("object"!=typeof this||this&&this.then)throw TypeError();var e,i,n=this,o=0,r=0,l=[];n.promise=n,n.resolve=function(t){return e=n.fn,i=n.er,o||(r=t,o=1,s(d)),n},n.reject=function(t){return e=n.fn,i=n.er,o||(r=t,o=2,s(d)),n},n._d=1,n.then=function(t,e){if(1!=this._d)throw TypeError();var i=new a;return i.fn=t,i.er=e,3==o?i.resolve(r):4==o?i.reject(r):l.push(i),i},n.catch=function(t){return n.then(null,t)};var c=function(t){o=t||4,l.map((function(t){3==o&&t.resolve(r)||t.reject(r)}))};try{"function"==typeof t&&t(n.resolve,n.reject)}catch(t){n.reject(t)}return n;function u(t,e,i,n){if(2==o)return n();if("object"!=typeof r&&"function"!=typeof r||"function"!=typeof t)n();else try{var s=0;t.call(r,(function(t){s++||(r=t,e())}),(function(t){s++||(r=t,i())}))}catch(t){r=t,i()}}function d(){var t;try{t=r&&r.then}catch(t){return r=t,o=2,d()}u(t,(function(){o=1,d()}),(function(){o=2,d()}),(function(){try{1==o&&"function"==typeof e?r=e(r):2==o&&"function"==typeof i&&(r=i(r),o=1)}catch(t){return r=t,c()}r==n?(r=TypeError(),c()):u(t,(function(){c(3)}),c,(function(){c(1==o&&3)}))}))}}e.setImmediate||e.addEventListener("message",(function(t){if(t.source==e)if(r)s(o[t.data]);else{r=!0;try{o[t.data]()}catch(t){}delete o[t.data],r=!1}})),a.resolve=function(t){if(1!=this._d)throw TypeError();return t instanceof a?t:new a((function(e){e(t)}))},a.reject=function(t){if(1!=this._d)throw TypeError();return new a((function(e,i){i(t)}))},a.all=function(t){if(1!=this._d)throw TypeError();if(!(t instanceof Array))return a.reject(TypeError());var e=new a;return function i(n,o){if(o)return e.resolve(o);if(n)return e.reject(n);0==t.reduce((function(t,e){return e&&e.then?t+1:t}),0)&&e.resolve(t),t.map((function(e,n){e&&e.then&&e.then((function(e){return t[n]=e,i(),e}),i)}))}(),e},a.race=function(t){if(1!=this._d)throw TypeError();if(!(t instanceof Array))return a.reject(TypeError());if(0==t.length)return new a;var e=new a;return function i(n,o){if(o)return e.resolve(o);if(n)return e.reject(n);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){i(null,t)}),i)}))}(),e},a._d=1,t.exports=a}()}).call(this,i(40),i(117).setImmediate)},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.getEditorValue=e.getValueForNumberColumn=e.getEditorOptions=e.toFormat=e.getMaxColsWidth=e.getTreeCellWidthOffset=e.getCalculatedRowHeight=e.getMaxRowHeight=e.getUnique=e.calculatePositions=e.countColumns=e.measureTextHeight=e.normalizeArray=void 0;var r=i(1),s=i(16),a=i(15);e.normalizeArray=function(t,e){t[e]&&("string"==typeof t[e]?t[e]=[{text:"".concat(t[e])}]:t[e]=t[e].map((function(t){return"string"==typeof t&&(t={text:t}),t})))},e.measureTextHeight=function(t){var e=t.text,i=void 0===e?"":e,n=t.width,o=void 0===n?0:n,a=t.lineHeight,l=void 0===a?20:a,c=t.font,u=void 0===c?"14px Arial":c,d=t.htmlEnable,h=void 0!==d&&d,f=document.createElement("canvas"),p=f.getContext("2d",{alpha:!1});p.font=u;var v=[],g=[];h&&(i=(0,s.removeHTMLTags)(i));var _=Math.ceil(p.measureText(i).width/o);_>1&&(_=(0,r.getTextLines)(p,i,o).length),g.push(_),v.push(i.split("\n").length);var m=Math.max((0,r.getMaxArrayNumber)(v),(0,r.getMaxArrayNumber)(g));return f.remove(),m*l},e.countColumns=function(t,e){var i=0,n=0,o=0,s=!1,a=0,l=!1;return e.forEach((function(t){if(i=Math.max(i,t.header.length),o+=t.$width,t.footer&&(n=Math.max(n,t.footer.length),l||(l=!0)),!s)for(var e=0,r=t.header;e<r.length;e++){if(r[e].colspan)return void(s=!0)}})),e.forEach((function(t){if(l&&(t.footer=t.footer||[]),t.header.length<i)for(var e=0;e<i;e++)t.header[e]=t.header[e]||{text:""};if(t.footer){if(t.footer.length<n)for(e=0;e<n;e++)t.footer[e]=t.footer[e]||{text:""};for(e=0;e<t.footer.length;e++)t.footer[e].id||(t.footer[e].id=(0,r.uid)())}t.header=t.header.map((function(t){return"object"!=typeof t&&(t={text:t}),t.css=t.css||"",t.text||t.css.includes("dhx_cell-empty")||(t.css+=" dhx_cell-empty"),t.id||(t.id=(0,r.uid)()),t})),""===t.header[0].text&&a++})),t.$totalWidth=o,t.$colspans=s,t.$footer=l,a},e.calculatePositions=function(t,e,i,n,o){for(var r,s,a,l=n.columns||[],c=l.length,u=o||[],d=u.length,h=n.leftSplit?n.columns.slice(0,n.leftSplit).filter((function(t){return!t.hidden})).length:0,f=null!==(r=n.topSplit)&&void 0!==r?r:0,p=null!==(s=n.rightSplit)&&void 0!==s?s:0,v=null!==(a=n.bottomSplit)&&void 0!==a?a:0,g=0,_=0,m=i.left,y=n.$totalWidth/c,b=0;b<c;b++){var w=l[b];if(w.hidden)_++;else{if(!((m-=w.$width)+y/2>0))break;g++}}var x=0,E=0,C=i.top,S=n.$totalHeight/d;for(b=0;b<d;b++){if((A=u[b]).hidden)E++;else{if(!((C-=A.$height)+S/2>0))break;x++}}for(var k=0,O=0,P=-1/0,I=1/0,D=g+_,M=0;M<c;M++){var T=l[M];M>=D&&k<t&&!T.hidden&&(k+=T.$width,O++),T.$width>P&&(P=T.$width),T.$width<I&&(I=T.$width)}var V=0,H=0,j=-1/0,F=1/0,R=x+E;for(M=0;M<d;M++){var A=u[M];M>=R&&V<e&&!A.hidden&&(V+=A.$height,H++),A.$height>j&&(j=A.$height),A.$height<F&&(F=A.$height)}F=F<n.rowHeight?F:n.rowHeight;var L=Math.round(P/I),$=Math.round(j/F),N=g-L>=h?g-L:h,z=g+O+L,W=(n.leftSplit||0)-h,B=l.length-p-W,G=z<B?z:B,q=x-$>=f?x-$:f,Y=x+H+$,X=u.length-v;return{xStart:N,xEnd:G,yStart:q,yEnd:Y<X?Y:X}},e.getUnique=function(t,e,i){var n=t.map((function(t){return t[e]}));return i&&n.forEach((function(t,e){"string"==typeof t&&t.includes(", ")&&(t.split(", ").forEach((function(t){return n.push(t)})),delete n[e])})),n.filter((function(t,e,i){return i.indexOf(t)===e&&(0,r.isDefined)(t)})).sort()};e.getMaxRowHeight=function(t,e,i){var n,o;void 0===i&&(i={font:"14px Arial",lineHeight:20});var a=document.createElement("canvas"),l=a.getContext("2d",{alpha:!1});l.font=i.font;for(var u={},d=e.length,h=0;h<d;h++)e[h].template?u[e[h].id]={width:e[h].$width-24||0,htmlEnable:e[h].htmlEnable,template:e[h].template,cols:e[h]}:u[e[h].id]={width:e[h].$width-24||0,htmlEnable:e[h].htmlEnable,cols:e[h]};for(var f=[],p=[],v=0,g=Object.entries(t);v<g.length;v++){var _=g[v],m=_[0],y=_[1];if(u[m]&&"height"!==m&&!m.startsWith("$")&&("string"==typeof y||"number"==typeof y||y instanceof Date||Array.isArray(y))){var b=u[m].cols;y="combobox"===b.editorType||"multiselect"===b.editorType?c(y,b,t):y;var w="";if(null===(n=u[m])||void 0===n?void 0:n.template){var x=u[m].template(y,t,u[m].cols);w=u[m].htmlEnable?(0,s.removeHTMLTags)(x):x}else w="string"==typeof y?u[m].htmlEnable?(0,s.removeHTMLTags)(y):y:y.toString();var E=Math.ceil(l.measureText(w).width/u[m].width);E>1&&(E=(0,r.getTextLines)(l,w,null===(o=u[m])||void 0===o?void 0:o.width).length),p.push(E),f.push(w.split("\n").length)}}var C=Math.max((0,r.getMaxArrayNumber)(f),(0,r.getMaxArrayNumber)(p));return a.remove(),C*i.lineHeight+8};e.getCalculatedRowHeight=function(t,e){var i=(e=n({rowHeight:40,padding:12},e)).rowHeight<40?t:t+2*e.padding;return t<e.rowHeight?e.rowHeight:i};e.getTreeCellWidthOffset=function(t,e){return void 0===e&&(e=!1),20+20*t.$level-(e&&t.$items?20:0)};function l(t,e){return o(o([],("function"==typeof t.options?t.options(t,e):t.options)||[],!0),t.$customOptions||[],!0)}function c(t,e,i){var n=l(e,i);return"multiselect"===e.editorType&&"string"==typeof t?t.split(",").map((function(t){return u(t.trim(),n)})).join(", "):u(t,n)}function u(t,e){var i=e.find((function(e){return e instanceof Object&&e.id==t}));return i?i.value:t}e.getMaxColsWidth=function(t,e,i,n){if(void 0===i&&(i={font:"normal 14.4px Arial"}),t.length&&e.length){var o=document.createElement("canvas"),r=o.getContext("2d",{alpha:!1});r.font=i.font;for(var l={},u=e.length,d=0;d<u;d++){var h=e[d],f=h.template,p=h.htmlEnable,v=h.format,g=h.id,_=h.type;l[g]=f&&"data"===n?{width:20,htmlEnable:!!p,template:f,cols:h,type:_}:{width:20,htmlEnable:!!p,format:"date"===_?v||"%M %d %Y":v,cols:h,type:_}}var m=t.length;for(d=0;d<m;d++)for(var y=0,b=Object.entries(t[d]);y<b.length;y++){var w=b[y],x=w[0],E=w[1],C=l[x];if(C&&"height"!==x&&!x.startsWith("$")&&("string"==typeof E||"number"==typeof E||E instanceof Date||Array.isArray(E))){f=C.template;var S=C.cols,k=(v=C.format,_=C.type,p=C.htmlEnable,C.width);E="combobox"===S.editorType||"multiselect"===S.editorType?c(E,S,t[d]):E;var O=void 0;if("function"==typeof f){var P=f(E,t[d],S);O=p?(0,s.removeHTMLTags)(P):P}else O=p?(0,s.removeHTMLTags)(E):E.toString();var I=v&&"date"===_&&new Date(O);(null==I?void 0:I.valueOf())&&(O=(0,a.getFormattedDate)(v,I));var D=r.measureText(O).width;D>k&&(l[x].width=D)}}o.remove();for(var M={},T=0,V=Object.entries(l);T<V.length;T++){var H=V[T];x=H[0],E=H[1];M[x]=Math.ceil(E.width)}return M}},e.toFormat=function(t,e,i){if("boolean"==typeof t)return t;if(!t&&"number"!=typeof t)return t;var n=function(e){var n,o,r,s=i.replace(/#+/g,"#").split("#").filter((function(t){return t})),a=i.match(/0/g)&&i.match(/0/g).length;t=("percent"===e?100*Number(t):t).toString();var l=Math.trunc(Number(t));if(a){var c=t.split(".")[1]||"0";r=s.find((function(t){return t.includes("0")})).replace(/0+/g,""),o=Number("0."+c).toFixed(a),Number(o)>=1&&l++,o=o.toString().split(".")[1].padEnd(a,"0")}var u="".concat(t<0&&0===Math.abs(l)?"-":"").concat(l),d=s.find((function(t){return!t.includes("0")}));return n=d?u.replace(/(\d)(?=(\d{3})+(\D|$))/g,"$1".concat(d)):u,n+=(r||"")+(o||""),"percent"===e?"".concat(n,"%"):n};switch(e){case"number":return i&&!isNaN(Number(t))?n(e):t;case"percent":return i||(i="#"),isNaN(Number(t))?t:n(e);case"date":return i||(i="%M %d %Y"),"string"==typeof t?t=(0,a.getFormattedDate)(i,(0,a.stringToDate)(t,i)):"object"==typeof t&&(t=(0,a.getFormattedDate)(i,t)),t;default:return t}},e.getEditorOptions=l,e.getValueForNumberColumn=function(t,e){return!(0,r.isDefined)(e)||""===e||"number"==typeof e||["select","combobox","multiselect"].includes(t.editorType)?e:"string"==typeof e?parseFloat(e):NaN},e.getEditorValue=u},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScrollView=e.scrollViewConfig=void 0;var n=i(1),o=i(0),r=i(3);e.scrollViewConfig={enable:!1,autoHide:!0,timeout:1e3,scrollHandler:function(){}};var s=function(){function t(t,i){var o;void 0===i&&(i={});var s=this;this.config=(0,n.extend)({enable:e.scrollViewConfig.enable,autoHide:e.scrollViewConfig.autoHide,timeout:e.scrollViewConfig.timeout,scrollHandler:e.scrollViewConfig.scrollHandler},i),this._wheelName=(0,r.isIE)()?"onmousewheel":"onwheel",this._getRootView=t,this._scrollYTop=this._scrollXLeft=this._runnerYTop=this._runnerXLeft=this._runnerHeight=this._runnerWidth=0,this._visibleYArea=this._visibleXArea=1,this._scrollWidth=(0,r.getScrollbarWidth)(),this._scrollHeight=(0,r.getScrollbarHeight)(),this._handlers=((o={onscroll:function(t){s.config.scrollHandler(t),s.update()}})[this._wheelName]=function(t){var e=!!(0,r.locateNodeByClassName)(t.target,"y-scroll");t.preventDefault();var i=40*((t.deltaY||-t.wheelDelta)>0?1:-1),n=s._getRefs().area;if(e){var o=n.scrollHeight-s._runnerHeight,a=s._scrollYTop+i;n.scrollTop=a<0?0:a>o?o:a}else{var l=n.scrollWidth-s._runnerWidth,c=s._scrollXLeft+i;n.scrollLeft=c<0?0:c>l?l:c}s.update()},o.onmousedownRunner=function(t){t.preventDefault();var e=!!(0,r.locateNodeByClassName)(t.target,"y-scroll"),i=s._getRefs(),n=i.area,o=i.runnerY,a=i.runnerX,l=n.getBoundingClientRect(),c=l.top+window.pageYOffset,u=l.bottom+window.pageYOffset,d=n.scrollHeight-s._runnerHeight,h=t.pageY-o.getBoundingClientRect().top-window.pageYOffset,f=l.left+window.pageXOffset,p=l.right+window.pageXOffset,v=n.scrollWidth-s._runnerWidth,g=t.pageX-a.getBoundingClientRect().left-window.pageXOffset,_=function(t){if(e){var i=t.pageY-h;n.scrollTop=i<=c?0:i>u?d:(i-c)/s._visibleYArea}else{var o=t.pageX-g;n.scrollLeft=o<=f?0:o>p?v:(o-f)/s._visibleXArea}s.update()},m=function(){document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",m),document.body.classList.remove("dhx-no-select")};document.body.classList.add("dhx-no-select"),document.addEventListener("mousemove",_),document.addEventListener("mouseup",m)},o.onmousedownArea=function(t){if(!(0,r.locateNodeByClassName)(t,"scroll-runner")){t.preventDefault();var e=!!(0,r.locateNodeByClassName)(t.target,"y-scroll"),i=s._getRefs(),n=i.area,o=i.runnerY,a=i.runnerX;e?n.scrollTop+=(t.pageY-o.getBoundingClientRect().top)/s._visibleYArea:n.scrollLeft+=(t.pageX-a.getBoundingClientRect().left)/s._visibleXArea,s.update()}},o.onmouseenter=function(t){if(!(0,r.locateNodeByClassName)(t,"scroll-runner")){var e=s._getRefs();if(e){var i=!!(0,r.locateNodeByClassName)(t.target,"y-scroll"),n=e.areaX,o=e.areaY;i&&s._runnerHeight>0?o.style.background="#eee":!i&&s._runnerWidth>0&&(n.style.background="#eee")}}},o.onmouseleave=function(t){if(!(0,r.locateNodeByClassName)(t,"scroll-runner")){var e=s._getRefs();if(e){var i=!!(0,r.locateNodeByClassName)(t.target,"y-scroll"),n=e.areaX,o=e.areaY;i&&s._runnerHeight>0?o.style.background="transparent":!i&&s._runnerWidth>0&&(n.style.background="transparent")}}},o)}return t.prototype.enable=function(){this.config.enable=!0,this._getRootView().redraw()},t.prototype.disable=function(){this.config.enable=!1,this._getRootView().redraw()},t.prototype.render=function(t,e){var i,n,r=this;if(void 0===e&&(e=""),!this.config.enable||!t.length)return t;e&&(this._uid=e);var s=this.config.enable?[(0,o.el)(".y-scroll",(i={},i[this._wheelName]=this._handlers[this._wheelName],i._ref=e?"scroll-y-area-".concat(e):"scroll-y-area",i.onmousedown=this._handlers.onmousedownArea,i.onmouseenter=this._handlers.onmouseenter,i.onmouseleave=this._handlers.onmouseleave,i.style={width:"6px",height:"100%",right:0,top:0,position:"absolute"},i),[(0,o.el)(".scroll-runner",{_ref:e?"scroll-y-runner-".concat(e):"scroll-y-runner",onmousedown:this._handlers.onmousedownRunner,style:{height:this._runnerHeight+"px",top:this._runnerYTop}})]),(0,o.el)(".x-scroll",(n={},n[this._wheelName]=this._handlers[this._wheelName],n._ref=e?"scroll-x-area-".concat(e):"scroll-x-area",n.onmousedown=this._handlers.onmousedownArea,n.onmouseenter=this._handlers.onmouseenter,n.onmouseleave=this._handlers.onmouseleave,n.style={width:"100%",height:"6px",left:0,bottom:0,position:"absolute"},n),[(0,o.el)(".scroll-runner",{_ref:e?"scroll-x-runner-".concat(e):"scroll-x-runner",onmousedown:this._handlers.onmousedownRunner,style:{width:this._runnerWidth+"px",left:this._runnerXLeft}})])]:null;return(0,o.el)(".scroll-view-wrapper",[(0,o.el)(".scroll-view",{onscroll:this._handlers.onscroll,_ref:e?"scroll-view-".concat(e):"scroll-view",_hooks:{didInsert:function(){r.update()},didRecycle:function(){r.update()}},style:{width:"calc(100% + ".concat(this._scrollWidth,"px)"),height:"calc(100% + ".concat(this._scrollHeight,"px)"),"margin-bottom":"-".concat(this._scrollHeight,"px")}},t)].concat(s))},t.prototype.update=function(){var t=this._getRefs();if(t){var e=t.area,i=t.areaX,o=t.areaY,r=t.runnerY,s=t.runnerX;this._visibleYArea=e.clientHeight/e.scrollHeight,this._visibleXArea=e.clientWidth/e.scrollWidth,this._scrollYTop=e.scrollTop,this._scrollXLeft=e.scrollLeft,this._runnerYTop=this._scrollYTop*this._visibleYArea,this._runnerXLeft=this._scrollXLeft*this._visibleXArea,this._runnerHeight=this._visibleYArea<1?e.clientHeight*this._visibleYArea:0,this._runnerWidth=this._visibleXArea<1?e.clientWidth*this._visibleXArea:0;var a=r.style.top,l=s.style.left;r.style.opacity=1,r.style.top=this._runnerYTop+"px",r.style.height=this._runnerHeight+"px",s.style.opacity=1,s.style.left=this._runnerXLeft+"px",s.style.width=this._runnerWidth+"px",a!==r.style.top&&(o.style.opacity=.9,o.style.width="10px"),l!==s.style.left&&(i.style.opacity=.9,i.style.height="10px"),this.config.autoHide?!this._autoHideFunc&&(this._autoHideFunc=(0,n.debounce)((function(){r.style.opacity=0,o.style.width="6px",s.style.opacity=0,i.style.height="6px"}),this.config.timeout)):this._autoHideFunc=(0,n.debounce)((function(){o.style.width="6px",i.style.height="6px"}),this.config.timeout),this._autoHideFunc()}},t.prototype._getRefs=function(){var t=this._getRootView(),e=!(!t.refs["scroll-view"]||!t.refs["scroll-x-runner"]&&!t.refs["scroll-y-runner"]),i=!(!this._uid||!t.refs["scroll-view-".concat(this._uid)]||!t.refs["scroll-x-runner-".concat(this._uid)]&&!t.refs["scroll-y-runner-".concat(this._uid)]);if(t.refs){if(e)return{area:t.refs["scroll-view"].el,areaY:t.refs["scroll-y-area"].el,areaX:t.refs["scroll-x-area"].el,runnerY:t.refs["scroll-y-runner"].el,runnerX:t.refs["scroll-x-runner"].el};if(i)return{area:t.refs["scroll-view-".concat(this._uid)].el,areaY:t.refs["scroll-y-area-".concat(this._uid)].el,areaX:t.refs["scroll-x-area-".concat(this._uid)].el,runnerY:t.refs["scroll-y-runner-".concat(this._uid)].el,runnerX:t.refs["scroll-x-runner-".concat(this._uid)].el}}},t}();e.ScrollView=s},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(137),e),o(i(138),e),o(i(35),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.focusManager=void 0;var n=i(3),o=function(){function t(){var t=this;this._initHandler=function(e){return t._activeWidgetId=(0,n.locate)(e,"data-dhx-widget-id")},this._removeFocusClass=function(t){var e=document.body.classList;e.contains("utilityfocus")&&e.remove("utilityfocus")},this._addFocusClass=function(t){var e=document.body.classList;"Tab"===t.code?e.contains("utilityfocus")||e.add("utilityfocus"):e.contains("utilityfocus")&&e.remove("utilityfocus")},document.addEventListener("focusin",this._initHandler),document.addEventListener("pointerdown",this._initHandler),document.addEventListener("mousedown",this._removeFocusClass),document.addEventListener("keydown",this._addFocusClass)}return t.prototype.getFocusId=function(){return this._activeWidgetId},t.prototype.setFocusId=function(t){this._activeWidgetId=t},t}();e.focusManager=new o},function(t,e,i){"use strict";var n,o,r,s;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"}(n||(e.TreeFilterType=n={})),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"}(o||(e.DataEvents=o={})),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"}(r||(e.DragEvents=r={})),function(t){t.json="json",t.csv="csv",t.xml="xml"}(s||(e.DataDriver=s={}))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),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 n=i(1),o=i(27),r=i(61);e.isEqualObj=function(t,e){for(var i in t)if(t[i]!==e[i]||Array.isArray(t[i]))return!1;return!0},e.naturalCompare=function(t,e){if(isNaN(t)||isNaN(e)){var i=[],n=[];for(t.replace(/(\d+)|(\D+)/g,(function(t,e,n){i.push([e||1/0,n||""])})),e.replace(/(\d+)|(\D+)/g,(function(t,e,i){n.push([e||1/0,i||""])}));i.length&&n.length;){var o=i.shift(),r=n.shift(),s=o[0]-r[0]||o[1].localeCompare(r[1]);if(s)return s}return i.length-n.length}return t-e},e.findByConf=function(t,e){if("function"==typeof e){if(e.call(this,t))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=function(t){console.warn(t)},e.dhxError=function(t){throw new Error(t)},e.toProxy=function(t){var e=typeof t;return"string"===e?new o.DataProxy(t):"object"===e?t:void 0},e.toDataDriver=function(t){if("string"==typeof t){var e=window.dhx,i=e&&e.dataDrivers||r.dataDrivers;if(i[t])return new i[t];console.warn("Incorrect data driver type:",t),console.warn("Available types:",JSON.stringify(Object.keys(i)))}else if("object"==typeof t)return t},e.copyWithoutInner=function(t,e){var i={};for(var n in t)n.startsWith("$")||e&&e[n]||(i[n]=t[n]);return i},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,n.isEmptyObj)(t))&&Object.keys(t).every((function(e){var i;return null===(i=t[e].config)||void 0===i?void 0:i.permanent}))}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCurrFixedCols=e.calcScrollBarWidth=e.BORDERS=void 0;var n=i(3),o=i(8);e.BORDERS=2,e.calcScrollBarWidth=function(t,i,o){var r,s;void 0===i&&(i=!1);var a=t.$totalHeight+t.$headerHeight+t.$footerHeight+e.BORDERS>(null!==(r=null==o?void 0:o.height)&&void 0!==r?r:t.$height),l=!a||i?0:(0,n.getScrollbarWidth)(),c=t.$totalWidth+e.BORDERS+l>(null!==(s=null==o?void 0:o.width)&&void 0!==s?s:t.$width);return{x:!c||i?0:(0,n.getScrollbarWidth)(),y:l,xState:c,yState:a}},e.getCurrFixedCols=function(t,e){return t[e]?(e===o.Split.left?t.columns.slice(0,t.leftSplit):t.columns.slice(-t.rightSplit)).filter((function(t){return!t.hidden})):[]}},function(t,e,i){"use strict";var n;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"}(n||(e.ChartEvents=n={}))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeCell=e.getReducedRowspan=e.getReducedColspan=e.getHeight=e.getWidth=void 0,e.getWidth=function(t,e,i){return t.slice(i,i+(e||1)).filter((function(t){return!t.hidden})).reduce((function(t,e){return t+e.$width}),0)},e.getHeight=function(t,e){var i=e.$rowsVisibility;return t.slice(i[0],i[1]+1).reduce((function(t,e){return t+e.$height}),0)},e.getReducedColspan=function(t,e,i){var n=t.findIndex((function(t){return t.id===e}));return t.slice(n,n+(i||1)).filter((function(t){return!t.hidden})).length},e.getReducedRowspan=function(t,e,i,n){var o,r=n.rowspan||1;if(t.length===e.length)return r;var s=null!==(o=null==t?void 0:t.findIndex((function(t){return t.id===n.row})))&&void 0!==o?o:-1,a=0;if(-1!==s)for(var l=1;l<r;l++){var c=e[i-a+l],u=t[s+l];(null==c?void 0:c.id)!==(null==u?void 0:u.id)&&a++}return r-a},e.normalizeCell=function(t,e){if(t){var i=t.row,n=t.column,o=e.getSpan(i.id,n.id);return o?{row:i.id===o.row?i:e.data.getItem(o.row),column:n.id===o.column?n:e.config.columns.find((function(t){return t.id===o.column}))}:t}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DataProxy=void 0;var n=i(41),o=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 i in void 0===e&&(e={}),this._url=this.url=t||this._url,this.url+=this.url.includes("?")?"&":"?",e)this.config[i]=e[i],this.url+="".concat(i,"=").concat(encodeURIComponent(e[i]),"&");this.url=this.url.slice(0,-1)},t.prototype.load=function(){return n.ajax.get(this.url,void 0,this.config)},t.prototype.save=function(t,e){switch(e){case"delete":return n.ajax.delete(this.url,t,this.config);case"update":return n.ajax.put(this.url,t,this.config);default:return n.ajax.post(this.url,t,this.config)}},t}();e.DataProxy=o},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionEvents=void 0,function(t){t.beforeUnSelect="beforeunselect",t.afterUnSelect="afterunselect",t.beforeSelect="beforeselect",t.afterSelect="afterselect"}(n||(e.SelectionEvents=n={}))},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.getNavbarButtonCSS=e.navbarComponentMixin=e.getIcon=e.getCount=void 0;var o=i(0),r=i(1);e.getCount=function(t,e,i){var n={danger:" dhx_navbar-count--color_danger",secondary:" dhx_navbar-count--color_secondary",primary:" dhx_navbar-count--color_primary",success:" dhx_navbar-count--color_success"}[t.countColor]||" dhx_navbar-count--color_danger";return(0,o.el)(".dhx_navbar-count",{class:e+n+(!i&&parseInt(t.count,10)>99?" dhx_navbar-count--overlimit":"")},i&&parseInt(t.count,10)>99?"99+":t.count)},e.getIcon=function(t,e){return void 0===t&&(t=""),t.startsWith("dxi")&&(t="dxi "+t),(0,o.el)("span",{class:"dhx_".concat(e,"__icon ").concat(t),"aria-hidden":"true"})};e.navbarComponentMixin=function(t,e,i,r){var s,a,l=function(t,e,i){var n="",o="";return o=(n=i?"dhx_menu-item":"dhx_"+t+"__item")+(e.css?" "+e.css:""),"spacer"!==e.type&&"separator"!==e.type||(o+=" ".concat(n,"--").concat(e.type)),"button"!==e.type||"sidebar"!==t||e.icon||(o+=" dhx_navbar-item--colapse_hidden"),o}(t,e,i),c="ribbon"===t&&("navItem"===e.type||"imageButton"===e.type);return(0,o.el)("li",n({_key:e.id,class:l+(e.icon&&!e.value&&c?" dhx_ribbon__item--icon":"")+(e.src&&!e.value&&c?" dhx_ribbon__item--icon":"")+(e.size&&c?" dhx_ribbon__item--"+e.size:""),".innerHTML":"customHTML"===e.type?e.html:void 0,"data-dhx-id":"customHTML"===e.type?e.id:void 0},(s=e.type,a={role:"none"},"separator"===s&&(a.role="separator",a["aria-orientation"]="vertical"),a)),"customHTML"!==e.type?[r]:void 0)},e.getNavbarButtonCSS=function(t,e){var i=t.color,n=t.size,o=t.view,s=t.full,a=t.icon,l=t.circle,c=t.loading,u=t.value,d=t.active,h=t.count;return({danger:" dhx_button--color_danger",secondary:" dhx_button--color_secondary",primary:" dhx_button--color_primary",success:" dhx_button--color_success"}[i]||" dhx_button--color_primary")+({small:" dhx_button--size_small",medium:" dhx_button--size_medium"}[n]||" dhx_button--size_medium")+({flat:" dhx_button--view_flat",link:" dhx_button--view_link"}[o]||" dhx_button--view_flat")+(s?" dhx_button--width_full":"")+(l?" dhx_button--circle":"")+(c?" dhx_button--loading":"")+(d?" dhx_button--active":"")+(a&&!u?" dhx_button--icon":"")+((0,r.isDefined)(h)?" dhx_button--count":"")}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.radarScale=e.pieLikeHandlers=e.shiftCoordinates=e.getCoordinates=void 0;var o=i(0),r=i(5);function s(t,e,i,n){return n&&(t+=2*e*Math.asin(.5*n/e)/(2*Math.PI*e)),[Math.cos(2*Math.PI*t)*e,Math.sin(2*Math.PI*t)*i]}function a(t,e,i){t.setAttribute("transform","translate(".concat(e,", ").concat(i,") scale(1.05)")),t.classList.add("dhx_pie-transform-delay")}function l(t){t.setAttribute("transform","translate(0, 0)"),t.classList.remove("dhx_pie-transform-delay")}function c(t,e){var i=1e-6;return t-i<e&&t+i>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=s,e.shiftCoordinates=function(t,e,i){return[t[0]+e,t[1]+i]},e.pieLikeHandlers={onmouseover:function(t,e,i,n){var o=n.parent.attrs.id;a(n.el,t,e),n.parent.body.forEach((function(i){i.attrs.id!=="".concat(o,"-text")&&i.attrs.id!=="".concat(o,"-connector")||a(i.el,t,e)}))},onmouseout:function(t,e){var i=e.parent.attrs.id;l(e.el),e.parent.body.forEach((function(t){t.attrs.id!=="".concat(i,"-text")&&t.attrs.id!=="".concat(i,"-connector")||l(t.el)}))}},e.radarScale=function(t,e,i){var a;a=i>e?e/2:i/2;var l=1/t.scales.length,d=l>.5?1:0,h=[],f=function(t,e){return(0,o.sv)("circle",{cx:0,cy:0,r:t,fill:e,stroke:"none",class:"background-circle"})}(a,"#fafafa");h.push(f);for(var p,v=-.25,g=[],_=t.axis,m="radar-grid ".concat(t.zebra?"zebra":""),y=1;y<_.length;y+=2){var b=a*_[y-1],w=a*_[y],x="".concat(u(b,!0)," ").concat(u(w,!1)),E=(0,o.sv)("path",{d:x,fill:"none",stroke:"black",class:m});g.push(E)}if(h.push(g),t.scales.forEach((function(t){var e=s(v,a,a),i=e[0],n=e[1],u=v+l,f=s(u,a,a),p=f[0],g=f[1],_="M ".concat(i," ").concat(n," A ").concat(a," ").concat(a," 0 ").concat(d," 1 ").concat(p," ").concat(g," L 0 0"),m=(0,o.sv)("path",{d:_,stroke:"black",fill:"none",class:"radar-scale"});h.push(m);var y=[8,8],b=y[0],w=y[1],x=c(v,0)||c(v,.5)?0:v<0||v>.5?-b:b,E=c(v,-.25)||c(v,.25)?0:v<-.25||v>.25?-w:w;if(c(v,-.25)||c(v,.25)){var C=c(v,-.25)?r.verticalTopText:r.verticalBottomText,S=(0,o.sv)("text",{x:i+E,y:n+x,class:"scale-text"},[C(t)]);h.push(S)}else{var k=v>=-.25&&v<=.25?"start-text scale-text":"end-text scale-text";S=(0,o.sv)("text",{x:i+E,y:n+x,class:k},[(0,r.verticalCenteredText)(t)]);h.push(S)}v=u})),v=-.25,t.realAxis){var C=t.realAxis.map((function(t,e){var i=s(-.25,a*_[e],a*_[e]),n=i[0],l=i[1];return(0,o.sv)("text",{x:n,y:l,dx:-10,class:"radar-axis-text"},[(0,r.verticalCenteredText)(t.toString())])}));h.push(C)}return(0,o.sv)("g",n({transform:"translate(".concat(e/2,", ").concat(i/2,")")},(p=t.attribute,{"aria-label":"x-axis".concat(p?", "+p:"")})),h)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1),o=i(25),r=i(5),s=i(82),a=i(15),l=function(){function t(t,e,i){var r=this;this._data=t,this._handlers={onclick:function(t,e){return r._events.fire(o.ChartEvents.serieClick,[t,e])},onmousemove:function(t,e,i){return r._events.fire(o.ChartEvents.seriaMouseMove,[t,e,i])},onmouseleave:function(t,e){return r._events.fire(o.ChartEvents.seriaMouseLeave,[t,e])}},this.id=e.id=e.id||(0,n.uid)(),this._events=i,this._points=[],this._setDefaults(e)}return t.prototype.toggle=function(){this.config.active=!this.config.active},t.prototype.getClosest=function(t,e){for(var i=[1/0,null,null,null],n=0,o=this._points;n<o.length;n++){var r=o[n],s=this._getClosestDist(t,e,r[0],r[1]);i[0]>s&&(i[0]=s,i[1]=r[0],i[2]=r[1],i[3]=r[2])}return i},t.prototype.getClosestVertical=function(t){for(var e=[1/0,null,null,null,null],i=0,n=this._points;i<n.length;i++){var o=n[i],r=Math.abs(o[0]-t);e[0]>r&&(e[0]=r,e[1]=o[0],e[2]=o[1],e[3]=o[2],e[4]=o[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,i=void 0;if("calendarHeatMap"===this.config.type){if(i=this._points.find((function(e){return e[2]===t.toString()}))){var n=new Date;n.setTime(i[0]),i=[(0,a.getFormattedDate)(this.config.dateFormat,n),i[1]]}}else e=this._defaultLocator(this._data.getItem(t));return this.config.tooltipTemplate?this.config.tooltipTemplate(e||i):e?e[0]:"".concat(i[1],", <br>").concat(i[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,i,n){return(0,r.euclideanDistance)(t,e,i,n)},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,s.getShadeHelper)(t,e)},t}();e.default=l},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeSpan=e.getShifts=e.getSpans=e.getCells=e.getTreeCell=e.getHandlers=void 0;var o=i(1),r=i(0),s=i(26),a=i(16),l=i(8),c=i(216),u=i(3),d=i(18),h=i(24);function f(t,e,i,n,o){e=(0,u.locateNodeByClassName)(o.target,"dhx_grid-fixed-cols-wrap")?0:e;var r=(0,u.locateNodeByClassName)(o.target,"dhx_grid-cell"),s=(0,u.locateNodeByClassName)(o.target,"dhx_span-cell");if((r||s)&&n){var a=r?r.parentNode:s,l=(r||s).getAttribute("data-dhx-col-id"),c=i.filteredColumns.find((function(t){return t.id===l})),d=a.getAttribute("data-dhx-id"),h=(i.$data||i.data).find((function(t){return t.id.toString()===d}));n.toLocaleLowerCase().includes("touch")?i._events.fire(n,[h,c,o]):i.events.fire(n,[h,c,o])}}function p(t,e,i,o){var s=o.$editable&&o.$editable.row===e.id&&o.$editable.col===i.id,a=!o.fixedColumns.left.length||"leftFixedCols"===o.$renderFrom,l=i.align?"dhx_align-".concat(i.align):"dhx_align-left",c="";a&&(c="dhx_tree-cell ".concat(i.$cellCss[e.id]||""," ").concat(l),e.$items&&(c+=" dhx_grid-expand-cell"),s&&(c+=" dhx_tree-editing-cell"),o.dragMode&&!s&&(c+=(e.$drophere?" dhx_grid-cell--drophere":"")+(e.$dragtarget?" dhx_grid-cell--dragtarget":"")));var u=(0,d.getTreeCellWidthOffset)(e,!0);return(0,r.el)(".dhx_grid-cell",n({class:c,style:{width:i.$width,height:e.$height,padding:e.$items?0:"0 0 0 ".concat(u,"px")},"data-dhx-col-id":i.id},{role:"gridcell","aria-colindex":1}),a?[e.$items?(0,r.el)(".dhx_grid-expand-cell-icon",n(n({class:e.$opened?"dxi dxi-chevron-up":"dxi dxi-chevron-down","data-dhx-id":e.id},function(t){return{role:"button","aria-label":t.$opened?"Collapse group":"Expand group"}}(e)),{style:{padding:e.$level?"0 0 0 ".concat(4+u,"px"):"0 0 0 4px"}})):null,(0,r.el)(".dhx_tree-cell",{class:l+"".concat(o.autoHeight?" dhx_tree-cell_auto-height":"")},[t])]:null)}function v(t,e,i,n){return(0,c.getEditor)(t,e,i,n)}function g(t){var e=t.$scrollBarWidth,i=t.$totalWidth-t.$width+h.BORDERS+e.y,n=t.$totalHeight-t.$height+t.$headerHeight+t.$footerHeight+h.BORDERS+e.x;return{x:i>0?i-t.scroll.left:0,y:n>0?n-t.scroll.top:0}}e.getHandlers=function(t,e,i){return{onclick:[f,t,e,i,l.GridEvents.cellClick],onmouseover:[f,t,e,i,l.GridEvents.cellMouseOver],onmousedown:[f,t,e,i,l.GridEvents.cellMouseDown],ondblclick:[f,t,e,i,l.GridEvents.cellDblClick],oncontextmenu:[f,t,e,i,l.GridEvents.cellRightClick],ontouchstart:[f,t,e,i,l.GridEvents.cellMouseDown],ontouchmove:[f,t,e,i,l.GridSystemEvents.cellTouchMove],ontouchend:[f,t,e,i,l.GridSystemEvents.cellTouchEnd]}},e.getTreeCell=p,e.getCells=function(t){if(!t.data||!t.filteredColumns)return[];var e,i=t.$positions,o=t.data?t.data.slice(i.yStart,i.yEnd):[],s=t.filteredColumns.slice(i.xStart,i.xEnd),l=t.selection.getCell(),c=!0,u=document.querySelector(".dhx_drag-ghost");if(u){var h=Array.from(u.querySelectorAll(".dhx_grid-row")).map((function(t){return Number(t.getAttribute("aria-rowindex"))-1}));h.length&&(e=h.map((function(e){return t.data[e]})).filter((function(t){return t&&!o.find((function(e){return e.id===t.id}))})),o.push.apply(o,e))}return o.map((function(u,h){var f=null==e?void 0:e.some((function(t){return t.id===u.id})),g=o.length-1===h,_="";return t.rowCss&&(_=t.rowCss(u)),u.$css&&(_+=u.$css),(0,r.el)(".dhx_grid-row",n({style:{height:g?u.$height+1:u.$height,display:f?"none":null},"data-dhx-id":u.id,class:_,_key:u.id,_flags:r.KEYED_LIST},f?{}:{role:"row","aria-rowindex":i.yStart+h+1}),u.$customRender?[u.$customRender(u,t)]:s.map((function(e,o){var s,h;if(!e.hidden){var f=u[e.id],g=(0,d.getEditorOptions)(e,u);(e.editable||t.editable&&!1!==e.editable)&&("select"===e.editorType||"combobox"===e.editorType||"multiselect"===e.editorType)&&g&&(f=(f="string"==typeof f&&"multiselect"===e.editorType?f.split(",").map((function(t){return t.trim()})):[null==f?void 0:f.toString()]).map((function(t){var e,i;return null!==(i=null===(e=g.find((function(e){return e.id&&e.id.toString()===t})))||void 0===e?void 0:e.value)&&void 0!==i?i:t})).join(", "));var _=(0,d.toFormat)(f,e.type,e.format),m=e.template?e.template(_,u,e):"boolean"!=typeof(h=_)&&"boolean"!==e.type||"string"==typeof h?h||0===h?h:"":"".concat(Boolean(h));"string"==typeof m&&(m=(0,a.isHtmlEnable)(t,e)?(0,r.el)("div.dhx_grid-cell__content",n({".innerHTML":m},{role:"button","aria-label":"Edit content"})):m);var y="".concat(e.$cellCss&&e.$cellCss[u.id]||""," dhx_").concat(e.type,"-cell").replace(/\s+/g," "),b=e.$width,w=t.$editable&&t.$editable.row===u.id&&t.$editable.col===e.id&&!t.$editable.isSpan,x=t.leftSplit,E=t.filteredColumns;return(w||"boolean"===e.type&&(t.editable&&(null===(s=e.editable)||void 0===s||s)||!t.editable&&e.editable))&&(m=v(u,e,t).toHTML(),y+=" dhx_grid-cell__editable",x===E.indexOf(e)+1&&(b-=1)),"tree"===t.type&&t.firstColId===e.id?p(m,u,e,t):(t.dragMode&&!w&&(y+=(u.$drophere?" dhx_grid-cell--drophere":"")+(u.$dragtarget?" dhx_grid-cell--dragtarget":"")),e.align&&(y+=" dhx_align-".concat(e.align)),(0,a.isHtmlEnable)(t,e)&&(y+=" dhx_grid-cell__content_html-enable"),t.autoHeight&&(y+=" dhx_grid-cell__content_auto-height"),(0,r.el)(".dhx_grid-cell",n({class:y,style:{width:b,height:u.$height+"px"},_key:e.id,"data-dhx-col-id":e.id},function(e,i,o,r){return n({role:"gridcell","aria-colindex":i,"aria-readonly":r?"false":"true"},function(e,i){var n={tabindex:-1};return l?l.row.id===i.id&&l.column.id===e.id&&(n.tabindex=0):c&&(n.tabindex=0,n.onkeydown=function(e){if(t.selection&&!l&&"Tab"===e.key){var i=e.target.parentNode.getAttribute("data-dhx-id"),n=e.target.getAttribute("data-dhx-col-id");n&&i&&(t.selection.setCell(i,n),l=t.selection.getCell()),c=!1}}),n}(e,u))}(e,i.xStart+o+1,0,t.editable)),[m]))}})))}))},e.getSpans=function(t,e){var i,n,c=[],u=t.columns,f=t.filteredColumns,p=t.data,_=t.currentSpans,m=t.bottomSplit,y=void 0===m?0:m;if(!f.length||!_)return null;for(var b=t.fixedColumns.right.length,w=_.filter((function(e){var i;return null===(i=e.$renderFrom)||void 0===i?void 0:i.includes(t.$renderFrom)})),x=w.sort((function(t,e){return"string"==typeof t.row&&"string"==typeof e.row?t.row.localeCompare(e.row):t.row-e.row})),E=function(_){var m=x[_].row,w=x[_].column,E=x[_].$rowsVisibility[1]-x[_].$rowsVisibility[0]+1,C=x[_].$colsVisibility[1]-x[_].$colsVisibility[0]+1,S=x[_].text,k=x[_].css,O=e===l.Split.bottom&&t.$renderFrom.endsWith("FixedCols"),P=O?t.$data:p,I=null==f?void 0:f.findIndex((function(t){return"".concat(t.id)==="".concat(w)})),D=null==P?void 0:P.findIndex((function(t){return"".concat(t.id)==="".concat(m)}));if(I<0||D<0)return"continue";if(O){var M=t.$data[D+E-1];if(!p.find((function(t){return t.id===(null==M?void 0:M.id)})))return"continue"}var T=f[I],V=P[D],H=T.$cellCss[m],j=(0,o.isDefined)(x[_].text)?"string":T.type;if(T.hidden)return"continue";var F=void 0;F=(0,o.isDefined)(S)?S.toString():void 0===V[w]?"":(0,d.toFormat)(V[w],T.type,T.format);var R=T.template||function(t,e,i){return t||0===t?t:""};F=R(F,V,T);var A=(0,a.isHtmlEnable)(t,T);F="string"==typeof F?(0,r.el)("div.dhx_span-cell-content",{class:t.autoHeight?" dhx_grid-cell__content_auto-height":"",".innerHTML":A?F:null},A?null:F):F;var L=void 0;if("bottomFixedRows"===t.$renderFrom||O){var $=P.length-y;L=D<$?-(0,a.getTotalHeight)(P.slice(D,$)):(0,a.getTotalHeight)(P.slice($,D))}else L=(0,a.getTotalHeight)(P.slice(0,D))-(e?0:1);var N=0;if("rightFixedCols"===t.$renderFrom){var z=f.length-t.fixedColumns.right.length;N=I<z?-(0,a.getTotalWidth)(f.slice(I,z)):(0,a.getTotalWidth)(f.slice(z,I))}else for(var W=I-1;W>=0;W--)N+=f[W].$width;var B=V.$items&&0===I,G=I===f.length-1,q=I+C===f.length,Y=b&&I===f.length-b,X=e===l.Split.bottom&&t.fixedRows.bottom.find((function(t){return t.id===m})),U=!!y&&D+E>P.length-y,K=!!b&&I+C===f.length-b,J=T.header[0].text?" dhx_span-cell":" dhx_span-cell dhx_span-cell--title";J+=B?" dhx_span-expand-cell":"",J+=H?" ".concat(H):"",J+=k?" ".concat(k):"",J+=0===D?" dhx_span-first-row":"",J+=D+E===P.length?" dhx_grid__span_bottom--last-row":"",J+=0===I||Y?" dhx_span-first-col":"",J+=G||q?" dhx_span-last-col":"",J+=1===C?" dhx_span-".concat(T.type||"string","-cell"):" dhx_span-string-cell",J+=T.align?" dhx_align-".concat(T.align):" dhx_".concat(j,"-cell"),J+=X?" dhx_grid__span_bottom--all-fixed":"",J+=U?" dhx_grid__span_bottom--part-fixed":"",J+=K?" dhx_grid__span_right--before-fixed":"";var Z=void 0;if(C>1){var Q=u.findIndex((function(t){return t.id===w}));Z=(0,s.getWidth)(u,x[_].colspan,Q)}else Z=T.$width;var tt=void 0;if(E>1){if(tt=(0,s.getHeight)(P,x[_]),e===l.Split.top&&t.$renderFrom.endsWith("FixedCols")){var et=D+E-P.length;if(et>0){var it=t.fixedRows.top.length;tt+=(0,a.getTotalHeight)(t.$data.slice(it,it+et))}}}else tt=V.$height;var nt=null;if((null===(i=t.$editable)||void 0===i?void 0:i.isSpan)&&t.$editable.row===m&&t.$editable.col===w||"boolean"===T.type&&(t.editable&&(null===(n=T.editable)||void 0===n||n)||!t.editable&&T.editable)){var ot=t.topSplit,rt=void 0===ot?0:ot,st=t.fixedColumns.left.length,at=st&&I+C<=st||b&&I>=f.length-b,lt=D<rt||D+E>P.length-y,ct=rt&&D+E<=rt||y&&D>=P.length-y,ut=I<st||I+C>f.length-b;if("render"===t.$renderFrom||at&&!lt||ct&&!ut){var dt=t.$height,ht=t.$scrollBarWidth,ft=t.scroll,pt=t.fixedRows,vt=t.fixedColumns,gt=x[_].text,_t=0;if(F=v(V,T,t,x[_]).toHTML(gt),J+=" dhx_span__editable",!ct){var mt=(0,a.getTotalHeight)(pt.top),yt=(0,a.getTotalHeight)(pt.bottom),bt=ht.yState?dt-t.$headerHeight-t.$footerHeight-ht.x-h.BORDERS:t.$totalHeight,wt=L+tt-ft.top,xt=L-mt<ft.top,Et=wt>bt-yt;xt&&Et&&ht.xState&&(_t=1),L=xt?ft.top+mt-(mt&&!at?1:0):L,tt=Et?bt-L-yt+ft.top-_t:xt?wt-mt:tt}if("render"===t.$renderFrom){if(nt=12,vt.left.find((function(t){return t.id===w}))&&(N=ft.left+(0,a.getTotalWidth)(vt.left.slice(0,I)),!at)){var Ct=(0,a.getTotalWidth)(vt.left.slice(I,st));Z=Z-ft.left>Ct?Z-ft.left:Ct}if(pt.top.find((function(t){return t.id===m}))&&(L=ft.top+(0,a.getTotalHeight)(pt.top.slice(0,D)),!ct)){var St=(0,a.getTotalHeight)(t.fixedRows.top.slice(D,t.topSplit));tt=tt>0?St+tt-_t:St}if(vt.right.find((function(t){return t===f[f.indexOf(T)+C-1]}))){var kt=f.length,Ot=g(t),Pt=kt-f.indexOf(T)-C,It=(Ct=Pt?(0,a.getTotalWidth)(vt.right.slice(0,-Pt)):(0,a.getTotalWidth)(vt.right),(0,a.getTotalWidth)(f.slice(I,kt-b)));N=Ot.x>It?N-Ot.x+It:N,at||(Z=Ot.x<It?Z-Ot.x-1:Ct-1)}if(pt.bottom.find((function(t){return t===P[P.indexOf(V)+E-1]}))){kt=P.length,Ot=g(t);var Dt=kt-P.indexOf(V)-E,Mt=(St=Dt?(0,a.getTotalHeight)(pt.bottom.slice(0,-Dt)):(0,a.getTotalHeight)(t.fixedRows.bottom),(0,a.getTotalHeight)(P.slice(D,kt-y)));L=Ot.y>Mt?L-Ot.y+Mt:L,ct||(tt=Ot.y<Mt?St+tt-_t-(Dt?-1:_t?0:1):St-(Dt?-1:1))}}st===I+1&&(Z-=1),I===f.length-b&&(N+=1,Z-=1)}}c.push((0,r.el)("div",{class:J,style:{width:Z,height:tt,top:L,left:N,zIndex:nt},"data-dhx-col-id":w,"data-dhx-id":m,"aria-hidden":"true"},[B?(0,r.el)(".dhx_span-expand-cell-icon",{class:V.$opened?"dxi dxi-chevron-up":"dxi dxi-chevron-down","data-dhx-id":V.id,role:"button","aria-label":V.$opened?"Collapse group":"Expand group",style:{padding:"0 0 0 ".concat(4+(0,d.getTreeCellWidthOffset)(V,!0),"px")}}):null,F]))},C=0;C<x.length;C++)E(C);return c},e.getShifts=function(t){var e=t.filteredColumns.slice(0,t.$positions.xStart),i=t.data.slice(0,t.$positions.yStart);return{x:(0,a.getTotalWidth)(e),y:(0,a.getTotalHeight)(i)}},e.normalizeSpan=function(t,e,i){var o=e.topSplit,r=void 0===o?0:o,a=e.bottomSplit,c=void 0===a?0:a,u=e.columns,d=t.column,f=t.row,p=t.colspan,v=t.rowspan,g=i.getRawData(0,-1,null,2),_=u.filter((function(t){return!t.hidden})),m=_.findIndex((function(t){return t.id==d})),y=g.findIndex((function(t){return t.id==f})),b=m+(p?(0,s.getReducedColspan)(u,d,p)-1:0),w=y+(v?(0,s.getReducedRowspan)(i.getInitialData(),g,y,t)-1:0),x=-1===m?[]:[m,b],E=-1===y?[]:[y,w],C=[];if(-1!==m&&-1!==y){var S=(0,h.getCurrFixedCols)(e,l.Split.left).length,k=(0,h.getCurrFixedCols)(e,l.Split.right).length,O=m<S,P=y<r,I=b>=_.length-k,D=w>=g.length-c;b>=S&&w>=r&&m<_.length-k&&y<g.length-c&&C.push("render"),O&&C.push("leftFixedCols"),I&&C.push("rightFixedCols"),!P||O||I?P&&!C.includes("render")&&C.push("render"):C.push("topFixedRows"),!D||O||I?D&&!C.includes("render")&&C.push("render"):C.push("bottomFixedRows")}return n(n({},t),{$renderFrom:C,$rowsVisibility:E,$colsVisibility:x})}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VaultMode=e.ProgressBarEvents=e.UploaderEvents=e.FileStatus=void 0;var n,o,r,s;i(7);!function(t){t.queue="queue",t.uploaded="uploaded",t.failed="failed",t.inprogress="inprogress"}(n||(e.FileStatus=n={})),function(t){t.uploadBegin="uploadbegin",t.beforeUploadFile="beforeuploadfile",t.uploadFile="uploadfile",t.uploadFail="uploadfail",t.uploadComplete="uploadcomplete",t.uploadProgress="uploadprogress"}(o||(e.UploaderEvents=o={})),function(t){t.cancel="cancel"}(r||(e.ProgressBarEvents=r={})),function(t){t.grid="grid",t.list="list"}(s||(e.VaultMode=s={}))},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(67),e),o(i(155),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NavigationBarEvents=e.DataEvents=void 0;var n,o=i(7);Object.defineProperty(e,"DataEvents",{enumerable:!0,get:function(){return o.DataEvents}}),function(t){t.inputCreated="inputCreated",t.click="click",t.openMenu="openMenu",t.beforeHide="beforeHide",t.afterHide="afterHide",t.inputFocus="inputFocus",t.inputBlur="inputBlur",t.inputChange="inputChange",t.input="input",t.keydown="keydown"}(n||(e.NavigationBarEvents=n={}))},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(149),e),o(i(72),e)},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(73),e),o(i(162),e),o(i(74),e),o(i(49),e)},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(86),e),o(i(189),e),o(i(88),e)},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Input=e.Validation=void 0;var s,a=i(0),l=i(1),c=i(6),u=i(10),d=i(2),h=i(4);!function(t){t.empty="",t.validEmail="email",t.validInteger="integer",t.validNumeric="numeric",t.validAlphaNumeric="alphanumeric",t.validIPv4="IPv4"}(s||(e.Validation=s={}));var f=function(t){function e(e,i){void 0===i&&(i={});var n=t.call(this,null,i)||this;return n.events=new d.EventSystem,n._propsItem=["inputType","required","validation","icon","placeholder","autocomplete","readOnly","maxlength","minlength","min","max","step","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage"],n._props=r(r([],c.baseProps,!0),n._propsItem,!0),n._initView(i),n._initHandlers(),n}return o(e,t),e.prototype.destructor=function(){var e;null===(e=this._input)||void 0===e||e.removeEventListener("compositionend",this._handlers.oninput),this.events&&this.events.clear(),this.events=this._uid=this._propsItem=this._propsItem=this.config=this._handlers=null,t.prototype._destructor.call(this),this.unmount()},e.prototype.setProperties=function(t){if(t&&!(0,l.isEmptyObj)(t)&&this.events.fire(h.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.events.fire(h.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype.show=function(){var t=this.config,e=t.value;t.hidden&&this.events.fire(h.ItemEvent.beforeShow,[e])&&(this.config.hidden=!1,this.events.fire(h.ItemEvent.afterShow,[e]))},e.prototype.hide=function(t){var e=this.config,i=e.value;e.hidden&&!t||!this.events.fire(h.ItemEvent.beforeHide,[i,t])||(this.config.hidden=!0,this.events.fire(h.ItemEvent.afterHide,[i,t]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype.disable=function(){this.config.disabled=!0,this.paint()},e.prototype.enable=function(){var t;this.config.disabled=!1,(null===(t=this.parent)||void 0===t?void 0:t.isDisabled())&&this.parent.enable(),this.paint()},e.prototype.isDisabled=function(){return!!this.config.disabled},e.prototype.validate=function(t){void 0===t&&(t=!1);for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var n=e.length?e[0]:this.getValue();if(!t&&!this.events.fire(h.ItemEvent.beforeValidate,[n]))return!1;var o=this.config.validation?(0,c.validateInput)(n,this.config.validation):(0,c.baseInputValidate)(n,this.config);return t||(this.setValidationStatus(o?"success":"error"),this.events.fire(h.ItemEvent.afterValidate,[n,o]),!this.isFocused()&&this.paint()),o},e.prototype.clearValidate=function(){this.setValidationStatus(),this.paint()},e.prototype.clear=function(){""!==this.config.value&&this.events.fire(h.ItemEvent.beforeChange,[""])&&(this.config.value="",this.events.fire(h.ItemEvent.change,[this.getValue()]),(0,c.isVerify)(this.config)&&this.setValidationStatus(this.validate(!0)?"success":"error"))},e.prototype.setValue=function(t){void 0!==t&&this.config.value!==t&&this.events.fire(h.ItemEvent.beforeChange,[t])&&(this.config.value=t,this.events.fire(h.ItemEvent.change,[this.getValue()]),(0,c.isVerify)(this.config)&&this.validate())},e.prototype.getValue=function(){var t=this.config,e=t.inputType,i=t.value;return"number"===e&&"number"==typeof i||null===i?i:"number"===e&&"string"==typeof i?i.length?Number(i):"":"string"==typeof i?i.length?i:"":void 0===i?"":String(i)},e.prototype.isFocused=function(){var t,e,i;return(null===(i=null===(e=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.input)||void 0===i?void 0:i.el)===document.activeElement},e.prototype.focus=function(){var t=this;(0,a.awaitRedraw)().then((function(){t.getRootView().refs.input.el.focus()}))},e.prototype.blur=function(){var t=this;(0,a.awaitRedraw)().then((function(){t.getRootView().refs.input.el.blur()}))},e.prototype._initView=function(t){if((0,l.isEmptyObj)(t))throw new Error("Check the configuration is correct");for(var e in this.config={type:"input",id:t.id,name:t.name,value:"",disabled:!1,hidden:!1,inputType:"text",required:!1,icon:"",placeholder:"",autocomplete:!1,readOnly:!1,label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t)"id"!==e&&"type"!==e&&"name"!==e&&(this.config[e]=t[e]);this._value=this.config.value,this.paint()},e.prototype._initHandlers=function(){var t=this;this.events.on(h.ItemEvent.change,(function(e){t._value=e,t.paint()}))},e.prototype._getHandlers=function(){var t=this;return{oninput:function(e){e.isComposing||(t._value=e.target.value,t.events.fire(h.ItemEvent.input,["number"===t.config.inputType?Number(t._value):t._value]))},onchange:function(e){t._value=e.target.value,t._value!==t.config.value&&t.setValue(t._value)},onfocus:function(){t.events.fire(h.ItemEvent.focus,[t.getValue()]),t.paint()},onblur:function(){t._uid&&(t.events.fire(h.ItemEvent.blur,[t.getValue()]),t._value!==t.config.value&&t.setValue(t._value),(0,a.awaitRedraw)().then((function(){return t.paint()})))},onkeydown:function(e){"Enter"===e.code&&"input"===t.config.type&&e.preventDefault(),t.events.fire(h.ItemEvent.keydown,[e])}}},e.prototype._draw=function(){var t=this,e=this.config,i=e.id,n=e.disabled,o=e.name,r=e.icon,s=e.placeholder,u=e.required,d=e.inputType,h=e.hidden,f=e.autocomplete,p=e.readOnly,v=e.maxlength,g=e.minlength,_=e.max,m=e.min,y=e.label,b=e.helpMessage,w=e.value,x=h?" dhx_form-group--hidden":"";return(0,a.el)("div.dhx_form-group",{class:(0,c.getFormItemCss)(this.config,(0,c.isVerify)(this.config),this.isFocused())+x},[this._drawLabel(),(0,a.el)(".dhx_input__wrapper",{},[(0,a.el)("div.dhx_input__container",{},[this.config.icon?(0,a.el)(".dhx_input__icon",{class:this.config.icon}):null,(0,a.el)("input.dhx_input",{type:["text","number","password"].includes(d)?d:"text","data-dhx-id":o||i,id:i||this._uid,_key:i||this._uid,placeholder:s||"",value:w,name:o||"",disabled:n,required:u,readOnly:p,maxlength:v,minlength:g,max:_,min:m,onblur:this._handlers.onblur,oninput:this._handlers.oninput,onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onkeydown:this._handlers.onkeydown,class:r?"dhx_input--icon-padding":"",autocomplete:f?"on":"off",_ref:"input","aria-label":y||b||"type ".concat(o||d||"text"),"aria-describedby":b?"dhx_label__help_".concat(i||this._uid):null,_hooks:{didRecycle:function(e,i){t.isFocused()&&(0,l.isDefined)(t._value)&&(i.el.value=t._value)},didInsert:function(e){t._input=e.el,t._input.addEventListener("compositionend",t._handlers.oninput)}}})]),(0,c.getValidationMessage)(this.config)&&(0,a.el)("span.dhx_input__caption",(0,c.getValidationMessage)(this.config))])])},e}(u.Label);e.Input=f},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.ajax=void 0;var n=i(22),o=i(23);function r(t){return t?t.includes("json")?"json":t.includes("xml")?"xml":"text":"text"}function s(e,i,s,a,l){var c=a||{};if(l&&(c.Accept="application/"+l),"GET"!==s&&(c["Content-Type"]=c["Content-Type"]||"application/json"),"GET"===s){var u=i&&"object"==typeof i?function(t){return Object.keys(t).reduce((function(e,i){var n="object"==typeof t[i]?JSON.stringify(t[i]):t[i];return e.push(i+"="+encodeURIComponent(n)),e}),[]).join("&")}(i):i&&"string"==typeof i?i:"";u&&(e+=e.includes("?")?"&":"?",e+=u),i=null}return window.fetch?("application/json"===c["Content-Type"]&&i&&"object"==typeof i&&(i=JSON.stringify(i)),window.fetch(e,{method:s,body:i||null,headers:c}).then((function(e){if(!e.ok)return e.text().then((function(i){return t.reject({status:e.status,statusText:e.statusText,message:i})}));var i=l||r(e.headers.get("Content-Type"));if("raw"===i)return{headers:Object.fromEntries(e.headers.entries()),url:e.url,body:e.body};if(204!==e.status)switch(i){case"json":return e.json();case"xml":var s=(0,o.toDataDriver)(n.DataDriver.xml);return s?e.text().then((function(t){return s.toJsonObject(t)})):e.text();default:return e.text()}}))):new t((function(t,a){var u=new XMLHttpRequest;for(var d in u.onload=function(){u.status>=200&&u.status<300?("raw"===l&&t({url:u.responseURL,headers:u.getAllResponseHeaders().trim().split(/[\r\n]+/).reduce((function(t,e){var i=e.split(": ");return t[i[0]]=i[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 i=(0,o.toDataDriver)(n.DataDriver.xml);return i?i.toJsonObject(t):{parseError:"Incorrect data driver type: 'xml'"}}}(u.responseText,l||r(u.getResponseHeader("Content-Type"))))):a({status:u.status,statusText:u.statusText})},u.onerror=function(){a({status:u.status,statusText:u.statusText,message:u.responseText})},u.open(s,e),c)u.setRequestHeader(d,c[d]);switch(s){case"POST":case"DELETE":case"PUT":u.send(void 0!==i?JSON.stringify(i):"");break;default:u.send()}}))}e.ajax={get:function(t,e,i){return s(t,e,"GET",i&&i.headers,void 0!==i?i.responseType:void 0)},post:function(t,e,i){return s(t,e,"POST",i&&i.headers,void 0!==i?i.responseType:void 0)},put:function(t,e,i){return s(t,e,"PUT",i&&i.headers,void 0!==i?i.responseType:void 0)},delete:function(t,e,i){return s(t,e,"DELETE",i&&i.headers,void 0!==i?i.responseType:void 0)}}}).call(this,i(17))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.Layout=void 0;var r=i(43),s=i(64),a=i(0),l=function(t){function e(e,i){var n=t.call(this,e,i)||this;if(n._root=n.config.parent||n,n._all={},n._parseConfig(),n._progress=!1,n.config.activeTab&&(n.config.activeView=n.config.activeTab),n.config.views&&(n.config.activeView=n.config.activeView||n._cells[0].id,n._isViewLayout=!0),!i.parent){var o=(0,a.create)({render:function(){return n._root&&n.toVDOM()}},n);n.mount(e,o)}return n}return o(e,t),e.prototype.destructor=function(){if(this.unmount(),this.config){for(var t=0,e=this._cells;t<e.length;t++){var i=e[t];null==i||i.destructor()}this.config=this._cells=this._root=this._xLayout=this._isViewLayout=null,this._all={}}},e.prototype.toVDOM=function(){var e;if(this._isViewLayout){var i=[this.getCell(this.config.activeView).toVDOM()];return t.prototype.toVDOM.call(this,i)}var n=[];return this._inheritTypes(),null===(e=this._cells)||void 0===e||e.forEach((function(t){var e=t.toVDOM();Array.isArray(e)?n=n.concat(e):n.push(e)})),t.prototype.toVDOM.call(this,n)},e.prototype.removeCell=function(t){if(this.events.fire(r.LayoutEvents.beforeRemove,[t])){var e=this.config.parent||this;if(e===this){var i=this.getCell(t);if(i){var n=i.getParent();delete this._all[t],n._cells=n._cells.filter((function(e){return e.id!=t})),n.paint()}this.events.fire(r.LayoutEvents.afterRemove,[t])}else e.removeCell(t)}},e.prototype.addCell=function(t,e){if(void 0===e&&(e=-1),this.events.fire(r.LayoutEvents.beforeAdd,[t.id])){var i=this._createCell(t);e<0&&(e=this._cells.length+e+1),this._cells.splice(e,0,i),this.paint(),this.events.fire(r.LayoutEvents.afterAdd,[t.id])}},e.prototype.getId=function(t){return t<0&&(t=this._cells.length+t),this._cells[t]?this._cells[t].id:void 0},e.prototype.getRefs=function(t){var e;return null===(e=this._root.getRootView().refs)||void 0===e?void 0:e[t]},e.prototype.getCell=function(t){var e;return null===(e=this._root)||void 0===e?void 0:e._all[t]},e.prototype.forEach=function(t,e,i){if(void 0===i&&(i=1/0),this._haveCells(e)&&!(i<1)){var n;n=e?this._root._all[e]._cells:this._root._cells;for(var o=0;o<n.length;o++){var r=n[o];t.call(this,r,o,n),this._haveCells(r.id)&&r.forEach(t,r.id,--i)}}},e.prototype.cell=function(t){return this.getCell(t)},e.prototype.progressShow=function(){this._progress=!0,this.paint()},e.prototype.progressHide=function(){this._progress=!1,this.paint()},e.prototype._getCss=function(e){var i=this._xLayout?"dhx_layout-columns":"dhx_layout-rows",n=this.config.align?" "+i+"--"+this.config.align:"";if(e)return i+" dhx_layout-cell"+(this.config.align?" dhx_layout-cell--"+this.config.align:"");var o=this.config.parent?t.prototype._getCss.call(this):"dhx_widget dhx_layout",r=this.config.parent?"":" dhx_layout-cell";return o+(this.config.full?r:" "+i)+n},e.prototype._parseConfig=function(){var t=this,e=this.config,i=e.rows||e.cols||e.views||[];this._xLayout=!e.rows,this._cells=i.map((function(e){return t._createCell(e)}))},e.prototype._createCell=function(t){var i;return t.rows||t.cols||t.views?(t.parent=this._root,i=new e(this,t)):i=new s.Cell(this,t),this._root._all[i.id]=i,t.init&&t.init(i,t),i},e.prototype._haveCells=function(t){if(t){var e=this._root._all[t];return e._cells&&e._cells.length>0}return Object.keys(this._all).length>0},e.prototype._inheritTypes=function(t){var e=this;if(void 0===t&&(t=this._cells),Array.isArray(t))t.forEach((function(t){return e._inheritTypes(t)}));else{var i=null==t?void 0:t.config;if((null==i?void 0:i.rows)||(null==i?void 0:i.cols)){var n=t.getParent();!i.type&&n&&(n.config.type?i.type=n.config.type:this._inheritTypes(n))}}},e}(s.Cell);e.Layout=l},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.LayoutEvents=void 0,function(t){t.beforeShow="beforeShow",t.afterShow="afterShow",t.beforeHide="beforeHide",t.afterHide="afterHide",t.beforeResizeStart="beforeResizeStart",t.resize="resize",t.afterResizeEnd="afterResizeEnd",t.beforeAdd="beforeAdd",t.afterAdd="afterAdd",t.beforeRemove="beforeRemove",t.afterRemove="afterRemove",t.beforeCollapse="beforeCollapse",t.afterCollapse="afterCollapse",t.beforeExpand="beforeExpand",t.afterExpand="afterExpand"}(n||(e.LayoutEvents=n={}))},function(t,e,i){"use strict";var n,o,r;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"}(n||(e.RealPosition=n={})),function(t){t.right="right",t.bottom="bottom",t.center="center",t.left="left",t.top="top"}(o||(e.Position=o={})),function(t){t.topLeft="top-left",t.topRight="top-right",t.bottomLeft="bottom-left",t.bottomRight="bottom-right"}(r||(e.MessageContainerPosition=r={}))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={apply:"apply",reject:"reject"}},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(150),e),o(i(71),e)},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(151),e),o(i(69),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={dragAndDrop:"Drag & drop",or:"or",browse:"Browse files",filesOrFoldersHere:"files or folders here",cancel:"Cancel",clearAll:"Clear all",clear:"Clear",add:"Add",upload:"Upload",download:"Download",error:"error",byte:"B",kilobyte:"KB",megabyte:"MB",gigabyte:"GB"}},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.ListEvents=void 0,function(t){t.click="click",t.doubleClick="doubleclick",t.focusChange="focuschange",t.beforeEditStart="beforeEditStart",t.afterEditStart="afterEditStart",t.beforeEditEnd="beforeEditEnd",t.afterEditEnd="afterEditEnd",t.itemRightClick="itemRightClick",t.itemMouseOver="itemMouseOver",t.contextmenu="contextmenu"}(n||(e.ListEvents=n={}))},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.locale=void 0,o(i(163),e),o(i(76),e),o(i(75),e),o(i(51),e);var r=i(52);Object.defineProperty(e,"locale",{enumerable:!0,get:function(){return r.default}})},function(t,e,i){"use strict";function n(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,i,n){return e+e+i+i+n+n}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}function o(t){var e,i,n=t.r/255,o=t.g/255,r=t.b/255,s=Math.max(n,o,r),a=s-Math.min(n,o,r),l=function(t){return(s-t)/6/a+.5};if(0===a)e=i=0;else{i=a/s;var c=l(n),u=l(o),d=l(r);n===s?e=d-u:o===s?e=1/3+c-d:r===s&&(e=2/3+u-c),e<0?e+=1:e>1&&(e-=1)}return{h:360*e,s:i,v:s}}Object.defineProperty(e,"__esModule",{value:!0}),e.getAlpha=e.alphaToHex=e.isHex=e.HexToHSV=e.RGBToHSV=e.HexToRGB=e.RGBToHex=e.HSVtoRGB=void 0,e.HSVtoRGB=function(t){var e={r:0,g:0,b:0},i=t.h/60,n=t.s,o=t.v,r=Math.floor(i)%6,s=i-Math.floor(i),a=255*o*(1-n),l=255*o*(1-n*s),c=255*o*(1-n*(1-s));switch(o*=255,r){case 0:e.r=o,e.g=c,e.b=a;break;case 1:e.r=l,e.g=o,e.b=a;break;case 2:e.r=a,e.g=o,e.b=c;break;case 3:e.r=a,e.g=l,e.b=o;break;case 4:e.r=c,e.g=a,e.b=o;break;case 5:e.r=o,e.g=a,e.b=l}for(var u in e)e[u]=Math.round(e[u]);return e},e.RGBToHex=function(t){return Object.keys(t).reduce((function(e,i){var n=t[i].toString(16).toUpperCase();return e+(n=1===n.length?"0"+n:n)}),"#")},e.HexToRGB=n,e.RGBToHSV=o,e.HexToHSV=function(t){return o(n(9===t.length?t.slice(0,-2):t))},e.isHex=function(t){return/(^#[0-9A-F]{8}$)|(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},e.alphaToHex=function(t){var e=Math.round(255*t).toString(16).toUpperCase();return 1===e.length?"0"+e:e},e.getAlpha=function(t){return 9===t.length?Number((parseInt(t.slice(-2),16)/255).toFixed(2)):1}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={cancel:"Cancel",select:"Select",rightClickToDelete:"Right click to delete",customColors:"Custom colors",addNewColor:"Add new color"}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Scale=void 0;var o=i(172),r=i(79),s=i(5),a={left:r.left,right:r.right,bottom:r.bottom,top:r.top},l={left:r.leftGrid,right:r.rightGrid,bottom:r.bottomGrid,top:r.topGrid},c=function(){function t(t,e,i){this._data=t,this._padding=!1,this._charts=[],this._position=i,this._setDefaults(e),this._isXDirection="bottom"===i||"top"===i,"radial"!==i&&(this.config.size="left"===i||"right"===i?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 o.AxisCreator(e,this.config).getScale();var i=this._position;"radial"!==i&&(t[i]+=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 i=this;if(this.config.hidden)return null;var n=this._axis.steps.map((function(n){return[i._isXDirection?i.point(n)*t:i.point(n)*e,n]}));return 0===n.length&&"left"===this._position&&(n=[[0,0]]),a[this._position](n,this.config,t,e)},t.prototype.scaleGrid=function(){var t=this,e=this._position,i=this.config.grid,n=this.config.dashed,o=this.config.hidden;return{paint:function(r,s){var a=t._axis.steps.indexOf(t.config.targetLine),c=function(e,i){return t._axis.steps.map((function(n){return[t._isXDirection?t.point(n)*e:t.point(n)*i,n]}))}(r,s),u=t.point(t.config.targetValue),d={targetLine:a,dashed:n,grid:i,targetValue:u,hidden:o};return l[e](c,r,s,d)}}},t.prototype._setDefaults=function(t){t.locator&&(this.locator=(0,s.locator)(t.locator)),this.config=n(n({},{scalePadding:20,textPadding:11,grid:!0,targetLine:null,showText:!0}),t)},t.prototype._logPoint=function(t){var e,i=Math.abs(t)/t,n=this._axis.steps,o=n.length-1,r=n.indexOf(t);-1!==r?e=r/o:e=((this._axis.min<0?n.indexOf(0):0)+i*(0,s.log10)(Math.abs(t)))/o;return this._isXDirection?e:1-e},t}();e.Scale=c},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r=i(5),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(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,r.locator)(this.config.value))},e.prototype.paint=function(e,i){t.prototype.paint.call(this,e,i)},e.prototype.dataReady=function(t){var e=this;return this.config.active?(this._points=this._data.map((function(i,n){var o=e._xLocator(i),r=e._yLocator(i),s=[o,r,i.id,o,r];return t&&(s[1]+=t[n][1]),s})),this._points):this._points=[]},e.prototype._calckFinalPoints=function(t,e){var i=this;this._points.forEach((function(n,o){n[0]=i.xScale.point(n[0])*t||0;var r=i.yScale.point(n[1])*e;n[1]=isNaN(r)?"xbar"===i.config.type?0:e:r}))},e.prototype._defaultLocator=function(t){return[this._yLocator(t),this._xLocator(t)]},e}(i(31).default);e.default=s},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(5),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._center=[0,0],e._tooltipData=[],e}return o(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,i){return i.$hidden?e:e+parseFloat(t._valueLocator(i))}),0),this._points=e.reduce((function(e,i,n){if(i.$hidden)return e;var o=t._textLocator(i),r=t._valueLocator(i),a=r/t._sum,l=t._colorLocator?t._colorLocator(i):(0,s.getDefaultColor)(n);return e.push([a,r,i.id,o,l]),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 i=1-(Math.atan2(t-this._center[0],e-this._center[1])+Math.PI)/Math.PI/2,n=this._points,o=0;o<n.length;o++){if(n[o][0]>=i)return[0,this._tooltipData[o][0],this._tooltipData[o][1],n[o][2]];i-=n[o][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,i={subType:"basic",paddings:t.useLines?70:50};this.config=r(r({},i),t),this._drawPointType=this._getPointType("empty","none"),this._valueLocator=(0,s.locator)(t.value),this._textLocator=(0,s.locator)(t.text),t.color?this._colorLocator=(0,s.locator)(t.color):t.monochrome&&(this._colorLocator=function(i){return(0,s.getColorShade)(t.monochrome,2*e._getPercent(i))})},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}(i(31).default);e.default=a},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),a=i(5),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.paint=function(e,i){var n=this;t.prototype.paint.call(this,e,i);var o,l=this.config.pointColor||this.config.color,c="chart ".concat(this.config.type," ").concat(this.config.css||""," ").concat(this.config.dashed?"dash-line":""),u=[];if(this.config.strokeWidth&&u.push(this._getForm(this._points,this.config,c,e,i)),this.config.pointType){var d=this._getPointType(this.config.pointType,l);u=u.concat(this._points.map((function(t){return d(t[0],t[1],(0,a.calcPointRef)(t[2],n.id))})).map((function(t,e){return t&&t.attrs&&(t.attrs=r(r({},t.attrs),function(t,e){var i;return t&&(i=e.find((function(e){return t.includes(e[2])}))),{role:"graphics-symbol","aria-roledescription":"point","aria-label":i?"point x=".concat(i[3]," y=").concat(i[4]):"",tabindex:0}}(t.key,n._points)),n.config.tooltip&&(t.attrs.onmousemove=[n._handlers.onmousemove,n._points[e][2],n.id],t.attrs.onmouseleave=[n._handlers.onmouseleave,n._points[e][2],n.id],t.attrs.onclick=[n._handlers.onmousemove,n._points[e][2],n.id])),t})))}return(0,s.sv)("g",r(r({class:"seria",_key:this.id},(o=this.config,{"aria-label":"chart ".concat(o.value||"")})),{tabindex:0}),u)},e.prototype._getForm=function(t,e,i,n,o){var r=t.map((function(t,e){return(e?"L":"M")+"".concat(t[0]," ").concat(t[1])})).join(" ");return(0,s.sv)("path",{id:"seria"+e.id,d:r,stroke:e.color,class:i,"stroke-width":this.config.strokeWidth,fill:"none"})},e.prototype._setDefaults=function(t){this.config=r(r({},{alpha:1,strokeWidth:2,active:!0,tooltip:!0}),t)},e}(i(54).default);e.default=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={notFound:"Not Found",selectAll:"Select All",unselectAll:"Unselect All",selectedItems:"selected items",createItem:"Create"}},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(59),e),o(i(130),e),o(i(33),e)},function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.Uploader=void 0;var n=i(1),o=i(3),r=i(7),s=i(33),a=function(){function e(t,e,i){void 0===t&&(t={}),this.config=(0,n.extend)({autosend:!0,updateFromResponse:!0,fieldName:"file",accept:""},t),this.data=e||new r.DataCollection,this.events=i||this.data.events,this.isActive=!1,this._fileInput=document.createElement("input"),this._fileInput.type="file",this._fileInput.accept=this.config.accept,this._fileInput.multiple=!0,this._initEvents(),this._dropAreas=new Map}return e.prototype.selectFile=function(){this._fileInput.click()},e.prototype.linkDropArea=function(t){var e=this,i=(0,o.toNode)(t),n=function(t){return t.preventDefault()},r=function(t){t.preventDefault(),e.parseFiles(t.dataTransfer)};i.addEventListener("dragover",n),i.addEventListener("drop",r),this._dropAreas.set(i,{dragover:n,drop:r})},e.prototype.unlinkDropArea=function(t){var e=this;if(t){var i=(0,o.toNode)(t);this._unlinkDropArea(i),this._dropAreas.delete(i)}else this._dropAreas.forEach((function(t,i){e._unlinkDropArea(i)})),this._dropAreas.clear()},e.prototype.parseFiles=function(t){if(t.items&&t.items[0]&&t.items[0].webkitGetAsEntry)this._parseAsWebkitEntry(t.items);else{for(var e=t.files,i=0;i<e.length;i++)this._addFile(e[i]);this.config.autosend&&this.send()}},e.prototype.send=function(t){var e=this;if(!this._uploadInfo||!this.isActive){var i=this.data.findAll((function(t){return t.status===s.FileStatus.queue||t.status===s.FileStatus.failed})).filter((function(t){return e.events.fire(s.UploaderEvents.beforeUploadFile,[t])}));if(i.length)if(this.isActive=!0,this._uploadInfo={files:i,count:i.length,size:i.reduce((function(t,e){return t+e.file.size}),0)},this.events.fire(s.UploaderEvents.uploadBegin,[i]),this.events.fire(s.UploaderEvents.uploadProgress,[0,0,this._uploadInfo.size]),this.config.singleRequest)this._xhrSend(i,t);else for(var n=0,o=i;n<o.length;n++){var r=o[n];this._xhrSend([r],t)}}},e.prototype.abort=function(t){if(t){var e=this.data.getItem(t);e&&e.request&&4!==e.request.readyState&&e.request.abort()}else{if(!this._uploadInfo||!this._uploadInfo.files)return;for(var i=0,n=this._uploadInfo.files;i<n.length;i++){var o=n[i];this.abort(o.id)}}},e.prototype._unlinkDropArea=function(t){var e=this._dropAreas.get(t);if(e){var i=e.dragover,n=e.drop;t.removeEventListener("dragover",i),t.removeEventListener("drop",n)}},e.prototype._initEvents=function(){var t=this;this._fileInput.addEventListener("change",(function(){for(var e=t._fileInput.files,i=0;i<e.length;i++)t._addFile(e[i]);t.config.autosend&&t.send(),t._fileInput.value=null}))},e.prototype._xhrSend=function(t,e){for(var i=this,n=this._createFormData(t,e),o=new XMLHttpRequest,r=this.config.headerParams,a=0,l=t;a<l.length;a++){var c=l[a];this.data.update(c.id,{request:o,status:s.FileStatus.inprogress,progress:0})}if(o.open("POST",this.config.target),r)for(var u in r)o.setRequestHeader(u,r[u]);o.upload.onprogress=function(e){for(var n=0,o=t;n<o.length;n++){var r=o[n];i.data.update(r.id,{progress:e.loaded/e.total,status:s.FileStatus.inprogress})}var a=i._uploadInfo.files.reduce((function(t,e){return t+e.size*e.progress}),0)||0,l=i._uploadInfo.size,c=a/i._uploadInfo.size*100||0;i.events.fire(s.UploaderEvents.uploadProgress,[c,a,l])},o.onloadend=function(){i._uploadInfo.count=i.config.singleRequest?0:i._uploadInfo.count-1;for(var e=200===o.status?s.FileStatus.uploaded:s.FileStatus.failed,n=200===o.status&&o.response?JSON.parse(o.response):null,r=0,a=t;r<a.length;r++){var l=a[r];i.data.update(l.id,{status:e}),e===s.FileStatus.uploaded?(i.config.updateFromResponse&&n&&(i.config.singleRequest&&n[l.id]?i.data.update(l.id,n[l.id]):i.config.singleRequest||i.data.update(l.id,n)),i.events.fire(s.UploaderEvents.uploadFile,[l,n])):i.events.fire(s.UploaderEvents.uploadFail,[l])}0===i._uploadInfo.count&&(i.isActive=!1,i.events.fire(s.UploaderEvents.uploadComplete,[i._uploadInfo.files]))},o.send(n)},e.prototype._parseAsWebkitEntry=function(e){for(var i=this,n=[],o=0;o<e.length;o++){var r=e[o].webkitGetAsEntry();n.push(this._traverseFileTree(r))}t.all(n).then((function(){i.config.autosend&&i.send()}))},e.prototype._createFormData=function(t,e){var i=this.config.fieldName,n=new FormData,o=this.config.params;if(e)for(var r in e)n.append(r,e[r]);if(o)for(var r in o)n.append(r,o[r]);for(var s=t.length>1?"[]":"",a=0,l=t;a<l.length;a++){var c=l[a];n.append(i+s,c.file,c.file.name),n.append(i+"_fullname"+s,c.path+c.file.name);var u="object"==typeof c.id?c.id:c.id.toString();n.append(i+"_id"+s,u)}return n},e.prototype._addFile=function(t,e){void 0===e&&(e="");var i={id:(0,n.uid)(),file:t,progress:0,status:s.FileStatus.queue,src:null,path:e};this.data.add(i)},e.prototype._traverseFileTree=function(e){var i=this;return new t((function(t){var n=0,o=function(e,r){if(e.isFile)n++,e.file((function(e){n--,i._addFile(e,r),0===n&&t()}));else if(e.isDirectory){!function(e,i){n++,e.readEntries((function(e){n--;for(var r=0,s=e;r<s.length;r++){var a=s[r];o(a,i)}0===n&&t()}))}(e.createReader(),r+e.name+"/")}};o(e,"")}))},e}();e.Uploader=a}).call(this,i(17))},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.DataCollection=void 0;var r=i(2),s=i(121),a=i(124),l=i(27),c=i(23),u=i(22),d=i(1),h=function(){function t(t,e){var i=this;this._filters={},this._changes={order:[]},this.config=t||{},this._sort=new a.Sort,this._loader=new s.Loader(this,this._changes),this.events=e||new r.EventSystem(this),this.events.on(u.DataEvents.dataRequest,(function(t,e){var n=i.dataProxy;n&&n.updateUrl&&(n.updateUrl(null,{from:t,limit:n.config.limit||e-t}),i.load(n))})),this.events.on(u.DataEvents.loadError,(function(t){setTimeout((function(){"string"!=typeof t?(0,c.dhxError)(t):(0,c.dhxWarning)(t)}),0)})),this._reset()}return t.prototype._reset=function(){this._order=[],this._pull={},this._changes={order:[]},this._initOrder=null,this._meta=new WeakMap,this._loaded=!1},t.prototype.add=function(t,e){var i,n=this;if(this.events.fire(u.DataEvents.beforeAdd,[t]))return i=Array.isArray(t)?t.map((function(t,i){return 0!==i&&(e+=1),n._add(t,e)})):this._add(t,e),this._reapplyFilters(!0),i},t.prototype.remove=function(t){var e=this;t instanceof Array?o([],t,!0).map((function(t){e._remove(t)})):(0,d.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,i){var n=this.getItem(t);if(n){if((0,c.isEqualObj)(e,n))return;(0,d.isId)(e.id)&&t!==e.id?((0,c.dhxWarning)("this method doesn't allow changing the id"),(0,c.isDebug)()):(e.parent&&n.parent&&e.parent!==n.parent&&this.move(t,-1,this,e.parent),(0,d.extend)(this._pull[t],e,!1),this.config.update&&this.config.update(this._pull[t]),i||this._onChange("update",t,this._pull[t])),this._reapplyFilters(!0)}else(0,c.dhxWarning)("item not found")},t.prototype.getIndex=function(t){return(0,d.isId)(t)&&(0,d.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,d.isNumeric)(t)&&(0,d.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,i){var n,o;if((null==e?void 0:e.$restore)&&(t=this._normalizeFilters(t||this._filters)),!(null==e?void 0:e.add)&&(this._order=this._initOrder||this._order,this._initOrder=null,!(null==e?void 0:e.$restore)))for(var r in this._filters){var s=this._filters[r];(null===(n=s.config)||void 0===n?void 0:n.permanent)?this._applyFilters(s.rule):delete this._filters[r]}if(t&&!(null==e?void 0:e.$restore)&&(o=(null==e?void 0:e.id)||(0,d.uid)(),this._filters[o]={rule:t,config:e||{}}),t&&"function"!=typeof t)if((0,d.isDefined)(t.by))this._applyFilters(t);else for(var r in t)this._applyFilters(t[r]);else this._applyFilters(t);if(!i){var a=this._getPureFilters(this._filters);this.events.fire(u.DataEvents.filter,[(0,d.isEmptyObj)(a)?null:a])}return o},t.prototype.resetFilter=function(t,e){var i,n=t||{},o=n.id,r=n.permanent;if((0,d.isEmptyObj)(t))for(var s in this._filters)(null===(i=this._filters[s].config)||void 0===i?void 0:i.permanent)||delete this._filters[s];else r?this._filters={}:o&&delete this._filters[o];return this.filter(null,{$restore:!0},e),(0,d.isEmptyObj)(this._getPureFilters(this._filters))},t.prototype.getFilters=function(t){var e=this.getRawFilters(t),i=e?this._getPureFilters(e):{};return(0,d.isEmptyObj)(i)?null:i},t.prototype.getRawFilters=function(t){var e=this._filters;return(null==t?void 0:t.permanent)&&(e=Object.keys(e).reduce((function(t,i){var n;return(null===(n=e[i].config)||void 0===n?void 0:n.permanent)&&(t[i]=e[i]),t}),{})),(0,d.isEmptyObj)(e)?null:e},t.prototype.find=function(t){for(var e in this._pull){var i=(0,c.findByConf)(this._pull[e],t);if(i)return i}return null},t.prototype.findAll=function(t){var e=[];for(var i in this._pull){var n=(0,c.findByConf)(this._pull[i],t);n&&e.push(n)}return e},t.prototype.sort=function(t,e){this.isDataLoaded()?(e&&e.smartSorting&&(this._sorter=t),t&&this._applySorters(t),this.events.fire(u.DataEvents.change,[void 0,"sort",t])):(0,c.dhxWarning)("the method doesn't work with lazyLoad")},t.prototype.copy=function(t,e,i,n){var o=this;return t instanceof Array?t.map((function(t,r){return o._copy(t,e,i,n,r)})):this._copy(t,e,i,n)},t.prototype.move=function(t,e,i,n,o){var r=this;return t instanceof Array?t.map((function(t,o){return r._move(t,e,i,n,o)})):this._move(t,e,i,n,0,o)},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){if("string"==typeof t&&(this.dataProxy=t=new l.DataProxy(t)),"string"==typeof e){var i=e.toLocaleLowerCase();"xml"!==i&&"csv"!==i||(t.config.responseType=t.config.responseType||"text")}return this.dataProxy=t,this._loader.load(t,e)},t.prototype.parse=function(t,e){return this._reset(),this._loader.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(!0),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 l.DataProxy(t)),this._loader.save(t)},t.prototype.changeId=function(t,e,i){if(void 0===e&&(e=(0,d.uid)()),t!=e)if(this.exists(e))(0,c.dhxWarning)("item with ID ".concat(e," already exists"));else{var n=this.getItem(t);n?(n.id=e,(0,d.extend)(this._pull[t],n),this._pull[e]=this._pull[t],i||this._onChange("update",e,this._pull[e]),delete this._pull[t]):(0,c.dhxWarning)("item not found")}},t.prototype.isSaved=function(){return!this._changes.order.length},t.prototype.map=function(t){for(var e=[],i=0;i<this._order.length;i++)e.push(t.call(this,this._order[i],i,this._order));return e},t.prototype.mapRange=function(t,e,i){t<0&&(t=0),e>this._order.length-1&&(e=this._order.length-1);for(var n=this._order.slice(t,e+1),o=[],r=t;r<=e;r++)o.push(i.call(this,this._order[r],r,n));return o},t.prototype.reduce=function(t,e){for(var i=0;i<this._order.length;i++)e=t.call(this,e,this._order[i],i);return e},t.prototype.serialize=function(t){void 0===t&&(t=u.DataDriver.json);for(var e=[],i=function(t){var i=n({},o._order[t]);Object.keys(i).forEach((function(t){t.startsWith("$")&&delete i[t]})),e.push(i)},o=this,r=0;r<this._order.length;r++)i(r);var s=(0,c.toDataDriver)(t);if(s)return s.serialize(e)},t.prototype.getInitialData=function(){return this._initOrder},t.prototype.setMeta=function(t,e,i){if(t){var n=this._meta.get(t);n||(n={},this._meta.set(t,n)),n[e]=i}},t.prototype.getMeta=function(t,e){var i=this._meta.get(t);return i?i[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,i,n){if(i=i||this._order,1===n)return i;if(this._range)if(t=this._range[0]+t,-1===e)e=this._range[1];else{var o=Math.abs(e-t);e=t+o>this._range[1]?this._range[1]:t+o}if(!e||0===t&&(-1===e||e===i.length))return i;if(t>=i.length)return[];(-1===e||e>i.length)&&(e=i.length);var r=i.slice(t,e);return 0!==r.filter((function(t){return t.$empty})).length&&this.events.fire(u.DataEvents.dataRequest,[t,e]),r},t.prototype._add=function(t,e){var i=this._addCore(t,e);return this._onChange("add",t.id,t),this.events.fire(u.DataEvents.afterAdd,[t]),i},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,i,o,r,s){if(!this.exists(e))return null;var a=(0,d.uid)();return s&&(i=-1===i?-1:i+s),o?o instanceof t||!r?o.exists(e)?(o.add(n(n({},(0,c.copyWithoutInner)(this.getItem(e))),{id:a}),i),a):(o.add((0,c.copyWithoutInner)(this.getItem(e)),i),e):void o.add((0,c.copyWithoutInner)(this.getItem(e)),i):(this.add(n(n({},(0,c.copyWithoutInner)(this.getItem(e))),{id:a}),i),a)},t.prototype._move=function(t,e,i,n,o,r){if(o&&e<this.getIndex(t)&&(e=-1===e?-1:e+o),i&&i!==this&&this.exists(t)){var s=(0,d.copy)(this.getItem(t),!0);return r&&(s.id=r),(!r&&i.exists(t)||i.exists(r))&&(s.id=(0,d.uid)()),n&&(s.parent=n),i.add(s,e),this.remove(t),s.id}if(this.getIndex(t)===e)return null;var a=this._order.splice(this.getIndex(t),1)[0];return-1===e&&(e=this._order.length),this._order.splice(e,0,a),this.events.fire(u.DataEvents.change,[t,"update",this.getItem(t)]),t},t.prototype._addCore=function(t,e){var i;return this.config.init&&(t=this.config.init(t)),t.id=null!==(i=t.id)&&void 0!==i?i:(0,d.uid)(),this._pull[t.id]&&(0,c.dhxError)("Item ".concat(t.id," already exist")),this._initOrder&&!(0,c.isTreeCollection)(this)&&this._addToOrder(this._initOrder,t,e),this._addToOrder(this._order,t,e),t.id},t.prototype._removeCore=function(t){this.getIndex(t)>=0&&(this._order=this._order.filter((function(e){return e.id!==t})),delete this._pull[t]),this._initOrder&&this._initOrder.length&&(this._initOrder=this._initOrder.filter((function(e){return e.id!==t})),delete this._pull[t])},t.prototype._parse_data=function(t){var e=this._order.length;this.config.prep&&(t=this.config.prep(t));for(var i=0,n=t;i<n.length;i++){var o=n[i];this._addCore(o,e++)}},t.prototype._approximate=function(t,e,i){for(var n=t.length,o=e.length,r=Math.floor(n/i),s=Array(Math.ceil(n/r)),a=0,l=0;l<n;l+=r){for(var c=(0,d.copy)(t[l]),u=Math.min(n,l+r),h=0;h<o;h++){for(var f=0,p=l;p<u;p++)f+=t[p][e[h]];c[e[h]]=f/(u-l)}s[a++]=c}return s},t.prototype._onChange=function(t,e,i){for(var o=0,r=0,s=this._changes.order;r<s.length;r++){var a=s[r],l=this._changes.order.indexOf(a);if(a.id===e&&!a.saving&&(o+=1,l===this._changes.order.length-1||this._changes.order[l+1].id!==e)){if(a.error&&(a.error=!1),a=n(n({},a),{obj:i,status:t}),(o+=1)>10?this._changes.order.splice(l,o-10,a):this._changes.order.splice(l+1,0,a),this._loader.updateChanges(this._changes),"remove"===t&&i.$emptyRow)return;return void this.events.fire(u.DataEvents.change,[e,t,i])}}this._changes.order.push({id:e,status:t,obj:n({},i),saving:!1}),this._loader.updateChanges(this._changes),this.events.fire(u.DataEvents.change,[e,t,i])},t.prototype._addToOrder=function(t,e,i){i>=0&&t[i]?(this._pull[e.id]=e,t.splice(i,0,e)):(this._pull[e.id]=e,t.push(e))},t.prototype._applySorters=function(t){this._sort.sort(this._order,t,this._sorter),this._initOrder&&this._initOrder.length&&this._sort.sort(this._initOrder,t,this._sorter)},t.prototype._applyFilters=function(t){if(t){var e="function"!=typeof t?this._getRuleCallback(t):t,i=this._order.filter((function(t){return e(t)}));this._initOrder||(this._initOrder=this._order),this._order=i}},t.prototype._reapplyFilters=function(t){void 0===t&&(t=!1);var e=this.getFilters({permanent:!0});e&&this.filter(e,{$restore:!0,add:!0},!0),t&&this._sorter&&this._applySorters()},t.prototype._getRuleCallback=function(t){if((0,d.isDefined)(t.by)&&(0,d.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,i){var n;return(null===(n=t[i].config)||void 0===n?void 0:n.$local)||(e[i]=t[i]),e}),{})},t.prototype._normalizeFilters=function(t){var e=[];for(var i in t){var o=t[i].rule;if("function"!=typeof o)if((0,d.isDefined)(o.by))e.push(this._getRuleCallback(o));else for(var r in o)e.push(this._getRuleCallback(o[r]));else e.push(o)}return n({},e)},t}();e.DataCollection=h},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.dataDriversPro=e.dataDrivers=void 0;var o=i(62),r=i(63),s=i(122);e.dataDrivers={json:o.JsonDriver,csv:r.CsvDriver},e.dataDriversPro=n(n({},e.dataDrivers),{xml:s.XMLDriver})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JsonDriver=void 0;var n=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=n},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.CsvDriver=void 0;var o=function(){function t(t){this.config=n(n({},{skipHeader:0,nameByHeader:!1,rowDelimiter:"\n",columnDelimiter:","}),t),this.config.nameByHeader&&(this.config.skipHeader=1)}return t.prototype.getFields=function(t,e){for(var i=new RegExp('(?<!")'.concat(this.config.columnDelimiter,'(?!")')),n=t.trim().split(i),o={},r=0;r<n.length;r++)o[e?e[r]:r+1]=isNaN(Number(n[r]))?n[r].replace(/"[,;"]"/gi,(function(t){return t.split("").splice(1,1).slice(-1,1).join("")})):parseFloat(n[r]);return o},t.prototype.getRows=function(t){return t.trim().split(this.config.rowDelimiter)},t.prototype.toJsonArray=function(t){var e=this,i=this.getRows(t),n=this.config.names;if(this.config.skipHeader){var o=i.splice(0,this.config.skipHeader);this.config.nameByHeader&&(n=o[0].trim().split(this.config.columnDelimiter))}return i.map((function(t){return e.getFields(t,n)}))},t.prototype.serialize=function(t,e){var i=t[0]?Object.keys(t[0]).filter((function(t){return!t.startsWith("$")})).join(this.config.columnDelimiter)+this.config.rowDelimiter:"",n=this._serialize(t);return e?n:i+n},t.prototype._serialize=function(t){var e=this;return t.reduce((function(t,i){var n=Object.keys(i),o=n.reduce((function(t,o,r){var s,a;return o.startsWith("$")||"items"===o?t:"".concat(t).concat((null!==(a=null===(s=i[o])||void 0===s?void 0:s.toString())&&void 0!==a?a:"").replaceAll(/[,;"]/gi,(function(t){return'"'.concat(t,'"')}))).concat(r===n.length-1||r!==n.length-1&&n[r+1].startsWith("$")?"":e.config.columnDelimiter)}),"");return i.items?"".concat(t).concat(t?"\n":"").concat(o).concat(e._serialize(i.items)):"".concat(t).concat(t?e.config.rowDelimiter:"").concat(o)}),"")},t}();e.CsvDriver=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Cell=void 0;var s=i(1),a=i(0),l=i(9),c=i(43),u=i(131),d=i(2),h=i(42),f=function(t){function e(e,i){var n=t.call(this,e,i)||this;n._disabled=[];var o=e;return o&&o.isVisible&&(n._parent=o),n._parent&&n._parent.events?n.events=n._parent.events:n.events=new d.EventSystem(n),n.config.full=void 0===n.config.full?Boolean(n.config.header||n.config.collapsable||n.config.headerHeight||n.config.headerIcon||n.config.headerImage):n.config.full,n._afterWindowResized=n._resizedWindow.bind(n),n.id=n.config.id||(0,s.uid)(),n._initHandlers(),n._progress=!!n.config.progressDefault,n._stopProgressDefault=!1,n._isXDirection()&&!i.width&&(i.$autoWidth=!0),n._isXDirection()||i.height||(i.$autoHeight=!0),n}return o(e,t),e.prototype.paint=function(){var t;if(this.isVisible()){var e=this.getRootView();e?e.redraw():null===(t=this._parent)||void 0===t||t.paint()}},e.prototype.isVisible=function(){var t;if(!this._parent)return!(!this._container||!this._container.tagName)||Boolean(this.getRootNode());var e=null===(t=this._parent.config)||void 0===t?void 0:t.activeView;return(!e||e===this.id)&&(!this.config.hidden&&(!this._parent||this._parent.isVisible()))},e.prototype.hide=function(){this.events.fire(c.LayoutEvents.beforeHide,[this.id])&&(this.config.hidden=!0,this._resetCellsSize(),this._parent&&this._parent.paint&&this._parent.paint(),this.events.fire(c.LayoutEvents.afterHide,[this.id]))},e.prototype.show=function(){this.events.fire(c.LayoutEvents.beforeShow,[this.id])&&(this._parent&&this._parent.config&&void 0!==this._parent.config.activeView?this._parent.config.activeView=this.id:this.config.hidden=!1,this._parent&&!this._parent.isVisible()&&this._parent.show(),this.paint(),this.events.fire(c.LayoutEvents.afterShow,[this.id]))},e.prototype.expand=function(){this.events.fire(c.LayoutEvents.beforeExpand,[this.id])&&(this.config.collapsed=!1,this._checkNextSize()||this._checkNextSize(this._getAnyFlexCell()),this.events.fire(c.LayoutEvents.afterExpand,[this.id]),this.paint())},e.prototype.collapse=function(){this.events.fire(c.LayoutEvents.beforeCollapse,[this.id])&&(this.config.collapsed=!0,this._checkNextSize()||this._checkNextSize(this._getAnyFlexCell()),this.events.fire(c.LayoutEvents.afterCollapse,[this.id]),this.paint())},e.prototype.toggle=function(){this.config.collapsed?this.expand():this.collapse()},e.prototype._checkNextSize=function(t){var e=null!=t?t:this._getNextCell();return!!e&&(this._isXDirection()&&e.config.$autoWidth&&e.config.width?(e.config.width=void 0,!0):!this._isXDirection()&&e.config.$autoHeight&&e.config.height?(e.config.height=void 0,!0):!t&&e._checkNextSize())},e.prototype.getParent=function(){return this._parent},e.prototype.destructor=function(){var t;this.events&&this.events.clear(),window.removeEventListener("resize",this._afterWindowResized),this._ui&&this._ui.config&&"function"==typeof(null===(t=this._ui)||void 0===t?void 0:t.destructor)&&this._ui.destructor(),this.config=this.events=this.id=this._parent=this._handlers=this._uid=this._disabled=this._resizerHandlers=null,this.unmount()},e.prototype.getWidget=function(){return this._ui},e.prototype.getCellView=function(){return this._parent&&this._parent.getRefs(this._uid)},e.prototype.attach=function(t,e){return this.config.html=null,"object"==typeof t?this._ui=t:"string"==typeof t?this._ui=new window.dhx[t](null,e):"function"==typeof t&&(t.prototype instanceof l.View?this._ui=new t(null,e):this._ui={getRootView:function(){return t(e)}}),this.paint(),this._ui},e.prototype.attachHTML=function(t){this.config.html=t,this.paint()},e.prototype.detach=function(){this._stopProgressDefault=!1,this._ui=this.config.html=null,this.paint()},e.prototype.progressShow=function(){this.config.progressDefault&&(this._stopProgressDefault=!1),this._progress=!0,this.paint()},e.prototype.progressHide=function(){this.config.progressDefault&&(this._stopProgressDefault=!0),this._progress=!1,this.paint()},e.prototype.isVisibleProgress=function(){return this._progress},e.prototype.toVDOM=function(t){var e,i,n;if(this._saveTheme(),null===this.config&&(this.config={}),!this.config.hidden){var o,l=this.config.$fieldset,c=this._calculateStyle(),u=(0,s.isDefined)(this.config.padding)?isNaN(Number(this.config.padding))?{padding:this.config.padding}:{padding:"".concat(this.config.padding,"px")}:"",d=this.config.full||this.config.html?c:r(r({},c),u),h=this._checkProgress()?this._getProgressBar():null;if(!this.config.html)if(this._ui){var f=this._ui.getRootView();f.render&&(f=(0,a.inject)(f)),o=[f]}else o=t||null;var p=this.config.resizable&&!this._isLastCell()&&this._getNextCell()&&!this.config.collapsed?(0,a.el)(".dhx_layout-resizer."+(this._isXDirection()?"dhx_layout-resizer--x":"dhx_layout-resizer--y"),r(r({},this._resizerHandlers),{_ref:"resizer_"+this._uid,tabindex:0}),[(0,a.el)("span.dhx_layout-resizer__icon",{class:"dxi "+(this._isXDirection()?"dxi-dots-vertical":"dxi-dots-horizontal")})]):null,v={};if(this.config.on)for(var g in this.config.on)v["on"+g]=this.config.on[g];var _="",m=this.config.cols||this.config.rows;if(this.config.type&&m)switch(this.config.type){case"line":_=" dhx_layout-line";break;case"wide":_=" dhx_layout-wide";break;case"space":_=" dhx_layout-space"}var y=l?(0,a.el)("fieldset.dhx_form-fieldset",{class:this.config.$disabled?" dhx_form-fieldset--disabled":"",style:u,disabled:this.config.$disabled},[(0,a.el)("legend.dhx_form-fieldset-legend",{class:"dhx_form-fieldset-legend--".concat(this.config.labelAlignment||"left")},this.config.label),(0,a.el)(".dhx_layout-cell-content",{class:this._getCss(!1)},[].concat(o))]):this.config.full?[(0,a.el)("div",{tabindex:this.config.collapsable?"0":"-1",role:this.config.collapsable?"button":null,"aria-label":this.config.collapsable?"click to ".concat(this.config.collapsed?"expand":"collapse"):null,class:"dhx_layout-cell-header"+(this._isXDirection()?" dhx_layout-cell-header--col":" dhx_layout-cell-header--row")+(this.config.collapsable?" dhx_layout-cell-header--collapseble":"")+(this.config.collapsed?" dhx_layout-cell-header--collapsed":"")+(((this.getParent()||{}).config||{}).isAccordion?" dhx_layout-cell-header--accordion":""),style:{height:this.config.headerHeight},onclick:this._handlers.toggle,onkeydown:this._handlers.enterCollapse},[this.config.headerIcon&&(0,a.el)("span.dhx_layout-cell-header__icon",{class:this.config.headerIcon}),this.config.headerImage&&(0,a.el)(".dhx_layout-cell-header__image-wrapper",[(0,a.el)("img",{src:this.config.headerImage,class:"dhx_layout-cell-header__image"})]),this.config.header&&(0,a.el)("h3.dhx_layout-cell-header__title",this.config.header),this.config.collapsable?(0,a.el)("div.dhx_layout-cell-header__collapse-icon",{class:this._getCollapseIcon()}):(0,a.el)("div.dhx_layout-cell-header__collapse-icon",{class:"dxi dxi-empty"})]),this.config.collapsed?null:(0,a.el)("div",{style:r(r({},u),{height:"calc(100% - ".concat(this.config.headerHeight||37,"px)")}),class:this._getCss(!0)+" dhx_layout-cell-content"+(this.config.type?_:"")},this.config.html?[(0,a.el)("div",{".innerHTML":this.config.html,class:"dhx_layout-cell dhx_layout-cell-inner_html"})]:o)]:!this.config.html||this.config.rows&&this.config.cols&&this.config.views?o:[this.config.collapsed?null:(0,a.el)(".dhx_layout-cell-content",{style:u},[(0,a.el)(".dhx_layout-cell-inner_html",{".innerHTML":this.config.html})])],b=(0,a.el)("div",r(r(((e={_key:this._uid,_ref:this._uid})["aria-label"]=this.config.id?"tab-content-"+this.config.id:null,e["data-cell-id"]=null!==(i=this.config.id)&&void 0!==i?i:null,e["data-dhx-theme"]=null!==(n=this._theme)&&void 0!==n?n:null,e),v),{class:this._getCss(!1)+(this.config.css?" "+this.config.css:"")+(this.config.collapsed?" dhx_layout-cell--collapsed":"")+(this.config.resizable?" dhx_layout-cell--resizable":"")+(this.config.type&&!this.config.full?_:""),style:l?c:d}),y||h?[].concat(y,h):null);return p?[].concat(b,p):b}},e.prototype._saveTheme=function(){var t,e=null===(t=this.getCellView())||void 0===t?void 0:t.el;e&&(this._theme=e.getAttribute("data-dhx-theme"))},e.prototype._getProgressBar=function(){return(0,a.el)("span",{class:"dhx_progress-bar"},[(0,a.sv)("svg",{viewBox:"25 25 50 50",class:"dhx_spinner"},[(0,a.sv)("circle",{cx:"50",cy:"50",r:"20",class:"path"})])])},e.prototype._getCss=function(t){return"dhx_layout-cell"},e.prototype._initHandlers=function(){var t=this;!this.getParent()||this.config.cols||this.config.rows||window.addEventListener("resize",this._afterWindowResized),this._handlers={enterCollapse:function(e){13===e.keyCode&&t._handlers.toggle()},collapse:function(){t.config.collapsable&&t.collapse()},expand:function(){t.config.collapsable&&t.expand()},toggle:function(){t.config.collapsable&&t.toggle()}};var e={left:null,top:null,isActive:!1,range:null,xLayout:null,nextCell:null,size:null,resizerLength:null,margin:null,collapsedSize:null},i=function(i,n){if(void 0===n&&(n={x:0,y:0}),e.isActive){var o=e.xLayout,r=i.targetTouches?i.targetTouches[0].clientX:i.clientX+n.x,s=i.targetTouches?i.targetTouches[0].clientY:i.clientY+n.y,a=o?r-e.range.min+window.pageXOffset:s-e.range.min+window.pageYOffset,l=o?"width":"height";a<0?a=e.resizerLength/2:a>e.size&&(a=e.size-e.resizerLength);var u=function(e){var i;return parseInt(null===(i=t.config[e])||void 0===i?void 0:i.toString())},d=u(o?"maxWidth":"maxHeight"),h=u(o?"minWidth":"minHeight");(!d||a<d)&&(!h||a>h)&&(t.config[l]=a-e.resizerLength/2+"px",e.nextCell.config[l]=e.size-a-e.resizerLength/2+"px",e.nextCell._getAnyFlexCell()&&(e.nextCell._getAnyFlexCell().config[l]=void 0),t.paint(),t.events.fire(c.LayoutEvents.resize,[t.id]))}},n={},o=function(r){if(e.isActive=!1,document.body.classList.remove("dhx_no-select--resize"),r.targetTouches)for(var s in document.removeEventListener("touchend",o),document.removeEventListener("touchmove",i),n)n[s].node.contentWindow.document.removeEventListener("touchend",o),n[s].node.contentWindow.document.removeEventListener("touchmove",n[s].listener);else for(var s in document.removeEventListener("mouseup",o),document.removeEventListener("mousemove",i),n)n[s].node.contentWindow.document.removeEventListener("mouseup",o),n[s].node.contentWindow.document.removeEventListener("mousemove",n[s].listener);t.events.fire(c.LayoutEvents.afterResizeEnd,[t.id])},r=function(i){if(i.targetTouches&&i.preventDefault(),3!==i.which&&(e.isActive&&o(i),t.events.fire(c.LayoutEvents.beforeResizeStart,[t.id]))){document.body.classList.add("dhx_no-select--resize");var n=t.getCellView(),r=t._getNextCell(),s=r.getCellView(),a=t._getResizerView(),l=n.el.getBoundingClientRect(),d=a.el.getBoundingClientRect(),h=s.el.getBoundingClientRect();e.xLayout=t._isXDirection(),e.left=l.left+window.pageXOffset,e.top=l.top+window.pageYOffset,e.collapsedSize=t._getCollapsedSize(t,r),e.margin=(0,u.getMarginSize)(t.getParent().config),e.range=(0,u.getBlockRange)(l,h,e.xLayout),e.size=e.range.max-e.range.min-e.margin-e.collapsedSize,e.isActive=!0,e.nextCell=r,e.resizerLength=e.xLayout?d.width:d.height}};this._resizerHandlers={onmousedown:function(t){r(t),document.addEventListener("mouseup",o),document.addEventListener("mousemove",i);var e=document.querySelectorAll("iframe");if(e.length)for(var s in e.forEach((function(t,e){var o={x:t.getBoundingClientRect().x,y:t.getBoundingClientRect().y};n[e]={node:t,listener:function(t){return i(t,o)}}})),n)n[s].node.contentWindow.document.addEventListener("mouseup",o),n[s].node.contentWindow.document.addEventListener("mousemove",n[s].listener)},ontouchstart:function(t){r(t),document.addEventListener("touchend",o),document.addEventListener("touchmove",i);var e=document.querySelectorAll("iframe");if(e.length)for(var s in e.forEach((function(t,e){var o={x:t.getBoundingClientRect().x,y:t.getBoundingClientRect().y};n[e]={node:t,listener:function(t){return i(t,o)}}})),n)n[s].node.contentWindow.document.addEventListener("touchend",o),n[s].node.contentWindow.document.addEventListener("touchmove",n[s].listener)},ondragstart:function(t){return t.preventDefault()}}},e.prototype._getCollapsedSize=function(t,e){var i=0,n=this._parent,o=n._cells.indexOf(t),r=n._cells.indexOf(e);if(r-o==1)return i;for(var s=o+1;s<r;s++)n._cells[s].config.collapsed&&(this._isXDirection()?i+=45:i+=Number(n._cells[s].config.headerHeight)||37);return i},e.prototype._getCollapseIcon=function(){return this._isXDirection()&&this.config.collapsed?"dxi dxi-chevron-right":this._isXDirection()&&!this.config.collapsed?"dxi dxi-chevron-left":!this._isXDirection()&&this.config.collapsed?"dxi dxi-chevron-up":this._isXDirection()||this.config.collapsed?void 0:"dxi dxi-chevron-down"},e.prototype._isLastCell=function(){var t=this._parent;return t&&t._cells.indexOf(this)===t._cells.length-1},e.prototype._getNextCell=function(){var t=this._parent,e=t._cells.indexOf(this),i=!this._isLastCell()&&t._cells[e+1];return!!i&&(i.config.hidden||i.config.collapsed?i._getNextCell():i)},e.prototype._getAnyFlexCell=function(t){var e,i=this;void 0===t&&(t=!1);var n=this._parent,o=this._isXDirection()?"$autoWidth":"$autoHeight",r=null===(e=null==n?void 0:n._cells)||void 0===e?void 0:e.filter((function(e){return!0===e.config[o]&&(!!t||e.id!==i.id)}));return!!(null==r?void 0:r.length)&&r[r.length-1]},e.prototype._getResizerView=function(){return this._parent.getRefs("resizer_"+this._uid)},e.prototype._isXDirection=function(){return this._parent&&this._parent._xLayout},e.prototype._checkProgress=function(){return this instanceof h.Layout?this.isVisibleProgress():(this._calculateProgressState(),(this._progress||this._checkAutoProgress())&&!this.config.collapsed&&!this.config.hidden&&!this._parent.isVisibleProgress())},e.prototype._checkAutoProgress=function(){if(this._stopProgressDefault)return!1;var t=this.config,e=t.html;return t.progressDefault&&!this._ui&&!e},e.prototype._calculateProgressState=function(){if(!this._stopProgressDefault){var t=this.config,e=t.html,i=t.progressDefault;!i||this._ui||e||(this._progress=!0),i&&(this._ui||e)&&(this._progress=!1)}},e.prototype._calculateStyle=function(){var t=this.config;if(t){var e={},i=!1,n=!1;isNaN(Number(t.width))||(t.width=t.width+"px"),isNaN(Number(t.height))||(t.height=t.height+"px"),isNaN(Number(t.minWidth))||(t.minWidth=t.minWidth+"px"),isNaN(Number(t.minHeight))||(t.minHeight=t.minHeight+"px"),isNaN(Number(t.maxWidth))||(t.maxWidth=t.maxWidth+"px"),isNaN(Number(t.maxHeight))||(t.maxHeight=t.maxHeight+"px"),"content"===t.width&&(i=!0),"content"===t.height&&(n=!0);var o=t,r=o.width,s=o.height,a=o.cols,l=o.rows,c=o.minWidth,u=o.minHeight,d=o.maxWidth,h=o.maxHeight,f=o.gravity,p=o.collapsed,v=o.$fixed,g=-1===Math.sign(f)?0:f;"boolean"==typeof f&&(g=f?1:0);var _="boolean"==typeof f?!f:-1===Math.sign(f);this._isXDirection()?(v||r||void 0===f&&(c||d))&&(_=!0):(v||s||void 0===f&&(u||h))&&(_=!0);var m=this._checkFullSizeCell(),y=_&&!m?0:m?1:g||1,b=this._isXDirection()?"x":"y";if(void 0===c||p||(e.minWidth=c),void 0===u||p||(e.minHeight=u),void 0!==d&&(e.maxWidth=d),void 0!==h&&(e.maxHeight=h),void 0===this._parent&&void 0!==!b&&(b=!0),m||void 0===r||"content"===r){if(!0===b)e.width="100%";else if("x"===b)if(i)e.flex="0 0 auto";else{var w=this._isXDirection()?"1px":"auto";e.flex="".concat(y," ").concat(a||l?"0 ".concat(w):"1 auto")}}else e.width=r;if(m||void 0===s||"content"===s){if(!0===b)e.height="100%";else if("y"===b)if(n)e.flex="0 0 auto";else{w=this._isXDirection()?"auto":"1px";e.flex="".concat(y," ").concat(a||l?"0 ".concat(w):"1 auto")}}else e.height=s;return!0===b&&void 0===t.width&&void 0===t.height&&(e.flex="".concat(y," 1 auto")),p&&(this._isXDirection()?e.width="auto":e.height="auto",e.flex="0 0 auto"),e}},e.prototype._resizedWindow=function(){var t;if(void 0===this._isLastFlexCell?this._isLastFlexCell=(null===(t=this._getAnyFlexCell(!0))||void 0===t?void 0:t.id)===this.id:this._isLastFlexCell||window.removeEventListener("resize",this._afterWindowResized),this._isLastFlexCell){var e=this._isXDirection()?"width":"height";this.config[e]=void 0,this.paint()}},e.prototype._resetCellsSize=function(){var t=this,e=this._parent._cells.filter((function(e){return e!==t&&!e.config.hidden&&!e.config.collapsed})),i=this._isXDirection(),n=i?"$autoWidth":"$autoHeight",o=i?"width":"height";e.forEach((function(t){t.config[n]&&(t.config[o]=void 0)}))},e.prototype._checkFullSizeCell=function(){var t=this;if(!this._parent)return!1;var e=this._isXDirection()?"$autoWidth":"$autoHeight";if(!this.config[e])return!1;var i=this._parent._cells.filter((function(e){return e!==t&&!e.config.hidden}));return!!i.length&&i.every((function(t){return t.config.collapsed}))},e}(l.View);e.Cell=f},function(t,e,i){"use strict";function n(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",n),function(){document.body.removeChild(e),document.removeEventListener("keydown",n)}}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.disableTooltip=e.enableTooltip=e.tooltip=e.getZIndex=e.findPosition=void 0;var o=i(3),r=i(44),s=750,a=200;function l(t,e,i,n,o,s){var a,c,u;if(void 0===o&&(o=8),void 0===s&&(s=0),s>1&&(e=r.Position.center),"top"!==e&&"bottom"!==e){var d=t.top+(t.height-n)/2,h=d<0&&window.pageYOffset+d+n<scrollY+window.innerHeight;u=window.pageYOffset+(h?0:d)}switch(e){case r.Position.center:return(c=t.left+window.pageXOffset+(t.width-i)/2)+o<window.pageXOffset&&(c=t.left+window.pageXOffset),{left:c,top:u,pos:a=r.RealPosition.center};case r.Position.right:return a=r.RealPosition.right,(c=t.right+window.pageXOffset+o)+i>window.innerWidth+window.pageXOffset?l(t,r.Position.left,i,n,o,++s):{left:c,top:u,pos:a};case r.Position.left:return a=r.RealPosition.left,(c=window.pageXOffset+t.left-i-o)<0?l(t,r.Position.right,i,n,o,++s):{left:c,top:u,pos:a};case r.Position.top:return a=r.RealPosition.top,(c=window.pageXOffset+t.left+(t.width-i)/2)+i>window.innerWidth+window.pageXOffset?c=window.innerWidth+window.pageXOffset-i:c<0&&(c=0),t.top<n?l(t,r.Position.bottom,i,n,o,++s):{left:c,top:u=window.pageYOffset+t.top-n-o,pos:a};case r.Position.bottom:default:return(c=window.pageXOffset+t.left+(t.width-i)/2)+i>window.innerWidth+window.pageXOffset?c=window.innerWidth+window.pageXOffset-i:c<0&&(c=0),a=r.RealPosition.bottom,(u=window.pageYOffset+t.bottom+o)+n>window.innerHeight+window.pageYOffset?l(t,r.Position.top,i,n,o,++s):{left:c,top:u,pos:a}}}e.findPosition=l;var c=document.createElement("div"),u=document.createElement("span");u.className="dhx_tooltip__text",c.appendChild(u),c.setAttribute("role","tooltip"),c.style.position="absolute";var d,h=null,f=!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,i,n,o,s,a){void 0===n&&(n=""),void 0===o&&(o=!1),void 0===s&&(s=8);var d=t.getBoundingClientRect();a?u.innerHTML=e:u.textContent=e,c.style.left=null,c.style.top=null,document.body.appendChild(c),c.className="dhx_widget dhx_tooltip ".concat(o?" dhx_tooltip--forced":""," ").concat(n);var h=c.getBoundingClientRect(),p=l(d,i,h.width,h.height,s),v=p.left,_=p.top,m=p.pos,y=g(t);switch(y&&(c.style.zIndex=y.toString()),m){case r.RealPosition.bottom:case r.RealPosition.top:case r.RealPosition.left:case r.RealPosition.right:case r.RealPosition.center:c.style.left=v+"px",c.style.top=_+"px"}c.className+=" dhx_tooltip--".concat(m),f=!0,o||setTimeout((function(){c.className+=" dhx_tooltip--animate"}))}function m(t,e,i){var n=i.force,o=i.showDelay,l=i.hideDelay,u=i.position,g=i.css,m=i.htmlEnable,y=i.margin;n||(v=setTimeout((function(){_(t,e,u||r.Position.bottom,g,!1,y,m)}),o||s));var b=function(){var e;f&&(e=l,h&&(p=setTimeout((function(){document.body.removeChild(c),f=!1,p=null}),e||a))),clearTimeout(v),t.removeEventListener("mouseleave",b),t.removeEventListener("blur",b),document.removeEventListener("mousedown",b),h=null,d=null};n&&_(t,e,u,g,n,y,m),t.addEventListener("mouseleave",b),t.addEventListener("blur",b),document.addEventListener("mousedown",b),d=b}function y(t,e){var i=(0,o.toNode)(e.node);i!==h&&(d&&(d(),d=null),h=i,p?(clearTimeout(p),p=null,m(i,t,n(n({},e),{force:!0}))):m(i,t,e))}function b(t){var e=(0,o.locateNode)(t,"dhx_tooltip_text");e&&y(e.getAttribute("dhx_tooltip_text"),{position:e.getAttribute("dhx_tooltip_position")||r.Position.bottom,node:e})}e.getZIndex=g,e.tooltip=y,e.enableTooltip=function(){document.addEventListener("mousemove",b)},e.disableTooltip=function(){document.removeEventListener("mousemove",b)}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Toolbar=void 0;var s=i(1),a=i(0),l=i(3),c=i(12),u=i(20),d=function(t){function e(e,i){var n=t.call(this,e,(0,s.extend)({navigationType:"click",$name:"toolbar"},i))||this;n._currentRoot=null;return n.mount(e,(0,a.create)({render:function(){return n._draw(e)}})),n}return o(e,t),e.prototype.getState=function(t){if(!(0,s.isDefined)(t)||this.data.getItem(t)){var e={};for(var i in this.data.eachChild(this.data.getRoot(),(function(t){t.twoState&&!t.group?e[t.id]=t.active:"input"!==t.type&&"selectButton"!==t.type&&"datePicker"!==t.type||(e[t.id]=t.value)}),!1),this._groups)this._groups[i].active&&(e[i]=this._groups[i].active);return(0,s.isId)(t)?e[t]:e}},e.prototype.setState=function(t){var e,i=function(i){if(n._groups&&n._groups[i])n._groups[i].active&&(n.data.update(n._groups[i].active,{active:!1}),n._groups[i].active=t[i],n.data.update(t[i],{active:!0}));else{var o=n.data.getItem(i);switch(o.type){case"input":n.data.update(i,{value:t[i]});break;case"selectButton":var r=null===(e=o.items)||void 0===e?void 0:e.find((function(e){return e.value===t[i]}));n.data.update(i,{value:t[i],icon:null==r?void 0:r.icon});break;case"datePicker":o.$calendar?t[i]?o.$calendar.setValue(t[i]):o.$calendar.clear():n.data.update(i,{value:t[i]});break;default:n.data.update(i,{active:t[i]})}}},n=this;for(var o in t)i(o)},e.prototype.setFocus=function(t){if(this.data.getItem(t)&&"input"===this.data.getItem(t).type){var e=this.getRootNode().querySelector('[data-dhx-id="'.concat(t,'"]'));e&&e.focus()}},e.prototype._customHandlers=function(){var t=this;return{input:function(e){var i=(0,l.locate)(e),n=t.data.getItem(i);if(n){var o=e.target.value;t.data.update(i,{value:o}),"input"===n.type&&t.events.fire(u.NavigationBarEvents.input,[i,o])}},tooltip:function(e){var i=(0,l.locateNode)(e);if(i){var n=i.getAttribute("data-dhx-id"),o=t.data.getItem(n);(null==o?void 0:o.tooltip)&&(0,c.tooltip)(o.tooltip,{node:i,position:c.Position.bottom})}}}},e.prototype._getFactory=function(){return(0,u.createFactory)({widget:this,defaultType:"navItem",allowedTypes:["button","imageButton","selectButton","navItem","menuItem","separator","spacer","title","input","customHTML","datePicker","customHTMLButton"],widgetName:"toolbar"})},e.prototype._draw=function(t){var e=this,i=this.data.getLength()?this.data.reduce((function(t,e){switch(e.type){case"title":return t||20;case"button":return"small"===e.size&&(!t||t<=28)?28:t||32;default:return 32}}),0)+24:null;return(0,a.el)("nav.dhx_widget.dhx_toolbar",{style:{height:i},class:this.config.css?this.config.css:""},[(0,a.el)("ul.dhx_navbar.dhx_navbar--horizontal",r(r({"data-dhx-widget-id":this._uid,tabindex:0},function(t){return{role:"toolbar","aria-label":t||""}}(t)),{onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,oninput:this._handlers.input,onmouseover:this._handlers.tooltip,onkeydown:this._handlers.onkeydown,onmousemove:this._handlers.onmousemove,onmouseleave:this._handlers.onmouseleave,_hooks:{didInsert:function(t){t.el.addEventListener("keyup",(function(t){if(9===t.which){var i=(0,l.locateNode)(document.activeElement);if(i){var n=i.getAttribute("data-dhx-id"),o=e.data.getItem(n);(null==o?void 0:o.tooltip)&&(0,c.tooltip)(o.tooltip,{node:i,position:c.Position.bottom,force:!0})}}}),!0)}}}),this.data.map((function(t){return e._factory(t)}),this.data.getRoot(),!1))])},e.prototype._getMode=function(t,e){return t.id===e?"bottom":"right"},e.prototype._close=function(e){this._activePosition=null,this._currentRoot=null,t.prototype._close.call(this,e)},e.prototype._setRoot=function(t){this.data.getParent(t)===this.data.getRoot()&&(this._currentRoot=t)},e}(u.Navbar);e.Toolbar=d},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.PopupEvents=void 0,function(t){t.beforeHide="beforeHide",t.beforeShow="beforeShow",t.afterHide="afterHide",t.afterShow="afterShow",t.click="click"}(n||(e.PopupEvents=n={}))},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.SliderEvents=void 0,function(t){t.beforeChange="beforeChange",t.change="change",t.focus="focus",t.blur="blur",t.keydown="keydown",t.mousedown="mousedown",t.mouseup="mouseup"}(n||(e.SliderEvents=n={}))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={hours:"Hours",minutes:"Minutes",save:"Save"}},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.TimepickerEvents=void 0,function(t){t.beforeChange="beforeChange",t.change="change",t.beforeApply="beforeApply",t.afterApply="afterApply",t.beforeClose="beforeClose",t.afterClose="afterClose",t.apply="apply",t.close="close",t.save="save"}(n||(e.TimepickerEvents=n={}))},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.CalendarEvents=void 0,function(t){t.change="change",t.beforeChange="beforechange",t.modeChange="modeChange",t.monthSelected="monthSelected",t.yearSelected="yearSelected",t.cancelClick="cancelClick",t.dateMouseOver="dateMouseOver",t.dateHover="dateHover"}(n||(e.CalendarEvents=n={}))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.List=e.MOVE_DOWN=e.MOVE_UP=void 0;var a=i(1),l=i(7),c=i(0),u=i(14),d=i(28),h=i(9),f=i(74),p=i(3),v=i(49),g=i(160);e.MOVE_UP=1,e.MOVE_DOWN=2;var _=function(t){function i(e,i){void 0===i&&(i={});var n=this,o=i.itemHeight||(i.virtual?37:null);o&&"number"==typeof o&&(o=o.toString()+"px"),(n=t.call(this,e,(0,a.extend)({itemHeight:o,keyNavigation:!0,editable:!1,selection:!0,htmlEnable:!0},i))||this)._destructed=!1,n._touch={duration:350,dblDuration:300,timer:null,start:!1,timeStamp:null};var r=n.config.data;r instanceof l.DataCollection?(n.data=r,n.events=r.events):(n.data=new l.DataCollection({}),n.events=n.data.events,r&&n.data.parse(r)),n.selection=new f.Selection({disabled:!n.config.selection,multiselection:n.config.multiselection},n.data,n.events),n.config.keyNavigation&&(n.keyManager=new u.KeyManager((function(t,e){return e==n._uid&&(!n._edited||n._edited&&"escape"!==t.key)})),n._initHotKey()),n.events.on(l.DataEvents.change,(function(t,e,i){"setPage"===e&&n.scrollTo(n.data.getId(i[0])),n.paint()})),n.events.on(l.DataEvents.filter,(function(){n.paint()})),n.events.on(d.SelectionEvents.afterUnSelect,(function(){return n.paint()})),n.events.on(d.SelectionEvents.afterSelect,(function(t){(0,a.isId)(t)&&n.config.selection&&n.setFocus(t),n.paint()})),n.events.on(v.ListEvents.afterEditEnd,n.editEnd.bind(n));var s=function(t){return function(e){n.data.setMeta(n.data.getItem(e.target),"drop",t),n.paint()}};n.events.on(l.DragEvents.canDrop,s(!0)),n.events.on(l.DragEvents.cancelDrop,s(!1));var h=function(t){return function(e){e.source.map((function(e){return n.data.setMeta(n.data.getItem(e),"drag",t)})),n.paint()}};n.events.on(l.DragEvents.dragStart,h(!0)),n.events.on(l.DragEvents.afterDrag,h(!1)),n._handlers={onmousedown:function(t){n._dragStart(t)},ontouchstart:function(t){(n._touch.timer=setTimeout((function(){n._dragStart(t)}),n._touch.duration),n._touch.timeStamp)?(n._touch.dblDuration>=n._touch.timeStamp-+t.timeStamp.toFixed()&&(t.preventDefault(),n._dblClick(t)),n._touch.timeStamp=null):n._touch.timeStamp=+t.timeStamp.toFixed();setTimeout((function(){n._touch.timeStamp=null}),n._touch.dblDuration)},ontouchmove:function(t){n._touch.start&&t.preventDefault(),n._clearTouchTimer()},ontouchend:function(){n._touch.start=!1,n._clearTouchTimer()},ondragstart:function(){return!(n.config.dragMode&&!n._edited)&&null},oncontextmenu:function(t){var e,i=null===(e=n.data.getItem((0,p.locate)(t)))||void 0===e?void 0:e.id;(0,a.isId)(i)&&n.events.fire(v.ListEvents.itemRightClick,[i,t])},onclick:function(t){var e,i=null===(e=n.data.getItem((0,p.locate)(t)))||void 0===e?void 0:e.id;(0,a.isId)(i)&&(n.selection.add(i,t.ctrlKey||t.metaKey,t.shiftKey),n.config.selection&&(n._focus=i),n.events.fire(v.ListEvents.click,[i,t]),n.paint())},ondblclick:function(t){n._dblClick(t)},onscroll:function(t){n.config.virtual&&(n._topOffset=t.target.scrollTop,n._visibleHeight=t.target.offsetHeight,n.paint())},onmouseover:function(t){var e,i=null===(e=n.data.getItem((0,p.locate)(t)))||void 0===e?void 0:e.id;(0,a.isId)(i)&&(i!==(0,p.locate)(t.relatedTarget)&&n.events.fire(v.ListEvents.itemMouseOver,[i,t]))}};var g=n.config.eventHandlers;if(g)for(var _=0,m=Object.entries(g);_<m.length;_++){var y=m[_],b=y[0],w=y[1];n._handlers[b]=(0,p.eventHandler)((function(t){return(0,p.locate)(t)}),w,n._handlers[b])}n.config.dragMode&&l.dragManager.setItem(n._uid,n),n._topOffset=n._visibleHeight=0;var x=(0,c.create)({render:function(){return n._destructed?(0,c.el)("div"):n._renderList()},hooks:{didMount:function(t){n.config.virtual&&(n._visibleHeight=t.node.el.offsetHeight)},didRedraw:function(t){return n._didRedraw(t)}}});return n.mount(e,x),n}return o(i,t),i.prototype._didRedraw=function(t){},i.prototype._dblClick=function(t){var e,i=(0,p.locate)(t);i&&(i=null===(e=this.data.getItem(i))||void 0===e?void 0:e.id,this.config.editable&&this.editItem(i),this.events.fire(v.ListEvents.doubleClick,[i,t]))},i.prototype._clearTouchTimer=function(){this._touch.timer&&(clearTimeout(this._touch.timer),this._touch.timer=null)},i.prototype._dragStart=function(t){var e=this;this._touch.start=!0;var i=[],n=(0,p.locateNode)(t,"data-dhx-id"),o=n&&n.getAttribute("data-dhx-id"),r=this.selection.getId();return this.config.multiselection&&r instanceof Array&&(r.map((function(t){t!==o&&e.getRootView().refs[t]&&i.push(e.getRootView().refs[t].el)})),r=s([],r,!0)),"string"==typeof r&&(r=[r]),this.config.dragMode&&!this._edited?l.dragManager.onMouseDown(t,r||[o],i):null},i.prototype.disableSelection=function(){this.selection.disable()},i.prototype.enableSelection=function(){this.selection.enable()},i.prototype.editItem=function(t){this._edited=t,this.data.getItem(this._edited)&&this.events.fire(v.ListEvents.beforeEditStart,[t])?(this.paint(),this.events.fire(v.ListEvents.afterEditStart,[t])):this._edited=null},i.prototype.editEnd=function(t,e){if(this._edited){if(null!==t){var i=this.data.getItem(e);this.data.update(e,r(r({},i),{value:t})),this._changed=!0}this._edited=null,this.paint()}},i.prototype.getFocusItem=function(){return this.data.getItem(this._focus)},i.prototype.setFocus=function(t){this._focus!=t&&this.data.exists(t)&&(this._focus=t,this.events.fire(v.ListEvents.focusChange,[this.data.getIndex(this._focus),this._focus]),this.scrollTo(t),this.paint())},i.prototype.resetFocus=function(){this._focus=void 0,this.events.fire(v.ListEvents.focusChange),this.scrollTo(this.data.getId(0)),this.paint()},i.prototype.getFocus=function(){return this._focus},i.prototype.destructor=function(){this._destructed=!0,this.events&&this.events.clear(),this.keyManager&&this.keyManager.destructor(),this.selection&&this.selection.destructor(),this.config=this.events=this.selection=this.keyManager=null,this._handlers=this._focus=this._edited=this._events=this._topOffset=this._visibleHeight=this._touch=null,this.unmount()},i.prototype.scrollTo=function(t){var e=this.getRootView();if(e&&e.node&&e.node.el&&void 0!==t){var i=this.getRootNode();this._scrollTo(t,i)}},i.prototype._scrollTo=function(t,e){if(e){var i=this.data.getIndex(t);if(-1!==i){var n=this.config.virtual,o=Math.floor(i/e.children.length)||0,r=e.children[i-e.children.length*o];if(n||r){var s=n?parseInt(this.config.itemHeight):r.clientHeight,a=n?i*s:r.offsetTop;a>=e.scrollTop+e.clientHeight-s?e.scrollTo(0,a-e.clientHeight+s):a<e.scrollTop&&e.scrollTo(0,a)}}}},i.prototype._renderItem=function(t,e){var i=function(t){t.class+=" dhx_list-item--empty"},n=this.config.itemHeight;if(t.$empty)return(0,c.el)("li",{class:"dhx_list-item",style:{height:n}});var o="";this.config.template&&(o=this.config.template(t)),t.html&&(o=t.html);var s=t.id==this._focus&&this.config.keyNavigation;if(t.id==this._edited)return(0,g.getEditor)(t,this).toHTML();var a=this.data.getMetaMap(t),l=r(r(r(r({},this._events),{class:"dhx_list-item"+(a&&a.selected?" dhx_list-item--selected":"")+(s?" dhx_list-item--focus":"")+(a&&a.drop&&!this._edited?" dhx_list-item--drophere":"")+(a&&a.drag&&!this._edited?" dhx_list-item--dragtarget":"")+(this.config.dragMode&&!this._edited?" dhx_list-item--drag":"")+(t.css?" "+t.css:""),"data-dhx-id":t.id,_ref:t.id.toString(),style:{height:n},_key:t.id}),this.getItemAriaAttrs(this,t)),{tabindex:s?0:-1});if(o)return o===t.html||this.config.htmlEnable?(l[".innerHTML"]=o,(0,c.el)("li",l)):(0,c.el)("li",l,o);if(this.config.$template)return t.value||i(l),(0,c.el)("li",l,[this.config.$template(t)]);var u=t.text||t.value;return u||i(l),this.config.htmlEnable?l[".innerHTML"]=u:l.class+=" dhx_list-item--text",this.config.htmlEnable?(0,c.el)("li",l):(0,c.el)("li",l,u)},i.prototype._renderList=function(){var t=this,e=this._getRange(),i=this.data.getRawData(e[0],e[1]).map((function(e,i){return t._renderItem(e,i)}));return this.config.virtual&&(i=s(s([(0,c.el)(".div",{style:{height:e[2]+"px"}})],i,!0),[(0,c.el)(".div",{style:{height:e[3]+"px"}})],!1)),(0,c.el)("ul.dhx_widget.dhx_list",r(r({style:{"max-height":this.config.height,position:"relative"},tabindex:0,id:this._uid,class:(this.config.css?this.config.css:"")+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":""),"data-dhx-widget-id":this._uid},this._handlers),this._getListAriaAttrs(this.config,this.data.getLength())),i)},i.prototype.moveFocus=function(t,i){var n=this.data.getLength();if(n){var o=this._focus,r=o?this.data.getIndex(o):-1;i=i||1,t===e.MOVE_DOWN?o=this.data.getId(Math.min(r+i,n-1)):t===e.MOVE_UP&&(o=this.data.getId(Math.max(r-i,0))),this.setFocus(o)}},i.prototype._getRange=function(){if(this.config.virtual){var t=this._visibleHeight||parseInt(this.config.height),e=parseInt(this.config.itemHeight),i=this.data.getRawData(0,-1).length,n=i*e,o=this._topOffset;o=Math.max(0,Math.min(o,n-t));var r=Math.floor(o/e),s=Math.min(i-r,Math.floor(t/e)+5);return this._topOffset=o,[r,s+r,r*e,n-e*(s+r)]}return[0,-1,0,0]},i.prototype._getHotkeys=function(){var t=this;return{arrowDown:function(i){t.moveFocus(e.MOVE_DOWN),t._changed&&(t._changed=!1),i.preventDefault()},arrowUp:function(i){t.moveFocus(e.MOVE_UP),t._changed&&(t._changed=!1),i.preventDefault()},escape:function(){t.editEnd(null),t._changed&&(t._changed=!1)},enter:function(e){var i;if(t._changed)t._changed=!1;else{var n=t.selection.getItem(),o=n instanceof Array?null===(i=n[0])||void 0===i?void 0:i.id:null==n?void 0:n.id;t.config.editable&&!t._edited&&(n&&o===t._focus||!n)?t.editItem(t._focus):t.selection.add(t._focus),t.events.fire(v.ListEvents.click,[t._focus,e])}},"shift+enter":function(e){t.selection.add(t._focus,!1,!0),t.events.fire(v.ListEvents.click,[t._focus,e])},"ctrl+enter":function(e){t.selection.add(t._focus,!0,!1),t.events.fire(v.ListEvents.click,[t._focus,e])},"ctrl+a":function(e){t.config.multiselection&&(e.preventDefault(),t.selection.remove(),t.data.map((function(t){return t.id})).forEach((function(e){"ctrlClick"===t.config.multiselection?t.selection.add(e,!0):t.selection.add(e)})))}}},i.prototype._initHotKey=function(){var t=this._getHotkeys();for(var e in t)this.keyManager.addHotKey(e,t[e]);for(var e in this.config.hotkeys)this.keyManager.addHotKey(e,this.config.hotkeys[e])},i.prototype.getItemAriaAttrs=function(t,e){return r(r({role:"option","aria-selected":e.id===this._focus?"true":"false"},function(t,e){return t.config.dragMode&&!t._edited?{"aria-grabbed":Boolean(e.$dragtarget&&!t._edited).toString()}:{}}(t,e)),function(t){return t.config.editable?{"aria-roledescription":"".concat(t._edited?"Press Enter to stop editing":"Double click to edit content")}:{}}(t))},i.prototype._getListAriaAttrs=function(t,e){return{role:"listbox","aria-label":"Listbox ".concat(t.title||"",", count of options = ").concat(e,".").concat(t.editable?" Content is editable.":""),"aria-multiselectable":t.selection&&t.multiselection?"true":"false","aria-readonly":t.editable?"false":"true"}},i}(h.View);e.List=_},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Selection=void 0;var n=i(28),o=i(7),r=i(1),s=function(){function t(t,e,i){var n=this;if(this.config=t,this.events=i,this._data=e,this._selected=[],this._data.events.on(o.DataEvents.removeAll,(function(){n._selected=[]})),"string"==typeof this.config.multiselection){["click","ctrlClick"].includes(this.config.multiselection)||(this.config.multiselection=!1)}this._data.events.on(o.DataEvents.beforeRemove,(function(t){if(n._nextSelection=null,1===n._selected.length){var e=n._data.getIndex(t.id),i=n._data.getLength();if(i>1){var o=i==e-1?e-1:e+1;n._nextSelection=n._data.getId(o)}}})),this._data.events.on(o.DataEvents.afterRemove,(function(t){var e=n._selected.indexOf(t.id);-1!==e&&n._selected.splice(e,1),(0,r.isId)(n._nextSelection)&&(n.add(n._nextSelection),n._nextSelection=null)}))}return t.prototype.enable=function(){this.config.disabled=!1},t.prototype.disable=function(){this.remove(),this.config.disabled=!0},t.prototype.getId=function(){return this.config.multiselection?this._selected:this._selected[0]},t.prototype.getItem=function(){var t=this;return this.config.multiselection?this._selected.map((function(e){return t._data.getItem(e)})):this._selected.length?this._data.getItem(this._selected[0]):null},t.prototype.contains=function(t){return(0,r.isId)(t)?this._selected.includes(t):this._selected.length>0},t.prototype.remove=function(t,e){var i=this;(0,r.isId)(t)?this._unselectItem(t,e):(this._selected.forEach((function(t){return i._unselectItem(t,e)})),this._selected=[])},t.prototype.add=function(t,e,i,n){var o=this;if(!this.config.disabled)if(void 0!==t){var r=this.config.multiselection;i&&this._selected.length&&r?this._addMulti(t,n):this._addSingle(t,r&&("ctrlClick"!==r||e),n)}else{var s=this._data.serialize().filter((function(t){var e=t.id;return!o._selected.includes(e)}));s.forEach((function(t){var e=t.id;o._addMulti(e,n)}))}},t.prototype.destructor=function(){var t=this;this._selected.forEach((function(e){return t._unselectItem(e,!0)}))},t.prototype._addMulti=function(t,e){var i,n=this._selected[this._selected.length-1],o=this._data.getIndex(n),r=this._data.getIndex(t);for(o>r&&(o=(i=[r,o])[0],r=i[1]);o<=r;o++){var s=this._data.getId(o);this._selectItem(s,e)}},t.prototype._addSingle=function(t,e,i){var n=this;e||this._selected.forEach((function(e){e!=t&&n._unselectItem(e)})),e&&this._selected.includes(t)?this._unselectItem(t,i):this._selectItem(t,i)},t.prototype._selectItem=function(t,e){var i=this._data.getItem(t);i&&!this._data.getMeta(i,"selected")&&(e||this.events.fire(n.SelectionEvents.beforeSelect,[t]))&&(this._selected.push(t),this._data.setMeta(i,"selected",!0),e||this.events.fire(n.SelectionEvents.afterSelect,[t]))},t.prototype._unselectItem=function(t,e){(e||this.events.fire(n.SelectionEvents.beforeUnSelect,[t]))&&(this._selected=this._selected.filter((function(e){return e!==t})),this._data.setMeta(this._data.getItem(t),"selected",!1),e||this.events.fire(n.SelectionEvents.afterUnSelect,[t]))},t}();e.Selection=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.palette=e.grayShades=void 0,e.grayShades=["#000000","#4C4C4C","#666666","#808080","#999999","#B3B3B3","#CCCCCC","#E6E6E6","#F2F2F2","#FFFFFF"],e.palette=[["#D4DAE4","#B0B8CD","#949DB1","#727A8C","#5E6677","#3F4757","#1D2534"],["#FFCDD2","#FE9998","#F35C4E","#E94633","#D73C2D","#CA3626","#BB2B1A"],["#F9E6AD","#F4D679","#EDB90F","#EAA100","#EA8F00","#EA7E00","#EA5D00"],["#BCE4CE","#90D2AF","#33B579","#36955F","#247346","#1D5B38","#17492D"],["#BDF0E9","#92E7DC","#02D7C5","#11B3A5","#018B80","#026B60","#024F43"],["#B3E5FC","#81D4FA","#29B6F6","#039BE5","#0288D1","#0277BD","#01579B"],["#AEC1FF","#88A3F9","#5874CD","#2349AE","#163FA2","#083596","#002381"],["#C5C0DA","#9F97C1","#7E6BAD","#584A8F","#4F4083","#473776","#3A265F"],["#D6BDCC","#C492AC","#A9537C","#963A64","#81355A","#6E3051","#4C2640"],["#D2C5C1","#B4A09A","#826358","#624339","#5D4037","#4E342E","#3E2723"]]},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.ColorpickerEvents=void 0,function(t){t.beforeChange="beforeChange",t.change="change",t.apply="apply",t.cancelClick="cancelClick",t.modeChange="modeChange",t.selectClick="selectClick",t.colorChange="colorChange",t.viewChange="viewChange"}(n||(e.ColorpickerEvents=n={}))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Chart=void 0;var s=i(0),a=i(2),l=i(9),c=i(7),u=i(167),d=i(78),h=i(25),f=i(170),p=i(80),v=i(85),g=i(5),_=i(184),m=i(1),y=i(185),b=function(t){function e(e,i){void 0===i&&(i={});var n,o=this;(o=t.call(this,null,i)||this)._width=0,o._height=0,o._left=0,o._top=0;var l={};i.maxPoints&&(l.approximate={value:null===(n=i.series)||void 0===n?void 0:n.map((function(t){return t.value})),maxNum:i.maxPoints}),Array.isArray(i.data)?(o.events=new a.EventSystem(o),o.data="treeMap"===i.type?new c.TreeCollection(l,o.events):new c.DataCollection(l,o.events),o.data.parse(i.data)):i.data&&i.data.events?(o.data=i.data,o.events=o.data.events,o.events.context=o):(o.events=new a.EventSystem(o),o.data="treeMap"===i.type?new c.TreeCollection(l,o.events):new c.DataCollection(l,o.events)),o._globalHTMLHandlers={onmousemove:function(t){var e=o._layers.getSizes(),i=e.left,n=e.top,r=e.bottom,s=e.right,a=t.pageX,l=t.pageY,c=o.getRootView().node.el.getBoundingClientRect();o._left=c.left+window.pageXOffset,o._top=c.top+window.pageYOffset;var u=a-i-o._left,d=l-n-o._top;u>=0&&u<=o._width-s-i&&d>=0&&d<=o._height-r-n?o.events.fire(h.ChartEvents.chartMouseMove,[u,d,o._left+i,o._top+n]):o.events.fire(h.ChartEvents.chartMouseLeave)},onmouseleave:function(){return o.events.fire(h.ChartEvents.chartMouseLeave)}},o._layers=new u.ComposeLayer,o.setConfig(i),o._initEvents(),o._tooltip=new _.Tooltip(o);var d=(0,s.create)({render:function(){if(!o.data.getLength())return(0,s.el)("div");var t=function(t){var e=o._scales,i=t.series,n=t.type;n||(n=i&&i.length&&i[0]&&i[0].type||"");var r="".concat(n||""," chart."),s=function(t){return t._isXDirection?"X":"Y"},a=function(t){return t.title||t.text||t.value||""},l=function(t){return t.steps&&t.steps.length?t.steps[0]:t.min||0},c=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 i=e[t],n=i._axis||i.config;if("radial"===t){var o=i._data._order;r+=" X scale ".concat(a(i.config),": ").concat(t," axis from ").concat(u(i.config.value,o[0])," to ").concat(u(i.config.value,o[o.length-1]),"."),r+=" ".concat(s(i)," scale: axis from ").concat(l(n)," to ").concat(c(n),".")}else r+=" ".concat(s(i)," scale ").concat(a(i.config),": ").concat(t," axis from ").concat(l(n)," to ").concat(c(n),".")})),i&&i.length&&(r+=" Series:",i.forEach((function(t,e){r+=" ".concat("pie"===n||"pie3D"===n||"donut"===n?t.text:t.value),r+=e===i.length-1?".":","}))),r},e=[(0,s.resizer)((function(t,e){o._width=t,o._height=e||400;var i=o.getRootView();if(i&&i.node&&i.node.el){var n=i.node.el.getBoundingClientRect();o._left=n.left+window.pageXOffset,o._top=n.top+window.pageYOffset}o.events.fire(h.ChartEvents.resize,[o._width,o._height]),o.paint(),!document.querySelector(".dhx_widget.dhx_chart")&&o._tooltip&&o._tooltip.destructor()}))];return o._width&&o._height&&e.push(o._layers.toVDOM(o._width,o._height)),(0,s.el)(".dhx_widget.dhx_chart",r(r({class:i.css?i.css:"",onmousemove:o._globalHTMLHandlers.onmousemove,onmouseleave:o._globalHTMLHandlers.onmouseleave},function(e){return{"aria-label":t(e)}}(i)),{tabIndex:0}),e)},hooks:{didMount:function(t){t&&t.node&&t.node.parent&&t.node.parent.el&&(o._width=t.node.parent.el.offsetWidth,o._height=t.node.parent.el.offsetHeight||400,o.paint())}}});return o.mount(e,d),o.export=new y.Exporter("chart",o),o}return o(e,t),e.prototype.getSeries=function(t){return this._series[t]},e.prototype.eachSeries=function(t){var e=[];for(var i in this._series)e.push(t.call(this,this._series[i]));return e},e.prototype.destructor=function(){this._tooltip.destructor(),this.events.clear(),this.unmount()},e.prototype.setConfig=function(t){var e,i,n=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 o in t.scales){var s=r({},t.scales[o]);void 0!==t.scales[o].min&&(i=t.scales[o].min),s.type=s.type||this._detectScaleType(s,o),t.scales.radial&&"radial"!==o&&(s.hidden=!0),this._setScale(s,o)}var a=new v.default;if(this._layers.add(a),null===(e=t.series)||void 0===e||e.forEach((function(e,o){var s,l,c,u;void 0!==e.baseLine&&e.baseLine<i&&(e.baseLine=void 0);var d=r({},e);switch(d.type=d.type||t.type,d.type){case"bar":case"xbar":case"area":case"splineArea":d.color||(d.color=d.fill||(0,g.getDefaultColor)(o)),d.fill||(d.fill=d.color||(0,g.getDefaultColor)(o));break;case"treeMap":d.legendType=(null===(s=t.legend)||void 0===s?void 0:s.type)||"groupName",null===(c=null===(l=t.legend)||void 0===l?void 0:l.treeSeries)||void 0===c||c.map((function(t,e){var i,n;t.active=null===(i=t.active)||void 0===i||i,t.id=null!==(n=t.id)&&void 0!==n?n:(0,m.uid)(),t.color||(t.color=(0,g.getDefaultColor)(e,"range"===d.legendType))})),d.treeSeries=null===(u=t.legend)||void 0===u?void 0:u.treeSeries;break;case"scatter":d.pointColor||(d.pointColor=d.color||(0,g.getDefaultColor)(o))}var h=p.default[d.type];(d.barWidth||n.config.barWidth)&&(d.barWidth=d.barWidth||n.config.barWidth);var f=new h(n.data,d,n.events),v=(0,g.getScales)(t.scales);(v.length>1&&"radial"!==v[0]||"radial"===v[0]?v:["bottom","left"]).forEach((function(t){var e=n._scales[t];e&&(f.addScale(t,e),d.stacked?e.add(a):e.add(f))})),n._series[f.id]=f,d.stacked?a.add(f):n._layers.add(f)})),t.legend){var l=r({},t.legend);l.series&&(l.$seriesInfo=l.series.map((function(t){return n._series[t]})));var c=new d.Legend(this.data,l,this.events);this._layers.add(c)}this.paint()},e.prototype._setScale=function(t,e){if(t.type){var i=new f.default[t.type](this.data,t,e);"radial"!==i.config.type&&this._layers.add(i.scaleGrid()),this._layers.add(i),this._scales[e]=i}},e.prototype._detectScaleType=function(t,e){return"radial"===e?e:t.text?"text":"numeric"},e.prototype._initEvents=function(){var t=this;this.events.on(h.ChartEvents.toggleSeries,(function(e,i){if("treeMap"===t.config.type)Object.values(t._series)[0].toggle(e),t.paint();else if(i){var n=t._series[Object.keys(t._series)[0]];n&&(n.toggle(e),t.paint())}else t._series[e]&&(t._series[e].toggle(),t.paint())}),this),this.events.on(c.DataEvents.change,(function(){return t.paint()})),this.events.on(c.DataEvents.filter,(function(){return t.paint()}))},e}(l.View);e.Chart=b},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Legend=void 0;var o=i(7),r=i(25),s=i(0),a=i(5),l=i(169),c=i(1);var u=function(){function t(t,e,i){var s=this;this._data=t,this._events=i;this.config=n(n({},{form:"rect",itemPadding:20,halign:"right",valign:"top",direction:"row",type:"groupName"}),e),this.config.margin=e.margin||function(t,e,i,n){switch(e){case"middle":switch(t){case"right":return i?20:60;case"left":return 120;case"center":throw new Error("cant place legend on center, middle")}case"top":return 20;case"bottom":return i||"line"===n?20:60}}(this.config.halign,this.config.valign,(0,o.isTreeCollection)(this._data),this.config.form),this._handlers={onclick:function(t,e){return s._events.fire(r.ChartEvents.toggleSeries,[t,e])},onkeyup:function(t,e,i){i.preventDefault(),"Enter"!==i.key&&" "!==i.key||s._events.fire(r.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 i,o,r=this,c=this._getData(),u=this.config;u.$sizes={width:0,height:0};var d=(0,a.getFontStyle)("legend-text"),h=10,f=u.margin,p=u.itemPadding,v=[],g="middle"===u.valign,_=0,m=0,y=0,b=0;switch(c.forEach((function(e,i){if(!g&&"row"===u.direction){var o=(0,a.getTextWidth)(e.text,d);_+o+15>t&&0!==i&&(_=0,m+=p+2)}v.push((0,s.sv)("g",n(n({transform:"translate(".concat(_,",").concat(m,")"),onclick:[r._handlers.onclick,e.id,r.config.values],onkeyup:[r._handlers.onkeyup,e.id,r.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,s.sv)("text",{x:e.maxValue?0:10,y:0,class:"start-text legend-text"},[(0,a.verticalCenteredText)(e.text)]),[(0,l.legendShape)(u.form,e),!isNaN(e.maxValue)&&!isNaN(e.minValue)&&(0,l.legendTicks)(u.form,e)]]));var c="line"!==u.form?15+(0,a.getTextWidth)(e.text,d):0;g||"row"!==u.direction?(_=0,y=y>c?y:c,b=b>(m+=p+2)?b:m):y=y>(_+=c+p)?y:_})),u.valign){case"top":o="row"===u.direction?-f-m-5-("line"===u.form?15:0):"center"===u.halign?5-b:f+5;break;case"middle":o=(e-b)/2+p/2;break;case"bottom":o="row"===u.direction?e+("line"!==u.form?f:10):e+h-("center"===u.halign?0:f+b)}switch(u.halign){case"left":i=g?-y:5-("row"===u.direction?0:u.size||200);break;case"center":i=(t-y-("line"===u.form?500:0))/2;break;case"right":i=g?t+f+5:"row"===u.direction?t-y+p+("line"===u.form?-500-f:5):t+f+5}return(0,s.sv)("g",{transform:"translate(".concat(i>0?i:0,", ").concat(o,")"),"aria-label":"Legend",tabindex:0},v)},t.prototype._getData=function(){var t=[];if("scale"===this.config.type){var e=this.config.values,i=e.color,n=e.positiveColor,o=e.negativeColor,r=e.text,s=e.minValue,l=e.maxValue,u=e.tick,d=e.majorTick,h=e.step,f=e.tickTemplate,p=this.setCriticals(),v=p[0],g=p[1];t.push({id:(0,c.uid)(),text:r,alpha:1,fill:i,minValue:null!=s?s:v,maxValue:null!=l?l:g,positiveColor:n,negativeColor:o,active:!0,tick:u,majorTick:d,step:h,tickTemplate:f})}else if(this.config.values){var _=(0,a.locator)(this.config.values.text),m=(0,a.locator)(this.config.values.color);this._data.map((function(e,i){t.push({id:e.id,text:_(e).toString(),alpha:1,fill:m(e).toString()||(0,a.getDefaultColor)(i),active:!e.$hidden})}))}else if(this.config.treeSeries){var y=this.config.treeSeries;if("groupName"===this.config.type)y.forEach((function(e){t.push({id:e.id,text:e.name||e.id,alpha:1,fill:e.color,active:e.active})}));else{var b=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};y.forEach((function(e){t.push({id:e.id,text:b(e),alpha:1,fill:e.color,active:e.active})}))}}else for(var w=0,x=y=this.config.$seriesInfo;w<x.length;w++){var E=x[w],C=E.config,S=C.fill,k=(i=C.color,C.id),O=C.alpha,P=C.active,I=C.label,D=C.value,M=S&&i;r=I&&"function"==typeof I?I(E.config):I||D;t.push({id:k,text:r,fill:S||i,color:M&&i,active:P,alpha:O})}return t},t.prototype.setCriticals=function(){var t,e,i=this.config.values.value;return this._data.forEach((function(n){n[i]&&(t=!t||n[i]<t?n[i]:t,e=!e||n[i]>e?n[i]: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,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.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 o=i(1),r=i(0),s=i(5),a=function(t){return t.toString()},l=function(t,e){return{role:"graphics-object","aria-label":"".concat(t,"-axis").concat(e?", "+e:"")}};e.bottom=function(t,e,i,c){var u=e.title,d=e.textPadding,h=e.scalePadding,f=e.textTemplate,p=e.showText,v=e.scaleRotate,g=f||a,_=[],m=0;if(p){m=d;var y=v&&!isNaN(v),b=c+d;_=t.map((function(t){var e=t[0],i=y?"rotate(".concat(v," ").concat(e," ").concat(b,")"):"",n=["scale-text","top-text"];if(y){var o=v%360;n.push((0,s.getClassesForRotateScale)("bottom",o))}return(0,r.sv)("text",{x:e,y:b,class:n.join(" "),transform:i},[(0,s.verticalCenteredText)(g(t[1]))])}))}var w=(0,o.uid)(),x=null,E=(0,r.sv)("path",{class:"main-scale",d:"M0 ".concat(c," H").concat(i-.5),id:w});return u&&(x=(0,r.sv)("text",{dx:i/2,dy:h+m},[(0,r.sv)("textPath",{href:"#".concat(w),class:"scale-title "},u)])),(0,r.sv)("g",n({},l("x",u||e.text)),[E,x].concat(_))},e.bottomGrid=function(t,e,i,n){for(var o=n.dashed,s=n.grid,a=n.targetLine,l=n.targetValue,c=t.length,u=[],d="grid-line ".concat(o?"dash-line":""," ").concat(s?"":"hidden-line"),h=0;h<c;h++)if(0!==h||0!==t[h][0]||n.hidden)if(h!==a){var f="M".concat(t[h][0]," 0 V ").concat(i),p=(0,r.sv)("path",{d:f,class:d,_ref:"line"+Math.round(t[h][0])});if(u.push(p),h===c-1&&t[h][0]!==e){var v="M".concat(e," 0 V ").concat(i),g=(0,r.sv)("path",{d:v,class:d});u.push(g)}}else{var _="M".concat(t[h][0]," 0 V ").concat(i),m=(0,r.sv)("path",{d:_,class:"".concat(d," spec-grid-line")});u.push(m)}if(l){f="M".concat(l*e," 0 V ").concat(i),p=(0,r.sv)("path",{d:f,class:"".concat(d," spec-grid-line")});u.push(p)}return(0,r.sv)("g",u)},e.top=function(t,e,i,c){var u=e.title,d=e.textPadding,h=e.scalePadding,f=e.textTemplate,p=e.showText,v=e.scaleRotate,g=f||a,_=[],m=0;if(p){m=d;var y=v&&!isNaN(v),b=-d;_=t.map((function(t){var e=["scale-text"],i=t[0],n=y?"rotate(".concat(v," ").concat(i," ").concat(b,")"):"";if(y){var o=v%360;e.push((0,s.getClassesForRotateScale)("top",o))}return(0,r.sv)("text",{x:i,y:b,class:e.join(" "),transform:n},[(0,s.verticalCenteredText)(g(t[1]))])}))}var w=(0,o.uid)(),x=(0,r.sv)("path",{d:"M0 0 H".concat(i),class:"main-scale",id:w}),E=null;return u&&(E=(0,r.sv)("text",{dx:i/2,dy:-h-m},[(0,r.sv)("textPath",{href:"#".concat(w),class:"scale-title"},u)])),(0,r.sv)("g",n({},l("x",u||e.text)),[x,E].concat(_))},e.topGrid=function(t,e,i,n){for(var o=n.dashed,s=n.grid,a=n.targetLine,l=t.length,c=[],u="grid-line ".concat(o?"dash-line":""," ").concat(s?"":"hidden-line"),d=0;d<l;d++)if(0!==d||0!==t[d][0]||n.hidden)if(d!==a){var h="M".concat(t[d][0]," 0 V ").concat(i),f=(0,r.sv)("path",{d:h,class:u,_ref:"line"+Math.round(t[d][0])});if(c.push(f),d===l-1&&0!==t[d][0]){var p="M0 0 V ".concat(i),v=(0,r.sv)("path",{d:p,class:u});c.push(v)}}else{var g="M".concat(t[d][0]," 0 V ").concat(i),_=(0,r.sv)("path",{d:g,class:"".concat(u," spec-grid-line")});c.push(_)}return(0,r.sv)("g",c)},e.left=function(t,e,i,c){var u=e.title,d=e.textPadding,h=e.scalePadding,f=e.textTemplate,p=e.showText,v=e.scaleRotate,g=f||a,_=[],m=0;if(p){var y=(0,s.getFontStyle)("scale-text"),b=0,w=v&&!isNaN(v);_=t.map((function(t){var e=t[0],i=-d,n=w?"rotate(".concat(v," ").concat(i," ").concat(e,")"):"",o=["scale-text"],a=g(t[1]);if(u){var l=(0,s.getTextWidth)(a,y);b<l&&(b=l)}if(w){var c=v%360;o.push((0,s.getClassesForRotateScale)("left",c))}else o.push("end-text");return(0,r.sv)("text",{x:i,y:e,class:o.join(" "),transform:n},[(0,s.verticalCenteredText)(a)])})),m=b+d}var x=(0,o.uid)(),E=(0,r.sv)("path",{class:"main-scale",d:"M0 ".concat(c," V 0.5"),id:x,_ref:t.length?"line0":null}),C=null;return u&&(C=(0,r.sv)("text",{dx:c/2,dy:-h-m},[(0,r.sv)("textPath",{href:"#".concat(x),class:"scale-title"},u)])),(0,r.sv)("g",n({},l("y",u||e.text)),[E,C].concat(_))},e.leftGrid=function(t,e,i,n){for(var o=n.dashed,s=n.grid,a=n.targetLine,l=n.targetValue,c=t.length,u=[],d="grid-line ".concat(o?"dash-line":""),h=0;h<c;h++)if(0!==h||t[h][0]!==i||n.hidden)if(a!==h){if(s){v="M0 ".concat(t[h][0]," H ").concat(e),g=(0,r.sv)("path",{d:v,class:d});if(u.push(g),h===c-1&&t[h][0]!==e){var f="M0 0 H".concat(e),p=(0,r.sv)("path",{d:f,class:d});u.push(p)}}}else{var v="M0 ".concat(t[h][0]," H ").concat(e),g=(0,r.sv)("path",{d:v,class:"".concat(d," spec-grid-line")});u.push(g)}if(l){v="M0 ".concat(l*i," H ").concat(e),g=(0,r.sv)("path",{d:v,class:"".concat(d," spec-grid-line")});u.push(g)}return(0,r.sv)("g",u)},e.right=function(t,e,i,c){var u=e.title,d=e.textPadding,h=e.scalePadding,f=e.textTemplate,p=e.showText,v=e.scaleRotate,g=f||a,_=[],m=0;if(p){var y=(0,s.getFontStyle)("scale-text"),b=0,w=v&&!isNaN(v);_=t.map((function(t){var e=g(t[1]),n=t[0],o=i+d,a=w?"rotate(".concat(v," ").concat(o," ").concat(n,")"):"",l=["scale-text"];if(u){var c=(0,s.getTextWidth)(e,y);b<c&&(b=c)}if(w){var h=v%360;l.push((0,s.getClassesForRotateScale)("right",h))}else l.push("start-text");return(0,r.sv)("text",{x:o,y:n,class:l.join(" "),transform:a},[(0,s.verticalCenteredText)(e)])})),m=d+b}var x=(0,o.uid)(),E=(0,r.sv)("path",{d:"M".concat(i," ").concat(c," V 0"),class:"main-scale",id:x,_ref:t.length?"line0":null}),C=null;return u&&(C=(0,r.sv)("text",{dx:c/2,dy:h+m},[(0,r.sv)("textPath",{href:"#".concat(x),class:"scale-title"},u)])),(0,r.sv)("g",n({},l("y",u||e.text)),[E,C].concat(_))},e.rightGrid=function(t,e,i,n){for(var o=n.dashed,s=n.grid,a=n.targetLine,l=t.length,c=[],u="grid-line ".concat(o?"dash-line":""),d=0;d<l;d++)if(0!==d||t[d][0]!==i||n.hidden)if(a!==d){if(s){p="M0 ".concat(t[d][0]," H ").concat(e),v=(0,r.sv)("path",{d:p,class:u});if(c.push(v),d===l-1&&t[d][0]!==e){var h="M0 0 H".concat(e),f=(0,r.sv)("path",{d:h,class:u});c.push(f)}}}else{var p="M0 ".concat(t[d][0]," H ").concat(e),v=(0,r.sv)("path",{d:p,class:"".concat(u," spec-grid-line")});c.push(v)}return(0,r.sv)("g",c)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(81),o=i(83),r=i(174),s=i(175),a=i(56),l=i(176),c=i(177),u=i(178),d=i(179),h=i(180),f=i(181),p=i(182),v=i(183),g={line:a.default,spline:h.default,area:n.default,splineArea:f.default,scatter:d.default,pie:l.default,pie3D:c.default,donut:s.default,radar:u.default,bar:o.default,xbar:r.default,treeMap:p.default,calendarHeatMap:v.default};e.default=g},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),a=i(5),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.paint=function(e,i,n){t.prototype.paint.call(this,e,i);var o,a=[];return this._form(e,i,a,n),this._markers(a),(0,s.sv)("g",r(r({class:"seria",_key:this.id},(o=this.config,{"aria-label":"chart ".concat(o.value||"")})),{tabindex:0}),a)},e.prototype.paintformAndMarkers=function(e,i,n){t.prototype.paint.call(this,e,i);var o=[],r=[];return this._form(e,i,o,n),this._markers(r),[(0,s.sv)("g",{class:"seria",_key:this.id},o),(0,s.sv)("g",{class:"seria_markers",_key:this.id+"_markers"},r)]},e.prototype._markers=function(t){var e=this;if(this.config.pointType){var i=this.config.pointColor||this.config.color,n=this._getPointType(this.config.pointType,i);t.push.apply(t,this._points.map((function(t){return n(t[0],t[1],(0,a.calcPointRef)(t[2],e.id))})))}},e.prototype._form=function(t,e,i,n){var o="chart ".concat(this.config.type," ").concat(this.config.css||""," ").concat(this.config.dashed?"dash-line":""),r=this.config,a=r.id,l=r.fill,c=r.alpha,u=r.color,d=r.strokeWidth,h=this._points,f=h[h.length-1],p="";if(n){for(var v=n.length-1;v>=0;v--){var g=n[v];p+=v===h.length-1?"M".concat(g[0]," ").concat(g[1]," "):"L".concat(g[0]," ").concat(g[1]," ")}p+=h.map((function(t,e){return e?"L ".concat(t[0]," ").concat(t[1]):"V ".concat(t[1])})).join(" ")+"Z"}else p+=h.map((function(t,i){return i?"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(d){var _=h.length-1,m=function(t){return t===_?-.5:t?0:.5},y=h.map((function(t,e){return e?"L".concat(t[0]+m(e)," ").concat(t[1]):"M0 ".concat(t[1]," L0 ").concat(t[1]+m(e)," L").concat(t[0]+m(e)," ").concat(t[1])})).join(" ")+"L".concat(t," ").concat(f[1]),b=(0,s.sv)("path",{d:y,"stroke-width":d,stroke:u,fill:"none",class:o});i.push(b)}var w=(0,s.sv)("path",{id:"seria"+a,d:p,class:o,fill:l,_ref:a,"fill-opacity":c,stroke:"none"});return i.push(w),i},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=r(r({},e),t);var i=this.config.pointType,n=this.config.pointColor||this.config.color;i&&(this._drawPointType=this._getPointType(i,n))},e}(i(54).default);e.default=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShadeHTMLHelper=e.getShadeHelper=e.getHTMLHelper=e.getHelper=void 0;var n=i(0),o=i(5),r={circle:function(t,e,i,o,r,s){var a={_ref:s,cx:o,cy:r,r:4,class:"figure point-circle",fill:e,stroke:t,"stroke-width":2};return(0,n.sv)("circle",a)},rect:function(t,e,i,o,r,s){var a={_ref:s,x:o-4,y:r-4,width:8,height:8,class:"figure point-rect",fill:e,stroke:t,"stroke-width":2};return(0,n.sv)("rect",a)},rhombus:function(t,e,i,o,r,s){var a={_ref:s,points:"".concat(o-5,",").concat(r," ").concat(o,",").concat(r+5," ").concat(o+5,",").concat(r," ").concat(o,",").concat(r-5),class:"figure point-rhombus",fill:e,stroke:t,"stroke-width":2};return(0,n.sv)("polygon",a)},triangle:function(t,e,i,o,r,s){var a={_ref:s,points:"".concat(o,",").concat(r-5," ").concat(o+5,",").concat(r+5," ").concat(o-5,",").concat(r+5),class:"figure point-triangle",fill:e,stroke:t,"stroke-width":2};return(0,n.sv)("polygon",a)},simpleCircle:function(t,e,i,o,r,s){var a={_ref:s,cx:o,cy:r,r:3,class:"figure point-simple-circle",fill:t};return(0,n.sv)("circle",a)},simpleRect:function(t,e,i,o,r,s){var a={_ref:s,x:o-3,y:r-3,width:6,height:6,class:"figure point-simple-rect",fill:t};return(0,n.sv)("rect",a)},empty:function(){return null}},s={circle:function(t,e,i,n,o,r){return'<circle class="figure point-circle" _ref="'.concat(r,'" cx="').concat(n,'" cy="').concat(o,'" r="4" fill="').concat(e,'" stroke="').concat(t,'" stroke-width="2"/>')},rect:function(t,e,i,n,o,r){return'<rect _ref="'.concat(r,'" x="').concat(n-4,'" y="').concat(o-4,'" width="8" height="8" class="figure point-rect" fill="').concat(e,'" stroke="').concat(t,'" stroke-width="2"/>')},rhombus:function(t,e,i,n,o,r){return'<polygon _ref="'.concat(r,'" points="').concat(n-5,",").concat(o," ").concat(n,",").concat(o+5," ").concat(n+5,",").concat(o," ").concat(n,",").concat(o-5,'" class="figure point-rhombus" fill="').concat(e,'" stroke="').concat(t,'" stroke-width="2"/>')},triangle:function(t,e,i,n,o,r){return'<polygon _ref="'.concat(r,'" points="').concat(n,",").concat(o-5," ").concat(n+5,",").concat(o+5," ").concat(n-5,",").concat(o+5,'" class="figure point-triangle" fill="').concat(e,'" stroke="').concat(t,'" stroke-width="2"/>')},simpleCircle:function(t,e,i,n,o,r){return'<circle _ref="'.concat(r,'" cx="').concat(n,'" cy="').concat(o,'" r="3" class="figure point-simple-circle" fill="').concat(t,'"/>')},simpleRect:function(t,e,i,n,o,r){return'<rect _ref="id" x="'.concat(n-3,'" y="').concat(o-3,'" width="6" height="6" class="figure point-simple-rect" fill="').concat(t,'"/>')},empty:function(){return null}};function a(t){var e=r[t.toString()];if(!e)throw new Error("unknown point type");return e}function l(t){var e=s[t.toString()];if(!e)throw new Error("unknown point type");return e}e.getHelper=a,e.getHTMLHelper=l,e.getShadeHelper=function(t,e){var i=a(t);e=e||"none";var n=(0,o.getColorShade)(e,.2);return function(t,o,r){return i(e,n,"",t,o,r)}},e.getShadeHTMLHelper=function(t,e){var i=l(t);e=e||"none";var n=(0,o.getColorShade)(e,.2);return function(t,o,r){return i(e,n,"",t,o,r)}}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(1),a=i(0),l=i(5),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._shift=0,e}return o(e,t),e.prototype.addScale=function(e,i){t.prototype.addScale.call(this,e,i),i.addPadding()},e.prototype.seriesShift=function(t){return this._shift=t,this.config.barWidth},e.prototype.paint=function(e,i,n){t.prototype.paint.call(this,e,i);if(!this.config.active)return null;var o=[];this._gradient&&o.push((0,a.sv)("defs",[this._gradient()]));var s,l="chart ".concat(this.config.type," ").concat(this.config.css||""," ").concat(this.config.dashed?"dash-line":""),c=this._getForm(this._points,l,e,i,n);return o=o.concat(c),(0,a.sv)("g",r(r({class:"seria",_key:this.id},(s=this.config,{"aria-label":"chart ".concat(s.value||"")})),{tabindex:0}),o)},e.prototype.getTooltipType=function(t,e,i){return void 0!==this.config.baseLine&&this._baseLinePosition<i?"bot":"top"},e.prototype._getClosestDist=function(t,e,i,n){return this.config.stacked&&e<n?1/0:Math.abs(t-i)},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,i){var n=t[0],o=(e+t[1])/2;return{x:n,y:o,class:"bar-text",transform:i&&!isNaN(i)?"rotate(".concat(i," ").concat(n," ").concat(o,")"):""}},e.prototype._getForm=function(t,e,i,n,o){var s=this,c=function(t,e,i){void 0===i&&(i=0);var n=e[3],o=i,r=e[4];return i>r&&(o=r,r=i),"xbar"===t?"bar y=".concat(n,", x from ").concat(o," to ").concat(r):"bar x=".concat(n,", y from ").concat(o," to ").concat(r)},u=this.config,d=u.baseLine,h=u.fill,f=u.alpha,p=u.showText,v=u.showTextTemplate,g=u.showTextRotate,_=[],m=this._base(n),y=function(t){return o?o[t][1]:m},b=t.map((function(t,i){return(0,a.sv)("path",r(r({_key:"seria"+s.config.id+i,_ref:(0,l.calcPointRef)(t[2],s.config.id),d:s._path(t,y(i)),class:e,fill:h,onclick:[s._handlers.onclick,t[2],s.config.value],onmousemove:[s._handlers.onmousemove,t[2],s.config.id],onmouseleave:[s._handlers.onmouseleave,t[2],s.config.id],"fill-opacity":f},function(t,e,i){return{role:"graphics-symbol","aria-roledescription":"bar","aria-label":c(t,e,i)}}(s.config.type,t,d)),{tabindex:0}))}));if(_.push.apply(_,b),(p||v||g)&&!1!==p){var w=t.map((function(t,e){var i=s._getText(t);return function(t,e){return Math.abs(y(e)-t[1])>16}(t,e)?(0,a.sv)("text",r(r({},s._text(t,y(e),g)),{"aria-hidden":"true"}),[v?(0,l.verticalCenteredText)(v(i)):(0,l.verticalCenteredText)(i)]):null}));_.push.apply(_,w)}return _},e.prototype._getText=function(t){return t[4].toString()},e.prototype._setDefaults=function(t){this.config=r(r({},{barWidth:30,alpha:1,active:!0,tooltip:!0,pointType:"empty"}),t);var e=this.config.pointType,i=this.config.pointColor||this.config.color;if(e&&(this.config.pointType=e,this._drawPointType=this._getPointType(e,i)),this.config.gradient){var n="gradient"+(0,s.uid)(),o=this.config.gradient(this.config.fill);this._gradient=function(){return(0,l.linearGradient)(o,n)},this.config.fill="url(#".concat(n,")")}},e}(i(54).default);e.default=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var i,n=t.length;if(n<3)i=t;else{var o=t[0],r=t[0],s=t[1],a=t[2];i=[t[0].slice(0,2)];for(var l=1;l<n;l++)i.push([(-o[0]+6*r[0]+s[0])/6,(-o[1]+6*r[1]+s[1])/6,(r[0]+6*s[0]-a[0])/6,(r[1]+6*s[1]-a[1])/6,s[0],s[1]]),o=r,r=s,s=a,a=t[l+2]||a}var c="";for(l=0;l<i.length;l++){var u=i[l],d=u.length;l?c+=d>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===d?"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]):(c+=e?"L":"M",c+=5===d?"".concat(u[0]," ").concat(u[1]):"".concat(u[d-2]," ").concat(u[d-1]))}return c}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=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 i=e.dataReady(t);return!!i.length&&(t=i,!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,i){var o=[],r=[];return this._toPaint.forEach((function(n){if(n.paintformAndMarkers){var s=n.paintformAndMarkers(t,e,i),a=s[0],l=s[1];o.push(a),r.push(l)}else{a=n.paint(t,e,i);o.push(a)}i=n.getPoints()})),(0,n.sv)("g",o.concat(r))},t}();e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Combobox=e.$template=void 0;var s=i(1),a=i(0),l=i(2),c=i(3),u=i(187),d=i(9),h=i(7),f=i(11),p=i(37),v=i(13),g=i(188),_=i(57),m=i(28),y=i(87),b=i(88);function w(t,e){return"function"==typeof e?e(t):t+" "+_.default.selectedItems}e.$template=function(t){return t.icon?(0,a.el)("div.dhx_combobox-options-wrapper",[(0,a.el)("span",{class:"".concat(t.icon," dhx_combobox-options__icon")}),(0,a.el)("span",{class:"dhx_combobox-options__value"},t.value)]):t.src?(0,a.el)("div.dhx_combobox-options-wrapper",[(0,a.el)("img",{class:"dhx_combobox-options__image",alt:t.value,src:t.src}),(0,a.el)("span",{class:"dhx_combobox-options__value"},t.value)]):(0,a.el)("span",{class:"dhx_combobox-options__value"},t.value)};var x=function(t){function i(e,i){var n=t.call(this,e,(0,s.extend)({listHeight:224,disabled:!1,readOnly:!1,newOptions:!1,htmlEnable:!0},i))||this;n.config.itemsCount=n.config.itemsCount||n.config.showItemsCount,n.config.helpMessage=n.config.helpMessage||n.config.help,n.config.cellHeight&&36===n.config.itemHeight&&(n.config.itemHeight=n.config.cellHeight),n.config.labelInline&&(n.config.labelPosition="left"),Array.isArray(n.config.data)?(n.events=new l.EventSystem(n),n.data=new h.DataCollection({}),n.data.parse(n.config.data)):n.config.data?(n.data=n.config.data,n.events=new l.EventSystem(n),n.events.context=n):(n.events=new l.EventSystem(n),n.data=new h.DataCollection({})),n.popup=new v.Popup,n.popup.events.on(v.PopupEvents.afterShow,(function(){n.paint()})),n.popup.events.on(v.PopupEvents.afterHide,(function(){n.config.multiselection&&(n._state.value=""),n.paint()})),n.popup.events.on(v.PopupEvents.beforeHide,(function(t){t&&n._hideOptions()})),(n.config.readonly||n.config.readOnly)&&(n.config.readOnly=n.config.readOnly||n.config.readonly,n._keyListener=new g.KeyListener),n._state={value:"",ignoreNext:!1,canDelete:!1,unselectActive:!1,currentState:b.ComboState.default,creatingState:!1},n._initHandlers(),n._createLayout(),n.config.value&&n.data.getLength()&&(n._setValue(n.config.value,!0),n.config.value=""),n._initEvents();var o=(0,a.create)({render:function(){return n._draw()},hooks:{didRedraw:function(){n.popup.isVisible()&&(n.focus(),n._configurePopup())}}});return n.mount(e,o),n}return o(i,t),i.prototype.focus=function(){if(this.config.disabled)return!1;this.getRootView().refs.input.el.focus()},i.prototype.blur=function(){if(this.config.disabled)return!1;this.getRootView().refs.input.el.blur(),this.popup.hide()},i.prototype.enable=function(){this.config.disabled=!1,this.paint()},i.prototype.disable=function(){this.config.disabled=!0,this.paint()},i.prototype.isDisabled=function(){return this.config.disabled},i.prototype.clear=function(){this.list.selection.remove(),this._state.value="",this._filter(),this.paint()},i.prototype.getValue=function(t){var e=this.list.selection.getId();return t?(0,s.wrapBox)(e):Array.isArray(e)?e.join(","):e},i.prototype.setValue=function(t,e){return this._setValue(t,e)},i.prototype.addOption=function(t,e){if(void 0===e&&(e=!0),t){var i;"string"==typeof t?i=this.data.add({value:t}):"object"==typeof t&&(i=this.data.add(t));var n=this.config.multiselection&&e?r(r([],this.list.selection.getId(),!0),[i],!1):i;this.setValue(n)}},i.prototype.destructor=function(){this.popup&&this.popup.destructor(),this.events&&this.events.clear(),this.list&&this.list.destructor(),this._helper&&this._helper.destructor(),this._layout&&this._layout.destructor(),this._keyListener&&this._keyListener.destructor(),this.config=this.events=this.list=this.popup=null,this._helper=this._keyListener=this._handlers=this._state=this._uid=this._isPopupConfiqureted=null,this.unmount()},i.prototype.setState=function(t){switch(t){case"success":this._state.currentState=b.ComboState.success;break;case"error":this._state.currentState=b.ComboState.error;break;default:this._state.currentState=b.ComboState.default}this.paint()},i.prototype._setValue=function(t,e){var i=this;if(void 0===e&&(e=!1),!this._exsistId(t))return!1;if(this._filter(),this.list.selection.remove(null,e),this.config.multiselection)"string"==typeof t&&(t=t.split(",")),"number"==typeof t&&(t=[t]),t.forEach((function(t){i.list.selection.add(t,!1,!1,e)}));else{var n=(0,s.unwrapBox)(t);this.list.selection.add(n,!1,!1,e);var o=this.data.getItem(n);o&&(this._state.value=this._getItemText(o))}this.paint()},i.prototype._createLayout=function(){var t=this.list=new p.List(null,{$template:e.$template,template:this.config.template,htmlEnable:this.config.htmlEnable,virtual:this.config.virtual,keyNavigation:!0,multiselection:this.config.multiselection,itemHeight:this.config.itemHeight,height:this.config.listHeight,data:this.data,eventHandlers:this.config.eventHandlers}),i=this._layout=new f.Layout(this.popup.getContainer(),{css:"dhx_combobox-options dhx_combobox__options",rows:[{id:"select-unselect-all",hidden:!this.config.multiselection||!this.config.selectAllButton},{id:"list",height:"content"},{id:"not-found",hidden:!0}],on:{click:{".dhx_combobox__action-select-all":this._handlers.selectAll,".dhx_combobox-options__action-create-option":this._handlers.addOption}}});i.getCell("list").attach(t),this.config.multiselection&&this.config.selectAllButton&&i.getCell("select-unselect-all").attach(y.selectAllView)},i.prototype._initHandlers=function(){var t=this;this.config.helpMessage&&(this._helper=new v.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"}),this._helper.attachHTML(this.config.helpMessage)),this._handlers={addOption:function(){return t.addOption(t._state.value)},showHelper:function(e){e.preventDefault(),e.stopPropagation(),t._helper.show(e.target,{mode:"left"===t.config.labelPosition?"bottom":"right",theme:e.target})},selectAll:function(){t._state.unselectActive?(t.list.selection.remove(),t.config.selectAllButton&&(t._layout.getCell("select-unselect-all").attach(y.selectAllView),t._state.unselectActive=!1)):(t.data.filter(),t.list.selection.add(),t.config.selectAllButton&&(t._layout.getCell("select-unselect-all").attach(y.unselectAllView),t._state.unselectActive=!0)),t._changePopupPosition(),t.paint()},onkeydown:function(e){if("Tab"===e.key&&t.popup.isVisible())t._hideOptions();else if(t.popup.isVisible()||e.which!==u.KEY_CODES.DOWN_ARROW||t._showOptions(),t.popup.isVisible()&&(e.which===u.KEY_CODES.RIGHT_ARROW&&t.config.readOnly&&!t.config.multiselection&&(t.list.moveFocus(p.MOVE_DOWN),e.preventDefault()),e.which===u.KEY_CODES.LEFT_ARROW&&t.config.readOnly&&!t.config.multiselection&&(t.list.moveFocus(p.MOVE_UP),e.preventDefault()),e.which===u.KEY_CODES.DOWN_ARROW&&(t.list.moveFocus(p.MOVE_DOWN),e.preventDefault()),e.which===u.KEY_CODES.UP_ARROW&&(t.list.moveFocus(p.MOVE_UP),e.preventDefault()),e.which===u.KEY_CODES.ESC&&t._hideOptions(),e.which===u.KEY_CODES.ENTER)){if(t.data.getLength()){var i=t.list.getFocus(),n=t.config.multiselection?r(r([],t.list.selection.getId(),!0),[i],!1):i;t.setValue(n)}else t.config.newOptions&&t.addOption(t._state.value,!0);t.config.multiselection?t._updatePopup():t.data.getLength()&&t._hideOptions()}t.events.fire(b.ComboboxEvents.keydown,[e,t.list.getFocus()])},onkeyup:function(e){if(t.config.multiselection&&!t.config.itemsCount)if(t._state.ignoreNext)t._state.ignoreNext=!1;else if(e.which===u.KEY_CODES.BACKSPACE&&!t._state.value&&t.config.multiselection&&t.list.selection.getId().length){var i=t.list.selection.getId(),n=i[i.length-1];t.list.selection.remove(n),t._changePopupPosition(),t.paint()}},oninput:function(e){if(!t.config.disabled){var i=e.target.value;t.events.fire(b.ComboboxEvents.input,[i]),t._state.value=i,i.length?t._state.canDelete=!1:(t._state.ignoreNext=!0,t._state.canDelete=!0),t.config.multiselection||t.list.selection.remove(),t._filter(!0),t.popup.isVisible()||t._showOptions(),t._updatePopup()}},oninputclick:function(e){var i;if(!t.config.disabled){if(t.focus(),e.target.classList.contains("dhx_combobox__action-remove")){var n=null===(i=t.data.getItem((0,c.locate)(e)))||void 0===i?void 0:i.id;if(!(0,s.isId)(n))return;return t.list.selection.remove(n),t._changePopupPosition(),void t.paint()}if(e.target.classList.contains("dhx_combobox__action-clear-all"))return t.list.selection.getId().forEach((function(e){return t.list.selection.remove(e)})),t.config.selectAllButton&&t._state.unselectActive&&(t._layout.getCell("select-unselect-all").attach(y.selectAllView),t._state.unselectActive=!1),void t.paint();e.preventDefault(),t.popup.isVisible()?t.focus():t._showOptions()}},toggleIcon:function(){t.focus(),t.popup.isVisible()?t._hideOptions():t._showOptions()},onfocus:function(){var e;return null===(e=t.events)||void 0===e?void 0:e.fire(b.ComboboxEvents.focus,[])},onblur:function(){var e;return null===(e=t.events)||void 0===e?void 0:e.fire(b.ComboboxEvents.blur,[])}}},i.prototype._initEvents=function(){var t=this;this.data.events.on(h.DataEvents.load,(function(){t.config.value&&(t._setValue(t.config.value,!0),t.config.value=""),t._filter()})),this.data.events.on(h.DataEvents.removeAll,(function(){t._state.value="",t.paint()})),this.data.events.on(h.DataEvents.afterAdd,(function(){t.config.multiselection?t._changePopupPosition():t._hideOptions()})),this.list.events.on(p.ListEvents.click,(function(){t.config.multiselection||t._hideOptions(),t._changePopupPosition()})),this.list.selection.events.on(m.SelectionEvents.beforeSelect,(function(e){var i=t.config.multiselection?r(r([],t.getValue(t.config.multiselection),!0),[e],!1):e;return t.events.fire(b.ComboboxEvents.beforeChange,[i])})),this.list.selection.events.on(m.SelectionEvents.afterSelect,(function(){var e=t.getValue(t.config.multiselection);t.events.fire(b.ComboboxEvents.change,[e]),t._updateSelectedItem(e)})),this.list.selection.events.on(m.SelectionEvents.beforeUnSelect,(function(e){var i=t.config.multiselection?t.getValue(t.config.multiselection).filter((function(t){return t!=e})):e;return t.events.fire(b.ComboboxEvents.beforeChange,[i])})),this.list.selection.events.on(m.SelectionEvents.afterUnSelect,(function(){var e=t.config.multiselection,i=t.getValue(e);t.events.fire(b.ComboboxEvents.change,[i]),e&&t._updateSelectedItem(i)})),this.popup.events.on(v.PopupEvents.beforeShow,(function(){if(!t.popup.isVisible()&&!t._isPopupConfiqureted)return t._configurePopup(),!1})),this.popup.events.on(v.PopupEvents.afterShow,(function(){var e;if((null===(e=t.list.scrollView)||void 0===e?void 0:e.config.enable)&&t.list.scrollView.update(),t.config.readOnly){if(t._state.value){var i=t.list.selection.getId();t.list.setFocus(i)}else t.list.resetFocus();t._keyListener.startNewListen((function(e){return t._findBest(e)}))}t.list.scrollTo(t.list.getFocus())}))},i.prototype._showOptions=function(){this.events.fire(b.ComboboxEvents.beforeOpen)&&(this._state.value.length&&(this._state.canDelete=!0),this._filter(),this._configurePopup()&&(this.events.fire(b.ComboboxEvents.open),this.events.fire(b.ComboboxEvents.afterOpen)))},i.prototype._configurePopup=function(){this._isPopupConfiqureted=!0;var t=this.getRootView();return!!(t&&t.refs&&t.refs.holder)&&(this.popup.isVisible()||this._updatePopup(),!0)},i.prototype._hideOptions=function(){var t=this;this.events.fire(b.ComboboxEvents.beforeClose)&&(this.config.readOnly&&this._keyListener.endListen(),this.config.multiselection||this.config.readOnly||this.list.selection.contains()||(this._state.value=""),(0,a.awaitRedraw)().then((function(){return t.popup.isVisible()&&t.popup.hide()})),this.events.fire(b.ComboboxEvents.afterClose),this.events.fire(b.ComboboxEvents.close),this.data.resetFilter(),this._filter(),this.paint())},i.prototype._filter=function(t){var e=this;if(void 0===t&&(t=!1),!this.config.readOnly){this.config.filter?this.data.filter((function(t){return e.config.filter(t,e._state.value)})):t&&this.data.filter((function(t){return(0,s.isExistValue)(e._getItemText(t)||"",e._state.value)}));var i=this.list.selection.getId();!i||this.config.multiselection?this.list.resetFocus():this.list.setFocus(i);var n=this._layout.getCell("list"),o=this._layout.getCell("not-found");if(0===this.data.getLength()){this.config.multiselection&&this.config.selectAllButton&&this._layout.getCell("select-unselect-all").hide(),n.hide(),this._state.creatingState=!0;var r=this.config.newOptions?this._state.value:"";o.height=(0,y.emptyListHeight)(r,this.getRootView().refs.holder.el.offsetWidth),o.attach(y.emptyListView,r),o.show()}else{if(this.config.multiselection&&this.config.selectAllButton&&this._layout.getCell("select-unselect-all").show(),!(this._state.value&&this.data.find((function(t){return t.value===e._state.value})))&&this._state.value)if(this._state.creatingState=this.config.newOptions,n.show(),this.config.newOptions){r=this._state.value;o.height=(0,y.emptyListHeight)(r,this.getRootView().refs.holder.el.offsetWidth),o.attach(y.emptyListView,r),o.show()}else o.hide();else this._state.creatingState=!1,o.isVisible()&&(n.show(),o.hide())}}},i.prototype._findBest=function(t){var e=this,i=this.data.find((function(i){return(0,s.isExistValue)(e._getItemText(i)||"",t)}));i&&this.list.selection.getId()!==i.id&&(this.list.setFocus(i.id),this.paint())},i.prototype._exsistId=function(t){var e=this;return t instanceof Array?t.every((function(t){return e.data.exists(t)})):this.data.exists(t)},i.prototype._draw=function(){var t;if(!this.config)return(0,a.el)("div");var i=this.config,n=i.multiselection,o=i.labelPosition,s=i.hiddenLabel,l=i.required,u=i.disabled,d=i.css,h=i.helpMessage,f=i.readOnly,p=i.placeholder,v=n?null:this.data.getItem(this.list.selection.getId()),g=!this.list.selection.getId()||"object"==typeof this.list.selection.getId()&&0===this.list.selection.getId().length,_=(0,c.getLabelStyle)(this.config),m=!this.config.multiselection&&(this.config.readOnly||!this.popup.isVisible()),y=m&&this.config.htmlEnable&&this.config.template,w=m&&((null==v?void 0:v.icon)||(null==v?void 0:v.src))&&!this.config.template;return(0,a.el)("div",{"data-dhx-widget-id":this._uid,onkeydown:this._handlers.onkeydown,onkeyup:this._handlers.onkeyup,class:"dhx_widget dhx_combobox"+("left"===o?" dhx_combobox--label-inline":"")+(s?" dhx_combobox--sr_only":"")+(l?" dhx_combobox--required":"")+(u?" dhx_combobox--disabled":"")+(d?" ".concat(d):"")},[_?(0,a.el)("label.dhx_label.dhx_combobox__label",{style:_.style,class:h?"dhx_label--with-help":"",onclick:this._handlers.oninputclick},h?[(_.label||l)&&(0,a.el)("span.dhx_label__holder",_.label),(0,a.el)("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper,id:"dhx_label__help_".concat(this._uid)})]:_.label):null,(0,a.el)("div.dhx_combobox-input-box"+(u?".dhx_combobox-input-box--disabled":"")+(f?".dhx_combobox-input-box--readonly":"")+(this._state.currentState===b.ComboState.error?".dhx_combobox-input-box--state_error":"")+(this._state.currentState===b.ComboState.success?".dhx_combobox-input-box--state_success":""),{_ref:"holder"},[(0,a.el)("div.dhx_combobox-input__icon",{onclick:this._handlers.toggleIcon},[(0,a.el)("span"+(this.popup.isVisible()?".dxi.dxi-menu-up":".dxi.dxi-menu-down"))]),(0,a.el)("div.dhx_combobox-input-list-wrapper",{onclick:this._handlers.oninputclick},[(0,a.el)("ul.dhx_combobox-input-list",r(r([],this._drawSelectedItems(),!0),[(0,a.el)("li.dhx_combobox-input-list__item.dhx_combobox-input-list__item--input",[(y||w)&&v?(0,a.el)("div.dhx_combobox-input__template",{".innerHTML":y?this.config.template(v):null},w?[(0,e.$template)(v)]:null):null,(0,a.el)("input.dhx_combobox-input",{oninput:this._handlers.oninput,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,_ref:"input",_key:this._uid,type:"text",placeHolder:g&&p?p:void 0,value:f&&v?this._getItemText(v):this._state.value,readOnly:f||u,required:l,role:"combobox","aria-label":f?"Select value":"Type or select value","aria-describedby":h?"dhx_label__help_".concat(this._uid):null,"aria-expanded":this.popup.isVisible().toString(),"aria-controls":null===(t=this.list.getRootView().node)||void 0===t?void 0:t.attrs.id})])],!1))])])])},i.prototype._drawSelectedItems=function(){var t=this;if(!this.config.multiselection)return[];if(this.config.itemsCount){var e=this.list.selection.getId().length;return e?[(0,a.el)("li.dhx_combobox-input-list__item.dhx_combobox-tag",[(0,a.el)("span.dhx_combobox-tag__value",w(e,this.config.itemsCount)),(0,a.el)("button.dhx_button.dhx_combobox-tag__action.dhx_combobox__action-clear-all",{"aria-label":"clear all"},[(0,a.el)("span.dhx_button__icon.dxi.dxi-close-circle")])])]:[]}return this.list.selection.getId().map((function(e){var i=t.data.getItem(e);if(!i)return null;var n=t._drawImageOrIcon(i);return(0,a.el)("li.dhx_combobox-input-list__item.dhx_combobox-tag",{"data-dhx-id":e},r(r([],n||!t.config.template?[n,(0,a.el)("span.dhx_combobox-tag__value",t._getItemText(i))]:[(0,a.el)("span.dhx_combobox-tag__template",{".innerHTML":t.config.template(i)})],!0),[(0,a.el)("button.dhx_button.dhx_button--icon.dhx_combobox-tag__action.dhx_combobox__action-remove",{type:"button","aria-label":"remove"},[(0,a.el)("span.dhx_button__icon.dxi.dxi-close-circle")])],!1))}))},i.prototype._drawImageOrIcon=function(t){return t.src?(0,a.el)("img.dhx_combobox-tag__image",{src:t.src,alt:""}):t.icon?(0,a.el)("span.dhx_combobox-tag__icon",{class:t.icon}):null},i.prototype._getItemText=function(t){return t?t.value:null},i.prototype._updateSelectedItem=function(t){var e;this.config.multiselection?(this.config.selectAllButton&&!this._state.unselectActive&&this.data.getLength()===t.length?(this._layout.getCell("select-unselect-all").attach(y.unselectAllView),this._state.unselectActive=!0):this.config.selectAllButton&&this._state.unselectActive&&(this._layout.getCell("select-unselect-all").attach(y.selectAllView),this._state.unselectActive=!1),this._state.value&&(this._state.value="",this._state.canDelete=0===t.length,this.data.resetFilter(),this._filter())):this._state.value=null!==(e=this._getItemText(this.data.getItem(t)))&&void 0!==e?e:"",this.paint()},i.prototype._changePopupPosition=function(){var t=this;this.config.multiselection&&(0,a.awaitRedraw)().then((function(){t._updatePopup()}))},i.prototype._updatePopup=function(){var t=this.getRootView().refs.holder.el;this.popup.getContainer().style.width=t.offsetWidth+"px",this.popup.show(t,{mode:"bottom",theme:this.getRootNode()})},i}(d.View);e.Combobox=x},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.emptyListHeight=e.emptyListView=e.unselectAllView=e.selectAllView=void 0;var n=i(0),o=i(57);e.selectAllView=function(){return(0,n.el)(".dhx_list-item.dhx_combobox-options__item.dhx_combobox-options__item--select-all.dhx_combobox__action-select-all",o.default.selectAll)},e.unselectAllView=function(){return(0,n.el)(".dhx_list-item.dhx_combobox-options__item.dhx_combobox-options__item--select-all.dhx_combobox__action-select-all",o.default.unselectAll)},e.emptyListView=function(t){return(0,n.el)("ul.dhx_list",[(0,n.el)("li.dhx_list-item.dhx_combobox-options__item".concat(t?".dhx_combobox-options__action-create-option":""),{},t?"".concat(o.default.createItem,' "').concat(t,'"'):o.default.notFound)])},e.emptyListHeight=function(t,e){var i=document.createElement("canvas").getContext("2d",{alpha:!1});i.font="normal 14px Roboto";var n=t?"".concat(o.default.createItem,' "').concat(t,'"'):o.default.notFound;return 13+20*Math.ceil(i.measureText(n).width/(e-16))}},function(t,e,i){"use strict";var n,o;Object.defineProperty(e,"__esModule",{value:!0}),e.ComboState=e.ComboboxEvents=void 0,function(t){t.beforeChange="beforeChange",t.change="change",t.focus="focus",t.blur="blur",t.keydown="keydown",t.input="input",t.beforeOpen="beforeOpen",t.afterOpen="afterOpen",t.beforeClose="beforeClose",t.afterClose="afterClose",t.open="open",t.close="close"}(n||(e.ComboboxEvents=n={})),function(t){t[t.default=0]="default",t[t.error=1]="error",t[t.success=2]="success"}(o||(e.ComboState=o={}))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.DataView=void 0;var s=i(1),a=i(0),l=i(37),c=i(191),u=function(t){function e(e,i){return void 0===i&&(i={}),t.call(this,e,(0,s.extend)({itemsInRow:1,gap:"0px"},i))||this}return o(e,t),e.prototype.scrollTo=function(t){var e=this.getRootView();if(e&&e.node&&e.node.el&&void 0!==t){var i=this.getRootNode();this._scrollTo(t,i)}},e.prototype._scrollTo=function(t,e){var i;if(e){var n=this.data.getIndex(t);if(-1!==n){var o=this.config.virtual,r=this.config.itemsInRow-(null===(i=e.lastElementChild)||void 0===i?void 0:i.children.length)||0,s=function(t,e,i){var n=0;if(!i)return n;for(;t+e>=i;)n++,t=t+e-i;return n}(n,r,e.children.length*this.config.itemsInRow),a=s*r,l=Math.floor((n+a)/this.config.itemsInRow),c=e.children[l-e.children.length*s];if(o||c){var u=c.children[(n+a)%this.config.itemsInRow],d=parseInt(this.config.gap.toString().replace("px",""),null);u.offsetTop>=e.clientHeight+e.scrollTop-u.clientHeight?e.scrollTop=u.offsetTop-e.clientHeight+u.clientHeight+d:u.offsetTop<e.scrollTop-d&&(e.scrollTop=u.offsetTop-d)}}}},e.prototype._didRedraw=function(t){var e=t.node.el,i=e.scrollHeight>e.offsetHeight,n=t.node.attrs.class.replace(" dhx_dataview--has-scroll",""),o=i?n+" dhx_dataview--has-scroll":n;t.node.patch({class:o})},e.prototype._renderItem=function(t,e){var i=this.config,n=i.itemsInRow,o=i.gap,s=i.template,l=i.itemHeight,u=s?s(t):t.htmlContent,d=t.id==this._focus,h=(e+1)%this.config.itemsInRow==0,f=function(t){return parseFloat(t)};if(t.id==this._edited)return(0,c.getEditor)(t,this).toHTML(h);var p=t.id.toString(),v=this.data.getMetaMap(t);return(0,a.el)("div",r(r({class:"dhx_dataview-item"+(v&&v.selected?" dhx_dataview-item--selected":"")+(d?" dhx_dataview-item--focus":"")+(v&&v.drop&&!this._edited?" dhx_dataview-item--drophere":"")+(v&&v.drag&&!this._edited?" dhx_dataview-item--dragtarget":"")+(this.config.dragMode&&!this._edited?" dhx_dataview-item--drag":"")+(f(o)?" dhx_dataview-item--with-gap":"")+(t.css?" "+t.css:"")+(h?" dhx_dataview-item--last-item-in-row":""),style:{width:"calc(".concat(100/n,"% - ").concat(f(o)," * ").concat((n-1)/n,"px)"),"margin-right":h?"":o,height:s?null:l},_key:p,"data-dhx-id":p,_ref:p},this.getDataViewItemAriaAttrs(this,t)),{tabindex:d?0:-1}),u?[(0,a.el)(".dhx_dataview-item__inner-html",{".innerHTML":u,role:"presentation"})]:t.value||t.text||t.value)},e.prototype._renderList=function(){var t=this,e=this.data.getRawData(0,-1),i=this.config,n=i.itemsInRow,o=i.css,s=i.gap,l=0,c=e.reduce((function(e,i,o){return 0===l&&e.push([]),e[e.length-1].push(t._renderItem(i,o)),l=(l+1)%n,e}),[]);return(0,a.el)("",r(r(r(r({},this._handlers),{"data-dhx-widget-id":this._uid,class:(o||"")+" dhx_widget dhx_dataview"+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":""),style:{height:this.config.height}}),this.getDataViewAriaAttrs(this.config,this.data.getLength(),c.length,n)),{tabindex:0}),c.map((function(t,e){return(0,a.el)(".dhx_dataview-row",{style:{margin:s},"aria-label":"Row ".concat(e+1)},t)})))},e.prototype._getHotkeys=function(){var e=this,i=t.prototype._getHotkeys.call(this);return i.arrowUp=function(t){e.moveFocus(l.MOVE_UP,e.config.itemsInRow),e._changed&&(e._changed=!1),t.preventDefault()},i.arrowDown=function(t){e.moveFocus(l.MOVE_DOWN,e.config.itemsInRow),e._changed&&(e._changed=!1),t.preventDefault()},i.arrowLeft=function(t){e.moveFocus(l.MOVE_UP),e._changed&&(e._changed=!1),t.preventDefault()},i.arrowRight=function(t){e.moveFocus(l.MOVE_DOWN),e._changed&&(e._changed=!1),t.preventDefault()},i},e.prototype.getDataViewItemAriaAttrs=function(t,e){return r(r({role:"option","aria-selected":e.$selected?"true":"false"},function(t,e){return t.config.dragMode&&!t._edited?{"aria-grabbed":Boolean(e.$dragtarget&&!t._edited).toString()}:{}}(t,e)),function(t){return t.config.editable?{"aria-roledescription":"".concat(t._edited?"Press Enter to stop editing":"Double click to edit content")}:{}}(t))},e.prototype.getDataViewAriaAttrs=function(t,e,i,n){return{role:"listbox","aria-label":"Dataview, ".concat(e," options on ").concat(i," rows, ").concat(n," options per row.").concat(t.editable?" Content is editable.":""),"aria-multiselectable":t.selection&&t.multiselection?"true":"false","aria-readonly":t.editable?"false":"true"}},e}(l.List);e.DataView=u},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.DataViewEvents=void 0,function(t){t.click="click",t.doubleClick="doubleclick",t.focusChange="focuschange",t.beforeEditStart="beforeEditStart",t.afterEditStart="afterEditStart",t.beforeEditEnd="beforeEditEnd",t.afterEditEnd="afterEditEnd",t.itemRightClick="itemRightClick",t.itemMouseOver="itemMouseOver",t.contextmenu="contextmenu"}(n||(e.DataViewEvents=n={}))},function(t,e,i){"use strict";(function(t){var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__rest||function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]])}return i},a=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Form=void 0;var l=i(2),c=i(9),u=i(11),d=i(1),h=i(195),f=i(196),p=i(92),v=i(197),g=i(39),_=i(198),m=i(200),y=i(201),b=i(202),w=i(203),x=i(204),E=i(6),C=i(93),S=i(205),k=i(206),O=i(207),P=i(208),I=i(209),D=i(95),M=i(210),T=i(4),V=i(0),H=function(e){function i(t,i){var n=e.call(this,null,(0,d.extend)({disabled:!1,hidden:!1,css:""},i))||this;return n._isValid=!0,n._state={},n.events=new l.EventSystem(n),n.container=t,n._initUI(t),n.config.hidden&&n.hide(!0),n.config.disabled&&n.disable(),n.events.on(T.FormEvents.afterShow,(function(){n._formContainerShow()})),n.events.on(T.FormEvents.afterHide,(function(){Object.values(n._attachments).some((function(t){return!t.config.hidden}))||n._formContainerHide()})),(0,V.awaitRedraw)().then((function(){var t=n.layout.getRootNode();t&&(t.setAttribute("role","form"),n.config.title&&t.setAttribute("aria-label",n.config.title))})),n}return o(i,e),i.prototype.paint=function(){e.prototype.paint.call(this),this.layout.paint()},i.prototype.send=function(e,i,n){var o=this;if(void 0===i&&(i="POST"),this.events.fire(T.FormEvents.beforeSend))return new t((function(t,r){var s=new XMLHttpRequest;switch(s.onload=function(){s.status>=200&&s.status<300?t(s.response||s.responseText):r({status:s.status,statusText:s.statusText})},s.onloadend=function(){s.readyState===XMLHttpRequest.DONE&&200===s.status&&o.events.fire(T.FormEvents.afterSend)},s.onerror=function(){r({status:s.status,statusText:s.statusText})},"GET"===i&&(e+="?"+encodeURIComponent(JSON.stringify(o.getValue()))),s.open(i,e),n||s.setRequestHeader("Content-Type","application/json"),i){case"POST":o._send(),s.send(n?o.getValue(!0):JSON.stringify(o.getValue()));break;case"DELETE":case"PUT":s.send(n?o.getValue(!0):JSON.stringify(o.getValue()));break;default:s.send()}}))},i.prototype.clear=function(t){switch(t){case T.ClearMethod.value:this._clear();break;case T.ClearMethod.validation:this._clearValidate();break;default:this._clear(),this._clearValidate()}this.paint()},i.prototype.setValue=function(t){for(var e in t)for(var i in this._attachments)"function"==typeof this._attachments[i].setValue&&this._attachments[i].config.name===e&&this._attachments[i].setValue(t[e])},i.prototype.getValue=function(t){if(t){var e=new FormData,i=function(t){Array.isArray(n._state[t])?n._state[t].forEach((function(i,n){return e.append(t+"[".concat(n,"]"),i)})):e.append(t,n._state[t])},n=this;for(var o in this._state)i(o);return e}return r({},this._state)},i.prototype.getItem=function(t){for(var e in this._attachments)if(e==t)return this._attachments[e]},i.prototype.validate=function(t){for(var e in void 0===t&&(t=!1),this._isValid=!0,this._attachments)"function"==typeof this._attachments[e].validate&&(0,E.isVerify)(this._attachments[e].config)&&!this._attachments[e].validate(t)&&(this._isValid=!1,!t&&this.events.fire(T.FormEvents.validationFail,[e,this._attachments[e]]));return this._isValid},i.prototype.setProperties=function(t,e){if("string"==typeof t&&e&&!(0,d.isEmptyObj)(e))for(var i in this._attachments)"function"==typeof this._attachments[i].setProperties&&i===t&&this._attachments[i].setProperties(e);if("object"==typeof t&&!(0,d.isEmptyObj)(t))for(var i in this._attachments)"function"!=typeof this._attachments[i].setProperties||(0,d.isEmptyObj)(t[i])||this._attachments[i].setProperties(t[i])},i.prototype.getProperties=function(t){if(t)for(var e in this._attachments)if("function"==typeof this._attachments[e].getProperties&&e===t)return this._attachments[e].getProperties();var i={};for(var e in this._attachments)"function"==typeof this._attachments[e].getProperties&&(i[e]=this._attachments[e].getProperties());return i},i.prototype.show=function(){if(this.config.hidden||Object.values(this._attachments).some((function(t){return!t.config.hidden})))for(var t in this._formContainerShow(),this._attachments)"function"==typeof this._attachments[t].show&&this._attachments[t].show()},i.prototype.hide=function(t){if(!this.config.hidden||t)for(var e in this._formContainerHide(),this._attachments)"function"==typeof this._attachments[e].hide&&this._attachments[e].hide(t)},i.prototype.setFocus=function(t){for(var e in this._attachments){var i=this._attachments[e];"radiogroup"!==i.config.type&&"checkboxgroup"!==i.config.type||i.focus(t),i.config.name===t&&i.focus()}},i.prototype.blur=function(t){for(var e in t||this.forEach((function(t){"function"==typeof t.blur&&t.blur()})),this._attachments){var i=this._attachments[e];"radiogroup"!==i.config.type&&"checkboxgroup"!==i.config.type||i.blur(t),i.config.name===t&&i.blur()}},i.prototype.isVisible=function(t){if(!t)return!this.config.hidden;for(var e in this._attachments)if(e===t)return!this._attachments[e].config.hidden},i.prototype.disable=function(){for(var t in this.config.disabled=!0,this._attachments)"function"==typeof this._attachments[t].disable&&this._attachments[t].disable()},i.prototype.enable=function(){for(var t in this.config.disabled=!1,this._attachments)"function"==typeof this._attachments[t].enable&&this._attachments[t].enable()},i.prototype.isDisabled=function(t){if(!t)return this.config.disabled;for(var e in this._attachments)if(e===t)return this._attachments[e].config.disabled},i.prototype.forEach=function(t){for(var e=Object.values(this._attachments),i=0;i<e.length;i++)t.call(this,e[i],i,e)},i.prototype.destructor=function(){for(var t in this.unmount(),this._attachments)"function"==typeof this._attachments[t].destructor&&this._attachments[t].destructor();this.events&&this.events.clear(),this.layout&&this.layout.destructor(),this.config=this._attachments=this._state=this._uid=this.container=this.events=this._isValid=null},i.prototype.getRootView=function(){return this.layout.getRootView()},i.prototype._addLayoutItem=function(t){var e=t.id=t.id||(0,d.uid)(),i=t.name=t.name||e.toString();t.type=t.type&&t.type.toLowerCase();var n=t.padding,o=s(t,["padding"]),r=t.width,a=t.height;switch("spacer"!==t.type&&!a&&(a="content"),o.type){case"button":case"togglegroup":r=o.width||!o.full&&"content";break;case"simplevault":o.$vaultHeight=a}this._initItemHandlers(t,i);var l={id:i,width:r,height:a,padding:n,hidden:o.hidden,css:this.getCellCSS(o)};return"fieldset"===t.type&&(l.$fieldset=!0,l.label=t.label,l.labelAlignment=t.labelAlignment,this._createLayoutConfig(t,l)),l},i.prototype._initItemHandlers=function(t,e){var i=this;switch(t.type){case"avatar":var n=this._attachments[e]=new P.Avatar(null,t);this._state[e]=n.getValue(),n.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),n.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),n.events.on(T.ItemEvent.beforeHide,(function(t,n){if(!n)return i.events.fire(T.FormEvents.beforeHide,[e,t])})),n.events.on(T.ItemEvent.beforeShow,(function(t){return i.events.fire(T.FormEvents.beforeShow,[e,t])})),n.events.on(T.ItemEvent.afterHide,(function(t,n){i.layout.getCell(e).hide(),!n&&i.events.fire(T.FormEvents.afterHide,[e,t])})),n.events.on(T.ItemEvent.afterShow,(function(t){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t])})),n.events.on(T.ItemEvent.beforeValidate,(function(t){return i.events.fire(T.FormEvents.beforeValidate,[e,t])})),n.events.on(T.ItemEvent.afterValidate,(function(t,n){i.events.fire(T.FormEvents.afterValidate,[e,t,n])})),n.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),n.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,n.config),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),n.events.on(T.ItemEvent.focus,(function(t){i.events.fire(T.FormEvents.focus,[e,t])})),n.events.on(T.ItemEvent.blur,(function(t){i.events.fire(T.FormEvents.blur,[e,t])})),n.events.on(T.ItemEvent.keydown,(function(t){i.events.fire(T.FormEvents.keydown,[t,e])}));break;case"toggle":var o=this._attachments[e]=new D.ToggleButton(null,t);this._state[e]=o.getValue(),o.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),o.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),o.events.on(T.ItemEvent.beforeHide,(function(t,n){if(!n)return i.events.fire(T.FormEvents.beforeHide,[e,t])})),o.events.on(T.ItemEvent.beforeShow,(function(t){return i.events.fire(T.FormEvents.beforeShow,[e,t])})),o.events.on(T.ItemEvent.afterHide,(function(t,n){i.layout.getCell(e).hide(),!n&&i.events.fire(T.FormEvents.afterHide,[e,t])})),o.events.on(T.ItemEvent.afterShow,(function(t){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t])})),o.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),o.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,o.config),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),o.events.on(T.ItemEvent.focus,(function(t){i.events.fire(T.FormEvents.focus,[e,t])})),o.events.on(T.ItemEvent.blur,(function(t){i.events.fire(T.FormEvents.blur,[e,t])})),o.events.on(T.ItemEvent.keydown,(function(t){i.events.fire(T.FormEvents.keydown,[t,e])}));break;case"togglegroup":var r=this._attachments[e]=new M.ToggleGroup(null,t);this._state[e]=r.getValue(),r.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),r.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),r.events.on(T.ItemEvent.beforeHide,(function(t,n,o){if(!o)return i.events.fire(T.FormEvents.beforeHide,[e,t,n])})),r.events.on(T.ItemEvent.beforeShow,(function(t,n){return i.events.fire(T.FormEvents.beforeShow,[e,t,n])})),r.events.on(T.ItemEvent.afterHide,(function(t,n,o){!r.isVisible()&&i.layout.getCell(e).hide(),!o&&i.events.fire(T.FormEvents.afterHide,[e,t,n])})),r.events.on(T.ItemEvent.afterShow,(function(t,n){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t,n])})),r.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),r.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,r.config),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),r.events.on(T.ItemEvent.focus,(function(t,n){i.events.fire(T.FormEvents.focus,[e,t,n])})),r.events.on(T.ItemEvent.blur,(function(t,n){i.events.fire(T.FormEvents.blur,[e,t,n])})),r.events.on(T.ItemEvent.keydown,(function(t,n){i.events.fire(T.FormEvents.keydown,[t,e,n])}));break;case"button":var s=this._attachments[e]=new f.Button(null,t);s.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),s.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,s.config),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),s.events.on(T.ItemEvent.click,(function(t){t.preventDefault(),i.events.fire(T.FormEvents.click,[e,t]),i.events.fire(T.FormEvents.buttonClick,[e,t]),s.config.submit&&i.validate()&&s.config.url&&i.send(s.config.url)})),s.events.on(T.ItemEvent.beforeHide,(function(t,n){if(!n)return i.events.fire(T.FormEvents.beforeHide,[e,t])})),s.events.on(T.ItemEvent.beforeShow,(function(t){return i.events.fire(T.FormEvents.beforeShow,[e,t])})),s.events.on(T.ItemEvent.afterHide,(function(t,n){i.layout.getCell(e).hide(),!n&&i.events.fire(T.FormEvents.afterHide,[e,t])})),s.events.on(T.ItemEvent.afterShow,(function(t){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t])})),s.events.on(T.ItemEvent.focus,(function(t){i.events.fire(T.FormEvents.focus,[e,t])})),s.events.on(T.ItemEvent.blur,(function(t){i.events.fire(T.FormEvents.blur,[e,t])})),s.events.on(T.ItemEvent.keydown,(function(t){i.events.fire(T.FormEvents.keydown,[t,e])}));break;case"datepicker":var l=this._attachments[e]=new h.DatePicker(null,t);this._state[e]=l.getValue("Date"===t.valueFormat),l.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),l.events.on(T.ItemEvent.afterChangeProperties,(function(n){i._changeProps(e,n,l.config),i._state[e]=l.getValue("Date"===t.valueFormat),i.events.fire(T.FormEvents.afterChangeProperties,[e,n]),i.paint()})),l.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),l.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),l.events.on(T.ItemEvent.beforeHide,(function(t,n){if(!n)return i.events.fire(T.FormEvents.beforeHide,[e,t])})),l.events.on(T.ItemEvent.beforeShow,(function(t){return i.events.fire(T.FormEvents.beforeShow,[e,t])})),l.events.on(T.ItemEvent.afterHide,(function(t,n){i.layout.getCell(e).hide(),!n&&i.events.fire(T.FormEvents.afterHide,[e,t])})),l.events.on(T.ItemEvent.afterShow,(function(t){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t])})),l.events.on(T.ItemEvent.beforeValidate,(function(t){return i.events.fire(T.FormEvents.beforeValidate,[e,t])})),l.events.on(T.ItemEvent.afterValidate,(function(t,n){i.events.fire(T.FormEvents.afterValidate,[e,t,n])})),l.events.on(T.ItemEvent.focus,(function(t){i.events.fire(T.FormEvents.focus,[e,t])})),l.events.on(T.ItemEvent.blur,(function(t){i.events.fire(T.FormEvents.blur,[e,t])})),l.events.on(T.ItemEvent.keydown,(function(t){i.events.fire(T.FormEvents.keydown,[t,e])}));break;case"checkbox":var c=this._attachments[e]=new p.Checkbox(null,t);this._state[e]=c.getValue(),c.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),c.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,c.config),i._state[e]=c.getValue(),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),c.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),c.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),c.events.on(T.ItemEvent.beforeHide,(function(t,n){if(!n)return i.events.fire(T.FormEvents.beforeHide,[e,t])})),c.events.on(T.ItemEvent.beforeShow,(function(t){return i.events.fire(T.FormEvents.beforeShow,[e,t])})),c.events.on(T.ItemEvent.afterHide,(function(t,n){i.layout.getCell(e).hide(),!n&&i.events.fire(T.FormEvents.afterHide,[e,t])})),c.events.on(T.ItemEvent.afterShow,(function(t){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t])})),c.events.on(T.ItemEvent.beforeValidate,(function(t){return i.events.fire(T.FormEvents.beforeValidate,[e,t])})),c.events.on(T.ItemEvent.afterValidate,(function(t,n){i.events.fire(T.FormEvents.afterValidate,[e,t,n])})),c.events.on(T.ItemEvent.focus,(function(t){i.events.fire(T.FormEvents.focus,[e,t])})),c.events.on(T.ItemEvent.blur,(function(t){i.events.fire(T.FormEvents.blur,[e,t])})),c.events.on(T.ItemEvent.keydown,(function(t){i.events.fire(T.FormEvents.keydown,[t,e])}));break;case"checkboxgroup":var u=this._attachments[e]=new v.CheckboxGroup(null,t);this._state[e]=u.getValue(),u.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),u.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,u.config),i._state[e]=u.getValue(),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),u.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),u.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),u.events.on(T.ItemEvent.beforeHide,(function(t,n,o){if(!o)return i.events.fire(T.FormEvents.beforeHide,[e,t,n])})),u.events.on(T.ItemEvent.beforeShow,(function(t,n){return i.events.fire(T.FormEvents.beforeShow,[e,t,n])})),u.events.on(T.ItemEvent.afterHide,(function(t,n,o){!u.isVisible()&&i.layout.getCell(e).hide(),!o&&i.events.fire(T.FormEvents.afterHide,[e,t,n])})),u.events.on(T.ItemEvent.afterShow,(function(t,n){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t,n])})),u.events.on(T.ItemEvent.beforeValidate,(function(t){return i.events.fire(T.FormEvents.beforeValidate,[e,t])})),u.events.on(T.ItemEvent.afterValidate,(function(t,n){i.events.fire(T.FormEvents.afterValidate,[e,t,n])})),u.events.on(T.ItemEvent.focus,(function(t,n){i.events.fire(T.FormEvents.focus,[e,t,n])})),u.events.on(T.ItemEvent.blur,(function(t,n){i.events.fire(T.FormEvents.blur,[e,t,n])})),u.events.on(T.ItemEvent.keydown,(function(t,n){i.events.fire(T.FormEvents.keydown,[t,e,n])}));break;case"combo":var d=this._attachments[e]=new w.Combo(null,t);this._state[e]=d.getValue(),d.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),d.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,d.config),i._state[e]=d.getValue(),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),d.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),d.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),d.events.on(T.ItemEvent.beforeHide,(function(t,n){if(!n)return i.events.fire(T.FormEvents.beforeHide,[e,t])})),d.events.on(T.ItemEvent.beforeShow,(function(t){return i.events.fire(T.FormEvents.beforeShow,[e,t])})),d.events.on(T.ItemEvent.afterHide,(function(t,n){i.layout.getCell(e).hide(),!n&&i.events.fire(T.FormEvents.afterHide,[e,t])})),d.events.on(T.ItemEvent.afterShow,(function(t){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t])})),d.events.on(T.ItemEvent.beforeValidate,(function(t){return i.events.fire(T.FormEvents.beforeValidate,[e,t])})),d.events.on(T.ItemEvent.afterValidate,(function(t,n){i.events.fire(T.FormEvents.afterValidate,[e,t,n])})),d.events.on(T.ItemEvent.focus,(function(t){i.events.fire(T.FormEvents.focus,[e,t])})),d.events.on(T.ItemEvent.blur,(function(t){i.events.fire(T.FormEvents.blur,[e,t])})),d.events.on(T.ItemEvent.keydown,(function(t,n){i.events.fire(T.FormEvents.keydown,[t,e,n])}));break;case"input":var E=this._attachments[e]=new g.Input(null,t);this._state[e]=E.getValue(),E.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),E.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,E.config),i._state[e]=E.getValue(),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),E.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),E.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),E.events.on(T.ItemEvent.beforeHide,(function(t,n){if(!n)return i.events.fire(T.FormEvents.beforeHide,[e,t])})),E.events.on(T.ItemEvent.beforeShow,(function(t){return i.events.fire(T.FormEvents.beforeShow,[e,t])})),E.events.on(T.ItemEvent.afterHide,(function(t,n){i.layout.getCell(e).hide(),!n&&i.events.fire(T.FormEvents.afterHide,[e,t])})),E.events.on(T.ItemEvent.afterShow,(function(t){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t])})),E.events.on(T.ItemEvent.beforeValidate,(function(t){return i.events.fire(T.FormEvents.beforeValidate,[e,t])})),E.events.on(T.ItemEvent.afterValidate,(function(t,n){i.events.fire(T.FormEvents.afterValidate,[e,t,n])})),E.events.on(T.ItemEvent.focus,(function(t){i.events.fire(T.FormEvents.focus,[e,t])})),E.events.on(T.ItemEvent.blur,(function(t){i.events.fire(T.FormEvents.blur,[e,t])})),E.events.on(T.ItemEvent.keydown,(function(t){i.events.fire(T.FormEvents.keydown,[t,e])}));break;case"radiogroup":var V=this._attachments[e]=new _.RadioGroup(null,t);this._state[e]=V.getValue(),V.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),V.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,V.config),i._state[e]=V.getValue(),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),V.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),V.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),V.events.on(T.ItemEvent.beforeHide,(function(t,n,o){if(!o)return i.events.fire(T.FormEvents.beforeHide,[e,t,n])})),V.events.on(T.ItemEvent.beforeShow,(function(t,n){return i.events.fire(T.FormEvents.beforeShow,[e,t,n])})),V.events.on(T.ItemEvent.afterHide,(function(t,n,o){!V.isVisible()&&i.layout.getCell(e).hide(),!o&&i.events.fire(T.FormEvents.afterHide,[e,t,n])})),V.events.on(T.ItemEvent.afterShow,(function(t,n){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t,n])})),V.events.on(T.ItemEvent.beforeValidate,(function(t){return i.events.fire(T.FormEvents.beforeValidate,[e,t])})),V.events.on(T.ItemEvent.afterValidate,(function(t,n){i.events.fire(T.FormEvents.afterValidate,[e,t,n])})),V.events.on(T.ItemEvent.focus,(function(t,n){i.events.fire(T.FormEvents.focus,[e,t,n])})),V.events.on(T.ItemEvent.blur,(function(t,n){i.events.fire(T.FormEvents.blur,[e,t,n])})),V.events.on(T.ItemEvent.keydown,(function(t,n){i.events.fire(T.FormEvents.keydown,[t,e,n])}));break;case"select":var H=this._attachments[e]=new m.Select(null,t);this._state[e]=H.getValue(),H.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),H.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,H.config),i._state[e]=H.getValue(),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),H.events.on(T.ItemEvent.changeOptions,(function(t){i.layout.getCell(e).config.options=a([],t,!0)})),H.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),H.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),H.events.on(T.ItemEvent.beforeHide,(function(t,n){if(!n)return i.events.fire(T.FormEvents.beforeHide,[e,t])})),H.events.on(T.ItemEvent.beforeShow,(function(t){return i.events.fire(T.FormEvents.beforeShow,[e,t])})),H.events.on(T.ItemEvent.afterHide,(function(t,n){i.layout.getCell(e).hide(),!n&&i.events.fire(T.FormEvents.afterHide,[e,t])})),H.events.on(T.ItemEvent.afterShow,(function(t){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t])})),H.events.on(T.ItemEvent.beforeValidate,(function(t){return i.events.fire(T.FormEvents.beforeValidate,[e,t])})),H.events.on(T.ItemEvent.afterValidate,(function(t,n){i.events.fire(T.FormEvents.afterValidate,[e,t,n])})),H.events.on(T.ItemEvent.focus,(function(t){i.events.fire(T.FormEvents.focus,[e,t])})),H.events.on(T.ItemEvent.blur,(function(t){i.events.fire(T.FormEvents.blur,[e,t])})),H.events.on(T.ItemEvent.keydown,(function(t){i.events.fire(T.FormEvents.keydown,[t,e])}));break;case"simplevault":var j=this._attachments[e]=new C.SimpleVault(null,t);this._state[e]=j.getValue(),j.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),j.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,j.config),i._state[e]=j.getValue(),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),j.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),j.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),j.events.on(T.ItemEvent.beforeHide,(function(t,n){if(!n)return i.events.fire(T.FormEvents.beforeHide,[e,t])})),j.events.on(T.ItemEvent.beforeShow,(function(t){return i.events.fire(T.FormEvents.beforeShow,[e,t])})),j.events.on(T.ItemEvent.afterHide,(function(t,n){i.layout.getCell(e).hide(),!n&&i.events.fire(T.FormEvents.afterHide,[e,t])})),j.events.on(T.ItemEvent.afterShow,(function(t){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t])})),j.events.on(T.ItemEvent.beforeValidate,(function(t){return i.events.fire(T.FormEvents.beforeValidate,[e,t])})),j.events.on(T.ItemEvent.afterValidate,(function(t,n){i.events.fire(T.FormEvents.afterValidate,[e,t,n])}));break;case"slider":var F=this._attachments[e]=new x.SliderForm(null,t);this._state[e]=F.getValue(),F.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),F.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),F.events.on(T.ItemEvent.beforeHide,(function(t,n){if(!n)return i.events.fire(T.FormEvents.beforeHide,[e,t])})),F.events.on(T.ItemEvent.beforeShow,(function(t){return i.events.fire(T.FormEvents.beforeShow,[e,t])})),F.events.on(T.ItemEvent.afterHide,(function(t,n){i.layout.getCell(e).hide(),!n&&i.events.fire(T.FormEvents.afterHide,[e,t])})),F.events.on(T.ItemEvent.afterShow,(function(t){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t])})),F.events.on(T.ItemEvent.focus,(function(t){i.events.fire(T.FormEvents.focus,[e,t])})),F.events.on(T.ItemEvent.blur,(function(t){i.events.fire(T.FormEvents.blur,[e,t])})),F.events.on(T.ItemEvent.keydown,(function(t){i.events.fire(T.FormEvents.keydown,[t,e])}));break;case"textarea":var R=this._attachments[e]=new y.Textarea(null,t);this._state[e]=R.getValue(),R.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),R.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,R.config),i._state[e]=R.getValue(),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),R.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),R.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),R.events.on(T.ItemEvent.beforeHide,(function(t,n){if(!n)return i.events.fire(T.FormEvents.beforeHide,[e,t])})),R.events.on(T.ItemEvent.beforeShow,(function(t){return i.events.fire(T.FormEvents.beforeShow,[e,t])})),R.events.on(T.ItemEvent.afterHide,(function(t,n){i.layout.getCell(e).hide(),!n&&i.events.fire(T.FormEvents.afterHide,[e,t])})),R.events.on(T.ItemEvent.afterShow,(function(t){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t])})),R.events.on(T.ItemEvent.beforeValidate,(function(t){return i.events.fire(T.FormEvents.beforeValidate,[e,t])})),R.events.on(T.ItemEvent.afterValidate,(function(t,n){i.events.fire(T.FormEvents.afterValidate,[e,t,n])})),R.events.on(T.ItemEvent.focus,(function(t){i.events.fire(T.FormEvents.focus,[e,t])})),R.events.on(T.ItemEvent.blur,(function(t){i.events.fire(T.FormEvents.blur,[e,t])})),R.events.on(T.ItemEvent.keydown,(function(t){i.events.fire(T.FormEvents.keydown,[t,e])}));break;case"text":var A=this._attachments[e]=new b.Text(null,t);this._state[e]=A.getValue(),A.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),A.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,A.config),i._state[e]=A.getValue(),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),A.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),A.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),A.events.on(T.ItemEvent.beforeHide,(function(t,n){if(!n)return i.events.fire(T.FormEvents.beforeHide,[e,t])})),A.events.on(T.ItemEvent.beforeShow,(function(t){return i.events.fire(T.FormEvents.beforeShow,[e,t])})),A.events.on(T.ItemEvent.afterHide,(function(t,n){i.layout.getCell(e).hide(),!n&&i.events.fire(T.FormEvents.afterHide,[e,t])})),A.events.on(T.ItemEvent.afterShow,(function(t){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t])})),A.events.on(T.ItemEvent.beforeValidate,(function(t){return i.events.fire(T.FormEvents.beforeValidate,[e,t])})),A.events.on(T.ItemEvent.afterValidate,(function(t,n){i.events.fire(T.FormEvents.afterValidate,[e,t,n])}));break;case"timepicker":var L=this._attachments[e]=new S.TimePicker(null,t);this._state[e]=t.value&&L.getValue("timeObject"===t.valueFormat)||"",L.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),L.events.on(T.ItemEvent.afterChangeProperties,(function(n){i._changeProps(e,n,L.config),i._state[e]=L.getValue("timeObject"===t.valueFormat),i.events.fire(T.FormEvents.afterChangeProperties,[e,n]),i.paint()})),L.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),L.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),L.events.on(T.ItemEvent.beforeHide,(function(t,n){if(!n)return i.events.fire(T.FormEvents.beforeHide,[e,t])})),L.events.on(T.ItemEvent.beforeShow,(function(t){return i.events.fire(T.FormEvents.beforeShow,[e,t])})),L.events.on(T.ItemEvent.afterHide,(function(t,n){i.layout.getCell(e).hide(),!n&&i.events.fire(T.FormEvents.afterHide,[e,t])})),L.events.on(T.ItemEvent.afterShow,(function(t){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t])})),L.events.on(T.ItemEvent.beforeValidate,(function(t){return i.events.fire(T.FormEvents.beforeValidate,[e,t])})),L.events.on(T.ItemEvent.afterValidate,(function(t,n){i.events.fire(T.FormEvents.afterValidate,[e,t,n])})),L.events.on(T.ItemEvent.focus,(function(t){i.events.fire(T.FormEvents.focus,[e,t])})),L.events.on(T.ItemEvent.blur,(function(t){i.events.fire(T.FormEvents.blur,[e,t])})),L.events.on(T.ItemEvent.keydown,(function(t){i.events.fire(T.FormEvents.keydown,[t,e])}));break;case"colorpicker":var $=this._attachments[e]=new k.ColorPicker(null,t);this._state[e]=$.getValue(),$.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),$.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,$.config),i._state[e]=$.getValue(),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),$.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),$.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),$.events.on(T.ItemEvent.beforeHide,(function(t,n){if(!n)return i.events.fire(T.FormEvents.beforeHide,[e,t])})),$.events.on(T.ItemEvent.beforeShow,(function(t){return i.events.fire(T.FormEvents.beforeShow,[e,t])})),$.events.on(T.ItemEvent.afterHide,(function(t,n){i.layout.getCell(e).hide(),!n&&i.events.fire(T.FormEvents.afterHide,[e,t])})),$.events.on(T.ItemEvent.afterShow,(function(t){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t])})),$.events.on(T.ItemEvent.beforeValidate,(function(t){return i.events.fire(T.FormEvents.beforeValidate,[e,t])})),$.events.on(T.ItemEvent.afterValidate,(function(t,n){i.events.fire(T.FormEvents.afterValidate,[e,t,n])})),$.events.on(T.ItemEvent.focus,(function(t){i.events.fire(T.FormEvents.focus,[e,t])})),$.events.on(T.ItemEvent.blur,(function(t){i.events.fire(T.FormEvents.blur,[e,t])})),$.events.on(T.ItemEvent.keydown,(function(t){i.events.fire(T.FormEvents.keydown,[t,e])}));break;case"fieldset":var N=this._attachments[e]=new I.Fieldset(t);N.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),N.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,N.config),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()}));break;default:var z=this._attachments[e]=new O.Spacer(null,t);z.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),z.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,z.config),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),z.events.on(T.ItemEvent.beforeHide,(function(t){if(!t)return i.events.fire(T.FormEvents.beforeHide,[e])})),z.events.on(T.ItemEvent.beforeShow,(function(){return i.events.fire(T.FormEvents.beforeShow,[e])})),z.events.on(T.ItemEvent.afterHide,(function(t){i.layout.getCell(e).hide(),!t&&i.events.fire(T.FormEvents.afterHide,[e])})),z.events.on(T.ItemEvent.afterShow,(function(){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e])}))}},i.prototype._changeProps=function(t,e,i){var n=["width","height","css","padding","label","labelAlignment","align"];for(var o in e)n.includes(o)&&(0,d.isDefined)(e[o])&&(this.layout.getCell(t).config[o]="css"===o?this.getCellCSS(i):e[o])},i.prototype.getCellCSS=function(t){var e=t.css?t.css+" dhx_form-element":"dhx_form-element";switch(t.type){case"button":case"togglegroup":t.full&&!t.width&&(e+=" dhx_button--full-gravity");break;case"text":"content"===t.width&&(e+=" dhx_form-element--fit-content")}return e},i.prototype._addLayoutItems=function(t){var e=this;return t.map((function(t){if((0,E.isBlock)(t)){var i={width:"content",height:"content"};return e._createLayoutConfig(t,i),i}return e._addLayoutItem(t)}))},i.prototype._checkLayoutConfig=function(t,e){return(0,d.isDefined)(t.css)&&(e.css=t.css),(0,d.isDefined)(t.title)&&(e.header=t.title),(0,d.isDefined)(t.padding)&&(e.padding=t.padding),(0,d.isDefined)(t.width)&&(e.width=t.width),(0,d.isDefined)(t.height)&&(e.height=t.height),(0,d.isDefined)(t.align)&&(e.align=t.align),e},i.prototype._createLayoutConfig=function(t,e){e=this._checkLayoutConfig(t,e),(0,d.isDefined)(t.rows)?e.rows=this._addLayoutItems(t.rows):(0,d.isDefined)(t.cols)&&(e.cols=this._addLayoutItems(t.cols))},i.prototype._initUI=function(t){this._attachments={};var e={padding:"8px"};this.config.css+=" dhx_form",this._createLayoutConfig(this.config,e),this.layout=new u.Layout(t,e),(0,E.setAttacments)(this._attachments,this.layout)},i.prototype._clear=function(){for(var t in this._state={},this._attachments){var e=this._attachments[t].config.name;"function"==typeof this._attachments[t].clear&&(this._attachments[t].clear(),e?this._state[e]=this._attachments[t].getValue():this._state[t]=this._attachments[t].getValue())}},i.prototype._clearValidate=function(){for(var t in this._attachments)"function"==typeof this._attachments[t].clearValidate&&this._attachments[t].clearValidate()},i.prototype._formContainerShow=function(){(this.config.hidden=!1,this.getRootView().node)&&(this.getRootView().node.el.style.display="flex")},i.prototype._formContainerHide=function(){(this.config.hidden=!0,this.getRootView().node)&&(this.getRootView().node.el.style.display="none")},i.prototype._send=function(){for(var t in this._attachments)"function"==typeof this._attachments[t].send&&this._attachments[t].send()},i}(c.View);e.Form=H}).call(this,i(17))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Checkbox=void 0;var s=i(0),a=i(2),l=i(6),c=i(13),u=i(4),d=i(10),h=i(1),f=function(t){function e(e,i){void 0===i&&(i={});var n=t.call(this,e,i)||this;n.events=new a.EventSystem,n._propsItem=["required","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage","text"],n._props=r(r([],l.baseProps,!0),n._propsItem,!0),n._initView(i),n._initHandlers();return n.mount(e,(0,s.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype.setProperties=function(t,e){if(void 0===e&&(e=!1),t&&!(0,h.isEmptyObj)(t)&&(e||this.events.fire(u.ItemEvent.beforeChangeProperties,[this.getProperties()]))){for(var i in t)this._props.includes(i)&&(this.config[i]=t[i]);!e&&this.events.fire(u.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype.show=function(){this.config.hidden&&this.events.fire(u.ItemEvent.beforeShow,[this.getValue()])&&(this.config.hidden=!1,this.events.fire(u.ItemEvent.afterShow,[this.getValue()]))},e.prototype.hide=function(t){this.config.hidden&&!t||!this.events.fire(u.ItemEvent.beforeHide,[this.getValue(),t])||(this.config.hidden=!0,this.events.fire(u.ItemEvent.afterHide,[this.getValue(),t]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype.disable=function(){this.config.disabled=!0,this.paint()},e.prototype.enable=function(){var t;this.config.disabled=!1,(null===(t=this.parent)||void 0===t?void 0:t.isDisabled())&&this.parent.enable(),this.paint()},e.prototype.isDisabled=function(){return!!this.config.disabled},e.prototype.validate=function(t){void 0===t&&(t=!1);var e=this.getValue();if(!t&&!this.events.fire(u.ItemEvent.beforeValidate,[e]))return!1;var i=!0;return(this.config.required||this.config.$required)&&(i=!!this.config.checked),t||(this.setValidationStatus(i?"success":"error"),this.events.fire(u.ItemEvent.afterValidate,[e,i]),this.paint()),i},e.prototype.clearValidate=function(){this.setValidationStatus(),this.paint()},e.prototype.setValue=function(t,e){void 0===e&&(e=!1),void 0!==t&&t!==this.config.checked&&(e||this.events.fire(u.ItemEvent.beforeChange,[this._getValue(t)]))&&(this.config.checked=!!t,e||(this.events.fire(u.ItemEvent.change,[this.getValue()]),(0,l.isVerify)(this.config)&&this.validate()))},e.prototype.getValue=function(){return this._getValue(this.config.checked)},e.prototype.clear=function(t){this.config.checked&&(t||this.events.fire(u.ItemEvent.beforeChange,[this._getValue(!1)]))&&(this.config.checked=!1,t||this.events.fire(u.ItemEvent.change,[this.getValue()]),(0,l.isVerify)(this.config)&&this.setValidationStatus(this.validate(!0)?"success":"error"))},e.prototype.destructor=function(){this.events&&this.events.clear(),this._inGroup=this._propsItem=this._props=this._uid=this.events=null,t.prototype._destructor.call(this),this.unmount()},e.prototype.focus=function(){var t=this;(0,s.awaitRedraw)().then((function(){t.getRootView().refs.input.el.focus()}))},e.prototype.blur=function(){var t=this;(0,s.awaitRedraw)().then((function(){t.getRootView().refs.input.el.blur()}))},e.prototype.isChecked=function(){return!!this.config.checked},e.prototype._getValue=function(t){return"string"==typeof this.config.value?t&&this.config.value||"":!!t},e.prototype._initView=function(t){var e=this;if(this._inGroup=this.config.$group,this._inGroup){for(var i in this.config={type:t.type,id:t.id,text:"",width:"content",height:"content",padding:0},t)"id"!==i&&"type"!==i&&"name"!==i&&(this.config[i]=t[i]);this._handlers={onchange:function(t){var i=t.target.checked;e.events.fire(u.ItemEvent.beforeChange,[e._getValue(i)])?(e.config.checked=i,e.events.fire(u.ItemEvent.change,[e.getValue()]),(0,l.isVerify)(e.config)&&e.validate()):e.getRootView().refs.input.el.checked=!i},onfocus:function(){return e.events.fire(u.ItemEvent.focus,[e.getValue(),e.config.id])},onblur:function(){return e.events.fire(u.ItemEvent.blur,[e.getValue(),e.config.id])},onkeydown:function(t){e.events.fire(u.ItemEvent.keydown,[t,e.config.id])}}}else{for(var i in this.config={type:t.type,id:t.id,name:t.name,checked:!1,disabled:!1,required:!1,label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t)"id"!==i&&"type"!==i&&"name"!==i&&(this.config[i]=t[i]);this.config.helpMessage&&(this._helper=new c.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"}),this._helper.attachHTML(this.config.helpMessage)),this._handlers={showHelper:function(t){t.preventDefault(),t.stopPropagation(),e._helper.show(t.target,{mode:"left"===e.config.labelPosition?"bottom":"right",theme:e.getRootNode()})},hideHelper:function(t){t.preventDefault(),t.stopPropagation(),e._helper.hide()},onchange:function(t){var i=t.target.checked;e.events.fire(u.ItemEvent.beforeChange,[e._getValue(i)])?(e.config.checked=i,e.events.fire(u.ItemEvent.change,[e.getValue()]),(0,l.isVerify)(e.config)&&e.validate()):e.getRootView().refs.input.el.checked=!i},onfocus:function(){return e.events.fire(u.ItemEvent.focus,[e.getValue()])},onblur:function(){var t;return null===(t=e.events)||void 0===t?void 0:t.fire(u.ItemEvent.blur,[e.getValue()])},onkeydown:function(t){e.events.fire(u.ItemEvent.keydown,[t])}}}},e.prototype._initHandlers=function(){var t=this;this.events.on(u.ItemEvent.change,(function(){return t.paint()}))},e.prototype._draw=function(){var t=this.config,e=t.id,i=t.value,n=t.checked,o=t.disabled,r=t.name,a=t.required,c=t.$required,u=t.text,d=t.label,h=t.labelWidth,f=t.helpMessage;return(0,s.el)("label.dhx_checkbox.dhx_form-group.dhx_form-group--checkbox",{class:(0,l.getFormItemCss)(this.config,(0,l.isVerify)(this.config)||!!c)},this._inGroup?[(0,s.el)(".dhx_checkbox__holder",[(0,s.el)("input.dhx_checkbox__input",{type:"checkbox",id:e,value:i||"",name:r||"",disabled:o,checked:n,onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,required:a,_ref:"input"}),(0,s.el)("span.dhx_checkbox__visual-input"),(0,s.el)("span.dhx_text",[u])])]:[d||h||f||a?this._drawLabel():null,(0,s.el)(".dhx_checkbox__container",[(0,s.el)(".dhx_checkbox__holder",[(0,s.el)("input.dhx_checkbox__input",{type:"checkbox","data-dhx-id":r||e,id:e,_key:e||this._uid,value:i,name:r,disabled:o,checked:n,onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,required:a,_ref:"input","aria-label":d||"checkbox ".concat(u||""),"aria-describedby":f?"dhx_label__help_".concat(e||this._uid):null}),(0,s.el)("span.dhx_checkbox__visual-input"),(0,s.el)("span.dhx_text",[u])]),a&&(0,l.getValidationMessage)(this.config)&&(0,s.el)("span.dhx_input__caption",(0,l.getValidationMessage)(this.config))])])},e}(d.Label);e.Checkbox=f},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.SimpleVault=e.FileStatus=void 0;var a,l=i(0),c=i(2),u=i(3),d=i(1),h=i(7),f=i(58),p=i(13),v=i(6),g=i(94),_=i(4),m=i(10);!function(t){t.queue="queue",t.uploaded="uploaded",t.failed="failed",t.inprogress="inprogress"}(a||(e.FileStatus=a={}));var y=function(t){function e(e,i){var n=t.call(this,e,i)||this;n._propsItem=["required","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage"],n._propsSimpleVault=["params","headerParams","target","fieldName","singleRequest","updateFromResponse","autosend","accept","validation"],n._props=s(s(s([],v.baseProps,!0),n._propsItem,!0),n._propsSimpleVault,!0),n.events=new c.EventSystem(n),n.data=new h.DataCollection,n._uploader=new f.Uploader(r({target:"",accept:"",fieldName:"file",singleRequest:!1,updateFromResponse:!0,autosend:!1},i),n.data,n.data.events),n._initView(r(r({},n._uploader.config),i)),n._initHandlers();return n.mount(e,(0,l.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype.send=function(t){this._uploader.send(t)},e.prototype.selectFile=function(){this._uploader.selectFile()},e.prototype.setValue=function(t){t.length&&(this.data.parse(t),(0,v.isVerify)(this.config)&&this.validate())},e.prototype.getValue=function(){return this.data.serialize()},e.prototype.clear=function(){0!==this.getValue().length&&this.events.fire(_.ItemEvent.beforeChange,[[]])&&(this.data.removeAll(),this.events.fire(_.ItemEvent.change,[this.getValue()]),(0,v.isVerify)(this.config)&&this.setValidationStatus(this.validate(!0)?"success":"error"),this.paint())},e.prototype.disable=function(){this.config.disabled=!0,this.paint()},e.prototype.enable=function(){var t;this.config.disabled=!1,(null===(t=this.parent)||void 0===t?void 0:t.isDisabled())&&this.parent.enable(),this.paint()},e.prototype.isDisabled=function(){return this.config.disabled},e.prototype.show=function(){var t=this.config,e=t.value;t.hidden&&this.events.fire(_.ItemEvent.beforeShow,[e])&&(this.config.hidden=!1,this.events.fire(_.ItemEvent.afterShow,[e]))},e.prototype.hide=function(t){var e=this.config,i=e.value;e.hidden&&!t||!this.events.fire(_.ItemEvent.beforeHide,[i,t])||(this.config.hidden=!0,this.events.fire(_.ItemEvent.afterHide,[i,t]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype.validate=function(t){void 0===t&&(t=!1);for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var n=e.length?e[0]:this.getValue();if(!t&&!this.events.fire(_.ItemEvent.beforeValidate,[n]))return!1;var o=!0;return this.config.required&&(o=!!n.length),"function"==typeof this.config.validation&&(o=this.config.validation(n)),t||(this.setValidationStatus(o?"success":"error"),this.events.fire(_.ItemEvent.afterValidate,[n,o]),this.paint()),o},e.prototype.clearValidate=function(){this.setValidationStatus(),this.paint()},e.prototype.setProperties=function(t){if(t&&!(0,d.isEmptyObj)(t)&&this.events.fire(_.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e],this._propsSimpleVault.includes(e)&&(this._uploader.config[e]=t[e]));this.events.fire(_.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype.focus=function(){var t,e,i;null===(i=null===(e=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.input)||void 0===i||i.el.focus(),this.paint()},e.prototype.blur=function(){var t,e,i;null===(i=null===(e=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.input)||void 0===i||i.el.blur(),this.paint()},e.prototype.destructor=function(){this.events&&this.events.clear(),this._helper&&this._helper.destructor(),this.config=this.events=this._uid=this._helper=this._handlers=this._uploader=this.data=null,this._propsItem=this._propsSimpleVault=this._props=this._dragover=this._dragoverTimeout=null,this.unmount()},e.prototype._initView=function(t){var e;this.config=r({type:t.type,id:t.id,name:t.name,value:[],disabled:!1,hidden:!1,css:"",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t),(null===(e=t.value)||void 0===e?void 0:e.length)&&this.data.parse(t.value),this.paint()},e.prototype._initHandlers=function(){var t=this;this._handlers={add:function(e){t.config.disabled||(e.preventDefault(),t._uploader.selectFile())},remove:function(e){if(!t.config.disabled){var i=(0,u.locate)(e);i&&t.data.remove(i)}},ondragover:function(e){for(var i=0,n=e.dataTransfer.types;i<n.length;i++){var o=n[i];if("Files"!==o&&"application/x-moz-file"!==o)return}t._dragoverTimeout?clearTimeout(t._dragoverTimeout):t.paint(),t._dragover=!0,t._dragoverTimeout=setTimeout((function(){t._dragover=!1,t._dragoverTimeout=null,t.paint()}),150)},showHelper:function(e){e.stopPropagation(),e.preventDefault(),t._helper.show(e.target,{mode:"left"===t.config.labelPosition?"bottom":"right",theme:e.target})},hideHelper:function(e){e.preventDefault(),e.stopPropagation(),t._helper.hide()}},this._uploader.events.on("beforeUploadFile",(function(e){return!(t.config.autosend&&!t.validate(!0))&&t.events.fire(_.ItemEvent.beforeUploadFile,[e,t.config.value])})),this._uploader.events.on("uploadBegin",(function(e){t.events.fire(_.ItemEvent.uploadBegin,[e,t.config.value])})),this._uploader.events.on("uploadComplete",(function(e){t.events.fire(_.ItemEvent.uploadComplete,[e,t.config.value])})),this._uploader.events.on("uploadFail",(function(e){t.events.fire(_.ItemEvent.uploadFail,[e,t.config.value])})),this._uploader.events.on("uploadFile",(function(e,i){t.events.fire(_.ItemEvent.uploadFile,[e,t.config.value,i])})),this._uploader.events.on("uploadProgress",(function(e){t.events.fire(_.ItemEvent.uploadProgress,[e,t.config.value])})),this.data.events.on(h.DataEvents.beforeAdd,(function(e){return t.events.fire(_.ItemEvent.beforeChange,[s(s([],t.config.value,!0),[e],!1),e])})),this.data.events.on(h.DataEvents.beforeRemove,(function(e){var i=t.config.value.filter((function(t){return t.id!==e.id}));return t.events.fire(_.ItemEvent.beforeChange,[i,e])})),this.data.events.on(_.ItemEvent.change,(function(e,i,n){if(i){var o=t.config.value=t.getValue();t._uploader.isActive&&"update"===i||(t.events.fire(_.ItemEvent.change,[o,n]),(0,v.isVerify)(t.config)&&t.validate()),t.paint()}}))},e.prototype._draw=function(){var t=this;this.config.helpMessage&&(this._helper||(this._helper=new p.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"})),this._helper.attachHTML(this.config.helpMessage));var e=this.data.getLength()?(0,l.el)("ul.dhx_simplevault__files.dhx_simplevault-files",{class:this.config.$vaultHeight?"":"dhx_simplevault-files__fixed"},this.data.map((function(e){return(0,l.el)("li.dhx_simplevault-files__item",[(0,l.el)("span.dhx_simplevault-files__item-name",e.file&&e.file.name||e.name),(0,l.el)(".dhx_button.dhx_simplevault-files__delete.dhx_button--icon.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"data-dhx-id":e.id,onclick:t._handlers.remove},[(0,l.el)("span.dxi.dxi-delete-forever")])])}))):null,i=this.config,n=i.id,o=i.helpMessage,r=i.disabled,s=i.required,a=i.label,c=i.hidden,d=i.accept,h=(0,u.getLabelStyle)(this.config),f=c?" dhx_form-group--hidden":"";return(0,l.el)(".dhx_form-group.dhx_form-group--simplevault",{class:(0,v.getFormItemCss)(this.config,(0,v.isVerify)(this.config))+f},[h&&(0,l.el)("legend.dhx_label",{class:o?"dhx_label--with-help":"",style:h.style,onclick:this._handlers.add,"aria-label":a||"select files"},o?[(h.label||s)&&(0,l.el)("span.dhx_label__holder",h.label),(0,l.el)("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper,onfocus:this._handlers.showHelper,onblur:this._handlers.hideHelper})]:h.label),(0,l.el)(".dhx_input__wrapper",{id:this._uid},[(0,l.el)("div",{_hooks:{didInsert:function(e){t._uploader.linkDropArea(e.el)}},ondragover:this._handlers.ondragover,class:"dhx_simplevault"+(this._dragover?" dhx_simplevault--on-drag":"")},[(0,l.el)("div.dhx_simplevault-loader",[(0,l.el)("span.dhx_simplevault__icon.dxi.dxi-vault")]),(0,l.el)(".dhx_simplevault__drop-area",[(0,l.el)("input.dhx_simplevault__input",{_ref:"input",type:"file",id:n,disabled:r,accept:d}),(0,l.el)("span.dhx_simplevault__icon.dxi.dxi-vault"),(0,l.el)("span.dhx_simplevault__title",[(0,l.el)("span",g.default.simpleVaultText),(0,l.el)("br"),(0,l.el)("label.dhx_simplevault__label",{onclick:this._handlers.add,for:n}," "+g.default.simpleVaultLabel)])]),e]),(0,v.getValidationMessage)(this.config)&&(0,l.el)("span.dhx_input__caption",{},(0,v.getValidationMessage)(this.config))])])},e}(m.Label);e.SimpleVault=y},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={simpleVaultText:"Drag & drop files or folders here or",simpleVaultLabel:"browse files"}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.ToggleButton=void 0;var a=i(4),l=i(9),c=i(0),u=i(2),d=i(6),h=i(1),f=function(t){function e(e,i){var n=t.call(this,e,r({full:!1,selected:!1,disabled:!1,hidden:!1,width:"content",height:"content",text:"",icon:"",offIcon:"",offText:"",css:"",padding:""},i))||this;n.events=new u.EventSystem,n.props=s(s([],n.config.$group?[]:d.baseProps,!0),["value","offIcon","offText","icon","text","full"],!1),n.initHandlers();return n.mount(e,(0,c.create)({render:function(){return n.draw()}})),n}return o(e,t),e.prototype.setValue=function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1),"boolean"==typeof t&&t!==this.config.selected&&(e||this.events.fire(a.ItemEvent.beforeChange,[t]))&&(this.config.selected=t,!e&&this.events.fire(a.ItemEvent.change,[this.getValue()]),this.paint())},e.prototype.getValue=function(){var t=this.config,e=t.value,i=t.selected;return"string"==typeof e?i?e:"":"number"==typeof e?i?e:0:!!i},e.prototype.isSelected=function(){return!!this.config.selected},e.prototype.show=function(){this.config.hidden&&this.events.fire(a.ItemEvent.beforeShow,[this.getValue()])&&(this.config.hidden=!1,this.events.fire(a.ItemEvent.afterShow,[this.getValue()]))},e.prototype.hide=function(t){void 0===t&&(t=!1),this.config.hidden&&!t||!this.events.fire(a.ItemEvent.beforeHide,[this.getValue(),t])||(this.config.hidden=!0,this.events.fire(a.ItemEvent.afterHide,[this.getValue(),t]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype.focus=function(){var t=this;(0,c.awaitRedraw)().then((function(){t.getRootView().refs.button.el.focus(),t.paint()}))},e.prototype.blur=function(){var t=this;(0,c.awaitRedraw)().then((function(){t.getRootView().refs.button.el.blur(),t.paint()}))},e.prototype.disable=function(){this.config.disabled=!0,this.paint()},e.prototype.enable=function(){var t;this.config.disabled=!1,(null===(t=this.parent)||void 0===t?void 0:t.isDisabled())&&this.parent.enable(),this.paint()},e.prototype.isDisabled=function(){return!!this.config.disabled},e.prototype.setProperties=function(t){if(t&&!(0,h.isEmptyObj)(t)&&this.events.fire(a.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this.props.includes(e)&&(this.config[e]=t[e]);this.events.fire(a.ItemEvent.afterChangeProperties,[this.getProperties()])}},e.prototype.getProperties=function(){for(var t={},e=0,i=this.props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype.destructor=function(){this.events.clear(),this.unmount()},e.prototype.draw=function(){var t=this.config,e=t.id,i=t.name,n=t.selected,o=t.disabled,r=t.hidden,s=t.text,a=t.offText,l=t.icon,u=t.offIcon,d=t.full,h=t.$group,f=t.$gap,p=t.$extraCss,v=t.css;return(0,c.el)("button.dhx_toggle",{"data-dhx-id":i||e,role:"button",type:"button","aria-pressed":n,"aria-label":s||i,disabled:o,class:(h?"":"dhx_form-group dhx_form-group--toggle ")+(n?"dhx_toggle--selected ":"")+(o?"dhx_toggle--disabled ":"")+(r?"dhx_toggle--hidden ":"")+(d?"dhx_toggle--full ":"")+(h&&p||"")+(h&&v||""),style:{marginLeft:f},onclick:this.handlers.onclick,onfocus:this.handlers.onfocus,onblur:this.handlers.onblur,onkeydown:this.handlers.onkeydown,_ref:"button"},[l&&(0,c.el)("i.dhx_toggle__icon",{class:n?l:u||l}),s&&(0,c.el)("span.dhx_toggle__text",{},n?s:a||s)])},e.prototype.initHandlers=function(){var t=this;this.handlers={onclick:function(){return t.setValue(!t.config.selected)},onfocus:function(){return t.events.fire(a.ItemEvent.focus,[t.getValue()])},onblur:function(){return t.events.fire(a.ItemEvent.blur,[t.getValue()])},onkeydown:function(e){return t.events.fire(a.ItemEvent.keydown,[e])}}},e}(l.View);e.ToggleButton=f},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__rest||function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]])}return i},a=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Grid=void 0;var l=i(0),c=i(2),u=i(3),d=i(1),h=i(14),f=i(9),p=i(7),v=i(214),g=i(18),_=i(26),m=i(16),y=i(215),b=i(8),w=i(97),x=i(24),E=i(15),C=i(223),S=i(227),k=i(228),O=i(21),P=i(32),I=function(t){function e(e,i){void 0===i&&(i={});var n=t.call(this,e,i)||this;n._touch={duration:350,dblDuration:300,timer:null,start:!1},n._destructed=!1,n.version="8.4.3",n.name="grid",n.config=(0,d.extend)({rowHeight:40,headerRowHeight:40,footerRowHeight:40,keyNavigation:!0,sortable:!0,columns:[],data:[],tooltip:!0,rootParent:"string"==typeof e&&e||n._uid},n._normalizeConfig(i)),n.content=(0,C.getContent)(),n._scroll={top:0,left:0},n.config.autoWidth=n.config.autoWidth||n.config.fitToContainer,n.config.adjust=n.config.adjust||n.config.columnsAutoWidth,n.config.editable=n.config.editable||n.config.editing,n.config.leftSplit=n.config.leftSplit||n.config.splitAt,n.config.columns.forEach((function(t){t.format=t.format||t.dateFormat}));var o=function(t,e,i){var o;if(t&&e&&(0,m.isTooltip)(n.config,e)){var s=void 0;if("combobox"===e.editorType||"select"===e.editorType){var a=(0,g.getEditorOptions)(e,t).find((function(i){var n;return(i instanceof Object?i.id.toString():i)===(null===(n=t[e.id])||void 0===n?void 0:n.toString())}));s=a instanceof Object?a.value:a}else if("multiselect"===e.editorType){var l=null===(o=t[e.id])||void 0===o?void 0:o.toString().split(", ");if(null==l?void 0:l.length)s=(0,g.getEditorOptions)(e,t).filter((function(t){return l.includes(t instanceof Object?t.id.toString():t)})).map((function(t){return t instanceof Object?t.value:t})).join(", ")}var c=(0,g.toFormat)(s||t[e.id],e.type,e.format),u=function(){return!!c||"boolean"==typeof c};e.tooltipTemplate?c=e.tooltipTemplate(c,t,e)||null:u()&&e.template&&(c=e.template(c,t,e)),u()&&(0,m.showTooltip)(c,r({node:i,htmlEnable:(0,m.isHtmlEnable)(n.config,e)},(0,m.getTooltipConfig)(n.config,e)))}},s=function(t,e){var i,o;void 0===e&&(e="header");var s=t.target,a=s.getAttribute("data-dhx-text-id"),l=n.getColumn(s.getAttribute("data-dhx-id"));if(a&&l){var c=null===(i=l[e])||void 0===i?void 0:i.find((function(t){return t.id===a}));if((0,m.isContentTooltip)(n.config,l,c,e)){var u=(null==c?void 0:c.content)&&["avg","sum","max","min","count"].includes(c.content),d=u?null===(o=n.content[c.content])||void 0===o?void 0:o.toHtml(l,r(r({},n.config),{datacollection:n.data})):null==c?void 0:c.text;"function"==typeof(null==c?void 0:c.tooltipTemplate)&&(d=c.tooltipTemplate(d,c,l)),u&&"function"==typeof l.template&&(d=l.template(d,c,l)),(null==d?void 0:d.toString().length)&&(0,m.showTooltip)(d,r({node:s,htmlEnable:(0,m.isHtmlEnable)(n.config,l,c)},(0,m.getTooltipConfig)(n.config,l,c,e)))}}};if(n._htmlEvents={onclick:(0,u.eventHandler)((function(t){return(0,u.locate)(t)}),{"dhx_grid-header-cell--sortable":function(t,e){var i=t.target.getAttribute("dhx_resized"),o=n.getColumn(e);if(o&&(0,m.isSortable)(n.config,o)&&!i&&n.events.fire(b.GridEvents.beforeSort,[o,"asc"===n._sortDir?"desc":"asc"])){var r=(0,u.locate)(t,"data-dhx-text-id"),s=o.header.find((function(t){return t.id===r})),a="asc"===n._sortDir&&n._sortBy===e?"desc":"asc";n._sort(e,a,s.sortAs)}},"dhx_grid-expand-cell":function(t,e){t.target.classList.contains("dhx_grid-expand-cell-icon")&&n.events.fire(b.GridEvents.expand,[e])},"dhx_span-expand-cell":function(t,e){t.target.classList.contains("dhx_span-expand-cell-icon")&&n.events.fire(b.GridEvents.expand,[e])}}),onscroll:function(t){n.events.fire(b.GridEvents.scroll,[{y:t.target.scrollTop,x:t.target.scrollLeft}])},onmouseover:{".dhx_grid-cell.dhx_boolean-cell .dhx_checkbox.dhx_cell-editor__checkbox":function(t){var e=t.composedPath(),i=n.data.getItem(e[2].getAttribute("data-dhx-id")),r=n.getColumn(e[1].getAttribute("data-dhx-col-id"));o(i,r,t.target)},".dhx_grid-cell:not(.dhx_boolean-cell)":function(t){var e=n.data.getItem(t.composedPath()[1].getAttribute("data-dhx-id")),i=n.getColumn(t.target.getAttribute("data-dhx-col-id"));o(e,i,t.target)},".dhx_grid-cell:not(.dhx_tree-cell) .dhx_grid-cell__content, .dhx_tree-cell :not(.dhx_grid-cell__content)":function(t){var e=t.composedPath(),i=n.data.getItem(e[2].getAttribute("data-dhx-id")),r=n.getColumn(e[1].getAttribute("data-dhx-col-id"));o(i,r,t.target)},".dhx_grid-cell.dhx_tree-cell .dhx_grid-cell__content":function(t){var e=t.composedPath(),i=n.data.getItem(e[3].getAttribute("data-dhx-id")),r=n.getColumn(e[2].getAttribute("data-dhx-col-id"));o(i,r,e[2])},".dhx_span-cell:not(.dhx_grid-header-cell):not(.dhx_grid-footer-cell)":function(t){var e=t.target,i=n.data.getItem(e.getAttribute("data-dhx-id")),o=n.getColumn(e.getAttribute("data-dhx-col-id")),s=n.getSpan(i.id,o.id);if(i&&s&&(0,m.isTooltip)(n.config,s)){var a=s.text||(0,g.toFormat)(i[o.id],o.type,o.format);s.tooltipTemplate?a=s.tooltipTemplate(a,s):o.template&&(a=o.template(a,i,o)),a&&(0,m.showTooltip)(a,r({node:e,htmlEnable:(0,m.isHtmlEnable)(n.config,o)},(0,m.getTooltipConfig)(n.config,null,s)))}},".dhx_grid-header-cell":function(t){return s(t,"header")},".dhx_grid-footer-cell":function(t){return s(t,"footer")}}},n.config.eventHandlers)for(var a=0,c=Object.entries(n.config.eventHandlers);a<c.length;a++){var f=c[a],v=f[0],_=f[1];n._htmlEvents[v]=(0,u.eventHandler)((function(t){return{col:n.getColumn((0,u.locate)(t,"data-dhx-col-id")||(0,u.locate)(t,"data-dhx-id"))||{},row:n.data.getItem((0,u.locate)(t,"data-dhx-id"))||{}}}),_,n._htmlEvents[v])}return(n.config.dragMode||n.config.dragItem)&&(p.dragManager.setItem(n._uid,n),n.config.dragItem||(n.config.dragItem="row"),n.config.dragMode||(n.config.dragMode="both")),n._init(),n.config.columns&&n._parseColumns(!0),n._canDataParse()&&n.data.parse(n.config.data),n.selection=new y.Selection(n,{disabled:!n.config.selection},n.events,n._uid),n.mount(e,n._createView()),(0,l.awaitRedraw)().then((function(){n.config.keyNavigation&&(n.keyManager=new h.KeyManager((function(t,e){return!(e!==n._uid||!n.events.fire(b.GridEvents.beforeKeyDown,[t]))&&(n.events.fire(b.GridEvents.afterKeyDown,[t]),!0)})),n._initHotKey(),O.focusManager.setFocusId(n._uid))})),i.autoEmptyRow&&0===n.data.getLength()&&(n._addEmptyRow(),n.paint()),n}return o(e,t),e.prototype.destructor=function(){this._destructed=!0,this._destroyContent(),this.keyManager&&this.keyManager.destructor(),this.events&&this.events.clear(),this._events&&this._events.clear(),this.export=this.content=this.selection=null,this._activeFilters=this._filterData=this._scroll=this._touch=this._htmlEvents=this._hiddenFilters=null,this.unmount()},e.prototype.setColumns=function(t){var e=this;this._destroyContent(),this.config.columns=t,this._parseColumns(!0),(0,m.isAutoWidth)(this.config)&&this._applyAutoWidth(),this._adjustColumns(),this._checkFilters(),this._checkMarks(),this._normalizeSpans(),this.paint(),this.config.keyNavigation&&(0,l.awaitRedraw)().then((function(){e._initHotKey(!0),e.paint()}))},e.prototype.addRowCss=function(t,e){var i=this.data.getItem(t),n=i.$css||"";n.match(new RegExp(e,"g"))||(i.$css=n+" ".concat(e),this.paint())},e.prototype.removeRowCss=function(t,e){var i=this.data.getItem(t),n=i.$css?i.$css.replace(e,""):"";i.$css=n,this.paint()},e.prototype.addCellCss=function(t,e,i){var n=this.getColumn(e);if(n){n.$cellCss=n.$cellCss||{};var o=n.$cellCss[t];if(o){var r=o.match(new RegExp(i,"g"))?"":" ".concat(i);n.$cellCss[t]+=r}else this.data.getItem(t)&&(n.$cellCss[t]="".concat(i," "));this.paint()}},e.prototype.removeCellCss=function(t,e,i){var n=this.getColumn(e);n&&(n.$cellCss[t]?(n.$cellCss[t]=n.$cellCss[t].replace(i,""),this.paint()):this.data.getItem(t)&&(n.$cellCss[t]=""))},e.prototype.showColumn=function(t){var e=this.getColumn(t);if(e&&e.hidden&&this.events.fire(b.GridEvents.beforeColumnShow,[e])){e.hidden=!1,this.config.$totalWidth+=e.$width,this._parseColumns(),this.config.data=this._prepareData(this.data);var i=this._hiddenFilters&&this._hiddenFilters[e.id];i&&(this._activeFilters[e.id]=i,delete this._hiddenFilters[e.id],this._checkFilters(),this._checkSelectFilterValue()),this._normalizeSpans(),this.paint(),this.events.fire(b.GridEvents.afterColumnShow,[e])}},e.prototype.hideColumn=function(t){var e=this.getColumn(t);if(e&&!e.hidden&&this.events.fire(b.GridEvents.beforeColumnHide,[e])){e.hidden=!0,this.config.$totalWidth-=e.$width,this._parseColumns(),this.config.data=this._prepareData(this.data);var i=this._activeFilters&&this._activeFilters[e.id];i&&(this._hiddenFilters||(this._hiddenFilters={}),this._hiddenFilters[e.id]=i,delete this._activeFilters[e.id],this._checkFilters()),this._normalizeSpans(),this.paint(),this.events.fire(b.GridEvents.afterColumnHide,[e])}},e.prototype.isColumnHidden=function(t){var e=this.getColumn(t);if(e)return!!e.hidden},e.prototype.showRow=function(t){if((0,d.isDefined)(t)){var e=t.toString(),i=this.data.getItem(e);i&&i.hidden&&this.events.fire(b.GridEvents.beforeRowShow,[i])&&(this.data.update(e,{hidden:!1}),this._checkFilters(!0),this.paint(),this.events.fire(b.GridEvents.afterRowShow,[i]))}},e.prototype.hideRow=function(t){if((0,d.isDefined)(t)){var e=t.toString(),i=this.data.getItem(e);i&&this.events.fire(b.GridEvents.beforeRowHide,[i])&&(this.data.update(e,{hidden:!0}),this._checkFilters(!0),this._checkSelectFilterValue(),this.paint(),this.events.fire(b.GridEvents.afterRowHide,[i]))}},e.prototype.isRowHidden=function(t){if((0,d.isDefined)(t)){var e=this.data.getItem(t.toString());return e?!!e.hidden:void 0}},e.prototype.getScrollState=function(){return{x:this._scroll.left,y:this._scroll.top}},e.prototype.scroll=function(t,e){var i=this.getRootView().refs.grid_body.el.querySelector(".scroll-view")||this.getRootView().refs.grid_body.el;i.scrollLeft=!t&&0!==t||"number"!=typeof t?i.scrollLeft:t,i.scrollTop=!e&&0!==e||"number"!=typeof e?i.scrollTop:e,this.paint()},e.prototype.scrollTo=function(t,e){var i=this.config,n=i.topSplit,o=i.bottomSplit,r=i.columns,s=i.$width,a=i.$height,l=i.$headerHeight,c=r.filter((function(t){return!t.hidden})),u=this.data.getRawData(0,-1,null,2),h=c.findIndex((function(t){return t.id==e})),f=u.findIndex((function(e){return e.id==t}));if((0,d.isDefined)(h)&&(0,d.isDefined)(f)){var p=this.getScrollState(),v=this.selection.getCell(),g=v&&r.findIndex((function(t){return t.id==v.column.id})),_=v&&u.findIndex((function(t){return t.id==v.row.id})),y=(0,x.getCurrFixedCols)(this.config,b.Split.left).length,w=(0,x.getCurrFixedCols)(this.config,b.Split.right).length,E=y&&g<y,C=w&&g>=r.length-w,S=n&&_<n,k=o&&_>=u.length-o,O=(0,m.getTotalWidth)(c.slice(0,h)),P=(0,m.getTotalHeight)(u.slice(0,f));if(y){var I=(0,m.getTotalWidth)((0,x.getCurrFixedCols)(this.config,b.Split.left));(!E&&!C&&h<g||O-p.x-I<0)&&(O-=I)}if(w){var D=(0,m.getTotalWidth)((0,x.getCurrFixedCols)(this.config,b.Split.right));(!E&&!C&&h>g||s+p.x-O-c[h].$width-D<0)&&(O+=D)}if(n){var M=(0,m.getTotalHeight)(u.slice(0,n));(!S&&!k&&f<_||P-p.y-M<0)&&(P-=M)}if(o){var T=(0,m.getTotalHeight)(u.slice(-o));(!S&&!k&&f>_||a+p.y-l-P-u[f].$height-T<0)&&(P+=T)}var V=s+p.x,H=a+p.y-l,j=P-p.y-u[f].$height,F=O-p.x-r[h].$width,R=P+2*u[f].$height+18-H,A=O+2*r[h].$width+18-V,L=j>0&&R<0?0:j<0?j:R,$=F>0&&A<0?0:F<0?F:A;this.scroll($+p.x,L+p.y)}},e.prototype.adjustColumnWidth=function(t,e){void 0===e&&(e=!0);var i=this.config.columns.filter((function(t){return!t.hidden})),n=i.filter((function(e){return e.id===t})),o=this._adjustColumnsWidth({rows:this.config.data,cols:n,totalCols:i,adjust:e});this.config.$totalWidth=i.reduce((function(t,e){if(o[e.id]){e.$fixedWidth=!0;var i=e.maxWidth,n=e.minWidth,r=o[e.id];e.$width=r,i&&r>i&&(e.$width=i),n&&e.$width<n&&(e.$width=n)}return t+e.$width}),0),this.paint()},e.prototype.getCellRect=function(t,e){var i,n,o=this.config.columns.filter((function(t){return!t.hidden})),r=this.data.getRawData(0,-1),s=this.getSpan(t,e),a=o.findIndex((function(t){return t.id==(s?s.column:e)})),l=r.findIndex((function(e){return e.id==(s?s.row:t)}));return{x:(0,m.getTotalWidth)(o.slice(0,a)),y:(0,m.getTotalHeight)(r.slice(0,l)),height:(null==s?void 0:s.rowspan)>1?(0,_.getHeight)(r,s):(null===(i=r[l])||void 0===i?void 0:i.$height)||0,width:(null==s?void 0:s.colspan)>1?(0,_.getWidth)(this.config.columns,s.colspan,this.config.columns.findIndex((function(t){return t.id===s.column}))):(null===(n=o[a])||void 0===n?void 0:n.$width)||0}},e.prototype.getColumn=function(t){for(var e,i=0,n=null===(e=this.config)||void 0===e?void 0:e.columns;i<n.length;i++){var o=n[i];if(o.id==t)return o}},e.prototype.addSpan=function(t){this.config.spans=this.config.spans||[];var e=(0,d.findIndex)(this.config.spans,(function(e){return"".concat(e.row)==="".concat(t.row)&&"".concat(e.column)==="".concat(t.column)}));e>=0?this.config.spans[e]=t:(this.config.spans.push((0,P.normalizeSpan)(t,this.config,this.data)),this._checkMarks(),this.paint())},e.prototype.getSpan=function(t,e){var i,n=this;if(this.config.spans){var o=this.data.getIndex(t.toString()),r=this.config.columns.findIndex((function(t){return t.id===e})),s=(0,d.findIndex)(this.config.spans,(function(t){var e=n.data.getIndex(t.row.toString()),i=n.config.columns.findIndex((function(e){return e.id===t.column})),s=e,a=t.rowspan?e+t.rowspan:e+1,l=i,c=t.colspan?i+t.colspan:i+1;return o>=s&&o<a&&r>=l&&r<c}));return null===(i=this.config)||void 0===i?void 0:i.spans[s]}},e.prototype.removeSpan=function(t,e){if(this.config.spans){var i=(0,d.findIndex)(this.config.spans,(function(i){return"".concat(i.row)=="".concat(t)&&"".concat(i.column)=="".concat(e)}));this.config.spans.splice(i,1),this.paint()}},e.prototype.editCell=function(t,e,i){var n,o=this.data.getItem(t),r=this.getColumn(e);if(o&&r){var s=r.editorType,a=this.getSpan(o.id,r.id);if(i||(i=this.config.autoHeight&&"number"!==r.type?"textarea":"input","date"===r.type&&(i="datePicker"),"boolean"===r.type&&(i="checkbox"),s&&(i=s),(0,d.isDefined)(null==a?void 0:a.text)&&(i=this.config.autoHeight?"textarea":"input")),"number"===r.type)if(!((0,d.isDefined)(null==a?void 0:a.text)&&["input","textarea"].includes(i))&&!["input","select","combobox"].includes(i))return;this.events.fire(b.GridEvents.beforeEditStart,[o,r,i])&&((null===(n=this.config.$editable)||void 0===n?void 0:n.editor)||this.config.$editable&&this.config.$editable.row===t&&this.config.$editable.col===e&&this.config.$editable.editorType===i||(this.config.$editable={row:o.id,col:r.id,isSpan:!!a,editorType:i},this.selection.config.disabled||this.selection.setCell(t.toString(),e.toString()),this.paint(),this.events.fire(b.GridEvents.afterEditStart,[o,r,i])))}else(0,p.dhxWarning)("item not found")},e.prototype.editEnd=function(t){this.config.$editable&&this.config.$editable.editor&&this.config.$editable.editor.endEdit(t)},e.prototype.getSortingState=function(){return{dir:this._sortDir,by:this._sortBy}},e.prototype.getHeaderFilter=function(t){var e=this,i=this.getColumn(t);if(i){var n=null;return i.header.forEach((function(i){i.content&&(n=e.content[i.content].element[t])})),n}},e.prototype.edit=function(t,e,i){this.editCell(t,e,i)},e.prototype.paint=function(){var e=this.config.hotkeys?Object.keys(this.config.hotkeys).length:0;!this.keyManager||this.keyManager.getKeyStorageLength()-e||this._initHotKey(!0),t.prototype.paint.call(this)},e.prototype._createView=function(){var t=this;return(0,l.create)({render:function(e,i){return t._destructed?(0,l.el)("div"):(0,w.render)(e,i,t._htmlEvents,t.selection,t._uid)},hooks:this._initHooks()},this)},e.prototype._parseColumns=function(t){void 0===t&&(t=!1);var e=this.config.columns.filter((function(t){return!t.hidden}));this.normalizeColumns({config:this.config,columns:e,configChanged:t}),(0,g.countColumns)(this.config,e)},e.prototype.normalizeColumns=function(t){var e,i,n,o=this,r=t.config,s=t.columns,a=t.configChanged;r.$headerHeightMap=[],r.$footerHeightMap=[],r.$headerHeight=r.$footerHeight=0;for(var l=0,c=s;l<c.length;l++){(p=c[l]).htmlEnable=null!==(e=p.htmlEnable)&&void 0!==e?e:r.htmlEnable,p.$cellCss=p.$cellCss||{},(0,g.normalizeArray)(p,"header"),(0,g.normalizeArray)(p,"footer"),p.minWidth&&p.minWidth<20&&(p.minWidth=20),p.maxWidth&&p.maxWidth<20&&(p.maxWidth=20);var u=p.minWidth||100;p.width&&(u=(u=p.maxWidth&&p.minWidth?p.width>=p.minWidth&&p.width<=p.maxWidth?p.width:p.width>=p.maxWidth?p.maxWidth:p.minWidth:p.maxWidth?p.width<=p.maxWidth?p.width:p.maxWidth>100?p.maxWidth:100:p.minWidth?p.width>=p.minWidth?p.width:p.minWidth:p.width)<20?20:u),p.$width=p.$width&&!a?p.$width:u,p.$width>p.maxWidth&&(p.$width=p.maxWidth),p.$width<p.minWidth&&(p.$width=p.minWidth)}for(var d=function(t){if(null===(i=t.header)||void 0===i?void 0:i.length){var e=0;t.header.forEach((function(i,n){(e=r.headerAutoHeight?o.getNormalizeContentHeight(i,t,r):r.headerRowHeight)>(r.$headerHeightMap[n]||0)&&(r.$headerHeightMap[n]=Math.max(e,r.headerRowHeight))}))}if(null===(n=t.footer)||void 0===n?void 0:n.length){var s=0;t.footer.forEach((function(e,i){(s=r.footerAutoHeight?o.getNormalizeContentHeight(e,t,r):r.footerRowHeight)>(r.$footerHeightMap[i]||0)&&(r.$footerHeightMap[i]=Math.max(s,r.footerRowHeight))}))}},h=0,f=s;h<f.length;h++){var p;d(p=f[h])}r.$headerHeight=r.$headerHeightMap.reduce((function(t,e){return t+e}),0),r.$footerHeight=r.$footerHeightMap.reduce((function(t,e){return t+e}),0)},e.prototype.getNormalizeContentHeight=function(t,e,i){return this.config.footerRowHeight},e.prototype._parseData=function(){this._detectColsTypes(),this.config.data=this.data.map((function(t){return t})),this.config.data=this._prepareData(this.data),this._checkMarks(),this._applyLocalFilter(),this._checkFilters()},e.prototype._createCollection=function(t){this.data=new p.DataCollection({prep:t},this.events)},e.prototype._getRowIndex=function(t){return this.data.getIndex(t)},e.prototype._setEventHandlers=function(){var t=this,e=function(e){var i=e.source,n=e.target,o=s(e,["source","target"]);(null==i?void 0:i.length)&&i.map((function(e){return t.data.exists(e)&&t.data.update(e,o)})),t.data.exists(n)&&t.data.update(n,o)};this.data.events.on(p.DataEvents.load,(function(){t._applyLocalFilter(!0),t._parseData(),t._parseColumns(),t.config.autoEmptyRow&&t._addEmptyRow(),t.config.data instanceof p.DataCollection?(0,l.awaitRedraw)().then((function(){return t._normalizeSpans()})):t._normalizeSpans(),t.paint()})),this.data.events.on(p.DataEvents.change,(function(e,i,n){if("load"!==i)if("setPage"!==i){if("sort"===i)n.dir?t._sortDir=n.dir:t._sortBy===n.by?t._sortDir="asc"===t._sortDir?"desc":"asc":t._sortDir="asc",t._sortBy=n.by;else if("add"===i||"update"===i||"remove"===i){if((0,d.isId)(e)&&"remove"===i){var o=t.selection.getCells().find((function(t){return t.row.id===e}));o&&t.selection.removeCell(o.row.id,o.column.id)}t.config.data=t._prepareData(t.data)}else(0,p.isTreeCollection)(t.data)&&(t.config.data=t._prepareData(t.data)),t._adjustColumns();if((0,d.isId)(e)&&(t._checkFilters(),t._checkSelectFilterValue()),t._detectColsTypes(),t._removeMarks(),t._checkMarks(),t.config.autoEmptyRow&&(!t._activeFilters||(0,d.isEmptyObj)(t._activeFilters))){var r=t.data.find({by:"$emptyRow",match:!0});if(r){if(r.id===e)return;t.data.move(r.id,t.data.getLength()-1)}else t._addEmptyRow()}switch(i){case"add":case"remove":case"sort":t._normalizeSpans()}t._render()}else(0,l.awaitRedraw)().then((function(){var e=t.config.columns.find((function(t){return!0!==t.hidden}));t.scrollTo(t.data.getId(n[0]).toString(),e.id.toString()),t._render()}))})),this.data.events.on(p.DataEvents.filter,(function(e){e||t.data.getRawFilters({permanent:!0})||t._applyLocalFilter(),!e||(0,p.isOnlyPermanentFilters)(e)?(t._filterData=t.data.map((function(t){return t}))||[],t._setUniqueData(),t._clearFilterValue()):t._checkFilters(),t._removeMarks(),t._checkMarks(),t._normalizeSpans(),t.paint()})),this.data.events.on(p.DataEvents.removeAll,(function(){t._hiddenFilters={},t.config.columns.map((function(t){t.header.map((function(e){!e.content||"selectFilter"!==e.content&&"comboFilter"!==e.content||(t.$uniqueData=[])}))})),(0,d.isEmptyObj)(t._activeFilters)||t.data.resetFilter(),t._clearFilterValue(!0)})),this.events.on(p.DragEvents.beforeDrag,(function(e,i){return t.data.getItem(e.start)?t.events.fire(b.GridEvents.beforeRowDrag,[e,i]):"column"===t.config.dragItem||"both"===t.config.dragItem?t.events.fire(b.GridEvents.beforeColumnDrag,[e,i]):void 0})),this.events.on(p.DragEvents.dragStart,(function(i,n){var o=i.source,r=i.target,s=i.start;e({source:o,target:r,$dragtarget:!0}),t.data.getItem(s)?(t.events.fire(b.GridEvents.dragRowStart,[i,n]),t._autoScroll("vertical")):"column"!==t.config.dragItem&&"both"!==t.config.dragItem||(t.events.fire(b.GridEvents.dragColumnStart,[i,n]),t._autoScroll("horizontal"))})),this.events.on(p.DragEvents.dragIn,(function(e,i){t.data.getItem(e.start)?t.events.fire(b.GridEvents.dragRowIn,[e,i]):"column"!==t.config.dragItem&&"both"!==t.config.dragItem||t.events.fire(b.GridEvents.dragColumnIn,[e,i])})),this.events.on(p.DragEvents.dragOut,(function(e,i){t.data.getItem(e.start)?t.events.fire(b.GridEvents.dragRowOut,[e,i]):"column"!==t.config.dragItem&&"both"!==t.config.dragItem||t.events.fire(b.GridEvents.dragColumnOut,[e,i])})),this.events.on(p.DragEvents.canDrop,(function(i,n){var o=i,r=o.source,s=o.target,a=o.dragItem;delete i.dragItem,e({source:r,target:s,$drophere:!0}),"row"===a?t.events.fire(b.GridEvents.canRowDrop,[i,n]):"column"!==t.config.dragItem&&"both"!==t.config.dragItem||t.events.fire(b.GridEvents.canColumnDrop,[i,n])})),this.events.on(p.DragEvents.cancelDrop,(function(i,n){var o=i.source,r=i.target,s=i.start;e({source:o,target:r,$drophere:void 0,$dragtarget:void 0}),t.data.getItem(s)?t.events.fire(b.GridEvents.cancelRowDrop,[i,n]):"column"!==t.config.dragItem&&"both"!==t.config.dragItem||t.events.fire(b.GridEvents.cancelColumnDrop,[i,n])})),this.events.on(p.DragEvents.beforeDrop,(function(e,i){return t.data.getItem(e.start)||"row"===t.config.dragItem&&("both"===t.config.dragMode||"target"===t.config.dragMode)?t.events.fire(b.GridEvents.beforeRowDrop,[e,i]):"column"===t.config.dragItem||"both"===t.config.dragItem?t.events.fire(b.GridEvents.beforeColumnDrop,[e,i]):void 0})),this.events.on(p.DragEvents.afterDrop,(function(e,i){var n,o=e.source,r=e.target,s=e.start;if(t.data.getItem(e.start)){if(o.some((function(t){return t==r})))return;for(var l=t.data.getItem(e.start),c=0,u=t.config.columns;c<u.length;c++){var d=u[c];void 0===l[d.id]&&t.data.update(l.id,((n={})[d.id]=null,n),!0)}var h=t.data.getInitialData(),f=null==h?void 0:h.findIndex((function(t){return t.id==s})),p=null==h?void 0:h.findIndex((function(t){return t.id==r}));if(f>-1&&p>-1)if((null==o?void 0:o.length)>1){for(var v=[],g=function(t){var e=null==h?void 0:h.findIndex((function(e){return e.id==t})),i=null==h?void 0:h.splice(e,1)[0];v.push(i)},_=0,m=o;_<m.length;_++){g(m[_])}p=null==h?void 0:h.findIndex((function(t){return t.id==r})),p>0&&++p,null==h||h.splice.apply(h,a([p,0],v,!1))}else null==h||h.splice(p,0,null==h?void 0:h.splice(f,1)[0]);t._adjustColumns(),t._checkFilters(),t.paint(),t.events.fire(b.GridEvents.afterRowDrop,[e,i])}else"column"!==t.config.dragItem&&"both"!==t.config.dragItem||t.events.fire(b.GridEvents.afterColumnDrop,[e,i])})),this.events.on(p.DragEvents.afterDrag,(function(i,n){var o=i.source,r=i.target,s=i.start;e({source:o,target:r,$dragtarget:void 0}),t.data.getItem(s)?t.events.fire(b.GridEvents.afterRowDrag,[i,n]):"column"!==t.config.dragItem&&"both"!==t.config.dragItem||t.events.fire(b.GridEvents.afterColumnDrag,[i,n]),t._normalizeSpans()})),this.events.on(b.GridEvents.cellMouseDown,(function(e,i,n){if(n.targetTouches){if(t._touch.timer=setTimeout((function(){t._dragStart(n)}),t._touch.duration),t._touch.timeStamp)t._touch.dblDuration>=t._touch.timeStamp-+n.timeStamp.toFixed()&&((!1!==i.editable&&t.config.editable||i.editable)&&t.editCell(e.id,i.id,i.editorType),n.preventDefault(),t.events.fire(b.GridEvents.cellDblClick,[e,i,n])),t._touch.timeStamp=null;else t._touch.timeStamp=+n.timeStamp.toFixed();setTimeout((function(){t._touch.timeStamp=null}),t._touch.dblDuration)}else t._dragStart(n)})),this._events.on(b.GridSystemEvents.cellTouchMove,(function(e,i,n){t._touch.start&&n.preventDefault(),t._clearTouchTimer()})),this._events.on(b.GridSystemEvents.cellTouchEnd,(function(){t._touch.start=!1,t._clearTouchTimer()})),this.events.on(b.GridEvents.filterChange,(function(e,i,n,o){var r,s,a;if(t.events.fire(b.GridEvents.beforeFilter,[e,i])){if(t.config.autoEmptyRow){var l=t.data.find({by:"$emptyRow",match:!0});l&&t.data.remove(l.id)}t._activeFilters||(t._activeFilters={});var c=t.getColumn(i),u=c.header.filter((function(t){return t.content===n&&void 0!==t.customFilter}))[0];if("comboFilter"===n&&void 0!==e||"comboFilter"!==n&&""!==e){var d=(0,g.getEditorOptions)(c);"combobox"!==c.editorType&&"select"!==c.editorType&&"multiselect"!==c.editorType||!d||(e=Array.isArray(e)?e.map((function(t){var e;return(null===(e=d.find((function(e){return"string"==typeof e?e===t:e.value===t})))||void 0===e?void 0:e.id)||t})):null!==(s=null===(r=d.find((function(t){return"string"==typeof t?t===e:t.value===e})))||void 0===r?void 0:r.id)&&void 0!==s?s:e);t._activeFilters[i]={by:i,match:e,compare:null!==(a=null==u?void 0:u.customFilter)&&void 0!==a?a:function(e){var i=t.getColumn(e);return function(e,o,r,s){return t.content[n].match({val:e,match:o,obj:r,multi:s,col:i})}}(i),multi:"multiselect"===(null==c?void 0:c.editorType)}}else delete t._activeFilters[i];o||t.data.filter(t._activeFilters)}})),this.events.on(b.GridEvents.scroll,(function(e){t._scroll={top:e.y,left:e.x},t.editEnd(),t.paint()})),this.events.on(b.GridEvents.cellDblClick,(function(e,i,n){(0,u.locateNodeByClassName)(n,"dhx_boolean-cell")||e.hasOwnProperty("$groupName")||(!1!==i.editable&&t.config.editable||i.editable)&&t.editCell(e.id,i.id,i.editorType)})),this.events.on(b.GridEvents.afterEditEnd,(function(e,i,n){var o,s;if(!(null===(s=t.config.$editable)||void 0===s?void 0:s.editor)||t.config.$editable.col===n.id&&t.config.$editable.row===i.id){var a,l;t.config.$editable?(a=t.config.$editable.row,l=t.config.$editable.col):(a=i.id,l=n.id);var c=t.getSpan(a,l);if((0,d.isDefined)(null==c?void 0:c.text)&&void 0!==e)c.text=e.toString();else{var u=t.data.getItem(a);delete u.$emptyRow,void 0!==e&&t.data.update(a,r(r({},u),((o={})[l]=e,o)))}t.config.$editable=null,t.paint()}})),this.events.on(b.GridEvents.headerCellMouseDown,(function(e,i){var n=i.target.getAttribute("dhx_resized");if(n&&t.events.fire(b.GridEvents.beforeResizeStart,[e,i])&&(0,S.startResize)(t,n.toString(),i,(function(){t.paint(),t.config.$resizing=null,t.events.fire(b.GridEvents.afterResizeEnd,[e,i])})),i.targetTouches){if(t._touch.timeStamp)t._touch.dblDuration>=t._touch.timeStamp-+i.timeStamp.toFixed()&&(i.preventDefault(),t.events.fire(b.GridEvents.headerCellDblClick,[e,i])),t._touch.timeStamp=null;else t._touch.timeStamp=+i.timeStamp.toFixed();setTimeout((function(){t._touch.timeStamp=null}),t._touch.dblDuration)}})),this.events.on(b.GridEvents.footerCellDblClick,(function(e,i){if(i.targetTouches){if(t._touch.timeStamp)t._touch.dblDuration>=t._touch.timeStamp-+i.timeStamp.toFixed()&&(i.preventDefault(),t.events.fire(b.GridEvents.footerCellDblClick,[e,i])),t._touch.timeStamp=null;else t._touch.timeStamp=+i.timeStamp.toFixed();setTimeout((function(){t._touch.timeStamp=null}),t._touch.dblDuration)}})),this.events.on(b.GridEvents.resize,(function(){return t._parseColumns()})),this.events.on(b.GridEvents.afterResizeEnd,(function(e){var i;t.config.columns=null===(i=t.config.columns)||void 0===i?void 0:i.map((function(t){return t.id==e.id&&(t.width=e.$width),t})),t._parseColumns()}))},e.prototype._addEmptyRow=function(){var t=this.data.getId(this.data.getLength()-1),e=this.data.getItem(t),i=this.config.columns.filter((function(t){return!t.hidden}));(0,m.isRowEmpty)(e)||this.data.add(i.reduce((function(t,e){return t[e.id]="",t}),{$emptyRow:!0}))},e.prototype._sort=function(t,e,i){var n=this;e||(e=this._sortBy===t&&"asc"===this._sortDir?"desc":"asc");this.data.sort({by:t,dir:e,as:null!=i?i:function(e){var i=n.getColumn(t);return e&&"date"===i.type?"string"==typeof e?(0,E.stringToDate)(e,i.format).getTime():e.getTime():e?"".concat(e):""}}),this.events.fire(b.GridEvents.afterSort,[this.getColumn(t),e])},e.prototype._clearTouchTimer=function(){this._touch.timer&&(clearTimeout(this._touch.timer),this._touch.timer=null)},e.prototype._checkFilters=function(t){if(void 0===t&&(t=!1),(0,d.isEmptyObj)(this._activeFilters))t&&this.data.resetFilter(),this._filterData=this.data.map((function(t){return t}))||[],this._setUniqueData();else{var e=this.data.getRawFilters({permanent:!0});this.data.filter(e,{$restore:!0},!0),this._filterData=this.data.map((function(t){return t}))||[],this._setUniqueData(),this.data.filter(null,{$restore:!0},!0),this._filterData=this.data.map((function(t){return t}))||[],this._setUniqueData(!0)}},e.prototype._setUniqueData=function(t){var e=this;void 0===t&&(t=!1),this._filterData&&this.config.columns.forEach((function(i){i.header.forEach((function(n){if(n.content&&("selectFilter"===n.content||"comboFilter"===n.content)){var o=i.header.some((function(t){var e;return null===(e=t.filterConfig)||void 0===e?void 0:e.multiselection})),r=i.header.some((function(t){var e;return null===(e=t.filterConfig)||void 0===e?void 0:e.filter}));if(!t||t&&!o&&!r){var s=(0,g.getUnique)(e._filterData,i.id,o),a=(0,g.getEditorOptions)(i);"combobox"!==i.editorType&&"select"!==i.editorType&&"multiselect"!==i.editorType||!a||(s=s.map((function(t){var e=a.find((function(e){return"string"==typeof e?t===e:t===e.id}));return e&&"string"!=typeof e?e.value:t}))),s="string"!==i.type?Array.from(new Set(s.map((function(t){return(0,g.toFormat)(t,i.type,i.format)})))):s,t?i.$activeFilterData=s:(i.$uniqueData=s,i.$activeFilterData&&delete i.$activeFilterData)}}}))}))},e.prototype._checkSelectFilterValue=function(){var t,e=null===(t=this.content)||void 0===t?void 0:t.selectFilter;if(e)for(var i in e.value){var n=this.getColumn(i),o=e.value[i];n.hidden||!o||n.$uniqueData.includes(o)||e.element[i].clear()}},e.prototype._clearFilterValue=function(t){var e=this;void 0===t&&(t=!1),["selectFilter","inputFilter"].map((function(t){var i;return null===(i=e.content)||void 0===i?void 0:i[t]})).filter((function(t){return t})).forEach((function(i){for(var n in i.value)!i.value[n]||!t&&e.getColumn(n).hidden||i.element[n].clear(!0)}))},e.prototype._adjustColumns=function(){var t=this;if("boolean"==typeof this.config.adjust||"data"===this.config.adjust||"header"===this.config.adjust||"footer"===this.config.adjust){var e=this.config.columns.filter((function(t){return!t.hidden&&!(0,d.isDefined)(t.adjust)}));if(!e.length)return;var i=this.config.data&&this.config.data.length?this.config.data:this.data.map((function(t){return t})),n=this._adjustColumnsWidth({rows:i,cols:e,totalCols:e});this.config.$totalWidth=e.reduce((function(t,e){e.$fixedWidth=!0;var i=e.maxWidth,o=e.minWidth,r=n[e.id];return e.$width=r,i&&r>i&&(e.$width=i),o&&e.$width<o&&(e.$width=o),t+e.$width}),0)}this.config.columns.filter((function(t){return!t.hidden&&(0,d.isDefined)(t.adjust)})).forEach((function(e){t.adjustColumnWidth(e.id,e.adjust)}))},e.prototype._prepareData=function(t){var e=this;return(this.config.autoHeight||this.config.headerAutoHeight||this.config.footerAutoHeight)&&(this.config.autoHeight=this.config.headerAutoHeight=this.config.footerAutoHeight=!1),this._normalizeDataType(),this._adjustColumns(),t.map((function(t){return r(r({},t),{$height:Number(t.height)||e.config.rowHeight})}))},e.prototype._adjustColumnsWidth=function(t){var e,i,n,o,r=this,s=t.rows,a=t.cols,l=t.adjust,c=void 0===l?this.config.adjust:l,u={};if("header"===c||!0===c){var d=a.filter((function(t){return t.header}));if(y=(0,g.getMaxColsWidth)(this._prepareColumnData(d,"header"),d,{font:"normal 14.4px Arial"},"header"))for(var h=0,f=Object.entries(y);h<f.length;h++){var p=f[h],v=p[0],_=p[1];u=Object.assign(u,((e={})[v]=+_+24+(o=this.getColumn(v),(0,m.isSortable)(r.config,o)?16:0),e))}}if("footer"===c||!0===c){var y;d=a.filter((function(t){return t.footer}));if(y=(0,g.getMaxColsWidth)(this._prepareColumnData(d,"footer"),d,{font:"normal 14.4px Arial"},"footer"))for(var b=0,w=Object.entries(y);b<w.length;b++){var x=w[b];v=x[0],_=x[1];(u[v]&&u[v]<+_+24||!u[v])&&(u=Object.assign(u,((i={})[v]=+_+24,i)))}}if(("data"===c||!0===c)&&(y=(0,g.getMaxColsWidth)(s,a,{font:"normal 14.4px Arial"},"data")))for(var E=0,C=Object.entries(y);E<C.length;E++){var S=C[E];v=S[0],_=S[1];(u[v]&&u[v]<+_+24||!u[v])&&(u=Object.assign(u,((n={})[v]=+_+24,n)))}return u},e.prototype._prepareColumnData=function(t,e){for(var i,n,o,s,a,l,c,u,d,h,f,p,v,g=[],_=0;_<t.length;_++){for(var y=[],b=0;b<(null===(n=t[_])||void 0===n?void 0:n[e].length);b++){var w={};if(null===(s=null===(o=t[_])||void 0===o?void 0:o[e][b])||void 0===s?void 0:s.text){var x=null===(l=null===(a=t[_])||void 0===a?void 0:a[e][b])||void 0===l?void 0:l.htmlEnable;w[t[_].id]=(null===(u=null===(c=t[_])||void 0===c?void 0:c[e][b])||void 0===u?void 0:u.text)||"",x&&(w[t[_].id]=(0,m.removeHTMLTags)(w[t[_].id])),y.push(w)}else if(null===(h=null===(d=t[_])||void 0===d?void 0:d[e][b])||void 0===h?void 0:h.content){var E=null===(f=this.content)||void 0===f?void 0:f[null===(v=null===(p=t[_])||void 0===p?void 0:p[e][b])||void 0===v?void 0:v.content];"function"==typeof E.calculate?w[t[_].id]=(null==E?void 0:E.toHtml(this.getColumn(t[_].id),r(r({},this.config),{datacollection:this.data})))||"":w[t[_].id]="",y.push(w)}}for(var C=0;C<y.length;C++)for(var S=0,k=Object.entries(y[C]);S<k.length;S++){var O=k[S],P=O[0],I=O[1];g[C]=r({},g[C])||{},g[C]=Object.assign(g[C],((i={})[P]=I,i))}}return g},e.prototype._dragStart=function(t){if(this.config.dragMode&&("row"===this.config.dragItem||"both"===this.config.dragItem)&&!this.config.$editable){var e=this.getColumn(t.target.getAttribute("data-dhx-col-id"));if(!1===(null==e?void 0:e.draggable))return;var i=(0,u.locateNode)(t,"data-dhx-id"),n=i&&i.getAttribute("data-dhx-id");return t.targetTouches&&(this._touch.start=!0),p.dragManager.onMouseDown(t,[n],[this._getRowGhost([n])])}},e.prototype._getRowGhost=function(t){var e=this._container||(0,u.toNode)(this._uid),i=t.map((function(t){return e.querySelector('.dhx_grid-row[data-dhx-id="'.concat(t,'"]'))})),n=document.createElement("div");return i.forEach((function(t){return t&&n.appendChild(t.cloneNode(!0))})),n},e.prototype._initHooks=function(){var t=this;return{didMount:function(){t._canDataParse(!0)&&(t._container||t._applyAutoWidth(),t.data.parse(t.config.data)),t.config.autoWidth&&t._parseColumns()}}},e.prototype._normalizeDataType=function(){var t=this,e=this.config.columns.reduce((function(t,e){return"number"===e.type&&t.push(e),t}),[]);e.length&&this.data.forEach((function(i){for(var n,o=0,r=e;o<r.length;o++){var s=r[o],a=(0,g.getValueForNumberColumn)(s,i[s.id]);if(Number.isNaN(a))throw new Error("Incorrect data in column with type 'number', see docs: https://docs.dhtmlx.com/suite/grid/api/api_gridcolumn_properties/");i[s.id]!==a&&t.data.update(i.id,((n={})[s.id]=a,n),!0)}}))},e.prototype._applyLocalFilter=function(t){void 0===t&&(t=!1);var e={add:!0,permanent:!0,$local:!0},i=this.data.getRawFilters(),n=Object.keys(i||{}).find((function(t){return i[t].config.$local}));n&&(e.id=n),t?this.data.filter((function(t){return t}),e,!0):this.data.filter((function(t){return t&&!t.hidden}),e,!0)},e.prototype._normalizeSpans=function(){var t,e=this;this.config.spans=null===(t=this.config.spans)||void 0===t?void 0:t.map((function(t){return(0,P.normalizeSpan)(t,e.config,e.data)}))},e.prototype._canDataParse=function(t){var e;return void 0===t&&(t=!1),!!((null===(e=this.config.data)||void 0===e?void 0:e.length)&&this.config.data instanceof Array&&this.config.columns)&&(this.config.autoWidth&&this.config.autoHeight?t:!t)},e.prototype._init=function(){this.events=new c.EventSystem(this),this._events=new c.EventSystem(this),this._attachDataCollection(),this.export=new v.Exporter("grid",this.version,this),this._setEventHandlers()},e.prototype._attachDataCollection=function(){var t=this;if(this.config.data instanceof p.DataCollection)return this.data=this.config.data,this.data.config.collapsed=this.config.collapsed,void(this.config.data=this.data.serialize());this._createCollection((function(e){return e.spans&&(t.config.spans=e.spans,e=e.data),e}))},e.prototype._setMarks=function(t,e){for(var i=[],n=0,o=this.data.map((function(e){return i.push(e[t.id]),{id:e.id,data:e[t.id],row:e}}));n<o.length;n++){var r=o[n],s=e(r.data,i,r.row,t);s&&(t.$cellCss=t.$cellCss||{},t.$cellCss[r.id]+=" "+s)}},e.prototype._checkMarks=function(){var t=this;this.config.columns.map((function(e){var i=e.mark;i&&("function"==typeof i?t._setMarks(e,i):t._setMarks(e,(function(t,e){var n=[];e.forEach((function(t){null!=t&&""!==t&&n.push(parseFloat(t))}));var o=(0,d.getMinArrayNumber)(n),r=(0,d.getMaxArrayNumber)(n);return i.max&&r===parseFloat(t)?i.max:!(!i.min||o!==parseFloat(t))&&i.min})))}))},e.prototype._removeMarks=function(){this.config.columns.forEach((function(t){t.mark&&(t.$cellCss={})}))},e.prototype._detectColsTypes=function(){this.config.columns.forEach((function(t){return t.type?t:t.format?(t.type="number",t):void(t.type||(t.type="string"))}))},e.prototype._destroyContent=function(){for(var t in this.content)"comboFilter"===t&&this.content[t].destroy()},e.prototype._render=function(){this.paint()},e.prototype._initHotKey=function(t){void 0===t&&(t=!1);var e=(0,k.getKeysHandlers)(this);for(var i in e)this.keyManager.exist(i)||this.keyManager.addHotKey(i,e[i]);if(!t)for(var i in this.config.hotkeys)this.keyManager.addHotKey(i,this.config.hotkeys[i])},e.prototype._normalizeConfig=function(t){return Object.keys(t).forEach((function(e){e.startsWith("$")&&delete t[e]})),t},e.prototype._autoScroll=function(t){var e,i,n,o=(null===(e=this.scrollView)||void 0===e?void 0:e.config.enable)?null===(i=this.getRootNode())||void 0===i?void 0:i.querySelector(".scroll-view"):null===(n=this.getRootNode())||void 0===n?void 0:n.querySelector(".dhx_grid-body");if(o){var r=null,s=o.getBoundingClientRect(),a=s.top,l=s.bottom,c=s.left,u=s.right,d=s.height,h=s.width,f=function(t){"up"===t||"down"===t?o.scrollBy(0,"up"===t?-40:40):o.scrollBy("left"===t?-40:40,0),r=setTimeout((function(){f(t)}),100)},p=function(e){var i=e.clientX,n=e.clientY;switch(t){case"horizontal":i>u-30&&i<u&&n>a&&n<l?r||f("right"):i>c&&i<c+30&&n>a&&n<l?r||f("left"):r&&(clearTimeout(r),r=null);break;case"vertical":n>l-30&&n<l&&i>c&&i<u?r||f("down"):n>a&&n<a+30&&i>c&&i<u?r||f("up"):r&&(clearTimeout(r),r=null)}};(h<o.scrollWidth||d<o.scrollHeight)&&(document.addEventListener("pointermove",p),document.addEventListener("pointerup",(function(){document.removeEventListener("pointermove",p),r&&clearTimeout(r)}),{once:!0}))}},e.prototype._applyAutoWidth=function(){var t,e,i=this._container||(null===(t=this.getRootView().node.parent)||void 0===t?void 0:t.el);if(i){var n=(0,w.getElementSizes)(i),o=null===(e=this.scrollView)||void 0===e?void 0:e.config.enable;(0,w.applyAutoWidth)(this.config,n,o)}},e}(f.View);e.Grid=I},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.proRender=e.render=e.applyAutoWidth=e.getElementSizes=e.getRenderConfig=void 0;var o=i(0),r=i(3),s=i(18),a=i(16),l=i(8),c=i(32),u=i(98),d=i(99),h=i(1),f=i(24);function p(t,e,i,n){var o=void 0===i?[0,0]:i,r=o[0],s=o[1],a=t[0],l=t[1],c=e[0],u=e[1];return c<=a&&a<=u||c<=l&&l<=u||a<=c&&u<=l||a<r||s&&l>=n-s}function v(t,e,i){var o=t.config,r=o.spans,a=void 0===r?[]:r,c=o.columns,u=o.leftSplit,d=void 0===u?0:u,h=o.topSplit,v=void 0===h?0:h,g=o.rightSplit,_=void 0===g?0:g,m=o.bottomSplit,y=void 0===m?0:m,b=c.filter((function(t){return!t.hidden})),w=(0,s.calculatePositions)(i.width,i.height,t._scroll,o,e),x=b.slice(w.xStart,w.xEnd),E=e.slice(w.yStart,w.yEnd),C=a.filter((function(t){var i;if(!(null===(i=t.$renderFrom)||void 0===i?void 0:i.length))return!1;var n=p(t.$rowsVisibility,[w.yStart,w.yEnd],[v,y],e.length),o=p(t.$colsVisibility,[w.xStart,w.xEnd],[d,_],c.length);return n&&o})),S={left:(0,f.getCurrFixedCols)(o,l.Split.left),right:(0,f.getCurrFixedCols)(o,l.Split.right)},k={top:e.slice(0,o.topSplit||0),bottom:o.bottomSplit?e.slice(-o.bottomSplit):[]};return n(n({},o),{data:e,columns:o.columns,scroll:t._scroll,$positions:w,headerHeight:o.$headerHeight,footerHeight:o.$footerHeight,firstColId:b[0]&&b[0].id,events:t.events,_events:t._events,filteredColumns:b,currentColumns:x,currentRows:E,currentSpans:C,fixedColumns:S,fixedRows:k,sortBy:t._sortBy,sortDir:t._sortDir,content:t.content,gridId:t._uid,$renderFrom:"render"})}function g(t){if(t&&(t.tagName||(t=t._parent._container),t)){var e=t.currentStyle||window.getComputedStyle(t),i=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)||0,n=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)||0;return{width:t.clientWidth-i,height:t.clientHeight-n}}}function _(t,e){var i,r=(0,c.getCells)(t),s=t.filteredColumns,l=t.$resizing,u=t.$totalHeight,d=t.$totalWidth,f=t.leftSplit,p=t.data,v=t.$positions,g=(0,c.getSpans)(t);if(l){var _=(0,h.findIndex)(s,(function(t){return t.id===l})),m=(0,a.getTotalWidth)(s.slice(0,_))+s[_].$width;i=(0,o.el)(".dhx_grid-resize-line",{style:{top:0,left:m,height:u}})}var y=t.selection?t.selection.toHTML():null;y="string"==typeof y?(0,o.el)("div.dhx_selection",{".innerHTML":y}):y;var b,w=v;return(0,o.el)(".dhx_data-wrap",{style:{height:u,width:d,"padding-left":e.x,"padding-top":e.y},role:"presentation"},[(0,o.el)(".dhx_grid_data".concat(f?".dhx_grid_fixed_left":""),n(n({_flags:o.KEYED_LIST},(0,c.getHandlers)(w.yStart,w.xStart,t)),(b=p.length,{role:"rowgroup","aria-rowcount":b})),r),(0,o.el)(".dhx_span-spans",n({role:"presentation"},(0,c.getHandlers)(w.yStart,w.xStart,t)),g),(0,o.el)(".dhx_grid_selection",{_ref:"selection","aria-hidden":"true"},[y,i])])}function m(t,e,i){var n=i.height-f.BORDERS;return n=e?n:n-t.headerHeight,t.$footer?e?n:n-t.footerHeight:n}function y(t,e,i){void 0===i&&(i=!1);var n=!i&&t.$totalHeight>=e.height-(t.$headerHeight||0)?(0,r.getScrollbarWidth)():0,o=e.width-f.BORDERS-n;if(!(o<0)){var s=(t.columns||[]).filter((function(t){return!t.hidden})),l=[],c=[];s.forEach((function(e){e.width||e.$fixedWidth||!(0,a.isAutoWidth)(t,e)?l.push(e):c.push(e)}));var u=c.reduce((function(t,e){return t+(e.gravity||1)}),0),d=(0,a.getTotalWidth)(l);c.forEach((function(t){var e=o>d?(o-d)*((t.gravity||1)/u):0,i=t.minWidth&&e<(t.minWidth||0),n=t.maxWidth&&e>(t.maxWidth||0);i?(t.$width=t.minWidth,d+=(t.$width||0)-e,c=c.filter((function(e){return e.id!=t.id})),l.push(t)):n&&(t.$width=t.maxWidth,d+=(t.$width||0)-e,c=c.filter((function(e){return e.id!=t.id})),l.push(t))})),u=c.reduce((function(t,e){return t+(e.gravity||1)}),0),d=(0,a.getTotalWidth)(l),c.forEach((function(t){var e=o>d?(o-d)*((t.gravity||1)/u):0;t.$width=e}))}}e.getRenderConfig=v,e.getElementSizes=g,e.applyAutoWidth=y,e.render=function(t,e,i,r,s){var h=g(e._container);t&&t.node&&t.node.parent&&t.node.parent.el&&(h=g(t.node.parent.el));var p=e.config;if(!p)return(0,o.el)("div");if(!p.columns.length)return(0,o.el)(".dhx_grid",{"data-dhx-widget-id":s,"data-dhx-root-id":p.rootParent,role:"empty-grid"});var b=e.data.getRawData(0,-1,null,2);p.columns.reduce((function(t,e){return e.hidden?t:e.hidden}),!0)?p.$totalHeight=0:p.$totalHeight=b.reduce((function(t,e){return t+(e.$height||0)}),0);var w={width:(p.width&&"number"==typeof p.width?p.width:null==h?void 0:h.width)||0,height:(p.height&&"number"==typeof p.height?p.height:null==h?void 0:h.height)||0};(0,a.isAutoWidth)(p)&&(y(p,w),p.$totalWidth=(0,a.getTotalWidth)(p.columns.filter((function(t){return!t.hidden})))),p.$width=w.width,p.$height=w.height;var x=v(e,b,w);x.selection=r,x.datacollection=e.data;var E=(0,c.getShifts)(x);x.$scrollBarWidth=(0,f.calcScrollBarWidth)(x);var C,S,k,O,P=(0,a.isCssSupport)("position","sticky"),I=m(x,P,w),D={wrapper:w,sticky:P,shifts:E,gridBodyHeight:I},M=(0,d.getFixedRows)(x,n(n({},D),{name:"header",position:"top"})),T=x.$footer?(0,d.getFixedRows)(x,n(n({},D),{name:"footer",position:"bottom"})):null,V=x.$totalWidth+f.BORDERS<w.width?"dhx_grid-less-width":"",H=x.$totalHeight+f.BORDERS<w.height?"dhx_grid-less-height":"",j=x.fixedColumns.right.length?"dhx_grid__contains_cols_right--fixed":"",F=p.bottomSplit?"dhx_grid__contains_rows_bottom--fixed":"";if(!t.node){var R=e.getScrollState(),A=R.x,L=R.y;(0,o.awaitRedraw)().then((function(){e.scroll(A,L)}))}return(0,o.el)(".dhx_grid.dhx_widget",n({class:(x.css||"")+(P?"":" dhx_grid_border")+(p.multiselection?" dhx_no-select--pointer":""),"data-dhx-widget-id":s,"data-dhx-root-id":p.rootParent},(C=x.data,S=p.columns,k=x.editable,O=x.multiselection,{role:"grid","aria-rowcount":C.length,"aria-colcount":S.filter((function(t){return!t.hidden})).length,"aria-readonly":k?"false":"true","aria-multiselectable":O?"true":"false"})),[(0,o.resizer)((function(){return e.paint()})),(0,o.el)(".dhx_grid-content",n(n({style:n({},w)},i),{class:"".concat(V," ").concat(H," ").concat(j," ").concat(F).trim(),role:"presentation"}),[P?null:M,(0,o.el)(".dhx_grid-body",{style:{height:I,width:w.width-f.BORDERS},onscroll:i.onscroll,_ref:"grid_body",role:"presentation"},[(0,o.el)("div",{},[P?M:null,_(x,E),P?T:null])]),(0,u.getFixedColsHeader)(x,D,l.Split.left),(0,u.getFixedColsHeader)(x,D,l.Split.right),(0,u.getFixedCols)(x,D,l.Split.left),(0,u.getFixedCols)(x,D,l.Split.right),(0,d.getFixedDataRows)(x,D,l.Split.top),(0,d.getFixedDataRows)(x,D,l.Split.bottom),P?null:T])])},e.proRender=function(t,e,i,r,s){var h,p=g(e._container);t&&t.node&&t.node.parent&&t.node.parent.el&&(p=g(t.node.parent.el));var b=e.config;if(!b)return(0,o.el)("div");if(!b.columns.length)return(0,o.el)(".dhx_grid",{"data-dhx-widget-id":s,"data-dhx-root-id":b.rootParent,role:"empty-grid"});var w,x=e.data.getRawData(0,-1,null,2);b.columns.reduce((function(t,e){return e.hidden?t:e.hidden}),!0)?b.$totalHeight=0:b.$totalHeight=x.reduce((function(t,e){return t+(e.$height||0)}),0),"auto"===e.config.height&&(w=function(t,e,i){var n,o,r=t._container,s=e.$headerHeight+(e.$footerHeight&&e.$footerHeight+1)+e.$totalHeight+f.BORDERS;if(r){var a=window.getComputedStyle(r),l=a.minHeight,c=a.maxHeight;return s<=parseFloat(l)?parseFloat(l):s>=parseFloat(c)?parseFloat(c):s+(0,f.calcScrollBarWidth)(e,!!(null===(n=t.scrollView)||void 0===n?void 0:n.config.enable),i).x}return s+(i?(0,f.calcScrollBarWidth)(e,!!(null===(o=t.scrollView)||void 0===o?void 0:o.config.enable),i).x:0)}(e,b,p));var E=b.width&&"number"==typeof b.width?b.width:null==p?void 0:p.width,C=b.height&&"number"==typeof b.height?b.height:null==p?void 0:p.height,S={width:E||0,height:("auto"===e.config.height?w:C)||0};(0,a.isAutoWidth)(b)&&(y(b,S,e.scrollView&&e.scrollView.config.enable),b.$totalWidth=(0,a.getTotalWidth)(b.columns.filter((function(t){return!t.hidden})))),b.$width=S.width,b.$height=S.height;var k=v(e,x,S);k.selection=r,k.datacollection=e.data;var O=(0,c.getShifts)(k);k.$scrollBarWidth=(0,f.calcScrollBarWidth)(k,!!(null===(h=e.scrollView)||void 0===h?void 0:h.config.enable));var P=(0,a.isCssSupport)("position","sticky"),I=m(k,P,S),D={wrapper:S,sticky:P,shifts:O,gridBodyHeight:I},M=(0,d.getFixedRows)(k,n(n({},D),{name:"header",position:"top"})),T=k.$footer?(0,d.getFixedRows)(k,n(n({},D),{name:"footer",position:"bottom"})):null,V=k.$totalWidth+f.BORDERS<S.width?"dhx_grid-less-width":"",H=k.$totalHeight+f.BORDERS<S.height?"dhx_grid-less-height":"",j=k.fixedColumns.right.length?"dhx_grid__contains_cols_right--fixed":"",F=b.bottomSplit?"dhx_grid__contains_rows_bottom--fixed":"";if(!t.node){var R=e.getScrollState(),A=R.x,L=R.y;(0,o.awaitRedraw)().then((function(){e.scroll(A,L)}))}var $=(0,o.el)("div",{},[P?M:null,_(k,O),P?T:null]);return(0,o.el)(".dhx_grid.dhx_widget",{class:(k.css||"")+(P?"":" dhx_grid_border")+(b.multiselection?" dhx_no-select--pointer":""),style:{height:null!=w?w:null},"data-dhx-widget-id":s,"data-dhx-root-id":b.rootParent,role:"grid","aria-rowcount":k.data.length,"aria-colcount":b.columns.filter((function(t){return!t.hidden})).length},[(0,o.resizer)((function(){return e.paint()})),(0,o.el)(".dhx_grid-content",n(n({style:n({},S)},i),{class:"".concat(V," ").concat(H," ").concat(j," ").concat(F).trim(),role:"presentation"}),[P?null:M,(0,o.el)(".dhx_grid-body",{style:{height:I,width:S.width-f.BORDERS},onscroll:i.onscroll,_ref:"grid_body",role:"presentation"},[e.scrollView&&e.scrollView.config.enable?e.scrollView.render([$]):$]),(0,u.getFixedColsHeader)(k,D,l.Split.left),(0,u.getFixedColsHeader)(k,D,l.Split.right),(0,u.getFixedCols)(k,D,l.Split.left),(0,u.getFixedCols)(k,D,l.Split.right),(0,d.getFixedDataRows)(k,D,l.Split.top),(0,d.getFixedDataRows)(k,D,l.Split.bottom),P?null:T])])}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.getFixedCols=e.getFixedColsHeader=void 0;var r=i(0),s=i(8),a=i(32),l=i(99),c=i(16),u=i(24);e.getFixedColsHeader=function(t,e,i){if((i!==s.Split.left||"number"==typeof t.leftSplit&&t.fixedColumns.left.length)&&(i!==s.Split.right||"number"==typeof t.rightSplit&&t.fixedColumns.right.length)){var o=t.leftSplit,a=t.rightSplit,d=t.$positions,h=t.$totalWidth,f=t.$scrollBarWidth,p=i===s.Split.right,v=p?t.fixedColumns.right:t.fixedColumns.left,g=(0,c.getTotalWidth)(v),_=(0,l.getFixedRows)(n(n({},t),{currentColumns:v,$positions:n(n({},d),{xStart:0,xEnd:p?a:o}),scroll:{top:0,left:0},filteredColumns:v}),n(n({},e),{name:"header",position:"top",shifts:{x:0,y:0}}),i),m=n(n({},e),{name:"header",position:"top"});return(0,r.el)(".dhx_".concat(m.name,"-fixed-cols"),n({onwheel:c.scrollFixedColsAndRows,class:p?"dhx_grid__cols_right--fixed":"dhx_grid__cols_left--fixed",style:{position:"absolute",top:0,left:p?h<e.wrapper.width-f.y-u.BORDERS?h-g:e.wrapper.width-g-f.y-u.BORDERS:0,width:g,overflow:"hidden"}},{role:"rowgroup","aria-rowcount":_.length}),_.body)}},e.getFixedCols=function(t,e,i,d){if((i!==s.Split.left||"number"==typeof t.leftSplit&&t.fixedColumns.left.length)&&(i!==s.Split.right||"number"==typeof t.rightSplit&&t.fixedColumns.right.length)){var h,f=t.leftSplit,p=t.rightSplit,v=t.$totalWidth,g=t.$totalHeight,_=t.headerHeight,m=t.footerHeight,y=t.$positions,b=t.scroll,w=t.data,x=t.$scrollBarWidth,E=i===s.Split.right,C=g+_+m;h=C>e.gridBodyHeight?t.$footer?C-x.x:e.gridBodyHeight:C<e.gridBodyHeight-x.x?C:t.$footer?e.gridBodyHeight:e.gridBodyHeight-x.x;var S=E?t.fixedColumns.right:t.fixedColumns.left,k=(0,c.getTotalWidth)(S),O=E?"rightFixedCols":"leftFixedCols",P=(0,a.getCells)(n(n({},t),{filteredColumns:S,$renderFrom:O,$positions:n(n({},y),{xStart:0,xEnd:E?p:f})})),I=e.sticky,D=n(n({},e),{name:"footer",position:"bottom"}),M=(0,l.getRows)(n(n({},t),{currentColumns:S,$positions:n(n({},y),{xStart:0,xEnd:E?p:f})}),n(n({},e),{name:"footer",position:"bottom"})),T=0;M.forEach((function(t){return T+=t.attrs.style.height}));var V=(0,l.getFixedSpans)(n(n({},t),{filteredColumns:S}),n(n({},e),{name:"footer",position:"bottom"}),i),H=function(t){return{role:"rowgroup","aria-rowcount":t}},j=I?(0,r.el)(".dhx_".concat(D.name,"-fixed-cols"),n({onwheel:c.scrollFixedColsAndRows,class:E?"dhx_grid__cols_right--fixed":"dhx_grid__cols_left--fixed",style:{position:"absolute",top:h<e.gridBodyHeight?h-T:null,left:E?v<e.wrapper.width-x.y-u.BORDERS?v-k:e.wrapper.width-k-x.y-u.BORDERS:0,bottom:h>=e.gridBodyHeight?"".concat(I?x.x:0,"px"):null,overflow:"hidden"}},H(M.length)),[M,(0,r.el)("span.dhx_span-spans",{class:"dhx_footer-spans",role:"presentation"},V)]):null,F=y,R=(0,a.getSpans)(n(n({},t),{$renderFrom:O}),d||(E?s.Split.right:s.Split.left));return[(0,r.el)(".dhx_grid-fixed-cols-wrap",n({style:{left:E?v<e.wrapper.width-x.y-u.BORDERS?v-k:e.wrapper.width-k-x.y-u.BORDERS:0,height:h>=e.gridBodyHeight?(I?e.gridBodyHeight:e.gridBodyHeight+_)-x.x:h,paddingTop:_,overflow:"hidden",width:k}},{role:"presentation","aria-label":"Fixed column"}),[(0,r.el)(".dhx_grid-fixed-cols",n(n({onwheel:c.scrollFixedColsAndRows,class:E?"dhx_grid__cols_right--fixed":"dhx_grid__cols_left--fixed",style:{top:-b.top+_-1+"px",paddingTop:e.shifts.y,height:g,position:"absolute"},_flags:r.KEYED_LIST},(0,a.getHandlers)(F.yStart,F.xStart,t)),H(w.length)),o(o([],P,!0),[R&&(0,r.el)("span.dhx_span-spans",{role:"presentation"},[R])],!1)),E?(0,r.el)(".dhx_grid__cols-border--frozen",{role:"presentation",style:{left:0}}):(0,r.el)(".dhx_grid__cols-border--frozen",{role:"presentation",style:{right:0}})]),t.$footer?j:null]}}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.getFixedDataRows=e.getFixedRows=e.getFixedSpans=e.getRows=void 0;var r=i(0),s=i(26),a=i(16),l=i(8),c=i(32),u=i(98),d=i(1),h=i(24);function f(t,e,i,n){i&&(i.toLocaleLowerCase().includes("touch")?e._events.fire(i,[t,n]):e.events.fire(i,[t,n]))}function p(t,e,i){return{onclick:[f,t,i,l.GridEvents[e+"CellClick"]],onmouseover:[f,t,i,l.GridEvents[e+"CellMouseOver"]],onmousedown:[f,t,i,l.GridEvents[e+"CellMouseDown"]],ontouchstart:[f,t,i,l.GridEvents[e+"CellMouseDown"]],ondblclick:[f,t,i,l.GridEvents[e+"CellDblClick"]],oncontextmenu:[f,t,i,l.GridEvents[e+"CellRightClick"]],ontouchmove:[f,t,i,l.GridSystemEvents[e+"CellTouchMove"]],ontouchend:[f,t,i,l.GridSystemEvents[e+"CelltouchEnd"]]}}function v(t,e,i,n,o,s,a){void 0===o&&(o=""),void 0===a&&(a=!1);var l=e.type?"dhx_".concat(e.type,"-cell"):"dhx_string-cell",c=i.content[t.content]&&i.content[t.content].toHtml(e,i),u={};i.filteredColumns.forEach((function(t){var e=!!i.content[t[n][s].content];u[t.id]=e&&i.content[t[n][s].content].toHtml(t,i)||t[n][s].text}));var d=e.template&&"string"==typeof c?e.template(c,u,e):c;return(0,r.el)(".".concat(l),{style:{class:o.trim(),padding:0}},[c&&("string"==typeof c||"number"==typeof c?(0,r.el)("div",{class:"dhx_grid-footer-cell-text",role:"presentation",".innerHTML":a?d:null},a?null:d):c)])}function g(t,e){if(!t.data||!t.filteredColumns)return[];var i,o=e.name,s="header"===o?t.headerAutoHeight:t.footerAutoHeight,l=t.$positions,c=t.currentColumns,u=function(t,e){var i=t.map((function(t){return t[e]||[{}]}));return(0,a.transpose)(i)}(c,o),d=1;return u.map((function(e,f){var g=("header"===o?t.$headerHeightMap:t.$footerHeightMap)[f];return(0,r.el)(".dhx_".concat(o,"-row"),n({style:{height:g}},{role:"row","aria-rowindex":f+1}),e.map((function(e,_){var m,y=e.css||"",b=c[_],w=l.xStart+_+1,x=(0,a.isHtmlEnable)(t,b,e),E="dxi dxi-sort-variant dhx_grid-sort-icon",C="none";if(t.sortBy&&"".concat(b.id)===t.sortBy&&!e.content){var S=t.sortDir||"asc";E+=" dhx_grid-sort-icon--".concat(S),y+=" dhx_grid-".concat(o,"-cell--sorted "),C="asc"===S?"ascending":"descending"}var k=(0,a.isSortable)(t,b)&&e.text&&"footer"!==o&&!1!==e.headerSort;k&&(y+=" dhx_grid-header-cell--sortable");var O=0===_?"dhx_first-column-cell":"",P=_===c.length-1?"dhx_last-column-cell":"";e.content||(e.align?y+=" dhx_grid-header-cell--align_".concat(e.align," "):y+=" dhx_grid-header-cell--".concat("number"===b.type||"percent"===b.type||"date"===b.type?"align_right":"align_left"," ")),y+="".concat(O," ").concat(P);var I=void 0!==b.resizable?b.resizable:t.resizable;if(I){var D=t.rightSplit&&t.$scrollBarWidth.xState&&t.fixedColumns.right.includes(b);I=(0,r.el)("div",{class:"dhx_resizer_grip_wrap","aria-hidden":"true"},[(0,r.el)("div",{class:"dhx_resizer_grip"+(D?" dhx_resizer_grip--left":" dhx_resizer_grip--right"),dhx_resized:b.id,style:{height:"".concat(100*u.length,"%")}},[(0,r.el)("div",{class:"dhx_resizer_grip_line"})])]);var M=b.header&&(null===(m=b.header[0])||void 0===m?void 0:m.colspan);M&&(i=M,d=1),i&&d!==i&&(0===f&&(I=null),d++),"footer"===o&&(I=null)}e.align&&(y+=" dhx_align-".concat(e.align));var T=function(t,i,n){var o={"aria-colindex":i};return"footer"===t||e.content?o.role="gridcell":(o.role="columnheader",o["aria-sort"]=n),o};if(e.content)return(0,r.el)(".dhx_grid-".concat(o,"-cell.dhx_grid-custom-content-cell"),n(n({class:y.trim(),"data-dhx-id":b.id,"data-dhx-text-id":e.id,_key:b.id,style:{width:b.$width,height:"footer"===o?g+h.BORDERS/2+"px":g+"px"}},p(b,o,t)),T(o,w,C)),[v(e,b,t,o,"",f,x),I||null]);var V,H="dhx_grid-header-cell-text_content";return s&&(H+=" dhx_grid-header-cell-text_content-auto-height"),(0,r.el)(".dhx_grid-".concat(o,"-cell"),n(n({class:y.trim(),"data-dhx-id":b.id,"data-dhx-text-id":e.id,_key:b.id,style:{width:b.$width,height:"footer"===o?g+h.BORDERS/2+"px":g+"px"}},p(b,o,t)),T(o,w,C)),[(0,r.el)("div.dhx_grid-header-cell-text",{role:"presentation"},[(0,r.el)("span",n(n({class:H},(V=e.text,k?{role:"button","aria-label":"Sort by ".concat(V)}:{})),{".innerHTML":x?e.text:null}),x?null:e.text),I||null]),k&&(0,r.el)("div",{class:E,"aria-hidden":"true"})])})))}))}function _(t,e,i){var o=t.columns,c=t.filteredColumns,u=(0,a.transpose)(c.map((function(t){return t[e.name]||[]}))),f=e.name,g="header"===f?t.headerAutoHeight:t.footerAutoHeight,_="header"===f?t.$headerHeightMap:t.$footerHeightMap,m=0;return u.map((function(u,y){m=0;var b=_[y];return(0,r.el)(".dhx_span-row",{class:"dhx_header-row","aria-hidden":"true"},u.map((function(u,w){var x,E=c[w];if(i===l.Split.right&&0===w&&!(u.colspan>1)){var C=(0,a.transpose)(o.map((function(t){return t[e.name]||[]})));t:for(var S=0;S<C[y].length;S++){var k=C[y][S];if(k.colspan>1)for(var O=o.slice(S,S+k.colspan),P=0;P<O.length;P++)if(O[P].id===E.id){x={cell:k,col:o[S],widthBefore:(0,s.getWidth)(O,P,0),isLastCol:S+k.colspan>=o.length};break t}}}var I=(null==x?void 0:x.cell)||u,D=(null==x?void 0:x.col)||E,M=(0,a.isHtmlEnable)(t,E,u);m+=D.hidden?0:D.$width;var T=0===w?"dhx_first-column-cell":"",V=i?1:t.fixedColumns.right.length+1,H=u.colspan>1&&(0,s.getReducedColspan)(o,E.id,u.colspan),j=(null==x?void 0:x.isLastCol)||w===c.length-V||(H||1)+(w-1)>=c.length-V?"dhx_last-column-cell":"",F=b,R=b*y;if(I.rowspan>1){for(var A=I.rowspan-1;A>0;)F+=_[y+A],A--;F-=1}if(I.rowspan>1||I.colspan>1){R=0;for(S=y-1;S>=0;S--)R+=_[S]}var L=(0,a.isSortable)(t,D)&&I.rowspan>1&&I.text&&"footer"!==e.name&&!1!==I.headerSort,$="dxi dxi-sort-variant dhx_grid-sort-icon";t.sortBy&&"".concat(D.id)===t.sortBy&&!I.content&&($+=" dhx_grid-sort-icon--".concat(t.sortDir||"asc"));var N=D.align?"dhx_align-".concat(D.align):"number"!==D.type&&"percent"!==D.type&&"date"!==D.type||I.colspan>1?"dhx_align-left":"dhx_align-right",z="dhx_grid-".concat(f,"-cell ").concat(T," ").concat(j," ").concat(I.rowspan>1?"dhx_span-cell__rowspan":""," ").concat(I.align?"dhx_align-".concat(I.align):N," ").concat(I.css?I.css:"");L&&(z+=" dhx_grid-header-cell--sortable"),I.content||(I.align?z+=" dhx_grid-header-cell--align_".concat(I.align," "):z+=" dhx_grid-header-cell--".concat("number"===D.type||"percent"===D.type||"date"===D.type?"align_right":"align_left"," "));var W=null;I.content&&((W=v(I,D,t,f,z,y)).attrs.style=n(n({},W.attrs.style),{width:"100%",borderRight:"0"}));var B="";m-D.$width>0&&(B="var(--dhx-border)");var G="dhx_grid-header-cell-text_content";g&&(G+=" dhx_grid-header-cell-text_content-auto-height");var q=(0,r.el)("span",{class:G,".innerHTML":M?I.text:null},M?null:I.text);return I.colspan>1||I.rowspan>1?(0,r.el)(".dhx_span-cell",n({style:{width:(0,s.getWidth)(o,I.colspan,(0,d.findIndex)(o,(function(t){return t.id===D.id}))),height:F,left:m-D.$width-((null==x?void 0:x.widthBefore)||0),borderLeft:B,top:R},class:z.trim(),"data-dhx-id":D.id,"data-dhx-text-id":I.id},p(D,f,t)),[W||I.rowspan>1?(0,r.el)("div.dhx_grid-header-cell-text",{role:"presentation"},[q]):q,L&&(0,r.el)("div",{class:$}),i===l.Split.left&&H&&w+H>c.length||x?(0,r.el)(".dhx_grid__cols-border--frozen",{role:"presentation",style:{left:((null==x?void 0:x.widthBefore)||(0,s.getWidth)(c,c.length-w,w))-h.BORDERS/2-(w&&i===l.Split.left?1:0)}}):null]):null})).filter((function(t){return t})))}))}function m(t){return{role:"rowgroup","aria-rowcount":t}}e.getRows=g,e.getFixedSpans=_,e.getFixedRows=function(t,e,i){var s,a=t.leftSplit,l=t.$totalWidth,c=g(t,e),u=_(t,e,i),d=null;if("footer"===e.name&&!e.sticky){var f=t.rightSplit,p=t.fixedColumns,v=function(i){void 0===i&&(i=!1);var o=i?p.right:p.left;return!i&&a>=0||i&&f>=0?g(n(n({},t),{currentColumns:o,$positions:n(n({},t.$positions),{xStart:0,xEnd:i?f:a})}),e):[]};d=o(o([],v(),!0),v(!0),!0)}var y,b=((s={position:"sticky"})[e.position]=0,s);return e.sticky||(b.left=-t.scroll.left,y=-t.scroll.left,b.position="relative"),(0,r.el)(".dhx_".concat(e.name,"-wrapper").concat(t.rightSplit?".dhx_grid__rows_right--fixed":""),{class:e.sticky?"":"dhx_compatible-".concat(e.name),style:n(n({},b),{left:e.sticky?y:0,height:"footer"===e.name?t[e.name+"Height"]+h.BORDERS/2:t[e.name+"Height"],width:e.sticky?l:e.wrapper.width-h.BORDERS}),role:"presentation"},[(0,r.el)(".dhx_grid-".concat(e.name).concat(a?".dhx_grid_fixed_left":""),{style:{height:"footer"===e.name?t[e.name+"Height"]+h.BORDERS/2:t[e.name+"Height"],left:y,paddingLeft:e.shifts.x,width:l},role:"presentation"},[(0,r.el)(".dhx_".concat(e.name,"-rows"),n({},m(o([],c,!0).length)),o([],c,!0)),(0,r.el)(".dhx_".concat(e.name,"-spans"),{style:{marginLeft:-e.shifts.x},class:"dhx_".concat(e.name,"-rows"),role:"presentation"},u),d&&(0,r.el)(".dhx_".concat(e.name,"-fixed-cols"),{style:{position:"absolute",top:0,left:t.scroll.left+"px",height:"100%"}},d)]),(0,r.el)("div",{style:{width:l},role:"presentation"})])},e.getFixedDataRows=function(t,e,i){if(!(i===l.Split.top&&"number"!=typeof t.topSplit||i===l.Split.bottom&&"number"!=typeof t.bottomSplit)){var s=t.$totalWidth,d=t.topSplit,f=t.bottomSplit,p=t.$positions,v=t.data,g=t.$totalHeight,_=t.$width,y=t.headerHeight,b=t.footerHeight,w=t.$scrollBarWidth,x=i===l.Split.bottom,E=x?t.fixedRows.bottom:t.fixedRows.top,C=x?"bottomFixedRows":"topFixedRows",S=(0,c.getCells)(n(n({},t),{data:E,$renderFrom:C,$positions:n(n({},p),{yStart:0,yEnd:x?f:d})})),k=E.reduce((function(t,e){return t+e.$height}),0),O=(0,c.getSpans)(n(n({},t),{$renderFrom:C,data:v}),x?l.Split.bottom:l.Split.top),P=(0,a.getTotalHeight)(t.fixedRows.bottom),I=function(o){return(0,u.getFixedCols)(n(n({},t),{headerHeight:0,data:E,$renderFrom:C,scroll:n(n({},t.scroll),{top:-1}),$positions:n(n({},p),{yStart:0,yEnd:x?f:d}),$totalHeight:k,$data:v}),n(n({},e),{shifts:n(n({},e.shifts),{y:0})}),o,i)||[]},D=o(o([],I(l.Split.left),!0),I(l.Split.right),!0);return[(0,r.el)(".dhx_grid-fixed-data-rows-wrap",{class:x?"dhx_grid__rows_bottom--fixed":"",style:{top:x?g+y+b<e.wrapper.height-w.x-h.BORDERS?g+y-P+h.BORDERS/2:e.wrapper.height-P-b-h.BORDERS/2-w.x:y,overflow:"hidden",height:k>e.wrapper.height?e.wrapper.height:k,width:s+w.y+h.BORDERS<_?s:_-w.y-h.BORDERS}},o(o([(0,r.el)(".dhx_grid-fixed-cols",n(n({onwheel:a.scrollFixedColsAndRows,style:{left:-t.scroll.left+"px",paddingLeft:e.shifts.x,position:"absolute",width:s},_flags:r.KEYED_LIST},(0,c.getHandlers)(0,p.xStart,t)),m(v.length)),[(0,r.el)(".dhx_grid-fixed-rows",{class:t.rightSplit?"dhx_grid__rows_right--fixed":""},o(o([],S,!0),[O&&(0,r.el)(".dhx_span-spans",{role:"presentation"},[O])],!1))])],D,!0),[t.bottomSplit?(0,r.el)(".dhx_grid__rows-border--frozen",{role:"presentation"}):null],!1))]}}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.Ribbon=void 0;var r=i(0),s=i(20),a=i(1),l=i(3),c=i(12),u=function(t){function e(e,i){var n=t.call(this,e,(0,a.extend)({navigationType:"click",$name:"ribbon"},i))||this;n._widgetHeight=[],n._listeners={input:function(t){var e=(0,l.locate)(t),i=n.data.getItem(e);if(i){var o=t.target.value;n.data.update(e,{value:o}),"input"===i.type&&n.events.fire(s.NavigationBarEvents.input,[e,o])}},tooltip:function(t){var e=(0,l.locateNode)(t);if(e){var i=e.getAttribute("data-dhx-id"),o=n.data.getItem(i);o.tooltip&&(0,c.tooltip)(o.tooltip,{node:e,position:c.Position.bottom})}}},n._currentRoot=null;return n.mount(e,(0,r.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype.getState=function(){var t={};for(var e in this.data.eachChild(this.data.getRoot(),(function(e){e.twoState&&!e.group?t[e.id]=e.active:"input"!==e.type&&"selectButton"!==e.type&&"datePicker"!==e.type||(t[e.id]=e.value)}),!0),this._groups)this._groups[e].active&&(t[e]=this._groups[e].active);return t},e.prototype.setState=function(t){for(var e in t)if(this._groups&&this._groups[e])this._groups[e].active&&(this.data.update(this._groups[e].active,{active:!1}),this._groups[e].active=t[e],this.data.update(t[e],{active:!0}));else{var i=this.data.getItem(e);switch(i.type){case"input":case"selectButton":this.data.update(e,{value:t[e]});break;case"datePicker":i.$calendar?t[e]?i.$calendar.setValue(t[e]):i.$calendar.clear():this.data.update(e,{value:t[e]});break;default:this.data.update(e,{active:t[e]})}}},e.prototype._getFactory=function(){return(0,s.createFactory)({widget:this,defaultType:"navItem",allowedTypes:["navItem","button","imageButton","selectButton","customHTML","input","separator","spacer","title","block","datePicker","customHTMLButton"],widgetName:"ribbon"})},e.prototype._getMode=function(t,e){return t.id===e?"bottom":"right"},e.prototype._close=function(e){this._activePosition=null,this._currentRoot=null,t.prototype._close.call(this,e)},e.prototype._draw=function(){var t=this;this._heightCalculate();var e=Math.max.apply(Math,this._widgetHeight);return(0,r.el)("ul.dhx_ribbon.dhx_widget",{"data-dhx-widget-id":this._uid,class:this.config.css?this.config.css:"",tabindex:0,onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,oninput:this._listeners.input,onmouseover:this._listeners.tooltip,onkeydown:this._handlers.onkeydown,_hooks:{didInsert:function(e){e.el.addEventListener("keyup",(function(e){if(9===e.which){var i=(0,l.locateNode)(document.activeElement);if(i){var n=i.getAttribute("data-dhx-id"),o=t.data.getItem(n);o.tooltip&&(0,c.tooltip)(o.tooltip,{node:i,position:c.Position.bottom,force:!0})}}}),!0)}}},[(0,r.el)("li",{class:"dhx_ribbon-block dhx_ribbon-block--root",style:{height:this._haveTitle?e+24:e}},[(0,r.el)("ul.dhx_ribbon-content.dhx_ribbon-content--full-width",{style:{height:e}},this.data.map((function(e){return"block"===e.type?t._drawBlock(e,!0):t._factory(e)}),this.data.getRoot(),!1))])])},e.prototype._setRoot=function(t){var e=this.data.getParent(t);"block"===this.data.getItem(e).type&&(this._currentRoot=t)},e.prototype._drawBlock=function(t,e){var i=this;if(!t||t.hidden)return null;var n="dhx_ribbon-block dhx_ribbon-block"+("col"===t.direction?"--col":"--row")+(t.title?" dhx_ribbon-block--title":"")+(t.css?" "+t.css:"")+(e?" dhx_ribbon-block--indented":""),o=t.items.map((function(t){return"block"===t.type?i._drawBlock(t):"separator"!==t.type&&"spacer"!==t.type?i._factory(t):null}),t.id,!1);return(0,r.el)("li",{class:n},[(0,r.el)("ul.dhx_ribbon-content",o),t.title?(0,r.el)("span.dhx_ribbon-content-label-wrapper",[(0,r.el)("span.dhx_ribbon-content-label",t.title)]):null])},e.prototype._getBlockHeight=function(t){return t.hidden?0:"medium"===t.size&&"button"!==t.type?72:36},e.prototype._heightCalculate=function(t){var e=this;void 0===t&&(t=this.data),t.forEach((function(t){var i;"block"===t.type&&"col"===t.direction?(i=t.items.reduce((function(t,i){return t+e._getBlockHeight(i)}),0),e._heightCalculate(t.items)):i=e._getBlockHeight(t),t.title&&(e._haveTitle=!0),e._widgetHeight.push(i)}))},e}(s.Navbar);e.Ribbon=u},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.Sidebar=void 0;var r=i(0),s=i(3),a=i(102),l=i(12),c=i(20),u=i(1),d=function(t){function e(e,i){var n=t.call(this,e,(0,u.extend)({navigationType:"click",width:"200",minWidth:"44",collapsed:!1,$name:"sidebar"},i))||this;n._currentRoot=null;return n.mount(e,(0,r.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype.toggle=function(){this.config.collapsed?this.expand():this.collapse(),this.events.fire(a.SidebarEvents.toggle,[this.config.collapsed]),this.paint()},e.prototype.collapse=function(){this.events.fire(a.SidebarEvents.beforeCollapse,[])&&(this.config.collapsed=!0,this.events.fire(a.SidebarEvents.afterCollapse,[]),this.paint())},e.prototype.expand=function(){this.events.fire(a.SidebarEvents.beforeExpand,[])&&(this.config.collapsed=!1,this.events.fire(a.SidebarEvents.afterExpand,[]),this.paint())},e.prototype.isCollapsed=function(){return this.config.collapsed},e.prototype._getFactory=function(){return(0,c.createFactory)({widget:this,defaultType:"navItem",allowedTypes:["navItem","menuItem","customHTML","separator","spacer","title","customHTMLButton"],widgetName:"sidebar"})},e.prototype._close=function(e){this._activePosition=null,this._currentRoot=null,t.prototype._close.call(this,e)},e.prototype._setRoot=function(t){this.data.getParent(t)===this.data.getRoot()&&(this._currentRoot=t)},e.prototype._customHandlers=function(){var t=this;return{tooltip:function(e){var i=(0,s.locateNode)(e);if(i){var n=i.getAttribute("data-dhx-id"),o=t.data.getItem(n);(o.tooltip||t.config.collapsed&&o.value)&&(0,l.tooltip)(o.tooltip||o.value,{node:i,position:l.Position.right})}}}},e.prototype._draw=function(){var t=this,e=this.config,i=e.width,n=e.minWidth,o=this.config.collapsed?n:i;return(0,r.el)("nav.dhx_widget.dhx_sidebar",{class:(this.config.css?this.config.css:"")+(this.config.collapsed?" dhx_sidebar--minimized":""),style:{width:o+"px"}},[(0,r.el)("ul.dhx_navbar.dhx_navbar--vertical",{"data-dhx-widget-id":this._uid,tabindex:0,onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,oninput:this._handlers.input,onmouseover:this._handlers.tooltip,onkeydown:this._handlers.onkeydown,_hooks:{didInsert:function(e){e.el.addEventListener("keyup",(function(e){if(9===e.which){var i=(0,s.locateNode)(document.activeElement);if(i){var n=i.getAttribute("data-dhx-id"),o=t.data.getItem(n);(o.tooltip||t.config.collapsed&&o.value)&&(0,l.tooltip)(o.tooltip||o.value,{node:i,position:l.Position.right,force:!0})}}}),!0)}}},this.data.map((function(e){return t._factory(e,!1)}),this.data.getRoot(),!1))])},e.prototype._getMode=function(){return"right"},e.prototype._customInitEvents=function(){var t=this;this.events.on(c.NavigationBarEvents.inputBlur,(function(){t._waitRestore&&(t.toggle(),t._waitRestore=!1)})),this.events.on(c.NavigationBarEvents.inputFocus,(function(){t.config.collapsed&&(t._waitRestore=!0,t.toggle())}))},e}(c.Navbar);e.Sidebar=d},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.SidebarEvents=void 0,function(t){t.beforeCollapse="beforeCollapse",t.afterCollapse="afterCollapse",t.beforeExpand="beforeExpand",t.afterExpand="afterExpand",t.toggle="toggle"}(n||(e.SidebarEvents=n={}))},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.TabbarEvents=void 0,function(t){t.beforeChange="beforeChange",t.change="change",t.beforeClose="beforeClose",t.afterClose="afterClose",t.close="close"}(n||(e.TabbarEvents=n={}))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Editor=e.EditorEvents=e.EditorMode=void 0;var n,o,r=i(0),s=i(2),a=i(3),l=i(14);!function(t){t.editText="text",t.selectItem="select"}(n||(e.EditorMode=n={})),function(t){t.begin="begin",t.end="end"}(o||(e.EditorEvents=o={}));var c=function(){function t(){var t=this;this.events=new s.EventSystem,this._keyManager=new l.KeyManager,this._documentClick=function(e){(0,a.locate)(e,"id")!=="input_"+t._item.id&&(t._removeClickListener(),t._finishEdit())},this._handlers={editText:function(e){t._currentValue=e.target.innerText},itemSelected:function(e){t._currentValue=e.target.value,t._finishEdit()},didInsert:function(t){var e=null==t?void 0:t.el;if(e){if(e.childNodes.length){var i=document.createRange(),n=window.getSelection();i.setStart(e.childNodes[0],e.innerText.length),i.collapse(!0),n.removeAllRanges(),n.addRange(i)}e.focus()}}}}return t.prototype.edit=function(t,e){return this._active&&this._item!==e.item&&this._finishEdit(),this._active=!0,this._targetId=t,this.config=e,this._item=e.item,this._currentValue=this._item.value,this.events.fire(o.begin,[t]),this._initOuterClick(),this._addHotkeys(),this._draw()},t.prototype.isEditable=function(){return this._active},t.prototype._draw=function(){var t=this;if(this.config.mode===n.selectItem){var e=this.config.options;return(0,r.el)("select",{id:"input_"+this._item.id,"data-dhx-id":this._item.id,onchange:this._handlers.itemSelected},e.map((function(e){return(0,r.el)("option",{class:"editor-select",value:e,selected:t._currentValue===e,style:{border:"1px solid"}},e)})))}return(0,r.el)("div.dhx_tree-editor",{_hooks:{didInsert:this._handlers.didInsert},id:"input_"+this._item.id,oninput:this._handlers.editText,contentEditable:!0},this._currentValue)},t.prototype._addHotkeys=function(){var t=this;this._keyManager.addHotKey("escape",(function(){t._finishEdit()})),this._keyManager.addHotKey("enter",(function(){t._finishEdit()}))},t.prototype._removeHotkeys=function(){this._keyManager.removeHotKey()},t.prototype._finishEdit=function(){this.events.fire(o.end,[this._targetId,this._item.id,this._currentValue])&&this._clear()},t.prototype._clear=function(){this._active=!1,this._removeClickListener(),this._removeHotkeys()},t.prototype._initOuterClick=function(){document.addEventListener("click",this._documentClick)},t.prototype._removeClickListener=function(){document.removeEventListener("click",this._documentClick)},t}();e.Editor=c},function(t,e,i){"use strict";var n,o;Object.defineProperty(e,"__esModule",{value:!0}),e.TreeEvents=e.SelectStatus=void 0,function(t){t[t.unselected=0]="unselected",t[t.selected=1]="selected",t[t.indeterminate=2]="indeterminate"}(n||(e.SelectStatus=n={})),function(t){t.itemClick="itemclick",t.itemDblClick="itemdblclick",t.itemRightClick="itemrightclick",t.beforeCollapse="beforeCollapse",t.afterCollapse="afterCollapse",t.beforeExpand="beforeExpand",t.afterExpand="afterExpand",t.beforeEditStart="beforeEditStart",t.afterEditStart="afterEditStart",t.beforeEditEnd="beforeEditEnd",t.afterEditEnd="afterEditEnd",t.focusChange="focusChange",t.beforeCheck="beforeCheck",t.afterCheck="afterCheck",t.itemContextMenu="itemcontextmenu"}(o||(e.TreeEvents=o={}))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Window=void 0;var n=i(1),o=i(0),r=i(2),s=i(14),a=i(21),l=i(11),c=i(34),u=i(242),d=i(107),h=i(243),f=i(20),p=function(){function t(t){var e=this;this.config=(0,n.extend)({movable:!1,resizable:!1,closable:t.modal},t),this.config.node&&"string"==typeof this.config.node?this.config.node=document.getElementById(this.config.node):this.config.node||(this.config.node=document.body),this._uid=(0,n.uid)(),this.events=new r.EventSystem(this);var i=this._popup=document.createElement("div");i.tabIndex=1,i.setAttribute("role","dialog"),i.setAttribute("aria-modal","".concat(this.config.modal||!1)),this.config.modal||h.default.add(this._uid,this._popup),this._fullScreen=!1,this._isActive=!1,this._keyManager=new s.KeyManager((function(t,i){return i===e._uid||e.getContainer().contains(document.activeElement)})),this._initHandlers(),this._initUI(),this.config.html&&this.attachHTML(this.config.html)}return t.prototype.paint=function(){this._layout.paint()},t.prototype.isFullScreen=function(){return this._fullScreen},t.prototype.setFullScreen=function(){this._fullScreen||(this._fullScreen=!0,this.setSize(window.innerWidth,window.innerHeight),this.setPosition(window.pageXOffset,window.pageYOffset))},t.prototype.unsetFullScreen=function(){this._fullScreen&&(this._fullScreen=!1,this.setSize(this._oldSizes.width,this._oldSizes.height),this.setPosition(this._oldPosition.left,this._oldPosition.top))},t.prototype.setSize=function(t,e){this._oldSizes={width:this._popup.offsetWidth,height:this._popup.offsetHeight};var i={width:this._oldSizes.width,height:this._oldSizes.height};(0,n.isDefined)(t)&&(this.config.width=i.width=t),(0,n.isDefined)(e)&&(this.config.height=i.height=e),this._popup.style.width=i.width+"px",this._popup.style.height=i.height+"px",this.events.fire(d.WindowEvents.resize,[i,this._oldSizes,{left:!0,top:!0,bottom:!0,right:!0}])},t.prototype.getSize=function(){return{width:this._popup.offsetWidth,height:this._popup.offsetHeight}},t.prototype.setPosition=function(t,e){this._oldPosition={left:this._popup.offsetLeft,top:this._popup.offsetTop};var i={left:this._oldPosition.left,top:this._oldPosition.top};(0,n.isDefined)(t)&&(this.config.left=i.left=t),(0,n.isDefined)(e)&&(this.config.top=i.top=e),this._popup.style.left=i.left+"px",this._popup.style.top=i.top+"px",this.events.fire(d.WindowEvents.resize,[i,this._oldPosition,{left:!0,top:!0,bottom:!0,right:!0}])},t.prototype.getPosition=function(){return{left:this._popup.offsetLeft,top:this._popup.offsetTop}},t.prototype.show=function(t,e){if(void 0===t&&(t=this.config.left),void 0===e&&(e=this.config.top),this.events.fire(d.WindowEvents.beforeShow,[{left:t,top:e}])){this.isVisible()&&this.hide(),h.default.setActive(this._uid),this._popup.className+=" dhx_popup dhx_widget"+(this.config.modal?" dhx_popup--window_modal":" dhx_popup--window")+(this.config.css?" "+this.config.css:""),this._popup.style.position=this.config.modal?"fixed":"absolute",this._popup.setAttribute("data-dhx-widget-id",this._uid);var i=this._getContainerParams(),o=i.containerInnerWidth,r=i.containerInnerHeight,s=i.containerXOffset,l=i.containerYOffset,c=this.config.width="number"==typeof this.config.width&&this.config.width||"number"==typeof this.config.minWidth&&this.config.minWidth||o/2,u=this.config.height="number"==typeof this.config.height&&this.config.height||"number"==typeof this.config.minHeight&&this.config.minHeight||r/2;if(this.config.left=t=(0,n.isDefined)(t)?t:(o-c)/(this.config.modal?2:2+s),this.config.top=e=(0,n.isDefined)(e)?e:(r-u)/(this.config.modal?2:2+l),this._isActive)return this._popup.style.left=t+"px",void(this._popup.style.top=e+"px");this.config.viewportOverflow&&h.default.openFreeWindow(this.config.node),this.config.modal&&this._blockScreen(),this._popup.style.width=c+"px",this._popup.style.height=u+"px",this._popup.style.left=t+"px",this._popup.style.top=e+"px",this.config.node.appendChild(this._popup),this._popup.focus(),this._isActive=!0,this._layout.getCell("content").paint(),this.events.fire(d.WindowEvents.afterShow,[{left:t,top:e}]),a.focusManager.setFocusId(this._uid)}},t.prototype.hide=function(){this._hide()},t.prototype._hide=function(t){this._isActive&&this.events.fire(d.WindowEvents.beforeHide,[{left:this.config.left,top:this.config.top},t])&&(this.config.viewportOverflow&&h.default.closeFreeWindow(this.config.node),this._blocker&&(this.config.node.removeChild(this._blocker),this.config.closable&&this._keyManager.removeHotKey(null,this),this._blocker=null),this.config.node.removeChild(this._popup),this._isActive=!1,this.events.fire(d.WindowEvents.afterHide,[{left:this.config.left,top:this.config.top},t]))},t.prototype.isVisible=function(){return this._isActive},t.prototype.getWidget=function(){return this._layout.getCell("content").getWidget()},t.prototype.getContainer=function(){return this.getRootView().data._container},t.prototype.attach=function(t,e){this._layout.getCell("content").attach(t,e)},t.prototype.attachHTML=function(t){this._layout.getCell("content").attachHTML(t)},t.prototype.getRootView=function(){return this._layout.getRootView()},t.prototype.destructor=function(){this._isActive&&this.hide(),this.header&&this.header.destructor(),this.footer&&this.footer.destructor(),this.events&&this.events.clear(),this._keyManager&&this._keyManager.destructor(),this._layout&&this._layout.destructor(),this.config=this.header=this.footer=this.events=null,this._popup=this._uid=this._handlers=this._isActive=this._keyManager=this._fullScreen=this._oldSizes=this._oldPosition=null},t.prototype.fullScreen=function(){this.setFullScreen()},t.prototype._initHandlers=function(){var t=this;this._handlers={headerDblClick:function(e){return t.events.fire(d.WindowEvents.headerDoubleClick,[e])},move:function(e){3!==e.which&&(e.preventDefault(),(0,u.detectDrag)(e).then((function(e){e&&t._startDrag(e.x,e.y)})))},resize:{".dhx_window-resizer":function(e){3!==e.which&&(e.preventDefault(),h.default.setActive(t._uid),(0,u.detectDrag)(e).then((function(i){if(i){var n=e.target.classList;n.contains("dhx_window-resizer--left")?t._startResize({left:!0}):n.contains("dhx_window-resizer--right")?t._startResize({right:!0}):n.contains("dhx_window-resizer--top")?t._startResize({top:!0}):n.contains("dhx_window-resizer--bottom")?t._startResize({bottom:!0}):n.contains("dhx_window-resizer--bottom_left")?t._startResize({left:!0,bottom:!0}):n.contains("dhx_window-resizer--bottom_right")?t._startResize({bottom:!0,right:!0}):n.contains("dhx_window-resizer--top_left")?t._startResize({top:!0,left:!0}):n.contains("dhx_window-resizer--top_right")&&t._startResize({top:!0,right:!0})}})))}},setActive:function(){h.default.setActive(t._uid)}}},t.prototype._initUI=function(){var t=this,e=[],i=(this.config.header||this.config.title||this.config.closable||this.config.movable)&&!1!==this.config.header;i&&e.push({id:"header",height:"content",css:"dhx_window-header "+(this.config.movable?"dhx_window-header--movable":""),on:{mousedown:this.config.movable&&this._handlers.move,dblclick:this._handlers.headerDblClick}}),e.push({id:"content",css:i?"dhx_window-content":"dhx_window-content-without-header"}),this.config.footer&&e.push({id:"footer",height:"content",css:"dhx_window-footer"}),this.config.resizable&&e.push({id:"resizers",height:"content",css:"resizers"});var n=this._layout=new l.Layout(this._popup,{css:"dhx_window"+(this.config.modal?" dhx_window--modal":""),rows:e,on:{mousedown:this._handlers.setActive},id:this._uid});if(i){var o=this.header=new c.Toolbar;this.config.title&&(this.header.data.add({type:"title",value:this.config.title,id:"title",css:"title_max"}),this._popup.setAttribute("aria-label",this.config.title)),this.config.closable&&(this.header.data.add({type:"spacer"}),this.header.data.add({id:"close",type:"button",view:"link",size:"medium",color:"secondary",circle:!0,icon:"dxi dxi-close"}),o.events.on(f.NavigationBarEvents.click,(function(e,i){"close"===e&&t._hide(i)}))),n.getCell("header").attach(o)}if(this.config.footer){var r=this.footer=new c.Toolbar;n.getCell("footer").attach(r)}this.config.resizable&&n.getCell("resizers").attach((function(){return t._drawResizers()}))},t.prototype._drawResizers=function(){return(0,o.el)(".dhx-resizers",{onmousedown:this._handlers.resize},[(0,o.el)(".dhx_window-resizer.dhx_window-resizer--left",{_ref:"left"}),(0,o.el)(".dhx_window-resizer.dhx_window-resizer--right",{_ref:"right"}),(0,o.el)(".dhx_window-resizer.dhx_window-resizer--bottom",{_ref:"bottom"}),(0,o.el)(".dhx_window-resizer.dhx_window-resizer--top",{_ref:"top"}),(0,o.el)(".dhx_window-resizer.dhx_window-resizer--bottom_right",{_ref:"bottomRight"}),(0,o.el)(".dhx_window-resizer.dhx_window-resizer--bottom_left",{_ref:"bottomLeft"}),(0,o.el)(".dhx_window-resizer.dhx_window-resizer--top_right",{_ref:"topRight"}),(0,o.el)(".dhx_window-resizer.dhx_window-resizer--top_left",{_ref:"topLeft"})])},t.prototype._startDrag=function(t,e){var i=this;this.config.node.classList.add("dhx_window--stop_selection");var n=t-this._popup.offsetLeft,o=e-this._popup.offsetTop,r=this._popup.offsetWidth,s=this._popup.offsetHeight,a=function(t){var e={left:i._popup.offsetLeft,top:i._popup.offsetTop},a=t.pageX-n,l=t.pageY-o;if(!i.config.viewportOverflow){var c=i._getContainerParams(),u=c.containerXOffset,h=c.containerYOffset,f=c.containerInnerWidth,p=c.containerInnerHeight;a<u?a=u:a>u+f-r&&(a=u+f-r),l<h?l=h:l>h+p-s&&(l=h+p-s)}i.config.left=a,i.config.top=l,i._popup.style.left=a+"px",i._popup.style.top=l+"px";var v={left:a,top:l};i.events.fire(d.WindowEvents.move,[v,e,{left:!0,top:!0,bottom:!0,right:!0}])},l=function(){document.removeEventListener("mouseup",l),document.removeEventListener("mousemove",a),i.config.node.classList.remove("dhx_window--stop_selection")};document.addEventListener("mouseup",l),document.addEventListener("mousemove",a)},t.prototype._startResize=function(t){var e,i,n=this,o=100|this.config.minWidth,r=100|this.config.minHeight,s=this._popup.offsetLeft,a=this._popup.offsetTop,l=this._popup.offsetWidth,c=this._popup.offsetHeight,u=this.getRootView().refs;switch(!0){case t.bottom&&t.left:i="dhx_window-body-pointer--bottom_left",e=u.bottomLeft;break;case t.bottom&&t.right:i="dhx_window-body-pointer--bottom_right",e=u.bottomLeft;break;case t.top&&t.left:i="dhx_window-body-pointer--top_left",e=u.bottomLeft;break;case t.top&&t.right:i="dhx_window-body-pointer--top-right",e=u.right;break;case t.top:i="dhx_window-body-pointer--top",e=u.bottomLeft;break;case t.bottom:i="dhx_window-body-pointer--bottom",e=u.bottomLeft;break;case t.left:i="dhx_window-body-pointer--left",e=u.bottomLeft;break;case t.right:i="dhx_window-body-pointer--right",e=u.right}e.el.classList.add("dhx_window-resizer--active"),this.config.node.classList.add("dhx_window--stop_selection"),this.config.node.classList.add(i);var h=function(e){var i=n._getContainerParams(),u=i.containerInnerWidth,h=i.containerInnerHeight,f=i.containerXOffset,p=i.containerYOffset,v={width:n._notInNode()?e.pageX-s:e.pageX-n.config.node.offsetLeft-s,height:n._notInNode()?e.pageY-a:e.pageY-n.config.node.offsetTop-a,left:n._notInNode()?e.pageX:e.pageX-n.config.node.offsetLeft,top:n._notInNode()?e.pageY:e.pageY-n.config.node.offsetTop};t.right&&(v.width<o?v.width=o:v.width>f+u-s&&(v.width=f+u-s),n._popup.style.width=v.width+"px"),t.bottom&&(v.height<r?v.height=r:v.height>p+h-a&&(v.height=p+h-a),n._popup.style.height=v.height+"px"),t.left&&(s+l-v.left<o&&(v.left=s+l-o),v.width=s+l-v.left,n.config.left=v.left,n._popup.style.left=v.left+"px",n._popup.style.width=v.width+"px"),t.top&&(v.top<p?v.top=p:a+c-v.top<r&&(v.top=a+c-r),v.height=a+c-v.top,n.config.top=v.top,n._popup.style.top=v.top+"px",n._popup.style.height=v.height+"px"),n.config.width=n._popup.offsetWidth,n.config.height=n._popup.offsetHeight,n.events.fire(d.WindowEvents.resize,[v,{left:s,top:a,height:c,width:l},t])},f=function(){document.removeEventListener("mouseup",f),document.removeEventListener("mousemove",h),n.config.node.classList.remove("dhx_window--stop_selection"),n.config.node.classList.remove(i),e.el.classList.remove("dhx_window-resizer--active")};document.addEventListener("mouseup",f),document.addEventListener("mousemove",h)},t.prototype._blockScreen=function(){var t=this,e=document.createElement("div");e.className="dhx_window__overlay",this.config.node.appendChild(e),this._blocker=e,this.config.closable&&(e.addEventListener("click",(function(e){return t._hide(e)})),this._keyManager.addHotKey("escape",(function(e){var i=Array.prototype.slice.call(document.querySelectorAll(".dhx_popup--window_modal")),n=Array.prototype.slice.call(document.querySelectorAll(".dhx_popup--window")),o=i.concat(n);1!==o.length?(o.sort((function(t,e){return+window.getComputedStyle(e).zIndex-+window.getComputedStyle(t).zIndex})),o[o.length-1]===t._popup&&t._hide(e)):t._hide(e)})))},t.prototype._notInNode=function(){return this.config.node===document.body||this.config.modal},t.prototype._getContainerParams=function(){var t=this._notInNode();return{containerInnerWidth:t?window.innerWidth:this.config.node.offsetWidth,containerInnerHeight:t?window.innerHeight:this.config.node.offsetHeight,containerXOffset:t?window.pageXOffset:this.config.node.scrollLeft,containerYOffset:t?window.pageYOffset:this.config.node.scrollTop}},t}();e.Window=p},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.WindowEvents=void 0,function(t){t.resize="resize",t.headerDoubleClick="headerdoubleclick",t.move="move",t.afterShow="aftershow",t.afterHide="afterhide",t.beforeShow="beforeshow",t.beforeHide="beforehide"}(n||(e.WindowEvents=n={}))},function(t,e,i){i(109),i(110),i(111),i(112),i(113),t.exports=i(114)},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 i=[];for(var n in t)t.hasOwnProperty(n)&&i.push(t[n]);return i}return[]},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){"use strict";for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(null==t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),o=0;o<e.length;o++){var r=e[o];if(null!=r)for(var s=Object.keys(Object(r)),a=0,l=s.length;a<l;a++){var c=s[a],u=Object.getOwnPropertyDescriptor(r,c);void 0!==u&&u.enumerable&&(n[c]=r[c])}}return n}})},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 i=Object(this),n=i.length>>>0;if(0===n)return!1;var o,r,s=0|e,a=Math.max(s>=0?s:n-Math.abs(s),0);for(;a<n;){if((o=i[a])===(r=t)||"number"==typeof o&&"number"==typeof r&&isNaN(o)&&isNaN(r))return!0;a++}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),i=e.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var n=arguments[1],o=0;o<i;){var r=e[o];if(t.call(n,r,o,e))return r;o++}},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,i=Object(this),n=i.length>>>0,o=arguments[1],r=0;r<n;r++)if(e=i[r],t.call(o,e,r,i))return r;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 i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.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 i=t.getAttribute("class").replace(new RegExp("(\\s|^)".concat(e,"(\\s|$)"),"g"),"$2");t.classList.contains(e)&&t.setAttribute("class",i)},toggle:function(t){this.contains(t)?this.remove(t):this.add(t)}}},configurable:!0}),!Object.entries){var n=Function.bind.call(Function.call,Array.prototype.reduce),o=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),r=Function.bind.call(Function.call,Array.prototype.concat);Object.entries=function(t){return n(Object.keys(t),(function(e,i){return r(e,"string"==typeof i&&o(t,i)?[[i,t[i]]]:[])}),[])}}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,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.i18n=e.Window=e.Tree=e.Toolbar=e.Timepicker=e.Tabbar=e.Slider=e.Sidebar=e.Ribbon=e.Popup=e.ContextMenu=e.Menu=e.tooltip=e.disableTooltip=e.enableTooltip=e.confirm=e.alert=e.message=e.Grid=e.Form=e.DataView=e.Combobox=e.Chart=e.Colorpicker=e.Calendar=e.List=e.Layout=e.ajax=e.dataDrivers=e.DataProxy=e.TreeCollection=e.DataCollection=e.Uploader=e.setTheme=e.resizeHandler=e.awaitRedraw=e.EventSystem=e.cssManager=void 0,i(115);var n=i(116);Object.defineProperty(e,"cssManager",{enumerable:!0,get:function(){return n.cssManager}});var o=i(2);Object.defineProperty(e,"EventSystem",{enumerable:!0,get:function(){return o.EventSystem}});var r=i(0);Object.defineProperty(e,"awaitRedraw",{enumerable:!0,get:function(){return r.awaitRedraw}}),Object.defineProperty(e,"resizeHandler",{enumerable:!0,get:function(){return r.resizeHandler}}),Object.defineProperty(e,"setTheme",{enumerable:!0,get:function(){return r.setTheme}});var s=i(58);Object.defineProperty(e,"Uploader",{enumerable:!0,get:function(){return s.Uploader}});var a=i(7);Object.defineProperty(e,"DataCollection",{enumerable:!0,get:function(){return a.DataCollection}}),Object.defineProperty(e,"TreeCollection",{enumerable:!0,get:function(){return a.TreeCollection}}),Object.defineProperty(e,"DataProxy",{enumerable:!0,get:function(){return a.DataProxy}}),Object.defineProperty(e,"dataDrivers",{enumerable:!0,get:function(){return a.dataDrivers}}),Object.defineProperty(e,"ajax",{enumerable:!0,get:function(){return a.ajax}});var l=i(11);Object.defineProperty(e,"Layout",{enumerable:!0,get:function(){return l.Layout}});var c=i(37);Object.defineProperty(e,"List",{enumerable:!0,get:function(){return c.List}});var u=i(36);Object.defineProperty(e,"Calendar",{enumerable:!0,get:function(){return u.Calendar}});var d=i(50);Object.defineProperty(e,"Colorpicker",{enumerable:!0,get:function(){return d.Colorpicker}});var h=i(166);Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return h.Chart}});var f=i(38);Object.defineProperty(e,"Combobox",{enumerable:!0,get:function(){return f.Combobox}});var p=i(190);Object.defineProperty(e,"DataView",{enumerable:!0,get:function(){return p.DataView}});var v=i(194);Object.defineProperty(e,"Form",{enumerable:!0,get:function(){return v.Form}});var g=i(213);Object.defineProperty(e,"Grid",{enumerable:!0,get:function(){return g.Grid}});var _=i(12);Object.defineProperty(e,"message",{enumerable:!0,get:function(){return _.message}}),Object.defineProperty(e,"alert",{enumerable:!0,get:function(){return _.alert}}),Object.defineProperty(e,"confirm",{enumerable:!0,get:function(){return _.confirm}}),Object.defineProperty(e,"enableTooltip",{enumerable:!0,get:function(){return _.enableTooltip}}),Object.defineProperty(e,"disableTooltip",{enumerable:!0,get:function(){return _.disableTooltip}}),Object.defineProperty(e,"tooltip",{enumerable:!0,get:function(){return _.tooltip}});var m=i(230);Object.defineProperty(e,"Menu",{enumerable:!0,get:function(){return m.Menu}}),Object.defineProperty(e,"ContextMenu",{enumerable:!0,get:function(){return m.ContextMenu}});var y=i(13);Object.defineProperty(e,"Popup",{enumerable:!0,get:function(){return y.Popup}});var b=i(233);Object.defineProperty(e,"Ribbon",{enumerable:!0,get:function(){return b.Ribbon}});var w=i(235);Object.defineProperty(e,"Sidebar",{enumerable:!0,get:function(){return w.Sidebar}});var x=i(47);Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return x.Slider}});var E=i(237);Object.defineProperty(e,"Tabbar",{enumerable:!0,get:function(){return E.Tabbar}});var C=i(46);Object.defineProperty(e,"Timepicker",{enumerable:!0,get:function(){return C.Timepicker}});var S=i(34);Object.defineProperty(e,"Toolbar",{enumerable:!0,get:function(){return S.Toolbar}});var k=i(239);Object.defineProperty(e,"Tree",{enumerable:!0,get:function(){return k.Tree}});var O=i(241);Object.defineProperty(e,"Window",{enumerable:!0,get:function(){return O.Window}});var P=i(50),I=i(45),D=i(15),M=i(57),T=i(94),V=i(70),H=i(245),j=window;e.i18n=j.dhx&&j.dhx.i18n?j.dhx.i18n:{},e.i18n.setLocale=H.setLocale,e.i18n.colorpicker=e.i18n.colorpicker||P.locale,e.i18n.message=e.i18n.message||I.default,e.i18n.calendar=e.i18n.calendar||D.locale,e.i18n.combobox=e.i18n.combobox||M.default,e.i18n.form=e.i18n.form||T.default,e.i18n.timepicker=e.i18n.timepicker||V.default},function(t,e,i){"use strict";i.r(e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cssManager=e.CssManager=void 0;var n=i(1),o=function(){function t(){this._classes={};var t=document.createElement("style");t.id="dhx_generated_styles",this._styleCont=document.head.appendChild(t)}return t.prototype.update=function(){this._styleCont.innerHTML!==this._generateCss()&&(document.head.appendChild(this._styleCont),this._styleCont.innerHTML=this._generateCss())},t.prototype.remove=function(t){delete this._classes[t],this.update()},t.prototype.add=function(t,e,i){void 0===i&&(i=!1);var n=this._toCssString(t),o=this._findSameClassId(n);return o&&e&&e!==o?(this._classes[e]=this._classes[o],e):o||this._addNewClass(n,e,i)},t.prototype.get=function(t){if(this._classes[t]){for(var e={},i=0,n=this._classes[t].split(";");i<n.length;i++){var o=n[i];if(o){var r=o.split(":");e[r[0]]=r[1]}}return e}return null},t.prototype.destructor=function(){this._classes=this._styleCont=null},t.prototype._findSameClassId=function(t){for(var e in this._classes)if(t===this._classes[e])return e;return null},t.prototype._addNewClass=function(t,e,i){var o=e||"dhx_generated_class_".concat((0,n.uid)());return this._classes[o]=t,i||this.update(),o},t.prototype._toCssString=function(t){var e="";for(var i in t){var n=t[i],o=i.replace(/[A-Z]{1}/g,(function(t){return"-".concat(t.toLowerCase())}));e+="".concat(o,":").concat(n,";")}return e},t.prototype._generateCss=function(){var t="";for(var e in this._classes){var i=this._classes[e];t+=".".concat(e,"{").concat(i,"}\n")}return t},t}();e.CssManager=o,e.cssManager=new o},function(t,e,i){(function(t){var n=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function r(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new r(o.call(setTimeout,n,arguments),clearTimeout)},e.setInterval=function(){return new r(o.call(setInterval,n,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(n,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))},i(118),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,i(40))},function(t,e,i){(function(t,e){!function(t,i){"use strict";if(!t.setImmediate){var n,o,r,s,a,l=1,c={},u=!1,d=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?n=function(t){e.nextTick((function(){p(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,i=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=i,e}}()?t.MessageChannel?((r=new MessageChannel).port1.onmessage=function(t){p(t.data)},n=function(t){r.port2.postMessage(t)}):d&&"onreadystatechange"in d.createElement("script")?(o=d.documentElement,n=function(t){var e=d.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,o.removeChild(e),e=null},o.appendChild(e)}):n=function(t){setTimeout(p,0,t)}:(s="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(s)&&p(+e.data.slice(s.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),n=function(e){t.postMessage(s+e,"*")}),h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i<e.length;i++)e[i]=arguments[i+1];var o={callback:t,args:e};return c[l]=o,n(l),l++},h.clearImmediate=f}function f(t){delete c[t]}function p(t){if(u)setTimeout(p,0,t);else{var e=c[t];if(e){u=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(i,n)}}(e)}finally{f(t),u=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,i(40),i(119))},function(t,e){var i,n,o=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(i===setTimeout)return setTimeout(t,0);if((i===r||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:r}catch(t){i=r}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(t){n=s}}();var l,c=[],u=!1,d=-1;function h(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&f())}function f(){if(!u){var t=a(h);u=!0;for(var e=c.length;e;){for(l=c,c=[];++d<e;)l&&l[d].run();d=-1,e=c.length}l=null,u=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{return n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function v(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];c.push(new p(t,e)),1!==c.length||u||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,i){
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 i(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/codebase/",i(i.s=108)}([function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),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 n=i(120),o=i(3);function r(t){var i=window.ResizeObserver,n=function(e){var i=e.el.offsetHeight,n=e.el.offsetWidth;t(n,i)};return i?(0,e.el)("div.dhx-resize-observer",{_hooks:{didInsert:function(t){new i((function(){return n(t)})).observe(t.el)}}}):(0,e.el)("iframe.dhx-resize-observer",{_hooks:{didInsert:function(t){t.el.contentWindow.onresize=function(){return n(t)},n(t)}}})}e.el=n.defineElement,e.sv=n.defineSvgElement,e.view=n.defineView,e.create=n.createView,e.inject=n.injectView,e.KEYED_LIST=n.KEYED_LIST,e.disableHelp=function(){n.DEVMODE.mutations=!1,n.DEVMODE.warnings=!1,n.DEVMODE.verbose=!1,n.DEVMODE.UNKEYED_INPUT=!1},e.resizer=r,e.resizeHandler=function(t,i){return(0,e.create)({render:function(){return r(i)}}).mount(t)},e.awaitRedraw=function(){return new t((function(t){requestAnimationFrame((function(){t()}))}))},e.setTheme=function(t,e){void 0===t&&(t="light");var i="data-dhx-theme";e||document.querySelectorAll("[".concat(i,"]")).forEach((function(t){return t.removeAttribute(i)})),e=e||document.documentElement,(0,o.toNode)(e).setAttribute(i,t)}}).call(this,i(17))},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.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.uid=void 0;var o=i(3),r=(new Date).valueOf();e.uid=function(){return"u"+r++},e.extend=function t(e,i,n){if(void 0===n&&(n=!0),i)for(var o in i){var r=i[o],s=e[o];void 0===r?delete e[o]:!n||"object"!=typeof s||s instanceof Date||s instanceof Array?e[o]=r:t(s,r)}return e},e.copy=function(t,e){var i={};for(var n in t)e&&n.startsWith("$")||(i[n]=t[n]);return i},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 i=t.length,n=0;n<i;n++)if(e(t[n]))return n;return-1},e.isExistValue=function(t,e){var i=e.toString(),n=t.toString();return!(i.length>n.length)&&n.toLowerCase().includes(i.toLowerCase())},e.singleOuterClick=function(t){var e=function(i){t(i)&&document.removeEventListener("click",e)};document.addEventListener("click",e)},e.detectWidgetClick=function(t,e){var i=function(i){return e((0,o.locate)(i,"data-dhx-widget-id")===t)};return document.addEventListener("click",i),function(){return document.removeEventListener("click",i)}},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 i=[];t<=e;)i.push(t++);return i},e.isNumeric=function(t){return!isNaN(t-parseFloat(t))},e.downloadFile=function(t,e,i){void 0===i&&(i="text/plain");var n=new Blob([t],{type:i});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(n,e);else{var o=document.createElement("a"),r=URL.createObjectURL(n);o.href=r,o.download=e,document.body.appendChild(o),o.click(),setTimeout((function(){document.body.removeChild(o),window.URL.revokeObjectURL(r)}),0)}},e.debounce=function(t,e,i){var n;return function(){for(var o=this,r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var a=i&&!n;clearTimeout(n),n=setTimeout((function(){n=null,i||t.apply(o,r)}),e),a&&t.apply(this,r)}},e.compare=function t(e,i){for(var n in e){if(e.hasOwnProperty(n)!==i.hasOwnProperty(n))return!1;switch(typeof e[n]){case"object":if(!t(e[n],i[n]))return!1;break;case"function":if(void 0===i[n]||"compare"!==n&&e[n].toString()!==i[n].toString())return!1;break;default:if(e[n]!==i[n])return!1}}for(var n in i)if(!e.hasOwnProperty(n))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,i=0,n=t.length;i<n;i++)t[i]>e&&(e=t[i]);return e}};e.getMinArrayNumber=function(t){if(t.length){for(var e=1/0,i=0,n=t.length;i<n;i++)t[i]<e&&(e=t[i]);return e}};e.getStringWidth=function(t,e){e=n({font:"normal 14px Roboto",lineHeight:20},e);var i=document.createElement("canvas"),r=i.getContext("2d");e.font&&(r.font=e.font);var s=r.measureText(t).width;return(0,o.isIE)()||i.remove(),s};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),i=parseInt(e[2],10).toString(16).padStart(2,"0"),n=parseInt(e[3],10).toString(16).padStart(2,"0"),o=parseInt(e[4],10).toString(16).padStart(2,"0");return"#".concat(i).concat(n).concat(o)}},e.getCloneObject=function t(e){if(!e)return e;var i=Array.isArray(e)?[]:{};for(var n in e){var o=e[n];o instanceof Date?i[n]=new Date(o):i[n]="object"==typeof o?t(o):o}return i},e.getTextLines=function(t,e,i){for(var n=e.split(" "),o="",r="",s=[],a=0;a<n.length;a++){r+="".concat(n[a]," "),t.measureText(r.trimEnd()).width>i&&a>0?(s.push(o),o="".concat(n[a]," "),r="".concat(n[a]," ")):o+="".concat(n[a]," "),a===n.length-1&&s.push(o)}return s}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EventsMixin=e.EventSystem=void 0;var n=function(){function t(t){this.events={},this.context=t||this}return t.prototype.on=function(t,e,i){var n=t.toLowerCase();this.events[n]=this.events[n]||[],this.events[n].push({callback:e,context:i||this.context})},t.prototype.detach=function(t,e){var i=t.toLowerCase(),n=this.events[i];if(e&&n&&n.length)for(var o=n.length-1;o>=0;o--)n[o].context===e&&n.splice(o,1);else this.events[i]=[]},t.prototype.fire=function(t,e){void 0===e&&(e=[]);var i=t.toLowerCase();return!this.events[i]||!this.events[i].map((function(t){return t.callback.apply(t.context,e)})).includes(!1)},t.prototype.clear=function(){this.events={}},t}();e.EventSystem=n,e.EventsMixin=function(t){var e=new n(t=t||{});t.detachEvent=e.detach.bind(e),t.attachEvent=e.on.bind(e),t.callEvent=e.fire.bind(e)}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};function o(t,e,i){for(void 0===e&&(e="data-dhx-id"),void 0===i&&(i="target"),t instanceof Event&&(t=t[i]);t;){if(t.getAttribute&&t.getAttribute(e))return t;t=t.parentNode}}Object.defineProperty(e,"__esModule",{value:!0}),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,i){var n=Object.keys(e);return function(o){var r=t(o);if(void 0!==r){var s=o.target;t:for(;s;){var a=s.getAttribute&&s.getAttribute("class")||"";if(a.length)for(var l=a.split(" "),c=0;c<n.length;c++)if(l.includes(n[c])){if(!1===e[n[c]](o,r)||o.cancelBubble)return!1;break t}s=s.parentNode}}return"function"==typeof i&&i(o),!0}},e.locateNode=o,e.locate=function(t,e){void 0===e&&(e="data-dhx-id");var i=o(t,e);return i?i.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(),i=document.body,n=window.pageYOffset||i.scrollTop,o=window.pageXOffset||i.scrollLeft;return{top:e.top+n,left:e.left+o,right:i.offsetWidth-e.right,bottom:i.offsetHeight-e.bottom,width:e.right-e.left,height:e.bottom-e.top}};var r=-1;e.getScrollbarWidth=function(){if(r>-1)return r;var t=document.createElement("div");return document.body.appendChild(t),t.style.cssText="position: absolute;left: -99999px;overflow:scroll;width: 100px;height: 100px;",r=t.offsetWidth-t.clientWidth,document.body.removeChild(t),r};var s=-1;function a(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 l(){return{rightBorder:window.pageXOffset+window.innerWidth,bottomBorder:window.pageYOffset+window.innerHeight}}function c(t,e){var i,o,r=l(),s=r.rightBorder,a=r.bottomBorder-t.bottom-e.height,c=t.top-e.height;if("bottom"===e.mode?a>=0?o=t.bottom:c>=0&&(o=c):c>=0?o=c:a>=0&&(o=t.bottom),a<0&&c<0){if(e.auto)return u(t,n(n({},e),{mode:"right",auto:!1}));o=a>c?t.bottom:c}if(e.centering)i=function(t,e,i){var n=(e-(t.right-t.left))/2,o=t.left-n,r=t.right+n;return o>=0&&r<=i?o:o<0?0:i-e}(t,e.width,s);else{var d=s-t.left-e.width,h=t.right-e.width;i=d>=0?t.left:h>=0?h:h>d?t.left:h}return{left:i,top:o}}function u(t,e){var i,o,r=l(),s=r.rightBorder,a=r.bottomBorder,u=s-t.right-e.width,d=t.left-e.width;if("right"===e.mode?u>=0?i=t.right:d>=0&&(i=d):d>=0?i=d:u>=0&&(i=t.right),d<0&&u<0){if(e.auto)return c(t,n(n({},e),{mode:"bottom",auto:!1}));i=d>u?d:t.right}if(e.centering)o=function(t,e,i){var n=(e-(t.bottom-t.top))/2,o=t.top-n,r=t.bottom+n;return o>=0&&r<=i?o:o<0?0:i-e}(t,e.height,a);else{var h=t.bottom-e.height,f=a-t.top-e.height;o=f>=0?t.top:h>0||h>f?h:t.top}return{left:i,top:o}}function d(t,e){var i="bottom"===e.mode||"top"===e.mode?c(t,e):u(t,e),n=i.left,o=i.top;return{left:Math.round(n)+"px",top:Math.round(o)+"px",minWidth:Math.round(e.width)+"px",position:"absolute"}}e.getScrollbarHeight=function(){if(s>-1)return s;var t=document.createElement("div");return document.body.appendChild(t),t.style.cssText="position: absolute;left: -99999px;overflow:scroll;width: 100px;height: 100px;",s=t.offsetHeight-t.clientHeight,document.body.removeChild(t),s},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/),i=t(/Firefox/);return!e&&!i&&t(/Safari/)},e.isFirefox=function(){var t=function(t){return t.test(window.navigator.userAgent)},e=t(/Chrome/),i=t(/Safari/);return!e&&!i&&t(/Firefox/)},e.getRealPosition=a,e.calculatePosition=d,e.fitPosition=function(t,e){return d(a(t),e)},e.getPageCss=function(){for(var t=[],e=0;e<document.styleSheets.length;e++)for(var i=document.styleSheets[e],n=("cssRules"in i?i.cssRules:i.rules),o=0;o<n.length;o++){var r=n[o];"cssText"in r?t.push(r.cssText):t.push("".concat(r.selectorText," {\n").concat(r.style.cssText,"\n}\n"))}return t.join("\n")},e.getLabelStyle=function(t){var e=t.helpMessage,i=t.type,n=t.labelWidth,o=t.label,r=n&&n.toString().startsWith("0"),s="text"!==i&&t.required;return!!(e||s||!(!o||o&&r)||n&&!r)&&{style:(o||n)&&!r&&{width:n,"max-width":"100%"},label:o&&r?null:o}};var h=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 i=document.styleSheets[e];if(!h(i))for(var n=("cssRules"in i&&i.cssRules.length?i.cssRules:i.rules),o=0;o<n.length;o++){var r=n[o];"cssText"in r?t.push(r.cssText):t.push("".concat(r.selectorText," {\n").concat(r.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 i=0;i<document.styleSheets.length;i++){var n=document.styleSheets[i];h(n)&&e.push('<link href="'.concat(n.href,'" rel="stylesheet"/>'))}return e.join("\n")}},function(t,e,i){"use strict";var n,o,r,s;Object.defineProperty(e,"__esModule",{value:!0}),e.ItemEvent=e.ValidationStatus=e.FormEvents=e.ClearMethod=void 0,function(t){t.value="value",t.validation="validation"}(n||(e.ClearMethod=n={})),function(t){t.beforeChange="beforeChange",t.change="change",t.click="click",t.focus="focus",t.blur="blur",t.keydown="keydown",t.beforeShow="beforeShow",t.afterShow="afterShow",t.beforeHide="beforeHide",t.afterHide="afterHide",t.afterValidate="afterValidate",t.beforeValidate="beforeValidate",t.beforeChangeProperties="beforeChangeProperties",t.afterChangeProperties="afterChangeProperties",t.beforeSend="beforesend",t.afterSend="aftersend",t.buttonClick="buttonClick",t.validationFail="validationfail"}(o||(e.FormEvents=o={})),function(t){t[t.pre=0]="pre",t[t.error=1]="error",t[t.success=2]="success"}(r||(e.ValidationStatus=r={})),function(t){t.click="click",t.beforeChange="beforeChange",t.change="change",t.input="input",t.focus="focus",t.blur="blur",t.keydown="keydown",t.beforeChangeOptions="beforeChangeOptions",t.changeOptions="changeOptions",t.beforeShow="beforeShow",t.afterShow="afterShow",t.beforeHide="beforeHide",t.afterHide="afterHide",t.beforeValidate="beforeValidate",t.afterValidate="afterValidate",t.beforeUploadFile="beforeUploadFile",t.uploadFile="uploadfile",t.uploadBegin="uploadBegin",t.uploadComplete="uploadComplete",t.uploadFail="uploadFail",t.uploadProgress="uploadProgress",t.beforeChangeProperties="beforeChangeProperties",t.afterChangeProperties="afterChangeProperties"}(s||(e.ItemEvent=s={}))},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.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 o,r,s=i(0),a=["#2A9D8F","#78586F","#E76F51","#E5A910","#11A3D0","#985F99","#217B70","#BD9391","#9C89B8","#734B5E","#D66BA0","#5C5D8D"],l=["#237396","#2780A8","#3892A3","#4DA3A0","#67BF99"];function c(t){var e={};return function(i){return e[i]?e[i]:e[i]=t(i)}}e.getDefaultColor=function(t,e){return void 0===t&&(t=0),e?l[t]:a[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=(o=function(t,e){void 0===e&&(e="");var i=document.createElement("canvas").getContext("2d");return e&&(i.font=e),i.measureText(t).width},r={},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=r,n=0;n<t.length-1;n++)i[t[n]]=i[t[n]]||{},i=i[t[n]];var s=t.length-1;return i[s]?i[s]:i[s]=o.apply(void 0,t)});var u=c((function(t){var e=document.createElement("canvas").getContext("2d");e.fillStyle=t,e.fillRect(0,0,2,2);var i=e.getImageData(1,1,1,1).data;return[i[0],i[1],i[2]]}));function d(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 i=u(t).map((function(t){return Math.floor(t*e+255*(1-e))})),n=i[0],o=i[1],r=i[2];return"rgb(".concat(n,",").concat(o,",").concat(r,")")},e.getFontStyle=c((function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("class","dhx_chart");var i=document.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("class",t),e.setAttribute("visibility","hidden"),i.textContent="test",e.appendChild(i),document.body.appendChild(e);var n=getComputedStyle(i),o="".concat(n.fontSize," ").concat(n.fontFamily);return document.body.removeChild(e),o})),e.linearGradient=function(t,e){var i=t.stops.map((function(t){return(0,s.sv)("stop",{offset:"".concat(100*t.offset,"%"),"stop-color":t.color,"stop-opacity":t.opacity||1})}));return(0,s.sv)("linearGradient",{id:e,gradientTransform:"rotate(90)"},i)},e.getRadialGradient=function(t,e,i){var o=e.map((function(t){return(0,s.sv)("stop",{offset:t.offset,"stop-color":t.color,"stop-opacity":t.opacity||1})}));return(0,s.sv)("radialGradient",n({id:i,cx:0,cy:0,gradientUnits:"userSpaceOnUse"},t),o)},e.euclideanDistance=function(t,e,i,n){return Math.sqrt((t-i)*(t-i)+(e-n)*(e-n))},e.roundToTwoNumAfterPoint=function(t){return Math.round(100*(100*t+Number.EPSILON))/100},e.verticalCenteredText=function(t){return(0,s.sv)("tspan",{dy:"0.5ex",style:{pointerEvents:"none"}},t)},e.verticalTopText=function(t){return(0,s.sv)("tspan",{dy:"-0.5ex"},t)},e.verticalBottomText=function(t){return(0,s.sv)("tspan",{dy:"1.5ex"},t)},e.calcPointRef=function(t,e){return t+"_"+e},e.getClassesForRotateScale=function(t,e){var i="",n=[];switch("left"===t||"top"===t?n.push("start-text","end-text"):"right"!==t&&"bottom"!==t||n.push("end-text","start-text"),t){case"left":case"right":0===e?i=n[1]:e>0?180===e?i=n[0]:e>180?e<270?i=n[0]:e>270&&(i=n[1]):e<180&&(e>90?i=n[0]:e<90&&(i=n[1])):e<0&&(-180===e?i=n[0]:e<-180?e>-270?i=n[0]:e<-270&&(i=n[1]):e>-180&&(e<-90?i=n[0]:e>-90&&(i=n[1])));break;case"top":case"bottom":e>0?e>180?i=n[0]:e<180&&(i=n[1]):e<0&&(e>-180?i=n[0]:e<-180&&(i=n[1]))}return i},e.getScales=function(t){var e=[];for(var i in t){var n=t[i];(n.min||n.max||n.maxTicks||n.text||n.value)&&e.push(i)}return e},e.getSizesSVGText=function(t,i){var o=[];return i=n({font:"normal 14px Roboto",lineHeight:18},i),o.push((0,e.getTextWidth)(t,i.font)),o.push(i.lineHeight),o},e.superposition=d,e.checkPositions=function(t,e,i,n,o){if(d(t,e)){var r=o.right?e.y-t.y+t.height:e.y-e.height-t.y,s=o.text1.y+r;Math.abs(s)+o.dy>n&&(s=s>0?n+o.dy:-n+o.dy,o.changeSector=!o.changeSector);var a=Math.sqrt(Math.pow(i,2)-Math.pow((s-o.dy)*i/n,2));a=o.right?a:-a,o.changeSector&&(a*=-1,o.line*=-1,t.class=o.right?"pie-value end-text":"pie-value start-text"),o.text1.x=a,o.text1.y=s,o.text2.x=a,o.text2.y=s+16}}},function(t,e,i){"use strict";var n,o=this&&this.__rest||function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]])}return i};Object.defineProperty(e,"__esModule",{value:!0}),e.setAttacments=e.widgetConfig=e.baseProps=e.isVerify=e.isTimeFormat=e.baseInputValidate=e.validateInput=e.isBlock=e.validateTemplate=e.getValidationMessage=e.getFormItemCss=void 0;var r=i(4),s=i(39),a=i(1);e.getFormItemCss=function(t,e,i){var n;void 0===i&&(i=!1);var o=t.labelPosition,s=t.required,a=t.disabled,l=t.hiddenLabel,c=t.$validationStatus,u=(n={},n[r.ValidationStatus.pre]="",n[r.ValidationStatus.error]=" dhx_form-group--state_error",n[r.ValidationStatus.success]=" dhx_form-group--state_success",n)[c]||"",d="left"===o?" dhx_form-group--inline":"",h=a?" dhx_form-group--disabled":"",f=l?" dhx_form-group--label_sr":"";return e?d+(i?"":u)+(s?" dhx_form-group--required":"")+h+f:d+h+f};var l=((n={})[s.Validation.validAlphaNumeric]=/^[a-zA-Z0-9_]+$/,n[s.Validation.validEmail]=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,n[s.Validation.validInteger]=/^-?\d+$/,n[s.Validation.validIPv4]=/\b((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.|$)){4}\b/,n[s.Validation.validNumeric]=/^-?\d+(\.\d+)?$/,n);function c(t){return"fieldset"!==t.type&&(Boolean(t.rows)||Boolean(t.cols))}e.getValidationMessage=function(t){var e;return(e={undefined:t.preMessage},e[r.ValidationStatus.pre]=t.preMessage,e[r.ValidationStatus.error]=t.errorMessage,e[r.ValidationStatus.success]=t.successMessage,e)[t.$validationStatus]||""},e.validateTemplate=function(t,e){return!l[t]||l[t].test(e)},e.isBlock=c,e.validateInput=function(t,e){var i=!0;if("function"==typeof e)i=e(t);else{var n=l[e];n&&(i=n.test(t.toString()))}return i},e.baseInputValidate=function(t,e){var i=null!=t?t:"";if(e.required){if(!String(i).trim())return!1}else if(""===i)return!0;var n=function(t,e,i){var n=(0,a.isDefined)(e),o=(0,a.isDefined)(i);return n&&o?Number(e)<=Number(i)&&Number(e)<=t&&Number(i)>=t:n?Number(e)<=t:!o||Number(i)>=t};return"number"===e.inputType?n(Number(i),e.min,e.max):n(String(i).length,e.minlength,e.maxlength)},e.isTimeFormat=function(t,e){return 12===e?/(^0?([1-9][0-2]?):[0-5][0-9]?([AP][M]?)$)/i.test(t):/(^(0[0-9]|1[0-9]|2[0-3]|[0-9]):[0-5][0-9]$)/i.test(t)},e.isVerify=function(t){return["required","validation","minlength","maxlength","min","max"].some((function(e){switch(e){case"required":return!!t[e];case"validation":return"function"==typeof t[e]||"email"===t[e]||"integer"===t[e]||"numeric"===t[e]||"alphanumeric"===t[e]||"IPv4"===t[e];case"minlength":case"maxlength":return"number"==typeof t[e]||"string"==typeof t[e];case"min":case"max":return("number"==typeof t[e]||"string"==typeof t[e])&&"number"===t.inputType}}))},e.baseProps=["width","height","padding","css"];function u(t,e,i){void 0===t&&(t=[]);for(var n=[],o=0;o<t.length;o++){var r=t[o];r.type&&(e[r.name].parent=i,n.push(e[r.name])),c(r)&&n.push.apply(n,u(r.rows||r.cols,e,i))}return n}e.widgetConfig=function(t){t.width,t.type,t.id,t.name,t.hidden,t.editable,t.css,t.required,t.helpMessage,t.preMessage,t.successMessage,t.errorMessage,t.label,t.labelWidth,t.labelPosition,t.hiddenLabel,t.validation,t.icon;return o(t,["width","type","id","name","hidden","editable","css","required","helpMessage","preMessage","successMessage","errorMessage","label","labelWidth","labelPosition","hiddenLabel","validation","icon"])},e.setAttacments=function(t,e){var i;for(var n in t){var o=t[n];"fieldset"===o.config.type?(o.setAttachments(u(o.config.rows||o.config.cols,t,o)),o.setCell(e.getCell(n))):null===(i=e.getCell(n))||void 0===i||i.attach(o)}}},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(22),e),o(i(60),e),o(i(125),e),o(i(126),e),o(i(27),e),o(i(128),e),o(i(23),e),o(i(63),e),o(i(62),e),o(i(129),e),o(i(61),e),o(i(41),e)},function(t,e,i){"use strict";var n,o,r,s,a;Object.defineProperty(e,"__esModule",{value:!0}),e.Split=e.GridSelectionEvents=e.GridSystemEvents=e.GridEvents=e.HeaderFilterEvent=void 0,function(t){t.change="change"}(n||(e.HeaderFilterEvent=n={})),function(t){t.scroll="scroll",t.expand="expand",t.filterChange="filterChange",t.beforeFilter="beforeFilter",t.beforeResizeStart="beforeResizeStart",t.resize="resize",t.afterResizeEnd="afterResizeEnd",t.cellClick="cellClick",t.cellRightClick="cellRightClick",t.cellMouseOver="cellMouseOver",t.cellMouseDown="cellMouseDown",t.cellDblClick="cellDblClick",t.headerCellClick="headerCellClick",t.footerCellClick="footerCellClick",t.headerCellMouseOver="headerCellMouseOver",t.footerCellMouseOver="footerCellMouseOver",t.headerCellMouseDown="headerCellMouseDown",t.footerCellMouseDown="footerCellMouseDown",t.headerCellDblClick="headerCellDblClick",t.footerCellDblClick="footerCellDblClick",t.headerCellRightClick="headerCellRightClick",t.footerCellRightClick="footerCellRightClick",t.beforeEditStart="beforeEditStart",t.afterEditStart="afterEditStart",t.beforeEditEnd="beforeEditEnd",t.afterEditEnd="afterEditEnd",t.beforeKeyDown="beforeKeyDown",t.afterKeyDown="afterKeyDown",t.beforeColumnHide="beforeColumnHide",t.afterColumnHide="afterColumnHide",t.beforeColumnShow="beforeColumnShow",t.afterColumnShow="afterColumnShow",t.beforeRowHide="beforeRowHide",t.afterRowHide="afterRowHide",t.beforeRowShow="beforeRowShow",t.afterRowShow="afterRowShow",t.beforeRowDrag="beforeRowDrag",t.dragRowStart="dragRowStart",t.dragRowOut="dragRowOut",t.dragRowIn="dragRowIn",t.canRowDrop="canRowDrop",t.cancelRowDrop="cancelRowDrop",t.beforeRowDrop="beforeRowDrop",t.afterRowDrop="afterRowDrop",t.afterRowDrag="afterRowDrag",t.beforeColumnDrag="beforeColumnDrag",t.dragColumnStart="dragColumnStart",t.dragColumnOut="dragColumnOut",t.dragColumnIn="dragColumnIn",t.canColumnDrop="canColumnDrop",t.cancelColumnDrop="cancelColumnDrop",t.beforeColumnDrop="beforeColumnDrop",t.afterColumnDrop="afterColumnDrop",t.afterColumnDrag="afterColumnDrag",t.beforeRowResize="beforeRowResize",t.afterRowResize="afterRowResize",t.beforeSort="beforeSort",t.afterSort="afterSort"}(o||(e.GridEvents=o={})),function(t){t.cellTouchMove="cellTouchMove",t.cellTouchEnd="cellTouchEnd",t.headerCellTouchMove="headerCellTouchMove",t.headerCellTouchEnd="headerCellTouchEnd"}(r||(e.GridSystemEvents=r={})),function(t){t.beforeUnSelect="beforeUnSelect",t.afterUnSelect="afterUnSelect",t.beforeSelect="beforeSelect",t.afterSelect="afterSelect"}(s||(e.GridSelectionEvents=s={})),function(t){t.left="leftSplit",t.right="rightSplit",t.top="topSplit",t.bottom="bottomSplit"}(a||(e.Split=a={}))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toViewLike=e.View=void 0;var n=i(1),o=i(3),r=function(){function t(t,e){var i;this.config=e||{},this._uid=null!==(i=this.config.rootId)&&void 0!==i?i:(0,n.uid)()}return t.prototype.mount=function(t,e){e&&(this._view=e),t&&this._view&&this._view.mount&&(this._container=(0,o.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=r,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,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Label=void 0;var s=i(0),a=i(3),l=i(9),c=i(13),u=i(4),d=function(t){function e(e,i){void 0===i&&(i={});var n=t.call(this,e,i)||this;n._handlers=r({showHelper:function(t){t.preventDefault(),t.stopPropagation(),n._helper.show(t.target,{mode:"left"===n.config.labelPosition?"bottom":"right",theme:t.target})},hideHelper:function(t){t.preventDefault(),t.stopPropagation(),n._helper.hide()}},n._getHandlers());return n.mount(e,(0,s.create)({render:function(){return n.config&&n._draw()}})),n}return o(e,t),e.prototype.setValidationStatus=function(t){void 0===t&&(t="pre"),this.config.$validationStatus=u.ValidationStatus[t]},e.prototype._destructor=function(){this._helper&&this._helper.destructor(),this.config=this._handlers=this._helper=null,this.unmount()},e.prototype._getHandlers=function(){return{}},e.prototype._init=function(){},e.prototype._draw=function(){return this._drawLabel()},e.prototype._drawLabel=function(){var t=this.config,e=t.id,i=t.helpMessage,n=t.required;this.config.helpMessage&&(this._helper||(this._helper=new c.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"})),this._helper.attachHTML(this.config.helpMessage));var o=(0,a.getLabelStyle)(this.config);return o&&(0,s.el)("".concat(this.config.type.includes("group")?"legend":"label",".dhx_label"),{for:e||this._uid,class:i?"dhx_label--with-help":"",style:o.style},i?[(o.label||n)&&(0,s.el)("span.dhx_label__holder",o.label),(0,s.el)("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper,onfocus:this._handlers.showHelper,onblur:this._handlers.hideHelper,id:"dhx_label__help_".concat(e||this._uid)})]:o.label)},e}(l.View);e.Label=d},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(42),e),o(i(132),e),o(i(43),e)},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(134),e),o(i(135),e),o(i(136),e),o(i(66),e),o(i(44),e)},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(152),e),o(i(68),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeyManager=void 0;var n=i(21),o=i(3);function r(t){for(var e=t.toLowerCase().match(/\w+/g),i=0,n="",o=0;o<e.length;o++){var r=e[o];"ctrl"===r?i+=4:"shift"===r?i+=2:"alt"===r?i+=1:n=r}return i+n}var s={Up:"arrowUp",Down:"arrowDown",Right:"arrowRight",Left:"arrowLeft",Esc:"escape",Spacebar:"space"},a=function(){function t(t){var e=this;this._keysStorage={},this._initHandler=function(t){var i;if(t.which>=48&&t.which<=57||t.which>=65&&t.which<=90)i=String.fromCharCode(t.which);else{var r=32===t.which?t.code:t.key;i=(0,o.isIE)()&&s[r]||r}var a=e._keysStorage[(t.ctrlKey||t.metaKey?4:0)+(t.shiftKey?2:0)+(t.altKey?1:0)+(i&&i.toLowerCase())];if(a)for(var l=0;l<a.length;l++){if(e._beforeCall&&!1===e._beforeCall(t,n.focusManager.getFocusId()))return;a[l].handler(t)}},t&&(this._beforeCall=t),document.addEventListener("keydown",this._initHandler)}return t.prototype.destructor=function(){document.removeEventListener("keydown",this._initHandler),this.removeHotKey()},t.prototype.addHotKey=function(t,e){var i=r(t);this._keysStorage[i]||(this._keysStorage[i]=[]),this._keysStorage[i].push({handler:e})},t.prototype.removeHotKey=function(t,e){var i=this;if(t)if(t&&e){var n=r(t),o=function(t){return t.toString().replace(/\n/g,"").replace(/\s/g,"")};this._keysStorage[n].forEach((function(t,r){o(t.handler)===o(e)&&(delete i._keysStorage[n][r],i._keysStorage[n]=i._keysStorage[n].filter((function(t){return t})))}))}else{var s=r(t);delete this._keysStorage[s]}else this._keysStorage={}},t.prototype.exist=function(t){var e=r(t);return!!this._keysStorage[e]},t.prototype.getKeyStorageLength=function(){return Object.keys(this._keysStorage).length},t}();e.KeyManager=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DateHelper=e.stringToDate=e.getFormattedDate=e.locale=void 0;var n=i(1),o=i(1);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 r,s={"%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()}},a={"%d":function(t,e,i,n){var o=/(^([0-9][0-9])$)/i.test(e);if(n)return o;o?t.setDate(Number(e)):t.setDate(Number(1))},"%j":function(t,e,i,n){var o=/(^([0-9]?[0-9])$)/i.test(e);if(n)return o;o?t.setDate(Number(e)):t.setDate(Number(1))},"%m":function(t,e,i,n){var o=/(^([0-9][0-9])$)/i.test(e);if(n)return o;o?t.setMonth(Number(e)-1):t.setMonth(Number(0)),o&&t.getMonth()!==Number(e)-1&&t.setMonth(Number(e)-1)},"%n":function(t,e,i,n){var o=/(^([0-9]?[0-9])$)/i.test(e);if(n)return o;o?t.setMonth(Number(e)-1):t.setMonth(Number(0)),o&&t.getMonth()!==Number(e)-1&&t.setMonth(Number(e)-1)},"%M":function(t,i,n,r){var s=(0,o.findIndex)(e.locale.monthsShort,(function(t){return t===i}));if(r)return-1!==s;-1===s?t.setMonth(0):t.setMonth(s),-1!==s&&t.getMonth()!==s&&t.setMonth(s)},"%F":function(t,i,n,r){var s=(0,o.findIndex)(e.locale.months,(function(t){return t===i}));if(r)return-1!==s;-1===s?t.setMonth(0):t.setMonth(s),-1!==s&&t.getMonth()!==s&&t.setMonth(s)},"%y":function(t,e,i,n){var o=/(^([0-9][0-9])$)/i.test(e);if(n)return o;o?t.setFullYear(Number("20"+e)):t.setFullYear(Number("2000"))},"%Y":function(t,e,i,n){var o=/(^([0-9][0-9][0-9][0-9])$)/i.test(e);if(n)return o;o?t.setFullYear(Number(e)):t.setFullYear(Number("2000"))},"%h":function(t,e,i,n){var o=/(^0[1-9]|1[0-2]$)/i.test(e);if(n)return o;o&&("am"===i||"pm"===i)||"AM"===i||"PM"===i?t.setHours(Number(e)):t.setHours(Number(0))},"%g":function(t,e,i,n){var o=/(^[1-9]$)|(^0[1-9]|1[0-2]$)/i.test(e);if(n)return o;o&&("am"===i||"pm"===i)||"AM"===i||"PM"===i?t.setHours(Number(e)):t.setHours(Number(0))},"%H":function(t,e,i,n){var o=/(^[0-2][0-9]$)/i.test(e);if(n)return o;o?t.setHours(Number(e)):t.setHours(Number(0))},"%G":function(t,e,i,n){var o=/(^[1-9][0-9]?$)/i.test(e);if(n)return o;o?t.setHours(Number(e)):t.setHours(Number(0))},"%i":function(t,e,i,n){var o=/(^([0-5][0-9])$)/i.test(e);if(n)return o;o?t.setMinutes(Number(e)):t.setMinutes(Number(0))},"%s":function(t,e,i,n){var o=/(^([0-5][0-9])$)/i.test(e);if(n)return o;o?t.setSeconds(Number(e)):t.setSeconds(Number(0))},"%u":function(t,e,i,n){var o=/(^([0-9][0-9][0-9])$)/i.test(e);if(n)return o;o?t.setMilliseconds(Number(e)):t.setMilliseconds(Number(0))},"%a":function(t,e,i,n){if(n)return"pm"===e||"am"===e;"pm"===e&&t.setHours(t.getHours()+12)},"%A":function(t,e,i,n){if(n)return"PM"===e||"AM"===e;"PM"===e&&t.setHours(t.getHours()+12)}};function l(t){for(var e=[],i="",n=0;n<t.length;n++)"%"===t[n]?(i.length>0&&(e.push({type:r.separator,value:i}),i=""),e.push({type:r.datePart,value:t[n]+t[n+1]}),n++):i+=t[n];return i.length>0&&e.push({type:r.separator,value:i}),e}!function(t){t[t.separator=0]="separator",t[t.datePart=1]="datePart"}(r||(r={})),e.getFormattedDate=function(t,e){return l(t).reduce((function(t,i){return i.type===r.separator?t+i.value:s[i.value]?t+s[i.value](e):t}),"")};var c={"%Y":1,"%y":1,"%M":2,"%F":2,"%m":2,"%n":2};function u(t,e,i){if("string"==typeof t){e=e.replace(/([a-z])(%a)/i,(function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t=t.replace(/(am|pm)/i," $&"),e[1]+" "+e[2]}));for(var n,o=l(e),s=new Array(2),u=0,d=null,h="Incorrect date, see docs: https://docs.dhtmlx.com/suite/calendar__api__calendar_dateformat_config.html",f=function(t){var e=c[t.formatter];e?s[e-1]=t:("%A"!==t.formatter&&"%a"!==t.formatter||(n=t.value),s.push(t))},p=0;p<o.length;p++)if(o[p].type===r.separator){var v=t.indexOf(o[p].value,u);if(-1===v){if(i)return!1;throw new Error(h)}d&&(f({formatter:d,value:t.slice(u,v)}),d=null),u=v+o[p].value.length}else if(o[p].type===r.datePart){if(o[p+1]&&o[p+1].type!==r.separator){if(i)return!1;throw new Error(h)}d=o[p].value}d&&f({formatter:d,value:t.slice(u)});for(var g=new Date(0),_=0,m=s;_<m.length;_++){var y=m[_];if(y&&a[y.formatter]){if(i&&!a[y.formatter](g,y.value,n,i))return!1;a[y.formatter](g,y.value,n)}}return!!i||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 i=(t.getDay()+7-e)%7;return new Date(t.getFullYear(),t.getMonth(),t.getDate()-i)},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,i,n){return void 0===n||!n&&12===e||n&&12!==e?new Date(t.getFullYear(),t.getMonth(),t.getDate(),e,i):n&&12===e?new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,i):new Date(t.getFullYear(),t.getMonth(),t.getDate(),e+12,i)},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(),i=e-e%12;return(0,n.range)(i,i+11)},t.getDayOrdinal=function(e){return(e.valueOf()-t.yearStart(e).valueOf())/864e5},t.getWeekNumber=function(e){var i=4===e.getDay()?e:t.addDay(e,4-e.getDay()),n=t.getDayOrdinal(i);return Math.trunc(n/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,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.scrollFixedColsAndRows=e.getTotalHeight=e.getTotalWidth=e.isHtmlEnable=e.isTooltip=e.getTooltipConfig=e.isContentTooltip=e.showTooltip=e.isAutoWidth=e.isSortable=e.isRowEmpty=e.isCssSupport=e.removeHTMLTags=e.getStyleByClass=e.transpose=void 0;var o=i(1),r=i(3),s=i(12);e.transpose=function(t,e){for(var i=[],n=0;n<t.length;n++)for(var o=t[n],r=0;r<o.length;r++){i[r]=i[r]||[];var s=e?e(o[r]):o[r];i[r].push(s)}return i},e.getStyleByClass=function(t,e,i,n){void 0===n&&(n=document.body);var r,s,a,l=n.querySelector("."+e.trim().replace(/\s/g,".")),c=(r=l,"string"==typeof(s='<div class="'.concat(t,'"></div>'))?(r.insertAdjacentHTML("beforeend",s),r.lastChild):(r.appendChild(s),s)),u=window.getComputedStyle(c),d="rgba(0, 0, 0, 0)";if(u.backgroundColor===d){var h=window.getComputedStyle(l);a=h.backgroundColor===d?i.background:(0,o.rgbToHex)(h.backgroundColor)}else a=(0,o.rgbToHex)(u.backgroundColor);var f={color:"rgb(0, 0, 0)"===u.color?i.color:(0,o.rgbToHex)(u.color),background:a,fontSize:Math.round(parseFloat(u.fontSize)),bold:["bold","700","600","500"].includes(u.fontWeight)};return l.removeChild(c),(0,o.compare)(f,i)?null:f},e.removeHTMLTags=function(t){return"string"!=typeof t&&"number"!=typeof t&&"boolean"!=typeof t?"":"".concat(null==t?"":t).replace(/<[^>]*>/g,"").replace(/["]/g,"&quot;").trim()},e.isCssSupport=function(t,e){try{return CSS.supports(t,e)}catch(n){var i=document.createElement("div");return i.style[t]=e,i.style[t]===e}},e.isRowEmpty=function(t){if(t)return Object.keys(t).reduce((function(e,i){return"id"===i||i.startsWith("$")?e:e&&void 0!==t[i]&&""!==t[i]?void 0:e}),!0)},e.isSortable=function(t,e){return!1!==e.sortable&&t.sortable||e.sortable},e.isAutoWidth=function(t,e){if(e)return!1!==e.autoWidth&&t.autoWidth||e.autoWidth;var i=!1;return t.columns.map((function(e){(!1!==e.autoWidth&&t.autoWidth||e.autoWidth)&&(i=!0)})),i},e.showTooltip=function(t,e){e.node&&(0,s.tooltip)(t.toString(),n(n({},e),{css:"dhx_grid_tooltip "+(e.css||"")}))},e.isContentTooltip=function(t,e,i,n){for(var o=!1,r="header"===n?t.headerTooltip:t.footerTooltip,s=[t.tooltip,r,e.tooltip,null==i?void 0:i.tooltip],a=0;a<s.length;a++)(s[a]||"boolean"==typeof s[a])&&(o=!!s[a]);return o},e.getTooltipConfig=function(t,e,i,n){return[null==i?void 0:i.tooltip,null==e?void 0:e.tooltip,n&&("header"===n?t.headerTooltip:t.footerTooltip),t.tooltip].find((function(t){return t instanceof Object}))||{}},e.isTooltip=function(t,e){return!1!==e.tooltip&&t.tooltip||e.tooltip},e.isHtmlEnable=function(t,e,i){var n,o;return!!(null!==(o=null!==(n=null==i?void 0:i.htmlEnable)&&void 0!==n?n:e.htmlEnable)&&void 0!==o?o:t.htmlEnable)},e.getTotalWidth=function(t){return t.reduce((function(t,e){return t+(e.$width||0)}),0)},e.getTotalHeight=function(t){return t.reduce((function(t,e){return t+(e.$height||0)}),0)},e.scrollFixedColsAndRows=function(t){var e=(0,r.locateNode)(t,"data-dhx-widget-id").querySelector(".dhx_grid-body"),i=t.deltaY,n=t.shiftKey?[i,0]:[0,i];null==e||e.scrollBy.apply(e,n)}},function(t,e,i){(function(e,i){!function(){e="undefined"!=typeof window?window:this;var n=1,o={},r=!1;function s(t){e.setImmediate?i(t):e.importScripts?setTimeout(t):(n++,o[n]=t,e.postMessage(n,"*"))}function a(t){"use strict";if("function"!=typeof t&&null!=t)throw TypeError();if("object"!=typeof this||this&&this.then)throw TypeError();var e,i,n=this,o=0,r=0,l=[];n.promise=n,n.resolve=function(t){return e=n.fn,i=n.er,o||(r=t,o=1,s(d)),n},n.reject=function(t){return e=n.fn,i=n.er,o||(r=t,o=2,s(d)),n},n._d=1,n.then=function(t,e){if(1!=this._d)throw TypeError();var i=new a;return i.fn=t,i.er=e,3==o?i.resolve(r):4==o?i.reject(r):l.push(i),i},n.catch=function(t){return n.then(null,t)};var c=function(t){o=t||4,l.map((function(t){3==o&&t.resolve(r)||t.reject(r)}))};try{"function"==typeof t&&t(n.resolve,n.reject)}catch(t){n.reject(t)}return n;function u(t,e,i,n){if(2==o)return n();if("object"!=typeof r&&"function"!=typeof r||"function"!=typeof t)n();else try{var s=0;t.call(r,(function(t){s++||(r=t,e())}),(function(t){s++||(r=t,i())}))}catch(t){r=t,i()}}function d(){var t;try{t=r&&r.then}catch(t){return r=t,o=2,d()}u(t,(function(){o=1,d()}),(function(){o=2,d()}),(function(){try{1==o&&"function"==typeof e?r=e(r):2==o&&"function"==typeof i&&(r=i(r),o=1)}catch(t){return r=t,c()}r==n?(r=TypeError(),c()):u(t,(function(){c(3)}),c,(function(){c(1==o&&3)}))}))}}e.setImmediate||e.addEventListener("message",(function(t){if(t.source==e)if(r)s(o[t.data]);else{r=!0;try{o[t.data]()}catch(t){}delete o[t.data],r=!1}})),a.resolve=function(t){if(1!=this._d)throw TypeError();return t instanceof a?t:new a((function(e){e(t)}))},a.reject=function(t){if(1!=this._d)throw TypeError();return new a((function(e,i){i(t)}))},a.all=function(t){if(1!=this._d)throw TypeError();if(!(t instanceof Array))return a.reject(TypeError());var e=new a;return function i(n,o){if(o)return e.resolve(o);if(n)return e.reject(n);0==t.reduce((function(t,e){return e&&e.then?t+1:t}),0)&&e.resolve(t),t.map((function(e,n){e&&e.then&&e.then((function(e){return t[n]=e,i(),e}),i)}))}(),e},a.race=function(t){if(1!=this._d)throw TypeError();if(!(t instanceof Array))return a.reject(TypeError());if(0==t.length)return new a;var e=new a;return function i(n,o){if(o)return e.resolve(o);if(n)return e.reject(n);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){i(null,t)}),i)}))}(),e},a._d=1,t.exports=a}()}).call(this,i(40),i(117).setImmediate)},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.getEditorValue=e.getValueForNumberColumn=e.getEditorOptions=e.toFormat=e.getMaxColsWidth=e.getTreeCellWidthOffset=e.getCalculatedRowHeight=e.getMaxRowHeight=e.getUnique=e.calculatePositions=e.countColumns=e.measureTextHeight=e.normalizeArray=void 0;var r=i(1),s=i(16),a=i(15);e.normalizeArray=function(t,e){t[e]&&("string"==typeof t[e]?t[e]=[{text:"".concat(t[e])}]:t[e]=t[e].map((function(t){return"string"==typeof t&&(t={text:t}),t})))},e.measureTextHeight=function(t){var e=t.text,i=void 0===e?"":e,n=t.width,o=void 0===n?0:n,a=t.lineHeight,l=void 0===a?20:a,c=t.font,u=void 0===c?"14px Arial":c,d=t.htmlEnable,h=void 0!==d&&d,f=document.createElement("canvas"),p=f.getContext("2d",{alpha:!1});p.font=u;var v=[],g=[];h&&(i=(0,s.removeHTMLTags)(i));var _=Math.ceil(p.measureText(i).width/o);_>1&&(_=(0,r.getTextLines)(p,i,o).length),g.push(_),v.push(i.split("\n").length);var m=Math.max((0,r.getMaxArrayNumber)(v),(0,r.getMaxArrayNumber)(g));return f.remove(),m*l},e.countColumns=function(t,e){var i=0,n=0,o=0,s=!1,a=0,l=!1;return e.forEach((function(t){if(i=Math.max(i,t.header.length),o+=t.$width,t.footer&&(n=Math.max(n,t.footer.length),l||(l=!0)),!s)for(var e=0,r=t.header;e<r.length;e++){if(r[e].colspan)return void(s=!0)}})),e.forEach((function(t){if(l&&(t.footer=t.footer||[]),t.header.length<i)for(var e=0;e<i;e++)t.header[e]=t.header[e]||{text:""};if(t.footer){if(t.footer.length<n)for(e=0;e<n;e++)t.footer[e]=t.footer[e]||{text:""};for(e=0;e<t.footer.length;e++)t.footer[e].id||(t.footer[e].id=(0,r.uid)())}t.header=t.header.map((function(t){return"object"!=typeof t&&(t={text:t}),t.css=t.css||"",t.text||t.css.includes("dhx_cell-empty")||(t.css+=" dhx_cell-empty"),t.id||(t.id=(0,r.uid)()),t})),""===t.header[0].text&&a++})),t.$totalWidth=o,t.$colspans=s,t.$footer=l,a},e.calculatePositions=function(t,e,i,n,o){for(var r,s,a,l=n.columns||[],c=l.length,u=o||[],d=u.length,h=n.leftSplit?n.columns.slice(0,n.leftSplit).filter((function(t){return!t.hidden})).length:0,f=null!==(r=n.topSplit)&&void 0!==r?r:0,p=null!==(s=n.rightSplit)&&void 0!==s?s:0,v=null!==(a=n.bottomSplit)&&void 0!==a?a:0,g=0,_=0,m=i.left,y=n.$totalWidth/c,b=0;b<c;b++){var w=l[b];if(w.hidden)_++;else{if(!((m-=w.$width)+y/2>0))break;g++}}var x=0,E=0,C=i.top,S=n.$totalHeight/d;for(b=0;b<d;b++){if((A=u[b]).hidden)E++;else{if(!((C-=A.$height)+S/2>0))break;x++}}for(var k=0,O=0,P=-1/0,I=1/0,D=g+_,M=0;M<c;M++){var T=l[M];M>=D&&k<t&&!T.hidden&&(k+=T.$width,O++),T.$width>P&&(P=T.$width),T.$width<I&&(I=T.$width)}var V=0,H=0,j=-1/0,F=1/0,R=x+E;for(M=0;M<d;M++){var A=u[M];M>=R&&V<e&&!A.hidden&&(V+=A.$height,H++),A.$height>j&&(j=A.$height),A.$height<F&&(F=A.$height)}F=F<n.rowHeight?F:n.rowHeight;var L=Math.round(P/I),$=Math.round(j/F),N=g-L>=h?g-L:h,z=g+O+L,W=(n.leftSplit||0)-h,B=l.length-p-W,G=z<B?z:B,q=x-$>=f?x-$:f,Y=x+H+$,X=u.length-v;return{xStart:N,xEnd:G,yStart:q,yEnd:Y<X?Y:X}},e.getUnique=function(t,e,i){var n=t.map((function(t){return t[e]}));return i&&n.forEach((function(t,e){"string"==typeof t&&t.includes(", ")&&(t.split(", ").forEach((function(t){return n.push(t)})),delete n[e])})),n.filter((function(t,e,i){return i.indexOf(t)===e&&(0,r.isDefined)(t)})).sort()};e.getMaxRowHeight=function(t,e,i){var n,o;void 0===i&&(i={font:"14px Arial",lineHeight:20});var a=document.createElement("canvas"),l=a.getContext("2d",{alpha:!1});l.font=i.font;for(var u={},d=e.length,h=0;h<d;h++)e[h].template?u[e[h].id]={width:e[h].$width-24||0,htmlEnable:e[h].htmlEnable,template:e[h].template,cols:e[h]}:u[e[h].id]={width:e[h].$width-24||0,htmlEnable:e[h].htmlEnable,cols:e[h]};for(var f=[],p=[],v=0,g=Object.entries(t);v<g.length;v++){var _=g[v],m=_[0],y=_[1];if(u[m]&&"height"!==m&&!m.startsWith("$")&&("string"==typeof y||"number"==typeof y||y instanceof Date||Array.isArray(y))){var b=u[m].cols;y="combobox"===b.editorType||"multiselect"===b.editorType?c(y,b,t):y;var w="";if(null===(n=u[m])||void 0===n?void 0:n.template){var x=u[m].template(y,t,u[m].cols);w=u[m].htmlEnable?(0,s.removeHTMLTags)(x):x}else w="string"==typeof y?u[m].htmlEnable?(0,s.removeHTMLTags)(y):y:y.toString();var E=Math.ceil(l.measureText(w).width/u[m].width);E>1&&(E=(0,r.getTextLines)(l,w,null===(o=u[m])||void 0===o?void 0:o.width).length),p.push(E),f.push(w.split("\n").length)}}var C=Math.max((0,r.getMaxArrayNumber)(f),(0,r.getMaxArrayNumber)(p));return a.remove(),C*i.lineHeight+8};e.getCalculatedRowHeight=function(t,e){var i=(e=n({rowHeight:40,padding:12},e)).rowHeight<40?t:t+2*e.padding;return t<e.rowHeight?e.rowHeight:i};e.getTreeCellWidthOffset=function(t,e){return void 0===e&&(e=!1),20+20*t.$level-(e&&t.$items?20:0)};function l(t,e){return o(o([],("function"==typeof t.options?t.options(t,e):t.options)||[],!0),t.$customOptions||[],!0)}function c(t,e,i){var n=l(e,i);return"multiselect"===e.editorType&&"string"==typeof t?t.split(",").map((function(t){return u(t.trim(),n)})).join(", "):u(t,n)}function u(t,e){var i=e.find((function(e){return e instanceof Object&&e.id==t}));return i?i.value:t}e.getMaxColsWidth=function(t,e,i,n){if(void 0===i&&(i={font:"normal 14.4px Arial"}),t.length&&e.length){var o=document.createElement("canvas"),r=o.getContext("2d",{alpha:!1});r.font=i.font;for(var l={},u=e.length,d=0;d<u;d++){var h=e[d],f=h.template,p=h.htmlEnable,v=h.format,g=h.id,_=h.type;l[g]=f&&"data"===n?{width:20,htmlEnable:!!p,template:f,cols:h,type:_}:{width:20,htmlEnable:!!p,format:"date"===_?v||"%M %d %Y":v,cols:h,type:_}}var m=t.length;for(d=0;d<m;d++)for(var y=0,b=Object.entries(t[d]);y<b.length;y++){var w=b[y],x=w[0],E=w[1],C=l[x];if(C&&"height"!==x&&!x.startsWith("$")&&("string"==typeof E||"number"==typeof E||E instanceof Date||Array.isArray(E))){f=C.template;var S=C.cols,k=(v=C.format,_=C.type,p=C.htmlEnable,C.width);E="combobox"===S.editorType||"multiselect"===S.editorType?c(E,S,t[d]):E;var O=void 0;if("function"==typeof f){var P=f(E,t[d],S);O=p?(0,s.removeHTMLTags)(P):P}else O=p?(0,s.removeHTMLTags)(E):E.toString();var I=v&&"date"===_&&new Date(O);(null==I?void 0:I.valueOf())&&(O=(0,a.getFormattedDate)(v,I));var D=r.measureText(O).width;D>k&&(l[x].width=D)}}o.remove();for(var M={},T=0,V=Object.entries(l);T<V.length;T++){var H=V[T];x=H[0],E=H[1];M[x]=Math.ceil(E.width)}return M}},e.toFormat=function(t,e,i){if("boolean"==typeof t)return t;if(!t&&"number"!=typeof t)return t;var n=function(e){var n,o,r,s=i.replace(/#+/g,"#").split("#").filter((function(t){return t})),a=i.match(/0/g)&&i.match(/0/g).length;t=("percent"===e?100*Number(t):t).toString();var l=Math.trunc(Number(t));if(a){var c=t.split(".")[1]||"0";r=s.find((function(t){return t.includes("0")})).replace(/0+/g,""),o=Number("0."+c).toFixed(a),Number(o)>=1&&l++,o=o.toString().split(".")[1].padEnd(a,"0")}var u="".concat(t<0&&0===Math.abs(l)?"-":"").concat(l),d=s.find((function(t){return!t.includes("0")}));return n=d?u.replace(/(\d)(?=(\d{3})+(\D|$))/g,"$1".concat(d)):u,n+=(r||"")+(o||""),"percent"===e?"".concat(n,"%"):n};switch(e){case"number":return i&&!isNaN(Number(t))?n(e):t;case"percent":return i||(i="#"),isNaN(Number(t))?t:n(e);case"date":return i||(i="%M %d %Y"),"string"==typeof t?t=(0,a.getFormattedDate)(i,(0,a.stringToDate)(t,i)):"object"==typeof t&&(t=(0,a.getFormattedDate)(i,t)),t;default:return t}},e.getEditorOptions=l,e.getValueForNumberColumn=function(t,e){return!(0,r.isDefined)(e)||""===e||"number"==typeof e||["select","combobox","multiselect"].includes(t.editorType)?e:"string"==typeof e?parseFloat(e):NaN},e.getEditorValue=u},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScrollView=e.scrollViewConfig=void 0;var n=i(1),o=i(0),r=i(3);e.scrollViewConfig={enable:!1,autoHide:!0,timeout:1e3,scrollHandler:function(){}};var s=function(){function t(t,i){var o;void 0===i&&(i={});var s=this;this.config=(0,n.extend)({enable:e.scrollViewConfig.enable,autoHide:e.scrollViewConfig.autoHide,timeout:e.scrollViewConfig.timeout,scrollHandler:e.scrollViewConfig.scrollHandler},i),this._wheelName=(0,r.isIE)()?"onmousewheel":"onwheel",this._getRootView=t,this._scrollYTop=this._scrollXLeft=this._runnerYTop=this._runnerXLeft=this._runnerHeight=this._runnerWidth=0,this._visibleYArea=this._visibleXArea=1,this._scrollWidth=(0,r.getScrollbarWidth)(),this._scrollHeight=(0,r.getScrollbarHeight)(),this._handlers=((o={onscroll:function(t){s.config.scrollHandler(t),s.update()}})[this._wheelName]=function(t){var e=!!(0,r.locateNodeByClassName)(t.target,"y-scroll");t.preventDefault();var i=40*((t.deltaY||-t.wheelDelta)>0?1:-1),n=s._getRefs().area;if(e){var o=n.scrollHeight-s._runnerHeight,a=s._scrollYTop+i;n.scrollTop=a<0?0:a>o?o:a}else{var l=n.scrollWidth-s._runnerWidth,c=s._scrollXLeft+i;n.scrollLeft=c<0?0:c>l?l:c}s.update()},o.onmousedownRunner=function(t){t.preventDefault();var e=!!(0,r.locateNodeByClassName)(t.target,"y-scroll"),i=s._getRefs(),n=i.area,o=i.runnerY,a=i.runnerX,l=n.getBoundingClientRect(),c=l.top+window.pageYOffset,u=l.bottom+window.pageYOffset,d=n.scrollHeight-s._runnerHeight,h=t.pageY-o.getBoundingClientRect().top-window.pageYOffset,f=l.left+window.pageXOffset,p=l.right+window.pageXOffset,v=n.scrollWidth-s._runnerWidth,g=t.pageX-a.getBoundingClientRect().left-window.pageXOffset,_=function(t){if(e){var i=t.pageY-h;n.scrollTop=i<=c?0:i>u?d:(i-c)/s._visibleYArea}else{var o=t.pageX-g;n.scrollLeft=o<=f?0:o>p?v:(o-f)/s._visibleXArea}s.update()},m=function(){document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",m),document.body.classList.remove("dhx-no-select")};document.body.classList.add("dhx-no-select"),document.addEventListener("mousemove",_),document.addEventListener("mouseup",m)},o.onmousedownArea=function(t){if(!(0,r.locateNodeByClassName)(t,"scroll-runner")){t.preventDefault();var e=!!(0,r.locateNodeByClassName)(t.target,"y-scroll"),i=s._getRefs(),n=i.area,o=i.runnerY,a=i.runnerX;e?n.scrollTop+=(t.pageY-o.getBoundingClientRect().top)/s._visibleYArea:n.scrollLeft+=(t.pageX-a.getBoundingClientRect().left)/s._visibleXArea,s.update()}},o.onmouseenter=function(t){if(!(0,r.locateNodeByClassName)(t,"scroll-runner")){var e=s._getRefs();if(e){var i=!!(0,r.locateNodeByClassName)(t.target,"y-scroll"),n=e.areaX,o=e.areaY;i&&s._runnerHeight>0?o.style.background="#eee":!i&&s._runnerWidth>0&&(n.style.background="#eee")}}},o.onmouseleave=function(t){if(!(0,r.locateNodeByClassName)(t,"scroll-runner")){var e=s._getRefs();if(e){var i=!!(0,r.locateNodeByClassName)(t.target,"y-scroll"),n=e.areaX,o=e.areaY;i&&s._runnerHeight>0?o.style.background="transparent":!i&&s._runnerWidth>0&&(n.style.background="transparent")}}},o)}return t.prototype.enable=function(){this.config.enable=!0,this._getRootView().redraw()},t.prototype.disable=function(){this.config.enable=!1,this._getRootView().redraw()},t.prototype.render=function(t,e){var i,n,r=this;if(void 0===e&&(e=""),!this.config.enable||!t.length)return t;e&&(this._uid=e);var s=this.config.enable?[(0,o.el)(".y-scroll",(i={},i[this._wheelName]=this._handlers[this._wheelName],i._ref=e?"scroll-y-area-".concat(e):"scroll-y-area",i.onmousedown=this._handlers.onmousedownArea,i.onmouseenter=this._handlers.onmouseenter,i.onmouseleave=this._handlers.onmouseleave,i.style={width:"6px",height:"100%",right:0,top:0,position:"absolute"},i),[(0,o.el)(".scroll-runner",{_ref:e?"scroll-y-runner-".concat(e):"scroll-y-runner",onmousedown:this._handlers.onmousedownRunner,style:{height:this._runnerHeight+"px",top:this._runnerYTop}})]),(0,o.el)(".x-scroll",(n={},n[this._wheelName]=this._handlers[this._wheelName],n._ref=e?"scroll-x-area-".concat(e):"scroll-x-area",n.onmousedown=this._handlers.onmousedownArea,n.onmouseenter=this._handlers.onmouseenter,n.onmouseleave=this._handlers.onmouseleave,n.style={width:"100%",height:"6px",left:0,bottom:0,position:"absolute"},n),[(0,o.el)(".scroll-runner",{_ref:e?"scroll-x-runner-".concat(e):"scroll-x-runner",onmousedown:this._handlers.onmousedownRunner,style:{width:this._runnerWidth+"px",left:this._runnerXLeft}})])]:null;return(0,o.el)(".scroll-view-wrapper",[(0,o.el)(".scroll-view",{onscroll:this._handlers.onscroll,_ref:e?"scroll-view-".concat(e):"scroll-view",_hooks:{didInsert:function(){r.update()},didRecycle:function(){r.update()}},style:{width:"calc(100% + ".concat(this._scrollWidth,"px)"),height:"calc(100% + ".concat(this._scrollHeight,"px)"),"margin-bottom":"-".concat(this._scrollHeight,"px")}},t)].concat(s))},t.prototype.update=function(){var t=this._getRefs();if(t){var e=t.area,i=t.areaX,o=t.areaY,r=t.runnerY,s=t.runnerX;this._visibleYArea=e.clientHeight/e.scrollHeight,this._visibleXArea=e.clientWidth/e.scrollWidth,this._scrollYTop=e.scrollTop,this._scrollXLeft=e.scrollLeft,this._runnerYTop=this._scrollYTop*this._visibleYArea,this._runnerXLeft=this._scrollXLeft*this._visibleXArea,this._runnerHeight=this._visibleYArea<1?e.clientHeight*this._visibleYArea:0,this._runnerWidth=this._visibleXArea<1?e.clientWidth*this._visibleXArea:0;var a=r.style.top,l=s.style.left;r.style.opacity=1,r.style.top=this._runnerYTop+"px",r.style.height=this._runnerHeight+"px",s.style.opacity=1,s.style.left=this._runnerXLeft+"px",s.style.width=this._runnerWidth+"px",a!==r.style.top&&(o.style.opacity=.9,o.style.width="10px"),l!==s.style.left&&(i.style.opacity=.9,i.style.height="10px"),this.config.autoHide?!this._autoHideFunc&&(this._autoHideFunc=(0,n.debounce)((function(){r.style.opacity=0,o.style.width="6px",s.style.opacity=0,i.style.height="6px"}),this.config.timeout)):this._autoHideFunc=(0,n.debounce)((function(){o.style.width="6px",i.style.height="6px"}),this.config.timeout),this._autoHideFunc()}},t.prototype._getRefs=function(){var t=this._getRootView(),e=!(!t.refs["scroll-view"]||!t.refs["scroll-x-runner"]&&!t.refs["scroll-y-runner"]),i=!(!this._uid||!t.refs["scroll-view-".concat(this._uid)]||!t.refs["scroll-x-runner-".concat(this._uid)]&&!t.refs["scroll-y-runner-".concat(this._uid)]);if(t.refs){if(e)return{area:t.refs["scroll-view"].el,areaY:t.refs["scroll-y-area"].el,areaX:t.refs["scroll-x-area"].el,runnerY:t.refs["scroll-y-runner"].el,runnerX:t.refs["scroll-x-runner"].el};if(i)return{area:t.refs["scroll-view-".concat(this._uid)].el,areaY:t.refs["scroll-y-area-".concat(this._uid)].el,areaX:t.refs["scroll-x-area-".concat(this._uid)].el,runnerY:t.refs["scroll-y-runner-".concat(this._uid)].el,runnerX:t.refs["scroll-x-runner-".concat(this._uid)].el}}},t}();e.ScrollView=s},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(137),e),o(i(138),e),o(i(35),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.focusManager=void 0;var n=i(3),o=function(){function t(){var t=this;this._initHandler=function(e){return t._activeWidgetId=(0,n.locate)(e,"data-dhx-widget-id")},this._removeFocusClass=function(t){var e=document.body.classList;e.contains("utilityfocus")&&e.remove("utilityfocus")},this._addFocusClass=function(t){var e=document.body.classList;"Tab"===t.code?e.contains("utilityfocus")||e.add("utilityfocus"):e.contains("utilityfocus")&&e.remove("utilityfocus")},document.addEventListener("focusin",this._initHandler),document.addEventListener("pointerdown",this._initHandler),document.addEventListener("mousedown",this._removeFocusClass),document.addEventListener("keydown",this._addFocusClass)}return t.prototype.getFocusId=function(){return this._activeWidgetId},t.prototype.setFocusId=function(t){this._activeWidgetId=t},t}();e.focusManager=new o},function(t,e,i){"use strict";var n,o,r,s;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"}(n||(e.TreeFilterType=n={})),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"}(o||(e.DataEvents=o={})),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"}(r||(e.DragEvents=r={})),function(t){t.json="json",t.csv="csv",t.xml="xml"}(s||(e.DataDriver=s={}))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),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 n=i(1),o=i(27),r=i(61);e.isEqualObj=function(t,e){for(var i in t)if(t[i]!==e[i]||Array.isArray(t[i]))return!1;return!0},e.naturalCompare=function(t,e){if(isNaN(t)||isNaN(e)){var i=[],n=[];for(t.replace(/(\d+)|(\D+)/g,(function(t,e,n){i.push([e||1/0,n||""])})),e.replace(/(\d+)|(\D+)/g,(function(t,e,i){n.push([e||1/0,i||""])}));i.length&&n.length;){var o=i.shift(),r=n.shift(),s=o[0]-r[0]||o[1].localeCompare(r[1]);if(s)return s}return i.length-n.length}return t-e},e.findByConf=function(t,e){if("function"==typeof e){if(e.call(this,t))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=function(t){console.warn(t)},e.dhxError=function(t){throw new Error(t)},e.toProxy=function(t){var e=typeof t;return"string"===e?new o.DataProxy(t):"object"===e?t:void 0},e.toDataDriver=function(t){if("string"==typeof t){var e=window.dhx,i=e&&e.dataDrivers||r.dataDrivers;if(i[t])return new i[t];console.warn("Incorrect data driver type:",t),console.warn("Available types:",JSON.stringify(Object.keys(i)))}else if("object"==typeof t)return t},e.copyWithoutInner=function(t,e){var i={};for(var n in t)n.startsWith("$")||e&&e[n]||(i[n]=t[n]);return i},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,n.isEmptyObj)(t))&&Object.keys(t).every((function(e){var i;return null===(i=t[e].config)||void 0===i?void 0:i.permanent}))}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCurrFixedCols=e.calcScrollBarWidth=e.BORDERS=void 0;var n=i(3),o=i(8);e.BORDERS=2,e.calcScrollBarWidth=function(t,i,o){var r,s;void 0===i&&(i=!1);var a=t.$totalHeight+t.$headerHeight+t.$footerHeight+e.BORDERS>(null!==(r=null==o?void 0:o.height)&&void 0!==r?r:t.$height),l=!a||i?0:(0,n.getScrollbarWidth)(),c=t.$totalWidth+e.BORDERS+l>(null!==(s=null==o?void 0:o.width)&&void 0!==s?s:t.$width);return{x:!c||i?0:(0,n.getScrollbarWidth)(),y:l,xState:c,yState:a}},e.getCurrFixedCols=function(t,e){return t[e]?(e===o.Split.left?t.columns.slice(0,t.leftSplit):t.columns.slice(-t.rightSplit)).filter((function(t){return!t.hidden})):[]}},function(t,e,i){"use strict";var n;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"}(n||(e.ChartEvents=n={}))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeCell=e.getReducedRowspan=e.getReducedColspan=e.getHeight=e.getWidth=void 0,e.getWidth=function(t,e,i){return t.slice(i,i+(e||1)).filter((function(t){return!t.hidden})).reduce((function(t,e){return t+e.$width}),0)},e.getHeight=function(t,e){var i=e.$rowsVisibility;return t.slice(i[0],i[1]+1).reduce((function(t,e){return t+e.$height}),0)},e.getReducedColspan=function(t,e,i){var n=t.findIndex((function(t){return t.id===e}));return t.slice(n,n+(i||1)).filter((function(t){return!t.hidden})).length},e.getReducedRowspan=function(t,e,i,n){var o,r=n.rowspan||1;if(t.length===e.length)return r;var s=null!==(o=null==t?void 0:t.findIndex((function(t){return t.id===n.row})))&&void 0!==o?o:-1,a=0;if(-1!==s)for(var l=1;l<r;l++){var c=e[i-a+l],u=t[s+l];(null==c?void 0:c.id)!==(null==u?void 0:u.id)&&a++}return r-a},e.normalizeCell=function(t,e){if(t){var i=t.row,n=t.column,o=e.getSpan(i.id,n.id);return o?{row:i.id===o.row?i:e.data.getItem(o.row),column:n.id===o.column?n:e.config.columns.find((function(t){return t.id===o.column}))}:t}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DataProxy=void 0;var n=i(41),o=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 i in void 0===e&&(e={}),this._url=this.url=t||this._url,this.url+=this.url.includes("?")?"&":"?",e)this.config[i]=e[i],this.url+="".concat(i,"=").concat(encodeURIComponent(e[i]),"&");this.url=this.url.slice(0,-1)},t.prototype.load=function(){return n.ajax.get(this.url,void 0,this.config)},t.prototype.save=function(t,e){switch(e){case"delete":return n.ajax.delete(this.url,t,this.config);case"update":return n.ajax.put(this.url,t,this.config);default:return n.ajax.post(this.url,t,this.config)}},t}();e.DataProxy=o},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionEvents=void 0,function(t){t.beforeUnSelect="beforeunselect",t.afterUnSelect="afterunselect",t.beforeSelect="beforeselect",t.afterSelect="afterselect"}(n||(e.SelectionEvents=n={}))},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.getNavbarButtonCSS=e.navbarComponentMixin=e.getIcon=e.getCount=void 0;var o=i(0),r=i(1);e.getCount=function(t,e,i){var n={danger:" dhx_navbar-count--color_danger",secondary:" dhx_navbar-count--color_secondary",primary:" dhx_navbar-count--color_primary",success:" dhx_navbar-count--color_success"}[t.countColor]||" dhx_navbar-count--color_danger";return(0,o.el)(".dhx_navbar-count",{class:e+n+(!i&&parseInt(t.count,10)>99?" dhx_navbar-count--overlimit":"")},i&&parseInt(t.count,10)>99?"99+":t.count)},e.getIcon=function(t,e){return void 0===t&&(t=""),t.startsWith("dxi")&&(t="dxi "+t),(0,o.el)("span",{class:"dhx_".concat(e,"__icon ").concat(t),"aria-hidden":"true"})};e.navbarComponentMixin=function(t,e,i,r){var s,a,l=function(t,e,i){var n="",o="";return o=(n=i?"dhx_menu-item":"dhx_"+t+"__item")+(e.css?" "+e.css:""),"spacer"!==e.type&&"separator"!==e.type||(o+=" ".concat(n,"--").concat(e.type)),"button"!==e.type||"sidebar"!==t||e.icon||(o+=" dhx_navbar-item--colapse_hidden"),o}(t,e,i),c="ribbon"===t&&("navItem"===e.type||"imageButton"===e.type);return(0,o.el)("li",n({_key:e.id,class:l+(e.icon&&!e.value&&c?" dhx_ribbon__item--icon":"")+(e.src&&!e.value&&c?" dhx_ribbon__item--icon":"")+(e.size&&c?" dhx_ribbon__item--"+e.size:""),".innerHTML":"customHTML"===e.type?e.html:void 0,"data-dhx-id":"customHTML"===e.type?e.id:void 0},(s=e.type,a={role:"none"},"separator"===s&&(a.role="separator",a["aria-orientation"]="vertical"),a)),"customHTML"!==e.type?[r]:void 0)},e.getNavbarButtonCSS=function(t,e){var i=t.color,n=t.size,o=t.view,s=t.full,a=t.icon,l=t.circle,c=t.loading,u=t.value,d=t.active,h=t.count;return({danger:" dhx_button--color_danger",secondary:" dhx_button--color_secondary",primary:" dhx_button--color_primary",success:" dhx_button--color_success"}[i]||" dhx_button--color_primary")+({small:" dhx_button--size_small",medium:" dhx_button--size_medium"}[n]||" dhx_button--size_medium")+({flat:" dhx_button--view_flat",link:" dhx_button--view_link"}[o]||" dhx_button--view_flat")+(s?" dhx_button--width_full":"")+(l?" dhx_button--circle":"")+(c?" dhx_button--loading":"")+(d?" dhx_button--active":"")+(a&&!u?" dhx_button--icon":"")+((0,r.isDefined)(h)?" dhx_button--count":"")}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.radarScale=e.pieLikeHandlers=e.shiftCoordinates=e.getCoordinates=void 0;var o=i(0),r=i(5);function s(t,e,i,n){return n&&(t+=2*e*Math.asin(.5*n/e)/(2*Math.PI*e)),[Math.cos(2*Math.PI*t)*e,Math.sin(2*Math.PI*t)*i]}function a(t,e,i){t.setAttribute("transform","translate(".concat(e,", ").concat(i,") scale(1.05)")),t.classList.add("dhx_pie-transform-delay")}function l(t){t.setAttribute("transform","translate(0, 0)"),t.classList.remove("dhx_pie-transform-delay")}function c(t,e){var i=1e-6;return t-i<e&&t+i>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=s,e.shiftCoordinates=function(t,e,i){return[t[0]+e,t[1]+i]},e.pieLikeHandlers={onmouseover:function(t,e,i,n){var o=n.parent.attrs.id;a(n.el,t,e),n.parent.body.forEach((function(i){i.attrs.id!=="".concat(o,"-text")&&i.attrs.id!=="".concat(o,"-connector")||a(i.el,t,e)}))},onmouseout:function(t,e){var i=e.parent.attrs.id;l(e.el),e.parent.body.forEach((function(t){t.attrs.id!=="".concat(i,"-text")&&t.attrs.id!=="".concat(i,"-connector")||l(t.el)}))}},e.radarScale=function(t,e,i){var a;a=i>e?e/2:i/2;var l=1/t.scales.length,d=l>.5?1:0,h=[],f=function(t,e){return(0,o.sv)("circle",{cx:0,cy:0,r:t,fill:e,stroke:"none",class:"background-circle"})}(a,"#fafafa");h.push(f);for(var p,v=-.25,g=[],_=t.axis,m="radar-grid ".concat(t.zebra?"zebra":""),y=1;y<_.length;y+=2){var b=a*_[y-1],w=a*_[y],x="".concat(u(b,!0)," ").concat(u(w,!1)),E=(0,o.sv)("path",{d:x,fill:"none",stroke:"black",class:m});g.push(E)}if(h.push(g),t.scales.forEach((function(t){var e=s(v,a,a),i=e[0],n=e[1],u=v+l,f=s(u,a,a),p=f[0],g=f[1],_="M ".concat(i," ").concat(n," A ").concat(a," ").concat(a," 0 ").concat(d," 1 ").concat(p," ").concat(g," L 0 0"),m=(0,o.sv)("path",{d:_,stroke:"black",fill:"none",class:"radar-scale"});h.push(m);var y=[8,8],b=y[0],w=y[1],x=c(v,0)||c(v,.5)?0:v<0||v>.5?-b:b,E=c(v,-.25)||c(v,.25)?0:v<-.25||v>.25?-w:w;if(c(v,-.25)||c(v,.25)){var C=c(v,-.25)?r.verticalTopText:r.verticalBottomText,S=(0,o.sv)("text",{x:i+E,y:n+x,class:"scale-text"},[C(t)]);h.push(S)}else{var k=v>=-.25&&v<=.25?"start-text scale-text":"end-text scale-text";S=(0,o.sv)("text",{x:i+E,y:n+x,class:k},[(0,r.verticalCenteredText)(t)]);h.push(S)}v=u})),v=-.25,t.realAxis){var C=t.realAxis.map((function(t,e){var i=s(-.25,a*_[e],a*_[e]),n=i[0],l=i[1];return(0,o.sv)("text",{x:n,y:l,dx:-10,class:"radar-axis-text"},[(0,r.verticalCenteredText)(t.toString())])}));h.push(C)}return(0,o.sv)("g",n({transform:"translate(".concat(e/2,", ").concat(i/2,")")},(p=t.attribute,{"aria-label":"x-axis".concat(p?", "+p:"")})),h)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1),o=i(25),r=i(5),s=i(82),a=i(15),l=function(){function t(t,e,i){var r=this;this._data=t,this._handlers={onclick:function(t,e){return r._events.fire(o.ChartEvents.serieClick,[t,e])},onmousemove:function(t,e,i){return r._events.fire(o.ChartEvents.seriaMouseMove,[t,e,i])},onmouseleave:function(t,e){return r._events.fire(o.ChartEvents.seriaMouseLeave,[t,e])}},this.id=e.id=e.id||(0,n.uid)(),this._events=i,this._points=[],this._setDefaults(e)}return t.prototype.toggle=function(){this.config.active=!this.config.active},t.prototype.getClosest=function(t,e){for(var i=[1/0,null,null,null],n=0,o=this._points;n<o.length;n++){var r=o[n],s=this._getClosestDist(t,e,r[0],r[1]);i[0]>s&&(i[0]=s,i[1]=r[0],i[2]=r[1],i[3]=r[2])}return i},t.prototype.getClosestVertical=function(t){for(var e=[1/0,null,null,null,null],i=0,n=this._points;i<n.length;i++){var o=n[i],r=Math.abs(o[0]-t);e[0]>r&&(e[0]=r,e[1]=o[0],e[2]=o[1],e[3]=o[2],e[4]=o[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,i=void 0;if("calendarHeatMap"===this.config.type){if(i=this._points.find((function(e){return e[2]===t.toString()}))){var n=new Date;n.setTime(i[0]),i=[(0,a.getFormattedDate)(this.config.dateFormat,n),i[1]]}}else e=this._defaultLocator(this._data.getItem(t));return this.config.tooltipTemplate?this.config.tooltipTemplate(e||i):e?e[0]:"".concat(i[1],", <br>").concat(i[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,i,n){return(0,r.euclideanDistance)(t,e,i,n)},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,s.getShadeHelper)(t,e)},t}();e.default=l},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeSpan=e.getShifts=e.getSpans=e.getCells=e.getTreeCell=e.getHandlers=void 0;var o=i(1),r=i(0),s=i(26),a=i(16),l=i(8),c=i(216),u=i(3),d=i(18),h=i(24);function f(t,e,i,n,o){e=(0,u.locateNodeByClassName)(o.target,"dhx_grid-fixed-cols-wrap")?0:e;var r=(0,u.locateNodeByClassName)(o.target,"dhx_grid-cell"),s=(0,u.locateNodeByClassName)(o.target,"dhx_span-cell");if((r||s)&&n){var a=r?r.parentNode:s,l=(r||s).getAttribute("data-dhx-col-id"),c=i.filteredColumns.find((function(t){return t.id===l})),d=a.getAttribute("data-dhx-id"),h=(i.$data||i.data).find((function(t){return t.id.toString()===d}));n.toLocaleLowerCase().includes("touch")?i._events.fire(n,[h,c,o]):i.events.fire(n,[h,c,o])}}function p(t,e,i,o){var s=o.$editable&&o.$editable.row===e.id&&o.$editable.col===i.id,a=!o.fixedColumns.left.length||"leftFixedCols"===o.$renderFrom,l=i.align?"dhx_align-".concat(i.align):"dhx_align-left",c="";a&&(c="dhx_tree-cell ".concat(i.$cellCss[e.id]||""," ").concat(l),e.$items&&(c+=" dhx_grid-expand-cell"),s&&(c+=" dhx_tree-editing-cell"),o.dragMode&&!s&&(c+=(e.$drophere?" dhx_grid-cell--drophere":"")+(e.$dragtarget?" dhx_grid-cell--dragtarget":"")));var u=(0,d.getTreeCellWidthOffset)(e,!0);return(0,r.el)(".dhx_grid-cell",n({class:c,style:{width:i.$width,height:e.$height,padding:e.$items?0:"0 0 0 ".concat(u,"px")},"data-dhx-col-id":i.id},{role:"gridcell","aria-colindex":1}),a?[e.$items?(0,r.el)(".dhx_grid-expand-cell-icon",n(n({class:e.$opened?"dxi dxi-chevron-up":"dxi dxi-chevron-down","data-dhx-id":e.id},function(t){return{role:"button","aria-label":t.$opened?"Collapse group":"Expand group"}}(e)),{style:{padding:e.$level?"0 0 0 ".concat(4+u,"px"):"0 0 0 4px"}})):null,(0,r.el)(".dhx_tree-cell",{class:l+"".concat(o.autoHeight?" dhx_tree-cell_auto-height":"")},[t])]:null)}function v(t,e,i,n){return(0,c.getEditor)(t,e,i,n)}function g(t){var e=t.$scrollBarWidth,i=t.$totalWidth-t.$width+h.BORDERS+e.y,n=t.$totalHeight-t.$height+t.$headerHeight+t.$footerHeight+h.BORDERS+e.x;return{x:i>0?i-t.scroll.left:0,y:n>0?n-t.scroll.top:0}}e.getHandlers=function(t,e,i){return{onclick:[f,t,e,i,l.GridEvents.cellClick],onmouseover:[f,t,e,i,l.GridEvents.cellMouseOver],onmousedown:[f,t,e,i,l.GridEvents.cellMouseDown],ondblclick:[f,t,e,i,l.GridEvents.cellDblClick],oncontextmenu:[f,t,e,i,l.GridEvents.cellRightClick],ontouchstart:[f,t,e,i,l.GridEvents.cellMouseDown],ontouchmove:[f,t,e,i,l.GridSystemEvents.cellTouchMove],ontouchend:[f,t,e,i,l.GridSystemEvents.cellTouchEnd]}},e.getTreeCell=p,e.getCells=function(t){if(!t.data||!t.filteredColumns)return[];var e,i=t.$positions,o=t.data?t.data.slice(i.yStart,i.yEnd):[],s=t.filteredColumns.slice(i.xStart,i.xEnd),l=t.selection.getCell(),c=!0,u=document.querySelector(".dhx_drag-ghost");if(u){var h=Array.from(u.querySelectorAll(".dhx_grid-row")).map((function(t){return Number(t.getAttribute("aria-rowindex"))-1}));h.length&&(e=h.map((function(e){return t.data[e]})).filter((function(t){return t&&!o.find((function(e){return e.id===t.id}))})),o.push.apply(o,e))}return o.map((function(u,h){var f=null==e?void 0:e.some((function(t){return t.id===u.id})),g=o.length-1===h,_="";return t.rowCss&&(_=t.rowCss(u)),u.$css&&(_+=u.$css),(0,r.el)(".dhx_grid-row",n({style:{height:g?u.$height+1:u.$height,display:f?"none":null},"data-dhx-id":u.id,class:_,_key:u.id,_flags:r.KEYED_LIST},f?{}:{role:"row","aria-rowindex":i.yStart+h+1}),u.$customRender?[u.$customRender(u,t)]:s.map((function(e,o){var s,h;if(!e.hidden){var f=u[e.id],g=(0,d.getEditorOptions)(e,u);(e.editable||t.editable&&!1!==e.editable)&&("select"===e.editorType||"combobox"===e.editorType||"multiselect"===e.editorType)&&g&&(f=(f="string"==typeof f&&"multiselect"===e.editorType?f.split(",").map((function(t){return t.trim()})):[null==f?void 0:f.toString()]).map((function(t){var e,i;return null!==(i=null===(e=g.find((function(e){return e.id&&e.id.toString()===t})))||void 0===e?void 0:e.value)&&void 0!==i?i:t})).join(", "));var _=(0,d.toFormat)(f,e.type,e.format),m=e.template?e.template(_,u,e):"boolean"!=typeof(h=_)&&"boolean"!==e.type||"string"==typeof h?h||0===h?h:"":"".concat(Boolean(h));"string"==typeof m&&(m=(0,a.isHtmlEnable)(t,e)?(0,r.el)("div.dhx_grid-cell__content",n({".innerHTML":m},{role:"button","aria-label":"Edit content"})):m);var y="".concat(e.$cellCss&&e.$cellCss[u.id]||""," dhx_").concat(e.type,"-cell").replace(/\s+/g," "),b=e.$width,w=t.$editable&&t.$editable.row===u.id&&t.$editable.col===e.id&&!t.$editable.isSpan,x=t.leftSplit,E=t.filteredColumns;return(w||"boolean"===e.type&&(t.editable&&(null===(s=e.editable)||void 0===s||s)||!t.editable&&e.editable))&&(m=v(u,e,t).toHTML(),y+=" dhx_grid-cell__editable",x===E.indexOf(e)+1&&(b-=1)),"tree"===t.type&&t.firstColId===e.id?p(m,u,e,t):(t.dragMode&&!w&&(y+=(u.$drophere?" dhx_grid-cell--drophere":"")+(u.$dragtarget?" dhx_grid-cell--dragtarget":"")),e.align&&(y+=" dhx_align-".concat(e.align)),(0,a.isHtmlEnable)(t,e)&&(y+=" dhx_grid-cell__content_html-enable"),t.autoHeight&&(y+=" dhx_grid-cell__content_auto-height"),(0,r.el)(".dhx_grid-cell",n({class:y,style:{width:b,height:u.$height+"px"},_key:e.id,"data-dhx-col-id":e.id},function(e,i,o,r){return n({role:"gridcell","aria-colindex":i,"aria-readonly":r?"false":"true"},function(e,i){var n={tabindex:-1};return l?l.row.id===i.id&&l.column.id===e.id&&(n.tabindex=0):c&&(n.tabindex=0,n.onkeydown=function(e){if(t.selection&&!l&&"Tab"===e.key){var i=e.target.parentNode.getAttribute("data-dhx-id"),n=e.target.getAttribute("data-dhx-col-id");n&&i&&(t.selection.setCell(i,n),l=t.selection.getCell()),c=!1}}),n}(e,u))}(e,i.xStart+o+1,0,t.editable)),[m]))}})))}))},e.getSpans=function(t,e){var i,n,c=[],u=t.columns,f=t.filteredColumns,p=t.data,_=t.currentSpans,m=t.bottomSplit,y=void 0===m?0:m;if(!f.length||!_)return null;for(var b=t.fixedColumns.right.length,w=_.filter((function(e){var i;return null===(i=e.$renderFrom)||void 0===i?void 0:i.includes(t.$renderFrom)})),x=w.sort((function(t,e){return"string"==typeof t.row&&"string"==typeof e.row?t.row.localeCompare(e.row):t.row-e.row})),E=function(_){var m=x[_].row,w=x[_].column,E=x[_].$rowsVisibility[1]-x[_].$rowsVisibility[0]+1,C=x[_].$colsVisibility[1]-x[_].$colsVisibility[0]+1,S=x[_].text,k=x[_].css,O=e===l.Split.bottom&&t.$renderFrom.endsWith("FixedCols"),P=O?t.$data:p,I=null==f?void 0:f.findIndex((function(t){return"".concat(t.id)==="".concat(w)})),D=null==P?void 0:P.findIndex((function(t){return"".concat(t.id)==="".concat(m)}));if(I<0||D<0)return"continue";if(O){var M=t.$data[D+E-1];if(!p.find((function(t){return t.id===(null==M?void 0:M.id)})))return"continue"}var T=f[I],V=P[D],H=T.$cellCss[m],j=(0,o.isDefined)(x[_].text)?"string":T.type;if(T.hidden)return"continue";var F=void 0;F=(0,o.isDefined)(S)?S.toString():void 0===V[w]?"":(0,d.toFormat)(V[w],T.type,T.format);var R=T.template||function(t,e,i){return t||0===t?t:""};F=R(F,V,T);var A=(0,a.isHtmlEnable)(t,T);F="string"==typeof F?(0,r.el)("div.dhx_span-cell-content",{class:t.autoHeight?" dhx_grid-cell__content_auto-height":"",".innerHTML":A?F:null},A?null:F):F;var L=void 0;if("bottomFixedRows"===t.$renderFrom||O){var $=P.length-y;L=D<$?-(0,a.getTotalHeight)(P.slice(D,$)):(0,a.getTotalHeight)(P.slice($,D))}else L=(0,a.getTotalHeight)(P.slice(0,D))-(e?0:1);var N=0;if("rightFixedCols"===t.$renderFrom){var z=f.length-t.fixedColumns.right.length;N=I<z?-(0,a.getTotalWidth)(f.slice(I,z)):(0,a.getTotalWidth)(f.slice(z,I))}else for(var W=I-1;W>=0;W--)N+=f[W].$width;var B=V.$items&&0===I,G=I===f.length-1,q=I+C===f.length,Y=b&&I===f.length-b,X=e===l.Split.bottom&&t.fixedRows.bottom.find((function(t){return t.id===m})),U=!!y&&D+E>P.length-y,K=!!b&&I+C===f.length-b,J=T.header[0].text?" dhx_span-cell":" dhx_span-cell dhx_span-cell--title";J+=B?" dhx_span-expand-cell":"",J+=H?" ".concat(H):"",J+=k?" ".concat(k):"",J+=0===D?" dhx_span-first-row":"",J+=D+E===P.length?" dhx_grid__span_bottom--last-row":"",J+=0===I||Y?" dhx_span-first-col":"",J+=G||q?" dhx_span-last-col":"",J+=1===C?" dhx_span-".concat(T.type||"string","-cell"):" dhx_span-string-cell",J+=T.align?" dhx_align-".concat(T.align):" dhx_".concat(j,"-cell"),J+=X?" dhx_grid__span_bottom--all-fixed":"",J+=U?" dhx_grid__span_bottom--part-fixed":"",J+=K?" dhx_grid__span_right--before-fixed":"";var Z=void 0;if(C>1){var Q=u.findIndex((function(t){return t.id===w}));Z=(0,s.getWidth)(u,x[_].colspan,Q)}else Z=T.$width;var tt=void 0;if(E>1){if(tt=(0,s.getHeight)(P,x[_]),e===l.Split.top&&t.$renderFrom.endsWith("FixedCols")){var et=D+E-P.length;if(et>0){var it=t.fixedRows.top.length;tt+=(0,a.getTotalHeight)(t.$data.slice(it,it+et))}}}else tt=V.$height;var nt=null;if((null===(i=t.$editable)||void 0===i?void 0:i.isSpan)&&t.$editable.row===m&&t.$editable.col===w||"boolean"===T.type&&(t.editable&&(null===(n=T.editable)||void 0===n||n)||!t.editable&&T.editable)){var ot=t.topSplit,rt=void 0===ot?0:ot,st=t.fixedColumns.left.length,at=st&&I+C<=st||b&&I>=f.length-b,lt=D<rt||D+E>P.length-y,ct=rt&&D+E<=rt||y&&D>=P.length-y,ut=I<st||I+C>f.length-b;if("render"===t.$renderFrom||at&&!lt||ct&&!ut){var dt=t.$height,ht=t.$scrollBarWidth,ft=t.scroll,pt=t.fixedRows,vt=t.fixedColumns,gt=x[_].text,_t=0;if(F=v(V,T,t,x[_]).toHTML(gt),J+=" dhx_span__editable",!ct){var mt=(0,a.getTotalHeight)(pt.top),yt=(0,a.getTotalHeight)(pt.bottom),bt=ht.yState?dt-t.$headerHeight-t.$footerHeight-ht.x-h.BORDERS:t.$totalHeight,wt=L+tt-ft.top,xt=L-mt<ft.top,Et=wt>bt-yt;xt&&Et&&ht.xState&&(_t=1),L=xt?ft.top+mt-(mt&&!at?1:0):L,tt=Et?bt-L-yt+ft.top-_t:xt?wt-mt:tt}if("render"===t.$renderFrom){if(nt=12,vt.left.find((function(t){return t.id===w}))&&(N=ft.left+(0,a.getTotalWidth)(vt.left.slice(0,I)),!at)){var Ct=(0,a.getTotalWidth)(vt.left.slice(I,st));Z=Z-ft.left>Ct?Z-ft.left:Ct}if(pt.top.find((function(t){return t.id===m}))&&(L=ft.top+(0,a.getTotalHeight)(pt.top.slice(0,D)),!ct)){var St=(0,a.getTotalHeight)(t.fixedRows.top.slice(D,t.topSplit));tt=tt>0?St+tt-_t:St}if(vt.right.find((function(t){return t===f[f.indexOf(T)+C-1]}))){var kt=f.length,Ot=g(t),Pt=kt-f.indexOf(T)-C,It=(Ct=Pt?(0,a.getTotalWidth)(vt.right.slice(0,-Pt)):(0,a.getTotalWidth)(vt.right),(0,a.getTotalWidth)(f.slice(I,kt-b)));N=Ot.x>It?N-Ot.x+It:N,at||(Z=Ot.x<It?Z-Ot.x-1:Ct-1)}if(pt.bottom.find((function(t){return t===P[P.indexOf(V)+E-1]}))){kt=P.length,Ot=g(t);var Dt=kt-P.indexOf(V)-E,Mt=(St=Dt?(0,a.getTotalHeight)(pt.bottom.slice(0,-Dt)):(0,a.getTotalHeight)(t.fixedRows.bottom),(0,a.getTotalHeight)(P.slice(D,kt-y)));L=Ot.y>Mt?L-Ot.y+Mt:L,ct||(tt=Ot.y<Mt?St+tt-_t-(Dt?-1:_t?0:1):St-(Dt?-1:1))}}st===I+1&&(Z-=1),I===f.length-b&&(N+=1,Z-=1)}}c.push((0,r.el)("div",{class:J,style:{width:Z,height:tt,top:L,left:N,zIndex:nt},"data-dhx-col-id":w,"data-dhx-id":m,"aria-hidden":"true"},[B?(0,r.el)(".dhx_span-expand-cell-icon",{class:V.$opened?"dxi dxi-chevron-up":"dxi dxi-chevron-down","data-dhx-id":V.id,role:"button","aria-label":V.$opened?"Collapse group":"Expand group",style:{padding:"0 0 0 ".concat(4+(0,d.getTreeCellWidthOffset)(V,!0),"px")}}):null,F]))},C=0;C<x.length;C++)E(C);return c},e.getShifts=function(t){var e=t.filteredColumns.slice(0,t.$positions.xStart),i=t.data.slice(0,t.$positions.yStart);return{x:(0,a.getTotalWidth)(e),y:(0,a.getTotalHeight)(i)}},e.normalizeSpan=function(t,e,i){var o=e.topSplit,r=void 0===o?0:o,a=e.bottomSplit,c=void 0===a?0:a,u=e.columns,d=t.column,f=t.row,p=t.colspan,v=t.rowspan,g=i.getRawData(0,-1,null,2),_=u.filter((function(t){return!t.hidden})),m=_.findIndex((function(t){return t.id==d})),y=g.findIndex((function(t){return t.id==f})),b=m+(p?(0,s.getReducedColspan)(u,d,p)-1:0),w=y+(v?(0,s.getReducedRowspan)(i.getInitialData(),g,y,t)-1:0),x=-1===m?[]:[m,b],E=-1===y?[]:[y,w],C=[];if(-1!==m&&-1!==y){var S=(0,h.getCurrFixedCols)(e,l.Split.left).length,k=(0,h.getCurrFixedCols)(e,l.Split.right).length,O=m<S,P=y<r,I=b>=_.length-k,D=w>=g.length-c;b>=S&&w>=r&&m<_.length-k&&y<g.length-c&&C.push("render"),O&&C.push("leftFixedCols"),I&&C.push("rightFixedCols"),!P||O||I?P&&!C.includes("render")&&C.push("render"):C.push("topFixedRows"),!D||O||I?D&&!C.includes("render")&&C.push("render"):C.push("bottomFixedRows")}return n(n({},t),{$renderFrom:C,$rowsVisibility:E,$colsVisibility:x})}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VaultMode=e.ProgressBarEvents=e.UploaderEvents=e.FileStatus=void 0;var n,o,r,s;i(7);!function(t){t.queue="queue",t.uploaded="uploaded",t.failed="failed",t.inprogress="inprogress"}(n||(e.FileStatus=n={})),function(t){t.uploadBegin="uploadbegin",t.beforeUploadFile="beforeuploadfile",t.uploadFile="uploadfile",t.uploadFail="uploadfail",t.uploadComplete="uploadcomplete",t.uploadProgress="uploadprogress"}(o||(e.UploaderEvents=o={})),function(t){t.cancel="cancel"}(r||(e.ProgressBarEvents=r={})),function(t){t.grid="grid",t.list="list"}(s||(e.VaultMode=s={}))},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(67),e),o(i(155),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NavigationBarEvents=e.DataEvents=void 0;var n,o=i(7);Object.defineProperty(e,"DataEvents",{enumerable:!0,get:function(){return o.DataEvents}}),function(t){t.inputCreated="inputCreated",t.click="click",t.openMenu="openMenu",t.beforeHide="beforeHide",t.afterHide="afterHide",t.inputFocus="inputFocus",t.inputBlur="inputBlur",t.inputChange="inputChange",t.input="input",t.keydown="keydown"}(n||(e.NavigationBarEvents=n={}))},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(149),e),o(i(72),e)},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(73),e),o(i(162),e),o(i(74),e),o(i(49),e)},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(86),e),o(i(189),e),o(i(88),e)},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Input=e.Validation=void 0;var s,a=i(0),l=i(1),c=i(6),u=i(10),d=i(2),h=i(4);!function(t){t.empty="",t.validEmail="email",t.validInteger="integer",t.validNumeric="numeric",t.validAlphaNumeric="alphanumeric",t.validIPv4="IPv4"}(s||(e.Validation=s={}));var f=function(t){function e(e,i){void 0===i&&(i={});var n=t.call(this,null,i)||this;return n.events=new d.EventSystem,n._propsItem=["inputType","required","validation","icon","placeholder","autocomplete","readOnly","maxlength","minlength","min","max","step","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage"],n._props=r(r([],c.baseProps,!0),n._propsItem,!0),n._initView(i),n._initHandlers(),n}return o(e,t),e.prototype.destructor=function(){var e;null===(e=this._input)||void 0===e||e.removeEventListener("compositionend",this._handlers.oninput),this.events&&this.events.clear(),this.events=this._uid=this._propsItem=this._propsItem=this.config=this._handlers=null,t.prototype._destructor.call(this),this.unmount()},e.prototype.setProperties=function(t){if(t&&!(0,l.isEmptyObj)(t)&&this.events.fire(h.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.events.fire(h.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype.show=function(){var t=this.config,e=t.value;t.hidden&&this.events.fire(h.ItemEvent.beforeShow,[e])&&(this.config.hidden=!1,this.events.fire(h.ItemEvent.afterShow,[e]))},e.prototype.hide=function(t){var e=this.config,i=e.value;e.hidden&&!t||!this.events.fire(h.ItemEvent.beforeHide,[i,t])||(this.config.hidden=!0,this.events.fire(h.ItemEvent.afterHide,[i,t]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype.disable=function(){this.config.disabled=!0,this.paint()},e.prototype.enable=function(){var t;this.config.disabled=!1,(null===(t=this.parent)||void 0===t?void 0:t.isDisabled())&&this.parent.enable(),this.paint()},e.prototype.isDisabled=function(){return!!this.config.disabled},e.prototype.validate=function(t){void 0===t&&(t=!1);for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var n=e.length?e[0]:this.getValue();if(!t&&!this.events.fire(h.ItemEvent.beforeValidate,[n]))return!1;var o=this.config.validation?(0,c.validateInput)(n,this.config.validation):(0,c.baseInputValidate)(n,this.config);return t||(this.setValidationStatus(o?"success":"error"),this.events.fire(h.ItemEvent.afterValidate,[n,o]),!this.isFocused()&&this.paint()),o},e.prototype.clearValidate=function(){this.setValidationStatus(),this.paint()},e.prototype.clear=function(){""!==this.config.value&&this.events.fire(h.ItemEvent.beforeChange,[""])&&(this.config.value="",this.events.fire(h.ItemEvent.change,[this.getValue()]),(0,c.isVerify)(this.config)&&this.setValidationStatus(this.validate(!0)?"success":"error"))},e.prototype.setValue=function(t){void 0!==t&&this.config.value!==t&&this.events.fire(h.ItemEvent.beforeChange,[t])&&(this.config.value=t,this.events.fire(h.ItemEvent.change,[this.getValue()]),(0,c.isVerify)(this.config)&&this.validate())},e.prototype.getValue=function(){var t=this.config,e=t.inputType,i=t.value;return"number"===e&&"number"==typeof i||null===i?i:"number"===e&&"string"==typeof i?i.length?Number(i):"":"string"==typeof i?i.length?i:"":void 0===i?"":String(i)},e.prototype.isFocused=function(){var t,e,i;return(null===(i=null===(e=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.input)||void 0===i?void 0:i.el)===document.activeElement},e.prototype.focus=function(){var t=this;(0,a.awaitRedraw)().then((function(){t.getRootView().refs.input.el.focus()}))},e.prototype.blur=function(){var t=this;(0,a.awaitRedraw)().then((function(){t.getRootView().refs.input.el.blur()}))},e.prototype._initView=function(t){if((0,l.isEmptyObj)(t))throw new Error("Check the configuration is correct");for(var e in this.config={type:"input",id:t.id,name:t.name,value:"",disabled:!1,hidden:!1,inputType:"text",required:!1,icon:"",placeholder:"",autocomplete:!1,readOnly:!1,label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t)"id"!==e&&"type"!==e&&"name"!==e&&(this.config[e]=t[e]);this._value=this.config.value,this.paint()},e.prototype._initHandlers=function(){var t=this;this.events.on(h.ItemEvent.change,(function(e){t._value=e,t.paint()}))},e.prototype._getHandlers=function(){var t=this;return{oninput:function(e){e.isComposing||(t._value=e.target.value,t.events.fire(h.ItemEvent.input,["number"===t.config.inputType?Number(t._value):t._value]))},onchange:function(e){t._value=e.target.value,t._value!==t.config.value&&t.setValue(t._value)},onfocus:function(){t.events.fire(h.ItemEvent.focus,[t.getValue()]),t.paint()},onblur:function(){t._uid&&(t.events.fire(h.ItemEvent.blur,[t.getValue()]),t._value!==t.config.value&&t.setValue(t._value),(0,a.awaitRedraw)().then((function(){return t.paint()})))},onkeydown:function(e){"Enter"===e.code&&"input"===t.config.type&&e.preventDefault(),t.events.fire(h.ItemEvent.keydown,[e])}}},e.prototype._draw=function(){var t=this,e=this.config,i=e.id,n=e.disabled,o=e.name,r=e.icon,s=e.placeholder,u=e.required,d=e.inputType,h=e.hidden,f=e.autocomplete,p=e.readOnly,v=e.maxlength,g=e.minlength,_=e.max,m=e.min,y=e.label,b=e.helpMessage,w=e.value,x=h?" dhx_form-group--hidden":"";return(0,a.el)("div.dhx_form-group",{class:(0,c.getFormItemCss)(this.config,(0,c.isVerify)(this.config),this.isFocused())+x},[this._drawLabel(),(0,a.el)(".dhx_input__wrapper",{},[(0,a.el)("div.dhx_input__container",{},[this.config.icon?(0,a.el)(".dhx_input__icon",{class:this.config.icon}):null,(0,a.el)("input.dhx_input",{type:["text","number","password"].includes(d)?d:"text","data-dhx-id":o||i,id:i||this._uid,_key:i||this._uid,placeholder:s||"",value:w,name:o||"",disabled:n,required:u,readOnly:p,maxlength:v,minlength:g,max:_,min:m,onblur:this._handlers.onblur,oninput:this._handlers.oninput,onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onkeydown:this._handlers.onkeydown,class:r?"dhx_input--icon-padding":"",autocomplete:f?"on":"off",_ref:"input","aria-label":y||b||"type ".concat(o||d||"text"),"aria-describedby":b?"dhx_label__help_".concat(i||this._uid):null,_hooks:{didRecycle:function(e,i){t.isFocused()&&(0,l.isDefined)(t._value)&&(i.el.value=t._value)},didInsert:function(e){t._input=e.el,t._input.addEventListener("compositionend",t._handlers.oninput)}}})]),(0,c.getValidationMessage)(this.config)&&(0,a.el)("span.dhx_input__caption",(0,c.getValidationMessage)(this.config))])])},e}(u.Label);e.Input=f},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.ajax=void 0;var n=i(22),o=i(23);function r(t){return t?t.includes("json")?"json":t.includes("xml")?"xml":"text":"text"}function s(e,i,s,a,l){var c=a||{};if(l&&(c.Accept="application/"+l),"GET"!==s&&(c["Content-Type"]=c["Content-Type"]||"application/json"),"GET"===s){var u=i&&"object"==typeof i?function(t){return Object.keys(t).reduce((function(e,i){var n="object"==typeof t[i]?JSON.stringify(t[i]):t[i];return e.push(i+"="+encodeURIComponent(n)),e}),[]).join("&")}(i):i&&"string"==typeof i?i:"";u&&(e+=e.includes("?")?"&":"?",e+=u),i=null}return window.fetch?("application/json"===c["Content-Type"]&&i&&"object"==typeof i&&(i=JSON.stringify(i)),window.fetch(e,{method:s,body:i||null,headers:c}).then((function(e){if(!e.ok)return e.text().then((function(i){return t.reject({status:e.status,statusText:e.statusText,message:i})}));var i=l||r(e.headers.get("Content-Type"));if("raw"===i)return{headers:Object.fromEntries(e.headers.entries()),url:e.url,body:e.body};if(204!==e.status)switch(i){case"json":return e.json();case"xml":var s=(0,o.toDataDriver)(n.DataDriver.xml);return s?e.text().then((function(t){return s.toJsonObject(t)})):e.text();default:return e.text()}}))):new t((function(t,a){var u=new XMLHttpRequest;for(var d in u.onload=function(){u.status>=200&&u.status<300?("raw"===l&&t({url:u.responseURL,headers:u.getAllResponseHeaders().trim().split(/[\r\n]+/).reduce((function(t,e){var i=e.split(": ");return t[i[0]]=i[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 i=(0,o.toDataDriver)(n.DataDriver.xml);return i?i.toJsonObject(t):{parseError:"Incorrect data driver type: 'xml'"}}}(u.responseText,l||r(u.getResponseHeader("Content-Type"))))):a({status:u.status,statusText:u.statusText})},u.onerror=function(){a({status:u.status,statusText:u.statusText,message:u.responseText})},u.open(s,e),c)u.setRequestHeader(d,c[d]);switch(s){case"POST":case"DELETE":case"PUT":u.send(void 0!==i?JSON.stringify(i):"");break;default:u.send()}}))}e.ajax={get:function(t,e,i){return s(t,e,"GET",i&&i.headers,void 0!==i?i.responseType:void 0)},post:function(t,e,i){return s(t,e,"POST",i&&i.headers,void 0!==i?i.responseType:void 0)},put:function(t,e,i){return s(t,e,"PUT",i&&i.headers,void 0!==i?i.responseType:void 0)},delete:function(t,e,i){return s(t,e,"DELETE",i&&i.headers,void 0!==i?i.responseType:void 0)}}}).call(this,i(17))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.Layout=void 0;var r=i(43),s=i(64),a=i(0),l=function(t){function e(e,i){var n=t.call(this,e,i)||this;if(n._root=n.config.parent||n,n._all={},n._parseConfig(),n._progress=!1,n.config.activeTab&&(n.config.activeView=n.config.activeTab),n.config.views&&(n.config.activeView=n.config.activeView||n._cells[0].id,n._isViewLayout=!0),!i.parent){var o=(0,a.create)({render:function(){return n._root&&n.toVDOM()}},n);n.mount(e,o)}return n}return o(e,t),e.prototype.destructor=function(){if(this.unmount(),this.config){for(var t=0,e=this._cells;t<e.length;t++){var i=e[t];null==i||i.destructor()}this.config=this._cells=this._root=this._xLayout=this._isViewLayout=null,this._all={}}},e.prototype.toVDOM=function(){var e;if(this._isViewLayout){var i=[this.getCell(this.config.activeView).toVDOM()];return t.prototype.toVDOM.call(this,i)}var n=[];return this._inheritTypes(),null===(e=this._cells)||void 0===e||e.forEach((function(t){var e=t.toVDOM();Array.isArray(e)?n=n.concat(e):n.push(e)})),t.prototype.toVDOM.call(this,n)},e.prototype.removeCell=function(t){if(this.events.fire(r.LayoutEvents.beforeRemove,[t])){var e=this.config.parent||this;if(e===this){var i=this.getCell(t);if(i){var n=i.getParent();delete this._all[t],n._cells=n._cells.filter((function(e){return e.id!=t})),n.paint()}this.events.fire(r.LayoutEvents.afterRemove,[t])}else e.removeCell(t)}},e.prototype.addCell=function(t,e){if(void 0===e&&(e=-1),this.events.fire(r.LayoutEvents.beforeAdd,[t.id])){var i=this._createCell(t);e<0&&(e=this._cells.length+e+1),this._cells.splice(e,0,i),this.paint(),this.events.fire(r.LayoutEvents.afterAdd,[t.id])}},e.prototype.getId=function(t){return t<0&&(t=this._cells.length+t),this._cells[t]?this._cells[t].id:void 0},e.prototype.getRefs=function(t){var e;return null===(e=this._root.getRootView().refs)||void 0===e?void 0:e[t]},e.prototype.getCell=function(t){var e;return null===(e=this._root)||void 0===e?void 0:e._all[t]},e.prototype.forEach=function(t,e,i){if(void 0===i&&(i=1/0),this._haveCells(e)&&!(i<1)){var n;n=e?this._root._all[e]._cells:this._root._cells;for(var o=0;o<n.length;o++){var r=n[o];t.call(this,r,o,n),this._haveCells(r.id)&&r.forEach(t,r.id,--i)}}},e.prototype.cell=function(t){return this.getCell(t)},e.prototype.progressShow=function(){this._progress=!0,this.paint()},e.prototype.progressHide=function(){this._progress=!1,this.paint()},e.prototype._getCss=function(e){var i=this._xLayout?"dhx_layout-columns":"dhx_layout-rows",n=this.config.align?" "+i+"--"+this.config.align:"";if(e)return i+" dhx_layout-cell"+(this.config.align?" dhx_layout-cell--"+this.config.align:"");var o=this.config.parent?t.prototype._getCss.call(this):"dhx_widget dhx_layout",r=this.config.parent?"":" dhx_layout-cell";return o+(this.config.full?r:" "+i)+n},e.prototype._parseConfig=function(){var t=this,e=this.config,i=e.rows||e.cols||e.views||[];this._xLayout=!e.rows,this._cells=i.map((function(e){return t._createCell(e)}))},e.prototype._createCell=function(t){var i;return t.rows||t.cols||t.views?(t.parent=this._root,i=new e(this,t)):i=new s.Cell(this,t),this._root._all[i.id]=i,t.init&&t.init(i,t),i},e.prototype._haveCells=function(t){if(t){var e=this._root._all[t];return e._cells&&e._cells.length>0}return Object.keys(this._all).length>0},e.prototype._inheritTypes=function(t){var e=this;if(void 0===t&&(t=this._cells),Array.isArray(t))t.forEach((function(t){return e._inheritTypes(t)}));else{var i=null==t?void 0:t.config;if((null==i?void 0:i.rows)||(null==i?void 0:i.cols)){var n=t.getParent();!i.type&&n&&(n.config.type?i.type=n.config.type:this._inheritTypes(n))}}},e}(s.Cell);e.Layout=l},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.LayoutEvents=void 0,function(t){t.beforeShow="beforeShow",t.afterShow="afterShow",t.beforeHide="beforeHide",t.afterHide="afterHide",t.beforeResizeStart="beforeResizeStart",t.resize="resize",t.afterResizeEnd="afterResizeEnd",t.beforeAdd="beforeAdd",t.afterAdd="afterAdd",t.beforeRemove="beforeRemove",t.afterRemove="afterRemove",t.beforeCollapse="beforeCollapse",t.afterCollapse="afterCollapse",t.beforeExpand="beforeExpand",t.afterExpand="afterExpand"}(n||(e.LayoutEvents=n={}))},function(t,e,i){"use strict";var n,o,r;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"}(n||(e.RealPosition=n={})),function(t){t.right="right",t.bottom="bottom",t.center="center",t.left="left",t.top="top"}(o||(e.Position=o={})),function(t){t.topLeft="top-left",t.topRight="top-right",t.bottomLeft="bottom-left",t.bottomRight="bottom-right"}(r||(e.MessageContainerPosition=r={}))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={apply:"apply",reject:"reject"}},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(150),e),o(i(71),e)},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(151),e),o(i(69),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={dragAndDrop:"Drag & drop",or:"or",browse:"Browse files",filesOrFoldersHere:"files or folders here",cancel:"Cancel",clearAll:"Clear all",clear:"Clear",add:"Add",upload:"Upload",download:"Download",error:"error",byte:"B",kilobyte:"KB",megabyte:"MB",gigabyte:"GB"}},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.ListEvents=void 0,function(t){t.click="click",t.doubleClick="doubleclick",t.focusChange="focuschange",t.beforeEditStart="beforeEditStart",t.afterEditStart="afterEditStart",t.beforeEditEnd="beforeEditEnd",t.afterEditEnd="afterEditEnd",t.itemRightClick="itemRightClick",t.itemMouseOver="itemMouseOver",t.contextmenu="contextmenu"}(n||(e.ListEvents=n={}))},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.locale=void 0,o(i(163),e),o(i(76),e),o(i(75),e),o(i(51),e);var r=i(52);Object.defineProperty(e,"locale",{enumerable:!0,get:function(){return r.default}})},function(t,e,i){"use strict";function n(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,i,n){return e+e+i+i+n+n}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}function o(t){var e,i,n=t.r/255,o=t.g/255,r=t.b/255,s=Math.max(n,o,r),a=s-Math.min(n,o,r),l=function(t){return(s-t)/6/a+.5};if(0===a)e=i=0;else{i=a/s;var c=l(n),u=l(o),d=l(r);n===s?e=d-u:o===s?e=1/3+c-d:r===s&&(e=2/3+u-c),e<0?e+=1:e>1&&(e-=1)}return{h:360*e,s:i,v:s}}Object.defineProperty(e,"__esModule",{value:!0}),e.getAlpha=e.alphaToHex=e.isHex=e.HexToHSV=e.RGBToHSV=e.HexToRGB=e.RGBToHex=e.HSVtoRGB=void 0,e.HSVtoRGB=function(t){var e={r:0,g:0,b:0},i=t.h/60,n=t.s,o=t.v,r=Math.floor(i)%6,s=i-Math.floor(i),a=255*o*(1-n),l=255*o*(1-n*s),c=255*o*(1-n*(1-s));switch(o*=255,r){case 0:e.r=o,e.g=c,e.b=a;break;case 1:e.r=l,e.g=o,e.b=a;break;case 2:e.r=a,e.g=o,e.b=c;break;case 3:e.r=a,e.g=l,e.b=o;break;case 4:e.r=c,e.g=a,e.b=o;break;case 5:e.r=o,e.g=a,e.b=l}for(var u in e)e[u]=Math.round(e[u]);return e},e.RGBToHex=function(t){return Object.keys(t).reduce((function(e,i){var n=t[i].toString(16).toUpperCase();return e+(n=1===n.length?"0"+n:n)}),"#")},e.HexToRGB=n,e.RGBToHSV=o,e.HexToHSV=function(t){return o(n(9===t.length?t.slice(0,-2):t))},e.isHex=function(t){return/(^#[0-9A-F]{8}$)|(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},e.alphaToHex=function(t){var e=Math.round(255*t).toString(16).toUpperCase();return 1===e.length?"0"+e:e},e.getAlpha=function(t){return 9===t.length?Number((parseInt(t.slice(-2),16)/255).toFixed(2)):1}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={cancel:"Cancel",select:"Select",rightClickToDelete:"Right click to delete",customColors:"Custom colors",addNewColor:"Add new color"}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Scale=void 0;var o=i(172),r=i(79),s=i(5),a={left:r.left,right:r.right,bottom:r.bottom,top:r.top},l={left:r.leftGrid,right:r.rightGrid,bottom:r.bottomGrid,top:r.topGrid},c=function(){function t(t,e,i){this._data=t,this._padding=!1,this._charts=[],this._position=i,this._setDefaults(e),this._isXDirection="bottom"===i||"top"===i,"radial"!==i&&(this.config.size="left"===i||"right"===i?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 o.AxisCreator(e,this.config).getScale();var i=this._position;"radial"!==i&&(t[i]+=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 i=this;if(this.config.hidden)return null;var n=this._axis.steps.map((function(n){return[i._isXDirection?i.point(n)*t:i.point(n)*e,n]}));return 0===n.length&&"left"===this._position&&(n=[[0,0]]),a[this._position](n,this.config,t,e)},t.prototype.scaleGrid=function(){var t=this,e=this._position,i=this.config.grid,n=this.config.dashed,o=this.config.hidden;return{paint:function(r,s){var a=t._axis.steps.indexOf(t.config.targetLine),c=function(e,i){return t._axis.steps.map((function(n){return[t._isXDirection?t.point(n)*e:t.point(n)*i,n]}))}(r,s),u=t.point(t.config.targetValue),d={targetLine:a,dashed:n,grid:i,targetValue:u,hidden:o};return l[e](c,r,s,d)}}},t.prototype._setDefaults=function(t){t.locator&&(this.locator=(0,s.locator)(t.locator)),this.config=n(n({},{scalePadding:20,textPadding:11,grid:!0,targetLine:null,showText:!0}),t)},t.prototype._logPoint=function(t){var e,i=Math.abs(t)/t,n=this._axis.steps,o=n.length-1,r=n.indexOf(t);-1!==r?e=r/o:e=((this._axis.min<0?n.indexOf(0):0)+i*(0,s.log10)(Math.abs(t)))/o;return this._isXDirection?e:1-e},t}();e.Scale=c},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r=i(5),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(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,r.locator)(this.config.value))},e.prototype.paint=function(e,i){t.prototype.paint.call(this,e,i)},e.prototype.dataReady=function(t){var e=this;return this.config.active?(this._points=this._data.map((function(i,n){var o=e._xLocator(i),r=e._yLocator(i),s=[o,r,i.id,o,r];return t&&(s[1]+=t[n][1]),s})),this._points):this._points=[]},e.prototype._calckFinalPoints=function(t,e){var i=this;this._points.forEach((function(n,o){n[0]=i.xScale.point(n[0])*t||0;var r=i.yScale.point(n[1])*e;n[1]=isNaN(r)?"xbar"===i.config.type?0:e:r}))},e.prototype._defaultLocator=function(t){return[this._yLocator(t),this._xLocator(t)]},e}(i(31).default);e.default=s},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(5),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._center=[0,0],e._tooltipData=[],e}return o(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,i){return i.$hidden?e:e+parseFloat(t._valueLocator(i))}),0),this._points=e.reduce((function(e,i,n){if(i.$hidden)return e;var o=t._textLocator(i),r=t._valueLocator(i),a=r/t._sum,l=t._colorLocator?t._colorLocator(i):(0,s.getDefaultColor)(n);return e.push([a,r,i.id,o,l]),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 i=1-(Math.atan2(t-this._center[0],e-this._center[1])+Math.PI)/Math.PI/2,n=this._points,o=0;o<n.length;o++){if(n[o][0]>=i)return[0,this._tooltipData[o][0],this._tooltipData[o][1],n[o][2]];i-=n[o][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,i={subType:"basic",paddings:t.useLines?70:50};this.config=r(r({},i),t),this._drawPointType=this._getPointType("empty","none"),this._valueLocator=(0,s.locator)(t.value),this._textLocator=(0,s.locator)(t.text),t.color?this._colorLocator=(0,s.locator)(t.color):t.monochrome&&(this._colorLocator=function(i){return(0,s.getColorShade)(t.monochrome,2*e._getPercent(i))})},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}(i(31).default);e.default=a},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),a=i(5),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.paint=function(e,i){var n=this;t.prototype.paint.call(this,e,i);var o,l=this.config.pointColor||this.config.color,c="chart ".concat(this.config.type," ").concat(this.config.css||""," ").concat(this.config.dashed?"dash-line":""),u=[];if(this.config.strokeWidth&&u.push(this._getForm(this._points,this.config,c,e,i)),this.config.pointType){var d=this._getPointType(this.config.pointType,l);u=u.concat(this._points.map((function(t){return d(t[0],t[1],(0,a.calcPointRef)(t[2],n.id))})).map((function(t,e){return t&&t.attrs&&(t.attrs=r(r({},t.attrs),function(t,e){var i;return t&&(i=e.find((function(e){return t.includes(e[2])}))),{role:"graphics-symbol","aria-roledescription":"point","aria-label":i?"point x=".concat(i[3]," y=").concat(i[4]):"",tabindex:0}}(t.key,n._points)),n.config.tooltip&&(t.attrs.onmousemove=[n._handlers.onmousemove,n._points[e][2],n.id],t.attrs.onmouseleave=[n._handlers.onmouseleave,n._points[e][2],n.id],t.attrs.onclick=[n._handlers.onmousemove,n._points[e][2],n.id])),t})))}return(0,s.sv)("g",r(r({class:"seria",_key:this.id},(o=this.config,{"aria-label":"chart ".concat(o.value||"")})),{tabindex:0}),u)},e.prototype._getForm=function(t,e,i,n,o){var r=t.map((function(t,e){return(e?"L":"M")+"".concat(t[0]," ").concat(t[1])})).join(" ");return(0,s.sv)("path",{id:"seria"+e.id,d:r,stroke:e.color,class:i,"stroke-width":this.config.strokeWidth,fill:"none"})},e.prototype._setDefaults=function(t){this.config=r(r({},{alpha:1,strokeWidth:2,active:!0,tooltip:!0}),t)},e}(i(54).default);e.default=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={notFound:"Not Found",selectAll:"Select All",unselectAll:"Unselect All",selectedItems:"selected items",createItem:"Create"}},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(59),e),o(i(130),e),o(i(33),e)},function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.Uploader=void 0;var n=i(1),o=i(3),r=i(7),s=i(33),a=function(){function e(t,e,i){void 0===t&&(t={}),this.config=(0,n.extend)({autosend:!0,updateFromResponse:!0,fieldName:"file",accept:""},t),this.data=e||new r.DataCollection,this.events=i||this.data.events,this.isActive=!1,this._fileInput=document.createElement("input"),this._fileInput.type="file",this._fileInput.accept=this.config.accept,this._fileInput.multiple=!0,this._initEvents(),this._dropAreas=new Map}return e.prototype.selectFile=function(){this._fileInput.click()},e.prototype.linkDropArea=function(t){var e=this,i=(0,o.toNode)(t),n=function(t){return t.preventDefault()},r=function(t){t.preventDefault(),e.parseFiles(t.dataTransfer)};i.addEventListener("dragover",n),i.addEventListener("drop",r),this._dropAreas.set(i,{dragover:n,drop:r})},e.prototype.unlinkDropArea=function(t){var e=this;if(t){var i=(0,o.toNode)(t);this._unlinkDropArea(i),this._dropAreas.delete(i)}else this._dropAreas.forEach((function(t,i){e._unlinkDropArea(i)})),this._dropAreas.clear()},e.prototype.parseFiles=function(t){if(t.items&&t.items[0]&&t.items[0].webkitGetAsEntry)this._parseAsWebkitEntry(t.items);else{for(var e=t.files,i=0;i<e.length;i++)this._addFile(e[i]);this.config.autosend&&this.send()}},e.prototype.send=function(t){var e=this;if(!this._uploadInfo||!this.isActive){var i=this.data.findAll((function(t){return t.status===s.FileStatus.queue||t.status===s.FileStatus.failed})).filter((function(t){return e.events.fire(s.UploaderEvents.beforeUploadFile,[t])}));if(i.length)if(this.isActive=!0,this._uploadInfo={files:i,count:i.length,size:i.reduce((function(t,e){return t+e.file.size}),0)},this.events.fire(s.UploaderEvents.uploadBegin,[i]),this.events.fire(s.UploaderEvents.uploadProgress,[0,0,this._uploadInfo.size]),this.config.singleRequest)this._xhrSend(i,t);else for(var n=0,o=i;n<o.length;n++){var r=o[n];this._xhrSend([r],t)}}},e.prototype.abort=function(t){if(t){var e=this.data.getItem(t);e&&e.request&&4!==e.request.readyState&&e.request.abort()}else{if(!this._uploadInfo||!this._uploadInfo.files)return;for(var i=0,n=this._uploadInfo.files;i<n.length;i++){var o=n[i];this.abort(o.id)}}},e.prototype._unlinkDropArea=function(t){var e=this._dropAreas.get(t);if(e){var i=e.dragover,n=e.drop;t.removeEventListener("dragover",i),t.removeEventListener("drop",n)}},e.prototype._initEvents=function(){var t=this;this._fileInput.addEventListener("change",(function(){for(var e=t._fileInput.files,i=0;i<e.length;i++)t._addFile(e[i]);t.config.autosend&&t.send(),t._fileInput.value=null}))},e.prototype._xhrSend=function(t,e){for(var i=this,n=this._createFormData(t,e),o=new XMLHttpRequest,r=this.config.headerParams,a=0,l=t;a<l.length;a++){var c=l[a];this.data.update(c.id,{request:o,status:s.FileStatus.inprogress,progress:0})}if(o.open("POST",this.config.target),r)for(var u in r)o.setRequestHeader(u,r[u]);o.upload.onprogress=function(e){for(var n=0,o=t;n<o.length;n++){var r=o[n];i.data.update(r.id,{progress:e.loaded/e.total,status:s.FileStatus.inprogress})}var a=i._uploadInfo.files.reduce((function(t,e){return t+e.size*e.progress}),0)||0,l=i._uploadInfo.size,c=a/i._uploadInfo.size*100||0;i.events.fire(s.UploaderEvents.uploadProgress,[c,a,l])},o.onloadend=function(){i._uploadInfo.count=i.config.singleRequest?0:i._uploadInfo.count-1;for(var e=200===o.status?s.FileStatus.uploaded:s.FileStatus.failed,n=200===o.status&&o.response?JSON.parse(o.response):null,r=0,a=t;r<a.length;r++){var l=a[r];i.data.update(l.id,{status:e}),e===s.FileStatus.uploaded?(i.config.updateFromResponse&&n&&(i.config.singleRequest&&n[l.id]?i.data.update(l.id,n[l.id]):i.config.singleRequest||i.data.update(l.id,n)),i.events.fire(s.UploaderEvents.uploadFile,[l,n])):i.events.fire(s.UploaderEvents.uploadFail,[l])}0===i._uploadInfo.count&&(i.isActive=!1,i.events.fire(s.UploaderEvents.uploadComplete,[i._uploadInfo.files]))},o.send(n)},e.prototype._parseAsWebkitEntry=function(e){for(var i=this,n=[],o=0;o<e.length;o++){var r=e[o].webkitGetAsEntry();n.push(this._traverseFileTree(r))}t.all(n).then((function(){i.config.autosend&&i.send()}))},e.prototype._createFormData=function(t,e){var i=this.config.fieldName,n=new FormData,o=this.config.params;if(e)for(var r in e)n.append(r,e[r]);if(o)for(var r in o)n.append(r,o[r]);for(var s=t.length>1?"[]":"",a=0,l=t;a<l.length;a++){var c=l[a];n.append(i+s,c.file,c.file.name),n.append(i+"_fullname"+s,c.path+c.file.name);var u="object"==typeof c.id?c.id:c.id.toString();n.append(i+"_id"+s,u)}return n},e.prototype._addFile=function(t,e){void 0===e&&(e="");var i={id:(0,n.uid)(),file:t,progress:0,status:s.FileStatus.queue,src:null,path:e};this.data.add(i)},e.prototype._traverseFileTree=function(e){var i=this;return new t((function(t){var n=0,o=function(e,r){if(e.isFile)n++,e.file((function(e){n--,i._addFile(e,r),0===n&&t()}));else if(e.isDirectory){!function(e,i){n++,e.readEntries((function(e){n--;for(var r=0,s=e;r<s.length;r++){var a=s[r];o(a,i)}0===n&&t()}))}(e.createReader(),r+e.name+"/")}};o(e,"")}))},e}();e.Uploader=a}).call(this,i(17))},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.DataCollection=void 0;var r=i(2),s=i(121),a=i(124),l=i(27),c=i(23),u=i(22),d=i(1),h=function(){function t(t,e){var i=this;this._filters={},this._changes={order:[]},this.config=t||{},this._sort=new a.Sort,this._loader=new s.Loader(this,this._changes),this.events=e||new r.EventSystem(this),this.events.on(u.DataEvents.dataRequest,(function(t,e){var n=i.dataProxy;n&&n.updateUrl&&(n.updateUrl(null,{from:t,limit:n.config.limit||e-t}),i.load(n))})),this.events.on(u.DataEvents.loadError,(function(t){setTimeout((function(){"string"!=typeof t?(0,c.dhxError)(t):(0,c.dhxWarning)(t)}),0)})),this._reset()}return t.prototype._reset=function(){this._order=[],this._pull={},this._changes={order:[]},this._initOrder=null,this._meta=new WeakMap,this._loaded=!1},t.prototype.add=function(t,e){var i,n=this;if(this.events.fire(u.DataEvents.beforeAdd,[t]))return i=Array.isArray(t)?t.map((function(t,i){return 0!==i&&(e+=1),n._add(t,e)})):this._add(t,e),this._reapplyFilters(!0),i},t.prototype.remove=function(t){var e=this;t instanceof Array?o([],t,!0).map((function(t){e._remove(t)})):(0,d.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,i){var n=this.getItem(t);if(n){if((0,c.isEqualObj)(e,n))return;(0,d.isId)(e.id)&&t!==e.id?((0,c.dhxWarning)("this method doesn't allow changing the id"),(0,c.isDebug)()):(e.parent&&n.parent&&e.parent!==n.parent&&this.move(t,-1,this,e.parent),(0,d.extend)(this._pull[t],e,!1),this.config.update&&this.config.update(this._pull[t]),i||this._onChange("update",t,this._pull[t])),this._reapplyFilters(!0)}else(0,c.dhxWarning)("item not found")},t.prototype.getIndex=function(t){return(0,d.isId)(t)&&(0,d.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,d.isNumeric)(t)&&(0,d.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,i){var n,o;if((null==e?void 0:e.$restore)&&(t=this._normalizeFilters(t||this._filters)),!(null==e?void 0:e.add)&&(this._order=this._initOrder||this._order,this._initOrder=null,!(null==e?void 0:e.$restore)))for(var r in this._filters){var s=this._filters[r];(null===(n=s.config)||void 0===n?void 0:n.permanent)?this._applyFilters(s.rule):delete this._filters[r]}if(t&&!(null==e?void 0:e.$restore)&&(o=(null==e?void 0:e.id)||(0,d.uid)(),this._filters[o]={rule:t,config:e||{}}),t&&"function"!=typeof t)if((0,d.isDefined)(t.by))this._applyFilters(t);else for(var r in t)this._applyFilters(t[r]);else this._applyFilters(t);if(!i){var a=this._getPureFilters(this._filters);this.events.fire(u.DataEvents.filter,[(0,d.isEmptyObj)(a)?null:a])}return o},t.prototype.resetFilter=function(t,e){var i,n=t||{},o=n.id,r=n.permanent;if((0,d.isEmptyObj)(t))for(var s in this._filters)(null===(i=this._filters[s].config)||void 0===i?void 0:i.permanent)||delete this._filters[s];else r?this._filters={}:o&&delete this._filters[o];return this.filter(null,{$restore:!0},e),(0,d.isEmptyObj)(this._getPureFilters(this._filters))},t.prototype.getFilters=function(t){var e=this.getRawFilters(t),i=e?this._getPureFilters(e):{};return(0,d.isEmptyObj)(i)?null:i},t.prototype.getRawFilters=function(t){var e=this._filters;return(null==t?void 0:t.permanent)&&(e=Object.keys(e).reduce((function(t,i){var n;return(null===(n=e[i].config)||void 0===n?void 0:n.permanent)&&(t[i]=e[i]),t}),{})),(0,d.isEmptyObj)(e)?null:e},t.prototype.find=function(t){for(var e in this._pull){var i=(0,c.findByConf)(this._pull[e],t);if(i)return i}return null},t.prototype.findAll=function(t){var e=[];for(var i in this._pull){var n=(0,c.findByConf)(this._pull[i],t);n&&e.push(n)}return e},t.prototype.sort=function(t,e){this.isDataLoaded()?(e&&e.smartSorting&&(this._sorter=t),t&&this._applySorters(t),this.events.fire(u.DataEvents.change,[void 0,"sort",t])):(0,c.dhxWarning)("the method doesn't work with lazyLoad")},t.prototype.copy=function(t,e,i,n){var o=this;return t instanceof Array?t.map((function(t,r){return o._copy(t,e,i,n,r)})):this._copy(t,e,i,n)},t.prototype.move=function(t,e,i,n,o){var r=this;return t instanceof Array?t.map((function(t,o){return r._move(t,e,i,n,o)})):this._move(t,e,i,n,0,o)},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){if("string"==typeof t&&(this.dataProxy=t=new l.DataProxy(t)),"string"==typeof e){var i=e.toLocaleLowerCase();"xml"!==i&&"csv"!==i||(t.config.responseType=t.config.responseType||"text")}return this.dataProxy=t,this._loader.load(t,e)},t.prototype.parse=function(t,e){return this._reset(),this._loader.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(!0),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 l.DataProxy(t)),this._loader.save(t)},t.prototype.changeId=function(t,e,i){if(void 0===e&&(e=(0,d.uid)()),t!=e)if(this.exists(e))(0,c.dhxWarning)("item with ID ".concat(e," already exists"));else{var n=this.getItem(t);n?(n.id=e,(0,d.extend)(this._pull[t],n),this._pull[e]=this._pull[t],i||this._onChange("update",e,this._pull[e]),delete this._pull[t]):(0,c.dhxWarning)("item not found")}},t.prototype.isSaved=function(){return!this._changes.order.length},t.prototype.map=function(t){for(var e=[],i=0;i<this._order.length;i++)e.push(t.call(this,this._order[i],i,this._order));return e},t.prototype.mapRange=function(t,e,i){t<0&&(t=0),e>this._order.length-1&&(e=this._order.length-1);for(var n=this._order.slice(t,e+1),o=[],r=t;r<=e;r++)o.push(i.call(this,this._order[r],r,n));return o},t.prototype.reduce=function(t,e){for(var i=0;i<this._order.length;i++)e=t.call(this,e,this._order[i],i);return e},t.prototype.serialize=function(t){void 0===t&&(t=u.DataDriver.json);for(var e=[],i=function(t){var i=n({},o._order[t]);Object.keys(i).forEach((function(t){t.startsWith("$")&&delete i[t]})),e.push(i)},o=this,r=0;r<this._order.length;r++)i(r);var s=(0,c.toDataDriver)(t);if(s)return s.serialize(e)},t.prototype.getInitialData=function(){return this._initOrder},t.prototype.setMeta=function(t,e,i){if(t){var n=this._meta.get(t);n||(n={},this._meta.set(t,n)),n[e]=i}},t.prototype.getMeta=function(t,e){var i=this._meta.get(t);return i?i[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,i,n){if(i=i||this._order,1===n)return i;if(this._range)if(t=this._range[0]+t,-1===e)e=this._range[1];else{var o=Math.abs(e-t);e=t+o>this._range[1]?this._range[1]:t+o}if(!e||0===t&&(-1===e||e===i.length))return i;if(t>=i.length)return[];(-1===e||e>i.length)&&(e=i.length);var r=i.slice(t,e);return 0!==r.filter((function(t){return t.$empty})).length&&this.events.fire(u.DataEvents.dataRequest,[t,e]),r},t.prototype._add=function(t,e){var i=this._addCore(t,e);return this._onChange("add",t.id,t),this.events.fire(u.DataEvents.afterAdd,[t]),i},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,i,o,r,s){if(!this.exists(e))return null;var a=(0,d.uid)();return s&&(i=-1===i?-1:i+s),o?o instanceof t||!r?o.exists(e)?(o.add(n(n({},(0,c.copyWithoutInner)(this.getItem(e))),{id:a}),i),a):(o.add((0,c.copyWithoutInner)(this.getItem(e)),i),e):void o.add((0,c.copyWithoutInner)(this.getItem(e)),i):(this.add(n(n({},(0,c.copyWithoutInner)(this.getItem(e))),{id:a}),i),a)},t.prototype._move=function(t,e,i,n,o,r){if(o&&e<this.getIndex(t)&&(e=-1===e?-1:e+o),i&&i!==this&&this.exists(t)){var s=(0,d.copy)(this.getItem(t),!0);return r&&(s.id=r),(!r&&i.exists(t)||i.exists(r))&&(s.id=(0,d.uid)()),n&&(s.parent=n),i.add(s,e),this.remove(t),s.id}if(this.getIndex(t)===e)return null;var a=this._order.splice(this.getIndex(t),1)[0];return-1===e&&(e=this._order.length),this._order.splice(e,0,a),this.events.fire(u.DataEvents.change,[t,"update",this.getItem(t)]),t},t.prototype._addCore=function(t,e){var i;return this.config.init&&(t=this.config.init(t)),t.id=null!==(i=t.id)&&void 0!==i?i:(0,d.uid)(),this._pull[t.id]&&(0,c.dhxError)("Item ".concat(t.id," already exist")),this._initOrder&&!(0,c.isTreeCollection)(this)&&this._addToOrder(this._initOrder,t,e),this._addToOrder(this._order,t,e),t.id},t.prototype._removeCore=function(t){this.getIndex(t)>=0&&(this._order=this._order.filter((function(e){return e.id!==t})),delete this._pull[t]),this._initOrder&&this._initOrder.length&&(this._initOrder=this._initOrder.filter((function(e){return e.id!==t})),delete this._pull[t])},t.prototype._parse_data=function(t){var e=this._order.length;this.config.prep&&(t=this.config.prep(t));for(var i=0,n=t;i<n.length;i++){var o=n[i];this._addCore(o,e++)}},t.prototype._approximate=function(t,e,i){for(var n=t.length,o=e.length,r=Math.floor(n/i),s=Array(Math.ceil(n/r)),a=0,l=0;l<n;l+=r){for(var c=(0,d.copy)(t[l]),u=Math.min(n,l+r),h=0;h<o;h++){for(var f=0,p=l;p<u;p++)f+=t[p][e[h]];c[e[h]]=f/(u-l)}s[a++]=c}return s},t.prototype._onChange=function(t,e,i){for(var o=0,r=0,s=this._changes.order;r<s.length;r++){var a=s[r],l=this._changes.order.indexOf(a);if(a.id===e&&!a.saving&&(o+=1,l===this._changes.order.length-1||this._changes.order[l+1].id!==e)){if(a.error&&(a.error=!1),a=n(n({},a),{obj:i,status:t}),(o+=1)>10?this._changes.order.splice(l,o-10,a):this._changes.order.splice(l+1,0,a),this._loader.updateChanges(this._changes),"remove"===t&&i.$emptyRow)return;return void this.events.fire(u.DataEvents.change,[e,t,i])}}this._changes.order.push({id:e,status:t,obj:n({},i),saving:!1}),this._loader.updateChanges(this._changes),this.events.fire(u.DataEvents.change,[e,t,i])},t.prototype._addToOrder=function(t,e,i){i>=0&&t[i]?(this._pull[e.id]=e,t.splice(i,0,e)):(this._pull[e.id]=e,t.push(e))},t.prototype._applySorters=function(t){this._sort.sort(this._order,t,this._sorter),this._initOrder&&this._initOrder.length&&this._sort.sort(this._initOrder,t,this._sorter)},t.prototype._applyFilters=function(t){if(t){var e="function"!=typeof t?this._getRuleCallback(t):t,i=this._order.filter((function(t){return e(t)}));this._initOrder||(this._initOrder=this._order),this._order=i}},t.prototype._reapplyFilters=function(t){void 0===t&&(t=!1);var e=this.getFilters({permanent:!0});e&&this.filter(e,{$restore:!0,add:!0},!0),t&&this._sorter&&this._applySorters()},t.prototype._getRuleCallback=function(t){if((0,d.isDefined)(t.by)&&(0,d.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,i){var n;return(null===(n=t[i].config)||void 0===n?void 0:n.$local)||(e[i]=t[i]),e}),{})},t.prototype._normalizeFilters=function(t){var e=[];for(var i in t){var o=t[i].rule;if("function"!=typeof o)if((0,d.isDefined)(o.by))e.push(this._getRuleCallback(o));else for(var r in o)e.push(this._getRuleCallback(o[r]));else e.push(o)}return n({},e)},t}();e.DataCollection=h},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.dataDriversPro=e.dataDrivers=void 0;var o=i(62),r=i(63),s=i(122);e.dataDrivers={json:o.JsonDriver,csv:r.CsvDriver},e.dataDriversPro=n(n({},e.dataDrivers),{xml:s.XMLDriver})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JsonDriver=void 0;var n=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=n},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.CsvDriver=void 0;var o=function(){function t(t){this.config=n(n({},{skipHeader:0,nameByHeader:!1,rowDelimiter:"\n",columnDelimiter:","}),t),this.config.nameByHeader&&(this.config.skipHeader=1)}return t.prototype.getFields=function(t,e){for(var i=new RegExp('(?<!")'.concat(this.config.columnDelimiter,'(?!")')),n=t.trim().split(i),o={},r=0;r<n.length;r++)o[e?e[r]:r+1]=isNaN(Number(n[r]))?n[r].replace(/"[,;"]"/gi,(function(t){return t.split("").splice(1,1).slice(-1,1).join("")})):parseFloat(n[r]);return o},t.prototype.getRows=function(t){return t.trim().split(this.config.rowDelimiter)},t.prototype.toJsonArray=function(t){var e=this,i=this.getRows(t),n=this.config.names;if(this.config.skipHeader){var o=i.splice(0,this.config.skipHeader);this.config.nameByHeader&&(n=o[0].trim().split(this.config.columnDelimiter))}return i.map((function(t){return e.getFields(t,n)}))},t.prototype.serialize=function(t,e){var i=t[0]?Object.keys(t[0]).filter((function(t){return!t.startsWith("$")})).join(this.config.columnDelimiter)+this.config.rowDelimiter:"",n=this._serialize(t);return e?n:i+n},t.prototype._serialize=function(t){var e=this;return t.reduce((function(t,i){var n=Object.keys(i),o=n.reduce((function(t,o,r){var s,a;return o.startsWith("$")||"items"===o?t:"".concat(t).concat((null!==(a=null===(s=i[o])||void 0===s?void 0:s.toString())&&void 0!==a?a:"").replaceAll(/[,;"]/gi,(function(t){return'"'.concat(t,'"')}))).concat(r===n.length-1||r!==n.length-1&&n[r+1].startsWith("$")?"":e.config.columnDelimiter)}),"");return i.items?"".concat(t).concat(t?"\n":"").concat(o).concat(e._serialize(i.items)):"".concat(t).concat(t?e.config.rowDelimiter:"").concat(o)}),"")},t}();e.CsvDriver=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Cell=void 0;var s=i(1),a=i(0),l=i(9),c=i(43),u=i(131),d=i(2),h=i(42),f=function(t){function e(e,i){var n=t.call(this,e,i)||this;n._disabled=[];var o=e;return o&&o.isVisible&&(n._parent=o),n._parent&&n._parent.events?n.events=n._parent.events:n.events=new d.EventSystem(n),n.config.full=void 0===n.config.full?Boolean(n.config.header||n.config.collapsable||n.config.headerHeight||n.config.headerIcon||n.config.headerImage):n.config.full,n._afterWindowResized=n._resizedWindow.bind(n),n.id=n.config.id||(0,s.uid)(),n._initHandlers(),n._progress=!!n.config.progressDefault,n._stopProgressDefault=!1,n._isXDirection()&&!i.width&&(i.$autoWidth=!0),n._isXDirection()||i.height||(i.$autoHeight=!0),n}return o(e,t),e.prototype.paint=function(){var t;if(this.isVisible()){var e=this.getRootView();e?e.redraw():null===(t=this._parent)||void 0===t||t.paint()}},e.prototype.isVisible=function(){var t;if(!this._parent)return!(!this._container||!this._container.tagName)||Boolean(this.getRootNode());var e=null===(t=this._parent.config)||void 0===t?void 0:t.activeView;return(!e||e===this.id)&&(!this.config.hidden&&(!this._parent||this._parent.isVisible()))},e.prototype.hide=function(){this.events.fire(c.LayoutEvents.beforeHide,[this.id])&&(this.config.hidden=!0,this._resetCellsSize(),this._parent&&this._parent.paint&&this._parent.paint(),this.events.fire(c.LayoutEvents.afterHide,[this.id]))},e.prototype.show=function(){this.events.fire(c.LayoutEvents.beforeShow,[this.id])&&(this._parent&&this._parent.config&&void 0!==this._parent.config.activeView?this._parent.config.activeView=this.id:this.config.hidden=!1,this._parent&&!this._parent.isVisible()&&this._parent.show(),this.paint(),this.events.fire(c.LayoutEvents.afterShow,[this.id]))},e.prototype.expand=function(){this.events.fire(c.LayoutEvents.beforeExpand,[this.id])&&(this.config.collapsed=!1,this._checkNextSize()||this._checkNextSize(this._getAnyFlexCell()),this.events.fire(c.LayoutEvents.afterExpand,[this.id]),this.paint())},e.prototype.collapse=function(){this.events.fire(c.LayoutEvents.beforeCollapse,[this.id])&&(this.config.collapsed=!0,this._checkNextSize()||this._checkNextSize(this._getAnyFlexCell()),this.events.fire(c.LayoutEvents.afterCollapse,[this.id]),this.paint())},e.prototype.toggle=function(){this.config.collapsed?this.expand():this.collapse()},e.prototype._checkNextSize=function(t){var e=null!=t?t:this._getNextCell();return!!e&&(this._isXDirection()&&e.config.$autoWidth&&e.config.width?(e.config.width=void 0,!0):!this._isXDirection()&&e.config.$autoHeight&&e.config.height?(e.config.height=void 0,!0):!t&&e._checkNextSize())},e.prototype.getParent=function(){return this._parent},e.prototype.destructor=function(){var t;this.events&&this.events.clear(),window.removeEventListener("resize",this._afterWindowResized),this._ui&&this._ui.config&&"function"==typeof(null===(t=this._ui)||void 0===t?void 0:t.destructor)&&this._ui.destructor(),this.config=this.events=this.id=this._parent=this._handlers=this._uid=this._disabled=this._resizerHandlers=null,this.unmount()},e.prototype.getWidget=function(){return this._ui},e.prototype.getCellView=function(){return this._parent&&this._parent.getRefs(this._uid)},e.prototype.attach=function(t,e){return this.config.html=null,"object"==typeof t?this._ui=t:"string"==typeof t?this._ui=new window.dhx[t](null,e):"function"==typeof t&&(t.prototype instanceof l.View?this._ui=new t(null,e):this._ui={getRootView:function(){return t(e)}}),this.paint(),this._ui},e.prototype.attachHTML=function(t){this.config.html=t,this.paint()},e.prototype.detach=function(){this._stopProgressDefault=!1,this._ui=this.config.html=null,this.paint()},e.prototype.progressShow=function(){this.config.progressDefault&&(this._stopProgressDefault=!1),this._progress=!0,this.paint()},e.prototype.progressHide=function(){this.config.progressDefault&&(this._stopProgressDefault=!0),this._progress=!1,this.paint()},e.prototype.isVisibleProgress=function(){return this._progress},e.prototype.toVDOM=function(t){var e,i,n;if(this._saveTheme(),null===this.config&&(this.config={}),!this.config.hidden){var o,l=this.config.$fieldset,c=this._calculateStyle(),u=(0,s.isDefined)(this.config.padding)?isNaN(Number(this.config.padding))?{padding:this.config.padding}:{padding:"".concat(this.config.padding,"px")}:"",d=this.config.full||this.config.html?c:r(r({},c),u),h=this._checkProgress()?this._getProgressBar():null;if(!this.config.html)if(this._ui){var f=this._ui.getRootView();f.render&&(f=(0,a.inject)(f)),o=[f]}else o=t||null;var p=this.config.resizable&&!this._isLastCell()&&this._getNextCell()&&!this.config.collapsed?(0,a.el)(".dhx_layout-resizer."+(this._isXDirection()?"dhx_layout-resizer--x":"dhx_layout-resizer--y"),r(r({},this._resizerHandlers),{_ref:"resizer_"+this._uid,tabindex:0}),[(0,a.el)("span.dhx_layout-resizer__icon",{class:"dxi "+(this._isXDirection()?"dxi-dots-vertical":"dxi-dots-horizontal")})]):null,v={};if(this.config.on)for(var g in this.config.on)v["on"+g]=this.config.on[g];var _="",m=this.config.cols||this.config.rows;if(this.config.type&&m)switch(this.config.type){case"line":_=" dhx_layout-line";break;case"wide":_=" dhx_layout-wide";break;case"space":_=" dhx_layout-space"}var y=l?(0,a.el)("fieldset.dhx_form-fieldset",{class:this.config.$disabled?" dhx_form-fieldset--disabled":"",style:u,disabled:this.config.$disabled},[(0,a.el)("legend.dhx_form-fieldset-legend",{class:"dhx_form-fieldset-legend--".concat(this.config.labelAlignment||"left")},this.config.label),(0,a.el)(".dhx_layout-cell-content",{class:this._getCss(!1)},[].concat(o))]):this.config.full?[(0,a.el)("div",{tabindex:this.config.collapsable?"0":"-1",role:this.config.collapsable?"button":null,"aria-label":this.config.collapsable?"click to ".concat(this.config.collapsed?"expand":"collapse"):null,class:"dhx_layout-cell-header"+(this._isXDirection()?" dhx_layout-cell-header--col":" dhx_layout-cell-header--row")+(this.config.collapsable?" dhx_layout-cell-header--collapseble":"")+(this.config.collapsed?" dhx_layout-cell-header--collapsed":"")+(((this.getParent()||{}).config||{}).isAccordion?" dhx_layout-cell-header--accordion":""),style:{height:this.config.headerHeight},onclick:this._handlers.toggle,onkeydown:this._handlers.enterCollapse},[this.config.headerIcon&&(0,a.el)("span.dhx_layout-cell-header__icon",{class:this.config.headerIcon}),this.config.headerImage&&(0,a.el)(".dhx_layout-cell-header__image-wrapper",[(0,a.el)("img",{src:this.config.headerImage,class:"dhx_layout-cell-header__image"})]),this.config.header&&(0,a.el)("h3.dhx_layout-cell-header__title",this.config.header),this.config.collapsable?(0,a.el)("div.dhx_layout-cell-header__collapse-icon",{class:this._getCollapseIcon()}):(0,a.el)("div.dhx_layout-cell-header__collapse-icon",{class:"dxi dxi-empty"})]),this.config.collapsed?null:(0,a.el)("div",{style:r(r({},u),{height:"calc(100% - ".concat(this.config.headerHeight||37,"px)")}),class:this._getCss(!0)+" dhx_layout-cell-content"+(this.config.type?_:"")},this.config.html?[(0,a.el)("div",{".innerHTML":this.config.html,class:"dhx_layout-cell dhx_layout-cell-inner_html"})]:o)]:!this.config.html||this.config.rows&&this.config.cols&&this.config.views?o:[this.config.collapsed?null:(0,a.el)(".dhx_layout-cell-content",{style:u},[(0,a.el)(".dhx_layout-cell-inner_html",{".innerHTML":this.config.html})])],b=(0,a.el)("div",r(r(((e={_key:this._uid,_ref:this._uid})["aria-label"]=this.config.id?"tab-content-"+this.config.id:null,e["data-cell-id"]=null!==(i=this.config.id)&&void 0!==i?i:null,e["data-dhx-theme"]=null!==(n=this._theme)&&void 0!==n?n:null,e),v),{class:this._getCss(!1)+(this.config.css?" "+this.config.css:"")+(this.config.collapsed?" dhx_layout-cell--collapsed":"")+(this.config.resizable?" dhx_layout-cell--resizable":"")+(this.config.type&&!this.config.full?_:""),style:l?c:d}),y||h?[].concat(y,h):null);return p?[].concat(b,p):b}},e.prototype._saveTheme=function(){var t,e=null===(t=this.getCellView())||void 0===t?void 0:t.el;e&&(this._theme=e.getAttribute("data-dhx-theme"))},e.prototype._getProgressBar=function(){return(0,a.el)("span",{class:"dhx_progress-bar"},[(0,a.sv)("svg",{viewBox:"25 25 50 50",class:"dhx_spinner"},[(0,a.sv)("circle",{cx:"50",cy:"50",r:"20",class:"path"})])])},e.prototype._getCss=function(t){return"dhx_layout-cell"},e.prototype._initHandlers=function(){var t=this;!this.getParent()||this.config.cols||this.config.rows||window.addEventListener("resize",this._afterWindowResized),this._handlers={enterCollapse:function(e){13===e.keyCode&&t._handlers.toggle()},collapse:function(){t.config.collapsable&&t.collapse()},expand:function(){t.config.collapsable&&t.expand()},toggle:function(){t.config.collapsable&&t.toggle()}};var e={left:null,top:null,isActive:!1,range:null,xLayout:null,nextCell:null,size:null,resizerLength:null,margin:null,collapsedSize:null},i=function(i,n){if(void 0===n&&(n={x:0,y:0}),e.isActive){var o=e.xLayout,r=i.targetTouches?i.targetTouches[0].clientX:i.clientX+n.x,s=i.targetTouches?i.targetTouches[0].clientY:i.clientY+n.y,a=o?r-e.range.min+window.pageXOffset:s-e.range.min+window.pageYOffset,l=o?"width":"height";a<0?a=e.resizerLength/2:a>e.size&&(a=e.size-e.resizerLength);var u=function(e){var i;return parseInt(null===(i=t.config[e])||void 0===i?void 0:i.toString())},d=u(o?"maxWidth":"maxHeight"),h=u(o?"minWidth":"minHeight");(!d||a<d)&&(!h||a>h)&&(t.config[l]=a-e.resizerLength/2+"px",e.nextCell.config[l]=e.size-a-e.resizerLength/2+"px",e.nextCell._getAnyFlexCell()&&(e.nextCell._getAnyFlexCell().config[l]=void 0),t.paint(),t.events.fire(c.LayoutEvents.resize,[t.id]))}},n={},o=function(r){if(e.isActive=!1,document.body.classList.remove("dhx_no-select--resize"),r.targetTouches)for(var s in document.removeEventListener("touchend",o),document.removeEventListener("touchmove",i),n)n[s].node.contentWindow.document.removeEventListener("touchend",o),n[s].node.contentWindow.document.removeEventListener("touchmove",n[s].listener);else for(var s in document.removeEventListener("mouseup",o),document.removeEventListener("mousemove",i),n)n[s].node.contentWindow.document.removeEventListener("mouseup",o),n[s].node.contentWindow.document.removeEventListener("mousemove",n[s].listener);t.events.fire(c.LayoutEvents.afterResizeEnd,[t.id])},r=function(i){if(i.targetTouches&&i.preventDefault(),3!==i.which&&(e.isActive&&o(i),t.events.fire(c.LayoutEvents.beforeResizeStart,[t.id]))){document.body.classList.add("dhx_no-select--resize");var n=t.getCellView(),r=t._getNextCell(),s=r.getCellView(),a=t._getResizerView(),l=n.el.getBoundingClientRect(),d=a.el.getBoundingClientRect(),h=s.el.getBoundingClientRect();e.xLayout=t._isXDirection(),e.left=l.left+window.pageXOffset,e.top=l.top+window.pageYOffset,e.collapsedSize=t._getCollapsedSize(t,r),e.margin=(0,u.getMarginSize)(t.getParent().config),e.range=(0,u.getBlockRange)(l,h,e.xLayout),e.size=e.range.max-e.range.min-e.margin-e.collapsedSize,e.isActive=!0,e.nextCell=r,e.resizerLength=e.xLayout?d.width:d.height}};this._resizerHandlers={onmousedown:function(t){r(t),document.addEventListener("mouseup",o),document.addEventListener("mousemove",i);var e=document.querySelectorAll("iframe");if(e.length)for(var s in e.forEach((function(t,e){var o={x:t.getBoundingClientRect().x,y:t.getBoundingClientRect().y};n[e]={node:t,listener:function(t){return i(t,o)}}})),n)n[s].node.contentWindow.document.addEventListener("mouseup",o),n[s].node.contentWindow.document.addEventListener("mousemove",n[s].listener)},ontouchstart:function(t){r(t),document.addEventListener("touchend",o),document.addEventListener("touchmove",i);var e=document.querySelectorAll("iframe");if(e.length)for(var s in e.forEach((function(t,e){var o={x:t.getBoundingClientRect().x,y:t.getBoundingClientRect().y};n[e]={node:t,listener:function(t){return i(t,o)}}})),n)n[s].node.contentWindow.document.addEventListener("touchend",o),n[s].node.contentWindow.document.addEventListener("touchmove",n[s].listener)},ondragstart:function(t){return t.preventDefault()}}},e.prototype._getCollapsedSize=function(t,e){var i=0,n=this._parent,o=n._cells.indexOf(t),r=n._cells.indexOf(e);if(r-o==1)return i;for(var s=o+1;s<r;s++)n._cells[s].config.collapsed&&(this._isXDirection()?i+=45:i+=Number(n._cells[s].config.headerHeight)||37);return i},e.prototype._getCollapseIcon=function(){return this._isXDirection()&&this.config.collapsed?"dxi dxi-chevron-right":this._isXDirection()&&!this.config.collapsed?"dxi dxi-chevron-left":!this._isXDirection()&&this.config.collapsed?"dxi dxi-chevron-up":this._isXDirection()||this.config.collapsed?void 0:"dxi dxi-chevron-down"},e.prototype._isLastCell=function(){var t=this._parent;return t&&t._cells.indexOf(this)===t._cells.length-1},e.prototype._getNextCell=function(){var t=this._parent,e=t._cells.indexOf(this),i=!this._isLastCell()&&t._cells[e+1];return!!i&&(i.config.hidden||i.config.collapsed?i._getNextCell():i)},e.prototype._getAnyFlexCell=function(t){var e,i=this;void 0===t&&(t=!1);var n=this._parent,o=this._isXDirection()?"$autoWidth":"$autoHeight",r=null===(e=null==n?void 0:n._cells)||void 0===e?void 0:e.filter((function(e){return!0===e.config[o]&&(!!t||e.id!==i.id)}));return!!(null==r?void 0:r.length)&&r[r.length-1]},e.prototype._getResizerView=function(){return this._parent.getRefs("resizer_"+this._uid)},e.prototype._isXDirection=function(){return this._parent&&this._parent._xLayout},e.prototype._checkProgress=function(){return this instanceof h.Layout?this.isVisibleProgress():(this._calculateProgressState(),(this._progress||this._checkAutoProgress())&&!this.config.collapsed&&!this.config.hidden&&!this._parent.isVisibleProgress())},e.prototype._checkAutoProgress=function(){if(this._stopProgressDefault)return!1;var t=this.config,e=t.html;return t.progressDefault&&!this._ui&&!e},e.prototype._calculateProgressState=function(){if(!this._stopProgressDefault){var t=this.config,e=t.html,i=t.progressDefault;!i||this._ui||e||(this._progress=!0),i&&(this._ui||e)&&(this._progress=!1)}},e.prototype._calculateStyle=function(){var t=this.config;if(t){var e={},i=!1,n=!1;isNaN(Number(t.width))||(t.width=t.width+"px"),isNaN(Number(t.height))||(t.height=t.height+"px"),isNaN(Number(t.minWidth))||(t.minWidth=t.minWidth+"px"),isNaN(Number(t.minHeight))||(t.minHeight=t.minHeight+"px"),isNaN(Number(t.maxWidth))||(t.maxWidth=t.maxWidth+"px"),isNaN(Number(t.maxHeight))||(t.maxHeight=t.maxHeight+"px"),"content"===t.width&&(i=!0),"content"===t.height&&(n=!0);var o=t,r=o.width,s=o.height,a=o.cols,l=o.rows,c=o.minWidth,u=o.minHeight,d=o.maxWidth,h=o.maxHeight,f=o.gravity,p=o.collapsed,v=o.$fixed,g=-1===Math.sign(f)?0:f;"boolean"==typeof f&&(g=f?1:0);var _="boolean"==typeof f?!f:-1===Math.sign(f);this._isXDirection()?(v||r||void 0===f&&(c||d))&&(_=!0):(v||s||void 0===f&&(u||h))&&(_=!0);var m=this._checkFullSizeCell(),y=_&&!m?0:m?1:g||1,b=this._isXDirection()?"x":"y";if(void 0===c||p||(e.minWidth=c),void 0===u||p||(e.minHeight=u),void 0!==d&&(e.maxWidth=d),void 0!==h&&(e.maxHeight=h),void 0===this._parent&&void 0!==!b&&(b=!0),m||void 0===r||"content"===r){if(!0===b)e.width="100%";else if("x"===b)if(i)e.flex="0 0 auto";else{var w=this._isXDirection()?"1px":"auto";e.flex="".concat(y," ").concat(a||l?"0 ".concat(w):"1 auto")}}else e.width=r;if(m||void 0===s||"content"===s){if(!0===b)e.height="100%";else if("y"===b)if(n)e.flex="0 0 auto";else{w=this._isXDirection()?"auto":"1px";e.flex="".concat(y," ").concat(a||l?"0 ".concat(w):"1 auto")}}else e.height=s;return!0===b&&void 0===t.width&&void 0===t.height&&(e.flex="".concat(y," 1 auto")),p&&(this._isXDirection()?e.width="auto":e.height="auto",e.flex="0 0 auto"),e}},e.prototype._resizedWindow=function(){var t;if(void 0===this._isLastFlexCell?this._isLastFlexCell=(null===(t=this._getAnyFlexCell(!0))||void 0===t?void 0:t.id)===this.id:this._isLastFlexCell||window.removeEventListener("resize",this._afterWindowResized),this._isLastFlexCell){var e=this._isXDirection()?"width":"height";this.config[e]=void 0,this.paint()}},e.prototype._resetCellsSize=function(){var t=this,e=this._parent._cells.filter((function(e){return e!==t&&!e.config.hidden&&!e.config.collapsed})),i=this._isXDirection(),n=i?"$autoWidth":"$autoHeight",o=i?"width":"height";e.forEach((function(t){t.config[n]&&(t.config[o]=void 0)}))},e.prototype._checkFullSizeCell=function(){var t=this;if(!this._parent)return!1;var e=this._isXDirection()?"$autoWidth":"$autoHeight";if(!this.config[e])return!1;var i=this._parent._cells.filter((function(e){return e!==t&&!e.config.hidden}));return!!i.length&&i.every((function(t){return t.config.collapsed}))},e}(l.View);e.Cell=f},function(t,e,i){"use strict";function n(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",n),function(){document.body.removeChild(e),document.removeEventListener("keydown",n)}}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.disableTooltip=e.enableTooltip=e.tooltip=e.getZIndex=e.findPosition=void 0;var o=i(3),r=i(44),s=750,a=200;function l(t,e,i,n,o,s){var a,c,u;if(void 0===o&&(o=8),void 0===s&&(s=0),s>1&&(e=r.Position.center),"top"!==e&&"bottom"!==e){var d=t.top+(t.height-n)/2,h=d<0&&window.pageYOffset+d+n<scrollY+window.innerHeight;u=window.pageYOffset+(h?0:d)}switch(e){case r.Position.center:return(c=t.left+window.pageXOffset+(t.width-i)/2)+o<window.pageXOffset&&(c=t.left+window.pageXOffset),{left:c,top:u,pos:a=r.RealPosition.center};case r.Position.right:return a=r.RealPosition.right,(c=t.right+window.pageXOffset+o)+i>window.innerWidth+window.pageXOffset?l(t,r.Position.left,i,n,o,++s):{left:c,top:u,pos:a};case r.Position.left:return a=r.RealPosition.left,(c=window.pageXOffset+t.left-i-o)<0?l(t,r.Position.right,i,n,o,++s):{left:c,top:u,pos:a};case r.Position.top:return a=r.RealPosition.top,(c=window.pageXOffset+t.left+(t.width-i)/2)+i>window.innerWidth+window.pageXOffset?c=window.innerWidth+window.pageXOffset-i:c<0&&(c=0),t.top<n?l(t,r.Position.bottom,i,n,o,++s):{left:c,top:u=window.pageYOffset+t.top-n-o,pos:a};case r.Position.bottom:default:return(c=window.pageXOffset+t.left+(t.width-i)/2)+i>window.innerWidth+window.pageXOffset?c=window.innerWidth+window.pageXOffset-i:c<0&&(c=0),a=r.RealPosition.bottom,(u=window.pageYOffset+t.bottom+o)+n>window.innerHeight+window.pageYOffset?l(t,r.Position.top,i,n,o,++s):{left:c,top:u,pos:a}}}e.findPosition=l;var c=document.createElement("div"),u=document.createElement("span");u.className="dhx_tooltip__text",c.appendChild(u),c.setAttribute("role","tooltip"),c.style.position="absolute";var d,h=null,f=!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,i,n,o,s,a){void 0===n&&(n=""),void 0===o&&(o=!1),void 0===s&&(s=8);var d=t.getBoundingClientRect();a?u.innerHTML=e:u.textContent=e,c.style.left=null,c.style.top=null,document.body.appendChild(c),c.className="dhx_widget dhx_tooltip ".concat(o?" dhx_tooltip--forced":""," ").concat(n);var h=c.getBoundingClientRect(),p=l(d,i,h.width,h.height,s),v=p.left,_=p.top,m=p.pos,y=g(t);switch(y&&(c.style.zIndex=y.toString()),m){case r.RealPosition.bottom:case r.RealPosition.top:case r.RealPosition.left:case r.RealPosition.right:case r.RealPosition.center:c.style.left=v+"px",c.style.top=_+"px"}c.className+=" dhx_tooltip--".concat(m),f=!0,o||setTimeout((function(){c.className+=" dhx_tooltip--animate"}))}function m(t,e,i){var n=i.force,o=i.showDelay,l=i.hideDelay,u=i.position,g=i.css,m=i.htmlEnable,y=i.margin;n||(v=setTimeout((function(){_(t,e,u||r.Position.bottom,g,!1,y,m)}),o||s));var b=function(){var e;f&&(e=l,h&&(p=setTimeout((function(){document.body.removeChild(c),f=!1,p=null}),e||a))),clearTimeout(v),t.removeEventListener("mouseleave",b),t.removeEventListener("blur",b),document.removeEventListener("mousedown",b),h=null,d=null};n&&_(t,e,u,g,n,y,m),t.addEventListener("mouseleave",b),t.addEventListener("blur",b),document.addEventListener("mousedown",b),d=b}function y(t,e){var i=(0,o.toNode)(e.node);i!==h&&(d&&(d(),d=null),h=i,p?(clearTimeout(p),p=null,m(i,t,n(n({},e),{force:!0}))):m(i,t,e))}function b(t){var e=(0,o.locateNode)(t,"dhx_tooltip_text");e&&y(e.getAttribute("dhx_tooltip_text"),{position:e.getAttribute("dhx_tooltip_position")||r.Position.bottom,node:e})}e.getZIndex=g,e.tooltip=y,e.enableTooltip=function(){document.addEventListener("mousemove",b)},e.disableTooltip=function(){document.removeEventListener("mousemove",b)}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Toolbar=void 0;var s=i(1),a=i(0),l=i(3),c=i(12),u=i(20),d=function(t){function e(e,i){var n=t.call(this,e,(0,s.extend)({navigationType:"click",$name:"toolbar"},i))||this;n._currentRoot=null;return n.mount(e,(0,a.create)({render:function(){return n._draw(e)}})),n}return o(e,t),e.prototype.getState=function(t){if(!(0,s.isDefined)(t)||this.data.getItem(t)){var e={};for(var i in this.data.eachChild(this.data.getRoot(),(function(t){t.twoState&&!t.group?e[t.id]=t.active:"input"!==t.type&&"selectButton"!==t.type&&"datePicker"!==t.type||(e[t.id]=t.value)}),!1),this._groups)this._groups[i].active&&(e[i]=this._groups[i].active);return(0,s.isId)(t)?e[t]:e}},e.prototype.setState=function(t){var e,i=function(i){if(n._groups&&n._groups[i])n._groups[i].active&&(n.data.update(n._groups[i].active,{active:!1}),n._groups[i].active=t[i],n.data.update(t[i],{active:!0}));else{var o=n.data.getItem(i);switch(o.type){case"input":n.data.update(i,{value:t[i]});break;case"selectButton":var r=null===(e=o.items)||void 0===e?void 0:e.find((function(e){return e.value===t[i]}));n.data.update(i,{value:t[i],icon:null==r?void 0:r.icon});break;case"datePicker":o.$calendar?t[i]?o.$calendar.setValue(t[i]):o.$calendar.clear():n.data.update(i,{value:t[i]});break;default:n.data.update(i,{active:t[i]})}}},n=this;for(var o in t)i(o)},e.prototype.setFocus=function(t){if(this.data.getItem(t)&&"input"===this.data.getItem(t).type){var e=this.getRootNode().querySelector('[data-dhx-id="'.concat(t,'"]'));e&&e.focus()}},e.prototype._customHandlers=function(){var t=this;return{input:function(e){var i=(0,l.locate)(e),n=t.data.getItem(i);if(n){var o=e.target.value;t.data.update(i,{value:o}),"input"===n.type&&t.events.fire(u.NavigationBarEvents.input,[i,o])}},tooltip:function(e){var i=(0,l.locateNode)(e);if(i){var n=i.getAttribute("data-dhx-id"),o=t.data.getItem(n);(null==o?void 0:o.tooltip)&&(0,c.tooltip)(o.tooltip,{node:i,position:c.Position.bottom})}}}},e.prototype._getFactory=function(){return(0,u.createFactory)({widget:this,defaultType:"navItem",allowedTypes:["button","imageButton","selectButton","navItem","menuItem","separator","spacer","title","input","customHTML","datePicker","customHTMLButton"],widgetName:"toolbar"})},e.prototype._draw=function(t){var e=this,i=this.data.getLength()?this.data.reduce((function(t,e){switch(e.type){case"title":return t||20;case"button":return"small"===e.size&&(!t||t<=28)?28:t||32;default:return 32}}),0)+24:null;return(0,a.el)("nav.dhx_widget.dhx_toolbar",{style:{height:i},class:this.config.css?this.config.css:""},[(0,a.el)("ul.dhx_navbar.dhx_navbar--horizontal",r(r({"data-dhx-widget-id":this._uid,tabindex:0},function(t){return{role:"toolbar","aria-label":t||""}}(t)),{onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,oninput:this._handlers.input,onmouseover:this._handlers.tooltip,onkeydown:this._handlers.onkeydown,onmousemove:this._handlers.onmousemove,onmouseleave:this._handlers.onmouseleave,_hooks:{didInsert:function(t){t.el.addEventListener("keyup",(function(t){if(9===t.which){var i=(0,l.locateNode)(document.activeElement);if(i){var n=i.getAttribute("data-dhx-id"),o=e.data.getItem(n);(null==o?void 0:o.tooltip)&&(0,c.tooltip)(o.tooltip,{node:i,position:c.Position.bottom,force:!0})}}}),!0)}}}),this.data.map((function(t){return e._factory(t)}),this.data.getRoot(),!1))])},e.prototype._getMode=function(t,e){return t.id===e?"bottom":"right"},e.prototype._close=function(e){this._activePosition=null,this._currentRoot=null,t.prototype._close.call(this,e)},e.prototype._setRoot=function(t){this.data.getParent(t)===this.data.getRoot()&&(this._currentRoot=t)},e}(u.Navbar);e.Toolbar=d},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.PopupEvents=void 0,function(t){t.beforeHide="beforeHide",t.beforeShow="beforeShow",t.afterHide="afterHide",t.afterShow="afterShow",t.click="click"}(n||(e.PopupEvents=n={}))},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.SliderEvents=void 0,function(t){t.beforeChange="beforeChange",t.change="change",t.focus="focus",t.blur="blur",t.keydown="keydown",t.mousedown="mousedown",t.mouseup="mouseup"}(n||(e.SliderEvents=n={}))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={hours:"Hours",minutes:"Minutes",save:"Save"}},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.TimepickerEvents=void 0,function(t){t.beforeChange="beforeChange",t.change="change",t.beforeApply="beforeApply",t.afterApply="afterApply",t.beforeClose="beforeClose",t.afterClose="afterClose",t.apply="apply",t.close="close",t.save="save"}(n||(e.TimepickerEvents=n={}))},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.CalendarEvents=void 0,function(t){t.change="change",t.beforeChange="beforechange",t.modeChange="modeChange",t.monthSelected="monthSelected",t.yearSelected="yearSelected",t.cancelClick="cancelClick",t.dateMouseOver="dateMouseOver",t.dateHover="dateHover"}(n||(e.CalendarEvents=n={}))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.List=e.MOVE_DOWN=e.MOVE_UP=void 0;var a=i(1),l=i(7),c=i(0),u=i(14),d=i(28),h=i(9),f=i(74),p=i(3),v=i(49),g=i(160);e.MOVE_UP=1,e.MOVE_DOWN=2;var _=function(t){function i(e,i){void 0===i&&(i={});var n=this,o=i.itemHeight||(i.virtual?37:null);o&&"number"==typeof o&&(o=o.toString()+"px"),(n=t.call(this,e,(0,a.extend)({itemHeight:o,keyNavigation:!0,editable:!1,selection:!0,htmlEnable:!0},i))||this)._destructed=!1,n._touch={duration:350,dblDuration:300,timer:null,start:!1,timeStamp:null};var r=n.config.data;r instanceof l.DataCollection?(n.data=r,n.events=r.events):(n.data=new l.DataCollection({}),n.events=n.data.events,r&&n.data.parse(r)),n.selection=new f.Selection({disabled:!n.config.selection,multiselection:n.config.multiselection},n.data,n.events),n.config.keyNavigation&&(n.keyManager=new u.KeyManager((function(t,e){return e==n._uid&&(!n._edited||n._edited&&"escape"!==t.key)})),n._initHotKey()),n.events.on(l.DataEvents.change,(function(t,e,i){"setPage"===e&&n.scrollTo(n.data.getId(i[0])),n.paint()})),n.events.on(l.DataEvents.filter,(function(){n.paint()})),n.events.on(d.SelectionEvents.afterUnSelect,(function(){return n.paint()})),n.events.on(d.SelectionEvents.afterSelect,(function(t){(0,a.isId)(t)&&n.config.selection&&n.setFocus(t),n.paint()})),n.events.on(v.ListEvents.afterEditEnd,n.editEnd.bind(n));var s=function(t){return function(e){n.data.setMeta(n.data.getItem(e.target),"drop",t),n.paint()}};n.events.on(l.DragEvents.canDrop,s(!0)),n.events.on(l.DragEvents.cancelDrop,s(!1));var h=function(t){return function(e){e.source.map((function(e){return n.data.setMeta(n.data.getItem(e),"drag",t)})),n.paint()}};n.events.on(l.DragEvents.dragStart,h(!0)),n.events.on(l.DragEvents.afterDrag,h(!1)),n._handlers={onmousedown:function(t){n._dragStart(t)},ontouchstart:function(t){(n._touch.timer=setTimeout((function(){n._dragStart(t)}),n._touch.duration),n._touch.timeStamp)?(n._touch.dblDuration>=n._touch.timeStamp-+t.timeStamp.toFixed()&&(t.preventDefault(),n._dblClick(t)),n._touch.timeStamp=null):n._touch.timeStamp=+t.timeStamp.toFixed();setTimeout((function(){n._touch.timeStamp=null}),n._touch.dblDuration)},ontouchmove:function(t){n._touch.start&&t.preventDefault(),n._clearTouchTimer()},ontouchend:function(){n._touch.start=!1,n._clearTouchTimer()},ondragstart:function(){return!(n.config.dragMode&&!n._edited)&&null},oncontextmenu:function(t){var e,i=null===(e=n.data.getItem((0,p.locate)(t)))||void 0===e?void 0:e.id;(0,a.isId)(i)&&n.events.fire(v.ListEvents.itemRightClick,[i,t])},onclick:function(t){var e,i=null===(e=n.data.getItem((0,p.locate)(t)))||void 0===e?void 0:e.id;(0,a.isId)(i)&&(n.selection.add(i,t.ctrlKey||t.metaKey,t.shiftKey),n.config.selection&&(n._focus=i),n.events.fire(v.ListEvents.click,[i,t]),n.paint())},ondblclick:function(t){n._dblClick(t)},onscroll:function(t){n.config.virtual&&(n._topOffset=t.target.scrollTop,n._visibleHeight=t.target.offsetHeight,n.paint())},onmouseover:function(t){var e,i=null===(e=n.data.getItem((0,p.locate)(t)))||void 0===e?void 0:e.id;(0,a.isId)(i)&&(i!==(0,p.locate)(t.relatedTarget)&&n.events.fire(v.ListEvents.itemMouseOver,[i,t]))}};var g=n.config.eventHandlers;if(g)for(var _=0,m=Object.entries(g);_<m.length;_++){var y=m[_],b=y[0],w=y[1];n._handlers[b]=(0,p.eventHandler)((function(t){return(0,p.locate)(t)}),w,n._handlers[b])}n.config.dragMode&&l.dragManager.setItem(n._uid,n),n._topOffset=n._visibleHeight=0;var x=(0,c.create)({render:function(){return n._destructed?(0,c.el)("div"):n._renderList()},hooks:{didMount:function(t){n.config.virtual&&(n._visibleHeight=t.node.el.offsetHeight)},didRedraw:function(t){return n._didRedraw(t)}}});return n.mount(e,x),n}return o(i,t),i.prototype._didRedraw=function(t){},i.prototype._dblClick=function(t){var e,i=(0,p.locate)(t);i&&(i=null===(e=this.data.getItem(i))||void 0===e?void 0:e.id,this.config.editable&&this.editItem(i),this.events.fire(v.ListEvents.doubleClick,[i,t]))},i.prototype._clearTouchTimer=function(){this._touch.timer&&(clearTimeout(this._touch.timer),this._touch.timer=null)},i.prototype._dragStart=function(t){var e=this;this._touch.start=!0;var i=[],n=(0,p.locateNode)(t,"data-dhx-id"),o=n&&n.getAttribute("data-dhx-id"),r=this.selection.getId();return this.config.multiselection&&r instanceof Array&&(r.map((function(t){t!==o&&e.getRootView().refs[t]&&i.push(e.getRootView().refs[t].el)})),r=s([],r,!0)),"string"==typeof r&&(r=[r]),this.config.dragMode&&!this._edited?l.dragManager.onMouseDown(t,r||[o],i):null},i.prototype.disableSelection=function(){this.selection.disable()},i.prototype.enableSelection=function(){this.selection.enable()},i.prototype.editItem=function(t){this._edited=t,this.data.getItem(this._edited)&&this.events.fire(v.ListEvents.beforeEditStart,[t])?(this.paint(),this.events.fire(v.ListEvents.afterEditStart,[t])):this._edited=null},i.prototype.editEnd=function(t,e){if(this._edited){if(null!==t){var i=this.data.getItem(e);this.data.update(e,r(r({},i),{value:t})),this._changed=!0}this._edited=null,this.paint()}},i.prototype.getFocusItem=function(){return this.data.getItem(this._focus)},i.prototype.setFocus=function(t){this._focus!=t&&this.data.exists(t)&&(this._focus=t,this.events.fire(v.ListEvents.focusChange,[this.data.getIndex(this._focus),this._focus]),this.scrollTo(t),this.paint())},i.prototype.resetFocus=function(){this._focus=void 0,this.events.fire(v.ListEvents.focusChange),this.scrollTo(this.data.getId(0)),this.paint()},i.prototype.getFocus=function(){return this._focus},i.prototype.destructor=function(){this._destructed=!0,this.events&&this.events.clear(),this.keyManager&&this.keyManager.destructor(),this.selection&&this.selection.destructor(),this.config=this.events=this.selection=this.keyManager=null,this._handlers=this._focus=this._edited=this._events=this._topOffset=this._visibleHeight=this._touch=null,this.unmount()},i.prototype.scrollTo=function(t){var e=this.getRootView();if(e&&e.node&&e.node.el&&void 0!==t){var i=this.getRootNode();this._scrollTo(t,i)}},i.prototype._scrollTo=function(t,e){if(e){var i=this.data.getIndex(t);if(-1!==i){var n=this.config.virtual,o=Math.floor(i/e.children.length)||0,r=e.children[i-e.children.length*o];if(n||r){var s=n?parseInt(this.config.itemHeight):r.clientHeight,a=n?i*s:r.offsetTop;a>=e.scrollTop+e.clientHeight-s?e.scrollTo(0,a-e.clientHeight+s):a<e.scrollTop&&e.scrollTo(0,a)}}}},i.prototype._renderItem=function(t,e){var i=function(t){t.class+=" dhx_list-item--empty"},n=this.config.itemHeight;if(t.$empty)return(0,c.el)("li",{class:"dhx_list-item",style:{height:n}});var o="";this.config.template&&(o=this.config.template(t)),t.html&&(o=t.html);var s=t.id==this._focus&&this.config.keyNavigation;if(t.id==this._edited)return(0,g.getEditor)(t,this).toHTML();var a=this.data.getMetaMap(t),l=r(r(r(r({},this._events),{class:"dhx_list-item"+(a&&a.selected?" dhx_list-item--selected":"")+(s?" dhx_list-item--focus":"")+(a&&a.drop&&!this._edited?" dhx_list-item--drophere":"")+(a&&a.drag&&!this._edited?" dhx_list-item--dragtarget":"")+(this.config.dragMode&&!this._edited?" dhx_list-item--drag":"")+(t.css?" "+t.css:""),"data-dhx-id":t.id,_ref:t.id.toString(),style:{height:n},_key:t.id}),this.getItemAriaAttrs(this,t)),{tabindex:s?0:-1});if(o)return o===t.html||this.config.htmlEnable?(l[".innerHTML"]=o,(0,c.el)("li",l)):(0,c.el)("li",l,o);if(this.config.$template)return t.value||i(l),(0,c.el)("li",l,[this.config.$template(t)]);var u=t.text||t.value;return u||i(l),this.config.htmlEnable?l[".innerHTML"]=u:l.class+=" dhx_list-item--text",this.config.htmlEnable?(0,c.el)("li",l):(0,c.el)("li",l,u)},i.prototype._renderList=function(){var t=this,e=this._getRange(),i=this.data.getRawData(e[0],e[1]).map((function(e,i){return t._renderItem(e,i)}));return this.config.virtual&&(i=s(s([(0,c.el)(".div",{style:{height:e[2]+"px"}})],i,!0),[(0,c.el)(".div",{style:{height:e[3]+"px"}})],!1)),(0,c.el)("ul.dhx_widget.dhx_list",r(r({style:{"max-height":this.config.height,position:"relative"},tabindex:0,id:this._uid,class:(this.config.css?this.config.css:"")+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":""),"data-dhx-widget-id":this._uid},this._handlers),this._getListAriaAttrs(this.config,this.data.getLength())),i)},i.prototype.moveFocus=function(t,i){var n=this.data.getLength();if(n){var o=this._focus,r=o?this.data.getIndex(o):-1;i=i||1,t===e.MOVE_DOWN?o=this.data.getId(Math.min(r+i,n-1)):t===e.MOVE_UP&&(o=this.data.getId(Math.max(r-i,0))),this.setFocus(o)}},i.prototype._getRange=function(){if(this.config.virtual){var t=this._visibleHeight||parseInt(this.config.height),e=parseInt(this.config.itemHeight),i=this.data.getRawData(0,-1).length,n=i*e,o=this._topOffset;o=Math.max(0,Math.min(o,n-t));var r=Math.floor(o/e),s=Math.min(i-r,Math.floor(t/e)+5);return this._topOffset=o,[r,s+r,r*e,n-e*(s+r)]}return[0,-1,0,0]},i.prototype._getHotkeys=function(){var t=this;return{arrowDown:function(i){t.moveFocus(e.MOVE_DOWN),t._changed&&(t._changed=!1),i.preventDefault()},arrowUp:function(i){t.moveFocus(e.MOVE_UP),t._changed&&(t._changed=!1),i.preventDefault()},escape:function(){t.editEnd(null),t._changed&&(t._changed=!1)},enter:function(e){var i;if(t._changed)t._changed=!1;else{var n=t.selection.getItem(),o=n instanceof Array?null===(i=n[0])||void 0===i?void 0:i.id:null==n?void 0:n.id;t.config.editable&&!t._edited&&(n&&o===t._focus||!n)?t.editItem(t._focus):t.selection.add(t._focus),t.events.fire(v.ListEvents.click,[t._focus,e])}},"shift+enter":function(e){t.selection.add(t._focus,!1,!0),t.events.fire(v.ListEvents.click,[t._focus,e])},"ctrl+enter":function(e){t.selection.add(t._focus,!0,!1),t.events.fire(v.ListEvents.click,[t._focus,e])},"ctrl+a":function(e){t.config.multiselection&&(e.preventDefault(),t.selection.remove(),t.data.map((function(t){return t.id})).forEach((function(e){"ctrlClick"===t.config.multiselection?t.selection.add(e,!0):t.selection.add(e)})))}}},i.prototype._initHotKey=function(){var t=this._getHotkeys();for(var e in t)this.keyManager.addHotKey(e,t[e]);for(var e in this.config.hotkeys)this.keyManager.addHotKey(e,this.config.hotkeys[e])},i.prototype.getItemAriaAttrs=function(t,e){return r(r({role:"option","aria-selected":e.id===this._focus?"true":"false"},function(t,e){return t.config.dragMode&&!t._edited?{"aria-grabbed":Boolean(e.$dragtarget&&!t._edited).toString()}:{}}(t,e)),function(t){return t.config.editable?{"aria-roledescription":"".concat(t._edited?"Press Enter to stop editing":"Double click to edit content")}:{}}(t))},i.prototype._getListAriaAttrs=function(t,e){return{role:"listbox","aria-label":"Listbox ".concat(t.title||"",", count of options = ").concat(e,".").concat(t.editable?" Content is editable.":""),"aria-multiselectable":t.selection&&t.multiselection?"true":"false","aria-readonly":t.editable?"false":"true"}},i}(h.View);e.List=_},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Selection=void 0;var n=i(28),o=i(7),r=i(1),s=function(){function t(t,e,i){var n=this;if(this.config=t,this.events=i,this._data=e,this._selected=[],this._data.events.on(o.DataEvents.removeAll,(function(){n._selected=[]})),"string"==typeof this.config.multiselection){["click","ctrlClick"].includes(this.config.multiselection)||(this.config.multiselection=!1)}this._data.events.on(o.DataEvents.beforeRemove,(function(t){if(n._nextSelection=null,1===n._selected.length){var e=n._data.getIndex(t.id),i=n._data.getLength();if(i>1){var o=i==e-1?e-1:e+1;n._nextSelection=n._data.getId(o)}}})),this._data.events.on(o.DataEvents.afterRemove,(function(t){var e=n._selected.indexOf(t.id);-1!==e&&n._selected.splice(e,1),(0,r.isId)(n._nextSelection)&&(n.add(n._nextSelection),n._nextSelection=null)}))}return t.prototype.enable=function(){this.config.disabled=!1},t.prototype.disable=function(){this.remove(),this.config.disabled=!0},t.prototype.getId=function(){return this.config.multiselection?this._selected:this._selected[0]},t.prototype.getItem=function(){var t=this;return this.config.multiselection?this._selected.map((function(e){return t._data.getItem(e)})):this._selected.length?this._data.getItem(this._selected[0]):null},t.prototype.contains=function(t){return(0,r.isId)(t)?this._selected.includes(t):this._selected.length>0},t.prototype.remove=function(t,e){var i=this;(0,r.isId)(t)?this._unselectItem(t,e):(this._selected.forEach((function(t){return i._unselectItem(t,e)})),this._selected=[])},t.prototype.add=function(t,e,i,n){var o=this;if(!this.config.disabled)if(void 0!==t){var r=this.config.multiselection;i&&this._selected.length&&r?this._addMulti(t,n):this._addSingle(t,r&&("ctrlClick"!==r||e),n)}else{var s=this._data.serialize().filter((function(t){var e=t.id;return!o._selected.includes(e)}));s.forEach((function(t){var e=t.id;o._addMulti(e,n)}))}},t.prototype.destructor=function(){var t=this;this._selected.forEach((function(e){return t._unselectItem(e,!0)}))},t.prototype._addMulti=function(t,e){var i,n=this._selected[this._selected.length-1],o=this._data.getIndex(n),r=this._data.getIndex(t);for(o>r&&(o=(i=[r,o])[0],r=i[1]);o<=r;o++){var s=this._data.getId(o);this._selectItem(s,e)}},t.prototype._addSingle=function(t,e,i){var n=this;e||this._selected.forEach((function(e){e!=t&&n._unselectItem(e)})),e&&this._selected.includes(t)?this._unselectItem(t,i):this._selectItem(t,i)},t.prototype._selectItem=function(t,e){var i=this._data.getItem(t);i&&!this._data.getMeta(i,"selected")&&(e||this.events.fire(n.SelectionEvents.beforeSelect,[t]))&&(this._selected.push(t),this._data.setMeta(i,"selected",!0),e||this.events.fire(n.SelectionEvents.afterSelect,[t]))},t.prototype._unselectItem=function(t,e){(e||this.events.fire(n.SelectionEvents.beforeUnSelect,[t]))&&(this._selected=this._selected.filter((function(e){return e!==t})),this._data.setMeta(this._data.getItem(t),"selected",!1),e||this.events.fire(n.SelectionEvents.afterUnSelect,[t]))},t}();e.Selection=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.palette=e.grayShades=void 0,e.grayShades=["#000000","#4C4C4C","#666666","#808080","#999999","#B3B3B3","#CCCCCC","#E6E6E6","#F2F2F2","#FFFFFF"],e.palette=[["#D4DAE4","#B0B8CD","#949DB1","#727A8C","#5E6677","#3F4757","#1D2534"],["#FFCDD2","#FE9998","#F35C4E","#E94633","#D73C2D","#CA3626","#BB2B1A"],["#F9E6AD","#F4D679","#EDB90F","#EAA100","#EA8F00","#EA7E00","#EA5D00"],["#BCE4CE","#90D2AF","#33B579","#36955F","#247346","#1D5B38","#17492D"],["#BDF0E9","#92E7DC","#02D7C5","#11B3A5","#018B80","#026B60","#024F43"],["#B3E5FC","#81D4FA","#29B6F6","#039BE5","#0288D1","#0277BD","#01579B"],["#AEC1FF","#88A3F9","#5874CD","#2349AE","#163FA2","#083596","#002381"],["#C5C0DA","#9F97C1","#7E6BAD","#584A8F","#4F4083","#473776","#3A265F"],["#D6BDCC","#C492AC","#A9537C","#963A64","#81355A","#6E3051","#4C2640"],["#D2C5C1","#B4A09A","#826358","#624339","#5D4037","#4E342E","#3E2723"]]},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.ColorpickerEvents=void 0,function(t){t.beforeChange="beforeChange",t.change="change",t.apply="apply",t.cancelClick="cancelClick",t.modeChange="modeChange",t.selectClick="selectClick",t.colorChange="colorChange",t.viewChange="viewChange"}(n||(e.ColorpickerEvents=n={}))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Chart=void 0;var s=i(0),a=i(2),l=i(9),c=i(7),u=i(167),d=i(78),h=i(25),f=i(170),p=i(80),v=i(85),g=i(5),_=i(184),m=i(1),y=i(185),b=function(t){function e(e,i){void 0===i&&(i={});var n,o=this;(o=t.call(this,null,i)||this)._width=0,o._height=0,o._left=0,o._top=0;var l={};i.maxPoints&&(l.approximate={value:null===(n=i.series)||void 0===n?void 0:n.map((function(t){return t.value})),maxNum:i.maxPoints}),Array.isArray(i.data)?(o.events=new a.EventSystem(o),o.data="treeMap"===i.type?new c.TreeCollection(l,o.events):new c.DataCollection(l,o.events),o.data.parse(i.data)):i.data&&i.data.events?(o.data=i.data,o.events=o.data.events,o.events.context=o):(o.events=new a.EventSystem(o),o.data="treeMap"===i.type?new c.TreeCollection(l,o.events):new c.DataCollection(l,o.events)),o._globalHTMLHandlers={onmousemove:function(t){var e=o._layers.getSizes(),i=e.left,n=e.top,r=e.bottom,s=e.right,a=t.pageX,l=t.pageY,c=o.getRootView().node.el.getBoundingClientRect();o._left=c.left+window.pageXOffset,o._top=c.top+window.pageYOffset;var u=a-i-o._left,d=l-n-o._top;u>=0&&u<=o._width-s-i&&d>=0&&d<=o._height-r-n?o.events.fire(h.ChartEvents.chartMouseMove,[u,d,o._left+i,o._top+n]):o.events.fire(h.ChartEvents.chartMouseLeave)},onmouseleave:function(){return o.events.fire(h.ChartEvents.chartMouseLeave)}},o._layers=new u.ComposeLayer,o.setConfig(i),o._initEvents(),o._tooltip=new _.Tooltip(o);var d=(0,s.create)({render:function(){if(!o.data.getLength())return(0,s.el)("div");var t=function(t){var e=o._scales,i=t.series,n=t.type;n||(n=i&&i.length&&i[0]&&i[0].type||"");var r="".concat(n||""," chart."),s=function(t){return t._isXDirection?"X":"Y"},a=function(t){return t.title||t.text||t.value||""},l=function(t){return t.steps&&t.steps.length?t.steps[0]:t.min||0},c=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 i=e[t],n=i._axis||i.config;if("radial"===t){var o=i._data._order;r+=" X scale ".concat(a(i.config),": ").concat(t," axis from ").concat(u(i.config.value,o[0])," to ").concat(u(i.config.value,o[o.length-1]),"."),r+=" ".concat(s(i)," scale: axis from ").concat(l(n)," to ").concat(c(n),".")}else r+=" ".concat(s(i)," scale ").concat(a(i.config),": ").concat(t," axis from ").concat(l(n)," to ").concat(c(n),".")})),i&&i.length&&(r+=" Series:",i.forEach((function(t,e){r+=" ".concat("pie"===n||"pie3D"===n||"donut"===n?t.text:t.value),r+=e===i.length-1?".":","}))),r},e=[(0,s.resizer)((function(t,e){o._width=t,o._height=e||400;var i=o.getRootView();if(i&&i.node&&i.node.el){var n=i.node.el.getBoundingClientRect();o._left=n.left+window.pageXOffset,o._top=n.top+window.pageYOffset}o.events.fire(h.ChartEvents.resize,[o._width,o._height]),o.paint(),!document.querySelector(".dhx_widget.dhx_chart")&&o._tooltip&&o._tooltip.destructor()}))];return o._width&&o._height&&e.push(o._layers.toVDOM(o._width,o._height)),(0,s.el)(".dhx_widget.dhx_chart",r(r({class:i.css?i.css:"",onmousemove:o._globalHTMLHandlers.onmousemove,onmouseleave:o._globalHTMLHandlers.onmouseleave},function(e){return{"aria-label":t(e)}}(i)),{tabIndex:0}),e)},hooks:{didMount:function(t){t&&t.node&&t.node.parent&&t.node.parent.el&&(o._width=t.node.parent.el.offsetWidth,o._height=t.node.parent.el.offsetHeight||400,o.paint())}}});return o.mount(e,d),o.export=new y.Exporter("chart",o),o}return o(e,t),e.prototype.getSeries=function(t){return this._series[t]},e.prototype.eachSeries=function(t){var e=[];for(var i in this._series)e.push(t.call(this,this._series[i]));return e},e.prototype.destructor=function(){this._tooltip.destructor(),this.events.clear(),this.unmount()},e.prototype.setConfig=function(t){var e,i,n=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 o in t.scales){var s=r({},t.scales[o]);void 0!==t.scales[o].min&&(i=t.scales[o].min),s.type=s.type||this._detectScaleType(s,o),t.scales.radial&&"radial"!==o&&(s.hidden=!0),this._setScale(s,o)}var a=new v.default;if(this._layers.add(a),null===(e=t.series)||void 0===e||e.forEach((function(e,o){var s,l,c,u;void 0!==e.baseLine&&e.baseLine<i&&(e.baseLine=void 0);var d=r({},e);switch(d.type=d.type||t.type,d.type){case"bar":case"xbar":case"area":case"splineArea":d.color||(d.color=d.fill||(0,g.getDefaultColor)(o)),d.fill||(d.fill=d.color||(0,g.getDefaultColor)(o));break;case"treeMap":d.legendType=(null===(s=t.legend)||void 0===s?void 0:s.type)||"groupName",null===(c=null===(l=t.legend)||void 0===l?void 0:l.treeSeries)||void 0===c||c.map((function(t,e){var i,n;t.active=null===(i=t.active)||void 0===i||i,t.id=null!==(n=t.id)&&void 0!==n?n:(0,m.uid)(),t.color||(t.color=(0,g.getDefaultColor)(e,"range"===d.legendType))})),d.treeSeries=null===(u=t.legend)||void 0===u?void 0:u.treeSeries;break;case"scatter":d.pointColor||(d.pointColor=d.color||(0,g.getDefaultColor)(o))}var h=p.default[d.type];(d.barWidth||n.config.barWidth)&&(d.barWidth=d.barWidth||n.config.barWidth);var f=new h(n.data,d,n.events),v=(0,g.getScales)(t.scales);(v.length>1&&"radial"!==v[0]||"radial"===v[0]?v:["bottom","left"]).forEach((function(t){var e=n._scales[t];e&&(f.addScale(t,e),d.stacked?e.add(a):e.add(f))})),n._series[f.id]=f,d.stacked?a.add(f):n._layers.add(f)})),t.legend){var l=r({},t.legend);l.series&&(l.$seriesInfo=l.series.map((function(t){return n._series[t]})));var c=new d.Legend(this.data,l,this.events);this._layers.add(c)}this.paint()},e.prototype._setScale=function(t,e){if(t.type){var i=new f.default[t.type](this.data,t,e);"radial"!==i.config.type&&this._layers.add(i.scaleGrid()),this._layers.add(i),this._scales[e]=i}},e.prototype._detectScaleType=function(t,e){return"radial"===e?e:t.text?"text":"numeric"},e.prototype._initEvents=function(){var t=this;this.events.on(h.ChartEvents.toggleSeries,(function(e,i){if("treeMap"===t.config.type)Object.values(t._series)[0].toggle(e),t.paint();else if(i){var n=t._series[Object.keys(t._series)[0]];n&&(n.toggle(e),t.paint())}else t._series[e]&&(t._series[e].toggle(),t.paint())}),this),this.events.on(c.DataEvents.change,(function(){return t.paint()})),this.events.on(c.DataEvents.filter,(function(){return t.paint()}))},e}(l.View);e.Chart=b},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Legend=void 0;var o=i(7),r=i(25),s=i(0),a=i(5),l=i(169),c=i(1);var u=function(){function t(t,e,i){var s=this;this._data=t,this._events=i;this.config=n(n({},{form:"rect",itemPadding:20,halign:"right",valign:"top",direction:"row",type:"groupName"}),e),this.config.margin=e.margin||function(t,e,i,n){switch(e){case"middle":switch(t){case"right":return i?20:60;case"left":return 120;case"center":throw new Error("cant place legend on center, middle")}case"top":return 20;case"bottom":return i||"line"===n?20:60}}(this.config.halign,this.config.valign,(0,o.isTreeCollection)(this._data),this.config.form),this._handlers={onclick:function(t,e){return s._events.fire(r.ChartEvents.toggleSeries,[t,e])},onkeyup:function(t,e,i){i.preventDefault(),"Enter"!==i.key&&" "!==i.key||s._events.fire(r.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 i,o,r=this,c=this._getData(),u=this.config;u.$sizes={width:0,height:0};var d=(0,a.getFontStyle)("legend-text"),h=10,f=u.margin,p=u.itemPadding,v=[],g="middle"===u.valign,_=0,m=0,y=0,b=0;switch(c.forEach((function(e,i){if(!g&&"row"===u.direction){var o=(0,a.getTextWidth)(e.text,d);_+o+15>t&&0!==i&&(_=0,m+=p+2)}v.push((0,s.sv)("g",n(n({transform:"translate(".concat(_,",").concat(m,")"),onclick:[r._handlers.onclick,e.id,r.config.values],onkeyup:[r._handlers.onkeyup,e.id,r.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,s.sv)("text",{x:e.maxValue?0:10,y:0,class:"start-text legend-text"},[(0,a.verticalCenteredText)(e.text)]),[(0,l.legendShape)(u.form,e),!isNaN(e.maxValue)&&!isNaN(e.minValue)&&(0,l.legendTicks)(u.form,e)]]));var c="line"!==u.form?15+(0,a.getTextWidth)(e.text,d):0;g||"row"!==u.direction?(_=0,y=y>c?y:c,b=b>(m+=p+2)?b:m):y=y>(_+=c+p)?y:_})),u.valign){case"top":o="row"===u.direction?-f-m-5-("line"===u.form?15:0):"center"===u.halign?5-b:f+5;break;case"middle":o=(e-b)/2+p/2;break;case"bottom":o="row"===u.direction?e+("line"!==u.form?f:10):e+h-("center"===u.halign?0:f+b)}switch(u.halign){case"left":i=g?-y:5-("row"===u.direction?0:u.size||200);break;case"center":i=(t-y-("line"===u.form?500:0))/2;break;case"right":i=g?t+f+5:"row"===u.direction?t-y+p+("line"===u.form?-500-f:5):t+f+5}return(0,s.sv)("g",{transform:"translate(".concat(i>0?i:0,", ").concat(o,")"),"aria-label":"Legend",tabindex:0},v)},t.prototype._getData=function(){var t=[];if("scale"===this.config.type){var e=this.config.values,i=e.color,n=e.positiveColor,o=e.negativeColor,r=e.text,s=e.minValue,l=e.maxValue,u=e.tick,d=e.majorTick,h=e.step,f=e.tickTemplate,p=this.setCriticals(),v=p[0],g=p[1];t.push({id:(0,c.uid)(),text:r,alpha:1,fill:i,minValue:null!=s?s:v,maxValue:null!=l?l:g,positiveColor:n,negativeColor:o,active:!0,tick:u,majorTick:d,step:h,tickTemplate:f})}else if(this.config.values){var _=(0,a.locator)(this.config.values.text),m=(0,a.locator)(this.config.values.color);this._data.map((function(e,i){t.push({id:e.id,text:_(e).toString(),alpha:1,fill:m(e).toString()||(0,a.getDefaultColor)(i),active:!e.$hidden})}))}else if(this.config.treeSeries){var y=this.config.treeSeries;if("groupName"===this.config.type)y.forEach((function(e){t.push({id:e.id,text:e.name||e.id,alpha:1,fill:e.color,active:e.active})}));else{var b=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};y.forEach((function(e){t.push({id:e.id,text:b(e),alpha:1,fill:e.color,active:e.active})}))}}else for(var w=0,x=y=this.config.$seriesInfo;w<x.length;w++){var E=x[w],C=E.config,S=C.fill,k=(i=C.color,C.id),O=C.alpha,P=C.active,I=C.label,D=C.value,M=S&&i;r=I&&"function"==typeof I?I(E.config):I||D;t.push({id:k,text:r,fill:S||i,color:M&&i,active:P,alpha:O})}return t},t.prototype.setCriticals=function(){var t,e,i=this.config.values.value;return this._data.forEach((function(n){n[i]&&(t=!t||n[i]<t?n[i]:t,e=!e||n[i]>e?n[i]: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,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.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 o=i(1),r=i(0),s=i(5),a=function(t){return t.toString()},l=function(t,e){return{role:"graphics-object","aria-label":"".concat(t,"-axis").concat(e?", "+e:"")}};e.bottom=function(t,e,i,c){var u=e.title,d=e.textPadding,h=e.scalePadding,f=e.textTemplate,p=e.showText,v=e.scaleRotate,g=f||a,_=[],m=0;if(p){m=d;var y=v&&!isNaN(v),b=c+d;_=t.map((function(t){var e=t[0],i=y?"rotate(".concat(v," ").concat(e," ").concat(b,")"):"",n=["scale-text","top-text"];if(y){var o=v%360;n.push((0,s.getClassesForRotateScale)("bottom",o))}return(0,r.sv)("text",{x:e,y:b,class:n.join(" "),transform:i},[(0,s.verticalCenteredText)(g(t[1]))])}))}var w=(0,o.uid)(),x=null,E=(0,r.sv)("path",{class:"main-scale",d:"M0 ".concat(c," H").concat(i-.5),id:w});return u&&(x=(0,r.sv)("text",{dx:i/2,dy:h+m},[(0,r.sv)("textPath",{href:"#".concat(w),class:"scale-title "},u)])),(0,r.sv)("g",n({},l("x",u||e.text)),[E,x].concat(_))},e.bottomGrid=function(t,e,i,n){for(var o=n.dashed,s=n.grid,a=n.targetLine,l=n.targetValue,c=t.length,u=[],d="grid-line ".concat(o?"dash-line":""," ").concat(s?"":"hidden-line"),h=0;h<c;h++)if(0!==h||0!==t[h][0]||n.hidden)if(h!==a){var f="M".concat(t[h][0]," 0 V ").concat(i),p=(0,r.sv)("path",{d:f,class:d,_ref:"line"+Math.round(t[h][0])});if(u.push(p),h===c-1&&t[h][0]!==e){var v="M".concat(e," 0 V ").concat(i),g=(0,r.sv)("path",{d:v,class:d});u.push(g)}}else{var _="M".concat(t[h][0]," 0 V ").concat(i),m=(0,r.sv)("path",{d:_,class:"".concat(d," spec-grid-line")});u.push(m)}if(l){f="M".concat(l*e," 0 V ").concat(i),p=(0,r.sv)("path",{d:f,class:"".concat(d," spec-grid-line")});u.push(p)}return(0,r.sv)("g",u)},e.top=function(t,e,i,c){var u=e.title,d=e.textPadding,h=e.scalePadding,f=e.textTemplate,p=e.showText,v=e.scaleRotate,g=f||a,_=[],m=0;if(p){m=d;var y=v&&!isNaN(v),b=-d;_=t.map((function(t){var e=["scale-text"],i=t[0],n=y?"rotate(".concat(v," ").concat(i," ").concat(b,")"):"";if(y){var o=v%360;e.push((0,s.getClassesForRotateScale)("top",o))}return(0,r.sv)("text",{x:i,y:b,class:e.join(" "),transform:n},[(0,s.verticalCenteredText)(g(t[1]))])}))}var w=(0,o.uid)(),x=(0,r.sv)("path",{d:"M0 0 H".concat(i),class:"main-scale",id:w}),E=null;return u&&(E=(0,r.sv)("text",{dx:i/2,dy:-h-m},[(0,r.sv)("textPath",{href:"#".concat(w),class:"scale-title"},u)])),(0,r.sv)("g",n({},l("x",u||e.text)),[x,E].concat(_))},e.topGrid=function(t,e,i,n){for(var o=n.dashed,s=n.grid,a=n.targetLine,l=t.length,c=[],u="grid-line ".concat(o?"dash-line":""," ").concat(s?"":"hidden-line"),d=0;d<l;d++)if(0!==d||0!==t[d][0]||n.hidden)if(d!==a){var h="M".concat(t[d][0]," 0 V ").concat(i),f=(0,r.sv)("path",{d:h,class:u,_ref:"line"+Math.round(t[d][0])});if(c.push(f),d===l-1&&0!==t[d][0]){var p="M0 0 V ".concat(i),v=(0,r.sv)("path",{d:p,class:u});c.push(v)}}else{var g="M".concat(t[d][0]," 0 V ").concat(i),_=(0,r.sv)("path",{d:g,class:"".concat(u," spec-grid-line")});c.push(_)}return(0,r.sv)("g",c)},e.left=function(t,e,i,c){var u=e.title,d=e.textPadding,h=e.scalePadding,f=e.textTemplate,p=e.showText,v=e.scaleRotate,g=f||a,_=[],m=0;if(p){var y=(0,s.getFontStyle)("scale-text"),b=0,w=v&&!isNaN(v);_=t.map((function(t){var e=t[0],i=-d,n=w?"rotate(".concat(v," ").concat(i," ").concat(e,")"):"",o=["scale-text"],a=g(t[1]);if(u){var l=(0,s.getTextWidth)(a,y);b<l&&(b=l)}if(w){var c=v%360;o.push((0,s.getClassesForRotateScale)("left",c))}else o.push("end-text");return(0,r.sv)("text",{x:i,y:e,class:o.join(" "),transform:n},[(0,s.verticalCenteredText)(a)])})),m=b+d}var x=(0,o.uid)(),E=(0,r.sv)("path",{class:"main-scale",d:"M0 ".concat(c," V 0.5"),id:x,_ref:t.length?"line0":null}),C=null;return u&&(C=(0,r.sv)("text",{dx:c/2,dy:-h-m},[(0,r.sv)("textPath",{href:"#".concat(x),class:"scale-title"},u)])),(0,r.sv)("g",n({},l("y",u||e.text)),[E,C].concat(_))},e.leftGrid=function(t,e,i,n){for(var o=n.dashed,s=n.grid,a=n.targetLine,l=n.targetValue,c=t.length,u=[],d="grid-line ".concat(o?"dash-line":""),h=0;h<c;h++)if(0!==h||t[h][0]!==i||n.hidden)if(a!==h){if(s){v="M0 ".concat(t[h][0]," H ").concat(e),g=(0,r.sv)("path",{d:v,class:d});if(u.push(g),h===c-1&&t[h][0]!==e){var f="M0 0 H".concat(e),p=(0,r.sv)("path",{d:f,class:d});u.push(p)}}}else{var v="M0 ".concat(t[h][0]," H ").concat(e),g=(0,r.sv)("path",{d:v,class:"".concat(d," spec-grid-line")});u.push(g)}if(l){v="M0 ".concat(l*i," H ").concat(e),g=(0,r.sv)("path",{d:v,class:"".concat(d," spec-grid-line")});u.push(g)}return(0,r.sv)("g",u)},e.right=function(t,e,i,c){var u=e.title,d=e.textPadding,h=e.scalePadding,f=e.textTemplate,p=e.showText,v=e.scaleRotate,g=f||a,_=[],m=0;if(p){var y=(0,s.getFontStyle)("scale-text"),b=0,w=v&&!isNaN(v);_=t.map((function(t){var e=g(t[1]),n=t[0],o=i+d,a=w?"rotate(".concat(v," ").concat(o," ").concat(n,")"):"",l=["scale-text"];if(u){var c=(0,s.getTextWidth)(e,y);b<c&&(b=c)}if(w){var h=v%360;l.push((0,s.getClassesForRotateScale)("right",h))}else l.push("start-text");return(0,r.sv)("text",{x:o,y:n,class:l.join(" "),transform:a},[(0,s.verticalCenteredText)(e)])})),m=d+b}var x=(0,o.uid)(),E=(0,r.sv)("path",{d:"M".concat(i," ").concat(c," V 0"),class:"main-scale",id:x,_ref:t.length?"line0":null}),C=null;return u&&(C=(0,r.sv)("text",{dx:c/2,dy:h+m},[(0,r.sv)("textPath",{href:"#".concat(x),class:"scale-title"},u)])),(0,r.sv)("g",n({},l("y",u||e.text)),[E,C].concat(_))},e.rightGrid=function(t,e,i,n){for(var o=n.dashed,s=n.grid,a=n.targetLine,l=t.length,c=[],u="grid-line ".concat(o?"dash-line":""),d=0;d<l;d++)if(0!==d||t[d][0]!==i||n.hidden)if(a!==d){if(s){p="M0 ".concat(t[d][0]," H ").concat(e),v=(0,r.sv)("path",{d:p,class:u});if(c.push(v),d===l-1&&t[d][0]!==e){var h="M0 0 H".concat(e),f=(0,r.sv)("path",{d:h,class:u});c.push(f)}}}else{var p="M0 ".concat(t[d][0]," H ").concat(e),v=(0,r.sv)("path",{d:p,class:"".concat(u," spec-grid-line")});c.push(v)}return(0,r.sv)("g",c)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(81),o=i(83),r=i(174),s=i(175),a=i(56),l=i(176),c=i(177),u=i(178),d=i(179),h=i(180),f=i(181),p=i(182),v=i(183),g={line:a.default,spline:h.default,area:n.default,splineArea:f.default,scatter:d.default,pie:l.default,pie3D:c.default,donut:s.default,radar:u.default,bar:o.default,xbar:r.default,treeMap:p.default,calendarHeatMap:v.default};e.default=g},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),a=i(5),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.paint=function(e,i,n){t.prototype.paint.call(this,e,i);var o,a=[];return this._form(e,i,a,n),this._markers(a),(0,s.sv)("g",r(r({class:"seria",_key:this.id},(o=this.config,{"aria-label":"chart ".concat(o.value||"")})),{tabindex:0}),a)},e.prototype.paintformAndMarkers=function(e,i,n){t.prototype.paint.call(this,e,i);var o=[],r=[];return this._form(e,i,o,n),this._markers(r),[(0,s.sv)("g",{class:"seria",_key:this.id},o),(0,s.sv)("g",{class:"seria_markers",_key:this.id+"_markers"},r)]},e.prototype._markers=function(t){var e=this;if(this.config.pointType){var i=this.config.pointColor||this.config.color,n=this._getPointType(this.config.pointType,i);t.push.apply(t,this._points.map((function(t){return n(t[0],t[1],(0,a.calcPointRef)(t[2],e.id))})))}},e.prototype._form=function(t,e,i,n){var o="chart ".concat(this.config.type," ").concat(this.config.css||""," ").concat(this.config.dashed?"dash-line":""),r=this.config,a=r.id,l=r.fill,c=r.alpha,u=r.color,d=r.strokeWidth,h=this._points,f=h[h.length-1],p="";if(n){for(var v=n.length-1;v>=0;v--){var g=n[v];p+=v===h.length-1?"M".concat(g[0]," ").concat(g[1]," "):"L".concat(g[0]," ").concat(g[1]," ")}p+=h.map((function(t,e){return e?"L ".concat(t[0]," ").concat(t[1]):"V ".concat(t[1])})).join(" ")+"Z"}else p+=h.map((function(t,i){return i?"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(d){var _=h.length-1,m=function(t){return t===_?-.5:t?0:.5},y=h.map((function(t,e){return e?"L".concat(t[0]+m(e)," ").concat(t[1]):"M0 ".concat(t[1]," L0 ").concat(t[1]+m(e)," L").concat(t[0]+m(e)," ").concat(t[1])})).join(" ")+"L".concat(t," ").concat(f[1]),b=(0,s.sv)("path",{d:y,"stroke-width":d,stroke:u,fill:"none",class:o});i.push(b)}var w=(0,s.sv)("path",{id:"seria"+a,d:p,class:o,fill:l,_ref:a,"fill-opacity":c,stroke:"none"});return i.push(w),i},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=r(r({},e),t);var i=this.config.pointType,n=this.config.pointColor||this.config.color;i&&(this._drawPointType=this._getPointType(i,n))},e}(i(54).default);e.default=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShadeHTMLHelper=e.getShadeHelper=e.getHTMLHelper=e.getHelper=void 0;var n=i(0),o=i(5),r={circle:function(t,e,i,o,r,s){var a={_ref:s,cx:o,cy:r,r:4,class:"figure point-circle",fill:e,stroke:t,"stroke-width":2};return(0,n.sv)("circle",a)},rect:function(t,e,i,o,r,s){var a={_ref:s,x:o-4,y:r-4,width:8,height:8,class:"figure point-rect",fill:e,stroke:t,"stroke-width":2};return(0,n.sv)("rect",a)},rhombus:function(t,e,i,o,r,s){var a={_ref:s,points:"".concat(o-5,",").concat(r," ").concat(o,",").concat(r+5," ").concat(o+5,",").concat(r," ").concat(o,",").concat(r-5),class:"figure point-rhombus",fill:e,stroke:t,"stroke-width":2};return(0,n.sv)("polygon",a)},triangle:function(t,e,i,o,r,s){var a={_ref:s,points:"".concat(o,",").concat(r-5," ").concat(o+5,",").concat(r+5," ").concat(o-5,",").concat(r+5),class:"figure point-triangle",fill:e,stroke:t,"stroke-width":2};return(0,n.sv)("polygon",a)},simpleCircle:function(t,e,i,o,r,s){var a={_ref:s,cx:o,cy:r,r:3,class:"figure point-simple-circle",fill:t};return(0,n.sv)("circle",a)},simpleRect:function(t,e,i,o,r,s){var a={_ref:s,x:o-3,y:r-3,width:6,height:6,class:"figure point-simple-rect",fill:t};return(0,n.sv)("rect",a)},empty:function(){return null}},s={circle:function(t,e,i,n,o,r){return'<circle class="figure point-circle" _ref="'.concat(r,'" cx="').concat(n,'" cy="').concat(o,'" r="4" fill="').concat(e,'" stroke="').concat(t,'" stroke-width="2"/>')},rect:function(t,e,i,n,o,r){return'<rect _ref="'.concat(r,'" x="').concat(n-4,'" y="').concat(o-4,'" width="8" height="8" class="figure point-rect" fill="').concat(e,'" stroke="').concat(t,'" stroke-width="2"/>')},rhombus:function(t,e,i,n,o,r){return'<polygon _ref="'.concat(r,'" points="').concat(n-5,",").concat(o," ").concat(n,",").concat(o+5," ").concat(n+5,",").concat(o," ").concat(n,",").concat(o-5,'" class="figure point-rhombus" fill="').concat(e,'" stroke="').concat(t,'" stroke-width="2"/>')},triangle:function(t,e,i,n,o,r){return'<polygon _ref="'.concat(r,'" points="').concat(n,",").concat(o-5," ").concat(n+5,",").concat(o+5," ").concat(n-5,",").concat(o+5,'" class="figure point-triangle" fill="').concat(e,'" stroke="').concat(t,'" stroke-width="2"/>')},simpleCircle:function(t,e,i,n,o,r){return'<circle _ref="'.concat(r,'" cx="').concat(n,'" cy="').concat(o,'" r="3" class="figure point-simple-circle" fill="').concat(t,'"/>')},simpleRect:function(t,e,i,n,o,r){return'<rect _ref="id" x="'.concat(n-3,'" y="').concat(o-3,'" width="6" height="6" class="figure point-simple-rect" fill="').concat(t,'"/>')},empty:function(){return null}};function a(t){var e=r[t.toString()];if(!e)throw new Error("unknown point type");return e}function l(t){var e=s[t.toString()];if(!e)throw new Error("unknown point type");return e}e.getHelper=a,e.getHTMLHelper=l,e.getShadeHelper=function(t,e){var i=a(t);e=e||"none";var n=(0,o.getColorShade)(e,.2);return function(t,o,r){return i(e,n,"",t,o,r)}},e.getShadeHTMLHelper=function(t,e){var i=l(t);e=e||"none";var n=(0,o.getColorShade)(e,.2);return function(t,o,r){return i(e,n,"",t,o,r)}}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(1),a=i(0),l=i(5),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._shift=0,e}return o(e,t),e.prototype.addScale=function(e,i){t.prototype.addScale.call(this,e,i),i.addPadding()},e.prototype.seriesShift=function(t){return this._shift=t,this.config.barWidth},e.prototype.paint=function(e,i,n){t.prototype.paint.call(this,e,i);if(!this.config.active)return null;var o=[];this._gradient&&o.push((0,a.sv)("defs",[this._gradient()]));var s,l="chart ".concat(this.config.type," ").concat(this.config.css||""," ").concat(this.config.dashed?"dash-line":""),c=this._getForm(this._points,l,e,i,n);return o=o.concat(c),(0,a.sv)("g",r(r({class:"seria",_key:this.id},(s=this.config,{"aria-label":"chart ".concat(s.value||"")})),{tabindex:0}),o)},e.prototype.getTooltipType=function(t,e,i){return void 0!==this.config.baseLine&&this._baseLinePosition<i?"bot":"top"},e.prototype._getClosestDist=function(t,e,i,n){return this.config.stacked&&e<n?1/0:Math.abs(t-i)},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,i){var n=t[0],o=(e+t[1])/2;return{x:n,y:o,class:"bar-text",transform:i&&!isNaN(i)?"rotate(".concat(i," ").concat(n," ").concat(o,")"):""}},e.prototype._getForm=function(t,e,i,n,o){var s=this,c=function(t,e,i){void 0===i&&(i=0);var n=e[3],o=i,r=e[4];return i>r&&(o=r,r=i),"xbar"===t?"bar y=".concat(n,", x from ").concat(o," to ").concat(r):"bar x=".concat(n,", y from ").concat(o," to ").concat(r)},u=this.config,d=u.baseLine,h=u.fill,f=u.alpha,p=u.showText,v=u.showTextTemplate,g=u.showTextRotate,_=[],m=this._base(n),y=function(t){return o?o[t][1]:m},b=t.map((function(t,i){return(0,a.sv)("path",r(r({_key:"seria"+s.config.id+i,_ref:(0,l.calcPointRef)(t[2],s.config.id),d:s._path(t,y(i)),class:e,fill:h,onclick:[s._handlers.onclick,t[2],s.config.value],onmousemove:[s._handlers.onmousemove,t[2],s.config.id],onmouseleave:[s._handlers.onmouseleave,t[2],s.config.id],"fill-opacity":f},function(t,e,i){return{role:"graphics-symbol","aria-roledescription":"bar","aria-label":c(t,e,i)}}(s.config.type,t,d)),{tabindex:0}))}));if(_.push.apply(_,b),(p||v||g)&&!1!==p){var w=t.map((function(t,e){var i=s._getText(t);return function(t,e){return Math.abs(y(e)-t[1])>16}(t,e)?(0,a.sv)("text",r(r({},s._text(t,y(e),g)),{"aria-hidden":"true"}),[v?(0,l.verticalCenteredText)(v(i)):(0,l.verticalCenteredText)(i)]):null}));_.push.apply(_,w)}return _},e.prototype._getText=function(t){return t[4].toString()},e.prototype._setDefaults=function(t){this.config=r(r({},{barWidth:30,alpha:1,active:!0,tooltip:!0,pointType:"empty"}),t);var e=this.config.pointType,i=this.config.pointColor||this.config.color;if(e&&(this.config.pointType=e,this._drawPointType=this._getPointType(e,i)),this.config.gradient){var n="gradient"+(0,s.uid)(),o=this.config.gradient(this.config.fill);this._gradient=function(){return(0,l.linearGradient)(o,n)},this.config.fill="url(#".concat(n,")")}},e}(i(54).default);e.default=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var i,n=t.length;if(n<3)i=t;else{var o=t[0],r=t[0],s=t[1],a=t[2];i=[t[0].slice(0,2)];for(var l=1;l<n;l++)i.push([(-o[0]+6*r[0]+s[0])/6,(-o[1]+6*r[1]+s[1])/6,(r[0]+6*s[0]-a[0])/6,(r[1]+6*s[1]-a[1])/6,s[0],s[1]]),o=r,r=s,s=a,a=t[l+2]||a}var c="";for(l=0;l<i.length;l++){var u=i[l],d=u.length;l?c+=d>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===d?"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]):(c+=e?"L":"M",c+=5===d?"".concat(u[0]," ").concat(u[1]):"".concat(u[d-2]," ").concat(u[d-1]))}return c}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),o=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 i=e.dataReady(t);return!!i.length&&(t=i,!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,i){var o=[],r=[];return this._toPaint.forEach((function(n){if(n.paintformAndMarkers){var s=n.paintformAndMarkers(t,e,i),a=s[0],l=s[1];o.push(a),r.push(l)}else{a=n.paint(t,e,i);o.push(a)}i=n.getPoints()})),(0,n.sv)("g",o.concat(r))},t}();e.default=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Combobox=e.$template=void 0;var s=i(1),a=i(0),l=i(2),c=i(3),u=i(187),d=i(9),h=i(7),f=i(11),p=i(37),v=i(13),g=i(188),_=i(57),m=i(28),y=i(87),b=i(88);function w(t,e){return"function"==typeof e?e(t):t+" "+_.default.selectedItems}e.$template=function(t){return t.icon?(0,a.el)("div.dhx_combobox-options-wrapper",[(0,a.el)("span",{class:"".concat(t.icon," dhx_combobox-options__icon")}),(0,a.el)("span",{class:"dhx_combobox-options__value"},t.value)]):t.src?(0,a.el)("div.dhx_combobox-options-wrapper",[(0,a.el)("img",{class:"dhx_combobox-options__image",alt:t.value,src:t.src}),(0,a.el)("span",{class:"dhx_combobox-options__value"},t.value)]):(0,a.el)("span",{class:"dhx_combobox-options__value"},t.value)};var x=function(t){function i(e,i){var n=t.call(this,e,(0,s.extend)({listHeight:224,disabled:!1,readOnly:!1,newOptions:!1,htmlEnable:!0},i))||this;n.config.itemsCount=n.config.itemsCount||n.config.showItemsCount,n.config.helpMessage=n.config.helpMessage||n.config.help,n.config.cellHeight&&36===n.config.itemHeight&&(n.config.itemHeight=n.config.cellHeight),n.config.labelInline&&(n.config.labelPosition="left"),Array.isArray(n.config.data)?(n.events=new l.EventSystem(n),n.data=new h.DataCollection({}),n.data.parse(n.config.data)):n.config.data?(n.data=n.config.data,n.events=new l.EventSystem(n),n.events.context=n):(n.events=new l.EventSystem(n),n.data=new h.DataCollection({})),n.popup=new v.Popup,n.popup.events.on(v.PopupEvents.afterShow,(function(){n.paint()})),n.popup.events.on(v.PopupEvents.afterHide,(function(){n.config.multiselection&&(n._state.value=""),n.paint()})),n.popup.events.on(v.PopupEvents.beforeHide,(function(t){t&&n._hideOptions()})),(n.config.readonly||n.config.readOnly)&&(n.config.readOnly=n.config.readOnly||n.config.readonly,n._keyListener=new g.KeyListener),n._state={value:"",ignoreNext:!1,canDelete:!1,unselectActive:!1,currentState:b.ComboState.default,creatingState:!1},n._initHandlers(),n._createLayout(),n.config.value&&n.data.getLength()&&(n._setValue(n.config.value,!0),n.config.value=""),n._initEvents();var o=(0,a.create)({render:function(){return n._draw()},hooks:{didRedraw:function(){n.popup.isVisible()&&(n.focus(),n._configurePopup())}}});return n.mount(e,o),n}return o(i,t),i.prototype.focus=function(){if(this.config.disabled)return!1;this.getRootView().refs.input.el.focus()},i.prototype.blur=function(){if(this.config.disabled)return!1;this.getRootView().refs.input.el.blur(),this.popup.hide()},i.prototype.enable=function(){this.config.disabled=!1,this.paint()},i.prototype.disable=function(){this.config.disabled=!0,this.paint()},i.prototype.isDisabled=function(){return this.config.disabled},i.prototype.clear=function(){this.list.selection.remove(),this._state.value="",this._filter(),this.paint()},i.prototype.getValue=function(t){var e=this.list.selection.getId();return t?(0,s.wrapBox)(e):Array.isArray(e)?e.join(","):e},i.prototype.setValue=function(t,e){return this._setValue(t,e)},i.prototype.addOption=function(t,e){if(void 0===e&&(e=!0),t){var i;"string"==typeof t?i=this.data.add({value:t}):"object"==typeof t&&(i=this.data.add(t));var n=this.config.multiselection&&e?r(r([],this.list.selection.getId(),!0),[i],!1):i;this.setValue(n)}},i.prototype.destructor=function(){this.popup&&this.popup.destructor(),this.events&&this.events.clear(),this.list&&this.list.destructor(),this._helper&&this._helper.destructor(),this._layout&&this._layout.destructor(),this._keyListener&&this._keyListener.destructor(),this.config=this.events=this.list=this.popup=null,this._helper=this._keyListener=this._handlers=this._state=this._uid=this._isPopupConfiqureted=null,this.unmount()},i.prototype.setState=function(t){switch(t){case"success":this._state.currentState=b.ComboState.success;break;case"error":this._state.currentState=b.ComboState.error;break;default:this._state.currentState=b.ComboState.default}this.paint()},i.prototype._setValue=function(t,e){var i=this;if(void 0===e&&(e=!1),!this._exsistId(t))return!1;if(this._filter(),this.list.selection.remove(null,e),this.config.multiselection)"string"==typeof t&&(t=t.split(",")),"number"==typeof t&&(t=[t]),t.forEach((function(t){i.list.selection.add(t,!1,!1,e)}));else{var n=(0,s.unwrapBox)(t);this.list.selection.add(n,!1,!1,e);var o=this.data.getItem(n);o&&(this._state.value=this._getItemText(o))}this.paint()},i.prototype._createLayout=function(){var t=this.list=new p.List(null,{$template:e.$template,template:this.config.template,htmlEnable:this.config.htmlEnable,virtual:this.config.virtual,keyNavigation:!0,multiselection:this.config.multiselection,itemHeight:this.config.itemHeight,height:this.config.listHeight,data:this.data,eventHandlers:this.config.eventHandlers}),i=this._layout=new f.Layout(this.popup.getContainer(),{css:"dhx_combobox-options dhx_combobox__options",rows:[{id:"select-unselect-all",hidden:!this.config.multiselection||!this.config.selectAllButton},{id:"list",height:"content"},{id:"not-found",hidden:!0}],on:{click:{".dhx_combobox__action-select-all":this._handlers.selectAll,".dhx_combobox-options__action-create-option":this._handlers.addOption}}});i.getCell("list").attach(t),this.config.multiselection&&this.config.selectAllButton&&i.getCell("select-unselect-all").attach(y.selectAllView)},i.prototype._initHandlers=function(){var t=this;this.config.helpMessage&&(this._helper=new v.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"}),this._helper.attachHTML(this.config.helpMessage)),this._handlers={addOption:function(){return t.addOption(t._state.value)},showHelper:function(e){e.preventDefault(),e.stopPropagation(),t._helper.show(e.target,{mode:"left"===t.config.labelPosition?"bottom":"right",theme:e.target})},selectAll:function(){t._state.unselectActive?(t.list.selection.remove(),t.config.selectAllButton&&(t._layout.getCell("select-unselect-all").attach(y.selectAllView),t._state.unselectActive=!1)):(t.data.filter(),t.list.selection.add(),t.config.selectAllButton&&(t._layout.getCell("select-unselect-all").attach(y.unselectAllView),t._state.unselectActive=!0)),t._changePopupPosition(),t.paint()},onkeydown:function(e){if("Tab"===e.key&&t.popup.isVisible())t._hideOptions();else if(t.popup.isVisible()||e.which!==u.KEY_CODES.DOWN_ARROW||t._showOptions(),t.popup.isVisible()&&(e.which===u.KEY_CODES.RIGHT_ARROW&&t.config.readOnly&&!t.config.multiselection&&(t.list.moveFocus(p.MOVE_DOWN),e.preventDefault()),e.which===u.KEY_CODES.LEFT_ARROW&&t.config.readOnly&&!t.config.multiselection&&(t.list.moveFocus(p.MOVE_UP),e.preventDefault()),e.which===u.KEY_CODES.DOWN_ARROW&&(t.list.moveFocus(p.MOVE_DOWN),e.preventDefault()),e.which===u.KEY_CODES.UP_ARROW&&(t.list.moveFocus(p.MOVE_UP),e.preventDefault()),e.which===u.KEY_CODES.ESC&&t._hideOptions(),e.which===u.KEY_CODES.ENTER)){if(t.data.getLength()){var i=t.list.getFocus(),n=t.config.multiselection?r(r([],t.list.selection.getId(),!0),[i],!1):i;t.setValue(n)}else t.config.newOptions&&t.addOption(t._state.value,!0);t.config.multiselection?t._updatePopup():t.data.getLength()&&t._hideOptions()}t.events.fire(b.ComboboxEvents.keydown,[e,t.list.getFocus()])},onkeyup:function(e){if(t.config.multiselection&&!t.config.itemsCount)if(t._state.ignoreNext)t._state.ignoreNext=!1;else if(e.which===u.KEY_CODES.BACKSPACE&&!t._state.value&&t.config.multiselection&&t.list.selection.getId().length){var i=t.list.selection.getId(),n=i[i.length-1];t.list.selection.remove(n),t._changePopupPosition(),t.paint()}},oninput:function(e){if(!t.config.disabled){var i=e.target.value;t.events.fire(b.ComboboxEvents.input,[i]),t._state.value=i,i.length?t._state.canDelete=!1:(t._state.ignoreNext=!0,t._state.canDelete=!0),t.config.multiselection||t.list.selection.remove(),t._filter(!0),t.popup.isVisible()||t._showOptions(),t._updatePopup()}},oninputclick:function(e){var i;if(!t.config.disabled){if(t.focus(),e.target.classList.contains("dhx_combobox__action-remove")){var n=null===(i=t.data.getItem((0,c.locate)(e)))||void 0===i?void 0:i.id;if(!(0,s.isId)(n))return;return t.list.selection.remove(n),t._changePopupPosition(),void t.paint()}if(e.target.classList.contains("dhx_combobox__action-clear-all"))return t.list.selection.getId().forEach((function(e){return t.list.selection.remove(e)})),t.config.selectAllButton&&t._state.unselectActive&&(t._layout.getCell("select-unselect-all").attach(y.selectAllView),t._state.unselectActive=!1),void t.paint();e.preventDefault(),t.popup.isVisible()?t.focus():t._showOptions()}},toggleIcon:function(){t.focus(),t.popup.isVisible()?t._hideOptions():t._showOptions()},onfocus:function(){var e;return null===(e=t.events)||void 0===e?void 0:e.fire(b.ComboboxEvents.focus,[])},onblur:function(){var e;return null===(e=t.events)||void 0===e?void 0:e.fire(b.ComboboxEvents.blur,[])}}},i.prototype._initEvents=function(){var t=this;this.data.events.on(h.DataEvents.load,(function(){t.config.value&&(t._setValue(t.config.value,!0),t.config.value=""),t._filter()})),this.data.events.on(h.DataEvents.removeAll,(function(){t._state.value="",t.paint()})),this.data.events.on(h.DataEvents.afterAdd,(function(){t.config.multiselection?t._changePopupPosition():t._hideOptions()})),this.list.events.on(p.ListEvents.click,(function(){t.config.multiselection||t._hideOptions(),t._changePopupPosition()})),this.list.selection.events.on(m.SelectionEvents.beforeSelect,(function(e){var i=t.config.multiselection?r(r([],t.getValue(t.config.multiselection),!0),[e],!1):e;return t.events.fire(b.ComboboxEvents.beforeChange,[i])})),this.list.selection.events.on(m.SelectionEvents.afterSelect,(function(){var e=t.getValue(t.config.multiselection);t.events.fire(b.ComboboxEvents.change,[e]),t._updateSelectedItem(e)})),this.list.selection.events.on(m.SelectionEvents.beforeUnSelect,(function(e){var i=t.config.multiselection?t.getValue(t.config.multiselection).filter((function(t){return t!=e})):e;return t.events.fire(b.ComboboxEvents.beforeChange,[i])})),this.list.selection.events.on(m.SelectionEvents.afterUnSelect,(function(){var e=t.config.multiselection,i=t.getValue(e);t.events.fire(b.ComboboxEvents.change,[i]),e&&t._updateSelectedItem(i)})),this.popup.events.on(v.PopupEvents.beforeShow,(function(){if(!t.popup.isVisible()&&!t._isPopupConfiqureted)return t._configurePopup(),!1})),this.popup.events.on(v.PopupEvents.afterShow,(function(){var e;if((null===(e=t.list.scrollView)||void 0===e?void 0:e.config.enable)&&t.list.scrollView.update(),t.config.readOnly){if(t._state.value){var i=t.list.selection.getId();t.list.setFocus(i)}else t.list.resetFocus();t._keyListener.startNewListen((function(e){return t._findBest(e)}))}t.list.scrollTo(t.list.getFocus())}))},i.prototype._showOptions=function(){this.events.fire(b.ComboboxEvents.beforeOpen)&&(this._state.value.length&&(this._state.canDelete=!0),this._filter(),this._configurePopup()&&(this.events.fire(b.ComboboxEvents.open),this.events.fire(b.ComboboxEvents.afterOpen)))},i.prototype._configurePopup=function(){this._isPopupConfiqureted=!0;var t=this.getRootView();return!!(t&&t.refs&&t.refs.holder)&&(this.popup.isVisible()||this._updatePopup(),!0)},i.prototype._hideOptions=function(){var t=this;this.events.fire(b.ComboboxEvents.beforeClose)&&(this.config.readOnly&&this._keyListener.endListen(),this.config.multiselection||this.config.readOnly||this.list.selection.contains()||(this._state.value=""),(0,a.awaitRedraw)().then((function(){return t.popup.isVisible()&&t.popup.hide()})),this.events.fire(b.ComboboxEvents.afterClose),this.events.fire(b.ComboboxEvents.close),this.data.resetFilter(),this._filter(),this.paint())},i.prototype._filter=function(t){var e=this;if(void 0===t&&(t=!1),!this.config.readOnly){this.config.filter?this.data.filter((function(t){return e.config.filter(t,e._state.value)})):t&&this.data.filter((function(t){return(0,s.isExistValue)(e._getItemText(t)||"",e._state.value)}));var i=this.list.selection.getId();!i||this.config.multiselection?this.list.resetFocus():this.list.setFocus(i);var n=this._layout.getCell("list"),o=this._layout.getCell("not-found");if(0===this.data.getLength()){this.config.multiselection&&this.config.selectAllButton&&this._layout.getCell("select-unselect-all").hide(),n.hide(),this._state.creatingState=!0;var r=this.config.newOptions?this._state.value:"";o.height=(0,y.emptyListHeight)(r,this.getRootView().refs.holder.el.offsetWidth),o.attach(y.emptyListView,r),o.show()}else{if(this.config.multiselection&&this.config.selectAllButton&&this._layout.getCell("select-unselect-all").show(),!(this._state.value&&this.data.find((function(t){return t.value===e._state.value})))&&this._state.value)if(this._state.creatingState=this.config.newOptions,n.show(),this.config.newOptions){r=this._state.value;o.height=(0,y.emptyListHeight)(r,this.getRootView().refs.holder.el.offsetWidth),o.attach(y.emptyListView,r),o.show()}else o.hide();else this._state.creatingState=!1,o.isVisible()&&(n.show(),o.hide())}}},i.prototype._findBest=function(t){var e=this,i=this.data.find((function(i){return(0,s.isExistValue)(e._getItemText(i)||"",t)}));i&&this.list.selection.getId()!==i.id&&(this.list.setFocus(i.id),this.paint())},i.prototype._exsistId=function(t){var e=this;return t instanceof Array?t.every((function(t){return e.data.exists(t)})):this.data.exists(t)},i.prototype._draw=function(){var t;if(!this.config)return(0,a.el)("div");var i=this.config,n=i.multiselection,o=i.labelPosition,s=i.hiddenLabel,l=i.required,u=i.disabled,d=i.css,h=i.helpMessage,f=i.readOnly,p=i.placeholder,v=n?null:this.data.getItem(this.list.selection.getId()),g=!this.list.selection.getId()||"object"==typeof this.list.selection.getId()&&0===this.list.selection.getId().length,_=(0,c.getLabelStyle)(this.config),m=!this.config.multiselection&&(this.config.readOnly||!this.popup.isVisible()),y=m&&this.config.htmlEnable&&this.config.template,w=m&&((null==v?void 0:v.icon)||(null==v?void 0:v.src))&&!this.config.template;return(0,a.el)("div",{"data-dhx-widget-id":this._uid,onkeydown:this._handlers.onkeydown,onkeyup:this._handlers.onkeyup,class:"dhx_widget dhx_combobox"+("left"===o?" dhx_combobox--label-inline":"")+(s?" dhx_combobox--sr_only":"")+(l?" dhx_combobox--required":"")+(u?" dhx_combobox--disabled":"")+(d?" ".concat(d):"")},[_?(0,a.el)("label.dhx_label.dhx_combobox__label",{style:_.style,class:h?"dhx_label--with-help":"",onclick:this._handlers.oninputclick},h?[(_.label||l)&&(0,a.el)("span.dhx_label__holder",_.label),(0,a.el)("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper,id:"dhx_label__help_".concat(this._uid)})]:_.label):null,(0,a.el)("div.dhx_combobox-input-box"+(u?".dhx_combobox-input-box--disabled":"")+(f?".dhx_combobox-input-box--readonly":"")+(this._state.currentState===b.ComboState.error?".dhx_combobox-input-box--state_error":"")+(this._state.currentState===b.ComboState.success?".dhx_combobox-input-box--state_success":""),{_ref:"holder"},[(0,a.el)("div.dhx_combobox-input__icon",{onclick:this._handlers.toggleIcon},[(0,a.el)("span"+(this.popup.isVisible()?".dxi.dxi-menu-up":".dxi.dxi-menu-down"))]),(0,a.el)("div.dhx_combobox-input-list-wrapper",{onclick:this._handlers.oninputclick},[(0,a.el)("ul.dhx_combobox-input-list",r(r([],this._drawSelectedItems(),!0),[(0,a.el)("li.dhx_combobox-input-list__item.dhx_combobox-input-list__item--input",[(y||w)&&v?(0,a.el)("div.dhx_combobox-input__template",{".innerHTML":y?this.config.template(v):null},w?[(0,e.$template)(v)]:null):null,(0,a.el)("input.dhx_combobox-input",{oninput:this._handlers.oninput,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,_ref:"input",_key:this._uid,type:"text",placeHolder:g&&p?p:void 0,value:f&&v?this._getItemText(v):this._state.value,readOnly:f||u,required:l,role:"combobox","aria-label":f?"Select value":"Type or select value","aria-describedby":h?"dhx_label__help_".concat(this._uid):null,"aria-expanded":this.popup.isVisible().toString(),"aria-controls":null===(t=this.list.getRootView().node)||void 0===t?void 0:t.attrs.id})])],!1))])])])},i.prototype._drawSelectedItems=function(){var t=this;if(!this.config.multiselection)return[];if(this.config.itemsCount){var e=this.list.selection.getId().length;return e?[(0,a.el)("li.dhx_combobox-input-list__item.dhx_combobox-tag",[(0,a.el)("span.dhx_combobox-tag__value",w(e,this.config.itemsCount)),(0,a.el)("button.dhx_button.dhx_combobox-tag__action.dhx_combobox__action-clear-all",{"aria-label":"clear all"},[(0,a.el)("span.dhx_button__icon.dxi.dxi-close-circle")])])]:[]}return this.list.selection.getId().map((function(e){var i=t.data.getItem(e);if(!i)return null;var n=t._drawImageOrIcon(i);return(0,a.el)("li.dhx_combobox-input-list__item.dhx_combobox-tag",{"data-dhx-id":e},r(r([],n||!t.config.template?[n,(0,a.el)("span.dhx_combobox-tag__value",t._getItemText(i))]:[(0,a.el)("span.dhx_combobox-tag__template",{".innerHTML":t.config.template(i)})],!0),[(0,a.el)("button.dhx_button.dhx_button--icon.dhx_combobox-tag__action.dhx_combobox__action-remove",{type:"button","aria-label":"remove"},[(0,a.el)("span.dhx_button__icon.dxi.dxi-close-circle")])],!1))}))},i.prototype._drawImageOrIcon=function(t){return t.src?(0,a.el)("img.dhx_combobox-tag__image",{src:t.src,alt:""}):t.icon?(0,a.el)("span.dhx_combobox-tag__icon",{class:t.icon}):null},i.prototype._getItemText=function(t){return t?t.value:null},i.prototype._updateSelectedItem=function(t){var e;this.config.multiselection?(this.config.selectAllButton&&!this._state.unselectActive&&this.data.getLength()===t.length?(this._layout.getCell("select-unselect-all").attach(y.unselectAllView),this._state.unselectActive=!0):this.config.selectAllButton&&this._state.unselectActive&&(this._layout.getCell("select-unselect-all").attach(y.selectAllView),this._state.unselectActive=!1),this._state.value&&(this._state.value="",this._state.canDelete=0===t.length,this.data.resetFilter(),this._filter())):this._state.value=null!==(e=this._getItemText(this.data.getItem(t)))&&void 0!==e?e:"",this.paint()},i.prototype._changePopupPosition=function(){var t=this;this.config.multiselection&&(0,a.awaitRedraw)().then((function(){t._updatePopup()}))},i.prototype._updatePopup=function(){var t=this.getRootView().refs.holder.el;this.popup.getContainer().style.width=t.offsetWidth+"px",this.popup.show(t,{mode:"bottom",theme:this.getRootNode()})},i}(d.View);e.Combobox=x},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.emptyListHeight=e.emptyListView=e.unselectAllView=e.selectAllView=void 0;var n=i(0),o=i(57);e.selectAllView=function(){return(0,n.el)(".dhx_list-item.dhx_combobox-options__item.dhx_combobox-options__item--select-all.dhx_combobox__action-select-all",o.default.selectAll)},e.unselectAllView=function(){return(0,n.el)(".dhx_list-item.dhx_combobox-options__item.dhx_combobox-options__item--select-all.dhx_combobox__action-select-all",o.default.unselectAll)},e.emptyListView=function(t){return(0,n.el)("ul.dhx_list",[(0,n.el)("li.dhx_list-item.dhx_combobox-options__item".concat(t?".dhx_combobox-options__action-create-option":""),{},t?"".concat(o.default.createItem,' "').concat(t,'"'):o.default.notFound)])},e.emptyListHeight=function(t,e){var i=document.createElement("canvas").getContext("2d",{alpha:!1});i.font="normal 14px Roboto";var n=t?"".concat(o.default.createItem,' "').concat(t,'"'):o.default.notFound;return 13+20*Math.ceil(i.measureText(n).width/(e-16))}},function(t,e,i){"use strict";var n,o;Object.defineProperty(e,"__esModule",{value:!0}),e.ComboState=e.ComboboxEvents=void 0,function(t){t.beforeChange="beforeChange",t.change="change",t.focus="focus",t.blur="blur",t.keydown="keydown",t.input="input",t.beforeOpen="beforeOpen",t.afterOpen="afterOpen",t.beforeClose="beforeClose",t.afterClose="afterClose",t.open="open",t.close="close"}(n||(e.ComboboxEvents=n={})),function(t){t[t.default=0]="default",t[t.error=1]="error",t[t.success=2]="success"}(o||(e.ComboState=o={}))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.DataView=void 0;var s=i(1),a=i(0),l=i(37),c=i(191),u=function(t){function e(e,i){return void 0===i&&(i={}),t.call(this,e,(0,s.extend)({itemsInRow:1,gap:"0px"},i))||this}return o(e,t),e.prototype.scrollTo=function(t){var e=this.getRootView();if(e&&e.node&&e.node.el&&void 0!==t){var i=this.getRootNode();this._scrollTo(t,i)}},e.prototype._scrollTo=function(t,e){var i;if(e){var n=this.data.getIndex(t);if(-1!==n){var o=this.config.virtual,r=this.config.itemsInRow-(null===(i=e.lastElementChild)||void 0===i?void 0:i.children.length)||0,s=function(t,e,i){var n=0;if(!i)return n;for(;t+e>=i;)n++,t=t+e-i;return n}(n,r,e.children.length*this.config.itemsInRow),a=s*r,l=Math.floor((n+a)/this.config.itemsInRow),c=e.children[l-e.children.length*s];if(o||c){var u=c.children[(n+a)%this.config.itemsInRow],d=parseInt(this.config.gap.toString().replace("px",""),null);u.offsetTop>=e.clientHeight+e.scrollTop-u.clientHeight?e.scrollTop=u.offsetTop-e.clientHeight+u.clientHeight+d:u.offsetTop<e.scrollTop-d&&(e.scrollTop=u.offsetTop-d)}}}},e.prototype._didRedraw=function(t){var e=t.node.el,i=e.scrollHeight>e.offsetHeight,n=t.node.attrs.class.replace(" dhx_dataview--has-scroll",""),o=i?n+" dhx_dataview--has-scroll":n;t.node.patch({class:o})},e.prototype._renderItem=function(t,e){var i=this.config,n=i.itemsInRow,o=i.gap,s=i.template,l=i.itemHeight,u=s?s(t):t.htmlContent,d=t.id==this._focus,h=(e+1)%this.config.itemsInRow==0,f=function(t){return parseFloat(t)};if(t.id==this._edited)return(0,c.getEditor)(t,this).toHTML(h);var p=t.id.toString(),v=this.data.getMetaMap(t);return(0,a.el)("div",r(r({class:"dhx_dataview-item"+(v&&v.selected?" dhx_dataview-item--selected":"")+(d?" dhx_dataview-item--focus":"")+(v&&v.drop&&!this._edited?" dhx_dataview-item--drophere":"")+(v&&v.drag&&!this._edited?" dhx_dataview-item--dragtarget":"")+(this.config.dragMode&&!this._edited?" dhx_dataview-item--drag":"")+(f(o)?" dhx_dataview-item--with-gap":"")+(t.css?" "+t.css:"")+(h?" dhx_dataview-item--last-item-in-row":""),style:{width:"calc(".concat(100/n,"% - ").concat(f(o)," * ").concat((n-1)/n,"px)"),"margin-right":h?"":o,height:s?null:l},_key:p,"data-dhx-id":p,_ref:p},this.getDataViewItemAriaAttrs(this,t)),{tabindex:d?0:-1}),u?[(0,a.el)(".dhx_dataview-item__inner-html",{".innerHTML":u,role:"presentation"})]:t.value||t.text||t.value)},e.prototype._renderList=function(){var t=this,e=this.data.getRawData(0,-1),i=this.config,n=i.itemsInRow,o=i.css,s=i.gap,l=0,c=e.reduce((function(e,i,o){return 0===l&&e.push([]),e[e.length-1].push(t._renderItem(i,o)),l=(l+1)%n,e}),[]);return(0,a.el)("",r(r(r(r({},this._handlers),{"data-dhx-widget-id":this._uid,class:(o||"")+" dhx_widget dhx_dataview"+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":""),style:{height:this.config.height}}),this.getDataViewAriaAttrs(this.config,this.data.getLength(),c.length,n)),{tabindex:0}),c.map((function(t,e){return(0,a.el)(".dhx_dataview-row",{style:{margin:s},"aria-label":"Row ".concat(e+1)},t)})))},e.prototype._getHotkeys=function(){var e=this,i=t.prototype._getHotkeys.call(this);return i.arrowUp=function(t){e.moveFocus(l.MOVE_UP,e.config.itemsInRow),e._changed&&(e._changed=!1),t.preventDefault()},i.arrowDown=function(t){e.moveFocus(l.MOVE_DOWN,e.config.itemsInRow),e._changed&&(e._changed=!1),t.preventDefault()},i.arrowLeft=function(t){e.moveFocus(l.MOVE_UP),e._changed&&(e._changed=!1),t.preventDefault()},i.arrowRight=function(t){e.moveFocus(l.MOVE_DOWN),e._changed&&(e._changed=!1),t.preventDefault()},i},e.prototype.getDataViewItemAriaAttrs=function(t,e){return r(r({role:"option","aria-selected":e.$selected?"true":"false"},function(t,e){return t.config.dragMode&&!t._edited?{"aria-grabbed":Boolean(e.$dragtarget&&!t._edited).toString()}:{}}(t,e)),function(t){return t.config.editable?{"aria-roledescription":"".concat(t._edited?"Press Enter to stop editing":"Double click to edit content")}:{}}(t))},e.prototype.getDataViewAriaAttrs=function(t,e,i,n){return{role:"listbox","aria-label":"Dataview, ".concat(e," options on ").concat(i," rows, ").concat(n," options per row.").concat(t.editable?" Content is editable.":""),"aria-multiselectable":t.selection&&t.multiselection?"true":"false","aria-readonly":t.editable?"false":"true"}},e}(l.List);e.DataView=u},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.DataViewEvents=void 0,function(t){t.click="click",t.doubleClick="doubleclick",t.focusChange="focuschange",t.beforeEditStart="beforeEditStart",t.afterEditStart="afterEditStart",t.beforeEditEnd="beforeEditEnd",t.afterEditEnd="afterEditEnd",t.itemRightClick="itemRightClick",t.itemMouseOver="itemMouseOver",t.contextmenu="contextmenu"}(n||(e.DataViewEvents=n={}))},function(t,e,i){"use strict";(function(t){var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__rest||function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]])}return i},a=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Form=void 0;var l=i(2),c=i(9),u=i(11),d=i(1),h=i(195),f=i(196),p=i(92),v=i(197),g=i(39),_=i(198),m=i(200),y=i(201),b=i(202),w=i(203),x=i(204),E=i(6),C=i(93),S=i(205),k=i(206),O=i(207),P=i(208),I=i(209),D=i(95),M=i(210),T=i(4),V=i(0),H=function(e){function i(t,i){var n=e.call(this,null,(0,d.extend)({disabled:!1,hidden:!1,css:""},i))||this;return n._isValid=!0,n._state={},n.events=new l.EventSystem(n),n.container=t,n._initUI(t),n.config.hidden&&n.hide(!0),n.config.disabled&&n.disable(),n.events.on(T.FormEvents.afterShow,(function(){n._formContainerShow()})),n.events.on(T.FormEvents.afterHide,(function(){Object.values(n._attachments).some((function(t){return!t.config.hidden}))||n._formContainerHide()})),(0,V.awaitRedraw)().then((function(){var t=n.layout.getRootNode();t&&(t.setAttribute("role","form"),n.config.title&&t.setAttribute("aria-label",n.config.title))})),n}return o(i,e),i.prototype.paint=function(){e.prototype.paint.call(this),this.layout.paint()},i.prototype.send=function(e,i,n){var o=this;if(void 0===i&&(i="POST"),this.events.fire(T.FormEvents.beforeSend))return new t((function(t,r){var s=new XMLHttpRequest;switch(s.onload=function(){s.status>=200&&s.status<300?t(s.response||s.responseText):r({status:s.status,statusText:s.statusText})},s.onloadend=function(){s.readyState===XMLHttpRequest.DONE&&200===s.status&&o.events.fire(T.FormEvents.afterSend)},s.onerror=function(){r({status:s.status,statusText:s.statusText})},"GET"===i&&(e+="?"+encodeURIComponent(JSON.stringify(o.getValue()))),s.open(i,e),n||s.setRequestHeader("Content-Type","application/json"),i){case"POST":o._send(),s.send(n?o.getValue(!0):JSON.stringify(o.getValue()));break;case"DELETE":case"PUT":s.send(n?o.getValue(!0):JSON.stringify(o.getValue()));break;default:s.send()}}))},i.prototype.clear=function(t){switch(t){case T.ClearMethod.value:this._clear();break;case T.ClearMethod.validation:this._clearValidate();break;default:this._clear(),this._clearValidate()}this.paint()},i.prototype.setValue=function(t){for(var e in t)for(var i in this._attachments)"function"==typeof this._attachments[i].setValue&&this._attachments[i].config.name===e&&this._attachments[i].setValue(t[e])},i.prototype.getValue=function(t){if(t){var e=new FormData,i=function(t){Array.isArray(n._state[t])?n._state[t].forEach((function(i,n){return e.append(t+"[".concat(n,"]"),i)})):e.append(t,n._state[t])},n=this;for(var o in this._state)i(o);return e}return r({},this._state)},i.prototype.getItem=function(t){for(var e in this._attachments)if(e==t)return this._attachments[e]},i.prototype.validate=function(t){for(var e in void 0===t&&(t=!1),this._isValid=!0,this._attachments)"function"==typeof this._attachments[e].validate&&(0,E.isVerify)(this._attachments[e].config)&&!this._attachments[e].validate(t)&&(this._isValid=!1,!t&&this.events.fire(T.FormEvents.validationFail,[e,this._attachments[e]]));return this._isValid},i.prototype.setProperties=function(t,e){if("string"==typeof t&&e&&!(0,d.isEmptyObj)(e))for(var i in this._attachments)"function"==typeof this._attachments[i].setProperties&&i===t&&this._attachments[i].setProperties(e);if("object"==typeof t&&!(0,d.isEmptyObj)(t))for(var i in this._attachments)"function"!=typeof this._attachments[i].setProperties||(0,d.isEmptyObj)(t[i])||this._attachments[i].setProperties(t[i])},i.prototype.getProperties=function(t){if(t)for(var e in this._attachments)if("function"==typeof this._attachments[e].getProperties&&e===t)return this._attachments[e].getProperties();var i={};for(var e in this._attachments)"function"==typeof this._attachments[e].getProperties&&(i[e]=this._attachments[e].getProperties());return i},i.prototype.show=function(){if(this.config.hidden||Object.values(this._attachments).some((function(t){return!t.config.hidden})))for(var t in this._formContainerShow(),this._attachments)"function"==typeof this._attachments[t].show&&this._attachments[t].show()},i.prototype.hide=function(t){if(!this.config.hidden||t)for(var e in this._formContainerHide(),this._attachments)"function"==typeof this._attachments[e].hide&&this._attachments[e].hide(t)},i.prototype.setFocus=function(t){for(var e in this._attachments){var i=this._attachments[e];"radiogroup"!==i.config.type&&"checkboxgroup"!==i.config.type||i.focus(t),i.config.name===t&&i.focus()}},i.prototype.blur=function(t){for(var e in t||this.forEach((function(t){"function"==typeof t.blur&&t.blur()})),this._attachments){var i=this._attachments[e];"radiogroup"!==i.config.type&&"checkboxgroup"!==i.config.type||i.blur(t),i.config.name===t&&i.blur()}},i.prototype.isVisible=function(t){if(!t)return!this.config.hidden;for(var e in this._attachments)if(e===t)return!this._attachments[e].config.hidden},i.prototype.disable=function(){for(var t in this.config.disabled=!0,this._attachments)"function"==typeof this._attachments[t].disable&&this._attachments[t].disable()},i.prototype.enable=function(){for(var t in this.config.disabled=!1,this._attachments)"function"==typeof this._attachments[t].enable&&this._attachments[t].enable()},i.prototype.isDisabled=function(t){if(!t)return this.config.disabled;for(var e in this._attachments)if(e===t)return this._attachments[e].config.disabled},i.prototype.forEach=function(t){for(var e=Object.values(this._attachments),i=0;i<e.length;i++)t.call(this,e[i],i,e)},i.prototype.destructor=function(){for(var t in this.unmount(),this._attachments)"function"==typeof this._attachments[t].destructor&&this._attachments[t].destructor();this.events&&this.events.clear(),this.layout&&this.layout.destructor(),this.config=this._attachments=this._state=this._uid=this.container=this.events=this._isValid=null},i.prototype.getRootView=function(){return this.layout.getRootView()},i.prototype._addLayoutItem=function(t){var e=t.id=t.id||(0,d.uid)(),i=t.name=t.name||e.toString();t.type=t.type&&t.type.toLowerCase();var n=t.padding,o=s(t,["padding"]),r=t.width,a=t.height;switch("spacer"!==t.type&&!a&&(a="content"),o.type){case"button":case"togglegroup":r=o.width||!o.full&&"content";break;case"simplevault":o.$vaultHeight=a}this._initItemHandlers(t,i);var l={id:i,width:r,height:a,padding:n,hidden:o.hidden,css:this.getCellCSS(o)};return"fieldset"===t.type&&(l.$fieldset=!0,l.label=t.label,l.labelAlignment=t.labelAlignment,this._createLayoutConfig(t,l)),l},i.prototype._initItemHandlers=function(t,e){var i=this;switch(t.type){case"avatar":var n=this._attachments[e]=new P.Avatar(null,t);this._state[e]=n.getValue(),n.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),n.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),n.events.on(T.ItemEvent.beforeHide,(function(t,n){if(!n)return i.events.fire(T.FormEvents.beforeHide,[e,t])})),n.events.on(T.ItemEvent.beforeShow,(function(t){return i.events.fire(T.FormEvents.beforeShow,[e,t])})),n.events.on(T.ItemEvent.afterHide,(function(t,n){i.layout.getCell(e).hide(),!n&&i.events.fire(T.FormEvents.afterHide,[e,t])})),n.events.on(T.ItemEvent.afterShow,(function(t){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t])})),n.events.on(T.ItemEvent.beforeValidate,(function(t){return i.events.fire(T.FormEvents.beforeValidate,[e,t])})),n.events.on(T.ItemEvent.afterValidate,(function(t,n){i.events.fire(T.FormEvents.afterValidate,[e,t,n])})),n.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),n.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,n.config),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),n.events.on(T.ItemEvent.focus,(function(t){i.events.fire(T.FormEvents.focus,[e,t])})),n.events.on(T.ItemEvent.blur,(function(t){i.events.fire(T.FormEvents.blur,[e,t])})),n.events.on(T.ItemEvent.keydown,(function(t){i.events.fire(T.FormEvents.keydown,[t,e])}));break;case"toggle":var o=this._attachments[e]=new D.ToggleButton(null,t);this._state[e]=o.getValue(),o.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),o.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),o.events.on(T.ItemEvent.beforeHide,(function(t,n){if(!n)return i.events.fire(T.FormEvents.beforeHide,[e,t])})),o.events.on(T.ItemEvent.beforeShow,(function(t){return i.events.fire(T.FormEvents.beforeShow,[e,t])})),o.events.on(T.ItemEvent.afterHide,(function(t,n){i.layout.getCell(e).hide(),!n&&i.events.fire(T.FormEvents.afterHide,[e,t])})),o.events.on(T.ItemEvent.afterShow,(function(t){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t])})),o.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),o.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,o.config),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),o.events.on(T.ItemEvent.focus,(function(t){i.events.fire(T.FormEvents.focus,[e,t])})),o.events.on(T.ItemEvent.blur,(function(t){i.events.fire(T.FormEvents.blur,[e,t])})),o.events.on(T.ItemEvent.keydown,(function(t){i.events.fire(T.FormEvents.keydown,[t,e])}));break;case"togglegroup":var r=this._attachments[e]=new M.ToggleGroup(null,t);this._state[e]=r.getValue(),r.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),r.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),r.events.on(T.ItemEvent.beforeHide,(function(t,n,o){if(!o)return i.events.fire(T.FormEvents.beforeHide,[e,t,n])})),r.events.on(T.ItemEvent.beforeShow,(function(t,n){return i.events.fire(T.FormEvents.beforeShow,[e,t,n])})),r.events.on(T.ItemEvent.afterHide,(function(t,n,o){!r.isVisible()&&i.layout.getCell(e).hide(),!o&&i.events.fire(T.FormEvents.afterHide,[e,t,n])})),r.events.on(T.ItemEvent.afterShow,(function(t,n){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t,n])})),r.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),r.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,r.config),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),r.events.on(T.ItemEvent.focus,(function(t,n){i.events.fire(T.FormEvents.focus,[e,t,n])})),r.events.on(T.ItemEvent.blur,(function(t,n){i.events.fire(T.FormEvents.blur,[e,t,n])})),r.events.on(T.ItemEvent.keydown,(function(t,n){i.events.fire(T.FormEvents.keydown,[t,e,n])}));break;case"button":var s=this._attachments[e]=new f.Button(null,t);s.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),s.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,s.config),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),s.events.on(T.ItemEvent.click,(function(t){t.preventDefault(),i.events.fire(T.FormEvents.click,[e,t]),i.events.fire(T.FormEvents.buttonClick,[e,t]),s.config.submit&&i.validate()&&s.config.url&&i.send(s.config.url)})),s.events.on(T.ItemEvent.beforeHide,(function(t,n){if(!n)return i.events.fire(T.FormEvents.beforeHide,[e,t])})),s.events.on(T.ItemEvent.beforeShow,(function(t){return i.events.fire(T.FormEvents.beforeShow,[e,t])})),s.events.on(T.ItemEvent.afterHide,(function(t,n){i.layout.getCell(e).hide(),!n&&i.events.fire(T.FormEvents.afterHide,[e,t])})),s.events.on(T.ItemEvent.afterShow,(function(t){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t])})),s.events.on(T.ItemEvent.focus,(function(t){i.events.fire(T.FormEvents.focus,[e,t])})),s.events.on(T.ItemEvent.blur,(function(t){i.events.fire(T.FormEvents.blur,[e,t])})),s.events.on(T.ItemEvent.keydown,(function(t){i.events.fire(T.FormEvents.keydown,[t,e])}));break;case"datepicker":var l=this._attachments[e]=new h.DatePicker(null,t);this._state[e]=l.getValue("Date"===t.valueFormat),l.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),l.events.on(T.ItemEvent.afterChangeProperties,(function(n){i._changeProps(e,n,l.config),i._state[e]=l.getValue("Date"===t.valueFormat),i.events.fire(T.FormEvents.afterChangeProperties,[e,n]),i.paint()})),l.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),l.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),l.events.on(T.ItemEvent.beforeHide,(function(t,n){if(!n)return i.events.fire(T.FormEvents.beforeHide,[e,t])})),l.events.on(T.ItemEvent.beforeShow,(function(t){return i.events.fire(T.FormEvents.beforeShow,[e,t])})),l.events.on(T.ItemEvent.afterHide,(function(t,n){i.layout.getCell(e).hide(),!n&&i.events.fire(T.FormEvents.afterHide,[e,t])})),l.events.on(T.ItemEvent.afterShow,(function(t){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t])})),l.events.on(T.ItemEvent.beforeValidate,(function(t){return i.events.fire(T.FormEvents.beforeValidate,[e,t])})),l.events.on(T.ItemEvent.afterValidate,(function(t,n){i.events.fire(T.FormEvents.afterValidate,[e,t,n])})),l.events.on(T.ItemEvent.focus,(function(t){i.events.fire(T.FormEvents.focus,[e,t])})),l.events.on(T.ItemEvent.blur,(function(t){i.events.fire(T.FormEvents.blur,[e,t])})),l.events.on(T.ItemEvent.keydown,(function(t){i.events.fire(T.FormEvents.keydown,[t,e])}));break;case"checkbox":var c=this._attachments[e]=new p.Checkbox(null,t);this._state[e]=c.getValue(),c.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),c.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,c.config),i._state[e]=c.getValue(),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),c.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),c.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),c.events.on(T.ItemEvent.beforeHide,(function(t,n){if(!n)return i.events.fire(T.FormEvents.beforeHide,[e,t])})),c.events.on(T.ItemEvent.beforeShow,(function(t){return i.events.fire(T.FormEvents.beforeShow,[e,t])})),c.events.on(T.ItemEvent.afterHide,(function(t,n){i.layout.getCell(e).hide(),!n&&i.events.fire(T.FormEvents.afterHide,[e,t])})),c.events.on(T.ItemEvent.afterShow,(function(t){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t])})),c.events.on(T.ItemEvent.beforeValidate,(function(t){return i.events.fire(T.FormEvents.beforeValidate,[e,t])})),c.events.on(T.ItemEvent.afterValidate,(function(t,n){i.events.fire(T.FormEvents.afterValidate,[e,t,n])})),c.events.on(T.ItemEvent.focus,(function(t){i.events.fire(T.FormEvents.focus,[e,t])})),c.events.on(T.ItemEvent.blur,(function(t){i.events.fire(T.FormEvents.blur,[e,t])})),c.events.on(T.ItemEvent.keydown,(function(t){i.events.fire(T.FormEvents.keydown,[t,e])}));break;case"checkboxgroup":var u=this._attachments[e]=new v.CheckboxGroup(null,t);this._state[e]=u.getValue(),u.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),u.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,u.config),i._state[e]=u.getValue(),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),u.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),u.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),u.events.on(T.ItemEvent.beforeHide,(function(t,n,o){if(!o)return i.events.fire(T.FormEvents.beforeHide,[e,t,n])})),u.events.on(T.ItemEvent.beforeShow,(function(t,n){return i.events.fire(T.FormEvents.beforeShow,[e,t,n])})),u.events.on(T.ItemEvent.afterHide,(function(t,n,o){!u.isVisible()&&i.layout.getCell(e).hide(),!o&&i.events.fire(T.FormEvents.afterHide,[e,t,n])})),u.events.on(T.ItemEvent.afterShow,(function(t,n){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t,n])})),u.events.on(T.ItemEvent.beforeValidate,(function(t){return i.events.fire(T.FormEvents.beforeValidate,[e,t])})),u.events.on(T.ItemEvent.afterValidate,(function(t,n){i.events.fire(T.FormEvents.afterValidate,[e,t,n])})),u.events.on(T.ItemEvent.focus,(function(t,n){i.events.fire(T.FormEvents.focus,[e,t,n])})),u.events.on(T.ItemEvent.blur,(function(t,n){i.events.fire(T.FormEvents.blur,[e,t,n])})),u.events.on(T.ItemEvent.keydown,(function(t,n){i.events.fire(T.FormEvents.keydown,[t,e,n])}));break;case"combo":var d=this._attachments[e]=new w.Combo(null,t);this._state[e]=d.getValue(),d.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),d.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,d.config),i._state[e]=d.getValue(),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),d.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),d.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),d.events.on(T.ItemEvent.beforeHide,(function(t,n){if(!n)return i.events.fire(T.FormEvents.beforeHide,[e,t])})),d.events.on(T.ItemEvent.beforeShow,(function(t){return i.events.fire(T.FormEvents.beforeShow,[e,t])})),d.events.on(T.ItemEvent.afterHide,(function(t,n){i.layout.getCell(e).hide(),!n&&i.events.fire(T.FormEvents.afterHide,[e,t])})),d.events.on(T.ItemEvent.afterShow,(function(t){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t])})),d.events.on(T.ItemEvent.beforeValidate,(function(t){return i.events.fire(T.FormEvents.beforeValidate,[e,t])})),d.events.on(T.ItemEvent.afterValidate,(function(t,n){i.events.fire(T.FormEvents.afterValidate,[e,t,n])})),d.events.on(T.ItemEvent.focus,(function(t){i.events.fire(T.FormEvents.focus,[e,t])})),d.events.on(T.ItemEvent.blur,(function(t){i.events.fire(T.FormEvents.blur,[e,t])})),d.events.on(T.ItemEvent.keydown,(function(t,n){i.events.fire(T.FormEvents.keydown,[t,e,n])}));break;case"input":var E=this._attachments[e]=new g.Input(null,t);this._state[e]=E.getValue(),E.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),E.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,E.config),i._state[e]=E.getValue(),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),E.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),E.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),E.events.on(T.ItemEvent.beforeHide,(function(t,n){if(!n)return i.events.fire(T.FormEvents.beforeHide,[e,t])})),E.events.on(T.ItemEvent.beforeShow,(function(t){return i.events.fire(T.FormEvents.beforeShow,[e,t])})),E.events.on(T.ItemEvent.afterHide,(function(t,n){i.layout.getCell(e).hide(),!n&&i.events.fire(T.FormEvents.afterHide,[e,t])})),E.events.on(T.ItemEvent.afterShow,(function(t){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t])})),E.events.on(T.ItemEvent.beforeValidate,(function(t){return i.events.fire(T.FormEvents.beforeValidate,[e,t])})),E.events.on(T.ItemEvent.afterValidate,(function(t,n){i.events.fire(T.FormEvents.afterValidate,[e,t,n])})),E.events.on(T.ItemEvent.focus,(function(t){i.events.fire(T.FormEvents.focus,[e,t])})),E.events.on(T.ItemEvent.blur,(function(t){i.events.fire(T.FormEvents.blur,[e,t])})),E.events.on(T.ItemEvent.keydown,(function(t){i.events.fire(T.FormEvents.keydown,[t,e])}));break;case"radiogroup":var V=this._attachments[e]=new _.RadioGroup(null,t);this._state[e]=V.getValue(),V.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),V.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,V.config),i._state[e]=V.getValue(),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),V.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),V.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),V.events.on(T.ItemEvent.beforeHide,(function(t,n,o){if(!o)return i.events.fire(T.FormEvents.beforeHide,[e,t,n])})),V.events.on(T.ItemEvent.beforeShow,(function(t,n){return i.events.fire(T.FormEvents.beforeShow,[e,t,n])})),V.events.on(T.ItemEvent.afterHide,(function(t,n,o){!V.isVisible()&&i.layout.getCell(e).hide(),!o&&i.events.fire(T.FormEvents.afterHide,[e,t,n])})),V.events.on(T.ItemEvent.afterShow,(function(t,n){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t,n])})),V.events.on(T.ItemEvent.beforeValidate,(function(t){return i.events.fire(T.FormEvents.beforeValidate,[e,t])})),V.events.on(T.ItemEvent.afterValidate,(function(t,n){i.events.fire(T.FormEvents.afterValidate,[e,t,n])})),V.events.on(T.ItemEvent.focus,(function(t,n){i.events.fire(T.FormEvents.focus,[e,t,n])})),V.events.on(T.ItemEvent.blur,(function(t,n){i.events.fire(T.FormEvents.blur,[e,t,n])})),V.events.on(T.ItemEvent.keydown,(function(t,n){i.events.fire(T.FormEvents.keydown,[t,e,n])}));break;case"select":var H=this._attachments[e]=new m.Select(null,t);this._state[e]=H.getValue(),H.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),H.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,H.config),i._state[e]=H.getValue(),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),H.events.on(T.ItemEvent.changeOptions,(function(t){i.layout.getCell(e).config.options=a([],t,!0)})),H.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),H.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),H.events.on(T.ItemEvent.beforeHide,(function(t,n){if(!n)return i.events.fire(T.FormEvents.beforeHide,[e,t])})),H.events.on(T.ItemEvent.beforeShow,(function(t){return i.events.fire(T.FormEvents.beforeShow,[e,t])})),H.events.on(T.ItemEvent.afterHide,(function(t,n){i.layout.getCell(e).hide(),!n&&i.events.fire(T.FormEvents.afterHide,[e,t])})),H.events.on(T.ItemEvent.afterShow,(function(t){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t])})),H.events.on(T.ItemEvent.beforeValidate,(function(t){return i.events.fire(T.FormEvents.beforeValidate,[e,t])})),H.events.on(T.ItemEvent.afterValidate,(function(t,n){i.events.fire(T.FormEvents.afterValidate,[e,t,n])})),H.events.on(T.ItemEvent.focus,(function(t){i.events.fire(T.FormEvents.focus,[e,t])})),H.events.on(T.ItemEvent.blur,(function(t){i.events.fire(T.FormEvents.blur,[e,t])})),H.events.on(T.ItemEvent.keydown,(function(t){i.events.fire(T.FormEvents.keydown,[t,e])}));break;case"simplevault":var j=this._attachments[e]=new C.SimpleVault(null,t);this._state[e]=j.getValue(),j.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),j.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,j.config),i._state[e]=j.getValue(),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),j.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),j.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),j.events.on(T.ItemEvent.beforeHide,(function(t,n){if(!n)return i.events.fire(T.FormEvents.beforeHide,[e,t])})),j.events.on(T.ItemEvent.beforeShow,(function(t){return i.events.fire(T.FormEvents.beforeShow,[e,t])})),j.events.on(T.ItemEvent.afterHide,(function(t,n){i.layout.getCell(e).hide(),!n&&i.events.fire(T.FormEvents.afterHide,[e,t])})),j.events.on(T.ItemEvent.afterShow,(function(t){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t])})),j.events.on(T.ItemEvent.beforeValidate,(function(t){return i.events.fire(T.FormEvents.beforeValidate,[e,t])})),j.events.on(T.ItemEvent.afterValidate,(function(t,n){i.events.fire(T.FormEvents.afterValidate,[e,t,n])}));break;case"slider":var F=this._attachments[e]=new x.SliderForm(null,t);this._state[e]=F.getValue(),F.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),F.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),F.events.on(T.ItemEvent.beforeHide,(function(t,n){if(!n)return i.events.fire(T.FormEvents.beforeHide,[e,t])})),F.events.on(T.ItemEvent.beforeShow,(function(t){return i.events.fire(T.FormEvents.beforeShow,[e,t])})),F.events.on(T.ItemEvent.afterHide,(function(t,n){i.layout.getCell(e).hide(),!n&&i.events.fire(T.FormEvents.afterHide,[e,t])})),F.events.on(T.ItemEvent.afterShow,(function(t){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t])})),F.events.on(T.ItemEvent.focus,(function(t){i.events.fire(T.FormEvents.focus,[e,t])})),F.events.on(T.ItemEvent.blur,(function(t){i.events.fire(T.FormEvents.blur,[e,t])})),F.events.on(T.ItemEvent.keydown,(function(t){i.events.fire(T.FormEvents.keydown,[t,e])}));break;case"textarea":var R=this._attachments[e]=new y.Textarea(null,t);this._state[e]=R.getValue(),R.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),R.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,R.config),i._state[e]=R.getValue(),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),R.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),R.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),R.events.on(T.ItemEvent.beforeHide,(function(t,n){if(!n)return i.events.fire(T.FormEvents.beforeHide,[e,t])})),R.events.on(T.ItemEvent.beforeShow,(function(t){return i.events.fire(T.FormEvents.beforeShow,[e,t])})),R.events.on(T.ItemEvent.afterHide,(function(t,n){i.layout.getCell(e).hide(),!n&&i.events.fire(T.FormEvents.afterHide,[e,t])})),R.events.on(T.ItemEvent.afterShow,(function(t){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t])})),R.events.on(T.ItemEvent.beforeValidate,(function(t){return i.events.fire(T.FormEvents.beforeValidate,[e,t])})),R.events.on(T.ItemEvent.afterValidate,(function(t,n){i.events.fire(T.FormEvents.afterValidate,[e,t,n])})),R.events.on(T.ItemEvent.focus,(function(t){i.events.fire(T.FormEvents.focus,[e,t])})),R.events.on(T.ItemEvent.blur,(function(t){i.events.fire(T.FormEvents.blur,[e,t])})),R.events.on(T.ItemEvent.keydown,(function(t){i.events.fire(T.FormEvents.keydown,[t,e])}));break;case"text":var A=this._attachments[e]=new b.Text(null,t);this._state[e]=A.getValue(),A.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),A.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,A.config),i._state[e]=A.getValue(),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),A.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),A.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),A.events.on(T.ItemEvent.beforeHide,(function(t,n){if(!n)return i.events.fire(T.FormEvents.beforeHide,[e,t])})),A.events.on(T.ItemEvent.beforeShow,(function(t){return i.events.fire(T.FormEvents.beforeShow,[e,t])})),A.events.on(T.ItemEvent.afterHide,(function(t,n){i.layout.getCell(e).hide(),!n&&i.events.fire(T.FormEvents.afterHide,[e,t])})),A.events.on(T.ItemEvent.afterShow,(function(t){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t])})),A.events.on(T.ItemEvent.beforeValidate,(function(t){return i.events.fire(T.FormEvents.beforeValidate,[e,t])})),A.events.on(T.ItemEvent.afterValidate,(function(t,n){i.events.fire(T.FormEvents.afterValidate,[e,t,n])}));break;case"timepicker":var L=this._attachments[e]=new S.TimePicker(null,t);this._state[e]=t.value&&L.getValue("timeObject"===t.valueFormat)||"",L.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),L.events.on(T.ItemEvent.afterChangeProperties,(function(n){i._changeProps(e,n,L.config),i._state[e]=L.getValue("timeObject"===t.valueFormat),i.events.fire(T.FormEvents.afterChangeProperties,[e,n]),i.paint()})),L.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),L.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),L.events.on(T.ItemEvent.beforeHide,(function(t,n){if(!n)return i.events.fire(T.FormEvents.beforeHide,[e,t])})),L.events.on(T.ItemEvent.beforeShow,(function(t){return i.events.fire(T.FormEvents.beforeShow,[e,t])})),L.events.on(T.ItemEvent.afterHide,(function(t,n){i.layout.getCell(e).hide(),!n&&i.events.fire(T.FormEvents.afterHide,[e,t])})),L.events.on(T.ItemEvent.afterShow,(function(t){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t])})),L.events.on(T.ItemEvent.beforeValidate,(function(t){return i.events.fire(T.FormEvents.beforeValidate,[e,t])})),L.events.on(T.ItemEvent.afterValidate,(function(t,n){i.events.fire(T.FormEvents.afterValidate,[e,t,n])})),L.events.on(T.ItemEvent.focus,(function(t){i.events.fire(T.FormEvents.focus,[e,t])})),L.events.on(T.ItemEvent.blur,(function(t){i.events.fire(T.FormEvents.blur,[e,t])})),L.events.on(T.ItemEvent.keydown,(function(t){i.events.fire(T.FormEvents.keydown,[t,e])}));break;case"colorpicker":var $=this._attachments[e]=new k.ColorPicker(null,t);this._state[e]=$.getValue(),$.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),$.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,$.config),i._state[e]=$.getValue(),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),$.events.on(T.ItemEvent.beforeChange,(function(t){return i.events.fire(T.FormEvents.beforeChange,[e,t])})),$.events.on(T.ItemEvent.change,(function(t){i._state[e]=t,i.events.fire(T.FormEvents.change,[e,t])})),$.events.on(T.ItemEvent.beforeHide,(function(t,n){if(!n)return i.events.fire(T.FormEvents.beforeHide,[e,t])})),$.events.on(T.ItemEvent.beforeShow,(function(t){return i.events.fire(T.FormEvents.beforeShow,[e,t])})),$.events.on(T.ItemEvent.afterHide,(function(t,n){i.layout.getCell(e).hide(),!n&&i.events.fire(T.FormEvents.afterHide,[e,t])})),$.events.on(T.ItemEvent.afterShow,(function(t){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e,t])})),$.events.on(T.ItemEvent.beforeValidate,(function(t){return i.events.fire(T.FormEvents.beforeValidate,[e,t])})),$.events.on(T.ItemEvent.afterValidate,(function(t,n){i.events.fire(T.FormEvents.afterValidate,[e,t,n])})),$.events.on(T.ItemEvent.focus,(function(t){i.events.fire(T.FormEvents.focus,[e,t])})),$.events.on(T.ItemEvent.blur,(function(t){i.events.fire(T.FormEvents.blur,[e,t])})),$.events.on(T.ItemEvent.keydown,(function(t){i.events.fire(T.FormEvents.keydown,[t,e])}));break;case"fieldset":var N=this._attachments[e]=new I.Fieldset(t);N.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),N.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,N.config),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()}));break;default:var z=this._attachments[e]=new O.Spacer(null,t);z.events.on(T.ItemEvent.beforeChangeProperties,(function(t){return i.events.fire(T.FormEvents.beforeChangeProperties,[e,t])})),z.events.on(T.ItemEvent.afterChangeProperties,(function(t){i._changeProps(e,t,z.config),i.events.fire(T.FormEvents.afterChangeProperties,[e,t]),i.paint()})),z.events.on(T.ItemEvent.beforeHide,(function(t){if(!t)return i.events.fire(T.FormEvents.beforeHide,[e])})),z.events.on(T.ItemEvent.beforeShow,(function(){return i.events.fire(T.FormEvents.beforeShow,[e])})),z.events.on(T.ItemEvent.afterHide,(function(t){i.layout.getCell(e).hide(),!t&&i.events.fire(T.FormEvents.afterHide,[e])})),z.events.on(T.ItemEvent.afterShow,(function(){i.layout.getCell(e).show(),i.events.fire(T.FormEvents.afterShow,[e])}))}},i.prototype._changeProps=function(t,e,i){var n=["width","height","css","padding","label","labelAlignment","align"];for(var o in e)n.includes(o)&&(0,d.isDefined)(e[o])&&(this.layout.getCell(t).config[o]="css"===o?this.getCellCSS(i):e[o])},i.prototype.getCellCSS=function(t){var e=t.css?t.css+" dhx_form-element":"dhx_form-element";switch(t.type){case"button":case"togglegroup":t.full&&!t.width&&(e+=" dhx_button--full-gravity");break;case"text":"content"===t.width&&(e+=" dhx_form-element--fit-content")}return e},i.prototype._addLayoutItems=function(t){var e=this;return t.map((function(t){if((0,E.isBlock)(t)){var i={width:"content",height:"content"};return e._createLayoutConfig(t,i),i}return e._addLayoutItem(t)}))},i.prototype._checkLayoutConfig=function(t,e){return(0,d.isDefined)(t.css)&&(e.css=t.css),(0,d.isDefined)(t.title)&&(e.header=t.title),(0,d.isDefined)(t.padding)&&(e.padding=t.padding),(0,d.isDefined)(t.width)&&(e.width=t.width),(0,d.isDefined)(t.height)&&(e.height=t.height),(0,d.isDefined)(t.align)&&(e.align=t.align),e},i.prototype._createLayoutConfig=function(t,e){e=this._checkLayoutConfig(t,e),(0,d.isDefined)(t.rows)?e.rows=this._addLayoutItems(t.rows):(0,d.isDefined)(t.cols)&&(e.cols=this._addLayoutItems(t.cols))},i.prototype._initUI=function(t){this._attachments={};var e={padding:"8px"};this.config.css+=" dhx_form",this._createLayoutConfig(this.config,e),this.layout=new u.Layout(t,e),(0,E.setAttacments)(this._attachments,this.layout)},i.prototype._clear=function(){for(var t in this._state={},this._attachments){var e=this._attachments[t].config.name;"function"==typeof this._attachments[t].clear&&(this._attachments[t].clear(),e?this._state[e]=this._attachments[t].getValue():this._state[t]=this._attachments[t].getValue())}},i.prototype._clearValidate=function(){for(var t in this._attachments)"function"==typeof this._attachments[t].clearValidate&&this._attachments[t].clearValidate()},i.prototype._formContainerShow=function(){(this.config.hidden=!1,this.getRootView().node)&&(this.getRootView().node.el.style.display="flex")},i.prototype._formContainerHide=function(){(this.config.hidden=!0,this.getRootView().node)&&(this.getRootView().node.el.style.display="none")},i.prototype._send=function(){for(var t in this._attachments)"function"==typeof this._attachments[t].send&&this._attachments[t].send()},i}(c.View);e.Form=H}).call(this,i(17))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Checkbox=void 0;var s=i(0),a=i(2),l=i(6),c=i(13),u=i(4),d=i(10),h=i(1),f=function(t){function e(e,i){void 0===i&&(i={});var n=t.call(this,e,i)||this;n.events=new a.EventSystem,n._propsItem=["required","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage","text"],n._props=r(r([],l.baseProps,!0),n._propsItem,!0),n._initView(i),n._initHandlers();return n.mount(e,(0,s.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype.setProperties=function(t,e){if(void 0===e&&(e=!1),t&&!(0,h.isEmptyObj)(t)&&(e||this.events.fire(u.ItemEvent.beforeChangeProperties,[this.getProperties()]))){for(var i in t)this._props.includes(i)&&(this.config[i]=t[i]);!e&&this.events.fire(u.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype.show=function(){this.config.hidden&&this.events.fire(u.ItemEvent.beforeShow,[this.getValue()])&&(this.config.hidden=!1,this.events.fire(u.ItemEvent.afterShow,[this.getValue()]))},e.prototype.hide=function(t){this.config.hidden&&!t||!this.events.fire(u.ItemEvent.beforeHide,[this.getValue(),t])||(this.config.hidden=!0,this.events.fire(u.ItemEvent.afterHide,[this.getValue(),t]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype.disable=function(){this.config.disabled=!0,this.paint()},e.prototype.enable=function(){var t;this.config.disabled=!1,(null===(t=this.parent)||void 0===t?void 0:t.isDisabled())&&this.parent.enable(),this.paint()},e.prototype.isDisabled=function(){return!!this.config.disabled},e.prototype.validate=function(t){void 0===t&&(t=!1);var e=this.getValue();if(!t&&!this.events.fire(u.ItemEvent.beforeValidate,[e]))return!1;var i=!0;return(this.config.required||this.config.$required)&&(i=!!this.config.checked),t||(this.setValidationStatus(i?"success":"error"),this.events.fire(u.ItemEvent.afterValidate,[e,i]),this.paint()),i},e.prototype.clearValidate=function(){this.setValidationStatus(),this.paint()},e.prototype.setValue=function(t,e){void 0===e&&(e=!1),void 0!==t&&t!==this.config.checked&&(e||this.events.fire(u.ItemEvent.beforeChange,[this._getValue(t)]))&&(this.config.checked=!!t,e||(this.events.fire(u.ItemEvent.change,[this.getValue()]),(0,l.isVerify)(this.config)&&this.validate()))},e.prototype.getValue=function(){return this._getValue(this.config.checked)},e.prototype.clear=function(t){this.config.checked&&(t||this.events.fire(u.ItemEvent.beforeChange,[this._getValue(!1)]))&&(this.config.checked=!1,t||this.events.fire(u.ItemEvent.change,[this.getValue()]),(0,l.isVerify)(this.config)&&this.setValidationStatus(this.validate(!0)?"success":"error"))},e.prototype.destructor=function(){this.events&&this.events.clear(),this._inGroup=this._propsItem=this._props=this._uid=this.events=null,t.prototype._destructor.call(this),this.unmount()},e.prototype.focus=function(){var t=this;(0,s.awaitRedraw)().then((function(){t.getRootView().refs.input.el.focus()}))},e.prototype.blur=function(){var t=this;(0,s.awaitRedraw)().then((function(){t.getRootView().refs.input.el.blur()}))},e.prototype.isChecked=function(){return!!this.config.checked},e.prototype._getValue=function(t){return"string"==typeof this.config.value?t&&this.config.value||"":!!t},e.prototype._initView=function(t){var e=this;if(this._inGroup=this.config.$group,this._inGroup){for(var i in this.config={type:t.type,id:t.id,text:"",width:"content",height:"content",padding:0},t)"id"!==i&&"type"!==i&&"name"!==i&&(this.config[i]=t[i]);this._handlers={onchange:function(t){var i=t.target.checked;e.events.fire(u.ItemEvent.beforeChange,[e._getValue(i)])?(e.config.checked=i,e.events.fire(u.ItemEvent.change,[e.getValue()]),(0,l.isVerify)(e.config)&&e.validate()):e.getRootView().refs.input.el.checked=!i},onfocus:function(){return e.events.fire(u.ItemEvent.focus,[e.getValue(),e.config.id])},onblur:function(){return e.events.fire(u.ItemEvent.blur,[e.getValue(),e.config.id])},onkeydown:function(t){e.events.fire(u.ItemEvent.keydown,[t,e.config.id])}}}else{for(var i in this.config={type:t.type,id:t.id,name:t.name,checked:!1,disabled:!1,required:!1,label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t)"id"!==i&&"type"!==i&&"name"!==i&&(this.config[i]=t[i]);this.config.helpMessage&&(this._helper=new c.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"}),this._helper.attachHTML(this.config.helpMessage)),this._handlers={showHelper:function(t){t.preventDefault(),t.stopPropagation(),e._helper.show(t.target,{mode:"left"===e.config.labelPosition?"bottom":"right",theme:e.getRootNode()})},hideHelper:function(t){t.preventDefault(),t.stopPropagation(),e._helper.hide()},onchange:function(t){var i=t.target.checked;e.events.fire(u.ItemEvent.beforeChange,[e._getValue(i)])?(e.config.checked=i,e.events.fire(u.ItemEvent.change,[e.getValue()]),(0,l.isVerify)(e.config)&&e.validate()):e.getRootView().refs.input.el.checked=!i},onfocus:function(){return e.events.fire(u.ItemEvent.focus,[e.getValue()])},onblur:function(){var t;return null===(t=e.events)||void 0===t?void 0:t.fire(u.ItemEvent.blur,[e.getValue()])},onkeydown:function(t){e.events.fire(u.ItemEvent.keydown,[t])}}}},e.prototype._initHandlers=function(){var t=this;this.events.on(u.ItemEvent.change,(function(){return t.paint()}))},e.prototype._draw=function(){var t=this.config,e=t.id,i=t.value,n=t.checked,o=t.disabled,r=t.name,a=t.required,c=t.$required,u=t.text,d=t.label,h=t.labelWidth,f=t.helpMessage;return(0,s.el)("label.dhx_checkbox.dhx_form-group.dhx_form-group--checkbox",{class:(0,l.getFormItemCss)(this.config,(0,l.isVerify)(this.config)||!!c)},this._inGroup?[(0,s.el)(".dhx_checkbox__holder",[(0,s.el)("input.dhx_checkbox__input",{type:"checkbox",id:e,value:i||"",name:r||"",disabled:o,checked:n,onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,required:a,_ref:"input"}),(0,s.el)("span.dhx_checkbox__visual-input"),(0,s.el)("span.dhx_text",[u])])]:[d||h||f||a?this._drawLabel():null,(0,s.el)(".dhx_checkbox__container",[(0,s.el)(".dhx_checkbox__holder",[(0,s.el)("input.dhx_checkbox__input",{type:"checkbox","data-dhx-id":r||e,id:e,_key:e||this._uid,value:i,name:r,disabled:o,checked:n,onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,required:a,_ref:"input","aria-label":d||"checkbox ".concat(u||""),"aria-describedby":f?"dhx_label__help_".concat(e||this._uid):null}),(0,s.el)("span.dhx_checkbox__visual-input"),(0,s.el)("span.dhx_text",[u])]),a&&(0,l.getValidationMessage)(this.config)&&(0,s.el)("span.dhx_input__caption",(0,l.getValidationMessage)(this.config))])])},e}(d.Label);e.Checkbox=f},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.SimpleVault=e.FileStatus=void 0;var a,l=i(0),c=i(2),u=i(3),d=i(1),h=i(7),f=i(58),p=i(13),v=i(6),g=i(94),_=i(4),m=i(10);!function(t){t.queue="queue",t.uploaded="uploaded",t.failed="failed",t.inprogress="inprogress"}(a||(e.FileStatus=a={}));var y=function(t){function e(e,i){var n=t.call(this,e,i)||this;n._propsItem=["required","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage"],n._propsSimpleVault=["params","headerParams","target","fieldName","singleRequest","updateFromResponse","autosend","accept","validation"],n._props=s(s(s([],v.baseProps,!0),n._propsItem,!0),n._propsSimpleVault,!0),n.events=new c.EventSystem(n),n.data=new h.DataCollection,n._uploader=new f.Uploader(r({target:"",accept:"",fieldName:"file",singleRequest:!1,updateFromResponse:!0,autosend:!1},i),n.data,n.data.events),n._initView(r(r({},n._uploader.config),i)),n._initHandlers();return n.mount(e,(0,l.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype.send=function(t){this._uploader.send(t)},e.prototype.selectFile=function(){this._uploader.selectFile()},e.prototype.setValue=function(t){t.length&&(this.data.parse(t),(0,v.isVerify)(this.config)&&this.validate())},e.prototype.getValue=function(){return this.data.serialize()},e.prototype.clear=function(){0!==this.getValue().length&&this.events.fire(_.ItemEvent.beforeChange,[[]])&&(this.data.removeAll(),this.events.fire(_.ItemEvent.change,[this.getValue()]),(0,v.isVerify)(this.config)&&this.setValidationStatus(this.validate(!0)?"success":"error"),this.paint())},e.prototype.disable=function(){this.config.disabled=!0,this.paint()},e.prototype.enable=function(){var t;this.config.disabled=!1,(null===(t=this.parent)||void 0===t?void 0:t.isDisabled())&&this.parent.enable(),this.paint()},e.prototype.isDisabled=function(){return this.config.disabled},e.prototype.show=function(){var t=this.config,e=t.value;t.hidden&&this.events.fire(_.ItemEvent.beforeShow,[e])&&(this.config.hidden=!1,this.events.fire(_.ItemEvent.afterShow,[e]))},e.prototype.hide=function(t){var e=this.config,i=e.value;e.hidden&&!t||!this.events.fire(_.ItemEvent.beforeHide,[i,t])||(this.config.hidden=!0,this.events.fire(_.ItemEvent.afterHide,[i,t]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype.validate=function(t){void 0===t&&(t=!1);for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var n=e.length?e[0]:this.getValue();if(!t&&!this.events.fire(_.ItemEvent.beforeValidate,[n]))return!1;var o=!0;return this.config.required&&(o=!!n.length),"function"==typeof this.config.validation&&(o=this.config.validation(n)),t||(this.setValidationStatus(o?"success":"error"),this.events.fire(_.ItemEvent.afterValidate,[n,o]),this.paint()),o},e.prototype.clearValidate=function(){this.setValidationStatus(),this.paint()},e.prototype.setProperties=function(t){if(t&&!(0,d.isEmptyObj)(t)&&this.events.fire(_.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e],this._propsSimpleVault.includes(e)&&(this._uploader.config[e]=t[e]));this.events.fire(_.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype.focus=function(){var t,e,i;null===(i=null===(e=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.input)||void 0===i||i.el.focus(),this.paint()},e.prototype.blur=function(){var t,e,i;null===(i=null===(e=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.input)||void 0===i||i.el.blur(),this.paint()},e.prototype.destructor=function(){this.events&&this.events.clear(),this._helper&&this._helper.destructor(),this.config=this.events=this._uid=this._helper=this._handlers=this._uploader=this.data=null,this._propsItem=this._propsSimpleVault=this._props=this._dragover=this._dragoverTimeout=null,this.unmount()},e.prototype._initView=function(t){var e;this.config=r({type:t.type,id:t.id,name:t.name,value:[],disabled:!1,hidden:!1,css:"",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t),(null===(e=t.value)||void 0===e?void 0:e.length)&&this.data.parse(t.value),this.paint()},e.prototype._initHandlers=function(){var t=this;this._handlers={add:function(e){t.config.disabled||(e.preventDefault(),t._uploader.selectFile())},remove:function(e){if(!t.config.disabled){var i=(0,u.locate)(e);i&&t.data.remove(i)}},ondragover:function(e){for(var i=0,n=e.dataTransfer.types;i<n.length;i++){var o=n[i];if("Files"!==o&&"application/x-moz-file"!==o)return}t._dragoverTimeout?clearTimeout(t._dragoverTimeout):t.paint(),t._dragover=!0,t._dragoverTimeout=setTimeout((function(){t._dragover=!1,t._dragoverTimeout=null,t.paint()}),150)},showHelper:function(e){e.stopPropagation(),e.preventDefault(),t._helper.show(e.target,{mode:"left"===t.config.labelPosition?"bottom":"right",theme:e.target})},hideHelper:function(e){e.preventDefault(),e.stopPropagation(),t._helper.hide()}},this._uploader.events.on("beforeUploadFile",(function(e){return!(t.config.autosend&&!t.validate(!0))&&t.events.fire(_.ItemEvent.beforeUploadFile,[e,t.config.value])})),this._uploader.events.on("uploadBegin",(function(e){t.events.fire(_.ItemEvent.uploadBegin,[e,t.config.value])})),this._uploader.events.on("uploadComplete",(function(e){t.events.fire(_.ItemEvent.uploadComplete,[e,t.config.value])})),this._uploader.events.on("uploadFail",(function(e){t.events.fire(_.ItemEvent.uploadFail,[e,t.config.value])})),this._uploader.events.on("uploadFile",(function(e,i){t.events.fire(_.ItemEvent.uploadFile,[e,t.config.value,i])})),this._uploader.events.on("uploadProgress",(function(e){t.events.fire(_.ItemEvent.uploadProgress,[e,t.config.value])})),this.data.events.on(h.DataEvents.beforeAdd,(function(e){return t.events.fire(_.ItemEvent.beforeChange,[s(s([],t.config.value,!0),[e],!1),e])})),this.data.events.on(h.DataEvents.beforeRemove,(function(e){var i=t.config.value.filter((function(t){return t.id!==e.id}));return t.events.fire(_.ItemEvent.beforeChange,[i,e])})),this.data.events.on(_.ItemEvent.change,(function(e,i,n){if(i){var o=t.config.value=t.getValue();t._uploader.isActive&&"update"===i||(t.events.fire(_.ItemEvent.change,[o,n]),(0,v.isVerify)(t.config)&&t.validate()),t.paint()}}))},e.prototype._draw=function(){var t=this;this.config.helpMessage&&(this._helper||(this._helper=new p.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"})),this._helper.attachHTML(this.config.helpMessage));var e=this.data.getLength()?(0,l.el)("ul.dhx_simplevault__files.dhx_simplevault-files",{class:this.config.$vaultHeight?"":"dhx_simplevault-files__fixed"},this.data.map((function(e){return(0,l.el)("li.dhx_simplevault-files__item",[(0,l.el)("span.dhx_simplevault-files__item-name",e.file&&e.file.name||e.name),(0,l.el)(".dhx_button.dhx_simplevault-files__delete.dhx_button--icon.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"data-dhx-id":e.id,onclick:t._handlers.remove},[(0,l.el)("span.dxi.dxi-delete-forever")])])}))):null,i=this.config,n=i.id,o=i.helpMessage,r=i.disabled,s=i.required,a=i.label,c=i.hidden,d=i.accept,h=(0,u.getLabelStyle)(this.config),f=c?" dhx_form-group--hidden":"";return(0,l.el)(".dhx_form-group.dhx_form-group--simplevault",{class:(0,v.getFormItemCss)(this.config,(0,v.isVerify)(this.config))+f},[h&&(0,l.el)("legend.dhx_label",{class:o?"dhx_label--with-help":"",style:h.style,onclick:this._handlers.add,"aria-label":a||"select files"},o?[(h.label||s)&&(0,l.el)("span.dhx_label__holder",h.label),(0,l.el)("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper,onfocus:this._handlers.showHelper,onblur:this._handlers.hideHelper})]:h.label),(0,l.el)(".dhx_input__wrapper",{id:this._uid},[(0,l.el)("div",{_hooks:{didInsert:function(e){t._uploader.linkDropArea(e.el)}},ondragover:this._handlers.ondragover,class:"dhx_simplevault"+(this._dragover?" dhx_simplevault--on-drag":"")},[(0,l.el)("div.dhx_simplevault-loader",[(0,l.el)("span.dhx_simplevault__icon.dxi.dxi-vault")]),(0,l.el)(".dhx_simplevault__drop-area",[(0,l.el)("input.dhx_simplevault__input",{_ref:"input",type:"file",id:n,disabled:r,accept:d}),(0,l.el)("span.dhx_simplevault__icon.dxi.dxi-vault"),(0,l.el)("span.dhx_simplevault__title",[(0,l.el)("span",g.default.simpleVaultText),(0,l.el)("br"),(0,l.el)("label.dhx_simplevault__label",{onclick:this._handlers.add,for:n}," "+g.default.simpleVaultLabel)])]),e]),(0,v.getValidationMessage)(this.config)&&(0,l.el)("span.dhx_input__caption",{},(0,v.getValidationMessage)(this.config))])])},e}(m.Label);e.SimpleVault=y},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={simpleVaultText:"Drag & drop files or folders here or",simpleVaultLabel:"browse files"}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.ToggleButton=void 0;var a=i(4),l=i(9),c=i(0),u=i(2),d=i(6),h=i(1),f=function(t){function e(e,i){var n=t.call(this,e,r({full:!1,selected:!1,disabled:!1,hidden:!1,width:"content",height:"content",text:"",icon:"",offIcon:"",offText:"",css:"",padding:""},i))||this;n.events=new u.EventSystem,n.props=s(s([],n.config.$group?[]:d.baseProps,!0),["value","offIcon","offText","icon","text","full"],!1),n.initHandlers();return n.mount(e,(0,c.create)({render:function(){return n.draw()}})),n}return o(e,t),e.prototype.setValue=function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1),"boolean"==typeof t&&t!==this.config.selected&&(e||this.events.fire(a.ItemEvent.beforeChange,[t]))&&(this.config.selected=t,!e&&this.events.fire(a.ItemEvent.change,[this.getValue()]),this.paint())},e.prototype.getValue=function(){var t=this.config,e=t.value,i=t.selected;return"string"==typeof e?i?e:"":"number"==typeof e?i?e:0:!!i},e.prototype.isSelected=function(){return!!this.config.selected},e.prototype.show=function(){this.config.hidden&&this.events.fire(a.ItemEvent.beforeShow,[this.getValue()])&&(this.config.hidden=!1,this.events.fire(a.ItemEvent.afterShow,[this.getValue()]))},e.prototype.hide=function(t){void 0===t&&(t=!1),this.config.hidden&&!t||!this.events.fire(a.ItemEvent.beforeHide,[this.getValue(),t])||(this.config.hidden=!0,this.events.fire(a.ItemEvent.afterHide,[this.getValue(),t]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype.focus=function(){var t=this;(0,c.awaitRedraw)().then((function(){t.getRootView().refs.button.el.focus(),t.paint()}))},e.prototype.blur=function(){var t=this;(0,c.awaitRedraw)().then((function(){t.getRootView().refs.button.el.blur(),t.paint()}))},e.prototype.disable=function(){this.config.disabled=!0,this.paint()},e.prototype.enable=function(){var t;this.config.disabled=!1,(null===(t=this.parent)||void 0===t?void 0:t.isDisabled())&&this.parent.enable(),this.paint()},e.prototype.isDisabled=function(){return!!this.config.disabled},e.prototype.setProperties=function(t){if(t&&!(0,h.isEmptyObj)(t)&&this.events.fire(a.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this.props.includes(e)&&(this.config[e]=t[e]);this.events.fire(a.ItemEvent.afterChangeProperties,[this.getProperties()])}},e.prototype.getProperties=function(){for(var t={},e=0,i=this.props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype.destructor=function(){this.events.clear(),this.unmount()},e.prototype.draw=function(){var t=this.config,e=t.id,i=t.name,n=t.selected,o=t.disabled,r=t.hidden,s=t.text,a=t.offText,l=t.icon,u=t.offIcon,d=t.full,h=t.$group,f=t.$gap,p=t.$extraCss,v=t.css;return(0,c.el)("button.dhx_toggle",{"data-dhx-id":i||e,role:"button",type:"button","aria-pressed":n,"aria-label":s||i,disabled:o,class:(h?"":"dhx_form-group dhx_form-group--toggle ")+(n?"dhx_toggle--selected ":"")+(o?"dhx_toggle--disabled ":"")+(r?"dhx_toggle--hidden ":"")+(d?"dhx_toggle--full ":"")+(h&&p||"")+(h&&v||""),style:{marginLeft:f},onclick:this.handlers.onclick,onfocus:this.handlers.onfocus,onblur:this.handlers.onblur,onkeydown:this.handlers.onkeydown,_ref:"button"},[l&&(0,c.el)("i.dhx_toggle__icon",{class:n?l:u||l}),s&&(0,c.el)("span.dhx_toggle__text",{},n?s:a||s)])},e.prototype.initHandlers=function(){var t=this;this.handlers={onclick:function(){return t.setValue(!t.config.selected)},onfocus:function(){return t.events.fire(a.ItemEvent.focus,[t.getValue()])},onblur:function(){return t.events.fire(a.ItemEvent.blur,[t.getValue()])},onkeydown:function(e){return t.events.fire(a.ItemEvent.keydown,[e])}}},e}(l.View);e.ToggleButton=f},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__rest||function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]])}return i},a=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Grid=void 0;var l=i(0),c=i(2),u=i(3),d=i(1),h=i(14),f=i(9),p=i(7),v=i(214),g=i(18),_=i(26),m=i(16),y=i(215),b=i(8),w=i(97),x=i(24),E=i(15),C=i(223),S=i(227),k=i(228),O=i(21),P=i(32),I=function(t){function e(e,i){void 0===i&&(i={});var n=t.call(this,e,i)||this;n._touch={duration:350,dblDuration:300,timer:null,start:!1},n._destructed=!1,n.version="8.4.5",n.name="grid",n.config=(0,d.extend)({rowHeight:40,headerRowHeight:40,footerRowHeight:40,keyNavigation:!0,sortable:!0,columns:[],data:[],tooltip:!0,rootParent:"string"==typeof e&&e||n._uid},n._normalizeConfig(i)),n.content=(0,C.getContent)(),n._scroll={top:0,left:0},n.config.autoWidth=n.config.autoWidth||n.config.fitToContainer,n.config.adjust=n.config.adjust||n.config.columnsAutoWidth,n.config.editable=n.config.editable||n.config.editing,n.config.leftSplit=n.config.leftSplit||n.config.splitAt,n.config.columns.forEach((function(t){t.format=t.format||t.dateFormat}));var o=function(t,e,i){var o;if(t&&e&&(0,m.isTooltip)(n.config,e)){var s=void 0;if("combobox"===e.editorType||"select"===e.editorType){var a=(0,g.getEditorOptions)(e,t).find((function(i){var n;return(i instanceof Object?i.id.toString():i)===(null===(n=t[e.id])||void 0===n?void 0:n.toString())}));s=a instanceof Object?a.value:a}else if("multiselect"===e.editorType){var l=null===(o=t[e.id])||void 0===o?void 0:o.toString().split(", ");if(null==l?void 0:l.length)s=(0,g.getEditorOptions)(e,t).filter((function(t){return l.includes(t instanceof Object?t.id.toString():t)})).map((function(t){return t instanceof Object?t.value:t})).join(", ")}var c=(0,g.toFormat)(s||t[e.id],e.type,e.format),u=function(){return!!c||"boolean"==typeof c};e.tooltipTemplate?c=e.tooltipTemplate(c,t,e)||null:u()&&e.template&&(c=e.template(c,t,e)),u()&&(0,m.showTooltip)(c,r({node:i,htmlEnable:(0,m.isHtmlEnable)(n.config,e)},(0,m.getTooltipConfig)(n.config,e)))}},s=function(t,e){var i,o;void 0===e&&(e="header");var s=t.target,a=s.getAttribute("data-dhx-text-id"),l=n.getColumn(s.getAttribute("data-dhx-id"));if(a&&l){var c=null===(i=l[e])||void 0===i?void 0:i.find((function(t){return t.id===a}));if((0,m.isContentTooltip)(n.config,l,c,e)){var u=(null==c?void 0:c.content)&&["avg","sum","max","min","count"].includes(c.content),d=u?null===(o=n.content[c.content])||void 0===o?void 0:o.toHtml(l,r(r({},n.config),{datacollection:n.data})):null==c?void 0:c.text;"function"==typeof(null==c?void 0:c.tooltipTemplate)&&(d=c.tooltipTemplate(d,c,l)),u&&"function"==typeof l.template&&(d=l.template(d,c,l)),(null==d?void 0:d.toString().length)&&(0,m.showTooltip)(d,r({node:s,htmlEnable:(0,m.isHtmlEnable)(n.config,l,c)},(0,m.getTooltipConfig)(n.config,l,c,e)))}}};if(n._htmlEvents={onclick:(0,u.eventHandler)((function(t){return(0,u.locate)(t)}),{"dhx_grid-header-cell--sortable":function(t,e){var i=t.target.getAttribute("dhx_resized"),o=n.getColumn(e);if(o&&(0,m.isSortable)(n.config,o)&&!i&&n.events.fire(b.GridEvents.beforeSort,[o,"asc"===n._sortDir?"desc":"asc"])){var r=(0,u.locate)(t,"data-dhx-text-id"),s=o.header.find((function(t){return t.id===r})),a="asc"===n._sortDir&&n._sortBy===e?"desc":"asc";n._sort(e,a,s.sortAs)}},"dhx_grid-expand-cell":function(t,e){t.target.classList.contains("dhx_grid-expand-cell-icon")&&n.events.fire(b.GridEvents.expand,[e])},"dhx_span-expand-cell":function(t,e){t.target.classList.contains("dhx_span-expand-cell-icon")&&n.events.fire(b.GridEvents.expand,[e])}}),onscroll:function(t){n.events.fire(b.GridEvents.scroll,[{y:t.target.scrollTop,x:t.target.scrollLeft}])},onmouseover:{".dhx_grid-cell.dhx_boolean-cell .dhx_checkbox.dhx_cell-editor__checkbox":function(t){var e=t.composedPath(),i=n.data.getItem(e[2].getAttribute("data-dhx-id")),r=n.getColumn(e[1].getAttribute("data-dhx-col-id"));o(i,r,t.target)},".dhx_grid-cell:not(.dhx_boolean-cell)":function(t){var e=n.data.getItem(t.composedPath()[1].getAttribute("data-dhx-id")),i=n.getColumn(t.target.getAttribute("data-dhx-col-id"));o(e,i,t.target)},".dhx_grid-cell:not(.dhx_tree-cell) .dhx_grid-cell__content, .dhx_tree-cell :not(.dhx_grid-cell__content)":function(t){var e=t.composedPath(),i=n.data.getItem(e[2].getAttribute("data-dhx-id")),r=n.getColumn(e[1].getAttribute("data-dhx-col-id"));o(i,r,t.target)},".dhx_grid-cell.dhx_tree-cell .dhx_grid-cell__content":function(t){var e=t.composedPath(),i=n.data.getItem(e[3].getAttribute("data-dhx-id")),r=n.getColumn(e[2].getAttribute("data-dhx-col-id"));o(i,r,e[2])},".dhx_span-cell:not(.dhx_grid-header-cell):not(.dhx_grid-footer-cell)":function(t){var e=t.target,i=n.data.getItem(e.getAttribute("data-dhx-id")),o=n.getColumn(e.getAttribute("data-dhx-col-id")),s=n.getSpan(i.id,o.id);if(i&&s&&(0,m.isTooltip)(n.config,s)){var a=s.text||(0,g.toFormat)(i[o.id],o.type,o.format);s.tooltipTemplate?a=s.tooltipTemplate(a,s):o.template&&(a=o.template(a,i,o)),a&&(0,m.showTooltip)(a,r({node:e,htmlEnable:(0,m.isHtmlEnable)(n.config,o)},(0,m.getTooltipConfig)(n.config,null,s)))}},".dhx_grid-header-cell":function(t){return s(t,"header")},".dhx_grid-footer-cell":function(t){return s(t,"footer")}}},n.config.eventHandlers)for(var a=0,c=Object.entries(n.config.eventHandlers);a<c.length;a++){var f=c[a],v=f[0],_=f[1];n._htmlEvents[v]=(0,u.eventHandler)((function(t){return{col:n.getColumn((0,u.locate)(t,"data-dhx-col-id")||(0,u.locate)(t,"data-dhx-id"))||{},row:n.data.getItem((0,u.locate)(t,"data-dhx-id"))||{}}}),_,n._htmlEvents[v])}return(n.config.dragMode||n.config.dragItem)&&(p.dragManager.setItem(n._uid,n),n.config.dragItem||(n.config.dragItem="row"),n.config.dragMode||(n.config.dragMode="both")),n._init(),n.config.columns&&n._parseColumns(!0),n._canDataParse()&&n.data.parse(n.config.data),n.selection=new y.Selection(n,{disabled:!n.config.selection},n.events,n._uid),n.mount(e,n._createView()),(0,l.awaitRedraw)().then((function(){n.config.keyNavigation&&(n.keyManager=new h.KeyManager((function(t,e){return!(e!==n._uid||!n.events.fire(b.GridEvents.beforeKeyDown,[t]))&&(n.events.fire(b.GridEvents.afterKeyDown,[t]),!0)})),n._initHotKey(),O.focusManager.setFocusId(n._uid))})),i.autoEmptyRow&&0===n.data.getLength()&&(n._addEmptyRow(),n.paint()),n}return o(e,t),e.prototype.destructor=function(){this._destructed=!0,this._destroyContent(),this.keyManager&&this.keyManager.destructor(),this.events&&this.events.clear(),this._events&&this._events.clear(),this.export=this.content=this.selection=null,this._activeFilters=this._filterData=this._scroll=this._touch=this._htmlEvents=this._hiddenFilters=null,this.unmount()},e.prototype.setColumns=function(t){var e=this;this._destroyContent(),this.config.columns=t,this._parseColumns(!0),(0,m.isAutoWidth)(this.config)&&this._applyAutoWidth(),this._adjustColumns(),this._checkFilters(),this._checkMarks(),this._normalizeSpans(),this.paint(),this.config.keyNavigation&&(0,l.awaitRedraw)().then((function(){e._initHotKey(!0),e.paint()}))},e.prototype.addRowCss=function(t,e){var i=this.data.getItem(t),n=i.$css||"";n.match(new RegExp(e,"g"))||(i.$css=n+" ".concat(e),this.paint())},e.prototype.removeRowCss=function(t,e){var i=this.data.getItem(t),n=i.$css?i.$css.replace(e,""):"";i.$css=n,this.paint()},e.prototype.addCellCss=function(t,e,i){var n=this.getColumn(e);if(n){n.$cellCss=n.$cellCss||{};var o=n.$cellCss[t];if(o){var r=o.match(new RegExp(i,"g"))?"":" ".concat(i);n.$cellCss[t]+=r}else this.data.getItem(t)&&(n.$cellCss[t]="".concat(i," "));this.paint()}},e.prototype.removeCellCss=function(t,e,i){var n=this.getColumn(e);n&&(n.$cellCss[t]?(n.$cellCss[t]=n.$cellCss[t].replace(i,""),this.paint()):this.data.getItem(t)&&(n.$cellCss[t]=""))},e.prototype.showColumn=function(t){var e=this.getColumn(t);if(e&&e.hidden&&this.events.fire(b.GridEvents.beforeColumnShow,[e])){e.hidden=!1,this.config.$totalWidth+=e.$width,this._parseColumns(),this.config.data=this._prepareData(this.data);var i=this._hiddenFilters&&this._hiddenFilters[e.id];i&&(this._activeFilters[e.id]=i,delete this._hiddenFilters[e.id],this._checkFilters(),this._checkSelectFilterValue()),this._normalizeSpans(),this.paint(),this.events.fire(b.GridEvents.afterColumnShow,[e])}},e.prototype.hideColumn=function(t){var e=this.getColumn(t);if(e&&!e.hidden&&this.events.fire(b.GridEvents.beforeColumnHide,[e])){e.hidden=!0,this.config.$totalWidth-=e.$width,this._parseColumns(),this.config.data=this._prepareData(this.data);var i=this._activeFilters&&this._activeFilters[e.id];i&&(this._hiddenFilters||(this._hiddenFilters={}),this._hiddenFilters[e.id]=i,delete this._activeFilters[e.id],this._checkFilters()),this._normalizeSpans(),this.paint(),this.events.fire(b.GridEvents.afterColumnHide,[e])}},e.prototype.isColumnHidden=function(t){var e=this.getColumn(t);if(e)return!!e.hidden},e.prototype.showRow=function(t){if((0,d.isDefined)(t)){var e=t.toString(),i=this.data.getItem(e);i&&i.hidden&&this.events.fire(b.GridEvents.beforeRowShow,[i])&&(this.data.update(e,{hidden:!1}),this._checkFilters(!0),this.paint(),this.events.fire(b.GridEvents.afterRowShow,[i]))}},e.prototype.hideRow=function(t){if((0,d.isDefined)(t)){var e=t.toString(),i=this.data.getItem(e);i&&this.events.fire(b.GridEvents.beforeRowHide,[i])&&(this.data.update(e,{hidden:!0}),this._checkFilters(!0),this._checkSelectFilterValue(),this.paint(),this.events.fire(b.GridEvents.afterRowHide,[i]))}},e.prototype.isRowHidden=function(t){if((0,d.isDefined)(t)){var e=this.data.getItem(t.toString());return e?!!e.hidden:void 0}},e.prototype.getScrollState=function(){return{x:this._scroll.left,y:this._scroll.top}},e.prototype.scroll=function(t,e){var i=this.getRootView().refs.grid_body.el.querySelector(".scroll-view")||this.getRootView().refs.grid_body.el;i.scrollLeft=!t&&0!==t||"number"!=typeof t?i.scrollLeft:t,i.scrollTop=!e&&0!==e||"number"!=typeof e?i.scrollTop:e,this.paint()},e.prototype.scrollTo=function(t,e){var i=this.config,n=i.topSplit,o=i.bottomSplit,r=i.columns,s=i.$width,a=i.$height,l=i.$headerHeight,c=r.filter((function(t){return!t.hidden})),u=this.data.getRawData(0,-1,null,2),h=c.findIndex((function(t){return t.id==e})),f=u.findIndex((function(e){return e.id==t}));if((0,d.isDefined)(h)&&(0,d.isDefined)(f)){var p=this.getScrollState(),v=this.selection.getCell(),g=v&&r.findIndex((function(t){return t.id==v.column.id})),_=v&&u.findIndex((function(t){return t.id==v.row.id})),y=(0,x.getCurrFixedCols)(this.config,b.Split.left).length,w=(0,x.getCurrFixedCols)(this.config,b.Split.right).length,E=y&&g<y,C=w&&g>=r.length-w,S=n&&_<n,k=o&&_>=u.length-o,O=(0,m.getTotalWidth)(c.slice(0,h)),P=(0,m.getTotalHeight)(u.slice(0,f));if(y){var I=(0,m.getTotalWidth)((0,x.getCurrFixedCols)(this.config,b.Split.left));(!E&&!C&&h<g||O-p.x-I<0)&&(O-=I)}if(w){var D=(0,m.getTotalWidth)((0,x.getCurrFixedCols)(this.config,b.Split.right));(!E&&!C&&h>g||s+p.x-O-c[h].$width-D<0)&&(O+=D)}if(n){var M=(0,m.getTotalHeight)(u.slice(0,n));(!S&&!k&&f<_||P-p.y-M<0)&&(P-=M)}if(o){var T=(0,m.getTotalHeight)(u.slice(-o));(!S&&!k&&f>_||a+p.y-l-P-u[f].$height-T<0)&&(P+=T)}var V=s+p.x,H=a+p.y-l,j=P-p.y-u[f].$height,F=O-p.x-r[h].$width,R=P+2*u[f].$height+18-H,A=O+2*r[h].$width+18-V,L=j>0&&R<0?0:j<0?j:R,$=F>0&&A<0?0:F<0?F:A;this.scroll($+p.x,L+p.y)}},e.prototype.adjustColumnWidth=function(t,e){void 0===e&&(e=!0);var i=this.config.columns.filter((function(t){return!t.hidden})),n=i.filter((function(e){return e.id===t})),o=this._adjustColumnsWidth({rows:this.config.data,cols:n,totalCols:i,adjust:e});this.config.$totalWidth=i.reduce((function(t,e){if(o[e.id]){e.$fixedWidth=!0;var i=e.maxWidth,n=e.minWidth,r=o[e.id];e.$width=r,i&&r>i&&(e.$width=i),n&&e.$width<n&&(e.$width=n)}return t+e.$width}),0),this.paint()},e.prototype.getCellRect=function(t,e){var i,n,o=this.config.columns.filter((function(t){return!t.hidden})),r=this.data.getRawData(0,-1),s=this.getSpan(t,e),a=o.findIndex((function(t){return t.id==(s?s.column:e)})),l=r.findIndex((function(e){return e.id==(s?s.row:t)}));return{x:(0,m.getTotalWidth)(o.slice(0,a)),y:(0,m.getTotalHeight)(r.slice(0,l)),height:(null==s?void 0:s.rowspan)>1?(0,_.getHeight)(r,s):(null===(i=r[l])||void 0===i?void 0:i.$height)||0,width:(null==s?void 0:s.colspan)>1?(0,_.getWidth)(this.config.columns,s.colspan,this.config.columns.findIndex((function(t){return t.id===s.column}))):(null===(n=o[a])||void 0===n?void 0:n.$width)||0}},e.prototype.getColumn=function(t){for(var e,i=0,n=null===(e=this.config)||void 0===e?void 0:e.columns;i<n.length;i++){var o=n[i];if(o.id==t)return o}},e.prototype.addSpan=function(t){this.config.spans=this.config.spans||[];var e=(0,d.findIndex)(this.config.spans,(function(e){return"".concat(e.row)==="".concat(t.row)&&"".concat(e.column)==="".concat(t.column)}));e>=0?this.config.spans[e]=t:(this.config.spans.push((0,P.normalizeSpan)(t,this.config,this.data)),this._checkMarks(),this.paint())},e.prototype.getSpan=function(t,e){var i,n=this;if(this.config.spans){var o=this.data.getIndex(t.toString()),r=this.config.columns.findIndex((function(t){return t.id===e})),s=(0,d.findIndex)(this.config.spans,(function(t){var e=n.data.getIndex(t.row.toString()),i=n.config.columns.findIndex((function(e){return e.id===t.column})),s=e,a=t.rowspan?e+t.rowspan:e+1,l=i,c=t.colspan?i+t.colspan:i+1;return o>=s&&o<a&&r>=l&&r<c}));return null===(i=this.config)||void 0===i?void 0:i.spans[s]}},e.prototype.removeSpan=function(t,e){if(this.config.spans){var i=(0,d.findIndex)(this.config.spans,(function(i){return"".concat(i.row)=="".concat(t)&&"".concat(i.column)=="".concat(e)}));this.config.spans.splice(i,1),this.paint()}},e.prototype.editCell=function(t,e,i){var n,o=this.data.getItem(t),r=this.getColumn(e);if(o&&r){var s=r.editorType,a=this.getSpan(o.id,r.id);if(i||(i=this.config.autoHeight&&"number"!==r.type?"textarea":"input","date"===r.type&&(i="datePicker"),"boolean"===r.type&&(i="checkbox"),s&&(i=s),(0,d.isDefined)(null==a?void 0:a.text)&&(i=this.config.autoHeight?"textarea":"input")),"number"===r.type)if(!((0,d.isDefined)(null==a?void 0:a.text)&&["input","textarea"].includes(i))&&!["input","select","combobox"].includes(i))return;this.events.fire(b.GridEvents.beforeEditStart,[o,r,i])&&((null===(n=this.config.$editable)||void 0===n?void 0:n.editor)||this.config.$editable&&this.config.$editable.row===t&&this.config.$editable.col===e&&this.config.$editable.editorType===i||(this.config.$editable={row:o.id,col:r.id,isSpan:!!a,editorType:i},this.selection.config.disabled||this.selection.setCell(t.toString(),e.toString()),this.paint(),this.events.fire(b.GridEvents.afterEditStart,[o,r,i])))}else(0,p.dhxWarning)("item not found")},e.prototype.editEnd=function(t){this.config.$editable&&this.config.$editable.editor&&this.config.$editable.editor.endEdit(t)},e.prototype.getSortingState=function(){return{dir:this._sortDir,by:this._sortBy}},e.prototype.getHeaderFilter=function(t){var e=this,i=this.getColumn(t);if(i){var n=null;return i.header.forEach((function(i){i.content&&(n=e.content[i.content].element[t])})),n}},e.prototype.edit=function(t,e,i){this.editCell(t,e,i)},e.prototype.paint=function(){var e=this.config.hotkeys?Object.keys(this.config.hotkeys).length:0;!this.keyManager||this.keyManager.getKeyStorageLength()-e||this._initHotKey(!0),t.prototype.paint.call(this)},e.prototype._createView=function(){var t=this;return(0,l.create)({render:function(e,i){return t._destructed?(0,l.el)("div"):(0,w.render)(e,i,t._htmlEvents,t.selection,t._uid)},hooks:this._initHooks()},this)},e.prototype._parseColumns=function(t){void 0===t&&(t=!1);var e=this.config.columns.filter((function(t){return!t.hidden}));this.normalizeColumns({config:this.config,columns:e,configChanged:t}),(0,g.countColumns)(this.config,e)},e.prototype.normalizeColumns=function(t){var e,i,n,o=this,r=t.config,s=t.columns,a=t.configChanged;r.$headerHeightMap=[],r.$footerHeightMap=[],r.$headerHeight=r.$footerHeight=0;for(var l=0,c=s;l<c.length;l++){(p=c[l]).htmlEnable=null!==(e=p.htmlEnable)&&void 0!==e?e:r.htmlEnable,p.$cellCss=p.$cellCss||{},(0,g.normalizeArray)(p,"header"),(0,g.normalizeArray)(p,"footer"),p.minWidth&&p.minWidth<20&&(p.minWidth=20),p.maxWidth&&p.maxWidth<20&&(p.maxWidth=20);var u=p.minWidth||100;p.width&&(u=(u=p.maxWidth&&p.minWidth?p.width>=p.minWidth&&p.width<=p.maxWidth?p.width:p.width>=p.maxWidth?p.maxWidth:p.minWidth:p.maxWidth?p.width<=p.maxWidth?p.width:p.maxWidth>100?p.maxWidth:100:p.minWidth?p.width>=p.minWidth?p.width:p.minWidth:p.width)<20?20:u),p.$width=p.$width&&!a?p.$width:u,p.$width>p.maxWidth&&(p.$width=p.maxWidth),p.$width<p.minWidth&&(p.$width=p.minWidth)}for(var d=function(t){if(null===(i=t.header)||void 0===i?void 0:i.length){var e=0;t.header.forEach((function(i,n){(e=r.headerAutoHeight?o.getNormalizeContentHeight(i,t,r):r.headerRowHeight)>(r.$headerHeightMap[n]||0)&&(r.$headerHeightMap[n]=Math.max(e,r.headerRowHeight))}))}if(null===(n=t.footer)||void 0===n?void 0:n.length){var s=0;t.footer.forEach((function(e,i){(s=r.footerAutoHeight?o.getNormalizeContentHeight(e,t,r):r.footerRowHeight)>(r.$footerHeightMap[i]||0)&&(r.$footerHeightMap[i]=Math.max(s,r.footerRowHeight))}))}},h=0,f=s;h<f.length;h++){var p;d(p=f[h])}r.$headerHeight=r.$headerHeightMap.reduce((function(t,e){return t+e}),0),r.$footerHeight=r.$footerHeightMap.reduce((function(t,e){return t+e}),0)},e.prototype.getNormalizeContentHeight=function(t,e,i){return this.config.footerRowHeight},e.prototype._parseData=function(){this._detectColsTypes(),this.config.data=this.data.map((function(t){return t})),this.config.data=this._prepareData(this.data),this._checkMarks(),this._applyLocalFilter(),this._checkFilters()},e.prototype._createCollection=function(t){this.data=new p.DataCollection({prep:t},this.events)},e.prototype._getRowIndex=function(t){return this.data.getIndex(t)},e.prototype._setEventHandlers=function(){var t=this,e=function(e){var i=e.source,n=e.target,o=s(e,["source","target"]);(null==i?void 0:i.length)&&i.map((function(e){return t.data.exists(e)&&t.data.update(e,o)})),t.data.exists(n)&&t.data.update(n,o)};this.data.events.on(p.DataEvents.load,(function(){t._applyLocalFilter(!0),t._parseData(),t._parseColumns(),t.config.autoEmptyRow&&t._addEmptyRow(),t.config.data instanceof p.DataCollection?(0,l.awaitRedraw)().then((function(){return t._normalizeSpans()})):t._normalizeSpans(),t.paint()})),this.data.events.on(p.DataEvents.change,(function(e,i,n){if("load"!==i)if("setPage"!==i){if("sort"===i)n.dir?t._sortDir=n.dir:t._sortBy===n.by?t._sortDir="asc"===t._sortDir?"desc":"asc":t._sortDir="asc",t._sortBy=n.by;else if("add"===i||"update"===i||"remove"===i){if((0,d.isId)(e)&&"remove"===i){var o=t.selection.getCells().find((function(t){return t.row.id===e}));o&&t.selection.removeCell(o.row.id,o.column.id)}t.config.data=t._prepareData(t.data)}else(0,p.isTreeCollection)(t.data)&&(t.config.data=t._prepareData(t.data)),t._adjustColumns();if((0,d.isId)(e)&&(t._checkFilters(),t._checkSelectFilterValue()),t._detectColsTypes(),t._removeMarks(),t._checkMarks(),t.config.autoEmptyRow&&(!t._activeFilters||(0,d.isEmptyObj)(t._activeFilters))){var r=t.data.find({by:"$emptyRow",match:!0});if(r){if(r.id===e)return;t.data.move(r.id,t.data.getLength()-1)}else t._addEmptyRow()}switch(i){case"add":case"remove":case"sort":t._normalizeSpans()}t._render()}else(0,l.awaitRedraw)().then((function(){var e=t.config.columns.find((function(t){return!0!==t.hidden}));t.scrollTo(t.data.getId(n[0]).toString(),e.id.toString()),t._render()}))})),this.data.events.on(p.DataEvents.filter,(function(e){e||t.data.getRawFilters({permanent:!0})||t._applyLocalFilter(),!e||(0,p.isOnlyPermanentFilters)(e)?(t._filterData=t.data.map((function(t){return t}))||[],t._setUniqueData(),t._clearFilterValue()):t._checkFilters(),t._removeMarks(),t._checkMarks(),t._normalizeSpans(),t.paint()})),this.data.events.on(p.DataEvents.removeAll,(function(){t._hiddenFilters={},t.config.columns.map((function(t){t.header.map((function(e){!e.content||"selectFilter"!==e.content&&"comboFilter"!==e.content||(t.$uniqueData=[])}))})),(0,d.isEmptyObj)(t._activeFilters)||t.data.resetFilter(),t._clearFilterValue(!0)})),this.events.on(p.DragEvents.beforeDrag,(function(e,i){return t.data.getItem(e.start)?t.events.fire(b.GridEvents.beforeRowDrag,[e,i]):"column"===t.config.dragItem||"both"===t.config.dragItem?t.events.fire(b.GridEvents.beforeColumnDrag,[e,i]):void 0})),this.events.on(p.DragEvents.dragStart,(function(i,n){var o=i.source,r=i.target,s=i.start;e({source:o,target:r,$dragtarget:!0}),t.data.getItem(s)?(t.events.fire(b.GridEvents.dragRowStart,[i,n]),t._autoScroll("vertical")):"column"!==t.config.dragItem&&"both"!==t.config.dragItem||(t.events.fire(b.GridEvents.dragColumnStart,[i,n]),t._autoScroll("horizontal"))})),this.events.on(p.DragEvents.dragIn,(function(e,i){t.data.getItem(e.start)?t.events.fire(b.GridEvents.dragRowIn,[e,i]):"column"!==t.config.dragItem&&"both"!==t.config.dragItem||t.events.fire(b.GridEvents.dragColumnIn,[e,i])})),this.events.on(p.DragEvents.dragOut,(function(e,i){t.data.getItem(e.start)?t.events.fire(b.GridEvents.dragRowOut,[e,i]):"column"!==t.config.dragItem&&"both"!==t.config.dragItem||t.events.fire(b.GridEvents.dragColumnOut,[e,i])})),this.events.on(p.DragEvents.canDrop,(function(i,n){var o=i,r=o.source,s=o.target,a=o.dragItem;delete i.dragItem,e({source:r,target:s,$drophere:!0}),"row"===a?t.events.fire(b.GridEvents.canRowDrop,[i,n]):"column"!==t.config.dragItem&&"both"!==t.config.dragItem||t.events.fire(b.GridEvents.canColumnDrop,[i,n])})),this.events.on(p.DragEvents.cancelDrop,(function(i,n){var o=i.source,r=i.target,s=i.start;e({source:o,target:r,$drophere:void 0,$dragtarget:void 0}),t.data.getItem(s)?t.events.fire(b.GridEvents.cancelRowDrop,[i,n]):"column"!==t.config.dragItem&&"both"!==t.config.dragItem||t.events.fire(b.GridEvents.cancelColumnDrop,[i,n])})),this.events.on(p.DragEvents.beforeDrop,(function(e,i){return t.data.getItem(e.start)||"row"===t.config.dragItem&&("both"===t.config.dragMode||"target"===t.config.dragMode)?t.events.fire(b.GridEvents.beforeRowDrop,[e,i]):"column"===t.config.dragItem||"both"===t.config.dragItem?t.events.fire(b.GridEvents.beforeColumnDrop,[e,i]):void 0})),this.events.on(p.DragEvents.afterDrop,(function(e,i){var n,o=e.source,r=e.target,s=e.start;if(t.data.getItem(e.start)){if(o.some((function(t){return t==r})))return;for(var l=t.data.getItem(e.start),c=0,u=t.config.columns;c<u.length;c++){var d=u[c];void 0===l[d.id]&&t.data.update(l.id,((n={})[d.id]=null,n),!0)}var h=t.data.getInitialData(),f=null==h?void 0:h.findIndex((function(t){return t.id==s})),p=null==h?void 0:h.findIndex((function(t){return t.id==r}));if(f>-1&&p>-1)if((null==o?void 0:o.length)>1){for(var v=[],g=function(t){var e=null==h?void 0:h.findIndex((function(e){return e.id==t})),i=null==h?void 0:h.splice(e,1)[0];v.push(i)},_=0,m=o;_<m.length;_++){g(m[_])}p=null==h?void 0:h.findIndex((function(t){return t.id==r})),p>0&&++p,null==h||h.splice.apply(h,a([p,0],v,!1))}else null==h||h.splice(p,0,null==h?void 0:h.splice(f,1)[0]);t._adjustColumns(),t._checkFilters(),t.paint(),t.events.fire(b.GridEvents.afterRowDrop,[e,i])}else"column"!==t.config.dragItem&&"both"!==t.config.dragItem||t.events.fire(b.GridEvents.afterColumnDrop,[e,i])})),this.events.on(p.DragEvents.afterDrag,(function(i,n){var o=i.source,r=i.target,s=i.start;e({source:o,target:r,$dragtarget:void 0}),t.data.getItem(s)?t.events.fire(b.GridEvents.afterRowDrag,[i,n]):"column"!==t.config.dragItem&&"both"!==t.config.dragItem||t.events.fire(b.GridEvents.afterColumnDrag,[i,n]),t._normalizeSpans()})),this.events.on(b.GridEvents.cellMouseDown,(function(e,i,n){if(n.targetTouches){if(t._touch.timer=setTimeout((function(){t._dragStart(n)}),t._touch.duration),t._touch.timeStamp)t._touch.dblDuration>=t._touch.timeStamp-+n.timeStamp.toFixed()&&((!1!==i.editable&&t.config.editable||i.editable)&&t.editCell(e.id,i.id,i.editorType),n.preventDefault(),t.events.fire(b.GridEvents.cellDblClick,[e,i,n])),t._touch.timeStamp=null;else t._touch.timeStamp=+n.timeStamp.toFixed();setTimeout((function(){t._touch.timeStamp=null}),t._touch.dblDuration)}else t._dragStart(n)})),this._events.on(b.GridSystemEvents.cellTouchMove,(function(e,i,n){t._touch.start&&n.preventDefault(),t._clearTouchTimer()})),this._events.on(b.GridSystemEvents.cellTouchEnd,(function(){t._touch.start=!1,t._clearTouchTimer()})),this.events.on(b.GridEvents.filterChange,(function(e,i,n,o){var r,s,a;if(t.events.fire(b.GridEvents.beforeFilter,[e,i])){if(t.config.autoEmptyRow){var l=t.data.find({by:"$emptyRow",match:!0});l&&t.data.remove(l.id)}t._activeFilters||(t._activeFilters={});var c=t.getColumn(i),u=c.header.filter((function(t){return t.content===n&&void 0!==t.customFilter}))[0];if("comboFilter"===n&&void 0!==e||"comboFilter"!==n&&""!==e){var d=(0,g.getEditorOptions)(c);"combobox"!==c.editorType&&"select"!==c.editorType&&"multiselect"!==c.editorType||!d||(e=Array.isArray(e)?e.map((function(t){var e;return(null===(e=d.find((function(e){return"string"==typeof e?e===t:e.value===t})))||void 0===e?void 0:e.id)||t})):null!==(s=null===(r=d.find((function(t){return"string"==typeof t?t===e:t.value===e})))||void 0===r?void 0:r.id)&&void 0!==s?s:e);t._activeFilters[i]={by:i,match:e,compare:null!==(a=null==u?void 0:u.customFilter)&&void 0!==a?a:function(e){var i=t.getColumn(e);return function(e,o,r,s){return t.content[n].match({val:e,match:o,obj:r,multi:s,col:i})}}(i),multi:"multiselect"===(null==c?void 0:c.editorType)}}else delete t._activeFilters[i];o||t.data.filter(t._activeFilters)}})),this.events.on(b.GridEvents.scroll,(function(e){t._scroll={top:e.y,left:e.x},t.editEnd(),t.paint()})),this.events.on(b.GridEvents.cellDblClick,(function(e,i,n){(0,u.locateNodeByClassName)(n,"dhx_boolean-cell")||e.hasOwnProperty("$groupName")||(!1!==i.editable&&t.config.editable||i.editable)&&t.editCell(e.id,i.id,i.editorType)})),this.events.on(b.GridEvents.afterEditEnd,(function(e,i,n){var o,s;if(!(null===(s=t.config.$editable)||void 0===s?void 0:s.editor)||t.config.$editable.col===n.id&&t.config.$editable.row===i.id){var a,l;t.config.$editable?(a=t.config.$editable.row,l=t.config.$editable.col):(a=i.id,l=n.id);var c=t.getSpan(a,l);if((0,d.isDefined)(null==c?void 0:c.text)&&void 0!==e)c.text=e.toString();else{var u=t.data.getItem(a);delete u.$emptyRow,void 0!==e&&t.data.update(a,r(r({},u),((o={})[l]=e,o)))}t.config.$editable=null,t.paint()}})),this.events.on(b.GridEvents.headerCellMouseDown,(function(e,i){var n=i.target.getAttribute("dhx_resized");if(n&&t.events.fire(b.GridEvents.beforeResizeStart,[e,i])&&(0,S.startResize)(t,n.toString(),i,(function(){t.paint(),t.config.$resizing=null,t.events.fire(b.GridEvents.afterResizeEnd,[e,i])})),i.targetTouches){if(t._touch.timeStamp)t._touch.dblDuration>=t._touch.timeStamp-+i.timeStamp.toFixed()&&(i.preventDefault(),t.events.fire(b.GridEvents.headerCellDblClick,[e,i])),t._touch.timeStamp=null;else t._touch.timeStamp=+i.timeStamp.toFixed();setTimeout((function(){t._touch.timeStamp=null}),t._touch.dblDuration)}})),this.events.on(b.GridEvents.footerCellDblClick,(function(e,i){if(i.targetTouches){if(t._touch.timeStamp)t._touch.dblDuration>=t._touch.timeStamp-+i.timeStamp.toFixed()&&(i.preventDefault(),t.events.fire(b.GridEvents.footerCellDblClick,[e,i])),t._touch.timeStamp=null;else t._touch.timeStamp=+i.timeStamp.toFixed();setTimeout((function(){t._touch.timeStamp=null}),t._touch.dblDuration)}})),this.events.on(b.GridEvents.resize,(function(){return t._parseColumns()})),this.events.on(b.GridEvents.afterResizeEnd,(function(e){var i;t.config.columns=null===(i=t.config.columns)||void 0===i?void 0:i.map((function(t){return t.id==e.id&&(t.width=e.$width),t})),t._parseColumns()}))},e.prototype._addEmptyRow=function(){var t=this.data.getId(this.data.getLength()-1),e=this.data.getItem(t),i=this.config.columns.filter((function(t){return!t.hidden}));(0,m.isRowEmpty)(e)||this.data.add(i.reduce((function(t,e){return t[e.id]="",t}),{$emptyRow:!0}))},e.prototype._sort=function(t,e,i){var n=this;e||(e=this._sortBy===t&&"asc"===this._sortDir?"desc":"asc");this.data.sort({by:t,dir:e,as:null!=i?i:function(e){var i=n.getColumn(t);return e&&"date"===i.type?"string"==typeof e?(0,E.stringToDate)(e,i.format).getTime():e.getTime():e?"".concat(e):""}}),this.events.fire(b.GridEvents.afterSort,[this.getColumn(t),e])},e.prototype._clearTouchTimer=function(){this._touch.timer&&(clearTimeout(this._touch.timer),this._touch.timer=null)},e.prototype._checkFilters=function(t){if(void 0===t&&(t=!1),(0,d.isEmptyObj)(this._activeFilters))t&&this.data.resetFilter(),this._filterData=this.data.map((function(t){return t}))||[],this._setUniqueData();else{var e=this.data.getRawFilters({permanent:!0});this.data.filter(e,{$restore:!0},!0),this._filterData=this.data.map((function(t){return t}))||[],this._setUniqueData(),this.data.filter(null,{$restore:!0},!0),this._filterData=this.data.map((function(t){return t}))||[],this._setUniqueData(!0)}},e.prototype._setUniqueData=function(t){var e=this;void 0===t&&(t=!1),this._filterData&&this.config.columns.forEach((function(i){i.header.forEach((function(n){if(n.content&&("selectFilter"===n.content||"comboFilter"===n.content)){var o=i.header.some((function(t){var e;return null===(e=t.filterConfig)||void 0===e?void 0:e.multiselection})),r=i.header.some((function(t){var e;return null===(e=t.filterConfig)||void 0===e?void 0:e.filter}));if(!t||t&&!o&&!r){var s=(0,g.getUnique)(e._filterData,i.id,o),a=(0,g.getEditorOptions)(i);"combobox"!==i.editorType&&"select"!==i.editorType&&"multiselect"!==i.editorType||!a||(s=s.map((function(t){var e=a.find((function(e){return"string"==typeof e?t===e:t===e.id}));return e&&"string"!=typeof e?e.value:t}))),s="string"!==i.type?Array.from(new Set(s.map((function(t){return(0,g.toFormat)(t,i.type,i.format)})))):s,t?i.$activeFilterData=s:(i.$uniqueData=s,i.$activeFilterData&&delete i.$activeFilterData)}}}))}))},e.prototype._checkSelectFilterValue=function(){var t,e=null===(t=this.content)||void 0===t?void 0:t.selectFilter;if(e)for(var i in e.value){var n=this.getColumn(i),o=e.value[i];n.hidden||!o||n.$uniqueData.includes(o)||e.element[i].clear()}},e.prototype._clearFilterValue=function(t){var e=this;void 0===t&&(t=!1),["selectFilter","inputFilter"].map((function(t){var i;return null===(i=e.content)||void 0===i?void 0:i[t]})).filter((function(t){return t})).forEach((function(i){for(var n in i.value)!i.value[n]||!t&&e.getColumn(n).hidden||i.element[n].clear(!0)}))},e.prototype._adjustColumns=function(){var t=this;if("boolean"==typeof this.config.adjust||"data"===this.config.adjust||"header"===this.config.adjust||"footer"===this.config.adjust){var e=this.config.columns.filter((function(t){return!t.hidden&&!(0,d.isDefined)(t.adjust)}));if(!e.length)return;var i=this.config.data&&this.config.data.length?this.config.data:this.data.map((function(t){return t})),n=this._adjustColumnsWidth({rows:i,cols:e,totalCols:e});this.config.$totalWidth=e.reduce((function(t,e){e.$fixedWidth=!0;var i=e.maxWidth,o=e.minWidth,r=n[e.id];return e.$width=r,i&&r>i&&(e.$width=i),o&&e.$width<o&&(e.$width=o),t+e.$width}),0)}this.config.columns.filter((function(t){return!t.hidden&&(0,d.isDefined)(t.adjust)})).forEach((function(e){t.adjustColumnWidth(e.id,e.adjust)}))},e.prototype._prepareData=function(t){var e=this;return(this.config.autoHeight||this.config.headerAutoHeight||this.config.footerAutoHeight)&&(this.config.autoHeight=this.config.headerAutoHeight=this.config.footerAutoHeight=!1),this._normalizeDataType(),this._adjustColumns(),t.map((function(t){return t.$height=Number(t.height)||e.config.rowHeight,t}))},e.prototype._adjustColumnsWidth=function(t){var e,i,n,o,r=this,s=t.rows,a=t.cols,l=t.adjust,c=void 0===l?this.config.adjust:l,u={};if("header"===c||!0===c){var d=a.filter((function(t){return t.header}));if(y=(0,g.getMaxColsWidth)(this._prepareColumnData(d,"header"),d,{font:"normal 14.4px Arial"},"header"))for(var h=0,f=Object.entries(y);h<f.length;h++){var p=f[h],v=p[0],_=p[1];u=Object.assign(u,((e={})[v]=+_+24+(o=this.getColumn(v),(0,m.isSortable)(r.config,o)?16:0),e))}}if("footer"===c||!0===c){var y;d=a.filter((function(t){return t.footer}));if(y=(0,g.getMaxColsWidth)(this._prepareColumnData(d,"footer"),d,{font:"normal 14.4px Arial"},"footer"))for(var b=0,w=Object.entries(y);b<w.length;b++){var x=w[b];v=x[0],_=x[1];(u[v]&&u[v]<+_+24||!u[v])&&(u=Object.assign(u,((i={})[v]=+_+24,i)))}}if(("data"===c||!0===c)&&(y=(0,g.getMaxColsWidth)(s,a,{font:"normal 14.4px Arial"},"data")))for(var E=0,C=Object.entries(y);E<C.length;E++){var S=C[E];v=S[0],_=S[1];(u[v]&&u[v]<+_+24||!u[v])&&(u=Object.assign(u,((n={})[v]=+_+24,n)))}return u},e.prototype._prepareColumnData=function(t,e){for(var i,n,o,s,a,l,c,u,d,h,f,p,v,g=[],_=0;_<t.length;_++){for(var y=[],b=0;b<(null===(n=t[_])||void 0===n?void 0:n[e].length);b++){var w={};if(null===(s=null===(o=t[_])||void 0===o?void 0:o[e][b])||void 0===s?void 0:s.text){var x=null===(l=null===(a=t[_])||void 0===a?void 0:a[e][b])||void 0===l?void 0:l.htmlEnable;w[t[_].id]=(null===(u=null===(c=t[_])||void 0===c?void 0:c[e][b])||void 0===u?void 0:u.text)||"",x&&(w[t[_].id]=(0,m.removeHTMLTags)(w[t[_].id])),y.push(w)}else if(null===(h=null===(d=t[_])||void 0===d?void 0:d[e][b])||void 0===h?void 0:h.content){var E=null===(f=this.content)||void 0===f?void 0:f[null===(v=null===(p=t[_])||void 0===p?void 0:p[e][b])||void 0===v?void 0:v.content];"function"==typeof E.calculate?w[t[_].id]=(null==E?void 0:E.toHtml(this.getColumn(t[_].id),r(r({},this.config),{datacollection:this.data})))||"":w[t[_].id]="",y.push(w)}}for(var C=0;C<y.length;C++)for(var S=0,k=Object.entries(y[C]);S<k.length;S++){var O=k[S],P=O[0],I=O[1];g[C]=r({},g[C])||{},g[C]=Object.assign(g[C],((i={})[P]=I,i))}}return g},e.prototype._dragStart=function(t){if(this.config.dragMode&&("row"===this.config.dragItem||"both"===this.config.dragItem)&&!this.config.$editable){var e=this.getColumn(t.target.getAttribute("data-dhx-col-id"));if(!1===(null==e?void 0:e.draggable))return;var i=(0,u.locateNode)(t,"data-dhx-id"),n=i&&i.getAttribute("data-dhx-id");return t.targetTouches&&(this._touch.start=!0),p.dragManager.onMouseDown(t,[n],[this._getRowGhost([n])])}},e.prototype._getRowGhost=function(t){var e=this._container||(0,u.toNode)(this._uid),i=t.map((function(t){return e.querySelector('.dhx_grid-row[data-dhx-id="'.concat(t,'"]'))})),n=document.createElement("div");return i.forEach((function(t){return t&&n.appendChild(t.cloneNode(!0))})),n},e.prototype._initHooks=function(){var t=this;return{didMount:function(){t._canDataParse(!0)&&(t._container||t._applyAutoWidth(),t.data.parse(t.config.data)),t.config.autoWidth&&t._parseColumns()}}},e.prototype._normalizeDataType=function(){var t=this,e=this.config.columns.reduce((function(t,e){return"number"===e.type&&t.push(e),t}),[]);e.length&&this.data.forEach((function(i){for(var n,o=0,r=e;o<r.length;o++){var s=r[o],a=(0,g.getValueForNumberColumn)(s,i[s.id]);if(Number.isNaN(a))throw new Error("Incorrect data in column with type 'number', see docs: https://docs.dhtmlx.com/suite/grid/api/api_gridcolumn_properties/");i[s.id]!==a&&t.data.update(i.id,((n={})[s.id]=a,n),!0)}}))},e.prototype._applyLocalFilter=function(t){void 0===t&&(t=!1);var e={add:!0,permanent:!0,$local:!0},i=this.data.getRawFilters(),n=Object.keys(i||{}).find((function(t){return i[t].config.$local}));n&&(e.id=n),t?this.data.filter((function(t){return t}),e,!0):this.data.filter((function(t){return t&&!t.hidden}),e,!0)},e.prototype._normalizeSpans=function(){var t,e=this;this.config.spans=null===(t=this.config.spans)||void 0===t?void 0:t.map((function(t){return(0,P.normalizeSpan)(t,e.config,e.data)}))},e.prototype._canDataParse=function(t){var e;return void 0===t&&(t=!1),!!((null===(e=this.config.data)||void 0===e?void 0:e.length)&&this.config.data instanceof Array&&this.config.columns)&&(this.config.autoWidth&&this.config.autoHeight?t:!t)},e.prototype._init=function(){this.events=new c.EventSystem(this),this._events=new c.EventSystem(this),this._attachDataCollection(),this.export=new v.Exporter("grid",this.version,this),this._setEventHandlers()},e.prototype._attachDataCollection=function(){var t=this;if(this.config.data instanceof p.DataCollection)return this.data=this.config.data,this.data.config.collapsed=this.config.collapsed,void(this.config.data=this.data.serialize());this._createCollection((function(e){return e.spans&&(t.config.spans=e.spans,e=e.data),e}))},e.prototype._setMarks=function(t,e){for(var i=[],n=0,o=this.data.map((function(e){return i.push(e[t.id]),{id:e.id,data:e[t.id],row:e}}));n<o.length;n++){var r=o[n],s=e(r.data,i,r.row,t);s&&(t.$cellCss=t.$cellCss||{},t.$cellCss[r.id]+=" "+s)}},e.prototype._checkMarks=function(){var t=this;this.config.columns.map((function(e){var i=e.mark;i&&("function"==typeof i?t._setMarks(e,i):t._setMarks(e,(function(t,e){var n=[];e.forEach((function(t){null!=t&&""!==t&&n.push(parseFloat(t))}));var o=(0,d.getMinArrayNumber)(n),r=(0,d.getMaxArrayNumber)(n);return i.max&&r===parseFloat(t)?i.max:!(!i.min||o!==parseFloat(t))&&i.min})))}))},e.prototype._removeMarks=function(){this.config.columns.forEach((function(t){t.mark&&(t.$cellCss={})}))},e.prototype._detectColsTypes=function(){this.config.columns.forEach((function(t){return t.type?t:t.format?(t.type="number",t):void(t.type||(t.type="string"))}))},e.prototype._destroyContent=function(){for(var t in this.content)"comboFilter"===t&&this.content[t].destroy()},e.prototype._render=function(){this.paint()},e.prototype._initHotKey=function(t){void 0===t&&(t=!1);var e=(0,k.getKeysHandlers)(this);for(var i in e)this.keyManager.exist(i)||this.keyManager.addHotKey(i,e[i]);if(!t)for(var i in this.config.hotkeys)this.keyManager.addHotKey(i,this.config.hotkeys[i])},e.prototype._normalizeConfig=function(t){return Object.keys(t).forEach((function(e){e.startsWith("$")&&delete t[e]})),t},e.prototype._autoScroll=function(t){var e,i,n,o=(null===(e=this.scrollView)||void 0===e?void 0:e.config.enable)?null===(i=this.getRootNode())||void 0===i?void 0:i.querySelector(".scroll-view"):null===(n=this.getRootNode())||void 0===n?void 0:n.querySelector(".dhx_grid-body");if(o){var r=null,s=o.getBoundingClientRect(),a=s.top,l=s.bottom,c=s.left,u=s.right,d=s.height,h=s.width,f=function(t){"up"===t||"down"===t?o.scrollBy(0,"up"===t?-40:40):o.scrollBy("left"===t?-40:40,0),r=setTimeout((function(){f(t)}),100)},p=function(e){var i=e.clientX,n=e.clientY;switch(t){case"horizontal":i>u-30&&i<u&&n>a&&n<l?r||f("right"):i>c&&i<c+30&&n>a&&n<l?r||f("left"):r&&(clearTimeout(r),r=null);break;case"vertical":n>l-30&&n<l&&i>c&&i<u?r||f("down"):n>a&&n<a+30&&i>c&&i<u?r||f("up"):r&&(clearTimeout(r),r=null)}};(h<o.scrollWidth||d<o.scrollHeight)&&(document.addEventListener("pointermove",p),document.addEventListener("pointerup",(function(){document.removeEventListener("pointermove",p),r&&clearTimeout(r)}),{once:!0}))}},e.prototype._applyAutoWidth=function(){var t,e,i=this._container||(null===(t=this.getRootView().node.parent)||void 0===t?void 0:t.el);if(i){var n=(0,w.getElementSizes)(i),o=null===(e=this.scrollView)||void 0===e?void 0:e.config.enable;(0,w.applyAutoWidth)(this.config,n,o)}},e}(f.View);e.Grid=I},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.proRender=e.render=e.applyAutoWidth=e.getElementSizes=e.getRenderConfig=void 0;var o=i(0),r=i(3),s=i(18),a=i(16),l=i(8),c=i(32),u=i(98),d=i(99),h=i(1),f=i(24);function p(t,e,i,n){var o=void 0===i?[0,0]:i,r=o[0],s=o[1],a=t[0],l=t[1],c=e[0],u=e[1];return c<=a&&a<=u||c<=l&&l<=u||a<=c&&u<=l||a<r||s&&l>=n-s}function v(t,e,i){var o=t.config,r=o.spans,a=void 0===r?[]:r,c=o.columns,u=o.leftSplit,d=void 0===u?0:u,h=o.topSplit,v=void 0===h?0:h,g=o.rightSplit,_=void 0===g?0:g,m=o.bottomSplit,y=void 0===m?0:m,b=c.filter((function(t){return!t.hidden})),w=(0,s.calculatePositions)(i.width,i.height,t._scroll,o,e),x=b.slice(w.xStart,w.xEnd),E=e.slice(w.yStart,w.yEnd),C=a.filter((function(t){var i;if(!(null===(i=t.$renderFrom)||void 0===i?void 0:i.length))return!1;var n=p(t.$rowsVisibility,[w.yStart,w.yEnd],[v,y],e.length),o=p(t.$colsVisibility,[w.xStart,w.xEnd],[d,_],c.length);return n&&o})),S={left:(0,f.getCurrFixedCols)(o,l.Split.left),right:(0,f.getCurrFixedCols)(o,l.Split.right)},k={top:e.slice(0,o.topSplit||0),bottom:o.bottomSplit?e.slice(-o.bottomSplit):[]};return n(n({},o),{data:e,columns:o.columns,scroll:t._scroll,$positions:w,headerHeight:o.$headerHeight,footerHeight:o.$footerHeight,firstColId:b[0]&&b[0].id,events:t.events,_events:t._events,filteredColumns:b,currentColumns:x,currentRows:E,currentSpans:C,fixedColumns:S,fixedRows:k,sortBy:t._sortBy,sortDir:t._sortDir,content:t.content,gridId:t._uid,$renderFrom:"render"})}function g(t){if(t&&(t.tagName||(t=t._parent._container),t)){var e=t.currentStyle||window.getComputedStyle(t),i=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)||0,n=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)||0;return{width:t.clientWidth-i,height:t.clientHeight-n}}}function _(t,e){var i,r=(0,c.getCells)(t),s=t.filteredColumns,l=t.$resizing,u=t.$totalHeight,d=t.$totalWidth,f=t.leftSplit,p=t.data,v=t.$positions,g=(0,c.getSpans)(t);if(l){var _=(0,h.findIndex)(s,(function(t){return t.id===l})),m=(0,a.getTotalWidth)(s.slice(0,_))+s[_].$width;i=(0,o.el)(".dhx_grid-resize-line",{style:{top:0,left:m,height:u}})}var y=t.selection?t.selection.toHTML():null;y="string"==typeof y?(0,o.el)("div.dhx_selection",{".innerHTML":y}):y;var b,w=v;return(0,o.el)(".dhx_data-wrap",{style:{height:u,width:d,"padding-left":e.x,"padding-top":e.y},role:"presentation"},[(0,o.el)(".dhx_grid_data".concat(f?".dhx_grid_fixed_left":""),n(n({_flags:o.KEYED_LIST},(0,c.getHandlers)(w.yStart,w.xStart,t)),(b=p.length,{role:"rowgroup","aria-rowcount":b})),r),(0,o.el)(".dhx_span-spans",n({role:"presentation"},(0,c.getHandlers)(w.yStart,w.xStart,t)),g),(0,o.el)(".dhx_grid_selection",{_ref:"selection","aria-hidden":"true"},[y,i])])}function m(t,e,i){var n=i.height-f.BORDERS;return n=e?n:n-t.headerHeight,t.$footer?e?n:n-t.footerHeight:n}function y(t,e,i){void 0===i&&(i=!1);var n=!i&&t.$totalHeight>=e.height-(t.$headerHeight||0)?(0,r.getScrollbarWidth)():0,o=e.width-f.BORDERS-n;if(!(o<0)){var s=(t.columns||[]).filter((function(t){return!t.hidden})),l=[],c=[];s.forEach((function(e){e.width||e.$fixedWidth||!(0,a.isAutoWidth)(t,e)?l.push(e):c.push(e)}));var u=c.reduce((function(t,e){return t+(e.gravity||1)}),0),d=(0,a.getTotalWidth)(l);c.forEach((function(t){var e=o>d?(o-d)*((t.gravity||1)/u):0,i=t.minWidth&&e<(t.minWidth||0),n=t.maxWidth&&e>(t.maxWidth||0);i?(t.$width=t.minWidth,d+=(t.$width||0)-e,c=c.filter((function(e){return e.id!=t.id})),l.push(t)):n&&(t.$width=t.maxWidth,d+=(t.$width||0)-e,c=c.filter((function(e){return e.id!=t.id})),l.push(t))})),u=c.reduce((function(t,e){return t+(e.gravity||1)}),0),d=(0,a.getTotalWidth)(l),c.forEach((function(t){var e=o>d?(o-d)*((t.gravity||1)/u):0;t.$width=e}))}}e.getRenderConfig=v,e.getElementSizes=g,e.applyAutoWidth=y,e.render=function(t,e,i,r,s){var h=g(e._container);t&&t.node&&t.node.parent&&t.node.parent.el&&(h=g(t.node.parent.el));var p=e.config;if(!p)return(0,o.el)("div");if(!p.columns.length)return(0,o.el)(".dhx_grid",{"data-dhx-widget-id":s,"data-dhx-root-id":p.rootParent,role:"empty-grid"});var b=e.data.getRawData(0,-1,null,2);p.columns.reduce((function(t,e){return e.hidden?t:e.hidden}),!0)?p.$totalHeight=0:p.$totalHeight=b.reduce((function(t,e){return t+(e.$height||0)}),0);var w={width:(p.width&&"number"==typeof p.width?p.width:null==h?void 0:h.width)||0,height:(p.height&&"number"==typeof p.height?p.height:null==h?void 0:h.height)||0};(0,a.isAutoWidth)(p)&&(y(p,w),p.$totalWidth=(0,a.getTotalWidth)(p.columns.filter((function(t){return!t.hidden})))),p.$width=w.width,p.$height=w.height;var x=v(e,b,w);x.selection=r,x.datacollection=e.data;var E=(0,c.getShifts)(x);x.$scrollBarWidth=(0,f.calcScrollBarWidth)(x);var C,S,k,O,P=(0,a.isCssSupport)("position","sticky"),I=m(x,P,w),D={wrapper:w,sticky:P,shifts:E,gridBodyHeight:I},M=(0,d.getFixedRows)(x,n(n({},D),{name:"header",position:"top"})),T=x.$footer?(0,d.getFixedRows)(x,n(n({},D),{name:"footer",position:"bottom"})):null,V=x.$totalWidth+f.BORDERS<w.width?"dhx_grid-less-width":"",H=x.$totalHeight+f.BORDERS<w.height?"dhx_grid-less-height":"",j=x.fixedColumns.right.length?"dhx_grid__contains_cols_right--fixed":"",F=p.bottomSplit?"dhx_grid__contains_rows_bottom--fixed":"";if(!t.node){var R=e.getScrollState(),A=R.x,L=R.y;(0,o.awaitRedraw)().then((function(){e.scroll(A,L)}))}return(0,o.el)(".dhx_grid.dhx_widget",n({class:(x.css||"")+(P?"":" dhx_grid_border")+(p.multiselection?" dhx_no-select--pointer":""),"data-dhx-widget-id":s,"data-dhx-root-id":p.rootParent},(C=x.data,S=p.columns,k=x.editable,O=x.multiselection,{role:"grid","aria-rowcount":C.length,"aria-colcount":S.filter((function(t){return!t.hidden})).length,"aria-readonly":k?"false":"true","aria-multiselectable":O?"true":"false"})),[(0,o.resizer)((function(){return e.paint()})),(0,o.el)(".dhx_grid-content",n(n({style:n({},w)},i),{class:"".concat(V," ").concat(H," ").concat(j," ").concat(F).trim(),role:"presentation"}),[P?null:M,(0,o.el)(".dhx_grid-body",{style:{height:I,width:w.width-f.BORDERS},onscroll:i.onscroll,_ref:"grid_body",role:"presentation"},[(0,o.el)("div",{},[P?M:null,_(x,E),P?T:null])]),(0,u.getFixedColsHeader)(x,D,l.Split.left),(0,u.getFixedColsHeader)(x,D,l.Split.right),(0,u.getFixedCols)(x,D,l.Split.left),(0,u.getFixedCols)(x,D,l.Split.right),(0,d.getFixedDataRows)(x,D,l.Split.top),(0,d.getFixedDataRows)(x,D,l.Split.bottom),P?null:T])])},e.proRender=function(t,e,i,r,s){var h,p=g(e._container);t&&t.node&&t.node.parent&&t.node.parent.el&&(p=g(t.node.parent.el));var b=e.config;if(!b)return(0,o.el)("div");if(!b.columns.length)return(0,o.el)(".dhx_grid",{"data-dhx-widget-id":s,"data-dhx-root-id":b.rootParent,role:"empty-grid"});var w,x=e.data.getRawData(0,-1,null,2);b.columns.reduce((function(t,e){return e.hidden?t:e.hidden}),!0)?b.$totalHeight=0:b.$totalHeight=x.reduce((function(t,e){return t+(e.$height||0)}),0),"auto"===e.config.height&&(w=function(t,e,i){var n,o,r=t._container,s=e.$headerHeight+(e.$footerHeight&&e.$footerHeight+1)+e.$totalHeight+f.BORDERS;if(r){var a=window.getComputedStyle(r),l=a.minHeight,c=a.maxHeight;return s<=parseFloat(l)?parseFloat(l):s>=parseFloat(c)?parseFloat(c):s+(0,f.calcScrollBarWidth)(e,!!(null===(n=t.scrollView)||void 0===n?void 0:n.config.enable),i).x}return s+(i?(0,f.calcScrollBarWidth)(e,!!(null===(o=t.scrollView)||void 0===o?void 0:o.config.enable),i).x:0)}(e,b,p));var E=b.width&&"number"==typeof b.width?b.width:null==p?void 0:p.width,C=b.height&&"number"==typeof b.height?b.height:null==p?void 0:p.height,S={width:E||0,height:("auto"===e.config.height?w:C)||0};(0,a.isAutoWidth)(b)&&(y(b,S,e.scrollView&&e.scrollView.config.enable),b.$totalWidth=(0,a.getTotalWidth)(b.columns.filter((function(t){return!t.hidden})))),b.$width=S.width,b.$height=S.height;var k=v(e,x,S);k.selection=r,k.datacollection=e.data;var O=(0,c.getShifts)(k);k.$scrollBarWidth=(0,f.calcScrollBarWidth)(k,!!(null===(h=e.scrollView)||void 0===h?void 0:h.config.enable));var P=(0,a.isCssSupport)("position","sticky"),I=m(k,P,S),D={wrapper:S,sticky:P,shifts:O,gridBodyHeight:I},M=(0,d.getFixedRows)(k,n(n({},D),{name:"header",position:"top"})),T=k.$footer?(0,d.getFixedRows)(k,n(n({},D),{name:"footer",position:"bottom"})):null,V=k.$totalWidth+f.BORDERS<S.width?"dhx_grid-less-width":"",H=k.$totalHeight+f.BORDERS<S.height?"dhx_grid-less-height":"",j=k.fixedColumns.right.length?"dhx_grid__contains_cols_right--fixed":"",F=b.bottomSplit?"dhx_grid__contains_rows_bottom--fixed":"";if(!t.node){var R=e.getScrollState(),A=R.x,L=R.y;(0,o.awaitRedraw)().then((function(){e.scroll(A,L)}))}var $=(0,o.el)("div",{},[P?M:null,_(k,O),P?T:null]);return(0,o.el)(".dhx_grid.dhx_widget",{class:(k.css||"")+(P?"":" dhx_grid_border")+(b.multiselection?" dhx_no-select--pointer":""),style:{height:null!=w?w:null},"data-dhx-widget-id":s,"data-dhx-root-id":b.rootParent,role:"grid","aria-rowcount":k.data.length,"aria-colcount":b.columns.filter((function(t){return!t.hidden})).length},[(0,o.resizer)((function(){return e.paint()})),(0,o.el)(".dhx_grid-content",n(n({style:n({},S)},i),{class:"".concat(V," ").concat(H," ").concat(j," ").concat(F).trim(),role:"presentation"}),[P?null:M,(0,o.el)(".dhx_grid-body",{style:{height:I,width:S.width-f.BORDERS},onscroll:i.onscroll,_ref:"grid_body",role:"presentation"},[e.scrollView&&e.scrollView.config.enable?e.scrollView.render([$]):$]),(0,u.getFixedColsHeader)(k,D,l.Split.left),(0,u.getFixedColsHeader)(k,D,l.Split.right),(0,u.getFixedCols)(k,D,l.Split.left),(0,u.getFixedCols)(k,D,l.Split.right),(0,d.getFixedDataRows)(k,D,l.Split.top),(0,d.getFixedDataRows)(k,D,l.Split.bottom),P?null:T])])}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.getFixedCols=e.getFixedColsHeader=void 0;var r=i(0),s=i(8),a=i(32),l=i(99),c=i(16),u=i(24);e.getFixedColsHeader=function(t,e,i){if((i!==s.Split.left||"number"==typeof t.leftSplit&&t.fixedColumns.left.length)&&(i!==s.Split.right||"number"==typeof t.rightSplit&&t.fixedColumns.right.length)){var o=t.leftSplit,a=t.rightSplit,d=t.$positions,h=t.$totalWidth,f=t.$scrollBarWidth,p=i===s.Split.right,v=p?t.fixedColumns.right:t.fixedColumns.left,g=(0,c.getTotalWidth)(v),_=(0,l.getFixedRows)(n(n({},t),{currentColumns:v,$positions:n(n({},d),{xStart:0,xEnd:p?a:o}),scroll:{top:0,left:0},filteredColumns:v}),n(n({},e),{name:"header",position:"top",shifts:{x:0,y:0}}),i),m=n(n({},e),{name:"header",position:"top"});return(0,r.el)(".dhx_".concat(m.name,"-fixed-cols"),n({onwheel:c.scrollFixedColsAndRows,class:p?"dhx_grid__cols_right--fixed":"dhx_grid__cols_left--fixed",style:{position:"absolute",top:0,left:p?h<e.wrapper.width-f.y-u.BORDERS?h-g:e.wrapper.width-g-f.y-u.BORDERS:0,width:g,overflow:"hidden"}},{role:"rowgroup","aria-rowcount":_.length}),_.body)}},e.getFixedCols=function(t,e,i,d){if((i!==s.Split.left||"number"==typeof t.leftSplit&&t.fixedColumns.left.length)&&(i!==s.Split.right||"number"==typeof t.rightSplit&&t.fixedColumns.right.length)){var h,f=t.leftSplit,p=t.rightSplit,v=t.$totalWidth,g=t.$totalHeight,_=t.headerHeight,m=t.footerHeight,y=t.$positions,b=t.scroll,w=t.data,x=t.$scrollBarWidth,E=i===s.Split.right,C=g+_+m;h=C>e.gridBodyHeight?t.$footer?C-x.x:e.gridBodyHeight:C<e.gridBodyHeight-x.x?C:t.$footer?e.gridBodyHeight:e.gridBodyHeight-x.x;var S=E?t.fixedColumns.right:t.fixedColumns.left,k=(0,c.getTotalWidth)(S),O=E?"rightFixedCols":"leftFixedCols",P=(0,a.getCells)(n(n({},t),{filteredColumns:S,$renderFrom:O,$positions:n(n({},y),{xStart:0,xEnd:E?p:f})})),I=e.sticky,D=n(n({},e),{name:"footer",position:"bottom"}),M=(0,l.getRows)(n(n({},t),{currentColumns:S,$positions:n(n({},y),{xStart:0,xEnd:E?p:f})}),n(n({},e),{name:"footer",position:"bottom"})),T=0;M.forEach((function(t){return T+=t.attrs.style.height}));var V=(0,l.getFixedSpans)(n(n({},t),{filteredColumns:S}),n(n({},e),{name:"footer",position:"bottom"}),i),H=function(t){return{role:"rowgroup","aria-rowcount":t}},j=I?(0,r.el)(".dhx_".concat(D.name,"-fixed-cols"),n({onwheel:c.scrollFixedColsAndRows,class:E?"dhx_grid__cols_right--fixed":"dhx_grid__cols_left--fixed",style:{position:"absolute",top:h<e.gridBodyHeight?h-T:null,left:E?v<e.wrapper.width-x.y-u.BORDERS?v-k:e.wrapper.width-k-x.y-u.BORDERS:0,bottom:h>=e.gridBodyHeight?"".concat(I?x.x:0,"px"):null,overflow:"hidden"}},H(M.length)),[M,(0,r.el)("span.dhx_span-spans",{class:"dhx_footer-spans",role:"presentation"},V)]):null,F=y,R=(0,a.getSpans)(n(n({},t),{$renderFrom:O}),d||(E?s.Split.right:s.Split.left));return[(0,r.el)(".dhx_grid-fixed-cols-wrap",n({style:{left:E?v<e.wrapper.width-x.y-u.BORDERS?v-k:e.wrapper.width-k-x.y-u.BORDERS:0,height:h>=e.gridBodyHeight?(I?e.gridBodyHeight:e.gridBodyHeight+_)-x.x:h,paddingTop:_,overflow:"hidden",width:k}},{role:"presentation","aria-label":"Fixed column"}),[(0,r.el)(".dhx_grid-fixed-cols",n(n({onwheel:c.scrollFixedColsAndRows,class:E?"dhx_grid__cols_right--fixed":"dhx_grid__cols_left--fixed",style:{top:-b.top+_-1+"px",paddingTop:e.shifts.y,height:g,position:"absolute"},_flags:r.KEYED_LIST},(0,a.getHandlers)(F.yStart,F.xStart,t)),H(w.length)),o(o([],P,!0),[R&&(0,r.el)("span.dhx_span-spans",{role:"presentation"},[R])],!1)),E?(0,r.el)(".dhx_grid__cols-border--frozen",{role:"presentation",style:{left:0}}):(0,r.el)(".dhx_grid__cols-border--frozen",{role:"presentation",style:{right:0}})]),t.$footer?j:null]}}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.getFixedDataRows=e.getFixedRows=e.getFixedSpans=e.getRows=void 0;var r=i(0),s=i(26),a=i(16),l=i(8),c=i(32),u=i(98),d=i(1),h=i(24);function f(t,e,i,n){i&&(i.toLocaleLowerCase().includes("touch")?e._events.fire(i,[t,n]):e.events.fire(i,[t,n]))}function p(t,e,i){return{onclick:[f,t,i,l.GridEvents[e+"CellClick"]],onmouseover:[f,t,i,l.GridEvents[e+"CellMouseOver"]],onmousedown:[f,t,i,l.GridEvents[e+"CellMouseDown"]],ontouchstart:[f,t,i,l.GridEvents[e+"CellMouseDown"]],ondblclick:[f,t,i,l.GridEvents[e+"CellDblClick"]],oncontextmenu:[f,t,i,l.GridEvents[e+"CellRightClick"]],ontouchmove:[f,t,i,l.GridSystemEvents[e+"CellTouchMove"]],ontouchend:[f,t,i,l.GridSystemEvents[e+"CelltouchEnd"]]}}function v(t,e,i,n,o,s,a){void 0===o&&(o=""),void 0===a&&(a=!1);var l=e.type?"dhx_".concat(e.type,"-cell"):"dhx_string-cell",c=i.content[t.content]&&i.content[t.content].toHtml(e,i),u={};i.filteredColumns.forEach((function(t){var e=!!i.content[t[n][s].content];u[t.id]=e&&i.content[t[n][s].content].toHtml(t,i)||t[n][s].text}));var d=e.template&&"string"==typeof c?e.template(c,u,e):c;return(0,r.el)(".".concat(l),{style:{class:o.trim(),padding:0}},[c&&("string"==typeof c||"number"==typeof c?(0,r.el)("div",{class:"dhx_grid-footer-cell-text",role:"presentation",".innerHTML":a?d:null},a?null:d):c)])}function g(t,e){if(!t.data||!t.filteredColumns)return[];var i,o=e.name,s="header"===o?t.headerAutoHeight:t.footerAutoHeight,l=t.$positions,c=t.currentColumns,u=function(t,e){var i=t.map((function(t){return t[e]||[{}]}));return(0,a.transpose)(i)}(c,o),d=1;return u.map((function(e,f){var g=("header"===o?t.$headerHeightMap:t.$footerHeightMap)[f];return(0,r.el)(".dhx_".concat(o,"-row"),n({style:{height:g}},{role:"row","aria-rowindex":f+1}),e.map((function(e,_){var m,y=e.css||"",b=c[_],w=l.xStart+_+1,x=(0,a.isHtmlEnable)(t,b,e),E="dxi dxi-sort-variant dhx_grid-sort-icon",C="none";if(t.sortBy&&"".concat(b.id)===t.sortBy&&!e.content){var S=t.sortDir||"asc";E+=" dhx_grid-sort-icon--".concat(S),y+=" dhx_grid-".concat(o,"-cell--sorted "),C="asc"===S?"ascending":"descending"}var k=(0,a.isSortable)(t,b)&&e.text&&"footer"!==o&&!1!==e.headerSort;k&&(y+=" dhx_grid-header-cell--sortable");var O=0===_?"dhx_first-column-cell":"",P=_===c.length-1?"dhx_last-column-cell":"";e.content||(e.align?y+=" dhx_grid-header-cell--align_".concat(e.align," "):y+=" dhx_grid-header-cell--".concat("number"===b.type||"percent"===b.type||"date"===b.type?"align_right":"align_left"," ")),y+="".concat(O," ").concat(P);var I=void 0!==b.resizable?b.resizable:t.resizable;if(I){var D=t.rightSplit&&t.$scrollBarWidth.xState&&t.fixedColumns.right.includes(b);I=(0,r.el)("div",{class:"dhx_resizer_grip_wrap","aria-hidden":"true"},[(0,r.el)("div",{class:"dhx_resizer_grip"+(D?" dhx_resizer_grip--left":" dhx_resizer_grip--right"),dhx_resized:b.id,style:{height:"".concat(100*u.length,"%")}},[(0,r.el)("div",{class:"dhx_resizer_grip_line"})])]);var M=b.header&&(null===(m=b.header[0])||void 0===m?void 0:m.colspan);M&&(i=M,d=1),i&&d!==i&&(0===f&&(I=null),d++),"footer"===o&&(I=null)}e.align&&(y+=" dhx_align-".concat(e.align));var T=function(t,i,n){var o={"aria-colindex":i};return"footer"===t||e.content?o.role="gridcell":(o.role="columnheader",o["aria-sort"]=n),o};if(e.content)return(0,r.el)(".dhx_grid-".concat(o,"-cell.dhx_grid-custom-content-cell"),n(n({class:y.trim(),"data-dhx-id":b.id,"data-dhx-text-id":e.id,_key:b.id,style:{width:b.$width,height:"footer"===o?g+h.BORDERS/2+"px":g+"px"}},p(b,o,t)),T(o,w,C)),[v(e,b,t,o,"",f,x),I||null]);var V,H="dhx_grid-header-cell-text_content";return s&&(H+=" dhx_grid-header-cell-text_content-auto-height"),(0,r.el)(".dhx_grid-".concat(o,"-cell"),n(n({class:y.trim(),"data-dhx-id":b.id,"data-dhx-text-id":e.id,_key:b.id,style:{width:b.$width,height:"footer"===o?g+h.BORDERS/2+"px":g+"px"}},p(b,o,t)),T(o,w,C)),[(0,r.el)("div.dhx_grid-header-cell-text",{role:"presentation"},[(0,r.el)("span",n(n({class:H},(V=e.text,k?{role:"button","aria-label":"Sort by ".concat(V)}:{})),{".innerHTML":x?e.text:null}),x?null:e.text),I||null]),k&&(0,r.el)("div",{class:E,"aria-hidden":"true"})])})))}))}function _(t,e,i){var o=t.columns,c=t.filteredColumns,u=(0,a.transpose)(c.map((function(t){return t[e.name]||[]}))),f=e.name,g="header"===f?t.headerAutoHeight:t.footerAutoHeight,_="header"===f?t.$headerHeightMap:t.$footerHeightMap,m=0;return u.map((function(u,y){m=0;var b=_[y];return(0,r.el)(".dhx_span-row",{class:"dhx_header-row","aria-hidden":"true"},u.map((function(u,w){var x,E=c[w];if(i===l.Split.right&&0===w&&!(u.colspan>1)){var C=(0,a.transpose)(o.map((function(t){return t[e.name]||[]})));t:for(var S=0;S<C[y].length;S++){var k=C[y][S];if(k.colspan>1)for(var O=o.slice(S,S+k.colspan),P=0;P<O.length;P++)if(O[P].id===E.id){x={cell:k,col:o[S],widthBefore:(0,s.getWidth)(O,P,0),isLastCol:S+k.colspan>=o.length};break t}}}var I=(null==x?void 0:x.cell)||u,D=(null==x?void 0:x.col)||E,M=(0,a.isHtmlEnable)(t,E,u);m+=D.hidden?0:D.$width;var T=0===w?"dhx_first-column-cell":"",V=i?1:t.fixedColumns.right.length+1,H=u.colspan>1&&(0,s.getReducedColspan)(o,E.id,u.colspan),j=(null==x?void 0:x.isLastCol)||w===c.length-V||(H||1)+(w-1)>=c.length-V?"dhx_last-column-cell":"",F=b,R=b*y;if(I.rowspan>1){for(var A=I.rowspan-1;A>0;)F+=_[y+A],A--;F-=1}if(I.rowspan>1||I.colspan>1){R=0;for(S=y-1;S>=0;S--)R+=_[S]}var L=(0,a.isSortable)(t,D)&&I.rowspan>1&&I.text&&"footer"!==e.name&&!1!==I.headerSort,$="dxi dxi-sort-variant dhx_grid-sort-icon";t.sortBy&&"".concat(D.id)===t.sortBy&&!I.content&&($+=" dhx_grid-sort-icon--".concat(t.sortDir||"asc"));var N=D.align?"dhx_align-".concat(D.align):"number"!==D.type&&"percent"!==D.type&&"date"!==D.type||I.colspan>1?"dhx_align-left":"dhx_align-right",z="dhx_grid-".concat(f,"-cell ").concat(T," ").concat(j," ").concat(I.rowspan>1?"dhx_span-cell__rowspan":""," ").concat(I.align?"dhx_align-".concat(I.align):N," ").concat(I.css?I.css:"");L&&(z+=" dhx_grid-header-cell--sortable"),I.content||(I.align?z+=" dhx_grid-header-cell--align_".concat(I.align," "):z+=" dhx_grid-header-cell--".concat("number"===D.type||"percent"===D.type||"date"===D.type?"align_right":"align_left"," "));var W=null;I.content&&((W=v(I,D,t,f,z,y)).attrs.style=n(n({},W.attrs.style),{width:"100%",borderRight:"0"}));var B="";m-D.$width>0&&(B="var(--dhx-border)");var G="dhx_grid-header-cell-text_content";g&&(G+=" dhx_grid-header-cell-text_content-auto-height");var q=(0,r.el)("span",{class:G,".innerHTML":M?I.text:null},M?null:I.text);return I.colspan>1||I.rowspan>1?(0,r.el)(".dhx_span-cell",n({style:{width:(0,s.getWidth)(o,I.colspan,(0,d.findIndex)(o,(function(t){return t.id===D.id}))),height:F,left:m-D.$width-((null==x?void 0:x.widthBefore)||0),borderLeft:B,top:R},class:z.trim(),"data-dhx-id":D.id,"data-dhx-text-id":I.id},p(D,f,t)),[W||I.rowspan>1?(0,r.el)("div.dhx_grid-header-cell-text",{role:"presentation"},[q]):q,L&&(0,r.el)("div",{class:$}),i===l.Split.left&&H&&w+H>c.length||x?(0,r.el)(".dhx_grid__cols-border--frozen",{role:"presentation",style:{left:((null==x?void 0:x.widthBefore)||(0,s.getWidth)(c,c.length-w,w))-h.BORDERS/2-(w&&i===l.Split.left?1:0)}}):null]):null})).filter((function(t){return t})))}))}function m(t){return{role:"rowgroup","aria-rowcount":t}}e.getRows=g,e.getFixedSpans=_,e.getFixedRows=function(t,e,i){var s,a=t.leftSplit,l=t.$totalWidth,c=g(t,e),u=_(t,e,i),d=null;if("footer"===e.name&&!e.sticky){var f=t.rightSplit,p=t.fixedColumns,v=function(i){void 0===i&&(i=!1);var o=i?p.right:p.left;return!i&&a>=0||i&&f>=0?g(n(n({},t),{currentColumns:o,$positions:n(n({},t.$positions),{xStart:0,xEnd:i?f:a})}),e):[]};d=o(o([],v(),!0),v(!0),!0)}var y,b=((s={position:"sticky"})[e.position]=0,s);return e.sticky||(b.left=-t.scroll.left,y=-t.scroll.left,b.position="relative"),(0,r.el)(".dhx_".concat(e.name,"-wrapper").concat(t.rightSplit?".dhx_grid__rows_right--fixed":""),{class:e.sticky?"":"dhx_compatible-".concat(e.name),style:n(n({},b),{left:e.sticky?y:0,height:"footer"===e.name?t[e.name+"Height"]+h.BORDERS/2:t[e.name+"Height"],width:e.sticky?l:e.wrapper.width-h.BORDERS}),role:"presentation"},[(0,r.el)(".dhx_grid-".concat(e.name).concat(a?".dhx_grid_fixed_left":""),{style:{height:"footer"===e.name?t[e.name+"Height"]+h.BORDERS/2:t[e.name+"Height"],left:y,paddingLeft:e.shifts.x,width:l},role:"presentation"},[(0,r.el)(".dhx_".concat(e.name,"-rows"),n({},m(o([],c,!0).length)),o([],c,!0)),(0,r.el)(".dhx_".concat(e.name,"-spans"),{style:{marginLeft:-e.shifts.x},class:"dhx_".concat(e.name,"-rows"),role:"presentation"},u),d&&(0,r.el)(".dhx_".concat(e.name,"-fixed-cols"),{style:{position:"absolute",top:0,left:t.scroll.left+"px",height:"100%"}},d)]),(0,r.el)("div",{style:{width:l},role:"presentation"})])},e.getFixedDataRows=function(t,e,i){if(!(i===l.Split.top&&"number"!=typeof t.topSplit||i===l.Split.bottom&&"number"!=typeof t.bottomSplit)){var s=t.$totalWidth,d=t.topSplit,f=t.bottomSplit,p=t.$positions,v=t.data,g=t.$totalHeight,_=t.$width,y=t.headerHeight,b=t.footerHeight,w=t.$scrollBarWidth,x=i===l.Split.bottom,E=x?t.fixedRows.bottom:t.fixedRows.top,C=x?"bottomFixedRows":"topFixedRows",S=(0,c.getCells)(n(n({},t),{data:E,$renderFrom:C,$positions:n(n({},p),{yStart:0,yEnd:x?f:d})})),k=E.reduce((function(t,e){return t+e.$height}),0),O=(0,c.getSpans)(n(n({},t),{$renderFrom:C,data:v}),x?l.Split.bottom:l.Split.top),P=(0,a.getTotalHeight)(t.fixedRows.bottom),I=function(o){return(0,u.getFixedCols)(n(n({},t),{headerHeight:0,data:E,$renderFrom:C,scroll:n(n({},t.scroll),{top:-1}),$positions:n(n({},p),{yStart:0,yEnd:x?f:d}),$totalHeight:k,$data:v}),n(n({},e),{shifts:n(n({},e.shifts),{y:0})}),o,i)||[]},D=o(o([],I(l.Split.left),!0),I(l.Split.right),!0);return[(0,r.el)(".dhx_grid-fixed-data-rows-wrap",{class:x?"dhx_grid__rows_bottom--fixed":"",style:{top:x?g+y+b<e.wrapper.height-w.x-h.BORDERS?g+y-P+h.BORDERS/2:e.wrapper.height-P-b-h.BORDERS/2-w.x:y,overflow:"hidden",height:k>e.wrapper.height?e.wrapper.height:k,width:s+w.y+h.BORDERS<_?s:_-w.y-h.BORDERS}},o(o([(0,r.el)(".dhx_grid-fixed-cols",n(n({onwheel:a.scrollFixedColsAndRows,style:{left:-t.scroll.left+"px",paddingLeft:e.shifts.x,position:"absolute",width:s},_flags:r.KEYED_LIST},(0,c.getHandlers)(0,p.xStart,t)),m(v.length)),[(0,r.el)(".dhx_grid-fixed-rows",{class:t.rightSplit?"dhx_grid__rows_right--fixed":""},o(o([],S,!0),[O&&(0,r.el)(".dhx_span-spans",{role:"presentation"},[O])],!1))])],D,!0),[t.bottomSplit?(0,r.el)(".dhx_grid__rows-border--frozen",{role:"presentation"}):null],!1))]}}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.Ribbon=void 0;var r=i(0),s=i(20),a=i(1),l=i(3),c=i(12),u=function(t){function e(e,i){var n=t.call(this,e,(0,a.extend)({navigationType:"click",$name:"ribbon"},i))||this;n._widgetHeight=[],n._listeners={input:function(t){var e=(0,l.locate)(t),i=n.data.getItem(e);if(i){var o=t.target.value;n.data.update(e,{value:o}),"input"===i.type&&n.events.fire(s.NavigationBarEvents.input,[e,o])}},tooltip:function(t){var e=(0,l.locateNode)(t);if(e){var i=e.getAttribute("data-dhx-id"),o=n.data.getItem(i);o.tooltip&&(0,c.tooltip)(o.tooltip,{node:e,position:c.Position.bottom})}}},n._currentRoot=null;return n.mount(e,(0,r.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype.getState=function(){var t={};for(var e in this.data.eachChild(this.data.getRoot(),(function(e){e.twoState&&!e.group?t[e.id]=e.active:"input"!==e.type&&"selectButton"!==e.type&&"datePicker"!==e.type||(t[e.id]=e.value)}),!0),this._groups)this._groups[e].active&&(t[e]=this._groups[e].active);return t},e.prototype.setState=function(t){for(var e in t)if(this._groups&&this._groups[e])this._groups[e].active&&(this.data.update(this._groups[e].active,{active:!1}),this._groups[e].active=t[e],this.data.update(t[e],{active:!0}));else{var i=this.data.getItem(e);switch(i.type){case"input":case"selectButton":this.data.update(e,{value:t[e]});break;case"datePicker":i.$calendar?t[e]?i.$calendar.setValue(t[e]):i.$calendar.clear():this.data.update(e,{value:t[e]});break;default:this.data.update(e,{active:t[e]})}}},e.prototype._getFactory=function(){return(0,s.createFactory)({widget:this,defaultType:"navItem",allowedTypes:["navItem","button","imageButton","selectButton","customHTML","input","separator","spacer","title","block","datePicker","customHTMLButton"],widgetName:"ribbon"})},e.prototype._getMode=function(t,e){return t.id===e?"bottom":"right"},e.prototype._close=function(e){this._activePosition=null,this._currentRoot=null,t.prototype._close.call(this,e)},e.prototype._draw=function(){var t=this;this._heightCalculate();var e=Math.max.apply(Math,this._widgetHeight);return(0,r.el)("ul.dhx_ribbon.dhx_widget",{"data-dhx-widget-id":this._uid,class:this.config.css?this.config.css:"",tabindex:0,onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,oninput:this._listeners.input,onmouseover:this._listeners.tooltip,onkeydown:this._handlers.onkeydown,_hooks:{didInsert:function(e){e.el.addEventListener("keyup",(function(e){if(9===e.which){var i=(0,l.locateNode)(document.activeElement);if(i){var n=i.getAttribute("data-dhx-id"),o=t.data.getItem(n);o.tooltip&&(0,c.tooltip)(o.tooltip,{node:i,position:c.Position.bottom,force:!0})}}}),!0)}}},[(0,r.el)("li",{class:"dhx_ribbon-block dhx_ribbon-block--root",style:{height:this._haveTitle?e+24:e}},[(0,r.el)("ul.dhx_ribbon-content.dhx_ribbon-content--full-width",{style:{height:e}},this.data.map((function(e){return"block"===e.type?t._drawBlock(e,!0):t._factory(e)}),this.data.getRoot(),!1))])])},e.prototype._setRoot=function(t){var e=this.data.getParent(t);"block"===this.data.getItem(e).type&&(this._currentRoot=t)},e.prototype._drawBlock=function(t,e){var i=this;if(!t||t.hidden)return null;var n="dhx_ribbon-block dhx_ribbon-block"+("col"===t.direction?"--col":"--row")+(t.title?" dhx_ribbon-block--title":"")+(t.css?" "+t.css:"")+(e?" dhx_ribbon-block--indented":""),o=t.items.map((function(t){return"block"===t.type?i._drawBlock(t):"separator"!==t.type&&"spacer"!==t.type?i._factory(t):null}),t.id,!1);return(0,r.el)("li",{class:n},[(0,r.el)("ul.dhx_ribbon-content",o),t.title?(0,r.el)("span.dhx_ribbon-content-label-wrapper",[(0,r.el)("span.dhx_ribbon-content-label",t.title)]):null])},e.prototype._getBlockHeight=function(t){return t.hidden?0:"medium"===t.size&&"button"!==t.type?72:36},e.prototype._heightCalculate=function(t){var e=this;void 0===t&&(t=this.data),t.forEach((function(t){var i;"block"===t.type&&"col"===t.direction?(i=t.items.reduce((function(t,i){return t+e._getBlockHeight(i)}),0),e._heightCalculate(t.items)):i=e._getBlockHeight(t),t.title&&(e._haveTitle=!0),e._widgetHeight.push(i)}))},e}(s.Navbar);e.Ribbon=u},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.Sidebar=void 0;var r=i(0),s=i(3),a=i(102),l=i(12),c=i(20),u=i(1),d=function(t){function e(e,i){var n=t.call(this,e,(0,u.extend)({navigationType:"click",width:"200",minWidth:"44",collapsed:!1,$name:"sidebar"},i))||this;n._currentRoot=null;return n.mount(e,(0,r.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype.toggle=function(){this.config.collapsed?this.expand():this.collapse(),this.events.fire(a.SidebarEvents.toggle,[this.config.collapsed]),this.paint()},e.prototype.collapse=function(){this.events.fire(a.SidebarEvents.beforeCollapse,[])&&(this.config.collapsed=!0,this.events.fire(a.SidebarEvents.afterCollapse,[]),this.paint())},e.prototype.expand=function(){this.events.fire(a.SidebarEvents.beforeExpand,[])&&(this.config.collapsed=!1,this.events.fire(a.SidebarEvents.afterExpand,[]),this.paint())},e.prototype.isCollapsed=function(){return this.config.collapsed},e.prototype._getFactory=function(){return(0,c.createFactory)({widget:this,defaultType:"navItem",allowedTypes:["navItem","menuItem","customHTML","separator","spacer","title","customHTMLButton"],widgetName:"sidebar"})},e.prototype._close=function(e){this._activePosition=null,this._currentRoot=null,t.prototype._close.call(this,e)},e.prototype._setRoot=function(t){this.data.getParent(t)===this.data.getRoot()&&(this._currentRoot=t)},e.prototype._customHandlers=function(){var t=this;return{tooltip:function(e){var i=(0,s.locateNode)(e);if(i){var n=i.getAttribute("data-dhx-id"),o=t.data.getItem(n);(o.tooltip||t.config.collapsed&&o.value)&&(0,l.tooltip)(o.tooltip||o.value,{node:i,position:l.Position.right})}}}},e.prototype._draw=function(){var t=this,e=this.config,i=e.width,n=e.minWidth,o=this.config.collapsed?n:i;return(0,r.el)("nav.dhx_widget.dhx_sidebar",{class:(this.config.css?this.config.css:"")+(this.config.collapsed?" dhx_sidebar--minimized":""),style:{width:o+"px"}},[(0,r.el)("ul.dhx_navbar.dhx_navbar--vertical",{"data-dhx-widget-id":this._uid,tabindex:0,onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,oninput:this._handlers.input,onmouseover:this._handlers.tooltip,onkeydown:this._handlers.onkeydown,_hooks:{didInsert:function(e){e.el.addEventListener("keyup",(function(e){if(9===e.which){var i=(0,s.locateNode)(document.activeElement);if(i){var n=i.getAttribute("data-dhx-id"),o=t.data.getItem(n);(o.tooltip||t.config.collapsed&&o.value)&&(0,l.tooltip)(o.tooltip||o.value,{node:i,position:l.Position.right,force:!0})}}}),!0)}}},this.data.map((function(e){return t._factory(e,!1)}),this.data.getRoot(),!1))])},e.prototype._getMode=function(){return"right"},e.prototype._customInitEvents=function(){var t=this;this.events.on(c.NavigationBarEvents.inputBlur,(function(){t._waitRestore&&(t.toggle(),t._waitRestore=!1)})),this.events.on(c.NavigationBarEvents.inputFocus,(function(){t.config.collapsed&&(t._waitRestore=!0,t.toggle())}))},e}(c.Navbar);e.Sidebar=d},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.SidebarEvents=void 0,function(t){t.beforeCollapse="beforeCollapse",t.afterCollapse="afterCollapse",t.beforeExpand="beforeExpand",t.afterExpand="afterExpand",t.toggle="toggle"}(n||(e.SidebarEvents=n={}))},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.TabbarEvents=void 0,function(t){t.beforeChange="beforeChange",t.change="change",t.beforeClose="beforeClose",t.afterClose="afterClose",t.close="close"}(n||(e.TabbarEvents=n={}))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Editor=e.EditorEvents=e.EditorMode=void 0;var n,o,r=i(0),s=i(2),a=i(3),l=i(14);!function(t){t.editText="text",t.selectItem="select"}(n||(e.EditorMode=n={})),function(t){t.begin="begin",t.end="end"}(o||(e.EditorEvents=o={}));var c=function(){function t(){var t=this;this.events=new s.EventSystem,this._keyManager=new l.KeyManager,this._documentClick=function(e){(0,a.locate)(e,"id")!=="input_"+t._item.id&&(t._removeClickListener(),t._finishEdit())},this._handlers={editText:function(e){t._currentValue=e.target.innerText},itemSelected:function(e){t._currentValue=e.target.value,t._finishEdit()},didInsert:function(t){var e=null==t?void 0:t.el;if(e){if(e.childNodes.length){var i=document.createRange(),n=window.getSelection();i.setStart(e.childNodes[0],e.innerText.length),i.collapse(!0),n.removeAllRanges(),n.addRange(i)}e.focus()}}}}return t.prototype.edit=function(t,e){return this._active&&this._item!==e.item&&this._finishEdit(),this._active=!0,this._targetId=t,this.config=e,this._item=e.item,this._currentValue=this._item.value,this.events.fire(o.begin,[t]),this._initOuterClick(),this._addHotkeys(),this._draw()},t.prototype.isEditable=function(){return this._active},t.prototype._draw=function(){var t=this;if(this.config.mode===n.selectItem){var e=this.config.options;return(0,r.el)("select",{id:"input_"+this._item.id,"data-dhx-id":this._item.id,onchange:this._handlers.itemSelected},e.map((function(e){return(0,r.el)("option",{class:"editor-select",value:e,selected:t._currentValue===e,style:{border:"1px solid"}},e)})))}return(0,r.el)("div.dhx_tree-editor",{_hooks:{didInsert:this._handlers.didInsert},id:"input_"+this._item.id,oninput:this._handlers.editText,contentEditable:!0},this._currentValue)},t.prototype._addHotkeys=function(){var t=this;this._keyManager.addHotKey("escape",(function(){t._finishEdit()})),this._keyManager.addHotKey("enter",(function(){t._finishEdit()}))},t.prototype._removeHotkeys=function(){this._keyManager.removeHotKey()},t.prototype._finishEdit=function(){this.events.fire(o.end,[this._targetId,this._item.id,this._currentValue])&&this._clear()},t.prototype._clear=function(){this._active=!1,this._removeClickListener(),this._removeHotkeys()},t.prototype._initOuterClick=function(){document.addEventListener("click",this._documentClick)},t.prototype._removeClickListener=function(){document.removeEventListener("click",this._documentClick)},t}();e.Editor=c},function(t,e,i){"use strict";var n,o;Object.defineProperty(e,"__esModule",{value:!0}),e.TreeEvents=e.SelectStatus=void 0,function(t){t[t.unselected=0]="unselected",t[t.selected=1]="selected",t[t.indeterminate=2]="indeterminate"}(n||(e.SelectStatus=n={})),function(t){t.itemClick="itemclick",t.itemDblClick="itemdblclick",t.itemRightClick="itemrightclick",t.beforeCollapse="beforeCollapse",t.afterCollapse="afterCollapse",t.beforeExpand="beforeExpand",t.afterExpand="afterExpand",t.beforeEditStart="beforeEditStart",t.afterEditStart="afterEditStart",t.beforeEditEnd="beforeEditEnd",t.afterEditEnd="afterEditEnd",t.focusChange="focusChange",t.beforeCheck="beforeCheck",t.afterCheck="afterCheck",t.itemContextMenu="itemcontextmenu"}(o||(e.TreeEvents=o={}))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Window=void 0;var n=i(1),o=i(0),r=i(2),s=i(14),a=i(21),l=i(11),c=i(34),u=i(242),d=i(107),h=i(243),f=i(20),p=function(){function t(t){var e=this;this.config=(0,n.extend)({movable:!1,resizable:!1,closable:t.modal},t),this.config.node&&"string"==typeof this.config.node?this.config.node=document.getElementById(this.config.node):this.config.node||(this.config.node=document.body),this._uid=(0,n.uid)(),this.events=new r.EventSystem(this);var i=this._popup=document.createElement("div");i.tabIndex=1,i.setAttribute("role","dialog"),i.setAttribute("aria-modal","".concat(this.config.modal||!1)),this.config.modal||h.default.add(this._uid,this._popup),this._fullScreen=!1,this._isActive=!1,this._keyManager=new s.KeyManager((function(t,i){return i===e._uid||e.getContainer().contains(document.activeElement)})),this._initHandlers(),this._initUI(),this.config.html&&this.attachHTML(this.config.html)}return t.prototype.paint=function(){this._layout.paint()},t.prototype.isFullScreen=function(){return this._fullScreen},t.prototype.setFullScreen=function(){this._fullScreen||(this._fullScreen=!0,this.setSize(window.innerWidth,window.innerHeight),this.setPosition(window.pageXOffset,window.pageYOffset))},t.prototype.unsetFullScreen=function(){this._fullScreen&&(this._fullScreen=!1,this.setSize(this._oldSizes.width,this._oldSizes.height),this.setPosition(this._oldPosition.left,this._oldPosition.top))},t.prototype.setSize=function(t,e){this._oldSizes={width:this._popup.offsetWidth,height:this._popup.offsetHeight};var i={width:this._oldSizes.width,height:this._oldSizes.height};(0,n.isDefined)(t)&&(this.config.width=i.width=t),(0,n.isDefined)(e)&&(this.config.height=i.height=e),this._popup.style.width=i.width+"px",this._popup.style.height=i.height+"px",this.events.fire(d.WindowEvents.resize,[i,this._oldSizes,{left:!0,top:!0,bottom:!0,right:!0}])},t.prototype.getSize=function(){return{width:this._popup.offsetWidth,height:this._popup.offsetHeight}},t.prototype.setPosition=function(t,e){this._oldPosition={left:this._popup.offsetLeft,top:this._popup.offsetTop};var i={left:this._oldPosition.left,top:this._oldPosition.top};(0,n.isDefined)(t)&&(this.config.left=i.left=t),(0,n.isDefined)(e)&&(this.config.top=i.top=e),this._popup.style.left=i.left+"px",this._popup.style.top=i.top+"px",this.events.fire(d.WindowEvents.resize,[i,this._oldPosition,{left:!0,top:!0,bottom:!0,right:!0}])},t.prototype.getPosition=function(){return{left:this._popup.offsetLeft,top:this._popup.offsetTop}},t.prototype.show=function(t,e){if(void 0===t&&(t=this.config.left),void 0===e&&(e=this.config.top),this.events.fire(d.WindowEvents.beforeShow,[{left:t,top:e}])){this.isVisible()&&this.hide(),h.default.setActive(this._uid),this._popup.className+=" dhx_popup dhx_widget"+(this.config.modal?" dhx_popup--window_modal":" dhx_popup--window")+(this.config.css?" "+this.config.css:""),this._popup.style.position=this.config.modal?"fixed":"absolute",this._popup.setAttribute("data-dhx-widget-id",this._uid);var i=this._getContainerParams(),o=i.containerInnerWidth,r=i.containerInnerHeight,s=i.containerXOffset,l=i.containerYOffset,c=this.config.width="number"==typeof this.config.width&&this.config.width||"number"==typeof this.config.minWidth&&this.config.minWidth||o/2,u=this.config.height="number"==typeof this.config.height&&this.config.height||"number"==typeof this.config.minHeight&&this.config.minHeight||r/2;if(this.config.left=t=(0,n.isDefined)(t)?t:(o-c)/(this.config.modal?2:2+s),this.config.top=e=(0,n.isDefined)(e)?e:(r-u)/(this.config.modal?2:2+l),this._isActive)return this._popup.style.left=t+"px",void(this._popup.style.top=e+"px");this.config.viewportOverflow&&h.default.openFreeWindow(this.config.node),this.config.modal&&this._blockScreen(),this._popup.style.width=c+"px",this._popup.style.height=u+"px",this._popup.style.left=t+"px",this._popup.style.top=e+"px",this.config.node.appendChild(this._popup),this._popup.focus(),this._isActive=!0,this._layout.getCell("content").paint(),this.events.fire(d.WindowEvents.afterShow,[{left:t,top:e}]),a.focusManager.setFocusId(this._uid)}},t.prototype.hide=function(){this._hide()},t.prototype._hide=function(t){this._isActive&&this.events.fire(d.WindowEvents.beforeHide,[{left:this.config.left,top:this.config.top},t])&&(this.config.viewportOverflow&&h.default.closeFreeWindow(this.config.node),this._blocker&&(this.config.node.removeChild(this._blocker),this.config.closable&&this._keyManager.removeHotKey(null,this),this._blocker=null),this.config.node.removeChild(this._popup),this._isActive=!1,this.events.fire(d.WindowEvents.afterHide,[{left:this.config.left,top:this.config.top},t]))},t.prototype.isVisible=function(){return this._isActive},t.prototype.getWidget=function(){return this._layout.getCell("content").getWidget()},t.prototype.getContainer=function(){return this.getRootView().data._container},t.prototype.attach=function(t,e){this._layout.getCell("content").attach(t,e)},t.prototype.attachHTML=function(t){this._layout.getCell("content").attachHTML(t)},t.prototype.getRootView=function(){return this._layout.getRootView()},t.prototype.destructor=function(){this._isActive&&this.hide(),this.header&&this.header.destructor(),this.footer&&this.footer.destructor(),this.events&&this.events.clear(),this._keyManager&&this._keyManager.destructor(),this._layout&&this._layout.destructor(),this.config=this.header=this.footer=this.events=null,this._popup=this._uid=this._handlers=this._isActive=this._keyManager=this._fullScreen=this._oldSizes=this._oldPosition=null},t.prototype.fullScreen=function(){this.setFullScreen()},t.prototype._initHandlers=function(){var t=this;this._handlers={headerDblClick:function(e){return t.events.fire(d.WindowEvents.headerDoubleClick,[e])},move:function(e){3!==e.which&&(e.preventDefault(),(0,u.detectDrag)(e).then((function(e){e&&t._startDrag(e.x,e.y)})))},resize:{".dhx_window-resizer":function(e){3!==e.which&&(e.preventDefault(),h.default.setActive(t._uid),(0,u.detectDrag)(e).then((function(i){if(i){var n=e.target.classList;n.contains("dhx_window-resizer--left")?t._startResize({left:!0}):n.contains("dhx_window-resizer--right")?t._startResize({right:!0}):n.contains("dhx_window-resizer--top")?t._startResize({top:!0}):n.contains("dhx_window-resizer--bottom")?t._startResize({bottom:!0}):n.contains("dhx_window-resizer--bottom_left")?t._startResize({left:!0,bottom:!0}):n.contains("dhx_window-resizer--bottom_right")?t._startResize({bottom:!0,right:!0}):n.contains("dhx_window-resizer--top_left")?t._startResize({top:!0,left:!0}):n.contains("dhx_window-resizer--top_right")&&t._startResize({top:!0,right:!0})}})))}},setActive:function(){h.default.setActive(t._uid)}}},t.prototype._initUI=function(){var t=this,e=[],i=(this.config.header||this.config.title||this.config.closable||this.config.movable)&&!1!==this.config.header;i&&e.push({id:"header",height:"content",css:"dhx_window-header "+(this.config.movable?"dhx_window-header--movable":""),on:{mousedown:this.config.movable&&this._handlers.move,dblclick:this._handlers.headerDblClick}}),e.push({id:"content",css:i?"dhx_window-content":"dhx_window-content-without-header"}),this.config.footer&&e.push({id:"footer",height:"content",css:"dhx_window-footer"}),this.config.resizable&&e.push({id:"resizers",height:"content",css:"resizers"});var n=this._layout=new l.Layout(this._popup,{css:"dhx_window"+(this.config.modal?" dhx_window--modal":""),rows:e,on:{mousedown:this._handlers.setActive},id:this._uid});if(i){var o=this.header=new c.Toolbar;this.config.title&&(this.header.data.add({type:"title",value:this.config.title,id:"title",css:"title_max"}),this._popup.setAttribute("aria-label",this.config.title)),this.config.closable&&(this.header.data.add({type:"spacer"}),this.header.data.add({id:"close",type:"button",view:"link",size:"medium",color:"secondary",circle:!0,icon:"dxi dxi-close"}),o.events.on(f.NavigationBarEvents.click,(function(e,i){"close"===e&&t._hide(i)}))),n.getCell("header").attach(o)}if(this.config.footer){var r=this.footer=new c.Toolbar;n.getCell("footer").attach(r)}this.config.resizable&&n.getCell("resizers").attach((function(){return t._drawResizers()}))},t.prototype._drawResizers=function(){return(0,o.el)(".dhx-resizers",{onmousedown:this._handlers.resize},[(0,o.el)(".dhx_window-resizer.dhx_window-resizer--left",{_ref:"left"}),(0,o.el)(".dhx_window-resizer.dhx_window-resizer--right",{_ref:"right"}),(0,o.el)(".dhx_window-resizer.dhx_window-resizer--bottom",{_ref:"bottom"}),(0,o.el)(".dhx_window-resizer.dhx_window-resizer--top",{_ref:"top"}),(0,o.el)(".dhx_window-resizer.dhx_window-resizer--bottom_right",{_ref:"bottomRight"}),(0,o.el)(".dhx_window-resizer.dhx_window-resizer--bottom_left",{_ref:"bottomLeft"}),(0,o.el)(".dhx_window-resizer.dhx_window-resizer--top_right",{_ref:"topRight"}),(0,o.el)(".dhx_window-resizer.dhx_window-resizer--top_left",{_ref:"topLeft"})])},t.prototype._startDrag=function(t,e){var i=this;this.config.node.classList.add("dhx_window--stop_selection");var n=t-this._popup.offsetLeft,o=e-this._popup.offsetTop,r=this._popup.offsetWidth,s=this._popup.offsetHeight,a=function(t){var e={left:i._popup.offsetLeft,top:i._popup.offsetTop},a=t.pageX-n,l=t.pageY-o;if(!i.config.viewportOverflow){var c=i._getContainerParams(),u=c.containerXOffset,h=c.containerYOffset,f=c.containerInnerWidth,p=c.containerInnerHeight;a<u?a=u:a>u+f-r&&(a=u+f-r),l<h?l=h:l>h+p-s&&(l=h+p-s)}i.config.left=a,i.config.top=l,i._popup.style.left=a+"px",i._popup.style.top=l+"px";var v={left:a,top:l};i.events.fire(d.WindowEvents.move,[v,e,{left:!0,top:!0,bottom:!0,right:!0}])},l=function(){document.removeEventListener("mouseup",l),document.removeEventListener("mousemove",a),i.config.node.classList.remove("dhx_window--stop_selection")};document.addEventListener("mouseup",l),document.addEventListener("mousemove",a)},t.prototype._startResize=function(t){var e,i,n=this,o=100|this.config.minWidth,r=100|this.config.minHeight,s=this._popup.offsetLeft,a=this._popup.offsetTop,l=this._popup.offsetWidth,c=this._popup.offsetHeight,u=this.getRootView().refs;switch(!0){case t.bottom&&t.left:i="dhx_window-body-pointer--bottom_left",e=u.bottomLeft;break;case t.bottom&&t.right:i="dhx_window-body-pointer--bottom_right",e=u.bottomLeft;break;case t.top&&t.left:i="dhx_window-body-pointer--top_left",e=u.bottomLeft;break;case t.top&&t.right:i="dhx_window-body-pointer--top-right",e=u.right;break;case t.top:i="dhx_window-body-pointer--top",e=u.bottomLeft;break;case t.bottom:i="dhx_window-body-pointer--bottom",e=u.bottomLeft;break;case t.left:i="dhx_window-body-pointer--left",e=u.bottomLeft;break;case t.right:i="dhx_window-body-pointer--right",e=u.right}e.el.classList.add("dhx_window-resizer--active"),this.config.node.classList.add("dhx_window--stop_selection"),this.config.node.classList.add(i);var h=function(e){var i=n._getContainerParams(),u=i.containerInnerWidth,h=i.containerInnerHeight,f=i.containerXOffset,p=i.containerYOffset,v={width:n._notInNode()?e.pageX-s:e.pageX-n.config.node.offsetLeft-s,height:n._notInNode()?e.pageY-a:e.pageY-n.config.node.offsetTop-a,left:n._notInNode()?e.pageX:e.pageX-n.config.node.offsetLeft,top:n._notInNode()?e.pageY:e.pageY-n.config.node.offsetTop};t.right&&(v.width<o?v.width=o:v.width>f+u-s&&(v.width=f+u-s),n._popup.style.width=v.width+"px"),t.bottom&&(v.height<r?v.height=r:v.height>p+h-a&&(v.height=p+h-a),n._popup.style.height=v.height+"px"),t.left&&(s+l-v.left<o&&(v.left=s+l-o),v.width=s+l-v.left,n.config.left=v.left,n._popup.style.left=v.left+"px",n._popup.style.width=v.width+"px"),t.top&&(v.top<p?v.top=p:a+c-v.top<r&&(v.top=a+c-r),v.height=a+c-v.top,n.config.top=v.top,n._popup.style.top=v.top+"px",n._popup.style.height=v.height+"px"),n.config.width=n._popup.offsetWidth,n.config.height=n._popup.offsetHeight,n.events.fire(d.WindowEvents.resize,[v,{left:s,top:a,height:c,width:l},t])},f=function(){document.removeEventListener("mouseup",f),document.removeEventListener("mousemove",h),n.config.node.classList.remove("dhx_window--stop_selection"),n.config.node.classList.remove(i),e.el.classList.remove("dhx_window-resizer--active")};document.addEventListener("mouseup",f),document.addEventListener("mousemove",h)},t.prototype._blockScreen=function(){var t=this,e=document.createElement("div");e.className="dhx_window__overlay",this.config.node.appendChild(e),this._blocker=e,this.config.closable&&(e.addEventListener("click",(function(e){return t._hide(e)})),this._keyManager.addHotKey("escape",(function(e){var i=Array.prototype.slice.call(document.querySelectorAll(".dhx_popup--window_modal")),n=Array.prototype.slice.call(document.querySelectorAll(".dhx_popup--window")),o=i.concat(n);1!==o.length?(o.sort((function(t,e){return+window.getComputedStyle(e).zIndex-+window.getComputedStyle(t).zIndex})),o[o.length-1]===t._popup&&t._hide(e)):t._hide(e)})))},t.prototype._notInNode=function(){return this.config.node===document.body||this.config.modal},t.prototype._getContainerParams=function(){var t=this._notInNode();return{containerInnerWidth:t?window.innerWidth:this.config.node.offsetWidth,containerInnerHeight:t?window.innerHeight:this.config.node.offsetHeight,containerXOffset:t?window.pageXOffset:this.config.node.scrollLeft,containerYOffset:t?window.pageYOffset:this.config.node.scrollTop}},t}();e.Window=p},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.WindowEvents=void 0,function(t){t.resize="resize",t.headerDoubleClick="headerdoubleclick",t.move="move",t.afterShow="aftershow",t.afterHide="afterhide",t.beforeShow="beforeshow",t.beforeHide="beforehide"}(n||(e.WindowEvents=n={}))},function(t,e,i){i(109),i(110),i(111),i(112),i(113),t.exports=i(114)},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 i=[];for(var n in t)t.hasOwnProperty(n)&&i.push(t[n]);return i}return[]},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){"use strict";for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(null==t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),o=0;o<e.length;o++){var r=e[o];if(null!=r)for(var s=Object.keys(Object(r)),a=0,l=s.length;a<l;a++){var c=s[a],u=Object.getOwnPropertyDescriptor(r,c);void 0!==u&&u.enumerable&&(n[c]=r[c])}}return n}})},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 i=Object(this),n=i.length>>>0;if(0===n)return!1;var o,r,s=0|e,a=Math.max(s>=0?s:n-Math.abs(s),0);for(;a<n;){if((o=i[a])===(r=t)||"number"==typeof o&&"number"==typeof r&&isNaN(o)&&isNaN(r))return!0;a++}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),i=e.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var n=arguments[1],o=0;o<i;){var r=e[o];if(t.call(n,r,o,e))return r;o++}},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,i=Object(this),n=i.length>>>0,o=arguments[1],r=0;r<n;r++)if(e=i[r],t.call(o,e,r,i))return r;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 i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.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 i=t.getAttribute("class").replace(new RegExp("(\\s|^)".concat(e,"(\\s|$)"),"g"),"$2");t.classList.contains(e)&&t.setAttribute("class",i)},toggle:function(t){this.contains(t)?this.remove(t):this.add(t)}}},configurable:!0}),!Object.entries){var n=Function.bind.call(Function.call,Array.prototype.reduce),o=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),r=Function.bind.call(Function.call,Array.prototype.concat);Object.entries=function(t){return n(Object.keys(t),(function(e,i){return r(e,"string"==typeof i&&o(t,i)?[[i,t[i]]]:[])}),[])}}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,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.i18n=e.Window=e.Tree=e.Toolbar=e.Timepicker=e.Tabbar=e.Slider=e.Sidebar=e.Ribbon=e.Popup=e.ContextMenu=e.Menu=e.tooltip=e.disableTooltip=e.enableTooltip=e.confirm=e.alert=e.message=e.Grid=e.Form=e.DataView=e.Combobox=e.Chart=e.Colorpicker=e.Calendar=e.List=e.Layout=e.ajax=e.dataDrivers=e.DataProxy=e.TreeCollection=e.DataCollection=e.Uploader=e.setTheme=e.resizeHandler=e.awaitRedraw=e.EventSystem=e.cssManager=void 0,i(115);var n=i(116);Object.defineProperty(e,"cssManager",{enumerable:!0,get:function(){return n.cssManager}});var o=i(2);Object.defineProperty(e,"EventSystem",{enumerable:!0,get:function(){return o.EventSystem}});var r=i(0);Object.defineProperty(e,"awaitRedraw",{enumerable:!0,get:function(){return r.awaitRedraw}}),Object.defineProperty(e,"resizeHandler",{enumerable:!0,get:function(){return r.resizeHandler}}),Object.defineProperty(e,"setTheme",{enumerable:!0,get:function(){return r.setTheme}});var s=i(58);Object.defineProperty(e,"Uploader",{enumerable:!0,get:function(){return s.Uploader}});var a=i(7);Object.defineProperty(e,"DataCollection",{enumerable:!0,get:function(){return a.DataCollection}}),Object.defineProperty(e,"TreeCollection",{enumerable:!0,get:function(){return a.TreeCollection}}),Object.defineProperty(e,"DataProxy",{enumerable:!0,get:function(){return a.DataProxy}}),Object.defineProperty(e,"dataDrivers",{enumerable:!0,get:function(){return a.dataDrivers}}),Object.defineProperty(e,"ajax",{enumerable:!0,get:function(){return a.ajax}});var l=i(11);Object.defineProperty(e,"Layout",{enumerable:!0,get:function(){return l.Layout}});var c=i(37);Object.defineProperty(e,"List",{enumerable:!0,get:function(){return c.List}});var u=i(36);Object.defineProperty(e,"Calendar",{enumerable:!0,get:function(){return u.Calendar}});var d=i(50);Object.defineProperty(e,"Colorpicker",{enumerable:!0,get:function(){return d.Colorpicker}});var h=i(166);Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return h.Chart}});var f=i(38);Object.defineProperty(e,"Combobox",{enumerable:!0,get:function(){return f.Combobox}});var p=i(190);Object.defineProperty(e,"DataView",{enumerable:!0,get:function(){return p.DataView}});var v=i(194);Object.defineProperty(e,"Form",{enumerable:!0,get:function(){return v.Form}});var g=i(213);Object.defineProperty(e,"Grid",{enumerable:!0,get:function(){return g.Grid}});var _=i(12);Object.defineProperty(e,"message",{enumerable:!0,get:function(){return _.message}}),Object.defineProperty(e,"alert",{enumerable:!0,get:function(){return _.alert}}),Object.defineProperty(e,"confirm",{enumerable:!0,get:function(){return _.confirm}}),Object.defineProperty(e,"enableTooltip",{enumerable:!0,get:function(){return _.enableTooltip}}),Object.defineProperty(e,"disableTooltip",{enumerable:!0,get:function(){return _.disableTooltip}}),Object.defineProperty(e,"tooltip",{enumerable:!0,get:function(){return _.tooltip}});var m=i(230);Object.defineProperty(e,"Menu",{enumerable:!0,get:function(){return m.Menu}}),Object.defineProperty(e,"ContextMenu",{enumerable:!0,get:function(){return m.ContextMenu}});var y=i(13);Object.defineProperty(e,"Popup",{enumerable:!0,get:function(){return y.Popup}});var b=i(233);Object.defineProperty(e,"Ribbon",{enumerable:!0,get:function(){return b.Ribbon}});var w=i(235);Object.defineProperty(e,"Sidebar",{enumerable:!0,get:function(){return w.Sidebar}});var x=i(47);Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return x.Slider}});var E=i(237);Object.defineProperty(e,"Tabbar",{enumerable:!0,get:function(){return E.Tabbar}});var C=i(46);Object.defineProperty(e,"Timepicker",{enumerable:!0,get:function(){return C.Timepicker}});var S=i(34);Object.defineProperty(e,"Toolbar",{enumerable:!0,get:function(){return S.Toolbar}});var k=i(239);Object.defineProperty(e,"Tree",{enumerable:!0,get:function(){return k.Tree}});var O=i(241);Object.defineProperty(e,"Window",{enumerable:!0,get:function(){return O.Window}});var P=i(50),I=i(45),D=i(15),M=i(57),T=i(94),V=i(70),H=i(245),j=window;e.i18n=j.dhx&&j.dhx.i18n?j.dhx.i18n:{},e.i18n.setLocale=H.setLocale,e.i18n.colorpicker=e.i18n.colorpicker||P.locale,e.i18n.message=e.i18n.message||I.default,e.i18n.calendar=e.i18n.calendar||D.locale,e.i18n.combobox=e.i18n.combobox||M.default,e.i18n.form=e.i18n.form||T.default,e.i18n.timepicker=e.i18n.timepicker||V.default},function(t,e,i){"use strict";i.r(e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cssManager=e.CssManager=void 0;var n=i(1),o=function(){function t(){this._classes={};var t=document.createElement("style");t.id="dhx_generated_styles",this._styleCont=document.head.appendChild(t)}return t.prototype.update=function(){this._styleCont.innerHTML!==this._generateCss()&&(document.head.appendChild(this._styleCont),this._styleCont.innerHTML=this._generateCss())},t.prototype.remove=function(t){delete this._classes[t],this.update()},t.prototype.add=function(t,e,i){void 0===i&&(i=!1);var n=this._toCssString(t),o=this._findSameClassId(n);return o&&e&&e!==o?(this._classes[e]=this._classes[o],e):o||this._addNewClass(n,e,i)},t.prototype.get=function(t){if(this._classes[t]){for(var e={},i=0,n=this._classes[t].split(";");i<n.length;i++){var o=n[i];if(o){var r=o.split(":");e[r[0]]=r[1]}}return e}return null},t.prototype.destructor=function(){this._classes=this._styleCont=null},t.prototype._findSameClassId=function(t){for(var e in this._classes)if(t===this._classes[e])return e;return null},t.prototype._addNewClass=function(t,e,i){var o=e||"dhx_generated_class_".concat((0,n.uid)());return this._classes[o]=t,i||this.update(),o},t.prototype._toCssString=function(t){var e="";for(var i in t){var n=t[i],o=i.replace(/[A-Z]{1}/g,(function(t){return"-".concat(t.toLowerCase())}));e+="".concat(o,":").concat(n,";")}return e},t.prototype._generateCss=function(){var t="";for(var e in this._classes){var i=this._classes[e];t+=".".concat(e,"{").concat(i,"}\n")}return t},t}();e.CssManager=o,e.cssManager=new o},function(t,e,i){(function(t){var n=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function r(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new r(o.call(setTimeout,n,arguments),clearTimeout)},e.setInterval=function(){return new r(o.call(setInterval,n,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(n,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))},i(118),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,i(40))},function(t,e,i){(function(t,e){!function(t,i){"use strict";if(!t.setImmediate){var n,o,r,s,a,l=1,c={},u=!1,d=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?n=function(t){e.nextTick((function(){p(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,i=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=i,e}}()?t.MessageChannel?((r=new MessageChannel).port1.onmessage=function(t){p(t.data)},n=function(t){r.port2.postMessage(t)}):d&&"onreadystatechange"in d.createElement("script")?(o=d.documentElement,n=function(t){var e=d.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,o.removeChild(e),e=null},o.appendChild(e)}):n=function(t){setTimeout(p,0,t)}:(s="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(s)&&p(+e.data.slice(s.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),n=function(e){t.postMessage(s+e,"*")}),h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i<e.length;i++)e[i]=arguments[i+1];var o={callback:t,args:e};return c[l]=o,n(l),l++},h.clearImmediate=f}function f(t){delete c[t]}function p(t){if(u)setTimeout(p,0,t);else{var e=c[t];if(e){u=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(i,n)}}(e)}finally{f(t),u=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,i(40),i(119))},function(t,e){var i,n,o=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(i===setTimeout)return setTimeout(t,0);if((i===r||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:r}catch(t){i=r}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(t){n=s}}();var l,c=[],u=!1,d=-1;function h(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&f())}function f(){if(!u){var t=a(h);u=!0;for(var e=c.length;e;){for(l=c,c=[];++d<e;)l&&l[d].run();d=-1,e=c.length}l=null,u=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{return n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function v(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];c.push(new p(t,e)),1!==c.length||u||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,i){
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,i=3,n=4,o=5,r="undefined"!=typeof window,s=(r?window:{}).requestAnimationFrame,a={};function l(){}var c=Array.isArray;function u(t){return null!=t}function d(t){return null!=t&&t.constructor===Object}function h(t,e,i,n){t.splice.apply(t,[i,n].concat(e))}function f(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,i=1;i<e.length;i++)for(var n in e[i])t[n]=e[i][n];return t}function _(t,e,i){for(var n;n=e.shift();)0===e.length?t[n]=i:t[n]=t=t[n]||{}}function m(t,e){for(var i=[],n=e;n<t.length;n++)i.push(t[n]);return i}function y(t,e){for(var i in t)if(t[i]!==e[i])return!1;return!0}function b(t,e){var i=t.length;if(e.length!==i)return!1;for(var n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}function w(t){if(!s)return t;var e,i,n;function o(){e=0,t.apply(i,n)}return function(){i=this,n=arguments,e||(e=s(o))}}function x(t,e,i){return function(){return t.apply(i,e)}}function E(t){var e,i,n=t.slice(),o=[];o.push(0);for(var r=0,s=t.length;r<s;++r){var a=o[o.length-1];if(t[a]<t[r])n[r]=a,o.push(r);else{for(e=0,i=o.length-1;e<i;){var l=(e+i)/2|0;t[o[l]]<t[r]?e=l+1:i=l}t[r]<t[o[e]]&&(e>0&&(n[r]=o[e-1]),o[e]=r)}}for(i=o[(e=o.length)-1];e-- >0;)o[e]=i,i=n[i];return o}function C(t,e){var i,n=0,o=e.length-1;if(o<=2147483647)for(;n<=o;){if(e[i=n+o>>1]===t)return i;e[i]<t?n=i+1:o=i-1}else for(;n<=o;){if(e[i=Math.floor((n+o)/2)]===t)return i;e[i]<t?n=i+1:o=i-1}return n==e.length?null:n}function S(t){return"o"===t[0]&&"n"===t[1]}function k(t){return"_"===t[0]}function O(t){return"style"===t}function P(t){t&&t.el&&t.el.offsetHeight}function I(t){return null!=t.node&&null!=t.node.el}function D(t,e){switch(e){case"value":case"checked":case"selected":return!0}return!1}function M(t){for(t=t||a;null==t.vm&&t.parent;)t=t.parent;return t.vm}function T(){}var V=T.prototype={constructor:T,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 H(t){var i=new T;return i.type=e,i.body=t,i}var j={},F=/\[(\w+)(?:=(\w+))?\]/g;function R(t){var e,i,n,o,r=j[t];if(null==r)for(j[t]=r={tag:(e=t.match(/^[-\w]+/))?e[0]:"div",id:(i=t.match(/#([-\w]+)/))?i[1]:null,class:(n=t.match(/\.([-\w.]+)/))?n[1].replace(/\./g," "):null,attrs:null};o=F.exec(t);)null==r.attrs&&(r.attrs={}),r.attrs[o[1]]=o[2]||"";return r}var A=1,L=2,$=4,N=8;function z(e,i,n,o){var r=new T;r.type=t,u(o)&&(r.flags=o),r.attrs=i;var s=R(e);if(r.tag=s.tag,s.id||s.class||s.attrs){var a=r.attrs||{};if(s.id&&!u(a.id)&&(a.id=s.id),s.class&&(r._class=s.class,a.class=s.class+(u(a.class)?" "+a.class:"")),s.attrs)for(var l in s.attrs)u(a[l])||(a[l]=s.attrs[l]);r.attrs=a}var c=r.attrs;return u(c)&&(u(c._key)&&(r.key=c._key),u(c._ref)&&(r.ref=c._ref),u(c._hooks)&&(r.hooks=c._hooks),u(c._data)&&(r.data=c._data),u(c._flags)&&(r.flags=c._flags),u(r.key)||(u(r.ref)?r.key=r.ref:u(c.id)?r.key=c.id:u(c.name)&&(r.key=c.name+("radio"===c.type||"checkbox"===c.type?c.value:"")))),null!=n&&(r.body=n),r}function W(t,e,i){_(t,["refs"].concat(e.split(".")),i)}function B(t){for(;t=t.parent;)t.flags|=A}function G(t,e,i,r){if(t.type!==o&&t.type!==n){t.parent=e,t.idx=i,t.vm=r,null!=t.ref&&W(M(t),t.ref,t);var s=t.hooks,a=r&&r.hooks;(s&&(s.willRemove||s.didRemove)||a&&(a.willUnmount||a.didUnmount))&&B(t),c(t.body)&&q(t)}}function q(t){for(var i=t.body,n=0;n<i.length;n++){var o=i[n];!1===o||null==o?i.splice(n--,1):c(o)?h(i,o,n--,1):(null==o.type&&(i[n]=o=H(""+o)),o.type===e?null==o.body||""===o.body?i.splice(n--,1):n>0&&i[n-1].type===e?(i[n-1].body+=o.body,i.splice(n--,1)):G(o,t,n,null):G(o,t,n,null))}}var Y={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 X(t,e){return isNaN(e)||Y[t]?e:e+"px"}function U(t,e){var i=(t.attrs||a).style,n=e?(e.attrs||a).style:null;if(null==i||f(i))t.el.style.cssText=i;else{for(var o in i){var r=i[o];(null==n||null!=r&&r!==n[o])&&(t.el.style[o]=X(o,r))}if(n)for(var s in n)null==i[s]&&(t.el.style[s]="")}}var K=[];function J(t,e,i,n,o){if(null!=t){var r=i.hooks[e];if(r){if("d"!==e[0]||"i"!==e[1]||"d"!==e[2])return r(i,n);o?P(i.parent)&&r(i,n):K.push([r,i,n])}}}function Z(t){var e;if(K.length)for(P(t.node);e=K.shift();)e[0](e[1],e[2])}var Q=r?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 it(t){return Q.createTextNode(t)}function nt(t){return Q.createComment(t)}function ot(t){return t.nextSibling}function rt(t){return t.previousSibling}function st(t){var e=t.vm,i=null!=e&&J(e.hooks,"willUnmount",e,e.data),n=J(t.hooks,"willRemove",t);if((t.flags&A)===A&&c(t.body))for(var o=0;o<t.body.length;o++)st(t.body[o]);return i||n}function at(t,e,i){var n=e._node,o=n.vm;if(c(n.body))if((n.flags&A)===A)for(var r=0;r<n.body.length;r++)at(e,n.body[r].el);else ct(n);delete e._node,t.removeChild(e),J(n.hooks,"didRemove",n,null,i),null!=o&&(J(o.hooks,"didUnmount",o,o.data,i),o.node=null)}function lt(t,e){var i=e._node;if(!i._dead){var n=st(i);null!=n&&v(n)?(i._dead=!0,n.then(x(at,[t,e,!0]))):at(t,e)}}function ct(t){for(var e=t.body,i=0;i<e.length;i++){var n=e[i];delete n.el._node,null!=n.vm&&(n.vm.node=null),c(n.body)&&ct(n)}}function ut(t){var e=t.el;if(0==(t.flags&A))c(t.body)&&ct(t),e.textContent=null;else{var i=e.firstChild;do{var n=ot(i);lt(e,i)}while(i=n)}}function dt(t,e,i){var n=e._node,o=null!=e.parentNode,r=e!==i&&o?null:n.vm;null!=r&&J(r.hooks,"willMount",r,r.data),J(n.hooks,o?"willReinsert":"willInsert",n),t.insertBefore(e,i),J(n.hooks,o?"didReinsert":"didInsert",n),null!=r&&J(r.hooks,"didMount",r,r.data)}function ht(t,e,i){dt(t,e,i?ot(i):null)}var ft={};function pt(t){g(ft,t)}function vt(t){var e=this,i=e,n=m(arguments,1).concat(i,i.data);do{var o=e.onemit,r=o?o[t]:null;if(r){r.apply(e,n);break}}while(e=e.parent());ft[t]&&ft[t].apply(e,n)}var gt=l;function _t(t){gt=t.onevent||gt,t.onemit&&pt(t.onemit)}function mt(t,e,i){t[e]=i}function yt(t,e,i,n,o){var r=t.apply(o,e.concat([i,n,o,o.data]));o.onevent(i,n,o,o.data,e),gt.call(null,i,n,o,o.data,e),!1===r&&(i.preventDefault(),i.stopPropagation())}function bt(t){var e,i,n=tt(t.target),o=M(n),r=t.currentTarget._node.attrs["on"+t.type];if(c(r))yt(e=r[0],i=r.slice(1),t,n,o);else for(var s in r)if(t.target.matches(s)){var a=r[s];c(a)?(e=a[0],i=a.slice(1)):(e=a,i=[]),yt(e,i,t,n,o)}}function wt(t,e,i,n){if(i!==n){var o=t.el;null==i||p(i)?mt(o,e,i):null==n&&mt(o,e,bt)}}function xt(t,e,i){"."===e[0]&&(e=e.substr(1),i=!0),i?t.el[e]="":t.el.removeAttribute(e)}function Et(t,e,i,n,o){var r=t.el;null==i?!o&&xt(t,e,!1):null!=t.ns?r.setAttribute(e,i):"class"===e?r.className=i:"id"===e||"boolean"==typeof i||n?r[e]=i:"."===e[0]?r[e.substr(1)]=i:r.setAttribute(e,i)}function Ct(t,e,i){var n=t.attrs||a,o=e.attrs||a;if(n===o);else{for(var r in n){var s=n[r],l=D(t.tag,r),c=l?t.el[r]:o[r];s===c||(O(r)?U(t,e):k(r)||(S(r)?wt(t,r,s,c):Et(t,r,s,l,i)))}for(var r in o)!(r in n)&&!k(r)&&xt(t,r,D(t.tag,r)||S(r))}}function St(t,e,i,o){return t.type===n&&(e=t.data,i=t.key,o=t.opts,t=t.view),new Gt(t,e,i,o)}function kt(t){for(var e=0;e<t.body.length;e++){var r=t.body[e],s=r.type;if(s<=i)dt(t.el,Ot(r));else if(s===n)s=(a=St(r.view,r.data,r.key,r.opts)._redraw(t,e,!1)).node.type,dt(t.el,Ot(a.node));else if(s===o){var a;(a=r.vm)._redraw(t,e),s=a.node.type,dt(t.el,a.node.el)}}}function Ot(n,o){return null==n.el&&(n.type===t?(n.el=o||et(n.tag,n.ns),null!=n.attrs&&Ct(n,a,!0),(n.flags&N)===N&&n.body.body(n),c(n.body)?kt(n):null!=n.body&&""!==n.body&&(n.el.textContent=n.body)):n.type===e?n.el=o||it(n.body):n.type===i&&(n.el=o||nt(n.body))),n.el._node=n,n.el}function Pt(t,e){return e[t.idx+1]}function It(t,e){return e[t.idx-1]}function Dt(t){return t.parent}window.lisMove=Ht;var Mt=1,Tt=2;function Vt(t,e,i,n,o,r,s,a){return function(l,c,u,d,h,f){var p,v;if(null!=d[n]){if(null==(p=d[n]._node))return void(d[n]=t(d[n]));if(Dt(p)!==l)return v=t(d[n]),null!=p.vm?p.vm.unmount(!0):lt(c,d[n]),void(d[n]=v)}if(d[o]==h)return Tt;if(null==d[o].el)i(c,Ot(d[o]),d[n]),d[o]=e(d[o],u);else if(d[o].el===d[n])d[o]=e(d[o],u),d[n]=t(d[n]);else{if(f||p!==d[s])return f&&null!=d[n]?Ht(t,e,i,n,o,c,u,p,d):Mt;v=d[n],d[n]=t(v),a(c,v,d[r]),d[r]=v}}}function Ht(t,e,i,n,o,r,s,a,l){if(a._lis)i(r,l[o].el,l[n]),l[o]=e(l[o],s);else{var c=C(a.idx,l.tombs);a._lis=!0;var u=t(l[n]);i(r,l[n],null!=c?s[l.tombs[c]].el:c),null==c?l.tombs.push(a.idx):l.tombs.splice(c,0,a.idx),l[n]=u}}var jt=Vt(ot,Pt,dt,"lftSib","lftNode","rgtSib","rgtNode",ht),Ft=Vt(rt,It,ht,"rgtSib","rgtNode","lftSib","lftNode",dt);function Rt(t,e){var i=e.body,n=t.el,o=t.body,r={lftNode:o[0],rgtNode:o[o.length-1],lftSib:(i[0]||a).el,rgtSib:(i[i.length-1]||a).el};t:for(;;){for(;;){var s=jt(t,n,o,r,null,!1);if(s===Mt)break;if(s===Tt)break t}for(;;){var l=Ft(t,n,o,r,r.lftNode,!1);if(l===Mt)break;if(l===Tt)break t}At(t,n,o,r);break}}function At(t,e,i,n){for(var o=Array.prototype.slice.call(e.childNodes),r=[],s=0;s<o.length;s++){var a=o[s]._node;a.parent===t&&r.push(a.idx)}for(var l=E(r).map((function(t){return r[t]})),c=0;c<l.length;c++)i[l[c]]._lis=!0;for(n.tombs=l;jt(t,e,i,n,null,!0)!==Tt;);}function Lt(t){return t.el._node.parent!==t.parent}function $t(t,e,i){return e[i]}function Nt(t,e,i){for(;i<e.length;i++){var r=e[i];if(null!=r.vm){if(t.type===n&&r.vm.view===t.view&&r.vm.key===t.key||t.type===o&&r.vm===t.vm)return r}else if(!Lt(r)&&t.tag===r.tag&&t.type===r.type&&t.key===r.key&&(t.flags&~A)==(r.flags&~A))return r}return null}function zt(t,e,i){return e[e._keys[t.key]]}function Wt(t,i){J(i.hooks,"willRecycle",i,t);var n=t.el=i.el,o=i.body,r=t.body;if(n._node=t,t.type!==e||r===o){null==t.attrs&&null==i.attrs||Ct(t,i,!1);var s=c(o),a=c(r),l=(t.flags&N)===N;s?a||l?Bt(t,i):r!==o&&(null!=r?n.textContent=r:ut(i)):a?(ut(i),kt(t)):r!==o&&(n.firstChild?n.firstChild.nodeValue=r:n.textContent=r),J(i.hooks,"didRecycle",i,t)}else n.nodeValue=r}function Bt(e,r){var s=e.body,a=s.length,l=r.body,c=l.length,u=(e.flags&N)===N,d=(e.flags&L)===L,h=(e.flags&$)===$,f=!d&&e.type===t,p=!0,v=h?zt:d||u?$t:Nt;if(h){for(var g={},_=0;_<l.length;_++)g[l[_].key]=_;l._keys=g}if(f&&0===a)return ut(r),void(u&&(e.body=[]));var m,y,b=0,w=!1,x=0;if(u)var E={key:null},C=Array(a);for(_=0;_<a;_++){if(u){var S=!1,k=null;p&&(h&&(E.key=s.key(_)),m=v(E,l,x)),null!=m?(y=m.idx,!0===(k=s.diff(_,m))?((O=m).parent=e,O.idx=_,O._lis=!1):S=!0):S=!0,S&&(G(O=s.tpl(_),e,_),O._diff=null!=k?k:s.diff(_),null!=m&&Wt(O,m)),C[_]=O}else{var O,P=(O=s[_]).type;if(P<=i)(m=p&&v(O,l,x))&&(Wt(O,m),y=m.idx);else if(P===n){if(m=p&&v(O,l,x)){y=m.idx;var D=m.vm._update(O.data,e,_)}else D=St(O.view,O.data,O.key,O.opts)._redraw(e,_,!1);P=D.node.type}else if(P===o){var M=I(O.vm);P=(D=O.vm._update(O.data,e,_,M)).node.type}}if(!h&&null!=m&&(y===x?++x===c&&a>c&&(m=null,p=!1):w=!0,c>100&&w&&++b%10==0))for(;x<c&&Lt(l[x]);)x++}u&&(e.body=C),f&&Rt(e,r)}function Gt(t,e,i,n){var o=this;o.view=t,o.data=e,o.key=i,n&&(o.opts=n,o.config(n));var r=d(t)?t:t.call(o,o,e,i,n);p(r)?o.render=r:(o.render=r.render,o.config(r)),o._redrawAsync=w((function(t){return o.redraw(!0)})),o._updateAsync=w((function(t){return o.update(t,!0)})),o.init&&o.init.call(o,o,o.data,o.key,n)}var qt=Gt.prototype={constructor:Gt,_diff:null,init:null,view:null,key:null,data:null,state:null,api:null,opts:null,node:null,hooks:null,onevent:l,refs:null,render:null,mount:Yt,unmount:Xt,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 M(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,I(e)):e._redrawAsync(),e},update:function(t,e){var i=this;return e?i._update(t,null,null,I(i)):i._updateAsync(t),i},_update:Jt,_redraw:Kt,_redrawAsync:null,_updateAsync:null};function Yt(t,e){var i=this;return e?(ut({el:t,flags:0}),i._redraw(null,null,!1),t.nodeName.toLowerCase()!==i.node.tag?(Ot(i.node),dt(t.parentNode,i.node.el,t),t.parentNode.removeChild(t)):dt(t.parentNode,Ot(i.node,t),t)):(i._redraw(null,null),t&&dt(t,i.node.el)),t&&Z(i),i}function Xt(t){var e=this,i=e.node;lt(i.el.parentNode,i.el),t||Z(e)}function Ut(t,e,i,n){return null!=i&&(i.body[n]=e,e.idx=n,e.parent=i,e._lis=!1),t}function Kt(t,e,i){var n,o,r=null==t,s=this,a=s.node&&s.node.el&&s.node.el.parentNode,l=s.node;if(null!=s.diff&&(n=s._diff,s._diff=o=s.diff(s,s.data),null!=l)){var u=c(n)?b:y;if(n===o||u(n,o))return Ut(s,l,t,e)}a&&J(s.hooks,"willRedraw",s,s.data);var d=s.render.call(s,s,s.data,n,o);if(d===l)return Ut(s,l,t,e);if(s.refs=null,null!=s.key&&d.key!==s.key&&(d.key=s.key),s.node=d,t?(G(d,t,e,s),t.body[e]=d):l&&l.parent?(G(d,l.parent,l.idx,s),l.parent.body[l.idx]=d):G(d,null,null,s),!1!==i)if(l)if(l.tag!==d.tag||l.key!==d.key){l.vm=d.vm=null;var h=l.el.parentNode,f=ot(l.el);lt(h,l.el),dt(h,Ot(d),f),l.el=d.el,d.vm=s}else Wt(d,l);else Ot(d);return a&&J(s.hooks,"didRedraw",s,s.data),r&&a&&Z(s),s}function Jt(t,e,i,n){var o=this;return null!=t&&o.data!==t&&(J(o.hooks,"willUpdate",o,t),o.data=t),o._redraw(e,i,n)}function Zt(t,e,i,n){var o,r;return null==i?d(e)?o=e:r=e:(o=e,r=i),z(t,o,r,n)}var Qt="http://www.w3.org/2000/svg";function te(t,e,i,n){var o=Zt(t,e,i,n);return o.ns=Qt,o}function ee(t){var e=new T;return e.type=i,e.body=t,e}function ie(t,e,i,n){this.view=t,this.data=e,this.key=i,this.opts=n}function ne(t,e,i,n){return new ie(t,e,i,n)}function oe(t){this.vm=t}function re(t){return new oe(t)}function se(e){var i=new T;return i.type=t,i.el=i.key=e,i}function ae(t,e){var i=t.length,n={items:t,length:i,key:function(i){return e.key(t[i],i)},diff:function(i,n){var o=e.diff(t[i],i);if(null==n)return o;var r=n._diff;return(o===r||c(r)?b(o,r):y(o,r))||o},tpl:function(i){return e.tpl(t[i],i)},map:function(t){return e.tpl=t,n},body:function(t){for(var e=Array(i),o=0;o<i;o++){var r=n.tpl(o);r._diff=n.diff(o),e[o]=r,G(r,t,o)}t.body=e}};return n}ie.prototype={constructor:ie,type:n,view:null,data:null,key:null,opts:null},oe.prototype={constructor:oe,type:o,vm:null};var le={config:_t,ViewModel:Gt,VNode:T,createView:St,defineElement:Zt,defineSvgElement:te,defineText:H,defineComment:ee,defineView:ne,injectView:re,injectElement:se,lazyList:ae,FIXED_BODY:L,DEEP_REMOVE:A,KEYED_LIST:$,LAZY_LIST:N};function ce(t,e){ue(this,t,e)}function ue(t,e,i){if(null!=e.type){if(null!=t.vm)return;G(e,t.parent,t.idx,null),t.parent.body[t.idx]=e,Wt(e,t),i&&P(e),Z(M(e))}else{var n=Object.create(t);n.attrs=g({},t.attrs);var o=g(t.attrs,e);if(null!=t._class){var r=o.class;o.class=null!=r&&""!==r?t._class+" "+r:t._class}Ct(t,n),i&&P(t)}}function de(t,e){var i=t.body;if(c(i))for(var n=0;n<i.length;n++){var o=i[n];null!=o.vm?e.push(o.vm):de(o,e)}return e}function he(t){var e,i,n=arguments,o=n.length;if(o>1){var r=1;d(n[1])&&(i=n[1],r=2),e=o===r+1&&(f(n[r])||c(n[r])||i&&(i._flags&N)===N)?n[r]:m(n,r)}return z(t,i,e)}function fe(){var t=he.apply(null,arguments);return t.ns=Qt,t}return V.patch=ce,qt.emit=vt,qt.onemit=null,qt.body=function(){return de(this.node,[])},le.defineElementSpread=he,le.defineSvgElementSpread=fe,le}()},function(t,e,i){"use strict";(function(t){var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Loader=void 0;var o=i(1),r=i(23),s=i(22),a=i(1),l=function(){function e(t,e){this._parent=t,this._changes=e}return e.prototype.load=function(t,e){var i=this;if(!t.config||this._parent.events.fire(s.DataEvents.beforeLazyLoad,[]))return this._parent.loadData=t.load().then((function(t){return t?i.parse(t,e):[]})).catch((function(t){i._parent.events.fire(s.DataEvents.loadError,[t])}))},e.prototype.parse=function(t,e){var i=this;if(void 0===e&&(e=s.DataDriver.json),"json"!==e||(0,r.hasJsonOrArrayStructure)(t)||this._parent.events.fire(s.DataEvents.loadError,["Uncaught SyntaxError: Unexpected end of input"]),!((t=(e=(0,r.toDataDriver)(e)).toJsonArray(t))instanceof Array)){var l=t.total_count-1,c=t.from;if(t=t.data,0!==this._parent.getLength())return t.forEach((function(t,e){var s=c+e,l=i._parent.getId(s);if((0,o.isId)(l)){var u=i._parent.getItem(l);if(u&&u.$empty){var d=t.id||u.id;(0,a.isDefined)(t.id)&&i._parent.changeId(l,d,!0),i._parent.update(d,n(n({},t),{$empty:void 0}),!0)}}else(0,r.dhxWarning)("item not found")})),this._parent.events.fire(s.DataEvents.afterLazyLoad,[c,t.length]),this._parent.events.fire(s.DataEvents.change),t;for(var u=[],d=0,h=0;d<=l;d++)d>=c&&d<=c+t.length-1?(u.push(t[h]),h++):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 i=this,n=this._getUniqueOrder(),o=function(n){if(n.saving||n.pending)(0,r.dhxWarning)("item is saving");else{var o=s._findPrevState(n.id);if(o&&o.saving){var a=new t((function(t,s){o.promise.then((function(){n.pending=!1,t(i._setPromise(n,e))})).catch((function(t){i._removeFromOrder(o),i._setPromise(n,e),(0,r.dhxWarning)(t),s(t)}))}));s._addToChain(a),n.pending=!0}else s._setPromise(n,e)}},s=this,a=0,l=n;a<l.length;a++){o(l[a])}n.length&&this._parent.saveData.then((function(){i._saving=!1}))},e.prototype.updateChanges=function(t){this._changes=t},e.prototype._setPromise=function(t,e){var i,n=this;switch(t.status){case"remove":i="delete";break;case"add":i="insert";break;default:i=t.status}return t.promise=e.save(t.obj,i),t.promise.then((function(){n._removeFromOrder(t)})).catch((function(e){t.saving=!1,t.error=!0,(0,r.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,i=this._changes.order;e<i.length;e++){var n=i[e];if(n.id===t)return n}return null},e.prototype._removeFromOrder=function(t){this._changes.order=this._changes.order.filter((function(e){return!(0,r.isEqualObj)(e,t)}))},e.prototype._getUniqueOrder=function(){return this._changes.order.reduce((function(t,e){var i=t.findIndex((function(t){return t.id===e.id})),n=i>-1?t[i]:null;return n&&!1===n.saving&&"add"===n.status?"remove"===e.status?t.splice(i,1):n.obj=e.obj:n&&!1===n.saving&&"update"===n.status?t.splice(i,1,e):t.push(e),t}),[])},e}();e.Loader=l}).call(this,i(17))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.XMLDriver=void 0;var n=i(123);function o(t,e){e=e||{};var i=t.attributes;if(i&&i.length)for(var n=0;n<i.length;n++)e[i[n].name]=i[n].value;var r=t.childNodes;for(n=0;n<r.length;n++){var s=r[n];if(s.nodeType===s.ELEMENT_NODE){var a=s.tagName;e[a]?("function"!=typeof e[a].push&&(e[a]=[e[a]]),e[a].push(o(s,{}))):e[a]=o(s,{})}}return e}var r=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)),o(e)},t.prototype.serialize=function(t){return(0,n.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=[],i=0;i<t.length;i++)"item"===t[i].tagName&&e.push(this._nodeToJS(t[i]));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 i=t.attributes,n=0;n<i.length;n++){var o=i[n],r=o.name,s=o.value;e[r]=this._toType(s)}if(t.nodeType===t.TEXT_NODE)return e.value=e.value||this._toType(t.textContent),e;var a=t.childNodes;if(a)for(n=0;n<a.length;n++){var l=a[n],c=l.tagName;c&&("items"===c&&l.childNodes?e[c]=this._getRows(l.childNodes):this._haveAttrs(l)?e[c]=this._nodeToJS(l):e[c]=this._toType(l.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=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.jsonToXML=void 0;var n=4;function o(t){return" ".repeat(t)}function r(t,e){void 0===e&&(e=n);var i=o(e)+"<item>\n";for(var s in t)Array.isArray(t[s])?(i+=o(e+n)+"<".concat(s,">\n"),i+=t[s].map((function(t){return r(t,e+2*n)})).join("\n")+"\n",i+=o(e+n)+"</".concat(s,">\n")):i+=o(e+n)+"<".concat(s,">").concat(t[s],"</").concat(s,">\n");return i+=o(e)+"</item>"}e.jsonToXML=function(t,e){void 0===e&&(e="root");for(var i='<?xml version="1.0" encoding="iso-8859-1"?>\n<'.concat(e,">"),n=0;n<t.length;n++)i+="\n"+r(t[n]);return i+"\n</".concat(e,">")}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Sort=void 0;var n=i(23),o=function(){function t(){}return t.prototype.sort=function(t,e,i){this._createSorter(e),i===e&&(e=null),(i||e)&&this._sort(t,i,e)},t.prototype._createSorter=function(t){var e=this;t&&!t.rule&&(t.rule=function(i,o){var r,s,a=null!==(r=e._checkVal(t.as,i[t.by]))&&void 0!==r?r:"",l=null!==(s=e._checkVal(t.as,o[t.by]))&&void 0!==s?s:"";return(0,n.naturalCompare)(a.toString(),l.toString())})},t.prototype._checkVal=function(t,e){return t?t.call(this,e):e},t.prototype._sort=function(t,e,i){var n=this,o={asc:1,desc:-1};return t.sort((function(t,r){var s=0;return e&&(s=e.rule.call(n,t,r)*(o[e.dir]||o.asc)),0===s&&i&&(s=i.rule.call(n,t,r)*(o[i.dir]||o.asc)),s}))},t}();e.Sort=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.TreeCollection=void 0;var s=i(1),a=i(60),l=i(27),c=i(23),u=i(22);function d(t,e,i,n){void 0!==n&&-1!==n&&t[i]&&t[i][n]?t[i].splice(n,0,e):(t[i]||(t[i]=[]),t[i].push(e))}var h=function(t){function e(e,i){var n,o=t.call(this,e,i)||this;o._childs={};var r=o._root=e&&e.rootId||"_ROOT_"+(0,s.uid)();return o._childs=((n={})[r]=[],n),o._initChilds=null,o}return o(e,t),e.prototype.add=function(t,e,i){var n,o=this;if(void 0===e&&(e=-1),void 0===i&&(i=this._root),this.events.fire(u.DataEvents.beforeAdd,[t]))return"object"!=typeof t&&(t={value:t}),n=Array.isArray(t)?t.map((function(t,n){return o._add(t,e,i,n)})):this._add(t,e,i),this._reapplyFilters(!1),n},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 i=this._pull[t].parent;return e?this._pull[i]:i},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 i;if((0,s.isId)(e)){if(this._childs[e])for(var n=0,o=r([],this._childs[e],!0);n<o.length;n++){var a=o[n];this.remove(a.id)}}else{t.prototype.removeAll.call(this);var l=this._root;this._initChilds=null,this._childs=((i={})[l]=[],i)}},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){var e=this;if(t){for(var i in this._childs)this._sort.sort(this._childs[i],t);if(this._initChilds&&Object.keys(this._initChilds).length)for(var i in this._initChilds)this._sort.sort(this._initChilds[i],t)}else this._childs={},this._parse_data(Object.keys(this._pull).map((function(t){return e._pull[t]}))),this._reapplyFilters(!1);this.events.fire(u.DataEvents.change,[void 0,"sort",t])},e.prototype.filter=function(t,e,i){if((null==e?void 0:e.$restore)&&(t=this._normalizeFilters(t||this._filters)),!(t&&(null==e?void 0:e.add)||(this.restoreOrder(),null==e?void 0:e.$restore)))for(var n in this._filters){var o=this._filters[n],r=o.rule,a=o.config;(null==a?void 0:a.permanent)?this._applyFilter(r,a):delete this._filters[n]}var l;if(t&&!(null==e?void 0:e.$restore))l=(null==e?void 0:e.id)||(0,s.uid)(),e||(e={}),e.type=e.type||u.TreeFilterType.all,this._filters[l]={rule:t,config:e},this._applyFilter(t,e);else for(var n in t)this._applyFilter(t[n],this._filters[n].config);if(!i){var c=this._getPureFilters(this._filters);this.events.fire(u.DataEvents.filter,[(0,s.isEmptyObj)(c)?null:c])}return l},e.prototype.restoreOrder=function(){this._initChilds&&(this._childs=this._initChilds,this._initChilds=null)},e.prototype.copy=function(t,e,i,n){var o=this;return void 0===i&&(i=this),void 0===n&&(n=this._root),t instanceof Array?t.map((function(t,r){return o._copy(t,e,i,n,r)})):this._copy(t,e,i,n)},e.prototype.move=function(t,e,i,n){var o=this;return void 0===i&&(i=this),void 0===n&&(n=this._root),t instanceof Array?t.map((function(t,r){return o._move(t,e,i,n,r)})):this._move(t,e,i,n)},e.prototype.forEach=function(t,e,i){if(void 0===e&&(e=this._root),void 0===i&&(i=1/0),this.haveItems(e)&&!(i<1))for(var n=this._childs[e],o=0;o<n.length;o++)t.call(this,n[o],o,n),this.haveItems(n[o].id)&&this.forEach(t,n[o].id,--i)},e.prototype.eachChild=function(t,e,i,n){if(void 0===i&&(i=!0),void 0===n&&(n=function(){return!0}),this.haveItems(t))for(var o=0;o<this._childs[t].length;o++)e.call(this,this._childs[t][o],o),i&&n(this._childs[t][o])&&this.eachChild(this._childs[t][o].id,e,i,n)},e.prototype.getNearId=function(t){return t},e.prototype.loadItems=function(t,e){var i=this;if(void 0===e&&(e=u.DataDriver.json),this.events.fire(u.DataEvents.beforeItemLoad,[t])){var n=this.config.autoload.toString(),o=n+(n.includes("?")?"&id=".concat(t):"?id=".concat(t));new l.DataProxy(o).load().then((function(n){n=(e=(0,c.toDataDriver)(e)).toJsonArray(n),i._parse_data(n,t),i.events.fire(u.DataEvents.change),i.events.fire(u.DataEvents.afterItemLoad,[t])})).catch((function(t){i.events.fire(u.DataEvents.loadError,[t])}))}},e.prototype.refreshItems=function(t,e){void 0===e&&(e=u.DataDriver.json),this.removeAll(t),this.loadItems(t,e)},e.prototype.eachParent=function(t,e,i){void 0===i&&(i=!1);var n=this.getItem(t);if(n&&(i&&e.call(this,n),n.parent!==this._root)){var o=this.getItem(n.parent);e.call(this,o),this.eachParent(n.parent,e)}},e.prototype.haveItems=function(t){return t in this._childs},e.prototype.canCopy=function(t,e){if(t===e)return!1;var i=!0;return this.eachParent(e,(function(e){return e.id===t?i=!1:null})),i},e.prototype.serialize=function(t,e){void 0===t&&(t=u.DataDriver.json);var i=this._serialize(this._root,e),n=(0,c.toDataDriver)(t);if(n)return n.serialize(i)},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,i){void 0===e&&(e=this._root),void 0===i&&(i=!0);var n=[];if(!this.haveItems(e))return n;for(var o=0;o<this._childs[e].length;o++)if(n.push(t.call(this,this._childs[e][o],o,this._childs)),i){var r=this.map(t,this._childs[e][o].id,i);n=n.concat(r)}return n},e.prototype.getRawData=function(e,i,n,o,r){var s;return r=null!=r?r:this._root,this._childs[r]?(s=r===this._root?t.prototype.getRawData.call(this,e,i,this._childs[r]):this._childs[r],2===o?this.flatten(s):s):[]},e.prototype.flatten=function(t){var e=this,i=[];return t.forEach((function(t){i.push(t);var n=e._childs[t.id];n&&t.$opened&&(i=i.concat(e.flatten(n)))})),i},e.prototype._add=function(e,i,n,o){void 0===i&&(i=-1),void 0===n&&(n=this._root),this._setParent(e,n),o>0&&-1!==i&&(i+=1);var r=t.prototype._add.call(this,e,i);if(Array.isArray(e.items))for(var s=0,a=e.items;s<a.length;s++){var l=a[s];this.add(l,-1,e.id)}return r},e.prototype._setParent=function(t,e){t.parent=t.parent?t.parent.toString():e;var i=this._pull[t.parent];i&&!i.items&&(i.items=[])},e.prototype._copy=function(t,e,i,n,o){if(void 0===i&&(i=this),void 0===n&&(n=this._root),!this.exists(t))return null;var r=this._childs[t];if(o&&(e=-1===e?-1:e+o),i===this&&!this.canCopy(t,n))return null;var a=(0,c.copyWithoutInner)(this.getItem(t),{items:!0});if(i.exists(t)&&(a.id=(0,s.uid)()),(0,c.isTreeCollection)(i)){if(this.exists(t)&&(a.parent=n,i!==this&&n===this._root&&(a.parent=i.getRoot()),i.add(a,e),t=a.id),r)for(var l=0,u=r;l<u.length;l++){var d=u[l].id,h=this.getIndex(d);"string"==typeof t&&this.copy(d,h,i,t)}return t}i.add(a,e)},e.prototype._move=function(t,e,i,n,o){if(void 0===i&&(i=this),void 0===n&&(n=this._root),!this.exists(t))return null;if(o&&e<this.getIndex(t)&&(e=-1===e?-1:e+o),i!==this){if(!(0,c.isTreeCollection)(i))return i.add((0,c.copyWithoutInner)(this.getItem(t)),e),void this.remove(t);var r=this.copy(t,e,i,n);return this.remove(t),r}if(!this.canCopy(t,n))return null;var s=this.getParent(t),a=this.getIndex(t),l=this._childs[s].splice(a,1)[0];return l.parent=n,this._childs[s].length||delete this._childs[s],this._addToOrder(this._order,l,e),this.events.fire(u.DataEvents.change,[t,"update",this.getItem(t)]),t},e.prototype._reset=function(e){var i;if((0,s.isId)(e))for(var n=0,o=r([],this._childs[e],!0);n<o.length;n++){var a=o[n];this.remove(a.id)}else{t.prototype._reset.call(this);var l=this._root;this._initChilds=null,this._childs=((i={})[l]=[],i)}},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._initOrder&&this._initOrder.length&&(this._initOrder=this._initOrder.filter((function(e){return e.id!==t}))),this._fastDeleteChilds(this._childs,t),this._initChilds&&this._fastDeleteChilds(this._initChilds,t)}},e.prototype._addToOrder=function(e,i,n){var o=this._childs,r=this._initChilds,s=i.parent;this._pull[i.id]=i,i.parent&&this._pull[i.parent]&&this._pull[i.parent].items&&!this._pull[i.parent].items.find((function(t){return t.id===i.id}))&&this._pull[i.parent].items.push(i),t.prototype._addToOrder.call(this,e,i,n),d(o,i,s,n),r&&d(r,i,s,n)},e.prototype._parse_data=function(t,e){var i;void 0===e&&(e=this._root);for(var n=this._order.length,o=0,r=t;o<r.length;o++){var a=r[o];this.config.init&&(a=this.config.init(a)),a&&"object"!=typeof a&&(a={value:a}),a.id=null!==(i=a.id)&&void 0!==i?i:(0,s.uid)(),a.parent=void 0===a.parent||null===a.parent||a.parent&&a.$items?e:a.parent,this._pull[a.id]&&(0,c.dhxError)("Item ".concat(a.id," already exist")),this._pull[a.id]=a,this._order[n++]=a,this._childs[a.parent]||(this._childs[a.parent]=[]),this._childs[a.parent].push(a),a.items&&a.items instanceof Object&&this._parse_data(a.items,a.id)}},e.prototype._fastDeleteChilds=function(t,e){if(this._pull[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,i,n,o){var r=this,s=this._childs[i];if(s){var a=function(t){switch(e.type){case u.TreeFilterType.all:return!0;case u.TreeFilterType.level:return n===e.level;case u.TreeFilterType.leafs:return!r.haveItems(t.id)}};if("function"==typeof t){var l=function(e){return a(e)&&t(e)};(c=s.filter(l)).length?o[i]=c:i===this._root&&(o[i]=[])}else{var c;l=function(e){var i,n=!0;for(var o in t)if(t[o].by&&""!==t[o].match&&(n=t[o].compare?t[o].compare(e[t[o].by],t[o].match,e):-1!==(null===(i=e[t[o].by])||void 0===i?void 0:i.toString().toLocaleLowerCase().indexOf(t[o].match.toString().toLowerCase()))),!n)break;return a(e)&&n};(c=s.filter(l)).length?o[i]=c:i===this._root&&(o[i]=[])}for(var d=0,h=s;d<h.length;d++){var f=h[d];this._recursiveFilter(t,e,f.id,n+1,o)}}},e.prototype._serialize=function(t,e){var i=this;return void 0===t&&(t=this._root),this.map((function(t){var n={};for(var o in t)"parent"===o||"items"===o||o.startsWith("$")||(n[o]=t[o]);return e&&(n=e(n)),i.haveItems(t.id)&&(n.items=i._serialize(t.id,e)),n}),t,!1)},e.prototype._applyFilter=function(t,e){var i=this;if(t&&("function"==typeof t||!(0,s.isEmptyObj)(t))){var n;this._initOrder||(this._initOrder=this._order),this._initChilds||(this._initChilds=this._childs);var o={};if("function"!=typeof t)if(n={},(0,s.isDefined)(t.by))n[t.by]=t;else for(var r in t)n[r]=t[r];else n=t;this._recursiveFilter(n,e,this._root,0,o),Object.keys(o).forEach((function(t){for(var e=i.getParent(t),n=i.getItem(t);e;)o[e]||(o[e]=[]),n&&!o[e].find((function(t){return t.id===n.id}))&&o[e].push(n),n=i.getItem(e),e=i.getParent(e)})),this._childs=o}},e.prototype._normalizeFilters=function(t){var e={};for(var i in t)e[i]=t[i].rule;return e},e}(a.DataCollection);e.TreeCollection=h},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.dragManager=void 0;var r=i(3),s=i(127),a=i(22),l=i(23),c=i(1);function u(t){var e=t.targetTouches?t.targetTouches[0].clientX:t.clientX,i=t.targetTouches?t.targetTouches[0].clientY:t.clientY,n=document.elementFromPoint(e,i);return(null==n?void 0:n.shadowRoot)?n.shadowRoot.elementFromPoint(e,i):n}var d=function(t){return"grid"===t.name},h=function(t){return d(t)&&t.hasOwnProperty("scrollView")},f=function(){function t(){var t=this;this._transferData={},this._canMove=!0,this._isDrag=!1,this._onMouseMove=function(e){if(t._transferData.start){var i=e.targetTouches?e.targetTouches[0].pageX:e.pageX,n=e.targetTouches?e.targetTouches[0].pageY:e.pageY,o=t._transferData,r=o.x,s=o.y,a=o.start,l=o.componentId;if(!t._transferData.ghost){if(Math.abs(r-i)<3&&Math.abs(s-n)<3)return;var c=t._onDragStart(a,l,e);if(!c)return void t._endDrop(e);t._transferData.ghost=c,document.body.appendChild(t._transferData.ghost)}t._moveGhost(i,n),t._onDrag(e)}},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){s.collectionStore.setItem(t,e)},t.prototype.onMouseDown=function(t,e,i){if(1===t.which||t.targetTouches){t.targetTouches?(document.addEventListener("touchmove",this._onMouseMove,!1),document.addEventListener("touchend",this._onMouseUp,!1)):(document.addEventListener("mousemove",this._onMouseMove),document.addEventListener("mouseup",this._onMouseUp));var n=u(t),s=(0,r.locateNode)(n,"data-dhx-id"),a=s&&s.getAttribute("data-dhx-id"),l=(0,r.locate)(n,"data-dhx-widget-id");if(Array.isArray(e)&&e.includes(a)?(this._transferData.source=o([],e,!0),this._itemsForGhost=i):(this._transferData.source=[a],this._itemsForGhost=null),a&&l){var c=(0,r.getBox)(s),d=c.left,h=c.top,f=t.targetTouches?t.targetTouches[0].pageX:t.pageX,p=t.targetTouches?t.targetTouches[0].pageY:t.pageY;this._transferData.initXOffset=f-d,this._transferData.initYOffset=p-h,this._transferData.x=f,this._transferData.y=p,this._transferData.componentId=l,this._transferData.start=a,this._transferData.item=s}}},t.prototype.isDrag=function(){return this._isDrag},t.prototype.cancelCanDrop=function(t){this._canMove=!1,this._isDrag=!1;var e=this._transferData,i=e.start,n=e.source,o=e.target,r=e.dropComponentId,l={start:i,source:n,target:o},c=s.collectionStore.getItem(r);c&&o&&c.events.fire(a.DragEvents.cancelDrop,[l,t]),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(){document.body.removeChild(this._transferData.ghost)},t.prototype._onDrop=function(t){if(this._canMove){var e=this._transferData,i=e.start,n=e.source,o=e.target,r=e.dropComponentId,l={start:i,source:n,target:o,dropPosition:e.dropPosition},c=s.collectionStore.getItem(r),u=c&&c.config;if(c&&"source"!==u.dragMode){if(c.events.fire(a.DragEvents.beforeDrop,[l,t])){var d={id:o,component:c},h={id:i,component:this._transferData.component,newId:null};this._move(h,d),h.newId&&h.component!==d.component&&(l.start=h.newId),d.component.events.fire(a.DragEvents.afterDrop,[l,t])}this._endDrop(t)}else this._endDrop(t)}else this._endDrop(t)},t.prototype._onDragStart=function(t,e,i){var n=s.collectionStore.getItem(e),o=n.config,r=this._transferData,l={start:r.start,source:r.source,target:r.target};if("target"===o.dragMode||n._pregroupData)return null;var u=function(t,e,i){void 0===i&&(i=!1);var n=t.getBoundingClientRect(),o=document.createElement("div"),r=t.cloneNode(!0),s=window.getComputedStyle(t.parentElement).fontSize;return r.style.width=n.width+"px",r.style.height=n.height+"px",r.style.maxHeight=n.height+"px",r.style.opacity="0.8",r.style.fontSize=s,i&&e&&e.length||o.appendChild(r),e&&e.length&&e.forEach((function(t,e){var r=t.cloneNode(!0);r.style.width=n.width+"px",r.style.height=n.height+"px",r.style.maxHeight=n.height+"px",r.style.top=12*(e+1)-n.height-n.height*e+"px",r.style.left=12*(e+1)+"px",r.style.opacity="0.6",r.style.zIndex="".concat(-e-1),i||(r.style.fontSize=s,r.style.overflow="hidden"),o.appendChild(r)})),o.className="dhx_drag-ghost",o}(this._transferData.item,this._itemsForGhost,"row"===o.dragItem||"column"===o.dragItem||"both"===o.dragItem);return n.events.fire(a.DragEvents.beforeDrag,[l,i,u])&&(0,c.isId)(t)?(n.events.fire(a.DragEvents.dragStart,[l,i]),this._isDrag=!0,this._toggleTextSelection(!0),this._transferData.component=n,this._transferData.dragConfig=o,u):null},t.prototype._onDrag=function(t){var e=u(t),i=(0,r.locate)(e,"data-dhx-widget-id"),n=s.collectionStore.getItem(i);if(n){var o=!!(0,r.locateNodeByClassName)(e,"dhx_grid-header")||!!(0,r.locateNodeByClassName)(e,"dhx_grid-footer"),c=n.config.columns?n.config:void 0,d=c&&("both"===c.dragItem||"column"===c.dragItem);if(!o||d){var h=(0,r.locate)(e,"data-dhx-id"),f=(0,r.locate)(e,"data-dhx-root-id");if(!h&&!f)return this.cancelCanDrop(t),this._transferData.dropComponentId=i,this._transferData.target=null,void this._canDrop(t);var p=this._transferData,v=p.dropComponentId,g=p.start,_=p.source,m=p.target,y=p.componentId,b=p.dropPosition;if("complex"===n.config.dropBehaviour){var w=function(t){var e=t.targetTouches?t.targetTouches[0].clientY:t.clientY,i=(0,r.locateNode)(u(t));if(!i)return null;var n=i.childNodes[0];if(n){var o=n.getBoundingClientRect();return(e-o.top)/o.height}}(t);this._transferData.dropPosition=w<=.25?"top":w>=.75?"bottom":"in"}else if((m===h||!h&&m===f)&&v===i)return;var x={id:g,component:this._transferData.component};if("source"!==n.config.dragMode)if(x.component.events.fire(a.DragEvents.dragOut,[{start:g,source:_,target:m},t]),i!==y||!(0,l.isTreeCollection)(x.component.data)||(0,l.isTreeCollection)(x.component.data)&&x.component.data.canCopy(x.id,h)){this.cancelCanDrop(t);var E=this._transferData.target=h||f;this._transferData.dropComponentId=i,x.component.events.fire(a.DragEvents.dragIn,[{start:g,source:_,target:E,dropPosition:b},t])&&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 i=t.component,r=e.component,s=t.component.data,a=e.component.data,u=0,f=e.id,p=(0,l.isTreeCollection)(a)?e.component.config.dropBehaviour:void 0,v=t.component.config.columns?t.component.config:void 0,g=v&&("both"===v.dragItem||"column"===v.dragItem)&&v.columns.map((function(t){return t.id})).filter((function(i){return i===t.id||i===e.id})).length;if(g&&t.component===e.component){if(t.id===e.id)return;var _=(m=i.config.columns.map((function(t){return n({},t)}))).findIndex((function(e){return e.id===t.id}));if(-1===(w=m.findIndex((function(t){return t.id===e.id}))))return;return m.splice(w,0,m.splice(_,1)[0]),i.setColumns(m),void i.paint()}if(g&&t.component&&h(t.component)&&e.component&&h(e.component)){_=(m=i.config.columns.map((function(t){return n({},t)}))).findIndex((function(e){return e.id===t.id}));var m,y=r.config.columns.map((function(t){return n({},t)})),b=r.data.getLength(),w=y.findIndex((function(t){return t.id===e.id})),x=[],E=t.id;i.data.forEach((function(e){var i;x.push(((i={id:e.id})[E]=e[t.id],i))})),b?i.data.forEach((function(t,e){var i=r.data.getItem(t.id);i?r.data.update(i.id,n(n({},i),x[e])):r.data.add(x[e])})):r.data.parse(x);var C=m.splice(_,1)[0];return y.find((function(t){return t.id===E}))||y.splice(w,0,C),r.setColumns(y),r.paint(),i.setColumns(m),void i.paint()}var S=e.id===r.config.rootParent;switch(p){case"child":break;case"sibling":f=a.getParent(f),u=a.getIndex(e.id)+1;break;case"complex":var k=this._transferData.dropPosition;if(S)f=e.id,u=a.getLength();else{var O=a.getIndex(t.id);"top"===k?(f=a.getParent(f),u=a.getIndex(e.id)-(-1===O||O>a.getIndex(e.id)?0:1)):"bottom"===k&&(f=a.getParent(f),u=a.getIndex(e.id)+(-1===O||O>a.getIndex(e.id)?1:0))}break;default:(0,c.isId)(e.id)?(a.getIndex(t.id)>-1&&(t.newId=(0,c.uid)()),u=a.getIndex(e.id)):u=-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,u,a,f),u>-1&&u++})):s.copy(t.id,u,a,f);else if(this._transferData.source instanceof Array&&this._transferData.source.length>1)s.move(this._transferData.source,u,a,f);else if(d(r)&&!r.config.columns.length){var P=i.data.getItem(t.id);r.data.parse([n({},P)]),r.setColumns(o([],i.config.columns,!0)),r.paint(),i.data.remove(t.id),i.paint()}else s.move(t.id,u,a,f,t.newId)},t.prototype._endDrop=function(t){if(this._toggleTextSelection(!1),this._transferData.component){var e=this._transferData,i={start:e.start,source:e.source,target:e.target};this._transferData.component.events.fire(a.DragEvents.afterDrag,[i,t])}this.cancelCanDrop(t),this._canMove=!0,this._transferData={},this._transferData.target=null,this._transferData.dropComponentId=null},t.prototype._canDrop=function(t){this._canMove=!0;var e=this._transferData,i={start:e.start,source:e.source,target:e.target,dropPosition:e.dropPosition},n=s.collectionStore.getItem(this._transferData.dropComponentId);n&&this._transferData.target&&(d(n)&&(i.dragItem=this._transferData.item.classList.contains("dhx_grid-row")?"row":"column"),n.events.fire(a.DragEvents.canDrop,[i,t]))},t.prototype._toggleTextSelection=function(t){t?document.body.classList.add("dhx_no-select"):document.body.classList.remove("dhx_no-select")},t}(),p=window.dhxHelpers=window.dhxHelpers||{};p.dragManager=p.dragManager||new f,e.dragManager=p.dragManager},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.collectionStore=e.CollectionStore=void 0;var n=i(1),o=function(){function t(){this._store={}}return t.prototype.setItem=function(t,e){this._store[t]=e},t.prototype.getItem=function(t){return(0,n.isId)(t)&&this._store[t]?this._store[t]:null},t}();e.CollectionStore=o;var r=window.dhxHelpers=window.dhxHelpers||{};r.collectionStore=r.collectionStore||new o,e.collectionStore=r.collectionStore},function(t,e,i){"use strict";(function(t){var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.LazyDataProxy=void 0;var r=i(27),s=i(1),a=i(41),l=function(e){function i(t,i){var n=e.call(this,t)||this;return n.config=(0,s.extend)({from:0,limit:50,delay:50,prepare:0},i),n.updateUrl(t,{from:n.config.from,limit:n.config.limit}),n}return o(i,e),i.prototype.load=function(){var e=this;return new t((function(t,i){e._timeout?(clearTimeout(e._timeout),e._timeout=setTimeout((function(){a.ajax.get(e.url,{responseType:"text"}).then(t).catch(i),e._cooling=!0}),e.config.delay),e._cooling&&(t(null),e._cooling=!1)):(a.ajax.get(e.url,{responseType:"text"}).then(t).catch(i),e._cooling=!0,e._timeout=setTimeout((function(){})))}))},i}(r.DataProxy);e.LazyDataProxy=l}).call(this,i(17))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Selection=void 0;var n=i(2),o=i(28),r=i(22),s=i(1),a=function(){function t(t,e,i){var o=this;this.events=i||new n.EventSystem(this),this.config=t,this._data=e,this._selected=null,this._data.events.on(r.DataEvents.removeAll,(function(){o._selected=null})),this._data.events.on(r.DataEvents.change,(function(){if((0,s.isId)(o._selected)){var t=o._data.getNearId(o._selected);t!==o._selected&&(o._selected=null,t&&o.add(t))}}))}return t.prototype.getId=function(){return this._selected},t.prototype.getItem=function(){return(0,s.isId)(this._selected)?this._data.getItem(this._selected):null},t.prototype.remove=function(t){return t=null!=t?t:this._selected,!(0,s.isDefined)(t)||!!this.events.fire(o.SelectionEvents.beforeUnSelect,[t])&&(this._data.update(t,{$selected:!1},!0),this._selected=null,this.events.fire(o.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(o.SelectionEvents.beforeSelect,[t])&&(this._selected=t,this._data.update(t,{$selected:!0},!0),this.events.fire(o.SelectionEvents.afterSelect,[t]))},t}();e.Selection=a},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Vault=void 0;var a=i(1),l=i(0),c=i(2),u=i(3),d=i(19),h=i(9),f=i(7),p=i(11),v=i(12),g=i(34),_=i(20),m=i(48),y=i(33),b=i(59),w=i(156),x=i(157),E=i(158),C=i(159),S=function(t){function e(e,i){void 0===i&&(i={});var n=t.call(this,null,(0,a.extend)({mode:y.VaultMode.list,toolbar:!0,updateFromResponse:!0,scaleFactor:4,customScroll:!0,uploader:{},progressBar:{}},i))||this;return n.config.toolbar||(n.config.uploader.autosend=!0),i.data?(n.data=i.data,n.events=i.data.events,n.events.context=n):(n.events=new c.EventSystem(n),n.data=new f.DataCollection({},n.events)),n.data.config.init=function(t){return t.status=t.status||y.FileStatus.uploaded,t.file?(t.size=t.file.size,t.name=t.file.name):(t.size=t.size||0,t.name=t.name||""),n.config.mode===y.VaultMode.grid&&t.file&&(0,x.isImage)(t)&&n._readStack.add(t,n.uploader.config.autosend),t},n._readStack=new C.ReadStackPreview(n.data),n.uploader=new b.Uploader(n.config.uploader,n.data,n.events),n._scrollView=new d.ScrollView((function(){return n._vaultView.getRootView()})),n._progressBar=new E.ProgressBar(n.events,n.config.progressBar),n.events.on(y.UploaderEvents.uploadProgress,(function(t,e,i){return n._progressBar.setState(t,{current:e,total:i})})),n._initHandlers(),n._initUI(e),n._initEvents(),n}return o(e,t),e.prototype.destructor=function(){this.toolbar.destructor(),this._readStack.stop(),this.uploader.unlinkDropArea(),this.uploader.abort()},e.prototype.getRootView=function(){return this._layout.getRootView()},e.prototype._initUI=function(t){var e=this,i=this.config.toolbar?w.layoutConfig:w.layoutConfigWithoutTopbar;i.on=this._getDragEvents();var n=this._layout=new p.Layout(t,i),o=this.toolbar=new g.Toolbar(null,{css:"vault-toolbar"});this.toolbar.data.parse([{id:"add",tooltip:m.default.add,type:"button",icon:"dxi-plus"},{id:"upload",tooltip:m.default.upload,type:"button",icon:"dxi icon-upload"},{id:"spacer",type:"spacer"},{id:"remove-all",tooltip:m.default.clearAll,type:"button",icon:"dxi-delete-forever"}]),this._hideUploadAndDeleteButtons(),this._vaultView=(0,h.toViewLike)((0,l.create)({render:function(){return e._draw()}})),this.config.toolbar&&n.getCell("topbar").attach(o),n.getCell("vault").attach(this._vaultView)},e.prototype._initHandlers=function(){var t=this;this._handlers={onclick:{".action-add":function(){return t.uploader.selectFile()},".action-remove-file":function(e){var i=(0,u.locate)(e);i&&(t.data.update(i,{$toRemove:!0}),setTimeout((function(){t.data.update(i,{$toRemove:!1},!0),t.data.remove(i)}),200))}},onmouseover:{".action-download":function(t){(0,v.tooltip)(m.default.download,{node:t.target,position:v.Position.bottom})},".action-remove-file":function(t){(0,v.tooltip)(m.default.clear,{node:t.target,position:v.Position.bottom})},".title-content, .dhx-file-name":function(e){var i=(0,u.locate)(e),n=t.data.getItem(i);(0,v.tooltip)(n.name,{node:e.target,position:v.Position.bottom,css:"tooltip-light"})}}}},e.prototype._getDragEvents=function(){var t=this,e={left:null,top:null,width:null,height:null};return{dragleave:function(i){t._canDrop&&(i.pageX>e.left+e.width-1||i.pageX<e.left||i.pageY>e.top+e.height-1||i.pageY<e.top)&&(t._canDrop=!1,t.config.toolbar&&t._layout.getCell("topbar").show(),t._layout.config.css="vault-layout",t._layout.paint())},dragenter:function(i){if(i.preventDefault(),!t.uploader.isActive&&!t._canDrop){for(var n=0,o=i.dataTransfer.types;n<o.length;n++){var r=o[n];if("Files"!==r&&"application/x-moz-file"!==r)return void(t._canDrop=!1)}t._canDrop=!0;var s=t.getRootView().node.el.getBoundingClientRect();e.left=s.left+window.pageXOffset,e.top=s.top+window.pageYOffset,e.width=s.width,e.height=s.height,t._canDrop=!0,t.config.toolbar&&t._layout.getCell("topbar").hide(),t._layout.config.css="vault-layout dhx-dragin",t._layout.paint()}},dragover:function(t){t.preventDefault()},drop:function(e){if(e.preventDefault(),t._canDrop){var i=e.dataTransfer;t.uploader.parseFiles(i),t._canDrop=!1,t.config.toolbar&&t._layout.getCell("topbar").show(),t._layout.config.css="vault-layout",t._layout.paint()}}}},e.prototype._hideUploadAndDeleteButtons=function(){this.toolbar.hide(["upload","remove-all"])},e.prototype._showUploadAndDeleteButtons=function(){this.uploader.config.autosend?this.toolbar.show("remove-all"):this.toolbar.show(["upload","remove-all"])},e.prototype._initEvents=function(){var t=this;this.data.events.on(f.DataEvents.change,(function(){t.data.getLength()?t._showUploadAndDeleteButtons():t._hideUploadAndDeleteButtons(),t._vaultView.paint()})),this.events.on(y.UploaderEvents.uploadBegin,(function(){t.config.toolbar&&t._layout.getCell("topbar").attach(t._progressBar)})),this.events.on(y.UploaderEvents.uploadComplete,(function(){t.config.mode===y.VaultMode.grid&&t.uploader.config.autosend&&t._readStack.read(),t.config.toolbar&&t._layout.getCell("topbar").attach(t.toolbar)})),this.toolbar.events.on(_.NavigationBarEvents.click,(function(e){switch(e){case"add":t.uploader.selectFile();break;case"remove-all":t.data.removeAll();break;case"upload":t.uploader.send()}})),this.events.on(y.ProgressBarEvents.cancel,(function(){t.uploader.abort(),t._vaultView.paint()}))},e.prototype._draw=function(){var t=!this.data.getLength(),e=this.config.mode===y.VaultMode.grid?this._drawGrid():this._drawList();return(0,l.el)("div",r(r({class:"vault dhx_widget"+(this._canDrop?" drop-here":"")},this._handlers),{"data-dhx-widget-id":this._uid}),[this._canDrop||t?this._drawDropableArea():this.config.customScroll?this._scrollView.render(e):e])},e.prototype._getFileActions=function(t){var e=[],i=[],n=[(0,l.el)(".dhx-default-actions",e),(0,l.el)(".dhx-hover-actions",i)];if(t.status===y.FileStatus.inprogress)return n;if(t.status!==y.FileStatus.failed&&t.link){var o=(this.config.downloadURL||"")+t.link,r=o.split("/").pop().split("?")[0],s=(0,l.el)("a",{download:r,class:"download-link",href:o},[(0,l.el)(".icon-btn.dxi.dxi-download.action-download")]);i.push(s)}var a=(0,l.el)(".icon-btn.dxi.dxi-delete-forever.action-remove-file");if(i.push(a),t.status===y.FileStatus.failed){var c=(0,l.el)(".dxi.dxi-alert-circle.warning-status");e.push(c)}if(t.status===y.FileStatus.uploaded){var u=(0,l.el)(".dxi.dxi-checkbox-marked-circle.uploaded-status");e.push(u)}return n},e.prototype._drawList=function(){var t=this;return(0,l.el)(".dhx-files-block.dhx-webkit-scroll",this.data.map((function(e){var i=e.status===y.FileStatus.failed&&e.request,n=e.status===y.FileStatus.inprogress,o=e.status===y.FileStatus.queue,r=e.status!==y.FileStatus.uploaded;return(0,l.el)("div",{class:"dhx-file-item"+(e.$toRemove?" to-remove":"")+(o?" in-queue":""),"data-dhx-id":e.id,_key:e.id},[(0,l.el)(".dhx-file-icon",[(0,l.el)("div",{class:"dhx-file-type "+(0,x.getFileClassName)(e)+(r?" not-loaded":"")})]),(0,l.el)(".dhx-file-title",[(0,l.el)(".dhx-title-content",e.name),(0,l.el)(".dhx-file-info",[i&&(0,l.el)(".warn-message",e.request.statusText||m.default.error),n?(0,l.el)(".progress-value",(100*e.progress).toFixed(1)+"%"):(0,l.el)(".dhx-size"+(i?".dhx-size-error":""),(0,x.getBasis)(e.size))])]),n&&(0,l.el)(".dhx-download-progress",{style:{width:(100*e.progress).toFixed(1)+"%"}}),!n&&(0,l.el)(".dhx-file-action",t._getFileActions(e))])})))},e.prototype._drawDropableArea=function(){return(0,l.el)(".dhx-dropable-area.drop-files-here",[(0,l.el)(".dhx-big-icon-block",[(0,l.el)(".dxi.icon-upload")]),!this._canDrop&&(0,l.el)(".drop-area-bold-text",m.default.dragAndDrop),!this._canDrop&&(0,l.el)(".drop-area-bold-text",m.default.filesOrFoldersHere),!this._canDrop&&(0,l.el)(".drop-area-light-text",m.default.or),!this._canDrop&&(0,l.el)("button.dhx_btn.dhx_btn--flat.dhx_btn--small.action-add",m.default.browse)])},e.prototype._drawGrid=function(){var t=this;return(0,l.el)("div",{class:"dhx-files-grid dhx-webkit-scroll"},[(0,l.el)(".dhx-grid-content",this.data.map((function(e){var i=e.status===y.FileStatus.inprogress,n=e.status===y.FileStatus.queue,o=e.status===y.FileStatus.failed;return(0,l.el)("div",{class:"dhx-file-grid-item"+(i?" in-progress":"")+(e.$toRemove?" to-remove":"")+(n?" in-queue":"")+(o?" failed":""),"data-dhx-id":e.id,_key:e.id},[(0,l.el)(".dhx-preview-wrapper",s(s([e.preview?(0,l.el)(".dhx-server-file-preview",[(0,l.el)("img",{src:e.preview})]):e.image?(0,l.el)("canvas",{width:98*t.config.scaleFactor,height:98*t.config.scaleFactor,_hooks:{didInsert:function(i){var n=(0,x.calculateCover)(e.image),o=n.dx,r=n.dy,s=n.sx,a=n.sy,l=n.sHeight,c=n.sWidth;i.el.getContext("2d").drawImage(e.image,s,a,c,l,o,r,98*t.config.scaleFactor,98*t.config.scaleFactor)}}}):(0,l.el)("div",{class:"dhx-file-preview dhx-file-type "+(0,x.getFileClassName)(e)}),i&&t._drawCircle(e.progress)],t._getFileActions(e),!0),[(0,l.el)(".dhx-file-info",[o&&(0,l.el)(".warn-message",e.request.statusText||m.default.error),!i&&(0,l.el)(".dhx-size"+(o?".dhx-size-error":""),(0,x.getBasis)(e.size))])],!1)),(0,l.el)(".dhx-file-name",(0,x.truncateWord)(e.name))])})))])},e.prototype._drawCircle=function(t){return(0,l.el)(".progress-layout",[(0,l.el)(".progress-amount",(100*t).toFixed(1)+"%"),(0,l.sv)("svg",{xmlns:"http://www.w3.org/2000/svg",class:"progress-circle",viewBox:"0 0 60 60"},[(0,l.sv)("circle",{cx:30,cy:30,r:28,"stroke-width":4,class:"progress-bar-background"}),(0,l.sv)("circle.active-circle",{cx:30,cy:30,r:28,"stroke-width":4,"stroke-dasharray":"175.9 175.9","stroke-dashoffset":175.9*(1-t),class:"progress-bar-active"})])])},e}(h.View);e.Vault=S},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMarginSize=e.getBlockRange=void 0,e.getBlockRange=function(t,e,i){return void 0===i&&(i=!0),i?{min:t.left+window.pageXOffset,max:e.right+window.pageXOffset}:{min:t.top+window.pageYOffset,max:e.bottom+window.pageYOffset}},e.getMarginSize=function(t){return t&&("space"===t.type||"wide"===t.type)?12:0}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.ProLayout=void 0;var r=i(42),s=i(133),a=function(t){function e(e,i){return t.call(this,e,i)||this}return o(e,t),e.prototype._createCell=function(t){var i;return t.rows||t.cols||t.views?(t.parent=this._root,i=new e(this,t)):i=new s.ProCell(this,t),this._root._all[i.id]=i,t.init&&t.init(i,t),i},e}(r.Layout);e.ProLayout=a},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ProCell=void 0;var s=i(1),a=i(0),l=i(19),c=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.scrollView=new l.ScrollView((function(){return n._getFirstRootView()})),n}return o(e,t),e.prototype._getFirstRootView=function(t){return void 0===t&&(t=this),t.getParent()&&t.getParent().getRootView()?t.getParent().getRootView():this._getFirstRootView(t.getParent())},e.prototype.toVDOM=function(t){var e,i,n;if(this._saveTheme(),null===this.config&&(this.config={}),!this.config.hidden){var o,l=this.config.$fieldset,c=this._calculateStyle(),u=(0,s.isDefined)(this.config.padding)?isNaN(Number(this.config.padding))?{padding:this.config.padding}:{padding:"".concat(this.config.padding,"px")}:"",d=this.config.full||this.config.html?c:r(r({},c),u),h=this._checkProgress()?this._getProgressBar():null;if(!this.config.html)if(this._ui){var f=this._ui.getRootView();f.render&&(f=(0,a.inject)(f)),o=f?[this.scrollView.render(f)]:f||null}else o=t?this.scrollView.render([t]):t||null;var p=this.config.resizable&&!this._isLastCell()&&this._getNextCell()&&!this.config.collapsed?(0,a.el)(".dhx_layout-resizer."+(this._isXDirection()?"dhx_layout-resizer--x":"dhx_layout-resizer--y"),r(r({},this._resizerHandlers),{_ref:"resizer_"+this._uid}),[(0,a.el)("span.dhx_layout-resizer__icon",{class:"dxi "+(this._isXDirection()?"dxi-dots-vertical":"dxi-dots-horizontal")})]):null,v={};if(this.config.on)for(var g in this.config.on)v["on"+g]=this.config.on[g];var _="",m=this.config.cols||this.config.rows;if(this.config.type&&m)switch(this.config.type){case"line":_=" dhx_layout-line";break;case"wide":_=" dhx_layout-wide";break;case"space":_=" dhx_layout-space"}var y=(0,a.el)(".dhx_layout-cell-content",{_key:"".concat(this._uid,"_html"),style:u},[(0,a.el)(".dhx_layout-cell-inner_html",{".innerHTML":this.config.html})]),b=l?(0,a.el)("fieldset.dhx_form-fieldset",{class:this.config.$disabled?" dhx_form-fieldset--disabled":"",style:u,disabled:this.config.$disabled},[(0,a.el)("legend.dhx_form-fieldset-legend",{class:"dhx_form-fieldset-legend--".concat(this.config.labelAlignment||"left")},this.config.label),(0,a.el)(".dhx_layout-cell-content",{class:this._getCss(!1)},[].concat(o))]):this.config.full?[(0,a.el)("div",{tabindex:this.config.collapsable?"0":"-1",class:"dhx_layout-cell-header"+(this._isXDirection()?" dhx_layout-cell-header--col":" dhx_layout-cell-header--row")+(this.config.collapsable?" dhx_layout-cell-header--collapseble":"")+(this.config.collapsed?" dhx_layout-cell-header--collapsed":"")+(((this.getParent()||{}).config||{}).isAccordion?" dhx_layout-cell-header--accordion":""),style:{height:this.config.headerHeight},onclick:this._handlers.toggle,onkeydown:this._handlers.enterCollapse},[this.config.headerIcon&&(0,a.el)("span.dhx_layout-cell-header__icon",{class:this.config.headerIcon}),this.config.headerImage&&(0,a.el)(".dhx_layout-cell-header__image-wrapper",[(0,a.el)("img",{src:this.config.headerImage,class:"dhx_layout-cell-header__image"})]),this.config.header&&(0,a.el)("h3.dhx_layout-cell-header__title",this.config.header),this.config.collapsable?(0,a.el)("div.dhx_layout-cell-header__collapse-icon",{class:this._getCollapseIcon()}):(0,a.el)("div.dhx_layout-cell-header__collapse-icon",{class:"dxi dxi-empty"})]),this.config.collapsed?null:(0,a.el)("div",{style:r(r({},u),{height:"calc(100% - ".concat(this.config.headerHeight||37,"px)")}),class:this._getCss(!0)+" dhx_layout-cell-content"+(this.config.type?_:"")},this.config.html?[(0,a.el)("div",{".innerHTML":this.config.html,class:"dhx_layout-cell dhx_layout-cell-inner_html"})]:o)]:!this.config.html||this.config.rows&&this.config.cols&&this.config.views?o:[this.config.collapsed?null:this.scrollView&&this.scrollView.config.enable?this.scrollView.render([y],this._uid):y],w=(0,a.el)("div",r(r(((e={_key:this._uid,_ref:this._uid})["aria-label"]=this.config.id?"tab-content-"+this.config.id:null,e["data-cell-id"]=null!==(i=this.config.id)&&void 0!==i?i:null,e["data-dhx-theme"]=null!==(n=this._theme)&&void 0!==n?n:null,e),v),{class:this._getCss(!1)+(this.config.css?" "+this.config.css:"")+(this.config.collapsed?" dhx_layout-cell--collapsed":"")+(this.config.resizable?" dhx_layout-cell--resizable":"")+(this.config.type&&!this.config.full?_:""),style:l?c:d}),b||h?[].concat(b,h):null);return p?[].concat(w,p):w}},e}(i(64).Cell);e.ProCell=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.message=void 0;var n=i(1),o=i(3),r=i(44),s=new WeakMap,a=new Map;function l(t,e){var i=document.createElement("div");return i.setAttribute("data-position",e),i.className="dhx_message-container dhx_message-container--"+e+(t===document.body?" dhx_message-container--in-body":""),i}e.message=function(t){var e;"string"==typeof t&&(t={text:t}),t.position=t.position||r.MessageContainerPosition.topRight;var i=document.createElement("div");i.className="dhx_widget dhx_message "+(t.css||""),i.setAttribute("role","alert");var c=t.text&&(0,n.uid)();c&&i.setAttribute("aria-describedby",c),t.html?i.innerHTML=t.html:(i.innerHTML='<span class="dhx_message__text" id='.concat(c,"></span>\n\t\t").concat(t.icon?'<span class="dhx_message__icon dxi '.concat(t.icon,'"></span>'):""),i.querySelector("#".concat(c)).textContent=t.text);var u=t.node?(0,o.toNode)(t.node):document.body;"static"===getComputedStyle(u).position&&(u.style.position="relative");var d=a.get(u);d?d[t.position]||(d[t.position]={stack:[],container:l(u,t.position)}):a.set(u,((e={})[t.position]={stack:[],container:l(u,t.position)},e));var h=a.get(u)[t.position],f=h.stack,p=h.container;function v(t){void 0===t&&(t=!0),i&&(!function(t,e){e&&clearTimeout(s.get(t));var i=t.parentNode,n=i.getAttribute("data-position"),o=i.parentNode,r=a.get(o);if(r){var l=r[n];if(l){var c=l.stack,u=c.indexOf(t);-1!==u&&(i.removeChild(t),c.splice(u,1),0===c.length&&o.removeChild(i))}}}(i,t),i=null)}if(0===f.length&&u.appendChild(p),f.push(i),p.appendChild(i),t.expire){var g=setTimeout((function(){return v(!1)}),t.expire);s.set(i,g)}return i.onclick=function(){return v()},{close:function(){return v()}}}},function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.alert=void 0;var n=i(45),o=i(65),r=i(1);e.alert=function(e){var i=e.buttons&&e.buttons[0]?e.buttons[0]:n.default.apply,s=(0,o.blockScreen)(e.blockerCss);return new t((function(t){var n="dhx_alert__".concat((0,r.uid)(),"_content"),o="dhx_alert__".concat((0,r.uid)(),"_header"),a=document.createElement("div");a.setAttribute("role","alert"),a.setAttribute("aria-modal","true"),e.text&&a.setAttribute("aria-describedby",n),e.header&&a.setAttribute("aria-labelledby",o),a.className="dhx_widget dhx_alert "+(e.css||"");var l=function(e){"Escape"!==e.key&&"Esc"!==e.key||(c(e),t(!1))};function c(t){t.preventDefault(),s(),document.body.removeChild(a),document.removeEventListener("keydown",l)}a.innerHTML="\n\t\t\t".concat(e.header?"<div id=".concat(o,' class="dhx_alert__header"> ').concat(!1!==e.htmlEnable?e.header:""," </div>"):"","\n\t\t\t").concat(e.text?"<div id=".concat(n,' 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(i,"</button>\n\t\t\t</div>"),!1===e.htmlEnable&&(e.header&&(a.querySelector("#".concat(o)).textContent=e.header),e.text&&(a.querySelector("#".concat(n)).textContent=e.text)),document.body.appendChild(a),a.querySelector(".dhx_alert__apply-button").focus(),a.querySelector("button").addEventListener("click",(function(e){c(e),t(!0)})),document.addEventListener("keydown",l)}))}}).call(this,i(17))},function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.confirm=void 0;var n=i(45),o=i(65),r=i(1);e.confirm=function(e){e.buttonsAlignment=e.buttonsAlignment||"right";var i=e.buttons&&e.buttons[1]?e.buttons[1]:n.default.apply,s=e.buttons&&e.buttons[0]?e.buttons[0]:n.default.reject,a=(0,o.blockScreen)("dhx_alert__overlay-confirm "+(e.blockerCss||""));return new t((function(t){var n=document.createElement("div");n.setAttribute("role","alertdialog"),n.setAttribute("aria-modal","true");var o,l=e.header&&(0,r.uid)(),c=e.header&&(0,r.uid)();c&&n.setAttribute("aria-describedby",c),l&&n.setAttribute("aria-labelledby",l);var u=function(e){a(),n.removeEventListener("click",d),document.removeEventListener("keydown",h),document.body.removeChild(n),t(e)},d=function(t){"BUTTON"===t.target.tagName&&u(t.target.classList.contains("dhx_alert__confirm-aply"))},h=function(t){"Escape"===t.key||"Esc"===t.key?(n.querySelector(".dhx_alert__confirm-aply").focus(),u(t.target.classList.contains("dhx_alert__confirm-reject"))):"Tab"===t.key&&("aply"===o?(o="reject",n.querySelector(".dhx_alert__confirm-reject").focus()):(o="aply",n.querySelector(".dhx_alert__confirm-aply").focus()),t.preventDefault())};n.className="dhx_widget dhx_alert dhx_alert--confirm"+(e.css?" "+e.css:""),n.innerHTML="\n\t\t".concat(e.header?'<div class="dhx_alert__header" id='.concat(l,"> ").concat(!1!==e.htmlEnable?e.header:""," </div>"):"","\n\t\t").concat(e.text?'<div class="dhx_alert__content" id='.concat(c,">").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(s,'</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(i,"</button>\n\t\t\t</div>"),!1===e.htmlEnable&&(e.header&&(n.querySelector("#".concat(l)).textContent=e.header),e.text&&(n.querySelector("#".concat(c)).textContent=e.text)),document.body.appendChild(n),o="aply",n.querySelector(".dhx_alert__confirm-aply").focus(),n.addEventListener("click",d),document.addEventListener("keydown",h)}))}}).call(this,i(17))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Navbar=void 0;var s=i(1),a=i(0),l=i(2),c=i(12),u=i(3),d=i(14),h=i(9),f=i(7),p=i(35);var v=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n._isContextMenu=!1,n._documentHaveListener=!1,n.config=(0,s.extend)({rootId:"string"==typeof e&&e||n._uid},i),n._rootItem={},Array.isArray(n.config.data)?(n.events=new l.EventSystem(n),n.data=new f.TreeCollection({rootId:n.config.rootId},n.events)):n.config.data&&n.config.data.events?(n.data=n.config.data,n.events=n.data.events,n.events.context=n):(n.events=new l.EventSystem(n),n.data=new f.TreeCollection({rootId:n.config.rootId},n.events)),n._documentClick=function(t){if(n._documentHaveListener){var e=(0,u.locateNode)(t),i=n.data.getRoot(),o=e&&e.getAttribute("data-dhx-id"),r=n.data.getParent(o),a="ontouchstart"in window||navigator.msMaxTouchPoints;if(document.removeEventListener("click",n._documentClick),n._documentHaveListener=!1,(0,s.isId)(o)&&n._currentRoot===o)return;((!a||e)&&n._isContextMenu||i!==r&&r&&n.data.getItem(o))&&r&&n.data.getItem(o)&&(!n._isContextMenu||i===(0,u.locate)(t,"data-dhx-widget-id"))||n._close(t)}},n._currentRoot=n.data.getRoot(),n._factory=n._getFactory(),n._initHandlers(),n._keyManager=new d.KeyManager((function(t,e){return e===n._uid})),n._initEvents(),Array.isArray(n.config.data)&&n.data.parse(n.config.data),n}return o(e,t),e.prototype.paint=function(){t.prototype.paint.call(this),this._isContextMenu&&!this._vpopups&&this._init(),this._vpopups&&this._vpopups.redraw()},e.prototype.disable=function(t){var e=this;void 0!==t?this._setProp(t,"disabled",!0):this.data.forEach((function(t){var i=t.id;return e._setProp(i,"disabled",!0)}))},e.prototype.enable=function(t){var e=this;void 0!==t?this._setProp(t,"disabled",!1):this.data.forEach((function(t){var i=t.id;return e._setProp(i,"disabled",!1)}))},e.prototype.isDisabled=function(t){var e=this.data.getItem(t);if(e)return e.disabled||!1},e.prototype.show=function(t){var e=this;void 0!==t?this._setProp(t,"hidden",!1):this.data.forEach((function(t){var i=t.id;return e._setProp(i,"hidden",!1)}))},e.prototype.hide=function(t){var e=this;void 0!==t?this._setProp(t,"hidden",!0):this.data.forEach((function(t){var i=t.id;return e._setProp(i,"hidden",!0)}))},e.prototype.destructor=function(){this.events.clear(),this._keyManager&&this._keyManager.destructor(),this._vpopups&&this._vpopups.node&&this._vpopups.unmount(),this.unmount()},e.prototype.select=function(t,e){var i=this;if(void 0===e&&(e=!0),!(0,s.isId)(t))throw new Error("Function argument cannot be empty, for more info check documentation https://docs.dhtmlx.com");e&&this.unselect(),this.data.update(t,{active:!0}),this.data.eachParent(t,(function(t){i.data.update(t.id,{active:!0})}))},e.prototype.unselect=function(t){var e=this;(0,s.isId)(t)?(this.data.update(t,{active:!1}),this.data.eachChild(t,(function(t){e.data.update(t.id,{active:!1})}))):this.data.forEach((function(t){e.data.update(t.id,{active:!1})}))},e.prototype.isSelected=function(t){if((0,s.isId)(t)&&this.data.getItem(t))return!!this.data.getItem(t).active},e.prototype.getSelected=function(){var t=[];return this.data.forEach((function(e){e.active&&t.push(e.id)})),t},e.prototype._customHandlers=function(){return{}},e.prototype._close=function(t){var e=this;this._popupActive&&this.events.fire(p.NavigationBarEvents.beforeHide,[this._activeMenu,t])&&(this._activeParents&&this._activeParents.forEach((function(t){return e.data.exists(t)&&e.data.update(t,{$activeParent:!1})})),"click"===this.config.navigationType&&(this._isActive=!1),clearTimeout(this._currentTimeout),this._popupActive=!1,this._activeMenu=null,this._vpopups.node&&this._vpopups.unmount(),this._vpopups=null,this.events.fire(p.NavigationBarEvents.afterHide,[t]),this.paint())},e.prototype._init=function(){var t,e=this;if(!this._isContextMenu||this._activePosition){var i=this.getRootNode()||document.documentElement,n=null===(t=null==i?void 0:i.closest("[data-dhx-theme]"))||void 0===t?void 0:t.getAttribute("data-dhx-theme");this._vpopups=(0,a.create)({render:function(){var t;return(0,a.el)("div",{"data-dhx-widget-id":e._uid,"data-dhx-theme":n||"light",class:"dhx_".concat(null===(t=e.config)||void 0===t?void 0:t.$name,"--popup-menu ").concat(e._isContextMenu?" dhx_context-menu":""," ").concat(e.config.css?e.config.css.split(" ").map((function(t){return e._isContextMenu?t:t+"--popup-menu"})).join(" "):""),onmousemove:e._handlers.onmousemove,onmouseleave:e._handlers.onmouseleave,onclick:e._handlers.onclick,onmousedown:e._handlers.onmousedown,onkeydown:e._handlers.onkeydown},e._drawPopups())}}),this._vpopups.mount(document.body)}},e.prototype._initHandlers=function(){var t=this;this._isActive="click"!==this.config.navigationType,this._handlers=r({onkeydown:function(e){var i=(0,u.locate)(e)||void 0;(0,u.locateNode)(e,"data-dhx-widget-id").contains(document.activeElement)&&t.events.fire(p.NavigationBarEvents.keydown,[e,i])},onmousemove:function(e){if(t._isActive){var i=(0,u.locateNode)(e);if(i){var n=i.getAttribute("data-dhx-id");if(t._activeMenu!==n){if(t.data.haveItems(n)){t._vpopups||t._init(),t._setRoot(n);var o=(0,u.getRealPosition)(i);t.data.update(n,{$position:o},!1)}t._activeItemChange(n,e)}}}},onmouseleave:function(e){if("click"!==t.config.navigationType)if(t._popupActive){var i=(0,u.locateNode)(e,"data-dhx-id","relatedTarget");if(i){var n=i.getAttribute("data-dhx-id");if(t.data.getItem(n)||(t._close(e),t._activeItemChange(null,e)),t.data.haveItems(n)){t._vpopups||t._init();var o=(0,u.getRealPosition)(i);t.data.update(n,{$position:o},!1),t._activeItemChange(n,e)}}else t._close(e),t._activeItemChange(null,e)}else t._activeItemChange(null,e)},onclick:function(e){var i=(0,u.locateNode)(e);if(i){var n=i.getAttribute("data-dhx-id");if(!t.isDisabled(n)){var o=t.data.getItem(n);if(!(null==o?void 0:o.multiClick)){if(t._currentRoot===n)return t.events.fire(p.NavigationBarEvents.click,[n,e]),void("click"===t.config.navigationType&&t._close(e));if(t.data.haveItems(n)){t._vpopups||t._init(),t._isActive||(t._isActive=!0),t._setRoot(n);var r=(0,u.getRealPosition)(i);t.data.update(n,{$position:r},!1),t._activeItemChange(n,e),t.events.fire(p.NavigationBarEvents.click,[n,e])}else switch(null==o?void 0:o.type){case"input":case"title":break;case"menuItem":case"selectButton":t._onMenuItemClick(n,e);break;case"imageButton":case"button":case"customButton":case"customHTML":case"navItem":o.twoState&&t.data.update(o.id,{active:!o.active}),t.events.fire(p.NavigationBarEvents.click,[n,e]),t._close(e);break;default:t._close(e)}}}}},onmousedown:function(e){var i=(0,u.locateNode)(e);if(i){var n=i.getAttribute("data-dhx-id"),o=t.data.getItem(n);if(null==o?void 0:o.multiClick){var r,s=365,a=function(){t.events.fire(p.NavigationBarEvents.click,[n,e]),s>50&&(s-=55),r=setTimeout(a,s)},l=function(){clearTimeout(r),document.removeEventListener("mouseup",l)};a(),document.addEventListener("mouseup",l)}}}},this._customHandlers())},e.prototype._initEvents=function(){var t=this,e=null;[p.DataEvents.change,p.DataEvents.filter].forEach((function(i){t.events.on(i,(function(){return t.paint(),e&&clearTimeout(e),void(e=setTimeout((function(){var i={};t.data.eachChild(t.data.getRoot(),(function(t){t.group&&(t.twoState=!0,function(t,e){t[e.group]?(e.active&&(t[e.group].active=e.id),t[e.group].elements.push(e.id)):t[e.group]={active:e.active?e.id:null,elements:[e.id]}}(i,t))}),!0),t._groups=i,t._resetHotkeys(),e=null,t.paint()}),100))}))})),this.events.on(p.NavigationBarEvents.click,(function(e){var i=t.data.getItem(e),n=t.data.getItem(null==i?void 0:i.parent);if(n&&"selectButton"===n.type&&t.data.update(i.parent,{value:i.value,icon:i.icon}),null==i?void 0:i.group){var o=t._groups[i.group];o.active&&t.data.update(o.active,{active:!1}),o.active=i.id,t.data.update(i.id,{active:!0})}})),this.events.on(p.NavigationBarEvents.inputChange,(function(e,i){t.data.update(e,{value:i})})),this._customInitEvents()},e.prototype._getMode=function(t,e,i){return void 0===i&&(i=!1),t.parent===e?"bottom":"right"},e.prototype._drawMenuItems=function(t,e){var i=this;return void 0===e&&(e=!0),this.data.map((function(t){return i._factory(t,e)}),t,!1)},e.prototype._setRoot=function(t){},e.prototype._getParents=function(t,e){var i=[],n=!1,o=this.data.getItem(t),r=o&&o.disabled;return this.data.eachParent(t,(function(t){t.id===e?(i.push(t.id),n=!0):n||i.push(t.id)}),!r),this._isContextMenu&&this._activePosition&&i.push(e),i},e.prototype._listenOuterClick=function(){this._documentHaveListener||(document.addEventListener("click",this._documentClick,!0),this._documentHaveListener=!0)},e.prototype._customInitEvents=function(){},e.prototype._drawPopups=function(){var t=this,e=this._activeMenu;if(!this._isContextMenu&&!e)return null;var i=this.getRootNode(),n=i&&i.offsetParent&&i.offsetParent.offsetParent,o=(0,c.getZIndex)(n),s=this._currentRoot,l=this._getParents(e,s);return this._activeParents=l,l.forEach((function(e){return t.data.exists(e)&&t.data.update(e,{$activeParent:!0},!1)})),l.map((function(e){if(!t.data.haveItems(e))return null;var i=t.data.getItem(e)||t._rootItem;return t._popupActive=!0,(0,a.el)("ul",r({class:"dhx_widget dhx_menu"+(t.config.menuCss?" "+t.config.menuCss:""),_key:e,_hooks:{didInsert:function(n){var a=n.el.getBoundingClientRect(),l=a.width,c=a.height,d=t._isContextMenu&&t._activePosition&&e===s?t._activePosition:i.$position,h=t._getMode(i,s,d===t._activePosition),f=(0,u.calculatePosition)(d,{mode:h,auto:!0,width:l,height:c});i.$style=r(r({},f),{zIndex:t._activePosition&&t._activePosition.zIndex||o}),n.patch({style:i.$style})},didRecycle:function(n,a){if(t._isContextMenu&&t._activePosition&&e===s){var l=a.el.getBoundingClientRect(),c=l.width,d=l.height,h=(0,u.calculatePosition)(t._activePosition,{mode:t._getMode(i,s,!0),width:c,height:d});i.$style=r(r({},h),{zIndex:t._activePosition.zIndex||o}),a.patch({style:i.$style})}}},tabindex:0,style:i.$style||{position:"absolute"}},function(t){return{role:"menu","aria-labeledby":t.id,"aria-live":"polite"}}(i)),t._drawMenuItems(e))})).reverse()},e.prototype._onMenuItemClick=function(t,e){var i=this.data.getItem(t);i.disabled||(i.twoState&&this.data.update(i.id,{active:!i.active}),this.events.fire(p.NavigationBarEvents.click,[t,e]),this._close(e))},e.prototype._activeItemChange=function(t,e){var i=this;if(this._activeParents){var n=this._getParents(t,this._currentRoot);this._activeParents.forEach((function(t){i.data.exists(t)&&!n.includes(t)&&i.data.update(t,{$activeParent:!1},!1)}))}(0,s.isId)(t)&&!this._documentHaveListener&&this._listenOuterClick(),(0,s.isId)(t)&&this.data.haveItems(t)?(this._activeMenu===t&&this._popupActive||this.events.fire(p.NavigationBarEvents.openMenu,[t]),clearTimeout(this._currentTimeout),this.paint()):(clearTimeout(this._currentTimeout),this._currentTimeout=setTimeout((function(){return i.paint()}),400)),this._activeMenu=t},e.prototype._resetHotkeys=function(){var t=this;this._keyManager.removeHotKey(null,this),this.data.map((function(e){e.hotkey&&t._keyManager.addHotKey(e.hotkey,(function(){return t._onMenuItemClick(e.id,null)}))}))},e.prototype._setProp=function(t,e,i){var n,o=this;Array.isArray(t)?t.forEach((function(t){var n;return o.data.update(t,((n={})[e]=i,n))})):this.data.update(t,((n={})[e]=i,n))},e}(h.View);e.Navbar=v},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFactory=void 0;var n=i(139),o=i(140),r=i(141),s=i(142),a=i(143),l=i(144),c=i(145),u=i(146),d=i(147),h=i(148),f=i(29);e.createFactory=function(t){for(var e=t.defaultType,i=t.allowedTypes,p=t.widgetName,v=t.widget,g=new Set,_=0,m=i;_<m.length;_++){var y=m[_];g.add(y)}var b=v.config,w=v.events,x=v.data;return function(t,i){if(t.hidden)return null;if(!(t.type&&"button"!==t.type&&"navItem"!==t.type&&"menuItem"!==t.type||t.value||t.icon||t.html))return null;t.type=t.type||e,g&&!g.has(t.type)&&(t.type=e),"imageButton"===t.type&&"ribbon"!==p&&(t.active=!1),i&&"spacer"!==t.type&&"separator"!==t.type&&"customHTML"!==t.type&&(t.type="menuItem"),x.haveItems(t.id)&&function(t,e,i){switch(t){case"sidebar":case"context-menu":e.$openIcon="right";break;case"toolbar":e.parent===i.getRoot()?e.$openIcon="right":e.$openIcon="bottom";break;case"menu":e.parent!==this.data.getRoot()&&(e.$openIcon="right");break;case"ribbon":var n=i.getItem(e.parent);n&&"block"!==e.type&&("block"===n.type?e.$openIcon="bottom":e.$openIcon="right")}}(p,t,x),"toolbar"===p&&t.items&&t.items.forEach((function(t){t.type||(t.type="menuItem")}));var v="customHTML"!==t.type&&function(t,e,i,f){switch(t.type){case"navItem":case"selectButton":return(0,o.navItem)(t,i,f.collapsed);case"button":return(0,n.button)(t,i);case"title":return(0,d.title)(t,i);case"separator":return(0,c.separator)(t,i);case"spacer":return(0,u.spacer)(t,i);case"input":return(0,a.input)(t,e,i);case"imageButton":return(0,s.imageButton)(t,i);case"menuItem":return(0,l.menuItem)(t,i,f.asMenuItem);case"customHTMLButton":return(0,r.customHTMLButton)(t,i,f.asMenuItem);case"datePicker":return(0,h.datePicker)(t,e,i);default:throw new Error("unknown item type "+t.type)}}(t,w,p,{asMenuItem:i,collapsed:"sidebar"!==p||b.collapsed});return(0,f.navbarComponentMixin)(p,t,i,v)}}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.button=void 0;var o=i(0),r=i(29);e.button=function(t,e){var i=t.icon&&!t.value,s=i?" dhx_navbar-count--absolute":" dhx_navbar-count--button-inline";return(0,o.el)("button.dhx_button",n({class:(0,r.getNavbarButtonCSS)(t,e),"data-dhx-id":t.id,disabled:t.disabled,type:"button"},function(t){var e=t.active||t.$activeParent,i={"aria-disabled":t.disabled?"true":"false","aria-label":t.value||t.tooltip||t.id||""+" ".concat(t.count||"")};return t.items&&(i.id=t.id,i["aria-haspopup"]="menu",e&&(i["aria-expanded"]="true")),i}(t)),[t.icon?(0,r.getIcon)(t.icon,"button"):null,t.html?(0,o.el)("div.dhx_button__text",{".innerHTML":t.html}):t.value&&(0,o.el)("span.dhx_button__text",t.value),t.count>0&&(0,r.getCount)(t,s,i),t.value&&t.$openIcon?(0,o.el)("span.dhx_button__icon.dhx_button__icon--menu.dxi.dxi-menu-right",{"aria-hidden":"true"}):null,t.loading&&(0,o.el)("span.dhx_button__loading",{"aria-hidden":"true"},[(0,o.el)("span.dhx_button__loading-icon.dxi.dxi-loading")])])}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.navItem=void 0;var o=i(0),r=i(29);e.navItem=function(t,e,i){var s=" dhx_"+e+"-button";return(0,o.el)("button",n({class:"dhx_button"+s+(t.active||t.$activeParent?s+"--active":"")+(t.disabled?s+"--disabled":"")+(t.$openIcon?s+"--select":"")+(t.circle?s+"--circle":"")+(t.size?" "+s+"--"+t.size:"")+(!t.value&&t.icon?s+"--icon":"")+(t.css?" "+t.css:""),"data-dhx-id":t.id,disabled:t.disabled,type:"button"},function(t){var e={"aria-disabled":t.disabled?"true":"false","aria-label":t.value||" "},i=t.active||t.$activeParent;return"selectButton"===t.type||t.items?(e.id=t.id,e["aria-haspopup"]="menu",i&&(e["aria-expanded"]="true")):((t.twoState||i)&&(e["aria-pressed"]=i?"true":"false"),!t.value&&t.icon&&t.tooltip&&(e["aria-label"]="".concat(t.tooltip," ").concat(t.count||""))),e}(t)),[t.icon&&(0,o.el)("span",{class:t.icon+s+"__icon","aria-hidden":"true"}),t.html&&(0,o.el)("div",{class:s.trim()+"__html",".innerHTML":t.html}),!t.html&&t.value&&(0,o.el)("span",{class:s.trim()+"__text"},t.value),t.count>0&&(0,r.getCount)(t,s+"__count",i),t.$openIcon&&(0,o.el)("span.dxi.dxi-menu-right",{class:s+"__caret","aria-hidden":"true"})])}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.customHTMLButton=void 0;var o=i(0);e.customHTMLButton=function(t,e,i){var r=i?" dhx_button dhx_menu-button":" dhx_button dhx_nav-menu-button";return(0,o.el)("button",n({class:"dhx_custom-button"+r+(t.$activeParent?r+"--active":""),"data-dhx-id":t.id,type:"button",".innerHTML":t.html},function(t){var e={"aria-disabled":t.disabled?"true":"false"};return(t.twoState||t.active||t.$activeParent)&&(e["aria-pressed"]=t.active||t.$activeParent?"true":"false"),e}(t)),t.html?"":t.value)}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.imageButton=void 0;var o=i(0),r=i(29);e.imageButton=function(t,e){var i="dhx_"+e+"-button-image",s="ribbon"===e;return(0,o.el)("button.dhx_button",n({class:i+(t.size?" "+i+"--"+t.size:"")+(!t.value&&t.src?" "+i+"--icon":"")+(s&&t.$openIcon?" "+i+"--select":"")+(t.active?" "+i+"--active":""),"data-dhx-id":t.id,type:"button"},function(t){var e={"aria-disabled":t.disabled?"true":"false"};return(t.twoState||t.active)&&(e["aria-pressed"]=t.active?"true":"false"),!t.value&&t.src&&t.tooltip&&(e["aria-label"]="".concat(t.tooltip," ").concat(t.count||"")),e}(t)),[s&&t.value&&t.$openIcon&&(0,o.el)("span.dxi.dxi-menu-right",{class:i+"__caret","aria-hidden":"true"}),t.html?(0,o.el)("div",{class:i+"__text",".innerHTML":t.html}):t.value&&(0,o.el)("span",{class:i+"__text"},t.value),t.src&&(0,o.el)("span",{class:i+"__image",style:{backgroundImage:"url(".concat(t.src,")")},role:"presentation"}),t.count>0&&(0,r.getCount)(t,i+"__count",!0)])}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.input=void 0;var n=i(0),o=i(35);function r(t,e){t.fire(o.NavigationBarEvents.inputBlur,[e])}function s(t,e){t.fire(o.NavigationBarEvents.inputFocus,[e])}function a(t,e,i){t.fire(o.NavigationBarEvents.inputChange,[e,i.target.value])}e.input=function(t,e,i){return(0,n.el)(".dhx_form-group.dhx_form-group--no-message-holder"+(t.hiddenLabel?".dhx_form-group--label_sr":".dhx_form-group--inline")+".dhx_".concat(i,"__input"),{style:{width:t.width?t.width:"200px"},role:"presentation"},[t.label&&(0,n.el)("label.dhx_label",{for:t.id,style:{maxWidth:t.hiddenLabel?null:"100%"}},t.label),(0,n.el)(".dhx_input__wrapper",{role:"presentation"},[(0,n.el)("input.dhx_input",{id:t.id,placeholder:t.placeholder,class:t.icon?"dhx_input--icon-padding":"",autocomplete:t.autocomplete?"on":"off",value:t.value,disabled:t.disabled,onblur:[r,e,t.id],onfocus:[s,e,t.id],onchange:[a,e,t.id],"data-dhx-id":t.id,_hooks:{didInsert:function(i){e&&e.fire(o.NavigationBarEvents.inputCreated,[t.id,i.el])}},_key:t.id,"aria-label":t.label||t.helpMessage||"type ".concat(t.placeholder?"text like "+t.placeholder:"text")}),t.icon?(0,n.el)(".dhx_input__icon",{class:t.icon,"aria-hidden":"true"}):null])])}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.menuItem=void 0;var o=i(0),r=i(29),s=i(1);e.menuItem=function(t,e,i){var a=i?" dhx_menu-button":" dhx_nav-menu-button",l=(0,s.isDefined)(t.count);return(0,o.el)("button",n({class:"dhx_button"+a+(t.disabled?a+"--disabled":"")+(t.active||t.$activeParent?a+"--active":""),disabled:t.disabled,"data-dhx-id":t.id,type:"button"},function(t){var e={role:"menuitem","aria-disabled":t.disabled?"true":"false"};return t.items&&(e["aria-haspopup"]="true"),e}(t)),i?[t.icon||t.value||t.html?(0,o.el)("span.dhx_menu-button__block.dhx_menu-button__block--left",[t.icon&&(0,o.el)("span.dhx_menu-button__icon",{class:t.icon}),t.html?(0,o.el)("div.dhx_menu-button__text",{".innerHTML":t.html}):t.value&&(0,o.el)("span.dhx_menu-button__text",t.value)]):null,l||t.hotkey||t.items?(0,o.el)("span.dhx_menu-button__block.dhx_menu-button__block--right",[l&&(0,r.getCount)(t," dhx_menu-button__count",!1),t.hotkey&&(0,o.el)("span.dhx_menu-button__hotkey",t.hotkey),t.items&&(0,o.el)("span.dhx_menu-button__caret.dxi.dxi-menu-right")]):null]:[t.icon&&(0,o.el)("span.dhx_menu-button__icon",{class:t.icon}),t.html?(0,o.el)("div.dhx_menu-button__text",{".innerHTML":t.html}):t.value&&(0,o.el)("span.dhx_nav-menu-button__text",t.value),l&&(0,r.getCount)(t," dhx_menu-button__count",!1)])}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.separator=void 0,e.separator=function(t,e){return null}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.spacer=void 0,e.spacer=function(t,e){return null}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.title=void 0;var n=i(0);e.title=function(t,e){return(0,n.el)("span",{class:"dhx_navbar-title dhx_navbar-title--"+e,"data-dhx-id":t.id,".innerHTML":t.html,"aria-label":t.value||""},t.html?null:t.value)}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.datePicker=void 0;var o=i(0),r=i(36),s=i(13),a=i(35),l=i(15),c=i(3);function u(t,e,i){var n=i.target;n&&(n.value=e.$calendar.getValue()),t.fire(a.NavigationBarEvents.inputBlur,[null==e?void 0:e.id])}function d(t,e,i){(0,o.awaitRedraw)().then((function(){return e.$popup.show(i.target,{theme:i.target})})),t.fire(a.NavigationBarEvents.inputFocus,[null==e?void 0:e.id])}function h(t,e,i){var n=i.target.value,o=t.$calendar.config.dateFormat;return n.length?(0,l.stringToDate)(n,o,!0)&&t.$calendar.setValue((0,l.stringToDate)(n,o)):t.$calendar.clear(),e.fire(a.NavigationBarEvents.input,[(0,c.locate)(i),n]),!1}e.datePicker=function(t,e,i){t.$popup||(t.$popup=new s.Popup),t.$calendar||(t.$calendar=new r.Calendar(null,n(n({},t),{css:"dhx_widget--bordered"})),t.$popup.attach(t.$calendar),t.$calendar.events.on("change",(function(i,n,o){var r;o&&t.$popup.isVisible()&&t.$popup.hide();var s="date"===(null===(r=t.valueFormat)||void 0===r?void 0:r.toLowerCase());e.fire(a.NavigationBarEvents.inputChange,[t.id,t.$calendar.getValue(s)])})));var l=t.$calendar.getValue();return t.mode&&"calendar"!==t.mode&&t.$calendar.showDate(void 0,t.mode),(0,o.el)(".dhx_form-group.dhx_form-group--no-message-holder"+(t.hiddenLabel?".dhx_form-group--label_sr":".dhx_form-group--inline")+".dhx_".concat(i,"__input"),{style:{width:t.width?t.width:"200px"},role:"presentation"},[t.label&&(0,o.el)("label.dhx_label",{for:t.id,style:{maxWidth:t.hiddenLabel?null:"100%"}},t.label),(0,o.el)(".dhx_input__wrapper",{role:"presentation"},[(0,o.el)("input.dhx_input",{id:t.id,placeholder:t.placeholder,class:t.icon?"dhx_input--icon-padding":"",value:l,disabled:t.disabled,onblur:[u,e,t],onfocus:[d,e,t],oninput:[h,t,e],"data-dhx-id":t.id,readOnly:!0!==t.editable,_hooks:{didInsert:function(i){e&&e.fire(a.NavigationBarEvents.inputCreated,[t.id,i.el])}},_key:t.id,"aria-label":t.label||t.helpMessage||"type ".concat(t.placeholder?"text like "+t.placeholder:"text")}),t.icon?(0,o.el)(".dhx_input__icon",{class:t.icon,"aria-hidden":"true"}):null])])}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Calendar=void 0;var a=i(1),l=i(0),c=i(2),u=i(9),d=i(46),h=i(154),f=i(15),p=i(72),v=i(3),g=function(t){function e(e,i){void 0===i&&(i={});var n=t.call(this,e,(0,a.extend)({weekStart:"sunday",thisMonthOnly:!1,dateFormat:window&&window.dhx&&window.dhx.dateFormat,width:"250px"},i))||this;switch(n._selected=[],n.events=new c.EventSystem,n.config.disabledDates=n.config.disabledDates||n.config.block,n.config.mode=n.config.mode||n.config.view,n.config.dateFormat||(n.config.timePicker?12===n.config.timeFormat?n.config.dateFormat="%d/%m/%y %h:%i %A":n.config.dateFormat="%d/%m/%y %H:%i":n.config.dateFormat="%d/%m/%y"),n.config.value&&n._setSelected(n.config.value),n.config.date?n._currentDate=f.DateHelper.toDateObject(n.config.date,n.config.dateFormat):n._getSelected()?n._currentDate=f.DateHelper.copy(n._getSelected()):n._currentDate=new Date,n.config.mode){case"month":n._currentViewMode="month";break;case"year":n._currentViewMode="year";break;case"timepicker":n._currentViewMode=n.config.timePicker?"timepicker":"calendar";break;default:n._currentViewMode="calendar"}if(n._initHandlers(),n.config.timePicker){n._timepicker=new d.Timepicker(null,{timeFormat:n.config.timeFormat,controls:!0});var o=n._getSelected()||new Date;n._timepicker.setValue(o),n._time=n._timepicker.getValue(),n._timepicker.events.on(d.TimepickerEvents.afterClose,(function(){n._timepicker.setValue(n._time),n.showDate(null,"calendar")})),n._timepicker.events.on(d.TimepickerEvents.afterApply,(function(){var t=n._timepicker.getValue(!0),e=t.hour,i=t.minute,o=t.AM,r=n._getSelected(),s=f.DateHelper.withHoursAndMinutes(n._getSelected()||new Date,e,i,o);n.events.fire(p.CalendarEvents.beforeChange,[s,r,!0])&&(n._selected[n._selected.length-1]=s,n.events.fire(p.CalendarEvents.change,[s,r,!0])),n._time=n._timepicker.getValue(),n.showDate(null,"calendar")}))}return n.mount(e,(0,l.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype.setValue=function(t){if(!t||t instanceof Array&&0===t.length)return!1;var e=t instanceof Array?t[0]:t,i=f.DateHelper.toDateObject(e,this.config.dateFormat),n=f.DateHelper.copy(this._getSelected());return!!this.events.fire(p.CalendarEvents.beforeChange,[i,n,!1])&&(this._selected=[],this._setSelected(t),this._timepicker&&(this._timepicker.setValue(i),this._time=this._timepicker.getValue()),this.showDate(this._getSelected()),this.events.fire(p.CalendarEvents.change,[i,n,!1]),this.paint(),!0)},e.prototype.getValue=function(t){var e=this;return void 0===t&&(t=!1),this._selected[0]?this.config.range?t?this._selected.map((function(t){return f.DateHelper.copy(t)})):this._selected.map((function(t){return(0,f.getFormattedDate)(e.config.dateFormat,t)})):t?f.DateHelper.copy(this._selected[0]):(0,f.getFormattedDate)(this.config.dateFormat,this._selected[0]):""},e.prototype.getCurrentMode=function(){return this._currentViewMode},e.prototype.showDate=function(t,e){t&&(this._currentDate=f.DateHelper.copy(t)),e&&(this._currentViewMode=e),this.paint()},e.prototype.destructor=function(){this._linkedCalendar&&this._unlink(),this._timepicker&&this._timepicker.destructor(),this.events&&this.events.clear(),this.config=this.events=null,this._uid=this._selected=this._currentDate=this._currentViewMode=this._handlers=this._timepicker=this._time=null,this.unmount()},e.prototype.clear=function(){var t=this.getValue(!0);this.events.fire(p.CalendarEvents.beforeChange,["",t,!1])&&(this.config.timePicker&&(this._timepicker.clear(),this._time=this._timepicker.getValue()),this._selected=[],this.showDate(null,this.config.mode),this.events.fire(p.CalendarEvents.change,[this.getValue(!0),t,!1,"clear"]))},e.prototype.link=function(t){var e=this;this._linkedCalendar&&this._unlink(),this._linkedCalendar=t;var i=this.getValue(!0),n=t.getValue(!0),o=i&&f.DateHelper.dayStart(i),r=n&&f.DateHelper.dayStart(n);this.config.$rangeMark&&this._linkedCalendar.config.$rangeMark||(this.config.$rangeMark=this._linkedCalendar.config.$rangeMark=function(t){if(o&&r)return t>=o&&t<=r&&function(t){if(f.DateHelper.isSameDay(r,o))return null;var e="dhx_calendar-day--in-range";return f.DateHelper.isSameDay(t,o)&&(e+=" dhx_calendar-day--first-date"),f.DateHelper.isSameDay(t,r)&&(e+=" dhx_calendar-day--last-date"),e}(t)}),this.config.disabledDates&&this._linkedCalendar.config.disabledDates||(this.config.disabledDates=function(t){if(r)return t>r},this._linkedCalendar.config.disabledDates=function(t){if(o)return t<o}),this.config.thisMonthOnly=!0,t.config.thisMonthOnly=!0,this.events.on(p.CalendarEvents.change,(function(t){o=t?f.DateHelper.dayStart(t):null,e._linkedCalendar.paint()}),"link"),this._linkedCalendar.events.on(p.CalendarEvents.change,(function(t){r=t?f.DateHelper.dayStart(t):null,e.paint()}),"link"),this._linkedCalendar.paint(),this.paint()},e.prototype._unlink=function(){this._linkedCalendar&&(this.config.$rangeMark=this._linkedCalendar.config.$rangeMark=null,this.config.disabledDates=this._linkedCalendar.config.disabledDates=null,this.events.detach(p.CalendarEvents.change,"link"),this._linkedCalendar.events.detach(p.CalendarEvents.change,"link"),this._linkedCalendar.paint(),this._linkedCalendar=null)},e.prototype._setSelected=function(t){var e=this,i=t instanceof Array?t[0]:t,n=f.DateHelper.toDateObject(i,this.config.dateFormat);if(t instanceof Array&&this.config.range){var o=[];t.forEach((function(t,i){i<2&&o.push(f.DateHelper.toDateObject(t,e.config.dateFormat))})),2===o.length&&o[0]<o[1]?o.forEach((function(t){return e._selected.push(t)})):this._selected[0]=o[0]}else this._selected[0]=n},e.prototype._getSelected=function(){return this._selected[this._selected.length-1]},e.prototype._draw=function(){switch(this._currentViewMode){case"calendar":return this.events.fire(p.CalendarEvents.modeChange,["calendar"]),this._drawCalendar();case"month":return this.events.fire(p.CalendarEvents.modeChange,["month"]),this._drawMonthSelector();case"year":return this.events.fire(p.CalendarEvents.modeChange,["year"]),this._drawYearSelector();case"timepicker":return this.events.fire(p.CalendarEvents.modeChange,["timepicker"]),this._drawTimepicker()}},e.prototype._initHandlers=function(){var t=this,e={Up:"ArrowUp",Down:"ArrowDown",Right:"ArrowRight",Left:"ArrowLeft",Esc:"Escape",Spacebar:"Space"},i=function(e){void 0===e&&(e=!1);var i=0;switch(t._currentViewMode){case"calendar":i=e?-7:7;break;case"month":case"year":i=e?-4:4}return i};this._handlers={onkeydown:{".dhx_calendar-year, .dhx_calendar-month, .dhx_calendar-day":function(n,o){switch(function(t){var i;if(t.which>=48&&t.which<=57||t.which>=65&&t.which<=90)i=String.fromCharCode(t.which);else{var n=32===t.which?t.code:t.key;i=(0,v.isIE)()&&e[n]||n}return i}(n)){case"Enter":t._selectDate(n,o);break;case"ArrowLeft":t._moveBrowseFocus(n,o,-1);break;case"ArrowRight":t._moveBrowseFocus(n,o,1);break;case"ArrowUp":t._moveBrowseFocus(n,o,i(!0));break;case"ArrowDown":t._moveBrowseFocus(n,o,i())}}},onclick:{".dhx_calendar-year, .dhx_calendar-month, .dhx_calendar-day":function(e,i){t._selectDate(e,i)},".dhx_calendar-action__cancel":function(){t.showDate(t._getSelected(),"calendar"),t.events.fire(p.CalendarEvents.cancelClick,[])},".dhx_calendar-action__show-month":function(){return t.showDate(null,"month")},".dhx_calendar-action__show-year":function(){return t.showDate(null,"year")},".dhx_calendar-action__next":function(){var e;switch(t._currentViewMode){case"calendar":e=f.DateHelper.addMonth(t._currentDate,1);break;case"month":e=f.DateHelper.addYear(t._currentDate,1);break;case"year":e=f.DateHelper.addYear(t._currentDate,12)}t.showDate(e)},".dhx_calendar-action__prev":function(){var e;switch(t._currentViewMode){case"calendar":e=f.DateHelper.addMonth(t._currentDate,-1);break;case"month":e=f.DateHelper.addYear(t._currentDate,-1);break;case"year":e=f.DateHelper.addYear(t._currentDate,-12)}t.showDate(e)},".dhx_calendar-action__show-timepicker":function(){t._currentViewMode="timepicker",t.paint()}},onmouseover:{".dhx_calendar-day":function(e,i){t.events.fire(p.CalendarEvents.dateMouseOver,[new Date(i.attrs._date),e]),t.events.fire(p.CalendarEvents.dateHover,[new Date(i.attrs._date),e])}}}},e.prototype._getData=function(t){var e,i=this;switch(this._isSelectedInCurrentRange=!1,this.config.weekStart){case"saturday":e=-1;break;case"monday":e=1;break;default:e=0}for(var n=[],o=6,r=f.DateHelper.weekStart(f.DateHelper.monthStart(t),e);o--;){for(var s=f.DateHelper.getWeekNumber(r),a=0,l=7,c=[],u=function(){var e=f.DateHelper.isWeekEnd(r),n=t.getMonth()===r.getMonth(),o=d.config.disabledDates&&d.config.disabledDates(r),s=[];if(d.config.range&&d._selected[0]&&d._selected[1]){var l=function(){if(i._selected[0]&&i._selected[1]){var t=f.DateHelper.dayStart(i._selected[0]),e=f.DateHelper.dayStart(i._selected[1]);return r>=t&&r<=e&&(f.DateHelper.isSameDay(i._selected[0],i._selected[1])?null:"dhx_calendar-day--in-range")}};d.config.$rangeMark=l}if(e&&s.push("dhx_calendar-day--weekend"),n||(d.config.thisMonthOnly?(a++,s.push("dhx_calendar-day--hidden")):s.push("dhx_calendar-day--muffled")),d.config.mark){var u=d.config.mark(r);u&&s.push(u)}d.config.$rangeMark&&((l=d.config.$rangeMark(r))&&s.push(l));o&&(e?s.push("dhx_calendar-day--weekend-disabled"):s.push("dhx_calendar-day--disabled")),d._selected.forEach((function(t,e){if(t&&f.DateHelper.isSameDay(t,r)){i._isSelectedInCurrentRange=!0;var n="dhx_calendar-day--selected";i.config.range&&(n+=" dhx_calendar-day--selected-".concat(0===e?"first ":"last")),s.push(n)}})),c.push({date:r,day:r.getDate(),css:s.join(" ")}),r=f.DateHelper.addDay(r)},d=this;l--;)u();n.push({weekNumber:s,days:c,disabledWeekNumber:7===a})}return n},e.prototype._drawCalendar=function(){var t,e=this,i=this._currentDate,n=this.config,o=n.weekStart,a=n.thisMonthOnly,c=n.css,u=n.timePicker,d=n.width;switch(o){case"saturday":t=s([f.locale.daysShort[6]],f.locale.daysShort.slice(0,-1),!0);break;case"monday":t=s(s([],f.locale.daysShort.slice(1),!0),[f.locale.daysShort[0]],!1);break;default:t=f.locale.daysShort}for(var h,p=t.map((function(t){return(0,l.el)(".dhx_calendar-weekday",t)})),v=this._getData(i),g=!0,_=this._getSelected(),m=function(t){var i={role:"button",tabindex:-1,"aria-pressed":"false"};return t&&(e._isSelectedInCurrentRange?function(t){return t&&_&&t.getTime()===_.getTime()}(t.date)&&(i.tabindex=0,i["aria-pressed"]="true"):g&&(i.tabindex=0),g=!1),i},y=[],b=[],w=0,x=v;w<x.length;w++){var E=x[w],C=E.days.map((function(t){return(0,l.el)("div.dhx_calendar-day",r({class:t.css,_date:t.date},m(t)),t.day)}));!this.config.weekNumbers||E.disabledWeekNumber&&a||b.push((0,l.el)("div",{class:"dhx_calendar-week-number"},E.weekNumber)),y=y.concat(C)}this.config.weekNumbers&&(h=(0,l.el)(".dhx_calendar__week-numbers",b));var S="dhx_calendar dhx_widget"+(c?" "+c:"")+(u?" dhx_calendar--with_timepicker":"")+(this.config.weekNumbers?" dhx_calendar--with_week-numbers":"");return(0,l.el)("div",r({class:S,style:{width:this.config.weekNumbers?parseInt(d.toString())+48+"px":d}},this._handlers),[(0,l.el)(".dhx_calendar__wrapper",[this._drawHeader((0,l.el)("button.dhx_calendar-action__show-month.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"aria-live":"polite",type:"button"},f.locale.months[i.getMonth()]+" "+i.getFullYear())),this.config.weekNumbers&&(0,l.el)(".dhx_calendar__dates-wrapper",[(0,l.el)(".dhx_calendar__weekdays",p),(0,l.el)(".dhx_calendar__days",y),h]),!this.config.weekNumbers&&(0,l.el)(".dhx_calendar__weekdays",p),!this.config.weekNumbers&&(0,l.el)(".dhx_calendar__days",y),u?(0,l.el)(".dhx_timepicker__actions",[(0,l.el)("button.dhx_calendar__timepicker-button.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--width_full.dhx_button--circle.dhx_calendar-action__show-timepicker",{type:"button"},[(0,l.el)("span.dhx_button__icon.dxi.dxi-clock-outline"),(0,l.el)("span.dhx_button__text",this._time)])]):null])])},e.prototype._drawMonthSelector=function(){var t=this._currentDate,e=t.getMonth(),i=this._getSelected()?this._getSelected().getFullYear():null,n=this.config,o=n.css,s=n.timePicker,a=n.weekNumbers,c=n.width,u=n.mode,d="dhx_calendar dhx_widget"+(o?" "+o:"")+(s?" dhx_calendar--with_timepicker":"")+(a?" dhx_calendar--with_week-numbers":""),h=!0,p=i===t.getFullYear(),v=function(t){return p&&e===t};return(0,l.el)("div",r({class:d,style:{width:a?parseInt(c.toString())+48+"px":c}},this._handlers),[(0,l.el)(".dhx_calendar__wrapper",[this._drawHeader((0,l.el)("button.dhx_calendar-action__show-year.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"aria-live":"polite",type:"button"},t.getFullYear())),(0,l.el)(".dhx_calendar__months",f.locale.monthsShort.map((function(t,e){return(0,l.el)("div",r(r({class:"dhx_calendar-month"+(v(e)?" dhx_calendar-month--selected":"")},function(t,e){var i={role:"button",tabindex:-1,"aria-pressed":"false"};return t&&(p?v(e)&&(i.tabindex=0,i["aria-pressed"]="true"):h&&(i.tabindex=0),h=!1),i}(t,e)),{_date:e}),t)}))),"month"!==u?(0,l.el)(".dhx_calendar__actions",[(0,l.el)("button.dhx_button.dhx_button--color_primary.dhx_button--view_link.dhx_button--size_small.dhx_button--width_full.dhx_button--circle.dhx_calendar-action__cancel",{type:"button"},f.locale.cancel)]):null])])},e.prototype._drawYearSelector=function(){var t=this,e=this._currentDate,i=f.DateHelper.getTwelweYears(e),n=this.config,o=n.css,s=n.timePicker,a=n.weekNumbers,c=n.width,u=n.mode,d="dhx_calendar dhx_widget"+(o?" "+o:"")+(s?" dhx_calendar--with_timepicker":"")+(a?" dhx_calendar--with_week-numbers":""),h=!0,p=this._getSelected()&&i.includes(this._getSelected().getFullYear()),v=function(e){return t._getSelected()&&e===t._getSelected().getFullYear()};return(0,l.el)("div",r({class:d,style:{width:a?parseInt(c.toString())+48+"px":c}},this._handlers),[(0,l.el)(".dhx_calendar__wrapper",[this._drawHeader((0,l.el)("button.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"aria-live":"polite",type:"button"},i[0]+"-"+i[i.length-1])),(0,l.el)(".dhx_calendar__years",i.map((function(t){return(0,l.el)("div",r({class:"dhx_calendar-year"+(v(t)?" dhx_calendar-year--selected":""),_date:t},function(t){var e={role:"button",tabindex:-1,"aria-pressed":"false"};return t&&(p?v(t)&&(e.tabindex=0,e["aria-pressed"]="true"):h&&(e.tabindex=0),h=!1),e}(t)),t)}))),"year"!==u&&"month"!==u?(0,l.el)(".dhx_calendar__actions",[(0,l.el)("button.dhx_button.dhx_button--color_primary.dhx_button--view_link.dhx_button--size_small.dhx_button--width_full.dhx_button--circle.dhx_calendar-action__cancel",{type:"button"},f.locale.cancel)]):null])])},e.prototype._drawHeader=function(t){return(0,l.el)(".dhx_calendar__navigation",[(0,l.el)("button.dhx_calendar-navigation__button.dhx_calendar-action__prev"+h.linkButtonClasses+".dhx_button--icon.dhx_button--circle",{"aria-label":"prev",type:"button"},[(0,l.el)(".dhx_button__icon.dxi.dxi-chevron-left")]),t,(0,l.el)("button.dhx_calendar-navigation__button.dhx_calendar-action__next"+h.linkButtonClasses+".dhx_button--icon.dhx_button--circle",{"aria-label":"next",type:"button"},[(0,l.el)(".dhx_button__icon.dxi.dxi-chevron-right")])])},e.prototype._drawTimepicker=function(){var t=this.config,e=t.css,i=t.weekNumbers,n=t.width;return(0,l.el)(".dhx_widget.dhx-calendar",{class:e?" "+e:"",style:{width:i?parseInt(n.toString())+48+"px":n}},[(0,l.inject)(this._timepicker.getRootView())])},e.prototype._selectDate=function(t,e){var i=e.attrs._date,n=f.DateHelper.copy(this._getSelected());switch(this._currentViewMode){case"calendar":var o=this.config.timePicker?f.DateHelper.mergeHoursAndMinutes(i,this._getSelected()||this._currentDate):i;if(!this.events.fire(p.CalendarEvents.beforeChange,[o,n,!0]))return;this.config.range&&1===this._selected.length&&this._selected[0]<o?this._selected.push(o):(this._selected=[],this._selected[0]=o),e.el.blur(),this.showDate(this._getSelected()),this.events.fire(p.CalendarEvents.change,[i,n,!0]);break;case"month":if("month"!==this.config.mode)f.DateHelper.setMonth(this._currentDate,i),this.showDate(null,"calendar"),this.events.fire(p.CalendarEvents.monthSelected,[i]);else{var r=f.DateHelper.fromYearAndMonth(this._currentDate.getFullYear()||this._getSelected().getFullYear(),i);if(!this.events.fire(p.CalendarEvents.beforeChange,[r,n,!0]))return;this._currentDate=r,this._selected[0]=r,this.events.fire(p.CalendarEvents.change,[this._getSelected(),n,!0]),this.events.fire(p.CalendarEvents.monthSelected,[i]),this.paint()}break;case"year":if("year"!==this.config.mode)f.DateHelper.setYear(this._currentDate,i),this.showDate(null,"month"),this.events.fire(p.CalendarEvents.yearSelected,[i]);else{r=f.DateHelper.fromYear(i);if(!this.events.fire(p.CalendarEvents.beforeChange,[r,n,!0]))return;this._currentDate=r,this._selected[0]=r,this.events.fire(p.CalendarEvents.change,[this._getSelected(),n,!0]),this.events.fire(p.CalendarEvents.yearSelected,[i]),this.paint()}}},e.prototype._moveBrowseFocus=function(t,e,i){if(e){var n=e.parent.body[e.idx+i];if(n){var o=n.el;o&&(t.target.tabIndex=-1,o.tabIndex=0,o.focus({preventScroll:!0}))}}},e}(u.View);e.Calendar=g},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Timepicker=void 0;var s=i(1),a=i(0),l=i(2),c=i(9),u=i(11),d=i(47),h=i(70),f=i(153),p=i(71),v=i(3);function g(t,e){return isNaN(t)?0:Math.min(e,Math.max(0,t))}var _=function(t){function e(e,i){void 0===i&&(i={});var n=t.call(this,e,(0,s.extend)({timeFormat:24,controls:!1,valueFormat:"string",actions:!1},i))||this;return n.events=new l.EventSystem(n),n._time={hour:0,minute:0,AM:!0},12===n.config.timeFormat&&(n._time.hour=12),n.config.controls=n.config.controls||n.config.actions,n.config.value&&n._setValue(n.config.value),n._initUI(e),n._initHandlers(),n._initEvents(),n}return o(e,t),e.prototype.getValue=function(t){return 12===this.config.timeFormat&&(this._time.hour=this._time.hour%12||12),this._getValue(this._time,t)},e.prototype.setValue=function(t){this._setValue(t),this._hoursSlider.setValue(this._time.hour),this._minutesSlider.setValue(this._time.minute),this._inputsView.paint()},e.prototype.clear=function(){24===this.config.timeFormat?this.setValue("00:00"):this.setValue("12:00AM")},e.prototype.destructor=function(){this._minutesSlider&&this._minutesSlider.destructor(),this._hoursSlider&&this._hoursSlider.destructor(),this.events&&this.events.clear(),this.layout&&this.layout.destructor(),this.config=this.events=null,this._handlers=this._time=this._inputsView=this._minutesSlider=this._hoursSlider=null,this.unmount()},e.prototype.getRootView=function(){return this.layout.getRootView()},e.prototype._getValue=function(t,e){var i=t.hour,n=t.minute,o=t.AM;if(e){var r={hour:i,minute:n};return 12===this.config.timeFormat&&(r.AM=o),r}return(i<10?"0"+i:i)+":"+(n<10?"0"+n:n)+(12===this.config.timeFormat?o?"AM":"PM":"")},e.prototype._setValue=function(t){var e,i=0,n=0;if("number"==typeof t&&(t=new Date(t)),t instanceof Date)i=t.getMinutes(),n=t.getHours();else if(Array.isArray(t))n=g(t[0],23),i=g(t[1],59),t[2]&&"pm"===t[2].toLowerCase()&&(e=!0);else if("string"==typeof t){var o=t.match(/\d+/g);n=g(+o[0],23),i=g(+o[1],59),t.toLowerCase().includes("pm")&&(e=!0)}else"object"==typeof t&&t.hasOwnProperty("hour")&&t.hasOwnProperty("minute")&&(n=t.hour,i=t.minute,e=!t.AM);return e&&n<12&&(n+=12),12===this.config.timeFormat&&!(0,f.isTimeCheck)(t)&&n>=12&&(e=!0),this._time={hour:n,minute:i,AM:!e}},e.prototype._initUI=function(t){var e=this,i={gravity:!1,css:"dhx_widget dhx_timepicker "+(this.config.css?this.config.css:"")+(this.config.controls?" dhx_timepicker--with-controls":""),rows:[{id:"timepicker",css:"dhx_timepicker__inputs"},{id:"hour-slider",css:"dhx_timepicker__hour"},{id:"minute-slider",css:"dhx_timepicker__minute"}]};this.config.controls&&(i.rows.unshift({id:"close-action",css:"dhx_timepicker__close"}),i.rows.push({id:"save-action",css:"dhx_timepicker__save"}));var n=this.layout=new u.Layout(t,i),o=(0,a.create)({render:function(){return e._draw()}}),r=this._inputsView=(0,c.toViewLike)(o),s=this._minutesSlider=new d.Slider(null,{min:0,max:59,step:1,tooltip:!1,labelPosition:"top",label:h.default.minutes,value:this.config.value?this._time.minute:0}),l=this._hoursSlider=new d.Slider(null,{min:0,max:23,step:1,tooltip:!1,labelPosition:"top",label:h.default.hours,value:this.config.value?12===this._time.hour&&this._time.AM?0:this._time.hour:0});if(n.getCell("timepicker").attach(r),n.getCell("hour-slider").attach(l),n.getCell("minute-slider").attach(s),this.config.controls){n.getCell("save-action").attach((function(){return(0,a.el)("button.dhx_timepicker__button-save.dhx_button.dhx_button--view_flat.dhx_button--color_primary.dhx_button--size_small.dhx_button--circle.dhx_button--width_full",{onclick:e._outerHandlers.save,type:"button"},h.default.save)})),n.getCell("close-action").attach((function(){return(0,a.el)("button.dhx_timepicker__button-close.dhx_button.dhx_button--view_link.dhx_button--size_medium.dhx_button--view_link.dhx_button--color_secondary.dhx_button--icon.dhx_button--circle",{_ref:"close",onclick:e._outerHandlers.close,type:"button","aria-label":"close timepicker"},[(0,a.el)("span.dhx_button__icon.dxi.dxi-close")])}))}},e.prototype._initHandlers=function(){var t=this,e=function(e){var i=g(parseInt(e.value,10),59);e.value=i.toString(),t._minutesSlider.setValue(i)},i=function(e){var i=g(parseInt(e.value,10),23);e.value=i.toString(),t._hoursSlider.setValue(i)};this._handlers={onchange:{".dhx_timepicker-input--hour":function(t){return i(t.target)},".dhx_timepicker-input--minutes":function(t){return e(t.target)}},oninput:{".dhx_timepicker-input--hour":function(t){((0,v.isSafari)()||(0,v.isFirefox)())&&i(t.target)},".dhx_timepicker-input--minutes":function(t){((0,v.isSafari)()||(0,v.isFirefox)())&&e(t.target)}}},this._outerHandlers={close:function(){t.events.fire(p.TimepickerEvents.beforeClose,[t.getValue(t._isTimeObj())])&&(t.events.fire(p.TimepickerEvents.afterClose,[t.getValue(t._isTimeObj())]),t.events.fire(p.TimepickerEvents.close,[]))},save:function(){t.events.fire(p.TimepickerEvents.beforeApply,[t.getValue(t._isTimeObj())])&&(t.events.fire(p.TimepickerEvents.afterApply,[t.getValue(t._isTimeObj())]),t.events.fire(p.TimepickerEvents.apply,[t.getValue()]),t.events.fire(p.TimepickerEvents.save,[t._time]))}}},e.prototype._initEvents=function(){var t=this;this._hoursSlider.events.on(d.SliderEvents.beforeChange,(function(e){if(!(e<t._hoursSlider.config.min||e>t._hoursSlider.config.max)){var i=r({},t._time);12===t.config.timeFormat?(i.AM=e<12,i.hour=e%12||12):i.hour=e;var n=t._isTimeObj();return t.events.fire(p.TimepickerEvents.beforeChange,[t._getValue(i,n)])}})),this._hoursSlider.events.on(d.SliderEvents.change,(function(e){if(!(e<t._hoursSlider.config.min||e>t._hoursSlider.config.max)){12===t.config.timeFormat?(t._time.AM=e<12,t._time.hour=e%12||12):t._time.hour=e;var i=t._isTimeObj();t.events.fire(p.TimepickerEvents.change,[t.getValue(i)]),t._inputsView.paint()}})),this._minutesSlider.events.on(d.SliderEvents.beforeChange,(function(e){if(!(e<t._minutesSlider.config.min||e>t._minutesSlider.config.max)){var i=r(r({},t._time),{minute:e}),n=t._isTimeObj();return t.events.fire(p.TimepickerEvents.beforeChange,[t._getValue(i,n)])}})),this._minutesSlider.events.on(d.SliderEvents.change,(function(e){if(!(e<t._minutesSlider.config.min||e>t._minutesSlider.config.max)){t._time.minute=e;var i=t._isTimeObj();t.events.fire(p.TimepickerEvents.change,[t.getValue(i)]),t._inputsView.paint()}}))},e.prototype._draw=function(){return this._minutesSlider.config.label=h.default.minutes,this._hoursSlider.config.label=h.default.hours,(0,a.el)(".dhx_timepicker-inputs",r({},this._handlers),[(0,a.el)("input.dhx_timepicker-input.dhx_timepicker-input--hour",{_key:"hour",_ref:"hour",value:this.getValue(!0).hour.toString().length>1?this.getValue(!0).hour:"0"+this.getValue(!0).hour,"aria-label":"hours"}),(0,a.el)("span.dhx_timepicker-delimer",":"),(0,a.el)("input.dhx_timepicker-input.dhx_timepicker-input--minutes",{_key:"minute",value:this.getValue(!0).minute.toString().length>1?this.getValue(!0).minute:"0"+this.getValue(!0).minute,"aria-label":"minutes"}),12===this.config.timeFormat?(0,a.el)(".dhx_timepicker-ampm",this._time.AM?"AM":"PM"):null])},e.prototype._isTimeObj=function(){var t;return"timeobject"===(null===(t=this.config.valueFormat)||void 0===t?void 0:t.toLowerCase())},e}(c.View);e.Timepicker=_},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Slider=void 0;var s=i(1),a=i(0),l=i(2),c=i(14),u=i(9),d=i(13),h=i(69),f=i(3);function p(t,e,i){return t<e?e:t>i?i:t}var v=function(t){function e(e,i){var n=t.call(this,e,(0,s.extend)({mode:"horizontal",min:0,max:100,step:1,tooltip:!0},i))||this;n._disabled=!1,n.config.helpMessage=n.config.helpMessage||n.config.help,void 0!==n.config.thumbLabel&&(n.config.tooltip=n.config.thumbLabel),n.config.labelInline&&(n.config.labelPosition="left"),n.events=new l.EventSystem(n),n._axis="horizontal"===n.config.mode?"clientX":"clientY",n._initStartPosition(),n._keyManager=new c.KeyManager((function(){var t,e;return document.activeElement===(null===(e=null===(t=n.getRootView().refs)||void 0===t?void 0:t[n._isExtraActive?"extraRunner":"runner"])||void 0===e?void 0:e.el)})),n._initHotkeys();var o=(0,a.create)({render:function(){return n._draw()},hooks:{didMount:function(){return n._calcSliderPosition()},didRedraw:function(){return n._calcSliderPosition()}}});return n._initHandlers(),n.mount(e,o),n}return o(e,t),e.prototype.disable=function(){this._disabled=!0,this.paint()},e.prototype.enable=function(){this._disabled=!1,this.paint()},e.prototype.isDisabled=function(){return this._disabled},e.prototype.focus=function(t){this.getRootView().refs[t?"extraRunner":"runner"].el.focus()},e.prototype.blur=function(){this.getRootView().refs[this._isExtraActive?"extraRunner":"runner"].el.blur()},e.prototype.getValue=function(){var t;if(this.config.range){var e=this._getValue(this._currentPosition),i=this._getValue(this._extraCurrentPosition);t=e<i?[e,i]:[i,e]}else t=[this._getValue(this._currentPosition)];return t},e.prototype.setValue=function(t){var e=this._getValue(this._currentPosition);if(Array.isArray(t)&&t.length>1){var i=this._getValue(this._extraCurrentPosition);this.events.fire(h.SliderEvents.beforeChange,[t[0],e,!1])&&(this._setValue(t[0],!1),this.events.fire(h.SliderEvents.change,[t[0],e,!1])),this.events.fire(h.SliderEvents.beforeChange,[t[1],i,!0])&&(this._setValue(t[1],!0),this.events.fire(h.SliderEvents.change,[t[1],i,!0]))}else{if(t=parseFloat(t),isNaN(t))throw new Error("Wrong value type, for more info check documentation https://docs.dhtmlx.com/suite/slider__api__slider_setvalue_method.html");this.events.fire(h.SliderEvents.beforeChange,[t,e,!1])&&(this._setValue(t),this.events.fire(h.SliderEvents.change,[t,e,!1]))}this.paint()},e.prototype.destructor=function(){this._keyManager&&this._keyManager.destructor(),document.body.contains(this._tooltip)&&document.body.removeChild(this._tooltip),this._tooltip=null,this.unmount()},e.prototype._calcSliderPosition=function(){var t=this.getRootView();if(t){var e=t.refs.track.el.getBoundingClientRect();this._offsets={left:e.left+window.pageXOffset,top:e.top+window.pageYOffset},this._length="horizontal"===this.config.mode?e.width:e.height}},e.prototype._initHotkeys=function(){var t=this,e={arrowLeft:function(e){e.preventDefault(),t._move(-t.config.step,e.target.classList.contains("dhx_slider__thumb--extra"))},arrowRight:function(e){e.preventDefault(),t._move(t.config.step,e.target.classList.contains("dhx_slider__thumb--extra"))},arrowUp:function(e){e.preventDefault(),t._move(t.config.step,e.target.classList.contains("dhx_slider__thumb--extra"))},arrowDown:function(e){e.preventDefault(),t._move(-t.config.step,e.target.classList.contains("dhx_slider__thumb--extra"))}};for(var i in e)this._keyManager.addHotKey(i,e[i])},e.prototype._move=function(t,e){void 0===e&&(e=!1),this.config.inverse&&(t=-t);var i=this.config,n=i.max,o=i.min,r=e?this._getValue(this._extraCurrentPosition):this._getValue(this._currentPosition),s=r+t;(s>n||s<o)&&(s=r),this.events.fire(h.SliderEvents.beforeChange,[s,r,e])&&(this._setValue(r+t,e),this.events.fire(h.SliderEvents.change,[s,r,e]),this.paint())},e.prototype._initStartPosition=function(){var t=this.config,e=t.max,i=t.min,n=t.range,o=function(t,e,i){var n;return(n=void 0===t?[]:Array.isArray(t)?t:"string"==typeof t?t.split(",").map((function(t){return parseInt(t,10)})):[t])[0]=void 0===n[0]?e:p(n[0],e,i),n[1]=void 0===n[1]?i:p(n[1],e,i),n}(this.config.value,this.config.min,this.config.max),r=o[0],s=o[1];this._currentPosition=(r-i)/(e-i)*100,n&&(this._extraCurrentPosition=(e-s)/(e-i)*100),this._currentPosition=(r-i)/(e-i)*100,n&&(this._extraCurrentPosition=(s-i)/(e-i)*100),this._isInverse()&&(this._currentPosition=100-this._currentPosition,n&&(this._extraCurrentPosition=100-this._extraCurrentPosition))},e.prototype._getValue=function(t){this._isInverse()&&(t=100-t);var e=this.config,i=e.min,n=e.max,o=e.step;if(100===t)return n;if(0===t)return i;var r=t*(n-i)/100,s=r%o,a=s>=o/2?o:0;return+(Number(i)+Number(r)-s+a).toFixed(5)},e.prototype._setValue=function(t,e){void 0===e&&(e=!1);var i=this.config,n=i.max,o=i.min;if(t>n||t<o)return!1;var r=(t-o)/(n-o)*100,s=this._isInverse()?100-r:r;e?this._extraCurrentPosition=s:this._currentPosition=s},e.prototype._initHandlers=function(){var t=this,e=function(e){e.cancelable&&e.preventDefault();var i=((e.targetTouches?e.targetTouches[0][t._axis]:e[t._axis])-t._getBegining())/t._length*100;if(t._findNewDirection){if(Math.abs(t._currentPosition-i)<1)return;i>t._currentPosition?t._possibleRange=[t._currentPosition,100]:t._possibleRange=[0,t._currentPosition],t._findNewDirection=null}t._inSide(i)&&t._updatePosition(i,t._isExtraActive),t.paint()},i=function(n){t.events.fire(h.SliderEvents.mouseup,[n]),setTimeout((function(){t._isMouseMoving=!1,t.paint()}),4),n.targetTouches?(document.removeEventListener("touchend",i),document.removeEventListener("touchmove",e)):(document.removeEventListener("mouseup",i),document.removeEventListener("mousemove",e))},n=function(e){var i;if(!t._disabled&&3!==e.which)if(t.events.fire(h.SliderEvents.mousedown,[e]),t._isMouseMoving=!0,e.target.classList.contains("dhx_slider__thumb--extra")?(t._isExtraActive=!0,i=t._extraCurrentPosition):(t._isExtraActive=!1,i=t._currentPosition),t._findNewDirection=null,t.config.range){var n=t._currentPosition>t._extraCurrentPosition?[t._currentPosition,t._extraCurrentPosition]:[t._extraCurrentPosition,t._currentPosition],o=n[0],r=n[1];t._currentPosition===t._extraCurrentPosition?(t._findNewDirection=i,t._possibleRange=[0,100]):t._possibleRange=i<o?[0,o]:[r,100]}else t._possibleRange=[0,100]};this.config.helpMessage&&(this._helper=new d.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"}),this._helper.attachHTML(this.config.helpMessage)),this._handlers={showHelper:function(e){e.preventDefault(),e.stopPropagation(),t._helper.show(e.target,{theme:e.target})},onmousedown:function(t){n(t),document.addEventListener("mousemove",e),document.addEventListener("mouseup",i)},ontouchstart:function(o){t._setTooltip(o),t._mouseIn=!1,n(o),document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",i),t.paint()},ontouchend:function(e){t._setTooltip(e),t._mouseIn=!1,t.paint()},onlabelClick:function(){t.getRootView().refs.runner.el.focus()},onclick:function(e){if(!t._disabled&&!t._isMouseMoving&&3!==e.which){var i=(e[t._axis]-t._getBegining())/t._length*100,n=t.getRootView().refs;if(t.config.range)Math.abs(t._currentPosition-i)<Math.abs(t._extraCurrentPosition-i)?(t._updatePosition(i,!1),n.runner.el.focus()):(t._updatePosition(i,!0),n.extraRunner.el.focus());else t._updatePosition(i,!1),n.runner.el.focus();t.paint()}},onmouseover:function(e){t._setTooltip(e),t._mouseIn=!0,t.paint()},onmouseout:function(e){t._setTooltip(e),t._mouseIn=!1,t.paint()},onfocus:function(e){t._setTooltip(e),t._focusIn=!0,t.events.fire(h.SliderEvents.focus,[]),t.paint()},onblur:function(e){t._setTooltip(e),t._focusIn=!1,t.events.fire(h.SliderEvents.blur,[]),t.paint()},onkeydown:function(e){t.events.fire(h.SliderEvents.keydown,[e])}}},e.prototype._getBegining=function(){return"horizontal"===this.config.mode?this._offsets.left-window.pageXOffset:this._offsets.top-window.pageYOffset},e.prototype._inSide=function(t){var e=this._possibleRange;return t<e[0]?(this._updatePosition(e[0],this._isExtraActive),!1):!(t>e[1])||(this._updatePosition(e[1],this._isExtraActive),!1)},e.prototype._updatePosition=function(t,e){void 0===e&&(e=!1),t>100&&(t=100),t<0&&(t=0);var i=this.config,n=i.max,o=i.min,r=e?this._extraCurrentPosition:this._currentPosition,s=this._getValue(r),a=this._getValue(t);if(s!==a&&this.events.fire(h.SliderEvents.beforeChange,[a,s,e])){var l=(a-o)/(n-o)*100,c=this._isInverse()?100-l:l;e?this._extraCurrentPosition=c:this._currentPosition=c,this.events.fire(h.SliderEvents.change,[a,s,e])}},e.prototype._getRunnerStyle=function(t){var e;void 0===t&&(t=!1);var i="horizontal"===this.config.mode?"left":"top",n=t?this._extraCurrentPosition:this._currentPosition;return(e={})[i]=n+"%",e},e.prototype._isInverse=function(){return this.config.inverse&&"horizontal"===this.config.mode||!this.config.inverse&&"vertical"===this.config.mode},e.prototype._getRunnerCss=function(t){return void 0===t&&(t=!1),"dhx_slider__thumb"+(t?" dhx_slider__thumb--extra":"")+(this._isMouseMoving&&(t&&this._isExtraActive||!t&&!this._isExtraActive)?" dhx_slider__thumb--active":"")+(this._disabled?" dhx_slider__thumb--disabled":"")+(this._isNullable(t?this._extraCurrentPosition:this._currentPosition)&&!this.config.range?" dhx_slider__thumb--nullable":"")},e.prototype._draw=function(){var t=this.config,e=t.labelPosition,i=t.mode,n=t.hiddenLabel,o=t.tick,s=t.majorTick,l=t.css,c=t.helpMessage,u=(0,f.getLabelStyle)(r(r({},this.config),{required:!1}));return!this._tooltip||this._mouseIn&&this._focusIn&&this._isMouseMoving||document.body.contains(this._tooltip)&&document.body.removeChild(this._tooltip),(0,a.el)("div",{class:"dhx_slider dhx_slider--mode_"+i+("left"===e?" dhx_slider--label-inline":"")+(n?" dhx_slider--label_sr":"")+(o?" dhx_slider--ticks":"")+(s?" dhx_slider--major-ticks":"")+(l?" "+l:"")+(this._disabled?" dhx_slider--disabled":""),style:{paddingBottom:this.config.tick?"16px":null}},[u?(0,a.el)("label.dhx_label.dhx_slider__label",{style:u.style,class:c?"dhx_label--with-help":"",onclick:this._handlers.onlabelClick},c?[u.label&&(0,a.el)("span.dhx_label__holder",u.label),(0,a.el)("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper})]:u.label):null,this._drawSlider()])},e.prototype._drawSlider=function(){return(0,a.el)(".dhx_widget.dhx_slider__track-holder",{"data-dhx-widget-id":this._uid},[(0,a.el)(".dhx_slider__track",{_ref:"track",onmouseover:this._handlers.onmouseover,onmouseout:this._handlers.onmouseout,onclick:this._handlers.onclick},[this._getDetector(),(0,a.el)("div",{_ref:"runner",class:this._getRunnerCss(),ontouchstart:this._handlers.ontouchstart,ontouchend:this._handlers.ontouchend,onmousedown:this._handlers.onmousedown,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,style:this._getRunnerStyle(),tabindex:0}),this.config.tooltip&&(this._mouseIn||this._focusIn||this._isMouseMoving)?this._drawTooltip():null,this.config.tooltip&&this.config.range&&(this._mouseIn||this._focusIn||this._isMouseMoving)?this._drawTooltip(!0):null,this.config.range?(0,a.el)("div",{_ref:"extraRunner",class:this._getRunnerCss(!0),ontouchstart:this._handlers.ontouchstart,ontouchend:this._handlers.ontouchend,onmousedown:this._handlers.onmousedown,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,style:this._getRunnerStyle(!0),tabindex:0}):null]),this.config.tick?this._drawTicks():null])},e.prototype._getDetector=function(){var t,e,i;if(this._disabled)return(0,a.el)(".dhx_slider__range");var n="horizontal"===this.config.mode?"left":"top",o="horizontal"===this.config.mode?"width":"height";if(this.config.range){var r=this._currentPosition>this._extraCurrentPosition?[this._currentPosition,this._extraCurrentPosition]:[this._extraCurrentPosition,this._currentPosition],s=r[0],l=r[1];return(0,a.el)(".dhx_slider__range",{style:(t={},t[n]=l+"%",t[o]=s-l+"%",t)})}return this._isInverse()?(0,a.el)(".dhx_slider__range",{style:(e={},e[n]=this._currentPosition+"%",e[o]=100-this._currentPosition+"%",e)}):(0,a.el)(".dhx_slider__range",{style:(i={},i[n]=0,i[o]=this._currentPosition+"%",i)})},e.prototype._drawTooltip=function(t){if(void 0===t&&(t=!1),"none"!==this._activeTooltip&&this.getRootView()){var e="extraTooltip"===this._activeTooltip?this._extraCurrentPosition:this._currentPosition,i="horizontal"===this.config.mode?"left":"top",n="";(t&&this._isExtraActive||!t&&!this._isExtraActive)&&(n+=" dhx_slider__thumb-label--active"),this._tooltip||(this._tooltip=document.createElement("div"));var o="tooltip"===this._activeTooltip?this.getRootView().refs.runner.el.getBoundingClientRect():this.getRootView().refs.extraRunner.el.getBoundingClientRect();this._tooltip.className="dhx_slider__thumb-label"+n,this._tooltip.style.left=o.x+("left"===i?6:-30)+window.pageXOffset+"px",this._tooltip.style.top=o.y+("left"===i?-30:6)+window.pageYOffset+"px",this._tooltip.innerText=this._getValue(e).toString(),document.body.appendChild(this._tooltip)}},e.prototype._getTicks=function(){for(var t=this.config,e=t.max,i=t.min,n=t.step,o=t.tick,r=t.majorTick,s=e-i,a=n*o/s,l=[],c=0,u=0;c<1;){var d=+(Number(i)+c*s).toFixed(5),h=u%r==0;l.push({position:(this._isInverse()?100*(1-c):100*c)+"%",isMultiple:h,label:h&&"function"==typeof this.config.tickTemplate?this.config.tickTemplate(d):null}),c+=a,u++}return l.push({position:(this._isInverse()?0:100)+"%",isMultiple:!0,label:"function"==typeof this.config.tickTemplate?this.config.tickTemplate(e):null}),l},e.prototype._drawTicks=function(){var t="horizontal"===this.config.mode?"left":"top";return(0,a.el)(".dhx_slider__ticks-holder",this._getTicks().map((function(e){var i;return(0,a.el)("div",{class:"dhx_slider__tick"+(e.isMultiple?" dhx_slider__tick--major":""),style:(i={},i[t]=e.position,i)},void 0!==e.label?[(0,a.el)(".dhx_slider__tick-label",e.label)]:null)})))},e.prototype._isNullable=function(t){return this._isInverse()?100===t:0===t},e.prototype._setTooltip=function(t){t.target.classList.contains("dhx_slider__thumb--extra")?this._activeTooltip="extraTooltip":t.target.classList.contains("dhx_slider__thumb")?this._activeTooltip="tooltip":this._activeTooltip="none"},e}(u.View);e.Slider=v},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Popup=void 0;var s=i(1),a=i(0),l=i(2),c=i(3),u=i(9),d=i(68),h=function(t){function e(e){void 0===e&&(e={});var i=t.call(this,null,(0,s.extend)({},e))||this,n=i._popup=document.createElement("div");return n.className="dhx_widget dhx_popup"+(i.config.css?" "+i.config.css:""),n.style.position="absolute",n.setAttribute("role","dialog"),n.setAttribute("aria-modal","true"),n.setAttribute("aria-live","polite"),i.config.theme&&i._setTheme(i.config.theme),i.mount(n,(0,a.create)({render:function(){return i.toVDOM()}})),i._clickEvent=function(t){return i.events.fire(d.PopupEvents.click,[t])},i.events=e.events||new l.EventSystem(i),i._isActive=!1,i}return o(e,t),e.prototype.show=function(t,e,i){var n=this;void 0===e&&(e={}),this.events.fire(d.PopupEvents.beforeShow,[t])&&(t=(0,c.toNode)(t),this._isActive?this._setPopupSize(t,e):(i&&this.attach(i),e.theme&&this._setTheme(e.theme),this._popup.style.left="0",this._popup.style.top="0",(0,a.awaitRedraw)().then((function(){n._setPopupSize(t,e),n._popup.style.position="fixed",document.body.appendChild(n._popup),n._isActive=!0})).then((function(){n._popup.style.position="absolute",n.events.fire(d.PopupEvents.afterShow,[t]),n._outerClickDestructor=n._detectOuterClick(t)}))))},e.prototype.hide=function(){this._hide(!1,null)},e.prototype.isVisible=function(){return this._isActive},e.prototype.attach=function(t,e){return this._html=null,"object"==typeof t?this._ui=t:"string"==typeof t?this._ui=new window.dhx[t](null,e):"function"==typeof t&&(t.prototype instanceof u.View?this._ui=new t(null,e):this._ui={getRootView:function(){return t(e)}}),this.paint(),this._ui},e.prototype.attachHTML=function(t){this._html=t,this.paint()},e.prototype.getWidget=function(){return this._ui},e.prototype.getContainer=function(){return this.getRootView().refs.content.el},e.prototype.toVDOM=function(){var t;return this._html?t=(0,a.el)(".dhx_popup__inner-html-content",{".innerHTML":this._html}):(t=this._ui?this._ui.getRootView():null)&&t.render&&(t=(0,a.inject)(t)),(0,a.el)("div",{class:"dhx_popup-content",tabindex:0,onclick:this._clickEvent,_key:this._uid,_ref:"content"},[t])},e.prototype.destructor=function(){this.hide(),this._outerClickDestructor&&this._outerClickDestructor(),this._popup=null},e.prototype._setTheme=function(t){var e;if("string"==typeof t)this._popup.setAttribute("data-dhx-theme",t);else{var i=null===(e=null==t?void 0:t.closest("[data-dhx-theme]"))||void 0===e?void 0:e.getAttribute("data-dhx-theme");i&&this._popup.setAttribute("data-dhx-theme",i)}},e.prototype._setPopupSize=function(t,e,i){var n=this;void 0===i&&(i=3);var o=this._popup.getBoundingClientRect(),s=o.width,a=o.height;if(this._timeout&&(clearTimeout(this._timeout),this._timeout=null),!i||0!==s&&0!==a){var l=(0,c.fitPosition)(t,r(r({centering:!0,mode:"bottom"},e),{width:s,height:a})),u=l.left,d=l.top;if(this._popup.style.left=u,this._popup.style.top=d,e.indent&&0!==e.indent)switch(e.mode){case"top":this._popup.style.top=parseInt(this._popup.style.top.slice(0,-2),null)-parseInt(e.indent.toString(),null)+"px";break;case"bottom":default:this._popup.style.top=parseInt(this._popup.style.top.slice(0,-2),null)+parseInt(e.indent.toString(),null)+"px";break;case"left":this._popup.style.left=parseInt(this._popup.style.left.slice(0,-2),null)-parseInt(e.indent.toString(),null)+"px";break;case"right":this._popup.style.left=parseInt(this._popup.style.left.slice(0,-2),null)+parseInt(e.indent.toString(),null)+"px"}}else this._timeout=setTimeout((function(){n._isActive&&(n._setPopupSize(t,e,i-1),n._timeout=null)}))},e.prototype._detectOuterClick=function(t){var e=this,i=!1,n=new WeakMap,o=function(r){var s=r.target,a=document.querySelectorAll(".dhx_popup");for(i?a.forEach((function(t){return n.has(t)||n.set(t,e._popup)})):(i=Boolean(a.length))&&a.forEach((function(t){return n.set(t,!0)}));s;){if(s===t||s===e._popup||n.get(s)===e._popup)return;s=s.parentNode}e._hide(!0,r)&&document.removeEventListener("mousedown",o)};return document.addEventListener("mousedown",o),function(){return document.removeEventListener("mousedown",o)}},e.prototype._hide=function(t,e){if(this._isActive)return!!this.events.fire(d.PopupEvents.beforeHide,[t,e])&&(document.body.removeChild(this._popup),this._isActive=!1,this._outerClickDestructor&&(this._outerClickDestructor(),this._outerClickDestructor=null),this.events.fire(d.PopupEvents.afterHide,[e]),!0)},e}(u.View);e.Popup=h},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isTimeCheck=void 0,e.isTimeCheck=function(t){return/(^12:[0-5][0-9]?AM$)/i.test(t)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.linkButtonClasses=void 0,e.linkButtonClasses=".dhx_button.dhx_button--view_link.dhx_button--icon.dhx_button--size_medium.dhx_button--color_secondary"},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ProToolbar=void 0;var s=i(67),a=i(19),l=i(0),c=i(3),u=i(12),d=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.scrollView=new a.ScrollView((function(){return n.getRootView()})),n}return o(e,t),e.prototype._draw=function(t){var e=this,i=this.data.getLength()?this.data.reduce((function(t,e){switch(e.type){case"title":return t||20;case"button":return"small"===e.size&&(!t||t<=28)?28:t||32;default:return 32}}),0)+24:null,n=[(0,l.el)("ul.dhx_navbar.dhx_navbar--horizontal",r(r({"data-dhx-widget-id":this._uid,tabindex:0},function(t){return{role:"toolbar","aria-label":t||""}}(t)),{onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,oninput:this._handlers.input,onmouseover:this._handlers.tooltip,onkeydown:this._handlers.onkeydown,onmousemove:this._handlers.onmousemove,onmouseleave:this._handlers.onmouseleave,_hooks:{didInsert:function(t){t.el.addEventListener("keyup",(function(t){if(9===t.which){var i=(0,c.locateNode)(document.activeElement);if(i){var n=i.getAttribute("data-dhx-id"),o=e.data.getItem(n);(null==o?void 0:o.tooltip)&&(0,u.tooltip)(o.tooltip,{node:i,position:u.Position.bottom,force:!0})}}}),!0)}}}),this.data.map((function(t){return e._factory(t)}),this.data.getRoot(),!1))];return(0,l.el)("nav.dhx_widget.dhx_toolbar",{style:{height:i},class:this.config.css?this.config.css:""},this.scrollView&&this.scrollView.config.enable?[].concat(this.scrollView.render(n)):n)},e}(s.Toolbar);e.ProToolbar=d},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.layoutConfigWithoutTopbar=e.layoutConfig=void 0,e.layoutConfig={css:"vault-layout",rows:[{id:"topbar",css:"vault-topbar"},{id:"vault",css:"vault-file-grid"}]},e.layoutConfigWithoutTopbar={css:"vault-layout",rows:[{id:"vault",css:"vault-file-grid"}]}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isImage=e.getFileClassName=e.getFileType=e.FileType=e.calculateCover=e.truncateWord=e.getBasis=void 0;var n=i(48),o=["byte","kilobyte","megabyte","gigabyte"];e.getBasis=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=0),t<1024?t+" "+n.default[o[e]]:this.getBasis(Math.round(t/1024),e+1)};var r;function s(t){return{extension:t.name.split(".").pop()||"none",mime:t.file?t.file.type:""}}function a(t,e){switch(t){case"jpg":case"jpeg":case"gif":case"png":case"bmp":case"tiff":case"pcx":case"svg":case"ico":return r.image;case"avi":case"mpg":case"mpeg":case"rm":case"move":case"mov":case"mkv":case"flv":case"f4v":case"mp4":case"3gp":case"wmv":case"webm":case"vob":return r.video;case"rar":case"zip":case"tar":case"tgz":case"arj":case"gzip":case"bzip2":case"7z":case"ace":case"apk":case"deb":case"zipx":case"cab":case"tar-gz":case"rpm":case"xar":return r.archive;case"xlr":case"xls":case"xlsm":case"xlsx":case"ods":case"csv":case"tsv":return r.table;case"doc":case"docx":case"docm":case"dot":case"dotx":case"odt":case"wpd":case"wps":case"pages":return r.document;case"wav":case"aiff":case"au":case"mp3":case"aac":case"wma":case"ogg":case"flac":case"ape":case"wv":case"m4a":case"mid":case"midi":return r.audio;case"pot":case"potm":case"potx":case"pps":case"ppsm":case"ppsx":case"ppt":case"pptx":case"pptm":case"odp":return r.presentation;case"html":case"htm":case"eml":return r.web;case"exe":return r.application;case"dmg":return r.apple;case"pdf":case"ps":case"eps":return r.pdf;case"psd":return r.psd;case"txt":case"djvu":case"nfo":case"xml":return r.text;default:switch(e.split("/")[0]){case"image":return r.image;case"audio":return r.audio;case"video":return r.video;default:return r.other}}}e.truncateWord=function(t,e){var i,n;if(void 0===e&&(e=13),t.length<=e)return t;var o=t.lastIndexOf(".");if(-1===o)n=t.substr(t.length-4),i=t.substr(0,e-7);else{var r=o-3;n=t.substr(r),i=t.substr(0,e-(t.length-r))}return i+"..."+n},e.calculateCover=function(t){var e,i,n,o,r=t.width,s=t.height,a=r/s;return a>1?(e=s,n=(r-(i=s))/2,o=0):a<1?(i=r,n=0,o=(s-(e=r))/2):(e=r,i=r,n=0,o=0),{sx:n,sy:o,sWidth:i,sHeight:e,dx:0,dy:0}},function(t){t.image="image",t.video="video",t.archive="archive",t.table="table",t.document="document",t.presentation="presentation",t.application="application",t.web="web",t.apple="apple",t.pdf="pdf",t.psd="psd",t.audio="audio",t.other="other",t.text="text"}(r||(e.FileType=r={})),e.getFileType=a,e.getFileClassName=function(t){var e=s(t),i=e.mime,n=e.extension;return a(n,i)+" extension-"+n},e.isImage=function(t){var e=s(t),i=e.mime;return a(e.extension,i)===r.image}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.ProgressBar=void 0;var r=i(0),s=i(9),a=i(48),l=i(33),c=function(t){function e(e,i){var n=t.call(this,null,i)||this;n.events=e,n._progress=0;return n.mount(null,(0,r.create)({render:function(){return n._draw()}})),n._abortUpload=function(){n.events.fire(l.ProgressBarEvents.cancel)},n}return o(e,t),e.prototype.setState=function(t,e){this._progress=t,this.config.template?this._progressText=this.config.template(t,e):this._progressText=this._progress.toFixed(1)+"%",this.paint()},e.prototype._draw=function(){return(0,r.el)(".progress-bar",{_key:this._uid},[(0,r.el)(".progress-indicator",{style:{width:this._progress+"%"}}),(0,r.el)(".progress-text",{".innerHTML":this._progressText}),(0,r.el)("button",{class:"dhx_btn dhx_btn--flat dhx_btn_small action-abort-all",onclick:this._abortUpload},a.default.cancel)])},e}(s.View);e.ProgressBar=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReadStackPreview=void 0;var n=function(){function t(t){this._readerStack=[],this._isActive=!1,this._data=t}return t.prototype.add=function(t,e){void 0===e&&(e=!1),this._readerStack.push(t),e||this.read()},t.prototype.read=function(){var t=this;if(this._readerStack.length&&!this._isActive){var e=this._readerStack.shift();this._isActive=!0;var i=new FileReader;i.readAsDataURL(e.file),i.onload=function(i){var n=new Image;n.src=i.target.result,n.onload=function(){t._data.exists(e.id)&&t._data.update(e.id,{image:n}),t._isActive=!1,t.read()}},i.onerror=function(){t._isActive=!1,t.read()}}},t.prototype.stop=function(){this._readerStack=[]},t}();e.ReadStackPreview=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEditor=void 0;var n=i(161);e.getEditor=function(t,e){return new n.InputEditor(t,e)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InputEditor=void 0;var n=i(0),o=i(49),r=function(){function t(t,e){var i=this;this._list=e,this._config=e.config,this._item=t,this._list.events.on(o.ListEvents.focusChange,(function(t,e){i._mode&&e!==i._item.id&&i.endEdit()})),this._initHandlers()}return t.prototype.endEdit=function(){if(this._input){var t=this._input.value;this._list.events.fire(o.ListEvents.beforeEditEnd,[t,this._item.id])?(this._input.removeEventListener("blur",this._handlers.onBlur),this._input.removeEventListener("change",this._handlers.onChange),this._input.removeEventListener("keydown",this._handlers.onKeyDown),this._handlers={},this._mode=!1,this._list.events.fire(o.ListEvents.afterEditEnd,[t,this._item.id])):this._input.focus()}},t.prototype.toHTML=function(){this._mode=!0;var t=this._config.itemHeight;return(0,n.el)(".dhx_input__wrapper",{role:"presentation"},[(0,n.el)("div.dhx_input__container",{role:"presentation"},[(0,n.el)("input.dhx_input",{class:this._item.css?" "+this._item.css:"",style:{height:t,width:"100%",padding:"8px 12px"},_hooks:{didInsert:this._handlers.didInsert},_key:this._item.id,"data-dhx-id":this._item.id})])])},t.prototype._initHandlers=function(){var t=this;this._handlers={onBlur:function(){t.endEdit()},onChange:function(){t.endEdit()},onKeyDown:function(e){"Enter"===e.key&&t._item.value===t._input.value&&t.endEdit(),"Escape"===e.key&&(t._input.value=t._item.value,t.endEdit())},didInsert:function(e){var i=e.el;t._input=i,i.focus(),i.value=t._item.value,i.setSelectionRange(0,i.value.length),i.addEventListener("change",t._handlers.onChange),i.addEventListener("blur",t._handlers.onBlur),i.addEventListener("keydown",t._handlers.onKeyDown)}}},t}();e.InputEditor=r},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.ProList=void 0;var a=i(0),l=i(19),c=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.scrollView=new l.ScrollView((function(){return n.getRootView()})),n.paint(),n}return o(e,t),e.prototype.destructor=function(){t.prototype.destructor.call(this),this.scrollView=null},e.prototype.scrollTo=function(t){var e,i,n=this.getRootView();if(n&&n.node&&n.node.el&&void 0!==t){var o=(null===(e=this.scrollView)||void 0===e?void 0:e.config.enable)?null===(i=this.getRootNode())||void 0===i?void 0:i.querySelector(".scroll-view"):this.getRootNode();this._scrollTo(t,o)}},e.prototype._renderList=function(){var t=this,e=this._getRange(),i=this.data.getRawData(e[0],e[1]).map((function(e,i){return t._renderItem(e,i)}));this.config.virtual&&(i=s(s([(0,a.el)(".div",{style:{height:e[2]+"px"}})],i,!0),[(0,a.el)(".div",{style:{height:e[3]+"px"}})],!1));var n=this.scrollView&&this.scrollView.config.enable,o=(this.config.css?this.config.css:"")+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":"")+(n?" dhx_list--scroll-view":"");return(0,a.el)("ul.dhx_widget.dhx_list",r(r({style:{"max-height":this.config.height,position:"relative"},id:this._uid,class:o,"data-dhx-widget-id":this._uid},this._handlers),this._getListAriaAttrs(this.config,this.data.getLength())),n?[].concat(this.scrollView.render(i)):i)},e}(i(73).List);e.ProList=c},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Colorpicker=void 0;var s=i(0),a=i(2),l=i(3),c=i(9),u=i(1),d=i(51),h=i(75),f=i(52),p=i(76),v=i(66),g=i(12),_=i(164),m=i(165),y=i(14),b=i(21),w=i(1),x=function(t){function e(e,i){var n=t.call(this,e,i)||this;n._setPaletteGrip=function(t){var e=n.getRootView().refs.picker_palette.el.getBoundingClientRect(),i=t.targetTouches?t.targetTouches[0].clientX:t.clientX,o=(t.targetTouches?t.targetTouches[0].clientY:t.clientY)-e.top,r=i-e.left,s=(0,m.calculatePaletteGrip)(e,o,r),a=s.s,l=s.v;n._pickerState.hsv.s=a,n._pickerState.hsv.v=l,n.paint()},n._setRangeGrip=function(t){var e=n.getRootView().refs[n._activeRange].el.getBoundingClientRect(),i=(t.targetTouches?t.targetTouches[0].clientX:t.clientX)-e.left,o=(0,m.calculateRangeGrip)(e,i),r=o.h,s=o.alpha,a=o.rangeLeft;switch(n._activeRange){case"hue_range":n._pickerState.hsv.h=r,n._pickerState.hueRangeLeft=a;break;case"alpha_range":n._pickerState.alpha=s,n._pickerState.alphaRangeLeft=a}n.paint()},n._onColorClick=function(t,e){var i=e.data.color.toUpperCase();n.events.fire(p.ColorpickerEvents.beforeChange,[i])&&(n._selected=i,n._focusColor(i),n.events.fire(p.ColorpickerEvents.change,[n._selected]),n.events.fire(p.ColorpickerEvents.colorChange,[n._selected]))},n._container=e,n.config=(0,u.extend)({css:"",grayShades:!0,pickerOnly:!1,paletteOnly:!1,customColors:[],palette:h.palette,width:"238px",mode:"palette",transparency:!0},n.config),n.config.palette||(n.config.palette=h.palette),n.config.customColors&&(n.config.customColors=n.config.customColors.map((function(t){return t.toUpperCase()}))),n._pickerState={hsv:{h:0,s:1,v:1},customHex:"",alpha:1},n.events=new a.EventSystem(n),n._setHandlers(),n._keyManager=new y.KeyManager((function(t,e){return e===n._uid})),n._initHotKey();var o=(0,s.create)({render:function(){return n._getContent()}});return n.mount(n._container,o),n}return o(e,t),e.prototype.destructor=function(){this._keyManager&&this._keyManager.destructor(),this.events&&this.events.clear(),this.config=this.events=this._selected=this._handlers=this._pickerState=this._inputTimeout=this._keyManager=null,this.unmount()},e.prototype.clear=function(){this.events.fire(p.ColorpickerEvents.beforeChange,[""])&&(this._selected="",this.events.fire(p.ColorpickerEvents.change,[this._selected,"clear"]),this.paint())},e.prototype.setValue=function(t){t=this.config.transparency||9!==t.length?t:t.slice(0,-2),this.events.fire(p.ColorpickerEvents.beforeChange,[t])&&(this._focusColor(t)||b.focusManager.getFocusId()===this._uid)&&(this.events.fire(p.ColorpickerEvents.change,[this._selected]),this.events.fire(p.ColorpickerEvents.colorChange,[this._selected]))},e.prototype.setFocus=function(t){this._focusColor(t)&&this.paint()},e.prototype.getValue=function(){return this._selected||""},e.prototype.getCustomColors=function(){return this.config.customColors},e.prototype.setCustomColors=function(t){this.config.customColors=t.map((function(t){return t.toUpperCase()})),this.paint()},e.prototype.setCurrentMode=function(t){"palette"!==t&&"picker"!==t||(this.config.mode=t,this.events.fire(p.ColorpickerEvents.modeChange,[t]),this.events.fire(p.ColorpickerEvents.viewChange,[t]),this.paint())},e.prototype.getCurrentMode=function(){return this.config.mode},e.prototype.getView=function(){return this.getCurrentMode()},e.prototype.setView=function(t){this.setCurrentMode(t)},e.prototype.focusValue=function(t){this.setFocus(t)},e.prototype._setHandlers=function(){var t=this;this._handlers={click:{".dhx_palette__cell":this._onColorClick},mousedown:function(e){t._pickerMove(e)},touchstart:function(e){t._pickerMove(e)},buttonsClick:function(e){if(t.setCurrentMode("palette"),"cancel"!==e){var i=t._pickerState.alpha,n=1!==i?(0,d.alphaToHex)(i):"",o=t._pickerState.background+n;"apply"!==e||t.config.customColors.includes(o)||(t.setValue(o),t.events.fire(p.ColorpickerEvents.apply,[]),t.events.fire(p.ColorpickerEvents.selectClick,[]))}else t.events.fire(p.ColorpickerEvents.cancelClick,[])},customColorClick:function(){t.setView("picker")},oninput:function(e){var i=(0,l.locate)(e);switch(t._inputTimeout&&clearTimeout(t._inputTimeout),i){case"hex_input":t._inputTimeout=setTimeout((function(){var i=e.target.value;-1===i.indexOf("#")&&(i="#".concat(i)),t._pickerState.customHex=i,(0,d.isHex)(i)&&(t._pickerState.hsv=(0,d.HexToHSV)(i),t._pickerState.alpha=(0,d.getAlpha)(i),t.paint())}),100);break;case"alpha_input":t._pickerState.customHex="";var n=parseInt(e.target.value);n>100&&(n=Math.trunc(n/10)),n>=0&&(t._pickerState.alpha=n/100,t.paint())}},contextmenu:{".dhx_palette__cell":function(e,i){e.preventDefault();var n=t.config.customColors.indexOf(i.data.color);-1!==n&&t._removeCustomColor(n),t.paint()}},mouseover:{".dhx_palette__cell":function(t){t.target&&(0,v.tooltip)(f.default.rightClickToDelete,{node:t.target,position:g.Position.bottom})},".dhx_colorpicker-custom-colors__picker":function(t){t.target&&(0,v.tooltip)(f.default.addNewColor,{node:t.target,position:g.Position.bottom})}}},this.events.on(p.ColorpickerEvents.change,(function(){t.paint()})),this.events.on(p.ColorpickerEvents.colorChange,(function(){t.paint()}))},e.prototype._pickerMove=function(t){var e=this,i=(0,l.locate)(t);this._pickerState.customHex="","picker_palette"===i?this._setPaletteGrip(t):(this._activeRange=i,this._setRangeGrip(t));var n="picker_palette"===i?this._setPaletteGrip:this._setRangeGrip,o=t.targetTouches?"touchmove":"mousemove",r=t.targetTouches?"touchend":"mouseup";document.addEventListener(o,n),document.addEventListener(r,(function(){document.removeEventListener(o,n),e._activeRange=null})),this.paint()},e.prototype._focusColor=function(t){if(void 0===t||t.length<4)return!1;var e=t.toUpperCase();if(!(0,d.isHex)(e))return!1;var i=this.config.palette.reduce((function(t,i){return t||(i.forEach((function(i){i.toUpperCase()!==e||(t=!0)})),t)}),!1),n=h.grayShades.includes(e);if(!i&&!n){var o=this.getCustomColors();o.includes(e.toUpperCase())||o.push(e.toUpperCase())}return this._selected=e||null,this._pickerState.hsv=(0,d.HexToHSV)(e),this._pickerState.alpha=(0,d.getAlpha)(e),!0},e.prototype._removeCustomColor=function(t){this.config.customColors.splice(t,1)},e.prototype._getCells=function(t,e){var i=this;return void 0===e&&(e=""),t.reduce((function(t,n){var o=(i._selected||"").toUpperCase()===n.toUpperCase()?"dhx_palette__cell--selected":"";return t.push((0,s.el)(".dhx_palette__cell",{class:"".concat(o," ").concat(e),_data:{color:n},style:"background:".concat(n),tabindex:0})),t}),[])},e.prototype._getGrayShades=function(){return(0,s.el)(".dhx_palette__row",this._getCells(h.grayShades))},e.prototype._getPalette=function(){var t=this;return this.config.palette.reduce((function(e,i){return e.push((0,s.el)(".dhx_palette__col",t._getCells(i))),e}),[])},e.prototype._getContent=function(){var t;return t=this.config.pickerOnly?[(0,_.getPicker)(this,this._pickerState,this._handlers)]:"palette"===this.config.mode?r(r([this.config.grayShades&&this._getGrayShades()],this._getPalette(),!0),[!this.config.paletteOnly&&(0,s.el)(".dhx_colorpicker-custom-colors",{onmouseover:this._handlers.mouseover},[(0,s.el)(".dhx_colorpicker-custom-colors__header",[f.default.customColors]),(0,s.el)(".dhx_palette--custom.dhx_palette__row",r(r([],this._getCells(this.config.customColors,"dhx_custom-color__cell"),!0),[(0,s.el)(".dhx_colorpicker-custom-colors__picker",{class:"dxi dxi-plus",onclick:this._handlers.customColorClick,onmouseover:this._handlers.mouseover,tabindex:0})],!1))])],!1):[(0,_.getPicker)(this,this._pickerState,this._handlers)],(0,s.el)(".dhx_widget.dhx_colorpicker",{class:this.config.css,style:{width:this.config.width},"data-dhx-widget-id":this._uid},[(0,s.el)(".dhx_palette",{onclick:this._handlers.click,oncontextmenu:this._handlers.contextmenu},t)])},e.prototype._initHotKey=function(){var t=this,e={enter:function(e){if((0,l.locateNodeByClassName)(e,"dhx_palette__cell")){var i=(0,w.rgbToHex)(e.target.style.background);if(!t.events.fire(p.ColorpickerEvents.beforeChange,[i]))return;t._selected=i,t.events.fire(p.ColorpickerEvents.change,[t._selected]),t.events.fire(p.ColorpickerEvents.colorChange,[t._selected])}(0,l.locateNodeByClassName)(e,"dhx_colorpicker-custom-colors__picker")&&t.setCurrentMode("picker")}};for(var i in e)this._keyManager.addHotKey(i,e[i])},e}(c.View);e.Colorpicker=x},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.calculatePaletteGrip=e.getPicker=void 0;var n=i(51),o=i(0),r=i(52);e.getPicker=function(t,e,i){var s=(0,n.HSVtoRGB)(e.hsv);e.background=(0,n.RGBToHex)(s);var a=e.background,l=e.hsv,c=e.customHex,u=e.alpha,d=(0,n.RGBToHex)((0,n.HSVtoRGB)({h:l.h,s:1,v:1})),h=t.getRootView(),f=h.refs?h.refs.picker_palette.el.getBoundingClientRect():{height:200,width:218,x:0,y:0},p=f.height-2,v=f.width-2,g=p-l.v*p-4,_=l.s*v-4,m=f.width-6,y=m-(360-l.h)/360*m,b=u*m,w=1!==u?(0,n.alphaToHex)(u):"",x=(0,n.isHex)(c)?c.replace("#",""):a.replace("#","")+w,E=Math.round(100*u),C=t.config.transparency;return(0,o.el)(".dhx_colorpicker-picker",{},[(0,o.el)(".dhx_colorpicker-picker__palette",{style:{height:132,background:d},onmousedown:i.mousedown,ontouchstart:i.touchstart,"data-dhx-id":"picker_palette",_ref:"picker_palette"},[(0,o.el)(".dhx_palette_grip",{style:{top:g,left:_},tabindex:0})]),(0,o.el)(".dhx_colorpicker-range.dhx_colorpicker-range--hue",{onmousedown:i.mousedown,ontouchstart:i.touchstart,"data-dhx-id":"hue_range",_key:"hue_range",_ref:"hue_range"},[(0,o.el)(".dhx_colorpicker-range__grip.dhx_colorpicker-range__grip--hue",{style:{left:y},tabindex:0})]),C?(0,o.el)(".dhx_colorpicker-range.dhx_colorpicker-range--alpha",{onmousedown:i.mousedown,ontouchstart:i.touchstart,"data-dhx-id":"alpha_range",_key:"alpha_range",_ref:"alpha_range"},[(0,o.el)(".dhx_colorpicker-range__substrate"),(0,o.el)(".dhx_colorpicker-range__background",{style:{backgroundImage:"linear-gradient(to right, transparent, ".concat(a,")")}}),(0,o.el)(".dhx_colorpicker-range__grip.dhx_colorpicker-range__grip--alpha",{style:{left:1!==u?b:null},tabindex:0})]):null,(0,o.el)(".dhx_colorpicker-value",[(0,o.el)(".dhx_colorpicker-value__color",{style:{background:a+(0,n.alphaToHex)(u)}}),(0,o.el)(".dhx_colorpicker-value__input-wrapper.dhx_colorpicker-value__input-wrapper--hex",[(0,o.el)("input",{class:"dhx_colorpicker-value__input dhx_colorpicker-value__input--hex",style:{width:C?112:100},value:x,oninput:i.oninput,maxlength:C?"9":"7",_key:"hex_input","data-dhx-id":"hex_input","aria-label":"type color in HEX format"})]),C?(0,o.el)(".dhx_colorpicker-value__input-wrapper.dhx_colorpicker-value__input-wrapper--alpha",[(0,o.el)("input",{class:"dhx_colorpicker-value__input dhx_colorpicker-value__input--alpha",value:E,oninput:i.oninput,maxlength:"3",_key:"alpha_input","data-dhx-id":"alpha_input","aria-label":"type opacity in percent"})]):null]),(0,o.el)(".dhx_colorpicker-picker__buttons",[!t.config.pickerOnly&&(0,o.el)("button",{class:"dhx_button dhx_button--size_medium dhx_button--view_link dhx_button--color_primary",onclick:[i.buttonsClick,"cancel"]},r.default.cancel),(0,o.el)("button",{class:"dhx_button dhx_button--size_medium dhx_button--view_flat dhx_button--color_primary",onclick:[i.buttonsClick,"apply"]},r.default.select)])])},e.calculatePaletteGrip=function(t,e,i){var n=t.refs.picker_palette.el.getBoundingClientRect(),o=n.height,r=n.width;e=e<0?0:e>o?o:e,i=i<0?0:i>r?r:i;var s=Math.round(i/(r/100)),a=100-Math.round(e/(o/100));this._pickerState.hsv.s=s/100,this._pickerState.hsv.v=a/100}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.calculateRangeGrip=e.calculatePaletteGrip=void 0,e.calculatePaletteGrip=function(t,e,i){var n=t.height,o=t.width;return e=e<0?0:e>n?n:e,i=i<0?0:i>o?o:i,{s:Math.round(i/(o/100))/100,v:(100-Math.round(e/(n/100)))/100}},e.calculateRangeGrip=function(t,e){var i=t.width;return e=e<0?0:e>i?i:e,{h:Math.round(e/i*360),alpha:Number((e/i).toFixed(2)),rangeLeft:e}}},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(77),e),o(i(186),e),o(i(25),e)},function(t,e,i){"use strict";var n=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.ComposeLayer=void 0;var o=i(0),r=i(168),s=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 i={left:20,right:20,top:10,bottom:10},s=this._data.filter((function(t){return!t.dataReady||t.dataReady().length}));this._data.forEach((function(t){return!t.scaleReady||t.scaleReady(i)}));var a=0,l=0;s.forEach((function(t){t.seriesShift&&(a+=t.seriesShift(),l++)}));var c=a/l;a=l?(c-a)/2:0,s.forEach((function(t){t.seriesShift&&(t.seriesShift(a),a+=c)})),this._sizes=i;var u=t-i.left-i.right,d=e-i.top-i.bottom,h=(0,o.sv)("g",{transform:"translate(".concat(i.left,", ").concat(i.top,")")},n([(0,o.sv)("rect.dhx_chart-graph_area",{width:u>0?u:0,height:d>0?d:0,fill:"transparent"})],s.map((function(n){return n.paint(t-(i.left+i.right),e-(i.top+i.bottom))})),!0)),f=(0,o.sv)("defs",[(0,r.dropShadow)(),(0,r.shadow)()]);return(0,o.sv)("svg",{width:t,height:e,role:"graphics-document"},[f,h])},t}();e.ComposeLayer=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dropShadow=e.shadow=void 0;var n=i(0);e.shadow=function(){return(0,n.sv)("filter",{id:"shadow"},[(0,n.sv)("feDiffuseLighting",{in:"SourceGraphic",result:"light","lighting-color":"white"},[(0,n.sv)("feDistantLight",{azimuth:90,elevation:25})]),(0,n.sv)("feComposite",{in:"SourceGraphic",in2:"light",operator:"arithmetic",k1:"1",k2:"0",k3:"0",k4:"0"})])};e.dropShadow=function(){return(0,n.sv)("filter",{id:"dropshadow",x:"-100%",y:"-100%",width:"300%",height:"300%"},[(0,n.sv)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:2}),(0,n.sv)("feOffset",{dx:0,dy:0,result:"offsetblur"}),(0,n.sv)("feOffset",{dx:0,dy:0,result:"offsetblur"}),(0,n.sv)("feFlood",{"flood-color":"rgba(85,85,85,0.5)"}),(0,n.sv)("feComposite",{in2:"offsetblur",operator:"in"}),(0,n.sv)("feMerge",[(0,n.sv)("feMergeNode"),(0,n.sv)("feMergeNode",{in:"SourceGraphic"})])])}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.legendTicks=e.legendShape=void 0;var n=i(1),o=i(0),r=16,s=500,a={circle:function(t,e,i){return(0,o.sv)("circle",{id:(0,n.uid)(),r:5,fill:e,class:"figure ".concat("none"!==t?"with-stroke":""),"stroke-width":2,"fill-opacity":i,stroke:t,transform:"translate(0, -1)"})},rect:function(t,e,i){return(0,o.sv)("rect",{id:(0,n.uid)(),fill:e,"fill-opacity":i,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,i,a){var l=function(t,e,i){return(0,o.sv)("stop",{offset:"".concat(e,"%"),"stop-color":t,class:t?"":i})},c="lg"+(0,n.uid)(),u=(0,o.sv)("linearGradient",{id:c},[l(t[1],0,"heat-negative"),l(e,a,"heat-neutral"),l(t[0],100,"heat-positive")]),d=(0,o.sv)("rect",{id:(0,n.uid)(),y:r,fill:"url(#".concat(c,")"),"fill-opacity":i,width:s,"stroke-width":2,height:r,class:"figure figure-line",stroke:t});return(0,o.sv)("g",{id:(0,n.uid)(),width:s,height:r},[u,d])}};e.legendShape=function(t,e){var i;return"string"==typeof t&&(i=a[t]),i("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 i=e.maxValue,n=e.minValue,a=e.step,l=e.tick,c=e.majorTick,u=e.tickTemplate,d=l||10,h=(i-n)/d,f=[],p=0;p<=Math.ceil(h/(a||1));p++){var v=0===p?n:(n+d*(a||1)*p).toFixed();f.push(v>i?i:v)}return f=f.map((function(t,e,i){var n=(e%(c||1)==0||e===i.length-1)&&(0,o.sv)("text",{x:e===i.length-1?499.5:e*s/h*(a||1)-.5,y:34},u?u(t):t),l=(0,o.sv)("rect",{x:e===i.length-1?499.5:e*s/h*(a||1)-.5,y:18,width:1,height:4});return(0,o.sv)("g",{transform:"translate(0, ".concat(r,")"),class:"legend-tick"},[n,l])})),f}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(171),o=i(53),r=i(173),s={radial:n.RadialScale,text:r.TextScale,numeric:o.Scale};e.default=s},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.RadialScale=void 0;var r=i(30),s=function(t){function e(e,i){return t.call(this,e,i,"radial")||this}return o(e,t),e.prototype.paint=function(t,e){var i=this;if(this.config.hidden)return null;var n=this.config.zebra,o=this.config.value,s=this.config.showAxis?this._axis.steps:null,a=this._axis.steps.map((function(t){return i.point(t)})),l={scales:this._data.map((function(t){return t[o]})),axis:a,realAxis:s,zebra:n,attribute:o};return(0,r.radarScale)(l,t,e)},e.prototype.point=function(t){return(t-this._axis.min)/(this._axis.max-this._axis.min)},e}(i(53).Scale);e.RadialScale=s},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.AxisCreator=void 0;var r=i(5),s=[1,2,3,5,10],a=function(){function t(t,e){void 0===e&&(e={}),this._data=t;for(var i=[],o=0,r=this._data;o<r.length;o++){var s=r[o];"number"==typeof s&&i.push(s),"string"!=typeof s||isNaN(parseFloat(s))||i.push(parseFloat(s))}var a={min:Math.min.apply(Math,i),max:Math.max.apply(Math,i),maxTicks:this._data.length<20?this._data.length:20};this.config=n(n({},a),e),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,i=Math.floor((0,r.log10)(e/t)),n=Math.pow(10,i)||1,a=e/n/t;return s[o(o([],s,!0),[a],!1).sort((function(t,e){return t-e})).indexOf(a)]*n},t.prototype._calculateSteps=function(t){for(var e=Math.floor(this.config.min/t),i=Math.ceil(this.config.max/t),n=[],o="radial"===this.config.type?e-1:e;o<=i;o++){var r=t*o;Math.floor(r)!==r&&(r=parseFloat(r.toFixed(8))),n.push(r)}return n},t.prototype._logSteps=function(){var t=[];if(this.config.min<0){for(var e=Math.ceil((0,r.log10)(-this.config.min));e>0;e--)t.push(-Math.pow(10,e));t.push(0)}if(this.config.max>0){var i=Math.ceil((0,r.log10)(this.config.max));for(e=0;e<=i;e++)t.push(Math.pow(10,e))}return t},t.prototype._addPadding=function(){this.config.min-=this.config.padding},t}();e.AxisCreator=a},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.TextScale=void 0;var s=i(5),a=i(53),l=i(79),c={left:l.left,right:l.right,bottom:l.bottom,top:l.top},u={left:l.leftGrid,right:l.rightGrid,bottom:l.bottomGrid,top:l.topGrid},d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.scaleReady=function(t){var e=this._data.getLength()-1,i=this._data.map(this.locator);this._axis={max:e,steps:i},t[this._position]+=this.config.size},e.prototype.point=function(t){var e=this._axis.steps.indexOf(t);if(this._padding){var i=this._axis.max+1,n=.5/i,o=e/i;return this._isXDirection?n+o:1-n-o}return this._isXDirection?e/this._axis.max:1-e/this._axis.max},e.prototype.paint=function(t,e){var i=this;if(this.config.hidden)return null;var n=this._axis.steps.map((function(n,o){return[i._isXDirection?i._getAxisPoint(o)*t:i.point(n)*e,n]}));return c[this._position](n,this.config,t,e)},e.prototype.scaleGrid=function(){var t=this,e=this._position,i=this.config.grid,n=this.config.dashed,o=this.config.hidden;return{paint:function(r,s){var a=t._axis.steps.indexOf(t.config.targetLine),l=function(e,i){return t._axis.steps.map((function(n,o){return[t._isXDirection?t._getAxisPoint(o)*e:t._getAxisPoint(o)*i,n]}))}(r,s),c={targetLine:a,dashed:n,grid:i,hidden:o};return u[e](l,r,s,c)}}},e.prototype._setDefaults=function(t){this.locator=(0,s.locator)(t.text),this.config=r(r({},{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 i=e+1,n=.5/i,o=t/i;return this._isXDirection?n+o:1-n-o}return this._isXDirection?t/e:1-t/e},e}(a.Scale);e.TextScale=d},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.addScale=function(e,i){var n="top"===e||"bottom"===e?"left":"top";t.prototype.addScale.call(this,n,i)},e.prototype.paint=function(e,i,n){return t.prototype.paint.call(this,i,e,n)},e.prototype.getTooltipType=function(t,e,i){return void 0!==this.config.baseLine&&this._baseLinePosition>e?"left":"right"},e.prototype.getClosest=function(t,e){for(var i=[1/0,null,null,null],n=0,o=this._points;n<o.length;n++){var r=o[n],s=this._getClosestDist(t,e,r[1],r[0]);i[0]>s&&(i[0]=s,i[1]=r[1],i[2]=r[0],i[3]=r[2])}return i},e.prototype._getText=function(t){return t[4].toString()},e.prototype._getClosestDist=function(t,e,i,n){return this.config.stacked&&t>i?1/0:Math.abs(e-n)},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,i){var n=(e+t[1])/2,o=t[0];return{x:n,y:o,class:"bar-text",transform:i&&!isNaN(i)?"rotate(".concat(i," ").concat(n," ").concat(o,")"):""}},e}(i(83).default);e.default=r},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),a=i(30),l=i(5),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.paint=function(t,e){var i,n=this,o=function(t,e,i){return void 0===i&&(i=0),{role:"graphics-symbol","aria-roledescription":"piece of donut","aria-label":"".concat(e||"",", ").concat(t," (").concat((0,l.roundToTwoNumAfterPoint)(i),"%)")}},c=this.config,u=c.stroke,d=c.strokeWidth,h=c.useLines,f=c.subType,p=c.valueTemplate,v=!d||d<1?4:d>15?15:d;i=e>t?t/2:e/2;var g,_=-.25,m=[],y=[],b=[];return this._points.length>1&&u&&m.push((0,s.sv)("circle",{cx:0,cy:0,r:i-.5,fill:u})),this._points.forEach((function(c,d){var g,w,x,E=[],C=c[0],S=c[1],k=c[2],O=c[3],P=c[4],I=0===C||1===C?-1e-6:0,D=(0,a.getCoordinates)(_,i,i,n._points.length>1&&u?v/2:null),M=D[0],T=D[1],V=_+C/2;_+=C+I;var H=(0,a.getCoordinates)(_,i,i,n._points.length>1&&u?-v/2:null),j=H[0],F=H[1],R=C>.5?1:0,A=(0,a.getCoordinates)(V,i,i),L=V>-.25&&V<.25,$=V>.5||V<0,N=V<.25?5:-5,z=[5,30],W=z[0],B=z[1],G=[(0,a.getCoordinates)(V,i+W,i+W),(0,a.getCoordinates)(V,i+B,i+B)],q=G[0],Y=G[1],X="function"==typeof p?p(C):Math.round(100*C)+"%";switch(n.config.subType){case"basic":var U=L?"donut-value-title start-text":"donut-value-title end-text",K=$?-20:10,J=(0,a.getCoordinates)(V,i+10,i+10),Z=L?"donut-value start-text":"donut-value end-text",Q={text1:{x:h?Y[0]:J[0],y:(h?Y[1]:J[1])+K,width:0,height:0,class:""},text2:{x:h?Y[0]:J[0],y:(h?Y[1]:J[1])+K+16,width:0,height:0,class:""},changeSector:!1,line:N,right:L,dy:K},tt=(0,s.sv)("text",r(r({x:h?Y[0]:J[0],y:(h?Y[1]:J[1])+K,class:U},o(S,O,C)),{tabindex:0}),[(0,l.verticalCenteredText)(O.toString())]),et=(0,s.sv)("text",{x:h?Y[0]:J[0],y:(h?Y[1]:J[1])+K+16,class:Z,"aria-hidden":"true"},[(0,l.verticalCenteredText)(S.toString())]);g=(0,l.getSizesSVGText)(O.toString(),{font:"normal 14px Roboto",lineHeight:14}),Q.text1.width=g[0],Q.text1.height=g[1],w=(0,l.getSizesSVGText)(S.toString(),{font:"normal 12px Roboto",lineHeight:12}),Q.text2.width=w[0],Q.text2.height=w[1];var it=h?i+B:i+10;0!==y.length&&(L?(y.forEach((function(t){(0,l.checkPositions)(Q.text1,t.text1,it,it,Q),(0,l.checkPositions)(Q.text1,t.text2,it,it,Q)})),Q.text1.class&&(Q.text2.class=Q.text1.class)):(y.forEach((function(t){(0,l.checkPositions)(Q.text2,t.text2,it,it,Q),(0,l.checkPositions)(Q.text2,t.text1,it,it,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),N=Q.line,h?(Y[0]=Q.text1.x,Y[1]=Q.text1.y-K):(J[0]=Q.text1.x,J[1]=Q.text1.y-K)),y.push(Q);var nt=(0,s.sv)("text",r({x:7*A[0]/9,y:7*A[1]/9,class:"pie-inner-value"},o(S,O,C)),[(0,l.verticalCenteredText)(X)]);E.push((0,s.sv)("g",{id:"".concat(k,"-text"),class:"chart donut"},[tt,et])),E.push(nt);break;case"valueOnly":var ot=(0,s.sv)("text",r(r({x:7*A[0]/9,y:7*A[1]/9,class:"pie-inner-value"},o(S,O,C)),{tabindex:0}),[(0,l.verticalCenteredText)("".concat(S))]);E.push(ot);break;case"percentOnly":var rt=(0,s.sv)("text",r(r({x:7*A[0]/9,y:7*A[1]/9,class:"pie-inner-value"},o(S,O,C)),{tabindex:0}),[(0,l.verticalCenteredText)(X)]);E.push(rt)}if(h&&"basic"===f){K=$?3:0;E.push((0,s.sv)("path",{d:"M".concat(q[0]," ").concat(q[1]," L").concat(Y[0],"\n\t\t\t\t\t\t\t").concat(Y[1]+K," h ").concat(N),id:"".concat(k,"-connector"),class:"pie-value-connector chart donut"}))}var st=0,at=0,lt=v/(2*Math.sin(Math.PI/n._points.length));n._points.length>1&&u&&(st=(x=(0,a.getCoordinates)(V,lt,lt))[0],at=x[1]);var ct="M ".concat(M," ").concat(T," A ").concat(i," ").concat(i," 0 ").concat(R," 1 ").concat(j," ").concat(F,"\n\t\t\t\tL ").concat(0+st," ").concat(0+at),ut=(0,a.getCoordinates)(V,4,4),dt=ut[0],ht=ut[1],ft=(0,s.sv)("path",{d:ct,_key:k,fill:P||(0,l.getDefaultColor)(d),class:"chart donut",onclick:[n._handlers.onclick,c[1],c[2]],onmouseout:[a.pieLikeHandlers.onmouseout],onmouseover:[a.pieLikeHandlers.onmouseover,dt,ht],role:"presentation"});E.unshift(ft),m.push((0,s.sv)("g",{id:k},E)),1===n._points.length?b.push([t/2,e/2]):b.push([.8*A[0]+t/2,.8*A[1]+e/2])})),this._center=[t/2,e/2],this._tooltipData=b,(m=m.concat([])).push((0,s.sv)("circle",{cx:0,cy:0,r:5*i/9,fill:"#FFFFFF",role:"presentation"})),(0,s.sv)("g",r(r({transform:"translate(".concat(t/2,", ").concat(e/2,")")},(g=this.config,{"aria-label":"chart ".concat(g.text||"")})),{tabindex:0}),m)},e}(i(55).default);e.default=c},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(1),a=i(0),l=i(30),c=i(5),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.paint=function(t,e){var i,n=this,o=this.config,u=o.stroke,d=o.strokeWidth,h=o.gradient,f=o.useLines,p=o.showText,v=o.showTextTemplate,g=o.subType,_=o.valueTemplate,m=!d||d<1?4:d>15?15:d;i=e>t?t/2:e/2;var y,b=-.25,w=[],x=[],E=[],C=[],S=[];return this._points.length>1&&u&&E.push((0,a.sv)("circle",{cx:0,cy:0,r:i-.5,fill:u})),this._points.forEach((function(o,d){var y,E,k,O=[],P=o[0],I=o[1],D=o[2],M=o[3],T=o[4],V=0===P||1===P?-1e-6:0,H=T||(0,c.getDefaultColor)(d);if(h){var j=h(T),F="gradient"+(0,s.uid)(),R=(0,c.getRadialGradient)(j.options,j.stops,F);H="url(#".concat(F,")"),C.push(R)}var A=(0,l.getCoordinates)(b,i,i,n._points.length>1&&u?m/2:null),L=A[0],$=A[1],N=b+P/2,z=N<.25?5:-5,W=(0,l.getCoordinates)(N,i,i);b+=P+V;var B=(0,l.getCoordinates)(b,i,i,n._points.length>1&&u?-m/2:null),G=B[0],q=B[1],Y=P>.5?1:0,X=[5,30],U=X[0],K=X[1],J=[(0,l.getCoordinates)(N,i+U,i+U),(0,l.getCoordinates)(N,i+K,i+K)],Z=J[0],Q=J[1],tt=N>-.25&&N<.25,et=N>.5||N<0,it=N>-.25&&N<.25?"pie-value start-text":"pie-value end-text";if((p||v)&&!1!==p){var nt=(0,a.sv)("text",{x:.7*W[0],y:.7*W[1],class:"pie-inner-value","aria-hidden":"true"},[v?(0,c.verticalCenteredText)(v(I.toString())):(0,c.verticalCenteredText)(I.toString())]);O.push(nt)}var ot="function"==typeof _?_(P):Math.round(100*P)+"%";switch(n.config.subType){case"basic":var rt=et?-20:10,st=(0,l.getCoordinates)(N,i+10,i+10),at=tt?"donut-value start-text":"donut-value end-text",lt={text1:{x:f?Q[0]:st[0],y:(f?Q[1]:st[1])+rt,width:0,height:0,class:""},text2:{x:f?Q[0]:st[0],y:(f?Q[1]:st[1])+rt+16,width:0,height:0,class:""},changeSector:!1,line:z,right:tt,dy:rt},ct=(0,a.sv)("text",r({x:f?Q[0]:st[0],y:(f?Q[1]:st[1])+rt,class:it},function(t,e,i){return{role:"graphics-symbol","aria-roledescription":"piece of pie","aria-label":"".concat(e||"",", ").concat(t," (").concat((0,c.roundToTwoNumAfterPoint)(i),"%)")}}(I,M,P)),[(0,c.verticalCenteredText)(M.toString())]),ut=(0,a.sv)("text",{x:f?Q[0]:st[0],y:(f?Q[1]:st[1])+rt+16,class:at,"aria-hidden":"true"},[(0,c.verticalCenteredText)(I.toString())]);y=(0,c.getSizesSVGText)(M.toString(),{font:"normal 14px Roboto",lineHeight:14}),lt.text1.width=y[0],lt.text1.height=y[1],E=(0,c.getSizesSVGText)(I.toString(),{font:"normal 12px Roboto",lineHeight:12}),lt.text2.width=E[0],lt.text2.height=E[1];var dt=f?i+K:i+10;0!==w.length&&(tt?(w.forEach((function(t){(0,c.checkPositions)(lt.text1,t.text1,dt,dt,lt),(0,c.checkPositions)(lt.text1,t.text2,dt,dt,lt)})),lt.text1.class&&(lt.text2.class=lt.text1.class)):(w.forEach((function(t){(0,c.checkPositions)(lt.text2,t.text2,dt,dt,lt),(0,c.checkPositions)(lt.text2,t.text1,dt,dt,lt)})),lt.text2.class&&(lt.text1.class=lt.text2.class)),ct.attrs.x=lt.text1.x,ct.attrs.y=lt.text1.y,ut.attrs.x=lt.text2.x,ut.attrs.y=lt.text2.y,(lt.text1.class||lt.text2.class)&&(ct.attrs.class=lt.text1.class,ut.attrs.class=lt.text2.class),z=lt.line,f?(Q[0]=lt.text1.x,Q[1]=lt.text1.y-rt):(st[0]=lt.text1.x,st[1]=lt.text1.y-rt)),w.push(lt);var ht=(0,a.sv)("text",{x:.5*W[0],y:.5*W[1],class:"pie-inner-value","aria-hidden":"true"},[(0,c.verticalCenteredText)(ot)]);O.push((0,a.sv)("g",{id:"".concat(D,"-text"),class:"chart donut"},[ct,ut])),O.push(ht);break;case"valueOnly":var ft=(0,a.sv)("text",{x:.5*W[0],y:.5*W[1],class:"pie-inner-value","aria-hidden":"true"},[(0,c.verticalCenteredText)("".concat(I))]);O.push(ft);break;case"percentOnly":var pt=(0,a.sv)("text",{x:.5*W[0],y:.5*W[1],class:"pie-inner-value","aria-hidden":"true"},[(0,c.verticalCenteredText)(ot)]);O.push(pt)}if(f&&"basic"===g){rt=et?3:0;O.push((0,a.sv)("path",{d:"M".concat(Z[0]," ").concat(Z[1]," L").concat(Q[0],"\n\t\t\t\t\t\t\t").concat(Q[1]+rt," h ").concat(z),id:"".concat(D,"-connector"),class:"pie-value-connector chart pie"}))}var vt=0,gt=0,_t=m/(2*Math.sin(Math.PI/n._points.length));n._points.length>1&&u&&(vt=(k=(0,l.getCoordinates)(N,_t,_t))[0],gt=k[1]);var mt="M ".concat(L," ").concat($," A ").concat(i," ").concat(i," 0 ").concat(Y," 1 ").concat(G," ").concat(q,"\n\t\t\t\tL ").concat(0+vt," ").concat(0+gt),yt=(0,l.getCoordinates)(N,4,4),bt=yt[0],wt=yt[1],xt=(0,a.sv)("path",{d:mt,class:"chart pie",_key:D,fill:H,onclick:[n._handlers.onclick,o[1],o[2]],onmouseover:[l.pieLikeHandlers.onmouseover,bt,wt],onmouseout:[l.pieLikeHandlers.onmouseout],role:"presentation"});O.unshift(xt),S.push((0,a.sv)("g",{id:D},O)),1===n._points.length?x.push([t/2,e/2]):x.push([.7*W[0]+t/2,.7*W[1]+e/2])})),this._center=[t/2,e/2],this._tooltipData=x,E.push((0,a.sv)("defs",C)),E=(E=E.concat(S)).concat([]),(0,a.sv)("g",r(r({transform:"translate(".concat(t/2,", ").concat(e/2,")")},(y=this.config,{"aria-label":"chart ".concat(y.text||"")})),{tabindex:0}),E)},e}(i(55).default);e.default=u},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),a=i(30),l=i(5),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.paint=function(t,e){var i,n,o=this,c=this.config,u=c.subType,d=c.useLines,h=c.showText,f=c.showTextTemplate,p=c.valueTemplate,v=.5*(i=e>t?t/2:e/2),g=i/5,_=[],m=-.25,y=[],b=[],w=[];return this._points.forEach((function(n,c){var x,E,C=n[0],S=n[1],k=n[2],O=n[3],P=n[4],I=0===C||1===C?-1e-6:0,D=(0,a.getCoordinates)(m,i,v),M=D[0],T=D[1],V=m+C/2,H=V<.25?5:-5,j=(0,a.getCoordinates)(V,i,v),F=0;V>0&&V<.5&&(F=g*Math.sin(2*Math.PI*V));var R=(0,a.getCoordinates)(V,i+5+F,v+5+F),A=(0,a.getCoordinates)(V,i+30+F,v+30+F),L=m+C+I,$=(0,a.getCoordinates)(L,i,v),N=$[0],z=$[1],W=C>.5?1:0,B=V>-.25&&V<.25,G=V>.5||V<0,q=B?"pie-value start-text":"pie-value end-text",Y="function"==typeof p?p(C):Math.round(100*C)+"%";switch(o.config.subType){case"basic":var X=G?-20:10,U=B?"donut-value start-text":"donut-value end-text",K={text1:{x:d?A[0]:R[0],y:(d?A[1]:R[1])+X,width:0,height:0,class:""},text2:{x:d?A[0]:R[0],y:(d?A[1]:R[1])+X+16,width:0,height:0,class:""},changeSector:!1,line:H,right:B,dy:X},J=(0,s.sv)("text",r({x:d?A[0]:R[0],y:(d?A[1]:R[1])+X,dx:d?H/2+H>0?10:-10:null,class:q},function(t,e,i){return{role:"graphics-symbol","aria-roledescription":"piece of pie","aria-label":"".concat(e||"",", ").concat(t," (").concat((0,l.roundToTwoNumAfterPoint)(i),"%)")}}(S,O,C)),[(0,l.verticalCenteredText)(O.toString())]),Z=(0,s.sv)("text",{x:d?A[0]:R[0],y:(d?A[1]:R[1])+X+16,dx:d?H/2+H>0?10:-10:null,class:U,"aria-hidden":"true"},[(0,l.verticalCenteredText)(S.toString())]),Q=(0,s.sv)("text",{x:.5*j[0],y:.5*j[1],class:"pie-inner-value","aria-hidden":"true"},[(0,l.verticalCenteredText)(Y)]);x=(0,l.getSizesSVGText)(O.toString(),{font:"normal 14px Roboto",lineHeight:14}),K.text1.width=x[0],K.text1.height=x[1],E=(0,l.getSizesSVGText)(S.toString(),{font:"normal 12px Roboto",lineHeight:12}),K.text2.width=E[0],K.text2.height=E[1];var tt=d?i+30+F:i+5+F,et=d?v+30+F:v+5+F;0!==w.length&&(B?(w.forEach((function(t){(0,l.checkPositions)(K.text1,t.text1,tt,et,K),(0,l.checkPositions)(K.text1,t.text2,tt,et,K)})),K.text1.class&&(K.text2.class=K.text1.class)):(w.forEach((function(t){(0,l.checkPositions)(K.text2,t.text2,tt,et,K),(0,l.checkPositions)(K.text2,t.text1,tt,et,K)})),K.text2.class&&(K.text1.class=K.text2.class)),J.attrs.x=K.text1.x,J.attrs.y=K.text1.y,Z.attrs.x=K.text2.x,Z.attrs.y=K.text2.y,(K.text1.class||K.text2.class)&&(J.attrs.class=K.text1.class,Z.attrs.class=K.text2.class),H=K.line,d?(A[0]=K.text1.x,A[1]=K.text1.y-X):(R[0]=K.text1.x,R[1]=K.text1.y-X)),w.push(K),b.push(J,Z,Q);break;case"valueOnly":var it=(0,s.sv)("text",{x:.5*j[0],y:.5*j[1],class:"pie-inner-value","aria-hidden":"true"},[(0,l.verticalCenteredText)(S.toString())]);b.push(it);break;case"percentOnly":var nt=(0,s.sv)("text",{x:.5*j[0],y:.5*j[1],class:"pie-inner-value","aria-hidden":"true"},[(0,l.verticalCenteredText)(Y)]);b.push(nt)}if(d&&"basic"===u&&b.push((0,s.sv)("path",{d:"M".concat(R[0]," ").concat(R[1]," L").concat(A[0]," ").concat(A[1]," h ").concat(H),class:"pie-value-connector"})),(h||f)&&!1!==h){var ot=(0,s.sv)("text",{x:.7*j[0],y:.7*j[1],class:"pie-inner-value","aria-hidden":"true"},[f?(0,l.verticalCenteredText)(f(S)):(0,l.verticalCenteredText)(S.toString())]);b.push(ot)}var rt="";if(m<=0&&L>=.5?rt="M ".concat(i," 0 v ").concat(g," A ").concat(i," ").concat(v," 0 1 1 ").concat(-i," ").concat(g," v ").concat(-g):m<=0&&L<.5?rt="M ".concat(i," 0 v ").concat(g," A ").concat(i," ").concat(v," 0 0 1 ").concat(N," ").concat(z+g," v ").concat(-g):m>0&&m<=.5&&L>=.5?rt="M ".concat(M," ").concat(T," v ").concat(g," A ").concat(i," ").concat(v," 0 0 1 ").concat(-i," ").concat(g," v ").concat(-g):m>0&&L<.5&&(rt="M ".concat(M," ").concat(T," v ").concat(g," A ").concat(i," ").concat(v," 0 0 1 ").concat(N," ").concat(z+g," v ").concat(-g)),rt){var st=(0,s.sv)("path",{_key:k+"__shadow__",d:rt,fill:P||(0,l.getDefaultColor)(c),onclick:[o._handlers.onclick,n[1],n[2]],class:"chart pie3d addition",stroke:"none",filter:"url(#shadow)",role:"presentation"});y.push(st)}var at="M ".concat(M," ").concat(T," A ").concat(i," ").concat(v," 0 ").concat(W," 1 ").concat(N," ").concat(z," L 0 0");y.push((0,s.sv)("path",{d:at,_key:k,fill:P||(0,l.getDefaultColor)(c),stroke:"none",onclick:[o._handlers.onclick,n[1],n[2]],class:"chart pie3d",role:"presentation"})),1===o._points.length?_.push([t/2,e/2]):_.push([.7*j[0]+t/2,.7*j[1]+e/2]),m=L})),this._center=[t/2,e/2],this._tooltipData=_,y=y.concat(b),(0,s.sv)("g",r(r({transform:"translate(".concat(t/2,", ").concat(e/2,")")},(n=this.config,{"aria-label":"chart ".concat(n.text||"")})),{tabindex:0}),y)},e}(i(55).default);e.default=c},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),a=i(30),l=i(5),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(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 i=(0,l.locator)(this._scale.config.value);return this._points=this._data.map((function(n,o){var r=e._locator(n),s=[r,r,n.id,r,r];return t&&(s[1]+=t[o][1]),i&&s.push(i(n)),s})),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,i){var n=this;t.prototype.paint.call(this,e,i);if(this.config.active){var o,a=this.config,c=[],u=this._points.map((function(t,e){return(e?"L":"M")+"".concat(t[0]," ").concat(t[1])})).join(" ")+"Z";if(c.push((0,s.sv)("path",{d:u,stroke:a.color,"stroke-width":a.strokeWidth,fill:a.fill,"fill-opacity":a.alpha,class:"chart radar"})),a.pointType){var d=this._points.map((function(t){return n._drawPointType(t[0],t[1],(0,l.calcPointRef)(t[2],n.id))})).map((function(t){return t&&t.attrs&&(t.attrs=r(r({},t.attrs),function(t,e){var i;return t&&(i=e.find((function(e){return t.includes(e[2])}))),{role:"graphics-symbol","aria-roledescription":"point","aria-label":i?"point x=".concat(i[5]," y=").concat(i[4]):"",tabindex:0}}(t.key,n._points))),t}));c.push((0,s.sv)("g",d))}return(0,s.sv)("g",r(r({id:"seria"+a.id},(o=this.config,{"aria-label":"chart ".concat(o.value||"")})),{tabindex:0}),c)}},e.prototype._calckFinalPoints=function(t,e){var i,n=this;i=e>t?t/2:e/2;var o=1/this._data.getLength(),r=-.25-o;this._points.forEach((function(s,l){r+=o;var c=n._scale.point(s[0]),u=(0,a.getCoordinates)(r,c*i,c*i);s[0]=u[0]+t/2,s[1]=u[1]+e/2}))},e.prototype._defaultLocator=function(t){return this._locator(t)},e.prototype._setDefaults=function(t){if(this._locator=(0,l.locator)(t.value),t.scales=t.scales||["radial"],this.config=r(r({},{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}(i(31).default);e.default=c},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(56),a=i(5),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.addScale=function(t,e){"bottom"===t||"top"===t?(this.xScale=e,this._xLocator=(0,a.locator)(this.config.value)):(this.yScale=e,this._yLocator=(0,a.locator)(this.config.valueY))},e.prototype._setDefaults=function(t){this.config=r(r({},{active:!0,tooltip:!0,pointType:"rect"}),t);var e=this.config.pointType,i=this.config.pointColor||this.config.color;e&&(this._drawPointType=this._getPointType(e,i))},e}(s.default);e.default=l},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r=i(0),s=i(84),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype._getForm=function(t,e,i,n,o){var a=e.color,l=e.strokeWidth,c=(0,s.default)(t);return(0,r.sv)("path",{id:"seria"+e.id,d:c,class:i,stroke:a,"stroke-width":l,fill:"none"})},e}(i(56).default);e.default=a},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r=i(0),s=i(84),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype._form=function(t,e,i,n){var o=this.config,a=o.fill,l=o.alpha,c=o.strokeWidth,u=o.color,d=o.id,h=this.config.css,f="",p=this._points[0];if(f=n?"".concat((0,s.default)([].concat(n).reverse())," ").concat((0,s.default)(this._points,!0)," Z"):"M".concat(p[0]," ").concat(e," V ").concat(p[1]," ").concat((0,s.default)(this._points)," V").concat(e," H ").concat(p[0]),c){var v=(0,s.default)(this._points),g=(0,r.sv)("path",{d:v,"stroke-width":c,stroke:u,fill:"none","stroke-linecap":"butt",class:h});i.push(g)}var _=(0,r.sv)("path",{id:"seria"+d,d:f,class:h,fill:a,"fill-opacity":l,stroke:"none"});return i.push(_),i},e}(i(81).default);e.default=a},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(1),a=i(0),l=i(7),c=i(5),u=i(25),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(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(i){var n=t._data.getItem(t._data.getParent(i.id));if(!(n&&n.$hidden&&t._maxLevel>1)){var o=t._valueLocator(i);if(o){var r=t._getSerie(e?i.id:o,e);i.color=r?r.color:i.color,i.$hidden=!!r&&!r.active,!i.$hidden&&o&&(t._sum+=parseFloat(i[t.config.value]))}}})),this._points=[],this._data.eachChild(this._data.getRoot(),(function(i){var n;if(!i.$hidden){var o=t._valueLocator(i),r=t._textLocator(i),s=[];!o&&t._data.haveItems(i.id)&&(o=0,t._data.eachChild(i.id,(function(i){var n;if(!i.$hidden){var r=t._valueLocator(i),a=t._textLocator(i),l=i.color||(null===(n=t._getSerie(e?i.id:r,e))||void 0===n?void 0:n.color);r&&(o+=r),s.push([0,r,i.id,a,l])}}))),i.percent=parseFloat(o)/t._sum;var a=i.color||(null===(n=t._getSerie(e?i.id:o,e))||void 0===n?void 0:n.color);t._points.push([i.percent,o,i.id.toString(),r,a,{items:s}])}}),!1),this._maxLevel=this._getMaxLevel(),this._points},e.prototype.paint=function(t,e){var i=this;if(!!this.config.treeSeries.find((function(t){return t.active}))){var n=this.config.strokeWidth,o=[],l=[],c=[],u=this._maxLevel>1?2*n:n,d=t-u,h=e-u;this._layout={id:(0,s.uid)(),area:d*h,width:d,height:h,restArea:d*h,restWidth:d,restHeight:h,startX:u/2,startY:u/2,stroke:u};var f,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,r){var c,u,d=t[0],h=(t[1],t[2]),f=(t[3],t[4],t[5]);if(0!==d){var g=i._drawBar(t,e,r,i._layout,p,v,!(!f||!(null===(c=f.items)||void 0===c?void 0:c.length))),_=g[0],m=g[1],y=g[2],b=g[3],w=g[4],x=g[5],E=g[6];if(p=x[0],v=x[1],l.push((0,a.sv)("g",{id:h},[_,m,E])),o.push(y),f&&(null===(u=f.items)||void 0===u?void 0:u.length)){var C=x[2]-n,S=x[3]-n,k={id:(0,s.uid)(),parent:i._layout.id,area:C*S,width:C,height:S,restArea:C*S,restWidth:C,restHeight:S,startX:p+n/2,startY:v+n/2+("asc"!==i.config.direction&&E?n/2:0),stroke:n},O=k.startX,P=k.startY;k.width>=k.height?k.cols=[]:k.rows=[],f.items.map((function(e){return e[0]=e[1]/t[1]})),f.items.sort((function(t,e){return e[0]-t[0]})),f.items.forEach((function(t,e,n){var r=t[2],s=i._drawBar(t,e,n,k,O,P,!1),c=s[0],u=s[1],d=s[2],h=s[3],f=s[4];l.push((0,a.sv)("g",{id:r},[c,u])),o.push(d),O=h,P=f}))}p=b,v=w}})),c.push((0,a.sv)("defs",o)),c=c.concat(l),(0,a.sv)("g",r(r({id:"seria"+this.config.id},(f=this.config,{"aria-label":"chart ".concat(f.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,")"):""}),c)}},e.prototype._drawBar=function(t,e,i,n,o,l,u){var d=this,h=t[0],f=t[1],p=t[2],v=t[3],g=t[4],_=this.config,m=_.stroke,y=_.showText,b=_.showTextTemplate,w=h*n.area,x=this._getDeepParent(n),E=u&&h>0&&v,C=n.startX+n.width-x.restWidth,S=n.startY+n.height-x.restHeight;o=o>C?C:o,l=l>S?S:l;var k=this._getBar(x,w,o,l,i,e,n.area),O=k[0],P=k[1],I=k[2],D=k[3],M=k[4];if(!(O[2]<0||O[3]<0)){this._recountParentArea(w,M,n);var T=E?(0,a.sv)("rect",{x:O[0]+n.stroke/4,y:"asc"===this.config.direction?O[1]+O[3]-this._headerHeight-n.stroke/2:O[1]+n.stroke/4,width:O[2]-n.stroke/2,height:this._headerHeight+n.stroke/4,stroke:m,"stroke-width":n.stroke/2,class:"treeMap-header",_key:p,onclick:function(){return d._toggleGroup(p)}}):null,V=E?(0,a.sv)("text",{x:O[0]+O[2]/2,y:"asc"===this.config.direction?O[1]+O[3]-this._headerHeight/2-n.stroke/2:O[1]+this._headerHeight/2+n.stroke/2,class:"header-text","aria-hidden":"true",transform:"asc"===this.config.direction?"rotate(180 ".concat(O[0]+O[2]/2," ").concat(O[1]+O[3]-this._headerHeight/2-n.stroke/2,")"):""},[b?(0,c.verticalCenteredText)(b(null==v?void 0:v.toString())):(0,c.verticalCenteredText)(null==v?void 0:v.toString())]):null,H=u&&h>0&&v?(0,a.sv)("g",{},[T,V]):null,j=b?b(null==v?void 0:v.toString()):null==v?void 0:v.toString(),F=(0,c.getSizesSVGText)(j,{font:"normal 12px Roboto",lineHeight:14})[0]<O[2]-2*n.stroke,R=(0,s.uid)(),A=O[2]>2*n.stroke&&O[3]>2*n.stroke?(0,a.sv)("clipPath",{id:R,"clip-rule":"nonzero"},[(0,a.sv)("rect",{x:O[0]+n.stroke,y:O[1]+n.stroke,width:O[2]-2*n.stroke,height:O[3]-2*n.stroke,fill:"none",stroke:"black"})]):null,L=(0,a.sv)("rect",r(r({},function(t,e,i){return{role:"graphics-symbol","aria-roledescription":"piece of treeMap","aria-label":"".concat(e||"",", ").concat(t," (").concat((0,c.roundToTwoNumAfterPoint)(i),"%)")}}(f,v,h)),{x:O[0],y:O[1],width:O[2],height:O[3],stroke:m,"stroke-width":n.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,i[e][2],this.id],onmouseleave:this._maxLevel>1&&1===this._getDataLevel(p)?"":[this._handlers.onmouseleave,i[e][2],this.id]})),$=y?(0,a.sv)("text",{x:F?P[0]:O[0]+n.stroke,y:P[1],class:"treeMap-inner-value ".concat(F?"":"start-text"),"aria-hidden":"true","clip-path":'url("#'.concat(R,'")'),transform:"asc"===this.config.direction?"rotate(180 ".concat(P[0]," ").concat(P[1],")"):""},[(0,c.verticalCenteredText)(j)]):null;return u&&H&&(O[1]+="asc"===this.config.direction?0:this._headerHeight,O[3]-=this._headerHeight+n.stroke/4),[L,$,A,I,D,O,H]}},e.prototype._getBar=function(t,e,i,n,o,r,a){var l,c,u,d,h,f=this,p=function(t,e,i,n){for(var s={area:0,width:t.width,height:t.height},l=e;l<=i;l++)s.area+=o[l][0]*a;"rows"===n?s.width=s.area/s.height:s.height=s.area/s.width;var c="rows"===n?s.width:t.area/s.height,u="rows"===n?t.area/s.width:s.height;return(c/u>f._aspectRatio||u/c>f._aspectRatio)&&o[r][0]>.01&&i!==f._points.length-1?p(t,e,i+1,n):[c,u,s]},v=i,g=n,_=t.restWidth>t.restHeight?"cols":"rows",m="cols"===_?"rows":"cols",y="cols"===_?e/t.restHeight:t.restWidth,b="cols"===_?t.restHeight:e/t.restWidth;if((b/y>this._aspectRatio||y/b>this._aspectRatio)&&0!==Math.round(e-t.restArea)&&r<o.length-2&&e<t.restArea){var w=void 0;if(h={id:(0,s.uid)(),area:e,width:y,height:b},l=p(h,r,r+1,m),h.width=l[0],h.height=l[1],w=l[2],y=h.width,b=h.height,(c={id:(0,s.uid)(),area:w.area,width:w.width,height:w.height,restArea:w.area,restWidth:"cols"===m?w.width-y:w.width,restHeight:"cols"===m?w.height:w.height-b})[m]=[h],w=c,h.parent=w.id,t[_]||t[m])if(t[m]){var x=(0,s.uid)();t[m].push(((u={id:x,parent:t.id,area:t.restArea,width:t.restWidth,height:t.restHeight,restArea:t.restArea,restWidth:"cols"===_?t.restWidth-w.width:t.restWidth,restHeight:"cols"===_?t.restHeight:t.restHeight-w.height})[_]=[w],u)),w.parent=x}else t[_].push(w),w.parent=t.id;else t[_]=[w],w.parent=t.id;"cols"===_?(t.restWidth-=w.width,g+=b):(t.restHeight-=w.height,v+=y)}else{if(h={id:(0,s.uid)(),area:e,width:y,height:b},t[m]&&t.restArea.toFixed(2)>e.toFixed(2)){x=(0,s.uid)();t[m].push(((d={id:x,parent:t.id,area:t.restArea,width:t.restWidth,height:t.restHeight,restArea:t.restArea,restWidth:"cols"===_?t.restWidth-y:t.restWidth,restHeight:"cols"===_?t.restHeight:t.restHeight-b})[_]=[h],d)),h.parent=x}else(t.cols||t.rows).push(h),h.parent=t.id,"cols"===_?t.restWidth-=y:t.restHeight-=b;"cols"===_?(v+=y,g=0===Math.round(t.restArea-e)?g+b:g):(g+=b,v=0===Math.round(t.restArea-e)?v+y:v)}return[[i,n,h.width,h.height],[i+h.width/2,n+h.height/2],v,g,h.parent]},e.prototype._setDefaults=function(t){this.config=r(r({},{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,c.locator)(t.value),this._textLocator=(0,c.locator)(t.text)},e.prototype._defaultLocator=function(t){return[this._valueLocator(t),this._textLocator(t)]},e.prototype._getSerie=function(t,e){var i=this;return this.config.treeSeries.find((function(n){if(e){var o=i._data.getParent(t);return n.id===o||n.id===t}return n.from&&n.to&&t>=n.from&&t<n.to||n.less&&t<n.less||n.greater&&t>n.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(i){var n=t._getDataLevel(i.id);e=Math.max(n,e)})),e},e.prototype._getDeepParent=function(t){var e,i=null===(e=t.cols||t.rows)||void 0===e?void 0:e.find((function(t){return t.restArea&&Math.round(t.restArea)>0}));return i?this._getDeepParent(i):t},e.prototype._getLayoutObj=function(t,e){var i;if(void 0===e&&(e=this._layout),e.id===t)i=e;else{var n=e.cols||e.rows;if(!n||!n.length)return;for(var o=0;o<n.length&&!(i=this._getLayoutObj(t,n[o]));o++);}return i},e.prototype._recountParentArea=function(t,e,i){var n=this._getLayoutObj(e,i);n&&n.id!==i.parent&&(n.restArea-=t,n.parent&&this._recountParentArea(t,n.parent,i))},e.prototype._toggleGroup=function(t){var e=this,i=0;this.config.treeSeries.forEach((function(t){t.active&&i++})),this._data.eachChild(this._data.getRoot(),(function(n){n.id!==t&&("groupName"===e.config.legendType?(i>1&&(e._getSerie(n.id,!0).active=!0),e._events.fire(u.ChartEvents.toggleSeries,[n.id])):(n.$hidden=!n.$hidden,e._events.fire(l.DataEvents.change)))}),!1)},e}(i(31).default);e.default=d},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0});var a=i(1),l=i(15),c=i(0),u=i(7),d=i(5),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(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,i=this,n=[];this._years=[],this._points=[],this.config.startDate&&(t="string"==typeof this.config.startDate?(0,l.stringToDate)(this.config.startDate,this.config.dateFormat):this.config.startDate),this.config.endDate&&(e="string"==typeof this.config.endDate?(0,l.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(o){var r,s=Number(i._valueLocator(o)),c=i._dateLocator(o);"string"==typeof c&&(c=(0,l.stringToDate)(c,i.config.dateFormat));var u=null==c?void 0:c.getTime(),d=(null===(r=o.id)||void 0===r?void 0:r.toString())||(0,a.uid)();if(t||e){var h=l.DateHelper.dayStart(c).getTime(),f=t&&l.DateHelper.dayStart(t).getTime()||0,p=e&&l.DateHelper.dayStart(e).getTime()||1/0;if(h<f||h>p)return}var v=n.findIndex((function(t){var e=t[0],i=t[1],n=l.DateHelper.isSameDay(new Date(e),c);return n&&(s+=i),n}));v>-1&&(n[v]=[u,s,d]),s&&(i._minValue=!i._minValue||s<i._minValue?s:i._minValue,i._maxValue=!i._maxValue||s>i._maxValue?s:i._maxValue),v<0&&n.push([u,s,d])})),n.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 o=t||new Date(n[0][0]),r=e||new Date(n[n.length-1][0]),s=o.getFullYear(),c=r.getFullYear();if(this.config.startDate||this.config.endDate)if(this.config.startDate&&!this.config.endDate){var d=new Date(o.getFullYear()+1,o.getMonth(),o.getDate()-1);r.getTime()>d.getTime()&&d.setFullYear(r.getFullYear()+1),e=d,c=d.getFullYear()}else!this.config.startDate&&this.config.endDate&&(t=new Date(s,0,1));else c=r.getFullYear(),t=new Date(s,0,1),e=new Date(c,11,31);for(var h=0,f=new Date(t.getTime()),p=new Date(e.getFullYear(),e.getMonth(),e.getDate()+1);!l.DateHelper.isSameDay(f,p);){var v=n.length&&new Date(n[h][0]),g=function(){return f.setDate(f.getDate()+1)};if(n.length)if(h<n.length-1){for(;!l.DateHelper.isSameDay(f,v);)this._points.push([f.getTime(),0,(0,a.uid)()]),g();this._points.push(n[h]),h+=1}else l.DateHelper.isSameDay(f,v)?this._points.push(n[h]):this._points.push([f.getTime(),0,(0,a.uid)()]);else this._points.push([f.getTime(),0,(0,a.uid)()]);g()}for(var _=new Date,m=t.getMonth(),y=t.getDate(),b=0;b<this._points.length;b++)_.setTime(this._points[b][0]),(0===b||m===_.getMonth()&&y===_.getDate()&&b!==this._points.length-1)&&this._years.push({year:_.getFullYear(),startIndex:b});return this._points},e.prototype.paint=function(t,e){var i,n,o=this,a=this.config,u=a.days,d=a.months;switch(this.config.weekStart){case"saturday":i=-1;break;case"monday":i=1;break;default:i=0}switch(this.config.weekStart){case"saturday":n=s([null==u?void 0:u[6]],u.slice(0,-1),!0);break;case"monday":n=s(s([],u.slice(1),!0),[null==u?void 0:u[0]],!1);break;default:n=u}var h=[],f=[],p=0,v=0;this._years.forEach((function(t,e){for(var r,s=t.year,a=t.startIndex,u=new Date(s,0,1),f=[],g=[],_=0,m=1,y=a;y<o._points.length&&y!==(null===(r=o._years[e+1])||void 0===r?void 0:r.startIndex);y++){var b=o._points[y],w=b[0],x=b[1],E=b[2],C=new Date;C.setTime(w);var S=C.getMonth(),k=l.DateHelper.addDay(C,-1*i).getDay();0!==k||l.DateHelper.isSameDay(u,C)||(m+=1);var O=x>=0?x/o._maxValue||0:x/o._minValue||0;o._maxValue*o._minValue>0&&(O=(x-o._minValue)/(o._maxValue-o._minValue));var P=10+m*(o._cellSize+2),I=.5+(k+1)*(o._cellSize+2)+e*(n.length*o._cellSize+o._headerHeight);6===k&&(v=I+4*o._cellSize),f.push((0,c.sv)("rect",{x:P,y:I,fill:o.config.color,width:o._cellSize,height:o._cellSize,onclick:[o._handlers.onclick,x,E],onmousemove:[o._handlers.onmousemove,E,o.id],onmouseleave:[o._handlers.onmouseleave,E,o.id],class:o.config.color?"":"heat-neutral"},[]));var D="";if(x>=0&&!o.config.positiveColor?D="heat-positive":x<0&&!o.config.negativeColor&&(D="heat-negative"),0!==O&&f.push((0,c.sv)("rect",{x:P,y:I,fill:x>=0?o.config.positiveColor:o.config.negativeColor,"fill-opacity":isFinite(O)?O:0,width:o._cellSize,height:o._cellSize,onclick:[o._handlers.onclick,x,E],onmousemove:[o._handlers.onmousemove,E,o.id],onmouseleave:[o._handlers.onmouseleave,E,o.id],class:D},[])),_=P+o._cellSize,1===C.getDate()){var M=null==d?void 0:d[S],T=10+m*(o._cellSize+2),V=o._cellSize-2+e*(n.length*o._cellSize+o._headerHeight)+n.length*(o._cellSize+2)+4.5,H=(0,c.sv)("text",{x:T,y:V+8+12.5,class:"start-text"},[M]),j=(0,c.sv)("rect",{x:T,y:V,height:8,width:1});g.push((0,c.sv)("g",{class:"heat-month-text"},[j,H]))}}var F=n.map((function(t,i){return(0,c.sv)("text",{x:20,y:.5+(i+1)*(o._cellSize+2)+o._cellSize/2+e*(n.length*o._cellSize+o._headerHeight),class:"end-text heat-day-text"},[(0,c.sv)("tspan",{dy:"0.5ex"},[t])])})),R=(0,c.sv)("text",{x:10+o._cellSize+2,y:o._cellSize-4+e*(n.length*o._cellSize+o._headerHeight),class:"start-text heat-year-text"},[s]);h.push((0,c.sv)("g",{id:"".concat(s,"_year")},[R,g,F,f])),p=p>_?p:_}));f.push((0,c.sv)("defs",[])),f=f.concat(h);var g,_=e/v<1?e/v:1,m=(t-p*_)/2;return(0,c.sv)("g",r(r({id:"seria"+this.config.id},(g=this.config,{"aria-label":"chart ".concat(g.text||"")})),{tabindex:0,transform:"translate(".concat(m>0?m:0,", 26) scale(").concat(_,")")}),f)},e.prototype._setDefaults=function(t){this.config=r(r({},{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,d.locator)(t.value),this._dateLocator=(0,d.locator)(t.date)},e.prototype._defaultLocator=function(t){return[this._valueLocator(t),(0,l.getFormattedDate)("%d/%m/%y",this._dateLocator(t))]},e}(i(31).default);e.default=h},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Tooltip=void 0;var n=i(12),o=i(5),r=i(82),s=i(25),a=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="",i=this._chart.getRootView(),o=0,s=0,a=t;s<a.length;s++){var l=a[s];if(o+=l.top,this._prevLine=i&&i.refs&&i.refs["line"+Math.round(l.left)]&&i.refs["line"+Math.round(l.left)].el,this._prevLine.classList.add("grid-line__active"),l.text){var c=this._chart.getSeries(l.seriaId),u=c.getPoints();if(u.length&&c.config.tooltip){var d=c.config.pointColor||(c.config.color&&"none"!==c.config.color?c.config.color:c.config.fill),h=(0,r.getShadeHTMLHelper)("empty"!==c.config.pointType&&c.config.pointType?c.config.pointType:"simpleRect",d);e+='<div class="line-point" _ref="dhx_tooltip_'.concat(c.config.id,'_box">\n\t\t\t\t<svg class="dhx_tooltip_svg" role="graphics-document" style="width: 8px; height: 8px;">').concat(h(4,4,u[0][2]),'</svg>\n\t\t\t\t<span class="dhx_line-point-text" _ref="dhx_tooltip_').concat(c.config.id,'_text">').concat(l.text,"</span>\n\t\t\t</div>")}}}if(e){this._tooltip||this._createTooltip();var f=document.body.offsetHeight,p=document.body.offsetWidth;this._tooltip.innerHTML=e,this._tooltip.classList.add("dhx_chart_tooltip__visible");var v=o/t.length,g=this._prevLine.getBoundingClientRect(),_=this._tooltip.offsetHeight,m=this._tooltip.offsetWidth,y=v-_/2+g.top+window.scrollY,b=g.left+10;y+_>f&&(y-=y+_-f),b+m>p&&(b=g.left-m-10);var w=(0,n.getZIndex)(this._chart.getRootNode());w&&(this._tooltip.style.zIndex=w.toString()),this._tooltip.style.left=b+"px",this._tooltip.style.top=y+"px"}},t.prototype._showTooltip=function(t,e){this._tooltip||this._createTooltip();var i=document.body.offsetHeight,o=document.body.offsetWidth;this._tooltip.innerHTML=t,this._tooltip.classList.add("dhx_chart_tooltip__visible");var r=this._tooltip.offsetHeight,s=this._tooltip.offsetWidth,a=e.pageY+10,l=e.pageX+10;a+r>i&&(a=e.pageY-r),l+s>o&&(l=e.pageX-s-10);var c=(0,n.getZIndex)(this._chart.getRootNode());c&&(this._tooltip.style.zIndex=c.toString()),this._tooltip.style.left=l+"px",this._tooltip.style.top=a+"px"},t.prototype._showTooltipOnClosest=function(t){this._tooltip||this._createTooltip();var e=this._chart.getSeries(t[4]);if(e){var i=e.getTooltipText(t[3]);if(!i)return;var o=this._chart._layers.getSizes(),r=this._chart.getRootNode().getBoundingClientRect();this._tooltip.innerHTML=i,this._tooltip.classList.add("dhx_chart_tooltip__visible");var s=document.body.offsetHeight,a=this._tooltip.offsetHeight,l=t[2]+r.top+a/2+o.top-("radar"===this._chart.config.type?10:15);l+a>s&&(l=t[2]+r.top-a/2+o.top-("radar"===this._chart.config.type?10:15)),l+a>s&&this._tooltip.classList.remove("dhx_chart_tooltip__visible");var c=(0,n.getZIndex)(this._chart.getRootNode());c&&(this._tooltip.style.zIndex=c.toString()),this._tooltip.style.left=r.left+t[1]+10+"px",this._tooltip.style.top=l+"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(s.ChartEvents.chartMouseMove,(function(e,i){if(t._prevLine&&t._prevLine.classList.remove("grid-line__active"),!t._mouseOverBar){var n=[],o=[1/0,null,null,null,null];t._chart.eachSeries((function(t){var r=t.config.type;if("line"===r||"spline"===r||"splineArea"===r||"area"===r){var s=t.getClosestVertical(e),a={value:s[4],text:t.getTooltipText(s[3]),seriaId:t.config.id,left:s[1],top:s[2]};"number"==typeof a.left&&"number"==typeof a.top&&n.push(a)}else if("pie"===r||"pie3D"===r||"donut"===r||"radar"===r){var l=t.getClosest(e,i);o[0]>l[0]&&(o[0]=l[0],o[1]=l[1],o[2]=l[2],o[3]=l[3],o[4]=t.id)}})),n.length?(n.sort((function(t,e){return e.value-t.value})),t._showLineTooltip(n)):t._showTooltipOnClosest(o)}})),this._chart.events.on(s.ChartEvents.seriaMouseMove,(function(e,i,n){t._mouseOverBar=!0;var r=t._chart.getRootView(),s=t._chart.getSeries(i),a=s.getTooltipText(e),l=r&&r.refs&&r.refs[(0,o.calcPointRef)(e,i)].el;null==l||l.setAttribute("fill-opacity",s.config.alpha>.6?s.config.alpha-.4:1),a?t._showTooltip(a,n):t._tooltip&&t._tooltip.classList.remove("dhx_chart_tooltip__visible")})),this._chart.events.on(s.ChartEvents.seriaMouseLeave,(function(e,i){t._mouseOverBar=!1;var n=t._chart.getRootView(),r=t._chart.getSeries(i);if("area"!==r.config.type&&"treeMap"!==r.config.type&&"calendarHeatMap"!==r.config.type){var s=n&&n.refs&&n.refs[(0,o.calcPointRef)(e,i)].el;null==s||s.setAttribute("fill-opacity",r.config.alpha)}t._tooltip&&t._tooltip.classList.remove("dhx_chart_tooltip__visible")})),this._chart.events.on(s.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=a},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Exporter=void 0;var o=i(3),r=function(){function t(t,e){this._name=t,this._view=e,this._version="8.4.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,i){var r;if(void 0===t&&(t={}),t.url=t.url||"https://export.dhtmlx.com/"+this._name+"/"+e+"/"+this._version,"pdf"===e){var s=t.pdf||{};t.pdf=n(n({},s),{printBackground:!1})}var a="",l=i.config.exportStyles;("boolean"==typeof t.exportStyles||Array.isArray(t.exportStyles))&&(l=t.exportStyles),!0===l?a="".concat((0,o.getPageLinksCss)(),"<style>").concat((0,o.getPageInlineCss)(),"</style>"):(null==l?void 0:l.length)&&(a="".concat((0,o.getPageLinksCss)(l)));var c=document.createElement("div");c.setAttribute("style","display: none;");var u=i.getRootView().node.el.cloneNode(!0);u.setAttribute("data-dhx-theme",t.theme||"light"),c.appendChild(u);var d="\n\t\t\t".concat(a,"\n\t\t\t").concat(c.innerHTML,"\n\t\t"),h=document.createElement("form");h.setAttribute("method","POST"),h.setAttribute("action",t.url),h.innerHTML='<input type="hidden" name="raw"><input type="hidden" name="config">',h.childNodes[0].value=d,h.childNodes[1].value=JSON.stringify(t),document.body.appendChild(h),h.submit(),null===(r=c.parentNode)||void 0===r||r.removeChild(c),setTimeout((function(){var t;null===(t=h.parentNode)||void 0===t||t.removeChild(h)}),100)},t}();e.Exporter=r},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ProChart=void 0;var s=i(85),a=i(80),l=i(1),c=i(5),u=i(78),d=function(t){function e(e,i){return void 0===i&&(i={}),t.call(this,e,i)||this}return o(e,t),e.prototype.setConfig=function(t){var e,i,n,o,d,h,f=this;if(this.config=t,this._layers.clear(),this._series={},this._scales={},t.scales)for(var p in t.scales){var v=r({},t.scales[p]);void 0!==t.scales[p].min&&(h=t.scales[p].min),v.type=v.type||this._detectScaleType(v,p),t.scales.radial&&"radial"!==p&&(v.hidden=!0),this._setScale(v,p)}var g=new s.default;if(this._layers.add(g),null===(e=t.series)||void 0===e||e.forEach((function(e,i){var n,o,s,u;void 0!==e.baseLine&&e.baseLine<h&&(e.baseLine=void 0);var d=r({},e);switch(d.type=d.type||t.type,d.type){case"bar":case"xbar":case"area":case"splineArea":d.color||(d.color=d.fill||(0,c.getDefaultColor)(i)),d.fill||(d.fill=d.color||(0,c.getDefaultColor)(i));break;case"treeMap":d.legendType=(null===(n=t.legend)||void 0===n?void 0:n.type)||"groupName",null===(s=null===(o=t.legend)||void 0===o?void 0:o.treeSeries)||void 0===s||s.map((function(t,e){var i,n;t.active=null===(i=t.active)||void 0===i||i,t.id=null!==(n=t.id)&&void 0!==n?n:(0,l.uid)(),t.color||(t.color=(0,c.getDefaultColor)(e,"range"===d.legendType))})),d.treeSeries=null===(u=t.legend)||void 0===u?void 0:u.treeSeries;break;case"calendarHeatMap":d.dateFormat||(d.dateFormat="%d/%m/%y");break;case"scatter":d.pointColor||(d.pointColor=d.color||(0,c.getDefaultColor)(i))}var p=a.default[d.type];(d.barWidth||f.config.barWidth)&&(d.barWidth=d.barWidth||f.config.barWidth);var v=new p(f.data,d,f.events),_=(0,c.getScales)(t.scales);(_.length>1&&"radial"!==_[0]||"radial"===_[0]?_:["bottom","left"]).forEach((function(t){var e=f._scales[t];e&&(v.addScale(t,e),d.stacked?e.add(g):e.add(v))})),f._series[v.id]=v,d.stacked?g.add(v):f._layers.add(v)})),t.legend){var _=r({},t.legend);if(_.series&&(_.$seriesInfo=_.series.map((function(t){return f._series[t]}))),"calendarHeatMap"===this.config.type){var m=null===(n=null===(i=this.config)||void 0===i?void 0:i.series)||void 0===n?void 0:n[0],y=m.value,b=m.positiveColor,w=m.negativeColor,x=m.color,E=m.minValue,C=m.maxValue;if(_.type="scale",_.form="line",_.values){var S=null===(d=null===(o=this.config)||void 0===o?void 0:o.series)||void 0===d?void 0:d[0],k=S.color,O=S.value;_.values=r(r({},_.values),{color:k,positiveColor:b,negativeColor:w,value:O,minValue:E,maxValue:C})}else _.values={positiveColor:b,negativeColor:w,color:x,text:"",value:y,minValue:E,maxValue:C}}var P=new u.Legend(this.data,_,this.events);this._layers.add(P)}this.paint()},e}(i(77).Chart);e.ProChart=d},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KEY_CODES=void 0,e.KEY_CODES={BACKSPACE:8,ENTER:13,ESC:27,DOWN_ARROW:40,UP_ARROW:38,LEFT_ARROW:37,RIGHT_ARROW:39}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeyListener=void 0;var n=function(){function t(){var t=this;this._handler=function(e){if(t._isActive){var i=e.key;"Backspace"===i&&t._sequence.length>0&&(t._sequence=t._sequence.slice(0,t._sequence.length-1),t._change()),i.length<2&&(t._sequence+=i,t._change())}},this._sequence="",document.addEventListener("keydown",this._handler)}return t.prototype.startNewListen=function(t){this._isActive=!0,this._sequence="",this._currentAction=t},t.prototype.endListen=function(){this._currentAction=null,this.reset(),this._isActive=!1},t.prototype.reset=function(){this._sequence=""},t.prototype.destructor=function(){document.removeEventListener("keydown",this._handler)},t.prototype._change=function(){this._currentAction(this._sequence),this._addClearTimeout()},t.prototype._addClearTimeout=function(){var t=this;this._clearTimeout&&clearTimeout(this._clearTimeout),this._clearTimeout=setTimeout((function(){t.reset(),t._clearTimeout=null}),2e3)},t}();e.KeyListener=n},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.ProCombobox=void 0;var r=i(86),s=i(37),a=i(11),l=i(87),c=function(t){function e(e,i){return t.call(this,e,i)||this}return o(e,t),e.prototype._createLayout=function(){var t=this.list=new s.ProList(null,{$template:r.$template,template:this.config.template,htmlEnable:this.config.htmlEnable,virtual:this.config.virtual,keyNavigation:!0,multiselection:this.config.multiselection,itemHeight:this.config.itemHeight,height:this.config.listHeight,data:this.data,eventHandlers:this.config.eventHandlers}),e=this._layout=new a.ProLayout(this.popup.getContainer(),{css:"dhx_combobox-options dhx_combobox__options",rows:[{id:"select-unselect-all",hidden:!this.config.multiselection||!this.config.selectAllButton},{id:"list",height:"content"},{id:"not-found",hidden:!0}],on:{click:{".dhx_combobox__action-select-all":this._handlers.selectAll,".dhx_combobox-options__action-create-option":this._handlers.addOption}}});e.getCell("list").attach(t),this.config.multiselection&&this.config.selectAllButton&&e.getCell("select-unselect-all").attach(l.selectAllView)},e}(r.Combobox);e.ProCombobox=c},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(89),e),o(i(193),e),o(i(90),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEditor=void 0;var n=i(192);e.getEditor=function(t,e){return new n.InputEditor(t,e)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InputEditor=void 0;var n=i(0),o=i(90),r=function(){function t(t,e){var i=this;this._dataView=e,this._config=e.config,this._item=t,this._dataView.events.on(o.DataViewEvents.focusChange,(function(t,e){i._mode&&e!==i._item.id&&i.endEdit()})),this._initHandlers()}return t.prototype.endEdit=function(){if(this._input){var t=this._input.value;this._dataView.events.fire(o.DataViewEvents.beforeEditEnd,[t,this._item.id])?(this._input.removeEventListener("blur",this._handlers.onBlur),this._input.removeEventListener("change",this._handlers.onChange),this._input.removeEventListener("keydown",this._handlers.onKeyDown),this._handlers={},this._mode=!1,this._dataView.events.fire(o.DataViewEvents.afterEditEnd,[t,this._item.id])):this._input.focus()}},t.prototype.toHTML=function(t){this._mode=!0;var e=this._config,i=e.itemsInRow,o=e.gap,r=function(t){return parseFloat(t)};return(0,n.el)(".dhx_input__wrapper",{style:{width:"calc(".concat(100/i,"% - ").concat(r(o)," * ").concat((i-1)/i,"px)"),maxWidth:"calc(".concat(100/i,"% - ").concat(r(o)," * ").concat((i-1)/i,"px)"),marginRight:t?"":o},role:"presentation"},[(0,n.el)("div.dhx_input__container",{style:{height:"100%"},role:"presentation"},[(0,n.el)("input.dhx_input",{class:(this._item.css?" "+this._item.css:"")+(t?" dhx_dataview-item--last-item-in-row":""),style:{padding:"8px, 12px",width:"100%",height:"100%"},_hooks:{didInsert:this._handlers.didInsert},_key:this._item.id,"data-dhx-id":this._item.id})])])},t.prototype._initHandlers=function(){var t=this;this._handlers={onBlur:function(){t.endEdit()},onChange:function(){t.endEdit()},onKeyDown:function(e){"Enter"===e.key&&t._item.value===t._input.value&&t.endEdit(),"Escape"===e.key&&(t._input.value=t._item.value,t.endEdit())},didInsert:function(e){var i=e.el;t._input=i,i.focus(),i.value=t._item.value,i.setSelectionRange(0,i.value.length),i.addEventListener("change",t._handlers.onChange),i.addEventListener("blur",t._handlers.onBlur),i.addEventListener("keydown",t._handlers.onKeyDown)}}},t}();e.InputEditor=r},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ProDataView=void 0;var s=i(19),a=i(89),l=i(0),c=function(t){function e(e,i){void 0===i&&(i={});var n=t.call(this,e,i)||this;return n.scrollView=new s.ScrollView((function(){return n.getRootView()})),n.paint(),n}return o(e,t),e.prototype.destructor=function(){t.prototype.destructor.call(this),this.scrollView=null},e.prototype.scrollTo=function(t){var e,i,n=this.getRootView();if(n&&n.node&&n.node.el&&void 0!==t){var o=(null===(e=this.scrollView)||void 0===e?void 0:e.config.enable)?null===(i=this.getRootNode())||void 0===i?void 0:i.querySelector(".scroll-view"):this.getRootNode();this._scrollTo(t,o)}},e.prototype._renderList=function(){var t=this,e=this.data.getRawData(0,-1),i=this.config,n=i.itemsInRow,o=i.css,s=i.gap,a=0,c=e.reduce((function(e,i,o){return 0===a&&e.push([]),e[e.length-1].push(t._renderItem(i,o)),a=(a+1)%n,e}),[]),u=c.map((function(t,e){return(0,l.el)(".dhx_dataview-row",{style:{margin:s},"aria-label":"Row ".concat(e+1)},t)})),d=this.scrollView&&this.scrollView.config.enable,h=(o||"")+" dhx_widget dhx_dataview"+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":"")+(d?" dhx_dataview--scroll-view":"");return(0,l.el)("",r(r(r({},this._handlers),{"data-dhx-widget-id":this._uid,class:h,style:{height:this.config.height}}),this.getDataViewAriaAttrs(this.config,this.data.getLength(),c.length,n)),d?[this.scrollView.render(u)]:u)},e}(a.DataView);e.ProDataView=c},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(91),e),o(i(211),e),o(i(4),e)},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.DatePicker=void 0;var s=i(36),a=i(15),l=i(2),c=i(0),u=i(1),d=i(10),h=i(13),f=i(4),p=i(6),v=i(14),g=function(t){function e(e,i){var n=t.call(this,null,i)||this;n.events=new l.EventSystem,n._popupIsFocus=!1,n._propsItem=["required","validation","valueFormat","icon","placeholder","editable","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage"],n._propsCalendar=["mode","mark","disabledDates","weekStart","weekNumbers","timePicker","dateFormat","timeFormat","thisMonthOnly"],n._props=r(r(r([],p.baseProps,!0),n._propsItem,!0),n._propsCalendar,!0),n._keyManager=new v.KeyManager((function(){var t,e,i,o=document.activeElement;return(null===(i=null===(e=null===(t=n.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.input)||void 0===i?void 0:i.el)===o||n._popup.isVisible()})),n._initView(i),n._initHandlers(),n._initHotkeys();return n.mount(e,(0,c.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype.destructor=function(){this._popup&&this._popup.destructor(),this._keyManager&&this._keyManager.destructor(),this.calendar&&this.calendar.destructor(),this.events&&this.events.clear(),this.events=this._uid=this._propsCalendar=this._propsItem=this._props=this._keyManager=null,t.prototype._destructor.call(this)},e.prototype.setProperties=function(t){if(t&&!(0,u.isEmptyObj)(t)&&this.events.fire(f.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e],this._propsCalendar.includes(e)&&(this.calendar.config[e]=t[e]));this.events.fire(f.ItemEvent.afterChangeProperties,[this.getProperties()]),this.calendar.paint(),this.paint()}},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype.show=function(){var t=this.config,e=t.value;t.hidden&&this.events.fire(f.ItemEvent.beforeShow,[e])&&(this.config.hidden=!1,this.events.fire(f.ItemEvent.afterShow,[e]))},e.prototype.hide=function(t){var e=this.config,i=e.value;e.hidden&&!t||!this.events.fire(f.ItemEvent.beforeHide,[i,t])||(this.config.hidden=!0,this.events.fire(f.ItemEvent.afterHide,[i,t]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype.disable=function(){this.config.disabled=!0,this.paint()},e.prototype.enable=function(){var t;this.config.disabled=!1,(null===(t=this.parent)||void 0===t?void 0:t.isDisabled())&&this.parent.enable(),this.paint()},e.prototype.isDisabled=function(){return!!this.config.disabled},e.prototype.validate=function(t){var e;void 0===t&&(t=!1);for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];var o=i.length?i[0]:this.getValue(),r="date"===(null===(e=this.config.valueFormat)||void 0===e?void 0:e.toLowerCase())?o instanceof Date:(0,a.stringToDate)(o,this.calendar.config.dateFormat,!0);if(!t&&!this.events.fire(f.ItemEvent.beforeValidate,[o]))return!1;var s=!0;return(this.config.required||i.length)&&(s=!!r),"function"==typeof this.config.validation&&(s=this.config.validation(o)),t||(this.setValidationStatus(s?"success":"error"),this.events.fire(f.ItemEvent.afterValidate,[o,s]),this.paint()),s},e.prototype.clearValidate=function(){this.setValidationStatus(),this.paint()},e.prototype.setValue=function(t){void 0!==t&&t!==this.config.value&&this.calendar.setValue(t)},e.prototype.getValue=function(t){var e;return this.calendar.getValue("date"===(null===(e=this.config.valueFormat)||void 0===e?void 0:e.toLowerCase())||t)||""},e.prototype.focus=function(){var t=this;(0,c.awaitRedraw)().then((function(){t.getRootView().refs.input.el.focus()}))},e.prototype.blur=function(){var t=this;(0,c.awaitRedraw)().then((function(){t._popup.hide(),t.getRootView().refs.input.el.blur()}))},e.prototype.clear=function(){""!==this.config.value&&this.calendar.clear()},e.prototype.getWidget=function(){return this.calendar},e.prototype._initView=function(t){if((0,u.isEmptyObj)(t))throw new Error("Check the configuration is correct");for(var e in this.calendar&&this.calendar.destructor(),this._popup&&this._popup.destructor(),this.config={type:t.type,id:t.id,name:t.name,disabled:!1,editable:!1,hidden:!1,value:"",mode:"calendar",weekStart:"sunday",weekNumbers:!1,timePicker:!1,dateFormat:"%d/%m/%y",timeFormat:24,thisMonthOnly:!1,valueFormat:"string",required:!1,icon:"",placeholder:"",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t)"id"!==e&&"type"!==e&&"name"!==e&&(this.config[e]=t[e]);this._popup=new h.Popup,this.calendar=new s.Calendar(null,(0,p.widgetConfig)(t)),this._popup.attach(this.calendar)},e.prototype._initHandlers=function(){var t=this;this.calendar.events.on(s.CalendarEvents.beforeChange,(function(e){var i;return""!==e&&"date"!==(null===(i=t.config.valueFormat)||void 0===i?void 0:i.toLowerCase())&&(e=(0,a.getFormattedDate)(t.calendar.config.dateFormat,e)),t.events.fire(f.ItemEvent.beforeChange,[e])})),this.calendar.events.on(s.CalendarEvents.change,(function(e,i,n,o){var r;t.config.value=t.calendar.getValue("date"===(null===(r=t.config.valueFormat)||void 0===r?void 0:r.toLowerCase())),t.events.fire(f.ItemEvent.change,[t.config.value]),(0,p.isVerify)(t.config)&&("clear"===o?t.setValidationStatus(t.validate(!0)?"success":"error"):t.validate()),t._popup.hide(),t.paint()})),this.events.on(f.ItemEvent.blur,(function(){t._popupIsFocus=!1,t.paint()})),this._popup.events.on(h.PopupEvents.afterHide,(function(){document.activeElement!==t.getRootView().refs.input.el&&t.events.fire(f.ItemEvent.blur,[t.getValue()]),t.paint()}))},e.prototype._getHandlers=function(){var t=this;return{onblur:function(){t._popup.isVisible()||t.events.fire(f.ItemEvent.blur,[t.getValue()]),t.paint()},onfocus:function(){if(!t._popup.isVisible()){var e=t.getRootView().refs.input.el;t._popup.show(e,{theme:e}),t.events.fire(f.ItemEvent.focus,[t.getValue()]),t.paint()}},oninput:function(e){var i=e.target.value;t.events.fire(f.ItemEvent.input,[i])},onchange:function(e){var i=e.target.value;t.config.editable&&(0,a.stringToDate)(i,t.calendar.config.dateFormat,!0)?t.setValue(i):""===i&&t.clear()},onkeydown:function(e){var i,n,o,r=document.activeElement;((null===(o=null===(n=null===(i=t.getRootView())||void 0===i?void 0:i.refs)||void 0===n?void 0:n.input)||void 0===o?void 0:o.el)===r||t._popup.isVisible())&&t.events.fire(f.ItemEvent.keydown,[e])},onmousedown:function(){t._popup.getContainer()!==document.activeElement&&(t._popupIsFocus=!1)}}},e.prototype._initHotkeys=function(){var t=this,e={"shift+tab":function(){t._applyTab()},tab:function(){t._applyTab()},escape:function(){t._popup.isVisible()&&t.getRootView().refs.input.el.focus(),t._popup.hide()},enter:function(e){if(e.preventDefault(),!t._popup.isVisible()){var i=t.getRootView().refs.input.el;t._popup.show(i,{theme:i})}},arrowRight:function(e){var i=t._popup.getContainer();t._popup.isVisible()&&!t._popupIsFocus&&(e.preventDefault(),i.focus(),t._popupIsFocus=!0)}};for(var i in e)this._keyManager.addHotKey(i,e[i])},e.prototype._draw=function(){var t,e,i,n=this.config,o=n.icon,r=n.required,s=n.disabled,a=n.placeholder,l=n.name,u=n.id,d=n.editable,h=n.label,f=n.helpMessage,v=this.calendar.getValue(),g=this._popup.isVisible()||(null===(i=null===(e=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.input)||void 0===i?void 0:i.el)===document.activeElement;return(0,c.el)("div.dhx_form-group",{class:(0,p.getFormItemCss)(this.config,(0,p.isVerify)(this.config),g)},[this._drawLabel(),(0,c.el)(".dhx_input__wrapper",[(0,c.el)("div.dhx_input__container",{},[(0,c.el)(".dhx_input__icon",{class:o||"dxi dxi-calendar-today"}),(0,c.el)("input.dhx_input.dhx_input--icon-padding",{tabindex:0,"data-dhx-id":l||u,_key:this._uid,_ref:"input",value:v,type:"text",required:r,disabled:s,class:g&&"dhx_input--focus",placeholder:a||"",name:l||"",id:u||this._uid,onfocus:this._handlers.onfocus,oninput:this._handlers.oninput,onchange:this._handlers.onchange,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,onmousedown:this._handlers.onmousedown,autocomplete:"off",readOnly:!d,"aria-label":h||"".concat(d?"type or":""," select date"),"aria-describedby":f?"dhx_label__help_".concat(u||this._uid):null})]),(0,p.getValidationMessage)(this.config)&&(0,c.el)("span.dhx_input__caption",{},(0,p.getValidationMessage)(this.config))])])},e.prototype._applyTab=function(){var t,e,i;document.activeElement===(null===(i=null===(e=null===(t=this._popup.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.content)||void 0===i?void 0:i.el)||this._popupIsFocus||this._popup.hide()},e}(d.Label);e.DatePicker=g},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Button=void 0;var a=i(0),l=i(9),c=i(4),u=i(2),d=i(1),h=i(6),f=function(t){function e(e,i){var n=t.call(this,e,r({disabled:!1,hidden:!1,submit:!1,full:!1,circle:!1,loading:!1,view:"flat",size:"medium",color:"primary",height:"content",url:"",text:"",icon:""},i))||this;n._propsItem=["submit","url","text","icon","view","size","color","full","circle","loading"],n._props=s(s([],h.baseProps,!0),n._propsItem,!0),n.config.text=n.config.text||n.config.value||"",n.events=new u.EventSystem,n._handlers={onclick:function(t){return n.events.fire(c.ItemEvent.click,[t])},onblur:function(){return n.events.fire(c.ItemEvent.blur,[n.config.text])},onfocus:function(){return n.events.fire(c.ItemEvent.focus,[n.config.text])},onkeydown:function(t){return n.events.fire(c.ItemEvent.keydown,[t])}};return n.mount(e,(0,a.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype.destructor=function(){this.events&&this.events.clear(),this.config=this._propsItem=this._props=this.events=this._handlers=this._uid=null,this.unmount()},e.prototype.setProperties=function(t){if(t&&!(0,d.isEmptyObj)(t)&&this.events.fire(c.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.config.text=this.config.text||this.config.value,this.events.fire(c.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype.show=function(){var t=this.config,e=t.text,i=void 0===e?"":e;t.hidden&&this.events.fire(c.ItemEvent.beforeShow,[i])&&(this.config.hidden=!1,this.events.fire(c.ItemEvent.afterShow,[i]))},e.prototype.hide=function(t){void 0===t&&(t=!1);var e=this.config,i=e.text,n=void 0===i?"":i;e.hidden&&!t||!this.events.fire(c.ItemEvent.beforeHide,[n,t])||(this.config.hidden=!0,this.events.fire(c.ItemEvent.afterHide,[n,t]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype.disable=function(){this.config.disabled=!0,this.paint()},e.prototype.enable=function(){var t;this.config.disabled=!1,(null===(t=this.parent)||void 0===t?void 0:t.isDisabled())&&this.parent.enable(),this.paint()},e.prototype.isDisabled=function(){return!!this.config.disabled},e.prototype.focus=function(){var t=this;(0,a.awaitRedraw)().then((function(){t.getRootView().refs.button.el.focus()}))},e.prototype.blur=function(){var t=this;(0,a.awaitRedraw)().then((function(){t.getRootView().refs.button.el.blur()}))},e.prototype._draw=function(){var t=this.config,e=t.color,i=t.size,n=t.view,o=t.loading,r=t.circle,s=t.icon,l=t.text,c=t.disabled,u=t.submit,d=t.id,h=t.name,f=t.full,p={danger:" dhx_button--color_danger",secondary:" dhx_button--color_secondary",primary:" dhx_button--color_primary",success:" dhx_button--color_success"}[e]||" dhx_button--color_primary",v={small:" dhx_button--size_small",medium:" dhx_button--size_medium"}[i]||" dhx_button--size_medium",g={flat:" dhx_button--view_flat",link:" dhx_button--view_link"}[n]||" dhx_button--view_flat",_=f?" dhx_button--width_full":"",m=r?" dhx_button--circle":"",y=o?" dhx_button--loading":"",b=s&&!l?" dhx_button--icon":"";return(0,a.el)("button",{disabled:c,id:d,"data-dhx-id":h||d,onclick:this._handlers.onclick,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,type:u?"submit":"button",class:"dhx_button "+p+v+g+m+_+y+b,_ref:"button"},[s&&(0,a.el)("span.dhx_button__icon",{class:s}),l&&(0,a.el)("span.dhx_button__text",l),o&&(0,a.el)("span.dhx_button__loading",[(0,a.el)("span.dhx_button__loading-icon.dxi.dxi-loading")])])},e}(l.View);e.Button=f},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.CheckboxGroup=void 0;var a=i(0),l=i(11),c=i(2),u=i(92),d=i(10),h=i(4),f=i(1),p=i(6),v=i(13),g=function(t){function e(e,i){var n=t.call(this,null,i)||this;n.events=new c.EventSystem,n._buttons=[],n._propsItem=["required","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage","options"],n._props=s(s([],p.baseProps,!0),n._propsItem,!0),n._initView(i),n._initHandlers();return n.mount(e,(0,a.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype.destructor=function(){this.events&&this.events.clear(),this.layout&&this.layout.destructor(),this.events=this._uid=this._propsItem=this._props=this._buttons=null,t.prototype._destructor.call(this),this.unmount()},e.prototype.setProperties=function(t,e){if(void 0!==t&&this.events.fire(h.ItemEvent.beforeChangeProperties,[this.getProperties()])){if("object"==typeof t&&!(0,f.isEmptyObj)(t)){for(var i in t)this._props.includes(i)&&(this.config[i]=t[i]);t.hasOwnProperty("options")&&(this._initView(this.config),this._initHandlers())}if("string"==typeof t&&e&&!(0,f.isEmptyObj)(e)){var n=this._buttons.find((function(e){return e.config.id===t}));n&&n.setProperties(e,!0)}this.events.fire(h.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},e.prototype.getProperties=function(t){if(void 0===t){var e={};for(var i in this.config)this._props.includes(i)&&(e[i]=this.config[i]);return e}return this._buttons.find((function(e){return e.config.id===t})).getProperties()},e.prototype.getValue=function(t){if(void 0===t){var e={};return this._buttons.forEach((function(t){e[t.config.id]=t.getValue()})),e}var i=this._buttons.find((function(e){return e.config.id===t}));if(t&&i)return i.getValue()},e.prototype.setValue=function(t){if(void 0!==t&&!(0,f.isEmptyObj)(t)){for(var e=this.getValue(),i=r({},e),n=function(t,e){var n=o._buttons.find((function(e){return e.config.id===t}));if(n){var r=n.config.value;i[t]="string"==typeof r?e&&r||"":!!e}},o=this,s=0,a=Object.entries(t);s<a.length;s++){var l=a[s];n(l[0],l[1])}if(!(0,f.compare)(e,i)&&this.events.fire(h.ItemEvent.beforeChange,[i])){for(var c=function(t,e){var i=u._buttons.find((function(e){return e.config.id===t}));i&&i.setValue(!!e,!0)},u=this,d=0,v=Object.entries(t);d<v.length;d++){var g=v[d];c(g[0],g[1])}this.events.fire(h.ItemEvent.change,[this.getValue()]),(0,p.isVerify)(this.config)&&this.validate()}}},e.prototype.isChecked=function(t){if(void 0===t){var e={};return this._buttons.forEach((function(t){e[t.config.id]=t.isChecked()})),e}var i=this._buttons.find((function(e){return e.config.id===t}));if(t&&i)return i.isChecked()},e.prototype.focus=function(t){var e=this;(0,a.awaitRedraw)().then((function(){if(e._buttons.length){if(!t)return e._buttons[0].focus();var i=e._buttons.find((function(e){return e.config.id===t}));i&&i.focus()}}))},e.prototype.blur=function(){var t=this;(0,a.awaitRedraw)().then((function(){t._buttons.length&&t._buttons.forEach((function(t){t.blur()}))}))},e.prototype.show=function(t){var e,i=t&&this._buttons.find((function(e){return e.config.id===t}));(0,f.isDefined)(t)&&!i||(!i&&(this.config.hidden||this._buttons.some((function(t){return t.config.hidden})))||(null===(e=null==i?void 0:i.config)||void 0===e?void 0:e.hidden))&&this.events.fire(h.ItemEvent.beforeShow,[this.getValue(),t])&&(i?null==i||i.show():this._buttons.forEach((function(t){return t.show()})),this.config.hidden=!1,this.events.fire(h.ItemEvent.afterShow,[this.getValue(),t]))},e.prototype.hide=function(t,e){var i,n=t&&this._buttons.find((function(e){return e.config.id===t}));(0,f.isDefined)(t)&&!n||((!n&&this.config.hidden||(null===(i=null==n?void 0:n.config)||void 0===i?void 0:i.hidden))&&!e||!this.events.fire(h.ItemEvent.beforeHide,[this.getValue(),t,e])||(n?(null==n||n.hide(),this.config.hidden=this._buttons.every((function(t){return t.config.hidden}))):(this._buttons.forEach((function(t){return t.hide()})),this.config.hidden=!0),this.events.fire(h.ItemEvent.afterHide,[this.getValue(),t,e])))},e.prototype.isVisible=function(t){var e,i=this._buttons.find((function(e){return e.config.id===t}));return!(this.config.hidden||(0,f.isDefined)(t)&&(null===(e=null==i?void 0:i.config)||void 0===e?void 0:e.hidden))},e.prototype.enable=function(t){var e,i,n=t&&this._buttons.find((function(e){return e.config.id===t}));(0,f.isDefined)(t)&&!n||(!n&&(this.config.disabled||this._buttons.some((function(t){return t.config.disabled})))||(null===(e=null==n?void 0:n.config)||void 0===e?void 0:e.disabled))&&(n?null==n||n.enable():this._buttons.forEach((function(t){return t.enable()})),this.config.disabled=!1,(null===(i=this.parent)||void 0===i?void 0:i.isDisabled())&&this.parent.enable(),this.paint())},e.prototype.disable=function(t,e){var i,n=t&&this._buttons.find((function(e){return e.config.id===t}));(0,f.isDefined)(t)&&!n||((!n&&this.config.disabled||(null===(i=null==n?void 0:n.config)||void 0===i?void 0:i.disabled))&&!e||(n?(null==n||n.disable(),this.config.disabled=this._buttons.every((function(t){return t.config.disabled}))):(this._buttons.forEach((function(t){return t.disable()})),this.config.disabled=!0),this.paint()))},e.prototype.isDisabled=function(t){var e,i=this._buttons.find((function(e){return e.config.id===t}));return Boolean(this.config.disabled||(0,f.isDefined)(t)&&(null===(e=null==i?void 0:i.config)||void 0===e?void 0:e.disabled))},e.prototype.clear=function(){if(this._buttons.some((function(t){return t.isChecked()}))){var t={};if(this._buttons.forEach((function(e){t[e.config.id]="string"==typeof e.config.value&&""})),!this.events.fire(h.ItemEvent.beforeChange,[t]))return;this._buttons.forEach((function(t){t.clear(!0)})),this.events.fire(h.ItemEvent.change,[t]),(0,p.isVerify)(this.config)&&this.setValidationStatus(this.validate(!0)?"success":"error")}},e.prototype.validate=function(t){void 0===t&&(t=!1);var e=this.getValue();if(!t&&!this.events.fire(h.ItemEvent.beforeValidate,[e]))return!1;var i=!0;return this.config.required&&(i=this._buttons.some((function(t){return t.config.$required&&!!t.config.checked}))),t||(this._buttons.forEach((function(t){t.setValidationStatus(i?"success":"error")})),this.setValidationStatus(i?"success":"error"),this.events.fire(h.ItemEvent.afterValidate,[e,i]),this.paint()),i},e.prototype.clearValidate=function(){this.setValidationStatus(),this._buttons.forEach((function(t){t.clearValidate()})),this.paint()},e.prototype._initView=function(t){var e=this;if((0,f.isEmptyObj)(t)||!t.options||(0,f.isEmptyObj)(t.options))throw new Error("Check the configuration is correct");for(var i in this.layout&&this.layout.destructor(),this._buttons.length&&(this._buttons.forEach((function(t){t.destructor()})),this._buttons=[]),this.config={type:t.type,id:t.id,name:t.name,disabled:!1,hidden:!1,options:{},required:!1,label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t)"id"!==i&&"type"!==i&&"name"!==i&&(this.config[i]=t[i]);this.config.helpMessage&&(this._helper=new v.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"}),this._helper.attachHTML(this.config.helpMessage));var n=this.config.options.rows||this.config.options.cols;null==n||n.forEach((function(t){t.id=t.id||(0,f.uid)(),t.$group=!0})),this.layout=new l.Layout(null,this.config.options),null==n||n.forEach((function(i){var n=new u.Checkbox(null,r(r({},i),{disabled:t.disabled||i.disabled,name:t.name,$required:t.required}));e._buttons.push(n),e.layout.getCell(i.id).attach(n),n.events.on(h.ItemEvent.beforeChange,(function(t){var i,o=r(r({},e.getValue()),((i={})[n.config.id]=t,i));return e.events.fire(h.ItemEvent.beforeChange,[o])})),n.events.on(h.ItemEvent.change,(function(){e.events.fire(h.ItemEvent.change,[e.getValue()]),(0,p.isVerify)(e.config)&&e.validate()})),n.events.on(h.ItemEvent.focus,(function(t,i){e.events.fire(h.ItemEvent.focus,[e.getValue(),i])})),n.events.on(h.ItemEvent.blur,(function(t,i){e.events.fire(h.ItemEvent.blur,[e.getValue(),i])})),n.events.on(h.ItemEvent.keydown,(function(t,i){e.events.fire(h.ItemEvent.keydown,[t,i])})),n.events.on(h.ItemEvent.afterHide,(function(){(0,a.awaitRedraw)().then((function(){var t;null===(t=e.layout.getCell(n.config.id))||void 0===t||t.hide()}))})),n.events.on(h.ItemEvent.afterShow,(function(){var t;null===(t=e.layout.getCell(n.config.id))||void 0===t||t.show()}))})),this.config.value&&this.setValue(this.config.value),this.clearValidate(),!this.config.disabled&&this._buttons.length&&this._buttons.every((function(t){return t.config.disabled}))&&(this.config.disabled=!0)},e.prototype._initHandlers=function(){var t=this;this.events.on(h.ItemEvent.change,(function(){t.config.value=t.getValue(),t.paint()}))},e.prototype._draw=function(){var t=this.config.hidden?" dhx_form-group--hidden":"",e=this.config,i=e.label,n=e.labelWidth,o=e.helpMessage,r=e.required,s=e.name,l=e.id;return(0,a.el)("fieldset.dhx_form-group-fieldset",{},[(0,a.el)("div.dhx_form-group.dhx_form-group--checkbox-group",{class:(0,p.getFormItemCss)(this.config,(0,p.isVerify)(this.config))+t,"data-dhx-id":s||l,role:"radiogroup",_key:l||this._uid},[i||n||o||r?this._drawLabel():null,(0,a.el)("div.dhx_checkbox-group--container",{},[this.layout&&(0,a.inject)(this.layout.getRootView()),r&&(0,p.getValidationMessage)(this.config)&&(0,a.el)("span.dhx_input__caption",(0,p.getValidationMessage)(this.config))])])])},e}(d.Label);e.CheckboxGroup=g},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.RadioGroup=void 0;var a=i(0),l=i(1),c=i(11),u=i(13),d=i(2),h=i(199),f=i(6),p=i(10),v=i(4),g=function(t){function e(e,i){var n=t.call(this,null,i)||this;n.events=new d.EventSystem,n._buttons=[],n._propsItem=["required","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage","options"],n._props=s(s([],f.baseProps,!0),n._propsItem,!0),n._initView(i),n._initHandlers(),n.config.value&&n._setValue(n.config.value),n.clearValidate(),n.config.helpMessage&&(n._helper=new u.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"}),n._helper.attachHTML(n.config.helpMessage));return n.mount(e,(0,a.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype.destructor=function(){this.events&&this.events.clear(),this.layout&&this.layout.destructor(),this.events=this._uid=this._propsItem=this._props=this._buttons=null,t.prototype._destructor.call(this),this.unmount()},e.prototype.setProperties=function(t,e){if(void 0!==t&&this.events.fire(v.ItemEvent.beforeChangeProperties,[this.getProperties()])){if("object"==typeof t&&!(0,l.isEmptyObj)(t)){for(var i in t)this._props.includes(i)&&(this.config[i]=t[i]);t.hasOwnProperty("options")&&(this._initView(this.config),this._initHandlers())}if("string"==typeof t&&e&&!(0,l.isEmptyObj)(e)){var n=this._buttons.find((function(e){return e.config.id===t}));n&&n.setProperties(e)}this.events.fire(v.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},e.prototype.getProperties=function(t){if(void 0===t){var e={};for(var i in this.config)this._props.includes(i)&&(e[i]=this.config[i]);return e}return this._buttons.find((function(e){return e.config.id===t})).getProperties()},e.prototype.getValue=function(){var t=this;return this._buttons.forEach((function(e){e.getValue()&&(t.config.value=e.getValue()||"")})),this.config.value||""},e.prototype.setValue=function(t){t!==this.config.value&&(this._setValue(t),this.events.fire(v.ItemEvent.change,[t]),(0,f.isVerify)(this.config)&&this.validate())},e.prototype.focus=function(t){var e=this;(0,a.awaitRedraw)().then((function(){if(e._buttons.length){if(!t)return e._buttons[0].focus();var i=e._buttons.find((function(e){return e.config.id===t}));if(i)return i.focus()}}))},e.prototype.blur=function(){var t=this;(0,a.awaitRedraw)().then((function(){t._buttons.length&&t._buttons.forEach((function(t){return t.blur()}))}))},e.prototype.show=function(t){var e,i=t&&this._buttons.find((function(e){return e.config.id===t}));(0,l.isDefined)(t)&&!i||(!i&&(this.config.hidden||this._buttons.some((function(t){return t.config.hidden})))||(null===(e=null==i?void 0:i.config)||void 0===e?void 0:e.hidden))&&this.events.fire(v.ItemEvent.beforeShow,[this.getValue(),t])&&(i?null==i||i.show():this._buttons.forEach((function(t){return t.show()})),this.config.hidden=!1,this.events.fire(v.ItemEvent.afterShow,[this.getValue(),t]))},e.prototype.hide=function(t,e){var i,n=t&&this._buttons.find((function(e){return e.config.id===t}));(0,l.isDefined)(t)&&!n||((!n&&this.config.hidden||(null===(i=null==n?void 0:n.config)||void 0===i?void 0:i.hidden))&&!e||!this.events.fire(v.ItemEvent.beforeHide,[this.getValue(),t,e])||(n?(null==n||n.hide(),this.config.hidden=this._buttons.every((function(t){return t.config.hidden}))):(this._buttons.forEach((function(t){return t.hide()})),this.config.hidden=!0),this.events.fire(v.ItemEvent.afterHide,[this.getValue(),t,e])))},e.prototype.isVisible=function(t){var e,i=this._buttons.find((function(e){return e.config.id===t}));return!(this.config.hidden||(0,l.isDefined)(t)&&(null===(e=null==i?void 0:i.config)||void 0===e?void 0:e.hidden))},e.prototype.enable=function(t){var e,i,n=t&&this._buttons.find((function(e){return e.config.id===t}));(0,l.isDefined)(t)&&!n||(!n&&(this.config.disabled||this._buttons.some((function(t){return t.config.disabled})))||(null===(e=null==n?void 0:n.config)||void 0===e?void 0:e.disabled))&&(n?null==n||n.enable():this._buttons.forEach((function(t){return t.enable()})),this.config.disabled=!1,(null===(i=this.parent)||void 0===i?void 0:i.isDisabled())&&this.parent.enable(),this.paint())},e.prototype.disable=function(t,e){var i,n=t&&this._buttons.find((function(e){return e.config.id===t}));(0,l.isDefined)(t)&&!n||((!n&&this.config.disabled||(null===(i=null==n?void 0:n.config)||void 0===i?void 0:i.disabled))&&!e||(n?(null==n||n.disable(),this.config.disabled=this._buttons.every((function(t){return t.config.disabled}))):(this._buttons.forEach((function(t){return t.disable()})),this.config.disabled=!0),this.paint()))},e.prototype.isDisabled=function(t){var e,i=this._buttons.find((function(e){return e.config.id===t}));return Boolean(this.config.disabled||(0,l.isDefined)(t)&&(null===(e=null==i?void 0:i.config)||void 0===e?void 0:e.disabled))},e.prototype.clear=function(){""!==this.config.value&&(this._buttons.forEach((function(t){t.clear()})),this.config.value="",this.events.fire(v.ItemEvent.change,[this.config.value]),(0,f.isVerify)(this.config)&&this.setValidationStatus(this.validate(!0)?"success":"error"))},e.prototype.validate=function(t){var e=this;void 0===t&&(t=!1);var i=this.getValue();if(!t&&!this.events.fire(v.ItemEvent.beforeValidate,[i]))return!1;var n=!0;return this.config.required&&(n=this._buttons.some((function(t){return e.config.required&&!!t.config.checked}))),t||(this._buttons.forEach((function(t){t.setValidationStatus(n?"success":"error")})),this.setValidationStatus(n?"success":"error"),this.events.fire(v.ItemEvent.afterValidate,[i,n]),this.paint()),n},e.prototype.clearValidate=function(){this.setValidationStatus(),this._buttons.map((function(t){t.clearValidate()})),this.paint()},e.prototype._initView=function(t){var e=this;if((0,l.isEmptyObj)(t)||!t.options||(0,l.isEmptyObj)(t.options))throw new Error("Check the configuration is correct");for(var i in this.layout&&this.layout.destructor(),this._buttons.length&&(this._buttons.forEach((function(t){t.destructor()})),this._buttons=[]),this.config={type:t.type,id:t.id,name:t.name,value:"",disabled:!1,hidden:!1,options:{},required:!1,label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t)"id"!==i&&"type"!==i&&"name"!==i&&(this.config[i]=t[i]);var n=this.config.options.rows||this.config.options.cols;null==n||n.forEach((function(t){t.id=t.id||(0,l.uid)()})),this.layout=new c.Layout(null,this.config.options),null==n||n.forEach((function(i){var n=new h.RadioButton(null,r(r({},i),{disabled:t.disabled||i.disabled,$name:t.name,$required:t.required}));e._buttons.push(n),e.layout.getCell(i.id).attach(n),n.events.on(h.RadioButtonEvents.beforeChange,(function(){return e.events.fire(v.ItemEvent.beforeChange,[n.config.value||""])})),n.events.on(h.RadioButtonEvents.change,(function(){e._buttons.map((function(t){t.config.id!==n.config.id&&t.setValue(!1)})),e.events.fire(v.ItemEvent.change,[e.getValue()]),(0,f.isVerify)(e.config)&&e.validate()})),n.events.on(h.RadioButtonEvents.focus,(function(t,i){e.events.fire(v.ItemEvent.focus,[t,i])})),n.events.on(h.RadioButtonEvents.blur,(function(t,i){e.events.fire(v.ItemEvent.blur,[t,i])})),n.events.on(h.RadioButtonEvents.keydown,(function(t,i){e.events.fire(v.ItemEvent.keydown,[t,i])})),n.events.on(v.ItemEvent.afterHide,(function(){(0,a.awaitRedraw)().then((function(){e.layout.getCell(n.config.id).hide()}))})),n.events.on(v.ItemEvent.afterShow,(function(){e.layout.getCell(n.config.id).show()}))})),!this.config.disabled&&this._buttons.length&&this._buttons.every((function(t){return t.config.disabled}))&&(this.config.disabled=!0)},e.prototype._initHandlers=function(){var t=this;this.events.on(v.ItemEvent.beforeChange,(function(){return t.paint()})),this.events.on(v.ItemEvent.change,(function(){t.config.value=t.getValue(),t.paint()}))},e.prototype._draw=function(){var t=this.config,e=t.label,i=t.labelWidth,n=t.helpMessage,o=t.required,r=t.hidden,s=t.name,l=t.id,c=r?" dhx_form-group--hidden":"";return(0,a.el)("fieldset.dhx_form-group-fieldset",{},[(0,a.el)("div.dhx_form-group.dhx_form-group--radio-group",{class:(0,f.getFormItemCss)(this.config,(0,f.isVerify)(this.config))+c,"data-dhx-id":s||l,_key:l||this._uid},[e||i||n||o?this._drawLabel():null,(0,a.el)("div.dhx_radio-group--container",{},[this.layout&&(0,a.inject)(this.layout.getRootView()),o&&(0,f.getValidationMessage)(this.config)&&(0,a.el)("span.dhx_input__caption",(0,f.getValidationMessage)(this.config))])])])},e.prototype._setValue=function(t){void 0!==t&&-1!==this._buttons.findIndex((function(e){return e.config.value===t}))&&this._buttons.forEach((function(e){e.setValue(t===e.config.value)}))},e}(p.Label);e.RadioGroup=g},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.RadioButton=e.RadioButtonEvents=void 0;var a,l=i(1),c=i(0),u=i(2),d=i(6),h=i(10);!function(t){t.beforeChange="beforeChange",t.change="change",t.focus="focus",t.blur="blur",t.keydown="keydown",t.beforeHide="beforeHide",t.afterHide="afterHide",t.beforeShow="beforeShow",t.afterShow="afterShow"}(a||(e.RadioButtonEvents=a={}));var f=function(t){function e(e,i){void 0===i&&(i={});var n=t.call(this,e,r({text:"",width:"content",height:"content",checked:!1},i))||this;n._propsItem=["text"],n._props=s(s([],d.baseProps,!0),n._propsItem,!0),n._handlers={onchange:function(t){var e=t.target.checked;n.events.fire(a.beforeChange,[e])&&(n.config.checked=e,n.events.fire(a.change,[e]))},onfocus:function(){return n.events.fire(a.focus,[n.getValue()||"",n.config.id])},onblur:function(){var t;return null===(t=n.events)||void 0===t?void 0:t.fire(a.blur,[n.getValue()||"",n.config.id])},onkeydown:function(t){n.events.fire(a.keydown,[t,n.config.id])}},n.events=new u.EventSystem;return n.mount(e,(0,c.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype.destructor=function(){this.events&&this.events.clear(),this.config=this.events=this._handlers=this._uid=this._props=this._propsItem=null,this.unmount()},e.prototype.setProperties=function(t){if(t&&!(0,l.isEmptyObj)(t)){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.paint()}},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype.getValue=function(){if(this.config.checked)return this.config.value},e.prototype.setValue=function(t){this.config.checked=t,this.paint()},e.prototype.show=function(){this.config.hidden&&this.events.fire(a.beforeShow,[])&&(this.config.hidden=!1,this.events.fire(a.afterShow,[]))},e.prototype.hide=function(){!this.config.hidden&&this.events.fire(a.beforeHide,[])&&(this.config.hidden=!0,this.events.fire(a.afterHide,[]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype.focus=function(){var t=this;(0,c.awaitRedraw)().then((function(){t.getRootView().refs.input.el.focus()}))},e.prototype.blur=function(){var t=this;(0,c.awaitRedraw)().then((function(){t.getRootView().refs.input.el.blur()}))},e.prototype.disable=function(){this.config.disabled=!0,this.paint()},e.prototype.enable=function(){var t;this.config.disabled=!1,(null===(t=this.parent)||void 0===t?void 0:t.isDisabled())&&this.parent.enable(),this.paint()},e.prototype.isDisabled=function(){return!!this.config.disabled},e.prototype.clear=function(){this.config.checked=!1,this.setValidationStatus(this.validate()?"success":"error"),this.paint()},e.prototype.validate=function(){var t=!!this.config.checked;return this.setValidationStatus(t?"success":"error"),this.paint(),t},e.prototype.clearValidate=function(){this.setValidationStatus(),this.paint()},e.prototype._draw=function(){var t=this.config,e=t.id,i=t.value,n=t.checked,o=t.disabled,r=t.$name,s=t.$required,a=t.text;return(0,c.el)("label.dhx_radiobutton.dhx_form-group",{class:(0,d.getFormItemCss)(this.config,!!s)},[(0,c.el)("input.dhx_radiobutton__input",{type:"radio",id:e,_key:e||this._uid,value:i||"",name:r||"",disabled:o,checked:n,onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,required:s,_ref:"input"}),(0,c.el)("span.dhx_radiobutton__visual-input"),(0,c.el)("span.dhx_text",[a])])},e}(h.Label);e.RadioButton=f},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Select=void 0;var a=i(0),l=i(1),c=i(10),u=i(6),d=i(2),h=i(4),f=function(t){function e(e,i){var n=t.call(this,null,i)||this;return n.events=new d.EventSystem,n._propsItem=["required","validation","icon","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage"],n._props=s(s([],u.baseProps,!0),n._propsItem,!0),n._initView(i),n}return o(e,t),e.prototype.destructor=function(){this.events&&this.events.clear(),this.events=this._uid=this._propsItem=this._props=null,t.prototype._destructor.call(this),this.unmount()},e.prototype.setProperties=function(t){if(t&&!(0,l.isEmptyObj)(t)&&this.events.fire(h.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.events.fire(h.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype.show=function(){this.config.hidden&&this.events.fire(h.ItemEvent.beforeShow,[this.getValue()])&&(this.config.hidden=!1,this.events.fire(h.ItemEvent.afterShow,[this.getValue()]))},e.prototype.hide=function(t){this.config.hidden&&!t||!this.events.fire(h.ItemEvent.beforeHide,[this.getValue(),!!t])||(this.config.hidden=!0,this.events.fire(h.ItemEvent.afterHide,[this.getValue(),!!t]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype.disable=function(t){var e=(0,l.isDefined)(t)&&this.config.options.find((function(e){return e.value===t}));(0,l.isDefined)(t)&&!e||(!e&&this.config.disabled||(null==e?void 0:e.disabled)||(e?(e.disabled=!0,this.config.disabled=this.config.options.every((function(t){return t.disabled}))):(this.config.options=this.config.options.map((function(t){return r(r({},t),{disabled:!0})})),this.config.disabled=!0),this.paint()))},e.prototype.enable=function(t){var e,i=(0,l.isDefined)(t)&&this.config.options.find((function(e){return e.value===t}));(0,l.isDefined)(t)&&!i||(!i&&(this.config.disabled||this.config.options.some((function(t){return t.disabled})))||(null==i?void 0:i.disabled))&&(i?i.disabled=!1:this.config.options=this.config.options.map((function(t){return r(r({},t),{disabled:!1})})),this.config.disabled=!1,(null===(e=this.parent)||void 0===e?void 0:e.isDisabled())&&this.parent.enable(),this.paint())},e.prototype.isDisabled=function(t){var e=this.config.options.find((function(e){return e.value===t}));return Boolean(this.config.disabled||(0,l.isDefined)(t)&&(null==e?void 0:e.disabled))},e.prototype.validate=function(t){void 0===t&&(t=!1);var e=this.getValue();if(!t&&!this.events.fire(h.ItemEvent.beforeValidate,[e]))return!1;var i=!0;return this.config.required&&(i=(0,l.isDefined)(e)),"function"==typeof this.config.validation&&(i=this.config.validation(e)),t||(this.setValidationStatus(i?"success":"error"),this.events.fire(h.ItemEvent.afterValidate,[e,i]),this.paint()),i},e.prototype.clearValidate=function(){this.setValidationStatus(),this.paint()},e.prototype.clear=function(){var t,e,i=null===(e=null===(t=this.config)||void 0===t?void 0:t.options[0])||void 0===e?void 0:e.value;this.config.value!==i&&this.events.fire(h.ItemEvent.beforeChange,[i])&&(this.config.value=i,this.events.fire(h.ItemEvent.change,[i]),(0,u.isVerify)(this.config)&&this.setValidationStatus(this.validate(!0)?"success":"error"),this.paint())},e.prototype.setValue=function(t){void 0!==t&&t!==this.config.value&&-1!==this.config.options.findIndex((function(e){return e.value===t}))&&this.events.fire(h.ItemEvent.beforeChange,[t])&&(this.config.value=t,this.events.fire(h.ItemEvent.change,[t]),(0,u.isVerify)(this.config)&&this.validate(),this.paint())},e.prototype.focus=function(){var t=this;(0,a.awaitRedraw)().then((function(){t.getRootView().refs.select.el.focus()}))},e.prototype.blur=function(){var t=this;(0,a.awaitRedraw)().then((function(){t.getRootView().refs.select.el.blur()}))},e.prototype.getValue=function(){return this.config.value},e.prototype.setOptions=function(t){if(!t||!t.length)throw new Error("Function argument cannot be empty, for more info check documentation https://docs.dhtmlx.com/suite/form__select.html#addingselect");this.events.fire(h.ItemEvent.beforeChangeOptions,[s([],t,!0)])&&(this._checkOptions(t),this.config.options=s([],t,!0),this.events.fire(h.ItemEvent.changeOptions,[s([],t,!0)]),this.setValue(this.config.options[0].value),this.paint())},e.prototype.getOptions=function(){return this.config.options},e.prototype._initView=function(t){if((0,l.isEmptyObj)(t))throw new Error("Check the configuration is correct");for(var e in this._checkOptions(t.options),this.config={type:t.type,id:t.id,name:t.name,disabled:!1,hidden:!1,required:!1,icon:"",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content",options:t.options,value:t.options[0].value},t)"id"!==e&&"type"!==e&&"name"!==e&&(this.config[e]=t[e]);!this.config.disabled&&this.config.options.length&&this.config.options.every((function(t){return t.disabled}))&&(this.config.disabled=!0),this.paint()},e.prototype._getHandlers=function(){var t=this;return{onchange:function(e){var i=t.config.options.map((function(t){return t.value})).find((function(t){return t==e.target.value}));t.events.fire(h.ItemEvent.beforeChange,[i])&&(t.config.value=i,t.events.fire(h.ItemEvent.change,[i]),(0,u.isVerify)(t.config)&&t.validate(),t.paint())},onblur:function(){t._uid&&(t.events.fire(h.ItemEvent.blur,[t.getValue()]),t.paint())},onfocus:function(){t.events.fire(h.ItemEvent.focus,[t.getValue()]),t.paint()}}},e.prototype._draw=function(){var t,e,i,n=this.config,o=n.id,r=n.options,s=n.icon,l=n.value,c=n.label,d=n.labelWidth,h=n.helpMessage,f=n.required,p=n.name,v=(null===(i=null===(e=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.select)||void 0===i?void 0:i.el)===document.activeElement;return(0,a.el)(".dhx_form-group",{class:(0,u.getFormItemCss)(this.config,(0,u.isVerify)(this.config),v)},[(c||d||h)&&this._drawLabel(),(0,a.el)(".dhx_input__wrapper",{},[(0,a.el)("div.dhx_input__container",{},[(0,a.el)(".dhx_input__icon",{class:s||"dxi dxi-menu-down"}),(0,a.el)("select.dhx_select.dhx_input",{id:o,_key:o||this._uid,"data-dhx-id":p||o,tabindex:0,class:v&&"dhx_input--focus",onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,_ref:"select",required:f},r.length&&r.map((function(t){return(0,a.el)("option",{value:t.value,disabled:t.disabled,selected:l===t.value},t.content)})))]),(0,u.getValidationMessage)(this.config)&&(0,a.el)("span.dhx_input__caption",(0,u.getValidationMessage)(this.config))])])},e.prototype._checkOptions=function(t){if(0===t.length)throw new Error("Property options* cannot be empty, for more info check documentation https://docs.dhtmlx.com/suite/form__select.html#addingselect");t.forEach((function(t){if(!t.hasOwnProperty("value")||!t.hasOwnProperty("content"))throw new Error("The object must contain two required properties value and content, for more info check documentation https://docs.dhtmlx.com/suite/form__select.html#addingselect")}))},e}(c.Label);e.Select=f},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Textarea=void 0;var s=i(0),a=i(6),l=i(39),c=i(4),u=i(1),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._propsItem=["required","validation","placeholder","readOnly","maxlength","minlength","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage"],e._props=r(r([],a.baseProps,!0),e._propsItem,!0),e}return o(e,t),e.prototype.getValue=function(){var t;return String(null!==(t=this.config.value)&&void 0!==t?t:"")},e.prototype.isFocused=function(){var t,e,i;return(null===(i=null===(e=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.textarea)||void 0===i?void 0:i.el)===document.activeElement},e.prototype.focus=function(){var t=this;(0,s.awaitRedraw)().then((function(){t.getRootView().refs.textarea.el.focus()}))},e.prototype.blur=function(){var t=this;(0,s.awaitRedraw)().then((function(){t.getRootView().refs.textarea.el.blur()}))},e.prototype.setProperties=function(t){if(t&&!(0,u.isEmptyObj)(t)&&this.events.fire(c.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.events.fire(c.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype._initView=function(t){if((0,u.isEmptyObj)(t))throw new Error("Check the configuration is correct");for(var e in this.config={type:t.type,id:t.id,name:t.name,disabled:!1,hidden:!1,required:!1,validation:void 0,placeholder:"",readOnly:!1,label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t)"id"!==e&&"type"!==e&&"name"!==e&&(this.config[e]=t[e]);this.paint()},e.prototype._draw=function(){var t,e,i,n=this,o=this.config,r=o.id,l=o.value,c=o.disabled,d=o.name,h=o.placeholder,f=o.required,p=o.resizable,v=o.readOnly,g=o.maxlength,_=o.minlength,m=o.label,y=o.helpMessage,b=o.height,w=(null===(i=null===(e=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.textarea)||void 0===i?void 0:i.el)===document.activeElement;return(0,s.el)("div.dhx_form-group.dhx_form-group--textarea",{class:(0,a.getFormItemCss)(this.config,(0,a.isVerify)(this.config),w)},[this._drawLabel(),(0,s.el)(".dhx_input__wrapper",[(0,s.el)("textarea.dhx_input.dhx_input--textarea",{type:"text",id:r,"data-dhx-id":d||r,placeholder:h||"",value:(0,u.isDefined)(l)?l:"",name:d||"",disabled:c,required:f,readOnly:v,maxlength:g,minlength:_,onblur:this._handlers.onblur,oninput:this._handlers.oninput,onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onkeydown:this._handlers.onkeydown,_hooks:{didRecycle:function(t,e){n.isFocused()&&(0,u.isDefined)(n._value)&&(e.el.value=n._value)},didInsert:function(t){if("content"===b){var e=t.el;e.style.height=e.scrollHeight+"px"}n._input=t.el,n._input.addEventListener("compositionend",n._handlers.oninput)}},style:{resize:p?"both":"none"},_ref:"textarea","aria-label":m||"".concat(v?l:""," type text"),"aria-describedby":y?"dhx_label__help_".concat(r||this._uid):null}),(0,a.getValidationMessage)(this.config)&&(0,s.el)("span.dhx_input__caption",{},(0,a.getValidationMessage)(this.config))])])},e}(l.Input);e.Textarea=d},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Text=void 0;var s=i(0),a=i(1),l=i(6),c=i(39),u=i(4),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._propsItem=["inputType","label","labelWidth","labelPosition","hiddenLabel","helpMessage"],e._props=r(r([],l.baseProps,!0),e._propsItem,!0),e}return o(e,t),e.prototype.setProperties=function(t){if(t&&!(0,a.isEmptyObj)(t)&&this.events.fire(u.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.events.fire(u.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype._initView=function(t){if((0,a.isEmptyObj)(t))throw new Error("Check the configuration is correct");for(var e in this.config={type:t.type,id:t.id,name:t.name,disabled:!1,hidden:!1,value:"",inputType:"text",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",width:"content",height:"content"},t)"id"!==e&&"type"!==e&&"name"!==e&&(this.config[e]=t[e]);this.paint()},e.prototype._draw=function(){var t=this.config,e=t.id,i=t.value,n=t.name,o=t.inputType,r=t.label,a=(null!=i?i:"").toString().length;return(0,s.el)("div.dhx_form-group.dhx_form-group--textinput",{class:(0,l.getFormItemCss)(this.config)},[this._drawLabel(),(0,s.el)(".dhx_input__wrapper",[(0,s.el)("input.dhx_input.dhx_input--textinput",{type:["text","number","password"].includes(o)?o:"text",readOnly:!0,id:e,"data-dhx-id":n||e,value:null!=i?i:"",name:n,_ref:"input",tabindex:-1,role:"presentation","aria-label":r||i,size:a>20?a:20,onkeydown:this._handlers.onkeydown})])])},e}(c.Input);e.Text=d},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Combo=void 0;var s=i(0),a=i(1),l=i(6),c=i(38),u=i(2),d=i(10),h=i(4),f=i(7),p=function(t){function e(e,i){var n=t.call(this,null,i)||this;return n.events=new u.EventSystem,n._propsItem=["required","validation","placeholder","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage","readonly","readOnly"],n._propsCombo=["template","filter","multiselection","selectAllButton","itemsCount","itemHeight","virtual","listHeight"],n._props=r(r(r([],l.baseProps,!0),n._propsItem,!0),n._propsCombo,!0),n._isClear=!1,n._initView(i),n._initHandlers(),n}return o(e,t),e.prototype.destructor=function(){this.events&&this.events.clear(),this.combobox&&this.combobox.destructor(),this.events=this._uid=this._propsCombo=this._propsItem=this._props=null,t.prototype._destructor.call(this),this.unmount()},e.prototype.setProperties=function(t){var e=this;(0,s.awaitRedraw)().then((function(){if(t&&!(0,a.isEmptyObj)(t)&&e.events.fire(h.ItemEvent.beforeChangeProperties,[e.getProperties()])){for(var i in t)e._props.includes(i)&&(e.config[i]=t[i]);var n=[];e.getWidget().data.forEach((function(t){return n.push(t)})),e.config.data=n,e._initView(e.config),e._initHandlers(),e.events.fire(h.ItemEvent.afterChangeProperties,[e.getProperties()])}}))},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype.show=function(){var t=this.config,e=t.value;t.hidden&&this.events.fire(h.ItemEvent.beforeShow,[e])&&(this.config.hidden=!1,this.events.fire(h.ItemEvent.afterShow,[e]))},e.prototype.hide=function(t){var e=this.config,i=e.value;e.hidden&&!t||!this.events.fire(h.ItemEvent.beforeHide,[i,t])||(this.config.hidden=!0,this.events.fire(h.ItemEvent.afterHide,[i,t]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype.disable=function(){this.config.disabled=!0,this.combobox.disable(),this.paint()},e.prototype.enable=function(){var t;this.config.disabled=!1,this.combobox.enable(),(null===(t=this.parent)||void 0===t?void 0:t.isDisabled())&&this.parent.enable(),this.paint()},e.prototype.isDisabled=function(){return!!this.config.disabled},e.prototype.clear=function(){this._isValue(this.config.value)&&(this.config.value="",this._isClear=!0,this._isValue(this.getValue())&&this.combobox.clear())},e.prototype.getValue=function(){return this.config.multiselection?this.combobox.getValue(!0)||[]:this.combobox.getValue()||""},e.prototype.setValue=function(t){void 0!==t&&t.toString()!==this.config.value.toString()&&(this._isClear=!1,this.combobox.setValue(t))},e.prototype.validate=function(t){var e=this;void 0===t&&(t=!1);for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];var o,r=i.length?i[0]:this.getValue();if(!t&&!this.events.fire(h.ItemEvent.beforeValidate,[r]))return!1;o=Array.isArray(r)?r.map((function(t){return e._getItemText(t)})):this._getItemText(r)||"";var s=!0;return(this.config.required||i.length)&&(s=this._existData(r)),"function"==typeof this.config.validation&&(s=this.config.validation(r,o)),t||(this.setValidationStatus(s?"success":"error"),this.config.required&&this._validationStatus(),this.events.fire(h.ItemEvent.afterValidate,[r,s]),this.paint()),s},e.prototype.clearValidate=function(){this.setValidationStatus(),this._validationStatus(),this.paint()},e.prototype.getWidget=function(){return this.combobox},e.prototype.focus=function(){var t=this;(0,s.awaitRedraw)().then((function(){t.combobox.focus()}))},e.prototype.blur=function(){var t=this;(0,s.awaitRedraw)().then((function(){t.combobox.blur()}))},e.prototype._initView=function(t){if((0,a.isEmptyObj)(t))throw new Error("Check the configuration is correct");this.combobox&&this.combobox.destructor(),this.config={type:t.type,id:t.id,name:t.name,disabled:!1,hidden:!1,value:"",readOnly:!1,multiselection:!1,selectAllButton:!1,itemHeight:32,virtual:!1,listHeight:224,required:!1,placeholder:"",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"};var e={};for(var i in t)"id"!==i&&"type"!==i&&"name"!==i&&(this.config[i]=t[i],"validation"!==i&&(e[i]=t[i]));this.combobox=new c.Combobox(null,e),this.paint()},e.prototype._initHandlers=function(){var t=this;this.combobox.events.on(c.ComboboxEvents.beforeChange,(function(e){return t.events.fire(h.ItemEvent.beforeChange,[e])})),this.combobox.events.on(c.ComboboxEvents.change,(function(){var e=t.config.value=t.getValue();t.events.fire(h.ItemEvent.change,[e]),(0,l.isVerify)(t.config)&&(t._isClear?(t.setValidationStatus(t.validate(!0)?"success":"error"),t._isClear=!1):t.validate()),t.paint()})),this.combobox.events.on(c.ComboboxEvents.focus,(function(){t.events.fire(h.ItemEvent.focus,[t.getValue()]),t.paint()})),this.combobox.events.on(c.ComboboxEvents.blur,(function(){t.events.fire(h.ItemEvent.blur,[t.getValue()]),t.paint()})),this.combobox.events.on(c.ComboboxEvents.keydown,(function(e,i){"Enter"===e.code&&e.preventDefault(),t.events.fire(h.ItemEvent.keydown,[e,i])})),[f.DataEvents.removeAll,f.DataEvents.load].forEach((function(e){t.combobox.data.events.on(e,(function(){t._isValue(t.config.value)&&(t.events.fire(h.ItemEvent.change,[""]),t.clear())}))}))},e.prototype._validationStatus=function(){var t,e,i;if(!(this.combobox.popup.isVisible()||(null===(i=null===(e=null===(t=this.combobox.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.input)||void 0===i?void 0:i.el)===document.activeElement))switch(this.config.$validationStatus){case h.ValidationStatus.success:return this.combobox.config.css=(this.config.css||"")+" dhx_form-group--state_success";case h.ValidationStatus.error:return this.combobox.config.css=(this.config.css||"")+" dhx_form-group--state_error";case h.ValidationStatus.pre:default:return this.combobox.config.css=this.config.css||""}return this.combobox.config.css=this.config.css||""},e.prototype._getRootView=function(){return this.combobox.getRootView()},e.prototype._draw=function(){var t=this.config,e=t.labelWidth,i=t.labelPosition,n=t.name,o=t.id;return(0,s.el)(".dhx_form-group.dhx_form-group--combobox",{"data-dhx-id":n||o},[(0,s.el)("div.dhx_form-combobox__container",[(0,s.inject)(this._getRootView())]),(0,s.el)("div.dhx_form-combobox__wrapper",{style:{"margin-left":"".concat(e&&"left"===i?"calc(".concat(e," + 16px)"):"")},class:this._validationStatus()},[(0,s.el)("span.dhx_input__caption",(0,l.getValidationMessage)(this.config))])])},e.prototype._existData=function(t){var e=this;return!!(0,a.isDefined)(t)&&(t instanceof Array?!!t.length&&t.every((function(t){return e.combobox.data.exists(t)})):this.combobox.data.exists(t))},e.prototype._getItemText=function(t){var e;return null===(e=this.combobox.data.getItem(t))||void 0===e?void 0:e.value},e.prototype._isValue=function(t){return!!(null==t?void 0:t.toString().length)},e}(d.Label);e.Combo=p},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.SliderForm=void 0;var a=i(0),l=i(1),c=i(47),u=i(2),d=i(10),h=i(4),f=i(6),p=function(t){function e(e,i){var n=t.call(this,e,i)||this;n.events=new u.EventSystem,n._propsItem=["label","labelWidth","labelPosition","hiddenLabel","helpMessage"],n._propsSlider=["min","max","step","mode","range","inverse","tooltip","tick","tickTemplate","majorTick"],n._props=s(s(s([],f.baseProps,!0),n._propsItem,!0),n._propsSlider,!0),n._initView(i),n._initHandlers();return n.mount(e,(0,a.create)({render:function(){return n._drawSlider()}})),n}return o(e,t),e.prototype.destructor=function(){this.events&&this.events.clear(),this.slider&&this.slider.destructor(),this.events=this._uid=this._propsSlider=this._propsItem=this._props=null,t.prototype._destructor.call(this),this.unmount()},e.prototype.setProperties=function(t){if(t&&!(0,l.isEmptyObj)(t)&&this.events.fire(h.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this._initView(this.config),this._initHandlers(),this.events.fire(h.ItemEvent.afterChangeProperties,[this.getProperties()]),this.slider.paint(),this.paint()}},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype.show=function(){var t=this.config,e=t.value;t.hidden&&this.events.fire(h.ItemEvent.beforeShow,[e])&&(this.config.hidden=!1,this.events.fire(h.ItemEvent.afterShow,[e]))},e.prototype.hide=function(t){var e=this.config,i=e.value;e.hidden&&!t||!this.events.fire(h.ItemEvent.beforeHide,[i,t])||(this.config.hidden=!0,this.events.fire(h.ItemEvent.afterHide,[i,t]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype.disable=function(){this.config.disabled=!0,this.slider.disable(),this.paint()},e.prototype.enable=function(){var t;this.config.disabled=!1,this.slider.enable(),(null===(t=this.parent)||void 0===t?void 0:t.isDisabled())&&this.parent.enable(),this.paint()},e.prototype.isDisabled=function(){return!!this.config.disabled},e.prototype.clear=function(){var t=this.config,e=t.value,i=t.min;e[0]!==i&&this.slider.setValue(i)},e.prototype.getValue=function(){return this.slider.getValue()},e.prototype.setValue=function(t){void 0!==t&&t.toString()!==this.config.value.toString()&&this.slider.setValue(t)},e.prototype.getWidget=function(){return this.slider},e.prototype.focus=function(t){var e=this;(0,a.awaitRedraw)().then((function(){e.slider.focus(t)}))},e.prototype.blur=function(){var t=this;(0,a.awaitRedraw)().then((function(){t.slider.blur()}))},e.prototype._initView=function(t){if((0,l.isEmptyObj)(t))throw new Error("Check the configuration is correct");this.slider&&this.slider.destructor();var e={type:t.type,id:t.id,name:t.name,mode:"horizontal",min:0,max:100,step:1,range:!1,inverse:!1,tooltip:!0,disabled:!1,hidden:!1,label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",width:"content",height:"content"};for(var i in t)"id"!==i&&"type"!==i&&"name"!==i&&(e[i]=t[i]);this.config=r({type:this.config.type},e),this.slider=new c.Slider(null,e),this.config.disabled&&this.slider.disable(),this.config.value=this.slider.getValue()},e.prototype._initHandlers=function(){var t=this;this.slider.events.on(c.SliderEvents.beforeChange,(function(e,i,n){var o=[e];if(t.config.range){var r=t.getValue(),s=r[0],a=r[1];o=n?[s,e]:[e,a]}return t.events.fire(h.ItemEvent.beforeChange,[o])})),this.slider.events.on(c.SliderEvents.change,(function(){if(t._uid){var e=t.config.value=t.slider.getValue();t.events.fire(h.ItemEvent.change,[e]),t.paint()}})),this.slider.events.on(c.SliderEvents.focus,(function(){t.events.fire(h.ItemEvent.focus,[t.getValue()])})),this.slider.events.on(c.SliderEvents.blur,(function(){t.events.fire(h.ItemEvent.blur,[t.getValue()])})),this.slider.events.on(c.SliderEvents.keydown,(function(e){t.events.fire(h.ItemEvent.keydown,[e])}))},e.prototype._drawSlider=function(){var t=this.config,e=t.name,i=t.id;return(0,a.el)("div.dhx_form-group",{"data-dhx-id":e||i},[(0,a.inject)(this.slider.getRootView())])},e}(d.Label);e.SliderForm=p},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.TimePicker=void 0;var s=i(46),a=i(0),l=i(1),c=i(10),u=i(13),d=i(2),h=i(4),f=i(6),p=i(14),v=function(t){function e(e,i){var n=t.call(this,null,i)||this;n.events=new d.EventSystem,n._popupIsFocus=!1,n._propsItem=["required","validation","icon","placeholder","editable","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage"],n._propsTimepicker=["timeFormat","controls","valueFormat"],n._props=r(r(r([],f.baseProps,!0),n._propsItem,!0),n._propsTimepicker,!0),n._keyManager=new p.KeyManager((function(){var t,e,i,o=document.activeElement;return(null===(i=null===(e=null===(t=n.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.input)||void 0===i?void 0:i.el)===o||n._popup.isVisible()})),n._initView(i),n._initHandlers(),n._initHotkeys();return n.mount(e,(0,a.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype.destructor=function(){this.events&&this.events.clear(),this.timepicker&&this.timepicker.destructor(),this._keyManager&&this._keyManager.destructor(),this._popup&&this._popup.destructor(),this.events=this._uid=this._propsItem=this._propsTimepicker=this._props=this._keyManager=null,t.prototype._destructor.call(this),this.unmount()},e.prototype.setProperties=function(t){var e=this;(0,a.awaitRedraw)().then((function(){if(t&&!(0,l.isEmptyObj)(t)&&e.events.fire(h.ItemEvent.beforeChangeProperties,[e.getProperties()])){for(var i in t)e._props.includes(i)&&(e.config[i]=t[i]);e._initView(e.config),e._initHandlers(),e.events.fire(h.ItemEvent.afterChangeProperties,[e.getProperties()]),e.paint()}}))},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype.show=function(){this.config.hidden&&this.events.fire(h.ItemEvent.beforeShow,[this.getValue("timeObject"===this.config.valueFormat)])&&(this.config.hidden=!1,this.events.fire(h.ItemEvent.afterShow,[this.getValue("timeObject"===this.config.valueFormat)]))},e.prototype.hide=function(t){this.config.hidden&&!t||!this.events.fire(h.ItemEvent.beforeHide,[this.getValue("timeObject"===this.config.valueFormat),t])||(this.config.hidden=!0,this.events.fire(h.ItemEvent.afterHide,[this.getValue("timeObject"===this.config.valueFormat),t]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype.disable=function(){this.config.disabled=!0,this.paint()},e.prototype.enable=function(){var t;this.config.disabled=!1,(null===(t=this.parent)||void 0===t?void 0:t.isDisabled())&&this.parent.enable(),this.paint()},e.prototype.isDisabled=function(){return!!this.config.disabled},e.prototype.validate=function(t){void 0===t&&(t=!1);for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var n=e.length?e[0]:this.getValue(this._isTimeObject());if(!t&&!this.events.fire(h.ItemEvent.beforeValidate,[n]))return!1;var o=!0;return(this.config.required||e.length)&&(o="string"==typeof n?(0,f.isTimeFormat)(n,this.config.timeFormat):(0,f.isTimeFormat)("".concat(n.hour,":").concat(n.minute).concat((0,l.isDefined)(n.AM)?n.AM?"AM":"PM":""),this.config.timeFormat)),"function"==typeof this.config.validation&&(o=this.config.validation(n)),t||(this.config.$validationStatus=o?h.ValidationStatus.success:h.ValidationStatus.error,this.events.fire(h.ItemEvent.afterValidate,[n,o]),this.paint()),o},e.prototype.clearValidate=function(){this.config.$validationStatus=h.ValidationStatus.pre,this.paint()},e.prototype.setValue=function(t){if(void 0!==t&&t!==this.config.value){if(this.timepicker.setValue(t),this.config.controls){var e=this.getValue(this._isTimeObject());if(!this.events.fire(h.ItemEvent.beforeChange,[e]))return;this.config.value=this.timepicker.getValue(),this.events.fire(h.ItemEvent.change,[e])}(0,f.isVerify)(this.config)&&this.validate(),this.paint()}},e.prototype.getValue=function(t){return t?this.timepicker.getValue(t):this.config.value||""},e.prototype.focus=function(){var t=this;(0,a.awaitRedraw)().then((function(){t.getRootView().refs.input.el.focus()}))},e.prototype.blur=function(){var t=this;(0,a.awaitRedraw)().then((function(){t._popup.hide(),t.getRootView().refs.input.el.blur()}))},e.prototype.clear=function(){""!==this.config.value&&this._clear()},e.prototype.getWidget=function(){return this.timepicker},e.prototype._initView=function(t){if((0,l.isEmptyObj)(t))throw new Error("Check the configuration is correct");for(var e in this.timepicker&&this.timepicker.destructor(),this._popup&&this._popup.destructor(),this.config={type:t.type,id:t.id,name:t.name,value:"",disabled:!1,editable:!1,hidden:!1,timeFormat:24,controls:!1,valueFormat:"string",required:!1,icon:"",placeholder:"",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t)"id"!==e&&"type"!==e&&"name"!==e&&(this.config[e]=t[e]);this._popup=new u.Popup,this.timepicker=new s.Timepicker(null,(0,f.widgetConfig)(t)),this._popup.attach(this.timepicker),this.config.value&&(this.config.value=this.timepicker.getValue())},e.prototype._initHandlers=function(){var t=this;this.config.controls?(this.timepicker.events.on(s.TimepickerEvents.afterClose,(function(){t._popup.hide()})),this.timepicker.events.on(s.TimepickerEvents.afterApply,(function(){t._afterApply(!0)})),this._popup.events.on(u.PopupEvents.afterHide,(function(){t.config.value&&t.config.value!==t.timepicker.getValue()?t.timepicker.setValue(t.config.value):""!==t.config.value&&void 0!==t.config.value||t._clear(!0)}))):(this.timepicker.events.on(s.TimepickerEvents.beforeChange,(function(e){return t.events.fire(h.ItemEvent.beforeChange,[e])})),this.timepicker.events.on(s.TimepickerEvents.change,(function(e){var i=12===t.config.timeFormat?"12:00AM":"00:00",n=t.timepicker.getValue();""===t.config.value&&i===n||t.config.value===n||(t.config.value=t.timepicker.getValue(),t.events.fire(h.ItemEvent.change,[e]),(0,f.isVerify)(t.config)&&t.validate(),t.paint())}))),this._popup.events.on(u.PopupEvents.afterHide,(function(){document.activeElement!==t.getRootView().refs.input.el&&t.events.fire(h.ItemEvent.blur,[t.getValue()]),t.paint()})),this.events.on(h.ItemEvent.input,(function(e){var i=12===t.config.timeFormat?7:5;e.length>=i&&(0,f.isTimeFormat)(e,t.config.timeFormat)?t.timepicker.setValue(e):""!==e||t.config.controls||t._clear()})),this.events.on(h.ItemEvent.afterChangeProperties,(function(){t.config.value=t.timepicker.getValue(),t.paint()})),this.events.on(h.ItemEvent.blur,(function(){t._popupIsFocus=!1,t.paint()}))},e.prototype._getHandlers=function(){var t=this;return{onfocus:function(){if(!t._popup.isVisible()){var e=t.getRootView().refs.input.el;t._popup.show(e,{theme:e}),t.events.fire(h.ItemEvent.focus,[t.getValue()]),t.paint()}},onblur:function(){t._popup.isVisible()||t.events.fire(h.ItemEvent.blur,[t.getValue()]),t.paint()},oninput:function(e){var i=e.target.value;t.events.fire(h.ItemEvent.input,[i])},onkeydown:function(e){var i,n,o,r=document.activeElement;((null===(o=null===(n=null===(i=t.getRootView())||void 0===i?void 0:i.refs)||void 0===n?void 0:n.input)||void 0===o?void 0:o.el)===r||t._popup.isVisible())&&t.events.fire(h.ItemEvent.keydown,[e])},onmousedown:function(){t._popup.getContainer()!==document.activeElement&&(t._popupIsFocus=!1)}}},e.prototype._initHotkeys=function(){var t=this,e={"shift+tab":function(){t._applyTab()},tab:function(){t._applyTab()},escape:function(){t._popup.isVisible()&&t.getRootView().refs.input.el.focus(),t._popup.hide()},enter:function(e){e.preventDefault();var i=t.getRootView().refs.input.el;t._popup.isVisible()||t._popup.show(i,{theme:i}),t._popupIsFocus&&t.config.controls?t._afterApply(!0):(t._popup.hide(),t.paint())},arrowRight:function(e){var i=t._popup.getContainer();t._popupIsFocus=i.contains(document.activeElement),t._popup.isVisible()&&!t._popupIsFocus&&(e.preventDefault(),i.focus(),t._popupIsFocus=!0)}};for(var i in e)this._keyManager.addHotKey(i,e[i])},e.prototype._draw=function(){var t,e,i,n=this.config,o=n.value,r=n.required,s=n.disabled,l=n.placeholder,c=n.name,u=n.id,d=n.editable,h=n.label,p=n.helpMessage,v=this._popup.isVisible()||(null===(i=null===(e=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.input)||void 0===i?void 0:i.el)===document.activeElement;return(0,a.el)("div.dhx_form-group",{class:(0,f.getFormItemCss)(this.config,(0,f.isVerify)(this.config),v)},[this._drawLabel(),(0,a.el)(".dhx_input__wrapper",[(0,a.el)("div.dhx_input__container",{},[(0,a.el)(".dhx_input__icon.dxi.dxi-clock-outline"),(0,a.el)("input.dhx_input.dhx_input--icon-padding",{tabindex:0,"data-dhx-id":c||u,_key:this._uid,_ref:"input",value:o,type:"text",required:r,disabled:s,class:v&&"dhx_input--focus",placeholder:l||"",name:c||"",id:u||this._uid,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,oninput:this._handlers.oninput,onkeydown:this._handlers.onkeydown,onmousedown:this._handlers.onmousedown,autocomplete:"off",readOnly:!d,"aria-label":h||"".concat(d?"type or":""," select date"),"aria-describedby":p?"dhx_label__help_".concat(u||this._uid):null})]),(0,f.getValidationMessage)(this.config)&&(0,a.el)("span.dhx_input__caption",{},(0,f.getValidationMessage)(this.config))])])},e.prototype._clear=function(t){(t||this.events.fire(h.ItemEvent.beforeChange,[""]))&&(this.config.value="",this.timepicker.clear(),t||(this.events.fire(h.ItemEvent.change,[""]),(0,f.isVerify)(this.config)&&this.setValidationStatus(this.validate(!0)?"success":"error")),this.paint())},e.prototype._afterApply=function(t){if(void 0===t&&(t=!1),""!==this.getRootView().refs.input.el.value||t){var e=this.timepicker.getValue(this._isTimeObject());if(!this.events.fire(h.ItemEvent.beforeChange,[e]))return;this.config.value=this.timepicker.getValue(),this.events.fire(h.ItemEvent.change,[e]),(0,f.isVerify)(this.config)&&this.validate()}else this.clear();this._popup.hide(),this.paint()},e.prototype._applyTab=function(){var t,e,i;document.activeElement===(null===(i=null===(e=null===(t=this._popup.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.content)||void 0===i?void 0:i.el)||this._popupIsFocus||this._popup.hide()},e.prototype._isTimeObject=function(){var t;return"timeobject"===(null===(t=this.config.valueFormat)||void 0===t?void 0:t.toLowerCase())},e}(c.Label);e.TimePicker=v},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.ColorPicker=void 0;var s=i(50),a=i(2),l=i(0),c=i(1),u=i(10),d=i(13),h=i(4),f=i(6),p=i(14),v=function(t){function e(e,i){var n=t.call(this,null,i)||this;n.events=new a.EventSystem,n._popupIsFocus=!1,n._propsItem=["required","validation","icon","placeholder","editable","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage"],n._propsColorpicker=["mode","grayShades","customColors","palette"],n._props=r(r(r([],f.baseProps,!0),n._propsItem,!0),n._propsColorpicker,!0),n._keyManager=new p.KeyManager((function(){var t,e,i,o=document.activeElement;return(null===(i=null===(e=null===(t=n.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.input)||void 0===i?void 0:i.el)===o||n._popup.isVisible()})),n._initView(i),n._initHandlers(),n._initHotkeys();return n.mount(e,(0,l.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype.destructor=function(){this.events&&this.events.clear(),this._popup&&this._popup.destructor(),this._keyManager&&this._keyManager.destructor(),this.colorpicker&&this.colorpicker.destructor(),this.events=this._uid=this._propsColorpicker=this._propsItem=this._props=this._keyManager=null,t.prototype._destructor.call(this),this.unmount()},e.prototype.setProperties=function(t){if(t&&!(0,c.isEmptyObj)(t)&&this.events.fire(h.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e],this._propsColorpicker.includes(e)&&(this.colorpicker.config[e]=t[e]));this.events.fire(h.ItemEvent.afterChangeProperties,[this.getProperties()]),this.colorpicker.paint(),this.paint()}},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype.show=function(){var t=this.config,e=t.value;t.hidden&&this.events.fire(h.ItemEvent.beforeShow,[e])&&(this.config.hidden=!1,this.events.fire(h.ItemEvent.afterShow,[e]))},e.prototype.hide=function(t){var e=this.config,i=e.value;e.hidden&&!t||!this.events.fire(h.ItemEvent.beforeHide,[i,t])||(this.config.hidden=!0,this.events.fire(h.ItemEvent.afterHide,[i,t]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype.disable=function(){this.config.disabled=!0,this.paint()},e.prototype.enable=function(){var t;this.config.disabled=!1,(null===(t=this.parent)||void 0===t?void 0:t.isDisabled())&&this.parent.enable(),this.paint()},e.prototype.isDisabled=function(){return!!this.config.disabled},e.prototype.validate=function(t){void 0===t&&(t=!1);for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var n=e.length?e[0]:this.getValue();if(!t&&!this.events.fire(h.ItemEvent.beforeValidate,[n]))return!1;var o=!0;return(this.config.required||e.length)&&(o=(0,s.isHex)(n)),"function"==typeof this.config.validation&&(o=this.config.validation(n)),t||(this.setValidationStatus(o?"success":"error"),this.events.fire(h.ItemEvent.afterValidate,[n,o]),this.paint()),o},e.prototype.clearValidate=function(){this.setValidationStatus(),this.paint()},e.prototype.setValue=function(t){void 0!==t&&t!==this.config.value&&this.colorpicker.setValue(t)},e.prototype.getValue=function(){return this.colorpicker.getValue()},e.prototype.clear=function(){""!==this.config.value&&this.colorpicker.clear()},e.prototype.getWidget=function(){return this.colorpicker},e.prototype.focus=function(){var t=this;(0,l.awaitRedraw)().then((function(){t.getRootView().refs.input.el.focus()}))},e.prototype.blur=function(){var t=this;(0,l.awaitRedraw)().then((function(){t._popup.hide(),t.getRootView().refs.input.el.blur()}))},e.prototype._initView=function(t){if((0,c.isEmptyObj)(t))throw new Error("Check the configuration is correct");for(var e in this.colorpicker&&this.colorpicker.destructor(),this._popup&&this._popup.destructor(),this.config={type:t.type,id:t.id,name:t.name,disabled:!1,editable:!1,hidden:!1,value:"",grayShades:!0,pickerOnly:!1,paletteOnly:!1,customColors:[],palette:s.palette,mode:"palette",required:!1,icon:"",placeholder:"",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t)"id"!==e&&"type"!==e&&"name"!==e&&(this.config[e]=t[e]);this._popup=new d.Popup,this.colorpicker=new s.Colorpicker(null,(0,f.widgetConfig)(t)),this.colorpicker.setValue(this.config.value),this._popup.attach(this.colorpicker)},e.prototype._initHandlers=function(){var t=this;this.colorpicker.events.on(s.ColorpickerEvents.beforeChange,(function(e){return t.events.fire(h.ItemEvent.beforeChange,[e])})),this.colorpicker.events.on(s.ColorpickerEvents.change,(function(e,i){t.config.value=t.colorpicker.getValue(),t.events.fire(h.ItemEvent.change,[t.config.value]),(0,f.isVerify)(t.config)&&("clear"===i?t.setValidationStatus(t.validate(!0)?"success":"error"):t.validate()),t._popup.hide(),t.paint()})),this._popup.events.on(d.PopupEvents.afterHide,(function(){document.activeElement!==t.getRootView().refs.input.el&&t.events.fire(h.ItemEvent.blur,[t.getValue()]),t.paint()})),this.events.on(h.ItemEvent.blur,(function(){t._popupIsFocus=!1,t.paint()}))},e.prototype._getHandlers=function(){var t=this;return{onblur:function(){t._popup.isVisible()||t.events.fire(h.ItemEvent.blur,[t.getValue()]),t.paint()},onfocus:function(){if(!t._popup.isVisible()){var e=t.getRootView().refs.input.el;t._popup.show(e,{theme:e}),t.events.fire(h.ItemEvent.focus,[t.getValue()]),t.paint()}},oninput:function(e){var i=e.target.value;t.events.fire(h.ItemEvent.input,[i])},onchange:function(e){var i=e.target.value;t.config.editable&&(0,s.isHex)(i)?t.setValue(i):""===i&&t.clear()},onkeydown:function(e){var i,n,o,r=document.activeElement;((null===(o=null===(n=null===(i=t.getRootView())||void 0===i?void 0:i.refs)||void 0===n?void 0:n.input)||void 0===o?void 0:o.el)===r||t._popup.isVisible())&&t.events.fire(h.ItemEvent.keydown,[e])},onmousedown:function(){t._popup.getContainer()!==document.activeElement&&(t._popupIsFocus=!1)}}},e.prototype._initHotkeys=function(){var t=this,e={"shift+tab":function(){t._applyTab()},tab:function(){t._applyTab()},escape:function(){t._popup.isVisible()&&t.getRootView().refs.input.el.focus(),t._popup.hide()},enter:function(e){if(e.preventDefault(),!t._popup.isVisible()){var i=t.getRootView().refs.input.el;t._popup.show(i,{theme:i})}},arrowRight:function(e){var i=t._popup.getContainer();t._popup.isVisible()&&!t._popupIsFocus&&(e.preventDefault(),i.focus(),t._popupIsFocus=!0)}};for(var i in e)this._keyManager.addHotKey(i,e[i])},e.prototype._draw=function(){var t,e,i,n=this.config,o=n.required,r=n.value,s=n.icon,a=n.disabled,c=n.placeholder,u=n.name,d=n.id,h=n.editable,p=n.label,v=n.helpMessage,g=this._popup.isVisible()||(null===(i=null===(e=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.input)||void 0===i?void 0:i.el)===document.activeElement;return(0,l.el)("div.dhx_form-group",{class:(0,f.getFormItemCss)(this.config,(0,f.isVerify)(this.config),g)},[this._drawLabel(),(0,l.el)(".dhx_input__wrapper",[(0,l.el)("div.dhx_input__container",{},[(0,l.el)(".dhx_input__icon",{class:s||"dxi dxi-eyedropper-variant"+(r?" dhx_input__icon--color-selected":""),style:{"background-color":r||"transparent"}}),(0,l.el)("input.dhx_input.dhx_input--icon-padding",{tabindex:0,"data-dhx-id":u||d,_key:this._uid,_ref:"input",value:r,type:"text",required:o,disabled:a,class:g&&"dhx_input--focus",placeholder:c||"",name:u||"",id:d||this._uid,onfocus:this._handlers.onfocus,oninput:this._handlers.oninput,onchange:this._handlers.onchange,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,onmousedown:this._handlers.onmousedown,autocomplete:"off",readOnly:!h,"aria-label":p||"".concat(h?"type or":""," select color"),"aria-describedby":v?"dhx_label__help_".concat(d||this._uid):null})]),(0,f.getValidationMessage)(this.config)&&(0,l.el)("span.dhx_input__caption",{},(0,f.getValidationMessage)(this.config))])])},e.prototype._applyTab=function(){var t,e,i;document.activeElement===(null===(i=null===(e=null===(t=this._popup.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.content)||void 0===i?void 0:i.el)||this._popupIsFocus||this._popup.hide()},e}(u.Label);e.ColorPicker=v},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Spacer=void 0;var s=i(0),a=i(9),l=i(4),c=i(2),u=i(1),d=i(6),h=function(t){function e(e,i){var n=t.call(this,e,r({disabled:!1,hidden:!1,width:"content",height:"content"},i))||this;n.events=new c.EventSystem;return n.mount(e,(0,s.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype.destructor=function(){this.events&&this.events.clear(),this.config=this.events=null,this.unmount()},e.prototype.setProperties=function(t){if(t&&!(0,u.isEmptyObj)(t)&&this.events.fire(l.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)d.baseProps.includes(e)&&(this.config[e]=t[e]);this.events.fire(l.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},e.prototype.getProperties=function(){for(var t={},e=0,i=d.baseProps;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype.show=function(){this.config.hidden&&this.events.fire(l.ItemEvent.beforeShow,[])&&(this.config.hidden=!1,this.events.fire(l.ItemEvent.afterShow,[]))},e.prototype.hide=function(t){this.config.hidden&&!t||!this.events.fire(l.ItemEvent.beforeHide,[!!t])||(this.config.hidden=!0,this.events.fire(l.ItemEvent.afterHide,[!!t]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype._draw=function(){return(0,s.el)("div")},e}(a.View);e.Spacer=h},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Avatar=void 0;var a=i(0),l=i(1),c=i(2),u=i(10),d=i(4),h=i(6),f=i(93),p=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.events=new c.EventSystem,n._propsItem=["validation","required","readOnly","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage","size","circle","alt","icon","placeholder","preview","accept","autosend","params","headerParams","fieldName","target","updateFromResponse","removeIcon"],n._props=s(s([],h.baseProps,!0),n._propsItem,!0),n._isUpload=!1,n._initView(i),n._initHandlers(),n}return o(e,t),e.prototype.send=function(t){var e=this,i=this.config,n=i.target,o=i.value,s=i.updateFromResponse,a=i.headerParams;if(!this._isUpload&&n&&(null==o?void 0:o.file)&&o.status!==f.FileStatus.uploaded&&this.events.fire(d.ItemEvent.beforeUploadFile,[o])){var l=this._createFormData(o,t),c=new XMLHttpRequest;if(this._isUpload=!0,this.config.value=r(r({},o),{status:f.FileStatus.inprogress,request:c}),this.events.fire(d.ItemEvent.uploadBegin,[this.config.value]),this.events.fire(d.ItemEvent.uploadProgress,[0,this.config.value]),c.open("POST",n),a)for(var u in a)c.setRequestHeader(u,a[u]);c.upload.onprogress=function(t){var i=t.loaded/t.total;e.config.value=r(r({},e.config.value),{progress:i}),e.events.fire(d.ItemEvent.uploadProgress,[100*i,e.config.value])},c.onloadend=function(){var t=200===c.status?f.FileStatus.uploaded:f.FileStatus.failed,i=200===c.status&&c.response?JSON.parse(c.response):null;e.config.value=r(r({},e.config.value),{status:t}),t===f.FileStatus.uploaded?(i&&s&&(e.config.value=r(r({},e.config.value),i)),e.events.fire(d.ItemEvent.uploadFile,[e.config.value,i])):e.events.fire(d.ItemEvent.uploadFail,[e.config.value]),e._isUpload=!1,e.events.fire(d.ItemEvent.uploadComplete,[e.config.value])},c.send(l)}},e.prototype.selectFile=function(){var t,e,i;null===(i=null===(e=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.input)||void 0===i||i.el.click()},e.prototype.setValue=function(t){this._setValue(t),(0,h.isVerify)(this.config)&&this.validate()},e.prototype._setValue=function(t){this.events.fire(d.ItemEvent.beforeChange,[t])&&(this.config.value=!(0,l.isEmptyObj)(t)&&r({id:(0,l.uid)(),status:f.FileStatus.queue,progress:0,path:""},t)||{},this.events.fire(d.ItemEvent.change,[this.getValue()]))},e.prototype.getValue=function(){return this.config.value||{}},e.prototype.clear=function(){this._setValue({}),(0,h.isVerify)(this.config)&&this.setValidationStatus(this.validate(!0)?"success":"error")},e.prototype.disable=function(){this.config.disabled=!0,this.paint()},e.prototype.enable=function(){var t;this.config.disabled=!1,(null===(t=this.parent)||void 0===t?void 0:t.isDisabled())&&this.parent.enable(),this.paint()},e.prototype.isDisabled=function(){return!!this.config.disabled},e.prototype.show=function(){this.config.hidden&&this.events.fire(d.ItemEvent.beforeShow,[this.getValue()])&&(this.config.hidden=!1,this.events.fire(d.ItemEvent.afterShow,[this.getValue()]))},e.prototype.hide=function(t){void 0===t&&(t=!1),this.config.hidden&&!t||!this.events.fire(d.ItemEvent.beforeHide,[this.getValue(),t])||(this.config.hidden=!0,this.events.fire(d.ItemEvent.afterHide,[this.getValue(),t]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype.validate=function(t,e){if(void 0===t&&(t=!1),void 0===e&&(e=this.getValue()),!t&&!this.events.fire(d.ItemEvent.beforeValidate,[e]))return!1;var i=!0;return this.config.required&&(i=!!e.src),"function"==typeof this.config.validation&&(i=this.config.validation(e)),t||(this.setValidationStatus(i?"success":"error"),this.events.fire(d.ItemEvent.afterValidate,[e,i]),this.paint()),i},e.prototype.clearValidate=function(){this.setValidationStatus(),this.paint()},e.prototype.setProperties=function(t){if(t&&!(0,l.isEmptyObj)(t)&&this.events.fire(d.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.events.fire(d.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype.focus=function(){var t=this;(0,a.awaitRedraw)().then((function(){var e,i,n;null===(n=null===(i=null===(e=t.getRootView())||void 0===e?void 0:e.refs)||void 0===i?void 0:i.input)||void 0===n||n.el.focus(),t.paint()}))},e.prototype.blur=function(){var t=this;(0,a.awaitRedraw)().then((function(){var e,i,n;null===(n=null===(i=null===(e=t.getRootView())||void 0===e?void 0:e.refs)||void 0===i?void 0:i.input)||void 0===n||n.el.blur(),t.paint()}))},e.prototype.destructor=function(){this.events&&this.events.clear(),t.prototype._destructor.call(this),this.unmount()},e.prototype._initView=function(t){this.config=r({size:"medium",labelPosition:"top",width:"content",height:"content",accept:"image/*",fieldName:"file",target:"",alt:"",css:"",label:"",errorMessage:"",successMessage:"",helpMessage:"",icon:"",labelWidth:"",placeholder:"",preMessage:"",removeIcon:!0,circle:!1,readOnly:!1,hiddenLabel:!1,autosend:!1,updateFromResponse:!0},t),this.paint()},e.prototype._initHandlers=function(){var t=this;this._handlers=r({change:function(e){var i,n,o=null===(n=null===(i=e.target)||void 0===i?void 0:i.files)||void 0===n?void 0:n[0];if(!t.config.readOnly&&o){var r=URL.createObjectURL(o);t.setValue({file:o,src:r}),t.config.autosend&&t.validate(!0)&&t.send()}},drop:function(e){var i,n;e.preventDefault();var o=null===(n=null===(i=e.dataTransfer)||void 0===i?void 0:i.files)||void 0===n?void 0:n[0];if(!t.config.readOnly&&o){var r=URL.createObjectURL(o);t._dragover=!1,t.setValue({file:o,src:r}),t.config.autosend&&t.validate(!0)&&t.send()}},dragover:function(e){if(e.preventDefault(),!t.config.readOnly){for(var i=0,n=e.dataTransfer.types;i<n.length;i++){var o=n[i];if("Files"!==o&&"application/x-moz-file"!==o)return}t._dragoverTimeout?clearTimeout(t._dragoverTimeout):t.paint(),t._dragover=!0,t._dragoverTimeout=setTimeout((function(){t._dragover=!1,t._dragoverTimeout=null,t.paint()}),150)}},onfocus:function(){return t.events.fire(d.ItemEvent.focus,[t.getValue()])},onblur:function(){return t.events.fire(d.ItemEvent.blur,[t.getValue()])},onkeydown:function(e){return t.events.fire(d.ItemEvent.keydown,[e])}},this._handlers),this.events.on(d.ItemEvent.change,(function(){return t.paint()}))},e.prototype._draw=function(){var t=this.config,e=t.hidden,i=t.alt,n=t.circle,o=t.size,r=t.label,s=t.value,l=t.readOnly,c=e?" dhx_form-group--hidden":"",u="",d={};return this._dragover&&(u+="dhx_avatar--on-drag "),n&&(u+="dhx_avatar--circle "),o&&"string"!=typeof o?d.width=d.height=o:o&&["small","medium","large"].includes(o)?u+="dhx_avatar-size--".concat(o," "):u+="dhx_avatar-size--medium ",(0,a.el)("div.dhx_form-group.dhx_form-group--avatar",{"aria-label":i||r,role:"img",class:(0,h.getFormItemCss)(this.config,(0,h.isVerify)(this.config),!1)+c},[this._drawLabel(),(0,a.el)("div.dhx_avatar",{class:u,style:d,ondragover:this._handlers.dragover,ondrop:this._handlers.drop},[(null==s?void 0:s.src)?this._drawImage(this.config):this._drawPreview(this.config),!l&&this._drawCover(this.config)]),(0,h.getValidationMessage)(this.config)&&(0,a.el)("span.dhx_input__caption",(0,h.getValidationMessage)(this.config))])},e.prototype._drawImage=function(t){var e=t.alt,i=t.value;return(0,a.el)("img.dhx_avatar__image",{src:null==i?void 0:i.src,alt:e})},e.prototype._drawPreview=function(t){var e=t.icon,i=t.placeholder,n=t.preview,o=[];return e&&o.push((0,a.el)("div.dhx_avatar__preview-icon",{class:e})),i&&o.push((0,a.el)("div.dhx_avatar__preview-placeholder",{"aria-placeholder":i},i)),(0,a.el)("div.dhx_avatar__preview",{style:r({},n&&{"background-image":"url(".concat(n)}||{})},[].concat(o))},e.prototype._drawCover=function(t){var e=this,i=t.accept,n=t.id,o=t.value,r=t.removeIcon;return(0,a.el)("div.dhx_avatar__cover",[(0,a.el)("label.dhx_avatar__cover-upload",[(0,a.el)("input.dhx_avatar__cover-input",{_ref:"input",id:n,accept:i,type:"file",onchange:this._handlers.change,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown}),(0,a.el)("i.dhx_avatar__cover-icon.dxi.dxi-vault")]),(null==o?void 0:o.src)&&r&&(0,a.el)("div.dhx_avatar__cover-remove",{onclick:function(){return e.clear()}},[(0,a.el)("i.dhx_avatar__cover-icon.dxi.dxi-delete-forever")])])},e.prototype._createFormData=function(t,e){var i=this.config.fieldName,n=this.config.params,o=new FormData;if(e)for(var r in e)o.append(r,e[r]);if(n)for(var r in n)o.append(r,n[r]);return o.append(i,t.file,t.file.name),o.append(i+"_fullname",t.path+t.file.name),o.append(i+"_id",t.id),o},e}(u.Label);e.Avatar=p},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Fieldset=void 0;var r=i(2),s=i(4),a=i(6),l=i(1),c=i(0),u=function(){function t(t){var e=this;this.events=new r.EventSystem,this.attachments=[],this.propsItem=["label","labelAlignment","align"],this.props=o(o([],a.baseProps,!0),this.propsItem,!0),this.config=n({disabled:!1,hidden:!1,width:"content",height:"content",labelAlignment:"left",label:"",css:""},t),(0,c.awaitRedraw)().then((function(){e.config.disabled&&e.disable()}))}return t.prototype.forEach=function(t,e){void 0===e&&(e=!1);for(var i=e?this.getTreeAttachments(this.getAttachments()):this.attachments,n=0;n<i.length;n++)t.call(this,i[n],n,i)},t.prototype.disable=function(){this.forEach((function(t){return"function"==typeof t.disable&&t.disable()})),this.config.disabled=this.cell.config.$disabled=!0,this.cell.paint()},t.prototype.enable=function(){var t;this.config.disabled=this.cell.config.$disabled=!1,this.attachments.every((function(t){return"function"!=typeof t.isDisabled||t.isDisabled()}))&&this.forEach((function(t){return"function"==typeof t.enable&&t.enable()})),(null===(t=this.parent)||void 0===t?void 0:t.isDisabled())&&this.parent.enable(),this.cell.paint()},t.prototype.isDisabled=function(){return!!this.config.disabled},t.prototype.show=function(){this.config.hidden&&(this.forEach((function(t){return"function"==typeof t.hide&&t.show()})),this.config.hidden=!1,this.cell.show())},t.prototype.hide=function(t){void 0===t&&(t=!1),this.config.hidden&&!t||(this.forEach((function(e){"function"==typeof e.hide&&("checkboxgroup"===e.config.type||"radiogroup"===e.config.type?e.hide(void 0,t):e.hide(t))})),this.config.hidden=!0,this.cell.hide())},t.prototype.isVisible=function(){return!this.config.hidden},t.prototype.setProperties=function(t){if(t&&!(0,l.isEmptyObj)(t)&&this.events.fire(s.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this.props.includes(e)&&(this.config[e]=t[e]);this.events.fire(s.ItemEvent.afterChangeProperties,[this.getProperties()])}},t.prototype.getProperties=function(){for(var t={},e=0,i=this.props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},t.prototype.destructor=function(){this.cell.hide(),this.events.clear(),this.attachments=[]},t.prototype.setCell=function(t){this.cell=t},t.prototype.getCell=function(){return this.cell},t.prototype.setAttachments=function(t){this.attachments=t},t.prototype.getAttachments=function(){return this.attachments},t.prototype.getTreeAttachments=function(t){for(var e=[],i=0;i<t.length;i++){var n=t[i];e.push(n),"fieldset"===n.config.type&&e.push.apply(e,n.getTreeAttachments(n.getAttachments()))}return e},t}();e.Fieldset=u},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.ToggleGroup=void 0;var a=i(4),l=i(95),c=i(9),u=i(0),d=i(6),h=i(2),f=i(1),p=function(t){function e(e,i){var n=t.call(this,e,r({full:!1,multiselect:!1,disabled:!1,hidden:!1,width:"content",height:"content",gap:0,css:"",padding:"",items:[]},i))||this;n.events=new h.EventSystem,n.items=[],n.props=s(s([],d.baseProps,!0),["options","full","gap","multiselect"],!1),n.initView(),n.initHandlers();return n.mount(e,(0,u.create)({render:function(){return n.draw()}})),n}return o(e,t),e.prototype.setValue=function(t){var e;void 0===t&&(t={});var i=this.getValue(),n=Object.entries(t).every((function(t){var e=t[0];return!!t[1]==!!i[e]}));if(!n){if(!this.config.multiselection)for(var o=Object.entries(t).find((function(t){t[0];return t[1]})),s=this.getValue(),l=0,c=Object.entries(s);l<c.length;l++){var u=c[l],d=u[0],h=u[1],f=h;"string"==typeof h&&(f=""),"number"==typeof h&&(f=0),"boolean"==typeof h&&(f=!1),t[d]=o&&o[0]===d?o[1]:f}if(!this.events.fire(a.ItemEvent.beforeChange,[r(r({},this.getValue()),t)]))return!1;for(var p=function(t,i){null===(e=v.items.find((function(e){return e.config.id===t})))||void 0===e||e.setValue(!!i,!0)},v=this,g=0,_=Object.entries(t);g<_.length;g++){var m=_[g];p(m[0],m[1])}this.events.fire(a.ItemEvent.change,[this.getValue()])}},e.prototype.getValue=function(t){if(t){var e=this.items.find((function(e){return e.config.id===t}));if(e)return e.getValue()}var i={};return this.items.forEach((function(t){i[t.config.id]=t.getValue()})),i},e.prototype.isSelected=function(t){if(t){var e=this.items.find((function(e){return e.config.id===t}));if(e)return e.isSelected()}var i={};return this.items.forEach((function(t){i[t.config.id]=t.isSelected()})),i},e.prototype.show=function(t){var e=t&&this.items.find((function(e){return e.config.id===t}));e&&!e.config.hidden||!this.events.fire(a.ItemEvent.beforeShow,[this.getValue(),t])||(e?e.show():this.items.forEach((function(t){return t.show()})),this.config.hidden=!1,this.checkVisibleOrder(!!e),this.events.fire(a.ItemEvent.afterShow,[this.getValue(),t]))},e.prototype.hide=function(t,e){var i=t&&this.items.find((function(e){return e.config.id===t}));this.config.hidden&&!e||i&&i.config.hidden||!this.events.fire(a.ItemEvent.beforeHide,[this.getValue(),t,e])||(i?(i.hide(),this.config.hidden=this.items.every((function(t){return t.config.hidden}))):(this.items.forEach((function(t){return t.hide()})),this.config.hidden=!0),this.checkVisibleOrder(!!i),this.events.fire(a.ItemEvent.afterHide,[this.getValue(),t,e]))},e.prototype.isVisible=function(t){var e=this.items.find((function(e){return e.config.id===t}));return e?e.isVisible():!this.config.hidden},e.prototype.focus=function(t){var e=this;(0,u.awaitRedraw)().then((function(){var i=e.items.find((function(e){return e.config.id===t}))||e.items[0];i&&i.focus()}))},e.prototype.blur=function(){var t=this;(0,u.awaitRedraw)().then((function(){t.items.forEach((function(t){return t.blur()}))}))},e.prototype.disable=function(t){var e=t&&this.items.find((function(e){return e.config.id===t}));this.config.disabled||e&&e.config.disabled||(e?(e.disable(),this.config.disabled=this.items.every((function(t){return t.config.disabled}))):(this.items.forEach((function(t){return t.disable()})),this.config.disabled=!0),this.paint())},e.prototype.enable=function(t){var e,i=t&&this.items.find((function(e){return e.config.id===t}));!i&&!this.config.disabled||i&&!i.config.disabled||(i?null==i||i.enable():this.items.forEach((function(t){return t.enable()})),this.config.disabled=!1,(null===(e=this.parent)||void 0===e?void 0:e.isDisabled())&&this.parent.enable(),this.paint())},e.prototype.isDisabled=function(t){var e=this.items.find((function(e){return e.config.id===t}));return e?e.isDisabled():!!this.config.disabled},e.prototype.setProperties=function(t,e){var i=this.items.find((function(t){return t.config.id===e}));if(t&&!(0,f.isEmptyObj)(t)&&this.events.fire(a.ItemEvent.beforeChangeProperties,[r(r({},i?i.getProperties():this.getProperties()),t)])){if(i)i.setProperties(t);else for(var n in t)this.props.includes(n)&&(this.config[n]=t[n]);this.events.fire(a.ItemEvent.afterChangeProperties,[i?i.getProperties():this.getProperties()])}},e.prototype.getProperties=function(t){if(t){var e=this.items.find((function(e){return e.config.id===t}));if(e)return e.getProperties()}for(var i={},n=0,o=this.props;n<o.length;n++){var r=o[n];i[r]=this.config[r]}return i},e.prototype.destructor=function(){this.events.clear(),this.unmount()},e.prototype.initView=function(){var t,e=this;if(!(null===(t=this.config.options)||void 0===t?void 0:t.length))throw new Error("Check the configuration is correct");this.items=this.config.options.map((function(t,i){return t.id||(t.id=t.name||(0,f.uid)()),e.config.gap&&(t.$gap=i&&e.config.gap),new l.ToggleButton(null,r(r({},t),{$group:!0}))})),this.config.value&&this.setValue(this.config.value),this.checkVisibleOrder()},e.prototype.initHandlers=function(){var t=this;this.items.forEach((function(e){e.events.on(a.ItemEvent.keydown,(function(i){t.events.fire(a.ItemEvent.keydown,[i,e.config.id])})),e.events.on(a.ItemEvent.focus,(function(){t.events.fire(a.ItemEvent.focus,[t.getValue(),e.config.id])})),e.events.on(a.ItemEvent.blur,(function(){t.events.fire(a.ItemEvent.blur,[t.getValue(),e.config.id])})),e.events.on(a.ItemEvent.beforeChange,(function(i){var n;return"string"==typeof e.config.value&&(i=i?e.config.value:""),"number"==typeof e.config.value&&(i=i?e.config.value:0),t.setValue(((n={})[e.config.id]=i,n))}))}))},e.prototype.draw=function(){var t=this.config,e=t.hidden,i=t.id,n=t.name,o=t.full,r=t.gap,s=this.items.map((function(t){return(0,u.inject)(t.getRootView())}));return(0,u.el)("div.dhx_form-group.dhx_form-group--toggle-group.dhx_toggle-group",{"data-dhx-id":n||i,"aria-label":n||i,role:"group",class:(e?"dhx_form-group--hidden ":"")+(o?"dhx_toggle-group--full ":"")+(r?"dhx_toggle-group--segmented ":"")+(0,d.getFormItemCss)(this.config)},[].concat(s))},e.prototype.checkVisibleOrder=function(t){var e=this.items.map((function(t){return delete t.config.$extraCss,t})).filter((function(t){return!t.config.hidden}));if(e.length){var i=this.items.findIndex((function(t){return t.config.id===e[0].config.id})),n=this.items.findIndex((function(t){return t.config.id===e[e.length-1].config.id}));this.items[i].config.$extraCss="dhx_toggle--first ",this.items[n].config.$extraCss=this.items[n].config.$extraCss?this.items[n].config.$extraCss+"dhx_toggle--last ":"dhx_toggle--last "}t&&this.items.forEach((function(t){return t.paint()}))},e}(c.View);e.ToggleGroup=p},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.ProForm=void 0;var r=i(91),s=i(4),a=i(11),l=i(212),c=i(6),u=function(t){function e(e,i){return t.call(this,e,i)||this}return o(e,t),e.prototype._initItemHandlers=function(e,i){var n=this;if(t.prototype._initItemHandlers.call(this,e,i),"container"===e.type){var o=this._attachments[i]=new l.Container(null,e);o.events.on(s.ItemEvent.beforeChangeProperties,(function(t){return n.events.fire(s.FormEvents.beforeChangeProperties,[i,t])})),o.events.on(s.ItemEvent.afterChangeProperties,(function(t){n._changeProps(i,t,o.config),n.events.fire(s.FormEvents.afterChangeProperties,[i,t]),n.layout.paint()})),o.events.on(s.ItemEvent.beforeHide,(function(t){if(!t)return n.events.fire(s.FormEvents.beforeHide,[i])})),o.events.on(s.ItemEvent.beforeShow,(function(){return n.events.fire(s.FormEvents.beforeShow,[i])})),o.events.on(s.ItemEvent.afterHide,(function(t){n.layout.getCell(i).hide(),!t&&n.events.fire(s.FormEvents.afterHide,[i])})),o.events.on(s.ItemEvent.afterShow,(function(){n.layout.getCell(i).show(),n.events.fire(s.FormEvents.afterShow,[i])}))}},e.prototype._initUI=function(t){var e=this._attachments={},i={padding:"8px"};this.config.css+=" dhx_form",this._createLayoutConfig(this.config,i),this.layout=new a.ProLayout(t,i),(0,c.setAttacments)(e,this.layout)},e}(r.Form);e.ProForm=u},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Container=void 0;var a=i(0),l=i(10),c=i(4),u=i(2),d=i(1),h=i(11),f=i(6),p=function(t){function e(e,i){var n=t.call(this,e,r({disabled:!1,hidden:!1,width:"content",height:"content",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:""},i))||this;if(n.events=new u.EventSystem,n._props=s(s([],f.baseProps,!0),["label","labelWidth","labelPosition","hiddenLabel","helpMessage"],!1),(0,d.isEmptyObj)(i))throw new Error("Check the configuration is correct");n.container&&n.container.destructor();var o={};for(var l in i)"id"!==l&&"type"!==l&&"name"!==l&&"width"!==l&&"height"!==l&&(n.config[l]=i[l],"validation"!==l&&(o[l]=i[l]));n.container=new h.Layout(null,{rows:[o]}),o.html&&n.container.attachHTML(o.html),n.paint();return n.mount(e,(0,a.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype.destructor=function(){this.container.destructor()},e.prototype.attach=function(t){this.container.attach(t)},e.prototype.attachHTML=function(t){this.container.attachHTML(t)},e.prototype.show=function(){this.config.hidden&&this.events.fire(c.ItemEvent.beforeShow,[])&&(this.config.hidden=!1,this.events.fire(c.ItemEvent.afterShow,[]))},e.prototype.hide=function(t){void 0===t&&(t=!1),this.config.hidden&&!t||!this.events.fire(c.ItemEvent.beforeHide,[t])||(this.config.hidden=!0,this.events.fire(c.ItemEvent.afterHide,[t]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype.disable=function(){this.config.disabled=!0,this.paint()},e.prototype.enable=function(){var t;this.config.disabled=!1,(null===(t=this.parent)||void 0===t?void 0:t.isDisabled())&&this.parent.enable(),this.paint()},e.prototype.isDisabled=function(){return!!this.config.disabled},e.prototype.setProperties=function(t){if(t&&!(0,d.isEmptyObj)(t)&&this.events.fire(c.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.events.fire(c.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype._getRootView=function(){return this.container.getRootView()},e.prototype._draw=function(){var t=this.config,e=t.name,i=t.id;return(0,a.el)(".dhx_form-group.dhx_form-group--container",{class:(0,f.getFormItemCss)(this.config),"data-dhx-id":e||i},[this._drawLabel(),(0,a.inject)(this._getRootView())])},e}(l.Label);e.Container=p},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.getTreeCell=void 0,o(i(96),e),o(i(229),e),o(i(8),e),o(i(26),e);var r=i(32);Object.defineProperty(e,"getTreeCell",{enumerable:!0,get:function(){return r.getTreeCell}}),o(i(18),e),o(i(16),e)},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Exporter=void 0;var r=i(16),s=i(7),a=i(1),l=i(15),c=i(3),u=i(0);var d=function(){function t(t,e,i){this._name=t,this._version=e,this._view=i}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.xlsx=function(t){return this._export(t)},t.prototype.csv=function(t){var e;void 0===t&&(t={}),t=n({asFile:!0,rowDelimiter:"\n",columnDelimiter:",",skipHeader:0},t),e="getRoot"in this._view.data&&t.flat?this.getFlatCSV(t):this._getCSV(t);var i=t.name||"grid_export";return t.asFile&&(0,a.downloadFile)(e,"".concat(i,".csv"),"text/csv"),e},t.prototype._export=function(t){var e=this;void 0===t&&(t={});for(var i=this._view.config.columns.filter((function(t){return!t.hidden})),n={},o=(0,r.transpose)(i.map((function(t){return t.header.map((function(t){return t.text||" "}))}))),s=[],a={default:{color:"#000000",background:"#FFFFFF",fontSize:14,bold:!1}},c=[],u={},d={},h=this._view.data.serialize().map((function(t,o){var s=e._view.data.getItem(t.id);s.$css&&(d[s.id]=s.$css),n[t.id]=o;var a=i.map((function(e,i){if(u[e.id]=i,t[e.id]instanceof Date){var n=e.format||"%M %d %Y";"string"==typeof t[e.id]?t[e.id]=(0,l.getFormattedDate)(n,(0,l.stringToDate)(t[e.id],n)):"object"==typeof t[e.id]&&(t[e.id]=(0,l.getFormattedDate)(n,t[e.id]))}return t[e.id]||i||!t.$groupName?(0,r.removeHTMLTags)(t[e.id]):"^ ".concat(t.$groupName)}));return a})),f=[],p=this._view.content,v=function(t){if(t.footer){var e=t.id,o=g._view.data.serialize().reduce((function(t,i){return void 0===i[e]||""===i[e]||isNaN(i[e])||t.push(parseFloat(i[e])),t}),[]),l=o;if("tree"===g._view.config.type){var u=g._view.data;l=u.serialize().reduce((function(t,i){if(0===i.$level)if(void 0===i[e]||""===i[e]||isNaN(i[e])){var n=0;u.eachChild(i.id,(function(t){u.haveItems(t.id)||(n+=parseFloat(t[e]))})),t.push(n)}else t.push(parseFloat(i[e])||0);return t}),[])}if(t.footer[0].content){var h=p[t.footer[0].content].calculate(o,l);f.push((null==h?void 0:h.toString())||" ")}else f.push(t.footer[0].css||t.footer[0].text||" ")}var v="number"===t.type||"percent"===t.type?"right":t.align;for(var _ in s.push({width:t.$width,align:v}),t.$cellCss){var m="dhx_grid-cell ".concat(t.$cellCss[_].trim()),y=g._getHash(m),b="dhx_grid-row";if(d[_]&&(b+=" ".concat(d[_].trim())),!a[y])(w=(0,r.getStyleByClass)(m,b,a.default))&&(a[y]=w);a[y]&&c.push([n[_],i.indexOf(t),y])}for(var _ in d)if(!t.$cellCss[_]){var w,x=g._getHash(d[_]);b="dhx_grid-row ".concat(d[_].trim());if(!a[x])(w=(0,r.getStyleByClass)("dhx_grid-cell",b,a.default))&&(a[x]=w);a[x]&&c.push([n[_],i.indexOf(t),x])}},g=this,_=0,m=i;_<m.length;_++){v(m[_])}f.length&&h.push(f);var y={name:t.name||"data",columns:s,header:o,data:h,styles:{cells:c,css:a}};if(t.url){var b=document.createElement("form");b.setAttribute("target","_blank"),b.setAttribute("action",t.url),b.setAttribute("method","POST"),b.style.visibility="hidden";var w=document.createElement("textarea");w.setAttribute("name","data"),w.value=JSON.stringify(y),b.appendChild(w),document.body.appendChild(b),b.submit(),setTimeout((function(){b.parentNode.removeChild(b)}),100)}return y},t.prototype.getFlatCSV=function(t){var e=this._view.data,i=e.getRoot(),n=this._view.config.columns[0],r=e.getMaxLevel(),a="";e.eachChild(i,(function(i){var o=function(t,e){for(var i=[],o=0;o<=r;o++)if(t&&t[n.id]){i[t.$level]=t[n.id];var s=e.getParent(t.id,!0);t=s&&s.id?s:null}else i[o]="";return i}(i,e).join(t.columnDelimiter);a+=o+Object.keys(i).reduce((function(e,n,o){return"id"===n||"parent"===n||n.startsWith("$")||0===o?e:e+t.columnDelimiter+(null===i[n]?"":i[n])}),""),a+=t.rowDelimiter}));var l=this._export(t),c=function(t,e){for(var i=0;i<t.length;i++)t[i]=e;return t}(new Array(r+1),""),u=l.header.map((function(t){return t.splice.apply(t,o([0,1],c,!1)),t}));return new s.CsvDriver(t).serialize(u,!0)+t.rowDelimiter+a},t.prototype._getCSV=function(t){var e=this._export(t),i=e.header,n=new s.CsvDriver(t);return n.serialize(i,!0)+"\n"+n.serialize(e.data,!0)},t.prototype._rawExport=function(t,e,i){var o;void 0===t&&(t={});var r=document.createElement("div");r.setAttribute("style","display: none;");var s=i.config,l=s.$headerHeight,d=void 0===l?0:l,h=s.$footerHeight,f=void 0===h?0:h,p=s.$totalHeight,v=void 0===p?0:p,g=s.$footer,_=s.columns,m="",y=i.config.exportStyles;if(("boolean"==typeof t.exportStyles||Array.isArray(t.exportStyles))&&(y=t.exportStyles),t.url=t.url||"https://export.dhtmlx.com/"+this._name+"/"+e+"/"+this._version,"pdf"===e){var b=t.pdf;t.pdf=n(n({},b),{printBackground:!1,format:null!==(o=null==b?void 0:b.format)&&void 0!==o?o:"A4"})}var w=i.config.$totalWidth,x=v+d;g&&(x+=f);for(var E=[],C=0;C<_.length;C++){var S=_[C];E.push(n(n({},S),{width:S.$width}))}var k=n(n({},i.config),{width:w,height:x,columns:E,data:i.data.getRawData(0,-1,null,2),keyNavigation:!1,selection:!1,resizable:!1}),O=new i.constructor(r,(0,a.getCloneObject)(k));(0,u.awaitRedraw)().then((function(){!0===y?m="".concat((0,c.getPageLinksCss)(),"<style>").concat((0,c.getPageInlineCss)(),"</style>"):Array.isArray(y)&&y.length&&(m="".concat((0,c.getPageLinksCss)(y)));var i=r.children[0];null==i||i.setAttribute("data-dhx-theme",t.theme||"light"),"png"===e&&(null==i||i.setAttribute("style","width: ".concat(w,"px;")));var n="\n\t\t\t\t\t".concat(m,"\n\t\t\t\t\t").concat(r.innerHTML,"\n\t\t\t\t"),o=document.createElement("form");o.setAttribute("method","POST"),o.setAttribute("action",t.url),o.innerHTML='<input type="hidden" name="raw"><input type="hidden" name="config">',o.childNodes[0].value=n,o.childNodes[1].value=JSON.stringify(t),document.body.appendChild(o),o.submit(),setTimeout((function(){var t,e;O.destructor(),null===(t=r.parentNode)||void 0===t||t.removeChild(r),null===(e=o.parentNode)||void 0===e||e.removeChild(o)}),100)})).catch((function(){var t;O.destructor(),null===(t=r.parentNode)||void 0===t||t.removeChild(r)}))},t.prototype._getHash=function(t){return t.split("").reduce((function(t,e){var i=(t<<5)-t+e.charCodeAt(0);return Math.abs(i&i)}),0).toString()},t}();e.Exporter=d},function(t,e,i){"use strict";var n=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Selection=void 0;var o=i(0),r=i(7),s=i(1),a=i(2),l=i(8),c=i(21),u=i(24),d=i(16),h=i(26),f=function(){function t(t,e,i,n){this._grid=t,this.config=e||{},this._gridId=n,this._selectedCell=null,this._selectedCells=[],this._type=["cell","row","complex"].includes(this._grid.config.selection)&&this._grid.config.selection||"complex",this._multiselection=!!t.config.multiselection,this.events=i||new a.EventSystem(this),this._init()}return t.prototype.setCell=function(t,e,i,r){var s,a,l,u,d,h,f,p,v,g,_,m,y=this;void 0===i&&(i=!1),void 0===r&&(r=!1);var b="tree"===this._grid.config.type;if(this._gridId&&c.focusManager.getFocusId()!==this._gridId&&c.focusManager.setFocusId(this._gridId),"row"===this._type&&(null===(l=this._selectedCells[0])||void 0===l?void 0:l.row.id)===((null==t?void 0:t.id)||t)||"row"!==this._type&&(null===(u=this._selectedCells[0])||void 0===u?void 0:u.row.id)===((null==t?void 0:t.id)||t)&&(null===(d=this._selectedCells[0])||void 0===d?void 0:d.column.id)===((null==e?void 0:e.id)||e))i&&(this._removeCell(null===(h=this._selectedCells[0])||void 0===h?void 0:h.row,null===(f=this._selectedCells[0])||void 0===f?void 0:f.column),(0,o.awaitRedraw)().then((function(){y._grid.paint(),y._setBrowserFocus()})));else if(!(this.config.disabled||this._grid.config.$editable||!this._multiselection&&this._selectedCells.length&&!this._removeCell(null===(p=this._selectedCell)||void 0===p?void 0:p.row,null===(v=this._selectedCell)||void 0===v?void 0:v.column))){if(this._multiselection){if(i||r||this._removeCells(),this._selectedCells.find((function(i){return"row"===y._type?i.row.id===((null==t?void 0:t.id)||t):i.row.id===((null==t?void 0:t.id)||t)&&i.column.id===((null==e?void 0:e.id)||e)})))return void this.removeCell((null==t?void 0:t.id)||t,(null==e?void 0:e.id)||e);r&&this._selectedCells.length>1&&!b&&n([],this._selectedCells,!0).forEach((function(t,e){var i=t.row,n=t.column;e>0&&y.removeCell(i.id,n.id)}))}t=this._grid.data.getItem(t&&t.id||t);var w=null===(_=null===(g=this._grid.config)||void 0===g?void 0:g.columns)||void 0===_?void 0:_.filter((function(t){return!t.hidden}));if(e||(e=null==w?void 0:w[0]),(e=this._grid.getColumn(e.id||e))&&t){if(this._multiselection&&r&&this._selectedCells.length&&!b){var x=null===(m=this._selectedCells)||void 0===m?void 0:m[0],E=this._grid.data.getIndex(x.row.id),C=this._grid.data.getIndex(t.id);if(E>C&&(E=(s=[C,E])[0],C=s[1]),"cell"===this._type||"complex"===this._type){var S=w.map((function(t){return t.id})),k=S.indexOf(x.column.id),O=S.indexOf(e.id);if(-1!==k&&-1!==O){k>O&&(k=(a=[O,k])[0],O=a[1]);var P=w.slice(k,O+1);this._grid.data.mapRange(E,C,(function(t){P.forEach((function(e){-1===y._findIndex({row:t,column:e})&&y._setCell(t,e)}))}))}}else this._grid.data.mapRange(E,C,(function(t){-1===y._findIndex({row:t,column:e})&&y._setCell(t,e)}))}else this._setCell(t,e);(0,o.awaitRedraw)().then((function(){y._grid.paint(),y._setBrowserFocus()}))}}},t.prototype.removeCell=function(t,e){var i=this;if(t&&e&&("cell"===this._type||"complex"===this._type)){var n=this._selectedCells.find((function(i){var n=i.row,o=i.column;return n.id==t&&o.id==e}));n&&this._removeCell(n.row,n.column)}else if(t){this._selectedCells.filter((function(e){return e.row.id==t})).forEach((function(t){var e=t.row,n=t.column;i._removeCell(e,n)}))}else this._removeCells();(0,o.awaitRedraw)().then((function(){i._grid.paint()}))},t.prototype.getCell=function(){return this._selectedCell},t.prototype.getCells=function(){return this._selectedCells},t.prototype.disable=function(){this.removeCell(),this.config.disabled=!0,this._grid.paint()},t.prototype.enable=function(){this.config.disabled=!1,this._grid.paint()},t.prototype.toHTML=function(){var t=this;if(!this._isUnselected()){if(this._multiselection){var e=[],i={};return this._selectedCells.forEach((function(n,o,r){var s=(0,h.normalizeCell)(n,t._grid);e.push(t._toHTML(s.row,s.column,o===r.length-1||"cell"===t._type||"complex"===t._type,i[n.row.id])),i[n.row.id]=!0})),e}var n=(0,h.normalizeCell)(this._selectedCell,this._grid);return this._toHTML(n.row,n.column,!0)}},t.prototype._setCell=function(t,e){t&&e&&(0,s.isDefined)(t.id)&&(0,s.isDefined)(e.id)&&this.events.fire(l.GridSelectionEvents.beforeSelect,[t,e])&&(this._selectedCell={row:t,column:e},this._multiselection?this._selectedCells.push(this._selectedCell):this._selectedCells=[this._selectedCell],this.events.fire(l.GridSelectionEvents.afterSelect,[t,e]))},t.prototype._removeCell=function(t,e,i){var n,o;if(void 0===i&&(i=!1),!(t&&e&&(0,s.isDefined)(t.id)&&(0,s.isDefined)(e.id)))return!1;if(!i&&!this.events.fire(l.GridSelectionEvents.beforeUnSelect,[t,e]))return!1;var r=this._selectedCells.findIndex((function(i){return i.row.id===t.id&&i.column.id===e.id}));return this._selectedCells.splice(r,1),this._selectedCell&&e.id===this._selectedCell.column.id&&t.id===this._selectedCell.row.id&&(this._selectedCell=(null===(n=this._selectedCells)||void 0===n?void 0:n[(null===(o=this._selectedCells)||void 0===o?void 0:o.length)-1])||null),!i&&this.events.fire(l.GridSelectionEvents.afterUnSelect,[t,e]),!0},t.prototype._removeCells=function(t){var e=this;void 0===t&&(t=!1),n([],this._selectedCells,!0).forEach((function(i){e._removeCell(null==i?void 0:i.row,null==i?void 0:i.column,t)}))},t.prototype._init=function(){var t=this;this._grid.events.on(l.GridEvents.cellClick,(function(e,i,n){t.setCell(e,i,n.ctrlKey||n.metaKey,n.shiftKey)})),this._grid.data.events.on(r.DataEvents.beforeRemove,(function(e){var i,n;if(e&&t._selectedCell&&t._selectedCell.row&&t._selectedCell.row.id===e.id){var o=void 0,a=t._grid.data.getIndex(e.id);if(t._grid.data instanceof r.TreeCollection){var l=t._grid.data.getItems(e.parent);o=(null===(i=l[a+1])||void 0===i?void 0:i.id)||(null===(n=l[a-1])||void 0===n?void 0:n.id)||e.parent}else o=t._grid.data.getId(a+1)||t._grid.data.getId(a-1);(0,s.isId)(o)&&(t.setCell(o),t._grid.paint())}})),this._grid.data.events.on(r.DataEvents.removeAll,(function(){t._removeCells()})),this._grid.data.events.on(r.DataEvents.load,(function(){t._removeCells(!0)}))},t.prototype._toHTML=function(t,e,i,n){var r,a,c,h,f,p,v,g,_,m,y,b,w;void 0===i&&(i=!1),void 0===n&&(n=!1);var x=this._grid.data.getRawData(0,-1,null,2);if(-1===(0,s.findIndex)(x,(function(e){return e.id==t.id})))return null;var E,C,S,k,O=this._grid.config,P=O.topSplit,I=O.bottomSplit,D=O.$totalWidth,M=O.$totalHeight,T=O.columns,V=null==T?void 0:T.filter((function(t){return!t.hidden})),H={left:(0,u.getCurrFixedCols)(this._grid.config,l.Split.left),right:(0,u.getCurrFixedCols)(this._grid.config,l.Split.right)},j=this._grid.data.getLength(),F={top:P?this._grid.data.getRawData(0,P):[],bottom:I?this._grid.data.getRawData(j-I,j):[]},R={left:null===(r=null==H?void 0:H.left)||void 0===r?void 0:r.map((function(t){return t.id})),right:null===(a=null==H?void 0:H.right)||void 0===a?void 0:a.map((function(t){return t.id}))},A={top:F.top.map((function(t){return t.id})),bottom:F.bottom.map((function(t){return t.id}))},L=null===(c=null==H?void 0:H.left)||void 0===c?void 0:c.reduce((function(t,e){return t+(e.$width||0)}),0),$=null===(h=null==H?void 0:H.right)||void 0===h?void 0:h.reduce((function(t,e){return t+(e.$width||0)}),0),N=F.top.reduce((function(t,e){return t+e.$height}),0),z=F.bottom.reduce((function(t,e){return t+e.$height}),0),W=this._grid.getCellRect(t.id,e.id),B=this._grid.getScrollState(),G=W.y,q=null===(f=A.top)||void 0===f?void 0:f.includes(t.id),Y=null===(p=R.left)||void 0===p?void 0:p.includes(e.id),X=H.left.length&&L>W.x-B.x,U=F.top.length&&N>W.y-B.y,K=W.width,J=W.height-1,Z=null,Q=null,tt=X?L+B.x:W.x;if(X&&(K-=(Y?(0,d.getTotalWidth)(H.left.slice(0,V.indexOf(e))):L)-(W.x-B.x)),U&&(J-=(q?(0,d.getTotalHeight)(F.top.slice(0,x.indexOf(t))):N)-(W.y-B.y)-1,G+=W.height-J),q)if(G=W.y+B.y,(it=this._grid.getSpan(t.id,e.id))&&it.rowspan>1){var et=x.indexOf(t);Z=(0,d.getTotalHeight)(F.top.slice(et,et+it.rowspan))}else J=P===A.top.indexOf(t.id)+1?W.height-1:W.height;if(Y)if(tt=W.x+B.x,(it=this._grid.getSpan(t.id,e.id))&&it.colspan>1){et=null==V?void 0:V.indexOf(e);Q=(0,d.getTotalWidth)(H.left.slice(et,et+it.colspan))}else K=H.left.length===R.left.indexOf(e.id)+1?W.width-1:W.width;if((null===(v=H.right)||void 0===v?void 0:v.length)||I){var it=this._grid.getSpan(t.id,e.id),nt=this._getReverseScrollState(B);if((null===(g=H.right)||void 0===g?void 0:g.length)&&(E=(null===(_=R.right)||void 0===_?void 0:_.includes(e.id))||it&&V.indexOf(e)+(it.colspan||1)>V.length-H.right.length,(C=D-$<nt.x+W.x+W.width)&&!E&&(K-=nt.x+W.x+W.width-D+$),E))if(it&&!(null===(m=R.right)||void 0===m?void 0:m.includes(it.column))){et=V.length-V.indexOf(e)-(it.colspan||1);var ot=D-$;tt=W.x+nt.x<ot+1?W.x:ot-nt.x+1,Q=(0,d.getTotalWidth)(et?H.right.slice(0,-et):H.right)-1,K=W.width-nt.x}else{var rt=(null===(y=R.right)||void 0===y?void 0:y.indexOf(e.id))?0:1;tt=W.x-nt.x+rt,K=W.width-rt}if(I&&(S=A.bottom.includes(t.id)||it&&x.indexOf(t)+(it.rowspan||1)>x.length-I,(k=M-z<nt.y+W.y+W.height)&&!S&&(J-=nt.y+W.y+W.height-M+z),S))if(it&&!A.bottom.includes(it.row)){var st=M-z;rt=(et=x.length-x.indexOf(t)-(it.rowspan||1))?0:1;G=W.y+nt.y<st?W.y:st-nt.y,Z=(0,d.getTotalHeight)(et?F.bottom.slice(0,-et):F.bottom)-rt,J=W.height-nt.y-rt}else G=W.y-nt.y,J=W.height-(I===A.bottom.indexOf(t.id)+1?1:0)}var at=null;"row"!==this._type&&"complex"!==this._type||n||(at=(0,o.el)(".dhx_grid-selected-row",{style:{width:(null===(b=H.left)||void 0===b?void 0:b.length)?D-B.x:D,height:J,minHeight:Z,minWidth:Q,display:J<0&&!Z?"none":"flex",top:G,left:(null===(w=H.left)||void 0===w?void 0:w.length)?B.x:0,position:"absolute"}}));var lt=null;return"cell"!==this._type&&"complex"!==this._type||!i||(lt=(0,o.el)(".dhx_grid-selected-cell",{style:{width:K,height:J,top:G,minHeight:Z,minWidth:Q,left:tt,position:"absolute",display:K<0&&!Q||J<0&&!Z?"none":"flex",borderLeft:X&&!Y?"none":null,borderRight:C&&!E?"none":null,borderTop:U&&!q?"none":null,borderBottom:k&&!S?"none":null}})),(0,o.el)(".dhx_grid-selection",{style:{zIndex:20}},[at,lt])},t.prototype._isUnselected=function(){return!this._selectedCell||!this._selectedCell.row||!this._selectedCell.column||0===this._selectedCells.length},t.prototype._findIndex=function(t){var e=this;void 0===t&&(t=this._selectedCell);var i=-1;return this._selectedCells.some((function(n,o){if("cell"===e._type||"complex"===e._type){if((0,s.compare)(n.row,t.row)&&(0,s.compare)(n.column,t.column))return i=o,!0}else if("row"===e._type&&(0,s.compare)(n.row,t.row))return i=o,!0})),i},t.prototype._setBrowserFocus=function(){var t=this._grid.getRootView().data.getRootNode();if(t){var e=t.querySelector(".dhx_grid_data");if(e&&this._selectedCell&&this._selectedCell.row&&this._selectedCell.column){var i=e.querySelector('[data-dhx-id="'.concat(this._selectedCell.row.id,'"]')),n=this._grid.getSpan(this._selectedCell.row.id,this._selectedCell.column.id);if(i){var o=n?t.querySelector(".dhx_span-spans"):null,r=o?o.querySelector('[data-dhx-col-id="'.concat(n.column,'"][data-dhx-id="').concat(n.row,'"]')):i.querySelector('[data-dhx-col-id="'.concat(this._selectedCell.column.id,'"]'));r&&(r.tabIndex=0,r.focus({preventScroll:!0}))}}}},t.prototype._getReverseScrollState=function(t){var e,i=(0,u.calcScrollBarWidth)(this._grid.config,!!(null===(e=this._grid.scrollView)||void 0===e?void 0:e.config.enable)),n=this._grid.config.$totalWidth-this._grid.config.$width+u.BORDERS+i.y,o=this._grid.config.$totalHeight-this._grid.config.$height+this._grid.config.$headerHeight+this._grid.config.$footerHeight+u.BORDERS+i.x;return{x:n>0?n-t.x:0,y:o>0?o-t.y:0}},t}();e.Selection=f},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEditor=void 0;var n,o=i(8),r=i(217),s=i(218),a=i(219),l=i(220),c=i(221),u=i(222),d={cell:{row:null,col:null},editor:null,gridId:null};e.getEditor=function(t,e,i,h){var f="boolean"===e.type?"checkbox":i.$editable.editorType;if(void 0===f&&(f=i.autoHeight?"textarea":"input"),d.cell.row===t.id&&d.cell.col===e.id&&d.gridId===i.gridId&&i.$editable.editor)return d.editor;switch("checkbox"!==f&&(d={cell:{row:t.id,col:e.id},editor:d.editor,gridId:i.gridId}),n||(n=function(){d={cell:{row:null,col:null},editor:null,gridId:null}},i.events.on(o.GridEvents.afterEditEnd,n)),f){case"input":default:return d.editor=new r.InputEditor(t,e,i);case"textarea":return d.editor=new u.TextAreaEditor(t,e,i,h);case"select":return d.editor=new s.SelectEditor(t,e,i);case"datePicker":return d.editor=new a.DateEditor(t,e,i);case"checkbox":return new l.CheckboxEditor(t,e,i);case"multiselect":case"combobox":return d.editor=new c.ComboboxEditor(t,e,i)}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InputEditor=void 0;var n=i(0),o=i(8),r=i(1),s=function(){function t(t,e,i){this.prevValue="",this._config=i,this._cell={row:t,col:e},this.type=e.type,this._initHandlers()}return t.prototype.endEdit=function(t){if(this._config.$editable){var e;if(!t&&(e=this._input.value,"number"===this.type))if(e=parseFloat(e),Number.isNaN(e))e="";else{var i=this._cell.col.editorConfig,n=parseFloat(null==i?void 0:i.min),s=parseFloat(null==i?void 0:i.max);(0,r.isDefined)(null==i?void 0:i.min)&&e<n&&(e=n),(0,r.isDefined)(null==i?void 0:i.max)&&e>s&&(e=s)}this._config.events.fire(o.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.$editable=null,this._config.events.fire(o.GridEvents.afterEditEnd,[e,this._cell.row,this._cell.col])):this._input.focus()}},t.prototype.toHTML=function(t){return(0,r.isDefined)(t)&&(this.type="string"),t=null!=t?t:this._cell.row[this._cell.col.id],this._input&&(t=this._input.value),this._config.$editable.editor=this,(0,n.el)("input.dhx_cell-editor.dhx_cell-editor__input",{_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor",onblur:this._handlers.onBlur,oninput:this._handlers.onInput,value:t})},t.prototype._initHandlers=function(){var t=this;this._handlers={onBlur:function(){t.endEdit()},onInput:function(){if("number"===t.type){var e=t._input.value;t.isValidWord(e)?t.prevValue=e:t._input.value=t.prevValue,!t.prevValue.length||"-"===t.prevValue||t.isCorrectRange(parseFloat(t.prevValue))?t._input.classList.remove("dhx_cell-editor__input--not-valid"):t._input.classList.add("dhx_cell-editor__input--not-valid")}},didInsert:function(e){t._input=e.el,t._input.focus()}}},t.prototype.isValidWord=function(t){var e,i=null===(e=t[t.length-1])||void 0===e?void 0:e.toLocaleLowerCase(),n=function(t,e){return t.toLocaleLowerCase().split(e.toLocaleLowerCase()).length-1};return!t.length||"-"===t||"."===t||!isNaN(Number(t))&&t.trim().length===t.length||t.replace("-","").length>1&&"e"===i&&!n(this.prevValue,"e")||t.replace("-","").length>1&&"e"===i&&1===n(t,"e")},t.prototype.isCorrectRange=function(t){var e=!0,i=this._cell.col.editorConfig,n=parseFloat(null==i?void 0:i.min),o=parseFloat(null==i?void 0:i.max);return(0,r.isDefined)(null==i?void 0:i.min)&&(0,r.isDefined)(null==i?void 0:i.max)?e=t>=n&&t<=o:(0,r.isDefined)(null==i?void 0:i.min)?e=t>n:(0,r.isDefined)(null==i?void 0:i.max)&&(e=t<o),e},t}();e.InputEditor=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectEditor=void 0;var n=i(0),o=i(8),r=i(18),s=function(){function t(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}return t.prototype.endEdit=function(t){var e;this._config.$editable&&(t||(e=this._input.value),this._config.events.fire(o.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(this._input.removeEventListener("blur",this._handlers.onBlur),this._input.removeEventListener("keydown",this._handlers.onkeydown),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.$editable=null,this._config.events.fire(o.GridEvents.afterEditEnd,[e,this._cell.row,this._cell.col])):this._input.focus())},t.prototype.toHTML=function(){var t=(0,r.getEditorOptions)(this._cell.col,this._cell.row).map((function(t){return"string"==typeof t?{id:"".concat(t),value:t}:t}))||[],e=this._cell.row[this._cell.col.id];this._input&&(e=this._input.options[this._input.selectedIndex].value);var i=t.map((function(t){return(0,n.el)("option",{selected:t.id.toString()===(null==e?void 0:e.toString()),value:t.id},t.value)}));return this._config.$editable.editor=this,(0,n.el)("select.dhx_cell-editor.dhx_cell-editor__select",{_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor"},i)},t.prototype._initHandlers=function(){var t=this;this._handlers={onBlur:function(){t.endEdit()},onkeydown:function(e){"Escape"===e.key&&t.endEdit()},didInsert:function(e){var i=e.el;t._input=i,i.focus(),i.addEventListener("blur",t._handlers.onBlur),i.addEventListener("keydown",t._handlers.onkeydown)}}},t}();e.SelectEditor=s},function(t,e,i){"use strict";var n=this&&this.__rest||function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]])}return i};Object.defineProperty(e,"__esModule",{value:!0}),e.DateEditor=void 0;var o=i(0),r=i(8),s=i(36),a=i(15),l=i(13),c=function(){function t(t,e,i){var n=this;this._config=i,this._cell={row:t,col:e},this._calendar=new s.Calendar(null,this._cleanConfig(e));var o=this._cell.row[this._cell.col.id],r=this._calendar.config.dateFormat;((0,a.stringToDate)(o,r,!0)||o instanceof Date)&&(this._calendar.setValue(o),this._value=this._calendar.getValue(),this._cell.row[this._cell.col.id]=this._value),this._popup=new l.Popup,this._popup.attach(this._calendar),this._calendar.events.on(s.CalendarEvents.change,(function(){n.endEdit(!1,!0)})),this._popup.events.on(l.PopupEvents.afterHide,(function(){n.endEdit()})),this._initHandlers()}return t.prototype.endEdit=function(t,e){var i=this;if(this._handlers&&this._config.$editable){var n=this._calendar.config.dateFormat,s=this._cell.row[this._cell.col.id],l=this._input.value;if(!t){if(s instanceof Date||e)return this._value=this._calendar.getValue(),this._input.value=this._value,void this._popup.hide();!(0,a.stringToDate)(l,n,!0)&&l||(!s||l.length!==s.length)&&s&&l||(this._value=l)}this._config.events.fire(r.GridEvents.beforeEditEnd,[this._value,this._cell.row,this._cell.col])?(this._input.removeEventListener("focus",this._handlers.onFocus),this._input.removeEventListener("change",this._handlers.onChange),document.removeEventListener("mousedown",this._handlers.onOuterClick),(0,o.awaitRedraw)().then((function(){i._popup.destructor(),i._calendar.destructor()})),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.$editable=null,this._config.events.fire(r.GridEvents.afterEditEnd,[this._value,this._cell.row,this._cell.col])):this._input.focus()}},t.prototype.toHTML=function(){var t=this._cell.row[this._cell.col.id];return this._config.$editable.editor=this,document.addEventListener("mousedown",this._handlers.onOuterClick),(0,o.el)("input.dhx_cell-editor.dhx_cell-editor__input.dhx_cell-editor__datepicker",{_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor",value:t})},t.prototype._cleanConfig=function(t){var e=t.editorConfig||{},i=(e.value,e.range,e.dateFormat,n(e,["value","range","dateFormat"]));return i.dateFormat=t.format,i},t.prototype._initHandlers=function(){var t=this;this._handlers={onFocus:function(){(0,o.awaitRedraw)().then((function(){t._popup.show(t._input,{centering:!0,mode:"bottom",theme:t._input})}))},onChange:function(){t.endEdit()},onOuterClick:function(e){if(e.target instanceof Node){var i=t._input&&t._input.contains(e.target),n=t._popup&&t._popup.getRootNode()&&t._popup.getRootNode().contains(e.target);i||n||t._popup.hide()}},didInsert:function(e){var i=e.el;t._input=i,t._input.addEventListener("focus",t._handlers.onFocus),t._input.addEventListener("change",t._handlers.onChange),i.focus(),i.setSelectionRange(i.value.length,i.value.length)}}},t}();e.DateEditor=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CheckboxEditor=void 0;var n=i(1),o=i(0),r=i(8),s=function(){function t(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}return t.prototype.endEdit=function(){var t=this._checked;this._config.events.fire(r.GridEvents.beforeEditEnd,[t,this._cell.row,this._cell.col])?(this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(r.GridEvents.afterEditEnd,[t,this._cell.row,this._cell.col])):this._input.checked=!t},t.prototype.toHTML=function(){void 0===this._checked&&(this._checked=this._cell.row[this._cell.col.id]);var t=(0,n.uid)();return(0,o.el)("div.dhx_checkbox.dhx_cell-editor__checkbox",[(0,o.el)("label",{style:{display:"none"},for:t},this._checked||"false"),(0,o.el)("input.dhx_checkbox__input",{type:"checkbox",_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor","data-dhx-checked":(!!this._checked).toString(),checked:this._checked,id:t,style:{userSelect:"none"}}),(0,o.el)("span.dhx_checkbox__visual-input")])},t.prototype._initHandlers=function(){var t=this;this._handlers={onClick:function(){var e=!t._input.checked;t._config.events.fire(r.GridEvents.beforeEditStart,[t._cell.row,t._cell.col,"checkbox"])?(t._checked=e,t._config.events.fire(r.GridEvents.afterEditStart,[t._cell.row,t._cell.col,"checkbox"]),t.endEdit()):t._input.checked=!e},didInsert:function(e){t._checkbox=e.el.parentNode.lastChild,t._input=e.el.parentNode.querySelector("input"),e.el.parentNode.addEventListener("click",t._handlers.onClick)}}},t}();e.CheckboxEditor=s},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ComboboxEditor=void 0;var o=i(0),r=i(8),s=i(38),a=i(21),l=i(18),c=function(){function t(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}return t.prototype.endEdit=function(t){var e=this;if(this._config.$editable){var i;if(!t){var n=this._input.getValue();i="multiselect"===this._cell.col.editorType?n.split(",").join(", "):n}if(this._config.events.fire(r.GridEvents.beforeEditEnd,[i,this._cell.row,this._cell.col])){var o=(0,l.getEditorOptions)(this._cell.col,this._cell.row);this._input.popup.hide(),document.removeEventListener("mousedown",this._handlers.onOuterClick),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),a.focusManager.setFocusId(this._config.gridId),null==i||i.toString().split(", ").forEach((function(t){var i=o.find((function(e){return"string"==typeof e?e===t:e.id.toString()===t}));t&&!i&&(e._cell.col.$customOptions||(e._cell.col.$customOptions=[]),e._cell.col.$customOptions.push(e._input.data.getItem(t)))})),this._config.$editable=null,this._config.events.fire(r.GridEvents.afterEditEnd,[i,this._cell.row,this._cell.col])}else this._input.focus()}},t.prototype.toHTML=function(){var t=this,e=(0,l.getEditorOptions)(this._cell.col,this._cell.row).map((function(t){return"string"==typeof t?{id:"".concat(t),value:t}:t}))||[];if(!this._input){this._input=new s.ProCombobox(null,n({itemHeight:37,css:"dhx_cell-editor__combobox",multiselection:"multiselect"===this._cell.col.editorType,htmlEnable:this._cell.col.htmlEnable},this._cell.col.editorConfig)),this._input.data.parse(e);var i=this._cell.row[this._cell.col.id],r="multiselect"===this._cell.col.editorType?((null==i?void 0:i.toString())||"").split(", "):i;this._input.setValue(r),this._input.events.on("keydown",this._handlers.onkeydown),this._input.data.events.on("beforeAdd",(function(e){if(e.id!==e.value)return t._input.addOption({id:e.value,value:e.value},!0),!1}))}return document.addEventListener("mousedown",this._handlers.onOuterClick),this._config.$editable.editor=this,(0,o.awaitRedraw)().then((function(){var e=t._input.getRootView().refs.holder.el;t._input.popup.getContainer().style.width=e.offsetWidth+"px",t._input.popup.show(e)})),a.focusManager.setFocusId(this._input._uid),(0,o.inject)(this._input.getRootView())},t.prototype._initHandlers=function(){var t=this;this._handlers={onOuterClick:function(e){if(e.target instanceof Node){var i=t._input&&t._input.getRootNode()&&t._input.getRootNode().contains(e.target),n=t._input.popup&&t._input.popup.getRootNode()&&t._input.popup.getRootNode().contains(e.target);i||n||t.endEdit()}},onkeydown:function(e){"Escape"!==e.key&&"Tab"!==e.key||t.endEdit()}}},t}();e.ComboboxEditor=c},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.TextAreaEditor=void 0;var o=i(0),r=i(8),s=i(1),a=i(18),l=function(){function t(t,e,i,n){this._config=i,this._cell={row:t,col:e},this.type=this._cell.col.type,this._width=this._getCellWidth(n),this._config.firstColId===this._cell.col.id&&this._cell.row.hasOwnProperty("$level")&&(this._width-=(0,a.getTreeCellWidthOffset)(this._cell.row)-12),this._initHandlers()}return t.prototype.endEdit=function(t){var e;this._config.$editable&&(t||(e=this._editor.value,"number"===this.type&&(e=parseFloat(e),Number.isNaN(e)&&(e=""))),this._config.events.fire(r.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.$editable=null,this._config.events.fire(r.GridEvents.afterEditEnd,[e,this._cell.row,this._cell.col])):this._editor.focus())},t.prototype.toHTML=function(t){(0,s.isDefined)(t)&&(this.type="string"),t=null!=t?t:this._cell.row[this._cell.col.id],this._editor&&(t=this._editor.value),this._config.$editable.editor=this;var e=void 0!==this._cell.row.height||this._cell.col.htmlEnable?"dhx_cell-editor dhx_cell-editor__textarea_constant-height":"dhx_cell-editor dhx_cell-editor__textarea";return(0,o.el)("textarea",{_hooks:{didInsert:this._handlers.didInsert},_ref:"textarea",_key:"cell_editor","data-dhx-id":"cell_editor",value:t,onblur:this._handlers.onBlur,oninput:this._handlers.onInput,onkeydown:this._handlers.onKeydown,class:e,style:{width:this._width}})},t.prototype._initHandlers=function(){var t=this;this._handlers={onBlur:function(){t.endEdit()},onInput:function(e){t._updateHeight(e,t._editor.value)},onKeydown:function(e){"Escape"===e.key&&t._updateHeight(e,t._initialValue),"Enter"!==e.key||e.shiftKey||e.preventDefault()},didInsert:function(e){t._editor=e.el,t._initialValue=e.el.value,t._editor.focus()}}},t.prototype._getCurrentHeight=function(t,e){e=n({width:100,maxHeight:40,lineHeight:20},e);var i=document.createElement("textarea");i.className="dhx_cell-editor dhx_cell-editor__textarea",i.value=t,i.style.width="".concat(e.width,"px"),i.style.lineHeight="".concat(e.lineHeight,"px"),i.style.maxHeight="".concat(e.maxHeight,"px"),i.style.boxSizing="border-box",document.body.appendChild(i);var o=this._getElementHeight(i),r=i.value.split("\n").length,s=Math.round(o/e.lineHeight),a=o<e.maxHeight?e.maxHeight:o;return document.body.removeChild(i),1===r&&r===s?e.maxHeight:a},t.prototype._getElementHeight=function(t){return t.scrollHeight},t.prototype._getCellWidth=function(t){return t?this._config.columns.slice(t.$colsVisibility[0],t.$colsVisibility[1]+1).reduce((function(t,e){return t+e.$width}),0):this._cell.col.$width},t.prototype._updateHeight=function(t,e){var i,o;if(void 0===this._cell.row.height&&!this._cell.col.htmlEnable){var s=this._getCurrentHeight(e,{width:this._width-2,maxHeight:this._config.rowHeight}),l=n(n({},this._cell.row),((i={})[this._cell.col.id]=e,i)),c=(0,a.getCalculatedRowHeight)((0,a.getMaxRowHeight)(l,this._config.columns)),u=(0,a.getCalculatedRowHeight)((0,a.getMaxRowHeight)(((o={})[this._cell.col.id]=l[this._cell.col.id],o),this._config.columns));if(this._minHeight=c===u?this._config.rowHeight:c,s>=this._minHeight&&s!==this._prevHeight){if(!this._config.events.fire(r.GridEvents.beforeRowResize,[this._cell.row,t,s]))return;this._config.events.fire(r.GridEvents.afterRowResize,[this._cell.row,t,s])}this._prevHeight=s}},t}();e.TextAreaEditor=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getContent=void 0;var n=i(0),o=i(18),r=i(1),s=i(224),a=i(225),l=i(226);function c(t,e){var i=e[t.id];if("combobox"===t.editorType)parseFloat((0,o.getEditorValue)(i,(0,o.getEditorOptions)(t,e)));else if("multiselect"===t.editorType)return NaN;return parseFloat(i)}function u(t,e,i,n){if(t&&e&&i){var o=n?n(t.id,e.data):e.data.reduce((function(e,i){var n=c(t,i);return isNaN(n)||e.push(n),e}),[]),r=o;return"tree"===e.type&&(r=e.data.reduce((function(i,n){var o;if(0===n.$level){var r=c(t,n);if(isNaN(r)){var s=0;null===(o=e.datacollection)||void 0===o||o.eachChild(n.id,(function(i){if(!e.datacollection.haveItems(i.id)){var n=c(t,i);isNaN(n)||(s+=n)}})),i.push(s)}else i.push(r)}return i}),[])),i(o,r)}}e.getContent=function(){return{inputFilter:{element:{},toHtml:function(t,e){var i=this,n=(0,r.uid)(),o=t.id.toString(),s=this.element[o];return s?s.value=this.value[o]:((s=new l.InputFilter(t,e,n,this.value[o])).events.on("change",(function(t){i.value[o]=t})),this.element[o]=s),s.toHTML()},match:function(t){var e=t.val,i=t.match,n=t.col;if(!(0,r.isDefined)(e))return!1;var s=[];(s.push((0,o.toFormat)(e,n.type,n.format)),n.format)&&((l=n.format.lastIndexOf("#"))>0&&s.push((0,o.toFormat)(e,n.type,n.format.slice(l))));for(var a="",l=0;l<i.length;l++){var c=i.charCodeAt(l);a+=c>32&&c<48||63===c||c>90&&c<95||124===c?"\\"+i[l]:i[l]}return s.some((function(t){return new RegExp("".concat(a),"i").test(t)}))},value:{}},selectFilter:{element:{},toHtml:function(t,e){var i=this,n=t.id.toString(),o=this.element[n];return o?(o.value=this.value[n],o.data=t.$activeFilterData||t.$uniqueData):((o=new a.SelectFilter(t,e,t.$uniqueData,this.value[n])).events.on("change",(function(t){i.value[n]=t})),this.element[n]=o),o.toHTML()},match:function(t){var e=t.val,i=t.match,n=t.col,r=(0,o.toFormat)(e,n.type,n.format);return!i||(r||"boolean"==typeof r)&&r.toString()==i},value:{}},comboFilter:{element:{},toHtml:function(t,e){var i=this,o=t.id.toString(),r=this.element[o];if(r)r.data=t.$uniqueData;else{var a=t.header.filter((function(t){return void 0!==t.filterConfig}))[0];(r=new s.ComboFilter(t,e,t.$uniqueData,this.value[o],a)).events.on("change",(function(t){i.value[o]=t})),this.element[o]=r}return(0,n.inject)(r.getFilter().getRootView())},match:function(t){var e=t.val,i=t.match,n=void 0===i?"":i,r=t.multi,s=void 0!==r&&r,a=t.col,l=(0,o.toFormat)(e,a.type,a.format);if(Array.isArray(n)){for(var c=void 0,u=function(t){if(c=s&&"string"==typeof l?l.split(", ").some((function(e){return e===n[t]})):n[t]===l)return"break"},d=0;d<n.length;d++){if("break"===u(d))break}return!n||!n.length||c}return void 0===n||l===n},destroy:function(){this.value={};var t=this.element;for(var e in t)t[e].destructor(),delete t[e]},value:{}},sum:{calculate:function(t,e){return t.length?e.reduce((function(t,e){var i=t+parseFloat(e)||0;return parseFloat(i.toFixed(12))}),0):null},toHtml:function(t,e){var i=u(t,e,this.calculate);return t.format||"percent"===t.type?(0,o.toFormat)(i,t.type,t.format):(0,r.isDefined)(i)?i:null}},avg:{calculate:function(t,e){return t.length?e.reduce((function(t,e){return t+e}),0)/t.length:null},toHtml:function(t,e){var i=u(t,e,this.calculate);return t.format||"percent"===t.type?(0,o.toFormat)(i,t.type,t.format):(0,r.isDefined)(i)?i.toFixed(3):null}},min:{calculate:function(t){return t.length?Math.min.apply(Math,t):null},toHtml:function(t,e){var i=u(t,e,this.calculate);return t.format||"percent"===t.type||"number"===t.type?(0,o.toFormat)(i,t.type,t.format):(0,r.isDefined)(i)?i.toFixed(3):null}},max:{calculate:function(t){return t.length?Math.max.apply(Math,t):null},toHtml:function(t,e){var i=u(t,e,this.calculate);return t.format||"percent"===t.type||"number"===t.type?(0,o.toFormat)(i,t.type,t.format):(0,r.isDefined)(i)?i.toFixed(3):null}},count:{calculate:function(t,e){return e.length},validate:function(t,e){return e.reduce((function(e,i){return(0,r.isDefined)(i[t])&&""!==i[t]&&(isNaN(i)?e.push(1):e.push(i)),e}),[])},toHtml:function(t,e){return u(t,e,this.calculate,this.validate)}}}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ComboFilter=void 0;var n=i(38),o=i(2),r=i(7),s=i(1),a=i(8),l=function(){function t(t,e,i,n,r){var a;this.events=new o.EventSystem,this._silentMode=!1,this.column=t,this.config=e,this.data=i,this.value=n,this.filterConfig=(null==r?void 0:r.filterConfig)||{},(this.column.htmlEnable||(null===(a=this.config)||void 0===a?void 0:a.htmlEnable)&&!1!==this.column.htmlEnable)&&(this.column.template||!1===this.filterConfig.readonly||(this.filterConfig.readonly=!0),this.filterConfig.template||(this.filterConfig.template=function(t){return t.value})),this.filterConfig.filter||(this.filterConfig.filter=function(t,e){return(0,s.isExistValue)(t.value,e)}),this.initFilter(),this.config&&this.initHandlers()}return t.prototype.initFilter=function(){this._filter=new n.ProCombobox(null,Object.assign({},this.filterConfig)),this.data&&this._filter.data&&this._setData()},t.prototype.initHandlers=function(){var t,e,i,n=this,o=this.column.id.toString();this.config.events.on(r.DataEvents.load,(function(){return n._setData()}),this),this._filter.events.on("change",(function(t){var e,i;t&&((Array.isArray(t)?t.find((function(t){return n._filter.data.getItem(t)})):n._filter.data.getItem(t))&&(i=n._filter.config.multiselection?n._filter.list.selection.getItem().map((function(t){if(t&&n._filter.data.getItem(t.id))return t.value})):n._filter.list.selection.getItem().value));n.value=i,null===(e=n.config.events)||void 0===e||e.fire(a.GridEvents.filterChange,[n.value,o,"comboFilter",n._silentMode]),n._silentMode&&void 0===n.value&&(n._silentMode=!1)})),this.config.events.on(a.GridEvents.filterChange,(function(t){return n.events.fire(a.HeaderFilterEvent.change,[t])}),this),this._filter.popup.events.on("afterHide",(function(){n.filterConfig.multiselection||n._filter.list.selection.getItem()||n.clear()})),this._filter.popup.events.on("afterShow",(function(){!n.filterConfig.multiselection&&(""===n.value||n.filterConfig.readonly&&void 0!==n.value)&&n.clear()})),null===(t=this.config.events)||void 0===t||t.on(a.GridEvents.scroll,(function(){var t;n._isFocused&&(null===(t=n._filter.getRootView().refs)||void 0===t?void 0:t.input)&&n._filter.focus()}),this),null===(e=this.config.events)||void 0===e||e.on(a.GridEvents.headerCellMouseDown,(function(t){t.id!==n.column.id&&n.blur()}),this),null===(i=this.config.events)||void 0===i||i.on(a.GridEvents.cellMouseDown,(function(){return n.blur()}),this),this.config.events.on(r.DataEvents.change,(function(t,e){n.column.hidden||"add"!==e&&"update"!==e&&"remove"!==e||("add"!==e&&n._checkValue(),n._setData(!0))}),this),this.config.events.on(r.DataEvents.removeAll,(function(){n.clear(!0),n._setData()}),this),this.config.events.on(a.GridEvents.afterRowShow,(function(){return n._setData(!0)}),this),this.config.events.on(a.GridEvents.afterRowHide,(function(){n.column.hidden||(n._checkValue(),n._setData(!0))}),this),this.config.events.on(r.DataEvents.filter,(function(t){n.column.hidden||(!t||(0,r.isOnlyPermanentFilters)(t)?n.clear(!0):n._checkValue(),n.filterConfig.multiselection&&n._filter.popup.isVisible()||n._setData(!0))}),this),this.config.events.on(a.GridEvents.afterColumnShow,(function(){n.filterConfig.multiselection||(n._checkValue(),n._setData())}),this),this.config.events.on(a.GridEvents.afterColumnHide,(function(){n.filterConfig.multiselection||n._setData()}),this)},t.prototype.getFilter=function(){return this._filter},t.prototype.setValue=function(t,e){var i,n,o=this;if(this.filterConfig.multiselection||!Array.isArray(t))if((0,s.isDefined)(t)){if((null==t?void 0:t.length)||""===t){var r=this.filterConfig.multiselection&&Array.isArray(t)?t.map((function(t){var e;return null===(e=o._filter.data.find((function(e){return e.value===t})))||void 0===e?void 0:e.id})):null===(n=this._filter.data.find((function(e){return e.value===t})))||void 0===n?void 0:n.id;this._filter.setValue(r,e)}}else e&&(this._silentMode=!0),this._filter.clear(),this.filterConfig.multiselection||void 0===this.value||(this.value=void 0,null===(i=this.config.events)||void 0===i||i.fire(a.GridEvents.filterChange,[this.value,this.column.id,"comboFilter"]))},t.prototype.clear=function(t){void 0!==this.value&&this.setValue(null,t)},t.prototype.focus=function(){var t;this._isFocused=!0,(null===(t=this._filter.getRootView().refs)||void 0===t?void 0:t.input)&&this._filter.focus()},t.prototype.blur=function(){var t;this._isFocused=!1,(null===(t=this._filter.getRootView().refs)||void 0===t?void 0:t.input)&&this._filter.blur()},t.prototype.destructor=function(){var t=this.config.events;if(t)for(var e in t.events)this.config.events.detach(e,this);this.events.clear(),this._filter&&this._filter.destructor(),this.config=this.filterConfig=this.data=this.column=this.value=this.events=null},t.prototype._setData=function(t){var e=this;void 0===t&&(t=!1);var i=function(){var t=e.column.$activeFilterData||e.column.$uniqueData;if(e.column.header.some((function(t){var e;return null===(e=t.filterConfig)||void 0===e?void 0:e.filter}))){var i=e._filter.data.reduce((function(t,e){return t[e.value]=e.id,t}),{}),n=t.map((function(t){return i[t]?{id:i[t],value:t}:{value:t}}));e._filter.data.parse(n)}else e._filter.data.parse(t.map((function(t){return{value:t}})))};void 0===this.value?i():t&&this.filterConfig.multiselection&&(i(),this.setValue(this.value,!0))},t.prototype._checkValue=function(){if(void 0!==this.value)for(var t=Array.isArray(this.value)?this.value:[this.value],e=function(e){if(i.column.$uniqueData.includes(e))return"continue";if(t.length>1){var n=i._filter.data.find((function(t){return t.value===e}));i._filter.list.selection.remove(n.id)}else i.clear();return"break"},i=this,n=0,o=t;n<o.length;n++){if("break"===e(o[n]))break}},t}();e.ComboFilter=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectFilter=void 0;var n=i(0),o=i(2),r=i(8),s=function(){function t(t,e,i,n){this.events=new o.EventSystem,this.column=t,this.config=e,this.data=i,this.value=n||"",this.initHandlers(),this.toHTML()}return t.prototype.toHTML=function(){var t,e=this;return(0,n.el)("label.dhx_grid-filter__label.dxi.dxi-menu-down",{_ref:"".concat(this.column.id,"_filter")},[(0,n.el)("select.dxi.dxi-menu-down",{type:"text",class:"dhx_input dhx_grid-filter dhx_grid-filter--select",onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,_key:this.column.id},[(0,n.el)("option",{value:"",_key:0},""),null===(t=this.value?[this.value]:this.data)||void 0===t?void 0:t.map((function(t){return""!==(t=null!=t?t:"")&&(0,n.el)("option",{_key:t,value:t,selected:e.value===t.toString()},t)}))])])},t.prototype.getFilter=function(){return this.toHTML()},t.prototype.setValue=function(t,e){var i;this.value=t||"",this.events.fire(r.HeaderFilterEvent.change,[t]),null===(i=this.config.events)||void 0===i||i.fire(r.GridEvents.filterChange,[this.value,this.column.id,"selectFilter",e])},t.prototype.clear=function(t){this.setValue("",t)},t.prototype.focus=function(){var t,e,i,n;this._isFocused=!0;var o=null===(n=null===(i=null===(e=null===(t=this.config.events)||void 0===t?void 0:t.context)||void 0===e?void 0:e.getRootView())||void 0===i?void 0:i.refs["".concat(this.column.id,"_filter")])||void 0===n?void 0:n.el;o&&o.focus()},t.prototype.blur=function(){var t,e,i,n;this._isFocused=!1;var o=null===(n=null===(i=null===(e=null===(t=this.config.events)||void 0===t?void 0:t.context)||void 0===e?void 0:e.getRootView())||void 0===i?void 0:i.refs["".concat(this.column.id,"_filter")])||void 0===n?void 0:n.el;o&&o.blur()},t.prototype.initHandlers=function(){var t,e,i,o=this;this._handlers={onchange:function(t){var e,i,n,r,s=(null===(e=t.target)||void 0===e?void 0:e.value)||(null===(n=null===(i=t.composedPath())||void 0===i?void 0:i[0])||void 0===n?void 0:n.value)||(null===(r=t.explicitOriginalTarget)||void 0===r?void 0:r.value);o.setValue(s)},onfocus:function(){o._isFocused=!0},onblur:function(){o._isFocused=!1}},null===(t=this.config.events)||void 0===t||t.on(r.GridEvents.scroll,(function(){var t,e,i,r,s=null===(r=null===(i=null===(e=null===(t=o.config.events)||void 0===t?void 0:t.context)||void 0===e?void 0:e.getRootView())||void 0===i?void 0:i.refs["".concat(o.column.id,"_filter")])||void 0===r?void 0:r.el;o._isFocused&&s&&(0,n.awaitRedraw)().then((function(){s.focus()}))})),null===(e=this.config.events)||void 0===e||e.on(r.GridEvents.headerCellMouseDown,(function(t){t.id!==o.column.id&&o.blur()})),null===(i=this.config.events)||void 0===i||i.on(r.GridEvents.cellMouseDown,(function(){return o.blur()}))},t}();e.SelectFilter=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InputFilter=void 0;var n=i(0),o=i(2),r=i(8),s=function(){function t(t,e,i,n){this.events=new o.EventSystem,this.column=t,this.config=e,this.id=i,this.value=n||"",this.initHandlers(),this.toHTML()}return t.prototype.toHTML=function(){return(0,n.el)("div.dhx_grid-filter__label.dxi.dxi-magnify",{"aria-label":"Type to search",_ref:"".concat(this.column.id,"_filter")},[(0,n.el)("label",{style:{display:"none"},"aria-label":"Type to search",for:this.id},"Type to search"),(0,n.el)("input",{type:"text",class:"dhx_input dhx_grid-filter",oninput:this._handlers.onchange,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,_key:this.column.id,id:this.id,value:this.value})])},t.prototype.getFilter=function(){return this.toHTML()},t.prototype.setValue=function(t,e){var i;this.value=t||"",this.events.fire(r.HeaderFilterEvent.change,[this.value]),null===(i=this.config.events)||void 0===i||i.fire(r.GridEvents.filterChange,[this.value,this.column.id,"inputFilter",e])},t.prototype.clear=function(t){this.setValue("",t)},t.prototype.focus=function(){var t,e,i,n,o;this._isFocused=!0;var r=null===(n=null===(i=null===(e=null===(t=this.config.events)||void 0===t?void 0:t.context)||void 0===e?void 0:e.getRootView())||void 0===i?void 0:i.refs["".concat(this.column.id,"_filter")])||void 0===n?void 0:n.el;r&&(null===(o=r.querySelector("input"))||void 0===o||o.focus())},t.prototype.blur=function(){var t,e,i,n,o;this._isFocused=!1;var r=null===(n=null===(i=null===(e=null===(t=this.config.events)||void 0===t?void 0:t.context)||void 0===e?void 0:e.getRootView())||void 0===i?void 0:i.refs["".concat(this.column.id,"_filter")])||void 0===n?void 0:n.el;r&&(null===(o=r.querySelector("input"))||void 0===o||o.blur())},t.prototype.initHandlers=function(){var t,e,i,o=this;this._handlers={onchange:function(t){var e,i,n,r,s=(null===(e=t.target)||void 0===e?void 0:e.value)||(null===(n=null===(i=t.composedPath())||void 0===i?void 0:i[0])||void 0===n?void 0:n.value)||(null===(r=t.explicitOriginalTarget)||void 0===r?void 0:r.value);o._inputDelay&&clearTimeout(o._inputDelay),o._inputDelay=setTimeout((function(){return o.setValue(s)}),500)},onfocus:function(){o._isFocused=!0},onblur:function(){o._isFocused=!1}},null===(t=this.config.events)||void 0===t||t.on(r.GridEvents.scroll,(function(){var t,e,i,r,s=null===(r=null===(i=null===(e=null===(t=o.config.events)||void 0===t?void 0:t.context)||void 0===e?void 0:e.getRootView())||void 0===i?void 0:i.refs["".concat(o.column.id,"_filter")])||void 0===r?void 0:r.el;o._isFocused&&s&&(0,n.awaitRedraw)().then((function(){var t;null===(t=s.querySelector("input"))||void 0===t||t.focus()}))})),null===(e=this.config.events)||void 0===e||e.on(r.GridEvents.headerCellMouseDown,(function(t){t.id!==o.column.id&&o.blur()})),null===(i=this.config.events)||void 0===i||i.on(r.GridEvents.cellMouseDown,(function(){return o.blur()}))},t}();e.InputFilter=s},function(t,e,i){"use strict";var n=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.startResize=void 0;var o=i(1),r=i(8),s=i(24);e.startResize=function(t,e,i,a){var l,c=t.config.rightSplit;i.targetTouches&&i.preventDefault();var u=i.targetTouches?i.targetTouches[0].clientX:i.clientX,d=t.config.columns.filter((function(t){return!t.hidden})),h=c?d.slice(-c).map((function(t){return t.id})):[],f=!!(null===(l=t.scrollView)||void 0===l?void 0:l.config.enable),p=c?(0,s.calcScrollBarWidth)(t.config,f).xState:null,v=0;t.config.$resizing=e;var g=function(i){var a,l=(0,o.findIndex)(d,(function(t){return t.id===e})),g=i.targetTouches?i.targetTouches[0].clientX:i.clientX,_=g-t.getRootNode().getBoundingClientRect().left,m=(0,s.calcScrollBarWidth)(t.config,f);if(!(t.config.leftSplit===l+1&&_>=t.config.$width-m.y-2||c&&h.includes(e)&&m.xState!==p)){v=v||d[l].$width;var y,b=d[l].minWidth||40,w=d[l].maxWidth,x=g-u,E=n([],d,!0),C=v+(p&&h.includes(e)?-x:x);w&&C>=w||C<=b?(C<=b&&(y=b),C>=w&&(y=w)):y=C,E[l].$width=y;for(var S=0;S<E.length;S++){(null!==(a=E[S].adjust)&&void 0!==a?a:t.config.adjust)||(E[S].$fixedWidth=S<=l)}t.events.fire(r.GridEvents.resize,[d[l],i]),t.paint()}},_=function(){i.targetTouches?(document.removeEventListener("touchmove",g),document.removeEventListener("touchend",_)):(document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",_)),a()};i.targetTouches?(document.addEventListener("touchmove",g),document.addEventListener("touchend",_)):(document.addEventListener("mousemove",g),document.addEventListener("mouseup",_)),t.paint()}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.getKeysHandlers=e.selectionMove=void 0;var o=i(8),r=i(3),s=i(26);function a(t,e,i,n,o,s,a){if(void 0===o&&(o=!1),void 0===s&&(s=!1),void 0===a&&(a=!1),!e.config.$editable&&e.config.selection&&!(0,r.locateNodeByClassName)(t,"dhx_grid-header-cell")){t&&t.preventDefault();var l=e.selection.getCell(),c=e.config.columns.filter((function(t){return!t.hidden}));if(l)if("vertical"===i)if(o){var u=1===n?e.data.getItem(e.data.getId(e.data.getLength()-1)):e.data.getItem(e.data.getId(0));e.scrollTo(u.id.toString(),l.column.id.toString()),e.selection.setCell(u.id,l.column.id,s,a)}else{if((d=e.data.getIndex(l.row.id.toString()))+n>=0&&d+n<e.data.getLength()){u=e.data.getItem(e.data.getId(d+n));e.scrollTo(u.id.toString(),l.column.id.toString()),e.selection.setCell(u.id,l.column.id,s,a)}}else if(o){u=1===n?c[c.length-1]:c[0];e.scrollTo(l.row.id.toString(),u.id.toString()),e.selection.setCell(l.row.id,u.id,s,a)}else{var d;(d=c.indexOf(l.column))+n>=0&&d+n<c.length&&(e.scrollTo(l.row.id.toString(),c[d+n].id.toString()),e.selection.setCell(l.row.id,c[d+n].id,s,a))}}}function l(t,e){var i,n,o=t.selection.getCell(),r=o&&t.getSpan(o.row.id,o.column.id);if(r){if("up"===e||"down"===e){var s=null===(i=t.config.data)||void 0===i?void 0:i.findIndex((function(t){return t.id===r.row})),a=null===(n=t.config.data)||void 0===n?void 0:n.findIndex((function(t){return t.id===o.row.id}));return"up"===e?s-a-1:s+(r.rowspan||1)-a}var l=t.config.columns.filter((function(t){return!t.hidden}));s=l.findIndex((function(t){return t.id===r.column})),a=l.findIndex((function(t){return t.id===o.column.id}));return"left"===e?s-a-1:s+(r.colspan||1)-a}return"down"===e||"right"===e?1:-1}e.selectionMove=a,e.getKeysHandlers=function(t){var e,i,c,u="cell"===t.config.selection||"complex"===t.config.selection||!0===t.config.selection,d={};if(t.getRootView()){var h=null===(c=null===(i=null===(e=t.getRootView())||void 0===e?void 0:e.refs)||void 0===i?void 0:i.grid_body)||void 0===c?void 0:c.el;if(!h)return;d={pageUp:function(t){t.preventDefault(),h.scrollTop-=h.clientHeight},pageDown:function(t){t.preventDefault(),h.scrollTop+=h.clientHeight},home:function(t){t.preventDefault(),h.scrollTop=0},end:function(t){t.preventDefault(),h.scrollTop+=h.scrollHeight}}}return n({enter:function(){if(u){var e=(0,s.normalizeCell)(t.selection.getCell(),t);if(e&&(!1!==e.column.editable&&t.config.editable||e.column.editable))if(t.config.$editable)t.editEnd();else if("boolean"===e.column.type){if(!t.events.fire(o.GridEvents.beforeEditStart,[e.row,e.column,"checkbox"]))return;if(t.events.fire(o.GridEvents.afterEditStart,[e.row,e.column,"checkbox"]),!t.events.fire(o.GridEvents.beforeEditEnd,[!e.row[e.column.id],e.row,e.column]))return;t.events.fire(o.GridEvents.afterEditEnd,[!e.row[e.column.id],e.row,e.column])}else t.editCell(e.row.id,e.column.id,e.column.editorType)}else t.config.$editable&&t.editEnd()},space:function(e){var i,n=(0,s.normalizeCell)(t.selection.getCell(),t);if(u&&(null!==(i=null==n?void 0:n.column.editable)&&void 0!==i?i:t.config.editable)&&!t.config.$editable&&n&&"boolean"===n.column.type){if(e.preventDefault(),!t.events.fire(o.GridEvents.beforeEditStart,[n.row,n.column,"checkbox"]))return;if(t.events.fire(o.GridEvents.afterEditStart,[n.row,n.column,"checkbox"]),!t.events.fire(o.GridEvents.beforeEditEnd,[!n.row[n.column.id],n.row,n.column]))return;t.events.fire(o.GridEvents.afterEditEnd,[!n.row[n.column.id],n.row,n.column])}},escape:function(){t.config.$editable&&t.editEnd(!0)},tab:function(e){if(t.config.selection&&!(0,r.locateNodeByClassName)(e,"dhx_grid-header-cell")){t.config.$editable&&t.editEnd();var i=t.selection.getCell(),n=t.config.columns.filter((function(t){return!t.hidden}));if(i){var o=n.indexOf(i.column)+l(t,"right");if(o>=0&&o<n.length)e&&e.preventDefault(),t.scrollTo(i.row.id.toString(),n[o].id.toString()),t.selection.setCell(i.row.id,n[o].id);else if(o>=0){var s=t.data.getIndex(i.row.id.toString())+1;s<t.data.getLength()&&(e&&e.preventDefault(),t.scrollTo(t.data.getId(s).toString(),n[0].id.toString()),t.selection.setCell(t.data.getId(s),n[0].id))}}}},"shift+tab":function(e){if(t.config.selection&&!(0,r.locateNodeByClassName)(e,"dhx_grid-header-cell")){t.config.$editable&&t.editEnd();var i=t.selection.getCell(),n=t.config.columns.filter((function(t){return!t.hidden}));if(i){var o=n.indexOf(i.column)+l(t,"left");if(o>=0&&o<n.length)e&&e.preventDefault(),t.scrollTo(i.row.id.toString(),n[o].id.toString()),t.selection.setCell(i.row.id,n[o].id);else if(o<t.data.getLength()){var s=t.data.getIndex(i.row.id.toString())-1;s>=0&&(e&&e.preventDefault(),t.scrollTo(t.data.getId(s).toString(),n[n.length-1].id.toString()),t.selection.setCell(t.data.getId(s),n[n.length-1].id))}}}},arrowUp:function(e){a(e,t,"vertical",l(t,"up"))},"ctrl+arrowUp":function(e){a(e,t,"vertical",-1,!0)},"shift+arrowUp":function(e){t.config.multiselection&&a(e,t,"vertical",-1,!1,!1,!0)},"ctrl+shift+arrowUp":function(e){t.config.multiselection&&a(e,t,"vertical",-1,!0,!1,!0)},arrowDown:function(e){a(e,t,"vertical",l(t,"down"))},"ctrl+arrowDown":function(e){a(e,t,"vertical",1,!0)},"shift+arrowDown":function(e){t.config.multiselection&&a(e,t,"vertical",1,!1,!1,!0)},"ctrl+shift+arrowDown":function(e){t.config.multiselection&&a(e,t,"vertical",1,!0,!1,!0)},arrowRight:function(e){a(e,t,"horizontal",l(t,"right"))},"ctrl+arrowRight":function(e){a(e,t,"horizontal",1,!0)},"shift+arrowRight":function(e){t.config.multiselection&&a(e,t,"horizontal",1,!1,!1,!0)},"ctrl+shift+arrowRight":function(e){t.config.multiselection&&a(e,t,"horizontal",1,!0,!1,!0)},arrowLeft:function(e){a(e,t,"horizontal",l(t,"left"))},"ctrl+arrowLeft":function(e){a(e,t,"horizontal",-1,!0)},"shift+arrowLeft":function(e){t.config.multiselection&&a(e,t,"horizontal",-1,!1,!1,!0)},"ctrl+shift+arrowLeft":function(e){t.config.multiselection&&a(e,t,"horizontal",-1,!0,!1,!0)}},d)}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.ProGrid=void 0;var a=i(8),l=i(7),c=i(3),u=i(18),d=i(97),h=i(0),f=i(19),p=i(16),v=function(t){function e(e,i){var n,o,s=this;return(s=t.call(this,e,r({autoHeight:!1,headerAutoHeight:null!==(n=null==i?void 0:i.headerAutoHeight)&&void 0!==n?n:null==i?void 0:i.autoHeight,footerAutoHeight:null!==(o=null==i?void 0:i.footerAutoHeight)&&void 0!==o?o:null==i?void 0:i.autoHeight},i))||this).scrollView=new f.ScrollView((function(){return s.getRootView()}),{scrollHandler:function(t){return s.events.fire(a.GridEvents.scroll,[{y:t.target.scrollTop,x:t.target.scrollLeft}])}}),s}return o(e,t),e.prototype._createView=function(){var t=this;return(0,h.create)({render:function(e,i){return t._destructed?(0,h.el)("div"):(0,d.proRender)(e,i,t._htmlEvents,t.selection,t._uid)},hooks:this._initHooks()},this)},e.prototype._setEventHandlers=function(){var e=this;t.prototype._setEventHandlers.call(this),this.events.on(a.GridEvents.headerCellMouseDown,(function(t,i){var n,o=(0,c.locateNodeByClassName)(i,"dhx_header-row"),r=o&&o.getAttribute("aria-rowindex");(null===(n=t.header[Number(r)-1])||void 0===n?void 0:n.content)||(i.targetTouches?e._touch.timer=setTimeout((function(){e._dragStartColumn(i,t)}),e._touch.duration):e._dragStartColumn(i,t))})),this._events.on(a.GridSystemEvents.headerCellTouchMove,(function(t,i){e._touch.start&&i.preventDefault(),e._clearTouchTimer()})),this._events.on(a.GridSystemEvents.headerCellTouchEnd,(function(){e._touch.start=!1,e._clearTouchTimer()})),this.events.on(a.GridEvents.afterResizeEnd,(function(){e.config.autoHeight&&(e.config.data=e.data.map((function(t){var i=(0,u.getMaxRowHeight)(t,e.config.columns);return t.$height=(0,u.getCalculatedRowHeight)(i,{rowHeight:e.config.rowHeight}),t})))})),this.events.on(a.GridEvents.afterRowResize,(function(t,i,n){var o=e.data.getItem(t.id),r=o.id,s=o.height,a=o.$height;s&&s!==a&&e.data.update(r,{height:n}),e.data.update(r,{$height:n},!0),e.config.data=e.data.map((function(t){return t})),e.paint()})),this.events.on(a.GridEvents.scroll,(function(){e._lazyLoad()})),this.events.on(l.DataEvents.dataRequest,(function(t,i){var n=e.data.dataProxy;n&&n.config&&e._prepareDataFromTo(e.data,t,i)}))},e.prototype.getNormalizeContentHeight=function(t,e,i){var n,o,r,s=0,a=this.content[t.content],l=t.content&&"function"==typeof a.calculate&&(null===(n=a.toHtml(e,i))||void 0===n?void 0:n.toString()),c=t.text||l||"";if(t.colspan){var d=null===(o=i.columns)||void 0===o?void 0:o.findIndex((function(t){return t.id===e.id})),h=d+t.colspan,f=null===(r=i.columns)||void 0===r?void 0:r.slice(d,h);null==f||f.forEach((function(t){s+=t.$width}))}else s+=e.$width;return(0,u.measureTextHeight)({text:c,width:s-24,htmlEnable:(0,p.isHtmlEnable)(i,e,t),font:"normal 14.4px Arial"})+16},e.prototype._prepareData=function(t){var e=this;return this._normalizeDataType(),this._adjustColumns(),t.map((function(t){if(e.config.autoHeight&&void 0===t.height){var i=e.config.columns.filter((function(t){return!t.hidden})),n=(0,u.getMaxRowHeight)(t,i);t.$height=(0,u.getCalculatedRowHeight)(n,{rowHeight:e.config.rowHeight})||e.config.rowHeight}else t.$height=Number(t.height)||e.config.rowHeight;return t}))},e.prototype._prepareDataFromTo=function(t,e,i){var n=this;return t.mapRange(e,i,(function(t){var e=(0,u.getMaxRowHeight)(t,n.config.columns);return t.$height=(0,u.getCalculatedRowHeight)(e,{rowHeight:n.config.rowHeight})||n.config.rowHeight,t}))},e.prototype._dragStart=function(t){if(this.config.dragMode&&("row"===this.config.dragItem||"both"===this.config.dragItem)&&!this.config.$editable){var e=this.getColumn(t.target.getAttribute("data-dhx-col-id"));if(!1===(null==e?void 0:e.draggable))return;var i=(0,c.locateNode)(t,"data-dhx-id"),n=i&&i.getAttribute("data-dhx-id");t.targetTouches&&(this._touch.start=!0);var o=[n];if(this.config.multiselection&&(o=s(s([],o,!0),this.selection.getCells().map((function(t){return t.row.id})),!0)).length>1){for(var r=this.data.getInitialData(),a={},u=function(t){var e=o[t],i=null==r?void 0:r.findIndex((function(t){return t.id==e}));a[i]=e},d=0;d<o.length;d++)u(d);o=s([],Object.values(a),!0)}return l.dragManager.onMouseDown(t,o,[this._getRowGhost(o)])}},e.prototype._lazyLoad=function(){var t,e,i=this,n=this.data.dataProxy;if(n&&n.config){var o=this.data.getRawData(0,-1,null,2);if(!o.length)return;var r,s=(0,d.getRenderConfig)(this,o,{width:this.config.$width,height:this.config.$height}),a=n.config.limit,c=a,u=s.currentRows,h=u[0],f=u[u.length-1],p=this.data.getIndex(f.id),v=function(t){for(var e=1;e<u.length;e++)if("firstFilledRow"===t&&!u[e].$empty&&u[e-1].$empty||"firstEmptyRow"===t&&u[e].$empty&&!u[e-1].$empty)return i.data.getIndex(u[e].id)};if(h.$empty)if(f.$empty)r=this.data.getIndex(h.id);else{var g=v("firstFilledRow"),_=g-c;_<0&&(_=0);for(var m=_;m<g;m++)if(this.data.getItem(this.data.getId(m)).$empty){r=m,c=g-m;break}}else f.$empty?r=v("firstEmptyRow"):(r=null!==(t=v("firstEmptyRow"))&&void 0!==t?t:this.data.getIndex(h.id),c=(null!==(e=v("firstFilledRow"))&&void 0!==e?e:p)-r);!this.data.isDataLoaded(r,p)&&this.data.events.fire(l.DataEvents.beforeLazyLoad,[])&&(n.updateUrl(null,{from:r,limit:c}),n.config.limit=a,this.data.load(n).then((function(){i.config.autoHeight&&i._prepareDataFromTo(i.data,r,p)})))}},e.prototype._getColumnGhost=function(t){var e=this._container||(0,c.toNode)(this._uid),i=e.querySelector(".dhx_header-row"),n=i.querySelector('.dhx_grid-header-cell[data-dhx-id="'.concat(t.id,'"]')),o=Array.from(i.childNodes).indexOf(n)+1,r=e.querySelectorAll('.dhx_grid-header-cell[data-dhx-id="'.concat(t.id,'"]:not(.dhx_span-cell)')),s=e.querySelectorAll(".dhx_grid_data .dhx_grid-cell:nth-child(".concat(o,")")),a=document.createElement("div");return r.forEach((function(t){return a.appendChild(t.cloneNode(!0))})),s.forEach((function(t){return a.appendChild(t.cloneNode(!0))})),a},e.prototype._dragStartColumn=function(t,e){var i=t.target,n=function(t){return t.classList.contains("dhx_grid-custom-content-cell")};n(i.parentElement)||n(i.parentElement.parentElement)||!(e.draggable||"column"===this.config.dragItem&&!1!==e.draggable||"both"===this.config.dragItem&&!1!==e.draggable)||(0,c.locateNodeByClassName)(t,"dhx_resizer_grip_wrap")||(t.targetTouches&&(this._touch.start=!0),l.dragManager.onMouseDown(t,[e.id],[this._getColumnGhost(e)]))},e}(i(96).Grid);e.ProGrid=v},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(231),e),o(i(232),e)},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.ContextMenu=void 0;var r=i(1),s=i(3),a=i(12),l=i(20),c=function(t){function e(e,i){var n=t.call(this,e,(0,r.extend)({$name:"context-menu"},i))||this;return n._isContextMenu=!0,n}return o(e,t),e.prototype.showAt=function(t,e){if(void 0===e&&(e="bottom"),t instanceof MouseEvent)this._close(t),this._changeActivePosition({left:window.pageXOffset+t.x+1,right:window.pageXOffset+t.x+1,top:window.pageYOffset+t.y,bottom:window.pageYOffset+t.y,zIndex:(0,a.getZIndex)(t.target)},e);else if(window.TouchEvent&&t instanceof TouchEvent)this._close(t),this._changeActivePosition({left:window.pageXOffset+t.touches[0].clientX,right:window.pageXOffset+t.touches[0].clientX,top:window.pageYOffset+t.touches[0].clientY,bottom:window.pageYOffset+t.touches[0].clientY,zIndex:(0,a.getZIndex)(t.target)},e);else if(t instanceof HTMLElement||"string"==typeof t){var i=(0,s.toNode)(t);this._changeActivePosition((0,s.getRealPosition)(i),e)}},e.prototype._getFactory=function(){return(0,l.createFactory)({widget:this,defaultType:"menuItem",allowedTypes:["menuItem","spacer","separator","customHTML","customHTMLButton"],widgetName:"context-menu"})},e.prototype._close=function(e){var i=this;this.events.on(l.NavigationBarEvents.afterHide,(function(){i._activeMenu=null,i._changeActivePosition(null,null)})),t.prototype._close.call(this,e)},e.prototype._getMode=function(t,e,i){return i?this._mode:"right"},e.prototype._changeActivePosition=function(t,e){this._activePosition=t,this._mode=e,this._listenOuterClick(),this.paint()},e}(l.Navbar);e.ContextMenu=c},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.Menu=void 0;var r=i(1),s=i(0),a=i(20),l=function(t){function e(e,i){var n=t.call(this,e,(0,r.extend)({$name:"menu"},i))||this;return n.mount(e,(0,s.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype._getFactory=function(){return(0,a.createFactory)({widget:this,defaultType:"menuItem",allowedTypes:["menuItem","spacer","separator","customHTML","customHTMLButton"],widgetName:"menu-nav"})},e.prototype._getMode=function(t,e){return t.id===e?"bottom":"right"},e.prototype._close=function(e){this._activePosition=null,this._currentRoot=null,t.prototype._close.call(this,e)},e.prototype._setRoot=function(t){this.data.getParent(t)===this.data.getRoot()&&(this._currentRoot=t)},e.prototype._draw=function(){return(0,s.el)("ul.dhx_widget",{"data-dhx-widget-id":this._uid,onmousemove:this._handlers.onmousemove,onmouseleave:this._handlers.onmouseleave,onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,onkeydown:this._handlers.onkeydown,class:"dhx_menu-nav "+(this.config.css?this.config.css:"")},this._drawMenuItems(this.data.getRoot(),!1))},e}(a.Navbar);e.Menu=l},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(100),e),o(i(234),e)},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.ProRibbon=void 0;var r=i(100),s=i(19),a=i(0),l=i(3),c=i(12),u=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.scrollView=new s.ScrollView((function(){return n.getRootView()})),n}return o(e,t),e.prototype._draw=function(){var t=this;this._heightCalculate();var e=[(0,a.el)("ul.dhx_ribbon-content.dhx_ribbon-content--full-width",{style:{height:Math.max.apply(Math,this._widgetHeight)}},this.data.map((function(e){return"block"===e.type?t._drawBlock(e,!0):t._factory(e)}),this.data.getRoot(),!1))],i=Math.max.apply(Math,this._widgetHeight);return(0,a.el)("ul.dhx_ribbon.dhx_widget",{"data-dhx-widget-id":this._uid,class:this.config.css?this.config.css:"",tabindex:0,onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,oninput:this._listeners.input,onmouseover:this._listeners.tooltip,onkeydown:this._handlers.onkeydown,_hooks:{didInsert:function(e){e.el.addEventListener("keyup",(function(e){if(9===e.which){var i=(0,l.locateNode)(document.activeElement);if(i){var n=i.getAttribute("data-dhx-id"),o=t.data.getItem(n);o.tooltip&&(0,c.tooltip)(o.tooltip,{node:i,position:c.Position.bottom,force:!0})}}}),!0)}}},[(0,a.el)("li",{class:"dhx_ribbon-block dhx_ribbon-block--root",style:{height:this._haveTitle?i+24:i}},this.scrollView&&this.scrollView.config.enable?[].concat(this.scrollView.render(e)):e)])},e}(r.Ribbon);e.ProRibbon=u},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(101),e),o(i(236),e),o(i(102),e)},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.ProSidebar=void 0;var r=i(0),s=i(3),a=i(19),l=i(101),c=i(12),u=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.scrollView=new a.ScrollView((function(){return n.getRootView()})),n}return o(e,t),e.prototype._draw=function(){var t=this,e=this.config,i=e.width,n=e.minWidth,o=this.config.collapsed?n:i,a=[(0,r.el)("ul.dhx_navbar.dhx_navbar--vertical",{"data-dhx-widget-id":this._uid,tabindex:0,onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,oninput:this._handlers.input,onmouseover:this._handlers.tooltip,onkeydown:this._handlers.onkeydown,_hooks:{didInsert:function(e){e.el.addEventListener("keyup",(function(e){if(9===e.which){var i=(0,s.locateNode)(document.activeElement);if(i){var n=i.getAttribute("data-dhx-id"),o=t.data.getItem(n);(o.tooltip||t.config.collapsed&&o.value)&&(0,c.tooltip)(o.tooltip||o.value,{node:i,position:c.Position.right,force:!0})}}}),!0)}}},this.data.map((function(e){return t._factory(e)}),this.data.getRoot(),!1))];return(0,r.el)("nav.dhx_widget.dhx_sidebar",{class:(this.config.css?this.config.css:"")+(this.config.collapsed?" dhx_sidebar--minimized":""),style:{width:o+"px"}},this.scrollView&&this.scrollView.config.enable?[].concat(this.scrollView.render(a)):a)},e}(l.Sidebar);e.ProSidebar=u},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(238),e),o(i(103),e)},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Tabbar=void 0;var a=i(1),l=i(0),c=i(2),u=i(3),d=i(14),h=i(21),f=i(11),p=i(103),v=function(t){function e(e,i){var n=t.call(this,e,(0,a.extend)({mode:"top"},i))||this;if(n._tabFontSize=14,n._keyManager=new d.KeyManager((function(){return(0,u.locate)(document.activeElement,"tabs_id")===n._uid})),n._initHotkeys(),n.config.disabled){var o=n.config.disabled,r=n._cells.map((function(t){return t.id}));Array.isArray(o)?o.forEach((function(t){r.includes(t)&&!n._disabled.includes(t)&&n._disabled.push(t)})):r.includes(o)&&!n._disabled.includes(o)&&n._disabled.push(o),n.paint()}return n.events=new c.EventSystem(n),h.focusManager.setFocusId(n._uid),n}return o(e,t),e.prototype.toVDOM=function(){var t=this;this._getTabContainer();var e=null;if(!this.config.noContent&&(e=this.getCell(this.config.activeView))){var i=this._disabled.includes(this.config.activeView)?" dhx_tabbar-content--disabled":"";e.config.css?-1!==e.config.css.indexOf("dhx_tabbar-content--disabled")?e.config.css=e.config.css.replace("dhx_tabbar-content--disabled",""):e.config.css=e.config.css+i:e.config.css=i}return(0,l.awaitRedraw)().then((function(){t._tabsContainer||t.paint()})),this._tabsContainer&&(this._tabFontSize=parseFloat(getComputedStyle(this._tabsContainer).getPropertyValue("font-size"))),(0,l.el)("div",{class:"dhx_widget dhx_tabbar"+(this.config.mode?" dhx_tabbar--"+this.config.mode:"")+(this.config.css?" "+this.config.css:"")},this._tabsContainer?s(s([],this._drawTabs(),!0),[e?e.toVDOM():null],!1):[])},e.prototype.destructor=function(){this.events&&this.events.clear(),this._keyManager&&this._keyManager.destructor(),t.prototype.destructor.call(this),this.unmount(),this._tabsContainer=this._beforeScrollSize=this._afterScrollSize=this._keyManager=null,this.config=this.events=this._cells=this._handlers=null},e.prototype.getWidget=function(){var t=this;return this._cells.filter((function(e){return t.getActive()===e.id}))[0].getWidget()},e.prototype.setActive=function(t){if(this._cells.map((function(t){return t.id})).includes(t)&&!this._disabled.includes(t)){var e=this.config.activeView;if(!this.events.fire(p.TabbarEvents.beforeChange,[t,e]))return;this.config.activeView=t,this.getCell(t).show(),this._focusTab(t),this.events.fire(p.TabbarEvents.change,[t,e])}},e.prototype.getActive=function(){return this.config?this.config.activeView:null},e.prototype.addTab=function(t,e){this.addCell(t,e),1!==this._cells.length||t.disabled||this.setActive(this._cells[0].id)},e.prototype.removeTab=function(e){var i=this;if(this.events.fire(p.TabbarEvents.beforeClose,[e])){if(e===this.config.activeView){var n=this._getEnableTabs().length,o=(0,a.findIndex)(this._getEnableTabs(),(function(t){return t.id===i.config.activeView}));if(o<0)return;o===n-1&&(o-=1),t.prototype.removeCell.call(this,e),1===n?this.config.activeView=null:this.setActive(this._getEnableTabs()[o].id)}else t.prototype.removeCell.call(this,e);this.events.fire(p.TabbarEvents.afterClose,[e]),this.events.fire(p.TabbarEvents.close,[e])}},e.prototype.disableTab=function(t){return!(!this._cells.map((function(t){return t.id})).includes(t)||this._disabled.includes(t))&&(this._disabled.push(t),this.paint(),!0)},e.prototype.enableTab=function(t){if(this._disabled.includes(t)){var e=this._disabled.filter((function(e){return e!==t}));this._disabled=s([],e,!0),this.paint()}},e.prototype.isDisabled=function(t){return this._disabled.includes(t||this.config.activeView)},e.prototype.removeCell=function(t){this.removeTab(t)},e.prototype._initHandlers=function(){var e=this;t.prototype._initHandlers.call(this),this._handlers=r(r({},this._handlers),{onTabClick:function(t){(0,l.awaitRedraw)().then((function(){var i=(0,u.locate)(t,"dhx_tabid");if(i&&!e._disabled.includes(i)){var n=e.config.activeView;if(t.target.classList.contains("dhx_tabbar-tab__close"))e.removeTab(i);else{if(!e.events.fire(p.TabbarEvents.beforeChange,[i,n]))return;e.config.activeView=i,n!==i&&e.events.fire(p.TabbarEvents.change,[e.config.activeView,n])}e.paint()}}))},onScrollClick:function(t){var i=(0,u.locate)(t,"mode");if(!i)switch(t.key){case"ArrowRight":i="right";break;case"ArrowLeft":i="left";break;case"ArrowUp":i="up";break;case"ArrowDown":i="down"}var n={behavior:"smooth"};if(e._isHorizontalMode()){var o,r=e._normalizeSize({width:e._getSizes(e._cells[0].config).width}).width,s=e._normalizeSize({width:e._getSizes(e._cells[e._cells.length-1].config).width}).width;e._tabsContainer&&(o=e._tabsContainer.scrollWidth,e._cells.reduce((function(t,n,a){if(t>=e._tabsContainer.scrollLeft&&0!==a&&"left"===i)r=Math.abs(e._normalizeSize({width:e._getSizes(e._cells[a-1].config).width}).width-(t-e._tabsContainer.scrollLeft));else{if(!(t>o+e._tabsContainer.scrollLeft&&"right"===i))return t+e._normalizeSize({width:e._getSizes(n.config).width}).width;s=Math.abs(o+e._tabsContainer.scrollLeft-t)}}),0)),n.left="left"===i?e._tabsContainer.scrollLeft-r:e._tabsContainer.scrollLeft+s}else{var a,l=e._normalizeSize({height:e._getSizes(e._cells[0].config).height}).height,c=e._normalizeSize({height:e._getSizes(e._cells[e._cells.length-1].config).height}).height;e._tabsContainer&&(a=e._tabsContainer.clientHeight,e._cells.reduce((function(t,n,o){if(t>=e._tabsContainer.scrollTop&&0!==o&&"up"===i)l=Math.abs(e._normalizeSize({height:e._getSizes(e._cells[o-1].config).height}).height-(t-e._tabsContainer.scrollTop));else{if(!(t>a+e._tabsContainer.scrollTop&&"down"===i))return t+e._normalizeSize({height:e._getSizes(n.config).height}).height;c=Math.abs(a+e._tabsContainer.scrollTop-t)}}),0)),n.top="up"===i?e._tabsContainer.scrollTop-l:e._tabsContainer.scrollTop+c}(0,u.isIE)()?(e._tabsContainer.scrollLeft=n.left,e._tabsContainer.scrollTop=n.top):e._tabsContainer.scrollTo(n)},onHeaderScroll:(0,a.debounce)((function(){e.paint()}),10)})},e.prototype._isHorizontalMode=function(){return"bottom"===this.config.mode||"top"===this.config.mode},e.prototype._focusTab=function(t,e){var i=this;(0,l.awaitRedraw)().then((function(){i.getRootView().refs[t].el.focus(),e&&i._handlers.onScrollClick(e)}))},e.prototype._getEnableTabs=function(){var t=this;return this._cells.filter((function(e){return!t._disabled.includes(e.config.id)}))},e.prototype._getIndicatorPosition=function(){var t=this,e=(0,a.findIndex)(this._cells,(function(e){return e.id===t.config.activeView}));-1===e&&(e=0);var i=this.getCell(this.config.activeView);if(this._isHorizontalMode()){var n=this._normalizeSize({width:this._getSizes(i.config).width}),o=n.width,r=n.unit,s=this._tabsContainer.clientWidth,l=this._cells.reduce((function(i,n,o){var r=t._normalizeSize({width:t._getSizes(n.config).width});return"%"===r.unit&&(r.width=s/100*r.width),o<e?i+r.width:i}),0);return{left:0,transform:"translateX(".concat(l,"px)"),transition:"all 0.1s ease",width:o+r,height:"2px"}}var c=this._normalizeSize({height:this._getSizes(i.config).height}),u=c.height,d=(r=c.unit,this._tabsContainer.clientHeight),h=this._cells.reduce((function(i,n,o){var r=t._normalizeSize({height:t._getSizes(n.config).height});return"%"===r.unit&&(r.height=d/100*r.height),o<e?i+r.height:i}),0);return{top:0,transform:"translateY(".concat(h,"px)"),transition:"all 0.1s ease",height:u+r,width:"2px"}},e.prototype._drawTabs=function(){var t,e,i,n=this;if(!this._cells.length)return[];this._beforeScrollSize=0,this._afterScrollSize=0;var o=this._isHorizontalMode();o?(e=this._tabsContainer.clientWidth,i=Math.round(this._cells.reduce((function(t,e){return n._normalizeSize({width:n._getSizes(e.config).width}).width+t}),0)),this._tabsContainer&&i>=e?(this._beforeScrollSize=this._tabsContainer.scrollLeft,this._afterScrollSize=i-(e+this._beforeScrollSize)):i>=e&&(this._afterScrollSize=i-e),t={height:this.config.tabHeight||"45px",top:"top"===this.config.mode?0:""}):(e=this._tabsContainer.clientHeight,i=Math.round(this._cells.reduce((function(t,e){return n._normalizeSize({height:n._getSizes(e.config).height}).height+t}),0)),this._tabsContainer&&i>=e?(this._beforeScrollSize=this._tabsContainer.scrollTop,this._afterScrollSize=i-(e+this._beforeScrollSize)):this._afterScrollSize=i-e,t={width:this.config.tabWidth||"200px",left:"left"===this.config.mode?0:""});var r=this._getIndicatorPosition();return[(0,l.el)(".dhx_tabbar-header__wrapper",{onscroll:this._handlers.onHeaderScroll,class:this.config.tabAlign&&this._beforeScrollSize<=0&&this._afterScrollSize<=0?"dhx_tabbar-header__wrapper-".concat(this.config.tabAlign):""},[(0,l.el)("ul."+this.config.mode,{tabs_id:this._uid,class:"dhx_tabbar-header ",onclick:this._handlers.onTabClick},s(s([],this._cells.map((function(t){var e=n.config,i=e.closable,o=e.closeButtons,r=e.activeView,s=n._disabled.includes(t.config.id);return(0,l.el)("li",{class:"dhx_tabbar-tab"+(t.config.tabCss?" ".concat(t.config.tabCss):""),dhx_tabid:t.id,role:"presentation",style:n._getSizes(t.config)},[(0,l.el)("button.dhx_button.dhx_tabbar-tab-button"+(r===t.id?".dhx_tabbar-tab-button--active":"")+(s?".dhx_tabbar-tab-button--disabled":""),{tabindex:"0","aria-controls":t.id,id:"tab-content-"+t.id,"aria-selected":"".concat(r===t.id),_ref:t.id.toString(),type:"button",disabled:s},[(0,l.el)("span.dhx_button__text",t.config.tab)]),Array.isArray(i)&&i.includes(t.config.id)&&!s||i&&"boolean"==typeof i&&!s||o&&"boolean"==typeof o&&!s?(0,l.el)("div.dhx_tabbar-tab__close.dxi--small.dxi.dxi-close",{tabindex:0,role:"button","aria-pressed":"false"}):null])})),!0),[(0,l.el)(".dhx_tabbar-header-active",{style:r})],!1))]),this._beforeScrollSize>0&&(0,l.el)(".dhx_tabbar_scroll",{class:"dxi dxi-chevron-".concat(o?"left":"up"," arrow-").concat(o?"left":"up"),_key:"startArrow",onclick:this._handlers.onScrollClick,mode:o?"left":"up",style:t}),this._afterScrollSize>0&&(0,l.el)(".dhx_tabbar_scroll",{class:"dxi dxi-chevron-".concat(o?"right":"down"," arrow-").concat(o?"right":"down"),_key:"endArrow",onclick:this._handlers.onScrollClick,mode:o?"right":"down",style:t})]},e.prototype._getSizes=function(t){"number"==typeof t.tabWidth&&(t.tabWidth=t.tabWidth+"px"),"number"==typeof t.tabHeight&&(t.tabHeight=t.tabHeight+"px"),"number"==typeof this.config.tabWidth&&(this.config.tabWidth=this.config.tabWidth+"px"),"number"==typeof this.config.tabHeight&&(this.config.tabHeight=this.config.tabHeight+"px");var e=this.config.tabWidth||(this._isHorizontalMode()?(0,a.getStringWidth)(t.tab.toUpperCase(),{font:"500 ".concat(this._tabFontSize,".4px Arial")})+50+"px":"200px"),i=this.config.tabHeight||"45px";return this._isHorizontalMode()?void 0!==t.tabWidth&&(e=t.tabWidth):void 0!==t.tabHeight&&(i=t.tabHeight),(this.config.tabAutoWidth&&!1!==t.tabAutoWidth||t.tabAutoWidth)&&void 0===this.config.tabWidth&&void 0===t.tabWidth&&(e=this._getTabAutoWidth()),(this.config.tabAutoHeight&&!1!==t.tabAutoHeight||t.tabAutoHeight)&&void 0===this.config.tabHeight&&void 0===t.tabHeight&&(i=this._getTabAutoHeight()),{width:e,height:i}},e.prototype._normalizeSize=function(t){var e={};if(Object.keys(t).length>=1)for(var i in t)"number"==typeof t[i]?e.unit="px":(t[i].includes("%")?(e[i]=t[i].slice(0,-1),e.unit="%"):t[i].includes("px")&&(e[i]=t[i].slice(0,-2),e.unit="px"),e[i]=parseFloat(e[i]));return e},e.prototype._getTabAutoWidth=function(){var t=this,e=this._tabsContainer.clientWidth,i=0,n=0;return this._cells.forEach((function(e){e.config.tabAutoWidth||t.config.tabAutoWidth&&!1!==e.config.tabAutoWidth?e.config.tabWidth?i+=t._normalizeSize({width:e.config.tabWidth}).width:n++:i+=t._normalizeSize({width:t._getSizes(e.config).width}).width})),(e-i)/n+"px"},e.prototype._getTabAutoHeight=function(){var t=this,e=this._tabsContainer.clientHeight,i=0,n=0;return this._cells.forEach((function(e){e.config.tabAutoHeight||t.config.tabAutoHeight&&!1!==e.config.tabAutoHeight?e.config.tabHeight?i+=t._normalizeSize({height:e.config.tabHeight}).height:n++:i+=t._normalizeSize({height:t._getSizes(e.config).height}).height})),(e-i)/n+"px"},e.prototype._getTabContainer=function(){var t=this;if(this._tabsContainer)if(this.getRootNode()){var e=this.getRootNode(),i=null==e?void 0:e.getElementsByClassName("dhx_tabbar-header__wrapper")[0];this._tabsContainer!==i&&(this._tabsContainer=i||e,this.paint())}else(0,l.awaitRedraw)().then((function(){return t.paint()}));else this._tabsContainer=this.getRootNode(),this.paint()},e.prototype._initHotkeys=function(){var t=this,e=function(e){e.preventDefault();var i=t._getEnableTabs(),n=(0,a.findIndex)(i,(function(e){return e.id===t.config.activeView})),o=t.config.activeView;if(-1!==n){var r=n===i.length-1?i[0].id:i[n+1].id;t.events.fire(p.TabbarEvents.beforeChange,[r,o])&&(t.config.activeView=r,t.events.fire(p.TabbarEvents.change,[t.config.activeView,o]),t._focusTab(t.config.activeView,e),t.paint())}},i=function(e){e.preventDefault();var i=t._getEnableTabs(),n=(0,a.findIndex)(i,(function(e){return e.id===t.config.activeView})),o=t.config.activeView;if(-1!==n){var r=0===n?i[i.length-1].id:i[n-1].id;t.events.fire(p.TabbarEvents.beforeChange,[r,o])&&(t.config.activeView=r,t.events.fire(p.TabbarEvents.change,[t.config.activeView,o]),t._focusTab(t.config.activeView,e),t.paint())}},n="right"===this.config.mode||"left"===this.config.mode,o={arrowRight:e,arrowUp:n?i:e,arrowLeft:i,arrowDown:n?e:i};for(var r in o)this._keyManager.addHotKey(r,o[r])},e}(f.Layout);e.Tabbar=v},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(240),e),o(i(104),e),o(i(105),e)},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Tree=void 0;var s=i(1),a=i(0),l=i(2),c=i(3),u=i(28),d=i(9),h=i(7),f=i(104),p=i(14),v=i(21),g=i(105);function _(t){return 20*t}function m(t,e){return t?e?"openFolder":"folder":"file"}var y=function(t){function e(e,i){void 0===i&&(i={});var n=t.call(this,e,i)||this;n._touch={duration:350,dblDuration:300,timer:null,start:!1,timeStamp:null},n.config=(0,s.extend)({dropBehaviour:"child",icon:{file:"dxi dxi-file-outline",folder:"dxi dxi-folder",openFolder:"dxi dxi-folder-open"},keyNavigation:!0,editable:!1,selection:!0,rootId:"string"==typeof e&&e||n._uid},i),n.config.editable=n.config.editable||n.config.editing;var o=function(t){var e,i;return n.config.collapsed&&(null===(e=t.items)||void 0===e?void 0:e.length)&&(t.opened=!1),t.checkbox=null!==(i=t.checkbox)&&void 0!==i?i:n.config.checkbox,t.$autoload=Boolean(t.items&&"string"==typeof n.config.autoload),t.$editor=!1,t.checked?t.$mark=g.SelectStatus.selected:(t.$mark=g.SelectStatus.unselected,t.checked=!1),t};Array.isArray(n.config.data)?(n.events=new l.EventSystem(n),n.data=new h.TreeCollection({autoload:n.config.autoload,init:o,rootId:n.config.rootId||e},n.events),n.data.parse(n.config.data)):n.config.data&&n.config.data.events?(n.data=n.config.data,n.data.config.init=o,n.events=n.data.events,n.events.context=n):(n.events=new l.EventSystem(n),n.data=new h.TreeCollection({autoload:n.config.autoload,init:o,rootId:n.config.rootId||e},n.events)),n.config.checkbox&&n._normalizeMark(),n._isSelectionActive=!0,n.selection=new h.Selection({disabled:!n.config.selection},n.data,n.events),n.config.keyNavigation&&(n._keyManager=new p.KeyManager((function(t,e){return e===n._uid})),n._initHotkeys()),n._editor=new f.Editor,n._initEvents(),n._initHandlers(),n.config.dragMode&&h.dragManager.setItem(n._uid,n),n._root=n.data.getRoot();return n.mount(e,(0,a.create)({render:function(){return n._draw()}})),v.focusManager.setFocusId(n._uid),n}return o(e,t),e.prototype.focusItem=function(t){var e=this;this._focusId=t,this.data.eachParent(t,(function(t){t.opened||e.expand(t.id)})),(0,a.awaitRedraw)().then((function(){return e._scrollTo(t)})),this.events.fire(g.TreeEvents.focusChange,[this.data.getIndex(t),t]),this.paint()},e.prototype.destructor=function(){this.events&&this.events.clear(),this._keyManager&&this._keyManager.destructor(),this.config=this.events=this.selection=null,this._editor=this._handlers=this._root=this._focusId=this._right=this._keyManager=this._touch=this._isDraget=null,this.unmount()},e.prototype.editItem=function(t,e){if(!this._editor.isEditable()){var i=this.data.getItem(t);this.events.fire(g.TreeEvents.beforeEditStart,[i.value,t])&&(this.data.update(t,{$edit:!0,$editConfig:e},!0),this.events.fire(g.TreeEvents.afterEditStart,[i.value,t]))}},e.prototype.getState=function(){var t={};return this.data.eachChild(this._root,(function(e){t[e.id]={open:e.opened,selected:e.$mark}}),!0),t},e.prototype.setState=function(t){this.data.eachChild(this._root,(function(e){e.id in t&&(e.opened=t[e.id].open,e.$mark=t[e.id].selected)}),!0),this.paint()},e.prototype.toggle=function(t){var e=this.data.getItem(t);if(e.$autoload){if(!this.events.fire(g.TreeEvents.beforeExpand,[t]))return;this.data.loadItems(t),this.data.update(t,{$autoload:!1,opened:!0}),this.events.fire(g.TreeEvents.afterExpand,[t])}else e.opened?this.collapse(t):this.expand(t)},e.prototype.getChecked=function(){var t=[];return this.data.eachChild(this._root,(function(e){e.$mark===g.SelectStatus.selected&&t.push(e.id)})),t},e.prototype.checkItem=function(t){(0,s.isId)(t)&&this.data.getItem(t)&&(this._updateItemCheck(t,g.SelectStatus.selected),this.paint())},e.prototype.collapse=function(t){if(this.data.haveItems(t)){if(!this.events.fire(g.TreeEvents.beforeCollapse,[t]))return;this.data.update(t,{opened:!1}),this.events.fire(g.TreeEvents.afterCollapse,[t])}},e.prototype.collapseAll=function(){var t=this;this.data.eachChild(this._root,(function(e){var i=e.id;return t.collapse(i)}),!0)},e.prototype.expand=function(t){if(this.data.haveItems(t)){if(!this.events.fire(g.TreeEvents.beforeExpand,[t]))return;this.data.update(t,{opened:!0}),this.events.fire(g.TreeEvents.afterExpand,[t])}},e.prototype.expandAll=function(){var t=this;this.data.eachChild(this._root,(function(e){var i=e.id;return t.expand(i)}),!0)},e.prototype.uncheckItem=function(t){(0,s.isId)(t)&&this.data.getItem(t)&&(this._updateItemCheck(t,g.SelectStatus.unselected),this.paint())},e.prototype.close=function(t){this.collapse(t)},e.prototype.closeAll=function(){this.collapseAll()},e.prototype.open=function(t){this.expand(t)},e.prototype.openAll=function(){this.expandAll()},e.prototype.unCheckItem=function(t){this.uncheckItem(t)},e.prototype._draw=function(){this._getRightPos();var t=this._drawItems(this.data.getRoot());return(0,a.el)("ul",r({class:"dhx_widget dhx_tree"+(this._isSelectionActive?"":" dhx_tree--no-selection ")+(this.config.css?" "+this.config.css:""),"data-dhx-widget-id":this._uid,tabindex:0,"data-dhx-root-id":this.config.rootId},this._handlers),t)},e.prototype._initEvents=function(){var t=this;this.data.events.on(h.DataEvents.load,(function(){t.config.checkbox&&(t._normalizeMark(),t.paint())})),this.data.events.on(h.DataEvents.change,(function(e,i,n){"remove"===i&&t._updateParents(n.parent,!0),"add"===i&&t._updateParents(e),t.paint()})),this.data.events.on(h.DataEvents.filter,(function(){t.paint()})),this.data.events.on(h.DataEvents.beforeRemove,(function(e){var i=e.id,n=e.parent;if(i==t._focusId){var o=t.data.findAll((function(t){return t.parent===n})),r=n;if(o.length>1){var s=o.findIndex((function(t){return t.id===i}));r=o[s===o.length-1?o.length-2:s+1].id}t.selection.remove(i),t.selection.add(r),t.focusItem(r)}})),this._editor.events.on(f.EditorEvents.begin,(function(e){e===t._uid&&(t.config.$editable=!0)})),this._editor.events.on(f.EditorEvents.end,(function(e,i,n){if(!t.events.fire(g.TreeEvents.beforeEditEnd,[n,i]))return!1;t._uid===e&&t.data.update(i,{$edit:!1,value:n}),t.config.$editable=!1,t.events.fire(g.TreeEvents.afterEditEnd,[n,i])})),this.events.on(h.DragEvents.beforeDrag,(function(e,i,n){var o=e.start,r=t.data.getItem(o),s=m(t.config.isFolder?t.config.isFolder(r):t.data.haveItems(r.id),r.opened),a=(r.icon||t.config.icon)[s]||t.config.icon[s];n.innerHTML='<div class="dhx_tree-list-item__icon '.concat(a,'"></div><span class="dhx_tree-list-item__text">').concat(r.text||r.value,"</span>")})),this.events.on(h.DragEvents.canDrop,(function(e){var i,n=e.target,o=e.dropPosition;i="complex"===t.config.dropBehaviour?"top"===o?"dhx_tree-drop--top":"bottom"===o?"dhx_tree-drop--bottom":"dhx_tree-drop--in-folder":"child"===t.config.dropBehaviour?"dhx_tree-drop--in-folder":"dhx_tree-drop--bottom",t.data.exists(n)&&t.data.update(n,{$drophere:i},!0),t.paint()})),this.events.on(h.DragEvents.cancelDrop,(function(e){var i=e.target;t.data.exists(i)&&t.data.update(i,{$drophere:null},!0)})),this.events.on(h.DragEvents.afterDrop,(function(e){var i=e.target,n=e.dropPosition;("child"===t.config.dropBehaviour||"complex"===t.config.dropBehaviour&&"in"===n)&&t.expand(i)})),this.events.on(h.DragEvents.dragStart,(function(){t._isSelectionActive=!1,t._autoScroll(),t.paint()})),this.events.on(h.DragEvents.afterDrag,(function(e){t._isSelectionActive=!0,t._isDraget=!0,t.data.exists(e.start)&&t.selection.add(e.start),t.paint()})),this.events.on(g.TreeEvents.itemClick,(function(e){t._focusId=e,t.paint()})),this.events.on(u.SelectionEvents.afterSelect,(function(){return t.paint()})),this.events.on(u.SelectionEvents.afterUnSelect,(function(){return t.paint()}))},e.prototype._autoScroll=function(){var t=this.getRootNode();if(t){var e=null,i=t.getBoundingClientRect(),n=i.top,o=i.bottom,r=i.left,s=i.right,a=i.height,l=function(i){"up"===i||"down"===i?t.scrollBy(0,"up"===i?-20:20):t.scrollBy("left"===i?-20:20,0),e=setTimeout((function(){l(i)}),100)},c=function(t){var i=t.clientX,a=t.clientY;a>o-20&&a<o&&i>r&&i<s?e||l("down"):a>n&&a<n+20&&i>r&&i<s?e||l("up"):e&&(clearTimeout(e),e=null)};a<t.scrollHeight&&(document.addEventListener("pointermove",c),document.addEventListener("pointerup",(function(){document.removeEventListener("pointermove",c),e&&clearTimeout(e)}),{once:!0}))}},e.prototype._scrollTo=function(t){var e=this.getRootNode(),i=e.querySelector('[data-dhx-id="'.concat(t,'"]'));if(i){var n=e.getBoundingClientRect(),o=i.getBoundingClientRect(),r=o.top-n.top,s=o.top+o.height-n.top-n.height;r<0?e.scrollBy(0,r):s>0&&e.scrollBy(0,s)}},e.prototype._initHandlers=function(){var t=this;this._handlers={onmouseleave:function(t){h.dragManager.cancelCanDrop(t)},onclick:function(e){if(t._isDraget)t._isDraget=!1;else{var i=(0,c.locate)(e);if(i)if(e.target.classList.contains("dhx_tree-toggle-button"))t.toggle(i);else{if(e.target.classList.contains("dhx_tree-checkbox")){if(!t.events.fire(g.TreeEvents.beforeCheck,[t.data.getIndex(i),i]))return;var n=t.data.getItem(i);return n.$mark===g.SelectStatus.unselected?t.checkItem(i):t.uncheckItem(i),void t.events.fire(g.TreeEvents.afterCheck,[t.data.getIndex(i),i,!!n.$mark])}t.events.fire(g.TreeEvents.itemClick,[i,e]),t.data.exists(i)&&t.selection.add(i)}}},ondblclick:function(e){t._dblClick(e)},ondragstart:function(t){t.preventDefault()},onmousedown:function(e){t._dragStart(e)},ontouchstart:function(e){(t._touch.timer=setTimeout((function(){t._dragStart(e)}),t._touch.duration),t._touch.timeStamp)?(t._touch.dblDuration>=t._touch.timeStamp-+e.timeStamp.toFixed()&&t._dblClick(e),t._touch.timeStamp=null):t._touch.timeStamp=+e.timeStamp.toFixed();setTimeout((function(){t._touch.timeStamp=null}),t._touch.dblDuration)},ontouchmove:function(e){t._touch.start&&e.preventDefault(),t._clearTouchTimer()},ontouchend:function(){t._touch.start=!1,t._clearTouchTimer()},oncontextmenu:function(e){var i=(0,c.locate)(e);i&&(t.events.fire(g.TreeEvents.itemRightClick,[i,e]),t.events.fire(g.TreeEvents.itemContextMenu,[i,e]))}};var e=this.config.eventHandlers;if(e)for(var i=0,n=Object.entries(e);i<n.length;i++){var o=n[i],s=o[0],a=o[1];this._handlers[s]=(0,c.eventHandler)((function(e){var i=r({},t.data.getItem((0,c.locate)(e)));return Object.keys(i).forEach((function(t){t.startsWith("$")&&delete i[t]})),i}),a,this._handlers[s])}},e.prototype._dblClick=function(t){var e=(0,c.locate)(t);e&&(this.events.fire(g.TreeEvents.itemDblClick,[e,t]),this.config.editable&&this.editItem(e))},e.prototype._clearTouchTimer=function(){this._touch.timer&&(clearTimeout(this._touch.timer),this._touch.timer=null)},e.prototype._dragStart=function(t){if(this.config.dragMode&&"target"!==this.config.dragMode){if(this._editor.isEditable())return;this._touch.start=!0,h.dragManager.onMouseDown(t)}},e.prototype._getRightPos=function(t,e){if(void 0===e&&(e=0),!(0,s.isId)(t))for(var i=this.data.getRoot(),n=0,o=this.data.findAll((function(t){return t.parent===i}));n<o.length;n++){var r=o[n];return this._getRightPos(r.id,e)}var a=this.data.getItem(t);if(a&&(this._right=e,this.data.haveItems(a.id)&&a.opened&&a.items))for(var l=0,c=a.items;l<c.length;l++){var u=c[l];this._getRightPos(u.id,e+1)}},e.prototype._drawItems=function(t,e){var i=this;return void 0===e&&(e=0),this.data.getRawData(0,-1,null,0,t).map((function(t){if(t){var n,o,s,l=!!i.config.isFolder&&i.config.isFolder(t);if((t.$autoload||i.data.haveItems(t.id))&&(l=!0,n=(0,a.el)("div",{class:"dxi dxi-menu-right dhx_tree-toggle-button"},""),t.opened&&(n=(0,a.el)("div",{class:"dxi dxi-menu-down dhx_tree-toggle-button dhx_tree-toggle-button--open"},""),o=i._drawItems(t.id,e+1))),t.checkbox){var c=t.$mark===g.SelectStatus.indeterminate?"dxi-minus-box":t.$mark===g.SelectStatus.selected?"dxi-checkbox-marked":"dxi-checkbox-blank-outline";s=(0,a.el)("div",{class:"dhx_tree-checkbox dxi "+c})}var u,d=m(l,t.opened),h=(t.icon||i.config.icon)[d]||i.config.icon[d];if(u=t.$edit?i._editor.edit(i._uid,r({item:t},t.$editConfig)):(0,a.el)("span",{class:"dhx_tree-list-item__text"},t.text||t.value),i.config.template){var f=i.config.template(t,l);u="string"!=typeof f||(!t.hasOwnProperty("value")||t.$edit)&&t.hasOwnProperty("value")?u:(0,a.el)("div.dhx_tree-template__wrapper",{".innerHTML":f})}var p=i.config.itemHeight||null;return l?(0,a.el)("li",{class:"dhx_tree-list-item dhx_tree-list-item--parent"+(t.css?" "+t.css:""),"data-dhx-id":t.id,_key:t.id},[(0,a.el)("div.dhx_tree-folder",{class:(t.id==i._focusId?" dhx_tree-folder--focused":"")+(t.$selected?" dhx_tree-folder--selected":"")+(t.$drophere?" "+t.$drophere:""),style:{left:"".concat(-_(e),"px"),right:0,"margin-left":"".concat(_(e),"px"),minHeight:p}},[n,(0,a.el)("div.dhx_tree-list-item__content",[s,(0,a.el)("div",{class:"dhx_tree-list-item__icon "+h}),u])]),o&&(0,a.el)("ul.dhx_tree-list",o)]):(0,a.el)("li",{class:"dhx_tree-list__item dhx_tree-list-item"+(t.id==i._focusId?" dhx_tree-list-item--focused":"")+(t.$selected?" dhx_tree-list-item--selected":"")+(t.$drophere?" "+t.$drophere:"")+(l?"dhx_tree-list-item--folder":"")+(t.css?" "+t.css:""),style:{left:"".concat(-_(e),"px"),right:0,"margin-left":"".concat(_(e),"px"),minHeight:p},"data-dhx-id":t.id,level:e},[n,(0,a.el)("div",{class:"dhx_tree-list-item__content"},[s,(0,a.el)("div",{class:"dhx_tree-list-item__icon "+h}),u])])}}))},e.prototype._updateItemCheck=function(t,e){var i=this;this._updateCheckedStatus(r(r({},this.data.getItem(t)),{$mark:e})),this.data.eachChild(t,(function(t){t.$mark=e,i._updateCheckedStatus(t)})),this._updateParents(t)},e.prototype._updateParents=function(t,e){var i=this;void 0===e&&(e=!1),t!==this._root&&this.data.eachParent(t,(function(t){var e=0,n=0;i.data.eachChild(t.id,(function(t){if(t.checkbox)switch(t.$mark){case g.SelectStatus.unselected:n++;break;case g.SelectStatus.selected:e++}}),!0),t.$mark=0!==e&&0!==n?g.SelectStatus.indeterminate:0===e&&0!==n?g.SelectStatus.unselected:g.SelectStatus.selected,i._updateCheckedStatus(t)}),e)},e.prototype._updateCheckedStatus=function(t){var e=t.$mark===g.SelectStatus.selected;this.data.update(t.id,{checked:e,$mark:t.$mark},e===t.checked)},e.prototype._normalizeMark=function(){var t=this;this.data.eachChild(this.data.getRoot(),(function(e){if(e.$mark){var i=t.data.getItem(e.parent);i&&!i.$mark&&t.data.eachParent(e.id,(function(t){t.$mark=g.SelectStatus.indeterminate}))}}))},e.prototype._initHotkeys=function(){var t=this,e=function(){var e=t._focusId;if(e)return e;var i=t.data.getRoot();return t.data.getItems(i)[0].id},i=function(e,n){void 0===n&&(n=!1);var o=t.data.getItem(e);if(t.data.haveItems(e)&&o.opened&&!n)return t.data.getItems(e)[0].id;var r=t.data.getParent(e),a=t.data.getItems(r),l=(0,s.findIndex)(a,(function(t){return t.id===e}));return l+1<a.length?a[l+1].id:r===t.data.getRoot()?null:i(r,!0)},n={arrowLeft:function(i){i.preventDefault();var n=e(),o=t.data.getParent(n);t.data.getRoot()!==o?!t.data.getItem(n).opened?t.focusItem(o):n!==t.data.getRoot()&&t.collapse(n):t.collapse(n)},arrowRight:function(i){i.preventDefault();var n=e();if(t.data.getItem(n).$autoload){if(!t.events.fire(g.TreeEvents.beforeExpand,[n]))return;return t.data.loadItems(n),t.data.update(n,{$autoload:!1,opened:!0}),void t.events.fire(g.TreeEvents.afterExpand,[n])}t.data.haveItems(n)&&t.expand(n)},arrowUp:function(i){i.preventDefault();var n=function(e){var i=t.data.getIndex(e),n=t.data.getParent(e);if(i>0){var o=t.data.getItems(n)[i-1];if(!t.data.haveItems(o.id)||!o.opened)return o.id;for(;t.data.haveItems(o.id)&&o.opened;){var r=t.data.getItems(o.id);o=r[r.length-1]}return o.id}return n===t.data.getRoot()?null:n}(e());n&&t.focusItem(n)},arrowDown:function(n){n.preventDefault();var o=e(),r=i(o);r&&t.focusItem(r)},enter:function(){var i=e();i&&t.selection.add(i)}};for(var o in n)this._keyManager.addHotKey(o,n[o])},e}(d.View);e.Tree=y},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(106),e),o(i(244),e)},function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.detectDrag=void 0,e.detectDrag=function(e){return new t((function(t){var i=function(){document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",i),t(!1)},n=setTimeout((function(){i()}),1e3),o=function(r){(Math.abs(r.pageX-e.pageX)>4||Math.abs(r.pageY-e.pageY)>4)&&(document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",i),clearTimeout(n),t({x:e.pageX,y:e.pageY}))};document.addEventListener("mousemove",o),document.addEventListener("mouseup",i)}))}}).call(this,i(17))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={popups:{},lastActive:null,freeCount:0,add:function(t,e){this.lastActive&&this.popups[this.lastActive].classList.remove("dhx_popup--window_active"),this.lastActive=t,e.classList.add("dhx_popup--window_active"),this.popups[t]=e},setActive:function(t){if(t!==this.lastActive){var e=this.popups[t];e&&(this.lastActive&&this.popups[this.lastActive].classList.remove("dhx_popup--window_active"),this.lastActive=t,e.classList.add("dhx_popup--window_active"))}},openFreeWindow:function(t){0===this.freeCount&&t.classList.add("dhx_window--no-scroll"),this.freeCount++},closeFreeWindow:function(t){this.freeCount--,0===this.freeCount&&t.classList.remove("dhx_window--no-scroll")}}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.ProWindow=void 0;var r=i(106),s=i(34),a=i(11),l=i(20),c=i(107),u=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype._startResize=function(t){var e,i,n=this,o=100|this.config.minWidth,r=100|this.config.minHeight,s=this._popup.offsetLeft,a=this._popup.offsetTop,l=this._popup.offsetWidth,u=this._popup.offsetHeight,d=this.getRootView().refs;switch(!0){case t.bottom&&t.left:i="dhx_window-body-pointer--bottom_left",e=d.bottomLeft;break;case t.bottom&&t.right:i="dhx_window-body-pointer--bottom_right",e=d.bottomLeft;break;case t.top&&t.left:i="dhx_window-body-pointer--top_left",e=d.bottomLeft;break;case t.top&&t.right:i="dhx_window-body-pointer--top-right",e=d.right;break;case t.top:i="dhx_window-body-pointer--top",e=d.bottomLeft;break;case t.bottom:i="dhx_window-body-pointer--bottom",e=d.bottomLeft;break;case t.left:i="dhx_window-body-pointer--left",e=d.bottomLeft;break;case t.right:i="dhx_window-body-pointer--right",e=d.right}e.el.classList.add("dhx_window-resizer--active"),this.config.node.classList.add("dhx_window--stop_selection"),this.config.node.classList.add(i);var h=function(e){var i=n._getContainerParams(),d=i.containerInnerWidth,h=i.containerInnerHeight,f=i.containerXOffset,p=i.containerYOffset,v={width:n._notInNode()?e.pageX-s:e.pageX-n.config.node.offsetLeft-s,height:n._notInNode()?e.pageY-a:e.pageY-n.config.node.offsetTop-a,left:n._notInNode()?e.pageX:e.pageX-n.config.node.offsetLeft,top:n._notInNode()?e.pageY:e.pageY-n.config.node.offsetTop};t.right&&(v.width<o?v.width=o:v.width>f+d-s&&(v.width=f+d-s),n._popup.style.width=v.width+"px"),t.bottom&&(v.height<r?v.height=r:v.height>p+h-a&&(v.height=p+h-a),n._popup.style.height=v.height+"px"),t.left&&(s+l-v.left<o&&(v.left=s+l-o),v.width=s+l-v.left,n.config.left=v.left,n._popup.style.left=v.left+"px",n._popup.style.width=v.width+"px"),t.top&&(v.top<p?v.top=p:a+u-v.top<r&&(v.top=a+u-r),v.height=a+u-v.top,n.config.top=v.top,n._popup.style.top=v.top+"px",n._popup.style.height=v.height+"px"),n.config.width=n._popup.offsetWidth,n.config.height=n._popup.offsetHeight,n.events.fire(c.WindowEvents.resize,[v,{left:s,top:a,height:u,width:l},t]),n.scrollView&&n.scrollView.update()},f=function(){document.removeEventListener("mouseup",f),document.removeEventListener("mousemove",h),n.config.node.classList.remove("dhx_window--stop_selection"),n.config.node.classList.remove(i),e.el.classList.remove("dhx_window-resizer--active")};document.addEventListener("mouseup",f),document.addEventListener("mousemove",h)},e.prototype._initUI=function(){var t=this,e=[],i=(this.config.header||this.config.title||this.config.closable||this.config.movable)&&!1!==this.config.header;i&&e.push({id:"header",height:"content",css:"dhx_window-header "+(this.config.movable?"dhx_window-header--movable":""),on:{mousedown:this.config.movable&&this._handlers.move,dblclick:this._handlers.headerDblClick}}),e.push({id:"content",css:i?"dhx_window-content":"dhx_window-content-without-header"}),this.config.footer&&e.push({id:"footer",height:"content",css:"dhx_window-footer"}),this.config.resizable&&e.push({id:"resizers",height:"content",css:"resizers"});var n=this._layout=new a.ProLayout(this._popup,{css:"dhx_window"+(this.config.modal?" dhx_window--modal":""),rows:e,on:{mousedown:this._handlers.setActive},id:this._uid}),o=this._layout.getCell("content");if(o&&o.scrollView&&(this.scrollView=o.scrollView),i){var r=this.header=new s.Toolbar;this.config.title&&(this.header.data.add({type:"title",value:this.config.title,id:"title",css:"title_max"}),this._popup.setAttribute("aria-label",this.config.title)),this.config.closable&&(this.header.data.add({type:"spacer"}),this.header.data.add({id:"close",type:"button",view:"link",size:"medium",color:"secondary",circle:!0,icon:"dxi dxi-close"}),r.events.on(l.NavigationBarEvents.click,(function(e,i){"close"===e&&t._hide(i)}))),n.getCell("header").attach(r)}if(this.config.footer){var c=this.footer=new s.Toolbar;n.getCell("footer").attach(c)}this.config.resizable&&n.getCell("resizers").attach((function(){return t._drawResizers()}))},e}(r.Window);e.ProWindow=u},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setLocale=void 0,e.setLocale=function(t,e){var i=this[t];if(i)for(var n in e)i[n]=e[n]}}])})),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,i=3,n=4,o=5,r="undefined"!=typeof window,s=(r?window:{}).requestAnimationFrame,a={};function l(){}var c=Array.isArray;function u(t){return null!=t}function d(t){return null!=t&&t.constructor===Object}function h(t,e,i,n){t.splice.apply(t,[i,n].concat(e))}function f(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,i=1;i<e.length;i++)for(var n in e[i])t[n]=e[i][n];return t}function _(t,e,i){for(var n;n=e.shift();)0===e.length?t[n]=i:t[n]=t=t[n]||{}}function m(t,e){for(var i=[],n=e;n<t.length;n++)i.push(t[n]);return i}function y(t,e){for(var i in t)if(t[i]!==e[i])return!1;return!0}function b(t,e){var i=t.length;if(e.length!==i)return!1;for(var n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}function w(t){if(!s)return t;var e,i,n;function o(){e=0,t.apply(i,n)}return function(){i=this,n=arguments,e||(e=s(o))}}function x(t,e,i){return function(){return t.apply(i,e)}}function E(t){var e,i,n=t.slice(),o=[];o.push(0);for(var r=0,s=t.length;r<s;++r){var a=o[o.length-1];if(t[a]<t[r])n[r]=a,o.push(r);else{for(e=0,i=o.length-1;e<i;){var l=(e+i)/2|0;t[o[l]]<t[r]?e=l+1:i=l}t[r]<t[o[e]]&&(e>0&&(n[r]=o[e-1]),o[e]=r)}}for(i=o[(e=o.length)-1];e-- >0;)o[e]=i,i=n[i];return o}function C(t,e){var i,n=0,o=e.length-1;if(o<=2147483647)for(;n<=o;){if(e[i=n+o>>1]===t)return i;e[i]<t?n=i+1:o=i-1}else for(;n<=o;){if(e[i=Math.floor((n+o)/2)]===t)return i;e[i]<t?n=i+1:o=i-1}return n==e.length?null:n}function S(t){return"o"===t[0]&&"n"===t[1]}function k(t){return"_"===t[0]}function O(t){return"style"===t}function P(t){t&&t.el&&t.el.offsetHeight}function I(t){return null!=t.node&&null!=t.node.el}function D(t,e){switch(e){case"value":case"checked":case"selected":return!0}return!1}function M(t){for(t=t||a;null==t.vm&&t.parent;)t=t.parent;return t.vm}function T(){}var V=T.prototype={constructor:T,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 H(t){var i=new T;return i.type=e,i.body=t,i}var j={},F=/\[(\w+)(?:=(\w+))?\]/g;function R(t){var e,i,n,o,r=j[t];if(null==r)for(j[t]=r={tag:(e=t.match(/^[-\w]+/))?e[0]:"div",id:(i=t.match(/#([-\w]+)/))?i[1]:null,class:(n=t.match(/\.([-\w.]+)/))?n[1].replace(/\./g," "):null,attrs:null};o=F.exec(t);)null==r.attrs&&(r.attrs={}),r.attrs[o[1]]=o[2]||"";return r}var A=1,L=2,$=4,N=8;function z(e,i,n,o){var r=new T;r.type=t,u(o)&&(r.flags=o),r.attrs=i;var s=R(e);if(r.tag=s.tag,s.id||s.class||s.attrs){var a=r.attrs||{};if(s.id&&!u(a.id)&&(a.id=s.id),s.class&&(r._class=s.class,a.class=s.class+(u(a.class)?" "+a.class:"")),s.attrs)for(var l in s.attrs)u(a[l])||(a[l]=s.attrs[l]);r.attrs=a}var c=r.attrs;return u(c)&&(u(c._key)&&(r.key=c._key),u(c._ref)&&(r.ref=c._ref),u(c._hooks)&&(r.hooks=c._hooks),u(c._data)&&(r.data=c._data),u(c._flags)&&(r.flags=c._flags),u(r.key)||(u(r.ref)?r.key=r.ref:u(c.id)?r.key=c.id:u(c.name)&&(r.key=c.name+("radio"===c.type||"checkbox"===c.type?c.value:"")))),null!=n&&(r.body=n),r}function W(t,e,i){_(t,["refs"].concat(e.split(".")),i)}function B(t){for(;t=t.parent;)t.flags|=A}function G(t,e,i,r){if(t.type!==o&&t.type!==n){t.parent=e,t.idx=i,t.vm=r,null!=t.ref&&W(M(t),t.ref,t);var s=t.hooks,a=r&&r.hooks;(s&&(s.willRemove||s.didRemove)||a&&(a.willUnmount||a.didUnmount))&&B(t),c(t.body)&&q(t)}}function q(t){for(var i=t.body,n=0;n<i.length;n++){var o=i[n];!1===o||null==o?i.splice(n--,1):c(o)?h(i,o,n--,1):(null==o.type&&(i[n]=o=H(""+o)),o.type===e?null==o.body||""===o.body?i.splice(n--,1):n>0&&i[n-1].type===e?(i[n-1].body+=o.body,i.splice(n--,1)):G(o,t,n,null):G(o,t,n,null))}}var Y={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 X(t,e){return isNaN(e)||Y[t]?e:e+"px"}function U(t,e){var i=(t.attrs||a).style,n=e?(e.attrs||a).style:null;if(null==i||f(i))t.el.style.cssText=i;else{for(var o in i){var r=i[o];(null==n||null!=r&&r!==n[o])&&(t.el.style[o]=X(o,r))}if(n)for(var s in n)null==i[s]&&(t.el.style[s]="")}}var K=[];function J(t,e,i,n,o){if(null!=t){var r=i.hooks[e];if(r){if("d"!==e[0]||"i"!==e[1]||"d"!==e[2])return r(i,n);o?P(i.parent)&&r(i,n):K.push([r,i,n])}}}function Z(t){var e;if(K.length)for(P(t.node);e=K.shift();)e[0](e[1],e[2])}var Q=r?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 it(t){return Q.createTextNode(t)}function nt(t){return Q.createComment(t)}function ot(t){return t.nextSibling}function rt(t){return t.previousSibling}function st(t){var e=t.vm,i=null!=e&&J(e.hooks,"willUnmount",e,e.data),n=J(t.hooks,"willRemove",t);if((t.flags&A)===A&&c(t.body))for(var o=0;o<t.body.length;o++)st(t.body[o]);return i||n}function at(t,e,i){var n=e._node,o=n.vm;if(c(n.body))if((n.flags&A)===A)for(var r=0;r<n.body.length;r++)at(e,n.body[r].el);else ct(n);delete e._node,t.removeChild(e),J(n.hooks,"didRemove",n,null,i),null!=o&&(J(o.hooks,"didUnmount",o,o.data,i),o.node=null)}function lt(t,e){var i=e._node;if(!i._dead){var n=st(i);null!=n&&v(n)?(i._dead=!0,n.then(x(at,[t,e,!0]))):at(t,e)}}function ct(t){for(var e=t.body,i=0;i<e.length;i++){var n=e[i];delete n.el._node,null!=n.vm&&(n.vm.node=null),c(n.body)&&ct(n)}}function ut(t){var e=t.el;if(0==(t.flags&A))c(t.body)&&ct(t),e.textContent=null;else{var i=e.firstChild;do{var n=ot(i);lt(e,i)}while(i=n)}}function dt(t,e,i){var n=e._node,o=null!=e.parentNode,r=e!==i&&o?null:n.vm;null!=r&&J(r.hooks,"willMount",r,r.data),J(n.hooks,o?"willReinsert":"willInsert",n),t.insertBefore(e,i),J(n.hooks,o?"didReinsert":"didInsert",n),null!=r&&J(r.hooks,"didMount",r,r.data)}function ht(t,e,i){dt(t,e,i?ot(i):null)}var ft={};function pt(t){g(ft,t)}function vt(t){var e=this,i=e,n=m(arguments,1).concat(i,i.data);do{var o=e.onemit,r=o?o[t]:null;if(r){r.apply(e,n);break}}while(e=e.parent());ft[t]&&ft[t].apply(e,n)}var gt=l;function _t(t){gt=t.onevent||gt,t.onemit&&pt(t.onemit)}function mt(t,e,i){t[e]=i}function yt(t,e,i,n,o){var r=t.apply(o,e.concat([i,n,o,o.data]));o.onevent(i,n,o,o.data,e),gt.call(null,i,n,o,o.data,e),!1===r&&(i.preventDefault(),i.stopPropagation())}function bt(t){var e,i,n=tt(t.target),o=M(n),r=t.currentTarget._node.attrs["on"+t.type];if(c(r))yt(e=r[0],i=r.slice(1),t,n,o);else for(var s in r)if(t.target.matches(s)){var a=r[s];c(a)?(e=a[0],i=a.slice(1)):(e=a,i=[]),yt(e,i,t,n,o)}}function wt(t,e,i,n){if(i!==n){var o=t.el;null==i||p(i)?mt(o,e,i):null==n&&mt(o,e,bt)}}function xt(t,e,i){"."===e[0]&&(e=e.substr(1),i=!0),i?t.el[e]="":t.el.removeAttribute(e)}function Et(t,e,i,n,o){var r=t.el;null==i?!o&&xt(t,e,!1):null!=t.ns?r.setAttribute(e,i):"class"===e?r.className=i:"id"===e||"boolean"==typeof i||n?r[e]=i:"."===e[0]?r[e.substr(1)]=i:r.setAttribute(e,i)}function Ct(t,e,i){var n=t.attrs||a,o=e.attrs||a;if(n===o);else{for(var r in n){var s=n[r],l=D(t.tag,r),c=l?t.el[r]:o[r];s===c||(O(r)?U(t,e):k(r)||(S(r)?wt(t,r,s,c):Et(t,r,s,l,i)))}for(var r in o)!(r in n)&&!k(r)&&xt(t,r,D(t.tag,r)||S(r))}}function St(t,e,i,o){return t.type===n&&(e=t.data,i=t.key,o=t.opts,t=t.view),new Gt(t,e,i,o)}function kt(t){for(var e=0;e<t.body.length;e++){var r=t.body[e],s=r.type;if(s<=i)dt(t.el,Ot(r));else if(s===n)s=(a=St(r.view,r.data,r.key,r.opts)._redraw(t,e,!1)).node.type,dt(t.el,Ot(a.node));else if(s===o){var a;(a=r.vm)._redraw(t,e),s=a.node.type,dt(t.el,a.node.el)}}}function Ot(n,o){return null==n.el&&(n.type===t?(n.el=o||et(n.tag,n.ns),null!=n.attrs&&Ct(n,a,!0),(n.flags&N)===N&&n.body.body(n),c(n.body)?kt(n):null!=n.body&&""!==n.body&&(n.el.textContent=n.body)):n.type===e?n.el=o||it(n.body):n.type===i&&(n.el=o||nt(n.body))),n.el._node=n,n.el}function Pt(t,e){return e[t.idx+1]}function It(t,e){return e[t.idx-1]}function Dt(t){return t.parent}window.lisMove=Ht;var Mt=1,Tt=2;function Vt(t,e,i,n,o,r,s,a){return function(l,c,u,d,h,f){var p,v;if(null!=d[n]){if(null==(p=d[n]._node))return void(d[n]=t(d[n]));if(Dt(p)!==l)return v=t(d[n]),null!=p.vm?p.vm.unmount(!0):lt(c,d[n]),void(d[n]=v)}if(d[o]==h)return Tt;if(null==d[o].el)i(c,Ot(d[o]),d[n]),d[o]=e(d[o],u);else if(d[o].el===d[n])d[o]=e(d[o],u),d[n]=t(d[n]);else{if(f||p!==d[s])return f&&null!=d[n]?Ht(t,e,i,n,o,c,u,p,d):Mt;v=d[n],d[n]=t(v),a(c,v,d[r]),d[r]=v}}}function Ht(t,e,i,n,o,r,s,a,l){if(a._lis)i(r,l[o].el,l[n]),l[o]=e(l[o],s);else{var c=C(a.idx,l.tombs);a._lis=!0;var u=t(l[n]);i(r,l[n],null!=c?s[l.tombs[c]].el:c),null==c?l.tombs.push(a.idx):l.tombs.splice(c,0,a.idx),l[n]=u}}var jt=Vt(ot,Pt,dt,"lftSib","lftNode","rgtSib","rgtNode",ht),Ft=Vt(rt,It,ht,"rgtSib","rgtNode","lftSib","lftNode",dt);function Rt(t,e){var i=e.body,n=t.el,o=t.body,r={lftNode:o[0],rgtNode:o[o.length-1],lftSib:(i[0]||a).el,rgtSib:(i[i.length-1]||a).el};t:for(;;){for(;;){var s=jt(t,n,o,r,null,!1);if(s===Mt)break;if(s===Tt)break t}for(;;){var l=Ft(t,n,o,r,r.lftNode,!1);if(l===Mt)break;if(l===Tt)break t}At(t,n,o,r);break}}function At(t,e,i,n){for(var o=Array.prototype.slice.call(e.childNodes),r=[],s=0;s<o.length;s++){var a=o[s]._node;a.parent===t&&r.push(a.idx)}for(var l=E(r).map((function(t){return r[t]})),c=0;c<l.length;c++)i[l[c]]._lis=!0;for(n.tombs=l;jt(t,e,i,n,null,!0)!==Tt;);}function Lt(t){return t.el._node.parent!==t.parent}function $t(t,e,i){return e[i]}function Nt(t,e,i){for(;i<e.length;i++){var r=e[i];if(null!=r.vm){if(t.type===n&&r.vm.view===t.view&&r.vm.key===t.key||t.type===o&&r.vm===t.vm)return r}else if(!Lt(r)&&t.tag===r.tag&&t.type===r.type&&t.key===r.key&&(t.flags&~A)==(r.flags&~A))return r}return null}function zt(t,e,i){return e[e._keys[t.key]]}function Wt(t,i){J(i.hooks,"willRecycle",i,t);var n=t.el=i.el,o=i.body,r=t.body;if(n._node=t,t.type!==e||r===o){null==t.attrs&&null==i.attrs||Ct(t,i,!1);var s=c(o),a=c(r),l=(t.flags&N)===N;s?a||l?Bt(t,i):r!==o&&(null!=r?n.textContent=r:ut(i)):a?(ut(i),kt(t)):r!==o&&(n.firstChild?n.firstChild.nodeValue=r:n.textContent=r),J(i.hooks,"didRecycle",i,t)}else n.nodeValue=r}function Bt(e,r){var s=e.body,a=s.length,l=r.body,c=l.length,u=(e.flags&N)===N,d=(e.flags&L)===L,h=(e.flags&$)===$,f=!d&&e.type===t,p=!0,v=h?zt:d||u?$t:Nt;if(h){for(var g={},_=0;_<l.length;_++)g[l[_].key]=_;l._keys=g}if(f&&0===a)return ut(r),void(u&&(e.body=[]));var m,y,b=0,w=!1,x=0;if(u)var E={key:null},C=Array(a);for(_=0;_<a;_++){if(u){var S=!1,k=null;p&&(h&&(E.key=s.key(_)),m=v(E,l,x)),null!=m?(y=m.idx,!0===(k=s.diff(_,m))?((O=m).parent=e,O.idx=_,O._lis=!1):S=!0):S=!0,S&&(G(O=s.tpl(_),e,_),O._diff=null!=k?k:s.diff(_),null!=m&&Wt(O,m)),C[_]=O}else{var O,P=(O=s[_]).type;if(P<=i)(m=p&&v(O,l,x))&&(Wt(O,m),y=m.idx);else if(P===n){if(m=p&&v(O,l,x)){y=m.idx;var D=m.vm._update(O.data,e,_)}else D=St(O.view,O.data,O.key,O.opts)._redraw(e,_,!1);P=D.node.type}else if(P===o){var M=I(O.vm);P=(D=O.vm._update(O.data,e,_,M)).node.type}}if(!h&&null!=m&&(y===x?++x===c&&a>c&&(m=null,p=!1):w=!0,c>100&&w&&++b%10==0))for(;x<c&&Lt(l[x]);)x++}u&&(e.body=C),f&&Rt(e,r)}function Gt(t,e,i,n){var o=this;o.view=t,o.data=e,o.key=i,n&&(o.opts=n,o.config(n));var r=d(t)?t:t.call(o,o,e,i,n);p(r)?o.render=r:(o.render=r.render,o.config(r)),o._redrawAsync=w((function(t){return o.redraw(!0)})),o._updateAsync=w((function(t){return o.update(t,!0)})),o.init&&o.init.call(o,o,o.data,o.key,n)}var qt=Gt.prototype={constructor:Gt,_diff:null,init:null,view:null,key:null,data:null,state:null,api:null,opts:null,node:null,hooks:null,onevent:l,refs:null,render:null,mount:Yt,unmount:Xt,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 M(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,I(e)):e._redrawAsync(),e},update:function(t,e){var i=this;return e?i._update(t,null,null,I(i)):i._updateAsync(t),i},_update:Jt,_redraw:Kt,_redrawAsync:null,_updateAsync:null};function Yt(t,e){var i=this;return e?(ut({el:t,flags:0}),i._redraw(null,null,!1),t.nodeName.toLowerCase()!==i.node.tag?(Ot(i.node),dt(t.parentNode,i.node.el,t),t.parentNode.removeChild(t)):dt(t.parentNode,Ot(i.node,t),t)):(i._redraw(null,null),t&&dt(t,i.node.el)),t&&Z(i),i}function Xt(t){var e=this,i=e.node;lt(i.el.parentNode,i.el),t||Z(e)}function Ut(t,e,i,n){return null!=i&&(i.body[n]=e,e.idx=n,e.parent=i,e._lis=!1),t}function Kt(t,e,i){var n,o,r=null==t,s=this,a=s.node&&s.node.el&&s.node.el.parentNode,l=s.node;if(null!=s.diff&&(n=s._diff,s._diff=o=s.diff(s,s.data),null!=l)){var u=c(n)?b:y;if(n===o||u(n,o))return Ut(s,l,t,e)}a&&J(s.hooks,"willRedraw",s,s.data);var d=s.render.call(s,s,s.data,n,o);if(d===l)return Ut(s,l,t,e);if(s.refs=null,null!=s.key&&d.key!==s.key&&(d.key=s.key),s.node=d,t?(G(d,t,e,s),t.body[e]=d):l&&l.parent?(G(d,l.parent,l.idx,s),l.parent.body[l.idx]=d):G(d,null,null,s),!1!==i)if(l)if(l.tag!==d.tag||l.key!==d.key){l.vm=d.vm=null;var h=l.el.parentNode,f=ot(l.el);lt(h,l.el),dt(h,Ot(d),f),l.el=d.el,d.vm=s}else Wt(d,l);else Ot(d);return a&&J(s.hooks,"didRedraw",s,s.data),r&&a&&Z(s),s}function Jt(t,e,i,n){var o=this;return null!=t&&o.data!==t&&(J(o.hooks,"willUpdate",o,t),o.data=t),o._redraw(e,i,n)}function Zt(t,e,i,n){var o,r;return null==i?d(e)?o=e:r=e:(o=e,r=i),z(t,o,r,n)}var Qt="http://www.w3.org/2000/svg";function te(t,e,i,n){var o=Zt(t,e,i,n);return o.ns=Qt,o}function ee(t){var e=new T;return e.type=i,e.body=t,e}function ie(t,e,i,n){this.view=t,this.data=e,this.key=i,this.opts=n}function ne(t,e,i,n){return new ie(t,e,i,n)}function oe(t){this.vm=t}function re(t){return new oe(t)}function se(e){var i=new T;return i.type=t,i.el=i.key=e,i}function ae(t,e){var i=t.length,n={items:t,length:i,key:function(i){return e.key(t[i],i)},diff:function(i,n){var o=e.diff(t[i],i);if(null==n)return o;var r=n._diff;return(o===r||c(r)?b(o,r):y(o,r))||o},tpl:function(i){return e.tpl(t[i],i)},map:function(t){return e.tpl=t,n},body:function(t){for(var e=Array(i),o=0;o<i;o++){var r=n.tpl(o);r._diff=n.diff(o),e[o]=r,G(r,t,o)}t.body=e}};return n}ie.prototype={constructor:ie,type:n,view:null,data:null,key:null,opts:null},oe.prototype={constructor:oe,type:o,vm:null};var le={config:_t,ViewModel:Gt,VNode:T,createView:St,defineElement:Zt,defineSvgElement:te,defineText:H,defineComment:ee,defineView:ne,injectView:re,injectElement:se,lazyList:ae,FIXED_BODY:L,DEEP_REMOVE:A,KEYED_LIST:$,LAZY_LIST:N};function ce(t,e){ue(this,t,e)}function ue(t,e,i){if(null!=e.type){if(null!=t.vm)return;G(e,t.parent,t.idx,null),t.parent.body[t.idx]=e,Wt(e,t),i&&P(e),Z(M(e))}else{var n=Object.create(t);n.attrs=g({},t.attrs);var o=g(t.attrs,e);if(null!=t._class){var r=o.class;o.class=null!=r&&""!==r?t._class+" "+r:t._class}Ct(t,n),i&&P(t)}}function de(t,e){var i=t.body;if(c(i))for(var n=0;n<i.length;n++){var o=i[n];null!=o.vm?e.push(o.vm):de(o,e)}return e}function he(t){var e,i,n=arguments,o=n.length;if(o>1){var r=1;d(n[1])&&(i=n[1],r=2),e=o===r+1&&(f(n[r])||c(n[r])||i&&(i._flags&N)===N)?n[r]:m(n,r)}return z(t,i,e)}function fe(){var t=he.apply(null,arguments);return t.ns=Qt,t}return V.patch=ce,qt.emit=vt,qt.onemit=null,qt.body=function(){return de(this.node,[])},le.defineElementSpread=he,le.defineSvgElementSpread=fe,le}()},function(t,e,i){"use strict";(function(t){var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Loader=void 0;var o=i(1),r=i(23),s=i(22),a=i(1),l=function(){function e(t,e){this._parent=t,this._changes=e}return e.prototype.load=function(t,e){var i=this;if(!t.config||this._parent.events.fire(s.DataEvents.beforeLazyLoad,[]))return this._parent.loadData=t.load().then((function(t){return t?i.parse(t,e):[]})).catch((function(t){i._parent.events.fire(s.DataEvents.loadError,[t])}))},e.prototype.parse=function(t,e){var i=this;if(void 0===e&&(e=s.DataDriver.json),"json"!==e||(0,r.hasJsonOrArrayStructure)(t)||this._parent.events.fire(s.DataEvents.loadError,["Uncaught SyntaxError: Unexpected end of input"]),!((t=(e=(0,r.toDataDriver)(e)).toJsonArray(t))instanceof Array)){var l=t.total_count-1,c=t.from;if(t=t.data,0!==this._parent.getLength())return t.forEach((function(t,e){var s=c+e,l=i._parent.getId(s);if((0,o.isId)(l)){var u=i._parent.getItem(l);if(u&&u.$empty){var d=t.id||u.id;(0,a.isDefined)(t.id)&&i._parent.changeId(l,d,!0),i._parent.update(d,n(n({},t),{$empty:void 0}),!0)}}else(0,r.dhxWarning)("item not found")})),this._parent.events.fire(s.DataEvents.afterLazyLoad,[c,t.length]),this._parent.events.fire(s.DataEvents.change),t;for(var u=[],d=0,h=0;d<=l;d++)d>=c&&d<=c+t.length-1?(u.push(t[h]),h++):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 i=this,n=this._getUniqueOrder(),o=function(n){if(n.saving||n.pending)(0,r.dhxWarning)("item is saving");else{var o=s._findPrevState(n.id);if(o&&o.saving){var a=new t((function(t,s){o.promise.then((function(){n.pending=!1,t(i._setPromise(n,e))})).catch((function(t){i._removeFromOrder(o),i._setPromise(n,e),(0,r.dhxWarning)(t),s(t)}))}));s._addToChain(a),n.pending=!0}else s._setPromise(n,e)}},s=this,a=0,l=n;a<l.length;a++){o(l[a])}n.length&&this._parent.saveData.then((function(){i._saving=!1}))},e.prototype.updateChanges=function(t){this._changes=t},e.prototype._setPromise=function(t,e){var i,n=this;switch(t.status){case"remove":i="delete";break;case"add":i="insert";break;default:i=t.status}return t.promise=e.save(t.obj,i),t.promise.then((function(){n._removeFromOrder(t)})).catch((function(e){t.saving=!1,t.error=!0,(0,r.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,i=this._changes.order;e<i.length;e++){var n=i[e];if(n.id===t)return n}return null},e.prototype._removeFromOrder=function(t){this._changes.order=this._changes.order.filter((function(e){return!(0,r.isEqualObj)(e,t)}))},e.prototype._getUniqueOrder=function(){return this._changes.order.reduce((function(t,e){var i=t.findIndex((function(t){return t.id===e.id})),n=i>-1?t[i]:null;return n&&!1===n.saving&&"add"===n.status?"remove"===e.status?t.splice(i,1):n.obj=e.obj:n&&!1===n.saving&&"update"===n.status?t.splice(i,1,e):t.push(e),t}),[])},e}();e.Loader=l}).call(this,i(17))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.XMLDriver=void 0;var n=i(123);function o(t,e){e=e||{};var i=t.attributes;if(i&&i.length)for(var n=0;n<i.length;n++)e[i[n].name]=i[n].value;var r=t.childNodes;for(n=0;n<r.length;n++){var s=r[n];if(s.nodeType===s.ELEMENT_NODE){var a=s.tagName;e[a]?("function"!=typeof e[a].push&&(e[a]=[e[a]]),e[a].push(o(s,{}))):e[a]=o(s,{})}}return e}var r=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)),o(e)},t.prototype.serialize=function(t){return(0,n.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=[],i=0;i<t.length;i++)"item"===t[i].tagName&&e.push(this._nodeToJS(t[i]));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 i=t.attributes,n=0;n<i.length;n++){var o=i[n],r=o.name,s=o.value;e[r]=this._toType(s)}if(t.nodeType===t.TEXT_NODE)return e.value=e.value||this._toType(t.textContent),e;var a=t.childNodes;if(a)for(n=0;n<a.length;n++){var l=a[n],c=l.tagName;c&&("items"===c&&l.childNodes?e[c]=this._getRows(l.childNodes):this._haveAttrs(l)?e[c]=this._nodeToJS(l):e[c]=this._toType(l.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=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.jsonToXML=void 0;var n=4;function o(t){return" ".repeat(t)}function r(t,e){void 0===e&&(e=n);var i=o(e)+"<item>\n";for(var s in t)Array.isArray(t[s])?(i+=o(e+n)+"<".concat(s,">\n"),i+=t[s].map((function(t){return r(t,e+2*n)})).join("\n")+"\n",i+=o(e+n)+"</".concat(s,">\n")):i+=o(e+n)+"<".concat(s,">").concat(t[s],"</").concat(s,">\n");return i+=o(e)+"</item>"}e.jsonToXML=function(t,e){void 0===e&&(e="root");for(var i='<?xml version="1.0" encoding="iso-8859-1"?>\n<'.concat(e,">"),n=0;n<t.length;n++)i+="\n"+r(t[n]);return i+"\n</".concat(e,">")}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Sort=void 0;var n=i(23),o=function(){function t(){}return t.prototype.sort=function(t,e,i){this._createSorter(e),i===e&&(e=null),(i||e)&&this._sort(t,i,e)},t.prototype._createSorter=function(t){var e=this;t&&!t.rule&&(t.rule=function(i,o){var r,s,a=null!==(r=e._checkVal(t.as,i[t.by]))&&void 0!==r?r:"",l=null!==(s=e._checkVal(t.as,o[t.by]))&&void 0!==s?s:"";return(0,n.naturalCompare)(a.toString(),l.toString())})},t.prototype._checkVal=function(t,e){return t?t.call(this,e):e},t.prototype._sort=function(t,e,i){var n=this,o={asc:1,desc:-1};return t.sort((function(t,r){var s=0;return e&&(s=e.rule.call(n,t,r)*(o[e.dir]||o.asc)),0===s&&i&&(s=i.rule.call(n,t,r)*(o[i.dir]||o.asc)),s}))},t}();e.Sort=o},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.TreeCollection=void 0;var s=i(1),a=i(60),l=i(27),c=i(23),u=i(22);function d(t,e,i,n){void 0!==n&&-1!==n&&t[i]&&t[i][n]?t[i].splice(n,0,e):(t[i]||(t[i]=[]),t[i].push(e))}var h=function(t){function e(e,i){var n,o=t.call(this,e,i)||this;o._childs={};var r=o._root=e&&e.rootId||"_ROOT_"+(0,s.uid)();return o._childs=((n={})[r]=[],n),o._initChilds=null,o}return o(e,t),e.prototype.add=function(t,e,i){var n,o=this;if(void 0===e&&(e=-1),void 0===i&&(i=this._root),this.events.fire(u.DataEvents.beforeAdd,[t]))return"object"!=typeof t&&(t={value:t}),n=Array.isArray(t)?t.map((function(t,n){return o._add(t,e,i,n)})):this._add(t,e,i),this._reapplyFilters(!1),n},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 i=this._pull[t].parent;return e?this._pull[i]:i},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 i;if((0,s.isId)(e)){if(this._childs[e])for(var n=0,o=r([],this._childs[e],!0);n<o.length;n++){var a=o[n];this.remove(a.id)}}else{t.prototype.removeAll.call(this);var l=this._root;this._initChilds=null,this._childs=((i={})[l]=[],i)}},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){var e=this;if(t){for(var i in this._childs)this._sort.sort(this._childs[i],t);if(this._initChilds&&Object.keys(this._initChilds).length)for(var i in this._initChilds)this._sort.sort(this._initChilds[i],t)}else this._childs={},this._parse_data(Object.keys(this._pull).map((function(t){return e._pull[t]}))),this._reapplyFilters(!1);this.events.fire(u.DataEvents.change,[void 0,"sort",t])},e.prototype.filter=function(t,e,i){if((null==e?void 0:e.$restore)&&(t=this._normalizeFilters(t||this._filters)),!(t&&(null==e?void 0:e.add)||(this.restoreOrder(),null==e?void 0:e.$restore)))for(var n in this._filters){var o=this._filters[n],r=o.rule,a=o.config;(null==a?void 0:a.permanent)?this._applyFilter(r,a):delete this._filters[n]}var l;if(t&&!(null==e?void 0:e.$restore))l=(null==e?void 0:e.id)||(0,s.uid)(),e||(e={}),e.type=e.type||u.TreeFilterType.all,this._filters[l]={rule:t,config:e},this._applyFilter(t,e);else for(var n in t)this._applyFilter(t[n],this._filters[n].config);if(!i){var c=this._getPureFilters(this._filters);this.events.fire(u.DataEvents.filter,[(0,s.isEmptyObj)(c)?null:c])}return l},e.prototype.restoreOrder=function(){this._initChilds&&(this._childs=this._initChilds,this._initChilds=null)},e.prototype.copy=function(t,e,i,n){var o=this;return void 0===i&&(i=this),void 0===n&&(n=this._root),t instanceof Array?t.map((function(t,r){return o._copy(t,e,i,n,r)})):this._copy(t,e,i,n)},e.prototype.move=function(t,e,i,n){var o=this;return void 0===i&&(i=this),void 0===n&&(n=this._root),t instanceof Array?t.map((function(t,r){return o._move(t,e,i,n,r)})):this._move(t,e,i,n)},e.prototype.forEach=function(t,e,i){if(void 0===e&&(e=this._root),void 0===i&&(i=1/0),this.haveItems(e)&&!(i<1))for(var n=this._childs[e],o=0;o<n.length;o++)t.call(this,n[o],o,n),this.haveItems(n[o].id)&&this.forEach(t,n[o].id,--i)},e.prototype.eachChild=function(t,e,i,n){if(void 0===i&&(i=!0),void 0===n&&(n=function(){return!0}),this.haveItems(t))for(var o=0;o<this._childs[t].length;o++)e.call(this,this._childs[t][o],o),i&&n(this._childs[t][o])&&this.eachChild(this._childs[t][o].id,e,i,n)},e.prototype.getNearId=function(t){return t},e.prototype.loadItems=function(t,e){var i=this;if(void 0===e&&(e=u.DataDriver.json),this.events.fire(u.DataEvents.beforeItemLoad,[t])){var n=this.config.autoload.toString(),o=n+(n.includes("?")?"&id=".concat(t):"?id=".concat(t));new l.DataProxy(o).load().then((function(n){n=(e=(0,c.toDataDriver)(e)).toJsonArray(n),i._parse_data(n,t),i.events.fire(u.DataEvents.change),i.events.fire(u.DataEvents.afterItemLoad,[t])})).catch((function(t){i.events.fire(u.DataEvents.loadError,[t])}))}},e.prototype.refreshItems=function(t,e){void 0===e&&(e=u.DataDriver.json),this.removeAll(t),this.loadItems(t,e)},e.prototype.eachParent=function(t,e,i){void 0===i&&(i=!1);var n=this.getItem(t);if(n&&(i&&e.call(this,n),n.parent!==this._root)){var o=this.getItem(n.parent);e.call(this,o),this.eachParent(n.parent,e)}},e.prototype.haveItems=function(t){return t in this._childs},e.prototype.canCopy=function(t,e){if(t===e)return!1;var i=!0;return this.eachParent(e,(function(e){return e.id===t?i=!1:null})),i},e.prototype.serialize=function(t,e){void 0===t&&(t=u.DataDriver.json);var i=this._serialize(this._root,e),n=(0,c.toDataDriver)(t);if(n)return n.serialize(i)},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,i){void 0===e&&(e=this._root),void 0===i&&(i=!0);var n=[];if(!this.haveItems(e))return n;for(var o=0;o<this._childs[e].length;o++)if(n.push(t.call(this,this._childs[e][o],o,this._childs)),i){var r=this.map(t,this._childs[e][o].id,i);n=n.concat(r)}return n},e.prototype.getRawData=function(e,i,n,o,r){var s;return r=null!=r?r:this._root,this._childs[r]?(s=r===this._root?t.prototype.getRawData.call(this,e,i,this._childs[r]):this._childs[r],2===o?this.flatten(s):s):[]},e.prototype.flatten=function(t){var e=this,i=[];return t.forEach((function(t){i.push(t);var n=e._childs[t.id];n&&t.$opened&&(i=i.concat(e.flatten(n)))})),i},e.prototype._add=function(e,i,n,o){void 0===i&&(i=-1),void 0===n&&(n=this._root),this._setParent(e,n),o>0&&-1!==i&&(i+=1);var r=t.prototype._add.call(this,e,i);if(Array.isArray(e.items))for(var s=0,a=e.items;s<a.length;s++){var l=a[s];this.add(l,-1,e.id)}return r},e.prototype._setParent=function(t,e){t.parent=t.parent?t.parent.toString():e;var i=this._pull[t.parent];i&&!i.items&&(i.items=[])},e.prototype._copy=function(t,e,i,n,o){if(void 0===i&&(i=this),void 0===n&&(n=this._root),!this.exists(t))return null;var r=this._childs[t];if(o&&(e=-1===e?-1:e+o),i===this&&!this.canCopy(t,n))return null;var a=(0,c.copyWithoutInner)(this.getItem(t),{items:!0});if(i.exists(t)&&(a.id=(0,s.uid)()),(0,c.isTreeCollection)(i)){if(this.exists(t)&&(a.parent=n,i!==this&&n===this._root&&(a.parent=i.getRoot()),i.add(a,e),t=a.id),r)for(var l=0,u=r;l<u.length;l++){var d=u[l].id,h=this.getIndex(d);"string"==typeof t&&this.copy(d,h,i,t)}return t}i.add(a,e)},e.prototype._move=function(t,e,i,n,o){if(void 0===i&&(i=this),void 0===n&&(n=this._root),!this.exists(t))return null;if(o&&e<this.getIndex(t)&&(e=-1===e?-1:e+o),i!==this){if(!(0,c.isTreeCollection)(i))return i.add((0,c.copyWithoutInner)(this.getItem(t)),e),void this.remove(t);var r=this.copy(t,e,i,n);return this.remove(t),r}if(!this.canCopy(t,n))return null;var s=this.getParent(t),a=this.getIndex(t),l=this._childs[s].splice(a,1)[0];return l.parent=n,this._childs[s].length||delete this._childs[s],this._addToOrder(this._order,l,e),this.events.fire(u.DataEvents.change,[t,"update",this.getItem(t)]),t},e.prototype._reset=function(e){var i;if((0,s.isId)(e))for(var n=0,o=r([],this._childs[e],!0);n<o.length;n++){var a=o[n];this.remove(a.id)}else{t.prototype._reset.call(this);var l=this._root;this._initChilds=null,this._childs=((i={})[l]=[],i)}},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._initOrder&&this._initOrder.length&&(this._initOrder=this._initOrder.filter((function(e){return e.id!==t}))),this._fastDeleteChilds(this._childs,t),this._initChilds&&this._fastDeleteChilds(this._initChilds,t)}},e.prototype._addToOrder=function(e,i,n){var o=this._childs,r=this._initChilds,s=i.parent;this._pull[i.id]=i,i.parent&&this._pull[i.parent]&&this._pull[i.parent].items&&!this._pull[i.parent].items.find((function(t){return t.id===i.id}))&&this._pull[i.parent].items.push(i),t.prototype._addToOrder.call(this,e,i,n),d(o,i,s,n),r&&d(r,i,s,n)},e.prototype._parse_data=function(t,e){var i;void 0===e&&(e=this._root);for(var n=this._order.length,o=0,r=t;o<r.length;o++){var a=r[o];this.config.init&&(a=this.config.init(a)),a&&"object"!=typeof a&&(a={value:a}),a.id=null!==(i=a.id)&&void 0!==i?i:(0,s.uid)(),a.parent=void 0===a.parent||null===a.parent||a.parent&&a.$items?e:a.parent,this._pull[a.id]&&(0,c.dhxError)("Item ".concat(a.id," already exist")),this._pull[a.id]=a,this._order[n++]=a,this._childs[a.parent]||(this._childs[a.parent]=[]),this._childs[a.parent].push(a),a.items&&a.items instanceof Object&&this._parse_data(a.items,a.id)}},e.prototype._fastDeleteChilds=function(t,e){if(this._pull[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,i,n,o){var r=this,s=this._childs[i];if(s){var a=function(t){switch(e.type){case u.TreeFilterType.all:return!0;case u.TreeFilterType.level:return n===e.level;case u.TreeFilterType.leafs:return!r.haveItems(t.id)}};if("function"==typeof t){var l=function(e){return a(e)&&t(e)};(c=s.filter(l)).length?o[i]=c:i===this._root&&(o[i]=[])}else{var c;l=function(e){var i,n=!0;for(var o in t)if(t[o].by&&""!==t[o].match&&(n=t[o].compare?t[o].compare(e[t[o].by],t[o].match,e):-1!==(null===(i=e[t[o].by])||void 0===i?void 0:i.toString().toLocaleLowerCase().indexOf(t[o].match.toString().toLowerCase()))),!n)break;return a(e)&&n};(c=s.filter(l)).length?o[i]=c:i===this._root&&(o[i]=[])}for(var d=0,h=s;d<h.length;d++){var f=h[d];this._recursiveFilter(t,e,f.id,n+1,o)}}},e.prototype._serialize=function(t,e){var i=this;return void 0===t&&(t=this._root),this.map((function(t){var n={};for(var o in t)"parent"===o||"items"===o||o.startsWith("$")||(n[o]=t[o]);return e&&(n=e(n)),i.haveItems(t.id)&&(n.items=i._serialize(t.id,e)),n}),t,!1)},e.prototype._applyFilter=function(t,e){var i=this;if(t&&("function"==typeof t||!(0,s.isEmptyObj)(t))){var n;this._initOrder||(this._initOrder=this._order),this._initChilds||(this._initChilds=this._childs);var o={};if("function"!=typeof t)if(n={},(0,s.isDefined)(t.by))n[t.by]=t;else for(var r in t)n[r]=t[r];else n=t;this._recursiveFilter(n,e,this._root,0,o),Object.keys(o).forEach((function(t){for(var e=i.getParent(t),n=i.getItem(t);e;)o[e]||(o[e]=[]),n&&!o[e].find((function(t){return t.id===n.id}))&&o[e].push(n),n=i.getItem(e),e=i.getParent(e)})),this._childs=o}},e.prototype._normalizeFilters=function(t){var e={};for(var i in t)e[i]=t[i].rule;return e},e}(a.DataCollection);e.TreeCollection=h},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.dragManager=void 0;var r=i(3),s=i(127),a=i(22),l=i(23),c=i(1);function u(t){var e=t.targetTouches?t.targetTouches[0].clientX:t.clientX,i=t.targetTouches?t.targetTouches[0].clientY:t.clientY,n=document.elementFromPoint(e,i);return(null==n?void 0:n.shadowRoot)?n.shadowRoot.elementFromPoint(e,i):n}var d=function(t){return"grid"===t.name},h=function(t){return d(t)&&t.hasOwnProperty("scrollView")},f=function(){function t(){var t=this;this._transferData={},this._canMove=!0,this._isDrag=!1,this._onMouseMove=function(e){if(t._transferData.start){var i=e.targetTouches?e.targetTouches[0].pageX:e.pageX,n=e.targetTouches?e.targetTouches[0].pageY:e.pageY,o=t._transferData,r=o.x,s=o.y,a=o.start,l=o.componentId;if(!t._transferData.ghost){if(Math.abs(r-i)<3&&Math.abs(s-n)<3)return;var c=t._onDragStart(a,l,e);if(!c)return void t._endDrop(e);t._transferData.ghost=c,document.body.appendChild(t._transferData.ghost)}t._moveGhost(i,n),t._onDrag(e)}},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){s.collectionStore.setItem(t,e)},t.prototype.onMouseDown=function(t,e,i){if(1===t.which||t.targetTouches){t.targetTouches?(document.addEventListener("touchmove",this._onMouseMove,!1),document.addEventListener("touchend",this._onMouseUp,!1)):(document.addEventListener("mousemove",this._onMouseMove),document.addEventListener("mouseup",this._onMouseUp));var n=u(t),s=(0,r.locateNode)(n,"data-dhx-id"),a=s&&s.getAttribute("data-dhx-id"),l=(0,r.locate)(n,"data-dhx-widget-id");if(Array.isArray(e)&&e.includes(a)?(this._transferData.source=o([],e,!0),this._itemsForGhost=i):(this._transferData.source=[a],this._itemsForGhost=null),a&&l){var c=(0,r.getBox)(s),d=c.left,h=c.top,f=t.targetTouches?t.targetTouches[0].pageX:t.pageX,p=t.targetTouches?t.targetTouches[0].pageY:t.pageY;this._transferData.initXOffset=f-d,this._transferData.initYOffset=p-h,this._transferData.x=f,this._transferData.y=p,this._transferData.componentId=l,this._transferData.start=a,this._transferData.item=s}}},t.prototype.isDrag=function(){return this._isDrag},t.prototype.cancelCanDrop=function(t){this._canMove=!1,this._isDrag=!1;var e=this._transferData,i=e.start,n=e.source,o=e.target,r=e.dropComponentId,l={start:i,source:n,target:o},c=s.collectionStore.getItem(r);c&&o&&c.events.fire(a.DragEvents.cancelDrop,[l,t]),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(){document.body.removeChild(this._transferData.ghost)},t.prototype._onDrop=function(t){if(this._canMove){var e=this._transferData,i=e.start,n=e.source,o=e.target,r=e.dropComponentId,l={start:i,source:n,target:o,dropPosition:e.dropPosition},c=s.collectionStore.getItem(r),u=c&&c.config;if(c&&"source"!==u.dragMode){if(c.events.fire(a.DragEvents.beforeDrop,[l,t])){var d={id:o,component:c},h={id:i,component:this._transferData.component,newId:null};this._move(h,d),h.newId&&h.component!==d.component&&(l.start=h.newId),d.component.events.fire(a.DragEvents.afterDrop,[l,t])}this._endDrop(t)}else this._endDrop(t)}else this._endDrop(t)},t.prototype._onDragStart=function(t,e,i){var n=s.collectionStore.getItem(e),o=n.config,r=this._transferData,l={start:r.start,source:r.source,target:r.target};if("target"===o.dragMode||n._pregroupData)return null;var u=function(t,e,i){void 0===i&&(i=!1);var n=t.getBoundingClientRect(),o=document.createElement("div"),r=t.cloneNode(!0),s=window.getComputedStyle(t.parentElement).fontSize;return r.style.width=n.width+"px",r.style.height=n.height+"px",r.style.maxHeight=n.height+"px",r.style.opacity="0.8",r.style.fontSize=s,i&&e&&e.length||o.appendChild(r),e&&e.length&&e.forEach((function(t,e){var r=t.cloneNode(!0);r.style.width=n.width+"px",r.style.height=n.height+"px",r.style.maxHeight=n.height+"px",r.style.top=12*(e+1)-n.height-n.height*e+"px",r.style.left=12*(e+1)+"px",r.style.opacity="0.6",r.style.zIndex="".concat(-e-1),i||(r.style.fontSize=s,r.style.overflow="hidden"),o.appendChild(r)})),o.className="dhx_drag-ghost",o}(this._transferData.item,this._itemsForGhost,"row"===o.dragItem||"column"===o.dragItem||"both"===o.dragItem);return n.events.fire(a.DragEvents.beforeDrag,[l,i,u])&&(0,c.isId)(t)?(n.events.fire(a.DragEvents.dragStart,[l,i]),this._isDrag=!0,this._toggleTextSelection(!0),this._transferData.component=n,this._transferData.dragConfig=o,u):null},t.prototype._onDrag=function(t){var e=u(t),i=(0,r.locate)(e,"data-dhx-widget-id"),n=s.collectionStore.getItem(i);if(n){var o=!!(0,r.locateNodeByClassName)(e,"dhx_grid-header")||!!(0,r.locateNodeByClassName)(e,"dhx_grid-footer"),c=n.config.columns?n.config:void 0,d=c&&("both"===c.dragItem||"column"===c.dragItem);if(!o||d){var h=(0,r.locate)(e,"data-dhx-id"),f=(0,r.locate)(e,"data-dhx-root-id");if(!h&&!f)return this.cancelCanDrop(t),this._transferData.dropComponentId=i,this._transferData.target=null,void this._canDrop(t);var p=this._transferData,v=p.dropComponentId,g=p.start,_=p.source,m=p.target,y=p.componentId,b=p.dropPosition;if("complex"===n.config.dropBehaviour){var w=function(t){var e=t.targetTouches?t.targetTouches[0].clientY:t.clientY,i=(0,r.locateNode)(u(t));if(!i)return null;var n=i.childNodes[0];if(n){var o=n.getBoundingClientRect();return(e-o.top)/o.height}}(t);this._transferData.dropPosition=w<=.25?"top":w>=.75?"bottom":"in"}else if((m===h||!h&&m===f)&&v===i)return;var x={id:g,component:this._transferData.component};if("source"!==n.config.dragMode)if(x.component.events.fire(a.DragEvents.dragOut,[{start:g,source:_,target:m},t]),i!==y||!(0,l.isTreeCollection)(x.component.data)||(0,l.isTreeCollection)(x.component.data)&&x.component.data.canCopy(x.id,h)){this.cancelCanDrop(t);var E=this._transferData.target=h||f;this._transferData.dropComponentId=i,x.component.events.fire(a.DragEvents.dragIn,[{start:g,source:_,target:E,dropPosition:b},t])&&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 i=t.component,r=e.component,s=t.component.data,a=e.component.data,u=0,f=e.id,p=(0,l.isTreeCollection)(a)?e.component.config.dropBehaviour:void 0,v=t.component.config.columns?t.component.config:void 0,g=v&&("both"===v.dragItem||"column"===v.dragItem)&&v.columns.map((function(t){return t.id})).filter((function(i){return i===t.id||i===e.id})).length;if(g&&t.component===e.component){if(t.id===e.id)return;var _=(m=i.config.columns.map((function(t){return n({},t)}))).findIndex((function(e){return e.id===t.id}));if(-1===(w=m.findIndex((function(t){return t.id===e.id}))))return;return m.splice(w,0,m.splice(_,1)[0]),i.setColumns(m),void i.paint()}if(g&&t.component&&h(t.component)&&e.component&&h(e.component)){_=(m=i.config.columns.map((function(t){return n({},t)}))).findIndex((function(e){return e.id===t.id}));var m,y=r.config.columns.map((function(t){return n({},t)})),b=r.data.getLength(),w=y.findIndex((function(t){return t.id===e.id})),x=[],E=t.id;i.data.forEach((function(e){var i;x.push(((i={id:e.id})[E]=e[t.id],i))})),b?i.data.forEach((function(t,e){var i=r.data.getItem(t.id);i?r.data.update(i.id,n(n({},i),x[e])):r.data.add(x[e])})):r.data.parse(x);var C=m.splice(_,1)[0];return y.find((function(t){return t.id===E}))||y.splice(w,0,C),r.setColumns(y),r.paint(),i.setColumns(m),void i.paint()}var S=e.id===r.config.rootParent;switch(p){case"child":break;case"sibling":f=a.getParent(f),u=a.getIndex(e.id)+1;break;case"complex":var k=this._transferData.dropPosition;if(S)f=e.id,u=a.getLength();else{var O=a.getIndex(t.id);"top"===k?(f=a.getParent(f),u=a.getIndex(e.id)-(-1===O||O>a.getIndex(e.id)?0:1)):"bottom"===k&&(f=a.getParent(f),u=a.getIndex(e.id)+(-1===O||O>a.getIndex(e.id)?1:0))}break;default:(0,c.isId)(e.id)?(a.getIndex(t.id)>-1&&(t.newId=(0,c.uid)()),u=a.getIndex(e.id)):u=-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,u,a,f),u>-1&&u++})):s.copy(t.id,u,a,f);else if(this._transferData.source instanceof Array&&this._transferData.source.length>1)s.move(this._transferData.source,u,a,f);else if(d(r)&&!r.config.columns.length){var P=i.data.getItem(t.id);r.data.parse([n({},P)]),r.setColumns(o([],i.config.columns,!0)),r.paint(),i.data.remove(t.id),i.paint()}else s.move(t.id,u,a,f,t.newId)},t.prototype._endDrop=function(t){if(this._toggleTextSelection(!1),this._transferData.component){var e=this._transferData,i={start:e.start,source:e.source,target:e.target};this._transferData.component.events.fire(a.DragEvents.afterDrag,[i,t])}this.cancelCanDrop(t),this._canMove=!0,this._transferData={},this._transferData.target=null,this._transferData.dropComponentId=null},t.prototype._canDrop=function(t){this._canMove=!0;var e=this._transferData,i={start:e.start,source:e.source,target:e.target,dropPosition:e.dropPosition},n=s.collectionStore.getItem(this._transferData.dropComponentId);n&&this._transferData.target&&(d(n)&&(i.dragItem=this._transferData.item.classList.contains("dhx_grid-row")?"row":"column"),n.events.fire(a.DragEvents.canDrop,[i,t]))},t.prototype._toggleTextSelection=function(t){t?document.body.classList.add("dhx_no-select"):document.body.classList.remove("dhx_no-select")},t}(),p=window.dhxHelpers=window.dhxHelpers||{};p.dragManager=p.dragManager||new f,e.dragManager=p.dragManager},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.collectionStore=e.CollectionStore=void 0;var n=i(1),o=function(){function t(){this._store={}}return t.prototype.setItem=function(t,e){this._store[t]=e},t.prototype.getItem=function(t){return(0,n.isId)(t)&&this._store[t]?this._store[t]:null},t}();e.CollectionStore=o;var r=window.dhxHelpers=window.dhxHelpers||{};r.collectionStore=r.collectionStore||new o,e.collectionStore=r.collectionStore},function(t,e,i){"use strict";(function(t){var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.LazyDataProxy=void 0;var r=i(27),s=i(1),a=i(41),l=function(e){function i(t,i){var n=e.call(this,t)||this;return n.config=(0,s.extend)({from:0,limit:50,delay:50,prepare:0},i),n.updateUrl(t,{from:n.config.from,limit:n.config.limit}),n}return o(i,e),i.prototype.load=function(){var e=this;return new t((function(t,i){e._timeout?(clearTimeout(e._timeout),e._timeout=setTimeout((function(){a.ajax.get(e.url,{responseType:"text"}).then(t).catch(i),e._cooling=!0}),e.config.delay),e._cooling&&(t(null),e._cooling=!1)):(a.ajax.get(e.url,{responseType:"text"}).then(t).catch(i),e._cooling=!0,e._timeout=setTimeout((function(){})))}))},i}(r.DataProxy);e.LazyDataProxy=l}).call(this,i(17))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Selection=void 0;var n=i(2),o=i(28),r=i(22),s=i(1),a=function(){function t(t,e,i){var o=this;this.events=i||new n.EventSystem(this),this.config=t,this._data=e,this._selected=null,this._data.events.on(r.DataEvents.removeAll,(function(){o._selected=null})),this._data.events.on(r.DataEvents.change,(function(){if((0,s.isId)(o._selected)){var t=o._data.getNearId(o._selected);t!==o._selected&&(o._selected=null,t&&o.add(t))}}))}return t.prototype.getId=function(){return this._selected},t.prototype.getItem=function(){return(0,s.isId)(this._selected)?this._data.getItem(this._selected):null},t.prototype.remove=function(t){return t=null!=t?t:this._selected,!(0,s.isDefined)(t)||!!this.events.fire(o.SelectionEvents.beforeUnSelect,[t])&&(this._data.update(t,{$selected:!1},!0),this._selected=null,this.events.fire(o.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(o.SelectionEvents.beforeSelect,[t])&&(this._selected=t,this._data.update(t,{$selected:!0},!0),this.events.fire(o.SelectionEvents.afterSelect,[t]))},t}();e.Selection=a},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Vault=void 0;var a=i(1),l=i(0),c=i(2),u=i(3),d=i(19),h=i(9),f=i(7),p=i(11),v=i(12),g=i(34),_=i(20),m=i(48),y=i(33),b=i(59),w=i(156),x=i(157),E=i(158),C=i(159),S=function(t){function e(e,i){void 0===i&&(i={});var n=t.call(this,null,(0,a.extend)({mode:y.VaultMode.list,toolbar:!0,updateFromResponse:!0,scaleFactor:4,customScroll:!0,uploader:{},progressBar:{}},i))||this;return n.config.toolbar||(n.config.uploader.autosend=!0),i.data?(n.data=i.data,n.events=i.data.events,n.events.context=n):(n.events=new c.EventSystem(n),n.data=new f.DataCollection({},n.events)),n.data.config.init=function(t){return t.status=t.status||y.FileStatus.uploaded,t.file?(t.size=t.file.size,t.name=t.file.name):(t.size=t.size||0,t.name=t.name||""),n.config.mode===y.VaultMode.grid&&t.file&&(0,x.isImage)(t)&&n._readStack.add(t,n.uploader.config.autosend),t},n._readStack=new C.ReadStackPreview(n.data),n.uploader=new b.Uploader(n.config.uploader,n.data,n.events),n._scrollView=new d.ScrollView((function(){return n._vaultView.getRootView()})),n._progressBar=new E.ProgressBar(n.events,n.config.progressBar),n.events.on(y.UploaderEvents.uploadProgress,(function(t,e,i){return n._progressBar.setState(t,{current:e,total:i})})),n._initHandlers(),n._initUI(e),n._initEvents(),n}return o(e,t),e.prototype.destructor=function(){this.toolbar.destructor(),this._readStack.stop(),this.uploader.unlinkDropArea(),this.uploader.abort()},e.prototype.getRootView=function(){return this._layout.getRootView()},e.prototype._initUI=function(t){var e=this,i=this.config.toolbar?w.layoutConfig:w.layoutConfigWithoutTopbar;i.on=this._getDragEvents();var n=this._layout=new p.Layout(t,i),o=this.toolbar=new g.Toolbar(null,{css:"vault-toolbar"});this.toolbar.data.parse([{id:"add",tooltip:m.default.add,type:"button",icon:"dxi-plus"},{id:"upload",tooltip:m.default.upload,type:"button",icon:"dxi icon-upload"},{id:"spacer",type:"spacer"},{id:"remove-all",tooltip:m.default.clearAll,type:"button",icon:"dxi-delete-forever"}]),this._hideUploadAndDeleteButtons(),this._vaultView=(0,h.toViewLike)((0,l.create)({render:function(){return e._draw()}})),this.config.toolbar&&n.getCell("topbar").attach(o),n.getCell("vault").attach(this._vaultView)},e.prototype._initHandlers=function(){var t=this;this._handlers={onclick:{".action-add":function(){return t.uploader.selectFile()},".action-remove-file":function(e){var i=(0,u.locate)(e);i&&(t.data.update(i,{$toRemove:!0}),setTimeout((function(){t.data.update(i,{$toRemove:!1},!0),t.data.remove(i)}),200))}},onmouseover:{".action-download":function(t){(0,v.tooltip)(m.default.download,{node:t.target,position:v.Position.bottom})},".action-remove-file":function(t){(0,v.tooltip)(m.default.clear,{node:t.target,position:v.Position.bottom})},".title-content, .dhx-file-name":function(e){var i=(0,u.locate)(e),n=t.data.getItem(i);(0,v.tooltip)(n.name,{node:e.target,position:v.Position.bottom,css:"tooltip-light"})}}}},e.prototype._getDragEvents=function(){var t=this,e={left:null,top:null,width:null,height:null};return{dragleave:function(i){t._canDrop&&(i.pageX>e.left+e.width-1||i.pageX<e.left||i.pageY>e.top+e.height-1||i.pageY<e.top)&&(t._canDrop=!1,t.config.toolbar&&t._layout.getCell("topbar").show(),t._layout.config.css="vault-layout",t._layout.paint())},dragenter:function(i){if(i.preventDefault(),!t.uploader.isActive&&!t._canDrop){for(var n=0,o=i.dataTransfer.types;n<o.length;n++){var r=o[n];if("Files"!==r&&"application/x-moz-file"!==r)return void(t._canDrop=!1)}t._canDrop=!0;var s=t.getRootView().node.el.getBoundingClientRect();e.left=s.left+window.pageXOffset,e.top=s.top+window.pageYOffset,e.width=s.width,e.height=s.height,t._canDrop=!0,t.config.toolbar&&t._layout.getCell("topbar").hide(),t._layout.config.css="vault-layout dhx-dragin",t._layout.paint()}},dragover:function(t){t.preventDefault()},drop:function(e){if(e.preventDefault(),t._canDrop){var i=e.dataTransfer;t.uploader.parseFiles(i),t._canDrop=!1,t.config.toolbar&&t._layout.getCell("topbar").show(),t._layout.config.css="vault-layout",t._layout.paint()}}}},e.prototype._hideUploadAndDeleteButtons=function(){this.toolbar.hide(["upload","remove-all"])},e.prototype._showUploadAndDeleteButtons=function(){this.uploader.config.autosend?this.toolbar.show("remove-all"):this.toolbar.show(["upload","remove-all"])},e.prototype._initEvents=function(){var t=this;this.data.events.on(f.DataEvents.change,(function(){t.data.getLength()?t._showUploadAndDeleteButtons():t._hideUploadAndDeleteButtons(),t._vaultView.paint()})),this.events.on(y.UploaderEvents.uploadBegin,(function(){t.config.toolbar&&t._layout.getCell("topbar").attach(t._progressBar)})),this.events.on(y.UploaderEvents.uploadComplete,(function(){t.config.mode===y.VaultMode.grid&&t.uploader.config.autosend&&t._readStack.read(),t.config.toolbar&&t._layout.getCell("topbar").attach(t.toolbar)})),this.toolbar.events.on(_.NavigationBarEvents.click,(function(e){switch(e){case"add":t.uploader.selectFile();break;case"remove-all":t.data.removeAll();break;case"upload":t.uploader.send()}})),this.events.on(y.ProgressBarEvents.cancel,(function(){t.uploader.abort(),t._vaultView.paint()}))},e.prototype._draw=function(){var t=!this.data.getLength(),e=this.config.mode===y.VaultMode.grid?this._drawGrid():this._drawList();return(0,l.el)("div",r(r({class:"vault dhx_widget"+(this._canDrop?" drop-here":"")},this._handlers),{"data-dhx-widget-id":this._uid}),[this._canDrop||t?this._drawDropableArea():this.config.customScroll?this._scrollView.render(e):e])},e.prototype._getFileActions=function(t){var e=[],i=[],n=[(0,l.el)(".dhx-default-actions",e),(0,l.el)(".dhx-hover-actions",i)];if(t.status===y.FileStatus.inprogress)return n;if(t.status!==y.FileStatus.failed&&t.link){var o=(this.config.downloadURL||"")+t.link,r=o.split("/").pop().split("?")[0],s=(0,l.el)("a",{download:r,class:"download-link",href:o},[(0,l.el)(".icon-btn.dxi.dxi-download.action-download")]);i.push(s)}var a=(0,l.el)(".icon-btn.dxi.dxi-delete-forever.action-remove-file");if(i.push(a),t.status===y.FileStatus.failed){var c=(0,l.el)(".dxi.dxi-alert-circle.warning-status");e.push(c)}if(t.status===y.FileStatus.uploaded){var u=(0,l.el)(".dxi.dxi-checkbox-marked-circle.uploaded-status");e.push(u)}return n},e.prototype._drawList=function(){var t=this;return(0,l.el)(".dhx-files-block.dhx-webkit-scroll",this.data.map((function(e){var i=e.status===y.FileStatus.failed&&e.request,n=e.status===y.FileStatus.inprogress,o=e.status===y.FileStatus.queue,r=e.status!==y.FileStatus.uploaded;return(0,l.el)("div",{class:"dhx-file-item"+(e.$toRemove?" to-remove":"")+(o?" in-queue":""),"data-dhx-id":e.id,_key:e.id},[(0,l.el)(".dhx-file-icon",[(0,l.el)("div",{class:"dhx-file-type "+(0,x.getFileClassName)(e)+(r?" not-loaded":"")})]),(0,l.el)(".dhx-file-title",[(0,l.el)(".dhx-title-content",e.name),(0,l.el)(".dhx-file-info",[i&&(0,l.el)(".warn-message",e.request.statusText||m.default.error),n?(0,l.el)(".progress-value",(100*e.progress).toFixed(1)+"%"):(0,l.el)(".dhx-size"+(i?".dhx-size-error":""),(0,x.getBasis)(e.size))])]),n&&(0,l.el)(".dhx-download-progress",{style:{width:(100*e.progress).toFixed(1)+"%"}}),!n&&(0,l.el)(".dhx-file-action",t._getFileActions(e))])})))},e.prototype._drawDropableArea=function(){return(0,l.el)(".dhx-dropable-area.drop-files-here",[(0,l.el)(".dhx-big-icon-block",[(0,l.el)(".dxi.icon-upload")]),!this._canDrop&&(0,l.el)(".drop-area-bold-text",m.default.dragAndDrop),!this._canDrop&&(0,l.el)(".drop-area-bold-text",m.default.filesOrFoldersHere),!this._canDrop&&(0,l.el)(".drop-area-light-text",m.default.or),!this._canDrop&&(0,l.el)("button.dhx_btn.dhx_btn--flat.dhx_btn--small.action-add",m.default.browse)])},e.prototype._drawGrid=function(){var t=this;return(0,l.el)("div",{class:"dhx-files-grid dhx-webkit-scroll"},[(0,l.el)(".dhx-grid-content",this.data.map((function(e){var i=e.status===y.FileStatus.inprogress,n=e.status===y.FileStatus.queue,o=e.status===y.FileStatus.failed;return(0,l.el)("div",{class:"dhx-file-grid-item"+(i?" in-progress":"")+(e.$toRemove?" to-remove":"")+(n?" in-queue":"")+(o?" failed":""),"data-dhx-id":e.id,_key:e.id},[(0,l.el)(".dhx-preview-wrapper",s(s([e.preview?(0,l.el)(".dhx-server-file-preview",[(0,l.el)("img",{src:e.preview})]):e.image?(0,l.el)("canvas",{width:98*t.config.scaleFactor,height:98*t.config.scaleFactor,_hooks:{didInsert:function(i){var n=(0,x.calculateCover)(e.image),o=n.dx,r=n.dy,s=n.sx,a=n.sy,l=n.sHeight,c=n.sWidth;i.el.getContext("2d").drawImage(e.image,s,a,c,l,o,r,98*t.config.scaleFactor,98*t.config.scaleFactor)}}}):(0,l.el)("div",{class:"dhx-file-preview dhx-file-type "+(0,x.getFileClassName)(e)}),i&&t._drawCircle(e.progress)],t._getFileActions(e),!0),[(0,l.el)(".dhx-file-info",[o&&(0,l.el)(".warn-message",e.request.statusText||m.default.error),!i&&(0,l.el)(".dhx-size"+(o?".dhx-size-error":""),(0,x.getBasis)(e.size))])],!1)),(0,l.el)(".dhx-file-name",(0,x.truncateWord)(e.name))])})))])},e.prototype._drawCircle=function(t){return(0,l.el)(".progress-layout",[(0,l.el)(".progress-amount",(100*t).toFixed(1)+"%"),(0,l.sv)("svg",{xmlns:"http://www.w3.org/2000/svg",class:"progress-circle",viewBox:"0 0 60 60"},[(0,l.sv)("circle",{cx:30,cy:30,r:28,"stroke-width":4,class:"progress-bar-background"}),(0,l.sv)("circle.active-circle",{cx:30,cy:30,r:28,"stroke-width":4,"stroke-dasharray":"175.9 175.9","stroke-dashoffset":175.9*(1-t),class:"progress-bar-active"})])])},e}(h.View);e.Vault=S},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMarginSize=e.getBlockRange=void 0,e.getBlockRange=function(t,e,i){return void 0===i&&(i=!0),i?{min:t.left+window.pageXOffset,max:e.right+window.pageXOffset}:{min:t.top+window.pageYOffset,max:e.bottom+window.pageYOffset}},e.getMarginSize=function(t){return t&&("space"===t.type||"wide"===t.type)?12:0}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.ProLayout=void 0;var r=i(42),s=i(133),a=function(t){function e(e,i){return t.call(this,e,i)||this}return o(e,t),e.prototype._createCell=function(t){var i;return t.rows||t.cols||t.views?(t.parent=this._root,i=new e(this,t)):i=new s.ProCell(this,t),this._root._all[i.id]=i,t.init&&t.init(i,t),i},e}(r.Layout);e.ProLayout=a},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ProCell=void 0;var s=i(1),a=i(0),l=i(19),c=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.scrollView=new l.ScrollView((function(){return n._getFirstRootView()})),n}return o(e,t),e.prototype._getFirstRootView=function(t){return void 0===t&&(t=this),t.getParent()&&t.getParent().getRootView()?t.getParent().getRootView():this._getFirstRootView(t.getParent())},e.prototype.toVDOM=function(t){var e,i,n;if(this._saveTheme(),null===this.config&&(this.config={}),!this.config.hidden){var o,l=this.config.$fieldset,c=this._calculateStyle(),u=(0,s.isDefined)(this.config.padding)?isNaN(Number(this.config.padding))?{padding:this.config.padding}:{padding:"".concat(this.config.padding,"px")}:"",d=this.config.full||this.config.html?c:r(r({},c),u),h=this._checkProgress()?this._getProgressBar():null;if(!this.config.html)if(this._ui){var f=this._ui.getRootView();f.render&&(f=(0,a.inject)(f)),o=f?[this.scrollView.render(f)]:f||null}else o=t?this.scrollView.render([t]):t||null;var p=this.config.resizable&&!this._isLastCell()&&this._getNextCell()&&!this.config.collapsed?(0,a.el)(".dhx_layout-resizer."+(this._isXDirection()?"dhx_layout-resizer--x":"dhx_layout-resizer--y"),r(r({},this._resizerHandlers),{_ref:"resizer_"+this._uid}),[(0,a.el)("span.dhx_layout-resizer__icon",{class:"dxi "+(this._isXDirection()?"dxi-dots-vertical":"dxi-dots-horizontal")})]):null,v={};if(this.config.on)for(var g in this.config.on)v["on"+g]=this.config.on[g];var _="",m=this.config.cols||this.config.rows;if(this.config.type&&m)switch(this.config.type){case"line":_=" dhx_layout-line";break;case"wide":_=" dhx_layout-wide";break;case"space":_=" dhx_layout-space"}var y=(0,a.el)(".dhx_layout-cell-content",{_key:"".concat(this._uid,"_html"),style:u},[(0,a.el)(".dhx_layout-cell-inner_html",{".innerHTML":this.config.html})]),b=l?(0,a.el)("fieldset.dhx_form-fieldset",{class:this.config.$disabled?" dhx_form-fieldset--disabled":"",style:u,disabled:this.config.$disabled},[(0,a.el)("legend.dhx_form-fieldset-legend",{class:"dhx_form-fieldset-legend--".concat(this.config.labelAlignment||"left")},this.config.label),(0,a.el)(".dhx_layout-cell-content",{class:this._getCss(!1)},[].concat(o))]):this.config.full?[(0,a.el)("div",{tabindex:this.config.collapsable?"0":"-1",class:"dhx_layout-cell-header"+(this._isXDirection()?" dhx_layout-cell-header--col":" dhx_layout-cell-header--row")+(this.config.collapsable?" dhx_layout-cell-header--collapseble":"")+(this.config.collapsed?" dhx_layout-cell-header--collapsed":"")+(((this.getParent()||{}).config||{}).isAccordion?" dhx_layout-cell-header--accordion":""),style:{height:this.config.headerHeight},onclick:this._handlers.toggle,onkeydown:this._handlers.enterCollapse},[this.config.headerIcon&&(0,a.el)("span.dhx_layout-cell-header__icon",{class:this.config.headerIcon}),this.config.headerImage&&(0,a.el)(".dhx_layout-cell-header__image-wrapper",[(0,a.el)("img",{src:this.config.headerImage,class:"dhx_layout-cell-header__image"})]),this.config.header&&(0,a.el)("h3.dhx_layout-cell-header__title",this.config.header),this.config.collapsable?(0,a.el)("div.dhx_layout-cell-header__collapse-icon",{class:this._getCollapseIcon()}):(0,a.el)("div.dhx_layout-cell-header__collapse-icon",{class:"dxi dxi-empty"})]),this.config.collapsed?null:(0,a.el)("div",{style:r(r({},u),{height:"calc(100% - ".concat(this.config.headerHeight||37,"px)")}),class:this._getCss(!0)+" dhx_layout-cell-content"+(this.config.type?_:"")},this.config.html?[(0,a.el)("div",{".innerHTML":this.config.html,class:"dhx_layout-cell dhx_layout-cell-inner_html"})]:o)]:!this.config.html||this.config.rows&&this.config.cols&&this.config.views?o:[this.config.collapsed?null:this.scrollView&&this.scrollView.config.enable?this.scrollView.render([y],this._uid):y],w=(0,a.el)("div",r(r(((e={_key:this._uid,_ref:this._uid})["aria-label"]=this.config.id?"tab-content-"+this.config.id:null,e["data-cell-id"]=null!==(i=this.config.id)&&void 0!==i?i:null,e["data-dhx-theme"]=null!==(n=this._theme)&&void 0!==n?n:null,e),v),{class:this._getCss(!1)+(this.config.css?" "+this.config.css:"")+(this.config.collapsed?" dhx_layout-cell--collapsed":"")+(this.config.resizable?" dhx_layout-cell--resizable":"")+(this.config.type&&!this.config.full?_:""),style:l?c:d}),b||h?[].concat(b,h):null);return p?[].concat(w,p):w}},e}(i(64).Cell);e.ProCell=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.message=void 0;var n=i(1),o=i(3),r=i(44),s=new WeakMap,a=new Map;function l(t,e){var i=document.createElement("div");return i.setAttribute("data-position",e),i.className="dhx_message-container dhx_message-container--"+e+(t===document.body?" dhx_message-container--in-body":""),i}e.message=function(t){var e;"string"==typeof t&&(t={text:t}),t.position=t.position||r.MessageContainerPosition.topRight;var i=document.createElement("div");i.className="dhx_widget dhx_message "+(t.css||""),i.setAttribute("role","alert");var c=t.text&&(0,n.uid)();c&&i.setAttribute("aria-describedby",c),t.html?i.innerHTML=t.html:(i.innerHTML='<span class="dhx_message__text" id='.concat(c,"></span>\n\t\t").concat(t.icon?'<span class="dhx_message__icon dxi '.concat(t.icon,'"></span>'):""),i.querySelector("#".concat(c)).textContent=t.text);var u=t.node?(0,o.toNode)(t.node):document.body;"static"===getComputedStyle(u).position&&(u.style.position="relative");var d=a.get(u);d?d[t.position]||(d[t.position]={stack:[],container:l(u,t.position)}):a.set(u,((e={})[t.position]={stack:[],container:l(u,t.position)},e));var h=a.get(u)[t.position],f=h.stack,p=h.container;function v(t){void 0===t&&(t=!0),i&&(!function(t,e){e&&clearTimeout(s.get(t));var i=t.parentNode,n=i.getAttribute("data-position"),o=i.parentNode,r=a.get(o);if(r){var l=r[n];if(l){var c=l.stack,u=c.indexOf(t);-1!==u&&(i.removeChild(t),c.splice(u,1),0===c.length&&o.removeChild(i))}}}(i,t),i=null)}if(0===f.length&&u.appendChild(p),f.push(i),p.appendChild(i),t.expire){var g=setTimeout((function(){return v(!1)}),t.expire);s.set(i,g)}return i.onclick=function(){return v()},{close:function(){return v()}}}},function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.alert=void 0;var n=i(45),o=i(65),r=i(1);e.alert=function(e){var i=e.buttons&&e.buttons[0]?e.buttons[0]:n.default.apply,s=(0,o.blockScreen)(e.blockerCss);return new t((function(t){var n="dhx_alert__".concat((0,r.uid)(),"_content"),o="dhx_alert__".concat((0,r.uid)(),"_header"),a=document.createElement("div");a.setAttribute("role","alert"),a.setAttribute("aria-modal","true"),e.text&&a.setAttribute("aria-describedby",n),e.header&&a.setAttribute("aria-labelledby",o),a.className="dhx_widget dhx_alert "+(e.css||"");var l=function(e){"Escape"!==e.key&&"Esc"!==e.key||(c(e),t(!1))};function c(t){t.preventDefault(),s(),document.body.removeChild(a),document.removeEventListener("keydown",l)}a.innerHTML="\n\t\t\t".concat(e.header?"<div id=".concat(o,' class="dhx_alert__header"> ').concat(!1!==e.htmlEnable?e.header:""," </div>"):"","\n\t\t\t").concat(e.text?"<div id=".concat(n,' 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(i,"</button>\n\t\t\t</div>"),!1===e.htmlEnable&&(e.header&&(a.querySelector("#".concat(o)).textContent=e.header),e.text&&(a.querySelector("#".concat(n)).textContent=e.text)),document.body.appendChild(a),a.querySelector(".dhx_alert__apply-button").focus(),a.querySelector("button").addEventListener("click",(function(e){c(e),t(!0)})),document.addEventListener("keydown",l)}))}}).call(this,i(17))},function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.confirm=void 0;var n=i(45),o=i(65),r=i(1);e.confirm=function(e){e.buttonsAlignment=e.buttonsAlignment||"right";var i=e.buttons&&e.buttons[1]?e.buttons[1]:n.default.apply,s=e.buttons&&e.buttons[0]?e.buttons[0]:n.default.reject,a=(0,o.blockScreen)("dhx_alert__overlay-confirm "+(e.blockerCss||""));return new t((function(t){var n=document.createElement("div");n.setAttribute("role","alertdialog"),n.setAttribute("aria-modal","true");var o,l=e.header&&(0,r.uid)(),c=e.header&&(0,r.uid)();c&&n.setAttribute("aria-describedby",c),l&&n.setAttribute("aria-labelledby",l);var u=function(e){a(),n.removeEventListener("click",d),document.removeEventListener("keydown",h),document.body.removeChild(n),t(e)},d=function(t){"BUTTON"===t.target.tagName&&u(t.target.classList.contains("dhx_alert__confirm-aply"))},h=function(t){"Escape"===t.key||"Esc"===t.key?(n.querySelector(".dhx_alert__confirm-aply").focus(),u(t.target.classList.contains("dhx_alert__confirm-reject"))):"Tab"===t.key&&("aply"===o?(o="reject",n.querySelector(".dhx_alert__confirm-reject").focus()):(o="aply",n.querySelector(".dhx_alert__confirm-aply").focus()),t.preventDefault())};n.className="dhx_widget dhx_alert dhx_alert--confirm"+(e.css?" "+e.css:""),n.innerHTML="\n\t\t".concat(e.header?'<div class="dhx_alert__header" id='.concat(l,"> ").concat(!1!==e.htmlEnable?e.header:""," </div>"):"","\n\t\t").concat(e.text?'<div class="dhx_alert__content" id='.concat(c,">").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(s,'</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(i,"</button>\n\t\t\t</div>"),!1===e.htmlEnable&&(e.header&&(n.querySelector("#".concat(l)).textContent=e.header),e.text&&(n.querySelector("#".concat(c)).textContent=e.text)),document.body.appendChild(n),o="aply",n.querySelector(".dhx_alert__confirm-aply").focus(),n.addEventListener("click",d),document.addEventListener("keydown",h)}))}}).call(this,i(17))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Navbar=void 0;var s=i(1),a=i(0),l=i(2),c=i(12),u=i(3),d=i(14),h=i(9),f=i(7),p=i(35);var v=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n._isContextMenu=!1,n._documentHaveListener=!1,n.config=(0,s.extend)({rootId:"string"==typeof e&&e||n._uid},i),n._rootItem={},Array.isArray(n.config.data)?(n.events=new l.EventSystem(n),n.data=new f.TreeCollection({rootId:n.config.rootId},n.events)):n.config.data&&n.config.data.events?(n.data=n.config.data,n.events=n.data.events,n.events.context=n):(n.events=new l.EventSystem(n),n.data=new f.TreeCollection({rootId:n.config.rootId},n.events)),n._documentClick=function(t){if(n._documentHaveListener){var e=(0,u.locateNode)(t),i=n.data.getRoot(),o=e&&e.getAttribute("data-dhx-id"),r=n.data.getParent(o),a="ontouchstart"in window||navigator.msMaxTouchPoints;if(document.removeEventListener("click",n._documentClick),n._documentHaveListener=!1,(0,s.isId)(o)&&n._currentRoot===o)return;((!a||e)&&n._isContextMenu||i!==r&&r&&n.data.getItem(o))&&r&&n.data.getItem(o)&&(!n._isContextMenu||i===(0,u.locate)(t,"data-dhx-widget-id"))||n._close(t)}},n._currentRoot=n.data.getRoot(),n._factory=n._getFactory(),n._initHandlers(),n._keyManager=new d.KeyManager((function(t,e){return e===n._uid})),n._initEvents(),Array.isArray(n.config.data)&&n.data.parse(n.config.data),n}return o(e,t),e.prototype.paint=function(){t.prototype.paint.call(this),this._isContextMenu&&!this._vpopups&&this._init(),this._vpopups&&this._vpopups.redraw()},e.prototype.disable=function(t){var e=this;void 0!==t?this._setProp(t,"disabled",!0):this.data.forEach((function(t){var i=t.id;return e._setProp(i,"disabled",!0)}))},e.prototype.enable=function(t){var e=this;void 0!==t?this._setProp(t,"disabled",!1):this.data.forEach((function(t){var i=t.id;return e._setProp(i,"disabled",!1)}))},e.prototype.isDisabled=function(t){var e=this.data.getItem(t);if(e)return e.disabled||!1},e.prototype.show=function(t){var e=this;void 0!==t?this._setProp(t,"hidden",!1):this.data.forEach((function(t){var i=t.id;return e._setProp(i,"hidden",!1)}))},e.prototype.hide=function(t){var e=this;void 0!==t?this._setProp(t,"hidden",!0):this.data.forEach((function(t){var i=t.id;return e._setProp(i,"hidden",!0)}))},e.prototype.destructor=function(){this.events.clear(),this._keyManager&&this._keyManager.destructor(),this._vpopups&&this._vpopups.node&&this._vpopups.unmount(),this.unmount()},e.prototype.select=function(t,e){var i=this;if(void 0===e&&(e=!0),!(0,s.isId)(t))throw new Error("Function argument cannot be empty, for more info check documentation https://docs.dhtmlx.com");e&&this.unselect(),this.data.update(t,{active:!0}),this.data.eachParent(t,(function(t){i.data.update(t.id,{active:!0})}))},e.prototype.unselect=function(t){var e=this;(0,s.isId)(t)?(this.data.update(t,{active:!1}),this.data.eachChild(t,(function(t){e.data.update(t.id,{active:!1})}))):this.data.forEach((function(t){e.data.update(t.id,{active:!1})}))},e.prototype.isSelected=function(t){if((0,s.isId)(t)&&this.data.getItem(t))return!!this.data.getItem(t).active},e.prototype.getSelected=function(){var t=[];return this.data.forEach((function(e){e.active&&t.push(e.id)})),t},e.prototype._customHandlers=function(){return{}},e.prototype._close=function(t){var e=this;this._popupActive&&this.events.fire(p.NavigationBarEvents.beforeHide,[this._activeMenu,t])&&(this._activeParents&&this._activeParents.forEach((function(t){return e.data.exists(t)&&e.data.update(t,{$activeParent:!1})})),"click"===this.config.navigationType&&(this._isActive=!1),clearTimeout(this._currentTimeout),this._popupActive=!1,this._activeMenu=null,this._vpopups.node&&this._vpopups.unmount(),this._vpopups=null,this.events.fire(p.NavigationBarEvents.afterHide,[t]),this.paint())},e.prototype._init=function(){var t,e=this;if(!this._isContextMenu||this._activePosition){var i=this.getRootNode()||document.documentElement,n=null===(t=null==i?void 0:i.closest("[data-dhx-theme]"))||void 0===t?void 0:t.getAttribute("data-dhx-theme");this._vpopups=(0,a.create)({render:function(){var t;return(0,a.el)("div",{"data-dhx-widget-id":e._uid,"data-dhx-theme":n||"light",class:"dhx_".concat(null===(t=e.config)||void 0===t?void 0:t.$name,"--popup-menu ").concat(e._isContextMenu?" dhx_context-menu":""," ").concat(e.config.css?e.config.css.split(" ").map((function(t){return e._isContextMenu?t:t+"--popup-menu"})).join(" "):""),onmousemove:e._handlers.onmousemove,onmouseleave:e._handlers.onmouseleave,onclick:e._handlers.onclick,onmousedown:e._handlers.onmousedown,onkeydown:e._handlers.onkeydown},e._drawPopups())}}),this._vpopups.mount(document.body)}},e.prototype._initHandlers=function(){var t=this;this._isActive="click"!==this.config.navigationType,this._handlers=r({onkeydown:function(e){var i=(0,u.locate)(e)||void 0;(0,u.locateNode)(e,"data-dhx-widget-id").contains(document.activeElement)&&t.events.fire(p.NavigationBarEvents.keydown,[e,i])},onmousemove:function(e){if(t._isActive){var i=(0,u.locateNode)(e);if(i){var n=i.getAttribute("data-dhx-id");if(t._activeMenu!==n){if(t.data.haveItems(n)){t._vpopups||t._init(),t._setRoot(n);var o=(0,u.getRealPosition)(i);t.data.update(n,{$position:o},!1)}t._activeItemChange(n,e)}}}},onmouseleave:function(e){if("click"!==t.config.navigationType)if(t._popupActive){var i=(0,u.locateNode)(e,"data-dhx-id","relatedTarget");if(i){var n=i.getAttribute("data-dhx-id");if(t.data.getItem(n)||(t._close(e),t._activeItemChange(null,e)),t.data.haveItems(n)){t._vpopups||t._init();var o=(0,u.getRealPosition)(i);t.data.update(n,{$position:o},!1),t._activeItemChange(n,e)}}else t._close(e),t._activeItemChange(null,e)}else t._activeItemChange(null,e)},onclick:function(e){var i=(0,u.locateNode)(e);if(i){var n=i.getAttribute("data-dhx-id");if(!t.isDisabled(n)){var o=t.data.getItem(n);if(!(null==o?void 0:o.multiClick)){if(t._currentRoot===n)return t.events.fire(p.NavigationBarEvents.click,[n,e]),void("click"===t.config.navigationType&&t._close(e));if(t.data.haveItems(n)){t._vpopups||t._init(),t._isActive||(t._isActive=!0),t._setRoot(n);var r=(0,u.getRealPosition)(i);t.data.update(n,{$position:r},!1),t._activeItemChange(n,e),t.events.fire(p.NavigationBarEvents.click,[n,e])}else switch(null==o?void 0:o.type){case"input":case"title":break;case"menuItem":case"selectButton":t._onMenuItemClick(n,e);break;case"imageButton":case"button":case"customButton":case"customHTML":case"navItem":o.twoState&&t.data.update(o.id,{active:!o.active}),t.events.fire(p.NavigationBarEvents.click,[n,e]),t._close(e);break;default:t._close(e)}}}}},onmousedown:function(e){var i=(0,u.locateNode)(e);if(i){var n=i.getAttribute("data-dhx-id"),o=t.data.getItem(n);if(null==o?void 0:o.multiClick){var r,s=365,a=function(){t.events.fire(p.NavigationBarEvents.click,[n,e]),s>50&&(s-=55),r=setTimeout(a,s)},l=function(){clearTimeout(r),document.removeEventListener("mouseup",l)};a(),document.addEventListener("mouseup",l)}}}},this._customHandlers())},e.prototype._initEvents=function(){var t=this,e=null;[p.DataEvents.change,p.DataEvents.filter].forEach((function(i){t.events.on(i,(function(){return t.paint(),e&&clearTimeout(e),void(e=setTimeout((function(){var i={};t.data.eachChild(t.data.getRoot(),(function(t){t.group&&(t.twoState=!0,function(t,e){t[e.group]?(e.active&&(t[e.group].active=e.id),t[e.group].elements.push(e.id)):t[e.group]={active:e.active?e.id:null,elements:[e.id]}}(i,t))}),!0),t._groups=i,t._resetHotkeys(),e=null,t.paint()}),100))}))})),this.events.on(p.NavigationBarEvents.click,(function(e){var i=t.data.getItem(e),n=t.data.getItem(null==i?void 0:i.parent);if(n&&"selectButton"===n.type&&t.data.update(i.parent,{value:i.value,icon:i.icon}),null==i?void 0:i.group){var o=t._groups[i.group];o.active&&t.data.update(o.active,{active:!1}),o.active=i.id,t.data.update(i.id,{active:!0})}})),this.events.on(p.NavigationBarEvents.inputChange,(function(e,i){t.data.update(e,{value:i})})),this._customInitEvents()},e.prototype._getMode=function(t,e,i){return void 0===i&&(i=!1),t.parent===e?"bottom":"right"},e.prototype._drawMenuItems=function(t,e){var i=this;return void 0===e&&(e=!0),this.data.map((function(t){return i._factory(t,e)}),t,!1)},e.prototype._setRoot=function(t){},e.prototype._getParents=function(t,e){var i=[],n=!1,o=this.data.getItem(t),r=o&&o.disabled;return this.data.eachParent(t,(function(t){t.id===e?(i.push(t.id),n=!0):n||i.push(t.id)}),!r),this._isContextMenu&&this._activePosition&&i.push(e),i},e.prototype._listenOuterClick=function(){this._documentHaveListener||(document.addEventListener("click",this._documentClick,!0),this._documentHaveListener=!0)},e.prototype._customInitEvents=function(){},e.prototype._drawPopups=function(){var t=this,e=this._activeMenu;if(!this._isContextMenu&&!e)return null;var i=this.getRootNode(),n=i&&i.offsetParent&&i.offsetParent.offsetParent,o=(0,c.getZIndex)(n),s=this._currentRoot,l=this._getParents(e,s);return this._activeParents=l,l.forEach((function(e){return t.data.exists(e)&&t.data.update(e,{$activeParent:!0},!1)})),l.map((function(e){if(!t.data.haveItems(e))return null;var i=t.data.getItem(e)||t._rootItem;return t._popupActive=!0,(0,a.el)("ul",r({class:"dhx_widget dhx_menu"+(t.config.menuCss?" "+t.config.menuCss:""),_key:e,_hooks:{didInsert:function(n){var a=n.el.getBoundingClientRect(),l=a.width,c=a.height,d=t._isContextMenu&&t._activePosition&&e===s?t._activePosition:i.$position,h=t._getMode(i,s,d===t._activePosition),f=(0,u.calculatePosition)(d,{mode:h,auto:!0,width:l,height:c});i.$style=r(r({},f),{zIndex:t._activePosition&&t._activePosition.zIndex||o}),n.patch({style:i.$style})},didRecycle:function(n,a){if(t._isContextMenu&&t._activePosition&&e===s){var l=a.el.getBoundingClientRect(),c=l.width,d=l.height,h=(0,u.calculatePosition)(t._activePosition,{mode:t._getMode(i,s,!0),width:c,height:d});i.$style=r(r({},h),{zIndex:t._activePosition.zIndex||o}),a.patch({style:i.$style})}}},tabindex:0,style:i.$style||{position:"absolute"}},function(t){return{role:"menu","aria-labeledby":t.id,"aria-live":"polite"}}(i)),t._drawMenuItems(e))})).reverse()},e.prototype._onMenuItemClick=function(t,e){var i=this.data.getItem(t);i.disabled||(i.twoState&&this.data.update(i.id,{active:!i.active}),this.events.fire(p.NavigationBarEvents.click,[t,e]),this._close(e))},e.prototype._activeItemChange=function(t,e){var i=this;if(this._activeParents){var n=this._getParents(t,this._currentRoot);this._activeParents.forEach((function(t){i.data.exists(t)&&!n.includes(t)&&i.data.update(t,{$activeParent:!1},!1)}))}(0,s.isId)(t)&&!this._documentHaveListener&&this._listenOuterClick(),(0,s.isId)(t)&&this.data.haveItems(t)?(this._activeMenu===t&&this._popupActive||this.events.fire(p.NavigationBarEvents.openMenu,[t]),clearTimeout(this._currentTimeout),this.paint()):(clearTimeout(this._currentTimeout),this._currentTimeout=setTimeout((function(){return i.paint()}),400)),this._activeMenu=t},e.prototype._resetHotkeys=function(){var t=this;this._keyManager.removeHotKey(null,this),this.data.map((function(e){e.hotkey&&t._keyManager.addHotKey(e.hotkey,(function(){return t._onMenuItemClick(e.id,null)}))}))},e.prototype._setProp=function(t,e,i){var n,o=this;Array.isArray(t)?t.forEach((function(t){var n;return o.data.update(t,((n={})[e]=i,n))})):this.data.update(t,((n={})[e]=i,n))},e}(h.View);e.Navbar=v},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFactory=void 0;var n=i(139),o=i(140),r=i(141),s=i(142),a=i(143),l=i(144),c=i(145),u=i(146),d=i(147),h=i(148),f=i(29);e.createFactory=function(t){for(var e=t.defaultType,i=t.allowedTypes,p=t.widgetName,v=t.widget,g=new Set,_=0,m=i;_<m.length;_++){var y=m[_];g.add(y)}var b=v.config,w=v.events,x=v.data;return function(t,i){if(t.hidden)return null;if(!(t.type&&"button"!==t.type&&"navItem"!==t.type&&"menuItem"!==t.type||t.value||t.icon||t.html))return null;t.type=t.type||e,g&&!g.has(t.type)&&(t.type=e),"imageButton"===t.type&&"ribbon"!==p&&(t.active=!1),i&&"spacer"!==t.type&&"separator"!==t.type&&"customHTML"!==t.type&&(t.type="menuItem"),x.haveItems(t.id)&&function(t,e,i){switch(t){case"sidebar":case"context-menu":e.$openIcon="right";break;case"toolbar":e.parent===i.getRoot()?e.$openIcon="right":e.$openIcon="bottom";break;case"menu":e.parent!==this.data.getRoot()&&(e.$openIcon="right");break;case"ribbon":var n=i.getItem(e.parent);n&&"block"!==e.type&&("block"===n.type?e.$openIcon="bottom":e.$openIcon="right")}}(p,t,x),"toolbar"===p&&t.items&&t.items.forEach((function(t){t.type||(t.type="menuItem")}));var v="customHTML"!==t.type&&function(t,e,i,f){switch(t.type){case"navItem":case"selectButton":return(0,o.navItem)(t,i,f.collapsed);case"button":return(0,n.button)(t,i);case"title":return(0,d.title)(t,i);case"separator":return(0,c.separator)(t,i);case"spacer":return(0,u.spacer)(t,i);case"input":return(0,a.input)(t,e,i);case"imageButton":return(0,s.imageButton)(t,i);case"menuItem":return(0,l.menuItem)(t,i,f.asMenuItem);case"customHTMLButton":return(0,r.customHTMLButton)(t,i,f.asMenuItem);case"datePicker":return(0,h.datePicker)(t,e,i);default:throw new Error("unknown item type "+t.type)}}(t,w,p,{asMenuItem:i,collapsed:"sidebar"!==p||b.collapsed});return(0,f.navbarComponentMixin)(p,t,i,v)}}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.button=void 0;var o=i(0),r=i(29);e.button=function(t,e){var i=t.icon&&!t.value,s=i?" dhx_navbar-count--absolute":" dhx_navbar-count--button-inline";return(0,o.el)("button.dhx_button",n({class:(0,r.getNavbarButtonCSS)(t,e),"data-dhx-id":t.id,disabled:t.disabled,type:"button"},function(t){var e=t.active||t.$activeParent,i={"aria-disabled":t.disabled?"true":"false","aria-label":t.value||t.tooltip||t.id||""+" ".concat(t.count||"")};return t.items&&(i.id=t.id,i["aria-haspopup"]="menu",e&&(i["aria-expanded"]="true")),i}(t)),[t.icon?(0,r.getIcon)(t.icon,"button"):null,t.html?(0,o.el)("div.dhx_button__text",{".innerHTML":t.html}):t.value&&(0,o.el)("span.dhx_button__text",t.value),t.count>0&&(0,r.getCount)(t,s,i),t.value&&t.$openIcon?(0,o.el)("span.dhx_button__icon.dhx_button__icon--menu.dxi.dxi-menu-right",{"aria-hidden":"true"}):null,t.loading&&(0,o.el)("span.dhx_button__loading",{"aria-hidden":"true"},[(0,o.el)("span.dhx_button__loading-icon.dxi.dxi-loading")])])}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.navItem=void 0;var o=i(0),r=i(29);e.navItem=function(t,e,i){var s=" dhx_"+e+"-button";return(0,o.el)("button",n({class:"dhx_button"+s+(t.active||t.$activeParent?s+"--active":"")+(t.disabled?s+"--disabled":"")+(t.$openIcon?s+"--select":"")+(t.circle?s+"--circle":"")+(t.size?" "+s+"--"+t.size:"")+(!t.value&&t.icon?s+"--icon":"")+(t.css?" "+t.css:""),"data-dhx-id":t.id,disabled:t.disabled,type:"button"},function(t){var e={"aria-disabled":t.disabled?"true":"false","aria-label":t.value||" "},i=t.active||t.$activeParent;return"selectButton"===t.type||t.items?(e.id=t.id,e["aria-haspopup"]="menu",i&&(e["aria-expanded"]="true")):((t.twoState||i)&&(e["aria-pressed"]=i?"true":"false"),!t.value&&t.icon&&t.tooltip&&(e["aria-label"]="".concat(t.tooltip," ").concat(t.count||""))),e}(t)),[t.icon&&(0,o.el)("span",{class:t.icon+s+"__icon","aria-hidden":"true"}),t.html&&(0,o.el)("div",{class:s.trim()+"__html",".innerHTML":t.html}),!t.html&&t.value&&(0,o.el)("span",{class:s.trim()+"__text"},t.value),t.count>0&&(0,r.getCount)(t,s+"__count",i),t.$openIcon&&(0,o.el)("span.dxi.dxi-menu-right",{class:s+"__caret","aria-hidden":"true"})])}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.customHTMLButton=void 0;var o=i(0);e.customHTMLButton=function(t,e,i){var r=i?" dhx_button dhx_menu-button":" dhx_button dhx_nav-menu-button";return(0,o.el)("button",n({class:"dhx_custom-button"+r+(t.$activeParent?r+"--active":""),"data-dhx-id":t.id,type:"button",".innerHTML":t.html},function(t){var e={"aria-disabled":t.disabled?"true":"false"};return(t.twoState||t.active||t.$activeParent)&&(e["aria-pressed"]=t.active||t.$activeParent?"true":"false"),e}(t)),t.html?"":t.value)}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.imageButton=void 0;var o=i(0),r=i(29);e.imageButton=function(t,e){var i="dhx_"+e+"-button-image",s="ribbon"===e;return(0,o.el)("button.dhx_button",n({class:i+(t.size?" "+i+"--"+t.size:"")+(!t.value&&t.src?" "+i+"--icon":"")+(s&&t.$openIcon?" "+i+"--select":"")+(t.active?" "+i+"--active":""),"data-dhx-id":t.id,type:"button"},function(t){var e={"aria-disabled":t.disabled?"true":"false"};return(t.twoState||t.active)&&(e["aria-pressed"]=t.active?"true":"false"),!t.value&&t.src&&t.tooltip&&(e["aria-label"]="".concat(t.tooltip," ").concat(t.count||"")),e}(t)),[s&&t.value&&t.$openIcon&&(0,o.el)("span.dxi.dxi-menu-right",{class:i+"__caret","aria-hidden":"true"}),t.html?(0,o.el)("div",{class:i+"__text",".innerHTML":t.html}):t.value&&(0,o.el)("span",{class:i+"__text"},t.value),t.src&&(0,o.el)("span",{class:i+"__image",style:{backgroundImage:"url(".concat(t.src,")")},role:"presentation"}),t.count>0&&(0,r.getCount)(t,i+"__count",!0)])}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.input=void 0;var n=i(0),o=i(35);function r(t,e){t.fire(o.NavigationBarEvents.inputBlur,[e])}function s(t,e){t.fire(o.NavigationBarEvents.inputFocus,[e])}function a(t,e,i){t.fire(o.NavigationBarEvents.inputChange,[e,i.target.value])}e.input=function(t,e,i){return(0,n.el)(".dhx_form-group.dhx_form-group--no-message-holder"+(t.hiddenLabel?".dhx_form-group--label_sr":".dhx_form-group--inline")+".dhx_".concat(i,"__input"),{style:{width:t.width?t.width:"200px"},role:"presentation"},[t.label&&(0,n.el)("label.dhx_label",{for:t.id,style:{maxWidth:t.hiddenLabel?null:"100%"}},t.label),(0,n.el)(".dhx_input__wrapper",{role:"presentation"},[(0,n.el)("input.dhx_input",{id:t.id,placeholder:t.placeholder,class:t.icon?"dhx_input--icon-padding":"",autocomplete:t.autocomplete?"on":"off",value:t.value,disabled:t.disabled,onblur:[r,e,t.id],onfocus:[s,e,t.id],onchange:[a,e,t.id],"data-dhx-id":t.id,_hooks:{didInsert:function(i){e&&e.fire(o.NavigationBarEvents.inputCreated,[t.id,i.el])}},_key:t.id,"aria-label":t.label||t.helpMessage||"type ".concat(t.placeholder?"text like "+t.placeholder:"text")}),t.icon?(0,n.el)(".dhx_input__icon",{class:t.icon,"aria-hidden":"true"}):null])])}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.menuItem=void 0;var o=i(0),r=i(29),s=i(1);e.menuItem=function(t,e,i){var a=i?" dhx_menu-button":" dhx_nav-menu-button",l=(0,s.isDefined)(t.count);return(0,o.el)("button",n({class:"dhx_button"+a+(t.disabled?a+"--disabled":"")+(t.active||t.$activeParent?a+"--active":""),disabled:t.disabled,"data-dhx-id":t.id,type:"button"},function(t){var e={role:"menuitem","aria-disabled":t.disabled?"true":"false"};return t.items&&(e["aria-haspopup"]="true"),e}(t)),i?[t.icon||t.value||t.html?(0,o.el)("span.dhx_menu-button__block.dhx_menu-button__block--left",[t.icon&&(0,o.el)("span.dhx_menu-button__icon",{class:t.icon}),t.html?(0,o.el)("div.dhx_menu-button__text",{".innerHTML":t.html}):t.value&&(0,o.el)("span.dhx_menu-button__text",t.value)]):null,l||t.hotkey||t.items?(0,o.el)("span.dhx_menu-button__block.dhx_menu-button__block--right",[l&&(0,r.getCount)(t," dhx_menu-button__count",!1),t.hotkey&&(0,o.el)("span.dhx_menu-button__hotkey",t.hotkey),t.items&&(0,o.el)("span.dhx_menu-button__caret.dxi.dxi-menu-right")]):null]:[t.icon&&(0,o.el)("span.dhx_menu-button__icon",{class:t.icon}),t.html?(0,o.el)("div.dhx_menu-button__text",{".innerHTML":t.html}):t.value&&(0,o.el)("span.dhx_nav-menu-button__text",t.value),l&&(0,r.getCount)(t," dhx_menu-button__count",!1)])}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.separator=void 0,e.separator=function(t,e){return null}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.spacer=void 0,e.spacer=function(t,e){return null}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.title=void 0;var n=i(0);e.title=function(t,e){return(0,n.el)("span",{class:"dhx_navbar-title dhx_navbar-title--"+e,"data-dhx-id":t.id,".innerHTML":t.html,"aria-label":t.value||""},t.html?null:t.value)}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.datePicker=void 0;var o=i(0),r=i(36),s=i(13),a=i(35),l=i(15),c=i(3);function u(t,e,i){var n=i.target;n&&(n.value=e.$calendar.getValue()),t.fire(a.NavigationBarEvents.inputBlur,[null==e?void 0:e.id])}function d(t,e,i){(0,o.awaitRedraw)().then((function(){return e.$popup.show(i.target,{theme:i.target})})),t.fire(a.NavigationBarEvents.inputFocus,[null==e?void 0:e.id])}function h(t,e,i){var n=i.target.value,o=t.$calendar.config.dateFormat;return n.length?(0,l.stringToDate)(n,o,!0)&&t.$calendar.setValue((0,l.stringToDate)(n,o)):t.$calendar.clear(),e.fire(a.NavigationBarEvents.input,[(0,c.locate)(i),n]),!1}e.datePicker=function(t,e,i){t.$popup||(t.$popup=new s.Popup),t.$calendar||(t.$calendar=new r.Calendar(null,n(n({},t),{css:"dhx_widget--bordered"})),t.$popup.attach(t.$calendar),t.$calendar.events.on("change",(function(i,n,o){var r;o&&t.$popup.isVisible()&&t.$popup.hide();var s="date"===(null===(r=t.valueFormat)||void 0===r?void 0:r.toLowerCase());e.fire(a.NavigationBarEvents.inputChange,[t.id,t.$calendar.getValue(s)])})));var l=t.$calendar.getValue();return t.mode&&"calendar"!==t.mode&&t.$calendar.showDate(void 0,t.mode),(0,o.el)(".dhx_form-group.dhx_form-group--no-message-holder"+(t.hiddenLabel?".dhx_form-group--label_sr":".dhx_form-group--inline")+".dhx_".concat(i,"__input"),{style:{width:t.width?t.width:"200px"},role:"presentation"},[t.label&&(0,o.el)("label.dhx_label",{for:t.id,style:{maxWidth:t.hiddenLabel?null:"100%"}},t.label),(0,o.el)(".dhx_input__wrapper",{role:"presentation"},[(0,o.el)("input.dhx_input",{id:t.id,placeholder:t.placeholder,class:t.icon?"dhx_input--icon-padding":"",value:l,disabled:t.disabled,onblur:[u,e,t],onfocus:[d,e,t],oninput:[h,t,e],"data-dhx-id":t.id,readOnly:!0!==t.editable,_hooks:{didInsert:function(i){e&&e.fire(a.NavigationBarEvents.inputCreated,[t.id,i.el])}},_key:t.id,"aria-label":t.label||t.helpMessage||"type ".concat(t.placeholder?"text like "+t.placeholder:"text")}),t.icon?(0,o.el)(".dhx_input__icon",{class:t.icon,"aria-hidden":"true"}):null])])}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Calendar=void 0;var a=i(1),l=i(0),c=i(2),u=i(9),d=i(46),h=i(154),f=i(15),p=i(72),v=i(3),g=function(t){function e(e,i){void 0===i&&(i={});var n=t.call(this,e,(0,a.extend)({weekStart:"sunday",thisMonthOnly:!1,dateFormat:window&&window.dhx&&window.dhx.dateFormat,width:"250px"},i))||this;switch(n._selected=[],n.events=new c.EventSystem,n.config.disabledDates=n.config.disabledDates||n.config.block,n.config.mode=n.config.mode||n.config.view,n.config.dateFormat||(n.config.timePicker?12===n.config.timeFormat?n.config.dateFormat="%d/%m/%y %h:%i %A":n.config.dateFormat="%d/%m/%y %H:%i":n.config.dateFormat="%d/%m/%y"),n.config.value&&n._setSelected(n.config.value),n.config.date?n._currentDate=f.DateHelper.toDateObject(n.config.date,n.config.dateFormat):n._getSelected()?n._currentDate=f.DateHelper.copy(n._getSelected()):n._currentDate=new Date,n.config.mode){case"month":n._currentViewMode="month";break;case"year":n._currentViewMode="year";break;case"timepicker":n._currentViewMode=n.config.timePicker?"timepicker":"calendar";break;default:n._currentViewMode="calendar"}if(n._initHandlers(),n.config.timePicker){n._timepicker=new d.Timepicker(null,{timeFormat:n.config.timeFormat,controls:!0});var o=n._getSelected()||new Date;n._timepicker.setValue(o),n._time=n._timepicker.getValue(),n._timepicker.events.on(d.TimepickerEvents.afterClose,(function(){n._timepicker.setValue(n._time),n.showDate(null,"calendar")})),n._timepicker.events.on(d.TimepickerEvents.afterApply,(function(){var t=n._timepicker.getValue(!0),e=t.hour,i=t.minute,o=t.AM,r=n._getSelected(),s=f.DateHelper.withHoursAndMinutes(n._getSelected()||new Date,e,i,o);n.events.fire(p.CalendarEvents.beforeChange,[s,r,!0])&&(n._selected[n._selected.length-1]=s,n.events.fire(p.CalendarEvents.change,[s,r,!0])),n._time=n._timepicker.getValue(),n.showDate(null,"calendar")}))}return n.mount(e,(0,l.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype.setValue=function(t){if(!t||t instanceof Array&&0===t.length)return!1;var e=t instanceof Array?t[0]:t,i=f.DateHelper.toDateObject(e,this.config.dateFormat),n=f.DateHelper.copy(this._getSelected());return!!this.events.fire(p.CalendarEvents.beforeChange,[i,n,!1])&&(this._selected=[],this._setSelected(t),this._timepicker&&(this._timepicker.setValue(i),this._time=this._timepicker.getValue()),this.showDate(this._getSelected()),this.events.fire(p.CalendarEvents.change,[i,n,!1]),this.paint(),!0)},e.prototype.getValue=function(t){var e=this;return void 0===t&&(t=!1),this._selected[0]?this.config.range?t?this._selected.map((function(t){return f.DateHelper.copy(t)})):this._selected.map((function(t){return(0,f.getFormattedDate)(e.config.dateFormat,t)})):t?f.DateHelper.copy(this._selected[0]):(0,f.getFormattedDate)(this.config.dateFormat,this._selected[0]):""},e.prototype.getCurrentMode=function(){return this._currentViewMode},e.prototype.showDate=function(t,e){t&&(this._currentDate=f.DateHelper.copy(t)),e&&(this._currentViewMode=e),this.paint()},e.prototype.destructor=function(){this._linkedCalendar&&this._unlink(),this._timepicker&&this._timepicker.destructor(),this.events&&this.events.clear(),this.config=this.events=null,this._uid=this._selected=this._currentDate=this._currentViewMode=this._handlers=this._timepicker=this._time=null,this.unmount()},e.prototype.clear=function(){var t=this.getValue(!0);this.events.fire(p.CalendarEvents.beforeChange,["",t,!1])&&(this.config.timePicker&&(this._timepicker.clear(),this._time=this._timepicker.getValue()),this._selected=[],this.showDate(null,this.config.mode),this.events.fire(p.CalendarEvents.change,[this.getValue(!0),t,!1,"clear"]))},e.prototype.link=function(t){var e=this;this._linkedCalendar&&this._unlink(),this._linkedCalendar=t;var i=this.getValue(!0),n=t.getValue(!0),o=i&&f.DateHelper.dayStart(i),r=n&&f.DateHelper.dayStart(n);this.config.$rangeMark&&this._linkedCalendar.config.$rangeMark||(this.config.$rangeMark=this._linkedCalendar.config.$rangeMark=function(t){if(o&&r)return t>=o&&t<=r&&function(t){if(f.DateHelper.isSameDay(r,o))return null;var e="dhx_calendar-day--in-range";return f.DateHelper.isSameDay(t,o)&&(e+=" dhx_calendar-day--first-date"),f.DateHelper.isSameDay(t,r)&&(e+=" dhx_calendar-day--last-date"),e}(t)}),this.config.disabledDates&&this._linkedCalendar.config.disabledDates||(this.config.disabledDates=function(t){if(r)return t>r},this._linkedCalendar.config.disabledDates=function(t){if(o)return t<o}),this.config.thisMonthOnly=!0,t.config.thisMonthOnly=!0,this.events.on(p.CalendarEvents.change,(function(t){o=t?f.DateHelper.dayStart(t):null,e._linkedCalendar.paint()}),"link"),this._linkedCalendar.events.on(p.CalendarEvents.change,(function(t){r=t?f.DateHelper.dayStart(t):null,e.paint()}),"link"),this._linkedCalendar.paint(),this.paint()},e.prototype._unlink=function(){this._linkedCalendar&&(this.config.$rangeMark=this._linkedCalendar.config.$rangeMark=null,this.config.disabledDates=this._linkedCalendar.config.disabledDates=null,this.events.detach(p.CalendarEvents.change,"link"),this._linkedCalendar.events.detach(p.CalendarEvents.change,"link"),this._linkedCalendar.paint(),this._linkedCalendar=null)},e.prototype._setSelected=function(t){var e=this,i=t instanceof Array?t[0]:t,n=f.DateHelper.toDateObject(i,this.config.dateFormat);if(t instanceof Array&&this.config.range){var o=[];t.forEach((function(t,i){i<2&&o.push(f.DateHelper.toDateObject(t,e.config.dateFormat))})),2===o.length&&o[0]<o[1]?o.forEach((function(t){return e._selected.push(t)})):this._selected[0]=o[0]}else this._selected[0]=n},e.prototype._getSelected=function(){return this._selected[this._selected.length-1]},e.prototype._draw=function(){switch(this._currentViewMode){case"calendar":return this.events.fire(p.CalendarEvents.modeChange,["calendar"]),this._drawCalendar();case"month":return this.events.fire(p.CalendarEvents.modeChange,["month"]),this._drawMonthSelector();case"year":return this.events.fire(p.CalendarEvents.modeChange,["year"]),this._drawYearSelector();case"timepicker":return this.events.fire(p.CalendarEvents.modeChange,["timepicker"]),this._drawTimepicker()}},e.prototype._initHandlers=function(){var t=this,e={Up:"ArrowUp",Down:"ArrowDown",Right:"ArrowRight",Left:"ArrowLeft",Esc:"Escape",Spacebar:"Space"},i=function(e){void 0===e&&(e=!1);var i=0;switch(t._currentViewMode){case"calendar":i=e?-7:7;break;case"month":case"year":i=e?-4:4}return i};this._handlers={onkeydown:{".dhx_calendar-year, .dhx_calendar-month, .dhx_calendar-day":function(n,o){switch(function(t){var i;if(t.which>=48&&t.which<=57||t.which>=65&&t.which<=90)i=String.fromCharCode(t.which);else{var n=32===t.which?t.code:t.key;i=(0,v.isIE)()&&e[n]||n}return i}(n)){case"Enter":t._selectDate(n,o);break;case"ArrowLeft":t._moveBrowseFocus(n,o,-1);break;case"ArrowRight":t._moveBrowseFocus(n,o,1);break;case"ArrowUp":t._moveBrowseFocus(n,o,i(!0));break;case"ArrowDown":t._moveBrowseFocus(n,o,i())}}},onclick:{".dhx_calendar-year, .dhx_calendar-month, .dhx_calendar-day":function(e,i){t._selectDate(e,i)},".dhx_calendar-action__cancel":function(){t.showDate(t._getSelected(),"calendar"),t.events.fire(p.CalendarEvents.cancelClick,[])},".dhx_calendar-action__show-month":function(){return t.showDate(null,"month")},".dhx_calendar-action__show-year":function(){return t.showDate(null,"year")},".dhx_calendar-action__next":function(){var e;switch(t._currentViewMode){case"calendar":e=f.DateHelper.addMonth(t._currentDate,1);break;case"month":e=f.DateHelper.addYear(t._currentDate,1);break;case"year":e=f.DateHelper.addYear(t._currentDate,12)}t.showDate(e)},".dhx_calendar-action__prev":function(){var e;switch(t._currentViewMode){case"calendar":e=f.DateHelper.addMonth(t._currentDate,-1);break;case"month":e=f.DateHelper.addYear(t._currentDate,-1);break;case"year":e=f.DateHelper.addYear(t._currentDate,-12)}t.showDate(e)},".dhx_calendar-action__show-timepicker":function(){t._currentViewMode="timepicker",t.paint()}},onmouseover:{".dhx_calendar-day":function(e,i){t.events.fire(p.CalendarEvents.dateMouseOver,[new Date(i.attrs._date),e]),t.events.fire(p.CalendarEvents.dateHover,[new Date(i.attrs._date),e])}}}},e.prototype._getData=function(t){var e,i=this;switch(this._isSelectedInCurrentRange=!1,this.config.weekStart){case"saturday":e=-1;break;case"monday":e=1;break;default:e=0}for(var n=[],o=6,r=f.DateHelper.weekStart(f.DateHelper.monthStart(t),e);o--;){for(var s=f.DateHelper.getWeekNumber(r),a=0,l=7,c=[],u=function(){var e=f.DateHelper.isWeekEnd(r),n=t.getMonth()===r.getMonth(),o=d.config.disabledDates&&d.config.disabledDates(r),s=[];if(d.config.range&&d._selected[0]&&d._selected[1]){var l=function(){if(i._selected[0]&&i._selected[1]){var t=f.DateHelper.dayStart(i._selected[0]),e=f.DateHelper.dayStart(i._selected[1]);return r>=t&&r<=e&&(f.DateHelper.isSameDay(i._selected[0],i._selected[1])?null:"dhx_calendar-day--in-range")}};d.config.$rangeMark=l}if(e&&s.push("dhx_calendar-day--weekend"),n||(d.config.thisMonthOnly?(a++,s.push("dhx_calendar-day--hidden")):s.push("dhx_calendar-day--muffled")),d.config.mark){var u=d.config.mark(r);u&&s.push(u)}d.config.$rangeMark&&((l=d.config.$rangeMark(r))&&s.push(l));o&&(e?s.push("dhx_calendar-day--weekend-disabled"):s.push("dhx_calendar-day--disabled")),d._selected.forEach((function(t,e){if(t&&f.DateHelper.isSameDay(t,r)){i._isSelectedInCurrentRange=!0;var n="dhx_calendar-day--selected";i.config.range&&(n+=" dhx_calendar-day--selected-".concat(0===e?"first ":"last")),s.push(n)}})),c.push({date:r,day:r.getDate(),css:s.join(" ")}),r=f.DateHelper.addDay(r)},d=this;l--;)u();n.push({weekNumber:s,days:c,disabledWeekNumber:7===a})}return n},e.prototype._drawCalendar=function(){var t,e=this,i=this._currentDate,n=this.config,o=n.weekStart,a=n.thisMonthOnly,c=n.css,u=n.timePicker,d=n.width;switch(o){case"saturday":t=s([f.locale.daysShort[6]],f.locale.daysShort.slice(0,-1),!0);break;case"monday":t=s(s([],f.locale.daysShort.slice(1),!0),[f.locale.daysShort[0]],!1);break;default:t=f.locale.daysShort}for(var h,p=t.map((function(t){return(0,l.el)(".dhx_calendar-weekday",t)})),v=this._getData(i),g=!0,_=this._getSelected(),m=function(t){var i={role:"button",tabindex:-1,"aria-pressed":"false"};return t&&(e._isSelectedInCurrentRange?function(t){return t&&_&&t.getTime()===_.getTime()}(t.date)&&(i.tabindex=0,i["aria-pressed"]="true"):g&&(i.tabindex=0),g=!1),i},y=[],b=[],w=0,x=v;w<x.length;w++){var E=x[w],C=E.days.map((function(t){return(0,l.el)("div.dhx_calendar-day",r({class:t.css,_date:t.date},m(t)),t.day)}));!this.config.weekNumbers||E.disabledWeekNumber&&a||b.push((0,l.el)("div",{class:"dhx_calendar-week-number"},E.weekNumber)),y=y.concat(C)}this.config.weekNumbers&&(h=(0,l.el)(".dhx_calendar__week-numbers",b));var S="dhx_calendar dhx_widget"+(c?" "+c:"")+(u?" dhx_calendar--with_timepicker":"")+(this.config.weekNumbers?" dhx_calendar--with_week-numbers":"");return(0,l.el)("div",r({class:S,style:{width:this.config.weekNumbers?parseInt(d.toString())+48+"px":d}},this._handlers),[(0,l.el)(".dhx_calendar__wrapper",[this._drawHeader((0,l.el)("button.dhx_calendar-action__show-month.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"aria-live":"polite",type:"button"},f.locale.months[i.getMonth()]+" "+i.getFullYear())),this.config.weekNumbers&&(0,l.el)(".dhx_calendar__dates-wrapper",[(0,l.el)(".dhx_calendar__weekdays",p),(0,l.el)(".dhx_calendar__days",y),h]),!this.config.weekNumbers&&(0,l.el)(".dhx_calendar__weekdays",p),!this.config.weekNumbers&&(0,l.el)(".dhx_calendar__days",y),u?(0,l.el)(".dhx_timepicker__actions",[(0,l.el)("button.dhx_calendar__timepicker-button.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--width_full.dhx_button--circle.dhx_calendar-action__show-timepicker",{type:"button"},[(0,l.el)("span.dhx_button__icon.dxi.dxi-clock-outline"),(0,l.el)("span.dhx_button__text",this._time)])]):null])])},e.prototype._drawMonthSelector=function(){var t=this._currentDate,e=t.getMonth(),i=this._getSelected()?this._getSelected().getFullYear():null,n=this.config,o=n.css,s=n.timePicker,a=n.weekNumbers,c=n.width,u=n.mode,d="dhx_calendar dhx_widget"+(o?" "+o:"")+(s?" dhx_calendar--with_timepicker":"")+(a?" dhx_calendar--with_week-numbers":""),h=!0,p=i===t.getFullYear(),v=function(t){return p&&e===t};return(0,l.el)("div",r({class:d,style:{width:a?parseInt(c.toString())+48+"px":c}},this._handlers),[(0,l.el)(".dhx_calendar__wrapper",[this._drawHeader((0,l.el)("button.dhx_calendar-action__show-year.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"aria-live":"polite",type:"button"},t.getFullYear())),(0,l.el)(".dhx_calendar__months",f.locale.monthsShort.map((function(t,e){return(0,l.el)("div",r(r({class:"dhx_calendar-month"+(v(e)?" dhx_calendar-month--selected":"")},function(t,e){var i={role:"button",tabindex:-1,"aria-pressed":"false"};return t&&(p?v(e)&&(i.tabindex=0,i["aria-pressed"]="true"):h&&(i.tabindex=0),h=!1),i}(t,e)),{_date:e}),t)}))),"month"!==u?(0,l.el)(".dhx_calendar__actions",[(0,l.el)("button.dhx_button.dhx_button--color_primary.dhx_button--view_link.dhx_button--size_small.dhx_button--width_full.dhx_button--circle.dhx_calendar-action__cancel",{type:"button"},f.locale.cancel)]):null])])},e.prototype._drawYearSelector=function(){var t=this,e=this._currentDate,i=f.DateHelper.getTwelweYears(e),n=this.config,o=n.css,s=n.timePicker,a=n.weekNumbers,c=n.width,u=n.mode,d="dhx_calendar dhx_widget"+(o?" "+o:"")+(s?" dhx_calendar--with_timepicker":"")+(a?" dhx_calendar--with_week-numbers":""),h=!0,p=this._getSelected()&&i.includes(this._getSelected().getFullYear()),v=function(e){return t._getSelected()&&e===t._getSelected().getFullYear()};return(0,l.el)("div",r({class:d,style:{width:a?parseInt(c.toString())+48+"px":c}},this._handlers),[(0,l.el)(".dhx_calendar__wrapper",[this._drawHeader((0,l.el)("button.dhx_button.dhx_button--view_link.dhx_button--size_small.dhx_button--color_secondary.dhx_button--circle",{"aria-live":"polite",type:"button"},i[0]+"-"+i[i.length-1])),(0,l.el)(".dhx_calendar__years",i.map((function(t){return(0,l.el)("div",r({class:"dhx_calendar-year"+(v(t)?" dhx_calendar-year--selected":""),_date:t},function(t){var e={role:"button",tabindex:-1,"aria-pressed":"false"};return t&&(p?v(t)&&(e.tabindex=0,e["aria-pressed"]="true"):h&&(e.tabindex=0),h=!1),e}(t)),t)}))),"year"!==u&&"month"!==u?(0,l.el)(".dhx_calendar__actions",[(0,l.el)("button.dhx_button.dhx_button--color_primary.dhx_button--view_link.dhx_button--size_small.dhx_button--width_full.dhx_button--circle.dhx_calendar-action__cancel",{type:"button"},f.locale.cancel)]):null])])},e.prototype._drawHeader=function(t){return(0,l.el)(".dhx_calendar__navigation",[(0,l.el)("button.dhx_calendar-navigation__button.dhx_calendar-action__prev"+h.linkButtonClasses+".dhx_button--icon.dhx_button--circle",{"aria-label":"prev",type:"button"},[(0,l.el)(".dhx_button__icon.dxi.dxi-chevron-left")]),t,(0,l.el)("button.dhx_calendar-navigation__button.dhx_calendar-action__next"+h.linkButtonClasses+".dhx_button--icon.dhx_button--circle",{"aria-label":"next",type:"button"},[(0,l.el)(".dhx_button__icon.dxi.dxi-chevron-right")])])},e.prototype._drawTimepicker=function(){var t=this.config,e=t.css,i=t.weekNumbers,n=t.width;return(0,l.el)(".dhx_widget.dhx-calendar",{class:e?" "+e:"",style:{width:i?parseInt(n.toString())+48+"px":n}},[(0,l.inject)(this._timepicker.getRootView())])},e.prototype._selectDate=function(t,e){var i=e.attrs._date,n=f.DateHelper.copy(this._getSelected());switch(this._currentViewMode){case"calendar":var o=this.config.timePicker?f.DateHelper.mergeHoursAndMinutes(i,this._getSelected()||this._currentDate):i;if(!this.events.fire(p.CalendarEvents.beforeChange,[o,n,!0]))return;this.config.range&&1===this._selected.length&&this._selected[0]<o?this._selected.push(o):(this._selected=[],this._selected[0]=o),e.el.blur(),this.showDate(this._getSelected()),this.events.fire(p.CalendarEvents.change,[i,n,!0]);break;case"month":if("month"!==this.config.mode)f.DateHelper.setMonth(this._currentDate,i),this.showDate(null,"calendar"),this.events.fire(p.CalendarEvents.monthSelected,[i]);else{var r=f.DateHelper.fromYearAndMonth(this._currentDate.getFullYear()||this._getSelected().getFullYear(),i);if(!this.events.fire(p.CalendarEvents.beforeChange,[r,n,!0]))return;this._currentDate=r,this._selected[0]=r,this.events.fire(p.CalendarEvents.change,[this._getSelected(),n,!0]),this.events.fire(p.CalendarEvents.monthSelected,[i]),this.paint()}break;case"year":if("year"!==this.config.mode)f.DateHelper.setYear(this._currentDate,i),this.showDate(null,"month"),this.events.fire(p.CalendarEvents.yearSelected,[i]);else{r=f.DateHelper.fromYear(i);if(!this.events.fire(p.CalendarEvents.beforeChange,[r,n,!0]))return;this._currentDate=r,this._selected[0]=r,this.events.fire(p.CalendarEvents.change,[this._getSelected(),n,!0]),this.events.fire(p.CalendarEvents.yearSelected,[i]),this.paint()}}},e.prototype._moveBrowseFocus=function(t,e,i){if(e){var n=e.parent.body[e.idx+i];if(n){var o=n.el;o&&(t.target.tabIndex=-1,o.tabIndex=0,o.focus({preventScroll:!0}))}}},e}(u.View);e.Calendar=g},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Timepicker=void 0;var s=i(1),a=i(0),l=i(2),c=i(9),u=i(11),d=i(47),h=i(70),f=i(153),p=i(71),v=i(3);function g(t,e){return isNaN(t)?0:Math.min(e,Math.max(0,t))}var _=function(t){function e(e,i){void 0===i&&(i={});var n=t.call(this,e,(0,s.extend)({timeFormat:24,controls:!1,valueFormat:"string",actions:!1},i))||this;return n.events=new l.EventSystem(n),n._time={hour:0,minute:0,AM:!0},12===n.config.timeFormat&&(n._time.hour=12),n.config.controls=n.config.controls||n.config.actions,n.config.value&&n._setValue(n.config.value),n._initUI(e),n._initHandlers(),n._initEvents(),n}return o(e,t),e.prototype.getValue=function(t){return 12===this.config.timeFormat&&(this._time.hour=this._time.hour%12||12),this._getValue(this._time,t)},e.prototype.setValue=function(t){this._setValue(t),this._hoursSlider.setValue(this._time.hour),this._minutesSlider.setValue(this._time.minute),this._inputsView.paint()},e.prototype.clear=function(){24===this.config.timeFormat?this.setValue("00:00"):this.setValue("12:00AM")},e.prototype.destructor=function(){this._minutesSlider&&this._minutesSlider.destructor(),this._hoursSlider&&this._hoursSlider.destructor(),this.events&&this.events.clear(),this.layout&&this.layout.destructor(),this.config=this.events=null,this._handlers=this._time=this._inputsView=this._minutesSlider=this._hoursSlider=null,this.unmount()},e.prototype.getRootView=function(){return this.layout.getRootView()},e.prototype._getValue=function(t,e){var i=t.hour,n=t.minute,o=t.AM;if(e){var r={hour:i,minute:n};return 12===this.config.timeFormat&&(r.AM=o),r}return(i<10?"0"+i:i)+":"+(n<10?"0"+n:n)+(12===this.config.timeFormat?o?"AM":"PM":"")},e.prototype._setValue=function(t){var e,i=0,n=0;if("number"==typeof t&&(t=new Date(t)),t instanceof Date)i=t.getMinutes(),n=t.getHours();else if(Array.isArray(t))n=g(t[0],23),i=g(t[1],59),t[2]&&"pm"===t[2].toLowerCase()&&(e=!0);else if("string"==typeof t){var o=t.match(/\d+/g);n=g(+o[0],23),i=g(+o[1],59),t.toLowerCase().includes("pm")&&(e=!0)}else"object"==typeof t&&t.hasOwnProperty("hour")&&t.hasOwnProperty("minute")&&(n=t.hour,i=t.minute,e=!t.AM);return e&&n<12&&(n+=12),12===this.config.timeFormat&&!(0,f.isTimeCheck)(t)&&n>=12&&(e=!0),this._time={hour:n,minute:i,AM:!e}},e.prototype._initUI=function(t){var e=this,i={gravity:!1,css:"dhx_widget dhx_timepicker "+(this.config.css?this.config.css:"")+(this.config.controls?" dhx_timepicker--with-controls":""),rows:[{id:"timepicker",css:"dhx_timepicker__inputs"},{id:"hour-slider",css:"dhx_timepicker__hour"},{id:"minute-slider",css:"dhx_timepicker__minute"}]};this.config.controls&&(i.rows.unshift({id:"close-action",css:"dhx_timepicker__close"}),i.rows.push({id:"save-action",css:"dhx_timepicker__save"}));var n=this.layout=new u.Layout(t,i),o=(0,a.create)({render:function(){return e._draw()}}),r=this._inputsView=(0,c.toViewLike)(o),s=this._minutesSlider=new d.Slider(null,{min:0,max:59,step:1,tooltip:!1,labelPosition:"top",label:h.default.minutes,value:this.config.value?this._time.minute:0}),l=this._hoursSlider=new d.Slider(null,{min:0,max:23,step:1,tooltip:!1,labelPosition:"top",label:h.default.hours,value:this.config.value?12===this._time.hour&&this._time.AM?0:this._time.hour:0});if(n.getCell("timepicker").attach(r),n.getCell("hour-slider").attach(l),n.getCell("minute-slider").attach(s),this.config.controls){n.getCell("save-action").attach((function(){return(0,a.el)("button.dhx_timepicker__button-save.dhx_button.dhx_button--view_flat.dhx_button--color_primary.dhx_button--size_small.dhx_button--circle.dhx_button--width_full",{onclick:e._outerHandlers.save,type:"button"},h.default.save)})),n.getCell("close-action").attach((function(){return(0,a.el)("button.dhx_timepicker__button-close.dhx_button.dhx_button--view_link.dhx_button--size_medium.dhx_button--view_link.dhx_button--color_secondary.dhx_button--icon.dhx_button--circle",{_ref:"close",onclick:e._outerHandlers.close,type:"button","aria-label":"close timepicker"},[(0,a.el)("span.dhx_button__icon.dxi.dxi-close")])}))}},e.prototype._initHandlers=function(){var t=this,e=function(e){var i=g(parseInt(e.value,10),59);e.value=i.toString(),t._minutesSlider.setValue(i)},i=function(e){var i=g(parseInt(e.value,10),23);e.value=i.toString(),t._hoursSlider.setValue(i)};this._handlers={onchange:{".dhx_timepicker-input--hour":function(t){return i(t.target)},".dhx_timepicker-input--minutes":function(t){return e(t.target)}},oninput:{".dhx_timepicker-input--hour":function(t){((0,v.isSafari)()||(0,v.isFirefox)())&&i(t.target)},".dhx_timepicker-input--minutes":function(t){((0,v.isSafari)()||(0,v.isFirefox)())&&e(t.target)}}},this._outerHandlers={close:function(){t.events.fire(p.TimepickerEvents.beforeClose,[t.getValue(t._isTimeObj())])&&(t.events.fire(p.TimepickerEvents.afterClose,[t.getValue(t._isTimeObj())]),t.events.fire(p.TimepickerEvents.close,[]))},save:function(){t.events.fire(p.TimepickerEvents.beforeApply,[t.getValue(t._isTimeObj())])&&(t.events.fire(p.TimepickerEvents.afterApply,[t.getValue(t._isTimeObj())]),t.events.fire(p.TimepickerEvents.apply,[t.getValue()]),t.events.fire(p.TimepickerEvents.save,[t._time]))}}},e.prototype._initEvents=function(){var t=this;this._hoursSlider.events.on(d.SliderEvents.beforeChange,(function(e){if(!(e<t._hoursSlider.config.min||e>t._hoursSlider.config.max)){var i=r({},t._time);12===t.config.timeFormat?(i.AM=e<12,i.hour=e%12||12):i.hour=e;var n=t._isTimeObj();return t.events.fire(p.TimepickerEvents.beforeChange,[t._getValue(i,n)])}})),this._hoursSlider.events.on(d.SliderEvents.change,(function(e){if(!(e<t._hoursSlider.config.min||e>t._hoursSlider.config.max)){12===t.config.timeFormat?(t._time.AM=e<12,t._time.hour=e%12||12):t._time.hour=e;var i=t._isTimeObj();t.events.fire(p.TimepickerEvents.change,[t.getValue(i)]),t._inputsView.paint()}})),this._minutesSlider.events.on(d.SliderEvents.beforeChange,(function(e){if(!(e<t._minutesSlider.config.min||e>t._minutesSlider.config.max)){var i=r(r({},t._time),{minute:e}),n=t._isTimeObj();return t.events.fire(p.TimepickerEvents.beforeChange,[t._getValue(i,n)])}})),this._minutesSlider.events.on(d.SliderEvents.change,(function(e){if(!(e<t._minutesSlider.config.min||e>t._minutesSlider.config.max)){t._time.minute=e;var i=t._isTimeObj();t.events.fire(p.TimepickerEvents.change,[t.getValue(i)]),t._inputsView.paint()}}))},e.prototype._draw=function(){return this._minutesSlider.config.label=h.default.minutes,this._hoursSlider.config.label=h.default.hours,(0,a.el)(".dhx_timepicker-inputs",r({},this._handlers),[(0,a.el)("input.dhx_timepicker-input.dhx_timepicker-input--hour",{_key:"hour",_ref:"hour",value:this.getValue(!0).hour.toString().length>1?this.getValue(!0).hour:"0"+this.getValue(!0).hour,"aria-label":"hours"}),(0,a.el)("span.dhx_timepicker-delimer",":"),(0,a.el)("input.dhx_timepicker-input.dhx_timepicker-input--minutes",{_key:"minute",value:this.getValue(!0).minute.toString().length>1?this.getValue(!0).minute:"0"+this.getValue(!0).minute,"aria-label":"minutes"}),12===this.config.timeFormat?(0,a.el)(".dhx_timepicker-ampm",this._time.AM?"AM":"PM"):null])},e.prototype._isTimeObj=function(){var t;return"timeobject"===(null===(t=this.config.valueFormat)||void 0===t?void 0:t.toLowerCase())},e}(c.View);e.Timepicker=_},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Slider=void 0;var s=i(1),a=i(0),l=i(2),c=i(14),u=i(9),d=i(13),h=i(69),f=i(3);function p(t,e,i){return t<e?e:t>i?i:t}var v=function(t){function e(e,i){var n=t.call(this,e,(0,s.extend)({mode:"horizontal",min:0,max:100,step:1,tooltip:!0},i))||this;n._disabled=!1,n.config.helpMessage=n.config.helpMessage||n.config.help,void 0!==n.config.thumbLabel&&(n.config.tooltip=n.config.thumbLabel),n.config.labelInline&&(n.config.labelPosition="left"),n.events=new l.EventSystem(n),n._axis="horizontal"===n.config.mode?"clientX":"clientY",n._initStartPosition(),n._keyManager=new c.KeyManager((function(){var t,e;return document.activeElement===(null===(e=null===(t=n.getRootView().refs)||void 0===t?void 0:t[n._isExtraActive?"extraRunner":"runner"])||void 0===e?void 0:e.el)})),n._initHotkeys();var o=(0,a.create)({render:function(){return n._draw()},hooks:{didMount:function(){return n._calcSliderPosition()},didRedraw:function(){return n._calcSliderPosition()}}});return n._initHandlers(),n.mount(e,o),n}return o(e,t),e.prototype.disable=function(){this._disabled=!0,this.paint()},e.prototype.enable=function(){this._disabled=!1,this.paint()},e.prototype.isDisabled=function(){return this._disabled},e.prototype.focus=function(t){this.getRootView().refs[t?"extraRunner":"runner"].el.focus()},e.prototype.blur=function(){this.getRootView().refs[this._isExtraActive?"extraRunner":"runner"].el.blur()},e.prototype.getValue=function(){var t;if(this.config.range){var e=this._getValue(this._currentPosition),i=this._getValue(this._extraCurrentPosition);t=e<i?[e,i]:[i,e]}else t=[this._getValue(this._currentPosition)];return t},e.prototype.setValue=function(t){var e=this._getValue(this._currentPosition);if(Array.isArray(t)&&t.length>1){var i=this._getValue(this._extraCurrentPosition);this.events.fire(h.SliderEvents.beforeChange,[t[0],e,!1])&&(this._setValue(t[0],!1),this.events.fire(h.SliderEvents.change,[t[0],e,!1])),this.events.fire(h.SliderEvents.beforeChange,[t[1],i,!0])&&(this._setValue(t[1],!0),this.events.fire(h.SliderEvents.change,[t[1],i,!0]))}else{if(t=parseFloat(t),isNaN(t))throw new Error("Wrong value type, for more info check documentation https://docs.dhtmlx.com/suite/slider__api__slider_setvalue_method.html");this.events.fire(h.SliderEvents.beforeChange,[t,e,!1])&&(this._setValue(t),this.events.fire(h.SliderEvents.change,[t,e,!1]))}this.paint()},e.prototype.destructor=function(){this._keyManager&&this._keyManager.destructor(),document.body.contains(this._tooltip)&&document.body.removeChild(this._tooltip),this._tooltip=null,this.unmount()},e.prototype._calcSliderPosition=function(){var t=this.getRootView();if(t){var e=t.refs.track.el.getBoundingClientRect();this._offsets={left:e.left+window.pageXOffset,top:e.top+window.pageYOffset},this._length="horizontal"===this.config.mode?e.width:e.height}},e.prototype._initHotkeys=function(){var t=this,e={arrowLeft:function(e){e.preventDefault(),t._move(-t.config.step,e.target.classList.contains("dhx_slider__thumb--extra"))},arrowRight:function(e){e.preventDefault(),t._move(t.config.step,e.target.classList.contains("dhx_slider__thumb--extra"))},arrowUp:function(e){e.preventDefault(),t._move(t.config.step,e.target.classList.contains("dhx_slider__thumb--extra"))},arrowDown:function(e){e.preventDefault(),t._move(-t.config.step,e.target.classList.contains("dhx_slider__thumb--extra"))}};for(var i in e)this._keyManager.addHotKey(i,e[i])},e.prototype._move=function(t,e){void 0===e&&(e=!1),this.config.inverse&&(t=-t);var i=this.config,n=i.max,o=i.min,r=e?this._getValue(this._extraCurrentPosition):this._getValue(this._currentPosition),s=r+t;(s>n||s<o)&&(s=r),this.events.fire(h.SliderEvents.beforeChange,[s,r,e])&&(this._setValue(r+t,e),this.events.fire(h.SliderEvents.change,[s,r,e]),this.paint())},e.prototype._initStartPosition=function(){var t=this.config,e=t.max,i=t.min,n=t.range,o=function(t,e,i){var n;return(n=void 0===t?[]:Array.isArray(t)?t:"string"==typeof t?t.split(",").map((function(t){return parseInt(t,10)})):[t])[0]=void 0===n[0]?e:p(n[0],e,i),n[1]=void 0===n[1]?i:p(n[1],e,i),n}(this.config.value,this.config.min,this.config.max),r=o[0],s=o[1];this._currentPosition=(r-i)/(e-i)*100,n&&(this._extraCurrentPosition=(e-s)/(e-i)*100),this._currentPosition=(r-i)/(e-i)*100,n&&(this._extraCurrentPosition=(s-i)/(e-i)*100),this._isInverse()&&(this._currentPosition=100-this._currentPosition,n&&(this._extraCurrentPosition=100-this._extraCurrentPosition))},e.prototype._getValue=function(t){this._isInverse()&&(t=100-t);var e=this.config,i=e.min,n=e.max,o=e.step;if(100===t)return n;if(0===t)return i;var r=t*(n-i)/100,s=r%o,a=s>=o/2?o:0;return+(Number(i)+Number(r)-s+a).toFixed(5)},e.prototype._setValue=function(t,e){void 0===e&&(e=!1);var i=this.config,n=i.max,o=i.min;if(t>n||t<o)return!1;var r=(t-o)/(n-o)*100,s=this._isInverse()?100-r:r;e?this._extraCurrentPosition=s:this._currentPosition=s},e.prototype._initHandlers=function(){var t=this,e=function(e){e.cancelable&&e.preventDefault();var i=((e.targetTouches?e.targetTouches[0][t._axis]:e[t._axis])-t._getBegining())/t._length*100;if(t._findNewDirection){if(Math.abs(t._currentPosition-i)<1)return;i>t._currentPosition?t._possibleRange=[t._currentPosition,100]:t._possibleRange=[0,t._currentPosition],t._findNewDirection=null}t._inSide(i)&&t._updatePosition(i,t._isExtraActive),t.paint()},i=function(n){t.events.fire(h.SliderEvents.mouseup,[n]),setTimeout((function(){t._isMouseMoving=!1,t.paint()}),4),n.targetTouches?(document.removeEventListener("touchend",i),document.removeEventListener("touchmove",e)):(document.removeEventListener("mouseup",i),document.removeEventListener("mousemove",e))},n=function(e){var i;if(!t._disabled&&3!==e.which)if(t.events.fire(h.SliderEvents.mousedown,[e]),t._isMouseMoving=!0,e.target.classList.contains("dhx_slider__thumb--extra")?(t._isExtraActive=!0,i=t._extraCurrentPosition):(t._isExtraActive=!1,i=t._currentPosition),t._findNewDirection=null,t.config.range){var n=t._currentPosition>t._extraCurrentPosition?[t._currentPosition,t._extraCurrentPosition]:[t._extraCurrentPosition,t._currentPosition],o=n[0],r=n[1];t._currentPosition===t._extraCurrentPosition?(t._findNewDirection=i,t._possibleRange=[0,100]):t._possibleRange=i<o?[0,o]:[r,100]}else t._possibleRange=[0,100]};this.config.helpMessage&&(this._helper=new d.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"}),this._helper.attachHTML(this.config.helpMessage)),this._handlers={showHelper:function(e){e.preventDefault(),e.stopPropagation(),t._helper.show(e.target,{theme:e.target})},onmousedown:function(t){n(t),document.addEventListener("mousemove",e),document.addEventListener("mouseup",i)},ontouchstart:function(o){t._setTooltip(o),t._mouseIn=!1,n(o),document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",i),t.paint()},ontouchend:function(e){t._setTooltip(e),t._mouseIn=!1,t.paint()},onlabelClick:function(){t.getRootView().refs.runner.el.focus()},onclick:function(e){if(!t._disabled&&!t._isMouseMoving&&3!==e.which){var i=(e[t._axis]-t._getBegining())/t._length*100,n=t.getRootView().refs;if(t.config.range)Math.abs(t._currentPosition-i)<Math.abs(t._extraCurrentPosition-i)?(t._updatePosition(i,!1),n.runner.el.focus()):(t._updatePosition(i,!0),n.extraRunner.el.focus());else t._updatePosition(i,!1),n.runner.el.focus();t.paint()}},onmouseover:function(e){t._setTooltip(e),t._mouseIn=!0,t.paint()},onmouseout:function(e){t._setTooltip(e),t._mouseIn=!1,t.paint()},onfocus:function(e){t._setTooltip(e),t._focusIn=!0,t.events.fire(h.SliderEvents.focus,[]),t.paint()},onblur:function(e){t._setTooltip(e),t._focusIn=!1,t.events.fire(h.SliderEvents.blur,[]),t.paint()},onkeydown:function(e){t.events.fire(h.SliderEvents.keydown,[e])}}},e.prototype._getBegining=function(){return"horizontal"===this.config.mode?this._offsets.left-window.pageXOffset:this._offsets.top-window.pageYOffset},e.prototype._inSide=function(t){var e=this._possibleRange;return t<e[0]?(this._updatePosition(e[0],this._isExtraActive),!1):!(t>e[1])||(this._updatePosition(e[1],this._isExtraActive),!1)},e.prototype._updatePosition=function(t,e){void 0===e&&(e=!1),t>100&&(t=100),t<0&&(t=0);var i=this.config,n=i.max,o=i.min,r=e?this._extraCurrentPosition:this._currentPosition,s=this._getValue(r),a=this._getValue(t);if(s!==a&&this.events.fire(h.SliderEvents.beforeChange,[a,s,e])){var l=(a-o)/(n-o)*100,c=this._isInverse()?100-l:l;e?this._extraCurrentPosition=c:this._currentPosition=c,this.events.fire(h.SliderEvents.change,[a,s,e])}},e.prototype._getRunnerStyle=function(t){var e;void 0===t&&(t=!1);var i="horizontal"===this.config.mode?"left":"top",n=t?this._extraCurrentPosition:this._currentPosition;return(e={})[i]=n+"%",e},e.prototype._isInverse=function(){return this.config.inverse&&"horizontal"===this.config.mode||!this.config.inverse&&"vertical"===this.config.mode},e.prototype._getRunnerCss=function(t){return void 0===t&&(t=!1),"dhx_slider__thumb"+(t?" dhx_slider__thumb--extra":"")+(this._isMouseMoving&&(t&&this._isExtraActive||!t&&!this._isExtraActive)?" dhx_slider__thumb--active":"")+(this._disabled?" dhx_slider__thumb--disabled":"")+(this._isNullable(t?this._extraCurrentPosition:this._currentPosition)&&!this.config.range?" dhx_slider__thumb--nullable":"")},e.prototype._draw=function(){var t=this.config,e=t.labelPosition,i=t.mode,n=t.hiddenLabel,o=t.tick,s=t.majorTick,l=t.css,c=t.helpMessage,u=(0,f.getLabelStyle)(r(r({},this.config),{required:!1}));return!this._tooltip||this._mouseIn&&this._focusIn&&this._isMouseMoving||document.body.contains(this._tooltip)&&document.body.removeChild(this._tooltip),(0,a.el)("div",{class:"dhx_slider dhx_slider--mode_"+i+("left"===e?" dhx_slider--label-inline":"")+(n?" dhx_slider--label_sr":"")+(o?" dhx_slider--ticks":"")+(s?" dhx_slider--major-ticks":"")+(l?" "+l:"")+(this._disabled?" dhx_slider--disabled":""),style:{paddingBottom:this.config.tick?"16px":null}},[u?(0,a.el)("label.dhx_label.dhx_slider__label",{style:u.style,class:c?"dhx_label--with-help":"",onclick:this._handlers.onlabelClick},c?[u.label&&(0,a.el)("span.dhx_label__holder",u.label),(0,a.el)("span.dhx_label-help.dxi.dxi-help-circle-outline",{tabindex:"0",role:"button",onclick:this._handlers.showHelper})]:u.label):null,this._drawSlider()])},e.prototype._drawSlider=function(){return(0,a.el)(".dhx_widget.dhx_slider__track-holder",{"data-dhx-widget-id":this._uid},[(0,a.el)(".dhx_slider__track",{_ref:"track",onmouseover:this._handlers.onmouseover,onmouseout:this._handlers.onmouseout,onclick:this._handlers.onclick},[this._getDetector(),(0,a.el)("div",{_ref:"runner",class:this._getRunnerCss(),ontouchstart:this._handlers.ontouchstart,ontouchend:this._handlers.ontouchend,onmousedown:this._handlers.onmousedown,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,style:this._getRunnerStyle(),tabindex:0}),this.config.tooltip&&(this._mouseIn||this._focusIn||this._isMouseMoving)?this._drawTooltip():null,this.config.tooltip&&this.config.range&&(this._mouseIn||this._focusIn||this._isMouseMoving)?this._drawTooltip(!0):null,this.config.range?(0,a.el)("div",{_ref:"extraRunner",class:this._getRunnerCss(!0),ontouchstart:this._handlers.ontouchstart,ontouchend:this._handlers.ontouchend,onmousedown:this._handlers.onmousedown,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,style:this._getRunnerStyle(!0),tabindex:0}):null]),this.config.tick?this._drawTicks():null])},e.prototype._getDetector=function(){var t,e,i;if(this._disabled)return(0,a.el)(".dhx_slider__range");var n="horizontal"===this.config.mode?"left":"top",o="horizontal"===this.config.mode?"width":"height";if(this.config.range){var r=this._currentPosition>this._extraCurrentPosition?[this._currentPosition,this._extraCurrentPosition]:[this._extraCurrentPosition,this._currentPosition],s=r[0],l=r[1];return(0,a.el)(".dhx_slider__range",{style:(t={},t[n]=l+"%",t[o]=s-l+"%",t)})}return this._isInverse()?(0,a.el)(".dhx_slider__range",{style:(e={},e[n]=this._currentPosition+"%",e[o]=100-this._currentPosition+"%",e)}):(0,a.el)(".dhx_slider__range",{style:(i={},i[n]=0,i[o]=this._currentPosition+"%",i)})},e.prototype._drawTooltip=function(t){if(void 0===t&&(t=!1),"none"!==this._activeTooltip&&this.getRootView()){var e="extraTooltip"===this._activeTooltip?this._extraCurrentPosition:this._currentPosition,i="horizontal"===this.config.mode?"left":"top",n="";(t&&this._isExtraActive||!t&&!this._isExtraActive)&&(n+=" dhx_slider__thumb-label--active"),this._tooltip||(this._tooltip=document.createElement("div"));var o="tooltip"===this._activeTooltip?this.getRootView().refs.runner.el.getBoundingClientRect():this.getRootView().refs.extraRunner.el.getBoundingClientRect();this._tooltip.className="dhx_slider__thumb-label"+n,this._tooltip.style.left=o.x+("left"===i?6:-30)+window.pageXOffset+"px",this._tooltip.style.top=o.y+("left"===i?-30:6)+window.pageYOffset+"px",this._tooltip.innerText=this._getValue(e).toString(),document.body.appendChild(this._tooltip)}},e.prototype._getTicks=function(){for(var t=this.config,e=t.max,i=t.min,n=t.step,o=t.tick,r=t.majorTick,s=e-i,a=n*o/s,l=[],c=0,u=0;c<1;){var d=+(Number(i)+c*s).toFixed(5),h=u%r==0;l.push({position:(this._isInverse()?100*(1-c):100*c)+"%",isMultiple:h,label:h&&"function"==typeof this.config.tickTemplate?this.config.tickTemplate(d):null}),c+=a,u++}return l.push({position:(this._isInverse()?0:100)+"%",isMultiple:!0,label:"function"==typeof this.config.tickTemplate?this.config.tickTemplate(e):null}),l},e.prototype._drawTicks=function(){var t="horizontal"===this.config.mode?"left":"top";return(0,a.el)(".dhx_slider__ticks-holder",this._getTicks().map((function(e){var i;return(0,a.el)("div",{class:"dhx_slider__tick"+(e.isMultiple?" dhx_slider__tick--major":""),style:(i={},i[t]=e.position,i)},void 0!==e.label?[(0,a.el)(".dhx_slider__tick-label",e.label)]:null)})))},e.prototype._isNullable=function(t){return this._isInverse()?100===t:0===t},e.prototype._setTooltip=function(t){t.target.classList.contains("dhx_slider__thumb--extra")?this._activeTooltip="extraTooltip":t.target.classList.contains("dhx_slider__thumb")?this._activeTooltip="tooltip":this._activeTooltip="none"},e}(u.View);e.Slider=v},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Popup=void 0;var s=i(1),a=i(0),l=i(2),c=i(3),u=i(9),d=i(68),h=function(t){function e(e){void 0===e&&(e={});var i=t.call(this,null,(0,s.extend)({},e))||this,n=i._popup=document.createElement("div");return n.className="dhx_widget dhx_popup"+(i.config.css?" "+i.config.css:""),n.style.position="absolute",n.setAttribute("role","dialog"),n.setAttribute("aria-modal","true"),n.setAttribute("aria-live","polite"),i.config.theme&&i._setTheme(i.config.theme),i.mount(n,(0,a.create)({render:function(){return i.toVDOM()}})),i._clickEvent=function(t){return i.events.fire(d.PopupEvents.click,[t])},i.events=e.events||new l.EventSystem(i),i._isActive=!1,i}return o(e,t),e.prototype.show=function(t,e,i){var n=this;void 0===e&&(e={}),this.events.fire(d.PopupEvents.beforeShow,[t])&&(t=(0,c.toNode)(t),this._isActive?this._setPopupSize(t,e):(i&&this.attach(i),e.theme&&this._setTheme(e.theme),this._popup.style.left="0",this._popup.style.top="0",(0,a.awaitRedraw)().then((function(){n._setPopupSize(t,e),n._popup.style.position="fixed",document.body.appendChild(n._popup),n._isActive=!0})).then((function(){n._popup.style.position="absolute",n.events.fire(d.PopupEvents.afterShow,[t]),n._outerClickDestructor=n._detectOuterClick(t)}))))},e.prototype.hide=function(){this._hide(!1,null)},e.prototype.isVisible=function(){return this._isActive},e.prototype.attach=function(t,e){return this._html=null,"object"==typeof t?this._ui=t:"string"==typeof t?this._ui=new window.dhx[t](null,e):"function"==typeof t&&(t.prototype instanceof u.View?this._ui=new t(null,e):this._ui={getRootView:function(){return t(e)}}),this.paint(),this._ui},e.prototype.attachHTML=function(t){this._html=t,this.paint()},e.prototype.getWidget=function(){return this._ui},e.prototype.getContainer=function(){return this.getRootView().refs.content.el},e.prototype.toVDOM=function(){var t;return this._html?t=(0,a.el)(".dhx_popup__inner-html-content",{".innerHTML":this._html}):(t=this._ui?this._ui.getRootView():null)&&t.render&&(t=(0,a.inject)(t)),(0,a.el)("div",{class:"dhx_popup-content",tabindex:0,onclick:this._clickEvent,_key:this._uid,_ref:"content"},[t])},e.prototype.destructor=function(){this.hide(),this._outerClickDestructor&&this._outerClickDestructor(),this._popup=null},e.prototype._setTheme=function(t){var e;if("string"==typeof t)this._popup.setAttribute("data-dhx-theme",t);else{var i=null===(e=null==t?void 0:t.closest("[data-dhx-theme]"))||void 0===e?void 0:e.getAttribute("data-dhx-theme");i&&this._popup.setAttribute("data-dhx-theme",i)}},e.prototype._setPopupSize=function(t,e,i){var n=this;void 0===i&&(i=3);var o=this._popup.getBoundingClientRect(),s=o.width,a=o.height;if(this._timeout&&(clearTimeout(this._timeout),this._timeout=null),!i||0!==s&&0!==a){var l=(0,c.fitPosition)(t,r(r({centering:!0,mode:"bottom"},e),{width:s,height:a})),u=l.left,d=l.top;if(this._popup.style.left=u,this._popup.style.top=d,e.indent&&0!==e.indent)switch(e.mode){case"top":this._popup.style.top=parseInt(this._popup.style.top.slice(0,-2),null)-parseInt(e.indent.toString(),null)+"px";break;case"bottom":default:this._popup.style.top=parseInt(this._popup.style.top.slice(0,-2),null)+parseInt(e.indent.toString(),null)+"px";break;case"left":this._popup.style.left=parseInt(this._popup.style.left.slice(0,-2),null)-parseInt(e.indent.toString(),null)+"px";break;case"right":this._popup.style.left=parseInt(this._popup.style.left.slice(0,-2),null)+parseInt(e.indent.toString(),null)+"px"}}else this._timeout=setTimeout((function(){n._isActive&&(n._setPopupSize(t,e,i-1),n._timeout=null)}))},e.prototype._detectOuterClick=function(t){var e=this,i=!1,n=new WeakMap,o=function(r){var s=r.target,a=document.querySelectorAll(".dhx_popup");for(i?a.forEach((function(t){return n.has(t)||n.set(t,e._popup)})):(i=Boolean(a.length))&&a.forEach((function(t){return n.set(t,!0)}));s;){if(s===t||s===e._popup||n.get(s)===e._popup)return;s=s.parentNode}e._hide(!0,r)&&document.removeEventListener("mousedown",o)};return document.addEventListener("mousedown",o),function(){return document.removeEventListener("mousedown",o)}},e.prototype._hide=function(t,e){if(this._isActive)return!!this.events.fire(d.PopupEvents.beforeHide,[t,e])&&(document.body.removeChild(this._popup),this._isActive=!1,this._outerClickDestructor&&(this._outerClickDestructor(),this._outerClickDestructor=null),this.events.fire(d.PopupEvents.afterHide,[e]),!0)},e}(u.View);e.Popup=h},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isTimeCheck=void 0,e.isTimeCheck=function(t){return/(^12:[0-5][0-9]?AM$)/i.test(t)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.linkButtonClasses=void 0,e.linkButtonClasses=".dhx_button.dhx_button--view_link.dhx_button--icon.dhx_button--size_medium.dhx_button--color_secondary"},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ProToolbar=void 0;var s=i(67),a=i(19),l=i(0),c=i(3),u=i(12),d=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.scrollView=new a.ScrollView((function(){return n.getRootView()})),n}return o(e,t),e.prototype._draw=function(t){var e=this,i=this.data.getLength()?this.data.reduce((function(t,e){switch(e.type){case"title":return t||20;case"button":return"small"===e.size&&(!t||t<=28)?28:t||32;default:return 32}}),0)+24:null,n=[(0,l.el)("ul.dhx_navbar.dhx_navbar--horizontal",r(r({"data-dhx-widget-id":this._uid,tabindex:0},function(t){return{role:"toolbar","aria-label":t||""}}(t)),{onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,oninput:this._handlers.input,onmouseover:this._handlers.tooltip,onkeydown:this._handlers.onkeydown,onmousemove:this._handlers.onmousemove,onmouseleave:this._handlers.onmouseleave,_hooks:{didInsert:function(t){t.el.addEventListener("keyup",(function(t){if(9===t.which){var i=(0,c.locateNode)(document.activeElement);if(i){var n=i.getAttribute("data-dhx-id"),o=e.data.getItem(n);(null==o?void 0:o.tooltip)&&(0,u.tooltip)(o.tooltip,{node:i,position:u.Position.bottom,force:!0})}}}),!0)}}}),this.data.map((function(t){return e._factory(t)}),this.data.getRoot(),!1))];return(0,l.el)("nav.dhx_widget.dhx_toolbar",{style:{height:i},class:this.config.css?this.config.css:""},this.scrollView&&this.scrollView.config.enable?[].concat(this.scrollView.render(n)):n)},e}(s.Toolbar);e.ProToolbar=d},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.layoutConfigWithoutTopbar=e.layoutConfig=void 0,e.layoutConfig={css:"vault-layout",rows:[{id:"topbar",css:"vault-topbar"},{id:"vault",css:"vault-file-grid"}]},e.layoutConfigWithoutTopbar={css:"vault-layout",rows:[{id:"vault",css:"vault-file-grid"}]}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isImage=e.getFileClassName=e.getFileType=e.FileType=e.calculateCover=e.truncateWord=e.getBasis=void 0;var n=i(48),o=["byte","kilobyte","megabyte","gigabyte"];e.getBasis=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=0),t<1024?t+" "+n.default[o[e]]:this.getBasis(Math.round(t/1024),e+1)};var r;function s(t){return{extension:t.name.split(".").pop()||"none",mime:t.file?t.file.type:""}}function a(t,e){switch(t){case"jpg":case"jpeg":case"gif":case"png":case"bmp":case"tiff":case"pcx":case"svg":case"ico":return r.image;case"avi":case"mpg":case"mpeg":case"rm":case"move":case"mov":case"mkv":case"flv":case"f4v":case"mp4":case"3gp":case"wmv":case"webm":case"vob":return r.video;case"rar":case"zip":case"tar":case"tgz":case"arj":case"gzip":case"bzip2":case"7z":case"ace":case"apk":case"deb":case"zipx":case"cab":case"tar-gz":case"rpm":case"xar":return r.archive;case"xlr":case"xls":case"xlsm":case"xlsx":case"ods":case"csv":case"tsv":return r.table;case"doc":case"docx":case"docm":case"dot":case"dotx":case"odt":case"wpd":case"wps":case"pages":return r.document;case"wav":case"aiff":case"au":case"mp3":case"aac":case"wma":case"ogg":case"flac":case"ape":case"wv":case"m4a":case"mid":case"midi":return r.audio;case"pot":case"potm":case"potx":case"pps":case"ppsm":case"ppsx":case"ppt":case"pptx":case"pptm":case"odp":return r.presentation;case"html":case"htm":case"eml":return r.web;case"exe":return r.application;case"dmg":return r.apple;case"pdf":case"ps":case"eps":return r.pdf;case"psd":return r.psd;case"txt":case"djvu":case"nfo":case"xml":return r.text;default:switch(e.split("/")[0]){case"image":return r.image;case"audio":return r.audio;case"video":return r.video;default:return r.other}}}e.truncateWord=function(t,e){var i,n;if(void 0===e&&(e=13),t.length<=e)return t;var o=t.lastIndexOf(".");if(-1===o)n=t.substr(t.length-4),i=t.substr(0,e-7);else{var r=o-3;n=t.substr(r),i=t.substr(0,e-(t.length-r))}return i+"..."+n},e.calculateCover=function(t){var e,i,n,o,r=t.width,s=t.height,a=r/s;return a>1?(e=s,n=(r-(i=s))/2,o=0):a<1?(i=r,n=0,o=(s-(e=r))/2):(e=r,i=r,n=0,o=0),{sx:n,sy:o,sWidth:i,sHeight:e,dx:0,dy:0}},function(t){t.image="image",t.video="video",t.archive="archive",t.table="table",t.document="document",t.presentation="presentation",t.application="application",t.web="web",t.apple="apple",t.pdf="pdf",t.psd="psd",t.audio="audio",t.other="other",t.text="text"}(r||(e.FileType=r={})),e.getFileType=a,e.getFileClassName=function(t){var e=s(t),i=e.mime,n=e.extension;return a(n,i)+" extension-"+n},e.isImage=function(t){var e=s(t),i=e.mime;return a(e.extension,i)===r.image}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.ProgressBar=void 0;var r=i(0),s=i(9),a=i(48),l=i(33),c=function(t){function e(e,i){var n=t.call(this,null,i)||this;n.events=e,n._progress=0;return n.mount(null,(0,r.create)({render:function(){return n._draw()}})),n._abortUpload=function(){n.events.fire(l.ProgressBarEvents.cancel)},n}return o(e,t),e.prototype.setState=function(t,e){this._progress=t,this.config.template?this._progressText=this.config.template(t,e):this._progressText=this._progress.toFixed(1)+"%",this.paint()},e.prototype._draw=function(){return(0,r.el)(".progress-bar",{_key:this._uid},[(0,r.el)(".progress-indicator",{style:{width:this._progress+"%"}}),(0,r.el)(".progress-text",{".innerHTML":this._progressText}),(0,r.el)("button",{class:"dhx_btn dhx_btn--flat dhx_btn_small action-abort-all",onclick:this._abortUpload},a.default.cancel)])},e}(s.View);e.ProgressBar=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReadStackPreview=void 0;var n=function(){function t(t){this._readerStack=[],this._isActive=!1,this._data=t}return t.prototype.add=function(t,e){void 0===e&&(e=!1),this._readerStack.push(t),e||this.read()},t.prototype.read=function(){var t=this;if(this._readerStack.length&&!this._isActive){var e=this._readerStack.shift();this._isActive=!0;var i=new FileReader;i.readAsDataURL(e.file),i.onload=function(i){var n=new Image;n.src=i.target.result,n.onload=function(){t._data.exists(e.id)&&t._data.update(e.id,{image:n}),t._isActive=!1,t.read()}},i.onerror=function(){t._isActive=!1,t.read()}}},t.prototype.stop=function(){this._readerStack=[]},t}();e.ReadStackPreview=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEditor=void 0;var n=i(161);e.getEditor=function(t,e){return new n.InputEditor(t,e)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InputEditor=void 0;var n=i(0),o=i(49),r=function(){function t(t,e){var i=this;this._list=e,this._config=e.config,this._item=t,this._list.events.on(o.ListEvents.focusChange,(function(t,e){i._mode&&e!==i._item.id&&i.endEdit()})),this._initHandlers()}return t.prototype.endEdit=function(){if(this._input){var t=this._input.value;this._list.events.fire(o.ListEvents.beforeEditEnd,[t,this._item.id])?(this._input.removeEventListener("blur",this._handlers.onBlur),this._input.removeEventListener("change",this._handlers.onChange),this._input.removeEventListener("keydown",this._handlers.onKeyDown),this._handlers={},this._mode=!1,this._list.events.fire(o.ListEvents.afterEditEnd,[t,this._item.id])):this._input.focus()}},t.prototype.toHTML=function(){this._mode=!0;var t=this._config.itemHeight;return(0,n.el)(".dhx_input__wrapper",{role:"presentation"},[(0,n.el)("div.dhx_input__container",{role:"presentation"},[(0,n.el)("input.dhx_input",{class:this._item.css?" "+this._item.css:"",style:{height:t,width:"100%",padding:"8px 12px"},_hooks:{didInsert:this._handlers.didInsert},_key:this._item.id,"data-dhx-id":this._item.id})])])},t.prototype._initHandlers=function(){var t=this;this._handlers={onBlur:function(){t.endEdit()},onChange:function(){t.endEdit()},onKeyDown:function(e){"Enter"===e.key&&t._item.value===t._input.value&&t.endEdit(),"Escape"===e.key&&(t._input.value=t._item.value,t.endEdit())},didInsert:function(e){var i=e.el;t._input=i,i.focus(),i.value=t._item.value,i.setSelectionRange(0,i.value.length),i.addEventListener("change",t._handlers.onChange),i.addEventListener("blur",t._handlers.onBlur),i.addEventListener("keydown",t._handlers.onKeyDown)}}},t}();e.InputEditor=r},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.ProList=void 0;var a=i(0),l=i(19),c=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.scrollView=new l.ScrollView((function(){return n.getRootView()})),n.paint(),n}return o(e,t),e.prototype.destructor=function(){t.prototype.destructor.call(this),this.scrollView=null},e.prototype.scrollTo=function(t){var e,i,n=this.getRootView();if(n&&n.node&&n.node.el&&void 0!==t){var o=(null===(e=this.scrollView)||void 0===e?void 0:e.config.enable)?null===(i=this.getRootNode())||void 0===i?void 0:i.querySelector(".scroll-view"):this.getRootNode();this._scrollTo(t,o)}},e.prototype._renderList=function(){var t=this,e=this._getRange(),i=this.data.getRawData(e[0],e[1]).map((function(e,i){return t._renderItem(e,i)}));this.config.virtual&&(i=s(s([(0,a.el)(".div",{style:{height:e[2]+"px"}})],i,!0),[(0,a.el)(".div",{style:{height:e[3]+"px"}})],!1));var n=this.scrollView&&this.scrollView.config.enable,o=(this.config.css?this.config.css:"")+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":"")+(n?" dhx_list--scroll-view":"");return(0,a.el)("ul.dhx_widget.dhx_list",r(r({style:{"max-height":this.config.height,position:"relative"},id:this._uid,class:o,"data-dhx-widget-id":this._uid},this._handlers),this._getListAriaAttrs(this.config,this.data.getLength())),n?[].concat(this.scrollView.render(i)):i)},e}(i(73).List);e.ProList=c},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Colorpicker=void 0;var s=i(0),a=i(2),l=i(3),c=i(9),u=i(1),d=i(51),h=i(75),f=i(52),p=i(76),v=i(66),g=i(12),_=i(164),m=i(165),y=i(14),b=i(21),w=i(1),x=function(t){function e(e,i){var n=t.call(this,e,i)||this;n._setPaletteGrip=function(t){var e=n.getRootView().refs.picker_palette.el.getBoundingClientRect(),i=t.targetTouches?t.targetTouches[0].clientX:t.clientX,o=(t.targetTouches?t.targetTouches[0].clientY:t.clientY)-e.top,r=i-e.left,s=(0,m.calculatePaletteGrip)(e,o,r),a=s.s,l=s.v;n._pickerState.hsv.s=a,n._pickerState.hsv.v=l,n.paint()},n._setRangeGrip=function(t){var e=n.getRootView().refs[n._activeRange].el.getBoundingClientRect(),i=(t.targetTouches?t.targetTouches[0].clientX:t.clientX)-e.left,o=(0,m.calculateRangeGrip)(e,i),r=o.h,s=o.alpha,a=o.rangeLeft;switch(n._activeRange){case"hue_range":n._pickerState.hsv.h=r,n._pickerState.hueRangeLeft=a;break;case"alpha_range":n._pickerState.alpha=s,n._pickerState.alphaRangeLeft=a}n.paint()},n._onColorClick=function(t,e){var i=e.data.color.toUpperCase();n.events.fire(p.ColorpickerEvents.beforeChange,[i])&&(n._selected=i,n._focusColor(i),n.events.fire(p.ColorpickerEvents.change,[n._selected]),n.events.fire(p.ColorpickerEvents.colorChange,[n._selected]))},n._container=e,n.config=(0,u.extend)({css:"",grayShades:!0,pickerOnly:!1,paletteOnly:!1,customColors:[],palette:h.palette,width:"238px",mode:"palette",transparency:!0},n.config),n.config.palette||(n.config.palette=h.palette),n.config.customColors&&(n.config.customColors=n.config.customColors.map((function(t){return t.toUpperCase()}))),n._pickerState={hsv:{h:0,s:1,v:1},customHex:"",alpha:1},n.events=new a.EventSystem(n),n._setHandlers(),n._keyManager=new y.KeyManager((function(t,e){return e===n._uid})),n._initHotKey();var o=(0,s.create)({render:function(){return n._getContent()}});return n.mount(n._container,o),n}return o(e,t),e.prototype.destructor=function(){this._keyManager&&this._keyManager.destructor(),this.events&&this.events.clear(),this.config=this.events=this._selected=this._handlers=this._pickerState=this._inputTimeout=this._keyManager=null,this.unmount()},e.prototype.clear=function(){this.events.fire(p.ColorpickerEvents.beforeChange,[""])&&(this._selected="",this.events.fire(p.ColorpickerEvents.change,[this._selected,"clear"]),this.paint())},e.prototype.setValue=function(t){t=this.config.transparency||9!==t.length?t:t.slice(0,-2),this.events.fire(p.ColorpickerEvents.beforeChange,[t])&&(this._focusColor(t)||b.focusManager.getFocusId()===this._uid)&&(this.events.fire(p.ColorpickerEvents.change,[this._selected]),this.events.fire(p.ColorpickerEvents.colorChange,[this._selected]))},e.prototype.setFocus=function(t){this._focusColor(t)&&this.paint()},e.prototype.getValue=function(){return this._selected||""},e.prototype.getCustomColors=function(){return this.config.customColors},e.prototype.setCustomColors=function(t){this.config.customColors=t.map((function(t){return t.toUpperCase()})),this.paint()},e.prototype.setCurrentMode=function(t){"palette"!==t&&"picker"!==t||(this.config.mode=t,this.events.fire(p.ColorpickerEvents.modeChange,[t]),this.events.fire(p.ColorpickerEvents.viewChange,[t]),this.paint())},e.prototype.getCurrentMode=function(){return this.config.mode},e.prototype.getView=function(){return this.getCurrentMode()},e.prototype.setView=function(t){this.setCurrentMode(t)},e.prototype.focusValue=function(t){this.setFocus(t)},e.prototype._setHandlers=function(){var t=this;this._handlers={click:{".dhx_palette__cell":this._onColorClick},mousedown:function(e){t._pickerMove(e)},touchstart:function(e){t._pickerMove(e)},buttonsClick:function(e){if(t.setCurrentMode("palette"),"cancel"!==e){var i=t._pickerState.alpha,n=1!==i?(0,d.alphaToHex)(i):"",o=t._pickerState.background+n;"apply"!==e||t.config.customColors.includes(o)||(t.setValue(o),t.events.fire(p.ColorpickerEvents.apply,[]),t.events.fire(p.ColorpickerEvents.selectClick,[]))}else t.events.fire(p.ColorpickerEvents.cancelClick,[])},customColorClick:function(){t.setView("picker")},oninput:function(e){var i=(0,l.locate)(e);switch(t._inputTimeout&&clearTimeout(t._inputTimeout),i){case"hex_input":t._inputTimeout=setTimeout((function(){var i=e.target.value;-1===i.indexOf("#")&&(i="#".concat(i)),t._pickerState.customHex=i,(0,d.isHex)(i)&&(t._pickerState.hsv=(0,d.HexToHSV)(i),t._pickerState.alpha=(0,d.getAlpha)(i),t.paint())}),100);break;case"alpha_input":t._pickerState.customHex="";var n=parseInt(e.target.value);n>100&&(n=Math.trunc(n/10)),n>=0&&(t._pickerState.alpha=n/100,t.paint())}},contextmenu:{".dhx_palette__cell":function(e,i){e.preventDefault();var n=t.config.customColors.indexOf(i.data.color);-1!==n&&t._removeCustomColor(n),t.paint()}},mouseover:{".dhx_palette__cell":function(t){t.target&&(0,v.tooltip)(f.default.rightClickToDelete,{node:t.target,position:g.Position.bottom})},".dhx_colorpicker-custom-colors__picker":function(t){t.target&&(0,v.tooltip)(f.default.addNewColor,{node:t.target,position:g.Position.bottom})}}},this.events.on(p.ColorpickerEvents.change,(function(){t.paint()})),this.events.on(p.ColorpickerEvents.colorChange,(function(){t.paint()}))},e.prototype._pickerMove=function(t){var e=this,i=(0,l.locate)(t);this._pickerState.customHex="","picker_palette"===i?this._setPaletteGrip(t):(this._activeRange=i,this._setRangeGrip(t));var n="picker_palette"===i?this._setPaletteGrip:this._setRangeGrip,o=t.targetTouches?"touchmove":"mousemove",r=t.targetTouches?"touchend":"mouseup";document.addEventListener(o,n),document.addEventListener(r,(function(){document.removeEventListener(o,n),e._activeRange=null})),this.paint()},e.prototype._focusColor=function(t){if(void 0===t||t.length<4)return!1;var e=t.toUpperCase();if(!(0,d.isHex)(e))return!1;var i=this.config.palette.reduce((function(t,i){return t||(i.forEach((function(i){i.toUpperCase()!==e||(t=!0)})),t)}),!1),n=h.grayShades.includes(e);if(!i&&!n){var o=this.getCustomColors();o.includes(e.toUpperCase())||o.push(e.toUpperCase())}return this._selected=e||null,this._pickerState.hsv=(0,d.HexToHSV)(e),this._pickerState.alpha=(0,d.getAlpha)(e),!0},e.prototype._removeCustomColor=function(t){this.config.customColors.splice(t,1)},e.prototype._getCells=function(t,e){var i=this;return void 0===e&&(e=""),t.reduce((function(t,n){var o=(i._selected||"").toUpperCase()===n.toUpperCase()?"dhx_palette__cell--selected":"";return t.push((0,s.el)(".dhx_palette__cell",{class:"".concat(o," ").concat(e),_data:{color:n},style:"background:".concat(n),tabindex:0})),t}),[])},e.prototype._getGrayShades=function(){return(0,s.el)(".dhx_palette__row",this._getCells(h.grayShades))},e.prototype._getPalette=function(){var t=this;return this.config.palette.reduce((function(e,i){return e.push((0,s.el)(".dhx_palette__col",t._getCells(i))),e}),[])},e.prototype._getContent=function(){var t;return t=this.config.pickerOnly?[(0,_.getPicker)(this,this._pickerState,this._handlers)]:"palette"===this.config.mode?r(r([this.config.grayShades&&this._getGrayShades()],this._getPalette(),!0),[!this.config.paletteOnly&&(0,s.el)(".dhx_colorpicker-custom-colors",{onmouseover:this._handlers.mouseover},[(0,s.el)(".dhx_colorpicker-custom-colors__header",[f.default.customColors]),(0,s.el)(".dhx_palette--custom.dhx_palette__row",r(r([],this._getCells(this.config.customColors,"dhx_custom-color__cell"),!0),[(0,s.el)(".dhx_colorpicker-custom-colors__picker",{class:"dxi dxi-plus",onclick:this._handlers.customColorClick,onmouseover:this._handlers.mouseover,tabindex:0})],!1))])],!1):[(0,_.getPicker)(this,this._pickerState,this._handlers)],(0,s.el)(".dhx_widget.dhx_colorpicker",{class:this.config.css,style:{width:this.config.width},"data-dhx-widget-id":this._uid},[(0,s.el)(".dhx_palette",{onclick:this._handlers.click,oncontextmenu:this._handlers.contextmenu},t)])},e.prototype._initHotKey=function(){var t=this,e={enter:function(e){if((0,l.locateNodeByClassName)(e,"dhx_palette__cell")){var i=(0,w.rgbToHex)(e.target.style.background);if(!t.events.fire(p.ColorpickerEvents.beforeChange,[i]))return;t._selected=i,t.events.fire(p.ColorpickerEvents.change,[t._selected]),t.events.fire(p.ColorpickerEvents.colorChange,[t._selected])}(0,l.locateNodeByClassName)(e,"dhx_colorpicker-custom-colors__picker")&&t.setCurrentMode("picker")}};for(var i in e)this._keyManager.addHotKey(i,e[i])},e}(c.View);e.Colorpicker=x},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.calculatePaletteGrip=e.getPicker=void 0;var n=i(51),o=i(0),r=i(52);e.getPicker=function(t,e,i){var s=(0,n.HSVtoRGB)(e.hsv);e.background=(0,n.RGBToHex)(s);var a=e.background,l=e.hsv,c=e.customHex,u=e.alpha,d=(0,n.RGBToHex)((0,n.HSVtoRGB)({h:l.h,s:1,v:1})),h=t.getRootView(),f=h.refs?h.refs.picker_palette.el.getBoundingClientRect():{height:200,width:218,x:0,y:0},p=f.height-2,v=f.width-2,g=p-l.v*p-4,_=l.s*v-4,m=f.width-6,y=m-(360-l.h)/360*m,b=u*m,w=1!==u?(0,n.alphaToHex)(u):"",x=(0,n.isHex)(c)?c.replace("#",""):a.replace("#","")+w,E=Math.round(100*u),C=t.config.transparency;return(0,o.el)(".dhx_colorpicker-picker",{},[(0,o.el)(".dhx_colorpicker-picker__palette",{style:{height:132,background:d},onmousedown:i.mousedown,ontouchstart:i.touchstart,"data-dhx-id":"picker_palette",_ref:"picker_palette"},[(0,o.el)(".dhx_palette_grip",{style:{top:g,left:_},tabindex:0})]),(0,o.el)(".dhx_colorpicker-range.dhx_colorpicker-range--hue",{onmousedown:i.mousedown,ontouchstart:i.touchstart,"data-dhx-id":"hue_range",_key:"hue_range",_ref:"hue_range"},[(0,o.el)(".dhx_colorpicker-range__grip.dhx_colorpicker-range__grip--hue",{style:{left:y},tabindex:0})]),C?(0,o.el)(".dhx_colorpicker-range.dhx_colorpicker-range--alpha",{onmousedown:i.mousedown,ontouchstart:i.touchstart,"data-dhx-id":"alpha_range",_key:"alpha_range",_ref:"alpha_range"},[(0,o.el)(".dhx_colorpicker-range__substrate"),(0,o.el)(".dhx_colorpicker-range__background",{style:{backgroundImage:"linear-gradient(to right, transparent, ".concat(a,")")}}),(0,o.el)(".dhx_colorpicker-range__grip.dhx_colorpicker-range__grip--alpha",{style:{left:1!==u?b:null},tabindex:0})]):null,(0,o.el)(".dhx_colorpicker-value",[(0,o.el)(".dhx_colorpicker-value__color",{style:{background:a+(0,n.alphaToHex)(u)}}),(0,o.el)(".dhx_colorpicker-value__input-wrapper.dhx_colorpicker-value__input-wrapper--hex",[(0,o.el)("input",{class:"dhx_colorpicker-value__input dhx_colorpicker-value__input--hex",style:{width:C?112:100},value:x,oninput:i.oninput,maxlength:C?"9":"7",_key:"hex_input","data-dhx-id":"hex_input","aria-label":"type color in HEX format"})]),C?(0,o.el)(".dhx_colorpicker-value__input-wrapper.dhx_colorpicker-value__input-wrapper--alpha",[(0,o.el)("input",{class:"dhx_colorpicker-value__input dhx_colorpicker-value__input--alpha",value:E,oninput:i.oninput,maxlength:"3",_key:"alpha_input","data-dhx-id":"alpha_input","aria-label":"type opacity in percent"})]):null]),(0,o.el)(".dhx_colorpicker-picker__buttons",[!t.config.pickerOnly&&(0,o.el)("button",{class:"dhx_button dhx_button--size_medium dhx_button--view_link dhx_button--color_primary",onclick:[i.buttonsClick,"cancel"]},r.default.cancel),(0,o.el)("button",{class:"dhx_button dhx_button--size_medium dhx_button--view_flat dhx_button--color_primary",onclick:[i.buttonsClick,"apply"]},r.default.select)])])},e.calculatePaletteGrip=function(t,e,i){var n=t.refs.picker_palette.el.getBoundingClientRect(),o=n.height,r=n.width;e=e<0?0:e>o?o:e,i=i<0?0:i>r?r:i;var s=Math.round(i/(r/100)),a=100-Math.round(e/(o/100));this._pickerState.hsv.s=s/100,this._pickerState.hsv.v=a/100}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.calculateRangeGrip=e.calculatePaletteGrip=void 0,e.calculatePaletteGrip=function(t,e,i){var n=t.height,o=t.width;return e=e<0?0:e>n?n:e,i=i<0?0:i>o?o:i,{s:Math.round(i/(o/100))/100,v:(100-Math.round(e/(n/100)))/100}},e.calculateRangeGrip=function(t,e){var i=t.width;return e=e<0?0:e>i?i:e,{h:Math.round(e/i*360),alpha:Number((e/i).toFixed(2)),rangeLeft:e}}},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(77),e),o(i(186),e),o(i(25),e)},function(t,e,i){"use strict";var n=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.ComposeLayer=void 0;var o=i(0),r=i(168),s=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 i={left:20,right:20,top:10,bottom:10},s=this._data.filter((function(t){return!t.dataReady||t.dataReady().length}));this._data.forEach((function(t){return!t.scaleReady||t.scaleReady(i)}));var a=0,l=0;s.forEach((function(t){t.seriesShift&&(a+=t.seriesShift(),l++)}));var c=a/l;a=l?(c-a)/2:0,s.forEach((function(t){t.seriesShift&&(t.seriesShift(a),a+=c)})),this._sizes=i;var u=t-i.left-i.right,d=e-i.top-i.bottom,h=(0,o.sv)("g",{transform:"translate(".concat(i.left,", ").concat(i.top,")")},n([(0,o.sv)("rect.dhx_chart-graph_area",{width:u>0?u:0,height:d>0?d:0,fill:"transparent"})],s.map((function(n){return n.paint(t-(i.left+i.right),e-(i.top+i.bottom))})),!0)),f=(0,o.sv)("defs",[(0,r.dropShadow)(),(0,r.shadow)()]);return(0,o.sv)("svg",{width:t,height:e,role:"graphics-document"},[f,h])},t}();e.ComposeLayer=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dropShadow=e.shadow=void 0;var n=i(0);e.shadow=function(){return(0,n.sv)("filter",{id:"shadow"},[(0,n.sv)("feDiffuseLighting",{in:"SourceGraphic",result:"light","lighting-color":"white"},[(0,n.sv)("feDistantLight",{azimuth:90,elevation:25})]),(0,n.sv)("feComposite",{in:"SourceGraphic",in2:"light",operator:"arithmetic",k1:"1",k2:"0",k3:"0",k4:"0"})])};e.dropShadow=function(){return(0,n.sv)("filter",{id:"dropshadow",x:"-100%",y:"-100%",width:"300%",height:"300%"},[(0,n.sv)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:2}),(0,n.sv)("feOffset",{dx:0,dy:0,result:"offsetblur"}),(0,n.sv)("feOffset",{dx:0,dy:0,result:"offsetblur"}),(0,n.sv)("feFlood",{"flood-color":"rgba(85,85,85,0.5)"}),(0,n.sv)("feComposite",{in2:"offsetblur",operator:"in"}),(0,n.sv)("feMerge",[(0,n.sv)("feMergeNode"),(0,n.sv)("feMergeNode",{in:"SourceGraphic"})])])}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.legendTicks=e.legendShape=void 0;var n=i(1),o=i(0),r=16,s=500,a={circle:function(t,e,i){return(0,o.sv)("circle",{id:(0,n.uid)(),r:5,fill:e,class:"figure ".concat("none"!==t?"with-stroke":""),"stroke-width":2,"fill-opacity":i,stroke:t,transform:"translate(0, -1)"})},rect:function(t,e,i){return(0,o.sv)("rect",{id:(0,n.uid)(),fill:e,"fill-opacity":i,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,i,a){var l=function(t,e,i){return(0,o.sv)("stop",{offset:"".concat(e,"%"),"stop-color":t,class:t?"":i})},c="lg"+(0,n.uid)(),u=(0,o.sv)("linearGradient",{id:c},[l(t[1],0,"heat-negative"),l(e,a,"heat-neutral"),l(t[0],100,"heat-positive")]),d=(0,o.sv)("rect",{id:(0,n.uid)(),y:r,fill:"url(#".concat(c,")"),"fill-opacity":i,width:s,"stroke-width":2,height:r,class:"figure figure-line",stroke:t});return(0,o.sv)("g",{id:(0,n.uid)(),width:s,height:r},[u,d])}};e.legendShape=function(t,e){var i;return"string"==typeof t&&(i=a[t]),i("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 i=e.maxValue,n=e.minValue,a=e.step,l=e.tick,c=e.majorTick,u=e.tickTemplate,d=l||10,h=(i-n)/d,f=[],p=0;p<=Math.ceil(h/(a||1));p++){var v=0===p?n:(n+d*(a||1)*p).toFixed();f.push(v>i?i:v)}return f=f.map((function(t,e,i){var n=(e%(c||1)==0||e===i.length-1)&&(0,o.sv)("text",{x:e===i.length-1?499.5:e*s/h*(a||1)-.5,y:34},u?u(t):t),l=(0,o.sv)("rect",{x:e===i.length-1?499.5:e*s/h*(a||1)-.5,y:18,width:1,height:4});return(0,o.sv)("g",{transform:"translate(0, ".concat(r,")"),class:"legend-tick"},[n,l])})),f}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(171),o=i(53),r=i(173),s={radial:n.RadialScale,text:r.TextScale,numeric:o.Scale};e.default=s},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.RadialScale=void 0;var r=i(30),s=function(t){function e(e,i){return t.call(this,e,i,"radial")||this}return o(e,t),e.prototype.paint=function(t,e){var i=this;if(this.config.hidden)return null;var n=this.config.zebra,o=this.config.value,s=this.config.showAxis?this._axis.steps:null,a=this._axis.steps.map((function(t){return i.point(t)})),l={scales:this._data.map((function(t){return t[o]})),axis:a,realAxis:s,zebra:n,attribute:o};return(0,r.radarScale)(l,t,e)},e.prototype.point=function(t){return(t-this._axis.min)/(this._axis.max-this._axis.min)},e}(i(53).Scale);e.RadialScale=s},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.AxisCreator=void 0;var r=i(5),s=[1,2,3,5,10],a=function(){function t(t,e){void 0===e&&(e={}),this._data=t;for(var i=[],o=0,r=this._data;o<r.length;o++){var s=r[o];"number"==typeof s&&i.push(s),"string"!=typeof s||isNaN(parseFloat(s))||i.push(parseFloat(s))}var a={min:Math.min.apply(Math,i),max:Math.max.apply(Math,i),maxTicks:this._data.length<20?this._data.length:20};this.config=n(n({},a),e),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,i=Math.floor((0,r.log10)(e/t)),n=Math.pow(10,i)||1,a=e/n/t;return s[o(o([],s,!0),[a],!1).sort((function(t,e){return t-e})).indexOf(a)]*n},t.prototype._calculateSteps=function(t){for(var e=Math.floor(this.config.min/t),i=Math.ceil(this.config.max/t),n=[],o="radial"===this.config.type?e-1:e;o<=i;o++){var r=t*o;Math.floor(r)!==r&&(r=parseFloat(r.toFixed(8))),n.push(r)}return n},t.prototype._logSteps=function(){var t=[];if(this.config.min<0){for(var e=Math.ceil((0,r.log10)(-this.config.min));e>0;e--)t.push(-Math.pow(10,e));t.push(0)}if(this.config.max>0){var i=Math.ceil((0,r.log10)(this.config.max));for(e=0;e<=i;e++)t.push(Math.pow(10,e))}return t},t.prototype._addPadding=function(){this.config.min-=this.config.padding},t}();e.AxisCreator=a},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.TextScale=void 0;var s=i(5),a=i(53),l=i(79),c={left:l.left,right:l.right,bottom:l.bottom,top:l.top},u={left:l.leftGrid,right:l.rightGrid,bottom:l.bottomGrid,top:l.topGrid},d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.scaleReady=function(t){var e=this._data.getLength()-1,i=this._data.map(this.locator);this._axis={max:e,steps:i},t[this._position]+=this.config.size},e.prototype.point=function(t){var e=this._axis.steps.indexOf(t);if(this._padding){var i=this._axis.max+1,n=.5/i,o=e/i;return this._isXDirection?n+o:1-n-o}return this._isXDirection?e/this._axis.max:1-e/this._axis.max},e.prototype.paint=function(t,e){var i=this;if(this.config.hidden)return null;var n=this._axis.steps.map((function(n,o){return[i._isXDirection?i._getAxisPoint(o)*t:i.point(n)*e,n]}));return c[this._position](n,this.config,t,e)},e.prototype.scaleGrid=function(){var t=this,e=this._position,i=this.config.grid,n=this.config.dashed,o=this.config.hidden;return{paint:function(r,s){var a=t._axis.steps.indexOf(t.config.targetLine),l=function(e,i){return t._axis.steps.map((function(n,o){return[t._isXDirection?t._getAxisPoint(o)*e:t._getAxisPoint(o)*i,n]}))}(r,s),c={targetLine:a,dashed:n,grid:i,hidden:o};return u[e](l,r,s,c)}}},e.prototype._setDefaults=function(t){this.locator=(0,s.locator)(t.text),this.config=r(r({},{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 i=e+1,n=.5/i,o=t/i;return this._isXDirection?n+o:1-n-o}return this._isXDirection?t/e:1-t/e},e}(a.Scale);e.TextScale=d},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.addScale=function(e,i){var n="top"===e||"bottom"===e?"left":"top";t.prototype.addScale.call(this,n,i)},e.prototype.paint=function(e,i,n){return t.prototype.paint.call(this,i,e,n)},e.prototype.getTooltipType=function(t,e,i){return void 0!==this.config.baseLine&&this._baseLinePosition>e?"left":"right"},e.prototype.getClosest=function(t,e){for(var i=[1/0,null,null,null],n=0,o=this._points;n<o.length;n++){var r=o[n],s=this._getClosestDist(t,e,r[1],r[0]);i[0]>s&&(i[0]=s,i[1]=r[1],i[2]=r[0],i[3]=r[2])}return i},e.prototype._getText=function(t){return t[4].toString()},e.prototype._getClosestDist=function(t,e,i,n){return this.config.stacked&&t>i?1/0:Math.abs(e-n)},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,i){var n=(e+t[1])/2,o=t[0];return{x:n,y:o,class:"bar-text",transform:i&&!isNaN(i)?"rotate(".concat(i," ").concat(n," ").concat(o,")"):""}},e}(i(83).default);e.default=r},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),a=i(30),l=i(5),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.paint=function(t,e){var i,n=this,o=function(t,e,i){return void 0===i&&(i=0),{role:"graphics-symbol","aria-roledescription":"piece of donut","aria-label":"".concat(e||"",", ").concat(t," (").concat((0,l.roundToTwoNumAfterPoint)(i),"%)")}},c=this.config,u=c.stroke,d=c.strokeWidth,h=c.useLines,f=c.subType,p=c.valueTemplate,v=!d||d<1?4:d>15?15:d;i=e>t?t/2:e/2;var g,_=-.25,m=[],y=[],b=[];return this._points.length>1&&u&&m.push((0,s.sv)("circle",{cx:0,cy:0,r:i-.5,fill:u})),this._points.forEach((function(c,d){var g,w,x,E=[],C=c[0],S=c[1],k=c[2],O=c[3],P=c[4],I=0===C||1===C?-1e-6:0,D=(0,a.getCoordinates)(_,i,i,n._points.length>1&&u?v/2:null),M=D[0],T=D[1],V=_+C/2;_+=C+I;var H=(0,a.getCoordinates)(_,i,i,n._points.length>1&&u?-v/2:null),j=H[0],F=H[1],R=C>.5?1:0,A=(0,a.getCoordinates)(V,i,i),L=V>-.25&&V<.25,$=V>.5||V<0,N=V<.25?5:-5,z=[5,30],W=z[0],B=z[1],G=[(0,a.getCoordinates)(V,i+W,i+W),(0,a.getCoordinates)(V,i+B,i+B)],q=G[0],Y=G[1],X="function"==typeof p?p(C):Math.round(100*C)+"%";switch(n.config.subType){case"basic":var U=L?"donut-value-title start-text":"donut-value-title end-text",K=$?-20:10,J=(0,a.getCoordinates)(V,i+10,i+10),Z=L?"donut-value start-text":"donut-value end-text",Q={text1:{x:h?Y[0]:J[0],y:(h?Y[1]:J[1])+K,width:0,height:0,class:""},text2:{x:h?Y[0]:J[0],y:(h?Y[1]:J[1])+K+16,width:0,height:0,class:""},changeSector:!1,line:N,right:L,dy:K},tt=(0,s.sv)("text",r(r({x:h?Y[0]:J[0],y:(h?Y[1]:J[1])+K,class:U},o(S,O,C)),{tabindex:0}),[(0,l.verticalCenteredText)(O.toString())]),et=(0,s.sv)("text",{x:h?Y[0]:J[0],y:(h?Y[1]:J[1])+K+16,class:Z,"aria-hidden":"true"},[(0,l.verticalCenteredText)(S.toString())]);g=(0,l.getSizesSVGText)(O.toString(),{font:"normal 14px Roboto",lineHeight:14}),Q.text1.width=g[0],Q.text1.height=g[1],w=(0,l.getSizesSVGText)(S.toString(),{font:"normal 12px Roboto",lineHeight:12}),Q.text2.width=w[0],Q.text2.height=w[1];var it=h?i+B:i+10;0!==y.length&&(L?(y.forEach((function(t){(0,l.checkPositions)(Q.text1,t.text1,it,it,Q),(0,l.checkPositions)(Q.text1,t.text2,it,it,Q)})),Q.text1.class&&(Q.text2.class=Q.text1.class)):(y.forEach((function(t){(0,l.checkPositions)(Q.text2,t.text2,it,it,Q),(0,l.checkPositions)(Q.text2,t.text1,it,it,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),N=Q.line,h?(Y[0]=Q.text1.x,Y[1]=Q.text1.y-K):(J[0]=Q.text1.x,J[1]=Q.text1.y-K)),y.push(Q);var nt=(0,s.sv)("text",r({x:7*A[0]/9,y:7*A[1]/9,class:"pie-inner-value"},o(S,O,C)),[(0,l.verticalCenteredText)(X)]);E.push((0,s.sv)("g",{id:"".concat(k,"-text"),class:"chart donut"},[tt,et])),E.push(nt);break;case"valueOnly":var ot=(0,s.sv)("text",r(r({x:7*A[0]/9,y:7*A[1]/9,class:"pie-inner-value"},o(S,O,C)),{tabindex:0}),[(0,l.verticalCenteredText)("".concat(S))]);E.push(ot);break;case"percentOnly":var rt=(0,s.sv)("text",r(r({x:7*A[0]/9,y:7*A[1]/9,class:"pie-inner-value"},o(S,O,C)),{tabindex:0}),[(0,l.verticalCenteredText)(X)]);E.push(rt)}if(h&&"basic"===f){K=$?3:0;E.push((0,s.sv)("path",{d:"M".concat(q[0]," ").concat(q[1]," L").concat(Y[0],"\n\t\t\t\t\t\t\t").concat(Y[1]+K," h ").concat(N),id:"".concat(k,"-connector"),class:"pie-value-connector chart donut"}))}var st=0,at=0,lt=v/(2*Math.sin(Math.PI/n._points.length));n._points.length>1&&u&&(st=(x=(0,a.getCoordinates)(V,lt,lt))[0],at=x[1]);var ct="M ".concat(M," ").concat(T," A ").concat(i," ").concat(i," 0 ").concat(R," 1 ").concat(j," ").concat(F,"\n\t\t\t\tL ").concat(0+st," ").concat(0+at),ut=(0,a.getCoordinates)(V,4,4),dt=ut[0],ht=ut[1],ft=(0,s.sv)("path",{d:ct,_key:k,fill:P||(0,l.getDefaultColor)(d),class:"chart donut",onclick:[n._handlers.onclick,c[1],c[2]],onmouseout:[a.pieLikeHandlers.onmouseout],onmouseover:[a.pieLikeHandlers.onmouseover,dt,ht],role:"presentation"});E.unshift(ft),m.push((0,s.sv)("g",{id:k},E)),1===n._points.length?b.push([t/2,e/2]):b.push([.8*A[0]+t/2,.8*A[1]+e/2])})),this._center=[t/2,e/2],this._tooltipData=b,(m=m.concat([])).push((0,s.sv)("circle",{cx:0,cy:0,r:5*i/9,fill:"#FFFFFF",role:"presentation"})),(0,s.sv)("g",r(r({transform:"translate(".concat(t/2,", ").concat(e/2,")")},(g=this.config,{"aria-label":"chart ".concat(g.text||"")})),{tabindex:0}),m)},e}(i(55).default);e.default=c},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(1),a=i(0),l=i(30),c=i(5),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.paint=function(t,e){var i,n=this,o=this.config,u=o.stroke,d=o.strokeWidth,h=o.gradient,f=o.useLines,p=o.showText,v=o.showTextTemplate,g=o.subType,_=o.valueTemplate,m=!d||d<1?4:d>15?15:d;i=e>t?t/2:e/2;var y,b=-.25,w=[],x=[],E=[],C=[],S=[];return this._points.length>1&&u&&E.push((0,a.sv)("circle",{cx:0,cy:0,r:i-.5,fill:u})),this._points.forEach((function(o,d){var y,E,k,O=[],P=o[0],I=o[1],D=o[2],M=o[3],T=o[4],V=0===P||1===P?-1e-6:0,H=T||(0,c.getDefaultColor)(d);if(h){var j=h(T),F="gradient"+(0,s.uid)(),R=(0,c.getRadialGradient)(j.options,j.stops,F);H="url(#".concat(F,")"),C.push(R)}var A=(0,l.getCoordinates)(b,i,i,n._points.length>1&&u?m/2:null),L=A[0],$=A[1],N=b+P/2,z=N<.25?5:-5,W=(0,l.getCoordinates)(N,i,i);b+=P+V;var B=(0,l.getCoordinates)(b,i,i,n._points.length>1&&u?-m/2:null),G=B[0],q=B[1],Y=P>.5?1:0,X=[5,30],U=X[0],K=X[1],J=[(0,l.getCoordinates)(N,i+U,i+U),(0,l.getCoordinates)(N,i+K,i+K)],Z=J[0],Q=J[1],tt=N>-.25&&N<.25,et=N>.5||N<0,it=N>-.25&&N<.25?"pie-value start-text":"pie-value end-text";if((p||v)&&!1!==p){var nt=(0,a.sv)("text",{x:.7*W[0],y:.7*W[1],class:"pie-inner-value","aria-hidden":"true"},[v?(0,c.verticalCenteredText)(v(I.toString())):(0,c.verticalCenteredText)(I.toString())]);O.push(nt)}var ot="function"==typeof _?_(P):Math.round(100*P)+"%";switch(n.config.subType){case"basic":var rt=et?-20:10,st=(0,l.getCoordinates)(N,i+10,i+10),at=tt?"donut-value start-text":"donut-value end-text",lt={text1:{x:f?Q[0]:st[0],y:(f?Q[1]:st[1])+rt,width:0,height:0,class:""},text2:{x:f?Q[0]:st[0],y:(f?Q[1]:st[1])+rt+16,width:0,height:0,class:""},changeSector:!1,line:z,right:tt,dy:rt},ct=(0,a.sv)("text",r({x:f?Q[0]:st[0],y:(f?Q[1]:st[1])+rt,class:it},function(t,e,i){return{role:"graphics-symbol","aria-roledescription":"piece of pie","aria-label":"".concat(e||"",", ").concat(t," (").concat((0,c.roundToTwoNumAfterPoint)(i),"%)")}}(I,M,P)),[(0,c.verticalCenteredText)(M.toString())]),ut=(0,a.sv)("text",{x:f?Q[0]:st[0],y:(f?Q[1]:st[1])+rt+16,class:at,"aria-hidden":"true"},[(0,c.verticalCenteredText)(I.toString())]);y=(0,c.getSizesSVGText)(M.toString(),{font:"normal 14px Roboto",lineHeight:14}),lt.text1.width=y[0],lt.text1.height=y[1],E=(0,c.getSizesSVGText)(I.toString(),{font:"normal 12px Roboto",lineHeight:12}),lt.text2.width=E[0],lt.text2.height=E[1];var dt=f?i+K:i+10;0!==w.length&&(tt?(w.forEach((function(t){(0,c.checkPositions)(lt.text1,t.text1,dt,dt,lt),(0,c.checkPositions)(lt.text1,t.text2,dt,dt,lt)})),lt.text1.class&&(lt.text2.class=lt.text1.class)):(w.forEach((function(t){(0,c.checkPositions)(lt.text2,t.text2,dt,dt,lt),(0,c.checkPositions)(lt.text2,t.text1,dt,dt,lt)})),lt.text2.class&&(lt.text1.class=lt.text2.class)),ct.attrs.x=lt.text1.x,ct.attrs.y=lt.text1.y,ut.attrs.x=lt.text2.x,ut.attrs.y=lt.text2.y,(lt.text1.class||lt.text2.class)&&(ct.attrs.class=lt.text1.class,ut.attrs.class=lt.text2.class),z=lt.line,f?(Q[0]=lt.text1.x,Q[1]=lt.text1.y-rt):(st[0]=lt.text1.x,st[1]=lt.text1.y-rt)),w.push(lt);var ht=(0,a.sv)("text",{x:.5*W[0],y:.5*W[1],class:"pie-inner-value","aria-hidden":"true"},[(0,c.verticalCenteredText)(ot)]);O.push((0,a.sv)("g",{id:"".concat(D,"-text"),class:"chart donut"},[ct,ut])),O.push(ht);break;case"valueOnly":var ft=(0,a.sv)("text",{x:.5*W[0],y:.5*W[1],class:"pie-inner-value","aria-hidden":"true"},[(0,c.verticalCenteredText)("".concat(I))]);O.push(ft);break;case"percentOnly":var pt=(0,a.sv)("text",{x:.5*W[0],y:.5*W[1],class:"pie-inner-value","aria-hidden":"true"},[(0,c.verticalCenteredText)(ot)]);O.push(pt)}if(f&&"basic"===g){rt=et?3:0;O.push((0,a.sv)("path",{d:"M".concat(Z[0]," ").concat(Z[1]," L").concat(Q[0],"\n\t\t\t\t\t\t\t").concat(Q[1]+rt," h ").concat(z),id:"".concat(D,"-connector"),class:"pie-value-connector chart pie"}))}var vt=0,gt=0,_t=m/(2*Math.sin(Math.PI/n._points.length));n._points.length>1&&u&&(vt=(k=(0,l.getCoordinates)(N,_t,_t))[0],gt=k[1]);var mt="M ".concat(L," ").concat($," A ").concat(i," ").concat(i," 0 ").concat(Y," 1 ").concat(G," ").concat(q,"\n\t\t\t\tL ").concat(0+vt," ").concat(0+gt),yt=(0,l.getCoordinates)(N,4,4),bt=yt[0],wt=yt[1],xt=(0,a.sv)("path",{d:mt,class:"chart pie",_key:D,fill:H,onclick:[n._handlers.onclick,o[1],o[2]],onmouseover:[l.pieLikeHandlers.onmouseover,bt,wt],onmouseout:[l.pieLikeHandlers.onmouseout],role:"presentation"});O.unshift(xt),S.push((0,a.sv)("g",{id:D},O)),1===n._points.length?x.push([t/2,e/2]):x.push([.7*W[0]+t/2,.7*W[1]+e/2])})),this._center=[t/2,e/2],this._tooltipData=x,E.push((0,a.sv)("defs",C)),E=(E=E.concat(S)).concat([]),(0,a.sv)("g",r(r({transform:"translate(".concat(t/2,", ").concat(e/2,")")},(y=this.config,{"aria-label":"chart ".concat(y.text||"")})),{tabindex:0}),E)},e}(i(55).default);e.default=u},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),a=i(30),l=i(5),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.paint=function(t,e){var i,n,o=this,c=this.config,u=c.subType,d=c.useLines,h=c.showText,f=c.showTextTemplate,p=c.valueTemplate,v=.5*(i=e>t?t/2:e/2),g=i/5,_=[],m=-.25,y=[],b=[],w=[];return this._points.forEach((function(n,c){var x,E,C=n[0],S=n[1],k=n[2],O=n[3],P=n[4],I=0===C||1===C?-1e-6:0,D=(0,a.getCoordinates)(m,i,v),M=D[0],T=D[1],V=m+C/2,H=V<.25?5:-5,j=(0,a.getCoordinates)(V,i,v),F=0;V>0&&V<.5&&(F=g*Math.sin(2*Math.PI*V));var R=(0,a.getCoordinates)(V,i+5+F,v+5+F),A=(0,a.getCoordinates)(V,i+30+F,v+30+F),L=m+C+I,$=(0,a.getCoordinates)(L,i,v),N=$[0],z=$[1],W=C>.5?1:0,B=V>-.25&&V<.25,G=V>.5||V<0,q=B?"pie-value start-text":"pie-value end-text",Y="function"==typeof p?p(C):Math.round(100*C)+"%";switch(o.config.subType){case"basic":var X=G?-20:10,U=B?"donut-value start-text":"donut-value end-text",K={text1:{x:d?A[0]:R[0],y:(d?A[1]:R[1])+X,width:0,height:0,class:""},text2:{x:d?A[0]:R[0],y:(d?A[1]:R[1])+X+16,width:0,height:0,class:""},changeSector:!1,line:H,right:B,dy:X},J=(0,s.sv)("text",r({x:d?A[0]:R[0],y:(d?A[1]:R[1])+X,dx:d?H/2+H>0?10:-10:null,class:q},function(t,e,i){return{role:"graphics-symbol","aria-roledescription":"piece of pie","aria-label":"".concat(e||"",", ").concat(t," (").concat((0,l.roundToTwoNumAfterPoint)(i),"%)")}}(S,O,C)),[(0,l.verticalCenteredText)(O.toString())]),Z=(0,s.sv)("text",{x:d?A[0]:R[0],y:(d?A[1]:R[1])+X+16,dx:d?H/2+H>0?10:-10:null,class:U,"aria-hidden":"true"},[(0,l.verticalCenteredText)(S.toString())]),Q=(0,s.sv)("text",{x:.5*j[0],y:.5*j[1],class:"pie-inner-value","aria-hidden":"true"},[(0,l.verticalCenteredText)(Y)]);x=(0,l.getSizesSVGText)(O.toString(),{font:"normal 14px Roboto",lineHeight:14}),K.text1.width=x[0],K.text1.height=x[1],E=(0,l.getSizesSVGText)(S.toString(),{font:"normal 12px Roboto",lineHeight:12}),K.text2.width=E[0],K.text2.height=E[1];var tt=d?i+30+F:i+5+F,et=d?v+30+F:v+5+F;0!==w.length&&(B?(w.forEach((function(t){(0,l.checkPositions)(K.text1,t.text1,tt,et,K),(0,l.checkPositions)(K.text1,t.text2,tt,et,K)})),K.text1.class&&(K.text2.class=K.text1.class)):(w.forEach((function(t){(0,l.checkPositions)(K.text2,t.text2,tt,et,K),(0,l.checkPositions)(K.text2,t.text1,tt,et,K)})),K.text2.class&&(K.text1.class=K.text2.class)),J.attrs.x=K.text1.x,J.attrs.y=K.text1.y,Z.attrs.x=K.text2.x,Z.attrs.y=K.text2.y,(K.text1.class||K.text2.class)&&(J.attrs.class=K.text1.class,Z.attrs.class=K.text2.class),H=K.line,d?(A[0]=K.text1.x,A[1]=K.text1.y-X):(R[0]=K.text1.x,R[1]=K.text1.y-X)),w.push(K),b.push(J,Z,Q);break;case"valueOnly":var it=(0,s.sv)("text",{x:.5*j[0],y:.5*j[1],class:"pie-inner-value","aria-hidden":"true"},[(0,l.verticalCenteredText)(S.toString())]);b.push(it);break;case"percentOnly":var nt=(0,s.sv)("text",{x:.5*j[0],y:.5*j[1],class:"pie-inner-value","aria-hidden":"true"},[(0,l.verticalCenteredText)(Y)]);b.push(nt)}if(d&&"basic"===u&&b.push((0,s.sv)("path",{d:"M".concat(R[0]," ").concat(R[1]," L").concat(A[0]," ").concat(A[1]," h ").concat(H),class:"pie-value-connector"})),(h||f)&&!1!==h){var ot=(0,s.sv)("text",{x:.7*j[0],y:.7*j[1],class:"pie-inner-value","aria-hidden":"true"},[f?(0,l.verticalCenteredText)(f(S)):(0,l.verticalCenteredText)(S.toString())]);b.push(ot)}var rt="";if(m<=0&&L>=.5?rt="M ".concat(i," 0 v ").concat(g," A ").concat(i," ").concat(v," 0 1 1 ").concat(-i," ").concat(g," v ").concat(-g):m<=0&&L<.5?rt="M ".concat(i," 0 v ").concat(g," A ").concat(i," ").concat(v," 0 0 1 ").concat(N," ").concat(z+g," v ").concat(-g):m>0&&m<=.5&&L>=.5?rt="M ".concat(M," ").concat(T," v ").concat(g," A ").concat(i," ").concat(v," 0 0 1 ").concat(-i," ").concat(g," v ").concat(-g):m>0&&L<.5&&(rt="M ".concat(M," ").concat(T," v ").concat(g," A ").concat(i," ").concat(v," 0 0 1 ").concat(N," ").concat(z+g," v ").concat(-g)),rt){var st=(0,s.sv)("path",{_key:k+"__shadow__",d:rt,fill:P||(0,l.getDefaultColor)(c),onclick:[o._handlers.onclick,n[1],n[2]],class:"chart pie3d addition",stroke:"none",filter:"url(#shadow)",role:"presentation"});y.push(st)}var at="M ".concat(M," ").concat(T," A ").concat(i," ").concat(v," 0 ").concat(W," 1 ").concat(N," ").concat(z," L 0 0");y.push((0,s.sv)("path",{d:at,_key:k,fill:P||(0,l.getDefaultColor)(c),stroke:"none",onclick:[o._handlers.onclick,n[1],n[2]],class:"chart pie3d",role:"presentation"})),1===o._points.length?_.push([t/2,e/2]):_.push([.7*j[0]+t/2,.7*j[1]+e/2]),m=L})),this._center=[t/2,e/2],this._tooltipData=_,y=y.concat(b),(0,s.sv)("g",r(r({transform:"translate(".concat(t/2,", ").concat(e/2,")")},(n=this.config,{"aria-label":"chart ".concat(n.text||"")})),{tabindex:0}),y)},e}(i(55).default);e.default=c},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(0),a=i(30),l=i(5),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(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 i=(0,l.locator)(this._scale.config.value);return this._points=this._data.map((function(n,o){var r=e._locator(n),s=[r,r,n.id,r,r];return t&&(s[1]+=t[o][1]),i&&s.push(i(n)),s})),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,i){var n=this;t.prototype.paint.call(this,e,i);if(this.config.active){var o,a=this.config,c=[],u=this._points.map((function(t,e){return(e?"L":"M")+"".concat(t[0]," ").concat(t[1])})).join(" ")+"Z";if(c.push((0,s.sv)("path",{d:u,stroke:a.color,"stroke-width":a.strokeWidth,fill:a.fill,"fill-opacity":a.alpha,class:"chart radar"})),a.pointType){var d=this._points.map((function(t){return n._drawPointType(t[0],t[1],(0,l.calcPointRef)(t[2],n.id))})).map((function(t){return t&&t.attrs&&(t.attrs=r(r({},t.attrs),function(t,e){var i;return t&&(i=e.find((function(e){return t.includes(e[2])}))),{role:"graphics-symbol","aria-roledescription":"point","aria-label":i?"point x=".concat(i[5]," y=").concat(i[4]):"",tabindex:0}}(t.key,n._points))),t}));c.push((0,s.sv)("g",d))}return(0,s.sv)("g",r(r({id:"seria"+a.id},(o=this.config,{"aria-label":"chart ".concat(o.value||"")})),{tabindex:0}),c)}},e.prototype._calckFinalPoints=function(t,e){var i,n=this;i=e>t?t/2:e/2;var o=1/this._data.getLength(),r=-.25-o;this._points.forEach((function(s,l){r+=o;var c=n._scale.point(s[0]),u=(0,a.getCoordinates)(r,c*i,c*i);s[0]=u[0]+t/2,s[1]=u[1]+e/2}))},e.prototype._defaultLocator=function(t){return this._locator(t)},e.prototype._setDefaults=function(t){if(this._locator=(0,l.locator)(t.value),t.scales=t.scales||["radial"],this.config=r(r({},{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}(i(31).default);e.default=c},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(56),a=i(5),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.addScale=function(t,e){"bottom"===t||"top"===t?(this.xScale=e,this._xLocator=(0,a.locator)(this.config.value)):(this.yScale=e,this._yLocator=(0,a.locator)(this.config.valueY))},e.prototype._setDefaults=function(t){this.config=r(r({},{active:!0,tooltip:!0,pointType:"rect"}),t);var e=this.config.pointType,i=this.config.pointColor||this.config.color;e&&(this._drawPointType=this._getPointType(e,i))},e}(s.default);e.default=l},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r=i(0),s=i(84),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype._getForm=function(t,e,i,n,o){var a=e.color,l=e.strokeWidth,c=(0,s.default)(t);return(0,r.sv)("path",{id:"seria"+e.id,d:c,class:i,stroke:a,"stroke-width":l,fill:"none"})},e}(i(56).default);e.default=a},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r=i(0),s=i(84),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype._form=function(t,e,i,n){var o=this.config,a=o.fill,l=o.alpha,c=o.strokeWidth,u=o.color,d=o.id,h=this.config.css,f="",p=this._points[0];if(f=n?"".concat((0,s.default)([].concat(n).reverse())," ").concat((0,s.default)(this._points,!0)," Z"):"M".concat(p[0]," ").concat(e," V ").concat(p[1]," ").concat((0,s.default)(this._points)," V").concat(e," H ").concat(p[0]),c){var v=(0,s.default)(this._points),g=(0,r.sv)("path",{d:v,"stroke-width":c,stroke:u,fill:"none","stroke-linecap":"butt",class:h});i.push(g)}var _=(0,r.sv)("path",{id:"seria"+d,d:f,class:h,fill:a,"fill-opacity":l,stroke:"none"});return i.push(_),i},e}(i(81).default);e.default=a},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=i(1),a=i(0),l=i(7),c=i(5),u=i(25),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(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(i){var n=t._data.getItem(t._data.getParent(i.id));if(!(n&&n.$hidden&&t._maxLevel>1)){var o=t._valueLocator(i);if(o){var r=t._getSerie(e?i.id:o,e);i.color=r?r.color:i.color,i.$hidden=!!r&&!r.active,!i.$hidden&&o&&(t._sum+=parseFloat(i[t.config.value]))}}})),this._points=[],this._data.eachChild(this._data.getRoot(),(function(i){var n;if(!i.$hidden){var o=t._valueLocator(i),r=t._textLocator(i),s=[];!o&&t._data.haveItems(i.id)&&(o=0,t._data.eachChild(i.id,(function(i){var n;if(!i.$hidden){var r=t._valueLocator(i),a=t._textLocator(i),l=i.color||(null===(n=t._getSerie(e?i.id:r,e))||void 0===n?void 0:n.color);r&&(o+=r),s.push([0,r,i.id,a,l])}}))),i.percent=parseFloat(o)/t._sum;var a=i.color||(null===(n=t._getSerie(e?i.id:o,e))||void 0===n?void 0:n.color);t._points.push([i.percent,o,i.id.toString(),r,a,{items:s}])}}),!1),this._maxLevel=this._getMaxLevel(),this._points},e.prototype.paint=function(t,e){var i=this;if(!!this.config.treeSeries.find((function(t){return t.active}))){var n=this.config.strokeWidth,o=[],l=[],c=[],u=this._maxLevel>1?2*n:n,d=t-u,h=e-u;this._layout={id:(0,s.uid)(),area:d*h,width:d,height:h,restArea:d*h,restWidth:d,restHeight:h,startX:u/2,startY:u/2,stroke:u};var f,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,r){var c,u,d=t[0],h=(t[1],t[2]),f=(t[3],t[4],t[5]);if(0!==d){var g=i._drawBar(t,e,r,i._layout,p,v,!(!f||!(null===(c=f.items)||void 0===c?void 0:c.length))),_=g[0],m=g[1],y=g[2],b=g[3],w=g[4],x=g[5],E=g[6];if(p=x[0],v=x[1],l.push((0,a.sv)("g",{id:h},[_,m,E])),o.push(y),f&&(null===(u=f.items)||void 0===u?void 0:u.length)){var C=x[2]-n,S=x[3]-n,k={id:(0,s.uid)(),parent:i._layout.id,area:C*S,width:C,height:S,restArea:C*S,restWidth:C,restHeight:S,startX:p+n/2,startY:v+n/2+("asc"!==i.config.direction&&E?n/2:0),stroke:n},O=k.startX,P=k.startY;k.width>=k.height?k.cols=[]:k.rows=[],f.items.map((function(e){return e[0]=e[1]/t[1]})),f.items.sort((function(t,e){return e[0]-t[0]})),f.items.forEach((function(t,e,n){var r=t[2],s=i._drawBar(t,e,n,k,O,P,!1),c=s[0],u=s[1],d=s[2],h=s[3],f=s[4];l.push((0,a.sv)("g",{id:r},[c,u])),o.push(d),O=h,P=f}))}p=b,v=w}})),c.push((0,a.sv)("defs",o)),c=c.concat(l),(0,a.sv)("g",r(r({id:"seria"+this.config.id},(f=this.config,{"aria-label":"chart ".concat(f.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,")"):""}),c)}},e.prototype._drawBar=function(t,e,i,n,o,l,u){var d=this,h=t[0],f=t[1],p=t[2],v=t[3],g=t[4],_=this.config,m=_.stroke,y=_.showText,b=_.showTextTemplate,w=h*n.area,x=this._getDeepParent(n),E=u&&h>0&&v,C=n.startX+n.width-x.restWidth,S=n.startY+n.height-x.restHeight;o=o>C?C:o,l=l>S?S:l;var k=this._getBar(x,w,o,l,i,e,n.area),O=k[0],P=k[1],I=k[2],D=k[3],M=k[4];if(!(O[2]<0||O[3]<0)){this._recountParentArea(w,M,n);var T=E?(0,a.sv)("rect",{x:O[0]+n.stroke/4,y:"asc"===this.config.direction?O[1]+O[3]-this._headerHeight-n.stroke/2:O[1]+n.stroke/4,width:O[2]-n.stroke/2,height:this._headerHeight+n.stroke/4,stroke:m,"stroke-width":n.stroke/2,class:"treeMap-header",_key:p,onclick:function(){return d._toggleGroup(p)}}):null,V=E?(0,a.sv)("text",{x:O[0]+O[2]/2,y:"asc"===this.config.direction?O[1]+O[3]-this._headerHeight/2-n.stroke/2:O[1]+this._headerHeight/2+n.stroke/2,class:"header-text","aria-hidden":"true",transform:"asc"===this.config.direction?"rotate(180 ".concat(O[0]+O[2]/2," ").concat(O[1]+O[3]-this._headerHeight/2-n.stroke/2,")"):""},[b?(0,c.verticalCenteredText)(b(null==v?void 0:v.toString())):(0,c.verticalCenteredText)(null==v?void 0:v.toString())]):null,H=u&&h>0&&v?(0,a.sv)("g",{},[T,V]):null,j=b?b(null==v?void 0:v.toString()):null==v?void 0:v.toString(),F=(0,c.getSizesSVGText)(j,{font:"normal 12px Roboto",lineHeight:14})[0]<O[2]-2*n.stroke,R=(0,s.uid)(),A=O[2]>2*n.stroke&&O[3]>2*n.stroke?(0,a.sv)("clipPath",{id:R,"clip-rule":"nonzero"},[(0,a.sv)("rect",{x:O[0]+n.stroke,y:O[1]+n.stroke,width:O[2]-2*n.stroke,height:O[3]-2*n.stroke,fill:"none",stroke:"black"})]):null,L=(0,a.sv)("rect",r(r({},function(t,e,i){return{role:"graphics-symbol","aria-roledescription":"piece of treeMap","aria-label":"".concat(e||"",", ").concat(t," (").concat((0,c.roundToTwoNumAfterPoint)(i),"%)")}}(f,v,h)),{x:O[0],y:O[1],width:O[2],height:O[3],stroke:m,"stroke-width":n.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,i[e][2],this.id],onmouseleave:this._maxLevel>1&&1===this._getDataLevel(p)?"":[this._handlers.onmouseleave,i[e][2],this.id]})),$=y?(0,a.sv)("text",{x:F?P[0]:O[0]+n.stroke,y:P[1],class:"treeMap-inner-value ".concat(F?"":"start-text"),"aria-hidden":"true","clip-path":'url("#'.concat(R,'")'),transform:"asc"===this.config.direction?"rotate(180 ".concat(P[0]," ").concat(P[1],")"):""},[(0,c.verticalCenteredText)(j)]):null;return u&&H&&(O[1]+="asc"===this.config.direction?0:this._headerHeight,O[3]-=this._headerHeight+n.stroke/4),[L,$,A,I,D,O,H]}},e.prototype._getBar=function(t,e,i,n,o,r,a){var l,c,u,d,h,f=this,p=function(t,e,i,n){for(var s={area:0,width:t.width,height:t.height},l=e;l<=i;l++)s.area+=o[l][0]*a;"rows"===n?s.width=s.area/s.height:s.height=s.area/s.width;var c="rows"===n?s.width:t.area/s.height,u="rows"===n?t.area/s.width:s.height;return(c/u>f._aspectRatio||u/c>f._aspectRatio)&&o[r][0]>.01&&i!==f._points.length-1?p(t,e,i+1,n):[c,u,s]},v=i,g=n,_=t.restWidth>t.restHeight?"cols":"rows",m="cols"===_?"rows":"cols",y="cols"===_?e/t.restHeight:t.restWidth,b="cols"===_?t.restHeight:e/t.restWidth;if((b/y>this._aspectRatio||y/b>this._aspectRatio)&&0!==Math.round(e-t.restArea)&&r<o.length-2&&e<t.restArea){var w=void 0;if(h={id:(0,s.uid)(),area:e,width:y,height:b},l=p(h,r,r+1,m),h.width=l[0],h.height=l[1],w=l[2],y=h.width,b=h.height,(c={id:(0,s.uid)(),area:w.area,width:w.width,height:w.height,restArea:w.area,restWidth:"cols"===m?w.width-y:w.width,restHeight:"cols"===m?w.height:w.height-b})[m]=[h],w=c,h.parent=w.id,t[_]||t[m])if(t[m]){var x=(0,s.uid)();t[m].push(((u={id:x,parent:t.id,area:t.restArea,width:t.restWidth,height:t.restHeight,restArea:t.restArea,restWidth:"cols"===_?t.restWidth-w.width:t.restWidth,restHeight:"cols"===_?t.restHeight:t.restHeight-w.height})[_]=[w],u)),w.parent=x}else t[_].push(w),w.parent=t.id;else t[_]=[w],w.parent=t.id;"cols"===_?(t.restWidth-=w.width,g+=b):(t.restHeight-=w.height,v+=y)}else{if(h={id:(0,s.uid)(),area:e,width:y,height:b},t[m]&&t.restArea.toFixed(2)>e.toFixed(2)){x=(0,s.uid)();t[m].push(((d={id:x,parent:t.id,area:t.restArea,width:t.restWidth,height:t.restHeight,restArea:t.restArea,restWidth:"cols"===_?t.restWidth-y:t.restWidth,restHeight:"cols"===_?t.restHeight:t.restHeight-b})[_]=[h],d)),h.parent=x}else(t.cols||t.rows).push(h),h.parent=t.id,"cols"===_?t.restWidth-=y:t.restHeight-=b;"cols"===_?(v+=y,g=0===Math.round(t.restArea-e)?g+b:g):(g+=b,v=0===Math.round(t.restArea-e)?v+y:v)}return[[i,n,h.width,h.height],[i+h.width/2,n+h.height/2],v,g,h.parent]},e.prototype._setDefaults=function(t){this.config=r(r({},{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,c.locator)(t.value),this._textLocator=(0,c.locator)(t.text)},e.prototype._defaultLocator=function(t){return[this._valueLocator(t),this._textLocator(t)]},e.prototype._getSerie=function(t,e){var i=this;return this.config.treeSeries.find((function(n){if(e){var o=i._data.getParent(t);return n.id===o||n.id===t}return n.from&&n.to&&t>=n.from&&t<n.to||n.less&&t<n.less||n.greater&&t>n.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(i){var n=t._getDataLevel(i.id);e=Math.max(n,e)})),e},e.prototype._getDeepParent=function(t){var e,i=null===(e=t.cols||t.rows)||void 0===e?void 0:e.find((function(t){return t.restArea&&Math.round(t.restArea)>0}));return i?this._getDeepParent(i):t},e.prototype._getLayoutObj=function(t,e){var i;if(void 0===e&&(e=this._layout),e.id===t)i=e;else{var n=e.cols||e.rows;if(!n||!n.length)return;for(var o=0;o<n.length&&!(i=this._getLayoutObj(t,n[o]));o++);}return i},e.prototype._recountParentArea=function(t,e,i){var n=this._getLayoutObj(e,i);n&&n.id!==i.parent&&(n.restArea-=t,n.parent&&this._recountParentArea(t,n.parent,i))},e.prototype._toggleGroup=function(t){var e=this,i=0;this.config.treeSeries.forEach((function(t){t.active&&i++})),this._data.eachChild(this._data.getRoot(),(function(n){n.id!==t&&("groupName"===e.config.legendType?(i>1&&(e._getSerie(n.id,!0).active=!0),e._events.fire(u.ChartEvents.toggleSeries,[n.id])):(n.$hidden=!n.$hidden,e._events.fire(l.DataEvents.change)))}),!1)},e}(i(31).default);e.default=d},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0});var a=i(1),l=i(15),c=i(0),u=i(7),d=i(5),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(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,i=this,n=[];this._years=[],this._points=[],this.config.startDate&&(t="string"==typeof this.config.startDate?(0,l.stringToDate)(this.config.startDate,this.config.dateFormat):this.config.startDate),this.config.endDate&&(e="string"==typeof this.config.endDate?(0,l.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(o){var r,s=Number(i._valueLocator(o)),c=i._dateLocator(o);"string"==typeof c&&(c=(0,l.stringToDate)(c,i.config.dateFormat));var u=null==c?void 0:c.getTime(),d=(null===(r=o.id)||void 0===r?void 0:r.toString())||(0,a.uid)();if(t||e){var h=l.DateHelper.dayStart(c).getTime(),f=t&&l.DateHelper.dayStart(t).getTime()||0,p=e&&l.DateHelper.dayStart(e).getTime()||1/0;if(h<f||h>p)return}var v=n.findIndex((function(t){var e=t[0],i=t[1],n=l.DateHelper.isSameDay(new Date(e),c);return n&&(s+=i),n}));v>-1&&(n[v]=[u,s,d]),s&&(i._minValue=!i._minValue||s<i._minValue?s:i._minValue,i._maxValue=!i._maxValue||s>i._maxValue?s:i._maxValue),v<0&&n.push([u,s,d])})),n.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 o=t||new Date(n[0][0]),r=e||new Date(n[n.length-1][0]),s=o.getFullYear(),c=r.getFullYear();if(this.config.startDate||this.config.endDate)if(this.config.startDate&&!this.config.endDate){var d=new Date(o.getFullYear()+1,o.getMonth(),o.getDate()-1);r.getTime()>d.getTime()&&d.setFullYear(r.getFullYear()+1),e=d,c=d.getFullYear()}else!this.config.startDate&&this.config.endDate&&(t=new Date(s,0,1));else c=r.getFullYear(),t=new Date(s,0,1),e=new Date(c,11,31);for(var h=0,f=new Date(t.getTime()),p=new Date(e.getFullYear(),e.getMonth(),e.getDate()+1);!l.DateHelper.isSameDay(f,p);){var v=n.length&&new Date(n[h][0]),g=function(){return f.setDate(f.getDate()+1)};if(n.length)if(h<n.length-1){for(;!l.DateHelper.isSameDay(f,v);)this._points.push([f.getTime(),0,(0,a.uid)()]),g();this._points.push(n[h]),h+=1}else l.DateHelper.isSameDay(f,v)?this._points.push(n[h]):this._points.push([f.getTime(),0,(0,a.uid)()]);else this._points.push([f.getTime(),0,(0,a.uid)()]);g()}for(var _=new Date,m=t.getMonth(),y=t.getDate(),b=0;b<this._points.length;b++)_.setTime(this._points[b][0]),(0===b||m===_.getMonth()&&y===_.getDate()&&b!==this._points.length-1)&&this._years.push({year:_.getFullYear(),startIndex:b});return this._points},e.prototype.paint=function(t,e){var i,n,o=this,a=this.config,u=a.days,d=a.months;switch(this.config.weekStart){case"saturday":i=-1;break;case"monday":i=1;break;default:i=0}switch(this.config.weekStart){case"saturday":n=s([null==u?void 0:u[6]],u.slice(0,-1),!0);break;case"monday":n=s(s([],u.slice(1),!0),[null==u?void 0:u[0]],!1);break;default:n=u}var h=[],f=[],p=0,v=0;this._years.forEach((function(t,e){for(var r,s=t.year,a=t.startIndex,u=new Date(s,0,1),f=[],g=[],_=0,m=1,y=a;y<o._points.length&&y!==(null===(r=o._years[e+1])||void 0===r?void 0:r.startIndex);y++){var b=o._points[y],w=b[0],x=b[1],E=b[2],C=new Date;C.setTime(w);var S=C.getMonth(),k=l.DateHelper.addDay(C,-1*i).getDay();0!==k||l.DateHelper.isSameDay(u,C)||(m+=1);var O=x>=0?x/o._maxValue||0:x/o._minValue||0;o._maxValue*o._minValue>0&&(O=(x-o._minValue)/(o._maxValue-o._minValue));var P=10+m*(o._cellSize+2),I=.5+(k+1)*(o._cellSize+2)+e*(n.length*o._cellSize+o._headerHeight);6===k&&(v=I+4*o._cellSize),f.push((0,c.sv)("rect",{x:P,y:I,fill:o.config.color,width:o._cellSize,height:o._cellSize,onclick:[o._handlers.onclick,x,E],onmousemove:[o._handlers.onmousemove,E,o.id],onmouseleave:[o._handlers.onmouseleave,E,o.id],class:o.config.color?"":"heat-neutral"},[]));var D="";if(x>=0&&!o.config.positiveColor?D="heat-positive":x<0&&!o.config.negativeColor&&(D="heat-negative"),0!==O&&f.push((0,c.sv)("rect",{x:P,y:I,fill:x>=0?o.config.positiveColor:o.config.negativeColor,"fill-opacity":isFinite(O)?O:0,width:o._cellSize,height:o._cellSize,onclick:[o._handlers.onclick,x,E],onmousemove:[o._handlers.onmousemove,E,o.id],onmouseleave:[o._handlers.onmouseleave,E,o.id],class:D},[])),_=P+o._cellSize,1===C.getDate()){var M=null==d?void 0:d[S],T=10+m*(o._cellSize+2),V=o._cellSize-2+e*(n.length*o._cellSize+o._headerHeight)+n.length*(o._cellSize+2)+4.5,H=(0,c.sv)("text",{x:T,y:V+8+12.5,class:"start-text"},[M]),j=(0,c.sv)("rect",{x:T,y:V,height:8,width:1});g.push((0,c.sv)("g",{class:"heat-month-text"},[j,H]))}}var F=n.map((function(t,i){return(0,c.sv)("text",{x:20,y:.5+(i+1)*(o._cellSize+2)+o._cellSize/2+e*(n.length*o._cellSize+o._headerHeight),class:"end-text heat-day-text"},[(0,c.sv)("tspan",{dy:"0.5ex"},[t])])})),R=(0,c.sv)("text",{x:10+o._cellSize+2,y:o._cellSize-4+e*(n.length*o._cellSize+o._headerHeight),class:"start-text heat-year-text"},[s]);h.push((0,c.sv)("g",{id:"".concat(s,"_year")},[R,g,F,f])),p=p>_?p:_}));f.push((0,c.sv)("defs",[])),f=f.concat(h);var g,_=e/v<1?e/v:1,m=(t-p*_)/2;return(0,c.sv)("g",r(r({id:"seria"+this.config.id},(g=this.config,{"aria-label":"chart ".concat(g.text||"")})),{tabindex:0,transform:"translate(".concat(m>0?m:0,", 26) scale(").concat(_,")")}),f)},e.prototype._setDefaults=function(t){this.config=r(r({},{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,d.locator)(t.value),this._dateLocator=(0,d.locator)(t.date)},e.prototype._defaultLocator=function(t){return[this._valueLocator(t),(0,l.getFormattedDate)("%d/%m/%y",this._dateLocator(t))]},e}(i(31).default);e.default=h},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Tooltip=void 0;var n=i(12),o=i(5),r=i(82),s=i(25),a=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="",i=this._chart.getRootView(),o=0,s=0,a=t;s<a.length;s++){var l=a[s];if(o+=l.top,this._prevLine=i&&i.refs&&i.refs["line"+Math.round(l.left)]&&i.refs["line"+Math.round(l.left)].el,this._prevLine.classList.add("grid-line__active"),l.text){var c=this._chart.getSeries(l.seriaId),u=c.getPoints();if(u.length&&c.config.tooltip){var d=c.config.pointColor||(c.config.color&&"none"!==c.config.color?c.config.color:c.config.fill),h=(0,r.getShadeHTMLHelper)("empty"!==c.config.pointType&&c.config.pointType?c.config.pointType:"simpleRect",d);e+='<div class="line-point" _ref="dhx_tooltip_'.concat(c.config.id,'_box">\n\t\t\t\t<svg class="dhx_tooltip_svg" role="graphics-document" style="width: 8px; height: 8px;">').concat(h(4,4,u[0][2]),'</svg>\n\t\t\t\t<span class="dhx_line-point-text" _ref="dhx_tooltip_').concat(c.config.id,'_text">').concat(l.text,"</span>\n\t\t\t</div>")}}}if(e){this._tooltip||this._createTooltip();var f=document.body.offsetHeight,p=document.body.offsetWidth;this._tooltip.innerHTML=e,this._tooltip.classList.add("dhx_chart_tooltip__visible");var v=o/t.length,g=this._prevLine.getBoundingClientRect(),_=this._tooltip.offsetHeight,m=this._tooltip.offsetWidth,y=v-_/2+g.top+window.scrollY,b=g.left+10;y+_>f&&(y-=y+_-f),b+m>p&&(b=g.left-m-10);var w=(0,n.getZIndex)(this._chart.getRootNode());w&&(this._tooltip.style.zIndex=w.toString()),this._tooltip.style.left=b+"px",this._tooltip.style.top=y+"px"}},t.prototype._showTooltip=function(t,e){this._tooltip||this._createTooltip();var i=document.body.offsetHeight,o=document.body.offsetWidth;this._tooltip.innerHTML=t,this._tooltip.classList.add("dhx_chart_tooltip__visible");var r=this._tooltip.offsetHeight,s=this._tooltip.offsetWidth,a=e.pageY+10,l=e.pageX+10;a+r>i&&(a=e.pageY-r),l+s>o&&(l=e.pageX-s-10);var c=(0,n.getZIndex)(this._chart.getRootNode());c&&(this._tooltip.style.zIndex=c.toString()),this._tooltip.style.left=l+"px",this._tooltip.style.top=a+"px"},t.prototype._showTooltipOnClosest=function(t){this._tooltip||this._createTooltip();var e=this._chart.getSeries(t[4]);if(e){var i=e.getTooltipText(t[3]);if(!i)return;var o=this._chart._layers.getSizes(),r=this._chart.getRootNode().getBoundingClientRect();this._tooltip.innerHTML=i,this._tooltip.classList.add("dhx_chart_tooltip__visible");var s=document.body.offsetHeight,a=this._tooltip.offsetHeight,l=t[2]+r.top+a/2+o.top-("radar"===this._chart.config.type?10:15);l+a>s&&(l=t[2]+r.top-a/2+o.top-("radar"===this._chart.config.type?10:15)),l+a>s&&this._tooltip.classList.remove("dhx_chart_tooltip__visible");var c=(0,n.getZIndex)(this._chart.getRootNode());c&&(this._tooltip.style.zIndex=c.toString()),this._tooltip.style.left=r.left+t[1]+10+"px",this._tooltip.style.top=l+"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(s.ChartEvents.chartMouseMove,(function(e,i){if(t._prevLine&&t._prevLine.classList.remove("grid-line__active"),!t._mouseOverBar){var n=[],o=[1/0,null,null,null,null];t._chart.eachSeries((function(t){var r=t.config.type;if("line"===r||"spline"===r||"splineArea"===r||"area"===r){var s=t.getClosestVertical(e),a={value:s[4],text:t.getTooltipText(s[3]),seriaId:t.config.id,left:s[1],top:s[2]};"number"==typeof a.left&&"number"==typeof a.top&&n.push(a)}else if("pie"===r||"pie3D"===r||"donut"===r||"radar"===r){var l=t.getClosest(e,i);o[0]>l[0]&&(o[0]=l[0],o[1]=l[1],o[2]=l[2],o[3]=l[3],o[4]=t.id)}})),n.length?(n.sort((function(t,e){return e.value-t.value})),t._showLineTooltip(n)):t._showTooltipOnClosest(o)}})),this._chart.events.on(s.ChartEvents.seriaMouseMove,(function(e,i,n){t._mouseOverBar=!0;var r=t._chart.getRootView(),s=t._chart.getSeries(i),a=s.getTooltipText(e),l=r&&r.refs&&r.refs[(0,o.calcPointRef)(e,i)].el;null==l||l.setAttribute("fill-opacity",s.config.alpha>.6?s.config.alpha-.4:1),a?t._showTooltip(a,n):t._tooltip&&t._tooltip.classList.remove("dhx_chart_tooltip__visible")})),this._chart.events.on(s.ChartEvents.seriaMouseLeave,(function(e,i){t._mouseOverBar=!1;var n=t._chart.getRootView(),r=t._chart.getSeries(i);if("area"!==r.config.type&&"treeMap"!==r.config.type&&"calendarHeatMap"!==r.config.type){var s=n&&n.refs&&n.refs[(0,o.calcPointRef)(e,i)].el;null==s||s.setAttribute("fill-opacity",r.config.alpha)}t._tooltip&&t._tooltip.classList.remove("dhx_chart_tooltip__visible")})),this._chart.events.on(s.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=a},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Exporter=void 0;var o=i(3),r=function(){function t(t,e){this._name=t,this._view=e,this._version="8.4.5"}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,i){var r;if(void 0===t&&(t={}),t.url=t.url||"https://export.dhtmlx.com/"+this._name+"/"+e+"/"+this._version,"pdf"===e){var s=t.pdf||{};t.pdf=n(n({},s),{printBackground:!1})}var a="",l=i.config.exportStyles;("boolean"==typeof t.exportStyles||Array.isArray(t.exportStyles))&&(l=t.exportStyles),!0===l?a="".concat((0,o.getPageLinksCss)(),"<style>").concat((0,o.getPageInlineCss)(),"</style>"):(null==l?void 0:l.length)&&(a="".concat((0,o.getPageLinksCss)(l)));var c=document.createElement("div");c.setAttribute("style","display: none;");var u=i.getRootView().node.el.cloneNode(!0);u.setAttribute("data-dhx-theme",t.theme||"light"),c.appendChild(u);var d="\n\t\t\t".concat(a,"\n\t\t\t").concat(c.innerHTML,"\n\t\t"),h=document.createElement("form");h.setAttribute("method","POST"),h.setAttribute("action",t.url),h.innerHTML='<input type="hidden" name="raw"><input type="hidden" name="config">',h.childNodes[0].value=d,h.childNodes[1].value=JSON.stringify(t),document.body.appendChild(h),h.submit(),null===(r=c.parentNode)||void 0===r||r.removeChild(c),setTimeout((function(){var t;null===(t=h.parentNode)||void 0===t||t.removeChild(h)}),100)},t}();e.Exporter=r},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ProChart=void 0;var s=i(85),a=i(80),l=i(1),c=i(5),u=i(78),d=function(t){function e(e,i){return void 0===i&&(i={}),t.call(this,e,i)||this}return o(e,t),e.prototype.setConfig=function(t){var e,i,n,o,d,h,f=this;if(this.config=t,this._layers.clear(),this._series={},this._scales={},t.scales)for(var p in t.scales){var v=r({},t.scales[p]);void 0!==t.scales[p].min&&(h=t.scales[p].min),v.type=v.type||this._detectScaleType(v,p),t.scales.radial&&"radial"!==p&&(v.hidden=!0),this._setScale(v,p)}var g=new s.default;if(this._layers.add(g),null===(e=t.series)||void 0===e||e.forEach((function(e,i){var n,o,s,u;void 0!==e.baseLine&&e.baseLine<h&&(e.baseLine=void 0);var d=r({},e);switch(d.type=d.type||t.type,d.type){case"bar":case"xbar":case"area":case"splineArea":d.color||(d.color=d.fill||(0,c.getDefaultColor)(i)),d.fill||(d.fill=d.color||(0,c.getDefaultColor)(i));break;case"treeMap":d.legendType=(null===(n=t.legend)||void 0===n?void 0:n.type)||"groupName",null===(s=null===(o=t.legend)||void 0===o?void 0:o.treeSeries)||void 0===s||s.map((function(t,e){var i,n;t.active=null===(i=t.active)||void 0===i||i,t.id=null!==(n=t.id)&&void 0!==n?n:(0,l.uid)(),t.color||(t.color=(0,c.getDefaultColor)(e,"range"===d.legendType))})),d.treeSeries=null===(u=t.legend)||void 0===u?void 0:u.treeSeries;break;case"calendarHeatMap":d.dateFormat||(d.dateFormat="%d/%m/%y");break;case"scatter":d.pointColor||(d.pointColor=d.color||(0,c.getDefaultColor)(i))}var p=a.default[d.type];(d.barWidth||f.config.barWidth)&&(d.barWidth=d.barWidth||f.config.barWidth);var v=new p(f.data,d,f.events),_=(0,c.getScales)(t.scales);(_.length>1&&"radial"!==_[0]||"radial"===_[0]?_:["bottom","left"]).forEach((function(t){var e=f._scales[t];e&&(v.addScale(t,e),d.stacked?e.add(g):e.add(v))})),f._series[v.id]=v,d.stacked?g.add(v):f._layers.add(v)})),t.legend){var _=r({},t.legend);if(_.series&&(_.$seriesInfo=_.series.map((function(t){return f._series[t]}))),"calendarHeatMap"===this.config.type){var m=null===(n=null===(i=this.config)||void 0===i?void 0:i.series)||void 0===n?void 0:n[0],y=m.value,b=m.positiveColor,w=m.negativeColor,x=m.color,E=m.minValue,C=m.maxValue;if(_.type="scale",_.form="line",_.values){var S=null===(d=null===(o=this.config)||void 0===o?void 0:o.series)||void 0===d?void 0:d[0],k=S.color,O=S.value;_.values=r(r({},_.values),{color:k,positiveColor:b,negativeColor:w,value:O,minValue:E,maxValue:C})}else _.values={positiveColor:b,negativeColor:w,color:x,text:"",value:y,minValue:E,maxValue:C}}var P=new u.Legend(this.data,_,this.events);this._layers.add(P)}this.paint()},e}(i(77).Chart);e.ProChart=d},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KEY_CODES=void 0,e.KEY_CODES={BACKSPACE:8,ENTER:13,ESC:27,DOWN_ARROW:40,UP_ARROW:38,LEFT_ARROW:37,RIGHT_ARROW:39}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeyListener=void 0;var n=function(){function t(){var t=this;this._handler=function(e){if(t._isActive){var i=e.key;"Backspace"===i&&t._sequence.length>0&&(t._sequence=t._sequence.slice(0,t._sequence.length-1),t._change()),i.length<2&&(t._sequence+=i,t._change())}},this._sequence="",document.addEventListener("keydown",this._handler)}return t.prototype.startNewListen=function(t){this._isActive=!0,this._sequence="",this._currentAction=t},t.prototype.endListen=function(){this._currentAction=null,this.reset(),this._isActive=!1},t.prototype.reset=function(){this._sequence=""},t.prototype.destructor=function(){document.removeEventListener("keydown",this._handler)},t.prototype._change=function(){this._currentAction(this._sequence),this._addClearTimeout()},t.prototype._addClearTimeout=function(){var t=this;this._clearTimeout&&clearTimeout(this._clearTimeout),this._clearTimeout=setTimeout((function(){t.reset(),t._clearTimeout=null}),2e3)},t}();e.KeyListener=n},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.ProCombobox=void 0;var r=i(86),s=i(37),a=i(11),l=i(87),c=function(t){function e(e,i){return t.call(this,e,i)||this}return o(e,t),e.prototype._createLayout=function(){var t=this.list=new s.ProList(null,{$template:r.$template,template:this.config.template,htmlEnable:this.config.htmlEnable,virtual:this.config.virtual,keyNavigation:!0,multiselection:this.config.multiselection,itemHeight:this.config.itemHeight,height:this.config.listHeight,data:this.data,eventHandlers:this.config.eventHandlers}),e=this._layout=new a.ProLayout(this.popup.getContainer(),{css:"dhx_combobox-options dhx_combobox__options",rows:[{id:"select-unselect-all",hidden:!this.config.multiselection||!this.config.selectAllButton},{id:"list",height:"content"},{id:"not-found",hidden:!0}],on:{click:{".dhx_combobox__action-select-all":this._handlers.selectAll,".dhx_combobox-options__action-create-option":this._handlers.addOption}}});e.getCell("list").attach(t),this.config.multiselection&&this.config.selectAllButton&&e.getCell("select-unselect-all").attach(l.selectAllView)},e}(r.Combobox);e.ProCombobox=c},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(89),e),o(i(193),e),o(i(90),e)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEditor=void 0;var n=i(192);e.getEditor=function(t,e){return new n.InputEditor(t,e)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InputEditor=void 0;var n=i(0),o=i(90),r=function(){function t(t,e){var i=this;this._dataView=e,this._config=e.config,this._item=t,this._dataView.events.on(o.DataViewEvents.focusChange,(function(t,e){i._mode&&e!==i._item.id&&i.endEdit()})),this._initHandlers()}return t.prototype.endEdit=function(){if(this._input){var t=this._input.value;this._dataView.events.fire(o.DataViewEvents.beforeEditEnd,[t,this._item.id])?(this._input.removeEventListener("blur",this._handlers.onBlur),this._input.removeEventListener("change",this._handlers.onChange),this._input.removeEventListener("keydown",this._handlers.onKeyDown),this._handlers={},this._mode=!1,this._dataView.events.fire(o.DataViewEvents.afterEditEnd,[t,this._item.id])):this._input.focus()}},t.prototype.toHTML=function(t){this._mode=!0;var e=this._config,i=e.itemsInRow,o=e.gap,r=function(t){return parseFloat(t)};return(0,n.el)(".dhx_input__wrapper",{style:{width:"calc(".concat(100/i,"% - ").concat(r(o)," * ").concat((i-1)/i,"px)"),maxWidth:"calc(".concat(100/i,"% - ").concat(r(o)," * ").concat((i-1)/i,"px)"),marginRight:t?"":o},role:"presentation"},[(0,n.el)("div.dhx_input__container",{style:{height:"100%"},role:"presentation"},[(0,n.el)("input.dhx_input",{class:(this._item.css?" "+this._item.css:"")+(t?" dhx_dataview-item--last-item-in-row":""),style:{padding:"8px, 12px",width:"100%",height:"100%"},_hooks:{didInsert:this._handlers.didInsert},_key:this._item.id,"data-dhx-id":this._item.id})])])},t.prototype._initHandlers=function(){var t=this;this._handlers={onBlur:function(){t.endEdit()},onChange:function(){t.endEdit()},onKeyDown:function(e){"Enter"===e.key&&t._item.value===t._input.value&&t.endEdit(),"Escape"===e.key&&(t._input.value=t._item.value,t.endEdit())},didInsert:function(e){var i=e.el;t._input=i,i.focus(),i.value=t._item.value,i.setSelectionRange(0,i.value.length),i.addEventListener("change",t._handlers.onChange),i.addEventListener("blur",t._handlers.onBlur),i.addEventListener("keydown",t._handlers.onKeyDown)}}},t}();e.InputEditor=r},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ProDataView=void 0;var s=i(19),a=i(89),l=i(0),c=function(t){function e(e,i){void 0===i&&(i={});var n=t.call(this,e,i)||this;return n.scrollView=new s.ScrollView((function(){return n.getRootView()})),n.paint(),n}return o(e,t),e.prototype.destructor=function(){t.prototype.destructor.call(this),this.scrollView=null},e.prototype.scrollTo=function(t){var e,i,n=this.getRootView();if(n&&n.node&&n.node.el&&void 0!==t){var o=(null===(e=this.scrollView)||void 0===e?void 0:e.config.enable)?null===(i=this.getRootNode())||void 0===i?void 0:i.querySelector(".scroll-view"):this.getRootNode();this._scrollTo(t,o)}},e.prototype._renderList=function(){var t=this,e=this.data.getRawData(0,-1),i=this.config,n=i.itemsInRow,o=i.css,s=i.gap,a=0,c=e.reduce((function(e,i,o){return 0===a&&e.push([]),e[e.length-1].push(t._renderItem(i,o)),a=(a+1)%n,e}),[]),u=c.map((function(t,e){return(0,l.el)(".dhx_dataview-row",{style:{margin:s},"aria-label":"Row ".concat(e+1)},t)})),d=this.scrollView&&this.scrollView.config.enable,h=(o||"")+" dhx_widget dhx_dataview"+(this.config.multiselection&&this.selection.getItem()?" dhx_no-select--pointer":"")+(d?" dhx_dataview--scroll-view":"");return(0,l.el)("",r(r(r({},this._handlers),{"data-dhx-widget-id":this._uid,class:h,style:{height:this.config.height}}),this.getDataViewAriaAttrs(this.config,this.data.getLength(),c.length,n)),d?[this.scrollView.render(u)]:u)},e}(a.DataView);e.ProDataView=c},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(91),e),o(i(211),e),o(i(4),e)},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.DatePicker=void 0;var s=i(36),a=i(15),l=i(2),c=i(0),u=i(1),d=i(10),h=i(13),f=i(4),p=i(6),v=i(14),g=function(t){function e(e,i){var n=t.call(this,null,i)||this;n.events=new l.EventSystem,n._popupIsFocus=!1,n._propsItem=["required","validation","valueFormat","icon","placeholder","editable","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage"],n._propsCalendar=["mode","mark","disabledDates","weekStart","weekNumbers","timePicker","dateFormat","timeFormat","thisMonthOnly"],n._props=r(r(r([],p.baseProps,!0),n._propsItem,!0),n._propsCalendar,!0),n._keyManager=new v.KeyManager((function(){var t,e,i,o=document.activeElement;return(null===(i=null===(e=null===(t=n.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.input)||void 0===i?void 0:i.el)===o||n._popup.isVisible()})),n._initView(i),n._initHandlers(),n._initHotkeys();return n.mount(e,(0,c.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype.destructor=function(){this._popup&&this._popup.destructor(),this._keyManager&&this._keyManager.destructor(),this.calendar&&this.calendar.destructor(),this.events&&this.events.clear(),this.events=this._uid=this._propsCalendar=this._propsItem=this._props=this._keyManager=null,t.prototype._destructor.call(this)},e.prototype.setProperties=function(t){if(t&&!(0,u.isEmptyObj)(t)&&this.events.fire(f.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e],this._propsCalendar.includes(e)&&(this.calendar.config[e]=t[e]));this.events.fire(f.ItemEvent.afterChangeProperties,[this.getProperties()]),this.calendar.paint(),this.paint()}},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype.show=function(){var t=this.config,e=t.value;t.hidden&&this.events.fire(f.ItemEvent.beforeShow,[e])&&(this.config.hidden=!1,this.events.fire(f.ItemEvent.afterShow,[e]))},e.prototype.hide=function(t){var e=this.config,i=e.value;e.hidden&&!t||!this.events.fire(f.ItemEvent.beforeHide,[i,t])||(this.config.hidden=!0,this.events.fire(f.ItemEvent.afterHide,[i,t]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype.disable=function(){this.config.disabled=!0,this.paint()},e.prototype.enable=function(){var t;this.config.disabled=!1,(null===(t=this.parent)||void 0===t?void 0:t.isDisabled())&&this.parent.enable(),this.paint()},e.prototype.isDisabled=function(){return!!this.config.disabled},e.prototype.validate=function(t){var e;void 0===t&&(t=!1);for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];var o=i.length?i[0]:this.getValue(),r="date"===(null===(e=this.config.valueFormat)||void 0===e?void 0:e.toLowerCase())?o instanceof Date:(0,a.stringToDate)(o,this.calendar.config.dateFormat,!0);if(!t&&!this.events.fire(f.ItemEvent.beforeValidate,[o]))return!1;var s=!0;return(this.config.required||i.length)&&(s=!!r),"function"==typeof this.config.validation&&(s=this.config.validation(o)),t||(this.setValidationStatus(s?"success":"error"),this.events.fire(f.ItemEvent.afterValidate,[o,s]),this.paint()),s},e.prototype.clearValidate=function(){this.setValidationStatus(),this.paint()},e.prototype.setValue=function(t){void 0!==t&&t!==this.config.value&&this.calendar.setValue(t)},e.prototype.getValue=function(t){var e;return this.calendar.getValue("date"===(null===(e=this.config.valueFormat)||void 0===e?void 0:e.toLowerCase())||t)||""},e.prototype.focus=function(){var t=this;(0,c.awaitRedraw)().then((function(){t.getRootView().refs.input.el.focus()}))},e.prototype.blur=function(){var t=this;(0,c.awaitRedraw)().then((function(){t._popup.hide(),t.getRootView().refs.input.el.blur()}))},e.prototype.clear=function(){""!==this.config.value&&this.calendar.clear()},e.prototype.getWidget=function(){return this.calendar},e.prototype._initView=function(t){if((0,u.isEmptyObj)(t))throw new Error("Check the configuration is correct");for(var e in this.calendar&&this.calendar.destructor(),this._popup&&this._popup.destructor(),this.config={type:t.type,id:t.id,name:t.name,disabled:!1,editable:!1,hidden:!1,value:"",mode:"calendar",weekStart:"sunday",weekNumbers:!1,timePicker:!1,dateFormat:"%d/%m/%y",timeFormat:24,thisMonthOnly:!1,valueFormat:"string",required:!1,icon:"",placeholder:"",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t)"id"!==e&&"type"!==e&&"name"!==e&&(this.config[e]=t[e]);this._popup=new h.Popup,this.calendar=new s.Calendar(null,(0,p.widgetConfig)(t)),this._popup.attach(this.calendar)},e.prototype._initHandlers=function(){var t=this;this.calendar.events.on(s.CalendarEvents.beforeChange,(function(e){var i;return""!==e&&"date"!==(null===(i=t.config.valueFormat)||void 0===i?void 0:i.toLowerCase())&&(e=(0,a.getFormattedDate)(t.calendar.config.dateFormat,e)),t.events.fire(f.ItemEvent.beforeChange,[e])})),this.calendar.events.on(s.CalendarEvents.change,(function(e,i,n,o){var r;t.config.value=t.calendar.getValue("date"===(null===(r=t.config.valueFormat)||void 0===r?void 0:r.toLowerCase())),t.events.fire(f.ItemEvent.change,[t.config.value]),(0,p.isVerify)(t.config)&&("clear"===o?t.setValidationStatus(t.validate(!0)?"success":"error"):t.validate()),t._popup.hide(),t.paint()})),this.events.on(f.ItemEvent.blur,(function(){t._popupIsFocus=!1,t.paint()})),this._popup.events.on(h.PopupEvents.afterHide,(function(){document.activeElement!==t.getRootView().refs.input.el&&t.events.fire(f.ItemEvent.blur,[t.getValue()]),t.paint()}))},e.prototype._getHandlers=function(){var t=this;return{onblur:function(){t._popup.isVisible()||t.events.fire(f.ItemEvent.blur,[t.getValue()]),t.paint()},onfocus:function(){if(!t._popup.isVisible()){var e=t.getRootView().refs.input.el;t._popup.show(e,{theme:e}),t.events.fire(f.ItemEvent.focus,[t.getValue()]),t.paint()}},oninput:function(e){var i=e.target.value;t.events.fire(f.ItemEvent.input,[i])},onchange:function(e){var i=e.target.value;t.config.editable&&(0,a.stringToDate)(i,t.calendar.config.dateFormat,!0)?t.setValue(i):""===i&&t.clear()},onkeydown:function(e){var i,n,o,r=document.activeElement;((null===(o=null===(n=null===(i=t.getRootView())||void 0===i?void 0:i.refs)||void 0===n?void 0:n.input)||void 0===o?void 0:o.el)===r||t._popup.isVisible())&&t.events.fire(f.ItemEvent.keydown,[e])},onmousedown:function(){t._popup.getContainer()!==document.activeElement&&(t._popupIsFocus=!1)}}},e.prototype._initHotkeys=function(){var t=this,e={"shift+tab":function(){t._applyTab()},tab:function(){t._applyTab()},escape:function(){t._popup.isVisible()&&t.getRootView().refs.input.el.focus(),t._popup.hide()},enter:function(e){if(e.preventDefault(),!t._popup.isVisible()){var i=t.getRootView().refs.input.el;t._popup.show(i,{theme:i})}},arrowRight:function(e){var i=t._popup.getContainer();t._popup.isVisible()&&!t._popupIsFocus&&(e.preventDefault(),i.focus(),t._popupIsFocus=!0)}};for(var i in e)this._keyManager.addHotKey(i,e[i])},e.prototype._draw=function(){var t,e,i,n=this.config,o=n.icon,r=n.required,s=n.disabled,a=n.placeholder,l=n.name,u=n.id,d=n.editable,h=n.label,f=n.helpMessage,v=this.calendar.getValue(),g=this._popup.isVisible()||(null===(i=null===(e=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.input)||void 0===i?void 0:i.el)===document.activeElement;return(0,c.el)("div.dhx_form-group",{class:(0,p.getFormItemCss)(this.config,(0,p.isVerify)(this.config),g)},[this._drawLabel(),(0,c.el)(".dhx_input__wrapper",[(0,c.el)("div.dhx_input__container",{},[(0,c.el)(".dhx_input__icon",{class:o||"dxi dxi-calendar-today"}),(0,c.el)("input.dhx_input.dhx_input--icon-padding",{tabindex:0,"data-dhx-id":l||u,_key:this._uid,_ref:"input",value:v,type:"text",required:r,disabled:s,class:g&&"dhx_input--focus",placeholder:a||"",name:l||"",id:u||this._uid,onfocus:this._handlers.onfocus,oninput:this._handlers.oninput,onchange:this._handlers.onchange,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,onmousedown:this._handlers.onmousedown,autocomplete:"off",readOnly:!d,"aria-label":h||"".concat(d?"type or":""," select date"),"aria-describedby":f?"dhx_label__help_".concat(u||this._uid):null})]),(0,p.getValidationMessage)(this.config)&&(0,c.el)("span.dhx_input__caption",{},(0,p.getValidationMessage)(this.config))])])},e.prototype._applyTab=function(){var t,e,i;document.activeElement===(null===(i=null===(e=null===(t=this._popup.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.content)||void 0===i?void 0:i.el)||this._popupIsFocus||this._popup.hide()},e}(d.Label);e.DatePicker=g},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Button=void 0;var a=i(0),l=i(9),c=i(4),u=i(2),d=i(1),h=i(6),f=function(t){function e(e,i){var n=t.call(this,e,r({disabled:!1,hidden:!1,submit:!1,full:!1,circle:!1,loading:!1,view:"flat",size:"medium",color:"primary",height:"content",url:"",text:"",icon:""},i))||this;n._propsItem=["submit","url","text","icon","view","size","color","full","circle","loading"],n._props=s(s([],h.baseProps,!0),n._propsItem,!0),n.config.text=n.config.text||n.config.value||"",n.events=new u.EventSystem,n._handlers={onclick:function(t){return n.events.fire(c.ItemEvent.click,[t])},onblur:function(){return n.events.fire(c.ItemEvent.blur,[n.config.text])},onfocus:function(){return n.events.fire(c.ItemEvent.focus,[n.config.text])},onkeydown:function(t){return n.events.fire(c.ItemEvent.keydown,[t])}};return n.mount(e,(0,a.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype.destructor=function(){this.events&&this.events.clear(),this.config=this._propsItem=this._props=this.events=this._handlers=this._uid=null,this.unmount()},e.prototype.setProperties=function(t){if(t&&!(0,d.isEmptyObj)(t)&&this.events.fire(c.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.config.text=this.config.text||this.config.value,this.events.fire(c.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype.show=function(){var t=this.config,e=t.text,i=void 0===e?"":e;t.hidden&&this.events.fire(c.ItemEvent.beforeShow,[i])&&(this.config.hidden=!1,this.events.fire(c.ItemEvent.afterShow,[i]))},e.prototype.hide=function(t){void 0===t&&(t=!1);var e=this.config,i=e.text,n=void 0===i?"":i;e.hidden&&!t||!this.events.fire(c.ItemEvent.beforeHide,[n,t])||(this.config.hidden=!0,this.events.fire(c.ItemEvent.afterHide,[n,t]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype.disable=function(){this.config.disabled=!0,this.paint()},e.prototype.enable=function(){var t;this.config.disabled=!1,(null===(t=this.parent)||void 0===t?void 0:t.isDisabled())&&this.parent.enable(),this.paint()},e.prototype.isDisabled=function(){return!!this.config.disabled},e.prototype.focus=function(){var t=this;(0,a.awaitRedraw)().then((function(){t.getRootView().refs.button.el.focus()}))},e.prototype.blur=function(){var t=this;(0,a.awaitRedraw)().then((function(){t.getRootView().refs.button.el.blur()}))},e.prototype._draw=function(){var t=this.config,e=t.color,i=t.size,n=t.view,o=t.loading,r=t.circle,s=t.icon,l=t.text,c=t.disabled,u=t.submit,d=t.id,h=t.name,f=t.full,p={danger:" dhx_button--color_danger",secondary:" dhx_button--color_secondary",primary:" dhx_button--color_primary",success:" dhx_button--color_success"}[e]||" dhx_button--color_primary",v={small:" dhx_button--size_small",medium:" dhx_button--size_medium"}[i]||" dhx_button--size_medium",g={flat:" dhx_button--view_flat",link:" dhx_button--view_link"}[n]||" dhx_button--view_flat",_=f?" dhx_button--width_full":"",m=r?" dhx_button--circle":"",y=o?" dhx_button--loading":"",b=s&&!l?" dhx_button--icon":"";return(0,a.el)("button",{disabled:c,id:d,"data-dhx-id":h||d,onclick:this._handlers.onclick,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,type:u?"submit":"button",class:"dhx_button "+p+v+g+m+_+y+b,_ref:"button"},[s&&(0,a.el)("span.dhx_button__icon",{class:s}),l&&(0,a.el)("span.dhx_button__text",l),o&&(0,a.el)("span.dhx_button__loading",[(0,a.el)("span.dhx_button__loading-icon.dxi.dxi-loading")])])},e}(l.View);e.Button=f},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.CheckboxGroup=void 0;var a=i(0),l=i(11),c=i(2),u=i(92),d=i(10),h=i(4),f=i(1),p=i(6),v=i(13),g=function(t){function e(e,i){var n=t.call(this,null,i)||this;n.events=new c.EventSystem,n._buttons=[],n._propsItem=["required","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage","options"],n._props=s(s([],p.baseProps,!0),n._propsItem,!0),n._initView(i),n._initHandlers();return n.mount(e,(0,a.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype.destructor=function(){this.events&&this.events.clear(),this.layout&&this.layout.destructor(),this.events=this._uid=this._propsItem=this._props=this._buttons=null,t.prototype._destructor.call(this),this.unmount()},e.prototype.setProperties=function(t,e){if(void 0!==t&&this.events.fire(h.ItemEvent.beforeChangeProperties,[this.getProperties()])){if("object"==typeof t&&!(0,f.isEmptyObj)(t)){for(var i in t)this._props.includes(i)&&(this.config[i]=t[i]);t.hasOwnProperty("options")&&(this._initView(this.config),this._initHandlers())}if("string"==typeof t&&e&&!(0,f.isEmptyObj)(e)){var n=this._buttons.find((function(e){return e.config.id===t}));n&&n.setProperties(e,!0)}this.events.fire(h.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},e.prototype.getProperties=function(t){if(void 0===t){var e={};for(var i in this.config)this._props.includes(i)&&(e[i]=this.config[i]);return e}return this._buttons.find((function(e){return e.config.id===t})).getProperties()},e.prototype.getValue=function(t){if(void 0===t){var e={};return this._buttons.forEach((function(t){e[t.config.id]=t.getValue()})),e}var i=this._buttons.find((function(e){return e.config.id===t}));if(t&&i)return i.getValue()},e.prototype.setValue=function(t){if(void 0!==t&&!(0,f.isEmptyObj)(t)){for(var e=this.getValue(),i=r({},e),n=function(t,e){var n=o._buttons.find((function(e){return e.config.id===t}));if(n){var r=n.config.value;i[t]="string"==typeof r?e&&r||"":!!e}},o=this,s=0,a=Object.entries(t);s<a.length;s++){var l=a[s];n(l[0],l[1])}if(!(0,f.compare)(e,i)&&this.events.fire(h.ItemEvent.beforeChange,[i])){for(var c=function(t,e){var i=u._buttons.find((function(e){return e.config.id===t}));i&&i.setValue(!!e,!0)},u=this,d=0,v=Object.entries(t);d<v.length;d++){var g=v[d];c(g[0],g[1])}this.events.fire(h.ItemEvent.change,[this.getValue()]),(0,p.isVerify)(this.config)&&this.validate()}}},e.prototype.isChecked=function(t){if(void 0===t){var e={};return this._buttons.forEach((function(t){e[t.config.id]=t.isChecked()})),e}var i=this._buttons.find((function(e){return e.config.id===t}));if(t&&i)return i.isChecked()},e.prototype.focus=function(t){var e=this;(0,a.awaitRedraw)().then((function(){if(e._buttons.length){if(!t)return e._buttons[0].focus();var i=e._buttons.find((function(e){return e.config.id===t}));i&&i.focus()}}))},e.prototype.blur=function(){var t=this;(0,a.awaitRedraw)().then((function(){t._buttons.length&&t._buttons.forEach((function(t){t.blur()}))}))},e.prototype.show=function(t){var e,i=t&&this._buttons.find((function(e){return e.config.id===t}));(0,f.isDefined)(t)&&!i||(!i&&(this.config.hidden||this._buttons.some((function(t){return t.config.hidden})))||(null===(e=null==i?void 0:i.config)||void 0===e?void 0:e.hidden))&&this.events.fire(h.ItemEvent.beforeShow,[this.getValue(),t])&&(i?null==i||i.show():this._buttons.forEach((function(t){return t.show()})),this.config.hidden=!1,this.events.fire(h.ItemEvent.afterShow,[this.getValue(),t]))},e.prototype.hide=function(t,e){var i,n=t&&this._buttons.find((function(e){return e.config.id===t}));(0,f.isDefined)(t)&&!n||((!n&&this.config.hidden||(null===(i=null==n?void 0:n.config)||void 0===i?void 0:i.hidden))&&!e||!this.events.fire(h.ItemEvent.beforeHide,[this.getValue(),t,e])||(n?(null==n||n.hide(),this.config.hidden=this._buttons.every((function(t){return t.config.hidden}))):(this._buttons.forEach((function(t){return t.hide()})),this.config.hidden=!0),this.events.fire(h.ItemEvent.afterHide,[this.getValue(),t,e])))},e.prototype.isVisible=function(t){var e,i=this._buttons.find((function(e){return e.config.id===t}));return!(this.config.hidden||(0,f.isDefined)(t)&&(null===(e=null==i?void 0:i.config)||void 0===e?void 0:e.hidden))},e.prototype.enable=function(t){var e,i,n=t&&this._buttons.find((function(e){return e.config.id===t}));(0,f.isDefined)(t)&&!n||(!n&&(this.config.disabled||this._buttons.some((function(t){return t.config.disabled})))||(null===(e=null==n?void 0:n.config)||void 0===e?void 0:e.disabled))&&(n?null==n||n.enable():this._buttons.forEach((function(t){return t.enable()})),this.config.disabled=!1,(null===(i=this.parent)||void 0===i?void 0:i.isDisabled())&&this.parent.enable(),this.paint())},e.prototype.disable=function(t,e){var i,n=t&&this._buttons.find((function(e){return e.config.id===t}));(0,f.isDefined)(t)&&!n||((!n&&this.config.disabled||(null===(i=null==n?void 0:n.config)||void 0===i?void 0:i.disabled))&&!e||(n?(null==n||n.disable(),this.config.disabled=this._buttons.every((function(t){return t.config.disabled}))):(this._buttons.forEach((function(t){return t.disable()})),this.config.disabled=!0),this.paint()))},e.prototype.isDisabled=function(t){var e,i=this._buttons.find((function(e){return e.config.id===t}));return Boolean(this.config.disabled||(0,f.isDefined)(t)&&(null===(e=null==i?void 0:i.config)||void 0===e?void 0:e.disabled))},e.prototype.clear=function(){if(this._buttons.some((function(t){return t.isChecked()}))){var t={};if(this._buttons.forEach((function(e){t[e.config.id]="string"==typeof e.config.value&&""})),!this.events.fire(h.ItemEvent.beforeChange,[t]))return;this._buttons.forEach((function(t){t.clear(!0)})),this.events.fire(h.ItemEvent.change,[t]),(0,p.isVerify)(this.config)&&this.setValidationStatus(this.validate(!0)?"success":"error")}},e.prototype.validate=function(t){void 0===t&&(t=!1);var e=this.getValue();if(!t&&!this.events.fire(h.ItemEvent.beforeValidate,[e]))return!1;var i=!0;return this.config.required&&(i=this._buttons.some((function(t){return t.config.$required&&!!t.config.checked}))),t||(this._buttons.forEach((function(t){t.setValidationStatus(i?"success":"error")})),this.setValidationStatus(i?"success":"error"),this.events.fire(h.ItemEvent.afterValidate,[e,i]),this.paint()),i},e.prototype.clearValidate=function(){this.setValidationStatus(),this._buttons.forEach((function(t){t.clearValidate()})),this.paint()},e.prototype._initView=function(t){var e=this;if((0,f.isEmptyObj)(t)||!t.options||(0,f.isEmptyObj)(t.options))throw new Error("Check the configuration is correct");for(var i in this.layout&&this.layout.destructor(),this._buttons.length&&(this._buttons.forEach((function(t){t.destructor()})),this._buttons=[]),this.config={type:t.type,id:t.id,name:t.name,disabled:!1,hidden:!1,options:{},required:!1,label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t)"id"!==i&&"type"!==i&&"name"!==i&&(this.config[i]=t[i]);this.config.helpMessage&&(this._helper=new v.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"}),this._helper.attachHTML(this.config.helpMessage));var n=this.config.options.rows||this.config.options.cols;null==n||n.forEach((function(t){t.id=t.id||(0,f.uid)(),t.$group=!0})),this.layout=new l.Layout(null,this.config.options),null==n||n.forEach((function(i){var n=new u.Checkbox(null,r(r({},i),{disabled:t.disabled||i.disabled,name:t.name,$required:t.required}));e._buttons.push(n),e.layout.getCell(i.id).attach(n),n.events.on(h.ItemEvent.beforeChange,(function(t){var i,o=r(r({},e.getValue()),((i={})[n.config.id]=t,i));return e.events.fire(h.ItemEvent.beforeChange,[o])})),n.events.on(h.ItemEvent.change,(function(){e.events.fire(h.ItemEvent.change,[e.getValue()]),(0,p.isVerify)(e.config)&&e.validate()})),n.events.on(h.ItemEvent.focus,(function(t,i){e.events.fire(h.ItemEvent.focus,[e.getValue(),i])})),n.events.on(h.ItemEvent.blur,(function(t,i){e.events.fire(h.ItemEvent.blur,[e.getValue(),i])})),n.events.on(h.ItemEvent.keydown,(function(t,i){e.events.fire(h.ItemEvent.keydown,[t,i])})),n.events.on(h.ItemEvent.afterHide,(function(){(0,a.awaitRedraw)().then((function(){var t;null===(t=e.layout.getCell(n.config.id))||void 0===t||t.hide()}))})),n.events.on(h.ItemEvent.afterShow,(function(){var t;null===(t=e.layout.getCell(n.config.id))||void 0===t||t.show()}))})),this.config.value&&this.setValue(this.config.value),this.clearValidate(),!this.config.disabled&&this._buttons.length&&this._buttons.every((function(t){return t.config.disabled}))&&(this.config.disabled=!0)},e.prototype._initHandlers=function(){var t=this;this.events.on(h.ItemEvent.change,(function(){t.config.value=t.getValue(),t.paint()}))},e.prototype._draw=function(){var t=this.config.hidden?" dhx_form-group--hidden":"",e=this.config,i=e.label,n=e.labelWidth,o=e.helpMessage,r=e.required,s=e.name,l=e.id;return(0,a.el)("fieldset.dhx_form-group-fieldset",{},[(0,a.el)("div.dhx_form-group.dhx_form-group--checkbox-group",{class:(0,p.getFormItemCss)(this.config,(0,p.isVerify)(this.config))+t,"data-dhx-id":s||l,role:"radiogroup",_key:l||this._uid},[i||n||o||r?this._drawLabel():null,(0,a.el)("div.dhx_checkbox-group--container",{},[this.layout&&(0,a.inject)(this.layout.getRootView()),r&&(0,p.getValidationMessage)(this.config)&&(0,a.el)("span.dhx_input__caption",(0,p.getValidationMessage)(this.config))])])])},e}(d.Label);e.CheckboxGroup=g},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.RadioGroup=void 0;var a=i(0),l=i(1),c=i(11),u=i(13),d=i(2),h=i(199),f=i(6),p=i(10),v=i(4),g=function(t){function e(e,i){var n=t.call(this,null,i)||this;n.events=new d.EventSystem,n._buttons=[],n._propsItem=["required","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage","options"],n._props=s(s([],f.baseProps,!0),n._propsItem,!0),n._initView(i),n._initHandlers(),n.config.value&&n._setValue(n.config.value),n.clearValidate(),n.config.helpMessage&&(n._helper=new u.Popup({css:"dhx_tooltip dhx_tooltip--forced dhx_tooltip--light"}),n._helper.attachHTML(n.config.helpMessage));return n.mount(e,(0,a.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype.destructor=function(){this.events&&this.events.clear(),this.layout&&this.layout.destructor(),this.events=this._uid=this._propsItem=this._props=this._buttons=null,t.prototype._destructor.call(this),this.unmount()},e.prototype.setProperties=function(t,e){if(void 0!==t&&this.events.fire(v.ItemEvent.beforeChangeProperties,[this.getProperties()])){if("object"==typeof t&&!(0,l.isEmptyObj)(t)){for(var i in t)this._props.includes(i)&&(this.config[i]=t[i]);t.hasOwnProperty("options")&&(this._initView(this.config),this._initHandlers())}if("string"==typeof t&&e&&!(0,l.isEmptyObj)(e)){var n=this._buttons.find((function(e){return e.config.id===t}));n&&n.setProperties(e)}this.events.fire(v.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},e.prototype.getProperties=function(t){if(void 0===t){var e={};for(var i in this.config)this._props.includes(i)&&(e[i]=this.config[i]);return e}return this._buttons.find((function(e){return e.config.id===t})).getProperties()},e.prototype.getValue=function(){var t=this;return this._buttons.forEach((function(e){e.getValue()&&(t.config.value=e.getValue()||"")})),this.config.value||""},e.prototype.setValue=function(t){t!==this.config.value&&(this._setValue(t),this.events.fire(v.ItemEvent.change,[t]),(0,f.isVerify)(this.config)&&this.validate())},e.prototype.focus=function(t){var e=this;(0,a.awaitRedraw)().then((function(){if(e._buttons.length){if(!t)return e._buttons[0].focus();var i=e._buttons.find((function(e){return e.config.id===t}));if(i)return i.focus()}}))},e.prototype.blur=function(){var t=this;(0,a.awaitRedraw)().then((function(){t._buttons.length&&t._buttons.forEach((function(t){return t.blur()}))}))},e.prototype.show=function(t){var e,i=t&&this._buttons.find((function(e){return e.config.id===t}));(0,l.isDefined)(t)&&!i||(!i&&(this.config.hidden||this._buttons.some((function(t){return t.config.hidden})))||(null===(e=null==i?void 0:i.config)||void 0===e?void 0:e.hidden))&&this.events.fire(v.ItemEvent.beforeShow,[this.getValue(),t])&&(i?null==i||i.show():this._buttons.forEach((function(t){return t.show()})),this.config.hidden=!1,this.events.fire(v.ItemEvent.afterShow,[this.getValue(),t]))},e.prototype.hide=function(t,e){var i,n=t&&this._buttons.find((function(e){return e.config.id===t}));(0,l.isDefined)(t)&&!n||((!n&&this.config.hidden||(null===(i=null==n?void 0:n.config)||void 0===i?void 0:i.hidden))&&!e||!this.events.fire(v.ItemEvent.beforeHide,[this.getValue(),t,e])||(n?(null==n||n.hide(),this.config.hidden=this._buttons.every((function(t){return t.config.hidden}))):(this._buttons.forEach((function(t){return t.hide()})),this.config.hidden=!0),this.events.fire(v.ItemEvent.afterHide,[this.getValue(),t,e])))},e.prototype.isVisible=function(t){var e,i=this._buttons.find((function(e){return e.config.id===t}));return!(this.config.hidden||(0,l.isDefined)(t)&&(null===(e=null==i?void 0:i.config)||void 0===e?void 0:e.hidden))},e.prototype.enable=function(t){var e,i,n=t&&this._buttons.find((function(e){return e.config.id===t}));(0,l.isDefined)(t)&&!n||(!n&&(this.config.disabled||this._buttons.some((function(t){return t.config.disabled})))||(null===(e=null==n?void 0:n.config)||void 0===e?void 0:e.disabled))&&(n?null==n||n.enable():this._buttons.forEach((function(t){return t.enable()})),this.config.disabled=!1,(null===(i=this.parent)||void 0===i?void 0:i.isDisabled())&&this.parent.enable(),this.paint())},e.prototype.disable=function(t,e){var i,n=t&&this._buttons.find((function(e){return e.config.id===t}));(0,l.isDefined)(t)&&!n||((!n&&this.config.disabled||(null===(i=null==n?void 0:n.config)||void 0===i?void 0:i.disabled))&&!e||(n?(null==n||n.disable(),this.config.disabled=this._buttons.every((function(t){return t.config.disabled}))):(this._buttons.forEach((function(t){return t.disable()})),this.config.disabled=!0),this.paint()))},e.prototype.isDisabled=function(t){var e,i=this._buttons.find((function(e){return e.config.id===t}));return Boolean(this.config.disabled||(0,l.isDefined)(t)&&(null===(e=null==i?void 0:i.config)||void 0===e?void 0:e.disabled))},e.prototype.clear=function(){""!==this.config.value&&(this._buttons.forEach((function(t){t.clear()})),this.config.value="",this.events.fire(v.ItemEvent.change,[this.config.value]),(0,f.isVerify)(this.config)&&this.setValidationStatus(this.validate(!0)?"success":"error"))},e.prototype.validate=function(t){var e=this;void 0===t&&(t=!1);var i=this.getValue();if(!t&&!this.events.fire(v.ItemEvent.beforeValidate,[i]))return!1;var n=!0;return this.config.required&&(n=this._buttons.some((function(t){return e.config.required&&!!t.config.checked}))),t||(this._buttons.forEach((function(t){t.setValidationStatus(n?"success":"error")})),this.setValidationStatus(n?"success":"error"),this.events.fire(v.ItemEvent.afterValidate,[i,n]),this.paint()),n},e.prototype.clearValidate=function(){this.setValidationStatus(),this._buttons.map((function(t){t.clearValidate()})),this.paint()},e.prototype._initView=function(t){var e=this;if((0,l.isEmptyObj)(t)||!t.options||(0,l.isEmptyObj)(t.options))throw new Error("Check the configuration is correct");for(var i in this.layout&&this.layout.destructor(),this._buttons.length&&(this._buttons.forEach((function(t){t.destructor()})),this._buttons=[]),this.config={type:t.type,id:t.id,name:t.name,value:"",disabled:!1,hidden:!1,options:{},required:!1,label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t)"id"!==i&&"type"!==i&&"name"!==i&&(this.config[i]=t[i]);var n=this.config.options.rows||this.config.options.cols;null==n||n.forEach((function(t){t.id=t.id||(0,l.uid)()})),this.layout=new c.Layout(null,this.config.options),null==n||n.forEach((function(i){var n=new h.RadioButton(null,r(r({},i),{disabled:t.disabled||i.disabled,$name:t.name,$required:t.required}));e._buttons.push(n),e.layout.getCell(i.id).attach(n),n.events.on(h.RadioButtonEvents.beforeChange,(function(){return e.events.fire(v.ItemEvent.beforeChange,[n.config.value||""])})),n.events.on(h.RadioButtonEvents.change,(function(){e._buttons.map((function(t){t.config.id!==n.config.id&&t.setValue(!1)})),e.events.fire(v.ItemEvent.change,[e.getValue()]),(0,f.isVerify)(e.config)&&e.validate()})),n.events.on(h.RadioButtonEvents.focus,(function(t,i){e.events.fire(v.ItemEvent.focus,[t,i])})),n.events.on(h.RadioButtonEvents.blur,(function(t,i){e.events.fire(v.ItemEvent.blur,[t,i])})),n.events.on(h.RadioButtonEvents.keydown,(function(t,i){e.events.fire(v.ItemEvent.keydown,[t,i])})),n.events.on(v.ItemEvent.afterHide,(function(){(0,a.awaitRedraw)().then((function(){e.layout.getCell(n.config.id).hide()}))})),n.events.on(v.ItemEvent.afterShow,(function(){e.layout.getCell(n.config.id).show()}))})),!this.config.disabled&&this._buttons.length&&this._buttons.every((function(t){return t.config.disabled}))&&(this.config.disabled=!0)},e.prototype._initHandlers=function(){var t=this;this.events.on(v.ItemEvent.beforeChange,(function(){return t.paint()})),this.events.on(v.ItemEvent.change,(function(){t.config.value=t.getValue(),t.paint()}))},e.prototype._draw=function(){var t=this.config,e=t.label,i=t.labelWidth,n=t.helpMessage,o=t.required,r=t.hidden,s=t.name,l=t.id,c=r?" dhx_form-group--hidden":"";return(0,a.el)("fieldset.dhx_form-group-fieldset",{},[(0,a.el)("div.dhx_form-group.dhx_form-group--radio-group",{class:(0,f.getFormItemCss)(this.config,(0,f.isVerify)(this.config))+c,"data-dhx-id":s||l,_key:l||this._uid},[e||i||n||o?this._drawLabel():null,(0,a.el)("div.dhx_radio-group--container",{},[this.layout&&(0,a.inject)(this.layout.getRootView()),o&&(0,f.getValidationMessage)(this.config)&&(0,a.el)("span.dhx_input__caption",(0,f.getValidationMessage)(this.config))])])])},e.prototype._setValue=function(t){void 0!==t&&-1!==this._buttons.findIndex((function(e){return e.config.value===t}))&&this._buttons.forEach((function(e){e.setValue(t===e.config.value)}))},e}(p.Label);e.RadioGroup=g},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.RadioButton=e.RadioButtonEvents=void 0;var a,l=i(1),c=i(0),u=i(2),d=i(6),h=i(10);!function(t){t.beforeChange="beforeChange",t.change="change",t.focus="focus",t.blur="blur",t.keydown="keydown",t.beforeHide="beforeHide",t.afterHide="afterHide",t.beforeShow="beforeShow",t.afterShow="afterShow"}(a||(e.RadioButtonEvents=a={}));var f=function(t){function e(e,i){void 0===i&&(i={});var n=t.call(this,e,r({text:"",width:"content",height:"content",checked:!1},i))||this;n._propsItem=["text"],n._props=s(s([],d.baseProps,!0),n._propsItem,!0),n._handlers={onchange:function(t){var e=t.target.checked;n.events.fire(a.beforeChange,[e])&&(n.config.checked=e,n.events.fire(a.change,[e]))},onfocus:function(){return n.events.fire(a.focus,[n.getValue()||"",n.config.id])},onblur:function(){var t;return null===(t=n.events)||void 0===t?void 0:t.fire(a.blur,[n.getValue()||"",n.config.id])},onkeydown:function(t){n.events.fire(a.keydown,[t,n.config.id])}},n.events=new u.EventSystem;return n.mount(e,(0,c.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype.destructor=function(){this.events&&this.events.clear(),this.config=this.events=this._handlers=this._uid=this._props=this._propsItem=null,this.unmount()},e.prototype.setProperties=function(t){if(t&&!(0,l.isEmptyObj)(t)){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.paint()}},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype.getValue=function(){if(this.config.checked)return this.config.value},e.prototype.setValue=function(t){this.config.checked=t,this.paint()},e.prototype.show=function(){this.config.hidden&&this.events.fire(a.beforeShow,[])&&(this.config.hidden=!1,this.events.fire(a.afterShow,[]))},e.prototype.hide=function(){!this.config.hidden&&this.events.fire(a.beforeHide,[])&&(this.config.hidden=!0,this.events.fire(a.afterHide,[]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype.focus=function(){var t=this;(0,c.awaitRedraw)().then((function(){t.getRootView().refs.input.el.focus()}))},e.prototype.blur=function(){var t=this;(0,c.awaitRedraw)().then((function(){t.getRootView().refs.input.el.blur()}))},e.prototype.disable=function(){this.config.disabled=!0,this.paint()},e.prototype.enable=function(){var t;this.config.disabled=!1,(null===(t=this.parent)||void 0===t?void 0:t.isDisabled())&&this.parent.enable(),this.paint()},e.prototype.isDisabled=function(){return!!this.config.disabled},e.prototype.clear=function(){this.config.checked=!1,this.setValidationStatus(this.validate()?"success":"error"),this.paint()},e.prototype.validate=function(){var t=!!this.config.checked;return this.setValidationStatus(t?"success":"error"),this.paint(),t},e.prototype.clearValidate=function(){this.setValidationStatus(),this.paint()},e.prototype._draw=function(){var t=this.config,e=t.id,i=t.value,n=t.checked,o=t.disabled,r=t.$name,s=t.$required,a=t.text;return(0,c.el)("label.dhx_radiobutton.dhx_form-group",{class:(0,d.getFormItemCss)(this.config,!!s)},[(0,c.el)("input.dhx_radiobutton__input",{type:"radio",id:e,_key:e||this._uid,value:i||"",name:r||"",disabled:o,checked:n,onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,required:s,_ref:"input"}),(0,c.el)("span.dhx_radiobutton__visual-input"),(0,c.el)("span.dhx_text",[a])])},e}(h.Label);e.RadioButton=f},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Select=void 0;var a=i(0),l=i(1),c=i(10),u=i(6),d=i(2),h=i(4),f=function(t){function e(e,i){var n=t.call(this,null,i)||this;return n.events=new d.EventSystem,n._propsItem=["required","validation","icon","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage"],n._props=s(s([],u.baseProps,!0),n._propsItem,!0),n._initView(i),n}return o(e,t),e.prototype.destructor=function(){this.events&&this.events.clear(),this.events=this._uid=this._propsItem=this._props=null,t.prototype._destructor.call(this),this.unmount()},e.prototype.setProperties=function(t){if(t&&!(0,l.isEmptyObj)(t)&&this.events.fire(h.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.events.fire(h.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype.show=function(){this.config.hidden&&this.events.fire(h.ItemEvent.beforeShow,[this.getValue()])&&(this.config.hidden=!1,this.events.fire(h.ItemEvent.afterShow,[this.getValue()]))},e.prototype.hide=function(t){this.config.hidden&&!t||!this.events.fire(h.ItemEvent.beforeHide,[this.getValue(),!!t])||(this.config.hidden=!0,this.events.fire(h.ItemEvent.afterHide,[this.getValue(),!!t]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype.disable=function(t){var e=(0,l.isDefined)(t)&&this.config.options.find((function(e){return e.value===t}));(0,l.isDefined)(t)&&!e||(!e&&this.config.disabled||(null==e?void 0:e.disabled)||(e?(e.disabled=!0,this.config.disabled=this.config.options.every((function(t){return t.disabled}))):(this.config.options=this.config.options.map((function(t){return r(r({},t),{disabled:!0})})),this.config.disabled=!0),this.paint()))},e.prototype.enable=function(t){var e,i=(0,l.isDefined)(t)&&this.config.options.find((function(e){return e.value===t}));(0,l.isDefined)(t)&&!i||(!i&&(this.config.disabled||this.config.options.some((function(t){return t.disabled})))||(null==i?void 0:i.disabled))&&(i?i.disabled=!1:this.config.options=this.config.options.map((function(t){return r(r({},t),{disabled:!1})})),this.config.disabled=!1,(null===(e=this.parent)||void 0===e?void 0:e.isDisabled())&&this.parent.enable(),this.paint())},e.prototype.isDisabled=function(t){var e=this.config.options.find((function(e){return e.value===t}));return Boolean(this.config.disabled||(0,l.isDefined)(t)&&(null==e?void 0:e.disabled))},e.prototype.validate=function(t){void 0===t&&(t=!1);var e=this.getValue();if(!t&&!this.events.fire(h.ItemEvent.beforeValidate,[e]))return!1;var i=!0;return this.config.required&&(i=(0,l.isDefined)(e)),"function"==typeof this.config.validation&&(i=this.config.validation(e)),t||(this.setValidationStatus(i?"success":"error"),this.events.fire(h.ItemEvent.afterValidate,[e,i]),this.paint()),i},e.prototype.clearValidate=function(){this.setValidationStatus(),this.paint()},e.prototype.clear=function(){var t,e,i=null===(e=null===(t=this.config)||void 0===t?void 0:t.options[0])||void 0===e?void 0:e.value;this.config.value!==i&&this.events.fire(h.ItemEvent.beforeChange,[i])&&(this.config.value=i,this.events.fire(h.ItemEvent.change,[i]),(0,u.isVerify)(this.config)&&this.setValidationStatus(this.validate(!0)?"success":"error"),this.paint())},e.prototype.setValue=function(t){void 0!==t&&t!==this.config.value&&-1!==this.config.options.findIndex((function(e){return e.value===t}))&&this.events.fire(h.ItemEvent.beforeChange,[t])&&(this.config.value=t,this.events.fire(h.ItemEvent.change,[t]),(0,u.isVerify)(this.config)&&this.validate(),this.paint())},e.prototype.focus=function(){var t=this;(0,a.awaitRedraw)().then((function(){t.getRootView().refs.select.el.focus()}))},e.prototype.blur=function(){var t=this;(0,a.awaitRedraw)().then((function(){t.getRootView().refs.select.el.blur()}))},e.prototype.getValue=function(){return this.config.value},e.prototype.setOptions=function(t){if(!t||!t.length)throw new Error("Function argument cannot be empty, for more info check documentation https://docs.dhtmlx.com/suite/form__select.html#addingselect");this.events.fire(h.ItemEvent.beforeChangeOptions,[s([],t,!0)])&&(this._checkOptions(t),this.config.options=s([],t,!0),this.events.fire(h.ItemEvent.changeOptions,[s([],t,!0)]),this.setValue(this.config.options[0].value),this.paint())},e.prototype.getOptions=function(){return this.config.options},e.prototype._initView=function(t){if((0,l.isEmptyObj)(t))throw new Error("Check the configuration is correct");for(var e in this._checkOptions(t.options),this.config={type:t.type,id:t.id,name:t.name,disabled:!1,hidden:!1,required:!1,icon:"",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content",options:t.options,value:t.options[0].value},t)"id"!==e&&"type"!==e&&"name"!==e&&(this.config[e]=t[e]);!this.config.disabled&&this.config.options.length&&this.config.options.every((function(t){return t.disabled}))&&(this.config.disabled=!0),this.paint()},e.prototype._getHandlers=function(){var t=this;return{onchange:function(e){var i=t.config.options.map((function(t){return t.value})).find((function(t){return t==e.target.value}));t.events.fire(h.ItemEvent.beforeChange,[i])&&(t.config.value=i,t.events.fire(h.ItemEvent.change,[i]),(0,u.isVerify)(t.config)&&t.validate(),t.paint())},onblur:function(){t._uid&&(t.events.fire(h.ItemEvent.blur,[t.getValue()]),t.paint())},onfocus:function(){t.events.fire(h.ItemEvent.focus,[t.getValue()]),t.paint()}}},e.prototype._draw=function(){var t,e,i,n=this.config,o=n.id,r=n.options,s=n.icon,l=n.value,c=n.label,d=n.labelWidth,h=n.helpMessage,f=n.required,p=n.name,v=(null===(i=null===(e=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.select)||void 0===i?void 0:i.el)===document.activeElement;return(0,a.el)(".dhx_form-group",{class:(0,u.getFormItemCss)(this.config,(0,u.isVerify)(this.config),v)},[(c||d||h)&&this._drawLabel(),(0,a.el)(".dhx_input__wrapper",{},[(0,a.el)("div.dhx_input__container",{},[(0,a.el)(".dhx_input__icon",{class:s||"dxi dxi-menu-down"}),(0,a.el)("select.dhx_select.dhx_input",{id:o,_key:o||this._uid,"data-dhx-id":p||o,tabindex:0,class:v&&"dhx_input--focus",onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,_ref:"select",required:f},r.length&&r.map((function(t){return(0,a.el)("option",{value:t.value,disabled:t.disabled,selected:l===t.value},t.content)})))]),(0,u.getValidationMessage)(this.config)&&(0,a.el)("span.dhx_input__caption",(0,u.getValidationMessage)(this.config))])])},e.prototype._checkOptions=function(t){if(0===t.length)throw new Error("Property options* cannot be empty, for more info check documentation https://docs.dhtmlx.com/suite/form__select.html#addingselect");t.forEach((function(t){if(!t.hasOwnProperty("value")||!t.hasOwnProperty("content"))throw new Error("The object must contain two required properties value and content, for more info check documentation https://docs.dhtmlx.com/suite/form__select.html#addingselect")}))},e}(c.Label);e.Select=f},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Textarea=void 0;var s=i(0),a=i(6),l=i(39),c=i(4),u=i(1),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._propsItem=["required","validation","placeholder","readOnly","maxlength","minlength","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage"],e._props=r(r([],a.baseProps,!0),e._propsItem,!0),e}return o(e,t),e.prototype.getValue=function(){var t;return String(null!==(t=this.config.value)&&void 0!==t?t:"")},e.prototype.isFocused=function(){var t,e,i;return(null===(i=null===(e=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.textarea)||void 0===i?void 0:i.el)===document.activeElement},e.prototype.focus=function(){var t=this;(0,s.awaitRedraw)().then((function(){t.getRootView().refs.textarea.el.focus()}))},e.prototype.blur=function(){var t=this;(0,s.awaitRedraw)().then((function(){t.getRootView().refs.textarea.el.blur()}))},e.prototype.setProperties=function(t){if(t&&!(0,u.isEmptyObj)(t)&&this.events.fire(c.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.events.fire(c.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype._initView=function(t){if((0,u.isEmptyObj)(t))throw new Error("Check the configuration is correct");for(var e in this.config={type:t.type,id:t.id,name:t.name,disabled:!1,hidden:!1,required:!1,validation:void 0,placeholder:"",readOnly:!1,label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t)"id"!==e&&"type"!==e&&"name"!==e&&(this.config[e]=t[e]);this.paint()},e.prototype._draw=function(){var t,e,i,n=this,o=this.config,r=o.id,l=o.value,c=o.disabled,d=o.name,h=o.placeholder,f=o.required,p=o.resizable,v=o.readOnly,g=o.maxlength,_=o.minlength,m=o.label,y=o.helpMessage,b=o.height,w=(null===(i=null===(e=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.textarea)||void 0===i?void 0:i.el)===document.activeElement;return(0,s.el)("div.dhx_form-group.dhx_form-group--textarea",{class:(0,a.getFormItemCss)(this.config,(0,a.isVerify)(this.config),w)},[this._drawLabel(),(0,s.el)(".dhx_input__wrapper",[(0,s.el)("textarea.dhx_input.dhx_input--textarea",{type:"text",id:r,"data-dhx-id":d||r,placeholder:h||"",value:(0,u.isDefined)(l)?l:"",name:d||"",disabled:c,required:f,readOnly:v,maxlength:g,minlength:_,onblur:this._handlers.onblur,oninput:this._handlers.oninput,onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onkeydown:this._handlers.onkeydown,_hooks:{didRecycle:function(t,e){n.isFocused()&&(0,u.isDefined)(n._value)&&(e.el.value=n._value)},didInsert:function(t){if("content"===b){var e=t.el;e.style.height=e.scrollHeight+"px"}n._input=t.el,n._input.addEventListener("compositionend",n._handlers.oninput)}},style:{resize:p?"both":"none"},_ref:"textarea","aria-label":m||"".concat(v?l:""," type text"),"aria-describedby":y?"dhx_label__help_".concat(r||this._uid):null}),(0,a.getValidationMessage)(this.config)&&(0,s.el)("span.dhx_input__caption",{},(0,a.getValidationMessage)(this.config))])])},e}(l.Input);e.Textarea=d},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Text=void 0;var s=i(0),a=i(1),l=i(6),c=i(39),u=i(4),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._propsItem=["inputType","label","labelWidth","labelPosition","hiddenLabel","helpMessage"],e._props=r(r([],l.baseProps,!0),e._propsItem,!0),e}return o(e,t),e.prototype.setProperties=function(t){if(t&&!(0,a.isEmptyObj)(t)&&this.events.fire(u.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.events.fire(u.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype._initView=function(t){if((0,a.isEmptyObj)(t))throw new Error("Check the configuration is correct");for(var e in this.config={type:t.type,id:t.id,name:t.name,disabled:!1,hidden:!1,value:"",inputType:"text",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",width:"content",height:"content"},t)"id"!==e&&"type"!==e&&"name"!==e&&(this.config[e]=t[e]);this.paint()},e.prototype._draw=function(){var t=this.config,e=t.id,i=t.value,n=t.name,o=t.inputType,r=t.label,a=(null!=i?i:"").toString().length;return(0,s.el)("div.dhx_form-group.dhx_form-group--textinput",{class:(0,l.getFormItemCss)(this.config)},[this._drawLabel(),(0,s.el)(".dhx_input__wrapper",[(0,s.el)("input.dhx_input.dhx_input--textinput",{type:["text","number","password"].includes(o)?o:"text",readOnly:!0,id:e,"data-dhx-id":n||e,value:null!=i?i:"",name:n,_ref:"input",tabindex:-1,role:"presentation","aria-label":r||i,size:a>20?a:20,onkeydown:this._handlers.onkeydown})])])},e}(c.Input);e.Text=d},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Combo=void 0;var s=i(0),a=i(1),l=i(6),c=i(38),u=i(2),d=i(10),h=i(4),f=i(7),p=function(t){function e(e,i){var n=t.call(this,null,i)||this;return n.events=new u.EventSystem,n._propsItem=["required","validation","placeholder","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage","readonly","readOnly"],n._propsCombo=["template","filter","multiselection","selectAllButton","itemsCount","itemHeight","virtual","listHeight"],n._props=r(r(r([],l.baseProps,!0),n._propsItem,!0),n._propsCombo,!0),n._isClear=!1,n._initView(i),n._initHandlers(),n}return o(e,t),e.prototype.destructor=function(){this.events&&this.events.clear(),this.combobox&&this.combobox.destructor(),this.events=this._uid=this._propsCombo=this._propsItem=this._props=null,t.prototype._destructor.call(this),this.unmount()},e.prototype.setProperties=function(t){var e=this;(0,s.awaitRedraw)().then((function(){if(t&&!(0,a.isEmptyObj)(t)&&e.events.fire(h.ItemEvent.beforeChangeProperties,[e.getProperties()])){for(var i in t)e._props.includes(i)&&(e.config[i]=t[i]);var n=[];e.getWidget().data.forEach((function(t){return n.push(t)})),e.config.data=n,e._initView(e.config),e._initHandlers(),e.events.fire(h.ItemEvent.afterChangeProperties,[e.getProperties()])}}))},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype.show=function(){var t=this.config,e=t.value;t.hidden&&this.events.fire(h.ItemEvent.beforeShow,[e])&&(this.config.hidden=!1,this.events.fire(h.ItemEvent.afterShow,[e]))},e.prototype.hide=function(t){var e=this.config,i=e.value;e.hidden&&!t||!this.events.fire(h.ItemEvent.beforeHide,[i,t])||(this.config.hidden=!0,this.events.fire(h.ItemEvent.afterHide,[i,t]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype.disable=function(){this.config.disabled=!0,this.combobox.disable(),this.paint()},e.prototype.enable=function(){var t;this.config.disabled=!1,this.combobox.enable(),(null===(t=this.parent)||void 0===t?void 0:t.isDisabled())&&this.parent.enable(),this.paint()},e.prototype.isDisabled=function(){return!!this.config.disabled},e.prototype.clear=function(){this._isValue(this.config.value)&&(this.config.value="",this._isClear=!0,this._isValue(this.getValue())&&this.combobox.clear())},e.prototype.getValue=function(){return this.config.multiselection?this.combobox.getValue(!0)||[]:this.combobox.getValue()||""},e.prototype.setValue=function(t){void 0!==t&&t.toString()!==this.config.value.toString()&&(this._isClear=!1,this.combobox.setValue(t))},e.prototype.validate=function(t){var e=this;void 0===t&&(t=!1);for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];var o,r=i.length?i[0]:this.getValue();if(!t&&!this.events.fire(h.ItemEvent.beforeValidate,[r]))return!1;o=Array.isArray(r)?r.map((function(t){return e._getItemText(t)})):this._getItemText(r)||"";var s=!0;return(this.config.required||i.length)&&(s=this._existData(r)),"function"==typeof this.config.validation&&(s=this.config.validation(r,o)),t||(this.setValidationStatus(s?"success":"error"),this.config.required&&this._validationStatus(),this.events.fire(h.ItemEvent.afterValidate,[r,s]),this.paint()),s},e.prototype.clearValidate=function(){this.setValidationStatus(),this._validationStatus(),this.paint()},e.prototype.getWidget=function(){return this.combobox},e.prototype.focus=function(){var t=this;(0,s.awaitRedraw)().then((function(){t.combobox.focus()}))},e.prototype.blur=function(){var t=this;(0,s.awaitRedraw)().then((function(){t.combobox.blur()}))},e.prototype._initView=function(t){if((0,a.isEmptyObj)(t))throw new Error("Check the configuration is correct");this.combobox&&this.combobox.destructor(),this.config={type:t.type,id:t.id,name:t.name,disabled:!1,hidden:!1,value:"",readOnly:!1,multiselection:!1,selectAllButton:!1,itemHeight:32,virtual:!1,listHeight:224,required:!1,placeholder:"",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"};var e={};for(var i in t)"id"!==i&&"type"!==i&&"name"!==i&&(this.config[i]=t[i],"validation"!==i&&(e[i]=t[i]));this.combobox=new c.Combobox(null,e),this.paint()},e.prototype._initHandlers=function(){var t=this;this.combobox.events.on(c.ComboboxEvents.beforeChange,(function(e){return t.events.fire(h.ItemEvent.beforeChange,[e])})),this.combobox.events.on(c.ComboboxEvents.change,(function(){var e=t.config.value=t.getValue();t.events.fire(h.ItemEvent.change,[e]),(0,l.isVerify)(t.config)&&(t._isClear?(t.setValidationStatus(t.validate(!0)?"success":"error"),t._isClear=!1):t.validate()),t.paint()})),this.combobox.events.on(c.ComboboxEvents.focus,(function(){t.events.fire(h.ItemEvent.focus,[t.getValue()]),t.paint()})),this.combobox.events.on(c.ComboboxEvents.blur,(function(){t.events.fire(h.ItemEvent.blur,[t.getValue()]),t.paint()})),this.combobox.events.on(c.ComboboxEvents.keydown,(function(e,i){"Enter"===e.code&&e.preventDefault(),t.events.fire(h.ItemEvent.keydown,[e,i])})),[f.DataEvents.removeAll,f.DataEvents.load].forEach((function(e){t.combobox.data.events.on(e,(function(){t._isValue(t.config.value)&&(t.events.fire(h.ItemEvent.change,[""]),t.clear())}))}))},e.prototype._validationStatus=function(){var t,e,i;if(!(this.combobox.popup.isVisible()||(null===(i=null===(e=null===(t=this.combobox.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.input)||void 0===i?void 0:i.el)===document.activeElement))switch(this.config.$validationStatus){case h.ValidationStatus.success:return this.combobox.config.css=(this.config.css||"")+" dhx_form-group--state_success";case h.ValidationStatus.error:return this.combobox.config.css=(this.config.css||"")+" dhx_form-group--state_error";case h.ValidationStatus.pre:default:return this.combobox.config.css=this.config.css||""}return this.combobox.config.css=this.config.css||""},e.prototype._getRootView=function(){return this.combobox.getRootView()},e.prototype._draw=function(){var t=this.config,e=t.labelWidth,i=t.labelPosition,n=t.name,o=t.id;return(0,s.el)(".dhx_form-group.dhx_form-group--combobox",{"data-dhx-id":n||o},[(0,s.el)("div.dhx_form-combobox__container",[(0,s.inject)(this._getRootView())]),(0,s.el)("div.dhx_form-combobox__wrapper",{style:{"margin-left":"".concat(e&&"left"===i?"calc(".concat(e," + 16px)"):"")},class:this._validationStatus()},[(0,s.el)("span.dhx_input__caption",(0,l.getValidationMessage)(this.config))])])},e.prototype._existData=function(t){var e=this;return!!(0,a.isDefined)(t)&&(t instanceof Array?!!t.length&&t.every((function(t){return e.combobox.data.exists(t)})):this.combobox.data.exists(t))},e.prototype._getItemText=function(t){var e;return null===(e=this.combobox.data.getItem(t))||void 0===e?void 0:e.value},e.prototype._isValue=function(t){return!!(null==t?void 0:t.toString().length)},e}(d.Label);e.Combo=p},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.SliderForm=void 0;var a=i(0),l=i(1),c=i(47),u=i(2),d=i(10),h=i(4),f=i(6),p=function(t){function e(e,i){var n=t.call(this,e,i)||this;n.events=new u.EventSystem,n._propsItem=["label","labelWidth","labelPosition","hiddenLabel","helpMessage"],n._propsSlider=["min","max","step","mode","range","inverse","tooltip","tick","tickTemplate","majorTick"],n._props=s(s(s([],f.baseProps,!0),n._propsItem,!0),n._propsSlider,!0),n._initView(i),n._initHandlers();return n.mount(e,(0,a.create)({render:function(){return n._drawSlider()}})),n}return o(e,t),e.prototype.destructor=function(){this.events&&this.events.clear(),this.slider&&this.slider.destructor(),this.events=this._uid=this._propsSlider=this._propsItem=this._props=null,t.prototype._destructor.call(this),this.unmount()},e.prototype.setProperties=function(t){if(t&&!(0,l.isEmptyObj)(t)&&this.events.fire(h.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this._initView(this.config),this._initHandlers(),this.events.fire(h.ItemEvent.afterChangeProperties,[this.getProperties()]),this.slider.paint(),this.paint()}},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype.show=function(){var t=this.config,e=t.value;t.hidden&&this.events.fire(h.ItemEvent.beforeShow,[e])&&(this.config.hidden=!1,this.events.fire(h.ItemEvent.afterShow,[e]))},e.prototype.hide=function(t){var e=this.config,i=e.value;e.hidden&&!t||!this.events.fire(h.ItemEvent.beforeHide,[i,t])||(this.config.hidden=!0,this.events.fire(h.ItemEvent.afterHide,[i,t]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype.disable=function(){this.config.disabled=!0,this.slider.disable(),this.paint()},e.prototype.enable=function(){var t;this.config.disabled=!1,this.slider.enable(),(null===(t=this.parent)||void 0===t?void 0:t.isDisabled())&&this.parent.enable(),this.paint()},e.prototype.isDisabled=function(){return!!this.config.disabled},e.prototype.clear=function(){var t=this.config,e=t.value,i=t.min;e[0]!==i&&this.slider.setValue(i)},e.prototype.getValue=function(){return this.slider.getValue()},e.prototype.setValue=function(t){void 0!==t&&t.toString()!==this.config.value.toString()&&this.slider.setValue(t)},e.prototype.getWidget=function(){return this.slider},e.prototype.focus=function(t){var e=this;(0,a.awaitRedraw)().then((function(){e.slider.focus(t)}))},e.prototype.blur=function(){var t=this;(0,a.awaitRedraw)().then((function(){t.slider.blur()}))},e.prototype._initView=function(t){if((0,l.isEmptyObj)(t))throw new Error("Check the configuration is correct");this.slider&&this.slider.destructor();var e={type:t.type,id:t.id,name:t.name,mode:"horizontal",min:0,max:100,step:1,range:!1,inverse:!1,tooltip:!0,disabled:!1,hidden:!1,label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",width:"content",height:"content"};for(var i in t)"id"!==i&&"type"!==i&&"name"!==i&&(e[i]=t[i]);this.config=r({type:this.config.type},e),this.slider=new c.Slider(null,e),this.config.disabled&&this.slider.disable(),this.config.value=this.slider.getValue()},e.prototype._initHandlers=function(){var t=this;this.slider.events.on(c.SliderEvents.beforeChange,(function(e,i,n){var o=[e];if(t.config.range){var r=t.getValue(),s=r[0],a=r[1];o=n?[s,e]:[e,a]}return t.events.fire(h.ItemEvent.beforeChange,[o])})),this.slider.events.on(c.SliderEvents.change,(function(){if(t._uid){var e=t.config.value=t.slider.getValue();t.events.fire(h.ItemEvent.change,[e]),t.paint()}})),this.slider.events.on(c.SliderEvents.focus,(function(){t.events.fire(h.ItemEvent.focus,[t.getValue()])})),this.slider.events.on(c.SliderEvents.blur,(function(){t.events.fire(h.ItemEvent.blur,[t.getValue()])})),this.slider.events.on(c.SliderEvents.keydown,(function(e){t.events.fire(h.ItemEvent.keydown,[e])}))},e.prototype._drawSlider=function(){var t=this.config,e=t.name,i=t.id;return(0,a.el)("div.dhx_form-group",{"data-dhx-id":e||i},[(0,a.inject)(this.slider.getRootView())])},e}(d.Label);e.SliderForm=p},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.TimePicker=void 0;var s=i(46),a=i(0),l=i(1),c=i(10),u=i(13),d=i(2),h=i(4),f=i(6),p=i(14),v=function(t){function e(e,i){var n=t.call(this,null,i)||this;n.events=new d.EventSystem,n._popupIsFocus=!1,n._propsItem=["required","validation","icon","placeholder","editable","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage"],n._propsTimepicker=["timeFormat","controls","valueFormat"],n._props=r(r(r([],f.baseProps,!0),n._propsItem,!0),n._propsTimepicker,!0),n._keyManager=new p.KeyManager((function(){var t,e,i,o=document.activeElement;return(null===(i=null===(e=null===(t=n.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.input)||void 0===i?void 0:i.el)===o||n._popup.isVisible()})),n._initView(i),n._initHandlers(),n._initHotkeys();return n.mount(e,(0,a.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype.destructor=function(){this.events&&this.events.clear(),this.timepicker&&this.timepicker.destructor(),this._keyManager&&this._keyManager.destructor(),this._popup&&this._popup.destructor(),this.events=this._uid=this._propsItem=this._propsTimepicker=this._props=this._keyManager=null,t.prototype._destructor.call(this),this.unmount()},e.prototype.setProperties=function(t){var e=this;(0,a.awaitRedraw)().then((function(){if(t&&!(0,l.isEmptyObj)(t)&&e.events.fire(h.ItemEvent.beforeChangeProperties,[e.getProperties()])){for(var i in t)e._props.includes(i)&&(e.config[i]=t[i]);e._initView(e.config),e._initHandlers(),e.events.fire(h.ItemEvent.afterChangeProperties,[e.getProperties()]),e.paint()}}))},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype.show=function(){this.config.hidden&&this.events.fire(h.ItemEvent.beforeShow,[this.getValue("timeObject"===this.config.valueFormat)])&&(this.config.hidden=!1,this.events.fire(h.ItemEvent.afterShow,[this.getValue("timeObject"===this.config.valueFormat)]))},e.prototype.hide=function(t){this.config.hidden&&!t||!this.events.fire(h.ItemEvent.beforeHide,[this.getValue("timeObject"===this.config.valueFormat),t])||(this.config.hidden=!0,this.events.fire(h.ItemEvent.afterHide,[this.getValue("timeObject"===this.config.valueFormat),t]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype.disable=function(){this.config.disabled=!0,this.paint()},e.prototype.enable=function(){var t;this.config.disabled=!1,(null===(t=this.parent)||void 0===t?void 0:t.isDisabled())&&this.parent.enable(),this.paint()},e.prototype.isDisabled=function(){return!!this.config.disabled},e.prototype.validate=function(t){void 0===t&&(t=!1);for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var n=e.length?e[0]:this.getValue(this._isTimeObject());if(!t&&!this.events.fire(h.ItemEvent.beforeValidate,[n]))return!1;var o=!0;return(this.config.required||e.length)&&(o="string"==typeof n?(0,f.isTimeFormat)(n,this.config.timeFormat):(0,f.isTimeFormat)("".concat(n.hour,":").concat(n.minute).concat((0,l.isDefined)(n.AM)?n.AM?"AM":"PM":""),this.config.timeFormat)),"function"==typeof this.config.validation&&(o=this.config.validation(n)),t||(this.config.$validationStatus=o?h.ValidationStatus.success:h.ValidationStatus.error,this.events.fire(h.ItemEvent.afterValidate,[n,o]),this.paint()),o},e.prototype.clearValidate=function(){this.config.$validationStatus=h.ValidationStatus.pre,this.paint()},e.prototype.setValue=function(t){if(void 0!==t&&t!==this.config.value){if(this.timepicker.setValue(t),this.config.controls){var e=this.getValue(this._isTimeObject());if(!this.events.fire(h.ItemEvent.beforeChange,[e]))return;this.config.value=this.timepicker.getValue(),this.events.fire(h.ItemEvent.change,[e])}(0,f.isVerify)(this.config)&&this.validate(),this.paint()}},e.prototype.getValue=function(t){return t?this.timepicker.getValue(t):this.config.value||""},e.prototype.focus=function(){var t=this;(0,a.awaitRedraw)().then((function(){t.getRootView().refs.input.el.focus()}))},e.prototype.blur=function(){var t=this;(0,a.awaitRedraw)().then((function(){t._popup.hide(),t.getRootView().refs.input.el.blur()}))},e.prototype.clear=function(){""!==this.config.value&&this._clear()},e.prototype.getWidget=function(){return this.timepicker},e.prototype._initView=function(t){if((0,l.isEmptyObj)(t))throw new Error("Check the configuration is correct");for(var e in this.timepicker&&this.timepicker.destructor(),this._popup&&this._popup.destructor(),this.config={type:t.type,id:t.id,name:t.name,value:"",disabled:!1,editable:!1,hidden:!1,timeFormat:24,controls:!1,valueFormat:"string",required:!1,icon:"",placeholder:"",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t)"id"!==e&&"type"!==e&&"name"!==e&&(this.config[e]=t[e]);this._popup=new u.Popup,this.timepicker=new s.Timepicker(null,(0,f.widgetConfig)(t)),this._popup.attach(this.timepicker),this.config.value&&(this.config.value=this.timepicker.getValue())},e.prototype._initHandlers=function(){var t=this;this.config.controls?(this.timepicker.events.on(s.TimepickerEvents.afterClose,(function(){t._popup.hide()})),this.timepicker.events.on(s.TimepickerEvents.afterApply,(function(){t._afterApply(!0)})),this._popup.events.on(u.PopupEvents.afterHide,(function(){t.config.value&&t.config.value!==t.timepicker.getValue()?t.timepicker.setValue(t.config.value):""!==t.config.value&&void 0!==t.config.value||t._clear(!0)}))):(this.timepicker.events.on(s.TimepickerEvents.beforeChange,(function(e){return t.events.fire(h.ItemEvent.beforeChange,[e])})),this.timepicker.events.on(s.TimepickerEvents.change,(function(e){var i=12===t.config.timeFormat?"12:00AM":"00:00",n=t.timepicker.getValue();""===t.config.value&&i===n||t.config.value===n||(t.config.value=t.timepicker.getValue(),t.events.fire(h.ItemEvent.change,[e]),(0,f.isVerify)(t.config)&&t.validate(),t.paint())}))),this._popup.events.on(u.PopupEvents.afterHide,(function(){document.activeElement!==t.getRootView().refs.input.el&&t.events.fire(h.ItemEvent.blur,[t.getValue()]),t.paint()})),this.events.on(h.ItemEvent.input,(function(e){var i=12===t.config.timeFormat?7:5;e.length>=i&&(0,f.isTimeFormat)(e,t.config.timeFormat)?t.timepicker.setValue(e):""!==e||t.config.controls||t._clear()})),this.events.on(h.ItemEvent.afterChangeProperties,(function(){t.config.value=t.timepicker.getValue(),t.paint()})),this.events.on(h.ItemEvent.blur,(function(){t._popupIsFocus=!1,t.paint()}))},e.prototype._getHandlers=function(){var t=this;return{onfocus:function(){if(!t._popup.isVisible()){var e=t.getRootView().refs.input.el;t._popup.show(e,{theme:e}),t.events.fire(h.ItemEvent.focus,[t.getValue()]),t.paint()}},onblur:function(){t._popup.isVisible()||t.events.fire(h.ItemEvent.blur,[t.getValue()]),t.paint()},oninput:function(e){var i=e.target.value;t.events.fire(h.ItemEvent.input,[i])},onkeydown:function(e){var i,n,o,r=document.activeElement;((null===(o=null===(n=null===(i=t.getRootView())||void 0===i?void 0:i.refs)||void 0===n?void 0:n.input)||void 0===o?void 0:o.el)===r||t._popup.isVisible())&&t.events.fire(h.ItemEvent.keydown,[e])},onmousedown:function(){t._popup.getContainer()!==document.activeElement&&(t._popupIsFocus=!1)}}},e.prototype._initHotkeys=function(){var t=this,e={"shift+tab":function(){t._applyTab()},tab:function(){t._applyTab()},escape:function(){t._popup.isVisible()&&t.getRootView().refs.input.el.focus(),t._popup.hide()},enter:function(e){e.preventDefault();var i=t.getRootView().refs.input.el;t._popup.isVisible()||t._popup.show(i,{theme:i}),t._popupIsFocus&&t.config.controls?t._afterApply(!0):(t._popup.hide(),t.paint())},arrowRight:function(e){var i=t._popup.getContainer();t._popupIsFocus=i.contains(document.activeElement),t._popup.isVisible()&&!t._popupIsFocus&&(e.preventDefault(),i.focus(),t._popupIsFocus=!0)}};for(var i in e)this._keyManager.addHotKey(i,e[i])},e.prototype._draw=function(){var t,e,i,n=this.config,o=n.value,r=n.required,s=n.disabled,l=n.placeholder,c=n.name,u=n.id,d=n.editable,h=n.label,p=n.helpMessage,v=this._popup.isVisible()||(null===(i=null===(e=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.input)||void 0===i?void 0:i.el)===document.activeElement;return(0,a.el)("div.dhx_form-group",{class:(0,f.getFormItemCss)(this.config,(0,f.isVerify)(this.config),v)},[this._drawLabel(),(0,a.el)(".dhx_input__wrapper",[(0,a.el)("div.dhx_input__container",{},[(0,a.el)(".dhx_input__icon.dxi.dxi-clock-outline"),(0,a.el)("input.dhx_input.dhx_input--icon-padding",{tabindex:0,"data-dhx-id":c||u,_key:this._uid,_ref:"input",value:o,type:"text",required:r,disabled:s,class:v&&"dhx_input--focus",placeholder:l||"",name:c||"",id:u||this._uid,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,oninput:this._handlers.oninput,onkeydown:this._handlers.onkeydown,onmousedown:this._handlers.onmousedown,autocomplete:"off",readOnly:!d,"aria-label":h||"".concat(d?"type or":""," select date"),"aria-describedby":p?"dhx_label__help_".concat(u||this._uid):null})]),(0,f.getValidationMessage)(this.config)&&(0,a.el)("span.dhx_input__caption",{},(0,f.getValidationMessage)(this.config))])])},e.prototype._clear=function(t){(t||this.events.fire(h.ItemEvent.beforeChange,[""]))&&(this.config.value="",this.timepicker.clear(),t||(this.events.fire(h.ItemEvent.change,[""]),(0,f.isVerify)(this.config)&&this.setValidationStatus(this.validate(!0)?"success":"error")),this.paint())},e.prototype._afterApply=function(t){if(void 0===t&&(t=!1),""!==this.getRootView().refs.input.el.value||t){var e=this.timepicker.getValue(this._isTimeObject());if(!this.events.fire(h.ItemEvent.beforeChange,[e]))return;this.config.value=this.timepicker.getValue(),this.events.fire(h.ItemEvent.change,[e]),(0,f.isVerify)(this.config)&&this.validate()}else this.clear();this._popup.hide(),this.paint()},e.prototype._applyTab=function(){var t,e,i;document.activeElement===(null===(i=null===(e=null===(t=this._popup.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.content)||void 0===i?void 0:i.el)||this._popupIsFocus||this._popup.hide()},e.prototype._isTimeObject=function(){var t;return"timeobject"===(null===(t=this.config.valueFormat)||void 0===t?void 0:t.toLowerCase())},e}(c.Label);e.TimePicker=v},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.ColorPicker=void 0;var s=i(50),a=i(2),l=i(0),c=i(1),u=i(10),d=i(13),h=i(4),f=i(6),p=i(14),v=function(t){function e(e,i){var n=t.call(this,null,i)||this;n.events=new a.EventSystem,n._popupIsFocus=!1,n._propsItem=["required","validation","icon","placeholder","editable","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage"],n._propsColorpicker=["mode","grayShades","customColors","palette"],n._props=r(r(r([],f.baseProps,!0),n._propsItem,!0),n._propsColorpicker,!0),n._keyManager=new p.KeyManager((function(){var t,e,i,o=document.activeElement;return(null===(i=null===(e=null===(t=n.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.input)||void 0===i?void 0:i.el)===o||n._popup.isVisible()})),n._initView(i),n._initHandlers(),n._initHotkeys();return n.mount(e,(0,l.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype.destructor=function(){this.events&&this.events.clear(),this._popup&&this._popup.destructor(),this._keyManager&&this._keyManager.destructor(),this.colorpicker&&this.colorpicker.destructor(),this.events=this._uid=this._propsColorpicker=this._propsItem=this._props=this._keyManager=null,t.prototype._destructor.call(this),this.unmount()},e.prototype.setProperties=function(t){if(t&&!(0,c.isEmptyObj)(t)&&this.events.fire(h.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e],this._propsColorpicker.includes(e)&&(this.colorpicker.config[e]=t[e]));this.events.fire(h.ItemEvent.afterChangeProperties,[this.getProperties()]),this.colorpicker.paint(),this.paint()}},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype.show=function(){var t=this.config,e=t.value;t.hidden&&this.events.fire(h.ItemEvent.beforeShow,[e])&&(this.config.hidden=!1,this.events.fire(h.ItemEvent.afterShow,[e]))},e.prototype.hide=function(t){var e=this.config,i=e.value;e.hidden&&!t||!this.events.fire(h.ItemEvent.beforeHide,[i,t])||(this.config.hidden=!0,this.events.fire(h.ItemEvent.afterHide,[i,t]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype.disable=function(){this.config.disabled=!0,this.paint()},e.prototype.enable=function(){var t;this.config.disabled=!1,(null===(t=this.parent)||void 0===t?void 0:t.isDisabled())&&this.parent.enable(),this.paint()},e.prototype.isDisabled=function(){return!!this.config.disabled},e.prototype.validate=function(t){void 0===t&&(t=!1);for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var n=e.length?e[0]:this.getValue();if(!t&&!this.events.fire(h.ItemEvent.beforeValidate,[n]))return!1;var o=!0;return(this.config.required||e.length)&&(o=(0,s.isHex)(n)),"function"==typeof this.config.validation&&(o=this.config.validation(n)),t||(this.setValidationStatus(o?"success":"error"),this.events.fire(h.ItemEvent.afterValidate,[n,o]),this.paint()),o},e.prototype.clearValidate=function(){this.setValidationStatus(),this.paint()},e.prototype.setValue=function(t){void 0!==t&&t!==this.config.value&&this.colorpicker.setValue(t)},e.prototype.getValue=function(){return this.colorpicker.getValue()},e.prototype.clear=function(){""!==this.config.value&&this.colorpicker.clear()},e.prototype.getWidget=function(){return this.colorpicker},e.prototype.focus=function(){var t=this;(0,l.awaitRedraw)().then((function(){t.getRootView().refs.input.el.focus()}))},e.prototype.blur=function(){var t=this;(0,l.awaitRedraw)().then((function(){t._popup.hide(),t.getRootView().refs.input.el.blur()}))},e.prototype._initView=function(t){if((0,c.isEmptyObj)(t))throw new Error("Check the configuration is correct");for(var e in this.colorpicker&&this.colorpicker.destructor(),this._popup&&this._popup.destructor(),this.config={type:t.type,id:t.id,name:t.name,disabled:!1,editable:!1,hidden:!1,value:"",grayShades:!0,pickerOnly:!1,paletteOnly:!1,customColors:[],palette:s.palette,mode:"palette",required:!1,icon:"",placeholder:"",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:"",preMessage:"",successMessage:"",errorMessage:"",width:"content",height:"content"},t)"id"!==e&&"type"!==e&&"name"!==e&&(this.config[e]=t[e]);this._popup=new d.Popup,this.colorpicker=new s.Colorpicker(null,(0,f.widgetConfig)(t)),this.colorpicker.setValue(this.config.value),this._popup.attach(this.colorpicker)},e.prototype._initHandlers=function(){var t=this;this.colorpicker.events.on(s.ColorpickerEvents.beforeChange,(function(e){return t.events.fire(h.ItemEvent.beforeChange,[e])})),this.colorpicker.events.on(s.ColorpickerEvents.change,(function(e,i){t.config.value=t.colorpicker.getValue(),t.events.fire(h.ItemEvent.change,[t.config.value]),(0,f.isVerify)(t.config)&&("clear"===i?t.setValidationStatus(t.validate(!0)?"success":"error"):t.validate()),t._popup.hide(),t.paint()})),this._popup.events.on(d.PopupEvents.afterHide,(function(){document.activeElement!==t.getRootView().refs.input.el&&t.events.fire(h.ItemEvent.blur,[t.getValue()]),t.paint()})),this.events.on(h.ItemEvent.blur,(function(){t._popupIsFocus=!1,t.paint()}))},e.prototype._getHandlers=function(){var t=this;return{onblur:function(){t._popup.isVisible()||t.events.fire(h.ItemEvent.blur,[t.getValue()]),t.paint()},onfocus:function(){if(!t._popup.isVisible()){var e=t.getRootView().refs.input.el;t._popup.show(e,{theme:e}),t.events.fire(h.ItemEvent.focus,[t.getValue()]),t.paint()}},oninput:function(e){var i=e.target.value;t.events.fire(h.ItemEvent.input,[i])},onchange:function(e){var i=e.target.value;t.config.editable&&(0,s.isHex)(i)?t.setValue(i):""===i&&t.clear()},onkeydown:function(e){var i,n,o,r=document.activeElement;((null===(o=null===(n=null===(i=t.getRootView())||void 0===i?void 0:i.refs)||void 0===n?void 0:n.input)||void 0===o?void 0:o.el)===r||t._popup.isVisible())&&t.events.fire(h.ItemEvent.keydown,[e])},onmousedown:function(){t._popup.getContainer()!==document.activeElement&&(t._popupIsFocus=!1)}}},e.prototype._initHotkeys=function(){var t=this,e={"shift+tab":function(){t._applyTab()},tab:function(){t._applyTab()},escape:function(){t._popup.isVisible()&&t.getRootView().refs.input.el.focus(),t._popup.hide()},enter:function(e){if(e.preventDefault(),!t._popup.isVisible()){var i=t.getRootView().refs.input.el;t._popup.show(i,{theme:i})}},arrowRight:function(e){var i=t._popup.getContainer();t._popup.isVisible()&&!t._popupIsFocus&&(e.preventDefault(),i.focus(),t._popupIsFocus=!0)}};for(var i in e)this._keyManager.addHotKey(i,e[i])},e.prototype._draw=function(){var t,e,i,n=this.config,o=n.required,r=n.value,s=n.icon,a=n.disabled,c=n.placeholder,u=n.name,d=n.id,h=n.editable,p=n.label,v=n.helpMessage,g=this._popup.isVisible()||(null===(i=null===(e=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.input)||void 0===i?void 0:i.el)===document.activeElement;return(0,l.el)("div.dhx_form-group",{class:(0,f.getFormItemCss)(this.config,(0,f.isVerify)(this.config),g)},[this._drawLabel(),(0,l.el)(".dhx_input__wrapper",[(0,l.el)("div.dhx_input__container",{},[(0,l.el)(".dhx_input__icon",{class:s||"dxi dxi-eyedropper-variant"+(r?" dhx_input__icon--color-selected":""),style:{"background-color":r||"transparent"}}),(0,l.el)("input.dhx_input.dhx_input--icon-padding",{tabindex:0,"data-dhx-id":u||d,_key:this._uid,_ref:"input",value:r,type:"text",required:o,disabled:a,class:g&&"dhx_input--focus",placeholder:c||"",name:u||"",id:d||this._uid,onfocus:this._handlers.onfocus,oninput:this._handlers.oninput,onchange:this._handlers.onchange,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown,onmousedown:this._handlers.onmousedown,autocomplete:"off",readOnly:!h,"aria-label":p||"".concat(h?"type or":""," select color"),"aria-describedby":v?"dhx_label__help_".concat(d||this._uid):null})]),(0,f.getValidationMessage)(this.config)&&(0,l.el)("span.dhx_input__caption",{},(0,f.getValidationMessage)(this.config))])])},e.prototype._applyTab=function(){var t,e,i;document.activeElement===(null===(i=null===(e=null===(t=this._popup.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.content)||void 0===i?void 0:i.el)||this._popupIsFocus||this._popup.hide()},e}(u.Label);e.ColorPicker=v},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Spacer=void 0;var s=i(0),a=i(9),l=i(4),c=i(2),u=i(1),d=i(6),h=function(t){function e(e,i){var n=t.call(this,e,r({disabled:!1,hidden:!1,width:"content",height:"content"},i))||this;n.events=new c.EventSystem;return n.mount(e,(0,s.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype.destructor=function(){this.events&&this.events.clear(),this.config=this.events=null,this.unmount()},e.prototype.setProperties=function(t){if(t&&!(0,u.isEmptyObj)(t)&&this.events.fire(l.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)d.baseProps.includes(e)&&(this.config[e]=t[e]);this.events.fire(l.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},e.prototype.getProperties=function(){for(var t={},e=0,i=d.baseProps;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype.show=function(){this.config.hidden&&this.events.fire(l.ItemEvent.beforeShow,[])&&(this.config.hidden=!1,this.events.fire(l.ItemEvent.afterShow,[]))},e.prototype.hide=function(t){this.config.hidden&&!t||!this.events.fire(l.ItemEvent.beforeHide,[!!t])||(this.config.hidden=!0,this.events.fire(l.ItemEvent.afterHide,[!!t]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype._draw=function(){return(0,s.el)("div")},e}(a.View);e.Spacer=h},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Avatar=void 0;var a=i(0),l=i(1),c=i(2),u=i(10),d=i(4),h=i(6),f=i(93),p=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.events=new c.EventSystem,n._propsItem=["validation","required","readOnly","label","labelWidth","labelPosition","hiddenLabel","helpMessage","preMessage","successMessage","errorMessage","size","circle","alt","icon","placeholder","preview","accept","autosend","params","headerParams","fieldName","target","updateFromResponse","removeIcon"],n._props=s(s([],h.baseProps,!0),n._propsItem,!0),n._isUpload=!1,n._initView(i),n._initHandlers(),n}return o(e,t),e.prototype.send=function(t){var e=this,i=this.config,n=i.target,o=i.value,s=i.updateFromResponse,a=i.headerParams;if(!this._isUpload&&n&&(null==o?void 0:o.file)&&o.status!==f.FileStatus.uploaded&&this.events.fire(d.ItemEvent.beforeUploadFile,[o])){var l=this._createFormData(o,t),c=new XMLHttpRequest;if(this._isUpload=!0,this.config.value=r(r({},o),{status:f.FileStatus.inprogress,request:c}),this.events.fire(d.ItemEvent.uploadBegin,[this.config.value]),this.events.fire(d.ItemEvent.uploadProgress,[0,this.config.value]),c.open("POST",n),a)for(var u in a)c.setRequestHeader(u,a[u]);c.upload.onprogress=function(t){var i=t.loaded/t.total;e.config.value=r(r({},e.config.value),{progress:i}),e.events.fire(d.ItemEvent.uploadProgress,[100*i,e.config.value])},c.onloadend=function(){var t=200===c.status?f.FileStatus.uploaded:f.FileStatus.failed,i=200===c.status&&c.response?JSON.parse(c.response):null;e.config.value=r(r({},e.config.value),{status:t}),t===f.FileStatus.uploaded?(i&&s&&(e.config.value=r(r({},e.config.value),i)),e.events.fire(d.ItemEvent.uploadFile,[e.config.value,i])):e.events.fire(d.ItemEvent.uploadFail,[e.config.value]),e._isUpload=!1,e.events.fire(d.ItemEvent.uploadComplete,[e.config.value])},c.send(l)}},e.prototype.selectFile=function(){var t,e,i;null===(i=null===(e=null===(t=this.getRootView())||void 0===t?void 0:t.refs)||void 0===e?void 0:e.input)||void 0===i||i.el.click()},e.prototype.setValue=function(t){this._setValue(t),(0,h.isVerify)(this.config)&&this.validate()},e.prototype._setValue=function(t){this.events.fire(d.ItemEvent.beforeChange,[t])&&(this.config.value=!(0,l.isEmptyObj)(t)&&r({id:(0,l.uid)(),status:f.FileStatus.queue,progress:0,path:""},t)||{},this.events.fire(d.ItemEvent.change,[this.getValue()]))},e.prototype.getValue=function(){return this.config.value||{}},e.prototype.clear=function(){this._setValue({}),(0,h.isVerify)(this.config)&&this.setValidationStatus(this.validate(!0)?"success":"error")},e.prototype.disable=function(){this.config.disabled=!0,this.paint()},e.prototype.enable=function(){var t;this.config.disabled=!1,(null===(t=this.parent)||void 0===t?void 0:t.isDisabled())&&this.parent.enable(),this.paint()},e.prototype.isDisabled=function(){return!!this.config.disabled},e.prototype.show=function(){this.config.hidden&&this.events.fire(d.ItemEvent.beforeShow,[this.getValue()])&&(this.config.hidden=!1,this.events.fire(d.ItemEvent.afterShow,[this.getValue()]))},e.prototype.hide=function(t){void 0===t&&(t=!1),this.config.hidden&&!t||!this.events.fire(d.ItemEvent.beforeHide,[this.getValue(),t])||(this.config.hidden=!0,this.events.fire(d.ItemEvent.afterHide,[this.getValue(),t]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype.validate=function(t,e){if(void 0===t&&(t=!1),void 0===e&&(e=this.getValue()),!t&&!this.events.fire(d.ItemEvent.beforeValidate,[e]))return!1;var i=!0;return this.config.required&&(i=!!e.src),"function"==typeof this.config.validation&&(i=this.config.validation(e)),t||(this.setValidationStatus(i?"success":"error"),this.events.fire(d.ItemEvent.afterValidate,[e,i]),this.paint()),i},e.prototype.clearValidate=function(){this.setValidationStatus(),this.paint()},e.prototype.setProperties=function(t){if(t&&!(0,l.isEmptyObj)(t)&&this.events.fire(d.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.events.fire(d.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype.focus=function(){var t=this;(0,a.awaitRedraw)().then((function(){var e,i,n;null===(n=null===(i=null===(e=t.getRootView())||void 0===e?void 0:e.refs)||void 0===i?void 0:i.input)||void 0===n||n.el.focus(),t.paint()}))},e.prototype.blur=function(){var t=this;(0,a.awaitRedraw)().then((function(){var e,i,n;null===(n=null===(i=null===(e=t.getRootView())||void 0===e?void 0:e.refs)||void 0===i?void 0:i.input)||void 0===n||n.el.blur(),t.paint()}))},e.prototype.destructor=function(){this.events&&this.events.clear(),t.prototype._destructor.call(this),this.unmount()},e.prototype._initView=function(t){this.config=r({size:"medium",labelPosition:"top",width:"content",height:"content",accept:"image/*",fieldName:"file",target:"",alt:"",css:"",label:"",errorMessage:"",successMessage:"",helpMessage:"",icon:"",labelWidth:"",placeholder:"",preMessage:"",removeIcon:!0,circle:!1,readOnly:!1,hiddenLabel:!1,autosend:!1,updateFromResponse:!0},t),this.paint()},e.prototype._initHandlers=function(){var t=this;this._handlers=r({change:function(e){var i,n,o=null===(n=null===(i=e.target)||void 0===i?void 0:i.files)||void 0===n?void 0:n[0];if(!t.config.readOnly&&o){var r=URL.createObjectURL(o);t.setValue({file:o,src:r}),t.config.autosend&&t.validate(!0)&&t.send()}},drop:function(e){var i,n;e.preventDefault();var o=null===(n=null===(i=e.dataTransfer)||void 0===i?void 0:i.files)||void 0===n?void 0:n[0];if(!t.config.readOnly&&o){var r=URL.createObjectURL(o);t._dragover=!1,t.setValue({file:o,src:r}),t.config.autosend&&t.validate(!0)&&t.send()}},dragover:function(e){if(e.preventDefault(),!t.config.readOnly){for(var i=0,n=e.dataTransfer.types;i<n.length;i++){var o=n[i];if("Files"!==o&&"application/x-moz-file"!==o)return}t._dragoverTimeout?clearTimeout(t._dragoverTimeout):t.paint(),t._dragover=!0,t._dragoverTimeout=setTimeout((function(){t._dragover=!1,t._dragoverTimeout=null,t.paint()}),150)}},onfocus:function(){return t.events.fire(d.ItemEvent.focus,[t.getValue()])},onblur:function(){return t.events.fire(d.ItemEvent.blur,[t.getValue()])},onkeydown:function(e){return t.events.fire(d.ItemEvent.keydown,[e])}},this._handlers),this.events.on(d.ItemEvent.change,(function(){return t.paint()}))},e.prototype._draw=function(){var t=this.config,e=t.hidden,i=t.alt,n=t.circle,o=t.size,r=t.label,s=t.value,l=t.readOnly,c=e?" dhx_form-group--hidden":"",u="",d={};return this._dragover&&(u+="dhx_avatar--on-drag "),n&&(u+="dhx_avatar--circle "),o&&"string"!=typeof o?d.width=d.height=o:o&&["small","medium","large"].includes(o)?u+="dhx_avatar-size--".concat(o," "):u+="dhx_avatar-size--medium ",(0,a.el)("div.dhx_form-group.dhx_form-group--avatar",{"aria-label":i||r,role:"img",class:(0,h.getFormItemCss)(this.config,(0,h.isVerify)(this.config),!1)+c},[this._drawLabel(),(0,a.el)("div.dhx_avatar",{class:u,style:d,ondragover:this._handlers.dragover,ondrop:this._handlers.drop},[(null==s?void 0:s.src)?this._drawImage(this.config):this._drawPreview(this.config),!l&&this._drawCover(this.config)]),(0,h.getValidationMessage)(this.config)&&(0,a.el)("span.dhx_input__caption",(0,h.getValidationMessage)(this.config))])},e.prototype._drawImage=function(t){var e=t.alt,i=t.value;return(0,a.el)("img.dhx_avatar__image",{src:null==i?void 0:i.src,alt:e})},e.prototype._drawPreview=function(t){var e=t.icon,i=t.placeholder,n=t.preview,o=[];return e&&o.push((0,a.el)("div.dhx_avatar__preview-icon",{class:e})),i&&o.push((0,a.el)("div.dhx_avatar__preview-placeholder",{"aria-placeholder":i},i)),(0,a.el)("div.dhx_avatar__preview",{style:r({},n&&{"background-image":"url(".concat(n)}||{})},[].concat(o))},e.prototype._drawCover=function(t){var e=this,i=t.accept,n=t.id,o=t.value,r=t.removeIcon;return(0,a.el)("div.dhx_avatar__cover",[(0,a.el)("label.dhx_avatar__cover-upload",[(0,a.el)("input.dhx_avatar__cover-input",{_ref:"input",id:n,accept:i,type:"file",onchange:this._handlers.change,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,onkeydown:this._handlers.onkeydown}),(0,a.el)("i.dhx_avatar__cover-icon.dxi.dxi-vault")]),(null==o?void 0:o.src)&&r&&(0,a.el)("div.dhx_avatar__cover-remove",{onclick:function(){return e.clear()}},[(0,a.el)("i.dhx_avatar__cover-icon.dxi.dxi-delete-forever")])])},e.prototype._createFormData=function(t,e){var i=this.config.fieldName,n=this.config.params,o=new FormData;if(e)for(var r in e)o.append(r,e[r]);if(n)for(var r in n)o.append(r,n[r]);return o.append(i,t.file,t.file.name),o.append(i+"_fullname",t.path+t.file.name),o.append(i+"_id",t.id),o},e}(u.Label);e.Avatar=p},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Fieldset=void 0;var r=i(2),s=i(4),a=i(6),l=i(1),c=i(0),u=function(){function t(t){var e=this;this.events=new r.EventSystem,this.attachments=[],this.propsItem=["label","labelAlignment","align"],this.props=o(o([],a.baseProps,!0),this.propsItem,!0),this.config=n({disabled:!1,hidden:!1,width:"content",height:"content",labelAlignment:"left",label:"",css:""},t),(0,c.awaitRedraw)().then((function(){e.config.disabled&&e.disable()}))}return t.prototype.forEach=function(t,e){void 0===e&&(e=!1);for(var i=e?this.getTreeAttachments(this.getAttachments()):this.attachments,n=0;n<i.length;n++)t.call(this,i[n],n,i)},t.prototype.disable=function(){this.forEach((function(t){return"function"==typeof t.disable&&t.disable()})),this.config.disabled=this.cell.config.$disabled=!0,this.cell.paint()},t.prototype.enable=function(){var t;this.config.disabled=this.cell.config.$disabled=!1,this.attachments.every((function(t){return"function"!=typeof t.isDisabled||t.isDisabled()}))&&this.forEach((function(t){return"function"==typeof t.enable&&t.enable()})),(null===(t=this.parent)||void 0===t?void 0:t.isDisabled())&&this.parent.enable(),this.cell.paint()},t.prototype.isDisabled=function(){return!!this.config.disabled},t.prototype.show=function(){this.config.hidden&&(this.forEach((function(t){return"function"==typeof t.hide&&t.show()})),this.config.hidden=!1,this.cell.show())},t.prototype.hide=function(t){void 0===t&&(t=!1),this.config.hidden&&!t||(this.forEach((function(e){"function"==typeof e.hide&&("checkboxgroup"===e.config.type||"radiogroup"===e.config.type?e.hide(void 0,t):e.hide(t))})),this.config.hidden=!0,this.cell.hide())},t.prototype.isVisible=function(){return!this.config.hidden},t.prototype.setProperties=function(t){if(t&&!(0,l.isEmptyObj)(t)&&this.events.fire(s.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this.props.includes(e)&&(this.config[e]=t[e]);this.events.fire(s.ItemEvent.afterChangeProperties,[this.getProperties()])}},t.prototype.getProperties=function(){for(var t={},e=0,i=this.props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},t.prototype.destructor=function(){this.cell.hide(),this.events.clear(),this.attachments=[]},t.prototype.setCell=function(t){this.cell=t},t.prototype.getCell=function(){return this.cell},t.prototype.setAttachments=function(t){this.attachments=t},t.prototype.getAttachments=function(){return this.attachments},t.prototype.getTreeAttachments=function(t){for(var e=[],i=0;i<t.length;i++){var n=t[i];e.push(n),"fieldset"===n.config.type&&e.push.apply(e,n.getTreeAttachments(n.getAttachments()))}return e},t}();e.Fieldset=u},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.ToggleGroup=void 0;var a=i(4),l=i(95),c=i(9),u=i(0),d=i(6),h=i(2),f=i(1),p=function(t){function e(e,i){var n=t.call(this,e,r({full:!1,multiselect:!1,disabled:!1,hidden:!1,width:"content",height:"content",gap:0,css:"",padding:"",items:[]},i))||this;n.events=new h.EventSystem,n.items=[],n.props=s(s([],d.baseProps,!0),["options","full","gap","multiselect"],!1),n.initView(),n.initHandlers();return n.mount(e,(0,u.create)({render:function(){return n.draw()}})),n}return o(e,t),e.prototype.setValue=function(t){var e;void 0===t&&(t={});var i=this.getValue(),n=Object.entries(t).every((function(t){var e=t[0];return!!t[1]==!!i[e]}));if(!n){if(!this.config.multiselection)for(var o=Object.entries(t).find((function(t){t[0];return t[1]})),s=this.getValue(),l=0,c=Object.entries(s);l<c.length;l++){var u=c[l],d=u[0],h=u[1],f=h;"string"==typeof h&&(f=""),"number"==typeof h&&(f=0),"boolean"==typeof h&&(f=!1),t[d]=o&&o[0]===d?o[1]:f}if(!this.events.fire(a.ItemEvent.beforeChange,[r(r({},this.getValue()),t)]))return!1;for(var p=function(t,i){null===(e=v.items.find((function(e){return e.config.id===t})))||void 0===e||e.setValue(!!i,!0)},v=this,g=0,_=Object.entries(t);g<_.length;g++){var m=_[g];p(m[0],m[1])}this.events.fire(a.ItemEvent.change,[this.getValue()])}},e.prototype.getValue=function(t){if(t){var e=this.items.find((function(e){return e.config.id===t}));if(e)return e.getValue()}var i={};return this.items.forEach((function(t){i[t.config.id]=t.getValue()})),i},e.prototype.isSelected=function(t){if(t){var e=this.items.find((function(e){return e.config.id===t}));if(e)return e.isSelected()}var i={};return this.items.forEach((function(t){i[t.config.id]=t.isSelected()})),i},e.prototype.show=function(t){var e=t&&this.items.find((function(e){return e.config.id===t}));e&&!e.config.hidden||!this.events.fire(a.ItemEvent.beforeShow,[this.getValue(),t])||(e?e.show():this.items.forEach((function(t){return t.show()})),this.config.hidden=!1,this.checkVisibleOrder(!!e),this.events.fire(a.ItemEvent.afterShow,[this.getValue(),t]))},e.prototype.hide=function(t,e){var i=t&&this.items.find((function(e){return e.config.id===t}));this.config.hidden&&!e||i&&i.config.hidden||!this.events.fire(a.ItemEvent.beforeHide,[this.getValue(),t,e])||(i?(i.hide(),this.config.hidden=this.items.every((function(t){return t.config.hidden}))):(this.items.forEach((function(t){return t.hide()})),this.config.hidden=!0),this.checkVisibleOrder(!!i),this.events.fire(a.ItemEvent.afterHide,[this.getValue(),t,e]))},e.prototype.isVisible=function(t){var e=this.items.find((function(e){return e.config.id===t}));return e?e.isVisible():!this.config.hidden},e.prototype.focus=function(t){var e=this;(0,u.awaitRedraw)().then((function(){var i=e.items.find((function(e){return e.config.id===t}))||e.items[0];i&&i.focus()}))},e.prototype.blur=function(){var t=this;(0,u.awaitRedraw)().then((function(){t.items.forEach((function(t){return t.blur()}))}))},e.prototype.disable=function(t){var e=t&&this.items.find((function(e){return e.config.id===t}));this.config.disabled||e&&e.config.disabled||(e?(e.disable(),this.config.disabled=this.items.every((function(t){return t.config.disabled}))):(this.items.forEach((function(t){return t.disable()})),this.config.disabled=!0),this.paint())},e.prototype.enable=function(t){var e,i=t&&this.items.find((function(e){return e.config.id===t}));!i&&!this.config.disabled||i&&!i.config.disabled||(i?null==i||i.enable():this.items.forEach((function(t){return t.enable()})),this.config.disabled=!1,(null===(e=this.parent)||void 0===e?void 0:e.isDisabled())&&this.parent.enable(),this.paint())},e.prototype.isDisabled=function(t){var e=this.items.find((function(e){return e.config.id===t}));return e?e.isDisabled():!!this.config.disabled},e.prototype.setProperties=function(t,e){var i=this.items.find((function(t){return t.config.id===e}));if(t&&!(0,f.isEmptyObj)(t)&&this.events.fire(a.ItemEvent.beforeChangeProperties,[r(r({},i?i.getProperties():this.getProperties()),t)])){if(i)i.setProperties(t);else for(var n in t)this.props.includes(n)&&(this.config[n]=t[n]);this.events.fire(a.ItemEvent.afterChangeProperties,[i?i.getProperties():this.getProperties()])}},e.prototype.getProperties=function(t){if(t){var e=this.items.find((function(e){return e.config.id===t}));if(e)return e.getProperties()}for(var i={},n=0,o=this.props;n<o.length;n++){var r=o[n];i[r]=this.config[r]}return i},e.prototype.destructor=function(){this.events.clear(),this.unmount()},e.prototype.initView=function(){var t,e=this;if(!(null===(t=this.config.options)||void 0===t?void 0:t.length))throw new Error("Check the configuration is correct");this.items=this.config.options.map((function(t,i){return t.id||(t.id=t.name||(0,f.uid)()),e.config.gap&&(t.$gap=i&&e.config.gap),new l.ToggleButton(null,r(r({},t),{$group:!0}))})),this.config.value&&this.setValue(this.config.value),this.checkVisibleOrder()},e.prototype.initHandlers=function(){var t=this;this.items.forEach((function(e){e.events.on(a.ItemEvent.keydown,(function(i){t.events.fire(a.ItemEvent.keydown,[i,e.config.id])})),e.events.on(a.ItemEvent.focus,(function(){t.events.fire(a.ItemEvent.focus,[t.getValue(),e.config.id])})),e.events.on(a.ItemEvent.blur,(function(){t.events.fire(a.ItemEvent.blur,[t.getValue(),e.config.id])})),e.events.on(a.ItemEvent.beforeChange,(function(i){var n;return"string"==typeof e.config.value&&(i=i?e.config.value:""),"number"==typeof e.config.value&&(i=i?e.config.value:0),t.setValue(((n={})[e.config.id]=i,n))}))}))},e.prototype.draw=function(){var t=this.config,e=t.hidden,i=t.id,n=t.name,o=t.full,r=t.gap,s=this.items.map((function(t){return(0,u.inject)(t.getRootView())}));return(0,u.el)("div.dhx_form-group.dhx_form-group--toggle-group.dhx_toggle-group",{"data-dhx-id":n||i,"aria-label":n||i,role:"group",class:(e?"dhx_form-group--hidden ":"")+(o?"dhx_toggle-group--full ":"")+(r?"dhx_toggle-group--segmented ":"")+(0,d.getFormItemCss)(this.config)},[].concat(s))},e.prototype.checkVisibleOrder=function(t){var e=this.items.map((function(t){return delete t.config.$extraCss,t})).filter((function(t){return!t.config.hidden}));if(e.length){var i=this.items.findIndex((function(t){return t.config.id===e[0].config.id})),n=this.items.findIndex((function(t){return t.config.id===e[e.length-1].config.id}));this.items[i].config.$extraCss="dhx_toggle--first ",this.items[n].config.$extraCss=this.items[n].config.$extraCss?this.items[n].config.$extraCss+"dhx_toggle--last ":"dhx_toggle--last "}t&&this.items.forEach((function(t){return t.paint()}))},e}(c.View);e.ToggleGroup=p},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.ProForm=void 0;var r=i(91),s=i(4),a=i(11),l=i(212),c=i(6),u=function(t){function e(e,i){return t.call(this,e,i)||this}return o(e,t),e.prototype._initItemHandlers=function(e,i){var n=this;if(t.prototype._initItemHandlers.call(this,e,i),"container"===e.type){var o=this._attachments[i]=new l.Container(null,e);o.events.on(s.ItemEvent.beforeChangeProperties,(function(t){return n.events.fire(s.FormEvents.beforeChangeProperties,[i,t])})),o.events.on(s.ItemEvent.afterChangeProperties,(function(t){n._changeProps(i,t,o.config),n.events.fire(s.FormEvents.afterChangeProperties,[i,t]),n.layout.paint()})),o.events.on(s.ItemEvent.beforeHide,(function(t){if(!t)return n.events.fire(s.FormEvents.beforeHide,[i])})),o.events.on(s.ItemEvent.beforeShow,(function(){return n.events.fire(s.FormEvents.beforeShow,[i])})),o.events.on(s.ItemEvent.afterHide,(function(t){n.layout.getCell(i).hide(),!t&&n.events.fire(s.FormEvents.afterHide,[i])})),o.events.on(s.ItemEvent.afterShow,(function(){n.layout.getCell(i).show(),n.events.fire(s.FormEvents.afterShow,[i])}))}},e.prototype._initUI=function(t){var e=this._attachments={},i={padding:"8px"};this.config.css+=" dhx_form",this._createLayoutConfig(this.config,i),this.layout=new a.ProLayout(t,i),(0,c.setAttacments)(e,this.layout)},e}(r.Form);e.ProForm=u},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Container=void 0;var a=i(0),l=i(10),c=i(4),u=i(2),d=i(1),h=i(11),f=i(6),p=function(t){function e(e,i){var n=t.call(this,e,r({disabled:!1,hidden:!1,width:"content",height:"content",label:"",labelWidth:"",labelPosition:"top",hiddenLabel:!1,helpMessage:""},i))||this;if(n.events=new u.EventSystem,n._props=s(s([],f.baseProps,!0),["label","labelWidth","labelPosition","hiddenLabel","helpMessage"],!1),(0,d.isEmptyObj)(i))throw new Error("Check the configuration is correct");n.container&&n.container.destructor();var o={};for(var l in i)"id"!==l&&"type"!==l&&"name"!==l&&"width"!==l&&"height"!==l&&(n.config[l]=i[l],"validation"!==l&&(o[l]=i[l]));n.container=new h.Layout(null,{rows:[o]}),o.html&&n.container.attachHTML(o.html),n.paint();return n.mount(e,(0,a.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype.destructor=function(){this.container.destructor()},e.prototype.attach=function(t){this.container.attach(t)},e.prototype.attachHTML=function(t){this.container.attachHTML(t)},e.prototype.show=function(){this.config.hidden&&this.events.fire(c.ItemEvent.beforeShow,[])&&(this.config.hidden=!1,this.events.fire(c.ItemEvent.afterShow,[]))},e.prototype.hide=function(t){void 0===t&&(t=!1),this.config.hidden&&!t||!this.events.fire(c.ItemEvent.beforeHide,[t])||(this.config.hidden=!0,this.events.fire(c.ItemEvent.afterHide,[t]))},e.prototype.isVisible=function(){return!this.config.hidden},e.prototype.disable=function(){this.config.disabled=!0,this.paint()},e.prototype.enable=function(){var t;this.config.disabled=!1,(null===(t=this.parent)||void 0===t?void 0:t.isDisabled())&&this.parent.enable(),this.paint()},e.prototype.isDisabled=function(){return!!this.config.disabled},e.prototype.setProperties=function(t){if(t&&!(0,d.isEmptyObj)(t)&&this.events.fire(c.ItemEvent.beforeChangeProperties,[this.getProperties()])){for(var e in t)this._props.includes(e)&&(this.config[e]=t[e]);this.events.fire(c.ItemEvent.afterChangeProperties,[this.getProperties()]),this.paint()}},e.prototype.getProperties=function(){for(var t={},e=0,i=this._props;e<i.length;e++){var n=i[e];t[n]=this.config[n]}return t},e.prototype._getRootView=function(){return this.container.getRootView()},e.prototype._draw=function(){var t=this.config,e=t.name,i=t.id;return(0,a.el)(".dhx_form-group.dhx_form-group--container",{class:(0,f.getFormItemCss)(this.config),"data-dhx-id":e||i},[this._drawLabel(),(0,a.inject)(this._getRootView())])},e}(l.Label);e.Container=p},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.getTreeCell=void 0,o(i(96),e),o(i(229),e),o(i(8),e),o(i(26),e);var r=i(32);Object.defineProperty(e,"getTreeCell",{enumerable:!0,get:function(){return r.getTreeCell}}),o(i(18),e),o(i(16),e)},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Exporter=void 0;var r=i(16),s=i(7),a=i(1),l=i(15),c=i(3),u=i(0);var d=function(){function t(t,e,i){this._name=t,this._version=e,this._view=i}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.xlsx=function(t){return this._export(t)},t.prototype.csv=function(t){var e;void 0===t&&(t={}),t=n({asFile:!0,rowDelimiter:"\n",columnDelimiter:",",skipHeader:0},t),e="getRoot"in this._view.data&&t.flat?this.getFlatCSV(t):this._getCSV(t);var i=t.name||"grid_export";return t.asFile&&(0,a.downloadFile)(e,"".concat(i,".csv"),"text/csv"),e},t.prototype._export=function(t){var e=this;void 0===t&&(t={});for(var i=this._view.config.columns.filter((function(t){return!t.hidden})),n={},o=(0,r.transpose)(i.map((function(t){return t.header.map((function(t){return t.text||" "}))}))),s=[],a={default:{color:"#000000",background:"#FFFFFF",fontSize:14,bold:!1}},c=[],u={},d={},h=this._view.data.serialize().map((function(t,o){var s=e._view.data.getItem(t.id);s.$css&&(d[s.id]=s.$css),n[t.id]=o;var a=i.map((function(e,i){if(u[e.id]=i,t[e.id]instanceof Date){var n=e.format||"%M %d %Y";"string"==typeof t[e.id]?t[e.id]=(0,l.getFormattedDate)(n,(0,l.stringToDate)(t[e.id],n)):"object"==typeof t[e.id]&&(t[e.id]=(0,l.getFormattedDate)(n,t[e.id]))}return t[e.id]||i||!t.$groupName?(0,r.removeHTMLTags)(t[e.id]):"^ ".concat(t.$groupName)}));return a})),f=[],p=this._view.content,v=function(t){if(t.footer){var e=t.id,o=g._view.data.serialize().reduce((function(t,i){return void 0===i[e]||""===i[e]||isNaN(i[e])||t.push(parseFloat(i[e])),t}),[]),l=o;if("tree"===g._view.config.type){var u=g._view.data;l=u.serialize().reduce((function(t,i){if(0===i.$level)if(void 0===i[e]||""===i[e]||isNaN(i[e])){var n=0;u.eachChild(i.id,(function(t){u.haveItems(t.id)||(n+=parseFloat(t[e]))})),t.push(n)}else t.push(parseFloat(i[e])||0);return t}),[])}if(t.footer[0].content){var h=p[t.footer[0].content].calculate(o,l);f.push((null==h?void 0:h.toString())||" ")}else f.push(t.footer[0].css||t.footer[0].text||" ")}var v="number"===t.type||"percent"===t.type?"right":t.align;for(var _ in s.push({width:t.$width,align:v}),t.$cellCss){var m="dhx_grid-cell ".concat(t.$cellCss[_].trim()),y=g._getHash(m),b="dhx_grid-row";if(d[_]&&(b+=" ".concat(d[_].trim())),!a[y])(w=(0,r.getStyleByClass)(m,b,a.default))&&(a[y]=w);a[y]&&c.push([n[_],i.indexOf(t),y])}for(var _ in d)if(!t.$cellCss[_]){var w,x=g._getHash(d[_]);b="dhx_grid-row ".concat(d[_].trim());if(!a[x])(w=(0,r.getStyleByClass)("dhx_grid-cell",b,a.default))&&(a[x]=w);a[x]&&c.push([n[_],i.indexOf(t),x])}},g=this,_=0,m=i;_<m.length;_++){v(m[_])}f.length&&h.push(f);var y={name:t.name||"data",columns:s,header:o,data:h,styles:{cells:c,css:a}};if(t.url){var b=document.createElement("form");b.setAttribute("target","_blank"),b.setAttribute("action",t.url),b.setAttribute("method","POST"),b.style.visibility="hidden";var w=document.createElement("textarea");w.setAttribute("name","data"),w.value=JSON.stringify(y),b.appendChild(w),document.body.appendChild(b),b.submit(),setTimeout((function(){b.parentNode.removeChild(b)}),100)}return y},t.prototype.getFlatCSV=function(t){var e=this._view.data,i=e.getRoot(),n=this._view.config.columns[0],r=e.getMaxLevel(),a="";e.eachChild(i,(function(i){var o=function(t,e){for(var i=[],o=0;o<=r;o++)if(t&&t[n.id]){i[t.$level]=t[n.id];var s=e.getParent(t.id,!0);t=s&&s.id?s:null}else i[o]="";return i}(i,e).join(t.columnDelimiter);a+=o+Object.keys(i).reduce((function(e,n,o){return"id"===n||"parent"===n||n.startsWith("$")||0===o?e:e+t.columnDelimiter+(null===i[n]?"":i[n])}),""),a+=t.rowDelimiter}));var l=this._export(t),c=function(t,e){for(var i=0;i<t.length;i++)t[i]=e;return t}(new Array(r+1),""),u=l.header.map((function(t){return t.splice.apply(t,o([0,1],c,!1)),t}));return new s.CsvDriver(t).serialize(u,!0)+t.rowDelimiter+a},t.prototype._getCSV=function(t){var e=this._export(t),i=e.header,n=new s.CsvDriver(t);return n.serialize(i,!0)+"\n"+n.serialize(e.data,!0)},t.prototype._rawExport=function(t,e,i){var o;void 0===t&&(t={});var r=document.createElement("div");r.setAttribute("style","display: none;");var s=i.config,l=s.$headerHeight,d=void 0===l?0:l,h=s.$footerHeight,f=void 0===h?0:h,p=s.$totalHeight,v=void 0===p?0:p,g=s.$footer,_=s.columns,m="",y=i.config.exportStyles;if(("boolean"==typeof t.exportStyles||Array.isArray(t.exportStyles))&&(y=t.exportStyles),t.url=t.url||"https://export.dhtmlx.com/"+this._name+"/"+e+"/"+this._version,"pdf"===e){var b=t.pdf;t.pdf=n(n({},b),{printBackground:!1,format:null!==(o=null==b?void 0:b.format)&&void 0!==o?o:"A4"})}var w=i.config.$totalWidth,x=v+d;g&&(x+=f);for(var E=[],C=0;C<_.length;C++){var S=_[C];E.push(n(n({},S),{width:S.$width}))}var k=n(n({},i.config),{width:w,height:x,columns:E,data:i.data.getRawData(0,-1,null,2),keyNavigation:!1,selection:!1,resizable:!1}),O=new i.constructor(r,(0,a.getCloneObject)(k));(0,u.awaitRedraw)().then((function(){!0===y?m="".concat((0,c.getPageLinksCss)(),"<style>").concat((0,c.getPageInlineCss)(),"</style>"):Array.isArray(y)&&y.length&&(m="".concat((0,c.getPageLinksCss)(y)));var i=r.children[0];null==i||i.setAttribute("data-dhx-theme",t.theme||"light"),"png"===e&&(null==i||i.setAttribute("style","width: ".concat(w,"px;")));var n="\n\t\t\t\t\t".concat(m,"\n\t\t\t\t\t").concat(r.innerHTML,"\n\t\t\t\t"),o=document.createElement("form");o.setAttribute("method","POST"),o.setAttribute("action",t.url),o.innerHTML='<input type="hidden" name="raw"><input type="hidden" name="config">',o.childNodes[0].value=n,o.childNodes[1].value=JSON.stringify(t),document.body.appendChild(o),o.submit(),setTimeout((function(){var t,e;O.destructor(),null===(t=r.parentNode)||void 0===t||t.removeChild(r),null===(e=o.parentNode)||void 0===e||e.removeChild(o)}),100)})).catch((function(){var t;O.destructor(),null===(t=r.parentNode)||void 0===t||t.removeChild(r)}))},t.prototype._getHash=function(t){return t.split("").reduce((function(t,e){var i=(t<<5)-t+e.charCodeAt(0);return Math.abs(i&i)}),0).toString()},t}();e.Exporter=d},function(t,e,i){"use strict";var n=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Selection=void 0;var o=i(0),r=i(7),s=i(1),a=i(2),l=i(8),c=i(21),u=i(24),d=i(16),h=i(26),f=function(){function t(t,e,i,n){this._grid=t,this.config=e||{},this._gridId=n,this._selectedCell=null,this._selectedCells=[],this._type=["cell","row","complex"].includes(this._grid.config.selection)&&this._grid.config.selection||"complex",this._multiselection=!!t.config.multiselection,this.events=i||new a.EventSystem(this),this._init()}return t.prototype.setCell=function(t,e,i,r){var s,a,l,u,d,h,f,p,v,g,_,m,y=this;void 0===i&&(i=!1),void 0===r&&(r=!1);var b="tree"===this._grid.config.type;if(this._gridId&&c.focusManager.getFocusId()!==this._gridId&&c.focusManager.setFocusId(this._gridId),"row"===this._type&&(null===(l=this._selectedCells[0])||void 0===l?void 0:l.row.id)===((null==t?void 0:t.id)||t)||"row"!==this._type&&(null===(u=this._selectedCells[0])||void 0===u?void 0:u.row.id)===((null==t?void 0:t.id)||t)&&(null===(d=this._selectedCells[0])||void 0===d?void 0:d.column.id)===((null==e?void 0:e.id)||e))i&&(this._removeCell(null===(h=this._selectedCells[0])||void 0===h?void 0:h.row,null===(f=this._selectedCells[0])||void 0===f?void 0:f.column),(0,o.awaitRedraw)().then((function(){y._grid.paint(),y._setBrowserFocus()})));else if(!(this.config.disabled||this._grid.config.$editable||!this._multiselection&&this._selectedCells.length&&!this._removeCell(null===(p=this._selectedCell)||void 0===p?void 0:p.row,null===(v=this._selectedCell)||void 0===v?void 0:v.column))){if(this._multiselection){if(i||r||this._removeCells(),this._selectedCells.find((function(i){return"row"===y._type?i.row.id===((null==t?void 0:t.id)||t):i.row.id===((null==t?void 0:t.id)||t)&&i.column.id===((null==e?void 0:e.id)||e)})))return void this.removeCell((null==t?void 0:t.id)||t,(null==e?void 0:e.id)||e);r&&this._selectedCells.length>1&&!b&&n([],this._selectedCells,!0).forEach((function(t,e){var i=t.row,n=t.column;e>0&&y.removeCell(i.id,n.id)}))}t=this._grid.data.getItem(t&&t.id||t);var w=null===(_=null===(g=this._grid.config)||void 0===g?void 0:g.columns)||void 0===_?void 0:_.filter((function(t){return!t.hidden}));if(e||(e=null==w?void 0:w[0]),(e=this._grid.getColumn(e.id||e))&&t){if(this._multiselection&&r&&this._selectedCells.length&&!b){var x=null===(m=this._selectedCells)||void 0===m?void 0:m[0],E=this._grid.data.getIndex(x.row.id),C=this._grid.data.getIndex(t.id);if(E>C&&(E=(s=[C,E])[0],C=s[1]),"cell"===this._type||"complex"===this._type){var S=w.map((function(t){return t.id})),k=S.indexOf(x.column.id),O=S.indexOf(e.id);if(-1!==k&&-1!==O){k>O&&(k=(a=[O,k])[0],O=a[1]);var P=w.slice(k,O+1);this._grid.data.mapRange(E,C,(function(t){P.forEach((function(e){-1===y._findIndex({row:t,column:e})&&y._setCell(t,e)}))}))}}else this._grid.data.mapRange(E,C,(function(t){-1===y._findIndex({row:t,column:e})&&y._setCell(t,e)}))}else this._setCell(t,e);(0,o.awaitRedraw)().then((function(){y._grid.paint(),y._setBrowserFocus()}))}}},t.prototype.removeCell=function(t,e){var i=this;if(t&&e&&("cell"===this._type||"complex"===this._type)){var n=this._selectedCells.find((function(i){var n=i.row,o=i.column;return n.id==t&&o.id==e}));n&&this._removeCell(n.row,n.column)}else if(t){this._selectedCells.filter((function(e){return e.row.id==t})).forEach((function(t){var e=t.row,n=t.column;i._removeCell(e,n)}))}else this._removeCells();(0,o.awaitRedraw)().then((function(){i._grid.paint()}))},t.prototype.getCell=function(){return this._selectedCell},t.prototype.getCells=function(){return this._selectedCells},t.prototype.disable=function(){this.removeCell(),this.config.disabled=!0,this._grid.paint()},t.prototype.enable=function(){this.config.disabled=!1,this._grid.paint()},t.prototype.toHTML=function(){var t=this;if(!this._isUnselected()){if(this._multiselection){var e=[],i={};return this._selectedCells.forEach((function(n,o,r){var s=(0,h.normalizeCell)(n,t._grid);e.push(t._toHTML(s.row,s.column,o===r.length-1||"cell"===t._type||"complex"===t._type,i[n.row.id])),i[n.row.id]=!0})),e}var n=(0,h.normalizeCell)(this._selectedCell,this._grid);return this._toHTML(n.row,n.column,!0)}},t.prototype._setCell=function(t,e){t&&e&&(0,s.isDefined)(t.id)&&(0,s.isDefined)(e.id)&&this.events.fire(l.GridSelectionEvents.beforeSelect,[t,e])&&(this._selectedCell={row:t,column:e},this._multiselection?this._selectedCells.push(this._selectedCell):this._selectedCells=[this._selectedCell],this.events.fire(l.GridSelectionEvents.afterSelect,[t,e]))},t.prototype._removeCell=function(t,e,i){var n,o;if(void 0===i&&(i=!1),!(t&&e&&(0,s.isDefined)(t.id)&&(0,s.isDefined)(e.id)))return!1;if(!i&&!this.events.fire(l.GridSelectionEvents.beforeUnSelect,[t,e]))return!1;var r=this._selectedCells.findIndex((function(i){return i.row.id===t.id&&i.column.id===e.id}));return this._selectedCells.splice(r,1),this._selectedCell&&e.id===this._selectedCell.column.id&&t.id===this._selectedCell.row.id&&(this._selectedCell=(null===(n=this._selectedCells)||void 0===n?void 0:n[(null===(o=this._selectedCells)||void 0===o?void 0:o.length)-1])||null),!i&&this.events.fire(l.GridSelectionEvents.afterUnSelect,[t,e]),!0},t.prototype._removeCells=function(t){var e=this;void 0===t&&(t=!1),n([],this._selectedCells,!0).forEach((function(i){e._removeCell(null==i?void 0:i.row,null==i?void 0:i.column,t)}))},t.prototype._init=function(){var t=this;this._grid.events.on(l.GridEvents.cellClick,(function(e,i,n){t.setCell(e,i,n.ctrlKey||n.metaKey,n.shiftKey)})),this._grid.data.events.on(r.DataEvents.beforeRemove,(function(e){var i,n;if(e&&t._selectedCell&&t._selectedCell.row&&t._selectedCell.row.id===e.id){var o=void 0,a=t._grid.data.getIndex(e.id);if(t._grid.data instanceof r.TreeCollection){var l=t._grid.data.getItems(e.parent);o=(null===(i=l[a+1])||void 0===i?void 0:i.id)||(null===(n=l[a-1])||void 0===n?void 0:n.id)||e.parent}else o=t._grid.data.getId(a+1)||t._grid.data.getId(a-1);(0,s.isId)(o)&&(t.setCell(o),t._grid.paint())}})),this._grid.data.events.on(r.DataEvents.removeAll,(function(){t._removeCells()})),this._grid.data.events.on(r.DataEvents.load,(function(){t._removeCells(!0)}))},t.prototype._toHTML=function(t,e,i,n){var r,a,c,h,f,p,v,g,_,m,y,b,w;void 0===i&&(i=!1),void 0===n&&(n=!1);var x=this._grid.data.getRawData(0,-1,null,2);if(-1===(0,s.findIndex)(x,(function(e){return e.id==t.id})))return null;var E,C,S,k,O=this._grid.config,P=O.topSplit,I=O.bottomSplit,D=O.$totalWidth,M=O.$totalHeight,T=O.columns,V=null==T?void 0:T.filter((function(t){return!t.hidden})),H={left:(0,u.getCurrFixedCols)(this._grid.config,l.Split.left),right:(0,u.getCurrFixedCols)(this._grid.config,l.Split.right)},j=this._grid.data.getLength(),F={top:P?this._grid.data.getRawData(0,P):[],bottom:I?this._grid.data.getRawData(j-I,j):[]},R={left:null===(r=null==H?void 0:H.left)||void 0===r?void 0:r.map((function(t){return t.id})),right:null===(a=null==H?void 0:H.right)||void 0===a?void 0:a.map((function(t){return t.id}))},A={top:F.top.map((function(t){return t.id})),bottom:F.bottom.map((function(t){return t.id}))},L=null===(c=null==H?void 0:H.left)||void 0===c?void 0:c.reduce((function(t,e){return t+(e.$width||0)}),0),$=null===(h=null==H?void 0:H.right)||void 0===h?void 0:h.reduce((function(t,e){return t+(e.$width||0)}),0),N=F.top.reduce((function(t,e){return t+e.$height}),0),z=F.bottom.reduce((function(t,e){return t+e.$height}),0),W=this._grid.getCellRect(t.id,e.id),B=this._grid.getScrollState(),G=W.y,q=null===(f=A.top)||void 0===f?void 0:f.includes(t.id),Y=null===(p=R.left)||void 0===p?void 0:p.includes(e.id),X=H.left.length&&L>W.x-B.x,U=F.top.length&&N>W.y-B.y,K=W.width,J=W.height-1,Z=null,Q=null,tt=X?L+B.x:W.x;if(X&&(K-=(Y?(0,d.getTotalWidth)(H.left.slice(0,V.indexOf(e))):L)-(W.x-B.x)),U&&(J-=(q?(0,d.getTotalHeight)(F.top.slice(0,x.indexOf(t))):N)-(W.y-B.y)-1,G+=W.height-J),q)if(G=W.y+B.y,(it=this._grid.getSpan(t.id,e.id))&&it.rowspan>1){var et=x.indexOf(t);Z=(0,d.getTotalHeight)(F.top.slice(et,et+it.rowspan))}else J=P===A.top.indexOf(t.id)+1?W.height-1:W.height;if(Y)if(tt=W.x+B.x,(it=this._grid.getSpan(t.id,e.id))&&it.colspan>1){et=null==V?void 0:V.indexOf(e);Q=(0,d.getTotalWidth)(H.left.slice(et,et+it.colspan))}else K=H.left.length===R.left.indexOf(e.id)+1?W.width-1:W.width;if((null===(v=H.right)||void 0===v?void 0:v.length)||I){var it=this._grid.getSpan(t.id,e.id),nt=this._getReverseScrollState(B);if((null===(g=H.right)||void 0===g?void 0:g.length)&&(E=(null===(_=R.right)||void 0===_?void 0:_.includes(e.id))||it&&V.indexOf(e)+(it.colspan||1)>V.length-H.right.length,(C=D-$<nt.x+W.x+W.width)&&!E&&(K-=nt.x+W.x+W.width-D+$),E))if(it&&!(null===(m=R.right)||void 0===m?void 0:m.includes(it.column))){et=V.length-V.indexOf(e)-(it.colspan||1);var ot=D-$;tt=W.x+nt.x<ot+1?W.x:ot-nt.x+1,Q=(0,d.getTotalWidth)(et?H.right.slice(0,-et):H.right)-1,K=W.width-nt.x}else{var rt=(null===(y=R.right)||void 0===y?void 0:y.indexOf(e.id))?0:1;tt=W.x-nt.x+rt,K=W.width-rt}if(I&&(S=A.bottom.includes(t.id)||it&&x.indexOf(t)+(it.rowspan||1)>x.length-I,(k=M-z<nt.y+W.y+W.height)&&!S&&(J-=nt.y+W.y+W.height-M+z),S))if(it&&!A.bottom.includes(it.row)){var st=M-z;rt=(et=x.length-x.indexOf(t)-(it.rowspan||1))?0:1;G=W.y+nt.y<st?W.y:st-nt.y,Z=(0,d.getTotalHeight)(et?F.bottom.slice(0,-et):F.bottom)-rt,J=W.height-nt.y-rt}else G=W.y-nt.y,J=W.height-(I===A.bottom.indexOf(t.id)+1?1:0)}var at=null;"row"!==this._type&&"complex"!==this._type||n||(at=(0,o.el)(".dhx_grid-selected-row",{style:{width:(null===(b=H.left)||void 0===b?void 0:b.length)?D-B.x:D,height:J,minHeight:Z,minWidth:Q,display:J<0&&!Z?"none":"flex",top:G,left:(null===(w=H.left)||void 0===w?void 0:w.length)?B.x:0,position:"absolute"}}));var lt=null;return"cell"!==this._type&&"complex"!==this._type||!i||(lt=(0,o.el)(".dhx_grid-selected-cell",{style:{width:K,height:J,top:G,minHeight:Z,minWidth:Q,left:tt,position:"absolute",display:K<0&&!Q||J<0&&!Z?"none":"flex",borderLeft:X&&!Y?"none":null,borderRight:C&&!E?"none":null,borderTop:U&&!q?"none":null,borderBottom:k&&!S?"none":null}})),(0,o.el)(".dhx_grid-selection",{style:{zIndex:20}},[at,lt])},t.prototype._isUnselected=function(){return!this._selectedCell||!this._selectedCell.row||!this._selectedCell.column||0===this._selectedCells.length},t.prototype._findIndex=function(t){var e=this;void 0===t&&(t=this._selectedCell);var i=-1;return this._selectedCells.some((function(n,o){if("cell"===e._type||"complex"===e._type){if((0,s.compare)(n.row,t.row)&&(0,s.compare)(n.column,t.column))return i=o,!0}else if("row"===e._type&&(0,s.compare)(n.row,t.row))return i=o,!0})),i},t.prototype._setBrowserFocus=function(){var t=this._grid.getRootView().data.getRootNode();if(t){var e=t.querySelector(".dhx_grid_data");if(e&&this._selectedCell&&this._selectedCell.row&&this._selectedCell.column){var i=e.querySelector('[data-dhx-id="'.concat(this._selectedCell.row.id,'"]')),n=this._grid.getSpan(this._selectedCell.row.id,this._selectedCell.column.id);if(i){var o=n?t.querySelector(".dhx_span-spans"):null,r=o?o.querySelector('[data-dhx-col-id="'.concat(n.column,'"][data-dhx-id="').concat(n.row,'"]')):i.querySelector('[data-dhx-col-id="'.concat(this._selectedCell.column.id,'"]'));r&&(r.tabIndex=0,r.focus({preventScroll:!0}))}}}},t.prototype._getReverseScrollState=function(t){var e,i=(0,u.calcScrollBarWidth)(this._grid.config,!!(null===(e=this._grid.scrollView)||void 0===e?void 0:e.config.enable)),n=this._grid.config.$totalWidth-this._grid.config.$width+u.BORDERS+i.y,o=this._grid.config.$totalHeight-this._grid.config.$height+this._grid.config.$headerHeight+this._grid.config.$footerHeight+u.BORDERS+i.x;return{x:n>0?n-t.x:0,y:o>0?o-t.y:0}},t}();e.Selection=f},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEditor=void 0;var n,o=i(8),r=i(217),s=i(218),a=i(219),l=i(220),c=i(221),u=i(222),d={cell:{row:null,col:null},editor:null,gridId:null};e.getEditor=function(t,e,i,h){var f="boolean"===e.type?"checkbox":i.$editable.editorType;if(void 0===f&&(f=i.autoHeight?"textarea":"input"),d.cell.row===t.id&&d.cell.col===e.id&&d.gridId===i.gridId&&i.$editable.editor)return d.editor;switch("checkbox"!==f&&(d={cell:{row:t.id,col:e.id},editor:d.editor,gridId:i.gridId}),n||(n=function(){d={cell:{row:null,col:null},editor:null,gridId:null}},i.events.on(o.GridEvents.afterEditEnd,n)),f){case"input":default:return d.editor=new r.InputEditor(t,e,i);case"textarea":return d.editor=new u.TextAreaEditor(t,e,i,h);case"select":return d.editor=new s.SelectEditor(t,e,i);case"datePicker":return d.editor=new a.DateEditor(t,e,i);case"checkbox":return new l.CheckboxEditor(t,e,i);case"multiselect":case"combobox":return d.editor=new c.ComboboxEditor(t,e,i)}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InputEditor=void 0;var n=i(0),o=i(8),r=i(1),s=function(){function t(t,e,i){this.prevValue="",this._config=i,this._cell={row:t,col:e},this.type=e.type,this._initHandlers()}return t.prototype.endEdit=function(t){if(this._config.$editable){var e;if(!t&&(e=this._input.value,"number"===this.type))if(e=parseFloat(e),Number.isNaN(e))e="";else{var i=this._cell.col.editorConfig,n=parseFloat(null==i?void 0:i.min),s=parseFloat(null==i?void 0:i.max);(0,r.isDefined)(null==i?void 0:i.min)&&e<n&&(e=n),(0,r.isDefined)(null==i?void 0:i.max)&&e>s&&(e=s)}this._config.events.fire(o.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.$editable=null,this._config.events.fire(o.GridEvents.afterEditEnd,[e,this._cell.row,this._cell.col])):this._input.focus()}},t.prototype.toHTML=function(t){return(0,r.isDefined)(t)&&(this.type="string"),t=null!=t?t:this._cell.row[this._cell.col.id],this._input&&(t=this._input.value),this._config.$editable.editor=this,(0,n.el)("input.dhx_cell-editor.dhx_cell-editor__input",{_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor",onblur:this._handlers.onBlur,oninput:this._handlers.onInput,value:t})},t.prototype._initHandlers=function(){var t=this;this._handlers={onBlur:function(){t.endEdit()},onInput:function(){if("number"===t.type){var e=t._input.value;t.isValidWord(e)?t.prevValue=e:t._input.value=t.prevValue,!t.prevValue.length||"-"===t.prevValue||t.isCorrectRange(parseFloat(t.prevValue))?t._input.classList.remove("dhx_cell-editor__input--not-valid"):t._input.classList.add("dhx_cell-editor__input--not-valid")}},didInsert:function(e){t._input=e.el,t._input.focus()}}},t.prototype.isValidWord=function(t){var e,i=null===(e=t[t.length-1])||void 0===e?void 0:e.toLocaleLowerCase(),n=function(t,e){return t.toLocaleLowerCase().split(e.toLocaleLowerCase()).length-1};return!t.length||"-"===t||"."===t||!isNaN(Number(t))&&t.trim().length===t.length||t.replace("-","").length>1&&"e"===i&&!n(this.prevValue,"e")||t.replace("-","").length>1&&"e"===i&&1===n(t,"e")},t.prototype.isCorrectRange=function(t){var e=!0,i=this._cell.col.editorConfig,n=parseFloat(null==i?void 0:i.min),o=parseFloat(null==i?void 0:i.max);return(0,r.isDefined)(null==i?void 0:i.min)&&(0,r.isDefined)(null==i?void 0:i.max)?e=t>=n&&t<=o:(0,r.isDefined)(null==i?void 0:i.min)?e=t>n:(0,r.isDefined)(null==i?void 0:i.max)&&(e=t<o),e},t}();e.InputEditor=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectEditor=void 0;var n=i(0),o=i(8),r=i(18),s=function(){function t(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}return t.prototype.endEdit=function(t){var e;this._config.$editable&&(t||(e=this._input.value),this._config.events.fire(o.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(this._input.removeEventListener("blur",this._handlers.onBlur),this._input.removeEventListener("keydown",this._handlers.onkeydown),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.$editable=null,this._config.events.fire(o.GridEvents.afterEditEnd,[e,this._cell.row,this._cell.col])):this._input.focus())},t.prototype.toHTML=function(){var t=(0,r.getEditorOptions)(this._cell.col,this._cell.row).map((function(t){return"string"==typeof t?{id:"".concat(t),value:t}:t}))||[],e=this._cell.row[this._cell.col.id];this._input&&(e=this._input.options[this._input.selectedIndex].value);var i=t.map((function(t){return(0,n.el)("option",{selected:t.id.toString()===(null==e?void 0:e.toString()),value:t.id},t.value)}));return this._config.$editable.editor=this,(0,n.el)("select.dhx_cell-editor.dhx_cell-editor__select",{_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor"},i)},t.prototype._initHandlers=function(){var t=this;this._handlers={onBlur:function(){t.endEdit()},onkeydown:function(e){"Escape"===e.key&&t.endEdit()},didInsert:function(e){var i=e.el;t._input=i,i.focus(),i.addEventListener("blur",t._handlers.onBlur),i.addEventListener("keydown",t._handlers.onkeydown)}}},t}();e.SelectEditor=s},function(t,e,i){"use strict";var n=this&&this.__rest||function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]])}return i};Object.defineProperty(e,"__esModule",{value:!0}),e.DateEditor=void 0;var o=i(0),r=i(8),s=i(36),a=i(15),l=i(13),c=function(){function t(t,e,i){var n=this;this._config=i,this._cell={row:t,col:e},this._calendar=new s.Calendar(null,this._cleanConfig(e));var o=this._cell.row[this._cell.col.id],r=this._calendar.config.dateFormat;((0,a.stringToDate)(o,r,!0)||o instanceof Date)&&(this._calendar.setValue(o),this._value=this._calendar.getValue(),this._cell.row[this._cell.col.id]=this._value),this._popup=new l.Popup,this._popup.attach(this._calendar),this._calendar.events.on(s.CalendarEvents.change,(function(){n.endEdit(!1,!0)})),this._popup.events.on(l.PopupEvents.afterHide,(function(){n.endEdit()})),this._initHandlers()}return t.prototype.endEdit=function(t,e){var i=this;if(this._handlers&&this._config.$editable){var n=this._calendar.config.dateFormat,s=this._cell.row[this._cell.col.id],l=this._input.value;if(!t){if(s instanceof Date||e)return this._value=this._calendar.getValue(),this._input.value=this._value,void this._popup.hide();!(0,a.stringToDate)(l,n,!0)&&l||(!s||l.length!==s.length)&&s&&l||(this._value=l)}this._config.events.fire(r.GridEvents.beforeEditEnd,[this._value,this._cell.row,this._cell.col])?(this._input.removeEventListener("focus",this._handlers.onFocus),this._input.removeEventListener("change",this._handlers.onChange),document.removeEventListener("mousedown",this._handlers.onOuterClick),(0,o.awaitRedraw)().then((function(){i._popup.destructor(),i._calendar.destructor()})),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.$editable=null,this._config.events.fire(r.GridEvents.afterEditEnd,[this._value,this._cell.row,this._cell.col])):this._input.focus()}},t.prototype.toHTML=function(){var t=this._cell.row[this._cell.col.id];return this._config.$editable.editor=this,document.addEventListener("mousedown",this._handlers.onOuterClick),(0,o.el)("input.dhx_cell-editor.dhx_cell-editor__input.dhx_cell-editor__datepicker",{_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor",value:t})},t.prototype._cleanConfig=function(t){var e=t.editorConfig||{},i=(e.value,e.range,e.dateFormat,n(e,["value","range","dateFormat"]));return i.dateFormat=t.format,i},t.prototype._initHandlers=function(){var t=this;this._handlers={onFocus:function(){(0,o.awaitRedraw)().then((function(){t._popup.show(t._input,{centering:!0,mode:"bottom",theme:t._input})}))},onChange:function(){t.endEdit()},onOuterClick:function(e){if(e.target instanceof Node){var i=t._input&&t._input.contains(e.target),n=t._popup&&t._popup.getRootNode()&&t._popup.getRootNode().contains(e.target);i||n||t._popup.hide()}},didInsert:function(e){var i=e.el;t._input=i,t._input.addEventListener("focus",t._handlers.onFocus),t._input.addEventListener("change",t._handlers.onChange),i.focus(),i.setSelectionRange(i.value.length,i.value.length)}}},t}();e.DateEditor=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CheckboxEditor=void 0;var n=i(1),o=i(0),r=i(8),s=function(){function t(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}return t.prototype.endEdit=function(){var t=this._checked;this._config.events.fire(r.GridEvents.beforeEditEnd,[t,this._cell.row,this._cell.col])?(this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.events.fire(r.GridEvents.afterEditEnd,[t,this._cell.row,this._cell.col])):this._input.checked=!t},t.prototype.toHTML=function(){void 0===this._checked&&(this._checked=this._cell.row[this._cell.col.id]);var t=(0,n.uid)();return(0,o.el)("div.dhx_checkbox.dhx_cell-editor__checkbox",[(0,o.el)("label",{style:{display:"none"},for:t},this._checked||"false"),(0,o.el)("input.dhx_checkbox__input",{type:"checkbox",_hooks:{didInsert:this._handlers.didInsert},_key:"cell_editor","data-dhx-id":"cell_editor","data-dhx-checked":(!!this._checked).toString(),checked:this._checked,id:t,style:{userSelect:"none"}}),(0,o.el)("span.dhx_checkbox__visual-input")])},t.prototype._initHandlers=function(){var t=this;this._handlers={onClick:function(){var e=!t._input.checked;t._config.events.fire(r.GridEvents.beforeEditStart,[t._cell.row,t._cell.col,"checkbox"])?(t._checked=e,t._config.events.fire(r.GridEvents.afterEditStart,[t._cell.row,t._cell.col,"checkbox"]),t.endEdit()):t._input.checked=!e},didInsert:function(e){t._checkbox=e.el.parentNode.lastChild,t._input=e.el.parentNode.querySelector("input"),e.el.parentNode.addEventListener("click",t._handlers.onClick)}}},t}();e.CheckboxEditor=s},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ComboboxEditor=void 0;var o=i(0),r=i(8),s=i(38),a=i(21),l=i(18),c=function(){function t(t,e,i){this._config=i,this._cell={row:t,col:e},this._initHandlers()}return t.prototype.endEdit=function(t){var e=this;if(this._config.$editable){var i;if(!t){var n=this._input.getValue();i="multiselect"===this._cell.col.editorType?n.split(",").join(", "):n}if(this._config.events.fire(r.GridEvents.beforeEditEnd,[i,this._cell.row,this._cell.col])){var o=(0,l.getEditorOptions)(this._cell.col,this._cell.row);this._input.popup.hide(),document.removeEventListener("mousedown",this._handlers.onOuterClick),this._cell.row=this._config.datacollection.getItem(this._cell.row.id),a.focusManager.setFocusId(this._config.gridId),null==i||i.toString().split(", ").forEach((function(t){var i=o.find((function(e){return"string"==typeof e?e===t:e.id.toString()===t}));t&&!i&&(e._cell.col.$customOptions||(e._cell.col.$customOptions=[]),e._cell.col.$customOptions.push(e._input.data.getItem(t)))})),this._config.$editable=null,this._config.events.fire(r.GridEvents.afterEditEnd,[i,this._cell.row,this._cell.col])}else this._input.focus()}},t.prototype.toHTML=function(){var t=this,e=(0,l.getEditorOptions)(this._cell.col,this._cell.row).map((function(t){return"string"==typeof t?{id:"".concat(t),value:t}:t}))||[];if(!this._input){this._input=new s.ProCombobox(null,n({itemHeight:37,css:"dhx_cell-editor__combobox",multiselection:"multiselect"===this._cell.col.editorType,htmlEnable:this._cell.col.htmlEnable},this._cell.col.editorConfig)),this._input.data.parse(e);var i=this._cell.row[this._cell.col.id],r="multiselect"===this._cell.col.editorType?((null==i?void 0:i.toString())||"").split(", "):i;this._input.setValue(r),this._input.events.on("keydown",this._handlers.onkeydown),this._input.data.events.on("beforeAdd",(function(e){if(e.id!==e.value)return t._input.addOption({id:e.value,value:e.value},!0),!1}))}return document.addEventListener("mousedown",this._handlers.onOuterClick),this._config.$editable.editor=this,(0,o.awaitRedraw)().then((function(){var e=t._input.getRootView().refs.holder.el;t._input.popup.getContainer().style.width=e.offsetWidth+"px",t._input.popup.show(e)})),a.focusManager.setFocusId(this._input._uid),(0,o.inject)(this._input.getRootView())},t.prototype._initHandlers=function(){var t=this;this._handlers={onOuterClick:function(e){if(e.target instanceof Node){var i=t._input&&t._input.getRootNode()&&t._input.getRootNode().contains(e.target),n=t._input.popup&&t._input.popup.getRootNode()&&t._input.popup.getRootNode().contains(e.target);i||n||t.endEdit()}},onkeydown:function(e){"Escape"!==e.key&&"Tab"!==e.key||t.endEdit()}}},t}();e.ComboboxEditor=c},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.TextAreaEditor=void 0;var o=i(0),r=i(8),s=i(1),a=i(18),l=function(){function t(t,e,i,n){this._config=i,this._cell={row:t,col:e},this.type=this._cell.col.type,this._width=this._getCellWidth(n),this._config.firstColId===this._cell.col.id&&this._cell.row.hasOwnProperty("$level")&&(this._width-=(0,a.getTreeCellWidthOffset)(this._cell.row)-12),this._initHandlers()}return t.prototype.endEdit=function(t){var e;this._config.$editable&&(t||(e=this._editor.value,"number"===this.type&&(e=parseFloat(e),Number.isNaN(e)&&(e=""))),this._config.events.fire(r.GridEvents.beforeEditEnd,[e,this._cell.row,this._cell.col])?(this._cell.row=this._config.datacollection.getItem(this._cell.row.id),this._config.$editable=null,this._config.events.fire(r.GridEvents.afterEditEnd,[e,this._cell.row,this._cell.col])):this._editor.focus())},t.prototype.toHTML=function(t){(0,s.isDefined)(t)&&(this.type="string"),t=null!=t?t:this._cell.row[this._cell.col.id],this._editor&&(t=this._editor.value),this._config.$editable.editor=this;var e=void 0!==this._cell.row.height||this._cell.col.htmlEnable?"dhx_cell-editor dhx_cell-editor__textarea_constant-height":"dhx_cell-editor dhx_cell-editor__textarea";return(0,o.el)("textarea",{_hooks:{didInsert:this._handlers.didInsert},_ref:"textarea",_key:"cell_editor","data-dhx-id":"cell_editor",value:t,onblur:this._handlers.onBlur,oninput:this._handlers.onInput,onkeydown:this._handlers.onKeydown,class:e,style:{width:this._width}})},t.prototype._initHandlers=function(){var t=this;this._handlers={onBlur:function(){t.endEdit()},onInput:function(e){t._updateHeight(e,t._editor.value)},onKeydown:function(e){"Escape"===e.key&&t._updateHeight(e,t._initialValue),"Enter"!==e.key||e.shiftKey||e.preventDefault()},didInsert:function(e){t._editor=e.el,t._initialValue=e.el.value,t._editor.focus()}}},t.prototype._getCurrentHeight=function(t,e){e=n({width:100,maxHeight:40,lineHeight:20},e);var i=document.createElement("textarea");i.className="dhx_cell-editor dhx_cell-editor__textarea",i.value=t,i.style.width="".concat(e.width,"px"),i.style.lineHeight="".concat(e.lineHeight,"px"),i.style.maxHeight="".concat(e.maxHeight,"px"),i.style.boxSizing="border-box",document.body.appendChild(i);var o=this._getElementHeight(i),r=i.value.split("\n").length,s=Math.round(o/e.lineHeight),a=o<e.maxHeight?e.maxHeight:o;return document.body.removeChild(i),1===r&&r===s?e.maxHeight:a},t.prototype._getElementHeight=function(t){return t.scrollHeight},t.prototype._getCellWidth=function(t){return t?this._config.columns.slice(t.$colsVisibility[0],t.$colsVisibility[1]+1).reduce((function(t,e){return t+e.$width}),0):this._cell.col.$width},t.prototype._updateHeight=function(t,e){var i,o;if(void 0===this._cell.row.height&&!this._cell.col.htmlEnable){var s=this._getCurrentHeight(e,{width:this._width-2,maxHeight:this._config.rowHeight}),l=n(n({},this._cell.row),((i={})[this._cell.col.id]=e,i)),c=(0,a.getCalculatedRowHeight)((0,a.getMaxRowHeight)(l,this._config.columns)),u=(0,a.getCalculatedRowHeight)((0,a.getMaxRowHeight)(((o={})[this._cell.col.id]=l[this._cell.col.id],o),this._config.columns));if(this._minHeight=c===u?this._config.rowHeight:c,s>=this._minHeight&&s!==this._prevHeight){if(!this._config.events.fire(r.GridEvents.beforeRowResize,[this._cell.row,t,s]))return;this._config.events.fire(r.GridEvents.afterRowResize,[this._cell.row,t,s])}this._prevHeight=s}},t}();e.TextAreaEditor=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getContent=void 0;var n=i(0),o=i(18),r=i(1),s=i(224),a=i(225),l=i(226);function c(t,e){var i=e[t.id];if("combobox"===t.editorType)parseFloat((0,o.getEditorValue)(i,(0,o.getEditorOptions)(t,e)));else if("multiselect"===t.editorType)return NaN;return parseFloat(i)}function u(t,e,i,n){if(t&&e&&i){var o=n?n(t.id,e.data):e.data.reduce((function(e,i){var n=c(t,i);return isNaN(n)||e.push(n),e}),[]),r=o;return"tree"===e.type&&(r=e.data.reduce((function(i,n){var o;if(0===n.$level){var r=c(t,n);if(isNaN(r)){var s=0;null===(o=e.datacollection)||void 0===o||o.eachChild(n.id,(function(i){if(!e.datacollection.haveItems(i.id)){var n=c(t,i);isNaN(n)||(s+=n)}})),i.push(s)}else i.push(r)}return i}),[])),i(o,r)}}e.getContent=function(){return{inputFilter:{element:{},toHtml:function(t,e){var i=this,n=(0,r.uid)(),o=t.id.toString(),s=this.element[o];return s?s.value=this.value[o]:((s=new l.InputFilter(t,e,n,this.value[o])).events.on("change",(function(t){i.value[o]=t})),this.element[o]=s),s.toHTML()},match:function(t){var e=t.val,i=t.match,n=t.col;if(!(0,r.isDefined)(e))return!1;var s=[];(s.push((0,o.toFormat)(e,n.type,n.format)),n.format)&&((l=n.format.lastIndexOf("#"))>0&&s.push((0,o.toFormat)(e,n.type,n.format.slice(l))));for(var a="",l=0;l<i.length;l++){var c=i.charCodeAt(l);a+=c>32&&c<48||63===c||c>90&&c<95||124===c?"\\"+i[l]:i[l]}return s.some((function(t){return new RegExp("".concat(a),"i").test(t)}))},value:{}},selectFilter:{element:{},toHtml:function(t,e){var i=this,n=t.id.toString(),o=this.element[n];return o?(o.value=this.value[n],o.data=t.$activeFilterData||t.$uniqueData):((o=new a.SelectFilter(t,e,t.$uniqueData,this.value[n])).events.on("change",(function(t){i.value[n]=t})),this.element[n]=o),o.toHTML()},match:function(t){var e=t.val,i=t.match,n=t.col,r=(0,o.toFormat)(e,n.type,n.format);return!i||(r||"boolean"==typeof r)&&r.toString()==i},value:{}},comboFilter:{element:{},toHtml:function(t,e){var i=this,o=t.id.toString(),r=this.element[o];if(r)r.data=t.$uniqueData;else{var a=t.header.filter((function(t){return void 0!==t.filterConfig}))[0];(r=new s.ComboFilter(t,e,t.$uniqueData,this.value[o],a)).events.on("change",(function(t){i.value[o]=t})),this.element[o]=r}return(0,n.inject)(r.getFilter().getRootView())},match:function(t){var e=t.val,i=t.match,n=void 0===i?"":i,r=t.multi,s=void 0!==r&&r,a=t.col,l=(0,o.toFormat)(e,a.type,a.format);if(Array.isArray(n)){for(var c=void 0,u=function(t){if(c=s&&"string"==typeof l?l.split(", ").some((function(e){return e===n[t]})):n[t]===l)return"break"},d=0;d<n.length;d++){if("break"===u(d))break}return!n||!n.length||c}return void 0===n||l===n},destroy:function(){this.value={};var t=this.element;for(var e in t)t[e].destructor(),delete t[e]},value:{}},sum:{calculate:function(t,e){return t.length?e.reduce((function(t,e){var i=t+parseFloat(e)||0;return parseFloat(i.toFixed(12))}),0):null},toHtml:function(t,e){var i=u(t,e,this.calculate);return t.format||"percent"===t.type?(0,o.toFormat)(i,t.type,t.format):(0,r.isDefined)(i)?i:null}},avg:{calculate:function(t,e){return t.length?e.reduce((function(t,e){return t+e}),0)/t.length:null},toHtml:function(t,e){var i=u(t,e,this.calculate);return t.format||"percent"===t.type?(0,o.toFormat)(i,t.type,t.format):(0,r.isDefined)(i)?i.toFixed(3):null}},min:{calculate:function(t){return t.length?Math.min.apply(Math,t):null},toHtml:function(t,e){var i=u(t,e,this.calculate);return t.format||"percent"===t.type||"number"===t.type?(0,o.toFormat)(i,t.type,t.format):(0,r.isDefined)(i)?i.toFixed(3):null}},max:{calculate:function(t){return t.length?Math.max.apply(Math,t):null},toHtml:function(t,e){var i=u(t,e,this.calculate);return t.format||"percent"===t.type||"number"===t.type?(0,o.toFormat)(i,t.type,t.format):(0,r.isDefined)(i)?i.toFixed(3):null}},count:{calculate:function(t,e){return e.length},validate:function(t,e){return e.reduce((function(e,i){return(0,r.isDefined)(i[t])&&""!==i[t]&&(isNaN(i)?e.push(1):e.push(i)),e}),[])},toHtml:function(t,e){return u(t,e,this.calculate,this.validate)}}}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ComboFilter=void 0;var n=i(38),o=i(2),r=i(7),s=i(1),a=i(8),l=function(){function t(t,e,i,n,r){var a;this.events=new o.EventSystem,this._silentMode=!1,this.column=t,this.config=e,this.data=i,this.value=n,this.filterConfig=(null==r?void 0:r.filterConfig)||{},(this.column.htmlEnable||(null===(a=this.config)||void 0===a?void 0:a.htmlEnable)&&!1!==this.column.htmlEnable)&&(this.column.template||!1===this.filterConfig.readonly||(this.filterConfig.readonly=!0),this.filterConfig.template||(this.filterConfig.template=function(t){return t.value})),this.filterConfig.filter||(this.filterConfig.filter=function(t,e){return(0,s.isExistValue)(t.value,e)}),this.initFilter(),this.config&&this.initHandlers()}return t.prototype.initFilter=function(){this._filter=new n.ProCombobox(null,Object.assign({},this.filterConfig)),this.data&&this._filter.data&&this._setData()},t.prototype.initHandlers=function(){var t,e,i,n=this,o=this.column.id.toString();this.config.events.on(r.DataEvents.load,(function(){return n._setData()}),this),this._filter.events.on("change",(function(t){var e,i;t&&((Array.isArray(t)?t.find((function(t){return n._filter.data.getItem(t)})):n._filter.data.getItem(t))&&(i=n._filter.config.multiselection?n._filter.list.selection.getItem().map((function(t){if(t&&n._filter.data.getItem(t.id))return t.value})):n._filter.list.selection.getItem().value));n.value=i,null===(e=n.config.events)||void 0===e||e.fire(a.GridEvents.filterChange,[n.value,o,"comboFilter",n._silentMode]),n._silentMode&&void 0===n.value&&(n._silentMode=!1)})),this.config.events.on(a.GridEvents.filterChange,(function(t){return n.events.fire(a.HeaderFilterEvent.change,[t])}),this),this._filter.popup.events.on("afterHide",(function(){n.filterConfig.multiselection||n._filter.list.selection.getItem()||n.clear()})),this._filter.popup.events.on("afterShow",(function(){!n.filterConfig.multiselection&&(""===n.value||n.filterConfig.readonly&&void 0!==n.value)&&n.clear()})),null===(t=this.config.events)||void 0===t||t.on(a.GridEvents.scroll,(function(){var t;n._isFocused&&(null===(t=n._filter.getRootView().refs)||void 0===t?void 0:t.input)&&n._filter.focus()}),this),null===(e=this.config.events)||void 0===e||e.on(a.GridEvents.headerCellMouseDown,(function(t){t.id!==n.column.id&&n.blur()}),this),null===(i=this.config.events)||void 0===i||i.on(a.GridEvents.cellMouseDown,(function(){return n.blur()}),this),this.config.events.on(r.DataEvents.change,(function(t,e){n.column.hidden||"add"!==e&&"update"!==e&&"remove"!==e||("add"!==e&&n._checkValue(),n._setData(!0))}),this),this.config.events.on(r.DataEvents.removeAll,(function(){n.clear(!0),n._setData()}),this),this.config.events.on(a.GridEvents.afterRowShow,(function(){return n._setData(!0)}),this),this.config.events.on(a.GridEvents.afterRowHide,(function(){n.column.hidden||(n._checkValue(),n._setData(!0))}),this),this.config.events.on(r.DataEvents.filter,(function(t){n.column.hidden||(!t||(0,r.isOnlyPermanentFilters)(t)?n.clear(!0):n._checkValue(),n.filterConfig.multiselection&&n._filter.popup.isVisible()||n._setData(!0))}),this),this.config.events.on(a.GridEvents.afterColumnShow,(function(){n.filterConfig.multiselection||(n._checkValue(),n._setData())}),this),this.config.events.on(a.GridEvents.afterColumnHide,(function(){n.filterConfig.multiselection||n._setData()}),this)},t.prototype.getFilter=function(){return this._filter},t.prototype.setValue=function(t,e){var i,n,o=this;if(this.filterConfig.multiselection||!Array.isArray(t))if((0,s.isDefined)(t)){if((null==t?void 0:t.length)||""===t){var r=this.filterConfig.multiselection&&Array.isArray(t)?t.map((function(t){var e;return null===(e=o._filter.data.find((function(e){return e.value===t})))||void 0===e?void 0:e.id})):null===(n=this._filter.data.find((function(e){return e.value===t})))||void 0===n?void 0:n.id;this._filter.setValue(r,e)}}else e&&(this._silentMode=!0),this._filter.clear(),this.filterConfig.multiselection||void 0===this.value||(this.value=void 0,null===(i=this.config.events)||void 0===i||i.fire(a.GridEvents.filterChange,[this.value,this.column.id,"comboFilter"]))},t.prototype.clear=function(t){void 0!==this.value&&this.setValue(null,t)},t.prototype.focus=function(){var t;this._isFocused=!0,(null===(t=this._filter.getRootView().refs)||void 0===t?void 0:t.input)&&this._filter.focus()},t.prototype.blur=function(){var t;this._isFocused=!1,(null===(t=this._filter.getRootView().refs)||void 0===t?void 0:t.input)&&this._filter.blur()},t.prototype.destructor=function(){var t=this.config.events;if(t)for(var e in t.events)this.config.events.detach(e,this);this.events.clear(),this._filter&&this._filter.destructor(),this.config=this.filterConfig=this.data=this.column=this.value=this.events=null},t.prototype._setData=function(t){var e=this;void 0===t&&(t=!1);var i=function(){var t=e.column.$activeFilterData||e.column.$uniqueData;if(e.column.header.some((function(t){var e;return null===(e=t.filterConfig)||void 0===e?void 0:e.filter}))){var i=e._filter.data.reduce((function(t,e){return t[e.value]=e.id,t}),{}),n=t.map((function(t){return i[t]?{id:i[t],value:t}:{value:t}}));e._filter.data.parse(n)}else e._filter.data.parse(t.map((function(t){return{value:t}})))};void 0===this.value?i():t&&this.filterConfig.multiselection&&(i(),this.setValue(this.value,!0))},t.prototype._checkValue=function(){if(void 0!==this.value)for(var t=Array.isArray(this.value)?this.value:[this.value],e=function(e){if(i.column.$uniqueData.includes(e))return"continue";if(t.length>1){var n=i._filter.data.find((function(t){return t.value===e}));i._filter.list.selection.remove(n.id)}else i.clear();return"break"},i=this,n=0,o=t;n<o.length;n++){if("break"===e(o[n]))break}},t}();e.ComboFilter=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SelectFilter=void 0;var n=i(0),o=i(2),r=i(8),s=function(){function t(t,e,i,n){this.events=new o.EventSystem,this.column=t,this.config=e,this.data=i,this.value=n||"",this.initHandlers(),this.toHTML()}return t.prototype.toHTML=function(){var t,e=this;return(0,n.el)("label.dhx_grid-filter__label.dxi.dxi-menu-down",{_ref:"".concat(this.column.id,"_filter")},[(0,n.el)("select.dxi.dxi-menu-down",{type:"text",class:"dhx_input dhx_grid-filter dhx_grid-filter--select",onchange:this._handlers.onchange,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,_key:this.column.id},[(0,n.el)("option",{value:"",_key:0},""),null===(t=this.value?[this.value]:this.data)||void 0===t?void 0:t.map((function(t){return""!==(t=null!=t?t:"")&&(0,n.el)("option",{_key:t,value:t,selected:e.value===t.toString()},t)}))])])},t.prototype.getFilter=function(){return this.toHTML()},t.prototype.setValue=function(t,e){var i;this.value=t||"",this.events.fire(r.HeaderFilterEvent.change,[t]),null===(i=this.config.events)||void 0===i||i.fire(r.GridEvents.filterChange,[this.value,this.column.id,"selectFilter",e])},t.prototype.clear=function(t){this.setValue("",t)},t.prototype.focus=function(){var t,e,i,n;this._isFocused=!0;var o=null===(n=null===(i=null===(e=null===(t=this.config.events)||void 0===t?void 0:t.context)||void 0===e?void 0:e.getRootView())||void 0===i?void 0:i.refs["".concat(this.column.id,"_filter")])||void 0===n?void 0:n.el;o&&o.focus()},t.prototype.blur=function(){var t,e,i,n;this._isFocused=!1;var o=null===(n=null===(i=null===(e=null===(t=this.config.events)||void 0===t?void 0:t.context)||void 0===e?void 0:e.getRootView())||void 0===i?void 0:i.refs["".concat(this.column.id,"_filter")])||void 0===n?void 0:n.el;o&&o.blur()},t.prototype.initHandlers=function(){var t,e,i,o=this;this._handlers={onchange:function(t){var e,i,n,r,s=(null===(e=t.target)||void 0===e?void 0:e.value)||(null===(n=null===(i=t.composedPath())||void 0===i?void 0:i[0])||void 0===n?void 0:n.value)||(null===(r=t.explicitOriginalTarget)||void 0===r?void 0:r.value);o.setValue(s)},onfocus:function(){o._isFocused=!0},onblur:function(){o._isFocused=!1}},null===(t=this.config.events)||void 0===t||t.on(r.GridEvents.scroll,(function(){var t,e,i,r,s=null===(r=null===(i=null===(e=null===(t=o.config.events)||void 0===t?void 0:t.context)||void 0===e?void 0:e.getRootView())||void 0===i?void 0:i.refs["".concat(o.column.id,"_filter")])||void 0===r?void 0:r.el;o._isFocused&&s&&(0,n.awaitRedraw)().then((function(){s.focus()}))})),null===(e=this.config.events)||void 0===e||e.on(r.GridEvents.headerCellMouseDown,(function(t){t.id!==o.column.id&&o.blur()})),null===(i=this.config.events)||void 0===i||i.on(r.GridEvents.cellMouseDown,(function(){return o.blur()}))},t}();e.SelectFilter=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InputFilter=void 0;var n=i(0),o=i(2),r=i(8),s=function(){function t(t,e,i,n){this.events=new o.EventSystem,this.column=t,this.config=e,this.id=i,this.value=n||"",this.initHandlers(),this.toHTML()}return t.prototype.toHTML=function(){return(0,n.el)("div.dhx_grid-filter__label.dxi.dxi-magnify",{"aria-label":"Type to search",_ref:"".concat(this.column.id,"_filter")},[(0,n.el)("label",{style:{display:"none"},"aria-label":"Type to search",for:this.id},"Type to search"),(0,n.el)("input",{type:"text",class:"dhx_input dhx_grid-filter",oninput:this._handlers.onchange,onfocus:this._handlers.onfocus,onblur:this._handlers.onblur,_key:this.column.id,id:this.id,value:this.value})])},t.prototype.getFilter=function(){return this.toHTML()},t.prototype.setValue=function(t,e){var i;this.value=t||"",this.events.fire(r.HeaderFilterEvent.change,[this.value]),null===(i=this.config.events)||void 0===i||i.fire(r.GridEvents.filterChange,[this.value,this.column.id,"inputFilter",e])},t.prototype.clear=function(t){this.setValue("",t)},t.prototype.focus=function(){var t,e,i,n,o;this._isFocused=!0;var r=null===(n=null===(i=null===(e=null===(t=this.config.events)||void 0===t?void 0:t.context)||void 0===e?void 0:e.getRootView())||void 0===i?void 0:i.refs["".concat(this.column.id,"_filter")])||void 0===n?void 0:n.el;r&&(null===(o=r.querySelector("input"))||void 0===o||o.focus())},t.prototype.blur=function(){var t,e,i,n,o;this._isFocused=!1;var r=null===(n=null===(i=null===(e=null===(t=this.config.events)||void 0===t?void 0:t.context)||void 0===e?void 0:e.getRootView())||void 0===i?void 0:i.refs["".concat(this.column.id,"_filter")])||void 0===n?void 0:n.el;r&&(null===(o=r.querySelector("input"))||void 0===o||o.blur())},t.prototype.initHandlers=function(){var t,e,i,o=this;this._handlers={onchange:function(t){var e,i,n,r,s=(null===(e=t.target)||void 0===e?void 0:e.value)||(null===(n=null===(i=t.composedPath())||void 0===i?void 0:i[0])||void 0===n?void 0:n.value)||(null===(r=t.explicitOriginalTarget)||void 0===r?void 0:r.value);o._inputDelay&&clearTimeout(o._inputDelay),o._inputDelay=setTimeout((function(){return o.setValue(s)}),500)},onfocus:function(){o._isFocused=!0},onblur:function(){o._isFocused=!1}},null===(t=this.config.events)||void 0===t||t.on(r.GridEvents.scroll,(function(){var t,e,i,r,s=null===(r=null===(i=null===(e=null===(t=o.config.events)||void 0===t?void 0:t.context)||void 0===e?void 0:e.getRootView())||void 0===i?void 0:i.refs["".concat(o.column.id,"_filter")])||void 0===r?void 0:r.el;o._isFocused&&s&&(0,n.awaitRedraw)().then((function(){var t;null===(t=s.querySelector("input"))||void 0===t||t.focus()}))})),null===(e=this.config.events)||void 0===e||e.on(r.GridEvents.headerCellMouseDown,(function(t){t.id!==o.column.id&&o.blur()})),null===(i=this.config.events)||void 0===i||i.on(r.GridEvents.cellMouseDown,(function(){return o.blur()}))},t}();e.InputFilter=s},function(t,e,i){"use strict";var n=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.startResize=void 0;var o=i(1),r=i(8),s=i(24);e.startResize=function(t,e,i,a){var l,c=t.config.rightSplit;i.targetTouches&&i.preventDefault();var u=i.targetTouches?i.targetTouches[0].clientX:i.clientX,d=t.config.columns.filter((function(t){return!t.hidden})),h=c?d.slice(-c).map((function(t){return t.id})):[],f=!!(null===(l=t.scrollView)||void 0===l?void 0:l.config.enable),p=c?(0,s.calcScrollBarWidth)(t.config,f).xState:null,v=0;t.config.$resizing=e;var g=function(i){var a,l=(0,o.findIndex)(d,(function(t){return t.id===e})),g=i.targetTouches?i.targetTouches[0].clientX:i.clientX,_=g-t.getRootNode().getBoundingClientRect().left,m=(0,s.calcScrollBarWidth)(t.config,f);if(!(t.config.leftSplit===l+1&&_>=t.config.$width-m.y-2||c&&h.includes(e)&&m.xState!==p)){v=v||d[l].$width;var y,b=d[l].minWidth||40,w=d[l].maxWidth,x=g-u,E=n([],d,!0),C=v+(p&&h.includes(e)?-x:x);w&&C>=w||C<=b?(C<=b&&(y=b),C>=w&&(y=w)):y=C,E[l].$width=y;for(var S=0;S<E.length;S++){(null!==(a=E[S].adjust)&&void 0!==a?a:t.config.adjust)||(E[S].$fixedWidth=S<=l)}t.events.fire(r.GridEvents.resize,[d[l],i]),t.paint()}},_=function(){i.targetTouches?(document.removeEventListener("touchmove",g),document.removeEventListener("touchend",_)):(document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",_)),a()};i.targetTouches?(document.addEventListener("touchmove",g),document.addEventListener("touchend",_)):(document.addEventListener("mousemove",g),document.addEventListener("mouseup",_)),t.paint()}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.getKeysHandlers=e.selectionMove=void 0;var o=i(8),r=i(3),s=i(26);function a(t,e,i,n,o,s,a){if(void 0===o&&(o=!1),void 0===s&&(s=!1),void 0===a&&(a=!1),!e.config.$editable&&e.config.selection&&!(0,r.locateNodeByClassName)(t,"dhx_grid-header-cell")){t&&t.preventDefault();var l=e.selection.getCell(),c=e.config.columns.filter((function(t){return!t.hidden}));if(l)if("vertical"===i)if(o){var u=1===n?e.data.getItem(e.data.getId(e.data.getLength()-1)):e.data.getItem(e.data.getId(0));e.scrollTo(u.id.toString(),l.column.id.toString()),e.selection.setCell(u.id,l.column.id,s,a)}else{if((d=e.data.getIndex(l.row.id.toString()))+n>=0&&d+n<e.data.getLength()){u=e.data.getItem(e.data.getId(d+n));e.scrollTo(u.id.toString(),l.column.id.toString()),e.selection.setCell(u.id,l.column.id,s,a)}}else if(o){u=1===n?c[c.length-1]:c[0];e.scrollTo(l.row.id.toString(),u.id.toString()),e.selection.setCell(l.row.id,u.id,s,a)}else{var d;(d=c.indexOf(l.column))+n>=0&&d+n<c.length&&(e.scrollTo(l.row.id.toString(),c[d+n].id.toString()),e.selection.setCell(l.row.id,c[d+n].id,s,a))}}}function l(t,e){var i,n,o=t.selection.getCell(),r=o&&t.getSpan(o.row.id,o.column.id);if(r){if("up"===e||"down"===e){var s=null===(i=t.config.data)||void 0===i?void 0:i.findIndex((function(t){return t.id===r.row})),a=null===(n=t.config.data)||void 0===n?void 0:n.findIndex((function(t){return t.id===o.row.id}));return"up"===e?s-a-1:s+(r.rowspan||1)-a}var l=t.config.columns.filter((function(t){return!t.hidden}));s=l.findIndex((function(t){return t.id===r.column})),a=l.findIndex((function(t){return t.id===o.column.id}));return"left"===e?s-a-1:s+(r.colspan||1)-a}return"down"===e||"right"===e?1:-1}e.selectionMove=a,e.getKeysHandlers=function(t){var e,i,c,u="cell"===t.config.selection||"complex"===t.config.selection||!0===t.config.selection,d={};if(t.getRootView()){var h=null===(c=null===(i=null===(e=t.getRootView())||void 0===e?void 0:e.refs)||void 0===i?void 0:i.grid_body)||void 0===c?void 0:c.el;if(!h)return;d={pageUp:function(t){t.preventDefault(),h.scrollTop-=h.clientHeight},pageDown:function(t){t.preventDefault(),h.scrollTop+=h.clientHeight},home:function(t){t.preventDefault(),h.scrollTop=0},end:function(t){t.preventDefault(),h.scrollTop+=h.scrollHeight}}}return n({enter:function(){if(u){var e=(0,s.normalizeCell)(t.selection.getCell(),t);if(e&&(!1!==e.column.editable&&t.config.editable||e.column.editable))if(t.config.$editable)t.editEnd();else if("boolean"===e.column.type){if(!t.events.fire(o.GridEvents.beforeEditStart,[e.row,e.column,"checkbox"]))return;if(t.events.fire(o.GridEvents.afterEditStart,[e.row,e.column,"checkbox"]),!t.events.fire(o.GridEvents.beforeEditEnd,[!e.row[e.column.id],e.row,e.column]))return;t.events.fire(o.GridEvents.afterEditEnd,[!e.row[e.column.id],e.row,e.column])}else t.editCell(e.row.id,e.column.id,e.column.editorType)}else t.config.$editable&&t.editEnd()},space:function(e){var i,n=(0,s.normalizeCell)(t.selection.getCell(),t);if(u&&(null!==(i=null==n?void 0:n.column.editable)&&void 0!==i?i:t.config.editable)&&!t.config.$editable&&n&&"boolean"===n.column.type){if(e.preventDefault(),!t.events.fire(o.GridEvents.beforeEditStart,[n.row,n.column,"checkbox"]))return;if(t.events.fire(o.GridEvents.afterEditStart,[n.row,n.column,"checkbox"]),!t.events.fire(o.GridEvents.beforeEditEnd,[!n.row[n.column.id],n.row,n.column]))return;t.events.fire(o.GridEvents.afterEditEnd,[!n.row[n.column.id],n.row,n.column])}},escape:function(){t.config.$editable&&t.editEnd(!0)},tab:function(e){if(t.config.selection&&!(0,r.locateNodeByClassName)(e,"dhx_grid-header-cell")){t.config.$editable&&t.editEnd();var i=t.selection.getCell(),n=t.config.columns.filter((function(t){return!t.hidden}));if(i){var o=n.indexOf(i.column)+l(t,"right");if(o>=0&&o<n.length)e&&e.preventDefault(),t.scrollTo(i.row.id.toString(),n[o].id.toString()),t.selection.setCell(i.row.id,n[o].id);else if(o>=0){var s=t.data.getIndex(i.row.id.toString())+1;s<t.data.getLength()&&(e&&e.preventDefault(),t.scrollTo(t.data.getId(s).toString(),n[0].id.toString()),t.selection.setCell(t.data.getId(s),n[0].id))}}}},"shift+tab":function(e){if(t.config.selection&&!(0,r.locateNodeByClassName)(e,"dhx_grid-header-cell")){t.config.$editable&&t.editEnd();var i=t.selection.getCell(),n=t.config.columns.filter((function(t){return!t.hidden}));if(i){var o=n.indexOf(i.column)+l(t,"left");if(o>=0&&o<n.length)e&&e.preventDefault(),t.scrollTo(i.row.id.toString(),n[o].id.toString()),t.selection.setCell(i.row.id,n[o].id);else if(o<t.data.getLength()){var s=t.data.getIndex(i.row.id.toString())-1;s>=0&&(e&&e.preventDefault(),t.scrollTo(t.data.getId(s).toString(),n[n.length-1].id.toString()),t.selection.setCell(t.data.getId(s),n[n.length-1].id))}}}},arrowUp:function(e){a(e,t,"vertical",l(t,"up"))},"ctrl+arrowUp":function(e){a(e,t,"vertical",-1,!0)},"shift+arrowUp":function(e){t.config.multiselection&&a(e,t,"vertical",-1,!1,!1,!0)},"ctrl+shift+arrowUp":function(e){t.config.multiselection&&a(e,t,"vertical",-1,!0,!1,!0)},arrowDown:function(e){a(e,t,"vertical",l(t,"down"))},"ctrl+arrowDown":function(e){a(e,t,"vertical",1,!0)},"shift+arrowDown":function(e){t.config.multiselection&&a(e,t,"vertical",1,!1,!1,!0)},"ctrl+shift+arrowDown":function(e){t.config.multiselection&&a(e,t,"vertical",1,!0,!1,!0)},arrowRight:function(e){a(e,t,"horizontal",l(t,"right"))},"ctrl+arrowRight":function(e){a(e,t,"horizontal",1,!0)},"shift+arrowRight":function(e){t.config.multiselection&&a(e,t,"horizontal",1,!1,!1,!0)},"ctrl+shift+arrowRight":function(e){t.config.multiselection&&a(e,t,"horizontal",1,!0,!1,!0)},arrowLeft:function(e){a(e,t,"horizontal",l(t,"left"))},"ctrl+arrowLeft":function(e){a(e,t,"horizontal",-1,!0)},"shift+arrowLeft":function(e){t.config.multiselection&&a(e,t,"horizontal",-1,!1,!1,!0)},"ctrl+shift+arrowLeft":function(e){t.config.multiselection&&a(e,t,"horizontal",-1,!0,!1,!0)}},d)}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.ProGrid=void 0;var a=i(8),l=i(7),c=i(3),u=i(18),d=i(97),h=i(0),f=i(19),p=i(16),v=function(t){function e(e,i){var n,o,s=this;return(s=t.call(this,e,r({autoHeight:!1,headerAutoHeight:null!==(n=null==i?void 0:i.headerAutoHeight)&&void 0!==n?n:null==i?void 0:i.autoHeight,footerAutoHeight:null!==(o=null==i?void 0:i.footerAutoHeight)&&void 0!==o?o:null==i?void 0:i.autoHeight},i))||this).scrollView=new f.ScrollView((function(){return s.getRootView()}),{scrollHandler:function(t){return s.events.fire(a.GridEvents.scroll,[{y:t.target.scrollTop,x:t.target.scrollLeft}])}}),s}return o(e,t),e.prototype._createView=function(){var t=this;return(0,h.create)({render:function(e,i){return t._destructed?(0,h.el)("div"):(0,d.proRender)(e,i,t._htmlEvents,t.selection,t._uid)},hooks:this._initHooks()},this)},e.prototype._setEventHandlers=function(){var e=this;t.prototype._setEventHandlers.call(this),this.events.on(a.GridEvents.headerCellMouseDown,(function(t,i){var n,o=(0,c.locateNodeByClassName)(i,"dhx_header-row"),r=o&&o.getAttribute("aria-rowindex");(null===(n=t.header[Number(r)-1])||void 0===n?void 0:n.content)||(i.targetTouches?e._touch.timer=setTimeout((function(){e._dragStartColumn(i,t)}),e._touch.duration):e._dragStartColumn(i,t))})),this._events.on(a.GridSystemEvents.headerCellTouchMove,(function(t,i){e._touch.start&&i.preventDefault(),e._clearTouchTimer()})),this._events.on(a.GridSystemEvents.headerCellTouchEnd,(function(){e._touch.start=!1,e._clearTouchTimer()})),this.events.on(a.GridEvents.afterResizeEnd,(function(){e.config.autoHeight&&(e.config.data=e.data.map((function(t){var i=(0,u.getMaxRowHeight)(t,e.config.columns);return t.$height=(0,u.getCalculatedRowHeight)(i,{rowHeight:e.config.rowHeight}),t})))})),this.events.on(a.GridEvents.afterRowResize,(function(t,i,n){var o=e.data.getItem(t.id),r=o.id,s=o.height,a=o.$height;s&&s!==a&&e.data.update(r,{height:n}),e.data.update(r,{$height:n},!0),e.config.data=e.data.map((function(t){return t})),e.paint()})),this.events.on(a.GridEvents.scroll,(function(){e._lazyLoad()})),this.events.on(l.DataEvents.dataRequest,(function(t,i){var n=e.data.dataProxy;n&&n.config&&e._prepareDataFromTo(e.data,t,i)}))},e.prototype.getNormalizeContentHeight=function(t,e,i){var n,o,r,s=0,a=this.content[t.content],l=t.content&&"function"==typeof a.calculate&&(null===(n=a.toHtml(e,i))||void 0===n?void 0:n.toString()),c=t.text||l||"";if(t.colspan){var d=null===(o=i.columns)||void 0===o?void 0:o.findIndex((function(t){return t.id===e.id})),h=d+t.colspan,f=null===(r=i.columns)||void 0===r?void 0:r.slice(d,h);null==f||f.forEach((function(t){s+=t.$width}))}else s+=e.$width;return(0,u.measureTextHeight)({text:c,width:s-24,htmlEnable:(0,p.isHtmlEnable)(i,e,t),font:"normal 14.4px Arial"})+16},e.prototype._prepareData=function(t){var e=this;return this._normalizeDataType(),this._adjustColumns(),t.map((function(t){if(e.config.autoHeight&&void 0===t.height){var i=e.config.columns.filter((function(t){return!t.hidden})),n=(0,u.getMaxRowHeight)(t,i);t.$height=(0,u.getCalculatedRowHeight)(n,{rowHeight:e.config.rowHeight})||e.config.rowHeight}else t.$height=Number(t.height)||e.config.rowHeight;return t}))},e.prototype._prepareDataFromTo=function(t,e,i){var n=this;return t.mapRange(e,i,(function(t){var e=(0,u.getMaxRowHeight)(t,n.config.columns);return t.$height=(0,u.getCalculatedRowHeight)(e,{rowHeight:n.config.rowHeight})||n.config.rowHeight,t}))},e.prototype._dragStart=function(t){if(this.config.dragMode&&("row"===this.config.dragItem||"both"===this.config.dragItem)&&!this.config.$editable){var e=this.getColumn(t.target.getAttribute("data-dhx-col-id"));if(!1===(null==e?void 0:e.draggable))return;var i=(0,c.locateNode)(t,"data-dhx-id"),n=i&&i.getAttribute("data-dhx-id");t.targetTouches&&(this._touch.start=!0);var o=[n];if(this.config.multiselection&&(o=s(s([],o,!0),this.selection.getCells().map((function(t){return t.row.id})),!0)).length>1){for(var r=this.data.getInitialData(),a={},u=function(t){var e=o[t],i=null==r?void 0:r.findIndex((function(t){return t.id==e}));a[i]=e},d=0;d<o.length;d++)u(d);o=s([],Object.values(a),!0)}return l.dragManager.onMouseDown(t,o,[this._getRowGhost(o)])}},e.prototype._lazyLoad=function(){var t,e,i=this,n=this.data.dataProxy;if(n&&n.config){var o=this.data.getRawData(0,-1,null,2);if(!o.length)return;var r,s=(0,d.getRenderConfig)(this,o,{width:this.config.$width,height:this.config.$height}),a=n.config.limit,c=a,u=s.currentRows,h=u[0],f=u[u.length-1],p=this.data.getIndex(f.id),v=function(t){for(var e=1;e<u.length;e++)if("firstFilledRow"===t&&!u[e].$empty&&u[e-1].$empty||"firstEmptyRow"===t&&u[e].$empty&&!u[e-1].$empty)return i.data.getIndex(u[e].id)};if(h.$empty)if(f.$empty)r=this.data.getIndex(h.id);else{var g=v("firstFilledRow"),_=g-c;_<0&&(_=0);for(var m=_;m<g;m++)if(this.data.getItem(this.data.getId(m)).$empty){r=m,c=g-m;break}}else f.$empty?r=v("firstEmptyRow"):(r=null!==(t=v("firstEmptyRow"))&&void 0!==t?t:this.data.getIndex(h.id),c=(null!==(e=v("firstFilledRow"))&&void 0!==e?e:p)-r);!this.data.isDataLoaded(r,p)&&this.data.events.fire(l.DataEvents.beforeLazyLoad,[])&&(n.updateUrl(null,{from:r,limit:c}),n.config.limit=a,this.data.load(n).then((function(){i.config.autoHeight&&i._prepareDataFromTo(i.data,r,p)})))}},e.prototype._getColumnGhost=function(t){var e=this._container||(0,c.toNode)(this._uid),i=e.querySelector(".dhx_header-row"),n=i.querySelector('.dhx_grid-header-cell[data-dhx-id="'.concat(t.id,'"]')),o=Array.from(i.childNodes).indexOf(n)+1,r=e.querySelectorAll('.dhx_grid-header-cell[data-dhx-id="'.concat(t.id,'"]:not(.dhx_span-cell)')),s=e.querySelectorAll(".dhx_grid_data .dhx_grid-cell:nth-child(".concat(o,")")),a=document.createElement("div");return r.forEach((function(t){return a.appendChild(t.cloneNode(!0))})),s.forEach((function(t){return a.appendChild(t.cloneNode(!0))})),a},e.prototype._dragStartColumn=function(t,e){var i=t.target,n=function(t){return t.classList.contains("dhx_grid-custom-content-cell")};n(i.parentElement)||n(i.parentElement.parentElement)||!(e.draggable||"column"===this.config.dragItem&&!1!==e.draggable||"both"===this.config.dragItem&&!1!==e.draggable)||(0,c.locateNodeByClassName)(t,"dhx_resizer_grip_wrap")||(t.targetTouches&&(this._touch.start=!0),l.dragManager.onMouseDown(t,[e.id],[this._getColumnGhost(e)]))},e}(i(96).Grid);e.ProGrid=v},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(231),e),o(i(232),e)},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.ContextMenu=void 0;var r=i(1),s=i(3),a=i(12),l=i(20),c=function(t){function e(e,i){var n=t.call(this,e,(0,r.extend)({$name:"context-menu"},i))||this;return n._isContextMenu=!0,n}return o(e,t),e.prototype.showAt=function(t,e){if(void 0===e&&(e="bottom"),t instanceof MouseEvent)this._close(t),this._changeActivePosition({left:window.pageXOffset+t.x+1,right:window.pageXOffset+t.x+1,top:window.pageYOffset+t.y,bottom:window.pageYOffset+t.y,zIndex:(0,a.getZIndex)(t.target)},e);else if(window.TouchEvent&&t instanceof TouchEvent)this._close(t),this._changeActivePosition({left:window.pageXOffset+t.touches[0].clientX,right:window.pageXOffset+t.touches[0].clientX,top:window.pageYOffset+t.touches[0].clientY,bottom:window.pageYOffset+t.touches[0].clientY,zIndex:(0,a.getZIndex)(t.target)},e);else if(t instanceof HTMLElement||"string"==typeof t){var i=(0,s.toNode)(t);this._changeActivePosition((0,s.getRealPosition)(i),e)}},e.prototype._getFactory=function(){return(0,l.createFactory)({widget:this,defaultType:"menuItem",allowedTypes:["menuItem","spacer","separator","customHTML","customHTMLButton"],widgetName:"context-menu"})},e.prototype._close=function(e){var i=this;this.events.on(l.NavigationBarEvents.afterHide,(function(){i._activeMenu=null,i._changeActivePosition(null,null)})),t.prototype._close.call(this,e)},e.prototype._getMode=function(t,e,i){return i?this._mode:"right"},e.prototype._changeActivePosition=function(t,e){this._activePosition=t,this._mode=e,this._listenOuterClick(),this.paint()},e}(l.Navbar);e.ContextMenu=c},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.Menu=void 0;var r=i(1),s=i(0),a=i(20),l=function(t){function e(e,i){var n=t.call(this,e,(0,r.extend)({$name:"menu"},i))||this;return n.mount(e,(0,s.create)({render:function(){return n._draw()}})),n}return o(e,t),e.prototype._getFactory=function(){return(0,a.createFactory)({widget:this,defaultType:"menuItem",allowedTypes:["menuItem","spacer","separator","customHTML","customHTMLButton"],widgetName:"menu-nav"})},e.prototype._getMode=function(t,e){return t.id===e?"bottom":"right"},e.prototype._close=function(e){this._activePosition=null,this._currentRoot=null,t.prototype._close.call(this,e)},e.prototype._setRoot=function(t){this.data.getParent(t)===this.data.getRoot()&&(this._currentRoot=t)},e.prototype._draw=function(){return(0,s.el)("ul.dhx_widget",{"data-dhx-widget-id":this._uid,onmousemove:this._handlers.onmousemove,onmouseleave:this._handlers.onmouseleave,onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,onkeydown:this._handlers.onkeydown,class:"dhx_menu-nav "+(this.config.css?this.config.css:"")},this._drawMenuItems(this.data.getRoot(),!1))},e}(a.Navbar);e.Menu=l},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(100),e),o(i(234),e)},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.ProRibbon=void 0;var r=i(100),s=i(19),a=i(0),l=i(3),c=i(12),u=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.scrollView=new s.ScrollView((function(){return n.getRootView()})),n}return o(e,t),e.prototype._draw=function(){var t=this;this._heightCalculate();var e=[(0,a.el)("ul.dhx_ribbon-content.dhx_ribbon-content--full-width",{style:{height:Math.max.apply(Math,this._widgetHeight)}},this.data.map((function(e){return"block"===e.type?t._drawBlock(e,!0):t._factory(e)}),this.data.getRoot(),!1))],i=Math.max.apply(Math,this._widgetHeight);return(0,a.el)("ul.dhx_ribbon.dhx_widget",{"data-dhx-widget-id":this._uid,class:this.config.css?this.config.css:"",tabindex:0,onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,oninput:this._listeners.input,onmouseover:this._listeners.tooltip,onkeydown:this._handlers.onkeydown,_hooks:{didInsert:function(e){e.el.addEventListener("keyup",(function(e){if(9===e.which){var i=(0,l.locateNode)(document.activeElement);if(i){var n=i.getAttribute("data-dhx-id"),o=t.data.getItem(n);o.tooltip&&(0,c.tooltip)(o.tooltip,{node:i,position:c.Position.bottom,force:!0})}}}),!0)}}},[(0,a.el)("li",{class:"dhx_ribbon-block dhx_ribbon-block--root",style:{height:this._haveTitle?i+24:i}},this.scrollView&&this.scrollView.config.enable?[].concat(this.scrollView.render(e)):e)])},e}(r.Ribbon);e.ProRibbon=u},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(101),e),o(i(236),e),o(i(102),e)},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.ProSidebar=void 0;var r=i(0),s=i(3),a=i(19),l=i(101),c=i(12),u=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.scrollView=new a.ScrollView((function(){return n.getRootView()})),n}return o(e,t),e.prototype._draw=function(){var t=this,e=this.config,i=e.width,n=e.minWidth,o=this.config.collapsed?n:i,a=[(0,r.el)("ul.dhx_navbar.dhx_navbar--vertical",{"data-dhx-widget-id":this._uid,tabindex:0,onclick:this._handlers.onclick,onmousedown:this._handlers.onmousedown,oninput:this._handlers.input,onmouseover:this._handlers.tooltip,onkeydown:this._handlers.onkeydown,_hooks:{didInsert:function(e){e.el.addEventListener("keyup",(function(e){if(9===e.which){var i=(0,s.locateNode)(document.activeElement);if(i){var n=i.getAttribute("data-dhx-id"),o=t.data.getItem(n);(o.tooltip||t.config.collapsed&&o.value)&&(0,c.tooltip)(o.tooltip||o.value,{node:i,position:c.Position.right,force:!0})}}}),!0)}}},this.data.map((function(e){return t._factory(e)}),this.data.getRoot(),!1))];return(0,r.el)("nav.dhx_widget.dhx_sidebar",{class:(this.config.css?this.config.css:"")+(this.config.collapsed?" dhx_sidebar--minimized":""),style:{width:o+"px"}},this.scrollView&&this.scrollView.config.enable?[].concat(this.scrollView.render(a)):a)},e}(l.Sidebar);e.ProSidebar=u},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(238),e),o(i(103),e)},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},s=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Tabbar=void 0;var a=i(1),l=i(0),c=i(2),u=i(3),d=i(14),h=i(21),f=i(11),p=i(103),v=function(t){function e(e,i){var n=t.call(this,e,(0,a.extend)({mode:"top"},i))||this;if(n._tabFontSize=14,n._keyManager=new d.KeyManager((function(){return(0,u.locate)(document.activeElement,"tabs_id")===n._uid})),n._initHotkeys(),n.config.disabled){var o=n.config.disabled,r=n._cells.map((function(t){return t.id}));Array.isArray(o)?o.forEach((function(t){r.includes(t)&&!n._disabled.includes(t)&&n._disabled.push(t)})):r.includes(o)&&!n._disabled.includes(o)&&n._disabled.push(o),n.paint()}return n.events=new c.EventSystem(n),h.focusManager.setFocusId(n._uid),n}return o(e,t),e.prototype.toVDOM=function(){var t=this;this._getTabContainer();var e=null;if(!this.config.noContent&&(e=this.getCell(this.config.activeView))){var i=this._disabled.includes(this.config.activeView)?" dhx_tabbar-content--disabled":"";e.config.css?-1!==e.config.css.indexOf("dhx_tabbar-content--disabled")?e.config.css=e.config.css.replace("dhx_tabbar-content--disabled",""):e.config.css=e.config.css+i:e.config.css=i}return(0,l.awaitRedraw)().then((function(){t._tabsContainer||t.paint()})),this._tabsContainer&&(this._tabFontSize=parseFloat(getComputedStyle(this._tabsContainer).getPropertyValue("font-size"))),(0,l.el)("div",{class:"dhx_widget dhx_tabbar"+(this.config.mode?" dhx_tabbar--"+this.config.mode:"")+(this.config.css?" "+this.config.css:"")},this._tabsContainer?s(s([],this._drawTabs(),!0),[e?e.toVDOM():null],!1):[])},e.prototype.destructor=function(){this.events&&this.events.clear(),this._keyManager&&this._keyManager.destructor(),t.prototype.destructor.call(this),this.unmount(),this._tabsContainer=this._beforeScrollSize=this._afterScrollSize=this._keyManager=null,this.config=this.events=this._cells=this._handlers=null},e.prototype.getWidget=function(){var t=this;return this._cells.filter((function(e){return t.getActive()===e.id}))[0].getWidget()},e.prototype.setActive=function(t){if(this._cells.map((function(t){return t.id})).includes(t)&&!this._disabled.includes(t)){var e=this.config.activeView;if(!this.events.fire(p.TabbarEvents.beforeChange,[t,e]))return;this.config.activeView=t,this.getCell(t).show(),this._focusTab(t),this.events.fire(p.TabbarEvents.change,[t,e])}},e.prototype.getActive=function(){return this.config?this.config.activeView:null},e.prototype.addTab=function(t,e){this.addCell(t,e),1!==this._cells.length||t.disabled||this.setActive(this._cells[0].id)},e.prototype.removeTab=function(e){var i=this;if(this.events.fire(p.TabbarEvents.beforeClose,[e])){if(e===this.config.activeView){var n=this._getEnableTabs().length,o=(0,a.findIndex)(this._getEnableTabs(),(function(t){return t.id===i.config.activeView}));if(o<0)return;o===n-1&&(o-=1),t.prototype.removeCell.call(this,e),1===n?this.config.activeView=null:this.setActive(this._getEnableTabs()[o].id)}else t.prototype.removeCell.call(this,e);this.events.fire(p.TabbarEvents.afterClose,[e]),this.events.fire(p.TabbarEvents.close,[e])}},e.prototype.disableTab=function(t){return!(!this._cells.map((function(t){return t.id})).includes(t)||this._disabled.includes(t))&&(this._disabled.push(t),this.paint(),!0)},e.prototype.enableTab=function(t){if(this._disabled.includes(t)){var e=this._disabled.filter((function(e){return e!==t}));this._disabled=s([],e,!0),this.paint()}},e.prototype.isDisabled=function(t){return this._disabled.includes(t||this.config.activeView)},e.prototype.removeCell=function(t){this.removeTab(t)},e.prototype._initHandlers=function(){var e=this;t.prototype._initHandlers.call(this),this._handlers=r(r({},this._handlers),{onTabClick:function(t){(0,l.awaitRedraw)().then((function(){var i=(0,u.locate)(t,"dhx_tabid");if(i&&!e._disabled.includes(i)){var n=e.config.activeView;if(t.target.classList.contains("dhx_tabbar-tab__close"))e.removeTab(i);else{if(!e.events.fire(p.TabbarEvents.beforeChange,[i,n]))return;e.config.activeView=i,n!==i&&e.events.fire(p.TabbarEvents.change,[e.config.activeView,n])}e.paint()}}))},onScrollClick:function(t){var i=(0,u.locate)(t,"mode");if(!i)switch(t.key){case"ArrowRight":i="right";break;case"ArrowLeft":i="left";break;case"ArrowUp":i="up";break;case"ArrowDown":i="down"}var n={behavior:"smooth"};if(e._isHorizontalMode()){var o,r=e._normalizeSize({width:e._getSizes(e._cells[0].config).width}).width,s=e._normalizeSize({width:e._getSizes(e._cells[e._cells.length-1].config).width}).width;e._tabsContainer&&(o=e._tabsContainer.scrollWidth,e._cells.reduce((function(t,n,a){if(t>=e._tabsContainer.scrollLeft&&0!==a&&"left"===i)r=Math.abs(e._normalizeSize({width:e._getSizes(e._cells[a-1].config).width}).width-(t-e._tabsContainer.scrollLeft));else{if(!(t>o+e._tabsContainer.scrollLeft&&"right"===i))return t+e._normalizeSize({width:e._getSizes(n.config).width}).width;s=Math.abs(o+e._tabsContainer.scrollLeft-t)}}),0)),n.left="left"===i?e._tabsContainer.scrollLeft-r:e._tabsContainer.scrollLeft+s}else{var a,l=e._normalizeSize({height:e._getSizes(e._cells[0].config).height}).height,c=e._normalizeSize({height:e._getSizes(e._cells[e._cells.length-1].config).height}).height;e._tabsContainer&&(a=e._tabsContainer.clientHeight,e._cells.reduce((function(t,n,o){if(t>=e._tabsContainer.scrollTop&&0!==o&&"up"===i)l=Math.abs(e._normalizeSize({height:e._getSizes(e._cells[o-1].config).height}).height-(t-e._tabsContainer.scrollTop));else{if(!(t>a+e._tabsContainer.scrollTop&&"down"===i))return t+e._normalizeSize({height:e._getSizes(n.config).height}).height;c=Math.abs(a+e._tabsContainer.scrollTop-t)}}),0)),n.top="up"===i?e._tabsContainer.scrollTop-l:e._tabsContainer.scrollTop+c}(0,u.isIE)()?(e._tabsContainer.scrollLeft=n.left,e._tabsContainer.scrollTop=n.top):e._tabsContainer.scrollTo(n)},onHeaderScroll:(0,a.debounce)((function(){e.paint()}),10)})},e.prototype._isHorizontalMode=function(){return"bottom"===this.config.mode||"top"===this.config.mode},e.prototype._focusTab=function(t,e){var i=this;(0,l.awaitRedraw)().then((function(){i.getRootView().refs[t].el.focus(),e&&i._handlers.onScrollClick(e)}))},e.prototype._getEnableTabs=function(){var t=this;return this._cells.filter((function(e){return!t._disabled.includes(e.config.id)}))},e.prototype._getIndicatorPosition=function(){var t=this,e=(0,a.findIndex)(this._cells,(function(e){return e.id===t.config.activeView}));-1===e&&(e=0);var i=this.getCell(this.config.activeView);if(this._isHorizontalMode()){var n=this._normalizeSize({width:this._getSizes(i.config).width}),o=n.width,r=n.unit,s=this._tabsContainer.clientWidth,l=this._cells.reduce((function(i,n,o){var r=t._normalizeSize({width:t._getSizes(n.config).width});return"%"===r.unit&&(r.width=s/100*r.width),o<e?i+r.width:i}),0);return{left:0,transform:"translateX(".concat(l,"px)"),transition:"all 0.1s ease",width:o+r,height:"2px"}}var c=this._normalizeSize({height:this._getSizes(i.config).height}),u=c.height,d=(r=c.unit,this._tabsContainer.clientHeight),h=this._cells.reduce((function(i,n,o){var r=t._normalizeSize({height:t._getSizes(n.config).height});return"%"===r.unit&&(r.height=d/100*r.height),o<e?i+r.height:i}),0);return{top:0,transform:"translateY(".concat(h,"px)"),transition:"all 0.1s ease",height:u+r,width:"2px"}},e.prototype._drawTabs=function(){var t,e,i,n=this;if(!this._cells.length)return[];this._beforeScrollSize=0,this._afterScrollSize=0;var o=this._isHorizontalMode();o?(e=this._tabsContainer.clientWidth,i=Math.round(this._cells.reduce((function(t,e){return n._normalizeSize({width:n._getSizes(e.config).width}).width+t}),0)),this._tabsContainer&&i>=e?(this._beforeScrollSize=this._tabsContainer.scrollLeft,this._afterScrollSize=i-(e+this._beforeScrollSize)):i>=e&&(this._afterScrollSize=i-e),t={height:this.config.tabHeight||"45px",top:"top"===this.config.mode?0:""}):(e=this._tabsContainer.clientHeight,i=Math.round(this._cells.reduce((function(t,e){return n._normalizeSize({height:n._getSizes(e.config).height}).height+t}),0)),this._tabsContainer&&i>=e?(this._beforeScrollSize=this._tabsContainer.scrollTop,this._afterScrollSize=i-(e+this._beforeScrollSize)):this._afterScrollSize=i-e,t={width:this.config.tabWidth||"200px",left:"left"===this.config.mode?0:""});var r=this._getIndicatorPosition();return[(0,l.el)(".dhx_tabbar-header__wrapper",{onscroll:this._handlers.onHeaderScroll,class:this.config.tabAlign&&this._beforeScrollSize<=0&&this._afterScrollSize<=0?"dhx_tabbar-header__wrapper-".concat(this.config.tabAlign):""},[(0,l.el)("ul."+this.config.mode,{tabs_id:this._uid,class:"dhx_tabbar-header ",onclick:this._handlers.onTabClick},s(s([],this._cells.map((function(t){var e=n.config,i=e.closable,o=e.closeButtons,r=e.activeView,s=n._disabled.includes(t.config.id);return(0,l.el)("li",{class:"dhx_tabbar-tab"+(t.config.tabCss?" ".concat(t.config.tabCss):""),dhx_tabid:t.id,role:"presentation",style:n._getSizes(t.config)},[(0,l.el)("button.dhx_button.dhx_tabbar-tab-button"+(r===t.id?".dhx_tabbar-tab-button--active":"")+(s?".dhx_tabbar-tab-button--disabled":""),{tabindex:"0","aria-controls":t.id,id:"tab-content-"+t.id,"aria-selected":"".concat(r===t.id),_ref:t.id.toString(),type:"button",disabled:s},[(0,l.el)("span.dhx_button__text",t.config.tab)]),Array.isArray(i)&&i.includes(t.config.id)&&!s||i&&"boolean"==typeof i&&!s||o&&"boolean"==typeof o&&!s?(0,l.el)("div.dhx_tabbar-tab__close.dxi--small.dxi.dxi-close",{tabindex:0,role:"button","aria-pressed":"false"}):null])})),!0),[(0,l.el)(".dhx_tabbar-header-active",{style:r})],!1))]),this._beforeScrollSize>0&&(0,l.el)(".dhx_tabbar_scroll",{class:"dxi dxi-chevron-".concat(o?"left":"up"," arrow-").concat(o?"left":"up"),_key:"startArrow",onclick:this._handlers.onScrollClick,mode:o?"left":"up",style:t}),this._afterScrollSize>0&&(0,l.el)(".dhx_tabbar_scroll",{class:"dxi dxi-chevron-".concat(o?"right":"down"," arrow-").concat(o?"right":"down"),_key:"endArrow",onclick:this._handlers.onScrollClick,mode:o?"right":"down",style:t})]},e.prototype._getSizes=function(t){"number"==typeof t.tabWidth&&(t.tabWidth=t.tabWidth+"px"),"number"==typeof t.tabHeight&&(t.tabHeight=t.tabHeight+"px"),"number"==typeof this.config.tabWidth&&(this.config.tabWidth=this.config.tabWidth+"px"),"number"==typeof this.config.tabHeight&&(this.config.tabHeight=this.config.tabHeight+"px");var e=this.config.tabWidth||(this._isHorizontalMode()?(0,a.getStringWidth)(t.tab.toUpperCase(),{font:"500 ".concat(this._tabFontSize,".4px Arial")})+50+"px":"200px"),i=this.config.tabHeight||"45px";return this._isHorizontalMode()?void 0!==t.tabWidth&&(e=t.tabWidth):void 0!==t.tabHeight&&(i=t.tabHeight),(this.config.tabAutoWidth&&!1!==t.tabAutoWidth||t.tabAutoWidth)&&void 0===this.config.tabWidth&&void 0===t.tabWidth&&(e=this._getTabAutoWidth()),(this.config.tabAutoHeight&&!1!==t.tabAutoHeight||t.tabAutoHeight)&&void 0===this.config.tabHeight&&void 0===t.tabHeight&&(i=this._getTabAutoHeight()),{width:e,height:i}},e.prototype._normalizeSize=function(t){var e={};if(Object.keys(t).length>=1)for(var i in t)"number"==typeof t[i]?e.unit="px":(t[i].includes("%")?(e[i]=t[i].slice(0,-1),e.unit="%"):t[i].includes("px")&&(e[i]=t[i].slice(0,-2),e.unit="px"),e[i]=parseFloat(e[i]));return e},e.prototype._getTabAutoWidth=function(){var t=this,e=this._tabsContainer.clientWidth,i=0,n=0;return this._cells.forEach((function(e){e.config.tabAutoWidth||t.config.tabAutoWidth&&!1!==e.config.tabAutoWidth?e.config.tabWidth?i+=t._normalizeSize({width:e.config.tabWidth}).width:n++:i+=t._normalizeSize({width:t._getSizes(e.config).width}).width})),(e-i)/n+"px"},e.prototype._getTabAutoHeight=function(){var t=this,e=this._tabsContainer.clientHeight,i=0,n=0;return this._cells.forEach((function(e){e.config.tabAutoHeight||t.config.tabAutoHeight&&!1!==e.config.tabAutoHeight?e.config.tabHeight?i+=t._normalizeSize({height:e.config.tabHeight}).height:n++:i+=t._normalizeSize({height:t._getSizes(e.config).height}).height})),(e-i)/n+"px"},e.prototype._getTabContainer=function(){var t=this;if(this._tabsContainer)if(this.getRootNode()){var e=this.getRootNode(),i=null==e?void 0:e.getElementsByClassName("dhx_tabbar-header__wrapper")[0];this._tabsContainer!==i&&(this._tabsContainer=i||e,this.paint())}else(0,l.awaitRedraw)().then((function(){return t.paint()}));else this._tabsContainer=this.getRootNode(),this.paint()},e.prototype._initHotkeys=function(){var t=this,e=function(e){e.preventDefault();var i=t._getEnableTabs(),n=(0,a.findIndex)(i,(function(e){return e.id===t.config.activeView})),o=t.config.activeView;if(-1!==n){var r=n===i.length-1?i[0].id:i[n+1].id;t.events.fire(p.TabbarEvents.beforeChange,[r,o])&&(t.config.activeView=r,t.events.fire(p.TabbarEvents.change,[t.config.activeView,o]),t._focusTab(t.config.activeView,e),t.paint())}},i=function(e){e.preventDefault();var i=t._getEnableTabs(),n=(0,a.findIndex)(i,(function(e){return e.id===t.config.activeView})),o=t.config.activeView;if(-1!==n){var r=0===n?i[i.length-1].id:i[n-1].id;t.events.fire(p.TabbarEvents.beforeChange,[r,o])&&(t.config.activeView=r,t.events.fire(p.TabbarEvents.change,[t.config.activeView,o]),t._focusTab(t.config.activeView,e),t.paint())}},n="right"===this.config.mode||"left"===this.config.mode,o={arrowRight:e,arrowUp:n?i:e,arrowLeft:i,arrowDown:n?e:i};for(var r in o)this._keyManager.addHotKey(r,o[r])},e}(f.Layout);e.Tabbar=v},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(240),e),o(i(104),e),o(i(105),e)},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Tree=void 0;var s=i(1),a=i(0),l=i(2),c=i(3),u=i(28),d=i(9),h=i(7),f=i(104),p=i(14),v=i(21),g=i(105);function _(t){return 20*t}function m(t,e){return t?e?"openFolder":"folder":"file"}var y=function(t){function e(e,i){void 0===i&&(i={});var n=t.call(this,e,i)||this;n._touch={duration:350,dblDuration:300,timer:null,start:!1,timeStamp:null},n.config=(0,s.extend)({dropBehaviour:"child",icon:{file:"dxi dxi-file-outline",folder:"dxi dxi-folder",openFolder:"dxi dxi-folder-open"},keyNavigation:!0,editable:!1,selection:!0,rootId:"string"==typeof e&&e||n._uid},i),n.config.editable=n.config.editable||n.config.editing;var o=function(t){var e,i;return n.config.collapsed&&(null===(e=t.items)||void 0===e?void 0:e.length)&&(t.opened=!1),t.checkbox=null!==(i=t.checkbox)&&void 0!==i?i:n.config.checkbox,t.$autoload=Boolean(t.items&&"string"==typeof n.config.autoload),t.$editor=!1,t.checked?t.$mark=g.SelectStatus.selected:(t.$mark=g.SelectStatus.unselected,t.checked=!1),t};Array.isArray(n.config.data)?(n.events=new l.EventSystem(n),n.data=new h.TreeCollection({autoload:n.config.autoload,init:o,rootId:n.config.rootId||e},n.events),n.data.parse(n.config.data)):n.config.data&&n.config.data.events?(n.data=n.config.data,n.data.config.init=o,n.events=n.data.events,n.events.context=n):(n.events=new l.EventSystem(n),n.data=new h.TreeCollection({autoload:n.config.autoload,init:o,rootId:n.config.rootId||e},n.events)),n.config.checkbox&&n._normalizeMark(),n._isSelectionActive=!0,n.selection=new h.Selection({disabled:!n.config.selection},n.data,n.events),n.config.keyNavigation&&(n._keyManager=new p.KeyManager((function(t,e){return e===n._uid})),n._initHotkeys()),n._editor=new f.Editor,n._initEvents(),n._initHandlers(),n.config.dragMode&&h.dragManager.setItem(n._uid,n),n._root=n.data.getRoot();return n.mount(e,(0,a.create)({render:function(){return n._draw()}})),v.focusManager.setFocusId(n._uid),n}return o(e,t),e.prototype.focusItem=function(t){var e=this;this._focusId=t,this.data.eachParent(t,(function(t){t.opened||e.expand(t.id)})),(0,a.awaitRedraw)().then((function(){return e._scrollTo(t)})),this.events.fire(g.TreeEvents.focusChange,[this.data.getIndex(t),t]),this.paint()},e.prototype.destructor=function(){this.events&&this.events.clear(),this._keyManager&&this._keyManager.destructor(),this.config=this.events=this.selection=null,this._editor=this._handlers=this._root=this._focusId=this._right=this._keyManager=this._touch=this._isDraget=null,this.unmount()},e.prototype.editItem=function(t,e){if(!this._editor.isEditable()){var i=this.data.getItem(t);this.events.fire(g.TreeEvents.beforeEditStart,[i.value,t])&&(this.data.update(t,{$edit:!0,$editConfig:e},!0),this.events.fire(g.TreeEvents.afterEditStart,[i.value,t]))}},e.prototype.getState=function(){var t={};return this.data.eachChild(this._root,(function(e){t[e.id]={open:e.opened,selected:e.$mark}}),!0),t},e.prototype.setState=function(t){this.data.eachChild(this._root,(function(e){e.id in t&&(e.opened=t[e.id].open,e.$mark=t[e.id].selected)}),!0),this.paint()},e.prototype.toggle=function(t){var e=this.data.getItem(t);if(e.$autoload){if(!this.events.fire(g.TreeEvents.beforeExpand,[t]))return;this.data.loadItems(t),this.data.update(t,{$autoload:!1,opened:!0}),this.events.fire(g.TreeEvents.afterExpand,[t])}else e.opened?this.collapse(t):this.expand(t)},e.prototype.getChecked=function(){var t=[];return this.data.eachChild(this._root,(function(e){e.$mark===g.SelectStatus.selected&&t.push(e.id)})),t},e.prototype.checkItem=function(t){(0,s.isId)(t)&&this.data.getItem(t)&&(this._updateItemCheck(t,g.SelectStatus.selected),this.paint())},e.prototype.collapse=function(t){if(this.data.haveItems(t)){if(!this.events.fire(g.TreeEvents.beforeCollapse,[t]))return;this.data.update(t,{opened:!1}),this.events.fire(g.TreeEvents.afterCollapse,[t])}},e.prototype.collapseAll=function(){var t=this;this.data.eachChild(this._root,(function(e){var i=e.id;return t.collapse(i)}),!0)},e.prototype.expand=function(t){if(this.data.haveItems(t)){if(!this.events.fire(g.TreeEvents.beforeExpand,[t]))return;this.data.update(t,{opened:!0}),this.events.fire(g.TreeEvents.afterExpand,[t])}},e.prototype.expandAll=function(){var t=this;this.data.eachChild(this._root,(function(e){var i=e.id;return t.expand(i)}),!0)},e.prototype.uncheckItem=function(t){(0,s.isId)(t)&&this.data.getItem(t)&&(this._updateItemCheck(t,g.SelectStatus.unselected),this.paint())},e.prototype.close=function(t){this.collapse(t)},e.prototype.closeAll=function(){this.collapseAll()},e.prototype.open=function(t){this.expand(t)},e.prototype.openAll=function(){this.expandAll()},e.prototype.unCheckItem=function(t){this.uncheckItem(t)},e.prototype._draw=function(){this._getRightPos();var t=this._drawItems(this.data.getRoot());return(0,a.el)("ul",r({class:"dhx_widget dhx_tree"+(this._isSelectionActive?"":" dhx_tree--no-selection ")+(this.config.css?" "+this.config.css:""),"data-dhx-widget-id":this._uid,tabindex:0,"data-dhx-root-id":this.config.rootId},this._handlers),t)},e.prototype._initEvents=function(){var t=this;this.data.events.on(h.DataEvents.load,(function(){t.config.checkbox&&(t._normalizeMark(),t.paint())})),this.data.events.on(h.DataEvents.change,(function(e,i,n){"remove"===i&&t._updateParents(n.parent,!0),"add"===i&&t._updateParents(e),t.paint()})),this.data.events.on(h.DataEvents.filter,(function(){t.paint()})),this.data.events.on(h.DataEvents.beforeRemove,(function(e){var i=e.id,n=e.parent;if(i==t._focusId){var o=t.data.findAll((function(t){return t.parent===n})),r=n;if(o.length>1){var s=o.findIndex((function(t){return t.id===i}));r=o[s===o.length-1?o.length-2:s+1].id}t.selection.remove(i),t.selection.add(r),t.focusItem(r)}})),this._editor.events.on(f.EditorEvents.begin,(function(e){e===t._uid&&(t.config.$editable=!0)})),this._editor.events.on(f.EditorEvents.end,(function(e,i,n){if(!t.events.fire(g.TreeEvents.beforeEditEnd,[n,i]))return!1;t._uid===e&&t.data.update(i,{$edit:!1,value:n}),t.config.$editable=!1,t.events.fire(g.TreeEvents.afterEditEnd,[n,i])})),this.events.on(h.DragEvents.beforeDrag,(function(e,i,n){var o=e.start,r=t.data.getItem(o),s=m(t.config.isFolder?t.config.isFolder(r):t.data.haveItems(r.id),r.opened),a=(r.icon||t.config.icon)[s]||t.config.icon[s];n.innerHTML='<div class="dhx_tree-list-item__icon '.concat(a,'"></div><span class="dhx_tree-list-item__text">').concat(r.text||r.value,"</span>")})),this.events.on(h.DragEvents.canDrop,(function(e){var i,n=e.target,o=e.dropPosition;i="complex"===t.config.dropBehaviour?"top"===o?"dhx_tree-drop--top":"bottom"===o?"dhx_tree-drop--bottom":"dhx_tree-drop--in-folder":"child"===t.config.dropBehaviour?"dhx_tree-drop--in-folder":"dhx_tree-drop--bottom",t.data.exists(n)&&t.data.update(n,{$drophere:i},!0),t.paint()})),this.events.on(h.DragEvents.cancelDrop,(function(e){var i=e.target;t.data.exists(i)&&t.data.update(i,{$drophere:null},!0)})),this.events.on(h.DragEvents.afterDrop,(function(e){var i=e.target,n=e.dropPosition;("child"===t.config.dropBehaviour||"complex"===t.config.dropBehaviour&&"in"===n)&&t.expand(i)})),this.events.on(h.DragEvents.dragStart,(function(){t._isSelectionActive=!1,t._autoScroll(),t.paint()})),this.events.on(h.DragEvents.afterDrag,(function(e){t._isSelectionActive=!0,t._isDraget=!0,t.data.exists(e.start)&&t.selection.add(e.start),t.paint()})),this.events.on(g.TreeEvents.itemClick,(function(e){t._focusId=e,t.paint()})),this.events.on(u.SelectionEvents.afterSelect,(function(){return t.paint()})),this.events.on(u.SelectionEvents.afterUnSelect,(function(){return t.paint()}))},e.prototype._autoScroll=function(){var t=this.getRootNode();if(t){var e=null,i=t.getBoundingClientRect(),n=i.top,o=i.bottom,r=i.left,s=i.right,a=i.height,l=function(i){"up"===i||"down"===i?t.scrollBy(0,"up"===i?-20:20):t.scrollBy("left"===i?-20:20,0),e=setTimeout((function(){l(i)}),100)},c=function(t){var i=t.clientX,a=t.clientY;a>o-20&&a<o&&i>r&&i<s?e||l("down"):a>n&&a<n+20&&i>r&&i<s?e||l("up"):e&&(clearTimeout(e),e=null)};a<t.scrollHeight&&(document.addEventListener("pointermove",c),document.addEventListener("pointerup",(function(){document.removeEventListener("pointermove",c),e&&clearTimeout(e)}),{once:!0}))}},e.prototype._scrollTo=function(t){var e=this.getRootNode(),i=e.querySelector('[data-dhx-id="'.concat(t,'"]'));if(i){var n=e.getBoundingClientRect(),o=i.getBoundingClientRect(),r=o.top-n.top,s=o.top+o.height-n.top-n.height;r<0?e.scrollBy(0,r):s>0&&e.scrollBy(0,s)}},e.prototype._initHandlers=function(){var t=this;this._handlers={onmouseleave:function(t){h.dragManager.cancelCanDrop(t)},onclick:function(e){if(t._isDraget)t._isDraget=!1;else{var i=(0,c.locate)(e);if(i)if(e.target.classList.contains("dhx_tree-toggle-button"))t.toggle(i);else{if(e.target.classList.contains("dhx_tree-checkbox")){if(!t.events.fire(g.TreeEvents.beforeCheck,[t.data.getIndex(i),i]))return;var n=t.data.getItem(i);return n.$mark===g.SelectStatus.unselected?t.checkItem(i):t.uncheckItem(i),void t.events.fire(g.TreeEvents.afterCheck,[t.data.getIndex(i),i,!!n.$mark])}t.events.fire(g.TreeEvents.itemClick,[i,e]),t.data.exists(i)&&t.selection.add(i)}}},ondblclick:function(e){t._dblClick(e)},ondragstart:function(t){t.preventDefault()},onmousedown:function(e){t._dragStart(e)},ontouchstart:function(e){(t._touch.timer=setTimeout((function(){t._dragStart(e)}),t._touch.duration),t._touch.timeStamp)?(t._touch.dblDuration>=t._touch.timeStamp-+e.timeStamp.toFixed()&&t._dblClick(e),t._touch.timeStamp=null):t._touch.timeStamp=+e.timeStamp.toFixed();setTimeout((function(){t._touch.timeStamp=null}),t._touch.dblDuration)},ontouchmove:function(e){t._touch.start&&e.preventDefault(),t._clearTouchTimer()},ontouchend:function(){t._touch.start=!1,t._clearTouchTimer()},oncontextmenu:function(e){var i=(0,c.locate)(e);i&&(t.events.fire(g.TreeEvents.itemRightClick,[i,e]),t.events.fire(g.TreeEvents.itemContextMenu,[i,e]))}};var e=this.config.eventHandlers;if(e)for(var i=0,n=Object.entries(e);i<n.length;i++){var o=n[i],s=o[0],a=o[1];this._handlers[s]=(0,c.eventHandler)((function(e){var i=r({},t.data.getItem((0,c.locate)(e)));return Object.keys(i).forEach((function(t){t.startsWith("$")&&delete i[t]})),i}),a,this._handlers[s])}},e.prototype._dblClick=function(t){var e=(0,c.locate)(t);e&&(this.events.fire(g.TreeEvents.itemDblClick,[e,t]),this.config.editable&&this.editItem(e))},e.prototype._clearTouchTimer=function(){this._touch.timer&&(clearTimeout(this._touch.timer),this._touch.timer=null)},e.prototype._dragStart=function(t){if(this.config.dragMode&&"target"!==this.config.dragMode){if(this._editor.isEditable())return;this._touch.start=!0,h.dragManager.onMouseDown(t)}},e.prototype._getRightPos=function(t,e){if(void 0===e&&(e=0),!(0,s.isId)(t))for(var i=this.data.getRoot(),n=0,o=this.data.findAll((function(t){return t.parent===i}));n<o.length;n++){var r=o[n];return this._getRightPos(r.id,e)}var a=this.data.getItem(t);if(a&&(this._right=e,this.data.haveItems(a.id)&&a.opened&&a.items))for(var l=0,c=a.items;l<c.length;l++){var u=c[l];this._getRightPos(u.id,e+1)}},e.prototype._drawItems=function(t,e){var i=this;return void 0===e&&(e=0),this.data.getRawData(0,-1,null,0,t).map((function(t){if(t){var n,o,s,l=!!i.config.isFolder&&i.config.isFolder(t);if((t.$autoload||i.data.haveItems(t.id))&&(l=!0,n=(0,a.el)("div",{class:"dxi dxi-menu-right dhx_tree-toggle-button"},""),t.opened&&(n=(0,a.el)("div",{class:"dxi dxi-menu-down dhx_tree-toggle-button dhx_tree-toggle-button--open"},""),o=i._drawItems(t.id,e+1))),t.checkbox){var c=t.$mark===g.SelectStatus.indeterminate?"dxi-minus-box":t.$mark===g.SelectStatus.selected?"dxi-checkbox-marked":"dxi-checkbox-blank-outline";s=(0,a.el)("div",{class:"dhx_tree-checkbox dxi "+c})}var u,d=m(l,t.opened),h=(t.icon||i.config.icon)[d]||i.config.icon[d];if(u=t.$edit?i._editor.edit(i._uid,r({item:t},t.$editConfig)):(0,a.el)("span",{class:"dhx_tree-list-item__text"},t.text||t.value),i.config.template){var f=i.config.template(t,l);u="string"!=typeof f||(!t.hasOwnProperty("value")||t.$edit)&&t.hasOwnProperty("value")?u:(0,a.el)("div.dhx_tree-template__wrapper",{".innerHTML":f})}var p=i.config.itemHeight||null;return l?(0,a.el)("li",{class:"dhx_tree-list-item dhx_tree-list-item--parent"+(t.css?" "+t.css:""),"data-dhx-id":t.id,_key:t.id},[(0,a.el)("div.dhx_tree-folder",{class:(t.id==i._focusId?" dhx_tree-folder--focused":"")+(t.$selected?" dhx_tree-folder--selected":"")+(t.$drophere?" "+t.$drophere:""),style:{left:"".concat(-_(e),"px"),right:0,"margin-left":"".concat(_(e),"px"),minHeight:p}},[n,(0,a.el)("div.dhx_tree-list-item__content",[s,(0,a.el)("div",{class:"dhx_tree-list-item__icon "+h}),u])]),o&&(0,a.el)("ul.dhx_tree-list",o)]):(0,a.el)("li",{class:"dhx_tree-list__item dhx_tree-list-item"+(t.id==i._focusId?" dhx_tree-list-item--focused":"")+(t.$selected?" dhx_tree-list-item--selected":"")+(t.$drophere?" "+t.$drophere:"")+(l?"dhx_tree-list-item--folder":"")+(t.css?" "+t.css:""),style:{left:"".concat(-_(e),"px"),right:0,"margin-left":"".concat(_(e),"px"),minHeight:p},"data-dhx-id":t.id,level:e},[n,(0,a.el)("div",{class:"dhx_tree-list-item__content"},[s,(0,a.el)("div",{class:"dhx_tree-list-item__icon "+h}),u])])}}))},e.prototype._updateItemCheck=function(t,e){var i=this;this._updateCheckedStatus(r(r({},this.data.getItem(t)),{$mark:e})),this.data.eachChild(t,(function(t){t.$mark=e,i._updateCheckedStatus(t)})),this._updateParents(t)},e.prototype._updateParents=function(t,e){var i=this;void 0===e&&(e=!1),t!==this._root&&this.data.eachParent(t,(function(t){var e=0,n=0;i.data.eachChild(t.id,(function(t){if(t.checkbox)switch(t.$mark){case g.SelectStatus.unselected:n++;break;case g.SelectStatus.selected:e++}}),!0),t.$mark=0!==e&&0!==n?g.SelectStatus.indeterminate:0===e&&0!==n?g.SelectStatus.unselected:g.SelectStatus.selected,i._updateCheckedStatus(t)}),e)},e.prototype._updateCheckedStatus=function(t){var e=t.$mark===g.SelectStatus.selected;this.data.update(t.id,{checked:e,$mark:t.$mark},e===t.checked)},e.prototype._normalizeMark=function(){var t=this;this.data.eachChild(this.data.getRoot(),(function(e){if(e.$mark){var i=t.data.getItem(e.parent);i&&!i.$mark&&t.data.eachParent(e.id,(function(t){t.$mark=g.SelectStatus.indeterminate}))}}))},e.prototype._initHotkeys=function(){var t=this,e=function(){var e=t._focusId;if(e)return e;var i=t.data.getRoot();return t.data.getItems(i)[0].id},i=function(e,n){void 0===n&&(n=!1);var o=t.data.getItem(e);if(t.data.haveItems(e)&&o.opened&&!n)return t.data.getItems(e)[0].id;var r=t.data.getParent(e),a=t.data.getItems(r),l=(0,s.findIndex)(a,(function(t){return t.id===e}));return l+1<a.length?a[l+1].id:r===t.data.getRoot()?null:i(r,!0)},n={arrowLeft:function(i){i.preventDefault();var n=e(),o=t.data.getParent(n);t.data.getRoot()!==o?!t.data.getItem(n).opened?t.focusItem(o):n!==t.data.getRoot()&&t.collapse(n):t.collapse(n)},arrowRight:function(i){i.preventDefault();var n=e();if(t.data.getItem(n).$autoload){if(!t.events.fire(g.TreeEvents.beforeExpand,[n]))return;return t.data.loadItems(n),t.data.update(n,{$autoload:!1,opened:!0}),void t.events.fire(g.TreeEvents.afterExpand,[n])}t.data.haveItems(n)&&t.expand(n)},arrowUp:function(i){i.preventDefault();var n=function(e){var i=t.data.getIndex(e),n=t.data.getParent(e);if(i>0){var o=t.data.getItems(n)[i-1];if(!t.data.haveItems(o.id)||!o.opened)return o.id;for(;t.data.haveItems(o.id)&&o.opened;){var r=t.data.getItems(o.id);o=r[r.length-1]}return o.id}return n===t.data.getRoot()?null:n}(e());n&&t.focusItem(n)},arrowDown:function(n){n.preventDefault();var o=e(),r=i(o);r&&t.focusItem(r)},enter:function(){var i=e();i&&t.selection.add(i)}};for(var o in n)this._keyManager.addHotKey(o,n[o])},e}(d.View);e.Tree=y},function(t,e,i){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),o(i(106),e),o(i(244),e)},function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.detectDrag=void 0,e.detectDrag=function(e){return new t((function(t){var i=function(){document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",i),t(!1)},n=setTimeout((function(){i()}),1e3),o=function(r){(Math.abs(r.pageX-e.pageX)>4||Math.abs(r.pageY-e.pageY)>4)&&(document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",i),clearTimeout(n),t({x:e.pageX,y:e.pageY}))};document.addEventListener("mousemove",o),document.addEventListener("mouseup",i)}))}}).call(this,i(17))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={popups:{},lastActive:null,freeCount:0,add:function(t,e){this.lastActive&&this.popups[this.lastActive].classList.remove("dhx_popup--window_active"),this.lastActive=t,e.classList.add("dhx_popup--window_active"),this.popups[t]=e},setActive:function(t){if(t!==this.lastActive){var e=this.popups[t];e&&(this.lastActive&&this.popups[this.lastActive].classList.remove("dhx_popup--window_active"),this.lastActive=t,e.classList.add("dhx_popup--window_active"))}},openFreeWindow:function(t){0===this.freeCount&&t.classList.add("dhx_window--no-scroll"),this.freeCount++},closeFreeWindow:function(t){this.freeCount--,0===this.freeCount&&t.classList.remove("dhx_window--no-scroll")}}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(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 i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.ProWindow=void 0;var r=i(106),s=i(34),a=i(11),l=i(20),c=i(107),u=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype._startResize=function(t){var e,i,n=this,o=100|this.config.minWidth,r=100|this.config.minHeight,s=this._popup.offsetLeft,a=this._popup.offsetTop,l=this._popup.offsetWidth,u=this._popup.offsetHeight,d=this.getRootView().refs;switch(!0){case t.bottom&&t.left:i="dhx_window-body-pointer--bottom_left",e=d.bottomLeft;break;case t.bottom&&t.right:i="dhx_window-body-pointer--bottom_right",e=d.bottomLeft;break;case t.top&&t.left:i="dhx_window-body-pointer--top_left",e=d.bottomLeft;break;case t.top&&t.right:i="dhx_window-body-pointer--top-right",e=d.right;break;case t.top:i="dhx_window-body-pointer--top",e=d.bottomLeft;break;case t.bottom:i="dhx_window-body-pointer--bottom",e=d.bottomLeft;break;case t.left:i="dhx_window-body-pointer--left",e=d.bottomLeft;break;case t.right:i="dhx_window-body-pointer--right",e=d.right}e.el.classList.add("dhx_window-resizer--active"),this.config.node.classList.add("dhx_window--stop_selection"),this.config.node.classList.add(i);var h=function(e){var i=n._getContainerParams(),d=i.containerInnerWidth,h=i.containerInnerHeight,f=i.containerXOffset,p=i.containerYOffset,v={width:n._notInNode()?e.pageX-s:e.pageX-n.config.node.offsetLeft-s,height:n._notInNode()?e.pageY-a:e.pageY-n.config.node.offsetTop-a,left:n._notInNode()?e.pageX:e.pageX-n.config.node.offsetLeft,top:n._notInNode()?e.pageY:e.pageY-n.config.node.offsetTop};t.right&&(v.width<o?v.width=o:v.width>f+d-s&&(v.width=f+d-s),n._popup.style.width=v.width+"px"),t.bottom&&(v.height<r?v.height=r:v.height>p+h-a&&(v.height=p+h-a),n._popup.style.height=v.height+"px"),t.left&&(s+l-v.left<o&&(v.left=s+l-o),v.width=s+l-v.left,n.config.left=v.left,n._popup.style.left=v.left+"px",n._popup.style.width=v.width+"px"),t.top&&(v.top<p?v.top=p:a+u-v.top<r&&(v.top=a+u-r),v.height=a+u-v.top,n.config.top=v.top,n._popup.style.top=v.top+"px",n._popup.style.height=v.height+"px"),n.config.width=n._popup.offsetWidth,n.config.height=n._popup.offsetHeight,n.events.fire(c.WindowEvents.resize,[v,{left:s,top:a,height:u,width:l},t]),n.scrollView&&n.scrollView.update()},f=function(){document.removeEventListener("mouseup",f),document.removeEventListener("mousemove",h),n.config.node.classList.remove("dhx_window--stop_selection"),n.config.node.classList.remove(i),e.el.classList.remove("dhx_window-resizer--active")};document.addEventListener("mouseup",f),document.addEventListener("mousemove",h)},e.prototype._initUI=function(){var t=this,e=[],i=(this.config.header||this.config.title||this.config.closable||this.config.movable)&&!1!==this.config.header;i&&e.push({id:"header",height:"content",css:"dhx_window-header "+(this.config.movable?"dhx_window-header--movable":""),on:{mousedown:this.config.movable&&this._handlers.move,dblclick:this._handlers.headerDblClick}}),e.push({id:"content",css:i?"dhx_window-content":"dhx_window-content-without-header"}),this.config.footer&&e.push({id:"footer",height:"content",css:"dhx_window-footer"}),this.config.resizable&&e.push({id:"resizers",height:"content",css:"resizers"});var n=this._layout=new a.ProLayout(this._popup,{css:"dhx_window"+(this.config.modal?" dhx_window--modal":""),rows:e,on:{mousedown:this._handlers.setActive},id:this._uid}),o=this._layout.getCell("content");if(o&&o.scrollView&&(this.scrollView=o.scrollView),i){var r=this.header=new s.Toolbar;this.config.title&&(this.header.data.add({type:"title",value:this.config.title,id:"title",css:"title_max"}),this._popup.setAttribute("aria-label",this.config.title)),this.config.closable&&(this.header.data.add({type:"spacer"}),this.header.data.add({id:"close",type:"button",view:"link",size:"medium",color:"secondary",circle:!0,icon:"dxi dxi-close"}),r.events.on(l.NavigationBarEvents.click,(function(e,i){"close"===e&&t._hide(i)}))),n.getCell("header").attach(r)}if(this.config.footer){var c=this.footer=new s.Toolbar;n.getCell("footer").attach(c)}this.config.resizable&&n.getCell("resizers").attach((function(){return t._drawResizers()}))},e}(r.Window);e.ProWindow=u},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setLocale=void 0,e.setLocale=function(t,e){var i=this[t];if(i)for(var n in e)i[n]=e[n]}}])})),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}