(self["webpackChunkfront"]=self["webpackChunkfront"]||[]).push([[326],{709:function(e){ /*! * DevExpress Gantt (dx-gantt.min) * Version: 4.1.37 * Build date: Thu Dec 01 2022 * * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs */ !function(t,i){e.exports=i()}(0,(function(){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=73)}([function(e,t,i){"use strict";i.r(t),i.d(t,"__extends",(function(){return o})),i.d(t,"__assign",(function(){return r})),i.d(t,"__rest",(function(){return a})),i.d(t,"__decorate",(function(){return s})),i.d(t,"__param",(function(){return l})),i.d(t,"__metadata",(function(){return d})),i.d(t,"__awaiter",(function(){return u})),i.d(t,"__generator",(function(){return c})),i.d(t,"__createBinding",(function(){return h})),i.d(t,"__exportStar",(function(){return p})),i.d(t,"__values",(function(){return f})),i.d(t,"__read",(function(){return g})),i.d(t,"__spread",(function(){return m})),i.d(t,"__spreadArrays",(function(){return _})),i.d(t,"__spreadArray",(function(){return v})),i.d(t,"__await",(function(){return y})),i.d(t,"__asyncGenerator",(function(){return C})),i.d(t,"__asyncDelegator",(function(){return b})),i.d(t,"__asyncValues",(function(){return x})),i.d(t,"__makeTemplateObject",(function(){return w})),i.d(t,"__importStar",(function(){return S})),i.d(t,"__importDefault",(function(){return I})),i.d(t,"__classPrivateFieldGet",(function(){return E})),i.d(t,"__classPrivateFieldSet",(function(){return D})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var r=function(){return(r=Object.assign||function(e){for(var t,i=1,n=arguments.length;i=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a}function l(e,t){return function(i,n){t(i,n,e)}}function d(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,i,n){return new(i||(i=Promise))((function(o,r){function a(e){try{l(n.next(e))}catch(e){r(e)}}function s(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))}function c(e,t){var i,n,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,n=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!((o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,o,r=i.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(o)throw o.error}}return a}function m(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(i=o[e](t)).value instanceof y?Promise.resolve(i.value.v).then(l,d):u(r[0][2],i)}catch(e){u(r[0][3],e)}var i}function l(e){s("next",e)}function d(e){s("throw",e)}function u(e,t){e(t),r.shift(),r.length&&s(r[0][0],r[0][1])}}function b(e){var t,i;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(i=!i)?{value:y(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e=f(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=e[i]&&function(t){return new Promise((function(n,o){(function(e,t,i,n){Promise.resolve(n).then((function(t){e({value:t,done:i})}),t)})(n,o,(t=e[i](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var T=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&h(t,e,i);return T(t,e),t}function I(e){return e&&e.__esModule?e:{default:e}}function E(e,t,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e)}function D(e,t,i,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,i):o?o.value=i:t.set(e,i),i}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numberToStringHex=t.numberToStringBin=t.isOdd=t.isEven=t.isNonNullString=t.isString=t.isNumber=t.boolToString=t.boolToInt=t.isDefined=void 0;var n=i(39);t.isDefined=function(e){return null!=e},t.boolToInt=function(e){return e?1:0},t.boolToString=function(e){return e?"1":"0"},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isNonNullString=function(e){return!!e},t.isEven=function(e){return e%2!=0},t.isOdd=function(e){return e%2==0},t.numberToStringBin=function(e,t){return void 0===t&&(t=0),n.StringUtils.padLeft(e.toString(2),t,"0")},t.numberToStringHex=function(e,t){return void 0===t&&(t=0),n.StringUtils.padLeft(e.toString(16),t,"0")}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GanttDataObjectNames=t.DataObject=void 0;var n=i(1),o=i(18),r=function(){function e(){this.internalId=o.MathUtils.generateGuid()}return e.prototype.assignFromObject=function(e){(0,n.isDefined)(e)&&(0,n.isDefined)(e.id)&&this.updateId(e.id)},e.prototype.updateId=function(e){this.id=e,this.internalId=String(e)},e}();t.DataObject=r,t.GanttDataObjectNames={task:"task",dependency:"dependency",resource:"resource",resourceAssignment:"assignment"}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtils=void 0;var n=i(10),o=i(1),r=i(18),a=i(39),s=function(){function e(){}return e.clearInnerHtml=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},e.setStylePosition=function(e,t){e.left=r.MathUtils.round(t.x,3)+"px",e.top=r.MathUtils.round(t.y,3)+"px"},e.setStyleSize=function(e,t){e.width=r.MathUtils.round(t.width,3)+"px",e.height=r.MathUtils.round(t.height,3)+"px"},e.setStyleSizeAndPosition=function(t,i){e.setStylePosition(t,i),e.setStyleSize(t,i)},e.hideNode=function(e){if(e){var t=e.parentNode;t&&t.removeChild(e)}},e.isHTMLElementNode=function(e){return e.nodeType===Node.ELEMENT_NODE},e.isTextNode=function(e){return e.nodeType===Node.TEXT_NODE},e.isElementNode=function(e){return e.nodeType===Node.ELEMENT_NODE},e.isHTMLTableRowElement=function(e){return"TR"===e.tagName},e.isItParent=function(e,t){if(!e||!t)return!1;for(;t;){if(t===e)return!0;if("BODY"===t.tagName)return!1;t=t.parentNode}return!1},e.getParentByTagName=function(e,t){for(t=t.toUpperCase();e;){if("BODY"===e.tagName)return null;if(e.tagName===t)return e;e=e.parentNode}return null},e.getDocumentScrollTop=function(){var t=n.Browser.IE&&"hidden"===e.getCurrentStyle(document.body).overflow&&document.body.scrollTop>0;return n.Browser.WebKitFamily||n.Browser.Edge||t?n.Browser.MacOSMobilePlatform?window.pageYOffset:n.Browser.WebKitFamily&&document.documentElement.scrollTop||document.body.scrollTop:document.documentElement.scrollTop},e.getDocumentScrollLeft=function(){var t=n.Browser.IE&&"hidden"===e.getCurrentStyle(document.body).overflow&&document.body.scrollLeft>0;return n.Browser.Edge||t?document.body?document.body.scrollLeft:document.documentElement.scrollLeft:n.Browser.WebKitFamily?document.documentElement.scrollLeft||document.body.scrollLeft:document.documentElement.scrollLeft},e.getCurrentStyle=function(e){if(e.currentStyle)return e.currentStyle;if(document.defaultView&&document.defaultView.getComputedStyle){var t=document.defaultView.getComputedStyle(e,null);if(!t&&n.Browser.Firefox&&window.frameElement){for(var i=[],r=window.frameElement;!(t=document.defaultView.getComputedStyle(e,null));)i.push([r,r.style.display]),r.style.setProperty("display","block","important"),r="BODY"===r.tagName?r.ownerDocument.defaultView.frameElement:r.parentNode;t=function(e){if("object"!=typeof e||!o.isDefined(e))return e;var t={};for(var i in e)t[i]=e[i];return t}(t);for(var a=void 0,s=0;a=i[s];s++)a[0].style.display=a[1];document.body.offsetWidth}return t}return window.getComputedStyle(e,null)},e.setFocus=function(e){function t(){try{e.focus(),n.Browser.IE&&document.activeElement!==e&&e.focus()}catch(e){}}n.Browser.MacOSMobilePlatform?t():setTimeout((function(){t()}),100)},e.hasClassName=function(e,t){try{var i=t.split(" "),n=e.classList;if(n){for(var o=i.length-1;o>=0;o--)if(!n.contains(i[o]))return!1}else{var r=e.getAttribute&&e.getAttribute("class");if(!r)return!1;var a=r.split(" ");for(o=i.length-1;o>=0;o--)if(a.indexOf(i[o])<0)return!1}return!0}catch(e){return!1}},e.addClassName=function(t,i){if(!e.hasClassName(t,i)){var n=t.getAttribute&&t.getAttribute("class");t.setAttribute("class",""===n?i:n+" "+i)}},e.removeClassName=function(e,t){var i=" "+(e.getAttribute&&e.getAttribute("class"))+" ",n=i.replace(" "+t+" "," ");i.length!==n.length&&e.setAttribute("class",a.StringUtils.trim(n))},e.toggleClassName=function(t,i,n){void 0===n?e.hasClassName(t,i)?e.removeClassName(t,i):e.addClassName(t,i):n?e.addClassName(t,i):e.removeClassName(t,i)},e.pxToInt=function(e){return l(e,parseInt)},e.pxToFloat=function(e){return l(e,parseFloat)},e.getAbsolutePositionY=function(t){function i(t){return Math.round(t.getBoundingClientRect().top+e.getDocumentScrollTop())}return t?n.Browser.IE?function(t){return n.Browser.IE&&null===t.parentNode?0:t.getBoundingClientRect().top+e.getDocumentScrollTop()}(t):n.Browser.Firefox&&n.Browser.Version>=3?i(t):n.Browser.Opera?function(t){var i=!0;t&&e.isHTMLTableRowElement(t)&&t.cells.length>0&&(t=t.cells[0]);for(var n=d(t,!1);null!=t;)n+=t.offsetTop,i||(n-=t.scrollTop),t=t.offsetParent,i=!1;return n+document.body.scrollTop}(t):n.Browser.NetscapeFamily&&(!n.Browser.Firefox||n.Browser.Version<3)?function(t){for(var i=d(t,!1),o=!0;null!=t;){if(i+=t.offsetTop,o||null==t.offsetParent||(i-=t.scrollTop),!o&&n.Browser.Firefox){var r=e.getCurrentStyle(t);"DIV"===t.tagName&&"visible"!==r.overflow&&(i+=e.pxToInt(r.borderTopWidth))}o=!1,t=t.offsetParent}return i}(t):n.Browser.WebKitFamily||n.Browser.Edge?i(t):function(e){for(var t=0,i=!0;null!=e;)t+=e.offsetTop,i||null==e.offsetParent||(t-=e.scrollTop),i=!1,e=e.offsetParent;return t}(t):0},e.getAbsolutePositionX=function(t){function i(t){return Math.round(t.getBoundingClientRect().left+e.getDocumentScrollLeft())}return t?n.Browser.IE?function(t){return n.Browser.IE&&null===t.parentNode?0:t.getBoundingClientRect().left+e.getDocumentScrollLeft()}(t):n.Browser.Firefox&&n.Browser.Version>=3?i(t):n.Browser.Opera&&n.Browser.Version<=12?function(e){for(var t=!0,i=d(e,!0);null!=e;)i+=e.offsetLeft,t||(i-=e.scrollLeft),e=e.offsetParent,t=!1;return i+document.body.scrollLeft}(t):n.Browser.NetscapeFamily&&(!n.Browser.Firefox||n.Browser.Version<3)?function(t){for(var i=d(t,!0),o=!0;null!=t;){if(i+=t.offsetLeft,o||null==t.offsetParent||(i-=t.scrollLeft),!o&&n.Browser.Firefox){var r=e.getCurrentStyle(t);"DIV"===t.tagName&&"visible"!==r.overflow&&(i+=e.pxToInt(r.borderLeftWidth))}o=!1,t=t.offsetParent}return i}(t):n.Browser.WebKitFamily||n.Browser.Edge?i(t):function(e){for(var t=0,i=!0;null!=e;)t+=e.offsetLeft,i||null==e.offsetParent||(t-=e.scrollLeft),i=!1,e=e.offsetParent;return t}(t):0},e.isInteractiveControl=function(e){return["A","INPUT","SELECT","OPTION","TEXTAREA","BUTTON","IFRAME"].indexOf(e.tagName)>-1},e.getClearClientHeight=function(t){return t.offsetHeight-(e.getTopBottomPaddings(t)+e.getVerticalBordersWidth(t))},e.getTopBottomPaddings=function(t,i){var n=i||e.getCurrentStyle(t);return e.pxToInt(n.paddingTop)+e.pxToInt(n.paddingBottom)},e.getVerticalBordersWidth=function(t,i){o.isDefined(i)||(i=n.Browser.IE&&9!==n.Browser.MajorVersion&&window.getComputedStyle?window.getComputedStyle(t):e.getCurrentStyle(t));var r=0;return"none"!==i.borderTopStyle&&(r+=e.pxToFloat(i.borderTopWidth)),"none"!==i.borderBottomStyle&&(r+=e.pxToFloat(i.borderBottomWidth)),r},e.getNodes=function(e,t){for(var i=e.all||e.getElementsByTagName("*"),n=[],o=0;o=9||n.Browser.Edge?t.textContent:t.innerText},e.html2PlainTextFilter=null,e.verticalScrollBarWidth=void 0,e}();function l(e,t){var i=0;if(o.isDefined(e)&&""!==e)try{var n=e.indexOf("px");n>-1&&(i=t(e.substr(0,n)))}catch(e){}return i}function d(e,t){for(var i=0,n=!0;null!=e&&"BODY"!==e.tagName;){var o=s.getCurrentStyle(e);if("absolute"===o.position)break;n||"DIV"!==e.tagName||""!==o.position&&"static"!==o.position||(i-=t?e.scrollLeft:e.scrollTop),e=e.parentNode,n=!1}return i}t.DomUtils=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaEventSource=t.TaskTitlePosition=t.Position=t.ViewType=void 0,function(e){e[e.TenMinutes=0]="TenMinutes",e[e.Hours=1]="Hours",e[e.SixHours=2]="SixHours",e[e.Days=3]="Days",e[e.Weeks=4]="Weeks",e[e.Months=5]="Months",e[e.Quarter=6]="Quarter",e[e.Years=7]="Years",e[e.FiveYears=8]="FiveYears"}(t.ViewType||(t.ViewType={})),function(e){e[e.Left=0]="Left",e[e.Top=1]="Top",e[e.Right=2]="Right",e[e.Bottom=3]="Bottom"}(t.Position||(t.Position={})),function(e){e[e.Inside=0]="Inside",e[e.Outside=1]="Outside",e[e.None=2]="None"}(t.TaskTitlePosition||(t.TaskTitlePosition={})),function(e){e[e.TaskArea=0]="TaskArea",e[e.TaskEdit_Frame=1]="TaskEdit_Frame",e[e.TaskEdit_Progress=2]="TaskEdit_Progress",e[e.TaskEdit_Start=3]="TaskEdit_Start",e[e.TaskEdit_End=4]="TaskEdit_End",e[e.TaskEdit_DependencyStart=5]="TaskEdit_DependencyStart",e[e.TaskEdit_DependencyFinish=6]="TaskEdit_DependencyFinish",e[e.Successor_Wrapper=7]="Successor_Wrapper",e[e.Successor_DependencyStart=8]="Successor_DependencyStart",e[e.Successor_DependencyFinish=9]="Successor_DependencyFinish"}(t.TaskAreaEventSource||(t.TaskAreaEventSource={}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Point=void 0;var n=function(){function e(e,t){this.x=e,this.y=t}return e.zero=function(){return new e(0,0)},e.fromNumber=function(t){return new e(t,t)},e.prototype.isZero=function(){return 0===this.x&&0===this.y},e.prototype.toString=function(){return JSON.stringify(this)},e.prototype.copyFrom=function(e){this.x=e.x,this.y=e.y},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.equals=function(e){return this.x===e.x&&this.y===e.y},e.prototype.offset=function(e,t){return this.x+=e,this.y+=t,this},e.prototype.offsetByPoint=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.multiply=function(e,t){return this.x*=e,this.y*=t,this},e.prototype.negative=function(){return this.x*=-1,this.y*=-1,this},e.prototype.applyConverter=function(e){return this.x=e(this.x),this.y=e(this.y),this},e.plus=function(t,i){return new e(t.x+i.x,t.y+i.y)},e.minus=function(t,i){return new e(t.x-i.x,t.y-i.y)},e.xComparer=function(e,t){return e.x-t.x},e.yComparer=function(e,t){return e.y-t.y},e.equals=function(e,t){return e.x===t.x&&e.y===t.y},e}();t.Point=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommandBase=void 0;var n=function(){function e(e){this.control=e}return Object.defineProperty(e.prototype,"modelManipulator",{get:function(){return this.control.modelManipulator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"history",{get:function(){return this.control.history},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"validationController",{get:function(){return this.control.validationController},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state||(this._state=this.getState()),this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(){for(var e=[],t=0;t0?t:e:t:null},e.getMinDate=function(e,t){return e||t?e?t?this.compareDates(e,t)>0?e:t:e:t:null},e.getDaysBetween=function(e,t){var i=Math.abs(t.getTime()-e.getTime());return Math.ceil(i/this.msInDay)},e.getWeeksBetween=function(e,t){var i=this.getDaysBetween(e,t),n=Math.floor(i/7);return e.getDay()>t.getDay()&&n++,n},e.getMonthsDifference=function(e,t){var i=this.compareDates(e,t),n=i>=0?e:t,o=i>=0?t:e;return 12*(o.getFullYear()-n.getFullYear())+(o.getMonth()-n.getMonth())},e.getYearsDifference=function(e,t){return Math.abs(t.getFullYear()-e.getFullYear())},e.getDayNumber=function(e){return Math.ceil(e.getTime()/this.msInDay)},e.getDateByDayNumber=function(e){var t=new Date(e*this.msInDay);return t.setHours(0),t.setMinutes(0),t.setSeconds(0),t},e.addDays=function(e,t){return new Date(e.getTime()+t*this.msInDay)},e.checkDayOfMonth=function(e,t){return e==t.getDate()},e.checkDayOfWeek=function(e,t){return e==t.getDay()},e.checkMonth=function(e,t){return e==t.getMonth()},e.checkYear=function(e,t){return e==t.getFullYear()},e.checkDayOfWeekOccurrenceInMonth=function(e,t,i){var n=this.getSpecificDayOfWeekInMonthDates(t,e.getFullYear(),e.getMonth());return i==s.DayOfWeekMonthlyOccurrence.Last?this.areDatesEqual(e,n[n.length-1]):this.areDatesEqual(e,n[i])},e.getFirstDayOfWeekInMonth=function(e,t){return new Date(e,t,1).getDay()},e.getSpecificDayOfWeekInMonthDates=function(e,t,i){for(var n=this.getFirstDayOfWeekInMonth(t,i),o=e>=n?e-n:e+7-n,r=new Array,a=new Date(t,i,o+1);a.getMonth()==i;)r.push(a),a=this.addDays(a,7);return r},e.getSpecificDayOfWeekInMonthDate=function(e,t,i,n){var o=this.getSpecificDayOfWeekInMonthDates(e,t,i);return n==s.DayOfWeekMonthlyOccurrence.Last?o[o.length-1]:o[n]},e.checkValidDayInMonth=function(e,t,i){return!(i<1||i>31||new Date(e,t,i).getMonth()!=t)},e.getNextMonth=function(e,t){return void 0===t&&(t=1),(e+t)%12},e.convertToDate=function(e){if(e instanceof Date)return new Date(e);var t=Date.parse(e);return isNaN(t)?null:new Date(t)},e.convertTimeRangeToDateRange=function(e,t){var i=this.getDateByDayNumber(t),n=i.getFullYear(),o=i.getMonth(),r=i.getDate(),s=e.start,l=new Date(n,o,r,s.hour,s.min,s.sec,s.msec),d=e.end,u=new Date(n,o,r,d.hour,d.min,d.sec,d.msec);return new a.DateRange(l,u)},e.convertToTimeRanges=function(e){var t=this;return e instanceof Array?e.map((function(e){return t.convertToTimeRange(e)})):this.parseTimeRanges(e)},e.convertToTimeRange=function(e){return e?e instanceof o.TimeRange?e:(0,r.isDefined)(e.start)&&(0,r.isDefined)(e.end)?new o.TimeRange(this.convertToTime(e.start),this.convertToTime(e.end)):this.parseTimeRange(e):null},e.convertToTime=function(e){return e?e instanceof n.Time?e:e instanceof Date?this.getTimeGromJsDate(e):this.parseTime(e):null},e.parseTimeRanges=function(e){var t=this;return e?e.split(/;|,/).map((function(e){return t.parseTimeRange(e)})).filter((function(e){return!!e})):null},e.parseTimeRange=function(e){if(!e)return null;var t=e.split("-"),i=t[0],n=t[1];return(0,r.isDefined)(i)&&(0,r.isDefined)(n)?new o.TimeRange(this.parseTime(i),this.parseTime(n)):null},e.parseTime=function(e){if(!e)return null;var t=e.split(":"),i=parseInt(t[0])||0,o=parseInt(t[1])||0,r=parseInt(t[2])||0,a=parseInt(t[3])||0;return new n.Time(i,o,r,a)},e.getTimeGromJsDate=function(e){if(!e)return null;var t=e.getHours(),i=e.getMinutes(),o=e.getSeconds(),r=e.getMilliseconds();return new n.Time(t,i,o,r)},e.caclTimeDifference=function(e,t){return t.getTimeInMilleconds()-e.getTimeInMilleconds()},e.areTimesEqual=function(e,t){return 0==this.caclTimeDifference(e,t)},e.getMaxTime=function(e,t){return e||t?e?t&&this.caclTimeDifference(e,t)>0?t:e:t:null},e.getMinTime=function(e,t){return e||t?e?t?this.caclTimeDifference(e,t)>0?e:t:e:t:null},e.getLastTimeOfDay=function(){return new n.Time(23,59,59,999)},e.msInDay=864e5,e}();t.DateTimeUtils=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EvtUtils=void 0;var n=i(10),o=i(1),r=i(3),a=i(167),s=function(){function e(){}return e.preventEvent=function(e){e.cancelable&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},e.getEventSource=function(t){return o.isDefined(t)?e.getEventSourceCore(t):null},e.getEventSourceByPosition=function(t){if(!o.isDefined(t))return null;if(!document.elementFromPoint)return e.getEventSourceCore(t);var i=e.getEventX(t)-(e.clientEventRequiresDocScrollCorrection()?r.DomUtils.getDocumentScrollLeft():0),n=e.getEventY(t)-(e.clientEventRequiresDocScrollCorrection()?r.DomUtils.getDocumentScrollTop():0);return void 0===i||void 0===n?e.getEventSourceCore(t):document.elementFromPoint(i,n)},e.getEventSourceCore=function(e){return e.srcElement?e.srcElement:e.target},e.getMouseWheelEventName=function(){return n.Browser.Safari?"mousewheel":n.Browser.NetscapeFamily&&n.Browser.MajorVersion<17?"DOMMouseScroll":"wheel"},e.isLeftButtonPressed=function(t){return!!a.TouchUtils.isTouchEvent(t)||!!(t=n.Browser.IE&&o.isDefined(event)?event:t)&&(n.Browser.IE&&n.Browser.Version<11?!!n.Browser.MSTouchUI||t.button%2==1:n.Browser.WebKitFamily?"pointermove"===t.type||"pointerenter"===t.type||"pointerleave"===t.type?1===t.buttons:1===t.which:n.Browser.NetscapeFamily||n.Browser.Edge||n.Browser.IE&&n.Browser.Version>=11?e.isMoveEventName(t.type)?1===t.buttons:1===t.which:!n.Browser.Opera||0===t.button)},e.isMoveEventName=function(t){return t===a.TouchUtils.touchMouseMoveEventName||t===e.getMoveEventName()},e.getMoveEventName=function(){return window.PointerEvent?"pointermove":n.Browser.TouchUI?"touchmove":"mousemove"},e.preventEventAndBubble=function(t){e.preventEvent(t),t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0},e.clientEventRequiresDocScrollCorrection=function(){var e=n.Browser.Safari&&n.Browser.Version<3,t=n.Browser.MacOSMobilePlatform&&n.Browser.Version<5.1;return n.Browser.AndroidDefaultBrowser||n.Browser.AndroidChromeBrowser||!(e||t)},e.getEventX=function(t){return a.TouchUtils.isTouchEvent(t)?a.TouchUtils.getEventX(t):t.clientX+(e.clientEventRequiresDocScrollCorrection()?r.DomUtils.getDocumentScrollLeft():0)},e.getEventY=function(t){return a.TouchUtils.isTouchEvent(t)?a.TouchUtils.getEventY(t):t.clientY+(e.clientEventRequiresDocScrollCorrection()?r.DomUtils.getDocumentScrollTop():0)},e.cancelBubble=function(e){e.cancelBubble=!0},e.getWheelDelta=function(e){var t;return t=n.Browser.NetscapeFamily&&n.Browser.MajorVersion<17?-e.detail:n.Browser.Safari?e.wheelDelta:-e.deltaY,n.Browser.Opera&&n.Browser.Version<9&&(t=-t),t},e}();t.EvtUtils=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Browser=void 0;var n=function(){function e(){}return e.IdentUserAgent=function(t,i){void 0===i&&(i=!1);var n=["Mozilla","IE","Firefox","Netscape","Safari","Chrome","Opera","Opera10","Edge"],o={Safari:2,Chrome:.1,Mozilla:1.9,Netscape:8,Firefox:2,Opera:9,IE:6,Edge:12};if(t&&0!==t.length){t=t.toLowerCase(),e.indentPlatformMajorVersion(t);try{for(var r={Windows:"Win",Macintosh:"Mac","Mac OS":"Mac",Mac_PowerPC:"Mac","cpu os":"MacMobile","cpu iphone os":"MacMobile",Android:"Android","!Windows Phone":"WinPhone","!WPDesktop":"WinPhone","!ZuneWP":"WinPhone"},a="(?:(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?)?",s={Safari:"applewebkit(?:.*?(?:version/(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?[\\.\\w\\d]*?(?:\\s+mobile/\\S*)?\\s+safari))?",Chrome:"(?:chrome|crios)(?!frame)(?:/|\\s*)?"+a,Mozilla:"mozilla(?:.*rv:"+a+".*Gecko)?",Netscape:"(?:netscape|navigator)\\d*/?\\s*"+a,Firefox:"firefox(?:/|\\s*)?"+a,Opera:"(?:opera|\\sopr)(?:/|\\s*)?"+a,Opera10:"opera.*\\s*version(?:/|\\s*)?"+a,IE:"msie\\s*"+a,Edge:"edge(?:/|\\s*)?"+a},l=null,d=-1,u=0;u=0){if("IE"===l&&d>=11&&"Safari"===c)continue;"Opera10"===(l=c)&&(l="Opera"),d=e.GetBrowserVersion(t,h,"trident(?:/|\\s*)?(?:(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?)?",e.getIECompatibleVersionString()),"Mozilla"===l&&d>=11&&(l="IE")}}l||(l="IE");var p=-1!==d;p||(d=o[l]);var f=null,g=Number.MAX_VALUE;for(var m in r)if(Object.prototype.hasOwnProperty.call(r,m)){var _="!"===m.substr(0,1),v=t.indexOf((_?m.substr(1):m).toLowerCase());v>=0&&(v0;"WinPhone"===f&&d<9&&(d=Math.floor(e.getVersionFromTrident(t,"trident(?:/|\\s*)?"+a))),!i&&"IE"===l&&d>7&&document.documentMode0},e.hasMsMaxTouchPoints=function(){return navigator.msMaxTouchPoints>0},e.hasNavigator=function(){return"undefined"!=typeof navigator},e.fillUserAgentInfo=function(t,i,n,o,r){void 0===r&&(r=!1);for(var a=0;a=15,e.NetscapeFamily=e.Netscape||e.Mozilla||e.Firefox,e.WebKitTouchUI=e.MacOSMobilePlatform||e.AndroidMobilePlatform;var l=e.IE&&e.MajorVersion>9&&e.WindowsPlatform&&e.UserAgent.toLowerCase().indexOf("touch")>=0;if(e.MSTouchUI=l||e.Edge&&!!window.navigator.maxTouchPoints,e.TouchUI=e.WebKitTouchUI||e.MSTouchUI,e.MobileUI=e.WebKitTouchUI||e.WindowsPhonePlatform,e.AndroidDefaultBrowser=e.AndroidMobilePlatform&&!e.Chrome,e.AndroidChromeBrowser=e.AndroidMobilePlatform&&e.Chrome,r&&(e.SamsungAndroidDevice=r),e.MSTouchUI){var d=e.UserAgent.toLowerCase().indexOf("arm;")>-1;e.VirtualKeyboardSupported=d||e.WindowsPhonePlatform}else e.VirtualKeyboardSupported=e.WebKitTouchUI;e.fillDocumentElementBrowserTypeClassNames(t)},e.indentPlatformMajorVersion=function(t){var i=/(?:(?:windows nt|macintosh|mac os|cpu os|cpu iphone os|android|windows phone|linux) )(\d+)(?:[-0-9_.])*/.exec(t);i&&(e.PlaformMajorVersion=i[1])},e.getVersionFromMatches=function(e){var t=-1,i="";return e&&(e[1]&&(i+=e[1],e[2]&&(i+="."+e[2])),""!==i&&(t=parseFloat(i),isNaN(t)&&(t=-1))),t},e.getVersionFromTrident=function(t,i){var n=new RegExp(i,"i").exec(t);return e.getVersionFromMatches(n)+4},e.fillDocumentElementBrowserTypeClassNames=function(t){for(var i="",n=t.concat(["WindowsPlatform","MacOSPlatform","MacOSMobilePlatform","AndroidMobilePlatform","WindowsPhonePlatform","WebKitFamily","WebKitTouchUI","MSTouchUI","TouchUI","AndroidDefaultBrowser"]),o=0;oa)o.setTime(a);else if(this.needCorrectDate(e,r,i,n)){var s=this.getNearestLeftTickTime(e,r,i,n),l=this.getNextTickTime(s,i,n);Math.abs(e.getTime()-s)>Math.abs(e.getTime()-l)?o.setTime(l):o.setTime(s)}return o},e.needCorrectDate=function(e,t,i,o){return o==n.ViewType.Months?e.getTime()!==new Date(e.getFullYear(),e.getMonth(),1).getTime():(e.getTime()-t)%i!=0},e.getNearestLeftTickTime=function(e,t,i,o){return o==n.ViewType.Months?new Date(e.getFullYear(),e.getMonth(),1).getTime():t+Math.floor((e.getTime()-t)/i)*i},e.getNextTickTime=function(e,t,i){if(i==n.ViewType.Months){var o=new Date;return o.setTime(e),o.setMonth(o.getMonth()+1),o.getTime()}return e+t},e.adjustStartDateByViewType=function(e,t,i){switch(void 0===i&&(i=0),t){case n.ViewType.TenMinutes:return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours());case n.ViewType.SixHours:case n.ViewType.Hours:return new Date(e.getFullYear(),e.getMonth(),e.getDate());case n.ViewType.Days:case n.ViewType.Weeks:return new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay()+i);case n.ViewType.Months:case n.ViewType.Quarter:case n.ViewType.Years:return new Date(e.getFullYear(),0,1);default:return new Date}},e.adjustEndDateByViewType=function(e,t,i){switch(void 0===i&&(i=0),t){case n.ViewType.TenMinutes:return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours()+1);case n.ViewType.SixHours:case n.ViewType.Hours:return new Date(e.getFullYear(),e.getMonth(),e.getDate()+1);case n.ViewType.Days:case n.ViewType.Weeks:return new Date(e.getFullYear(),e.getMonth(),e.getDate()+7-e.getDay()+i);case n.ViewType.Months:case n.ViewType.Quarter:case n.ViewType.Years:return new Date(e.getFullYear()+1,0,1);default:return new Date}},e.roundStartDate=function(e,t){switch(t){case n.ViewType.TenMinutes:case n.ViewType.Hours:return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours()-1);case n.ViewType.SixHours:case n.ViewType.Days:return new Date(e.getFullYear(),e.getMonth(),e.getDate()-1);case n.ViewType.Weeks:return new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay());case n.ViewType.Months:return new Date(e.getFullYear(),e.getMonth()-1);case n.ViewType.Quarter:case n.ViewType.Years:return new Date(e.getFullYear()-1,0,1);default:return new Date}},e.getTickTimeSpan=function(t){switch(t){case n.ViewType.TenMinutes:return e.msPerHour/6;case n.ViewType.Hours:return e.msPerHour;case n.ViewType.SixHours:return 6*e.msPerHour;case n.ViewType.Days:return e.msPerDay;case n.ViewType.Weeks:return e.msPerWeek;case n.ViewType.Months:return e.msPerMonth;case n.ViewType.Quarter:return 3*e.msPerMonth;case n.ViewType.Years:return e.msPerYear}},e.getRangeTickCount=function(t,i,o){return o===n.ViewType.Months?this.getRangeTickCountInMonthsViewType(t,i):o===n.ViewType.Quarter?this.getRangeTickCountInQuarterViewType(t,i):e.getRangeMSPeriod(t,i)/e.getTickTimeSpan(o)},e.getRangeMSPeriod=function(t,i){return i.getTime()-e.getDSTDelta(t,i)-t.getTime()},e.getRangeTickCountInMonthsViewType=function(t,i){var n=new Date(t.getFullYear(),t.getMonth(),1),o=new Date(i.getFullYear(),i.getMonth(),1);return e.getOffsetInMonths(n,o)+(i.getTime()-o.getTime())/(e.getDaysInMonth(i.getMonth(),i.getFullYear())*e.msPerDay)-(t.getTime()-n.getTime())/(e.getDaysInMonth(t.getMonth(),t.getFullYear())*e.msPerDay)},e.getRangeTickCountInQuarterViewType=function(t,i){var n=new Date(t.getFullYear(),3*Math.floor(t.getMonth()/3),1),o=new Date(i.getFullYear(),3*Math.floor(i.getMonth()/3),1);return e.getOffsetInQuarters(n,o)+(i.getTime()-o.getTime())/(e.getDaysInQuarter(o)*e.msPerDay)-(t.getTime()-n.getTime())/(e.getDaysInQuarter(n)*e.msPerDay)},e.parse=function(e){return"function"==typeof e?new Date(e()):new Date(e)},e.getOrCreateUTCDate=function(e){var t=e.getTimezoneOffset();return t?new Date(e.valueOf()+6e4*t):e},e.getTimezoneOffsetDiff=function(e,t){return t.getTimezoneOffset()-e.getTimezoneOffset()},e.getDSTDelta=function(t,i){var n=e.getTimezoneOffsetDiff(t,i)*e.msPerMinute;return n>0?n:0},e.getDSTCorrectedTaskEnd=function(t,i){var n=t.getTime()+i,o=e.getDSTDelta(t,new Date(n));return new Date(n+o)},e.msPerMinute=6e4,e.msPerHour=36e5,e.msPerDay=24*e.msPerHour,e.msPerWeek=7*e.msPerDay,e.msPerMonth=30*e.msPerDay,e.msPerYear=365*e.msPerDay,e.ViewTypeToScaleMap=((t={})[n.ViewType.TenMinutes]=n.ViewType.Hours,t[n.ViewType.Hours]=n.ViewType.Days,t[n.ViewType.SixHours]=n.ViewType.Days,t[n.ViewType.Days]=n.ViewType.Weeks,t[n.ViewType.Weeks]=n.ViewType.Months,t[n.ViewType.Months]=n.ViewType.Years,t[n.ViewType.Quarter]=n.ViewType.Years,t[n.ViewType.Years]=n.ViewType.FiveYears,t),e}();t.DateUtils=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RenderElementUtils=void 0;var n=function(){function e(){}return e.create=function(e,t,i,n){var o=document.createElement("DIV");for(var r in e.assignToElement(o),i.appendChild(o),n&&(n instanceof Array&&null!==t?n[t]=o:n[e.id]=o),e.attr)Object.prototype.hasOwnProperty.call(e.attr,r)&&o.setAttribute(r,e.attr[r]);for(var r in e.style)Object.prototype.hasOwnProperty.call(e.style,r)&&(o.style[r]=e.style[r]);return o},e.remove=function(e,t,i,n){var o;n instanceof Array&&null!==t?(o=n[t],delete n[t]):(o=n[e.id],delete n[e.id]),o&&o.parentNode==i&&i.removeChild(o)},e.recreate=function(e,t,i,n){e.filter((function(e){return-1===t.indexOf(e)})).forEach((function(e){i(e)})),t.filter((function(t){return-1===e.indexOf(t)})).forEach((function(e){n(e)}))},e}();t.RenderElementUtils=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Color=void 0;var n=i(1),o=function(){function e(e){this._num=null,this._opacity=1,this._rgb=null,this.assign(e)}return Object.defineProperty(e.prototype,"opacity",{get:function(){return this._opacity},enumerable:!1,configurable:!0}),e.prototype.hasValue=function(){return(0,n.isDefined)(this._num)||!!this._rgb||0===this._opacity},e.prototype.getValue=function(){return!(0===this._opacity&&!this._rgb)&&((0,n.isDefined)(this._num)?this._num:this._rgb?this.getRBGColor():null)},e.prototype.assign=function(t){this.reset(),"string"==typeof t&&this.assignFromString(t),"number"==typeof t&&(this._num=t),t instanceof Array&&this.assignFromRgbArray(t),t instanceof e&&this.assignFromColor(t)},e.prototype.reset=function(){this._opacity=1,this._num=null,this._rgb=null},e.prototype.assignFromString=function(e){e&&("transparent"===e&&(this._opacity=0),0===e.indexOf("#")&&this.assignFromHexString(e),"rgb"===e.substr(0,3).toLowerCase()&&this.assignFromRgbString(e))},e.prototype.assignFromHexString=function(e){if(4===e.length&&(e="#"+e[1].repeat(2)+e[2].repeat(2)+e[3].repeat(2)),e.length>6){var t=parseInt(e.substr(1,2),16),i=parseInt(e.substr(3,2),16),n=parseInt(e.substr(5,2),16);this._rgb=[t,i,n]}},e.prototype.assignFromRgbString=function(t){var i="rgba"===t.substr(0,4).toLowerCase(),n=t.toLowerCase().match(i?e.rgbaRegexp:e.rgbRegexp);if(n){var o=parseInt(n[1]),r=parseInt(n[2]),a=parseInt(n[3]);this._rgb=[o,r,a],i&&(this._opacity=parseFloat(n[4]))}},e.prototype.assignFromRgbArray=function(e){e&&e.length>2&&(this._rgb=[e[0],e[1],e[2]],(0,n.isDefined)(e[3])&&(this._opacity=e[3]))},e.prototype.assignFromColor=function(e){this._opacity=e._opacity,this._num=e._num,this._rgb=e._rgb},e.prototype.getRBGColor=function(){return this._rgb?this._rgb:[0,0,0]},e.prototype.applyOpacityToBackground=function(t){if(1!==this._opacity){var i=(t instanceof e?t:new e(t)).getValue();if(i instanceof Array){var n=this.opacity,o=Math.round((1-n)*i[0]+n*this._rgb[0]),r=Math.round((1-n)*i[1]+n*this._rgb[1]),a=Math.round((1-n)*i[2]+n*this._rgb[2]);this._rgb=[o,r,a]}}},e.rgbRegexp=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/,e.rgbaRegexp=/rgba?\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,?\s*([0-9]*\.?[0-9]*)\s*\)/,e}();t.Color=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MathUtils=void 0;var n=i(82),o=function(){function e(){}return e.round=function(t,i){void 0===i&&(i=0);var n=e.powFactor[i];return Math.round(t*n)/n},e.numberCloseTo=function(e,t,i){return void 0===i&&(i=1e-5),Math.abs(e-t)i?i:e-1&&t-1&&e0){var t=this.createItem();t.assignFromObject(e),this.add(t)}},e.prototype.importFromArray=function(e){for(var t=0;t0&&this.control.validationController.updateParentsIfRequired(e.children[0].task.internalId)},t}(o.CommandBase);t.TaskCommandBase=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GridLayoutCalculator=void 0;var n=i(12),o=i(19),r=i(4),a=i(58),s=i(5),l=i(15),d=i(59),u=i(23),c=i(129),h=i(1),p=function(){function e(){this.tileToDependencyMap=[],this.tileToNoWorkingIntervalsMap=[],this.minLineLength=10,this.resourceMaxWidth=500,this.minTaskWidth=2,this._taskWrapperPoints=Array(),this._taskElementInfoList=Array(),this._scaleCalculator=new c.ScaleCalculator}return e.prototype.setSettings=function(e,t,i,o,r,a,s,d){void 0===s&&(s=0),void 0===d&&(d=0),this.visibleTaskAreaSize=e,this.tickSize=t,this._viewType=a,this.range=o,this.verticalTickCount=r.itemCount,this.viewModel=r,this.elementSizeValues=i,this.taskHeight=i.taskHeight,this.parentTaskHeight=i.parentTaskHeight,this.milestoneWidth=i.milestoneWidth,this.scaleHeight=i.scaleItemHeight,this.arrowSize=new n.Size(i.connectorArrowWidth,i.connectorArrowWidth),this.lineThickness=i.connectorLineThickness,this.minConnectorSpaceFromTask=(this.tickSize.height-this.taskHeight)/2,this.tickTimeSpan=l.DateUtils.getTickTimeSpan(a),this.scrollBarHeight=s,this.createTileToNonWorkingIntervalsMap(),this._scaleCalculator.setSettings(o,a,t,d),this.reset()},Object.defineProperty(e.prototype,"viewType",{get:function(){return this._viewType},set:function(e){this._viewType!==e&&(this._viewType=e,this._scaleCalculator.setViewType(e))},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this._taskWrapperPoints=new Array,this._taskElementInfoList=Array()},e.prototype.resetTaskInfo=function(e){delete this._taskWrapperPoints[e],delete this._taskElementInfoList[e]},e.prototype.getTaskAreaBorderInfo=function(e,t){var i=t?this.getVerticalGridLineHeight():this.getTotalWidth();return this.getGridBorderInfo(e,t,i)},e.prototype.getTotalWidth=function(){return this._scaleCalculator.scaleWidth},e.prototype.getScaleBorderInfo=function(e,t){var i=new a.GridElementInfo,o=this._scaleCalculator;return i.setPosition(new s.Point(o.getScaleBorderPosition(e,t),void 0)),i.setSize(new n.Size(0,this.scaleHeight)),i.className="dx-gantt-vb",i},e.prototype.getGridBorderInfo=function(e,t,i){var n=new a.GridElementInfo;return n.setPosition(this.getGridBorderPosition(e,t)),i&&n.setSize(this.getGridBorderSize(t,i)),n.className=t?"dx-gantt-vb":"dx-gantt-hb",n},e.prototype.getGridBorderPosition=function(e,t){var i=new s.Point(void 0,void 0),n=this._scaleCalculator,o=t?n.getScaleBorderPosition(e,this.viewType):(e+1)*this.tickSize.height;return t?i.x=o:i.y=o,i},e.prototype.getGridBorderSize=function(e,t){var i=new n.Size(0,0);return e?i.height=t:i.width=t,i},e.prototype.getScaleElementInfo=function(e,t){var i=new a.GridElementInfo,n=this.getScaleItemInfo(e,t);if(n){i.setPosition(n.position),i.setSize(n.size),i.className=this.getScaleItemClassName(t,i,this.getRenderedNoWorkingIntervals(i.position.x));var r=this._scaleCalculator.getScaleItems(t);(0===e||e===r.length-1)&&(i.style.overflowX="hidden",i.style.textOverflow="ellipsis"),i.additionalInfo.range=new o.DateRange(n.start,n.end)}return i},e.prototype.getScaleItemStart=function(e,t){return this._scaleCalculator.getScaleItemAdjustedStart(e,t)},e.prototype.getScaleItemClassName=function(e,t,i){var n="dx-gantt-si";return e.valueOf()==this.viewType.valueOf()&&this.isScaleItemInsideNoWorkingInterval(t,i)&&(n+=" dx-gantt-holiday-scaleItem"),n},e.prototype.getScaleItemInfo=function(e,t){return this._scaleCalculator.getScaleItem(e,t)},e.prototype.getScaleRangesInArea=function(e,t){var i=l.DateUtils.ViewTypeToScaleMap[this.viewType],n=this._scaleCalculator,o=Math.max(n.getScaleIndexByPos(e,i),0),r=n.getScaleIndexByPos(t,i);-1===r&&(r=n.topScaleItems.length-1);var a=Math.max(n.getScaleIndexByPos(e),0),s=n.getScaleIndexByPos(t);return-1===s&&(s=n.bottomScaleItems.length-1),[[o,r],[a,s]]},e.prototype.isScaleItemInsideNoWorkingInterval=function(e,t){for(var i=e.position.x,n=e.position.x+e.size.width,o=0;o=r&&n<=a)return!0}return!1},e.prototype.getScaleItemColSpan=function(e){return this._scaleCalculator.getScaleItemColSpan(e)},e.prototype.getTaskWrapperElementInfo=function(e){var t=new a.GridElementInfo;return t.className=this.getTaskWrapperClassName(e),t.setPosition(this.getTaskWrapperPoint(e)),t.setAttribute("task-index",e),t},e.prototype.getTaskWrapperClassName=function(e){var t="dx-gantt-taskWrapper",i=this.getViewItem(e);return i.task.isMilestone()&&!i.isCustom&&(t="dx-gantt-milestoneWrapper"),i.selected&&(t+=" dx-gantt-selectedTask"),t},e.prototype.getTaskWrapperPoint=function(e){if(!(0,h.isDefined)(this._taskWrapperPoints[e])){var t=this.getViewItem(e),i=this.getTaskHeight(e),n=e*this.tickSize.height+(this.tickSize.height-i)/2,o=new s.Point(this.getPosByDate(t.task.start),n);t.task.isMilestone()&&!t.isCustom&&(o.x-=i/2),this._taskWrapperPoints[e]=o}return this._taskWrapperPoints[e].clone()},e.prototype.getTaskElementInfo=function(e,t){if(void 0===t&&(t=!1),!(0,h.isDefined)(this._taskElementInfoList[e])){var i=new a.GridElementInfo,n=this.getTask(e),o=this.viewModel.parentAutoCalc&&this.viewModel.taskHasChildrenByIndex(e);if(!n.isMilestone()){var r=this.getTaskWidth(e);i.size.width=this.getCorrectedTaskWidthByRange(e,r),i.size.width=100&&(i+=" dx-gantt-cmpl"),i},e.prototype.getTaskPoint=function(e){var t=this.getTaskWrapperPoint(e);return this.getTask(e).isMilestone()||(t.y+=this.elementSizeValues.taskWrapperTopPadding),t},e.prototype.getTaskSize=function(e){return new n.Size(this.getTaskWidth(e),this.getTaskHeight(e))},e.prototype.getTaskWidth=function(e){var t=this.getViewItem(e);return t.isCustom&&t.size.width?t.size.width:t.task.isMilestone()&&!t.isCustom?this.getTaskHeight(e):Math.max(this.getWidthByDateRange(t.task.start,t.task.end),this.minTaskWidth)},e.prototype.getTaskHeight=function(e){var t=this.getViewItem(e);return t.task.isMilestone()&&!t.isCustom?this.milestoneWidth:this.viewModel.isTaskToCalculateByChildren(t.task.internalId)?this.parentTaskHeight:t.isCustom&&t.size.height?t.size.height:this.taskHeight},e.prototype.getTask=function(e){var t=this.getViewItem(e);return null==t?void 0:t.task},e.prototype.getViewItem=function(e){return this.viewModel.items[e]},e.prototype.getTaskProgressElementInfo=function(t){var i=new a.GridElementInfo;return i.className=e.taskProgressClassName,i.setSize(this.getTaskProgressSize(t)),i},e.prototype.getTaskProgressSize=function(e){var t=this.getTaskProgressWidth(e);return this.isTaskCutByRange(e)&&(t=this.getCorrectedTaskWidthByRange(e,t)),new n.Size(t,0)},e.prototype.getTaskProgressWidth=function(e){return this.getTaskWidth(e)*this.getTask(e).normalizedProgress/100},e.prototype.getTaskTextElementInfo=function(e,t){var i=new a.GridElementInfo;if(i.className=this.getTaskTextElementClassName(t),!t){var n=this.getTaskPoint(e).x;if(n0?i.margins.left=-o:i.additionalInfo.hidden=!0}}return i},e.prototype.getTaskTextElementClassName=function(t){return e.taskTitleClassName.concat(" ",t?e.titleInClassName:e.titleOutClassName)},e.prototype.getTaskResourcesWrapperElementInfo=function(e){var t=new a.GridElementInfo,i=this.getTaskSize(e).width;return t.className="dx-gantt-taskResWrapper",t.setPosition(this.getTaskWrapperPoint(e)),t.position.x=t.position.x+i,t},e.prototype.getTaskResourceElementInfo=function(){var t=new a.GridElementInfo;return t.className=e.taskResourceClassName,t},e.prototype.getSelectionElementInfo=function(e){return this.getRowElementInfo(e,"dx-gantt-sel")},e.prototype.getSelectionPosition=function(e){var t=new s.Point(void 0,void 0);return t.y=e*this.tickSize.height,t},e.prototype.getSelectionSize=function(){return new n.Size(this.getTotalWidth(),this.tickSize.height)},e.prototype.getHighlightRowInfo=function(e){return this.getRowElementInfo(e,"dx-gantt-altRow")},e.prototype.getRowElementInfo=function(e,t){var i=new a.GridElementInfo;return i.className=t,i.setPosition(this.getSelectionPosition(e)),i.setSize(this.getSelectionSize()),i},e.prototype.getNoWorkingIntervalInfo=function(e){var t=new a.GridElementInfo;return t.className="dx-gantt-nwi",t.setPosition(this.getNoWorkingIntervalPosition(e.start)),t.setSize(this.getNoWorkingIntervalSize(e)),t},e.prototype.getNoWorkingIntervalPosition=function(e){var t=new s.Point(void 0,void 0);return t.x=this.getPosByDate(e),t},e.prototype.getNoWorkingIntervalSize=function(e){return new n.Size(this.getWidthByDateRange(e.start,e.end),this.getVerticalGridLineHeight())},e.prototype.getVerticalGridLineHeight=function(){return Math.max(this.visibleTaskAreaSize.height-this.scrollBarHeight,this.tickSize.height*this.verticalTickCount)},e.prototype.getConnectorInfo=function(e,t,i,n){for(var o=new Array,r=this.getConnectorPoints(t,i,n),a=0;ao.y?r.Position.Top:r.Position.Bottom:n.x>o.x?r.Position.Left:r.Position.Right},e.prototype.getArrowClassName=function(t){var i=e.arrowClassName;switch(t){case r.Position.Left:i=i.concat(" ",e.leftArrowClassName);break;case r.Position.Top:i=i.concat(" ",e.topArrowClassName);break;case r.Position.Right:i=i.concat(" ",e.rightArrowClassName);break;case r.Position.Bottom:i=i.concat(" ",e.bottomArrowClassName)}return i},e.prototype.getArrowPositionByClassName=function(t){return t.indexOf(e.leftArrowClassName)>-1?r.Position.Left:t.indexOf(e.topArrowClassName)>-1?r.Position.Top:t.indexOf(e.rightArrowClassName)>-1?r.Position.Right:t.indexOf(e.bottomArrowClassName)>-1?r.Position.Bottom:void 0},e.prototype.getArrowPoint=function(e,t){return new s.Point(this.getArrowX(e,t),this.getArrowY(e,t))},e.prototype.getArrowX=function(e,t){switch(t){case r.Position.Left:return e.position.x-this.arrowSize.width/2;case r.Position.Right:return e.position.x+e.size.width-this.arrowSize.width/2;case r.Position.Top:case r.Position.Bottom:return e.position.x-(this.arrowSize.width-this.lineThickness)/2}},e.prototype.getArrowY=function(e,t){switch(t){case r.Position.Top:return e.position.y-this.arrowSize.height/2;case r.Position.Bottom:return e.position.y+e.size.height-this.arrowSize.height/2;case r.Position.Left:case r.Position.Right:return e.position.y-(this.arrowSize.height-this.lineThickness)/2}},e.prototype.getPosByDate=function(e){return this.getWidthByDateRange(this.range.start,e)},e.prototype.getWidthByDateRange=function(e,t){return l.DateUtils.getRangeTickCount(e,t,this.viewType)*this.tickSize.width},e.prototype.getDateByPos=function(e){if(this.viewType===r.ViewType.Months||this.viewType===r.ViewType.Quarter)return this.getDateByPosInMonthBasedViewTypes(e);var t=e/this.tickSize.width,i=new Date(this.range.start);return l.DateUtils.getDSTCorrectedTaskEnd(i,t*this.tickTimeSpan)},e.prototype.getDateByPosInMonthBasedViewTypes=function(e){return this._scaleCalculator.getDateInScale(e)},e.prototype.getConnectorPoints=function(e,t,i){switch(i){case u.DependencyType.FS:return this.getFinishToStartConnectorPoints(e,t);case u.DependencyType.SF:return this.getStartToFinishConnectorPoints(e,t);case u.DependencyType.SS:return this.getStartToStartConnectorPoints(e,t);case u.DependencyType.FF:return this.getFinishToFinishConnectorPoints(e,t);default:return new Array}},e.prototype.getFinishToStartConnectorPoints=function(e,t){return e=this.getTask(t).end?this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskTopSide(e,t,!0):this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskRightSide(e,t,!1):this.getTask(e).start>=this.getTask(t).end?this.getConnectorPoints_FromTopTaskBottomSide_ToBottomTaskLeftSide(t,e,!0):this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskLeftSide(t,e,!0)},e.prototype.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskTopSide=function(e,t,i){var n=new Array,o=this.getTaskPoint(e),r=this.getTaskPoint(t),a=this.getTaskRightCenter(o,e),l=this.getTask(t).isMilestone(),d=this.getTaskTopCenter(r,t),u=this.getHorizontalIndentFromTaskEdge(t,i);return n.push(new s.Point(Math.floor(a.x),Math.floor(a.y))),n.push(new s.Point(Math.floor(l?d.x:r.x+u),Math.floor(n[0].y))),n.push(new s.Point(Math.floor(n[1].x),Math.floor(d.y))),n},e.prototype.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskRightSide=function(e,t){var i=new Array,n=this.getTaskPoint(e),o=this.getTaskPoint(t),r=this.getTaskRightCenter(n,e),a=this.getTaskRightCenter(o,t);return i.push(new s.Point(Math.floor(r.x),Math.floor(r.y))),i.push(new s.Point(Math.floor(Math.max(r.x,a.x)+this.minLineLength),Math.floor(i[0].y))),i.push(new s.Point(Math.floor(i[1].x),Math.floor(a.y))),i.push(new s.Point(Math.floor(a.x),Math.floor(a.y))),i},e.prototype.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskLeftSide=function(e,t,i){var n=new Array,o=this.getTaskPoint(e),r=this.getTaskPoint(t),a=this.getTaskRightCenter(o,e),l=this.getTaskBottomCenter(o,e),d=this.getTaskLeftCenter(r,t),u=this.getTaskTopCenter(r,t),c=i?this.getViewItem(e):this.getViewItem(t),h=c.isCustom?(this.tickSize.height-c.size.height)/2:this.minConnectorSpaceFromTask;return n.push(new s.Point(Math.floor(a.x),Math.floor(a.y))),n.push(new s.Point(Math.floor(n[0].x+this.minLineLength),Math.floor(n[0].y))),n.push(new s.Point(Math.floor(n[1].x),Math.floor(i?l.y+h:u.y-h))),n.push(new s.Point(Math.floor(d.x-this.minLineLength),Math.floor(n[2].y))),n.push(new s.Point(Math.floor(n[3].x),Math.floor(d.y))),n.push(new s.Point(Math.floor(d.x),Math.floor(d.y))),n},e.prototype.getConnectorPoints_FromTopTaskBottomSide_ToBottomTaskRightSide=function(e,t,i){var n=new Array,o=this.getTaskPoint(e),r=this.getTaskPoint(t),a=this.getTaskBottomCenter(o,e),l=this.getTask(e).isMilestone(),d=this.getTaskRightCenter(r,t),u=this.getHorizontalIndentFromTaskEdge(e,i);return n.push(new s.Point(Math.floor(l?a.x:o.x+u),Math.floor(a.y))),n.push(new s.Point(Math.floor(n[0].x),Math.floor(d.y))),n.push(new s.Point(Math.floor(d.x),Math.floor(d.y))),n},e.prototype.getConnectorPoints_FromTopTaskBottomSide_ToBottomTaskLeftSide=function(e,t,i){var n=new Array,o=this.getTaskPoint(e),r=this.getTaskPoint(t),a=this.getTaskBottomCenter(o,e),l=this.getTask(e).isMilestone(),d=this.getTaskLeftCenter(r,t),u=this.getHorizontalIndentFromTaskEdge(e,i);return n.push(new s.Point(Math.floor(l?a.x:o.x+u),Math.floor(a.y))),n.push(new s.Point(Math.floor(n[0].x),Math.floor(d.y))),n.push(new s.Point(Math.floor(d.x),Math.floor(d.y))),n},e.prototype.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskTopSide=function(e,t,i){var n=new Array,o=this.getTaskPoint(e),r=this.getTaskPoint(t),a=this.getTaskLeftCenter(o,e),l=this.getTaskTopCenter(r,t),d=this.getTask(t).isMilestone(),u=this.getHorizontalIndentFromTaskEdge(t,i);return n.push(new s.Point(Math.floor(a.x),Math.floor(a.y))),n.push(new s.Point(Math.floor(d?l.x:r.x+u),Math.floor(n[0].y))),n.push(new s.Point(Math.floor(n[1].x),Math.floor(l.y))),n},e.prototype.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskRightSide=function(e,t,i){var n=new Array,o=this.getTaskPoint(e),r=this.getTaskPoint(t),a=this.getTaskLeftCenter(o,e),l=this.getTaskBottomCenter(o,e),d=this.getTaskRightCenter(r,t),u=this.getTaskTopCenter(r,t),c=i?this.getViewItem(e):this.getViewItem(t),h=c.isCustom?(this.tickSize.height-c.size.height)/2:this.minConnectorSpaceFromTask;return n.push(new s.Point(Math.floor(a.x),a.y)),n.push(new s.Point(Math.floor(n[0].x-this.minLineLength),n[0].y)),n.push(new s.Point(Math.floor(n[1].x),Math.floor(i?l.y+h:u.y-h))),n.push(new s.Point(Math.floor(d.x+this.minLineLength),Math.floor(n[2].y))),n.push(new s.Point(Math.floor(n[3].x),Math.floor(d.y))),n.push(new s.Point(Math.floor(d.x),Math.floor(d.y))),n},e.prototype.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskLeftSide=function(e,t){var i=new Array,n=this.getTaskPoint(e),o=this.getTaskPoint(t),r=this.getTaskLeftCenter(n,e),a=this.getTaskLeftCenter(o,t);return i.push(new s.Point(Math.floor(r.x),Math.floor(r.y))),i.push(new s.Point(Math.floor(Math.min(r.x,a.x)-this.minLineLength),Math.floor(i[0].y))),i.push(new s.Point(Math.floor(i[1].x),Math.floor(a.y))),i.push(new s.Point(Math.floor(a.x),Math.floor(a.y))),i},e.prototype.getTaskSidePoints=function(e){var t=this.getTaskPoint(e);return[this.getTaskLeftCenter(t,e),this.getTaskTopCenter(t,e),this.getTaskRightCenter(t,e),this.getTaskBottomCenter(t,e)]},e.prototype.getTaskLeftCenter=function(e,t){return new s.Point(e.x-this.getTaskEdgeCorrection(t),e.y+this.getTaskHeight(t)/2)},e.prototype.getTaskRightCenter=function(e,t){return new s.Point(e.x+this.getTaskWidth(t)+this.getTaskEdgeCorrection(t),e.y+this.getTaskHeight(t)/2)},e.prototype.getTaskTopCenter=function(e,t){return new s.Point(e.x+this.getTaskWidth(t)/2,e.y-this.getTaskEdgeCorrection(t))},e.prototype.getTaskBottomCenter=function(e,t){return new s.Point(e.x+this.getTaskWidth(t)/2,e.y+this.getTaskHeight(t)+this.getTaskEdgeCorrection(t))},e.prototype.getTaskEdgeCorrection=function(e){var t=this.getViewItem(e);return t.task.isMilestone()&&!t.isCustom?this.getTaskHeight(e)*(Math.sqrt(2)-1)/2:0},e.prototype.getHorizontalIndentFromTaskEdge=function(e,t){void 0===t&&(t=!1);var i=this.getTaskWidth(e),n=this.minLineLength0}))[0];if(i){var n=i.dependencies.filter((function(t){return t.id===e}))[0];t=this.createConnecotInfo(n,i.visibleIndex)}return t},e.prototype.createConnecotInfo=function(e,t){var i=this,n=e.predecessor.visibleIndex,o=e.type,r=e.id,a=this.getConnectorInfo(r,n,t,o);return a.forEach((function(e){i.addElementInfoToTileMap(e,i.tileToDependencyMap,!0)})),a},e.prototype.createTileToNonWorkingIntervalsMap=function(){this.tileToNoWorkingIntervalsMap=[];for(var e=0;e0)for(var a=Math.floor(n/r),s=Math.floor((n+o)/r),l=a;l<=s;l++)t[l]||(t[l]=new Array),t[l].push(e)},e.prototype.getRenderedConnectorLines=function(e){return this.getElementsInRenderedTiles(this.tileToDependencyMap,!0,e)},e.prototype.getRenderedNoWorkingIntervals=function(e){return this.getElementsInRenderedTiles(this.tileToNoWorkingIntervalsMap,!1,e)},e.prototype.getRenderedStripLines=function(e){var t=new Array,i=e.stripLines.map((function(e){return e.clone()}));e.showCurrentTime&&i.push(new d.StripLine(new Date,null,e.currentTimeTitle,e.currentTimeCssClass,!0));for(var n=0,o=void 0;o=i[n];n++){var r=l.DateUtils.parse(o.start),s=o.end?l.DateUtils.parse(o.end):null;if(r>=this.range.start&&r<=this.range.end||s&&s>=this.range.start&&s<=this.range.end){var u=r>this.range.start?r:this.range.start,c=new a.GridElementInfo;c.size.height=this.getVerticalGridLineHeight(),c.position.x=this.getPosByDate(u),c.size.width=s?this.getWidthByDateRange(u,s0)for(var r=Math.floor(i/(2*o)),a=Math.floor((i+o)/(2*o)),s=r;s<=a;s++)e[s]&&e[s].forEach((function(e){-1===n.indexOf(e)&&n.push(e)}));return n},e.prototype.isTaskInRenderedRange=function(e){var t=this.getViewItem(e),i=this.getTaskPoint(e);return t.task.isMilestone()?i.x+this.getTaskWidth(e)this.getTotalWidth()&&(e.style.display="none")},e.prototype.checkAndCorrectArrowElementDisplayByRange=function(e){e.offsetLeft+e.offsetWidth>this.getTotalWidth()&&(e.style.display="none")},e.prototype.checkAndCorrectConnectorLinesByRange=function(e){if(null==e?void 0:e.length)for(var t=this.getTotalWidth(),i=0;it?delete e[i]:!o&&n.position.x+n.size.width>t&&(n.size.width=t-n.position.x)}},e.prototype.getCorrectedTaskWidthByRange=function(e,t){var i=this.getTotalWidth()-this.getTaskPoint(e).x;return Math.min(i,t)},e.dxGanttPrefix="dx-gantt-",e.taskClassName=e.dxGanttPrefix+"task",e.milestoneClassName=e.dxGanttPrefix+"milestone",e.smallTaskClassName=e.dxGanttPrefix+"smallTask",e.parentTaskClassName=e.dxGanttPrefix+"parent",e.taskProgressClassName=e.dxGanttPrefix+"tPrg",e.taskTitleClassName=e.dxGanttPrefix+"taskTitle",e.titleInClassName=e.dxGanttPrefix+"titleIn",e.titleOutClassName=e.dxGanttPrefix+"titleOut",e.taskResourceClassName=e.dxGanttPrefix+"taskRes",e.arrowClassName=e.dxGanttPrefix+"arrow",e.leftArrowClassName=e.dxGanttPrefix+"LA",e.topArrowClassName=e.dxGanttPrefix+"TA",e.rightArrowClassName=e.dxGanttPrefix+"RA",e.bottomArrowClassName=e.dxGanttPrefix+"BA",e.CLASSNAMES={CONNECTOR_VERTICAL:"dx-gantt-conn-v",CONNECTOR_HORIZONTAL:"dx-gantt-conn-h"},e}();t.GridLayoutCalculator=p},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StyleDef=void 0;var n=i(1),o=i(3),r=i(17),a=i(35),s=i(36),l=i(62),d=function(){function e(e){this._fillColor=new r.Color,this._textColor=new r.Color,this._lineColor=new r.Color,this._cellWidth=new l.Width,this._cellPadding=new s.Margin,e&&this.assign(e)}return Object.defineProperty(e.prototype,"font",{get:function(){return this._fontFamily},set:function(e){this._fontFamily=a.PredefinedStyles.getPredefinedStringOrUndefined(e,a.PredefinedStyles.fontFamilies)||e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(e){this._fontStyle=a.PredefinedStyles.getPredefinedStringOrUndefined(e,a.PredefinedStyles.fontStyles)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontSize",{get:function(){return this._fontSize},set:function(e){this._fontSize=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overflow",{get:function(){return this._overflow},set:function(e){this._overflow=a.PredefinedStyles.getPredefinedStringOrUndefined(e,a.PredefinedStyles.overflow)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"halign",{get:function(){return this._horizontalAlign},set:function(e){this._horizontalAlign=a.PredefinedStyles.getPredefinedStringOrUndefined(e,a.PredefinedStyles.horizontalAlign)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"valign",{get:function(){return this._verticalAlign},set:function(e){this._verticalAlign=a.PredefinedStyles.getPredefinedStringOrUndefined(e,a.PredefinedStyles.verticalAlign)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fillColor",{get:function(){return this._fillColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textColor",{get:function(){return this._textColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lineColor",{get:function(){return this._lineColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cellWidth",{get:function(){return this._cellWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cellPadding",{get:function(){return this._cellPadding},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lineWidth",{get:function(){return this._lineWidth},set:function(e){this._lineWidth=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minCellWidth",{get:function(){return this._minCellWidth},set:function(e){this._minCellWidth=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minCellHeight",{get:function(){return this._minCellHeight},set:function(e){this._minCellHeight=e},enumerable:!1,configurable:!0}),e.prototype.assign=function(t){t&&(t instanceof e?((0,n.isDefined)(t.font)&&(this.font=t.font),(0,n.isDefined)(t.fontStyle)&&(this.fontStyle=t.fontStyle),(0,n.isDefined)(t.overflow)&&(this.overflow=t.overflow),(0,n.isDefined)(t.halign)&&(this.halign=t.halign),(0,n.isDefined)(t.valign)&&(this.valign=t.valign),(0,n.isDefined)(t.fontSize)&&(this.fontSize=t.fontSize),(0,n.isDefined)(t.lineWidth)&&(this.lineWidth=t.lineWidth),(0,n.isDefined)(t.minCellWidth)&&(this.minCellWidth=t.minCellWidth),(0,n.isDefined)(t.minCellHeight)&&(this.minCellHeight=t.minCellHeight),(0,n.isDefined)(t.fillColor)&&this.fillColor.assign(t.fillColor),(0,n.isDefined)(t.textColor)&&this.textColor.assign(t.textColor),(0,n.isDefined)(t.lineColor)&&this.lineColor.assign(t.lineColor),(0,n.isDefined)(t.cellWidth)&&this.cellWidth.assign(t.cellWidth),(0,n.isDefined)(t.cellPadding)&&this.cellPadding.assign(t.cellPadding)):this.assignFromCssStyle(t))},e.prototype.assignFromCssStyle=function(e){if(e.fontFamily&&(this.font=this.getPdfFontFamily(e)),this.fontStyle=this.getPdfFontStyle(e),(0,n.isDefined)(e.fontSize)&&(this.fontSize=this.getPfrFontSize(e.fontSize)),e.textAlign&&(this.halign=e.textAlign),e.verticalAlign&&(this.valign=e.verticalAlign),(0,n.isDefined)(e.borderWidth)&&(this.lineWidth=e.borderWidth),(0,n.isDefined)(e.cellWidth)&&this.cellWidth.assign(e.cellWidth),(0,n.isDefined)(e.width)&&(this.minCellWidth="number"==typeof e.width?e.width:o.DomUtils.pxToInt(e.width)),(0,n.isDefined)(e.height)&&(this.minCellHeight="number"==typeof e.height?e.height:o.DomUtils.pxToInt(e.height)),e.backgroundColor&&this.fillColor.assign(e.backgroundColor),e.color&&this.textColor.assign(e.color),e.borderColor&&this.lineColor.assign(e.borderColor),(0,n.isDefined)(e.width)&&this.cellWidth.assign(e.width),this.assignPaddingFromCss(e),(0,n.isDefined)(e.extraLeftPadding)){var t=this._cellPadding.left;this._cellPadding.left=t?t+e.extraLeftPadding:e.extraLeftPadding}},e.prototype.getPdfFontStyle=function(e){var t=e.fontWeight,i=parseInt(t),n="bold"===t||!isNaN(i)&&i>500,o=n?"bold":"normal";return"italic"===e.fontStyle&&(o=n?"bolditalic":"italic"),o},e.prototype.getPdfFontFamily=function(e){var t=e.fontFamily&&e.fontFamily.toLowerCase(),i="helvetica";return t.indexOf("times")>-1&&(i="times"),t.indexOf("courier")>-1&&(i="courier"),i},e.prototype.getPfrFontSize=function(e){var t=o.DomUtils.pxToInt(e);if(!isNaN(t))return Math.ceil(t/96*72)},e.prototype.assignPaddingFromCss=function(e){if(e.padding)this._cellPadding.assign(e.padding);else{var t={};e.paddingLeft&&(t.left=o.DomUtils.pxToInt(e.paddingLeft)),e.paddingTop&&(t.top=o.DomUtils.pxToInt(e.paddingTop)),e.paddingRight&&(t.right=o.DomUtils.pxToInt(e.paddingRight)),e.paddingBottom&&(t.bottom=o.DomUtils.pxToInt(e.paddingBottom)),this._cellPadding.assign(t)}},e.prototype.hasValue=function(){return!0},e.prototype.getValue=function(){var e=this,t={};return(0,n.isDefined)(this.font)&&(t.font=this.font),(0,n.isDefined)(this.fontStyle)&&(t.fontStyle=this.fontStyle),(0,n.isDefined)(this.fontSize)&&(t.fontSize=this.fontSize),(0,n.isDefined)(this.overflow)&&(t.overflow=this.overflow),(0,n.isDefined)(this.halign)&&(t.halign=this.halign),(0,n.isDefined)(this.valign)&&(t.valign=this.valign),(0,n.isDefined)(this.lineWidth)&&(t.lineWidth=this.lineWidth),(0,n.isDefined)(this.minCellWidth)&&(t.minCellWidth=this.minCellWidth),(0,n.isDefined)(this.minCellHeight)&&(t.minCellHeight=this.minCellHeight),this.getJsPdfProviderProps().forEach((function(i){var n=e[i];n&&n.hasValue()&&(t[i]=n.getValue())})),t},e.prototype.getJsPdfProviderProps=function(){return["fillColor","textColor","lineColor","cellWidth","cellPadding"]},e}();t.StyleDef=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PdfPageTableNames=void 0;var n=function(){function e(){}return e.treeListHeader="treeListHeader",e.treeListMain="treeListMain",e.chartMain="chartMain",e.chartScaleTop="chartScaleTop",e.chartScaleBottom="chartScaleBottom",e}();t.PdfPageTableNames=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseManipulator=void 0;var n=function(){function e(e,t){this.viewModel=e,this.dispatcher=t}return e.prototype.getErrorCallback=function(){return this.viewModel.getDataUpdateErrorCallback()},Object.defineProperty(e.prototype,"renderHelper",{get:function(){return this.viewModel.owner.renderHelper},enumerable:!1,configurable:!0}),e}();t.BaseManipulator=n},function(e,t,i){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaDomHelper=void 0;var o=i(3),r=i(9),a=i(46),s=i(4),l=i(25),d=function(){function e(){}return e.getEventSource=function(t){var i,n=(t.nodeType===(null===(i=null===window||void 0===window?void 0:window.Node)||void 0===i?void 0:i.ELEMENT_NODE)?t:t.parentNode).classList[0];return e.classToSource[n]||s.TaskAreaEventSource.TaskArea},e.isConnectorLine=function(e){var t=r.EvtUtils.getEventSource(e);return o.DomUtils.hasClassName(t,l.GridLayoutCalculator.CLASSNAMES.CONNECTOR_HORIZONTAL)||o.DomUtils.hasClassName(t,l.GridLayoutCalculator.CLASSNAMES.CONNECTOR_VERTICAL)},e.isTaskElement=function(t){var i=r.EvtUtils.getEventSource(t),n=e.classToSource[i.classList[0]];return n===s.TaskAreaEventSource.TaskEdit_Frame||n===s.TaskAreaEventSource.TaskEdit_Progress||n===s.TaskAreaEventSource.TaskEdit_Start||n===s.TaskAreaEventSource.TaskEdit_End||n===s.TaskAreaEventSource.TaskEdit_DependencyStart||n===s.TaskAreaEventSource.TaskEdit_DependencyFinish},e.isMouseEvent=function(e){return e instanceof MouseEvent},e.isTouchEvent=function(e){return window.TouchEvent&&e instanceof TouchEvent},e.isPointerEvent=function(e){return window.PointerEvent&&e instanceof PointerEvent},e.isMousePointer=function(e){return this.isPointerEvent(e)&&"mouse"===e.pointerType},e.classToSource=((n={})[a.TaskEditController.CLASSNAMES.TASK_EDIT_PROGRESS]=s.TaskAreaEventSource.TaskEdit_Progress,n[a.TaskEditController.CLASSNAMES.TASK_EDIT_START]=s.TaskAreaEventSource.TaskEdit_Start,n[a.TaskEditController.CLASSNAMES.TASK_EDIT_END]=s.TaskAreaEventSource.TaskEdit_End,n[a.TaskEditController.CLASSNAMES.TASK_EDIT_FRAME]=s.TaskAreaEventSource.TaskEdit_Frame,n[a.TaskEditController.CLASSNAMES.TASK_EDIT_DEPENDENCY_RIGTH]=s.TaskAreaEventSource.TaskEdit_DependencyStart,n[a.TaskEditController.CLASSNAMES.TASK_EDIT_DEPENDENCY_LEFT]=s.TaskAreaEventSource.TaskEdit_DependencyFinish,n[a.TaskEditController.CLASSNAMES.TASK_EDIT_SUCCESSOR_DEPENDENCY_RIGTH]=s.TaskAreaEventSource.Successor_DependencyStart,n[a.TaskEditController.CLASSNAMES.TASK_EDIT_SUCCESSOR_DEPENDENCY_LEFT]=s.TaskAreaEventSource.Successor_DependencyFinish,n),e}();t.TaskAreaDomHelper=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaStateBase=void 0;var n=i(10),o=i(5),r=i(3),a=i(9),s=i(66),l=i(172),d=i(29),u=i(13),c=function(){function e(e,t,i){this.position=new o.Point(-1,-1),this.isCursorInArea=!1,this._listener=e,this._taskArea=t,this._cellSize=i}return e.prototype.start=function(){},e.prototype.finish=function(){},e.prototype.isTouchEvent=function(e){return d.TaskAreaDomHelper.isTouchEvent(e)},e.prototype.isPointerEvent=function(e){return d.TaskAreaDomHelper.isPointerEvent(e)},e.prototype.isMouseEvent=function(e){return d.TaskAreaDomHelper.isMouseEvent(e)},e.prototype.onMouseWheel=function(e){},e.prototype.onScroll=function(e){this.raiseEvent(u.TaskAreaStateEventNames.TASK_AREA_SCROLL)},e.prototype.onKeyDown=function(e){this.isCursorInArea&&this.raiseEvent(u.TaskAreaStateEventNames.TASK_AREA_KEY_DOWN,e,null,{code:this.getShortcutCode(e)})},e.prototype.onContextMenu=function(e){var t=this.getClickedRowIndex(e),i=d.TaskAreaDomHelper.isConnectorLine(e);i||this.raiseTaskSelection(e,t),e.stopPropagation(),e.preventDefault(),n.Browser.WebKitFamily&&(e.returnValue=!1),this.raiseEvent(u.TaskAreaStateEventNames.CONTEXTMENU_SHOW,e,t,{type:i?"dependency":"task"})},e.prototype.onTaskPointerEnter=function(e){this.onTaskPointerEnterBase(e)},e.prototype.onDocumentPointerMove=function(e){this.processPointerMove(e)},e.prototype.onDocumentPointerDown=function(e){this.processPointerDown(e)},e.prototype.onDocumentPointerUp=function(e){this.processPointerUp(e)},e.prototype.onTaskTouchStart=function(e){this.onTaskPointerEnterBase(e)},e.prototype.onTouchMove=function(e){this.processPointerMove(e)},e.prototype.onTouchStart=function(e){this.processPointerDown(e)},e.prototype.onTouchEnd=function(e){this.processPointerUp(e)},e.prototype.onMouseDown=function(e){this.processPointerDown(e)},e.prototype.onMouseUp=function(e){},e.prototype.onMouseMove=function(e){this.processPointerMove(e)},e.prototype.onTaskHover=function(e){this.onTaskPointerEnterBase(e)},e.prototype.onTaskLeave=function(e){this.raiseEvent(u.TaskAreaStateEventNames.TASK_LEAVE,e,this.getClickedRowIndex(e))},e.prototype.onClick=function(e){var t=this.getClickedRowIndex(e);this.raiseTaskSelection(e,t),this.raiseEvent(u.TaskAreaStateEventNames.TASK_AREA_CLICK,e,t)},e.prototype.onDblClick=function(e){e.preventDefault(),this.raiseEvent(u.TaskAreaStateEventNames.TASK_AREA_DBLCLICK,e,this.getClickedRowIndex(e))},e.prototype.onTaskAreaLeave=function(e){(!this.isPointerEvent(e)||d.TaskAreaDomHelper.isMousePointer(e))&&(this.isCursorInArea=!1,this.raiseEvent(u.TaskAreaStateEventNames.TASK_EDIT_END,e)),this.onTaskAreaLeaveInternal(e)},e.prototype.onTaskPointerEnterBase=function(e){this.isTouchEvent(e)||this.isPointerEvent(e)||e.preventDefault(),this.raiseEvent(u.TaskAreaStateEventNames.TASK_EDIT_START,e,this.getClickedRowIndex(e))},e.prototype.processPointerDown=function(e){var t=this.isTouchEvent(e),i=this.isPointerEvent(e);(t||i)&&this.checkAndProcessTouchOutsideArea(e)||(this.position=new o.Point(a.EvtUtils.getEventX(e),a.EvtUtils.getEventY(e)),(t||i)&&e.preventDefault(),t?this.onTouchStartInternal(e):i?this.onDocumentPointerDownInternal(e):this.onMouseDownInternal(e))},e.prototype.processPointerMove=function(e){var t,i=this.isTouchEvent(e),n=this.isPointerEvent(e);null!==(t=this.position)&&void 0!==t||(this.position=new o.Point(a.EvtUtils.getEventX(e),a.EvtUtils.getEventY(e)));var r=Math.abs(this.position.x-a.EvtUtils.getEventX(e))>2||Math.abs(this.position.y-a.EvtUtils.getEventY(e))>2;(!i&&!n||!this.checkAndProcessTouchOutsideArea(e))&&r&&((i||n)&&e.preventDefault(),this.isTouchEvent(e)?this.onTouchMoveInternal(e):this.isPointerEvent(e)?this.onDocumentPointerMoveInternal(e):(this.isCursorInArea=!0,this.onMouseMoveInternal(e)))},e.prototype.processPointerUp=function(e){this.checkAndProcessTouchOutsideArea(e)||(e.preventDefault(),this.isTouchEvent(e)?this.onTouchEndInternal(e):this.onDocumentPointerUpInternal(e))},e.prototype.onMouseDownInternal=function(e){},e.prototype.onMouseMoveInternal=function(e){},e.prototype.onDocumentPointerUpInternal=function(e){},e.prototype.onDocumentPointerDownInternal=function(e){},e.prototype.onDocumentPointerMoveInternal=function(e){},e.prototype.onTouchStartInternal=function(e){},e.prototype.onTouchEndInternal=function(e){},e.prototype.onTouchMoveInternal=function(e){},e.prototype.onTaskAreaLeaveInternal=function(e){},e.prototype.checkAndProcessTouchOutsideArea=function(e){var t=!this.isInTaskArea(e);return t&&this.raiseEvent(u.TaskAreaStateEventNames.TASK_EDIT_END,e),this.isCursorInArea=!t,t},e.prototype.raiseEvent=function(e,t,i,n){var o=new l.TaskAreaEventArgs(e,t,i,n),r=this._listener.getHandler(e);return r&&r(o)},e.prototype.raiseDependencySelection=function(e,t){this.raiseEvent(u.TaskAreaStateEventNames.DEPENDENCY_SELECTION,e,null,{key:t})},e.prototype.raiseTaskSelection=function(e,t){r.DomUtils.isItParent(this._taskArea,a.EvtUtils.getEventSource(e))&&!d.TaskAreaDomHelper.isConnectorLine(e)&&this.raiseEvent(u.TaskAreaStateEventNames.TASK_SELECTION,e,t)},e.prototype.getClickedRowIndex=function(e){if(!e)return-1;var t=a.EvtUtils.getEventY(e)-r.DomUtils.getAbsolutePositionY(this._taskArea);return Math.floor(t/this._cellSize.height)},e.prototype.getRelativePos=function(e){var t=r.DomUtils.getAbsolutePositionX(this._taskArea),i=r.DomUtils.getAbsolutePositionY(this._taskArea);return new o.Point(e.x-t,e.y-i)},e.prototype.isInTaskArea=function(e){return r.DomUtils.isItParent(this._taskArea,a.EvtUtils.getEventSource(e))},e.prototype.getShortcutCode=function(e){var t=s.KeyUtils.getEventKeyCode(e),i=0;return e.altKey&&(i|=s.ModifierKey.Alt),e.ctrlKey&&(i|=s.ModifierKey.Ctrl),e.shiftKey&&(i|=s.ModifierKey.Shift),e.metaKey&&n.Browser.MacOSPlatform&&(i|=s.ModifierKey.Meta),i|t},e}();t.TaskAreaStateBase=c},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConstraintViolationOption=t.ConfirmationType=void 0,function(e){e[e.TaskDelete=0]="TaskDelete",e[e.DependencyDelete=1]="DependencyDelete",e[e.ResourcesDelete=2]="ResourcesDelete"}(t.ConfirmationType||(t.ConfirmationType={})),function(e){e[e.DoNothing=0]="DoNothing",e[e.RemoveDependency=1]="RemoveDependency",e[e.KeepDependency=2]="KeepDependency"}(t.ConstraintViolationOption||(t.ConstraintViolationOption={}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DialogParametersBase=void 0;var n=function(){};t.DialogParametersBase=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeassignResourceHistoryItem=void 0;var n=i(0),o=i(14),r=i(2),a=function(e){function t(t,i){var n=e.call(this,t)||this;return n.assignmentId=i,n}return n.__extends(t,e),t.prototype.redo=function(){this.assignment=this.modelManipulator.resource.deassig(this.assignmentId)},t.prototype.undo=function(){this.modelManipulator.resource.assign(this.assignment.resourceId,this.assignment.taskId,this.assignmentId)},Object.defineProperty(t.prototype,"keyUpdaters",{get:function(){var e=this;return[{objectType:r.GanttDataObjectNames.resourceAssignment,getKey:function(){return e.assignmentId},updateKey:function(t){return e.assignmentId=t}},{objectType:r.GanttDataObjectNames.task,getKey:function(){var t;return null===(t=e.assignment)||void 0===t?void 0:t.taskId},updateKey:function(t){return e.assignment.taskId=t}},{objectType:r.GanttDataObjectNames.resource,getKey:function(){var t;return null===(t=e.assignment)||void 0===t?void 0:t.resourceId},updateKey:function(t){return e.assignment.resourceId=t}}]},enumerable:!1,configurable:!0}),t}(o.HistoryItem);t.DeassignResourceHistoryItem=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceCommandBase=void 0;var n=i(0),o=i(6),r=i(7),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.getState=function(){return new r.SimpleCommandState(this.isEnabled())},t}(o.CommandBase);t.ResourceCommandBase=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PredefinedStyles=void 0;var n=function(){function e(){}return e.getPredefinedStringOrUndefined=function(e,t){var i=e&&t&&e.toLowerCase()||void 0;return i&&(t.filter((function(e){return e.toLowerCase()===i}))[0]||t.filter((function(e){return i.indexOf(e.toLowerCase())>-1}))[0])},e.fontFamilies=["helvetica","times","courier"],e.fontStyles=["normal","bold","italic","bolditalic"],e.headerFooterVisibility=["everyPage","firstPage","never"],e.horizontalAlign=["left","center","right"],e.overflow=["linebreak","ellipsize","visible","hidden"],e.pageBreak=["auto","avoid","always"],e.rowPageBreak=["auto","avoid"],e.verticalAlign=["top","middle","bottom"],e.width=["auto","wrap"],e}();t.PredefinedStyles=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Margin=void 0;var n=i(1),o=i(3),r=function(){function e(e){this.assign(e)}return e.prototype.assign=function(e){if((0,n.isDefined)(e))if("string"==typeof e)this.assignFromString(e);else if("number"==typeof e||e instanceof Array)this.assignWithValues(e);else{var t=e||e;this.assignWithMargin(t)}},e.prototype.assignFromString=function(e){var t=e.split(" ").map((function(e){return o.DomUtils.pxToInt(e)}));this.assignWithValues(t)},e.prototype.assignWithMargin=function(e){(0,n.isDefined)(e.top)&&(this.top=e.top),(0,n.isDefined)(e.right)&&(this.right=e.right),(0,n.isDefined)(e.bottom)&&(this.bottom=e.bottom),(0,n.isDefined)(e.left)&&(this.left=e.left)},e.prototype.assignWithValues=function(e){var t=this.getCorrectedValues(e);this.top=t[0],this.right=t[1],this.bottom=t[2],this.left=t[3]},e.prototype.getCorrectedValues=function(e){var t=[this.top,this.right,this.bottom,this.left];if("number"==typeof e)t=[e,e,e,e];else{var i=e;switch(i.length){case 1:t=[i[0],i[0],i[0],i[0]];break;case 2:t=[i[0],i[1],i[0],i[1]];break;case 3:t=[i[0],i[1],i[2],i[1]];break;default:i.forEach((function(e,i){return t[i]=e}))}}return t},e.prototype.hasValue=function(){return(0,n.isDefined)(this.top)||(0,n.isDefined)(this.left)||(0,n.isDefined)(this.right)||(0,n.isDefined)(this.bottom)},e.prototype.getValue=function(){if(!this.hasValue())return null;if(this.top===this.bottom&&this.left===this.right&&this.top===this.left)return this.top;var e={};return(0,n.isDefined)(this.top)&&(e.top=this.top),(0,n.isDefined)(this.left)&&(e.left=this.left),(0,n.isDefined)(this.right)&&(e.right=this.right),(0,n.isDefined)(this.bottom)&&(e.bottom=this.bottom),e},e}();t.Margin=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataExportMode=t.ExportMode=void 0,function(e){e[e.all=0]="all",e[e.treeList=1]="treeList",e[e.chart=2]="chart"}(t.ExportMode||(t.ExportMode={})),function(e){e[e.all=0]="all",e[e.visible=1]="visible"}(t.DataExportMode||(t.DataExportMode={}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RecurrenceBase=void 0;var n=i(0),o=i(203),r=i(57),a=i(204),s=i(1),l=i(8),d=i(71),u=function(e){function t(t,i,n,o){void 0===t&&(t=null),void 0===i&&(i=null),void 0===n&&(n=1),void 0===o&&(o=0);var r=e.call(this)||this;return r._start=null,r._end=null,r._interval=1,r._occurrenceCount=0,r._dayOfWeek=0,r._day=1,r._dayOfWeekOccurrence=0,r._month=0,r._calculateByDayOfWeek=!1,r.start=t,r.end=i,r.interval=n,r.occurrenceCount=o,r}return n.__extends(t,e),t.prototype.assignFromObject=function(t){(0,s.isDefined)(t)&&(e.prototype.assignFromObject.call(this,t),this.start=l.DateTimeUtils.convertToDate(t.start),this.end=l.DateTimeUtils.convertToDate(t.end),(0,s.isDefined)(t.interval)&&(this.interval=t.interval),(0,s.isDefined)(t.occurrenceCount)&&(this.occurrenceCount=t.occurrenceCount),(0,s.isDefined)(t.dayOfWeek)&&(this.dayOfWeekInternal=d.RecurrenceFactory.getEnumValue(o.DayOfWeek,t.dayOfWeek)),(0,s.isDefined)(t.day)&&(this.dayInternal=t.day),(0,s.isDefined)(t.dayOfWeekOccurrence)&&(this.dayOfWeekOccurrenceInternal=d.RecurrenceFactory.getEnumValue(r.DayOfWeekMonthlyOccurrence,t.dayOfWeekOccurrence)),(0,s.isDefined)(t.month)&&(this.monthInternal=d.RecurrenceFactory.getEnumValue(a.Month,t.month)),(0,s.isDefined)(t.calculateByDayOfWeek)&&(this._calculateByDayOfWeek=!!t.calculateByDayOfWeek))},t.prototype.calculatePoints=function(e,t){if(!e||!t)return new Array;var i=l.DateTimeUtils.getMaxDate(e,this._start),n=l.DateTimeUtils.getMinDate(t,this._end);return this._occurrenceCount>0?this.calculatePointsByOccurrenceCount(i,n):this.calculatePointsByDateRange(i,n)},t.prototype.calculatePointsByOccurrenceCount=function(e,t){for(var i=new Array,n=this.getFirstPoint(e);n&&i.length=0;)this.isRecurrencePoint(n)&&i.push(n),n=this.getNextPoint(n);return i},t.prototype.calculatePointsByDateRange=function(e,t){for(var i=new Array,n=this.getFirstPoint(e);n&&l.DateTimeUtils.compareDates(n,t)>=0;)this.isRecurrencePoint(n)&&i.push(n),n=this.getNextPoint(n);return i},t.prototype.getFirstPoint=function(e){return this.isRecurrencePoint(e)?e:this.getNextPoint(e)},t.prototype.isRecurrencePoint=function(e){return this.isDateInRange(e)&&this.checkDate(e)&&(!this.useIntervalInCalc()||this.checkInterval(e))},t.prototype.isDateInRange=function(e){return!!e&&!(this._start&&l.DateTimeUtils.compareDates(this.start,e)<0)&&!(0==this._occurrenceCount&&this.end&&l.DateTimeUtils.compareDates(e,this.end)<0)},t.prototype.useIntervalInCalc=function(){return this.interval>1&&!!this._start},t.prototype.getNextPoint=function(e){return this.isDateInRange(e)?this.useIntervalInCalc()?this.calculatePointByInterval(e):this.calculateNearestPoint(e):null},t.prototype.getSpecDayInMonth=function(e,t){return this._calculateByDayOfWeek?l.DateTimeUtils.getSpecificDayOfWeekInMonthDate(this.dayOfWeekInternal,e,t,this.dayOfWeekOccurrenceInternal):new Date(e,t,this.dayInternal)},Object.defineProperty(t.prototype,"dayInternal",{get:function(){return this._day},set:function(e){e>0&&e<=31&&(this._day=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dayOfWeekInternal",{get:function(){return this._dayOfWeek},set:function(e){e>=o.DayOfWeek.Sunday&&e<=o.DayOfWeek.Saturday&&(this._dayOfWeek=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dayOfWeekOccurrenceInternal",{get:function(){return this._dayOfWeekOccurrence},set:function(e){e>=r.DayOfWeekMonthlyOccurrence.First&&e<=r.DayOfWeekMonthlyOccurrence.Last&&(this._dayOfWeekOccurrence=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"monthInternal",{get:function(){return this._month},set:function(e){e>=a.Month.January&&e<=a.Month.December&&(this._month=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"start",{get:function(){return this._start},set:function(e){e&&(this._start=e,this._end&&e>this._end&&(this._end=e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._end},set:function(e){e&&(this._end=e,this._start&&e0&&(this._interval=e)},enumerable:!1,configurable:!0}),t}(i(2).DataObject);t.RecurrenceBase=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtils=void 0;var n=function(){function e(){}return e.isAlpha=function(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"},e.isDigit=function(e){return e>="0"&&e<="9"},e.stringHashCode=function(e){var t=0;if(0===e.length)return t;for(var i=e.length,n=0;n=o;i--,n--)if(e[i]!==t[n])return!1;return!0},e.startsAt=function(e,t){return e.substr(0,t.length)===t},e.stringInLowerCase=function(e){return e.toLowerCase()===e},e.stringInUpperCase=function(e){return e.toUpperCase()===e},e.atLeastOneSymbolInUpperCase=function(t){for(var i=0,n=void 0;n=t[i];i++)if(e.stringInUpperCase(n)&&!e.stringInLowerCase(n))return!0;return!1},e.getSymbolFromEnd=function(e,t){return e[e.length-t]},e.trim=function(t,i){if(void 0===i)return e.trimInternal(t,!0,!0);var n=i.join("");return t.replace(new RegExp("(^["+n+"]*)|(["+n+"]*$)","g"),"")},e.trimStart=function(t,i){if(void 0===i)return e.trimInternal(t,!0,!1);var n=i.join("");return t.replace(new RegExp("^["+n+"]*","g"),"")},e.trimEnd=function(t,i){if(void 0===i)return e.trimInternal(t,!1,!0);var n=i.join("");return t.replace(new RegExp("["+n+"]*$","g"),"")},e.getDecimalSeparator=function(){return 1.1.toLocaleString().substr(1,1)},e.repeat=function(e,t){return new Array(t<=0?0:t+1).join(e)},e.isNullOrEmpty=function(e){return!e||!e.length},e.padLeft=function(t,i,n){return e.repeat(n,Math.max(0,i-t.length))+t},e.trimInternal=function(e,t,i){var n=e.length;if(!n)return e;if(n<764833){var o=e;return t&&(o=o.replace(/^\s+/,"")),i&&(o=o.replace(/\s+$/,"")),o}var r=0;if(i)for(;n>0&&/\s/.test(e[n-1]);)n--;if(t&&n>0)for(;r3?this.sidePoints[0].x:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){var e;return(null===(e=this.sidePoints)||void 0===e?void 0:e.length)>3?this.sidePoints[1].y:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){var e;return(null===(e=this.sidePoints)||void 0===e?void 0:e.length)>3?this.sidePoints[2].x:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){var e;return(null===(e=this.sidePoints)||void 0===e?void 0:e.length)>3?this.sidePoints[3].y:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var t=this.bottom-this.top;return this.isParent&&(t-=e.defaultParentHeightCorrection),t},enumerable:!1,configurable:!0}),e.prototype.assign=function(e){var t,i,n;this.isMilestone=e.isMilestone,this._copyPoints(e.sidePoints),this.progressWidth=e.progressWidth,this.isSmallTask=e.isSmallTask,this.text=e.text,this.textPosition=e.textPosition,null!==(t=this.progressColor)&&void 0!==t||(this.progressColor=new o.Color),this.progressColor.assign(e.progressColor),null!==(i=this.taskColor)&&void 0!==i||(this.taskColor=new o.Color),this.taskColor.assign(e.taskColor),null!==(n=this.textStyle)&&void 0!==n||(this.textStyle=new r.StyleDef),this.textStyle.assign(e.textStyle),this.isParent=e.isParent},e.prototype._copyPoints=function(e){var t=this;this.sidePoints=new Array,null==e||e.forEach((function(e){return t.sidePoints.push(new n.Point(e.x,e.y))}))},e.defaultParentHeightCorrection=4,e}();t.PdfTaskInfo=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CellDef=void 0;var n=i(1),o=i(26),r=function(){function e(e,t,i){this.content="","string"==typeof e?(this.content=e,this.colSpan=t,i&&this.appendStyles(i)):e&&this.assign(e)}return Object.defineProperty(e.prototype,"styles",{get:function(){return this._styles||(this._styles=new o.StyleDef),this._styles},enumerable:!1,configurable:!0}),e.prototype.assign=function(e){(0,n.isDefined)(e.content)&&(this.content=e.content),(0,n.isDefined)(e.colSpan)&&(this.colSpan=e.colSpan),e.styles&&this.appendStyles(e.styles)},e.prototype.appendStyles=function(e){e&&this.styles.assign(e)},e.prototype.hasValue=function(){return!0},e.prototype.getValue=function(){var e={};return e.content=this.content,this.colSpan>1&&(e.colSpan=this.colSpan),this._styles&&(e.styles=this._styles.getValue()),e},e}();t.CellDef=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskEditController=void 0;var n=i(4),o=i(19),r=i(3),a=i(10),s=i(169),l=i(65),d=i(15),u=function(){function e(e){this.showInfoDelay=1e3,this.taskIndex=-1,this.successorIndex=-1,this.isEditingInProgress=!1,this.disableTaskEditBox=!1,this.isTaskEditBoxShown=!1,this.settings=e,this.createElements()}return Object.defineProperty(e.prototype,"taskId",{get:function(){return this.viewModel.items[this.taskIndex].task.internalId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"successorId",{get:function(){return this.viewModel.items[this.successorIndex].task.internalId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"task",{get:function(){return this.viewItem.task},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewItem",{get:function(){return this.viewModel.items[this.taskIndex]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderHelper",{get:function(){return this.settings.getRenderHelper()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ganttSettings",{get:function(){return this.settings.getGanttSettings()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewModel",{get:function(){return this.settings.getViewModel()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"commandManager",{get:function(){return this.settings.getCommandManager()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"updateTaskCommand",{get:function(){return this.commandManager.updateTaskCommand},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"validationController",{get:function(){return this.settings.getValidationController()},enumerable:!1,configurable:!0}),e.prototype.raiseTaskMoving=function(e,t,i,n){return this.settings.getModelManipulator().dispatcher.raiseTaskMoving(e,t,i,n)},Object.defineProperty(e.prototype,"tooltip",{get:function(){var e;return null!==(e=this._tooltip)&&void 0!==e||(this._tooltip=new s.TaskEditTooltip(this.baseElement,this.tooltipSettings,this.renderHelper.elementTextHelperCultureInfo)),this._tooltip.tooltipSettings=this.tooltipSettings,this._tooltip},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tooltipSettings",{get:function(){var e=this;return l.TooltipSettings.parse({getHeaderHeight:this.settings.getRenderHelper().header.clientHeight,getTaskProgressTooltipContentTemplate:this.ganttSettings.taskProgressTooltipContentTemplate,getTaskTimeTooltipContentTemplate:this.ganttSettings.taskTimeTooltipContentTemplate,getTaskTooltipContentTemplate:this.ganttSettings.taskTooltipContentTemplate,destroyTemplate:function(t){e.settings.destroyTemplate(t)},formatDate:function(t){return e.settings.formatDate(t)}})},enumerable:!1,configurable:!0}),e.prototype.show=function(t){if(!this.isEditingInProgress&&!this.disableTaskEditBox){this.taskIndex=t,this.hide(),this.changeWrapInfo(),this.baseElement.className=e.CLASSNAMES.TASK_EDIT_BOX,this.displayDependency(),this.task.isMilestone()&&!this.viewItem.isCustom?this.baseElement.className=this.baseElement.className+" milestone":(this.isTaskUpdateAllowed()||(this.baseElement.className=this.baseElement.className+" "+e.CLASSNAMES.TASK_EDIT_HIDE_UPDATING),this.viewItem.isCustom&&this.baseElement.classList.add(e.CLASSNAMES.TASK_EDIT_BOX_CUSTOM));var i=this.settings.getGanttSettings().editing.taskHoverDelay||0;this.taskDateRange=new o.DateRange(this.task.start,this.task.end),this.displayTaskEditBox(i),this.displayProgressEdit(),this.displayStartEndEditElements()}},e.prototype.displayStartEndEditElements=function(){!this.task.isMilestone()&&this.isTaskUpdateAllowed()&&this.canUpdateTask()?(this.startEdit.style.display="block",this.endEdit.style.display="block"):(this.startEdit.style.display="none",this.endEdit.style.display="none")},e.prototype.displayProgressEdit=function(){!this.viewItem.isCustom&&this.canUpdateTask()&&this.isTaskUpdateAllowed()&&this.wrapInfo.size.width>this.wrapInfo.size.height?(this.progressEdit.style.display="block",this.progressEdit.style.left=this.task.normalizedProgress/100*this.wrapInfo.size.width-this.progressEdit.offsetWidth/2+"px"):this.progressEdit.style.display="none"},e.prototype.displayDependency=function(){this.ganttSettings.editing.enabled&&this.ganttSettings.editing.allowDependencyInsert&&this.ganttSettings.showDependencies||(this.baseElement.className=this.baseElement.className+" hide-dependency")},e.prototype.changeWrapInfo=function(){this.updateWrapInfo(),this.wrapInfo.assignPosition(this.baseElement),this.wrapInfo.assignSize(this.baseElement)},e.prototype.displayTaskEditBox=function(e){var t=this;void 0===e&&(e=0);var i=function(){t.renderHelper.taskArea.appendChild(t.baseElement),t.isTaskEditBoxShown=!0};e?this.timerId=setTimeout(i,e):i()},e.prototype.endEditing=function(){this.isEditingInProgress=!1,this.hide()},e.prototype.hide=function(){this.isTaskEditBoxShown=!1;var e=this.baseElement.parentNode;e&&e.removeChild(this.baseElement),this.tooltip.hide(),clearTimeout(this.timerId)},e.prototype.cancel=function(){clearTimeout(this.timerId)},e.prototype.showTaskInfo=function(e,t){void 0===t&&(t=500),this.timerId&&(t=this.showInfoDelay),this.tooltip.showInfo(this.task,e,t)},e.prototype.updateWrapInfo=function(){this.wrapInfo=this.getTaskWrapperElementInfo(this.taskIndex),this.wrapInfo.position.x--},e.prototype.isAllowedToConnectTasks=function(e){var t,i=this.viewModel.items[e];return this.validationController.canCreateDependency(this.taskId,null===(t=i.task)||void 0===t?void 0:t.internalId)},e.prototype.showDependencySuccessor=function(e){if(this.isAllowedToConnectTasks(e)){this.successorIndex=e;var t=this.getTaskWrapperElementInfo(e);t.assignPosition(this.dependencySuccessorBaseElement),t.assignSize(this.dependencySuccessorBaseElement),t.assignSize(this.dependencySuccessorFrame),this.renderHelper.taskArea.appendChild(this.dependencySuccessorBaseElement)}},e.prototype.hideDependencySuccessor=function(){var e=this.dependencySuccessorBaseElement.parentNode;e&&e.removeChild(this.dependencySuccessorBaseElement),this.successorIndex=-1},e.prototype.processProgress=function(e){if(this.isTaskUpdateAllowed()){this.isEditingInProgress=!0;var t=e.x-this.wrapInfo.position.x,i=0;e.x>this.wrapInfo.position.x&&(i=e.xthis.wrapInfo.position.x?e.x:this.wrapInfo.position.x,i=t-this.wrapInfo.position.x;this.baseElement.style.width=(i<1?0:i)+"px";var n=this.task.start,o=this.renderHelper.gridLayoutCalculator.getDateByPos(t);o.setSeconds(0),on||i<1?this.taskDateRange.start.setTime(n.getTime()):this.taskDateRange.start=this.getCorrectedDate(this.task.start,o),this.tooltip.showTime(this.taskDateRange.start,n,r.DomUtils.getAbsolutePositionX(this.baseElement))}},e.prototype.confirmStart=function(){this.isTaskUpdateAllowed()&&(this.baseElement.className=e.CLASSNAMES.TASK_EDIT_BOX,this.isEditingInProgress=!1,this.updateTaskCommand.execute(this.taskId,{start:this.taskDateRange.start}),this.hide(),this.updateWrapInfo())},e.prototype.processMove=function(e){if(this.isTaskUpdateAllowed()&&this.isTaskEditBoxShown){this.baseElement.className=this.baseElement.className+" move";var t=this.baseElement.offsetLeft+e;this.baseElement.style.left=t+"px";var i=this.renderHelper.gridLayoutCalculator.getDateByPos(t);this.taskDateRange.start=this.getCorrectedDate(this.task.start,i);var n=d.DateUtils.getRangeMSPeriod(this.task.start,this.task.end);return this.taskDateRange.end=d.DateUtils.getDSTCorrectedTaskEnd(this.taskDateRange.start,n),this.isEditingInProgress=this.raiseTaskMoving(this.task,this.taskDateRange.start,this.taskDateRange.end,this.onTaskMovingCallback.bind(this)),this.isEditingInProgress&&this.tooltip.showTime(this.taskDateRange.start,this.taskDateRange.end,r.DomUtils.getAbsolutePositionX(this.baseElement)),this.isEditingInProgress}return!0},e.prototype.onTaskMovingCallback=function(e,t){if(this.taskDateRange.start!==e||this.taskDateRange.end!==t){var i=this.renderHelper.gridLayoutCalculator,n=i.getPosByDate(e),o=i.getPosByDate(t)-n;this.baseElement.style.left=n+"px",this.baseElement.style.width=(o<1?0:o)+"px",this.taskDateRange.start=e,this.taskDateRange.end=t}},e.prototype.confirmMove=function(){this.isTaskUpdateAllowed()&&(this.ganttSettings.editing.allowDependencyInsert||(this.baseElement.className=this.baseElement.className+" hide-dependency"),this.isEditingInProgress&&(this.baseElement.className=e.CLASSNAMES.TASK_EDIT_BOX,this.updateTaskCommand.execute(this.taskId,{start:this.taskDateRange.start,end:this.taskDateRange.end}),this.updateWrapInfo(),this.hide(),this.isEditingInProgress=!1))},e.prototype.getCorrectedDate=function(e,t){if(this.ganttSettings.viewType>n.ViewType.SixHours){var i=t.getFullYear(),o=t.getMonth(),r=t.getDate(),a=this.ganttSettings.viewType===n.ViewType.Days?t.getHours():e.getHours(),s=e.getMinutes(),l=e.getSeconds(),d=e.getMilliseconds();return new Date(i,o,r,a,s,l,d)}return t},e.prototype.startDependency=function(t){this.dependencyLine=document.createElement("DIV"),this.dependencyLine.className=e.CLASSNAMES.TASK_EDIT_DEPENDENCY_LINE,this.renderHelper.taskArea.appendChild(this.dependencyLine),this.startPosition=t},e.prototype.processDependency=function(e){this.isEditingInProgress=!0,this.drawline(this.startPosition,e)},e.prototype.endDependency=function(e){this.isEditingInProgress=!1,null!=e&&this.commandManager.createDependencyCommand.execute(this.task.internalId,this.successorId,e);var t=this.dependencyLine.parentNode;t&&t.removeChild(this.dependencyLine),this.dependencyLine=null,this.hideDependencySuccessor(),this.hide()},e.prototype.selectDependency=function(e){this.ganttSettings.editing.allowDependencyDelete&&(this.dependencyId=e)},e.prototype.isDependencySelected=function(e){return this.dependencyId&&this.dependencyId===e},e.prototype.deleteSelectedDependency=function(){this.dependencyId&&this.commandManager.removeDependencyCommand.execute(this.dependencyId)},e.prototype.getTaskWrapperElementInfo=function(e){var t=this.renderHelper.gridLayoutCalculator,i=t.getTaskWrapperElementInfo(e);return i.size.width=t.getTaskWidth(e),i.size.height=t.getTaskHeight(e),i},e.prototype.createElements=function(){this.baseElement=document.createElement("DIV"),this.baseFrame=document.createElement("DIV"),this.baseFrame.className=e.CLASSNAMES.TASK_EDIT_FRAME,this.baseElement.appendChild(this.baseFrame),this.progressEdit=document.createElement("DIV"),this.progressEdit.className=e.CLASSNAMES.TASK_EDIT_PROGRESS,this.baseFrame.appendChild(this.progressEdit),this.progressEdit.appendChild(document.createElement("DIV")),this.dependencyFinish=document.createElement("DIV"),this.dependencyFinish.classList.add(e.CLASSNAMES.TASK_EDIT_DEPENDENCY_RIGTH),a.Browser.TouchUI&&this.dependencyFinish.classList.add(e.CLASSNAMES.TASK_EDIT_TOUCH),this.baseFrame.appendChild(this.dependencyFinish),this.dependencyStart=document.createElement("DIV"),this.dependencyStart.classList.add(e.CLASSNAMES.TASK_EDIT_DEPENDENCY_LEFT),a.Browser.TouchUI&&this.dependencyStart.classList.add(e.CLASSNAMES.TASK_EDIT_TOUCH),this.baseFrame.appendChild(this.dependencyStart),this.startEdit=document.createElement("DIV"),this.startEdit.className=e.CLASSNAMES.TASK_EDIT_START,this.baseFrame.appendChild(this.startEdit),this.endEdit=document.createElement("DIV"),this.endEdit.className=e.CLASSNAMES.TASK_EDIT_END,this.baseFrame.appendChild(this.endEdit),this.dependencySuccessorBaseElement=document.createElement("DIV"),this.dependencySuccessorBaseElement.className=e.CLASSNAMES.TASK_EDIT_BOX_SUCCESSOR,this.dependencySuccessorFrame=document.createElement("DIV"),this.dependencySuccessorFrame.className=e.CLASSNAMES.TASK_EDIT_FRAME_SUCCESSOR,this.dependencySuccessorBaseElement.appendChild(this.dependencySuccessorFrame),this.dependencySuccessorStart=document.createElement("DIV"),this.dependencySuccessorStart.classList.add(e.CLASSNAMES.TASK_EDIT_SUCCESSOR_DEPENDENCY_RIGTH),a.Browser.TouchUI&&this.dependencySuccessorStart.classList.add(e.CLASSNAMES.TASK_EDIT_TOUCH),this.dependencySuccessorFrame.appendChild(this.dependencySuccessorStart),this.dependencySuccessorFinish=document.createElement("DIV"),this.dependencySuccessorFinish.classList.add(e.CLASSNAMES.TASK_EDIT_SUCCESSOR_DEPENDENCY_LEFT),a.Browser.TouchUI&&this.dependencySuccessorFinish.classList.add(e.CLASSNAMES.TASK_EDIT_TOUCH),this.dependencySuccessorFrame.appendChild(this.dependencySuccessorFinish),this._tooltip=new s.TaskEditTooltip(this.baseElement,this.tooltipSettings,this.renderHelper.elementTextHelperCultureInfo),this.attachEvents()},e.prototype.attachEvents=function(){this.onMouseLeaveHandler=function(){this.isEditingInProgress||this.hide()}.bind(this),this.baseElement.addEventListener("mouseleave",this.onMouseLeaveHandler)},e.prototype.drawline=function(e,t){if(e.x>t.x){var i=t;t=e,e=i}var n=Math.atan((e.y-t.y)/(t.x-e.x));n=-(n=180*n/Math.PI);var o=Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y));this.dependencyLine.style.left=e.x+"px",this.dependencyLine.style.top=e.y+"px",this.dependencyLine.style.width=o+"px",this.dependencyLine.style.transform="rotate("+n+"deg)"},e.prototype.canUpdateTask=function(){return!this.viewModel.isTaskToCalculateByChildren(this.task.internalId)},e.prototype.isTaskUpdateAllowed=function(){var e=this.ganttSettings.editing;return e.enabled&&e.allowTaskUpdate},e.prototype.detachEvents=function(){var e;null===(e=this.baseElement)||void 0===e||e.removeEventListener("mouseleave",this.onMouseLeaveHandler)},e.CLASSNAMES={TASK_EDIT_BOX:"dx-gantt-task-edit-wrapper",TASK_EDIT_BOX_CUSTOM:"dx-gantt-task-edit-wrapper-custom",TASK_EDIT_FRAME:"dx-gantt-task-edit-frame",TASK_EDIT_PROGRESS:"dx-gantt-task-edit-progress",TASK_EDIT_DEPENDENCY_RIGTH:"dx-gantt-task-edit-dependency-r",TASK_EDIT_DEPENDENCY_LEFT:"dx-gantt-task-edit-dependency-l",TASK_EDIT_START:"dx-gantt-task-edit-start",TASK_EDIT_END:"dx-gantt-task-edit-end",TASK_EDIT_DEPENDENCY_LINE:"dx-gantt-task-edit-dependency-line",TASK_EDIT_BOX_SUCCESSOR:"dx-gantt-task-edit-wrapper-successor",TASK_EDIT_FRAME_SUCCESSOR:"dx-gantt-task-edit-frame-successor",TASK_EDIT_SUCCESSOR_DEPENDENCY_RIGTH:"dx-gantt-task-edit-successor-dependency-r",TASK_EDIT_SUCCESSOR_DEPENDENCY_LEFT:"dx-gantt-task-edit-successor-dependency-l",TASK_EDIT_TOUCH:"dx-gantt-edit-touch",TASK_EDIT_HIDE_UPDATING:"hide-updating"},e}();t.TaskEditController=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GanttView=void 0;var n=i(75),o=i(10),r=i(76),a=i(43),s=i(19),l=i(8),d=i(15),u=i(123),c=i(124),h=i(126),p=i(137),f=i(1),g=i(139),m=i(145),_=i(152),v=i(157),y=i(185),C=i(12),b=i(68),x=i(46),w=i(189),T=i(190),S=i(192),I=i(4),E=i(193),D=i(210),k=i(9),O=i(3),A=i(5),P=i(211),M=i(20),R=i(2),B=function(){function e(e,t,i){var o=this;this.currentSelectedTaskID="",this.isFocus=!1,this._updateWithModelReloadLockedCounter=0,this.scaleCount=2,this.tickSize=new C.Size(0,0),this.currentZoom=1,this.stripLinesUpdaterId=null,this.ganttOwner=t,this.settings=y.Settings.parse(i),this.initValidationController(),this.renderHelper=new v.RenderHelper(this),this.renderHelper.initMarkup(e),this.loadOptionsFromGanttOwner(),this.renderHelper.init(this.tickSize,this.range,this.settings.viewType,this.viewModel,this.settings.firstDayOfWeek),this.commandManager=new r.CommandManager(this),this.barManager=new n.BarManager(this.commandManager,this.ganttOwner.bars),this.initTaskEditController(),this.history=new p.History(this._getHistoryListener()),this.initFullScreenModeHelper(),this.updateView(),this._scrollTimeOut=setTimeout((function(){o.scrollLeftByViewType()}),0),this.initializeStripLinesUpdater(),this.initGanttViewApi()}return e.prototype.initGanttViewApi=function(){this.ganttViewApi=new D.GanttViewApi(this)},e.prototype._getHistoryListener=function(){return{onTransactionStart:this.onHistoryTransactionStart.bind(this),onTransactionEnd:this.onHistoryTransactionEnd.bind(this)}},e.prototype.onHistoryTransactionStart=function(){this.lockUpdateWithReload()},e.prototype.onHistoryTransactionEnd=function(){this.unlockUpdateWithReload()},e.prototype.lockUpdateWithReload=function(){this._updateWithModelReloadLockedCounter++},e.prototype.unlockUpdateWithReload=function(){this._updateWithModelReloadLockedCounter--,0===this._updateWithModelReloadLockedCounter&&this._pendingUpdateInfo&&(this.updateWithDataReload(this._pendingUpdateInfo.keepExpandState),this._pendingUpdateInfo=null)},e.prototype.initValidationController=function(){var e=this,t=S.ValidationControllerSettings.parse({getViewModel:function(){return e.viewModel},getHistory:function(){return e.history},getModelManipulator:function(){return e.modelManipulator},getRange:function(){return e.range},getValidationSettings:function(){return e.settings.validation},updateOwnerInAutoParentMode:function(){e.updateOwnerInAutoParentMode()},getIsValidateDependenciesRequired:function(){return e.isValidateDependenciesRequired()}});this.validationController=new T.ValidationController(t)},e.prototype.initTaskEditController=function(){var e=this,t=w.TaskEditSettings.parse({destroyTemplate:function(t){e.destroyTemplate(t)},formatDate:function(t){return e.getDateFormat(t)},getRenderHelper:function(){return e.renderHelper},getGanttSettings:function(){return e.settings},getViewModel:function(){return e.viewModel},getCommandManager:function(){return e.commandManager},getModelManipulator:function(){return e.modelManipulator},getValidationController:function(){return e.validationController}});this.taskEditController=new x.TaskEditController(t)},Object.defineProperty(e.prototype,"taskAreaEventsListener",{get:function(){var e;return null!==(e=this._taskAreaEventsListener)&&void 0!==e||(this._taskAreaEventsListener=new P.TaskAreaEventsListener(this)),this._taskAreaEventsListener},enumerable:!1,configurable:!0}),e.prototype.initFullScreenModeHelper=function(){var e=this,t=u.FullScreenHelperSettings.parse({getMainElement:function(){return e.getOwnerControlMainElement()},adjustControl:function(){e.adjustOwnerControl()}});this.fullScreenModeHelper=new c.FullScreenModeHelper(t)},e.prototype.getDateRange=function(e,t){var i=this.getVisibleAreaTime(),n=this.settings.startDateRange||d.DateUtils.adjustStartDateByViewType(new Date(e.getTime()-i),this.settings.viewType,this.settings.firstDayOfWeek),o=this.settings.endDateRange||d.DateUtils.adjustEndDateByViewType(new Date(t.getTime()+i),this.settings.viewType,this.settings.firstDayOfWeek);return this.settings.startDateRange&&n>o?o=n:this.settings.endDateRange&&n>o&&(n=o),new s.DateRange(n,o)},e.prototype.getVisibleAreaTime=function(){return Math.ceil(this.renderHelper.getTaskAreaContainerWidth()/this.tickSize.width)*d.DateUtils.getTickTimeSpan(this.settings.viewType)},e.prototype.zoomIn=function(e){void 0===e&&(e=this.renderHelper.getTaskAreaContainerWidth()/2),this.ganttViewApi.zoomIn(e)},e.prototype.zoomOut=function(e){void 0===e&&(e=this.renderHelper.getTaskAreaContainerWidth()/2),this.ganttViewApi.zoomOut(e)},e.prototype.scrollToDate=function(e){if(e){var t=e instanceof Date?d.DateUtils.getOrCreateUTCDate(e):d.DateUtils.parse(e);this.scrollToDateCore(t,0)}},e.prototype.showDialog=function(e,t,i,n){this.ganttOwner.showDialog(e,t,i,n)},e.prototype.showPopupMenu=function(e){this.ganttOwner.showPopupMenu(e)},e.prototype.hidePopupMenu=function(){this.ganttOwner.hidePopupMenu&&this.ganttOwner.hidePopupMenu()},e.prototype.collapseAll=function(){this.ganttOwner.collapseAll()},e.prototype.expandAll=function(){this.ganttOwner.expandAll()},e.prototype.onGanttViewContextMenu=function(e,t,i){return this.ganttOwner.onGanttViewContextMenu(e,t,i)},e.prototype.changeGanttTaskSelection=function(e,t){this.ganttOwner.changeGanttTaskSelection(e,t)},e.prototype.hideTaskEditControl=function(){this.taskEditController.hide()},e.prototype.scrollLeftByViewType=function(){var e=d.DateUtils.roundStartDate(this.dataRange.start,this.settings.viewType);this.scrollToDateCore(e,1)},e.prototype.scrollToDateCore=function(e,t){this.renderHelper.setTaskAreaContainerScrollLeftToDate(e,t)},e.prototype.onVisualModelChanged=function(){this.resetAndUpdate()},e.prototype.initializeStripLinesUpdater=function(){var e=this;this.settings.stripLines.showCurrentTime&&(this.stripLinesUpdaterId=setInterval((function(){e.renderHelper.recreateStripLines()}),Math.max(this.settings.stripLines.currentTimeUpdateInterval,100)))},e.prototype.clearStripLinesUpdater=function(){this.stripLinesUpdaterId&&clearInterval(this.stripLinesUpdaterId),this.stripLinesUpdaterId=null},e.prototype.getGanttViewStartDate=function(e){if(!e)return new Date;var t=e.map((function(e){return"string"==typeof e.start?new Date(e.start):e.start})).filter((function(e){return(0,f.isDefined)(e)}));return t.length>0?t.reduce((function(e,t){return t0?t.reduce((function(e,t){return t>e?t:e}),t[0]):new Date},e.prototype.getTask=function(e){var t=this.getViewItem(e);return null==t?void 0:t.task},e.prototype.getViewItem=function(e){var t;return null===(t=this.viewModel)||void 0===t?void 0:t.items[e]},e.prototype.isValidateDependenciesRequired=function(){return this.settings.validation.validateDependencies&&this.settings.showDependencies},e.prototype.updateTickSizeWidth=function(){this.tickSize.width=this.renderHelper.etalonScaleItemWidths*this.currentZoom},e.prototype.updateView=function(){this.onBeginUpdateView(),this.renderHelper.setTimeScaleContainerScrollLeft(this.taskAreaContainerScrollLeft),this.processScroll(!1),this.processScroll(!0),this.ganttOwner.onGanttScroll(this.taskAreaContainerScrollTop),this.onEndUpdateView()},e.prototype.onBeginUpdateView=function(){this[e.taskAreaScrollTopKey]=this.renderHelper.taskAreaContainerScrollTop,this[e.taskAreaScrollLeftKey]=this.renderHelper.taskAreaContainerScrollLeft},e.prototype.onEndUpdateView=function(){delete this[e.taskAreaScrollTopKey],delete this[e.taskAreaScrollLeftKey],delete this[e.taskTextHeightKey]},Object.defineProperty(e.prototype,"taskAreaContainerScrollTop",{get:function(){var t;return null!==(t=this[e.taskAreaScrollTopKey])&&void 0!==t?t:this.renderHelper.taskAreaContainerScrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaContainerScrollLeft",{get:function(){var t;return null!==(t=this[e.taskAreaScrollLeftKey])&&void 0!==t?t:this.renderHelper.taskAreaContainerScrollLeft},enumerable:!1,configurable:!0}),e.prototype.processScroll=function(e){this.hideTaskEditControl(),this.renderHelper.processScroll(e)},e.prototype.allowTaskAreaBorders=function(e){return e?this.settings.areHorizontalBordersEnabled:this.settings.areVerticalBordersEnabled},e.prototype.getScaleItemText=function(e,t){return this.renderHelper.getScaleItemText(e,t)},e.prototype.getTaskText=function(e){return this.renderHelper.getTaskText(e)},e.prototype.rowHasChildren=function(e){var t=this.getViewItem(e);return(null==t?void 0:t.children.length)>0},e.prototype.rowHasSelection=function(e){var t=this.getViewItem(e);return null==t?void 0:t.selected},e.prototype.getAllVisibleTaskIndices=function(e,t){return this.viewModel.getAllVisibleTaskIndices(e,t)},e.prototype.getVisibleDependencyKeysByTaskRange=function(e){var t=this.viewModel,i=e.map((function(e){return t.tasks.items[e].internalId}));return t.dependencies.items.filter((function(e){return i.indexOf(e.successorId)>-1||i.indexOf(e.predecessorId)>-1})).map((function(e){return e.internalId}))},e.prototype.getTreeListTableStyle=function(){var e,t;return null===(t=(e=this.ganttOwner).getTreeListTableStyle)||void 0===t?void 0:t.call(e)},e.prototype.getTreeListColCount=function(){var e,t;return null===(t=(e=this.ganttOwner).getTreeListColCount)||void 0===t?void 0:t.call(e)},e.prototype.getTreeListHeaderInfo=function(e){var t,i;return null===(i=(t=this.ganttOwner).getTreeListHeaderInfo)||void 0===i?void 0:i.call(t,e)},e.prototype.getTreeListCellInfo=function(e,t,i){var n,o;return null===(o=(n=this.ganttOwner).getTreeListCellInfo)||void 0===o?void 0:o.call(n,e,t,i)},e.prototype.getTreeListEmptyDataCellInfo=function(){var e,t;return null===(t=(e=this.ganttOwner).getTreeListEmptyDataCellInfo)||void 0===t?void 0:t.call(e)},e.prototype.exportToPdf=function(e){var t;return null!==(t=e.docCreateMethod)&&void 0!==t||(e.docCreateMethod=this.getDefaultPdfDocCreateMethod()),new _.PdfGanttExporter(new h.GanttExportCalculator(this,e)).export()},e.prototype.getDefaultPdfDocCreateMethod=function(){var e;return null===(e=window.jspdf)||void 0===e?void 0:e.jsPDF},e.prototype.getTaskDependencies=function(e){return this.viewModel.dependencies.items.filter((function(t){return t.predecessorId==e||t.successorId==e}))},e.prototype.isHighlightRowElementAllowed=function(e){var t=this.getViewItem(e);return e%2!=0&&this.settings.areAlternateRowsEnabled||(null==t?void 0:t.children.length)>0},e.prototype.calculateAutoViewType=function(e,t){var i=(t.getTime()-e.getTime())/36e5;return i>8760?I.ViewType.Years:i>720?I.ViewType.Months:i>168?I.ViewType.Weeks:i>24?I.ViewType.Days:i>6?I.ViewType.SixHours:i>1?I.ViewType.Hours:I.ViewType.TenMinutes},e.prototype.getExternalTaskAreaContainer=function(e){return this.ganttOwner.getExternalTaskAreaContainer(e)},e.prototype.prepareExternalTaskAreaContainer=function(e,t){return this.ganttOwner.prepareExternalTaskAreaContainer(e,t)},e.prototype.getHeaderHeight=function(){return this.ganttOwner.getHeaderHeight()},e.prototype.changeTaskExpanded=function(e,t){var i=this.getTaskByPublicId(e);i&&this.viewModel.changeTaskExpanded(i.internalId,t)},e.prototype.expandTask=function(e){this.viewModel.changeTaskExpanded(e,!0)},e.prototype.collapseTask=function(e){this.viewModel.changeTaskExpanded(e,!1)},e.prototype.showTask=function(e){this.viewModel.changeTaskVisibility(e,!0)},e.prototype.hideTask=function(e){this.viewModel.changeTaskVisibility(e,!1)},e.prototype.getTaskVisibility=function(e){return this.viewModel.getTaskVisibility(e)},e.prototype.unselectCurrentSelectedTask=function(){this.unselectTask(this.currentSelectedTaskID)},e.prototype.getTaskSelected=function(e){return this.viewModel.getTaskSelected(e)},e.prototype.setViewType=function(e,t){void 0===t&&(t=!0),this.ganttViewApi.setViewType(e,t)},e.prototype.setViewTypeRange=function(e,t){this.ganttViewApi.setViewTypeRange(e,t)},e.prototype.setTaskTitlePosition=function(e){this.settings.taskTitlePosition!==e&&(this.settings.taskTitlePosition=e,this.resetAndUpdate())},e.prototype.setShowResources=function(e){this.settings.showResources!==e&&(this.settings.showResources=e,this.resetAndUpdate())},e.prototype.toggleResources=function(){this.setShowResources(!this.settings.showResources)},e.prototype.setShowDependencies=function(e){this.settings.showDependencies!==e&&(this.settings.showDependencies=e,this.resetAndUpdate())},e.prototype.toggleDependencies=function(){this.setShowDependencies(!this.settings.showDependencies)},e.prototype.setFirstDayOfWeek=function(e){this.settings.firstDayOfWeek!==e&&(this.settings.firstDayOfWeek=e,this.resetAndUpdate())},e.prototype.setStartDateRange=function(e){l.DateTimeUtils.areDatesEqual(this.settings.startDateRange,e)||(this.settings.startDateRange=new Date(e),this.resetAndUpdate())},e.prototype.setEndDateRange=function(e){l.DateTimeUtils.areDatesEqual(this.settings.endDateRange,e)||(this.settings.endDateRange=new Date(e),this.resetAndUpdate())},e.prototype.loadOptionsFromGanttOwner=function(){var e,t=this;this.tickSize.height=this.ganttOwner.getRowHeight();var i=this.ganttOwner.getGanttTasksData();this.dataRange=new s.DateRange(this.getGanttViewStartDate(i),this.getGanttViewEndDate(i)),null==this.settings.viewType&&(this.settings.viewType=this.calculateAutoViewType(this.dataRange.start,this.dataRange.end)),this.updateTickSizeWidth(),this.range=this.getDateRange(this.dataRange.start,this.dataRange.end),this.dispatcher=new g.ModelChangesDispatcher;var n=this.ganttOwner.getModelChangesListener();n&&this.dispatcher.onModelChanged.add(n),this.viewModel=new E.ViewVisualModel(this,i,this.ganttOwner.getGanttDependenciesData(),this.ganttOwner.getGanttResourcesData(),this.ganttOwner.getGanttResourceAssignmentsData(),this.range,this.ganttOwner.getGanttWorkTimeRules()),this.modelManipulator=new m.ModelManipulator(this.viewModel,this.dispatcher),null===(e=this.history)||void 0===e||e.historyItems.forEach((function(e){return e.setModelManipulator(t.modelManipulator)}))},e.prototype.resetAndUpdate=function(){this.range=this.getDateRange(this.dataRange.start,this.dataRange.end),this.viewModel.updateRange(this.range),this.renderHelper.resetAndUpdate(this.tickSize,this.range,this.settings.viewType,this.viewModel,this.settings.firstDayOfWeek),o.Browser.IE&&this.taskEditController.createElements(),this.updateView()},e.prototype.cleanMarkup=function(){this.renderHelper.taskAreaManagerDetachEvents(),this.taskEditController.detachEvents(),this.clearStripLinesUpdater(),this.renderHelper.reset(),clearTimeout(this._scrollTimeOut)},e.prototype.checkAndProcessModelChanges=function(){var e=this.ganttOwner.getGanttTasksData(),t=this.viewModel.refreshTaskDataIfRequires(e);return t&&this.resetAndUpdate(),t},e.prototype.updateHistoryObsoleteInsertedKey=function(e,t,i){var n;null===(n=this.history)||void 0===n||n.updateObsoleteInsertedKey(e,t,i),i===R.GanttDataObjectNames.dependency&&this.renderHelper.updateRenderedConnectorLinesId(e,t)},e.prototype.updateRowHeights=function(e){if(this.tickSize.height!==e){this.tickSize.height=e;var t=this.renderHelper.getTaskAreaContainerScrollLeft();this.resetAndUpdate(),this.renderHelper.setTaskAreaContainerScrollLeft(t)}},e.prototype.selectTask=function(e){this.selectDependency(null),this.viewModel.changeTaskSelected(e,!0),this.currentSelectedTaskID=e,this.updateBarManager()},e.prototype.unselectTask=function(e){this.viewModel.changeTaskSelected(e,!1),this.updateBarManager()},e.prototype.selectTaskById=function(e){this.unselectCurrentSelectedTask();var t=this.getTaskByPublicId(e);t&&this.selectTask(t.internalId)},e.prototype.selectDependency=function(e){this.taskEditController.selectDependency(e),this.renderHelper.createConnectorLines()},e.prototype.getTaskAreaContainer=function(){return this.renderHelper.taskAreaContainer},e.prototype.setWidth=function(e){this.renderHelper.setMainElementWidth(e)},e.prototype.setHeight=function(e){this.renderHelper.setMainElementHeight(e)},e.prototype.setAllowSelection=function(e){this.settings.allowSelectTask=e},e.prototype.setEditingSettings=function(e){this.settings.editing=e,this.updateBarManager()},e.prototype.setValidationSettings=function(e){this.settings.validation=e},e.prototype.setRowLinesVisible=function(e){this.settings.areHorizontalBordersEnabled=e,this.renderHelper.prepareTaskAreaContainer(),this.resetAndUpdate()},e.prototype.setStripLines=function(e){this.settings.stripLines=b.StripLineSettings.parse(e),this.clearStripLinesUpdater(),this.initializeStripLinesUpdater(),this.renderHelper.recreateStripLines()},e.prototype.deleteTask=function(e){var t=this.getTaskByPublicId(e.toString());t&&this.commandManager.removeTaskCommand.execute(t.internalId,!1,!0)},e.prototype.insertTask=function(e){if(e){var t=null!=e.parentId?String(e.parentId):null,i=this.getTaskByPublicId(t),n=this.viewModel.getRootTaskId(),o="string"==typeof e.start?new Date(e.start):e.start,r="string"==typeof e.end?new Date(e.end):e.end,a={parentId:n&&t===n?t:null==i?void 0:i.internalId,title:e.title,start:o,end:r,progress:parseInt(e.progress)||0,color:e.color};if(this.commandManager.createTaskCommand.execute(a))return this.getLastInsertedTaskId()}return""},e.prototype.updateTask=function(e,t){var i=this.getTaskByPublicId(e.toString()),n=this._getTaskDataForUpdate(t,i);n&&this.commandManager.updateTaskCommand.execute(i.internalId,n)},e.prototype.getTaskData=function(e){var t=this.getTaskByPublicId(e.toString());if(t)return this.viewModel.getTaskObjectForDataSource(t)},e.prototype.insertDependency=function(e){if(e){var t=String(e.predecessorId),i=this.getTaskByPublicId(t),n=String(e.successorId),o=this.getTaskByPublicId(n),r=e.type;i&&o&&this.validationController.canCreateDependency(t,n)&&this.commandManager.createDependencyCommand.execute(i.internalId,o.internalId,r)}},e.prototype.deleteDependency=function(e){var t=this.viewModel.convertPublicToInternalKey("dependency",e);(0,f.isDefined)(t)&&this.commandManager.removeDependencyCommand.execute(t)},e.prototype.getDependencyData=function(e){return this.viewModel.getDependencyObjectForDataSource(e)},e.prototype.insertResource=function(e,t){var i=this;e&&this.commandManager.createResourceCommand.execute(String(e.text),e.color&&String(e.color),(function(e){if((0,f.isDefined)(t))for(var n=0;n0)this._pendingUpdateInfo={keepExpandState:e};else{var t=e&&this.getTasksExpandedState();this.loadOptionsFromGanttOwner(),e?this.applyTasksExpandedState(t):this.resetAndUpdate();var i=M.DialogBase.activeInstance;i&&i.canRefresh&&"TaskEdit"===i.getDialogName()&&i.refresh()}},e.prototype.onBrowserWindowResize=function(){this.fullScreenModeHelper.isInFullScreenMode?this.fullScreenModeHelper.adjustControlInFullScreenMode():this.adjustOwnerControl()},e.prototype.setTaskValue=function(e,t,i){var n=this.commandManager.updateTaskCommand,o=this.getTaskByPublicId(e),r={};return o&&("title"===t&&(r[t]=i||""),"progress"===t&&(r[t]=i),"start"===t&&(r[t]=l.DateTimeUtils.getMinDate(i,o.end)),"end"===t&&(r[t]=l.DateTimeUtils.getMaxDate(i,o.start))),Object.keys(r).length>0&&n.execute(o.internalId,r)},e.prototype.getLastInsertedTaskId=function(){var e=this.history.historyItems.filter((function(e){return e instanceof a.CreateTaskHistoryItem})),t=e[e.length-1];return t&&t.insertedKey},e.prototype.getTaskByPublicId=function(e){return this.viewModel.tasks.getItemByPublicId(e)},e.prototype.getPrevTask=function(e){var t=this.viewModel.findItem(e),i=(t.parent||this.viewModel.root).children.indexOf(t)-1;return i>-1?t.parent.children[i].task:t.parent.task},e.prototype.getTaskIdByInternalId=function(e){var t=this.viewModel.findItem(e),i=t&&t.task;return i?i.id:null},e.prototype.isTaskHasChildren=function(e){var t=this.viewModel.findItem(e);return t&&t.children.length>0},e.prototype.requireFirstLoadParentAutoCalc=function(){var e=this.ganttOwner;return e.getRequireFirstLoadParentAutoCalc&&e.getRequireFirstLoadParentAutoCalc()},e.prototype.updateOwnerInAutoParentMode=function(){this.viewModel.parentAutoCalc&&this.dispatcher.notifyParentDataRecalculated(this.viewModel.getCurrentTaskData())},e.prototype.getOwnerControlMainElement=function(){var e=this.ganttOwner;return e.getMainElement&&e.getMainElement()},e.prototype.adjustOwnerControl=function(){var e=this.ganttOwner;e.adjustControl&&e.adjustControl()},e.prototype.applySettings=function(e,t){void 0===t&&(t=!1);var i=y.Settings.parse(e),n=t||this.settings.equal(i);this.settings=i,n||this.resetAndUpdate()},e.prototype.getDataUpdateErrorCallback=function(){var e=this,t=this.history,i=t.getCurrentProcessingItemInfo();return function(){e.dispatcher.lock(),t.rollBackAndRemove(i),e.dispatcher.unlock(),e.updateBarManager()}},e.prototype.setTaskTooltipContentTemplate=function(e){this.settings.taskTooltipContentTemplate=e},e.prototype.setTaskProgressTooltipContentTemplate=function(e){this.settings.taskProgressTooltipContentTemplate=e},e.prototype.setTaskTimeTooltipContentTemplate=function(e){this.settings.taskTimeTooltipContentTemplate=e},e.prototype.setTaskContentTemplate=function(e){this.settings.taskContentTemplate=e},e.prototype.updateBarManager=function(){this.barManager.updateItemsState([])},e.prototype.onTaskAreaClick=function(e,t){var i,n=this.viewModel.items[e];return n&&this.onTaskClick(null===(i=n.task)||void 0===i?void 0:i.id,t)},e.prototype.onTaskAreaDblClick=function(e,t){var i=this.viewModel.items[e];i&&this.onTaskDblClick(i.task.id,t)&&this.commandManager.showTaskEditDialog.execute(i.task)},e.prototype.onTaskAreaContextMenu=function(e,t,i){var n,o,r="dependency"===i,a=t,s=this.viewModel,l=r?s.convertInternalToPublicKey("dependency",k.EvtUtils.getEventSource(t).getAttribute("dependency-id")):null===(o=null===(n=s.items[e])||void 0===n?void 0:n.task)||void 0===o?void 0:o.id;if(this.onGanttViewContextMenu(t,l,i)){var d={event:t,type:i,key:l,position:new A.Point(k.EvtUtils.getEventX(a),k.EvtUtils.getEventY(a))};this.showPopupMenu(d)}},e.prototype.onTaskSelectionChanged=function(e,t){var i=this,n=this.viewModel.items[e];this.isFocus=O.DomUtils.isItParent(this.renderHelper.taskArea,k.EvtUtils.getEventSource(t)),n&&this.isFocus&&this.settings.allowSelectTask&&setTimeout((function(){i.changeGanttTaskSelection(n.task.id,!0)}),0)},e.prototype.onTaskClick=function(e,t){return!this.ganttOwner.onTaskClick||this.ganttOwner.onTaskClick(e,t)},e.prototype.onTaskDblClick=function(e,t){return!this.ganttOwner.onTaskDblClick||this.ganttOwner.onTaskDblClick(e,t)},e.prototype.getDateFormat=function(e){return this.ganttOwner.getFormattedDateText?this.ganttOwner.getFormattedDateText(e):this.getDefaultDateFormat(e)},e.prototype.getDefaultDateFormat=function(e){return("0"+e.getDate()).slice(-2)+"/"+("0"+(e.getMonth()+1)).slice(-2)+"/"+e.getFullYear()+" "+("0"+e.getHours()).slice(-2)+":"+("0"+e.getMinutes()).slice(-2)},e.prototype.destroyTemplate=function(e){this.ganttOwner.destroyTemplate?this.ganttOwner.destroyTemplate(e):e.innerHTML=""},e.prototype.onTaskAreaSizeChanged=function(e){this.ganttOwner.onTaskAreaSizeChanged&&this.ganttOwner.onTaskAreaSizeChanged(e)},e.prototype.showTaskEditDialog=function(){this.commandManager.showTaskEditDialog.execute()},e.prototype.showTaskDetailsDialog=function(e){var t=this.getTaskByPublicId(e);t&&this.commandManager.showTaskEditDialog.execute(t,!0)},e.prototype.showResourcesDialog=function(){this.commandManager.showResourcesDialog.execute()},e.prototype.getCommandByKey=function(e){return this.commandManager.getCommand(e)},e.prototype._getTaskDataForUpdate=function(e,t){var i={};return t&&e&&((0,f.isDefined)(e.title)&&e.title!==t.title&&(i.title=e.title),(0,f.isDefined)(e.progress)&&e.progress!==t.progress&&(i.progress=e.progress),(0,f.isDefined)(e.start)&&e.start!==t.start&&(i.start=e.start),(0,f.isDefined)(e.end)&&e.end!==t.end&&(i.end=e.end),(0,f.isDefined)(e.color)&&e.color!==t.color&&(i.color=e.color)),Object.keys(i).length>0?i:null},e.prototype.updateViewDataRange=function(){var e=this.viewModel,t=e.getTaskMinStart(),i=e.getTaskMaxEnd(),n=t.getTime()this.dataRange.end.getTime();n&&(this.dataRange.start=t),o&&(this.dataRange.end=i),(n||o)&&this.resetAndUpdate()},e.cachedPrefix="cached_",e.taskAreaScrollLeftKey=e.cachedPrefix+"taskAreaScrollLeft",e.taskAreaScrollTopKey=e.cachedPrefix+"taskAreaScrollTop",e.taskTextHeightKey=e.cachedPrefix+"taskTextHeight",e}();t.GanttView=B},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Resource=void 0;var n=i(0),o=i(1),r=function(e){function t(){var t=e.call(this)||this;return t.text="",t.color="",t}return n.__extends(t,e),t.prototype.assignFromObject=function(t){(0,o.isDefined)(t)&&(e.prototype.assignFromObject.call(this,t),this.text=t.text,(0,o.isDefined)(t.color)&&(this.color=t.color))},t}(i(2).DataObject);t.Resource=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceAssigningArguments=void 0;var n=i(0),o=function(e){function t(t,i){var n=e.call(this,null)||this;return n.values={resourceId:t,taskId:i},n}return n.__extends(t,e),Object.defineProperty(t.prototype,"resourceId",{get:function(){return this.values.resourceId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"taskId",{get:function(){return this.values.taskId},enumerable:!1,configurable:!0}),t}(i(11).BaseArguments);t.ResourceAssigningArguments=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AssignResourceHistoryItem=void 0;var n=i(0),o=i(14),r=i(2),a=i(18),s=function(e){function t(t,i,n){var o=e.call(this,t)||this;return o.resourceId=i,o.taskId=n,o}return n.__extends(t,e),t.prototype.redo=function(){var e;null!==(e=this.insertedKey)&&void 0!==e||(this.insertedKey=a.MathUtils.generateGuid()),this.modelManipulator.resource.assign(this.resourceId,this.taskId,this.insertedKey)},t.prototype.undo=function(){this.modelManipulator.resource.deassig(this.insertedKey)},Object.defineProperty(t.prototype,"keyUpdaters",{get:function(){var e=this;return[{objectType:r.GanttDataObjectNames.resourceAssignment,getKey:function(){return e.insertedKey},updateKey:function(t){return e.insertedKey=t}},{objectType:r.GanttDataObjectNames.task,getKey:function(){return e.taskId},updateKey:function(t){return e.taskId=t}},{objectType:r.GanttDataObjectNames.resource,getKey:function(){return e.resourceId},updateKey:function(t){return e.resourceId=t}}]},enumerable:!1,configurable:!0}),t}(o.HistoryItem);t.AssignResourceHistoryItem=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DependencyCommandBase=void 0;var n=i(0),o=i(6),r=i(7),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.getState=function(){return new r.SimpleCommandState(this.isEnabled())},t}(o.CommandBase);t.DependencyCommandBase=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskInsertingArguments=void 0;var n=i(0),o=function(e){function t(t,i){var n=e.call(this,t)||this;return n.values=null!=i?i:{},n}return n.__extends(t,e),Object.defineProperty(t.prototype,"start",{get:function(){return this.values.start},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this.values.end},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.values.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return this.values.progress},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentId",{get:function(){return this.values.parentId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this.values.color},enumerable:!1,configurable:!0}),t}(i(11).BaseArguments);t.TaskInsertingArguments=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateTaskHistoryItem=void 0;var n=i(0),o=i(2),r=i(14),a=i(54),s=function(e){function t(t,i,n){var o=e.call(this,t)||this;return o.taskId=i,o.newValues=n,o}return n.__extends(t,e),t.prototype.redo=function(){var e=this.modelManipulator.task.update(this.taskId,this.newValues);this.oldState=new a.HistoryItemState(this.taskId,e)},t.prototype.undo=function(){this.modelManipulator.task.update(this.taskId,this.oldState.value)},Object.defineProperty(t.prototype,"keyUpdaters",{get:function(){var e=this;return[{objectType:o.GanttDataObjectNames.task,getKey:function(){return e.taskId},updateKey:function(t){return e.taskId=t}}]},enumerable:!1,configurable:!0}),t}(r.HistoryItem);t.UpdateTaskHistoryItem=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HistoryItemState=void 0;var n=function(e,t){this.id=e,this.value=t};t.HistoryItemState=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Time=void 0;var n=function(){function e(e,t,i,n){void 0===e&&(e=0),void 0===t&&(t=0),void 0===i&&(i=0),void 0===n&&(n=0),this._hour=0,this._min=0,this._sec=0,this._msec=0,this._fullmsec=0,this.hour=e,this.min=t,this.sec=i,this.msec=n}return Object.defineProperty(e.prototype,"hour",{get:function(){return this._hour},set:function(e){e>=0&&e<24&&(this._hour=e,this.updateFullMilleconds())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){e>=0&&e<60&&(this._min=e,this.updateFullMilleconds())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sec",{get:function(){return this._sec},set:function(e){e>=0&&e<60&&(this._sec=e,this.updateFullMilleconds())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"msec",{get:function(){return this._msec},set:function(e){e>=0&&e<1e3&&(this._msec=e,this.updateFullMilleconds())},enumerable:!1,configurable:!0}),e.prototype.updateFullMilleconds=function(){var e=60*(60*this._hour+this._min)+this._sec;this._fullmsec=1e3*e+this._msec},e.prototype.getTimeInMilleconds=function(){return this._fullmsec},e}();t.Time=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeRange=void 0;var n=i(8),o=function(){function e(e,t){n.DateTimeUtils.caclTimeDifference(e,t)>=0?(this._start=e,this._end=t):(this._start=t,this._end=e)}return Object.defineProperty(e.prototype,"start",{get:function(){return this._start},set:function(e){e&&n.DateTimeUtils.caclTimeDifference(e,this._end)>=0&&(this._start=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._end},set:function(e){e&&n.DateTimeUtils.caclTimeDifference(this._start,e)>=0&&(this._end=e)},enumerable:!1,configurable:!0}),e.prototype.isTimeInRange=function(e){return n.DateTimeUtils.caclTimeDifference(this._start,e)>=0&&n.DateTimeUtils.caclTimeDifference(e,this._end)>=0},e.prototype.hasIntersect=function(e){return this.isTimeInRange(e.start)||this.isTimeInRange(e.end)||e.isTimeInRange(this.start)||e.isTimeInRange(this.end)},e.prototype.concatWith=function(e){return!!this.hasIntersect(e)&&(this.start=n.DateTimeUtils.getMinTime(this.start,e.start),this.end=n.DateTimeUtils.getMaxTime(this.end,e.end),!0)},e}();t.TimeRange=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DayOfWeekMonthlyOccurrence=void 0,function(e){e[e.First=0]="First",e[e.Second=1]="Second",e[e.Third=2]="Third",e[e.Forth=3]="Forth",e[e.Last=4]="Last"}(t.DayOfWeekMonthlyOccurrence||(t.DayOfWeekMonthlyOccurrence={}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GridElementInfo=void 0;var n=i(5),o=i(12),r=i(127),a=function(){function e(t,i,a){this.id=e.id++,this.position=new n.Point(void 0,void 0),this.size=new o.Size(0,0),this.margins=new r.Margins(void 0,void 0,void 0,void 0),this.attr={},this.style={},this.additionalInfo={},t&&(this.className=t),i&&this.setPosition(i),a&&this.setSize(a)}return e.prototype.setSize=function(e){this.size.width=e.width,this.size.height=e.height},e.prototype.setPosition=function(e){this.position.x=e.x,this.position.y=e.y},e.prototype.assignToElement=function(e){this.assignPosition(e),this.assignSize(e),this.assignMargins(e),this.className&&(e.className=this.className)},e.prototype.assignPosition=function(e){null!=this.position.x&&(e.style.left=this.position.x+"px"),null!=this.position.y&&(e.style.top=this.position.y+"px")},e.prototype.assignSize=function(e){this.size.width&&(e.style.width=this.size.width+"px"),this.size.height&&(e.style.height=this.size.height+"px")},e.prototype.assignMargins=function(e){this.margins.left&&(e.style.marginLeft=this.margins.left+"px"),this.margins.top&&(e.style.marginTop=this.margins.top+"px"),this.margins.right&&(e.style.marginRight=this.margins.right+"px"),this.margins.bottom&&(e.style.marginBottom=this.margins.bottom+"px")},e.prototype.setAttribute=function(e,t){this.attr[e]=t},e.id=0,e}();t.GridElementInfo=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StripLine=void 0;var n=i(1),o=function(){function e(e,t,i,n,o){this.isCurrent=!1,this.start=e,this.end=t,this.title=i,this.cssClass=n,this.isCurrent=o}return e.parse=function(t){var i=new e;return t&&((0,n.isDefined)(t.start)&&(i.start=t.start),(0,n.isDefined)(t.end)&&(i.end=t.end),(0,n.isDefined)(t.title)&&(i.title=t.title),(0,n.isDefined)(t.cssClass)&&(i.cssClass=t.cssClass)),i},e.prototype.clone=function(){return new e(this.start,this.end,this.title,this.cssClass,this.isCurrent)},e.prototype.equal=function(e){var t=!0;return(t=(t=(t=t&&this.start==e.start)&&this.end==e.end)&&this.title==e.title)&&this.cssClass==e.cssClass},e}();t.StripLine=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PdfDependencyLineInfo=void 0;var n=i(5),o=i(17),r=function(){function e(){}return e.prototype.assign=function(e){var t;this._copyPoints(e.points),this.arrowInfo=e.arrowInfo,null!==(t=this.fillColor)&&void 0!==t||(this.fillColor=new o.Color),this.fillColor.assign(e.fillColor)},e.prototype._copyPoints=function(e){var t=this;this.points=new Array,null==e||e.forEach((function(e){return t.points.push(new n.Point(e.x,e.y))}))},e}();t.PdfDependencyLineInfo=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PdfTaskResourcesInfo=void 0;var n=i(1),o=i(26),r=function(){function e(e,t,i,r){e&&(this.text=e),t&&(this.style=new o.StyleDef(t)),(0,n.isDefined)(i)&&(this.x=i),(0,n.isDefined)(r)&&(this.y=r)}return e.prototype.assign=function(e){this.text=e.text,this.style=new o.StyleDef(e.style),this.x=e.x,this.y=e.y},e}();t.PdfTaskResourcesInfo=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Width=void 0;var n=i(35),o=i(3),r=function(){function e(e){this.assign(e)}return e.prototype.assign=function(t){if(t instanceof e)this._widthInternal=t._widthInternal;else{var i="number"==typeof t?t:parseInt(t);isNaN(i)?this.assignFromString(t):this._widthInternal=i}},e.prototype.assignFromString=function(e){if(e){var t=o.DomUtils.pxToInt(e);this._widthInternal=t||n.PredefinedStyles.getPredefinedStringOrUndefined(e,n.PredefinedStyles.width)}},e.prototype.hasValue=function(){return!!this._widthInternal},e.prototype.getValue=function(){return this._widthInternal},e}();t.Width=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PdfTimeMarkerInfo=void 0;var n=i(5),o=i(12),r=i(1),a=i(17),s=function(){function e(e,t,i,s,l){this.lineColor=new a.Color,this.color=new a.Color,e&&(this.start=new n.Point(e.x,e.y)),t&&(this.size=new o.Size(t.width,t.height)),i&&this.color.assign(i),s&&this.lineColor.assign(s),(0,r.isDefined)(l)&&(this.isStripLine=l)}return e.prototype.assign=function(e){var t,i,r,a;e&&(this.start=new n.Point(null===(t=e.start)||void 0===t?void 0:t.x,null===(i=e.start)||void 0===i?void 0:i.y),this.size=new o.Size(null===(r=e.size)||void 0===r?void 0:r.width,null===(a=e.size)||void 0===a?void 0:a.height),this.isStripLine=e.isStripLine,this.color.assign(e.color),this.lineColor.assign(e.lineColor))},e}();t.PdfTimeMarkerInfo=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EllipsisHelper=void 0;var n=function(){function e(){}return e.limitPdfTextWithEllipsis=function(t,i,n){if(!(null==i?void 0:i.getTextWidth)||!n)return t;if(i.getTextWidth(t.toString())>n){for(var o=t,r=t.length-1;i.getTextWidth(o)>n&&r>0;)o=o.substring(0,r)+e.ellipsis,r--;return o}return t},e.ellipsis="...",e}();t.EllipsisHelper=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TooltipSettings=void 0;var n=i(1),o=function(){function e(){}return e.parse=function(t){var i=new e;return t&&((0,n.isDefined)(t.getHeaderHeight)&&(i.getHeaderHeight=t.getHeaderHeight),(0,n.isDefined)(t.getTaskTooltipContentTemplate)&&(i.getTaskTooltipContentTemplate=t.getTaskTooltipContentTemplate),(0,n.isDefined)(t.getTaskProgressTooltipContentTemplate)&&(i.getTaskProgressTooltipContentTemplate=t.getTaskProgressTooltipContentTemplate),(0,n.isDefined)(t.getTaskTimeTooltipContentTemplate)&&(i.getTaskTimeTooltipContentTemplate=t.getTaskTimeTooltipContentTemplate),(0,n.isDefined)(t.destroyTemplate)&&(i.destroyTemplate=t.destroyTemplate),(0,n.isDefined)(t.formatDate)&&(i.formatDate=t.formatDate)),i},e}();t.TooltipSettings=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeyCode=t.ModifierKey=t.KeyUtils=void 0;var n,o,r=i(10),a=i(171),s=i(39),l=function(){function e(){}return e.getKeyModifiers=function(e){var t=0;return e.altKey&&(t|=n.Alt),e.ctrlKey&&(t|=n.Ctrl),e.shiftKey&&(t|=n.Shift),e.metaKey&&(t|=n.Meta),t},e.getShortcutCode=function(e,t,i,o,r){var a=e;return a|=t?n.Ctrl:0,a|=i?n.Shift:0,a|=o?n.Alt:0,a|(r?n.Meta:0)},e.getShortcutCodeByEvent=function(t){return e.getShortcutCode(e.getEventKeyCode(t),t.ctrlKey,t.shiftKey,t.altKey,!!r.Browser.MacOSPlatform&&t.metaKey)},e.getEventKeyCode=function(e){return r.Browser.NetscapeFamily||r.Browser.Opera?e.which:e.keyCode},e.parseShortcutString=function(t){if(!t)return 0;var i=!1,n=!1,r=!1,l=!1,d=null,u=t.toString().split("+");if(u.length>0)for(var c=0;c=0&&e.splice(i,1)},e.removeBy=function(e,t){for(var i=e.length,n=0;n0;e--)i.push(t);return i},e.initByCallback=function(e,t){for(var i=[],n=0;n=i;n--)t(n)},e.reducedMap=function(e,t,i,n){void 0===i&&(i=0),void 0===n&&(n=e.length);for(var o=[],r=i;r=n;o--)if(t(e[o],o))return o;return-1},e.elementBy=function(t,i,n,o){void 0===n&&(n=0),void 0===o&&(o=t.length);var r=e.indexBy(t,i,n,o);return r<0?null:t[r]},e.reverseElementBy=function(t,i,n,o){void 0===n&&(n=t.length-1),void 0===o&&(o=0);var r=e.reverseIndexBy(t,i,n,o);return r<0?null:t[r]},e.last=function(e){return e[e.length-1]},e.setLast=function(e,t){return e[e.length-1]=t},e.incLast=function(e){return++e[e.length-1]},e.decLast=function(e){return--e[e.length-1]},e.equals=function(t,i){return t.length===i.length&&e.allOf2(t,i,(function(e,t){return e.equals(t)}))},e.equalsByReference=function(e,t){var i=e.length;if(i!==e.length)return!1;for(var n=0;n=0;i--)t===e[i]?e.splice(i,1):t=e[i];return e},e.forEach=function(e,t,i,n){void 0===i&&(i=0),void 0===n&&(n=e.length);for(var o=i;o=n;o--)t(e[o],o)},e.reverseIndexOf=function(e,t,i,n){void 0===i&&(i=e.length-1),void 0===n&&(n=0);for(var o=i;o>=n;o--)if(e[o]===t)return o;return-1},e.accumulate=function(e,t,i,n,o){void 0===n&&(n=0),void 0===o&&(o=e.length);for(var r=t,a=n;a=n;o--)if(t(e[o],o))return!0;return!1},e.unsafeReverseAnyOf=function(e,t,i,n){void 0===i&&(i=e.length-1),void 0===n&&(n=0);for(var o=i;o>=n;o--){var r=t(e[o],o);if(r)return r}return null},e.anyOf2=function(e,t,i,n,o){void 0===n&&(n=0),void 0===o&&(o=e.length);for(var r=n;ra&&(a=d,r=l)}return new n.ExtendedMax(r,a)},e.minMaxExtended=function(e,t,i,o){if(void 0===i&&(i=0),void 0===o&&(o=e.length),0===e.length)return null;for(var r=e[i],a=r,s=t(r),l=s,d=i+1;dl&&(l=c,a=u)}return new n.ExtendedMinMax(r,s,a,l)},e.minByCmp=function(e,t,i,n){if(void 0===i&&(i=0),void 0===n&&(n=e.length),0===e.length)return null;for(var o=e[i],r=i+1;r0&&(o=a)}return o},e.minMaxByCmp=function(e,t,i,o){if(void 0===i&&(i=0),void 0===o&&(o=e.length),0===e.length)return null;for(var r=e[i],a=r,s=i+1;s0?a=l:d<0&&(r=l)}return new n.MinMax(r,a)},e}();t.ListUtils=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedMinMax=t.ExtendedMax=t.ExtendedMin=t.MinMaxNumber=t.MinMax=void 0;var n=i(0),o=function(e,t){this.minElement=e,this.maxElement=t};t.MinMax=o;var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),Object.defineProperty(t.prototype,"length",{get:function(){return this.maxElement-this.minElement},enumerable:!1,configurable:!0}),t}(o);t.MinMaxNumber=r;var a=function(e,t){this.minElement=e,this.minValue=t};t.ExtendedMin=a;var s=function(e,t){this.maxElement=e,this.maxValue=t};t.ExtendedMax=s;var l=function(e){function t(t,i,n,o){var r=e.call(this,t,n)||this;return r.minValue=i,r.maxValue=o,r}return n.__extends(t,e),t}(o);t.ExtendedMinMax=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Equals=t.Comparers=void 0;var n=function(){function e(){}return e.number=function(e,t){return e-t},e.string=function(e,t){return e===t?0:e>t?1:-1},e.stringIgnoreCase=function(e,t){return(e=e.toLowerCase())===(t=t.toLowerCase())?0:e>t?1:-1},e}();t.Comparers=n;var o=function(){function e(){}return e.simpleType=function(e,t){return e===t},e.object=function(e,t){return e&&t&&(e===t||e.equals(t))},e}();t.Equals=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourcesDialogParameters=void 0;var n=i(0),o=i(21),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.clone=function(){var e=new t;return e.resources=new o.ResourceCollection,e.resources.addRange(this.resources.items),e},t}(i(32).DialogParametersBase);t.ResourcesDialogParameters=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskEditDialogCommand=void 0;var n=i(0),o=i(21),r=i(49),a=i(50),s=i(33),l=i(20),d=i(87),u=i(1),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.onBeforeDialogShow=function(e){return this.modelManipulator.dispatcher.raiseTaskTaskEditDialogShowing(e,(function(t){var i=t.values;e.start=i.start,e.end=i.end,e.progress=i.progress,e.title=i.title,e.readOnlyFields=t.readOnlyFields,e.hiddenFields=t.hiddenFields}))},t.prototype.applyParameters=function(e,t){var i=this;this.history.beginTransaction();var n=this.getUpdatedTaskData(e,t);Object.keys(n).length>0&&setTimeout((function(){return i.control.commandManager.updateTaskCommand.execute(t.id,n)}),0);for(var o=0;o0?this.control.commandManager.showConstraintViolationDialog.execute(new a.ConstraintViolationDialogParameters(s,n)):n(null)}else n(null)},t.prototype.onAfterValidationCallback=function(e,t,i){var n=this;if(!i||i.option!==r.ConstraintViolationOption.DoNothing||(delete e.start,delete e.end),Object.keys(e).length>0){this.history.beginTransaction(),(null==i?void 0:i.option)===r.ConstraintViolationOption.RemoveDependency&&i.validationErrors.forEach((function(e){return n.history.addAndRedo(new s.RemoveDependencyHistoryItem(n.modelManipulator,e.dependencyId))}));var a=this.control.isValidateDependenciesRequired(),d=t.internalId,u=t.start,c=t.end;this.history.addAndRedo(new l.UpdateTaskHistoryItem(this.modelManipulator,d,e)),(0,o.isDefined)(e.start)&&a&&this.control.validationController.moveStartDependTasks(d,u),(0,o.isDefined)(e.end)&&a&&this.control.validationController.moveEndDependTasks(d,c),this.processAutoParentUpdate(d,e,u,c),this.history.endTransaction(),(null==i?void 0:i.option)!==r.ConstraintViolationOption.RemoveDependency&&(null==i?void 0:i.option)!==r.ConstraintViolationOption.KeepDependency||this.control.updateBarManager(),this.control.updateViewDataRange()}},t.prototype.processAutoParentUpdate=function(e,t,i,n){var r=(0,o.isDefined)(t.start),a=(0,o.isDefined)(t.end),s=(0,o.isDefined)(t.progress)||r||a,l=r?t.start.getTime()-i.getTime():null,u=a?t.end.getTime()-n.getTime():null,c=r&&0!==d.DateUtils.getTimezoneOffsetDiff(i,t.start),h=a&&0!==d.DateUtils.getTimezoneOffsetDiff(n,t.end),p=(c||h)&&Math.abs(u-l)===d.DateUtils.msPerHour;s?0===l||l!==u&&!p?this.validationController.updateParentsIfRequired(e):this.validationController.correctParentsOnChildMoving(e,l):this.control.updateOwnerInAutoParentMode()},t}(i(24).TaskCommandBase);t.UpdateTaskCommand=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConstraintViolationDialogParameters=void 0;var n=i(0),o=function(e){function t(t,i){var n=e.call(this)||this;return n.validationErrors=t,n.callback=i,n}return n.__extends(t,e),t.prototype.clone=function(){var e=new t(this.validationErrors,this.callback);return e.option=this.option,e},Object.defineProperty(t.prototype,"hasCriticalErrors",{get:function(){var e;return null===(e=this.validationErrors)||void 0===e?void 0:e.some((function(e){return e.critical}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"errorsCount",{get:function(){var e;return null===(e=this.validationErrors)||void 0===e?void 0:e.length},enumerable:!1,configurable:!0}),t}(i(32).DialogParametersBase);t.ConstraintViolationDialogParameters=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveTaskCommand=void 0;var n=i(0),o=i(31),r=i(40),a=i(118),s=i(41),l=i(33),d=i(119),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.execute=function(t,i,n,a,s,l){var d=this;return void 0===i&&(i=!0),void 0===n&&(n=!1),void 0===a&&(a=!0),this.isApiCall=n,this.isUpdateParentTaskRequired=a,i?(this.control.commandManager.showConfirmationDialog.execute(new r.ConfirmationDialogParameters(o.ConfirmationType.TaskDelete,(function(){d.executeInternal(t,s,l)}))),!1):e.prototype.execute.call(this,t,s,l)},t.prototype.executeInternal=function(i,n,o){var r=this,u=o||[];i=i||this.control.currentSelectedTaskID;var c=this.control.viewModel.findItem(i),h=c?c.task:this.control.viewModel.tasks.getItemById(i),p=new a.TaskRemovingArguments(h);if(this.modelManipulator.dispatcher.notifyTaskRemoving(p),p.cancel)return!1;var f=this.history,g=this.control.viewModel;f.beginTransaction(),g.beginUpdate();var m=!!n,_=new d.RemoveTaskHistoryItem(this.modelManipulator,i),v=g.tasks.items.filter((function(e){return e.parentId===i})),y=v.map((function(e){return e.internalId})),C=g.dependencies.items.filter((function(e){return-1===u.indexOf(e.internalId)&&(e.predecessorId===i||e.successorId===i)&&!y.some((function(t){return e.predecessorId===t||e.successorId===t}))}));if(C.length){if(!this.control.settings.editing.allowDependencyDelete)return!1;C.forEach((function(e){_.add(new s.RemoveDependencyHistoryItem(r.modelManipulator,e.internalId)),u.push(e.internalId)}))}if(g.assignments.items.filter((function(e){return e.taskId===i})).forEach((function(e){r.modelManipulator.dispatcher.fireResourceUnassigning(e)&&_.add(new l.DeassignResourceHistoryItem(r.modelManipulator,e.internalId))})),v.reverse().forEach((function(e){return new t(r.control).execute(e.internalId,!1,!0,!1,_,u)})),m?n.add(_):f.addAndRedo(_),this.isUpdateParentTaskRequired){var b=this.control.viewModel.findItem(h.parentId);e.prototype.updateParent.call(this,b)}return f.endTransaction(),g.endUpdate(),!0},t.prototype.isEnabled=function(){var t=this.control,i=t.viewModel.findItem(t.currentSelectedTaskID);return e.prototype.isEnabled.call(this)&&(!!i&&i.selected||this.isApiCall)},t.prototype.getState=function(){var t=e.prototype.getState.call(this),i=this.control;return t.visible=t.visible&&i.settings.editing.allowTaskDelete,t},t}(i(24).TaskCommandBase);t.RemoveTaskCommand=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskRemovingArguments=void 0;var n=i(0),o=function(e){function t(t){var i=e.call(this,t.id)||this;return i.values=t,i}return n.__extends(t,e),t}(i(11).BaseArguments);t.TaskRemovingArguments=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveTaskHistoryItem=void 0;var n=i(0),o=i(2),r=i(42),a=function(e){function t(t,i){var n=e.call(this)||this;return n.modelManipulator=t,n.taskId=i,n}return n.__extends(t,e),t.prototype.redo=function(){e.prototype.redo.call(this),this.task=this.modelManipulator.task.remove(this.taskId)},t.prototype.undo=function(){var t=this;this.modelManipulator.task.create(this.task,this.taskId,(function(){window.setTimeout((function(){return e.prototype.undo.call(t)}),0)}))},t.prototype.undoItemsQuery=function(){var e;this.modelManipulator.task.create(this.task,this.taskId);for(var t=this.historyItems.length-1;e=this.historyItems[t];t--)e instanceof r.CompositionHistoryItem?e.undoItemsQuery():e.undo()},Object.defineProperty(t.prototype,"keyUpdaters",{get:function(){var e=this;return[{objectType:o.GanttDataObjectNames.task,getKey:function(){return e.taskId},updateKey:function(t){return e.taskId=t}},{objectType:o.GanttDataObjectNames.task,getKey:function(){var t;return null===(t=e.task)||void 0===t?void 0:t.parentId},updateKey:function(t){return e.task.parentId=t}}]},enumerable:!1,configurable:!0}),t}(r.CompositionHistoryItem);t.RemoveTaskHistoryItem=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAddContextItemCommand=void 0;var n=i(0),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.getState=function(){var t=e.prototype.getState.call(this);return t.visible=t.visible&&this.control.settings.editing.allowTaskInsert,t},t.prototype.execute=function(){return!1},t}(i(24).TaskCommandBase);t.TaskAddContextItemCommand=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZoomInCommand=void 0;var n=i(0),o=i(6),r=i(7),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.getState=function(){return new r.SimpleCommandState(!0)},t.prototype.execute=function(){return e.prototype.execute.call(this)},t.prototype.executeInternal=function(){return this.control.zoomIn(),!0},t}(o.CommandBase);t.ZoomInCommand=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZoomOutCommand=void 0;var n=i(0),o=i(6),r=i(7),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.getState=function(){return new r.SimpleCommandState(!0)},t.prototype.execute=function(){return e.prototype.execute.call(this)},t.prototype.executeInternal=function(){return this.control.zoomOut(),!0},t}(o.CommandBase);t.ZoomOutCommand=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FullScreenHelperSettings=void 0;var n=i(1),o=function(){function e(){}return e.parse=function(t){var i=new e;return t&&((0,n.isDefined)(t.getMainElement)&&(i.getMainElement=t.getMainElement),(0,n.isDefined)(t.adjustControl)&&(i.adjustControl=t.adjustControl)),i},e}();t.FullScreenHelperSettings=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FullScreenModeHelper=void 0;var n=i(10),o=i(125),r=i(3),a=function(){function e(e){this._isInFullScreenMode=!1,this.fullScreenTempVars={},this.settings=e}return Object.defineProperty(e.prototype,"isInFullScreenMode",{get:function(){return this._isInFullScreenMode},enumerable:!1,configurable:!0}),e.prototype.getMainElement=function(){return this.settings.getMainElement()},e.prototype.adjustControl=function(){this.settings.adjustControl()},e.prototype.toggle=function(){return this._isInFullScreenMode=!this._isInFullScreenMode,this._isInFullScreenMode?this.setFullScreenMode():this.setNormalMode(),!0},e.prototype.setFullScreenMode=function(){this.prepareFullScreenMode(),this.adjustControlInFullScreenMode()},e.prototype.prepareFullScreenMode=function(){var e=this.getMainElement();o.AttrUtils.changeElementStyleAttribute(e,"border-top-width","0px"),o.AttrUtils.changeElementStyleAttribute(e,"border-left-width","0px"),o.AttrUtils.changeElementStyleAttribute(e,"border-right-width","0px"),o.AttrUtils.changeElementStyleAttribute(e,"border-bottom-width","0px"),this.fullScreenTempVars.scrollTop=r.DomUtils.getDocumentScrollTop(),this.fullScreenTempVars.scrollLeft=r.DomUtils.getDocumentScrollLeft(),o.AttrUtils.changeElementStyleAttribute(e,"background-color","white"),o.AttrUtils.changeElementStyleAttribute(e,"position","fixed"),o.AttrUtils.changeElementStyleAttribute(e,"top","0px"),o.AttrUtils.changeElementStyleAttribute(e,"left","0px"),o.AttrUtils.changeElementStyleAttribute(e,"z-index","1010"),o.AttrUtils.changeElementStyleAttribute(document.documentElement,"position","static"),o.AttrUtils.changeElementStyleAttribute(document.documentElement,"overflow","hidden"),this.fullScreenTempVars.bodyMargin=document.body.style.margin,document.body.style.margin="0",this.fullScreenTempVars.width=e.style.width,this.fullScreenTempVars.height=e.style.height||e.clientHeight,window.self!==window.top&&this.requestFullScreen(document.body)},e.prototype.setNormalMode=function(){this.cancelFullScreen(document);var e=this.getMainElement();o.AttrUtils.restoreElementStyleAttribute(e,"left"),o.AttrUtils.restoreElementStyleAttribute(e,"top"),o.AttrUtils.restoreElementStyleAttribute(e,"background-color"),o.AttrUtils.restoreElementStyleAttribute(document.documentElement,"overflow"),o.AttrUtils.restoreElementStyleAttribute(document.documentElement,"position"),o.AttrUtils.restoreElementStyleAttribute(e,"z-index"),document.body.style.margin=this.fullScreenTempVars.bodyMargin,o.AttrUtils.restoreElementStyleAttribute(e,"position"),o.AttrUtils.restoreElementStyleAttribute(e,"border-top-width"),o.AttrUtils.restoreElementStyleAttribute(e,"border-left-width"),o.AttrUtils.restoreElementStyleAttribute(e,"border-right-width"),o.AttrUtils.restoreElementStyleAttribute(e,"border-bottom-width"),this.setHeight(this.fullScreenTempVars.height),this.setWidth(this.fullScreenTempVars.width),document.documentElement.scrollTop=this.fullScreenTempVars.scrollTop,document.documentElement.scrollLeft=this.fullScreenTempVars.scrollLeft,this.adjustControl()},e.prototype.adjustControlInFullScreenMode=function(){var e=0==document.documentElement.clientWidth?document.body.clientWidth:document.documentElement.clientWidth,t=0==document.documentElement.clientHeight?document.body.clientHeight:document.documentElement.clientHeight;this.setWidth(e),this.setHeight(t),this.adjustControl()},e.prototype.requestFullScreen=function(e){e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()},e.prototype.cancelFullScreen=function(e){n.Browser.Firefox&&!this.getFullScreenElement(e)||(e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen?e.msExitFullscreen():e.exitFullscreen&&e.exitFullscreen())},e.prototype.getFullScreenElement=function(e){return e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement},e.prototype.setWidth=function(e){this.getMainElement().style.width=this.isNumber(e)?e+"px":e},e.prototype.setHeight=function(e){this.getMainElement().style.height=this.isNumber(e)?e+"px":e},e.prototype.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},e}();t.FullScreenModeHelper=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AttrUtils=void 0;var n=i(10),o=function(){function e(){}return e.setElementAttribute=function(e,t,i){e.setAttribute&&(n.Browser.IE&&n.Browser.MajorVersion>=11&&"src"===t.toLowerCase()&&e.setAttribute(t,""),e.setAttribute(t,i))},e.setStyleAttribute=function(e,t,i){e.setProperty&&e.setProperty(t,i,"")},e.getElementAttribute=function(e,t){return e.getAttribute(t)},e.getStyleAttribute=function(e,t){if(e.getPropertyValue){if(n.Browser.Firefox)try{return e.getPropertyValue(t)}catch(i){return e[t]}return e.getPropertyValue(t)}return null},e.removeElementAttribute=function(e,t){e.removeAttribute&&e.removeAttribute(t)},e.removeStyleAttribute=function(e,t){e.removeProperty&&e.removeProperty(t)},e.changeElementStyleAttribute=function(t,i,n){e.saveStyleAttributeInElement(t,i),e.setStyleAttribute(t.style,i,n)},e.restoreElementStyleAttribute=function(t,i){var n="dxwu_saved"+i,o=t.style;if(e.isExistsAttributeInElement(t,n)){var r=e.getElementAttribute(t,n);return r===e.emptyObject||null===r?e.removeStyleAttribute(o,i):e.setStyleAttribute(o,i,r),e.removeElementAttribute(t,n),!0}return!1},e.saveStyleAttributeInElement=function(t,i){var n="dxwu_saved"+i,o=t.style;if(!e.isExistsAttributeInElement(t,n)){var r=e.getStyleAttribute(o,i);e.setElementAttribute(t,n,e.isAttributeExists(r)?r:e.emptyObject)}},e.isExistsAttributeInElement=function(t,i){var n=e.getElementAttribute(t,i);return e.isAttributeExists(n)},e.isAttributeExists=function(e){return null!==e&&""!==e},e.emptyObject="DxEmptyValue",e}();t.AttrUtils=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GanttExportCalculator=void 0;var n=i(5),o=i(3),r=i(4),a=i(25),s=i(60),l=i(61),d=i(44),u=i(17),c=i(26),h=i(36),p=i(45),f=i(130),g=i(131),m=i(27),_=i(12),v=i(134),y=i(136),C=i(63),b=i(37),x=i(35),w=function(){function e(t,i){var n,o;this._owner=t,this._props=new g.GanttPdfExportProps(i),null!==(n=(o=this._props).margins)&&void 0!==n||(o.margins=new h.Margin(e._defaultPageMargin))}return Object.defineProperty(e.prototype,"chartTableScaleTopMatrix",{get:function(){var e;return null!==(e=this._chartTableScaleTopMatrix)&&void 0!==e||(this._chartTableScaleTopMatrix=this.calculateChartScaleMatrix(0)),this._chartTableScaleTopMatrix},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"chartTableScaleBottomMatrix",{get:function(){var e;return null!==(e=this._chartTableScaleBottomMatrix)&&void 0!==e||(this._chartTableScaleBottomMatrix=this.calculateChartScaleMatrix(1)),this._chartTableScaleBottomMatrix},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"chartTableBodyMatrix",{get:function(){return this._chartTableBodyMatrix||this.calculateChartTableBodyMatrix(),this._chartTableBodyMatrix},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"treeListHeaderMatrix",{get:function(){return this._treeListHeaderMatrix||this.calculateTreeListTableHeaderMatrix(),this._treeListHeaderMatrix},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"treeListBodyMatrix",{get:function(){return this._treeListBodyMatrix||this.calculateTreeListTableBodyMatrix(),this._treeListBodyMatrix},enumerable:!1,configurable:!0}),e.prototype.getPages=function(e){return new v.PdfGanttPaginator(e,this.settings,this.createGlobalInfo()).getPages()},Object.defineProperty(e.prototype,"settings",{get:function(){return this.settingsForPaging},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layoutCalculator",{get:function(){return this._taskAreaHelper.layoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaHelper",{get:function(){var e;return null!==(e=this._taskAreaHelper)&&void 0!==e||(this._taskAreaHelper=new f.TaskAreaExportHelper(this._owner,this._props)),this._taskAreaHelper},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scalingHelper",{get:function(){var e,t;return null!==(e=this._scalingHelper)&&void 0!==e||(this._scalingHelper=new y.ScalingHelper(null===(t=this._props)||void 0===t?void 0:t.pdfDoc)),this._scalingHelper},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visibleTaskIndices",{get:function(){return this.taskAreaHelper.visibleTaskIndices},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseCellWidth",{get:function(){return this.taskAreaHelper.baseCellSize.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseCellHeight",{get:function(){return this.taskAreaHelper.baseCellHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"chartScaleTableStyle",{get:function(){var e;return null!==(e=this._chartScaleTableStyle)&&void 0!==e||(this._chartScaleTableStyle=this.getChartScaleTableStyle()),this._chartScaleTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"chartMainTableStyle",{get:function(){var e;return null!==(e=this._chartMainTableStyle)&&void 0!==e||(this._chartMainTableStyle=this.getChartMainTableStyle()),this._chartMainTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"treeListTableStyle",{get:function(){return this._treeListTableStyle||this.calculateTreeListTableStyle(),this._treeListTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageTopMargin",{get:function(){return this._props.margins.top},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageLeftMargin",{get:function(){return this._props.margins.left},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageRightMargin",{get:function(){return this._props.margins.right},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageBottomMargin",{get:function(){return this._props.margins.bottom},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headerTableTop",{get:function(){var e;return null!==(e=this._headerTableTop)&&void 0!==e||(this._headerTableTop=this.pageTopMargin),this._headerTableTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mainTableTop",{get:function(){var e;return null!==(e=this._mainTableTop)&&void 0!==e||(this._mainTableTop=this.getMainTableTop()),this._mainTableTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"exportDataMode",{get:function(){return this._props.exportDataMode},enumerable:!1,configurable:!0}),e.prototype.getMainTableTop=function(){return this.headerTableTop+this.headerTableHeight-this.taskAreaHelper.offsetTop},Object.defineProperty(e.prototype,"chartLeft",{get:function(){var e;return null!==(e=this._chartLeft)&&void 0!==e||(this._chartLeft=this.getChartLeft()),this._chartLeft},enumerable:!1,configurable:!0}),e.prototype.getChartLeft=function(){var e;return(((null===(e=this._props)||void 0===e?void 0:e.exportMode)||b.ExportMode.all)===b.ExportMode.chart?this.pageLeftMargin:this.treeListLeft+this.treeListWidth)-this.taskAreaHelper.offsetLeft},Object.defineProperty(e.prototype,"treeListLeft",{get:function(){var e;return null!==(e=this._treeListLeft)&&void 0!==e||(this._treeListLeft=this.pageLeftMargin),this._treeListLeft},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headerTableHeight",{get:function(){return 2*this.taskAreaHelper.headerRowHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mainTableHeight",{get:function(){var e;return null!==(e=this._mainTableHeight)&&void 0!==e||(this._mainTableHeight=this.taskAreaHelper.taskAreaHeight),this._mainTableHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"treeListWidth",{get:function(){var e;return null!==(e=this._treeListWidth)&&void 0!==e||(this._treeListWidth=this.getTreeListTableWidth()),this._treeListWidth},enumerable:!1,configurable:!0}),e.prototype.getTreeListTableWidth=function(){var e,t=this,i=this.treeListHeaderMatrix[0].map((function(e,i){return t.getTreeListColumnWidth(i)}));return null!==(e=null==i?void 0:i.reduce((function(e,t){return e+t}),0))&&void 0!==e?e:0},Object.defineProperty(e.prototype,"chartWidth",{get:function(){var e=this;if(!this._chartWidth){var t=this.chartTableScaleBottomMatrix[0];this._chartWidth=t.reduce((function(t,i){return t+(i.styles.cellWidth.hasValue()?i.styles.cellWidth.getValue():e.baseCellWidth)}),0)}return this._chartWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"settingsForPaging",{get:function(){return this._settingsForPaging||(this._settingsForPaging=new g.GanttPdfExportProps(this._props),this.prepareAutoFormat(this._settingsForPaging),this.scalingHelper.scalePageMargins(this._settingsForPaging)),this._settingsForPaging},enumerable:!1,configurable:!0}),e.prototype.prepareAutoFormat=function(e){if(e.format===g.GanttPdfExportProps.autoFormatKey){e.format=null;var t=e.landscape,i=this.autoFormatWidth,n=this.autoFormatHeight;(t&&n>i||!t&&n0?this.visibleTaskIndices.forEach((function(t){return e._chartTableBodyMatrix.push(e.createChartTableBodyRow(t))})):this._chartTableBodyMatrix.push(this.createChartTableBodyRow(-1))},e.prototype.createChartTableBodyRow=function(e){var t=new p.CellDef;return this.rowHasChildren(e)&&t.styles.fillColor.assign(this.taskAreaHelper.parentRowBackColor),this.chartTableScaleBottomMatrix[0].map((function(e){var i=new p.CellDef(t);return i.styles.cellWidth.assign(e.styles.cellWidth),i}))},e.prototype.rowHasSelection=function(e){return this._owner.rowHasSelection(e)},e.prototype.rowHasChildren=function(e){return this._owner.rowHasChildren(e)},e.prototype.calculateTreeListTableHeaderMatrix=function(){this._treeListHeaderMatrix=new Array;for(var e=this._owner,t=e.getTreeListColCount(),i=new Array,n=0;n0?this.fillTreeListTableBodyMatrix(this._treeListBodyMatrix):this.fillTreeListEmptyTableBodyMatrix(this._treeListBodyMatrix)},e.prototype.fillTreeListTableBodyMatrix=function(e){for(var t,i=this.visibleTaskIndices,n=this.treeListHeaderMatrix[0].length,o=0;o0,t.isMilestone||(t.isSmallTask=i.className.indexOf(a.GridLayoutCalculator.smallTaskClassName)>0,t.isParent=i.className.indexOf(a.GridLayoutCalculator.parentTaskClassName)>0,this.appendTaskTitle(t,e),this.appendTaskProgress(t,e)),t},e.prototype.appendTaskTitle=function(e,t){var i=this._owner.settings.taskTitlePosition;e.isSmallTask&&i!==r.TaskTitlePosition.Outside||i===r.TaskTitlePosition.None||(e.text=this._owner.getTaskText(t),e.textPosition=i,e.textStyle=this.getTaskTextStyle(t))},e.prototype.appendTaskProgress=function(e,t){var i=this.layoutCalculator.getTaskProgressElementInfo(t);e.progressWidth=i.size.width,e.progressColor=this.getTaskProgressColor(t),e.progressColor.applyOpacityToBackground(e.taskColor)},e.prototype.getTaskSidePoints=function(e){var t=this,i=this.layoutCalculator.getTaskSidePoints(e);return i.forEach((function(e){e.x+=t.getObjectsLeftOffset(!0),e.y+=t.dataObjectTopDelta})),i},e.prototype.getTaskColor=function(e){var t=this.taskAreaHelper.getTaskElementBackColor(e,a.GridLayoutCalculator.taskClassName);return new u.Color(t)},e.prototype.getTaskProgressColor=function(e){return new u.Color(this.taskAreaHelper.getTaskElementBackColor(e,a.GridLayoutCalculator.taskProgressClassName))},e.prototype.getTaskTextStyle=function(e){var t=new c.StyleDef;return t.cellPadding.assign(0),t.assign(this.taskAreaHelper.getTaskElementStyle(e,a.GridLayoutCalculator.taskTitleClassName)),t},e.prototype.calculateDependenciesInfo=function(){var e=this,t=new Array,i=this.taskAreaHelper,n=new u.Color(i.dependencyColor);return i.connectorLines.forEach((function(o){return t.push(e.createLineInfo(o,n,i.arrowWidth))})),t},e.prototype.createLineInfo=function(e,t,i){var n=new s.PdfDependencyLineInfo;if(n.fillColor=t,e.className.indexOf(a.GridLayoutCalculator.arrowClassName)>-1){var o=this.layoutCalculator.getArrowPositionByClassName(e.className);n.arrowInfo={position:o,width:i},n.points=[this.getArrowTopCorner(e,o,i)]}else n.points=this.getLinePoints(e);return n},e.prototype.getArrowTopCorner=function(e,t,i){var o=e.position.x+this.getObjectsLeftOffset(),a=e.position.y+this.dataObjectTopDelta;switch(t){case r.Position.Left:o+=i;break;case r.Position.Top:a+=i}return new n.Point(o,a)},e.prototype.getLinePoints=function(e){var t=e.position.x+this.getObjectsLeftOffset(),i=e.position.y+this.dataObjectTopDelta,o=t+e.size.width,r=i+e.size.height;return[new n.Point(t,i),new n.Point(o,r)]},e.prototype.calculateResourcesInfo=function(){var e=this,t=new Array;return this.taskAreaHelper.resourcesElements.forEach((function(i){return t=t.concat(e.calculateResourcesInLine(i))})),t},e.prototype.calculateResourcesInLine=function(e){var t=new Array;if(e)for(var i=o.DomUtils.pxToInt(e.style.left)+this.getObjectsLeftOffset(),n=o.DomUtils.pxToInt(e.style.top)+this.dataObjectTopDelta,r=e.getElementsByClassName(a.GridLayoutCalculator.taskResourceClassName),s=0;s=t.position.x&&e<=t.position.x+t.size.width}));else{var o=i.filter((function(t){return e>=t.position.x&&e<=t.position.x+t.size.width}))[0];o&&(n=i.indexOf(o))}return n},e.prototype.getScaleBorderPosition=function(e,t){var i=this.getScaleItems(t)[e];if(i)return i.position.x+i.size.width},e.prototype.getScaleItems=function(e){return e===this.viewType?this.bottomScaleItems:e===r.DateUtils.ViewTypeToScaleMap[this.viewType]?this.topScaleItems:null},e.prototype.getScaleItem=function(e,t){return this.getScaleItems(t)[e]},e.prototype.getScaleItemAdjustedStart=function(e,t){var i=this.getScaleItems(t)[e];if(e>0)return i.start;var n=t!==this.viewType,o=n?r.DateUtils.adjustStartDateByViewType(this.range.start,this.viewType,this.firstDayOfWeek):this.getAdjustedBottomScaleItemStart(i.start,t,this.firstDayOfWeek);if(n&&t===a.ViewType.Months){var s=this.range.start;o=new Date(s.getFullYear(),s.getMonth(),1)}if(n&&t===a.ViewType.FiveYears){var l=5*Math.trunc(o.getFullYear()/5);o=new Date(l,o.getMonth(),o.getDate())}return o},Object.defineProperty(e.prototype,"topScaleItems",{get:function(){var e;return null!==(e=this._topScaleItems)&&void 0!==e||(this._topScaleItems=this.calculateTopScale(r.DateUtils.ViewTypeToScaleMap[this.viewType])),this._topScaleItems},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottomScaleItems",{get:function(){var e;return null!==(e=this._bottomScaleItems)&&void 0!==e||(this._bottomScaleItems=this.calculateBottomScale(this.viewType)),this._bottomScaleItems},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleWidth",{get:function(){var e;return null!==(e=this._scaleWidth)&&void 0!==e||(this._scaleWidth=this.calculateScaleWidth()),this._scaleWidth},enumerable:!1,configurable:!0}),e.prototype.getFirstScaleIndexForRender=function(e){var t=this.getScaleIndexByPos(e);return Math.max(t-10,0)},e.prototype.getLastScaleIndexForRender=function(e){var t=this.getScaleIndexByPos(e);return-1===t?this.bottomScaleItems.length-1:Math.min(t+10,this.bottomScaleItems.length-1)},e.prototype.getTopScaleIndexByBottomIndex=function(e){var t=this.bottomScaleItems[e];return t?this.getScaleIndexByPos(t.position.x,r.DateUtils.ViewTypeToScaleMap[this.viewType]):-1},e.prototype.calculateBottomScale=function(e){for(var t=new Array,i=this.tickSize.width,r=this.range.start,a=0;r.getTime()=this.range.end.getTime(),c=d||u?this.getRangeTickCount(r,l)*i:i;t.push(new s(r,l,new n.Point(a,void 0),new o.Size(c,0))),r=l,a+=c}return t},e.prototype.calculateTopScale=function(e){for(var t=new Array,i=this.range.end.getTime(),r=this.range.start,a=0,l=0;r.getTime()=p&&u<=f){var g=(u-p)/(f-p)*h.size.width+h.position.x;t.push(new s(r,d,new n.Point(a,void 0),new o.Size(g-a,0))),l=c,a=g,r=d;break}}return t},e.prototype.getDateInScale=function(e){for(var t=0;t=o&&e<=o+n){var r=i.start.getTime(),a=(e-o)/n*(i.end.getTime()-r);return new Date(i.start.getTime()+a)}}return new Date(this.range.end)},e.prototype.getNextScaleDate=function(e,t){var i;switch(t){case a.ViewType.TenMinutes:i=this.getNextDateInTenMinutesScale(e);break;case a.ViewType.Hours:i=this.getNextDateInHoursScale(e);break;case a.ViewType.SixHours:i=this.getNextDateInSixHoursScale(e);break;case a.ViewType.Days:i=this.getNextDateInDaysScale(e);break;case a.ViewType.Weeks:i=this.getNextDateInWeeksScale(e,this.firstDayOfWeek);break;case a.ViewType.Months:i=this.getNextDateInMonthsScale(e);break;case a.ViewType.Quarter:i=this.getNextDateInQuartersScale(e);break;case a.ViewType.Years:i=this.getNextDateInYearsScale(e);break;case a.ViewType.FiveYears:i=this.getNextDateInFiveYearsScale(e)}return i.getTime()>this.range.end.getTime()&&(i=this.range.end),i},e.prototype.getNextTimeBySpan=function(e,t){return(Math.trunc(e/t)+1)*t},e.prototype.getNextDateInTenMinutesScale=function(e){var t=this.getNextTimeBySpan(e.getMinutes(),10);return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),t)},e.prototype.getNextDateInHoursScale=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours()+1)},e.prototype.getNextDateInSixHoursScale=function(e){var t=this.getNextTimeBySpan(e.getHours(),6);return new Date(e.getFullYear(),e.getMonth(),e.getDate(),t)},e.prototype.getNextDateInDaysScale=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+1)},e.prototype.getNextDateInWeeksScale=function(e,t){return void 0===t&&(t=0),new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay()+t+7)},e.prototype.getNextDateInMonthsScale=function(e){return new Date(e.getFullYear(),e.getMonth()+1,1)},e.prototype.getNextDateInQuartersScale=function(e){var t=this.getNextTimeBySpan(e.getMonth(),3);return new Date(e.getFullYear(),t,1)},e.prototype.getNextDateInYearsScale=function(e){return new Date(e.getFullYear()+1,0,1)},e.prototype.getNextDateInFiveYearsScale=function(e){var t=this.getNextTimeBySpan(e.getFullYear(),5);return new Date(t,0,1)},e.prototype.getAdjustedBottomScaleItemStart=function(e,t,i){switch(void 0===i&&(i=0),t){case a.ViewType.TenMinutes:return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),10*Math.floor(e.getMinutes()/10));case a.ViewType.SixHours:return new Date(e.getFullYear(),e.getMonth(),e.getDate(),6*Math.floor(e.getHours()/6));case a.ViewType.Hours:return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours());case a.ViewType.Days:return new Date(e.getFullYear(),e.getMonth(),e.getDate());case a.ViewType.Weeks:return new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay()+i);case a.ViewType.Months:return new Date(e.getFullYear(),e.getMonth(),1);case a.ViewType.Quarter:return new Date(e.getFullYear(),3*Math.floor(e.getMonth()/3),1);case a.ViewType.Years:return new Date(e.getFullYear(),0,1);default:return new Date}},e.prototype.calculateScaleWidth=function(){return this.bottomScaleItems.reduce((function(e,t){return e+t.size.width}),0)},e.prototype.getScaleItemColSpan=function(e){return e.valueOf()===this.viewType.valueOf()?1:this.viewType===a.ViewType.TenMinutes?6:this.viewType===a.ViewType.Hours?24:this.viewType===a.ViewType.SixHours?4:this.viewType===a.ViewType.Days?7:this.viewType===a.ViewType.Weeks?4.29:this.viewType===a.ViewType.Months?12:this.viewType===a.ViewType.Quarter?4:this.viewType===a.ViewType.Years?5:1},e.prototype.getRangeTickCount=function(e,t){return r.DateUtils.getRangeTickCount(e,t,this.viewType)},e}();t.ScaleCalculator=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaExportHelper=void 0;var n=i(3),o=i(19),r=i(25),a=i(15),s=i(17),l=i(37),d=function(){function e(e,t){this._owner=e,this._props=t}return Object.defineProperty(e.prototype,"customRangeLeftOffset",{get:function(){var e;return null!==(e=this._customRangeLeftOffset)&&void 0!==e||(this._customRangeLeftOffset=this.layoutCalculator.getWidthByDateRange(this.startDate,this.ownerStartDate)),this._customRangeLeftOffset},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseCellSize",{get:function(){return this._owner.tickSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"objectsLeftDelta",{get:function(){return this.renderedScaleLeft},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"objectsTopDelta",{get:function(){if(!this.hasTasks)return 0;var e=this.visibleTaskIndices[0];return this.getCellTop(e)+this.getTaskCellOffsetTop(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsetLeft",{get:function(){var e;return null!==(e=this._offsetLeft)&&void 0!==e||(this._offsetLeft=Math.max(this.visibleLeft-this.renderedScaleLeft,0)),this._offsetLeft},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsetTop",{get:function(){var e;return null!==(e=this._offsetTop)&&void 0!==e||(this._offsetTop=this.getOffsetTop()),this._offsetTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scales",{get:function(){var e=this.settings.viewType;return[a.DateUtils.ViewTypeToScaleMap[e],e]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleRanges",{get:function(){var e;return null!==(e=this._scaleRanges)&&void 0!==e||(this._scaleRanges=this.layoutCalculator.getScaleRangesInArea(this.scaleLeft,this.scaleRight)),this._scaleRanges},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleBottomStartIndex",{get:function(){return this.scaleRanges[1][0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleBottomEndIndex",{get:function(){return this.scaleRanges[1][1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleTopStartIndex",{get:function(){return this.scaleRanges[0][0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleTopEndIndex",{get:function(){return this.scaleRanges[0][1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleTopWidths",{get:function(){var e;return null!==(e=this._scaleTopWidths)&&void 0!==e||(this._scaleTopWidths=this.getScaleTopWidths()),this._scaleTopWidths},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleBottomWidths",{get:function(){var e;return null!==(e=this._scaleBottomWidths)&&void 0!==e||(this._scaleBottomWidths=this.getScaleBottomWidths()),this._scaleBottomWidths},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headerRowHeight",{get:function(){if(!this._headerRowHeight){var e=this.scaleElements[0].filter((function(e){return!!e}))[0];this._headerRowHeight=null==e?void 0:e.offsetHeight}return this._headerRowHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visibleTaskIndices",{get:function(){var e;return null!==(e=this._visibleTaskIndices)&&void 0!==e||(this._visibleTaskIndices=this.getTaskIndices()),this._visibleTaskIndices},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseCellHeight",{get:function(){return this.hasTasks?this.baseCellSize.height:this.taskAreaHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaHeight",{get:function(){return this.hasTasks?this.visibleTaskIndices.length*this.baseCellHeight:this._owner.renderHelper.taskArea.offsetHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleTableStyle",{get:function(){var e;return null!==(e=this._scaleTableStyle)&&void 0!==e||(this._scaleTableStyle=this.getScaleTableStyle()),this._scaleTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"chartMainTableStyle",{get:function(){var e;return null!==(e=this._chartMainTableStyle)&&void 0!==e||(this._chartMainTableStyle=this.getChartMainTableStyle()),this._chartMainTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentRowBackColor",{get:function(){var e;return null!==(e=this._parentRowBackColor)&&void 0!==e||(this._parentRowBackColor=this.getParentBackColor()),this._parentRowBackColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arrowWidth",{get:function(){var e;return null!==(e=this._arrowWidth)&&void 0!==e||(this._arrowWidth=this.getArrowWidth()),this._arrowWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dependencyColor",{get:function(){var e;return null!==(e=this._dependencyColor)&&void 0!==e||(this._dependencyColor=this.getDependencyColor()),this._dependencyColor},enumerable:!1,configurable:!0}),e.prototype.getTaskElementBackColor=function(e,t){var i=this.getTaskElementStyle(e,t);return null==i?void 0:i.backgroundColor},e.prototype.getTaskElementStyle=function(e,t){var i=this.getTaskWrapper(e);return this.getElementStyle(i.getElementsByClassName(t)[0])},Object.defineProperty(e.prototype,"hasTasks",{get:function(){return this.visibleTaskIndices.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visibleLeft",{get:function(){var e;return null!==(e=this._visibleLeft)&&void 0!==e||(this._visibleLeft=this.isVisibleMode?this.container.scrollLeft:0),this._visibleLeft},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visibleTop",{get:function(){var e;return null!==(e=this._visibleTop)&&void 0!==e||(this._visibleTop=this.isVisibleMode?this.container.scrollTop:0),this._visibleTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visibleRight",{get:function(){var e;return null!==(e=this._visibleRight)&&void 0!==e||(this._visibleRight=this.getVisibleRight()),this._visibleRight},enumerable:!1,configurable:!0}),e.prototype.getVisibleRight=function(){var e=this.container.getElement().offsetWidth;return this.visibleLeft+e},Object.defineProperty(e.prototype,"visibleBottom",{get:function(){var e;return null!==(e=this._visibleBottom)&&void 0!==e||(this._visibleBottom=this.getVisibleBottom()),this._visibleBottom},enumerable:!1,configurable:!0}),e.prototype.getVisibleBottom=function(){return this.isVisibleMode?this.visibleTop+this.container.getHeight():this.visibleTaskIndices.length*this.baseCellSize.height},Object.defineProperty(e.prototype,"scaleLeft",{get:function(){var e;return null!==(e=this._scaleLeft)&&void 0!==e||(this._scaleLeft=this.isVisibleMode?this.visibleLeft:this.getPosByDate(this.startDate)),this._scaleLeft},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleRight",{get:function(){var e;return null!==(e=this._scaleRight)&&void 0!==e||(this._scaleRight=this.isVisibleMode?this.visibleRight:this.getPosByDate(this.endDate)-1),this._scaleRight},enumerable:!1,configurable:!0}),e.prototype.getScaleTopWidths=function(){var e=this.getScaleWidths(this.scaleTopStartIndex,this.scaleTopEndIndex,this.scales[0]),t=this.layoutCalculator,i=t.getScaleItemInfo(this.scaleBottomStartIndex,this.scales[1]),n=t.getScaleItemInfo(this.scaleTopStartIndex,this.scales[0]),o=Math.max(i.position.x-n.position.x,0);e[this.scaleTopStartIndex]-=o;var r=t.getScaleItemInfo(this.scaleTopEndIndex,this.scales[0]),a=t.getScaleItemInfo(this.scaleBottomEndIndex,this.scales[1]);return o=Math.max(r.position.x+r.size.width-a.position.x-a.size.width,0),e[this.scaleTopEndIndex]-=o,e},e.prototype.getScaleBottomWidths=function(){return this.getScaleWidths(this.scaleBottomStartIndex,this.scaleBottomEndIndex,this.scales[1])},e.prototype.getScaleWidths=function(e,t,i){for(var n=new Array,o=e;o<=t;o++)n[o]=this.layoutCalculator.getScaleItemInfo(o,i).size.width;return n},e.prototype.getOffsetTop=function(){return this.isVisibleMode&&this.hasTasks?this.getTaskCellOffsetTop(this.visibleTaskIndices[0]):0},Object.defineProperty(e.prototype,"renderedScaleLeft",{get:function(){return this.getCellLeft(this.scaleBottomStartIndex)},enumerable:!1,configurable:!0}),e.prototype.getTaskCellOffsetTop=function(e){var t=this.getCellTop(e);return Math.max(this.visibleTop-t,0)},e.prototype.getCellTop=function(e){return this.layoutCalculator.getGridBorderPosition(e-1,!1).y},e.prototype.getCellLeft=function(e){return this.layoutCalculator.getScaleItemInfo(e,this.scales[1]).position.x},e.prototype.getTaskIndices=function(){var e,t;return this.dataMode===l.DataExportMode.all||this.exportRange?this._owner.getAllVisibleTaskIndices(null===(e=this.exportRange)||void 0===e?void 0:e.startIndex,null===(t=this.exportRange)||void 0===t?void 0:t.endIndex):this.getVisibleTaskIndices()},e.prototype.getVisibleTaskIndices=function(){var e=this,t=[];return this.taskElements.forEach((function(i,o){if(i){var r=n.DomUtils.pxToInt(i.style.top),a=r+i.offsetHeight,s=r>=e.visibleTop&&r<=e.visibleBottom,l=a>=e.visibleTop&&a<=e.visibleBottom;(s||l)&&t.push(o)}})),t},Object.defineProperty(e.prototype,"scaleElements",{get:function(){return this._owner.renderHelper.scaleElements.slice()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleBorders",{get:function(){return this._owner.renderHelper.scaleBorders.slice()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hlRowElements",{get:function(){return this._owner.renderHelper.hlRowElements.filter((function(e){return!!e}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectionElements",{get:function(){return this._owner.renderHelper.selectionElements.filter((function(e){return!!e}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskElements",{get:function(){return this._owner.renderHelper.taskElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"connectorLines",{get:function(){var e,t=this;return null!==(e=this._connectorLines)&&void 0!==e||(this._connectorLines=this._owner.renderHelper.allConnectorLines.filter((function(e){return t.isLineVisible(e)}))),this._connectorLines},enumerable:!1,configurable:!0}),e.prototype.isLineVisible=function(e){if(this.dataMode===l.DataExportMode.all)return!0;var t=e.attr["dependency-id"];return this.visibleDependencyKeys.indexOf(t)>-1},Object.defineProperty(e.prototype,"visibleDependencyKeys",{get:function(){var e;return null!==(e=this._visibleDependencyKeys)&&void 0!==e||(this._visibleDependencyKeys=this._owner.getVisibleDependencyKeysByTaskRange(this.visibleTaskIndices)),this._visibleDependencyKeys},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resourcesElements",{get:function(){var e,t=this;return null!==(e=this._resourcesElements)&&void 0!==e||(this._resourcesElements=this.visibleTaskIndices.map((function(e){return t._owner.renderHelper.resourcesElements[e]})).filter((function(e){return e&&e.parentElement}))),this._resourcesElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stripLinesElements",{get:function(){if(!this._stripLinesElements){var e=this._owner.renderHelper.stripLinesMap.filter((function(e){return!!e})).map((function(e){return e}));this._stripLinesElements=e.map((function(e){return e}))}return this._stripLinesElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"noWorkingIntervalsElements",{get:function(){if(!this._noWorkingIntervalsElements){this._noWorkingIntervalsElements=[];var e=this._owner.renderHelper.noWorkingIntervalsToElementsMap;for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&this._noWorkingIntervalsElements.push(e[t])}return this._noWorkingIntervalsElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskArea",{get:function(){return this._owner.renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"settings",{get:function(){return this._owner.settings},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataMode",{get:function(){var e;return null===(e=this._props)||void 0===e?void 0:e.exportDataMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"exportRange",{get:function(){var e;return null===(e=this._props)||void 0===e?void 0:e.dateRange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isVisibleMode",{get:function(){return this.dataMode===l.DataExportMode.visible&&!this.exportRange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownerStartDate",{get:function(){return this._owner.range.start},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownerEndDate",{get:function(){return this._owner.range.end},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startDate",{get:function(){var e,t,i,n;if((null===(e=this.exportRange)||void 0===e?void 0:e.startDate)&&(null===(t=this.exportRange)||void 0===t?void 0:t.endDate)){var o=Math.min(null===(i=this.exportRange)||void 0===i?void 0:i.startDate.getTime(),null===(n=this.exportRange)||void 0===n?void 0:n.endDate.getTime());return new Date(o)}return this.ownerStartDate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endDate",{get:function(){var e,t,i,n;if((null===(e=this.exportRange)||void 0===e?void 0:e.startDate)&&(null===(t=this.exportRange)||void 0===t?void 0:t.endDate)){var o=Math.max(null===(i=this.exportRange)||void 0===i?void 0:i.startDate.getTime(),null===(n=this.exportRange)||void 0===n?void 0:n.endDate.getTime());return new Date(o)}return this.ownerEndDate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasCustomRangeOutOfRender",{get:function(){return this.startDate.getTime()!==this.ownerStartDate.getTime()||this.endDate.getTime()!==this.ownerEndDate.getTime()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layoutCalculator",{get:function(){if(!this._layoutCalculator){var e=this._owner.renderHelper.gridLayoutCalculator;this.hasCustomRangeOutOfRender?(this._layoutCalculator=new r.GridLayoutCalculator,this._layoutCalculator.setSettings(e.visibleTaskAreaSize,e.tickSize,e.elementSizeValues,new o.DateRange(this.startDate,this.endDate),e.viewModel,e.viewType,e.scrollBarHeight,this._owner.settings.firstDayOfWeek)):this._layoutCalculator=e}return this._layoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"container",{get:function(){return this._owner.renderHelper.taskAreaContainer},enumerable:!1,configurable:!0}),e.prototype.getPosByDate=function(e){return this.layoutCalculator.getPosByDate(e)},e.prototype.getScaleTableStyle=function(){var e={},t=this.scaleElements[0].filter((function(e){return!!e}))[0],i=this.getElementStyle(t);return e.backgroundColor=this.findElementBackColor(t),e.borderColor=this.getChartTableBorderColor(),e.verticalAlign="middle",e.textAlign="center",e.fontSize=i.fontSize,e.fontFamily=i.fontFamily,e.fontWeight=i.fontWeight,e.fontStyle=i.fontStyle,e.color=i.color,e},e.prototype.getChartMainTableStyle=function(){var e={};return e.backgroundColor=this.findElementBackColor(this.taskArea),e.borderColor=this.getChartTableBorderColor(),e},e.prototype.findElementBackColor=function(e){if(!e)return null;for(var t=e,i=new s.Color("transparent");0===i.opacity&&t;){var n=this.getElementStyle(t);i.assign(n.backgroundColor),t=t.parentElement}return i},e.prototype.getChartTableBorderColor=function(){var e=this.getElementStyle(this.scaleBorders[0].filter((function(e){return!!e}))[0]);return null==e?void 0:e.borderColor},e.prototype.getParentBackColor=function(){var e=this.getElementStyle(this.hlRowElements[0]);return null==e?void 0:e.backgroundColor},e.prototype.getArrowWidth=function(){var e=this.getDependencyLineStyle(r.GridLayoutCalculator.arrowClassName),t=e.borderWidth||e.borderLeftWidth||e.borderRightWidth||e.borderTopWidth||e.borderBottomWidth;return e&&n.DomUtils.pxToInt(t)},e.prototype.getDependencyColor=function(){var e=this.getDependencyLineStyle(r.GridLayoutCalculator.CLASSNAMES.CONNECTOR_HORIZONTAL);return null==e?void 0:e.borderColor},e.prototype.getDependencyLineStyle=function(e){return this.getElementStyle(this.taskArea.getElementsByClassName(e)[0])},e.prototype.getElementStyle=function(e){return e&&getComputedStyle(e)},e.prototype.getTaskWrapper=function(e){return this.isTaskTemplateMode?this._owner.renderHelper.fakeTaskWrapper:(this.taskElements[e]||this._owner.renderHelper.createDefaultTaskElement(e),this.taskElements[e])},Object.defineProperty(e.prototype,"isTaskTemplateMode",{get:function(){return!!this._owner.settings.taskContentTemplate},enumerable:!1,configurable:!0}),e}();t.TaskAreaExportHelper=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GanttPdfExportProps=void 0;var n=i(12),o=i(1),r=i(36),a=i(132),s=i(133),l=i(37),d=function(){function e(e){this.landscape=!1,this.margins=null,this.exportMode=l.ExportMode.all,this.exportDataMode=l.DataExportMode.visible,e&&this.assign(e)}return e.prototype.assign=function(e){if(e){if((0,o.isDefined)(e.pdfDocument)&&(this.pdfDoc=e.pdfDocument),(0,o.isDefined)(e.pdfDoc)&&(this.pdfDoc=e.pdfDoc),this.docCreateMethod=e.docCreateMethod,(0,o.isDefined)(e.fileName)&&(this.fileName=e.fileName),this.landscape=!!e.landscape,(0,o.isDefined)(e.margins)&&(this.margins=new r.Margin(e.margins)),(0,o.isDefined)(e.format)){var t=e.format;if("string"==typeof t)this.format=t;else{var i=parseInt(t.width),d=parseInt(t.height);this.pageSize=new n.Size(i,d)}}else if((0,o.isDefined)(e.pageSize)){var u=e.pageSize;this.pageSize=u instanceof n.Size?u.clone():new n.Size(u.width,u.height)}if((0,o.isDefined)(e.exportMode)&&(this.exportMode=this.getEnumValue(l.ExportMode,e.exportMode)),(0,o.isDefined)(e.dateRange)){var c=e.dateRange;"number"==typeof c||"string"==typeof c?this.exportDataMode=this.getEnumValue(l.DataExportMode,c):this.dateRange=new a.PdfDataRange(c)}(0,o.isDefined)(e.font)&&(this.font=new s.PdfCustomFontSettings(e.font))}},e.prototype.getEnumValue=function(e,t){if(!(0,o.isDefined)(e[t]))return null;var i=parseInt(t);return isNaN(i)?e[t]:i},e.autoFormatKey="auto",e}();t.GanttPdfExportProps=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PdfDataRange=void 0;var n=i(1),o=function(){function e(e,t,i,n){var o=!e||e instanceof Date?{startDate:e,endDate:t,startIndex:i,endIndex:n}:e;o&&this.assign(o)}return e.prototype.assign=function(e){(0,n.isDefined)(e.startDate)&&(this.startDate=e.startDate instanceof Date?e.startDate:new Date(e.startDate)),(0,n.isDefined)(e.endDate)&&(this.endDate=e.endDate instanceof Date?e.endDate:new Date(e.endDate)),(0,n.isDefined)(e.startIndex)&&(this.startIndex=parseInt(e.startIndex)),(0,n.isDefined)(e.endIndex)&&(this.endIndex=parseInt(e.endIndex))},e}();t.PdfDataRange=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PdfCustomFontSettings=void 0;var n=i(1),o=function(){function e(e){this.style="normal",e&&this.assign(e)}return e.prototype.assign=function(e){(0,n.isDefined)(e.fontObject)&&(this.fontObject=e.fontObject),(0,n.isDefined)(e.name)&&(this.name=e.name),(0,n.isDefined)(e.style)&&(this.style=e.style),(0,n.isDefined)(e.weight)&&(this.weight=e.weight)},e.prototype.applyToDoc=function(e){try{if(e&&this.fontObject&&this.name){var t=this.name+"-"+this.style+".ttf";e.addFileToVFS(t,this.fontObject),e.addFont(t,this.name,this.style,this.weight),e.setFont(this.name)}}catch(e){}},e}();t.PdfCustomFontSettings=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PdfGanttPaginator=void 0;var n=i(5),o=i(12),r=i(60),a=i(44),s=i(61),l=i(63),d=i(27),u=i(45),c=i(135),h=function(e,t,i,n,o){this.pageVerIndex=t,this.pageHorIndex=e,this.cellRowIndexOnPage=i,this.cellColIndexOnPage=n,this.cell=o},p=function(){function e(e,t,i,n){this.pageIndex=e,this.globalCellIndex=t,this.pageOffset=i,this.cutSize=n}return Object.defineProperty(e.prototype,"isCutted",{get:function(){return this.cutSize>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cellIndexOnPage",{get:function(){return this.globalCellIndex-this.pageOffset},enumerable:!1,configurable:!0}),e}(),f=function(){function e(e,t,i){this._pdfDoc=e,this._props=t,this._globalInfo=i}return e.prototype.getPages=function(){return delete this._pages,this._paginateTables(),this._paginateObjects(),this.pageMatrixToArray},e.prototype._paginateTables=function(){this._paginateTable(d.PdfPageTableNames.treeListHeader),this._paginateTable(d.PdfPageTableNames.treeListMain),this._paginateTable(d.PdfPageTableNames.chartScaleBottom),this._paginateTable(d.PdfPageTableNames.chartScaleTop),this._paginateTable(d.PdfPageTableNames.chartMain)},e.prototype._paginateObjects=function(){this._paginateTasks(),this._paginateDependencies(),this._paginateResources(),this._paginateTimeMarkers()},Object.defineProperty(e.prototype,"pageMatrixToArray",{get:function(){var e,t=new Array;return null===(e=this._pages)||void 0===e||e.forEach((function(e){t=t.concat(e)})),t},enumerable:!1,configurable:!0}),e.prototype._paginateTasks=function(){var e,t,i=this;null===(t=null===(e=this._globalInfo.objects)||void 0===e?void 0:e.tasks)||void 0===t||t.forEach((function(e){return i._paginateTask(e)}))},e.prototype._paginateDependencies=function(){var e,t,i=this;null===(t=null===(e=this._globalInfo.objects)||void 0===e?void 0:e.dependencies)||void 0===t||t.forEach((function(e){e.arrowInfo?i._paginateArrow(e):i._paginateDependencyLine(e)}))},e.prototype._paginateResources=function(){var e,t,i=this;null===(t=null===(e=this._globalInfo.objects)||void 0===e?void 0:e.resources)||void 0===t||t.forEach((function(e){return i._paginateResource(e)}))},e.prototype._paginateTimeMarkers=function(){var e,t,i=this;null===(t=null===(e=this._globalInfo.objects)||void 0===e?void 0:e.timeMarkers)||void 0===t||t.forEach((function(e){return i._paginateTimeMarker(e)}))},e.prototype._paginateTable=function(e){var t,i=null===(t=this._globalInfo)||void 0===t?void 0:t.tables[e];if(i){for(var n=this._getTableStart(i),o=this._preparePagesNavigationMatrixForTable(n,i),r=o.length,a=0;aNumber.EPSILON},enumerable:!1,configurable:!0}),e.prototype.getScaledSize=function(t){return t*e._defaultScaleFactor/this._docScaleFactor},e.prototype.scalePageMargins=function(e){var t,i,n,o;this._correctScaleNeeded&&((null===(t=null==e?void 0:e.margins)||void 0===t?void 0:t.left)&&(e.margins.left=this.getScaledSize(e.margins.left)),(null===(i=null==e?void 0:e.margins)||void 0===i?void 0:i.right)&&(e.margins.right=this.getScaledSize(e.margins.right)),(null===(n=null==e?void 0:e.margins)||void 0===n?void 0:n.top)&&(e.margins.top=this.getScaledSize(e.margins.top)),(null===(o=null==e?void 0:e.margins)||void 0===o?void 0:o.bottom)&&(e.margins.bottom=this.getScaledSize(e.margins.bottom)))},e.prototype.scaleSizes=function(e){this._correctScaleNeeded&&(this.scaleTables(e),this.scaleObjects(e.objects))},e.prototype.scaleTables=function(e){(null==e?void 0:e.tables)&&(this.scaleTable(e.tables[n.PdfPageTableNames.treeListHeader]),this.scaleTable(e.tables[n.PdfPageTableNames.treeListMain]),this.scaleTable(e.tables[n.PdfPageTableNames.chartMain]),this.scaleTable(e.tables[n.PdfPageTableNames.chartScaleTop]),this.scaleTable(e.tables[n.PdfPageTableNames.chartScaleBottom]))},e.prototype.scaleTable=function(e){var t,i,n,o,r,a;if(e&&((null===(t=e.size)||void 0===t?void 0:t.width)&&(e.size.width=this.getScaledSize(e.size.width)),(null===(i=e.size)||void 0===i?void 0:i.height)&&(e.size.height=this.getScaledSize(e.size.height)),(null===(n=e.position)||void 0===n?void 0:n.x)&&(e.position.x=this.getScaledSize(e.position.x)),(null===(o=e.position)||void 0===o?void 0:o.y)&&(e.position.y=this.getScaledSize(e.position.y)),(null===(r=e.baseCellSize)||void 0===r?void 0:r.width)&&(e.baseCellSize.width=this.getScaledSize(e.baseCellSize.width)),(null===(a=e.baseCellSize)||void 0===a?void 0:a.height)&&(e.baseCellSize.height=this.getScaledSize(e.baseCellSize.height)),e.cells))for(var s=0;s=0)){var t=this.transaction.historyItems.length;t>1?this.addInternal(this.transaction):1==t&&this.addInternal(this.transaction.historyItems.pop()),this.transaction=null,null===(e=this._listener)||void 0===e||e.onTransactionEnd()}},e.prototype.addAndRedo=function(e){this.add(e),this.activateItem(e)},e.prototype.add=function(e){this.transactionLevel>=0?this.transaction.add(e):this.addInternal(e)},e.prototype.canUndo=function(){return this.currentIndex>=0},e.prototype.canRedo=function(){return this.currentIndex0&&this.currentIndex>t&&(this.historyItems.splice(0,t),this.currentIndex-=t)},e.prototype.clear=function(){this.currentIndex=-1,this.historyItems=[]},e.prototype.activateItem=function(e,t){void 0===t&&(t=!1),this.currentProcessingItemInfo=new n.HistoryItemInfo(e,t),t?e.undo():e.redo(),this.currentProcessingItemInfo=null},e.prototype.getCurrentProcessingItemInfo=function(){return this.currentProcessingItemInfo},e.prototype.rollBackAndRemove=function(e){var t=e.item;this.checkAndRemoveItem(t)&&(e.isUndo?t.redo():t instanceof o.CompositionHistoryItem?t.undoItemsQuery():t.undo())},e.prototype.checkAndRemoveItem=function(e){var t=this.historyItems.indexOf(e);return t>-1?(this.historyItems.splice(t,1),this.currentIndex--):this.transaction&&(t=this.transaction.historyItems.indexOf(e))>-1&&this.transaction.historyItems.splice(t,1),t>-1},e.prototype.updateObsoleteInsertedKey=function(e,t,i){this.transaction&&this.updateItemsObsoleteInsertedKey(e,t,i,[this.transaction]),this.updateItemsObsoleteInsertedKey(e,t,i,this.historyItems)},e.prototype.updateItemsObsoleteInsertedKey=function(e,t,i,n){if(n)for(var r=0;r0&&i.addPage(this.getDocumentFormat(),this.getOrientation());var d=a[l];r.drawPage(d)}return(null===(e=this.props)||void 0===e?void 0:e.fileName)&&i.save(null===(t=this.props)||void 0===t?void 0:t.fileName),i},Object.defineProperty(e.prototype,"pdfDoc",{get:function(){var e,t;return null!==(e=this._pdfDoc)&&void 0!==e||(this._pdfDoc=null!==(t=this._info.settings.pdfDoc)&&void 0!==t?t:this.createDoc()),this._pdfDoc},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"props",{get:function(){return this._info.settings},enumerable:!1,configurable:!0}),e.prototype.createDoc=function(){var e=this.getJsPDFProps();return this._info.settings.docCreateMethod(e)},e.prototype.getJsPDFProps=function(){var e={putOnlyUsedFonts:!0,unit:"px",hotfixes:["px_scaling"]};return e.orientation=this.getOrientation(),e.format=this.getDocumentFormat(),e},e.prototype.getOrientation=function(){var e;return(null===(e=this.props)||void 0===e?void 0:e.landscape)?"l":"p"},e.prototype.getDocumentFormat=function(){var e,t,i,n;return(null===(e=this.props)||void 0===e?void 0:e.format)||(null===(t=this.props)||void 0===t?void 0:t.pageSize)?(null===(i=this.props)||void 0===i?void 0:i.pageSize)?[this.props.pageSize.height,this.props.pageSize.width]:null===(n=this.props)||void 0===n?void 0:n.format:"a4"},e.prototype.applyCustomFont=function(){this.props.font&&this.props.font.applyToDoc(this.pdfDoc)},e}();t.PdfGanttExporter=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PdfGanttPageDrawer=void 0;var n=i(5),o=i(154),r=i(27),a=i(37),s=i(155),l=function(){function e(e,t){this._pdfDoc=e,this._props=t}return e.prototype.drawPage=function(e){var t=this._pdfDoc,i=new s.PdfGanttTableDrawer(t);return this.needDrawChart()&&(i.drawTable(e.tables[r.PdfPageTableNames.chartMain]),new o.PdfObjectDrawer(t,e.objects).draw(),i.drawTable(e.tables[r.PdfPageTableNames.chartScaleTop]),i.drawTable(e.tables[r.PdfPageTableNames.chartScaleBottom])),this.needDrawTreeList()&&(i.drawTable(e.tables[r.PdfPageTableNames.treeListMain]),i.drawTable(e.tables[r.PdfPageTableNames.treeListHeader])),this.drawMargins(e),t},e.prototype.needDrawChart=function(){return!this._props||this._props.exportMode===a.ExportMode.all||this._props.exportMode===a.ExportMode.chart},e.prototype.needDrawTreeList=function(){return!this._props||this._props.exportMode===a.ExportMode.all||this._props.exportMode===a.ExportMode.treeList},e.prototype.getContentRightBottom=function(e){var t=new n.Point(0,0);for(var i in e.tables)if(Object.prototype.hasOwnProperty.call(e.tables,i)){var o=e.tables[i];t.x=Math.max(t.x,o.position.x+o.size.width),t.y=Math.max(t.y,o.position.y+o.size.height)}return t},e.prototype.drawMargins=function(e){var t=this._pdfDoc,i=this._props,n=t.getPageWidth(),o=t.getPageHeight(),r=this.getContentRightBottom(e);t.setFillColor(255,255,255),t.rect(0,0,i.margins.left,o,"F"),t.rect(0,0,n,i.margins.top,"F"),t.rect(r.x,0,n,o,"F"),t.rect(0,r.y,n,o,"F")},e}();t.PdfGanttPageDrawer=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PdfObjectDrawer=void 0;var n=i(4),o=i(64),r=i(44),a=function(){function e(e,t){this._FONT_ROW_RATIO=1.15,this._info=t,this._pdfDoc=e}return e.prototype.draw=function(){this.drawTimeMarkers(),this.drawDependencies(),this.drawTasks(),this.drawResources()},e.prototype.drawTasks=function(){var e,t=this,i=null===(e=this._info)||void 0===e?void 0:e.tasks;i&&i.forEach((function(e){return t.drawTask(e)}))},e.prototype.drawTask=function(e){var t=this._pdfDoc;t.setFillColor.apply(t,e.taskColor.getRBGColor()),t.setDrawColor.apply(t,e.taskColor.getRBGColor()),e.isMilestone?this.drawMilestone(e):this.drawRegularTask(e)},e.prototype.drawMilestone=function(e){var t=this._pdfDoc,i=e.sidePoints[0].x,n=e.sidePoints[0].y,o=e.sidePoints[1].x,r=e.sidePoints[1].y,a=e.sidePoints[2].x,s=e.sidePoints[2].y,l=e.sidePoints[3].x,d=e.sidePoints[3].y;t.triangle(i,n,o,r,a,s,"FD"),t.triangle(i,n,l,d,a,s,"FD")},e.prototype.drawRegularTask=function(e){var t=this._pdfDoc;t.rect(e.left,e.top,e.width,e.height,"FD"),e.isParent&&this.drawParentBorder(e),e.progressWidth&&(t.setFillColor.apply(t,e.progressColor.getRBGColor()),t.rect(e.left,e.top,e.progressWidth,e.height,"F")),e.text&&this.printTaskTitle(e)},e.prototype.drawParentBorder=function(e){var t=this._pdfDoc,i=e.sidePoints[0].x,n=e.sidePoints[1].y,o=e.sidePoints[3].y,r=e.sidePoints[2].x,a=e.sidePoints[3].y-e.sidePoints[1].y,s=e.progressWidth>a?e.progressColor.getRBGColor():e.taskColor.getRBGColor();t.setFillColor.apply(t,s),t.triangle(i,n,i,o,i+a,n,"FD"),t.setFillColor.apply(t,e.taskColor.getRBGColor()),t.triangle(r,n,r,o,r-a,n,"FD")},e.prototype.printTaskTitle=function(e){var t,i=this._pdfDoc,a=e.textStyle,s=a&&a.textColor.getRBGColor(),l=a&&a.fontSize;i.setTextColor.apply(i,s),i.setFontSize(l);var d=e.top+l*this._FONT_ROW_RATIO/i.internal.scaleFactor;e.isParent&&(d-=r.PdfTaskInfo.defaultParentHeightCorrection);var u=a&&a.cellPadding.left||0,c=a&&a.cellPadding.right||0;if(e.textPosition===n.TaskTitlePosition.Inside){var h=e.width-u-c;t=e.left+u,i.text(o.EllipsisHelper.limitPdfTextWithEllipsis(e.text,i,h),t,d)}else t=e.left-c,i.text(e.text,t,d,{align:"right"})},e.prototype.drawDependencies=function(){var e,t=this,i=null===(e=this._info)||void 0===e?void 0:e.dependencies;i&&i.forEach((function(e){return t.drawDependencyLine(e)}))},e.prototype.drawDependencyLine=function(e){var t,i;if((t=this._pdfDoc).setFillColor.apply(t,e.fillColor.getRBGColor()),(i=this._pdfDoc).setDrawColor.apply(i,e.fillColor.getRBGColor()),e.arrowInfo)this.drawArrow(e);else{var n=e.points;this._pdfDoc.line(n[0].x,n[0].y,n[1].x,n[1].y)}},e.prototype.isValidLine=function(e){var t=e.points;return!(isNaN(t[0].x)||isNaN(t[0].y)||isNaN(t[1].x)||isNaN(t[1].y))},e.prototype.drawArrow=function(e){var t=e.arrowInfo.width||0,i=e.points[0].x,o=e.points[0].y;switch(e.arrowInfo.position){case n.Position.Left:this._pdfDoc.triangle(i,o+t,i+t,o,i+t,o+2*t,"FD");break;case n.Position.Right:this._pdfDoc.triangle(i,o,i,o+2*t,i+t,o+t,"FD");break;case n.Position.Top:this._pdfDoc.triangle(i,o+t,i+t,o,i+2*t,o+t,"FD");break;case n.Position.Bottom:this._pdfDoc.triangle(i,o,i+t,o+t,i+2*t,o,"FD")}},e.prototype.drawResources=function(){var e,t=this,i=this._pdfDoc,n=null===(e=this._info)||void 0===e?void 0:e.resources;n&&n.forEach((function(e){var n,o,r;i.setFontSize(null!==(n=e.style.fontSize)&&void 0!==n?n:11);var a=e.y+e.style.fontSize*t._FONT_ROW_RATIO/i.internal.scaleFactor,s=null!==(o=e.style.cellPadding.left)&&void 0!==o?o:0,l=null!==(r=e.style.cellPadding.right)&&void 0!==r?r:1,d=Math.max(e.style.cellWidth.getValue(),s+i.getTextWidth(e.text)+l);i.setFillColor.apply(i,e.style.fillColor.getRBGColor()),i.rect(e.x,e.y,d,e.style.minCellHeight,"F"),i.setTextColor.apply(i,e.style.textColor.getRBGColor()),i.text(e.text,e.x+s,a)}))},e.prototype.drawTimeMarkers=function(){var e,t=this,i=null===(e=this._info)||void 0===e?void 0:e.timeMarkers;null==i||i.forEach((function(e){return t.drawTimeMarker(e)}))},e.prototype.drawTimeMarker=function(e){var t,i,n=this._pdfDoc,o=e.size.width>1,r=e.start.x,a=e.start.y,s=e.size.width,l=e.size.height,d=e.isStripLine;o&&(n.setFillColor.apply(n,e.color.getRBGColor()),n.saveGraphicsState(),n.setGState(new n.GState({opacity:null!==(i=e.color.opacity)&&void 0!==i?i:1})),n.rect(r,a,s,l,"F"),n.restoreGraphicsState()),d&&(this._pdfDoc.setLineDashPattern([3]),(t=this._pdfDoc).setDrawColor.apply(t,e.lineColor.getRBGColor()),o&&this._pdfDoc.line(r+s,a,r+s,a+l,"S"),this._pdfDoc.line(r,a,r,a+l,"S"),this._pdfDoc.setLineDashPattern())},e}();t.PdfObjectDrawer=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PdfGanttTableDrawer=void 0;var n=i(1),o=i(27),r=i(64),a=i(156),s=function(){function e(e){this._pdfDoc=e}return e.prototype.drawTable=function(e){var t,i;if(e){var n=this.createTableOptions(e);(null===(t=e.style)||void 0===t?void 0:t.fontSize)&&this._pdfDoc.setFontSize(null===(i=e.style)||void 0===i?void 0:i.fontSize),this._pdfDoc.autoTable(n.getValue())}},e.prototype.createTableOptions=function(e){var t=this.createDefaultTableOptions();return this.addTableCommonSettings(e,t),this.addCommonTableStyles(e,t),this.prepareBodyCells(e),t.addBody(e.cells),e.hideRowLines&&this.hideRowLines(t),t},e.prototype.createDefaultTableOptions=function(){var e=new a.TableOptions;return e.pageBreak="auto",e.margin.assign(0),e.tableWidth.assign("auto"),e.styles.cellPadding.assign(0),e.styles.halign="center",e.styles.valign="middle",e.styles.lineWidth=1,e.styles.overflow="hidden",e},e.prototype.addTableCommonSettings=function(e,t){t.startY=e.position.y,t.margin.assign({left:e.position.x}),t.tableWidth.assign(e.size.width)},e.prototype.addCommonTableStyles=function(e,t){var i=t.styles;i.assign(e.style),0===i.fillColor.opacity&&i.fillColor.assign("#FFFFFF"),i.minCellHeight=e.baseCellSize.height,t.alternateRowStyles.minCellHeight=t.styles.minCellHeight,t.alternateRowStyles.fillColor.assign(t.styles.fillColor),(0,n.isDefined)(e.baseCellSize.width)&&i.cellWidth.assign(e.baseCellSize.width)},e.prototype.prepareBodyCells=function(t){var i,n,a;if(t.name===o.PdfPageTableNames.treeListMain||t.name===o.PdfPageTableNames.chartScaleTop||t.name===o.PdfPageTableNames.chartScaleBottom)for(var s=t.cells,l=0;l-1,r=n.RenderElementUtils.create(e,null,this.taskArea,this.connectorLinesToElementsMap);return i&&this.gridLayoutCalculator.checkAndCorrectArrowElementDisplayByRange(r),r}}},e.prototype.removeConnectorLineElement=function(e){n.RenderElementUtils.remove(e,null,this.taskArea,this.connectorLinesToElementsMap)},e.prototype.recreateConnectorLineElement=function(e,t){var i=this;void 0===t&&(t=!1);var n=[];this._renderedConnectorLines=this.renderedConnectorLines.filter((function(t){return t.attr["dependency-id"]!=e||(n.push(t),!1)}));var o=n.length>0;n.forEach((function(e){i.removeConnectorLineElement(e)})),n=this.gridLayoutCalculator.updateTileToConnectorLinesMap(e),(o||t)&&n.forEach((function(e){i.createConnectorLineElement(e),i.renderedConnectorLines.push(e)}))},e.prototype.recreateConnectorLineElements=function(){var e=this,t=this.gridLayoutCalculator.getRenderedConnectorLines(this.taskAreaContainerScrollTop);n.RenderElementUtils.recreate(this.renderedConnectorLines,t,(function(t){e.removeConnectorLineElement(t)}),(function(t){e.createConnectorLineElement(t)})),this._renderedConnectorLines=t},e.prototype.updateRenderedConnectorLinesId=function(e,t){for(var i in this._renderedConnectorLines.forEach((function(i){i.attr["dependency-id"]===e&&(i.attr["dependency-id"]=t)})),this.connectorLinesToElementsMap)if(Object.prototype.hasOwnProperty.call(this.connectorLinesToElementsMap,i)){var n=this.connectorLinesToElementsMap[i];n.getAttribute("dependency-id")===e&&n.setAttribute("dependency-id",t)}this.gridLayoutCalculator.updateTileToConnectorLinesMap(e),this.gridLayoutCalculator.updateTileToConnectorLinesMap(t)},e}();t.ConnectorLinesRender=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EtalonsHelper=void 0;var n=i(3),o=i(4),r=i(58),a=i(16),s=function(){function e(e){this._renderHelper=e}return Object.defineProperty(e.prototype,"mainElement",{get:function(){return this._renderHelper.mainElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"etalonSizeValues",{get:function(){return this._renderHelper.etalonSizeValues},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleCount",{get:function(){return this._renderHelper.scaleCount},enumerable:!1,configurable:!0}),e.prototype.getScaleItemTextTemplate=function(e){return this._renderHelper.getScaleItemTextTemplate(e)},e.prototype.getHeaderHeight=function(){return this._renderHelper.getHeaderHeight()},e.prototype.getSmallTaskWidth=function(e){return this._renderHelper.getSmallTaskWidth(e)},e.prototype.createEtalonElementsContainer=function(){var e=document.createElement("DIV");return e.style.visibility="hidden",e.style.position="absolute",e.style.left="-1000px",this.mainElement.appendChild(e),e},e.prototype.createEtalonElements=function(e){var t=[],i=a.RenderElementUtils.create(new r.GridElementInfo("dx-gantt-taskWrapper"),null,e),n=a.RenderElementUtils.create(new r.GridElementInfo("dx-gantt-task"),null,i);a.RenderElementUtils.create(new r.GridElementInfo("dx-gantt-taskTitle dx-gantt-titleIn"),null,n).innerText="WWW",t.push(i);var o=a.RenderElementUtils.create(new r.GridElementInfo("dx-gantt-taskWrapper"),null,e);a.RenderElementUtils.create(new r.GridElementInfo("dx-gantt-task dx-gantt-milestone"),null,o),t.push(o);for(var s=["dx-gantt-conn-h","dx-gantt-arrow","dx-gantt-si","dx-gantt-taskTitle dx-gantt-titleOut"],l=0;l5*a){var l=this.getScaleItemText(e,i);s.innerText=l,i===o.ViewType.Quarter&&(s.style.padding="0");var d=getComputedStyle(s);r.size.width-n.DomUtils.pxToInt(d.paddingLeft)-n.DomUtils.pxToInt(d.paddingRight)-1||e.indexOf("gesture")>-1)},e.isTouchEvent=function(e){return n.Browser.WebKitTouchUI&&o.isDefined(e.changedTouches)},e.getEventX=function(e){return n.Browser.IE?e.pageX:e.changedTouches[0].pageX},e.getEventY=function(e){return n.Browser.IE?e.pageY:e.changedTouches[0].pageY},e.touchMouseDownEventName=n.Browser.WebKitTouchUI?"touchstart":n.Browser.Edge&&n.Browser.MSTouchUI&&window.PointerEvent?"pointerdown":"mousedown",e.touchMouseUpEventName=n.Browser.WebKitTouchUI?"touchend":n.Browser.Edge&&n.Browser.MSTouchUI&&window.PointerEvent?"pointerup":"mouseup",e.touchMouseMoveEventName=n.Browser.WebKitTouchUI?"touchmove":n.Browser.Edge&&n.Browser.MSTouchUI&&window.PointerEvent?"pointermove":"mousemove",e.msTouchDraggableClassName="dxMSTouchDraggable",e.documentTouchHandlers={},e.documentEventAttachingAllowed=!0,e}();t.TouchUtils=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaStateController=void 0;var n=i(5),o=i(3),r=i(9),a=i(46),s=i(4),l=i(170),d=i(173),u=i(29),c=i(174),h=i(13),p=i(175),f=i(177),g=i(178),m=function(){function e(e,t,i){var o=this;this.position=new n.Point(-1,-1),this._pointers={},this._listener=e,this._listener.setHandler(h.TaskAreaStateEventNames.STATE_EXIT,(function(){o.switchToDefaultState()})),this._listener.setHandler(h.TaskAreaStateEventNames.GET_POINTERS_INFO,(function(e){return o.getPointersInfo(e.triggerEvent)})),this._taskArea=t,this._cellSize=i,this.switchToDefaultState()}return e.prototype.onKeyDown=function(e){this._state.onKeyDown(e)},e.prototype.onScroll=function(e){this._state.onScroll(e)},e.prototype.onContextMenu=function(e){this._state.onContextMenu(e)},e.prototype.onMouseWheel=function(e){e.ctrlKey&&(e.preventDefault(),e.stopPropagation(),this.switchState(p.TaskAreaZoomState)),this._state.onMouseWheel(e)},Object.defineProperty(e.prototype,"currentState",{get:function(){return this._state},enumerable:!1,configurable:!0}),e.prototype.onTaskPointerEnter=function(e){this._state.onTaskPointerEnter(e)},e.prototype.onTaskAreaPointerLeave=function(e){this._state.onTaskAreaLeave(e)},e.prototype.onDocumentPointerCancel=function(e){this._clearPointerInfo(e)},e.prototype.onDocumentPointerDown=function(e){this._updatePinterInfo(e),this.toggleStateOnPointerDown(e),this._state.onDocumentPointerDown(e)},e.prototype.onDocumentPointerMove=function(e){this._updatePinterInfo(e),this.toggleStateOnPointerMove(e),this._state.onDocumentPointerMove(e)},e.prototype.onDocumentPointerUp=function(e){this._clearPointerInfo(e),this._state.onDocumentPointerUp(e)},e.prototype.onTaskTouchStart=function(e){this._state.onTaskTouchStart(e)},e.prototype.onTouchStart=function(e){this.toggleStateOnPointerDown(e),this._state.onTouchStart(e)},e.prototype.onTouchEnd=function(e){this._state.onTouchEnd(e)},e.prototype.onTouchMove=function(e){this.toggleStateOnPointerMove(e),this._state.onTouchMove(e)},e.prototype.onClick=function(e){this._state.onClick(e)},e.prototype.onDblClick=function(e){this._state.onDblClick(e)},e.prototype.onTaskAreaMouseLeave=function(e){this._state.onTaskAreaLeave(e)},e.prototype.onTaskElementHover=function(e){this._state.onTaskHover(e)},e.prototype.onTaskElementLeave=function(e){this._state.onTaskLeave(e)},e.prototype.onMouseUp=function(e){this._state.onMouseUp(e)},e.prototype.onMouseMove=function(e){this._state.onMouseMove(e)},e.prototype.onMouseDown=function(e){switch(this.getTaskAreaEventSource(e)){case s.TaskAreaEventSource.TaskArea:this.processMouseDownOnTaskArea(e);break;case s.TaskAreaEventSource.TaskEdit_Frame:this.switchState(g.TaskMoveState);break;case s.TaskAreaEventSource.TaskEdit_Progress:case s.TaskAreaEventSource.TaskEdit_Start:case s.TaskAreaEventSource.TaskEdit_End:this.switchState(f.TaskEditState);break;case s.TaskAreaEventSource.TaskEdit_DependencyStart:case s.TaskAreaEventSource.TaskEdit_DependencyFinish:this.switchState(d.TaskAreaDependencyState)}this._state.onMouseDown(e)},Object.defineProperty(e.prototype,"taskArea",{get:function(){return this._taskArea},enumerable:!1,configurable:!0}),e.prototype.switchToDefaultState=function(){this._state=new l.TaskAreaDefaultState(this._listener,this.taskArea,this._cellSize)},e.prototype.switchState=function(e){this._state instanceof e||(this._state&&this._state.finish(),this._state=new e(this._listener,this.taskArea,this._cellSize),this._state.start())},e.prototype.processMouseDownOnTaskArea=function(e){r.EvtUtils.isLeftButtonPressed(e)&&!u.TaskAreaDomHelper.isConnectorLine(e)&&this.switchState(c.TaskAreaScrollState)},e.prototype.toggleStateOnPointerDown=function(e){var t=this.toggleStateWhenMultiOrOutsideTouch(e);if(this.position=new n.Point(r.EvtUtils.getEventX(e),r.EvtUtils.getEventY(e)),!t&&this._canStartDrag(e))switch(this.getTaskAreaEventSource(e)){case s.TaskAreaEventSource.TaskEdit_DependencyStart:case s.TaskAreaEventSource.TaskEdit_DependencyFinish:this.switchState(d.TaskAreaDependencyState);break;case s.TaskAreaEventSource.TaskEdit_Progress:case s.TaskAreaEventSource.TaskEdit_Start:case s.TaskAreaEventSource.TaskEdit_End:this.switchState(f.TaskEditState)}},e.prototype.toggleStateOnPointerMove=function(e){var t=this.toggleStateWhenMultiOrOutsideTouch(e),i=Math.abs(this.position.x-r.EvtUtils.getEventX(e))>1||Math.abs(this.position.y-r.EvtUtils.getEventY(e))>1;if(!t&&i&&this._canStartDrag(e)&&this._state instanceof l.TaskAreaDefaultState)switch(this.getTaskAreaEventSource(e)){case s.TaskAreaEventSource.TaskArea:this.checkEventInTaskEditFrameArea(e)?this.switchState(g.TaskMoveState):this.switchState(c.TaskAreaScrollState);break;case s.TaskAreaEventSource.TaskEdit_Frame:this.isTaskUpdateDisabled()?this.switchState(c.TaskAreaScrollState):this.switchState(g.TaskMoveState);break;case s.TaskAreaEventSource.TaskEdit_Progress:case s.TaskAreaEventSource.TaskEdit_Start:case s.TaskAreaEventSource.TaskEdit_End:this.switchState(f.TaskEditState)}},e.prototype.toggleStateWhenMultiOrOutsideTouch=function(e){var t=this._getActivePointersCount(e),i=!this.isInTaskArea(e),n=t>=2||i;return t>2||i?this.switchState(l.TaskAreaDefaultState):2===t&&this.switchState(p.TaskAreaZoomState),n},e.prototype.checkEventInTaskEditFrameArea=function(e){var t,i,n=this.getTaskEditFrameElement();if(this.isTaskUpdateDisabled()||!n)return!1;var o=(null==e?void 0:e.clientX)||(null===(t=null==e?void 0:e.touches[0])||void 0===t?void 0:t.clientX),r=(null==e?void 0:e.clientY)||(null===(i=null==e?void 0:e.touches[0])||void 0===i?void 0:i.clientY),a=n.getBoundingClientRect();return o>=a.left&&o<=a.left+a.width&&r>=a.top&&r<=a.top+a.height},e.prototype.isTaskUpdateDisabled=function(){return"false"===this._taskArea.getAttribute("task-edit-enabled")},e.prototype.isInTaskArea=function(e){return o.DomUtils.isItParent(this._taskArea,r.EvtUtils.getEventSource(e))},e.prototype.getTaskEditFrameElement=function(){return this._taskArea.getElementsByClassName(a.TaskEditController.CLASSNAMES.TASK_EDIT_FRAME)[0]},e.prototype._updatePinterInfo=function(e){var t=e.pointerId;this._pointers[t]={pageX:e.pageX,pageY:e.pageY,pointerType:e.pointerType}},e.prototype._clearPointerInfo=function(e){var t=e.pointerId;delete this._pointers[t]},e.prototype.isTouchEvent=function(e){return u.TaskAreaDomHelper.isTouchEvent(e)},e.prototype.isPointerEvent=function(e){return u.TaskAreaDomHelper.isPointerEvent(e)},e.prototype._getActivePointersCount=function(e){var t=this;return this.isTouchEvent(e)?e.touches.length:Object.keys(this._pointers).filter((function(i){return t._pointers[i].pointerType===e.pointerType})).length},e.prototype.getPointersInfo=function(e){var t=this,i=null==e?void 0:e.pointerType,n=Object.keys(this._pointers).map((function(e){return t._pointers[e]}));return i&&(n=n.filter((function(e){return e.pointerType===i}))),n},e.prototype._canStartDrag=function(e){return!(this._getActivePointersCount(e)>1)&&(!u.TaskAreaDomHelper.isMousePointer(e)||1===e.buttons)&&!u.TaskAreaDomHelper.isConnectorLine(e)},e.prototype.getTaskAreaEventSource=function(e){return u.TaskAreaDomHelper.getEventSource(r.EvtUtils.getEventSource(e))},e}();t.TaskAreaStateController=m},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskEditTooltip=void 0;var n=i(3),o=function(){function e(e,t,i){this.parentElement=e,this.cultureInfo=i,this.tooltipSettings=t}return Object.defineProperty(e.prototype,"baseElement",{get:function(){return this._baseElement||this.createTooltipContainer(),this._baseElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headerHeight",{get:function(){return this.tooltipSettings.getHeaderHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskTooltipContentTemplate",{get:function(){return this.tooltipSettings.getTaskTooltipContentTemplate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskProgressTooltipContentTemplate",{get:function(){return this.tooltipSettings.getTaskProgressTooltipContentTemplate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskTimeTooltipContentTemplate",{get:function(){return this.tooltipSettings.getTaskTimeTooltipContentTemplate},enumerable:!1,configurable:!0}),e.prototype.destroyTemplate=function(e){this.tooltipSettings.destroyTemplate(e)},e.prototype.formatDate=function(e){return this.tooltipSettings.formatDate(e)},e.prototype.createTooltipContainer=function(){this._baseElement=document.createElement("DIV"),this._baseElement.className=e.CLASSNAMES.TASK_EDIT_PROGRESS_STATUS,this.parentElement.appendChild(this._baseElement)},e.prototype.setDefaultTooltip=function(t){this.defaultTooltip=document.createElement("DIV"),this.defaultTooltip.className=e.CLASSNAMES.TASK_EDIT_TOOLTIP_DEFAULT;var i=document.createElement("DIV");i.className=e.CLASSNAMES.TASK_EDIT_TASK_TITLE;var n=document.createElement("SPAN");if(i.appendChild(n),this.defaultTooltip.appendChild(i),n.innerText=t.title,this.defaultTooltip.appendChild(this.getTimeContent(t.start,t.end)),!isNaN(t.progress)){var o=document.createElement("DIV");o.className=e.CLASSNAMES.TASK_EDIT_PROGRESS_STATUS_TIME;var r=document.createElement("SPAN"),a=document.createElement("SPAN");o.appendChild(r),o.appendChild(a),this.defaultTooltip.appendChild(o),r.innerText=(this.cultureInfo.progress?this.cultureInfo.progress:"Progress")+": ",a.innerText=t.progress+"%"}this.baseElement.appendChild(this.defaultTooltip)},e.prototype.setDefaultProgressTooltip=function(t){this.defaultTooltip=document.createElement("DIV"),this.defaultTooltip.className=e.CLASSNAMES.TASK_EDIT_TOOLTIP_DEFAULT,this.defaultTooltip.innerText=t+"%",this.baseElement.appendChild(this.defaultTooltip)},e.prototype.setDefaultTimeTooltip=function(t,i){this.defaultTooltip=document.createElement("DIV"),this.defaultTooltip.className=e.CLASSNAMES.TASK_EDIT_TOOLTIP_DEFAULT,this.defaultTooltip.appendChild(this.getTimeContent(t,i)),this.baseElement.appendChild(this.defaultTooltip)},e.prototype.showInfo=function(e,t,i){var n=this;void 0===i&&(i=0);var o=this.taskTooltipContentTemplate;this.destroyTemplate(this.baseElement),o?o(this.baseElement,e,(function(){n.showTooltip(t,!1,i)})):(this.setDefaultTooltip(e),this.showTooltip(t,!1,i))},e.prototype.showProgress=function(e,t){var i=this,n=this.taskProgressTooltipContentTemplate;this.destroyTemplate(this.baseElement),n?n(this.baseElement,{progress:e},(function(){i.showTooltip(t)})):(this.setDefaultProgressTooltip(e),this.show(t))},e.prototype.showTime=function(e,t,i){var n=this,o=this.taskTimeTooltipContentTemplate;this.destroyTemplate(this.baseElement),o?o(this.baseElement,{start:e,end:t},(function(){n.showTooltip(i)})):(this.setDefaultTimeTooltip(e,t),this.show(i))},e.prototype.showTooltip=function(e,t,i){var n,o=this;if(void 0===t&&(t=!0),void 0===i&&(i=0),null===(n=this.baseElement)||void 0===n?void 0:n.innerHTML){var r=function(){o.show(e,t)};i?this.timerId=setTimeout(r,i):r()}},e.prototype.show=function(t,i){var o,r,a,s,l=this;void 0===i&&(i=!0),null===(o=this.defaultTooltip)||void 0===o||o.classList.remove(e.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_AFTER),null===(r=this.defaultTooltip)||void 0===r||r.classList.remove(e.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_BEFORE),this.baseElement.style.display="block";var d=n.DomUtils.getAbsolutePositionY(this.parentElement),u=t-n.DomUtils.getAbsolutePositionX(this.parentElement)-10,c=d-this.headerHeight-n.DomUtils.getDocumentScrollTop()-15,h=this.baseElement.clientHeight>c||this.baseElement.clientHeight>this.parentElement.offsetTop,p=-this.baseElement.clientHeight-5;h?(p=this.parentElement.clientHeight+5,null===(a=this.defaultTooltip)||void 0===a||a.classList.add(e.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_AFTER)):null===(s=this.defaultTooltip)||void 0===s||s.classList.add(e.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_BEFORE),this.baseElement.style.left=u+"px",this.baseElement.style.top=p+"px",i&&(this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout((function(){l.hide()}),1500))},e.prototype.hide=function(){this.baseElement.style.display="none",this.destroyTemplate(this.baseElement),clearTimeout(this.timerId)},e.prototype.getTimeContent=function(t,i){var n=document.createElement("TABLE");n.className=e.CLASSNAMES.TASK_EDIT_PROGRESS_STATUS_TIME;var o=document.createElement("TBODY");n.appendChild(o);var r=document.createElement("TR"),a=document.createElement("TD"),s=document.createElement("TD"),l=document.createElement("TR"),d=document.createElement("TD"),u=document.createElement("TD");return r.appendChild(a),r.appendChild(s),l.appendChild(d),l.appendChild(u),o.appendChild(r),o.appendChild(l),a.innerText=(this.cultureInfo.start?this.cultureInfo.start:"Start")+": ",s.innerText=this.formatDate(t),d.innerText=(this.cultureInfo.end?this.cultureInfo.end:"End")+": ",u.innerText=this.formatDate(i),n},e.CLASSNAMES={TASK_EDIT_PROGRESS_STATUS:"dx-gantt-task-edit-tooltip",TASK_EDIT_TOOLTIP_DEFAULT:"dx-gantt-task-edit-tooltip-default",TASK_EDIT_TASK_TITLE:"dx-gantt-task-title",TASK_EDIT_PROGRESS_STATUS_TIME:"dx-gantt-status-time",TASK_EDIT_TOOLTIP_ARROW_BEFORE:"dx-gantt-task-edit-tooltip-before",TASK_EDIT_TOOLTIP_ARROW_AFTER:"dx-gantt-task-edit-tooltip-after"},e}();t.TaskEditTooltip=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaDefaultState=void 0;var n=i(0),o=i(9),r=i(29),a=i(30),s=i(13),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.finish=function(){this.clearTimers(),this.raiseEvent(s.TaskAreaStateEventNames.CONTEXTMENU_HIDE)},t.prototype.onMouseDownInternal=function(e){this.onPointerDownBase(e)},t.prototype.onDocumentPointerDownInternal=function(e){this.onPointerDownBase(e)},t.prototype.onDocumentPointerUpInternal=function(e){this.onPointerUpBase(e)},t.prototype.onDocumentPointerMoveInternal=function(e){this.clearTimers()},t.prototype.onTouchStartInternal=function(e){this.onPointerDownBase(e)},t.prototype.onTouchEndInternal=function(e){this.onPointerUpBase(e)},t.prototype.onTouchMoveInternal=function(e){this.clearTimers()},t.prototype.onPointerDownBase=function(e){var i=this;e.preventDefault(),this._lastTouchRowIndex=this.getClickedRowIndex(e),(this.isPointerEvent(e)?r.TaskAreaDomHelper.isMousePointer(e):this.isMouseEvent(e))?this.changeSelectionOnTouchDown(e):(setTimeout((function(){r.TaskAreaDomHelper.isMousePointer(e)||i.raiseEvent(s.TaskAreaStateEventNames.CONTEXTMENU_HIDE,e),i.changeSelectionOnTouchDown(e)}),0),clearTimeout(this._contextMenuTimer),this._contextMenuTimer=setTimeout((function(){return i.showContextMenuOnTouchDown(e)}),t.defaultContextMenuTimeout))},t.prototype.onPointerUpBase=function(e){var i=this;if(clearTimeout(this._contextMenuTimer),e.preventDefault(),this.canToEmulateClick(e)){var n=this.getClickedRowIndex(e),o=new Date;if(this._lastEmulatedClickTime)o.getTime()-this._lastEmulatedClickTime.getTime()/g,">")},e.decodeHtml=function(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")},e.prepareTextForRequest=function(e){return e.replace(/%/g,"%25").replace(/&/g,"%26amp;").replace(/\+/g,"%2B").replace(//g,"%26gt;").replace(/"/g,"%26quot;")},e.prepareTextForCallBackRequest=function(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")},e.decodeViaTextArea=function(e){var t=document.createElement("TEXTAREA");return t.innerHTML=e,t.value},e}();t.EncodeUtils=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaEventArgs=void 0;var n=i(1),o=function(e,t,i,o){this.rowIndex=-1,this.info={},this.eventName=e,this.triggerEvent=t,(0,n.isDefined)(i)&&(this.rowIndex=i),o&&(this.info=o)};t.TaskAreaEventArgs=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaDependencyState=t.dependencyMap=void 0;var n=i(0),o=i(5),r=i(3),a=i(9),s=i(23),l=i(4),d=i(29),u=i(30),c=i(13);t.dependencyMap=[],t.dependencyMap[l.TaskAreaEventSource.TaskEdit_DependencyStart]=[],t.dependencyMap[l.TaskAreaEventSource.TaskEdit_DependencyFinish]=[],t.dependencyMap[l.TaskAreaEventSource.TaskEdit_DependencyStart][l.TaskAreaEventSource.Successor_DependencyStart]=s.DependencyType.SS,t.dependencyMap[l.TaskAreaEventSource.TaskEdit_DependencyStart][l.TaskAreaEventSource.Successor_DependencyFinish]=s.DependencyType.SF,t.dependencyMap[l.TaskAreaEventSource.TaskEdit_DependencyFinish][l.TaskAreaEventSource.Successor_DependencyStart]=s.DependencyType.FS,t.dependencyMap[l.TaskAreaEventSource.TaskEdit_DependencyFinish][l.TaskAreaEventSource.Successor_DependencyFinish]=s.DependencyType.FF;var h=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(i,e),i.prototype.onMouseUp=function(e){this.onDependencyEndByMouse(e)},i.prototype.onMouseDownInternal=function(e){this.onDependencyStart(e)},i.prototype.onMouseMoveInternal=function(e){this.onDependencyMoveStep(e)},i.prototype.onTouchStartInternal=function(e){this.onDependencyStart(e)},i.prototype.onTouchEndInternal=function(e){this.onDependencyEndByTouch(e)},i.prototype.onTouchMoveInternal=function(e){this.onDependencyMoveStep(e)},i.prototype.onDocumentPointerDownInternal=function(e){this.onDependencyStart(e)},i.prototype.onDocumentPointerUpInternal=function(e){this.onDependencyEndByTouch(e)},i.prototype.onDocumentPointerMoveInternal=function(e){this.onDependencyMoveStep(e)},i.prototype.onDependencyStart=function(e){var t=a.EvtUtils.getEventSource(e);this.source=d.TaskAreaDomHelper.getEventSource(t);var i=this.getRelativePos(new o.Point(r.DomUtils.getAbsolutePositionX(t)+t.clientWidth/2,r.DomUtils.getAbsolutePositionY(t)+t.clientHeight/2));this.raiseEvent(c.TaskAreaStateEventNames.DEPENDENCY_START,e,null,{pos:i})},i.prototype.onDependencyMoveStep=function(e){e.preventDefault();var t=this.getRelativePos(new o.Point(a.EvtUtils.getEventX(e),a.EvtUtils.getEventY(e)));this.raiseEvent(c.TaskAreaStateEventNames.DEPENDENCY_PROCESS,e,this.getClickedRowIndex(e),{pos:t})},i.prototype.onDependencyEndByMouse=function(e){var i=d.TaskAreaDomHelper.getEventSource(a.EvtUtils.getEventSource(e)),n=i===l.TaskAreaEventSource.Successor_DependencyStart||i===l.TaskAreaEventSource.Successor_DependencyFinish?t.dependencyMap[this.source][i]:null;this.processEndDependency(e,n)},i.prototype.onDependencyEndByTouch=function(e){var i=this.raiseEvent(c.TaskAreaStateEventNames.GET_DEPENDENCY_POINTS,e),n=this.getRelativePos(i.successorStart),r=this.getRelativePos(i.successorFinish),s=this.getRelativePos(new o.Point(a.EvtUtils.getEventX(e),a.EvtUtils.getEventY(e))),d=this.isTouchNearby(s,n)?l.TaskAreaEventSource.Successor_DependencyStart:this.isTouchNearby(s,r)?l.TaskAreaEventSource.Successor_DependencyFinish:null,u=d===l.TaskAreaEventSource.Successor_DependencyStart||d===l.TaskAreaEventSource.Successor_DependencyFinish?t.dependencyMap[this.source][d]:null;this.processEndDependency(e,u)},i.prototype.onTaskAreaLeaveInternal=function(e){this.processEndDependency(e,null)},i.prototype.processEndDependency=function(e,t){this.raiseEvent(c.TaskAreaStateEventNames.DEPENDENCY_END,e,null,{type:t}),this.raiseEvent(c.TaskAreaStateEventNames.STATE_EXIT,e)},i.prototype.isTouchNearby=function(e,t){return Math.abs(t.x-e.x)<=20&&Math.abs(t.y-e.y)<=20},i}(u.TaskAreaStateBase);t.TaskAreaDependencyState=h},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaScrollState=void 0;var n=i(0),o=i(30),r=i(13),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._isStarted=!1,t}return n.__extends(t,e),t.prototype.finish=function(){this.raiseEvent(r.TaskAreaStateEventNames.TASK_AREA_END_MOVE,null)},t.prototype.onMouseUp=function(e){this.onEnd(e)},t.prototype.onMouseDownInternal=function(e){this.onBeforeStart(e)},t.prototype.onMouseMoveInternal=function(e){this.onMove(e)},t.prototype.onDocumentPointerUpInternal=function(e){this.onEnd(e)},t.prototype.onDocumentPointerMoveInternal=function(e){this.onMoveByPointer(e)},t.prototype.onTouchEndInternal=function(e){this.onEnd(e)},t.prototype.onTouchMoveInternal=function(e){this.onMoveByPointer(e)},t.prototype.onBeforeStart=function(e){e.preventDefault(),this.raiseDependencySelection(e,null),this.raiseEvent(r.TaskAreaStateEventNames.TASK_EDIT_END,e),this.raiseEvent(r.TaskAreaStateEventNames.TASK_AREA_START_MOVE,e),this._isStarted=!0},t.prototype.onMoveByPointer=function(e){this._isStarted?this.onMove(e):this.onBeforeStart(e)},t.prototype.onMove=function(e){e.preventDefault(),this.raiseEvent(r.TaskAreaStateEventNames.TASK_AREA_PROCESS_MOVE,e)},t.prototype.onEnd=function(e){e.preventDefault(),this.raiseEvent(r.TaskAreaStateEventNames.TASK_AREA_END_MOVE,e),this.raiseEvent(r.TaskAreaStateEventNames.STATE_EXIT,e),this._isStarted=!1},t}(o.TaskAreaStateBase);t.TaskAreaScrollState=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaZoomState=void 0;var n=i(0),o=i(5),r=i(9),a=i(176),s=i(30),l=i(13),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._isInZooming=!1,t}return n.__extends(t,e),t.prototype.onMouseWheel=function(e){e.ctrlKey&&(e.preventDefault(),e.stopPropagation(),this._isInZooming||this.processZoom(e,r.EvtUtils.getWheelDelta(e)>0,50))},t.prototype.onDocumentPointerUpInternal=function(e){this.onEndZoom(e)},t.prototype.onDocumentPointerMoveInternal=function(e){this.onTouchZoom(e)},t.prototype.onTouchEndInternal=function(e){this.onEndZoom(e)},t.prototype.onTouchMoveInternal=function(e){this.onTouchZoom(e)},t.prototype.onTouchZoom=function(e){var t;if(e.stopPropagation(),e.preventDefault(),!this._isInZooming){var i=this.getTouchDistance(e);null!==(t=this.prevDistance)&&void 0!==t||(this.prevDistance=i);var n=this.prevDistance-i;Math.abs(n)>3&&(this.processZoom(e,n>0,1e3),this.prevDistance=i)}},t.prototype.processZoom=function(e,t,i){var n=this;this._isInZooming=!0,setTimeout((function(){n._isInZooming=!1}),i);var o=t?l.TaskAreaStateEventNames.TASK_AREA_ZOOM_IN:l.TaskAreaStateEventNames.TASK_AREA_ZOOM_OUT;this.raiseEvent(o,e,null,{leftPos:this.getLeftPosition(e)})},t.prototype.onEndZoom=function(e){this.prevDistance=null,this.raiseEvent(l.TaskAreaStateEventNames.STATE_EXIT,e)},t.prototype.getTouchDistance=function(e){var t=this.GetTouchPoints(e);return this.getDistance(t[0],t[1])},t.prototype.GetTouchPoints=function(e){var t,i,n,r;if(this.isTouchEvent(e)){var a=e.touches;return[new o.Point(a[0].pageX,a[0].pageY),new o.Point(a[1].pageX,a[1].pageY)]}var s=this.raiseEvent(l.TaskAreaStateEventNames.GET_POINTERS_INFO,e);return[new o.Point(null===(t=s[0])||void 0===t?void 0:t.pageX,null===(i=s[0])||void 0===i?void 0:i.pageY),new o.Point(null===(n=s[1])||void 0===n?void 0:n.pageX,null===(r=s[1])||void 0===r?void 0:r.pageY)]},t.prototype.getDistance=function(e,t){return a.Metrics.euclideanDistance(e,t)},t.prototype.getLeftPosition=function(e){var t=0;return this.isTouchEvent(e)||this.isPointerEvent(e)?t=this.getZoomMiddlePoint(e).x:this.isMouseEvent(e)&&(t=this.getMouseZoomLeftPos(e)),t},t.prototype.getMouseZoomLeftPos=function(e){var t=this.raiseEvent(l.TaskAreaStateEventNames.GET_COORDINATES_REF_POINT);return r.EvtUtils.getEventX(e)-t.x},t.prototype.getZoomMiddlePoint=function(e){var t=this.raiseEvent(l.TaskAreaStateEventNames.GET_COORDINATES_REF_POINT),i=this.GetTouchPoints(e),n=this.convertScreenToChartCoordinates(i[0],t),r=this.convertScreenToChartCoordinates(i[1],t);return new o.Point((n.x+r.x)/2,(n.y+r.y)/2)},t.prototype.convertScreenToChartCoordinates=function(e,t){return new o.Point(e.x-t.x,e.y-t.y)},t}(s.TaskAreaStateBase);t.TaskAreaZoomState=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Metrics=void 0;var n=function(){function e(){}return e.euclideanDistance=function(e,t){var i=e.x-t.x,n=e.y-t.y;return Math.sqrt(i*i+n*n)},e.manhattanDistance=function(e,t){return Math.abs(e.x-t.x)+Math.abs(e.y-t.y)},e}();t.Metrics=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskEditState=void 0;var n=i(0),o=i(9),r=i(4),a=i(29),s=i(13),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.onStartInternal=function(e){var t;null!==(t=this._source)&&void 0!==t||(this._source=a.TaskAreaDomHelper.getEventSource(o.EvtUtils.getEventSource(e)))},t.prototype.onEndInternal=function(e){this.raiseEvent(this.getEventOnEndKey(),e)},t.prototype.onDragInternal=function(e){var t=this.getRelativePos(e);this.raiseEvent(this.getEventOnDragKey(),null,null,{position:t})},t.prototype.getEventOnDragKey=function(){switch(this._source){case r.TaskAreaEventSource.TaskEdit_Start:return s.TaskAreaStateEventNames.TASK_PROCESS_START;case r.TaskAreaEventSource.TaskEdit_End:return s.TaskAreaStateEventNames.TASK_PROCESS_END;case r.TaskAreaEventSource.TaskEdit_Progress:return s.TaskAreaStateEventNames.TASK_PROCESS_PROGRESS}},t.prototype.getEventOnEndKey=function(){switch(this._source){case r.TaskAreaEventSource.TaskEdit_Start:return s.TaskAreaStateEventNames.TASK_CONFIRM_START;case r.TaskAreaEventSource.TaskEdit_End:return s.TaskAreaStateEventNames.TASK_CONFIRM_END;case r.TaskAreaEventSource.TaskEdit_Progress:return s.TaskAreaStateEventNames.TASK_END_PROGRESS}},t}(i(67).TaskDragBaseState);t.TaskEditState=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskMoveState=void 0;var n=i(0),o=i(13),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.onEndInternal=function(e){this.raiseEvent(o.TaskAreaStateEventNames.TASK_END_MOVE,e)},t.prototype.onDragInternal=function(e){this.raiseEvent(o.TaskAreaStateEventNames.TASK_PROCESS_MOVE,null,null,{delta:e.x-this.currentPosition.x})||this.raiseEvent(o.TaskAreaStateEventNames.STATE_EXIT)},t}(i(67).TaskDragBaseState);t.TaskMoveState=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaRender=void 0;var n=i(3),o=i(16),r=function(){function e(e){this._vertTaskAreaBorders=[],this._horTaskAreaBorders=[],this._isExternalTaskAreaContainer=!1,this._renderHelper=e}return Object.defineProperty(e.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mainElement",{get:function(){return this._renderHelper.mainElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"etalonSizeValues",{get:function(){return this._renderHelper.etalonSizeValues},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleCount",{get:function(){return this._renderHelper.scaleCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tickSize",{get:function(){return this._renderHelper.tickSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaContainerScrollTop",{get:function(){return this._renderHelper.ganttViewTaskAreaContainerScrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaContainerScrollLeft",{get:function(){return this._renderHelper.ganttTaskAreaContainerScrollLeft},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"areHorizontalBordersEnabled",{get:function(){return this._renderHelper.areHorizontalBordersEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedRowIndices",{get:function(){return this._renderHelper.renderedRowIndices},set:function(e){this._renderHelper.renderedRowIndices=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedColIndices",{get:function(){return this._renderHelper.renderedColIndices},set:function(e){this._renderHelper.renderedColIndices=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"vertTaskAreaBorders",{get:function(){return this._vertTaskAreaBorders},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"horTaskAreaBorders",{get:function(){return this._horTaskAreaBorders},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hlRowElements",{get:function(){return this._renderHelper.hlRowElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskAreaContainer",{get:function(){return this._taskAreaContainer},enumerable:!1,configurable:!0}),e.prototype.getExternalTaskAreaContainer=function(e){return this._renderHelper.getExternalTaskAreaContainer(e)},e.prototype.prepareExternalTaskAreaContainer=function(e,t){return this._renderHelper.prepareExternalTaskAreaContainer(e,t)},e.prototype.isAllowTaskAreaBorders=function(e){return this._renderHelper.isAllowTaskAreaBorders(e)},e.prototype.getTaskAreaContainerElement=function(){return this._taskAreaContainer.getElement()},e.prototype.initTaskAreaContainer=function(e){this._renderHelper.createTaskArea(e),this._taskAreaContainer=this.getExternalTaskAreaContainer(e),this._isExternalTaskAreaContainer=!!this._taskAreaContainer,null==this.taskAreaContainer&&(this._taskAreaContainer=this._renderHelper.getTaskAreaContainer(e))},e.prototype.createTaskElement=function(e){this._renderHelper.createTaskElement(e)},e.prototype.removeTaskElement=function(e){this._renderHelper.removeTaskElement(e)},e.prototype.reset=function(){this._horTaskAreaBorders=[],this._vertTaskAreaBorders=[]},e.prototype.prepareTaskAreaContainer=function(){var e=this.getTaskAreaContainerElement();this.areHorizontalBordersEnabled?n.DomUtils.addClassName(e,"dx-gantt-tac-hb"):n.DomUtils.removeClassName(e,"dx-gantt-tac-hb");var t=parseInt(getComputedStyle(e).getPropertyValue("margin-top"))||0,i="calc(100% - ".concat(this.etalonSizeValues.scaleItemHeight*this.scaleCount+t,"px)");this._isExternalTaskAreaContainer?this.prepareExternalTaskAreaContainer(e,{height:i}):e.style.height=i},e.prototype.createTaskAreaContainer=function(){var e=document.createElement("DIV");e.className="dx-gantt-tac",this.mainElement.appendChild(e),this.initTaskAreaContainer(e),this.prepareTaskAreaContainer()},e.prototype.createTaskAreaBorder=function(e,t){var i=this.gridLayoutCalculator.getTaskAreaBorderInfo(e,t);o.RenderElementUtils.create(i,e,this.taskArea,this.getTaskAreaBordersDictionary(t))},e.prototype.createTaskArea=function(){var e=document.createElement("DIV");return e.id="dx-gantt-ta",e},e.prototype.removeTaskAreaBorder=function(e,t){o.RenderElementUtils.remove(null,e,this.taskArea,this.getTaskAreaBordersDictionary(t))},e.prototype.createTaskAreaBorderAndTaskElement=function(e,t){this.isAllowTaskAreaBorders(t)&&this.createTaskAreaBorder(e,!t),t&&this.createTaskElement(e)},e.prototype.removeTaskAreaBorderAndTaskElement=function(e,t){this.isAllowTaskAreaBorders(t)&&this.removeTaskAreaBorder(e,!t),t&&this.removeTaskElement(e)},e.prototype.recreateTaskAreaBordersAndTaskElements=function(e){var t=this,i=e?this.taskAreaContainerScrollTop:this.taskAreaContainerScrollLeft,n=this.gridLayoutCalculator.getRenderedRowColumnIndices(i,e),r=e?this.renderedRowIndices:this.renderedColIndices;o.RenderElementUtils.recreate(r,n,(function(i){t.removeTaskAreaBorderAndTaskElement(i,e)}),(function(i){t.createTaskAreaBorderAndTaskElement(i,e)})),e?this.renderedRowIndices=n:this.renderedColIndices=n,this.gridLayoutCalculator.createTileToConnectorLinesMap()},e.prototype.getTaskAreaBordersDictionary=function(e){return e?this.vertTaskAreaBorders:this.horTaskAreaBorders},e.prototype.setSizeForTaskArea=function(e,t){this.taskArea.style.width=e+"px",this.taskArea.style.height=t+"px"},e.prototype.createHighlightRowElement=function(e){var t=this.gridLayoutCalculator.getHighlightRowInfo(e);o.RenderElementUtils.create(t,e,this.taskArea,this.hlRowElements)},e}();t.TaskAreaRender=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskRender=void 0;var n=i(3),o=i(4),r=i(181),a=i(16),s=function(){function e(e){this._selectionElements=[],this._taskElements=[],this._renderHelper=e,this.customTaskRender=new r.CustomTaskRender(e,this)}return Object.defineProperty(e.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskElements",{get:function(){return this._taskElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectionElements",{get:function(){return this._selectionElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isExternalTaskAreaContainer",{get:function(){return this._renderHelper.isExternalTaskAreaContainer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resourcesElements",{get:function(){return this._renderHelper.resourcesElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hlRowElements",{get:function(){return this._renderHelper.hlRowElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedRowIndices",{get:function(){return this._renderHelper.renderedRowIndices},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskTitlePosition",{get:function(){return this._renderHelper.taskTitlePosition},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showResources",{get:function(){return this._renderHelper.showResources},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"areHorizontalBordersEnabled",{get:function(){return this._renderHelper.areHorizontalBordersEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskTextHeightKey",{get:function(){return this._renderHelper.taskTextHeightKey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewModelItems",{get:function(){return this._renderHelper.viewModelItems},enumerable:!1,configurable:!0}),e.prototype.isHighlightRowElementAllowed=function(e){return this._renderHelper.isHighlightRowElementAllowed(e)},e.prototype.getTaskVisibility=function(e){return this._renderHelper.getTaskVisibility(e)},e.prototype.getTaskText=function(e){return this._renderHelper.getTaskText(e)},Object.defineProperty(e.prototype,"invalidTaskDependencies",{get:function(){return this._renderHelper.invalidTaskDependencies},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fakeTaskWrapper",{get:function(){var e;return null!==(e=this._fakeTaskWrapper)&&void 0!==e||(this._fakeTaskWrapper=this.createFakeTaskWrapper()),this._fakeTaskWrapper},enumerable:!1,configurable:!0}),e.prototype.getViewItem=function(e){return this._renderHelper.getViewItem(e)},e.prototype.getTask=function(e){return this._renderHelper.getTask(e)},e.prototype.createHighlightRowElement=function(e){this._renderHelper.createHighlightRowElement(e)},e.prototype.getTaskDependencies=function(e){return this._renderHelper.getTaskDependencies(e)},e.prototype.addInvalidTaskDependencies=function(e){this._renderHelper.invalidTaskDependencies=this._renderHelper.invalidTaskDependencies.concat(e)},e.prototype.removeInvalidTaskDependencies=function(e){this._renderHelper.invalidTaskDependencies=this._renderHelper.invalidTaskDependencies.filter((function(t){return t.predecessorId!=e||t.successorId!=e}))},e.prototype.createResources=function(e){this.showResources&&this._renderHelper.createResources(e)},e.prototype.attachEventsOnTask=function(e){this._renderHelper.attachEventsOnTask(e)},e.prototype.detachEventsOnTask=function(e){this._renderHelper.detachEventsOnTask(e)},e.prototype.recreateConnectorLineElement=function(e,t){void 0===t&&(t=!1),this._renderHelper.recreateConnectorLineElement(e,t)},e.prototype.renderTaskElement=function(e){this._renderHelper.createTaskElement(e)},e.prototype.reset=function(){var e=this;this._taskElements.forEach((function(t,i){return e.removeTaskElement(i)})),this._selectionElements=[],this._taskElements=[]},e.prototype.createTaskWrapperElement=function(e){var t=this.gridLayoutCalculator.getTaskWrapperElementInfo(e);a.RenderElementUtils.create(t,e,this.taskArea,this.taskElements),this.taskElements[e].style.display=this.getTaskVisibility(e)?"":"none"},e.prototype.createTaskElement=function(e,t){var i=this.getViewItem(e);if(t&&this.customTaskRender.createCustomTaskElement(e,t),i.task.isValid()&&i.visible)i.isCustom||this.createDefaultTaskElement(e);else{var n=this.getTaskDependencies(i.task.internalId);this.addInvalidTaskDependencies(n)}},e.prototype.createTaskVisualElement=function(e){var t=this.gridLayoutCalculator.getTaskElementInfo(e,this.taskTitlePosition!==o.TaskTitlePosition.Inside),i=a.RenderElementUtils.create(t,e,this.taskElements[e]);return this.attachEventsOnTask(e),i},e.prototype.createDefaultTaskElement=function(e){var t=this.getViewItem(e);this.isHighlightRowElementAllowed(e)&&this.createHighlightRowElement(e),t.selected&&this.createTaskSelectionElement(e),this.createTaskWrapperElement(e),this.taskTitlePosition===o.TaskTitlePosition.Outside&&this.createTaskTextElement(e,this.taskElements[e]);var i=this.createTaskVisualElement(e);t.task.isMilestone()||(this.taskTitlePosition===o.TaskTitlePosition.Inside&&this.createTaskTextElement(e,i),this.createTaskProgressElement(e,i)),this.createResources(e)},e.prototype.removeTaskElement=function(e){var t=this.getTask(e);if(t&&this.removeInvalidTaskDependencies(t.id),this.detachEventsOnTask(e),this._renderHelper.hasTaskTemplate()){var i=this.taskElements[e],n=null==i?void 0:i.firstElementChild;n&&(this._renderHelper.destroyTemplate(n),i.removeChild(n))}a.RenderElementUtils.remove(null,e,this.taskArea,this.taskElements),a.RenderElementUtils.remove(null,e,this.taskArea,this.resourcesElements),a.RenderElementUtils.remove(null,e,this.taskArea,this.selectionElements),this.isHighlightRowElementAllowed(e)&&a.RenderElementUtils.remove(null,e,this.taskArea,this.hlRowElements),this.gridLayoutCalculator.resetTaskInfo(e)},e.prototype.recreateTaskElement=function(e){var t=this,i=this.renderedRowIndices.filter((function(t){return t===e})).length>0,n=this.getTask(e);if(n){i&&(this.removeTaskElement(e),this.renderTaskElement(e));var o=this.getTaskDependencies(n.internalId);o.length&&o.forEach((function(e){return t.recreateConnectorLineElement(e.internalId,!0)}))}},e.prototype.createFakeTaskWrapper=function(){var e,t,i=null!==(t=null===(e=this.viewModelItems.filter((function(e){return e.task&&!e.task.isMilestone}))[0])||void 0===e?void 0:e.visibleIndex)&&void 0!==t?t:0,n=this.gridLayoutCalculator,o=a.RenderElementUtils.create(n.getTaskWrapperElementInfo(i),null,this.taskArea),r=a.RenderElementUtils.create(n.getTaskElementInfo(i),null,o);return this.createTaskTextElement(i,r),this.createTaskProgressElement(i,r),o.style.display="none",o},e.prototype.createTaskProgressElement=function(e,t){var i=this.gridLayoutCalculator.getTaskProgressElementInfo(e);a.RenderElementUtils.create(i,e,t)},e.prototype.getTextWidth=function(e){return this._renderHelper.getTextWidth(e)},Object.defineProperty(e.prototype,"minTextWidth",{get:function(){var e;return null!==(e=this._minTextWidth)&&void 0!==e||(this._minTextWidth=5*this.getTextWidth("a")),this._minTextWidth},enumerable:!1,configurable:!0}),e.prototype.createTaskTextElement=function(t,i){var r,s,l=this.gridLayoutCalculator.getTaskTextElementInfo(t,this.taskTitlePosition===o.TaskTitlePosition.Inside);if(!l.additionalInfo.hidden){var d=a.RenderElementUtils.create(l,t,i),u=this.getTaskText(t);if(this.taskTitlePosition===o.TaskTitlePosition.Outside&&l.size.width>0){var c=getComputedStyle(d),h=l.size.width-n.DomUtils.pxToInt(c.paddingLeft);if(h>=this.minTextWidth){var p=n.DomUtils.pxToInt(c.paddingRight),f=u?this.getTextWidth(u):0;p&&f>h-p&&(p=Math.min(e.minTitleOutRightPadding,h-this.minTextWidth),d.style.paddingRight=p+"px"),f>h-p&&(d.style.overflowX="hidden",d.style.textOverflow="ellipsis")}else d.style.display="none"}u||(null!==(r=this[s=this.taskTextHeightKey])&&void 0!==r||(this[s]=this.getTaskTextHeight(d)),d.style.height=this[this.taskTextHeightKey]),d.innerText=u}},e.prototype.createTaskSelectionElement=function(e){var t=this.gridLayoutCalculator.getSelectionElementInfo(e);this.isExternalTaskAreaContainer&&!this.areHorizontalBordersEnabled&&t.size.height++,a.RenderElementUtils.create(t,e,this.taskArea,this.selectionElements)},e.prototype.getTaskTextHeight=function(e){e.innerText="WWW";var t=getComputedStyle(e).height;return e.innerText="",t},e.prototype.getSmallTaskWidth=function(e){var t=0;if(null!=e&&""!==e){var i=e.indexOf("rem");if(i>-1)try{t=parseFloat(e.substr(0,i))*parseFloat(getComputedStyle(document.documentElement).fontSize)}catch(e){}else t=n.DomUtils.pxToInt(e)}return 2*t},e.minTitleOutRightPadding=5,e}();t.TaskRender=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomTaskRender=void 0;var n=i(4),o=i(16),r=function(){function e(e,t){this._renderHelper=e,this._taskRender=t}return Object.defineProperty(e.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tickSize",{get:function(){return this._renderHelper.tickSize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskTitlePosition",{get:function(){return this._renderHelper.taskTitlePosition},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskElements",{get:function(){return this._taskRender.taskElements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),e.prototype.getViewItem=function(e){return this._renderHelper.getViewItem(e)},e.prototype.getTask=function(e){return this._renderHelper.getTask(e)},e.prototype.destroyTemplate=function(e){this._renderHelper.destroyTemplate(e)},e.prototype.getTaskDependencies=function(e){return this._renderHelper.getTaskDependencies(e)},e.prototype.getTaskResources=function(e){return this._renderHelper.getTaskResources(e)},e.prototype.attachEventsOnTask=function(e){this._renderHelper.attachEventsOnTask(e)},e.prototype.recreateConnectorLineElement=function(e,t){void 0===t&&(t=!1),this._renderHelper.recreateConnectorLineElement(e,t)},e.prototype.createTaskSelectionElement=function(e){this._taskRender.createTaskSelectionElement(e)},e.prototype.createCustomTaskElement=function(e,t){var i=this,n=this.getViewItem(e);n.isCustom=!1;var o=document.createElement("DIV"),r=this.createCustomTaskInformation(e);n.isCustom=!0,t(o,r,(function(e,t){i.drawCustomTask(e,t)}),e)},e.prototype.createCustomTaskWrapperElement=function(e,t){o.RenderElementUtils.create(t,e,this.taskArea,this.taskElements)},e.prototype.createCustomTaskVisualElement=function(e,t){return o.RenderElementUtils.create(t,e,this.taskElements[e])},e.prototype.drawCustomTask=function(e,t){var i=this;if(this.taskElements[t]){var n=this.getViewItem(t);if(n.visible=!!e.innerHTML,this.taskElements[t].innerHTML=e.innerHTML,n.size.height=this.taskElements[t].offsetHeight,n.size.width=this.taskElements[t].offsetWidth,this.destroyTemplate(this.taskElements[t]),this._taskRender.removeTaskElement(t),n.visible){var o=this.gridLayoutCalculator.getTaskWrapperElementInfo(t);this.createCustomTaskWrapperElement(t,o),this.taskElements[t].appendChild(e),this.attachEventsOnTask(t)}else{var r=this.getTaskDependencies(n.task.internalId);r.length&&(this._taskRender.addInvalidTaskDependencies(r),r.forEach((function(e){return i.recreateConnectorLineElement(e.internalId,!0)})))}this._taskRender.isHighlightRowElementAllowed(t)&&this._taskRender.createHighlightRowElement(t),n.selected&&this.createTaskSelectionElement(t)}},e.prototype.createCustomTaskInformation=function(e){var t=this.getTask(e),i=this.getViewItem(e),o=this.gridLayoutCalculator.getTaskWrapperElementInfo(e),r=this.gridLayoutCalculator.getTaskElementInfo(e,this.taskTitlePosition!==n.TaskTitlePosition.Inside);this.createCustomTaskWrapperElement(e,o);var a=this.createCustomTaskVisualElement(e,r);this._taskRender.createTaskTextElement(e,a);var s=this.getTaskResources(t.id);return{cellSize:this.tickSize,isMilestone:t.isMilestone(),isParent:!!(null==i?void 0:i.children.length),taskData:t,taskHTML:a,taskPosition:o.position,taskResources:s,taskSize:r.size}},e}();t.CustomTaskRender=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MainElementsRender=void 0;var n=function(){function e(){}return e.prototype.createMainElement=function(e){var t=document.createElement("DIV");return t.style.width=e.offsetWidth+"px",t.style.height=e.offsetHeight+"px",t},e.prototype.createHeader=function(){var e=document.createElement("DIV");return e.className="dx-gantt-header",e},e}();t.MainElementsRender=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskAreaContainer=void 0;var n=function(){function e(e,t){this.element=e,this.onScrollHandler=function(){t.updateView()},this.element.addEventListener("scroll",this.onScrollHandler)}return Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this.element.scrollTop},set:function(e){this.element.scrollTop=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollLeft",{get:function(){return this.element.scrollLeft},set:function(e){this.element.scrollLeft=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollWidth",{get:function(){return this.element.scrollWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollHeight",{get:function(){return this.element.scrollHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isExternal",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.getWidth=function(){return this.element.offsetWidth},e.prototype.getHeight=function(){return this.element.offsetHeight},e.prototype.getElement=function(){return this.element},e.prototype.detachEvents=function(){this.element.removeEventListener("scroll",this.onScrollHandler)},e}();t.TaskAreaContainer=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ElementTextHelper=void 0;var n=i(3),o=i(4),r=i(15),a=function(){function e(e){this.longestAbbrMonthName=null,this.longestMonthName=null,this.longestAbbrDayName=null;var t=document.createElement("canvas");this.textMeasureContext=t.getContext("2d"),this.cultureInfo=e}return e.prototype.setFont=function(e){var t=n.DomUtils.getCurrentStyle(e),i=t.font?t.font:t.fontStyle+" "+t.fontVariant+" "+t.fontWeight+" "+t.fontSize+" / "+t.lineHeight+" "+t.fontFamily;this.textMeasureContext.font=i},e.prototype.setSettings=function(e,t,i){this.startTime=e,this.viewType=t,this.modelItems=i},e.prototype.getScaleItemText=function(e,t){var i=this.viewType.valueOf()===t.valueOf();switch(t){case o.ViewType.TenMinutes:return this.getTenMinutesScaleItemText(e);case o.ViewType.Hours:case o.ViewType.SixHours:return this.getHoursScaleItemText(e);case o.ViewType.Days:return this.getDaysScaleItemText(e,i);case o.ViewType.Weeks:return this.getWeeksScaleItemText(e,i);case o.ViewType.Months:return this.getMonthsScaleItemText(e,i);case o.ViewType.Quarter:return this.getQuarterScaleItemText(e,i);case o.ViewType.Years:return this.getYearsScaleItemText(e);case o.ViewType.FiveYears:return this.getFiveYearsScaleItemText(e)}},e.prototype.getTenMinutesScaleItemText=function(e){var t=e.getMinutes()+1;return(10*Math.ceil(t/10)).toString()},e.prototype.getThirtyMinutesScaleItemText=function(e){return e.getMinutes()<30?"30":"60"},e.prototype.getHoursScaleItemText=function(e){var t=e.getHours(),i=this.getHourDisplayText(t),n=t<12?this.getAmText():this.getPmText();return this.getHoursScaleItemTextCore(i,n)},e.prototype.getDaysScaleItemText=function(e,t){return this.getDayTotalText(e,!0,t,t,!t)},e.prototype.getWeeksScaleItemText=function(e,t){var i=r.DateUtils.getDSTCorrectedTaskEnd(e,r.DateUtils.msPerWeek-r.DateUtils.msPerDay);return this.getWeeksScaleItemTextCore(this.getDayTotalText(e,t,!0,t,!t),this.getDayTotalText(i,t,!0,t,!t))},e.prototype.getMonthsScaleItemText=function(e,t){var i=this.getMonthNames(),n=t?"":e.getFullYear().toString();return this.getMonthsScaleItemTextCore(i[e.getMonth()],n)},e.prototype.getQuarterScaleItemText=function(e,t){var i=this.getQuarterNames(),n=t?"":e.getFullYear().toString();return this.getMonthsScaleItemTextCore(i[Math.floor(e.getMonth()/3)],n)},e.prototype.getYearsScaleItemText=function(e){return e.getFullYear().toString()},e.prototype.getFiveYearsScaleItemText=function(e){return e.getFullYear().toString()+" - "+(e.getFullYear()+4).toString()},e.prototype.getHourDisplayText=function(e){return this.hasAmPm()?(0==e?12:e<=12?e:e-12).toString():e<10?"0"+e:e.toString()},e.prototype.getDayTotalText=function(e,t,i,n,o){var r=n?this.getAbbrMonthNames():this.getMonthNames(),a=i?this.getAbbrDayNames():this.getDayNames(),s=t?a[e.getDay()]:"",l=e.getDate(),d=r[e.getMonth()],u=o?e.getFullYear().toString():"";return this.getDayTotalTextCore(s,l.toString(),d,u)},e.prototype.getTaskText=function(e){var t=this.modelItems[e];return t?t.task.title:""},e.prototype.getTaskVisibility=function(e){var t=this.modelItems[e];return!!t&&t.getVisible()},e.prototype.hasAmPm=function(){return this.getAmText().length>0||this.getPmText().length>0},e.prototype.getScaleItemTextTemplate=function(e){switch(e){case o.ViewType.TenMinutes:return"00";case o.ViewType.Hours:case o.ViewType.SixHours:return this.getHoursScaleItemTextCore("00",this.getAmText());case o.ViewType.Days:return this.getDayTextTemplate();case o.ViewType.Weeks:return this.getWeekTextTemplate();case o.ViewType.Months:return this.getMonthsScaleItemTextCore(this.getLongestMonthName(),"");case o.ViewType.Quarter:return"Q4";case o.ViewType.Years:return"0000"}},e.prototype.getDayTextTemplate=function(){return this.getDayTotalTextCore(this.getLongestAbbrDayName(),"00",this.getLongestAbbrMonthName(),"")},e.prototype.getWeekTextTemplate=function(){var e=this.getDayTextTemplate();return this.getWeeksScaleItemTextCore(e,e)},e.prototype.getHoursScaleItemTextCore=function(e,t){return e+":00"+(this.hasAmPm()?" "+t:"")},e.prototype.getDayTotalTextCore=function(e,t,i,n){var o=e.length>0?e+", ":"";return o+=t+" "+i,o+(n.length>0?" "+n:"")},e.prototype.getWeeksScaleItemTextCore=function(e,t){return e+" - "+t},e.prototype.getMonthsScaleItemTextCore=function(e,t){var i=e;return t.length>0&&(i+=" "+t),i},e.prototype.getLongestAbbrMonthName=function(){return null==this.longestAbbrMonthName&&(this.longestAbbrMonthName=this.getLongestText(this.getAbbrMonthNames())),this.longestAbbrMonthName},e.prototype.getLongestMonthName=function(){return null==this.longestMonthName&&(this.longestMonthName=this.getLongestText(this.getMonthNames())),this.longestMonthName},e.prototype.getLongestAbbrDayName=function(){return null==this.longestAbbrDayName&&(this.longestAbbrDayName=this.getLongestText(this.getAbbrDayNames())),this.longestAbbrDayName},e.prototype.getLongestText=function(e){var t=this,i="",n=0;return e.forEach((function(e){var o=t.getTextWidth(e);o>n&&(n=o,i=e)})),i},e.prototype.getTextWidth=function(e){return Math.round(this.textMeasureContext.measureText(e).width)},e.prototype.getAmText=function(){return this.cultureInfo.amText},e.prototype.getPmText=function(){return this.cultureInfo.pmText},e.prototype.getQuarterNames=function(){return this.cultureInfo.quarterNames},e.prototype.getMonthNames=function(){return this.cultureInfo.monthNames},e.prototype.getDayNames=function(){return this.cultureInfo.dayNames},e.prototype.getAbbrMonthNames=function(){return this.cultureInfo.abbrMonthNames},e.prototype.getAbbrDayNames=function(){return this.cultureInfo.abbrDayNames},e}();t.ElementTextHelper=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Settings=void 0;var n=i(1),o=i(8),r=i(4),a=i(186),s=i(68),l=i(187),d=i(188),u=function(){function e(){this.viewType=void 0,this.taskTitlePosition=r.TaskTitlePosition.Inside,this.showResources=!0,this.showDependencies=!0,this.areHorizontalBordersEnabled=!0,this.areVerticalBordersEnabled=!0,this.areAlternateRowsEnabled=!0,this.allowSelectTask=!0,this.firstDayOfWeek=0,this.editing=new a.EditingSettings,this.validation=new l.ValidationSettings,this.stripLines=new s.StripLineSettings,this.viewTypeRange=new d.ViewTypeRangeSettings}return e.parse=function(t){var i=new e;return t&&((0,n.isDefined)(t.viewType)&&(i.viewType=t.viewType),(0,n.isDefined)(t.taskTitlePosition)&&(i.taskTitlePosition=t.taskTitlePosition),(0,n.isDefined)(t.showResources)&&(i.showResources=t.showResources),(0,n.isDefined)(t.showDependencies)&&(i.showDependencies=t.showDependencies),(0,n.isDefined)(t.areHorizontalBordersEnabled)&&(i.areHorizontalBordersEnabled=t.areHorizontalBordersEnabled),(0,n.isDefined)(t.areVerticalBordersEnabled)&&(i.areHorizontalBordersEnabled=t.areHorizontalBordersEnabled),(0,n.isDefined)(t.areAlternateRowsEnabled)&&(i.areAlternateRowsEnabled=t.areAlternateRowsEnabled),(0,n.isDefined)(t.allowSelectTask)&&(i.allowSelectTask=t.allowSelectTask),(0,n.isDefined)(t.firstDayOfWeek)&&(i.firstDayOfWeek=t.firstDayOfWeek),(0,n.isDefined)(t.startDateRange)&&(i.startDateRange=new Date(t.startDateRange)),(0,n.isDefined)(t.endDateRange)&&(i.endDateRange=new Date(t.endDateRange)),(0,n.isDefined)(t.editing)&&(i.editing=a.EditingSettings.parse(t.editing)),(0,n.isDefined)(t.validation)&&(i.validation=l.ValidationSettings.parse(t.validation)),(0,n.isDefined)(t.stripLines)&&(i.stripLines=s.StripLineSettings.parse(t.stripLines)),(0,n.isDefined)(t.viewTypeRange)&&(i.viewTypeRange=d.ViewTypeRangeSettings.parse(t.viewTypeRange)),(0,n.isDefined)(t.taskTooltipContentTemplate)&&(i.taskTooltipContentTemplate=t.taskTooltipContentTemplate),(0,n.isDefined)(t.taskProgressTooltipContentTemplate)&&(i.taskProgressTooltipContentTemplate=t.taskProgressTooltipContentTemplate),(0,n.isDefined)(t.taskTimeTooltipContentTemplate)&&(i.taskTimeTooltipContentTemplate=t.taskTimeTooltipContentTemplate),(0,n.isDefined)(t.taskContentTemplate)&&(i.taskContentTemplate=t.taskContentTemplate),(0,n.isDefined)(t.cultureInfo)&&(i.cultureInfo=t.cultureInfo)),i},e.prototype.equal=function(e){var t=!0;return(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t&&this.viewType===e.viewType)&&this.taskTitlePosition===e.taskTitlePosition)&&this.showResources===e.showResources)&&this.showDependencies===e.showDependencies)&&this.areHorizontalBordersEnabled===e.areHorizontalBordersEnabled)&&this.areAlternateRowsEnabled===e.areAlternateRowsEnabled)&&this.allowSelectTask===e.allowSelectTask)&&this.editing.equal(e.editing))&&this.validation.equal(e.validation))&&this.stripLines.equal(e.stripLines))&&o.DateTimeUtils.areDatesEqual(this.startDateRange,e.startDateRange))&&o.DateTimeUtils.areDatesEqual(this.endDateRange,e.endDateRange)},e}();t.Settings=u},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditingSettings=void 0;var n=i(1),o=function(){function e(){this.enabled=!1,this.allowDependencyDelete=!0,this.allowDependencyInsert=!0,this.allowTaskDelete=!0,this.allowTaskInsert=!0,this.allowTaskUpdate=!0,this.allowResourceDelete=!0,this.allowResourceInsert=!0,this.allowResourceUpdate=!0,this.allowTaskResourceUpdate=!0,this.taskHoverDelay=0}return e.parse=function(t){var i=new e;return t&&((0,n.isDefined)(t.enabled)&&(i.enabled=t.enabled),(0,n.isDefined)(t.allowDependencyDelete)&&(i.allowDependencyDelete=t.allowDependencyDelete),(0,n.isDefined)(t.allowDependencyInsert)&&(i.allowDependencyInsert=t.allowDependencyInsert),(0,n.isDefined)(t.allowTaskDelete)&&(i.allowTaskDelete=t.allowTaskDelete),(0,n.isDefined)(t.allowTaskInsert)&&(i.allowTaskInsert=t.allowTaskInsert),(0,n.isDefined)(t.allowTaskUpdate)&&(i.allowTaskUpdate=t.allowTaskUpdate),(0,n.isDefined)(t.allowResourceDelete)&&(i.allowResourceDelete=t.allowResourceDelete),(0,n.isDefined)(t.allowResourceInsert)&&(i.allowResourceInsert=t.allowResourceInsert),(0,n.isDefined)(t.allowResourceUpdate)&&(i.allowResourceUpdate=t.allowResourceUpdate),(0,n.isDefined)(t.allowTaskResourceUpdate)&&(i.allowTaskResourceUpdate=t.allowTaskResourceUpdate),(0,n.isDefined)(t.taskHoverDelay)&&(i.taskHoverDelay=t.taskHoverDelay)),i},e.prototype.equal=function(e){var t=!0;return(t=(t=(t=(t=(t=(t=(t=(t=(t=t&&this.enabled===e.enabled)&&this.allowDependencyDelete===e.allowDependencyDelete)&&this.allowDependencyInsert===e.allowDependencyInsert)&&this.allowTaskDelete===e.allowTaskDelete)&&this.allowTaskInsert===e.allowTaskInsert)&&this.allowTaskUpdate===e.allowTaskUpdate)&&this.allowResourceDelete===e.allowResourceDelete)&&this.allowResourceInsert===e.allowResourceInsert)&&this.allowResourceUpdate===e.allowResourceUpdate)&&this.allowTaskResourceUpdate===e.allowTaskResourceUpdate},e}();t.EditingSettings=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationSettings=void 0;var n=i(1),o=function(){function e(){this.validateDependencies=!1,this.autoUpdateParentTasks=!1,this.enablePredecessorGap=!1}return e.parse=function(t){var i=new e;return t&&((0,n.isDefined)(t.validateDependencies)&&(i.validateDependencies=t.validateDependencies),(0,n.isDefined)(t.autoUpdateParentTasks)&&(i.autoUpdateParentTasks=t.autoUpdateParentTasks),(0,n.isDefined)(t.enablePredecessorGap)&&(i.enablePredecessorGap=t.enablePredecessorGap)),i},e.prototype.equal=function(e){var t=!0;return(t=(t=t&&this.validateDependencies===e.validateDependencies)&&this.autoUpdateParentTasks===e.autoUpdateParentTasks)&&this.enablePredecessorGap===e.enablePredecessorGap},e}();t.ValidationSettings=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewTypeRangeSettings=void 0;var n=i(1),o=i(4),r=function(){function e(){this.min=o.ViewType.TenMinutes,this.max=o.ViewType.Years}return e.parse=function(t){var i=new e;return t&&((0,n.isDefined)(t.min)&&(i.min=t.min),(0,n.isDefined)(t.max)&&(i.max=t.max)),i},e.prototype.equal=function(e){var t=!0;return(t=t&&this.min===e.min)&&this.max===e.max},e}();t.ViewTypeRangeSettings=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskEditSettings=void 0;var n=i(0),o=i(1),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.parse=function(e){var i=new t;return e&&((0,o.isDefined)(e.getCommandManager)&&(i.getCommandManager=e.getCommandManager),(0,o.isDefined)(e.getViewModel)&&(i.getViewModel=e.getViewModel),(0,o.isDefined)(e.getGanttSettings)&&(i.getGanttSettings=e.getGanttSettings),(0,o.isDefined)(e.getRenderHelper)&&(i.getRenderHelper=e.getRenderHelper),(0,o.isDefined)(e.destroyTemplate)&&(i.destroyTemplate=e.destroyTemplate),(0,o.isDefined)(e.formatDate)&&(i.formatDate=e.formatDate),(0,o.isDefined)(e.getModelManipulator)&&(i.getModelManipulator=e.getModelManipulator),(0,o.isDefined)(e.getValidationController)&&(i.getValidationController=e.getValidationController)),i},t}(i(65).TooltipSettings);t.TaskEditSettings=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationController=void 0;var n=i(0),o=i(1),r=i(15),a=i(23),s=i(53),l=i(19),d=i(8),u=i(191),c=function(){function e(e){this.lockPredecessorToSuccessor=!0,this.settings=e}return Object.defineProperty(e.prototype,"viewModel",{get:function(){return this.settings.getViewModel()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"history",{get:function(){return this.settings.getHistory()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modelManipulator",{get:function(){return this.settings.getModelManipulator()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return this.settings.getRange()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"validationSettings",{get:function(){return this.settings.getValidationSettings()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_parentAutoCalc",{get:function(){return this.viewModel.parentAutoCalc},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enablePredecessorGap",{get:function(){return this.viewModel.enablePredecessorGap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isValidateDependenciesRequired",{get:function(){return this.settings.getIsValidateDependenciesRequired()},enumerable:!1,configurable:!0}),e.prototype.updateOwnerInAutoParentMode=function(){this.settings.updateOwnerInAutoParentMode()},e.prototype.checkStartDependencies=function(e,t){var i=this,n=[],o=this.viewModel.tasks.getItemById(e);return this.viewModel.dependencies.items.filter((function(t){return t.successorId===e})).forEach((function(e){var r=i.viewModel.tasks.getItemById(e.predecessorId);(e.type===a.DependencyType.FS&&r.end>t||e.type===a.DependencyType.SS&&r.start>t)&&n.push(new u.ValidationError(e.internalId,!0)),(e.type===a.DependencyType.FS&&r.end.valueOf()===o.start.valueOf()&&t>r.end||e.type===a.DependencyType.SS&&r.start.valueOf()===o.start.valueOf()&&t>r.start)&&n.push(new u.ValidationError(e.internalId))})),n},e.prototype.checkEndDependencies=function(e,t){var i=this,n=[],o=this.viewModel.tasks.getItemById(e);return this.viewModel.dependencies.items.filter((function(t){return t.successorId===e})).forEach((function(e){var r=i.viewModel.tasks.getItemById(e.predecessorId);(e.type===a.DependencyType.SF&&r.start>t||e.type===a.DependencyType.FF&&r.end>t)&&n.push(new u.ValidationError(e.internalId,!0)),(e.type===a.DependencyType.SF&&r.start.valueOf()===o.end.valueOf()&&t>r.start||e.type===a.DependencyType.FF&&r.end.valueOf()===o.end.valueOf()&&t>r.end)&&n.push(new u.ValidationError(e.internalId))})),n},e.prototype.moveEndDependTasks=function(e,t,i){var n=this;void 0===i&&(i=!1);var o=this.viewModel.dependencies.items.filter((function(t){return t.predecessorId===e&&!t.isStartDependency})),r=this.viewModel.tasks.getItemById(e);o.forEach((function(e){var o=n.viewModel.tasks.getItemById(e.successorId);if(o&&(!i||r.parentId!==o.parentId)&&o.parentId!=r.id){var d=new l.DateRange(new Date(o.start.getTime()),new Date(o.end.getTime())),u=new l.DateRange(new Date(o.start.getTime()),new Date(o.end.getTime())),c=r.end.getTime()-t.getTime(),h=n.enablePredecessorGap?r.end:t;if(e.type===a.DependencyType.FS&&(o.start0?Math.round(a/s):0)!==i.task.progress&&(l.progress=a),t(l),i=i.parent}},e.prototype.updateParentsRangeByChild=function(e){var t=this;this.recalculateParents(this.viewModel.findItem(e),(function(e){if((0,o.isDefined)(e.id)){var i=t.history,n=t.modelManipulator;(0,o.isDefined)(e.start)&&(i.addAndRedo(new s.UpdateTaskHistoryItem(n,e.id,{start:e.start})),t.moveStartDependTasks(e.id,e.oldStart)),(0,o.isDefined)(e.end)&&(i.addAndRedo(new s.UpdateTaskHistoryItem(n,e.id,{end:e.end})),t.moveEndDependTasks(e.id,e.oldEnd)),(0,o.isDefined)(e.progress)&&i.addAndRedo(new s.UpdateTaskHistoryItem(n,e.id,{progress:e.progress}))}}))},e.prototype.updateChildRangeByParent=function(e,t,i){var n=this.viewModel.findItem(e);if(n&&0!==n.children.length)for(var o=n.children,a=0;a-1&&this.renderHelper.recreateTaskElement(o)}},e.prototype.beginUpdate=function(){this._fLockCount++},e.prototype.endUpdate=function(){this._fLockCount--,0==this._fLockCount&&this.changed()},e.prototype.compareTaskOrder=function(e){var t=new o.TaskCollection;t.importFromObject(e);var i=t.items,n=this.tasks.items;if(i.length!==n.length)return!1;for(var r=0;r-1},e.prototype.getTaskTreeLine=function(e){var t=[e],i=this.findItem(e);if(i)for(i=i.parent;null==i?void 0:i.task;)t.push(null==i?void 0:i.task.internalId),i=i.parent;return t},e.prototype.getDependentTasksHash=function(){var e={};return this.dependencies.items.forEach((function(t){var i,n,o=t.predecessorId,r=t.successorId;null!==(i=e[o])&&void 0!==i||(e[o]=[]),e[o].indexOf(r)<0&&e[o].push(r),null!==(n=e[r])&&void 0!==n||(e[r]=[]),e[r].indexOf(o)<0&&e[r].push(o)})),e},e.prototype.checkTasksInterdependence=function(e,t,i){for(var n,o,r=this.getTaskTreeLine(e).reverse(),a=this.getTaskTreeLine(t).reverse(),s=0;s-1&&(n=r[s+1],o=a[d+1])}return n||o||(n=r[0],o=a[0]),this.checkDependencyChain(this.getBranchIds(n),this.getBranchIds(o),i,[])},e.prototype.checkDependencyChain=function(e,t,i,n){if(e.some((function(e){return t.indexOf(e)>-1})))return!0;n.push.apply(n,e);for(var o=0;o0},e.prototype.taskHasChildren=function(e){var t=this.findItem(e);return t&&t.children.length>0},Object.defineProperty(e.prototype,"enableDependencyValidation",{get:function(){var e,t=this.owner&&this.owner.settings;return null===(e=null==t?void 0:t.validation)||void 0===e?void 0:e.validateDependencies},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentAutoCalc",{get:function(){var e=this.owner&&this.owner.settings;return e&&e.validation&&e.validation.autoUpdateParentTasks},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enablePredecessorGap",{get:function(){var e=this.owner&&this.owner.settings;return e&&e.validation&&e.validation.enablePredecessorGap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"requireFirstLoadParentAutoCalc",{get:function(){return this.parentAutoCalc&&this.owner.requireFirstLoadParentAutoCalc()},enumerable:!1,configurable:!0}),e.prototype.isTaskToCalculateByChildren=function(e){return this.parentAutoCalc&&this.taskHasChildren(e)},e.prototype.hasTasks=function(){return this.tasks.length>0},e.prototype.getDataUpdateErrorCallback=function(){return this.owner.getDataUpdateErrorCallback&&this.owner.getDataUpdateErrorCallback()},e.prototype.convertPublicToInternalKey=function(e,t){var i=this.getItemByPublicId(e,t);return i&&i.internalId},e.prototype.convertInternalToPublicKey=function(e,t){var i=this.getItemByInternalId(e,t);return i&&i.id},e.prototype.getItemByPublicId=function(e,t){var i=t.toString();switch(e){case"task":return this.tasks.getItemByPublicId(i);case"dependency":return this.dependencies.getItemByPublicId(i);case"resource":return this.resources.getItemByPublicId(i);case"assignment":return this.assignments.getItemByPublicId(i)}return null},e.prototype.getItemByInternalId=function(e,t){switch(e){case"task":return this.tasks.getItemById(t);case"dependency":return this.dependencies.getItemById(t);case"resource":return this.resources.getItemById(t);case"assignment":return this.assignments.getItemById(t)}return null},e.prototype.findAssignment=function(e,t){var i=this.convertPublicToInternalKey("resource",e),n=this.convertPublicToInternalKey("task",t);return this.assignments.items.filter((function(e){return e.resourceId===i&&e.taskId===n}))[0]},e.prototype.findAllTaskAssignments=function(e){return this.assignments.items.filter((function(t){return t.taskId===e}))},e.prototype.getAllVisibleTaskIndices=function(e,t){var i,n=[];null!=e||(e=0),null!=t||(t=this._viewItemList.length-1);for(var o=e;o<=t;o++){var r=this._viewItemList[o];(null==r?void 0:r.getVisible())&&(null===(i=null==r?void 0:r.task)||void 0===i?void 0:i.isValid)&&n.push(o)}return n},e.prototype.getVisibleTasks=function(){var e=this;return this.tasks.items.filter((function(t){return t&&e.getTaskVisibility(t.internalId)&&t.isValid()}))},e.prototype.getVisibleDependencies=function(){var e=this.getVisibleTasks().map((function(e){return e.internalId}));return this.dependencies.items.filter((function(t){return t&&e.indexOf(t.successorId)>-1&&e.indexOf(t.predecessorId)>-1}))},e.prototype.getVisibleResourceAssignments=function(){var e=this.getVisibleTasks().map((function(e){return e.internalId}));return this.assignments.items.filter((function(t){return t&&e.indexOf(t.taskId)>-1}))},e.prototype.getVisibleResources=function(){for(var e=[],t=this.getVisibleResourceAssignments(),i=0;ie.getTime()&&(e=t.end)})),e},e.prototype.processServerInsertedKey=function(e,t,i){var n;i===c.GanttDataObjectNames.task&&this.tasks.invalidate(),i===c.GanttDataObjectNames.dependency&&(this.dependencies.invalidate(),this.updateVisibleItemDependencies()),i===c.GanttDataObjectNames.resource&&this.resources.invalidate(),i===c.GanttDataObjectNames.resourceAssignment&&this.assignments.invalidate(),null===(n=this.owner)||void 0===n||n.updateHistoryObsoleteInsertedKey(e,t,i)},e.prototype.onBeginDataObjectCreate=function(){var e,t;null===(t=(e=this.owner).lockUpdateWithReload)||void 0===t||t.call(e)},e.prototype.onEndDataObjectCreate=function(){var e,t;null===(t=(e=this.owner).unlockUpdateWithReload)||void 0===t||t.call(e)},e}();t.ViewVisualModel=g},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskCollection=void 0;var n=i(0),o=i(195),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.createItem=function(){return new o.Task},t}(i(22).CollectionBase);t.TaskCollection=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Task=void 0;var n=i(0),o=i(1),r=function(e){function t(){var t=e.call(this)||this;return t.start=null,t.end=null,t.duration=null,t.description="",t.parentId=null,t.title="",t.owner=null,t.progress=0,t.taskType=null,t.customFields={},t.expanded=!0,t.color="",t}return n.__extends(t,e),Object.defineProperty(t.prototype,"normalizedProgress",{get:function(){return Math.max(Math.min(this.progress,100),0)},enumerable:!1,configurable:!0}),t.prototype.assignFromObject=function(t){(0,o.isDefined)(t)&&(e.prototype.assignFromObject.call(this,t),this.owner=t.owner,this.parentId=(0,o.isDefined)(t.parentId)?String(t.parentId):null,this.description=t.description,this.title=t.title,this.start="string"==typeof t.start?new Date(t.start):t.start||new Date(0),this.end="string"==typeof t.end?new Date(t.end):t.end||new Date(0),this.duration=t.duration,this.progress=t.progress,this.taskType=t.taskType,(0,o.isDefined)(t.expanded)&&(this.expanded=!!t.expanded),(0,o.isDefined)(t.color)&&(this.color=t.color),this.assignCustomFields(t.customFields))},t.prototype.assignCustomFields=function(e){if(e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this.customFields[t]=e[t])},t.prototype.isMilestone=function(){return this.start.getTime()===this.end.getTime()},t.prototype.getDuration=function(){return this.end.getTime()-this.start.getTime()},t.prototype.isValid=function(){return!!this.start.getTime()&&!!this.end.getTime()},t}(i(2).DataObject);t.Task=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DependencyCollection=void 0;var n=i(0),o=i(22),r=i(69),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.createItem=function(){return new r.Dependency},t}(o.CollectionBase);t.DependencyCollection=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceAssignmentCollection=void 0;var n=i(0),o=i(22),r=i(70),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.createItem=function(){return new r.ResourceAssignment},t}(o.CollectionBase);t.ResourceAssignmentCollection=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewVisualModelItem=void 0;var n=i(1),o=i(12),r=function(){function e(e,t){this.dependencies=new Array,this.parent=null,this.visible=!0,this.selected=!1,this.visibleIndex=-1,this.task=e,this.resources=t,this.children=new Array,this.isCustom=!1,this.size=new o.Size(0,0)}return Object.defineProperty(e.prototype,"resourceText",{get:function(){var e="";return this.resources.items.forEach((function(t){return e+=t.text+" "})),e},enumerable:!1,configurable:!0}),e.prototype.addChild=function(e){(0,n.isDefined)(e)&&this.children.indexOf(e)<0&&this.children.push(e)},e.prototype.removeChild=function(e){var t=this.children.indexOf(e);t>-1&&this.children.splice(t,1)},e.prototype.getExpanded=function(){return!!this.task&&this.task.expanded},e.prototype.getVisible=function(){if(!this.visible)return!1;for(var e=this.parent;e;){if(!e.visible)return!1;e=e.parent}return!0},e.prototype.changeVisibility=function(e){this.visible=e},e.prototype.changeSelection=function(e){this.selected=e},e.prototype.setDependencies=function(e){e&&(this.dependencies=e.slice())},e}();t.ViewVisualModelItem=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewVisualModelDependencyInfo=void 0;var n=function(e,t,i){this.id=e,this.predecessor=t,this.type=i};t.ViewVisualModelDependencyInfo=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkingTimeCalculator=void 0;var n=i(201),o=i(209),r=i(8),a=function(){function e(e,t){this._workingRules=new n.WorkingDayRuleCollection,this._workDayList=new Array,this._calculationRange=e,this._workingRules.importFromObject(t)}return e.prototype.calculateWorkDayList=function(){if(this._calculationRange){this.clearList();for(var e=this._workingRules.items,t=0;t0&&r.DateTimeUtils.compareDates(t[t.length-1].end,n.start)<2?t[t.length-1].end=n.end:t.push(n)}return t},e.prototype.getNoWorkTimeRangesFromDay=function(e){return e.noWorkingIntervals.map((function(t){return r.DateTimeUtils.convertTimeRangeToDateRange(t,e.dayNumber)}))},Object.defineProperty(e.prototype,"noWorkingIntervals",{get:function(){return this._noWorkingIntervals||(this._noWorkingIntervals=this.calculateNoWorkTimeIntervals()),this._noWorkingIntervals.slice()},enumerable:!1,configurable:!0}),e.prototype.updateRange=function(e){this._calculationRange=e,this.invalidate()},e.prototype.invalidate=function(){this._noWorkingIntervals=null,this.clearList()},e}();t.WorkingTimeCalculator=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkingDayRuleCollection=void 0;var n=i(0),o=i(22),r=i(202),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.createItem=function(){return new r.WorkingTimeRule},t}(o.CollectionBase);t.WorkingDayRuleCollection=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkingTimeRule=void 0;var n=i(0),o=i(2),r=i(1),a=i(8),s=i(71),l=i(72),d=function(e){function t(t,i,n){void 0===t&&(t=null),void 0===i&&(i=!0),void 0===n&&(n=null);var o=e.call(this)||this;return o.isWorkDay=!0,o.workTimeRanges=new Array,o.recurrence=t,o.isWorkDay=i,n&&o.workTimeRanges.concat(n),o}return n.__extends(t,e),t.prototype.assignFromObject=function(t){if((0,r.isDefined)(t)){e.prototype.assignFromObject.call(this,t),this.recurrence=s.RecurrenceFactory.createRecurrenceByType(t.recurrenceType)||new l.Daily,(0,r.isDefined)(t.recurrence)&&this.recurrence.assignFromObject(t.recurrence),(0,r.isDefined)(t.isWorkDay)&&(this.isWorkDay=!!t.isWorkDay);var i=a.DateTimeUtils.convertToTimeRanges(t.workTimeRanges);i&&(this.workTimeRanges=i)}},t}(o.DataObject);t.WorkingTimeRule=d},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DayOfWeek=void 0,function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"}(t.DayOfWeek||(t.DayOfWeek={}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Month=void 0,function(e){e[e.January=0]="January",e[e.February=1]="February",e[e.March=2]="March",e[e.April=3]="April",e[e.May=4]="May",e[e.June=5]="June",e[e.July=6]="July",e[e.August=7]="August",e[e.September=8]="September",e[e.October=9]="October",e[e.November=10]="November",e[e.December=11]="December"}(t.Month||(t.Month={}))},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Weekly=void 0;var n=i(0),o=i(38),r=i(8),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.checkDate=function(e){return r.DateTimeUtils.checkDayOfWeek(this.dayOfWeekInternal,e)},t.prototype.checkInterval=function(e){return r.DateTimeUtils.getWeeksBetween(this.start,e)%this.interval==0},t.prototype.calculatePointByInterval=function(e){var t=r.DateTimeUtils.getWeeksBetween(this.start,e),i=Math.floor(t/this.interval);(t%this.interval>0||e.getDay()>=this.dayOfWeekInternal)&&i++;var n=i*this.interval;return this.calcNextPointWithWeekCount(this.start,n)},t.prototype.calculateNearestPoint=function(e){var t=this.dayOfWeekInternal-e.getDay();return t>0?r.DateTimeUtils.addDays(new Date(e),t):this.calcNextPointWithWeekCount(e,1)},t.prototype.calcNextPointWithWeekCount=function(e,t){void 0===t&&(t=1);var i=7*t+this.dayOfWeekInternal-e.getDay();return r.DateTimeUtils.addDays(new Date(e),i)},Object.defineProperty(t.prototype,"dayOfWeek",{get:function(){return this.dayOfWeekInternal},set:function(e){this.dayOfWeekInternal=e},enumerable:!1,configurable:!0}),t}(o.RecurrenceBase);t.Weekly=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Monthly=void 0;var n=i(0),o=i(38),r=i(8),a=i(207),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.checkDate=function(e){return this._calculateByDayOfWeek?r.DateTimeUtils.checkDayOfWeekOccurrenceInMonth(e,this.dayOfWeekInternal,this.dayOfWeekOccurrenceInternal):r.DateTimeUtils.checkDayOfMonth(this.dayInternal,e)},t.prototype.checkInterval=function(e){return r.DateTimeUtils.getMonthsDifference(this.start,e)%this.interval==0},t.prototype.calculatePointByInterval=function(e){var t=this.start,i=r.DateTimeUtils.getMonthsDifference(t,e),n=Math.floor(i/this.interval)*this.interval,o=new a.MonthInfo(t.getMonth(),t.getFullYear());o.addMonths(n);var s=this.getSpecDayInMonth(o.year,o.month);return r.DateTimeUtils.compareDates(s,e)>=0&&(o.addMonths(this.interval),s=this.getSpecDayInMonth(o.year,o.month)),s},t.prototype.calculateNearestPoint=function(e){var t=e.getMonth(),i=e.getFullYear(),n=this.getSpecDayInMonth(i,t);if(r.DateTimeUtils.compareDates(n,e)>=0){var o=new a.MonthInfo(t,i);o.addMonths(1),n=this.getSpecDayInMonth(o.year,o.month)}return n},Object.defineProperty(t.prototype,"day",{get:function(){return this.dayInternal},set:function(e){this.dayInternal=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dayOfWeek",{get:function(){return this.dayOfWeekInternal},set:function(e){this.dayOfWeekInternal=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dayOfWeekOccurrence",{get:function(){return this.dayOfWeekOccurrenceInternal},set:function(e){this.dayOfWeekOccurrenceInternal=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculateByDayOfWeek",{get:function(){return this._calculateByDayOfWeek},set:function(e){this._calculateByDayOfWeek=e},enumerable:!1,configurable:!0}),t}(o.RecurrenceBase);t.Monthly=s},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MonthInfo=void 0;var n=i(8),o=function(){function e(e,t){this.month=e,this.year=t}return e.prototype.addMonths=function(e){var t=n.DateTimeUtils.getNextMonth(this.month,e),i=Math.floor(e/12);t=0&&(n+=this.interval,o=this.getSpecDayInMonth(n,this.monthInternal)),o},t.prototype.calculateNearestPoint=function(e){var t=e.getFullYear(),i=this.getSpecDayInMonth(t,this.monthInternal);return r.DateTimeUtils.compareDates(i,e)>=0&&(i=this.getSpecDayInMonth(++t,this.monthInternal)),i},Object.defineProperty(t.prototype,"month",{get:function(){return this.monthInternal},set:function(e){this.monthInternal=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"day",{get:function(){return this.dayInternal},set:function(e){this.dayInternal=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dayOfWeek",{get:function(){return this.dayOfWeekInternal},set:function(e){this.dayOfWeekInternal=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dayOfWeekOccurrence",{get:function(){return this.dayOfWeekOccurrenceInternal},set:function(e){this.dayOfWeekOccurrenceInternal=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculateByDayOfWeek",{get:function(){return this._calculateByDayOfWeek},set:function(e){this._calculateByDayOfWeek=e},enumerable:!1,configurable:!0}),t}(o.RecurrenceBase);t.Yearly=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DayWorkingTimeInfo=void 0;var n=i(56),o=i(8),r=i(55),a=function(){function e(e,t,i){void 0===e&&(e=0),void 0===t&&(t=!0),void 0===i&&(i=null),this._workingIntervals=new Array,this.dayNumber=e,this.isWorkDay=t,this.addWorkingIntervals(i)}return e.prototype.addWorkingIntervals=function(e){e&&(this._workingIntervals=this._workingIntervals.concat(e.filter((function(e){return!!e}))),this.rearrangeWorkingIntervals())},e.prototype.rearrangeWorkingIntervals=function(){for(var e=0;e-1&&ti&&(this.currentZoom=1,this.setViewType(this.settings.viewType-1,!1)),this.scrollToDateCore(t,-e)},e.prototype.zoomOut=function(e){void 0===e&&(e=this.renderHelper.getTaskAreaContainerWidth()/2);var t=this.renderHelper.getTargetDateByPos(e),i=this.settings.viewTypeRange.max;this.currentZoom>1?(this.currentZoom--,this.updateTickSizeWidth(),this.resetAndUpdate()):this.settings.viewTypeo?this.setViewType(i):nl&&(n=l*a),Math.abs(r)>d&&(r=d*s);var u=this.movingInfo.scrollLeft-n,c=this.movingInfo.scrollTop-r,h=this.taskAreaContainer;h.scrollLeft!==u&&(h.scrollLeft=u),h.scrollTop!==c&&(h.scrollTop=c)},e.prototype.calcMovingInfo=function(e){var t=this.taskAreaContainer;return{eventX:o.EvtUtils.getEventX(e),eventY:o.EvtUtils.getEventY(e),scrollLeft:t.scrollLeft,scrollTop:t.scrollTop,maxLeftDelta:t.scrollLeft,maxRightDelta:t.scrollWidth-t.scrollLeft-t.getElement().offsetWidth,maxTopDelta:t.scrollTop,maxBottomDelta:t.scrollHeight-t.scrollTop-t.getElement().offsetHeight}},e.prototype.updateGanttAreaCursor=function(e){var t=n.Browser.IE?"move":"grabbing";this.taskAreaContainer.getElement().style.cursor=e?t:"default"},e}();t.GanttMovingHelper=r}])}))},45830:function(e,t,i){"use strict"; /*! * devextreme-vue * Version: 22.2.3 * Build date: Mon Dec 05 2022 * * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/devextreme-vue */var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i1){var n=this._getNestedConfig(i.fullName);if(n)return void n._onOptionChanged(e.slice(1),t);this._tryEmitOptionChanged(i.name,t.component.option(this.fullPath?this.fullPath+"."+i.name:i.name))}else this._tryEmitOptionChanged(i.name,t.value)}},e.prototype._getNestedConfig=function(e){for(var t=0,i=this._nestedConfigurations;t1){var n=this._getNestedConfig(i.fullName);if(n)return void n._onOptionChanged(e.slice(1),t);this._tryEmitOptionChanged(i.name,t.component.option(this.fullPath?this.fullPath+"."+i.name:i.name))}else this._tryEmitOptionChanged(i.name,t.value)}},e.prototype._getNestedConfig=function(e){for(var t=0,i=this._nestedConfigurations;t1)throw new Error(s.TEMPLATE_MULTIPLE_ROOTS_ERROR);return n[0]},destroyed:function(){this.eventBus.$off("updated")}})}t.discover=h,t.mountTemplate=p},29805:function(e,t,i){"use strict"; /*! * devextreme-vue * Version: 22.2.3 * Build date: Mon Dec 05 2022 * * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/devextreme-vue */var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i1?t:t[0]:o.h("div")}},t,a)}t.discover=l,t.mountTemplate=u},54528:function(e,t,i){"use strict"; /*! * devextreme-vue * Version: 22.2.3 * Build date: Mon Dec 05 2022 * * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/devextreme-vue */var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;it=>{if(t.args.length){var i=t.args[0],o=i[t.validatingTargetName]||i.element;o&&e((0,n.Z)(o))&&(t.cancel=!0)}};s.registerExecutor({disabled:{validate:l((e=>e.is(".dx-state-disabled, .dx-state-disabled *")))},readOnly:{validate:l((e=>e.is(".dx-state-readonly, .dx-state-readonly *:not(.dx-state-independent)")))},undefined:{execute:e=>{e.action||(e.result=void 0,e.handled=!0)}},func:{execute:e=>{(0,r.mf)(e.action)&&(e.result=e.action.call(e.context,e.args[0]),e.handled=!0)}}})},49784:function(e,t,i){"use strict";var n=i(33734),o=i(50450),r=function(e,t,i){return function(){var n=this.callBase;this.callBase=e[t];try{return i.apply(this,arguments)}finally{this.callBase=n}}},a=function(e){var t=function(){};return t.prototype=e.prototype,new t},s=function(e){var t,i,n;if(!e)return this;for(i in e)n=e[i],t="function"===typeof this.prototype[i]&&"function"===typeof n,this.prototype[i]=t?r(this.parent.prototype,i,n):n;return this},l=function(){var e,t,i,n=this,o=Object.prototype.hasOwnProperty.bind(n),r=!o("_includedCtors")&&!o("_includedPostCtors");for(r&&(n._includedCtors=n._includedCtors.slice(0),n._includedPostCtors=n._includedPostCtors.slice(0)),i=0;i1&&!!this._optionsByReference[r[0]]}),!n&&this._changedCallback(e,t,o)}}_prepareRelevantNames(e,t,i,n){if((0,a.PO)(i))for(var o in i)this._prepareRelevantNames(e,"".concat(t,".").concat(o),i[o]);this._namePreparedCallbacks(e,t,i,n)}get(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._options,t=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;return p[t]=p[t]||(0,l.vb)(t),p[t](e,{functionsAsIs:!0,unwrapObservables:i})}set(e,t,i,n){for(var o in e=(0,h.GR)(e,t),e)this._prepareRelevantNames(e,o,e[o],n);for(var r in e)this._setPreparedValue(r,e[r],i,n)}onRelevantNamesPrepared(e){this._namePreparedCallbacks=e}onChanging(e){this._changingCallback=e}onChanged(e){this._changedCallback=e}dispose(){this._changingCallback=s.ZT,this._changedCallback=s.ZT}}class m{constructor(e,t,i,n){this._deprecatedCallback,this._startChangeCallback,this._endChangeCallback,this._default=t,this._deprecated=n,this._deprecatedNames=[],this._initDeprecatedNames(),this._optionManager=new g(e,i),this._optionManager.onRelevantNamesPrepared(((e,t,i,n)=>this._setRelevantNames(e,t,i,n))),this._cachedOptions={},this._rules=[]}set _initial(e){this._initialOptions=e}get _initial(){if(!this._initialOptions){var e=this._getByRules(this.silent("defaultOptionsRules"));this._initialOptions=this._default,this._optionManager._setByReference(this._initialOptions,e)}return this._initialOptions}_initDeprecatedNames(){for(var e in this._deprecated)this._deprecatedNames.push(e)}_getByRules(e){return e=Array.isArray(e)?this._rules.concat(e):this._rules,(0,h.wt)(e)}_notifyDeprecated(e){var t=this._deprecated[e];t&&this._deprecatedCallback(e,t)}_setRelevantNames(e,t,i,n){if(t){var o=this._normalizeName(t,n);o&&o!==t&&(this._setField(e,o,i),this._clearField(e,t))}}_setField(e,t,i){var n="",o=null;do{n=n?".".concat(n):"",n=(0,h.Ts)(t)+n,t=(0,h.u5)(t),o=t?this._optionManager.get(e,t,!1):e}while(!o);o[n]=i}_clearField(e,t){delete e[t];var i=(0,h.u5)(t),n=i?this._optionManager.get(e,i,!1):e;n&&delete n[(0,h.Ts)(t)]}_normalizeName(e,t){if(this._deprecatedNames.length&&e)for(var i=0;ie?e[t]:this.initial(t)),null),n=(0,a.Kn)(i)?(0,r.Z)({},i):i;this._optionManager.set(e,n,!1)}}getAliasesByName(e){return Object.keys(this._deprecated).filter((t=>e===this._deprecated[t].alias))}isDeprecated(e){return Object.prototype.hasOwnProperty.call(this._deprecated,e)}cache(e,t){var i=arguments.length<2;if(i)return this._cachedOptions[e];this._cachedOptions[e]=(0,o.l)(this._cachedOptions[e],t)}}var _=i(49784),v=i(90343),y=i(33734),C=i(94795),b=i(79494),x=i(37063),w=i(79303);class T{constructor(){this._postponedOperations={}}add(e,t,i){if(e in this._postponedOperations)i&&this._postponedOperations[e].promises.push(i);else{var n=new w.BH;this._postponedOperations[e]={fn:t,completePromise:n,promises:i?[i]:[]}}return this._postponedOperations[e].completePromise.promise()}callPostponedOperations(){for(var e in this._postponedOperations){var t=this._postponedOperations[e];(0,a.$K)(t)&&(t.promises&&t.promises.length?(0,w.gx)(...t.promises).done(t.fn).then(t.completePromise.resolve):t.fn().done(t.completePromise.resolve))}this._postponedOperations={}}}var S=e=>e.charAt(2).toLowerCase()+e.substr(3),I=e=>0===e.indexOf("_",0),E=_.Z.inherit({_setDeprecatedOptions(){this._deprecatedOptions={}},_getDeprecatedOptions(){return this._deprecatedOptions},_getDefaultOptions:()=>({onInitialized:null,onOptionChanged:null,onDisposing:null,defaultOptionsRules:null}),_defaultOptionsRules:()=>[],_setOptionsByDevice(e){this._options.applyRules(e)},_convertRulesToOptions:e=>(0,h.wt)(e),_isInitialOptionValue(e){return this._options.isInitial(e)},_setOptionsByReference(){this._optionsByReference={}},_getOptionsByReference(){return this._optionsByReference},ctor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{_optionChangedCallbacks:t,_disposingCallbacks:i}=e;this.NAME=(0,x.u2)(this.constructor),this._eventsStrategy=b.m.create(this,e.eventsStrategy),this._updateLockCount=0,this._optionChangedCallbacks=t||(0,C["default"])(),this._disposingCallbacks=i||(0,C["default"])(),this.postponedOperations=new T,this._createOptions(e)},_createOptions(e){this.beginUpdate();try{this._setOptionsByReference(),this._setDeprecatedOptions(),this._options=new m(this._getDefaultOptions(),this._getDefaultOptions(),this._getOptionsByReference(),this._getDeprecatedOptions()),this._options.onChanging(((e,t,i)=>this._initialized&&this._optionChanging(e,t,i))),this._options.onDeprecated(((e,t)=>this._logDeprecatedOptionWarning(e,t))),this._options.onChanged(((e,t,i)=>this._notifyOptionChanged(e,t,i))),this._options.onStartChange((()=>this.beginUpdate())),this._options.onEndChange((()=>this.endUpdate())),this._options.addRules(this._defaultOptionsRules()),e&&e.onInitializing&&e.onInitializing.apply(this,[e]),this._setOptionsByDevice(e.defaultOptionsRules),this._initOptions(e)}finally{this.endUpdate()}},_initOptions(e){this.option(e)},_init(){this._createOptionChangedAction(),this.on("disposing",(e=>{this._disposingCallbacks.fireWith(this,[e])}))},_logDeprecatedOptionWarning(e,t){var i=t.message||"Use the '".concat(t.alias,"' option instead");y.Z.log("W0001",this.NAME,e,t.since,i)},_logDeprecatedComponentWarning(e,t){y.Z.log("W0000",this.NAME,e,"Use the '".concat(t,"' widget instead"))},_createOptionChangedAction(){this._optionChangedAction=this._createActionByOption("onOptionChanged",{excludeValidators:["disabled","readOnly"]})},_createDisposingAction(){this._disposingAction=this._createActionByOption("onDisposing",{excludeValidators:["disabled","readOnly"]})},_optionChanged(e){switch(e.name){case"onDisposing":case"onInitialized":break;case"onOptionChanged":this._createOptionChangedAction()}},_dispose(){this._optionChangedCallbacks.empty(),this._createDisposingAction(),this._disposingAction(),this._eventsStrategy.dispose(),this._options.dispose(),this._disposed=!0},_lockUpdate(){this._updateLockCount++},_unlockUpdate(){this._updateLockCount=Math.max(this._updateLockCount-1,0)},_isUpdateAllowed(){return 0===this._updateLockCount},_isInitializingRequired(){return!this._initializing&&!this._initialized},isInitialized(){return this._initialized},_commitUpdate(){this.postponedOperations.callPostponedOperations(),this._isInitializingRequired()&&this._initializeComponent()},_initializeComponent(){this._initializing=!0;try{this._init()}finally{this._initializing=!1,this._lockUpdate(),this._createActionByOption("onInitialized",{excludeValidators:["disabled","readOnly"]})(),this._unlockUpdate(),this._initialized=!0}},instance(){return this},beginUpdate:function(){this._lockUpdate()},endUpdate:function(){this._unlockUpdate(),this._isUpdateAllowed()&&this._commitUpdate()},_optionChanging:s.ZT,_notifyOptionChanged(e,t,i){if(this._initialized)for(var n=[e].concat(this._options.getAliasesByName(e)),r=0;r((0,a.$K)(n)||(n={}),(0,a.PO)(n)||(n={actionValue:n}),i=i||new v.Z(e,(0,o.l)(t,this._defaultActionConfig())),i.execute.call(i,(0,o.l)(n,this._defaultActionArgs())))},_createActionByOption(e,t){var i,o,r,a=this,l=function(){if(!o){if(t=t||{},"string"!==typeof e)throw y.Z.Error("E0008");0===e.indexOf("on")&&(o=S(e)),r=a.option(e)}if(i||r||t.beforeExecute||t.afterExecute||a._eventsStrategy.hasEvent(o)){if(!i){var l=t.beforeExecute;t.beforeExecute=function(){for(var e=arguments.length,t=new Array(e),i=0;i{"{"!==e.trim().charAt(0)&&(e="{"+e+"}");try{return new Function("return "+e)()}catch(t){throw o.Z.Error("E3018",t,e)}}},a=["decimalSeparator","thousandsSeparator"],s=function(){if(!arguments.length)return r;var e=arguments.length<=0?void 0:arguments[0];a.forEach((t=>{if(e[t]){var i="Now, the ".concat(t," is selected based on the specified locale.");o.Z.log("W0003","config",t,"19.2",i)}})),(0,n.l)(r,e)};"undefined"!==typeof DevExpress&&DevExpress.config&&s(DevExpress.config),t["Z"]=s},30390:function(e,t,i){"use strict";var n=i(30057),o=i(57678),r=i(18274),a=i(44099),s=i(50450),l=i(63419),d=i(33734),u=i(94795),c=i(90268),h=i(20605),p=i(79494),f=i(65012),g=i(12454),m=i(44432),_=(0,r.jW)(),v=(0,r.Jj)(),y={iPhone:"iPhone",iPhone5:"iPhone",iPhone6:"iPhone",iPhone6plus:"iPhone",iPad:"iPad",iPadMini:"iPad Mini",androidPhone:"Android Mobile",androidTablet:"Android",msSurface:"Windows ARM Tablet PC",desktop:"desktop"},C={deviceType:"desktop",platform:"generic",version:[],phone:!1,tablet:!1,android:!1,ios:!1,generic:!0,grade:"A",mac:!1},b={generic(e){var t=/windows phone/i.test(e)||e.match(/WPDesktop/),i=!t&&/Windows(.*)arm(.*)Tablet PC/i.test(e),n=!t&&!i&&/msapphost/i.test(e),o=/((intel|ppc) mac os x)/.test(e.toLowerCase());if(t||i||n||o)return{deviceType:t?"phone":i?"tablet":"desktop",platform:"generic",version:[],grade:"A",mac:o}},ios(e){if(/ip(hone|od|ad)/i.test(e)){var t=/ip(hone|od)/i.test(e),i=e.match(/os (\d+)_(\d+)_?(\d+)?/i),n=i?[parseInt(i[1],10),parseInt(i[2],10),parseInt(i[3]||0,10)]:[],o=480===v.screen.height,r=o?"B":"A";return{deviceType:t?"phone":"tablet",platform:"ios",version:n,grade:r}}},android(e){if(/android|htc_|silk/i.test(e)){var t=/mobile/i.test(e),i=e.match(/android (\d+)\.?(\d+)?\.?(\d+)?/i),n=i?[parseInt(i[1],10),parseInt(i[2]||0,10),parseInt(i[3]||0,10)]:[],o=n.length>1&&(n[0]<4||4===n[0]&&n[1]<4),r=o?"B":"A";return{deviceType:t?"phone":"tablet",platform:"android",version:n,grade:r}}}};class x{constructor(e){this._window=(null===e||void 0===e?void 0:e.window)||v,this._realDevice=this._getDevice(),this._currentDevice=void 0,this._currentOrientation=void 0,this._eventsStrategy=new p.m(this),this.changed=(0,u["default"])(),(0,r.Ym)()&&(c.Z.add(this._recalculateOrientation.bind(this)),h.Z.add(this._recalculateOrientation.bind(this)))}current(e){if(e)return this._currentDevice=this._getDevice(e),this._forced=!0,void this.changed.fire();if(!this._currentDevice){e=void 0;try{e=this._getDeviceOrNameFromWindowScope()}catch(t){e=this._getDeviceNameFromSessionStorage()}finally{e||(e=this._getDeviceNameFromSessionStorage()),e&&(this._forced=!0)}this._currentDevice=this._getDevice(e)}return this._currentDevice}real(e){return(0,a.l)({},this._realDevice)}orientation(){return this._currentOrientation}isForced(){return this._forced}isRippleEmulator(){return!!this._window.tinyHippos}_getCssClasses(e){var t=[],i=this._realDevice;return e=e||this.current(),e.deviceType&&(t.push("dx-device-".concat(e.deviceType)),"desktop"!==e.deviceType&&t.push("dx-device-mobile")),t.push("dx-device-".concat(i.platform)),i.version&&i.version.length&&t.push("dx-device-".concat(i.platform,"-").concat(i.version[0])),this.isSimulator()&&t.push("dx-simulator"),(0,m.Z)().rtlEnabled&&t.push("dx-rtl"),t}attachCssClasses(e,t){this._deviceClasses=this._getCssClasses(t).join(" "),(0,o.Z)(e).addClass(this._deviceClasses)}detachCssClasses(e){(0,o.Z)(e).removeClass(this._deviceClasses)}isSimulator(){try{return this._isSimulator||(0,r.Ym)()&&this._window.top!==this._window.self&&this._window.top["dx-force-device"]||this.isRippleEmulator()}catch(e){return!1}}forceSimulator(){this._isSimulator=!0}_getDevice(e){if("genericPhone"===e&&(e={deviceType:"phone",platform:"generic",generic:!0}),(0,s.PO)(e))return this._fromConfig(e);var t;if(e){if(t=y[e],!t)throw d.Z.Error("E0005")}else t=_.userAgent;return this._fromUA(t)}_getDeviceOrNameFromWindowScope(){var e;return(0,r.Ym)()&&(this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"])&&(e=this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"]),e}_getDeviceNameFromSessionStorage(){var e=(0,f.y)();if(e){var t=e.getItem("dx-force-device");try{return JSON.parse(t)}catch(i){return t}}}_fromConfig(e){var t=(0,a.l)({},C,this._currentDevice,e),i={phone:"phone"===t.deviceType,tablet:"tablet"===t.deviceType,android:"android"===t.platform,ios:"ios"===t.platform,generic:"generic"===t.platform};return(0,a.l)(t,i)}_fromUA(e){var t;return(0,l.S6)(b,((i,n)=>(t=n(e),!t))),t?this._fromConfig(t):C}_changeOrientation(){var e=(0,o.Z)(this._window),t=(0,n.Cr)(e)>(0,n.dz)(e)?"portrait":"landscape";this._currentOrientation!==t&&(this._currentOrientation=t,this._eventsStrategy.fireEvent("orientationChanged",[{orientation:t}]))}_recalculateOrientation(){var e=(0,n.dz)(this._window);this._currentWidth!==e&&(this._currentWidth=e,this._changeOrientation())}on(e,t){return this._eventsStrategy.on(e,t),this}off(e,t){return this._eventsStrategy.off(e,t),this}}var w=new x,T=(0,g.S3)();T&&w.attachCssClasses(T),g.Wg.add(((e,t)=>{w.detachCssClasses(t),w.attachCssClasses(e)})),t["Z"]=w},71389:function(e,t,i){"use strict";i.r(t);var n=i(27154),o=i(72264),r=i(99163),a=1,s=3,l=9,d=11,u={querySelectorAll:(e,t)=>e.querySelectorAll(t),elementMatches(e,t){var i=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||(t=>{var i=e.document||e.ownerDocument;if(!i)return!1;for(var n=this.querySelectorAll(i,t),o=0;oe&&"object"===typeof e&&"nodeType"in e&&"nodeName"in e,isElementNode:e=>e&&e.nodeType===a,isTextNode:e=>e&&e.nodeType===s,isDocument:e=>e&&e.nodeType===l,isDocumentFragment:e=>e&&e.nodeType===d,removeElement(e){var t=e&&e.parentNode;t&&t.removeChild(e)},insertElement(e,t,i){e&&t&&e!==t&&(i?e.insertBefore(t,i):e.appendChild(t))},getAttribute:(e,t)=>e.getAttribute(t),setAttribute(e,t,i){e.setAttribute(t,i)},removeAttribute(e,t){e.removeAttribute(t)},setProperty(e,t,i){e[t]=i},setText(e,t){e&&(e.textContent=t)},setClass(e,t,i){1===e.nodeType&&t&&(i?e.classList.add(t):e.classList.remove(t))},setStyle(e,t,i){e.style[t]=i||""},_document:"undefined"===typeof document?void 0:document,getDocument(){return this._document},getActiveElement(e){var t=this.getRootNode(e);return t.activeElement},getRootNode(e){var t,i;return null!==(t=null===e||void 0===e||null===(i=e.getRootNode)||void 0===i?void 0:i.call(e))&&void 0!==t?t:this._document},getBody(){return this._document.body},createDocumentFragment(){return this._document.createDocumentFragment()},getDocumentElement(){return this._document.documentElement},getLocation(){return this._document.location},getSelection(){return this._document.selection},getReadyState(){return this._document.readyState},getHead(){return this._document.head},hasDocumentProperty(e){return e in this._document},listen(e,t,i,n){return e&&"addEventListener"in e?(e.addEventListener(t,i,n),()=>{e.removeEventListener(t,i)}):o.ZT},elementsFromPoint(e,t,i){var n=this.getRootNode(i);return n.host?(0,r.f)(e,t,n):n.elementsFromPoint(e,t)}};t["default"]=(0,n.Z)(u)},19728:function(e,t,i){"use strict";i.d(t,{Z:function(){return k}});var n=i(57678),o=i(44432),r=i(33734),a=i(20605),s=i(18176),l=i(50450),d=i(72264),u=i(44099),c=i(50191),h=i(10045),p=i(5491),f=3,g="template",m="dxTemplate",_="dx-template-wrapper",v=new c.k((e=>{var{model:t,parent:i}=e,o=t.widget;if(!o)return(0,n.Z)();var r=(0,n.Z)("
"),a=t.options||{};return i?i._createComponent(r,o,a):r[o](a),r}));class y{constructor(e,t){this._tempTemplates=[],this._defaultTemplates={},this._anonymousTemplateName=t||g,this._createElement=e||p.gi,this._createTemplateIfNeeded=this._createTemplateIfNeeded.bind(this)}static createDefaultOptions(){return{integrationOptions:{watchMethod:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.skipImmediate||t(e()),d.ZT},templates:{"dx-polymorph-widget":v},useDeferUpdateForTemplates:!0}}}get anonymousTemplateName(){return this._anonymousTemplateName}addDefaultTemplates(e){this._defaultTemplates=(0,u.l)({},this._defaultTemplates,e)}dispose(){this._tempTemplates.forEach((e=>{e.template.dispose&&e.template.dispose()})),this._tempTemplates=[]}extractTemplates(e){var t=this._extractTemplates(e),i=this._extractAnonymousTemplate(e);return{templates:t,anonymousTemplateMeta:i}}_extractTemplates(e){var t=(0,p.hK)(e,m),i=(0,p.ZE)(t);return t.forEach((e=>{var{element:t,options:{name:o}}=e;t===i[o]?(0,n.Z)(t).addClass(_).detach():(0,n.Z)(t).remove()})),Object.keys(i).map((e=>({name:e,template:this._createTemplate(i[e])})))}_extractAnonymousTemplate(e){var t=e.contents().detach(),i=t.filter(((e,t)=>{var i=t.nodeType===f,o=(0,n.Z)(t).text().trim().length<1;return!(i&&o)}));return i.length>0?{template:this._createTemplate(t),name:this._anonymousTemplateName}:{}}_createTemplateIfNeeded(e){var t=this._tempTemplates.filter((t=>t.source===(0,p.TM)(e)))[0];if(t)return t.template;var i=this._createTemplate(e);return this._tempTemplates.push({template:i,source:(0,p.TM)(e)}),i}_createTemplate(e){return this._createElement((0,p.v_)(e))}getTemplate(e,t,i,o){var{isAsyncTemplate:r,skipTemplates:a}=i;return(0,l.mf)(e)?new c.k((i=>{var s=e.apply(o,(0,p.Wl)(i));if(!(0,l.$K)(s))return new h.s;var d=!1,u=(0,p.t0)(s,(e=>e.nodeType||(0,l.ZU)(e)&&!(0,n.Z)(e).is("script")?new c.k((()=>e)):(d=!0,this._createTemplate(e))),t,r,a,this._defaultTemplates),f=u.render(i);return d&&u.dispose&&u.dispose(),f})):(0,p.t0)(e,this._createTemplateIfNeeded,t,r,a,this._defaultTemplates)}}var C=i(37063),b=i(99163),x=i(86403),w=i(63419),T=i(81965),S=i(18274),I=i(86859),{abstract:E}=s.w,D=s.w.inherit({_getDefaultOptions(){return(0,u.l)(this.callBase(),{width:void 0,height:void 0,rtlEnabled:(0,o.Z)().rtlEnabled,elementAttr:{},disabled:!1,integrationOptions:{}},this._useTemplates()?y.createDefaultOptions():{})},ctor(e,t){this._customClass=null,this._createElement(e),(0,C.nf)(this._$element,this,this._dispose),this.callBase(t)},_createElement(e){this._$element=(0,n.Z)(e)},_getSynchronizableOptionsForCreateComponent:()=>["rtlEnabled","disabled","templatesRenderAsynchronously"],_checkFunctionValueDeprecation:function(e){this.option("_ignoreFunctionValueDeprecation")||e.forEach((e=>{(0,l.mf)(this.option(e))&&r.Z.log("W0017",e)}))},_visibilityChanged:E,_dimensionChanged:E,_init(){this.callBase(),this._checkFunctionValueDeprecation(["width","height","maxHeight","maxWidth","minHeight","minWidth","popupHeight","popupWidth"]),this._attachWindowResizeCallback(),this._initTemplateManager()},_setOptionsByDevice(e){this.callBase([].concat(this.constructor._classCustomRules||[],e||[]))},_isInitialOptionValue(e){var t=this.constructor._classCustomRules&&Object.prototype.hasOwnProperty.call(this._convertRulesToOptions(this.constructor._classCustomRules),e);return!t&&this.callBase(e)},_attachWindowResizeCallback(){if(this._isDimensionChangeSupported()){var e=this._windowResizeCallBack=this._dimensionChanged.bind(this);a.Z.add(e)}},_isDimensionChangeSupported(){return this._dimensionChanged!==E},_renderComponent(){this._initMarkup(),(0,S.Ym)()&&this._render()},_initMarkup(){var{rtlEnabled:e}=this.option()||{};this._renderElementAttributes(),this._toggleRTLDirection(e),this._renderVisibilityChange(),this._renderDimensions()},_render(){this._attachVisibilityChangeHandlers(),(0,b.R)(this.$element())},_renderElementAttributes(){var{elementAttr:e}=this.option()||{},t=(0,u.l)({},e),i=t.class;delete t.class,this.$element().attr(t).removeClass(this._customClass).addClass(i),this._customClass=i},_renderVisibilityChange(){if(this._isDimensionChangeSupported()&&this._attachDimensionChangeHandlers(),this._isVisibilityChangeSupported()){var e=this.$element();e.addClass("dx-visibility-change-handler")}},_renderDimensions(){var e=this.$element(),t=e.get(0),i=this._getOptionValue("width",t),n=this._getOptionValue("height",t);this._isCssUpdateRequired(t,n,i)&&e.css({width:null===i?"":i,height:null===n?"":n})},_isCssUpdateRequired:(e,t,i)=>!!((0,l.$K)(i)||(0,l.$K)(t)||e.style.width||e.style.height),_attachDimensionChangeHandlers(){var e=this.$element(),t="".concat(this.NAME,"VisibilityChange");I.SI.off(e,{namespace:t}),I.SI.on(e,(()=>this._dimensionChanged()),{namespace:t})},_attachVisibilityChangeHandlers(){if(this._isVisibilityChangeSupported()){var e=this.$element(),t="".concat(this.NAME,"VisibilityChange");this._isHidden=!this._isVisible(),I.WD.off(e,{namespace:t}),I.WD.on(e,(()=>this._checkVisibilityChanged("shown")),(()=>this._checkVisibilityChanged("hiding")),{namespace:t})}},_isVisible(){var e=this.$element();return e.is(":visible")},_checkVisibilityChanged(e){var t=this._isVisible();t&&("hiding"!==e||this._isHidden?"shown"===e&&this._isHidden&&(this._isHidden=!1,this._visibilityChanged(!0)):(this._visibilityChanged(!1),this._isHidden=!0))},_isVisibilityChangeSupported(){return this._visibilityChanged!==E&&(0,S.Ym)()},_clean:d.ZT,_modelByElement(){var{modelByElement:e}=this.option(),t=this.$element();return e?e(t):void 0},_invalidate(){if(this._isUpdateAllowed())throw r.Z.Error("E0007");this._requireRefresh=!0},_refresh(){this._clean(),this._renderComponent()},_dispose(){this._templateManager&&this._templateManager.dispose(),this.callBase(),this._clean(),this._detachWindowResizeCallback()},_detachWindowResizeCallback(){this._isDimensionChangeSupported()&&a.Z.remove(this._windowResizeCallBack)},_toggleRTLDirection(e){var t=this.$element();t.toggleClass("dx-rtl",e)},_createComponent(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,d.h3)(this._getSynchronizableOptionsForCreateComponent(),(e=>!(e in i))),{integrationOptions:r}=this.option(),{nestedComponentOptions:a}=this.option();a=a||d.ZT;var s=(0,u.l)({integrationOptions:r},a(this));o.forEach((e=>s[e]=this.option(e))),this._extendConfig(i,s);var c=void 0;if((0,l.HD)(t)){var h=(0,n.Z)(e)[t](i);c=h[t]("instance")}else e&&(c=t.getInstance(e),c?c.option(i):c=new t(e,i));if(c){var p=e=>{var{name:t,value:i}=e;o.includes(t)&&c.option(t,i)};this.on("optionChanged",p),c.on("disposing",(()=>this.off("optionChanged",p)))}return c},_extendConfig(e,t){(0,w.S6)(t,((t,i)=>{!Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=i)}))},_defaultActionConfig(){var e=this.$element(),t=this._modelByElement(e);return(0,u.l)(this.callBase(),{context:t})},_defaultActionArgs(){var e=this.$element(),t=this._modelByElement(e),i=this.element();return(0,u.l)(this.callBase(),{element:i,model:t})},_optionChanged(e){switch(e.name){case"width":case"height":this._renderDimensions();break;case"rtlEnabled":this._invalidate();break;case"elementAttr":this._renderElementAttributes();break;case"disabled":case"integrationOptions":break;default:this.callBase(e)}},_removeAttributes(e){for(var t=e.attributes,i=t.length-1;i>=0;i--){var n=t[i];if(n){var{name:o}=n;o.indexOf("aria-")&&-1===o.indexOf("dx-")&&"role"!==o&&"style"!==o&&"tabindex"!==o||e.removeAttribute(o)}}},_removeClasses(e){e.className=e.className.split(" ").filter((e=>0!==e.lastIndexOf("dx-",0))).join(" ")},_updateDOMComponent(e){e?this._renderComponent():this._requireRefresh&&(this._requireRefresh=!1,this._refresh())},endUpdate(){var e=this._isInitializingRequired();this.callBase(),this._isUpdateAllowed()&&this._updateDOMComponent(e)},$element(){return this._$element},element(){var e=this.$element();return(0,T.u)(e)},dispose(){var e=this.$element().get(0);(0,x.nK)(e,!0),e.textContent="",this._removeAttributes(e),this._removeClasses(e)},resetOption(e){if(this.callBase(e),"width"===e||"height"===e){var t=this.initialOption(e);!(0,l.$K)(t)&&this.$element().css(e,"")}},_getAnonymousTemplateName(){},_initTemplateManager(){if(!this._templateManager&&this._useTemplates()){var{integrationOptions:e={}}=this.option(),{createTemplate:t}=e;this._templateManager=new y(t,this._getAnonymousTemplateName()),this._initTemplates()}},_initTemplates(){var{templates:e,anonymousTemplateMeta:t}=this._templateManager.extractTemplates(this.$element()),i=this.option("integrationOptions.templates.".concat(t.name));e.forEach((e=>{var{name:t,template:i}=e;this._options.silent("integrationOptions.templates.".concat(t),i)})),t.name&&!i&&(this._options.silent("integrationOptions.templates.".concat(t.name),t.template),this._options.silent("_hasAnonymousTemplateContent",!0))},_getTemplateByOption(e){return this._getTemplate(this.option(e))},_getTemplate(e){var t=this.option("integrationOptions.templates"),i=this.option("templatesRenderAsynchronously"),n=this.option("integrationOptions.skipTemplates");return this._templateManager.getTemplate(e,t,{isAsyncTemplate:i,skipTemplates:n},this)},_saveTemplate(e,t){this._setOptionWithoutOptionChange("integrationOptions.templates."+e,this._templateManager._createTemplate(t))},_useTemplates:()=>!0});D.getInstance=function(e){return(0,C.Bt)((0,n.Z)(e),this)},D.defaultOptions=function(e){this._classCustomRules=this._classCustomRules||[],this._classCustomRules.push(e)};var k=D},81965:function(e,t,i){"use strict";i.d(t,{u:function(){return o}});var n=function(e){return e&&e.get(0)};function o(e){return n(e)}},86403:function(e,t,i){"use strict";i.d(t,{NU:function(){return f},WD:function(){return p},aT:function(){return h},nK:function(){return g}});var n,o=i(71389),r=i(52376),a=i(43815),s=new WeakMap,l=new a.Z,d=function(){},u=function(){},c=function(e){l.fire(e),n=e;var t=n.cleanData;n.cleanData=function(e){d(e);var i=t.call(this,e);return u(e),i}};function h(){return n.data.apply(this,arguments)}function p(e){d=e}function f(e,t){return n.removeData.call(this,e,t)}function g(e,t){if(o["default"].isElementNode(e)){var i=e.getElementsByTagName("*");n.cleanData(i),t&&n.cleanData([e])}}c({data:function(){var e=arguments[0],t=arguments[1],i=arguments[2];if(e){var n=s.get(e);return n||(n={},s.set(e,n)),void 0===t?n:2===arguments.length?n[t]:(n[t]=i,i)}},removeData:function(e,t){if(e)if(void 0===t)s.delete(e);else{var i=s.get(e);i&&delete i[t]}},cleanData:function(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:{};this._events={},this._owner=e,this._options=t}static create(e,t){return t?(0,r.mf)(t)?t(e):t:new a(e)}hasEvent(e){var t=this._events[e];return!!t&&t.has()}fireEvent(e,t){var i=this._events[e];return i&&i.fireWith(this._owner,t),this._owner}on(e,t){if((0,r.PO)(e))(0,o.S6)(e,((e,t)=>{this.on(e,t)}));else{var i=this._events[e];i||(i=(0,n["default"])({syncStrategy:this._options.syncStrategy}),this._events[e]=i);var a=i.originalAdd||i.add;a.call(i,t)}}off(e,t){var i=this._events[e];i&&((0,r.mf)(t)?i.remove(t):i.empty())}dispose(){(0,o.S6)(this._events,((e,t)=>{t.empty()}))}}},68760:function(e,t,i){"use strict";var n=i(49784),o=n.Z.inherit({ctor:function(e){e&&(e=String(e)),this._value=this._normalize(e||this._generate())},_normalize:function(e){e=e.replace(/[^a-f0-9]/gi,"").toLowerCase();while(e.length<32)e+="0";return[e.substr(0,8),e.substr(8,4),e.substr(12,4),e.substr(16,4),e.substr(20,12)].join("-")},_generate:function(){for(var e="",t=0;t<32;t++)e+=Math.round(15*Math.random()).toString(16);return e},toString:function(){return this._value},valueOf:function(){return this._value},toJSON:function(){return this._value}});t["Z"]=o},43815:function(e,t,i){"use strict";i.d(t,{Z:function(){return r}});var n=i(63419),o=i(94795);class r{constructor(){this.memory=[],this.callbacks=(0,o["default"])()}add(e){(0,n.S6)(this.memory,((t,i)=>e.apply(e,i))),this.callbacks.add(e)}remove(e){this.callbacks.remove(e)}fire(){for(var e=arguments.length,t=new Array(e),i=0;i{var t=n.Z.current();return e.reduce(((e,i)=>{var{device:n,options:r}=i,s=n||{},l=(0,o.mf)(s)?s(t):c(t,s);return l&&(0,a.l)(!0,e,r),e}),{})},u=(e,t)=>"string"!==typeof e?e:{[e]:t},c=(e,t)=>(0,o.Qr)(t)||(0,r.U3)(e,[t]).length>0,h=e=>e.substr(e.lastIndexOf(".")+1),p=e=>e.substr(0,e.lastIndexOf(".")),f=function(e,t){return l[t]=l[t]||(0,s.vb)(t),l[t](e,{functionsAsIs:!0})},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e}},57678:function(e,t,i){"use strict";i.d(t,{Z:function(){return b}});var n,o=i(86403),r=i(71389),a=i(18274),s=i(50450),l=i(19071),d=i(30057),u=i(8825),c=(0,a.Jj)(),h=function(e,t){return e?"string"===typeof e?"body"===e?(this[0]=t?t.body:r["default"].getBody(),this.length=1,this):(t=t||r["default"].getDocument(),"<"===e[0]?(this[0]=r["default"].createElement(e.slice(1,-1),t),this.length=1,this):([].push.apply(this,r["default"].querySelectorAll(t,e)),this)):r["default"].isNode(e)||(0,s.FJ)(e)?(this[0]=e,this.length=1,this):Array.isArray(e)?([].push.apply(this,e),this):n(e.toArray?e.toArray():[e]):(this.length=0,this)};n=function(e,t){return new h(e,t)},n.fn={dxRenderer:!0},h.prototype=n.fn;var p=function(e,t){for(var i=0;i1&&arguments.length>1)return p.call(this,"attr",arguments);if(!this[0])return(0,s.Kn)(e)||void 0!==t?this:void 0;if(!this[0].getAttribute)return this.prop(e,t);if("string"===typeof e&&1===arguments.length){var i=this[0].getAttribute(e);return null==i?void 0:i}if((0,s.PO)(e))for(var n in e)this.attr(n,e[n]);else f(this[0],e,t);return this},h.prototype.removeAttr=function(e){return this[0]&&r["default"].removeAttribute(this[0],e),this},h.prototype.prop=function(e,t){if(!this[0])return this;if("string"===typeof e&&1===arguments.length)return this[0][e];if((0,s.PO)(e))for(var i in e)this.prop(i,e[i]);else r["default"].setProperty(this[0],e,t);return this},h.prototype.addClass=function(e){return this.toggleClass(e,!0)},h.prototype.removeClass=function(e){return this.toggleClass(e,!1)},h.prototype.hasClass=function(e){if(!this[0]||void 0===this[0].className)return!1;for(var t=e.split(" "),i=0;i=0)return!0}return!1},h.prototype.toggleClass=function(e,t){if(this.length>1)return p.call(this,"toggleClass",arguments);if(!this[0]||!e)return this;t=void 0===t?!this.hasClass(e):t;for(var i=e.split(" "),n=0;n1){for(var t=0;t1){for(var t=0;t1){for(var t=this.length-1;t>=0;t--)n(this[t]).prependTo(e);return this}return e=n(e),e[0]&&r["default"].insertElement(e[0],this[0],e[0].firstChild),this},h.prototype.appendTo=function(e){return this.length>1?p.call(this,"appendTo",arguments):(r["default"].insertElement(n(e)[0],this[0]),this)},h.prototype.insertBefore=function(e){return e&&e[0]&&r["default"].insertElement(e[0].parentNode,this[0],e[0]),this},h.prototype.insertAfter=function(e){return e&&e[0]&&r["default"].insertElement(e[0].parentNode,this[0],e[0].nextSibling),this},h.prototype.before=function(e){return this[0]&&r["default"].insertElement(this[0].parentNode,e[0],this[0]),this},h.prototype.after=function(e){return this[0]&&r["default"].insertElement(this[0].parentNode,e[0],this[0].nextSibling),this},h.prototype.wrap=function(e){if(this[0]){var t=n(e);t.insertBefore(this),t.append(this)}return this},h.prototype.wrapInner=function(e){var t=this.contents();return t.length?t.wrap(e):this.append(e),this},h.prototype.replaceWith=function(e){if(e&&e[0])return e.is(this)?this:(e.insertBefore(this),this.remove(),e)},h.prototype.remove=function(){return this.length>1?p.call(this,"remove",arguments):((0,o.nK)(this[0],!0),r["default"].removeElement(this[0]),this)},h.prototype.detach=function(){return this.length>1?p.call(this,"detach",arguments):(r["default"].removeElement(this[0]),this)},h.prototype.empty=function(){return this.length>1?p.call(this,"empty",arguments):((0,o.nK)(this[0]),r["default"].setText(this[0],""),this)},h.prototype.clone=function(){for(var e=[],t=0;t{e.forEach((e=>{var t;null===(t=this._callbacksMap.get(e.target))||void 0===t||t(e)}))}))}observe(e,t){this._callbacksMap.set(e,t),this._observer.observe(e)}unobserve(e){this._callbacksMap.delete(e),this._observer.unobserve(e)}disconnect(){this._callbacksMap.clear(),this._observer.disconnect()}}var l=new s;t["Z"]=l},20085:function(e,t,i){"use strict";i.d(t,{s:function(){return o}});var n=i(56782);class o extends n.S{constructor(e){super(),this.name=e}}},10045:function(e,t,i){"use strict";i.d(t,{s:function(){return r}});var n=i(57678),o=i(56782);class r extends o.S{_renderCore(){return(0,n.Z)()}}},50191:function(e,t,i){"use strict";i.d(t,{k:function(){return r}});var n=i(56782),o=i(25445);class r extends n.S{constructor(e){super(),this._render=e}_renderCore(e){return(0,o.H_)(this._render(e))}}},56782:function(e,t,i){"use strict";i.d(t,{S:function(){return u}});var n=i(57678),o=i(71389),r=i(94795),a=i(25445),s=i(33753),l=i(33734),d=(0,r["default"])({syncStrategy:!0});class u{render(e){e=e||{};var t,i=e.onRendered;return delete e.onRendered,t=e.renovated&&e.transclude&&this._element?(0,n.Z)("
").append(this._element).contents():this._renderCore(e),this._ensureResultInContainer(t,e.container),d.fire(t,e.container),i&&i(),t}_ensureResultInContainer(e,t){if(t){var i=(0,n.Z)(t),r=(0,a.r3)(i.get(0),e.get(0));if(i.append(e),!r){var l=o["default"].getBody().contains(i.get(0));l&&(0,s.Uo)(e)}}}_renderCore(){throw l.Z.Error("E0001")}}},43318:function(e,t,i){"use strict";i.d(t,{Z:function(){return F}});var n=i(79303),o=i(71389),r=i(18274),a=i(27154),s=(0,r.Jj)(),l={getXhr:function(){return new s.XMLHttpRequest}},d=(0,a.Z)(l),u=i(44099),c=i(50450),h=(0,r.Jj)(),p="success",f="error",g="timeout",m="nocontent",_="parsererror",v=function(e){return 200<=e&&e<300},y=function(e){return 204!==e},C=function(e){var t=[];for(var i in e){var n=e[i];void 0!==n&&(null===n&&(n=""),"function"===typeof n&&(n=n()),t.push(encodeURIComponent(i)+"="+encodeURIComponent(n)))}return t.join("&")},b=function(e){var t=o["default"].createElement("script");for(var i in e)t[i]=e[i];return t},x=function(e){e.parentNode.removeChild(e)},w=function(e){return o["default"].getHead().appendChild(e)},T=function(e){var t=b({text:e});w(t),x(t)},S=function(e){var t=b({src:e});return new Promise((function(e,i){var n={load:e,error:i},r=function(e){n[e.type](),x(t)};for(var a in n)o["default"].listen(t,a,r);w(t)}))},I=function(e){var t=e.dataType||"*",i="text/javascript, application/javascript, application/ecmascript, application/x-ecmascript",n={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",jsonp:i,script:i};return(0,u.x)(n,e.accepts,!0),n[t]?n[t]+("*"!==t?", */*; q=0.01":""):n["*"]},E=function(e){var t;return e.data&&!e.upload&&"GET"!==R(e)&&(t="application/x-www-form-urlencoded;charset=utf-8"),e.contentType||t},D=function(e){return e.responseType&&"text"!==e.responseType||"string"!==typeof e.responseText?e.response:e.responseText},k=function(e,t,i){var n=D(t);switch(i){case"jsonp":T(n);break;case"script":T(n),e.resolve(n,p,t);break;case"json":try{e.resolve(JSON.parse(n),p,t)}catch(o){e.reject(t,_,o)}break;default:e.resolve(n,p,t)}},O=function(e){if(!(0,r.Ym)())return!0;var t=!1,i=o["default"].createElement("a"),n=o["default"].createElement("a");i.href=h.location.href;try{n.href=e,n.href=n.href,t=i.protocol+"//"+i.host!==n.protocol+"//"+n.host}catch(a){t=!0}return t},A=function(e,t){return e&&setTimeout((function(){t.customStatus=g,t.abort()}),e)},P=function(e){if("jsonp"===e.dataType){var t=Math.random().toString().replace(/\D/g,""),i=e.jsonpCallback||"dxCallback"+Date.now()+"_"+t,n=e.jsonp||"callback";return e.data=e.data||{},e.data[n]=i,i}},M=function(e,t){var i=e.data,n="string"===typeof i,o=e.url||h.location.href;return n||e.cache||(i=i||{},i._=Date.now()),i&&!e.upload&&(n||(i=C(i)),"GET"===R(e)?(""!==i&&(o+=(o.indexOf("?")>-1?"&":"?")+i),i=null):t["Content-Type"]&&t["Content-Type"].indexOf("application/x-www-form-urlencoded")>-1&&(i=i.replace(/%20/g,"+"))),{url:o,parameters:i}};function R(e){return(e.method||"GET").toUpperCase()}var B=function(e){var t=e.headers||{};return t["Content-Type"]=t["Content-Type"]||E(e),t.Accept=t.Accept||I(e),e.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t},V=function(e){var t,i=d.getXhr(),o=new n.BH,r=o.promise(),a=!(0,c.$K)(e.async)||e.async,s=e.dataType,l=e.timeout||0;e.crossDomain=O(e.url);var u="jsonp"===s||"script"===s;void 0===e.cache&&(e.cache=!u);var g=P(e),_=B(e),C=M(e,_),b=C.url,x=C.parameters;if(g&&(h[g]=function(e){o.resolve(e,p,i)}),e.crossDomain&&u)return S(b).then((function(){"jsonp"!==s&&o.resolve(null,p,i)}),(function(){o.reject(i,f)})),r;if(e.crossDomain&&!("withCredentials"in i))return o.reject(i,f),r;if(i.open(R(e),b,a,e.username,e.password),a&&(i.timeout=l,t=A(l,i)),i.onreadystatechange=function(e){4===i.readyState&&(clearTimeout(t),v(i.status)?y(i.status)?k(o,i,s):o.resolve(null,m,i):o.reject(i,i.customStatus||f))},e.upload&&(i.upload.onprogress=e.upload.onprogress,i.upload.onloadstart=e.upload.onloadstart,i.upload.onabort=e.upload.onabort),e.xhrFields)for(var w in e.xhrFields)i[w]=e.xhrFields[w];for(var T in"arraybuffer"===e.responseType&&(i.responseType=e.responseType),_)Object.prototype.hasOwnProperty.call(_,T)&&(0,c.$K)(_[T])&&i.setRequestHeader(T,_[T]);return e.beforeSend&&e.beforeSend(i),i.send(x),r.abort=function(){i.abort()},r},F=(0,a.Z)({sendRequest:V})},37045:function(e,t,i){"use strict";i.d(t,{Ed:function(){return d},R1:function(){return u},Sq:function(){return c},rZ:function(){return l},sE:function(){return s},vM:function(){return h}});var n=i(50450),o=i(63370),r=i(44432);function a(e){return e.reduce(((e,t)=>{var i;return e[t]=(null!==(i=e[t])&&void 0!==i?i:0)+1,e}),{})}var s=function(e){return Array.isArray(e)?e:[e]},l=function(e){return[...new Set(e)]},d=function(e,t){var i=a(t);return e.filter((e=>i[e]--))},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=a(t);return e.filter((e=>!i[e]--))},c=function(e,t,i,a){var s={},{useLegacyVisibleIndex:l}=(0,r.Z)(),d=0,u=e=>!(0,n.$K)(e[t])&&(!a||a(e));e.forEach((e=>{var n=e[t];n>=0?(s[n]=s[n]||[],e===i?s[n].unshift(e):s[n].push(e)):e[t]=void 0})),l||e.forEach((e=>{if(u(e)){while(s[d])d++;s[d]=[e],d++}})),d=0,(0,o.jS)(s,(function(e,i){i.forEach((i=>{e>=0&&(i[t]=d++)}))})),l&&e.forEach((e=>{u(e)&&(e[t]=d++)}))},h=(e,t)=>e.reduce(((e,i)=>{var n,o=t(i);return e[o]=null!==(n=e[o])&&void 0!==n?n:[],e[o].push(i),e}),{})},31517:function(e,t,i){"use strict";var n=i(44099),o=i(18274),r=(0,o.jW)(),a=/(webkit)[ /]([\w.]+)/,s=/(mozilla)(?:.*? rv:([\w.]+))/,l=e=>{e=e.toLowerCase();var t={},i=a.exec(e)||e.indexOf("compatible")<0&&s.exec(e)||[],n=i[1],o=i[2];return"webkit"===n&&(t.webkit=!0,e.indexOf("chrome")>=0||e.indexOf("crios")>=0?(n="chrome",o=/(?:chrome|crios)\/(\d+\.\d+)/.exec(e),o=o&&o[1]):e.indexOf("fxios")>=0?(n="mozilla",o=/fxios\/(\d+\.\d+)/.exec(e),o=o&&o[1]):e.indexOf("safari")>=0&&/version|phantomjs/.test(e)?(n="safari",o=/(?:version|phantomjs)\/([0-9.]+)/.exec(e),o=o&&o[1]):(n="unknown",o=/applewebkit\/([0-9.]+)/.exec(e),o=o&&o[1])),n&&(t[n]=!0,t.version=o),t};t["Z"]=(0,n.l)({_fromUA:l},l(r.userAgent))},48714:function(e,t){"use strict";var i=function(e){var t,i=function(){return t=e.apply(this,arguments),i=function(){return t},t};return function(){return i.apply(this,arguments)}};t["Z"]=i},94795:function(e,t,i){"use strict";i.r(t);var n=function(e){this._options=e||{},this._list=[],this._queue=[],this._firing=!1,this._fired=!1,this._firingIndexes=[]};n.prototype._fireCore=function(e,t){var i=this._firingIndexes,n=this._list,o=this._options.stopOnFalse,r=i.length;for(i[r]=0;i[r]-1&&(t.splice(n,1),this._firing&&i.length))for(var o=0;o-1:!!t.length},n.prototype.empty=function(e){return this._list=[],this},n.prototype.fireWith=function(e,t){var i=this._queue;if(t=t||[],t=t.slice?t.slice():t,this._options.syncStrategy)this._firing=!0,this._fireCore(e,t);else{if(i.push([e,t]),this._firing)return;this._firing=!0;while(i.length){var n=i.shift();this._fireCore(n[0],n[1])}}return this._firing=!1,this._fired=!0,this},n.prototype.fire=function(){this.fireWith(this,arguments)},n.prototype.fired=function(){return this._fired};var o=function(e){return new n(e)};t["default"]=o},72264:function(e,t,i){"use strict";i.d(t,{C$:function(){return D},FH:function(){return I},IS:function(){return u},Rg:function(){return v},Su:function(){return _},TG:function(){return w},U3:function(){return C},Um:function(){return x},Wi:function(){return c},ZT:function(){return E},bN:function(){return y},bY:function(){return M},g0:function(){return m},h3:function(){return k},hr:function(){return S},k3:function(){return T}});var n,o=i(44432),r=i(68760),a=i(79303),s=i(78852),l=i(63419),d=i(50450),u=function(e,t){return(0,d.$K)(e)?e:t},c=function(e,t){var i=new a.BH,n=t||this,o={promise:i.promise(),abort:function(){clearTimeout(s),i.rejectWith(n)}},r=function(){var t=e.call(n);t&&t.done&&(0,d.mf)(t.done)?t.done((function(){i.resolveWith(n)})):i.resolveWith(n)},s=(arguments[2]||setTimeout)(r,"number"===typeof t?t:0);return o},h=[],p=[],f=[],g=function(e,t,i){if(n&&n!==e)return h.push(t),p.push(e),i=i||new a.BH,f.push(i),i;var o=n,r=f.length;n=e;var s=t();return s||(f.length>r?s=a.gx.apply(this,f.slice(r)):i&&i.resolve()),n=o,i&&s&&s.done&&s.done(i.resolve).fail(i.reject),!n&&h.length&&("render"===p.shift()?m:_)(h.shift(),f.shift()),s||(0,a.gx)()},m=function(e,t){return g("render",e,t)},_=function(e,t){return g("update",e,t)},v=function(e){return function(){var t=this;return g("render",(function(){return e.call(t)}))}},y=function(e){return function(){var t=this;return g("update",(function(){return e.call(t)}))}},C=function(e,t,i){var n=[],o=0;return(0,l.S6)(t,((t,r)=>{var a=0,s=i?i(r):r;(0,l.S6)(e,((e,t)=>{var i=s[e];if(void 0!==i){if(!b(i,t))return a=-1,!1;a++}})),ao&&(n.length=0,o=a),n.push(r))})),n},b=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){var i=!1;return(0,l.S6)(e,((e,n)=>{if(n!==t[e])return i=!0,!1})),!i}return e===t},x=function(e){var t,i;switch((0,d.dt)(e)){case"string":return e.split(/\s+/,2);case"object":return[null!==(t=e.x)&&void 0!==t?t:e.h,null!==(i=e.y)&&void 0!==i?i:e.v];case"number":return[e];case"array":return e;default:return null}},w=function(e,t){var i=x(e),n=t?parseFloat(i&&i[0]):parseInt(i&&i[0],10),o=t?parseFloat(i&&i[1]):parseInt(i&&i[1],10);return isFinite(n)||(n=0),isFinite(o)||(o=n),{h:n,v:o}},T=function(e){if(e instanceof r.Z)return e.toString();if((0,d.Kn)(e)||Array.isArray(e))try{var t=JSON.stringify(e);return"{}"===t?e:t}catch(i){return e}return e},S=function(e){return e.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},I=function(e){var t=(0,o.Z)().serverDecimalSeparator;return(0,d.$K)(e)&&(e=e.toString().replace(".",t)),e},E=function(){},D=function(){return(new a.BH).resolve().promise()},k=function(e,t,i){for(var n,o=[],r=!i,a=0;a2&&void 0!==arguments[2]?arguments[2]:0,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];e=(0,s.Ex)(e,!0),t=(0,s.Ex)(t,!0);var o=n?e===t:e==t;return!!(o||i>=P)||((0,d.Kn)(e)&&(0,d.Kn)(t)?A(e,t,i,n):!(!Array.isArray(e)||!Array.isArray(t))&&O(e,t,i))}},99915:function(e,t,i){"use strict";i.d(t,{k:function(){return a}});var n=i(50450),o=function(){},r=function(e){return"undefined"!==typeof console&&(0,n.mf)(console[e])?console[e].bind(console):o},a={info:r("info"),warn:r("warn"),error:r("error")};(function(){function e(e,t){if(!e)throw new Error(t)}})()},78852:function(e,t,i){"use strict";i.d(t,{Ex:function(){return x},OM:function(){return b},Zw:function(){return p},vb:function(){return v}});var n=i(33734),o=i(49784),r=i(63370),a=i(50450),s=i(63419),l=i(22866),d=l.Z.unwrap,u=l.Z.isWrapped,c=l.Z.assign,h=function(e){return e.replace(/\[/g,".").replace(/\]/g,"")},p=function(e){return h(e).split(".")},f=function(e,t,i){return i=i||{},_("this"===t?e:e[t],i)},g=function(e,t,i,o){if("this"===t)throw new n.Z.Error("E4016");var r=e[t];o.unwrapObservables&&u(r)?c(r,i):e[t]=i},m=function(e){return e=e||{},e.unwrapObservables=void 0===e.unwrapObservables||e.unwrapObservables,e};function _(e,t){return t.unwrapObservables?d(e):e}var v=function(e){if(arguments.length>1&&(e=[].slice.call(arguments)),!e||"this"===e)return function(e){return e};if("string"===typeof e){var t=p(e);return function(e,i){i=m(i);for(var n=i.functionsAsIs,o=("defaultValue"in i),r=_(e,i),s=0;s=0;t--)n=o[t],i=Math.floor(e/l(n)),i>0&&(r[n+"s"]=i,e-=v(n,i));return r},_=function(e){var t=0;return(0,n.Kn)(e)&&(0,r.S6)(e,(function(e,i){t+=v(e.substr(0,e.length-1),i)})),(0,n.HD)(e)&&(t=v(e,1)),t};function v(e,t){return l(e)*t}function y(e){var t,i=-1;return(0,n.HD)(e)?e:(0,n.Kn)(e)?((0,r.S6)(e,(function(e,n){for(t=0;t0&&a++;var l=n===c||o===c;return(a>h&&!l||54===a)&&(a=1),a;case"firstFourDays":r>3&&a++;var p=n===u||o===u;if(a>h&&!p&&(a=1),0===a){var f=ie(e.getFullYear()-1);return oe(f,t,i)}return a}}var re=function(e,t){var i=_e.getDatesInterval(e,t,"day"),n=new Date(e);return i>=6&&(n=new Date(n.setDate(n.getDate()+7))),n},ae=function(e,t,i,n){return"date"===n&&(t=t&&_e.correctDateWithUnitBeginning(t,"day"),i=i&&_e.correctDateWithUnitBeginning(i,"day"),e=e&&_e.correctDateWithUnitBeginning(e,"day")),ue(e,t,i)===e},se=function(e){var{firstMin:t,firstMax:i,secondMin:n,secondMax:o}=e;return t<=n&&n<=i||t>n&&to},le=function(e){var t=Math.floor(e),i=e%1*60;return{hours:t,minutes:i}},de=function(e,t){var i=this.dateTimeFromDecimal(t),n=new Date(e);return(e.getHours()===i.hours&&e.getMinutes()i&&(o=i),o):e}function ce(e,t){if((0,n.$K)(e)){var i=t.getHours()-e.getHours();if(0!==i){var o=1===i||-23===i?-1:1,r=new Date(t.getTime()+36e5*o);(o>0||r.getDate()===t.getDate())&&t.setTime(r.getTime())}}}var he=function(e){var t=new Date(e.getTime());return t.setHours(t.getHours()+1),t.setMinutes(0),t};function pe(e,t){return 60*(t.getTimezoneOffset()-e.getTimezoneOffset())*1e3}var fe=function(e){return new Date(e)},ge=function(e,t,i){var n=[],o=new Date(e.getTime());while(o(i<100&&e.setFullYear(i),e);r=m(t[14]),a=m(t[16]),"-"===t[13]&&(r=-r,a=-a);var l=m(t[6])-r,d=m(t[8])-a,h=m(t[10]),p=function(e){return e=e||"",m(e)*Math.pow(10,f-e.length)}(t[11]);return t[12]?s(new Date(Date.UTC(i,n,o,l,d,h,p))):s(new Date(i,n,o,l,d,h,p))}var y=function(e,t){var i=e.match(u),n="";if(!i)return i=e.match(c),i?i[3]?"HH:mm:ss":"HH:mm":void 0;for(var o=1;o=0?d:l)):e?null:void 0;var t};t["Z"]={dateParser:g,deserializeDate:C,serializeDate:b,getDateSerializationFormat:x}},79303:function(e,t,i){"use strict";i.d(t,{BH:function(){return u},gx:function(){return c},p4:function(){return l}});var n=i(50450),o=i(44099),r=i(94795),a=[{method:"resolve",handler:"done",state:"resolved"},{method:"reject",handler:"fail",state:"rejected"},{method:"notify",handler:"progress"}],s=function(){var e=this;this._state="pending",this._promise={},a.forEach(function(t){var i=t.method;this[i+"Callbacks"]=(0,r["default"])(),this[i]=function(){return this[i+"With"](this._promise,arguments)}.bind(this),this._promise[t.handler]=function(t){if(!t)return this;var n=e[i+"Callbacks"];return n.fired()?t.apply(e[i+"Context"],e[i+"Args"]):n.add(function(e,i){t.apply(e,i)}.bind(this)),this}}.bind(this)),this._promise.always=function(e){return this.done(e).fail(e)},this._promise.catch=function(e){return this.then(null,e)},this._promise.then=function(e,t){var i=new s;return["done","fail"].forEach(function(o){var r="done"===o?e:t;this[o]((function(){if(r){var e=r&&r.apply(this,arguments);(0,n.EY)(e)?e.done(i.resolve).fail(i.reject):(0,n.tI)(e)?e.then(i.resolve,i.reject):i.resolve.apply(this,(0,n.$K)(e)?[e]:arguments)}else i["done"===o?"resolve":"reject"].apply(this,arguments)}))}.bind(this)),i.promise()},this._promise.state=function(){return e._state},this._promise.promise=function(t){return t?(0,o.l)(t,e._promise):e._promise},this._promise.promise(this)};function l(e,t){if((0,n.EY)(e))return e;if((0,n.tI)(e)){var i=new s;return e.then((function(){i.resolveWith.apply(i,[t].concat([[].slice.call(arguments)]))}),(function(){i.rejectWith.apply(i,[t].concat([[].slice.call(arguments)]))})),i}return(new s).resolveWith(t,[e])}a.forEach((function(e){var t=e.method,i=e.state;s.prototype[t+"With"]=function(e,n){var o=this[t+"Callbacks"];return"pending"===this.state()&&(this[t+"Args"]=n,this[t+"Context"]=e,i&&(this._state=i),o.fire(e,n)),this}}));var d=function(){if(1===arguments.length)return l(arguments[0]);for(var e=[].slice.call(arguments),t=[],i=0,o=new s,r=function(n){return function(r){t[n]=this,e[n]=arguments.length>1?[].slice.call(arguments):r,i++,i===e.length&&o.resolveWith(t,e)}},a=0;a{var e,t=n["default"].getActiveElement();t&&t!==n["default"].getBody()&&(null===(e=t.blur)||void 0===e||e.call(t))},u=()=>{var e=l.getSelection();if(e&&"Caret"!==e.type)if(e.empty)e.empty();else if(e.removeAllRanges)try{e.removeAllRanges()}catch(t){}},c=(e,t)=>{var i=(0,o.Z)(e),n=(0,o.Z)(t);if(i[0]===n[0])return i[0];for(var r=i.parents(),a=n.parents(),s=Math.min(r.length,a.length),l=-s;l<0;l++)if(r.get(l)===a.get(l))return r.get(l)},h=e=>{e=(0,o.Z)(e);var t=e.length&&e.filter((function(){var e=(0,o.Z)(this);return e.is("script[type]")&&e.attr("type").indexOf("script")<0}));return t.length?t.eq(0).html():(e=(0,o.Z)("
").append(e),e.html())},p=e=>{var t=(0,a.$K)(e)&&(e.nodeType||(0,a.ZU)(e))?(0,o.Z)(e):(0,o.Z)("
").html(e).contents();return 1===t.length&&(t.is("script")?t=p(t.html().trim()):t.is("table")&&(t=t.children("tbody").contents())),t},f=(e,t)=>{var i=e.originalEvent&&e.originalEvent.clipboardData||l.clipboardData;if(!t)return i&&i.getData("Text");i&&i.setData("Text",t)},g=(e,t)=>!!t&&(n["default"].isTextNode(t)&&(t=t.parentNode),n["default"].isDocument(e)?e.documentElement.contains(t):(0,a.FJ)(e)?g(e.document,t):e.contains?e.contains(t):!!(t.compareDocumentPosition(e)&t.DOCUMENT_POSITION_CONTAINS)),m=(e,t,i)=>{var n=l.getComputedStyle((0,o.Z)(e).get(0)),r=i&&i.includePaddings;return(0,o.Z)("
").text(t).css({fontStyle:n.fontStyle,fontVariant:n.fontVariant,fontWeight:n.fontWeight,fontSize:n.fontSize,fontFamily:n.fontFamily,letterSpacing:n.letterSpacing,border:n.border,paddingTop:r?n.paddingTop:"",paddingRight:r?n.paddingRight:"",paddingBottom:r?n.paddingBottom:"",paddingLeft:r?n.paddingLeft:"",visibility:"hidden",whiteSpace:"pre",position:"absolute",float:"left"})},_=(e,t)=>(t&&n["default"].insertElement(e.parentNode,t,e),e),v=(e,t)=>{if(t&&t[0])return t.is(e)?e:((0,r.S6)(t,((t,i)=>{_(e[0],i)})),e.remove(),t)},y=e=>{var t=null===e||void 0===e?void 0:e.get(0),i=null===t||void 0===t?void 0:t.getRootNode().host;return!!(0,o.Z)(i||t).closest((0,s.Jj)().document).length}},2695:function(e,t,i){"use strict";i.d(t,{Z:function(){return l}});var n=i(44099),o=i(99915),r=i(73386),a=i(54978),s="http://js.devexpress.com/error/"+a.i.split(".").slice(0,2).join("_")+"/";function l(e,t){var i={ERROR_MESSAGES:(0,n.l)(t,e),Error:function(){return u([].slice.call(arguments))},log:function(e){var t="log";/^E\d+$/.test(e)?t="error":/^W\d+$/.test(e)&&(t="warn"),o.k[t]("log"===t?e:a([].slice.call(arguments)))}};function a(e){var t=e[0];return e=e.slice(1),d(t,l(t,e))}function l(e,t){return t=[i.ERROR_MESSAGES[e]].concat(t),r.WU.apply(this,t).replace(/\.*\s*?$/,"")}function d(e,t){return r.WU.apply(this,["{0} - {1}. See:\n{2}",e,t,c(e)])}function u(e){var t=e[0];e=e.slice(1);var i=l(t,e),o=c(t),r=d(t,i);return(0,n.l)(new Error(r),{__id:t,__details:i,url:o})}function c(e){return s+e}return i}},44099:function(e,t,i){"use strict";i.d(t,{l:function(){return r},x:function(){return o}});var n=i(50450),o=function(e,t,i){for(var n in e=e||{},t)if(Object.prototype.hasOwnProperty.call(t,n)){var o=t[n];n in e&&!i||(e[n]=o)}return e},r=function e(t){t=t||{};var i=1,o=!1;for("boolean"===typeof t&&(o=t,t=arguments[1]||{},i++);i\x20\t\r\n\f]+)/i,r={default:{tagsCount:0,startTags:"",endTags:""},thead:{tagsCount:1,startTags:"",endTags:"
"},td:{tagsCount:3,startTags:"",endTags:"
"},col:{tagsCount:2,startTags:"",endTags:"
"},tr:{tagsCount:2,startTags:"",endTags:"
"}};r.tbody=r.colgroup=r.caption=r.tfoot=r.thead,r.th=r.td;var a=function(e){if("string"!==typeof e)return null;var t=n["default"].createDocumentFragment(),i=t.appendChild(n["default"].createElement("div")),a=o.exec(e),s=a&&a[1].toLowerCase(),l=r[s]||r.default;i.innerHTML=l.startTags+e+l.endTags;for(var d=0;d0)&&(e=r(e)),e})).join("")},d=function(e){return r(s(e).replace(/-/g," "))},u=function(e){return(0,n.UI)(a(e),(function(e){return r(e.toLowerCase())})).join(" ")},c=["0","1","2","3","4","5","6","7","8","9"],h=function(e){var t,i,n=[],o=!1,r=!1;for(t=0;t0&&n.push(" "),n.push(i),o=r;return n.join("")}},63419:function(e,t,i){"use strict";i.d(t,{S6:function(){return o},UI:function(){return n},iY:function(){return r}});var n=(e,t)=>{if(Array.isArray(e))return e.map(t);var i=[];for(var n in e)i.push(t(e[n],n));return i},o=(e,t)=>{if(e){if("length"in e){for(var i=0;i{if(e&&"length"in e&&0!==e.length)for(var i=e.length-1;i>=0;i--)if(!1===t.call(e[i],i,e[i]))break}},94381:function(e,t,i){"use strict";i.d(t,{LO:function(){return f},Ow:function(){return d},RF:function(){return g},Xx:function(){return o},Z2:function(){return a},n$:function(){return r},zB:function(){return c}});var n=i(50450),o=function(e){return 0===e?0:e/Math.abs(e)},r=function(e,t,i){var n=!t&&0!==t,o=!i&&0!==i;return n&&(t=o?e:Math.min(e,i)),o&&(i=n?e:Math.max(e,t)),Math.min(Math.max(e,t),i)},a=function(e,t,i){return e>=t&&e<=i};function s(e){return Math.abs(parseInt(e.toExponential().split("e")[1]))}function l(e){var t=e.toExponential().split("e"),i=parseFloat(t[0]),n=parseInt(t[1]);return{exponent:n,mantissa:i}}function d(e,t){var i=l(e);return parseFloat("".concat(i.mantissa,"e").concat(i.exponent+t))}function u(){return"0.000300"!==3e-4.toPrecision(3)}function c(e,t){var i,o=h(t||0)+2,r=e.toString().split("."),a=e,l=Math.abs(e),d=(0,n.Cp)(e),c=l>1?10:0;return 1===r.length?e:(d||((0,n.Cp)(t)&&(o=r[0].length+s(t)),e=l,e=e-Math.floor(e)+c),o=u()&&s(e)>6||o>7?15:7,d||(i=parseFloat(e.toPrecision(o)).toString().split("."),i[0]!==c.toString())?parseFloat(a.toPrecision(o)):parseFloat(r[0]+"."+i[1]))}function h(e){var t=e.toString();if(t.indexOf(".")<0)return 0;var i=t.split("."),n=i[1].indexOf("e");return n>=0?n:i[1].length}function p(e,t){if(e<0&&t%2!==1)return NaN;var i=Math.pow(Math.abs(e),1/t);return t%2===1&&e<0?-i:i}function f(e,t,i,n){if(Math.abs(e)<1e-8){if(e=t,t=i,i=n,Math.abs(e)<1e-8)return e=t,t=i,Math.abs(e)<1e-8?[]:[-t/e];var o=t*t-4*e*i;return Math.abs(o)<1e-8?[-t/(2*e)]:o>0?[(-t+Math.sqrt(o))/(2*e),(-t-Math.sqrt(o))/(2*e)]:[]}var r,a,s=(3*e*i-t*t)/(3*e*e),l=(2*t*t*t-9*e*t*i+27*e*e*n)/(27*e*e*e);if(Math.abs(s)<1e-8)r=[p(-l,3)];else if(Math.abs(l)<1e-8)r=[0].concat(s<0?[Math.sqrt(-s),-Math.sqrt(-s)]:[]);else{var d=l*l/4+s*s*s/27;if(Math.abs(d)<1e-8)r=[-1.5*l/s,3*l/s];else if(d>0)a=p(-l/2-Math.sqrt(d),3),r=[a-s/(3*a)];else{a=2*Math.sqrt(-s/3);var u=Math.acos(3*l/s/a)/3,c=2*Math.PI/3;r=[a*Math.cos(u),a*Math.cos(u-c),a*Math.cos(u-2*c)]}}for(var h=0;h0?Math.floor(e):Math.ceil(e)}},63370:function(e,t,i){"use strict";i.d(t,{HR:function(){return l},d9:function(){return r},jS:function(){return a}});var n=i(50450),o=i(22866),r=function(){function e(){}return function(t){return e.prototype=t,new e}}(),a=function(e,t){var i,o,r=[];for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.push(i);for(r.sort((function(e,t){var i=(0,n.kE)(e),o=(0,n.kE)(t);return i&&o?e-t:i&&!o?-1:!i&&o?1:et?1:0})),o=0;o{var e=n["default"].listen(n["default"].getDocument(),"DOMContentLoaded",(()=>{d.fire(),e()}))})),d={add:e=>{var t=(0,r.Ym)();t&&"loading"!==n["default"].getReadyState()?e():(s.push(e),t&&l())},fire:()=>{s.forEach((e=>e())),s=[]}};t["Z"]=(0,o.Z)(d)},20605:function(e,t,i){"use strict";var n=i(18274),o=i(71389),r=i(94795),a=i(90268),s=i(48714),l=function(){var e,t=(0,r["default"])(),i=t.add,l=t.remove;if(!(0,n.Ym)())return t;var d,u=function(){var e=(0,n.Jj)();return{width:e.innerWidth,height:e.innerHeight}},c=function(){var i,n=u();n.width===e.width&&n.height===e.height||(n.width===e.width&&(i="height"),n.height===e.height&&(i="width"),e=n,t.fire(i))},h=(0,s.Z)((function(){e=u()}));return t.add=function(){var e=i.apply(t,arguments);return h(),a.Z.add((function(){!d&&t.has()&&(d=o["default"].listen((0,n.Jj)(),"resize",c))})),e},t.remove=function(){var e=l.apply(t,arguments);return!t.has()&&d&&(d(),d=void 0),e},t}();t["Z"]=l},99163:function(e,t,i){"use strict";i.d(t,{R:function(){return l},f:function(){return c}});var n="dx-",o=null;function r(e){try{return new CSSStyleSheet}catch(i){var t=e.ownerDocument.createElement("style");return e.appendChild(t),t.sheet}}function a(e,t,i){for(var n=0;n=n.left&&t=n.top&&iparseFloat(c(e,t,i,"0"))||0,r="border"===i?"-width":"";return o(e,n,"".concat(i,"-").concat(p[t][0]).concat(r))+o(e,n,"".concat(i,"-").concat(p[t][1]).concat(r))}var g=function(e,t,i){var n="width"===t?"offsetWidth":"offsetHeight",o=u(e),r=c(e,o,t);""!==r&&"auto"!==r||(r=e[n]),r=parseFloat(r)||0;var a=c(e,o,"boxSizing","content-box"),s=i||a,l=h[s],d=h[a];if(void 0===l||void 0===d)throw new Error;if(d===l)return r;var p=Math.sign(l-d),g=!1,m=!1,_=!1,v=!1;1===p&&(l+=1,d+=1);for(var y=d;y!==l;y+=p)switch(y){case h.content:break;case h.padding:g=p*f(e,t,"padding",o);break;case h.border:m=p*f(e,t,"border",o);break;case h.margin:_=p*f(e,t,"margin",o)}if(g||m){var C=(!1===g?p*f(e,t,"padding",o):g)+(!1===m?p*f(e,t,"border",o):m);v=p*Math.max(0,Math.floor(e[n]-r-p*C))||0}return r+_+g+m+v},m=function(e){return(0,r.FJ)(e)?e.innerHeight:e.offsetHeight},_=function(e,t){return e.indexOf("px")>0?e=parseInt(e.replace("px","")):e.indexOf("%")>0?e=parseInt(e.replace("%",""))*m(t)/100:isNaN(e)?e.indexOf("vh")>0&&(e=a.innerHeight/100*parseInt(e.replace("vh",""))):e=parseInt(e),e},v=function(e,t,i){if(!e)return null;if(s.indexOf(e)>-1)return t?null:e;if((0,r.HD)(e)&&(e=_(e,i)),(0,r.kE)(e))return Math.max(0,e+t);var n=t<0?" - ":" ";return"calc("+e+n+Math.abs(t)+"px)"},y=function(e,t,i){var n=v(e,t,i);return null!==n?n:"none"},C=function(e,t,i){var n=v(e,t,i);return null!==n?n:0},b=function(e,t){if(!e)return 0;var i=d("height",a.getComputedStyle(e));return i.padding+i.border+(t?i.margin:0)},x=function(e){if(e){var t=e.getBoundingClientRect();if(t.height)return t.height}return 0},w={getWidth:function(){for(var e=arguments.length,t=new Array(e),i=0;iw.getWidth(e),I=(e,t)=>w.setWidth(e,t),E=e=>w.getHeight(e),D=(e,t)=>w.setHeight(e,t),k=(e,t)=>w.getOuterWidth(e,t||!1),O=(e,t)=>w.setOuterWidth(e,t),A=(e,t)=>w.getOuterHeight(e,t||!1),P=(e,t)=>w.setOuterHeight(e,t),M=e=>w.getInnerWidth(e),R=e=>w.getInnerHeight(e),B=function e(t,i,n){var a=i.toLowerCase().indexOf("width")>=0?"Width":"Height",s=a.toLowerCase(),l=0===i.indexOf("outer"),c=0===i.indexOf("inner"),h=2===arguments.length||"boolean"===typeof n;if((0,r.ZU)(t)){if(t.length>1&&!h){for(var p=0;p(0,r.FJ)(e)?e:e.defaultView,F=e=>{if(!e.getClientRects().length)return{top:0,left:0};var t=e.getBoundingClientRect(),i=V(e.ownerDocument),n=e.ownerDocument.documentElement;return{top:t.top+i.pageYOffset-n.clientTop,left:t.left+i.pageXOffset-n.clientLeft}}},65012:function(e,t,i){"use strict";i.d(t,{y:function(){return r}});var n=i(18274),o=(0,n.Jj)(),r=function(){var e;try{e=o.sessionStorage}catch(t){}return e}},73386:function(e,t,i){"use strict";i.d(t,{$b:function(){return a},HZ:function(){return o},WU:function(){return s},xb:function(){return l}});var n=i(50450),o=function(){var e=[new RegExp("&","g"),new RegExp('"',"g"),new RegExp("'","g"),new RegExp("<","g"),new RegExp(">","g")];return function(t){return String(t).replace(e[0],"&").replace(e[1],""").replace(e[2],"'").replace(e[3],"<").replace(e[4],">")}}(),r=function(e){switch(typeof e){case"string":return e.split(/\s+/,4);case"object":return[e.x||e.h||e.left,e.y||e.v||e.top,e.x||e.h||e.right,e.y||e.v||e.bottom];case"number":return[e];default:return e}},a=function(e){var t=r(e),i=parseInt(t&&t[0],10),n=parseInt(t&&t[1],10),o=parseInt(t&&t[2],10),a=parseInt(t&&t[3],10);return isFinite(i)||(i=0),isFinite(n)||(n=i),isFinite(o)||(o=i),isFinite(a)||(a=n),{top:n,right:o,bottom:a,left:i}};function s(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),o=1;o{(0,n.HD)(t)&&(t=t.replace(/\$/g,"$$$$"));var o=new RegExp("\\{"+i+"\\}","gm");e=e.replace(o,t)})),e)}var l=function(){var e=/\s/g;return function(t){return!t||!t.replace(e,"")}}()},19071:function(e,t,i){"use strict";i.d(t,{Hj:function(){return c},QQ:function(){return _},bh:function(){return f},cl:function(){return m},gC:function(){return h}});var n=i(38192),o=i(48714),r=i(50450),a=i(71389),s=["","Webkit","Moz","O","Ms"],l={"":"",Webkit:"-webkit-",Moz:"-moz-",O:"-o-",ms:"-ms-"},d=(0,o.Z)((function(){return a["default"].createElement("dx").style})),u=function(e,t){var i;e=(0,n._A)(e,!0);for(var o=0,r=s.length;o(0,c.Li)(e),render:(e,t)=>jQuery.tmpl(e,t)}),f("jsrender",{compile:e=>(jQuery||jsrender).templates((0,c.Li)(e)),render:(e,t)=>e.render(t)}),f("mustache",{compile:e=>(0,c.Li)(e),render:(e,t)=>Mustache.render(e,t)}),f("hogan",{compile:e=>Hogan.compile((0,c.Li)(e)),render:(e,t)=>e.render(t)}),f("underscore",{compile:e=>_.template((0,c.Li)(e)),render:(e,t)=>e(t)}),f("handlebars",{compile:e=>Handlebars.compile((0,c.Li)(e)),render:(e,t)=>e(t)}),f("doT",{compile:e=>doT.template((0,c.Li)(e)),render:(e,t)=>e(t)}),f("default",{compile:e=>(0,c.H_)(e),render:(e,t,i)=>e.clone()}),g("default");class v extends u.S{constructor(e){super(),this._element=e}_renderCore(e){var t=e.transclude;return t||this._compiledTemplate||(this._compiledTemplate=m().compile(this._element)),(0,s.Z)("
").append(t?this._element:m().render(this._compiledTemplate,e.model,e.index)).contents()}source(){return(0,s.Z)(this._element).clone()}}var y=i(37045),C=i(72264),b=i(44099),x=(e,t)=>{var i=(0,s.Z)(e).contents().filter("[".concat("data-options",'*="').concat(t,'"]'));return[].slice.call(i).map((e=>{var i=(0,s.Z)(e).attr("data-options")||"";return{element:e,options:(0,o.Z)().optionsParser(i)[t]}})).filter((e=>!!e.options))},w=e=>{var t=(0,y.vM)(e,(e=>e.options.name));if(t[void 0])throw a.Z.Error("E0023");var i={};return Object.keys(t).forEach((e=>{var n,o=null===(n=(0,C.U3)(r.Z.current(),t[e],(e=>e.options))[0])||void 0===n?void 0:n.element;o&&(i[e]=o)})),i},T=e=>{var t=e.render.bind(e);return(0,b.l)({},e,{render(e){var i=t(e);return e&&e.onRendered&&e.onRendered(),i}})},S=e=>{var t=[];return"model"in e&&t.push(e.model),"index"in e&&t.push(e.index),t.push(e.container),t},I=e=>"string"===typeof e?(0,c.H_)(e):e,E=e=>(0,h.ZU)(e)&&e[0]||e,D=e=>new v(e),k=(e,t,i,n)=>{var o=null;return n&&-1!==n.indexOf(e)||(o=t[e],!o||o instanceof u.S||i||(o=T(o))),o},O=(e,t,i,n,o,r)=>null==e?new d.s:e instanceof l.s?r[e.name]:e instanceof u.S?e:(0,h.mf)(e.render)&&!(0,h.ZU)(e)?n?e:T(e):e.nodeType||(0,h.ZU)(e)?t((0,s.Z)(e)):k(e,i,n,o)||r[e]||t(e)},50450:function(e,t,i){"use strict";i.d(t,{$K:function(){return l},Cp:function(){return a},EY:function(){return y},FJ:function(){return m},HD:function(){return u},J_:function(){return s},Kn:function(){return h},PO:function(){return f},Qr:function(){return p},ZU:function(){return _},cO:function(){return C},dt:function(){return o},jn:function(){return r},kE:function(){return c},mf:function(){return d},pt:function(){return g},tI:function(){return v}});var n={"[object Array]":"array","[object Date]":"date","[object Object]":"object","[object String]":"string","[object Null]":"null"},o=function(e){var t=Object.prototype.toString.call(e);return"object"===typeof e?n[t]||"object":typeof e},r=function(e){return"boolean"===typeof e},a=function(e){return c(e)&&-1!==e.toString().indexOf("e")},s=function(e){return"date"===o(e)},l=function(e){return null!==e&&void 0!==e},d=function(e){return"function"===typeof e},u=function(e){return"string"===typeof e},c=function(e){return"number"===typeof e&&isFinite(e)||!isNaN(e-parseFloat(e))},h=function(e){return"object"===o(e)},p=function(e){var t;for(t in e)return!1;return!0},f=function(e){if(!e||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e),i=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"===typeof i&&Object.toString.call(i)===Object.toString.call(Object)},g=function(e){return-1===["object","array","function"].indexOf(o(e))},m=function(e){return null!=e&&e===e.window},_=function(e){return!!e&&!(!e.jquery&&!e.dxRenderer)},v=function(e){return!!e&&d(e.then)},y=function(e){return!!e&&d(e.done)&&d(e.fail)},C=function(e){return!(!e||!e.preventDefault)}},22866:function(e,t,i){"use strict";var n=i(99915),o=i(27154);t["Z"]=(0,o.Z)({isWrapped:function(){return!1},isWritableWrapped:function(){return!1},wrap:function(e){return e},unwrap:function(e){return e},assign:function(){n.k.error("Method 'assign' should not be used for not wrapped variables. Use 'isWrapped' method for ensuring.")}})},12454:function(e,t,i){"use strict";i.d(t,{In:function(){return u},S3:function(){return d},Wg:function(){return s}});var n=i(57678),o=i(90268),r=i(94795),a=o.Z.add,s=(0,r["default"])(),l=(0,n.Z)(),d=function(){var e;return function(t){if(!arguments.length)return e;var i=(0,n.Z)(t);l=i;var o=!!i.length,r=d();e=o?i:(0,n.Z)("body"),s.fire(o?d():(0,n.Z)(),r)}}();function u(){return l}a((function(){d(".dx-viewport")}))},18274:function(e,t,i){"use strict";i.d(t,{$n:function(){return d},Jj:function(){return s},Wf:function(){return u},Ym:function(){return r},jW:function(){return c},l$:function(){return l}});var n=i(71389),o="undefined"!==typeof window,r=()=>o,a=r()?window:void 0;a||(a={},a.window=a);var s=()=>a,l=e=>r()&&e in a,d=e=>e<768?"xs":e<992?"sm":e<1200?"md":"lg",u=e=>{var t=e||d,i=n["default"].getDocumentElement().clientWidth;return t(i)},c=()=>r()?a.navigator:{userAgent:""}},54978:function(e,t,i){"use strict";i.d(t,{i:function(){return n}});var n="22.2.3"},69721:function(e,t,i){"use strict";var n=i(49784),o=i(79494),r=i(63419),a=i(74498),s=i(11180),l=i(78852),d=i(53518),u=i(79303),c=i(72264),h=n.Z.abstract,p=d.Z.queryByOptions,f={},g=n.Z.inherit({ctor:function(e){var t=this;e=e||{},this._eventsStrategy=new o.m(this),(0,r.S6)(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","onPush","onRemoved","onRemoving","onModified","onModifying"],(function(i,n){n in e&&t.on(n.slice(2).toLowerCase(),e[n])})),this._key=e.key,this._errorHandler=e.errorHandler,this._useDefaultSearch=!0},_clearCache:c.ZT,_customLoadOptions:function(){return null},key:function(){return this._key},keyOf:function(e){return this._keyGetter||(this._keyGetter=(0,l.vb)(this.key())),this._keyGetter(e)},_requireKey:function(){if(!this.key())throw a.R0.Error("E4005")},load:function(e){var t=this;return e=e||{},this._eventsStrategy.fireEvent("loading",[e]),this._withLock(this._loadImpl(e)).done((function(i){t._eventsStrategy.fireEvent("loaded",[i,e])}))},_loadImpl:function(e){return p(this.createQuery(e),e).enumerate()},_withLock:function(e){var t=new u.BH;return e.done((function(){var e=this,i=arguments;s.LE.promise().done((function(){t.resolveWith(e,i)}))})).fail((function(){t.rejectWith(this,arguments)})),t},createQuery:h,totalCount:function(e){return this._totalCountImpl(e)},_totalCountImpl:function(e){return p(this.createQuery(e),e,!0).count()},byKey:function(e,t){return this._addFailHandlers(this._withLock(this._byKeyImpl(e,t)))},_byKeyImpl:h,insert:function(e){var t=this;return t._eventsStrategy.fireEvent("modifying"),t._eventsStrategy.fireEvent("inserting",[e]),t._addFailHandlers(t._insertImpl(e).done((function(e,i){t._eventsStrategy.fireEvent("inserted",[e,i]),t._eventsStrategy.fireEvent("modified")})))},_insertImpl:h,update:function(e,t){var i=this;return i._eventsStrategy.fireEvent("modifying"),i._eventsStrategy.fireEvent("updating",[e,t]),i._addFailHandlers(i._updateImpl(e,t).done((function(){i._eventsStrategy.fireEvent("updated",[e,t]),i._eventsStrategy.fireEvent("modified")})))},_updateImpl:h,push:function(e){var t={changes:e,waitFor:[]};this._eventsStrategy.fireEvent("beforePush",[t]),(0,u.gx)(...t.waitFor).done((()=>{this._pushImpl(e),this._eventsStrategy.fireEvent("push",[e])}))},_pushImpl:c.ZT,remove:function(e){var t=this;return t._eventsStrategy.fireEvent("modifying"),t._eventsStrategy.fireEvent("removing",[e]),t._addFailHandlers(t._removeImpl(e).done((function(e){t._eventsStrategy.fireEvent("removed",[e]),t._eventsStrategy.fireEvent("modified")})))},_removeImpl:h,_addFailHandlers:function(e){return e.fail(this._errorHandler).fail(a.S3)},on(e,t){return this._eventsStrategy.on(e,t),this},off(e,t){return this._eventsStrategy.off(e,t),this}});g.create=function(e,t){if(!(e in f))throw a.R0.Error("E4020",e);return new f[e](t)},g.registerClass=function(e,t){return t&&(f[t]=e),e},g.inherit=function(e){return function(t,i){var n=e.apply(this,[t]);return g.registerClass(n,i),n}}(g.inherit),t["Z"]=g},7045:function(e,t,i){"use strict";var n=i(49784),o=i(50450),r=i(63419),a=i(78852),s=i(79303),l=i(74498),d=i(11180),u=n.Z.inherit({toArray:function(){var e=[];this.reset();while(this.next())e.push(this.current());return e},countable:function(){return!1}}),c=u.inherit({ctor:function(e){this.array=e,this.index=-1},next:function(){return this.index+1t?1:0},g=u.inherit({ctor:function(e,t,i,n){e instanceof p||(e=new p(e,this._wrap)),this.iter=e,this.rules=[{getter:t,desc:i,compare:n}]},thenBy:function(e,t,i){var n=new g(this.sortedIter||this.iter,e,t,i);return this.sortedIter||(n.rules=this.rules.concat(n.rules)),n},next:function(){return this._ensureSorted(),this.sortedIter.next()},current:function(){return this._ensureSorted(),this.sortedIter.current()},reset:function(){delete this.sortedIter},countable:function(){return this.sortedIter||this.iter.countable()},count:function(){return this.sortedIter?this.sortedIter.count():this.iter.count()},_ensureSorted:function(){var e=this;e.sortedIter||((0,r.S6)(e.rules,(function(){this.getter=(0,a.vb)(this.getter)})),e.sortedIter=new p(new c(this.iter.toArray().sort((function(t,i){return e._compare(t,i)}))),e._unwrap))},_wrap:function(e,t){return{index:t,value:e}},_unwrap:function(e){return e.value},_compare:function(e,t){var i=e.index,n=t.index;if(e=e.value,t=t.value,e===t)return i-n;for(var o=0,r=this.rules.length;o1&&i!==n)throw new l.R0.Error("E4019");t.push(m(this)),i=n,n=!0}else n=(0,d.Lq)(this)})),function(e){for(var n=i,o=0;o(e=(0,a.Ex)(n(e)),(null!=r&&null!=e||r===e)&&t(e,r));switch(o.toLowerCase()){case"=":return t(n,r);case"<>":return t(n,r,!0);case">":return e=>s(e,((e,t)=>e>t));case"<":return e=>s(e,((e,t)=>e=":return e=>s(e,((e,t)=>e>=t));case"<=":return e=>s(e,((e,t)=>e<=t));case"startswith":return function(t){return 0===(0,a.Ex)(e(n(t))).indexOf(r)};case"endswith":return function(t){var i=(0,a.Ex)(e(n(t))),o=e(r);if(i.length-1};case"notcontains":return function(t){return-1===(0,a.Ex)(e(n(t))).indexOf(r)}}throw l.R0.Error("E4003",o)}(i)}}(),_=h.inherit({ctor:function(e,t){this.callBase(e),this.criteria=m(t)},next:function(){while(this.iter.next())if(this.criteria(this.current()))return!0;return!1}}),v=u.inherit({ctor:function(e,t){this.iter=e,this.getter=t},next:function(){return this._ensureGrouped(),this.groupedIter.next()},current:function(){return this._ensureGrouped(),this.groupedIter.current()},reset:function(){delete this.groupedIter},countable:function(){return!!this.groupedIter},count:function(){return this.groupedIter.count()},_ensureGrouped:function(){if(!this.groupedIter){var e={},t=[],i=this.iter,n=(0,a.vb)(this.getter);i.reset();while(i.next()){var o=i.current(),s=n(o);s in e?e[s].push(o):(e[s]=[o],t.push(s))}this.groupedIter=new c((0,r.UI)(t,(function(t){return{key:t,items:e[t]}})))}}}),y=h.inherit({ctor:function(e,t){this.callBase(e),this.getter=(0,a.vb)(t)},current:function(){return this.getter(this.callBase())},countable:function(){return this.iter.countable()},count:function(){return this.iter.count()}}),C=h.inherit({ctor:function(e,t,i){this.callBase(e),this.skip=Math.max(0,t),this.take=Math.max(0,i),this.pos=0},next:function(){if(this.pos>=this.skip+this.take)return!1;while(this.pos=0)return t}function p(e,t,i,n){return n?h(e,t,i,n)||[]:t}function f(e,t){if(e.key()&&(!t._dataByKeyMap||t._dataByKeyMapLength!==t.length)){for(var i={},n=t.length,o=0;o{var i="insert"===e.type?c:p(t,c,e.key,r);switch(!l&&f(t,i),e.type){case"update":x(t,i,e.key,e.data,!0,s,d);break;case"insert":w(t,i,e.data,a&&(0,o.$K)(e.index)?e.index:-1,!0,d,u);break;case"remove":T(t,i,e.key,!0,d)}})),c}function b(e,t,i){return e?t&&l.R0.log(i):(0,u.Q2)(l.R0.Error(i))}function x(e,t,i,n,a,s,l){var h,p=e.key();if(p){if(c(n,p)&&!(0,u.OI)(p,i,e.keyOf(n)))return b(a,l,"E4017");if(h=g(t,i),!h){var f=S(e,t,i);if(f<0)return b(a,l,"E4009");if(h=t[f],!0===s&&(0,o.$K)(h)){var m=y(h,n);return t[f]=m,!a&&(0,u.F$)(m,i)}}}else h=i;if((0,d.HR)(h,n,!0),!a)return(0,r.Z)().useLegacyStoreResult?(0,u.F$)(i,n):(0,u.F$)(h,i)}function w(e,t,i,n,d,c,h){var p,f=e.key(),g=(0,o.PO)(i)&&!h?(0,s.l)({},i):i;if(f){if(p=e.keyOf(g),void 0===p||"object"===typeof p&&(0,o.Qr)(p)){if(Array.isArray(f))throw l.R0.Error("E4007");p=g[f]=String(new a.Z)}else if(void 0!==t[S(e,t,p)])return b(d,c,"E4008")}else p=g;if(n>=0?t.splice(n,0,g):t.push(g),_(t,p,g),!d)return(0,u.F$)((0,r.Z)().useLegacyStoreResult?i:g,p)}function T(e,t,i,n,o){var r=S(e,t,i);return r>-1&&(t.splice(r,1),_(t,i,null)),n?r<0?b(n,o,"E4009"):void 0:(0,u.F$)(i)}function S(e,t,i){var n=e.key();if(!m(t,i))return-1;for(var o=0,r=t.length;o-1)this.cancel(this._counter),this._counter--}}var v=n.Z.inherit({ctor(e){var t;e=(0,m.aN)(e),this._eventsStrategy=new c.m(this,{syncStrategy:!0}),this._store=e.store,this._changedTime=0;var i=0!==e.pushAggregationTimeout;if(i){var n,o,r=void 0===e.pushAggregationTimeout?()=>5*this._changedTime:e.pushAggregationTimeout,s=(0,l.xL)((e=>{n.resolve();var t=(0,f.gx)(...o);t.done((()=>this._onPush(e))),o=void 0,n=void 0}),r);this._onPushHandler=e=>{this._aggregationTimeoutId=s(e.changes),n||(n=new f.BH),o=e.waitFor,e.waitFor.push(n.promise())},this._store.on("beforePush",this._onPushHandler)}else this._onPushHandler=e=>this._onPush(e),this._store.on("push",this._onPushHandler);this._storeLoadOptions=this._extractLoadOptions(e),this._mapFunc=e.map,this._postProcessFunc=e.postProcess,this._pageIndex=void 0!==e.pageIndex?e.pageIndex:0,this._pageSize=void 0!==e.pageSize?e.pageSize:20,this._loadingCount=0,this._loadQueue=this._createLoadQueue(),this._searchValue="searchValue"in e?e.searchValue:null,this._searchOperation=e.searchOperation||"contains",this._searchExpr=e.searchExpr,this._paginate=e.paginate,this._reshapeOnPush=null!==(t=e.reshapeOnPush)&&void 0!==t&&t,(0,a.S6)(["onChanged","onLoadError","onLoadingChanged","onCustomizeLoadResult","onCustomizeStoreLoadOptions"],((t,i)=>{i in e&&this.on(i.substr(2,1).toLowerCase()+i.substr(3),e[i])})),this._operationManager=new _,this._init()},_init(){this._items=[],this._userData={},this._totalCount=-1,this._isLoaded=!1,(0,s.$K)(this._paginate)||(this._paginate=!this.group()),this._isLastPage=!this._paginate},dispose(){var e;this._store.off("beforePush",this._onPushHandler),this._store.off("push",this._onPushHandler),this._eventsStrategy.dispose(),clearTimeout(this._aggregationTimeoutId),null===(e=this._delayedLoadTask)||void 0===e||e.abort(),this._operationManager.cancelAll(),delete this._store,delete this._items,delete this._delayedLoadTask,this._disposed=!0},_extractLoadOptions(e){var t={},i=["sort","filter","select","group","requireTotalCount"],n=this._store._customLoadOptions();return n&&(i=i.concat(n)),(0,a.S6)(i,(function(){t[this]=e[this]})),t},loadOptions(){return this._storeLoadOptions},items(){return this._items},pageIndex(e){if(!(0,s.kE)(e))return this._pageIndex;this._pageIndex=e,this._isLastPage=!this._paginate},paginate(e){if(!(0,s.jn)(e))return this._paginate;this._paginate!==e&&(this._paginate=e,this.pageIndex(0))},pageSize(e){if(!(0,s.kE)(e))return this._pageSize;this._pageSize=e},isLastPage(){return this._isLastPage},generateStoreLoadOptionAccessor(e){return t=>{var i=(0,m.ir)(t);if(void 0===i)return this._storeLoadOptions[e];this._storeLoadOptions[e]=i}},sort(){for(var e=arguments.length,t=new Array(e),i=0;i1&&(e=[].slice.call(arguments)),this._searchExpr=e,this.pageIndex(0)},store(){return this._store},key(){var e;return null===(e=this._store)||void 0===e?void 0:e.key()},totalCount(){return this._totalCount},isLoaded(){return this._isLoaded},isLoading(){return this._loadingCount>0},beginLoading(){this._changeLoadingCount(1)},endLoading(){this._changeLoadingCount(-1)},_createLoadQueue:()=>g(),_changeLoadingCount(e){var t=this.isLoading();this._loadingCount+=e;var i=this.isLoading();t^i&&this._eventsStrategy.fireEvent("loadingChanged",[i])},_scheduleLoadCallbacks(e){this.beginLoading(),e.always((()=>{this.endLoading()}))},_scheduleFailCallbacks(e){var t=this;e.fail((function(){for(var e=arguments.length,i=new Array(e),n=0;nthis._fireChanged()))},loadSingle(e,t){var i=new f.BH,n=this.key(),o=this._store,r=this._createStoreLoadOptions();return this._scheduleFailCallbacks(i),arguments.length<2&&(t=e,e=n),delete r.skip,delete r.group,delete r.refresh,delete r.pageIndex,delete r.searchString,(()=>e===n||o instanceof u.Z&&!o._byKeyViaLoad()?o.byKey(t,r):(r.take=1,r.filter=r.filter?[r.filter,[e,t]]:[e,t],o.load(r)))().fail(i.reject).done((e=>{var t=Array.isArray(e)&&!e.length;!(0,s.$K)(e)||t?i.reject(new h.R0.Error("E4009")):(Array.isArray(e)||(e=[e]),i.resolve(this._applyMapFunction(e)[0]))})),i.promise()},load(){var e=new f.BH,t=()=>{if(!this._disposed&&(0,m.zR)(e))return this._loadFromStore(i,e)};this._scheduleLoadCallbacks(e),this._scheduleFailCallbacks(e),this._scheduleChangedCallbacks(e);var i=this._createLoadOperation(e);return this._eventsStrategy.fireEvent("customizeStoreLoadOptions",[i]),this._loadQueue.add((()=>("number"===typeof i.delay?this._delayedLoadTask=(0,r.Wi)(t,i.delay):t(),e.promise()))),e.promise({operationId:i.operationId})},_onPush(e){if(this._reshapeOnPush)this.load();else{var t={changes:e};this._eventsStrategy.fireEvent("changing",[t]);var i=this.group(),n=this.items(),o=0,r=this.paginate()||i?e.filter((e=>"update"===e.type)):e;i&&(o=Array.isArray(i)?i.length:1),this._mapFunc&&r.forEach((e=>{"insert"===e.type&&(e.data=this._mapFunc(e.data))})),t.postProcessChanges&&(r=t.postProcessChanges(r)),(0,d.ii)({keyInfo:this.store(),data:n,changes:r,groupCount:o,useInsertIndex:!0}),this._fireChanged([{changes:e}])}},_createLoadOperation(e){var t=this._operationManager.add(e),i=this._createStoreLoadOptions();return e.always((()=>this._operationManager.remove(t))),{operationId:t,storeLoadOptions:i}},reload(){var e=this.store();return e._clearCache(),this._init(),this.load()},cancel(e){return this._operationManager.cancel(e)},cancelAll(){return this._operationManager.cancelAll()},_addSearchOptions(e){this._disposed||(this.store()._useDefaultSearch?this._addSearchFilter(e):(e.searchOperation=this._searchOperation,e.searchValue=this._searchValue,e.searchExpr=this._searchExpr))},_createStoreLoadOptions(){var e=(0,o.l)({},this._storeLoadOptions);return this._addSearchOptions(e),this._paginate&&this._pageSize&&(e.skip=this._pageIndex*this._pageSize,e.take=this._pageSize),e.userData=this._userData,e},_addSearchFilter(e){var t=this._searchValue,i=this._searchOperation,n=this._searchExpr,o=[];t&&(n||(n="this"),Array.isArray(n)||(n=[n]),(0,a.S6)(n,(function(e,n){o.length&&o.push("or"),o.push([n,i,t])})),e.filter?e.filter=[o,e.filter]:e.filter=o)},_loadFromStore(e,t){var i=(i,n)=>{if(!this._disposed&&(0,m.zR)(t)){var r=(0,o.l)((0,m.r6)(i,n),e);this._eventsStrategy.fireEvent("customizeLoadResult",[r]),(0,f.gx)(r.data).done((e=>{r.data=e,this._processStoreLoadResult(r,t)})).fail(t.reject)}};return e.data?(new f.BH).resolve(e.data).done(i):this.store().load(e.storeLoadOptions).done(i).fail(t.reject)},_processStoreLoadResult(e,t){var i=e.data,n=e.extra,o=e.storeLoadOptions,r=()=>(this._isLoaded=!0,this._totalCount=isFinite(n.totalCount)?n.totalCount:-1,t.resolve(i,n));this._disposed||(i=this._applyPostProcessFunction(this._applyMapFunction(i)),(0,s.Kn)(n)||(n={}),this._items=i,(!i.length||!this._paginate||this._pageSize&&i.length{this.store().totalCount(o).done((function(e){n.totalCount=e,r()})).fail(t.reject)})():r())},_applyMapFunction(e){return this._mapFunc?(0,m.YI)(e,this._mapFunc,this.group()):e},_applyPostProcessFunction(e){return this._postProcessFunc?this._postProcessFunc(e):e},on(e,t){return this._eventsStrategy.on(e,t),this},off(e,t){return this._eventsStrategy.off(e,t),this}})},73322:function(e,t,i){"use strict";i.d(t,{NE:function(){return f},YI:function(){return y},aN:function(){return T},ir:function(){return m},r6:function(){return C},zR:function(){return g}});var n=i(39299),o=i(3802),r=i(43318),a=i(69721),s=i(93078),l=i(63419),d=i(91029),u=i(44099),c=i(50450),h=i(11180),p=["items"],f="canceled",g=e=>"pending"===e.state(),m=e=>{switch(e.length){case 0:return;case 1:return e[0]}return[].slice.call(e)},_=(e,t,i)=>(0,l.UI)(e,(e=>{var r=(0,o.Z)(e,p);return(0,n.Z)({},r,{items:v(e.items,t-1,i)})})),v=(e,t,i)=>Array.isArray(e)?t?_(e,t,i):(0,l.UI)(e,i):e,y=(e,t,i)=>{var n=i?(0,h.G5)(i).length:0;return v(e,n,t)},C=(e,t)=>{var i;return null!==(i=e)&&void 0!==i&&i.data&&(t=e,e=e.data),Array.isArray(e)||(e=[e]),{data:e,extra:t}},b=e=>{var t={};return(0,l.S6)(["useDefaultSearch","key","load","loadMode","cacheRawData","byKey","lookup","totalCount","insert","update","remove"],(function(){t[this]=e[this],delete e[this]})),new d.Z(t)},x=e=>{var t=e.type;return delete e.type,a.Z.create(t,e)},w=(e,t)=>new d.Z({load:()=>r.Z.sendRequest({url:e,dataType:"json"}),loadMode:null===t||void 0===t?void 0:t.fromUrlLoadMode}),T=(e,t)=>{var i;return"string"===typeof e&&(e={paginate:!1,store:w(e,t)}),void 0===e&&(e=[]),e=Array.isArray(e)||e instanceof a.Z?{store:e}:(0,u.l)({},e),void 0===e.store&&(e.store=[]),i=e.store,"load"in e?i=b(e):Array.isArray(i)?i=new s.Z(i):(0,c.PO)(i)&&(i=x((0,u.l)({},i))),e.store=i,e}},74498:function(e,t,i){"use strict";i.d(t,{R0:function(){return r},S3:function(){return s}});var n=i(2695),o=i(33734),r=(0,n.Z)(o.Z.ERROR_MESSAGES,{E4000:"[DevExpress.data]: {0}",E4001:"Unknown aggregating function is detected: '{0}'",E4002:"Unsupported OData protocol version is used",E4003:"Unknown filter operation is used: {0}",E4004:"The thenby() method is called before the sortby() method",E4005:"Store requires a key expression for this operation",E4006:"ArrayStore 'data' option must be an array",E4007:"Compound keys cannot be auto-generated",E4008:"Attempt to insert an item with a duplicated key",E4009:"Data item cannot be found",E4010:"CustomStore does not support creating queries",E4011:"Custom Store method is not implemented or is not a function: {0}",E4012:"Custom Store method returns an invalid value: {0}",E4013:"Local Store requires the 'name' configuration option is specified",E4014:"Unknown data type is specified for ODataStore: {0}",E4015:"Unknown entity name or alias is used: {0}",E4016:"The compileSetter(expr) method is called with 'self' passed as a parameter",E4017:"Keys cannot be modified",E4018:"The server has returned a non-numeric value in a response to an item count request",E4019:"Mixing of group operators inside a single group of filter expression is not allowed",E4020:"Unknown store type is detected: {0}",E4021:"The server response does not provide the totalCount value",E4022:"The server response does not provide the groupCount value",E4023:"Could not parse the following XML: {0}",E4024:"String function {0} cannot be used with the data field {1} of type {2}.",W4000:"Data returned from the server has an incorrect structure",W4001:'The {0} field is listed in both "keyType" and "fieldTypes". The value of "fieldTypes" is used.',W4002:"Data loading has failed for some cells due to the following error: {0}"}),a=null,s=function(e){var t;null===(t=a)||void 0===t||t(e)}},69164:function(e,t,i){"use strict";i.d(t,{Z:function(){return p}});var n=i(7045),o={},r=i(74498),a=i(63419),s=i(50450),l=i(79303),d=function e(t,i,d){d=d||[],i=i||{};var u=function(e,t){return{name:e,args:t}},c=function(e){var c,h,p,f,g,m=new l.BH,_=function(e){var t=i.errorHandler;t&&t(e),(0,r.S3)(e),m.reject(e)};function v(e){switch(e.name){case"sortBy":return g=[e.args],!0;case"thenBy":if(!g)throw r.R0.Error("E4004");return g.push(e.args),!0}return!1}try{c=i.adapter,(0,s.mf)(c)||(c=o[c]),h=c(i),p=[].concat(d).concat(e);var y=h.optimize;y&&y(p);while(p.length){if(f=p[0],!v(f)){if(g){p.unshift(u("multiSort",[g])),g=null;continue}if("enumerate"!==String(f.name)&&(!h[f.name]||!1===h[f.name].apply(h,f.args)))break}p.shift()}!function(){var e=p[0],t=[];e&&"multiSort"===e.name&&(p.shift(),(0,a.S6)(e.args[0],(function(){t.push(u(t.length?"thenBy":"sortBy",this))}))),p=t.concat(p)}(),h.exec(t).done((function(e,t){if(p.length){var o=(0,n.Z)(e,{errorHandler:i.errorHandler});(0,a.S6)(p,(function(){o=o[this.name].apply(o,this.args)})),o.done(m.resolve).fail(m.reject)}else m.resolve(e,t)})).fail(_)}catch(C){_(C)}return m.promise()},h={};return(0,a.S6)(["sortBy","thenBy","filter","slice","select","groupBy"],(function(){var n=String(this);h[n]=function(){return e(t,i,d.concat(u(n,arguments)))}})),(0,a.S6)(["count","min","max","sum","avg","aggregate","enumerate"],(function(){var e=String(this);h[e]=function(){return c.call(this,u(e,arguments))}})),h},u=d,c={array:n.Z,remote:u},h=function(){var e=Array.isArray(arguments[0])?"array":"remote";return c[e].apply(this,arguments)},p=h},53518:function(e,t,i){"use strict";var n=i(72264),o=i(44099),r=i(63419),a=i(7045),s=i(11180);function l(e,t){return e=e.groupBy(t[0].selector),t.length>1&&(e=e.select((function(e){return(0,o.l)({},e,{items:l((0,a.Z)(e.items),t.slice(1)).toArray()})}))),e}function d(e,t){var i=[];return(0,r.S6)(e,(function(e,o){var r=(0,n.h3)(t,(function(e){return o.selector===e.selector}));r.length<1&&i.push(o)})),i.concat(t)}function u(e,t,i){t=t||{};var n=t.filter;if(n&&(e=e.filter(n)),i)return e;var o=t.sort,a=t.select,u=t.group,c=t.skip,h=t.take;return u&&(u=(0,s.G5)(u),u.keepInitialKeyOrder=!!t.group.keepInitialKeyOrder),(o||u)&&(o=(0,s.G5)(o||[]),u&&!u.keepInitialKeyOrder&&(o=d(u,o)),(0,r.S6)(o,(function(t){e=e[t?"thenBy":"sortBy"](this.selector,this.desc,this.compare)}))),a&&(e=e.select(a)),u&&(e=l(e,u)),(h||c)&&(e=e.slice(c||0,h)),e}t["Z"]={multiLevelGroup:l,arrangeSortingInfo:d,queryByOptions:u}},11180:function(e,t,i){"use strict";i.d(t,{C5:function(){return c},DE:function(){return h},ER:function(){return f},F$:function(){return x},G5:function(){return p},IN:function(){return b},LE:function(){return m},Lq:function(){return _},OI:function(){return v},Q2:function(){return w},bG:function(){return g},hi:function(){return y},xL:function(){return S}});var n=i(50450),o=i(71389),r=i(90268),a=i(18274),s=i(63419),l=i(79303),d=i(72264),u=r.Z.add,c="DEVEXTREME_XHR_ERROR_UNLOAD",h=function(e){return[e[0],e.length<3?"=":String(e[1]).toLowerCase(),e.length<2||e[e.length-1]]},p=function(e){return Array.isArray(e)||(e=[e]),(0,s.UI)(e,(function(e){var t={selector:(0,n.mf)(e)||"string"===typeof e?e:e.getter||e.field||e.selector,desc:!(!e.desc&&"d"!==String(e.dir).charAt(0).toLowerCase())};return e.compare&&(t.compare=e.compare),t}))},f=function(){var e,t={timeout:"Network connection timeout",error:"Unspecified network error",parsererror:"Unexpected server response"};return u((function(){var t=(0,a.Jj)();o["default"].listen(t,"beforeunload",(function(){e=!0}))})),function(i,n){return e?c:i.status<400?function(e){var i=t[e];return i||e}(n):i.statusText}}(),g={count:{seed:0,step:function(e){return 1+e}},sum:{seed:0,step:function(e,t){return e+t}},min:{step:function(e,t){return te?t:e}},avg:{seed:[0,0],step:function(e,t){return[e[0]+t,e[1]+1]},finalize:function(e){return e[1]?e[0]/e[1]:NaN}}},m=function(){var e,t=0;return{obtain:function(){0===t&&(e=new l.BH),t++},release:function(){t--,t<1&&e.resolve()},promise:function(){var i=0===t?(new l.BH).resolve():e;return i.promise()},reset:function(){t=0,e&&e.resolve()}}}();function _(e){return/^(and|&&|&)$/i.test(e)}var v=function(e,t,i){if(Array.isArray(e)){for(var n,o=(0,s.UI)(t,(function(e,t){return t})),r=0;r{i=void 0,e.call(this)}),(0,n.mf)(t)?t():t)),i}}function S(e,t){var i=[],n=T((function(){e.call(this,i),i=[]}),t);return function(e){return Array.isArray(e)&&i.push(...e),n.call(this,i)}}},95060:function(e,t,i){"use strict";i.d(t,{Z:function(){return y}});var n=i(70710),o=i(44099),r=i(73322),a=i(72264),s=i(79303),l={load:()=>(0,s.BH)().reject(),loadSingle:()=>(0,s.BH)().reject(),loadFromStore:()=>(0,s.BH)().reject(),loadNextPage:()=>(0,s.BH)().reject(),loadOptions:a.ZT,userData:a.ZT,cancel:a.ZT,cancelAll:a.ZT,filter:a.ZT,addSearchFilter:a.ZT,group:a.ZT,paginate:a.ZT,pageSize:a.ZT,pageIndex:a.ZT,resetDataSourcePageIndex:a.ZT,totalCount:a.ZT,isLastPage:a.ZT,isLoading:a.ZT,isLoaded:a.ZT,searchValue:a.ZT,searchOperation:a.ZT,searchExpr:a.ZT,select:a.ZT,key:a.ZT,keyOf:a.ZT,store:a.ZT,items:a.ZT,applyMapFunction:a.ZT,getDataSource:a.ZT,reload:a.ZT,on:a.ZT,off:a.ZT};class d{constructor(e){if(!e)return l;this._dataSource=e}load(){return this._dataSource.load()}loadSingle(e,t){return arguments.length<2&&(t=e,e=this.key()),this._dataSource.loadSingle(e,t)}loadFromStore(e){return this.store().load(e)}loadNextPage(){return this.pageIndex(1+this.pageIndex()),this.load()}loadOptions(){return this._dataSource.loadOptions()}userData(){return this._dataSource._userData}cancel(e){this._dataSource.cancel(e)}cancelAll(){this._dataSource.cancelAll()}filter(e){return this._dataSource.filter(e)}addSearchFilter(e){this._dataSource._addSearchFilter(e)}group(e){return this._dataSource.group(e)}paginate(){return this._dataSource.paginate()}pageSize(){return this._dataSource._pageSize}pageIndex(e){return this._dataSource.pageIndex(e)}resetDataSourcePageIndex(){this.pageIndex()&&(this.pageIndex(0),this.load())}totalCount(){return this._dataSource.totalCount()}isLastPage(){return this._dataSource.isLastPage()||!this._dataSource._pageSize}isLoading(){return this._dataSource.isLoading()}isLoaded(){return this._dataSource.isLoaded()}searchValue(e){return arguments.length?this._dataSource.searchValue(e):this._dataSource.searchValue()}searchOperation(e){return this._dataSource.searchOperation(e)}searchExpr(e){return arguments.length?this._dataSource.searchExpr(e):this._dataSource.searchExpr()}select(){return this._dataSource.select(...arguments)}key(){return this._dataSource.key()}keyOf(e){return this.store().keyOf(e)}store(){return this._dataSource.store()}items(){return this._dataSource.items()}applyMapFunction(e){return this._dataSource._applyMapFunction(e)}getDataSource(){return this._dataSource||null}reload(){return this._dataSource.reload()}on(e,t){this._dataSource.on(e,t)}off(e,t){this._dataSource.off(e,t)}}var u=d,c="_dataSourceOptions",h="_dataSourceChangedHandler",p="_dataSourceLoadErrorHandler",f="_dataSourceLoadingChangedHandler",g="_dataSourceFromUrlLoadMode",m="_getSpecificDataSourceOption",_="_normalizeDataSource",v={postCtor:function(){this.on("disposing",function(){this._disposeDataSource()}.bind(this))},_refreshDataSource:function(){this._initDataSource(),this._loadDataSource()},_initDataSource:function(){var e,t,i=m in this?this[m]():this.option("dataSource");this._disposeDataSource(),i&&(i instanceof n.o?(this._isSharedDataSource=!0,this._dataSource=i):(e=c in this?this[c]():{},t=this._dataSourceType?this._dataSourceType():n.o,i=(0,r.aN)(i,{fromUrlLoadMode:g in this&&this[g]()}),this._dataSource=new t((0,o.l)(!0,{},e,i))),_ in this&&(this._dataSource=this[_](this._dataSource)),this._addDataSourceHandlers(),this._initDataController())},_initDataController:function(){var e,t=null===(e=this.option)||void 0===e?void 0:e.call(this,"_dataController"),i=this._dataSource;this._dataController=t||new u(i)},_addDataSourceHandlers:function(){h in this&&this._addDataSourceChangeHandler(),p in this&&this._addDataSourceLoadErrorHandler(),f in this&&this._addDataSourceLoadingChangedHandler(),this._addReadyWatcher()},_addReadyWatcher:function(){this._dataSource.on("loadingChanged",function(e){this._ready&&this._ready(!e)}.bind(this))},_addDataSourceChangeHandler:function(){var e=this._dataSource;this._proxiedDataSourceChangedHandler=function(t){this[h](e.items(),t)}.bind(this),e.on("changed",this._proxiedDataSourceChangedHandler)},_addDataSourceLoadErrorHandler:function(){this._proxiedDataSourceLoadErrorHandler=this[p].bind(this),this._dataSource.on("loadError",this._proxiedDataSourceLoadErrorHandler)},_addDataSourceLoadingChangedHandler:function(){this._proxiedDataSourceLoadingChangedHandler=this[f].bind(this),this._dataSource.on("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)},_loadDataSource:function(){var e=this._dataSource;e&&(e.isLoaded()?this._proxiedDataSourceChangedHandler&&this._proxiedDataSourceChangedHandler():e.load())},_loadSingle:function(e,t){return e="this"===e?this._dataSource.key()||"this":e,this._dataSource.loadSingle(e,t)},_isLastPage:function(){return!this._dataSource||this._dataSource.isLastPage()||!this._dataSource._pageSize},_isDataSourceLoading:function(){return this._dataSource&&this._dataSource.isLoading()},_disposeDataSource:function(){this._dataSource&&(this._isSharedDataSource?(delete this._isSharedDataSource,this._proxiedDataSourceChangedHandler&&this._dataSource.off("changed",this._proxiedDataSourceChangedHandler),this._proxiedDataSourceLoadErrorHandler&&this._dataSource.off("loadError",this._proxiedDataSourceLoadErrorHandler),this._proxiedDataSourceLoadingChangedHandler&&this._dataSource.off("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)):this._dataSource.dispose(),delete this._dataSource,delete this._proxiedDataSourceChangedHandler,delete this._proxiedDataSourceLoadErrorHandler,delete this._proxiedDataSourceLoadingChangedHandler)},getDataSource:function(){return this._dataSource||null}},y=v},50812:function(e,t,i){"use strict";i.d(t,{u:function(){return _}});var n=i(57678),o=i(52376),r=i(30390),a=i(71389),s=i(25445),l=i(10760),d=i(78172),u=i(14324);function c(e){return e&&[e.target,e.delegateTarget,e.relatedTarget,e.currentTarget].filter((e=>!!e))}var h=(e,t)=>{o.Z.one(c(e),u.x,t)},p=(e,t)=>{o.Z.off(c(e),u.x,t)},f=i(91866),g=i(36494),m=i(32369),_="dxclick",v=(l.U,l.W,null),y=null,C=()=>{y=null},b=function(e){var t=e.originalEvent,i=y===t||t&&t.DXCLICK_FIRED,n=!e.which||1===e.which;!n||v||i||(t&&(t.DXCLICK_FIRED=!0),p(y,C),y=t,h(y,C),(0,d.BX)({type:_,originalEvent:e}))},x=g.Z.inherit({ctor:function(e){this.callBase(e),o.Z.on(this.getElement(),"click",b)},start:function(e){v=null},cancel:function(){v=!0},dispose:function(){o.Z.off(this.getElement(),"click",b)}});!function(){var e=r.Z.real().generic;if(!e){var t=null,i=!1,l=a["default"].getDocument();o.Z.subscribeGlobal(l,(0,d.V4)(f.Z.down,"NATIVE_CLICK_FIXER"),(function(e){t=e.target,i=e.isDefaultPrevented()})),o.Z.subscribeGlobal(l,(0,d.V4)("click","NATIVE_CLICK_FIXER"),(function(e){var o,r=(0,n.Z)(e.target);i||!t||r.is(t)||(0,n.Z)(t).is("label")||(o=r,!(0,n.Z)(o).is("input, textarea, select, button ,:focus, :focus *"))||(0,s.M3)(),t=null,i=!1}))}}(),(0,m.Z)({emitter:x,bubble:!0,events:[_]})},36494:function(e,t,i){"use strict";var n=i(57678),o=i(72264),r=i(49784),a=i(94795),s=i(44099),l=i(78172),d=r.Z.inherit({ctor:function(e){this._$element=(0,n.Z)(e),this._cancelCallback=(0,a["default"])(),this._acceptCallback=(0,a["default"])()},getElement:function(){return this._$element},validate:function(e){return!(0,l.pR)(e)},validatePointers:function(e){return 1===(0,l.G7)(e)},allowInterruptionByMouseWheel:function(){return!0},configure:function(e){(0,s.l)(this,e)},addCancelCallback:function(e){this._cancelCallback.add(e)},removeCancelCallback:function(){this._cancelCallback.empty()},_cancel:function(e){this._cancelCallback.fire(this,e)},addAcceptCallback:function(e){this._acceptCallback.add(e)},removeAcceptCallback:function(){this._acceptCallback.empty()},_accept:function(e){this._acceptCallback.fire(this,e)},_requestAccept:function(e){this._acceptRequestEvent=e},_forgetAccept:function(){this._accept(this._acceptRequestEvent),this._acceptRequestEvent=null},start:o.ZT,move:o.ZT,end:o.ZT,cancel:o.ZT,reset:function(){this._acceptRequestEvent&&this._accept(this._acceptRequestEvent)},_fireEvent:function(e,t,i){var n=(0,s.l)({type:e,originalEvent:t,target:this._getEmitterTarget(t),delegateTarget:this.getElement().get(0)},i);return t=(0,l.BX)(n),t.cancel&&this._cancel(t),t},_getEmitterTarget:function(e){return(this.delegateSelector?(0,n.Z)(e.target).closest(this.delegateSelector):this.getElement()).get(0)},dispose:o.ZT});t["Z"]=d},32369:function(e,t,i){"use strict";var n=i(57678),o=i(90268),r=i(71389),a=i(52376),s=i(86403),l=i(49784),d=i(44099),u=i(63419),c=i(51709),h=i(78172),p=i(91866),f=i(78361),g="dxEventManager",m="dxEmitter",_=l.Z.inherit({ctor:function(){this._attachHandlers(),this.reset(),this._proxiedCancelHandler=this._cancelHandler.bind(this),this._proxiedAcceptHandler=this._acceptHandler.bind(this)},_attachHandlers:function(){o.Z.add(function(){var e=r["default"].getDocument();a.Z.subscribeGlobal(e,(0,h.V4)(p.Z.down,g),this._pointerDownHandler.bind(this)),a.Z.subscribeGlobal(e,(0,h.V4)(p.Z.move,g),this._pointerMoveHandler.bind(this)),a.Z.subscribeGlobal(e,(0,h.V4)([p.Z.up,p.Z.cancel].join(" "),g),this._pointerUpHandler.bind(this)),a.Z.subscribeGlobal(e,(0,h.V4)(f.u,g),this._mouseWheelHandler.bind(this))}.bind(this))},_eachEmitter:function(e){var t=this._activeEmitters||[],i=0;while(t.length>i){var n=t[i];if(!1===e(n))break;t[i]===n&&i++}},_applyToEmitters:function(e,t){this._eachEmitter((function(i){i[e].call(i,t)}))},reset:function(){this._eachEmitter(this._proxiedCancelHandler),this._activeEmitters=[]},resetEmitter:function(e){this._proxiedCancelHandler(e)},_pointerDownHandler:function(e){(0,h.N5)(e)&&e.which>1||this._updateEmitters(e)},_updateEmitters:function(e){this._isSetChanged(e)&&(this._cleanEmitters(e),this._fetchEmitters(e))},_isSetChanged:function(e){var t=this._closestEmitter(e),i=this._emittersSet||[],n=t.length!==i.length;return(0,u.S6)(t,(function(e,t){return n=n||i[e]!==t,!n})),this._emittersSet=t,n},_closestEmitter:function(e){var t=this,i=[],o=(0,n.Z)(e.target);function r(n,o){o&&o.validatePointers(e)&&o.validate(e)&&(o.addCancelCallback(t._proxiedCancelHandler),o.addAcceptCallback(t._proxiedAcceptHandler),i.push(o))}while(o.length){var a=(0,s.aT)(o.get(0),m)||[];(0,u.S6)(a,r),o=o.parent()}return i},_acceptHandler:function(e,t){var i=this;this._eachEmitter((function(n){n!==e&&i._cancelEmitter(n,t)}))},_cancelHandler:function(e,t){this._cancelEmitter(e,t)},_cancelEmitter:function(e,t){var i=this._activeEmitters;t?e.cancel(t):e.reset(),e.removeCancelCallback(),e.removeAcceptCallback();var n=i.indexOf(e);n>-1&&i.splice(n,1)},_cleanEmitters:function(e){this._applyToEmitters("end",e),this.reset(e)},_fetchEmitters:function(e){this._activeEmitters=this._emittersSet.slice(),this._applyToEmitters("start",e)},_pointerMoveHandler:function(e){this._applyToEmitters("move",e)},_pointerUpHandler:function(e){this._updateEmitters(e)},_mouseWheelHandler:function(e){this._allowInterruptionByMouseWheel()&&(e.pointers=[null],this._pointerDownHandler(e),this._adjustWheelEvent(e),this._pointerMoveHandler(e),e.pointers=[],this._pointerUpHandler(e))},_allowInterruptionByMouseWheel:function(){var e=!0;return this._eachEmitter((function(t){return e=t.allowInterruptionByMouseWheel()&&e,e})),e},_adjustWheelEvent:function(e){var t=null;if(this._eachEmitter((function(i){if(i.gesture){var n=i.getDirection(e);return"horizontal"!==n&&!e.shiftKey||"vertical"!==n&&e.shiftKey?(t=i,!1):void 0}})),t){var i=t.getDirection(e),n="both"===i&&!e.shiftKey||"vertical"===i,o=n?"pageY":"pageX";e[o]+=e.delta}},isActive:function(e){var t=!1;return this._eachEmitter((function(i){t=t||i.getElement().is(e)})),t}}),v=new _,y="dxEmitterSubscription",C=function(e){var t=e.emitter,i=e.events[0],n=e.events;(0,u.S6)(n,(function(o,r){(0,c.Z)(r,{noBubble:!e.bubble,setup:function(e){var n=(0,s.aT)(e,y)||{},o=(0,s.aT)(e,m)||{},a=o[i]||new t(e);n[r]=!0,o[i]=a,(0,s.aT)(e,m,o),(0,s.aT)(e,y,n)},add:function(e,t){var n=(0,s.aT)(e,m),o=n[i];o.configure((0,d.l)({delegateSelector:t.selector},t.data),t.type)},teardown:function(e){var t=(0,s.aT)(e,y),o=(0,s.aT)(e,m),a=o[i];delete t[r];var l=!0;(0,u.S6)(n,(function(e,i){return l=l&&!t[i],l})),l&&(v.isActive(e)&&v.resetEmitter(a),a&&a.dispose(),delete o[i])}})}))};t["Z"]=C},51709:function(e,t,i){"use strict";var n=i(63419),o=i(968),r=function(e,t){var i={};"noBubble"in t&&(i.noBubble=t.noBubble),"bindType"in t&&(i.bindType=t.bindType),"delegateType"in t&&(i.delegateType=t.delegateType),(0,n.S6)(["setup","teardown","add","remove","trigger","handle","_default","dispose"],(function(e,n){t[n]&&(i[n]=function(){var e=[].slice.call(arguments);return e.unshift(this),t[n].apply(t,e)})})),o.Z.fire(e,i)};r.callbacks=o.Z,t["Z"]=r},968:function(e,t,i){"use strict";var n=i(43815);t["Z"]=new n.Z},52376:function(e,t,i){"use strict";i.d(t,{Z:function(){return G}});var n=i(39299),o=i(968),r=i(44099),a=i(71389),s=i(18274),l=i(27154),d=i(50450),u=i(94795),c=i(33734),h=["pageX","pageY","screenX","screenY","clientX","clientY"],p=function(e,t){if(t[e]&&!t.touches||!t.touches)return t[e];var i=t.touches.length?t.touches:t.changedTouches;return i.length?i[0][e]:void 0};function f(e){h.forEach((function(t){e(t,(function(e){return p(t,e)}))}),this)}var g=i(48714),m=(0,s.Jj)(),_="dxEmptyEventType",v={mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},y={focusin:"focus",focusout:"blur"},C=["blur","focus","load"],b=["touchmove","wheel","mousewheel","touchstart"],x=["target","relatedTarget","delegateTarget","altKey","bubbles","cancelable","changedTouches","ctrlKey","detail","eventPhase","metaKey","shiftKey","view","char","code","charCode","key","keyCode","button","buttons","offsetX","offsetY","pointerId","pointerType","targetTouches","toElement","touches"];function w(e,t){return!(0,d.FJ)(e)&&"#document"!==e.nodeName&&a["default"].elementMatches(e,t)}var T,S=new WeakMap,I=0,E=function(){var e={};return o.Z.add((function(t,i){e[t]=i})),{getField:function(t,i){return e[t]&&e[t][i]},callMethod:function(t,i,n,o){return e[t]&&e[t][i]&&e[t][i].apply(n,o)}}}(),D=(0,l.Z)({on:O(F(Z((function(e,t,i,n,o){var r=R(e,t);r.addHandler(o,i,n)})))),one:O(F((function(e,t,i,n,o){D.on(e,t,i,n,(function n(){D.off(e,t,i,n),o.apply(this,arguments)}))}))),off:O(H(Z((function(e,t,i,n){var o=R(e,t);o.removeHandler(n,i)})))),trigger:O(L((function(e,t,i){var n=t.type,o=R(e,t.type);E.callMethod(n,"trigger",e,[t,i]),o.callHandlers(t,i);var a=E.getField(n,"noBubble")||t.isPropagationStopped()||-1!==C.indexOf(n);if(!a){var s=[];!function e(t){var i,n=null!==(i=t.parentNode)&&void 0!==i?i:t.host;n&&(s.push(n),e(n))}(e),s.push(m);var l=0;while(s[l]&&!t.isPropagationStopped()){var u=R(s[l],t.type);u.callHandlers((0,r.l)(t,{currentTarget:s[l]}),i),l++}}(e.nodeType||(0,d.FJ)(e))&&(E.callMethod(n,"_default",e,[t,i]),$(n,e))}))),triggerHandler:O(L((function(e,t,i){var n=R(e,t.type);n.callHandlers(t,i)})))});function k(e,t){var i=e[0];if(i)if(a["default"].isNode(i)||(0,d.FJ)(i))t.apply(D,e);else{if((0,d.HD)(i)||!("length"in i))throw c.Z.Error("E0025");var n=Array.prototype.slice.call(e,0);Array.prototype.forEach.call(i,(function(e){n[0]=e,k(n,t)}))}}function O(e){return function(){k(arguments,e)}}function A(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0,!0}});m.addEventListener("test",null,t)}catch(i){}return e}var P=(0,g.Z)(A),M=(e,t)=>(0,d.FJ)(e)?M(e.document,t):e.contains?e.contains(t):!!(t.compareDocumentPosition(e)&t.DOCUMENT_POSITION_CONTAINS);function R(e,t){var i=S.get(e);t=t||"";var n=t.split("."),o=n.slice(1),r=!!n[0];t=n[0]||_,i||(i={},S.set(e,i)),i[t]||(i[t]={handleObjects:[],nativeHandler:null});var s=i[t];return{addHandler:function(i,n,l){var d=function(n,o){var r,a,s=[n],d=n.currentTarget,u=n.relatedTarget;t in v&&(r=u&&d&&(u===d||M(d,u))),void 0!==o&&s.push(o),E.callMethod(t,"handle",e,[n,l]),r||(a=i.apply(d,s)),!1===a&&(n.preventDefault(),n.stopPropagation())},u={handler:i,wrappedHandler:function(t,i){if(!T||t.type!==T)if(t.data=l,t.delegateTarget=e,n){var o=t.target;while(o&&o!==e)w(o,n)&&(t.currentTarget=o,d(t,i)),o=o.parentNode}else t.currentTarget=t.delegateTarget||t.target,d(t,i)},selector:n,type:t,data:l,namespace:o.join("."),namespaces:o,guid:++I};s.handleObjects.push(u);var c,h=1===s.handleObjects.length,p=h&&r;p&&(p=!E.callMethod(t,"setup",e,[l,o,i])),p&&(s.nativeHandler=B(t),P()&&b.indexOf(t)>-1&&(c={passive:!1}),s.removeListener=a["default"].listen(e,v[t]||t,s.nativeHandler,c)),E.callMethod(t,"add",e,[u])},removeHandler:function(n,a){var s=function(t){var r=i[t];if(r.handleObjects.length){var s;r.handleObjects=r.handleObjects.filter((function(i){var r=o.length&&!V(i.namespaces,o)||n&&i.handler!==n||a&&i.selector!==a;return r||(s=i.handler,E.callMethod(t,"remove",e,[i])),r}));var l=!r.handleObjects.length,d=l&&t!==_;d&&(E.callMethod(t,"teardown",e,[o,s]),r.nativeHandler&&r.removeListener(),delete i[t])}else delete i[t]};if(r)s(t);else for(var l in i)s(l);var d=0===Object.keys(i).length;d&&S.delete(e)},callHandlers:function(e,t){var n=!1,r=function(i){n||o.length&&!V(i.namespaces,o)||(i.wrappedHandler(e,t),n=e.isImmediatePropagationStopped())};s.handleObjects.forEach(r),o.length&&i[_]&&i[_].handleObjects.forEach(r)}}}function B(e){return function(t,i){var n=R(this,e);t=D.Event(t),n.callHandlers(t,i)}}function V(e,t){for(var i=0;i-1){var n=Array.prototype.slice.call(arguments,0);i.split(" ").forEach((function(t){n[1]=t,e.apply(this,n)}))}else e.apply(this,arguments)};return function(e,i){if("object"===typeof i){var n=Array.prototype.slice.call(arguments,0);for(var o in i)n[1]=o,n[n.length-1]=i[o],t.apply(this,n)}else t.apply(this,arguments)}}function $(e,t){var i=y[e]||e;(function(e,t){return"click"===e&&"a"===t.localName})(e,t)||(0,d.mf)(t[i])&&(T=e,t[i](),T=void 0)}function W(e){return function(e){return null==e.which&&0===e.type.indexOf("key")}(e)?null!=e.charCode?e.charCode:e.keyCode:function(e){return!e.which&&void 0!==e.button&&/^(?:mouse|pointer|contextmenu|drag|drop)|click/.test(e.type)}(e)?{1:1,2:3,3:1,4:2}[e.button]:e.which}function K(e){e&&(D.Event=e,D.Event.prototype=e.prototype)}function z(e,t,i){Object.defineProperty(i||D.Event.prototype,e,{enumerable:!0,configurable:!0,get:function(){return this.originalEvent&&t(this.originalEvent)},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})}K(N((function(e,t){var i,o=e instanceof D.Event||(0,s.Ym)()&&e instanceof m.Event||(null===(i=e.view)||void 0===i?void 0:i.Event)&&e instanceof e.view.Event;o?(this.originalEvent=e,this.type=e.type,this.currentTarget=void 0,Object.prototype.hasOwnProperty.call(e,"isTrusted")&&(this.isTrusted=e.isTrusted),this.timeStamp=e.timeStamp||Date.now()):(0,n.Z)(this,e),z("which",W,this),0===e.type.indexOf("touch")&&(delete t.pageX,delete t.pageY),(0,n.Z)(this,t),this.guid=++I}))),x.forEach((e=>z(e,(t=>t[e])))),f(z);var j=(0,u["default"])(),U=(0,u["default"])();D.set=function(e){j.fire(),D.inject(e),K(e.Event),U.fire()},D.subscribeGlobal=function(){k(arguments,F((function(){var e=arguments;D.on.apply(this,e),j.add((function(){var t=Array.prototype.slice.call(e,0);t.splice(3,1),D.off.apply(this,t)})),U.add((function(){D.on.apply(this,e)}))})))},D.forcePassiveFalseEventNames=b,D.passiveEventHandlersSupported=P;var G=D},80736:function(e,t,i){"use strict";var n=i(57678),o=i(52376),r=i(49784),a=i(78172),s="compositionstart",l="compositionend",d="keydown",u="KeyboardProcessor",c=e=>({keyName:(0,a.EV)(e),key:e.key,code:e.code,ctrl:e.ctrlKey,location:e.location,metaKey:e.metaKey,shift:e.shiftKey,alt:e.altKey,which:e.which,originalEvent:e}),h=r.Z.inherit({_keydown:(0,a.V4)(d,u),_compositionStart:(0,a.V4)(s,u),_compositionEnd:(0,a.V4)(l,u),ctor:function(e){e=e||{},e.element&&(this._element=(0,n.Z)(e.element)),e.focusTarget&&(this._focusTarget=e.focusTarget),this._handler=e.handler,this._element&&(this._processFunction=e=>{var t=(0,n.Z)(this._focusTarget).toArray(),i=this._focusTarget&&this._focusTarget!==e.target&&!t.includes(e.target),o=this._isComposingJustFinished&&229===e.which||this._isComposing||i;this._isComposingJustFinished=!1,o||this.process(e)},this._toggleProcessingWithContext=this.toggleProcessing.bind(this),o.Z.on(this._element,this._keydown,this._processFunction),o.Z.on(this._element,this._compositionStart,this._toggleProcessingWithContext),o.Z.on(this._element,this._compositionEnd,this._toggleProcessingWithContext))},dispose:function(){this._element&&(o.Z.off(this._element,this._keydown,this._processFunction),o.Z.off(this._element,this._compositionStart,this._toggleProcessingWithContext),o.Z.off(this._element,this._compositionEnd,this._toggleProcessingWithContext)),this._element=void 0,this._handler=void 0},process:function(e){this._handler(c(e))},toggleProcessing:function(e){var{type:t}=e;this._isComposing=t===s,this._isComposingJustFinished=!this._isComposing}});h.createKeyDownOptions=c,t["Z"]=h},78361:function(e,t,i){"use strict";i.d(t,{u:function(){return s}});var n=i(57678),o=i(52376),r=i(51709),a=i(78172),s="dxmousewheel",l="dxWheel",d="wheel",u=0,c=30,h={setup:function(e){var t=(0,n.Z)(e);o.Z.on(t,(0,a.V4)(d,l),h._wheelHandler.bind(h))},teardown:function(e){o.Z.off(e,".".concat(l))},_wheelHandler:function(e){var{deltaMode:t,deltaY:i,deltaX:n,deltaZ:o}=e.originalEvent;(0,a.BX)({type:s,originalEvent:e,delta:this._normalizeDelta(i,t),deltaX:n,deltaY:i,deltaZ:o,deltaMode:t,pointerType:"mouse"}),e.stopPropagation()},_normalizeDelta(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;return t===u?-e:-c*e}};(0,r.Z)(s,h)},98267:function(e,t,i){"use strict";i.d(t,{BL:function(){return h},IO:function(){return g},Zu:function(){return m},pB:function(){return p},ut:function(){return f}});var n=i(57678),o=i(86403),r=i(37045),a=i(63419),s=i(25445),l=i(51709),d=i(78172),u=i(57553),c=i(32369),h="dxdragstart",p="dxdrag",f="dxdragend",g="dxdragenter",m="dxdragleave",_="dxdrop",v="dxDragEventsCount",y=[],C=[],b=[],x={setup:function(e,t){var i=y.includes(e);i||(y.push(e),C.push([]),b.push(t||{}))},add:function(e,t){var i=y.indexOf(e);this.updateEventsCounter(e,t.type,1);var n=t.selector;C[i].includes(n)||C[i].push(n)},updateEventsCounter:function(e,t,i){if([g,m,_].indexOf(t)>-1){var n=(0,o.aT)(e,v)||0;(0,o.aT)(e,v,Math.max(0,n+i))}},remove:function(e,t){this.updateEventsCounter(e,t.type,-1)},teardown:function(e){var t=(0,o.aT)(e,v);if(!t){var i=y.indexOf(e);y.splice(i,1),C.splice(i,1),b.splice(i,1),(0,o.NU)(e,v)}}};(0,l.Z)(g,x),(0,l.Z)(m,x),(0,l.Z)(_,x);var w=function(e){var t=y.indexOf(e.get(0)),i=C[t].filter((e=>e)),n=e.find(i.join(", "));return C[t].includes(void 0)&&(n=n.add(e)),n},T=function(e){var t=y.indexOf(e.get(0));return b[t]},S=function(e,t){return e.itemPositionFunc?e.itemPositionFunc(t):t.offset()},I=function(e,t){return e.itemSizeFunc?e.itemSizeFunc(t):{width:t.get(0).getBoundingClientRect().width,height:t.get(0).getBoundingClientRect().height}},E=u.Z.inherit({ctor:function(e){this.callBase(e),this.direction="both"},_init:function(e){this._initEvent=e},_start:function(e){if(e=this._fireEvent(h,this._initEvent),this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset,e.targetElements||null===e.targetElements){var t=(0,r.sE)(e.targetElements||[]);this._dropTargets=a.UI(t,(function(e){return(0,n.Z)(e).get(0)}))}else this._dropTargets=y},_move:function(e){var t=(0,d.a0)(e),i=this._calculateOffset(t);e=this._fireEvent(p,e,{offset:i}),this._processDropTargets(e),e._cancelPreventDefault||e.preventDefault()},_calculateOffset:function(e){return{x:this._calculateXOffset(e),y:this._calculateYOffset(e)}},_calculateXOffset:function(e){if("vertical"!==this.direction){var t=e.x-this._startEventData.x;return this._fitOffset(t,this._maxLeftOffset,this._maxRightOffset)}return 0},_calculateYOffset:function(e){if("horizontal"!==this.direction){var t=e.y-this._startEventData.y;return this._fitOffset(t,this._maxTopOffset,this._maxBottomOffset)}return 0},_fitOffset:function(e,t,i){return null!=t&&(e=Math.max(e,-t)),null!=i&&(e=Math.min(e,i)),e},_processDropTargets:function(e){var t=this._findDropTarget(e),i=t===this._currentDropTarget;i||(this._fireDropTargetEvent(e,m),this._currentDropTarget=t,this._fireDropTargetEvent(e,g))},_fireDropTargetEvent:function(e,t){if(this._currentDropTarget){var i={type:t,originalEvent:e,draggingElement:this._$element.get(0),target:this._currentDropTarget};(0,d.BX)(i)}},_findDropTarget:function(e){var t,i=this;return a.S6(y,(function(o,r){if(i._checkDropTargetActive(r)){var s=(0,n.Z)(r);a.S6(w(s),(function(o,r){var a=(0,n.Z)(r);i._checkDropTarget(T(s),a,(0,n.Z)(t),e)&&(t=r)}))}})),t},_checkDropTargetActive:function(e){var t=!1;return a.S6(this._dropTargets,(function(i,n){return t=t||n===e||(0,s.r3)(n,e),!t})),t},_checkDropTarget:function(e,t,i,o){var r=t.get(0)===(0,n.Z)(o.target).get(0);if(r)return!1;var a=S(e,t);if(o.pageXa.left+s.width)&&(!(o.pageY>a.top+s.height)&&((!i.length||!i.closest(t).length)&&(!(e.checkDropTarget&&!e.checkDropTarget(t,o))&&t)))},_end:function(e){var t=(0,d.a0)(e);this._fireEvent(f,e,{offset:this._calculateOffset(t)}),this._fireDropTargetEvent(e,_),delete this._currentDropTarget}});(0,c.Z)({emitter:E,events:[h,p,f]})},57553:function(e,t,i){"use strict";var n=i(57678),o=i(52376),r=i(30390),a=i(19071),s=i(48714),l=i(25445),d=i(90268),u=i(94381),c=i(72264),h=i(50450),p=i(78172),f=i(36494),g=d.Z.add,m=Math.abs,_=0,v=1,y=2,C=10,b=0,x=180,w=function(){return(0,a.Hj)("pointer-events")},T=(0,s.Z)((function(){var e="desktop"===r.Z.real().deviceType;if(!w()||!e)return c.ZT;var t=(0,n.Z)("
").addClass("dx-gesture-cover").css("pointerEvents","none");return o.Z.subscribeGlobal(t,"dxmousewheel",(function(e){e.preventDefault()})),g((function(){t.appendTo("body")})),function(e,i){t.css("pointerEvents",e?"all":"none"),e&&t.css("cursor",i)}})),S=function(e,t){var i=T();i(e,t)},I=f.Z.inherit({gesture:!0,configure:function(e){this.getElement().css("msTouchAction",e.immediate?"pinch-zoom":""),this.callBase(e)},allowInterruptionByMouseWheel:function(){return this._stage!==y},getDirection:function(){return this.direction},_cancel:function(){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=_},start:function(e){e._needSkipEvent||(0,p.r1)(e)?this._cancel(e):(this._startEvent=(0,p.yM)(e),this._startEventData=(0,p.a0)(e),this._stage=v,this._init(e),this._setupImmediateTimer())},_setupImmediateTimer:function(){clearTimeout(this._immediateTimer),this._immediateAccepted=!1,this.immediate&&(this._immediateTimer=setTimeout(function(){this._immediateAccepted=!0}.bind(this),x))},move:function(e){if(this._stage===v&&this._directionConfirmed(e)){if(this._stage=y,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(e),this._adjustStartEvent(e),this._start(this._startEvent),this._stage===_)return;this._requestAccept(e),this._move(e),this._forgetAccept()}else this._stage===y&&(this._clearSelection(e),this._move(e))},_directionConfirmed:function(e){var t=this._getTouchBoundary(e),i=(0,p.hM)(this._startEventData,(0,p.a0)(e)),n=m(i.x),o=m(i.y),r=this._validateMove(t,n,o),a=this._validateMove(t,o,n),s=this.getDirection(e),l="both"===s&&(r||a),d="horizontal"===s&&r,u="vertical"===s&&a;return l||d||u||this._immediateAccepted},_validateMove:function(e,t,i){return t&&t>=e&&(!this.immediate||t>=i)},_getTouchBoundary:function(e){return this.immediate||(0,p.pR)(e)?b:C},_adjustStartEvent:function(e){var t=this._getTouchBoundary(e),i=(0,p.hM)(this._startEventData,(0,p.a0)(e));this._startEvent.pageX+=(0,u.Xx)(i.x)*t,this._startEvent.pageY+=(0,u.Xx)(i.y)*t},_resetActiveElement:function(){"ios"===r.Z.real().platform&&this.getElement().find(":focus").length&&(0,l.M3)()},_toggleGestureCover:function(e){this._toggleGestureCoverImpl(e)},_toggleGestureCoverImpl:function(e){var t=this._stage===y;t&&S(e,this.getElement().css("cursor"))},_clearSelection:function(e){(0,p.pR)(e)||(0,p.z6)(e)||(0,l.MO)()},end:function(e){this._toggleGestureCover(!1),this._stage===y?this._end(e):this._stage===v&&this._stop(e),this._stage=_},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:c.ZT,_start:c.ZT,_move:c.ZT,_stop:c.ZT,_end:c.ZT});I.initialTouchBoundary=C,I.touchBoundary=function(e){if(!(0,h.$K)(e))return C;C=e},t["Z"]=I},80647:function(e,t,i){"use strict";i.d(t,{B:function(){return c},u:function(){return f}});var n=i(52376),o=i(86403),r=i(49784),a=i(30390),s=i(51709),l=i(78172),d=i(91866),u="dxHoverStart",c="dxhoverstart",h=(0,l.V4)(d.Z.enter,u),p="dxHoverEnd",f="dxhoverend",g=(0,l.V4)(d.Z.leave,p),m=r.Z.inherit({noBubble:!0,ctor:function(){this._handlerArrayKeyPath=this._eventNamespace+"_HandlerStore"},setup:function(e){(0,o.aT)(e,this._handlerArrayKeyPath,{})},add:function(e,t){var i=this,r=function(e){i._handler(e)};n.Z.on(e,this._originalEventName,t.selector,r),(0,o.aT)(e,this._handlerArrayKeyPath)[t.guid]=r},_handler:function(e){(0,l.z6)(e)||a.Z.isSimulator()||(0,l.BX)({type:this._eventName,originalEvent:e,delegateTarget:e.delegateTarget})},remove:function(e,t){var i=(0,o.aT)(e,this._handlerArrayKeyPath)[t.guid];n.Z.off(e,this._originalEventName,t.selector,i)},teardown:function(e){(0,o.NU)(e,this._handlerArrayKeyPath)}}),_=m.inherit({ctor:function(){this._eventNamespace=u,this._eventName=c,this._originalEventName=h,this.callBase()},_handler:function(e){var t=e.pointers||[];t.length||this.callBase(e)}}),v=m.inherit({ctor:function(){this._eventNamespace=p,this._eventName=f,this._originalEventName=g,this.callBase()}});(0,s.Z)(c,new _),(0,s.Z)(f,new v)},82048:function(e,t,i){"use strict";i.r(t),i.d(t,{Event:function(){return d},off:function(){return a},on:function(){return o},one:function(){return r},trigger:function(){return s},triggerHandler:function(){return l}});var n=i(52376),o=n.Z.on,r=n.Z.one,a=n.Z.off,s=n.Z.trigger,l=n.Z.triggerHandler,d=n.Z.Event},91866:function(e,t,i){"use strict";i.d(t,{Z:function(){return N}});var n=i(230),o=i(63419),r=i(30390),a=i(51709),s=i(44099),l=i(52376),d=i(31517),u=i(71389),c=i(49784),h=i(78172),p="dxPointerEvents",f=c.Z.inherit({ctor:function(e,t){this._eventName=e,this._originalEvents=(0,h.V4)(t,p),this._handlerCount=0,this.noBubble=this._isNoBubble()},_isNoBubble:function(){var e=this._eventName;return"dxpointerenter"===e||"dxpointerleave"===e},_handler:function(e){var t,i=this._getDelegateTarget(e),n={type:this._eventName,pointerType:e.pointerType||(0,h.J6)(e),originalEvent:e,delegateTarget:i,timeStamp:d.Z.mozilla?(new Date).getTime():e.timeStamp},o=e.originalEvent;if(null!==o&&void 0!==o&&null!==(t=o.target)&&void 0!==t&&t.shadowRoot){var r,a,s=null!==(r=o.path)&&void 0!==r?r:null===(a=o.composedPath)||void 0===a?void 0:a.call(o);n.target=s[0]}return this._fireEvent(n)},_getDelegateTarget:function(e){var t;return this.noBubble&&(t=e.delegateTarget),t},_fireEvent:function(e){return(0,h.BX)(e)},_setSelector:function(e){this._selector=this.noBubble&&e?e.selector:null},_getSelector:function(){return this._selector},setup:function(){return!0},add:function(e,t){if(this._handlerCount<=0||this.noBubble){e=this.noBubble?e:u["default"].getDocument(),this._setSelector(t);var i=this;l.Z.on(e,this._originalEvents,this._getSelector(),(function(e){i._handler(e)}))}this.noBubble||this._handlerCount++},remove:function(e){this._setSelector(e),this.noBubble||this._handlerCount--},teardown:function(e){this._handlerCount&&!this.noBubble||(e=this.noBubble?e:u["default"].getDocument(),this._originalEvents!=="."+p&&l.Z.off(e,this._originalEvents,this._getSelector()))},dispose:function(e){e=this.noBubble?e:u["default"].getDocument(),l.Z.off(e,this._originalEvents)}}),g=f,m={dxpointerdown:"touchstart",dxpointermove:"touchmove",dxpointerup:"touchend",dxpointercancel:"touchcancel",dxpointerover:"",dxpointerout:"",dxpointerenter:"",dxpointerleave:""},_=function(e){var t=[];return(0,o.S6)(e.touches,(function(e,i){t.push((0,s.l)({pointerId:i.identifier},i))})),{pointers:t,pointerId:e.changedTouches[0].identifier}},v=function(e){return"ios"===r.Z.real().platform&&("dxpointerdown"===e||"dxpointerup"===e)},y=g.inherit({ctor:function(){this.callBase.apply(this,arguments),this._pointerId=0},_handler:function(e){if(v(this._eventName)){var t=e.changedTouches[0];if(this._pointerId===t.identifier&&0!==this._pointerId)return;this._pointerId=t.identifier}return this.callBase.apply(this,arguments)},_fireEvent:function(e){return this.callBase((0,s.l)(_(e.originalEvent),e))}});y.map=m,y.normalize=_;var C,b=y,x=i(90268),w=function(e,t){x.Z.add((function(){e.split(" ").forEach((function(e){u["default"].listen(u["default"].getDocument(),e,t,!0)}))}))},T=function(e,t,i){i=i||function(){};var n=[],r=function(e){var i=-1;return(0,o.S6)(n,(function(n,o){return!t(e,o)||(i=n,!1)})),i},a=function(e){var t=r(e);t>-1&&n.splice(t,1)};w(e.dxpointerdown,(function(e){-1===r(e)&&(i(e),n.push(e))})),w(e.dxpointermove,(function(e){n[r(e)]=e})),w(e.dxpointerup,a),w(e.dxpointercancel,a),this.pointers=function(){return n},this.reset=function(){n=[]}},S=T,I={dxpointerdown:"mousedown",dxpointermove:"mousemove",dxpointerup:"mouseup",dxpointercancel:"",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},E=function(e){return e.pointerId=1,{pointers:C.pointers(),pointerId:1}},D=!1,k=function(){D||(C=new S(I,(function(){return!0})),D=!0)},O=g.inherit({ctor:function(){this.callBase.apply(this,arguments),k()},_fireEvent:function(e){return this.callBase((0,s.l)(E(e.originalEvent),e))}});O.map=I,O.normalize=E,O.activate=k,O.resetObserver=function(){C.reset()};var A=O,P={dxpointerdown:"touchstart mousedown",dxpointermove:"touchmove mousemove",dxpointerup:"touchend mouseup",dxpointercancel:"touchcancel",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},M=!1,R=function(){M||(A.activate(),M=!0)},B=g.inherit({EVENT_LOCK_TIMEOUT:100,ctor:function(){this.callBase.apply(this,arguments),R()},_handler:function(e){var t=(0,h.N5)(e);if(t||(this._skipNextEvents=!0),!t||!this._mouseLocked){if(!t||!this._skipNextEvents)return this.callBase(e);this._skipNextEvents=!1,this._mouseLocked=!0,clearTimeout(this._unlockMouseTimer);var i=this;this._unlockMouseTimer=setTimeout((function(){i._mouseLocked=!1}),this.EVENT_LOCK_TIMEOUT)}},_fireEvent:function(e){var t=(0,h.N5)(e.originalEvent)?A.normalize:b.normalize;return this.callBase((0,s.l)(t(e.originalEvent),e))},dispose:function(){this.callBase(),this._skipNextEvents=!1,this._mouseLocked=!1,clearTimeout(this._unlockMouseTimer)}});B.map=P,B.resetObserver=A.resetObserver;var V=B,F=(e,t)=>{var{tablet:i,phone:n}=t;return!e.touch||i||n?e.touch?b:A:V},H=F(n,r.Z.real());(0,o.S6)(H.map,((e,t)=>{(0,a.Z)(e,new H(e,t))}));var L={down:"dxpointerdown",up:"dxpointerup",move:"dxpointermove",cancel:"dxpointercancel",enter:"dxpointerenter",leave:"dxpointerleave",over:"dxpointerover",out:"dxpointerout"},N=L},14324:function(e,t,i){"use strict";i.d(t,{x:function(){return s}});var n=i(57678),o=i(86403),r=i(52376),a=i(51709),s="dxremove",l="dxRemoveEvent";(0,o.WD)((function(e){e=[].slice.call(e);for(var t=0;t{var{selector:r,showTimeout:l,hideTimeout:d,namespace:u}=o;n.Z.on(e,a("dxactive",u),r,{timeout:l},(e=>s(t,{event:e,element:e.currentTarget}))),n.Z.on(e,a("dxinactive",u),r,{timeout:d},(e=>s(i,{event:e,element:e.currentTarget})))},off:(e,t)=>{var{namespace:i,selector:o}=t;n.Z.off(e,a("dxactive",i),o),n.Z.off(e,a("dxinactive",i),o)}},d={on:function(e,t){var{namespace:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n.Z.on(e,a("dxresize",i),t)},off:function(e){var{namespace:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.Z.off(e,a("dxresize",t))}},u={on:(e,t,i,o)=>{var{selector:r,namespace:l}=o;n.Z.on(e,a("dxhoverend",l),r,(e=>i(e))),n.Z.on(e,a("dxhoverstart",l),r,(e=>s(t,{element:e.target,event:e})))},off:(e,t)=>{var{selector:i,namespace:o}=t;n.Z.off(e,a("dxhoverstart",o),i),n.Z.off(e,a("dxhoverend",o),i)}},c={on:(e,t,i,o)=>{var{namespace:r}=o;n.Z.on(e,a("dxhiding",r),i),n.Z.on(e,a("dxshown",r),t)},off:(e,t)=>{var{namespace:i}=t;n.Z.off(e,a("dxhiding",i)),n.Z.off(e,a("dxshown",i))}},h={on:(e,t,i,o)=>{var{namespace:r}=o;n.Z.on(e,a("focusin",r),t),n.Z.on(e,a("focusout",r),i)},off:(e,t)=>{var{namespace:i}=t;n.Z.off(e,a("focusin",i)),n.Z.off(e,a("focusout",i))},trigger:e=>n.Z.trigger(e,"focus")},p={on:function(e,t){var{namespace:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n.Z.on(e,a("dxclick",i),t)},off:function(e){var{namespace:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.Z.off(e,a("dxclick",t))}},f={on:function(e,t){var{namespace:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n.Z.on(e,a("click",i),t)},off:function(e){var{namespace:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.Z.off(e,a("click",t))}},g=0,m={},_=()=>"keyboardProcessorId".concat(g++),v={on:(e,t,i)=>{var n=_();return m[n]=new o.Z({element:e,focusTarget:t,handler:i}),n},off:e=>{e&&m[e]&&(m[e].dispose(),delete m[e])},_getProcessor:e=>m[e]}},78172:function(e,t,i){"use strict";i.d(t,{V4:function(){return M},yM:function(){return k},a0:function(){return T},hM:function(){return S},J6:function(){return y},BX:function(){return O},qK:function(){return P},G7:function(){return I},j1:function(){return R},pR:function(){return x},N5:function(){return b},bX:function(){return C},z6:function(){return w},r1:function(){return D},EV:function(){return A}});var n=i(57678),o=i(33734),r=(e,t)=>{if(!t)throw o.Z.Error("E0017");return Array.isArray(e)?e.map((e=>r(e,t))).join(" "):-1!==e.indexOf(" ")?r(e.split(/\s+/g),t):"".concat(e,".").concat(t)},a=r,s=i(52376),l=i(63419),d=i(44099),u=i(23191),c={backspace:"backspace",tab:"tab",enter:"enter",escape:"escape",pageup:"pageUp",pagedown:"pageDown",end:"end",home:"home",arrowleft:"leftArrow",arrowup:"upArrow",arrowright:"rightArrow",arrowdown:"downArrow",delete:"del"," ":"space",f:"F",a:"A","*":"asterisk","-":"minus",alt:"alt",control:"control",shift:"shift"},h={8:"backspace",9:"tab",13:"enter",27:"escape",33:"pageUp",34:"pageDown",35:"end",36:"home",37:"leftArrow",38:"upArrow",39:"rightArrow",40:"downArrow",46:"del",32:"space",70:"F",65:"A",106:"asterisk",109:"minus",189:"minus",173:"minus",16:"shift",17:"control",18:"alt"},p={dx:/^dx/i,mouse:/(mouse|wheel)/i,touch:/^touch/i,keyboard:/^key/i,pointer:/^(ms)?pointer/i},f=e=>e,g=e=>f(s.Z.Event(e,e),e),m=e=>"dx"===y(e),_=e=>"mouse"===y(e),v=e=>"touch"===y(e),y=e=>{var{type:t}=e,i="other";return(0,l.S6)(p,(function(e){if(this.test(t))return i=e,!1})),i},C=e=>"pointer"===y(e),b=e=>_(e)||(C(e)||m(e))&&"mouse"===e.pointerType,x=e=>e&&"dxmousewheel"===e.type,w=e=>v(e)||(C(e)||m(e))&&"touch"===e.pointerType,T=e=>{var{pageX:t,pageY:i,timeStamp:n}=e;return{x:t,y:i,time:n}},S=(e,t)=>({x:t.x-e.x,y:t.y-e.y,time:t.time-e.time||1}),I=e=>{var{originalEvent:t,pointers:i}=e;return v(e)?(t.touches||[]).length:m(e)?(i||[]).length:0},E=!1,D=e=>{if(E)return!0;var{target:t}=e,i=(0,n.Z)(t),o=(null===t||void 0===t?void 0:t.isContentEditable)||(null===t||void 0===t?void 0:t.hasAttribute("contenteditable")),r=i.is("input, textarea, select")||o;if(x(e)){var a=i.is("textarea")&&i.hasClass("dx-texteditor-input");if(a||o)return!1;var s=i.is("input[type='number'], textarea, select")&&i.is(":focus");return s}return b(e)?r||e.which>1:w(e)?r&&(0,u.si)(i):void 0},k=(e,t)=>{var i=g(e);return t&&(0,d.l)(i,t),i},O=e=>{var{originalEvent:t,delegateTarget:i}=e,n=k(t,e);return s.Z.trigger(i||n.target,n),n},A=e=>{var{key:t,which:i}=e,n=c[null===t||void 0===t?void 0:t.toLowerCase()]||t,o=h[i];return o&&n===t?o:!n&&i?String.fromCharCode(i):n},P=e=>{var{key:t,which:i}=e;return t||String.fromCharCode(i)},M=a,R=e=>{var{ctrlKey:t,metaKey:i}=e;return t||i}},33753:function(e,t,i){"use strict";i.d(t,{Ly:function(){return s},U_:function(){return l},Uo:function(){return a}});var n=i(57678),o=i(52376),r=function(e){return function(t){for(var i=(0,n.Z)(t||"body"),r=i.filter(".dx-visibility-change-handler").add(i.find(".dx-visibility-change-handler")),a=0;a1)for(t=o.Z.getDatesDifferences(e[0],e[1]),n=1;n0,minute:e[0].getMinutes()>0,second:e[0].getSeconds()>0,millisecond:e[0].getMilliseconds()>0};var r=this.getDateFormatByDifferences(t);return r},getDateFormatByTickInterval:function(e,t,i){var r,a=function(e,t,i){switch(t){case"year":case"quarter":e.month=i;case"month":e.day=i;case"week":case"day":e.hour=i;case"hour":e.minute=i;case"minute":e.second=i;case"second":e.millisecond=i}};i=(0,n.HD)(i)?i.toLowerCase():i;var s=o.Z.getDatesDifferences(e,t);e!==t&&function(e,t,i){!i.getMilliseconds()&&i.getSeconds()?i.getSeconds()-t.getSeconds()===1&&(e.millisecond=!0,e.second=!1):!i.getSeconds()&&i.getMinutes()?i.getMinutes()-t.getMinutes()===1&&(e.second=!0,e.minute=!1):!i.getMinutes()&&i.getHours()?i.getHours()-t.getHours()===1&&(e.minute=!0,e.hour=!1):!i.getHours()&&i.getDate()>1?i.getDate()-t.getDate()===1&&(e.hour=!0,e.day=!1):1===i.getDate()&&i.getMonth()?i.getMonth()-t.getMonth()===1&&(e.day=!0,e.month=!1):!i.getMonth()&&i.getFullYear()&&i.getFullYear()-t.getFullYear()===1&&(e.month=!0,e.year=!1)}(s,e>t?t:e,e>t?e:t),r=o.Z.getDateUnitInterval(s),a(s,r,!0),r=o.Z.getDateUnitInterval(i||"second"),a(s,r,!1),s[{week:"day"}[r]||r]=!0;var l=this.getDateFormatByDifferences(s);return l}})},24624:function(e,t,i){"use strict";i.d(t,{EV:function(){return l},SP:function(){return s},p6:function(){return u},uf:function(){return d}});var n=i(57495),o=i(44417),r=i(46282),a=i(66713),s=(i(52977),n.Z.locale.bind(n.Z)),l=o.Z.load.bind(o.Z),d=(o.Z.format.bind(o.Z),r.Z.format.bind(r.Z)),u=(r.Z.parse.bind(r.Z),a.Z.format.bind(a.Z));a.Z.parse.bind(a.Z)},57495:function(e,t,i){"use strict";i.d(t,{Z:function(){return l}});var n=i(27154),o={"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MV":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150","hi-Latn":"en-IN","es-AR":"es-419","es-BO":"es-419","es-BR":"es-419","es-BZ":"es-419","es-CL":"es-419","es-CO":"es-419","es-CR":"es-419","es-CU":"es-419","es-DO":"es-419","es-EC":"es-419","es-GT":"es-419","es-HN":"es-419","es-MX":"es-419","es-NI":"es-419","es-PA":"es-419","es-PE":"es-419","es-PR":"es-419","es-PY":"es-419","es-SV":"es-419","es-US":"es-419","es-UY":"es-419","es-VE":"es-419",nb:"no",nn:"no","pt-AO":"pt-PT","pt-CH":"pt-PT","pt-CV":"pt-PT","pt-FR":"pt-PT","pt-GQ":"pt-PT","pt-GW":"pt-PT","pt-LU":"pt-PT","pt-MO":"pt-PT","pt-MZ":"pt-PT","pt-ST":"pt-PT","pt-TL":"pt-PT","az-Arab":"und","az-Cyrl":"und","bal-Latn":"und","blt-Latn":"und","bm-Nkoo":"und","bs-Cyrl":"und","byn-Latn":"und","cu-Glag":"und","dje-Arab":"und","dyo-Arab":"und","en-Dsrt":"und","en-Shaw":"und","ff-Adlm":"und","ff-Arab":"und","ha-Arab":"und","iu-Latn":"und","kk-Arab":"und","ks-Deva":"und","ku-Arab":"und","ky-Arab":"und","ky-Latn":"und","ml-Arab":"und","mn-Mong":"und","mni-Mtei":"und","ms-Arab":"und","pa-Arab":"und","sat-Deva":"und","sd-Deva":"und","sd-Khoj":"und","sd-Sind":"und","shi-Latn":"und","so-Arab":"und","sr-Latn":"und","sw-Arab":"und","tg-Arab":"und","ug-Cyrl":"und","uz-Arab":"und","uz-Cyrl":"und","vai-Latn":"und","wo-Arab":"und","yo-Arab":"und","yue-Hans":"und","zh-Hant":"und","zh-Hant-MO":"zh-Hant-HK"},r="-",a=(e,t)=>{var i=e[t];return i?"root"!==i&&i:t.substr(0,t.lastIndexOf(r))},s="en",l=(0,n.Z)({locale:(()=>{var e=s;return t=>{if(!t)return e;e=t}})(),getValueByClosestLocale:function(e){var t,i=this.locale(),n=e(i);while(!n&&!t)i=a(o,i),i?n=e(i):t=!0;return void 0===n&&i!==s?e(s):n}})},52977:function(e,t,i){"use strict";var n=i(44099);t["Z"]={_formatNumberCore:function(e,t,i){if("currency"===t){i.precision=i.precision||0;var o=this.format(e,(0,n.l)({},i,{type:"fixedpoint"})),r=this.getCurrencySymbol().symbol.replace(/\$/g,"$$$$");return o=o.replace(/^(\D*)(\d.*)/,"$1"+r+"$2"),o}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(){return{symbol:"$"}},getOpenXmlCurrencyFormat:function(){return"$#,##0{0}_);\\($#,##0{0}\\)"}}},66713:function(e,t,i){"use strict";i.d(t,{Z:function(){return B}});var n=i(27154),o=i(50450),r=i(63419),a=i(33734),s=i(5702),l=i(69992),d=i(54101),u=i(43589),c={"af-NA":1,agq:1,ak:1,ar:6,"ar-EH":1,"ar-ER":1,"ar-KM":1,"ar-LB":1,"ar-MA":1,"ar-MR":1,"ar-PS":1,"ar-SO":1,"ar-SS":1,"ar-TD":1,"ar-TN":1,asa:1,ast:1,az:1,"az-Cyrl":1,bas:1,be:1,bem:1,bez:1,bg:1,bm:1,br:1,bs:1,"bs-Cyrl":1,ca:1,ce:1,cgg:1,ckb:6,cs:1,cy:1,da:1,de:1,dje:1,dsb:1,dua:1,dyo:1,ee:1,el:1,"en-001":1,"en-AE":6,"en-BI":1,"en-MP":1,"en-MV":5,"en-SD":6,eo:1,es:1,et:1,eu:1,ewo:1,fa:6,ff:1,"ff-Adlm":1,fi:1,fo:1,fr:1,"fr-DJ":6,"fr-DZ":6,"fr-SY":6,fur:1,fy:1,ga:1,gd:1,gl:1,gsw:1,gv:1,ha:1,hr:1,hsb:1,hu:1,hy:1,ia:1,ig:1,is:1,it:1,jgo:1,jmc:1,ka:1,kab:6,kde:1,kea:1,khq:1,kk:1,kkj:1,kl:1,"ko-KP":1,ksb:1,ksf:1,ksh:1,ku:1,kw:1,ky:1,lag:1,lb:1,lg:1,ln:1,lrc:6,lt:1,lu:1,lv:1,"mas-TZ":1,mfe:1,mg:1,mgo:1,mi:1,mk:1,mn:1,ms:1,mua:1,mzn:6,naq:1,nds:1,nl:1,nmg:1,nnh:1,no:1,nus:1,nyn:1,os:1,pcm:1,pl:1,ps:6,"pt-AO":1,"pt-CH":1,"pt-CV":1,"pt-GQ":1,"pt-GW":1,"pt-LU":1,"pt-ST":1,"pt-TL":1,"qu-BO":1,"qu-EC":1,rm:1,rn:1,ro:1,rof:1,ru:1,rw:1,rwk:1,sah:1,sbp:1,sc:1,se:1,ses:1,sg:1,shi:1,"shi-Latn":1,si:1,sk:1,sl:1,smn:1,so:1,"so-DJ":6,sq:1,sr:1,"sr-Latn":1,sv:1,sw:1,"ta-LK":1,"ta-MY":1,teo:1,tg:1,"ti-ER":1,tk:1,to:1,tr:1,tt:1,twq:1,tzm:1,uk:1,uz:1,"uz-Arab":6,"uz-Cyrl":1,vai:1,"vai-Latn":1,vi:1,vun:1,wae:1,wo:1,xog:1,yav:1,yi:1,yo:1,zgh:1},h=i(57495),p=i(46282),f=i(44099),g=/[\u200E\u200F]/g,m=e=>t=>{if(!e.timeZoneName){var i=t.getFullYear(),n=String(i).length<3,o=n?i+400:i,r=new Date(Date.UTC(o,t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));n&&r.setFullYear(i);var a=(0,f.l)({timeZone:"UTC"},e);return y(r,a)}return y(t,e)},_={},v=e=>{var t=h.Z.locale()+"/"+JSON.stringify(e);return _[t]||(_[t]=new Intl.DateTimeFormat(h.Z.locale(),e).format),_[t]};function y(e,t){return v(t)(e).replace(g,"")}var C=e=>new Intl.NumberFormat(h.Z.locale()).format(e),b=(()=>{var e={};return t=>{if(!(t in e)){if("0"===C(0))return e[t]=!1,!1;e[t]={};for(var i=0;i<10;++i)e[t][C(i)]=i}return e[t]}})(),x=e=>{var t=b(h.Z.locale());return t?e.split("").map((e=>e in t?String(t[e]):e)).join(""):e},w=e=>e.replace(/(\D)0+(\d)/g,"$1$2"),T=(e,t)=>w(e)===w(t),S=e=>e.replace("d’","de "),I={day:{day:"numeric"},dayofweek:{weekday:"long"},longdate:{weekday:"long",year:"numeric",month:"long",day:"numeric"},longdatelongtime:{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},longtime:{hour:"numeric",minute:"numeric",second:"numeric"},month:{month:"long"},monthandday:{month:"long",day:"numeric"},monthandyear:{year:"numeric",month:"long"},shortdate:{},shorttime:{hour:"numeric",minute:"numeric"},shortyear:{year:"2-digit"},year:{year:"numeric"}};Object.defineProperty(I,"shortdateshorttime",{get:function(){var e=Intl.DateTimeFormat(h.Z.locale()).resolvedOptions();return{year:e.year,month:e.month,day:e.day,hour:"numeric",minute:"numeric"}}});var E=e=>"string"===typeof e&&I[e.toLowerCase()],D={standalone:function(e,t){var i=new Date(1999,e,13,1),n=m({month:t})(i);return n},format:function(e,t){var i=new Date(0,e,13,1),n=S(m({day:"numeric",month:t})(i)),o=n.split(" ").filter((e=>e.indexOf("13")<0));return 1===o.length?o[0]:2===o.length?o[0].length>o[1].length?o[0]:o[1]:D.standalone(e,t)}},k={engine:function(){return"intl"},getMonthNames:function(e,t){var i={wide:"long",abbreviated:"short",narrow:"narrow"}[e||"wide"];return t="format"===t?t:"standalone",Array.apply(null,new Array(12)).map(((e,n)=>D[t](n,i)))},getDayNames:function(e){var t=(e=>Array.apply(null,new Array(7)).map(((t,i)=>m({weekday:e})(new Date(0,0,i)))))({wide:"long",abbreviated:"short",short:"narrow",narrow:"narrow"}[e||"wide"]);return t},getPeriodNames:function(){var e=m({hour:"numeric",hour12:!0});return[1,13].map((t=>{var i=C(1),n=e(new Date(0,0,1,t)).split(i);if(2!==n.length)return"";var o=n[0].length>n[1].length?n[0]:n[1];return o.trim()}))},format:function(e,t){if(e){if(!t)return e;"function"===typeof t||t.formatter||(t=t.type||t);var i=E(t);if(i)return m(i)(e);var n=typeof t;return t.formatter||"function"===n||"string"===n?this.callBase.apply(this,arguments):m(t)(e)}},parse:function(e,t){var i;return t&&!t.parser&&"string"===typeof e&&(e=S(e),i=e=>S(this.format(e,t))),this.callBase(e,i||t)},_parseDateBySimpleFormat:function(e,t){e=x(e);var i=this.getFormatParts(t),n=e.split(/\D+/).filter((e=>e.length>0));if(i.length===n.length){var o=this._generateDateArgs(i,n),r=i=>{var n=((e,t)=>{var i=t?12:0;return new Date(e.year,e.month,e.day,(e.hours+i)%24,e.minutes,e.seconds)})(o,i);if(T(x(this.format(n,t)),e))return n};return r(!1)||r(!0)}},_generateDateArgs:function(e,t){var i=new Date,n={year:i.getFullYear(),month:i.getMonth(),day:i.getDate(),hours:0,minutes:0,seconds:0};return e.forEach(((e,i)=>{var o=t[i],r=parseInt(o,10);"month"===e&&(r-=1),n[e]=r})),n},formatUsesMonthName:function(e){return"object"!==typeof e||e.type||e.format?this.callBase.apply(this,arguments):"long"===e.month},formatUsesDayName:function(e){return"object"!==typeof e||e.type||e.format?this.callBase.apply(this,arguments):"long"===e.weekday},getTimeSeparator:function(){return x(y(new Date(2001,1,1,11,11),{hour:"numeric",minute:"numeric",hour12:!1})).replace(/\d/g,"")},getFormatParts:function(e){if("string"===typeof e)return this.callBase(e);var t=(0,f.l)({},I[e.toLowerCase()]),i=new Date(2001,2,4,5,6,7),n=m(t)(i);return n=x(n),[{name:"year",value:1},{name:"month",value:3},{name:"day",value:4},{name:"hours",value:5},{name:"minutes",value:6},{name:"seconds",value:7}].map((e=>({name:e.name,index:n.indexOf(e.value)}))).filter((e=>e.index>-1)).sort(((e,t)=>e.index-t.index)).map((e=>e.name))}},O=0,A="undefined"!==typeof Intl,P={shortdate:"M/d/y",shorttime:"h:mm a",longdate:"EEEE, MMMM d, y",longtime:"h:mm:ss a",monthandday:"MMMM d",monthandyear:"MMMM y",quarterandyear:"QQQ y",day:"d",year:"y",shortdateshorttime:"M/d/y, h:mm a",longdatelongtime:"EEEE, MMMM d, y, h:mm:ss a",month:"LLLL",shortyear:"yy",dayofweek:"EEEE",quarter:"QQQ",hour:"HH",minute:"mm",second:"ss",millisecond:"SSS","datetime-local":"yyyy-MM-ddTHH':'mm':'ss"},M={year:["y","yy","yyyy"],day:["d","dd"],month:["M","MM","MMM","MMMM"],hours:["H","HH","h","hh","ah"],minutes:["m","mm"],seconds:["s","ss"],milliseconds:["S","SS","SSS"]},R=(0,n.Z)({engine:function(){return"base"},_getPatternByFormat:function(e){return P[e.toLowerCase()]},_expandPattern:function(e){return this._getPatternByFormat(e)||e},formatUsesMonthName:function(e){return-1!==this._expandPattern(e).indexOf("MMMM")},formatUsesDayName:function(e){return-1!==this._expandPattern(e).indexOf("EEEE")},getFormatParts:function(e){var t=this._getPatternByFormat(e)||e,i=[];return(0,r.S6)(t.split(/\W+/),((e,t)=>{(0,r.S6)(M,((e,n)=>{n.includes(t)&&i.push(e)}))})),i},getMonthNames:function(e){return u.Z.getMonthNames(e)},getDayNames:function(e){return u.Z.getDayNames(e)},getQuarterNames:function(e){return u.Z.getQuarterNames(e)},getPeriodNames:function(e){return u.Z.getPeriodNames(e)},getTimeSeparator:function(){return":"},is24HourFormat:function(e){for(var t=new Date(2017,0,20,11,0,0,0),i=new Date(2017,0,20,23,0,0,0),n=this.format(t,e),o=this.format(i,e),r=0;r{var i=o.format(e,t);return p.Z.convertDigits(i,!0)};try{i=(0,l.y)(n)}catch(s){}}else i=t;if(i)return e=p.Z.convertDigits(e,!0),(0,d.MT)(i,this)(e);a.Z.log("W0012");var r=new Date(e);if(r&&!isNaN(r.getTime()))return r}},firstDayOfWeekIndex:function(){var e=h.Z.getValueByClosestLocale((e=>c[e]));return void 0===e?O:e}});A&&R.inject(k);var B=R},43589:function(e,t,i){"use strict";var n=i(63419),o=["January","February","March","April","May","June","July","August","September","October","November","December"],r=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],a=["AM","PM"],s=["Q1","Q2","Q3","Q4"],l=(e,t)=>{var i={abbreviated:3,short:2,narrow:1};return(0,n.UI)(e,(e=>e.substr(0,i[t])))};t["Z"]={getMonthNames:function(e){return l(o,e)},getDayNames:function(e){return l(r,e)},getQuarterNames:function(e){return s},getPeriodNames:function(e){return a}}},69992:function(e,t,i){"use strict";i.d(t,{y:function(){return m}});var n=i(46282),o="،",r=" .,:;/\\<>()-[]"+o,a=". m.",s=function(e){var t=e&&n.Z.convertDigits(e,!1).charCodeAt(0),i=n.Z.convertDigits("0",!1).charCodeAt(0);return i<=t&&te[i]!==t[i]));return r.indexOf(o)<0&&n===s(o)&&(!n||d)},d=function(e,t){if(!s(e[t]))while(t>0&&!s(e[t-1])&&("."===e[t-1]||r.indexOf(e[t-1])<0))t--;return t},u=function(e,t,i,n){var o=0,r=[],a=function(t){return e[o]!==t[o]&&(void 0===n||s(e[o])===n)};for(Array.isArray(t)||(t=[t]),o=0;o1?i[n]:i)+e.substr(r+n+1)})),1===t.length&&(e=e.replace("0"+i,i+i),e=e.replace("٠"+i,i+i)),e},h=function(e,t,i,n){var o,r,a;if(!s(e[t[0]]||"0")){var l=Math.max(t.length<=3?3:4,i.length);while(t.length>l){for(r=t.pop(),a=n[r],n[r]=-1,o=r+1;o=0,r=t>0&&o.indexOf(t-1)>=0,a=o.indexOf(t+1)>=0;return n&&(r||(i="'"+i),a||(i+="'")),i})).join(""),e},m=function(e){var t=[],i=p(new Date(2009,8,8,6,5,4),e),n=i.split("").map((function(e,t){return t})),o=i,r={},a=[{date:new Date(2009,8,8,6,5,4,111),pattern:"S"},{date:new Date(2009,8,8,6,5,2),pattern:"s"},{date:new Date(2009,8,8,6,2,4),pattern:"m"},{date:new Date(2009,8,8,18,5,4),pattern:"H",isDigit:!0},{date:new Date(2009,8,8,2,5,4),pattern:"h",isDigit:!0},{date:new Date(2009,8,8,18,5,4),pattern:"a",isDigit:!1},{date:new Date(2009,8,1,6,5,4),pattern:"d"},{date:[new Date(2009,8,2,6,5,4),new Date(2009,8,3,6,5,4),new Date(2009,8,4,6,5,4)],pattern:"E"},{date:new Date(2009,9,6,6,5,4),pattern:"M"},{date:new Date(1998,8,8,6,5,4),pattern:"y"}];if(o)return a.forEach((function(a){var s=u(i,p(a.date,e),t,a.isDigit),l="M"!==a.pattern||r.d?a.pattern:"L";o=h(o,s,l,n),r[l]=s.length})),o=g(o,i,t,n),t.length?o:void 0}},5702:function(e,t,i){"use strict";function n(e,t){while(e.length0?"-":"+",a=Math.abs(o),s=Math.floor(a/60),l=a%60,d=n(s.toString(),2),u=n(l.toString(),2);return r+d+(t>=3?":":"")+(t>1||l?u:"")},X:function(e,t,i){return i||!e.getTimezoneOffset()?"Z":r.x(e,t,i)},Z:function(e,t,i){return r.X(e,t>=5?3:2,i)}},a=function(e,t){return function(i){var n,o,a,s,l=0,d=!1,u="";if(!i)return null;if(!e)return i;var c="Z"===e[e.length-1]||"'Z'"===e.slice(-3);for(n=0;n2?Object.keys(r).map((function(e){return["format","standalone"].map((function(i){return t.getMonthNames(r[e],i).join("|")})).join("|")})).join("|"):2===e?"1[012]|0?[1-9]":"0??[1-9]|1[012]"},s={":":function(e,t){var i=e>1?"{".concat(e,"}"):"",o=(0,n.hr)(t.getTimeSeparator());return":"!==o&&(o="".concat(o,"|:")),"".concat(o).concat(i)},y:function(e){return 2===e?"[0-9]{".concat(e,"}"):"[0-9]+?"},M:a,L:a,Q:function(e,t){return e>2?t.getQuarterNames(r[e],"format").join("|"):"0?[1-4]"},E:function(e,t){return"\\D*"},a:function(e,t){return t.getPeriodNames(r[e<3?3:e],"format").join("|")},d:function(e){return 2===e?"3[01]|[12][0-9]|0?[1-9]":"0??[1-9]|[12][0-9]|3[01]"},H:function(e){return 2===e?"2[0-3]|1[0-9]|0?[0-9]":"0??[0-9]|1[0-9]|2[0-3]"},h:function(e){return 2===e?"1[012]|0?[1-9]":"0??[1-9]|1[012]"},m:function(e){return 2===e?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"},s:function(e){return 2===e?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"},S:function(e){return"[0-9]{1,".concat(e,"}")},w:function(e){return 2===e?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"}},l=Number,d=function(e,t){return e.map((e=>e.toLowerCase())).indexOf(t.toLowerCase())},u=function(e,t,i){return t>2?["format","standalone"].map((function(t){return Object.keys(r).map((function(n){var o=i.getMonthNames(r[n],t);return d(o,e)}))})).reduce((function(e,t){return e.concat(t)})).filter((function(e){return e>=0}))[0]:l(e)-1},c={y:function(e,t){var i=l(e);return 2===t?i<30?2e3+i:1900+i:i},M:u,L:u,Q:function(e,t,i){return t>2?i.getQuarterNames(r[t],"format").indexOf(e):l(e)-1},E:function(e,t,i){var n=i.getDayNames(r[t<3?3:t],"format");return d(n,e)},a:function(e,t,i){var n=i.getPeriodNames(r[t<3?3:t],"format");return d(n,e)},d:l,H:l,h:l,m:l,s:l,S:function(e,t){t=Math.max(t,3),e=e.slice(0,3);while(t<3)e+="0",t++;return l(e)}},h=["y","M","d","h","m","s","S"],p={y:"setFullYear",M:"setMonth",L:"setMonth",a:function(e,t,i){var n=e.getHours(),o=i.h;void 0!==o&&o!==n&&n--,t||12!==n?t&&12!==n&&(n+=12):n=0,e.setHours(n)},d:"setDate",H:"setHours",h:"setHours",m:"setMinutes",s:"setSeconds",S:"setMilliseconds"},f=function(e,t){var i=e[t];if(!i)return 0;var n=0;do{t++,n++}while(e[t]===i);return n},g=function(e,t){for(var i="",n=0;n{if(!e)return!1;var t=e[0];return["y","S"].includes(t)||_.includes(t)&&e.length<3},i=!0,n=0;return e.every(((e,o,r)=>(t(e)&&((e=>"S"!==e[0]&&2!==e.length)(e)&&(i=++n<2),t(r[o+1])||(n=0)),i)))},y=function(){return p},C=function(e,t,i,n,o){var r=t[0],a=p[r],s=c[r];if(a&&s){var l=s(i,t.length,n);o[t]=l,e[a]?e[a](l):a(e,l,o)}},b=function(e,t,i){var n=p[t],o="g"+n.substr(1),r=i[o]();e[n](r)},x=function(e){return e.map((function(e){return"'"===e[0]?"":"H"===e[0]?"h":e[0]}))},w=function(e){var t=e.map((function(e){return h.indexOf(e)}));return Math.max.apply(Math,t)},T=function(e){var t=e.filter((function(e){return h.indexOf(e)<0}));return h.concat(t)},S=function(e,t){var i=m(e,t);return function(e){var n=i.regexp.exec(e);if(n){var o=new Date,r=new Date(o.getFullYear(),0,1),a=x(i.patterns),s=w(a),l=T(a),d={};return l.forEach((function(e,l){if(e&&!(ls)){var u=a.indexOf(e);if(u>=0){var c=i.patterns[u],p=n[u+1];C(r,c,p,t,d)}else b(r,e,o)}})),r}return null}}},49683:function(e,t,i){"use strict";i.d(t,{P:function(){return C},y:function(){return T}});var n=i(94381),o=i(45075),r={thousandsSeparator:",",decimalSeparator:"."},a="'",s=15,l=2;function d(e){return e.split(",").slice(1).map((function(e){var t=0;return e.split("").filter((function(e,i){t+="'"===e;var n="#"===e||"0"===e,o=t%2;return n&&!o})).length}))}function u(e){var t=e.split(";");return 1===t.length&&t.push("-"+t[0]),t}function c(e){return e.toString().split("").reverse().join("")}function h(e){return-1!==e.indexOf("%")&&!e.match(/'[^']*%[^']*'/g)}function p(e){return e.replace(/'.+'/g,"")}function f(e){if(!e)return 0;var t=p(e);return t.length-t.replace(/[#]/g,"").length}function g(e){if(!e)return 0;var t=p(e);return t.length-t.replace(/[0]/g,"").length}function m(e,t,i){if(!e)return"";e.length>i&&(e=e.substr(0,i));while(e.length>t&&"0"===e.slice(-1))e=e.substr(0,e.length-1);while(e.length0||a,C=r[p?0:1],b=y(C),x=[C.substr(0,b),C.substr(b+1)],w=g(x[1]),T=w+f(x[1]);h(C)&&(i=(0,n.Ow)(i,l)),p||(i=-i);var S=g(x[0]),I=f(x[0])||t.unlimitedIntegerDigits?void 0:S,E=Math.floor(i).toString().length,D=(0,n.n$)(T,0,s-E),k=d(x[0]).reverse(),O=(0,o.F)(i,D<0?0:D).split("."),A=m(c(O[0]),S,I),P=m(O[1],w,T);A=_(A,k,t.thousandsSeparator);var M=c(v(c(x[0]),A)),R=T?v(x[1],P):"",B=M+(R.match(/\d/)?t.decimalSeparator:"")+R;return B}}function b(e,t,i){var n=(t?.01:1)*parseFloat(e)||0;return i?-n:n}function x(e,t,i,n){var o,r,a,s=e;do{a&&(o=r.length===a.length?"0":"1",e=n?o+e:e+o),r=a||t(b(s,i)),s=n?"1"+s:s+"1",a=t(b(s,i))}while(r!==a&&(n?r.length===a.length:r.length<=a.length));if(n&&a.length>r.length){var l=-1===t(12345).indexOf("12345");do{e="1"+e}while(l&&b(e,i)<1e5)}return e}function w(e,t,i,n){var o=t(b(e,i,n)),r=e.split("."),a=r[0]+".3"+r[1].slice(1),s=b(a,i,n),l=t(s).indexOf("3")-1;return o=o.replace(/(\d)\D(\d)/g,"$1,$2"),l>=0&&(o=o.slice(0,l)+"."+o.slice(l+1)),o=o.replace(/1+/,"1").replace(/1/g,"#"),i||(o=o.replace("%","'%'")),o}function T(e){var t=".",i=e(1).indexOf("100")>=0;t=x(t,e,i,!0),t=x(t,e,i,!1);var n=w(t,e,i,!1),o=w(t,e,i,!0);return o==="-"+n?n:n+";"+o}},44417:function(e,t,i){"use strict";i.d(t,{Z:function(){return p}});var n=i(27154),o=i(44099),r=i(73386),a=i(38192),s=i(57495),l={en:{Yes:"Yes",No:"No",Cancel:"Cancel",Close:"Close",Clear:"Clear",Done:"Done",Loading:"Loading...",Select:"Select...",Search:"Search",Back:"Back",OK:"OK","dxCollectionWidget-noDataText":"No data to display","dxDropDownEditor-selectLabel":"Select","validation-required":"Required","validation-required-formatted":"{0} is required","validation-numeric":"Value must be a number","validation-numeric-formatted":"{0} must be a number","validation-range":"Value is out of range","validation-range-formatted":"{0} is out of range","validation-stringLength":"The length of the value is not correct","validation-stringLength-formatted":"The length of {0} is not correct","validation-custom":"Value is invalid","validation-custom-formatted":"{0} is invalid","validation-async":"Value is invalid","validation-async-formatted":"{0} is invalid","validation-compare":"Values do not match","validation-compare-formatted":"{0} does not match","validation-pattern":"Value does not match pattern","validation-pattern-formatted":"{0} does not match pattern","validation-email":"Email is invalid","validation-email-formatted":"{0} is invalid","validation-mask":"Value is invalid","dxLookup-searchPlaceholder":"Minimum character number: {0}","dxList-pullingDownText":"Pull down to refresh...","dxList-pulledDownText":"Release to refresh...","dxList-refreshingText":"Refreshing...","dxList-pageLoadingText":"Loading...","dxList-nextButtonText":"More","dxList-selectAll":"Select All","dxListEditDecorator-delete":"Delete","dxListEditDecorator-more":"More","dxScrollView-pullingDownText":"Pull down to refresh...","dxScrollView-pulledDownText":"Release to refresh...","dxScrollView-refreshingText":"Refreshing...","dxScrollView-reachBottomText":"Loading...","dxDateBox-simulatedDataPickerTitleTime":"Select time","dxDateBox-simulatedDataPickerTitleDate":"Select date","dxDateBox-simulatedDataPickerTitleDateTime":"Select date and time","dxDateBox-validation-datetime":"Value must be a date or time","dxFileUploader-selectFile":"Select a file","dxFileUploader-dropFile":"or Drop a file here","dxFileUploader-bytes":"bytes","dxFileUploader-kb":"kb","dxFileUploader-Mb":"Mb","dxFileUploader-Gb":"Gb","dxFileUploader-upload":"Upload","dxFileUploader-uploaded":"Uploaded","dxFileUploader-readyToUpload":"Ready to upload","dxFileUploader-uploadAbortedMessage":"Upload cancelled","dxFileUploader-uploadFailedMessage":"Upload failed","dxFileUploader-invalidFileExtension":"File type is not allowed","dxFileUploader-invalidMaxFileSize":"File is too large","dxFileUploader-invalidMinFileSize":"File is too small","dxRangeSlider-ariaFrom":"From","dxRangeSlider-ariaTill":"Till","dxSwitch-switchedOnText":"ON","dxSwitch-switchedOffText":"OFF","dxForm-optionalMark":"optional","dxForm-requiredMessage":"{0} is required","dxNumberBox-invalidValueMessage":"Value must be a number","dxNumberBox-noDataText":"No data","dxDataGrid-columnChooserTitle":"Column Chooser","dxDataGrid-columnChooserEmptyText":"Drag a column here to hide it","dxDataGrid-groupContinuesMessage":"Continues on the next page","dxDataGrid-groupContinuedMessage":"Continued from the previous page","dxDataGrid-groupHeaderText":"Group by This Column","dxDataGrid-ungroupHeaderText":"Ungroup","dxDataGrid-ungroupAllText":"Ungroup All","dxDataGrid-editingEditRow":"Edit","dxDataGrid-editingSaveRowChanges":"Save","dxDataGrid-editingCancelRowChanges":"Cancel","dxDataGrid-editingDeleteRow":"Delete","dxDataGrid-editingUndeleteRow":"Undelete","dxDataGrid-editingConfirmDeleteMessage":"Are you sure you want to delete this record?","dxDataGrid-validationCancelChanges":"Cancel changes","dxDataGrid-groupPanelEmptyText":"Drag a column header here to group by that column","dxDataGrid-noDataText":"No data","dxDataGrid-searchPanelPlaceholder":"Search...","dxDataGrid-filterRowShowAllText":"(All)","dxDataGrid-filterRowResetOperationText":"Reset","dxDataGrid-filterRowOperationEquals":"Equals","dxDataGrid-filterRowOperationNotEquals":"Does not equal","dxDataGrid-filterRowOperationLess":"Less than","dxDataGrid-filterRowOperationLessOrEquals":"Less than or equal to","dxDataGrid-filterRowOperationGreater":"Greater than","dxDataGrid-filterRowOperationGreaterOrEquals":"Greater than or equal to","dxDataGrid-filterRowOperationStartsWith":"Starts with","dxDataGrid-filterRowOperationContains":"Contains","dxDataGrid-filterRowOperationNotContains":"Does not contain","dxDataGrid-filterRowOperationEndsWith":"Ends with","dxDataGrid-filterRowOperationBetween":"Between","dxDataGrid-filterRowOperationBetweenStartText":"Start","dxDataGrid-filterRowOperationBetweenEndText":"End","dxDataGrid-applyFilterText":"Apply filter","dxDataGrid-trueText":"true","dxDataGrid-falseText":"false","dxDataGrid-sortingAscendingText":"Sort Ascending","dxDataGrid-sortingDescendingText":"Sort Descending","dxDataGrid-sortingClearText":"Clear Sorting","dxDataGrid-editingSaveAllChanges":"Save changes","dxDataGrid-editingCancelAllChanges":"Discard changes","dxDataGrid-editingAddRow":"Add a row","dxDataGrid-summaryMin":"Min: {0}","dxDataGrid-summaryMinOtherColumn":"Min of {1} is {0}","dxDataGrid-summaryMax":"Max: {0}","dxDataGrid-summaryMaxOtherColumn":"Max of {1} is {0}","dxDataGrid-summaryAvg":"Avg: {0}","dxDataGrid-summaryAvgOtherColumn":"Avg of {1} is {0}","dxDataGrid-summarySum":"Sum: {0}","dxDataGrid-summarySumOtherColumn":"Sum of {1} is {0}","dxDataGrid-summaryCount":"Count: {0}","dxDataGrid-columnFixingFix":"Fix","dxDataGrid-columnFixingUnfix":"Unfix","dxDataGrid-columnFixingLeftPosition":"To the left","dxDataGrid-columnFixingRightPosition":"To the right","dxDataGrid-exportTo":"Export","dxDataGrid-exportToExcel":"Export to Excel file","dxDataGrid-exporting":"Exporting...","dxDataGrid-excelFormat":"Excel file","dxDataGrid-selectedRows":"Selected rows","dxDataGrid-exportSelectedRows":"Export selected rows to {0}","dxDataGrid-exportAll":"Export all data to {0}","dxDataGrid-headerFilterLabel":"Filter options","dxDataGrid-headerFilterIndicatorLabel":"Show filter options for column '{0}'","dxDataGrid-headerFilterEmptyValue":"(Blanks)","dxDataGrid-headerFilterOK":"OK","dxDataGrid-headerFilterCancel":"Cancel","dxDataGrid-ariaAdaptiveCollapse":"Hide additional data","dxDataGrid-ariaAdaptiveExpand":"Display additional data","dxDataGrid-ariaColumn":"Column","dxDataGrid-ariaValue":"Value","dxDataGrid-ariaFilterCell":"Filter cell","dxDataGrid-ariaCollapse":"Collapse","dxDataGrid-ariaExpand":"Expand","dxDataGrid-ariaDataGrid":"Data grid","dxDataGrid-ariaSearchInGrid":"Search in the data grid","dxDataGrid-ariaSelectAll":"Select all","dxDataGrid-ariaSelectRow":"Select row","dxDataGrid-ariaToolbar":"Data grid toolbar","dxDataGrid-filterBuilderPopupTitle":"Filter Builder","dxDataGrid-filterPanelCreateFilter":"Create Filter","dxDataGrid-filterPanelClearFilter":"Clear","dxDataGrid-filterPanelFilterEnabledHint":"Enable the filter","dxTreeList-ariaTreeList":"Tree list","dxTreeList-ariaSearchInGrid":"Search in the tree list","dxTreeList-ariaToolbar":"Tree list toolbar","dxTreeList-editingAddRowToNode":"Add","dxPager-infoText":"Page {0} of {1} ({2} items)","dxPager-pagesCountText":"of","dxPager-pageSize":"Items per page: {0}","dxPager-pageSizesAllText":"All","dxPager-page":"Page {0}","dxPager-prevPage":"Previous Page","dxPager-nextPage":"Next Page","dxPager-ariaLabel":"Page Navigation","dxPivotGrid-grandTotal":"Grand Total","dxPivotGrid-total":"{0} Total","dxPivotGrid-fieldChooserTitle":"Field Chooser","dxPivotGrid-showFieldChooser":"Show Field Chooser","dxPivotGrid-expandAll":"Expand All","dxPivotGrid-collapseAll":"Collapse All","dxPivotGrid-sortColumnBySummary":'Sort "{0}" by This Column',"dxPivotGrid-sortRowBySummary":'Sort "{0}" by This Row',"dxPivotGrid-removeAllSorting":"Remove All Sorting","dxPivotGrid-dataNotAvailable":"N/A","dxPivotGrid-rowFields":"Row Fields","dxPivotGrid-columnFields":"Column Fields","dxPivotGrid-dataFields":"Data Fields","dxPivotGrid-filterFields":"Filter Fields","dxPivotGrid-allFields":"All Fields","dxPivotGrid-columnFieldArea":"Drop Column Fields Here","dxPivotGrid-dataFieldArea":"Drop Data Fields Here","dxPivotGrid-rowFieldArea":"Drop Row Fields Here","dxPivotGrid-filterFieldArea":"Drop Filter Fields Here","dxScheduler-editorLabelTitle":"Subject","dxScheduler-editorLabelStartDate":"Start Date","dxScheduler-editorLabelEndDate":"End Date","dxScheduler-editorLabelDescription":"Description","dxScheduler-editorLabelRecurrence":"Repeat","dxScheduler-openAppointment":"Open appointment","dxScheduler-recurrenceNever":"Never","dxScheduler-recurrenceMinutely":"Every minute","dxScheduler-recurrenceHourly":"Hourly","dxScheduler-recurrenceDaily":"Daily","dxScheduler-recurrenceWeekly":"Weekly","dxScheduler-recurrenceMonthly":"Monthly","dxScheduler-recurrenceYearly":"Yearly","dxScheduler-recurrenceRepeatEvery":"Repeat Every","dxScheduler-recurrenceRepeatOn":"Repeat On","dxScheduler-recurrenceEnd":"End repeat","dxScheduler-recurrenceAfter":"After","dxScheduler-recurrenceOn":"On","dxScheduler-recurrenceRepeatMinutely":"minute(s)","dxScheduler-recurrenceRepeatHourly":"hour(s)","dxScheduler-recurrenceRepeatDaily":"day(s)","dxScheduler-recurrenceRepeatWeekly":"week(s)","dxScheduler-recurrenceRepeatMonthly":"month(s)","dxScheduler-recurrenceRepeatYearly":"year(s)","dxScheduler-switcherDay":"Day","dxScheduler-switcherWeek":"Week","dxScheduler-switcherWorkWeek":"Work Week","dxScheduler-switcherMonth":"Month","dxScheduler-switcherAgenda":"Agenda","dxScheduler-switcherTimelineDay":"Timeline Day","dxScheduler-switcherTimelineWeek":"Timeline Week","dxScheduler-switcherTimelineWorkWeek":"Timeline Work Week","dxScheduler-switcherTimelineMonth":"Timeline Month","dxScheduler-recurrenceRepeatOnDate":"on date","dxScheduler-recurrenceRepeatCount":"occurrence(s)","dxScheduler-allDay":"All day","dxScheduler-confirmRecurrenceEditMessage":"Do you want to edit only this appointment or the whole series?","dxScheduler-confirmRecurrenceDeleteMessage":"Do you want to delete only this appointment or the whole series?","dxScheduler-confirmRecurrenceEditSeries":"Edit series","dxScheduler-confirmRecurrenceDeleteSeries":"Delete series","dxScheduler-confirmRecurrenceEditOccurrence":"Edit appointment","dxScheduler-confirmRecurrenceDeleteOccurrence":"Delete appointment","dxScheduler-noTimezoneTitle":"No timezone","dxScheduler-moreAppointments":"{0} more","dxCalendar-todayButtonText":"Today","dxCalendar-ariaWidgetName":"Calendar","dxColorView-ariaRed":"Red","dxColorView-ariaGreen":"Green","dxColorView-ariaBlue":"Blue","dxColorView-ariaAlpha":"Transparency","dxColorView-ariaHex":"Color code","dxTagBox-selected":"{0} selected","dxTagBox-allSelected":"All selected ({0})","dxTagBox-moreSelected":"{0} more","vizExport-printingButtonText":"Print","vizExport-titleMenuText":"Exporting/Printing","vizExport-exportButtonText":"{0} file","dxFilterBuilder-and":"And","dxFilterBuilder-or":"Or","dxFilterBuilder-notAnd":"Not And","dxFilterBuilder-notOr":"Not Or","dxFilterBuilder-addCondition":"Add Condition","dxFilterBuilder-addGroup":"Add Group","dxFilterBuilder-enterValueText":"","dxFilterBuilder-filterOperationEquals":"Equals","dxFilterBuilder-filterOperationNotEquals":"Does not equal","dxFilterBuilder-filterOperationLess":"Is less than","dxFilterBuilder-filterOperationLessOrEquals":"Is less than or equal to","dxFilterBuilder-filterOperationGreater":"Is greater than","dxFilterBuilder-filterOperationGreaterOrEquals":"Is greater than or equal to","dxFilterBuilder-filterOperationStartsWith":"Starts with","dxFilterBuilder-filterOperationContains":"Contains","dxFilterBuilder-filterOperationNotContains":"Does not contain","dxFilterBuilder-filterOperationEndsWith":"Ends with","dxFilterBuilder-filterOperationIsBlank":"Is blank","dxFilterBuilder-filterOperationIsNotBlank":"Is not blank","dxFilterBuilder-filterOperationBetween":"Is between","dxFilterBuilder-filterOperationAnyOf":"Is any of","dxFilterBuilder-filterOperationNoneOf":"Is none of","dxHtmlEditor-dialogColorCaption":"Change Font Color","dxHtmlEditor-dialogBackgroundCaption":"Change Background Color","dxHtmlEditor-dialogLinkCaption":"Add Link","dxHtmlEditor-dialogLinkUrlField":"URL","dxHtmlEditor-dialogLinkTextField":"Text","dxHtmlEditor-dialogLinkTargetField":"Open link in new window","dxHtmlEditor-dialogImageCaption":"Add Image","dxHtmlEditor-dialogImageUrlField":"URL","dxHtmlEditor-dialogImageAltField":"Alternate text","dxHtmlEditor-dialogImageWidthField":"Width (px)","dxHtmlEditor-dialogImageHeightField":"Height (px)","dxHtmlEditor-dialogInsertTableRowsField":"Rows","dxHtmlEditor-dialogInsertTableColumnsField":"Columns","dxHtmlEditor-dialogInsertTableCaption":"Insert Table","dxHtmlEditor-dialogUpdateImageCaption":"Update Image","dxHtmlEditor-dialogImageUpdateButton":"Update","dxHtmlEditor-dialogImageAddButton":"Add","dxHtmlEditor-dialogImageSpecifyUrl":"From the Web","dxHtmlEditor-dialogImageSelectFile":"From This Device","dxHtmlEditor-dialogImageKeepAspectRatio":"Keep Aspect Ratio","dxHtmlEditor-dialogImageEncodeToBase64":"Encode to Base64","dxHtmlEditor-heading":"Heading","dxHtmlEditor-normalText":"Normal text","dxHtmlEditor-background":"Background Color","dxHtmlEditor-bold":"Bold","dxHtmlEditor-color":"Font Color","dxHtmlEditor-font":"Font","dxHtmlEditor-italic":"Italic","dxHtmlEditor-link":"Add Link","dxHtmlEditor-image":"Add Image","dxHtmlEditor-size":"Size","dxHtmlEditor-strike":"Strikethrough","dxHtmlEditor-subscript":"Subscript","dxHtmlEditor-superscript":"Superscript","dxHtmlEditor-underline":"Underline","dxHtmlEditor-blockquote":"Blockquote","dxHtmlEditor-header":"Header","dxHtmlEditor-increaseIndent":"Increase Indent","dxHtmlEditor-decreaseIndent":"Decrease Indent","dxHtmlEditor-orderedList":"Ordered List","dxHtmlEditor-bulletList":"Bullet List","dxHtmlEditor-alignLeft":"Align Left","dxHtmlEditor-alignCenter":"Align Center","dxHtmlEditor-alignRight":"Align Right","dxHtmlEditor-alignJustify":"Align Justify","dxHtmlEditor-codeBlock":"Code Block","dxHtmlEditor-variable":"Add Variable","dxHtmlEditor-undo":"Undo","dxHtmlEditor-redo":"Redo","dxHtmlEditor-clear":"Clear Formatting","dxHtmlEditor-insertTable":"Insert Table","dxHtmlEditor-insertHeaderRow":"Insert Header Row","dxHtmlEditor-insertRowAbove":"Insert Row Above","dxHtmlEditor-insertRowBelow":"Insert Row Below","dxHtmlEditor-insertColumnLeft":"Insert Column Left","dxHtmlEditor-insertColumnRight":"Insert Column Right","dxHtmlEditor-deleteColumn":"Delete Column","dxHtmlEditor-deleteRow":"Delete Row","dxHtmlEditor-deleteTable":"Delete Table","dxHtmlEditor-cellProperties":"Cell Properties","dxHtmlEditor-tableProperties":"Table Properties","dxHtmlEditor-insert":"Insert","dxHtmlEditor-delete":"Delete","dxHtmlEditor-border":"Border","dxHtmlEditor-style":"Style","dxHtmlEditor-width":"Width","dxHtmlEditor-height":"Height","dxHtmlEditor-borderColor":"Color","dxHtmlEditor-tableBackground":"Background","dxHtmlEditor-dimensions":"Dimensions","dxHtmlEditor-alignment":"Alignment","dxHtmlEditor-horizontal":"Horizontal","dxHtmlEditor-vertical":"Vertical","dxHtmlEditor-paddingVertical":"Vertical Padding","dxHtmlEditor-paddingHorizontal":"Horizontal Padding","dxHtmlEditor-pixels":"Pixels","dxHtmlEditor-list":"List","dxHtmlEditor-ordered":"Ordered","dxHtmlEditor-bullet":"Bullet","dxHtmlEditor-align":"Align","dxHtmlEditor-center":"Center","dxHtmlEditor-left":"Left","dxHtmlEditor-right":"Right","dxHtmlEditor-indent":"Indent","dxHtmlEditor-justify":"Justify","dxFileManager-newDirectoryName":"Untitled directory","dxFileManager-rootDirectoryName":"Files","dxFileManager-errorNoAccess":"Access Denied. Operation could not be completed.","dxFileManager-errorDirectoryExistsFormat":"Directory '{0}' already exists.","dxFileManager-errorFileExistsFormat":"File '{0}' already exists.","dxFileManager-errorFileNotFoundFormat":"File '{0}' not found.","dxFileManager-errorDirectoryNotFoundFormat":"Directory '{0}' not found.","dxFileManager-errorWrongFileExtension":"File extension is not allowed.","dxFileManager-errorMaxFileSizeExceeded":"File size exceeds the maximum allowed size.","dxFileManager-errorInvalidSymbols":"This name contains invalid characters.","dxFileManager-errorDefault":"Unspecified error.","dxFileManager-errorDirectoryOpenFailed":"The directory cannot be opened","dxFileManager-commandCreate":"New directory","dxFileManager-commandRename":"Rename","dxFileManager-commandMove":"Move to","dxFileManager-commandCopy":"Copy to","dxFileManager-commandDelete":"Delete","dxFileManager-commandDownload":"Download","dxFileManager-commandUpload":"Upload files","dxFileManager-commandRefresh":"Refresh","dxFileManager-commandThumbnails":"Thumbnails View","dxFileManager-commandDetails":"Details View","dxFileManager-commandClearSelection":"Clear selection","dxFileManager-commandShowNavPane":"Toggle navigation pane","dxFileManager-dialogDirectoryChooserMoveTitle":"Move to","dxFileManager-dialogDirectoryChooserMoveButtonText":"Move","dxFileManager-dialogDirectoryChooserCopyTitle":"Copy to","dxFileManager-dialogDirectoryChooserCopyButtonText":"Copy","dxFileManager-dialogRenameItemTitle":"Rename","dxFileManager-dialogRenameItemButtonText":"Save","dxFileManager-dialogCreateDirectoryTitle":"New directory","dxFileManager-dialogCreateDirectoryButtonText":"Create","dxFileManager-dialogDeleteItemTitle":"Delete","dxFileManager-dialogDeleteItemButtonText":"Delete","dxFileManager-dialogDeleteItemSingleItemConfirmation":"Are you sure you want to delete {0}?","dxFileManager-dialogDeleteItemMultipleItemsConfirmation":"Are you sure you want to delete {0} items?","dxFileManager-dialogButtonCancel":"Cancel","dxFileManager-editingCreateSingleItemProcessingMessage":"Creating a directory inside {0}","dxFileManager-editingCreateSingleItemSuccessMessage":"Created a directory inside {0}","dxFileManager-editingCreateSingleItemErrorMessage":"Directory was not created","dxFileManager-editingCreateCommonErrorMessage":"Directory was not created","dxFileManager-editingRenameSingleItemProcessingMessage":"Renaming an item inside {0}","dxFileManager-editingRenameSingleItemSuccessMessage":"Renamed an item inside {0}","dxFileManager-editingRenameSingleItemErrorMessage":"Item was not renamed","dxFileManager-editingRenameCommonErrorMessage":"Item was not renamed","dxFileManager-editingDeleteSingleItemProcessingMessage":"Deleting an item from {0}","dxFileManager-editingDeleteMultipleItemsProcessingMessage":"Deleting {0} items from {1}","dxFileManager-editingDeleteSingleItemSuccessMessage":"Deleted an item from {0}","dxFileManager-editingDeleteMultipleItemsSuccessMessage":"Deleted {0} items from {1}","dxFileManager-editingDeleteSingleItemErrorMessage":"Item was not deleted","dxFileManager-editingDeleteMultipleItemsErrorMessage":"{0} items were not deleted","dxFileManager-editingDeleteCommonErrorMessage":"Some items were not deleted","dxFileManager-editingMoveSingleItemProcessingMessage":"Moving an item to {0}","dxFileManager-editingMoveMultipleItemsProcessingMessage":"Moving {0} items to {1}","dxFileManager-editingMoveSingleItemSuccessMessage":"Moved an item to {0}","dxFileManager-editingMoveMultipleItemsSuccessMessage":"Moved {0} items to {1}","dxFileManager-editingMoveSingleItemErrorMessage":"Item was not moved","dxFileManager-editingMoveMultipleItemsErrorMessage":"{0} items were not moved","dxFileManager-editingMoveCommonErrorMessage":"Some items were not moved","dxFileManager-editingCopySingleItemProcessingMessage":"Copying an item to {0}","dxFileManager-editingCopyMultipleItemsProcessingMessage":"Copying {0} items to {1}","dxFileManager-editingCopySingleItemSuccessMessage":"Copied an item to {0}","dxFileManager-editingCopyMultipleItemsSuccessMessage":"Copied {0} items to {1}","dxFileManager-editingCopySingleItemErrorMessage":"Item was not copied","dxFileManager-editingCopyMultipleItemsErrorMessage":"{0} items were not copied","dxFileManager-editingCopyCommonErrorMessage":"Some items were not copied","dxFileManager-editingUploadSingleItemProcessingMessage":"Uploading an item to {0}","dxFileManager-editingUploadMultipleItemsProcessingMessage":"Uploading {0} items to {1}","dxFileManager-editingUploadSingleItemSuccessMessage":"Uploaded an item to {0}","dxFileManager-editingUploadMultipleItemsSuccessMessage":"Uploaded {0} items to {1}","dxFileManager-editingUploadSingleItemErrorMessage":"Item was not uploaded","dxFileManager-editingUploadMultipleItemsErrorMessage":"{0} items were not uploaded","dxFileManager-editingUploadCanceledMessage":"Canceled","dxFileManager-editingDownloadSingleItemErrorMessage":"Item was not downloaded","dxFileManager-editingDownloadMultipleItemsErrorMessage":"{0} items were not downloaded","dxFileManager-listDetailsColumnCaptionName":"Name","dxFileManager-listDetailsColumnCaptionDateModified":"Date Modified","dxFileManager-listDetailsColumnCaptionFileSize":"File Size","dxFileManager-listThumbnailsTooltipTextSize":"Size","dxFileManager-listThumbnailsTooltipTextDateModified":"Date Modified","dxFileManager-notificationProgressPanelTitle":"Progress","dxFileManager-notificationProgressPanelEmptyListText":"No operations","dxFileManager-notificationProgressPanelOperationCanceled":"Canceled","dxDiagram-categoryGeneral":"General","dxDiagram-categoryFlowchart":"Flowchart","dxDiagram-categoryOrgChart":"Org Chart","dxDiagram-categoryContainers":"Containers","dxDiagram-categoryCustom":"Custom","dxDiagram-commandExportToSvg":"Export to SVG","dxDiagram-commandExportToPng":"Export to PNG","dxDiagram-commandExportToJpg":"Export to JPEG","dxDiagram-commandUndo":"Undo","dxDiagram-commandRedo":"Redo","dxDiagram-commandFontName":"Font Name","dxDiagram-commandFontSize":"Font Size","dxDiagram-commandBold":"Bold","dxDiagram-commandItalic":"Italic","dxDiagram-commandUnderline":"Underline","dxDiagram-commandTextColor":"Font Color","dxDiagram-commandLineColor":"Line Color","dxDiagram-commandLineWidth":"Line Width","dxDiagram-commandLineStyle":"Line Style","dxDiagram-commandLineStyleSolid":"Solid","dxDiagram-commandLineStyleDotted":"Dotted","dxDiagram-commandLineStyleDashed":"Dashed","dxDiagram-commandFillColor":"Fill Color","dxDiagram-commandAlignLeft":"Align Left","dxDiagram-commandAlignCenter":"Align Center","dxDiagram-commandAlignRight":"Align Right","dxDiagram-commandConnectorLineType":"Connector Line Type","dxDiagram-commandConnectorLineStraight":"Straight","dxDiagram-commandConnectorLineOrthogonal":"Orthogonal","dxDiagram-commandConnectorLineStart":"Connector Line Start","dxDiagram-commandConnectorLineEnd":"Connector Line End","dxDiagram-commandConnectorLineNone":"None","dxDiagram-commandConnectorLineArrow":"Arrow","dxDiagram-commandFullscreen":"Full Screen","dxDiagram-commandUnits":"Units","dxDiagram-commandPageSize":"Page Size","dxDiagram-commandPageOrientation":"Page Orientation","dxDiagram-commandPageOrientationLandscape":"Landscape","dxDiagram-commandPageOrientationPortrait":"Portrait","dxDiagram-commandPageColor":"Page Color","dxDiagram-commandShowGrid":"Show Grid","dxDiagram-commandSnapToGrid":"Snap to Grid","dxDiagram-commandGridSize":"Grid Size","dxDiagram-commandZoomLevel":"Zoom Level","dxDiagram-commandAutoZoom":"Auto Zoom","dxDiagram-commandFitToContent":"Fit to Content","dxDiagram-commandFitToWidth":"Fit to Width","dxDiagram-commandAutoZoomByContent":"Auto Zoom by Content","dxDiagram-commandAutoZoomByWidth":"Auto Zoom by Width","dxDiagram-commandSimpleView":"Simple View","dxDiagram-commandCut":"Cut","dxDiagram-commandCopy":"Copy","dxDiagram-commandPaste":"Paste","dxDiagram-commandSelectAll":"Select All","dxDiagram-commandDelete":"Delete","dxDiagram-commandBringToFront":"Bring to Front","dxDiagram-commandSendToBack":"Send to Back","dxDiagram-commandLock":"Lock","dxDiagram-commandUnlock":"Unlock","dxDiagram-commandInsertShapeImage":"Insert Image...","dxDiagram-commandEditShapeImage":"Change Image...","dxDiagram-commandDeleteShapeImage":"Delete Image","dxDiagram-commandLayoutLeftToRight":"Left-to-right","dxDiagram-commandLayoutRightToLeft":"Right-to-left","dxDiagram-commandLayoutTopToBottom":"Top-to-bottom","dxDiagram-commandLayoutBottomToTop":"Bottom-to-top","dxDiagram-unitIn":"in","dxDiagram-unitCm":"cm","dxDiagram-unitPx":"px","dxDiagram-dialogButtonOK":"OK","dxDiagram-dialogButtonCancel":"Cancel","dxDiagram-dialogInsertShapeImageTitle":"Insert Image","dxDiagram-dialogEditShapeImageTitle":"Change Image","dxDiagram-dialogEditShapeImageSelectButton":"Select image","dxDiagram-dialogEditShapeImageLabelText":"or drop a file here","dxDiagram-uiExport":"Export","dxDiagram-uiProperties":"Properties","dxDiagram-uiSettings":"Settings","dxDiagram-uiShowToolbox":"Show Toolbox","dxDiagram-uiSearch":"Search","dxDiagram-uiStyle":"Style","dxDiagram-uiLayout":"Layout","dxDiagram-uiLayoutTree":"Tree","dxDiagram-uiLayoutLayered":"Layered","dxDiagram-uiDiagram":"Diagram","dxDiagram-uiText":"Text","dxDiagram-uiObject":"Object","dxDiagram-uiConnector":"Connector","dxDiagram-uiPage":"Page","dxDiagram-shapeText":"Text","dxDiagram-shapeRectangle":"Rectangle","dxDiagram-shapeEllipse":"Ellipse","dxDiagram-shapeCross":"Cross","dxDiagram-shapeTriangle":"Triangle","dxDiagram-shapeDiamond":"Diamond","dxDiagram-shapeHeart":"Heart","dxDiagram-shapePentagon":"Pentagon","dxDiagram-shapeHexagon":"Hexagon","dxDiagram-shapeOctagon":"Octagon","dxDiagram-shapeStar":"Star","dxDiagram-shapeArrowLeft":"Left Arrow","dxDiagram-shapeArrowUp":"Up Arrow","dxDiagram-shapeArrowRight":"Right Arrow","dxDiagram-shapeArrowDown":"Down Arrow","dxDiagram-shapeArrowUpDown":"Up Down Arrow","dxDiagram-shapeArrowLeftRight":"Left Right Arrow","dxDiagram-shapeProcess":"Process","dxDiagram-shapeDecision":"Decision","dxDiagram-shapeTerminator":"Terminator","dxDiagram-shapePredefinedProcess":"Predefined Process","dxDiagram-shapeDocument":"Document","dxDiagram-shapeMultipleDocuments":"Multiple Documents","dxDiagram-shapeManualInput":"Manual Input","dxDiagram-shapePreparation":"Preparation","dxDiagram-shapeData":"Data","dxDiagram-shapeDatabase":"Database","dxDiagram-shapeHardDisk":"Hard Disk","dxDiagram-shapeInternalStorage":"Internal Storage","dxDiagram-shapePaperTape":"Paper Tape","dxDiagram-shapeManualOperation":"Manual Operation","dxDiagram-shapeDelay":"Delay","dxDiagram-shapeStoredData":"Stored Data","dxDiagram-shapeDisplay":"Display","dxDiagram-shapeMerge":"Merge","dxDiagram-shapeConnector":"Connector","dxDiagram-shapeOr":"Or","dxDiagram-shapeSummingJunction":"Summing Junction","dxDiagram-shapeContainerDefaultText":"Container","dxDiagram-shapeVerticalContainer":"Vertical Container","dxDiagram-shapeHorizontalContainer":"Horizontal Container","dxDiagram-shapeCardDefaultText":"Person's Name","dxDiagram-shapeCardWithImageOnLeft":"Card with Image on the Left","dxDiagram-shapeCardWithImageOnTop":"Card with Image on the Top","dxDiagram-shapeCardWithImageOnRight":"Card with Image on the Right","dxGantt-dialogTitle":"Title","dxGantt-dialogStartTitle":"Start","dxGantt-dialogEndTitle":"End","dxGantt-dialogProgressTitle":"Progress","dxGantt-dialogResourcesTitle":"Resources","dxGantt-dialogResourceManagerTitle":"Resource Manager","dxGantt-dialogTaskDetailsTitle":"Task Details","dxGantt-dialogEditResourceListHint":"Edit Resource List","dxGantt-dialogEditNoResources":"No resources","dxGantt-dialogButtonAdd":"Add","dxGantt-contextMenuNewTask":"New Task","dxGantt-contextMenuNewSubtask":"New Subtask","dxGantt-contextMenuDeleteTask":"Delete Task","dxGantt-contextMenuDeleteDependency":"Delete Dependency","dxGantt-dialogTaskDeleteConfirmation":"Deleting a task also deletes all its dependencies and subtasks. Are you sure you want to delete this task?","dxGantt-dialogDependencyDeleteConfirmation":"Are you sure you want to delete the dependency from the task?","dxGantt-dialogResourcesDeleteConfirmation":"Deleting a resource also deletes it from tasks to which this resource is assigned. Are you sure you want to delete these resources? Resources: {0}","dxGantt-dialogConstraintCriticalViolationMessage":"The task you are attempting to move is linked to a second task by a dependency relation. This change would conflict with dependency rules. How would you like to proceed?","dxGantt-dialogConstraintViolationMessage":"The task you are attempting to move is linked to a second task by a dependency relation. How would you like to proceed?","dxGantt-dialogCancelOperationMessage":"Cancel the operation","dxGantt-dialogDeleteDependencyMessage":"Delete the dependency","dxGantt-dialogMoveTaskAndKeepDependencyMessage":"Move the task and keep the dependency","dxGantt-dialogConstraintCriticalViolationSeveralTasksMessage":"The task you are attempting to move is linked to another tasks by dependency relations. This change would conflict with dependency rules. How would you like to proceed?","dxGantt-dialogConstraintViolationSeveralTasksMessage":"The task you are attempting to move is linked to another tasks by dependency relations. How would you like to proceed?","dxGantt-dialogDeleteDependenciesMessage":"Delete the dependency relations","dxGantt-dialogMoveTaskAndKeepDependenciesMessage":"Move the task and keep the dependencies","dxGantt-undo":"Undo","dxGantt-redo":"Redo","dxGantt-expandAll":"Expand All","dxGantt-collapseAll":"Collapse All","dxGantt-addNewTask":"Add New Task","dxGantt-deleteSelectedTask":"Delete Selected Task","dxGantt-zoomIn":"Zoom In","dxGantt-zoomOut":"Zoom Out","dxGantt-fullScreen":"Full Screen","dxGantt-quarter":"Q{0}","dxGantt-sortingAscendingText":"Sort Ascending","dxGantt-sortingDescendingText":"Sort Descending","dxGantt-sortingClearText":"Clear Sorting","dxGantt-showResources":"Show Resources","dxGantt-showDependencies":"Show Dependencies","dxGantt-dialogStartDateValidation":"Start date must be after {0}","dxGantt-dialogEndDateValidation":"End date must be after {0}"}},d=(0,o.l)(!0,{},l),u=(e,t)=>e[t]||{},c={},h=(0,n.Z)({engine:function(){return"base"},_dictionary:d,load:function(e){(0,o.l)(!0,this._dictionary,e)},_localizablePrefix:"@",setup:function(e){this._localizablePrefix=e},localizeString:function(e){var t=this,i=new RegExp("(^|[^a-zA-Z_0-9"+t._localizablePrefix+"-]+)("+t._localizablePrefix+"{1,2})([a-zA-Z_0-9-]+)","g"),n=t._localizablePrefix+t._localizablePrefix;return e.replace(i,((e,i,o,r)=>{var s,l=t._localizablePrefix+r;return o!==n&&(s=t.format(r)),s||(c[r]=(0,a.OI)(r)),i+(s||l)}))},getMessagesByLocales:function(){return this._dictionary},getDictionary:function(e){return e?c:(0,o.l)({},c,this.getMessagesByLocales()[s.Z.locale()])},getFormatter:function(e){return this._getFormatterBase(e)||this._getFormatterBase(e,"en")},_getFormatterBase:function(e,t){var i=s.Z.getValueByClosestLocale((t=>u(this._dictionary,t)[e]));if(i)return function(){var e=1===arguments.length&&Array.isArray(arguments[0])?arguments[0].slice(0):Array.prototype.slice.call(arguments,0);return e.unshift(i),r.WU.apply(this,e)}},format:function(e){var t=this.getFormatter(e),i=Array.prototype.slice.call(arguments,1);return t&&t.apply(this,i)||""}}),p=h},46282:function(e,t,i){"use strict";i.d(t,{Z:function(){return k}});var n=i(27154),o=i(72264),r=i(63419),a=i(50450),s=i(49683),l=i(44432),d=i(33734),u=i(45075),c=i(52977),h=i(57495),p=(e,t)=>{if(t){var i=e;if("string"===typeof e){i="";for(var n=0;n{var t=h.Z.locale()+"/"+JSON.stringify(e);return v[t]||(v[t]=new Intl.NumberFormat(h.Z.locale(),e).format),v[t]},C=e=>new Intl.NumberFormat(h.Z.locale(),{style:"currency",currency:e}),b={engine:function(){return"intl"},_formatNumberCore:function(e,t,i){return"exponential"===t?this.callBase.apply(this,arguments):y(this._normalizeFormatConfig(t,i,e))(e)},_normalizeFormatConfig:function(e,t,i){var n;if("decimal"===e){var o=String(i).split(".")[1];n={minimumIntegerDigits:t.precision||void 0,useGrouping:!1,maximumFractionDigits:o&&o.length,round:i<0?"ceil":"floor"}}else n=this._getPrecisionConfig(t.precision);if("percent"===e)n.style="percent";else if("currency"===e){var r,a=null!==(r=t.useCurrencyAccountingStyle)&&void 0!==r?r:(0,l.Z)().defaultUseCurrencyAccountingStyle;n.style="currency",n.currency=t.currency||(0,l.Z)().defaultCurrency,n.currencySign=g[+a]}return n},_getPrecisionConfig:function(e){var t;return t=null===e?{minimumFractionDigits:0,maximumFractionDigits:m}:{minimumFractionDigits:e||0,maximumFractionDigits:e||0},t},format:function(e,t){return"number"!==typeof e?e:(t=this._normalizeFormat(t),"default"===t.currency&&(t.currency=(0,l.Z)().defaultCurrency),t&&("function"===typeof t||t.type||t.formatter)?this.callBase.apply(this,arguments):y(t)(e))},_getCurrencySymbolInfo:function(e){var t=C(e);return this._extractCurrencySymbolInfo(t.format(0))},_extractCurrencySymbolInfo:function(e){var t=_.exec(e)||[],i=t[1]?"before":"after",n=t[1]||t[4]||"",o=t[2]||t[3]||"";return{position:i,symbol:n,delimiter:o}},getCurrencySymbol:function(e){e||(e=(0,l.Z)().defaultCurrency);var t=this._getCurrencySymbolInfo(e);return{symbol:t.symbol}},getOpenXmlCurrencyFormat:function(e){var t=e||(0,l.Z)().defaultCurrency,i=this._getCurrencySymbolInfo(t).symbol,n=h.Z.getValueByClosestLocale((e=>f[e]));return p(i,n)}},x="undefined"!==typeof Intl,w=4,T=10,S=["currency","fixedpoint","exponential","percent","decimal"],I={1:"K",2:"M",3:"B",4:"T"},E={largenumber:"auto",thousands:1,millions:2,billions:3,trillions:4},D=(0,n.Z)({engine:function(){return"base"},numericFormats:S,defaultLargeNumberFormatPostfixes:I,_parseNumberFormatString:function(e){var t={};if(e&&"string"===typeof e){var i=e.toLowerCase().split(" ");return(0,r.S6)(i,((e,i)=>{S.includes(i)?t.formatType=i:i in E&&(t.power=E[i])})),t.power&&!t.formatType&&(t.formatType="fixedpoint"),t.formatType?t:void 0}},_calculateNumberPower:function(e,t,i,n){var o=Math.abs(e),r=0;if(o>1)while(o&&o>=t&&(void 0===n||r0&&o<1)while(o<1&&(void 0===i||r>i))r--,o*=t;return r},_getNumberByPower:function(e,t,i){var n=e;while(t>0)n/=i,t--;while(t<0)n*=i,t++;return n},_formatNumber:function(e,t,i){"auto"===t.power&&(t.power=this._calculateNumberPower(e,1e3,0,w)),t.power&&(e=this._getNumberByPower(e,t.power,1e3));var n=this.defaultLargeNumberFormatPostfixes[t.power]||"",o=this._formatNumberCore(e,t.formatType,i);return o=o.replace(/(\d|.$)(\D*)$/,"$1"+n+"$2"),o},_formatNumberExponential:function(e,t){var i=this._calculateNumberPower(e,T),n=this._getNumberByPower(e,i,T);void 0===t.precision&&(t.precision=1),n.toFixed(t.precision||0)>=T&&(i++,n/=T);var o=(i>=0?"+":"")+i.toString();return this._formatNumberCore(n,"fixedpoint",t)+"E"+o},_addZeroes:function(e,t){var i=Math.pow(10,t),n=e<0?"-":"";e=(Math.abs(e)*i>>>0)/i;var o=e.toString();while(o.lengthString.fromCharCode(e.charCodeAt(0)+(o.charCodeAt(0)-n.charCodeAt(0)))))},getNegativeEtalonRegExp:function(e){var t=this._getSeparators(),i=new RegExp("[0-9"+(0,o.hr)(t.decimalSeparator+t.thousandsSeparator)+"]+","g"),n=this.format(-1,e).replace(i,"1");return["\\","(",")","[","]","*","+","$","^","?","|","{","}"].forEach((e=>{n=n.replace(new RegExp("\\".concat(e),"g"),"\\".concat(e))})),n=n.replace(/ /g,"\\s"),n=n.replace(/1/g,".*"),new RegExp(n,"g")},getSign:function(e,t){if(!t)return"-"===e.replace(/[^0-9-]/g,"").charAt(0)?-1:1;var i=this.getNegativeEtalonRegExp(t);return e.match(i)?-1:1},format:function(e,t){if("number"!==typeof e)return e;if("number"===typeof t)return e;if(t=t&&t.formatter||t,"function"===typeof t)return t(e);t=this._normalizeFormat(t),t.type||(t.type="decimal");var i=this._parseNumberFormatString(t.type);if(!i){var n=this._getSeparators();return n.unlimitedIntegerDigits=t.unlimitedIntegerDigits,this.convertDigits((0,s.P)(t.type,n)(e))}return this._formatNumber(e,i,t)},parse:function(e,t){if(e){if(t&&t.parser)return t.parser(e);e=this.convertDigits(e,!0),t&&"string"!==typeof t&&d.Z.log("W0011");var i=this.getDecimalSeparator(),n=new RegExp("[^0-9"+(0,o.hr)(i)+"]","g"),r=e.replace(n,"").replace(i,".").replace(/\.$/g,"");if("."===r||""===r)return null;if(this._calcSignificantDigits(r)>15)return NaN;var a=+r*this.getSign(e,t);t=this._normalizeFormat(t);var s=this._parseNumberFormatString(t.type),l=null===s||void 0===s?void 0:s.power;if(l){if("auto"===l){var u=e.match(/\d(K|M|B|T)/);u&&(l=Object.keys(I).find((e=>I[e]===u[1])))}a*=Math.pow(10,3*l)}return"percent"===(null===s||void 0===s?void 0:s.formatType)&&(a/=100),a}},_calcSignificantDigits:function(e){var[t,i]=e.split("."),n=e=>{for(var t=-1,i=0;i-1?e.length-t:0},o=0;return t&&(o+=n(t.split(""))),i&&(o+=n(i.split("").reverse())),o}});D.inject(c.Z),x&&D.inject(b);var k=D},45075:function(e,t,i){"use strict";i.d(t,{F:function(){return s}});var n=i(94381),o=10;function r(e){var t=(0,n.Xx)(e);return t*Math.round(Math.abs(e))}function a(e,t){var i=Math.pow(o,t),a=(0,n.Ow)(e,t);return r(a)/i}function s(e,t){var i=t||0,n=i>0?a(...arguments):e;return n.toFixed(i)}},93319:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return XG}});var n=i(30057),o=i(57678),r=i(78852),a=i(44099),s=i(18274),l=i(50450),d="tasks",u="dependencies",c="resources",h="resourceAssignments",p={create:e=>({NotifyTaskCreated:(t,i,n)=>{e._onRecordInserted(d,t,i)},NotifyTaskRemoved:(t,i,n)=>{e._onRecordRemoved(d,t,n)},NotifyTaskUpdated:(t,i,n)=>{e._onRecordUpdated(d,t,i)},NotifyParentTaskUpdated:(t,i)=>{e._onParentTaskUpdated(t)},NotifyDependencyInserted:(t,i,n)=>{e._onRecordInserted(u,t,i)},NotifyDependencyRemoved:(t,i,n)=>{e._onRecordRemoved(u,t,n)},NotifyResourceCreated:(t,i,n)=>{e._onRecordInserted(c,t,i)},NotifyResourceRemoved:(t,i,n)=>{e._onRecordRemoved(c,t,n)},NotifyResourceAssigned:(t,i,n)=>{e._onRecordInserted(h,t,i)},NotifyResourceUnassigned:(t,i,n)=>{e._onRecordRemoved(h,t,n)},NotifyParentDataRecalculated:t=>{e._onParentTasksRecalculated(t)},NotifyTaskCreating:t=>{e._actionsManager.raiseInsertingAction(d,t)},NotifyTaskRemoving:t=>{e._actionsManager.raiseDeletingAction(d,t)},NotifyTaskUpdating:t=>{e._actionsManager.raiseUpdatingAction(d,t)},NotifyTaskMoving:t=>{e._actionsManager.raiseUpdatingAction(d,t,e._actionsManager.getTaskMovingAction())},NotifyTaskEditDialogShowing:t=>{e._actionsManager.raiseTaskEditDialogShowingAction(t)},NotifyResourceManagerDialogShowing:t=>{e._actionsManager.raiseResourceManagerDialogShowingAction(t)},NotifyDependencyInserting:t=>{e._actionsManager.raiseInsertingAction(u,t)},NotifyDependencyRemoving:t=>{e._actionsManager.raiseDeletingAction(u,t)},NotifyResourceCreating:t=>{e._actionsManager.raiseInsertingAction(c,t)},NotifyResourceRemoving:t=>{e._actionsManager.raiseDeletingAction(c,t)},NotifyResourceAssigning:t=>{e._actionsManager.raiseInsertingAction(h,t)},NotifyResourceUnassigning:t=>{e._actionsManager.raiseDeletingAction(h,t)},NotifyScaleCellPrepared:t=>{e._actionsManager.raiseScaleCellPreparedAction(t)}})},f=i(18176),g=i(95060);class m extends f.w{constructor(e,t,i){super(),this._optionName=e,this._getLoadPanel=t,this._dataSourceChangedCallback=i}insert(e,t,i){this._showLoadPanel(),this._getStore().insert(e).done((e=>{t&&t(e),this._hideLoadPanel()})).fail((e=>{i&&i(e),this._hideLoadPanel()}))}update(e,t,i,n){this._showLoadPanel(),this._getStore().update(e,t).done(((e,t)=>{i&&i(e,t),this._hideLoadPanel()})).fail((e=>{n&&n(e),this._hideLoadPanel()}))}remove(e,t,i){this._showLoadPanel(),this._getStore().remove(e).done((e=>{t&&t(e),this._hideLoadPanel()})).fail((e=>{i&&i(e),this._hideLoadPanel()}))}_dataSourceChangedHandler(e,t){this._dataSourceChangedCallback(this._optionName,e)}_dataSourceOptions(){return{paginate:!1}}_dataSourceLoadingChangedHandler(e){e&&!this._dataSource.isLoaded()?this._showLoadPanel():this._hideLoadPanel()}_showLoadPanel(){var e;null===(e=this._getLoadPanel())||void 0===e||e.show()}_hideLoadPanel(){var e;null===(e=this._getLoadPanel())||void 0===e||e.hide()}_getStore(){return this._dataSource.store()}_getItems(){return this._getStore()._array||this._dataSource.items()}_reloadDataSource(){return this._dataSource.load()}dispose(){this._disposeDataSource()}_optionChanged(e){e.name}}m.include(g.Z);var _=m,v=i(72264),y=i(44417),C=i(652),b=i(230),x=i(53970),w=i(30390),T=i(90343),S=i(19728),I=i(86859),E=i(63419),D=i(23191);function k(e,t,i){function n(e){return"string"===typeof e?e.split("."):"number"===typeof e?[e]:e}e=n(e),t=n(t);var o=Math.max(e.length,t.length);isFinite(i)&&(o=Math.min(o,i));for(var r=0;rs)return 1}return 0}var O,A=i(50812),P=i(49784),M=i(25445),R=i(78172),B=i(91866),V=i(36494),F=i(32369),H="dxactive",L="dxinactive",N=30,Z=400,$=P.Z.inherit({ctor:function(e,t){this._timeout=e,this._fire=t},start:function(){var e=this;this._schedule((function(){e.force()}))},_schedule:function(e){this.stop(),this._timer=setTimeout(e,this._timeout)},stop:function(){clearTimeout(this._timer)},force:function(){this._fired||(this.stop(),this._fire(),this._fired=!0)},fired:function(){return this._fired}}),W=V.Z.inherit({ctor:function(){this.callBase.apply(this,arguments),this._active=new $(0,v.ZT),this._inactive=new $(0,v.ZT)},configure:function(e,t){switch(t){case H:e.activeTimeout=e.timeout;break;case L:e.inactiveTimeout=e.timeout}this.callBase(e)},start:function(e){if(O){var t=(0,M.r3)(this.getElement().get(0),O.getElement().get(0)),i=!O._active.fired();if(t&&i)return void this._cancel();O._inactive.force()}O=this,this._initEvents(e),this._active.start()},_initEvents:function(e){var t=this,i=this._getEmitterTarget(e),n=(0,R.N5)(e),o=w.Z.isSimulator(),r=o||!n,a=(0,v.IS)(this.activeTimeout,N),s=(0,v.IS)(this.inactiveTimeout,Z);this._active=new $(r?a:0,(function(){t._fireEvent(H,e,{target:i})})),this._inactive=new $(r?s:0,(function(){t._fireEvent(L,e,{target:i}),O=null}))},cancel:function(e){this.end(e)},end:function(e){var t=e.type!==B.Z.up;t?this._active.stop():this._active.force(),this._inactive.start(),t&&this._inactive.force()},dispose:function(){this._active.stop(),this._inactive.stop(),O===this&&(O=null),this.callBase()},lockInactive:function(){return this._active.force(),this._inactive.stop(),O=null,this._cancel(),this._inactive.force.bind(this._inactive)}});W.lock=function(e){var t=O?O.lockInactive():v.ZT;e.done(t)},(0,F.Z)({emitter:W,events:[H,L]});var K=W.lock,z=i(80647);function j(e,t,i){e="role"===e||"id"===e?e:"aria-".concat(e),t=(0,l.$K)(t)?t.toString():null,i.attr(e,t)}var U=S.Z.inherit({_feedbackHideTimeout:400,_feedbackShowTimeout:30,_supportedKeys:()=>({}),_getDefaultOptions(){return(0,a.l)(this.callBase(),{hoveredElement:null,isActive:!1,disabled:!1,visible:!0,hint:void 0,activeStateEnabled:!1,onContentReady:null,hoverStateEnabled:!1,focusStateEnabled:!1,tabIndex:0,accessKey:void 0,onFocusIn:null,onFocusOut:null,onKeyboardHandled:null,ignoreParentReadOnly:!1,useResizeObserver:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var e=w.Z.real(),t=e.platform,i=e.version;return"ios"===t&&k(i,"13.3")<=0},options:{useResizeObserver:!1}}])},_init(){this.callBase(),this._initContentReadyAction()},_innerWidgetOptionChanged:function(e,t){var i=U.getOptionsFromContainer(t);e&&e.option(i),this._options.cache(t.name,i)},_bindInnerWidgetOptions(e,t){var i=()=>this._options.silent(t,(0,a.l)({},e.option()));i(),e.on("optionChanged",i)},_getAriaTarget(){return this._focusTarget()},_initContentReadyAction(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initMarkup(){var{disabled:e,visible:t}=this.option();this.$element().addClass("dx-widget"),this._toggleDisabledState(e),this._toggleVisibility(t),this._renderHint(),this._isFocusable()&&this._renderFocusTarget(),this.callBase()},_render(){this.callBase(),this._renderContent(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents(),this._toggleIndependentState()},_renderHint(){var{hint:e}=this.option();this.$element().attr("title",e||null)},_renderContent(){(0,v.g0)((()=>this._disposed?void 0:this._renderContentImpl())).done((()=>this._disposed?void 0:this._fireContentReadyAction()))},_renderContentImpl:v.ZT,_fireContentReadyAction:(0,v.Rg)((function(){return this._contentReadyAction()})),_dispose(){this._contentReadyAction=null,this._detachKeyboardEvents(),this.callBase()},_resetActiveState(){this._toggleActiveState(this._eventBindingTarget(),!1)},_clean(){this._cleanFocusState(),this._resetActiveState(),this.callBase(),this.$element().empty()},_toggleVisibility(e){this.$element().toggleClass("dx-state-invisible",!e),this.setAria("hidden",!e||void 0)},_renderFocusState(){this._attachKeyboardEvents(),this._isFocusable()&&(this._renderFocusTarget(),this._attachFocusEvents(),this._renderAccessKey())},_renderAccessKey(){var e=this._focusTarget(),{accessKey:t}=this.option();e.attr("accesskey",t)},_isFocusable(){var{focusStateEnabled:e,disabled:t}=this.option();return e&&!t},_eventBindingTarget(){return this.$element()},_focusTarget(){return this._getActiveElement()},_isFocusTarget:function(e){var t=(0,o.Z)(this._focusTarget()).toArray();return t.includes(e)},_getActiveElement(){var e=this._eventBindingTarget();return this._activeStateUnit?e.find(this._activeStateUnit).not(".dx-state-disabled"):e},_renderFocusTarget(){var{tabIndex:e}=this.option();this._focusTarget().attr("tabIndex",e)},_keyboardEventBindingTarget(){return this._eventBindingTarget()},_refreshFocusEvent(){this._detachFocusEvents(),this._attachFocusEvents()},_focusEventTarget(){return this._focusTarget()},_focusInHandler(e){e.isDefaultPrevented()||this._createActionByOption("onFocusIn",{beforeExecute:()=>this._updateFocusState(e,!0),excludeValidators:["readOnly"]})({event:e})},_focusOutHandler(e){e.isDefaultPrevented()||this._createActionByOption("onFocusOut",{beforeExecute:()=>this._updateFocusState(e,!1),excludeValidators:["readOnly","disabled"]})({event:e})},_updateFocusState(e,t){var{target:i}=e;this._isFocusTarget(i)&&this._toggleFocusClass(t,(0,o.Z)(i))},_toggleFocusClass(e,t){var i=t&&t.length?t:this._focusTarget();i.toggleClass("dx-state-focused",e)},_hasFocusClass(e){var t=(0,o.Z)(e||this._focusTarget());return t.hasClass("dx-state-focused")},_isFocused(){return this._hasFocusClass()},_getKeyboardListeners:()=>[],_attachKeyboardEvents(){this._detachKeyboardEvents();var{focusStateEnabled:e,onKeyboardHandled:t}=this.option(),i=this._getKeyboardListeners().length,n=!!t,o=e||i||n;o&&(this._keyboardListenerId=I.dG.on(this._keyboardEventBindingTarget(),this._focusTarget(),(e=>this._keyboardHandler(e))))},_keyboardHandler(e,t){if(!t){var{originalEvent:i,keyName:n,which:o}=e,r=this._supportedKeys(i),a=r[n]||r[o];if(void 0!==a){var s=a.bind(this),l=s(i,e);if(!l)return!1}}var d=this._getKeyboardListeners(),{onKeyboardHandled:u}=this.option();return d.forEach((t=>t&&t._keyboardHandler(e))),u&&u(e),!0},_refreshFocusState(){this._cleanFocusState(),this._renderFocusState()},_cleanFocusState(){var e=this._focusTarget();e.removeAttr("tabIndex"),this._toggleFocusClass(!1),this._detachFocusEvents(),this._detachKeyboardEvents()},_detachKeyboardEvents(){I.dG.off(this._keyboardListenerId),this._keyboardListenerId=null},_attachHoverEvents(){var{hoverStateEnabled:e}=this.option(),t=this._activeStateUnit,i=this._eventBindingTarget();I.Mr.off(i,{selector:t,namespace:"UIFeedback"}),e&&I.Mr.on(i,new T.Z((e=>{var{event:t,element:i}=e;this._hoverStartHandler(t),this.option("hoveredElement",(0,o.Z)(i))}),{excludeValidators:["readOnly"]}),(e=>{this.option("hoveredElement",null),this._hoverEndHandler(e)}),{selector:t,namespace:"UIFeedback"})},_attachFeedbackEvents(){var{activeStateEnabled:e}=this.option(),t=this._activeStateUnit,i=this._eventBindingTarget();I.bB.off(i,{namespace:"UIFeedback",selector:t}),e&&I.bB.on(i,new T.Z((e=>{var{event:t,element:i}=e;return this._toggleActiveState((0,o.Z)(i),!0,t)})),new T.Z((e=>{var{event:t,element:i}=e;return this._toggleActiveState((0,o.Z)(i),!1,t)}),{excludeValidators:["disabled","readOnly"]}),{showTimeout:this._feedbackShowTimeout,hideTimeout:this._feedbackHideTimeout,selector:t,namespace:"UIFeedback"})},_detachFocusEvents(){var e=this._focusEventTarget();I.T_.off(e,{namespace:"".concat(this.NAME,"Focus")})},_attachFocusEvents(){var e=this._focusEventTarget();I.T_.on(e,(e=>this._focusInHandler(e)),(e=>this._focusOutHandler(e)),{namespace:"".concat(this.NAME,"Focus"),isFocusable:(e,t)=>(0,o.Z)(t).is(D.KW)})},_hoverStartHandler:v.ZT,_hoverEndHandler:v.ZT,_toggleActiveState(e,t){this.option("isActive",t),e.toggleClass("dx-state-active",t)},_updatedHover(){var e=this._options.silent("hoveredElement");this._hover(e,e)},_findHoverTarget(e){return e&&e.closest(this._activeStateUnit||this._eventBindingTarget())},_hover(e,t){var{hoverStateEnabled:i,disabled:n,isActive:o}=this.option();if(t=this._findHoverTarget(t),t&&t.toggleClass("dx-state-hover",!1),e&&i&&!n&&!o){var r=this._findHoverTarget(e);r&&r.toggleClass("dx-state-hover",!0)}},_toggleDisabledState(e){this.$element().toggleClass("dx-state-disabled",Boolean(e)),this.setAria("disabled",e||void 0)},_toggleIndependentState(){this.$element().toggleClass("dx-state-independent",this.option("ignoreParentReadOnly"))},_setWidgetOption(e,t){if(this[e])if((0,l.PO)(t[0]))(0,E.S6)(t[0],((t,i)=>this._setWidgetOption(e,[t,i])));else{var i=t[0],n=t[1];1===t.length&&(n=this.option(i));var o=this["".concat(e,"OptionMap")];this[e].option(o?o(i):i,n)}},_optionChanged(e){var{name:t,value:i,previousValue:n}=e;switch(t){case"disabled":this._toggleDisabledState(i),this._updatedHover(),this._refreshFocusState();break;case"hint":this._renderHint();break;case"ignoreParentReadOnly":this._toggleIndependentState();break;case"activeStateEnabled":this._attachFeedbackEvents();break;case"hoverStateEnabled":this._attachHoverEvents(),this._updatedHover();break;case"tabIndex":case"focusStateEnabled":this._refreshFocusState();break;case"onFocusIn":case"onFocusOut":case"useResizeObserver":break;case"accessKey":this._renderAccessKey();break;case"hoveredElement":this._hover(i,n);break;case"isActive":this._updatedHover();break;case"visible":this._toggleVisibility(i),this._isVisibilityChangeSupported()&&this._checkVisibilityChanged(i?"shown":"hiding");break;case"onKeyboardHandled":this._attachKeyboardEvents();break;case"onContentReady":this._initContentReadyAction();break;default:this.callBase(e)}},_isVisible(){var{visible:e}=this.option();return this.callBase()&&e},beginUpdate(){this._ready(!1),this.callBase()},endUpdate(){this.callBase(),this._initialized&&this._ready(!0)},_ready(e){if(0===arguments.length)return this._isReady;this._isReady=e},setAria(){if((0,l.PO)(arguments.length<=0?void 0:arguments[0])){var e=(arguments.length<=1?void 0:arguments[1])||this._getAriaTarget();(0,E.S6)(arguments.length<=0?void 0:arguments[0],((t,i)=>j(t,i,e)))}else j(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],(arguments.length<=2?void 0:arguments[2])||this._getAriaTarget())},isReady(){return this._ready()},repaint(){this._refresh()},focus(){I.T_.trigger(this._focusTarget())},registerKeyHandler(e,t){var i=this._supportedKeys();this._supportedKeys=()=>(0,a.l)(i,{[e]:t})}});U.getOptionsFromContainer=e=>{var{name:t,fullName:i,value:n}=e,o={};if(t===i)o=n;else{var r=i.split(".").pop();o[r]=n}return o};var G=U,q=(0,s.jW)(),Y="dx-loadindicator",X="dx-loadindicator-wrapper",J="dx-loadindicator-content",Q="dx-loadindicator-icon",ee="dx-loadindicator-segment",te="dx-loadindicator-segment-inner",ie="dx-loadindicator-image",ne=G.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{indicatorSrc:"",activeStateEnabled:!1,hoverStateEnabled:!1,_animatingSegmentCount:1,_animatingSegmentInner:!1})},_defaultOptionsRules:function(){var e=(0,x.Vk)();return this.callBase().concat([{device:function(){var e=w.Z.real(),t="android"===e.platform&&!/chrome/i.test(q.userAgent);return t},options:{viaImage:!0}},{device:function(){return(0,x.x2)(e)},options:{_animatingSegmentCount:2,_animatingSegmentInner:!0}},{device:function(){return(0,x.OD)(e)},options:{_animatingSegmentCount:7}}])},_useTemplates:function(){return!1},_init:function(){this.callBase(),this.$element().addClass(Y)},_initMarkup:function(){this.callBase(),this._renderWrapper(),this._renderIndicatorContent(),this._renderMarkup()},_renderWrapper:function(){this._$wrapper=(0,o.Z)("
").addClass(X),this.$element().append(this._$wrapper)},_renderIndicatorContent:function(){this._$content=(0,o.Z)("
").addClass(J),this._$wrapper.append(this._$content)},_renderMarkup:function(){!(0,b.animation)()||this.option("viaImage")||this.option("indicatorSrc")?this._renderMarkupForImage():this._renderMarkupForAnimation()},_renderMarkupForAnimation:function(){var e=this.option("_animatingSegmentInner");this._$indicator=(0,o.Z)("
").addClass(Q),this._$content.append(this._$indicator);for(var t=this.option("_animatingSegmentCount");t>=0;--t){var i=(0,o.Z)("
").addClass(ee).addClass(ee+t);e&&i.append((0,o.Z)("
").addClass(te)),this._$indicator.append(i)}},_renderMarkupForImage:function(){var e=this.option("indicatorSrc");this._$wrapper.addClass(ie),e&&this._$wrapper.css("backgroundImage","url("+e+")")},_renderDimensions:function(){this.callBase(),this._updateContentSizeForAnimation()},_updateContentSizeForAnimation:function(){if(this._$indicator){var e=this.option("width"),t=this.option("height");if(e||t){e=(0,n.dz)(this.$element()),t=(0,n.Cr)(this.$element());var i=Math.min(t,e);this._$wrapper.css({height:i,width:i,fontSize:i})}}},_clean:function(){this.callBase(),this._removeMarkupForAnimation(),this._removeMarkupForImage()},_removeMarkupForAnimation:function(){this._$indicator&&(this._$indicator.remove(),delete this._$indicator)},_removeMarkupForImage:function(){this._$wrapper.css("backgroundImage","none")},_optionChanged:function(e){switch(e.name){case"_animatingSegmentCount":case"_animatingSegmentInner":case"indicatorSrc":this._invalidate();break;default:this.callBase(e)}}});(0,C.Z)("dxLoadIndicator",ne);var oe=ne,re=i(52376),ae=i(33734),se=i(81965),le=i(86403),de="dxTranslator",ue=/matrix(3d)?\((.+?)\)/,ce=/translate(?:3d)?\((.+?)\)/,he=function(e){e=(0,o.Z)(e);var t=_e(e);return{left:t.x,top:t.y}};function pe(e){return"string"===(0,l.dt)(e)&&"%"===e[e.length-1]}function fe(e,t){e.length&&(0,le.aT)(e.get(0),de,t)}var ge=function(e){e.length&&(0,le.NU)(e.get(0),de)},me=function(e){e.x=e.x||0,e.y=e.y||0;var t=pe(e.x)?e.x:e.x+"px",i=pe(e.y)?e.y:e.y+"px";return"translate("+t+", "+i+")"},_e=function(e){var t=e.length?(0,le.aT)(e.get(0),de):null;if(!t){var i=e.css("transform")||me({x:0,y:0}),n=i.match(ue),o=n&&n[1];n?(n=n[2].split(","),"3d"===o?n=n.slice(12,15):(n.push(0),n=n.slice(4,7))):n=[0,0,0],t={x:parseFloat(n[0]),y:parseFloat(n[1]),z:parseFloat(n[2])},fe(e,t)}return t},ve=function(e,t){e=(0,o.Z)(e);var i,n=t.left,r=t.top;void 0===n?(i=_e(e),i.y=r||0):void 0===r?(i=_e(e),i.x=n||0):(i={x:n||0,y:r||0,z:0},fe(e,i)),e.css({transform:me(i)}),(pe(n)||pe(r))&&ge(e)},ye=function(e,t){var i;e=(0,o.Z)(e);var n={left:0,top:0,transform:"none"};t&&(i=e.css("transition"),n.transition="none"),e.css(n),ge(e),t&&(e.get(0).offsetHeight,e.css("transition",i))},Ce=function(e){var t=e.match(ce);if(t&&t[1])return t=t[1].split(","),t={x:parseFloat(t[0]),y:parseFloat(t[1]),z:parseFloat(t[2])},t},be=/cubic-bezier\((\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\)/,xe={linear:"cubic-bezier(0, 0, 1, 1)",swing:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",ease:"cubic-bezier(0.25, 0.1, 0.25, 1)","ease-in":"cubic-bezier(0.42, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.58, 1)","ease-in-out":"cubic-bezier(0.42, 0, 0.58, 1)"},we=function(e,t,i,n){var o=3*e,r=3*(i-e)-o,a=1-o-r,s=3*t,l=3*(n-t)-s,d=1-s-l,u=function(e){return e*(o+e*(r+e*a))},c=function(e){return o+e*(2*r+3*e*a)};return function(e){return function(e){return e*(s+e*(l+e*d))}(function(e){var t,i=e,n=0;while(n<14){if(t=u(i)-e,Math.abs(t)<.001)break;i-=t/c(i),n++}return i}(e))}},Te={},Se=function(e){e=xe[e]||e;var t,i=e.match(be);i||(t="linear",i=xe[t].match(be)),i=i.slice(1,5);for(var n=0;n{var t=null!==e&&void 0!==e?e:(0,Oe.Z)().rtlEnabled;return t?"right":"left"},Pe=e=>(0,l.FJ)(e)?{width:e.outerWidth,height:e.outerHeight}:e.getBoundingClientRect(),Me=i(31517),Re=(0,s.Jj)(),Be=/left|right/,Ve=/top|bottom/,Fe=/fit|flip|none/,He=/scale\(.+?\)/,Le=Me.Z.safari,Ne=function(e){var t={h:"center",v:"center"},i=(0,v.Um)(e);return i&&(0,E.S6)(i,(function(){var e=String(this).toLowerCase();Be.test(e)?t.h=e:Ve.test(e)&&(t.v=e)})),t},Ze=function(e){return(0,v.TG)(e)},$e=function(e){var t=(0,v.Um)(e),i=String(t&&t[0]).toLowerCase(),n=String(t&&t[1]).toLowerCase();return Fe.test(i)||(i="none"),Fe.test(n)||(n=i),{h:i,v:n}},We=function(e){switch(e){case"center":return.5;case"right":case"bottom":return 1;default:return 0}},Ke=function(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return e}},ze=function(e,t){var i=0;return e.myLocationt.max&&(i+=e.myLocation-t.max),i},je=function(e,t,i){return t.myLocationi.max?"h"===e?"right":"bottom":"none"},Ue=function(e){e.myLocation=e.atLocation+We(e.atAlign)*e.atSize-We(e.myAlign)*e.mySize+e.offset},Ge={fit:function(e,t){var i=!1;e.myLocation>t.max&&(e.myLocation=t.max,i=!0),e.myLocationt.max)){var i=(0,a.l)({},e,{myAlign:Ke(e.myAlign),atAlign:Ke(e.atAlign),offset:-e.offset});Ue(i),i.oversize=ze(i,t),(i.myLocation>=t.min&&i.myLocation<=t.max||e.oversize>i.oversize)&&(e.myLocation=i.myLocation,e.oversize=i.oversize,e.flip=!0)}},flipfit:function(e,t){this.flip(e,t),this.fit(e,t)},none:function(e){e.oversize=0}},qe=function(){var e=(0,o.Z)("
").css({width:100,height:100,overflow:"scroll",position:"absolute",top:-9999}).appendTo((0,o.Z)("body")),t=e.get(0).offsetWidth-e.get(0).clientWidth;e.remove(),Ee=t},Ye={h:{location:0,flip:!1,fit:!1,oversize:0},v:{location:0,flip:!1,fit:!1,oversize:0}},Xe=function(e,t){var i=(0,o.Z)(e),r=i.offset(),s=(0,a.l)(!0,{},Ye,{h:{location:r.left},v:{location:r.top}});if(!t)return s;var d=Ne(t.my),u=Ne(t.at),c=(0,o.Z)(t.of).length&&t.of||Re,h=Ze(t.offset),p=$e(t.collision),f=t.boundary,g=Ze(t.boundaryOffset),m={mySize:(0,n.Y_)(i),myAlign:d.h,atAlign:u.h,offset:h.h,collision:p.h,boundaryOffset:g.h},_={mySize:(0,n.zp)(i),myAlign:d.v,atAlign:u.v,offset:h.v,collision:p.v,boundaryOffset:g.v};if(c.preventDefault)m.atLocation=c.pageX,_.atLocation=c.pageY,m.atSize=0,_.atSize=0;else if(c=(0,o.Z)(c),(0,l.FJ)(c[0]))m.atLocation=c.scrollLeft(),_.atLocation=c.scrollTop(),"phone"===w.Z.real().deviceType&&c[0].visualViewport?(m.atLocation=Math.max(m.atLocation,c[0].visualViewport.offsetLeft),_.atLocation=Math.max(_.atLocation,c[0].visualViewport.offsetTop),m.atSize=c[0].visualViewport.width,_.atSize=c[0].visualViewport.height):(m.atSize=c[0].innerWidth>c[0].outerWidth?c[0].innerWidth:(0,n.dz)(c),_.atSize=c[0].innerHeight>c[0].outerHeight||Le?c[0].innerHeight:(0,n.Cr)(c));else if(9===c[0].nodeType)m.atLocation=0,_.atLocation=0,m.atSize=(0,n.dz)(c),_.atSize=(0,n.Cr)(c);else{var v=Pe(c.get(0)),y=Qe(c);m.atLocation=y.left,_.atLocation=y.top,m.atSize=Math.max(v.width,(0,n.Y_)(c)),_.atSize=Math.max(v.height,(0,n.zp)(c))}Ue(m),Ue(_);var C=function(){var e=(0,o.Z)(Re),t=(0,n.dz)(e),i=(0,n.Cr)(e),r=e.scrollLeft(),a=e.scrollTop(),s=ke["default"].getDocumentElement(),l=b.touch?s.clientWidth/t:1,d=b.touch?s.clientHeight/i:1;void 0===Ee&&qe();var u=t,c=i;if(f){var h=(0,o.Z)(f),p=h.offset();r=p.left,a=p.top,u=(0,n.dz)(h),c=(0,n.Cr)(h)}return{h:{min:r+m.boundaryOffset,max:r+u/l-m.mySize-m.boundaryOffset},v:{min:a+_.boundaryOffset,max:a+c/d-_.mySize-_.boundaryOffset}}}();m.oversize=ze(m,C.h),_.oversize=ze(_,C.v),m.collisionSide=je("h",m,C.h),_.collisionSide=je("v",_,C.v),Ge[m.collision]&&Ge[m.collision](m,C.h),Ge[_.collision]&&Ge[_.collision](_,C.v);var x=function(e){return t.precise?e:Math.round(e)};return(0,a.l)(!0,s,{h:{location:x(m.myLocation),oversize:x(m.oversize),fit:m.fit,flip:m.flip,collisionSide:m.collisionSide},v:{location:x(_.myLocation),oversize:x(_.oversize),fit:_.fit,flip:_.flip,collisionSide:_.collisionSide},precise:t.precise}),s},Je=function(e,t,i,n,o){var r=(0,l.$K)(e.style)&&!ke["default"].isNode(e.style);r?e.style.transform=o?i.replace(t,""):i:e.setAttribute("style",o?n.replace(t,""):n)},Qe=function e(t){var i,n,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,a=r.get(0);if(!a)return t.offset();var s,l=(null===(i=a.getAttribute)||void 0===i?void 0:i.call(a,"style"))||"",d=null===(n=a.style)||void 0===n?void 0:n.transform,u=null===(o=l.match(He))||void 0===o?void 0:o[0];return u?(Je(a,u,d,l,!0),s=e(t,r.parent()),Je(a,u,d,l,!1)):s=e(t,r.parent()),s},et=function(e,t){var i=(0,o.Z)(e);if(!t)return i.offset();ye(i,!0);var n=Qe(i),r=t.h&&t.v?t:Xe(i,t),a=function(e){return t.precise?e:Math.round(e)};return ve(i,{left:r.h.location-a(n.left),top:r.v.location-a(n.top)}),r},tt=function(e){return e=(0,o.Z)(e).get(0),(0,l.FJ)(e)?null:e&&"pageY"in e&&"pageX"in e?{top:e.pageY,left:e.pageX}:(0,o.Z)(e).offset()};et.inverseAlign||(et.inverseAlign=Ke),et.normalizeAlign||(et.normalizeAlign=Ne);var it={calculateScrollbarWidth:qe,calculate:Xe,setup:et,offset:tt},nt=i(14324),ot=i(79303),rt=(0,s.Jj)(),at=(0,R.V4)(nt.x,"dxFX"),st=/^([+-])=(.*)/i,lt="dxAnimData",dt="dxAnimQueue",ut="transform",ct={initAnimation:function(e,t){e.css({transitionProperty:"none"}),"string"===typeof t.from?e.addClass(t.from):Kt(e,t.from);var i=this,n=new ot.BH,o=t.cleanupWhen;t.transitionAnimation={deferred:n,finish:function(){i._finishTransition(e),o?(0,ot.gx)(n,o).always((function(){i._cleanup(e,t)})):i._cleanup(e,t),n.resolveWith(e,[t,e])}},this._completeAnimationCallback(e,t).done((function(){t.transitionAnimation.finish()})).fail((function(){n.rejectWith(e,[t,e])})),t.duration||t.transitionAnimation.finish(),e.css("transform")},animate:function(e,t){return this._startAnimation(e,t),t.transitionAnimation.deferred.promise()},_completeAnimationCallback:function(e,t){var i,n=this,o=Date.now()+t.delay,r=new ot.BH,a=new ot.BH,s=new ot.BH,l=(0,b.transitionEndEventName)()+".dxFX";t.transitionAnimation.cleanup=function(){clearTimeout(i),clearTimeout(d),re.Z.off(e,l),re.Z.off(e,at)},re.Z.one(e,l,(function(){Date.now()-o>=t.duration&&a.reject()})),re.Z.off(e,at),re.Z.on(e,at,(function(){n.stop(e,t),r.reject()}));var d=setTimeout((function(){i=setTimeout((function(){s.reject()}),t.duration+t.delay+jt._simulatedTransitionEndDelay),(0,ot.gx)(a,s).fail(function(){r.resolve()}.bind(this))}));return r.promise()},_startAnimation:function(e,t){e.css({transitionProperty:"all",transitionDelay:t.delay+"ms",transitionDuration:t.duration+"ms",transitionTimingFunction:t.easing}),"string"===typeof t.to?e[0].className+=" "+t.to:t.to&&Kt(e,t.to)},_finishTransition:function(e){e.css("transition","none")},_cleanup:function(e,t){t.transitionAnimation.cleanup(),"string"===typeof t.from&&(e.removeClass(t.from),e.removeClass(t.to))},stop:function(e,t,i){t&&(i?t.transitionAnimation.finish():((0,l.PO)(t.to)&&(0,E.S6)(t.to,(function(t){e.css(t,e.css(t))})),this._finishTransition(e),this._cleanup(e,t)))}},ht={initAnimation:function(e,t){Kt(e,t.from)},animate:function(e,t){var i=new ot.BH,n=this;return t?((0,E.S6)(t.to,(function(i){void 0===t.from[i]&&(t.from[i]=n._normalizeValue(e.css(i)))})),t.to[ut]&&(t.from[ut]=n._parseTransform(t.from[ut]),t.to[ut]=n._parseTransform(t.to[ut])),t.frameAnimation={to:t.to,from:t.from,currentValue:t.from,easing:Se(t.easing),duration:t.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),(0,De.W)(t.frameAnimation.animationFrameId),i.resolve()},draw:function(){if(t.draw)t.draw(this.currentValue);else{var i=(0,a.l)({},this.currentValue);i[ut]&&(i[ut]=(0,E.UI)(i[ut],(function(e,t){return"translate"===t?me(e):"scale"===t?"scale("+e+")":"rotate"===t.substr(0,t.length-1)?t+"("+e+"deg)":void 0})).join(" ")),e.css(i)}}},t.delay?(t.frameAnimation.startTime+=t.delay,t.frameAnimation.delayTimeout=setTimeout((function(){n._startAnimation(e,t)}),t.delay)):n._startAnimation(e,t),i.promise()):i.reject().promise()},_startAnimation:function(e,t){re.Z.off(e,at),re.Z.on(e,at,(function(){t.frameAnimation&&(0,De.W)(t.frameAnimation.animationFrameId)})),this._animationStep(e,t)},_parseTransform:function(e){var t={};return(0,E.S6)(e.match(/\w+\d*\w*\([^)]*\)\s*/g),(function(e,i){var n=Ce(i),o=i.match(/scale\((.+?)\)/),r=i.match(/(rotate.)\((.+)deg\)/);n&&(t.translate=n),o&&o[1]&&(t.scale=parseFloat(o[1])),r&&r[1]&&(t[r[1]]=parseFloat(r[2]))})),t},stop:function(e,t,i){var n=t&&t.frameAnimation;n&&((0,De.W)(n.animationFrameId),clearTimeout(n.delayTimeout),i&&n.finish(),delete t.frameAnimation)},_animationStep:function(e,t){var i=t&&t.frameAnimation;if(i){var n=(new Date).valueOf();if(n>=i.startTime+i.duration)i.finish();else{i.currentValue=this._calcStepValue(i,n-i.startTime),i.draw();var o=this;i.animationFrameId=(0,De.U)((function(){o._animationStep(e,t)}))}}},_calcStepValue:function(e,t){return function i(n,o){var r=Array.isArray(o)?[]:{};return(0,E.S6)(o,(function(a,s){if("string"===typeof s&&!1===parseFloat(s))return!0;r[a]="object"===typeof s?i(n[a],s):function(i){var r=t/e.duration,a=t,s=1*n[i],l=o[i]-n[i],d=e.duration;return Ie(e.easing)(r,a,s,l,d)}(a)})),r}(e.from,e.to)},_normalizeValue:function(e){var t=parseFloat(e);return!1===t?e:t}},pt={initAnimation:function(){},animate:function(){return(new ot.BH).resolve().promise()},stop:v.ZT,isSynchronous:!0},ft=function(e){e=e||{};var t={transition:(0,b.transition)()?ct:ht,frame:ht,noAnimation:pt},i=e.strategy||"transition";return"css"!==e.type||(0,b.transition)()||(i="noAnimation"),t[i]},gt=function(e,t,i,n){(0,E.S6)(["from","to"],(function(){if(!i(e[this]))throw ae.Z.Error("E0010",t,this,n)}))},mt=function(e,t){return gt(e,t,(function(e){return(0,l.PO)(e)}),"a plain object")},_t=function(e,t){return gt(e,t,(function(e){return"string"===typeof e}),"a string")},vt={setup:function(){}},yt={validateConfig:function(e){_t(e,"css")},setup:function(){}},Ct={top:{my:"bottom center",at:"top center"},bottom:{my:"top center",at:"bottom center"},right:{my:"left center",at:"right center"},left:{my:"right center",at:"left center"}},bt={validateConfig:function(e){mt(e,"slide")},setup:function(e,t){var i=he(e);if("slide"!==t.type){var n="slideIn"===t.type?t.from:t.to;n.position=(0,a.l)({of:rt},Ct[t.direction]),Wt(e,n)}this._setUpConfig(i,t.from),this._setUpConfig(i,t.to),ge(e)},_setUpConfig:function(e,t){t.left="left"in t?t.left:"+=0",t.top="top"in t?t.top:"+=0",this._initNewPosition(e,t)},_initNewPosition:function(e,t){var i={left:t.left,top:t.top};delete t.left,delete t.top;var n=this._getRelativeValue(i.left);void 0!==n?i.left=n+e.left:t.left=0,n=this._getRelativeValue(i.top),void 0!==n?i.top=n+e.top:t.top=0,t[ut]=me({x:i.left,y:i.top})},_getRelativeValue:function(e){var t;if("string"===typeof e&&(t=st.exec(e)))return parseInt(t[1]+"1")*t[2]}},xt={setup:function(e,t){var i,n,o=t.from,r=t.to,a="fadeOut"===t.type?1:0,s="fadeOut"===t.type?0:1,d=(0,l.PO)(o)?String(null!==(i=o.opacity)&&void 0!==i?i:a):String(o),u=(0,l.PO)(r)?String(null!==(n=r.opacity)&&void 0!==n?n:s):String(r);switch(t.skipElementInitialStyles||(d=e.css("opacity")),t.type){case"fadeIn":u=1;break;case"fadeOut":u=0}t.from={visibility:"visible",opacity:d},t.to={opacity:u}}},wt={validateConfig:function(e){mt(e,"pop")},setup:function(e,t){var i=t.from,n=t.to,o="opacity"in i?i.opacity:e.css("opacity"),r="opacity"in n?n.opacity:1,a="scale"in i?i.scale:0,s="scale"in n?n.scale:1;t.from={opacity:o};var l=_e(e);t.from[ut]=this._getCssTransform(l,a),t.to={opacity:r},t.to[ut]=this._getCssTransform(l,s)},_getCssTransform:function(e,t){return me(e)+"scale("+t+")"}},Tt={custom:vt,slide:bt,slideIn:bt,slideOut:bt,fade:xt,fadeIn:xt,fadeOut:xt,pop:wt,css:yt},St=function(e){var t=Tt[e.type];if(!t)throw ae.Z.Error("E0011",e.type);return t},It={type:"custom",from:{},to:{},duration:400,start:v.ZT,complete:v.ZT,easing:"ease",delay:0},Et={duration:400,easing:"ease",delay:0};function Dt(){var e=this.element,t=this.config;if(Wt(e,t.from),Wt(e,t.to),this.configurator.setup(e,t),e.data(lt,this),jt.off&&(t.duration=0,t.delay=0),this.strategy.initAnimation(e,t),t.start){var i=(0,se.u)(e);t.start.apply(this,[i,t])}}var kt=function(e){var t=e.element,i=e.config;if(t.removeData(lt),i.complete){var n=(0,se.u)(t);i.complete.apply(this,[n,i])}e.deferred.resolveWith(this,[t,i])},Ot=function(){var e=this,t=e.element,i=e.config;return e.isStarted=!0,e.strategy.animate(t,i).done((function(){kt(e)})).fail((function(){e.deferred.rejectWith(this,[t,i])}))},At=function(e){var t=this.element,i=this.config;clearTimeout(this.startTimeout),this.isStarted||this.start(),this.strategy.stop(t,i,e)},Pt=(0,R.V4)(nt.x,"dxFXStartAnimation"),Mt=function(e){re.Z.off(e.element,Pt),re.Z.on(e.element,Pt,(function(){jt.stop(e.element)})),e.deferred.always((function(){re.Z.off(e.element,Pt)}))},Rt=function(e,t){var i="css"===t.type?Et:It,n=(0,a.l)(!0,{},i,t),r=St(n),s=ft(n),d={element:(0,o.Z)(e),config:n,configurator:r,strategy:s,isSynchronous:s.isSynchronous,setup:Dt,start:Ot,stop:At,deferred:new ot.BH};return(0,l.mf)(r.validateConfig)&&r.validateConfig(n),Mt(d),d},Bt=function(e,t){var i=(0,o.Z)(e);if(!i.length)return(new ot.BH).resolve().promise();var n=Rt(i,t);return Vt(i,n),n.deferred.promise()};function Vt(e,t){var i=Ft(e);Ht(e,i),i.push(t),Nt(e)||Zt(e,i)}function Ft(e){return e.data(dt)||[]}function Ht(e,t){e.data(dt,t)}var Lt=function(e){e.removeData(dt)};function Nt(e){return!!e.data(lt)}function Zt(e,t){if(t=Ft(e),t.length){var i=t.shift();0===t.length&&Lt(e),$t(i).done((function(){Nt(e)||Zt(e)}))}}function $t(e){return e.setup(),jt.off||e.isSynchronous?e.start():e.startTimeout=setTimeout((function(){e.start()})),e.deferred.promise()}function Wt(e,t){if(t&&t.position){var i=(0,o.Z)(rt),n=0,r=0,s=it.calculate(e,t.position),l=e.offset(),d=e.position();d.top>l.top&&(r=i.scrollTop()),d.left>l.left&&(n=i.scrollLeft()),(0,a.l)(t,{left:s.h.location-l.left+d.left-n,top:s.v.location-l.top+d.top-r}),delete t.position}}function Kt(e,t){(0,E.S6)(t,(function(t,i){try{e.css(t,(0,l.mf)(i)?i():i)}catch(n){}}))}var zt=function(e,t){var i=(0,o.Z)(e),n=Ft(i);(0,E.S6)(n,(function(e,t){t.config.delay=0,t.config.duration=0,t.isSynchronous=!0})),Nt(i)||Zt(i,n);var r=i.data(lt);r&&r.stop(t),i.removeData(lt),Lt(i)},jt={off:!1,animationTypes:Tt,animate:Bt,createAnimation:Rt,isAnimating:Nt,stop:zt,_simulatedTransitionEndDelay:100},Ut=jt,Gt=i(10045),qt=i(90268),Yt=i(12454),Xt=i(27238),Jt=i(98267),Qt=i(33753),ei=function(){var e=[];return{add:function(t){e.includes(t)||e.push(t)},remove:function(t){var i=e.indexOf(t);-1!==i&&e.splice(i,1)},fire:function(){var t=e.pop(),i=!!t;return i&&t(),i},hasCallback:function(){return e.length>0}}}(),ti=1500,ii=[],ni=e=>(ti=(0,v.IS)(e,ti),ti),oi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ti,t=ii.length,i=(t?ii[t-1]:e)+1;return ii.push(i),i},ri=e=>{var t=ii.indexOf(e);t>=0&&ii.splice(t,1)},ai=e=>ii.length&&ii[ii.length-1]===e,si="dx-swatch-",li=e=>{var t=(0,o.Z)(e),i=t.closest('[class^="'.concat(si,'"], [class*=" ').concat(si,'"]')),n=(0,Yt.S3)();if(!i.length)return n;var r=new RegExp("(\\s|^)(".concat(si,".*?)(\\s|$)")),a=i[0].className.match(r)[2],s=n.children("."+a);return s.length||(s=(0,o.Z)("
").addClass(a).appendTo(n)),s},di={getSwatchContainer:li},ui=(0,s.Jj)(),ci={top:{my:"top center",at:"top center"},bottom:{my:"bottom center",at:"bottom center"},right:{my:"right center",at:"right center"},left:{my:"left center",at:"left center"},center:{my:"center",at:"center"},"right bottom":{my:"right bottom",at:"right bottom"},"right top":{my:"right top",at:"right top"},"left bottom":{my:"left bottom",at:"left bottom"},"left top":{my:"left top",at:"left top"}},hi={h:0,v:0};class pi{constructor(e){var{position:t,container:i,visualContainer:n,$root:o,$content:r,$wrapper:a,onPositioned:s,onVisualPositionChanged:l,restorePosition:d,_fixWrapperPosition:u}=e;this._props={position:t,container:i,visualContainer:n,restorePosition:d,onPositioned:s,onVisualPositionChanged:l,_fixWrapperPosition:u},this._$root=o,this._$content=r,this._$wrapper=a,this._$markupContainer=void 0,this._$visualContainer=void 0,this._shouldRenderContentInitialPosition=!0,this._visualPosition=void 0,this._initialPosition=void 0,this._previousVisualPosition=void 0,this.updateContainer(i),this.updatePosition(t),this.updateVisualContainer(n)}get $container(){return this.updateContainer(),this._$markupContainer}get $visualContainer(){return this._$visualContainer}get position(){return this._position}set fixWrapperPosition(e){this._props._fixWrapperPosition=e,this.styleWrapperPosition()}set restorePosition(e){this._props.restorePosition=e}restorePositionOnNextRender(e){this._shouldRenderContentInitialPosition=e||!this._visualPosition}openingHandled(){var e=this._props.restorePosition;this.restorePositionOnNextRender(e)}updatePosition(e){this._props.position=e,this._position=this._normalizePosition(e),this.updateVisualContainer()}updateContainer(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._props.container;this._props.container=e,this._$markupContainer=e?(0,o.Z)(e):di.getSwatchContainer(this._$root),this.updateVisualContainer(this._props.visualContainer)}updateVisualContainer(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._props.visualContainer;this._props.visualContainer=e,this._$visualContainer=this._getVisualContainer()}detectVisualPositionChange(e){this._updateVisualPositionValue(),this._raisePositionedEvents(e)}positionContent(){this._shouldRenderContentInitialPosition?this._renderContentInitialPosition():(ve(this._$content,this._visualPosition),this.detectVisualPositionChange())}positionWrapper(){this._$visualContainer&&it.setup(this._$wrapper,{my:"top left",at:"top left",of:this._$visualContainer})}styleWrapperPosition(){var e=(0,l.FJ)(this.$visualContainer.get(0))||this._props._fixWrapperPosition,t=e?"fixed":"absolute";this._$wrapper.css("position",t)}_updateVisualPositionValue(){this._previousVisualPosition=this._visualPosition,this._visualPosition=he(this._$content)}_renderContentInitialPosition(){this._renderBoundaryOffset(),ye(this._$content);var e=this._$wrapper.css("overflow");this._$wrapper.css("overflow","hidden");var t=it.setup(this._$content,this._position);this._$wrapper.css("overflow",e),this._initialPosition=t,this.detectVisualPositionChange()}_raisePositionedEvents(e){var t=this._previousVisualPosition,i=this._visualPosition,n=(null===t||void 0===t?void 0:t.top)!==i.top||(null===t||void 0===t?void 0:t.left)!==i.left;n&&this._props.onVisualPositionChanged({previousPosition:t,position:i,event:e}),this._props.onPositioned({position:this._initialPosition})}_renderBoundaryOffset(){var e,t=null!==(e=this._position)&&void 0!==e?e:{boundaryOffset:hi};this._$content.css("margin","".concat(t.v,"px ").concat(t.h,"px"))}_getVisualContainer(){var e,t,i=this._props.container,n=this._props.visualContainer,r=(0,l.cO)(null===(e=this._props.position)||void 0===e?void 0:e.of)?this._props.position.of.target:null===(t=this._props.position)||void 0===t?void 0:t.of;return n?(0,o.Z)(n):i?(0,o.Z)(i):r?(0,o.Z)(r):(0,o.Z)(ui)}_normalizePosition(e){var t={boundaryOffset:hi};return(0,l.$K)(e)?(0,a.l)(!0,{},t,this._positionToObject(e)):t}_positionToObject(e){return(0,l.HD)(e)?(0,a.l)({},ci[e]):e}}var fi=qt.Z.add,gi=(0,s.Jj)(),mi=Yt.Wg,_i="dx-overlay",vi="dx-overlay-wrapper",yi="dx-overlay-content",Ci="dx-overlay-shader",bi="dx-inner-overlay",xi="dx-state-invisible",wi="content",Ti="dx-rtl",Si=[],Ii="dx-prevent-safari-scrolling",Ei="tab";fi((()=>{re.Z.subscribeGlobal(ke["default"].getDocument(),B.Z.down,(e=>{for(var t=Si.length-1;t>=0;t--)if(!Si[t]._proxiedDocumentDownHandler(e))return}))}));var Di=G.inherit({_supportedKeys:function(){return(0,a.l)(this.callBase(),{escape:function(){this.hide()}})},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{activeStateEnabled:!1,visible:!1,deferRendering:!0,shading:!0,shadingColor:"",wrapperAttr:{},position:(0,a.l)({},ci.center),width:"80vw",minWidth:null,maxWidth:null,height:"80vh",minHeight:null,maxHeight:null,animation:{show:{type:"pop",duration:300,from:{scale:.55}},hide:{type:"pop",duration:300,from:{opacity:1,scale:1},to:{opacity:0,scale:.55}}},closeOnOutsideClick:!1,hideOnOutsideClick:!1,copyRootClassesToWrapper:!1,_ignoreCopyRootClassesToWrapperDeprecation:!1,_ignoreElementAttrDeprecation:!1,onShowing:null,onShown:null,onHiding:null,onHidden:null,contentTemplate:"content",innerOverlay:!1,restorePosition:!0,container:void 0,visualContainer:void 0,hideTopOverlayHandler:()=>{this.hide()},hideOnParentScroll:!1,onPositioned:null,propagateOutsideClick:!1,ignoreChildEvents:!0,_checkParentVisibility:!0,_fixWrapperPosition:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return!(0,s.Ym)()},options:{width:null,height:null,animation:null,_checkParentVisibility:!1}}])},_setOptionsByReference:function(){this.callBase(),(0,a.l)(this._optionsByReference,{animation:!0})},$wrapper:function(){return this._$wrapper},_eventBindingTarget:function(){return this._$content},_setDeprecatedOptions(){this.callBase(),(0,a.l)(this._deprecatedOptions,{closeOnOutsideClick:{since:"22.1",alias:"hideOnOutsideClick"}})},ctor:function(e,t){this.callBase(e,t),t&&(t.copyRootClassesToWrapper&&!t._ignoreCopyRootClassesToWrapperDeprecation&&this._logDeprecatedOptionWarning("copyRootClassesToWrapper",{since:"21.2",message:'Use the "wrapperAttr" option instead'}),t.elementAttr&&!t._ignoreElementAttrDeprecation&&this._logDeprecatedOptionWarning("elementAttr",{since:"21.2",message:'Use the "wrapperAttr" option instead'}))},_init:function(){this.callBase(),this._initActions(),this._initHideOnOutsideClickHandler(),this._initTabTerminatorHandler(),this._customWrapperClass=null,this._$wrapper=(0,o.Z)("
").addClass(vi),this._$content=(0,o.Z)("
").addClass(yi),this._initInnerOverlayClass();var e=this.$element();this.option("copyRootClassesToWrapper")&&this._$wrapper.addClass(e.attr("class")),e.addClass(_i),this._$wrapper.attr("data-bind","dxControlsDescendantBindings: true"),this._toggleViewPortSubscription(!0),this._initHideTopOverlayHandler(this.option("hideTopOverlayHandler")),this._parentsScrollSubscriptionInfo={handler:e=>{this._hideOnParentsScrollHandler(e)}},this.warnPositionAsFunction()},warnPositionAsFunction(){(0,l.mf)(this.option("position"))&&ae.Z.log("W0018")},_initInnerOverlayClass:function(){this._$content.toggleClass(bi,this.option("innerOverlay"))},_initHideTopOverlayHandler:function(e){this._hideTopOverlayHandler=e},_getActionsList:function(){return["onShowing","onShown","onHiding","onHidden","onPositioned","onVisualPositionChanged"]},_initActions:function(){this._actions={};var e=this._getActionsList();(0,E.S6)(e,((e,t)=>{this._actions[t]=this._createActionByOption(t,{excludeValidators:["disabled","readOnly"]})||v.ZT}))},_initHideOnOutsideClickHandler:function(){var e=this;this._proxiedDocumentDownHandler=function(){return e._documentDownHandler(...arguments)}},_initMarkup(){this.callBase(),this._renderWrapperAttributes(),this._initPositionController()},_documentDownHandler:function(e){this._showAnimationProcessing&&this._stopAnimation();var t=(0,o.Z)(gi.document).is(e.target)||(0,M.r3)(gi.document,e.target)||(0,M.r3)(gi.document,e.target.getRootNode().host),i=(0,o.Z)(e.target).closest(".".concat(bi)).length,n=t&&!i&&!(this._$content.is(e.target)||(0,M.r3)(this._$content.get(0),e.target));return n&&this._shouldHideOnOutsideClick(e)&&this._outsideClickHandler(e),this.option("propagateOutsideClick")},_shouldHideOnOutsideClick:function(e){var{hideOnOutsideClick:t}=this.option();return(0,l.mf)(t)?t(e):t},_outsideClickHandler(e){this.option("shading")&&e.preventDefault(),this.hide()},_getAnonymousTemplateName:function(){return wi},_initTemplates:function(){this._templateManager.addDefaultTemplates({content:new Gt.s}),this.callBase()},_isTopOverlay:function(){for(var e=this._overlayStack(),t=e.length-1;t>=0;t--){var i=e[t]._findTabbableBounds();if(i.first||i.last)return e[t]===this}return!1},_overlayStack:function(){return Si},_zIndexInitValue:function(){return Di.baseZIndex()},_toggleViewPortSubscription:function(e){var t=this;mi.remove(this._viewPortChangeHandle),e&&(this._viewPortChangeHandle=function(){t._viewPortChangeHandler(...arguments)},mi.add(this._viewPortChangeHandle))},_viewPortChangeHandler:function(){this._positionController.updateContainer(this.option("container")),this._refresh()},_renderWrapperAttributes(){var{wrapperAttr:e}=this.option(),t=(0,a.l)({},e),i=t.class;delete t.class,this.$wrapper().attr(t).removeClass(this._customWrapperClass).addClass(i),this._customWrapperClass=i},_renderVisibilityAnimate:function(e){return this._stopAnimation(),e?this._show():this._hide()},_getAnimationConfig:function(){return this._getOptionValue("animation",this)},_animateShowing:function(){var e,t,i,n=this,o=null!==(e=this._getAnimationConfig())&&void 0!==e?e:{},r=this._normalizeAnimation(o.show,"to"),a=null!==(t=null===r||void 0===r?void 0:r.start)&&void 0!==t?t:v.ZT,s=null!==(i=null===r||void 0===r?void 0:r.complete)&&void 0!==i?i:v.ZT;this._animate(r,(function(){if(!n._isAnimationPaused){n.option("focusStateEnabled")&&re.Z.trigger(n._focusTarget(),"focus");for(var e=arguments.length,t=new Array(e),i=0;i{e?i():t()})).catch((()=>t())):e?i():t()},_show:function(){if(this._showingDeferred=new ot.BH,this._parentHidden=this._isParentHidden(),this._showingDeferred.done((()=>{delete this._parentHidden})),this._parentHidden)return this._isHidden=!0,this._showingDeferred.resolve();if(this._currentVisible)return(new ot.BH).resolve().promise();if(this._currentVisible=!0,this._isHidingActionCanceled)delete this._isHidingActionCanceled,this._showingDeferred.reject();else{var e=()=>{this._stopAnimation(),this._toggleVisibility(!0),this._$content.css("visibility","hidden"),this._$content.toggleClass(xi,!1),this._updateZIndexStackPosition(!0),this._positionController.openingHandled(),this._renderContent();var e={cancel:!1};this._actions.onShowing(e),this._processShowingHidingCancel(e.cancel,(()=>{this._$content.css("visibility",""),this._renderVisibility(!0),this._animateShowing()}),(()=>{this._toggleVisibility(!1),this._$content.css("visibility",""),this._$content.toggleClass(xi,!0),this._isShowingActionCanceled=!0,this._moveFromContainer(),this.option("visible",!1),this._showingDeferred.resolve()}))};this.option("templatesRenderAsynchronously")?(this._stopShowTimer(),this._asyncShowTimeout=setTimeout(e)):e()}return this._showingDeferred.promise()},_normalizeAnimation:function(e,t){return e&&(e=(0,a.l)({type:"slide",skipElementInitialStyles:!0},e),(0,l.Kn)(e[t])&&(0,a.l)(e[t],{position:this._positionController.position})),e},_animateHiding:function(){var e,t,i,n=this,o=null!==(e=this._getAnimationConfig())&&void 0!==e?e:{},r=this._normalizeAnimation(o.hide,"from"),a=null!==(t=null===r||void 0===r?void 0:r.start)&&void 0!==t?t:v.ZT,s=null!==(i=null===r||void 0===r?void 0:r.complete)&&void 0!==i?i:v.ZT;this._animate(r,(function(){var e;n._$content.css("pointerEvents",""),n._renderVisibility(!1);for(var t=arguments.length,i=new Array(t),o=0;o{this._forceFocusLost(),this._toggleShading(!1),this._toggleSubscriptions(!1),this._stopShowTimer(),this._animateHiding()}),(()=>{this._isHidingActionCanceled=!0,this.option("visible",!0),this._hidingDeferred.resolve()}))),this._hidingDeferred.promise()},_forceFocusLost:function(){var e=ke["default"].getActiveElement(),t=!!this._$content.find(e).length;t&&(0,M.M3)()},_animate:function(e,t,i){e?(i=i||e.start||v.ZT,Ut.animate(this._$content,(0,a.l)({},e,{start:i,complete:t}))):t()},_stopAnimation:function(){Ut.stop(this._$content,!0)},_renderVisibility:function(e){e&&this._isParentHidden()||(this._currentVisible=e,this._stopAnimation(),e||(0,Qt.Ly)(this._$content),e?(this._checkContainerExists(),this._moveToContainer(),this._renderGeometry(),(0,Qt.Uo)(this._$content),(0,Qt.U_)(this._$content)):(this._toggleVisibility(e),this._$content.toggleClass(xi,!e),this._updateZIndexStackPosition(e),this._moveFromContainer()),this._toggleShading(e),this._toggleSubscriptions(e))},_updateZIndexStackPosition:function(e){var t=this._overlayStack(),i=t.indexOf(this);e?(-1===i&&(this._zIndex=oi(this._zIndexInitValue()),t.push(this)),this._$wrapper.css("zIndex",this._zIndex),this._$content.css("zIndex",this._zIndex)):-1!==i&&(t.splice(i,1),ri(this._zIndex))},_toggleShading:function(e){this._$wrapper.toggleClass(Ci,e&&this.option("shading")),this._$wrapper.css("backgroundColor",this.option("shading")?this.option("shadingColor"):""),this._toggleTabTerminator(e&&this.option("shading"))},_initTabTerminatorHandler:function(){var e=this;this._proxiedTabTerminatorHandler=function(){e._tabKeyHandler(...arguments)}},_toggleTabTerminator:function(e){var t=(0,R.V4)("keydown",this.NAME);e?re.Z.on(ke["default"].getDocument(),t,this._proxiedTabTerminatorHandler):re.Z.off(ke["default"].getDocument(),t,this._proxiedTabTerminatorHandler)},_findTabbableBounds:function(){for(var e=this._$wrapper.find("*"),t=e.length-1,i={first:null,last:null},n=0;n<=t;n++)if(!i.first&&e.eq(n).is(D.ht)&&(i.first=e.eq(n)),!i.last&&e.eq(t-n).is(D.ht)&&(i.last=e.eq(t-n)),i.first&&i.last)break;return i},_tabKeyHandler:function(e){if((0,R.EV)(e)===Ei&&this._isTopOverlay()){var t=this._findTabbableBounds(),i=t.first,n=t.last,o=!e.shiftKey&&e.target===n.get(0),r=e.shiftKey&&e.target===i.get(0),a=0===t.length,s=!(0,M.r3)(this._$wrapper.get(0),e.target);if(o||r||a||s){e.preventDefault();var l=e.shiftKey?n:i;re.Z.trigger(l,"focusin"),re.Z.trigger(l,"focus")}}},_toggleSubscriptions:function(e){(0,s.Ym)()&&(this._toggleHideTopOverlayCallback(e),this._toggleHideOnParentsScrollSubscription(e))},_toggleHideTopOverlayCallback:function(e){this._hideTopOverlayHandler&&(e?ei.add(this._hideTopOverlayHandler):ei.remove(this._hideTopOverlayHandler))},_toggleHideOnParentsScrollSubscription:function(e){var t,i=(0,R.V4)("scroll",this.NAME),{prevTargets:n,handler:o}=null!==(t=this._parentsScrollSubscriptionInfo)&&void 0!==t?t:{};re.Z.off(n,i,o);var r=this.option("hideOnParentScroll");if(e&&r){var a=this._hideOnParentScrollTarget().parents();"desktop"===w.Z.real().deviceType&&(a=a.add(gi)),re.Z.on(a,i,o),this._parentsScrollSubscriptionInfo.prevTargets=a}},_hideOnParentsScrollHandler:function(e){var t=!1,i=this.option("hideOnParentScroll");(0,l.mf)(i)&&(t=i(e)),t||this._showAnimationProcessing||this.hide()},_hideOnParentScrollTarget:function(){return this._$wrapper},_render:function(){this.callBase(),this._appendContentToElement(),this._renderVisibilityAnimate(this.option("visible"))},_appendContentToElement:function(){this._$content.parent().is(this.$element())||this._$content.appendTo(this.$element())},_renderContent:function(){var e=!this._currentVisible&&this.option("deferRendering"),t=this.option("visible")&&this._isParentHidden();t?this._isHidden=!0:this._contentAlreadyRendered||e||(this._contentAlreadyRendered=!0,this._appendContentToElement(),this.callBase())},_isParentHidden:function(){if(!this.option("_checkParentVisibility"))return!1;if(void 0!==this._parentHidden)return this._parentHidden;var e=this.$element().parent();if(e.is(":visible"))return!1;var t=!1;return e.add(e.parents()).each((function(){var e=(0,o.Z)(this);if("none"===e.css("display"))return t=!0,!1})),t||!ke["default"].getBody().contains(e.get(0))},_renderContentImpl:function(){var e=new ot.BH,t=this.option("contentTemplate"),i=this._getTemplate(t),n=this._templateManager.anonymousTemplateName===t;return i&&i.render({container:(0,se.u)(this.$content()),noModel:!0,transclude:n,onRendered:()=>{e.resolve(),this.option("templatesRenderAsynchronously")&&this._dimensionChanged()}}),this._renderScrollTerminator(),e.done((()=>{this.option("visible")&&this._moveToContainer()})),e.promise()},_getPositionControllerConfig(){var{container:e,visualContainer:t,_fixWrapperPosition:i,restorePosition:n}=this.option();return{container:e,visualContainer:t,$root:this.$element(),$content:this._$content,$wrapper:this._$wrapper,onPositioned:this._actions.onPositioned,onVisualPositionChanged:this._actions.onVisualPositionChanged,restorePosition:n,_fixWrapperPosition:i}},_initPositionController(){this._positionController=new pi(this._getPositionControllerConfig())},_renderScrollTerminator:function(){var e=this._$wrapper,t=(0,R.V4)(Jt.pB,this.NAME);re.Z.off(e,t),re.Z.on(e,t,{validate:function(){return!0},getDirection:function(){return"both"},_toggleGestureCover:function(e){e||this._toggleGestureCoverImpl(e)},_clearSelection:v.ZT,isNative:!0},(e=>{var t=e.originalEvent.originalEvent,{type:i}=t||{},n="wheel"===i,o="mousemove"===i,r=n&&!(0,R.j1)(e);e._cancelPreventDefault=!0,t&&!1!==e.cancelable&&(!o&&!n||r)&&e.preventDefault()}))},_moveFromContainer:function(){this._$content.appendTo(this.$element()),this._$wrapper.detach()},_checkContainerExists(){var e=this._positionController.$container,t=e.length>0;t||Xt.Z.log("W1021",this.NAME)},_moveToContainer:function(){var e=this._positionController.$container;this._$wrapper.appendTo(e),this._$content.appendTo(this._$wrapper)},_renderGeometry:function(e){var{visible:t}=this.option();t&&(0,s.Ym)()&&(this._stopAnimation(),this._renderGeometryImpl())},_renderGeometryImpl:function(){this._positionController.updatePosition(this._getOptionValue("position")),this._renderWrapper(),this._renderDimensions(),this._renderPosition()},_renderPosition(){this._positionController.positionContent()},_isAllWindowCovered:function(){return(0,l.FJ)(this._positionController.$visualContainer.get(0))&&this.option("shading")},_toggleSafariScrolling:function(){var e=this.option("visible"),t=(0,o.Z)(ke["default"].getBody()),i="ios"===w.Z.real().platform&&Me.Z.safari,n=this._isAllWindowCovered(),r=t.hasClass(Ii),a=!r&&e&&n,s=r&&(!e||!n||this._disposed);i&&(s?(t.removeClass(Ii),gi.scrollTo(0,this._cachedBodyScrollTop),this._cachedBodyScrollTop=void 0):a&&(this._cachedBodyScrollTop=gi.pageYOffset,t.addClass(Ii)))},_renderWrapper:function(){this._positionController.styleWrapperPosition(),this._renderWrapperDimensions(),this._positionController.positionWrapper()},_renderWrapperDimensions:function(){var e=this._positionController.$visualContainer,t=ke["default"].getDocumentElement(),i=(0,l.FJ)(e.get(0)),o=i?t.clientWidth:(0,n.Y_)(e),r=i?gi.innerHeight:(0,n.zp)(e);this._$wrapper.css({width:o,height:r})},_renderDimensions:function(){var e=this._$content.get(0);this._$content.css({minWidth:this._getOptionValue("minWidth",e),maxWidth:this._getOptionValue("maxWidth",e),minHeight:this._getOptionValue("minHeight",e),maxHeight:this._getOptionValue("maxHeight",e),width:this._getOptionValue("width",e),height:this._getOptionValue("height",e)})},_focusTarget:function(){return this._$content},_attachKeyboardEvents:function(){this._keyboardListenerId=I.dG.on(this._$content,null,(e=>this._keyboardHandler(e)))},_keyboardHandler:function(e){var t=e.originalEvent,i=(0,o.Z)(t.target);!i.is(this._$content)&&this.option("ignoreChildEvents")||this.callBase(...arguments)},_isVisible:function(){return this.option("visible")},_visibilityChanged:function(e){e?this.option("visible")&&this._renderVisibilityAnimate(e):this._renderVisibilityAnimate(e)},_dimensionChanged:function(){this._renderGeometry()},_clean:function(){var e=this.option();this._contentAlreadyRendered||e.isRenovated||this.$content().empty(),this._renderVisibility(!1),this._stopShowTimer(),this._cleanFocusState()},_stopShowTimer(){this._asyncShowTimeout&&clearTimeout(this._asyncShowTimeout),this._asyncShowTimeout=null},_dispose:function(){Ut.stop(this._$content,!1),clearTimeout(this._deferShowTimer),this._toggleViewPortSubscription(!1),this._toggleSubscriptions(!1),this._updateZIndexStackPosition(!1),this._toggleTabTerminator(!1),this._actions=null,this._parentsScrollSubscriptionInfo=null,this.callBase(),this._toggleSafariScrolling(),this.option("visible")&&ri(this._zIndex),this._$wrapper.remove(),this._$content.remove()},_toggleRTLDirection:function(e){this._$content.toggleClass(Ti,e)},_optionChanged:function(e){var t=e.value;if(this._getActionsList().includes(e.name))this._initActions();else switch(e.name){case"animation":break;case"shading":this._toggleShading(this.option("visible")),this._toggleSafariScrolling();break;case"shadingColor":this._toggleShading(this.option("visible"));break;case"width":case"height":this._renderGeometry();break;case"minWidth":case"maxWidth":case"minHeight":case"maxHeight":this._renderGeometry();break;case"position":this._positionController.updatePosition(this.option("position")),this._positionController.restorePositionOnNextRender(!0),this._renderGeometry(),this._toggleSafariScrolling();break;case"visible":this._renderVisibilityAnimate(t).done((()=>{var e;return null===(e=this._animateDeferred)||void 0===e?void 0:e.resolveWith(this)})).fail((()=>{var e;return null===(e=this._animateDeferred)||void 0===e?void 0:e.reject()}));break;case"container":this._positionController.updateContainer(t),this._invalidate(),this._toggleSafariScrolling();break;case"visualContainer":this._positionController.updateVisualContainer(t),this._renderWrapper(),this._toggleSafariScrolling();break;case"innerOverlay":this._initInnerOverlayClass();break;case"deferRendering":case"contentTemplate":this._contentAlreadyRendered=!1,this._clean(),this._invalidate();break;case"hideTopOverlayHandler":this._toggleHideTopOverlayCallback(!1),this._initHideTopOverlayHandler(e.value),this._toggleHideTopOverlayCallback(this.option("visible"));break;case"hideOnParentScroll":this._toggleHideOnParentsScrollSubscription(this.option("visible"));break;case"closeOnOutsideClick":case"hideOnOutsideClick":case"propagateOutsideClick":break;case"rtlEnabled":this._contentAlreadyRendered=!1,this.callBase(e);break;case"_fixWrapperPosition":this._positionController.fixWrapperPosition=t;break;case"wrapperAttr":this._renderWrapperAttributes();break;case"restorePosition":this._positionController.restorePosition=e.value;break;default:this.callBase(e)}},toggle:function(e){e=void 0===e?!this.option("visible"):e;var t=new ot.BH;if(e===this.option("visible"))return t.resolveWith(this,[e]).promise();var i=new ot.BH;return this._animateDeferred=i,this.option("visible",e),i.promise().done((()=>{delete this._animateDeferred,t.resolveWith(this,[this.option("visible")])})).fail((()=>{delete this._animateDeferred,t.reject()})),t.promise()},$content:function(){return this._$content},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},content:function(){return(0,se.u)(this._$content)},repaint:function(){this._contentAlreadyRendered?(this._positionController.restorePositionOnNextRender(!0),this._renderGeometry({forceStopAnimation:!0}),(0,Qt.U_)(this._$content)):this.callBase()}});Di.baseZIndex=e=>ni(e),(0,C.Z)("dxOverlay",Di);var ki=Di,Oi="dx-loadpanel",Ai="dx-loadpanel-wrapper",Pi="dx-loadpanel-indicator",Mi="dx-loadpanel-message",Ri="dx-loadpanel-content",Bi="dx-loadpanel-content-wrapper",Vi="dx-loadpanel-pane-hidden",Fi=ki.inherit({_supportedKeys:function(){return(0,a.l)(this.callBase(),{escape:v.ZT})},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{message:y.Z.format("Loading"),width:222,height:90,animation:null,showIndicator:!0,indicatorSrc:"",showPane:!0,delay:0,templatesRenderAsynchronously:!1,hideTopOverlayHandler:null,focusStateEnabled:!1,propagateOutsideClick:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"generic"},options:{shadingColor:"transparent"}},{device:function(){return(0,x.x2)()},options:{message:"",width:60,height:60,maxHeight:60,maxWidth:60}}])},_init:function(){this.callBase.apply(this,arguments)},_render:function(){this.callBase(),this.$element().addClass(Oi),this.$wrapper().addClass(Ai)},_renderContentImpl:function(){this.callBase(),this.$content().addClass(Ri),this._$loadPanelContentWrapper=(0,o.Z)("
").addClass(Bi),this._$loadPanelContentWrapper.appendTo(this.$content()),this._togglePaneVisible(),this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage()},_show:function(){var e=this.option("delay");if(!e)return this.callBase();var t=new ot.BH,i=this.callBase.bind(this);return this._clearShowTimeout(),this._showTimeout=setTimeout((function(){i().done((function(){t.resolve()}))}),e),t.promise()},_hide:function(){return this._clearShowTimeout(),this.callBase()},_clearShowTimeout:function(){clearTimeout(this._showTimeout)},_renderMessage:function(){if(this._$loadPanelContentWrapper){var e=this.option("message");if(e){var t=(0,o.Z)("
").addClass(Mi).text(e);this._$loadPanelContentWrapper.append(t)}}},_renderLoadIndicator:function(){this._$loadPanelContentWrapper&&this.option("showIndicator")&&(this._$indicator||(this._$indicator=(0,o.Z)("
").addClass(Pi).appendTo(this._$loadPanelContentWrapper)),this._createComponent(this._$indicator,oe,{indicatorSrc:this.option("indicatorSrc")}))},_cleanPreviousContent:function(){this.$content().find("."+Mi).remove(),this.$content().find("."+Pi).remove(),delete this._$indicator},_togglePaneVisible:function(){this.$content().toggleClass(Vi,!this.option("showPane"))},_optionChanged:function(e){switch(e.name){case"delay":break;case"message":case"showIndicator":this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage();break;case"showPane":this._togglePaneVisible();break;case"indicatorSrc":this._renderLoadIndicator();break;default:this.callBase(e)}},_dispose:function(){this._clearShowTimeout(),this.callBase()}});(0,C.Z)("dxLoadPanel",Fi);var Hi=Fi,Li=i(68760),Ni=(0,s.Jj)(),Zi="dx-splitter",$i="".concat(Zi,"-wrapper"),Wi="".concat(Zi,"-inactive"),Ki="".concat(Zi,"-border"),zi="".concat(Zi,"-initial"),ji="dx-state-disabled",Ui="dxSplitterResizing";class Gi extends G{_init(){super._init();var e=(new Li.Z).toString();this.SPLITTER_POINTER_DOWN_EVENT_NAME=(0,R.V4)(B.Z.down,Ui+e),this.SPLITTER_POINTER_MOVE_EVENT_NAME=(0,R.V4)(B.Z.move,Ui+e),this.SPLITTER_POINTER_UP_EVENT_NAME=(0,R.V4)(B.Z.up,Ui+e)}_initMarkup(){super._initMarkup(),this._initActions(),this._$container=this.option("container"),this._$leftElement=this.option("leftElement"),this._$rightElement=this.option("rightElement"),this.$element().addClass($i).addClass(zi),this._$splitterBorder=(0,o.Z)("
").addClass(Ki).appendTo(this.$element()),this._$splitter=(0,o.Z)("
").addClass(Zi).addClass(Wi).appendTo(this._$splitterBorder)}_initActions(){this._actions={onApplyPanelSize:this._createActionByOption("onApplyPanelSize"),onActiveStateChanged:this._createActionByOption("onActiveStateChanged")}}_render(){super._render(),this._detachEventHandlers(),this._attachEventHandlers()}_clean(){this._detachEventHandlers(),super._clean()}_attachEventHandlers(){var e=ke["default"].getDocument();re.Z.on(this._$splitterBorder,this.SPLITTER_POINTER_DOWN_EVENT_NAME,this._onMouseDownHandler.bind(this)),re.Z.on(e,this.SPLITTER_POINTER_MOVE_EVENT_NAME,this._onMouseMoveHandler.bind(this)),re.Z.on(e,this.SPLITTER_POINTER_UP_EVENT_NAME,this._onMouseUpHandler.bind(this))}_detachEventHandlers(){var e=ke["default"].getDocument();re.Z.off(this._$splitterBorder,this.SPLITTER_POINTER_DOWN_EVENT_NAME),re.Z.off(e,this.SPLITTER_POINTER_MOVE_EVENT_NAME),re.Z.off(e,this.SPLITTER_POINTER_UP_EVENT_NAME)}_dimensionChanged(e){e&&"height"===e||(this._containerWidth=this._$container.get(0).clientWidth,this._setSplitterPositionLeft({needUpdatePanels:!0,usePercentagePanelsWidth:!0}))}_onMouseDownHandler(e){e.preventDefault(),this._offsetX=e.pageX-this._$splitterBorder.offset().left<=this._getSplitterBorderWidth()?e.pageX-this._$splitterBorder.offset().left:0,this._containerWidth=this._$container.get(0).clientWidth,this.$element().removeClass(zi),this._toggleActive(!0),this._setSplitterPositionLeft({needUpdatePanels:!0})}_onMouseMoveHandler(e){this._isSplitterActive&&this._setSplitterPositionLeft({splitterPositionLeft:this._getNewSplitterPositionLeft(e),needUpdatePanels:!0})}_onMouseUpHandler(){this._isSplitterActive&&(this._leftPanelPercentageWidth=null,this._toggleActive(!1),this._setSplitterPositionLeft({needUpdatePanels:!0,usePercentagePanelsWidth:!0}))}_getNewSplitterPositionLeft(e){var t=e.pageX-this._getContainerLeftOffset()-this._offsetX;return t=Math.max(0-this._getSplitterOffset(),t),t=Math.min(this._containerWidth-this._getSplitterOffset()-this._getSplitterWidth(),t),t}_getContainerLeftOffset(){var e=this._$container.offset().left;if(Ni){var t=Ni.getComputedStyle(this._$container.get(0)),i=parseFloat(t.paddingLeft)||0,n=parseFloat(t.borderLeftWidth)||0;e+=i+n}return e}_getSplitterOffset(){return(this._getSplitterBorderWidth()-this._getSplitterWidth())/2}_getSplitterWidth(){return this._$splitter.get(0).clientWidth}_getSplitterBorderWidth(){return this._$splitterBorder.get(0).clientWidth}_getLeftPanelWidth(){return this._$leftElement.get(0).clientWidth}getSplitterBorderElement(){return this._$splitterBorder}_toggleActive(e){this.$element().toggleClass(Wi,!e),this._$splitter.toggleClass(Wi,!e),this._isSplitterActive=e,this._actions.onActiveStateChanged({isActive:e})}toggleDisabled(e){this.$element().toggleClass(ji,e),this._$splitter.toggleClass(ji,e)}isSplitterMoved(){return!this.$element().hasClass(zi)}disableSplitterCalculation(e){this._isSplitterCalculationDisabled=e}_setSplitterPositionLeft(){var{splitterPositionLeft:e=null,needUpdatePanels:t=!1,usePercentagePanelsWidth:i=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=e||this._getLeftPanelWidth()-this._getSplitterOffset();var n=e+this._getSplitterOffset(),o=this._containerWidth-n;this._isSplitterCalculationDisabled||this.$element().css("left",e),this._leftPanelPercentageWidth=this._leftPanelPercentageWidth||this._convertToPercentage(n);var r=this._convertToPercentage(this._containerWidth-this._convertToPixels(this._leftPanelPercentageWidth));t&&this._actions.onApplyPanelSize({leftPanelWidth:i?"".concat(this._leftPanelPercentageWidth,"%"):n,rightPanelWidth:i?"".concat(r,"%"):o})}_optionChanged(e){switch(e.name){case"initialLeftPanelWidth":this._leftPanelPercentageWidth=this._convertToPercentage(e.value),this._dimensionChanged();break;case"leftElement":this.repaint();break;case"onActiveStateChanged":case"onApplyPanelSize":this._actions[e.name]=this._createActionByOption(e.name);break;default:super._optionChanged(e)}}_convertToPercentage(e){return e/this._$container.get(0).clientWidth*100}_convertToPixels(e){return e/100*this._$container.get(0).clientWidth}}var qi={onContextMenuPreparing:"onContextMenuPreparing",onCustomCommand:"onCustomCommand",onDependencyDeleted:"onDependencyDeleted",onDependencyDeleting:"onDependencyDeleting",onDependencyInserted:"onDependencyInserted",onDependencyInserting:"onDependencyInserting",onResourceAssigned:"onResourceAssigned",onResourceAssigning:"onResourceAssigning",onResourceDeleted:"onResourceDeleted",onResourceDeleting:"onResourceDeleting",onResourceInserted:"onResourceInserted",onResourceInserting:"onResourceInserting",onResourceManagerDialogShowing:"onResourceManagerDialogShowing",onResourceUnassigned:"onResourceUnassigned",onResourceUnassigning:"onResourceUnassigning",onSelectionChanged:"onSelectionChanged",onTaskClick:"onTaskClick",onTaskDblClick:"onTaskDblClick",onTaskDeleted:"onTaskDeleted",onTaskDeleting:"onTaskDeleting",onTaskEditDialogShowing:"onTaskEditDialogShowing",onTaskInserted:"onTaskInserted",onTaskInserting:"onTaskInserting",onTaskMoving:"onTaskMoving",onTaskUpdated:"onTaskUpdated",onTaskUpdating:"onTaskUpdating",onScaleCellPrepared:"onScaleCellPrepared"},Yi="tasks",Xi="dependencies",Ji="resources",Qi="resourceAssignments",en="gantt_new_task_key";class tn{constructor(e){this._gantt=e,this._mappingHelper=e._mappingHelper,this._customFieldsManager=e._customFieldsManager}_createActionByOption(e){return this._gantt._createActionByOption(e)}_getTaskData(e){return this._gantt.getTaskData(e)}_convertCoreToMappedData(e,t){return this._mappingHelper.convertCoreToMappedData(e,t)}_convertMappedToCoreData(e,t){return this._mappingHelper.convertMappedToCoreData(e,t)}_convertMappedToCoreFields(e,t){return this._mappingHelper.convertMappedToCoreFields(e,t)}_convertCoreToMappedFields(e,t){return this._mappingHelper.convertCoreToMappedFields(e,t)}_saveCustomFieldsDataToCache(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this._customFieldsManager.saveCustomFieldsDataToCache(e,t,i,n)}createTaskDblClickAction(){this._taskDblClickAction=this._createActionByOption(qi.onTaskDblClick)}taskDblClickAction(e){this._taskDblClickAction||this.createTaskDblClickAction(),this._taskDblClickAction(e)}raiseTaskDblClickAction(e,t){var i={cancel:!1,data:this._getTaskData(e),event:t,key:e};return this.taskDblClickAction(i),!i.cancel}createTaskClickAction(){this._taskClickAction=this._createActionByOption(qi.onTaskClick)}taskClickAction(e){this._taskClickAction||this.createTaskClickAction(),this._taskClickAction(e)}raiseTaskClickAction(e,t){var i={key:e,event:t,data:this._getTaskData(e)};this.taskClickAction(i)}createSelectionChangedAction(){this._selectionChangedAction=this._createActionByOption(qi.onSelectionChanged)}selectionChangedAction(e){this._selectionChangedAction||this.createSelectionChangedAction(),this._selectionChangedAction(e)}raiseSelectionChangedAction(e){this.selectionChangedAction({selectedRowKey:e})}createCustomCommandAction(){this._customCommandAction=this._createActionByOption(qi.onCustomCommand)}customCommandAction(e){this._customCommandAction||this.createCustomCommandAction(),this._customCommandAction(e)}raiseCustomCommand(e){this.customCommandAction({name:e})}createContextMenuPreparingAction(){this._contextMenuPreparingAction=this._createActionByOption(qi.onContextMenuPreparing)}contextMenuPreparingAction(e){this._contextMenuPreparingAction||this.createContextMenuPreparingAction(),this._contextMenuPreparingAction(e)}raiseContextMenuPreparing(e){this.contextMenuPreparingAction(e)}_getInsertingAction(e){switch(e){case Yi:return this._getTaskInsertingAction();case Xi:return this._getDependencyInsertingAction();case Ji:return this._getResourceInsertingAction();case Qi:return this._getResourceAssigningAction()}return()=>{}}raiseInsertingAction(e,t){var i=this._getInsertingAction(e);if(i){var n={cancel:!1,values:this._convertCoreToMappedData(e,t.values)};i(n),t.cancel=n.cancel,t.values=this._convertMappedToCoreData(e,n.values),e===Yi&&this._saveCustomFieldsDataToCache(en,n.values)}}createTaskInsertingAction(){this._taskInsertingAction=this._createActionByOption(qi.onTaskInserting)}taskInsertingAction(e){var t=this._getTaskInsertingAction();t(e)}_getTaskInsertingAction(){return this._taskInsertingAction||this.createTaskInsertingAction(),this._taskInsertingAction}createDependencyInsertingAction(){this._dependencyInsertingAction=this._createActionByOption(qi.onDependencyInserting)}dependencyInsertingAction(e){var t=this._getDependencyInsertingAction();t(e)}_getDependencyInsertingAction(){return this._dependencyInsertingAction||this.createDependencyInsertingAction(),this._dependencyInsertingAction}createResourceInsertingAction(){this._resourceInsertingAction=this._createActionByOption(qi.onResourceInserting)}resourceInsertingAction(e){var t=this._getResourceInsertingAction();t(e)}_getResourceInsertingAction(){return this._resourceInsertingAction||this.createResourceInsertingAction(),this._resourceInsertingAction}createResourceAssigningAction(){this._resourceAssigningAction=this._createActionByOption(qi.onResourceAssigning)}resourceAssigningAction(e){var t=this._getResourceAssigningAction();t(e)}_getResourceAssigningAction(){return this._resourceAssigningAction||this.createResourceAssigningAction(),this._resourceAssigningAction}_getInsertedAction(e){switch(e){case Yi:return this._getTaskInsertedAction();case Xi:return this._getDependencyInsertedAction();case Ji:return this._getResourceInsertedAction();case Qi:return this._getResourceAssignedAction()}return()=>{}}raiseInsertedAction(e,t,i){var n=this._getInsertedAction(e);if(n){var o={values:t,key:i};n(o)}}createTaskInsertedAction(){this._taskInsertedAction=this._createActionByOption(qi.onTaskInserted)}taskInsertedAction(e){var t=this._getTaskInsertedAction();t(e)}_getTaskInsertedAction(){return this._taskInsertedAction||this.createTaskInsertedAction(),this._taskInsertedAction}createDependencyInsertedAction(){this._dependencyInsertedAction=this._createActionByOption(qi.onDependencyInserted)}dependencyInsertedAction(e){var t=this._getDependencyInsertedAction();t(e)}_getDependencyInsertedAction(){return this._dependencyInsertedAction||this.createDependencyInsertedAction(),this._dependencyInsertedAction}createResourceInsertedAction(){this._resourceInsertedAction=this._createActionByOption(qi.onResourceInserted)}resourceInsertedAction(e){var t=this._getResourceInsertedAction();t(e)}_getResourceInsertedAction(){return this._resourceInsertedAction||this.createResourceInsertedAction(),this._resourceInsertedAction}createResourceAssignedAction(){this._resourceAssignedAction=this._createActionByOption(qi.onResourceAssigned)}resourceAssignedAction(e){var t=this._getResourceAssignedAction();t(e)}_getResourceAssignedAction(){return this._resourceAssignedAction||this.createResourceAssignedAction(),this._resourceAssignedAction}_getDeletingAction(e){switch(e){case Yi:return this._getTaskDeletingAction();case Xi:return this._getDependencyDeletingAction();case Ji:return this._getResourceDeletingAction();case Qi:return this._getResourceUnassigningAction()}return()=>{}}raiseDeletingAction(e,t){var i=this._getDeletingAction(e);if(i){var n={cancel:!1,key:t.key,values:this._convertCoreToMappedData(e,t.values)};i(n),t.cancel=n.cancel}}createTaskDeletingAction(){this._taskDeletingAction=this._createActionByOption(qi.onTaskDeleting)}taskDeletingAction(e){var t=this._getTaskDeletingAction();t(e)}_getTaskDeletingAction(){return this._taskDeletingAction||this.createTaskDeletingAction(),this._taskDeletingAction}createDependencyDeletingAction(){this._dependencyDeletingAction=this._createActionByOption(qi.onDependencyDeleting)}dependencyDeletingAction(e){var t=this._getDependencyDeletingAction();t(e)}_getDependencyDeletingAction(){return this._dependencyDeletingAction||this.createDependencyDeletingAction(),this._dependencyDeletingAction}createResourceDeletingAction(){this._resourceDeletingAction=this._createActionByOption(qi.onResourceDeleting)}resourceDeletingAction(e){var t=this._getResourceDeletingAction();t(e)}_getResourceDeletingAction(){return this._resourceDeletingAction||this.createResourceDeletingAction(),this._resourceDeletingAction}createResourceUnassigningAction(){this._resourceUnassigningAction=this._createActionByOption(qi.onResourceUnassigning)}resourceUnassigningAction(e){var t=this._getResourceUnassigningAction();t(e)}_getResourceUnassigningAction(){return this._resourceUnassigningAction||this.createResourceUnassigningAction(),this._resourceUnassigningAction}_getDeletedAction(e){switch(e){case Yi:return this._getTaskDeletedAction();case Xi:return this._getDependencyDeletedAction();case Ji:return this._getResourceDeletedAction();case Qi:return this._getResourceUnassignedAction()}return()=>{}}raiseDeletedAction(e,t,i){var n=this._getDeletedAction(e);if(n){var o={key:t,values:i};n(o)}}createTaskDeletedAction(){this._taskDeletedAction=this._createActionByOption(qi.onTaskDeleted)}taskDeletedAction(e){var t=this._getTaskDeletedAction();t(e)}_getTaskDeletedAction(){return this._taskDeletedAction||this.createTaskDeletedAction(),this._taskDeletedAction}createDependencyDeletedAction(){this._dependencyDeletedAction=this._createActionByOption(qi.onDependencyDeleted)}dependencyDeletedAction(e){var t=this._getDependencyDeletedAction();t(e)}_getDependencyDeletedAction(){return this._dependencyDeletedAction||this.createDependencyDeletedAction(),this._dependencyDeletedAction}createResourceDeletedAction(){this._resourceDeletedAction=this._createActionByOption(qi.onResourceDeleted)}resourceDeletedAction(e){var t=this._getResourceDeletedAction();t(e)}_getResourceDeletedAction(){return this._resourceDeletedAction||this.createResourceDeletedAction(),this._resourceDeletedAction}createResourceUnassignedAction(){this._resourceUnassignedAction=this._createActionByOption(qi.onResourceUnassigned)}resourceUnassignedAction(e){var t=this._getResourceUnassignedAction();t(e)}_getResourceUnassignedAction(){return this._resourceUnassignedAction||this.createResourceUnassignedAction(),this._resourceUnassignedAction}_getUpdatingAction(e){switch(e){case Yi:return this._getTaskUpdatingAction()}return()=>{}}raiseUpdatingAction(e,t,i){if(i=i||this._getUpdatingAction(e),i){var n=e===Yi,o={cancel:!1,key:t.key,newValues:this._convertCoreToMappedData(e,t.newValues),values:n?this._getTaskData(t.key):this._convertCoreToMappedData(e,t.values)};if(n&&this._customFieldsManager.cache.hasData(o.key)&&this._customFieldsManager.addCustomFieldsDataFromCache(o.key,o.newValues),i(o),t.cancel=o.cancel,t.newValues=this._convertMappedToCoreData(e,o.newValues),n)if(o.cancel)this._customFieldsManager.resetCustomFieldsDataCache(o.key);else{var r=!Object.keys(t.newValues).length;this._saveCustomFieldsDataToCache(o.key,o.newValues,r)}}}createTaskUpdatingAction(){this._taskUpdatingAction=this._createActionByOption(qi.onTaskUpdating)}taskUpdatingAction(e){var t=this._getTaskUpdatingAction();t(e)}_getTaskUpdatingAction(){return this._taskUpdatingAction||this.createTaskUpdatingAction(),this._taskUpdatingAction}_getUpdatedAction(e){switch(e){case Yi:return this._getTaskUpdatedAction()}return()=>{}}raiseUpdatedAction(e,t,i){var n=this._getUpdatedAction(e);if(n){var o={values:t,key:i};n(o)}}createTaskUpdatedAction(){this._taskUpdatedAction=this._createActionByOption(qi.onTaskUpdated)}taskUpdatedAction(e){var t=this._getTaskUpdatedAction();t(e)}_getTaskUpdatedAction(){return this._taskUpdatedAction||this.createTaskUpdatedAction(),this._taskUpdatedAction}createTaskEditDialogShowingAction(){this._taskEditDialogShowingAction=this._createActionByOption(qi.onTaskEditDialogShowing)}taskEditDialogShowingAction(e){var t=this._getTaskEditDialogShowingAction();t(e)}_getTaskEditDialogShowingAction(){return this._taskEditDialogShowingAction||this.createTaskEditDialogShowingAction(),this._taskEditDialogShowingAction}raiseTaskEditDialogShowingAction(e){var t=this._getTaskEditDialogShowingAction();if(t){var i={cancel:!1,key:e.key,values:this._convertCoreToMappedData(Yi,e.values),readOnlyFields:this._convertCoreToMappedFields(Yi,e.readOnlyFields),hiddenFields:this._convertCoreToMappedFields(Yi,e.hiddenFields)};t(i),e.cancel=i.cancel,e.values=this._convertMappedToCoreData(Yi,i.values),e.readOnlyFields=this._convertMappedToCoreFields(Yi,i.readOnlyFields),e.hiddenFields=this._convertMappedToCoreFields(Yi,i.hiddenFields)}}createResourceManagerDialogShowingAction(){this._resourceManagerDialogShowingAction=this._createActionByOption(qi.onResourceManagerDialogShowing)}resourceManagerDialogShowingAction(e){var t=this._getResourceManagerDialogShowingAction();t(e)}_getResourceManagerDialogShowingAction(){return this._resourceManagerDialogShowingAction||this.createResourceManagerDialogShowingAction(),this._resourceManagerDialogShowingAction}raiseResourceManagerDialogShowingAction(e){var t=this._getResourceManagerDialogShowingAction();if(t){var i=e.values.resources.items.map((e=>this._convertMappedToCoreData(Ji,e))),n={cancel:!1,values:i};t(n),e.cancel=n.cancel}}createTaskMovingAction(){this._taskMovingAction=this._createActionByOption(qi.onTaskMoving)}taskMovingAction(e){var t=this.getTaskMovingAction();t(e)}getTaskMovingAction(){return this._taskMovingAction||this.createTaskMovingAction(),this._taskMovingAction}getScaleCellPreparedAction(){return this._scaleCellPreparedAction||this.createScaleCellPreparedAction(),this._scaleCellPreparedAction}createScaleCellPreparedAction(){this._scaleCellPreparedAction=this._createActionByOption(qi.onScaleCellPrepared)}raiseScaleCellPreparedAction(e){var t=this.getScaleCellPreparedAction();if(t){var i={scaleIndex:e.scaleIndex,scaleType:this._getScaleType(e.scaleType),scaleElement:(0,se.u)((0,o.Z)(e.scaleElement)),separatorElement:(0,se.u)((0,o.Z)(e.separatorElement)),startDate:new Date(e.start),endDate:new Date(e.end)};t(i)}}_getScaleType(e){switch(e){case 0:return"minutes";case 1:return"hours";case 2:return"sixHours";case 3:return"days";case 4:return"weeks";case 5:return"months";case 6:return"quarters";case 7:return"years";case 8:return"fiveYears";default:return}}}class nn{constructor(){this._cache={},this._timers={}}saveData(e,t,i){if(t){this._clearTimer(e);var n=this._getCache(e,!0);(0,a.x)(n,t,!0),i&&this._setExpireTimer(e,i)}}pullDataFromCache(e,t){var i=this._getCache(e);i&&(0,a.x)(t,i),this._onKeyExpired(e)}hasData(e){return!!this._cache[e]}resetCache(e){this._onKeyExpired(e)}_getCache(e,t){return!this._cache[e]&&t&&(this._cache[e]={}),this._cache[e]}_setExpireTimer(e,t){this._timers[e]=setTimeout((()=>{t(e,this._getCache(e)),this._onKeyExpired(e)}),200)}_onKeyExpired(e){this._clearCache(e),this._clearTimer(e)}_clearCache(e){delete this._cache[e]}_clearTimer(e){var t=this._timers;t&&t[e]&&(clearTimeout(t[e]),delete t[e])}}var on={prepareMapHandler:e=>t=>Object.keys(e).reduce(((i,n)=>{var o="key"===n?"id":n;return i[o]=e[n](t),i}),{}),prepareSetterMapHandler:e=>t=>Object.keys(e).reduce(((i,n)=>{var o="key"===n?"id":n;return e[n](i,t[o]),i}),{}),compileGettersByOption(e){var t={};for(var i in e){var n=i.match(/(\w*)Expr/);n&&(t[n[1]]=(0,r.vb)(e[n[0]]))}return t},compileSettersByOption(e){var t={};for(var i in e){var n=i.match(/(\w*)Expr/);n&&(t[n[1]]=(0,r.OM)(e[n[0]]))}return t},getStoreObject(e,t){var i=on.compileSettersByOption(e);return Object.keys(i).reduce(((e,n)=>("key"!==n&&i[n](e,t[n]),e)),{})},getInvertedData(e,t){var i={};if(e)for(var n=0;nvoid 0===e||null===e?[]:[e],getSelectionMode:e=>e?"single":"none",convertTreeToList(e,t){null!==e&&void 0!==e&&e.data&&null!==e&&void 0!==e&&e.visible&&t.push(e.data);for(var i=0;i<(null===(n=e.children)||void 0===n?void 0:n.length);i++){var n,o=e.children[i];on.convertTreeToList(o,t)}},getAllParentNodesKeys(e,t){var i;null!==e&&void 0!==e&&e.data&&t.push(e.key),null!==e&&void 0!==e&&null!==(i=e.parent)&&void 0!==i&&i.data&&on.getAllParentNodesKeys(e.parent,t)},getDefaultOptions:()=>({tasks:{dataSource:null,keyExpr:"id",parentIdExpr:"parentId",startExpr:"start",endExpr:"end",progressExpr:"progress",titleExpr:"title",colorExpr:"color"},dependencies:{dataSource:null,keyExpr:"id",predecessorIdExpr:"predecessorId",successorIdExpr:"successorId",typeExpr:"type"},resources:{dataSource:null,keyExpr:"id",textExpr:"text",colorExpr:"color"},resourceAssignments:{dataSource:null,keyExpr:"id",taskIdExpr:"taskId",resourceIdExpr:"resourceId"},columns:void 0,taskListWidth:300,showResources:!0,showDependencies:!0,taskTitlePosition:"inside",firstDayOfWeek:void 0,selectedRowKey:void 0,onSelectionChanged:null,onTaskClick:null,onTaskDblClick:null,onTaskInserting:null,onTaskInserted:null,onTaskDeleting:null,onTaskDeleted:null,onTaskUpdating:null,onTaskUpdated:null,onTaskMoving:null,onTaskEditDialogShowing:null,onDependencyInserting:null,onDependencyInserted:null,onDependencyDeleting:null,onDependencyDeleted:null,onResourceInserting:null,onResourceInserted:null,onResourceDeleting:null,onResourceDeleted:null,onResourceAssigning:null,onResourceAssigned:null,onResourceUnassigning:null,onResourceUnassigned:null,onCustomCommand:null,onContextMenuPreparing:null,allowSelection:!0,showRowLines:!0,stripLines:void 0,scaleType:"auto",scaleTypeRange:{min:"minutes",max:"years"},editing:{enabled:!1,allowTaskAdding:!0,allowTaskDeleting:!0,allowTaskUpdating:!0,allowDependencyAdding:!0,allowDependencyDeleting:!0,allowResourceAdding:!0,allowResourceDeleting:!0,allowResourceUpdating:!0,allowTaskResourceUpdating:!0},validation:{validateDependencies:!1,autoUpdateParentTasks:!1,enablePredecessorGap:!1},toolbar:null,contextMenu:{enabled:!0,items:void 0},taskTooltipContentTemplate:null,taskProgressTooltipContentTemplate:null,taskTimeTooltipContentTemplate:null,taskContentTemplate:null,rootValue:0,sorting:{ascendingText:y.Z.format("dxGantt-sortingAscendingText"),descendingText:y.Z.format("dxGantt-sortingDescendingText"),clearText:y.Z.format("dxGantt-sortingClearText"),mode:"single",showSortIndexes:!1},filterRow:void 0,headerFilter:void 0,rtlEnabled:!1})},rn="tasks";class an{constructor(e){this._gantt=e,this._mappingHelper=e._mappingHelper,this.cache=new nn}_getTaskCustomFields(){var e=this._gantt.option("columns"),t=e&&e.map((e=>e.dataField)),i=this._mappingHelper.getTaskMappedFieldNames();return t?t.filter((e=>i.indexOf(e)<0)):[]}_getCustomFieldsData(e){return this._getTaskCustomFields().reduce(((t,i)=>(e&&void 0!==e[i]&&(t[i]=e[i]),t)),{})}addCustomFieldsData(e,t){if(t){var i=this._gantt._tasksOption&&this._gantt._tasksOption._getItems(),n=(0,r.vb)(this._gantt.option("".concat(rn,".keyExpr"))),o=i&&i.filter((t=>n(t)===e))[0],a=this._getTaskCustomFields();if(o)for(var s=0;s{var o=i(t),r=n[o];if(r){var a={};for(var s in r)a[s]=Object.prototype.hasOwnProperty.call(t,s)?t[s]:r[s];e.push(a)}else e.push(t);return e}),[])}addCustomFieldsDataFromCache(e,t){this.cache.pullDataFromCache(e,t)}saveCustomFieldsDataToCache(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this._getCustomFieldsData(t);Object.keys(o).length>0&&this.cache.saveData(e,o,i?(e,t)=>{var i=this._gantt["_".concat(rn,"Option")];i&&t&&i.update(e,t,((e,t)=>{var o={};this.addCustomFieldsData(t,o),i._reloadDataSource().done((e=>{this._gantt._ganttTreeList.updateDataSource(null!==e&&void 0!==e?e:i._dataSource,!1,n)}));var r=this._gantt.option("selectedRowKey");this._gantt._ganttView._selectTask(r),this._gantt._actionsManager.raiseUpdatedAction(rn,o,t)}))}:null)}resetCustomFieldsDataCache(e){this.cache.resetCache(e)}}var sn=i(38192),ln=i(94381),dn=5;class un{constructor(e){this.init(e)}init(e){var{dragEnabled:t,handle:i,draggableElement:n,positionController:o}=e;this._positionController=o,this._draggableElement=n,this._handle=i,this._dragEnabled=t,this.unsubscribe(),t&&this.subscribe()}moveDown(e){this._moveTo(dn,0,e)}moveUp(e){this._moveTo(-dn,0,e)}moveLeft(e){this._moveTo(0,-dn,e)}moveRight(e){this._moveTo(0,dn,e)}subscribe(){var e=this._getEventNames();re.Z.on(this._handle,e.startEventName,(e=>{this._dragStartHandler(e)})),re.Z.on(this._handle,e.updateEventName,(e=>{this._dragUpdateHandler(e)})),re.Z.on(this._handle,e.endEventName,(e=>{this._dragEndHandler(e)}))}unsubscribe(){var e=this._getEventNames();re.Z.off(this._handle,e.startEventName),re.Z.off(this._handle,e.updateEventName),re.Z.off(this._handle,e.endEventName)}_getEventNames(){var e=(0,R.V4)(Jt.BL,"overlayDrag"),t=(0,R.V4)(Jt.pB,"overlayDrag"),i=(0,R.V4)(Jt.ut,"overlayDrag");return{startEventName:e,updateEventName:t,endEventName:i}}_dragStartHandler(e){var t=this._getAllowedOffsets();this._prevOffset={x:0,y:0},e.targetElements=[],e.maxTopOffset=t.top,e.maxBottomOffset=t.bottom,e.maxLeftOffset=t.left,e.maxRightOffset=t.right}_dragUpdateHandler(e){var t={top:e.offset.y-this._prevOffset.y,left:e.offset.x-this._prevOffset.x};this._moveByOffset(t),this._prevOffset=e.offset}_dragEndHandler(e){this._positionController.dragHandled(),this._positionController.detectVisualPositionChange(e)}_moveTo(e,t,i){if(this._dragEnabled){i.preventDefault(),i.stopPropagation();var n=this._fitOffsetIntoAllowedRange(e,t);this._moveByOffset(n),this._dragEndHandler(i)}}_fitOffsetIntoAllowedRange(e,t){var i=this._getAllowedOffsets();return{top:(0,ln.n$)(e,-i.top,i.bottom),left:(0,ln.n$)(t,-i.left,i.right)}}_getContainerDimensions(){var e=ke["default"].getDocument(),t=this._positionController.$dragResizeContainer.get(0),i=(0,n.Y_)(t),o=(0,n.zp)(t);return(0,l.FJ)(t)&&(o=Math.max(e.body.clientHeight,o),i=Math.max(e.body.clientWidth,i)),{width:i,height:o}}_getContainerPosition(){var e=this._positionController.$dragResizeContainer.get(0);return(0,l.FJ)(e)?{top:0,left:0}:(0,n.os)(e)}_getElementPosition(){return(0,n.os)(this._draggableElement)}_getInnerDelta(){var e=this._getContainerDimensions(),t=this._getElementDimensions();return{x:e.width-t.width,y:e.height-t.height}}_getOuterDelta(){var{width:e,height:t}=this._getElementDimensions(),i=this._positionController.outsideDragFactor;return{x:e*i,y:t*i}}_getFullDelta(){var e=this._getInnerDelta(),t=this._getOuterDelta();return{x:e.x+t.x,y:e.y+t.y}}_getElementDimensions(){return{width:this._draggableElement.offsetWidth,height:this._draggableElement.offsetHeight}}_getAllowedOffsets(){var e=this._getFullDelta(),t=e.y>=0&&e.x>=0;if(!t)return{top:0,bottom:0,left:0,right:0};var i=this._getElementPosition(),n=this._getContainerPosition(),o=this._getOuterDelta();return{top:i.top-n.top+o.y,bottom:-i.top+n.top+e.y,left:i.left-n.left+o.x,right:-i.left+n.left+e.x}}_moveByOffset(e){var t=he(this._draggableElement),i={left:t.left+e.left,top:t.top+e.top};ve(this._draggableElement,i)}}var cn=un,hn=i(39299),pn="dxResizable",fn="dx-resizable",gn="dx-resizable-resizing",mn="dx-resizable-handle",_n="dx-resizable-handle-top",vn="dx-resizable-handle-bottom",yn="dx-resizable-handle-left",Cn="dx-resizable-handle-right",bn="dx-resizable-handle-corner",xn=(0,R.V4)(Jt.BL,pn),wn=(0,R.V4)(Jt.pB,pn),Tn=(0,R.V4)(Jt.ut,pn),Sn={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},In=S.Z.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{handles:"all",step:"1",stepPrecision:"simple",area:void 0,minWidth:30,maxWidth:1/0,minHeight:30,maxHeight:1/0,onResizeStart:null,onResize:null,onResizeEnd:null,roundStepValue:!0,keepAspectRatio:!0})},_init:function(){this.callBase(),this.$element().addClass(fn)},_initMarkup:function(){this.callBase(),this._renderHandles()},_render:function(){this.callBase(),this._renderActions()},_renderActions:function(){this._resizeStartAction=this._createActionByOption("onResizeStart"),this._resizeEndAction=this._createActionByOption("onResizeEnd"),this._resizeAction=this._createActionByOption("onResize")},_renderHandles:function(){this._handles=[];var e=this.option("handles");if("none"!==e&&e){var t="all"===e?["top","bottom","left","right"]:e.split(" "),i={};(0,E.S6)(t,((e,t)=>{i[t]=!0,this._renderHandle(t)})),i.bottom&&i.right&&this._renderHandle("corner-bottom-right"),i.bottom&&i.left&&this._renderHandle("corner-bottom-left"),i.top&&i.right&&this._renderHandle("corner-top-right"),i.top&&i.left&&this._renderHandle("corner-top-left"),this._attachEventHandlers()}},_renderHandle:function(e){var t=(0,o.Z)("
").addClass(mn).addClass(mn+"-"+e).appendTo(this.$element());this._handles.push(t)},_attachEventHandlers:function(){if(!this.option("disabled")){var e={};e[xn]=this._dragStartHandler.bind(this),e[wn]=this._dragHandler.bind(this),e[Tn]=this._dragEndHandler.bind(this),this._handles.forEach((t=>{re.Z.on(t,e,{direction:"both",immediate:!0})}))}},_detachEventHandlers:function(){this._handles.forEach((e=>{re.Z.off(e)}))},_toggleEventHandlers:function(e){e?this._attachEventHandlers():this._detachEventHandlers()},_getElementSize:function(){var e=this.$element();return"border-box"===e.css("boxSizing")?{width:(0,n.Y_)(e),height:(0,n.zp)(e)}:{width:(0,n.dz)(e),height:(0,n.Cr)(e)}},_dragStartHandler:function(e){var t=this.$element();t.is(".dx-state-disabled, .dx-state-disabled *")?e.cancel=!0:(this._toggleResizingClass(!0),this._movingSides=this._getMovingSides(e),this._elementLocation=he(t),this._elementSize=this._getElementSize(),this._renderDragOffsets(e),this._resizeStartAction({event:e,width:this._elementSize.width,height:this._elementSize.height,handles:this._movingSides}),e.targetElements=null)},_toggleResizingClass:function(e){this.$element().toggleClass(gn,e)},_renderDragOffsets:function(e){var t=this._getArea();if(t){var i=(0,o.Z)(e.target).closest("."+mn),r=(0,n.Y_)(i),a=(0,n.zp)(i),s=i.offset(),l=t.offset,d=this._getAreaScrollOffset();e.maxLeftOffset=this._leftMaxOffset=s.left-l.left-d.scrollX,e.maxRightOffset=this._rightMaxOffset=l.left+t.width-s.left-r+d.scrollX,e.maxTopOffset=this._topMaxOffset=s.top-l.top-d.scrollY,e.maxBottomOffset=this._bottomMaxOffset=l.top+t.height-s.top-a+d.scrollY}},_getBorderWidth:function(e,t){if((0,l.FJ)(e.get(0)))return 0;var i=e.css(Sn[t]);return parseInt(i)||0},_proportionate:function(e,t){var i=this._elementSize,n="x"===e?i.width/i.height:i.height/i.width;return t*n},_getProportionalDelta:function(e){var{x:t,y:i}=e,n=this._proportionate("y",t);if(n>=i)return{x:t,y:n};var o=this._proportionate("x",i);return o>=t?{x:o,y:i}:{x:0,y:0}},_getDirectionName:function(e){var t=this._movingSides;return"x"===e?t.left?"left":"right":t.top?"top":"bottom"},_fitIntoArea:function(e,t){var i,n=this._getDirectionName(e);return Math.min(t,null!==(i=this["_".concat(n,"MaxOffset")])&&void 0!==i?i:1/0)},_fitDeltaProportionally:function(e){var t=(0,hn.Z)({},e),i=this._elementSize,{minWidth:n,minHeight:o,maxWidth:r,maxHeight:a}=this.option(),s=()=>i.width+t.x,l=()=>i.height+t.y,d=e=>t[e]===this._fitIntoArea(e,t[e]),u=()=>(0,ln.Z2)(s(),n,r)&&d("x"),c=()=>(0,ln.Z2)(l(),o,a)&&d("y");if(!u()){var h=this._fitIntoArea("x",(0,ln.n$)(s(),n,r)-i.width);t={x:h,y:this._proportionate("y",h)}}if(!c()){var p=this._fitIntoArea("y",(0,ln.n$)(l(),o,a)-i.height);t={x:this._proportionate("x",p),y:p}}return u()&&c()?t:{x:0,y:0}},_fitDelta:function(e){var{x:t,y:i}=e,n=this._elementSize,{minWidth:o,minHeight:r,maxWidth:a,maxHeight:s}=this.option();return{x:(0,ln.n$)(n.width+t,o,a)-n.width,y:(0,ln.n$)(n.height+i,r,s)-n.height}},_getDeltaByOffset:function(e){var t=this._movingSides,i=this._isCornerHandler(t)&&this.option("keepAspectRatio"),n={x:e.x*(t.left?-1:1),y:e.y*(t.top?-1:1)};if(i){var o=this._getProportionalDelta(n),r=this._fitDeltaProportionally(o);n=r}else{var a=this._fitDelta(n),s=this._roundByStep(a);n=s}return n},_updatePosition:function(e,t){var{width:i,height:n}=t,o=this._elementLocation,r=this._movingSides,a=this.$element(),s=this._getElementSize(),l=e.y*(r.top?-1:1)-((s.height||n)-n),d=e.x*(r.left?-1:1)-((s.width||i)-i);ve(a,{top:o.top+(r.top?l:0),left:o.left+(r.left?d:0)})},_dragHandler:function(e){var t=this._getOffset(e),i=this._getDeltaByOffset(t),n=this._updateDimensions(i);this._updatePosition(i,n),this._triggerResizeAction(e,n)},_updateDimensions:function(e){var t=e=>"px"===e.substring(e.length-2),i="strict"===this.option("stepPrecision"),n=this._elementSize,o=n.width+e.x,r=n.height+e.y,a=this.$element().get(0).style,s=e.x||i||t(a.width),l=e.y||i||t(a.height);return s&&this.option({width:o}),l&&this.option({height:r}),{width:s?o:n.width,height:l?r:n.height}},_triggerResizeAction:function(e,t){var{width:i,height:n}=t;this._resizeAction({event:e,width:this.option("width")||i,height:this.option("height")||n,handles:this._movingSides}),(0,Qt.U_)(this.$element())},_isCornerHandler:e=>0===Object.values(e).reduce(((e,t)=>e^t),0),_getOffset:function(e){var t=e.offset,i=this._movingSides;return i.left||i.right||(t.x=0),i.top||i.bottom||(t.y=0),t},_roundByStep:function(e){return"strict"===this.option("stepPrecision")?this._roundStrict(e):this._roundNotStrict(e)},_getSteps:function(){return(0,v.TG)(this.option("step"),!this.option("roundStepValue"))},_roundNotStrict:function(e){var t=this._getSteps();return{x:e.x-e.x%t.h,y:e.y-e.y%t.v}},_roundStrict:function(e){var t=this._movingSides,i={x:e.x*(t.left?-1:1),y:e.y*(t.top?-1:1)},n=this._getSteps(),o=this._elementLocation,r=this._elementSize,a=t.left?o.left:o.left+r.width,s=t.top?o.top:o.top+r.height,l=(a+i.x)%n.h,d=(s+i.y)%n.v,u=Math.sign||(e=>(e=+e,0===e||isNaN(e)?e:e>0?1:-1)),c=(e,t)=>(1+.2*u(t))%1*e,h=(e,t)=>Math.abs(e)<.2*t,p=i.x-l,f=i.y-d;l>c(n.h,i.x)&&(p+=n.h),d>c(n.v,i.y)&&(f+=n.v);var g=!t.left&&!t.right||h(i.x,n.h)?0:p,m=!t.top&&!t.bottom||h(i.y,n.v)?0:f;return{x:g*(t.left?-1:1),y:m*(t.top?-1:1)}},_getMovingSides:function(e){var t=(0,o.Z)(e.target),i=t.hasClass(bn+"-top-left"),n=t.hasClass(bn+"-top-right"),r=t.hasClass(bn+"-bottom-left"),a=t.hasClass(bn+"-bottom-right");return{top:t.hasClass(_n)||i||n,left:t.hasClass(yn)||i||r,bottom:t.hasClass(vn)||r||a,right:t.hasClass(Cn)||n||a}},_getArea:function(){var e=this.option("area");return(0,l.mf)(e)&&(e=e.call(this)),(0,l.PO)(e)?this._getAreaFromObject(e):this._getAreaFromElement(e)},_getAreaScrollOffset:function(){var e=this.option("area"),t=!(0,l.mf)(e)&&!(0,l.PO)(e),i={scrollY:0,scrollX:0};if(t){var n=(0,o.Z)(e)[0];(0,l.FJ)(n)&&(i.scrollX=n.pageXOffset,i.scrollY=n.pageYOffset)}return i},_getAreaFromObject:function(e){var t={width:e.right-e.left,height:e.bottom-e.top,offset:{left:e.left,top:e.top}};return this._correctAreaGeometry(t),t},_getAreaFromElement:function(e){var t,i=(0,o.Z)(e);return i.length&&(t={width:(0,n.Xt)(i),height:(0,n.fA)(i),offset:(0,a.l)({top:0,left:0},(0,l.FJ)(i[0])?{}:i.offset())},this._correctAreaGeometry(t,i)),t},_correctAreaGeometry:function(e,t){var i=t?this._getBorderWidth(t,"left"):0,o=t?this._getBorderWidth(t,"top"):0;e.offset.left+=i+this._getBorderWidth(this.$element(),"left"),e.offset.top+=o+this._getBorderWidth(this.$element(),"top"),e.width-=(0,n.Y_)(this.$element())-(0,n.Xt)(this.$element()),e.height-=(0,n.zp)(this.$element())-(0,n.fA)(this.$element())},_dragEndHandler:function(e){var t=this.$element();this._resizeEndAction({event:e,width:(0,n.Y_)(t),height:(0,n.zp)(t),handles:this._movingSides}),this._toggleResizingClass(!1)},_renderWidth:function(e){this.option("width",(0,ln.n$)(e,this.option("minWidth"),this.option("maxWidth")))},_renderHeight:function(e){this.option("height",(0,ln.n$)(e,this.option("minHeight"),this.option("maxHeight")))},_optionChanged:function(e){switch(e.name){case"disabled":this._toggleEventHandlers(!e.value),this.callBase(e);break;case"handles":this._invalidate();break;case"minWidth":case"maxWidth":(0,s.Ym)()&&this._renderWidth((0,n.Y_)(this.$element()));break;case"minHeight":case"maxHeight":(0,s.Ym)()&&this._renderHeight((0,n.zp)(this.$element()));break;case"onResize":case"onResizeStart":case"onResizeEnd":this._renderActions();break;case"area":case"stepPrecision":case"step":case"roundStepValue":case"keepAspectRatio":break;default:this.callBase(e)}},_clean:function(){this.$element().find("."+mn).remove()},_useTemplates:function(){return!1}});(0,C.Z)(pn,In);var En=In,Dn=i(79494),kn=i(46282),On={valid:"valid",invalid:"invalid",pending:"pending"};class An{constructor(){this.NAME="base"}defaultMessage(e){return y.Z.getFormatter("validation-".concat(this.NAME))(e)}defaultFormattedMessage(e){return y.Z.getFormatter("validation-".concat(this.NAME,"-formatted"))(e)}_isValueEmpty(e){return!Zn.required.validate(e,{})}validate(e,t){var i=Array.isArray(e)?e:[e],n=!0;return i.length?i.every((e=>(n=this._validate(e,t),n))):n=this._validate(null,t),n}}class Pn extends An{constructor(){super(),this.NAME="required"}_validate(e,t){return!!(0,l.$K)(e)&&(!1!==e&&(e=String(e),!t.trim&&(0,l.$K)(t.trim)||(e=e.trim()),""!==e))}}class Mn extends An{constructor(){super(),this.NAME="numeric"}_validate(e,t){return!(!1===t.ignoreEmptyValue||!this._isValueEmpty(e))||(t.useCultureSettings&&(0,l.HD)(e)?!isNaN(kn.Z.parse(e)):(0,l.kE)(e))}}class Rn extends An{constructor(){super(),this.NAME="range"}_validate(e,t){if(!1!==t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;var i=Zn.numeric.validate(e,t),n=(0,l.$K)(e)&&""!==e,o=i?parseFloat(e):n&&e.valueOf(),r=t.min,a=t.max;if(!i&&!(0,l.J_)(e)&&!n)return!1;if((0,l.$K)(r))return(0,l.$K)(a)?o>=r&&o<=a:o>=r;if((0,l.$K)(a))return o<=a;throw ae.Z.Error("E0101")}}class Bn extends An{constructor(){super(),this.NAME="stringLength"}_validate(e,t){var i;return e=String(null!==(i=e)&&void 0!==i?i:""),!t.trim&&(0,l.$K)(t.trim)||(e=e.trim()),!(!t.ignoreEmptyValue||!this._isValueEmpty(e))||Zn.range.validate(e.length,(0,a.l)({},t))}}class Vn extends An{constructor(){super(),this.NAME="custom"}validate(e,t){if(t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;var i=t.validator,n=i&&(0,l.mf)(i.option)&&i.option("dataGetter"),o=(0,l.mf)(n)&&n(),r={value:e,validator:i,rule:t};return o&&(0,a.l)(r,o),t.validationCallback(r)}}class Fn extends Vn{constructor(){super(),this.NAME="async"}validate(e,t){if((0,l.$K)(t.reevaluate)||(0,a.l)(t,{reevaluate:!0}),t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;var i=t.validator,n=i&&(0,l.mf)(i.option)&&i.option("dataGetter"),o=(0,l.mf)(n)&&n(),r={value:e,validator:i,rule:t};o&&(0,a.l)(r,o);var s=t.validationCallback(r);if(!(0,l.tI)(s))throw ae.Z.Error("E0103");return this._getWrappedPromise((0,ot.p4)(s).promise())}_getWrappedPromise(e){var t=new ot.BH;return e.then((function(e){t.resolve(e)}),(function(e){var i={isValid:!1};(0,l.$K)(e)&&((0,l.HD)(e)?i.message=e:(0,l.Kn)(e)&&(0,l.$K)(e.message)&&(0,l.HD)(e.message)&&(i.message=e.message)),t.resolve(i)})),t.promise()}}class Hn extends An{constructor(){super(),this.NAME="compare"}_validate(e,t){if(!t.comparisonTarget)throw ae.Z.Error("E0102");if(t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;(0,a.l)(t,{reevaluate:!0});var i=t.comparisonTarget(),n=t.comparisonType||"==";switch(n){case"==":return e==i;case"!=":return e!=i;case"===":return e===i;case"!==":return e!==i;case">":return e>i;case">=":return e>=i;case"<":return e{var n=i.validate();e.isValid=e.isValid&&n.isValid,n.brokenRules&&(e.brokenRules=e.brokenRules.concat(n.brokenRules)),e.validators.push(i),n.status===On.pending&&this._addPendingValidator(i),this._subscribeToChangeEvents(i)})),this._pendingValidators.length?e.status=On.pending:(e.status=e.isValid?On.valid:On.invalid,this._unsubscribeFromAllChangeEvents(),this._raiseValidatedEvent(e)),this._updateValidationInfo(e),(0,a.l)({},this._validationInfo.result)},_subscribeToChangeEvents(e){e.on("validating",this._onValidatorStatusChanged),e.on("validated",this._onValidatorStatusChanged)},_unsubscribeFromChangeEvents(e){e.off("validating",this._onValidatorStatusChanged),e.off("validated",this._onValidatorStatusChanged)},_unsubscribeFromAllChangeEvents(){(0,E.S6)(this.validators,((e,t)=>{this._unsubscribeFromChangeEvents(t)}))},_updateValidationInfo(e){this._validationInfo.result=e,e.status===On.pending&&(this._validationInfo.deferred||(this._validationInfo.deferred=new ot.BH,this._validationInfo.result.complete=this._validationInfo.deferred.promise()))},_addPendingValidator(e){var t=(0,v.h3)(this._pendingValidators,(function(t){return t===e}))[0];t||this._pendingValidators.push(e)},_removePendingValidator(e){var t=this._pendingValidators.indexOf(e);t>=0&&this._pendingValidators.splice(t,1)},_orderBrokenRules(e){var t=[];return(0,E.S6)(this.validators,(function(i,n){var o=(0,v.h3)(e,(function(e){return e.validator===n}));o.length&&(t=t.concat(o))})),t},_updateBrokenRules(e){if(this._validationInfo.result){var t=this._validationInfo.result.brokenRules,i=(0,v.h3)(t,(function(t){return t.validator!==e.validator}));e.brokenRules&&(t=i.concat(e.brokenRules)),this._validationInfo.result.brokenRules=this._orderBrokenRules(t)}},_onValidatorStatusChanged(e){e.status!==On.pending?this._resolveIfComplete(e):this._addPendingValidator(e.validator)},_resolveIfComplete(e){if(this._removePendingValidator(e.validator),this._updateBrokenRules(e),!this._pendingValidators.length){if(this._unsubscribeFromAllChangeEvents(),!this._validationInfo.result)return;this._validationInfo.result.status=0===this._validationInfo.result.brokenRules.length?On.valid:On.invalid,this._validationInfo.result.isValid=this._validationInfo.result.status===On.valid;var t=(0,a.l)({},this._validationInfo.result,{complete:null}),i=this._validationInfo.deferred;this._validationInfo.deferred=null,this._raiseValidatedEvent(t),i&&setTimeout((()=>{i.resolve(t)}))}},_raiseValidatedEvent(e){this._eventsStrategy.fireEvent("validated",[e])},_resetValidationInfo(){this._validationInfo={result:null,deferred:null}},_synchronizeValidationInfo(){this._validationInfo.result&&(this._validationInfo.result.validators=this.validators)},removeRegisteredValidator(e){var t=this.validators.indexOf(e);t>-1&&(this.validators.splice(t,1),this._synchronizeValidationInfo(),this._resolveIfComplete({validator:e}))},registerValidator(e){this.validators.includes(e)||(this.validators.push(e),this._synchronizeValidationInfo())},reset(){(0,E.S6)(this.validators,(function(e,t){t.reset()})),this._pendingValidators=[],this._resetValidationInfo()},on(e,t){return this._eventsStrategy.on(e,t),this},off(e,t){return this._eventsStrategy.off(e,t),this}}),Wn={groups:[],getGroupConfig(e){var t=(0,v.h3)(this.groups,(function(t){return t.group===e}));if(t.length)return t[0]},findGroup(e,t){var i,n,o=null===(i=e.data())||void 0===i||null===(n=i.dxComponents)||void 0===n?void 0:n.includes("dxValidationGroup"),r=o&&e.dxValidationGroup("instance");if(r)return r;var a=e.parents(".dx-validationgroup").first();return a.length?a.dxValidationGroup("instance"):t},initGroups(){this.groups=[],this.addGroup()},addGroup(e){var t=this.getGroupConfig(e);return t||(t=new $n(e),this.groups.push(t)),t},removeGroup(e){var t=this.getGroupConfig(e),i=this.groups.indexOf(t);return i>-1&&this.groups.splice(i,1),t},_setDefaultMessage(e){var{rule:t,validator:i,name:n}=e;(0,l.$K)(t.message)||(i.defaultFormattedMessage&&(0,l.$K)(n)?t.message=i.defaultFormattedMessage(n):t.message=i.defaultMessage())},_addBrokenRule(e){var{result:t,rule:i}=e;t.brokenRule||(t.brokenRule=i),t.brokenRules||(t.brokenRules=[]),t.brokenRules.push(i)},validate(e,t,i){var n,o={name:i,value:e,brokenRule:null,brokenRules:null,isValid:!0,validationRules:t,pendingRules:null,status:On.valid,complete:null},r=null===t||void 0===t||null===(n=t[0])||void 0===n?void 0:n.validator,a=[];return(0,E.S6)(t||[],((t,n)=>{var r,s=Zn[n.type];if(!s)throw ae.Z.Error("E0100");return(0,l.$K)(n.isValid)&&n.value===e&&!n.reevaluate?!!n.isValid||(o.isValid=!1,this._addBrokenRule({result:o,rule:n}),!1):(n.value=e,"async"===n.type?(a.push({rule:n,ruleValidator:s}),!0):(r=s.validate(e,n),n.isValid=r,r||(o.isValid=!1,this._setDefaultMessage({rule:n,validator:s,name:i}),this._addBrokenRule({result:o,rule:n})),!!n.isValid&&void 0))})),o.isValid&&!o.brokenRules&&a.length&&(o=this._validateAsyncRules({value:e,items:a,result:o,name:i})),this._synchronizeGroupValidationInfo(r,o),o.status=o.pendingRules?On.pending:o.isValid?On.valid:On.invalid,o},_synchronizeGroupValidationInfo(e,t){var i;if(e){var n=Wn.getGroupConfig(e._validationGroup);n._updateBrokenRules.call(n,{validator:e,brokenRules:null!==(i=t.brokenRules)&&void 0!==i?i:[]})}},_validateAsyncRules(e){var{result:t,value:i,items:n,name:o}=e,r=[];return(0,E.S6)(n,((e,n)=>{var a=n.ruleValidator.validate(i,n.rule);if((0,l.tI)(a)){t.pendingRules||(t.pendingRules=[]),t.pendingRules.push(n.rule);var s=a.then((e=>{var t=this._getPatchedRuleResult(e);return this._updateRuleConfig({rule:n.rule,ruleResult:t,validator:n.ruleValidator,name:o}),t}));r.push(s)}else this._updateRuleConfig({rule:n.rule,ruleResult:this._getPatchedRuleResult(a),validator:n.ruleValidator,name:o})})),r.length&&(t.complete=Promise.all(r).then((e=>this._getAsyncRulesResult({result:t,values:e})))),t},_updateRuleConfig(e){var{rule:t,ruleResult:i,validator:n,name:o}=e;t.isValid=i.isValid,i.isValid||((0,l.$K)(i.message)&&(0,l.HD)(i.message)&&i.message.length?t.message=i.message:this._setDefaultMessage({rule:t,validator:n,name:o}))},_getPatchedRuleResult(e){var t;return(0,l.Kn)(e)?(t=(0,a.l)({},e),(0,l.$K)(t.isValid)||(t.isValid=!0)):t={isValid:!(0,l.jn)(e)||e},t},_getAsyncRulesResult(e){var{values:t,result:i}=e;return(0,E.S6)(t,((e,t)=>{if(!1===t.isValid){i.isValid=t.isValid;var n=i.pendingRules[e];this._addBrokenRule({result:i,rule:n})}})),i.pendingRules=null,i.complete=null,i.status=i.isValid?On.valid:On.invalid,i},registerValidatorInGroup(e,t){var i=Wn.addGroup(e);i.registerValidator.call(i,t)},_shouldRemoveGroup(e,t){var i=void 0===e,n=e&&"dxValidationGroup"===e.NAME;return!i&&!n&&!t.length},removeRegisteredValidator(e,t){var i=Wn.getGroupConfig(e);if(i){i.removeRegisteredValidator.call(i,t);var n=i.validators;this._shouldRemoveGroup(e,n)&&this.removeGroup(e)}},initValidationOptions(e){var t={};return e&&["isValid","validationStatus","validationError","validationErrors"].forEach((i=>{i in e&&(0,a.l)(t,this.synchronizeValidationOptions({name:i,value:e[i]},e))})),t},synchronizeValidationOptions(e,t){var{name:i,value:n}=e;switch(i){case"validationStatus":var o=n===On.valid||n===On.pending;return t.isValid!==o?{isValid:o}:{};case"isValid":var{validationStatus:r}=t,a=r;return n&&r===On.invalid?a=On.valid:n||r===On.invalid||(a=On.invalid),a!==r?{validationStatus:a}:{};case"validationErrors":var s=n&&n.length?n[0]:null;return t.validationError!==s?{validationError:s}:{};case"validationError":var{validationErrors:l}=t;if(!n&&l)return{validationErrors:null};if(n&&!l)return{validationErrors:[n]};if(n&&l&&n!==l[0])return l[0]=n,{validationErrors:l.slice()}}return{}},validateGroup(e){var t=Wn.getGroupConfig(e);if(!t)throw ae.Z.Error("E0110");return t.validate()},resetGroup(e){var t=Wn.getGroupConfig(e);if(!t)throw ae.Z.Error("E0110");return t.reset()}};Wn.initGroups();var Kn=Wn,zn=Array.isArray;function jn(e){var t=typeof e;return"string"===t||"number"===t}function Un(e){return void 0===e||null===e}function Gn(e){return null===e||!1===e||!0===e||void 0===e}function qn(e){return"function"===typeof e}function Yn(e){return"string"===typeof e}function Xn(e){return"number"===typeof e}function Jn(e){return null===e}function Qn(e){return void 0===e}function eo(e,t){var i={};if(e)for(var n in e)i[n]=e[n];if(t)for(var o in t)i[o]=t[o];return i}function to(e){return!Jn(e)&&"object"===typeof e}var io={},no="$F";function oo(e){return e.substr(2).toLowerCase()}function ro(e,t){e.appendChild(t)}function ao(e,t,i){Jn(i)?ro(e,t):e.insertBefore(t,i)}function so(e,t){return t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}function lo(e,t,i){e.replaceChild(t,i)}function uo(e,t){e.removeChild(t)}function co(e){for(var t=0;t0,d=Jn(s),u=Yn(s)&&s[0]===wo;l||d||u?(i=i||t.slice(0,r),(l||u)&&(a=Ro(a)),(d||u)&&(a.key=wo+r),i.push(a)):i&&i.push(a),a.flags|=65536}}i=i||t,n=0===i.length?1:8}else i=t,i.flags|=65536,81920&t.flags&&(i=Ro(t)),n=2;return e.children=i,e.childFlags=n,e}function Lo(e){return Gn(e)||jn(e)?Oo(e,null):zn(e)?Ao(e,0,null):16384&e.flags?Ro(e):e}var No="http://www.w3.org/1999/xlink",Zo="http://www.w3.org/XML/1998/namespace",$o={"xlink:actuate":No,"xlink:arcrole":No,"xlink:href":No,"xlink:role":No,"xlink:show":No,"xlink:title":No,"xlink:type":No,"xml:base":Zo,"xml:lang":Zo,"xml:space":Zo};function Wo(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var Ko=Wo(0),zo=Wo(null),jo=Wo(!0);function Uo(e,t){var i=t.$EV;return i||(i=t.$EV=Wo(null)),i[e]||1===++Ko[e]&&(zo[e]=or(e)),i}function Go(e,t){var i=t.$EV;i&&i[e]&&(0===--Ko[e]&&(document.removeEventListener(oo(e),zo[e]),zo[e]=null),i[e]=null)}function qo(e,t,i,n){if(qn(i))Uo(e,n)[e]=i;else if(to(i)){if(Co(t,i))return;Uo(e,n)[e]=i}else Go(e,n)}function Yo(e){return qn(e.composedPath)?e.composedPath()[0]:e.target}function Xo(e,t,i,n){var o=Yo(e);do{if(t&&o.disabled)return;var r=o.$EV;if(r){var a=r[i];if(a&&(n.dom=o,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}o=o.parentNode}while(!Jn(o))}function Jo(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function Qo(){return this.defaultPrevented}function er(){return this.cancelBubble}function tr(e){var t={dom:document};return e.isDefaultPrevented=Qo,e.isPropagationStopped=er,e.stopPropagation=Jo,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return t.dom}}),t}function ir(e){return function(t){0===t.button?Xo(t,!0,e,tr(t)):t.stopPropagation()}}function nr(e){return function(t){Xo(t,!1,e,tr(t))}}function or(e){var t="onClick"===e||"onDblClick"===e?ir(e):nr(e);return document.addEventListener(oo(e),t),t}function rr(e,t){var i=document.createElement("i");return i.innerHTML=t,i.innerHTML===e.innerHTML}function ar(e,t,i){if(e[t]){var n=e[t];n.event?n.event(n.data,i):n(i)}else{var o=t.toLowerCase();e[o]&&e[o](i)}}function sr(e,t){var i=function(i){var n=this.$V;if(n){var o=n.props||io,r=n.dom;if(Yn(e))ar(o,e,i);else for(var a=0;a-1&&t.options[r]&&(s=t.options[r].value),i&&Un(s)&&(s=e.defaultValue),gr(n,s)}}var Cr,br,xr=sr("onInput",Sr),wr=sr("onChange");function Tr(e,t){lr(e,"input",xr),t.onChange&&lr(e,"change",wr)}function Sr(e,t,i){var n=e.value,o=t.value;if(Un(n)){if(i){var r=e.defaultValue;Un(r)||r===o||(t.defaultValue=r,t.value=r)}}else o!==n&&(t.defaultValue=n,t.value=n)}function Ir(e,t,i,n,o,r){64&e?fr(n,i):256&e?yr(n,i,o,t):128&e&&Sr(n,i,o),r&&(i.$V=t)}function Er(e,t,i){64&e?pr(t,i):256&e?vr(t):128&e&&Tr(t,i)}function Dr(e){return e.type&&dr(e.type)?!Un(e.checked):!Un(e.value)}function kr(){return{current:null}}function Or(e){e&&!xo(e,null)&&e.current&&(e.current=null)}function Ar(e,t,i){e&&(qn(e)||void 0!==e.current)&&i.push((function(){xo(e,t)||void 0===e.current||(e.current=t)}))}function Pr(e,t){Mr(e),fo(e,t)}function Mr(e){var t,i=e.flags,n=e.children;if(481&i){t=e.ref;var o=e.props;Or(t);var r=e.childFlags;if(!Jn(o))for(var a=Object.keys(o),s=0,l=a.length;s0;for(var s in a&&(r=Dr(i),r&&Er(t,n,i)),i)Zr(s,null,i[s],n,o,r,null);a&&Ir(t,e,n,i,!0,r)}function Wr(e,t,i){var n=Lo(e.render(t,e.state,i)),o=i;return qn(e.getChildContext)&&(o=eo(i,e.getChildContext())),e.$CX=o,n}function Kr(e,t,i,n,o,r){var a=new t(i,n),s=a.$N=Boolean(t.getDerivedStateFromProps||a.getSnapshotBeforeUpdate);if(a.$SVG=o,a.$L=r,e.children=a,a.$BS=!1,a.context=n,a.props===io&&(a.props=i),s)a.state=mo(a,i,a.state);else if(qn(a.componentWillMount)){a.$BR=!0,a.componentWillMount();var l=a.$PS;if(!Jn(l)){var d=a.state;if(Jn(d))a.state=l;else for(var u in l)d[u]=l[u];a.$PS=null}a.$BR=!1}return a.$LI=Wr(a,i,n),a}function zr(e,t){var i=e.props||io;return 32768&e.flags?e.type.render(i,e.ref,t):e.type(i,t)}function jr(e,t,i,n,o,r){var a=e.flags|=16384;481&a?Yr(e,t,i,n,o,r):4&a?Jr(e,t,i,n,o,r):8&a?(Qr(e,t,i,n,o,r),na(e,r)):512&a||16&a?qr(e,t,o):8192&a?Gr(e,i,t,n,o,r):1024&a&&Ur(e,i,t,o,r)}function Ur(e,t,i,n,o){jr(e.children,e.ref,t,!1,null,o);var r=Bo();qr(r,i,n),e.dom=r.dom}function Gr(e,t,i,n,o,r){var a=e.children,s=e.childFlags;12&s&&0===a.length&&(s=e.childFlags=2,a=e.children=Bo()),2===s?jr(a,i,t,n,o,r):Xr(a,i,t,n,o,r)}function qr(e,t,i){var n=e.dom=document.createTextNode(e.children);Jn(t)||ao(t,n,i)}function Yr(e,t,i,n,o,r){var a=e.flags,s=e.props,l=e.className,d=e.childFlags,u=e.dom=so(e.type,n=n||(32&a)>0),c=e.children;if(Un(l)||""===l||(n?u.setAttribute("class",l):u.className=l),16===d)yo(u,c);else if(1!==d){var h=n&&"foreignObject"!==e.type;2===d?(16384&c.flags&&(e.children=c=Ro(c)),jr(c,u,i,h,null,r)):8!==d&&4!==d||Xr(c,u,i,h,null,r)}Jn(t)||ao(t,u,o),Jn(s)||$r(e,a,s,u,n),Ar(e.ref,u,r)}function Xr(e,t,i,n,o,r){for(var a=0;ah)&&(u=po(a[h-1],!1).nextSibling)}ha(l,d,a,s,i,n,o,u,e,r)}function da(e,t,i,n){var o=e.ref,r=t.ref,a=t.children;if(ha(e.childFlags,t.childFlags,e.children,a,o,i,!1,null,e,n),t.dom=e.dom,o!==r&&!Gn(a)){var s=a.dom;uo(o,s),ro(r,s)}}function ua(e,t,i,n,o,r){var a,s=t.dom=e.dom,l=e.props,d=t.props,u=!1,c=!1;if(n=n||(32&o)>0,l!==d){var h=l||io;if(a=d||io,a!==io)for(var p in u=(448&o)>0,u&&(c=Dr(a)),a){var f=h[p],g=a[p];f!==g&&Zr(p,f,g,s,n,c,e)}if(h!==io)for(var m in h)Un(a[m])&&!Un(h[m])&&Zr(m,h[m],null,s,n,c,e)}var _=t.children,v=t.className;e.className!==v&&(Un(v)?s.removeAttribute("class"):n?s.setAttribute("class",v):s.className=v),4096&o?sa(s,_):ha(e.childFlags,t.childFlags,e.children,_,s,i,n&&"foreignObject"!==t.type,null,e,r),u&&Ir(o,t,s,a,!1,c);var y=t.ref,C=e.ref;C!==y&&(Or(C),Ar(y,s,r))}function ca(e,t,i,n,o,r){Mr(e),Xr(t,i,n,o,po(e,!0),r),fo(e,i)}function ha(e,t,i,n,o,r,a,s,l,d){switch(e){case 2:switch(t){case 2:ra(i,n,o,r,a,s,d);break;case 1:Pr(i,o);break;case 16:Mr(i),yo(o,n);break;default:ca(i,n,o,r,a,d);break}break;case 1:switch(t){case 2:jr(n,o,r,a,s,d);break;case 1:break;case 16:yo(o,n);break;default:Xr(n,o,r,a,s,d);break}break;case 16:switch(t){case 16:aa(i,n,o);break;case 2:Br(o),jr(n,o,r,a,s,d);break;case 1:Br(o);break;default:Br(o),Xr(n,o,r,a,s,d);break}break;default:switch(t){case 16:Rr(i),yo(o,n);break;case 2:Vr(o,l,i),jr(n,o,r,a,s,d);break;case 1:Vr(o,l,i);break;default:var u=0|i.length,c=0|n.length;0===u?c>0&&Xr(n,o,r,a,s,d):0===c?Vr(o,l,i):8===t&&8===e?ya(i,n,o,r,a,u,c,s,l,d):va(i,n,o,r,a,u,c,s,d);break}break}}function pa(e,t,i,n,o){o.push((function(){e.componentDidUpdate(t,i,n)}))}function fa(e,t,i,n,o,r,a,s,l){var d=e.state,u=e.props,c=Boolean(e.$N),h=qn(e.shouldComponentUpdate);if(c&&(t=mo(e,i,t!==d?eo(d,t):t)),a||!h||h&&e.shouldComponentUpdate(i,t,o)){!c&&qn(e.componentWillUpdate)&&e.componentWillUpdate(i,t,o),e.props=i,e.state=t,e.context=o;var p=null,f=Wr(e,i,o);c&&qn(e.getSnapshotBeforeUpdate)&&(p=e.getSnapshotBeforeUpdate(u,d)),ra(e.$LI,f,n,e.$CX,r,s,l),e.$LI=f,qn(e.componentDidUpdate)&&pa(e,u,d,p,l)}else e.props=i,e.state=t,e.context=o}function ga(e,t,i,n,o,r,a){var s=t.children=e.children;if(!Jn(s)){s.$L=a;var l=t.props||io,d=t.ref,u=e.ref,c=s.state;if(!s.$N){if(qn(s.componentWillReceiveProps)){if(s.$BR=!0,s.componentWillReceiveProps(l,n),s.$UN)return;s.$BR=!1}Jn(s.$PS)||(c=eo(c,s.$PS),s.$PS=null)}fa(s,c,l,i,n,o,!1,r,a),u!==d&&(Or(u),Ar(d,s,a))}}function ma(e,t,i,n,o,r,a){var s=!0,l=t.props||io,d=t.ref,u=e.props,c=!Un(d),h=e.children;if(c&&qn(d.onComponentShouldUpdate)&&(s=d.onComponentShouldUpdate(u,l)),!1!==s){c&&qn(d.onComponentWillUpdate)&&d.onComponentWillUpdate(u,l);var p=Lo(zr(t,n));ra(h,p,i,n,o,r,a),t.children=p,c&&qn(d.onComponentDidUpdate)&&d.onComponentDidUpdate(u,l)}else t.children=h}function _a(e,t){var i=t.children,n=t.dom=e.dom;i!==e.children&&(n.nodeValue=i)}function va(e,t,i,n,o,r,a,s,l){for(var d,u,c=r>a?a:r,h=0;ha)for(h=c;hh||f>p)break e;g=e[f],m=t[f]}g=e[h],m=t[p];while(g.key===m.key){if(16384&m.flags&&(t[p]=m=Ro(m)),ra(g,m,i,n,o,s,d),e[h]=m,h--,p--,f>h||f>p)break e;g=e[h],m=t[p]}}if(f>h){if(f<=p){u=p+1,c=up)while(f<=h)Pr(e[f++],i);else Ca(e,t,n,r,a,h,p,f,i,o,s,l,d)}function Ca(e,t,i,n,o,r,a,s,l,d,u,c,h){var p,f,g,m=0,_=s,v=s,y=r-s+1,C=a-s+1,b=new Int32Array(C+1),x=y===n,w=!1,T=0,S=0;if(o<4||(y|C)<32)for(m=_;m<=r;++m)if(p=e[m],Ss?w=!0:T=s,16384&f.flags&&(t[s]=f=Ro(f)),ra(p,f,l,i,d,u,h),++S;break}!x&&s>a&&Pr(p,l)}else x||Pr(p,l);else{var I={};for(m=v;m<=a;++m)I[t[m].key]=m;for(m=_;m<=r;++m)if(p=e[m],S_)Pr(e[_++],l)}b[s-v]=m+1,T>s?w=!0:T=s,f=t[s],16384&f.flags&&(t[s]=f=Ro(f)),ra(p,f,l,i,d,u,h),++S}else x||Pr(p,l);else x||Pr(p,l)}if(x)Vr(l,c,e),Xr(t,l,i,d,u,h);else if(w){var E=xa(b);for(s=E.length-1,m=C-1;m>=0;m--)0===b[m]?(T=m+v,f=t[T],16384&f.flags&&(t[T]=f=Ro(f)),g=T+1,jr(f,l,i,d,g=0;m--)0===b[m]&&(T=m+v,f=t[T],16384&f.flags&&(t[T]=f=Ro(f)),g=T+1,jr(f,l,i,d,gba&&(ba=l,Cr=new Int32Array(l),br=new Int32Array(l));i>1,e[Cr[s]]0&&(br[i]=Cr[r-1]),Cr[r]=i)}r=o+1;var d=new Int32Array(r);a=Cr[r-1];while(r-- >0)d[r]=a,a=br[a],Cr[r]=0;return d}var wa="undefined"!==typeof document;function Ta(e,t,i,n){var o=[],r=t.$V;_o.v=!0,Un(r)?Un(e)||(16384&e.flags&&(e=Ro(e)),jr(e,t,n,!1,null,o),t.$V=e,r=e):Un(e)?(Pr(r,t),t.$V=null):(16384&e.flags&&(e=Ro(e)),ra(r,e,t,n,!1,null,o),r=t.$V=e),co(o),_o.v=!1,qn(i)&&i(),qn(vo.renderComplete)&&vo.renderComplete(r,t)}function Sa(e,t,i,n){void 0===i&&(i=null),void 0===n&&(n=io),Ta(e,t,i,n)}wa&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Ia=[],Ea="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},Da=!1;function ka(e,t,i,n){var o=e.$PS;if(qn(t)&&(t=t(o?eo(e.state,o):e.state,e.props,e.context)),Un(o))e.$PS=t;else for(var r in t)o[r]=t[r];if(e.$BR)qn(i)&&e.$L.push(i.bind(e));else{if(!_o.v&&0===Ia.length)return Pa(e,n),void(qn(i)&&i.call(e));if(-1===Ia.indexOf(e)&&Ia.push(e),n&&(e.$F=!0),Da||(Da=!0,Ea(Aa)),qn(i)){var a=e.$QU;a||(a=e.$QU=[]),a.push(i)}}}function Oa(e){for(var t=e.$QU,i=0;ie()))}}},Va=(e,t)=>{const i=e instanceof Object&&t instanceof Object;if(!i)return e===t;const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;const r=n.some((i=>e[i]!==t[i]));return!r};class Fa extends Ma{constructor(){super(...arguments),this._pendingContext=this.context}componentWillReceiveProps(e,t){this._pendingContext=null!==t&&void 0!==t?t:{}}shouldComponentUpdate(e,t){return!Va(this.props,e)||!Va(this.state,t)||!Va(this.context,this._pendingContext)}}class Ha extends Fa{constructor(){super(...arguments),this._effects=[]}createEffects(){return[]}updateEffects(){}componentWillMount(){Ba.lock()}componentWillUpdate(e,t,i){Ba.lock()}componentDidMount(){Ba.callbacks.push((()=>{this._effects=this.createEffects()})),Ba.callEffects()}componentDidUpdate(){Ba.callbacks.push((()=>this.updateEffects())),Ba.callEffects()}destroyEffects(){this._effects.forEach((e=>e.dispose()))}componentWillUnmount(){this.destroyEffects()}}class La extends Ha{constructor(){super(...arguments),this.vDomElement=null}vDomUpdateClasses(){const e=this.vDomElement,t=e.className.length?e.className.split(" "):[],i=t.filter((t=>e.dxClasses.previous.indexOf(t)<0)),n=e.dxClasses.previous.filter((e=>t.indexOf(e)<0));i.forEach((t=>{const i=e.dxClasses.removed.indexOf(t);i>-1?e.dxClasses.removed.splice(i,1):e.dxClasses.added.push(t)})),n.forEach((t=>{const i=e.dxClasses.added.indexOf(t);i>-1?e.dxClasses.added.splice(i,1):e.dxClasses.removed.push(t)}))}componentDidMount(){const e=po(this.$LI,!0);this.vDomElement=e,super.componentDidMount(),e.dxClasses=e.dxClasses||{removed:[],added:[],previous:[]},e.dxClasses.previous=(null===e||void 0===e?void 0:e.className.length)?e.className.split(" "):[]}componentDidUpdate(){super.componentDidUpdate();const e=this.vDomElement;null!==e&&(e.dxClasses.added.forEach((t=>e.classList.add(t))),e.dxClasses.removed.forEach((t=>e.classList.remove(t))),e.dxClasses.previous=e.className.length?e.className.split(" "):[])}shouldComponentUpdate(e,t){const i=super.shouldComponentUpdate(e,t);return i&&this.vDomUpdateClasses(),i}}let Na=0;const Za=function(e){const t=Na++;return{id:t,defaultValue:e,Provider:class extends Ma{getChildContext(){return Object.assign(Object.assign({},this.context),{[t]:this.props.value||e})}render(){return this.props.children}}}};class $a{constructor(e,t){this.dependency=t,this.effect=e,this.destroy=e()}update(e){const t=this.dependency;e&&(this.dependency=e),e&&!e.some(((e,i)=>t[i]!==e))||(this.dispose(),this.destroy=this.effect())}dispose(){this.destroy&&this.destroy()}}const Wa=()=>new $a((()=>{Aa()}),[]),Ka="a runtime error occured! Use Inferno in development environment to find the error.";function za(e){return void 0===e||null===e}function ja(e){return null===e||!1===e||!0===e||void 0===e}function Ua(e){return"function"===typeof e}function Ga(e){return null===e}function qa(e){throw e||(e=Ka),new Error(`Inferno Error: ${e}`)}function Ya(e,t){const i=document.createElement("i");return i.innerHTML=t,i.innerHTML===e.innerHTML}function Xa(e){let t,i;while(e){if(t=e.flags,2033&t)return e.dom;i=e.children,e=8192&t?2===e.childFlags?i:i[i.length-1]:4&t?i.$LI:i}return null}function Ja(e,t){return Boolean(t&&t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html&&Ya(e,t.dangerouslySetInnerHTML.__html))}function Qa(e,t,i,n,o,r,a){const s=e.type,l=e.ref,d=e.props||io;let u;if(r){const r=Kr(e,s,d,n,o,a),c=r.$LI;u=os(c,t,i,r.$CX,o,a),ta(l,r,a)}else{const r=Lo(zr(e,n));u=os(r,t,i,n,o,a),e.children=r,na(e,a)}return u}function es(e,t,i,n,o,r){const a=e.childFlags,s=e.children,l=e.props,d=e.flags;if(1!==a){if(2===a)Ga(i)?jr(s,t,n,o,null,r):(i=os(s,t,i,n,o,r),i=i?i.nextSibling:null);else if(16===a)Ga(i)?t.appendChild(document.createTextNode(s)):1!==t.childNodes.length||3!==i.nodeType?t.textContent=s:i.nodeValue!==s&&(i.nodeValue=s),i=null;else if(12&a){let e=!1;for(let a=0,l=s.length;a0?jr(l,t,n,o,i,r):(i=os(l,t,i,n,o,r),i=i?i.nextSibling:null),e=(16&l.flags)>0}}if(0===(8192&d)){let e=null;while(i)e=i.nextSibling,t.removeChild(i),i=e}}else Ga(t.firstChild)||Ja(t,l)||(t.textContent="",448&d&&(t.defaultValue=""))}function ts(e,t,i,n,o,r){const a=e.props,s=e.className,l=e.flags,d=e.ref;return o=o||(32&l)>0,1!==i.nodeType?(Yr(e,null,n,o,null,r),t.replaceChild(e.dom,i)):(e.dom=i,es(e,i,i.firstChild,n,o,r),Ga(a)||$r(e,l,a,i,o),za(s)?""!==i.className&&i.removeAttribute("class"):o?i.setAttribute("class",s):i.className=s,Ar(d,i,r)),e.dom}function is(e,t,i){if(3!==i.nodeType)t.replaceChild(e.dom=document.createTextNode(e.children),i);else{const t=e.children;i.nodeValue!==t&&(i.nodeValue=t),e.dom=i}return e.dom}function ns(e,t,i,n,o,r){const a=e.children;return 2===e.childFlags?(is(a,t,i),a.dom):(es(e,t,i,n,o,r),Xa(a[a.length-1]))}function os(e,t,i,n,o,r){const a=e.flags|=16384;return 14&a?Qa(e,t,i,n,o,(4&a)>0,r):481&a?ts(e,t,i,n,o,r):16&a?is(e,t,i):512&a?e.dom=i:8192&a?ns(e,t,i,n,o,r):(qa(),null)}function rs(e,t,i){let n=t.firstChild;if(Ga(n))Sa(e,t,i);else{const i=[];ja(e)||(n=os(e,t,n,{},!1,i));while(n&&(n=n.nextSibling))t.removeChild(n);if(i.length>0){let e;while(void 0!==(e=i.shift()))e()}}t.$V=e,Ua(i)&&i()}function as(e){return void 0===e||null===e}function ss(e){return"string"===typeof e}function ls(e){return void 0===e}var ds={onComponentDidMount:1,onComponentDidUpdate:1,onComponentShouldUpdate:1,onComponentWillMount:1,onComponentWillUnmount:1,onComponentWillUpdate:1};function us(e,t,i){var n,o,r=arguments,a=null,s=null,l=null,d=0,u=arguments.length-2;if(1===u)n=i;else if(u>1){n=[];while(u-- >0)n[u]=r[u+2]}if(!ss(e)){if(d=2,ls(n)||(t||(t={}),t.children=n),!as(t))for(var c in o={},t)"key"===c?s=t.key:"ref"===c?a=t.ref:1===ds[c]?(a||(a={}),a[c]=t[c]):o[c]=t[c];return ko(d,e,o,s,a)}if(d=Fo(e),!as(t))for(var h in o={},t)"className"===h||"class"===h?l=t[h]:"key"===h?s=t.key:"children"===h&&ls(n)?n=t.children:"ref"===h?a=t.ref:("contenteditable"===h&&(d|=4096),o[h]=t[h]);return 8192&d?Ao(1===u?[n]:n,0,s):So(d,e,l,n,0,o,s,a)}const cs=e=>{var t,i;return(null===(t=e.container)||void 0===t?void 0:t.get(0))||(null===(i=e.item)||void 0===i?void 0:i.get(0))};function hs(e,t,i){setTimeout((()=>{Sa(us(e,t),cs(t))}),0)}const ps=(e,t,i)=>{const n=t[e];return!!n&&"string"!==typeof n},fs=new Set(["animationIterationCount","borderImageOutset","borderImageSlice","border-imageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","fillOpacity","flex","flexGrow","flexNegative","flexOrder","flexPositive","flexShrink","floodOpacity","fontWeight","gridColumn","gridRow","lineClamp","lineHeight","opacity","order","orphans","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","zIndex","zoom"]),gs=e=>"number"===typeof e||!Number.isNaN(Number(e)),ms=(e,t)=>fs.has(e)?t:`${t}px`,_s=/[A-Z]/g,vs=e=>e.replace(_s,"-$&").toLowerCase();function ys(e){if(e instanceof Object)return Object.entries(e).reduce(((e,[t,i])=>(e[vs(t)]=gs(i)?ms(t,i):i,e)),{})}var Cs=i(27154),bs=e=>{var{parentNode:t}=e;t&&((0,le.nK)(e),t.$V=e.$V,Sa(null,t),t.appendChild(e),e.innerHTML="",delete t.$V),delete e.$V},xs=(0,Cs.Z)({createElement:(e,t)=>us(e,t),remove:bs,onAfterRender:()=>{Ba.callEffects()},onPreRender:()=>{Ba.lock()},render:(e,t,i,n)=>{if(n)Sa(us(e,t),i);else{var{parentNode:o}=i,r=null===i||void 0===i?void 0:i.nextSibling,a=ke["default"].createElement("div");a.appendChild(i);var s=ke["default"].createDocumentFragment().appendChild(a),l=!!i.$V;l&&bs(i),rs(us(e,t),s),i.$V=s.$V,o&&o.insertBefore(i,r)}}}),ws=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every((i=>e[i]===t[i])),Ts=(e,t)=>{(0,E.S6)(t,((t,i)=>{var n=!1;(0,E.S6)(e,((e,t)=>{i===t&&(n=!0)})),!n&&i.parentNode&&i.parentNode.removeChild(i)}))};class Ss extends Ha{constructor(e){super(e),this.renderTemplate=this.renderTemplate.bind(this)}renderTemplate(){var e,t=po(this.$LI,!0),i=t.parentNode,n=(0,o.Z)(i),r=n.contents(),{data:a,index:s}=null!==(e=this.props.model)&&void 0!==e?e:{data:{}};a&&Object.keys(a).forEach((e=>{a[e]&&ke["default"].isNode(a[e])&&(a[e]=(0,se.u)((0,o.Z)(a[e])))}));var l=(0,o.Z)(this.props.template.render((0,hn.Z)({container:(0,se.u)(n),transclude:this.props.transclude},{renovated:this.props.renovated},this.props.transclude?{}:{model:a},!this.props.transclude&&Number.isFinite(s)?{index:s}:{})));return(0,M.dL)((0,o.Z)(t),l),()=>{Ts(r,n.contents()),i.appendChild(t)}}shouldComponentUpdate(e){var{model:t,template:i}=this.props,{model:n,template:o}=e,r=i===o;if(!r)return!0;if((0,l.$K)(t)&&(0,l.$K)(n)){var{data:a,index:s}=t,{data:d,index:u}=n;return s!==u||!ws(a,d)}var c=t===n;return!c}createEffects(){return[new $a(this.renderTemplate,[this.props.template,this.props.model])]}updateEffects(){this._effects[0].update([this.props.template,this.props.model])}componentWillUnmount(){}render(){return null}}function Is(e){return Array.isArray(e)?[...e]:(0,hn.Z)({},e)}function Es(e,t,i){var n=i.length>0&&t&&e!==t?Is(t):Is(e),o=i[0];return i.length>1?n[o]=Es(e[o],null===t||void 0===t?void 0:t[o],i.slice(1)):o&&((0,l.PO)(e[o])?n[o]=Is(e[o]):n[o]=e[o]),n}function Ds(e,t,i,n){var o=t[i],a=e[i],s=e;(0,l.PO)(o)||i!==n&&Array.isArray(o)?s[i]=Es(o,a,(0,r.Zw)(n).slice(1)):s[i]=o}var ks=(e,t)=>i=>{Object.prototype.hasOwnProperty.call(e,i)&&void 0===e[i]&&(e[i]=t(i))};class Os extends S.Z{constructor(e,t){super(e,t),this._shouldRaiseContentReady=!1,this.validateKeyDownHandler()}get _propsInfo(){return{allowNull:[],twoWay:[],elements:[],templates:[],props:[]}}validateKeyDownHandler(){var e=this.getSupportedKeyNames(),t=e.length>0,i="function"===typeof this._viewComponent.prototype.keyDown;if(t&&!i)throw Error("Component's declaration must have 'keyDown' method.")}get viewRef(){var e;return null===(e=this._viewRef)||void 0===e?void 0:e.current}_checkContentReadyOption(e){var t=this._getContentReadyOptions().reduce(((e,t)=>(e[t]=!0,e)),{});return this._checkContentReadyOption=e=>!!t[e],this._checkContentReadyOption(e)}_getContentReadyOptions(){return["rtlEnabled"]}_fireContentReady(){this._actionsMap.onContentReady({})}_getDefaultOptions(){return(0,a.l)(!0,super._getDefaultOptions(),this._viewComponent.defaultProps,this._propsInfo.twoWay.reduce(((e,t)=>{var[i,n,o]=t;return(0,hn.Z)({},e,{[i]:this._viewComponent.defaultProps[n],[o]:e=>this.option(i,e)})}),{}),this._propsInfo.templates.reduce(((e,t)=>(0,hn.Z)({},e,{[t]:null})),{}))}_getUnwrappedOption(){var e={};return Object.keys(this.option()).forEach((t=>{e[t]=this.option(t)})),e}_initializeComponent(){var e;super._initializeComponent(),null===(e=this._templateManager)||void 0===e||e.addDefaultTemplates(this.getDefaultTemplates());var t=this._getUnwrappedOption();this._props=this._optionsWithDefaultTemplates(t),this._propsInfo.templates.forEach((e=>{this._componentTemplates[e]=this._createTemplateComponent(this._props[e])})),Object.keys(this._getActionConfigsFull()).forEach((e=>this._addAction(e))),this._viewRef=kr(),this.defaultKeyHandlers=this._createDefaultKeyHandlers()}_initMarkup(){var e=this.getProps();this._renderWrapper(e)}_renderWrapper(e){var t=this.$element()[0];this._isNodeReplaced||xs.onPreRender(),xs.render(this._viewComponent,e,t,this._isNodeReplaced),this._isNodeReplaced||(this._isNodeReplaced=!0,xs.onAfterRender(),this._shouldRaiseContentReady=!0),this._shouldRaiseContentReady&&(this._fireContentReady(),this._shouldRaiseContentReady=!1)}_silent(e,t){this._options.silent(e,t)}_render(){}_removeWidget(){xs.remove(this.$element()[0])}_dispose(){this._removeWidget(),super._dispose()}get elementAttr(){var e=this.$element()[0];if(!this._elementAttr){var{attributes:t}=e,i=Array.from(t).filter((e=>{var i;return!this._propsInfo.templates.includes(e.name)&&(null===(i=t[e.name])||void 0===i?void 0:i.specified)})).reduce(((t,i)=>{var{name:n,value:o}=i,r=t,a=n in e;return r[n]=""===o&&a?e[n]:o,r}),{});this._elementAttr=i,this._storedClasses=e.getAttribute("class")||""}for(var n=e.style,o={},r=0;r{d(t)}:void 0,h={ref:u,children:s,onKeyDown:c};return[...n,...this._getAdditionalProps()].forEach((t=>{Object.prototype.hasOwnProperty.call(e,t)&&(h[t]=e[t])})),t.forEach(ks(h,(()=>null))),r.forEach(ks(h,(e=>a[e]))),o.forEach((e=>{var[t,i]=e;ks(h,(()=>a[i]))(t)})),i.forEach((e=>{if(e in h){var t=h[e];(0,l.ZU)(t)&&(h[e]=this._patchElementParam(t))}})),h}getSupportedKeyNames(){return[]}prepareStyleProp(e){return"string"===typeof e.style?(0,hn.Z)({},e,{style:{},cssText:e.style}):e}getProps(){var e,t,{elementAttr:i}=this.option(),n=this._patchOptionValues((0,hn.Z)({},this._props,{ref:this._viewRef,children:this._extractDefaultSlot(),aria:this._aria}));return this._propsInfo.templates.forEach((e=>{n[e]=this._componentTemplates[e]})),this.prepareStyleProp((0,hn.Z)({},n,this.elementAttr,i,{className:[...(null!==(e=this.elementAttr.class)&&void 0!==e?e:"").split(" "),...(null!==(t=null===i||void 0===i?void 0:i.class)&&void 0!==t?t:"").split(" ")].filter(((e,t,i)=>e&&i.indexOf(e)===t)).join(" ").trim(),class:""},this._actionsMap))}_getActionConfigs(){return{}}_getActionConfigsFull(){return(0,hn.Z)({},this._getActionConfigs(),this._getAdditionalActionConfigs())}getDefaultTemplates(){var e=Object.values(this._templatesInfo),t={};return e.forEach((e=>{t[e]="dx-renovation-template-mock"})),t}get _templatesInfo(){return{}}_optionsWithDefaultTemplates(e){var t=Object.entries(this._templatesInfo).reduce(((t,i)=>{var n,[o,r]=i;return(0,hn.Z)({},t,{[o]:null!==(n=e[o])&&void 0!==n?n:r})}),{});return(0,hn.Z)({},e,t)}_init(){super._init(),this.customKeyHandlers={},this._actionsMap={},this._aria={},this._componentTemplates={}}_createDefaultKeyHandlers(){var e={},t=this.getSupportedKeyNames();return t.forEach((t=>{e[t]=e=>this.viewRef.keyDown(Ra.Z.createKeyDownOptions(e))})),e}_addAction(e,t){var i=t;if(!i){var n=this._createActionByOption(e,this._getActionConfigsFull()[e]);i=e=>(Object.keys(e).forEach((t=>{(0,l.$K)(e[t])&&ke["default"].isNode(e[t])&&(e[t]=(0,se.u)((0,o.Z)(e[t])))})),n(e))}this._actionsMap[e]=i}_optionChanged(e){var{fullName:t,name:i,previousValue:n,value:o}=e;Ds(this._props,this.option(),i,t),this._propsInfo.templates.includes(i)&&o!==n&&(this._componentTemplates[i]=this._createTemplateComponent(o)),i&&this._getActionConfigsFull()[i]&&this._addAction(i),this._shouldRaiseContentReady=this._shouldRaiseContentReady||this._checkContentReadyOption(t),super._optionChanged(e),this._invalidate()}_extractDefaultSlot(){return this.option("_hasAnonymousTemplateContent")?xs.createElement(Ss,{template:this._getTemplate(this._templateManager.anonymousTemplateName),transclude:!0,renovated:!0}):null}_createTemplateComponent(e){if(e){var t=this._getTemplate(e);if(!(0,l.HD)(t)||"dx-renovation-template-mock"!==t)return e=>xs.createElement(Ss,{template:t,model:e})}}_wrapKeyDownHandler(e){return t=>{var{keyName:i,originalEvent:n,which:o}=t,r=this.customKeyHandlers,a=r[i]||r[o];if(void 0!==a){var s=a.bind(this),l=s(n,t);if(!l)return n.cancel=!0,n}return null===e||void 0===e?void 0:e(n,t)}}_toPublicElement(e){return(0,se.u)((0,o.Z)(e))}_patchElementParam(e){try{var t=(0,o.Z)(e),i=null===t||void 0===t?void 0:t.get(0);return null!==i&&void 0!==i&&i.nodeType?i:e}catch(n){return e}}repaint(){this._isNodeReplaced=!1,this._shouldRaiseContentReady=!0,this._removeWidget(),this._refresh()}_supportedKeys(){return(0,hn.Z)({},this.defaultKeyHandlers,this.customKeyHandlers)}registerKeyHandler(e,t){this.customKeyHandlers[e]=t}setAria(e,t){this._aria[e]=t,this._initMarkup()}}Os.IS_RENOVATED_WIDGET=!1,Os.IS_RENOVATED_WIDGET=!0;var As="dx-icon",Ps="dx-svg-icon",Ms=e=>!(!e||"string"!==typeof e)&&(/^\s*]*>(.|\r?\n)*?<\/svg>\s*$/i.test(e)?"svg":/data:.*base64|\.|[^<\s]\/{1,1}/.test(e)?"image":/^[\w-_]+$/.test(e)?"dxIcon":!!/^\s?([\w-_]\s?)+$/.test(e)&&"fontIcon"),Rs=e=>{switch(Ms(e)){case"image":return(0,o.Z)("").attr("src",e).addClass(As);case"fontIcon":return(0,o.Z)("").addClass("".concat(As," ").concat(e));case"dxIcon":return(0,o.Z)("").addClass("".concat(As," ").concat(As,"-").concat(e));case"svg":return(0,o.Z)("").addClass("".concat(As," ").concat(Ps)).append(e);default:return null}};class Bs extends Os{get _validationGroupConfig(){return Kn.getGroupConfig(this._findGroup())}getDefaultTemplateNames(){return["content"]}getSupportedKeyNames(){return["space","enter"]}getProps(){var e=super.getProps();e.onClick=e=>{var{event:t}=e;this._clickAction({event:t,validationGroup:this._validationGroupConfig})};var t=Ms(e.icon);return"svg"===t&&(e.iconTemplate=this._createTemplateComponent((()=>e.icon))),e}get _templatesInfo(){return{template:"content"}}_toggleActiveState(e,t){var i=this.viewRef;t?i.activate():i.deactivate()}_getSubmitAction(){var e=!0,t="valid";return this._createAction((i=>{var{event:n,submitInput:o}=i;if(e){var r=this._validationGroupConfig;if(void 0!==r&&""!==r){var a=r.validate();t=a.status,"pending"===a.status&&(e=!1,this.option("disabled",!0),a.complete.then((i=>{var{status:n}=i;this.option("disabled",!1),t=n,"valid"===t&&o.click(),e=!0})))}}"valid"!==t&&n.preventDefault(),n.stopPropagation()}))}_initializeComponent(){super._initializeComponent(),this._addAction("onSubmit",this._getSubmitAction()),this._clickAction=this._createClickAction()}_initMarkup(){super._initMarkup();var e=this.$element().find(".dx-button-content"),t=e.children().filter(".dx-template-wrapper"),i=e.children().filter(".dx-button-submit-input");t.length&&(t.addClass("dx-button-content"),t.append(i),e.replaceWith(t))}_patchOptionValues(e){return super._patchOptionValues((0,hn.Z)({},e,{templateData:e._templateData}))}_findGroup(){var e=this.$element(),t=this.option("validationGroup");return void 0!==t&&""!==t?t:Kn.findGroup(e,this._modelByElement(e))}_createClickAction(){return this._createActionByOption("onClick",{excludeValidators:["readOnly"]})}_optionChanged(e){switch(e.name){case"onClick":this._clickAction=this._createClickAction()}super._optionChanged(e)}}var Vs=i(3802),Fs=i(1293);function Hs(e){return Object.keys(e).filter((t=>e[t])).join(" ")}var Ls=["iconTemplate","position","source"],Ns=e=>{var{iconClassName:t,props:{iconTemplate:i,source:n},sourceType:o}=e;return Ao(["dxIcon"===o&&So(1,"i",t),"fontIcon"===o&&So(1,"i",t),"image"===o&&So(1,"img",t,null,1,{alt:"",src:n}),i&&So(1,"i",t,i({}),0)],0)},Zs={position:"left",source:""},$s=e=>e&&(e.defaultProps?t=>Po(ko(2,e,(0,hn.Z)({},t))):e);class Ws extends Fa{constructor(e){super(e),this.state={}}get sourceType(){return Ms(this.props.source)}get cssClass(){return"left"!==this.props.position?"dx-icon-right":""}get iconClassName(){var e={"dx-icon":!0,[this.cssClass]:!!this.cssClass},{source:t}=this.props;return"dxIcon"===this.sourceType?Hs((0,hn.Z)({},e,{["dx-icon-".concat(t)]:!0})):"fontIcon"===this.sourceType?Hs((0,hn.Z)({},e,{[String(t)]:!!t})):"image"===this.sourceType?Hs(e):"svg"===this.sourceType?Hs((0,hn.Z)({},e,{"dx-svg-icon":!0})):""}get restAttributes(){var e=this.props,t=(0,Vs.Z)(e,Ls);return t}render(){var e=this.props;return Ns({props:(0,hn.Z)({},e,{iconTemplate:$s(e.iconTemplate)}),sourceType:this.sourceType,cssClass:this.cssClass,iconClassName:this.iconClassName,restAttributes:this.restAttributes})}}Ws.defaultProps=Zs;var Ks="dx-inkripple",zs="dx-inkripple-wave",js="dx-inkripple-showing",Us="dx-inkripple-hiding",Gs=2,qs=4e3,Ys=300,Xs=1e3,Js=0,Qs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{useHoldAnimation:t,waveSizeCoefficient:i,isCentered:n,wavesNumber:o}=e;return{waveSizeCoefficient:i||Gs,isCentered:n||!1,wavesNumber:o||1,durations:al(null===t||void 0===t||t)}},el=function(e){var t=Qs(e);return{showWave:ol.bind(this,t),hideWave:ll.bind(this,t)}},tl=function(e){var t=e.children("."+Ks);return 0===t.length&&(t=(0,o.Z)("
").addClass(Ks).appendTo(e)),t},il=function(e,t){for(var i=tl((0,o.Z)(e)),n=i.children("."+zs).toArray(),r=n.length;r").appendTo(i).addClass(zs);n.push(a[0])}return(0,o.Z)(n)},nl=function(e,t){var i,r,a=(0,o.Z)(t.element),s=(0,n.Y_)(a),l=(0,n.zp)(a),d=parseInt(Math.sqrt(s*s+l*l)),u=Math.min(qs,parseInt(d*e.waveSizeCoefficient));if(e.isCentered)i=(s-u)/2,r=(l-u)/2;else{var c=t.event,h=a.offset(),p=c.pageX-h.left,f=c.pageY-h.top;i=p-u/2,r=f-u/2}return{left:i,top:r,height:u,width:u}};function ol(e,t){var i=il(t.element,e.wavesNumber).eq(t.wave||Js);e.hidingTimeout&&clearTimeout(e.hidingTimeout),sl(i),i.css(nl(e,t)),e.showingTimeout=setTimeout(rl.bind(this,e,i),0)}function rl(e,t){var i=e.durations.showingScale+"ms";t.addClass(js).css("transitionDuration",i)}function al(e){return{showingScale:e?Xs:Ys,hidingScale:Ys,hidingOpacity:Ys}}function sl(e){e.removeClass(Us).css("transitionDuration","")}function ll(e,t){e.showingTimeout&&clearTimeout(e.showingTimeout);var i=il(t.element,t.wavesNumber).eq(t.wave||Js),n=e.durations,o=n.hidingScale+"ms, "+n.hidingOpacity+"ms";i.addClass(Us).removeClass(js).css("transitionDuration",o);var r=Math.max(n.hidingScale,n.hidingOpacity);e.hidingTimeout=setTimeout(sl.bind(this,i),r)}var dl=["config"],ul=e=>Po(So(1,"div","dx-inkripple",null,1,(0,hn.Z)({},e.restAttributes))),cl={config:Object.freeze({})};class hl extends Fa{constructor(e){super(e),this.state={},this.__getterCache={},this.hideWave=this.hideWave.bind(this),this.showWave=this.showWave.bind(this)}get getConfig(){return void 0!==this.__getterCache.getConfig?this.__getterCache.getConfig:this.__getterCache.getConfig=(()=>{var{config:e}=this.props;return Qs(e)})()}get restAttributes(){var e=this.props,t=(0,Vs.Z)(e,dl);return t}hideWave(e){ll(this.getConfig,e)}showWave(e){ol(this.getConfig,e)}componentWillUpdate(e,t,i){this.props.config!==e.config&&(this.__getterCache.getConfig=void 0)}render(){var e=this.props;return ul({props:(0,hn.Z)({},e),getConfig:this.getConfig,restAttributes:this.restAttributes})}}hl.defaultProps=cl;var pl=i(57553),fl=P.Z.abstract,gl=w.Z.real(),ml="scroll",_l="dxscrollinit",vl="dxscrollstart",yl="dxscroll",Cl="dxscrollend",bl="dxscrollstop",xl="dxscrollcancel",wl=P.Z.inherit(function(){var e=(0,R.V4)(ml,"dxScrollEmitter");return{ctor:function(t){this._element=t,this._locked=!1,this._proxiedScroll=e=>{this._disposed||this._scroll(e)},re.Z.on(this._element,e,this._proxiedScroll)},_scroll:fl,check:function(e,t){this._locked&&t()},dispose:function(){this._disposed=!0,re.Z.off(this._element,e,this._proxiedScroll)}}}()),Tl=wl.inherit({ctor:function(e,t){this.callBase(e),this._timeout=t},_scroll:function(){this._prepare(),this._forget()},_prepare:function(){this._timer&&this._clearTimer(),this._locked=!0},_clearTimer:function(){clearTimeout(this._timer),this._locked=!1,this._timer=null},_forget:function(){var e=this;this._timer=setTimeout((function(){e._clearTimer()}),this._timeout)},dispose:function(){this.callBase(),this._clearTimer()}}),Sl=Tl.inherit({ctor:function(e){this.callBase(e,400),this._lastWheelDirection=null},check:function(e,t){this._checkDirectionChanged(e),this.callBase(e,t)},_checkDirectionChanged:function(e){if((0,R.pR)(e)){var t=e.shiftKey||!1,i=null!==this._lastWheelDirection&&t!==this._lastWheelDirection;this._lastWheelDirection=t,this._locked=this._locked&&!i}else this._lastWheelDirection=null}}),Il=Tl.inherit({ctor:function(e){this.callBase(e,400)}});!function(){var{ios:e,android:t}=gl;(e||t)&&(Il=wl.inherit({_scroll:function(){this._locked=!0;var e=this;(0,De.W)(this._scrollFrame),this._scrollFrame=(0,De.U)((function(){e._locked=!1}))},check:function(e,t){(0,De.W)(this._scrollFrame),(0,De.W)(this._checkFrame);var i=this,n=this.callBase;this._checkFrame=(0,De.U)((function(){n.call(i,e,t),i._locked=!1}))},dispose:function(){this.callBase(),(0,De.W)(this._scrollFrame),(0,De.W)(this._checkFrame)}}))}();var El=pl.Z.inherit(function(){var e=Math.round(1e3/60);return{ctor:function(e){this.callBase.apply(this,arguments),this.direction="both",this._pointerLocker=new Il(e),this._wheelLocker=new Sl(e)},validate:function(){return!0},configure:function(e){e.scrollTarget&&(this._pointerLocker.dispose(),this._wheelLocker.dispose(),this._pointerLocker=new Il(e.scrollTarget),this._wheelLocker=new Sl(e.scrollTarget)),this.callBase(e)},_init:function(e){this._wheelLocker.check(e,function(){(0,R.pR)(e)&&this._accept(e)}.bind(this)),this._pointerLocker.check(e,function(){var t=this.isNative&&(0,R.N5)(e);(0,R.pR)(e)||t||this._accept(e)}.bind(this)),this._fireEvent(_l,e),this._prevEventData=(0,R.a0)(e)},move:function(e){this.callBase.apply(this,arguments),e.isScrollingEvent=this.isNative||e.isScrollingEvent},_start:function(e){this._savedEventData=(0,R.a0)(e),this._fireEvent(vl,e),this._prevEventData=(0,R.a0)(e)},_move:function(e){var t=(0,R.a0)(e);this._fireEvent(yl,e,{delta:(0,R.hM)(this._prevEventData,t)});var i=(0,R.hM)(this._savedEventData,t);i.time>200&&(this._savedEventData=this._prevEventData),this._prevEventData=(0,R.a0)(e)},_end:function(t){var i=(0,R.hM)(this._prevEventData,(0,R.a0)(t)),n={x:0,y:0};if(!(0,R.pR)(t)&&i.time<100){var o=(0,R.hM)(this._savedEventData,this._prevEventData),r=e/o.time;n={x:o.x*r,y:o.y*r}}this._fireEvent(Cl,t,{velocity:n})},_stop:function(e){this._fireEvent(bl,e)},cancel:function(e){this.callBase.apply(this,arguments),this._fireEvent(xl,e)},dispose:function(){this.callBase.apply(this,arguments),this._pointerLocker.dispose(),this._wheelLocker.dispose()},_clearSelection:function(){if(!this.isNative)return this.callBase.apply(this,arguments)},_toggleGestureCover:function(){if(!this.isNative)return this.callBase.apply(this,arguments)}}}());(0,F.Z)({emitter:El,events:[_l,vl,yl,Cl,bl,xl]});var Dl={init:_l,start:vl,move:yl,end:Cl,stop:bl,cancel:xl,scroll:ml};function kl(e){return(t,i,n,o)=>{var r=o?(0,R.V4)(e,o):e;if(i)return re.Z.on(t,r,n,i),()=>{re.Z.off(t,r,i)}}}var Ol=kl(A.u),Al=(kl(Dl.scroll),kl(Dl.init),kl(Dl.start),kl(Dl.move),kl(Dl.end),kl(Dl.stop),kl(Dl.cancel),kl(B.Z.down),kl(B.Z.up),kl(B.Z.move),kl("mouseenter"),kl("mouseleave"),kl("keydown"),kl("dxactive")),Pl=kl("dxinactive"),Ml=kl("dxhoverstart"),Rl=kl("dxhoverend"),Bl=kl("focusin"),Vl=kl("focusout"),Fl=i(19071),Hl={className:"",activeStateEnabled:!1,disabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,tabIndex:0,visible:!0},Ll=Za(void 0),Nl=["children","rtlEnabled"],Zl=e=>e.props.children,$l={};class Wl extends Fa{constructor(e){super(e),this.state={},this.__getterCache={}}getChildContext(){return(0,hn.Z)({},this.context,{ConfigContext:this.config})}get config(){return void 0!==this.__getterCache.config?this.__getterCache.config:this.__getterCache.config=(()=>({rtlEnabled:this.props.rtlEnabled}))()}get restAttributes(){var e=this.props,t=(0,Vs.Z)(e,Nl);return t}componentWillUpdate(e,t,i){this.props.rtlEnabled!==e.rtlEnabled&&(this.__getterCache.config=void 0)}render(){var e=this.props;return Zl({props:(0,hn.Z)({},e),config:this.config,restAttributes:this.restAttributes})}}function Kl(e,t){return void 0!==e?e:void 0!==(null===t||void 0===t?void 0:t.rtlEnabled)?t.rtlEnabled:(0,Oe.Z)().rtlEnabled}function zl(e,t){var i=(0,l.$K)(e),n=(0,l.$K)((0,Oe.Z)().rtlEnabled)&&!i&&!(0,l.$K)(null===t||void 0===t?void 0:t.rtlEnabled);return i&&e!==(null===t||void 0===t?void 0:t.rtlEnabled)||n}Wl.defaultProps=$l;var jl=i(20605),Ul=["_feedbackHideTimeout","_feedbackShowTimeout","accessKey","activeStateEnabled","activeStateUnit","addWidgetClass","aria","children","className","classes","cssText","disabled","focusStateEnabled","height","hint","hoverStateEnabled","name","onActive","onClick","onDimensionChanged","onFocusIn","onFocusOut","onHoverEnd","onHoverStart","onInactive","onKeyDown","onRootElementRendered","onVisibilityChange","rootElementRef","rtlEnabled","tabIndex","visible","width"],Gl=400,ql=30,Yl=e=>Object.keys(e).reduce(((t,i)=>e[i]?(0,hn.Z)({},t,{["role"===i||"id"===i?i:"aria-".concat(i)]:String(e[i])}):t),{}),Xl=e=>{var t=Po(So(1,"div",e.cssClasses,e.props.children,0,(0,hn.Z)({},e.attributes,{tabIndex:e.tabIndex,title:e.props.hint,style:ys(e.styles)}),null,e.widgetElementRef));return e.shouldRenderConfigProvider?ko(2,Wl,{rtlEnabled:e.rtlEnabled,children:t}):t},Jl=Object.create(Object.prototype,(0,hn.Z)(Object.getOwnPropertyDescriptors(Hl),Object.getOwnPropertyDescriptors({_feedbackHideTimeout:Gl,_feedbackShowTimeout:ql,cssText:"",aria:Object.freeze({}),classes:"",name:"",addWidgetClass:!0})));class Ql extends La{constructor(e){super(e),this.widgetElementRef=kr(),this.state={active:!1,focused:!1,hovered:!1},this.setRootElementRef=this.setRootElementRef.bind(this),this.activeEffect=this.activeEffect.bind(this),this.inactiveEffect=this.inactiveEffect.bind(this),this.clickEffect=this.clickEffect.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.activate=this.activate.bind(this),this.deactivate=this.deactivate.bind(this),this.focusInEffect=this.focusInEffect.bind(this),this.focusOutEffect=this.focusOutEffect.bind(this),this.hoverStartEffect=this.hoverStartEffect.bind(this),this.hoverEndEffect=this.hoverEndEffect.bind(this),this.keyboardEffect=this.keyboardEffect.bind(this),this.resizeEffect=this.resizeEffect.bind(this),this.windowResizeEffect=this.windowResizeEffect.bind(this),this.visibilityEffect=this.visibilityEffect.bind(this),this.checkDeprecation=this.checkDeprecation.bind(this),this.applyCssTextEffect=this.applyCssTextEffect.bind(this)}get config(){return"ConfigContext"in this.context?this.context.ConfigContext:Ll}createEffects(){return[new $a(this.setRootElementRef,[]),new $a(this.activeEffect,[this.props._feedbackShowTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.disabled,this.props.onActive]),new $a(this.inactiveEffect,[this.props._feedbackHideTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.onInactive,this.state.active]),new $a(this.clickEffect,[this.props.disabled,this.props.name,this.props.onClick]),new $a(this.focusInEffect,[this.props.disabled,this.props.focusStateEnabled,this.props.name,this.props.onFocusIn]),new $a(this.focusOutEffect,[this.props.focusStateEnabled,this.props.name,this.props.onFocusOut,this.state.focused]),new $a(this.hoverStartEffect,[this.props.activeStateUnit,this.props.disabled,this.props.hoverStateEnabled,this.props.onHoverStart,this.state.active]),new $a(this.hoverEndEffect,[this.props.activeStateUnit,this.props.hoverStateEnabled,this.props.onHoverEnd,this.state.hovered]),new $a(this.keyboardEffect,[this.props.focusStateEnabled,this.props.onKeyDown]),new $a(this.resizeEffect,[this.props.name,this.props.onDimensionChanged]),new $a(this.windowResizeEffect,[this.props.onDimensionChanged]),new $a(this.visibilityEffect,[this.props.name,this.props.onVisibilityChange]),new $a(this.checkDeprecation,[this.props.height,this.props.width]),new $a(this.applyCssTextEffect,[this.props.cssText]),Wa()]}updateEffects(){var e,t,i,n,o,r,a,s,l,d,u,c,h;null===(e=this._effects[1])||void 0===e||e.update([this.props._feedbackShowTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.disabled,this.props.onActive]),null===(t=this._effects[2])||void 0===t||t.update([this.props._feedbackHideTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.onInactive,this.state.active]),null===(i=this._effects[3])||void 0===i||i.update([this.props.disabled,this.props.name,this.props.onClick]),null===(n=this._effects[4])||void 0===n||n.update([this.props.disabled,this.props.focusStateEnabled,this.props.name,this.props.onFocusIn]),null===(o=this._effects[5])||void 0===o||o.update([this.props.focusStateEnabled,this.props.name,this.props.onFocusOut,this.state.focused]),null===(r=this._effects[6])||void 0===r||r.update([this.props.activeStateUnit,this.props.disabled,this.props.hoverStateEnabled,this.props.onHoverStart,this.state.active]),null===(a=this._effects[7])||void 0===a||a.update([this.props.activeStateUnit,this.props.hoverStateEnabled,this.props.onHoverEnd,this.state.hovered]),null===(s=this._effects[8])||void 0===s||s.update([this.props.focusStateEnabled,this.props.onKeyDown]),null===(l=this._effects[9])||void 0===l||l.update([this.props.name,this.props.onDimensionChanged]),null===(d=this._effects[10])||void 0===d||d.update([this.props.onDimensionChanged]),null===(u=this._effects[11])||void 0===u||u.update([this.props.name,this.props.onVisibilityChange]),null===(c=this._effects[12])||void 0===c||c.update([this.props.height,this.props.width]),null===(h=this._effects[13])||void 0===h||h.update([this.props.cssText])}setRootElementRef(){var{onRootElementRendered:e,rootElementRef:t}=this.props;t&&(t.current=this.widgetElementRef.current),null===e||void 0===e||e(this.widgetElementRef.current)}activeEffect(){var{_feedbackShowTimeout:e,activeStateEnabled:t,activeStateUnit:i,disabled:n,onActive:o}=this.props,r=i;if(t&&!n)return Al(this.widgetElementRef.current,(e=>{this.setState((e=>({active:!0}))),null===o||void 0===o||o(e)}),{timeout:e,selector:r},"UIFeedback")}inactiveEffect(){var{_feedbackHideTimeout:e,activeStateEnabled:t,activeStateUnit:i,onInactive:n}=this.props,o=i;if(t)return Pl(this.widgetElementRef.current,(e=>{this.state.active&&(this.setState((e=>({active:!1}))),null===n||void 0===n||n(e))}),{timeout:e,selector:o},"UIFeedback")}clickEffect(){var{disabled:e,name:t,onClick:i}=this.props,n=t;if(i&&!e)return I.wt.on(this.widgetElementRef.current,i,{namespace:n}),()=>I.wt.off(this.widgetElementRef.current,{namespace:n})}focusInEffect(){var{disabled:e,focusStateEnabled:t,name:i,onFocusIn:n}=this.props,o="".concat(i,"Focus");if(t&&!e)return Bl(this.widgetElementRef.current,(e=>{e.isDefaultPrevented()||(this.setState((e=>({focused:!0}))),null===n||void 0===n||n(e))}),null,o)}focusOutEffect(){var{focusStateEnabled:e,name:t,onFocusOut:i}=this.props,n="".concat(t,"Focus");if(e)return Vl(this.widgetElementRef.current,(e=>{!e.isDefaultPrevented()&&this.state.focused&&(this.setState((e=>({focused:!1}))),null===i||void 0===i||i(e))}),null,n)}hoverStartEffect(){var{activeStateUnit:e,disabled:t,hoverStateEnabled:i,onHoverStart:n}=this.props,o=e;if(i&&!t)return Ml(this.widgetElementRef.current,(e=>{!this.state.active&&this.setState((e=>({hovered:!0}))),null===n||void 0===n||n(e)}),{selector:o},"UIFeedback")}hoverEndEffect(){var{activeStateUnit:e,hoverStateEnabled:t,onHoverEnd:i}=this.props,n=e;if(t)return Rl(this.widgetElementRef.current,(e=>{this.state.hovered&&(this.setState((e=>({hovered:!1}))),null===i||void 0===i||i(e))}),{selector:n},"UIFeedback")}keyboardEffect(){var{focusStateEnabled:e,onKeyDown:t}=this.props;if(e&&t){var i=I.dG.on(this.widgetElementRef.current,this.widgetElementRef.current,(e=>t(e)));return()=>I.dG.off(i)}}resizeEffect(){var e="".concat(this.props.name,"VisibilityChange"),{onDimensionChanged:t}=this.props;if(t)return I.SI.on(this.widgetElementRef.current,t,{namespace:e}),()=>I.SI.off(this.widgetElementRef.current,{namespace:e})}windowResizeEffect(){var{onDimensionChanged:e}=this.props;if(e)return jl.Z.add(e),()=>{jl.Z.remove(e)}}visibilityEffect(){var{name:e,onVisibilityChange:t}=this.props,i="".concat(e,"VisibilityChange");if(t)return I.WD.on(this.widgetElementRef.current,(()=>t(!0)),(()=>t(!1)),{namespace:i}),()=>I.WD.off(this.widgetElementRef.current,{namespace:i})}checkDeprecation(){var{height:e,width:t}=this.props;(0,l.mf)(t)&&ae.Z.log("W0017","width"),(0,l.mf)(e)&&ae.Z.log("W0017","height")}applyCssTextEffect(){var{cssText:e}=this.props;""!==e&&(this.widgetElementRef.current.style.cssText=e)}get shouldRenderConfigProvider(){var{rtlEnabled:e}=this.props;return zl(e,this.config)}get rtlEnabled(){var{rtlEnabled:e}=this.props;return Kl(e,this.config)}get attributes(){var{aria:e,disabled:t,focusStateEnabled:i,visible:n}=this.props,o=i&&!t&&this.props.accessKey;return(0,hn.Z)({},(0,a.l)({},o&&{accessKey:o}),Yl((0,hn.Z)({},e,{disabled:t,hidden:!n})),(0,a.l)({},this.restAttributes))}get styles(){var{height:e,width:t}=this.props,i=this.restAttributes.style||{},n=(0,Fl.bh)("width",(0,l.mf)(t)?t():t),o=(0,Fl.bh)("height",(0,l.mf)(e)?e():e);return(0,hn.Z)({},i,{height:null!==o&&void 0!==o?o:i.height,width:null!==n&&void 0!==n?n:i.width})}get cssClasses(){var{activeStateEnabled:e,addWidgetClass:t,className:i,classes:n,disabled:o,focusStateEnabled:r,hoverStateEnabled:a,onVisibilityChange:s,visible:l}=this.props,d=!!r&&!o,u=!!a&&!o,c=!!e&&!o,h={"dx-widget":!!t,[String(n)]:!!n,[String(i)]:!!i,"dx-state-disabled":!!o,"dx-state-invisible":!l,"dx-state-focused":!!this.state.focused&&d,"dx-state-active":!!this.state.active&&c,"dx-state-hover":!!this.state.hovered&&u&&!this.state.active,"dx-rtl":!!this.rtlEnabled,"dx-visibility-change-handler":!!s};return Hs(h)}get tabIndex(){var{disabled:e,focusStateEnabled:t,tabIndex:i}=this.props,n=t&&!e;return n?i:void 0}get restAttributes(){var e=this.props,t=(0,Vs.Z)(e,Ul);return t}focus(){I.T_.trigger(this.widgetElementRef.current)}blur(){var e=ke["default"].getActiveElement(this.widgetElementRef.current);this.widgetElementRef.current===e&&e.blur()}activate(){this.setState((e=>({active:!0})))}deactivate(){this.setState((e=>({active:!1})))}render(){var e=this.props;return Xl({props:(0,hn.Z)({},e),active:this.state.active,focused:this.state.focused,hovered:this.state.hovered,widgetElementRef:this.widgetElementRef,config:this.config,shouldRenderConfigProvider:this.shouldRenderConfigProvider,rtlEnabled:this.rtlEnabled,attributes:this.attributes,styles:this.styles,cssClasses:this.cssClasses,tabIndex:this.tabIndex,restAttributes:this.restAttributes})}}Ql.defaultProps=Jl;var ed=["accessKey","activeStateEnabled","children","className","disabled","focusStateEnabled","height","hint","hoverStateEnabled","icon","iconPosition","iconTemplate","onClick","onKeyDown","onSubmit","pressed","rtlEnabled","stylingMode","tabIndex","template","templateData","text","type","useInkRipple","useSubmitBehavior","visible","width"],td=["outlined","text","contained"],id=e=>{var{icon:t,iconPosition:i,stylingMode:n,text:o,type:r}=e,a=n&&td.includes(n),s={"dx-button":!0,["dx-button-mode-".concat(a?n:"contained")]:!0,["dx-button-".concat(null!==r&&void 0!==r?r:"normal")]:!0,"dx-button-has-text":!!o,"dx-button-has-icon":!!t,"dx-button-icon-right":"left"!==i};return Hs(s)},nd=e=>{var{children:t,iconPosition:i,iconTemplate:n,template:o,text:r}=e.props,a=!e.props.template&&!t&&""!==r,s="left"===i,l=!e.props.template&&!t&&(e.iconSource||e.props.iconTemplate)&&ko(2,Ws,{source:e.iconSource,position:i,iconTemplate:n});return Po(ko(2,Ql,(0,hn.Z)({accessKey:e.props.accessKey,activeStateEnabled:e.props.activeStateEnabled,aria:e.aria,className:e.props.className,classes:e.cssClasses,disabled:e.props.disabled,focusStateEnabled:e.props.focusStateEnabled,height:e.props.height,hint:e.props.hint,hoverStateEnabled:e.props.hoverStateEnabled,onActive:e.onActive,onClick:e.onWidgetClick,onInactive:e.onInactive,onKeyDown:e.keyDown,rtlEnabled:e.props.rtlEnabled,tabIndex:e.props.tabIndex,visible:e.props.visible,width:e.props.width},e.restAttributes,{children:So(1,"div","dx-button-content",[e.props.template&&o({data:e.buttonTemplateData}),!e.props.template&&t,s&&l,a&&So(1,"span","dx-button-text",r,0),!s&&l,e.props.useSubmitBehavior&&So(64,"input","dx-button-submit-input",null,1,{type:"submit",tabIndex:-1},null,e.submitInputRef),e.props.useInkRipple&&ko(2,hl,{config:e.inkRippleConfig},null,e.inkRippleRef)],0,null,null,e.contentRef)}),null,e.widgetRef))},od=Object.create(Object.prototype,(0,hn.Z)(Object.getOwnPropertyDescriptors(Hl),Object.getOwnPropertyDescriptors({activeStateEnabled:!0,hoverStateEnabled:!0,icon:"",iconPosition:"left",stylingMode:"contained",text:"",type:"normal",useInkRipple:!1,useSubmitBehavior:!1,templateData:Object.freeze({})}))),rd=(0,Fs.J3)([{device:()=>"desktop"===w.Z.real().deviceType&&!w.Z.isSimulator(),options:{focusStateEnabled:!0}},{device:()=>(0,x.x2)((0,x.Vk)()),options:{useInkRipple:!0}}]),ad=e=>e&&(e.defaultProps?t=>Po(ko(2,e,(0,hn.Z)({},t))):e);class sd extends La{constructor(e){super(e),this.state={},this.contentRef=kr(),this.inkRippleRef=kr(),this.submitInputRef=kr(),this.widgetRef=kr(),this.__getterCache={},this.focus=this.focus.bind(this),this.activate=this.activate.bind(this),this.deactivate=this.deactivate.bind(this),this.submitEffect=this.submitEffect.bind(this),this.checkDeprecation=this.checkDeprecation.bind(this),this.onActive=this.onActive.bind(this),this.onInactive=this.onInactive.bind(this),this.onWidgetClick=this.onWidgetClick.bind(this),this.keyDown=this.keyDown.bind(this)}createEffects(){return[new $a(this.submitEffect,[this.props.onSubmit,this.props.useSubmitBehavior]),new $a(this.checkDeprecation,[this.props.type]),Wa()]}updateEffects(){var e,t;null===(e=this._effects[0])||void 0===e||e.update([this.props.onSubmit,this.props.useSubmitBehavior]),null===(t=this._effects[1])||void 0===t||t.update([this.props.type])}submitEffect(){var{onSubmit:e,useSubmitBehavior:t}=this.props;if(t&&e)return I.V4.on(this.submitInputRef.current,(t=>e({event:t,submitInput:this.submitInputRef.current})),{namespace:"UIFeedback"}),()=>I.V4.off(this.submitInputRef.current,{namespace:"UIFeedback"})}checkDeprecation(){var{type:e}=this.props;"back"===e&&ae.Z.log("W0016","type","back","22.2","Use the 'back' icon instead")}onActive(e){var{useInkRipple:t}=this.props;t&&this.inkRippleRef.current.showWave({element:this.contentRef.current,event:e})}onInactive(e){var{useInkRipple:t}=this.props;t&&this.inkRippleRef.current.hideWave({element:this.contentRef.current,event:e})}onWidgetClick(e){var{onClick:t,useSubmitBehavior:i}=this.props;null===t||void 0===t||t({event:e}),i&&this.submitInputRef.current.click()}keyDown(e){var{onKeyDown:t}=this.props,{keyName:i,originalEvent:n,which:o}=e,r=null===t||void 0===t?void 0:t(e);if(null!==r&&void 0!==r&&r.cancel)return r;"space"!==i&&"space"!==o&&"enter"!==i&&"enter"!==o||(n.preventDefault(),this.onWidgetClick(n))}get aria(){var{icon:e,text:t}=this.props,i=(null!==t&&void 0!==t?t:"")||y.Z.format((0,sn._A)(e,!0))||e;return!t&&e&&"image"===Ms(e)&&(i=e.includes("base64")?"Base64":e.replace(/.+\/([^.]+)\..+$/,"$1")),(0,hn.Z)({role:"button"},i?{label:i}:{})}get cssClasses(){return id(this.props)}get iconSource(){var{icon:e,type:t}=this.props;return e||"back"===t?(null!==e&&void 0!==e?e:"")||"back":""}get inkRippleConfig(){return void 0!==this.__getterCache.inkRippleConfig?this.__getterCache.inkRippleConfig:this.__getterCache.inkRippleConfig=(()=>{var{icon:e,text:t,type:i}=this.props;return!t&&e||"back"===i?{isCentered:!0,useHoldAnimation:!1,waveSizeCoefficient:1}:{}})()}get buttonTemplateData(){var{icon:e,templateData:t,text:i}=this.props;return(0,hn.Z)({icon:e,text:i},t)}get restAttributes(){var e=this.props,t=(0,Vs.Z)(e,ed);return t}focus(){this.widgetRef.current.focus()}activate(){this.widgetRef.current.activate()}deactivate(){this.widgetRef.current.deactivate()}componentWillUpdate(e,t,i){super.componentWillUpdate(),this.props.icon===e.icon&&this.props.text===e.text&&this.props.type===e.type||(this.__getterCache.inkRippleConfig=void 0)}render(){var e=this.props;return nd({props:(0,hn.Z)({},e,{template:ad(e.template),iconTemplate:ad(e.iconTemplate)}),contentRef:this.contentRef,submitInputRef:this.submitInputRef,inkRippleRef:this.inkRippleRef,widgetRef:this.widgetRef,onActive:this.onActive,onInactive:this.onInactive,onWidgetClick:this.onWidgetClick,keyDown:this.keyDown,aria:this.aria,cssClasses:this.cssClasses,iconSource:this.iconSource,inkRippleConfig:this.inkRippleConfig,buttonTemplateData:this.buttonTemplateData,restAttributes:this.restAttributes})}}sd.defaultProps=Object.create(Object.prototype,(0,hn.Z)(Object.getOwnPropertyDescriptors(od),Object.getOwnPropertyDescriptors((0,hn.Z)({},(0,Fs.wt)(rd)))));var ld=[];function dd(e){ld.push(e),sd.defaultProps=Object.create(Object.prototype,(0,hn.Z)(Object.getOwnPropertyDescriptors(sd.defaultProps),Object.getOwnPropertyDescriptors((0,Fs.wt)(rd)),Object.getOwnPropertyDescriptors((0,Fs.wt)(ld))))}class ud extends Bs{getProps(){var e=super.getProps();return e.onKeyDown=this._wrapKeyDownHandler(e.onKeyDown),e}focus(){var e;return null===(e=this.viewRef)||void 0===e?void 0:e.focus(...arguments)}activate(){var e;return null===(e=this.viewRef)||void 0===e?void 0:e.activate(...arguments)}deactivate(){var e;return null===(e=this.viewRef)||void 0===e?void 0:e.deactivate(...arguments)}_getActionConfigs(){return{onClick:{excludeValidators:["readOnly"]},onSubmit:{}}}get _propsInfo(){return{twoWay:[],allowNull:[],elements:["onSubmit"],templates:["template","iconTemplate"],props:["activeStateEnabled","hoverStateEnabled","icon","iconPosition","onClick","onSubmit","pressed","stylingMode","template","iconTemplate","text","type","useInkRipple","useSubmitBehavior","templateData","className","accessKey","disabled","focusStateEnabled","height","hint","onKeyDown","rtlEnabled","tabIndex","visible","width"]}}get _viewComponent(){return sd}}(0,C.Z)("dxButton",ud),ud.defaultOptions=dd;var cd=ud,hd=i(5491),pd=i(37063),fd="dx-state-invisible",gd="dx-state-disabled",md="dx-item-content-placeholder",_d=function(e,t,i){var n,o=function(e){n!==e&&(i(e,n),n=e)};return{dispose:e(t,o),force:function(){o(t())}}},vd=P.Z.inherit({ctor:function(e,t,i){this._$element=e,this._options=t,this._rawData=i,(0,pd.nf)(e,this,this._dispose),this._render()},_render:function(){var e=(0,o.Z)("
").addClass(md);this._$element.append(e),this._watchers=[],this._renderWatchers()},_renderWatchers:function(){this._startWatcher("disabled",this._renderDisabled.bind(this)),this._startWatcher("visible",this._renderVisible.bind(this))},_startWatcher:function(e,t){var i=this._rawData,n=this._options.fieldGetter(e),o=_d(this._options.watchMethod(),(function(){return n(i)}),function(e,i){this._dirty=!0,t(e,i)}.bind(this));this._watchers.push(o)},setDataField:function(){if(this._dirty=!1,(0,E.S6)(this._watchers,(function(e,t){t.force()})),this._dirty)return!0},_renderDisabled:function(e,t){this._$element.toggleClass(gd,!!e),this._updateOwnerFocus(e)},_updateOwnerFocus:function(e){var t=this._options.owner;t&&e&&t._resetItemFocus(this._$element)},_renderVisible:function(e,t){this._$element.toggleClass(fd,void 0!==e&&!e)},_dispose:function(){(0,E.S6)(this._watchers,(function(e,t){t.dispose()}))}});vd.getInstance=function(e){return(0,pd.Bt)(e,this)};var yd=vd,Cd=Math.abs,bd="dxhold",xd=750,wd=5,Td=V.Z.inherit({start:function(e){this._startEventData=(0,R.a0)(e),this._startTimer(e)},_startTimer:function(e){var t="timeout"in this?this.timeout:xd;this._holdTimer=setTimeout(function(){this._requestAccept(e),this._fireEvent(bd,e,{target:e.target}),this._forgetAccept()}.bind(this),t)},move:function(e){this._touchWasMoved(e)&&this._cancel(e)},_touchWasMoved:function(e){var t=(0,R.hM)(this._startEventData,(0,R.a0)(e));return Cd(t.x)>wd||Cd(t.y)>wd},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}});(0,F.Z)({emitter:Td,bubble:!0,events:[bd]});var Sd={name:bd},Id=i(51709),Ed="dxContexMenu",Dd=(0,R.V4)("contextmenu",Ed),kd=(0,R.V4)(Sd.name,Ed),Od="dxcontextmenu",Ad=P.Z.inherit({setup:function(e){var t=(0,o.Z)(e);re.Z.on(t,Dd,this._contextMenuHandler.bind(this)),(b.touch||w.Z.isSimulator())&&re.Z.on(t,kd,this._holdHandler.bind(this))},_holdHandler:function(e){(0,R.N5)(e)&&!w.Z.isSimulator()||this._fireContextMenu(e)},_contextMenuHandler:function(e){this._fireContextMenu(e)},_fireContextMenu:function(e){return(0,R.BX)({type:Od,originalEvent:e})},teardown:function(e){re.Z.off(e,"."+Ed)}});(0,Id.Z)(Od,new Ad);var Pd=Od,Md=i(56782),Rd=function(e,t,i,n,o){var r,a=((e,t,i)=>t((()=>e),i))(e,t,(function(e){r&&r(),(0,l.pt)(e)?o(e):r=function(e,t,i,n,o){var r={},a=i.slice(),s=i.map((function(i){var s=n[i];return t(s?()=>s(e):()=>e[i],(function(e){if(r[i]=e,a.length){var t=a.indexOf(i);t>=0&&a.splice(t,1)}a.length||o(r)}))}));return function(){s.forEach((e=>e()))}}(e,t,i,n,o)}));return function(){r&&r(),a&&a()}};class Bd extends Md.S{constructor(e,t,i,n){super(),this._render=e,this._fields=t,this._fieldsMap=n||{},this._watchMethod=i}_renderCore(e){var t=(0,o.Z)(e.container),i=Rd(e.model,this._watchMethod,this._fields,this._fieldsMap,(i=>{t.empty(),this._render(t,i,e.model)}));return re.Z.on(t,nt.x,i),t.contents()}}var Vd="dx-collection",Fd="dx-item",Hd="-content",Ld="dx-item-content-placeholder",Nd="dxItemData",Zd="dxItemIndex",$d="tmpl-",Wd="dxItem",Kd="dx-item-selected",zd="dx-item-response-wait",jd="dx-empty-collection",Ud="dx-template-wrapper",Gd=/^([^.]+\[\d+\]\.)+([\w.]+)$/,qd="item",Yd="up",Xd="down",Jd="left",Qd="right",eu="pageup",tu="pagedown",iu="last",nu="first",ou=G.inherit({_activeStateUnit:"."+Fd,_supportedKeys:function(){var e=function(e){var t=(0,o.Z)(this.option("focusedElement"));t.length&&this._itemClickHandler((0,a.l)({},e,{target:t.get(0),currentTarget:t.get(0)}))},t=function(e,t){(0,R.j1)(t)||(t.preventDefault(),t.stopPropagation(),this._moveFocus(e,t))};return(0,a.l)(this.callBase(),{space:function(t){t.preventDefault(),e.call(this,t)},enter:e,leftArrow:t.bind(this,Jd),rightArrow:t.bind(this,Qd),upArrow:t.bind(this,Yd),downArrow:t.bind(this,Xd),pageUp:t.bind(this,Yd),pageDown:t.bind(this,Xd),home:t.bind(this,nu),end:t.bind(this,iu)})},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{selectOnFocus:!1,loopItemFocus:!0,items:[],itemTemplate:"item",onItemRendered:null,onItemClick:null,onItemHold:null,itemHoldTimeout:750,onItemContextMenu:null,onFocusedItemChanged:null,noDataText:y.Z.format("dxCollectionWidget-noDataText"),encodeNoDataText:!1,dataSource:null,_dataController:null,_itemAttributes:{},itemTemplateProperty:"template",focusOnSelectedItem:!0,focusedElement:null,displayExpr:void 0,disabledExpr:function(e){return e?e.disabled:void 0},visibleExpr:function(e){return e?e.visible:void 0}})},_init:function(){this._compileDisplayGetter(),this._initDataController(),this.callBase(),this._cleanRenderedItems(),this._refreshDataSource()},_compileDisplayGetter:function(){var e=this.option("displayExpr");this._displayGetter=e?(0,r.vb)(this.option("displayExpr")):void 0},_initTemplates:function(){this._initItemsFromMarkup(),this._initDefaultItemTemplate(),this.callBase()},_getAnonymousTemplateName:function(){return qd},_initDefaultItemTemplate:function(){var e=this._getFieldsMap();this._templateManager.addDefaultTemplates({item:new Bd(function(t,i){(0,l.PO)(i)?this._prepareDefaultItemTemplate(i,t):(e&&(0,l.mf)(e.text)&&(i=e.text(i)),t.text(String((0,v.IS)(i,""))))}.bind(this),this._getBindableFields(),this.option("integrationOptions.watchMethod"),e)})},_getBindableFields:function(){return["text","html"]},_getFieldsMap:function(){if(this._displayGetter)return{text:this._displayGetter}},_prepareDefaultItemTemplate:function(e,t){(0,l.$K)(e.text)&&t.text(e.text),(0,l.$K)(e.html)&&t.html(e.html)},_initItemsFromMarkup:function(){var e=(0,hd.hK)(this.$element(),Wd);if(e.length&&!this.option("items").length){var t=e.map((e=>{var{element:t,options:i}=e,n=/\S/.test(t.innerHTML)&&!i.template;return n?i.template=this._prepareItemTemplate(t):(0,o.Z)(t).remove(),i}));this.option("items",t)}},_prepareItemTemplate:function(e){var t=$d+new Li.Z,i=(0,o.Z)(e).detach().clone().removeAttr("data-options").addClass(Ud);return this._saveTemplate(t,i),t},_dataSourceOptions:function(){return{paginate:!1}},_cleanRenderedItems:function(){this._renderedItemsCount=0},_focusTarget:function(){return this.$element()},_focusInHandler:function(e){if(this.callBase.apply(this,arguments),this._isFocusTarget(e.target)){var t=(0,o.Z)(this.option("focusedElement"));if(t.length)this._setFocusedItem(t);else{var i=this._getActiveItem();i.length&&this.option("focusedElement",(0,se.u)(i))}}},_focusOutHandler:function(){this.callBase.apply(this,arguments);var e=(0,o.Z)(this.option("focusedElement"));this._updateFocusedItemState(e,!1)},_getActiveItem:function(e){var t=(0,o.Z)(this.option("focusedElement"));if(t.length)return t;var i=this.option("focusOnSelectedItem")?this.option("selectedIndex"):0,n=this._getActiveElement(),r=n.length-1;return i<0&&(i=e?r:0),n.eq(i)},_moveFocus:function(e){var t,i=this._getAvailableItems();switch(e){case eu:case Yd:t=this._prevItem(i);break;case tu:case Xd:t=this._nextItem(i);break;case Qd:t=this.option("rtlEnabled")?this._prevItem(i):this._nextItem(i);break;case Jd:t=this.option("rtlEnabled")?this._nextItem(i):this._prevItem(i);break;case nu:t=i.first();break;case iu:t=i.last();break;default:return!1}0!==t.length&&this.option("focusedElement",(0,se.u)(t))},_getVisibleItems:function(e){return e=e||this._itemElements(),e.filter(":visible")},_getAvailableItems:function(e){return this._getVisibleItems(e).not(".dx-state-disabled")},_prevItem:function(e){var t=this._getActiveItem(),i=e.index(t),n=e.last(),r=(0,o.Z)(e[i-1]),a=this.option("loopItemFocus");return 0===r.length&&a&&(r=n),r},_nextItem:function(e){var t=this._getActiveItem(!0),i=e.index(t),n=e.first(),r=(0,o.Z)(e[i+1]),a=this.option("loopItemFocus");return 0===r.length&&a&&(r=n),r},_selectFocusedItem:function(e){this.selectItem(e)},_updateFocusedItemState:function(e,t,i){var n=(0,o.Z)(e);n.length&&(this._refreshActiveDescendant(),this._refreshItemId(n,i),this._toggleFocusClass(t,n)),this._updateParentActiveDescendant()},_refreshActiveDescendant:function(e){this.setAria("activedescendant",(0,l.$K)(this.option("focusedElement"))?this.getFocusedItemId():null,e)},_refreshItemId:function(e,t){!t&&this.option("focusedElement")?this.setAria("id",this.getFocusedItemId(),e):this.setAria("id",null,e)},_setFocusedItem:function(e){e&&e.length&&(this._updateFocusedItemState(e,!0),this.onFocusedItemChanged(this.getFocusedItemId()),this.option("selectOnFocus")&&this._selectFocusedItem(e))},_findItemElementByItem:function(e){var t=(0,o.Z)(),i=this;return this.itemElements().each((function(){var n=(0,o.Z)(this);if(n.data(i._itemDataKey())===e)return t=n,!1})),t},_getIndexByItem:function(e){return this.option("items").indexOf(e)},_itemOptionChanged:function(e,t,i,n){var o=this._findItemElementByItem(e);if(o.length){this.constructor.ItemClass.getInstance(o).setDataField(t,i)||this._refreshItem(o,e);var r="disabled"===t&&i;r&&this._resetItemFocus(o)}},_resetItemFocus(e){e.is(this.option("focusedElement"))&&this.option("focusedElement",null)},_refreshItem:function(e){var t=this._getItemData(e),i=e.data(this._itemIndexKey());this._renderItem(this._renderedItemsCount+i,t,null,e)},_updateParentActiveDescendant:v.ZT,_optionChanged:function(e){if("items"===e.name){var t=e.fullName.match(Gd);if(t&&t.length){var i=t[t.length-1],n=e.fullName.replace("."+i,""),r=this.option(n);return void this._itemOptionChanged(r,i,e.value,e.previousValue)}}switch(e.name){case"items":case"_itemAttributes":case"itemTemplateProperty":case"useItemTextAsTitle":this._cleanRenderedItems(),this._invalidate();break;case"dataSource":this._refreshDataSource(),this._renderEmptyMessage();break;case"noDataText":case"encodeNoDataText":this._renderEmptyMessage();break;case"itemTemplate":this._invalidate();break;case"onItemRendered":this._createItemRenderAction();break;case"onItemClick":break;case"onItemHold":case"itemHoldTimeout":this._attachHoldEvent();break;case"onItemContextMenu":this._attachContextMenuEvent();break;case"onFocusedItemChanged":this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged");break;case"selectOnFocus":case"loopItemFocus":case"focusOnSelectedItem":break;case"focusedElement":this._updateFocusedItemState(e.previousValue,!1,!0),this._setFocusedItem((0,o.Z)(e.value));break;case"displayExpr":this._compileDisplayGetter(),this._initDefaultItemTemplate(),this._invalidate();break;case"visibleExpr":case"disabledExpr":this._invalidate();break;default:this.callBase(e)}},_invalidate:function(){return this.option("focusedElement",null),this.callBase.apply(this,arguments)},_loadNextPage:function(){return this._expectNextPageLoading(),this._dataController.loadNextPage()},_expectNextPageLoading:function(){this._startIndexForAppendedItems=0},_expectLastItemLoading:function(){this._startIndexForAppendedItems=-1},_forgetNextPageLoading:function(){this._startIndexForAppendedItems=null},_dataSourceChangedHandler:function(e){var t=this.option("items");this._initialized&&t&&this._shouldAppendItems()?(this._renderedItemsCount=t.length,this._isLastPage()&&-1===this._startIndexForAppendedItems||(this.option().items=t.concat(e.slice(this._startIndexForAppendedItems))),this._forgetNextPageLoading(),this._refreshContent()):this.option("items",e.slice())},_refreshContent:function(){this._prepareContent(),this._renderContent()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this.option("items",this.option("items"))},_shouldAppendItems:function(){return null!=this._startIndexForAppendedItems&&this._allowDynamicItemsAppend()},_allowDynamicItemsAppend:function(){return!1},_clean:function(){this._cleanFocusState(),this._cleanItemContainer(),this._inkRipple&&delete this._inkRipple,this._resetActiveState()},_cleanItemContainer:function(){(0,o.Z)(this._itemContainer()).empty()},_dispose:function(){this.callBase(),clearTimeout(this._itemFocusTimeout)},_refresh:function(){this._cleanRenderedItems(),this.callBase.apply(this,arguments)},_itemContainer:function(){return this.$element()},_itemClass:function(){return Fd},_itemContentClass:function(){return this._itemClass()+Hd},_selectedItemClass:function(){return Kd},_itemResponseWaitClass:function(){return zd},_itemSelector:function(){return"."+this._itemClass()},_itemDataKey:function(){return Nd},_itemIndexKey:function(){return Zd},_itemElements:function(){return this._itemContainer().find(this._itemSelector())},_initMarkup:function(){this.callBase(),this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged"),this.$element().addClass(Vd),this._prepareContent()},_prepareContent:(0,v.Rg)((function(){this._renderContentImpl()})),_renderContent:function(){this._fireContentReadyAction()},_render:function(){this.callBase(),this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent()},_attachClickEvent:function(){var e=this._itemSelector(),t=(0,R.V4)(A.u,this.NAME),i=(0,R.V4)(B.Z.down,this.NAME),n=this,r=new T.Z((function(e){var t=e.event;n._itemPointerDownHandler(t)}));re.Z.off(this._itemContainer(),t,e),re.Z.off(this._itemContainer(),i,e),re.Z.on(this._itemContainer(),t,e,function(e){this._itemClickHandler(e)}.bind(this)),re.Z.on(this._itemContainer(),i,e,(function(e){r.execute({element:(0,o.Z)(e.target),event:e})}))},_itemClickHandler:function(e,t,i){this._itemDXEventHandler(e,"onItemClick",t,i)},_itemPointerDownHandler:function(e){this.option("focusStateEnabled")&&(this._itemFocusHandler=function(){if(clearTimeout(this._itemFocusTimeout),this._itemFocusHandler=null,!e.isDefaultPrevented()){var t=(0,o.Z)(e.target),i=t.closest(this._itemElements()),n=this._closestFocusable(t);i.length&&this._isFocusTarget(null===n||void 0===n?void 0:n.get(0))&&this.option("focusedElement",(0,se.u)(i))}}.bind(this),this._itemFocusTimeout=setTimeout(this._forcePointerDownFocus.bind(this)))},_closestFocusable:function(e){if(e.is(D.KW))return e;e=e.parent();while(e.length&&!ke["default"].isDocument(e.get(0))&&!ke["default"].isDocumentFragment(e.get(0))){if(e.is(D.KW))return e;e=e.parent()}},_forcePointerDownFocus:function(){this._itemFocusHandler&&this._itemFocusHandler()},_updateFocusState:function(){this.callBase.apply(this,arguments),this._forcePointerDownFocus()},_attachHoldEvent:function(){var e=this._itemContainer(),t=this._itemSelector(),i=(0,R.V4)(Sd.name,this.NAME);re.Z.off(e,i,t),re.Z.on(e,i,t,{timeout:this._getHoldTimeout()},this._itemHoldHandler.bind(this))},_getHoldTimeout:function(){return this.option("itemHoldTimeout")},_shouldFireHoldEvent:function(){return this.hasActionSubscription("onItemHold")},_itemHoldHandler:function(e){this._shouldFireHoldEvent()?this._itemDXEventHandler(e,"onItemHold"):e.cancel=!0},_attachContextMenuEvent:function(){var e=this._itemContainer(),t=this._itemSelector(),i=(0,R.V4)(Pd,this.NAME);re.Z.off(e,i,t),re.Z.on(e,i,t,this._itemContextMenuHandler.bind(this))},_shouldFireContextMenuEvent:function(){return this.hasActionSubscription("onItemContextMenu")},_itemContextMenuHandler:function(e){this._shouldFireContextMenuEvent()?this._itemDXEventHandler(e,"onItemContextMenu"):e.cancel=!0},_renderContentImpl:function(){var e=this.option("items")||[];this._renderedItemsCount?this._renderItems(e.slice(this._renderedItemsCount)):this._renderItems(e)},_renderItems:function(e){e.length&&(0,E.S6)(e,function(e,t){this._renderItem(this._renderedItemsCount+e,t)}.bind(this)),this._renderEmptyMessage()},_renderItem:function(e,t,i,n){var o,r=null!==(o=null===e||void 0===e?void 0:e.item)&&void 0!==o?o:e;i=i||this._itemContainer();var a=this._renderItemFrame(r,t,i,n);this._setElementData(a,t,r),a.attr(this.option("_itemAttributes")),this._attachItemClickEvent(t,a);var s=this._getItemContent(a),l=this._renderItemContent({index:r,itemData:t,container:(0,se.u)(s),contentClass:this._itemContentClass(),defaultTemplateName:this.option("itemTemplate")}),d=this;return(0,ot.gx)(l).done((function(i){d._postprocessRenderItem({itemElement:a,itemContent:i,itemData:t,itemIndex:r}),d._executeItemRenderAction(e,t,(0,se.u)(a))})),a},_getItemContent:function(e){var t=e.find("."+Ld);return t.removeClass(Ld),t},_attachItemClickEvent:function(e,t){e&&e.onClick&&re.Z.on(t,A.u,function(i){this._itemEventHandlerByHandler(t,e.onClick,{event:i})}.bind(this))},_renderItemContent:function(e){var t=this._getItemTemplateName(e),i=this._getTemplate(t);this._addItemContentClasses(e);var n=(0,o.Z)(this._createItemByTemplate(i,e));return n.hasClass(Ud)?this._renderItemContentByNode(e,n):e.container},_renderItemContentByNode:function(e,t){return(0,o.Z)(e.container).replaceWith(t),e.container=(0,se.u)(t),this._addItemContentClasses(e),t},_addItemContentClasses:function(e){var t=[Fd+Hd,e.contentClass];(0,o.Z)(e.container).addClass(t.join(" "))},_appendItemToContainer:function(e,t,i){t.appendTo(e)},_renderItemFrame:function(e,t,i,n){var r=(0,o.Z)("
");if(new this.constructor.ItemClass(r,this._itemOptions(),t||{}),n&&n.length?n.replaceWith(r):this._appendItemToContainer.call(this,i,r,e),this.option("useItemTextAsTitle")){var a=this._displayGetter?this._displayGetter(t):t;r.attr("title",a)}return r},_itemOptions:function(){var e=this;return{watchMethod:function(){return e.option("integrationOptions.watchMethod")},owner:e,fieldGetter:function(t){var i=e.option(t+"Expr"),n=(0,r.vb)(i);return n}}},_postprocessRenderItem:v.ZT,_executeItemRenderAction:function(e,t,i){this._getItemRenderAction()({itemElement:i,itemIndex:e,itemData:t})},_setElementData:function(e,t,i){e.addClass([Fd,this._itemClass()].join(" ")).data(this._itemDataKey(),t).data(this._itemIndexKey(),i)},_createItemRenderAction:function(){return this._itemRenderAction=this._createActionByOption("onItemRendered",{element:this.element(),excludeValidators:["disabled","readOnly"],category:"rendering"})},_getItemRenderAction:function(){return this._itemRenderAction||this._createItemRenderAction()},_getItemTemplateName:function(e){var t=e.itemData,i=e.templateProperty||this.option("itemTemplateProperty"),n=t&&t[i];return n||e.defaultTemplateName},_createItemByTemplate:function(e,t){return e.render({model:t.itemData,container:t.container,index:t.index})},_emptyMessageContainer:function(){return this._itemContainer()},_renderEmptyMessage:function(e){e=e||this.option("items");var t=this.option("noDataText"),i=!t||e&&e.length||this._dataController.isLoading();i&&this._$noData&&(this._$noData.remove(),this._$noData=null,this.setAria("label",void 0)),i||(this._$noData=this._$noData||(0,o.Z)("
").addClass("dx-empty-message"),this._$noData.appendTo(this._emptyMessageContainer()),this.option("encodeNoDataText")?this._$noData.text(t):this._$noData.html(t),this.setAria("label",t)),this.$element().toggleClass(jd,!i)},_itemDXEventHandler:function(e,t,i,n){this._itemEventHandler(e.target,t,(0,a.l)(i,{event:e}),n)},_itemEventHandler:function(e,t,i,n){var o=this._createActionByOption(t,(0,a.l)({validatingTargetName:"itemElement"},n));return this._itemEventHandlerImpl(e,o,i)},_itemEventHandlerByHandler:function(e,t,i,n){var o=this._createAction(t,(0,a.l)({validatingTargetName:"itemElement"},n));return this._itemEventHandlerImpl(e,o,i)},_itemEventHandlerImpl:function(e,t,i){var n=this._closestItemElement((0,o.Z)(e)),r=(0,a.l)({},i);return t((0,a.l)(i,this._extendActionArgs(n),r))},_extendActionArgs:function(e){return{itemElement:(0,se.u)(e),itemIndex:this._itemElements().index(e),itemData:this._getItemData(e)}},_closestItemElement:function(e){return(0,o.Z)(e).closest(this._itemSelector())},_getItemData:function(e){return(0,o.Z)(e).data(this._itemDataKey())},_getSummaryItemsWidth:function(e,t){var i=0;return e&&(0,E.S6)(e,(function(e,o){i+=(0,n.Y_)(o,t||!1)})),i},getFocusedItemId:function(){return this._focusedItemId||(this._focusedItemId="dx-"+new Li.Z),this._focusedItemId},itemElements:function(){return this._itemElements()},itemsContainer:function(){return this._itemContainer()}}).include(g.Z);ou.ItemClass=yd;var ru=ou,au=P.Z.abstract,su=P.Z.inherit({ctor:function(e){this._collectionWidget=e},getIndexByItemData:au,getItemDataByIndex:au,getKeysByItems:au,getItemsByKeys:au,itemsGetter:au,getKeyByIndex:function(e){var t=this._denormalizeItemIndex(e);return this.getKeysByItems([this.getItemDataByIndex(t)])[0]},_equalKeys:function(e,t){return this._collectionWidget._isKeySpecified()?(0,v.bY)(e,t):e===t},beginCache:function(){this._cache={}},endCache:function(){this._cache=null},getIndexByKey:au,getNormalizedIndex:function(e){return this._isNormalizedItemIndex(e)?e:this._isItemIndex(e)?this._normalizeItemIndex(e):this._isNode(e)?this._getNormalizedItemIndex(e):this._normalizeItemIndex(this.getIndexByItemData(e))},getIndex:function(e){return this._isNormalizedItemIndex(e)?this._denormalizeItemIndex(e):this._isItemIndex(e)?e:this._isNode(e)?this._denormalizeItemIndex(this._getNormalizedItemIndex(e)):this.getIndexByItemData(e)},getItemElement:function(e){if(this._isNormalizedItemIndex(e))return this._getItemByNormalizedIndex(e);if(this._isItemIndex(e))return this._getItemByNormalizedIndex(this._normalizeItemIndex(e));if(this._isNode(e))return(0,o.Z)(e);var t=this._normalizeItemIndex(this.getIndexByItemData(e));return this._getItemByNormalizedIndex(t)},_isNode:e=>ke["default"].isNode(e&&(0,l.ZU)(e)?e.get(0):e),deleteItemAtIndex:au,itemPlacementFunc:function(e,t){return this._itemsFromSameParent(e,t)&&e-1?this._collectionWidget._itemElements().eq(e):null},_itemsFromSameParent:function(){return!0}}),uu=du,cu=i(70710),hu=i(73322),pu=i(69164),fu=P.Z.inherit({ctor:function(e){this.options=e,this._setOption("disabledItemKeys",[]),this._clearItemKeys()},_clearItemKeys:function(){this._setOption("addedItemKeys",[]),this._setOption("removedItemKeys",[]),this._setOption("removedItems",[]),this._setOption("addedItems",[])},validate:v.ZT,_setOption:function(e,t){this.options[e]=t},onSelectionChanged:function(){var e=this.options.addedItemKeys,t=this.options.removedItemKeys,i=this.options.addedItems,n=this.options.removedItems,o=this.options.selectedItems,r=this.options.selectedItemKeys,a=this.options.onSelectionChanged||v.ZT;this._clearItemKeys(),a({selectedItems:o,selectedItemKeys:r,addedItemKeys:e,removedItemKeys:t,addedItems:i,removedItems:n})},equalKeys:function(e,t){return this.options.equalByReference&&(0,l.Kn)(e)&&(0,l.Kn)(t)?e===t:(0,v.bY)(e,t)},getSelectableItems:function(e){return e.filter((function(e){return!(null!==e&&void 0!==e&&e.disabled)}))},_clearSelection:function(e,t,i,n){return e=e||[],e=Array.isArray(e)?e:[e],this.validate(),this.selectedItemKeys(e,t,i,n)},_removeTemplateProperty:function(e){return Array.isArray(e)?e.map((e=>this._removeTemplateProperty(e))):((0,l.Kn)(e)&&delete e.template,e)},_loadFilteredData:function(e,t,i,n){var o=encodeURI(JSON.stringify(this._removeTemplateProperty(e))).length,r=this.options.maxFilterLengthInRequest&&o>this.options.maxFilterLengthInRequest,a=new ot.BH,s={filter:r?void 0:e,select:r?this.options.dataFields():i||this.options.dataFields()};return e&&0===e.length?a.resolve([]):this.options.load(s).done((function(i){var o=(0,l.PO)(i)?i.data:i;t&&!n?o=o.filter(t):r&&(o=(0,pu.Z)(o).filter(e).toArray()),a.resolve(o)})).fail(a.reject.bind(a)),a},updateSelectedItemKeyHash:function(e){for(var t=0;t!(null!==e&&void 0!==e&&e.disabled)));t&&(i=(0,pu.Z)(i).filter(t).toArray());var n=i.length,o=e.length-this.getSelectableItems(e).length;return n?n>=this.options.totalCount()-o||void 0:this._isAnyItemSelected(e)},_getVisibleSelectAllState:function(){for(var e=this.getSelectableItems(this.options.plainItems()),t=!1,i=!1,n=0;n1&&(0,l.HD)(e[1])&&e[1]!==t&&(e=[e]),e.length&&e.push(t),e},_denormalizeFilter:function(e){return e&&(0,l.HD)(e[0])&&(e=[e]),e},_isOnlyNegativeFiltersLeft:function(e){return e.every(((e,t)=>t%2===0?Array.isArray(e)&&"!"===e[0]:"and"===e))},_addSelectionFilter:function(e,t,i){var n=e?["!",t]:t,o=e?"and":"or",r=!0,a=this.options.selectionFilter||[];if(a=this._denormalizeFilter(a),a&&a.length){var s=this._removeSameFilter(a,t,e,i),l=this._removeSameFilter(a,t,!e),d=e&&(-1!==s||-1!==l)&&this._isOnlyNegativeFiltersLeft(a);d&&(a=[]);var u=this._isKeyFilter(t)&&this._hasKeyFiltersOnlyStartingFromIndex(a,l);r=t.length&&!u,r&&(a=this._addFilterOperator(a,o))}r&&a.push(n),a=this._normalizeFilter(a),this._setOption("selectionFilter",e||a.length?a:null)},_normalizeFilter:function(e){return e&&1===e.length&&(e=e[0]),e},_removeFilterByIndex:function(e,t,i){var n=e[1];t>0?e.splice(t-1,2):e.splice(t,2),i&&"and"===n&&e.splice(0,e.length)},_isSimpleKeyFilter:function(e,t){return 3===e.length&&e[0]===t&&"="===e[1]},_isKeyFilter:function(e){if(2===e.length&&"!"===e[0])return this._isKeyFilter(e[1]);var t=this._getKeyExpr();if(Array.isArray(t)){if(e.length!==2*t.length-1)return!1;for(var i=0;i0&&"and"!==e[2*i-1])return!1;if(!this._isSimpleKeyFilter(e[2*i],t[i]))return!1}return!0}return this._isSimpleKeyFilter(e,t)},_hasKeyFiltersOnlyStartingFromIndex:function(e,t){if(t>=0){for(var i=t;i=0)return this._removeFilterByIndex(e,o,n),o;for(var r=0;r2){var a=this._removeSameFilter(e[r],t,!1,n);if(a>=0)return e[r].length?1===e[r].length&&(e[r]=e[r][0]):this._removeFilterByIndex(e,r,n),a}return-1},getSelectAllState:function(){var e=this.options.filter(),t=this.options.selectionFilter;return!t||!!t.length&&(e&&e.length?(t=this._denormalizeFilter(t),!!this._isLastSubFilter(t,e)||!this._isLastSubFilter(t,["!",e])&&void 0):void 0)}}),mu=i(37045),_u=function(e,t){var i=t(e);if((0,l.Kn)(i))try{return JSON.stringify(i)}catch(n){return i}return i},vu=function(e,t,i,n){var o=_u(e,n);return t[i[o]]},yu=function(e,t){if(e.length!==t.length)return!1;for(var i=0;i0&&n.push(t?"and":"or"),a=(0,l.HD)(i)?r(i,e):function(e,i){for(var n=[],o=0,a=e.length;o0&&n.push(t?"or":"and"),n.push(d)}return n}(i,e),n.push(a)})),n&&1===n.length&&(n=n[0]),n},this.getCombinedFilter=function(e,i){var n=this.getExpr(e),o=n;return t&&i&&(n?(o=[],o.push(n),o.push(i)):o=i),o};var n=function(e,t,i){return Array.isArray(i)?e.map((e=>t(e))):e};function o(o,r,a,s,d){var u,c,h=r(d);if(!a&&(u=(0,v.k3)(h),!(0,l.Kn)(u))){var p=function(t,o){if(!i){i={};for(var r=n(e,t,o),a=0;a":"=",i]}},xu=fu.inherit({ctor:function(e){this.callBase(e),this._initSelectedItemKeyHash()},_initSelectedItemKeyHash:function(){this._setOption("keyHashIndices",this.options.equalByReference?null:{})},getSelectedItemKeys:function(){return this.options.selectedItemKeys.slice(0)},getSelectedItems:function(){return this.options.selectedItems.slice(0)},_preserveSelectionUpdate:function(e,t){var i,n,o,r=this.options.keyOf;if(r){var a=t&&e.length>1&&!this.options.equalByReference;for(a&&(i={}),o=0;o=0&&(i[n]=!0)):this.addSelectedItem(l,s)}a&&this._batchRemoveSelectedItems(i)}},_batchRemoveSelectedItems:function(e){var t=this.options.selectedItemKeys.slice(0),i=this.options.selectedItems.slice(0);this.options.selectedItemKeys.length=0,this.options.selectedItems.length=0;for(var n=0;n1&&t&&(i=i.filter((function(e){return!t[e]}))),i&&i[0]>=0?i[0]:-1},_indexOfSelectedItemKey:function(e,t){var i;return i=this.options.equalByReference?this.options.selectedItemKeys.indexOf(e):(0,l.Kn)(e)?this._getSelectedIndexByKey(e,t):this._getSelectedIndexByHash(e,t),i},_shiftSelectedKeyIndices:function(e){for(var t=e;te&&o[r]--}},removeSelectedItem:function(e,t,i){if(this.options.ignoreDisabledItems||!i){var n=this._getKeyHash(e),o=!!t,r=this._indexOfSelectedItemKey(n,t);if(r<0)return r;if(this.options.removedItemKeys.push(e),this.options.removedItems.push(this.options.selectedItems[r]),o)return r;if(this.options.selectedItemKeys.splice(r,1),this.options.selectedItems.splice(r,1),(0,l.Kn)(n)||!this.options.keyHashIndices)return r;var a=this.options.keyHashIndices[n];return a?(a.shift(),a.length||delete this.options.keyHashIndices[n],this._shiftSelectedKeyIndices(r),r):r}},_updateAddedItemKeys:function(e,t){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{},i=this.options.keyOf(e);return this.isItemKeySelected(i,t)},isItemKeySelected:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this._isItemSelectionInProgress(e,t.checkPending);if(!i){var n=this._getKeyHash(e),o=this._indexOfSelectedItemKey(n);i=-1!==o}return i},getSelectAllState:function(e){return e?this._getVisibleSelectAllState():this._getFullSelectAllState()}}),wu=P.Z.inherit({ctor:function(e){this.options=(0,a.l)(this._getDefaultOptions(),e,{selectedItemKeys:e.selectedKeys||[]}),this._selectionStrategy=this.options.deferred?new gu(this.options):new xu(this.options),this._focusedItemIndex=-1,this.options.equalByReference||this._selectionStrategy.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_getDefaultOptions:function(){return{allowNullValue:!1,deferred:!1,equalByReference:!1,mode:"multiple",selectedItems:[],selectionFilter:[],maxFilterLengthInRequest:0,onSelectionChanged:v.ZT,key:v.ZT,keyOf:function(e){return e},load:function(){return(new ot.BH).resolve([])},totalCount:function(){return-1},isSelectableItem:function(){return!0},isItemSelected:function(){return!1},getItemData:function(e){return e},dataFields:v.ZT,filter:v.ZT}},validate:function(){this._selectionStrategy.validate()},getSelectedItemKeys:function(){return this._selectionStrategy.getSelectedItemKeys()},getSelectedItems:function(){return this._selectionStrategy.getSelectedItems()},selectionFilter:function(e){if(void 0===e)return this.options.selectionFilter;var t=this.options.selectionFilter!==e&&JSON.stringify(this.options.selectionFilter)!==JSON.stringify(e);this.options.selectionFilter=e,t&&this.onSelectionChanged()},setSelection:function(e,t){return this.selectedItemKeys(e,!1,!1,!1,t)},select:function(e){return this.selectedItemKeys(e,!0)},deselect:function(e){return this.selectedItemKeys(e,!0,!0)},selectedItemKeys:function(e,t,i,n,o){var r;return e=null!==(r=e)&&void 0!==r?r:[],e=Array.isArray(e)?e:[e],this.validate(),this._selectionStrategy.selectedItemKeys(e,t,i,n,o)},clearSelection:function(){return this.selectedItemKeys([])},_addSelectedItem:function(e,t){this._selectionStrategy.addSelectedItem(t,e)},_removeSelectedItem:function(e){this._selectionStrategy.removeSelectedItem(e)},_setSelectedItems:function(e,t){this._selectionStrategy.setSelectedItems(e,t)},onSelectionChanged:function(){this._selectionStrategy.onSelectionChanged()},changeItemSelection:function(e,t,i){var n,o,r,a,s,d=this.options.plainItems(),u=d[e],c=null===(n=(o=this.options).allowLoadByRange)||void 0===n?void 0:n.call(o),h=!1,p=!1,f=e=>e>=0&&!d.filter((t=>t.loadIndex===e)).length;if(c&&(s=u.loadIndex-e,e=u.loadIndex,h=f(this._focusedItemIndex),(0,l.$K)(this._shiftFocusedItemIndex)&&(p=f(this._shiftFocusedItemIndex))),!this.isSelectable()||!this.isDataItem(u))return!1;var g=this.options.getItemData(u),m=this.options.keyOf(g);if(t=t||{},t.shift&&"multiple"===this.options.mode&&this._focusedItemIndex>=0)h||p?(r=e!==this._shiftFocusedItemIndex||this._focusedItemIndex!==this._shiftFocusedItemIndex,r&&(a=this.changeItemSelectionWhenShiftKeyInVirtualPaging(e))):r=this.changeItemSelectionWhenShiftKeyPressed(e,d,s);else if(t.control){if(this._resetItemSelectionWhenShiftKeyPressed(),!i){var _=this._selectionStrategy.isItemDataSelected(g);"single"===this.options.mode&&this.clearSelectedItems(),_?this._removeSelectedItem(m):this._addSelectedItem(g,m)}r=!0}else{this._resetItemSelectionWhenShiftKeyPressed();var v=this._selectionStrategy.equalKeys(this.options.selectedItemKeys[0],m);1===this.options.selectedItemKeys.length&&v||(this._setSelectedItems([m],[g]),r=!0)}return r?((0,ot.gx)(a).done((()=>{this._focusedItemIndex=e,!i&&this.onSelectionChanged()})),!0):void 0},isDataItem:function(e){return this.options.isSelectableItem(e)},isSelectable:function(){return"single"===this.options.mode||"multiple"===this.options.mode},isItemDataSelected:function(e){return this._selectionStrategy.isItemDataSelected(e,{checkPending:!0})},isItemSelected:function(e,t){return this._selectionStrategy.isItemKeySelected(e,t)},_resetItemSelectionWhenShiftKeyPressed:function(){delete this._shiftFocusedItemIndex},_resetFocusedItemIndex:function(){this._focusedItemIndex=-1},changeItemSelectionWhenShiftKeyInVirtualPaging:function(e){var t=this.options.getLoadOptions(e,this._focusedItemIndex,this._shiftFocusedItemIndex),i=new ot.BH,n=t.skip;return this.options.load(t).done((t=>{this.changeItemSelectionWhenShiftKeyPressed(e,t,n),i.resolve()})),i.promise()},changeItemSelectionWhenShiftKeyPressed:function(e,t,i){var n,o,r,a,s,d=!1,u=(0,l.$K)(i),c=u?this._focusedItemIndex-i:this._focusedItemIndex,h=this.options.keyOf,p=t[c],f=this.options.getItemData(p),g=h(f),m=p&&this.isItemDataSelected(f);if((0,l.$K)(this._shiftFocusedItemIndex)||(this._shiftFocusedItemIndex=this._focusedItemIndex),this._shiftFocusedItemIndex!==this._focusedItemIndex)for(n=this._focusedItemIndex=0?i:e._getItemsCount(t)},key:e.key.bind(e),keyOf:e.keyOf.bind(e),load:function(t){var i,n=e._dataController;return t.customQueryParams=null===(i=n.loadOptions())||void 0===i?void 0:i.customQueryParams,t.userData=n.userData(),n.store()?n.loadFromStore(t).done((function(t){if(!e._disposed){var i=(0,hu.r6)(t).data;n.applyMapFunction(i)}})):(new ot.BH).resolve(this.plainItems())},dataFields:function(){return e._dataController.select()},plainItems:t.bind(e._editStrategy)})},_getItemsCount:function(e){return e.reduce(((e,t)=>e+(t.items?this._getItemsCount(t.items):1)),0)},_initEditStrategy:function(){var e=uu;this._editStrategy=new e(this)},_getSelectedItemIndices:function(e){var t=this,i=[];return e=e||this._selection.getSelectedItemKeys(),t._editStrategy.beginCache(),(0,E.S6)(e,(function(e,n){var o=t._getIndexByKey(n);Iu(o)&&i.push(o)})),t._editStrategy.endCache(),i},_initMarkup:function(){this._rendering=!0,this._dataController.isLoading()||this._syncSelectionOptions().done((()=>this._normalizeSelectedItems())),this.callBase()},_render:function(){this.callBase(),this._rendering=!1},_fireContentReadyAction:function(){this._rendering=!1,this._rendered=!0,this.callBase.apply(this,arguments)},_syncSelectionOptions:function(e){var t,i,n,o;switch(e=e||this._chooseSelectOption(),e){case"selectedIndex":t=this._editStrategy.getItemDataByIndex(this.option("selectedIndex")),(0,l.$K)(t)?(this._setOptionWithoutOptionChange("selectedItems",[t]),this._setOptionWithoutOptionChange("selectedItem",t),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionWithoutOptionChange("selectedItems",[]),this._setOptionWithoutOptionChange("selectedItemKeys",[]),this._setOptionWithoutOptionChange("selectedItem",null));break;case"selectedItems":if(o=this.option("selectedItems")||[],i=o.length?this._editStrategy.getIndexByItemData(o[0]):Su,this.option("selectionRequired")&&!Iu(i))return this._syncSelectionOptions("selectedIndex");this._setOptionWithoutOptionChange("selectedItem",o[0]),this._setOptionWithoutOptionChange("selectedIndex",i),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems(o));break;case"selectedItem":if(t=this.option("selectedItem"),i=this._editStrategy.getIndexByItemData(t),this.option("selectionRequired")&&!Iu(i))return this._syncSelectionOptions("selectedIndex");(0,l.$K)(t)?(this._setOptionWithoutOptionChange("selectedItems",[t]),this._setOptionWithoutOptionChange("selectedIndex",i),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionWithoutOptionChange("selectedItems",[]),this._setOptionWithoutOptionChange("selectedItemKeys",[]),this._setOptionWithoutOptionChange("selectedIndex",Su));break;case"selectedItemKeys":if(n=this.option("selectedItemKeys"),this.option("selectionRequired")){var r=this._getIndexByKey(n[0]);if(!Iu(r))return this._syncSelectionOptions("selectedIndex")}return this._selection.setSelection(n)}return(new ot.BH).resolve().promise()},_chooseSelectOption:function(){var e="selectedIndex",t=function(e){var t=this.option(e),i=(0,l.$K)(t)&&t.length;return i||e in this._userOptions}.bind(this);return t("selectedItems")?e="selectedItems":t("selectedItem")?e="selectedItem":t("selectedItemKeys")&&(e="selectedItemKeys"),e},_compareKeys:function(e,t){if(e.length!==t.length)return!1;for(var i=0;i1||!e.length&&this.option("selectionRequired")&&this.option("items")&&this.option("items").length){var t=this._selection.getSelectedItems(),i=void 0===e[0]?t[0]:e[0];return void 0===i&&(i=this._editStrategy.itemsGetter()[0]),this.option("grouped")&&i&&i.items&&(i.items=[i.items[0]]),this._selection.setSelection(this._getKeysByItems([i])),this._setOptionWithoutOptionChange("selectedItems",[i]),this._syncSelectionOptions("selectedItems")}this._selection.setSelection(this._getKeysByItems(e))}else{var n=this._getKeysByItems(this.option("selectedItems")),o=this._selection.getSelectedItemKeys();this._compareKeys(o,n)||this._selection.setSelection(n)}return(new ot.BH).resolve().promise()},_itemClickHandler:function(e){var t=(new ot.BH).resolve(),i=this.callBase;this._createAction(function(e){var i;t=null!==(i=this._itemSelectHandler(e.event))&&void 0!==i?i:t}.bind(this),{validatingTargetName:"itemElement"})({itemElement:(0,o.Z)(e.currentTarget),event:e}),t.always((()=>{i.apply(this,arguments)}))},_itemSelectHandler:function(e){var t,i;if(this.option("selectionByClick")){var n=e.currentTarget;return this.isItemSelected(n)?this.unselectItem(e.currentTarget):i=this.selectItem(e.currentTarget),null===(t=i)||void 0===t?void 0:t.promise()}},_selectedItemElement:function(e){return this._itemElements().eq(e)},_postprocessRenderItem:function(e){if("none"!==this.option("selectionMode")){var t=(0,o.Z)(e.itemElement),i=this._editStrategy.getNormalizedIndex(t),n=this._isItemSelected(i);this._processSelectableItem(t,n)}},_processSelectableItem:function(e,t){e.toggleClass(this._selectedItemClass(),t),this._setAriaSelected(e,String(t))},_updateSelectedItems:function(e){var t=this,i=e.addedItemKeys,n=e.removedItemKeys;if(t._rendered&&(i.length||n.length)){var o=t._selectionChangePromise;if(!t._rendering){var r,a=[],s=[];t._editStrategy.beginCache();for(var l=0;lthis._normalizeSelectedItems()));break;case"keyExpr":this._initKeyGetter();break;case"selectionRequired":this._normalizeSelectedItems();break;case"selectionByClick":case"onSelectionChanged":case"onItemDeleting":case"onItemDeleted":case"onItemReordered":case"maxFilterLengthInRequest":break;default:this.callBase(e)}},_clearSelectedItems:function(){this._setOptionWithoutOptionChange("selectedItems",[]),this._syncSelectionOptions("selectedItems")},_waitDeletingPrepare:function(e){if(e.data(Tu))return(new ot.BH).resolve().promise();e.data(Tu,!0);var t=new ot.BH,i={cancel:!1},n=this._itemEventHandler(e,"onItemDeleting",i,{excludeValidators:["disabled","readOnly"]});return(0,ot.gx)(n).always(function(o){var r=!n,a=!r&&"resolved"===n.state(),s=!!arguments.length,l=r||a&&!s||a&&o;(0,ot.gx)((0,ot.p4)(i.cancel)).always((function(){e.data(Tu,!1)})).done((function(e){l&&!e?t.resolve():t.reject()})).fail(t.reject)}.bind(this)),t.promise()},_deleteItemFromDS:function(e){var t=this._dataController,i=new ot.BH,n=this.option("disabled"),o=t.store();if(!o)return(new ot.BH).resolve().promise();if(!o.remove)throw Xt.Z.Error("E1011");return this.option("disabled",!0),o.remove(t.keyOf(this._getItemData(e))).done((function(e){void 0!==e?i.resolve():i.reject()})).fail((function(){i.reject()})),i.always(function(){this.option("disabled",n)}.bind(this)),i},_tryRefreshLastPage:function(){var e=new ot.BH;return this._isLastPage()||this.option("grouped")?e.resolve():this._refreshLastPage().done((function(){e.resolve()})),e.promise()},_refreshLastPage:function(){return this._expectLastItemLoading(),this._dataController.load()},_updateSelectionAfterDelete:function(e){var t=this._getKeyByIndex(e);this._selection.deselect([t])},_updateIndicesAfterIndex:function(e){for(var t=this._itemElements(),i=e+1;i{t.resolve(n)})),t.promise()},_createItemByTemplate(e,t){return e.render({model:t.itemData,container:t.container,index:t.index,onRendered:()=>{this._deferredItems[t.index].resolve()}})},_postProcessRenderItems:v.ZT,_renderItemsAsync(){var e=new ot.BH;return ot.gx.apply(this,this._deferredItems).done((()=>{this._postProcessRenderItems(),e.resolve()})),e.promise()},_clean(){this.callBase(),this._deferredItems=[]}}),Ou=ku,Au="dx-toolbar",Pu="dx-toolbar-before",Mu="dx-toolbar-center",Ru="dx-toolbar-after",Bu="dx-toolbar-mini",Vu="dx-toolbar-item",Fu="dx-toolbar-label",Hu="dx-toolbar-button",Lu="dx-toolbar-items-container",Nu="dx-toolbar-group",Zu="dx-toolbar-compact",$u="text",Wu="default",Ku="contained",zu="dxToolbarItemDataKey",ju=15;class Uu extends Ou{_getSynchronizableOptionsForCreateComponent(){return super._getSynchronizableOptionsForCreateComponent().filter((e=>"disabled"!==e))}_initTemplates(){super._initTemplates();var e=new Bd(function(e,t,i){if((0,l.PO)(t)){var n,{text:o,html:r,widget:a}=t;if(o&&e.text(o).wrapInner("
"),r&&e.html(r),"dxDropDownButton"===a)t.options=null!==(n=t.options)&&void 0!==n?n:{},(0,l.$K)(t.options.stylingMode)||(t.options.stylingMode=this.option("useFlatButtons")?$u:Ku);if("dxButton"===a){var s,d,u,c;if(this.option("useFlatButtons"))t.options=null!==(s=t.options)&&void 0!==s?s:{},t.options.stylingMode=null!==(d=t.options.stylingMode)&&void 0!==d?d:$u;if(this.option("useDefaultButtons"))t.options=null!==(u=t.options)&&void 0!==u?u:{},t.options.type=null!==(c=t.options.type)&&void 0!==c?c:Wu}}else e.text(String(t));this._getTemplate("dx-polymorph-widget").render({container:e,model:i,parent:this})}.bind(this),["text","html","widget","options"],this.option("integrationOptions.watchMethod"));this._templateManager.addDefaultTemplates({item:e,menuItem:e})}_getDefaultOptions(){return(0,a.l)(super._getDefaultOptions(),{renderAs:"topToolbar",grouped:!1,useFlatButtons:!1,useDefaultButtons:!1})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:function(){return(0,x.x2)()},options:{useFlatButtons:!0}}])}_itemContainer(){return this._$toolbarItemsContainer.find([".".concat(Pu),".".concat(Mu),".".concat(Ru)].join(","))}_itemClass(){return Vu}_itemDataKey(){return zu}_dimensionChanged(){this._arrangeItems(),this._applyCompactMode()}_initMarkup(){this._renderToolbar(),this._renderSections(),super._initMarkup()}_render(){super._render(),this._renderItemsAsync(),this._updateDimensionsInMaterial()}_postProcessRenderItems(){this._arrangeItems()}_renderToolbar(){this.$element().addClass(Au),this._$toolbarItemsContainer=(0,o.Z)("
").addClass(Lu).appendTo(this.$element()),this.setAria("role","toolbar")}_renderSections(){var e=this._$toolbarItemsContainer;(0,E.S6)(["before","center","after"],((t,i)=>{var n="dx-toolbar-".concat(i),r=e.find(".".concat(n));r.length||(this["_$".concat(i,"Section")]=(0,o.Z)("
").addClass(n).appendTo(e))}))}_arrangeItems(e){var t;e=null!==(t=e)&&void 0!==t?t:(0,n.dz)(this.$element()),this._$centerSection.css({margin:"0 auto",float:"none"});var i=Pe(this._$beforeSection.get(0)),o=Pe(this._$afterSection.get(0));this._alignCenterSection(i,o,e);var r=this._$toolbarItemsContainer.find(".".concat(Fu)).eq(0),a=r.parent();if(r.length){var s=i.width?i.width:r.position().left,l=a.hasClass(Pu)?0:s,d=a.hasClass(Ru)?0:o.width,u=0;a.children().not(".".concat(Fu)).each((function(){u+=(0,n.Y_)(this)}));var c=e-u,h=Math.max(c-l-d,0);if(a.hasClass(Pu))this._alignSection(this._$beforeSection,h);else{var p=(0,n.Y_)(r)-(0,n.dz)(r);r.css("maxWidth",h-p)}}}_alignCenterSection(e,t,i){this._alignSection(this._$centerSection,i-e.width-t.width);var n=this.option("rtlEnabled"),o=n?t:e,r=n?e:t,a=Pe(this._$centerSection.get(0));(o.right>a.left||a.right>r.left)&&this._$centerSection.css({marginLeft:o.width,marginRight:r.width,float:o.width>r.width?"none":"right"})}_alignSection(e,t){var i=e.find(".".concat(Fu)),n=i.toArray();t-=this._getCurrentLabelsPaddings(n);var o=this._getCurrentLabelsWidth(n),r=Math.abs(o-t);t(0,n.dz)(e)&&e.addClass(Zu)}_getCurrentLabelsWidth(e){var t=0;return e.forEach((function(e,i){t+=(0,n.Y_)(e)})),t}_getCurrentLabelsPaddings(e){var t=0;return e.forEach((function(e,i){t+=(0,n.Y_)(e)-(0,n.dz)(e)})),t}_renderItem(e,t,i,n){var o,r,a=null!==(o=t.location)&&void 0!==o?o:"center",s=null!==i&&void 0!==i?i:this["_$".concat(a,"Section")],l=!!(null!==(r=t.text)&&void 0!==r?r:t.html),d=super._renderItem(e,t,s,n);return d.toggleClass(Hu,!l).toggleClass(Fu,l).addClass(t.cssClass),d}_renderGroupedItems(){(0,E.S6)(this.option("items"),((e,t)=>{var i,n=t.items,r=(0,o.Z)("
").addClass(Nu),a=null!==(i=t.location)&&void 0!==i?i:"center";n&&n.length&&((0,E.S6)(n,((e,t)=>{this._renderItem(e,t,r,null)})),this._$toolbarItemsContainer.find(".dx-toolbar-".concat(a)).append(r))}))}_renderItems(e){var t=this.option("grouped")&&e.length&&e[0].items;t?this._renderGroupedItems():super._renderItems(e)}_getToolbarItems(){var e;return null!==(e=this.option("items"))&&void 0!==e?e:[]}_renderContentImpl(){var e=this._getToolbarItems();this.$element().toggleClass(Bu,0===e.length),this._renderedItemsCount?this._renderItems(e.slice(this._renderedItemsCount)):this._renderItems(e),this._applyCompactMode()}_renderEmptyMessage(){}_clean(){this._$toolbarItemsContainer.children().empty(),this.$element().empty(),delete this._$beforeSection,delete this._$centerSection,delete this._$afterSection}_visibilityChanged(e){e&&this._arrangeItems()}_isVisible(){return(0,n.dz)(this.$element())>0&&(0,n.Cr)(this.$element())>0}_getIndexByItem(e){return this._getToolbarItems().indexOf(e)}_itemOptionChanged(e,t,i){super._itemOptionChanged.apply(this,[e,t,i]),this._arrangeItems()}_optionChanged(e){var{name:t,value:i}=e;switch(t){case"width":super._optionChanged.apply(this,arguments),this._dimensionChanged();break;case"renderAs":case"useFlatButtons":case"useDefaultButtons":this._invalidate();break;case"compactMode":this._applyCompactMode();break;case"grouped":break;default:super._optionChanged.apply(this,arguments)}}_dispose(){super._dispose(),clearTimeout(this._waitParentAnimationTimeout)}_updateDimensionsInMaterial(){(0,x.x2)()&&Promise.all([(()=>new Promise((e=>{var t=()=>{var t=!0;return this.$element().parents().each(((e,i)=>{if(Ut.isAnimating((0,o.Z)(i)))return t=!1,!1})),t&&e(),t},i=()=>{clearTimeout(this._waitParentAnimationTimeout),this._waitParentAnimationTimeout=setTimeout((()=>t()||i()),ju)};i()})))(),(()=>{var e=this.$element().find(".".concat(Fu)),t=[];return e.each(((e,i)=>{var n=(0,o.Z)(i).text(),r=(0,o.Z)(i).css("fontWeight");t.push((0,x.Ih)(n,r))})),Promise.all(t)})()]).then((()=>{this._dimensionChanged()}))}}(0,C.Z)("dxToolbarBase",Uu);var Gu=Uu,qu=i(67892),Yu=["fullScreen","forceApplyBindings","dragOutsideBoundary","dragAndResizeArea","outsideDragFactor"],Xu=(0,s.Jj)();class Ju extends pi{constructor(e){var{fullScreen:t,forceApplyBindings:i,dragOutsideBoundary:n,dragAndResizeArea:o,outsideDragFactor:r}=e,a=(0,Vs.Z)(e,Yu);super(a),this._props=(0,hn.Z)({},this._props,{fullScreen:t,forceApplyBindings:i,dragOutsideBoundary:n,dragAndResizeArea:o,outsideDragFactor:r}),this._$dragResizeContainer=void 0,this._outsideDragFactor=void 0,this._lastPositionBeforeFullScreen=void 0,this._updateDragResizeContainer(),this._updateOutsideDragFactor()}set fullScreen(e){this._props.fullScreen=e,e?this._fullScreenEnabled():this._fullScreenDisabled()}get $dragResizeContainer(){return this._$dragResizeContainer}get outsideDragFactor(){return this._outsideDragFactor}set dragAndResizeArea(e){this._props.dragAndResizeArea=e,this._updateDragResizeContainer()}set dragOutsideBoundary(e){this._props.dragOutsideBoundary=e,this._updateDragResizeContainer(),this._updateOutsideDragFactor()}set outsideDragFactor(e){this._props.outsideDragFactor=e,this._updateOutsideDragFactor()}updateContainer(e){super.updateContainer(e),this._updateDragResizeContainer()}dragHandled(){this.restorePositionOnNextRender(!1)}resizeHandled(){this.restorePositionOnNextRender(!1)}positionContent(){var e,t;this._props.fullScreen?(ve(this._$content,{top:0,left:0}),this.detectVisualPositionChange()):(null===(e=(t=this._props).forceApplyBindings)||void 0===e||e.call(t),!this._shouldRenderContentInitialPosition&&this._lastPositionBeforeFullScreen?(ve(this._$content,this._lastPositionBeforeFullScreen),this._lastPositionBeforeFullScreen=void 0,this.detectVisualPositionChange()):super.positionContent())}_updateOutsideDragFactor(){this._outsideDragFactor=this._getOutsideDragFactor()}_getOutsideDragFactor(){return this._props.dragOutsideBoundary?1:this._props.outsideDragFactor}_updateDragResizeContainer(){this._$dragResizeContainer=this._getDragResizeContainer()}_getDragResizeContainer(){if(this._props.dragOutsideBoundary)return(0,o.Z)(Xu);if(this._props.dragAndResizeArea)return(0,o.Z)(this._props.dragAndResizeArea);var e=(0,Yt.In)().get(0)||this._props.container;return e?this._$markupContainer:(0,o.Z)(Xu)}_getVisualContainer(){return this._props.fullScreen?(0,o.Z)(Xu):super._getVisualContainer()}_fullScreenEnabled(){this.restorePositionOnNextRender(!1),this._lastPositionBeforeFullScreen=this._visualPosition}_fullScreenDisabled(){this.restorePositionOnNextRender(!1)}}var Qu=(0,s.Jj)(),ec="dx-popup",tc="dx-popup-wrapper",ic="dx-popup-fullscreen",nc="dx-popup-fullscreen-width",oc="dx-popup-normal",rc="dx-popup-content",ac="dx-state-disabled",sc="dx-popup-draggable",lc="dx-popup-title",dc="dx-closebutton",uc="dx-popup-bottom",cc="dx-has-close-button",hc="dx-template-wrapper",pc="dx-popup-flex-height",fc="dx-popup-inherit-height",gc=["cancel","clear","done"],mc="default",_c="normal",vc="text",yc="contained",Cc=Me.Z.safari&&k(Me.Z.version,[11])<0,bc={static:"",inherit:fc,flex:pc},xc=e=>{var t=w.Z.current(),i=t.platform,n="bottom",o="before";if("ios"===i)switch(e){case"cancel":n="top";break;case"clear":n="top",o="after";break;case"done":o="after"}else if("android"===i)switch(e){case"cancel":case"done":o="after"}return{toolbar:n,location:o}},wc=ki.inherit({_supportedKeys:function(){return(0,a.l)(this.callBase(),{upArrow:e=>{var t;null===(t=this._drag)||void 0===t||t.moveUp(e)},downArrow:e=>{var t;null===(t=this._drag)||void 0===t||t.moveDown(e)},leftArrow:e=>{var t;null===(t=this._drag)||void 0===t||t.moveLeft(e)},rightArrow:e=>{var t;null===(t=this._drag)||void 0===t||t.moveRight(e)}})},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{fullScreen:!1,title:"",showTitle:!0,titleTemplate:"title",onTitleRendered:null,dragOutsideBoundary:!1,dragEnabled:!1,dragAndResizeArea:void 0,outsideDragFactor:0,onResizeStart:null,onResize:null,onResizeEnd:null,resizeEnabled:!1,toolbarItems:[],showCloseButton:!1,bottomTemplate:"bottom",useDefaultToolbarButtons:!1,useFlatToolbarButtons:!1,autoResizeEnabled:!0})},_defaultOptionsRules:function(){var e=(0,x.Vk)();return this.callBase().concat([{device:{platform:"ios"},options:{animation:this._iosAnimation}},{device:{platform:"android"},options:{animation:this._androidAnimation}},{device:{platform:"generic"},options:{showCloseButton:!0}},{device:function(e){return"desktop"===w.Z.real().deviceType&&"generic"===e.platform},options:{dragEnabled:!0}},{device:function(){return"desktop"===w.Z.real().deviceType&&!w.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,x.x2)(e)},options:{useDefaultToolbarButtons:!0,useFlatToolbarButtons:!0,showCloseButton:!1}}])},_iosAnimation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom"}},to:{position:{my:"center",at:"center"}}},hide:{type:"slide",duration:400,from:{opacity:1,position:{my:"center",at:"center"}},to:{opacity:1,position:{my:"top",at:"bottom"}}}},_androidAnimation:function(){return this.option("fullScreen")?{show:{type:"slide",duration:300,from:{top:"30%",opacity:0},to:{top:0,opacity:1}},hide:{type:"slide",duration:300,from:{top:0,opacity:1},to:{top:"30%",opacity:0}}}:{show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}}},_init:function(){var e=this.option("_wrapperClassExternal"),t=e?"".concat(tc," ").concat(e):tc;this.callBase(),this._updateResizeCallbackSkipCondition(),this.$element().addClass(ec),this.$wrapper().addClass(t),this._$popupContent=this._$content.wrapInner((0,o.Z)("
").addClass(rc)).children().eq(0)},_render:function(){var e=this.option("fullScreen");this._toggleFullScreenClass(e),this.callBase()},_toggleFullScreenClass:function(e){this.$overlayContent().toggleClass(ic,e).toggleClass(oc,!e)},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({title:new Gt.s,bottom:new Gt.s})},_getActionsList:function(){return this.callBase().concat(["onResizeStart","onResize","onResizeEnd"])},_contentResizeHandler:function(e){this._shouldSkipContentResize(e)||this._renderGeometry({shouldOnlyReposition:!0})},_doesShowAnimationChangeDimensions:function(){var e=this.option("animation");return["to","from"].some((t=>{var i,n=null===e||void 0===e||null===(i=e.show)||void 0===i?void 0:i[t];return(0,l.Kn)(n)&&("width"in n||"height"in n)}))},_updateResizeCallbackSkipCondition(){var e=this._doesShowAnimationChangeDimensions();this._shouldSkipContentResize=t=>e&&this._showAnimationProcessing||this._areContentDimensionsRendered(t)},_observeContentResize:function(e){if(this.option("useResizeObserver")){var t=this._$content.get(0);e?qu.Z.observe(t,(e=>{this._contentResizeHandler(e)})):qu.Z.unobserve(t)}},_areContentDimensionsRendered:function(e){var t,i,n,o,r,a=null===(t=e.contentBoxSize)||void 0===t?void 0:t[0];if(a)return parseInt(a.inlineSize,10)===(null===(o=this._renderedDimensions)||void 0===o?void 0:o.width)&&parseInt(a.blockSize,10)===(null===(r=this._renderedDimensions)||void 0===r?void 0:r.height);var s=e.contentRect;return parseInt(s.width,10)===(null===(i=this._renderedDimensions)||void 0===i?void 0:i.width)&&parseInt(s.height,10)===(null===(n=this._renderedDimensions)||void 0===n?void 0:n.height)},_renderContentImpl:function(){this._renderTitle(),this.callBase(),this._renderResize(),this._renderBottom()},_renderTitle:function(){var e=this._getToolbarItems("top"),t=this.option("title"),i=this.option("showTitle");if(i&&t&&e.unshift({location:w.Z.current().ios?"center":"before",text:t}),i||e.length>0){this._$title&&this._$title.remove();var n=(0,o.Z)("
").addClass(lc).insertBefore(this.$content());this._$title=this._renderTemplateByType("titleTemplate",e,n).addClass(lc),this._renderDrag(),this._executeTitleRenderAction(this._$title),this._$title.toggleClass(cc,this._hasCloseButton())}else this._$title&&this._$title.detach()},_renderTemplateByType:function(e,t,i,n){var{rtlEnabled:r,useDefaultToolbarButtons:s,useFlatToolbarButtons:l,disabled:d}=this.option(),u=this._getTemplateByOption(e),c=u instanceof Gt.s;if(c){var h=(0,a.l)({},this.option("integrationOptions"),{skipTemplates:["content","title"]}),p=(0,a.l)(n,{items:t,rtlEnabled:r,useDefaultButtons:s,useFlatButtons:l,disabled:d,integrationOptions:h});this._getTemplate("dx-polymorph-widget").render({container:i,model:{widget:this._getToolbarName(),options:p}});var f=i.children("div");return i.replaceWith(f),f}var g=(0,o.Z)(u.render({container:(0,se.u)(i)}));return g.hasClass(hc)&&(i.replaceWith(g),i=g),i},_getToolbarName:function(){return"dxToolbarBase"},_renderVisibilityAnimate:function(e){return this._observeContentResize(e),this.callBase(e)},_executeTitleRenderAction:function(e){this._getTitleRenderAction()({titleElement:(0,se.u)(e)})},_getTitleRenderAction:function(){return this._titleRenderAction||this._createTitleRenderAction()},_createTitleRenderAction:function(){return this._titleRenderAction=this._createActionByOption("onTitleRendered",{element:this.element(),excludeValidators:["disabled","readOnly"]})},_getCloseButton:function(){return{toolbar:"top",location:"after",template:this._getCloseButtonRenderer()}},_getCloseButtonRenderer:function(){return(e,t,i)=>{var n=(0,o.Z)("
").addClass(dc);this._createComponent(n,cd,{icon:"close",onClick:this._createToolbarItemAction(void 0),stylingMode:"text",integrationOptions:{}}),(0,o.Z)(i).append(n)}},_getToolbarItems:function(e){var t=this.option("toolbarItems"),i=[];this._toolbarItemClasses=[];var n=w.Z.current().platform,o=0;return(0,E.S6)(t,((t,r)=>{var s=(0,l.$K)(r.shortcut),d=s?xc(r.shortcut):r;if(s&&"ios"===n&&o<2&&(d.toolbar="top",o++),d.toolbar=r.toolbar||d.toolbar||"top",d&&d.toolbar===e){s&&(0,a.l)(d,{location:r.location},this._getToolbarItemByAlias(r));var u="generic"===n;"done"===r.shortcut&&u||"cancel"===r.shortcut&&!u?i.unshift(d):i.push(d)}})),"top"===e&&this._hasCloseButton()&&i.push(this._getCloseButton()),i},_hasCloseButton(){return this.option("showCloseButton")&&this.option("showTitle")},_getLocalizationKey:e=>"done"===e.toLowerCase()?"OK":(0,sn._A)(e,!0),_getToolbarItemByAlias:function(e){var t=this,i=e.shortcut;if(!gc.includes(i))return!1;var n=(0,a.l)({text:y.Z.format(this._getLocalizationKey(i)),onClick:this._createToolbarItemAction(e.onClick),integrationOptions:{},type:t.option("useDefaultToolbarButtons")?mc:_c,stylingMode:t.option("useFlatToolbarButtons")?vc:yc},e.options||{}),r=ec+"-"+i;return this._toolbarItemClasses.push(r),{template:function(e,i,a){var s=(0,o.Z)("
").addClass(r).appendTo(a);t._createComponent(s,cd,n)}}},_createToolbarItemAction:function(e){return this._createAction(e,{afterExecute:function(e){e.component.hide()}})},_renderBottom:function(){var e=this._getToolbarItems("bottom");if(e.length){this._$bottom&&this._$bottom.remove();var t=(0,o.Z)("
").addClass(uc).insertAfter(this.$content());this._$bottom=this._renderTemplateByType("bottomTemplate",e,t,{compactMode:!0}).addClass(uc),this._toggleClasses()}else this._$bottom&&this._$bottom.detach()},_toggleDisabledState:function(e){this.callBase(...arguments),this.$content().toggleClass(ac,Boolean(e))},_toggleClasses:function(){var e=gc;(0,E.S6)(e,((e,t)=>{var i=ec+"-"+t;this._toolbarItemClasses.includes(i)?(this.$wrapper().addClass(i+"-visible"),this._$bottom.addClass(i)):(this.$wrapper().removeClass(i+"-visible"),this._$bottom.removeClass(i))}))},_toggleFocusClass(e,t){if(this.callBase(e,t),e&&!ai(this._zIndex)){var i=oi(this._zIndexInitValue());ri(this._zIndex),this._zIndex=i,this._$wrapper.css("zIndex",i),this._$content.css("zIndex",i)}},_getPositionControllerConfig(){var{fullScreen:e,forceApplyBindings:t,dragOutsideBoundary:i,dragAndResizeArea:n,outsideDragFactor:o}=this.option();return(0,a.l)({},this.callBase(),{fullScreen:e,forceApplyBindings:t,dragOutsideBoundary:i,dragAndResizeArea:n,outsideDragFactor:o})},_initPositionController(){this._positionController=new Ju(this._getPositionControllerConfig())},_getDragTarget:function(){return this.topToolbar()},_renderGeometry:function(e){var{visible:t,useResizeObserver:i}=this.option();if(t&&(0,s.Ym)()){var n=this._showAnimationProcessing,o=n&&!(null!==e&&void 0!==e&&e.forceStopAnimation)&&i;this._isAnimationPaused=o||void 0,this._stopAnimation(),null!==e&&void 0!==e&&e.shouldOnlyReposition?this._renderPosition(!1):this._renderGeometryImpl(null===e||void 0===e?void 0:e.isDimensionChange),o&&(this._animateShowing(),this._isAnimationPaused=void 0)}},_cacheDimensions:function(){this.option("useResizeObserver")&&(this._renderedDimensions={width:parseInt((0,n.dz)(this._$content),10),height:parseInt((0,n.Cr)(this._$content),10)})},_renderGeometryImpl:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e||this._resetContentHeight(),this.callBase(),this._cacheDimensions(),this._setContentHeight()},_resetContentHeight:function(){var e=this._getOptionValue("height");"auto"===e&&this.$content().css({height:"auto",maxHeight:"none"})},_renderDrag:function(){var e=this._getDragTarget(),t=this.option("dragEnabled");if(e){var i={dragEnabled:t,handle:e.get(0),draggableElement:this._$content.get(0),positionController:this._positionController};this._drag?this._drag.init(i):this._drag=new cn(i),this.$overlayContent().toggleClass(sc,t)}},_renderResize:function(){this._resizable=this._createComponent(this._$content,En,{handles:this.option("resizeEnabled")?"all":"none",onResizeEnd:e=>{this._resizeEndHandler(e),this._observeContentResize(!0)},onResize:e=>{this._setContentHeight(),this._actions.onResize(e)},onResizeStart:e=>{this._observeContentResize(!1),this._actions.onResizeStart(e)},minHeight:100,minWidth:100,area:this._positionController.$dragResizeContainer,keepAspectRatio:!1})},_resizeEndHandler:function(e){var t=this._resizable.option("width"),i=this._resizable.option("height");t&&this._setOptionWithoutOptionChange("width",t),i&&this._setOptionWithoutOptionChange("height",i),this._cacheDimensions(),this._positionController.resizeHandled(),this._positionController.detectVisualPositionChange(e.event),this._actions.onResizeEnd(e)},_setContentHeight:function(){(this.option("forceApplyBindings")||v.ZT)();var e=this.$overlayContent().get(0),t=this._chooseHeightStrategy(e);this.$content().css(this._getHeightCssStyles(t,e)),this._setHeightClasses(this.$overlayContent(),t)},_heightStrategyChangeOffset:function(e,t){return e===bc.flex?-t:0},_chooseHeightStrategy:function(e){var t="auto"===e.style.width||""===e.style.width,i=bc.static;return this._isAutoHeight()&&this.option("autoResizeEnabled")&&(i=t||Cc?bc.inherit:bc.flex),i},_getHeightCssStyles:function(e,t){var i={},r=this._getOptionValue("maxHeight",t),a=this._getOptionValue("minHeight",t),l=this._splitPopupHeight(),d=l.header+l.footer+l.contentVerticalOffsets+l.popupVerticalOffsets+this._heightStrategyChangeOffset(e,l.popupVerticalPaddings);if(e===bc.static){if(!this._isAutoHeight()||r||a){var u=this.option("fullScreen")?Math.min(Pe(t).height,(0,s.Jj)().innerHeight):Pe(t).height,c=u-d;i={height:Math.max(0,c),minHeight:"auto",maxHeight:"auto"}}}else{var h=(0,o.Z)(this._positionController.$visualContainer).get(0),p=(0,n.n2)(r,-d,h),f=(0,n.eK)(a,-d,h);i={height:"auto",minHeight:f,maxHeight:p}}return i},_setHeightClasses:function(e,t){var i="";for(var n in bc)bc[n]!==t&&(i+=" "+bc[n]);e.removeClass(i).addClass(t)},_isAutoHeight:function(){return"auto"===this.$overlayContent().get(0).style.height},_splitPopupHeight:function(){var e=this.topToolbar(),t=this.bottomToolbar();return{header:(0,n.$D)(e&&e.get(0)),footer:(0,n.$D)(t&&t.get(0)),contentVerticalOffsets:(0,n.sQ)(this.$overlayContent().get(0),!0),popupVerticalOffsets:(0,n.sQ)(this.$content().get(0),!0),popupVerticalPaddings:(0,n.sQ)(this.$content().get(0),!1)}},_isAllWindowCovered:function(){return this.callBase()||this.option("fullScreen")},_renderDimensions:function(){this.option("fullScreen")?this.$overlayContent().css({width:"100%",height:"100%",minWidth:"",maxWidth:"",minHeight:"",maxHeight:""}):this.callBase(),(0,s.Ym)()&&this._renderFullscreenWidthClass()},_dimensionChanged:function(){this._renderGeometry({isDimensionChange:!0})},_clean:function(){this.callBase(),this._observeContentResize(!1)},_renderFullscreenWidthClass:function(){this.$overlayContent().toggleClass(nc,(0,n.Y_)(this.$overlayContent())===(0,n.dz)(Qu))},refreshPosition:function(){this._renderPosition()},_optionChanged:function(e){var t,i=e.value;switch(e.name){case"disabled":this.callBase(e),this._renderTitle(),this._renderBottom();break;case"animation":this._updateResizeCallbackSkipCondition();break;case"showTitle":case"title":case"titleTemplate":this._renderTitle(),this._renderGeometry(),(0,Qt.U_)(this.$overlayContent());break;case"bottomTemplate":this._renderBottom(),this._renderGeometry(),(0,Qt.U_)(this.$overlayContent());break;case"container":var n;if(this.callBase(e),this.option("resizeEnabled"))null===(n=this._resizable)||void 0===n||n.option("area",this._positionController.$dragResizeContainer);break;case"width":case"height":this.callBase(e),null===(t=this._resizable)||void 0===t||t.option(e.name,e.value);break;case"onTitleRendered":this._createTitleRenderAction(e.value);break;case"toolbarItems":case"useDefaultToolbarButtons":case"useFlatToolbarButtons":var o=!e.fullName.match(/^toolbarItems((\[\d+\])(\.(options|visible).*)?)?$/);this._renderTitle(),this._renderBottom(),o&&(this._renderGeometry(),(0,Qt.U_)(this.$overlayContent()));break;case"dragEnabled":this._renderDrag();break;case"dragAndResizeArea":this._positionController.dragAndResizeArea=i,this.option("resizeEnabled")&&this._resizable.option("area",this._positionController.$dragResizeContainer),this._positionController.positionContent();break;case"dragOutsideBoundary":this._positionController.dragOutsideBoundary=i,this.option("resizeEnabled")&&this._resizable.option("area",this._positionController.$dragResizeContainer);break;case"outsideDragFactor":this._positionController.outsideDragFactor=i;break;case"resizeEnabled":this._renderResize(),this._renderGeometry();break;case"autoResizeEnabled":this._renderGeometry(),(0,Qt.U_)(this.$overlayContent());break;case"fullScreen":this._positionController.fullScreen=e.value,this._toggleFullScreenClass(e.value),this._toggleSafariScrolling(),this._renderGeometry(),(0,Qt.U_)(this.$overlayContent());break;case"showCloseButton":this._renderTitle();break;default:this.callBase(e)}},bottomToolbar:function(){return this._$bottom},topToolbar:function(){return this._$title},$content:function(){return this._$popupContent},content:function(){return(0,se.u)(this.$content())},$overlayContent:function(){return this._$content}});(0,C.Z)("dxPopup",wc);var Tc=wc,Sc=i(94795),Ic=i(73386),Ec="dx-invalid-message",Dc="dx-invalid-message-auto",kc="dx-invalid-message-always",Oc="dx-invalid-message-content",Ac=100,Pc=ki.inherit({_getDefaultOptions(){return(0,a.l)(this.callBase(),{integrationOptions:{},templatesRenderAsynchronously:!1,shading:!1,width:"auto",height:"auto",hideOnOutsideClick:!1,animation:null,visible:!0,propagateOutsideClick:!0,_checkParentVisibility:!1,rtlEnabled:!1,contentTemplate:this._renderInnerHtml,maxWidth:"100%",container:this.$element(),target:void 0,mode:"auto",validationErrors:void 0,positionSide:"top",boundary:void 0,offset:{h:0,v:0},contentId:void 0})},_init(){this.callBase(),this.updateMaxWidth(),this._updatePosition()},_initMarkup(){this.callBase(),this._ensureMessageNotEmpty(),this._updatePositionByTarget(),this._toggleModeClass(),this._updateContentId()},_updatePositionByTarget:function(){var{target:e}=this.option();this.option("position.of",e)},_ensureMessageNotEmpty:function(){this._textMarkup=this._getTextMarkup();var e=this.option("visible")&&this._textMarkup;this._toggleVisibilityClasses(e)},_toggleVisibilityClasses:function(e){e?(this.$element().addClass(Ec),this.$wrapper().addClass(Ec)):(this.$element().removeClass(Ec),this.$wrapper().removeClass(Ec))},_updateContentId(){var{container:e,contentId:t}=this.option(),i=null!==t&&void 0!==t?t:(0,o.Z)(e).attr("aria-describedby");this.$content().addClass(Oc).attr("id",i)},_renderInnerHtml(e){var t=e&&(0,o.Z)(e);null===t||void 0===t||t.html(this._textMarkup)},_getTextMarkup(){var e,t=null!==(e=this.option("validationErrors"))&&void 0!==e?e:[],i="";return t.forEach((e=>{var t,n=i?"
":"";i+=n+(0,Ic.HZ)(null!==(t=null===e||void 0===e?void 0:e.message)&&void 0!==t?t:"")})),i},_toggleModeClass(){var e=this.option("mode");this.$wrapper().toggleClass(Dc,"auto"===e).toggleClass(kc,"always"===e)},updateMaxWidth(){var e=this.option("target"),t=(0,n.Y_)(e),i="100%";t&&(i=Math.max(t,Ac)),this.option({maxWidth:i})},_getPositionsArray:function(e,t){switch(e){case"top":return["".concat(t," bottom"),"".concat(t," top")];case"left":return["right","left"];case"right":return["left","right"];default:return["".concat(t," top"),"".concat(t," bottom")]}},_updatePosition:function(){var{positionSide:e,rtlEnabled:t,offset:i,boundary:n}=this.option(),o=Ae(t),r=this._getPositionsArray(e,o),a=(0,hn.Z)({},i);this.$element().addClass("dx-invalid-message-".concat(e)),t&&"left"!==e&&"right"!==e&&(a.h=-a.h),"top"===e&&(a.v=-a.v),"left"===e&&(a.h=-a.h),this.option("position",{offset:a,boundary:n,my:r[0],at:r[1],collision:"none flip"})},_optionChanged(e){var{name:t,value:i,previousValue:n}=e;switch(t){case"target":this._updatePositionByTarget(),this.updateMaxWidth(),this.callBase(e);break;case"boundary":this.option("position.boundary",i);break;case"mode":this._toggleModeClass(i);break;case"rtlEnabled":case"offset":case"positionSide":this.$element().removeClass("dx-invalid-message-".concat(n)),this._updatePosition();break;case"container":this._updateContentId(),this.callBase(e);break;case"contentId":this._updateContentId();break;case"validationErrors":this._ensureMessageNotEmpty(),this._renderInnerHtml(this.$content());break;default:this.callBase(e)}}});(0,C.Z)("dxValidationMessage",Pc);var Mc=Pc,Rc="dx-invalid-message-auto",Bc="dx-state-readonly",Vc="dx-invalid",Fc="dx-show-invalid-badge",Hc="dx-validation-target",Lc="valid",Nc="invalid",Zc="editorReadOnly",$c=["outlined","filled","underlined"],Wc={validationMessageMode:"mode",validationMessagePosition:"positionSide",validationMessageOffset:"offset",validationBoundary:"boundary"},Kc=G.inherit({ctor:function(){this.showValidationMessageTimeout=null,this.validationRequest=(0,Sc["default"])(),this.callBase.apply(this,arguments)},_createElement:function(e){this.callBase(e);var t=this.$element();t&&(0,le.aT)(t[0],Hc,this)},_initOptions:function(e){this.callBase.apply(this,arguments),this.option(Kn.initValidationOptions(e))},_init:function(){this.callBase(),this._options.cache("validationTooltipOptions",this.option("validationTooltipOptions"));var e=this.$element();e.addClass(Fc)},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{value:null,name:"",onValueChanged:null,readOnly:!1,isValid:!0,validationError:null,validationErrors:null,validationStatus:Lc,validationMessageMode:"auto",validationMessagePosition:"bottom",validationBoundary:void 0,validationMessageOffset:{h:0,v:0},validationTooltipOptions:{}})},_attachKeyboardEvents:function(){this.option("readOnly")||this.callBase()},_setOptionsByReference:function(){this.callBase(),(0,a.l)(this._optionsByReference,{validationError:!0})},_createValueChangeAction:function(){this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})},_suppressValueChangeAction:function(){this._valueChangeActionSuppressed=!0},_resumeValueChangeAction:function(){this._valueChangeActionSuppressed=!1},_initMarkup:function(){var e;this._toggleReadOnlyState(),this._setSubmitElementName(this.option("name")),this.callBase(),this._renderValidationState(),null===(e=this.option("_onMarkupRendered"))||void 0===e||e()},_raiseValueChangeAction:function(e,t){this._valueChangeAction||this._createValueChangeAction(),this._valueChangeAction(this._valueChangeArgs(e,t))},_valueChangeArgs:function(e,t){return{value:e,previousValue:t,event:this._valueChangeEventInstance}},_saveValueChangeEvent:function(e){this._valueChangeEventInstance=e},_focusInHandler:function(e){var t="auto"===this.option("validationMessageMode");if(this._canValueBeChangedByClick()&&t){var i,n=null===(i=this._validationMessage)||void 0===i?void 0:i.$wrapper();null===n||void 0===n||n.removeClass(Rc),clearTimeout(this.showValidationMessageTimeout),this.showValidationMessageTimeout=setTimeout((()=>null===n||void 0===n?void 0:n.addClass(Rc)),150)}return this.callBase(e)},_canValueBeChangedByClick:function(){return!1},_getStylingModePrefix:function(){return"dx-editor-"},_renderStylingMode:function(){var e=this.option("stylingMode"),t=this._getStylingModePrefix(),i=$c.map((e=>t+e));i.forEach((e=>this.$element().removeClass(e)));var n=t+e;if(-1===i.indexOf(n)){var o=this._getDefaultOptions().stylingMode,r=this._convertRulesToOptions(this._defaultOptionsRules()).stylingMode;n=t+(r||o)}this.$element().addClass(n)},_getValidationErrors:function(){var e=this.option("validationErrors");return!e&&this.option("validationError")&&(e=[this.option("validationError")]),e},_disposeValidationMessage:function(){this._$validationMessage&&(this._$validationMessage.remove(),this.setAria("describedby",null),this._$validationMessage=void 0,this._validationMessage=void 0)},_toggleValidationClasses:function(e){this.$element().toggleClass(Vc,e),this.setAria(Nc,e||void 0)},_renderValidationState:function(){var e=this.option("isValid")&&this.option("validationStatus")!==Nc,t=this._getValidationErrors(),i=this.$element();if(this._toggleValidationClasses(!e),(0,s.Ym)()&&(this._disposeValidationMessage(),!e&&t)){var{validationMessageMode:n,validationMessagePosition:r,validationMessageOffset:l,validationBoundary:d,rtlEnabled:u}=this.option();this._$validationMessage=(0,o.Z)("
").appendTo(i);var c="dx-".concat(new Li.Z);this.setAria("describedby",c),this._validationMessage=new Mc(this._$validationMessage,(0,a.l)({validationErrors:t,rtlEnabled:u,target:this._getValidationMessageTarget(),visualContainer:i,mode:n,positionSide:r,offset:l,boundary:d,contentId:c},this._options.cache("validationTooltipOptions"))),this._bindInnerWidgetOptions(this._validationMessage,"validationTooltipOptions")}},_getValidationMessageTarget:function(){return this.$element()},_toggleReadOnlyState:function(){var e=this.option("readOnly");this._toggleBackspaceHandler(e),this.$element().toggleClass(Bc,!!e),this.setAria("readonly",e||void 0)},_toggleBackspaceHandler:function(e){var t=this._keyboardEventBindingTarget(),i=(0,R.V4)("keydown",Zc);re.Z.off(t,i),e&&re.Z.on(t,i,(e=>{"backspace"===(0,R.EV)(e)&&e.preventDefault()}))},_dispose:function(){var e=this.$element()[0];(0,le.aT)(e,Hc,null),clearTimeout(this.showValidationMessageTimeout),this._disposeValidationMessage(),this.callBase()},_setSubmitElementName:function(e){var t=this._getSubmitElement();t&&(e.length>0?t.attr("name",e):t.removeAttr("name"))},_getSubmitElement:function(){return null},_setValidationMessageOption:function(e){var t,{name:i,value:n}=e,o=Wc[i]?Wc[i]:i;null===(t=this._validationMessage)||void 0===t||t.option(o,n)},_hasActiveElement:v.ZT,_optionChanged:function(e){var t;switch(e.name){case"onValueChanged":this._createValueChangeAction();break;case"readOnly":this._toggleReadOnlyState(),this._refreshFocusState();break;case"value":e.value!=e.previousValue&&this.validationRequest.fire({value:e.value,editor:this}),this._valueChangeActionSuppressed||(this._raiseValueChangeAction(e.value,e.previousValue),this._saveValueChangeEvent(void 0));break;case"width":this.callBase(e),null===(t=this._validationMessage)||void 0===t||t.updateMaxWidth();break;case"name":this._setSubmitElementName(e.value);break;case"isValid":case"validationError":case"validationErrors":case"validationStatus":this.option(Kn.synchronizeValidationOptions(e,this.option())),this._renderValidationState();break;case"validationBoundary":case"validationMessageMode":case"validationMessagePosition":case"validationMessageOffset":this._setValidationMessageOption(e);break;case"rtlEnabled":this._setValidationMessageOption(e),this.callBase(e);break;case"validationTooltipOptions":this._innerWidgetOptionChanged(this._validationMessage,e);break;default:this.callBase(e)}},blur:function(){this._hasActiveElement()&&(0,M.M3)()},reset:function(){var e=this._getDefaultOptions();this.option("value",e.value)}});Kc.isEditor=e=>e instanceof Kc;var zc=Kc;class jc{constructor(){this._map={}}_findWidgetInstance(e){var t;return(0,E.S6)(this._map,(function(i,n){var{widgetInstance:o,item:r}=n;if(e(r))return t=o,!1})),t}_findFieldByCondition(e,t){var i;return(0,E.S6)(this._map,(function(n,o){if(e(o))return i="guid"===t?n:o[t],!1})),i}clear(){this._map={}}removeItemsByItems(e){(0,E.S6)(e.getItems(),(e=>this.removeItemByKey(e)))}removeItemByKey(e){delete this._map[e]}add(e){var t=e.guid||new Li.Z;return this._map[t]=e,t}addItemsOrExtendFrom(e){e.each(((e,t)=>{this._map[e]?(t.widgetInstance&&(this._map[e].widgetInstance=t.widgetInstance),this._map[e].$itemContainer=t.$itemContainer):this.add({item:t.item,widgetInstance:t.widgetInstance,guid:e,$itemContainer:t.$itemContainer})}))}extendRunTimeItemInfoByKey(e,t){this._map[e]&&(this._map[e]=(0,a.l)(this._map[e],t))}findWidgetInstanceByItem(e){return this._findWidgetInstance((t=>t===e))}findGroupOrTabLayoutManagerByPath(e){return this._findFieldByCondition((t=>{var{path:i}=t;return i===e}),"layoutManager")}findKeyByPath(e){return this._findFieldByCondition((t=>{var{path:i}=t;return i===e}),"guid")}findWidgetInstanceByName(e){return this._findWidgetInstance((t=>e===t.name))}findWidgetInstanceByDataField(e){return this._findWidgetInstance((t=>e===((0,l.HD)(t)?t:t.dataField)))}findItemContainerByItem(e){for(var t in this._map)if(this._map[t].item===e)return this._map[t].$itemContainer;return null}findItemIndexByItem(e){return this._findFieldByCondition((t=>{var{item:i}=t;return i===e}),"itemIndex")}findPreparedItemByItem(e){return this._findFieldByCondition((t=>{var{item:i}=t;return i===e}),"preparedItem")}getItems(){return this._map}each(e){(0,E.S6)(this._map,(function(t,i){e(t,i)}))}removeItemsByPathStartWith(e){var t=Object.keys(this._map),i=t.filter((t=>!!this._map[t].path&&this._map[t].path.indexOf(e,0)>-1));i.forEach((e=>this.removeItemByKey(e)))}}var Uc={move(e,t){ve(e,{left:t})}},Gc={moveTo(e,t,i,n){Ut.animate(e,{type:"slide",to:{left:t},duration:i,complete:n})},complete(e){Ut.stop(e,!0)}},qc=i(10975),Yc=i(11180),Xc="__dx_key__",Jc=Du.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{repaintChangesOnly:!1})},ctor:function(){var e;this.callBase.apply(this,arguments),this._customizeStoreLoadOptions=e=>{var t=this._dataController;t.getDataSource()&&!this._dataController.isLoaded()&&(this._correctionIndex=0),this._correctionIndex&&e.storeLoadOptions&&(e.storeLoadOptions.skip+=this._correctionIndex)},null===(e=this._dataController)||void 0===e||e.on("customizeStoreLoadOptions",this._customizeStoreLoadOptions)},reload:function(){this._correctionIndex=0},_init:function(){this.callBase(),this._refreshItemsCache(),this._correctionIndex=0},_findItemElementByKey:function(e){var t=(0,o.Z)(),i=this.key();return this.itemElements().each(((n,r)=>{var a=(0,o.Z)(r),s=this._getItemData(a);if(i?(0,Yc.OI)(i,this.keyOf(s),e):this._isItemEquals(s,e))return t=a,!1})),t},_dataSourceChangedHandler:function(e,t){null!==t&&void 0!==t&&t.changes?this._modifyByChanges(t.changes):(this.callBase(e,t),this._refreshItemsCache())},_isItemEquals:function(e,t){e&&e[Xc]&&(e=e.data);try{return JSON.stringify(e)===JSON.stringify(t)}catch(i){return e===t}},_isItemStrictEquals:function(e,t){return this._isItemEquals(e,t)},_shouldAddNewGroup:function(e,t){var i=!1;return this.option("grouped")&&(e.length||(i=!0),(0,E.S6)(e,((e,n)=>{"insert"===n.type&&(i=!0,(0,E.S6)(t,((e,t)=>{if(void 0!==n.data.key&&n.data.key===t.key)return i=!1,!1})))}))),i},_partialRefresh:function(){if(this.option("repaintChangesOnly")){var e=Cu(this._itemsCache,this._editStrategy.itemsGetter(),(e=>e&&void 0!==e[Xc]?e[Xc]:this.keyOf(e)),this._isItemStrictEquals.bind(this));if(e&&this._itemsCache.length&&!this._shouldAddNewGroup(e,this._itemsCache))return this._modifyByChanges(e,!0),this._renderEmptyMessage(),!0;this._refreshItemsCache()}return!1},_refreshItemsCache:function(){if(this.option("repaintChangesOnly")){var e=this._editStrategy.itemsGetter();try{this._itemsCache=(0,a.l)(!0,[],e),this.key()||(this._itemsCache=this._itemsCache.map(((t,i)=>({[Xc]:e[i],data:t}))))}catch(t){this._itemsCache=(0,a.l)([],e)}}},_dispose:function(){this._dataController.off("customizeStoreLoadOptions",this._customizeStoreLoadOptions),this.callBase()},_updateByChange:function(e,t,i,n){if(n)this._renderItem(i.index,i.data,null,this._findItemElementByKey(i.key));else{var o=t[(0,qc.qk)(e,t,i.key)];o&&(0,qc.Vx)(e,t,i.key,i.data).done((()=>{this._renderItem(t.indexOf(o),o,null,this._findItemElementByKey(i.key))}))}},_insertByChange:function(e,t,i,n){(0,ot.gx)(n||(0,qc.$T)(e,t,i.data,i.index)).done((()=>{var e;this._beforeItemElementInserted(i);var n=this._getItemContainer(i.data);this._renderItem(null!==(e=i.index)&&void 0!==e?e:t.length,i.data,n),this._afterItemElementInserted(),this._correctionIndex++}))},_getItemContainer:function(e){return this._itemContainer()},_updateSelectionAfterRemoveByChange:function(e){var t=this.option("selectedIndex");t>e?this.option("selectedIndex",t-1):t===e&&1===this.option("selectedItems").length?this.option("selectedItems",[]):this._normalizeSelectedItems()},_beforeItemElementInserted:function(e){var t=this.option("selectedIndex");e.index<=t&&this.option("selectedIndex",t+1)},_afterItemElementInserted:v.ZT,_removeByChange:function(e,t,i,n){var o=n?i.index:(0,qc.qk)(e,t,i.key),r=n?i.oldItem:t[o];if(r){var a=this._findItemElementByKey(i.key),s=this._extendActionArgs(a);this._waitDeletingPrepare(a).done((()=>{n?(this._updateIndicesAfterIndex(o-1),this._afterItemElementDeleted(a,s),this._updateSelectionAfterRemoveByChange(o)):(this._deleteItemElementByIndex(o),this._afterItemElementDeleted(a,s))})),this._correctionIndex--}},_modifyByChanges:function(e,t){var i=this._editStrategy.itemsGetter(),n={key:this.key.bind(this),keyOf:this.keyOf.bind(this)},o=this._dataController,r=o.paginate(),a=o.group();(r||a)&&(e=e.filter((e=>"insert"!==e.type||void 0!==e.index))),e.forEach((e=>this["_".concat(e.type,"ByChange")](n,i,e,t))),this._renderedItemsCount=i.length,this._refreshItemsCache(),this._fireContentReadyAction()},_appendItemToContainer:function(e,t,i){var n=e.children(this._itemSelector()).get(i);ke["default"].insertElement(e.get(0),t.get(0),n)},_optionChanged:function(e){switch(e.name){case"items":var t=this._partialRefresh(e.value);t||this.callBase(e);break;case"dataSource":this.option("repaintChangesOnly")&&e.value||this.option("items",[]),this.callBase(e);break;case"repaintChangesOnly":break;default:this.callBase(e)}}}),Qc="dxswipestart",eh="dxswipe",th="dxswipeend",ih={defaultItemSizeFunc:function(){return(0,n.dz)(this.getElement())},getBounds:function(){return[this._maxLeftOffset,this._maxRightOffset]},calcOffsetRatio:function(e){var t=(0,R.a0)(e);return(t.x-(this._savedEventData&&this._savedEventData.x||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=(0,R.a0)(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.x-this._tickData.x)>=t.time-this._tickData.time}},nh={defaultItemSizeFunc:function(){return(0,n.Cr)(this.getElement())},getBounds:function(){return[this._maxTopOffset,this._maxBottomOffset]},calcOffsetRatio:function(e){var t=(0,R.a0)(e);return(t.y-(this._savedEventData&&this._savedEventData.y||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=(0,R.a0)(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.y-this._tickData.y)>=t.time-this._tickData.time}},oh={horizontal:ih,vertical:nh},rh=pl.Z.inherit({TICK_INTERVAL:300,FAST_SWIPE_SPEED_LIMIT:10,ctor:function(e){this.callBase(e),this.direction="horizontal",this.elastic=!0},_getStrategy:function(){return oh[this.direction]},_defaultItemSizeFunc:function(){return this._getStrategy().defaultItemSizeFunc.call(this)},_itemSizeFunc:function(){return this.itemSizeFunc||this._defaultItemSizeFunc},_init:function(e){this._tickData=(0,R.a0)(e)},_start:function(e){this._savedEventData=(0,R.a0)(e),e=this._fireEvent(Qc,e),e.cancel||(this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset)},_move:function(e){var t=this._getStrategy(),i=(0,R.a0)(e),n=t.calcOffsetRatio.call(this,e);n=this._fitOffset(n,this.elastic),i.time-this._tickData.time>this.TICK_INTERVAL&&(this._tickData=i),this._fireEvent(eh,e,{offset:n}),e.preventDefault()},_end:function(e){var t=this._getStrategy(),i=t.calcOffsetRatio.call(this,e),n=t.isFastSwipe.call(this,e),o=i,r=this._calcTargetOffset(i,n);o=this._fitOffset(o,this.elastic),r=this._fitOffset(r,!1),this._fireEvent(th,e,{offset:o,targetOffset:r})},_fitOffset:function(e,t){var i=this._getStrategy(),n=i.getBounds.call(this);return e<-n[0]?t?(-2*n[0]+e)/3:-n[0]:e>n[1]?t?(2*n[1]+e)/3:n[1]:e},_calcTargetOffset:function(e,t){var i;return t?(i=Math.ceil(Math.abs(e)),e<0&&(i=-i)):i=Math.round(e),i}});(0,F.Z)({emitter:rh,events:[Qc,eh,th]});var ah="dxSwipeable",sh="dx-swipeable",lh={onStart:Qc,onUpdated:eh,onEnd:th,onCancel:"dxswipecancel"},dh=S.Z.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{elastic:!0,immediate:!1,direction:"horizontal",itemSizeFunc:null,onStart:null,onUpdated:null,onEnd:null,onCancel:null})},_render:function(){this.callBase(),this.$element().addClass(sh),this._attachEventHandlers()},_attachEventHandlers:function(){if(this._detachEventHandlers(),!this.option("disabled")){var e=this.NAME;this._createEventData(),(0,E.S6)(lh,function(t,i){var n=this._createActionByOption(t,{context:this});i=(0,R.V4)(i,e),re.Z.on(this.$element(),i,this._eventData,(function(e){return n({event:e})}))}.bind(this))}},_createEventData:function(){this._eventData={elastic:this.option("elastic"),itemSizeFunc:this.option("itemSizeFunc"),direction:this.option("direction"),immediate:this.option("immediate")}},_detachEventHandlers:function(){re.Z.off(this.$element(),"."+ah)},_optionChanged:function(e){switch(e.name){case"disabled":case"onStart":case"onUpdated":case"onEnd":case"onCancel":case"elastic":case"immediate":case"itemSizeFunc":case"direction":this._detachEventHandlers(),this._attachEventHandlers();break;case"rtlEnabled":break;default:this.callBase(e)}},_useTemplates:function(){return!1}});(0,pd.u2)(dh,ah);var uh=dh,ch="dx-multiview",hh="dx-multiview-wrapper",ph="dx-multiview-item-container",fh="dx-multiview-item",gh="dx-multiview-item-hidden",mh="dxMultiViewItemData",_h=200,vh=e=>+e,yh=e=>he(e).left,Ch=Jc.inherit({_activeStateUnit:"."+fh,_supportedKeys:function(){return(0,a.l)(this.callBase(),{pageUp:v.ZT,pageDown:v.ZT})},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{selectedIndex:0,swipeEnabled:!0,animationEnabled:!0,loop:!1,deferRendering:!0,_itemAttributes:{role:"tabpanel"},loopItemFocus:!1,selectOnFocus:!0,selectionMode:"single",selectionRequired:!0,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===w.Z.real().deviceType&&!w.Z.isSimulator()},options:{focusStateEnabled:!0}}])},_itemClass:function(){return fh},_itemDataKey:function(){return mh},_itemContainer:function(){return this._$itemContainer},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_itemWidth:function(){return this._itemWidthValue||(this._itemWidthValue=(0,n.dz)(this._$wrapper)),this._itemWidthValue},_clearItemWidthCache:function(){delete this._itemWidthValue},_itemsCount:function(){return this.option("items").length},_normalizeIndex:function(e){var t=this._itemsCount();return e<0&&(e+=t),e>=t&&(e-=t),e},_getRTLSignCorrection:function(){return this.option("rtlEnabled")?-1:1},_init:function(){this.callBase.apply(this,arguments);var e=this.$element();e.addClass(ch),this._$wrapper=(0,o.Z)("
").addClass(hh),this._$wrapper.appendTo(e),this._$itemContainer=(0,o.Z)("
").addClass(ph),this._$itemContainer.appendTo(this._$wrapper),this.option("loopItemFocus",this.option("loop")),this._initSwipeable()},_initMarkup:function(){this._deferredItems=[],this.callBase();var e=this._getSelectedItemIndices();this._updateItemsVisibility(e[0])},_afterItemElementDeleted:function(e,t){this.callBase(e,t),this._deferredItems&&this._deferredItems.splice(t.itemIndex,1)},_beforeItemElementInserted:function(e){this.callBase.apply(this,arguments),this._deferredItems&&this._deferredItems.splice(e.index,0,null)},_executeItemRenderAction:function(e,t,i){e=(this.option("items")||[]).indexOf(t),this.callBase(e,t,i)},_renderItemContent:function(e){var t=new ot.BH,i=this,n=this.callBase,o=new ot.BH;return o.done((function(){var o=n.call(i,e);t.resolve(o)})),this._deferredItems[e.index]=o,this.option("deferRendering")||o.resolve(),t.promise()},_render:function(){this.callBase(),(0,v.g0)((()=>{var e=this._getSelectedItemIndices();this._updateItems(e[0])}))},_updateItems:function(e,t){this._updateItemsPosition(e,t),this._updateItemsVisibility(e,t)},_modifyByChanges:function(){this.callBase.apply(this,arguments);var e=this._getSelectedItemIndices();this._updateItemsVisibility(e[0])},_updateItemsPosition:function(e,t){var i=this._itemElements(),n=(0,l.$K)(t)?-this._animationDirection(t,e):void 0,o=i.eq(e);Uc.move(o,0),(0,l.$K)(t)&&Uc.move(i.eq(t),100*n+"%")},_updateItemsVisibility:function(e,t){var i=this._itemElements();i.each(function(i,n){var r=(0,o.Z)(n),a=i!==e&&i!==t;a||this._renderSpecificItem(i),r.toggleClass(gh,a),this.setAria("hidden",a||void 0,r)}.bind(this))},_renderSpecificItem:function(e){var t=this._itemElements().eq(e),i=t.find(this._itemContentClass()).length>0;(0,l.$K)(e)&&!i&&(this._deferredItems[e].resolve(),(0,Qt.U_)(t))},_refreshItem:function(e,t){this.callBase(e,t),this._updateItemsVisibility(this.option("selectedIndex"))},_setAriaSelected:v.ZT,_updateSelection:function(e,t){var i=e[0],o=t[0];Gc.complete(this._$itemContainer),this._updateItems(o,i);var r=this._animationDirection(i,o);this._animateItemContainer(r*this._itemWidth(),function(){Uc.move(this._$itemContainer,0),this._updateItems(i),(0,n.dz)(this._$itemContainer)}.bind(this))},_animateItemContainer:function(e,t){var i=this.option("animationEnabled")?_h:0;Gc.moveTo(this._$itemContainer,e,i,t)},_animationDirection:function(e,t){var i=yh(this._$itemContainer),n=(t-e)*this._getRTLSignCorrection()*this._getItemFocusLoopSignCorrection(),o=0!==i,r=o?i:n;return(0,ln.Xx)(r)},_getSwipeDisabledState(){return!this.option("swipeEnabled")||this._itemsCount()<=1},_initSwipeable(){this._createComponent(this.$element(),uh,{disabled:this._getSwipeDisabledState(),elastic:!1,itemSizeFunc:this._itemWidth.bind(this),onStart:e=>this._swipeStartHandler(e.event),onUpdated:e=>this._swipeUpdateHandler(e.event),onEnd:e=>this._swipeEndHandler(e.event)})},_swipeStartHandler:function(e){Gc.complete(this._$itemContainer);var t=this.option("selectedIndex"),i=this.option("loop"),n=this._itemsCount()-1,o=this.option("rtlEnabled");e.maxLeftOffset=vh(i||(o?t>0:t0)),this._swipeDirection=null},_swipeUpdateHandler:function(e){var t=e.offset,i=(0,ln.Xx)(t)*this._getRTLSignCorrection();if(Uc.move(this._$itemContainer,t*this._itemWidth()),i!==this._swipeDirection){this._swipeDirection=i;var n=this.option("selectedIndex"),o=this._normalizeIndex(n-i);this._updateItems(n,o)}},_swipeEndHandler:function(e){var t=e.targetOffset*this._getRTLSignCorrection();if(t){this.option("selectedIndex",this._normalizeIndex(this.option("selectedIndex")-t));var i=this.itemElements().filter(".dx-item-selected");this.option("focusStateEnabled")&&this.option("focusedElement",(0,se.u)(i))}else this._animateItemContainer(0,v.ZT)},_getItemFocusLoopSignCorrection:function(){return this._itemFocusLooped?-1:1},_moveFocus:function(){this.callBase.apply(this,arguments),this._itemFocusLooped=!1},_prevItem:function(e){var t=this.callBase.apply(this,arguments);return this._itemFocusLooped=t.is(e.last()),t},_nextItem:function(e){var t=this.callBase.apply(this,arguments);return this._itemFocusLooped=t.is(e.first()),t},_dimensionChanged:function(){this._clearItemWidthCache()},_visibilityChanged:function(e){e&&this._dimensionChanged()},_updateSwipeDisabledState(){var e=this._getSwipeDisabledState();uh.getInstance(this.$element()).option("disabled",e)},_optionChanged:function(e){var t=e.value;switch(e.name){case"loop":this.option("loopItemFocus",t);break;case"animationEnabled":break;case"swipeEnabled":this._updateSwipeDisabledState();break;case"deferRendering":this._invalidate();break;case"items":this._updateSwipeDisabledState(),this.callBase(e);break;default:this.callBase(e)}}});(0,C.Z)("dxMultiView",Ch);var bh=Ch,xh="dx-tabs-item-badge",wh="dx-badge",Th=yd.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this))},_renderBadge:function(e){if(this._$element.children("."+wh).remove(),e){var t=(0,o.Z)("
").addClass(xh).addClass(wh).text(e);this._$element.append(t)}}}),Sh=Th,Ih="dx-tabs-expanded",Eh=P.Z.abstract,Dh=P.Z.inherit({ctor:function(){this._finished=!0,this._stopped=!1,this._proxiedStepCore=this._stepCore.bind(this)},start:function(){this._stopped=!1,this._finished=!1,this._stepCore()},stop:function(){this._stopped=!0,(0,De.W)(this._stepAnimationFrame)},_stepCore:function(){if(this._isStopped())this._stop();else{if(this._isFinished())return this._finished=!0,void this._complete();this._step(),this._stepAnimationFrame=(0,De.U)(this._proxiedStepCore)}},_step:Eh,_isFinished:v.ZT,_stop:v.ZT,_complete:v.ZT,_isStopped:function(){return this._stopped},inProgress:function(){return!(this._stopped||this._finished)}}),kh=Dh,Oh="dxScrollbar",Ah="dx-scrollable-scrollbar",Ph="".concat(Ah,"-active"),Mh="dx-scrollable-scroll",Rh="dx-scrollable-scroll-content",Bh="dx-scrollbar-hoverable",Vh="horizontal",Fh=15,Hh={onScroll:"onScroll",onHover:"onHover",always:"always",never:"never"},Lh=null,Nh=G.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{direction:null,visible:!1,activeStateEnabled:!1,visibilityMode:Hh.onScroll,containerSize:0,contentSize:0,expandable:!0,scaleRatio:1})},_init:function(){this.callBase(),this._isHovered=!1},_initMarkup:function(){this._renderThumb(),this.callBase()},_render:function(){this.callBase(),this._renderDirection(),this._update(),this._attachPointerDownHandler(),this.option("hoverStateEnabled",this._isHoverMode()),this.$element().toggleClass(Bh,this.option("hoverStateEnabled"))},_renderThumb:function(){this._$thumb=(0,o.Z)("
").addClass(Mh),(0,o.Z)("
").addClass(Rh).appendTo(this._$thumb),this.$element().addClass(Ah).append(this._$thumb)},isThumb:function(e){return!!this.$element().find(e).length},_isHoverMode:function(){var e=this.option("visibilityMode");return(e===Hh.onHover||e===Hh.always)&&this.option("expandable")},_renderDirection:function(){var e=this.option("direction");this.$element().addClass("dx-scrollbar-"+e),this._dimension=e===Vh?"width":"height",this._prop=e===Vh?"left":"top"},_attachPointerDownHandler:function(){re.Z.on(this._$thumb,(0,R.V4)(B.Z.down,Oh),this.feedbackOn.bind(this))},feedbackOn:function(){this.$element().addClass(Ph),Lh=this},feedbackOff:function(){this.$element().removeClass(Ph),Lh=null},cursorEnter:function(){this._isHovered=!0,this._needScrollbar()&&this.option("visible",!0)},cursorLeave:function(){this._isHovered=!1,this.option("visible",!1)},_renderDimensions:function(){this._$thumb.css({width:this.option("width"),height:this.option("height")})},_toggleVisibility:function(e){this.option("visibilityMode")===Hh.onScroll&&this._$thumb.css("opacity"),e=this._adjustVisibility(e),this.option().visible=e,this._$thumb.toggleClass("dx-state-invisible",!e)},_adjustVisibility:function(e){if(this._baseContainerToContentRatio&&!this._needScrollbar())return!1;switch(this.option("visibilityMode")){case Hh.onScroll:break;case Hh.onHover:e=e||!!this._isHovered;break;case Hh.never:e=!1;break;case Hh.always:e=!0}return e},moveTo:function(e){if(!this._isHidden()){(0,l.PO)(e)&&(e=e[this._prop]||0);var t={};t[this._prop]=this._calculateScrollBarPosition(e),ve(this._$thumb,t)}},_calculateScrollBarPosition:function(e){return-e*this._thumbRatio},_update:function(){var e=Math.round(this.option("containerSize")),t=Math.round(this.option("contentSize")),i=Math.round(this.option("baseContainerSize")),n=Math.round(this.option("baseContentSize"));isNaN(i)&&(i=e,n=t),this._baseContainerToContentRatio=n?i/n:i,this._realContainerToContentRatio=t?e/t:e;var o=Math.round(Math.max(Math.round(e*this._realContainerToContentRatio),Fh));this._thumbRatio=(e-o)/(this.option("scaleRatio")*(t-e)),this.option(this._dimension,o/this.option("scaleRatio")),this.$element().css("display",this._needScrollbar()?"":"none")},_isHidden:function(){return this.option("visibilityMode")===Hh.never},_needScrollbar:function(){return!this._isHidden()&&this._baseContainerToContentRatio<1},containerToContentRatio:function(){return this._realContainerToContentRatio},_normalizeSize:function(e){return(0,l.PO)(e)?e[this._dimension]||0:e},_clean:function(){this.callBase(),this===Lh&&(Lh=null),re.Z.off(this._$thumb,"."+Oh)},_optionChanged:function(e){if(!this._isHidden())switch(e.name){case"containerSize":case"contentSize":this.option()[e.name]=this._normalizeSize(e.value),this._update();break;case"baseContentSize":case"baseContainerSize":this._update();break;case"visibilityMode":case"direction":this._invalidate();break;case"scaleRatio":this._update();break;default:this.callBase.apply(this,arguments)}},update:(0,v.Rg)((function(){this._adjustVisibility()&&this.option("visible",!0)}))});qt.Z.add((function(){re.Z.subscribeGlobal(ke["default"].getDocument(),(0,R.V4)(B.Z.up,Oh),(function(){Lh&&Lh.feedbackOff()}))}));var Zh,$h,Wh=Nh,Kh="dxSimulatedScrollable",zh="dxScrollableStrategy",jh=Kh+"Cursor",Uh=Kh+"Keyboard",Gh="dx-scrollable-simulated",qh="dx-scrollable-scrollbars-alwaysvisible",Yh="dx-scrollable-scrollbar",Xh="vertical",Jh="horizontal",Qh=.92,ep=.5,tp=1,ip=Math.round(1e3/60),np=40,op=500,rp=tp/5,ap=400,sp=ap/ip,lp=(1-Math.pow(Qh,sp))/(1-Qh),dp={PAGE_UP:"pageUp",PAGE_DOWN:"pageDown",END:"end",HOME:"home",LEFT:"leftArrow",UP:"upArrow",RIGHT:"rightArrow",DOWN:"downArrow",TAB:"tab"},up=kh.inherit({ctor:function(e){this.callBase(),this.scroller=e},VELOCITY_LIMIT:tp,_isFinished:function(){return Math.abs(this.scroller._velocity)<=this.VELOCITY_LIMIT},_step:function(){this.scroller._scrollStep(this.scroller._velocity),this.scroller._velocity*=this._acceleration()},_acceleration:function(){return this.scroller._inBounds()?Qh:ep},_complete:function(){this.scroller._scrollComplete()}}),cp=up.inherit({VELOCITY_LIMIT:rp,_isFinished:function(){return this.scroller._crossBoundOnNextStep()||this.callBase()},_acceleration:function(){return Qh},_complete:function(){this.scroller._move(this.scroller._bounceLocation),this.callBase()}}),hp=P.Z.inherit({ctor:function(e){this._initOptions(e),this._initAnimators(),this._initScrollbar()},_initOptions:function(e){this._location=0,this._topReached=!1,this._bottomReached=!1,this._axis=e.direction===Jh?"x":"y",this._prop=e.direction===Jh?"left":"top",this._dimension=e.direction===Jh?"width":"height",this._scrollProp=e.direction===Jh?"scrollLeft":"scrollTop",(0,E.S6)(e,((e,t)=>{this["_"+e]=t}))},_initAnimators:function(){this._inertiaAnimator=new up(this),this._bounceAnimator=new cp(this)},_initScrollbar:function(){this._scrollbar=new Wh((0,o.Z)("
").appendTo(this._$container),{direction:this._direction,visible:this._scrollByThumb,visibilityMode:this._visibilityModeNormalize(this._scrollbarVisible),expandable:this._scrollByThumb}),this._$scrollbar=this._scrollbar.$element()},_visibilityModeNormalize:function(e){return!0===e?"onScroll":!1===e?"never":e},_scrollStep:function(e){var t=this._location;this._location+=e,this._suppressBounce(),this._move(),Math.abs(t-this._location)<1||re.Z.triggerHandler(this._$container,{type:"scroll"})},_suppressBounce:function(){this._bounceEnabled||this._inBounds(this._location)||(this._velocity=0,this._location=this._boundLocation())},_boundLocation:function(e){return e=void 0!==e?e:this._location,Math.max(Math.min(e,this._maxOffset),this._minOffset)},_move:function(e){this._location=void 0!==e?e*this._getScaleRatio():this._location,this._moveContent(),this._moveScrollbar()},_moveContent:function(){var e=this._location;this._$container[this._scrollProp](-e/this._getScaleRatio()),this._moveContentByTranslator(e)},_getScaleRatio:function(){if((0,s.Ym)()&&!this._scaleRatio){var e=this._$element.get(0),t=this._getRealDimension(e,this._dimension),i=this._getBaseDimension(e,this._dimension);this._scaleRatio=Math.round(t/i*100)/100}return this._scaleRatio||1},_getRealDimension:function(e,t){return Math.round(Pe(e)[t])},_getBaseDimension:function(e,t){var i="offset"+(0,sn.MI)(t);return e[i]},_moveContentByTranslator:function(e){var t,i=-this._maxScrollPropValue;if(t=e>0?e:e<=i?e-i:e%1,this._translateOffset!==t){var n={};n[this._prop]=t,this._translateOffset=t,0!==t?ve(this._$content,n):ye(this._$content)}},_moveScrollbar:function(){this._scrollbar.moveTo(this._location)},_scrollComplete:function(){this._inBounds()&&(this._hideScrollbar(),this._completeDeferred&&this._completeDeferred.resolve()),this._scrollToBounds()},_scrollToBounds:function(){this._inBounds()||(this._bounceAction(),this._setupBounce(),this._bounceAnimator.start())},_setupBounce:function(){var e=this._bounceLocation=this._boundLocation(),t=e-this._location;this._velocity=t/lp},_inBounds:function(e){return e=void 0!==e?e:this._location,this._boundLocation(e)===e},_crossBoundOnNextStep:function(){var e=this._location,t=e+this._velocity;return e=this._minOffset||e>this._maxOffset&&t<=this._maxOffset},_initHandler:function(e){this._stopScrolling(),this._prepareThumbScrolling(e)},_stopScrolling:(0,v.Rg)((function(){this._hideScrollbar(),this._inertiaAnimator.stop(),this._bounceAnimator.stop()})),_prepareThumbScrolling:function(e){if(!(0,R.pR)(e.originalEvent)){var t=(0,o.Z)(e.originalEvent.target),i=this._isScrollbar(t);i&&this._moveToMouseLocation(e),this._thumbScrolling=i||this._isThumb(t),this._crossThumbScrolling=!this._thumbScrolling&&this._isAnyThumbScrolling(t),this._thumbScrolling&&this._scrollbar.feedbackOn()}},_isThumbScrollingHandler:function(e){return this._isThumb(e)},_moveToMouseLocation:function(e){var t=e["page"+this._axis.toUpperCase()]-this._$element.offset()[this._prop],i=this._location+t/this._containerToContentRatio()-(0,n.Cr)(this._$container)/2;this._scrollStep(-Math.round(i))},_startHandler:function(){this._showScrollbar()},_moveHandler:function(e){this._crossThumbScrolling||(this._thumbScrolling&&(e[this._axis]=-Math.round(e[this._axis]/this._containerToContentRatio())),this._scrollBy(e))},_scrollBy:function(e){e=e[this._axis],this._inBounds()||(e*=ep),this._scrollStep(e)},_scrollByHandler:function(e){this._scrollBy(e),this._scrollComplete()},_containerToContentRatio:function(){return this._scrollbar.containerToContentRatio()},_endHandler:function(e){return this._completeDeferred=new ot.BH,this._velocity=e[this._axis],this._inertiaHandler(),this._resetThumbScrolling(),this._completeDeferred.promise()},_inertiaHandler:function(){this._suppressInertia(),this._inertiaAnimator.start()},_suppressInertia:function(){this._inertiaEnabled&&!this._thumbScrolling||(this._velocity=0)},_resetThumbScrolling:function(){this._thumbScrolling=!1,this._crossThumbScrolling=!1},_stopHandler:function(){this._thumbScrolling&&this._scrollComplete(),this._resetThumbScrolling(),this._scrollToBounds()},_disposeHandler:function(){this._stopScrolling(),this._$scrollbar.remove()},_updateHandler:function(){this._update(),this._moveToBounds()},_update:function(){return this._stopScrolling(),(0,v.Su)((()=>{this._resetScaleRatio(),this._updateLocation(),this._updateBounds(),this._updateScrollbar(),(0,v.g0)((()=>{this._moveScrollbar(),this._scrollbar.update()}))}))},_resetScaleRatio:function(){this._scaleRatio=null},_updateLocation:function(){this._location=(he(this._$content)[this._prop]-this._$container[this._scrollProp]())*this._getScaleRatio()},_updateBounds:function(){this._maxOffset=this._getMaxOffset(),this._minOffset=this._getMinOffset()},_getMaxOffset:function(){return 0},_getMinOffset:function(){return this._maxScrollPropValue=Math.max(this._contentSize()-this._containerSize(),0),-this._maxScrollPropValue},_updateScrollbar:(0,v.bN)((function(){var e=this._containerSize(),t=this._contentSize(),i=this._getBaseDimension(this._$container.get(0),this._dimension),n=this._getBaseDimension(this._$content.get(0),this._dimension);(0,v.g0)((()=>{this._scrollbar.option({containerSize:e,contentSize:t,baseContainerSize:i,baseContentSize:n,scaleRatio:this._getScaleRatio()})}))})),_moveToBounds:(0,v.Rg)((0,v.bN)((0,v.Rg)((function(){var e=this._boundLocation(),t=e!==this._location;this._location=e,this._move(),t&&this._scrollAction()})))),_createActionsHandler:function(e){this._scrollAction=e.scroll,this._bounceAction=e.bounce},_showScrollbar:function(){this._scrollbar.option("visible",!0)},_hideScrollbar:function(){this._scrollbar.option("visible",!1)},_containerSize:function(){return this._getRealDimension(this._$container.get(0),this._dimension)},_contentSize:function(){var e="hidden"===this._$content.css("overflow"+this._axis.toUpperCase()),t=this._getRealDimension(this._$content.get(0),this._dimension);if(!e){var i=this._$content[0]["scroll"+(0,sn.MI)(this._dimension)]*this._getScaleRatio();t=Math.max(i,t)}return t},_validateEvent:function(e){var t=(0,o.Z)(e.originalEvent.target);return this._isThumb(t)||this._isScrollbar(t)},_isThumb:function(e){return this._scrollByThumb&&this._scrollbar.isThumb(e)},_isScrollbar:function(e){return this._scrollByThumb&&e&&e.is(this._$scrollbar)},_reachedMin:function(){return Math.round(this._location-this._minOffset)<=0},_reachedMax:function(){return Math.round(this._location-this._maxOffset)>=0},_cursorEnterHandler:function(){this._resetScaleRatio(),this._updateScrollbar(),this._scrollbar.cursorEnter()},_cursorLeaveHandler:function(){this._scrollbar.cursorLeave()},dispose:v.ZT}),pp=P.Z.inherit({ctor:function(e){this._init(e)},_init:function(e){this._component=e,this._$element=e.$element(),this._$container=(0,o.Z)(e.container()),this._$wrapper=e._$wrapper,this._$content=e.$content(),this.option=e.option.bind(e),this._createActionByOption=e._createActionByOption.bind(e),this._isLocked=e._isLocked.bind(e),this._isDirection=e._isDirection.bind(e),this._allowedDirection=e._allowedDirection.bind(e),this._getMaxOffset=e._getMaxOffset.bind(e)},render:function(){this._$element.addClass(Gh),this._createScrollers(),this.option("useKeyboard")&&this._$container.prop("tabIndex",0),this._attachKeyboardHandler(),this._attachCursorHandlers()},_createScrollers:function(){this._scrollers={},this._isDirection(Jh)&&this._createScroller(Jh),this._isDirection(Xh)&&this._createScroller(Xh),this._$element.toggleClass(qh,"always"===this.option("showScrollbar"))},_createScroller:function(e){this._scrollers[e]=new hp(this._scrollerOptions(e))},_scrollerOptions:function(e){return{direction:e,$content:this._$content,$container:this._$container,$wrapper:this._$wrapper,$element:this._$element,scrollByThumb:this.option("scrollByThumb"),scrollbarVisible:this.option("showScrollbar"),bounceEnabled:this.option("bounceEnabled"),inertiaEnabled:this.option("inertiaEnabled"),isAnyThumbScrolling:this._isAnyThumbScrolling.bind(this)}},_applyScaleRatio:function(e){for(var t in this._scrollers){var i=this._getPropByDirection(t);if((0,l.$K)(e[i])){var n=this._scrollers[t];e[i]*=n._getScaleRatio()}}return e},_isAnyThumbScrolling:function(e){var t=!1;return this._eventHandler("isThumbScrolling",e).done((function(e,i){t=e||i})),t},handleInit:function(e){this._suppressDirections(e),this._eventForUserAction=e,this._eventHandler("init",e)},_suppressDirections:function(e){(0,R.pR)(e.originalEvent)?this._prepareDirections(!0):(this._prepareDirections(),this._eachScroller((function(t,i){var n=(0,o.Z)(e.originalEvent.target),r=t._validateEvent(e)||this.option("scrollByContent")&&this._isContent(n);this._validDirections[i]=r})))},_isContent:function(e){return!!e.closest(this._$element).length},_prepareDirections:function(e){e=e||!1,this._validDirections={},this._validDirections[Jh]=e,this._validDirections[Xh]=e},_eachScroller:function(e){e=e.bind(this),(0,E.S6)(this._scrollers,(function(t,i){e(i,t)}))},handleStart:function(e){this._eventForUserAction=e,this._eventHandler("start").done(this._startAction)},_saveActive:function(){$h=this},_resetActive:function(){$h===this&&($h=null)},handleMove:function(e){if(this._isLocked())return e.cancel=!0,void this._resetActive();this._saveActive(),e.preventDefault&&e.preventDefault(),this._adjustDistance(e,e.delta),this._eventForUserAction=e,this._eventHandler("move",e.delta)},_adjustDistance:function(e,t){t.x*=this._validDirections[Jh],t.y*=this._validDirections[Xh];var i=this._tryGetDevicePixelRatio();i&&(0,R.pR)(e.originalEvent)&&(t.x=Math.round(t.x/i*100)/100,t.y=Math.round(t.y/i*100)/100)},_tryGetDevicePixelRatio:function(){if((0,s.Ym)())return(0,s.Jj)().devicePixelRatio},handleEnd:function(e){return this._resetActive(),this._refreshCursorState(e.originalEvent&&e.originalEvent.target),this._adjustDistance(e,e.velocity),this._eventForUserAction=e,this._eventHandler("end",e.velocity).done(this._endAction)},handleCancel:function(e){return this._resetActive(),this._eventForUserAction=e,this._eventHandler("end",{x:0,y:0})},handleStop:function(){this._resetActive(),this._eventHandler("stop")},handleScroll:function(){this._updateRtlConfig(),this._scrollAction()},_attachKeyboardHandler:function(){re.Z.off(this._$element,".".concat(Uh)),!this.option("disabled")&&this.option("useKeyboard")&&re.Z.on(this._$element,(0,R.V4)("keydown",Uh),this._keyDownHandler.bind(this))},_keyDownHandler:function(e){if(clearTimeout(this._updateHandlerTimeout),this._updateHandlerTimeout=setTimeout((()=>{(0,R.EV)(e)===dp.TAB&&this._eachScroller((e=>{e._updateHandler()}))})),this._$container.is(ke["default"].getActiveElement(this._$container.get(0)))){var t=!0;switch((0,R.EV)(e)){case dp.DOWN:this._scrollByLine({y:1});break;case dp.UP:this._scrollByLine({y:-1});break;case dp.RIGHT:this._scrollByLine({x:1});break;case dp.LEFT:this._scrollByLine({x:-1});break;case dp.PAGE_DOWN:this._scrollByPage(1);break;case dp.PAGE_UP:this._scrollByPage(-1);break;case dp.HOME:this._scrollToHome();break;case dp.END:this._scrollToEnd();break;default:t=!1}t&&(e.stopPropagation(),e.preventDefault())}},_scrollByLine:function(e){var t=this._tryGetDevicePixelRatio(),i=np;t&&(i=Math.abs(i/t*100)/100),this.scrollBy({top:(e.y||0)*-i,left:(e.x||0)*-i})},_scrollByPage:function(e){var t=this._wheelProp(),i=this._dimensionByProp(t),o={},r="width"===i?n.dz:n.Cr;o[t]=e*-r(this._$container),this.scrollBy(o)},_dimensionByProp:function(e){return"left"===e?"width":"height"},_getPropByDirection:function(e){return e===Jh?"left":"top"},_scrollToHome:function(){var e=this._wheelProp(),t={};t[e]=0,this._component.scrollTo(t)},_scrollToEnd:function(){var e=this._wheelProp(),t=this._dimensionByProp(e),i={},o="width"===t?n.dz:n.Cr;i[e]=o(this._$content)-o(this._$container),this._component.scrollTo(i)},createActions:function(){this._startAction=this._createActionHandler("onStart"),this._endAction=this._createActionHandler("onEnd"),this._updateAction=this._createActionHandler("onUpdated"),this._createScrollerActions()},_createScrollerActions:function(){this._scrollAction=this._createActionHandler("onScroll"),this._bounceAction=this._createActionHandler("onBounce"),this._eventHandler("createActions",{scroll:this._scrollAction,bounce:this._bounceAction})},_createActionHandler:function(e){var t=this._createActionByOption(e);return()=>{t((0,a.l)(this._createActionArgs(),arguments))}},_createActionArgs:function(){var{horizontal:e,vertical:t}=this._scrollers,i=this._getScrollOffset();return this._scrollOffset={top:t&&i.top,left:e&&i.left},{event:this._eventForUserAction,scrollOffset:this._scrollOffset,reachedLeft:e&&e._reachedMax(),reachedRight:e&&e._reachedMin(),reachedTop:t&&t._reachedMax(),reachedBottom:t&&t._reachedMin()}},_getScrollOffset(){return{top:-this.location().top,left:-this.location().left}},_eventHandler:function(e){var t=[].slice.call(arguments).slice(1),i=(0,E.UI)(this._scrollers,(i=>i["_"+e+"Handler"].apply(i,t)));return ot.gx.apply(o.Z,i).promise()},location:function(){var e=he(this._$content);return e.top-=this._$container.scrollTop(),e.left-=this._$container.scrollLeft(),e},disabledChanged:function(){this._attachCursorHandlers()},_attachCursorHandlers:function(){re.Z.off(this._$element,".".concat(jh)),!this.option("disabled")&&this._isHoverMode()&&(re.Z.on(this._$element,(0,R.V4)("mouseenter",jh),this._cursorEnterHandler.bind(this)),re.Z.on(this._$element,(0,R.V4)("mouseleave",jh),this._cursorLeaveHandler.bind(this)))},_isHoverMode:function(){return"onHover"===this.option("showScrollbar")},_cursorEnterHandler:function(e){e=e||{},e.originalEvent=e.originalEvent||{},$h||e.originalEvent._hoverHandled||(Zh&&Zh._cursorLeaveHandler(),Zh=this,this._eventHandler("cursorEnter"),e.originalEvent._hoverHandled=!0)},_cursorLeaveHandler:function(e){Zh===this&&$h!==Zh&&(this._eventHandler("cursorLeave"),Zh=null,this._refreshCursorState(e&&e.relatedTarget))},_refreshCursorState:function(e){if(this._isHoverMode()||e&&!$h){var t=(0,o.Z)(e),i=t.closest(".".concat(Gh,":not(.dx-state-disabled)")),n=i.length&&i.data(zh);Zh&&Zh!==n&&Zh._cursorLeaveHandler(),n&&n._cursorEnterHandler()}},update:function(){var e=this._eventHandler("update").done(this._updateAction);return(0,ot.gx)(e,(0,v.Su)((()=>{var e=this._allowedDirections();return(0,v.g0)((()=>{var t=e.vertical?"pan-x":"";t=e.horizontal?"pan-y":t,t=e.vertical&&e.horizontal?"none":t,this._$container.css("touchAction",t)})),(0,ot.gx)().promise()})))},_allowedDirections:function(){var e=this.option("bounceEnabled"),t=this._scrollers[Xh],i=this._scrollers[Jh];return{vertical:t&&(t._minOffset<0||e),horizontal:i&&(i._minOffset<0||e)}},_updateBounds:function(){this._scrollers[Jh]&&this._scrollers[Jh]._updateBounds()},_isHorizontalAndRtlEnabled:function(){return this.option("rtlEnabled")&&this.option("direction")!==Xh},updateRtlPosition:function(e){e&&(this._rtlConfig={scrollRight:0,clientWidth:this._$container.get(0).clientWidth,windowPixelRatio:this._getWindowDevicePixelRatio()}),this._updateBounds(),this._isHorizontalAndRtlEnabled()&&(0,v.Su)((()=>{var e=this._getMaxOffset().left-this._rtlConfig.scrollRight;e<=0&&(e=0,this._rtlConfig.scrollRight=this._getMaxOffset().left),(0,v.g0)((()=>{this._getScrollOffset().left!==e&&(this._rtlConfig.skipUpdating=!0,this._component.scrollTo({left:e}),this._rtlConfig.skipUpdating=!1)}))}))},_updateRtlConfig:function(){if(this._isHorizontalAndRtlEnabled()&&!this._rtlConfig.skipUpdating){var{clientWidth:e,scrollLeft:t}=this._$container.get(0),i=this._getWindowDevicePixelRatio();this._rtlConfig.windowPixelRatio===i&&this._rtlConfig.clientWidth===e&&(this._rtlConfig.scrollRight=this._getMaxOffset().left-t),this._rtlConfig.clientWidth=e,this._rtlConfig.windowPixelRatio=i}},_getWindowDevicePixelRatio:function(){return(0,s.Ym)()?(0,s.Jj)().devicePixelRatio:1},scrollBy:function(e){var t=this._scrollers[Xh],i=this._scrollers[Jh];t&&(e.top=t._boundLocation(e.top+t._location)-t._location),i&&(e.left=i._boundLocation(e.left+i._location)-i._location),this._prepareDirections(!0),this._startAction(),this._eventHandler("scrollBy",{x:e.left,y:e.top}),this._endAction(),this._updateRtlConfig()},validate:function(e){return(!(0,R.pR)(e)||!(0,R.j1)(e))&&(!this.option("disabled")&&(!!this.option("bounceEnabled")||((0,R.pR)(e)?this._validateWheel(e):this._validateMove(e))))},_validateWheel:function(e){var t=this._scrollers[this._wheelDirection(e)],i=t._reachedMin(),n=t._reachedMax(),o=!i||!n,r=!i&&!n,a=i&&e.delta>0,s=n&&e.delta<0,l=o&&(r||a||s);return l=l||void 0!==this._validateWheelTimer,l&&(clearTimeout(this._validateWheelTimer),this._validateWheelTimer=setTimeout((()=>{this._validateWheelTimer=void 0}),op)),l},_validateMove:function(e){return!(!this.option("scrollByContent")&&!(0,o.Z)(e.target).closest(".".concat(Yh)).length)&&this._allowedDirection()},getDirection:function(e){return(0,R.pR)(e)?this._wheelDirection(e):this._allowedDirection()},_wheelProp:function(){return this._wheelDirection()===Jh?"left":"top"},_wheelDirection:function(e){switch(this.option("direction")){case Jh:return Jh;case Xh:return Xh;default:return e&&e.shiftKey?Jh:Xh}},dispose:function(){this._resetActive(),Zh===this&&(Zh=null),this._eventHandler("dispose"),this._detachEventHandlers(),this._$element.removeClass(Gh),this._eventForUserAction=null,clearTimeout(this._validateWheelTimer),clearTimeout(this._updateHandlerTimeout)},_detachEventHandlers:function(){re.Z.off(this._$element,".".concat(jh)),re.Z.off(this._$container,".".concat(Uh))}}),fp="dxNativeScrollable",gp="dx-scrollable-native",mp="dx-scrollable-scrollbar-simulated",_p="dx-scrollable-scrollbars-hidden",vp="vertical",yp="horizontal",Cp=500,bp=P.Z.inherit({ctor:function(e){this._init(e)},_init:function(e){this._component=e,this._$element=e.$element(),this._$container=(0,o.Z)(e.container()),this._$content=e.$content(),this._direction=e.option("direction"),this._useSimulatedScrollbar=e.option("useSimulatedScrollbar"),this.option=e.option.bind(e),this._createActionByOption=e._createActionByOption.bind(e),this._isLocked=e._isLocked.bind(e),this._isDirection=e._isDirection.bind(e),this._allowedDirection=e._allowedDirection.bind(e),this._getMaxOffset=e._getMaxOffset.bind(e),this._isRtlNativeStrategy=e._isRtlNativeStrategy.bind(e)},render:function(){var e=w.Z.real(),t=e.platform;this._$element.addClass(gp).addClass(gp+"-"+t).toggleClass(_p,!this._isScrollbarVisible()),this._isScrollbarVisible()&&this._useSimulatedScrollbar&&this._renderScrollbars()},updateRtlPosition:function(e){e&&this.option("rtlEnabled")&&this._isScrollbarVisible()&&this._useSimulatedScrollbar&&this._moveScrollbars()},_renderScrollbars:function(){this._scrollbars={},this._hideScrollbarTimeout=0,this._$element.addClass(mp),this._renderScrollbar(vp),this._renderScrollbar(yp)},_renderScrollbar:function(e){this._isDirection(e)&&(this._scrollbars[e]=new Wh((0,o.Z)("
").appendTo(this._$element),{direction:e,expandable:this._component.option("scrollByThumb")}))},handleInit:v.ZT,handleStart:v.ZT,handleMove:function(e){this._isLocked()?e.cancel=!0:this._allowedDirection()&&(e.originalEvent.isScrollingEvent=!0)},handleEnd:v.ZT,handleCancel:v.ZT,handleStop:v.ZT,_eachScrollbar:function(e){e=e.bind(this),(0,E.S6)(this._scrollbars||{},(function(t,i){e(i,t)}))},createActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._updateAction=this._createActionByOption("onUpdated")},_createActionArgs:function(){var{left:e,top:t}=this.location();return{event:this._eventForUserAction,scrollOffset:this._getScrollOffset(),reachedLeft:this._isRtlNativeStrategy()?this._isReachedRight(-e):this._isReachedLeft(e),reachedRight:this._isRtlNativeStrategy()?this._isReachedLeft(-Math.abs(e)):this._isReachedRight(e),reachedTop:this._isDirection(vp)?Math.round(t)>=0:void 0,reachedBottom:this._isDirection(vp)?Math.round(Math.abs(t)-this._getMaxOffset().top)>=0:void 0}},_getScrollOffset:function(){var{top:e,left:t}=this.location();return{top:-e,left:this._normalizeOffsetLeft(-t)}},_normalizeOffsetLeft(e){return this._isRtlNativeStrategy()?this._getMaxOffset().left+e:e},_isReachedLeft:function(e){return this._isDirection(yp)?Math.round(e)>=0:void 0},_isReachedRight:function(e){return this._isDirection(yp)?Math.round(Math.abs(e)-this._getMaxOffset().left)>=0:void 0},_isScrollbarVisible:function(){var{showScrollbar:e}=this.option();return"never"!==e&&!1!==e},handleScroll:function(e){this._eventForUserAction=e,this._moveScrollbars(),this._scrollAction(this._createActionArgs())},_moveScrollbars:function(){var{top:e,left:t}=this._getScrollOffset();this._eachScrollbar((function(i){i.moveTo({top:-e,left:-t}),i.option("visible",!0)})),this._hideScrollbars()},_hideScrollbars:function(){clearTimeout(this._hideScrollbarTimeout),this._hideScrollbarTimeout=setTimeout(function(){this._eachScrollbar((function(e){e.option("visible",!1)}))}.bind(this),Cp)},location:function(){return{left:-this._$container.scrollLeft(),top:-this._$container.scrollTop()}},disabledChanged:v.ZT,update:function(){this._update(),this._updateAction(this._createActionArgs())},_update:function(){this._updateDimensions(),this._updateScrollbars()},_updateDimensions:function(){this._containerSize={height:(0,n.Cr)(this._$container),width:(0,n.dz)(this._$container)},this._componentContentSize={height:(0,n.Cr)(this._component.$content()),width:(0,n.dz)(this._component.$content())},this._contentSize={height:(0,n.Cr)(this._$content),width:(0,n.dz)(this._$content)}},_updateScrollbars:function(){this._eachScrollbar((function(e,t){var i=t===vp?"height":"width";e.option({containerSize:this._containerSize[i],contentSize:this._componentContentSize[i]}),e.update()}))},_allowedDirections:function(){return{vertical:this._isDirection(vp)&&this._contentSize.height>this._containerSize.height,horizontal:this._isDirection(yp)&&this._contentSize.width>this._containerSize.width}},dispose:function(){var e=this._$element.get(0).className,t=new RegExp(gp+"\\S*","g");t.test(e)&&this._$element.removeClass(e.match(t).join(" ")),re.Z.off(this._$element,"."+fp),re.Z.off(this._$container,"."+fp),this._removeScrollbars(),clearTimeout(this._hideScrollbarTimeout)},_removeScrollbars:function(){this._eachScrollbar((function(e){e.$element().remove()}))},scrollBy:function(e){var t=this.location();this._$container.scrollTop(Math.round(-t.top-e.top)),this._$container.scrollLeft(Math.round(-t.left-e.left))},validate:function(e){return!this.option("disabled")&&((!(0,R.pR)(e)||!this._isScrolledInMaxDirection(e))&&!!this._allowedDirection())},_isScrolledInMaxDirection(e){var t,i=this._$container.get(0);return t=e.delta>0?e.shiftKey?!i.scrollLeft:!i.scrollTop:e.shiftKey?i.scrollLeft>=this._getMaxOffset().left:i.scrollTop>=this._getMaxOffset().top,t},getDirection:function(){return this._allowedDirection()}}),xp=bp,wp=function(){return[{device:function(){return!b.nativeScrolling},options:{useNative:!1}},{device:function(e){return!w.Z.isSimulator()&&"desktop"===w.Z.real().deviceType&&"generic"===e.platform},options:{bounceEnabled:!1,scrollByThumb:!0,scrollByContent:b.touch,showScrollbar:"onHover"}}]};function Tp(e,t){var i={left:0,top:0},n=t;while(null!==(o=n)&&void 0!==o&&o.offsetParent&&!n.classList.contains(e)){var o,r=n.offsetParent,a=n.getBoundingClientRect(),s=r.getBoundingClientRect();i.left+=a.left-s.left,i.top+=a.top-s.top,n=n.offsetParent}return i}var Sp="vertical",Ip="horizontal",Ep="both",Dp="dx-scrollable-content";function kp(e,t,i,n,o){var r=(0,hn.Z)({top:0,left:0,right:0,bottom:0},o),a=t===Sp,s=a?"top":"left",l=a?"bottom":"right",d=a?"height":"width",u=i["offset".concat((0,sn.MI)(d))],c=i["client".concat((0,sn.MI)(d))],h=i.getBoundingClientRect()[d],p=e.getBoundingClientRect()[d],f=1;Math.abs(h-u)>1&&(f=h/u);var g=Tp(Dp,e)[s]/f,m=n[s],_=m-g+r[s],v=m-g-p/f+c-r[l];return _<=0&&v>=0?m:m-(Math.abs(_)>Math.abs(v)?v:_)}var Op="dxScrollable",Ap="dxScrollableStrategy",Pp="dx-scrollable",Mp="dx-scrollable-disabled",Rp="dx-scrollable-container",Bp="dx-scrollable-wrapper",Vp="dx-scrollable-content",Fp="vertical",Hp="horizontal",Lp="both",Np=S.Z.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{disabled:!1,onScroll:null,direction:Fp,showScrollbar:"onScroll",useNative:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,onUpdated:null,onStart:null,onEnd:null,onBounce:null,useSimulatedScrollbar:!1,useKeyboard:!0,inertiaEnabled:!0,updateManually:!1})},_defaultOptionsRules:function(){return this.callBase().concat(wp(),[{device:function(){return b.nativeScrolling&&"android"===w.Z.real().platform&&!Me.Z.mozilla},options:{useSimulatedScrollbar:!0}}])},_initOptions:function(e){this.callBase(e),"useSimulatedScrollbar"in e||this._setUseSimulatedScrollbar()},_setUseSimulatedScrollbar:function(){this.initialOption("useSimulatedScrollbar")||this.option("useSimulatedScrollbar",!this.option("useNative"))},_init:function(){this.callBase(),this._initScrollableMarkup(),this._locked=!1},_visibilityChanged:function(e){e?(this.update(),this._updateRtlPosition(),this._savedScrollOffset&&this.scrollTo(this._savedScrollOffset),delete this._savedScrollOffset):this._savedScrollOffset=this.scrollOffset()},_initScrollableMarkup:function(){var e=this.$element().addClass(Pp),t=this._$container=(0,o.Z)("
").addClass(Rp),i=this._$wrapper=(0,o.Z)("
").addClass(Bp),n=this._$content=(0,o.Z)("
").addClass(Vp);n.append(e.contents()).appendTo(t),t.appendTo(i),i.appendTo(e)},_dimensionChanged:function(){this.update(),this._updateRtlPosition()},_initMarkup:function(){this.callBase(),this._renderDirection()},_render:function(){this._renderStrategy(),this._attachEventHandlers(),this._renderDisabledState(),this._createActions(),this.update(),this.callBase(),this._updateRtlPosition(!0)},_updateRtlPosition:function(e){this._strategy.updateRtlPosition(e)},_getMaxOffset:function(){var{scrollWidth:e,clientWidth:t,scrollHeight:i,clientHeight:n}=(0,o.Z)(this.container()).get(0);return{left:e-t,top:i-n}},_attachEventHandlers:function(){var e=this._strategy,t={getDirection:e.getDirection.bind(e),validate:this._validate.bind(this),isNative:this.option("useNative"),scrollTarget:this._$container};re.Z.off(this._$wrapper,"."+Op),re.Z.on(this._$wrapper,(0,R.V4)(Dl.init,Op),t,this._initHandler.bind(this)),re.Z.on(this._$wrapper,(0,R.V4)(Dl.start,Op),e.handleStart.bind(e)),re.Z.on(this._$wrapper,(0,R.V4)(Dl.move,Op),e.handleMove.bind(e)),re.Z.on(this._$wrapper,(0,R.V4)(Dl.end,Op),e.handleEnd.bind(e)),re.Z.on(this._$wrapper,(0,R.V4)(Dl.cancel,Op),e.handleCancel.bind(e)),re.Z.on(this._$wrapper,(0,R.V4)(Dl.stop,Op),e.handleStop.bind(e)),re.Z.off(this._$container,"."+Op),re.Z.on(this._$container,(0,R.V4)("scroll",Op),e.handleScroll.bind(e))},_validate:function(e){return!this._isLocked()&&(this._updateIfNeed(),this._moveIsAllowed(e))},_moveIsAllowed(e){return this._strategy.validate(e)},handleMove(e){this._strategy.handleMove(e)},_prepareDirections(e){this._strategy._prepareDirections(e)},_initHandler:function(){var e=this._strategy;e.handleInit.apply(e,arguments)},_renderDisabledState:function(){this.$element().toggleClass(Mp,this.option("disabled")),this.option("disabled")?this._lock():this._unlock()},_renderDirection:function(){this.$element().removeClass("dx-scrollable-"+Hp).removeClass("dx-scrollable-"+Fp).removeClass("dx-scrollable-"+Lp).addClass("dx-scrollable-"+this.option("direction"))},_renderStrategy:function(){this._createStrategy(),this._strategy.render(),this.$element().data(Ap,this._strategy)},_createStrategy:function(){this._strategy=this.option("useNative")?new xp(this):new pp(this)},_createActions:function(){this._strategy&&this._strategy.createActions()},_clean:function(){this._strategy&&this._strategy.dispose()},_optionChanged:function(e){switch(e.name){case"onStart":case"onEnd":case"onUpdated":case"onScroll":case"onBounce":this._createActions();break;case"direction":this._resetInactiveDirection(),this._invalidate();break;case"useNative":this._setUseSimulatedScrollbar(),this._invalidate();break;case"inertiaEnabled":case"scrollByThumb":case"bounceEnabled":case"useKeyboard":case"showScrollbar":case"useSimulatedScrollbar":this._invalidate();break;case"disabled":this._renderDisabledState(),this._strategy&&this._strategy.disabledChanged();break;case"updateManually":case"scrollByContent":break;case"width":this.callBase(e),this._updateRtlPosition();break;default:this.callBase(e)}},_resetInactiveDirection:function(){var e=this._getInactiveProp();if(e&&(0,s.Ym)()){var t=this.scrollOffset();t[e]=0,this.scrollTo(t)}},_getInactiveProp:function(){var e=this.option("direction");return e===Fp?"left":e===Hp?"top":void 0},_location:function(){return this._strategy.location()},_normalizeLocation:function(e){if((0,l.PO)(e)){var t=(0,v.IS)(e.left,e.x),i=(0,v.IS)(e.top,e.y);return{left:(0,l.$K)(t)?-t:void 0,top:(0,l.$K)(i)?-i:void 0}}var n=this.option("direction");return{left:n!==Fp?-e:void 0,top:n!==Hp?-e:void 0}},_isLocked:function(){return this._locked},_lock:function(){this._locked=!0},_unlock:function(){this.option("disabled")||(this._locked=!1)},_isDirection:function(e){var t=this.option("direction");return e===Fp?t!==Hp:e===Hp?t!==Fp:t===e},_updateAllowedDirection:function(){var e=this._strategy._allowedDirections();this._isDirection(Lp)&&e.vertical&&e.horizontal?this._allowedDirectionValue=Lp:this._isDirection(Hp)&&e.horizontal?this._allowedDirectionValue=Hp:this._isDirection(Fp)&&e.vertical?this._allowedDirectionValue=Fp:this._allowedDirectionValue=null},_allowedDirection:function(){return this._allowedDirectionValue},$content:function(){return this._$content},content:function(){return(0,se.u)(this._$content)},container:function(){return(0,se.u)(this._$container)},scrollOffset:function(){return this._strategy._getScrollOffset()},_isRtlNativeStrategy:function(){var{useNative:e,rtlEnabled:t}=this.option();return e&&t},scrollTop:function(){return this.scrollOffset().top},scrollLeft:function(){return this.scrollOffset().left},clientHeight:function(){return(0,n.Cr)(this._$container)},scrollHeight:function(){return(0,n.zp)(this.$content())},clientWidth:function(){return(0,n.dz)(this._$container)},scrollWidth:function(){return(0,n.Y_)(this.$content())},update:function(){if(this._strategy)return(0,ot.gx)(this._strategy.update()).done(function(){this._updateAllowedDirection()}.bind(this))},scrollBy:function(e){e=this._normalizeLocation(e),(e.top||e.left)&&(this._updateIfNeed(),this._strategy.scrollBy(e))},scrollTo:function(e){e=this._normalizeLocation(e),this._updateIfNeed();var t=this._location();this.option("useNative")||(e=this._strategy._applyScaleRatio(e),t=this._strategy._applyScaleRatio(t)),this._isRtlNativeStrategy()&&(t.left=t.left-this._getMaxOffset().left);var i=this._normalizeLocation({left:t.left-(0,v.IS)(e.left,t.left),top:t.top-(0,v.IS)(e.top,t.top)});(i.top||i.left)&&this._strategy.scrollBy(i)},scrollToElement:function(e,t){var i=(0,o.Z)(e),n=this.$content().find(e).length,r=i.parents("."+Pp).length-i.parents("."+Vp).length===0;if(n&&r){var a={top:0,left:0},s=this.option("direction");s!==Fp&&(a.left=this.getScrollElementPosition(i,Hp,t)),s!==Hp&&(a.top=this.getScrollElementPosition(i,Fp,t)),this.scrollTo(a)}},getScrollElementPosition:function(e,t,i){var n=this.scrollOffset();return kp(e.get(0),t,(0,o.Z)(this.container()).get(0),n,i)},_updateIfNeed:function(){this.option("updateManually")||this.update()},_useTemplates:function(){return!1},isRenovated:function(){return!!Np.IS_RENOVATED_WIDGET}});(0,C.Z)(Op,Np);var Zp=Np,$p=Zp;function Wp(e){return e.scrollWidth-e.clientWidth}class Kp{constructor(e){this.DIRECTION_HORIZONTAL="horizontal",this.DIRECTION_VERTICAL="vertical",this.DIRECTION_BOTH="both",this.direction=null!==e&&void 0!==e?e:Sp}get isHorizontal(){return this.direction===Ip||this.direction===Ep}get isVertical(){return this.direction===Sp||this.direction===Ep}get isBoth(){return this.direction===Ep}}function zp(e,t){return Math.round(e)<=t}function jp(e,t,i){return Math.round(Wp(e)-t)<=i}var Up="dx-tabs",Gp="dx-tabs-wrapper",qp="dx-tabs-stretched",Yp="dx-tabs-scrollable",Xp="dx-tabs-nav-buttons",Jp="dx-overflow-hidden",Qp="dx-tab",ef="dx-tab-selected",tf="dx-tabs-nav-button",nf="dx-tabs-nav-button-left",of="dx-tabs-nav-button-right",rf="dx-tab-text",af="dxTabData",sf="chevronnext",lf="chevronprev",df=100,uf=5,cf=300,hf=30,pf=Jc.inherit({_activeStateUnit:"."+Qp,_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{hoverStateEnabled:!0,showNavButtons:!0,scrollByContent:!0,scrollingEnabled:!0,selectionMode:"single",activeStateEnabled:!0,selectionRequired:!1,selectOnFocus:!0,loopItemFocus:!1,useInkRipple:!1,badgeExpr:function(e){return e?e.badge:void 0},_itemAttributes:{role:"tab"}})},_defaultOptionsRules:function(){var e=(0,x.Vk)();return this.callBase().concat([{device:function(){return"desktop"!==w.Z.real().deviceType},options:{showNavButtons:!1}},{device:{deviceType:"desktop"},options:{scrollByContent:!1}},{device:function(){return"desktop"===w.Z.real().deviceType&&!w.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,x.x2)(e)},options:{useInkRipple:!0,selectOnFocus:!1}}])},_init:function(){this.callBase(),this.setAria("role","tablist"),this.$element().addClass(Up),this._renderWrapper(),this._renderMultiple(),this._feedbackHideTimeout=df},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new Bd(function(e,t){(0,l.PO)(t)?this._prepareDefaultItemTemplate(t,e):e.text(String(t));var i=Rs(t.icon);i&&i.prependTo(e),e.wrapInner((0,o.Z)("").addClass(rf))}.bind(this),["text","html","icon"],this.option("integrationOptions.watchMethod"))})},_createItemByTemplate:function(e,t){var{itemData:i,container:n,index:o}=t;return this._deferredTemplates[o]=new ot.BH,e.render({model:i,container:n,index:o,onRendered:()=>this._deferredTemplates[o].resolve()})},_itemClass:function(){return Qp},_selectedItemClass:function(){return ef},_itemDataKey:function(){return af},_initMarkup:function(){this._deferredTemplates=[],this.callBase(),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().addClass(Jp)},_render:function(){this.callBase(),this._deferRenderScrolling()},_deferRenderScrolling(){ot.gx.apply(this,this._deferredTemplates).done((()=>this._renderScrolling()))},_renderScrolling:function(){var e=[qp,Ih,Jp];if(this.$element().removeClass(e.join(" ")),this.option("scrollingEnabled")&&this._isItemsWidthExceeded()){this._scrollable||(this._renderScrollable(),this._renderNavButtons());var t=this.getScrollable();if(t.update(),this.option("rtlEnabled")){var i=Wp((0,o.Z)(this.getScrollable().container()).get(0));t.scrollTo({left:i})}this._updateNavButtonsVisibility(),this._scrollToItem(this.option("selectedItem"))}this.option("scrollingEnabled")&&this._isItemsWidthExceeded()||(this._cleanScrolling(),this._needStretchItems()&&!this._isItemsWidthExceeded()&&this.$element().addClass(qp),this.$element().removeClass(Xp).addClass(Ih))},_isItemsWidthExceeded:function(){var e=this._getSummaryItemsWidth(this._getVisibleItems(),!0);return e-1>(0,n.dz)(this.$element())},_needStretchItems:function(){var e=this._getVisibleItems(),t=(0,n.dz)(this.$element()),i=[];(0,E.S6)(e,((e,t)=>{i.push((0,n.Y_)(t,!0))}));var o=Math.max.apply(null,i);return o>=t/e.length},_cleanNavButtons:function(){this._leftButton&&this._rightButton&&(this._leftButton.$element().remove(),this._rightButton.$element().remove(),this._leftButton=null,this._rightButton=null)},_cleanScrolling:function(){this._scrollable&&(this._$wrapper.appendTo(this.$element()),this._scrollable.$element().remove(),this._scrollable=null,this._cleanNavButtons())},_renderInkRipple:function(){this._inkRipple=el()},_toggleActiveState:function(e,t,i){if(this.callBase.apply(this,arguments),this._inkRipple){var n={element:e,event:i};t?this._inkRipple.showWave(n):this._inkRipple.hideWave(n)}},_renderMultiple:function(){"multiple"===this.option("selectionMode")&&this.option("selectOnFocus",!1)},_renderWrapper:function(){this._$wrapper=(0,o.Z)("
").addClass(Gp),this.$element().append(this._$wrapper)},_itemContainer:function(){return this._$wrapper},_renderScrollable:function(){var e=this.$element().wrapInner((0,o.Z)("
").addClass(Yp)).children();this._scrollable=this._createComponent(e,$p,{direction:"horizontal",showScrollbar:"never",useKeyboard:!1,useNative:!1,scrollByContent:this.option("scrollByContent"),onScroll:()=>{this._updateNavButtonsVisibility()}}),this.$element().append(this._scrollable.$element())},_scrollToItem:function(e){if(this._scrollable){var t=this._editStrategy.getItemElement(e);this._scrollable.scrollToElement(t)}},_renderNavButtons:function(){if(this.$element().toggleClass(Xp,this.option("showNavButtons")),this.option("showNavButtons")){var e=this.option("rtlEnabled");this._leftButton=this._createNavButton(-hf,e?sf:lf);var t=this._leftButton.$element();t.addClass(nf),this.$element().prepend(t),this._rightButton=this._createNavButton(hf,e?lf:sf);var i=this._rightButton.$element();i.addClass(of),this.$element().append(i)}},_updateNavButtonsVisibility:function(){var e=this.getScrollable();this._leftButton&&this._leftButton.option("disabled",zp(e.scrollLeft(),1)),this._rightButton&&this._rightButton.option("disabled",jp((0,o.Z)(e.container()).get(0),e.scrollLeft(),1))},_updateScrollPosition:function(e,t){this._scrollable.update(),this._scrollable.scrollBy(e/t)},_createNavButton:function(e,t){var i=this,n=i._createAction((function(){i._holdInterval=setInterval((function(){i._updateScrollPosition(e,uf)}),uf)})),r=(0,R.V4)(Sd.name,"dxNavButton"),a=(0,R.V4)(B.Z.up,"dxNavButton"),s=(0,R.V4)(B.Z.out,"dxNavButton"),l=this._createComponent((0,o.Z)("
").addClass(tf),cd,{focusStateEnabled:!1,icon:t,onClick:function(){i._updateScrollPosition(e,1)},integrationOptions:{}}),d=l.$element();return re.Z.on(d,r,{timeout:cf},function(e){n({event:e})}.bind(this)),re.Z.on(d,a,(function(){i._clearInterval()})),re.Z.on(d,s,(function(){i._clearInterval()})),l},_clearInterval:function(){this._holdInterval&&clearInterval(this._holdInterval)},_updateSelection:function(e){this._scrollable&&this._scrollable.scrollToElement(this.itemElements().eq(e[0]),{left:1,right:1})},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._renderScrolling()},_itemSelectHandler:function(e){"single"===this.option("selectionMode")&&this.isItemSelected(e.currentTarget)||this.callBase(e)},_clean:function(){this._deferredTemplates=[],this._cleanScrolling(),this.callBase()},_optionChanged:function(e){switch(e.name){case"useInkRipple":case"scrollingEnabled":case"showNavButtons":this._invalidate();break;case"scrollByContent":this._scrollable&&this._scrollable.option(e.name,e.value);break;case"width":this.callBase(e),this._dimensionChanged();break;case"selectionMode":this._renderMultiple(),this.callBase(e);break;case"badgeExpr":this._invalidate();break;default:this.callBase(e)}},_afterItemElementInserted(){this.callBase(),this._deferRenderScrolling()},_afterItemElementDeleted(e,t){this.callBase(e,t),this._renderScrolling()},getScrollable(){return this._scrollable}});pf.ItemClass=Sh,(0,C.Z)("dxTabs",pf);var ff=pf;class gf extends yd{_renderWatchers(){return this._startWatcher("badge",v.ZT),super._renderWatchers()}}var mf="dx-tabpanel",_f="dx-tabpanel-tabs",vf="dx-tabpanel-container",yf="dx-tab-text",Cf=bh.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{itemTitleTemplate:"title",hoverStateEnabled:!0,showNavButtons:!1,scrollByContent:!0,scrollingEnabled:!0,onTitleClick:null,onTitleHold:null,onTitleRendered:null,badgeExpr:function(e){return e?e.badge:void 0}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===w.Z.real().deviceType&&!w.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return!b.touch},options:{swipeEnabled:!1}},{device:{platform:"generic"},options:{animationEnabled:!1}}])},_init:function(){this.callBase(),this.$element().addClass(mf),this.setAria("role","tabpanel")},_initMarkup:function(){this.callBase(),this._createTitleActions(),this._renderLayout()},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({title:new Bd((function(e,t){if((0,l.PO)(t)){var i=Rs(t.icon);i&&e.append(i),(0,l.$K)(t.title)&&!(0,l.PO)(t.title)&&e.append(ke["default"].createTextNode(t.title))}else(0,l.$K)(t)&&e.text(String(t));e.wrapInner((0,o.Z)("").addClass(yf))}),["title","icon"],this.option("integrationOptions.watchMethod"))})},_createTitleActions:function(){this._createTitleClickAction(),this._createTitleHoldAction(),this._createTitleRenderedAction()},_createTitleClickAction:function(){this._titleClickAction=this._createActionByOption("onTitleClick")},_createTitleHoldAction:function(){this._titleHoldAction=this._createActionByOption("onTitleHold")},_createTitleRenderedAction:function(){this._titleRenderedAction=this._createActionByOption("onTitleRendered")},_renderContent:function(){var e=this;this.callBase(),this.option("templatesRenderAsynchronously")&&(this._resizeEventTimer=setTimeout((function(){e._updateLayout()}),0))},_renderLayout:function(){if(this._tabs)this._updateLayout();else{var e=this.$element();this._$tabContainer=(0,o.Z)("
").addClass(_f).appendTo(e);var t=(0,o.Z)("
").appendTo(this._$tabContainer);this._tabs=this._createComponent(t,ff,this._tabConfig()),this._$container=(0,o.Z)("
").addClass(vf).appendTo(e),this._$container.append(this._$wrapper),this._updateLayout()}},_updateLayout:function(){if((0,s.Ym)()){var e=(0,n.zp)(this._$tabContainer);this._$container.css({marginTop:-e,paddingTop:e})}},_refreshActiveDescendant:function(){if(this._tabs){var e=this._tabs,t=e.itemElements(),i=(0,o.Z)(t[e.option("selectedIndex")]),n=this.getFocusedItemId();this.setAria("controls",void 0,(0,o.Z)(t)),this.setAria("controls",n,i)}},_tabConfig:function(){return{selectOnFocus:!0,focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),repaintChangesOnly:this.option("repaintChangesOnly"),tabIndex:this.option("tabIndex"),selectedIndex:this.option("selectedIndex"),badgeExpr:this.option("badgeExpr"),onItemClick:this._titleClickAction.bind(this),onItemHold:this._titleHoldAction.bind(this),itemHoldTimeout:this.option("itemHoldTimeout"),onSelectionChanged:function(e){this.option("selectedIndex",e.component.option("selectedIndex")),this._refreshActiveDescendant()}.bind(this),onItemRendered:this._titleRenderedAction.bind(this),itemTemplate:this._getTemplateByOption("itemTitleTemplate"),items:this.option("items"),noDataText:null,scrollingEnabled:this.option("scrollingEnabled"),scrollByContent:this.option("scrollByContent"),showNavButtons:this.option("showNavButtons"),itemTemplateProperty:"tabTemplate",loopItemFocus:this.option("loop"),selectionRequired:!0,onOptionChanged:function(e){if("focusedElement"===e.name)if(e.value){var t=(0,o.Z)(e.value),i=this._itemElements().eq(t.index());this.option("focusedElement",(0,se.u)(i))}else this.option("focusedElement",e.value)}.bind(this),onFocusIn:function(e){this._focusInHandler(e.event)}.bind(this),onFocusOut:function(e){this._isFocusOutHandlerExecuting||this._focusOutHandler(e.event)}.bind(this)}},_renderFocusTarget:function(){this._focusTarget().attr("tabIndex",-1)},_updateFocusState:function(e,t){this.callBase(e,t),e.target===this._tabs._focusTarget().get(0)&&this._toggleFocusClass(t,this._focusTarget())},_focusOutHandler:function(e){this._isFocusOutHandlerExecuting=!0,this.callBase.apply(this,arguments),this._tabs._focusOutHandler(e),this._isFocusOutHandlerExecuting=!1},_setTabsOption:function(e,t){this._tabs&&this._tabs.option(e,t)},_visibilityChanged:function(e){e&&(this._tabs._dimensionChanged(),this._updateLayout())},registerKeyHandler:function(e,t){this.callBase(e,t),this._tabs&&this._tabs.registerKeyHandler(e,t)},repaint:function(){this.callBase(),this._tabs.repaint()},_optionChanged:function(e){var t=e.name,i=e.value,n=e.fullName;switch(t){case"dataSource":this.callBase(e);break;case"items":this._setTabsOption(t,this.option(t)),this._updateLayout(),this.option("repaintChangesOnly")||this._tabs.repaint(),this.callBase(e);break;case"width":this.callBase(e),this._tabs.repaint();break;case"selectedIndex":case"selectedItem":if(this._setTabsOption(n,i),this.callBase(e),!0===this.option("focusStateEnabled")){var r=this.option("selectedIndex"),a=this._itemElements().eq(r);this.option("focusedElement",(0,se.u)(a))}break;case"itemHoldTimeout":case"focusStateEnabled":case"hoverStateEnabled":this._setTabsOption(n,i),this.callBase(e);break;case"scrollingEnabled":case"scrollByContent":case"showNavButtons":this._setTabsOption(n,i);break;case"focusedElement":var s=i?(0,o.Z)(i).index():i,l=i?this._tabs._itemElements().eq(s):i;this._setTabsOption("focusedElement",(0,se.u)(l)),this.callBase(e);break;case"itemTitleTemplate":this._setTabsOption("itemTemplate",this._getTemplateByOption("itemTitleTemplate"));break;case"onTitleClick":this._createTitleClickAction(),this._setTabsOption("onItemClick",this._titleClickAction.bind(this));break;case"onTitleHold":this._createTitleHoldAction(),this._setTabsOption("onItemHold",this._titleHoldAction.bind(this));break;case"onTitleRendered":this._createTitleRenderedAction(),this._setTabsOption("onItemRendered",this._titleRenderedAction.bind(this));break;case"loop":this._setTabsOption("loopItemFocus",i);break;case"badgeExpr":this._invalidate();break;default:this.callBase(e)}},_clean:function(){clearTimeout(this._resizeEventTimer),this.callBase()}});Cf.ItemClass=gf,(0,C.Z)("dxTabPanel",Cf);var bf=Cf;class xf{constructor(e){this._options=e,this._itemsRunTimeInfo=this._options.itemsRunTimeInfo}findInstance(){return this._itemsRunTimeInfo.findWidgetInstanceByItem(this._options.item)}findItemContainer(){return this._itemsRunTimeInfo.findItemContainerByItem(this._options.item)}findPreparedItem(){return this._itemsRunTimeInfo.findPreparedItemByItem(this._options.item)}tryExecute(){P.Z.abstract()}}var wf=(e,t)=>"".concat(t?"tabs":"items","[").concat(e,"]"),Tf=(e,t)=>(0,l.$K)(e)&&(0,l.$K)(t)?"".concat(e,".").concat(t):e||t,Sf=e=>e?e.replace(/\s/g,""):void 0,If=(e,t)=>!!e&&(e.dataField===t||e.name===t||Sf(e.title)===t||"group"===e.itemType&&Sf(e.caption)===t),Ef=(e,t)=>"".concat(e,".").concat(t),Df=e=>{var t=e.split(".");return t[t.length-1].replace(/\[\d+]/,"")},kf=e=>{for(var t=e.split("."),i=[...t],n=t.length-1;n>=0;n--){if(Of(t[n]))return i.join(".");i.splice(n,1)}return""},Of=e=>e.indexOf("tabs")>-1,Af=(e,t,i)=>{var n=e.indexOf(t);if(n>-1)return wf(n,i);for(var o=0;o=0)return e.option(Ef("items[".concat(o,"]"),t),n),!0}return!1}}class Bf extends xf{tryExecute(){return!1}}class Vf extends xf{tryExecute(){var e=this.findPreparedItem();return!(null==e||!e._prepareGroupItemTemplate||!e._renderGroupContentTemplate)&&(e._prepareGroupItemTemplate(this._options.item.template),e._renderGroupContentTemplate(),!0)}}class Ff extends xf{tryExecute(){var e=this.findInstance();if(e){var{value:t}=this._options;return e.option("dataSource",t),!0}return!1}}class Hf extends xf{tryExecute(){var{item:e}=this._options,t=this.findInstance(),i=t&&(0,le.aT)(t.$element()[0],"dxValidator");if(i&&e){var n=e=>"required"===e.type,o=(i.option("validationRules")||[]).some(n),r=(e.validationRules||[]).some(n);if(!o&&!r||o&&r)return i.option("validationRules",e.validationRules),!0}return!1}}class Lf extends xf{tryExecute(){var e=this.findItemContainer(),{previousValue:t,value:i}=this._options;return!!e&&(e.removeClass(t).addClass(i),!0)}}var Nf=(e,t)=>{switch(e){case"editorOptions":case"buttonOptions":return new Mf(t);case"validationRules":return new Hf(t);case"cssClass":return new Lf(t);case"badge":case"disabled":case"icon":case"tabTemplate":case"title":return new Rf((0,a.l)(t,{optionName:e}));case"tabs":return new Ff(t);case"template":var i,n,o,r=null!==(i=null===t||void 0===t||null===(n=t.item)||void 0===n?void 0:n.itemType)&&void 0!==i?i:null===(o=t.itemsRunTimeInfo.findPreparedItemByItem(null===t||void 0===t?void 0:t.item))||void 0===o?void 0:o.itemType;return"simple"===r?new Bf(t):"group"===r?new Vf(t):new Rf((0,a.l)(t,{optionName:e}));default:return null}},Zf=Nf,$f=i(22866),Wf="dx-box",Kf="dx-box-flex",zf="dx-box-item",jf="dxBoxItemData",Uf=1,Gf={row:"minWidth",col:"minHeight"},qf={row:"maxWidth",col:"maxHeight"},Yf={start:"flex-start",end:"flex-end",center:"center","space-between":"space-between","space-around":"space-around"},Xf={start:"flex-start",end:"flex-end",center:"center",stretch:"stretch"},Jf={row:"row",col:"column"},Qf=(e,t,i)=>{if(i=(0,Fl.bh)(t,i),e.style[(0,Fl.Hj)(t)]=i,!(0,s.Ym)()){if(""===i||!(0,l.$K)(i))return;var n=(0,sn.H0)(t),o=n+": "+i+";";e.attributes.style?e.attributes.style.value.indexOf(o)<0&&(e.attributes.style.value+=" "+o):e.setAttribute("style",o)}};class eg extends yd{_renderVisible(e,t){super._renderVisible(e),(0,l.$K)(t)&&this._options.fireItemStateChangedAction({name:"visible",state:e,oldState:t})}}class tg{constructor(e,t){this._$element=e,this._option=t}renderBox(){this._$element.css({display:(0,Fl.gC)("flexDirection")+"flex"}),Qf(this._$element.get(0),"flexDirection",Jf[this._option("direction")])}renderAlign(){this._$element.css({justifyContent:this._normalizedAlign()})}_normalizedAlign(){var e=this._option("align");return e in Yf?Yf[e]:e}renderCrossAlign(){this._$element.css({alignItems:this._normalizedCrossAlign()})}_normalizedCrossAlign(){var e=this._option("crossAlign");return e in Xf?Xf[e]:e}renderItems(e){var t=(0,Fl.gC)("flexDirection"),i=this._option("direction");(0,E.S6)(e,(function(){var e=(0,o.Z)(this),n=e.data(jf);e.css({display:t+"flex"}).css(qf[i],n.maxSize||"none").css(Gf[i],n.minSize||"0"),Qf(e.get(0),"flexBasis",n.baseSize||0),Qf(e.get(0),"flexGrow",n.ratio),Qf(e.get(0),"flexShrink",(0,l.$K)(n.shrink)?n.shrink:Uf),e.children().each(((e,t)=>{(0,o.Z)(t).css({width:"auto",height:"auto",display:(0,Fl.gC)("flexDirection")+"flex",flexBasis:0}),Qf(t,"flexGrow",1),Qf(t,"flexDirection",(0,o.Z)(t)[0].style.flexDirection||"column")}))}))}}class ig extends Du{_getDefaultOptions(){return(0,a.l)(super._getDefaultOptions(),{direction:"row",align:"start",crossAlign:"stretch",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,_queue:void 0})}_itemClass(){return zf}_itemDataKey(){return jf}_itemElements(){return this._itemContainer().children(this._itemSelector())}_init(){super._init(),this.$element().addClass(Kf),this._initLayout(),this._initBoxQueue()}_initLayout(){this._layout=new tg(this.$element(),this.option.bind(this))}_initBoxQueue(){this._queue=this.option("_queue")||[]}_queueIsNotEmpty(){return!this.option("_queue")&&!!this._queue.length}_pushItemToQueue(e,t){this._queue.push({$item:e,config:t})}_shiftItemFromQueue(){return this._queue.shift()}_initMarkup(){this.$element().addClass(Wf),this._layout.renderBox(),super._initMarkup(),this._renderAlign(),this._renderActions()}_renderActions(){this._onItemStateChanged=this._createActionByOption("onItemStateChanged")}_renderAlign(){this._layout.renderAlign(),this._layout.renderCrossAlign()}_renderItems(e){super._renderItems(e);while(this._queueIsNotEmpty()){var t=this._shiftItemFromQueue();this._createComponent(t.$item,ig,(0,a.l)({itemTemplate:this.option("itemTemplate"),itemHoldTimeout:this.option("itemHoldTimeout"),onItemHold:this.option("onItemHold"),onItemClick:this.option("onItemClick"),onItemContextMenu:this.option("onItemContextMenu"),onItemRendered:this.option("onItemRendered"),_queue:this._queue},t.config))}this._layout.renderItems(this._itemElements())}_renderItemContent(e){var t=e.itemData&&e.itemData.node;return t?this._renderItemContentByNode(e,t):super._renderItemContent(e)}_postprocessRenderItem(e){var t=e.itemData.box;t&&this._pushItemToQueue(e.itemContent,t)}_createItemByTemplate(e,t){return t.itemData.box?e.source?e.source():(0,o.Z)():super._createItemByTemplate(e,t)}_itemOptionChanged(e,t,i,n){"visible"===t&&this._onItemStateChanged({name:t,state:i,oldState:!1!==n}),super._itemOptionChanged(e,t,i)}_optionChanged(e){switch(e.name){case"_queue":case"direction":this._invalidate();break;case"align":this._layout.renderAlign();break;case"crossAlign":this._layout.renderCrossAlign();break;default:super._optionChanged(e)}}_itemOptions(){var e=super._itemOptions();return e.fireItemStateChangedAction=e=>{this._onItemStateChanged(e)},e}}ig.ItemClass=eg,(0,C.Z)("dxBox",ig);var ng=ig,og="dx-responsivebox",rg=og+"-screen-",ag="dx-box-item",sg="dxBoxItemData",lg=1920,dg=Du.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{rows:[],cols:[],screenByWidth:null,singleColumnScreen:"",height:"100%",width:"100%",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,onLayoutChanged:null,currentScreenFactor:void 0})},_init:function(){this.option("screenByWidth")||this._options.silent("screenByWidth",s.$n),this.callBase(),this._initLayoutChangedAction()},_initLayoutChangedAction:function(){this._layoutChangedAction=this._createActionByOption("onLayoutChanged",{excludeValidators:["disabled","readonly"]})},_itemClass:function(){return ag},_itemDataKey:function(){return sg},_initMarkup:function(){this.callBase(),this.$element().addClass(og)},_renderItems:function(){this._setScreenSize(),this._screenItems=this._itemsByScreen(),this._prepareGrid(),this._spreadItems(),this._layoutItems(),this._linkNodeToItem()},_itemOptionChanged:function(e){var t=this._findItemElementByItem(e);t.length&&(this._refreshItem(t,e),this._clearItemNodeTemplates(),this._update(!0))},_setScreenSize:function(){var e=this._getCurrentScreen();this._removeScreenSizeClass(),this.$element().addClass(rg+e),this.option("currentScreenFactor",e)},_removeScreenSizeClass:function(){var e=this.option("currentScreenFactor");e&&this.$element().removeClass(rg+e)},_prepareGrid:function(){var e=this._grid=[];this._prepareRowsAndCols(),(0,E.S6)(this._rows,function(){var t=[];e.push(t),(0,E.S6)(this._cols,function(){t.push(this._createEmptyCell())}.bind(this))}.bind(this))},getSingleColumnRows:function(){var e=this.option("rows"),t=this._screenItems.length;if(e.length){for(var i=this._filterByScreen(e),n=[],o=0;o{var i=t.location||{};return i=(0,l.PO)(i)?[i]:i,this._filterByScreen(i).forEach((i=>{e.push({item:t,location:(0,a.l)({rowspan:1,colspan:1},i)})})),e}),[])},_occupyCells:function(e,t){e&&!this._isItemCellOccupied(e,t)&&((0,a.l)(e,t),this._markSpanningCell(e))},_isItemCellOccupied:function(e,t){if(!(0,l.Qr)(e.item))return!0;var i=!1;return this._loopOverSpanning(t.location,(function(e){i=i||!(0,l.Qr)(e.item)})),i},_loopOverSpanning:function(e,t){var i=e.row+e.rowspan-1,n=e.col+e.colspan-1,o=Math.min(i,this._rows.length-1),r=Math.min(n,this._cols.length-1);e.rowspan-=i-o,e.colspan-=n-r;for(var a=e.row;a<=o;a++)for(var s=e.col;s<=r;s++)a===e.row&&s===e.col||t(this._grid[a][s])},_markSpanningCell:function(e){this._loopOverSpanning(e.location,(function(t){(0,a.l)(t,{item:e.item,spanningCell:e})}))},_linkNodeToItem:function(){(0,E.S6)(this._itemElements(),(function(e,t){var i=(0,o.Z)(t),n=i.data(sg);n.box||(n.node=i.children())}))},_layoutItems:function(){var e=this._grid.length,t=e&&this._grid[0].length;if(e||t){var i=this._layoutBlock({direction:"col",row:{start:0,end:e-1},col:{start:0,end:t-1}}),n=this._prepareBoxConfig(i.box||{direction:"row",items:[(0,a.l)(i,{ratio:1})]});(0,a.l)(n,this._rootBoxConfig(n.items)),this._$root=(0,o.Z)("
").appendTo(this._itemContainer()),this._createComponent(this._$root,ng,n)}},_rootBoxConfig:function(e){var t=(0,E.S6)(e,function(e,t){this._needApplyAutoBaseSize(t)&&(0,a.l)(t,{baseSize:"auto"})}.bind(this));return{width:"100%",height:"100%",items:t,itemTemplate:this._getTemplateByOption("itemTemplate"),itemHoldTimeout:this.option("itemHoldTimeout"),onItemHold:this._createActionByOption("onItemHold"),onItemClick:this._createActionByOption("onItemClick"),onItemContextMenu:this._createActionByOption("onItemContextMenu"),onItemRendered:this._createActionByOption("onItemRendered")}},_needApplyAutoBaseSize:function(e){return!e.baseSize&&(!e.minSize||"auto"===e.minSize)&&(!e.maxSize||"auto"===e.maxSize)},_prepareBoxConfig:function(e){return(0,a.l)(e||{},{crossAlign:"stretch",onItemStateChanged:this.option("onItemStateChanged")})},_layoutBlock:function(e){return this._isSingleItem(e)?this._itemByCell(e.row.start,e.col.start):this._layoutDirection(e)},_isSingleItem:function(e){var t=this._grid[e.row.start][e.col.start].location,i=e.row.end-e.row.start===t.rowspan-1,n=e.col.end-e.col.start===t.colspan-1;return i&&n},_itemByCell:function(e,t){var i=this._grid[e][t];return i.spanningCell?null:i.item},_layoutDirection:function(e){var t,i=[],n=e.direction,o=this._crossDirection(n);while(t=this._nextBlock(e)){if(this._isBlockIndivisible(e.prevBlockOptions,t))throw Xt.Z.Error("E1025");var r=this._layoutBlock({direction:o,row:t.row,col:t.col,prevBlockOptions:e});r&&((0,a.l)(r,this._blockSize(t,o)),i.push(r)),e[o].start=t[o].end+1}return{box:this._prepareBoxConfig({direction:n,items:i})}},_isBlockIndivisible:function(e,t){return e&&e.col.start===t.col.start&&e.col.end===t.col.end&&e.row.start===t.row.start&&e.row.end===t.row.end},_crossDirection:function(e){return"col"===e?"row":"col"},_nextBlock:function(e){var t=e.direction,i=this._crossDirection(t),n=e[t].start,o=e[t].end,r=e[i].start;if(r>e[i].end)return null;for(var a=1,s=r;sh&&(a+=c-h)}var p={};return p[t]={start:n,end:o},p[i]={start:r,end:r+a-1},p},_cellByDirection:function(e,t,i){return"col"===e?this._grid[i][t]:this._grid[t][i]},_blockSize:function(e,t){for(var i="row"===t?"auto":0,n="row"===t?this._rows:this._cols,o=(0,a.l)(this._createDefaultSizeConfig(),{ratio:0}),r=e[t].start;r<=e[t].end;r++){var s=n[r];o.ratio+=s.ratio,o.baseSize+=s.baseSize,o.minSize+=s.minSize,o.maxSize+=s.maxSize,(0,l.$K)(s.shrink)&&(o.shrink=s.shrink)}return o.minSize=o.minSize?o.minSize:i,o.maxSize=o.maxSize?o.maxSize:"auto",this._isSingleColumnScreen()&&(o.baseSize="auto"),o},_update:function(e){var t=this._$root;this._renderItems(),t&&(e?t.remove():(t.detach(),this._saveAssistantRoot(t))),this._layoutChangedAction()},_saveAssistantRoot:function(e){this._assistantRoots=this._assistantRoots||[],this._assistantRoots.push(e)},_dispose:function(){this._clearItemNodeTemplates(),this._cleanUnusedRoots(),this.callBase.apply(this,arguments)},_cleanUnusedRoots:function(){this._assistantRoots&&(0,E.S6)(this._assistantRoots,(function(e,t){(0,o.Z)(t).remove()}))},_clearItemNodeTemplates:function(){(0,E.S6)(this.option("items"),(function(){delete this.node}))},_attachClickEvent:v.ZT,_optionChanged:function(e){switch(e.name){case"rows":case"cols":case"screenByWidth":case"singleColumnScreen":this._clearItemNodeTemplates(),this._invalidate();break;case"width":case"height":this.callBase(e),this._update();break;case"onLayoutChanged":this._initLayoutChangedAction();break;case"itemTemplate":this._clearItemNodeTemplates(),this.callBase(e);break;case"currentScreenFactor":break;default:this.callBase(e)}},_dimensionChanged:function(){this._getCurrentScreen()!==this.option("currentScreenFactor")&&this._update()},repaint:function(){this._update()}});(0,C.Z)("dxResponsiveBox",dg);var ug=dg,cg="dx-form",hg="dx-form-group",pg="dx-form-group-caption",fg="dx-col-",gg="dx-field-item",mg="dx-layout-manager-one-col",_g="dx-field-item-label-content",vg="dx-layout-manager",yg="dx-field-item-label",Cg="dx-field-item-content",bg="dx-single-column-item-content",xg="dx-root-simple-item",wg="dx-form-group-content",Tg="dx-field-item-has-group",Sg="dx-field-item-has-tabs",Ig="dx-form-group-with-caption",Eg="dx-field-item-tab",Dg="dx-group-colcount-",kg="group-col-count",Og="dx-form-validation-summary",Ag="dx-form-styling-mode-underlined",Pg="simple",{ios:Mg,mac:Rg}=w.Z.real(),Bg=Mg||Rg,Vg=function(e){var t;try{t={start:e.selectionStart,end:e.selectionEnd}}catch(i){t={start:0,end:0}}return t},Fg=function(e,t){var i=ke["default"].getBody();if(i.contains(e)||i.contains(e.getRootNode().host))try{e.selectionStart=t.start,e.selectionEnd=t.end}catch(n){}},Hg=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e=(0,o.Z)(e).get(0),!(0,l.$K)(t))return Vg(e);!i&&Bg&&ke["default"].getActiveElement(e)!==e||Fg(e,t)},Lg=Hg;function Ng(){var{android:e,version:t}=w.Z.real();return e&&t[0]>4}function Zg(){return"onbeforeinput"in ke["default"].createElement("input")&&!Me.Z.chrome||Ng()}var $g=i(78361),Wg=" ",Kg=P.Z.inherit({ctor:function(e){this._value=Wg,(0,a.l)(this,e)},next:function(e){if(!arguments.length)return this._next;this._next=e},text:v.ZT,value:v.ZT,rawValue:v.ZT,handle:v.ZT,_prepareHandlingArgs:function(e,t){var i,n,o;t=t||{};var r=Object.prototype.hasOwnProperty.call(e,"value")?"value":"text";return e[r]=null!==(i=t.str)&&void 0!==i?i:e[r],e.start=null!==(n=t.start)&&void 0!==n?n:e.start,e.length=null!==(o=t.length)&&void 0!==o?o:e.length,e.index=e.index+1,e},reset:v.ZT,clear:v.ZT,first:function(e){return e=e||0,this.next().first(e+1)},isAccepted:function(){return!1},adjustedCaret:function(e,t,i){return t?this._adjustedForward(e,0,i):this._adjustedBackward(e,0,i)},_adjustedForward:v.ZT,_adjustedBackward:v.ZT,isValid:v.ZT}),zg=Kg.inherit({next:v.ZT,handle:function(){return 0},text:function(){return""},value:function(){return""},first:function(){return 0},rawValue:function(){return""},adjustedCaret:function(){return 0},isValid:function(){return!0}}),jg=Kg.inherit({text:function(){return(this._value!==Wg?this._value:this.maskChar)+this.next().text()},value:function(){return this._value+this.next().value()},rawValue:function(){return this._value+this.next().rawValue()},handle:function(e){var t=Object.prototype.hasOwnProperty.call(e,"value")?e.value:e.text;if(!t||!t.length||!e.length)return 0;if(e.start)return this.next().handle(this._prepareHandlingArgs(e,{start:e.start-1}));var i=t[0],n=t.substring(1);return this._tryAcceptChar(i,e),this._accepted()?this.next().handle(this._prepareHandlingArgs(e,{str:n,length:e.length-1}))+1:this.handle(this._prepareHandlingArgs(e,{str:n,length:e.length-1}))},clear:function(e){this._tryAcceptChar(Wg,e),this.next().clear(this._prepareHandlingArgs(e))},reset:function(){this._accepted(!1),this.next().reset()},_tryAcceptChar:function(e,t){if(this._accepted(!1),this._isAllowed(e,t)){var i=e===Wg?this.maskChar:e;t.fullText=t.fullText.substring(0,t.index)+i+t.fullText.substring(t.index+1),this._accepted(!0),this._value=e}},_accepted:function(e){if(!arguments.length)return!!this._isAccepted;this._isAccepted=!!e},first:function(e){return this._value===Wg?e||0:this.callBase(e)},_isAllowed:function(e,t){return e===Wg||this._isValid(e,t)},_isValid:function(e,t){var i=this.allowedChars;return i instanceof RegExp?i.test(e):(0,l.mf)(i)?i(e,t.index,t.fullText):Array.isArray(i)?i.includes(e):i===e},isAccepted:function(e){return 0===e?this._accepted():this.next().isAccepted(e-1)},_adjustedForward:function(e,t,i){return t>=e?t:this.next()._adjustedForward(e,t+1,i)||t+1},_adjustedBackward:function(e,t){return t>=e-1?e:this.next()._adjustedBackward(e,t+1)||t+1},isValid:function(e){return this._isValid(this._value,e)&&this.next().isValid(this._prepareHandlingArgs(e))}}),Ug=jg.inherit({value:function(){return this.next().value()},handle:function(e){var t=Object.prototype.hasOwnProperty.call(e,"value"),i=t?e.value:e.text;if(!i.length||!e.length)return 0;if(e.start||t)return this.next().handle(this._prepareHandlingArgs(e,{start:e.start&&e.start-1}));var n=i[0],o=i.substring(1);this._tryAcceptChar(n);var r=this._isAllowed(n)?this._prepareHandlingArgs(e,{str:o,length:e.length-1}):e;return this.next().handle(r)+1},clear:function(e){this._accepted(!1),this.next().clear(this._prepareHandlingArgs(e))},_tryAcceptChar:function(e){this._accepted(this._isValid(e))},_isValid:function(e){return e===this.maskChar},first:function(e){return e=e||0,this.next().first(e+1)},_adjustedForward:function(e,t,i){return t>=e&&i===this.maskChar?t:e===t+1&&this._accepted()?e:this.next()._adjustedForward(e,t+1,i)},_adjustedBackward:function(e,t){return t>=e-1?0:this.next()._adjustedBackward(e,t+1)},isValid:function(e){return this.next().isValid(this._prepareHandlingArgs(e))}});class Gg{constructor(e,t,i){this.instance=null,this.$container=null,this.$placeMarker=null,this.editor=t,this.name=e,this.options=i||{}}_addPlaceMarker(e){this.$placeMarker=(0,o.Z)("
").appendTo(e)}_addToContainer(e){var{$placeMarker:t,$container:i}=this;t?t.replaceWith(e):e.appendTo(i)}_attachEvents(){throw"Not implemented"}_create(){throw"Not implemented"}_isRendered(){return!!this.instance}_isVisible(){var{editor:e,options:t}=this;return t.visible||!e.option("readOnly")}_isDisabled(){throw"Not implemented"}_shouldRender(){return this._isVisible()&&!this._isRendered()}dispose(){var{instance:e,$placeMarker:t}=this;e&&(e.dispose?e.dispose():e.remove(),this.instance=null),t&&t.remove()}render(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$container;if(this.$container=e,this._isVisible()){var{instance:t,$element:i}=this._create();this.instance=t,this._attachEvents(t,i)}else this._addPlaceMarker(e)}update(){return this._shouldRender()&&this.render(),!!this.instance}}var qg=B.Z.down,Yg="dx-state-invisible",Xg="dx-clear-button-area",Jg="dx-icon-clear",Qg="dx-icon",em="dx-show-clear-button";class tm extends Gg{_create(){var e=(0,o.Z)("").addClass(Xg).append((0,o.Z)("").addClass(Qg).addClass(Jg));return this._addToContainer(e),this.update(!0),{instance:e,$element:e}}_isVisible(){var{editor:e}=this;return e._isClearButtonVisible()}_attachEvents(e,t){var{editor:i}=this,n=i.NAME;re.Z.on(t,(0,R.V4)(qg,n),(e=>{e.preventDefault(),"mouse"!==e.pointerType&&i._clearValueHandler(e)})),re.Z.on(t,(0,R.V4)(A.u,n),(e=>i._clearValueHandler(e)))}_legacyRender(e,t){e.toggleClass(em,t)}update(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!e&&super.update();var{editor:t,instance:i}=this,n=t.$element(),o=this._isVisible();i&&i.toggleClass(Yg,!o),this._legacyRender(n,o)}}var im="dx-custom-button-hovered";class nm extends Gg{_attachEvents(e,t){var{editor:i}=this;re.Z.on(t,z.B,(()=>{i.$element().addClass(im)})),re.Z.on(t,z.u,(()=>{i.$element().removeClass(im)})),re.Z.on(t,A.u,(e=>{e.stopPropagation()}))}_create(){var{editor:e}=this,t=(0,o.Z)("
");this._addToContainer(t);var i=e._createComponent(t,cd,(0,a.l)({},this.options,{ignoreParentReadOnly:!0,disabled:this._isDisabled(),integrationOptions:this._prepareIntegrationOptions(e)}));return{$element:t,instance:i}}_prepareIntegrationOptions(e){return(0,a.l)({},e.option("integrationOptions"),{skipTemplates:["content"]})}update(){var e=super.update();return this.instance&&this.instance.option("disabled",this._isDisabled()),e}_isVisible(){var{editor:e}=this;return e.option("visible")}_isDisabled(){var e=void 0!==this.options.disabled;return e?this.instance?this.instance.option("disabled"):this.options.disabled:this.editor.option("readOnly")}}var om="dx-texteditor-buttons-container";function rm(e){(()=>{if(!e||"object"!==typeof e||Array.isArray(e))throw Xt.Z.Error("E1053")})(),(()=>{if(!("name"in e))throw Xt.Z.Error("E1054")})(),(()=>{var{name:t}=e;if("string"!==typeof t)throw Xt.Z.Error("E1055")})(),(()=>{var{location:t}=e;"location"in e&&"after"!==t&&"before"!==t&&(e.location="after")})()}function am(e,t){if(-1!==e.indexOf(t))throw Xt.Z.Error("E1055",t);e.push(t)}function sm(e,t){return!!t.find((t=>t.name===e))}class lm{constructor(e,t){this.buttons=[],this.defaultButtonsInfo=t,this.editor=e}_compileButtonInfo(e){var t=[];return e.map((e=>{var i="string"===typeof e;i||rm(e);var n=i||sm(e.name,this.defaultButtonsInfo);if(n){var o=this.defaultButtonsInfo.find((t=>{var{name:i}=t;return i===e||i===e.name}));if(!o)throw Xt.Z.Error("E1056",this.editor.NAME,e);return am(t,e),o}var{name:r}=e;return am(t,r),(0,a.l)(e,{Ctor:nm})}))}_createButton(e){var{Ctor:t,options:i,name:n}=e,o=new t(n,this.editor,i);return this.buttons.push(o),o}_renderButtons(e,t,i){var n=null,r=e?this._compileButtonInfo(e):this.defaultButtonsInfo;return r.forEach((e=>{var{location:r="after"}=e;r===i&&this._createButton(e).render((()=>(n=n||(0,o.Z)("
").addClass(om),"before"===i?t.prepend(n):t.append(n),n))())})),n}clean(){this.buttons.forEach((e=>e.dispose())),this.buttons=[]}getButton(e){var t=this.buttons.find((t=>{var{name:i}=t;return i===e}));return t&&t.instance}renderAfterButtons(e,t){return this._renderButtons(e,t,"after")}renderBeforeButtons(e,t){return this._renderButtons(e,t,"before")}updateButtons(e){this.buttons.forEach((t=>{e&&-1===e.indexOf(t.name)||t.update()}))}}var dm="dx-texteditor-label",um="dx-texteditor-with-label",cm="dx-texteditor-with-floating-label",hm="dx-texteditor-with-before-buttons",pm="dx-label-before",fm="dx-label",gm="dx-label-after";class mm{constructor(e){var{$editor:t,text:i,mode:n,mark:o,containsButtonsBefore:r,containerWidth:a,beforeWidth:s}=e;this._props={$editor:t,text:i,mode:n,mark:o,containsButtonsBefore:r,containerWidth:a,beforeWidth:s},this._id="".concat(dm,"-").concat(new Li.Z),this._render(),this._toggleMarkupVisibility()}_isVisible(){return!!this._props.text&&"hidden"!==this._props.mode}_render(){this._$before=(0,o.Z)("
").addClass(pm),this._$labelSpan=(0,o.Z)(""),this._$label=(0,o.Z)("
").addClass(fm).append(this._$labelSpan),this._$after=(0,o.Z)("
").addClass(gm),this._$root=(0,o.Z)("
").addClass(dm).attr("id",this._id).append(this._$before).append(this._$label).append(this._$after),this._updateMark(),this._updateText(),this._updateBeforeWidth(),this._updateMaxWidth()}_toggleMarkupVisibility(){var e=this._isVisible();this._updateEditorBeforeButtonsClass(e),this._updateEditorLabelClass(e),e?this._$root.appendTo(this._props.$editor):this._$root.detach()}_updateEditorLabelClass(e){if(this._props.$editor.removeClass(cm).removeClass(um),e){var t="floating"===this._props.mode?cm:um;this._props.$editor.addClass(t)}}_updateEditorBeforeButtonsClass(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._isVisible();if(this._props.$editor.removeClass(hm),e){var t=this._props.containsButtonsBefore?hm:"";this._props.$editor.addClass(t)}}_updateMark(){this._$labelSpan.attr("data-mark",this._props.mark)}_updateText(){this._$labelSpan.text(this._props.text)}_updateBeforeWidth(){this._$before.css({width:this._props.beforeWidth})}_updateMaxWidth(){this._$label.css({maxWidth:this._props.containerWidth})}$element(){return this._$root}isVisible(){return this._isVisible()}getId(){if(this._isVisible())return this._id}updateMode(e){this._props.mode=e,this._toggleMarkupVisibility()}updateText(e){this._props.text=e,this._updateText(),this._toggleMarkupVisibility()}updateMark(e){this._props.mark=e,this._updateMark()}updateContainsButtonsBefore(e){this._props.containsButtonsBefore=e,this._updateEditorBeforeButtonsClass()}updateBeforeWidth(e){this._props.beforeWidth=e,this._updateBeforeWidth()}updateMaxWidth(e){this._props.containerWidth=e,this._updateMaxWidth()}}var _m="dx-texteditor",vm="dx-texteditor-input-container",ym="dx-texteditor-input",Cm="."+ym,bm="dx-texteditor-container",xm="dx-texteditor-buttons-container",wm="dx-placeholder",Tm="dx-texteditor-empty",Sm="dx-state-invisible",Im="dx-pending-indicator",Em="dx-validation-pending",Dm="dx-valid",km=["KeyDown","KeyPress","KeyUp","Change","Cut","Copy","Paste","Input"],Om=["tab","enter","shift","control","alt","escape","pageUp","pageDown","end","home","leftArrow","upArrow","rightArrow","downArrow"],Am=mm;function Pm(e){if((0,l.$K)(e)&&!Array.isArray(e))throw Xt.Z.Error("E1053")}var Mm=zc.inherit({ctor:function(e,t){t&&Pm(t.buttons),this._buttonCollection=new lm(this,this._getDefaultButtons()),this._$beforeButtonsContainer=null,this._$afterButtonsContainer=null,this._labelContainerElement=null,this.callBase.apply(this,arguments)},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{buttons:void 0,value:"",spellcheck:!1,showClearButton:!1,valueChangeEvent:"change",placeholder:"",inputAttr:{},onFocusIn:null,onFocusOut:null,onKeyDown:null,onKeyUp:null,onChange:null,onInput:null,onCut:null,onCopy:null,onPaste:null,onEnterKey:null,mode:"text",hoverStateEnabled:!0,focusStateEnabled:!0,text:void 0,displayValueFormatter:function(e){return(0,l.$K)(e)&&!1!==e?e:""},stylingMode:(0,Oe.Z)().editorStylingMode||"outlined",showValidationMark:!0,label:"",labelMode:"static",labelMark:""})},_defaultOptionsRules:function(){var e=(0,x.Vk)();return this.callBase().concat([{device:function(){return(0,x.x2)(e)},options:{stylingMode:(0,Oe.Z)().editorStylingMode||"filled",labelMode:"floating"}}])},_getDefaultButtons:function(){return[{name:"clear",Ctor:tm}]},_isClearButtonVisible:function(){return this.option("showClearButton")&&!this.option("readOnly")},_input:function(){return this.$element().find(Cm).first()},_isFocused:function(){return(0,D.si)(this._input())||this.callBase()},_inputWrapper:function(){return this.$element()},_buttonsContainer:function(){return this._inputWrapper().find("."+xm).eq(0)},_isControlKey:function(e){return-1!==Om.indexOf(e)},_renderStylingMode:function(){this.callBase(),this._updateButtonsStyling(this.option("stylingMode"))},_initMarkup:function(){this.$element().addClass(_m),this._renderInput(),this._renderStylingMode(),this._renderInputType(),this._renderPlaceholder(),this._renderProps(),this.callBase(),this._renderValue(),this._renderLabel()},_render:function(){this.callBase(),this._refreshValueChangeEvent(),this._renderEvents(),this._renderEnterKeyAction(),this._renderEmptinessEvent()},_renderInput:function(){this._$buttonsContainer=this._$textEditorContainer=(0,o.Z)("
").addClass(bm).appendTo(this.$element()),this._$textEditorInputContainer=(0,o.Z)("
").addClass(vm).appendTo(this._$textEditorContainer),this._$textEditorInputContainer.append(this._createInput()),this._renderButtonContainers()},_getInputContainer(){return this._$textEditorInputContainer},_renderPendingIndicator:function(){this.$element().addClass(Em);var e=this._getInputContainer(),t=(0,o.Z)("
").addClass(Im).appendTo(e);this._pendingIndicator=this._createComponent(t,oe)},_disposePendingIndicator:function(){this._pendingIndicator&&(this._pendingIndicator.dispose(),this._pendingIndicator.$element().remove(),this._pendingIndicator=null,this.$element().removeClass(Em))},_renderValidationState:function(){this.callBase();var e="pending"===this.option("validationStatus"),t=this.$element();e?(!this._pendingIndicator&&this._renderPendingIndicator(),this._showValidMark=!1):("invalid"===this.option("validationStatus")&&(this._showValidMark=!1),this._showValidMark||!0!==this.option("showValidationMark")||(this._showValidMark="valid"===this.option("validationStatus")&&!!this._pendingIndicator),this._disposePendingIndicator()),t.toggleClass(Dm,!!this._showValidMark)},_renderButtonContainers:function(){var e=this.option("buttons");this._$beforeButtonsContainer=this._buttonCollection.renderBeforeButtons(e,this._$buttonsContainer),this._$afterButtonsContainer=this._buttonCollection.renderAfterButtons(e,this._$buttonsContainer)},_cleanButtonContainers:function(){var e,t;null===(e=this._$beforeButtonsContainer)||void 0===e||e.remove(),null===(t=this._$afterButtonsContainer)||void 0===t||t.remove(),this._buttonCollection.clean()},_clean(){this._buttonCollection.clean(),this._disposePendingIndicator(),this._unobserveLabelContainerResize(),this._$beforeButtonsContainer=null,this._$afterButtonsContainer=null,this._$textEditorContainer=null,this._$buttonsContainer=null,this.callBase()},_createInput:function(){var e=(0,o.Z)("");return this._applyInputAttributes(e,this.option("inputAttr")),e},_setSubmitElementName:function(e){var t=this.option("inputAttr.name");return this.callBase(e||t||"")},_applyInputAttributes:function(e,t){var i=(0,a.l)(this._getDefaultAttributes(),t);e.attr(i).addClass(ym).css("minHeight",this.option("height")?"0":"")},_getDefaultAttributes:function(){var e={autocomplete:"off"},{ios:t,mac:i}=w.Z.real();return(t||i)&&(e.placeholder=" "),e},_updateButtons:function(e){this._buttonCollection.updateButtons(e)},_updateButtonsStyling:function(e){(0,E.S6)(this.option("buttons"),((t,i)=>{var{options:n,name:o}=i;if(n&&!n.stylingMode&&this.option("visible")){var r=this.getButton(o);r.option&&r.option("stylingMode","underlined"===e?"text":"contained")}}))},_renderValue:function(){var e=this._renderInputValue();return e.promise()},_renderInputValue:function(e){var t;e=null!==(t=e)&&void 0!==t?t:this.option("value");var i=this.option("text"),n=this.option("displayValue"),o=this.option("displayValueFormatter");return void 0!==n&&null!==e?i=o(n):(0,l.$K)(i)||(i=o(e)),this.option("text",i),this._input().val()!==((0,l.$K)(i)?i:"")?this._renderDisplayText(i):this._toggleEmptinessEventHandler(),(new ot.BH).resolve()},_renderDisplayText:function(e){this._input().val(e),this._toggleEmptinessEventHandler()},_isValueValid:function(){if(this._input().length){var e=this._input().get(0).validity;if(e)return e.valid}return!0},_toggleEmptiness:function(e){this.$element().toggleClass(Tm,e),this._togglePlaceholder(e)},_togglePlaceholder:function(e){this.$element().find(".".concat(wm)).eq(0).toggleClass(Sm,!e)},_renderProps:function(){this._toggleReadOnlyState(),this._toggleSpellcheckState(),this._toggleTabIndex()},_toggleDisabledState:function(e){this.callBase.apply(this,arguments);var t=this._input();t.prop("disabled",e)},_toggleTabIndex:function(){var e=this._input(),t=this.option("disabled"),i=this.option("focusStateEnabled");t||!i?e.attr("tabIndex",-1):e.removeAttr("tabIndex")},_toggleReadOnlyState:function(){this._input().prop("readOnly",this._readOnlyPropValue()),this.callBase()},_readOnlyPropValue:function(){return this.option("readOnly")},_toggleSpellcheckState:function(){this._input().prop("spellcheck",this.option("spellcheck"))},_unobserveLabelContainerResize:function(){this._labelContainerElement&&(qu.Z.unobserve(this._labelContainerElement),this._labelContainerElement=null)},_getLabelContainer:function(){return this._input()},_getLabelContainerWidth:function(){return(0,n.dz)(this._getLabelContainer())},_getLabelBeforeWidth:function(){var e=this._$beforeButtonsContainer&&(0,n.dz)(this._$beforeButtonsContainer);return null!==e&&void 0!==e?e:0},_updateLabelWidth:function(){this._label.updateBeforeWidth(this._getLabelBeforeWidth()),this._label.updateMaxWidth(this._getLabelContainerWidth())},_setLabelContainerAria:function(){this.setAria("labelledby",this._label.getId(),this._getLabelContainer())},_renderLabel:function(){this._unobserveLabelContainerResize(),this._labelContainerElement=(0,o.Z)(this._getLabelContainer()).get(0);var{label:e,labelMode:t,labelMark:i}=this.option(),n={$editor:this.$element(),text:e,mark:i,mode:t,containsButtonsBefore:!!this._$beforeButtonsContainer,containerWidth:this._getLabelContainerWidth(),beforeWidth:this._getLabelBeforeWidth()};this._label=new Am(n),this._setLabelContainerAria(),this._labelContainerElement&&qu.Z.observe(this._labelContainerElement,this._updateLabelWidth.bind(this))},_renderPlaceholder:function(){this._renderPlaceholderMarkup(),this._attachPlaceholderEvents()},_renderPlaceholderMarkup:function(){this._$placeholder&&(this._$placeholder.remove(),this._$placeholder=null);var e=this._input(),t=this.option("placeholder"),i=this._$placeholder=(0,o.Z)("
").attr("data-dx_placeholder",t);i.insertAfter(e),i.addClass(wm)},_attachPlaceholderEvents:function(){var e=(0,R.V4)(B.Z.up,this.NAME);re.Z.on(this._$placeholder,e,(()=>{re.Z.trigger(this._input(),"focus")})),this._toggleEmptinessEventHandler()},_placeholder:function(){return this._$placeholder||(0,o.Z)()},_clearValueHandler:function(e){var t=this._input();e.stopPropagation(),this._saveValueChangeEvent(e),this._clearValue(),!this._isFocused()&&re.Z.trigger(t,"focus"),re.Z.trigger(t,"input")},_clearValue:function(){this.reset()},_renderEvents:function(){var e=this._input();(0,E.S6)(km,((t,i)=>{if(this.hasActionSubscription("on"+i)){var n=this._createActionByOption("on"+i,{excludeValidators:["readOnly"]});re.Z.on(e,(0,R.V4)(i.toLowerCase(),this.NAME),(e=>{this._disposed||n({event:e})}))}}))},_refreshEvents:function(){var e=this._input();(0,E.S6)(km,((t,i)=>{re.Z.off(e,(0,R.V4)(i.toLowerCase(),this.NAME))})),this._renderEvents()},_keyPressHandler:function(){this.option("text",this._input().val())},_keyDownHandler:function(e){var t=this._input(),i=e.ctrlKey&&"enter"===(0,R.EV)(e),n=t.val()!==this.option("value");i&&n&&re.Z.trigger(t,"change")},_getValueChangeEventOptionName:function(){return"valueChangeEvent"},_renderValueChangeEvent:function(){var e=(0,R.V4)(this._renderValueEventName(),"".concat(this.NAME,"TextChange")),t=(0,R.V4)(this.option(this._getValueChangeEventOptionName()),"".concat(this.NAME,"ValueChange")),i=(0,R.V4)("keydown","".concat(this.NAME,"TextChange")),n=this._input();re.Z.on(n,e,this._keyPressHandler.bind(this)),re.Z.on(n,t,this._valueChangeEventHandler.bind(this)),re.Z.on(n,i,this._keyDownHandler.bind(this))},_cleanValueChangeEvent:function(){var e=".".concat(this.NAME,"ValueChange"),t=".".concat(this.NAME,"TextChange");re.Z.off(this._input(),e),re.Z.off(this._input(),t)},_refreshValueChangeEvent:function(){this._cleanValueChangeEvent(),this._renderValueChangeEvent()},_renderValueEventName:function(){return"input change keypress"},_focusTarget:function(){return this._input()},_focusEventTarget:function(){return this.element()},_isInput:function(e){return e===this._input().get(0)},_preventNestedFocusEvent:function(e){if(e.isDefaultPrevented())return!0;var t=this._isNestedTarget(e.relatedTarget);return"focusin"===e.type?t=t&&this._isNestedTarget(e.target)&&!this._isInput(e.target):t||this._toggleFocusClass(!1,this.$element()),t&&e.preventDefault(),t},_isNestedTarget:function(e){return!!this.$element().find(e).length},_focusClassTarget:function(){return this.$element()},_focusInHandler:function(e){this._preventNestedFocusEvent(e),this.callBase.apply(this,arguments)},_focusOutHandler:function(e){this._preventNestedFocusEvent(e),this.callBase.apply(this,arguments)},_toggleFocusClass:function(e,t){this.callBase(e,this._focusClassTarget(t))},_hasFocusClass:function(e){return this.callBase((0,o.Z)(e||this.$element()))},_renderEmptinessEvent:function(){var e=this._input();re.Z.on(e,"input blur",this._toggleEmptinessEventHandler.bind(this))},_toggleEmptinessEventHandler:function(){var e=this._input().val(),t=(""===e||null===e)&&this._isValueValid();this._toggleEmptiness(t)},_valueChangeEventHandler:function(e,t){this.option("readOnly")||(this._saveValueChangeEvent(e),this.option("value",arguments.length>1?t:this._input().val()),this._saveValueChangeEvent(void 0))},_renderEnterKeyAction:function(){this._enterKeyAction=this._createActionByOption("onEnterKey",{excludeValidators:["readOnly"]}),re.Z.off(this._input(),"keyup.onEnterKey.dxTextEditor"),re.Z.on(this._input(),"keyup.onEnterKey.dxTextEditor",this._enterKeyHandlerUp.bind(this))},_enterKeyHandlerUp:function(e){this._disposed||"enter"===(0,R.EV)(e)&&this._enterKeyAction({event:e})},_updateValue:function(){this._options.silent("text",null),this._renderValue()},_dispose:function(){this._enterKeyAction=void 0,this.callBase()},_getSubmitElement:function(){return this._input()},_hasActiveElement:function(){return this._input().is(ke["default"].getActiveElement(this._input()[0]))},_optionChanged:function(e){var{name:t,fullName:i,value:n}=e,o=t.replace("on","");if(km.includes(o))this._refreshEvents();else switch(t){case"valueChangeEvent":this._refreshValueChangeEvent(),this._refreshFocusEvent(),this._refreshEvents();break;case"onValueChanged":this._createValueChangeAction();break;case"focusStateEnabled":this.callBase(e),this._toggleTabIndex();break;case"spellcheck":this._toggleSpellcheckState();break;case"mode":this._renderInputType();break;case"onEnterKey":this._renderEnterKeyAction();break;case"placeholder":this._renderPlaceholder();break;case"label":this._label.updateText(n),this._setLabelContainerAria();break;case"labelMark":this._label.updateMark(n);break;case"labelMode":this._label.updateMode(n),this._setLabelContainerAria();break;case"width":this.callBase(e),this._label.updateMaxWidth(this._getLabelContainerWidth());break;case"readOnly":case"disabled":this._updateButtons(),this.callBase(e);break;case"showClearButton":this._updateButtons(["clear"]);break;case"text":break;case"value":this._updateValue(),this.callBase(e);break;case"inputAttr":this._applyInputAttributes(this._input(),this.option(t));break;case"stylingMode":this._renderStylingMode(),this._updateLabelWidth();break;case"buttons":i===t&&Pm(n),this._cleanButtonContainers(),this._renderButtonContainers(),this._updateButtonsStyling(this.option("stylingMode")),this._updateLabelWidth(),this._label.updateContainsButtonsBefore(!!this._$beforeButtonsContainer);break;case"visible":this.callBase(e),n&&this.option("buttons")&&(this._cleanButtonContainers(),this._renderButtonContainers(),this._updateButtonsStyling(this.option("stylingMode")));break;case"displayValueFormatter":this._invalidate();break;case"showValidationMark":break;default:this.callBase(e)}},_renderInputType:function(){this._setInputType(this.option("mode"))},_setInputType:function(e){var t=this._input();"search"===e&&(e="text");try{t.prop("type",e)}catch(i){t.prop("type","text")}},getButton(e){return this._buttonCollection.getButton(e)},focus:function(){re.Z.trigger(this._input(),"focus")},reset:function(){this._showValidMark&&(this._showValidMark=!1,this._renderValidationState());var e=this._getDefaultOptions();this.option("value")===e.value?(this._options.silent("text",""),this._renderValue()):this.option("value",e.value)},on:function(e,t){var i=this.callBase(e,t),n=e.charAt(0).toUpperCase()+e.substr(1);return km.indexOf(n)>=0&&this._refreshEvents(),i}}),Rm=Mm,Bm="dxMask",Vm="blur beforedeactivate",Fm=" ";class Hm{constructor(e){this.editor=e,this.DIRECTION={FORWARD:"forward",BACKWARD:"backward"},this.NAME=this._getStrategyName()}_getStrategyName(){return"base"}editorOption(){return this.editor.option(...arguments)}editorInput(){return this.editor._input()}editorCaret(e){if(!e)return this.editor._caret();this.editor._caret(e)}getHandler(e){var t=this["_".concat(e,"Handler")]||function(){};return t.bind(this)}attachEvents(){var e=this.editorInput();this.getHandleEventNames().forEach((t=>{var i=(0,R.V4)(t.toLowerCase(),Bm);re.Z.on(e,i,this.getEventHandler(t))})),this._attachChangeEventHandlers()}getHandleEventNames(){return["focusIn","focusOut","keyDown","input","paste","cut","drop"]}getEventHandler(e){return this["_".concat(e,"Handler")].bind(this)}detachEvents(){re.Z.off(this.editorInput(),".".concat(Bm))}_attachChangeEventHandlers(){this.editorOption("valueChangeEvent").split(" ").includes("change")&&re.Z.on(this.editorInput(),(0,R.V4)(Vm,Bm),function(e){this._suppressCaretChanging(this._changeHandler,[e]),this._changeHandler(e)}.bind(this.editor))}_focusInHandler(){if(this.editor._showMaskPlaceholder(),this.editor._direction(this.DIRECTION.FORWARD),!this.editor._isValueEmpty()&&this.editorOption("isValid"))this.editor._adjustCaret();else{var e=this.editor._maskRulesChain.first();this._caretTimeout=setTimeout(function(){this._caret({start:e,end:e})}.bind(this.editor),0)}}_focusOutHandler(e){this.editor._changeHandler(e),"onFocus"===this.editorOption("showMaskMode")&&this.editor._isValueEmpty()&&(this.editorOption("text",""),this.editor._renderDisplayText(""))}_cutHandler(e){var t=this.editorCaret(),i=this.editorInput().val().substring(t.start,t.end);this.editor._maskKeyHandler(e,(()=>(0,M.Zx)(e,i)))}_dropHandler(){this._clearDragTimer(),this._dragTimer=setTimeout(function(){this.option("value",this._convertToValue(this._input().val()))}.bind(this.editor))}_clearDragTimer(){clearTimeout(this._dragTimer)}_keyDownHandler(){this._keyPressHandled=!1}_pasteHandler(e){var{editor:t}=this;this._keyPressHandled=!0;var i=this.editorCaret();t._maskKeyHandler(e,(()=>{var n=(0,M.Zx)(e),o=t._maskRulesChain.text().substring(i.end),r=t._handleChain({text:n,start:i.start,length:n.length}),a=i.start+r;t._handleChain({text:o,start:a,length:o.length}),t._caret({start:a,end:a})}))}_autoFillHandler(e){var{editor:t}=this,i=this.editorInput().val();this._inputHandlerTimer=setTimeout((()=>{this._keyPressHandled=!0,this._isAutoFill()&&(this._keyPressHandled=!0,t._maskKeyHandler(e,(()=>{t._handleChain({text:i,start:0,length:i.length})})),t._validateMask())}))}_isAutoFill(){var e=this.editor._input(),t=!1;if(Me.Z.webkit){var i=e.get(0);t=i&&i.matches(":-webkit-autofill")}return t}runWithoutEventProcessing(e){var t=this._keyPressHandled;this._keyPressHandled=!0,e(),this._keyPressHandled=t}_backspaceHandler(){}_delHandler(e){var{editor:t}=this;this._keyPressHandled=!0,t._maskKeyHandler(e,(()=>!t._hasSelection()&&t._handleKey(Fm)))}clean(){this._clearDragTimer(),clearTimeout(this._backspaceHandlerTimeout),clearTimeout(this._caretTimeout),clearTimeout(this._inputHandlerTimer)}}var Lm="deleteContentBackward",Nm=" ";class Zm extends Hm{_getStrategyName(){return"default"}getHandleEventNames(){return[...super.getHandleEventNames(),"keyPress"]}_keyPressHandler(e){if(!this._keyPressHandled&&(this._keyPressHandled=!0,!this.editor._isControlKeyFired(e))){var{editor:t}=this;t._maskKeyHandler(e,(()=>t._handleKey((0,R.qK)(e))))}}_inputHandler(e){if(this._backspaceInputHandled(e.originalEvent&&e.originalEvent.inputType)&&this._handleBackspaceInput(e),e.originalEvent&&this._autoFillHandler(e),!this._keyPressHandled){this._keyPressHandled=!0;var t=this.editorInput().val(),i=this.editorCaret();if(i.end){i.start=i.end-1;var n=t.substring(0,i.start)+t.substring(i.end),o=t[i.start],{editor:r}=this;this.editorInput().val(n),r._caret({start:i.start,end:i.start}),r._maskKeyHandler(e,(()=>r._handleKey(o)))}}}_backspaceHandler(e){var{editor:t}=this;this._keyPressHandled=!0;var i=(e,i)=>{e&&(t._direction(this.DIRECTION.FORWARD),t._adjustCaret());var n=this.editorCaret();return new Promise((e=>{clearTimeout(this._backspaceHandlerTimeout),this._backspaceHandlerTimeout=setTimeout((function(){i(n),e()}))}))};t._maskKeyHandler(e,(()=>t._hasSelection()?i(!0,(e=>{t._displayMask(e),t._maskRulesChain.reset()})):t._tryMoveCaretBackward()?i(!1,(e=>{this.editorCaret(e)})):(t._handleKey(Nm,this.DIRECTION.BACKWARD),i(!0,(e=>{t._displayMask(e),t._maskRulesChain.reset()})))))}_backspaceInputHandled(e){return e===Lm&&!this._keyPressHandled}_handleBackspaceInput(e){var{start:t,end:i}=this.editorCaret();this.editorCaret({start:t+1,end:i+1}),this._backspaceHandler(e)}}var $m=Zm,Wm="deleteContentBackward";class Km extends Hm{_getStrategyName(){return"inputEvents"}getHandleEventNames(){return[...super.getHandleEventNames(),"beforeInput"]}_beforeInputHandler(){this._prevCaret=this.editorCaret()}_inputHandler(e){var{originalEvent:t}=e;if(t){var{inputType:i,data:n}=t,o=this.editorCaret();if(i===Wm){var r=this._prevCaret.end-this._prevCaret.start||1;this.editor.setBackwardDirection(),this._updateEditorMask({start:o.start,length:r,text:this._getEmptyString(r)})}else{var a,s,l;if(!o.end)return;this._autoFillHandler(t),this.editorCaret(o);var d=(null===(a=this._prevCaret)||void 0===a?void 0:a.end)-(null===(s=this._prevCaret)||void 0===s?void 0:s.start),u=n+(d?this._getEmptyString(d-n.length):"");this.editor.setForwardDirection();var c=this._updateEditorMask({start:null===(l=this._prevCaret)||void 0===l?void 0:l.start,length:d||u.length,text:u});c||this.editorCaret(this._prevCaret)}}}_getEmptyString(e){return Array(e+1).join(" ")}_updateEditorMask(e){var t=e.text.length,i=this.editor._handleChain(e);if(this.editor.isForwardDirection()){var{start:n,end:o}=this.editorCaret(),r=i-t;n<=i&&i>1&&this.editorCaret({start:n+r,end:o+r}),this.editor.isForwardDirection()&&this.editor._adjustCaret()}return this.editor._displayMask(),!!i}}var zm=Km,jm=function(){return{}},Um=Lg,Gm=" ",qm="\\",Ym="dx-texteditor-masked",Xm="forward",Jm="backward",Qm={0:/[0-9]/,9:/[0-9\s]/,"#":/[-+0-9\s]/,L:function(e){return t_(e)},l:function(e){return t_(e)||i_(e)},C:/\S/,c:/./,A:function(e){return t_(e)||e_(e)},a:function(e){return t_(e)||e_(e)||i_(e)}};function e_(e){return/[0-9]/.test(e)}function t_(e){var t=e.charCodeAt();return 64127}function i_(e){return" "===e}var n_=Rm.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{mask:"",maskChar:"_",maskRules:{},maskInvalidMessage:y.Z.format("validation-mask"),useMaskedValue:!1,showMaskMode:"always"})},_supportedKeys:function(){var e=this,t={backspace:e._maskStrategy.getHandler("backspace"),del:e._maskStrategy.getHandler("del"),enter:e._changeHandler},i=e.callBase();return(0,E.S6)(t,(function(t,n){var o=i[t];i[t]=function(t){e.option("mask")&&n.call(e,t),o&&o(t)}})),i},_getSubmitElement:function(){return this.option("mask")?this._$hiddenElement:this.callBase()},_init:function(){this.callBase(),this._initMaskStrategy()},_initMaskStrategy:function(){this._maskStrategy=Zg()?new zm(this):new $m(this)},_initMarkup:function(){this._renderHiddenElement(),this.callBase()},_attachMouseWheelEventHandlers:function(){var e=this._onMouseWheel!==v.ZT;if(e){var t=this._input(),i=(0,R.V4)($g.u,this.NAME),n=this._createAction(function(e){var{event:i}=e;(0,D.si)(t)&&!(0,R.j1)(i)&&(this._onMouseWheel(i),i.preventDefault(),i.stopPropagation())}.bind(this));re.Z.off(t,i),re.Z.on(t,i,(function(e){n({event:e})}))}},_onMouseWheel:v.ZT,_render:function(){this._renderMask(),this.callBase(),this._attachMouseWheelEventHandlers()},_renderHiddenElement:function(){this.option("mask")&&(this._$hiddenElement=(0,o.Z)("").attr("type","hidden").appendTo(this._inputWrapper()))},_removeHiddenElement:function(){this._$hiddenElement&&this._$hiddenElement.remove()},_renderMask:function(){this.$element().removeClass(Ym),this._maskRulesChain=null,this._maskStrategy.detachEvents(),this.option("mask")&&(this.$element().addClass(Ym),this._maskStrategy.attachEvents(),this._parseMask(),this._renderMaskedValue())},_suppressCaretChanging:function(e,t){Um=jm;try{e.apply(this,t)}finally{Um=Lg}},_changeHandler:function(e){var t=this._input(),i=t.val();if(i!==this._changedValue){this._changedValue=i;var n=(0,R.yM)(e,{type:"change"});re.Z.trigger(t,n)}},_parseMask:function(){this._maskRules=(0,a.l)({},Qm,this.option("maskRules")),this._maskRulesChain=this._parseMaskRule(0)},_parseMaskRule:function(e){var t=this.option("mask");if(e>=t.length)return new zg;var i=t[e],n=i===qm,o=n?new Ug({maskChar:t[e+1]}):this._getMaskRule(i);return o.next(this._parseMaskRule(e+1+n)),o},_getMaskRule:function(e){var t;return(0,E.S6)(this._maskRules,(function(i,n){if(i===e)return t={pattern:i,allowedChars:n},!1})),(0,l.$K)(t)?new jg((0,a.l)({maskChar:this.option("maskChar")},t)):new Ug({maskChar:e})},_renderMaskedValue:function(){if(this._maskRulesChain){var e=this.option("value")||"";this._maskRulesChain.clear(this._normalizeChainArguments());var t={length:e.length};t[this._isMaskedValueMode()?"text":"value"]=e,this._handleChain(t),this._displayMask()}},_replaceSelectedText:function(e,t,i){if(void 0===i)return e;var n=e.slice(0,t.start),o=e.slice(t.end),r=n+i+o;return r},_isMaskedValueMode:function(){return this.option("useMaskedValue")},_displayMask:function(e){e=e||this._caret(),this._renderValue(),this._caret(e)},_isValueEmpty:function(){return(0,Ic.xb)(this._value)},_shouldShowMask:function(){var e=this.option("showMaskMode");return"onFocus"!==e||((0,D.si)(this._input())||!this._isValueEmpty())},_showMaskPlaceholder:function(){if(this._shouldShowMask()){var e=this._maskRulesChain.text();this.option("text",e),"onFocus"===this.option("showMaskMode")&&this._renderDisplayText(e)}},_renderValue:function(){if(this._maskRulesChain&&(this._showMaskPlaceholder(),this._$hiddenElement)){var e=this._maskRulesChain.value(),t=(0,Ic.xb)(e)?"":this._getPreparedValue();this._$hiddenElement.val(t)}return this.callBase()},_getPreparedValue:function(){return this._convertToValue().replace(/\s+$/,"")},_valueChangeEventHandler:function(e){this._maskRulesChain?(this._saveValueChangeEvent(e),this.option("value",this._getPreparedValue())):this.callBase.apply(this,arguments)},_isControlKeyFired:function(e){return this._isControlKey((0,R.EV)(e))||(0,R.j1)(e)},_handleChain:function(e){var t=this._maskRulesChain.handle(this._normalizeChainArguments(e));return this._value=this._maskRulesChain.value(),this._textValue=this._maskRulesChain.text(),t},_normalizeChainArguments:function(e){return e=e||{},e.index=0,e.fullText=this._maskRulesChain.text(),e},_convertToValue:function(e){return e=this._isMaskedValueMode()?this._replaceMaskCharWithEmpty(e||this._textValue||""):e||this._value||"",e},_replaceMaskCharWithEmpty:function(e){return e.replace(new RegExp(this.option("maskChar"),"g"),Gm)},_maskKeyHandler:function(e,t){if(!this.option("readOnly")){this.setForwardDirection(),e.preventDefault(),this._handleSelection();var i=this._input().val(),n=()=>{i!==this._input().val()&&this._maskStrategy.runWithoutEventProcessing((()=>re.Z.trigger(this._input(),"input")))},o=t();o?o.then(n):(this.setForwardDirection(),this._adjustCaret(),this._displayMask(),this._maskRulesChain.reset(),n())}},_handleKey:function(e,t){this._direction(t||Xm),this._adjustCaret(e),this._handleKeyChain(e),this._moveCaret()},_handleSelection:function(){if(this._hasSelection()){var e=this._caret(),t=new Array(e.end-e.start+1).join(Gm);this._handleKeyChain(t)}},_handleKeyChain:function(e){var t=this._caret(),i=this.isForwardDirection()?t.start:t.start-1,n=this.isForwardDirection()?t.end:t.end-1,o=i===n?1:n-i;this._handleChain({text:e,start:i,length:o})},_tryMoveCaretBackward:function(){this.setBackwardDirection();var e=this._caret().start;return this._adjustCaret(),!e||e!==this._caret().start},_adjustCaret:function(e){var t=this._caret().start,i=this.isForwardDirection(),n=this._maskRulesChain.adjustedCaret(t,i,e);this._caret({start:n,end:n})},_moveCaret:function(){var e=this._caret().start,t=e+(this.isForwardDirection()?0:-1),i=this._maskRulesChain.isAccepted(t)?e+(this.isForwardDirection()?1:-1):e;this._caret({start:i,end:i})},_caret:function(e,t){var i=this._input();if(i.length)return arguments.length?void Um(i,e,t):Um(i)},_hasSelection:function(){var e=this._caret();return e.start!==e.end},_direction:function(e){if(!arguments.length)return this._typingDirection;this._typingDirection=e},setForwardDirection:function(){this._direction(Xm)},setBackwardDirection:function(){this._direction(Jm)},isForwardDirection:function(){return this._direction()===Xm},_clean:function(){this._maskStrategy&&this._maskStrategy.clean(),this.callBase()},_validateMask:function(){if(this._maskRulesChain){var e=(0,Ic.xb)(this.option("value"))||this._maskRulesChain.isValid(this._normalizeChainArguments());this.option({isValid:e,validationError:e?null:{editorSpecific:!0,message:this.option("maskInvalidMessage")}})}},_updateHiddenElement:function(){this._removeHiddenElement(),this.option("mask")&&(this._input().removeAttr("name"),this._renderHiddenElement()),this._setSubmitElementName(this.option("name"))},_updateMaskOption:function(){this._updateHiddenElement(),this._renderMask(),this._validateMask()},_processEmptyMask:function(e){if(!e){var t=this.option("value");this.option({text:t,isValid:!0}),this.validationRequest.fire({value:t,editor:this}),this._renderValue()}},_optionChanged:function(e){switch(e.name){case"mask":this._updateMaskOption(),this._processEmptyMask(e.value);break;case"maskChar":case"maskRules":case"useMaskedValue":this._updateMaskOption();break;case"value":this._renderMaskedValue(),this._validateMask(),this.callBase(e),this._changedValue=this._input().val();break;case"maskInvalidMessage":break;case"showMaskMode":this.option("text",""),this._renderValue();break;default:this.callBase(e)}}}),o_=n_;(0,C.Z)("dxTextEditor",o_);var r_=o_,a_=(0,s.Jj)(),s_=["backspace","tab","enter","pageUp","pageDown","end","home","leftArrow","rightArrow","downArrow","upArrow","del"],l_="dx-textbox",d_="dx-searchbox",u_="dx-icon",c_="dx-icon-search",h_=r_.inherit({ctor:function(e,t){t&&(this._showClearButton=t.showClearButton),this.callBase.apply(this,arguments)},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{value:"",mode:"text",maxLength:null})},_initMarkup:function(){this.$element().addClass(l_),this.callBase(),this.setAria("role","textbox")},_renderInputType:function(){this.callBase(),this._renderSearchMode()},_useTemplates:function(){return!1},_renderProps:function(){this.callBase(),this._toggleMaxLengthProp()},_toggleMaxLengthProp:function(){var e=this._getMaxLength();e&&e>0?this._input().attr("maxLength",e):this._input().removeAttr("maxLength")},_renderSearchMode:function(){var e=this._$element;"search"===this.option("mode")?(e.addClass(d_),this._renderSearchIcon(),void 0===this._showClearButton&&(this._showClearButton=this.option("showClearButton"),this.option("showClearButton",!0))):(e.removeClass(d_),this._$searchIcon&&this._$searchIcon.remove(),this.option("showClearButton",void 0===this._showClearButton?this.option("showClearButton"):this._showClearButton),delete this._showClearButton)},_renderSearchIcon:function(){var e=(0,o.Z)("
").addClass(u_).addClass(c_);e.prependTo(this._input().parent()),this._$searchIcon=e},_getLabelContainerWidth:function(){if(this._$searchIcon){var e=this._input().parent();return(0,n.dz)(e)-this._getLabelBeforeWidth()}return this.callBase()},_getLabelBeforeWidth:function(){var e=this.callBase();return this._$searchIcon&&(e+=(0,n.Y_)(this._$searchIcon)),e},_optionChanged:function(e){switch(e.name){case"maxLength":this._toggleMaxLengthProp();break;case"mode":this.callBase(e),this._updateLabelWidth();break;case"mask":this.callBase(e),this._toggleMaxLengthProp();break;default:this.callBase(e)}},_onKeyDownCutOffHandler:function(e){var t=this._getMaxLength();if(!t||e.ctrlKey||this._hasSelection())return!0;var i=(0,o.Z)(e.target),n=(0,R.EV)(e);return this._cutOffExtraChar(i),i.val().lengtht&&e.val(i.substr(0,t))},_getMaxLength:function(){var e=!!this.option("mask");return e?null:this.option("maxLength")}});(0,C.Z)("dxTextBox",h_);var p_=h_,f_=p_,g_=function(e){for(var t=0,i=0,n=0;ne.split("").map((()=>" ")).join("").substr(2)));var o=/^[^#0.,]*/.exec(t)[0].length,r=/[^#0.,]*$/.exec(t)[0].length;return{start:o,end:e.length-r}}return{start:0,end:e.length};var a},C_=function(e,t){var i=kn.Z.getDecimalSeparator(),n=new RegExp("[^0-9"+(0,v.hr)(i)+"]","g"),o=t.slice(0,e);return o.replace(n,"").length},b_=function(e){return e.split("").reverse().join("")},x_=function(e,t){if(!e)return-1;var i=/[0-9]/g,n=1,o=null,r=i.exec(t);while(r){if(o=r.index,n>=e)return o;n++,r=i.exec(t)}return null===o?t.length:o},w_=function(e){return e.replace(/[^0-9e]+$/,"")},T_=function(e,t){return void 0===e.start&&(e={start:e,end:e}),{start:e.start+t,end:e.end+t}},S_=function(e,t,i,n){i=T_(i,0);var o=kn.Z.getDecimalSeparator(),r=I_(e),a=g_(n).occurrence,s=r?0:m_(e,o,a),l=m_(t,o,a),d=__(e,s),u=__(t,l),c=-1!==s&&i.start>s;if(c){var h=i.start-s-1,p=C_(h,d[1]),f=u[1]?l+1+x_(p,u[1])+1:t.length;return D_(f,t,n)}var g=w_(u[0]),m=d[0].length-i.start,_=C_(m,b_(d[0])),v=x_(_,b_(g)),y=g.length-(v+1);return D_(y,t,n)};function I_(e){return 1===e.length&&!!e.match(/^[,.][0-9]*$/g)}var E_=function(e,t,i){e=T_(e,0);var n=D_(e,t,i);return e.start>=n.start&&e.end<=n.end};function D_(e,t,i){e=T_(e,0);var n=y_(t,i),o={start:(0,ln.n$)(e.start,n.start,n.end),end:(0,ln.n$)(e.end,n.start,n.end)};return o}var k_=function(e,t,i){var n=y_(e,i),o=y_(t,i);return o.start-n.start},O_=i(49683),A_="dx-numberbox-spin",P_="dx-numberbox-spin-button",M_=100,R_="dxNumberBox",B_=(0,R.V4)(B.Z.up,R_),V_=(0,R.V4)(B.Z.cancel,R_),F_=G.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{direction:"up",onChange:null,activeStateEnabled:!0,hoverStateEnabled:!0})},_initMarkup:function(){this.callBase();var e=A_+"-"+this.option("direction");this.$element().addClass(P_).addClass(e),this._spinIcon=(0,o.Z)("
").addClass(e+"-icon").appendTo(this.$element())},_render:function(){this.callBase();var e=(0,R.V4)(B.Z.down,this.NAME),t=this.$element();re.Z.off(t,e),re.Z.on(t,e,this._spinDownHandler.bind(this)),this._spinChangeHandler=this._createActionByOption("onChange")},_spinDownHandler:function(e){e.preventDefault(),this._clearTimer(),re.Z.on(this.$element(),Sd.name,function(){this._feedBackDeferred=new ot.BH,K(this._feedBackDeferred),this._spinChangeHandler({event:e}),this._holdTimer=setInterval(this._spinChangeHandler,M_,{event:e})}.bind(this));var t=ke["default"].getDocument();re.Z.on(t,B_,this._clearTimer.bind(this)),re.Z.on(t,V_,this._clearTimer.bind(this)),this._spinChangeHandler({event:e})},_dispose:function(){this._clearTimer(),this.callBase()},_clearTimer:function(){re.Z.off(this.$element(),Sd.name);var e=ke["default"].getDocument();re.Z.off(e,B_),re.Z.off(e,V_),this._feedBackDeferred&&this._feedBackDeferred.resolve(),this._holdTimer&&clearInterval(this._holdTimer)},_optionChanged:function(e){switch(e.name){case"onChange":case"direction":this._invalidate();break;default:this.callBase(e)}}}),H_=F_,L_="dx-numberbox-spin",N_="dx-numberbox-spin-container",Z_="dx-numberbox-spin-touch-friendly";class $_ extends Gg{_attachEvents(e,t){var{editor:i}=this,n=(0,R.V4)(B.Z.down,i.NAME),o=t.children(),r=i._createAction((e=>i._spinButtonsPointerDownHandler(e)));re.Z.off(t,n),re.Z.on(t,n,(e=>r({event:e}))),H_.getInstance(o.eq(0)).option("onChange",(e=>i._spinUpChangeHandler(e))),H_.getInstance(o.eq(1)).option("onChange",(e=>i._spinDownChangeHandler(e)))}_create(){var{editor:e}=this,t=(0,o.Z)("
").addClass(N_),i=(0,o.Z)("
").appendTo(t),n=(0,o.Z)("
").appendTo(t),r=this._getOptions();return this._addToContainer(t),e._createComponent(i,H_,(0,a.l)({direction:"up"},r)),e._createComponent(n,H_,(0,a.l)({direction:"down"},r)),this._legacyRender(e.$element(),this._isTouchFriendly(),r.visible),{instance:t,$element:t}}_getOptions(){var{editor:e}=this,t=this._isVisible(),i=e.option("disabled");return{visible:t,disabled:i}}_isVisible(){var{editor:e}=this;return super._isVisible()&&e.option("showSpinButtons")}_isTouchFriendly(){var{editor:e}=this;return e.option("showSpinButtons")&&e.option("useLargeSpinButtons")}_legacyRender(e,t,i){e.toggleClass(Z_,t),e.toggleClass(L_,i)}update(){var e=super.update();if(e){var{editor:t,instance:i}=this,n=t.$element(),o=this._isVisible(),r=this._isTouchFriendly(),a=i.children(),s=H_.getInstance(a.eq(0)),l=H_.getInstance(a.eq(1)),d=this._getOptions();s.option(d),l.option(d),this._legacyRender(n,r,o)}}}var W_=Math,K_="dx-numberbox",z_=["tab","del","backspace","leftArrow","rightArrow","home","end","enter"],j_="NumberBoxForceValueChange",U_=r_.inherit({_supportedKeys:function(){return(0,a.l)(this.callBase(),{upArrow:function(e){(0,R.j1)(e)||(e.preventDefault(),e.stopPropagation(),this._spinUpChangeHandler(e))},downArrow:function(e){(0,R.j1)(e)||(e.preventDefault(),e.stopPropagation(),this._spinDownChangeHandler(e))},enter:function(){}})},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{value:0,min:void 0,max:void 0,step:1,showSpinButtons:!1,useLargeSpinButtons:!0,mode:"text",invalidValueMessage:y.Z.format("dxNumberBox-invalidValueMessage"),buttons:void 0})},_useTemplates:function(){return!1},_getDefaultButtons:function(){return this.callBase().concat([{name:"spins",Ctor:$_}])},_isSupportInputMode:function(){var e=parseFloat(Me.Z.version);return Me.Z.chrome&&e>=66||Me.Z.safari&&e>=12},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return w.Z.real().generic&&!w.Z.isSimulator()},options:{useLargeSpinButtons:!1}},{device:function(){return"desktop"!==w.Z.real().deviceType&&!this._isSupportInputMode()}.bind(this),options:{mode:"number"}}])},_initMarkup:function(){this._renderSubmitElement(),this.$element().addClass(K_),this.callBase()},_getDefaultAttributes:function(){var e=this.callBase();return e.inputmode="decimal",e},_renderContentImpl:function(){this.option("isValid")&&this._validateValue(this.option("value")),this.setAria("role","spinbutton")},_renderSubmitElement:function(){this._$submitElement=(0,o.Z)("").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(e){this._getSubmitElement().val((0,v.FH)(e))},_getSubmitElement:function(){return this._$submitElement},_keyPressHandler:function(e){this.callBase(e);var t=(0,R.qK)(e),i=/[\d.,eE\-+]/.test(t);if(!i){var n=(0,R.EV)(e);if((0,R.j1)(e)||n&&z_.includes(n))return;return e.preventDefault(),!1}this._keyPressed=!0},_onMouseWheel:function(e){e.delta>0?this._spinValueChange(1,e):this._spinValueChange(-1,e)},_renderValue:function(){var e=this._input().val(),t=this.option("value");e.length&&Number(e)===t||(this._forceValueRender(),this._toggleEmptinessEventHandler());var i=(0,l.$K)(t)?null:y.Z.format("dxNumberBox-noDataText");return this.setAria({valuenow:(0,v.IS)(t,""),valuetext:i}),this.option("text",this._input().val()),this._updateButtons(),(new ot.BH).resolve()},_forceValueRender:function(){var e=this.option("value"),t=Number(e),i=isNaN(t)?"":this._applyDisplayValueFormatter(e);this._renderDisplayText(i)},_applyDisplayValueFormatter:function(e){return this.option("displayValueFormatter")(e)},_renderProps:function(){this._input().prop({min:this.option("min"),max:this.option("max"),step:this.option("step")}),this.setAria({valuemin:(0,v.IS)(this.option("min"),""),valuemax:(0,v.IS)(this.option("max"),"")})},_spinButtonsPointerDownHandler:function(){var e=this._input();this.option("useLargeSpinButtons")||ke["default"].getActiveElement()===e[0]||re.Z.trigger(e,"focus")},_spinUpChangeHandler:function(e){this.option("readOnly")||this._spinValueChange(1,e.event||e)},_spinDownChangeHandler:function(e){this.option("readOnly")||this._spinValueChange(-1,e.event||e)},_spinValueChange:function(e,t){var i=parseFloat(this.option("step"));if(0!==i){var n=parseFloat(this._normalizeInputValue())||0;n=this._correctRounding(n,i*e);var o=this.option("min"),r=this.option("max");(0,l.$K)(o)&&(n=Math.max(o,n)),(0,l.$K)(r)&&(n=Math.min(r,n)),this._saveValueChangeEvent(t),this.option("value",n)}},_correctRounding:function(e,t){var i=/[,.](.*)/,n=i.test(e),o=i.test(t);if(n||o){var r=n?i.exec(e)[0].length:0,a=o?i.exec(t)[0].length:0,s=W_.max(r,a);return e=this._round(e+t,s),e}return e+t},_round:function(e,t){t=t||0;var i=Math.pow(10,t);return e*=i,e=Math.round(e)/i,e},_renderValueChangeEvent:function(){this.callBase();var e=(0,R.V4)("focusout",j_);re.Z.off(this.element(),e),re.Z.on(this.element(),e,this._forceRefreshInputValue.bind(this))},_forceRefreshInputValue:function(){if("number"!==this.option("mode")){var e=this._input(),t=this._applyDisplayValueFormatter(this.option("value"));e.val(null),e.val(t)}},_valueChangeEventHandler:function(e){var t=this._input(),i=this._normalizeText(),n=this._parseValue(i),o="."!==i&&"-"!==i;!this._isValueValid()||this._validateValue(n)?(o&&this.callBase(e,isNaN(n)?null:n),this._applyValueBoundaries(i,n),this.validationRequest.fire({value:n,editor:this})):t.val(this._applyDisplayValueFormatter(n))},_applyValueBoundaries:function(e,t){var i=this._isValueIncomplete(e),n=this._isValueInRange(e);i||n||null===t||Number(e)!==t&&this._input().val(this._applyDisplayValueFormatter(t))},_replaceCommaWithPoint:function(e){return e.replace(",",".")},_inputIsInvalid:function(){var e="number"===this.option("mode"),t=this._input().get(0).validity;return e&&t&&t.badInput},_renderDisplayText:function(e){this._inputIsInvalid()||this.callBase(e)},_isValueIncomplete:function(e){return/(^-$)|(^-?\d*\.$)|(\d+e-?$)/i.test(e)},_isValueInRange:function(e){return(0,ln.Z2)(e,this.option("min"),this.option("max"))},_isNumber:function(e){return null!==this._parseValue(e)},_validateValue:function(e){var t=this._normalizeText(),i=this._isValueValid(),n=!0,o=this._isNumber(t);return isNaN(Number(e))&&(n=!1),!e&&i?n=!0:o||i||(n=!1),this.option({isValid:n,validationError:n?null:{editorSpecific:!0,message:this.option("invalidValueMessage")}}),n},_normalizeInputValue:function(){return this._parseValue(this._normalizeText())},_normalizeText:function(){var e=this._input().val().trim();return this._replaceCommaWithPoint(e)},_parseValue:function(e){var t=parseFloat(e);return isNaN(t)?null:(0,ln.n$)(t,this.option("min"),this.option("max"))},_clearValue:function(){this._inputIsInvalid()&&(this._input().val(""),this._validateValue()),this.callBase()},reset:function(){null===this.option("value")?(this.option("text",""),this._renderValue()):this.option("value",null)},_optionChanged:function(e){switch(e.name){case"value":this._validateValue(e.value),this._setSubmitValue(e.value),this.callBase(e),this._resumeValueChangeAction();break;case"step":this._renderProps();break;case"min":case"max":this._renderProps(),this.option("value",this._parseValue(this.option("value")));break;case"showSpinButtons":case"useLargeSpinButtons":this._updateButtons(["spins"]);break;case"invalidValueMessage":break;default:this.callBase(e)}}}),G_=U_,q_="dxNumberFormatter",Y_=1,X_=-1,J_="-",Q_="minus",ev="input",tv=0,iv=G_.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{useMaskBehavior:!0,format:null})},_isDeleteKey:function(e){return"del"===e},_supportedKeys:function(){return this._useMaskBehavior()?(0,a.l)(this.callBase(),{minus:this._revertSign.bind(this),del:this._removeHandler.bind(this),backspace:this._removeHandler.bind(this),leftArrow:this._arrowHandler.bind(this,X_),rightArrow:this._arrowHandler.bind(this,Y_),home:this._moveCaretToBoundaryEventHandler.bind(this,Y_),enter:this._updateFormattedValue.bind(this),end:this._moveCaretToBoundaryEventHandler.bind(this,X_)}):this.callBase()},_getTextSeparatorIndex:function(e){var t=kn.Z.getDecimalSeparator(),i=g_(this.option("format")).occurrence;return m_(e,t,i)},_focusInHandler:function(e){this._preventNestedFocusEvent(e)||(this.clearCaretTimeout(),this._caretTimeout=setTimeout(function(){this._caretTimeout=void 0;var t=this._caret();if(t.start===t.end&&this._useMaskBehavior()){var i=this._getInputVal(),n=this._getTextSeparatorIndex(i);n>=0?this._caret({start:n,end:n}):this._moveCaretToBoundaryEventHandler(X_,e)}}.bind(this),tv)),this.callBase(e)},_focusOutHandler:function(e){var t=!this._preventNestedFocusEvent(e);t&&(this._focusOutOccurs=!0,this._useMaskBehavior()&&this._updateFormattedValue()),this.callBase(e),t&&(this._focusOutOccurs=!1)},_hasValueBeenChanged(e){var t=this._getFormatPattern(),i=this.option("value"),n=this._format(i,t)||"";return n!==e},_updateFormattedValue:function(){var e=this._getInputVal();this._hasValueBeenChanged(e)&&(this._updateParsedValue(),this._adjustParsedValue(),this._setTextByParsedValue(),this._parsedValue!==this.option("value")&&re.Z.trigger(this._input(),"change"))},_arrowHandler:function(e,t){if(this._useMaskBehavior()){var i=this._getInputVal(),n=this._getFormatPattern(),o=T_(this._caret(),e);E_(o,i,n)||(o=e===Y_?o.end:o.start,t.preventDefault(),this._caret(D_(o,i,n)))}},_moveCaretToBoundary:function(e){var t=y_(this._getInputVal(),this._getFormatPattern()),i=T_(e===Y_?t.start:t.end,0);this._caret(i)},_moveCaretToBoundaryEventHandler:function(e,t){!this._useMaskBehavior()||t&&t.shiftKey||(this._moveCaretToBoundary(e),t&&t.preventDefault())},_shouldMoveCaret:function(e,t){var i=kn.Z.getDecimalSeparator(),n=e.charAt(t.end)===i,o=(this._lastKey===i||"."===this._lastKey||","===this._lastKey)&&n;return o},_getInputVal:function(){return kn.Z.convertDigits(this._input().val(),!0)},_keyboardHandler:function(e){if(this.clearCaretTimeout(),this._lastKey=kn.Z.convertDigits((0,R.qK)(e),!0),this._lastKeyName=(0,R.EV)(e),!this._shouldHandleKey(e.originalEvent))return this.callBase(e);var t=this._getInputVal(),i=this._caret(),n=this._lastKeyName===Q_?"":this._lastKey,o=this._tryParse(t,i,n);return this._shouldMoveCaret(t,i)&&(this._moveCaret(1),e.originalEvent.preventDefault()),void 0===o?this._lastKeyName!==Q_&&e.originalEvent.preventDefault():this._parsedValue=o,this.callBase(e)},_keyPressHandler:function(e){this._useMaskBehavior()||this.callBase(e)},_removeHandler:function(e){var t=this._caret(),i=this._getInputVal(),n=t.start,o=t.end;this._lastKey=(0,R.qK)(e),this._lastKeyName=(0,R.EV)(e);var r=this._isDeleteKey(this._lastKeyName),a=!r;if(n===o){var s=n,l=a&&s>0||r&&sd&&-1===t.indexOf("#")&&(r=u-d)}return e=e.substr(r),o(e,t)},_format:function(e,t){var i=this.option("format"),n=(null===i||void 0===i?void 0:i.formatter)||i,o=(0,l.mf)(n)?n:kn.Z.format,r=null===e?"":o(e,t);return r},_getFormatPattern:function(){return this._currentFormat||this._updateFormat(),this._currentFormat},_updateFormat:function(){var e=this.option("format"),t=(0,l.mf)(null===e||void 0===e?void 0:e.parser),i=(0,l.HD)(e)&&(e.indexOf("0")>=0||e.indexOf("#")>=0),n="exponential"===e||"exponential"===(null===e||void 0===e?void 0:e.type),o=t||i||n;this._currentFormat=o?e:(0,O_.y)((t=>{var i=this._format(t,e);return kn.Z.convertDigits(i,!0)}))},_getFormatForSign:function(e){var t=this._getFormatPattern();if((0,l.HD)(t)){var i=t.split(";"),n=kn.Z.getSign(e,t);return i[1]=i[1]||"-"+i[0],n<0?i[1]:i[0]}var o=kn.Z.getSign(e);return o<0?"-":""},_removeStubs:function(e,t){var i=this._getFormatForSign(e),n=kn.Z.getThousandsSeparator(),o=this._getStubs(i),r=e;if(o.length){var a=o[0],s=new RegExp("("+(0,v.hr)(o[1]||"")+")$","g"),l=new RegExp("[-"+(0,v.hr)(t?"":n)+"]","g");r=r.replace(a,"").replace(s,"").replace(l,"")}return r},_getStubs:function(e){var t=/[^']([#0.,]+)/g.exec(e),i=t&&t[0].trim();return e.split(i).map((function(e){return e.replace(/'/g,"")}))},_truncateToPrecision:function(e,t){if((0,l.$K)(e)){var i=e.toString(),n=i.indexOf(".");if(i&&n>-1){var o=parseFloat(i.substr(0,n+t+1));return isNaN(o)?e:o}}return e},_tryParse:function(e,t,i){var n=this._replaceSelectedText(e,t,i),o=this._getFormatPattern(),r=t.start!==t.end,a=this._getParsedValue(n,o),s=!o.parser&&this._getPrecisionLimits(n).max,l=a!==this._parsedValue,d=kn.Z.getDecimalSeparator(),u=i===d&&0===s,c=!r&&!l&&i!==J_&&!this._isValueIncomplete(n)&&this._isStub(i);if(!u&&!c&&(""===this._removeStubs(n)&&(a=Math.abs(0*this._parsedValue)),!isNaN(a))){var h=null===a?this._parsedValue:a;return a=s?this._truncateToPrecision(h,s):a,!o.parser&&this._isPercentFormat()?v_(a,s):a}},_getParsedValue:function(e,t){var i=kn.Z.getSign(e,(null===t||void 0===t?void 0:t.formatter)||t),n=this._removeStubs(e,!0),o=this._parse(n,t),r=o<0?-1:1,a=(0,l.kE)(o)&&i!==r?i*o:o;return a},_isValueIncomplete:function(e){if(!this._useMaskBehavior())return this.callBase(e);var t=this._caret(),i=kn.Z.getDecimalSeparator(),n=this._getTextSeparatorIndex(e),o=n>=0&&n{var e="auto"===this.option("validationMessageMode");if(e){var t=(0,o.Z)(av(this.element(),".dx-invalid-message.dx-overlay-wrapper"));null===t||void 0===t||t.removeClass(sv),this.showValidationMessageTimeout&&clearTimeout(this.showValidationMessageTimeout),this.showValidationMessageTimeout=setTimeout((()=>{null===t||void 0===t||t.addClass(sv)}),150)}},e.saveValueChangeEvent=e=>{this._valueChangeEventInstance=e},e}_createElement(e){super._createElement(e),this.showValidationMessageTimeout=void 0,this.validationRequest=(0,Sc["default"])(),(0,le.aT)(this.$element()[0],lv,this)}_render(){var e;null===(e=this.option("_onMarkupRendered"))||void 0===e||e()}_initializeComponent(){super._initializeComponent(),this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})}_initOptions(e){super._initOptions(e),this.option(Kn.initValidationOptions(e))}_getDefaultOptions(){return(0,a.l)(super._getDefaultOptions(),{validationMessageOffset:{h:0,v:0},validationTooltipOptions:{}})}_bindInnerWidgetOptions(e,t){var i=(0,a.l)({},e.option()),n=()=>this._silent(t,i);n(),e.on("optionChanged",n)}_raiseValidation(e,t){var i=!(0,l.$K)(e)&&!(0,l.$K)(t);e===t||i||this.validationRequest.fire({value:e,editor:this})}_raiseValueChangeAction(e,t){var i;null===(i=this._valueChangeAction)||void 0===i||i.call(this,{element:this.$element(),previousValue:t,value:e,event:this._valueChangeEventInstance}),this._valueChangeEventInstance=void 0}_optionChanged(e){var{name:t,previousValue:i,value:n}=e;switch(t&&void 0!==this._getActionConfigs()[t]&&this._addAction(t),t){case"value":this._raiseValidation(n,i),this._raiseValueChangeAction(n,i);break;case"onValueChanged":this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]});break;case"isValid":case"validationError":case"validationErrors":case"validationStatus":this.option(Kn.synchronizeValidationOptions(e,this.option()))}super._optionChanged(e)}reset(){var{value:e}=this._getDefaultOptions();this.option({value:e})}_dispose(){super._dispose(),(0,le.aT)(this.element(),lv,null),this.showValidationMessageTimeout&&clearTimeout(this.showValidationMessageTimeout)}}var uv=zc.isEditor,cv=e=>uv(e)||e instanceof dv;dv.isEditor=cv,zc.isEditor=cv;class hv extends dv{_useTemplates(){return!1}_isFocused(){var e=this.$element()[0];return e.classList.contains("dx-state-focused")}getSupportedKeyNames(){return["space"]}getProps(){var e=super.getProps();return null!==e.value&&(e.value=Boolean(e.value)),e}}var pv=["dataSource","selectedRowKeys"],fv={integrationOptions:!0};function gv(e,t,i){return{path:e,value:t,previousValue:i}}function mv(e,t,i,n,o,r){if(!fv[n]){var a=(0,l.dt)(t),s=(0,l.dt)(i);if(t!==i)if(a!==s)e.push(gv(n,i,t));else if("object"===a)if((0,l.PO)(i)){var d=vv(t,i,o,r);e.push(...d.map((e=>(0,hn.Z)({},e,{path:"".concat(n,".").concat(e.path)}))))}else e.push(gv(n,i,t));else if("array"===a){var u=r.some((e=>o.includes(e)));if(u&&t!==i)e.push(gv(n,i,t));else if(t.length!==i.length)e.push(gv(n,i,t));else{var c=vv(t,i,o,r);[].push.apply(e,c.map((e=>(0,hn.Z)({},e,{path:"".concat(n).concat(e.path)}))))}}else e.push(gv(n,i,t))}}var _v=e=>(t,i,n,o)=>{var r=[],a=Array.isArray(t)?e=>{mv(r,t[e],i[e],"[".concat(e,"]"),"".concat(n,".").concat(e),o)}:e=>{mv(r,t[e],i[e],e,"".concat(n,".").concat(e),o)};return e(t).forEach(a),Object.keys(i).filter((e=>!Object.prototype.hasOwnProperty.call(t,e)&&t[e]!==i[e])).forEach((e=>{r.push({path:e,value:i[e],previousValue:t[e]})})),r},vv=_v((e=>Object.keys(e))),yv={key:!0,ref:!0,children:!0,style:!0},Cv=_v((e=>Object.keys(e).filter((e=>!yv[e]))));function bv(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:pv;return Cv(e,t,"",i)}var xv=["valueChange"],wv=["componentProps","componentType","templateNames"],Tv=e=>Object.keys(e).reduce(((t,i)=>(void 0!==e[i]&&(t[i]=e[i]),t)),{}),Sv=e=>{var{props:{componentProps:{className:t}},restAttributes:i,widgetRef:n}=e;return Tv(So(1,"div",t,null,1,(0,hn.Z)({},i),null,n))},Iv={};class Ev extends Ha{constructor(e){super(e),this.state={},this.widgetRef=kr(),this.getInstance=this.getInstance.bind(this),this.setupWidget=this.setupWidget.bind(this),this.updateWidget=this.updateWidget.bind(this)}get config(){return"ConfigContext"in this.context?this.context.ConfigContext:Ll}createEffects(){return[new $a(this.setupWidget,[]),new $a(this.updateWidget,[this.props.componentProps,this.config,this.props.templateNames])]}updateEffects(){var e;null===(e=this._effects[1])||void 0===e||e.update([this.props.componentProps,this.config,this.props.templateNames])}setupWidget(){var e=new this.props.componentType(this.widgetRef.current,this.properties);return this.instance=e,()=>{e.dispose(),this.instance=null}}updateWidget(){var e=this.getInstance();if(e){var t=bv(this.prevProps||{},this.properties);t.length&&(e.beginUpdate(),t.forEach((t=>{var{path:i,value:n}=t;e.option(i,n)})),e.endUpdate()),this.prevProps=this.properties}}get properties(){var e,t=Tv(this.props.componentProps),{valueChange:i}=t,n=(0,Vs.Z)(t,xv),o=(0,hn.Z)({rtlEnabled:!(null===(e=this.config)||void 0===e||!e.rtlEnabled),isRenovated:!0},n);i&&(o.onValueChanged=e=>{var{value:t}=e;return i(t)});var r=this.props.templateNames;return r.forEach((e=>{ps(e,o,this)&&(o[e]=(t,i,n)=>{hs(this.props.componentProps[e],{item:t,index:i,container:n},this)})})),o}get restAttributes(){var e=this.props,t=(0,Vs.Z)(e,wv);return t}getInstance(){return this.instance}render(){var e=this.props;return Sv({props:(0,hn.Z)({},e),widgetRef:this.widgetRef,config:this.config,properties:this.properties,restAttributes:this.restAttributes})}}Ev.defaultProps=Iv;var Dv=["accessKey","activeStateEnabled","boundary","className","contentId","disabled","focusStateEnabled","height","hint","hoverStateEnabled","mode","offset","onClick","onKeyDown","positionSide","rtlEnabled","tabIndex","target","validationErrors","visible","visualContainer","width"],kv=e=>{var{componentProps:t,restAttributes:i}=e;return Po(ko(2,Ev,(0,hn.Z)({componentType:Mc,componentProps:t,templateNames:[]},i)))},Ov=Object.create(Object.prototype,(0,hn.Z)(Object.getOwnPropertyDescriptors(Hl),Object.getOwnPropertyDescriptors({mode:"auto",positionSide:"top",offset:Object.freeze({h:0,v:0}),isReactComponentWrapper:!0})));class Av extends Fa{constructor(e){super(e),this.state={}}get componentProps(){return this.props}get restAttributes(){var e=this.props,t=(0,Vs.Z)(e,Dv);return t}render(){var e=this.props;return kv({props:(0,hn.Z)({},e),componentProps:this.componentProps,restAttributes:this.restAttributes})}}Av.defaultProps=Ov;var Pv=["accessKey","activeStateEnabled","aria","children","className","classes","defaultValue","disabled","focusStateEnabled","height","hint","hoverStateEnabled","isValid","name","onClick","onFocusIn","onKeyDown","readOnly","rtlEnabled","tabIndex","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","value","valueChange","visible","width"],Mv=e=>{var{classes:t,isValid:i,readOnly:n}=e,o={"dx-state-readonly":!!n,"dx-invalid":!i,["".concat(t)]:!!t};return Hs(o)},Rv=e=>{var{aria:t,cssClasses:i,isValidationMessageVisible:n,onFocusIn:o,props:{accessKey:r,activeStateEnabled:a,children:s,className:l,disabled:d,focusStateEnabled:u,height:c,hint:h,hoverStateEnabled:p,onClick:f,onKeyDown:g,rtlEnabled:m,tabIndex:_,validationMessageMode:v,validationMessagePosition:y,visible:C,width:b},restAttributes:x,rootElementRef:w,validationErrors:T,validationMessageGuid:S,validationMessageTarget:I,widgetRef:E}=e;return Po(ko(2,Ql,(0,hn.Z)({rootElementRef:w,aria:t,classes:i,activeStateEnabled:a,focusStateEnabled:u,hoverStateEnabled:p,accessKey:r,className:l,rtlEnabled:m,hint:h,disabled:d,height:c,width:b,onFocusIn:o,onClick:f,onKeyDown:g,tabIndex:_,visible:C},x,{children:Ao([s,n&&ko(2,Av,{validationErrors:T,mode:v,positionSide:y,rtlEnabled:m,target:I,boundary:I,visualContainer:I,contentId:S})],0)}),null,E))},Bv=Object.create(Object.prototype,(0,hn.Z)(Object.getOwnPropertyDescriptors(Hl),Object.getOwnPropertyDescriptors({readOnly:!1,name:"",validationError:null,validationErrors:null,validationMessageMode:"auto",validationMessagePosition:"bottom",validationStatus:"valid",isValid:!0,defaultValue:null,valueChange:()=>{}}))),Vv={get readOnly(){return Bv.readOnly},get name(){return Bv.name},get validationError(){return Bv.validationError},get validationErrors(){return Bv.validationErrors},get validationMessageMode(){return Bv.validationMessageMode},get validationMessagePosition(){return Bv.validationMessagePosition},get validationStatus(){return Bv.validationStatus},get isValid(){return Bv.isValid},get defaultValue(){return Bv.defaultValue},get valueChange(){return Bv.valueChange},get className(){return Bv.className},get activeStateEnabled(){return Bv.activeStateEnabled},get disabled(){return Bv.disabled},get focusStateEnabled(){return Bv.focusStateEnabled},get hoverStateEnabled(){return Bv.hoverStateEnabled},get tabIndex(){return Bv.tabIndex},get visible(){return Bv.visible},get aria(){return Jl.aria},get classes(){return Jl.classes}};class Fv extends La{constructor(e){super(e),this.widgetRef=kr(),this.rootElementRef=kr(),this.__getterCache={},this.state={validationMessageGuid:"dx-".concat(new Li.Z),isValidationMessageVisible:!1,value:void 0!==this.props.value?this.props.value:this.props.defaultValue},this.updateValidationMessageVisibility=this.updateValidationMessageVisibility.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.onFocusIn=this.onFocusIn.bind(this)}createEffects(){return[new $a(this.updateValidationMessageVisibility,[this.props.isValid,this.props.validationStatus,this.props.validationError,this.props.validationErrors]),Wa()]}updateEffects(){var e;null===(e=this._effects[0])||void 0===e||e.update([this.props.isValid,this.props.validationStatus,this.props.validationError,this.props.validationErrors])}updateValidationMessageVisibility(){this.setState((e=>({isValidationMessageVisible:this.shouldShowValidationMessage})))}onFocusIn(e){var{onFocusIn:t}=this.props;null===t||void 0===t||t(e)}get cssClasses(){return"".concat(Mv((0,hn.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value})))}get shouldShowValidationMessage(){var e,{isValid:t,validationStatus:i}=this.props,n=null!==(e=this.validationErrors)&&void 0!==e?e:[],o=t&&"invalid"!==i;return!o&&n.length>0}get aria(){var{isValid:e,readOnly:t}=this.props,i={readonly:t?"true":"false",invalid:e?"false":"true"};return this.shouldShowValidationMessage&&(i.describedBy=this.state.validationMessageGuid),(0,hn.Z)({},i,this.props.aria)}get validationErrors(){return void 0!==this.__getterCache.validationErrors?this.__getterCache.validationErrors:this.__getterCache.validationErrors=(()=>{var{validationError:e,validationErrors:t}=this.props,i=t&&[...t];return!i&&e&&(i=[(0,hn.Z)({},e)]),i})()}get validationMessageTarget(){var e;return null===(e=this.rootElementRef)||void 0===e?void 0:e.current}get restAttributes(){var e=(0,hn.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),t=(0,Vs.Z)(e,Pv);return t}focus(){this.widgetRef.current.focus()}blur(){this.widgetRef.current.blur()}componentWillUpdate(e,t,i){super.componentWillUpdate(),this.props.validationError===e.validationError&&this.props.validationErrors===e.validationErrors||(this.__getterCache.validationErrors=void 0)}render(){var e=this.props;return Rv({props:(0,hn.Z)({},e,{value:void 0!==this.props.value?this.props.value:this.state.value}),validationMessageGuid:this.state.validationMessageGuid,isValidationMessageVisible:this.state.isValidationMessageVisible,rootElementRef:this.rootElementRef,widgetRef:this.widgetRef,onFocusIn:this.onFocusIn,cssClasses:this.cssClasses,shouldShowValidationMessage:this.shouldShowValidationMessage,aria:this.aria,validationErrors:this.validationErrors,validationMessageTarget:this.validationMessageTarget,restAttributes:this.restAttributes})}}Fv.defaultProps=Vv;function Hv(e){var t,i=(0,s.Jj)();return e?null===(t=i.getComputedStyle)||void 0===t?void 0:t.call(i,e):null}var Lv=[[22,16],[18,16]],Nv=[[[12,8],[20,18]],[[16,10],[16,14]]];function Zv(){var e=(0,x.Vk)();return{isMaterialTheme:(0,x.x2)(e),isCompactTheme:(0,x.f5)(e)}}function $v(){var{isCompactTheme:e,isMaterialTheme:t}=Zv();return Lv[+t][+e]}function Wv(e){var{isCompactTheme:t,isMaterialTheme:i}=Zv();return Nv[+e][+i][+t]}function Kv(e,t){var i=Wv(t),n=$v(),o=i/n;return Math.ceil(o*e)}var zv=["isChecked","size"],jv=e=>{var{cssStyles:t,elementRef:i}=e;return So(1,"span","dx-checkbox-icon",null,1,{style:ys(t)},null,i)},Uv={isChecked:!1};class Gv extends Ha{constructor(e){super(e),this.state={},this.elementRef=kr(),this.__getterCache={},this.updateFontSize=this.updateFontSize.bind(this),this.setIconFontSize=this.setIconFontSize.bind(this),this.getIconSize=this.getIconSize.bind(this),this.getComputedIconSize=this.getComputedIconSize.bind(this)}createEffects(){return[new $a(this.updateFontSize,[this.props.isChecked,this.props.size])]}updateEffects(){var e;null===(e=this._effects[0])||void 0===e||e.update([this.props.isChecked,this.props.size])}updateFontSize(){var{isChecked:e,size:t}=this.props;if((0,s.Ym)()&&t){var i=this.getIconSize(t),n=Kv(i,e);this.setIconFontSize(n)}}setIconFontSize(e){var t=this.elementRef.current;t.style.fontSize="".concat(e,"px")}getIconSize(e){return(0,l.kE)(e)?e:e.endsWith("px")?parseInt(e,10):this.getComputedIconSize()}getComputedIconSize(){var e=this.elementRef.current,t=Hv(e),i=parseInt(null===t||void 0===t?void 0:t.width,10);return i}get cssStyles(){return void 0!==this.__getterCache.cssStyles?this.__getterCache.cssStyles:this.__getterCache.cssStyles=(()=>{var{size:e}=this.props,t=(0,Fl.bh)("width",e),i=(0,Fl.bh)("height",e);return{height:i,width:t}})()}get restAttributes(){var e=this.props,t=(0,Vs.Z)(e,zv);return t}componentWillUpdate(e,t,i){super.componentWillUpdate(),this.props.size!==e.size&&(this.__getterCache.cssStyles=void 0)}render(){var e=this.props;return jv({props:(0,hn.Z)({},e),elementRef:this.elementRef,setIconFontSize:this.setIconFontSize,getIconSize:this.getIconSize,getComputedIconSize:this.getComputedIconSize,cssStyles:this.cssStyles,restAttributes:this.restAttributes})}}Gv.defaultProps=Uv;var qv=["accessKey","activeStateEnabled","aria","className","defaultValue","disabled","enableThreeStateBehavior","focusStateEnabled","height","hint","hoverStateEnabled","iconSize","isValid","name","onClick","onFocusIn","onKeyDown","readOnly","rtlEnabled","saveValueChangeEvent","tabIndex","text","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","value","valueChange","visible","width"],Yv=e=>{var{text:t,value:i}=e,n=i,o=null===n,r={"dx-checkbox":!0,"dx-checkbox-checked":!0===n,"dx-checkbox-has-text":!!t,"dx-checkbox-indeterminate":o};return Hs(r)},Xv=e=>{var{aria:t,cssClasses:i,editorRef:n,keyDown:o,onWidgetClick:r,props:{accessKey:a,activeStateEnabled:s,className:l,disabled:d,focusStateEnabled:u,height:c,hint:h,hoverStateEnabled:p,iconSize:f,isValid:g,name:m,onFocusIn:_,readOnly:v,rtlEnabled:y,tabIndex:C,text:b,validationError:x,validationErrors:w,validationMessageMode:T,validationMessagePosition:S,validationStatus:I,value:E,visible:D,width:k},restAttributes:O}=e;return Po(ko(2,Fv,(0,hn.Z)({aria:t,classes:i,onClick:r,onKeyDown:o,accessKey:a,activeStateEnabled:s,focusStateEnabled:u,hoverStateEnabled:p,className:l,disabled:d,readOnly:v,hint:h,height:c,width:k,rtlEnabled:y,tabIndex:C,visible:D,validationError:x,validationErrors:w,validationMessageMode:T,validationMessagePosition:S,validationStatus:I,isValid:g,onFocusIn:_},O,{children:Ao([Po(So(64,"input",null,null,1,(0,hn.Z)({type:"hidden",value:"".concat(E)},m&&{name:m}))),So(1,"div","dx-checkbox-container",[ko(2,Gv,{size:f,isChecked:!0===E}),b&&So(1,"span","dx-checkbox-text",b,0)],0)],4)}),null,n))},Jv=Object.create(Object.prototype,(0,hn.Z)(Object.getOwnPropertyDescriptors(Bv),Object.getOwnPropertyDescriptors({text:"",enableThreeStateBehavior:!1,activeStateEnabled:!0,hoverStateEnabled:!0,get focusStateEnabled(){return"desktop"===w.Z.real().deviceType&&!w.Z.isSimulator()},defaultValue:!1,valueChange:()=>{}}))),Qv={get text(){return Jv.text},get enableThreeStateBehavior(){return Jv.enableThreeStateBehavior},get activeStateEnabled(){return Jv.activeStateEnabled},get hoverStateEnabled(){return Jv.hoverStateEnabled},get focusStateEnabled(){return Jv.focusStateEnabled},get defaultValue(){return Jv.defaultValue},get valueChange(){return Jv.valueChange},get readOnly(){return Jv.readOnly},get name(){return Jv.name},get validationError(){return Jv.validationError},get validationErrors(){return Jv.validationErrors},get validationMessageMode(){return Jv.validationMessageMode},get validationMessagePosition(){return Jv.validationMessagePosition},get validationStatus(){return Jv.validationStatus},get isValid(){return Jv.isValid},get className(){return Jv.className},get disabled(){return Jv.disabled},get tabIndex(){return Jv.tabIndex},get visible(){return Jv.visible},get aria(){return Jl.aria}};class ey extends La{constructor(e){super(e),this.editorRef=kr(),this.state={value:void 0!==this.props.value?this.props.value:this.props.defaultValue},this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.onWidgetClick=this.onWidgetClick.bind(this),this.keyDown=this.keyDown.bind(this)}createEffects(){return[Wa()]}onWidgetClick(e){var t,i,{enableThreeStateBehavior:n,readOnly:o,saveValueChangeEvent:r}=this.props;o||(null===r||void 0===r||r(e),n?(this.setState((e=>(t=null===(void 0!==this.props.value?this.props.value:e.value)||!(void 0!==this.props.value?this.props.value:e.value)&&null,{value:t}))),this.props.valueChange(t)):(this.setState((e=>{var t;return i=!(null!==(t=void 0!==this.props.value?this.props.value:e.value)&&void 0!==t&&t),{value:i}})),this.props.valueChange(i)))}keyDown(e){var{onKeyDown:t}=this.props,{keyName:i,originalEvent:n,which:o}=e,r=null===t||void 0===t?void 0:t(e);if(null!==r&&void 0!==r&&r.cancel)return r;"space"!==i&&"space"!==o||(n.preventDefault(),this.onWidgetClick(n))}get cssClasses(){return Yv((0,hn.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}))}get aria(){var e=!0===(void 0!==this.props.value?this.props.value:this.state.value),t=null===(void 0!==this.props.value?this.props.value:this.state.value),i={role:"checkbox",checked:t?"mixed":"".concat(e)};return(0,hn.Z)({},i,this.props.aria)}get restAttributes(){var e=(0,hn.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),t=(0,Vs.Z)(e,qv);return t}focus(){this.editorRef.current.focus()}blur(){this.editorRef.current.blur()}render(){var e=this.props;return Xv({props:(0,hn.Z)({},e,{value:void 0!==this.props.value?this.props.value:this.state.value}),editorRef:this.editorRef,onWidgetClick:this.onWidgetClick,keyDown:this.keyDown,cssClasses:this.cssClasses,aria:this.aria,restAttributes:this.restAttributes})}}function ty(e){var t=["value"];return Object.keys(e).reduce(((i,n)=>{var o=e[n],r=t.some((e=>e===n))?"default"+n.charAt(0).toUpperCase()+n.slice(1):n;return i[r]=o,i}),{})}ey.defaultProps=Qv;var iy=[];function ny(e){iy.push(e),ey.defaultProps=Object.create(Object.prototype,(0,hn.Z)(Object.getOwnPropertyDescriptors(ey.defaultProps),Object.getOwnPropertyDescriptors(ty((0,Fs.wt)(iy)))))}class oy extends hv{getProps(){var e=super.getProps();return e.onKeyDown=this._wrapKeyDownHandler(e.onKeyDown),e}focus(){var e;return null===(e=this.viewRef)||void 0===e?void 0:e.focus(...arguments)}blur(){var e;return null===(e=this.viewRef)||void 0===e?void 0:e.blur(...arguments)}_getActionConfigs(){return{onFocusIn:{},onClick:{}}}get _propsInfo(){return{twoWay:[["value","defaultValue","valueChange"]],allowNull:["defaultValue","validationError","validationErrors","value"],elements:[],templates:[],props:["text","iconSize","enableThreeStateBehavior","activeStateEnabled","hoverStateEnabled","focusStateEnabled","saveValueChangeEvent","defaultValue","valueChange","readOnly","name","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","isValid","onFocusIn","className","accessKey","disabled","height","hint","onClick","onKeyDown","rtlEnabled","tabIndex","visible","width","aria","value"]}}get _viewComponent(){return ey}}(0,C.Z)("dxCheckBox",oy),oy.defaultOptions=ny;var ry=oy,ay=i(54101),sy=e=>e.getMonth()+1,ly=(e,t)=>{var i=e.getDate(),n=py("M",e),o=(0,ln.n$)(parseInt(t),n.min,n.max);e.setMonth(o-1,1);var{min:r,max:a}=py("dM",e),s=(0,ln.n$)(i,r,a);e.setDate(s)},dy={a:e=>e.getHours()<12?0:1,E:"getDay",y:"getFullYear",M:sy,L:sy,d:"getDate",H:"getHours",h:"getHours",m:"getMinutes",s:"getSeconds",S:"getMilliseconds"},uy=(0,a.l)({},(0,ay.xe)(),{a:(e,t)=>{var i=e.getHours(),n=i>=12;n!==!!parseInt(t)&&e.setHours((i+12)%24)},d:(e,t)=>{var i=py("dM",e).max;t>i&&e.setMonth(e.getMonth()+1),e.setDate(t)},h:(e,t)=>{var i=e.getHours()>=12;e.setHours(+t%12+(i?12:0))},M:ly,L:ly,E:(e,t)=>{t<0||e.setDate(e.getDate()-e.getDay()+parseInt(t))},y:(e,t)=>{var i=e.getFullYear(),n=String(t).length,o=String(py("y",e).max).length,r=parseInt(String(i).substr(0,o-n)+t);e.setFullYear(r)}}),cy=e=>dy[e]||(()=>e),hy=(e,t)=>{for(var i=t.regexp.exec(e),n=0,o=0,r=[],a=function(e){n=o,o=n+i[e].length;var a=t.patterns[e-1].replace(/^'|'$/g,""),s=cy(a[0]);r.push({index:e-1,isStub:a===i[e],caret:{start:n,end:o},pattern:a,text:i[e],limits:function(){for(var e=arguments.length,t=new Array(e),i=0;i{var n={y:{min:0,max:9999},M:{min:1,max:12},L:{min:1,max:12},d:{min:1,max:31},dM:{min:1,max:new Date(t.getFullYear(),t.getMonth()+1,0).getDate()},E:{min:0,max:6},H:{min:0,max:23},h:{min:0,max:23},m:{min:0,max:59},s:{min:0,max:59},S:{min:0,max:999},a:{min:0,max:1}};return n[i||e]||n.getAmPm},fy=(e,t)=>{for(var i=0;i=t;if(!e[i].isStub&&n)return i}return null},gy=i(66713),my=i(69992),_y=i(14435),vy=i(22561),yy=["year","day","month","day"],Cy=["hours","minutes","seconds","milliseconds"],by=6e4,xy=60*by*24,wy=365*xy,Ty=function(e){var t=typeof e;return"string"===t?"format":"object"===t&&void 0!==e.type?e.type:null},Sy={SUPPORTED_FORMATS:["date","time","datetime"],ONE_MINUTE:by,ONE_DAY:xy,ONE_YEAR:wy,MIN_DATEVIEW_DEFAULT_DATE:new Date(1900,0,1),MAX_DATEVIEW_DEFAULT_DATE:function(){var e=new Date;return new Date(e.getFullYear()+50,e.getMonth(),e.getDate(),23,59,59)}(),FORMATS_INFO:{date:{getStandardPattern:function(){return"yyyy-MM-dd"},components:yy},time:{getStandardPattern:function(){return"HH:mm"},components:Cy},datetime:{getStandardPattern:function(){var e;return function(){var t=(0,o.Z)("").attr("type","datetime");t.val("2000-01-01T01:01Z"),t.val()&&(e="yyyy-MM-ddTHH:mmZ")}(),e||(e="yyyy-MM-ddTHH:mm:ssZ"),Sy.FORMATS_INFO.datetime.getStandardPattern=function(){return e},e},components:[...yy,...Cy]},"datetime-local":{getStandardPattern:function(){return"yyyy-MM-ddTHH:mm:ss"},components:[...yy,"hours","minutes","seconds"]}},FORMATS_MAP:{date:"shortdate",time:"shorttime",datetime:"shortdateshorttime"},SUBMIT_FORMATS_MAP:{date:"date",time:"time",datetime:"datetime-local"},toStandardDateFormat:function(e,t){var i=Sy.FORMATS_INFO[t].getStandardPattern();return vy.Z.serializeDate(e,i)},fromStandardDateFormat:function(e){var t=vy.Z.dateParser(e);return(0,l.J_)(t)?t:void 0},getMaxMonthDay:function(e,t){return new Date(e,t+1,0).getDate()},mergeDates:function(e,t,i){if(!t)return t||null;if(!e||isNaN(e.getTime())){var n=new Date(null);e=new Date(n.getFullYear(),n.getMonth(),n.getDate())}var o=new Date(e.valueOf()),r=Sy.FORMATS_INFO[i];return(0,E.S6)(r.components,(function(){var e=Sy.DATE_COMPONENTS_INFO[this];o[e.setter](t[e.getter]())})),o},getLongestCaptionIndex:function(e){var t,i=0,n=0;for(t=0;tn&&(i=t,n=e[t].length);return i},formatUsesMonthName:function(e){return gy.Z.formatUsesMonthName(e)},formatUsesDayName:function(e){return gy.Z.formatUsesDayName(e)},getLongestDate:function(e,t,i){var n=Ty(e),o=9;n&&!Sy.formatUsesMonthName(n)||(o=Sy.getLongestCaptionIndex(t));var r=new Date(1888,o,21,23,59,59,999);if(!n||Sy.formatUsesDayName(n)){var a=r.getDate()-r.getDay()+Sy.getLongestCaptionIndex(i);r.setDate(a)}return r},normalizeTime:function(e){e.setSeconds(0),e.setMilliseconds(0)}};Sy.DATE_COMPONENTS_INFO={year:{getter:"getFullYear",setter:"setFullYear",formatter:function(e,t){var i=new Date(t.getTime());return i.setFullYear(e),gy.Z.format(i,"yyyy")},startValue:void 0,endValue:void 0},day:{getter:"getDate",setter:"setDate",formatter:function(e,t){var i=new Date(t.getTime());return i.setDate(e),gy.Z.format(i,"d")},startValue:1,endValue:void 0},month:{getter:"getMonth",setter:"setMonth",formatter:function(e){return gy.Z.getMonthNames()[e]},startValue:0,endValue:11},hours:{getter:"getHours",setter:"setHours",formatter:function(e){return gy.Z.format(new Date(0,0,0,e),"hour")},startValue:0,endValue:23},minutes:{getter:"getMinutes",setter:"setMinutes",formatter:function(e){return gy.Z.format(new Date(0,0,0,0,e),"minute")},startValue:0,endValue:59},seconds:{getter:"getSeconds",setter:"setSeconds",formatter:function(e){return gy.Z.format(new Date(0,0,0,0,0,e),"second")},startValue:0,endValue:59},milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",formatter:function(e){return gy.Z.format(new Date(0,0,0,0,0,0,e),"millisecond")},startValue:0,endValue:999}};var Iy=Sy,Ey="dx-dropdowneditor-button",Dy="dx-dropdowneditor-button-visible",ky="dxDropDownEditor-selectLabel";class Oy extends Gg{constructor(e,t,i){super(e,t,i),this.currentTemplate=null}_attachEvents(e){var{editor:t}=this;e.option("onClick",(e=>{!t.option("openOnFieldClick")&&t._openHandler(e)})),re.Z.on(e.$element(),"mousedown",(e=>{t.$element().is(".dx-state-focused")&&e.preventDefault()}))}_create(){var{editor:e}=this,t=(0,o.Z)("
"),i=this._getOptions();this._addToContainer(t);var n=e._createComponent(t,cd,(0,a.l)({},i,{elementAttr:{"aria-label":y.Z.format(ky)}}));return this._legacyRender(e.$element(),t,i.visible),{$element:t,instance:n}}_getOptions(){var{editor:e}=this,t=this._isVisible(),i=e.option("readOnly"),n={focusStateEnabled:!1,hoverStateEnabled:!1,activeStateEnabled:!1,useInkRipple:!1,disabled:i,visible:t};return this._addTemplate(n),n}_isVisible(){var{editor:e}=this;return super._isVisible()&&e.option("showDropDownButton")}_legacyRender(e,t,i){e.toggleClass(Dy,i),t&&t.removeClass("dx-button").addClass(Ey)}_isSameTemplate(){return this.editor.option("dropDownButtonTemplate")===this.currentTemplate}_addTemplate(e){this._isSameTemplate()||(e.template=this.editor._getTemplateByOption("dropDownButtonTemplate"),this.currentTemplate=this.editor.option("dropDownButtonTemplate"))}update(){var e=super.update();if(e){var{editor:t,instance:i}=this,n=t.$element(),o=this._getOptions();null===i||void 0===i||i.option(o),this._legacyRender(n,null===i||void 0===i?void 0:i.$element(),o.visible)}}}var Ay=i(50191),Py=function(e){if((0,s.Ym)())return(0,n.Y_)(e)},My=function(e){return null===e&&(e=void 0),"function"===typeof e&&(e=e()),e},Ry="dx-dropdowneditor",By="dx-dropdowneditor-input-wrapper",Vy="dx-dropdowneditor-icon",Fy="dx-dropdowneditor-overlay",Hy="dx-dropdowneditor-overlay-flipped",Ly="dx-dropdowneditor-active",Ny="dx-dropdowneditor-field-clickable",Zy="dx-dropdowneditor-field-template-wrapper",$y="ios"===w.Z.current().platform,Wy=f_.inherit({_supportedKeys:function(){return(0,a.l)({},this.callBase(),{tab:function(e){if(this.option("opened"))if("instantly"!==this.option("applyValueMode")){var t=e.shiftKey?this._getLastPopupElement():this._getFirstPopupElement();t&&re.Z.trigger(t,"focus"),e.preventDefault()}else this.close()},escape:function(e){return this.option("opened")&&e.preventDefault(),this.close(),!0},upArrow:function(e){return!(!(0,R.j1)(e)&&(e.preventDefault(),e.stopPropagation(),e.altKey))||(this.close(),!1)},downArrow:function(e){return!(!(0,R.j1)(e)&&(e.preventDefault(),e.stopPropagation(),e.altKey))||(this._validatedOpening(),!1)},enter:function(e){return this.option("opened")&&(e.preventDefault(),this._valueChangeEventHandler(e)),!0}})},_getDefaultButtons:function(){return this.callBase().concat([{name:"dropDown",Ctor:Oy}])},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{value:null,onOpened:null,onClosed:null,opened:!1,acceptCustomValue:!0,applyValueMode:"instantly",deferRendering:!0,activeStateEnabled:!0,dropDownButtonTemplate:"dropDownButton",fieldTemplate:null,openOnFieldClick:!1,showDropDownButton:!0,buttons:void 0,dropDownOptions:{showTitle:!1},popupPosition:this._getDefaultPopupPosition(),onPopupInitialized:null,applyButtonText:y.Z.format("OK"),cancelButtonText:y.Z.format("Cancel"),buttonsLocation:"default",useHiddenSubmitElement:!1,validationMessagePosition:"auto"})},_useTemplates:function(){return!0},_getDefaultPopupPosition:function(e){var t=Ae(e);return{offset:{h:0,v:-1},my:t+" top",at:t+" bottom",collision:"flip flip"}},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){var t="generic"===e.platform;return t},options:{popupPosition:{offset:{v:0}}}}])},_inputWrapper:function(){return this.$element().find("."+By).first()},_init:function(){this.callBase(),this._initVisibilityActions(),this._initPopupInitializedAction(),this._updatePopupPosition(this.option("rtlEnabled")),this._options.cache("dropDownOptions",this.option("dropDownOptions"))},_updatePopupPosition:function(e){var{my:t,at:i}=this._getDefaultPopupPosition(e),n=this.option("popupPosition");this.option("popupPosition",(0,a.l)({},n,{my:t,at:i}))},_initVisibilityActions:function(){this._openAction=this._createActionByOption("onOpened",{excludeValidators:["disabled","readOnly"]}),this._closeAction=this._createActionByOption("onClosed",{excludeValidators:["disabled","readOnly"]})},_initPopupInitializedAction:function(){this._popupInitializedAction=this._createActionByOption("onPopupInitialized",{excludeValidators:["disabled","readOnly"]})},_initMarkup:function(){this._renderSubmitElement(),this.callBase(),this.$element().addClass(Ry),this.setAria("role","combobox")},_render:function(){this.callBase(),this._renderOpenHandler(),this._attachFocusOutHandler(),this._renderOpenedState()},_renderContentImpl:function(){this.option("deferRendering")||this._createPopup()},_renderInput:function(){this.callBase(),this._wrapInput(),this._setDefaultAria()},_wrapInput:function(){this._$container=this.$element().wrapInner((0,o.Z)("
").addClass(By)).children().eq(0)},_setDefaultAria:function(){this.setAria({haspopup:"true",autocomplete:"list"})},_readOnlyPropValue:function(){return!this._isEditable()||this.callBase()},_cleanFocusState:function(){this.callBase(),this.option("fieldTemplate")&&this._detachFocusEvents()},_getFieldTemplate:function(){return this.option("fieldTemplate")&&this._getTemplateByOption("fieldTemplate")},_renderMask:function(){this.option("fieldTemplate")||this.callBase()},_renderField:function(){var e=this._getFieldTemplate();e&&this._renderTemplatedField(e,this._fieldRenderData())},_renderPlaceholder:function(){var e=!!this._getFieldTemplate();e||this.callBase()},_renderValue:function(){this.option("useHiddenSubmitElement")&&this._setSubmitValue();var e=this.callBase();e.always(this._renderField.bind(this))},_renderTemplatedField:function(e,t){var i;this._fieldRenderQueueLength=(null!==(i=this._fieldRenderQueueLength)&&void 0!==i?i:0)+1;var n=(0,D.si)(this._input()),r=this._$container;this._detachKeyboardEvents(),this._refreshButtonsContainer(),this._detachWrapperContent(),this._detachFocusEvents(),r.empty();var a=(0,o.Z)("
").addClass(Zy).appendTo(r);e.render({model:t,container:(0,se.u)(a),onRendered:()=>{if(this._fieldRenderQueueLength--,0===this._fieldRenderQueueLength){var e=this._input();if(!e.length)throw Xt.Z.Error("E1010");this._integrateInput(),n&&re.Z.trigger(e,"focus")}}}),this._attachWrapperContent(r)},_detachWrapperContent(){var e,t,i,n=this.option("useHiddenSubmitElement");n&&(null===(e=this._$submitElement)||void 0===e||e.detach());var o=null===(t=this._$beforeButtonsContainer)||void 0===t?void 0:t[0].parentNode,r=null===(i=this._$afterButtonsContainer)||void 0===i?void 0:i[0].parentNode;null===o||void 0===o||o.removeChild(this._$beforeButtonsContainer[0]),null===r||void 0===r||r.removeChild(this._$afterButtonsContainer[0])},_attachWrapperContent(e){var t,i=this.option("useHiddenSubmitElement");e.prepend(this._$beforeButtonsContainer),i&&(null===(t=this._$submitElement)||void 0===t||t.appendTo(e)),e.append(this._$afterButtonsContainer)},_refreshButtonsContainer(){this._$buttonsContainer=this.$element().children().eq(0)},_integrateInput:function(){this._renderFocusState(),this._refreshValueChangeEvent(),this._refreshEvents(),this._refreshEmptinessEvent()},_refreshEmptinessEvent:function(){re.Z.off(this._input(),"input blur",this._toggleEmptinessEventHandler),this._renderEmptinessEvent()},_fieldRenderData:function(){return this.option("value")},_initTemplates:function(){this._templateManager.addDefaultTemplates({dropDownButton:new Ay.k((function(e){var t=(0,o.Z)("
").addClass(Vy);(0,o.Z)(e.container).append(t)}))}),this.callBase()},_renderOpenHandler:function(){var e=this._inputWrapper(),t=(0,R.V4)(A.u,this.NAME),i=this.option("openOnFieldClick");re.Z.off(e,t),re.Z.on(e,t,this._getInputClickHandler(i)),this.$element().toggleClass(Ny,i),i&&(this._openOnFieldClickAction=this._createAction(this._openHandler.bind(this)))},_attachFocusOutHandler:function(){$y&&(this._detachFocusOutEvents(),re.Z.on(this._inputWrapper(),(0,R.V4)("focusout",this.NAME),(e=>{var t=e.relatedTarget,i=this.content?(0,o.Z)(this.content()).closest("."+Fy):this._$popup;if(t&&this.option("opened")){var n=0===(0,o.Z)(t).closest("."+Fy,i).length;n&&this.close()}})))},_detachFocusOutEvents:function(){$y&&re.Z.off(this._inputWrapper(),(0,R.V4)("focusout",this.NAME))},_getInputClickHandler:function(e){return e?e=>{this._executeOpenAction(e)}:e=>{this._focusInput()}},_openHandler:function(){this._toggleOpenState()},_executeOpenAction:function(e){this._openOnFieldClickAction({event:e})},_keyboardEventBindingTarget:function(){return this._input()},_focusInput:function(){return!this.option("disabled")&&(this.option("focusStateEnabled")&&!(0,D.si)(this._input())&&(this._resetCaretPosition(),re.Z.trigger(this._input(),"focus")),!0)},_resetCaretPosition:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._input().get(0);if(t){var{value:i}=t,n=(0,l.$K)(i)&&(e||this._isEditable())?i.length:0;this._caret({start:n,end:n},!0)}},_isEditable:function(){return this.option("acceptCustomValue")},_toggleOpenState:function(e){this._focusInput()&&(this.option("readOnly")||(e=arguments.length?e:!this.option("opened"),this.option("opened",e)))},_getControlsAria(){return this._popup&&this._popupContentId},_renderOpenedState:function(){var e=this.option("opened");e&&this._createPopup(),this.$element().toggleClass(Ly,e),this._setPopupOption("visible",e);var t={expanded:e,controls:this._getControlsAria()};this.setAria(t),this.setAria("owns",e?this._popupContentId:void 0,this.$element())},_createPopup:function(){this._$popup||(this._$popup=(0,o.Z)("
").addClass(Fy).appendTo(this.$element()),this._renderPopup(),this._renderPopupContent())},_renderPopupContent:v.ZT,_renderPopup:function(){var e=(0,a.l)(this._popupConfig(),this._options.cache("dropDownOptions"));this._popup=this._createComponent(this._$popup,Tc,e),this._popup.on({showing:this._popupShowingHandler.bind(this),shown:this._popupShownHandler.bind(this),hiding:this._popupHidingHandler.bind(this),hidden:this._popupHiddenHandler.bind(this),contentReady:this._contentReadyHandler.bind(this)}),this._contentReadyHandler(),this._setPopupContentId(this._popup.$content()),this._bindInnerWidgetOptions(this._popup,"dropDownOptions")},_setPopupContentId(e){this._popupContentId="dx-"+new Li.Z,this.setAria("id",this._popupContentId,e)},_contentReadyHandler:v.ZT,_popupConfig:function(){return{onInitialized:this._popupInitializedHandler(),position:(0,a.l)(this.option("popupPosition"),{of:this.$element()}),showTitle:this.option("dropDownOptions.showTitle"),_ignoreFunctionValueDeprecation:!0,width:()=>Py(this.$element()),height:"auto",shading:!1,hideOnParentScroll:!0,hideOnOutsideClick:e=>this._closeOutsideDropDownHandler(e),animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},deferRendering:!1,focusStateEnabled:!1,showCloseButton:!1,dragEnabled:!1,toolbarItems:this._getPopupToolbarItems(),onPositioned:this._popupPositionedHandler.bind(this),fullScreen:!1,contentTemplate:null,_wrapperClassExternal:Fy}},_popupInitializedHandler:function(){return this.option("onPopupInitialized")?e=>{this._popupInitializedAction({popup:e.component})}:null},_dimensionChanged:function(){var e=My(this.option("dropDownOptions.width"));void 0===e&&this._setPopupOption("width",(()=>Py(this.$element())))},_popupPositionedHandler:function(e){var{labelMode:t,stylingMode:i}=this.option(),n=this._popup.$overlayContent(),o=e.position.v.flip,r="hidden"!==t&&"outlined"===i;if(e.position&&n.toggleClass(Hy,o),o&&r&&this._label.isVisible()){var a=this._label.$element();ve(n,{top:he(n).top-parseInt(a.css("fontSize"))})}},_popupShowingHandler:v.ZT,_popupHidingHandler:function(){this.option("opened",!1)},_popupShownHandler:function(){var e;this._openAction(),null===(e=this._validationMessage)||void 0===e||e.option("positionSide",this._getValidationMessagePositionSide())},_popupHiddenHandler:function(){var e;this._closeAction(),null===(e=this._validationMessage)||void 0===e||e.option("positionSide",this._getValidationMessagePositionSide())},_getValidationMessagePositionSide:function(){var e=this.option("validationMessagePosition");if("auto"!==e)return e;var t="bottom";if(this._popup&&this._popup.option("visible")){var{top:i}=it.setup(this.$element()),{top:n}=it.setup(this._popup.$content());t=i+this.option("popupPosition").offset.v>n?"bottom":"top"}return t},_closeOutsideDropDownHandler:function(e){var{target:t}=e,i=(0,o.Z)(t),n=this.getButton("dropDown"),r=n&&n.$element(),a=!!i.closest(this.$element()).length,s=!!i.closest(r).length,l=!a&&!s;return l},_clean:function(){delete this._openOnFieldClickAction,this._$popup&&(this._$popup.remove(),delete this._$popup,delete this._popup),this.callBase()},_setPopupOption:function(e,t){this._setWidgetOption("_popup",arguments)},_validatedOpening:function(){this.option("readOnly")||this._toggleOpenState(!0)},_getPopupToolbarItems:function(){return"useButtons"===this.option("applyValueMode")?this._popupToolbarItemsConfig():[]},_getFirstPopupElement:function(){return this._popup.$wrapper().find(".dx-popup-done.dx-button")},_getLastPopupElement:function(){return this._popup.$wrapper().find(".dx-popup-cancel.dx-button")},_popupElementTabHandler:function(e){var t=(0,o.Z)(e.currentTarget);(e.shiftKey&&t.is(this._getFirstPopupElement())||!e.shiftKey&&t.is(this._getLastPopupElement()))&&(re.Z.trigger(this._input(),"focus"),e.preventDefault())},_popupElementEscHandler:function(){re.Z.trigger(this._input(),"focus"),this.close()},_popupButtonInitializedHandler:function(e){e.component.registerKeyHandler("tab",this._popupElementTabHandler.bind(this)),e.component.registerKeyHandler("escape",this._popupElementEscHandler.bind(this))},_popupToolbarItemsConfig:function(){var e=[{shortcut:"done",options:{onClick:this._applyButtonHandler.bind(this),text:this.option("applyButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}},{shortcut:"cancel",options:{onClick:this._cancelButtonHandler.bind(this),text:this.option("cancelButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}}];return this._applyButtonsLocation(e)},_applyButtonsLocation:function(e){var t=this.option("buttonsLocation"),i=e;if("default"!==t){var n=(0,v.Um)(t);(0,E.S6)(i,(function(e,t){(0,a.l)(t,{toolbar:n[0],location:n[1]})}))}return i},_applyButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_cancelButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_popupOptionChanged:function(e){var t=G.getOptionsFromContainer(e);this._setPopupOption(t);var i=Object.keys(t);-1===i.indexOf("width")&&-1===i.indexOf("height")||this._dimensionChanged()},_renderSubmitElement:function(){this.option("useHiddenSubmitElement")&&(this._$submitElement=(0,o.Z)("").attr("type","hidden").appendTo(this.$element()))},_setSubmitValue:function(){this._getSubmitElement().val(this.option("value"))},_getSubmitElement:function(){return this.option("useHiddenSubmitElement")?this._$submitElement:this.callBase()},_dispose:function(){this._detachFocusOutEvents(),this.callBase()},_optionChanged:function(e){var t;switch(e.name){case"width":case"height":this.callBase(e),null===(t=this._popup)||void 0===t||t.repaint();break;case"opened":this._renderOpenedState();break;case"onOpened":case"onClosed":this._initVisibilityActions();break;case"onPopupInitialized":this._initPopupInitializedAction();break;case"fieldTemplate":(0,l.$K)(e.value)?this._renderField():this._invalidate();break;case"acceptCustomValue":case"openOnFieldClick":this._invalidate();break;case"dropDownButtonTemplate":case"showDropDownButton":this._updateButtons(["dropDown"]);break;case"dropDownOptions":this._popupOptionChanged(e),this._options.cache("dropDownOptions",this.option("dropDownOptions"));break;case"popupPosition":break;case"deferRendering":(0,s.Ym)()&&this._createPopup();break;case"applyValueMode":case"applyButtonText":case"cancelButtonText":case"buttonsLocation":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"useHiddenSubmitElement":this._$submitElement&&(this._$submitElement.remove(),this._$submitElement=void 0),this._renderSubmitElement();break;case"rtlEnabled":this._updatePopupPosition(e.value),this.callBase(e);break;default:this.callBase(e)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)},field:function(){return(0,se.u)(this._input())},content:function(){return this._popup?this._popup.content():null}});(0,C.Z)("dxDropDownEditor",Wy);var Ky=Wy,zy="dx-calendar-navigator",jy="dx-calendar-navigator-previous-month",Uy="dx-calendar-navigator-next-month",Gy="dx-calendar-navigator-previous-view",qy="dx-calendar-navigator-next-view",Yy="dx-calendar-disabled-navigator-link",Xy="dx-calendar-caption-button",Jy=G.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{onClick:null,onCaptionClick:null,text:""})},_init:function(){this.callBase(),this._initActions()},_initActions:function(){this._clickAction=this._createActionByOption("onClick"),this._captionClickAction=this._createActionByOption("onCaptionClick")},_initMarkup:function(){this.callBase(),this.$element().addClass(zy),this._renderButtons(),this._renderCaption()},_renderButtons:function(){var e=this,t=this.option("rtlEnabled")?-1:1;this._prevButton=this._createComponent((0,o.Z)(""),cd,{focusStateEnabled:!1,icon:"chevronleft",onClick:function(i){e._clickAction({direction:-t,event:i})},integrationOptions:{}});var i=this._prevButton.$element().addClass(Gy).addClass(jy);this._nextButton=this._createComponent((0,o.Z)(""),cd,{focusStateEnabled:!1,icon:"chevronright",onClick:function(i){e._clickAction({direction:t,event:i})},integrationOptions:{}});var n=this._nextButton.$element().addClass(qy).addClass(Uy);this._caption=this._createComponent((0,o.Z)("").addClass(Xy),cd,{focusStateEnabled:!1,onClick:function(t){e._captionClickAction({event:t})},integrationOptions:{}});var r=this._caption.$element();this.$element().append(i,r,n)},_renderCaption:function(){this._caption.option("text",this.option("text"))},toggleButton:function(e,t){var i="_"+e+"Button",n=this[i];n&&(n.option("disabled",t),n.$element().toggleClass(Yy,t))},_optionChanged:function(e){switch(e.name){case"text":this._renderCaption();break;default:this.callBase(e)}}}),Qy=Jy,{abstract:eC}=G,tC="dx-calendar-other-view",iC="dx-calendar-cell",nC="dx-calendar-week-number-cell",oC="dx-calendar-empty-cell",rC="dx-calendar-today",aC="dx-calendar-selected-date",sC="dx-calendar-contoured-date",lC=(0,R.V4)(A.u,"dxCalendar"),dC="dxDateValueKey",uC=G.inherit({_getViewName:function(){return"base"},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{date:new Date,focusStateEnabled:!1,cellTemplate:null,disabledDates:null,onCellClick:null,rowCount:3,colCount:4,allowValueSelection:!0,_todayDate:()=>new Date})},_initMarkup:function(){this.callBase(),this._renderImpl()},_renderImpl:function(){this.$element().append(this._createTable()),this._createDisabledDatesHandler(),this._renderBody(),this._renderContouredDate(),this._renderValue(),this._renderEvents()},_createTable:function(){return this._$table=(0,o.Z)(""),this.setAria({label:y.Z.format("dxCalendar-ariaWidgetName"),role:"grid"},this._$table),this._$table},_renderBody:function(){this.$body=(0,o.Z)("").appendTo(this._$table);for(var e={cellDate:this._getFirstCellData(),prevCellDate:null},t=0,i=this.option("rowCount");t{(0,o.Z)(e.currentTarget).hasClass(oC)||this._cellClickAction({event:e,value:(0,o.Z)(e.currentTarget).data(dC)})}))},_createCellClickAction:function(){this._cellClickAction=this._createActionByOption("onCellClick")},_createDisabledDatesHandler:function(){var e=this.option("disabledDates");this._disabledDatesHandler=Array.isArray(e)?this._getDefaultDisabledDatesHandler(e):e||v.ZT},_getDefaultDisabledDatesHandler:function(e){return v.ZT},_isTodayCell:eC,_isDateOutOfRange:eC,isDateDisabled:function(e){var t={date:e,view:this._getViewName()};return this._disabledDatesHandler(t)},_isOtherView:eC,_getCellText:eC,_getFirstCellData:eC,_getNextCellData:eC,_renderContouredDate:function(e){if(this.option("focusStateEnabled")){e=e||this.option("contouredDate");var t=this._getContouredCell(),i=this._getCellByDate(e);t.removeClass(sC),i.addClass(sC)}},_getContouredCell:function(){return this._$table.find(".".concat(sC))},_changeValue:function(e){if(e){var t=this.option("value"),i=t?new Date(t):new Date;i.setDate(e.getDate()),i.setMonth(e.getMonth()),i.setFullYear(e.getFullYear()),i.setDate(e.getDate()),this.option("value",i)}else this.option("value",null)},_renderValue:function(){if(this.option("allowValueSelection")){var e=this.option("value"),t=this._getCellByDate(e);this._selectedCell&&this._selectedCell.removeClass(aC),t.addClass(aC),this._selectedCell=t}},getCellAriaLabel:function(e){return this._getCellText(e)},_getFirstAvailableDate:function(){var e=this.option("date"),t=this.option("min");return e=_y.Z.getFirstDateView(this._getViewName(),e),new Date(t&&e"),t=(0,o.Z)("").append(e);this._$table.prepend(t);for(var i=0,n=this.option("colCount");i").attr({scope:"col",abbr:n}).text(r);this._appendCell(t,a)},_renderWeekHeaderCell:function(e){var t=(0,o.Z)("
").attr({scope:"col",abbr:"WeekNumber",class:"dx-week-number-header"}).text("#"),i=this.option("rtlEnabled");i?e.append(t):e.prepend(t)},_renderWeekNumberCell:function(e){var{showWeekNumbers:t,rtlEnabled:i,cellTemplate:n}=this.option();if(t){var r=this._getWeekNumber(e.prevCellDate),a=ke["default"].createElement("td"),s=(0,o.Z)(a);a.className=fC,n?n.render(this._prepareCellTemplateData(r,-1,s)):a.innerHTML=r,i?e.row.append(a):e.row.prepend(a),this.setAria({role:"gridcell",label:"Week ".concat(r)},s)}},_getWeekNumber:function(e){var{weekNumberRule:t,firstDayOfWeek:i}=this.option();return"auto"===t?_y.Z.getWeekNumber(e,i,1===i?"firstFourDays":"firstDay"):_y.Z.getWeekNumber(e,i,t)},getNavigatorCaption:function(){return gy.Z.format(this.option("date"),"monthandyear")},_isTodayCell:function(e){var t=this.option("_todayDate")();return _y.Z.sameDate(e,t)},_isDateOutOfRange:function(e){var t=this.option("min"),i=this.option("max");return!_y.Z.dateInRange(e,t,i,"date")},_isOtherView:function(e){return e.getMonth()!==this.option("date").getMonth()},_getCellText:function(e){return gy.Z.format(e,"d")},_getDayCaption:function(e){var t=this.option("colCount"),i=e%t;return{full:gy.Z.getDayNames()[i],abbreviated:gy.Z.getDayNames("abbreviated")[i]}},_getFirstCellData:function(){var{firstDayOfWeek:e}=this.option(),t=_y.Z.getFirstMonthDate(this.option("date")),i=e-t.getDay(),n=this.option("colCount");return i>=0&&(i-=n),t.setDate(t.getDate()+i),t},_getNextCellData:function(e){return e=new Date(e),e.setDate(e.getDate()+1),e},_getCellByDate:function(e){return this._$table.find("td[data-value='".concat(vy.Z.serializeDate(e,_y.Z.getShortDateFormat()),"']"))},isBoundary:function(e){return _y.Z.sameMonthAndYear(e,this.option("min"))||_y.Z.sameMonthAndYear(e,this.option("max"))},_getDefaultDisabledDatesHandler:function(e){return function(t){var i=e.some((function(e){return _y.Z.sameDate(e,t.date)}));if(i)return!0}}}),year:cC.inherit({_getViewName:function(){return"year"},_isTodayCell:function(e){var t=this.option("_todayDate")();return _y.Z.sameMonthAndYear(e,t)},_isDateOutOfRange:function(e){return!_y.Z.dateInRange(e,_y.Z.getFirstMonthDate(this.option("min")),_y.Z.getLastMonthDate(this.option("max")))},_isOtherView:function(){return!1},_getCellText:function(e){return gy.Z.getMonthNames("abbreviated")[e.getMonth()]},_getFirstCellData:function(){var e=this.option("date"),t=new Date(e);return t.setDate(1),t.setMonth(0),t},_getNextCellData:function(e){return e=new Date(e),e.setMonth(e.getMonth()+1),e},_getCellByDate:function(e){var t=new Date(e);return t.setDate(1),this._$table.find("td[data-value='".concat(vy.Z.serializeDate(t,_y.Z.getShortDateFormat()),"']"))},getCellAriaLabel:function(e){return gy.Z.format(e,"monthandyear")},getNavigatorCaption:function(){return gy.Z.format(this.option("date"),"yyyy")},isBoundary:function(e){return _y.Z.sameYear(e,this.option("min"))||_y.Z.sameYear(e,this.option("max"))},_renderWeekNumberCell:v.ZT}),decade:cC.inherit({_getViewName:function(){return"decade"},_isTodayCell:function(e){var t=this.option("_todayDate")();return _y.Z.sameYear(e,t)},_isDateOutOfRange:function(e){var t=this.option("min"),i=this.option("max");return!_y.Z.dateInRange(e.getFullYear(),t&&t.getFullYear(),i&&i.getFullYear())},_isOtherView:function(e){var t=new Date(e);return t.setMonth(1),!_y.Z.sameDecade(t,this.option("date"))},_getCellText:function(e){return gy.Z.format(e,"yyyy")},_getFirstCellData:function(){var e=_y.Z.getFirstYearInDecade(this.option("date"))-1;return _y.Z.createDateWithFullYear(e,0,1)},_getNextCellData:function(e){return e=new Date(e),e.setFullYear(e.getFullYear()+1),e},getNavigatorCaption:function(){var e=this.option("date"),t=_y.Z.getFirstYearInDecade(e),i=new Date(e),n=new Date(e);return i.setFullYear(t),n.setFullYear(t+9),gy.Z.format(i,"yyyy")+"-"+gy.Z.format(n,"yyyy")},_isValueOnCurrentView:function(e,t){return _y.Z.sameDecade(e,t)},_getCellByDate:function(e){var t=new Date(e);return t.setDate(1),t.setMonth(0),this._$table.find("td[data-value='".concat(vy.Z.serializeDate(t,_y.Z.getShortDateFormat()),"']"))},isBoundary:function(e){return _y.Z.sameDecade(e,this.option("min"))||_y.Z.sameDecade(e,this.option("max"))},_renderWeekNumberCell:v.ZT}),century:cC.inherit({_getViewName:function(){return"century"},_isTodayCell:function(e){var t=this.option("_todayDate")();return _y.Z.sameDecade(e,t)},_isDateOutOfRange:function(e){var t=_y.Z.getFirstYearInDecade(e),i=_y.Z.getFirstYearInDecade(this.option("min")),n=_y.Z.getFirstYearInDecade(this.option("max"));return!_y.Z.dateInRange(t,i,n)},_isOtherView:function(e){var t=new Date(e);return t.setMonth(1),!_y.Z.sameCentury(t,this.option("date"))},_getCellText:function(e){var t=gy.Z.format(e,"yyyy"),i=new Date(e);return i.setFullYear(i.getFullYear()+9),t+" - "+gy.Z.format(i,"yyyy")},_getFirstCellData:function(){var e=_y.Z.getFirstDecadeInCentury(this.option("date"))-10;return _y.Z.createDateWithFullYear(e,0,1)},_getNextCellData:function(e){return e=new Date(e),e.setFullYear(e.getFullYear()+10),e},_getCellByDate:function(e){var t=new Date(e);return t.setDate(1),t.setMonth(0),t.setFullYear(_y.Z.getFirstYearInDecade(t)),this._$table.find("td[data-value='".concat(vy.Z.serializeDate(t,_y.Z.getShortDateFormat()),"']"))},getNavigatorCaption:function(){var e=this.option("date"),t=_y.Z.getFirstDecadeInCentury(e),i=new Date(e),n=new Date(e);return i.setFullYear(t),n.setFullYear(t+99),gy.Z.format(i,"yyyy")+"-"+gy.Z.format(n,"yyyy")},isBoundary:function(e){return _y.Z.sameCentury(e,this.option("min"))||_y.Z.sameCentury(e,this.option("max"))},_renderWeekNumberCell:v.ZT})},mC=gC,_C="dx-calendar",vC="dx-calendar-body",yC="dx-calendar-cell",CC="dx-calendar-footer",bC="dx-calendar-today-button",xC="dx-calendar-with-footer",wC="dx-calendar-views-wrapper",TC="dx-calendar-view",SC="dx-state-focused",IC=250,EC=.6,DC=1,kC="yyyy-MM-dd",OC="dxDateValueKey",AC={month:3,year:2,decade:1,century:0},PC={MONTH:"month",YEAR:"year",DECADE:"decade",CENTURY:"century"};function MC(e){return e.hasClass(SC)}var RC=zc.inherit({_activeStateUnit:"."+yC,_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,currentDate:new Date,value:null,dateSerializationFormat:void 0,min:new Date(1e3,0),max:new Date(3e3,0),firstDayOfWeek:void 0,zoomLevel:PC.MONTH,maxZoomLevel:PC.MONTH,minZoomLevel:PC.CENTURY,showTodayButton:!1,showWeekNumbers:!1,weekNumberRule:"auto",cellTemplate:"cell",disabledDates:null,onCellClick:null,onContouredChanged:null,skipFocusCheck:!1,_todayDate:()=>new Date})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===w.Z.real().deviceType&&!w.Z.isSimulator()},options:{focusStateEnabled:!0}}])},_supportedKeys:function(){return(0,a.l)(this.callBase(),{rightArrow:function(e){e.preventDefault(),(0,R.j1)(e)?this._waitRenderView(1):this._moveCurrentDateByOffset(1*this._getRtlCorrection())},leftArrow:function(e){e.preventDefault(),(0,R.j1)(e)?this._waitRenderView(-1):this._moveCurrentDateByOffset(-1*this._getRtlCorrection())},upArrow:function(e){if(e.preventDefault(),(0,R.j1)(e))this._navigateUp();else{if(Ut.isAnimating(this._view.$element()))return;this._moveCurrentDateByOffset(-1*this._view.option("colCount"))}},downArrow:function(e){if(e.preventDefault(),(0,R.j1)(e))this._navigateDown();else{if(Ut.isAnimating(this._view.$element()))return;this._moveCurrentDateByOffset(1*this._view.option("colCount"))}},home:function(e){e.preventDefault();var t=this.option("zoomLevel"),i=this.option("currentDate"),n=this._dateOption("min");if(!this._view.isDateDisabled(i)){var o=_y.Z.sameView(t,i,n)?n:_y.Z.getViewFirstCellDate(t,i);this._moveToClosestAvailableDate(o)}},end:function(e){e.preventDefault();var t=this.option("zoomLevel"),i=this.option("currentDate"),n=this._dateOption("max");if(!this._view.isDateDisabled(i)){var o=_y.Z.sameView(t,i,n)?n:_y.Z.getViewLastCellDate(t,i);this._moveToClosestAvailableDate(o)}},pageUp:function(e){e.preventDefault(),this._waitRenderView(-1*this._getRtlCorrection())},pageDown:function(e){e.preventDefault(),this._waitRenderView(1*this._getRtlCorrection())},tab:v.ZT,enter:function(e){if(this._isMaxZoomLevel()){if(!this._view.isDateDisabled(this.option("currentDate"))){var t=this._updateTimeComponent(this.option("currentDate"));this._dateValue(t,e)}}else this._navigateDown()}})},_getSerializationFormat:function(e){var t=this.option(e||"value");return this.option("dateSerializationFormat")?this.option("dateSerializationFormat"):(0,l.kE)(t)?"number":(0,l.HD)(t)?vy.Z.getDateSerializationFormat(t):void 0},_convertToDate:function(e,t){return vy.Z.deserializeDate(e)},_dateValue:function(e,t){if(t){if("keydown"===t.type){var i=this._view._getContouredCell().get(0);t.target=i}this._saveValueChangeEvent(t)}this._dateOption("value",e)},_dateOption:function(e,t){if(1===arguments.length)return this._convertToDate(this.option(e),e);var i=this._getSerializationFormat(e);this.option(e,vy.Z.serializeDate(t,i))},_shiftDate:function(e,t,i,n){switch(e){case PC.MONTH:t.setDate(t.getDate()+i*n);break;case PC.YEAR:t.setMonth(t.getMonth()+i*n);break;case PC.DECADE:t.setFullYear(t.getFullYear()+i*n);break;case PC.CENTURY:t.setFullYear(t.getFullYear()+10*i*n)}},_moveCurrentDateByOffset:function(e){var t=this.option("currentDate"),i=new Date(t),n=this.option("zoomLevel");this._shiftDate(n,i,e,1);var o=this._getMaxDate(),r=this._getMinDate(),a=this._areDatesInNeighborView(n,i,t),s=(0,ln.Z2)(i,r,o)&&a,l=new Date(i);while(s){if(!this._view.isDateDisabled(l)){i=l;break}this._shiftDate(n,l,e,1),a=this._areDatesInNeighborView(n,l,t),s=(0,ln.Z2)(l,r,o)&&a}this._view.isDateDisabled(t)||this._view.isDateDisabled(i)?this._waitRenderView(e>0?1:-1):this.option("currentDate",i)},_areDatesInSameView(e,t,i){switch(e){case PC.MONTH:return t.getMonth()===i.getMonth();case PC.YEAR:return t.getYear()===i.getYear();case PC.DECADE:return parseInt(t.getYear()/10)===parseInt(i.getYear()/10);case PC.CENTURY:return parseInt(t.getYear()/100)===parseInt(i.getYear()/100)}},_areDatesInNeighborView(e,t,i){switch(e){case PC.MONTH:return n=t.getMonth(),o=i.getMonth(),r=Math.abs(n-o),Math.min(r,12-r)<=1;case PC.YEAR:return Math.abs(t.getYear()-i.getYear())<=1;case PC.DECADE:return Math.abs(t.getYear()-i.getYear())<=10;case PC.CENTURY:return Math.abs(t.getYear()-i.getYear())<=100}var n,o,r},_moveToClosestAvailableDate:function(){var e,t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.option("currentDate"),n=new Date(i),o=this.option("zoomLevel"),r=!this._isDateNotAvailable(n),a=r,s=r,l=new Date(n),d=new Date(n);do{if(a){n=l;break}if(s){n=d;break}this._shiftDate(o,l,1,1),this._shiftDate(o,d,1,-1),e=this._areDatesInSameView(o,l,i),t=this._areDatesInSameView(o,d,i),a=e&&!this._isDateNotAvailable(l),s=t&&!this._isDateNotAvailable(d)}while(e||t);this.option("currentDate",n)},_isDateNotAvailable:function(e){var t=this._getMaxDate(),i=this._getMinDate();return!(0,ln.Z2)(e,i,t)||this._view.isDateDisabled(e)},_init:function(){this.callBase(),this._correctZoomLevel(),this._initCurrentDate(),this._initActions()},_correctZoomLevel:function(){var e=this.option("minZoomLevel"),t=this.option("maxZoomLevel"),i=this.option("zoomLevel");AC[t]AC[t]?this.option("zoomLevel",t):AC[i]").text(t&&t.text||String(t)))}))}),this.callBase()},_updateCurrentDate:function(e){Ut.isAnimating(this._$viewsWrapper)&&Ut.stop(this._$viewsWrapper,!0);var t=this._getMinDate(),i=this._getMaxDate();if(t>i)this.option("currentDate",new Date);else{var n=this._getNormalizedDate(e);if(e.getTime()===n.getTime()){var o=this._getViewsOffset(this._view.option("date"),n);0!==o&&!this._isMaxZoomLevel()&&this._isOtherViewCellClicked&&(o=0),this._view&&0!==o&&!this._suppressNavigation?this._navigate(o,n):(this._renderNavigator(),this._setViewContoured(n),this._updateAriaId(n))}else this.option("currentDate",new Date(n))}},_setViewContoured:function(e){(this.option("skipFocusCheck")||MC(this._focusTarget()))&&this._view.option("contouredDate",e)},_getMinDate:function(){return this.min||(this.min=this._dateOption("min")||new Date(1e3,0)),this.min},_getMaxDate:function(){return this.max||(this.max=this._dateOption("max")||new Date(3e3,0)),this.max},_getViewsOffset:function(e,t){var i,n=this.option("zoomLevel");if(n===PC.MONTH)return this._getMonthsOffset(e,t);switch(n){case PC.CENTURY:i=100;break;case PC.DECADE:i=10;break;default:i=1}return parseInt(t.getFullYear()/i)-parseInt(e.getFullYear()/i)},_getMonthsOffset:function(e,t){var i=t.getFullYear()-e.getFullYear(),n=t.getMonth()-e.getMonth();return 12*i+n},_waitRenderView:function(e){if(!this._alreadyViewRender){this._alreadyViewRender=!0;var t=this._getDateByOffset(e*this._getRtlCorrection());this._moveToClosestAvailableDate(t),this._waitRenderViewTimeout=setTimeout((()=>{this._alreadyViewRender=!1}))}},_getRtlCorrection:function(){return this.option("rtlEnabled")?-1:1},_getDateByOffset:function(e,t){var i;t=this._getDate(null!==(i=t)&&void 0!==i?i:this.option("currentDate"));var n=t.getDate(),o=_y.Z.getDifferenceInMonth(this.option("zoomLevel"))*e;t.setDate(1),t.setMonth(t.getMonth()+o);var r=_y.Z.getLastMonthDate(t).getDate();return t.setDate(n>r?r:n),t},_focusTarget:function(){return this.$element()},_initMarkup:function(){this._renderSubmitElement(),this.callBase();var e=this.$element();e.addClass(_C),this._renderBody(),e.append(this.$body),this._renderViews(),this._renderNavigator(),e.append(this._navigator.$element()),this._renderSwipeable(),this._renderFooter(),this._updateAriaSelected(),this._updateAriaId(),this._moveToClosestAvailableDate()},_render:function(){this.callBase(),this._setViewContoured(this.option("currentDate"))},_renderBody:function(){this._$viewsWrapper||(this.$body=(0,o.Z)("
").addClass(vC),this._$viewsWrapper=(0,o.Z)("
").addClass(wC),this.$body.append(this._$viewsWrapper))},_getKeyboardListeners(){return this.callBase().concat([this._view])},_renderViews:function(){this.$element().addClass(TC+"-"+this.option("zoomLevel"));var e=this.option("currentDate");if(this._view=this._renderSpecificView(e),(0,s.Ym)()){var t=this._getDateByOffset(-1,e);this._beforeView=this._isViewAvailable(t)?this._renderSpecificView(t):null;var i=this._getDateByOffset(1,e);i.setDate(1),this._afterView=this._isViewAvailable(i)?this._renderSpecificView(i):null}this._translateViews()},_renderSpecificView:function(e){var t=mC[this.option("zoomLevel")],i=(0,o.Z)("
").appendTo(this._$viewsWrapper),n=this._viewConfig(e);return this._createComponent(i,t,n)},_viewConfig:function(e){var t,i=this.option("disabledDates");return i=(0,l.mf)(i)?this._injectComponent(i.bind(this)):i,{date:e,min:this._getMinDate(),max:this._getMaxDate(),firstDayOfWeek:null!==(t=this.option("firstDayOfWeek"))&&void 0!==t?t:gy.Z.firstDayOfWeekIndex(),showWeekNumbers:this.option("showWeekNumbers"),weekNumberRule:this.option("weekNumberRule"),zoomLevel:this.option("zoomLevel"),value:this._dateOption("value"),tabIndex:void 0,focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),disabledDates:i,onCellClick:this._cellClickHandler.bind(this),cellTemplate:this._getTemplateByOption("cellTemplate"),allowValueSelection:this._isMaxZoomLevel(),_todayDate:this.option("_todayDate")}},_injectComponent:function(e){var t=this;return function(i){return(0,a.l)(i,{component:t}),e(i)}},_isViewAvailable:function(e){var t=this.option("zoomLevel"),i=_y.Z.getViewMinBoundaryDate(t,this._getMinDate()),n=_y.Z.getViewMaxBoundaryDate(t,this._getMaxDate());return _y.Z.dateInRange(e,i,n)},_translateViews:function(){ve(this._view.$element(),{left:0,top:0}),this._beforeView&&ve(this._beforeView.$element(),{left:this._getViewPosition(-1),top:0}),this._afterView&&ve(this._afterView.$element(),{left:this._getViewPosition(1),top:0})},_getViewPosition:function(e){var t=this.option("rtlEnabled")?-1:1;return 100*e*t+"%"},_cellClickHandler:function(e){var t=this.option("zoomLevel"),i=_y.Z.getViewDown(t),n=this._isMaxZoomLevel();if(i&&!n)this._navigateDown(e.event.currentTarget);else{var o=this._updateTimeComponent(e.value);this._dateValue(o,e.event),this._cellClickAction(e)}},_updateTimeComponent:function(e){var t=new Date(e),i=this._dateOption("value");return i&&(t.setHours(i.getHours()),t.setMinutes(i.getMinutes()),t.setSeconds(i.getSeconds()),t.setMilliseconds(i.getMilliseconds())),t},_isMaxZoomLevel:function(){return this.option("zoomLevel")===this.option("maxZoomLevel")},_navigateDown:function(e){var t=this.option("zoomLevel");if(!this._isMaxZoomLevel()){var i=_y.Z.getViewDown(t);if(i){var n=this._view.option("contouredDate")||this._view.option("date");e&&(n=(0,o.Z)(e).data(OC)),this._isOtherViewCellClicked=!0,this.option("currentDate",n),this.option("zoomLevel",i),this._isOtherViewCellClicked=!1,this._renderNavigator(),this._animateShowView(),this._moveToClosestAvailableDate(),this._setViewContoured(this._getNormalizedDate(this.option("currentDate")))}}},_renderNavigator:function(){this._navigator||(this._navigator=new Qy((0,o.Z)("
"),this._navigatorConfig())),this._navigator.option("text",this._view.getNavigatorCaption()),this._updateButtonsVisibility()},_navigatorConfig:function(){return{text:this._view.getNavigatorCaption(),onClick:this._navigatorClickHandler.bind(this),onCaptionClick:this._navigateUp.bind(this),rtlEnabled:this.option("rtlEnabled")}},_navigatorClickHandler:function(e){var t=this._getDateByOffset(e.direction,this.option("currentDate"));this._moveToClosestAvailableDate(t)},_navigateUp:function(){var e=this.option("zoomLevel"),t=_y.Z.getViewUp(e);t&&!this._isMinZoomLevel(e)&&(this.option("zoomLevel",t),this._renderNavigator(),this._animateShowView(),this._moveToClosestAvailableDate(),this._setViewContoured(this._getNormalizedDate(this.option("currentDate"))))},_isMinZoomLevel:function(e){var t=this._getMinDate(),i=this._getMaxDate();return _y.Z.sameView(e,t,i)||this.option("minZoomLevel")===e},_updateButtonsVisibility:function(){this._navigator.toggleButton("next",!(0,l.$K)(this._getRequiredView("next"))),this._navigator.toggleButton("prev",!(0,l.$K)(this._getRequiredView("prev")))},_renderSwipeable:function(){this._swipeable||(this._swipeable=this._createComponent(this.$element(),uh,{onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._viewWidth.bind(this)}))},_swipeStartHandler:function(e){Ut.stop(this._$viewsWrapper,!0),e.event.maxLeftOffset=this._getRequiredView("next")?1:0,e.event.maxRightOffset=this._getRequiredView("prev")?1:0},_getRequiredView:function(e){var t,i=this.option("rtlEnabled");return"next"===e?t=i?this._beforeView:this._afterView:"prev"===e&&(t=i?this._afterView:this._beforeView),t},_swipeUpdateHandler:function(e){var t=e.event.offset;ve(this._$viewsWrapper,{left:t*this._viewWidth(),top:0}),this._updateNavigatorCaption(t)},_swipeEndHandler:function(e){var t=e.event.targetOffset,i=t?t/Math.abs(t):0;if(0!==i){var n=this._getDateByOffset(-i*this._getRtlCorrection());this._isDateInInvalidRange(n)&&(n=i>=0?new Date(this._getMinDate()):new Date(this._getMaxDate())),this.option("currentDate",n)}else this._animateWrapper(0,IC)},_viewWidth:function(){return this._viewWidthValue||(this._viewWidthValue=(0,n.dz)(this.$element())),this._viewWidthValue},_updateNavigatorCaption:function(e){e*=this._getRtlCorrection();var t=this._view;e>.5&&this._beforeView?t=this._beforeView:e<-.5&&this._afterView&&(t=this._afterView),this._navigator.option("text",t.getNavigatorCaption())},_isDateInInvalidRange:function(e){if(!this._view.isBoundary(e)){var t=this._getMinDate(),i=this._getMaxDate(),n=_y.Z.normalizeDate(e,t,i);return n===t||n===i}},_renderFooter:function(){var e=this.option("showTodayButton");if(e){var t=this._createComponent((0,o.Z)(""),cd,{focusStateEnabled:!1,text:y.Z.format("dxCalendar-todayButtonText"),onClick:function(e){this._toTodayView(e)}.bind(this),integrationOptions:{}}).$element().addClass(bC);this._$footer=(0,o.Z)("
").addClass(CC).append(t),this.$element().append(this._$footer)}this.$element().toggleClass(xC,e)},_renderSubmitElement:function(){this._$submitElement=(0,o.Z)("").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(e){var t=this._convertToDate(e);this._getSubmitElement().val(vy.Z.serializeDate(t,kC))},_getSubmitElement:function(){return this._$submitElement},_animateShowView:function(){return Ut.stop(this._view.$element(),!0),this._popAnimationView(this._view,EC,DC,IC).promise()},_popAnimationView:function(e,t,i,n){return Ut.animate(e.$element(),{type:"pop",from:{scale:t,opacity:t},to:{scale:i,opacity:i},duration:n})},_navigate:function(e,t){if(0!==e&&1!==Math.abs(e)&&this._isViewAvailable(t)){var i=this._renderSpecificView(t);e>0?(this._afterView&&this._afterView.$element().remove(),this._afterView=i):(this._beforeView&&this._beforeView.$element().remove(),this._beforeView=i),this._translateViews()}var n=this._getRtlCorrection(),o=e>0?1:e<0?-1:0,r=-n*o*this._viewWidth(),a=this._$viewsWrapper.position().left;a!==r&&(this._preventViewChangeAnimation?this._wrapperAnimationEndHandler(e,t):this._animateWrapper(r,IC).done(this._wrapperAnimationEndHandler.bind(this,e,t)))},_animateWrapper:function(e,t){return Ut.animate(this._$viewsWrapper,{type:"slide",from:{left:this._$viewsWrapper.position().left},to:{left:e},duration:t})},_getDate:e=>new Date(e),_toTodayView:function(e){this._saveValueChangeEvent(e.event);var t=new Date;this._isMaxZoomLevel()?this._dateOption("value",t):(this._preventViewChangeAnimation=!0,this.option("zoomLevel",this.option("maxZoomLevel")),this._dateOption("value",t),this._animateShowView(),this._preventViewChangeAnimation=!1)},_wrapperAnimationEndHandler:function(e,t){this._rearrangeViews(e),this._translateViews(),this._resetLocation(),this._renderNavigator(),this._setViewContoured(t),this._updateAriaId(t)},_rearrangeViews:function(e){var t,i,n;if(0!==e&&(e<0?(t=1,i="_beforeView",n="_afterView"):(t=-1,i="_afterView",n="_beforeView"),this[i])){var o=this[i].option("date");this[n]&&this[n].$element().remove(),e===t?this[n]=this._view:(this[n]=this._renderSpecificView(this._getDateByOffset(t,o)),this._view.$element().remove()),this._view=this[i];var r=this._getDateByOffset(-t,o);this[i]=this._isViewAvailable(r)?this._renderSpecificView(r):null}},_resetLocation:function(){ve(this._$viewsWrapper,{left:0,top:0})},_clean:function(){this.callBase(),this._clearViewWidthCache(),delete this._$viewsWrapper,delete this._navigator,delete this._$footer},_clearViewWidthCache:function(){delete this._viewWidthValue},_disposeViews:function(){this._view.$element().remove(),this._beforeView&&this._beforeView.$element().remove(),this._afterView&&this._afterView.$element().remove(),delete this._view,delete this._beforeView,delete this._afterView},_dispose:function(){clearTimeout(this._waitRenderViewTimeout),this.callBase()},_refreshViews:function(){this._disposeViews(),this._renderViews()},_visibilityChanged:function(){this._translateViews()},_focusInHandler:function(){this.callBase.apply(this,arguments),this._view.option("contouredDate",this.option("currentDate"))},_focusOutHandler:function(){this.callBase.apply(this,arguments),this._view.option("contouredDate",null)},_updateViewsValue:function(e){var t=e?new Date(e):null;this._view.option("value",t),this._beforeView&&this._beforeView.option("value",t),this._afterView&&this._afterView.option("value",t)},_updateAriaSelected:function(e,t){var i;e=null!==(i=e)&&void 0!==i?i:this._dateOption("value");var n=this._view._getCellByDate(t),o=this._view._getCellByDate(e);this.setAria("selected",void 0,n),this.setAria("selected",!0,o),e&&this.option("currentDate").getTime()===e.getTime()&&this._updateAriaId(e)},_updateAriaId:function(e){var t;e=null!==(t=e)&&void 0!==t?t:this.option("currentDate");var i="dx-"+new Li.Z,n=this._view._getCellByDate(e);this.setAria("id",i,n),this.setAria("activedescendant",i),this._onContouredChanged(i)},_suppressingNavigation:function(e,t){this._suppressNavigation=!0,e.apply(this,t),delete this._suppressNavigation},_optionChanged:function(e){var t=e.value,i=e.previousValue;switch(e.name){case"width":this.callBase(e),this._clearViewWidthCache();break;case"min":case"max":this.min=void 0,this.max=void 0,this._suppressingNavigation(this._updateCurrentDate,[this.option("currentDate")]),this._refreshViews(),this._renderNavigator();break;case"firstDayOfWeek":this._refreshViews(),this._updateButtonsVisibility();break;case"currentDate":this.setAria("id",void 0,this._view._getCellByDate(i)),this._updateCurrentDate(t);break;case"zoomLevel":this.$element().removeClass(TC+"-"+i),this._correctZoomLevel(),this._refreshViews(),this._renderNavigator(),this._updateAriaId();break;case"minZoomLevel":case"maxZoomLevel":this._correctZoomLevel(),this._updateButtonsVisibility();break;case"value":t=this._convertToDate(t),i=this._convertToDate(i),this._updateAriaSelected(t,i),this.option("currentDate",(0,l.$K)(t)?new Date(t):new Date),this._updateViewsValue(t),this._setSubmitValue(t),this.callBase(e);break;case"onCellClick":this._view.option("onCellClick",t);break;case"onContouredChanged":this._onContouredChanged=this._createActionByOption("onContouredChanged");break;case"disabledDates":case"dateSerializationFormat":case"cellTemplate":case"showTodayButton":this._invalidate();break;case"skipFocusCheck":break;case"_todayDate":case"showWeekNumbers":case"weekNumberRule":this._refreshViews();break;default:this.callBase(e)}},getContouredDate:function(){return this._view.option("contouredDate")}});(0,C.Z)("dxCalendar",RC);var BC=RC,VC=BC,FC=P.Z.abstract,HC=P.Z.inherit({ctor:function(e){this.dateBox=e},widgetOption:function(){return this._widget&&this._widget.option.apply(this._widget,arguments)},_renderWidget:function(e){e=e||(0,o.Z)("
"),this._widget=this._createWidget(e),this._widget.$element().appendTo(this._getWidgetContainer())},_createWidget:function(e){var t=this._getWidgetName(),i=this._getWidgetOptions();return this.dateBox._createComponent(e,t,i)},_getWidgetOptions:FC,_getWidgetName:FC,getDefaultOptions:function(){return{mode:"text"}},getDisplayFormat:FC,supportedKeys:v.ZT,getKeyboardListener:v.ZT,customizeButtons:v.ZT,getParsedText:function(e,t){var i=gy.Z.parse(e,t);return i||gy.Z.parse(e)},renderInputMinMax:v.ZT,renderOpenedState:function(){this._updateValue()},popupConfig:FC,_dimensionChanged:function(){var e;null===(e=this._getPopup())||void 0===e||e.repaint()},renderPopupContent:function(){var e=this._getPopup();this._renderWidget();var t=e.$content().parent();re.Z.off(t,"mousedown"),re.Z.on(t,"mousedown",this._preventFocusOnPopup.bind(this))},getFirstPopupElement:v.ZT,getLastPopupElement:v.ZT,_preventFocusOnPopup:function(e){e.preventDefault()},_getWidgetContainer:function(){return this._getPopup().$content()},_getPopup:function(){return this.dateBox._popup},popupShowingHandler:v.ZT,popupHiddenHandler:v.ZT,_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},useCurrentDateByDefault:v.ZT,getDefaultDate:function(){return new Date},textChangedHandler:v.ZT,renderValue:function(){this.dateBox.option("opened")&&this._updateValue()},getValue:function(){return this._widget.option("value")},isAdaptivityChanged:function(){return!1},dispose:function(){var e=this._getPopup();e&&e.$content().empty()},dateBoxValue:function(){return arguments.length?this.dateBox.dateValue.apply(this.dateBox,arguments):this.dateBox.dateOption.apply(this.dateBox,["value"])}}),LC=HC,NC=LC.inherit({NAME:"Calendar",getDefaultOptions:function(){return(0,a.l)(this.callBase(),{todayButtonText:y.Z.format("dxCalendar-todayButtonText")})},supportedKeys:function(){var e=function(e){return!!this.option("opened")&&(e.preventDefault(),!0)};return{rightArrow:function(){if(this.option("opened"))return!0},leftArrow:function(){if(this.option("opened"))return!0},enter:function(e){if(this.dateBox.option("opened")){if(e.preventDefault(),this._widget.option("zoomLevel")===this._widget.option("maxZoomLevel")){var t=this._getContouredValue(),i=this._lastActionElement,n=this._closeDropDownByEnter();return n&&t&&"calendar"===i&&this.dateBoxValue(t,e),n&&this.dateBox.close(),this.dateBox._valueChangeEventHandler(e),!n}return!0}this.dateBox._valueChangeEventHandler(e)}.bind(this),home:e,end:e}},getDisplayFormat:function(e){return e||"shortdate"},_closeDropDownByEnter:()=>!0,_getWidgetName:function(){return VC},_getContouredValue:function(){return this._widget._view.option("contouredDate")},getKeyboardListener(){return this._widget},_getWidgetOptions:function(){var e=this.dateBox.option("disabledDates");return(0,a.l)(this.dateBox.option("calendarOptions"),{value:this.dateBoxValue()||null,dateSerializationFormat:null,min:this.dateBox.dateOption("min"),max:this.dateBox.dateOption("max"),onValueChanged:this._valueChangedHandler.bind(this),onCellClick:this._cellClickHandler.bind(this),tabIndex:null,disabledDates:(0,l.mf)(e)?this._injectComponent(e.bind(this.dateBox)):e,onContouredChanged:this._refreshActiveDescendant.bind(this),skipFocusCheck:!0})},_injectComponent:function(e){var t=this;return function(i){return(0,a.l)(i,{component:t.dateBox}),e(i)}},_refreshActiveDescendant:function(e){this._lastActionElement="calendar",this.dateBox.setAria("activedescendant",e.actionValue)},_getTodayButtonConfig(){var e=this.dateBox.option("buttonsLocation"),t="default"===e,i=t?["bottom","center"]:(0,v.Um)(e);return{widget:"dxButton",toolbar:i[0],location:"after"===i[1]?"before":i[1],options:{onInitialized:function(e){e.component.registerKeyHandler("escape",this._escapeHandler.bind(this))}.bind(this),onClick:e=>{this._widget._toTodayView(e)},text:this.dateBox.option("todayButtonText"),type:"today"}}},_isCalendarVisible:function(){var{calendarOptions:e}=this.dateBox.option();return(0,l.Qr)(e)||!1!==e.visible},_getPopupToolbarItems(e){var t="useButtons"===this.dateBox.option("applyValueMode"),i=t&&this._isCalendarVisible();if(i){var n=this._getTodayButtonConfig();return[n,...e]}return e},popupConfig:function(e){return(0,a.l)(!0,e,{position:{collision:"flipfit flip"},width:"auto"})},_escapeHandler:function(){this.dateBox.close(),this.dateBox.focus()},_valueChangedHandler:function(e){var t=e.value,i=e.previousValue;_y.Z.sameDate(t,i)&&_y.Z.sameHoursAndMinutes(t,i)||"instantly"===this.dateBox.option("applyValueMode")&&this.dateBoxValue(this.getValue(),e.event)},_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},textChangedHandler:function(){this._lastActionElement="input",this.dateBox.option("opened")&&this._widget&&this._updateValue(!0)},_cellClickHandler:function(e){var t=this.dateBox;"instantly"===t.option("applyValueMode")&&(t.option("opened",!1),this.dateBoxValue(this.getValue(),e.event))}}),ZC=NC;function $C(e,t){if((0,l.PO)(e)){var i=(0,v.IS)(e.left,e.x),n=(0,v.IS)(e.top,e.y);return{left:(0,l.$K)(i)?i:void 0,top:(0,l.$K)(n)?n:void 0}}var{isHorizontal:o,isVertical:r}=new Kp(t);return{left:o&&(0,l.$K)(e)?e:void 0,top:r&&(0,l.$K)(e)?e:void 0}}var WC="dx-dateviewroller",KC="dx-state-active",zC="dx-dateviewroller-current",jC="dx-dateview-item",UC="dx-dateview-item-selected",GC="dx-dateview-item-selected-frame",qC="dx-dateview-item-selected-border";class YC extends Zp{_getDefaultOptions(){return(0,a.l)(super._getDefaultOptions(),{showScrollbar:"never",useNative:!1,selectedIndex:0,bounceEnabled:!1,items:[],showOnClick:!1,onClick:null,onSelectedIndexChanged:null,scrollByContent:!0})}_init(){super._init(),this.option("onVisibilityChange",this._visibilityChangedHandler.bind(this)),this.option("onEnd",this._endActionHandler.bind(this))}_render(){super._render(),this._renderSelectedItemFrame(),this.$element().addClass(WC),this._renderContainerClick(),this._renderItems(),this._renderSelectedValue(),this._renderItemsClick(),this._renderWheelEvent(),this._renderSelectedIndexChanged()}_renderSelectedIndexChanged(){this._selectedIndexChanged=this._createActionByOption("onSelectedIndexChanged")}_renderWheelEvent(){re.Z.on((0,o.Z)(this.container()),"dxmousewheel",(e=>{this._isWheelScrolled=!0}))}_renderContainerClick(){if(this.option("showOnClick")){var e=(0,R.V4)(A.u,this.NAME),t=this._createActionByOption("onClick");re.Z.off((0,o.Z)(this.container()),e),re.Z.on((0,o.Z)(this.container()),e,(function(e){t({event:e})}))}}_renderItems(){var e=this.option("items")||[],t=(0,o.Z)();(0,o.Z)(this.content()).empty(),e.forEach((function(e){t=t.add((0,o.Z)("
").addClass(jC).append(e))})),(0,o.Z)(this.content()).append(t),this._$items=t,this.update()}_renderSelectedItemFrame(){(0,o.Z)("
").addClass(GC).append((0,o.Z)("
").addClass(qC)).appendTo((0,o.Z)(this.container()))}_renderSelectedValue(e){var t=this._fitIndex(null!==e&&void 0!==e?e:this.option("selectedIndex"));this._moveTo({top:this._getItemPosition(t)}),this._renderActiveStateItem()}_fitIndex(e){var t=this.option("items")||[],i=t.length;return e>=i?i-1:e<0?0:e}_getItemPosition(e){return Math.round(this._itemHeight()*e)}_renderItemsClick(){var e=this._getItemSelector(),t=(0,R.V4)(A.u,this.NAME);re.Z.off(this.$element(),t,e),re.Z.on(this.$element(),t,e,this._itemClickHandler.bind(this))}_getItemSelector(){return"."+jC}_itemClickHandler(e){this.option("selectedIndex",this._itemElementIndex(e.currentTarget))}_itemElementIndex(e){return this._itemElements().index(e)}_itemElements(){return this.$element().find(this._getItemSelector())}_renderActiveStateItem(){var e=this.option("selectedIndex");(0,E.S6)(this._$items,(function(t){(0,o.Z)(this).toggleClass(UC,e===t)}))}_shouldScrollToNeighborItem(){return"desktop"===w.Z.real().deviceType&&this._isWheelScrolled}_moveTo(e){var{top:t,left:i}=$C(e),n=this.scrollOffset(),r={x:n.left-i,y:n.top-t};if(this._isVisible()&&(r.x||r.y))if(this._prepareDirections(!0),this._animation&&!this._shouldScrollToNeighborItem()){var a=this;Ut.stop((0,o.Z)(this.content())),Ut.animate((0,o.Z)(this.content()),{duration:200,type:"slide",to:{top:Math.floor(r.y)},complete(){ye((0,o.Z)(a.content())),a.handleMove({delta:r})}}),delete this._animation}else this.handleMove({delta:r})}_validate(e){return this._moveIsAllowed(e)}_fitSelectedIndexInRange(e){var t=this.option("items").length;return Math.max(Math.min(e,t-1),0)}_isInNullNeighborhood(e){return-.1<=e&&e<=.1}_getSelectedIndexAfterScroll(e){var t=this.scrollOffset().top,i=e*this._itemHeight(),n=t-i;if(this._isInNullNeighborhood(n))return e;var o=n>0?1:-1,r=this._fitSelectedIndexInRange(e+o);return r}_getNewSelectedIndex(e){if(this._shouldScrollToNeighborItem())return this._getSelectedIndexAfterScroll(e);this._animation=!0;var t=this.scrollOffset().top/this._itemHeight();return Math.round(t)}_endActionHandler(){var e=this.option("selectedIndex"),t=this._getNewSelectedIndex(e);t===e?this._renderSelectedValue(t):this.option("selectedIndex",t),this._isWheelScrolled=!1}_itemHeight(){var e=this._$items.first();return(0,n.Cr)(e)}_toggleActive(e){this.$element().toggleClass(KC,e)}_isVisible(){return(0,o.Z)(this.container()).is(":visible")}_fireSelectedIndexChanged(e,t){this._selectedIndexChanged({value:e,previousValue:t,event:void 0})}_visibilityChanged(e){super._visibilityChanged(e),this._visibilityChangedHandler(e)}_visibilityChangedHandler(e){e&&(this._visibilityTimer=setTimeout((()=>{this._renderSelectedValue(this.option("selectedIndex"))}))),this.toggleActiveState(!1)}toggleActiveState(e){this.$element().toggleClass(zC,e)}_refreshSelectedIndex(){var e=this.option("selectedIndex"),t=this._fitIndex(e);t===e?this._renderActiveStateItem():this.option("selectedIndex",t)}_optionChanged(e){switch(e.name){case"selectedIndex":this._fireSelectedIndexChanged(e.value,e.previousValue),this._renderSelectedValue(e.value);break;case"items":this._renderItems(),this._refreshSelectedIndex();break;case"onClick":case"showOnClick":this._renderContainerClick();break;case"onSelectedIndexChanged":this._renderSelectedIndexChanged();break;default:super._optionChanged(e)}}_dispose(){clearTimeout(this._visibilityTimer),super._dispose()}}(0,C.Z)("dxDateViewRoller",YC);var XC=YC,JC="dx-dateview",QC="dx-dateview-compact",eb="dx-dateview-wrapper",tb="dx-dateview-rollers",ib="dx-dateviewroller",nb={date:"date",datetime:"datetime",time:"time"},ob={year:"year",month:"month",day:"day",hours:"hours"},rb=zc.inherit({_valueOption:function(){var e=this.option("value"),t=new Date(e);return!e||isNaN(t)?this._getDefaultDate():t},_getDefaultDate:function(){var e=new Date;return this.option("type")===nb.date?new Date(e.getFullYear(),e.getMonth(),e.getDate()):e},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{minDate:Iy.MIN_DATEVIEW_DEFAULT_DATE,maxDate:Iy.MAX_DATEVIEW_DEFAULT_DATE,type:nb.date,value:new Date,applyCompactClass:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"desktop"!==e.deviceType},options:{applyCompactClass:!0}}])},_render:function(){this.callBase(),this.$element().addClass(JC),this._toggleFormatClasses(this.option("type")),this._toggleCompactClass()},_toggleFormatClasses:function(e,t){this.$element().addClass(JC+"-"+e),t&&this.$element().removeClass(JC+"-"+t)},_toggleCompactClass:function(){this.$element().toggleClass(QC,this.option("applyCompactClass"))},_wrapper:function(){return this._$wrapper},_renderContentImpl:function(){this._$wrapper=(0,o.Z)("
").addClass(eb),this._renderRollers(),this._$wrapper.appendTo(this.$element())},_renderRollers:function(){this._$rollersContainer||(this._$rollersContainer=(0,o.Z)("
").addClass(tb)),this._$rollersContainer.empty(),this._createRollerConfigs(),this._rollers={};var e=this;(0,E.S6)(e._rollerConfigs,(function(t){var i=(0,o.Z)("
").appendTo(e._$rollersContainer).addClass(ib+"-"+e._rollerConfigs[t].type);e._rollers[e._rollerConfigs[t].type]=e._createComponent(i,XC,{items:e._rollerConfigs[t].displayItems,selectedIndex:e._rollerConfigs[t].selectedIndex,showScrollbar:"never",scrollByContent:!0,onStart:function(i){var n=i.component;n._toggleActive(!0),e._setActiveRoller(e._rollerConfigs[t],n.option("selectedIndex"))},onEnd:function(e){var t=e.component;t._toggleActive(!1)},onClick:function(i){var n=i.component;n._toggleActive(!0),e._setActiveRoller(e._rollerConfigs[t],n.option("selectedIndex")),e._setRollerState(e._rollerConfigs[t],n.option("selectedIndex")),n._toggleActive(!1)},onSelectedIndexChanged:function(i){var n=i.component;e._setRollerState(e._rollerConfigs[t],n.option("selectedIndex"))}})})),e._$rollersContainer.appendTo(e._wrapper())},_createRollerConfigs:function(e){var t=this;e=e||t.option("type"),t._rollerConfigs={},gy.Z.getFormatParts(Iy.FORMATS_MAP[e]).forEach((function(e){t._createRollerConfig(e)}))},_createRollerConfig:function(e){for(var t=Iy.DATE_COMPONENTS_INFO[e],i=this._calculateRollerConfigValueRange(e),n=i.startValue,o=i.endValue,r=t.formatter,a=this._getCurrentDate(),s={type:e,setValue:t.setter,valueItems:[],displayItems:[],getIndex:function(e){return e[t.getter]()-n}},l=n;l<=o;l++)s.valueItems.push(l),s.displayItems.push(r(l,a));s.selectedIndex=s.getIndex(a),this._rollerConfigs[e]=s},_setActiveRoller:function(e){var t=e&&this._rollers[e.type];(0,E.S6)(this._rollers,(function(){this.toggleActiveState(this===t)}))},_updateRollersPosition:function(){var e=this;(0,E.S6)(this._rollers,(function(t){var i=e._rollerConfigs[t].getIndex(e._getCurrentDate());this.option("selectedIndex",i)}))},_setRollerState:function(e,t){if(t!==e.selectedIndex){var i=e.valueItems[t],n=e.setValue,o=new Date(this._getCurrentDate()),r=o.getDate(),a=this.option("minDate"),s=this.option("maxDate");e.type===ob.month?r=Math.min(r,Iy.getMaxMonthDay(o.getFullYear(),i)):e.type===ob.year&&(r=Math.min(r,Iy.getMaxMonthDay(i,o.getMonth()))),o.setDate(r),o[n](i);var l=_y.Z.normalizeDate(o,a,s);o=Iy.mergeDates(l,o,"time"),o=_y.Z.normalizeDate(o,a,s),this.option("value",o),e.selectedIndex=t}e.type===ob.year&&this._refreshRollers(),e.type===ob.month&&(this._refreshRoller(ob.day),this._refreshRoller(ob.hours))},_refreshRoller:function(e){var t=this._rollers[e];if(t){this._createRollerConfig(e);var i=this._rollerConfigs[e];e!==ob.day&&i.displayItems.toString()===t.option("items").toString()||t.option({items:i.displayItems,selectedIndex:i.selectedIndex})}},_getCurrentDate:function(){var e=this._valueOption(),t=this.option("minDate"),i=this.option("maxDate");return _y.Z.normalizeDate(e,t,i)},_calculateRollerConfigValueRange:function(e){var t=this._getCurrentDate(),i=this.option("minDate"),n=this.option("maxDate"),o=_y.Z.sameYear(t,i),r=o&&t.getMonth()===i.getMonth(),a=_y.Z.sameYear(t,n),s=a&&t.getMonth()===n.getMonth(),l=r&&t.getDate()===i.getDate(),d=s&&t.getDate()===n.getDate(),u=Iy.DATE_COMPONENTS_INFO[e],c=u.startValue,h=u.endValue;return e===ob.year&&(c=i.getFullYear(),h=n.getFullYear()),e===ob.month&&(o&&(c=i.getMonth()),a&&(h=n.getMonth())),e===ob.day&&(h=Iy.getMaxMonthDay(t.getFullYear(),t.getMonth()),o&&r&&(c=i.getDate()),a&&s&&(h=n.getDate())),e===ob.hours&&(c=l?i.getHours():c,h=d?n.getHours():h),{startValue:c,endValue:h}},_refreshRollers:function(){this._refreshRoller(ob.month),this._refreshRoller(ob.day),this._refreshRoller(ob.hours)},_optionChanged:function(e){switch(e.name){case"minDate":case"maxDate":case"type":this._renderRollers(),this._toggleFormatClasses(e.value,e.previousValue);break;case"visible":this.callBase(e),e.value&&this._renderRollers();break;case"value":this.option("value",this._valueOption()),this._refreshRollers(),this._updateRollersPosition();break;default:this.callBase(e)}},_clean:function(){this.callBase(),delete this._$rollersContainer}});(0,C.Z)("dxDateView",rb);var ab=rb,sb=(0,s.Jj)(),lb=LC.inherit({NAME:"DateView",getDefaultOptions:function(){return(0,a.l)(this.callBase(),{openOnFieldClick:!0,applyButtonText:y.Z.format("OK"),"dropDownOptions.showTitle":!0})},getDisplayFormat:function(e){return e||Iy.FORMATS_MAP[this.dateBox.option("type")]},popupConfig:function(e){return{toolbarItems:this.dateBox._popupToolbarItemsConfig(),onInitialized:e.onInitialized,defaultOptionsRules:[{device:{platform:"android"},options:{width:333,height:331}},{device:function(e){var t=e.platform;return"generic"===t||"ios"===t},options:{width:"auto",height:"auto"}},{device:function(e){var t=e.platform,i=e.phone;return"generic"===t&&i},options:{width:333,maxWidth:"100%",maxHeight:"100%",height:"auto",position:{collision:"flipfit flip"}}},{device:{platform:"ios",phone:!0},options:{width:"100%",position:{my:"bottom",at:"bottom",of:sb}}}]}},_renderWidget:function(){if((0,b.inputType)(this.dateBox.option("mode"))&&this.dateBox._isNativeType()||this.dateBox.option("readOnly"))this._widget&&(this._widget.$element().remove(),this._widget=null);else{var e=this._getPopup();if(this._widget)this._widget.option(this._getWidgetOptions());else{var t=(0,o.Z)("
").appendTo(e.$content());this._widget=this._createWidget(t)}this._widget.$element().appendTo(this._getWidgetContainer())}},_getWidgetName:function(){return ab},renderOpenedState:function(){this.callBase(),this._widget&&this._widget.option("value",this._widget._getCurrentDate())},_getWidgetOptions:function(){return{value:this.dateBoxValue()||new Date,type:this.dateBox.option("type"),minDate:this.dateBox.dateOption("min")||new Date(1900,0,1),maxDate:this.dateBox.dateOption("max")||new Date(Date.now()+50*Iy.ONE_YEAR),onDisposing:function(){this._widget=null}.bind(this)}}}),db=lb,ub=LC.inherit({NAME:"Native",popupConfig:function(e){return(0,a.l)({},e,{width:"auto"})},getParsedText:function(e){return e?"datetime"===this.dateBox.option("type")?new Date(e.replace(/-/g,"/").replace("T"," ").split(".")[0]):Iy.fromStandardDateFormat(e):null},renderPopupContent:v.ZT,_getWidgetName:v.ZT,_getWidgetOptions:v.ZT,_getDateBoxType:function(){var e=this.dateBox.option("type");return Iy.SUPPORTED_FORMATS.includes(e)?"datetime"!==e||(0,b.inputType)(e)||(e="datetime-local"):e="date",e},customizeButtons:function(){var e=this.dateBox.getButton("dropDown");w.Z.real().android&&e&&e.on("click",function(){this.dateBox._input().get(0).click()}.bind(this))},getDefaultOptions:function(){return{mode:this._getDateBoxType()}},getDisplayFormat:function(e){var t=this._getDateBoxType();return e||Iy.FORMATS_MAP[t]},renderInputMinMax:function(e){e.attr({min:vy.Z.serializeDate(this.dateBox.dateOption("min"),"yyyy-MM-dd"),max:vy.Z.serializeDate(this.dateBox.dateOption("max"),"yyyy-MM-dd")})}}),cb=ub,hb=i(53518),pb="dx-list-item",fb="dx-list-group",gb=20,mb=(1<>gb,item:e&mb}},yb=uu.inherit({_groupElements:function(){return this._collectionWidget._itemContainer().find("."+fb)},_groupItemElements:function(e){return e.find("."+pb)},getIndexByItemData:function(e){var t=this._collectionWidget.option("items"),i=!1;return!!e&&(e.items&&e.items.length&&(e=e.items[0]),(0,E.S6)(t,(function(t,n){return!!n.items&&((0,E.S6)(n.items,(function(n,o){return o!==e||(i={group:t,item:n},!1)})),!i&&void 0)})),i)},getItemDataByIndex:function(e){var t=this._collectionWidget.option("items");return(0,l.kE)(e)?this.itemsGetter()[e]:e&&t[e.group]&&t[e.group].items[e.item]||null},itemsGetter:function(){for(var e=[],t=this._collectionWidget.option("items"),i=0;i{var t=this.getIndexByKey(e,n),i=t&&n[t.group];if(i)return{groupKey:i.key,item:i.items[t.item]}};return(0,E.S6)(e,(function(e,t){var n=r(t);if(n){var a=n.groupKey,s=n.item,l=o[a];l||(l={key:a,items:[]},o[a]=l,i.push(l)),l.items.push(s)}})),i},moveItemAtIndexToIndex:function(e,t){var i=this._collectionWidget.option("items"),n=vb(e),o=vb(t),r=i[n.group].items,a=i[o.group].items,s=r[n.item];r.splice(n.item,1),a.splice(o.item,0,s)},_isItemIndex:function(e){return e&&(0,l.kE)(e.group)&&(0,l.kE)(e.item)},_getNormalizedItemIndex:function(e){var t=(0,o.Z)(e),i=t.closest("."+fb);return i.length?_b({group:this._groupElements().index(i),item:this._groupItemElements(i).index(t)}):-1},_normalizeItemIndex:function(e){return _b(e)},_denormalizeItemIndex:function(e){return vb(e)},_getItemByNormalizedIndex:function(e){var t=vb(e),i=this._groupElements().eq(t.group);return this._groupItemElements(i).eq(t.item)},_itemsFromSameParent:function(e,t){return vb(e).group===vb(t).group}}),Cb=yb,bb={};function xb(e,t,i){var n=bb,o={};o[e]=n[e]?n[e]:{},o[e][t]=i,(0,a.l)(n,o)}var wb=[],Tb=function(e,t,i){wb.push({enabled:e,decoratorType:t,decoratorSubType:i})};Tb((function(){return this.option("menuItems").length}),(function(){return"menu"}),(function(){return this.option("menuMode")})),Tb((function(){return!this.option("menuItems").length&&this.option("allowItemDeleting")}),(function(){var e=this.option("itemDeleteMode");return"toggle"===e||"slideButton"===e||"swipe"===e||"static"===e?"delete":"menu"}),(function(){var e=this.option("itemDeleteMode");return"slideItem"===e&&(e="slide"),e})),Tb((function(){return"none"!==this.option("selectionMode")&&this.option("showSelectionControls")}),(function(){return"selection"}),(function(){return"default"})),Tb((function(){return this.option("itemDragging.allowReordering")||this.option("itemDragging.allowDropInsideItem")||this.option("itemDragging.group")}),(function(){return"reorder"}),(function(){return"default"}));var Sb="dx-list-item-before-bag",Ib="dx-list-item-after-bag",Eb="beforeBag",Db="afterBag",kb="modifyElement",Ob="afterRender",Ab="getExcludedSelectors",Pb=P.Z.inherit({ctor:function(e){this._list=e,this._fetchRequiredDecorators()},dispose:function(){this._decorators&&this._decorators.length&&(0,E.S6)(this._decorators,(function(e,t){t.dispose()}))},_fetchRequiredDecorators:function(){this._decorators=[],(0,E.S6)(wb,function(e,t){var i=t.enabled.call(this._list);if(i){var n=t.decoratorType.call(this._list),o=t.decoratorSubType.call(this._list),r=this._createDecorator(n,o);this._decorators.push(r)}}.bind(this))},_createDecorator:function(e,t){var i=this._findDecorator(e,t);return new i(this._list)},_findDecorator:function(e,t){var i,n=null===(i=bb[e])||void 0===i?void 0:i[t];if(!n)throw Xt.Z.Error("E1012",e,t);return n},modifyItemElement:function(e){var t=(0,o.Z)(e.itemElement),i={$itemElement:t};this._prependBeforeBags(t,i),this._appendAfterBags(t,i),this._applyDecorators(kb,i)},afterItemsRendered:function(){this._applyDecorators(Ob)},_prependBeforeBags:function(e,t){var i=this._collectDecoratorsMarkup(Eb,t,Sb);e.prepend(i)},_appendAfterBags:function(e,t){var i=this._collectDecoratorsMarkup(Db,t,Ib);e.append(i)},_collectDecoratorsMarkup:function(e,t,i){var n=(0,o.Z)("
");return(0,E.S6)(this._decorators,(function(){var r=(0,o.Z)("
").addClass(i);this[e]((0,a.l)({$container:r},t)),r.children().length&&n.append(r)})),n.children()},_applyDecorators:function(e,t){(0,E.S6)(this._decorators,(function(){this[e](t)}))},_handlerExists:function(e){if(!this._decorators)return!1;for(var t=this._decorators,i=t.length,n=0;n").addClass(Rb).append((0,o.Z)("
").addClass(Bb).addClass(Vb).text(e)),i=this._$element.children("."+Fb).first();i.length>0?t.insertBefore(i):t.appendTo(this._$element)}},_renderShowChevron:function(e){if(this._$element.children("."+Fb).remove(),e){var t=(0,o.Z)("
").addClass(Fb),i=(0,o.Z)("
").addClass(Hb);t.append(i).appendTo(this._$element)}}}),Nb=Lb,Zb="dx-scrollview-pull-down-loading",$b="dx-scrollview-pull-down-ready",Wb="dx-scrollview-pull-down-image",Kb="dx-scrollview-pull-down-indicator",zb="dx-scrollview-pull-down-text",jb="dx-scrollview-pull-down-text-visible",Ub=0,Gb=1,qb=2,Yb=3,Xb=400,Jb=xp.inherit({_init:function(e){this.callBase(e),this._$topPocket=e._$topPocket,this._$pullDown=e._$pullDown,this._$refreshingText=e._$refreshingText,this._$scrollViewContent=(0,o.Z)(e.content()),this._$container=(0,o.Z)(e.container()),this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=(0,Sc["default"])(),this.releaseCallbacks=(0,Sc["default"])(),this.reachBottomCallbacks=(0,Sc["default"])()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var e=(0,o.Z)("
").addClass(Wb),t=(0,o.Z)("
").addClass(Kb),i=new oe((0,o.Z)("
")).$element(),n=this._$pullDownText=(0,o.Z)("
").addClass(zb);this._$pullingDownText=(0,o.Z)("
").text(this.option("pullingDownText")).appendTo(n),this._$pulledDownText=(0,o.Z)("
").text(this.option("pulledDownText")).appendTo(n),this._$refreshingText=(0,o.Z)("
").text(this.option("refreshingText")).appendTo(n),this._$pullDown.empty().append(e).append(t.append(i)).append(n)},_releaseState:function(){this._state=Ub,this._refreshPullDownText()},_refreshPullDownText:function(){var e=this,t=[{element:this._$pullingDownText,visibleState:Ub},{element:this._$pulledDownText,visibleState:Gb},{element:this._$refreshingText,visibleState:qb}];(0,E.S6)(t,(function(t,i){var n=e._state===i.visibleState?"addClass":"removeClass";i.element[n](jb)}))},update:function(){this.callBase(),this._setTopPocketOffset()},_updateDimensions:function(){this.callBase(),this._topPocketSize=this._$topPocket.get(0).clientHeight;var e=this._$scrollViewContent.get(0),t=this._$container.get(0);this._bottomBoundary=Math.max(e.clientHeight-t.clientHeight,0)},_allowedDirections:function(){var e=this.callBase();return e.vertical=e.vertical||this._pullDownEnabled,e},_setTopPocketOffset:function(){this._$topPocket.css({top:-this._topPocketSize})},handleEnd:function(){this.callBase(),this._complete()},handleStop:function(){this.callBase(),this._complete()},_complete:function(){this._state===Gb&&(this._setPullDownOffset(this._topPocketSize),clearTimeout(this._pullDownRefreshTimeout),this._pullDownRefreshTimeout=setTimeout(function(){this._pullDownRefreshing()}.bind(this),400))},_setPullDownOffset:function(e){ve(this._$topPocket,{top:e}),ve(this._$scrollViewContent,{top:e})},handleScroll:function(e){if(this.callBase(e),this._state!==qb){var t=this.location().top,i=(this._location||0)-t;this._location=t,this._isPullDown()?this._pullDownReady():i>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()}},_isPullDown:function(){return this._pullDownEnabled&&this._location>=this._topPocketSize},_isReachBottom:function(){return this._reachBottomEnabled&&Math.round(this._bottomBoundary+Math.floor(this._location))<=1},_reachBottom:function(){this._state!==Yb&&(this._state=Yb,this.reachBottomCallbacks.fire())},_pullDownReady:function(){this._state!==Gb&&(this._state=Gb,this._$pullDown.addClass($b),this._refreshPullDownText())},_stateReleased:function(){this._state!==Ub&&(this._$pullDown.removeClass(Zb).removeClass($b),this._releaseState())},_pullDownRefreshing:function(){this._state!==qb&&(this._state=qb,this._$pullDown.addClass(Zb).removeClass($b),this._refreshPullDownText(),this.pullDownCallbacks.fire())},pullDownEnable:function(e){e&&(this._updateDimensions(),this._setTopPocketOffset()),this._pullDownEnabled=e},reachBottomEnable:function(e){this._reachBottomEnabled=e},pendingRelease:function(){this._state=Gb},release:function(){var e=new ot.BH;return this._updateDimensions(),clearTimeout(this._releaseTimeout),this._state===Yb&&(this._state=Ub),this._releaseTimeout=setTimeout(function(){this._setPullDownOffset(0),this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),e.resolve()}.bind(this),Xb),e.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}}),Qb=Jb,ex="dx-scrollview-pull-down-loading",tx="dx-scrollview-pull-down-indicator",ix="dx-scrollview-pull-down-refreshing",nx="dx-icon-pulldown",ox=0,rx=1,ax=2,sx=4,lx=5,dx=xp.inherit({_init:function(e){this.callBase(e),this._$topPocket=e._$topPocket,this._$pullDown=e._$pullDown,this._$scrollViewContent=(0,o.Z)(e.content()),this._$container=(0,o.Z)(e.container()),this._initCallbacks(),this._location=0},_initCallbacks:function(){this.pullDownCallbacks=(0,Sc["default"])(),this.releaseCallbacks=(0,Sc["default"])(),this.reachBottomCallbacks=(0,Sc["default"])()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var e=(0,o.Z)("
").addClass(tx),t=new oe((0,o.Z)("
")).$element();this._$icon=(0,o.Z)("
").addClass(nx),this._$pullDown.empty().append(this._$icon).append(e.append(t))},_releaseState:function(){this._state=ox,this._releasePullDown(),this._updateDimensions()},_releasePullDown:function(){this._$pullDown.css({opacity:0})},_updateDimensions:function(){this.callBase(),this._topPocketSize=this._$topPocket.get(0).clientHeight;var e=this._$scrollViewContent.get(0),t=this._$container.get(0);this._bottomBoundary=Math.max(e.clientHeight-t.clientHeight,0)},_allowedDirections:function(){var e=this.callBase();return e.vertical=e.vertical||this._pullDownEnabled,e},handleInit:function(e){this.callBase(e),this._state===ox&&0===this._location&&(this._startClientY=(0,R.a0)(e.originalEvent).y,this._state=sx)},handleMove:function(e){this.callBase(e),this._deltaY=(0,R.a0)(e.originalEvent).y-this._startClientY,this._state===sx&&(this._pullDownEnabled&&this._deltaY>0?this._state=lx:this._complete()),this._state===lx&&(e.preventDefault(),this._movePullDown())},_movePullDown:function(){var e=this._getPullDownHeight(),t=Math.min(3*e,this._deltaY+this._getPullDownStartPosition()),i=180*t/e/3;this._$pullDown.css({opacity:1}).toggleClass(ix,t=this._getPullDownHeight()-this._getPullDownStartPosition()},_getPullDownHeight:function(){return Math.round(.05*(0,n.zp)(this._$element))},_getPullDownStartPosition:function(){return-Math.round(1.5*(0,n.zp)(this._$pullDown))},handleEnd:function(){this._isPullDown()&&this._pullDownRefreshing(),this._complete()},handleStop:function(){this._complete()},_complete:function(){this._state!==sx&&this._state!==lx||this._releaseState()},handleScroll:function(e){if(this.callBase(e),this._state!==ax){var t=this.location().top,i=this._location-t;this._location=t,i>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()}},_isReachBottom:function(){return this._reachBottomEnabled&&Math.round(this._bottomBoundary+Math.floor(this._location))<=1},_reachBottom:function(){this.reachBottomCallbacks.fire()},_stateReleased:function(){this._state!==ox&&(this._$pullDown.removeClass(ex),this._releaseState())},_pullDownRefreshing:function(){this._state=ax,this._pullDownRefreshHandler()},_pullDownRefreshHandler:function(){this._refreshPullDown(),this.pullDownCallbacks.fire()},_refreshPullDown:function(){this._$pullDown.addClass(ex),ve(this._$pullDown,{top:this._getPullDownHeight()})},pullDownEnable:function(e){this._$topPocket.toggle(e),this._pullDownEnabled=e},reachBottomEnable:function(e){this._reachBottomEnabled=e},pendingRelease:function(){this._state=rx},release:function(){var e=new ot.BH;return this._updateDimensions(),clearTimeout(this._releaseTimeout),this._releaseTimeout=setTimeout(function(){this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),e.resolve()}.bind(this),800),e.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}}),ux=dx,cx=Math,hx="dx-scrollview-pull-down-loading",px="dx-scrollview-pull-down-ready",fx="dx-scrollview-pull-down-image",gx="dx-scrollview-pull-down-indicator",mx="dx-scrollview-pull-down-text",_x="dx-scrollview-pull-down-text-visible",vx=0,yx=1,Cx=2,bx=3,xx=hp.inherit({ctor:function(){this._topPocketSize=0,this._bottomPocketSize=0,this.callBase.apply(this,arguments),this._initCallbacks(),this._releaseState()},_releaseState:function(){this._state=vx,this._refreshPullDownText()},_refreshPullDownText:function(){var e=this,t=[{element:this._$pullingDownText,visibleState:vx},{element:this._$pulledDownText,visibleState:yx},{element:this._$refreshingText,visibleState:Cx}];(0,E.S6)(t,(function(t,i){var n=e._state===i.visibleState?"addClass":"removeClass";i.element[n](_x)}))},_initCallbacks:function(){this.pullDownCallbacks=(0,Sc["default"])(),this.releaseCallbacks=(0,Sc["default"])(),this.reachBottomCallbacks=(0,Sc["default"])()},_updateBounds:function(){var e="horizontal"!==this._direction;if(e){this._topPocketSize=this._$topPocket.get(0).clientHeight,this._bottomPocketSize=this._$bottomPocket.get(0).clientHeight;var t=this._$container.get(0),i=this._$content.get(0);this._bottomBoundary=Math.max(i.clientHeight-this._bottomPocketSize-t.clientHeight,0)}this.callBase()},_updateScrollbar:function(){this._scrollbar.option({containerSize:this._containerSize(),contentSize:this._contentSize()-this._topPocketSize-this._bottomPocketSize,scaleRatio:this._getScaleRatio()})},_moveContent:function(){this.callBase(),this._isPullDown()?this._pullDownReady():this._isReachBottom()?this._reachBottomReady():this._state!==vx&&this._stateReleased()},_moveScrollbar:function(){this._scrollbar.moveTo(this._topPocketSize+this._location)},_isPullDown:function(){return this._pullDownEnabled&&this._location>=0},_isReachBottom:function(){var e=this._$container.get(0);return this._reachBottomEnabled&&Math.round(this._bottomBoundary-Math.ceil(e.scrollTop))<=1},_scrollComplete:function(){this._inBounds()&&this._state===yx?this._pullDownRefreshing():this._inBounds()&&this._state===bx?this._reachBottomLoading():this.callBase()},_reachBottomReady:function(){this._state!==bx&&(this._state=bx,this._minOffset=this._getMinOffset())},_getMaxOffset:function(){return-this._topPocketSize},_getMinOffset:function(){return cx.min(this.callBase(),-this._topPocketSize)},_reachBottomLoading:function(){this.reachBottomCallbacks.fire()},_pullDownReady:function(){this._state!==yx&&(this._state=yx,this._maxOffset=0,this._$pullDown.addClass(px),this._refreshPullDownText())},_stateReleased:function(){this._state!==vx&&(this._releaseState(),this._updateBounds(),this._$pullDown.removeClass(hx).removeClass(px),this.releaseCallbacks.fire())},_pullDownRefreshing:function(){this._state!==Cx&&(this._state=Cx,this._$pullDown.addClass(hx).removeClass(px),this._refreshPullDownText(),this.pullDownCallbacks.fire())},_releaseHandler:function(){return this._state===vx&&this._moveToBounds(),this._update(),this._releaseTask&&this._releaseTask.abort(),this._releaseTask=(0,v.Wi)(this._release.bind(this)),this._releaseTask.promise},_release:function(){this._stateReleased(),this._scrollComplete()},_reachBottomEnablingHandler:function(e){this._reachBottomEnabled!==e&&(this._reachBottomEnabled=e,this._updateBounds())},_pullDownEnablingHandler:function(e){this._pullDownEnabled!==e&&(this._pullDownEnabled=e,this._considerTopPocketChange(),this._updateHandler())},_considerTopPocketChange:function(){this._location-=(0,n.Cr)(this._$topPocket)||-this._topPocketSize,this._maxOffset=0,this._move()},_pendingReleaseHandler:function(){this._state=yx},dispose:function(){this._releaseTask&&this._releaseTask.abort(),this.callBase()}}),wx=pp.inherit({_init:function(e){this.callBase(e),this._$pullDown=e._$pullDown,this._$topPocket=e._$topPocket,this._$bottomPocket=e._$bottomPocket,this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=(0,Sc["default"])(),this.releaseCallbacks=(0,Sc["default"])(),this.reachBottomCallbacks=(0,Sc["default"])()},render:function(){this._renderPullDown(),this.callBase()},_renderPullDown:function(){var e=(0,o.Z)("
").addClass(fx),t=(0,o.Z)("
").addClass(gx),i=new oe((0,o.Z)("
")).$element(),n=this._$pullDownText=(0,o.Z)("
").addClass(mx);this._$pullingDownText=(0,o.Z)("
").text(this.option("pullingDownText")).appendTo(n),this._$pulledDownText=(0,o.Z)("
").text(this.option("pulledDownText")).appendTo(n),this._$refreshingText=(0,o.Z)("
").text(this.option("refreshingText")).appendTo(n),this._$pullDown.empty().append(e).append(t.append(i)).append(n)},pullDownEnable:function(e){this._eventHandler("pullDownEnabling",e)},reachBottomEnable:function(e){this._eventHandler("reachBottomEnabling",e)},_createScroller:function(e){var t=this,i=t._scrollers[e]=new xx(t._scrollerOptions(e));i.pullDownCallbacks.add((function(){t.pullDownCallbacks.fire()})),i.releaseCallbacks.add((function(){t.releaseCallbacks.fire()})),i.reachBottomCallbacks.add((function(){t.reachBottomCallbacks.fire()}))},_scrollerOptions:function(e){return(0,a.l)(this.callBase(e),{$topPocket:this._$topPocket,$bottomPocket:this._$bottomPocket,$pullDown:this._$pullDown,$pullDownText:this._$pullDownText,$pullingDownText:this._$pullingDownText,$pulledDownText:this._$pulledDownText,$refreshingText:this._$refreshingText})},pendingRelease:function(){this._eventHandler("pendingRelease")},release:function(){return this._eventHandler("release").done(this._updateAction)},location:function(){var e=this.callBase();return e.top+=(0,n.Cr)(this._$topPocket),e},dispose:function(){(0,E.S6)(this._scrollers,(function(){this.dispose()})),this.callBase()}}),Tx=wx,Sx="dx-scrollview",Ix=Sx+"-content",Ex=Sx+"-top-pocket",Dx=Sx+"-bottom-pocket",kx=Sx+"-pull-down",Ox=Sx+"-scrollbottom",Ax=Ox+"-indicator",Px=Ox+"-text",Mx=Sx+"-loadpanel",Rx={pullDown:Qb,swipeDown:ux,simulated:Tx},Bx=!(0,s.Ym)(),Vx={finishLoading:v.ZT,release:v.ZT,refresh:v.ZT,scrollOffset:()=>({top:0,left:0}),_optionChanged:function(e){if("onUpdated"!==e.name)return this.callBase.apply(this,arguments)}},Fx=$p.inherit(Bx?Vx:{_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{pullingDownText:y.Z.format("dxScrollView-pullingDownText"),pulledDownText:y.Z.format("dxScrollView-pulledDownText"),refreshingText:y.Z.format("dxScrollView-refreshingText"),reachBottomText:y.Z.format("dxScrollView-reachBottomText"),onPullDown:null,onReachBottom:null,refreshStrategy:"pullDown"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var e=w.Z.real();return"android"===e.platform},options:{refreshStrategy:"swipeDown"}},{device:function(){return(0,x.x2)()},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",reachBottomText:""}}])},_init:function(){this.callBase(),this._loadingIndicatorEnabled=!0},_initScrollableMarkup:function(){this.callBase(),this.$element().addClass(Sx),this._initContent(),this._initTopPocket(),this._initBottomPocket(),this._initLoadPanel()},_initContent:function(){var e=(0,o.Z)("
").addClass(Ix);this._$content.wrapInner(e)},_initTopPocket:function(){var e=this._$topPocket=(0,o.Z)("
").addClass(Ex),t=this._$pullDown=(0,o.Z)("
").addClass(kx);e.append(t),this._$content.prepend(e)},_initBottomPocket:function(){var e=this._$bottomPocket=(0,o.Z)("
").addClass(Dx),t=this._$reachBottom=(0,o.Z)("
").addClass(Ox),i=(0,o.Z)("
").addClass(Ax),n=new oe((0,o.Z)("
")).$element(),r=this._$reachBottomText=(0,o.Z)("
").addClass(Px);this._updateReachBottomText(),t.append(i.append(n)).append(r),e.append(t),this._$content.append(e)},_initLoadPanel:function(){var e=(0,o.Z)("
").addClass(Mx).appendTo(this.$element()),t={shading:!1,delay:400,message:this.option("refreshingText"),position:{of:this.$element()}};this._loadPanel=this._createComponent(e,Hi,t)},_updateReachBottomText:function(){this._$reachBottomText.text(this.option("reachBottomText"))},_createStrategy:function(){var e=this.option("useNative")?this.option("refreshStrategy"):"simulated",t=Rx[e];this._strategy=new t(this),this._strategy.pullDownCallbacks.add(this._pullDownHandler.bind(this)),this._strategy.releaseCallbacks.add(this._releaseHandler.bind(this)),this._strategy.reachBottomCallbacks.add(this._reachBottomHandler.bind(this))},_createActions:function(){this.callBase(),this._pullDownAction=this._createActionByOption("onPullDown"),this._reachBottomAction=this._createActionByOption("onReachBottom"),this._tryRefreshPocketState()},_tryRefreshPocketState:function(){this._pullDownEnable(this.hasActionSubscription("onPullDown")),this._reachBottomEnable(this.hasActionSubscription("onReachBottom"))},on:function(e){var t=this.callBase.apply(this,arguments);return"pullDown"!==e&&"reachBottom"!==e||this._tryRefreshPocketState(),t},_pullDownEnable:function(e){if(0===arguments.length)return this._pullDownEnabled;this._$pullDown&&this._strategy&&(this._$pullDown.toggle(e),this._strategy.pullDownEnable(e),this._pullDownEnabled=e)},_reachBottomEnable:function(e){if(0===arguments.length)return this._reachBottomEnabled;this._$reachBottom&&this._strategy&&(this._$reachBottom.toggle(e),this._strategy.reachBottomEnable(e),this._reachBottomEnabled=e)},_pullDownHandler:function(){this._loadingIndicator(!1),this._pullDownLoading()},_loadingIndicator:function(e){if(arguments.length<1)return this._loadingIndicatorEnabled;this._loadingIndicatorEnabled=e},_pullDownLoading:function(){this.startLoading(),this._pullDownAction()},_reachBottomHandler:function(){this._loadingIndicator(!1),this._reachBottomLoading()},_reachBottomLoading:function(){this.startLoading(),this._reachBottomAction()},_releaseHandler:function(){this.finishLoading(),this._loadingIndicator(!0)},_optionChanged:function(e){switch(e.name){case"onPullDown":case"onReachBottom":this._createActions();break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"refreshStrategy":this._invalidate();break;case"reachBottomText":this._updateReachBottomText();break;default:this.callBase(e)}},content:function(){return(0,se.u)(this._$content.children().eq(1))},release:function(e){return void 0!==e&&this.toggleLoading(!e),this._strategy.release()},toggleLoading:function(e){this._reachBottomEnable(e)},refresh:function(){this.hasActionSubscription("onPullDown")&&(this._strategy.pendingRelease(),this._pullDownLoading())},startLoading:function(){this._loadingIndicator()&&this.$element().is(":visible")&&this._loadPanel.show(),this._lock()},finishLoading:function(){this._loadPanel.hide(),this._unlock()},_dispose:function(){this._strategy.dispose(),this.callBase(),this._loadPanel&&this._loadPanel.$element().remove()}});(0,C.Z)("dxScrollView",Fx);var Hx=Fx,Lx=Hx,Nx=e=>Array.isArray(e)&&e.every((e=>{var t=2===Object.keys(e).length,i="key"in e&&"items"in e;return t&&i&&Array.isArray(e.items)})),Zx={_getSpecificDataSourceOption:function(){var e=this.option("dataSource"),t=!1,i={};return this._getGroupedOption()&&Nx(e)&&(i=e.reduce(((e,i)=>{var n=i.items.map((e=>((0,l.Kn)(e)||(e={text:e},t=!0),"key"in e||(e.key=i.key),e)));return e.concat(n)}),[]),e={store:{type:"array",data:i},group:{selector:"key",keepInitialKeyOrder:!0}},t&&(e.searchExpr="text")),e}};function $x(e){return e?Number(e.replace("px","")):0}function Wx(e){var t,i;return e&&(0,s.Ym)()?null===(t=(i=(0,s.Jj)()).getComputedStyle)||void 0===t?void 0:t.call(i,e):null}function Kx(e,t){var i=Wx(e);return i?$x(i["margin".concat((0,sn.MI)(t))]):0}var zx,jx="dx-list",Ux="dx-list-item",Gx="."+Ux,qx="dx-list-item-icon-container",Yx="dx-list-item-icon",Xx="dx-list-group",Jx="dx-list-group-header",Qx="dx-list-group-body",ew="dx-list-collapsible-groups",tw="dx-list-group-collapsed",iw="dx-list-group-header-indicator",nw="dx-has-next",ow="dx-list-next-button",rw="dx-wrap-item-text",aw=".dx-list-select-all",sw="dxListItemData",lw=70,dw=(0,r.vb)("items"),uw=Jc.inherit({_activeStateUnit:[Gx,aw].join(","),_supportedKeys:function(){var e=this,t=function(t){var o=i(t),r=o.is(e.option("focusedElement"));r&&(!function(t,i){var o=t.position().top;"prev"===i&&(o=t.position().top-(0,n.Cr)(e.$element())+(0,n.zp)(t)),e.scrollTo(o)}(o,t),o=i(t)),e.option("focusedElement",(0,se.u)(o)),e.scrollToItem(o)};function i(t){var i=e.scrollTop(),r=(0,n.Cr)(e.$element()),a=(0,o.Z)(e.option("focusedElement")),s=!0;if(!a.length)return(0,o.Z)();while(s){var l=a[t]();if(!l.length)break;var d=l.position().top+(0,n.zp)(l)/2;s=di,s&&(a=l)}return a}return(0,a.l)(this.callBase(),{leftArrow:v.ZT,rightArrow:v.ZT,pageUp:function(){return t("prev"),!1},pageDown:function(){return t("next"),!1}})},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{hoverStateEnabled:!0,pullRefreshEnabled:!1,scrollingEnabled:!0,showScrollbar:"onScroll",useNativeScrolling:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,pullingDownText:y.Z.format("dxList-pullingDownText"),pulledDownText:y.Z.format("dxList-pulledDownText"),refreshingText:y.Z.format("dxList-refreshingText"),pageLoadingText:y.Z.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:y.Z.format("dxList-nextButtonText"),onItemSwipe:null,grouped:!1,onGroupRendered:null,collapsibleGroups:!1,groupTemplate:"group",indicateLoading:!0,activeStateEnabled:!0,_itemAttributes:{role:"option"},_listAttributes:{role:"listbox"},useInkRipple:!1,wrapItemText:!1,_swipeEnabled:!0,showChevronExpr:function(e){return e?e.showChevron:void 0},badgeExpr:function(e){return e?e.badge:void 0}})},_defaultOptionsRules:function(){var e=(0,x.Vk)();return this.callBase().concat(wp(),[{device:function(){return!b.nativeScrolling},options:{useNativeScrolling:!1}},{device:function(e){return!b.nativeScrolling&&!w.Z.isSimulator()&&"desktop"===w.Z.real().deviceType&&"generic"===e.platform},options:{showScrollbar:"onHover",pageLoadMode:"nextButton"}},{device:function(){return"desktop"===w.Z.real().deviceType&&!w.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,x.x2)(e)},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",pageLoadingText:"",useInkRipple:!0}}])},_visibilityChanged:function(e){e&&this._updateLoadingState(!0)},_itemClass:function(){return Ux},_itemDataKey:function(){return sw},_itemContainer:function(){return this._$container},_saveSelectionChangeEvent:function(e){this._selectionChangeEventInstance=e},_getSelectionChangeEvent:function(){return this._selectionChangeEventInstance},_refreshItemElements:function(){this.option("grouped")?this._itemElementsCache=this._itemContainer().children("."+Xx).children("."+Qx).children(this._itemSelector()):this._itemElementsCache=this._itemContainer().children(this._itemSelector())},_modifyByChanges:function(){this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},reorderItem:function(e,t){var i=this.callBase(e,t);return i.done((function(){this._refreshItemElements()}))},deleteItem:function(e){var t=this.callBase(e);return t.done((function(){this._refreshItemElements()}))},_itemElements:function(){return this._itemElementsCache},_itemSelectHandler:function(e){if("single"!==this.option("selectionMode")||!this.isItemSelected(e.currentTarget))return this.callBase(e)},_allowDynamicItemsAppend:function(){return!0},_init:function(){this.callBase(),this._dataController.resetDataSourcePageIndex(),this._$container=this.$element(),this._initScrollView(),this._feedbackShowTimeout=lw,this._createGroupRenderAction()},_scrollBottomMode:function(){return"scrollBottom"===this.option("pageLoadMode")},_nextButtonMode:function(){return"nextButton"===this.option("pageLoadMode")},_dataSourceOptions:function(){var e=this._scrollBottomMode(),t=this._nextButtonMode();return(0,a.l)(this.callBase(),{paginate:(0,v.IS)(e||t,!0)})},_getGroupedOption:function(){return this.option("grouped")},_getGroupContainerByIndex:function(e){return this._itemContainer().find(".".concat(Xx)).eq(e).find(".".concat(Qx))},_dataSourceFromUrlLoadMode:function(){return"raw"},_initScrollView:function(){var e=this.option("scrollingEnabled"),t=e&&this.option("pullRefreshEnabled"),i=e&&this._scrollBottomMode()&&!!this._dataController.getDataSource();this._scrollView=this._createComponent(this.$element(),cw(),{height:this.option("height"),width:this.option("width"),disabled:this.option("disabled")||!e,onScroll:this._scrollHandler.bind(this),onPullDown:t?this._pullDownHandler.bind(this):null,onReachBottom:i?this._scrollBottomHandler.bind(this):null,showScrollbar:this.option("showScrollbar"),useNative:this.option("useNativeScrolling"),bounceEnabled:this.option("bounceEnabled"),scrollByContent:this.option("scrollByContent"),scrollByThumb:this.option("scrollByThumb"),pullingDownText:this.option("pullingDownText"),pulledDownText:this.option("pulledDownText"),refreshingText:this.option("refreshingText"),reachBottomText:this.option("pageLoadingText"),useKeyboard:!1}),this._$container=(0,o.Z)(this._scrollView.content()),this.option("wrapItemText")&&this._$container.addClass(rw),this._createScrollViewActions()},_createScrollViewActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._pullRefreshAction=this._createActionByOption("onPullRefresh"),this._pageLoadingAction=this._createActionByOption("onPageLoading")},_scrollHandler:function(e){this._scrollAction&&this._scrollAction(e)},_initTemplates:function(){this._templateManager.addDefaultTemplates({group:new Bd((function(e,t){(0,l.PO)(t)?t.key&&e.text(t.key):e.text(String(t))}),["key"],this.option("integrationOptions.watchMethod"))}),this.callBase()},_prepareDefaultItemTemplate:function(e,t){if(this.callBase(e,t),e.icon){var i=Rs(e.icon).addClass(Yx),n=(0,o.Z)("
").addClass(qx);n.append(i),t.prepend(n)}},_getBindableFields:function(){return["text","html","icon"]},_updateLoadingState:function(e){var t=this._dataController,i=this._scrollBottomMode()&&e&&!t.isLoading()&&!this._isLastPage();this._shouldContinueLoading(i)?this._infiniteDataLoading():(this._scrollView.release(!i&&!t.isLoading()),this._toggleNextButton(this._shouldRenderNextButton()&&!this._isLastPage()),this._loadIndicationSuppressed(!1))},_shouldRenderNextButton:function(){return this._nextButtonMode()&&this._dataController.isLoaded()},_isDataSourceFirstLoadCompleted:function(e){return(0,l.$K)(e)&&(this._isFirstLoadCompleted=e),this._isFirstLoadCompleted},_dataSourceLoadingChangedHandler:function(e){this._loadIndicationSuppressed()||(e&&this.option("indicateLoading")?this._showLoadingIndicatorTimer=setTimeout(function(){var e,t=!this._itemElements().length,i=!t||this._isDataSourceFirstLoadCompleted();i&&(null===(e=this._scrollView)||void 0===e||e.startLoading())}.bind(this)):(clearTimeout(this._showLoadingIndicatorTimer),this._scrollView&&this._scrollView.finishLoading()),e||this._isDataSourceFirstLoadCompleted(!1))},_dataSourceChangedHandler:function(){!this._shouldAppendItems()&&(0,s.Ym)()&&this._scrollView&&this._scrollView.scrollTo(0),this.callBase.apply(this,arguments),this._isDataSourceFirstLoadCompleted(!0)},_refreshContent:function(){this._prepareContent(),this._fireContentReadyAction()},_hideLoadingIfLoadIndicationOff:function(){this.option("indicateLoading")||this._dataSourceLoadingChangedHandler(!1)},_loadIndicationSuppressed:function(e){if(!arguments.length)return this._isLoadIndicationSuppressed;this._isLoadIndicationSuppressed=e},_scrollViewIsFull:function(){var e=this._scrollView;return!e||(0,n.Cr)(e.content())>(0,n.Cr)(e.container())},_pullDownHandler:function(e){this._pullRefreshAction(e);var t=this._dataController;t.getDataSource()&&!t.isLoading()?(this._clearSelectedItems(),t.pageIndex(0),t.reload()):this._updateLoadingState()},_shouldContinueLoading:function(e){var t,i,o=(0,n.Cr)(this._scrollView.content())-(0,n.Cr)(this._scrollView.container())<(null!==(t=null===(i=this._scrollView.scrollOffset())||void 0===i?void 0:i.top)&&void 0!==t?t:0);return e&&(!this._scrollViewIsFull()||o)},_infiniteDataLoading:function(){var e=this.$element().is(":visible");e&&(clearTimeout(this._loadNextPageTimer),this._loadNextPageTimer=setTimeout((()=>{this._loadNextPage()})))},_scrollBottomHandler:function(e){this._pageLoadingAction(e);var t=this._dataController;t.isLoading()||this._isLastPage()?this._updateLoadingState():this._loadNextPage()},_renderItems:function(e){this.option("grouped")?((0,E.S6)(e,this._renderGroup.bind(this)),this._attachGroupCollapseEvent(),this._renderEmptyMessage(),(0,x.x2)()&&this.attachGroupHeaderInkRippleEvents()):this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},_attachGroupCollapseEvent:function(){var e=(0,R.V4)(A.u,this.NAME),t="."+Jx,i=this.$element(),n=this.option("collapsibleGroups");i.toggleClass(ew,n),re.Z.off(i,e,t),n&&re.Z.on(i,e,t,function(e){this._createAction(function(e){var t=(0,o.Z)(e.event.currentTarget).parent();this._collapseGroupHandler(t),this.option("focusStateEnabled")&&this.option("focusedElement",(0,se.u)(t.find("."+Ux).eq(0)))}.bind(this),{validatingTargetName:"element"})({event:e})}.bind(this))},_collapseGroupHandler:function(e,t){var i=new ot.BH;if(e.hasClass(tw)===t)return i.resolve();var o=e.children("."+Qx),r=(0,n.zp)(o),a=0;return 0===r&&((0,n.QQ)(o,"auto"),a=(0,n.zp)(o)),e.toggleClass(tw,t),Ut.animate(o,{type:"custom",from:{height:r},to:{height:a},duration:200,complete:function(){this.updateDimensions(),this._updateLoadingState(),i.resolve()}.bind(this)}),i.promise()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this._initialized&&(this._renderEmptyMessage(),this._updateLoadingState())},_initMarkup:function(){this._itemElementsCache=(0,o.Z)(),this.$element().addClass(jx),this.callBase(),this.option("useInkRipple")&&this._renderInkRipple(),this.setAria("role",this.option("_listAttributes").role)},_renderInkRipple:function(){this._inkRipple=el()},_toggleActiveState:function(e,t,i){this.callBase.apply(this,arguments);var n=this;if(this._inkRipple){var o={element:e,event:i};t?(0,x.x2)()?this._inkRippleTimer=setTimeout((function(){n._inkRipple.showWave(o)}),lw/2):n._inkRipple.showWave(o):(clearTimeout(this._inkRippleTimer),this._inkRipple.hideWave(o))}},_postprocessRenderItem:function(e){this._refreshItemElements(),this.callBase.apply(this,arguments),this.option("_swipeEnabled")&&this._attachSwipeEvent((0,o.Z)(e.itemElement))},_attachSwipeEvent:function(e){var t=(0,R.V4)(th,this.NAME);re.Z.on(e,t,this._itemSwipeEndHandler.bind(this))},_itemSwipeEndHandler:function(e){this._itemDXEventHandler(e,"onItemSwipe",{direction:e.offset<0?"left":"right"})},_nextButtonHandler:function(e){this._pageLoadingAction(e);var t=this._dataController;t.getDataSource()&&!t.isLoading()&&(this._scrollView.toggleLoading(!0),this._$nextButton.detach(),this._loadIndicationSuppressed(!0),this._loadNextPage())},_renderGroup:function(e,t){var i=(0,o.Z)("
").addClass(Xx).appendTo(this._itemContainer()),n=(0,o.Z)("
").addClass(Jx).appendTo(i),r=this.option("groupTemplate"),a=this._getTemplate(t.template||r,t,e,n),s={index:e,itemData:t,container:(0,se.u)(n)};this._createItemByTemplate(a,s),(0,x.x2)()&&(0,o.Z)("
").addClass(iw).prependTo(n),this._renderingGroupIndex=e;var l=(0,o.Z)("
").addClass(Qx).appendTo(i);(0,E.S6)(dw(t)||[],function(t,i){this._renderItem({group:e,item:t},i,l)}.bind(this)),this._groupRenderAction({groupElement:(0,se.u)(i),groupIndex:e,groupData:t})},downInkRippleHandler:function(e){this._toggleActiveState((0,o.Z)(e.currentTarget),!0,e)},upInkRippleHandler:function(e){this._toggleActiveState((0,o.Z)(e.currentTarget),!1)},attachGroupHeaderInkRippleEvents:function(){var e="."+Jx,t=this.$element();this._downInkRippleHandler=this._downInkRippleHandler||this.downInkRippleHandler.bind(this),this._upInkRippleHandler=this._upInkRippleHandler||this.upInkRippleHandler.bind(this);var i=[t,"dxpointerdown",e,this._downInkRippleHandler],n=[t,"dxpointerup dxpointerout",e,this._upInkRippleHandler];re.Z.off(...i),re.Z.on(...i),re.Z.off(...n),re.Z.on(...n)},_createGroupRenderAction:function(){this._groupRenderAction=this._createActionByOption("onGroupRendered")},_clean:function(){clearTimeout(this._inkRippleTimer),this._$nextButton&&(this._$nextButton.remove(),this._$nextButton=null),this.callBase.apply(this,arguments)},_dispose:function(){this._isDataSourceFirstLoadCompleted(!1),clearTimeout(this._holdTimer),clearTimeout(this._loadNextPageTimer),clearTimeout(this._showLoadingIndicatorTimer),this.callBase()},_toggleDisabledState:function(e){this.callBase(e),this._scrollView.option("disabled",e||!this.option("scrollingEnabled"))},_toggleNextButton:function(e){var t=this._dataController,i=this._getNextButton();this.$element().toggleClass(nw,e),e&&t.isLoaded()&&i.appendTo(this._itemContainer()),e||i.detach()},_getNextButton:function(){return this._$nextButton||(this._$nextButton=this._createNextButton()),this._$nextButton},_createNextButton:function(){var e=(0,o.Z)("
").addClass(ow),t=(0,o.Z)("
").appendTo(e);return this._createComponent(t,cd,{text:this.option("nextButtonText"),onClick:this._nextButtonHandler.bind(this),type:(0,x.x2)()?"default":void 0,integrationOptions:{}}),e},_moveFocus:function(){this.callBase.apply(this,arguments),this.scrollToItem(this.option("focusedElement"))},_refresh:function(){if((0,s.Ym)()){var e=this._scrollView.scrollTop();this.callBase(),e&&this._scrollView.scrollTo(e)}else this.callBase()},_optionChanged:function(e){switch(e.name){case"pageLoadMode":this._toggleNextButton(e.value),this._initScrollView();break;case"dataSource":this.callBase(e),this._initScrollView(),this._isDataSourceFirstLoadCompleted(!1);break;case"items":this.callBase(e),this._isDataSourceFirstLoadCompleted(!1);break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"pageLoadingText":case"showScrollbar":case"bounceEnabled":case"scrollByContent":case"scrollByThumb":case"useNativeScrolling":case"scrollingEnabled":case"pullRefreshEnabled":this._initScrollView(),this._updateLoadingState();break;case"nextButtonText":case"onItemSwipe":case"useInkRipple":this._invalidate();break;case"onScroll":case"onPullRefresh":case"onPageLoading":this._createScrollViewActions();break;case"grouped":case"collapsibleGroups":case"groupTemplate":this._invalidate();break;case"wrapItemText":this._$container.toggleClass(rw,e.value);break;case"onGroupRendered":this._createGroupRenderAction();break;case"width":case"height":this.callBase(e),this._scrollView.option(e.name,e.value),this._scrollView.update();break;case"indicateLoading":this._hideLoadingIfLoadIndicationOff();break;case"visible":this.callBase(e),this._scrollView.update();break;case"rtlEnabled":this._initScrollView(),this.callBase(e);break;case"showChevronExpr":case"badgeExpr":this._invalidate();break;case"_swipeEnabled":case"_listAttributes":break;default:this.callBase(e)}},_extendActionArgs:function(e){if(!this.option("grouped"))return this.callBase(e);var t=e.closest("."+Xx),i=t.find("."+Ux);return(0,a.l)(this.callBase(e),{itemIndex:{group:t.index(),item:i.index(e)}})},expandGroup:function(e){var t=new ot.BH,i=this._itemContainer().find("."+Xx).eq(e);return this._collapseGroupHandler(i,!1).done(function(){t.resolveWith(this)}.bind(this)),t.promise()},collapseGroup:function(e){var t=new ot.BH,i=this._itemContainer().find("."+Xx).eq(e);return this._collapseGroupHandler(i,!0).done(function(){t.resolveWith(this)}.bind(this)),t},updateDimensions:function(){var e=this,t=new ot.BH;return e._scrollView?e._scrollView.update().done((function(){!e._scrollViewIsFull()&&e._updateLoadingState(!0),t.resolveWith(e)})):t.resolveWith(e),t.promise()},reload:function(){this.callBase(),this.scrollTo(0),this._pullDownHandler()},repaint:function(){this.scrollTo(0),this.callBase()},scrollTop:function(){return this._scrollView.scrollOffset().top},clientHeight:function(){return this._scrollView.clientHeight()},scrollHeight:function(){return this._scrollView.scrollHeight()},scrollBy:function(e){this._scrollView.scrollBy(e)},scrollTo:function(e){this._scrollView.scrollTo(e)},scrollToItem:function(e){var t=this._editStrategy.getItemElement(e),i=null===t||void 0===t?void 0:t.get(0);this._scrollView.scrollToElement(i,{bottom:Kx(i,"bottom")})},_dimensionChanged:function(){this.updateDimensions()}}).include(Zx);function cw(){return zx||Lx}uw.ItemClass=Nb;var hw="dx-list-item-selected",pw="dx-list-item-response-wait",fw=uw.inherit({_supportedKeys(){var e=this,t=this.callBase(),i=(i,n)=>{var o=this._editStrategy,r=this.option("focusedElement"),a=o.getNormalizedIndex(r),s=a===this._getLastItemIndex();if(!s||!this._dataController.isLoading())if(i.shiftKey&&e.option("itemDragging.allowReordering")){var l=a+(n?-1:1),d=o.getItemElement(l);this.reorderItem(r,d),this.scrollToItem(r),i.preventDefault()}else{var u=this._editProvider,c=u.handleKeyboardEvents(a,n);c||(n?t.upArrow(i):t.downArrow(i))}};return(0,a.l)({},t,{del:t=>{e.option("allowItemDeleting")&&(t.preventDefault(),e.deleteItem(e.option("focusedElement")))},upArrow:e=>i(e,!0),downArrow:e=>i(e),enter:function(e){this._editProvider.handleEnterPressing(e)||t.enter.apply(this,arguments)},space:function(e){this._editProvider.handleEnterPressing(e)||t.space.apply(this,arguments)}})},_updateSelection(){this._editProvider.afterItemsRendered(),this.callBase()},_getLastItemIndex(){return this._itemElements().length-1},_refreshItemElements(){this.callBase();var e=this._editProvider.getExcludedItemSelectors();e.length&&(this._itemElementsCache=this._itemElementsCache.not(e))},_isItemStrictEquals:function(e,t){var i=e&&e.__dx_key__;return!(i&&!this.key()&&this._selection.isItemSelected(i))&&this.callBase(e,t)},_getDefaultOptions(){return(0,a.l)(this.callBase(),{showSelectionControls:!1,selectionMode:"none",selectAllMode:"page",onSelectAllValueChanged:null,selectAllText:y.Z.format("dxList-selectAll"),menuItems:[],menuMode:"context",allowItemDeleting:!1,itemDeleteMode:"static",itemDragging:{}})},_defaultOptionsRules(){return this.callBase().concat([{device:e=>"ios"===e.platform,options:{menuMode:"slide",itemDeleteMode:"slideItem"}},{device:{platform:"android"},options:{itemDeleteMode:"swipe"}}])},_init(){this.callBase(),this._initEditProvider()},_initDataSource(){this.callBase(),this._isPageSelectAll()||this._dataSource&&this._dataSource.requireTotalCount(!0)},_isPageSelectAll(){return"page"===this.option("selectAllMode")},_initEditProvider(){this._editProvider=new Mb(this)},_disposeEditProvider(){this._editProvider&&this._editProvider.dispose()},_refreshEditProvider(){this._disposeEditProvider(),this._initEditProvider()},_initEditStrategy(){this.option("grouped")?this._editStrategy=new Cb(this):this.callBase()},_initMarkup(){this._refreshEditProvider(),this.callBase()},_renderItems(){this.callBase(...arguments),this._editProvider.afterItemsRendered()},_selectedItemClass:()=>hw,_itemResponseWaitClass:()=>pw,_itemClickHandler(e){var t=(0,o.Z)(e.currentTarget);if(!t.is(".dx-state-disabled, .dx-state-disabled *")){var i=this._editProvider.handleClick(t,e);i||(this._saveSelectionChangeEvent(e),this.callBase(...arguments))}},_shouldFireContextMenuEvent(){return this.callBase(...arguments)||this._editProvider.contextMenuHandlerExists()},_itemHoldHandler(e){var t=(0,o.Z)(e.currentTarget);if(!t.is(".dx-state-disabled, .dx-state-disabled *")){var i=(0,R.z6)(e)&&this._editProvider.handleContextMenu(t,e);i?e.handledByEditProvider=!0:this.callBase(...arguments)}},_getItemContainer:function(e){if(this.option("grouped")){var t,i=null===(t=this._editStrategy.getIndexByItemData(e))||void 0===t?void 0:t.group;return this._getGroupContainerByIndex(i)}return this.callBase(e)},_itemContextMenuHandler(e){var t=(0,o.Z)(e.currentTarget);if(!t.is(".dx-state-disabled, .dx-state-disabled *")){var i=!e.handledByEditProvider&&this._editProvider.handleContextMenu(t,e);i?e.preventDefault():this.callBase(...arguments)}},_postprocessRenderItem(e){this.callBase(...arguments),this._editProvider.modifyItemElement(e)},_clean(){this._disposeEditProvider(),this.callBase()},focusListItem(e){var t=this._editStrategy.getItemElement(e);this.option("focusedElement",t),this.focus(),this.scrollToItem(this.option("focusedElement"))},_optionChanged(e){switch(e.name){case"selectAllMode":this._initDataSource(),this._dataController.pageIndex(0),this._dataController.load();break;case"grouped":this._clearSelectedItems(),delete this._renderingGroupIndex,this._initEditStrategy(),this.callBase(e);break;case"showSelectionControls":case"menuItems":case"menuMode":case"allowItemDeleting":case"itemDeleteMode":case"itemDragging":case"selectAllText":this._invalidate();break;case"onSelectAllValueChanged":break;default:this.callBase(e)}},selectAll(){return this._selection.selectAll(this._isPageSelectAll())},unselectAll(){return this._selection.deselectAll(this._isPageSelectAll())},isSelectAll(){return this._selection.getSelectAllState(this._isPageSelectAll())},getFlatIndexByItemElement(e){return this._itemElements().index(e)},getItemElementByFlatIndex(e){var t=this._itemElements();return e<0||e>=t.length?(0,o.Z)():t.eq(e)},getItemByIndex(e){return this._editStrategy.getItemDataByIndex(e)}}),gw=fw;function mw(e){return class{constructor(){throw new Error("Module '".concat(e,"' not found"))}static getInstance(){}}}var _w=mw("TextBox"),vw={_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{searchMode:"",searchExpr:null,searchValue:"",searchEnabled:!1,searchEditorOptions:{}})},_initMarkup:function(){this._renderSearch(),this.callBase()},_renderSearch:function(){var e=this.$element(),t=this.option("searchEnabled"),i=this._addWidgetPrefix("search"),n=this._addWidgetPrefix("with-search");if(!t)return e.removeClass(n),void this._removeSearchBox();var r=this._getSearchEditorOptions();this._searchEditor?this._searchEditor.option(r):(e.addClass(n),this._$searchEditorElement=(0,o.Z)("
").addClass(i).prependTo(e),this._searchEditor=this._createComponent(this._$searchEditorElement,_w,r))},_removeSearchBox:function(){this._$searchEditorElement&&this._$searchEditorElement.remove(),delete this._$searchEditorElement,delete this._searchEditor},_getSearchEditorOptions:function(){var e=this,t=e.option("searchEditorOptions"),i=y.Z.format("Search");return(0,a.l)({mode:"search",placeholder:i,tabIndex:e.option("tabIndex"),value:e.option("searchValue"),valueChangeEvent:"input",inputAttr:{"aria-label":i},onValueChanged:function(t){var i=e.option("searchTimeout");e._valueChangeDeferred=new ot.BH,clearTimeout(e._valueChangeTimeout),e._valueChangeDeferred.done(function(){this.option("searchValue",t.value)}.bind(e)),t.event&&"input"===t.event.type&&i?e._valueChangeTimeout=setTimeout((function(){e._valueChangeDeferred.resolve()}),i):e._valueChangeDeferred.resolve()}},t)},_getAriaTarget:function(){return this.option("searchEnabled")?this._itemContainer(!0):this.$element()},_focusTarget:function(){return this.option("searchEnabled")?this._itemContainer(!0):this.callBase()},_updateFocusState:function(e,t){this.option("searchEnabled")&&this._toggleFocusClass(t,this.$element()),this.callBase(e,t)},getOperationBySearchMode:function(e){return"equals"===e?"=":e},_cleanAria:function(e){this.setAria({role:null,activedescendant:null},e),e.attr("tabIndex",null)},_optionChanged:function(e){switch(e.name){case"searchEnabled":case"searchEditorOptions":this._cleanAria(this.option("searchEnabled")?this.$element():this._itemContainer()),this._invalidate();break;case"searchExpr":case"searchMode":case"searchValue":if(!this._dataSource)return void Xt.Z.log("W1009");"searchMode"===e.name?this._dataSource.searchOperation(this.getOperationBySearchMode(e.value)):this._dataSource[e.name](e.value),this._dataSource.load();break;case"searchTimeout":break;default:this.callBase(e)}},focus:function(){this.option("focusedElement")||!this.option("searchEnabled")?this.callBase():this._searchEditor&&this._searchEditor.focus()},_refresh:function(){this._valueChangeDeferred&&this._valueChangeDeferred.resolve(),this.callBase()},setEditorClass:function(e){_w=e}},yw=gw.inherit(vw).inherit({_addWidgetPrefix:function(e){return"dx-list-"+e},_getCombinedFilter:function(){var e=this._dataController,t={filter:e.filter()};e.addSearchFilter(t);var i=t.filter;return i},_initDataSource:function(){var e=this.option("searchValue"),t=this.option("searchExpr"),i=this.option("searchMode");this.callBase();var n=this._dataController;e&&e.length&&n.searchValue(e),i.length&&n.searchOperation(vw.getOperationBySearchMode(i)),t&&n.searchExpr(t)}}),Cw=yw;(0,C.Z)("dxList",Cw);var bw=Cw,xw=i(93078),ww=(0,a.l)({},g.Z,{_dataExpressionDefaultOptions:function(){return{items:[],dataSource:null,itemTemplate:"item",value:null,valueExpr:"this",displayExpr:void 0}},_initDataExpressions:function(){this._compileValueGetter(),this._compileDisplayGetter(),this._initDynamicTemplates(),this._initDataSource(),this._itemsToDataSource()},_itemsToDataSource:function(){this.option("dataSource")||(this._dataSource=new cu.o({store:new xw.Z(this.option("items")),pageSize:0}),this._initDataController())},_compileDisplayGetter:function(){this._displayGetter=(0,r.vb)(this._displayGetterExpr())},_displayGetterExpr:function(){return this.option("displayExpr")},_compileValueGetter:function(){this._valueGetter=(0,r.vb)(this._valueGetterExpr())},_valueGetterExpr:function(){return this.option("valueExpr")||"this"},_loadValue:function(e){var t=new ot.BH;return e=this._unwrappedValue(e),(0,l.$K)(e)?(this._loadSingle(this._valueGetterExpr(),e).done(function(i){this._isValueEquals(this._valueGetter(i),e)?t.resolve(i):t.reject()}.bind(this)).fail((function(){t.reject()})),this._loadValueDeferred=t,t.promise()):t.reject().promise()},_rejectValueLoading:function(){var e;null===(e=this._loadValueDeferred)||void 0===e||e.reject({shouldSkipCallback:!0})},_getCurrentValue:function(){return this.option("value")},_unwrappedValue:function(e){var t;return e=null!==(t=e)&&void 0!==t?t:this._getCurrentValue(),e&&this._dataSource&&"this"===this._valueGetterExpr()&&(e=this._getItemKey(e)),$f.Z.unwrap(e)},_getItemKey:function(e){var t=this._dataSource.key();if(Array.isArray(t)){for(var i={},n=0,o=t.length;ni?t:e",!0).toArray();return t},_calcNextItem:function(e){var t=this._items(),i=this._fitIntoRange(this._getSelectedIndex()+e,0,t.length-1);return t[i]},_getSelectedIndex:function(){var e=this._items(),t=this.option("selectedItem"),i=-1;return(0,E.S6)(e,function(e,n){if(this._isValueEquals(n,t))return i=e,!1}.bind(this)),i},_createPopup:function(){this.callBase(),this._updateCustomBoundaryContainer(),this._popup.$wrapper().addClass(this._popupWrapperClass());var e=this._popup.$content();re.Z.off(e,"mouseup"),re.Z.on(e,"mouseup",this._saveFocusOnWidget.bind(this))},_updateCustomBoundaryContainer:function(){var e=this.option("dropDownOptions.container"),t=e&&(0,o.Z)(e);if(t&&t.length&&!(0,l.FJ)(t.get(0))){var i=[].slice.call(t.parents());i.unshift(t.get(0)),(0,E.S6)(i,function(e,t){return t!==(0,o.Z)("body").get(0)&&("hidden"===Iw.getComputedStyle(t).overflowY?(this._$customBoundaryContainer=(0,o.Z)(t),!1):void 0)}.bind(this))}},_popupWrapperClass:function(){return kw},_renderInputValue:function(){var e=this._getCurrentValue();return this._rejectValueLoading(),this._loadInputValue(e,this._setSelectedItem.bind(this)).always(this.callBase.bind(this,e))},_loadInputValue:function(e,t){return this._loadItem(e).always(t)},_getItemFromPlain:function(e,t){var i,n;return t&&"object"!==typeof e&&(t.itemByValue||(t.itemByValue={},i=this._getPlainItems(),i.forEach((function(e){t.itemByValue[this._valueGetter(e)]=e}),this)),n=t.itemByValue[e]),n||(i=this._getPlainItems(),n=(0,v.h3)(i,function(t){return this._isValueEquals(this._valueGetter(t),e)}.bind(this))[0]),n},_loadItem:function(e,t){var i=this._getItemFromPlain(e,t);return void 0!==i?(new ot.BH).resolve(i).promise():this._loadValue(e)},_getPlainItems:function(e){var t=[];e=e||this.option("items")||this._dataSource.items()||[];for(var i=0;i0,r=t&&n&&i;this.setAria({activedescendant:r||null})},_setSelectedItem:function(e){var t=this._displayValue(e);this.option("selectedItem",(0,v.IS)(e,null)),this.option("displayValue",t)},_displayValue:function(e){return this._displayGetter(e)},_refreshSelected:function(){var e={};this._listItemElements().each(function(t,i){var n=(0,o.Z)(i),r=this._valueGetter(n.data(Dw)),a=this._isSelectedValue(r,e);a?this._list.selectItem(n):this._list.unselectItem(n)}.bind(this))},_popupShownHandler:function(){this.callBase(),this._setFocusPolicy()},_setFocusPolicy:function(){this.option("focusStateEnabled")&&this._list&&this._list.option("focusedElement",null)},_isSelectedValue:function(e){return this._isValueEquals(e,this.option("value"))},_validateSearchMode:function(){var e=this.option("searchMode"),t=e.toLowerCase();if(!Aw.includes(t))throw Xt.Z.Error("E1019",e)},_clearSelectedItem:function(){this.option("selectedItem",null)},_processDataSourceChanging:function(){this._initDataController(),this._setListOption("_dataController",this._dataController),this._setListDataSource(),this._renderInputValue().fail(function(){this._isCustomValueAllowed()||this._clearSelectedItem()}.bind(this))},_isCustomValueAllowed:function(){return this.option("displayCustomValue")},reset:function(){this.callBase(),this._clearFilter(),this._clearSelectedItem()},_listItemElements:function(){return this._$list?this._$list.find(Ew):(0,o.Z)()},_popupConfig:function(){return(0,a.l)(this.callBase(),{templatesRenderAsynchronously:!1,autoResizeEnabled:!1,maxHeight:this._getMaxHeight.bind(this)})},_renderPopupContent:function(){this.callBase(),this._renderList()},_getKeyboardListeners(){var e=this._canListHaveFocus();return this.callBase().concat([!e&&this._list])},_setAriaTargetForList:function(){this._list._getAriaTarget=this._getAriaTarget.bind(this)},_renderList:function(){this._listId="dx-"+(new Li.Z)._value;var e=this._$list=(0,o.Z)("
").attr("id",this._listId).appendTo(this._popup.$content());this._list=this._createComponent(e,bw,this._listConfig()),this._refreshList(),this._setAriaTargetForList(),this._list.option("_listAttributes",{role:"combobox"}),this._renderPreventBlurOnListClick(),this._setListFocusedElementOptionChange()},_renderPreventBlurOnListClick:function(){var e=(0,R.V4)("mousedown","dxDropDownList");re.Z.off(this._$list,e),re.Z.on(this._$list,e,(e=>e.preventDefault()))},_getControlsAria(){return this._list&&this._listId},_renderOpenedState:function(){this.callBase(),this._list&&this._updateActiveDescendant(),this.setAria("owns",this._popup&&this._popupContentId)},_setDefaultAria:function(){this.setAria({haspopup:"listbox",autocomplete:"list"})},_refreshList:function(){this._list&&this._shouldRefreshDataSource()&&this._setListDataSource()},_shouldRefreshDataSource:function(){var e=!!this._list.option("dataSource");return e!==this._needPassDataSourceToList()},_isDesktopDevice:function(){return"desktop"===w.Z.real().deviceType},_listConfig:function(){var e={selectionMode:"single",_templates:this.option("_templates"),templateProvider:this.option("templateProvider"),noDataText:this.option("noDataText"),encodeNoDataText:this.option("encodeNoDataText"),grouped:this.option("grouped"),wrapItemText:this.option("wrapItemText"),useItemTextAsTitle:this.option("useItemTextAsTitle"),onContentReady:this._listContentReadyHandler.bind(this),itemTemplate:this.option("itemTemplate"),indicateLoading:!1,keyExpr:this._getCollectionKeyExpr(),displayExpr:this._displayGetterExpr(),groupTemplate:this.option("groupTemplate"),onItemClick:this._listItemClickAction.bind(this),dataSource:this._getDataSource(),_dataController:this._dataController,hoverStateEnabled:!!this._isDesktopDevice()&&this.option("hoverStateEnabled"),focusStateEnabled:!!this._isDesktopDevice()&&this.option("focusStateEnabled")};return this._canListHaveFocus()||(e.tabIndex=null),e},_canListHaveFocus:()=>!1,_getDataSource:function(){return this._needPassDataSourceToList()?this._dataSource:null},_dataSourceOptions:function(){return{paginate:!1}},_getGroupedOption:function(){return this.option("grouped")},_dataSourceFromUrlLoadMode:function(){return"raw"},_listContentReadyHandler:function(){this._list=this._list||this._$list.dxList("instance"),this.option("deferRendering")||this._refreshSelected(),this._dimensionChanged(),this._contentReadyAction()},_setListOption:function(e,t){this._setWidgetOption("_list",arguments)},_listItemClickAction:function(e){this._listItemClickHandler(e),this._itemClickAction(e)},_listItemClickHandler:v.ZT,_setListDataSource:function(){this._list&&(this._setListOption("dataSource",this._getDataSource()),this._needPassDataSourceToList()||this._setListOption("items",[]))},_needPassDataSourceToList:function(){return this.option("showDataBeforeSearch")||this._isMinSearchLengthExceeded()},_isMinSearchLengthExceeded:function(){return this._searchValue().toString().length>=this.option("minSearchLength")},_needClearFilter:function(){return!this._canKeepDataSource()&&this._needPassDataSourceToList()},_canKeepDataSource:function(){var e=this._isMinSearchLengthExceeded();return this._dataController.isLoaded()&&this.option("showDataBeforeSearch")&&this.option("minSearchLength")&&!e&&!this._isLastMinSearchLengthExceeded},_searchValue:function(){return this._input().val()||""},_getSearchEvent:function(){return(0,R.V4)(Ow,this.NAME+"Search")},_getCompositionStartEvent:function(){return(0,R.V4)("compositionstart",this.NAME+"CompositionStart")},_getCompositionEndEvent:function(){return(0,R.V4)("compositionend",this.NAME+"CompositionEnd")},_getSetFocusPolicyEvent:function(){return(0,R.V4)("input",this.NAME+"FocusPolicy")},_renderEvents:function(){this.callBase(),re.Z.on(this._input(),this._getSetFocusPolicyEvent(),(()=>{this._setFocusPolicy()})),this._shouldRenderSearchEvent()&&(re.Z.on(this._input(),this._getSearchEvent(),(e=>{this._searchHandler(e)})),Pw&&(re.Z.on(this._input(),this._getCompositionStartEvent(),(()=>{this._isTextCompositionInProgress(!0)})),re.Z.on(this._input(),this._getCompositionEndEvent(),(e=>{this._isTextCompositionInProgress(void 0),this._searchHandler(e,this._searchValue())}))))},_shouldRenderSearchEvent:function(){return this.option("searchEnabled")},_refreshEvents:function(){re.Z.off(this._input(),this._getSearchEvent()),re.Z.off(this._input(),this._getSetFocusPolicyEvent()),Pw&&(re.Z.off(this._input(),this._getCompositionStartEvent()),re.Z.off(this._input(),this._getCompositionEndEvent())),this.callBase()},_isTextCompositionInProgress:function(e){if(!arguments.length)return this._isTextComposition;this._isTextComposition=e},_searchHandler:function(e,t){if(!this._isTextCompositionInProgress())if(this._isMinSearchLengthExceeded()){var i=this.option("searchTimeout");i?(this._clearSearchTimer(),this._searchTimer=setTimeout((()=>{this._searchDataSource(t)}),i)):this._searchDataSource(t)}else this._searchCanceled()},_searchCanceled:function(){this._clearSearchTimer(),this._needClearFilter()&&this._filterDataSource(null),this._refreshList()},_searchDataSource:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._searchValue();this._filterDataSource(e)},_filterDataSource:function(e){this._clearSearchTimer();var t=this._dataController;t.searchExpr(this.option("searchExpr")||this._displayGetterExpr()),t.searchOperation(this.option("searchMode")),t.searchValue(e),t.load().done(this._dataSourceFiltered.bind(this,e))},_clearFilter:function(){var e=this._dataController;e.searchValue()&&e.searchValue(null)},_dataSourceFiltered:function(){this._isLastMinSearchLengthExceeded=this._isMinSearchLengthExceeded(),this._refreshList(),this._refreshPopupVisibility()},_shouldOpenPopup:function(){return this._hasItemsToShow()},_refreshPopupVisibility:function(){if(!this.option("readOnly")&&this._searchValue()){var e=this._shouldOpenPopup();e&&!this._isFocused()||(this.option("opened",e),e&&this._dimensionChanged())}},_dataSourceChangedHandler:function(e){0===this._dataController.pageIndex()?this.option().items=e:this.option().items=this.option().items.concat(e)},_hasItemsToShow:function(){var e=this._dataController,t=e.items()||[],i=t.length,n=this._needPassDataSourceToList();return!(!n||!i)},_clearSearchTimer:function(){clearTimeout(this._searchTimer),delete this._searchTimer},_popupShowingHandler:function(){this._dimensionChanged()},_dimensionChanged:function(){this.callBase(arguments),this._popup&&this._updatePopupDimensions()},_needPopupRepaint:function(){var e=this._dataController,t=e.pageIndex(),i=(0,l.$K)(this._pageIndex)&&t<=this._pageIndex||e.isLastPage()&&!this._list._scrollViewIsFull();return this._pageIndex=t,i},_updatePopupDimensions:function(){this._needPopupRepaint()&&this._popup.repaint(),this._list&&this._list.updateDimensions()},_getMaxHeight:function(){var e=this.$element(),t=this._$customBoundaryContainer,i=e.offset().top-(t?t.offset().top:0),o=(0,n.zp)(Iw),r=t?Math.min((0,n.zp)(t),o):o,a=Math.max(i,r-i-(0,n.zp)(e));return Math.min(.5*r,a)},_clean:function(){this._list&&delete this._list,delete this._isLastMinSearchLengthExceeded,this.callBase()},_dispose:function(){this._clearSearchTimer(),this.callBase()},_setCollectionWidgetOption:function(){this._setListOption.apply(this,arguments)},_setSubmitValue:function(){var e=this.option("value"),t=this._shouldUseDisplayValue(e)?this._displayGetter(e):e;this._getSubmitElement().val(t)},_shouldUseDisplayValue:function(e){return"this"===this.option("valueExpr")&&(0,l.Kn)(e)},_optionChanged:function(e){switch(this._dataExpressionOptionChanged(e),e.name){case"hoverStateEnabled":case"focusStateEnabled":this._isDesktopDevice()&&this._setListOption(e.name,e.value),this.callBase(e);break;case"items":this.option("dataSource")||this._processDataSourceChanging();break;case"dataSource":this._processDataSourceChanging();break;case"valueExpr":this._renderValue(),this._setListOption("keyExpr",this._getCollectionKeyExpr());break;case"displayExpr":this._renderValue(),this._setListOption("displayExpr",this._displayGetterExpr());break;case"searchMode":this._validateSearchMode();break;case"minSearchLength":this._refreshList();break;case"searchEnabled":case"showDataBeforeSearch":case"searchExpr":this._invalidate();break;case"onContentReady":this._initContentReadyAction();break;case"onSelectionChanged":this._initSelectionChangedAction();break;case"onItemClick":this._initItemClickAction();break;case"grouped":case"groupTemplate":case"wrapItemText":case"noDataText":case"encodeNoDataText":case"useItemTextAsTitle":this._setListOption(e.name);break;case"displayValue":this.option("text",e.value);break;case"itemTemplate":case"searchTimeout":break;case"selectedItem":e.previousValue!==e.value&&this._selectionChangedAction({selectedItem:e.value});break;default:this.callBase(e)}}}).include(Tw,Zx);(0,C.Z)("dxDropDownList",Mw);var Rw=Mw,Bw="dx-radiobutton",Vw="dx-radiobutton-icon",Fw="dx-radiobutton-icon-dot",Hw="dx-radiobutton-checked",Lw="dx-radiobutton-icon-checked",Nw=zc.inherit({_supportedKeys:function(){return(0,a.l)(this.callBase(),{space:function(e){e.preventDefault(),this._clickAction({event:e})}})},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,value:!1})},_canValueBeChangedByClick:function(){return!0},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===w.Z.real().deviceType&&!w.Z.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.$element().addClass(Bw)},_initMarkup:function(){this.callBase(),this._renderIcon(),this._renderCheckedState(this.option("value")),this._renderClick(),this.setAria("role","radio")},_renderIcon:function(){this._$icon=(0,o.Z)("
").addClass(Vw),(0,o.Z)("
").addClass(Fw).appendTo(this._$icon),this.$element().append(this._$icon)},_renderCheckedState:function(e){this.$element().toggleClass(Hw,e).find("."+Vw).toggleClass(Lw,e),this.setAria("checked",e)},_renderClick:function(){var e=(0,R.V4)(A.u,this.NAME);this._clickAction=this._createAction(function(e){this._clickHandler(e.event)}.bind(this)),re.Z.off(this.$element(),e),re.Z.on(this.$element(),e,function(e){this._clickAction({event:e})}.bind(this))},_clickHandler:function(e){this._saveValueChangeEvent(e),this.option("value",!0)},_optionChanged:function(e){switch(e.name){case"value":this._renderCheckedState(e.value),this.callBase(e);break;default:this.callBase(e)}}});(0,C.Z)("dxRadioButton",Nw);var Zw=Nw,$w="dxListEditDecorator",Ww=(0,R.V4)(Qc,$w),Kw=(0,R.V4)(eh,$w),zw=(0,R.V4)(th,$w),jw=P.Z.inherit({ctor:function(e){this._list=e,this._init()},_init:v.ZT,_shouldHandleSwipe:!1,_attachSwipeEvent:function(e){var t={itemSizeFunc:function(){return this._clearSwipeCache&&(this._itemWidthCache=(0,n.dz)(this._list.$element()),this._clearSwipeCache=!1),this._itemWidthCache}.bind(this)};re.Z.on(e.$itemElement,Ww,t,this._itemSwipeStartHandler.bind(this)),re.Z.on(e.$itemElement,Kw,this._itemSwipeUpdateHandler.bind(this)),re.Z.on(e.$itemElement,zw,this._itemSwipeEndHandler.bind(this))},_itemSwipeStartHandler:function(e){var t=(0,o.Z)(e.currentTarget);t.is(".dx-state-disabled, .dx-state-disabled *")?e.cancel=!0:(clearTimeout(this._list._inkRippleTimer),this._swipeStartHandler(t,e))},_itemSwipeUpdateHandler:function(e){var t=(0,o.Z)(e.currentTarget);this._swipeUpdateHandler(t,e)},_itemSwipeEndHandler:function(e){var t=(0,o.Z)(e.currentTarget);this._swipeEndHandler(t,e),this._clearSwipeCache=!0},beforeBag:v.ZT,afterBag:v.ZT,_commonOptions:function(){return{activeStateEnabled:this._list.option("activeStateEnabled"),hoverStateEnabled:this._list.option("hoverStateEnabled"),focusStateEnabled:this._list.option("focusStateEnabled")}},modifyElement:function(e){this._shouldHandleSwipe&&(this._attachSwipeEvent(e),this._clearSwipeCache=!0)},afterRender:v.ZT,handleClick:v.ZT,handleKeyboardEvents:v.ZT,handleEnterPressing:v.ZT,handleContextMenu:v.ZT,_swipeStartHandler:v.ZT,_swipeUpdateHandler:v.ZT,_swipeEndHandler:v.ZT,visibilityChange:v.ZT,getExcludedSelectors:v.ZT,dispose:v.ZT}),Uw=jw,Gw="dx-list-select-decorator-enabled",qw="dx-list-select-all",Yw="dx-list-select-all-checkbox",Xw="dx-list-select-all-label",Jw="dx-list-select-checkbox-container",Qw="dx-list-select-checkbox",eT="dx-list-select-radiobutton-container",tT="dx-list-select-radiobutton",iT="dx-state-focused",nT=(0,R.V4)(A.u,"dxListEditDecorator");xb("selection","default",Uw.inherit({_init:function(){this.callBase.apply(this,arguments);var e=this._list.option("selectionMode");this._singleStrategy="single"===e,this._containerClass=this._singleStrategy?eT:Jw,this._controlClass=this._singleStrategy?tT:Qw,this._controlWidget=this._singleStrategy?Zw:ry,this._list.$element().addClass(Gw)},beforeBag:function(e){var t=e.$itemElement,i=e.$container.addClass(this._containerClass),n=(0,o.Z)("
").addClass(this._controlClass).appendTo(i);new this._controlWidget(n,(0,a.l)(this._commonOptions(),{value:this._isSelected(t),focusStateEnabled:!1,hoverStateEnabled:!1,onValueChanged:function(e){e.event&&this._list._saveSelectionChangeEvent(e.event),this._processCheckedState(t,e.value),e.event&&e.event.stopPropagation()}.bind(this)}))},modifyElement:function(e){this.callBase.apply(this,arguments);var t=e.$itemElement,i=this._controlWidget.getInstance(t.find("."+this._controlClass));re.Z.on(t,"stateChanged",function(e,t){i.option("value",t)}.bind(this))},_updateSelectAllState:function(){this._$selectAll&&this._selectAllCheckBox.option("value",this._list.isSelectAll())},afterRender:function(){"all"===this._list.option("selectionMode")&&(this._$selectAll?this._updateSelectAllState():this._renderSelectAll())},handleKeyboardEvents:function(e,t){var i=!t,n=this._list,o=this._$selectAll,r=n._getLastItemIndex(),a=t&&0===e||i&&e===r,s=!!o;return!(!s||!a)&&(n.option("focusedElement",o),n.scrollToItem(n.option("focusedElement")),!0)},handleEnterPressing:function(e){if(this._$selectAll&&this._$selectAll.hasClass(iT))return e.target=this._$selectAll.get(0),this._list._saveSelectionChangeEvent(e),this._selectAllCheckBox.option("value",!this._selectAllCheckBox.option("value")),!0},_renderSelectAll:function(){var e=this._$selectAll=(0,o.Z)("
").addClass(qw),t=this._list,i=t._supportedKeys().downArrow.bind(t);this._selectAllCheckBox=t._createComponent((0,o.Z)("
").addClass(Yw).appendTo(e),ry,{focusStateEnabled:!1,hoverStateEnabled:!1}),this._selectAllCheckBox.registerKeyHandler("downArrow",i),(0,o.Z)("
").addClass(Xw).text(this._list.option("selectAllText")).appendTo(e),this._list.itemsContainer().prepend(e),this._updateSelectAllState(),this._attachSelectAllHandler()},_attachSelectAllHandler:function(){this._selectAllCheckBox.option("onValueChanged",this._selectAllHandler.bind(this)),re.Z.off(this._$selectAll,nT),re.Z.on(this._$selectAll,nT,this._selectAllClickHandler.bind(this))},_selectAllHandler:function(e){e.event&&e.event.stopPropagation();var t=this._selectAllCheckBox.option("value");e.event&&this._list._saveSelectionChangeEvent(e.event),!0===t?this._selectAllItems():!1===t&&this._unselectAllItems(),this._list._createActionByOption("onSelectAllValueChanged")({value:t})},_checkSelectAllCapability:function(){var e=this._list,t=e._dataController;return!("allPages"===e.option("selectAllMode")&&e.option("grouped")&&!t.group())||(Xt.Z.log("W1010"),!1)},_selectAllItems:function(){this._checkSelectAllCapability()&&this._list._selection.selectAll("page"===this._list.option("selectAllMode"))},_unselectAllItems:function(){this._checkSelectAllCapability()&&this._list._selection.deselectAll("page"===this._list.option("selectAllMode"))},_selectAllClickHandler:function(e){this._list._saveSelectionChangeEvent(e),this._selectAllCheckBox.option("value",!this._selectAllCheckBox.option("value"))},_isSelected:function(e){return this._list.isItemSelected(e)},_processCheckedState:function(e,t){t?this._list.selectItem(e):this._list.unselectItem(e)},dispose:function(){this._disposeSelectAll(),this._list.$element().removeClass(Gw),this.callBase.apply(this,arguments)},_disposeSelectAll:function(){this._$selectAll&&(this._$selectAll.remove(),this._$selectAll=null)}}));var oT=".dx-state-disabled",rT="dx-selectbox",aT="dx-selectbox-popup",sT="dx-selectbox-container",lT="dx-selectbox-popup-wrapper",dT=Rw.inherit({_supportedKeys:function(){var e=this,t=this.callBase(),i=function(e){var t=this._isEditable();t?this._valueSubstituted()&&(this._preventFiltering=!0):this.option("showClearButton")&&(e.preventDefault(),this.reset()),this._savedTextRemoveEvent=e,this._preventSubstitution=!0},n=function(){e.option("searchEnabled")&&e._valueSubstituted()&&e._searchHandler()};return(0,a.l)({},t,{tab:function(){this.option("opened")&&"instantly"===this.option("applyValueMode")&&this._resetCaretPosition(!0),t.tab&&t.tab.apply(this,arguments),this._cancelSearchIfNeed()},upArrow:function(e){if(t.upArrow&&t.upArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(e),!0},downArrow:function(e){if(t.downArrow&&t.downArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(e),!0},leftArrow:function(){n(),t.leftArrow&&t.leftArrow.apply(this,arguments)},rightArrow:function(){n(),t.rightArrow&&t.rightArrow.apply(this,arguments)},home:function(){n(),t.home&&t.home.apply(this,arguments)},end:function(){n(),t.end&&t.end.apply(this,arguments)},escape:function(){var e=t.escape&&t.escape.apply(this,arguments);return this._cancelEditing(),null===e||void 0===e||e},enter:function(e){var i=this.option("opened"),n=this._input().val().trim(),o=n&&this._list&&!this._list.option("focusedElement");if(!n&&(0,l.$K)(this.option("value"))&&this.option("allowClearing"))this._saveValueChangeEvent(e),this.option({selectedItem:null,value:null}),this.close();else{if(this.option("acceptCustomValue"))return e.preventDefault(),o&&(i&&this._toggleOpenState(),this._valueChangeEventHandler(e)),i;if(t.enter&&t.enter.apply(this,arguments))return i}},space:function(e){var t=this.option("opened"),i=this.option("searchEnabled"),n=this.option("acceptCustomValue");if(t&&!i&&!n)return e.preventDefault(),this._valueChangeEventHandler(e),!0},backspace:i,del:i})},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{placeholder:y.Z.format("Select"),fieldTemplate:null,customItemCreateEvent:"change",valueChangeEvent:"change",acceptCustomValue:!1,onCustomItemCreating:function(e){(0,l.$K)(e.customItem)||(e.customItem=e.text)},showSelectionControls:!1,allowClearing:!0,tooltipEnabled:!1,openOnFieldClick:!0,showDropDownButton:!0,displayCustomValue:!1,useHiddenSubmitElement:!0})},_init:function(){this.callBase(),this._initCustomItemCreatingAction()},_initMarkup:function(){this.$element().addClass(rT),this._renderTooltip(),this.callBase(),this._$container.addClass(sT)},_createPopup:function(){this.callBase(),this._popup.$element().addClass(aT),this._popup.$overlayContent().attr("tabindex",-1)},_popupWrapperClass:function(){return this.callBase()+" "+lT},_setDeprecatedOptions(){this.callBase(),(0,a.l)(this._deprecatedOptions,{valueChangeEvent:{since:"22.2",alias:"customItemCreateEvent"}})},_cancelEditing:function(){!this.option("searchEnabled")&&this._list&&(this._focusListElement(null),this._updateField(this.option("selectedItem")))},_renderOpenedState:function(){this.callBase(),this.option("opened")&&(this._scrollToSelectedItem(),this._focusSelectedElement())},_focusSelectedElement:function(){var e,t=this._searchValue();if(t){var{items:i,selectedItem:n}=this.option(),o=this._list._itemElements(),r=null!==(e=null===i||void 0===i?void 0:i.indexOf(n))&&void 0!==e?e:-1,a=-1===r||this._isCustomItemSelected()?null:o.eq(r);this._focusListElement(a)}else this._focusListElement(null)},_renderFocusedElement:function(){if(this._list){var e=this._searchValue();if(e&&!this.option("acceptCustomValue")){var t=this._list._itemElements(),i=t.not(oT).eq(0);this._focusListElement(i)}else this._focusListElement(null)}},_focusListElement:function(e){this._preventInputValueRender=!0,this._list.option("focusedElement",(0,se.u)(e)),delete this._preventInputValueRender},_scrollToSelectedItem:function(){this._list&&this._list.scrollToItem(this._list.option("selectedItem"))},_listContentReadyHandler:function(){this.callBase();var e=this._dataController.paginate();e&&this._needPopupRepaint()||this._scrollToSelectedItem()},_renderValue:function(){return this._renderInputValue(),this._setSubmitValue(),(new ot.BH).resolve()},_renderInputValue:function(){return this.callBase().always(function(){this._renderInputValueAsync()}.bind(this))},_renderInputValueAsync:function(){this._renderTooltip(),this._renderInputValueImpl().always(function(){this._refreshSelected()}.bind(this))},_renderInputValueImpl:function(){return this._renderField(),(new ot.BH).resolve()},_setNextItem:function(e){var t=this._calcNextItem(e),i=this._valueGetter(t);this._setValue(i)},_setNextValue:function(e){var t=this._dataController.isLoaded()?(new ot.BH).resolve():this._dataController.load();t.done(function(){var t=this._getSelectedIndex(),i=this._dataController.pageSize(),n=this._dataController.isLastPage(),o=t===this._items().length-1;this._saveValueChangeEvent(e);var r="downArrow"===(0,R.EV)(e)?1:-1;i&&!n&&o&&r>0?(this._popup||this._createPopup(),this._dataController.isLoading()||this._list._loadNextPage().done(this._setNextItem.bind(this,r))):this._setNextItem(r)}.bind(this))},_setSelectedItem:function(e){var t=!this._isCustomValueAllowed()&&void 0===e;this.callBase(t?null:e),t||this._isEditable()&&!this._isCustomItemSelected()||this._setListOption("selectedItem",this.option("selectedItem"))},_isCustomValueAllowed:function(){return this.option("acceptCustomValue")||this.callBase()},_displayValue:function(e){return e=!(0,l.$K)(e)&&this._isCustomValueAllowed()?this.option("value"):e,this.callBase(e)},_listConfig:function(){var e=(0,a.l)(this.callBase(),{pageLoadMode:"scrollBottom",onSelectionChanged:this._getSelectionChangeHandler(),selectedItem:this.option("selectedItem"),onFocusedItemChanged:this._listFocusedItemChangeHandler.bind(this)});return this.option("showSelectionControls")&&(0,a.l)(e,{showSelectionControls:!0,selectionByClick:!0}),e},_listFocusedItemChangeHandler:function(e){if(!this._preventInputValueRender){var t=e.component,i=(0,o.Z)(t.option("focusedElement")),n=t._getItemData(i);this._updateField(n)}},_updateField:function(e){var t=this._getTemplateByOption("fieldTemplate");if(!t||!this.option("fieldTemplate")){var i=this._displayGetter(e);return this.option("text",i),void this._renderDisplayText(i)}this._renderField()},_getSelectionChangeHandler:function(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):v.ZT},_selectionChangeHandler:function(e){(0,E.S6)(e.addedItems||[],function(e,t){this._setValue(this._valueGetter(t))}.bind(this))},_getActualSearchValue:function(){return this._dataController.searchValue()},_toggleOpenState:function(e){if(!this.option("disabled")){if(e=arguments.length?e:!this.option("opened"),e||this._shouldClearFilter()||this._restoreInputText(!0),this._wasSearch()&&e){this._wasSearch(!1);var t=this.option("showDataBeforeSearch")||this._isMinSearchLengthExceeded();if(t&&this._dataController.getDataSource()){if(this._searchTimer)return;var i=this._getActualSearchValue();i&&this._wasSearch(!0),this._filterDataSource(i||null)}else this._setListOption("items",[])}e&&this._scrollToSelectedItem(),this.callBase(e)}},_renderTooltip:function(){this.option("tooltipEnabled")&&this.$element().attr("title",this.option("displayValue"))},_renderDimensions:function(){this.callBase(),this._dimensionChanged()},_isValueEqualInputText:function(){var e=this.option("selectedItem");if(null===e)return!1;var t=this._displayGetter(e),i=t?String(t):"",n=this._searchValue();return i===n},_popupHidingHandler:function(){this._isValueEqualInputText()&&this._cancelEditing(),this.callBase()},_popupHiddenHandler:function(){this.callBase(),this._shouldCancelSearch()&&(this._wasSearch(!1),this._searchCanceled(),this._shouldCancelSearch(!1))},_restoreInputText:function(e){this.option("readOnly")||this._loadItemDeferred&&this._loadItemDeferred.always(function(){var{acceptCustomValue:t,text:i,selectedItem:n}=this.option();t?e||this._isValueChanging||(this._updateField(null!==n&&void 0!==n?n:this._createCustomItem(i)),this._clearFilter()):this.option("searchEnabled")&&!this._searchValue()&&this.option("allowClearing")?this._clearTextValue():this._isValueEqualInputText()||this._renderInputValue().always(function(e){var t=(0,v.IS)(e,n);this._setSelectedItem(t),this._updateField(t),this._clearFilter()}.bind(this))}.bind(this))},_valueChangeEventIncludesBlur:function(){var e=this.option(this._getValueChangeEventOptionName());return e.includes("blur")},_isPreventedFocusOutEvent:function(e){return this._preventNestedFocusEvent(e)||this._valueChangeEventIncludesBlur()},_focusOutHandler:function(e){if(!this._isPreventedFocusOutEvent(e)){var t=this._isOverlayNestedTarget(e.relatedTarget);t||(this._restoreInputText(),this._clearSearchTimer()),this._cancelSearchIfNeed(e)}e.target=this._input().get(0),this.callBase(e)},_cancelSearchIfNeed:function(e){var{searchEnabled:t}=this.option(),i=this._isOverlayNestedTarget(null===e||void 0===e?void 0:e.relatedTarget),n=this._wasSearch()&&t&&!i;if(n){var o,r=null===(o=this._popup)||void 0===o?void 0:o._hideAnimationProcessing;this._clearSearchTimer(),r?this._shouldCancelSearch(!0):(this._wasSearch(!1),this._searchCanceled())}},_shouldCancelSearch:function(e){if(!arguments.length)return this._shouldCancelSearchValue;this._shouldCancelSearchValue=e},_isOverlayNestedTarget:function(e){return!!(0,o.Z)(e).closest(".".concat(lT)).length},_clearTextValue:function(){this.option("selectedItem")&&(this._savedTextRemoveEvent&&this._saveValueChangeEvent(this._savedTextRemoveEvent),this.option("value",null)),delete this._savedTextRemoveEvent},_shouldOpenPopup:function(){return this._needPassDataSourceToList()&&this._wasSearch()},_isFocused:function(){var e=ke["default"].getActiveElement(this.element());return this.callBase()&&(0,o.Z)(e).closest(this._input()).length>0},_getValueChangeEventOptionName:function(){return"customItemCreateEvent"},_renderValueChangeEvent:function(){this._isEditable()&&this.callBase()},_fieldRenderData:function(){var e=this._list&&this.option("opened")&&(0,o.Z)(this._list.option("focusedElement"));return e&&e.length?this._list._getItemData(e):this.option("selectedItem")},_isSelectedValue:function(e){return this._isValueEquals(e,this.option("value"))},_shouldCloseOnItemClick:function(){return!(this.option("showSelectionControls")&&"single"!==this.option("selectionMode"))},_listItemClickHandler:function(e){var t=this._getCurrentValue();this._focusListElement((0,o.Z)(e.itemElement)),this._saveValueChangeEvent(e.event),this._completeSelection(this._valueGetter(e.itemData)),this._shouldCloseOnItemClick()&&this.option("opened",!1),this.option("searchEnabled")&&t===this._valueGetter(e.itemData)&&this._updateField(e.itemData),this._shouldClearFilter()&&this._cancelSearchIfNeed()},_shouldClearFilter:function(){return this._wasSearch()},_completeSelection:function(e){this._setValue(e)},_loadItem:function(e,t){var i=this,n=new ot.BH;return this.callBase(e,t).done(function(e){n.resolve(e)}.bind(this)).fail(function(t){if(null===t||void 0===t||!t.shouldSkipCallback){var o=i.option("selectedItem");i.option("acceptCustomValue")&&e===i._valueGetter(o)?n.resolve(o):n.reject()}}.bind(this)),n.promise()},_loadInputValue:function(e,t){return this._loadItemDeferred=this._loadItem(e).always(t),this._loadItemDeferred},_isCustomItemSelected:function(){var e=this.option("selectedItem"),t=this._searchValue(),i=this._displayGetter(e);return!i||t!==i.toString()},_valueChangeEventHandler:function(e){this.option("acceptCustomValue")&&this._isCustomItemSelected()&&!this._isValueChanging&&(this._isValueChanging=!0,this._customItemAddedHandler(e))},_initCustomItemCreatingAction:function(){this._customItemCreatingAction=this._createActionByOption("onCustomItemCreating")},_createCustomItem:function(e){var t={text:e},i=this._customItemCreatingAction(t),n=(0,v.IS)(i,t.customItem);return(0,l.$K)(i)&&ae.Z.log("W0015","onCustomItemCreating","customItem"),n},_customItemAddedHandler:function(e){var t=this._searchValue(),i=this._createCustomItem(t);if(this._saveValueChangeEvent(e),void 0===i)throw this._renderValue(),ae.Z.Error("E0121");(0,l.tI)(i)?(0,ot.p4)(i).done(this._setCustomItem.bind(this)).fail(this._setCustomItem.bind(this,null)):this._setCustomItem(i)},_setCustomItem:function(e){this._disposed||(e=e||null,this.option("selectedItem",e),this._cancelSearchIfNeed(),this._setValue(this._valueGetter(e)),this._renderDisplayText(this._displayGetter(e)),this._isValueChanging=!1)},_clearValueHandler:function(e){return this._preventFiltering=!0,this.callBase(e),this._searchCanceled(),!1},_wasSearch:function(e){if(!arguments.length)return!!this._wasSearchValue;this._wasSearchValue=e},_searchHandler:function(){this._preventFiltering?delete this._preventFiltering:(this._needPassDataSourceToList()&&this._wasSearch(!0),this.callBase(arguments))},_dataSourceFiltered:function(e){this.callBase(),null!==e&&(this._renderInputSubstitution(),this._renderFocusedElement())},_valueSubstituted:function(){var e=this._input().get(0),t=this._searchValue().length,i=0===e.selectionStart&&e.selectionEnd===t,n=e.selectionStart!==e.selectionEnd,o=t===e.selectionEnd;return this._wasSearch()&&n&&!i&&o&&this._shouldSubstitutionBeRendered()},_shouldSubstitutionBeRendered:function(){return!this._preventSubstitution&&this.option("searchEnabled")&&!this.option("acceptCustomValue")&&"startswith"===this.option("searchMode")},_renderInputSubstitution:function(){if(this._shouldSubstitutionBeRendered()){var e=this._list&&this._getPlainItems(this._list.option("items"))[0];if(e){var t=this._input(),i=t.val().length;if(0!==i){var n=t.get(0),o=this._displayGetter(e).toString();n.value=o,this._caret({start:i,end:o.length})}}}else delete this._preventSubstitution},_dispose:function(){this._renderInputValueAsync=v.ZT,delete this._loadItemDeferred,this.callBase()},_optionChanged:function(e){switch(e.name){case"customItemCreateEvent":this._refreshValueChangeEvent(),this._refreshFocusEvent(),this._refreshEvents();break;case"onCustomItemCreating":this._initCustomItemCreatingAction();break;case"tooltipEnabled":this._renderTooltip();break;case"displayCustomValue":case"acceptCustomValue":case"showSelectionControls":this._invalidate();break;case"allowClearing":break;default:this.callBase(e)}}});(0,C.Z)("dxSelectBox",dT);var uT=dT,cT="dx-timeview",hT="dx-timeview-clock",pT="dx-timeview-field",fT="dx-timeview-hourarrow",gT="dx-timeview-time-separator",mT="dx-timeview-format12",_T=-1,vT=1,yT="dx-timeview-minutearrow",CT=function(e,t,i){bT(e,t,i)},bT=function(e,t,i){e.css("transform","rotate("+t+"deg) translate(0,"+i+"px)")},xT=zc.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{value:new Date(Date.now()),use24HourFormat:!0,_showClock:!0,_arrowOffset:5,stylingMode:void 0})},_getValue:function(){return this.option("value")||new Date},_init:function(){this.callBase(),this.$element().addClass(cT)},_render:function(){this.callBase(),this._renderBox(),this._updateTime()},_renderBox:function(){var e=(0,o.Z)("
").appendTo(this.$element()),t=[];this.option("_showClock")&&t.push({ratio:1,shrink:0,baseSize:"auto",template:this._renderClock.bind(this)}),t.push({ratio:0,shrink:0,baseSize:"auto",template:this._renderField.bind(this)}),this._createComponent(e,ng,{height:"100%",width:"100%",direction:"col",items:t})},_renderClock:function(e,t,i){this._$hourArrow=(0,o.Z)("
").addClass(fT),this._$minuteArrow=(0,o.Z)("
").addClass(yT);var n=(0,o.Z)(i);n.addClass(hT).append(this._$hourArrow).append(this._$minuteArrow),this.setAria("role","presentation",n)},_updateClock:function(){var e=this._getValue(),t=e.getHours()/12*360+e.getMinutes()/60*30,i=e.getMinutes()/60*360;CT(this._$hourArrow,t,this.option("_arrowOffset")),CT(this._$minuteArrow,i,this.option("_arrowOffset"))},_getBoxItems:function(e){var t=[{ratio:0,shrink:0,baseSize:"auto",template:()=>this._hourBox.$element()},{ratio:0,shrink:0,baseSize:"auto",template:(0,o.Z)("
").addClass(gT).text(gy.Z.getTimeSeparator())},{ratio:0,shrink:0,baseSize:"auto",template:()=>this._minuteBox.$element()}];return e&&t.push({ratio:0,shrink:0,baseSize:"auto",template:()=>this._format12.$element()}),t},_renderField:function(){var e=!this.option("use24HourFormat");return this._createHourBox(e),this._createMinuteBox(),e&&this._createFormat12Box(),this._createComponent((0,o.Z)("
").addClass(pT),ng,{direction:"row",align:"center",crossAlign:"center",items:this._getBoxItems(e)}).$element()},_createHourBox:function(e){var t=this._hourBox=this._createComponent((0,o.Z)("
"),rv,(0,a.l)({min:-1,max:e?13:24,value:this._getValue().getHours(),onValueChanged:this._onHourBoxValueChanged.bind(this),onKeyboardHandled:e=>this._keyboardHandler(e)},this._getNumberBoxConfig()));t.setAria("label","hours")},_isPM:function(){return!this.option("use24HourFormat")&&1===this._format12.option("value")},_onHourBoxValueChanged:function(e){var{value:t,component:i}=e,n=this._getValue(),o=new Date(n),r=this._convertMaxHourToMin(t);i.option("value",r),this._isPM()&&(r+=12),o.setHours(r),Iy.normalizeTime(o),this.option("value",o)},_convertMaxHourToMin:function(e){var t=this.option("use24HourFormat")?24:12;return(t+e)%t},_createMinuteBox:function(){var e=this._minuteBox=this._createComponent((0,o.Z)("
"),rv,(0,a.l)({min:-1,max:60,value:this._getValue().getMinutes(),onKeyboardHandled:e=>this._keyboardHandler(e),onValueChanged:e=>{var{value:t,component:i}=e,n=(60+t)%60;i.option("value",n);var o=new Date(this._getValue());o.setMinutes(n),Iy.normalizeTime(o),this.option("value",o)}},this._getNumberBoxConfig()));e.setAria("label","minutes")},_createFormat12Box:function(){var e=gy.Z.getPeriodNames(),t=this._format12=this._createComponent((0,o.Z)("
").addClass(mT),uT,{items:[{value:_T,text:e[0]},{value:vT,text:e[1]}],valueExpr:"value",displayExpr:"text",onKeyboardHandled:e=>this._keyboardHandler(e),onValueChanged:e=>{var{value:t}=e,i=this._getValue().getHours(),n=new Date(this._getValue()),o=(i+12*t)%24;n.setHours(o),this.option("value",n)},value:this._getValue().getHours()>=12?vT:_T,stylingMode:this.option("stylingMode")});t.setAria("label","type")},_refreshFormat12:function(){if(!this.option("use24HourFormat")){var e=this._getValue(),t=e.getHours(),i=t>=12,n=i?vT:_T;this._silentEditorValueUpdate(this._format12,n)}},_silentEditorValueUpdate:function(e,t){e&&(e._suppressValueChangeAction(),e.option("value",t),e._resumeValueChangeAction())},_getNumberBoxConfig:function(){return{showSpinButtons:!0,displayValueFormatter:function(e){return(e<10?"0":"")+e},stylingMode:this.option("stylingMode")}},_normalizeHours:function(e){return this.option("use24HourFormat")?e:e%12||12},_updateField:function(){var e=this._normalizeHours(this._getValue().getHours());this._silentEditorValueUpdate(this._hourBox,e),this._silentEditorValueUpdate(this._minuteBox,this._getValue().getMinutes()),this._refreshFormat12()},_updateTime:function(){this.option("_showClock")&&this._updateClock(),this._updateField()},_visibilityChanged:function(e){e&&this._updateTime()},_optionChanged:function(e){switch(e.name){case"value":this._updateTime(),this.callBase(e);break;case"_arrowOffset":break;case"use24HourFormat":case"_showClock":case"stylingMode":this._invalidate();break;default:this.callBase(e)}}});(0,C.Z)("dxTimeView",xT);var wT=xT,TT=(0,s.Jj)(),ST=573,IT="dx-datebox-adaptivity-mode",ET="dx-datebox-datetime-time-side",DT=ZC.inherit({NAME:"CalendarWithTime",getDefaultOptions:function(){return(0,a.l)(this.callBase(),{applyValueMode:"useButtons",buttonsLocation:"bottom after","dropDownOptions.showTitle":!1})},_closeDropDownByEnter:function(){return _y.Z.sameDate(this._getContouredValue(),this.widgetOption("value"))},getDisplayFormat:function(e){return e||"shortdateshorttime"},_is24HourFormat:function(){return gy.Z.is24HourFormat(this.getDisplayFormat(this.dateBox.option("displayFormat")))},_getContouredValue:function(){var e=this.callBase();return this._updateDateTime(e)},_renderWidget:function(){this.callBase(),this._timeView=this.dateBox._createComponent((0,o.Z)("
"),wT,{value:this.dateBoxValue(),_showClock:!this._isShrinkView(),use24HourFormat:this._is24HourFormat(),onValueChanged:this._valueChangedHandler.bind(this),stylingMode:this.dateBox.option("stylingMode")}),this._timeView.registerKeyHandler("escape",this._escapeHandler.bind(this))},renderOpenedState:function(){this.callBase();var e=this._getPopup();e&&e.$wrapper().toggleClass(IT,this._isSmallScreen()),clearTimeout(this._repaintTimer),this._repaintTimer=setTimeout(function(){this._getPopup()&&this._getPopup().repaint()}.bind(this),0)},isAdaptivityChanged:function(){var e=this._isShrinkView(),t=this._currentAdaptiveMode;return e!==t?(this._currentAdaptiveMode=e,void 0!==t):this.callBase()},_updateValue:function(e){var t=this.dateBoxValue();t||e||(t=new Date,Iy.normalizeTime(t)),this.callBase(),this._timeView&&(t&&this._timeView.option("value",t),this._timeView.option("use24HourFormat",this._is24HourFormat()))},_isSmallScreen:function(){return(0,n.dz)(TT)<=ST},_isShrinkView:function(){return!this.dateBox.option("showAnalogClock")||this.dateBox.option("adaptivityEnabled")&&this._isSmallScreen()},_getBoxItems:function(){var e=[{ratio:0,shrink:0,baseSize:"auto",name:"calendar"}];return this._isShrinkView()||e.push({ratio:0,shrink:0,baseSize:"auto",name:"time"}),e},renderPopupContent:function(){this.callBase(),this._currentAdaptiveMode=this._isShrinkView();var e=this._getPopup().$content();this._box=this.dateBox._createComponent((0,o.Z)("
").appendTo(e),ng,{direction:"row",crossAlign:"stretch",items:this._getBoxItems(),itemTemplate:function(e,t,i){var n=(0,o.Z)("
");switch(e.name){case"calendar":n.append(this._widget.$element()),this._isShrinkView()&&(this._timeView.$element().addClass(ET),n.append(this._timeView.$element()));break;case"time":n.append(this._timeView.$element()),(0,o.Z)(i).addClass(ET)}return n}.bind(this)}),this._attachTabHandler()},popupConfig:function(e){var t=this.callBase(e);return(0,a.l)(t,{width:"auto"})},getFirstPopupElement:function(){return this._timeView._hourBox.$element().find("input")},_attachTabHandler:function(){var e=this.dateBox;this._timeView._hourBox.registerKeyHandler("tab",(function(t){t.shiftKey&&(t.preventDefault(),e.focus())}))},_preventFocusOnPopup:function(e){(0,o.Z)(e.target).hasClass("dx-texteditor-input")||(this.callBase.apply(this,arguments),this.dateBox._hasFocusClass()||this.dateBox.focus())},_updateDateTime:function(e){var t=this._timeView.option("value");return e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e},getValue:function(){var e,t=null!==(e=this._widget.option("value"))&&void 0!==e?e:this._widget.getContouredDate();return t=t?new Date(t):new Date,this._updateDateTime(t)},dispose:function(){clearTimeout(this._removeMinWidthTimer),clearTimeout(this._repaintTimer),this.callBase()}}),kT=DT,OT=(0,s.Jj)(),AT="date",PT={min:new Date(0,0,0,0,0),max:new Date(0,0,0,23,59)},MT=LC.inherit({NAME:"List",supportedKeys:function(){return{tab:function(){var{opened:e,applyValueMode:t}=this.option();e&&"instantly"===t&&this.close()},space:v.ZT,home:v.ZT,end:v.ZT}},getDefaultOptions:function(){return(0,a.l)(this.callBase(),{applyValueMode:"instantly"})},getDisplayFormat:function(e){return e||"shorttime"},popupConfig:function(e){return e},getValue:function(){var e=this._widget.option("selectedIndex");if(-1===e)return this.dateBox.option("value");var t=this._widgetItems[e];return this._getDateByItemData(t)},useCurrentDateByDefault:function(){return!0},getDefaultDate:function(){return new Date(null)},popupShowingHandler:function(){this.dateBox._dimensionChanged()},_renderWidget:function(){this.callBase(),this._refreshItems()},_getWidgetName:function(){return bw},_getWidgetOptions:function(){return{itemTemplate:this._timeListItemTemplate.bind(this),onItemClick:this._listItemClickHandler.bind(this),tabIndex:-1,onFocusedItemChanged:this._refreshActiveDescendant.bind(this),selectionMode:"single"}},_refreshActiveDescendant:function(e){this.dateBox.setAria("activedescendant",""),this.dateBox.setAria("activedescendant",e.actionValue)},_refreshItems:function(){this._widgetItems=this._getTimeListItems(),this._widget.option("items",this._widgetItems)},renderOpenedState:function(){this._widget&&(this._widget.option("focusedElement",null),this._setSelectedItemsByValue(),this._widget.option("templatesRenderAsynchronously")?this._asyncScrollTimeout=setTimeout(this._scrollToSelectedItem.bind(this)):this._scrollToSelectedItem())},dispose:function(){this.callBase(),clearTimeout(this._asyncScrollTimeout)},_updateValue:function(){this._widget&&(this._refreshItems(),this._setSelectedItemsByValue(),this._scrollToSelectedItem())},_setSelectedItemsByValue:function(){var e=this.dateBoxValue(),t=this._getDateIndex(e);-1===t?this._widget.option("selectedItems",[]):this._widget.option("selectedIndex",t)},_scrollToSelectedItem:function(){this._widget.scrollToItem(this._widget.option("selectedIndex"))},_getDateIndex:function(e){for(var t=-1,i=0,n=this._widgetItems.length;iIy.ONE_DAY&&(n=Iy.ONE_DAY),i-eo,a=e.style;this.$element().toggleClass(HT,!r),r?(void 0===this._storedPadding&&(this._storedPadding=t?n.leftPadding:n.rightPadding),t?a.paddingLeft=0:a.paddingRight=0):t?a.paddingLeft=this._storedPadding+"px":a.paddingRight=this._storedPadding+"px"}},_getClearButtonWidth:function(){var e=0;if(this._isClearButtonVisible()&&""===this._input().val()){var t=this.$element().find("."+LT).get(0);e=parseFloat(BT.getComputedStyle(t).width)}return e},_getLongestElementDimensions:function(){var e=this._strategy.getDisplayFormat(this.option("displayFormat")),t=gy.Z.format(Iy.getLongestDate(e,gy.Z.getMonthNames(),gy.Z.getDayNames()),e),i=this._input(),n=i.get(0),o=(0,M.l5)(i,t),r=void 0!==this._storedPadding,a=r?this._storedPadding:0;o.appendTo(this.$element());var s=parseFloat(BT.getComputedStyle(o.get(0)).width),l=parseFloat(BT.getComputedStyle(n).paddingRight),d=parseFloat(BT.getComputedStyle(n).paddingLeft),u=s+d+l+a;return o.remove(),{width:u,leftPadding:d,rightPadding:l}},_getKeyboardListeners(){return this.callBase().concat([this._strategy&&this._strategy.getKeyboardListener()])},_renderPopup:function(){this.callBase(),this._popup.$wrapper().addClass(NT),this._renderPopupWrapper()},_getPopupToolbarItems(){var e,t,i,n=this.callBase();return null!==(e=null===(t=(i=this._strategy)._getPopupToolbarItems)||void 0===t?void 0:t.call(i,n))&&void 0!==e?e:n},_popupConfig:function(){var e=this.callBase();return(0,a.l)(this._strategy.popupConfig(e),{title:this._getPopupTitle(),dragEnabled:!1})},_renderPopupWrapper:function(){if(this._popup){var e=this.$element(),t=(0,a.l)({},WT,$T);(0,E.S6)(t,function(t,i){e.removeClass(NT+"-"+i)}.bind(this)),this._popup.$wrapper().addClass(NT+"-"+this.option("type")).addClass(NT+"-"+this._pickerType).addClass(ZT)}},_renderPopupContent:function(){this.callBase(),this._strategy.renderPopupContent()},_getFirstPopupElement:function(){return this._strategy.getFirstPopupElement()||this.callBase()},_getLastPopupElement:function(){return this._strategy.getLastPopupElement()||this.callBase()},_popupShowingHandler:function(){this.callBase(),this._strategy.popupShowingHandler()},_popupShownHandler:function(){this.callBase(),this._strategy.renderOpenedState()},_popupHiddenHandler:function(){this.callBase(),this._strategy.renderOpenedState(),this._strategy.popupHiddenHandler()},_visibilityChanged:function(e){e&&this._formatValidationIcon()},_clearValueHandler:function(e){this.option("text",""),this.callBase(e)},_readOnlyPropValue:function(){if(this._pickerType===$T.rollers)return!0;var e=w.Z.real().platform,t=this._isNativeType()&&("ios"===e||"android"===e);return t?this.option("readOnly"):this.callBase()},_isClearButtonVisible:function(){return this.callBase()&&!this._isNativeType()},_renderValue:function(){var e=this.dateOption("value");return this.option("text",this._getDisplayedText(e)),this._strategy.renderValue(),this.callBase()},_setSubmitValue:function(){var e=this.dateOption("value"),t=this.option("dateSerializationFormat"),i=Iy.SUBMIT_FORMATS_MAP[this.option("type")],n=t?vy.Z.serializeDate(e,t):Iy.toStandardDateFormat(e,i);this._getSubmitElement().val(n)},_getDisplayedText:function(e){var t,i=this.option("mode");if("text"===i){var n=this._strategy.getDisplayFormat(this.option("displayFormat"));t=gy.Z.format(e,n)}else{var o=this._getFormatByMode(i);t=o?gy.Z.format(e,o):Iy.toStandardDateFormat(e,i)}return t},_getFormatByMode:function(e){return(0,b.inputType)(e)?null:Iy.FORMATS_MAP[e]},_valueChangeEventHandler:function(e){var{text:t,type:i,validationError:n}=this.option(),o=this.dateOption("value");if(t!==this._getDisplayedText(o)){var r=this._getParsedDate(t),a=null!==o&&void 0!==o?o:this._getDateByDefault(),s=Iy.mergeDates(a,r,i),l=r&&"time"===i?s:r;if(this._applyInternalValidation(l).isValid){var d=this._getDisplayedText(s);a&&s&&a.getTime()===s.getTime()&&d!==t?this._renderValue():this.dateValue(s,e)}}else n&&!n.editorSpecific||(this._applyInternalValidation(o),this._applyCustomValidation(o))},_getDateByDefault:function(){return this._strategy.useCurrentDateByDefault()&&this._strategy.getDefaultDate()},_getParsedDate:function(e){var t=this._strategy.getDisplayFormat(this.option("displayFormat")),i=this._strategy.getParsedText(e,t);return null!==i&&void 0!==i?i:void 0},_applyInternalValidation(e){var t=this.option("text"),i=!!t&&null!==e,n=!!e&&(0,l.J_)(e)&&!isNaN(e.getTime()),o=n&&_y.Z.dateInRange(e,this.dateOption("min"),this.dateOption("max"),this.option("type")),r=!i&&!e||o,a="";return n?o||(a=this.option("dateOutOfRangeMessage")):a=this.option("invalidDateMessage"),this.option({isValid:r,validationError:r?null:{editorSpecific:!0,message:a}}),{isValid:r,isDate:n}},_applyCustomValidation:function(e){this.validationRequest.fire({editor:this,value:this._serializeDate(e)})},_isValueChanged:function(e){var t=this.dateOption("value"),i=t&&t.getTime(),n=e&&e.getTime();return i!==n},_isTextChanged:function(e){var t=this.option("text"),i=e&&this._getDisplayedText(e)||"";return t!==i},_renderProps:function(){this.callBase(),this._input().attr("autocomplete","off")},_renderOpenedState:function(){this._isNativeType()||this.callBase(),this._strategy.isAdaptivityChanged()&&this._refreshStrategy()},_getPopupTitle:function(){var e=this.option("placeholder");if(e)return e;var t=this.option("type");return t===WT.time?y.Z.format("dxDateBox-simulatedDataPickerTitleTime"):t===WT.date||t===WT.datetime?y.Z.format("dxDateBox-simulatedDataPickerTitleDate"):""},_refreshStrategy:function(){this._strategy.dispose(),this._initStrategy(),this.option(this._strategy.getDefaultOptions()),this._refresh()},_applyButtonHandler:function(e){var t=this._strategy.getValue();this.dateValue(t,e.event),this.callBase()},_dispose:function(){var e;this.callBase(),null===(e=this._strategy)||void 0===e||e.dispose()},_isNativeType:function(){return this._pickerType===$T.native},_updatePopupTitle:function(){var e;null===(e=this._popup)||void 0===e||e.option("title",this._getPopupTitle())},_optionChanged:function(e){switch(e.name){case"showClearButton":case"buttons":this.callBase.apply(this,arguments),this._formatValidationIcon();break;case"pickerType":this._updatePickerOptions({pickerType:e.value}),this._refreshStrategy(),this._refreshPickerTypeClass(),this._invalidate();break;case"type":this._updatePickerOptions({format:e.value}),this._refreshStrategy(),this._refreshFormatClass(),this._renderPopupWrapper(),this._formatValidationIcon(),this._updateValue();break;case"placeholder":this.callBase.apply(this,arguments),this._updatePopupTitle();break;case"min":case"max":var t=this.option("isValid");this._applyInternalValidation(this.dateOption("value")),t||this._applyCustomValidation(this.dateOption("value")),this._invalidate();break;case"dateSerializationFormat":case"interval":case"disabledDates":case"calendarOptions":this._invalidate();break;case"displayFormat":this.option("text",this._getDisplayedText(this.dateOption("value"))),this._renderInputValue();break;case"text":this._strategy.textChangedHandler(e.value),this.callBase.apply(this,arguments);break;case"isValid":this.callBase.apply(this,arguments),this._formatValidationIcon();break;case"showDropDownButton":this._formatValidationIcon(),this.callBase.apply(this,arguments);break;case"readOnly":this.callBase.apply(this,arguments),this._formatValidationIcon();break;case"todayButtonText":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"invalidDateMessage":case"dateOutOfRangeMessage":case"adaptivityEnabled":case"showAnalogClock":break;default:this.callBase.apply(this,arguments)}},_getSerializationFormat:function(){var e=this.option("value");return this.option("dateSerializationFormat")&&(0,Oe.Z)().forceIsoDateParsing?this.option("dateSerializationFormat"):(0,l.kE)(e)?"number":(0,l.HD)(e)?vy.Z.getDateSerializationFormat(e):void 0},_updateValue:function(e){this.callBase(),this._applyInternalValidation(null!==e&&void 0!==e?e:this.dateOption("value"))},dateValue:function(e,t){var i=this._isValueChanged(e);return i&&t&&this._saveValueChangeEvent(t),i||(this._isTextChanged(e)?this._updateValue(e):""===this.option("text")&&this._applyCustomValidation(e)),this.dateOption("value",e)},dateOption:function(e,t){if(1===arguments.length)return vy.Z.deserializeDate(this.option(e));this.option(e,this._serializeDate(t))},_serializeDate:function(e){var t=this._getSerializationFormat();return vy.Z.serializeDate(e,t)},_clearValue:function(){var e=this.option("value");this.callBase(),null===e&&this._applyCustomValidation(null)},reset:function(){var e=this.option("value");this.callBase(),null===e&&this._applyInternalValidation(null)}}),UT=jT,GT="dateBoxMask",qT=1,YT=-1,XT=UT.inherit({_supportedKeys(e){var t=this.callBase(e),i=e=>{var i=t[(0,R.EV)(e)];return i&&i.apply(this,[e])},n=(e,t)=>this._shouldUseOriginalHandler(e)?i.apply(this,[e]):t.apply(this,[e]);return(0,a.l)({},t,{del:e=>n(e,(e=>{this._revertPart(qT),this._isAllSelected()||e.preventDefault()})),backspace:e=>n(e,(e=>{this._revertPart(YT),this._isAllSelected()||e.preventDefault()})),home:e=>n(e,(e=>{this._selectFirstPart(),e.preventDefault()})),end:e=>n(e,(e=>{this._selectLastPart(),e.preventDefault()})),escape:e=>n(e,(e=>{this._revertChanges(e)})),enter:e=>n(e,(e=>{this._enterHandler(e)})),leftArrow:e=>n(e,(e=>{this._selectNextPart(YT),e.preventDefault()})),rightArrow:e=>n(e,(e=>{this._selectNextPart(qT),e.preventDefault()})),upArrow:e=>n(e,(e=>{this._upDownArrowHandler(qT),e.preventDefault()})),downArrow:e=>n(e,(e=>{this._upDownArrowHandler(YT),e.preventDefault()}))})},_shouldUseOriginalHandler(e){var t=this.option("opened")&&e&&-1===["backspace","del"].indexOf((0,R.EV)(e));return!this._useMaskBehavior()||t||e&&e.altKey},_upDownArrowHandler(e){this._setNewDateIfEmpty();var t=this._getActivePartValue(this._initialMaskValue),i=this._getActivePartValue(),n=i-t;this._loadMaskValue(this._initialMaskValue),this._partIncrease(n+e,!0)},_getDefaultOptions(){return(0,a.l)(this.callBase(),{useMaskBehavior:!1,emptyDateValue:new Date(2e3,0,1,0,0,0)})},_isSingleCharKey(e){var{originalEvent:t,alt:i}=e,n=t.data||t.key;return"string"===typeof n&&1===n.length&&!i&&!(0,R.j1)(t)},_isSingleDigitKey(e){var t,i=null===(t=e.originalEvent)||void 0===t?void 0:t.data;return 1===(null===i||void 0===i?void 0:i.length)&&parseInt(i,10)},_useBeforeInputEvent:function(){return w.Z.real().android},_keyInputHandler(e,t){var i=this._input().val();this._processInputKey(t),e.preventDefault();var n=i!==this._input().val();n&&re.Z.trigger(this._input(),"input")},_keyboardHandler(e){var t=e.originalEvent.key,i=this.callBase(e);return!this._useMaskBehavior()||this._useBeforeInputEvent()||(Me.Z.chrome&&"Process"===e.key&&0===e.code.indexOf("Digit")?(t=e.code.replace("Digit",""),this._processInputKey(t),this._maskInputHandler=()=>{this._renderSelectedPart()}):this._isSingleCharKey(e)&&this._keyInputHandler(e.originalEvent,t)),i},_maskBeforeInputHandler(e){this._maskInputHandler=null;var{inputType:t}=e.originalEvent;"insertCompositionText"===t&&(this._maskInputHandler=()=>{this._renderSelectedPart()});var i="deleteContentBackward"===t,n="deleteContentForward"===t;if(i||n){var o=i?YT:qT;this._maskInputHandler=()=>{this._revertPart(),this._selectNextPart(o)}}if(this._useMaskBehavior()&&this._isSingleCharKey(e)){var r=e.originalEvent.data;return this._keyInputHandler(e,r),!0}},_keyPressHandler(e){var{originalEvent:t}=e;"insertCompositionText"===(null===t||void 0===t?void 0:t.inputType)&&this._isSingleDigitKey(e)&&(this._processInputKey(t.data),this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._selectNextPart()),this.callBase(e),this._maskInputHandler&&(this._maskInputHandler(),this._maskInputHandler=null)},_processInputKey(e){this._isAllSelected()&&(this._activePartIndex=0),this._setNewDateIfEmpty(),isNaN(parseInt(e))?this._searchString(e):this._searchNumber(e)},_isAllSelected(){var e=this._caret();return e.end-e.start===this.option("text").length},_getFormatPattern(){if(this._formatPattern)return this._formatPattern;var e=this._strategy.getDisplayFormat(this.option("displayFormat")),t=(0,l.HD)(e)&&!gy.Z._getPatternByFormat(e);return this._formatPattern=t?e:(0,my.y)((function(t){return gy.Z.format(t,e)})),this._formatPattern},_setNewDateIfEmpty(){if(!this._maskValue){var e="time"===this.option("type")?new Date(null):new Date;this._maskValue=e,this._initialMaskValue=e,this._renderDateParts()}},_partLimitsReached(e){var t=String(e).length,i=this._getActivePartProp("pattern").length,n=1===i,o=n?t:Math.min(i,t),r=this._searchValue.length===o,a=parseInt(this._searchValue+"0")>e;return r||a},_searchNumber(e){var{max:t}=this._getActivePartLimits(),i=String(t).length;this._searchValue=(this._searchValue+e).substr(-i),isNaN(this._searchValue)&&(this._searchValue=e),this._setActivePartValue(this._searchValue),this._partLimitsReached(t)&&this._selectNextPart(qT)},_searchString(e){if(isNaN(parseInt(this._getActivePartProp("text")))){for(var t=this._getActivePartProp("limits")(this._maskValue),i=this._searchValue+e.toLowerCase(),n=t.max-t.min,o=0;o<=n;o++)if(this._loadMaskValue(this._initialMaskValue),this._partIncrease(o+1),0===this._getActivePartProp("text").toLowerCase().indexOf(i))return void(this._searchValue=i);this._setNewDateIfEmpty(),this._searchValue&&(this._clearSearchValue(),this._searchString(e))}},_clearSearchValue(){this._searchValue=""},_revertPart:function(e){if(!this._isAllSelected()){var t=this._getActivePartValue(this.option("emptyDateValue"));this._setActivePartValue(t),this._selectNextPart(e)}this._clearSearchValue()},_useMaskBehavior(){return this.option("useMaskBehavior")&&"text"===this.option("mode")},_prepareRegExpInfo(){this._regExpInfo=(0,ay.oo)(this._getFormatPattern(),gy.Z);var e=this._regExpInfo.regexp,t=e.source,i=e.flags,n=new RegExp(/(\{[0-9]+,?[0-9]*\})/),o=t.split(n).map((e=>n.test(e)?e:kn.Z.convertDigits(e,!1))).join("");this._regExpInfo.regexp=new RegExp(o,i)},_initMaskState(){this._activePartIndex=0,this._formatPattern=null,this._prepareRegExpInfo(),this._loadMaskValue()},_renderMask(){this.callBase(),this._detachMaskEvents(),this._clearMaskState(),this._useMaskBehavior()&&(this._attachMaskEvents(),this._initMaskState(),this._renderDateParts())},_renderDateParts(){if(this._useMaskBehavior()){var e=this.option("text")||this._getDisplayedText(this._maskValue);e&&(this._dateParts=hy(e,this._regExpInfo),this._input().is(":hidden")||this._selectNextPart())}},_detachMaskEvents(){re.Z.off(this._input(),"."+GT)},_attachMaskEvents(){re.Z.on(this._input(),(0,R.V4)("dxclick",GT),this._maskClickHandler.bind(this)),re.Z.on(this._input(),(0,R.V4)("paste",GT),this._maskPasteHandler.bind(this)),re.Z.on(this._input(),(0,R.V4)("drop",GT),(()=>{this._renderSelectedPart()})),re.Z.on(this._input(),(0,R.V4)("compositionend",GT),this._maskCompositionEndHandler.bind(this)),this._useBeforeInputEvent()&&re.Z.on(this._input(),(0,R.V4)("beforeinput",GT),this._maskBeforeInputHandler.bind(this))},_renderSelectedPart(){this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._selectNextPart()},_selectLastPart(){this.option("text")&&(this._activePartIndex=this._dateParts.length,this._selectNextPart(YT))},_selectFirstPart(){this.option("text")&&(this._activePartIndex=-1,this._selectNextPart(qT))},_onMouseWheel(e){this._useMaskBehavior()&&this._partIncrease(e.delta>0?qT:YT,e)},_selectNextPart(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.option("text")&&!this._disposed){e&&(this._initialMaskValue=new Date(this._maskValue));var t=(0,ln.n$)(this._activePartIndex+e,0,this._dateParts.length-1);if(this._dateParts[t].isStub){var i=0===t&&e<0||t===this._dateParts.length-1&&e>0;if(!i)return void this._selectNextPart(e>=0?e+1:e-1);t=this._activePartIndex}this._activePartIndex!==t&&this._clearSearchValue(),this._activePartIndex=t,this._caret(this._getActivePartProp("caret"))}},_getRealLimitsPattern(){if("d"===this._getActivePartProp("pattern")[0])return"dM"},_getActivePartLimits(e){var t=this._getActivePartProp("limits");return t(this._maskValue,e&&this._getRealLimitsPattern())},_getActivePartValue(e){e=e||this._maskValue;var t=this._getActivePartProp("getter");return(0,l.mf)(t)?t(e):e[t]()},_addLeadingZeroes(e){var t=this._searchValue.match(/^0+/),i=this._getActivePartLimits(),n=String(i.max).length;return((t&&t[0]||"")+String(e)).substr(-n)},_setActivePartValue(e,t){t=t||this._maskValue;var i=this._getActivePartProp("setter"),n=this._getActivePartLimits();e=(0,ln.Z2)(e,n.min,n.max)?e:e%10,e=this._addLeadingZeroes((0,ln.n$)(e,n.min,n.max)),(0,l.mf)(i)?i(t,e):t[i](e),this._renderDisplayText(this._getDisplayedText(t)),this._renderDateParts()},_getActivePartProp(e){if(this._dateParts&&this._dateParts[this._activePartIndex])return this._dateParts[this._activePartIndex][e]},_loadMaskValue(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dateOption("value");this._maskValue=e&&new Date(e),this._initialMaskValue=e&&new Date(e)},_saveMaskValue(){var e=this._maskValue&&new Date(this._maskValue);e&&"date"===this.option("type")&&e.setHours(0,0,0,0),this._initialMaskValue=new Date(e),this.dateOption("value",e)},_revertChanges(){this._loadMaskValue(),this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._renderDateParts()},_renderDisplayText(e){this.callBase(e),this._useMaskBehavior()&&this.option("text",e)},_partIncrease(e,t){this._setNewDateIfEmpty();var{max:i,min:n}=this._getActivePartLimits(t),o=i-n;1===o&&o++;var r=e+this._getActivePartValue();r>i?r=this._applyLimits(r,{limitBase:n,limitClosest:i,limitDelta:o}):r{this._renderSelectedPart()}},_maskPasteHandler(e){var t=this._replaceSelectedText(this.option("text"),this._caret(),(0,M.Zx)(e)),i=gy.Z.parse(t,this._getFormatPattern());i&&this._isDateValid(i)&&(this._maskValue=i,this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._renderDateParts(),this._selectNextPart()),e.preventDefault()},_isDateValid:e=>(0,l.J_)(e)&&!isNaN(e),_isValueDirty(){var e=this.dateOption("value");return(this._maskValue&&this._maskValue.getTime())!==(e&&e.getTime())},_fireChangeEvent(){this._clearSearchValue(),this._isValueDirty()&&re.Z.trigger(this._input(),"change")},_enterHandler(e){this._fireChangeEvent(),this._selectNextPart(qT),e.preventDefault()},_focusOutHandler(e){var t=this._useMaskBehavior()&&!e.isDefaultPrevented();t?(this._fireChangeEvent(),this.callBase(e),this._selectFirstPart(e)):this.callBase(e)},_valueChangeEventHandler(e){var t=this.option("text");this._useMaskBehavior()?(this._saveValueChangeEvent(e),t?null===this._maskValue&&this._loadMaskValue(t):this._maskValue=null,this._saveMaskValue()):this.callBase(e)},_optionChanged(e){switch(e.name){case"useMaskBehavior":this._renderMask();break;case"displayFormat":case"mode":this.callBase(e),this._renderMask();break;case"value":this._loadMaskValue(),this.callBase(e),this._renderDateParts();break;case"emptyDateValue":break;default:this.callBase(e)}},_clearMaskState(){this._clearSearchValue(),delete this._dateParts,delete this._activePartIndex,delete this._maskValue},reset(){this._clearMaskState(),this._activePartIndex=0,this.callBase()},_clean(){this.callBase(),this._detachMaskEvents(),this._clearMaskState()}}),JT=XT;(0,C.Z)("dxDateBox",JT);var QT=P.Z.inherit({ctor(e,t){this.editor=e,this.validator=t,this.validationRequestsCallbacks=[];var i=e=>{this.validationRequestsCallbacks.forEach((t=>t(e)))};e.validationRequest.add(i),e.on("disposing",(function(){e.validationRequest.remove(i)}))},getValue(){return this.editor.option("value")},getCurrentValidationError(){return this.editor.option("validationError")},bypass(){return this.editor.option("disabled")},applyValidationResults(e){this.editor.option({validationErrors:e.brokenRules,validationStatus:e.status})},reset(){this.editor.reset()},focus(){this.editor.focus()}}),eS=QT,tS="dx-validator",iS="valid",nS="invalid",oS="pending",rS=S.Z.inherit({_initOptions:function(e){this.callBase.apply(this,arguments),this.option(Kn.initValidationOptions(e))},_getDefaultOptions(){return(0,a.l)(this.callBase(),{validationRules:[]})},_init(){this.callBase(),this._initGroupRegistration(),this.focused=(0,Sc["default"])(),this._initAdapter(),this._validationInfo={result:null,deferred:null,skipValidation:!1}},_initGroupRegistration(){var e=this._findGroup();this._groupWasInit||this.on("disposing",(function(e){Kn.removeRegisteredValidator(e.component._validationGroup,e.component)})),this._groupWasInit&&this._validationGroup===e||(Kn.removeRegisteredValidator(this._validationGroup,this),this._groupWasInit=!0,this._validationGroup=e,Kn.registerValidatorInGroup(e,this))},_setOptionsByReference(){this.callBase(),(0,a.l)(this._optionsByReference,{validationGroup:!0})},_getEditor(){var e=this.$element()[0];return(0,le.aT)(e,"dx-validation-target")},_initAdapter(){var e=this._getEditor(),t=this.option("adapter");if(!t){if(e)return t=new eS(e,this),t.validationRequestsCallbacks.push((e=>{this._validationInfo.skipValidation||this.validate(e)})),void this.option("adapter",t);throw Xt.Z.Error("E0120")}var i=t.validationRequestsCallbacks;i&&i.push((e=>{this.validate(e)}))},_toggleRTLDirection(e){var t,i,n,o=null!==(t=null===(i=this.option("adapter"))||void 0===i||null===(n=i.editor)||void 0===n?void 0:n.option("rtlEnabled"))&&void 0!==t?t:e;this.callBase(o)},_initMarkup(){this.$element().addClass(tS),this.callBase()},_render(){this.callBase(),this._toggleAccessibilityAttributes()},_toggleAccessibilityAttributes(){var e=this._getEditor();if(e){var t=this.option("validationRules")||[],i=t.some((e=>{var{type:t}=e;return"required"===t}))||null;e.isInitialized()&&e.setAria("required",i),e.option("_onMarkupRendered",(()=>{e.setAria("required",i)}))}},_visibilityChanged(e){e&&this._initGroupRegistration()},_optionChanged(e){switch(e.name){case"validationGroup":return void this._initGroupRegistration();case"validationRules":return this._resetValidationRules(),this._toggleAccessibilityAttributes(),void(void 0!==this.option("isValid")&&this.validate());case"adapter":this._initAdapter();break;case"isValid":case"validationStatus":this.option(Kn.synchronizeValidationOptions(e,this.option()));break;default:this.callBase(e)}},_getValidationRules(){return this._validationRules||(this._validationRules=(0,E.UI)(this.option("validationRules"),((e,t)=>(0,a.l)({},e,{validator:this,index:t})))),this._validationRules},_findGroup(){var e=this.$element();return this.option("validationGroup")||Kn.findGroup(e,this._modelByElement(e))},_resetValidationRules(){delete this._validationRules},validate(e){var t,i=this.option("adapter"),n=this.option("name"),o=i.bypass&&i.bypass(),r=e&&void 0!==e.value?e.value:i.getValue(),s=i.getCurrentValidationError&&i.getCurrentValidationError(),l=this._getValidationRules(),d=this._validationInfo&&this._validationInfo.result;return d&&d.status===oS&&d.value===r?(0,a.l)({},d):(o?t={isValid:!0,status:iS}:s&&s.editorSpecific?(s.validator=this,t={isValid:!1,status:nS,brokenRule:s,brokenRules:[s]}):t=Kn.validate(r,l,n),t.id=(new Li.Z).toString(),this._applyValidationResult(t,i),t.complete&&t.complete.then((e=>{e.id===this._validationInfo.result.id&&this._applyValidationResult(e,i)})),(0,a.l)({},this._validationInfo.result))},reset(){var e=this.option("adapter"),t={id:null,isValid:!0,brokenRule:null,brokenRules:null,pendingRules:null,status:iS,complete:null};this._validationInfo.skipValidation=!0,e.reset(),this._validationInfo.skipValidation=!1,this._resetValidationRules(),this._applyValidationResult(t,e)},_updateValidationResult(e){if(this._validationInfo.result&&this._validationInfo.result.id===e.id)for(var t in e)"id"!==t&&"complete"!==t&&(this._validationInfo.result[t]=e[t]);else{var i=this._validationInfo.deferred&&this._validationInfo.result.complete;this._validationInfo.result=(0,a.l)({},e,{complete:i})}},_applyValidationResult(e,t){var i=this._createActionByOption("onValidated",{excludeValidators:["readOnly"]});if(e.validator=this,this._updateValidationResult(e),t.applyValidationResults&&t.applyValidationResults(this._validationInfo.result),this.option({validationStatus:this._validationInfo.result.status}),this._validationInfo.result.status===oS)return this._validationInfo.deferred||(this._validationInfo.deferred=new ot.BH,this._validationInfo.result.complete=this._validationInfo.deferred.promise()),void this._eventsStrategy.fireEvent("validating",[this._validationInfo.result]);this._validationInfo.result.status!==oS&&(i(e),this._validationInfo.deferred&&(this._validationInfo.deferred.resolve(e),this._validationInfo.deferred=null))},focus(){var e=this.option("adapter");e&&e.focus&&e.focus()},_useTemplates:function(){return!1}});(0,C.Z)("dxValidator",rS);var aS=rS,sS=["dxTagBox","dxRangeSlider"],lS=["dxCalendar","dxCheckBox","dxHtmlEditor","dxRadioGroup","dxRangeSlider","dxSlider","dxSwitch"];function dS(e){var{$parent:t,rootElementCssClassList:i,formOrLayoutManager:n,createComponentCallback:o,item:r,template:a,labelTemplate:s,name:d,formLabelLocation:u,requiredMessageTemplate:c,validationGroup:h,editorValue:p,canAssignUndefinedValueToEditor:f,editorValidationBoundary:g,editorStylingMode:m,showColonAfterLabel:_,managerLabelLocation:v,itemId:y,managerMarkOptions:C,labelMode:b,onLabelTemplateRendered:x}=e,w=(0,l.$K)(r.isRequired)?r.isRequired:!!pS(r.validationRules),T=r.itemType===Pg,S=r.helpText?"dx-"+new Li.Z:null,I=fS({item:r,id:y,isRequired:w,managerMarkOptions:C,showColonAfterLabel:_,labelLocation:v,formLabelMode:b,labelTemplate:s,onLabelTemplateRendered:x}),E=I.visible&&(I.text||I.labelTemplate&&T),{location:D,labelID:k}=I,O="top"!==D&&["dxTextArea","dxRadioGroup","dxCalendar","dxHtmlEditor"].includes(r.editorType),A=hS({editorType:r.editorType,editorValue:p,defaultEditorName:r.dataField,canAssignUndefinedValueToEditor:f,externalEditorOptions:r.editorOptions,editorInputId:y,editorValidationBoundary:g,editorStylingMode:m,formLabelMode:b,labelText:I.textWithoutColon,labelMark:I.markOptions.showRequiredMark?String.fromCharCode(160)+I.markOptions.requiredMark:""}),P=I.markOptions.showOptionalMark&&!I.visible&&"hidden"!==A.labelMode&&!(0,l.$K)(r.helpText),M=P?I.markOptions.optionalMark:r.helpText;return{$parent:t,rootElementCssClassList:i,formOrLayoutManager:n,createComponentCallback:o,labelOptions:I,labelNeedBaselineAlign:O,labelLocation:D,needRenderLabel:E,item:r,isSimpleItem:T,isRequired:w,template:a,helpID:S,labelID:k,name:d,helpText:M,formLabelLocation:u,requiredMessageTemplate:c,validationGroup:h,editorOptions:A}}function uS(e){var{showRequiredMark:t,requiredMark:i,showOptionalMark:n,optionalMark:o}=e;return t||n?String.fromCharCode(160)+(t?i:o):""}function cS(e,t){var{showRequiredMark:i,requiredMark:n,showOptionalMark:o,optionalMark:r}=e;return{showRequiredMark:i&&t,requiredMark:n,showOptionalMark:o&&!t,optionalMark:r}}function hS(e){var{editorType:t,defaultEditorName:i,editorValue:n,canAssignUndefinedValueToEditor:o,externalEditorOptions:r,editorInputId:s,editorValidationBoundary:d,editorStylingMode:u,formLabelMode:c,labelText:h,labelMark:p}=e,f={};(void 0!==n||o)&&(f.value=n),-1!==sS.indexOf(t)&&(f.value=f.value||[]);var g=null===r||void 0===r?void 0:r.labelMode;(0,l.$K)(g)||(g="outside"===c?"hidden":c);var m=(null===r||void 0===r?void 0:r.stylingMode)||u,_=(0,a.l)(!0,f,r,{inputAttr:{id:s},validationBoundary:d,stylingMode:m,label:h,labelMode:g,labelMark:p});return r&&(_.dataSource&&(_.dataSource=r.dataSource),_.items&&(_.items=r.items)),i&&!_.name&&(_.name=i),_}function pS(e){var t;return e&&e.length&&(0,E.S6)(e,(function(e,i){if("required"===i.type)return t=!0,!1})),t}function fS(e){var{item:t,id:i,isRequired:n,managerMarkOptions:o,showColonAfterLabel:r,labelLocation:s,labelTemplate:l,formLabelMode:d,onLabelTemplateRendered:u}=e,c=lS.includes(t.editorType),h=(0,a.l)({showColon:r,location:s,id:i,visible:"outside"===d||c&&"hidden"!==d,isRequired:n},t?t.label:{},{markOptions:cS(o,n),labelTemplate:l,onLabelTemplateRendered:u});return["dxRadioGroup","dxCheckBox","dxLookup","dxSlider","dxRangeSlider","dxSwitch","dxHtmlEditor"].includes(t.editorType)&&(h.labelID="dx-label-".concat(new Li.Z)),!h.text&&t.dataField&&(h.text=(0,sn.GK)(t.dataField)),h.text&&(h.textWithoutColon=h.text,h.text+=h.showColon?":":""),h}var gS="dx-field-item-required-mark",mS="dx-field-item-label-location-",_S="dx-field-item-optional-mark",vS="dx-field-item-label-text";function yS(e){var{text:t,id:i,location:n,alignment:r,labelID:a=null,markOptions:s={},labelTemplate:d,labelTemplateData:u,onLabelTemplateRendered:c}=e;if((!(0,l.$K)(t)||t.length<=0)&&!(0,l.$K)(d))return null;var h=(0,o.Z)("