You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

2 lines
3.7 MiB

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ClipboardJS=t():e.ClipboardJS=t()}(this,function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){var i,o,a,r;r=function(e,t){"use strict";var n,i=(n=t)&&n.__esModule?n:{default:n};var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return a(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,i.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,i.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":o(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=r},o=[e,n(7)],void 0===(a="function"==typeof(i=r)?i.apply(t,o):i)||(e.exports=a)},function(e,t,n){var i=n(6),o=n(5);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!i.string(t))throw new TypeError("Second argument must be a String");if(!i.fn(n))throw new TypeError("Third argument must be a Function");if(i.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(i.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}(e,t,n);if(i.string(e))return function(e,t,n){return o(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(e,t){function n(){}n.prototype={on:function(e,t,n){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var i=this;function o(){i.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,o=n.length;i<o;i++)n[i].fn.apply(n[i].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],o=[];if(i&&t)for(var a=0,r=i.length;a<r;a++)i[a].fn!==t&&i[a].fn._!==t&&o.push(i[a]);return o.length?n[e]=o:delete n[e],this}},e.exports=n},function(e,t,n){var i,o,a,r;r=function(e,t,n,i){"use strict";var o=s(t),a=s(n),r=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();var c=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.resolveOptions(n),i.listenClick(e),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),u(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===l(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,r.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new o.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return d("action",e)}},{key:"defaultTarget",value:function(e){var t=d("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return d("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}]),t}();function d(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}e.exports=c},o=[e,n(0),n(2),n(1)],void 0===(a="function"==typeof(i=r)?i.apply(t,o):i)||(e.exports=a)},function(e,t){var n=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}e.exports=function(e,t){for(;e&&e.nodeType!==n;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},function(e,t,n){var i=n(4);function o(e,t,n,o,a){var r=function(e,t,n,o){return function(n){n.delegateTarget=i(n.target,t),n.delegateTarget&&o.call(e,n)}}.apply(this,arguments);return e.addEventListener(n,r,a),{destroy:function(){e.removeEventListener(n,r,a)}}}e.exports=function(e,t,n,i,a){return"function"==typeof e.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return o(e,t,n,i,a)}))}},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var i=window.getSelection(),o=document.createRange();o.selectNodeContents(e),i.removeAllRanges(),i.addRange(o),t=i.toString()}return t}}])}),function(){"use strict";function e(e){e.fn._fadeIn=e.fn.fadeIn;var t=e.noop||function(){},n=/MSIE/.test(navigator.userAgent),i=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),o=(document.documentMode,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){s(window,e)},e.unblockUI=function(e){l(window,e)},e.growlUI=function(t,n,i,o){var a=e('<div class="growlUI"></div>');t&&a.append("<h1>"+t+"</h1>"),n&&a.append("<h2>"+n+"</h2>"),void 0===i&&(i=3e3);var r=function(t){t=t||{},e.blockUI({message:a,fadeIn:void 0!==t.fadeIn?t.fadeIn:700,fadeOut:void 0!==t.fadeOut?t.fadeOut:1e3,timeout:void 0!==t.timeout?t.timeout:i,centerY:!1,showOverlay:!1,onUnblock:o,css:e.blockUI.defaults.growlCSS})};r();a.css("opacity");a.mouseover(function(){r({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).mouseout(function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(t){if(this[0]===window)return e.blockUI(t),this;var n=e.extend({},e.blockUI.defaults,t||{});return this.each(function(){var t=e(this);n.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,s(this,t)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){l(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var a=null,r=[];function s(s,u){var d,f,g=s==window,_=u&&void 0!==u.message?u.message:void 0;if(!(u=e.extend({},e.blockUI.defaults,u||{})).ignoreIfBlocked||!e(s).data("blockUI.isBlocked")){if(u.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,u.overlayCSS||{}),d=e.extend({},e.blockUI.defaults.css,u.css||{}),u.onOverlayClick&&(u.overlayCSS.cursor="pointer"),f=e.extend({},e.blockUI.defaults.themedCSS,u.themedCSS||{}),_=void 0===_?u.message:_,g&&a&&l(window,{fadeOut:0}),_&&"string"!=typeof _&&(_.parentNode||_.jquery)){var m=_.jquery?_[0]:_,v={};e(s).data("blockUI.history",v),v.el=m,v.parent=m.parentNode,v.display=m.style.display,v.position=m.style.position,v.parent&&v.parent.removeChild(m)}e(s).data("blockUI.onUnblock",u.onUnblock);var y,b,x,w,C=u.baseZ;y=n||u.forceIframe?e('<iframe class="blockUI" style="z-index:'+C+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+u.iframeSrc+'"></iframe>'):e('<div class="blockUI" style="display:none"></div>'),b=u.theme?e('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+C+++';display:none"></div>'):e('<div class="blockUI blockOverlay" style="z-index:'+C+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),u.theme&&g?(w='<div class="blockUI '+u.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(C+10)+';display:none;position:fixed">',u.title&&(w+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(u.title||"&nbsp;")+"</div>"),w+='<div class="ui-widget-content ui-dialog-content"></div>',w+="</div>"):u.theme?(w='<div class="blockUI '+u.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(C+10)+';display:none;position:absolute">',u.title&&(w+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(u.title||"&nbsp;")+"</div>"),w+='<div class="ui-widget-content ui-dialog-content"></div>',w+="</div>"):w=g?'<div class="blockUI '+u.blockMsgClass+' blockPage" style="z-index:'+(C+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+u.blockMsgClass+' blockElement" style="z-index:'+(C+10)+';display:none;position:absolute"></div>',x=e(w),_&&(u.theme?(x.css(f),x.addClass("ui-widget-content")):x.css(d)),u.theme||b.css(u.overlayCSS),b.css("position",g?"fixed":"absolute"),(n||u.forceIframe)&&y.css("opacity",0);var k=[y,b,x],S=e(g?"body":s);e.each(k,function(){this.appendTo(S)}),u.theme&&u.draggable&&e.fn.draggable&&x.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var I=o&&(!e.support.boxModel||e("object,embed",g?null:s).length>0);if(i||I){if(g&&u.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(i||!e.support.boxModel)&&!g)var T=p(s,"borderTopWidth"),D=p(s,"borderLeftWidth"),E=T?"(0 - "+T+")":0,A=D?"(0 - "+D+")":0;e.each(k,function(e,t){var n=t[0].style;if(n.position="absolute",e<2)g?n.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+u.quirksmodeOffsetHack+') + "px"'):n.setExpression("height",'this.parentNode.offsetHeight + "px"'),g?n.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):n.setExpression("width",'this.parentNode.offsetWidth + "px"'),A&&n.setExpression("left",A),E&&n.setExpression("top",E);else if(u.centerY)g&&n.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),n.marginTop=0;else if(!u.centerY&&g){var i="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(u.css&&u.css.top?parseInt(u.css.top,10):0)+') + "px"';n.setExpression("top",i)}})}if(_&&(u.theme?x.find(".ui-widget-content").append(_):x.append(_),(_.jquery||_.nodeType)&&e(_).show()),(n||u.forceIframe)&&u.showOverlay&&y.show(),u.fadeIn){var O=u.onBlock?u.onBlock:t,P=u.showOverlay&&!_?O:t,B=_?O:t;u.showOverlay&&b._fadeIn(u.fadeIn,P),_&&x._fadeIn(u.fadeIn,B)}else u.showOverlay&&b.show(),_&&x.show(),u.onBlock&&u.onBlock.bind(x)();if(c(1,s,u),g?(a=x[0],r=e(u.focusableElements,a),u.focusInput&&setTimeout(h,20)):function(e,t,n){var i=e.parentNode,o=e.style,a=(i.offsetWidth-e.offsetWidth)/2-p(i,"borderLeftWidth"),r=(i.offsetHeight-e.offsetHeight)/2-p(i,"borderTopWidth");t&&(o.left=a>0?a+"px":"0");n&&(o.top=r>0?r+"px":"0")}(x[0],u.centerX,u.centerY),u.timeout){var M=setTimeout(function(){g?e.unblockUI(u):e(s).unblock(u)},u.timeout);e(s).data("blockUI.timeout",M)}}}function l(t,n){var i,o,s=t==window,l=e(t),d=l.data("blockUI.history"),h=l.data("blockUI.timeout");h&&(clearTimeout(h),l.removeData("blockUI.timeout")),n=e.extend({},e.blockUI.defaults,n||{}),c(0,t,n),null===n.onUnblock&&(n.onUnblock=l.data("blockUI.onUnblock"),l.removeData("blockUI.onUnblock")),o=s?e("body").children().filter(".blockUI").add("body > .blockUI"):l.find(">.blockUI"),n.cursorReset&&(o.length>1&&(o[1].style.cursor=n.cursorReset),o.length>2&&(o[2].style.cursor=n.cursorReset)),s&&(a=r=null),n.fadeOut?(i=o.length,o.stop().fadeOut(n.fadeOut,function(){0==--i&&u(o,d,n,t)})):u(o,d,n,t)}function u(t,n,i,o){var a=e(o);if(!a.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),n&&n.el&&(n.el.style.display=n.display,n.el.style.position=n.position,n.el.style.cursor="default",n.parent&&n.parent.appendChild(n.el),a.removeData("blockUI.history")),a.data("blockUI.static")&&a.css("position","static"),"function"==typeof i.onUnblock&&i.onUnblock(o,i);var r=e(document.body),s=r.width(),l=r[0].style.width;r.width(s-1).width(s),r[0].style.width=l}}function c(t,n,i){var o=n==window,r=e(n);if((t||(!o||a)&&(o||r.data("blockUI.isBlocked")))&&(r.data("blockUI.isBlocked",t),o&&i.bindEvents&&(!t||i.showOverlay))){var s="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(s,i,d):e(document).unbind(s,d)}}function d(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&a&&t.data.constrainTabKey){var n=r,i=!t.shiftKey&&t.target===n[n.length-1],o=t.shiftKey&&t.target===n[0];if(i||o)return setTimeout(function(){h(o)},10),!1}var s=t.data,l=e(t.target);return l.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(t),l.parents("div."+s.blockMsgClass).length>0||0===l.parents().children().filter("div.blockUI").length}function h(e){if(r){var t=r[!0===e?r.length-1:0];t&&t.focus()}}function p(t,n){return parseInt(e.css(t,n),10)||0}}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}(),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){var t=/\+/g;function n(e){return o.raw?e:encodeURIComponent(e)}function i(n,i){var a=o.raw?n:function(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(t," ")),o.json?JSON.parse(e):e}catch(e){}}(n);return e.isFunction(i)?i(a):a}var o=e.cookie=function(t,a,r){if(arguments.length>1&&!e.isFunction(a)){if("number"==typeof(r=e.extend({},o.defaults,r)).expires){var s=r.expires,l=r.expires=new Date;l.setMilliseconds(l.getMilliseconds()+864e5*s)}return document.cookie=[n(t),"=",function(e){return n(o.json?JSON.stringify(e):String(e))}(a),r.expires?"; expires="+r.expires.toUTCString():"",r.path?"; path="+r.path:"",r.domain?"; domain="+r.domain:"",r.secure?"; secure":""].join("")}for(var u,c=t?void 0:{},d=document.cookie?document.cookie.split("; "):[],h=0,p=d.length;h<p;h++){var f=d[h].split("="),g=(u=f.shift(),o.raw?u:decodeURIComponent(u)),_=f.join("=");if(t===g){c=i(_,a);break}t||void 0===(_=i(_))||(c[g]=_)}return c};o.defaults={},e.removeCookie=function(t,n){return e.cookie(t,"",e.extend({},n,{expires:-1})),!e.cookie(t)}});var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};(function(){"use strict";var e=this,t=this,n=t?t.document:null,i=(t&&t.document.documentElement,/^(["'](\\.|[^"\\\n\r])*?["']|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/),o=/^-ms-/,a=/[\-_]([\da-z])/gi,r=/([A-Z])/g,s=/\./,l=/[-|+]?[\D]/gi,u=/\D/gi,c=new RegExp("([0-9])([0-9][0-9][0-9][,.])"),d=/&/g,h=/=/,p=/[ ]+/g,f={},g=void 0,_=void 0;f.guid=1,f.getGuid=function(){return f.guid++},f.info=g=function(){var e=arguments,i=function(e,n,i,o,a,r){return t&&t.navigator?(n=-1!=(e=navigator.userAgent.toLowerCase()).search(/mobile/g),-1!=e.search(/iphone/g)?{name:"iphone",version:0,mobile:!0}:-1!=e.search(/ipad/g)?{name:"ipad",version:0,mobile:!0}:-1!=e.search(/android/g)?{name:"android",version:(o=/(android)[ \/]([\w.]+)/.exec(e)||[])[2]||"0",mobile:n}:("","msie"==(a=(o=/(opr)[ \/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[])[1]||"")&&(a="ie"),{name:a,version:o[2]||"0",mobile:n})):{}}(),o=!("undefined"==typeof window||"undefined"==typeof navigator||!t.document),a=t&&/Firefox/i.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel";return{errorMsg:{},version:"1.4.126",baseUrl:"",onerror:function(){console.error(_.toArray(e).join(":"))},eventKeys:{BACKSPACE:8,TAB:9,RETURN:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,HOME:36,END:35,PAGEUP:33,PAGEDOWN:34,INSERT:45,SPACE:32},weekNames:[{label:"SUN"},{label:"MON"},{label:"TUE"},{label:"WED"},{label:"THU"},{label:"FRI"},{label:"SAT"}],browser:i,isBrowser:o,supportTouch:!!t&&("ontouchstart"in t||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),supportFileApi:!!t&&(t.FileReader&&t.File&&t.FileList&&t.Blob),wheelEnm:a,urlUtil:function(e,i){return i=(e={href:t.location.href,param:t.location.search,referrer:n.referrer,pathname:t.location.pathname,hostname:t.location.hostname,port:t.location.port}).href.split(/[\?#]/),e.param=e.param.replace("?",""),e.url=i[0],e.href.search("#")>-1&&(e.hashdata=_.last(i)),i=null,e.baseUrl=_.left(e.href,"?").replace(e.pathname,""),e},getError:function(e,t,n){return g.errorMsg&&g.errorMsg[e]?{className:e,errorCode:t,methodName:n,msg:g.errorMsg[e][t]}:{className:e,errorCode:t,methodName:n}}}}(),f.util=_=function(){var m=Object.prototype.toString;function v(e,t){if(S(e))return[];var n=void 0,i=0,o=e.length;if(void 0===o||"function"==typeof e){for(n in e)if(void 0!==e[n]&&!1===t.call(e[n],n,e[n]))break}else for(;i<o&&(void 0===e[i]||!1!==t.call(e[i],i,e[i++])););return e}function y(e){var t="";if(f.util.isArray(e)){var n=0,i=e.length;for(t+="[";n<i;n++)n>0&&(t+=","),t+=y(e[n]);t+="]"}else if(f.util.isObject(e)){t+="{";var o=[];v(e,function(e,t){o.push('"'+e+'": '+y(t))}),t+=o.join(", "),t+="}"}else t=f.util.isString(e)?'"'+e+'"':f.util.isNumber(e)?e:f.util.isUndefined(e)?"undefined":f.util.isFunction(e)?'"{Function}"':e;return t}function b(e){return"[object Object]"==m.call(e)}function x(e){return"[object Array]"==m.call(e)}function w(e){return"function"==typeof e}function C(e){return"[object String]"==m.call(e)}function k(e){return"[object Number]"==m.call(e)}function S(e){return null==e||""===e}function I(e,t){return void 0===e||void 0===t?"":C(t)?e.indexOf(t)>-1?e.substr(0,e.indexOf(t)):"":k(t)?e.substr(0,t):""}function T(e,t){return void 0===e||void 0===t?"":(e=""+e,C(t)?e.lastIndexOf(t)>-1?e.substr(e.lastIndexOf(t)+1):"":k(t)?e.substr(e.length-t):"")}function D(e){return e.replace(o,"ms-").replace(a,function(e,t){return t.toUpperCase()})}function E(e){return D(e).replace(r,function(e,t){return"-"+t.toLowerCase()})}function A(e,t){var n,i,o,a=(""+e).split(s);return i=Number(a[0].replace(/,/g,""))<0||"-0"==a[0],o=0,a[0]=a[0].replace(l,""),a[1]?(a[1]=a[1].replace(u,""),o=Number(a[0]+"."+a[1])||0):o=Number(a[0])||0,n=i?-o:o,v(t,function(e,t){var i,o;"round"==e&&(n=k(t)?t<0?+(Math.round(n+"e-"+Math.abs(t))+"e+"+Math.abs(t)):+(Math.round(n+"e+"+t)+"e-"+t):Math.round(n)),"floor"==e&&(n=Math.floor(n)),"ceil"==e?n=Math.ceil(n):"money"==e?n=function(e){var t=""+n;if(isNaN(t)||""==t)return"";var i=t.split(".");i[0]+=".";do{i[0]=i[0].replace(c,"$1,$2")}while(c.test(i[0]));return i.length>1?i.join(""):i[0].split(".")[0]}():"abs"==e?n=Math.abs(Number(n)):"byte"==e&&(i="KB",(o=Number(n)/1024)/1024>1&&(i="MB",o/=1024),o/1024>1&&(i="GB",o/=1024),n=A(o,{round:1})+i)}),n}function O(e,t,n,i,o,a){var r;return new Date,t<0&&(t=0),void 0===i&&(i=12),void 0===o&&(o=0),r=new Date(Date.UTC(e,t,n||1,i,o,a||0)),0==t&&1==n&&r.getUTCHours()+r.getTimezoneOffset()/60<0?r.setUTCHours(0):r.setUTCHours(r.getUTCHours()+r.getTimezoneOffset()/60),r}function P(e,t){var n,i,o,a,r,s,l,u,c,d,h,p,f,_,m,v=void 0,y=void 0,b=void 0,x=void 0,w=void 0,k=void 0,S=void 0,I=void 0,D=void 0,E=void 0;if(C(e))if(0==e.length)e=new Date;else if(e.length>15)/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d+)?(([+-]\d\d:\d\d)|Z)?$/i.test(e)||/^\d{4}(-\d\d(-\d\d(T\d\d:\d\d(:\d\d)?(\.\d+)?(([+-]\d\d:\d\d)|Z)?)?)?)?$/i.test(e)?e=new Date(e):(v=(D=(k=e.split(/ /g))[0].split(/\D/g))[0],y=parseFloat(D[1]),b=parseFloat(D[2]),S=(I=k[1]||"09:00").substring(0,5).split(":"),x=parseFloat(S[0]),w=parseFloat(S[1]),"AM"!==T(I,2)&&"PM"!==T(I,2)||(x+=12),e=O(v,y-1,b,x,w));else if(14==e.length)E=e.replace(/\D/g,""),e=O(E.substr(0,4),E.substr(4,2)-1,A(E.substr(6,2)),A(E.substr(8,2)),A(E.substr(10,2)),A(E.substr(12,2)));else if(e.length>7)E=e.replace(/\D/g,""),e=O(E.substr(0,4),E.substr(4,2)-1,A(E.substr(6,2)));else if(e.length>4)E=e.replace(/\D/g,""),e=O(E.substr(0,4),E.substr(4,2)-1,1);else{if(e.length>2)return O((E=e.replace(/\D/g,"")).substr(0,4),E.substr(4,2)-1,1);e=new Date}return void 0===t||void 0===e?e:("add"in t&&(e=function(e,t){var n=void 0,i=void 0,o=void 0,a=void 0;return void 0!==t.d?e.setTime(e.getTime()+864e5*t.d):void 0!==t.m?(n=e.getFullYear(),i=e.getMonth(),o=e.getDate(),(a=B(n+=parseInt(t.m/12),i+=t.m%12))<o&&(o=a),e=new Date(n,i,o,12)):void 0!==t.y?e.setTime(e.getTime()+365*t.y*864e5):void 0!==t.h&&e.setTime(e.getTime()+1e3*t.h*60*60),e}(new Date(e),t.add)),"set"in t&&(e=function(e,t){var n=void 0,i=void 0,o=void 0,a={firstDayOfMonth:function(e){return n=e.getFullYear(),i=e.getMonth(),o=1,new Date(n,i,o,12)},lastDayOfMonth:function(e){return n=e.getFullYear(),i=e.getMonth(),o=B(n,i),new Date(n,i,o,12)}};return t in a?a[t](e):e}(new Date(e),t.set)),"return"in t?(f=t.return,_=void 0,m=void 0,n=e.getUTCFullYear(),_=M(e.getMonth()+1,2),m=M(e.getDate(),2),i=M(e.getHours(),2),o=M(e.getMinutes(),2),a=M(e.getSeconds(),2),r=e.getDay(),/[^y]*(yyyy)[^y]*/gi.exec(f),s=RegExp.$1,/[^m]*(MM)[^m]*/g.exec(f),l=RegExp.$1,/[^d]*(dd)[^d]*/gi.exec(f),u=RegExp.$1,/[^h]*(hh)[^h]*/gi.exec(f),c=RegExp.$1,/[^m]*(mm)[^i]*/g.exec(f),d=RegExp.$1,/[^s]*(ss)[^s]*/gi.exec(f),h=RegExp.$1,/[^d]*(dw)[^w]*/gi.exec(f),p=RegExp.$1,"yyyy"===s&&(f=f.replace(s,T(n,s.length))),"MM"===l&&(1==l.length&&(_=e.getMonth()+1),f=f.replace(l,_)),"dd"===u&&(1==u.length&&(m=e.getDate()),f=f.replace(u,m)),"hh"===c&&(f=f.replace(c,i)),"mm"===d&&(f=f.replace(d,o)),"ss"===h&&(f=f.replace(h,a)),"dw"==p&&(f=f.replace(p,g.weekNames[r].label)),f):e)}function B(e,t){return 3==t||5==t||8==t||10==t?30:1==t?e%4==0&&e%100!=0||e%400==0?29:28:31}function M(e,t,n,i){var o=e.toString(i||10);return R(n||"0",t-o.length)+o}function R(e,t){return t<1?"":new Array(t+1).join(e)}var F,V=(F={textRange:{selectAll:function(e,t,n){},arr:function(e,t,n){t.moveStart("character",n[0]),t.collapse(),t.moveEnd("character",n[1])},start:function(e,t,n){t.moveStart("character",0),t.collapse()},end:function(e,t,n){t.moveStart("character",t.text.length),t.collapse()}},range:{selectAll:function(e,t,n){t.selectNodeContents(e)},arr:function(e,t,n){b(n[0])?(t.setStart(n[0].node,n[0].offset),t.setEnd(n[1].node,n[1].offset)):(t.setStart(e.firstChild,n[0]),t.setEnd(e.firstChild,n[1]))},start:function(e,t,n){t.selectNodeContents(e),t.collapse(!0)},end:function(e,t,n){t.selectNodeContents(e),t.collapse(!1)}}},function(e,t){var i,o,a;if(e instanceof jQuery&&(e=e.get(0)),e){if(n.body.createTextRange?((i=document.body.createTextRange()).moveToElementText(e),o="textRange"):window.getSelection&&(a=window.getSelection(),i=document.createRange(),o="range"),void 0===t)F[o].selectAll.call(this,e,i,t);else if(x(t))F[o].arr.call(this,e,i,t);else for(var r in F[o])if(t==r){F[o][r].call(this,e,i,t);break}n.body.createTextRange?(i.select(),e.focus()):window.getSelection&&(e.focus(),a.removeAllRanges(),a.addRange(i))}});function L(e,t,n){var i=void 0,o=void 0,a=void 0,r=void 0,s=void 0,l=void 0,u=0,c=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=i,a=o;return i=o=void 0,u=t,r=e.apply(a,n)}function f(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-u>=a}function g(){var e=Date.now();if(f(e))return _(e);s=setTimeout(g,function(e){var n=e-u,i=t-(e-l);return d?Math.min(i,a-n):i}(e))}function _(e){return s=void 0,h&&i?p(e):(i=o=void 0,r)}function m(){for(var e=Date.now(),n=f(e),a=arguments.length,h=Array(a),_=0;_<a;_++)h[_]=arguments[_];if(i=h,o=this,l=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(g,t),c?p(e):r}(l);if(d)return s=setTimeout(g,t),p(l)}return void 0===s&&(s=setTimeout(g,t)),r}return t=+t||0,b(n)&&(c=!!n.leading,a=(d="maxWait"in n)?Math.max(+n.maxWait||0,t):a,h="trailing"in n?!!n.trailing:h),m.cancel=function(){void 0!==s&&clearTimeout(s),u=0,i=l=o=s=void 0},m.flush=function(){return void 0===s?r:_(Date.now())},m}function H(e){return"[object String]"!=m.call(e)?e:e?e.replace(/[\<\>\&\"]/gm,function(e){switch(e){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";case'"':return"&quot;";default:return e}}):""}function z(e){return"[object String]"!=m.call(e)?e:e?e.replace(/(&lt;)|(&gt;)|(&amp;)|(&quot;)/gm,function(e){switch(e){case"&lt;":return"<";case"&gt;":return">";case"&amp;":return"&";case"&quot;":return'"';default:return e}}):""}return{alert:function(e){return t.alert(y(e)),e},each:v,map:function(e,t){if(S(e))return[];var n=void 0,i=0,o=e.length,a=[],r=void 0;if(b(e)){for(n in e)if(void 0!==e[n]){if(r=void 0,!1===(r=t.call(e[n],n,e[n])))break;a.push(r)}}else for(;i<o;)if(void 0!==e[i]){if(r=void 0,!1===(r=t.call(e[i],i,e[i++])))break;a.push(r)}return a},search:function(e,t){if(S(e))return-1;if(b(e))for(var n in e){if(void 0!==e[n]&&w(t)&&t.call(e[n],n,e[n]))return n;if(e[n]==t)return n}else for(var i=0,o=e.length;i<o;i++){if(void 0!==e[i]&&w(t)&&t.call(e[i],i,e[i]))return i;if(e[i]==t)return i}return-1},reduce:function(t,n){var i,o,a;if(x(t)){for(i=0,o=t.length,a=t[i];i<o-1&&(void 0===t[i]||!1!==(a=n.call(e,a,t[++i]))););return a}if(b(t)){for(i in t)if(void 0!==t[i]&&!1===(a=n.call(e,a,t[i])))break;return a}return console.error("argument error : ax5.util.reduce - use Array or Object"),null},reduceRight:function(t,n){for(var i=t.length-1,o=t[i];i>0&&(void 0===t[i]||!1!==(o=n.call(e,o,t[--i]))););return o},filter:function(e,t){if(S(e))return[];var n,i=0,o=e.length,a=[];if(b(e))for(n in e)void 0!==e[n]&&t.call(e[n],n,e[n])&&a.push(e[n]);else for(;i<o;)void 0!==e[i]&&(t.call(e[i],i,e[i])&&a.push(e[i]),i++);return a},sum:function(e,t,n){var i=void 0,o=void 0,a=void 0;if(w(t)&&void 0===n&&(n=t,t=0),void 0===t&&(t=0),x(e)){for(i=0,o=e.length;i<o;i++)if(void 0!==e[i]){if(!1===(a=n.call(e[i],e[i])))break;void 0!==a&&(t+=a)}return t}if(b(e)){for(i in e)if(void 0!==e[i]){if(!1===(a=n.call(e[i],e[i])))break;void 0!==a&&(t+=a)}return t}return console.error("argument error : ax5.util.sum - use Array or Object"),t},avg:function(e,t,n){var i=void 0,o=void 0,a=void 0;if(w(t)&&void 0===n&&(n=t,t=0),void 0===t&&(t=0),x(e)){for(i=0,o=e.length;i<o;i++)if(void 0!==e[i]){if(!1===(a=n.call(e[i],e[i])))break;void 0!==a&&(t+=a)}return t/o}if(b(e)){for(i in o=0,e)if(void 0!==e[i]){if(!1===(a=n.call(e[i],e[i])))break;void 0!==a&&(t+=a),++o}return t/o}return console.error("argument error : ax5.util.sum - use Array or Object"),t},toJson:y,parseJson:function(e,t){if(!t&&!i.test(e))return{error:500,msg:"syntax error"};try{return new Function("","return "+e)()}catch(e){return{error:500,msg:"syntax error"}}},first:function(e){if(b(e)){var t=Object.keys(e),n={};return n[t[0]]=e[t[0]],n}return x(e)?e[0]:void console.error("ax5.util.object.first","argument type error")},last:function(e){if(b(e)){var t=Object.keys(e),n={};return n[t[t.length-1]]=e[t[t.length-1]],n}return x(e)?e[e.length-1]:void console.error("ax5.util.object.last","argument type error")},deepCopy:function e(t){var n,i;if("object"==(void 0===t?"undefined":_typeof(t))){if(_.isArray(t)){i=t.length,n=new Array(i);for(var o=0;o<i;o++)n[o]=e(t[o]);return n}return jQuery.extend({},t)}return t},left:I,right:T,getType:function(e){var t;return null!=e&&e==e.window?t="window":e&&1==e.nodeType?t="element":e&&11==e.nodeType?t="fragment":null===e?t="null":void 0===e?t="undefined":"[object Object]"==m.call(e)?t="object":"[object Array]"==m.call(e)?t="array":"[object String]"==m.call(e)?t="string":"[object Number]"==m.call(e)?t="number":"[object NodeList]"==m.call(e)?t="nodelist":"function"==typeof e&&(t="function"),t},isWindow:function(e){return null!=e&&e==e.window},isElement:function(e){return!(!e||1!=e.nodeType&&11!=e.nodeType)},isObject:b,isArray:x,isFunction:w,isString:C,isNumber:k,isNodelist:function(e){return!!("[object NodeList]"==m.call(e)||void 0!==e&&e&&e[0]&&1==e[0].nodeType)},isUndefined:function(e){return void 0===e},isNothing:S,setCookie:function(e,t,i,o){var a;return"number"==typeof i&&(a=new Date).setDate(a.getDate()+i),o=o||{},n.cookie=[escape(e),"=",escape(t),a?"; expires="+a.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("")},getCookie:function(e){for(var t=e+"=",i=n.cookie.split(";"),o=0,a=i.length;o<a;o++){for(var r=i[o];" "==r.charAt(0);)r=r.substring(1);if(-1!=r.indexOf(t))return unescape(r.substring(t.length,r.length))}return""},camelCase:D,snakeCase:E,number:A,toArray:function(e){return void 0!==e.length?Array.prototype.slice.call(e):[]},merge:function(e,t){var n=t.length,i=e.length,o=0;if("number"==typeof n)for(;o<n;o++)e[i++]=t[o];else for(;void 0!==t[o];)e[i++]=t[o++];return e.length=i,e},param:function(e,t){var n;return C(e)&&void 0!==t&&"param"==t?e:C(e)&&void 0!==t&&"object"==t||C(e)&&void 0===t?(n={},v(e.split(d),function(){var e=this.split(h);n[e[0]]?(C(n[e[0]])&&(n[e[0]]=[n[e[0]]]),n[e[0]].push(e[1])):n[e[0]]=e[1]}),n):(n=[],v(e,function(e,t){n.push(e+"="+escape(t))}),n.join("&"))},error:function(){f.info.onerror.apply(this,arguments)},date:P,dday:function(e,t){var n,i=P(e),o=864e5,a=new Date;function r(e){return Math.floor(e.getTime()/o)*o}return void 0===t?n=A((r(i)-r(a))/o,{floor:!0}):(n=A((r(i)-r(a))/o,{floor:!0}),t.today&&(a=P(t.today),n=A((r(i)-r(a))/o,{floor:!0})),t.thisYear&&(n=A((r(new Date(a.getFullYear(),i.getMonth(),i.getDate()))-r(a))/o,{floor:!0}))<0&&(n=A((r(new Date(a.getFullYear()+1,i.getMonth(),i.getDate()))-r(a))/o,{floor:!0})),t.age&&(n=new Date(a.getFullYear(),i.getMonth(),i.getDate()).getFullYear()-i.getFullYear()),n)},daysOfMonth:B,weeksOfMonth:function(e){var t=P(e);return{year:t.getFullYear(),month:t.getMonth()+1,count:parseInt(t.getDate()/7+1)}},setDigit:M,times:R,findParentNode:function(e,t){if(e)for(;function(){var n=!0;if(void 0===t)e=!!e.parentNode&&e.parentNode;else if(w(t))n=t(e);else if(b(t))for(var i in t)if("tagname"===i){if(e.tagName.toLocaleLowerCase()!=t[i]){n=!1;break}}else if("clazz"===i||"class_name"===i){if(!("className"in e)){n=!1;break}for(var o=e.className.split(p),a=!1,r=0;r<o.length;r++)if(o[r]==t[i]){a=!0;break}n=a}else{if(!e.getAttribute){n=!1;break}if(e.getAttribute(i)!=t[i]){n=!1;break}}return!n}();){if(!e.parentNode||!e.parentNode.parentNode){e=!1;break}e=e.parentNode}return e},cssNumber:function(e){var t=(""+e).match(/\D?(\d+)([a-zA-Z%]*)/i),n=t[2]||"px";return t[1]+n},css:function(e){var t;if(b(e)){for(var n in t="",e)t+=n+":"+e[n]+";";return t}if(C(e))return t={},e.split(/[ ]*;[ ]*/g).forEach(function(e){if(""!==(e=e.trim())){var n=e.split(/[ ]*:[ ]*/g);t[n[0]]=n[1]}}),t},isDate:function(e){return e instanceof Date&&!isNaN(e.valueOf())},isDateFormat:function(e){var t=!1;if(e)if(e instanceof Date&&!isNaN(e.valueOf()))t=!0;else{if(e.length>7&&P(e)instanceof Date)return!0;if((e=e.replace(/\D/g,"")).length>7){var n=e.substr(4,2),i=e.substr(6,2);(e=P(e)).getMonth()==n-1&&e.getDate()==i&&(t=!0)}}return t},stopEvent:function(e){e||(e=window.event);return e.cancelBubble=!0,e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),!1},selectRange:V,debounce:L,throttle:function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return b(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),L(e,t,{leading:i,maxWait:t,trailing:o})},escapeHtml:H,unescapeHtml:z,string:function(e){return new function(e){this.value=e,this.toString=function(){return this.value},this.format=function(){for(var e=[],t=0,n=arguments.length;t<n;t++)e=e.concat(arguments[t]);return this.value.replace(/{(\d+)}/g,function(t,n){return void 0!==e[n]?e[n]:t})},this.escape=function(){return H(this.value)},this.unescape=function(){return z(this.value)},this.encode=function(){return e=this.value,encodeURIComponent(e);var e},this.decode=function(){return e=this.value,decodeURIComponent(e);var e},this.left=function(e){return I(this.value,e)},this.right=function(e){return T(this.value,e)},this.camelCase=function(){return D(this.value)},this.snakeCase=function(){return E(this.value)}}(e)},color:function e(t){var n,i,o,a=(i="[\\s|\\(]+("+(n="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",o="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+i),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+i),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+i),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function r(e){return e<=1&&(e=100*e+"%"),e}function s(e){return f.util.number(Math.min(255,Math.max(e,0)),{round:2})}function l(e){return M(Math.round(e).toString(16),2)}function u(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function c(e,t,n){e=u(e,255),t=u(t,255),n=u(n,255);var i,o,a=Math.max(e,t,n),r=Math.min(e,t,n),s=(a+r)/2;if(a==r)i=o=0;else{var l=a-r;switch(o=s>.5?l/(2-a-r):l/(a+r),a){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:o,l:s}}function d(e,t,n){var i=void 0,o=void 0,a=void 0;function r(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=u(e,360),t=u(t,100),n=u(n,100),0===t)i=o=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=r(l,s,e+1/3),o=r(l,s,e),a=r(l,s,e-1/3)}return{r:255*i,g:255*o,b:255*a}}return new function(t){this._originalValue=t,t=function(e){var t=void 0;return(t=a.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=a.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=a.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=a.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=a.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=a.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=a.hex8.exec(e))?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16),a:parseInt(t[4]/255,16),format:"hex8"}:(t=a.hex6.exec(e))?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16),format:"hex"}:(t=a.hex4.exec(e))?{r:parseInt(t[1]+""+t[1],16),g:parseInt(t[2]+""+t[2],16),b:parseInt(t[3]+""+t[3],16),a:parseInt(t[4]+""+t[4],16),format:"hex8"}:!!(t=a.hex3.exec(e))&&{r:parseInt(t[1]+""+t[1],16),g:parseInt(t[2]+""+t[2],16),b:parseInt(t[3]+""+t[3],16),format:"hex"}}(t),this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a||1,this._format=t.format,this._hex=l(this.r)+l(this.g)+l(this.b),this.getHexValue=function(){return this._hex},this.lighten=function(t){t=0===t?0:t||10;var n,i=c(this.r,this.g,this.b);return i.l+=t/100,i.l=Math.min(1,Math.max(0,i.l)),i.h=360*i.h,e("rgba("+s((n=d(i.h,r(i.s),r(i.l))).r)+", "+s(n.g)+", "+s(n.b)+", "+this.a+")")},this.darken=function(t){t=0===t?0:t||10;var n,i=c(this.r,this.g,this.b);return i.l-=t/100,i.l=Math.min(1,Math.max(0,i.l)),i.h=360*i.h,e("rgba("+s((n=d(i.h,r(i.s),r(i.l))).r)+", "+s(n.g)+", "+s(n.b)+", "+this.a+")")},this.getBrightness=function(){return(299*this.r+587*this.g+114*this.b)/1e3},this.isDark=function(){return this.getBrightness()<128},this.isLight=function(){return!this.isDark()},this.getHsl=function(){var e=c(this.r,this.g,this.b);return e.l=Math.min(1,Math.max(0,e.l)),e.h=360*e.h,{h:e.h,s:e.s,l:e.l}}}(t)}}}(),"object"===("undefined"==typeof module?"undefined":_typeof(module))&&"object"===_typeof(module.exports)?module.exports=f:e.ax5=f}).call("undefined"!=typeof window?window:void 0),ax5.def={},ax5.info.errorMsg.ax5dialog={501:"Duplicate call error"},ax5.info.errorMsg.ax5picker={401:"Can not find target element",402:"Can not find boundID",501:"Can not find content key"},ax5.info.errorMsg["single-uploader"]={460:"There are no files to be uploaded.",461:"There is no uploaded files."},ax5.info.errorMsg.ax5calendar={401:"Can not find target element"},ax5.info.errorMsg.ax5formatter={401:"Can not find target element",402:"Can not find boundID",501:"Can not find pattern"},ax5.info.errorMsg.ax5menu={501:"Can not find menu item"},ax5.info.errorMsg.ax5select={401:"Can not find target element",402:"Can not find boundID",501:"Can not find option"},ax5.info.errorMsg.ax5combobox={401:"Can not find target element",402:"Can not find boundID",501:"Can not find option"},function(){"use strict";var e,t,n,i,o,a,r=/^\s*|\s*$/g;(Object.keys||(Object.keys=(e=Object.prototype.hasOwnProperty,t=!{toString:null}.propertyIsEnumerable("toString"),i=(n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(o){if("object"!==(void 0===o?"undefined":_typeof(o))&&("function"!=typeof o||null===o))throw new TypeError("type err");var a,r,s=[];for(a in o)e.call(o,a)&&s.push(a);if(t)for(r=0;r<i;r++)e.call(o,n[r])&&s.push(n[r]);return s})),Array.prototype.forEach||(Array.prototype.forEach=function(e){if(null==this)throw TypeError();var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw TypeError();var i,o=arguments[1];for(i=0;i<n;i++)i in t&&e.call(o,t[i],i,t)}),Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw TypeError("function");var t=[].slice,n=t.call(arguments,1),i=this,o=function(){return i.apply(this instanceof a?this:e,n.concat(t.call(arguments)))};function a(){}return a.prototype=i.prototype,o.prototype=new a,o}),function(){if(!document.querySelectorAll&&!document.querySelector&&document.createStyleSheet){var e=document.createStyleSheet(),t=function(t,n){var i,o=document.all,a=o.length,r=[];for(e.addRule(t,"foo:bar"),i=0;i<a&&!("bar"===o[i].currentStyle.foo&&(r.push(o[i]),r.length>n));i+=1);return e.removeRule(0),r};document.querySelectorAll=function(e){return t(e,1/0)},document.querySelector=function(e){return t(e,1)[0]||null}}}(),String.prototype.trim||(String.prototype.trim=function(){return this.replace(r,"")}),window.JSON||(window.JSON={parse:function(e){return new Function("","return "+e)()},stringify:(a=/["]/g,o=function(e){var t,n,i;switch(t=void 0===e?"undefined":_typeof(e)){case"string":return'"'+e.replace(a,'\\"')+'"';case"number":case"boolean":return e.toString();case"undefined":return"undefined";case"function":return'""';case"object":if(!e)return"null";if(t="",e.splice){for(n=0,i=e.length;n<i;n++)t+=","+o(e[n]);return"["+t.substr(1)+"]"}for(n in e)e.hasOwnProperty(n)&&void 0!==e[n]&&"function"!=typeof e[n]&&(t+=',"'+n+'":'+o(e[n]));return"{"+t.substr(1)+"}"}})}),function(){if(!document.documentMode||document.documentMode>=9)return!1;var e=Array.prototype.splice;Array.prototype.splice=function(){var t=Array.prototype.slice.call(arguments);return void 0===t[1]&&(t[1]=this.length-t[0]),e.apply(this,t)}}(),function(){var e=Array.prototype.slice;try{e.call(document.documentElement)}catch(t){Array.prototype.slice=function(t,n){if(n=void 0!==n?n:this.length,"[object Array]"===Object.prototype.toString.call(this))return e.call(this,t,n);var i,o,a=[],r=this.length,s=t||0;s=s>=0?s:Math.max(0,r+s);var l="number"==typeof n?Math.min(n,r):r;if(n<0&&(l=r+n),(o=l-s)>0)if(a=new Array(o),this.charAt)for(i=0;i<o;i++)a[i]=this.charAt(s+i);else for(i=0;i<o;i++)a[i]=this[s+i];return a}}}(),function(e){for(var t,n,i={},o=function(){},a="memory".split(","),r="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");t=a.pop();)e[t]=e[t]||i;for(;n=r.pop();)e[n]=e[n]||o}(window.console||{}),window.webkitMatchMedia||window.mozMatchMedia||window.oMatchMedia||window.msMatchMedia||window.matchMedia)||(document.getElementsByTagName("html")[0].className+=" no-matchmedia");window.matchMedia||(window.matchMedia=function(){var e=window.styleMedia||window.media;if(!e){var t,n=document.createElement("style"),i=document.getElementsByTagName("script")[0];n.type="text/css",n.id="matchmediajs-test",i.parentNode.insertBefore(n,i),t="getComputedStyle"in window&&window.getComputedStyle(n,null)||n.currentStyle,e={matchMedium:function(e){var i="@media "+e+"{ #matchmediajs-test { width: 1px; } }";return n.styleSheet?n.styleSheet.cssText=i:n.textContent=i,"1px"===t.width}}}return function(t){return{matches:e.matchMedium(t||"all"),media:t||"all"}}}()),function(){if(window.matchMedia&&window.matchMedia("all").addListener)return!1;var e=window.matchMedia,t=e("only all").matches,n=!1,i=0,o=[],a=function(t){clearTimeout(i),i=setTimeout(function(){for(var t=0,n=o.length;t<n;t++){var i=o[t].mql,a=o[t].listeners||[],r=e(i.media).matches;if(r!==i.matches){i.matches=r;for(var s=0,l=a.length;s<l;s++)a[s].call(window,i)}}},30)};window.matchMedia=function(i){var r=e(i),s=[],l=0;return r.addListener=function(e){t&&(n||(n=!0,window.addEventListener("resize",a,!0)),0===l&&(l=o.push({mql:r,listeners:s})),s.push(e))},r.removeListener=function(e){for(var t=0,n=s.length;t<n;t++)s[t]===e&&s.splice(t,1)},r}}();document.getElementsByTagName("html")[0],document.getElementsByTagName("body")[0]}.call(window),ax5.ui=function(){return{root:function(){this.config={},this.name="root",this.setConfig=function(e,t){return jQuery.extend(!0,this.config,e),void 0!==t&&!0!==t||this.init(),this},this.init=function(){console.log(this.config)},this.bindWindowResize=function(e){setTimeout(function(){jQuery(window).resize(function(){this.bindWindowResize__&&clearTimeout(this.bindWindowResize__),this.bindWindowResize__=setTimeout(function(){e.call(this)}.bind(this),10)}.bind(this))}.bind(this),100)},this.stopEvent=function(e){return e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0,!1},this.toString=function(){return this.name+"@"+this.version},this.main=function(){}.apply(this,arguments)},addClass:function(e,t){if(!e||!e.className)throw"invalid call";var n=e.classStore?e.classStore:ax5.ui;if(!n)throw"invalid classStore";ax5.def[e.className]={version:ax5.info.version},function(t){var n=e.superClass?e.superClass:ax5.ui.root;if(!ax5.util.isFunction(n))throw"invalid superClass";n.call(this),t.prototype=new n}.call(this,t),n[e.className]=function n(){if(!(this&&this instanceof n))throw"invalid call";var i=function(e,t){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2])}}(t,arguments);return function(e,t,n){return n.name=e,n.version=t,n.instanceId=ax5.getGuid(),n}(e.className,e.version||"",i)}}}}(),function(e,t){t(e.mustache={})}(window.ax5,function(e){var t=Object.prototype.toString,n=Array.isArray||function(e){return"[object Array]"===t.call(e)};function i(e){return"function"==typeof e}function o(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function a(e,t){return null!=e&&"object"===(void 0===e?"undefined":_typeof(e))&&t in e}var r=RegExp.prototype.test;var s=/\S/;function l(e){return!function(e,t){return r.call(e,t)}(s,e)}var u={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};var c=/\s*/,d=/\s+/,h=/\s*=/,p=/\s*\}/,f=/#|\^|\/|>|\{|&|=|!/;function g(e){this.string=e,this.tail=e,this.pos=0}function _(e,t){this.view=e,this.cache={".":this.view,"@each":function(){var e=[];for(var t in this)e.push({"@key":t,"@value":this[t]});return e}},this.parent=t}function m(){this.cache={}}g.prototype.eos=function(){return""===this.tail},g.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},g.prototype.scanUntil=function(e){var t,n=this.tail.search(e);switch(n){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=t.length,t},_.prototype.push=function(e){return new _(e,this)},_.prototype.lookup=function(e){var t,n=this.cache;if(n.hasOwnProperty(e))t=n[e];else{for(var o,r,s=this,l=!1;s;){if(e.indexOf(".")>0)for(t=s.view,o=e.split("."),r=0;null!=t&&r<o.length;)r===o.length-1&&(l=a(t,o[r])),t=t[o[r++]];else t=s.view[e],l=a(s.view,e);if(l)break;s=s.parent}n[e]=t}return i(t)&&(t=t.call(this.view)),t},m.prototype.clearCache=function(){this.cache={}},m.prototype.parse=function(t,i){var a=this.cache,r=a[t];return null==r&&(r=a[t]=function(t,i){if(!t)return[];var a,r,s,u=[],_=[],m=[],v=!1,y=!1;function b(){if(v&&!y)for(;m.length;)delete _[m.pop()];else m=[];v=!1,y=!1}function x(e){if("string"==typeof e&&(e=e.split(d,2)),!n(e)||2!==e.length)throw new Error("Invalid tags: "+e);a=new RegExp(o(e[0])+"\\s*"),r=new RegExp("\\s*"+o(e[1])),s=new RegExp("\\s*"+o("}"+e[1]))}x(i||e.tags);for(var w,C,k,S,I,T,D=new g(t);!D.eos();){if(w=D.pos,k=D.scanUntil(a))for(var E=0,A=k.length;E<A;++E)l(S=k.charAt(E))?m.push(_.length):y=!0,_.push(["text",S,w,w+1]),w+=1,"\n"===S&&b();if(!D.scan(a))break;if(v=!0,C=D.scan(f)||"name",D.scan(c),"="===C?(k=D.scanUntil(h),D.scan(h),D.scanUntil(r)):"{"===C?(k=D.scanUntil(s),D.scan(p),D.scanUntil(r),C="&"):k=D.scanUntil(r),!D.scan(r))throw new Error("Unclosed tag at "+D.pos);if(I=[C,k,w,D.pos],_.push(I),"#"===C||"^"===C)u.push(I);else if("/"===C){if(!(T=u.pop()))throw new Error('Unopened section "'+k+'" at '+w);if(T[1]!==k)throw new Error('Unclosed section "'+T[1]+'" at '+w)}else"name"===C||"{"===C||"&"===C?y=!0:"="===C&&x(k)}if(T=u.pop())throw new Error('Unclosed section "'+T[1]+'" at '+D.pos);return function(e){for(var t,n=[],i=n,o=[],a=0,r=e.length;a<r;++a)switch((t=e[a])[0]){case"#":case"^":i.push(t),o.push(t),i=t[4]=[];break;case"/":o.pop()[5]=t[2],i=o.length>0?o[o.length-1][4]:n;break;default:i.push(t)}return n}(function(e){for(var t,n,i=[],o=0,a=e.length;o<a;++o)(t=e[o])&&("text"===t[0]&&n&&"text"===n[0]?(n[1]+=t[1],n[3]=t[3]):(i.push(t),n=t));return i}(_))}(t,i)),r},m.prototype.render=function(e,t,n){var i=this.parse(e),o=t instanceof _?t:new _(t);return this.renderTokens(i,o,n,e)},m.prototype.renderTokens=function(e,t,n,i){for(var o,a,r,s="",l=0,u=e.length;l<u;++l)r=void 0,"#"===(a=(o=e[l])[0])?r=this.renderSection(o,t,n,i):"^"===a?r=this.renderInverted(o,t,n,i):">"===a?r=this.renderPartial(o,t,n,i):"&"===a?r=this.unescapedValue(o,t):"name"===a?r=this.escapedValue(o,t):"text"===a&&(r=this.rawValue(o)),void 0!==r&&(s+=r);return s},m.prototype.renderSection=function(e,t,o,a){var r=this,s="",l=t.lookup(e[1]);if(l){if(n(l))for(var u=0,c=l.length;u<c;++u)l[u]&&("object"===_typeof(l[u])&&(l[u]["@i"]=u,l[u]["@first"]=0===u),s+=this.renderTokens(e[4],t.push(l[u]),o,a));else if("object"===(void 0===l?"undefined":_typeof(l))||"string"==typeof l||"number"==typeof l)s+=this.renderTokens(e[4],t.push(l),o,a);else if(i(l)){if("string"!=typeof a)throw new Error("Cannot use higher-order sections without the original template");null!=(l=l.call(t.view,a.slice(e[3],e[5]),function(e){return r.render(e,t,o)}))&&(s+=l)}else s+=this.renderTokens(e[4],t,o,a);return s}},m.prototype.renderInverted=function(e,t,i,o){var a=t.lookup(e[1]);if(!a||n(a)&&0===a.length)return this.renderTokens(e[4],t,i,o)},m.prototype.renderPartial=function(e,t,n){if(n){var o=i(n)?n(e[1]):n[e[1]];return null!=o?this.renderTokens(this.parse(o),t,n,o):void 0}},m.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);if(null!=n)return n},m.prototype.escapedValue=function(t,n){var i=n.lookup(t[1]);if(null!=i)return e.escape(i)},m.prototype.rawValue=function(e){return e[1]},e.name="mustache.js",e.version="2.1.3",e.tags=["{{","}}"];var v=new m;e.clearCache=function(){return v.clearCache()},e.parse=function(e,t){return v.parse(e,t)},e.render=function(e,t,i){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+(n(o=e)?"array":void 0===o?"undefined":_typeof(o))+'" was given as the first argument for mustache#render(template, view, partials)');var o;return v.render(e,t,i)},e.to_html=function(t,n,o,a){var r=e.render(t,n,o);if(!i(a))return r;a(r)},e.escape=function(e){return String(e).replace(/[&<>"'\/]/g,function(e){return u[e]})},e.Scanner=g,e.Context=_,e.Writer=m}),function(){var e=ax5.ui,t=ax5.util,n=void 0;e.addClass({className:"mask"},function(){var i,o=this;this.instanceId=ax5.getGuid(),this.config={theme:"",target:jQuery(document.body).get(0),animateTime:250},this.maskContent="",this.status="off",i=this.config;var a=function(e,t){return e&&e.onStateChanged?e.onStateChanged.call(t,t):this.onStateChanged&&this.onStateChanged.call(t,t),e=null,t=null,!0},r=function(e){this.maskContent=e};this.init=function(){this.onStateChanged=i.onStateChanged,this.onClick=i.onClick,this.config.content&&r.call(this,this.config.content)},this.open=function(e){"on"===this.status&&this.close(),e&&e.content&&r.call(this,e.content),e&&void 0===e.templateName&&(e.templateName="defaultMask"),o.maskConfig=jQuery.extend(!0,{},this.config,e);var t=o.maskConfig,i=t.target,s=jQuery(i),l="ax-mask-"+ax5.getGuid(),u=void 0,c={},d={},h=t.templateName,p=function(e){return void 0===e.templateName&&(e.templateName="defaultMask"),n.tmpl.get.call(this,e.templateName,e)}({theme:t.theme,maskId:l,body:this.maskContent,templateName:h});return jQuery(document.body).append(p),i&&i!==jQuery(document.body).get(0)&&(c={position:t.position||"absolute",left:s.offset().left,top:s.offset().top,width:s.outerWidth(),height:s.outerHeight()},s.addClass("ax-masking"),jQuery(window).on("resize.ax5mask-"+this.instanceId,function(e){this.align()}.bind(this))),void 0!==o.maskConfig.zIndex&&(c["z-index"]=o.maskConfig.zIndex),this.$mask=u=jQuery("#"+l),this.$target=s,this.status="on",u.css(c),t.onClick&&u.on("click",function(e){d={self:o,state:"open",type:"click"},o.maskConfig.onClick.call(d,d)}),a.call(this,null,{self:this,state:"open"}),e=null,t=null,i=null,s=null,l=null,u=null,c=null,d=null,h=null,p=null,this},this.close=function(e){if(this.$mask){var t=function(){this.status="off",this.$mask.remove(),this.$target.removeClass("ax-masking"),a.call(this,null,{self:this,state:"close"}),jQuery(window).off("resize.ax5mask-"+this.instanceId)};e?setTimeout(function(){t.call(this)}.bind(this),e):t.call(this)}return this},this.fadeOut=function(){return this.$mask&&(this.$mask.addClass("fade-out"),setTimeout(function(){(function(){this.status="off",this.$mask.remove(),this.$target.removeClass("ax-masking"),a.call(this,null,{self:this,state:"close"}),jQuery(window).off("resize.ax5mask-"+this.instanceId)}).call(this)}.bind(this),i.animateTime)),this},this.align=function(){if(this.maskConfig&&this.maskConfig.target&&this.maskConfig.target!==jQuery(document.body).get(0))try{var e={position:this.maskConfig.position||"absolute",left:this.$target.offset().left,top:this.$target.offset().top,width:this.$target.outerWidth(),height:this.$target.outerHeight()};this.$mask.css(e)}catch(e){}return this},this.pullRequest=function(){console.log("test pullRequest01"),console.log("test pullRequest02")},this.main=function(){e.mask_instance=e.mask_instance||[],e.mask_instance.push(this),arguments&&t.isObject(arguments[0])&&this.setConfig(arguments[0])}.apply(this,arguments)}),n=ax5.ui.mask}(),function(){var e=ax5.ui.mask;e.tmpl={defaultMask:function(e){return'\n <div class="ax-mask {{theme}}" id="{{maskId}}">\n <div class="ax-mask-bg"></div>\n <div class="ax-mask-content">\n <div class="ax-mask-body">\n {{{body}}}\n </div>\n </div>\n </div>\n '},get:function(t,n,i){return ax5.mustache.render(e.tmpl[t].call(this,i),n)}}}(),function(){var e=ax5.ui,t=ax5.util,n=void 0;e.addClass({className:"modal"},function(){var i,o=this,a={mousedown:ax5.info.supportTouch?"touchstart":"mousedown",mousemove:ax5.info.supportTouch?"touchmove":"mousemove",mouseup:ax5.info.supportTouch?"touchend":"mouseup"},r=function(e){var t=e;return"changedTouches"in e&&e.changedTouches&&(t=e.changedTouches[0]),{clientX:t.clientX,clientY:t.clientY}};this.instanceId=ax5.getGuid(),this.config={id:"ax5-modal-"+this.instanceId,position:{left:"center",top:"middle",margin:10},minimizePosition:"bottom-right",clickEventName:"ontouchstart"in document.documentElement?"touchstart":"click",theme:"default",width:300,height:400,closeToEsc:!0,disableDrag:!1,disableResize:!1,animateTime:250,iframe:!1},this.activeModal=null,this.watingModal=!1,this.$={},i=this.config;var s=function(e,t){var n={resize:function(t){e&&e.onResize?e.onResize.call(t,t):this.onResize&&this.onResize.call(t,t)},move:function(){}};return t.state in n&&n[t.state].call(this,t),e&&e.onStateChanged?e.onStateChanged.call(t,t):this.onStateChanged&&this.onStateChanged.call(t,t),!0},l=function(e,i){var l=void 0;jQuery(document.body).append(function(e,t){var i={modalId:e,theme:t.theme,header:t.header,fullScreen:t.fullScreen?"fullscreen":"",styles:"",iframe:t.iframe,iframeLoadingMsg:t.iframeLoadingMsg,disableResize:t.disableResize};return t.zIndex&&(i.styles+="z-index:"+t.zIndex+";"),t.absolute&&(i.styles+="position:absolute;"),i.iframe&&"string"==typeof i.iframe.param&&(i.iframe.param=ax5.util.param(i.iframe.param)),n.tmpl.get.call(this,"content",i,{})}.call(this,e.id,e)),this.activeModal=jQuery("#"+e.id),this.$={root:this.activeModal,header:this.activeModal.find('[data-modal-els="header"]'),body:this.activeModal.find('[data-modal-els="body"]')},e.iframe?(this.$["iframe-wrap"]=this.activeModal.find('[data-modal-els="iframe-wrap"]'),this.$.iframe=this.activeModal.find('[data-modal-els="iframe"]'),this.$["iframe-form"]=this.activeModal.find('[data-modal-els="iframe-form"]'),this.$["iframe-loading"]=this.activeModal.find('[data-modal-els="iframe-loading"]')):this.$["body-frame"]=this.activeModal.find('[data-modal-els="body-frame"]'),this.align(),l={self:this,id:e.id,theme:e.theme,width:e.width,height:e.height,state:"open",$:this.$},e.iframe&&(this.$["iframe-wrap"].css({height:e.height}),this.$.iframe.css({height:e.height}),this.$["iframe-form"].attr({method:e.iframe.method}),this.$["iframe-form"].attr({target:e.id+"-frame"}),this.$["iframe-form"].attr({action:e.iframe.url}),this.$.iframe.on("load",function(){l.state="load",e.iframeLoadingMsg&&this.$["iframe-loading"].hide(),s.call(this,e,l)}.bind(this)),e.iframeLoadingMsg||this.$.iframe.show(),this.$["iframe-form"].submit()),i&&i.call(l,l),this.watingModal||s.call(this,e,l),e.closeToEsc&&jQuery(window).bind("keydown.ax-modal",function(e){c.call(this,e||window.event)}.bind(this)),jQuery(window).bind("resize.ax-modal",function(e){this.align(null,e||window.event)}.bind(this)),this.$.header.off(a.mousedown).off("dragstart").on(a.mousedown,function(n){var i=t.findParentNode(n.target,function(e){if(e.getAttribute("data-modal-header-btn"))return!0});e.isFullScreen||i||1==e.disableDrag||(o.mousePosition=r(n),h.on.call(o)),i&&u.call(o,n||window.event,e)}).on("dragstart",function(e){return t.stopEvent(e.originalEvent),!1}),this.activeModal.off(a.mousedown).off("dragstart").on(a.mousedown,"[data-ax5modal-resizer]",function(t){if(e.disableDrag||e.isFullScreen)return!1;o.mousePosition=r(t),p.on.call(o,this.getAttribute("data-ax5modal-resizer"))}).on("dragstart",function(e){return t.stopEvent(e.originalEvent),!1})},u=function(e,n,i,o,a){var r=void 0;e.srcElement&&(e.target=e.srcElement),(o=t.findParentNode(e.target,function(e){if(e.getAttribute("data-modal-header-btn"))return!0}))&&(r={self:this,key:a=o.getAttribute("data-modal-header-btn"),value:n.header.btns[a],dialogId:n.id,btnTarget:o},n.header.btns[a].onClick&&n.header.btns[a].onClick.call(r,a)),r=null,n=null,o=null,a=null},c=function(e){e.keyCode==ax5.info.eventKeys.ESC&&this.close()},d={"top-left":function(){this.align({left:"left",top:"top"})},"top-right":function(){this.align({left:"right",top:"top"})},"bottom-left":function(){this.align({left:"left",top:"bottom"})},"bottom-right":function(){this.align({left:"right",top:"bottom"})},"center-middle":function(){this.align({left:"center",top:"middle"})}},h={on:function(){var e=this.activeModal.css("z-index"),t=this.activeModal.offset(),n={width:this.activeModal.outerWidth(),height:this.activeModal.outerHeight()};jQuery(window).width(),jQuery(window).height(),jQuery(document).scrollLeft(),jQuery(document).scrollTop(),o.__dx=0,o.__dy=0,o.resizerBg=jQuery('<div class="ax5modal-resizer-background" ondragstart="return false;"></div>'),o.resizer=jQuery('<div class="ax5modal-resizer" ondragstart="return false;"></div>'),o.resizerBg.css({zIndex:e}),o.resizer.css({left:t.left,top:t.top,width:n.width,height:n.height,zIndex:e+1}),jQuery(document.body).append(o.resizerBg).append(o.resizer),o.activeModal.addClass("draged"),jQuery(document.body).on(a.mousemove+".ax5modal-move-"+this.instanceId,function(e){o.resizer.css(function(e){return o.__dx=e.clientX-o.mousePosition.clientX,o.__dy=e.clientY-o.mousePosition.clientY,{left:t.left+o.__dx,top:t.top+o.__dy}}(e))}).on(a.mouseup+".ax5modal-move-"+this.instanceId,function(e){h.off.call(o)}).on("mouseleave.ax5modal-move-"+this.instanceId,function(e){h.off.call(o)}),jQuery(document.body).attr("unselectable","on").css("user-select","none").on("selectstart",!1)},off:function(){this.activeModal.removeClass("draged"),function(){var e=this.resizer.offset();this.modalConfig.absolute||(e.left-=jQuery(document).scrollLeft(),e.top-=jQuery(document).scrollTop()),this.activeModal.css(e),this.modalConfig.left=e.left,this.modalConfig.top=e.top,e=null}.call(this),this.resizer.remove(),this.resizer=null,this.resizerBg.remove(),this.resizerBg=null,jQuery(document.body).off(a.mousemove+".ax5modal-move-"+this.instanceId).off(a.mouseup+".ax5modal-move-"+this.instanceId).off("mouseleave.ax5modal-move-"+this.instanceId),jQuery(document.body).removeAttr("unselectable").css("user-select","auto").off("selectstart"),s.call(this,o.modalConfig,{self:this,state:"move"})}},p={on:function(e){var t=this.activeModal.css("z-index"),n=this.activeModal.offset(),i={width:this.activeModal.outerWidth(),height:this.activeModal.outerHeight()},r=(jQuery(window).width(),jQuery(window).height(),jQuery(document).scrollLeft(),jQuery(document).scrollTop(),{top:function(e){return l>i.height-o.__dy&&(o.__dy=i.height-l),e.shiftKey?(l>i.height-2*o.__dy&&(o.__dy=(i.height-l)/2),{left:n.left,top:n.top+o.__dy,width:i.width,height:i.height-2*o.__dy}):e.altKey?(l>i.height-2*o.__dy&&(o.__dy=(i.height-l)/2),{left:n.left+o.__dy,top:n.top+o.__dy,width:i.width-2*o.__dy,height:i.height-2*o.__dy}):{left:n.left,top:n.top+o.__dy,width:i.width,height:i.height-o.__dy}},bottom:function(e){return l>i.height+o.__dy&&(o.__dy=-i.height+l),e.shiftKey?(l>i.height+2*o.__dy&&(o.__dy=(-i.height+l)/2),{left:n.left,top:n.top-o.__dy,width:i.width,height:i.height+2*o.__dy}):e.altKey?(l>i.height+2*o.__dy&&(o.__dy=(-i.height+l)/2),{left:n.left-o.__dy,top:n.top-o.__dy,width:i.width+2*o.__dy,height:i.height+2*o.__dy}):{left:n.left,top:n.top,width:i.width,height:i.height+o.__dy}},left:function(e){return s>i.width-o.__dx&&(o.__dx=i.width-s),e.shiftKey?(s>i.width-2*o.__dx&&(o.__dx=(i.width-s)/2),{left:n.left+o.__dx,top:n.top,width:i.width-2*o.__dx,height:i.height}):e.altKey?(s>i.width-2*o.__dx&&(o.__dx=(i.width-s)/2),{left:n.left+o.__dx,top:n.top+o.__dx,width:i.width-2*o.__dx,height:i.height-2*o.__dx}):{left:n.left+o.__dx,top:n.top,width:i.width-o.__dx,height:i.height}},right:function(e){return s>i.width+o.__dx&&(o.__dx=-i.width+s),e.shiftKey?(s>i.width+2*o.__dx&&(o.__dx=(-i.width+s)/2),{left:n.left-o.__dx,top:n.top,width:i.width+2*o.__dx,height:i.height}):e.altKey?(s>i.width+2*o.__dx&&(o.__dx=(-i.width+s)/2),{left:n.left-o.__dx,top:n.top-o.__dx,width:i.width+2*o.__dx,height:i.height+2*o.__dx}):{left:n.left,top:n.top,width:i.width+o.__dx,height:i.height}},"top-left":function(e){return s>i.width-o.__dx&&(o.__dx=i.width-s),l>i.height-o.__dy&&(o.__dy=i.height-l),e.shiftKey||e.altKey?(l>i.height-2*o.__dy&&(o.__dy=(i.height-l)/2),s>i.width-2*o.__dx&&(o.__dx=(i.width-s)/2),{left:n.left+o.__dx,top:n.top+o.__dy,width:i.width-2*o.__dx,height:i.height-2*o.__dy}):(l>i.height-2*o.__dy&&(o.__dy=(i.height-l)/2),s>i.width-2*o.__dx&&(o.__dx=(i.width-s)/2),{left:n.left+o.__dx,top:n.top+o.__dy,width:i.width-o.__dx,height:i.height-o.__dy})},"top-right":function(e){return s>i.width+o.__dx&&(o.__dx=-i.width+s),l>i.height-o.__dy&&(o.__dy=i.height-l),e.shiftKey||e.altKey?(l>i.height-2*o.__dy&&(o.__dy=(i.height-l)/2),s>i.width+2*o.__dx&&(o.__dx=(-i.width+s)/2),{left:n.left-o.__dx,top:n.top+o.__dy,width:i.width+2*o.__dx,height:i.height-2*o.__dy}):{left:n.left,top:n.top+o.__dy,width:i.width+o.__dx,height:i.height-o.__dy}},"bottom-left":function(e){return s>i.width-o.__dx&&(o.__dx=i.width-s),l>i.height+o.__dy&&(o.__dy=-i.height+l),e.shiftKey||e.altKey?(s>i.width-2*o.__dx&&(o.__dx=(i.width-s)/2),l>i.height+2*o.__dy&&(o.__dy=(-i.height+l)/2),{left:n.left+o.__dx,top:n.top-o.__dy,width:i.width-2*o.__dx,height:i.height+2*o.__dy}):{left:n.left+o.__dx,top:n.top,width:i.width-o.__dx,height:i.height+o.__dy}},"bottom-right":function(e){return s>i.width+o.__dx&&(o.__dx=-i.width+s),l>i.height+o.__dy&&(o.__dy=-i.height+l),e.shiftKey||e.altKey?(s>i.width+2*o.__dx&&(o.__dx=(-i.width+s)/2),l>i.height+2*o.__dy&&(o.__dy=(-i.height+l)/2),{left:n.left-o.__dx,top:n.top-o.__dy,width:i.width+2*o.__dx,height:i.height+2*o.__dy}):{left:n.left,top:n.top,width:i.width+o.__dx,height:i.height+o.__dy}}}),s=100,l=100,u={top:"row-resize",bottom:"row-resize",left:"col-resize",right:"col-resize","top-left":"nwse-resize","top-right":"nesw-resize","bottom-left":"nesw-resize","bottom-right":"nwse-resize"};o.__dx=0,o.__dy=0,o.resizerBg=jQuery('<div class="ax5modal-resizer-background" ondragstart="return false;"></div>'),o.resizer=jQuery('<div class="ax5modal-resizer" ondragstart="return false;"></div>'),o.resizerBg.css({zIndex:t,cursor:u[e]}),o.resizer.css({left:n.left,top:n.top,width:i.width,height:i.height,zIndex:t+1,cursor:u[e]}),jQuery(document.body).append(o.resizerBg).append(o.resizer),o.activeModal.addClass("draged"),jQuery(document.body).bind(a.mousemove+".ax5modal-resize-"+this.instanceId,function(t){o.resizer.css(function(t){return o.__dx=t.clientX-o.mousePosition.clientX,o.__dy=t.clientY-o.mousePosition.clientY,r[e](t)}(t))}).bind(a.mouseup+".ax5modal-resize-"+this.instanceId,function(e){p.off.call(o)}).bind("mouseleave.ax5modal-resize-"+this.instanceId,function(e){p.off.call(o)}),jQuery(document.body).attr("unselectable","on").css("user-select","none").bind("selectstart",!1)},off:function(){this.activeModal.removeClass("draged"),function(){var e=this.resizer.offset();jQuery.extend(e,{width:this.resizer.width(),height:this.resizer.height()}),this.modalConfig.absolute||(e.left-=jQuery(document).scrollLeft(),e.top-=jQuery(document).scrollTop()),this.activeModal.css(e),this.modalConfig.left=e.left,this.modalConfig.top=e.top,this.modalConfig.width=e.width,this.modalConfig.height=e.height,this.$.body.css({height:e.height-this.modalConfig.headerHeight}),this.modalConfig.iframe&&(this.$["iframe-wrap"].css({height:e.height-this.modalConfig.headerHeight}),this.$.iframe.css({height:e.height-this.modalConfig.headerHeight})),e=null}.call(this),this.resizer.remove(),this.resizer=null,this.resizerBg.remove(),this.resizerBg=null,s.call(this,o.modalConfig,{self:this,state:"resize"}),jQuery(document.body).unbind(a.mousemove+".ax5modal-resize-"+this.instanceId).unbind(a.mouseup+".ax5modal-resize-"+this.instanceId).unbind("mouseleave.ax5modal-resize-"+this.instanceId),jQuery(document.body).removeAttr("unselectable").css("user-select","auto").unbind("selectstart")}};this.init=function(){this.onStateChanged=i.onStateChanged,this.onResize=i.onResize},this.open=function(e,t,n){return void 0===n&&(n=0),this.activeModal?n<3?(this.watingModal=!0,setTimeout(function(){this.open(e,t,n+1)}.bind(this),i.animateTime)):this.watingModal=!1:(e=o.modalConfig=jQuery.extend(!0,{},i,e),l.call(this,e,t),this.watingModal=!1),this},this.close=function(e){var n=void 0,a=void 0;return this.activeModal&&(n=o.modalConfig,this.activeModal.addClass("destroy"),jQuery(window).unbind("keydown.ax-modal"),jQuery(window).unbind("resize.ax-modal"),setTimeout(function(){if(n.iframe){var i=this.$.iframe;if(i){var o=i.get(0),r=o.contentDocument?o.contentDocument:o.contentWindow.document;try{$(r.body).children().each(function(){$(this).remove()})}catch(e){}r.innerHTML="",i.attr("src","about:blank").remove(),window.CollectGarbage&&window.CollectGarbage()}}this.activeModal.remove(),this.activeModal=null,this.watingModal||s.call(this,n,{self:this,state:"close"}),e&&t.isFunction(e.callback)&&(a={self:this,id:n.id,theme:n.theme,width:n.width,height:n.height,state:"close",$:this.$},e.callback.call(a,a))}.bind(this),i.animateTime)),this.minimized=!1,this},this.minimize=function(e){if(!0!==this.minimized){var t=o.modalConfig;void 0===e&&(e=i.minimizePosition),this.minimized=!0,this.$.body.hide(),o.modalConfig.originalHeight=t.height,o.modalConfig.height=0,d[e].call(this),s.call(this,t,{self:this,state:"minimize"})}return this},this.restore=function(){var e=o.modalConfig;return this.minimized&&(this.minimized=!1,this.$.body.show(),o.modalConfig.height=o.modalConfig.originalHeight,o.modalConfig.originalHeight=void 0,this.align({left:"center",top:"middle"}),s.call(this,e,{self:this,state:"restore"})),this},this.css=function(e){return this.activeModal&&!o.fullScreen&&(this.activeModal.css(e),void 0!==e.width&&(o.modalConfig.width=e.width),void 0!==e.height&&(o.modalConfig.height=e.height),this.align()),this},this.setModalConfig=function(e){return o.modalConfig=jQuery.extend({},o.modalConfig,e),this.align(),this},this.align=function(e,n){if(!this.activeModal)return this;var i,a=o.modalConfig,r={width:a.width,height:a.height};return(a.isFullScreen=void 0!==(i=a.fullScreen)&&(t.isFunction(i)?i():void 0))?(a.header&&this.$.header.show(),a.header?(a.headerHeight=this.$.header.outerHeight(),r.height+=a.headerHeight):a.headerHeight=0,r.width=jQuery(window).width(),r.height=a.height,r.left=0,r.top=0):(a.header&&this.$.header.show(),e&&jQuery.extend(!0,a.position,e),a.header?(a.headerHeight=this.$.header.outerHeight(),r.height+=a.headerHeight):a.headerHeight=0,"left"==a.position.left?r.left=a.position.margin||0:"right"==a.position.left?r.left=jQuery(window).width()-r.width-(a.position.margin||0):"center"==a.position.left?r.left=jQuery(window).width()/2-r.width/2:r.left=a.position.left||0,"top"==a.position.top?r.top=a.position.margin||0:"bottom"==a.position.top?r.top=jQuery(window).height()-r.height-(a.position.margin||0):"middle"==a.position.top?r.top=jQuery(window).height()/2-r.height/2:r.top=a.position.top||0,r.left<0&&(r.left=0),r.top<0&&(r.top=0),a.absolute&&(r.top+=jQuery(window).scrollTop(),r.left+=jQuery(window).scrollLeft())),this.activeModal.css(r),this.$.body.css({height:r.height-(a.headerHeight||0)}),a.iframe&&(this.$["iframe-wrap"].css({height:r.height-a.headerHeight}),this.$.iframe.css({height:r.height-a.headerHeight})),this},this.main=function(){e.modal_instance=e.modal_instance||[],e.modal_instance.push(this),arguments&&t.isObject(arguments[0])&&this.setConfig(arguments[0])}.apply(this,arguments)}),n=ax5.ui.modal}(),function(){var e=ax5.ui.modal;e.tmpl={content:function(){return' \n <div id="{{modalId}}" data-modal-els="root" class="ax5modal {{theme}} {{fullscreen}}" style="{{styles}}">\n {{#header}}\n <div class="ax-modal-header" data-modal-els="header">\n {{{title}}}\n {{#btns}}\n <div class="ax-modal-header-addon">\n {{#@each}}\n <button tabindex="-1" data-modal-header-btn="{{@key}}" class="{{@value.theme}}">{{{@value.label}}}</button>\n {{/@each}}\n </div>\n {{/btns}}\n </div>\n {{/header}}\n <div class="ax-modal-body" data-modal-els="body">\n {{#iframe}}\n <div data-modal-els="iframe-wrap" style="-webkit-overflow-scrolling: touch; overflow: auto;position: relative;">\n <table data-modal-els="iframe-loading" style="width:100%;height:100%;"><tr><td style="text-align: center;vertical-align: middle">{{{iframeLoadingMsg}}}</td></tr></table>\n <iframe name="{{modalId}}-frame" src="" width="100%" height="100%" frameborder="0" data-modal-els="iframe" style="position: absolute;left:0;top:0;"></iframe>\n </div>\n <form name="{{modalId}}-form" data-modal-els="iframe-form">\n <input type="hidden" name="modalId" value="{{modalId}}" />\n {{#param}}\n {{#@each}}\n <input type="hidden" name="{{@key}}" value="{{@value}}" />\n {{/@each}}\n {{/param}}\n </form>\n {{/iframe}}\n {{^iframe}}\n <div data-modal-els="body-frame" style="position: absolute;left:0;top:0;width:100%;height:100%;"></div>\n {{/iframe}}\n </div>\n {{^disableResize}}\n <div data-ax5modal-resizer="top"></div>\n <div data-ax5modal-resizer="right"></div>\n <div data-ax5modal-resizer="bottom"></div>\n <div data-ax5modal-resizer="left"></div>\n <div data-ax5modal-resizer="top-left"></div>\n <div data-ax5modal-resizer="top-right"></div>\n <div data-ax5modal-resizer="bottom-left"></div>\n <div data-ax5modal-resizer="bottom-right"></div>\n {{/disableResize}}\n </div>\n '},get:function(t,n,i){return ax5.mustache.render(e.tmpl[t].call(this,i),n)}}}(),function(e){e(["jquery"],function(e){return function(){var t,n,i,o=0,a={error:"error",info:"info",success:"success",warning:"warning"},r={clear:function(n,i){var o=d();t||s(o);l(n,o,i)||function(n){for(var i=t.children(),o=i.length-1;o>=0;o--)l(e(i[o]),n)}(o)},remove:function(n){var i=d();t||s(i);if(n&&0===e(":focus",n).length)return void h(n);t.children().length&&t.remove()},error:function(e,t,n){return c({type:a.error,iconClass:d().iconClasses.error,message:e,optionsOverride:n,title:t})},getContainer:s,info:function(e,t,n){return c({type:a.info,iconClass:d().iconClasses.info,message:e,optionsOverride:n,title:t})},options:{},subscribe:function(e){n=e},success:function(e,t,n){return c({type:a.success,iconClass:d().iconClasses.success,message:e,optionsOverride:n,title:t})},version:"2.1.2",warning:function(e,t,n){return c({type:a.warning,iconClass:d().iconClasses.warning,message:e,optionsOverride:n,title:t})}};return r;function s(n,i){return n||(n=d()),(t=e("#"+n.containerId)).length?t:(i&&(t=function(n){return(t=e("<div/>").attr("id",n.containerId).addClass(n.positionClass).attr("aria-live","polite").attr("role","alert")).appendTo(e(n.target)),t}(n)),t)}function l(t,n,i){var o=!(!i||!i.force)&&i.force;return!(!t||!o&&0!==e(":focus",t).length)&&(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){h(t)}}),!0)}function u(e){n&&n(e)}function c(n){var a=d(),r=n.iconClass||a.iconClass;if(void 0!==n.optionsOverride&&(a=e.extend(a,n.optionsOverride),r=n.optionsOverride.iconClass||r),!function(e,t){if(e.preventDuplicates){if(t.message===i)return!0;i=t.message}return!1}(a,n)){o++,t=s(a,!0);var l=null,c=e("<div/>"),p=e("<div/>"),f=e("<div/>"),g=e("<div/>"),_=e(a.closeHtml),m={intervalId:null,hideEta:null,maxHideTime:null},v={toastId:o,state:"visible",startTime:new Date,options:a,map:n};return n.iconClass&&c.addClass(a.toastClass).addClass(r),n.title&&(p.append(a.escapeHtml?y(n.title):n.title).addClass(a.titleClass),c.append(p)),n.message&&(f.append(a.escapeHtml?y(n.message):n.message).addClass(a.messageClass),c.append(f)),a.closeButton&&(_.addClass("toast-close-button").attr("role","button"),c.prepend(_)),a.progressBar&&(g.addClass("toast-progress"),c.prepend(g)),a.newestOnTop?t.prepend(c):t.append(c),c.hide(),c[a.showMethod]({duration:a.showDuration,easing:a.showEasing,complete:a.onShown}),a.timeOut>0&&(l=setTimeout(b,a.timeOut),m.maxHideTime=parseFloat(a.timeOut),m.hideEta=(new Date).getTime()+m.maxHideTime,a.progressBar&&(m.intervalId=setInterval(C,10))),function(){c.hover(w,x),!a.onclick&&a.tapToDismiss&&c.click(b);a.closeButton&&_&&_.click(function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),b(!0)});a.onclick&&c.click(function(e){a.onclick(e),b()})}(),u(v),a.debug&&console&&console.log(v),c}function y(e){return null==e&&(e=""),new String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function b(t){var n=t&&!1!==a.closeMethod?a.closeMethod:a.hideMethod,i=t&&!1!==a.closeDuration?a.closeDuration:a.hideDuration,o=t&&!1!==a.closeEasing?a.closeEasing:a.hideEasing;if(!e(":focus",c).length||t)return clearTimeout(m.intervalId),c[n]({duration:i,easing:o,complete:function(){h(c),a.onHidden&&"hidden"!==v.state&&a.onHidden(),v.state="hidden",v.endTime=new Date,u(v)}})}function x(){(a.timeOut>0||a.extendedTimeOut>0)&&(l=setTimeout(b,a.extendedTimeOut),m.maxHideTime=parseFloat(a.extendedTimeOut),m.hideEta=(new Date).getTime()+m.maxHideTime)}function w(){clearTimeout(l),m.hideEta=0,c.stop(!0,!0)[a.showMethod]({duration:a.showDuration,easing:a.showEasing})}function C(){var e=(m.hideEta-(new Date).getTime())/m.maxHideTime*100;g.width(e+"%")}}function d(){return e.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;</button>',newestOnTop:!0,preventDuplicates:!1,progressBar:!1},r.options)}function h(e){t||(t=s()),e.is(":visible")||(e.remove(),e=null,0===t.children().length&&(t.remove(),i=void 0))}}()})}("function"==typeof define&&define.amd?define:function(e,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)}),function(e,t){if("function"==typeof define&&define.amd)define(["module","exports"],t);else if("undefined"!=typeof exports)t(module,exports);else{var n={exports:{}};t(n,n.exports),e.autosize=n.exports}}(this,function(e,t){"use strict";var n,i,o="function"==typeof Map?new Map:(n=[],i=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return i[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),i.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),i.splice(t,1))}}),a=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){a=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function r(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,i=null,r=null,s=function(){e.clientWidth!==i&&d()},l=function(t){window.removeEventListener("resize",s,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach(function(n){e.style[n]=t[n]}),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",s,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:l,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function u(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function c(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",i=e.clientWidth,t.forEach(function(e){e.node.scrollTop=e.scrollTop}),o&&(document.documentElement.scrollTop=o)}}function d(){c();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),i="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(i<t?"hidden"===n.overflowY&&(u("scroll"),c(),i="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(u("hidden"),c(),i="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),r!==i){r=i;var o=a("autosize:resized");try{e.dispatchEvent(o)}catch(e){}}}}function s(e){var t=o.get(e);t&&t.destroy()}function l(e){var t=o.get(e);t&&t.update()}var u=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((u=function(e){return e}).destroy=function(e){return e},u.update=function(e){return e}):((u=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return r(e)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],s),e},u.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],l),e}),t.default=u,e.exports=t.default}),window.console&&window.console.log||(window.console={log:function(){}});var APP={SET_LANG:function(e){$.cookie("site_lang",e,{expires:30,path:"/"}),location.reload()}};$('[data-toggle="btn-popup-close"]').click(function(e){var t=$(this).data("type"),n=$(this).data("idx"),i=$(this).data("cookie");"Y"==t?window.close():"N"==t&&$("#popup-"+n).remove(),1==i&&$.cookie("popup_"+n,1,{expires:1,path:"/"})}),$("a[data-toggle='sns-share']").not('[data-service="link"]').click(function(e){e.preventDefault();var t=$(this),n=t.data("service"),i=t.data("url"),o=t.data("title"),a="",r=$("meta[name='og:image']").attr("content");if(n&&i&&o){if("facebook"==n)a="//www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(i);else if("twitter"==n)a="//twitter.com/home?status="+encodeURIComponent(o)+" "+i;else if("google"==n)a="//plus.google.com/share?url="+i;else if("pinterest"==n)a="//www.pinterest.com/pin/create/button/?url="+i+"&media="+r+"&description="+encodeURIComponent(o);else if("kakaostory"==n)a="https://story.kakao.com/share?url="+encodeURIComponent(i);else if("band"==n)a="http://www.band.us/plugin/share?body="+encodeURIComponent(o)+"%0A"+encodeURIComponent(i);else if("naver"==n)a="http://share.naver.com/web/shareView.nhn?url="+encodeURIComponent(i)+"&title="+encodeURIComponent(o);else{if("line"!=n)return!1;a="http://line.me/R/msg/text/?"+encodeURIComponent(o+"\n"+i)}return APP.POPUP({url:a}),!1}}),$(function(){new ClipboardJS('a[data-toggle="sns-share"][data-service="link"]',{text:function(e){return e.getAttribute("data-url")}}).on("success",function(){alert("현재 URL이 복사되었습니다.")})}),String.prototype.regex=function(e){switch(e){case"phone":return!(11!=(t=this.replace(/\s/gi,"").replace(/-/gi,"")).length&&10!=t.length||!/^(01[016789]{1}|02|0[3-9]{1}[0-9]{1})([0-9]{3,4})([0-9]{4})$/.test(t))&&(t=t.replace(/^(01[016789]{1}|02|0[3-9]{1}[0-9]{1})-?([0-9]{3,4})-?([0-9]{4})$/,"$1-$2-$3"));case"tel":var t;return t=(t=this.replace(/\s/gi,"").replace(/-/gi,"")).replace(/(^02.{0}|^01.{1}|[0-9]{3})([0-9]{3,4})([0-9]{4})/,"$1-$2-$3"),!!/^\d{2,3}-\d{3,4}-\d{4}$/.test(t)&&t;case"email":return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(this);case"biznum":var n,i,o,a=new Array(1,3,7,1,3,7,1,3,5,1),r=0,s=this.replace(/-/gi,"");for(n=0;n<=7;n++)r+=a[n]*s.charAt(n);return i=(i="0"+a[8]*s.charAt(8)).substring(i.length-2,i.length),o=(10-(r+=Math.floor(i.charAt(0))+Math.floor(i.charAt(1)))%10)%10,Math.floor(s.charAt(9))==o&&s.replace(/(\d{3})(\d{2})(\d{5})/,"$1-$2-$3");case"uniqid":return/^[a-z][a-z0-9_]{2,19}$/g.test(this)}},Number.prototype.numberFormat=function(){if(0==this)return 0;for(var e=/(^[+-]?\d+)(\d{3})/,t=this+"";e.test(t);)t=t.replace(e,"$1,$2");return t},String.prototype.numberFormat=function(){return isNaN(parseFloat(this))?"0":parseFloat(this).numberFormat()},String.prototype.unNumberFormat=function(){var e=this;if("number"==typeof e)return e;e=(e=(""+e).replace(/,/gi,"")).replace(/(^\s*)|(\s*$)/g,"");var t=new Number(e);return isNaN(t)?e:t},Number.prototype.unNumberFormat=function(){return this},Date.prototype.dateFormat=function(e){if(!this.valueOf())return" ";if(!e)return this;var t=["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],n=["일","월","화","수","목","금","토"],i=this;return e.replace(/(yyyy|yy|MM|dd|E|hh|mm|ss|a\/p)/gi,function(e){switch(e){case"yyyy":return i.getFullYear();case"yy":return(i.getFullYear()%1e3).zf(2);case"MM":return(i.getMonth()+1).zf(2);case"dd":return i.getDate().zf(2);case"E":return t[i.getDay()];case"e":return n[i.getDay()];case"HH":return i.getHours().zf(2);case"hh":return((h=i.getHours()%12)?h:12).zf(2);case"mm":return i.getMinutes().zf(2);case"ss":return i.getSeconds().zf(2);case"a/p":return i.getHours()<12?"오전":"오후";default:return e}})},String.prototype.string=function(e){for(var t="",n=0;n++<e;)t+=this;return t},String.prototype.zf=function(e){return"0".string(e-this.length)+this},Number.prototype.zf=function(e){return this.toString().zf(e)},String.prototype.dateFormat=function(e){var t=new Date(this);return"Invalid Date"==t?"":t.dateFormat(e)},Number.prototype.toKorean=function(){for(var e=new Array("","일","이","삼","사","오","육","칠","팔","구","십"),t=new Array("","십","백","천","","십","백","천","","십","백","천","","십","백","천"),n=new String(this),i="",o=0;o<n.length;o++){var a="",r=e[n.charAt(n.length-(o+1))];""!=r&&(a+=r+t[o]),4==o&&(a+="만"),8==o&&(a+="억"),12==o&&(a+="조"),i=a+i}return i},String.prototype.toKorean=function(){return this.unNumberFormat().toKorean()},APP.POPUP=null,function(e){APP.POPUP=function(t){var n=e.extend({},{title:"_blank",width:800,height:600,url:""},t);cw=screen.availWidth,ch=screen.availHeight,sw=n.width,sh=n.height,ml=(cw-sw)/2,mt=(ch-sh)/2;t="width="+sw+",height="+sh+",top="+mt+",left="+ml+",scrollbars=yes,resizable=no";var i=window.open(n.url,n.title,t);(null==i||void 0===i||null==i&&0==i.outerWidth||null!=i&&0==i.outerHeight)&&alert("팝업 차단 기능이 설정되어있습니다\n\n차단 기능을 해제(팝업허용) 한 후 다시 이용해 주십시오.")}}(jQuery),APP.MEMBER={},APP.MEMBER.init=function(){APP.MEMBER.InitLoginForm(),APP.MEMBER.initCheckExist(),APP.MEMBER.InitRegisterForm(),APP.MEMBER.InitMemberModifyForm()},APP.MEMBER.InitRegisterForm=function(){$('[data-form="form-register"]').submit(function(e){e.preventDefault();var t=$(this);$.ajax({type:"PUT",data:t.serialize(),url:base_url+"/ajax/members/info",success:function(e){1==e.result&&(alert(LANG.member_join_success),location.href=base_url+"/members/login")}})})},APP.MEMBER.InitMemberModifyForm=function(){$('[data-form="form-member-modify"]').submit(function(e){e.preventDefault();var t=$(this);$.ajax({type:"POST",data:t.serialize(),url:base_url+"/ajax/members/info",success:function(e){1==e.result&&(alert(e.message),location.reload())}})})},APP.MEMBER.InitLoginForm=function(){$('[data-role="form-login"]').submit(function(e){e.preventDefault();var t=$(this),n=t.find('[name="login_id"]'),i=t.find('[name="login_pass"]');return""==n.val().trim()?(alert(LANG.member_login_userid_required),n.focus(),!1):""==i.val().trim()?(alert(LANG.member_login_password_required),i.focus(),!1):void $.ajax({url:base_url+"ajax/members/login",type:"POST",data:t.serialize(),success:function(e){1==e.result&&(location.href=e.reurl?e.reurl:base_url)},error:function(e){i.val("")}})})},APP.MEMBER.initCheckExist=function(){$('[data-toggle="check-member-exist"]').each(function(){var e=$(this);e.on("click",function(){var t=$("#"+e.data("target")),n=e.data("check"),i=t.val();if(void 0===i||!i||!i.trim())return alert(LANG.member_join_user_id_required),t.focus(),!1;var o=APP.MEMBER.denyWordCheck(n,i);return"VALID_EMAIL"==o?(alert(LANG.member_join_no_valid_email_address),t.focus(),!1):o?APP.MEMBER.getInfo(n,i)?(alert(LANG.member_join_user_id_already_exists),t.focus(),!1):(alert(LANG.member_join_user_id_available),!0):(alert(LANG.member_join_user_id_contains_deny_word),t.focus(),!1)})})},APP.MEMBER.getInfo=function(e,t){var n=null;return $.ajax({url:base_url+"/ajax/members/info",type:"get",async:!1,cache:!1,data:{key:e,value:t},success:function(e){n=e.result}}),n},APP.MEMBER.denyWordCheck=function(e,t){var n=null;return $.ajax({url:base_url+"/ajax/members/word_check",type:"get",async:!1,cache:!1,data:{key:e,value:t},success:function(e){n=e.result}}),n},APP.MEMBER.POP_CHANGE_PHOTO=function(){APP.POPUP({url:"/members/photo_change",width:600,height:150})},$(document).ready(APP.MEMBER.init),APP.BOARD={},APP.BOARD.CATEGORY={},APP.BOARD.EXTRA={},APP.BOARD.COMMENT={},APP.BOARD.CATEGORY.count=function(e){if(void 0===e||!e)return 0;var t=0;return $.ajax({url:base_url+"/ajax/board/category_count",type:"get",cache:!1,async:!1,data:{bca_idx:e},success:function(e){t=e.result}}),t},APP.BOARD.CATEGORY.postCount=function(e){if(void 0===e||!e)return 0;var t=0;return $.ajax({url:base_url+"/ajax/board/category_post_count",type:"get",cache:!1,async:!1,data:{bca_idx:e},success:function(e){t=e.result}}),t},APP.BOARD.COMMENT.modify=function(e){APP.POPUP({title:"_blank",width:800,height:600,url:base_url+"/board/comment/modify/"+e})},APP.BOARD.COMMENT.reply=function(e,t){APP.POPUP({title:"_blank",width:800,height:600,url:base_url+"/board/comment/reply/"+e+"/"+t})},$(function(){var e=$('[data-form="post"]');e.length>0&&e.on("submit",function(){$.blockUI({css:{width:"25px",top:"49%",left:"49%",border:"0px none",backgroundColor:"transparent",cursor:"wait"},message:'<img src="/assets/images/common/ajax-loader.gif" alt="로딩중">',baseZ:1e4,overlayCSS:{opacity:0}})})}),$(function(){$(document).ajaxError(function(e,t,n){var i="알수없는 오류가 발생하였습니다.";void 0!==t.responseJSON&&void 0!==t.responseJSON.message?i=t.responseJSON.message:500==t.status?i="서버 코드 오류가 발생하였습니다.\n관리자에게 문의하세요":401==t.status&&(i="해당 명령을 실행할 권한이 없습니다."),toastr.error(i,"오류 발생")}).ajaxStart(function(){$.blockUI({css:{width:"25px",top:"49%",left:"49%",border:"0px none",backgroundColor:"transparent",cursor:"wait"},message:'<img src="/assets/images/common/ajax-loader.gif" alt="로딩중">',baseZ:1e4,overlayCSS:{opacity:0}})}).ajaxComplete(function(){$.unblockUI()})}),$(function(){$(document).on("change","[data-checkbox]",function(){var e=$(this),t=null!=e.data("checkbox-all"),n=e.data("checkbox"),i=e.prop("checked"),o=t?e:$('[data-checkbox="'+n+'"][data-checkbox-all]');t?$('[data-checkbox="'+n+'"]').prop("checked",i):o.prop("checked",$('[data-checkbox="'+n+'"]').not("[data-checkbox-all]").length==$('[data-checkbox="'+n+'"]:checked').not("[data-checkbox-all]").length)})}),$(function(){$(document).on("keypress","[data-number-format]",function(e){$(this).val($(this).val().trim().unNumberFormat().numberFormat())})}),$(function(){$(document).on("keypress","[data-number-only]",function(e){8!=e.which&&0!=e.which&&45!=e.which&&(e.which<48||e.which>57)&&e.preventDefault()})}),$(function(){$(document).on("keyup","textarea[data-autosize]",function(e){autosize($(this))}),$("textarea[data-autosize]").keyup()}),$(function(){$("body").on("keypress",'[data-regex="phone-number"]',function(e){8!=e.which&&0!=e.which&&45!=e.which&&(e.which<48||e.which>57)&&e.preventDefault()}).on("blur",'[data-regex="phone-number"]',function(e){if(""!=$(this).val()){var t=$(this).val().regex("phone");if(!1===t)return toastr.error("유효하지 않은 전화번호 입니다."),$(this).val(""),void $(this).focus();$(this).val(t)}}),$("body").on("blur",'[data-regex="tel-number"]',function(e){if(""!=$(this).val()){var t=$(this).val().regex("tel");if(!1===t)return toastr.error("유효하지 않은 전화번호 입니다."),$(this).val(""),void $(this).focus();$(this).val(t)}}),$("body").on("blur",'[data-regex="email-address"]',function(e){""!=$(this).val()&&($(this).val().regex("email")||(toastr.error("유효하지 않은 이메일주소 입니다."),$(this).val(""),$(this).focus()))})}),function(e){"use strict";var t=".dropdown-backdrop",n='[data-toggle="dropdown"]',i=function(t){e(t).on("click.bs.dropdown",this.toggle)};function o(t){var n=t.attr("data-target");n||(n=(n=t.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&e(n);return i&&i.length?i:t.parent()}function a(i){i&&3===i.which||(e(t).remove(),e(n).each(function(){var t=e(this),n=o(t),a={relatedTarget:this};n.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&e.contains(n[0],i.target)||(n.trigger(i=e.Event("hide.bs.dropdown",a)),i.isDefaultPrevented()||(t.attr("aria-expanded","false"),n.removeClass("open").trigger(e.Event("hidden.bs.dropdown",a)))))}))}i.VERSION="3.3.7",i.prototype.toggle=function(t){var n=e(this);if(!n.is(".disabled, :disabled")){var i=o(n),r=i.hasClass("open");if(a(),!r){"ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",a);var s={relatedTarget:this};if(i.trigger(t=e.Event("show.bs.dropdown",s)),t.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),i.toggleClass("open").trigger(e.Event("shown.bs.dropdown",s))}return!1}},i.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var i=e(this);if(t.preventDefault(),t.stopPropagation(),!i.is(".disabled, :disabled")){var a=o(i),r=a.hasClass("open");if(!r&&27!=t.which||r&&27==t.which)return 27==t.which&&a.find(n).trigger("focus"),i.trigger("click");var s=a.find(".dropdown-menu li:not(.disabled):visible a");if(s.length){var l=s.index(t.target);38==t.which&&l>0&&l--,40==t.which&&l<s.length-1&&l++,~l||(l=0),s.eq(l).trigger("focus")}}}};var r=e.fn.dropdown;e.fn.dropdown=function(t){return this.each(function(){var n=e(this),o=n.data("bs.dropdown");o||n.data("bs.dropdown",o=new i(this)),"string"==typeof t&&o[t].call(n)})},e.fn.dropdown.Constructor=i,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=r,this},e(document).on("click.bs.dropdown.data-api",a).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",n,i.prototype.toggle).on("keydown.bs.dropdown.data-api",n,i.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",i.prototype.keydown)}(jQuery),APP.MODAL=function(){var e={width:400,height:400,position:{left:"center",top:"middle"}},t=$.extend(!0,{},e,{iframeLoadingMsg:"",iframe:{method:"get",url:"#"},closeToEsc:!0,onStateChanged:function(){"open"===this.state?APP.MASK.open():"close"===this.state&&APP.MASK.close()},animateTime:100,zIndex:1001,absolute:!0,fullScreen:!1,header:{title:"새로운 윈도우",btns:{close:{label:'<i class="far fa-times"></i>',onClick:function(){APP.MODAL.callback()}}}}});return{open:function(e){e=$.extend(!0,{},t,e),$(document.body).addClass("modalOpened"),this.modalCallback=e.callback,this.modalSendData=e.sendData,APP.modal.open(e)},css:function(t){t=$.extend(!0,{},e,t),APP.modal.css(t)},align:function(e){APP.modal.align(e)},close:function(e){APP.modal.close(),setTimeout(function(){$(document.body).removeClass("modalOpened")},500)},minimize:function(){APP.modal.minimize()},maximize:function(){APP.modal.maximize()},callback:function(e){this.modalCallback&&this.modalCallback(e),this.close(e)},modalCallback:{},getData:function(){if(this.modalSendData)return this.modalSendData()}}}(),APP.MODAL2=function(){var e={width:400,height:400,position:{left:"center",top:"middle"}},t=$.extend(!0,{},e,{iframeLoadingMsg:"",iframe:{method:"get",url:"#"},closeToEsc:!0,onStateChanged:function(){"open"===this.state?APP.MASK2.open():"close"===this.state&&APP.MASK2.close()},animateTime:100,zIndex:2001,absolute:!0,fullScreen:!1,header:{title:"새로운 윈도우",btns:{close:{label:'<i class="far fa-times"></i>',onClick:function(){APP.MODAL2.callback()}}}}});return{open:function(e){e=$.extend(!0,{},t,e),$(document.body).addClass("modalOpened"),this.modalCallback=e.callback,this.modalSendData=e.sendData,APP.modal2.open(e)},css:function(t){t=$.extend(!0,{},e,t),APP.modal2.css(t)},align:function(e){APP.modal2.align(e)},close:function(e){APP.modal2.close(),setTimeout(function(){$(document.body).removeClass("modalOpened")},500)},minimize:function(){APP.modal2.minimize()},maximize:function(){APP.modal2.maximize()},callback:function(e){this.modalCallback&&this.modalCallback(e),this.close(e)},modalCallback:{},getData:function(){if(this.modalSendData)return this.modalSendData()}}}(),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){e.ui=e.ui||{};e.ui.version="1.12.1";var t,n=0,i=Array.prototype.slice;e.cleanData=(t=e.cleanData,function(n){var i,o,a;for(a=0;null!=(o=n[a]);a++)try{(i=e._data(o,"events"))&&i.remove&&e(o).triggerHandler("remove")}catch(e){}t(n)}),e.widget=function(t,n,i){var o,a,r,s={},l=t.split(".")[0],u=l+"-"+(t=t.split(".")[1]);return i||(i=n,n=e.Widget),e.isArray(i)&&(i=e.extend.apply(null,[{}].concat(i))),e.expr[":"][u.toLowerCase()]=function(t){return!!e.data(t,u)},e[l]=e[l]||{},o=e[l][t],a=e[l][t]=function(e,t){if(!this._createWidget)return new a(e,t);arguments.length&&this._createWidget(e,t)},e.extend(a,o,{version:i.version,_proto:e.extend({},i),_childConstructors:[]}),(r=new n).options=e.widget.extend({},r.options),e.each(i,function(t,i){e.isFunction(i)?s[t]=function(){function e(){return n.prototype[t].apply(this,arguments)}function o(e){return n.prototype[t].apply(this,e)}return function(){var t,n=this._super,a=this._superApply;return this._super=e,this._superApply=o,t=i.apply(this,arguments),this._super=n,this._superApply=a,t}}():s[t]=i}),a.prototype=e.widget.extend(r,{widgetEventPrefix:o&&r.widgetEventPrefix||t},s,{constructor:a,namespace:l,widgetName:t,widgetFullName:u}),o?(e.each(o._childConstructors,function(t,n){var i=n.prototype;e.widget(i.namespace+"."+i.widgetName,a,n._proto)}),delete o._childConstructors):n._childConstructors.push(a),e.widget.bridge(t,a),a},e.widget.extend=function(t){for(var n,o,a=i.call(arguments,1),r=0,s=a.length;r<s;r++)for(n in a[r])o=a[r][n],a[r].hasOwnProperty(n)&&void 0!==o&&(e.isPlainObject(o)?t[n]=e.isPlainObject(t[n])?e.widget.extend({},t[n],o):e.widget.extend({},o):t[n]=o);return t},e.widget.bridge=function(t,n){var o=n.prototype.widgetFullName||t;e.fn[t]=function(a){var r="string"==typeof a,s=i.call(arguments,1),l=this;return r?this.length||"instance"!==a?this.each(function(){var n,i=e.data(this,o);return"instance"===a?(l=i,!1):i?e.isFunction(i[a])&&"_"!==a.charAt(0)?(n=i[a].apply(i,s))!==i&&void 0!==n?(l=n&&n.jquery?l.pushStack(n.get()):n,!1):void 0:e.error("no such method '"+a+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+a+"'")}):l=void 0:(s.length&&(a=e.widget.extend.apply(null,[a].concat(s))),this.each(function(){var t=e.data(this,o);t?(t.option(a||{}),t._init&&t._init()):e.data(this,o,new n(a,this))})),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,i){i=e(i||this.defaultElement||this)[0],this.element=e(i),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},i!==this&&(e.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()}}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,function(e,n){t._removeClass(n,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var i,o,a,r=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(r={},i=t.split("."),t=i.shift(),i.length){for(o=r[t]=e.widget.extend({},this.options[t]),a=0;a<i.length-1;a++)o[i[a]]=o[i[a]]||{},o=o[i[a]];if(t=i.pop(),1===arguments.length)return void 0===o[t]?null:o[t];o[t]=n}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];r[t]=n}return this._setOptions(r),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var n,i,o;for(n in t)o=this.classesElementLookup[n],t[n]!==this.options.classes[n]&&o&&o.length&&(i=e(o.get()),this._removeClass(o,n),i.addClass(this._classes({element:i,keys:n,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){var n=[],i=this;function o(o,a){var r,s;for(s=0;s<o.length;s++)r=i.classesElementLookup[o[s]]||e(),r=t.add?e(e.unique(r.get().concat(t.element.get()))):e(r.not(t.element).get()),i.classesElementLookup[o[s]]=r,n.push(o[s]),a&&t.classes[o[s]]&&n.push(t.classes[o[s]])}return t=e.extend({element:this.element,classes:this.options.classes||{}},t),this._on(t.element,{remove:"_untrackClassesElement"}),t.keys&&o(t.keys.match(/\S+/g)||[],!0),t.extra&&o(t.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(t){var n=this;e.each(n.classesElementLookup,function(i,o){-1!==e.inArray(t.target,o)&&(n.classesElementLookup[i]=e(o.not(t.target).get()))})},_removeClass:function(e,t,n){return this._toggleClass(e,t,n,!1)},_addClass:function(e,t,n){return this._toggleClass(e,t,n,!0)},_toggleClass:function(e,t,n,i){i="boolean"==typeof i?i:n;var o="string"==typeof e||null===e,a={extra:o?t:n,keys:o?e:t,element:o?this.element:e,add:i};return a.element.toggleClass(this._classes(a),i),this},_on:function(t,n,i){var o,a=this;"boolean"!=typeof t&&(i=n,n=t,t=!1),i?(n=o=e(n),this.bindings=this.bindings.add(n)):(i=n,n=this.element,o=this.widget()),e.each(i,function(i,r){function s(){if(t||!0!==a.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof r?a[r]:r).apply(a,arguments)}"string"!=typeof r&&(s.guid=r.guid=r.guid||s.guid||e.guid++);var l=i.match(/^([\w:-]*)\s*(.*)$/),u=l[1]+a.eventNamespace,c=l[2];c?o.on(u,c,s):n.on(u,s)})},_off:function(t,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(n).off(n),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){var n=this;return setTimeout(function(){return("string"==typeof e?n[e]:e).apply(n,arguments)},t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,n,i){var o,a,r=this.options[t];if(i=i||{},(n=e.Event(n)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),n.target=this.element[0],a=n.originalEvent)for(o in a)o in n||(n[o]=a[o]);return this.element.trigger(n,i),!(e.isFunction(r)&&!1===r.apply(this.element[0],[n].concat(i))||n.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,n){e.Widget.prototype["_"+t]=function(i,o,a){var r;"string"==typeof o&&(o={effect:o});var s=o?!0===o||"number"==typeof o?n:o.effect||n:t;"number"==typeof(o=o||{})&&(o={duration:o}),r=!e.isEmptyObject(o),o.complete=a,o.delay&&i.delay(o.delay),r&&e.effects&&e.effects.effect[s]?i[t](o):s!==t&&i[s]?i[s](o.duration,o.easing,a):i.queue(function(n){e(this)[t](),a&&a.call(i[0]),n()})}});e.widget;!function(){var t,n=Math.max,i=Math.abs,o=/left|center|right/,a=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,s=/^\w+/,l=/%$/,u=e.fn.position;function c(e,t,n){return[parseFloat(e[0])*(l.test(e[0])?t/100:1),parseFloat(e[1])*(l.test(e[1])?n/100:1)]}function d(t,n){return parseInt(e.css(t,n),10)||0}e.position={scrollbarWidth:function(){if(void 0!==t)return t;var n,i,o=e("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),a=o.children()[0];return e("body").append(o),n=a.offsetWidth,o.css("overflow","scroll"),n===(i=a.offsetWidth)&&(i=o[0].clientWidth),o.remove(),t=n-i},getScrollInfo:function(t){var n=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),o="scroll"===n||"auto"===n&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?e.position.scrollbarWidth():0,height:o?e.position.scrollbarWidth():0}},getWithinInfo:function(t){var n=e(t||window),i=e.isWindow(n[0]),o=!!n[0]&&9===n[0].nodeType;return{element:n,isWindow:i,isDocument:o,offset:!i&&!o?e(t).offset():{left:0,top:0},scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop(),width:n.outerWidth(),height:n.outerHeight()}}},e.fn.position=function(t){if(!t||!t.of)return u.apply(this,arguments);t=e.extend({},t);var l,h,p,f,g,_,m,v,y=e(t.of),b=e.position.getWithinInfo(t.within),x=e.position.getScrollInfo(b),w=(t.collision||"flip").split(" "),C={};return _=9===(v=(m=y)[0]).nodeType?{width:m.width(),height:m.height(),offset:{top:0,left:0}}:e.isWindow(v)?{width:m.width(),height:m.height(),offset:{top:m.scrollTop(),left:m.scrollLeft()}}:v.preventDefault?{width:0,height:0,offset:{top:v.pageY,left:v.pageX}}:{width:m.outerWidth(),height:m.outerHeight(),offset:m.offset()},y[0].preventDefault&&(t.at="left top"),h=_.width,p=_.height,f=_.offset,g=e.extend({},f),e.each(["my","at"],function(){var e,n,i=(t[this]||"").split(" ");1===i.length&&(i=o.test(i[0])?i.concat(["center"]):a.test(i[0])?["center"].concat(i):["center","center"]),i[0]=o.test(i[0])?i[0]:"center",i[1]=a.test(i[1])?i[1]:"center",e=r.exec(i[0]),n=r.exec(i[1]),C[this]=[e?e[0]:0,n?n[0]:0],t[this]=[s.exec(i[0])[0],s.exec(i[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===t.at[0]?g.left+=h:"center"===t.at[0]&&(g.left+=h/2),"bottom"===t.at[1]?g.top+=p:"center"===t.at[1]&&(g.top+=p/2),l=c(C.at,h,p),g.left+=l[0],g.top+=l[1],this.each(function(){var o,a,r=e(this),s=r.outerWidth(),u=r.outerHeight(),_=d(this,"marginLeft"),m=d(this,"marginTop"),v=s+_+d(this,"marginRight")+x.width,k=u+m+d(this,"marginBottom")+x.height,S=e.extend({},g),I=c(C.my,r.outerWidth(),r.outerHeight());"right"===t.my[0]?S.left-=s:"center"===t.my[0]&&(S.left-=s/2),"bottom"===t.my[1]?S.top-=u:"center"===t.my[1]&&(S.top-=u/2),S.left+=I[0],S.top+=I[1],o={marginLeft:_,marginTop:m},e.each(["left","top"],function(n,i){e.ui.position[w[n]]&&e.ui.position[w[n]][i](S,{targetWidth:h,targetHeight:p,elemWidth:s,elemHeight:u,collisionPosition:o,collisionWidth:v,collisionHeight:k,offset:[l[0]+I[0],l[1]+I[1]],my:t.my,at:t.at,within:b,elem:r})}),t.using&&(a=function(e){var o=f.left-S.left,a=o+h-s,l=f.top-S.top,c=l+p-u,d={target:{element:y,left:f.left,top:f.top,width:h,height:p},element:{element:r,left:S.left,top:S.top,width:s,height:u},horizontal:a<0?"left":o>0?"right":"center",vertical:c<0?"top":l>0?"bottom":"middle"};h<s&&i(o+a)<h&&(d.horizontal="center"),p<u&&i(l+c)<p&&(d.vertical="middle"),n(i(o),i(a))>n(i(l),i(c))?d.important="horizontal":d.important="vertical",t.using.call(this,e,d)}),r.offset(e.extend(S,{using:a}))})},e.ui.position={fit:{left:function(e,t){var i,o=t.within,a=o.isWindow?o.scrollLeft:o.offset.left,r=o.width,s=e.left-t.collisionPosition.marginLeft,l=a-s,u=s+t.collisionWidth-r-a;t.collisionWidth>r?l>0&&u<=0?(i=e.left+l+t.collisionWidth-r-a,e.left+=l-i):e.left=u>0&&l<=0?a:l>u?a+r-t.collisionWidth:a:l>0?e.left+=l:u>0?e.left-=u:e.left=n(e.left-s,e.left)},top:function(e,t){var i,o=t.within,a=o.isWindow?o.scrollTop:o.offset.top,r=t.within.height,s=e.top-t.collisionPosition.marginTop,l=a-s,u=s+t.collisionHeight-r-a;t.collisionHeight>r?l>0&&u<=0?(i=e.top+l+t.collisionHeight-r-a,e.top+=l-i):e.top=u>0&&l<=0?a:l>u?a+r-t.collisionHeight:a:l>0?e.top+=l:u>0?e.top-=u:e.top=n(e.top-s,e.top)}},flip:{left:function(e,t){var n,o,a=t.within,r=a.offset.left+a.scrollLeft,s=a.width,l=a.isWindow?a.scrollLeft:a.offset.left,u=e.left-t.collisionPosition.marginLeft,c=u-l,d=u+t.collisionWidth-s-l,h="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,p="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,f=-2*t.offset[0];c<0?((n=e.left+h+p+f+t.collisionWidth-s-r)<0||n<i(c))&&(e.left+=h+p+f):d>0&&((o=e.left-t.collisionPosition.marginLeft+h+p+f-l)>0||i(o)<d)&&(e.left+=h+p+f)},top:function(e,t){var n,o,a=t.within,r=a.offset.top+a.scrollTop,s=a.height,l=a.isWindow?a.scrollTop:a.offset.top,u=e.top-t.collisionPosition.marginTop,c=u-l,d=u+t.collisionHeight-s-l,h="top"===t.my[1]?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,p="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,f=-2*t.offset[1];c<0?((o=e.top+h+p+f+t.collisionHeight-s-r)<0||o<i(c))&&(e.top+=h+p+f):d>0&&((n=e.top-t.collisionPosition.marginTop+h+p+f-l)>0||i(n)<d)&&(e.top+=h+p+f)}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}}}();var o;e.ui.position,e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(n){return!!e.data(n,t)}}):function(t,n,i){return!!e.data(t,i[3])}}),e.fn.extend({disableSelection:(o="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(o+".ui-disableSelection",function(e){e.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});e.ui.focusable=function(t,n){var i,o,a,r,s,l=t.nodeName.toLowerCase();return"area"===l?(o=(i=t.parentNode).name,!(!t.href||!o||"map"!==i.nodeName.toLowerCase())&&((a=e("img[usemap='#"+o+"']")).length>0&&a.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(l)?(r=!t.disabled)&&(s=e(t).closest("fieldset")[0])&&(r=!s.disabled):r="a"===l&&t.href||n,r&&e(t).is(":visible")&&function(e){var t=e.css("visibility");for(;"inherit"===t;)e=e.parent(),t=e.css("visibility");return"hidden"!==t}(e(t)))},e.extend(e.expr[":"],{focusable:function(t){return e.ui.focusable(t,null!=e.attr(t,"tabindex"))}});e.ui.focusable,e.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):e(this[0].form)},e.ui.formResetMixin={_formResetHandler:function(){var t=e(this);setTimeout(function(){var n=t.data("ui-form-reset-instances");e.each(n,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var e=this.form.data("ui-form-reset-instances")||[];e.length||this.form.on("reset.ui-form-reset",this._formResetHandler),e.push(this),this.form.data("ui-form-reset-instances",e)}},_unbindFormResetHandler:function(){if(this.form.length){var t=this.form.data("ui-form-reset-instances");t.splice(e.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}};"1.7"===e.fn.jquery.substring(0,3)&&(e.each(["Width","Height"],function(t,n){var i="Width"===n?["Left","Right"]:["Top","Bottom"],o=n.toLowerCase(),a={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};function r(t,n,o,a){return e.each(i,function(){n-=parseFloat(e.css(t,"padding"+this))||0,o&&(n-=parseFloat(e.css(t,"border"+this+"Width"))||0),a&&(n-=parseFloat(e.css(t,"margin"+this))||0)}),n}e.fn["inner"+n]=function(t){return void 0===t?a["inner"+n].call(this):this.each(function(){e(this).css(o,r(this,t)+"px")})},e.fn["outer"+n]=function(t,i){return"number"!=typeof t?a["outer"+n].call(this,t):this.each(function(){e(this).css(o,r(this,t,!0,i)+"px")})}}),e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))});e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},e.ui.escapeSelector=(a=/([!"#$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g,function(e){return e.replace(a,"\\$1")}),e.fn.labels=function(){var t,n,i,o,a;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(o=this.eq(0).parents("label"),(i=this.attr("id"))&&(a=(t=this.eq(0).parents().last()).add(t.length?t.siblings():this.siblings()),n="label[for='"+e.ui.escapeSelector(i)+"']",o=o.add(a.find(n).addBack(n))),this.pushStack(o))},e.fn.scrollParent=function(t){var n=this.css("position"),i="absolute"===n,o=t?/(auto|scroll|hidden)/:/(auto|scroll)/,a=this.parents().filter(function(){var t=e(this);return(!i||"static"!==t.css("position"))&&o.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==n&&a.length?a:e(this[0].ownerDocument||document)},e.extend(e.expr[":"],{tabbable:function(t){var n=e.attr(t,"tabindex"),i=null!=n;return(!i||n>=0)&&e.ui.focusable(t,i)}}),e.fn.extend({uniqueId:(r=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++r)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&e(this).removeAttr("id")})}}),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var a,r,s=!1;e(document).on("mouseup",function(){s=!1});e.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(n){if(!0===e.data(n.target,t.widgetName+".preventClickEvent"))return e.removeData(n.target,t.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!s){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var n=this,i=1===t.which,o=!("string"!=typeof this.options.cancel||!t.target.nodeName)&&e(t.target).closest(this.options.cancel).length;return!(i&&!o&&this._mouseCapture(t))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?(t.preventDefault(),!0):(!0===e.data(t.target,this.widgetName+".preventClickEvent")&&e.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return n._mouseMove(e)},this._mouseUpDelegate=function(e){return n._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),s=!0,!0))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,s=!1,t.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),e.ui.plugin={add:function(t,n,i){var o,a=e.ui[t].prototype;for(o in i)a.plugins[o]=a.plugins[o]||[],a.plugins[o].push([n,i[o]])},call:function(e,t,n,i){var o,a=e.plugins[t];if(a&&(i||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(o=0;o<a.length;o++)e.options[a[o][0]]&&a[o][1].apply(e.element,n)}},e.ui.safeActiveElement=function(e){var t;try{t=e.activeElement}catch(n){t=e.body}return t||(t=e.body),t.nodeName||(t=e.body),t},e.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&e(t).trigger("blur")};e.widget("ui.draggable",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var n=this.options;return!(this.helper||n.disabled||e(t.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(t),!!this.handle&&(this._blurActiveElement(t),this._blockFrames(!0===n.iframeFix?"iframe":n.iframeFix),!0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=e(this);return e("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var n=e.ui.safeActiveElement(this.document[0]);e(t.target).closest(n).length||e.ui.safeBlur(n)},_mouseStart:function(t){var n=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===e(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!n.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(t,n){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!n){var i=this._uiHash();if(!1===this._trigger("drag",t,i))return this._mouseUp(new e.Event("mouseup",t)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var n=this,i=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(i=e.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==n._trigger("stop",t)&&n._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new e.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!e(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var n=this.options,i=e.isFunction(n.helper),o=i?e(n.helper.apply(this.element[0],[t])):"clone"===n.helper?this.element.clone().removeAttr("id"):this.element;return o.parents("body").length||o.appendTo("parent"===n.appendTo?this.element[0].parentNode:n.appendTo),i&&o[0]===this.element[0]&&this._setPositionRelative(),o[0]===this.element[0]||/(fixed|absolute)/.test(o.css("position"))||o.css("position","absolute"),o},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),n=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==n&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,n,i,o=this.options,a=this.document[0];this.relativeContainer=null,o.containment?"window"!==o.containment?"document"!==o.containment?o.containment.constructor!==Array?("parent"===o.containment&&(o.containment=this.helper[0].parentNode),(i=(n=e(o.containment))[0])&&(t=/(scroll|auto)/.test(n.css("overflow")),this.containment=[(parseInt(n.css("borderLeftWidth"),10)||0)+(parseInt(n.css("paddingLeft"),10)||0),(parseInt(n.css("borderTopWidth"),10)||0)+(parseInt(n.css("paddingTop"),10)||0),(t?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(n.css("borderRightWidth"),10)||0)-(parseInt(n.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(n.css("borderBottomWidth"),10)||0)-(parseInt(n.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=n)):this.containment=o.containment:this.containment=[0,0,e(a).width()-this.helperProportions.width-this.margins.left,(e(a).height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(e,t){t||(t=this.position);var n="absolute"===e?1:-1,i=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*n,left:t.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*n}},_generatePosition:function(e,t){var n,i,o,a,r=this.options,s=this._isRootNode(this.scrollParent[0]),l=e.pageX,u=e.pageY;return s&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(i=this.relativeContainer.offset(),n=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):n=this.containment,e.pageX-this.offset.click.left<n[0]&&(l=n[0]+this.offset.click.left),e.pageY-this.offset.click.top<n[1]&&(u=n[1]+this.offset.click.top),e.pageX-this.offset.click.left>n[2]&&(l=n[2]+this.offset.click.left),e.pageY-this.offset.click.top>n[3]&&(u=n[3]+this.offset.click.top)),r.grid&&(o=r.grid[1]?this.originalPageY+Math.round((u-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,u=n?o-this.offset.click.top>=n[1]||o-this.offset.click.top>n[3]?o:o-this.offset.click.top>=n[1]?o-r.grid[1]:o+r.grid[1]:o,a=r.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,l=n?a-this.offset.click.left>=n[0]||a-this.offset.click.left>n[2]?a:a-this.offset.click.left>=n[0]?a-r.grid[0]:a+r.grid[0]:a),"y"===r.axis&&(l=this.originalPageX),"x"===r.axis&&(u=this.originalPageY)),{top:u-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,n,i){return i=i||this._uiHash(),e.ui.plugin.call(this,t,[n,i,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,n,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,n,i){var o=e.extend({},n,{item:i.element});i.sortables=[],e(i.options.connectToSortable).each(function(){var n=e(this).sortable("instance");n&&!n.options.disabled&&(i.sortables.push(n),n.refreshPositions(),n._trigger("activate",t,o))})},stop:function(t,n,i){var o=e.extend({},n,{item:i.element});i.cancelHelperRemoval=!1,e.each(i.sortables,function(){this.isOver?(this.isOver=0,i.cancelHelperRemoval=!0,this.cancelHelperRemoval=!1,this._storedCSS={position:this.placeholder.css("position"),top:this.placeholder.css("top"),left:this.placeholder.css("left")},this._mouseStop(t),this.options.helper=this.options._helper):(this.cancelHelperRemoval=!0,this._trigger("deactivate",t,o))})},drag:function(t,n,i){e.each(i.sortables,function(){var o=!1,a=this;a.positionAbs=i.positionAbs,a.helperProportions=i.helperProportions,a.offset.click=i.offset.click,a._intersectsWith(a.containerCache)&&(o=!0,e.each(i.sortables,function(){return this.positionAbs=i.positionAbs,this.helperProportions=i.helperProportions,this.offset.click=i.offset.click,this!==a&&this._intersectsWith(this.containerCache)&&e.contains(a.element[0],this.element[0])&&(o=!1),o})),o?(a.isOver||(a.isOver=1,i._parent=n.helper.parent(),a.currentItem=n.helper.appendTo(a.element).data("ui-sortable-item",!0),a.options._helper=a.options.helper,a.options.helper=function(){return n.helper[0]},t.target=a.currentItem[0],a._mouseCapture(t,!0),a._mouseStart(t,!0,!0),a.offset.click.top=i.offset.click.top,a.offset.click.left=i.offset.click.left,a.offset.parent.left-=i.offset.parent.left-a.offset.parent.left,a.offset.parent.top-=i.offset.parent.top-a.offset.parent.top,i._trigger("toSortable",t),i.dropped=a.element,e.each(i.sortables,function(){this.refreshPositions()}),i.currentItem=i.element,a.fromOutside=i),a.currentItem&&(a._mouseDrag(t),n.position=a.position)):a.isOver&&(a.isOver=0,a.cancelHelperRemoval=!0,a.options._revert=a.options.revert,a.options.revert=!1,a._trigger("out",t,a._uiHash(a)),a._mouseStop(t,!0),a.options.revert=a.options._revert,a.options.helper=a.options._helper,a.placeholder&&a.placeholder.remove(),n.helper.appendTo(i._parent),i._refreshOffsets(t),n.position=i._generatePosition(t,!0),i._trigger("fromSortable",t),i.dropped=!1,e.each(i.sortables,function(){this.refreshPositions()}))})}}),e.ui.plugin.add("draggable","cursor",{start:function(t,n,i){var o=e("body"),a=i.options;o.css("cursor")&&(a._cursor=o.css("cursor")),o.css("cursor",a.cursor)},stop:function(t,n,i){var o=i.options;o._cursor&&e("body").css("cursor",o._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,n,i){var o=e(n.helper),a=i.options;o.css("opacity")&&(a._opacity=o.css("opacity")),o.css("opacity",a.opacity)},stop:function(t,n,i){var o=i.options;o._opacity&&e(n.helper).css("opacity",o._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,t,n){n.scrollParentNotHidden||(n.scrollParentNotHidden=n.helper.scrollParent(!1)),n.scrollParentNotHidden[0]!==n.document[0]&&"HTML"!==n.scrollParentNotHidden[0].tagName&&(n.overflowOffset=n.scrollParentNotHidden.offset())},drag:function(t,n,i){var o=i.options,a=!1,r=i.scrollParentNotHidden[0],s=i.document[0];r!==s&&"HTML"!==r.tagName?(o.axis&&"x"===o.axis||(i.overflowOffset.top+r.offsetHeight-t.pageY<o.scrollSensitivity?r.scrollTop=a=r.scrollTop+o.scrollSpeed:t.pageY-i.overflowOffset.top<o.scrollSensitivity&&(r.scrollTop=a=r.scrollTop-o.scrollSpeed)),o.axis&&"y"===o.axis||(i.overflowOffset.left+r.offsetWidth-t.pageX<o.scrollSensitivity?r.scrollLeft=a=r.scrollLeft+o.scrollSpeed:t.pageX-i.overflowOffset.left<o.scrollSensitivity&&(r.scrollLeft=a=r.scrollLeft-o.scrollSpeed))):(o.axis&&"x"===o.axis||(t.pageY-e(s).scrollTop()<o.scrollSensitivity?a=e(s).scrollTop(e(s).scrollTop()-o.scrollSpeed):e(window).height()-(t.pageY-e(s).scrollTop())<o.scrollSensitivity&&(a=e(s).scrollTop(e(s).scrollTop()+o.scrollSpeed))),o.axis&&"y"===o.axis||(t.pageX-e(s).scrollLeft()<o.scrollSensitivity?a=e(s).scrollLeft(e(s).scrollLeft()-o.scrollSpeed):e(window).width()-(t.pageX-e(s).scrollLeft())<o.scrollSensitivity&&(a=e(s).scrollLeft(e(s).scrollLeft()+o.scrollSpeed)))),!1!==a&&e.ui.ddmanager&&!o.dropBehaviour&&e.ui.ddmanager.prepareOffsets(i,t)}}),e.ui.plugin.add("draggable","snap",{start:function(t,n,i){var o=i.options;i.snapElements=[],e(o.snap.constructor!==String?o.snap.items||":data(ui-draggable)":o.snap).each(function(){var t=e(this),n=t.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:n.top,left:n.left})})},drag:function(t,n,i){var o,a,r,s,l,u,c,d,h,p,f=i.options,g=f.snapTolerance,_=n.offset.left,m=_+i.helperProportions.width,v=n.offset.top,y=v+i.helperProportions.height;for(h=i.snapElements.length-1;h>=0;h--)u=(l=i.snapElements[h].left-i.margins.left)+i.snapElements[h].width,d=(c=i.snapElements[h].top-i.margins.top)+i.snapElements[h].height,m<l-g||_>u+g||y<c-g||v>d+g||!e.contains(i.snapElements[h].item.ownerDocument,i.snapElements[h].item)?(i.snapElements[h].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,t,e.extend(i._uiHash(),{snapItem:i.snapElements[h].item})),i.snapElements[h].snapping=!1):("inner"!==f.snapMode&&(o=Math.abs(c-y)<=g,a=Math.abs(d-v)<=g,r=Math.abs(l-m)<=g,s=Math.abs(u-_)<=g,o&&(n.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),a&&(n.position.top=i._convertPositionTo("relative",{top:d,left:0}).top),r&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left),s&&(n.position.left=i._convertPositionTo("relative",{top:0,left:u}).left)),p=o||a||r||s,"outer"!==f.snapMode&&(o=Math.abs(c-v)<=g,a=Math.abs(d-y)<=g,r=Math.abs(l-_)<=g,s=Math.abs(u-m)<=g,o&&(n.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),a&&(n.position.top=i._convertPositionTo("relative",{top:d-i.helperProportions.height,left:0}).top),r&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l}).left),s&&(n.position.left=i._convertPositionTo("relative",{top:0,left:u-i.helperProportions.width}).left)),!i.snapElements[h].snapping&&(o||a||r||s||p)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,t,e.extend(i._uiHash(),{snapItem:i.snapElements[h].item})),i.snapElements[h].snapping=o||a||r||s||p)}}),e.ui.plugin.add("draggable","stack",{start:function(t,n,i){var o,a=i.options,r=e.makeArray(e(a.stack)).sort(function(t,n){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(n).css("zIndex"),10)||0)});r.length&&(o=parseInt(e(r[0]).css("zIndex"),10)||0,e(r).each(function(t){e(this).css("zIndex",o+t)}),this.css("zIndex",o+r.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,n,i){var o=e(n.helper),a=i.options;o.css("zIndex")&&(a._zIndex=o.css("zIndex")),o.css("zIndex",a.zIndex)},stop:function(t,n,i){var o=i.options;o._zIndex&&e(n.helper).css("zIndex",o._zIndex)}});e.ui.draggable;e.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,n=this.options,i=n.accept;this.isover=!1,this.isout=!0,this.accept=e.isFunction(i)?i:function(e){return e.is(i)},this.proportions=function(){if(!arguments.length)return t||(t={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight});t=arguments[0]},this._addToManager(n.scope),n.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){e.ui.ddmanager.droppables[t]=e.ui.ddmanager.droppables[t]||[],e.ui.ddmanager.droppables[t].push(this)},_splice:function(e){for(var t=0;t<e.length;t++)e[t]===this&&e.splice(t,1)},_destroy:function(){var t=e.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,n){if("accept"===t)this.accept=e.isFunction(n)?n:function(e){return e.is(n)};else if("scope"===t){var i=e.ui.ddmanager.droppables[this.options.scope];this._splice(i),this._addToManager(n)}this._super(t,n)},_activate:function(t){var n=e.ui.ddmanager.current;this._addActiveClass(),n&&this._trigger("activate",t,this.ui(n))},_deactivate:function(t){var n=e.ui.ddmanager.current;this._removeActiveClass(),n&&this._trigger("deactivate",t,this.ui(n))},_over:function(t){var n=e.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(n)))},_out:function(t){var n=e.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(n)))},_drop:function(t,n){var i=n||e.ui.ddmanager.current,o=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var n=e(this).droppable("instance");if(n.options.greedy&&!n.options.disabled&&n.options.scope===i.options.scope&&n.accept.call(n.element[0],i.currentItem||i.element)&&l(i,e.extend(n,{offset:n.element.offset()}),n.options.tolerance,t))return o=!0,!1}),!o&&(!!this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(i)),this.element)))},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var l=e.ui.intersect=function(){function e(e,t,n){return e>=t&&e<t+n}return function(t,n,i,o){if(!n.offset)return!1;var a=(t.positionAbs||t.position.absolute).left+t.margins.left,r=(t.positionAbs||t.position.absolute).top+t.margins.top,s=a+t.helperProportions.width,l=r+t.helperProportions.height,u=n.offset.left,c=n.offset.top,d=u+n.proportions().width,h=c+n.proportions().height;switch(i){case"fit":return u<=a&&s<=d&&c<=r&&l<=h;case"intersect":return u<a+t.helperProportions.width/2&&s-t.helperProportions.width/2<d&&c<r+t.helperProportions.height/2&&l-t.helperProportions.height/2<h;case"pointer":return e(o.pageY,c,n.proportions().height)&&e(o.pageX,u,n.proportions().width);case"touch":return(r>=c&&r<=h||l>=c&&l<=h||r<c&&l>h)&&(a>=u&&a<=d||s>=u&&s<=d||a<u&&s>d);default:return!1}}}();e.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,n){var i,o,a=e.ui.ddmanager.droppables[t.options.scope]||[],r=n?n.type:null,s=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();e:for(i=0;i<a.length;i++)if(!(a[i].options.disabled||t&&!a[i].accept.call(a[i].element[0],t.currentItem||t.element))){for(o=0;o<s.length;o++)if(s[o]===a[i].element[0]){a[i].proportions().height=0;continue e}a[i].visible="none"!==a[i].element.css("display"),a[i].visible&&("mousedown"===r&&a[i]._activate.call(a[i],n),a[i].offset=a[i].element.offset(),a[i].proportions({width:a[i].element[0].offsetWidth,height:a[i].element[0].offsetHeight}))}},drop:function(t,n){var i=!1;return e.each((e.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&l(t,this,this.options.tolerance,n)&&(i=this._drop.call(this,n)||i),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,n)))}),i},dragStart:function(t,n){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,n)})},drag:function(t,n){t.options.refreshPositions&&e.ui.ddmanager.prepareOffsets(t,n),e.each(e.ui.ddmanager.droppables[t.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var i,o,a,r=l(t,this,this.options.tolerance,n),s=!r&&this.isover?"isout":r&&!this.isover?"isover":null;s&&(this.options.greedy&&(o=this.options.scope,(a=this.element.parents(":data(ui-droppable)").filter(function(){return e(this).droppable("instance").options.scope===o})).length&&((i=e(a[0]).droppable("instance")).greedyChild="isover"===s)),i&&"isover"===s&&(i.isover=!1,i.isout=!0,i._out.call(i,n)),this[s]=!0,this["isout"===s?"isover":"isout"]=!1,this["isover"===s?"_over":"_out"].call(this,n),i&&"isout"===s&&(i.isout=!1,i.isover=!0,i._over.call(i,n)))}})},dragStop:function(t,n){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,n)}},!1!==e.uiBackCompat&&e.widget("ui.droppable",e.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}});e.ui.droppable;e.widget("ui.resizable",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseFloat(e)||0},_isNumber:function(e){return!isNaN(parseFloat(e))},_hasScroll:function(t,n){if("hidden"===e(t).css("overflow"))return!1;var i,o=n&&"left"===n?"scrollLeft":"scrollTop";return t[o]>0||(t[o]=1,i=t[o]>0,t[o]=0,i)},_create:function(){var t,n=this.options,i=this;this._addClass("ui-resizable"),e.extend(this,{_aspectRatio:!!n.aspectRatio,aspectRatio:n.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:n.helper||n.ghost||n.animate?n.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(e("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(t),this._proportionallyResize()),this._setupHandles(),n.autoHide&&e(this.element).on("mouseenter",function(){n.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())}).on("mouseleave",function(){n.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();var t,n=function(t){e(t).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(n(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),n(this.originalElement),this},_setOption:function(e,t){switch(this._super(e,t),e){case"handles":this._removeHandles(),this._setupHandles()}},_setupHandles:function(){var t,n,i,o,a,r=this.options,s=this;if(this.handles=r.handles||(e(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=e(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),i=this.handles.split(","),this.handles={},n=0;n<i.length;n++)o="ui-resizable-"+(t=e.trim(i[n])),a=e("<div>"),this._addClass(a,"ui-resizable-handle "+o),a.css({zIndex:r.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.append(a);this._renderAxis=function(t){var n,i,o,a;for(n in t=t||this.element,this.handles)this.handles[n].constructor===String?this.handles[n]=this.element.children(this.handles[n]).first().show():(this.handles[n].jquery||this.handles[n].nodeType)&&(this.handles[n]=e(this.handles[n]),this._on(this.handles[n],{mousedown:s._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(i=e(this.handles[n],this.element),a=/sw|ne|nw|se|n|s/.test(n)?i.outerHeight():i.outerWidth(),o=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join(""),t.css(o,a),this._proportionallyResize()),this._handles=this._handles.add(this.handles[n])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){s.resizing||(this.className&&(a=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),s.axis=a&&a[1]?a[1]:"se")}),r.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(t){var n,i,o=!1;for(n in this.handles)((i=e(this.handles[n])[0])===t.target||e.contains(i,t.target))&&(o=!0);return!this.options.disabled&&o},_mouseStart:function(t){var n,i,o,a=this.options,r=this.element;return this.resizing=!0,this._renderProxy(),n=this._num(this.helper.css("left")),i=this._num(this.helper.css("top")),a.containment&&(n+=e(a.containment).scrollLeft()||0,i+=e(a.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:n,top:i},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:r.width(),height:r.height()},this.originalSize=this._helper?{width:r.outerWidth(),height:r.outerHeight()}:{width:r.width(),height:r.height()},this.sizeDiff={width:r.outerWidth()-r.width(),height:r.outerHeight()-r.height()},this.originalPosition={left:n,top:i},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof a.aspectRatio?a.aspectRatio:this.originalSize.width/this.originalSize.height||1,o=e(".ui-resizable-"+this.axis).css("cursor"),e("body").css("cursor","auto"===o?this.axis+"-resize":o),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var n,i,o=this.originalMousePosition,a=this.axis,r=t.pageX-o.left||0,s=t.pageY-o.top||0,l=this._change[a];return this._updatePrevProperties(),!!l&&(n=l.apply(this,[t,r,s]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(n=this._updateRatio(n,t)),n=this._respectSize(n,t),this._updateCache(n),this._propagate("resize",t),i=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),e.isEmptyObject(i)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges()),!1)},_mouseStop:function(t){this.resizing=!1;var n,i,o,a,r,s,l,u=this.options;return this._helper&&(o=(i=(n=this._proportionallyResizeElements).length&&/textarea/i.test(n[0].nodeName))&&this._hasScroll(n[0],"left")?0:this.sizeDiff.height,a=i?0:this.sizeDiff.width,r={width:this.helper.width()-a,height:this.helper.height()-o},s=parseFloat(this.element.css("left"))+(this.position.left-this.originalPosition.left)||null,l=parseFloat(this.element.css("top"))+(this.position.top-this.originalPosition.top)||null,u.animate||this.element.css(e.extend(r,{top:l,left:s})),this.helper.height(this.size.height),this.helper.width(this.size.width),this._helper&&!u.animate&&this._proportionallyResize()),e("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px"),this.helper.css(e),e},_updateVirtualBoundaries:function(e){var t,n,i,o,a,r=this.options;a={minWidth:this._isNumber(r.minWidth)?r.minWidth:0,maxWidth:this._isNumber(r.maxWidth)?r.maxWidth:1/0,minHeight:this._isNumber(r.minHeight)?r.minHeight:0,maxHeight:this._isNumber(r.maxHeight)?r.maxHeight:1/0},(this._aspectRatio||e)&&(t=a.minHeight*this.aspectRatio,i=a.minWidth/this.aspectRatio,n=a.maxHeight*this.aspectRatio,o=a.maxWidth/this.aspectRatio,t>a.minWidth&&(a.minWidth=t),i>a.minHeight&&(a.minHeight=i),n<a.maxWidth&&(a.maxWidth=n),o<a.maxHeight&&(a.maxHeight=o)),this._vBoundaries=a},_updateCache:function(e){this.offset=this.helper.offset(),this._isNumber(e.left)&&(this.position.left=e.left),this._isNumber(e.top)&&(this.position.top=e.top),this._isNumber(e.height)&&(this.size.height=e.height),this._isNumber(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=this.position,n=this.size,i=this.axis;return this._isNumber(e.height)?e.width=e.height*this.aspectRatio:this._isNumber(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===i&&(e.left=t.left+(n.width-e.width),e.top=null),"nw"===i&&(e.top=t.top+(n.height-e.height),e.left=t.left+(n.width-e.width)),e},_respectSize:function(e){var t=this._vBoundaries,n=this.axis,i=this._isNumber(e.width)&&t.maxWidth&&t.maxWidth<e.width,o=this._isNumber(e.height)&&t.maxHeight&&t.maxHeight<e.height,a=this._isNumber(e.width)&&t.minWidth&&t.minWidth>e.width,r=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,s=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,u=/sw|nw|w/.test(n),c=/nw|ne|n/.test(n);return a&&(e.width=t.minWidth),r&&(e.height=t.minHeight),i&&(e.width=t.maxWidth),o&&(e.height=t.maxHeight),a&&u&&(e.left=s-t.minWidth),i&&u&&(e.left=s-t.maxWidth),r&&c&&(e.top=l-t.minHeight),o&&c&&(e.top=l-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(var t=0,n=[],i=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],o=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];t<4;t++)n[t]=parseFloat(i[t])||0,n[t]+=parseFloat(o[t])||0;return{height:n[0]+n[2],width:n[1]+n[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,t=0,n=this.helper||this.element;t<this._proportionallyResizeElements.length;t++)e=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(e)),e.css({height:n.height()-this.outerDimensions.height||0,width:n.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,n=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||e("<div style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++n.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var n=this.originalSize;return{left:this.originalPosition.left+t,width:n.width-t}},n:function(e,t,n){var i=this.originalSize;return{top:this.originalPosition.top+n,height:i.height-n}},s:function(e,t,n){return{height:this.originalSize.height+n}},se:function(t,n,i){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,n,i]))},sw:function(t,n,i){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,n,i]))},ne:function(t,n,i){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,n,i]))},nw:function(t,n,i){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,n,i]))}},_propagate:function(t,n){e.ui.plugin.call(this,t,[n,this.ui()]),"resize"!==t&&this._trigger(t,n,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),e.ui.plugin.add("resizable","animate",{stop:function(t){var n=e(this).resizable("instance"),i=n.options,o=n._proportionallyResizeElements,a=o.length&&/textarea/i.test(o[0].nodeName),r=a&&n._hasScroll(o[0],"left")?0:n.sizeDiff.height,s=a?0:n.sizeDiff.width,l={width:n.size.width-s,height:n.size.height-r},u=parseFloat(n.element.css("left"))+(n.position.left-n.originalPosition.left)||null,c=parseFloat(n.element.css("top"))+(n.position.top-n.originalPosition.top)||null;n.element.animate(e.extend(l,c&&u?{top:c,left:u}:{}),{duration:i.animateDuration,easing:i.animateEasing,step:function(){var i={width:parseFloat(n.element.css("width")),height:parseFloat(n.element.css("height")),top:parseFloat(n.element.css("top")),left:parseFloat(n.element.css("left"))};o&&o.length&&e(o[0]).css({width:i.width,height:i.height}),n._updateCache(i),n._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var t,n,i,o,a,r,s,l=e(this).resizable("instance"),u=l.options,c=l.element,d=u.containment,h=d instanceof e?d.get(0):/parent/.test(d)?c.parent().get(0):d;h&&(l.containerElement=e(h),/document/.test(d)||d===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}):(t=e(h),n=[],e(["Top","Right","Left","Bottom"]).each(function(e,i){n[e]=l._num(t.css("padding"+i))}),l.containerOffset=t.offset(),l.containerPosition=t.position(),l.containerSize={height:t.innerHeight()-n[3],width:t.innerWidth()-n[1]},i=l.containerOffset,o=l.containerSize.height,a=l.containerSize.width,r=l._hasScroll(h,"left")?h.scrollWidth:a,s=l._hasScroll(h)?h.scrollHeight:o,l.parentData={element:h,left:i.left,top:i.top,width:r,height:s}))},resize:function(t){var n,i,o,a,r=e(this).resizable("instance"),s=r.options,l=r.containerOffset,u=r.position,c=r._aspectRatio||t.shiftKey,d={top:0,left:0},h=r.containerElement,p=!0;h[0]!==document&&/static/.test(h.css("position"))&&(d=l),u.left<(r._helper?l.left:0)&&(r.size.width=r.size.width+(r._helper?r.position.left-l.left:r.position.left-d.left),c&&(r.size.height=r.size.width/r.aspectRatio,p=!1),r.position.left=s.helper?l.left:0),u.top<(r._helper?l.top:0)&&(r.size.height=r.size.height+(r._helper?r.position.top-l.top:r.position.top),c&&(r.size.width=r.size.height*r.aspectRatio,p=!1),r.position.top=r._helper?l.top:0),o=r.containerElement.get(0)===r.element.parent().get(0),a=/relative|absolute/.test(r.containerElement.css("position")),o&&a?(r.offset.left=r.parentData.left+r.position.left,r.offset.top=r.parentData.top+r.position.top):(r.offset.left=r.element.offset().left,r.offset.top=r.element.offset().top),n=Math.abs(r.sizeDiff.width+(r._helper?r.offset.left-d.left:r.offset.left-l.left)),i=Math.abs(r.sizeDiff.height+(r._helper?r.offset.top-d.top:r.offset.top-l.top)),n+r.size.width>=r.parentData.width&&(r.size.width=r.parentData.width-n,c&&(r.size.height=r.size.width/r.aspectRatio,p=!1)),i+r.size.height>=r.parentData.height&&(r.size.height=r.parentData.height-i,c&&(r.size.width=r.size.height*r.aspectRatio,p=!1)),p||(r.position.left=r.prevPosition.left,r.position.top=r.prevPosition.top,r.size.width=r.prevSize.width,r.size.height=r.prevSize.height)},stop:function(){var t=e(this).resizable("instance"),n=t.options,i=t.containerOffset,o=t.containerPosition,a=t.containerElement,r=e(t.helper),s=r.offset(),l=r.outerWidth()-t.sizeDiff.width,u=r.outerHeight()-t.sizeDiff.height;t._helper&&!n.animate&&/relative/.test(a.css("position"))&&e(this).css({left:s.left-o.left-i.left,width:l,height:u}),t._helper&&!n.animate&&/static/.test(a.css("position"))&&e(this).css({left:s.left-o.left-i.left,width:l,height:u})}}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).resizable("instance").options;e(t.alsoResize).each(function(){var t=e(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,n){var i=e(this).resizable("instance"),o=i.options,a=i.originalSize,r=i.originalPosition,s={height:i.size.height-a.height||0,width:i.size.width-a.width||0,top:i.position.top-r.top||0,left:i.position.left-r.left||0};e(o.alsoResize).each(function(){var t=e(this),i=e(this).data("ui-resizable-alsoresize"),o={},a=t.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(a,function(e,t){var n=(i[t]||0)+(s[t]||0);n&&n>=0&&(o[t]=n||null)}),t.css(o)})},stop:function(){e(this).removeData("ui-resizable-alsoresize")}}),e.ui.plugin.add("resizable","ghost",{start:function(){var t=e(this).resizable("instance"),n=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!1!==e.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=e(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=e(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),e.ui.plugin.add("resizable","grid",{resize:function(){var t,n=e(this).resizable("instance"),i=n.options,o=n.size,a=n.originalSize,r=n.originalPosition,s=n.axis,l="number"==typeof i.grid?[i.grid,i.grid]:i.grid,u=l[0]||1,c=l[1]||1,d=Math.round((o.width-a.width)/u)*u,h=Math.round((o.height-a.height)/c)*c,p=a.width+d,f=a.height+h,g=i.maxWidth&&i.maxWidth<p,_=i.maxHeight&&i.maxHeight<f,m=i.minWidth&&i.minWidth>p,v=i.minHeight&&i.minHeight>f;i.grid=l,m&&(p+=u),v&&(f+=c),g&&(p-=u),_&&(f-=c),/^(se|s|e)$/.test(s)?(n.size.width=p,n.size.height=f):/^(ne)$/.test(s)?(n.size.width=p,n.size.height=f,n.position.top=r.top-h):/^(sw)$/.test(s)?(n.size.width=p,n.size.height=f,n.position.left=r.left-d):((f-c<=0||p-u<=0)&&(t=n._getPaddingPlusBorderDimensions(this)),f-c>0?(n.size.height=f,n.position.top=r.top-h):(f=c-t.height,n.size.height=f,n.position.top=r.top+a.height-f),p-u>0?(n.size.width=p,n.position.left=r.left-d):(p=u-t.width,n.size.width=p,n.position.left=r.left+a.width-p))}});e.ui.resizable,e.widget("ui.selectable",e.ui.mouse,{version:"1.12.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var t=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){t.elementPos=e(t.element[0]).offset(),t.selectees=e(t.options.filter,t.element[0]),t._addClass(t.selectees,"ui-selectee"),t.selectees.each(function(){var n=e(this),i=n.offset(),o={left:i.left-t.elementPos.left,top:i.top-t.elementPos.top};e.data(this,"selectable-item",{element:this,$element:n,left:o.left,top:o.top,right:o.left+n.outerWidth(),bottom:o.top+n.outerHeight(),startselected:!1,selected:n.hasClass("ui-selected"),selecting:n.hasClass("ui-selecting"),unselecting:n.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=e("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(t){var n=this,i=this.options;this.opos=[t.pageX,t.pageY],this.elementPos=e(this.element[0]).offset(),this.options.disabled||(this.selectees=e(i.filter,this.element[0]),this._trigger("start",t),e(i.appendTo).append(this.helper),this.helper.css({left:t.pageX,top:t.pageY,width:0,height:0}),i.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var i=e.data(this,"selectable-item");i.startselected=!0,t.metaKey||t.ctrlKey||(n._removeClass(i.$element,"ui-selected"),i.selected=!1,n._addClass(i.$element,"ui-unselecting"),i.unselecting=!0,n._trigger("unselecting",t,{unselecting:i.element}))}),e(t.target).parents().addBack().each(function(){var i,o=e.data(this,"selectable-item");if(o)return i=!t.metaKey&&!t.ctrlKey||!o.$element.hasClass("ui-selected"),n._removeClass(o.$element,i?"ui-unselecting":"ui-selected")._addClass(o.$element,i?"ui-selecting":"ui-unselecting"),o.unselecting=!i,o.selecting=i,o.selected=i,i?n._trigger("selecting",t,{selecting:o.element}):n._trigger("unselecting",t,{unselecting:o.element}),!1}))},_mouseDrag:function(t){if(this.dragged=!0,!this.options.disabled){var n,i=this,o=this.options,a=this.opos[0],r=this.opos[1],s=t.pageX,l=t.pageY;return a>s&&(n=s,s=a,a=n),r>l&&(n=l,l=r,r=n),this.helper.css({left:a,top:r,width:s-a,height:l-r}),this.selectees.each(function(){var n=e.data(this,"selectable-item"),u=!1,c={};n&&n.element!==i.element[0]&&(c.left=n.left+i.elementPos.left,c.right=n.right+i.elementPos.left,c.top=n.top+i.elementPos.top,c.bottom=n.bottom+i.elementPos.top,"touch"===o.tolerance?u=!(c.left>s||c.right<a||c.top>l||c.bottom<r):"fit"===o.tolerance&&(u=c.left>a&&c.right<s&&c.top>r&&c.bottom<l),u?(n.selected&&(i._removeClass(n.$element,"ui-selected"),n.selected=!1),n.unselecting&&(i._removeClass(n.$element,"ui-unselecting"),n.unselecting=!1),n.selecting||(i._addClass(n.$element,"ui-selecting"),n.selecting=!0,i._trigger("selecting",t,{selecting:n.element}))):(n.selecting&&((t.metaKey||t.ctrlKey)&&n.startselected?(i._removeClass(n.$element,"ui-selecting"),n.selecting=!1,i._addClass(n.$element,"ui-selected"),n.selected=!0):(i._removeClass(n.$element,"ui-selecting"),n.selecting=!1,n.startselected&&(i._addClass(n.$element,"ui-unselecting"),n.unselecting=!0),i._trigger("unselecting",t,{unselecting:n.element}))),n.selected&&(t.metaKey||t.ctrlKey||n.startselected||(i._removeClass(n.$element,"ui-selected"),n.selected=!1,i._addClass(n.$element,"ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",t,{unselecting:n.element})))))}),!1}},_mouseStop:function(t){var n=this;return this.dragged=!1,e(".ui-unselecting",this.element[0]).each(function(){var i=e.data(this,"selectable-item");n._removeClass(i.$element,"ui-unselecting"),i.unselecting=!1,i.startselected=!1,n._trigger("unselected",t,{unselected:i.element})}),e(".ui-selecting",this.element[0]).each(function(){var i=e.data(this,"selectable-item");n._removeClass(i.$element,"ui-selecting")._addClass(i.$element,"ui-selected"),i.selecting=!1,i.selected=!0,i.startselected=!0,n._trigger("selected",t,{selected:i.element})}),this._trigger("stop",t),this.helper.remove(),!1}}),e.widget("ui.sortable",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,t,n){return e>=t&&e<t+n},_isFloating:function(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(e,t){this._super(e,t),"handle"===e&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),e.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,n){var i=null,o=!1,a=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(t),e(t.target).parents().each(function(){if(e.data(this,a.widgetName+"-item")===a)return i=e(this),!1}),e.data(t.target,a.widgetName+"-item")===a&&(i=e(t.target)),!!i&&(!(this.options.handle&&!n&&(e(this.options.handle,i).find("*").addBack().each(function(){this===t.target&&(o=!0)}),!o))&&(this.currentItem=i,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(t,n,i){var o,a,r=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(a=this.document.find("body"),this.storedCursor=a.css("cursor"),a.css("cursor",r.cursor),this.storedStylesheet=e("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(a)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(o=this.containers.length-1;o>=0;o--)this.containers[o]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var n,i,o,a,r=this.options,s=!1;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<r.scrollSensitivity?this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop+r.scrollSpeed:t.pageY-this.overflowOffset.top<r.scrollSensitivity&&(this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop-r.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<r.scrollSensitivity?this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft+r.scrollSpeed:t.pageX-this.overflowOffset.left<r.scrollSensitivity&&(this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft-r.scrollSpeed)):(t.pageY-this.document.scrollTop()<r.scrollSensitivity?s=this.document.scrollTop(this.document.scrollTop()-r.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<r.scrollSensitivity&&(s=this.document.scrollTop(this.document.scrollTop()+r.scrollSpeed)),t.pageX-this.document.scrollLeft()<r.scrollSensitivity?s=this.document.scrollLeft(this.document.scrollLeft()-r.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<r.scrollSensitivity&&(s=this.document.scrollLeft(this.document.scrollLeft()+r.scrollSpeed))),!1!==s&&e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),n=this.items.length-1;n>=0;n--)if(o=(i=this.items[n]).item[0],(a=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&!(o===this.currentItem[0]||this.placeholder[1===a?"next":"prev"]()[0]===o||e.contains(this.placeholder[0],o)||"semi-dynamic"===this.options.type&&e.contains(this.element[0],o))){if(this.direction=1===a?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(t,i),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,n){if(t){if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert){var i=this,o=this.placeholder.offset(),a=this.options.axis,r={};a&&"x"!==a||(r.left=o.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),a&&"y"!==a||(r.top=o.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(r,parseInt(this.options.revert,10)||500,function(){i._clear(t)})}else this._clear(t,n);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new e.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var n=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},e(n).each(function(){var n=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);n&&i.push((t.key||n[1]+"[]")+"="+(t.key&&t.expression?n[1]:n[2]))}),!i.length&&t.key&&i.push(t.key+"="),i.join("&")},toArray:function(t){var n=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},n.each(function(){i.push(e(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(e){var t=this.positionAbs.left,n=t+this.helperProportions.width,i=this.positionAbs.top,o=i+this.helperProportions.height,a=e.left,r=a+e.width,s=e.top,l=s+e.height,u=this.offset.click.top,c=this.offset.click.left,d="x"===this.options.axis||i+u>s&&i+u<l,h="y"===this.options.axis||t+c>a&&t+c<r,p=d&&h;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?p:a<t+this.helperProportions.width/2&&n-this.helperProportions.width/2<r&&s<i+this.helperProportions.height/2&&o-this.helperProportions.height/2<l},_intersectsWithPointer:function(e){var t,n,i="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),o="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width);return!(!i||!o)&&(t=this._getDragVerticalDirection(),n=this._getDragHorizontalDirection(),this.floating?"right"===n||"down"===t?2:1:t&&("down"===t?2:1))},_intersectsWithSides:function(e){var t=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),n=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),i=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return this.floating&&o?"right"===o&&n||"left"===o&&!n:i&&("down"===i&&t||"up"===i&&!t)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!==e&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){var n,i,o,a,r=[],s=[],l=this._connectWith();if(l&&t)for(n=l.length-1;n>=0;n--)for(i=(o=e(l[n],this.document[0])).length-1;i>=0;i--)(a=e.data(o[i],this.widgetFullName))&&a!==this&&!a.options.disabled&&s.push([e.isFunction(a.options.items)?a.options.items.call(a.element):e(a.options.items,a.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),a]);function u(){r.push(this)}for(s.push([e.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),n=s.length-1;n>=0;n--)s[n][0].each(u);return e(r)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,function(e){for(var n=0;n<t.length;n++)if(t[n]===e.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var n,i,o,a,r,s,l,u,c=this.items,d=[[e.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options.items,this.element),this]],h=this._connectWith();if(h&&this.ready)for(n=h.length-1;n>=0;n--)for(i=(o=e(h[n],this.document[0])).length-1;i>=0;i--)(a=e.data(o[i],this.widgetFullName))&&a!==this&&!a.options.disabled&&(d.push([e.isFunction(a.options.items)?a.options.items.call(a.element[0],t,{item:this.currentItem}):e(a.options.items,a.element),a]),this.containers.push(a));for(n=d.length-1;n>=0;n--)for(r=d[n][1],i=0,u=(s=d[n][0]).length;i<u;i++)(l=e(s[i])).data(this.widgetName+"-item",r),c.push({item:l,instance:r,width:0,height:0,left:0,top:0})},refreshPositions:function(t){var n,i,o,a;for(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),n=this.items.length-1;n>=0;n--)(i=this.items[n]).instance!==this.currentContainer&&this.currentContainer&&i.item[0]!==this.currentItem[0]||(o=this.options.toleranceElement?e(this.options.toleranceElement,i.item):i.item,t||(i.width=o.outerWidth(),i.height=o.outerHeight()),a=o.offset(),i.left=a.left,i.top=a.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(n=this.containers.length-1;n>=0;n--)a=this.containers[n].element.offset(),this.containers[n].containerCache.left=a.left,this.containers[n].containerCache.top=a.top,this.containers[n].containerCache.width=this.containers[n].element.outerWidth(),this.containers[n].containerCache.height=this.containers[n].element.outerHeight();return this},_createPlaceholder:function(t){var n,i=(t=t||this).options;i.placeholder&&i.placeholder.constructor!==String||(n=i.placeholder,i.placeholder={element:function(){var i=t.currentItem[0].nodeName.toLowerCase(),o=e("<"+i+">",t.document[0]);return t._addClass(o,"ui-sortable-placeholder",n||t.currentItem[0].className)._removeClass(o,"ui-sortable-helper"),"tbody"===i?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),e("<tr>",t.document[0]).appendTo(o)):"tr"===i?t._createTrPlaceholder(t.currentItem,o):"img"===i&&o.attr("src",t.currentItem.attr("src")),n||o.css("visibility","hidden"),o},update:function(e,o){n&&!i.forcePlaceholderSize||(o.height()||o.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),o.width()||o.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}),t.placeholder=e(i.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),i.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,n){var i=this;t.children().each(function(){e("<td>&#160;</td>",i.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(n)})},_contactContainers:function(t){var n,i,o,a,r,s,l,u,c,d,h=null,p=null;for(n=this.containers.length-1;n>=0;n--)if(!e.contains(this.currentItem[0],this.containers[n].element[0]))if(this._intersectsWith(this.containers[n].containerCache)){if(h&&e.contains(this.containers[n].element[0],h.element[0]))continue;h=this.containers[n],p=n}else this.containers[n].containerCache.over&&(this.containers[n]._trigger("out",t,this._uiHash(this)),this.containers[n].containerCache.over=0);if(h)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(o=1e4,a=null,r=(c=h.floating||this._isFloating(this.currentItem))?"left":"top",s=c?"width":"height",d=c?"pageX":"pageY",i=this.items.length-1;i>=0;i--)e.contains(this.containers[p].element[0],this.items[i].item[0])&&this.items[i].item[0]!==this.currentItem[0]&&(l=this.items[i].item.offset()[r],u=!1,t[d]-l>this.items[i][s]/2&&(u=!0),Math.abs(t[d]-l)<o&&(o=Math.abs(t[d]-l),a=this.items[i],this.direction=u?"up":"down"));if(!a&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1));a?this._rearrange(t,a,null,!0):this._rearrange(t,null,this.containers[p].element,!0),this._trigger("change",t,this._uiHash()),this.containers[p]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(t){var n=this.options,i=e.isFunction(n.helper)?e(n.helper.apply(this.element[0],[t,this.currentItem])):"clone"===n.helper?this.currentItem.clone():this.currentItem;return i.parents("body").length||e("parent"!==n.appendTo?n.appendTo:this.currentItem[0].parentNode)[0].appendChild(i[0]),i[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),i[0].style.width&&!n.forceHelperSize||i.width(this.currentItem.width()),i[0].style.height&&!n.forceHelperSize||i.height(this.currentItem.height()),i},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&e.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,n,i,o=this.options;"parent"===o.containment&&(o.containment=this.helper[0].parentNode),"document"!==o.containment&&"window"!==o.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===o.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===o.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(o.containment)||(t=e(o.containment)[0],n=e(o.containment).offset(),i="hidden"!==e(t).css("overflow"),this.containment=[n.left+(parseInt(e(t).css("borderLeftWidth"),10)||0)+(parseInt(e(t).css("paddingLeft"),10)||0)-this.margins.left,n.top+(parseInt(e(t).css("borderTopWidth"),10)||0)+(parseInt(e(t).css("paddingTop"),10)||0)-this.margins.top,n.left+(i?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(e(t).css("borderLeftWidth"),10)||0)-(parseInt(e(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,n.top+(i?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(e(t).css("borderTopWidth"),10)||0)-(parseInt(e(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,n){n||(n=this.position);var i="absolute"===t?1:-1,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.test(o[0].tagName);return{top:n.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():a?0:o.scrollTop())*i,left:n.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():a?0:o.scrollLeft())*i}},_generatePosition:function(t){var n,i,o=this.options,a=t.pageX,r=t.pageY,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(s[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(a=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(r=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(a=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),o.grid&&(n=this.originalPageY+Math.round((r-this.originalPageY)/o.grid[1])*o.grid[1],r=this.containment?n-this.offset.click.top>=this.containment[1]&&n-this.offset.click.top<=this.containment[3]?n:n-this.offset.click.top>=this.containment[1]?n-o.grid[1]:n+o.grid[1]:n,i=this.originalPageX+Math.round((a-this.originalPageX)/o.grid[0])*o.grid[0],a=this.containment?i-this.offset.click.left>=this.containment[0]&&i-this.offset.click.left<=this.containment[2]?i:i-this.offset.click.left>=this.containment[0]?i-o.grid[0]:i+o.grid[0]:i)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:s.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:s.scrollLeft())}},_rearrange:function(e,t,n,i){n?n[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var o=this.counter;this._delay(function(){o===this.counter&&this.refreshPositions(!i)})},_clear:function(e,t){this.reverting=!1;var n,i=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)"auto"!==this._storedCSS[n]&&"static"!==this._storedCSS[n]||(this._storedCSS[n]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function o(e,t,n){return function(i){n._trigger(e,i,t._uiHash(t))}}for(this.fromOutside&&!t&&i.push(function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||i.push(function(e){this._trigger("update",e,this._uiHash())}),this!==this.currentContainer&&(t||(i.push(function(e){this._trigger("remove",e,this._uiHash())}),i.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),i.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;n>=0;n--)t||i.push(o("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(i.push(o("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(n=0;n<i.length;n++)i[n].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===e.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var n=t||this;return{helper:n.helper,placeholder:n.placeholder||e([]),position:n.position,originalPosition:n.originalPosition,offset:n.positionAbs,item:n.currentItem,sender:t?t.element:null}}}),e.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=e(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),t.collapsible||!1!==t.active&&null!=t.active||(t.active=0),this._processPanels(),t.active<0&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():e()}},_createIcons:function(){var t,n,i=this.options.icons;i&&(t=e("<span>"),this._addClass(t,"ui-accordion-header-icon","ui-icon "+i.header),t.prependTo(this.headers),n=this.active.children(".ui-accordion-header-icon"),this._removeClass(n,i.header)._addClass(n,null,i.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var e;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),e=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&e.css("height","")},_setOption:function(e,t){"active"!==e?("event"===e&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t)),this._super(e,t),"collapsible"!==e||t||!1!==this.options.active||this._activate(0),"icons"===e&&(this._destroyIcons(),t&&this._createIcons())):this._activate(t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!e)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var n=e.ui.keyCode,i=this.headers.length,o=this.headers.index(t.target),a=!1;switch(t.keyCode){case n.RIGHT:case n.DOWN:a=this.headers[(o+1)%i];break;case n.LEFT:case n.UP:a=this.headers[(o-1+i)%i];break;case n.SPACE:case n.ENTER:this._eventHandler(t);break;case n.HOME:a=this.headers[0];break;case n.END:a=this.headers[i-1]}a&&(e(t.target).attr("tabIndex",-1),e(a).attr("tabIndex",0),e(a).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===e.ui.keyCode.UP&&t.ctrlKey&&e(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels(),!1===t.active&&!0===t.collapsible||!this.headers.length?(t.active=!1,this.active=e()):!1===t.active?this._activate(0):this.active.length&&!e.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=e()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var e=this.headers,t=this.panels;this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),t&&(this._off(e.not(this.headers)),this._off(t.not(this.panels)))},_refresh:function(){var t,n=this.options,i=n.heightStyle,o=this.element.parent();this.active=this._findActive(n.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var t=e(this),n=t.uniqueId().attr("id"),i=t.next(),o=i.uniqueId().attr("id");t.attr("aria-controls",o),i.attr("aria-labelledby",n)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(n.event),"fill"===i?(t=o.height(),this.element.siblings(":visible").each(function(){var n=e(this),i=n.css("position");"absolute"!==i&&"fixed"!==i&&(t-=n.outerHeight(!0))}),this.headers.each(function(){t-=e(this).outerHeight(!0)}),this.headers.next().each(function(){e(this).height(Math.max(0,t-e(this).innerHeight()+e(this).height()))}).css("overflow","auto")):"auto"===i&&(t=0,this.headers.next().each(function(){var n=e(this).is(":visible");n||e(this).show(),t=Math.max(t,e(this).css("height","").height()),n||e(this).hide()}).height(t))},_activate:function(t){var n=this._findActive(t)[0];n!==this.active[0]&&(n=n||this.active[0],this._eventHandler({target:n,currentTarget:n,preventDefault:e.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):e()},_setupEvents:function(t){var n={keydown:"_keydown"};t&&e.each(t.split(" "),function(e,t){n[t]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,n),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var n,i,o=this.options,a=this.active,r=e(t.currentTarget),s=r[0]===a[0],l=s&&o.collapsible,u=l?e():r.next(),c=a.next(),d={oldHeader:a,oldPanel:c,newHeader:l?e():r,newPanel:u};t.preventDefault(),s&&!o.collapsible||!1===this._trigger("beforeActivate",t,d)||(o.active=!l&&this.headers.index(r),this.active=s?e():r,this._toggle(d),this._removeClass(a,"ui-accordion-header-active","ui-state-active"),o.icons&&(n=a.children(".ui-accordion-header-icon"),this._removeClass(n,null,o.icons.activeHeader)._addClass(n,null,o.icons.header)),s||(this._removeClass(r,"ui-accordion-header-collapsed")._addClass(r,"ui-accordion-header-active","ui-state-active"),o.icons&&(i=r.children(".ui-accordion-header-icon"),this._removeClass(i,null,o.icons.header)._addClass(i,null,o.icons.activeHeader)),this._addClass(r.next(),"ui-accordion-content-active")))},_toggle:function(t){var n=t.newPanel,i=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=n,this.prevHide=i,this.options.animate?this._animate(n,i,t):(i.hide(),n.show(),this._toggleComplete(t)),i.attr({"aria-hidden":"true"}),i.prev().attr({"aria-selected":"false","aria-expanded":"false"}),n.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):n.length&&this.headers.filter(function(){return 0===parseInt(e(this).attr("tabIndex"),10)}).attr("tabIndex",-1),n.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(e,t,n){var i,o,a,r=this,s=0,l=e.css("box-sizing"),u=e.length&&(!t.length||e.index()<t.index()),c=this.options.animate||{},d=u&&c.down||c,h=function(){r._toggleComplete(n)};return"number"==typeof d&&(a=d),"string"==typeof d&&(o=d),o=o||d.easing||c.easing,a=a||d.duration||c.duration,t.length?e.length?(i=e.show().outerHeight(),t.animate(this.hideProps,{duration:a,easing:o,step:function(e,t){t.now=Math.round(e)}}),void e.hide().animate(this.showProps,{duration:a,easing:o,complete:h,step:function(e,n){n.now=Math.round(e),"height"!==n.prop?"content-box"===l&&(s+=n.now):"content"!==r.options.heightStyle&&(n.now=Math.round(i-t.outerHeight()-s),s=0)}})):t.animate(this.hideProps,a,o,h):e.animate(this.showProps,a,o,h)},_toggleComplete:function(e){var t=e.oldPanel,n=t.prev();this._removeClass(t,"ui-accordion-content-active"),this._removeClass(n,"ui-accordion-header-active")._addClass(n,"ui-accordion-header-collapsed"),t.length&&(t.parent()[0].className=t.parent()[0].className),this._trigger("activate",null,e)}}),e.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault()},"click .ui-menu-item":function(t){var n=e(t.target),i=e(e.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&n.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),n.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){if(!this.previousFilter){var n=e(t.target).closest(".ui-menu-item"),i=e(t.currentTarget);n[0]===i[0]&&(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var n=this.active||this.element.find(this.options.items).eq(0);t||this.focus(e,n)},blur:function(t){this._delay(function(){!e.contains(this.element[0],e.ui.safeActiveElement(this.document[0]))&&this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var t=e(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var n,i,o,a,r=!0;switch(t.keyCode){case e.ui.keyCode.PAGE_UP:this.previousPage(t);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case e.ui.keyCode.HOME:this._move("first","first",t);break;case e.ui.keyCode.END:this._move("last","last",t);break;case e.ui.keyCode.UP:this.previous(t);break;case e.ui.keyCode.DOWN:this.next(t);break;case e.ui.keyCode.LEFT:this.collapse(t);break;case e.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate(t);break;case e.ui.keyCode.ESCAPE:this.collapse(t);break;default:r=!1,i=this.previousFilter||"",a=!1,o=t.keyCode>=96&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),o===i?a=!0:o=i+o,n=this._filterMenuItems(o),(n=a&&-1!==n.index(this.active.next())?this.active.nextAll(".ui-menu-item"):n).length||(o=String.fromCharCode(t.keyCode),n=this._filterMenuItems(o)),n.length?(this.focus(t,n),this.previousFilter=o,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}r&&t.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var t,n,i,o,a=this,r=this.options.icons.submenu,s=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),n=s.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=e(this),n=t.prev(),i=e("<span>").data("ui-menu-submenu-caret",!0);a._addClass(i,"ui-menu-icon","ui-icon "+r),n.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",n.attr("id"))}),this._addClass(n,"ui-menu","ui-widget ui-widget-content ui-front"),(t=s.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=e(this);a._isDivider(t)&&a._addClass(t,"ui-menu-divider","ui-widget-content")}),o=(i=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(i,"ui-menu-item")._addClass(o,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!e.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){if("icons"===e){var n=this.element.find(".ui-menu-icon");this._removeClass(n,null,this.options.icons.submenu)._addClass(n,null,t.submenu)}this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var n,i,o;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),o=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(o,null,"ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(n=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(n),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(t){var n,i,o,a,r,s;this._hasScroll()&&(n=parseFloat(e.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0,o=t.offset().top-this.activeMenu.offset().top-n-i,a=this.activeMenu.scrollTop(),r=this.activeMenu.height(),s=t.outerHeight(),o<0?this.activeMenu.scrollTop(a+o):o+s>r&&this.activeMenu.scrollTop(a+o-r+s))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(t){var n=e.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(n)},collapseAll:function(t,n){clearTimeout(this.timer),this.timer=this._delay(function(){var i=n?this.element:e(t&&t.target).closest(this.element.find(".ui-menu"));i.length||(i=this.element),this._close(i),this.blur(t),this._removeClass(i.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=i},this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(t){return!e(t.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(e,t,n){var i;this.active&&(i="first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[e+"All"](".ui-menu-item").eq(0)),i&&i.length&&this.active||(i=this.activeMenu.find(this.options.items)[t]()),this.focus(n,i)},nextPage:function(t){var n,i,o;this.active?this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,o=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return(n=e(this)).offset().top-i-o<0}),this.focus(t,n)):this.focus(t,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){var n,i,o;this.active?this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,o=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return(n=e(this)).offset().top-i+o>0}),this.focus(t,n)):this.focus(t,this.activeMenu.find(this.options.items).first())):this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||e(t.target).closest(".ui-menu-item");var n={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,n)},_filterMenuItems:function(t){var n=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),i=new RegExp("^"+n,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return i.test(e.trim(e(this).children(".ui-menu-item-wrapper").text()))})}});e.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var t,n,i,o=this.element[0].nodeName.toLowerCase(),a="textarea"===o,r="input"===o;this.isMultiLine=a||!r&&this._isContentEditable(this.element),this.valueMethod=this.element[a||r?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(o){if(this.element.prop("readOnly"))return t=!0,i=!0,void(n=!0);t=!1,i=!1,n=!1;var a=e.ui.keyCode;switch(o.keyCode){case a.PAGE_UP:t=!0,this._move("previousPage",o);break;case a.PAGE_DOWN:t=!0,this._move("nextPage",o);break;case a.UP:t=!0,this._keyEvent("previous",o);break;case a.DOWN:t=!0,this._keyEvent("next",o);break;case a.ENTER:this.menu.active&&(t=!0,o.preventDefault(),this.menu.select(o));break;case a.TAB:this.menu.active&&this.menu.select(o);break;case a.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(o),o.preventDefault());break;default:n=!0,this._searchTimeout(o)}},keypress:function(i){if(t)return t=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||i.preventDefault());if(!n){var o=e.ui.keyCode;switch(i.keyCode){case o.PAGE_UP:this._move("previousPage",i);break;case o.PAGE_DOWN:this._move("nextPage",i);break;case o.UP:this._keyEvent("previous",i);break;case o.DOWN:this._keyEvent("next",i)}}},input:function(e){if(i)return i=!1,void e.preventDefault();this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(e),this._change(e))}}),this._initSource(),this.menu=e("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==e.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(t,n){var i,o;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){e(t.target).trigger(t.originalEvent)});o=n.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:o})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(o.value),(i=n.item.attr("aria-label")||o.value)&&e.trim(i).length&&(this.liveRegion.children().hide(),e("<div>").text(i).appendTo(this.liveRegion))},menuselect:function(t,n){var i=n.item.data("ui-autocomplete-item"),o=this.previous;this.element[0]!==e.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=o,this._delay(function(){this.previous=o,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=e("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var n=this.menu.element[0];return t.target===this.element[0]||t.target===n||e.contains(n,t.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_initSource:function(){var t,n,i=this;e.isArray(this.options.source)?(t=this.options.source,this.source=function(n,i){i(e.ui.autocomplete.filter(t,n.term))}):"string"==typeof this.options.source?(n=this.options.source,this.source=function(t,o){i.xhr&&i.xhr.abort(),i.xhr=e.ajax({url:n,data:t,dataType:"json",success:function(e){o(e)},error:function(){o([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),n=this.menu.element.is(":visible"),i=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;t&&(!t||n||i)||(this.selectedItem=null,this.search(null,e))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return e.proxy(function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(e){e&&(e=this._normalize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:e.map(t,function(t){return"string"==typeof t?{label:t,value:t}:e.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var n=this.menu.element.empty();this._renderMenu(n,t),this.isNewMenu=!0,this.menu.refresh(),n.show(),this._resizeMenu(),n.position(e.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,n){var i=this;e.each(n,function(e,n){i._renderItemData(t,n)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(t,n){return e("<li>").append(e("<div>").text(n.label)).appendTo(t)},_move:function(e,t){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[e](t);this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){if(!e.length)return!1;var t=e.prop("contentEditable");return"inherit"===t?this._isContentEditable(e.parent()):"true"===t}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,n){var i=new RegExp(e.ui.autocomplete.escapeRegex(n),"i");return e.grep(t,function(e){return i.test(e.label||e.value||e)})}}),e.widget("ui.autocomplete",e.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var n;this._superApply(arguments),this.options.disabled||this.cancelSearch||(n=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.children().hide(),e("<div>").text(n).appendTo(this.liveRegion))}});e.ui.autocomplete;var u=/ui-corner-([a-z]){2,6}/g;e.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var t=this,n=[];e.each(this.options.items,function(i,o){var a,r={};if(o)return"controlgroupLabel"===i?((a=t.element.find(o)).each(function(){var t=e(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),t._addClass(a,null,"ui-widget ui-widget-content ui-state-default"),void(n=n.concat(a.get()))):void(e.fn[i]&&(r=t["_"+i+"Options"]?t["_"+i+"Options"]("middle"):{classes:{}},t.element.find(o).each(function(){var o=e(this),a=o[i]("instance"),s=e.widget.extend({},r);if("button"!==i||!o.parent(".ui-spinner").length){a||(a=o[i]()[i]("instance")),a&&(s.classes=t._resolveClassesValues(s.classes,a)),o[i](s);var l=o[i]("widget");e.data(l[0],"ui-controlgroup-data",a||o[i]("instance")),n.push(l[0])}})))}),this.childWidgets=e(e.unique(n)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(t){this.childWidgets.each(function(){var n=e(this).data("ui-controlgroup-data");n&&n[t]&&n[t]()})},_updateCornerClass:function(e,t){var n=this._buildSimpleOptions(t,"label").classes.label;this._removeClass(e,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(e,null,n)},_buildSimpleOptions:function(e,t){var n="vertical"===this.options.direction,i={classes:{}};return i.classes[t]={middle:"",first:"ui-corner-"+(n?"top":"left"),last:"ui-corner-"+(n?"bottom":"right"),only:"ui-corner-all"}[e],i},_spinnerOptions:function(e){var t=this._buildSimpleOptions(e,"ui-spinner");return t.classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(e){return this._buildSimpleOptions(e,"ui-button")},_checkboxradioOptions:function(e){return this._buildSimpleOptions(e,"ui-checkboxradio-label")},_selectmenuOptions:function(e){var t="vertical"===this.options.direction;return{width:!!t&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(t?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(t?"top":"left")},last:{"ui-selectmenu-button-open":t?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(t?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[e]}},_resolveClassesValues:function(t,n){var i={};return e.each(t,function(o){var a=n.options.classes[o]||"";a=e.trim(a.replace(u,"")),i[o]=(a+" "+t[o]).replace(/\s+/g," ")}),i},_setOption:function(e,t){"direction"===e&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(e,t),"disabled"!==e?this.refresh():this._callChildMethod(t?"disable":"enable")},refresh:function(){var t,n=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),t=this.childWidgets,this.options.onlyVisible&&(t=t.filter(":visible")),t.length&&(e.each(["first","last"],function(e,i){var o=t[i]().data("ui-controlgroup-data");if(o&&n["_"+o.widgetName+"Options"]){var a=n["_"+o.widgetName+"Options"](1===t.length?"only":i);a.classes=n._resolveClassesValues(a.classes,o),o.element[o.widgetName](a)}else n._updateCornerClass(t[i](),i)}),this._callChildMethod("refresh"))}});e.widget("ui.checkboxradio",[e.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var t,n,i=this,o=this._super()||{};return this._readType(),n=this.element.labels(),this.label=e(n[n.length-1]),this.label.length||e.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){i.originalLabel+=3===this.nodeType?e(this).text():this.outerHTML}),this.originalLabel&&(o.label=this.originalLabel),null!=(t=this.element[0].disabled)&&(o.disabled=t),o},_create:function(){var e=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),e&&(this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this.icon&&this._addClass(this.icon,null,"ui-state-hover")),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var t=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===t&&/radio|checkbox/.test(this.type)||e.error("Can't create checkboxradio on element.nodeName="+t+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var t=this.element[0].name,n="input[name='"+e.ui.escapeSelector(t)+"']";return t?(this.form.length?e(this.form[0].elements).filter(n):e(n).filter(function(){return 0===e(this).form().length})).not(this.element):e([])},_toggleClasses:function(){var t=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",t)._toggleClass(this.icon,null,"ui-icon-blank",!t),"radio"===this.type&&this._getRadioGroup().each(function(){var t=e(this).checkboxradio("instance");t&&t._removeClass(t.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(e,t){if("label"!==e||t){if(this._super(e,t),"disabled"===e)return this._toggleClass(this.label,null,"ui-state-disabled",t),void(this.element[0].disabled=t);this.refresh()}},_updateIcon:function(t){var n="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=e("<span>"),this.iconSpace=e("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(n+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):n+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",n),t||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var e=this.label.contents().not(this.element[0]);this.icon&&(e=e.not(this.icon[0])),this.iconSpace&&(e=e.not(this.iconSpace[0])),e.remove(),this.label.append(this.options.label)},refresh:function(){var e=this.element[0].checked,t=this.element[0].disabled;this._updateIcon(e),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),null!==this.options.label&&this._updateLabel(),t!==this.options.disabled&&this._setOptions({disabled:t})}}]);e.ui.checkboxradio;e.widget("ui.button",{version:"1.12.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var e,t=this._super()||{};return this.isInput=this.element.is("input"),null!=(e=this.element[0].disabled)&&(t.disabled=e),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(t.label=this.originalLabel),t},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(t){t.keyCode===e.ui.keyCode.SPACE&&(t.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(t,n){var i="iconPosition"!==t,o=i?this.options.iconPosition:n,a="top"===o||"bottom"===o;this.icon?i&&this._removeClass(this.icon,null,this.options.icon):(this.icon=e("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),i&&this._addClass(this.icon,null,n),this._attachIcon(o),a?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=e("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(o))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(e){this.icon[/^(?:end|bottom)/.test(e)?"before":"after"](this.iconSpace)},_attachIcon:function(e){this.element[/^(?:end|bottom)/.test(e)?"append":"prepend"](this.icon)},_setOptions:function(e){var t=void 0===e.showLabel?this.options.showLabel:e.showLabel,n=void 0===e.icon?this.options.icon:e.icon;t||n||(e.showLabel=!0),this._super(e)},_setOption:function(e,t){"icon"===e&&(t?this._updateIcon(e,t):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===e&&this._updateIcon(e,t),"showLabel"===e&&(this._toggleClass("ui-button-icon-only",null,!t),this._updateTooltip()),"label"===e&&(this.isInput?this.element.val(t):(this.element.html(t),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(e,t),"disabled"===e&&(this._toggleClass(null,"ui-state-disabled",t),this.element[0].disabled=t,t&&this.element.blur())},refresh:function(){var e=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");e!==this.options.disabled&&this._setOptions({disabled:e}),this._updateTooltip()}}),!1!==e.uiBackCompat&&(e.widget("ui.button",e.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(e,t){"text"!==e?("showLabel"===e&&(this.options.text=t),"icon"===e&&(this.options.icons.primary=t),"icons"===e&&(t.primary?(this._super("icon",t.primary),this._super("iconPosition","beginning")):t.secondary&&(this._super("icon",t.secondary),this._super("iconPosition","end"))),this._superApply(arguments)):this._super("showLabel",t)}}),e.fn.button=function(t){return function(){return!this.length||this.length&&"INPUT"!==this[0].tagName||this.length&&"INPUT"===this[0].tagName&&"checkbox"!==this.attr("type")&&"radio"!==this.attr("type")?t.apply(this,arguments):(e.ui.checkboxradio||e.error("Checkboxradio widget missing"),0===arguments.length?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments))}}(e.fn.button),e.fn.buttonset=function(){return e.ui.controlgroup||e.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))});var c;e.ui.button;function d(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},e.extend(this._defaults,this.regional[""]),this.regional.en=e.extend(!0,{},this.regional[""]),this.regional["en-US"]=e.extend(!0,{},this.regional.en),this.dpDiv=h(e("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function h(t){var n="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",n,function(){e(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",n,p)}function p(){e.datepicker._isDisabledDatepicker(c.inline?c.dpDiv.parent()[0]:c.input[0])||(e(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).addClass("ui-datepicker-next-hover"))}function f(t,n){for(var i in e.extend(t,n),n)null==n[i]&&(t[i]=n[i]);return t}e.extend(e.ui,{datepicker:{version:"1.12.1"}}),e.extend(d.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return f(this._defaults,e||{}),this},_attachDatepicker:function(t,n){var i,o,a;o="div"===(i=t.nodeName.toLowerCase())||"span"===i,t.id||(this.uuid+=1,t.id="dp"+this.uuid),(a=this._newInst(e(t),o)).settings=e.extend({},n||{}),"input"===i?this._connectDatepicker(t,a):o&&this._inlineDatepicker(t,a)},_newInst:function(t,n){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:n,dpDiv:n?h(e("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,n){var i=e(t);n.append=e([]),n.trigger=e([]),i.hasClass(this.markerClassName)||(this._attachments(i,n),i.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(n),e.data(t,"datepicker",n),n.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,n){var i,o,a,r=this._get(n,"appendText"),s=this._get(n,"isRTL");n.append&&n.append.remove(),r&&(n.append=e("<span class='"+this._appendClass+"'>"+r+"</span>"),t[s?"before":"after"](n.append)),t.off("focus",this._showDatepicker),n.trigger&&n.trigger.remove(),"focus"!==(i=this._get(n,"showOn"))&&"both"!==i||t.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(o=this._get(n,"buttonText"),a=this._get(n,"buttonImage"),n.trigger=e(this._get(n,"buttonImageOnly")?e("<img/>").addClass(this._triggerClass).attr({src:a,alt:o,title:o}):e("<button type='button'></button>").addClass(this._triggerClass).html(a?e("<img/>").attr({src:a,alt:o,title:o}):o)),t[s?"before":"after"](n.trigger),n.trigger.on("click",function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]?(e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])):e.datepicker._showDatepicker(t[0]),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,n,i,o,a=new Date(2009,11,20),r=this._get(e,"dateFormat");r.match(/[DM]/)&&(t=function(e){for(n=0,i=0,o=0;o<e.length;o++)e[o].length>n&&(n=e[o].length,i=o);return i},a.setMonth(t(this._get(e,r.match(/MM/)?"monthNames":"monthNamesShort"))),a.setDate(t(this._get(e,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-a.getDay())),e.input.attr("size",this._formatDate(e,a).length)}},_inlineDatepicker:function(t,n){var i=e(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(n.dpDiv),e.data(t,"datepicker",n),this._setDate(n,this._getDefaultDate(n),!0),this._updateDatepicker(n),this._updateAlternate(n),n.settings.disabled&&this._disableDatepicker(t),n.dpDiv.css("display","block"))},_dialogDatepicker:function(t,n,i,o,a){var r,s,l,u,c,d=this._dialogInst;return d||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=e("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),e("body").append(this._dialogInput),(d=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},e.data(this._dialogInput[0],"datepicker",d)),f(d.settings,o||{}),n=n&&n.constructor===Date?this._formatDate(d,n):n,this._dialogInput.val(n),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(s=document.documentElement.clientWidth,l=document.documentElement.clientHeight,u=document.documentElement.scrollLeft||document.body.scrollLeft,c=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[s/2-100+u,l/2-150+c]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),d.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],"datepicker",d),this},_destroyDatepicker:function(t){var n,i=e(t),o=e.data(t,"datepicker");i.hasClass(this.markerClassName)&&(n=t.nodeName.toLowerCase(),e.removeData(t,"datepicker"),"input"===n?(o.append.remove(),o.trigger.remove(),i.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==n&&"span"!==n||i.removeClass(this.markerClassName).empty(),c===o&&(c=null))},_enableDatepicker:function(t){var n,i,o=e(t),a=e.data(t,"datepicker");o.hasClass(this.markerClassName)&&("input"===(n=t.nodeName.toLowerCase())?(t.disabled=!1,a.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==n&&"span"!==n||((i=o.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var n,i,o=e(t),a=e.data(t,"datepicker");o.hasClass(this.markerClassName)&&("input"===(n=t.nodeName.toLowerCase())?(t.disabled=!0,a.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==n&&"span"!==n||((i=o.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(t){try{return e.data(t,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,n,i){var o,a,r,s,l=this._getInst(t);if(2===arguments.length&&"string"==typeof n)return"defaults"===n?e.extend({},e.datepicker._defaults):l?"all"===n?e.extend({},l.settings):this._get(l,n):null;o=n||{},"string"==typeof n&&((o={})[n]=i),l&&(this._curInst===l&&this._hideDatepicker(),a=this._getDateDatepicker(t,!0),r=this._getMinMaxDate(l,"min"),s=this._getMinMaxDate(l,"max"),f(l.settings,o),null!==r&&void 0!==o.dateFormat&&void 0===o.minDate&&(l.settings.minDate=this._formatDate(l,r)),null!==s&&void 0!==o.dateFormat&&void 0===o.maxDate&&(l.settings.maxDate=this._formatDate(l,s)),"disabled"in o&&(o.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(e(t),l),this._autoSize(l),this._setDate(l,a),this._updateAlternate(l),this._updateDatepicker(l))},_changeDatepicker:function(e,t,n){this._optionDatepicker(e,t,n)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var n=this._getInst(e);n&&(this._setDate(n,t),this._updateDatepicker(n),this._updateAlternate(n))},_getDateDatepicker:function(e,t){var n=this._getInst(e);return n&&!n.inline&&this._setDateFromField(n,t),n?this._getDate(n):null},_doKeyDown:function(t){var n,i,o,a=e.datepicker._getInst(t.target),r=!0,s=a.dpDiv.is(".ui-datepicker-rtl");if(a._keyEvent=!0,e.datepicker._datepickerShowing)switch(t.keyCode){case 9:e.datepicker._hideDatepicker(),r=!1;break;case 13:return(o=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",a.dpDiv))[0]&&e.datepicker._selectDay(t.target,a.selectedMonth,a.selectedYear,o[0]),(n=e.datepicker._get(a,"onSelect"))?(i=e.datepicker._formatDate(a),n.apply(a.input?a.input[0]:null,[i,a])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(a,"stepBigMonths"):-e.datepicker._get(a,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(a,"stepBigMonths"):+e.datepicker._get(a,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._clearDate(t.target),r=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&e.datepicker._gotoToday(t.target),r=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,s?1:-1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(a,"stepBigMonths"):-e.datepicker._get(a,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),r=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,s?-1:1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(a,"stepBigMonths"):+e.datepicker._get(a,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,7,"D"),r=t.ctrlKey||t.metaKey;break;default:r=!1}else 36===t.keyCode&&t.ctrlKey?e.datepicker._showDatepicker(this):r=!1;r&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var n,i,o=e.datepicker._getInst(t.target);if(e.datepicker._get(o,"constrainInput"))return n=e.datepicker._possibleChars(e.datepicker._get(o,"dateFormat")),i=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||i<" "||!n||n.indexOf(i)>-1},_doKeyUp:function(t){var n=e.datepicker._getInst(t.target);if(n.input.val()!==n.lastVal)try{e.datepicker.parseDate(e.datepicker._get(n,"dateFormat"),n.input?n.input.val():null,e.datepicker._getFormatConfig(n))&&(e.datepicker._setDateFromField(n),e.datepicker._updateAlternate(n),e.datepicker._updateDatepicker(n))}catch(e){}return!0},_showDatepicker:function(t){var n,i,o,a,r,s,l;("input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=e("input",t.parentNode)[0]),e.datepicker._isDisabledDatepicker(t)||e.datepicker._lastInput===t)||(n=e.datepicker._getInst(t),e.datepicker._curInst&&e.datepicker._curInst!==n&&(e.datepicker._curInst.dpDiv.stop(!0,!0),n&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),!1!==(o=(i=e.datepicker._get(n,"beforeShow"))?i.apply(t,[t,n]):{})&&(f(n.settings,o),n.lastVal=null,e.datepicker._lastInput=t,e.datepicker._setDateFromField(n),e.datepicker._inDialog&&(t.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(t),e.datepicker._pos[1]+=t.offsetHeight),a=!1,e(t).parents().each(function(){return!(a|="fixed"===e(this).css("position"))}),r={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(n),r=e.datepicker._checkOffset(n,r,a),n.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":a?"fixed":"absolute",display:"none",left:r.left+"px",top:r.top+"px"}),n.inline||(s=e.datepicker._get(n,"showAnim"),l=e.datepicker._get(n,"duration"),n.dpDiv.css("z-index",function(e){for(var t,n;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(n=parseInt(e.css("zIndex"),10),!isNaN(n)&&0!==n))return n;e=e.parent()}return 0}(e(t))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[s]?n.dpDiv.show(s,e.datepicker._get(n,"showOptions"),l):n.dpDiv[s||"show"](s?l:null),e.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),e.datepicker._curInst=n)))},_updateDatepicker:function(t){this.maxRows=4,c=t,t.dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var n,i=this._getNumberOfMonths(t),o=i[1],a=t.dpDiv.find("."+this._dayOverClass+" a");a.length>0&&p.apply(a.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),o>1&&t.dpDiv.addClass("ui-datepicker-multi-"+o).css("width",17*o+"em"),t.dpDiv[(1!==i[0]||1!==i[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(n=t.yearshtml,setTimeout(function(){n===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),n=t.yearshtml=null},0))},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(t,n,i){var o=t.dpDiv.outerWidth(),a=t.dpDiv.outerHeight(),r=t.input?t.input.outerWidth():0,s=t.input?t.input.outerHeight():0,l=document.documentElement.clientWidth+(i?0:e(document).scrollLeft()),u=document.documentElement.clientHeight+(i?0:e(document).scrollTop());return n.left-=this._get(t,"isRTL")?o-r:0,n.left-=i&&n.left===t.input.offset().left?e(document).scrollLeft():0,n.top-=i&&n.top===t.input.offset().top+s?e(document).scrollTop():0,n.left-=Math.min(n.left,n.left+o>l&&l>o?Math.abs(n.left+o-l):0),n.top-=Math.min(n.top,n.top+a>u&&u>a?Math.abs(a+s):0),n},_findPos:function(t){for(var n,i=this._getInst(t),o=this._get(i,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.filters.hidden(t));)t=t[o?"previousSibling":"nextSibling"];return[(n=e(t).offset()).left,n.top]},_hideDatepicker:function(t){var n,i,o,a,r=this._curInst;!r||t&&r!==e.data(t,"datepicker")||this._datepickerShowing&&(n=this._get(r,"showAnim"),i=this._get(r,"duration"),o=function(){e.datepicker._tidyDialog(r)},e.effects&&(e.effects.effect[n]||e.effects[n])?r.dpDiv.hide(n,e.datepicker._get(r,"showOptions"),i,o):r.dpDiv["slideDown"===n?"slideUp":"fadeIn"===n?"fadeOut":"hide"](n?i:null,o),n||o(),this._datepickerShowing=!1,(a=this._get(r,"onClose"))&&a.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(e.datepicker._curInst){var n=e(t.target),i=e.datepicker._getInst(n[0]);(n[0].id===e.datepicker._mainDivId||0!==n.parents("#"+e.datepicker._mainDivId).length||n.hasClass(e.datepicker.markerClassName)||n.closest("."+e.datepicker._triggerClass).length||!e.datepicker._datepickerShowing||e.datepicker._inDialog&&e.blockUI)&&(!n.hasClass(e.datepicker.markerClassName)||e.datepicker._curInst===i)||e.datepicker._hideDatepicker()}},_adjustDate:function(t,n,i){var o=e(t),a=this._getInst(o[0]);this._isDisabledDatepicker(o[0])||(this._adjustInstDate(a,n+("M"===i?this._get(a,"showCurrentAtPos"):0),i),this._updateDatepicker(a))},_gotoToday:function(t){var n,i=e(t),o=this._getInst(i[0]);this._get(o,"gotoCurrent")&&o.currentDay?(o.selectedDay=o.currentDay,o.drawMonth=o.selectedMonth=o.currentMonth,o.drawYear=o.selectedYear=o.currentYear):(n=new Date,o.selectedDay=n.getDate(),o.drawMonth=o.selectedMonth=n.getMonth(),o.drawYear=o.selectedYear=n.getFullYear()),this._notifyChange(o),this._adjustDate(i)},_selectMonthYear:function(t,n,i){var o=e(t),a=this._getInst(o[0]);a["selected"+("M"===i?"Month":"Year")]=a["draw"+("M"===i?"Month":"Year")]=parseInt(n.options[n.selectedIndex].value,10),this._notifyChange(a),this._adjustDate(o)},_selectDay:function(t,n,i,o){var a,r=e(t);e(o).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0])||((a=this._getInst(r[0])).selectedDay=a.currentDay=e("a",o).html(),a.selectedMonth=a.currentMonth=n,a.selectedYear=a.currentYear=i,this._selectDate(t,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear)))},_clearDate:function(t){var n=e(t);this._selectDate(n,"")},_selectDate:function(t,n){var i,o=e(t),a=this._getInst(o[0]);n=null!=n?n:this._formatDate(a),a.input&&a.input.val(n),this._updateAlternate(a),(i=this._get(a,"onSelect"))?i.apply(a.input?a.input[0]:null,[n,a]):a.input&&a.input.trigger("change"),a.inline?this._updateDatepicker(a):(this._hideDatepicker(),this._lastInput=a.input[0],"object"!=typeof a.input[0]&&a.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var n,i,o,a=this._get(t,"altField");a&&(n=this._get(t,"altFormat")||this._get(t,"dateFormat"),i=this._getDate(t),o=this.formatDate(n,i,this._getFormatConfig(t)),e(a).val(o))},noWeekends:function(e){var t=e.getDay();return[t>0&&t<6,""]},iso8601Week:function(e){var t,n=new Date(e.getTime());return n.setDate(n.getDate()+4-(n.getDay()||7)),t=n.getTime(),n.setMonth(0),n.setDate(1),Math.floor(Math.round((t-n)/864e5)/7)+1},parseDate:function(t,n,i){if(null==t||null==n)throw"Invalid arguments";if(""===(n="object"==typeof n?n.toString():n+""))return null;var o,a,r,s,l=0,u=(i?i.shortYearCutoff:null)||this._defaults.shortYearCutoff,c="string"!=typeof u?u:(new Date).getFullYear()%100+parseInt(u,10),d=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,h=(i?i.dayNames:null)||this._defaults.dayNames,p=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,f=(i?i.monthNames:null)||this._defaults.monthNames,g=-1,_=-1,m=-1,v=-1,y=!1,b=function(e){var n=o+1<t.length&&t.charAt(o+1)===e;return n&&o++,n},x=function(e){var t=b(e),i="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,o=new RegExp("^\\d{"+("y"===e?i:1)+","+i+"}"),a=n.substring(l).match(o);if(!a)throw"Missing number at position "+l;return l+=a[0].length,parseInt(a[0],10)},w=function(t,i,o){var a=-1,r=e.map(b(t)?o:i,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(e.each(r,function(e,t){var i=t[1];if(n.substr(l,i.length).toLowerCase()===i.toLowerCase())return a=t[0],l+=i.length,!1}),-1!==a)return a+1;throw"Unknown name at position "+l},C=function(){if(n.charAt(l)!==t.charAt(o))throw"Unexpected literal at position "+l;l++};for(o=0;o<t.length;o++)if(y)"'"!==t.charAt(o)||b("'")?C():y=!1;else switch(t.charAt(o)){case"d":m=x("d");break;case"D":w("D",d,h);break;case"o":v=x("o");break;case"m":_=x("m");break;case"M":_=w("M",p,f);break;case"y":g=x("y");break;case"@":g=(s=new Date(x("@"))).getFullYear(),_=s.getMonth()+1,m=s.getDate();break;case"!":g=(s=new Date((x("!")-this._ticksTo1970)/1e4)).getFullYear(),_=s.getMonth()+1,m=s.getDate();break;case"'":b("'")?C():y=!0;break;default:C()}if(l<n.length&&(r=n.substr(l),!/^\s+/.test(r)))throw"Extra/unparsed characters found in date: "+r;if(-1===g?g=(new Date).getFullYear():g<100&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(g<=c?0:-100)),v>-1)for(_=1,m=v;;){if(m<=(a=this._getDaysInMonth(g,_-1)))break;_++,m-=a}if((s=this._daylightSavingAdjust(new Date(g,_-1,m))).getFullYear()!==g||s.getMonth()+1!==_||s.getDate()!==m)throw"Invalid date";return s},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,n){if(!t)return"";var i,o=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,a=(n?n.dayNames:null)||this._defaults.dayNames,r=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,s=(n?n.monthNames:null)||this._defaults.monthNames,l=function(t){var n=i+1<e.length&&e.charAt(i+1)===t;return n&&i++,n},u=function(e,t,n){var i=""+t;if(l(e))for(;i.length<n;)i="0"+i;return i},c=function(e,t,n,i){return l(e)?i[t]:n[t]},d="",h=!1;if(t)for(i=0;i<e.length;i++)if(h)"'"!==e.charAt(i)||l("'")?d+=e.charAt(i):h=!1;else switch(e.charAt(i)){case"d":d+=u("d",t.getDate(),2);break;case"D":d+=c("D",t.getDay(),o,a);break;case"o":d+=u("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":d+=u("m",t.getMonth()+1,2);break;case"M":d+=c("M",t.getMonth(),r,s);break;case"y":d+=l("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":d+=t.getTime();break;case"!":d+=1e4*t.getTime()+this._ticksTo1970;break;case"'":l("'")?d+="'":h=!0;break;default:d+=e.charAt(i)}return d},_possibleChars:function(e){var t,n="",i=!1,o=function(n){var i=t+1<e.length&&e.charAt(t+1)===n;return i&&t++,i};for(t=0;t<e.length;t++)if(i)"'"!==e.charAt(t)||o("'")?n+=e.charAt(t):i=!1;else switch(e.charAt(t)){case"d":case"m":case"y":case"@":n+="0123456789";break;case"D":case"M":return null;case"'":o("'")?n+="'":i=!0;break;default:n+=e.charAt(t)}return n},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var n=this._get(e,"dateFormat"),i=e.lastVal=e.input?e.input.val():null,o=this._getDefaultDate(e),a=o,r=this._getFormatConfig(e);try{a=this.parseDate(n,i,r)||o}catch(e){i=t?"":i}e.selectedDay=a.getDate(),e.drawMonth=e.selectedMonth=a.getMonth(),e.drawYear=e.selectedYear=a.getFullYear(),e.currentDay=i?a.getDate():0,e.currentMonth=i?a.getMonth():0,e.currentYear=i?a.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,n,i){var o=null==n||""===n?i:"string"==typeof n?function(n){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),n,e.datepicker._getFormatConfig(t))}catch(e){}for(var i=(n.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,o=i.getFullYear(),a=i.getMonth(),r=i.getDate(),s=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=s.exec(n);l;){switch(l[2]||"d"){case"d":case"D":r+=parseInt(l[1],10);break;case"w":case"W":r+=7*parseInt(l[1],10);break;case"m":case"M":a+=parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(o,a));break;case"y":case"Y":o+=parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(o,a))}l=s.exec(n)}return new Date(o,a,r)}(n):"number"==typeof n?isNaN(n)?i:function(e){var t=new Date;return t.setDate(t.getDate()+e),t}(n):new Date(n.getTime());return(o=o&&"Invalid Date"===o.toString()?i:o)&&(o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0)),this._daylightSavingAdjust(o)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,n){var i=!t,o=e.selectedMonth,a=e.selectedYear,r=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=r.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=r.getMonth(),e.drawYear=e.selectedYear=e.currentYear=r.getFullYear(),o===e.selectedMonth&&a===e.selectedYear||n||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(i?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(t){var n=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){e.datepicker._adjustDate(i,-n,"M")},next:function(){e.datepicker._adjustDate(i,+n,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(i)},selectDay:function(){return e.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(i,this,"Y"),!1}};e(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,n,i,o,a,r,s,l,u,c,d,h,p,f,g,_,m,v,y,b,x,w,C,k,S,I,T,D,E,A,O,P,B,M,R,F,V,L,H,z=new Date,N=this._daylightSavingAdjust(new Date(z.getFullYear(),z.getMonth(),z.getDate())),$=this._get(e,"isRTL"),W=this._get(e,"showButtonPanel"),G=this._get(e,"hideIfNoPrevNext"),j=this._get(e,"navigationAsDateFormat"),q=this._getNumberOfMonths(e),K=this._get(e,"showCurrentAtPos"),U=this._get(e,"stepMonths"),Y=1!==q[0]||1!==q[1],X=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),Z=this._getMinMaxDate(e,"min"),Q=this._getMinMaxDate(e,"max"),J=e.drawMonth-K,ee=e.drawYear;if(J<0&&(J+=12,ee--),Q)for(t=this._daylightSavingAdjust(new Date(Q.getFullYear(),Q.getMonth()-q[0]*q[1]+1,Q.getDate())),t=Z&&t<Z?Z:t;this._daylightSavingAdjust(new Date(ee,J,1))>t;)--J<0&&(J=11,ee--);for(e.drawMonth=J,e.drawYear=ee,n=this._get(e,"prevText"),n=j?this.formatDate(n,this._daylightSavingAdjust(new Date(ee,J-U,1)),this._getFormatConfig(e)):n,i=this._canAdjustMonth(e,-1,ee,J)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+($?"e":"w")+"'>"+n+"</span></a>":G?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+($?"e":"w")+"'>"+n+"</span></a>",o=this._get(e,"nextText"),o=j?this.formatDate(o,this._daylightSavingAdjust(new Date(ee,J+U,1)),this._getFormatConfig(e)):o,a=this._canAdjustMonth(e,1,ee,J)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+o+"'><span class='ui-icon ui-icon-circle-triangle-"+($?"w":"e")+"'>"+o+"</span></a>":G?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+o+"'><span class='ui-icon ui-icon-circle-triangle-"+($?"w":"e")+"'>"+o+"</span></a>",r=this._get(e,"currentText"),s=this._get(e,"gotoCurrent")&&e.currentDay?X:N,r=j?this.formatDate(r,s,this._getFormatConfig(e)):r,l=e.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(e,"closeText")+"</button>",u=W?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+($?l:"")+(this._isInRange(e,s)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+r+"</button>":"")+($?"":l)+"</div>":"",c=parseInt(this._get(e,"firstDay"),10),c=isNaN(c)?0:c,d=this._get(e,"showWeek"),h=this._get(e,"dayNames"),p=this._get(e,"dayNamesMin"),f=this._get(e,"monthNames"),g=this._get(e,"monthNamesShort"),_=this._get(e,"beforeShowDay"),m=this._get(e,"showOtherMonths"),v=this._get(e,"selectOtherMonths"),y=this._getDefaultDate(e),b="",w=0;w<q[0];w++){for(C="",this.maxRows=4,k=0;k<q[1];k++){if(S=this._daylightSavingAdjust(new Date(ee,J,e.selectedDay)),I=" ui-corner-all",T="",Y){if(T+="<div class='ui-datepicker-group",q[1]>1)switch(k){case 0:T+=" ui-datepicker-group-first",I=" ui-corner-"+($?"right":"left");break;case q[1]-1:T+=" ui-datepicker-group-last",I=" ui-corner-"+($?"left":"right");break;default:T+=" ui-datepicker-group-middle",I=""}T+="'>"}for(T+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+I+"'>"+(/all|left/.test(I)&&0===w?$?a:i:"")+(/all|right/.test(I)&&0===w?$?i:a:"")+this._generateMonthYearHeader(e,J,ee,Z,Q,w>0||k>0,f,g)+"</div><table class='ui-datepicker-calendar'><thead><tr>",D=d?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",x=0;x<7;x++)D+="<th scope='col'"+((x+c+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+h[E=(x+c)%7]+"'>"+p[E]+"</span></th>";for(T+=D+"</tr></thead><tbody>",A=this._getDaysInMonth(ee,J),ee===e.selectedYear&&J===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,A)),O=(this._getFirstDayOfMonth(ee,J)-c+7)%7,P=Math.ceil((O+A)/7),B=Y&&this.maxRows>P?this.maxRows:P,this.maxRows=B,M=this._daylightSavingAdjust(new Date(ee,J,1-O)),R=0;R<B;R++){for(T+="<tr>",F=d?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(M)+"</td>":"",x=0;x<7;x++)V=_?_.apply(e.input?e.input[0]:null,[M]):[!0,""],H=(L=M.getMonth()!==J)&&!v||!V[0]||Z&&M<Z||Q&&M>Q,F+="<td class='"+((x+c+6)%7>=5?" ui-datepicker-week-end":"")+(L?" ui-datepicker-other-month":"")+(M.getTime()===S.getTime()&&J===e.selectedMonth&&e._keyEvent||y.getTime()===M.getTime()&&y.getTime()===S.getTime()?" "+this._dayOverClass:"")+(H?" "+this._unselectableClass+" ui-state-disabled":"")+(L&&!m?"":" "+V[1]+(M.getTime()===X.getTime()?" "+this._currentClass:"")+(M.getTime()===N.getTime()?" ui-datepicker-today":""))+"'"+(L&&!m||!V[2]?"":" title='"+V[2].replace(/'/g,"&#39;")+"'")+(H?"":" data-handler='selectDay' data-event='click' data-month='"+M.getMonth()+"' data-year='"+M.getFullYear()+"'")+">"+(L&&!m?"&#xa0;":H?"<span class='ui-state-default'>"+M.getDate()+"</span>":"<a class='ui-state-default"+(M.getTime()===N.getTime()?" ui-state-highlight":"")+(M.getTime()===X.getTime()?" ui-state-active":"")+(L?" ui-priority-secondary":"")+"' href='#'>"+M.getDate()+"</a>")+"</td>",M.setDate(M.getDate()+1),M=this._daylightSavingAdjust(M);T+=F+"</tr>"}++J>11&&(J=0,ee++),C+=T+="</tbody></table>"+(Y?"</div>"+(q[0]>0&&k===q[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}b+=C}return b+=u,e._keyEvent=!1,b},_generateMonthYearHeader:function(e,t,n,i,o,a,r,s){var l,u,c,d,h,p,f,g,_=this._get(e,"changeMonth"),m=this._get(e,"changeYear"),v=this._get(e,"showMonthAfterYear"),y="<div class='ui-datepicker-title'>",b="";if(a||!_)b+="<span class='ui-datepicker-month'>"+r[t]+"</span>";else{for(l=i&&i.getFullYear()===n,u=o&&o.getFullYear()===n,b+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",c=0;c<12;c++)(!l||c>=i.getMonth())&&(!u||c<=o.getMonth())&&(b+="<option value='"+c+"'"+(c===t?" selected='selected'":"")+">"+s[c]+"</option>");b+="</select>"}if(v||(y+=b+(!a&&_&&m?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",a||!m)y+="<span class='ui-datepicker-year'>"+n+"</span>";else{for(d=this._get(e,"yearRange").split(":"),h=(new Date).getFullYear(),f=(p=function(e){var t=e.match(/c[+\-].*/)?n+parseInt(e.substring(1),10):e.match(/[+\-].*/)?h+parseInt(e,10):parseInt(e,10);return isNaN(t)?h:t})(d[0]),g=Math.max(f,p(d[1]||"")),f=i?Math.max(f,i.getFullYear()):f,g=o?Math.min(g,o.getFullYear()):g,e.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";f<=g;f++)e.yearshtml+="<option value='"+f+"'"+(f===n?" selected='selected'":"")+">"+f+"</option>";e.yearshtml+="</select>",y+=e.yearshtml,e.yearshtml=null}return y+=this._get(e,"yearSuffix"),v&&(y+=(!a&&_&&m?"":"&#xa0;")+b),y+="</div>"},_adjustInstDate:function(e,t,n){var i=e.selectedYear+("Y"===n?t:0),o=e.selectedMonth+("M"===n?t:0),a=Math.min(e.selectedDay,this._getDaysInMonth(i,o))+("D"===n?t:0),r=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(i,o,a)));e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),"M"!==n&&"Y"!==n||this._notifyChange(e)},_restrictMinMax:function(e,t){var n=this._getMinMaxDate(e,"min"),i=this._getMinMaxDate(e,"max"),o=n&&t<n?n:t;return i&&o>i?i:o},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,n,i){var o=this._getNumberOfMonths(e),a=this._daylightSavingAdjust(new Date(n,i+(t<0?t:o[0]*o[1]),1));return t<0&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(e,a)},_isInRange:function(e,t){var n,i,o=this._getMinMaxDate(e,"min"),a=this._getMinMaxDate(e,"max"),r=null,s=null,l=this._get(e,"yearRange");return l&&(n=l.split(":"),i=(new Date).getFullYear(),r=parseInt(n[0],10),s=parseInt(n[1],10),n[0].match(/[+\-].*/)&&(r+=i),n[1].match(/[+\-].*/)&&(s+=i)),(!o||t.getTime()>=o.getTime())&&(!a||t.getTime()<=a.getTime())&&(!r||t.getFullYear()>=r)&&(!s||t.getFullYear()<=s)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,n,i){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var o=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(i,n,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),o,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).on("mousedown",e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);var n=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!==t&&"getDate"!==t&&"widget"!==t?"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(n)):this.each(function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(n)):e.datepicker._attachDatepicker(this,t)}):e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(n))},e.datepicker=new d,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.12.1";e.datepicker;e.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var n=e(this).css(t).offset().top;n<0&&e(this).css("top",t.top-n)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&e.fn.draggable&&this._makeDraggable(),this.options.resizable&&e.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?e(t):this.document.find(t||"body").eq(0)},_destroy:function(){var e,t=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(e=t.parent.children().eq(t.index)).length&&e[0]!==this.element[0]?e.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:e.noop,enable:e.noop,close:function(t){var n=this;this._isOpen&&!1!==this._trigger("beforeClose",t)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||e.ui.safeBlur(e.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){n._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,n){var i=!1,o=this.uiDialog.siblings(".ui-front:visible").map(function(){return+e(this).css("z-index")}).get(),a=Math.max.apply(null,o);return a>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",a+1),i=!0),i&&!n&&this._trigger("focus",t),i},open:function(){var t=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=e(e.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable(),t._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var e=this._focusedElement;e||(e=this.element.find("[autofocus]")),e.length||(e=this.element.find(":tabbable")),e.length||(e=this.uiDialogButtonPane.find(":tabbable")),e.length||(e=this.uiDialogTitlebarClose.filter(":tabbable")),e.length||(e=this.uiDialog),e.eq(0).trigger("focus")},_keepFocus:function(t){function n(){var t=e.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===t||e.contains(this.uiDialog[0],t)||this._focusTabbable()}t.preventDefault(),n.call(this),this._delay(n)},_createWrapper:function(){this.uiDialog=e("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===e.ui.keyCode.ESCAPE)return t.preventDefault(),void this.close(t);if(t.keyCode===e.ui.keyCode.TAB&&!t.isDefaultPrevented()){var n=this.uiDialog.find(":tabbable"),i=n.filter(":first"),o=n.filter(":last");t.target!==o[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==i[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay(function(){o.trigger("focus")}),t.preventDefault()):(this._delay(function(){i.trigger("focus")}),t.preventDefault())}},mousedown:function(e){this._moveToTop(e)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=e("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(t){e(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=e("<button type='button'></button>").button({label:e("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(e){e.preventDefault(),this.close(e)}}),t=e("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(t,"ui-dialog-title"),this._title(t),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(e){this.options.title?e.text(this.options.title):e.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=e("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=e("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var t=this,n=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),e.isEmptyObject(n)||e.isArray(n)&&!n.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(e.each(n,function(n,i){var o,a;i=e.isFunction(i)?{click:i,text:n}:i,i=e.extend({type:"button"},i),o=i.click,a={icon:i.icon,iconPosition:i.iconPosition,showLabel:i.showLabel,icons:i.icons,text:i.text},delete i.click,delete i.icon,delete i.iconPosition,delete i.showLabel,delete i.icons,"boolean"==typeof i.text&&delete i.text,e("<button></button>",i).button(a).appendTo(t.uiButtonSet).on("click",function(){o.apply(t.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var t=this,n=this.options;function i(e){return{position:e.position,offset:e.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,o){t._addClass(e(this),"ui-dialog-dragging"),t._blockFrames(),t._trigger("dragStart",n,i(o))},drag:function(e,n){t._trigger("drag",e,i(n))},stop:function(o,a){var r=a.offset.left-t.document.scrollLeft(),s=a.offset.top-t.document.scrollTop();n.position={my:"left top",at:"left"+(r>=0?"+":"")+r+" top"+(s>=0?"+":"")+s,of:t.window},t._removeClass(e(this),"ui-dialog-dragging"),t._unblockFrames(),t._trigger("dragStop",o,i(a))}})},_makeResizable:function(){var t=this,n=this.options,i=n.resizable,o=this.uiDialog.css("position"),a="string"==typeof i?i:"n,e,s,w,se,sw,ne,nw";function r(e){return{originalPosition:e.originalPosition,originalSize:e.originalSize,position:e.position,size:e.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:this._minHeight(),handles:a,start:function(n,i){t._addClass(e(this),"ui-dialog-resizing"),t._blockFrames(),t._trigger("resizeStart",n,r(i))},resize:function(e,n){t._trigger("resize",e,r(n))},stop:function(i,o){var a=t.uiDialog.offset(),s=a.left-t.document.scrollLeft(),l=a.top-t.document.scrollTop();n.height=t.uiDialog.height(),n.width=t.uiDialog.width(),n.position={my:"left top",at:"left"+(s>=0?"+":"")+s+" top"+(l>=0?"+":"")+l,of:t.window},t._removeClass(e(this),"ui-dialog-resizing"),t._unblockFrames(),t._trigger("resizeStop",i,r(o))}}).css("position",o)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=e(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),n=e.inArray(this,t);-1!==n&&t.splice(n,1)},_trackingInstances:function(){var e=this.document.data("ui-dialog-instances");return e||(e=[],this.document.data("ui-dialog-instances",e)),e},_minHeight:function(){var e=this.options;return"auto"===e.height?e.minHeight:Math.min(e.minHeight,e.height)},_position:function(){var e=this.uiDialog.is(":visible");e||this.uiDialog.show(),this.uiDialog.position(this.options.position),e||this.uiDialog.hide()},_setOptions:function(t){var n=this,i=!1,o={};e.each(t,function(e,t){n._setOption(e,t),e in n.sizeRelatedOptions&&(i=!0),e in n.resizableRelatedOptions&&(o[e]=t)}),i&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",o)},_setOption:function(t,n){var i,o,a=this.uiDialog;"disabled"!==t&&(this._super(t,n),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:e("<a>").text(""+this.options.closeText).html()}),"draggable"===t&&((i=a.is(":data(ui-draggable)"))&&!n&&a.draggable("destroy"),!i&&n&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&((o=a.is(":data(ui-resizable)"))&&!n&&a.resizable("destroy"),o&&"string"==typeof n&&a.resizable("option","handles",n),o||!1===n||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var e,t,n,i=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),i.minWidth>i.width&&(i.width=i.minWidth),e=this.uiDialog.css({height:"auto",width:i.width}).outerHeight(),t=Math.max(0,i.minHeight-e),n="number"==typeof i.maxHeight?Math.max(0,i.maxHeight-e):"none","auto"===i.height?this.element.css({minHeight:t,maxHeight:n,height:"auto"}):this.element.height(Math.max(0,i.height-e)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=e(this);return e("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!e(t.target).closest(".ui-dialog").length||!!e(t.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var t=!0;this._delay(function(){t=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(e){t||this._allowInteraction(e)||(e.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=e("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var e=this.document.data("ui-dialog-overlays")-1;e?this.document.data("ui-dialog-overlays",e):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),!1!==e.uiBackCompat&&e.widget("ui.dialog",e.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(e,t){"dialogClass"===e&&this.uiDialog.removeClass(this.options.dialogClass).addClass(t),this._superApply(arguments)}});e.ui.dialog,e.widget("ui.progressbar",{version:"1.12.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=e("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(e){if(void 0===e)return this.options.value;this.options.value=this._constrainedValue(e),this._refreshValue()},_constrainedValue:function(e){return void 0===e&&(e=this.options.value),this.indeterminate=!1===e,"number"!=typeof e&&(e=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,e))},_setOptions:function(e){var t=e.value;delete e.value,this._super(e),this.options.value=this._constrainedValue(t),this._refreshValue()},_setOption:function(e,t){"max"===e&&(t=Math.max(this.min,t)),this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,n=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).width(n.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,t===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=e("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),t===this.options.max&&this._trigger("complete")}}),e.widget("ui.selectmenu",[e.ui.formResetMixin,{version:"1.12.1",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=e()},_drawButton:function(){var t,n=this,i=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(e){this.button.focus(),e.preventDefault()}}),this.element.hide(),this.button=e("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),t=e("<span>").appendTo(this.button),this._addClass(t,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(i).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){n._rendered||n._refreshMenu()})},_drawMenu:function(){var t=this;this.menu=e("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=e("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(e,n){e.preventDefault(),t._setSelection(),t._select(n.item.data("ui-selectmenu-item"),e)},focus:function(e,n){var i=n.item.data("ui-selectmenu-item");null!=t.focusIndex&&i.index!==t.focusIndex&&(t._trigger("focus",e,{item:i}),t.isOpen||t._select(i,e)),t.focusIndex=i.index,t.button.attr("aria-activedescendant",t.menuItems.eq(i.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var e,t=this.element.find("option");this.menu.empty(),this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,t.length&&(e=this._getSelectedItem(),this.menuInstance.focus(null,e),this._setAria(e.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(e){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",e)))},_position:function(){this.menuWrap.position(e.extend({of:this.button},this.options.position))},close:function(e){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",e))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(t){var n=e("<span>");return this._setText(n,t.label),this._addClass(n,"ui-selectmenu-text"),n},_renderMenu:function(t,n){var i=this,o="";e.each(n,function(n,a){var r;a.optgroup!==o&&(r=e("<li>",{text:a.optgroup}),i._addClass(r,"ui-selectmenu-optgroup","ui-menu-divider"+(a.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),r.appendTo(t),o=a.optgroup),i._renderItemData(t,a)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-selectmenu-item",t)},_renderItem:function(t,n){var i=e("<li>"),o=e("<div>",{title:n.element.attr("title")});return n.disabled&&this._addClass(i,null,"ui-state-disabled"),this._setText(o,n.label),i.append(o).appendTo(t)},_setText:function(e,t){t?e.text(t):e.html("&#160;")},_move:function(e,t){var n,i,o=".ui-menu-item";this.isOpen?n=this.menuItems.eq(this.focusIndex).parent("li"):(n=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),o+=":not(.ui-state-disabled)"),(i="first"===e||"last"===e?n["first"===e?"prevAll":"nextAll"](o).eq(-1):n[e+"All"](o).eq(0)).length&&this.menuInstance.focus(t,i)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(e){this[this.isOpen?"close":"open"](e)},_setSelection:function(){var e;this.range&&(window.getSelection?((e=window.getSelection()).removeAllRanges(),e.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(t){this.isOpen&&(e(t.target).closest(".ui-selectmenu-menu, #"+e.ui.escapeSelector(this.ids.button)).length||this.close(t))}},_buttonEvents:{mousedown:function(){var e;window.getSelection?(e=window.getSelection()).rangeCount&&(this.range=e.getRangeAt(0)):this.range=document.selection.createRange()},click:function(e){this._setSelection(),this._toggle(e)},keydown:function(t){var n=!0;switch(t.keyCode){case e.ui.keyCode.TAB:case e.ui.keyCode.ESCAPE:this.close(t),n=!1;break;case e.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case e.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case e.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case e.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case e.ui.keyCode.LEFT:this._move("prev",t);break;case e.ui.keyCode.RIGHT:this._move("next",t);break;case e.ui.keyCode.HOME:case e.ui.keyCode.PAGE_UP:this._move("first",t);break;case e.ui.keyCode.END:case e.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t),n=!1}n&&t.preventDefault()}},_selectFocusedItem:function(e){var t=this.menuItems.eq(this.focusIndex).parent("li");t.hasClass("ui-state-disabled")||this._select(t.data("ui-selectmenu-item"),e)},_select:function(e,t){var n=this.element[0].selectedIndex;this.element[0].selectedIndex=e.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(e)),this._setAria(e),this._trigger("select",t,{item:e}),e.index!==n&&this._trigger("change",t,{item:e}),this.close(t)},_setAria:function(e){var t=this.menuItems.eq(e.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedescendant":t}),this.menu.attr("aria-activedescendant",t)},_setOption:function(e,t){if("icons"===e){var n=this.button.find("span.ui-icon");this._removeClass(n,null,this.options.icons.button)._addClass(n,null,t.button)}this._super(e,t),"appendTo"===e&&this.menuWrap.appendTo(this._appendTo()),"width"===e&&this._resizeButton()},_setOptionDisabled:function(e){this._super(e),this.menuInstance.option("disabled",e),this.button.attr("aria-disabled",e),this._toggleClass(this.button,null,"ui-state-disabled",e),this.element.prop("disabled",e),e?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var e=this.options.width;!1!==e?(null===e&&(e=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(e)):this.button.css("width","")},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var e=this._super();return e.disabled=this.element.prop("disabled"),e},_parseOptions:function(t){var n=this,i=[];t.each(function(t,o){i.push(n._parseOption(e(o),t))}),this.items=i},_parseOption:function(e,t){var n=e.parent("optgroup");return{element:e,index:t,value:e.val(),label:e.text(),optgroup:n.attr("label")||"",disabled:n.prop("disabled")||e.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),e.widget("ui.slider",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,n,i=this.options,o=this.element.find(".ui-slider-handle"),a=[];for(n=i.values&&i.values.length||1,o.length>n&&(o.slice(n).remove(),o=o.slice(0,n)),t=o.length;t<n;t++)a.push("<span tabindex='0'></span>");this.handles=o.add(e(a.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(t){e(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:e.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=e("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(t){var n,i,o,a,r,s,l,u=this,c=this.options;return!c.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),n={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(n),o=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var n=Math.abs(i-u.values(t));(o>n||o===n&&(t===u._lastChangedValue||u.values(t)===c.min))&&(o=n,a=e(this),r=t)}),!1!==this._start(t,r)&&(this._mouseSliding=!0,this._handleIndex=r,this._addClass(a,null,"ui-state-active"),a.trigger("focus"),s=a.offset(),l=!e(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:t.pageX-s.left-a.width()/2,top:t.pageY-s.top-a.height()/2-(parseInt(a.css("borderTopWidth"),10)||0)-(parseInt(a.css("borderBottomWidth"),10)||0)+(parseInt(a.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,r,i),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,n),!1},_mouseStop:function(e){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,n,i,o,a;return"horizontal"===this.orientation?(t=this.elementSize.width,n=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,n=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(i=n/t)>1&&(i=1),i<0&&(i=0),"vertical"===this.orientation&&(i=1-i),o=this._valueMax()-this._valueMin(),a=this._valueMin()+i*o,this._trimAlignValue(a)},_uiHash:function(e,t,n){var i={handle:this.handles[e],handleIndex:e,value:void 0!==t?t:this.value()};return this._hasMultipleValues()&&(i.value=void 0!==t?t:this.values(e),i.values=n||this.values()),i},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(e,t){return this._trigger("start",e,this._uiHash(t))},_slide:function(e,t,n){var i,o=this.value(),a=this.values();this._hasMultipleValues()&&(i=this.values(t?0:1),o=this.values(t),2===this.options.values.length&&!0===this.options.range&&(n=0===t?Math.min(i,n):Math.max(i,n)),a[t]=n),n!==o&&!1!==this._trigger("slide",e,this._uiHash(t,n,a))&&(this._hasMultipleValues()?this.values(t,n):this.value(n))},_stop:function(e,t){this._trigger("stop",e,this._uiHash(t))},_change:function(e,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",e,this._uiHash(t)))},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),void this._change(null,0)):this._value()},values:function(t,n){var i,o,a;if(arguments.length>1)return this.options.values[t]=this._trimAlignValue(n),this._refreshValue(),void this._change(null,t);if(!arguments.length)return this._values();if(!e.isArray(t))return this._hasMultipleValues()?this._values(t):this.value();for(i=this.options.values,o=t,a=0;a<i.length;a+=1)i[a]=this._trimAlignValue(o[a]),this._change(null,a);this._refreshValue()},_setOption:function(t,n){var i,o=0;switch("range"===t&&!0===this.options.range&&("min"===n?(this.options.value=this._values(0),this.options.values=null):"max"===n&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),e.isArray(this.options.values)&&(o=this.options.values.length),this._super(t,n),t){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(n),this.handles.css("horizontal"===n?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=o-1;i>=0;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(e){this._super(e),this._toggleClass(null,"ui-state-disabled",!!e)},_value:function(){var e=this.options.value;return e=this._trimAlignValue(e)},_values:function(e){var t,n,i;if(arguments.length)return t=this.options.values[e],t=this._trimAlignValue(t);if(this._hasMultipleValues()){for(n=this.options.values.slice(),i=0;i<n.length;i+=1)n[i]=this._trimAlignValue(n[i]);return n}return[]},_trimAlignValue:function(e){if(e<=this._valueMin())return this._valueMin();if(e>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,n=(e-this._valueMin())%t,i=e-n;return 2*Math.abs(n)>=t&&(i+=n>0?t:-t),parseFloat(i.toFixed(5))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),n=this.options.step;(e=Math.round((e-t)/n)*n+t)>this.options.max&&(e-=n),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),n=t.indexOf(".");return-1===n?0:t.length-n-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,n,i,o,a,r=this.options.range,s=this.options,l=this,u=!this._animateOff&&s.animate,c={};this._hasMultipleValues()?this.handles.each(function(i){n=(l.values(i)-l._valueMin())/(l._valueMax()-l._valueMin())*100,c["horizontal"===l.orientation?"left":"bottom"]=n+"%",e(this).stop(1,1)[u?"animate":"css"](c,s.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===i&&l.range.stop(1,1)[u?"animate":"css"]({left:n+"%"},s.animate),1===i&&l.range[u?"animate":"css"]({width:n-t+"%"},{queue:!1,duration:s.animate})):(0===i&&l.range.stop(1,1)[u?"animate":"css"]({bottom:n+"%"},s.animate),1===i&&l.range[u?"animate":"css"]({height:n-t+"%"},{queue:!1,duration:s.animate}))),t=n}):(i=this.value(),o=this._valueMin(),a=this._valueMax(),n=a!==o?(i-o)/(a-o)*100:0,c["horizontal"===this.orientation?"left":"bottom"]=n+"%",this.handle.stop(1,1)[u?"animate":"css"](c,s.animate),"min"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:n+"%"},s.animate),"max"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:100-n+"%"},s.animate),"min"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:n+"%"},s.animate),"max"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:100-n+"%"},s.animate))},_handleEvents:{keydown:function(t){var n,i,o,a=e(t.target).data("ui-slider-handle-index");switch(t.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(e(t.target),null,"ui-state-active"),!1===this._start(t,a)))return}switch(o=this.options.step,n=i=this._hasMultipleValues()?this.values(a):this.value(),t.keyCode){case e.ui.keyCode.HOME:i=this._valueMin();break;case e.ui.keyCode.END:i=this._valueMax();break;case e.ui.keyCode.PAGE_UP:i=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(n===this._valueMax())return;i=this._trimAlignValue(n+o);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(n===this._valueMin())return;i=this._trimAlignValue(n-o)}this._slide(t,a,i)},keyup:function(t){var n=e(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,n),this._change(t,n),this._removeClass(e(t.target),null,"ui-state-active"))}}});function g(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}e.widget("ui.spinner",{version:"1.12.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var t=this._super(),n=this.element;return e.each(["min","max","step"],function(e,i){var o=n.attr(i);null!=o&&o.length&&(t[i]=o)}),t},_events:{keydown:function(e){this._start(e)&&this._keydown(e)&&e.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){this.cancelBlur?delete this.cancelBlur:(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",e))},mousewheel:function(e,t){if(t){if(!this.spinning&&!this._start(e))return!1;this._spin((t>0?1:-1)*this.options.step,e),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(e)},100),e.preventDefault()}},"mousedown .ui-spinner-button":function(t){var n;function i(){this.element[0]===e.ui.safeActiveElement(this.document[0])||(this.element.trigger("focus"),this.previous=n,this._delay(function(){this.previous=n}))}n=this.element[0]===e.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),t.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),!1!==this._start(t)&&this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(e(t.currentTarget).hasClass("ui-state-active"))return!1!==this._start(t)&&void this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(t){var n=this.options,i=e.ui.keyCode;switch(t.keyCode){case i.UP:return this._repeat(null,1,t),!0;case i.DOWN:return this._repeat(null,-1,t),!0;case i.PAGE_UP:return this._repeat(null,n.page,t),!0;case i.PAGE_DOWN:return this._repeat(null,-n.page,t),!0}return!1},_start:function(e){return!(!this.spinning&&!1===this._trigger("start",e))&&(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(e,t,n){e=e||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,t,n)},e),this._spin(t*this.options.step,n)},_spin:function(e,t){var n=this.value()||0;this.counter||(this.counter=1),n=this._adjustValue(n+e*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",t,{value:n})||(this._value(n),this.counter++)},_increment:function(t){var n=this.options.incremental;return n?e.isFunction(n)?n(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),n=t.indexOf(".");return-1===n?0:t.length-n-1},_adjustValue:function(e){var t,n,i=this.options;return n=e-(t=null!==i.min?i.min:0),e=t+(n=Math.round(n/i.step)*i.step),e=parseFloat(e.toFixed(this._precision())),null!==i.max&&e>i.max?i.max:null!==i.min&&e<i.min?i.min:e},_stop:function(e){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",e))},_setOption:function(e,t){var n,i,o;if("culture"===e||"numberFormat"===e)return n=this._parse(this.element.val()),this.options[e]=t,void this.element.val(this._format(n));"max"!==e&&"min"!==e&&"step"!==e||"string"==typeof t&&(t=this._parse(t)),"icons"===e&&(i=this.buttons.first().find(".ui-icon"),this._removeClass(i,null,this.options.icons.up),this._addClass(i,null,t.up),o=this.buttons.last().find(".ui-icon"),this._removeClass(o,null,this.options.icons.down),this._addClass(o,null,t.down)),this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!e),this.element.prop("disabled",!!e),this.buttons.button(e?"disable":"enable")},_setOptions:g(function(e){this._super(e)}),_parse:function(e){return"string"==typeof e&&""!==e&&(e=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(e,10,this.options.culture):+e),""===e||isNaN(e)?null:e},_format:function(e){return""===e?"":window.Globalize&&this.options.numberFormat?Globalize.format(e,this.options.numberFormat,this.options.culture):e},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var e=this.value();return null!==e&&e===this._adjustValue(e)},_value:function(e,t){var n;""!==e&&null!==(n=this._parse(e))&&(t||(n=this._adjustValue(n)),e=this._format(n)),this.element.val(e),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:g(function(e){this._stepUp(e)}),_stepUp:function(e){this._start()&&(this._spin((e||1)*this.options.step),this._stop())},stepDown:g(function(e){this._stepDown(e)}),_stepDown:function(e){this._start()&&(this._spin((e||1)*-this.options.step),this._stop())},pageUp:g(function(e){this._stepUp((e||1)*this.options.page)}),pageDown:g(function(e){this._stepDown((e||1)*this.options.page)}),value:function(e){if(!arguments.length)return this._parse(this.element.val());g(this._value).call(this,e)},widget:function(){return this.uiSpinner}}),!1!==e.uiBackCompat&&e.widget("ui.spinner",e.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}});var _;e.ui.spinner;e.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(_=/#.*$/,function(e){var t,n;t=e.href.replace(_,""),n=location.href.replace(_,"");try{t=decodeURIComponent(t)}catch(e){}try{n=decodeURIComponent(n)}catch(e){}return e.hash.length>1&&t===n}),_create:function(){var t=this,n=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,n.collapsible),this._processTabs(),n.active=this._initialActive(),e.isArray(n.disabled)&&(n.disabled=e.unique(n.disabled.concat(e.map(this.tabs.filter(".ui-state-disabled"),function(e){return t.tabs.index(e)}))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(n.active):this.active=e(),this._refresh(),this.active.length&&this.load(n.active)},_initialActive:function(){var t=this.options.active,n=this.options.collapsible,i=location.hash.substring(1);return null===t&&(i&&this.tabs.each(function(n,o){if(e(o).attr("aria-controls")===i)return t=n,!1}),null===t&&(t=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==t&&-1!==t||(t=!!this.tabs.length&&0)),!1!==t&&-1===(t=this.tabs.index(this.tabs.eq(t)))&&(t=!n&&0),!n&&!1===t&&this.anchors.length&&(t=0),t},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):e()}},_tabKeydown:function(t){var n=e(e.ui.safeActiveElement(this.document[0])).closest("li"),i=this.tabs.index(n),o=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:i++;break;case e.ui.keyCode.UP:case e.ui.keyCode.LEFT:o=!1,i--;break;case e.ui.keyCode.END:i=this.anchors.length-1;break;case e.ui.keyCode.HOME:i=0;break;case e.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i);case e.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i!==this.options.active&&i);default:return}t.preventDefault(),clearTimeout(this.activating),i=this._focusNextTab(i,o),t.ctrlKey||t.metaKey||(n.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===e.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===e.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===e.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,n){var i=this.tabs.length-1;for(;-1!==e.inArray((t>i&&(t=0),t<0&&(t=i),t),this.options.disabled);)t=n?t+1:t-1;return t},_focusNextTab:function(e,t){return e=this._findNextTab(e,t),this.tabs.eq(e).trigger("focus"),e},_setOption:function(e,t){"active"!==e?(this._super(e,t),"collapsible"===e&&(this._toggleClass("ui-tabs-collapsible",null,t),t||!1!==this.options.active||this._activate(0)),"event"===e&&this._setupEvents(t),"heightStyle"===e&&this._setupHeightStyle(t)):this._activate(t)},_sanitizeSelector:function(e){return e?e.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,n=this.tablist.children(":has(a[href])");t.disabled=e.map(n.filter(".ui-state-disabled"),function(e){return n.index(e)}),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!e.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=e()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=e()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var t=this,n=this.tabs,i=this.anchors,o=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(t){e(this).is(".ui-state-disabled")&&t.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){e(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return e("a",this)[0]}).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=e(),this.anchors.each(function(n,i){var o,a,r,s=e(i).uniqueId().attr("id"),l=e(i).closest("li"),u=l.attr("aria-controls");t._isLocal(i)?(r=(o=i.hash).substring(1),a=t.element.find(t._sanitizeSelector(o))):(o="#"+(r=l.attr("aria-controls")||e({}).uniqueId()[0].id),(a=t.element.find(o)).length||(a=t._createPanel(r)).insertAfter(t.panels[n-1]||t.tablist),a.attr("aria-live","polite")),a.length&&(t.panels=t.panels.add(a)),u&&l.data("ui-tabs-aria-controls",u),l.attr({"aria-controls":r,"aria-labelledby":s}),a.attr("aria-labelledby",s)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),n&&(this._off(n.not(this.tabs)),this._off(i.not(this.anchors)),this._off(o.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return e("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var n,i,o;for(e.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),o=0;i=this.tabs[o];o++)n=e(i),!0===t||-1!==e.inArray(o,t)?(n.attr("aria-disabled","true"),this._addClass(n,null,"ui-state-disabled")):(n.removeAttr("aria-disabled"),this._removeClass(n,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===t)},_setupEvents:function(t){var n={};t&&e.each(t.split(" "),function(e,t){n[t]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(e){e.preventDefault()}}),this._on(this.anchors,n),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var n,i=this.element.parent();"fill"===t?(n=i.height(),n-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=e(this),i=t.css("position");"absolute"!==i&&"fixed"!==i&&(n-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){n-=e(this).outerHeight(!0)}),this.panels.each(function(){e(this).height(Math.max(0,n-e(this).innerHeight()+e(this).height()))}).css("overflow","auto")):"auto"===t&&(n=0,this.panels.each(function(){n=Math.max(n,e(this).height("").height())}).height(n))},_eventHandler:function(t){var n=this.options,i=this.active,o=e(t.currentTarget).closest("li"),a=o[0]===i[0],r=a&&n.collapsible,s=r?e():this._getPanelForTab(o),l=i.length?this._getPanelForTab(i):e(),u={oldTab:i,oldPanel:l,newTab:r?e():o,newPanel:s};t.preventDefault(),o.hasClass("ui-state-disabled")||o.hasClass("ui-tabs-loading")||this.running||a&&!n.collapsible||!1===this._trigger("beforeActivate",t,u)||(n.active=!r&&this.tabs.index(o),this.active=a?e():o,this.xhr&&this.xhr.abort(),l.length||s.length||e.error("jQuery UI Tabs: Mismatching fragment identifier."),s.length&&this.load(this.tabs.index(o),t),this._toggle(t,u))},_toggle:function(t,n){var i=this,o=n.newPanel,a=n.oldPanel;function r(){i.running=!1,i._trigger("activate",t,n)}function s(){i._addClass(n.newTab.closest("li"),"ui-tabs-active","ui-state-active"),o.length&&i.options.show?i._show(o,i.options.show,r):(o.show(),r())}this.running=!0,a.length&&this.options.hide?this._hide(a,this.options.hide,function(){i._removeClass(n.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),s()}):(this._removeClass(n.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),a.hide(),s()),a.attr("aria-hidden","true"),n.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),o.length&&a.length?n.oldTab.attr("tabIndex",-1):o.length&&this.tabs.filter(function(){return 0===e(this).attr("tabIndex")}).attr("tabIndex",-1),o.attr("aria-hidden","false"),n.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var n,i=this._findActive(t);i[0]!==this.active[0]&&(i.length||(i=this.active),n=i.find(".ui-tabs-anchor")[0],this._eventHandler({target:n,currentTarget:n,preventDefault:e.noop}))},_findActive:function(t){return!1===t?e():this.tabs.eq(t)},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+e.ui.escapeSelector(t)+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){e.data(this,"ui-tabs-destroy")?e(this).remove():e(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var t=e(this),n=t.data("ui-tabs-aria-controls");n?t.attr("aria-controls",n).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(t){var n=this.options.disabled;!1!==n&&(void 0===t?n=!1:(t=this._getIndex(t),n=e.isArray(n)?e.map(n,function(e){return e!==t?e:null}):e.map(this.tabs,function(e,n){return n!==t?n:null})),this._setOptionDisabled(n))},disable:function(t){var n=this.options.disabled;if(!0!==n){if(void 0===t)n=!0;else{if(t=this._getIndex(t),-1!==e.inArray(t,n))return;n=e.isArray(n)?e.merge([t],n).sort():[t]}this._setOptionDisabled(n)}},load:function(t,n){t=this._getIndex(t);var i=this,o=this.tabs.eq(t),a=o.find(".ui-tabs-anchor"),r=this._getPanelForTab(o),s={tab:o,panel:r},l=function(e,t){"abort"===t&&i.panels.stop(!1,!0),i._removeClass(o,"ui-tabs-loading"),r.removeAttr("aria-busy"),e===i.xhr&&delete i.xhr};this._isLocal(a[0])||(this.xhr=e.ajax(this._ajaxSettings(a,n,s)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(o,"ui-tabs-loading"),r.attr("aria-busy","true"),this.xhr.done(function(e,t,o){setTimeout(function(){r.html(e),i._trigger("load",n,s),l(o,t)},1)}).fail(function(e,t){setTimeout(function(){l(e,t)},1)})))},_ajaxSettings:function(t,n,i){var o=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,a){return o._trigger("beforeLoad",n,e.extend({jqXHR:t,ajaxSettings:a},i))}}},_getPanelForTab:function(t){var n=e(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+n))}}),!1!==e.uiBackCompat&&e.widget("ui.tabs",e.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}});e.ui.tabs;e.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=e(this).attr("title")||"";return e("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(t,n){var i=(t.attr("aria-describedby")||"").split(/\s+/);i.push(n),t.data("ui-tooltip-id",n).attr("aria-describedby",e.trim(i.join(" ")))},_removeDescribedBy:function(t){var n=t.data("ui-tooltip-id"),i=(t.attr("aria-describedby")||"").split(/\s+/),o=e.inArray(n,i);-1!==o&&i.splice(o,1),t.removeData("ui-tooltip-id"),(i=e.trim(i.join(" ")))?t.attr("aria-describedby",i):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=e("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=e([])},_setOption:function(t,n){var i=this;this._super(t,n),"content"===t&&e.each(this.tooltips,function(e,t){i._updateContent(t.element)})},_setOptionDisabled:function(e){this[e?"_disable":"_enable"]()},_disable:function(){var t=this;e.each(this.tooltips,function(n,i){var o=e.Event("blur");o.target=o.currentTarget=i.element[0],t.close(o,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var t=e(this);if(t.is("[title]"))return t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var t=e(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))}),this.disabledTitles=e([])},open:function(t){var n=this,i=e(t?t.target:this.element).closest(this.options.items);i.length&&!i.data("ui-tooltip-id")&&(i.attr("title")&&i.data("ui-tooltip-title",i.attr("title")),i.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&i.parents().each(function(){var t,i=e(this);i.data("ui-tooltip-open")&&((t=e.Event("blur")).target=t.currentTarget=this,n.close(t,!0)),i.attr("title")&&(i.uniqueId(),n.parents[this.id]={element:this,title:i.attr("title")},i.attr("title",""))}),this._registerCloseHandlers(t,i),this._updateContent(i,t))},_updateContent:function(e,t){var n,i=this.options.content,o=this,a=t?t.type:null;if("string"==typeof i||i.nodeType||i.jquery)return this._open(t,e,i);(n=i.call(e[0],function(n){o._delay(function(){e.data("ui-tooltip-open")&&(t&&(t.type=a),this._open(t,e,n))})}))&&this._open(t,e,n)},_open:function(t,n,i){var o,a,r,s,l=e.extend({},this.options.position);function u(e){l.of=e,a.is(":hidden")||a.position(l)}i&&((o=this._find(n))?o.tooltip.find(".ui-tooltip-content").html(i):(n.is("[title]")&&(t&&"mouseover"===t.type?n.attr("title",""):n.removeAttr("title")),o=this._tooltip(n),a=o.tooltip,this._addDescribedBy(n,a.attr("id")),a.find(".ui-tooltip-content").html(i),this.liveRegion.children().hide(),(s=e("<div>").html(a.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),s.removeAttr("id").find("[id]").removeAttr("id"),s.appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:u}),u(t)):a.position(e.extend({of:n},this.options.position)),a.hide(),this._show(a,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(r=this.delayedShow=setInterval(function(){a.is(":visible")&&(u(l.of),clearInterval(r))},e.fx.interval)),this._trigger("open",t,{tooltip:a})))},_registerCloseHandlers:function(t,n){var i={keyup:function(t){if(t.keyCode===e.ui.keyCode.ESCAPE){var i=e.Event(t);i.currentTarget=n[0],this.close(i,!0)}}};n[0]!==this.element[0]&&(i.remove=function(){this._removeTooltip(this._find(n).tooltip)}),t&&"mouseover"!==t.type||(i.mouseleave="close"),t&&"focusin"!==t.type||(i.focusout="close"),this._on(!0,n,i)},close:function(t){var n,i=this,o=e(t?t.currentTarget:this.element),a=this._find(o);a?(n=a.tooltip,a.closing||(clearInterval(this.delayedShow),o.data("ui-tooltip-title")&&!o.attr("title")&&o.attr("title",o.data("ui-tooltip-title")),this._removeDescribedBy(o),a.hiding=!0,n.stop(!0),this._hide(n,this.options.hide,function(){i._removeTooltip(e(this))}),o.removeData("ui-tooltip-open"),this._off(o,"mouseleave focusout keyup"),o[0]!==this.element[0]&&this._off(o,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&e.each(this.parents,function(t,n){e(n.element).attr("title",n.title),delete i.parents[t]}),a.closing=!0,this._trigger("close",t,{tooltip:n}),a.hiding||(a.closing=!1))):o.removeData("ui-tooltip-open")},_tooltip:function(t){var n=e("<div>").attr("role","tooltip"),i=e("<div>").appendTo(n),o=n.uniqueId().attr("id");return this._addClass(i,"ui-tooltip-content"),this._addClass(n,"ui-tooltip","ui-widget ui-widget-content"),n.appendTo(this._appendTo(t)),this.tooltips[o]={element:t,tooltip:n}},_find:function(e){var t=e.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(e){e.remove(),delete this.tooltips[e.attr("id")]},_appendTo:function(e){var t=e.closest(".ui-front, dialog");return t.length||(t=this.document[0].body),t},_destroy:function(){var t=this;e.each(this.tooltips,function(n,i){var o=e.Event("blur"),a=i.element;o.target=o.currentTarget=a[0],t.close(o,!0),e("#"+n).remove(),a.data("ui-tooltip-title")&&(a.attr("title")||a.attr("title",a.data("ui-tooltip-title")),a.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),!1!==e.uiBackCompat&&e.widget("ui.tooltip",e.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var e=this._superApply(arguments);return this.options.tooltipClass&&e.tooltip.addClass(this.options.tooltipClass),e}});e.ui.tooltip;var m,v="ui-effects-animated",y=e;e.effects={effect:{}},function(e,t){var n,i=/^([\-+])=\s*(\d+\.?\d*)/,o=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],a=e.Color=function(t,n,i,o){return new e.Color.fn.parse(t,n,i,o)},r={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},s={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},l=a.support={},u=e("<p>")[0],c=e.each;function d(e,t,n){var i=s[t.type]||{};return null==e?n||!t.def?null:t.def:(e=i.floor?~~e:parseFloat(e),isNaN(e)?t.def:i.mod?(e+i.mod)%i.mod:0>e?0:i.max<e?i.max:e)}function h(t){var i=a(),s=i._rgba=[];return t=t.toLowerCase(),c(o,function(e,n){var o,a=n.re.exec(t),l=a&&n.parse(a),u=n.space||"rgba";if(l)return o=i[u](l),i[r[u].cache]=o[r[u].cache],s=i._rgba=o._rgba,!1}),s.length?("0,0,0,0"===s.join()&&e.extend(s,n.transparent),i):n[t]}function p(e,t,n){return 6*(n=(n+1)%1)<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}u.style.cssText="background-color:rgba(1,1,1,.5)",l.rgba=u.style.backgroundColor.indexOf("rgba")>-1,c(r,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),a.fn=e.extend(a.prototype,{parse:function(t,i,o,s){if(void 0===t)return this._rgba=[null,null,null,null],this;(t.jquery||t.nodeType)&&(t=e(t).css(i),i=void 0);var l=this,u=e.type(t),p=this._rgba=[];return void 0!==i&&(t=[t,i,o,s],u="array"),"string"===u?this.parse(h(t)||n._default):"array"===u?(c(r.rgba.props,function(e,n){p[n.idx]=d(t[n.idx],n)}),this):"object"===u?(c(r,t instanceof a?function(e,n){t[n.cache]&&(l[n.cache]=t[n.cache].slice())}:function(n,i){var o=i.cache;c(i.props,function(e,n){if(!l[o]&&i.to){if("alpha"===e||null==t[e])return;l[o]=i.to(l._rgba)}l[o][n.idx]=d(t[e],n,!0)}),l[o]&&e.inArray(null,l[o].slice(0,3))<0&&(l[o][3]=1,i.from&&(l._rgba=i.from(l[o])))}),this):void 0},is:function(e){var t=a(e),n=!0,i=this;return c(r,function(e,o){var a,r=t[o.cache];return r&&(a=i[o.cache]||o.to&&o.to(i._rgba)||[],c(o.props,function(e,t){if(null!=r[t.idx])return n=r[t.idx]===a[t.idx]})),n}),n},_space:function(){var e=[],t=this;return c(r,function(n,i){t[i.cache]&&e.push(n)}),e.pop()},transition:function(e,t){var n=a(e),i=n._space(),o=r[i],l=0===this.alpha()?a("transparent"):this,u=l[o.cache]||o.to(l._rgba),h=u.slice();return n=n[o.cache],c(o.props,function(e,i){var o=i.idx,a=u[o],r=n[o],l=s[i.type]||{};null!==r&&(null===a?h[o]=r:(l.mod&&(r-a>l.mod/2?a+=l.mod:a-r>l.mod/2&&(a-=l.mod)),h[o]=d((r-a)*t+a,i)))}),this[i](h)},blend:function(t){if(1===this._rgba[3])return this;var n=this._rgba.slice(),i=n.pop(),o=a(t)._rgba;return a(e.map(n,function(e,t){return(1-i)*o[t]+i*e}))},toRgbaString:function(){var t="rgba(",n=e.map(this._rgba,function(e,t){return null==e?t>2?1:0:e});return 1===n[3]&&(n.pop(),t="rgb("),t+n.join()+")"},toHslaString:function(){var t="hsla(",n=e.map(this.hsla(),function(e,t){return null==e&&(e=t>2?1:0),t&&t<3&&(e=Math.round(100*e)+"%"),e});return 1===n[3]&&(n.pop(),t="hsl("),t+n.join()+")"},toHexString:function(t){var n=this._rgba.slice(),i=n.pop();return t&&n.push(~~(255*i)),"#"+e.map(n,function(e){return 1===(e=(e||0).toString(16)).length?"0"+e:e}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),a.fn.parse.prototype=a.fn,r.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,n,i=e[0]/255,o=e[1]/255,a=e[2]/255,r=e[3],s=Math.max(i,o,a),l=Math.min(i,o,a),u=s-l,c=s+l,d=.5*c;return t=l===s?0:i===s?60*(o-a)/u+360:o===s?60*(a-i)/u+120:60*(i-o)/u+240,n=0===u?0:d<=.5?u/c:u/(2-c),[Math.round(t)%360,n,d,null==r?1:r]},r.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,n=e[1],i=e[2],o=e[3],a=i<=.5?i*(1+n):i+n-i*n,r=2*i-a;return[Math.round(255*p(r,a,t+1/3)),Math.round(255*p(r,a,t)),Math.round(255*p(r,a,t-1/3)),o]},c(r,function(t,n){var o=n.props,r=n.cache,s=n.to,l=n.from;a.fn[t]=function(t){if(s&&!this[r]&&(this[r]=s(this._rgba)),void 0===t)return this[r].slice();var n,i=e.type(t),u="array"===i||"object"===i?t:arguments,h=this[r].slice();return c(o,function(e,t){var n=u["object"===i?e:t.idx];null==n&&(n=h[t.idx]),h[t.idx]=d(n,t)}),l?((n=a(l(h)))[r]=h,n):a(h)},c(o,function(n,o){a.fn[n]||(a.fn[n]=function(a){var r,s=e.type(a),l="alpha"===n?this._hsla?"hsla":"rgba":t,u=this[l](),c=u[o.idx];return"undefined"===s?c:("function"===s&&(a=a.call(this,c),s=e.type(a)),null==a&&o.empty?this:("string"===s&&(r=i.exec(a))&&(a=c+parseFloat(r[2])*("+"===r[1]?1:-1)),u[o.idx]=a,this[l](u)))})})}),a.hook=function(t){var n=t.split(" ");c(n,function(t,n){e.cssHooks[n]={set:function(t,i){var o,r,s="";if("transparent"!==i&&("string"!==e.type(i)||(o=h(i)))){if(i=a(o||i),!l.rgba&&1!==i._rgba[3]){for(r="backgroundColor"===n?t.parentNode:t;(""===s||"transparent"===s)&&r&&r.style;)try{s=e.css(r,"backgroundColor"),r=r.parentNode}catch(e){}i=i.blend(s&&"transparent"!==s?s:"_default")}i=i.toRgbaString()}try{t.style[n]=i}catch(e){}}},e.fx.step[n]=function(t){t.colorInit||(t.start=a(t.elem,n),t.end=a(t.end),t.colorInit=!0),e.cssHooks[n].set(t.elem,t.start.transition(t.end,t.pos))}})},a.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),e.cssHooks.borderColor={expand:function(e){var t={};return c(["Top","Right","Bottom","Left"],function(n,i){t["border"+i+"Color"]=e}),t}},n=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(y),function(){var t,n=["add","remove","toggle"],i={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};function o(t){var n,i,o=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,a={};if(o&&o.length&&o[0]&&o[o[0]])for(i=o.length;i--;)"string"==typeof o[n=o[i]]&&(a[e.camelCase(n)]=o[n]);else for(n in o)"string"==typeof o[n]&&(a[n]=o[n]);return a}e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,n){e.fx.step[n]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(y.style(e.elem,n,e.end),e.setAttr=!0)}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e.effects.animateClass=function(t,a,r,s){var l=e.speed(a,r,s);return this.queue(function(){var a,r=e(this),s=r.attr("class")||"",u=l.children?r.find("*").addBack():r;u=u.map(function(){return{el:e(this),start:o(this)}}),(a=function(){e.each(n,function(e,n){t[n]&&r[n+"Class"](t[n])})})(),u=u.map(function(){return this.end=o(this.el[0]),this.diff=function(t,n){var o,a,r={};for(o in n)a=n[o],t[o]!==a&&(i[o]||!e.fx.step[o]&&isNaN(parseFloat(a))||(r[o]=a));return r}(this.start,this.end),this}),r.attr("class",s),u=u.map(function(){var t=this,n=e.Deferred(),i=e.extend({},l,{queue:!1,complete:function(){n.resolve(t)}});return this.el.animate(this.diff,i),n.promise()}),e.when.apply(e,u.get()).done(function(){a(),e.each(arguments,function(){var t=this.el;e.each(this.diff,function(e){t.css(e,"")})}),l.complete.call(r[0])})})},e.fn.extend({addClass:(t=e.fn.addClass,function(n,i,o,a){return i?e.effects.animateClass.call(this,{add:n},i,o,a):t.apply(this,arguments)}),removeClass:function(t){return function(n,i,o,a){return arguments.length>1?e.effects.animateClass.call(this,{remove:n},i,o,a):t.apply(this,arguments)}}(e.fn.removeClass),toggleClass:function(t){return function(n,i,o,a,r){return"boolean"==typeof i||void 0===i?o?e.effects.animateClass.call(this,i?{add:n}:{remove:n},o,a,r):t.apply(this,arguments):e.effects.animateClass.call(this,{toggle:n},i,o,a)}}(e.fn.toggleClass),switchClass:function(t,n,i,o,a){return e.effects.animateClass.call(this,{add:n,remove:t},i,o,a)}})}(),function(){var t;function n(t,n,i,o){return e.isPlainObject(t)&&(n=t,t=t.effect),t={effect:t},null==n&&(n={}),e.isFunction(n)&&(o=n,i=null,n={}),("number"==typeof n||e.fx.speeds[n])&&(o=i,i=n,n={}),e.isFunction(i)&&(o=i,i=null),n&&e.extend(t,n),i=i||n.duration,t.duration=e.fx.off?0:"number"==typeof i?i:i in e.fx.speeds?e.fx.speeds[i]:e.fx.speeds._default,t.complete=o||n.complete,t}function i(t){return!(t&&"number"!=typeof t&&!e.fx.speeds[t])||("string"==typeof t&&!e.effects.effect[t]||(!!e.isFunction(t)||"object"==typeof t&&!t.effect))}function o(e,t){var n=t.outerWidth(),i=t.outerHeight(),o=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(e)||["",0,n,i,0];return{top:parseFloat(o[1])||0,right:"auto"===o[2]?n:parseFloat(o[2]),bottom:"auto"===o[3]?i:parseFloat(o[3]),left:parseFloat(o[4])||0}}e.expr&&e.expr.filters&&e.expr.filters.animated&&(e.expr.filters.animated=(t=e.expr.filters.animated,function(n){return!!e(n).data(v)||t(n)})),!1!==e.uiBackCompat&&e.extend(e.effects,{save:function(e,t){for(var n=0,i=t.length;n<i;n++)null!==t[n]&&e.data("ui-effects-"+t[n],e[0].style[t[n]])},restore:function(e,t){for(var n,i=0,o=t.length;i<o;i++)null!==t[i]&&(n=e.data("ui-effects-"+t[i]),e.css(t[i],n))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var n={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},i=e("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),o={width:t.width(),height:t.height()},a=document.activeElement;try{a.id}catch(e){a=document.body}return t.wrap(i),(t[0]===a||e.contains(t[0],a))&&e(a).trigger("focus"),i=t.parent(),"static"===t.css("position")?(i.css({position:"relative"}),t.css({position:"relative"})):(e.extend(n,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],function(e,i){n[i]=t.css(i),isNaN(parseInt(n[i],10))&&(n[i]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(o),i.css(n).show()},removeWrapper:function(t){var n=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===n||e.contains(t[0],n))&&e(n).trigger("focus")),t}}),e.extend(e.effects,{version:"1.12.1",define:function(t,n,i){return i||(i=n,n="effect"),e.effects.effect[t]=i,e.effects.effect[t].mode=n,i},scaledDimensions:function(e,t,n){if(0===t)return{height:0,width:0,outerHeight:0,outerWidth:0};var i="horizontal"!==n?(t||100)/100:1,o="vertical"!==n?(t||100)/100:1;return{height:e.height()*o,width:e.width()*i,outerHeight:e.outerHeight()*o,outerWidth:e.outerWidth()*i}},clipToBox:function(e){return{width:e.clip.right-e.clip.left,height:e.clip.bottom-e.clip.top,left:e.clip.left,top:e.clip.top}},unshift:function(e,t,n){var i=e.queue();t>1&&i.splice.apply(i,[1,0].concat(i.splice(t,n))),e.dequeue()},saveStyle:function(e){e.data("ui-effects-style",e[0].style.cssText)},restoreStyle:function(e){e[0].style.cssText=e.data("ui-effects-style")||"",e.removeData("ui-effects-style")},mode:function(e,t){var n=e.is(":hidden");return"toggle"===t&&(t=n?"show":"hide"),(n?"hide"===t:"show"===t)&&(t="none"),t},getBaseline:function(e,t){var n,i;switch(e[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=e[0]/t.height}switch(e[1]){case"left":i=0;break;case"center":i=.5;break;case"right":i=1;break;default:i=e[1]/t.width}return{x:i,y:n}},createPlaceholder:function(t){var n,i=t.css("position"),o=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(i)&&(i="absolute",n=e("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data("ui-effects-placeholder",n)),t.css({position:i,left:o.left,top:o.top}),n},removePlaceholder:function(e){var t="ui-effects-placeholder",n=e.data(t);n&&(n.remove(),e.removeData(t))},cleanUp:function(t){e.effects.restoreStyle(t),e.effects.removePlaceholder(t)},setTransition:function(t,n,i,o){return o=o||{},e.each(n,function(e,n){var a=t.cssUnit(n);a[0]>0&&(o[n]=a[0]*i+a[1])}),o}}),e.fn.extend({effect:function(){var t=n.apply(this,arguments),i=e.effects.effect[t.effect],o=i.mode,a=t.queue,r=a||"fx",s=t.complete,l=t.mode,u=[],c=function(t){var n=e(this),i=e.effects.mode(n,l)||o;n.data(v,!0),u.push(i),o&&("show"===i||i===o&&"hide"===i)&&n.show(),o&&"none"===i||e.effects.saveStyle(n),e.isFunction(t)&&t()};if(e.fx.off||!i)return l?this[l](t.duration,s):this.each(function(){s&&s.call(this)});function d(n){var a=e(this);function r(){e.isFunction(s)&&s.call(a[0]),e.isFunction(n)&&n()}t.mode=u.shift(),!1===e.uiBackCompat||o?"none"===t.mode?(a[l](),r()):i.call(a[0],t,function(){a.removeData(v),e.effects.cleanUp(a),"hide"===t.mode&&a.hide(),r()}):(a.is(":hidden")?"hide"===l:"show"===l)?(a[l](),r()):i.call(a[0],t,r)}return!1===a?this.each(c).each(d):this.queue(r,c).queue(r,d)},show:function(e){return function(t){if(i(t))return e.apply(this,arguments);var o=n.apply(this,arguments);return o.mode="show",this.effect.call(this,o)}}(e.fn.show),hide:function(e){return function(t){if(i(t))return e.apply(this,arguments);var o=n.apply(this,arguments);return o.mode="hide",this.effect.call(this,o)}}(e.fn.hide),toggle:function(e){return function(t){if(i(t)||"boolean"==typeof t)return e.apply(this,arguments);var o=n.apply(this,arguments);return o.mode="toggle",this.effect.call(this,o)}}(e.fn.toggle),cssUnit:function(t){var n=this.css(t),i=[];return e.each(["em","px","%","pt"],function(e,t){n.indexOf(t)>0&&(i=[parseFloat(n),t])}),i},cssClip:function(e){return e?this.css("clip","rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"):o(this.css("clip"),this)},transfer:function(t,n){var i=e(this),o=e(t.to),a="fixed"===o.css("position"),r=e("body"),s=a?r.scrollTop():0,l=a?r.scrollLeft():0,u=o.offset(),c={top:u.top-s,left:u.left-l,height:o.innerHeight(),width:o.innerWidth()},d=i.offset(),h=e("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(t.className).css({top:d.top-s,left:d.left-l,height:i.innerHeight(),width:i.innerWidth(),position:a?"fixed":"absolute"}).animate(c,t.duration,t.easing,function(){h.remove(),e.isFunction(n)&&n()})}}),e.fx.step.clip=function(t){t.clipInit||(t.start=e(t.elem).cssClip(),"string"==typeof t.end&&(t.end=o(t.end,t.elem)),t.clipInit=!0),e(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})}}(),m={},e.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){m[t]=function(t){return Math.pow(t,e+2)}}),e.extend(m,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(m,function(t,n){e.easing["easeIn"+t]=n,e.easing["easeOut"+t]=function(e){return 1-n(1-e)},e.easing["easeInOut"+t]=function(e){return e<.5?n(2*e)/2:1-n(-2*e+2)/2}});e.effects,e.effects.define("blind","hide",function(t,n){var i={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},o=e(this),a=t.direction||"up",r=o.cssClip(),s={clip:e.extend({},r)},l=e.effects.createPlaceholder(o);s.clip[i[a][0]]=s.clip[i[a][1]],"show"===t.mode&&(o.cssClip(s.clip),l&&l.css(e.effects.clipToBox(s)),s.clip=r),l&&l.animate(e.effects.clipToBox(s),t.duration,t.easing),o.animate(s,{queue:!1,duration:t.duration,easing:t.easing,complete:n})}),e.effects.define("bounce",function(t,n){var i,o,a,r=e(this),s=t.mode,l="hide"===s,u="show"===s,c=t.direction||"up",d=t.distance,h=t.times||5,p=2*h+(u||l?1:0),f=t.duration/p,g=t.easing,_="up"===c||"down"===c?"top":"left",m="up"===c||"left"===c,v=0,y=r.queue().length;for(e.effects.createPlaceholder(r),a=r.css(_),d||(d=r["top"===_?"outerHeight":"outerWidth"]()/3),u&&((o={opacity:1})[_]=a,r.css("opacity",0).css(_,m?2*-d:2*d).animate(o,f,g)),l&&(d/=Math.pow(2,h-1)),(o={})[_]=a;v<h;v++)(i={})[_]=(m?"-=":"+=")+d,r.animate(i,f,g).animate(o,f,g),d=l?2*d:d/2;l&&((i={opacity:0})[_]=(m?"-=":"+=")+d,r.animate(i,f,g)),r.queue(n),e.effects.unshift(r,y,p+1)}),e.effects.define("clip","hide",function(t,n){var i,o={},a=e(this),r=t.direction||"vertical",s="both"===r,l=s||"horizontal"===r,u=s||"vertical"===r;i=a.cssClip(),o.clip={top:u?(i.bottom-i.top)/2:i.top,right:l?(i.right-i.left)/2:i.right,bottom:u?(i.bottom-i.top)/2:i.bottom,left:l?(i.right-i.left)/2:i.left},e.effects.createPlaceholder(a),"show"===t.mode&&(a.cssClip(o.clip),o.clip=i),a.animate(o,{queue:!1,duration:t.duration,easing:t.easing,complete:n})}),e.effects.define("drop","hide",function(t,n){var i,o=e(this),a="show"===t.mode,r=t.direction||"left",s="up"===r||"down"===r?"top":"left",l="up"===r||"left"===r?"-=":"+=",u="+="===l?"-=":"+=",c={opacity:0};e.effects.createPlaceholder(o),i=t.distance||o["top"===s?"outerHeight":"outerWidth"](!0)/2,c[s]=l+i,a&&(o.css(c),c[s]=u+i,c.opacity=1),o.animate(c,{queue:!1,duration:t.duration,easing:t.easing,complete:n})}),e.effects.define("explode","hide",function(t,n){var i,o,a,r,s,l,u=t.pieces?Math.round(Math.sqrt(t.pieces)):3,c=u,d=e(this),h="show"===t.mode,p=d.show().css("visibility","hidden").offset(),f=Math.ceil(d.outerWidth()/c),g=Math.ceil(d.outerHeight()/u),_=[];function m(){_.push(this),_.length===u*c&&(d.css({visibility:"visible"}),e(_).remove(),n())}for(i=0;i<u;i++)for(r=p.top+i*g,l=i-(u-1)/2,o=0;o<c;o++)a=p.left+o*f,s=o-(c-1)/2,d.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-o*f,top:-i*g}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:f,height:g,left:a+(h?s*f:0),top:r+(h?l*g:0),opacity:h?0:1}).animate({left:a+(h?0:s*f),top:r+(h?0:l*g),opacity:h?1:0},t.duration||500,t.easing,m)}),e.effects.define("fade","toggle",function(t,n){var i="show"===t.mode;e(this).css("opacity",i?0:1).animate({opacity:i?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:n})}),e.effects.define("fold","hide",function(t,n){var i=e(this),o=t.mode,a="show"===o,r="hide"===o,s=t.size||15,l=/([0-9]+)%/.exec(s),u=!!t.horizFirst?["right","bottom"]:["bottom","right"],c=t.duration/2,d=e.effects.createPlaceholder(i),h=i.cssClip(),p={clip:e.extend({},h)},f={clip:e.extend({},h)},g=[h[u[0]],h[u[1]]],_=i.queue().length;l&&(s=parseInt(l[1],10)/100*g[r?0:1]),p.clip[u[0]]=s,f.clip[u[0]]=s,f.clip[u[1]]=0,a&&(i.cssClip(f.clip),d&&d.css(e.effects.clipToBox(f)),f.clip=h),i.queue(function(n){d&&d.animate(e.effects.clipToBox(p),c,t.easing).animate(e.effects.clipToBox(f),c,t.easing),n()}).animate(p,c,t.easing).animate(f,c,t.easing).queue(n),e.effects.unshift(i,_,4)}),e.effects.define("highlight","show",function(t,n){var i=e(this),o={backgroundColor:i.css("backgroundColor")};"hide"===t.mode&&(o.opacity=0),e.effects.saveStyle(i),i.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(o,{queue:!1,duration:t.duration,easing:t.easing,complete:n})}),e.effects.define("size",function(t,n){var i,o,a,r=e(this),s=["fontSize"],l=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],u=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],c=t.mode,d="effect"!==c,h=t.scale||"both",p=t.origin||["middle","center"],f=r.css("position"),g=r.position(),_=e.effects.scaledDimensions(r),m=t.from||_,v=t.to||e.effects.scaledDimensions(r,0);e.effects.createPlaceholder(r),"show"===c&&(a=m,m=v,v=a),o={from:{y:m.height/_.height,x:m.width/_.width},to:{y:v.height/_.height,x:v.width/_.width}},"box"!==h&&"both"!==h||(o.from.y!==o.to.y&&(m=e.effects.setTransition(r,l,o.from.y,m),v=e.effects.setTransition(r,l,o.to.y,v)),o.from.x!==o.to.x&&(m=e.effects.setTransition(r,u,o.from.x,m),v=e.effects.setTransition(r,u,o.to.x,v))),"content"!==h&&"both"!==h||o.from.y!==o.to.y&&(m=e.effects.setTransition(r,s,o.from.y,m),v=e.effects.setTransition(r,s,o.to.y,v)),p&&(i=e.effects.getBaseline(p,_),m.top=(_.outerHeight-m.outerHeight)*i.y+g.top,m.left=(_.outerWidth-m.outerWidth)*i.x+g.left,v.top=(_.outerHeight-v.outerHeight)*i.y+g.top,v.left=(_.outerWidth-v.outerWidth)*i.x+g.left),r.css(m),"content"!==h&&"both"!==h||(l=l.concat(["marginTop","marginBottom"]).concat(s),u=u.concat(["marginLeft","marginRight"]),r.find("*[width]").each(function(){var n=e(this),i=e.effects.scaledDimensions(n),a={height:i.height*o.from.y,width:i.width*o.from.x,outerHeight:i.outerHeight*o.from.y,outerWidth:i.outerWidth*o.from.x},r={height:i.height*o.to.y,width:i.width*o.to.x,outerHeight:i.height*o.to.y,outerWidth:i.width*o.to.x};o.from.y!==o.to.y&&(a=e.effects.setTransition(n,l,o.from.y,a),r=e.effects.setTransition(n,l,o.to.y,r)),o.from.x!==o.to.x&&(a=e.effects.setTransition(n,u,o.from.x,a),r=e.effects.setTransition(n,u,o.to.x,r)),d&&e.effects.saveStyle(n),n.css(a),n.animate(r,t.duration,t.easing,function(){d&&e.effects.restoreStyle(n)})})),r.animate(v,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){var t=r.offset();0===v.opacity&&r.css("opacity",m.opacity),d||(r.css("position","static"===f?"relative":f).offset(t),e.effects.saveStyle(r)),n()}})}),e.effects.define("scale",function(t,n){var i=e(this),o=t.mode,a=parseInt(t.percent,10)||(0===parseInt(t.percent,10)?0:"effect"!==o?0:100),r=e.extend(!0,{from:e.effects.scaledDimensions(i),to:e.effects.scaledDimensions(i,a,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(r.from.opacity=1,r.to.opacity=0),e.effects.effect.size.call(this,r,n)}),e.effects.define("puff","hide",function(t,n){var i=e.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});e.effects.effect.scale.call(this,i,n)}),e.effects.define("pulsate","show",function(t,n){var i=e(this),o=t.mode,a="show"===o,r=a||"hide"===o,s=2*(t.times||5)+(r?1:0),l=t.duration/s,u=0,c=1,d=i.queue().length;for(!a&&i.is(":visible")||(i.css("opacity",0).show(),u=1);c<s;c++)i.animate({opacity:u},l,t.easing),u=1-u;i.animate({opacity:u},l,t.easing),i.queue(n),e.effects.unshift(i,d,s+1)}),e.effects.define("shake",function(t,n){var i=1,o=e(this),a=t.direction||"left",r=t.distance||20,s=t.times||3,l=2*s+1,u=Math.round(t.duration/l),c="up"===a||"down"===a?"top":"left",d="up"===a||"left"===a,h={},p={},f={},g=o.queue().length;for(e.effects.createPlaceholder(o),h[c]=(d?"-=":"+=")+r,p[c]=(d?"+=":"-=")+2*r,f[c]=(d?"-=":"+=")+2*r,o.animate(h,u,t.easing);i<s;i++)o.animate(p,u,t.easing).animate(f,u,t.easing);o.animate(p,u,t.easing).animate(h,u/2,t.easing).queue(n),e.effects.unshift(o,g,l+1)}),e.effects.define("slide","show",function(t,n){var i,o,a=e(this),r={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},s=t.mode,l=t.direction||"left",u="up"===l||"down"===l?"top":"left",c="up"===l||"left"===l,d=t.distance||a["top"===u?"outerHeight":"outerWidth"](!0),h={};e.effects.createPlaceholder(a),i=a.cssClip(),o=a.position()[u],h[u]=(c?-1:1)*d+o,h.clip=a.cssClip(),h.clip[r[l][1]]=h.clip[r[l][0]],"show"===s&&(a.cssClip(h.clip),a.css(u,h[u]),h.clip=i,h[u]=o),a.animate(h,{queue:!1,duration:t.duration,easing:t.easing,complete:n})});!1!==e.uiBackCompat&&e.effects.define("transfer",function(t,n){e(this).transfer(t,n)})}),function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=847)}([function(e,t,n){var i=n(1).isPlainObject;t.extend=function e(t){var n=1,o=!1;for("boolean"==typeof(t=t||{})&&(o=t,t=arguments[1]||{},n++);n<arguments.length;n++){var a=arguments[n];if(null!=a)for(var r in a){var s,l=t[r],u=a[r],c=!1;"__proto__"!==r&&t!==u&&(o&&u&&(i(u)||(c=Array.isArray(u)))?(s=c?l&&Array.isArray(l)?l:[]:l&&i(l)?l:{},t[r]=e(o,s,u)):void 0!==u&&(t[r]=u))}}return t},t.extendFromObject=function(e,t,n){for(var i in e=e||{},t)if(t.hasOwnProperty(i)){var o=t[i];i in e&&!n||(e[i]=o)}return e}},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o={"[object Array]":"array","[object Date]":"date","[object Object]":"object","[object String]":"string","[object Null]":"null"},a=function(e){var t=Object.prototype.toString.call(e);return"object"===(void 0===e?"undefined":i(e))?o[t]||"object":void 0===e?"undefined":i(e)},r=function(e){return"function"==typeof e},s=function(e){return"number"==typeof e&&isFinite(e)||!isNaN(e-parseFloat(e))};t.isBoolean=function(e){return"boolean"==typeof e},t.isExponential=function(e){return s(e)&&-1!==e.toString().indexOf("e")},t.isDate=function(e){return"date"===a(e)},t.isDefined=function(e){return null!=e},t.isFunction=r,t.isString=function(e){return"string"==typeof e},t.isNumeric=s,t.isObject=function(e){return"object"===a(e)},t.isEmptyObject=function(e){var t;for(t in e)return!1;return!0},t.isPlainObject=function(e){if(!e||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e),n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&Object.toString.call(n)===Object.toString.call(Object)},t.isPrimitive=function(e){return-1===["object","array","function"].indexOf(a(e))},t.isWindow=function(e){return null!=e&&e===e.window},t.isRenderer=function(e){return!(!e.jquery&&!e.dxRenderer)},t.isPromise=function(e){return e&&r(e.then)},t.isDeferred=function(e){return e&&r(e.done)&&r(e.fail)},t.type=a},function(e,t,n){var i=n(212);e.exports=i.get()},function(e,t,n){t.map=function(e,t){if(Array.isArray(e))return e.map(t);var n=[];for(var i in e)n.push(t(e[i],i));return n},t.each=function(e,t){if(e){if("length"in e)for(var n=0;n<e.length&&!1!==t.call(e[n],n,e[n]);n++);else for(var i in e)if(!1===t.call(e[i],i,e[i]))break;return e}},t.reverseEach=function(e,t){if(e&&"length"in e&&0!==e.length)for(var n=e.length-1;n>=0&&!1!==t.call(e[n],n,e[n]);n--);}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=i(n(27)),r=i(n(42)),s=n(6),l=n(3),u=n(20),c=n(1),d=[],h=[],p=[],f=void 0,g=function(e,t,n){if(f&&f!==e)return d.push(t),h.push(e),n=n||new s.Deferred,p.push(n),n;var i=f,o=p.length;f=e;var a=t();return a||(p.length>o?a=s.when.apply(this,p.slice(o)):n&&n.resolve()),f=i,n&&a&&a.done&&a.done(n.resolve).fail(n.reject),!f&&d.length&&("render"===h.shift()?_:m)(d.shift(),p.shift()),a||(0,s.when)()},_=function(e,t){return g("render",e,t)},m=function(e,t){return g("update",e,t)},v=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){var n=!1;return(0,l.each)(e,function(e,i){if(i!==t[e])return n=!0,!1}),!n}return e===t},y=function(e){switch(void 0===e?"undefined":o(e)){case"string":return e.split(/\s+/,2);case"object":return[e.x||e.h,e.y||e.v];case"number":return[e];default:return e}},b=function(e,t,n){return n=n||0,(e=(0,u.toComparable)(e,!0))===(t=(0,u.toComparable)(t,!0))||n>=3||((0,c.isObject)(e)&&(0,c.isObject)(t)?function(e,t,n){for(var i in e)if(e.hasOwnProperty(i)&&!b(e[i],t[i],n+1))return!1;for(var o in t)if(!(o in e))return!1;return!0}(e,t,n):!(!Array.isArray(e)||!Array.isArray(t))&&function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!b(e[i],t[i],n+1))return!1;return!0}(e,t,n))};t.ensureDefined=function(e,t){return(0,c.isDefined)(e)?e:t},t.executeAsync=function(e,t){var n=new s.Deferred,i=t||this,o=void 0,a={promise:n.promise(),abort:function(){clearTimeout(o),n.rejectWith(i)}};return o=(arguments[2]||setTimeout)(function(){var t=e.call(i);t&&t.done&&(0,c.isFunction)(t.done)?t.done(function(){n.resolveWith(i)}):n.resolveWith(i)},"number"==typeof t?t:0),a},t.deferRender=_,t.deferRenderer=function(e){return function(){var t=this;return g("render",function(){return e.call(t)})}},t.deferUpdate=m,t.deferUpdater=function(e){return function(){var t=this;return g("update",function(){return e.call(t)})}},t.pairToObject=function(e){var t=y(e),n=parseInt(t&&t[0],10),i=parseInt(t&&t[1],10);return isFinite(n)||(n=0),isFinite(i)||(i=n),{h:n,v:i}},t.splitPair=y,t.findBestMatches=function(e,t,n){var i=[],o=0;return(0,l.each)(t,function(t,a){var r=0,s=n?n(a):a;(0,l.each)(e,function(e,t){var n=s[e];if(void 0!==n)return v(n,t)?void r++:(r=-1,!1)}),r<o||(r>o&&(i.length=0,o=r),i.push(a))}),i},t.normalizeKey=function(e){var t=(0,c.isString)(e)?e:e.toString(),n=t.match(/[^a-zA-Z0-9_]/g);return n&&(0,l.each)(n,function(e,n){t=t.replace(n,"__"+n.charCodeAt()+"__")}),t},t.denormalizeKey=function(e){var t=e.match(/__\d+__/g);return t&&t.forEach(function(t){var n=parseInt(t.replace("__",""));e=e.replace(t,String.fromCharCode(n))}),e},t.equalByValue=b,t.getKeyHash=function(e){if(e instanceof r.default)return e.toString();if((0,c.isObject)(e)||Array.isArray(e))try{var t=JSON.stringify(e);return"{}"===t?e:t}catch(t){return e}return e},t.escapeRegExp=function(e){return e.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},t.applyServerDecimalSeparator=function(e){var t=(0,a.default)().serverDecimalSeparator;return(0,c.isDefined)(e)&&(e=e.toString().replace(".",t)),e},t.noop=function(){},t.asyncNoop=function(){return(new s.Deferred).resolve().promise()},t.grep=function(e,t,n){for(var i=[],o=!n,a=0;a<e.length;a++)!!t(e[a],a)===o&&i.push(e[a]);return i}},function(e,t,n){var i,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=n(113),r=n(0).extend,s=n(12),l=n(7),u=l.getWindow(),c=n(52),d=n(1),h=n(25),p=d.isWindow,f=d.isFunction,g=d.isString,_=n(21),m=n(176),v=n(213),y="dxEmptyEventType",b={mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},x={focusin:"focus",focusout:"blur"},w=["blur","focusout","focus","focusin","load"],C=["touchmove","wheel","mousewheel"],k=function(e,t){return!p(e)&&"#document"!==e.nodeName&&s.elementMatches(e,t)},S=new m,I=0,T=function(){var e={};return a.add(function(t,n){e[t]=n}),{getField:function(t,n){return e[t]&&e[t][n]},callMethod:function(t,n,i,o){return e[t]&&e[t][n]&&e[t][n].apply(i,o)}}}(),D=function e(t,n){var i=t[0];if(i)if(s.isNode(i)||p(i))n.apply(L,t);else{if(g(i)||!("length"in i))throw _.Error("E0025");var o=Array.prototype.slice.call(t,0);Array.prototype.forEach.call(i,function(t){o[0]=t,e(o,n)})}},E=function(e){return function(){D(arguments,e)}},A=function(e,t){var n=S.get(e),o=(t=t||"").split("."),a=o.slice(1),r=!!o[0];t=o[0]||y,n||(n={},S.set(e,n)),n[t]||(n[t]={handleObjects:[],nativeHandler:null});var l=n[t];return{addHandler:function(n,o,u){var c=function(i,o){var a,r,s=[i],l=i.currentTarget,c=i.relatedTarget;t in b&&(a=c&&l&&(c===l||l.contains(c))),void 0!==o&&s.push(o),T.callMethod(t,"handle",e,[i,u]),a||(r=n.apply(l,s)),!1===r&&(i.preventDefault(),i.stopPropagation())},d={handler:n,wrappedHandler:function(t,n){if(!i||t.type!==i)if(t.data=u,t.delegateTarget=e,o)for(var a=t.target;a&&a!==e;)k(a,o)&&(t.currentTarget=a,c(t,n)),a=a.parentNode;else c(t,n)},selector:o,type:t,data:u,namespace:a.join("."),namespaces:a,guid:++I};l.handleObjects.push(d);var h,p=1===l.handleObjects.length&&r;p&&(p=!T.callMethod(t,"setup",e,[u,a,n])),p&&(l.nativeHandler=O(t),C.indexOf(t)>-1&&(h={passive:!1}),l.removeListener=s.listen(e,b[t]||t,l.nativeHandler,h)),T.callMethod(t,"add",e,[d])},removeHandler:function(i,o){var s=function(t){var r,s=n[t];s.handleObjects.length?(s.handleObjects=s.handleObjects.filter(function(n){var s=a.length&&!P(n.namespaces,a)||i&&n.handler!==i||o&&n.selector!==o;return s||(r=n.handler,T.callMethod(t,"remove",e,[n])),s}),!s.handleObjects.length&&t!==y&&(T.callMethod(t,"teardown",e,[a,r]),s.nativeHandler&&s.removeListener(),delete n[t])):delete n[t]};if(r)s(t);else for(var l in n)s(l);0===Object.keys(n).length&&S.delete(e)},callHandlers:function(e,t){var i=!1,o=function(n){i||a.length&&!P(n.namespaces,a)||(n.wrappedHandler(e,t),i=e.isImmediatePropagationStopped())};l.handleObjects.forEach(o),a.length&&n[y]&&n[y].handleObjects.forEach(o)}}},O=function(e){return function(t,n){var i=A(this,e);t=L.Event(t),i.callHandlers(t,n)}},P=function(e,t){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])<0)return!1;return!0},B=function(e){return function(t,n,i,o,a){a||(a=o,o=void 0),"string"!=typeof i&&(o=i,i=void 0),a||"string"!=typeof n||(a=o||i,i=void 0,o=void 0),e(t,n,i,o,a)}},M=function(e){return function(t,n,i){"string"==typeof n&&(n={type:n}),n.target||(n.target=t),n.currentTarget=t,n.delegateTarget||(n.delegateTarget=t),!n.type&&n.originalEvent&&(n.type=n.originalEvent.type),e(t,n instanceof L.Event?n:L.Event(n),i)}},R=function(e){var t=function(t,n){if(n&&n.indexOf(" ")>-1){var i=Array.prototype.slice.call(arguments,0);n.split(" ").forEach(function(t){i[1]=t,e.apply(this,i)})}else e.apply(this,arguments)};return function(e,n){if("object"===(void 0===n?"undefined":o(n))){var i=Array.prototype.slice.call(arguments,0);for(var a in n)i[1]=a,i[i.length-1]=n[a],t.apply(this,i)}else t.apply(this,arguments)}},F=function(e,t){var n=x[e]||e;(function(e,t){return"click"===e&&"a"===t.localName})(e,t)||f(t[n])&&(i=e,t[n](),i=void 0)},V=function(e){if(function(e){return null==e.which&&0===e.type.indexOf("key")}(e))return null!=e.charCode?e.charCode:e.keyCode;if(function(e){return!e.which&&void 0!==e.button&&/^(?:mouse|pointer|contextmenu|drag|drop)|click/.test(e.type)}(e)){return{1:1,2:3,3:1,4:2}[e.button]}return e.which},L=c({on:E(B(R(function(e,t,n,i,o){A(e,t).addHandler(o,n,i)}))),one:E(B(function(e,t,n,i,o){L.on(e,t,n,i,function i(){L.off(e,t,n,i),o.apply(this,arguments)})})),off:E(function(e){return function(t,n,i,o){"function"==typeof i&&(o=i,i=void 0),e(t,n,i,o)}}(R(function(e,t,n,i){A(e,t).removeHandler(i,n)}))),trigger:E(M(function(e,t,n){var i=t.type,o=A(e,t.type);if(T.callMethod(i,"trigger",e,[t,n]),o.callHandlers(t,n),!(T.getField(i,"noBubble")||t.isPropagationStopped()||-1!==w.indexOf(i))){var a=[];(function e(t){var n=t.parentNode;n&&(a.push(n),e(n))})(e),a.push(u);for(var s=0;a[s]&&!t.isPropagationStopped();){A(a[s],t.type).callHandlers(r(t,{currentTarget:a[s]}),n),s++}}(e.nodeType||p(e))&&(T.callMethod(i,"_default",e,[t,n]),F(i,e))})),triggerHandler:E(M(function(e,t,n){A(e,t.type).callHandlers(t,n)}))}),H=function(e){e&&(L.Event=e,L.Event.prototype=e.prototype)};H(function(e){return function(t,n){return this instanceof L.Event?(t||(t={}),"string"==typeof t&&(t={type:t}),n||(n={}),void e.call(this,t,n)):new L.Event(t,n)}}(function(e,t){var n=this,i=!1,o=!1,a=!1;r(n,e),(e instanceof L.Event||l.hasWindow()&&e instanceof u.Event)&&(n.originalEvent=e,n.currentTarget=void 0),e instanceof L.Event||r(n,{isPropagationStopped:function(){return!!(i||n.originalEvent&&n.originalEvent.propagationStopped)},stopPropagation:function(){i=!0,n.originalEvent&&n.originalEvent.stopPropagation()},isImmediatePropagationStopped:function(){return o},stopImmediatePropagation:function(){this.stopPropagation(),o=!0,n.originalEvent&&n.originalEvent.stopImmediatePropagation()},isDefaultPrevented:function(){return!!(a||n.originalEvent&&n.originalEvent.defaultPrevented)},preventDefault:function(){a=!0,n.originalEvent&&n.originalEvent.preventDefault()}}),z("which",V,n),0===e.type.indexOf("touch")&&(delete t.pageX,delete t.pageY),r(n,t),n.guid=++I}));var z=function(e,t,n){Object.defineProperty(n||L.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})}})};v(z);var N=h(),$=h();L.set=function(e){N.fire(),L.inject(e),H(e.Event),$.fire()},L.subscribeGlobal=function(){D(arguments,B(function(){var e=arguments;L.on.apply(this,e),N.add(function(){var t=Array.prototype.slice.call(e,0);t.splice(3,1),L.off.apply(this,t)}),$.add(function(){L.on.apply(this,e)})}))},L.forcePassiveFalseEventNames=C,e.exports=L},function(e,t,n){var i=n(1),o=i.isPromise,a=i.isDeferred,r=n(0).extend,s=n(25),l=[{method:"resolve",handler:"done",state:"resolved"},{method:"reject",handler:"fail",state:"rejected"},{method:"notify",handler:"progress"}],u=function(){var e=this;this._state="pending",this._promise={},l.forEach(function(t){var n=t.method;this[n+"Callbacks"]=new s,this[n]=function(){return this[n+"With"](this._promise,arguments)}.bind(this),this._promise[t.handler]=function(t){if(!t)return this;var i=e[n+"Callbacks"];return i.fired()?t.apply(e[n+"Context"],e[n+"Args"]):i.add(function(e,n){t.apply(e,n)}.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 n=new u;return["done","fail"].forEach(function(i){var r="done"===i?e:t;this[i](function(){if(r){var e=r&&r.apply(this,arguments);a(e)?e.done(n.resolve).fail(n.reject):o(e)?e.then(n.resolve,n.reject):n.resolve.apply(this,e?[e]:arguments)}else n["done"===i?"resolve":"reject"].apply(this,arguments)})}.bind(this)),n.promise()},this._promise.state=function(){return e._state},this._promise.promise=function(t){return t?r(t,e._promise):e._promise},this._promise.promise(this)};l.forEach(function(e){var t=e.method,n=e.state;u.prototype[t+"With"]=function(e,i){var o=this[t+"Callbacks"];return"pending"===this.state()&&(this[t+"Args"]=i,this[t+"Context"]=e,n&&(this._state=n),o.fire(e,i)),this}}),t.fromPromise=function(e,t){if(a(e))return e;if(o(e)){var n=new u;return e.then(function(){n.resolveWith.apply(n,[t].concat([[].slice.call(arguments)]))},function(){n.rejectWith.apply(n,[t].concat([[].slice.call(arguments)]))}),n}return(new u).resolveWith(t,[e])};var c=function(){if(1===arguments.length)return t.fromPromise(arguments[0]);for(var e=[].slice.call(arguments),n=[],i=0,o=new u,r=function(t){return function(a){n[t]=this,e[t]=arguments.length>1?[].slice.call(arguments):a,++i===e.length&&o.resolveWith(n,e)}},s=0;s<e.length;s++)a(e[s])?e[s].promise().done(r(s)).fail(o.reject):i++;return i===e.length&&o.resolveWith(n,e),o.promise()};t.setStrategy=function(e){u=e.Deferred,c=e.when},t.Deferred=function(){return new u},t.when=function(){return c.apply(this,arguments)}},function(e,t,n){var i=n(12),o="undefined"!=typeof window,a=o&&window;a||((a={}).window=a),e.exports={hasWindow:function(){return o},getWindow:function(){return a},hasProperty:function(e){return this.hasWindow()&&e in a},defaultScreenFactorFunc:function(e){return e<768?"xs":e<992?"sm":e<1200?"md":"lg"},getCurrentScreenFactor:function(e){return(e||this.defaultScreenFactorFunc)(i.getDocumentElement().clientWidth)},getNavigator:function(){return this.hasWindow()?a.navigator:{userAgent:""}}}},function(e,t,n){var i=n(2),o=n(149),a=n(21),r=n(126);o.add(function(e,t){i.fn[e]=function(n){var i;if("string"==typeof n){var o=n,r=[].slice.call(arguments).slice(1);this.each(function(){var n=t.getInstance(this);if(!n)throw a.Error("E0009",e);var s=n[o].apply(n,r);void 0===i&&(i=s)})}else this.each(function(){var e=t.getInstance(this);e?e.option(n):new t(this,n)}),i=this;return i}}),e.exports=function(e,t,n){n?t[e]=n:n=t,r.name(n,e),o.fire(e,n)}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(5)),r=i(n(21)),s=n(64),l=n(0),u=n(3),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",left:"leftArrow",up:"upArrow",right:"rightArrow",down:"downArrow",multiply:"asterisk",spacebar:"space",del:"del",subtract:"minus"},d={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"},h=function(){var e={dx:/^dx/i,mouse:/(mouse|wheel)/i,touch:/^touch/i,keyboard:/^key/i,pointer:/^(ms)?pointer/i};return function(t){var n="other";return(0,u.each)(e,function(e){if(this.test(t.type))return n=e,!1}),n}}(),p=function(e){return"dx"===h(e)},f=function(e){return"touch"===h(e)},g=function(e){return"pointer"===h(e)},_=function(e){return function(e){return"mouse"===h(e)}(e)||(g(e)||p(e))&&"mouse"===e.pointerType},m=function(e){return f(e)||(g(e)||p(e))&&"touch"===e.pointerType},v=function(e){return e},y=function(e,t){var n=function(e){return v(a.default.Event(e,e),e)}(e);return t&&(0,l.extend)(n,t),n};e.exports={eventSource:h,isPointerEvent:g,isMouseEvent:_,isTouchEvent:m,isKeyboardEvent:function(e){return"keyboard"===h(e)},isFakeClickEvent:function(e){return 0===e.screenX&&!e.offsetX&&0===e.pageX},hasTouches:function(e){return f(e)?(e.originalEvent.touches||[]).length:p(e)?(e.pointers||[]).length:0},eventData:function(e){return{x:e.pageX,y:e.pageY,time:e.timeStamp}},eventDelta:function(e,t){return{x:t.x-e.x,y:t.y-e.y,time:t.time-e.time||1}},needSkipEvent:function(e){var t=e.target,n=(0,o.default)(t),i=n.is("input, textarea, select");if(n.is(".dx-skip-gesture-event *, .dx-skip-gesture-event"))return!0;if("dxmousewheel"===e.type){var a=t.isContentEditable&&n.closest("div[contenteditable='true']").is(":focus");return n.is("input[type='number'], textarea, select")&&n.is(":focus")||a}return _(e)?i||e.which>1:m(e)?i&&(0,s.focused)(n):void 0},createEvent:y,fireEvent:function(e){var t=y(e.originalEvent,e);return a.default.trigger(e.delegateTarget||t.target,t),t},addNamespace:function e(t,n){if(!n)throw r.default.Error("E0017");return"string"==typeof t?-1===t.indexOf(" ")?t+"."+n:e(t.split(/\s+/g),n):((0,u.each)(t,function(e,i){t[e]=i+"."+n}),t.join(" "))},setEventFixMethod:function(e){v=e},normalizeKeyName:function(e){var t=!!e.key,n=t?e.key:e.which;if(n)return t?c[n.toLowerCase()]||n:d[n]||String.fromCharCode(n)},getChar:function(e){return e.key||String.fromCharCode(e.which)}}},function(e,t,n){var i,o=n(2),a=n(27),r=n(12),s=n(7).getWindow(),l=n(5),u=n(13).inArray,c=n(1),d=c.isDefined,h=c.isRenderer,p=n(214),f=function(e){var t=".dx-visibility-change-handler";return function(n){for(var i=o(n||"body"),a=i.filter(t).add(i.find(t)),r=0;r<a.length;r++)l.triggerHandler(a[r],e)}},g=function(){var e=0;return function(t){return(t||"")+e++}}(),_="data-options",m=function(e){var t=o(e).attr(_)||"";return a().optionsParser(t)},v=function(e){i=e};v(function(e){return e&&e.get(0)}),t.setPublicElementWrapper=v,t.resetActiveElement=function(){var e=r.getActiveElement();e&&e!==r.getBody()&&e.blur&&e.blur()},t.createMarkupFromString=function(e){if(!s.WinJS)return o(p.parseHTML(e));var t=o("<div>");return s.WinJS.Utilities.setInnerHTMLUnsafe(t.get(0),e),t.contents()},t.triggerShownEvent=f("dxshown"),t.triggerHidingEvent=f("dxhiding"),t.triggerResizeEvent=f("dxresize"),t.getElementOptions=m,t.createComponents=function(e,t){var n=[],i="["+_+"]";return e.find(i).add(e.filter(i)).each(function(e,i){var a=o(i),r=m(i);for(var s in r)(!t||u(s,t)>-1)&&a[s]&&(a[s](r[s]),n.push(a[s]("instance")))}),n},t.extractTemplateMarkup=function(e){var t=(e=o(e)).length&&e.filter(function(){var e=o(this);return e.is("script[type]")&&e.attr("type").indexOf("script")<0});return t.length?t.eq(0).html():(e=o("<div>").append(e)).html()},t.normalizeTemplateElement=function e(t){var n=d(t)&&(t.nodeType||h(t))?o(t):o("<div>").html(t).contents();return 1===n.length&&(n.is("script")?n=e(n.html().trim()):n.is("table")&&(n=n.children("tbody").contents())),n},t.clearSelection=function(){var e=s.getSelection();if(e&&"Caret"!==e.type)if(e.empty)e.empty();else if(e.removeAllRanges)try{e.removeAllRanges()}catch(e){}},t.uniqueId=g,t.closestCommonParent=function(e,t){var n=o(e),i=o(t);if(n[0]===i[0])return n[0];for(var a=n.parents(),r=i.parents(),s=-Math.min(a.length,r.length);s<0;s++)if(a.get(s)===r.get(s))return a.get(s)},t.clipboardText=function(e,t){var n=e.originalEvent&&e.originalEvent.clipboardData||s.clipboardData;return 1===arguments.length?n&&n.getData("Text"):void(n&&n.setData("Text",t))},t.toggleAttr=function(e,t,n){n?e.attr(t,n):e.removeAttr(t)},t.contains=function(e,t){return!!t&&(t=r.isTextNode(t)?t.parentNode:t,r.isDocument(e)?e.documentElement.contains(t):e.contains(t))},t.getPublicElement=function(e){return i(e)}},function(e,t,n){function i(e,t){for(var n,i=0,o=e.length,a=[];i<o;)null!==(n=t(e[i],i))&&a.push(n),i++;return a}function o(e,t){return i(t,function(t){return e[t]?e[t]:null})}function a(e,t,n,i){var o=i;return f(t,function(t,i){e[i]&&(e[i]-=n,o-=n)}),o}function r(e){return String(e).toLowerCase()}function s(e){return e&&(e.originalTop=e.top,e.originalBottom=e.bottom,e.originalLeft=e.left,e.originalRight=e.right),e}function l(e){return-k<e&&e<+k?e:0}function u(e){var t=l(O(e.x)),n=l(O(e.y)),i={x:t,y:n,width:l(P(e.width+e.x))-t,height:l(P(e.height+e.y))-n};return i.isEmpty=!(i.x||i.y||i.width||i.height),i}function c(e,t){return"datetime"===e.dataType?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return new Date(e.getTime()+n*t)}:"logarithmic"===e.axisType?function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=F(t,e.base)+i*n;return V(o,e.base)}:function(e,n){var i=e+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)*n;return t&&i*e<=0?0:i}}var d=n(4).noop,h=n(1),p=n(0).extend,f=n(3).each,g=n(29).adjust,_=n(22).dateToMilliseconds,m=h.isDefined,v=h.isNumeric,y=h.isExponential,b=Math,x=b.round,w=Math.sqrt,C=Math.PI,k=1e10,S=C/180,I=Math.LN10,T=Math.cos,D=Math.sin,E=Math.abs,A=Math.log,O=Math.floor,P=Math.ceil,B=Math.max,M=isNaN,R=Number,F=function(e,t){return e?Math.log(e)/Math.log(t):NaN},V=function(e,t){return Math.pow(t,e)},L=function(e){return(e%360+360)%360},H=function(e){return C*e/180},z=function(e){var t=H(e);return{cos:T(t),sin:D(t)}},N=function(e,t,n,i){var o=n-e,a=i-t;return Math.sqrt(a*a+o*o)},$=function(e){var t,n=E(e);return M(n)?NaN:n>0?(n=A(n)/I,(t=P(n))-n<1e-14?t:O(n)):0};p(t,{decreaseGaps:function(e,t,n){var i;do{(i=o(e,t)).push(b.ceil(n/i.length)),n=a(e,t,b.min.apply(null,i),n)}while(n>0&&i.length>1);return n},normalizeEnum:r,parseScalar:function(e,t){return void 0!==e?e:t},enumParser:function(e){var t,n,i={};for(t=0,n=e.length;t<n;++t)i[r(e[t])]=1;return function(e,t){var n=r(e);return i[n]?n:t}},patchFontOptions:function(e){var t={};return f(e||{},function(e,n){/^(cursor|opacity)$/i.test(e)||(e="color"===e?"fill":"font-"+e),t[e]=n}),t},convertPolarToXY:function(e,t,n,i){var o;return n=m(n)?n+t-90:0,o=z(n),{x:x(e.x+i*o.cos),y:x(e.y+i*o.sin)}},convertXYToPolar:function(e,t,n){var i=N(e.x,e.y,t,n),o=b.atan2(n-e.y,t-e.x);return{phi:x(L(180*o/b.PI)),r:x(i)}},processSeriesTemplate:function(e,t){var n,o,a,r=h.isFunction(e.customizeSeries)?e.customizeSeries:d,s=e.nameField,l={},u=[],c=0;for(o=(t=t||[]).length;c<o;c++)s in(a=t[c])&&((n=l[a[s]])||(n=l[a[s]]={name:a[s],nameFieldValue:a[s]},u.push(n.name)));return i(u,function(e){var t=l[e];return p(t,r.call(null,t.name))})},getCategoriesInfo:function(e,t,n){if(0===e.length)return{categories:[]};t=m(t)?t:e[0],n=m(n)?n:e[e.length-1];var o,a,r,s=i(e,function(e){return m(e)?e.valueOf():null}),l=s.indexOf(t.valueOf()),u=s.indexOf(n.valueOf()),c=!1;return l<0&&(l=0),u<0&&(u=e.length-1),u<l&&(a=u,u=l,l=a,c=!0),r=(o=e.slice(l,u+1)).length-1,{categories:o,start:o[c?r:0],end:o[c?0:r],inverted:c}},setCanvasValues:s,updatePanesCanvases:function(e,t,n){var i=0;f(e,function(e,t){t.weight=t.weight||1,i+=t.weight});var o=0,a=e.padding||10,r=n?t.width-t.left-t.right:t.height-t.top-t.bottom,l=(r-a*(e.length-1))/i,u=n?"left":"top",c=n?"right":"bottom";f(e,function(e,n){var i=x(n.weight*l);n.canvas=n.canvas||{},p(n.canvas,t),n.canvas[u]=t[u]+o,n.canvas[c]=t[c]+(r-i-o),o=o+i+a,s(n.canvas)})},unique:function(e){var t={};return i(e,function(e){var n=t[e]?null:e;return t[e]=!0,n})},map:i,getVerticallyShiftedAngularCoords:function(e,t,n){var i=e.x+e.width/2>=n.x,o=(i?e.x:e.x+e.width)-n.x,a=e.y-n.y,r=a+t,s=x(w(o*o+a*a-r*r)),l=(i?+s:-s)||o;return{x:n.x+(i?l:l-e.width),y:e.y+t}},mergeMarginOptions:function(e,t){return{checkInterval:e.checkInterval||t.checkInterval,size:Math.max(e.size||0,t.size||0),percentStick:e.percentStick||t.percentStick,sizePointNormalState:Math.max(e.sizePointNormalState||0,t.sizePointNormalState||0)}}}),t.getVizRangeObject=function(e){return Array.isArray(e)?{startValue:e[0],endValue:e[1]}:e||{}},t.convertVisualRangeObject=function(e,t){return t?e:[e.startValue,e.endValue]},t.adjustVisualRange=function(e,n,i,o){var a=h.isDefined(n.startValue),r=h.isDefined(n.endValue),s="discrete"!==e.axisType;o=o||i;var l=c(e,!1),u=a?n.startValue:o.min,d=r?n.endValue:o.max,p=n.length,f=o.categories;if(s&&!h.isDefined(u)&&!h.isDefined(d))return{startValue:u,endValue:d};if(m(p))if(s)"datetime"!==e.dataType||v(p)||(p=_(p)),r&&!a||!r&&!a?(m(i.max)&&(d=d>i.max?i.max:d),u=l(d,p,-1)):a&&!r&&(m(i.min)&&(u=u<i.min?i.min:u),d=l(u,p));else if(p=parseInt(p),!isNaN(p)&&isFinite(p))if(p--,r||a){if(a&&!r)d=t.getCategoriesInfo(f,u,void 0).categories[p];else if(!a&&r){var g=t.getCategoriesInfo(f,void 0,d);u=g.categories[g.categories.length-1-p]}}else d=f[f.length-1],u=f[f.length-1-p];return s&&(m(i.max)&&d>i.max&&(d=i.max),m(i.min)&&u<i.min&&(u=i.min)),{startValue:u,endValue:d}},t.getAddFunction=c,t.getLog=F,t.getAdjustedLog10=function(e){return g(F(e,10))},t.raiseTo=V,t.normalizeAngle=L,t.convertAngleToRendererSpace=function(e){return 90-e},t.degreesToRadians=H,t.getCosAndSin=z,t.getDecimalOrder=$,t.getAppropriateFormat=function(e,t,n){var i,o=B($(e),$(t)),a=-$(E(t-e)/n);return M(o)||M(a)?null:(E(o)<=4?(i="fixedPoint",a<0&&(a=0),a>4&&(a=4)):(i="exponential",(a+=o-1)>3&&(a=3)),{type:i,precision:a})},t.getDistance=N,t.roundValue=function(e,t){if(t>20&&(t=20),v(e))return R(y(e)?e.toExponential(t):e.toFixed(t))},t.getPower=function(e){return e.toExponential().split("e")[1]},t.rotateBBox=function(e,t,n){var i=R(T(n*S).toFixed(3)),o=R(D(n*S).toFixed(3)),a=e.width/2,r=e.height/2,s=e.x+a,l=e.y+r,c=E(a*i)+E(r*o),d=E(a*o)+E(r*i);return u({x:t[0]+(s-t[0])*i+(l-t[1])*o-c,y:t[1]-(s-t[0])*o+(l-t[1])*i-d,width:2*c,height:2*d})},t.normalizeBBox=u},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(52),a=n(4).noop,r={querySelectorAll:function(e,t){return e.querySelectorAll(t)},elementMatches:function(e,t){return(e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(t){var n=e.document||e.ownerDocument;if(!n)return!1;for(var i=this.querySelectorAll(n,t),o=0;o<i.length;o++)if(i[o]===e)return!0}.bind(this)).call(e,t)},createElement:function(e,t){return(t=t||this._document).createElement(e)},createElementNS:function(e,t,n){return(n=n||this._document).createElementNS(e,t)},createTextNode:function(e,t){return(t=t||this._document).createTextNode(e)},isNode:function(e){return"object"===(void 0===e?"undefined":i(e))&&"nodeType"in e},isElementNode:function(e){return e&&e.nodeType===Node.ELEMENT_NODE},isTextNode:function(e){return e&&e.nodeType===Node.TEXT_NODE},isDocument:function(e){return e&&e.nodeType===Node.DOCUMENT_NODE},removeElement:function(e){var t=e&&e.parentNode;t&&t.removeChild(e)},insertElement:function(e,t,n){e&&t&&e!==t&&(n?e.insertBefore(t,n):e.appendChild(t))},getAttribute:function(e,t){return e.getAttribute(t)},setAttribute:function(e,t,n){e.setAttribute(t,n)},removeAttribute:function(e,t){e.removeAttribute(t)},setProperty:function(e,t,n){e[t]=n},setText:function(e,t){e&&(e.textContent=t)},setClass:function(e,t,n){if(1===e.nodeType&&t)if(e.classList)n?e.classList.add(t):e.classList.remove(t);else{var i,o="string"==typeof e.className,a=o?e.className:this.getAttribute(e,"class")||"",r=a.split(" "),s=r.indexOf(t);n&&s<0&&(i=a?a+" "+t:t),!n&&s>=0&&(r.splice(s,1),i=r.join(" ")),void 0!==i&&(o?e.className=i:this.setAttribute(e,"class",i))}},setStyle:function(e,t,n){e.style[t]=n||""},_document:"undefined"==typeof document?void 0:document,getDocument:function(){return this._document},getActiveElement:function(){return this._document.activeElement},getBody:function(){return this._document.body},createDocumentFragment:function(){return this._document.createDocumentFragment()},getDocumentElement:function(){return this._document.documentElement},getLocation:function(){return this._document.location},getSelection:function(){return this._document.selection},getReadyState:function(){return this._document.readyState},getHead:function(){return this._document.head},hasDocumentProperty:function(e){return e in this._document},listen:function(e,t,n,i){return e&&"addEventListener"in e?(e.addEventListener(t,n,i),function(){e.removeEventListener(t,n)}):a}};e.exports=o(r)},function(e,t,n){var i=n(1).isDefined,o=n(3).each,a=n(48),r=n(27),s=function(e,t){return t?(Array.isArray(t)?t:t.toArray()).indexOf(e):-1};t.isEmpty=function(e){return Array.isArray(e)&&!e.length},t.wrapToArray=function(e){return Array.isArray(e)?e:[e]},t.intersection=function(e,t){if(!Array.isArray(e)||0===e.length||!Array.isArray(t)||0===t.length)return[];var n=[];return o(e,function(e,i){-1!==s(i,t)&&n.push(i)}),n},t.removeDuplicates=function(e,t){if(!Array.isArray(e)||0===e.length)return[];if(!Array.isArray(t)||0===t.length)return e.slice();var n=[];return o(e,function(e,i){-1===s(i,t)&&n.push(i)}),n},t.normalizeIndexes=function(e,t,n,s){var l={},u=0,c=r().useLegacyVisibleIndex;return o(e,function(e,i){(e=i[t])>=0?(l[e]=l[e]||[],i===n?l[e].unshift(i):l[e].push(i)):i[t]=void 0}),c||o(e,function(){if(!i(this[t])&&(!s||s(this))){for(;l[u];)u++;l[u]=[this],u++}}),u=0,a.orderEach(l,function(e,n){o(n,function(){e>=0&&(this[t]=u++)})}),c&&o(e,function(){i(this[t])||s&&!s(this)||(this[t]=u++)}),u},t.inArray=s,t.merge=function(e,t){for(var n=0;n<t.length;n++)e[e.length]=t[n];return e},t.find=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}},function(e,t,n){var i=n(21),o=n(1),a=function(e,t,n){return function(){var i=this.callBase;this.callBase=e[t];try{return n.apply(this,arguments)}finally{this.callBase=i}}},r=function(e){var t,n,i,o=this;if(!e)return o;for(n in e)i=e[n],t="function"==typeof o.prototype[n]&&"function"==typeof i,o.prototype[n]=t?a(o.parent.prototype,n,i):i;return o},s=function(){var e,t,n,i=this;for(!i.hasOwnProperty("_includedCtors")&&!i.hasOwnProperty("_includedPostCtors")&&(i._includedCtors=i._includedCtors.slice(0),i._includedPostCtors=i._includedPostCtors.slice(0)),n=0;n<arguments.length;n++)for(t in(e=arguments[n]).ctor&&i._includedCtors.push(e.ctor),e.postCtor&&i._includedPostCtors.push(e.postCtor),e)"ctor"!==t&&"postCtor"!==t&&(i.prototype[t]=e[t]);return i},l=function(e){return this.parent===e||!(!this.parent||!this.parent.subclassOf)&&this.parent.subclassOf(e)},u=function(){throw i.Error("E0001")},c=function(){var e=Object.prototype.hasOwnProperty;return function(t,n){for(var i in t){if(!e.call(t,i))return;n[i]=t[i]}}}(),d=function(){};d.inherit=function(e){var t=function(){if(!this||o.isWindow(this)||"function"!=typeof this.constructor)throw i.Error("E0003");var e,t=this,n=t.ctor,a=t.constructor._includedCtors,r=t.constructor._includedPostCtors;for(e=0;e<a.length;e++)a[e].call(t);for(n&&n.apply(t,arguments),e=0;e<r.length;e++)r[e].call(t)};return t.prototype=function(e){var t=function(){};return t.prototype=e.prototype,new t}(this),c(this,t),t.inherit=this.inherit,t.abstract=u,t.redefine=r,t.include=s,t.subclassOf=l,t.parent=this,t._includedCtors=this._includedCtors?this._includedCtors.slice(0):[],t._includedPostCtors=this._includedPostCtors?this._includedPostCtors.slice(0):[],t.prototype.constructor=t,t.redefine(e),t},d.abstract=u,e.exports=d},function(e,t,n){var i=n(2),o=n(52),a=n(0).extend,r=n(3).each,s=n(43).format,l=n(32).humanize,u=n(85);n(85);var c=a(!0,{},n(438)),d=n(439),h=function(e){var t=d[e];return t?"root"!==t&&t:e.substr(0,e.lastIndexOf("-"))},p=function(e,t){return e[t]||{}},f=function(e,t,n){for(var i,o=p(e,t)[n];!o&&!i;)(t=h(t))?o=p(e,t)[n]:i=!0;return o},g={},_=o({_dictionary:c,load:function(e){a(!0,this._dictionary,e)},_localizablePrefix:"@",setup:function(e){this._localizablePrefix=e},localizeString:function(e){var t=this,n=new RegExp("(^|[^a-zA-Z_0-9"+t._localizablePrefix+"-]+)("+t._localizablePrefix+"{1,2})([a-zA-Z_0-9-]+)","g"),i=t._localizablePrefix+t._localizablePrefix;return e.replace(n,function(e,n,o,a){var r,s=t._localizablePrefix+a;return o!==i&&(r=t.format(a)),r||(g[a]=l(a)),n+(r||s)})},_messageLoaded:function(e,t){return void 0!==f(this._dictionary,t||u.locale(),e)},localizeNode:function(e){var t=this;i(e).each(function(e,n){n.nodeType&&(3===n.nodeType?n.nodeValue=t.localizeString(n.nodeValue):i(n).is("iframe")||(r(n.attributes||[],function(e,n){if("string"==typeof n.value){var i=t.localizeString(n.value);n.value!==i&&(n.value=i)}}),i(n).contents().each(function(e,n){t.localizeNode(n)})))})},getMessagesByLocales:function(){return this._dictionary},getDictionary:function(e){return e?g:a({},g,this.getMessagesByLocales()[u.locale()])},getFormatter:function(e){return this._getFormatterBase(e)||this._getFormatterBase(e,"en")},_getFormatterBase:function(e,t){var n=f(this._dictionary,t||u.locale(),e);if(n)return function(){var e=1===arguments.length&&Array.isArray(arguments[0])?arguments[0].slice(0):Array.prototype.slice.call(arguments,0);return e.unshift(n),s.apply(this,e)}},format:function(e){var t=this.getFormatter(e),n=Array.prototype.slice.call(arguments,1);return t&&t.apply(this,n)||""}});e.exports=_},function(e,t,n){var i=n(2),o=n(7),a=o.getNavigator(),r=o.getWindow(),s=n(0).extend,l=n(1).isPlainObject,u=n(3).each,c=n(14),d=n(21),h=n(25),p=n(125),f=n(80),g=n(276).sessionStorage,_=n(76),m=n(27),v={iPhone:"iPhone",iPhone5:"iPhone",iPhone6:"iPhone",iPhone6plus:"iPhone",iPad:"iPad",iPadMini:"iPad Mini",androidPhone:"Android Mobile",androidTablet:"Android",win8:"MSAppHost",win8Phone:"Windows Phone 8.0",msSurface:"Windows ARM Tablet PC",desktop:"desktop",win10Phone:"Windows Phone 10.0",win10:"MSAppHost/3.0"},y={deviceType:"desktop",platform:"generic",version:[],phone:!1,tablet:!1,android:!1,ios:!1,win:!1,generic:!0,grade:"A",mac:!1},b={win:function(e){var t=/windows phone/i.test(e)||e.match(/WPDesktop/),n=!t&&/Windows(.*)arm(.*)Tablet PC/i.test(e),i=!t&&!n&&/msapphost/i.test(e);if(t||n||i){var o=e.match(/windows phone (\d+).(\d+)/i)||e.match(/windows nt (\d+).(\d+)/i),a=[];return o?a.push(parseInt(o[1],10),parseInt(o[2],10)):(o=e.match(/msapphost(\/(\d+).(\d+))?/i))&&a.push(3===parseInt(o[2],10)?10:8),{deviceType:t?"phone":n?"tablet":"desktop",platform:"win",version:a,grade:"A"}}},ios:function(e){if(/ip(hone|od|ad)/i.test(e)){var t=/ip(hone|od)/i.test(e),n=e.match(/os (\d+)_(\d+)_?(\d+)?/i);return{deviceType:t?"phone":"tablet",platform:"ios",version:n?[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3]||0,10)]:[],grade:480===r.screen.height?"B":"A"}}},android:function(e){if(/android|htc_|silk/i.test(e)){var t=/mobile/i.test(e),n=e.match(/android (\d+)\.(\d+)\.?(\d+)?/i),i=n?[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3]||0,10)]:[];return{deviceType:t?"phone":"tablet",platform:"android",version:i,grade:i.length>1&&(i[0]<4||4===i[0]&&i[1]<4)?"B":"A"}}}},x=new(c.inherit({ctor:function(e){this._window=e&&e.window||r,this._realDevice=this._getDevice(),this._currentDevice=void 0,this._currentOrientation=void 0,this.changed=h(),o.hasWindow()&&(this._recalculateOrientation(),p.add(this._recalculateOrientation.bind(this)))},current:function(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:function(){return s({},this._realDevice)},orientation:function(){return this._currentOrientation},isForced:function(){return this._forced},isRippleEmulator:function(){return!!this._window.tinyHippos},_getCssClasses:function(e){var t=[],n=this._realDevice;return(e=e||this.current()).deviceType&&(t.push("dx-device-"+e.deviceType),"desktop"!==e.deviceType&&t.push("dx-device-mobile")),t.push("dx-device-"+n.platform),n.version&&n.version.length&&t.push("dx-device-"+n.platform+"-"+n.version[0]),x.isSimulator()&&t.push("dx-simulator"),m().rtlEnabled&&t.push("dx-rtl"),t},attachCssClasses:function(e,t){this._deviceClasses=this._getCssClasses(t).join(" "),i(e).addClass(this._deviceClasses)},detachCssClasses:function(e){i(e).removeClass(this._deviceClasses)},isSimulator:function(){try{return this._isSimulator||o.hasWindow()&&this._window.top!==this._window.self&&this._window.top["dx-force-device"]||this.isRippleEmulator()}catch(e){return!1}},forceSimulator:function(){this._isSimulator=!0},_getDevice:function(e){if("genericPhone"===e&&(e={deviceType:"phone",platform:"generic",generic:!0}),l(e))return this._fromConfig(e);var t;if(e){if(!(t=v[e]))throw d.Error("E0005")}else t=a.userAgent;return this._fromUA(t)},_getDeviceOrNameFromWindowScope:function(){var e;return o.hasWindow()&&(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:function(){var e=g();if(e){var t=e.getItem("dx-force-device");try{return JSON.parse(t)}catch(e){return t}}},_fromConfig:function(e){var t=s({},y,this._currentDevice,e),n={phone:"phone"===t.deviceType,tablet:"tablet"===t.deviceType,android:"android"===t.platform,ios:"ios"===t.platform,win:"win"===t.platform,generic:"generic"===t.platform};return s(t,n)},_fromUA:function(e){var t;if(u(b,function(n,i){return!(t=i(e))}),t)return this._fromConfig(t);var n=/(mac os)/.test(e.toLowerCase()),i=y;return i.mac=n,i},_changeOrientation:function(){var e=i(this._window),t=e.height()>e.width()?"portrait":"landscape";this._currentOrientation!==t&&(this._currentOrientation=t,this.fireEvent("orientationChanged",[{orientation:t}]))},_recalculateOrientation:function(){var e=i(this._window).width();this._currentWidth!==e&&(this._currentWidth=e,this._changeOrientation())}}).include(f));_.changeCallback.add(function(e,t){x.detachCssClasses(t),x.attachCssClasses(e)}),x.isForced()||"win"!==x.current().platform||x.current({version:[10]}),e.exports=x},function(e,t,n){var i=n(2),o=n(5),a=n(18),r=n(110),s=n(0).extend,l=n(13).inArray,u=n(3).each,c=n(4),d=n(1),h=n(10),p=n(12),f=n(16),g=n(66),_=n(452),m=n(71),v=n(86),y=n(111),b=n(133),x=n(159),w=n(64),C=n(9),k=n(134),S=n(128),I=n(19),T=n(32),D="UIFeedback",E="dx-state-disabled",A="dx-state-focused",O="Focus",P=new v(function(e){var t=e.model.widget;if(t){var n=i("<div>"),o=e.model.options||{};if("button"===t||"tabs"===t||"dropDownMenu"===t){var r=t;t=T.camelize("dx-"+t),a.log("W0001","dxToolbar - 'widget' item field",r,"16.1","Use: '"+t+"' instead")}return e.parent?e.parent._createComponent(n,t,o):n[t](o),n}return i()}),B=g.inherit({_supportedKeys:function(){return{}},_getDefaultOptions:function(){return s(this.callBase(),{disabled:!1,visible:!0,hint:void 0,activeStateEnabled:!1,onContentReady:null,hoverStateEnabled:!1,focusStateEnabled:!1,tabIndex:0,accessKey:null,onFocusIn:null,onFocusOut:null,integrationOptions:{watchMethod:function(e,t,n){return(n=n||{}).skipImmediate||t(e()),c.noop},templates:{"dx-polymorph-widget":P},createTemplate:function(e){return new _(e)}},_keyboardProcessor:void 0})},_feedbackShowTimeout:30,_feedbackHideTimeout:400,_init:function(){this.callBase(),this._tempTemplates=[],this._defaultTemplates={},this._initTemplates(),this._initContentReadyAction()},_initTemplates:function(){this._extractTemplates(),this._extractAnonymousTemplate()},_clearInnerOptionCache:function(e){this[e+"Cache"]={}},_cacheInnerOptions:function(e,t){var n=e+"Cache";this[n]=s(this[n],t)},_getOptionsFromContainer:function(e){var t=e.name,n=e.fullName,i=e.value,o={};t===n?o=i:o[n.split(".").pop()]=i;return o},_innerOptionChanged:function(e,t){var n=this._getOptionsFromContainer(t);e&&e.option(n),this._cacheInnerOptions(t.name,n)},_getInnerOptionsCache:function(e){return this[e+"Cache"]},_initInnerOptionCache:function(e){this._clearInnerOptionCache(e),this._cacheInnerOptions(e,this.option(e))},_bindInnerWidgetOptions:function(e,t){this._options[t]=s({},e.option()),e.on("optionChanged",function(e){this._options[t]=s({},e.component.option())}.bind(this))},_extractTemplates:function(){var e=this.$element().contents().filter("[data-options*='dxTemplate']"),t={};e.each(function(e,n){var o=h.getElementOptions(n).dxTemplate;if(o){if(!o.name)throw a.Error("E0023");i(n).addClass("dx-template-wrapper").detach(),t[o.name]=t[o.name]||[],t[o.name].push(n)}}),u(t,function(e,t){var n=this._findTemplateByDevice(t);n&&this._saveTemplate(e,n)}.bind(this))},_saveTemplate:function(e,t){this.option("integrationOptions.templates")[e]=this._createTemplate(t)},_findTemplateByDevice:function(e){var t=c.findBestMatches(f.current(),e,function(e){return h.getElementOptions(e).dxTemplate})[0];return u(e,function(e,n){n!==t&&i(n).remove()}),t},_extractAnonymousTemplate:function(){var e=this.option("integrationOptions.templates"),t=this._getAnonymousTemplateName(),n=this.$element().contents().detach(),o=n.filter(function(e,t){var n=3===t.nodeType,o=i(t).text().trim().length<1;return!(n&&o)}).length<1;e[t]||o||(e[t]=this._createTemplate(n))},_getAriaTarget:function(){return this._focusTarget()},_getAnonymousTemplateName:function(){return"template"},_getTemplateByOption:function(e){return this._getTemplate(this.option(e))},_getTemplate:function(e){return d.isFunction(e)?new v(function(t){var n=e.apply(this,this._getNormalizedTemplateArgs(t));if(!d.isDefined(n))return new y;var o=!1,a=this._acquireTemplate(n,function(e){return e.nodeType||d.isRenderer(e)&&!i(e).is("script")?new v(function(){return e}):(o=!0,this._createTemplate(e))}.bind(this)),r=a.render(t);return o&&a.dispose&&a.dispose(),r}.bind(this)):this._acquireTemplate(e,this._createTemplateIfNeeded.bind(this))},_acquireTemplate:function(e,t){return null==e?new y:e instanceof b?this._defaultTemplates[e.name]:e instanceof m?e:d.isFunction(e.render)&&!d.isRenderer(e)?this._addOneRenderedCall(e):e.nodeType||d.isRenderer(e)?t(i(e)):"string"==typeof e?this._renderIntegrationTemplate(e)||this._defaultTemplates[e]||t(e):this._acquireTemplate(e.toString(),t)},_addOneRenderedCall:function(e){var t=e.render.bind(e);return s({},e,{render:function(e){var n=t(e);return e&&e.onRendered&&e.onRendered(),n}})},_renderIntegrationTemplate:function(e){var t=this.option("integrationOptions.templates")[e];if(t&&!(t instanceof m)&&!this.option("templatesRenderAsynchronously"))return this._addOneRenderedCall(t);return t},_createTemplateIfNeeded:function(e){var t=function(e){return d.isRenderer(e)&&e[0]||e},n=this._tempTemplates.filter(function(n){return e=t(e),n.source===e})[0];if(n)return n.template;var i=this._createTemplate(e);return this._tempTemplates.push({template:i,source:t(e)}),i},_createTemplate:function(e){return e="string"==typeof e?h.normalizeTemplateElement(e):e,this.option("integrationOptions.createTemplate")(e)},_getNormalizedTemplateArgs:function(e){var t=[];return"model"in e&&t.push(e.model),"index"in e&&t.push(e.index),t.push(e.container),t},_cleanTemplates:function(){this._tempTemplates.forEach(function(e){e.template.dispose&&e.template.dispose()}),this._tempTemplates=[]},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initMarkup:function(){this.$element().addClass("dx-widget"),this._toggleDisabledState(this.option("disabled")),this._toggleVisibility(this.option("visible")),this._renderHint(),this._isFocusable()&&this._renderFocusTarget(),this.callBase()},_render:function(){this.callBase(),this._renderContent(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents()},_renderHint:function(){h.toggleAttr(this.$element(),"title",this.option("hint"))},_renderContent:function(){var e=this;c.deferRender(function(){if(!e._disposed)return e._renderContentImpl()}).done(function(){e._disposed||e._fireContentReadyAction()})},_renderContentImpl:c.noop,_fireContentReadyAction:c.deferRenderer(function(){this._contentReadyAction()}),_dispose:function(){this._cleanTemplates(),this._contentReadyAction=null,this.callBase()},_resetActiveState:function(){this._toggleActiveState(this._eventBindingTarget(),!1)},_clean:function(){this._cleanFocusState(),this._resetActiveState(),this.callBase(),this.$element().empty()},_toggleVisibility:function(e){this.$element().toggleClass("dx-state-invisible",!e),this.setAria("hidden",!e||void 0)},_renderFocusState:function(){this._attachKeyboardEvents(),this._isFocusable()&&(this._renderFocusTarget(),this._attachFocusEvents(),this._renderAccessKey())},_renderAccessKey:function(){var e=this._focusTarget();e.attr("accesskey",this.option("accessKey"));var t=C.addNamespace(I.name,D);o.off(e,t),this.option("accessKey")&&o.on(e,t,function(e){C.isFakeClickEvent(e)&&(e.stopImmediatePropagation(),this.focus())}.bind(this))},_isFocusable:function(){return this.option("focusStateEnabled")&&!this.option("disabled")},_eventBindingTarget:function(){return this.$element()},_focusTarget:function(){return this._getActiveElement()},_getActiveElement:function(){var e=this._eventBindingTarget();return this._activeStateUnit&&(e=e.find(this._activeStateUnit).not("."+E)),e},_renderFocusTarget:function(){this._focusTarget().attr("tabIndex",this.option("tabIndex"))},_keyboardEventBindingTarget:function(){return this._eventBindingTarget()},_detachFocusEvents:function(){var e=this._focusTarget(),t=this.NAME+O,n=C.addNamespace("focusin",t);n=n+" "+C.addNamespace("focusout",t),p.hasDocumentProperty("onbeforeactivate")&&(n=n+" "+C.addNamespace("beforeactivate",t)),o.off(e,n)},_attachFocusEvents:function(){var e=this.NAME+O,t=C.addNamespace("focusin",e),n=C.addNamespace("focusout",e),a=this._focusTarget();if(o.on(a,t,this._focusInHandler.bind(this)),o.on(a,n,this._focusOutHandler.bind(this)),p.hasDocumentProperty("onbeforeactivate")){var r=C.addNamespace("beforeactivate",e);o.on(this._focusTarget(),r,function(e){i(e.target).is(w.focusable)||e.preventDefault()})}},_refreshFocusEvent:function(){this._detachFocusEvents(),this._attachFocusEvents()},_focusInHandler:function(e){var t=this;t._createActionByOption("onFocusIn",{beforeExecute:function(){t._updateFocusState(e,!0)},excludeValidators:["readOnly"]})({event:e})},_focusOutHandler:function(e){var t=this;t._createActionByOption("onFocusOut",{beforeExecute:function(){t._updateFocusState(e,!1)},excludeValidators:["readOnly","disabled"]})({event:e})},_updateFocusState:function(e,t){var n=e.target;-1!==l(n,this._focusTarget())&&this._toggleFocusClass(t,i(n))},_toggleFocusClass:function(e,t){(t&&t.length?t:this._focusTarget()).toggleClass(A,e)},_hasFocusClass:function(e){return i(e||this._focusTarget()).hasClass(A)},_isFocused:function(){return this._hasFocusClass()},_attachKeyboardEvents:function(){var e=this.option("_keyboardProcessor");e?this._keyboardProcessor=e.reinitialize(this._keyboardHandler,this):this.option("focusStateEnabled")&&(this._keyboardProcessor=new x({element:this._keyboardEventBindingTarget(),handler:this._keyboardHandler,focusTarget:this._focusTarget(),context:this}))},_keyboardHandler:function(e){var t=e.originalEvent,n=e.keyName,i=e.which,o=this._supportedKeys(t),a=o[n]||o[i];return void 0===a||(a.bind(this)(t)||!1)},_refreshFocusState:function(){this._cleanFocusState(),this._renderFocusState()},_cleanFocusState:function(){var e=this._focusTarget();this._detachFocusEvents(),this._toggleFocusClass(!1),e.removeAttr("tabIndex"),this._disposeKeyboardProcessor()},_disposeKeyboardProcessor:function(){this._keyboardProcessor&&(this._keyboardProcessor.dispose(),delete this._keyboardProcessor)},_attachHoverEvents:function(){var e=this,t=e._activeStateUnit,n=C.addNamespace(k.start,D),a=C.addNamespace(k.end,D);if(o.off(e._eventBindingTarget(),n,t),o.off(e._eventBindingTarget(),a,t),e.option("hoverStateEnabled")){var s=new r(function(t){e._hoverStartHandler(t.event),e._refreshHoveredElement(i(t.element))},{excludeValidators:["readOnly"]}),l=e._eventBindingTarget();o.on(l,n,t,function(e){s.execute({element:i(e.target),event:e})}),o.on(l,a,t,function(t){e._hoverEndHandler(t),e._forgetHoveredElement()})}else e._toggleHoverClass(!1)},_hoverStartHandler:c.noop,_hoverEndHandler:c.noop,_attachFeedbackEvents:function(){var e,t,n=this,a=n._activeStateUnit,s=C.addNamespace(S.active,D),l=C.addNamespace(S.inactive,D);if(o.off(n._eventBindingTarget(),s,a),o.off(n._eventBindingTarget(),l,a),n.option("activeStateEnabled")){var u=function(e){var t=i(e.element),o=e.value,a=e.event;n._toggleActiveState(t,o,a)};o.on(n._eventBindingTarget(),s,a,{timeout:n._feedbackShowTimeout},function(t){(e=e||new r(u)).execute({element:i(t.currentTarget),value:!0,event:t})}),o.on(n._eventBindingTarget(),l,a,{timeout:n._feedbackHideTimeout},function(e){(t=t||new r(u,{excludeValidators:["disabled","readOnly"]})).execute({element:i(e.currentTarget),value:!1,event:e})})}},_toggleActiveState:function(e,t){this._toggleHoverClass(!t),e.toggleClass("dx-state-active",t)},_refreshHoveredElement:function(e){var t=this._activeStateUnit||this._eventBindingTarget();this._forgetHoveredElement(),this._hoveredElement=e.closest(t),this._toggleHoverClass(!0)},_forgetHoveredElement:function(){this._toggleHoverClass(!1),delete this._hoveredElement},_toggleHoverClass:function(e){this._hoveredElement&&this._hoveredElement.toggleClass("dx-state-hover",e&&this.option("hoverStateEnabled"))},_toggleDisabledState:function(e){this.$element().toggleClass(E,Boolean(e)),this._toggleHoverClass(!e),this.setAria("disabled",e||void 0)},_setWidgetOption:function(e,t){if(this[e]){if(d.isPlainObject(t[0]))return void u(t[0],function(t,n){this._setWidgetOption(e,[t,n])}.bind(this));var n=t[0],i=t[1];1===t.length&&(i=this.option(n));var o=this[e+"OptionMap"];this[e].option(o?o(n):n,i)}},_optionChanged:function(e){switch(e.name){case"disabled":this._toggleDisabledState(e.value),this._refreshFocusState();break;case"hint":this._renderHint();break;case"activeStateEnabled":this._attachFeedbackEvents();break;case"hoverStateEnabled":this._attachHoverEvents();break;case"tabIndex":case"_keyboardProcessor":case"focusStateEnabled":this._refreshFocusState();break;case"onFocusIn":case"onFocusOut":break;case"accessKey":this._renderAccessKey();break;case"visible":var t=e.value;this._toggleVisibility(t),this._isVisibilityChangeSupported()&&this._checkVisibilityChanged(e.value?"shown":"hiding");break;case"onContentReady":this._initContentReadyAction();break;default:this.callBase(e)}},_isVisible:function(){return this.callBase()&&this.option("visible")},beginUpdate:function(){this._ready(!1),this.callBase()},endUpdate:function(){this.callBase(),this._initialized&&this._ready(!0)},_ready:function(e){return 0===arguments.length?this._isReady:void(this._isReady=e)},setAria:function(){var e=function(e){var t="role"===e.name||"id"===e.name?e.name:"aria-"+e.name,n=e.value;n=null==n?void 0:n.toString(),h.toggleAttr(e.target,t,n)};if(d.isPlainObject(arguments[0])){var t=arguments[1]||this._getAriaTarget();u(arguments[0],function(n,i){e({name:n,value:i,target:t})})}else e({name:arguments[0],value:arguments[1],target:arguments[2]||this._getAriaTarget()})},isReady:function(){return this._ready()},repaint:function(){this._refresh()},focus:function(){o.trigger(this._focusTarget(),"focus")},registerKeyHandler:function(e,t){var n=this._supportedKeys(),i={};i[e]=t,this._supportedKeys=function(){return s(n,i)}}});e.exports=B},function(e,t,n){var i=n(124),o=n(21);e.exports=i(o.ERROR_MESSAGES,{E1001:"Module '{0}'. Controller '{1}' is already registered",E1002:"Module '{0}'. Controller '{1}' does not inherit from DevExpress.ui.dxDataGrid.Controller",E1003:"Module '{0}'. View '{1}' is already registered",E1004:"Module '{0}'. View '{1}' does not inherit from DevExpress.ui.dxDataGrid.View",E1005:"Public method '{0}' is already registered",E1006:"Public method '{0}.{1}' does not exist",E1007:"State storing cannot be provided due to the restrictions of the browser",E1010:"The template does not contain the TextBox widget",E1011:'Items cannot be deleted from the List. Implement the "remove" function in the data store',E1012:"Editing type '{0}' with the name '{1}' is unsupported",E1016:"Unexpected type of data source is provided for a lookup column",E1018:"The 'collapseAll' method cannot be called if you use a remote data source",E1019:"Search mode '{0}' is unavailable",E1020:"The type cannot be changed after initialization",E1021:"{0} '{1}' you are trying to remove does not exist",E1022:'The "markers" option is given an invalid value. Assign an array instead',E1023:'The "routes" option is given an invalid value. Assign an array instead',E1025:"This layout is too complex to render",E1026:'The "calculateCustomSummary" function is missing from a field whose "summaryType" option is set to "custom"',E1030:"Unknown ScrollView refresh strategy: '{0}'",E1031:"Unknown subscription in the Scheduler widget: '{0}'",E1032:"Unknown start date in an appointment: '{0}'",E1033:"Unknown step in the date navigator: '{0}'",E1034:"The browser does not implement an API for saving files",E1035:"The editor cannot be created because of an internal error: {0}",E1036:"Validation rules are not defined for any form item",E1037:"Invalid structure of grouped data",E1038:"The browser does not support local storages for local web pages",E1039:"A cell's position cannot be calculated",E1040:"The '{0}' key value is not unique within the data array",E1041:"The '{0}' script is referenced after the DevExtreme scripts or not referenced at all",E1042:"{0} requires the key field to be specified",E1043:"Changes cannot be processed due to the incorrectly set key",E1044:"The key field specified by the keyExpr option does not match the key field specified in the data store",E1045:"Editing requires the key field to be specified in the data store",E1046:"The '{0}' key field is not found in data objects",E1047:'The "{0}" field is not found in the fields array',E1048:'The "{0}" operation is not found in the filterOperations array',E1049:"Column '{0}': filtering is allowed but the 'dataField' or 'name' option is not specified",E1050:"The validationRules option does not apply to third-party editors defined in the editCellTemplate",E1051:'HtmlEditor\'s valueType is "{0}", but the {0} converter was not imported.',E1052:'{0} should have the "dataSource" option specified',E1053:'The "buttons" option accepts an array that contains only objects or string values',E1054:"All text editor buttons must have names",E1055:'One or several text editor buttons have invalid or non-unique "name" values',E1056:'The {0} widget does not support buttons of the "{1}" type',W1001:'The "key" option cannot be modified after initialization',W1002:"An item with the key '{0}' does not exist",W1003:"A group with the key '{0}' in which you are trying to select items does not exist",W1004:"The item '{0}' you are trying to select in the group '{1}' does not exist",W1005:"Due to column data types being unspecified, data has been loaded twice in order to apply initial filter settings. To resolve this issue, specify data types for all grid columns.",W1006:"The map service returned the following error: '{0}'",W1007:"No item with key {0} was found in the data source, but this key was used as the parent key for item {1}",W1008:"Cannot scroll to the '{0}' date because it does not exist on the current view",W1009:"Searching works only if data is specified using the dataSource option",W1010:"The capability to select all items works with source data of plain structure only",W1011:'The "keyExpr" option is not applied when dataSource is not an array',W1012:"The '{0}' key field is not found in data objects",W1013:'The "message" field in the dialog component was renamed to "messageHtml". Change your code correspondingly. In addition, if you used HTML code in the message, make sure that it is secure',W1014:"The Floating Action Button exceeds the recommended speed dial action count. If you need to display more speed dial actions, increase the maxSpeedDialActionCount option value in the global config."})},function(e,t,n){var i=n(2),o=n(5),a=n(16),r=n(12),s=n(10),l=n(112),u=n(9),c=n(24),d=n(114),h=n(88),p=n(61).compare,f="dxclick",g=Math.abs,_=function(e){return i(e).is("input, textarea, select, button ,:focus, :focus *")},m={requestAnimationFrame:l.requestAnimationFrame,cancelAnimationFrame:l.cancelAnimationFrame},v=d.inherit({ctor:function(e){this.callBase(e),this._makeElementClickable(i(e))},_makeElementClickable:function(e){e.attr("onclick")||e.attr("onclick","void(0)")},start:function(e){this._blurPrevented=e.isDefaultPrevented(),this._startTarget=e.target,this._startEventData=u.eventData(e)},end:function(e){return this._eventOutOfElement(e,this.getElement().get(0))||e.type===c.cancel?void this._cancel(e):(_(e.target)||this._blurPrevented||s.resetActiveElement(),this._accept(e),void(this._clickAnimationFrame=m.requestAnimationFrame(function(){this._fireClickEvent(e)}.bind(this))))},_eventOutOfElement:function(e,t){var n=e.target,i=!s.contains(t,n)&&t!==n,o=u.eventDelta(u.eventData(e),this._startEventData),a=g(o.x)>10||g(o.y)>10;return i||a},_fireClickEvent:function(e){this._fireEvent(f,e,{target:s.closestCommonParent(this._startTarget,e.target)})},dispose:function(){m.cancelAnimationFrame(this._clickAnimationFrame)}});!function(){var e="dx-native-click",t=a.real(),n=t.generic||t.ios&&p(t.version,[9,3])>=0||t.android&&p(t.version,[5])>=0,r=function(t){return n||i(t).closest("."+e).length},s=null,l=null,c=function(e){var t=e.originalEvent,n=l!==t;(!e.which||1===e.which)&&!s&&r(e.target)&&n&&(l=t,u.fireEvent({type:f,originalEvent:e}))};v=v.inherit({_makeElementClickable:function(e){r(e)||this.callBase(e),o.on(e,"click",c)},configure:function(t){this.callBase(t),t.useNative&&this.getElement().addClass(e)},start:function(e){s=null,r(e.target)||this.callBase(e)},end:function(e){r(e.target)||this.callBase(e)},cancel:function(){s=!0},dispose:function(){this.callBase(),o.off(this.getElement(),"click",c)}})}(),function(){if(!a.real().generic){var e=null,t=!1,n="NATIVE_CLICK_FIXER",l=r.getDocument();o.subscribeGlobal(l,u.addNamespace(c.down,n),function(n){e=n.target,t=n.isDefaultPrevented()}),o.subscribeGlobal(l,u.addNamespace("click",n),function(n){var o=i(n.target);t||!e||o.is(e)||i(e).is("label")||!_(o)||s.resetActiveElement(),e=null,t=!1})}}(),h({emitter:v,bubble:!0,events:[f]}),t.name=f},function(e,t,n){var i=n(21),o=n(14),a=n(48),r=n(1),s=n(3).each,l=n(74),u=l.unwrap,c=l.isWrapped,d=l.assign,h=function(e){return e.replace(/\[/g,".").replace(/\]/g,"")},p=function(e,t,n,o){if("this"===t)throw new i.Error("E4016");var a=e[t];o.unwrapObservables&&c(a)?d(a,n):e[t]=n},f=function(e){return(e=e||{}).unwrapObservables=void 0===e.unwrapObservables||e.unwrapObservables,e},g=function(e,t){return t.unwrapObservables?u(e):e},_=function(e){if(arguments.length>1&&(e=[].slice.call(arguments)),!e||"this"===e)return function(e){return e};if("string"==typeof e){var t=(e=h(e)).split(".");return function(e,n){for(var i=(n=f(n)).functionsAsIs,o=("defaultValue"in n),a=g(e,n),s=0;s<t.length;s++){if(!a){if(null==a&&o)return n.defaultValue;break}var l=t[s];if(o&&r.isObject(a)&&!(l in a))return n.defaultValue;var u=g(a[l],n);!i&&r.isFunction(u)&&(u=u.call(a)),a=u}return a}}return Array.isArray(e)?m(e):r.isFunction(e)?e:void 0},m=function(e){for(var t={},n=0,i=e.length;n<i;n++){var o=e[n];t[o]=_(o)}return function(e,n){var i;return s(t,function(t){var o,a,r,s,l=this(e,n);if(void 0!==l){for(o=i||(i={}),r=(a=t.split(".")).length-1,s=0;s<r;s++)o=o[a[s]]={};o[a[s]]=l}}),i}},v=function(e,t,n,i){if(r.isDefined(n))return n;var o={};return p(e,t,o,i),o};t.compileGetter=_,t.compileSetter=function(e){var t=(e=h(e||"this").split(".")).length-1;return function(n,i,o){o=f(o);var s=g(n,o);e.forEach(function(e,n){var l=function(e,t,n){return n=n||{},g("this"===t?e:e[t],n)}(s,e,o),u=!o.functionsAsIs&&r.isFunction(l)&&!c(l);n===t?o.merge&&r.isPlainObject(i)&&(!r.isDefined(l)||r.isPlainObject(l))?(l=v(s,e,l,o),a.deepExtendArraySafe(l,i,!1,!0)):u?s[e](i):p(s,e,i,o):(l=v(s,e,l,o),u&&(l=l.call(s)),s=l)})}},t.toComparable=function(e,t){return e instanceof Date?e.getTime():e&&e instanceof o&&e.valueOf?e.valueOf():t||"string"!=typeof e?e:e.toLowerCase()}},function(e,t,n){var i=n(124);e.exports=i({E0001:"Method is not implemented",E0002:"Member name collision: {0}",E0003:"A class must be instantiated using the 'new' keyword",E0004:"The NAME property of the component is not specified",E0005:"Unknown device",E0006:"Unknown endpoint key is requested",E0007:"'Invalidate' method is called outside the update transaction",E0008:"Type of the option name is not appropriate to create an action",E0009:"Component '{0}' has not been initialized for an element",E0010:"Animation configuration with the '{0}' type requires '{1}' configuration as {2}",E0011:"Unknown animation type '{0}'",E0012:"jQuery version is too old. Please upgrade jQuery to 1.10.0 or later",E0013:"KnockoutJS version is too old. Please upgrade KnockoutJS to 2.3.0 or later",E0014:"The 'release' method shouldn't be called for an unlocked Lock object",E0015:"Queued task returned an unexpected result",E0017:"Event namespace is not defined",E0018:"DevExpress.ui.DevExpressPopup widget is required",E0020:"Template engine '{0}' is not supported",E0021:"Unknown theme is set: {0}",E0022:"LINK[rel=DevExpress-theme] tags must go before DevExpress included scripts",E0023:"Template name is not specified",E0024:"DevExtreme bundle already included",E0025:"Unexpected argument type",E0100:"Unknown validation type is detected",E0101:"Misconfigured range validation rule is detected",E0102:"Misconfigured comparison validation rule is detected",E0110:"Unknown validation group is detected",E0120:"Adapter for a DevExpressValidator component cannot be configured",E0121:"The 'customItem' field of the 'onCustomItemCreating' function's parameter should contain a custom item or Promise that is resolved after the item is created.",W0000:"'{0}' is deprecated in {1}. {2}",W0001:"{0} - '{1}' option is deprecated in {2}. {3}",W0002:"{0} - '{1}' method is deprecated in {2}. {3}",W0003:"{0} - '{1}' property is deprecated in {2}. {3}",W0004:"Timeout for theme loading is over: {0}",W0005:"'{0}' event is deprecated in {1}. {2}",W0006:"Invalid recurrence rule: '{0}'",W0007:"'{0}' Globalize culture is not defined",W0008:"Invalid view name: '{0}'",W0009:"Invalid time zone name: '{0}'",W0010:"{0} is deprecated in {1}. {2}",W0011:"Number parsing is invoked while the parser is not defined",W0012:"Date parsing is invoked while the parser is not defined",W0013:"'{0}' file is deprecated in {1}. {2}",W0014:"{0} - '{1}' type is deprecated in {2}. {3}",W0015:"Instead of returning a value from the '{0}' function, write it into the '{1}' field of the function's parameter.",W0016:'The "{0}" option does not accept the "{1}" value since v.{2}. {3}.'})},function(e,t,n){function i(e,t,n){var i=new Date(e.getTime()),a=u(t)?w(t.toLowerCase()):o.isNumeric(t)?f(t):t;return a.years&&i.setFullYear(i.getFullYear()+a.years*n),a.quarters&&i.setMonth(i.getMonth()+3*a.quarters*n),a.months&&i.setMonth(i.getMonth()+a.months*n),a.weeks&&i.setDate(i.getDate()+7*a.weeks*n),a.days&&i.setDate(i.getDate()+a.days*n),a.hours&&i.setTime(i.getTime()+36e5*a.hours*n),a.minutes&&i.setTime(i.getTime()+6e4*a.minutes*n),a.seconds&&i.setTime(i.getTime()+1e3*a.seconds*n),a.milliseconds&&i.setTime(i.getTime()+a.milliseconds*n),i}var o=n(1),a=n(29).adjust,r=n(3).each,s=n(32).camelize,l=o.isObject,u=o.isString,c=o.isDate,d=o.isDefined,h=["millisecond","second","minute","hour","day","week","month","quarter","year"],p=function e(t){switch(t){case"millisecond":return 1;case"second":return 1e3*e("millisecond");case"minute":return 60*e("second");case"hour":return 60*e("minute");case"day":return 24*e("hour");case"week":return 7*e("day");case"month":return 30*e("day");case"quarter":return 3*e("month");case"year":return 365*e("day");default:return 0}},f=function(e){var t,n,i,o=["millisecond","second","minute","hour","day","month","year"],a={};for(t=o.length-1;t>=0;t--)i=o[t],(n=Math.floor(e/p(i)))>0&&(a[i+"s"]=n,e-=g(i,n));return a},g=function(e,t){return p(e)*t},_=function(e){var t,n=-1;return u(e)?e:l(e)?(r(e,function(e,i){for(t=0;t<h.length;t++)i&&(e===h[t]+"s"||e===h[t])&&n<t&&(n=t)}),h[n]):""},m={millisecond:"millisecond",second:"longtime",minute:"shorttime",hour:"shorttime",day:"day",week:"day",month:"month",quarter:"quarter",year:"year"},v=function(e){return Math.floor(e/3)},y=function(e){return 3*v(e)},b=function(e,t,n){var o=n?-1:1;return c(e)?i(e,t,o):a(e+t*o,t)},x=function(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()},w=function(e){var t={};switch(e){case"year":t.years=1;break;case"month":t.months=1;break;case"quarter":t.months=3;break;case"week":t.weeks=1;break;case"day":t.days=1;break;case"hour":t.hours=1;break;case"minute":t.minutes=1;break;case"second":t.seconds=1;break;case"millisecond":t.milliseconds=1}return t},C=function(e,t){return k(e,t)&&e.getMonth()===t.getMonth()},k=function(e,t){return e&&t&&e.getFullYear()===t.getFullYear()},S=function(e){return e&&e.getFullYear()-e.getFullYear()%100},I=function(e){return e&&e.getFullYear()-e.getFullYear()%10},T=function(e,t){var n=(e.getDay()-t+7)%7,i=new Date(e);return i.setDate(e.getDate()-n),i},D=function(e,t,n){var i=e;return d(e)?(d(t)&&e<t&&(i=t),d(n)&&e>n&&(i=n),i):e},E=function(e,t){if(d(e)){var n,i,o=t.getHours()-e.getHours();0!==o&&(n=1===o||-23===o?-1:1,i=new Date(t.getTime()+36e5*n),(n>0||i.getDate()===t.getDate())&&t.setTime(i.getTime()))}},A=function(e,t){return 60*(t.getTimezoneOffset()-e.getTimezoneOffset())*1e3},O={dateUnitIntervals:h,convertMillisecondsToDateUnits:f,dateToMilliseconds:function(e){var t=0;return l(e)&&r(e,function(e,n){t+=g(e.substr(0,e.length-1),n)}),u(e)&&(t=g(e,1)),t},getNextDateUnit:function(e,t){switch(_(e)){case"millisecond":return"second";case"second":return"minute";case"minute":return"hour";case"hour":return"day";case"day":return t?"week":"month";case"week":return"month";case"month":return"quarter";case"quarter":case"year":return"year";default:return 0}},convertDateUnitToMilliseconds:g,getDateUnitInterval:_,getDateFormatByTickInterval:function(e){return m[_(e)]||""},getDatesDifferences:function(e,t){var n,i=0;return n={year:e.getFullYear()!==t.getFullYear(),month:e.getMonth()!==t.getMonth(),day:e.getDate()!==t.getDate(),hour:e.getHours()!==t.getHours(),minute:e.getMinutes()!==t.getMinutes(),second:e.getSeconds()!==t.getSeconds(),millisecond:e.getMilliseconds()!==t.getMilliseconds()},r(n,function(e,t){t&&i++}),0===i&&0!==A(e,t)&&(n.hour=!0,i++),n.count=i,n},correctDateWithUnitBeginning:function(e,t,n,i){e=new Date(e.getTime());var o,a,r=new Date(e.getTime()),s=_(t);switch(s){case"second":e=new Date(1e3*Math.floor(r.getTime()/1e3));break;case"minute":e=new Date(6e4*Math.floor(r.getTime()/6e4));break;case"hour":e=new Date(36e5*Math.floor(r.getTime()/36e5));break;case"year":e.setMonth(0);case"month":e.setDate(1);case"day":e.setHours(0,0,0,0);break;case"week":(e=T(e,i||0)).setHours(0,0,0,0);break;case"quarter":o=y(e.getMonth()),a=e.getMonth(),e.setDate(1),e.setHours(0,0,0,0),a!==o&&e.setMonth(o)}return n&&"hour"!==s&&"minute"!==s&&"second"!==s&&E(r,e),e},trimTime:function(e){return O.correctDateWithUnitBeginning(e,"day")},setToDayEnd:function(e){var t=O.trimTime(e);return t.setDate(t.getDate()+1),new Date(t.getTime()-1)},roundDateByStartDayHour:function(e,t){var n=this.dateTimeFromDecimal(t),i=new Date(e);return(e.getHours()===n.hours&&e.getMinutes()<n.minutes||e.getHours()<n.hours)&&i.setHours(n.hours,n.minutes,0,0),i},dateTimeFromDecimal:function(e){return{hours:Math.floor(e),minutes:e%1*60}},addDateInterval:i,addInterval:b,getSequenceByInterval:function(e,t,n){var i,o=[];for(o.push(c(e)?new Date(e.getTime()):e),i=e;i<t;)i=b(i,n),o.push(i);return o},getDateIntervalByString:w,sameDate:function(e,t){return C(e,t)&&e.getDate()===t.getDate()},sameMonthAndYear:C,sameMonth:C,sameYear:k,sameDecade:function(e,t){if(d(e)&&d(t)){var n=e.getFullYear()-e.getFullYear()%10,i=t.getFullYear()-t.getFullYear()%10;return e&&t&&n===i}},sameCentury:function(e,t){if(d(e)&&d(t)){var n=e.getFullYear()-e.getFullYear()%100,i=t.getFullYear()-t.getFullYear()%100;return e&&t&&n===i}},sameView:function(e,t,n){return O[s("same "+e)](t,n)},getDifferenceInMonth:function(e){var t=1;return"year"===e&&(t=12),"decade"===e&&(t=120),"century"===e&&(t=1200),t},getDifferenceInMonthForCells:function(e){var t=1;return"decade"===e&&(t=12),"century"===e&&(t=120),t},getFirstYearInDecade:I,getFirstDecadeInCentury:S,getShortDateFormat:function(){return"yyyy/MM/dd"},getViewFirstCellDate:function(e,t){return"month"===e?new Date(t.getFullYear(),t.getMonth(),1):"year"===e?new Date(t.getFullYear(),0,t.getDate()):"decade"===e?new Date(I(t),t.getMonth(),t.getDate()):"century"===e?new Date(S(t),t.getMonth(),t.getDate()):void 0},getViewLastCellDate:function(e,t){return"month"===e?new Date(t.getFullYear(),t.getMonth(),x(t)):"year"===e?new Date(t.getFullYear(),11,t.getDate()):"decade"===e?new Date(I(t)+9,t.getMonth(),t.getDate()):"century"===e?new Date(S(t)+90,t.getMonth(),t.getDate()):void 0},getViewDown:function(e){switch(e){case"century":return"decade";case"decade":return"year";case"year":return"month"}},getViewUp:function(e){switch(e){case"month":return"year";case"year":return"decade";case"decade":return"century"}},getLastMonthDay:x,getLastMonthDate:function(e){if(d(e))return new Date(e.getFullYear(),e.getMonth()+1,0)},getFirstMonthDate:function(e){if(d(e))return new Date(e.getFullYear(),e.getMonth(),1)},getFirstWeekDate:T,normalizeDateByWeek:function(e,t){var n=O.getDatesInterval(e,t,"day"),i=new Date(e);return n>=6&&(i=new Date(i.setDate(i.getDate()+7))),i},getQuarter:v,getFirstQuarterMonth:y,dateInRange:function(e,t,n,i){return"date"===i&&(t=t&&O.correctDateWithUnitBeginning(t,"day"),n=n&&O.correctDateWithUnitBeginning(n,"day"),e=e&&O.correctDateWithUnitBeginning(e,"day")),D(e,t,n)===e},roundToHour:function(e){return e.setHours(e.getHours()+1),e.setMinutes(0),e},normalizeDate:D,getViewMinBoundaryDate:function(e,t){var n=new Date(t.getFullYear(),t.getMonth(),1);return"month"===e?n:(n.setMonth(0),"year"===e?n:("decade"===e&&n.setFullYear(I(t)),"century"===e&&n.setFullYear(S(t)),n))},getViewMaxBoundaryDate:function(e,t){var n=new Date(t);return n.setDate(x(t)),"month"===e?n:(n.setMonth(11),n.setDate(x(n)),"year"===e?n:("decade"===e&&n.setFullYear(I(t)+9),"century"===e&&n.setFullYear(S(t)+99),n))},fixTimezoneGap:E,getTimezonesDifference:A,makeDate:function(e){return new Date(e)},getDatesInterval:function(e,t,n){var i=t.getTime()-e.getTime(),o=p(n)||1;return Math.floor(i/o)},getDatesOfInterval:function(e,t,n){for(var i=new Date(e.getTime()),o=[];i<t;)o.push(new Date(i.getTime())),i=this.addInterval(i,n);return o}};e.exports=O},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=n(0),a=i(n(36)),r=i(n(38));(0,o.extend)(t,r.default,a.default,{modules:[]})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(44)),a=n(3),r=i(n(31)),s=i(n(16)),l=i(n(67)),u=i(n(224)),c=i(n(435)),d=i(n(226)),h=i(n(436)),p=function(e,t,n){if(e.pointerEvents&&n.msie)return c.default;var i=t.tablet,o=t.phone;return!e.touch||i||o?e.touch?u.default:d.default:h.default}(o.default,s.default.real(),r.default);(0,a.each)(p.map,function(e,t){(0,l.default)(e,new p(e,t))});e.exports={down:"dxpointerdown",up:"dxpointerup",move:"dxpointermove",cancel:"dxpointercancel",enter:"dxpointerenter",leave:"dxpointerleave",over:"dxpointerover",out:"dxpointerout"}},function(e,t,n){var i=function(e){this._options=e||{},this._list=[],this._queue=[],this._firing=!1,this._fired=!1,this._firingIndexes=[]};i.prototype._fireCore=function(e,t){var n=this._firingIndexes,i=this._list,o=this._options.stopOnFalse,a=n.length;for(n[a]=0;n[a]<i.length;n[a]++){if(!1===i[n[a]].apply(e,t)&&o)break}n.pop()},i.prototype.add=function(e){return"function"!=typeof e||this._options.unique&&this.has(e)||this._list.push(e),this},i.prototype.remove=function(e){var t=this._list,n=this._firingIndexes,i=t.indexOf(e);if(i>-1&&(t.splice(i,1),this._firing&&n.length))for(var o=0;o<n.length;o++)i<=n[o]&&n[o]--;return this},i.prototype.has=function(e){var t=this._list;return e?t.indexOf(e)>-1:!!t.length},i.prototype.empty=function(e){return this._list=[],this},i.prototype.fireWith=function(e,t){var n=this._queue;if(t=(t=t||[]).slice?t.slice():t,this._options.syncStrategy)this._firing=!0,this._fireCore(e,t);else{if(n.push([e,t]),this._firing)return;for(this._firing=!0;n.length;){var i=n.shift();this._fireCore(i[0],i[1])}}return this._firing=!1,this._fired=!0,this},i.prototype.fire=function(){this.fireWith(this,arguments)},i.prototype.fired=function(){return this._fired};e.exports=function(e){return new i(e)}},function(e,t,n){var i=n(37),o=n(1).type,a="dxTranslator",r=/matrix(3d)?\((.+?)\)/,s=/translate(?:3d)?\((.+?)\)/,l=function(e){return"string"===o(e)&&"%"===e[e.length-1]},u=function(e){var t=e.length?i.data(e.get(0),a):null;if(!t){var n=(e.css("transform")||h({x:0,y:0})).match(r),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])},c(e,t)}return t},c=function(e,t){e.length&&i.data(e.get(0),a,t)},d=function(e){e.length&&i.removeData(e.get(0),a)},h=function(e){return e.x=e.x||0,e.y=e.y||0,"translate("+(l(e.x)?e.x:e.x+"px")+", "+(l(e.y)?e.y:e.y+"px")+")"};t.move=function(e,t){var n,i=t.left,o=t.top;void 0===i?(n=u(e)).y=o||0:void 0===o?(n=u(e)).x=i||0:c(e,n={x:i||0,y:o||0,z:0}),e.css({transform:h(n)}),(l(i)||l(o))&&d(e)},t.locate=function(e){var t=u(e);return{left:t.x,top:t.y}},t.clearCache=d,t.parseTranslate=function(e){var t=e.match(s);if(t&&t[1])return t=t[1].split(","),{x:parseFloat(t[0]),y:parseFloat(t[1]),z:parseFloat(t[2])}},t.getTranslate=u,t.getTranslateCss=h,t.resetPosition=function(e,t){var n,i={left:0,top:0,transform:"none"};t&&(n=e.css("transition"),i.transition="none"),e.css(i),d(e),t&&(e.get(0).offsetHeight,e.css("transition",n))}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(0)),a=i(n(21)),r={rtlEnabled:!1,defaultCurrency:"USD",oDataFilterToLower:!0,serverDecimalSeparator:".",decimalSeparator:".",thousandsSeparator:",",forceIsoDateParsing:!0,wrapActionsBeforeExecute:!0,useLegacyStoreResult:!1,useJQuery:void 0,editorStylingMode:void 0,useLegacyVisibleIndex:!1,floatingActionButtonConfig:{icon:"add",closeIcon:"close",position:{at:"right bottom",my:"right bottom",offset:{x:-16,y:-16}},maxSpeedDialActionCount:5},optionsParser:function(e){"{"!==e.trim().charAt(0)&&(e="{"+e+"}");try{return new Function("return "+e)()}catch(t){throw a.default.Error("E3018",t,e)}}},s=function(){return arguments.length?void o.default.extend(r,arguments.length<=0?void 0:arguments[0]):r};"undefined"!=typeof DevExpress&&DevExpress.config&&s(DevExpress.config),e.exports=s},function(e,t,n){var i=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(n(38));(0,i.extend)(t,o.default,{modules:[],foreachNodes:function(e,t){for(var n=0;n<e.length;n++)!1!==t(e[n])&&e[n].hasChildren&&e[n].children.length&&this.foreachNodes(e[n].children,t)}})},function(e,t,n){function i(e){return Math.abs(parseInt(e.toExponential().split("e")[1]))}function o(e){var t,n,i=e.toString();return i.indexOf(".")<0?0:(n=(t=i.split("."))[1].indexOf("e"))>=0?n:t[1].length}function a(e,t){if(e<0&&t%2!=1)return NaN;var n=Math.pow(Math.abs(e),1/t);return t%2==1&&e<0?-n:n}var r=n(1).isExponential;t.sign=function(e){return 0===e?0:e/Math.abs(e)},t.fitIntoRange=function(e,t,n){var i=!t&&0!==t,o=!n&&0!==n;return i&&(t=o?e:Math.min(e,n)),o&&(n=i?e:Math.max(e,t)),Math.min(Math.max(e,t),n)},t.inRange=function(e,t,n){return e>=t&&e<=n},t.adjust=function(e,t){var n,a=o(t||0)+2,s=e.toString().split("."),l=e,u=Math.abs(e),c=r(e),d=u>1?10:0;return 1===s.length?e:(c||(r(t)&&(a=s[0].length+i(t)),e=(e=u)-Math.floor(e)+d),a="0.000300"!==3e-4.toPrecision(3)&&i(e)>6||a>7?15:7,c||(n=parseFloat(e.toPrecision(a)).toString().split("."))[0]!==d.toString()?parseFloat(l.toPrecision(a)):parseFloat(s[0]+"."+n[1]))},t.getPrecision=o,t.getExponent=i,t.getRoot=a,t.solveCubicEquation=function(e,t,n,i){var o=1e-8;if(Math.abs(e)<o){if(e=t,t=n,n=i,Math.abs(e)<o)return e=t,t=n,Math.abs(e)<o?[]:[-t/e];var r=t*t-4*e*n;return Math.abs(r)<o?[-t/(2*e)]:r>0?[(-t+Math.sqrt(r))/(2*e),(-t-Math.sqrt(r))/(2*e)]:[]}var s,l,u=(3*e*n-t*t)/(3*e*e),c=(2*t*t*t-9*e*t*n+27*e*e*i)/(27*e*e*e);if(Math.abs(u)<o)s=[a(-c,3)];else if(Math.abs(c)<o)s=[0].concat(u<0?[Math.sqrt(-u),-Math.sqrt(-u)]:[]);else{var d=c*c/4+u*u*u/27;if(Math.abs(d)<o)s=[-1.5*c/u,3*c/u];else if(d>0)s=[(l=a(-c/2-Math.sqrt(d),3))-u/(3*l)];else{l=2*Math.sqrt(-u/3);var h=Math.acos(3*c/u/l)/3,p=2*Math.PI/3;s=[l*Math.cos(h),l*Math.cos(h-p),l*Math.cos(h-2*p)]}}for(var f=0;f<s.length;f++)s[f]-=t/(3*e);return s}},function(e,t,n){function i(){if(!S.hasWindow())return null;var e,t=C("<div>",_).addClass("dx-theme-marker").appendTo(_.documentElement);try{return(e=t.css("fontFamily"))?(e=e.replace(/["']/g,"")).substr(0,$.length)!==$?null:e.substr($.length):null}finally{t.remove()}}function o(e){function t(){b=null,M.fire(),M.empty()}var n;b=e,a()?t():(n=Date.now(),x=setInterval(function(){var e=a(),i=!e&&Date.now()-n>15e3;i&&D.log("W0004",b),(e||i)&&(clearInterval(x),x=void 0,t())},10))}function a(){return!b||i()===b}function r(e){(function(e){try{e!==_&&(v=null)}catch(e){v=null}_=e})((e=e||{}).context||k.getDocument()),_&&(function(){var e=C(L,_);e.length&&(v={},m=C(E.createMarkupFromString("<link rel=stylesheet>"),_),e.each(function(){var e=C(this,_),t=e.attr(H),n=e.attr("href"),i="true"===e.attr(z);v[t]={url:n,isActive:i}}),e.last().after(m),e.remove())}(),y=void 0,s(e))}function s(e){if(!arguments.length)return y=y||i();c(R()),"string"==typeof(e=e||{})&&(e={theme:e});var t,n=e._autoInit,a=e.loadCallback;if(y=e.theme||y,n&&!y&&(y=l(P.current())),(y=function(e){var t=e.split("."),n=null;if(v){if(e in v)return e;O(v,function(e,i){var o=e.split(".");if(o[0]===t[0]&&!(t[1]&&t[1]!==o[1]||t[2]&&t[2]!==o[2]))return n&&!i.isActive||(n=e),!i.isActive&&void 0})}return n}(y))&&(t=v[y]),a&&M.add(a),t)m.attr("href",v[y].url),!M.has()&&!e._forceTimeout||x?b&&(b=y):o(y);else{if(!n)throw D.Error("E0021",y);M.fire(),M.empty()}p()&&D.log("W0010","The 'ios7' theme","19.1","Use the 'generic' theme instead."),u(B.originalViewPort(),y)}function l(e){var t=e.platform;switch(t){case"ios":return"ios7";case"android":case"win":return"generic"}return t}function u(e,t){w=function(e){var t=[],n=(e=e||s())&&e.split(".");return n&&(t.push("dx-theme-"+n[0],"dx-theme-"+n[0]+"-typography"),n.length>1&&t.push("dx-color-scheme-"+n[1]+(h(e)?"-"+n[2]:""))),t}(t).join(" "),C(e).addClass(w);!function(){var t=S.hasWindow()&&I.devicePixelRatio;if(t&&!(t<2)){var n=C("<div>");n.css("border",".5px solid transparent"),C("body").append(n),1===n.outerHeight()&&(C(e).addClass(N),w+=" "+N),n.remove()}}()}function c(e){C(e).removeClass(w)}function d(e,t){return t||(t=y||i()),new RegExp(e).test(t)}function h(e){return d("material",e)}function p(e){return d("ios7",e)}function f(e,t){var n=k.getDocument(),i=n.createElement("span");i.style.position="absolute",i.style.top="-9999px",i.style.left="-9999px",i.style.visibility="hidden",i.style.fontFamily="Arial",i.style.fontSize="250px",i.style.fontWeight=t,i.innerHTML=e,n.body.appendChild(i);var o=i.offsetWidth;i.style.fontFamily="Roboto, RobotoFallback, Arial";var a=i.offsetWidth;return i.parentNode.removeChild(i),o!==a}function g(){if(r({_autoInit:!0,_forceTimeout:!0}),C(L,_).length)throw D.Error("E0022");W.resolve()}var _,m,v,y,b,x,w,C=n(2),k=n(12),S=n(7),I=S.getWindow(),T=n(6).Deferred,D=n(18),E=n(10),A=n(47).add,O=n(3).each,P=n(16),B=n(76),M=n(228),R=B.value,F=n(83),V=B.changeCallback,L="link[rel=dx-theme]",H="data-theme",z="data-active",N="dx-hairlines",$="dx.",W=new T;S.hasWindow()?g():A(g),V.add(function(e,t){W.done(function(){c(t),u(e)})}),P.changed.add(function(){r({_autoInit:!0})}),t.current=s,t.ready=function(e){M.add(e)},t.init=r,t.attachCssClasses=u,t.detachCssClasses=c,t.themeNameFromDevice=l,t.waitForThemeLoad=o,t.isMaterial=h,t.isIos7=p,t.isGeneric=function(e){return d("generic",e)},t.isWebFontLoaded=f,t.waitWebFont=function(e,t){var n=0;return new F(function(i,o){var a=function(){var n=f(e,t);return n&&i(),n};a()||function e(){return n++>135?void o():void setTimeout(function(){a()||e()},15)}()})},t.resetTheme=function(){m&&m.attr("href","about:blank"),y=null,b=null}},function(e,t,n){var i=n(0).extend,o=n(7).getNavigator(),a=/(webkit)[ \/]([\w.]+)/,r=/(msie) (\d{1,2}\.\d)/,s=/(trident).*rv:(\d{1,2}\.\d)/,l=/(edge)\/((\d+)?[\w.]+)/,u=/(safari)/i,c=/(mozilla)(?:.*? rv:([\w.]+))/,d=function(e){e=e.toLowerCase();var t={},n=r.exec(e)||s.exec(e)||l.exec(e)||e.indexOf("compatible")<0&&c.exec(e)||a.exec(e)||[],i=n[1],o=n[2];return"webkit"===i&&e.indexOf("chrome")<0&&u.exec(e)&&(i="safari",t.webkit=!0,o=(o=/Version\/([0-9.]+)/i.exec(e))&&o[1]),"trident"!==i&&"edge"!==i||(i="msie"),i&&(t[i]=!0,t.version=o),t};e.exports=i({_fromUA:d},d(o.userAgent))},function(e,t,n){var i=n(3).map,o=function(e){return null==e?"":String(e)},a=function(e){return o(e).charAt(0).toUpperCase()+e.substr(1)},r=function(e){return o(e).replace(/([a-z\d])([A-Z])/g,"$1 $2").split(/[\s_-]+/)},s=function(e){return i(r(e),function(e){return e.toLowerCase()}).join("-")},l=["0","1","2","3","4","5","6","7","8","9"];t.dasherize=s,t.camelize=function(e,t){return i(r(e),function(e,n){return e=e.toLowerCase(),(t||n>0)&&(e=a(e)),e}).join("")},t.humanize=function(e){return a(s(e).replace(/-/g," "))},t.titleize=function(e){return i(r(e),function(e){return a(e.toLowerCase())}).join(" ")},t.underscore=function(e){return s(e).replace(/-/g,"_")},t.captionize=function(e){var t,n,i=[],o=!1,a=!1;for(t=0;t<e.length;t++)a=(n=e.charAt(t))===n.toUpperCase()&&"-"!==n&&")"!==n||n in l,"_"===n||"."===n?(n=" ",a=!0):0===t?(n=n.toUpperCase(),a=!0):!o&&a&&i.length>0&&i.push(" "),i.push(n),o=a;return i.join("")}},function(e,t,n){var i=n(52),o=n(1).isString,a=n(3),r=n(13).inArray,s=n(216).getFormatter,l=n(183).getFormat,u=n(209).getParser,c=n(217),d=n(51),h=n(21);n(85);var 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",mediumdatemediumtime:"MMMM d, 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"},f={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"]},g=i({_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,n=[];return a.each(t.split(/\W+/),function(e,t){a.each(f,function(e,i){r(t,i)>-1&&n.push(e)})}),n},getMonthNames:function(e){return c.getMonthNames(e)},getDayNames:function(e){return c.getDayNames(e)},getQuarterNames:function(e){return c.getQuarterNames(e)},getPeriodNames:function(e){return c.getPeriodNames(e)},getTimeSeparator:function(){return":"},is24HourFormat:function(e){for(var t=new Date(2017,0,20,11,0,0,0),n=new Date(2017,0,20,23,0,0,0),i=this.format(t,e),o=this.format(n,e),a=0;a<i.length;a++)if(i[a]!==o[a])return!isNaN(parseInt(i[a]))},format:function(e,t){if(e){if(!t)return e;var n;if("function"==typeof t)n=t;else if(t.formatter)n=t.formatter;else if(t=t.type||t,o(t))return t=p[t.toLowerCase()]||t,d.convertDigits(s(t,this)(e));if(n)return n(e)}},parse:function(e,t){var n,i,o,a=this;if(e){if(!t)return this.parse(e,"shortdate");if(t.parser)return t.parser(e);if("string"!=typeof t||p[t.toLowerCase()]){o=function(e){var n=a.format(e,t);return d.convertDigits(n,!0)};try{i=l(o)}catch(e){}}else i=t;if(i)return e=d.convertDigits(e,!0),u(i,this)(e);if(h.log("W0012"),(n=new Date(e))&&!isNaN(n.getTime()))return n}},firstDayOfWeekIndex:function(){return 0}});e.exports=g},function(e,t,n){var i=n(2),o=n(5),a=n(60),r=n(10),s=n(16),l=n(8),u=n(0).extend,c=n(173),d=n(100),h=n(17),p=n(72),f=n(9),g=n(30),_=n(19),m=n(86),v="dx-button-content",y="dx-button-has-icon",b="dx-button-mode-",x=[b+"contained",b+"text",b+"outlined"],w="left",C=h.inherit({_supportedKeys:function(){var e=this,t=function(t){t.preventDefault(),e._executeClickAction(t)};return u(this.callBase(),{space:t,enter:t})},_setDeprecatedOptions:function(){this.callBase()},_getDefaultOptions:function(){return u(this.callBase(),{hoverStateEnabled:!0,onClick:null,type:"normal",text:"",icon:"",iconPosition:w,validationGroup:void 0,activeStateEnabled:!0,template:"content",useSubmitBehavior:!1,useInkRipple:!1,stylingMode:"contained"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===s.real().deviceType&&!s.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){var e=g.current();return g.isMaterial(e)},options:{useInkRipple:!0}}])},_getAnonymousTemplateName:function(){return"content"},_feedbackHideTimeout:100,_initTemplates:function(){this.callBase();var e=this;this._defaultTemplates.content=new m(function(t){var n=t.model,o=a.getImageContainer(n&&n.icon),r=n&&n.text?i("<span>").text(n.text).addClass("dx-button-text"):void 0,s=i(t.container);s.append(r),e.option("iconPosition")===w?s.prepend(o):(o.addClass("dx-icon-right"),s.append(o))},this)},_initMarkup:function(){this.$element().addClass("dx-button"),this._renderType(),this._renderStylingMode(),this.option("useInkRipple")&&this._renderInkRipple(),this._renderClick(),this.setAria("role","button"),this._updateAriaLabel(),this.callBase(),this._updateContent()},_renderInkRipple:function(){var e={};(!this.option("text")&&this.option("icon")||"back"===this.option("type"))&&u(e,{waveSizeCoefficient:1,useHoldAnimation:!1,isCentered:!0}),this._inkRipple=p.render(e)},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:this._$content,event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_updateContent:function(){var e=this.$element(),t=this._getContentData();this._$content?this._$content.empty():this._$content=i("<div>").addClass(v).appendTo(e),e.toggleClass(y,!!t.icon).toggleClass("dx-button-icon-right",!!t.icon&&this.option("iconPosition")!==w).toggleClass("dx-button-has-text",!!t.text);var n=this._getAnonymousTemplateName()===this.option("template"),o=this._getTemplateByOption("template"),a=i(o.render({model:t,container:r.getPublicElement(this._$content),transclude:n}));a.hasClass("dx-template-wrapper")&&(this._$content.replaceWith(a),this._$content=a,this._$content.addClass(v)),this.option("useSubmitBehavior")&&this._renderSubmitInput()},_renderSubmitInput:function(){var e=this._createAction(function(e){var t=e.event,n=d.getGroupConfig(e.component._findGroup());n&&!n.validate().isValid&&t.preventDefault(),t.stopPropagation()});this._$submitInput=i("<input>").attr("type","submit").attr("tabindex",-1).addClass("dx-button-submit-input").appendTo(this._$content),o.on(this._$submitInput,"click",function(t){e({event:t})})},_getContentData:function(){var e=this.option("icon"),t=this.option("text");return"back"===this.option("type")&&!e&&(e="back"),{icon:e,text:t}},_renderClick:function(){var e=this,t=f.addNamespace(_.name,this.NAME),n={excludeValidators:["readOnly"]};this.option("useSubmitBehavior")&&(n.afterExecute=function(e){setTimeout(function(){e.component._$submitInput.get(0).click()})}),this._clickAction=this._createActionByOption("onClick",n),o.off(this.$element(),t),o.on(this.$element(),t,function(t){e._executeClickAction(t)})},_executeClickAction:function(e){this._clickAction({event:e,validationGroup:d.getGroupConfig(this._findGroup())})},_updateAriaLabel:function(){var e=this.option("icon"),t=this.option("text");"image"===a.getImageSourceType(e)&&(e=-1===e.indexOf("base64")?e.replace(/.+\/([^.]+)\..+$/,"$1"):"Base64");var n=t||e||"";n=n.toString().trim(),this.setAria("label",n)},_renderType:function(){var e=this.option("type");e&&this.$element().addClass("dx-button-"+e)},_renderStylingMode:function(){var e=this,t="stylingMode";x.forEach(function(t){return e.$element().removeClass(t)});var n=b+this.option(t);if(-1===x.indexOf(n)){var i=this._getDefaultOptions()[t];n=b+i}this.$element().addClass(n)},_refreshType:function(e){var t=this.option("type");e&&this.$element().removeClass("dx-button-"+e).addClass("dx-button-"+t),this.$element().hasClass(y)||"back"!==t||this._updateContent()},_optionChanged:function(e){switch(e.name){case"onClick":this._renderClick();break;case"icon":case"text":this._updateContent(),this._updateAriaLabel();break;case"type":this._refreshType(e.previousValue),this._updateContent(),this._updateAriaLabel();break;case"template":case"iconPosition":this._updateContent();break;case"stylingMode":this._renderStylingMode();break;case"useInkRipple":case"useSubmitBehavior":this._invalidate();break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase(),delete this._$content}}).include(c);l("dxButton",C),e.exports=C},function(e,t,n){var i=n(124),o=n(21),a={},r=i(o.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 the 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}",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={errors:r,errorHandler:null,_errorHandler:function(e){a.errorHandler&&a.errorHandler(e)}},e.exports=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=n(4),r=n(1),s=n(165),l=n(43),u=n(3),c=n(0),d=n(20),h=i(n(189)),p=n(40),f=i(n(63)),g=n(48),_=n(7),m=i(n(5)),v={year:function(e){return e&&e.getFullYear()},month:function(e){return e&&e.getMonth()+1},day:function(e){return e&&e.getDate()},quarter:function(e){return e&&Math.floor(e.getMonth()/3)+1},hour:function(e){return e&&e.getHours()},minute:function(e){return e&&e.getMinutes()},second:function(e){return e&&e.getSeconds()}};e.exports=function(){var t=function(){var e,t,n=arguments[1],o=this.calculateCellValue(n);return(0,r.isDefined)(o)?i(this.dataType)?(t=arguments[0],v[t](o)):"number"===this.dataType?(e=arguments[0],Math.floor(Number(o)/e)*e):void 0:null},n=function(e,t){return(0,r.isFunction)(e)&&(0,r.isFunction)(t)&&e.originalCallback&&t.originalCallback?e.originalCallback===t.originalCallback:e===t},i=function(e){return"date"===e||"datetime"===e},y=function(e){e.get(0).textContent=" "};return{renderNoDataText:function(e){if(e=e||this.element()){var t=this.addWidgetPrefix("nodata"),n=e.find("."+t).last(),i=this._dataController.isEmpty(),a=this._dataController.isLoading();n.length||(n=(0,o.default)("<span>").addClass(t).appendTo(e)),i&&!a?n.removeClass("dx-hidden").text(this._getNoDataText()):n.addClass("dx-hidden")}},renderLoadPanel:function(e,t,n){var i,a=this;a._loadPanel&&a._loadPanel.$element().remove(),(i=a.option("loadPanel"))&&("auto"===i.enabled?!n:i.enabled)?(i=(0,c.extend)({shading:!1,message:i.text,position:function(){var t=(0,o.default)((0,_.getWindow)());return e.height()>t.height()?{of:t,boundary:e,collision:"fit"}:{of:e}},container:t},i),a._loadPanel=a._createComponent((0,o.default)("<div>").appendTo(t),h.default,i)):a._loadPanel=null},getIndexByKey:function(e,t,n){var i,o=-1;if(void 0!==e&&Array.isArray(t)){n=arguments.length<=2?"key":n;for(var s=0;s<t.length;s++)if(i=(0,r.isDefined)(n)?t[s][n]:t[s],(0,a.equalByValue)(e,i)){o=s;break}}return o},combineFilters:function(e,t){var n,i=[];for(t=t||"and",n=0;n<e.length;n++)e[n]&&(i.length&&i.push(t),i.push(e[n]));if(1===i.length&&(i=i[0]),i.length)return i},checkChanges:function(e,t){var n,i=0;for(n=0;n<t.length;n++)e[t[n]]&&i++;return e.length&&e.length===i},equalFilterParameters:function(t,n){var i;if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;for(i=0;i<t.length;i++)if(!e.exports.equalFilterParameters(t[i],n[i]))return!1;return!0}return(0,r.isFunction)(t)&&t.columnIndex>=0&&(0,r.isFunction)(n)&&n.columnIndex>=0?t.columnIndex===n.columnIndex&&(0,d.toComparable)(t.filterValue)===(0,d.toComparable)(n.filterValue):(0,d.toComparable)(t)==(0,d.toComparable)(n)},proxyMethod:function(e,t,n){e[t]||(e[t]=function(){var e=this._dataSource;return e?e[t].apply(e,arguments):n})},formatValue:function(e,t){var n=f.default.format(e,t.format)||e&&e.toString()||"",i={value:e,valueText:t.getDisplayFormat?t.getDisplayFormat(n):n,target:t.target||"row",groupInterval:t.groupInterval};return t.customizeText?t.customizeText.call(t,i):i.valueText},getFormatOptionsByColumn:function(e,t){return{format:e.format,getDisplayFormat:e.getDisplayFormat,customizeText:e.customizeText,target:t,trueText:e.trueText,falseText:e.falseText}},getDisplayValue:function(e,t,n,i){return e.displayValueMap&&void 0!==e.displayValueMap[t]?e.displayValueMap[t]:e.calculateDisplayValue&&n&&"group"!==i?e.calculateDisplayValue(n):!e.lookup||"group"===i&&(e.calculateGroupValue||e.calculateDisplayValue)?t:e.lookup.calculateCellValue(t)},getGroupRowSummaryText:function(t,n){var i,o,a="(";for(i=0;i<t.length;i++)o=t[i],a+=(i>0?", ":"")+e.exports.getSummaryText(o,n);return a+")"},getSummaryText:function(e,t){var n=e.displayFormat||e.columnCaption&&t[e.summaryType+"OtherColumn"]||t[e.summaryType];return this.formatValue(e.value,{format:e.valueFormat,getDisplayFormat:function(t){return n?(0,l.format)(n,t,e.columnCaption):t},customizeText:e.customizeText})},normalizeSortingInfo:function(e){var t,n;for(e=e||[],t=(0,p.normalizeSortingInfo)(e),n=0;n<e.length;n++)e&&e[n]&&void 0!==e[n].isExpanded&&(t[n].isExpanded=e[n].isExpanded),e&&e[n]&&void 0!==e[n].groupInterval&&(t[n].groupInterval=e[n].groupInterval);return t},getFormatByDataType:function(e){switch(e){case"date":return"shortDate";case"datetime":return"shortDateShortTime"}},getHeaderFilterGroupParameters:function(e,n){var i=[],o=e.dataField||e.name,a=(0,s.getGroupInterval)(e);return a?((0,u.each)(a,function(r,s){i.push(n?{selector:o,groupInterval:s,isExpanded:r<a.length-1}:t.bind(e,s))}),i):(n?i=[{selector:o,isExpanded:!1}]:(i=function(t){var n=e.calculateCellValue(t);return void 0!==n&&""!==n||(n=null),n},e.sortingMethod&&(i=[{selector:i,compare:e.sortingMethod.bind(e)}])),i)},equalSortParameters:function(t,i,o){var a;if(t=e.exports.normalizeSortingInfo(t),i=e.exports.normalizeSortingInfo(i),Array.isArray(t)&&Array.isArray(i)){if(t.length!==i.length)return!1;for(a=0;a<t.length;a++)if(!n(t[a].selector,i[a].selector)||t[a].desc!==i[a].desc||t[a].groupInterval!==i[a].groupInterval||!o&&Boolean(t[a].isExpanded)!==Boolean(i[a].isExpanded))return!1;return!0}return(!t||!t.length)==(!i||!i.length)},getPointsByColumns:function(e,t,n,i){var o,a,r,s,l,u,c=e.length,d=!1,h=i||0,p=[];for(a=0;a<=c;a++)a<c&&(s=(r=e.eq(a)).offset(),u="rtl"===r.css("direction")),o={index:h,x:s?s.left+(!n&&u^a===c?r[0].getBoundingClientRect().width:0):0,y:s?s.top+(n&&a===c?r[0].getBoundingClientRect().height:0):0,columnIndex:h},!n&&a>0&&((l=e.eq(a-1).offset()).top<o.y&&(o.y=l.top)),t&&(d=t(o)),d||p.push(o),h++;return p},createObjectWithChanges:function(e,t){var n=e?Object.create(Object.getPrototypeOf(e)):{},i=(0,c.extendFromObject)({},e);return(0,g.deepExtendArraySafe)(n,i,!0,!0),(0,g.deepExtendArraySafe)(n,t,!0,!0)},getExpandCellTemplate:function(){return{allowRenderToDetachedContainer:!0,render:function(e,t){var n,i=(0,o.default)(e);!(0,r.isDefined)(t.value)||t.data&&t.data.isContinuation||t.row.inserted?y(i):(n=t.component.getView("rowsView"),i.addClass("dx-datagrid-expand").addClass("dx-selection-disabled"),(0,o.default)("<div>").addClass(t.value?"dx-datagrid-group-opened":"dx-datagrid-group-closed").appendTo(i),n.setAria("label",t.value?n.localize("dxDataGrid-ariaCollapse"):n.localize("dxDataGrid-ariaExpand"),i))}}},setEmptyText:y,isDateType:i,getSelectionRange:function(e){try{if(e)return{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}catch(e){}return{}},setSelectionRange:function(e,t){try{e&&e.setSelectionRange&&e.setSelectionRange(t.selectionStart,t.selectionEnd)}catch(e){}},focusAndSelectElement:function(e,t){m.default.trigger(t,"focus");var n=e.option("editing.selectTextOnEditStart"),i=e.getController("keyboardNavigation"),o=i&&i._isFastEditingStarted();n&&!o&&t.is(".dx-texteditor-input")&&t.get(0).select()},getLastResizableColumnIndex:function(e,t){for(var n=e.some(function(e){return e&&!e.command&&!e.fixed&&!1!==e.allowResizing}),i=e.length-1;e[i];i--){var o=e[i],a=t&&t[i],r=!n||!1!==o.allowResizing;if(!o.command&&!o.fixed&&"adaptiveHidden"!==a&&r)break}return i}}}()},function(e,t,n){var i,o=n(176),a=n(12),r=n(5),s=n(177),l=new o,u=new s,c=function(){},d=function(){},h=t.setDataStrategy=function(e){u.fire(e);var t=(i=e).cleanData;i.cleanData=function(e){c(e);var n=t.call(this,e);return d(e),n}};h({data:function(){var e=arguments[0],t=arguments[1],n=arguments[2];if(e){var i=l.get(e);return i||(i={},l.set(e,i)),void 0===t?i:2===arguments.length?i[t]:(i[t]=n,n)}},removeData:function(e,t){if(e)if(void 0===t)l.delete(e);else{var n=l.get(e);n&&delete n[t]}},cleanData:function(e){for(var t=0;t<e.length;t++)r.off(e[t]),l.delete(e[t])}}),t.setDataStrategy=h,t.getDataStrategy=function(){return i},t.data=function(){return i.data.apply(this,arguments)},t.strategyChanging=u,t.beforeCleanData=function(e){c=e},t.afterCleanData=function(e){d=e},t.cleanData=function(e){return i.cleanData.call(this,e)},t.removeData=function(e,t){return i.removeData.call(this,e,t)},t.cleanDataRecursive=function(e,t){if(a.isElementNode(e)){var n=e.getElementsByTagName("*");i.cleanData(n),t&&i.cleanData([e])}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(5)),r=i(n(14)),s=i(n(25)),l=n(4),u=n(1),c=n(13),d=n(3),h=i(n(18)),p=i(n(15)),f=n(7),g=r.default.inherit({_endUpdateCore:function(){},ctor:function(e){var t=this;t._updateLockCount=0,t.component=e,t._actions={},t._actionConfigs={},(0,d.each)(this.callbackNames()||[],function(e,n){var i=t.callbackFlags(n)||{};i.unique=!0,i.syncStrategy=!0,t[this]=(0,s.default)(i)})},init:function(){},callbackNames:function(){},callbackFlags:function(){},publicMethods:function(){},beginUpdate:function(){this._updateLockCount++},endUpdate:function(){this._updateLockCount>0&&(this._updateLockCount--,this._updateLockCount||this._endUpdateCore())},option:function(e){var t=this.component,n=t._optionCache;return 1===arguments.length&&n?(e in n||(n[e]=t.option(e)),n[e]):t.option.apply(t,arguments)},localize:function(e){var t=this.component._optionCache;return t?(e in t||(t[e]=p.default.format(e)),t[e]):p.default.format(e)},on:function(){return this.component.on.apply(this.component,arguments)},off:function(){return this.component.off.apply(this.component,arguments)},optionChanged:function(e){e.name in this._actions&&(this.createAction(e.name,this._actionConfigs[e.name]),e.handled=!0)},getAction:function(e){return this._actions[e]},setAria:function(e,t,n){var i=n.get(0),o="role"!==e&&"id"!==e?"aria-":"";i.setAttribute?i.setAttribute(o+e,t):n.attr(o+e,t)},_createComponent:function(){return this.component._createComponent.apply(this.component,arguments)},getController:function(e){return this.component._controllers[e]},createAction:function(e,t){var n;return(0,u.isFunction)(e)?(n=this.component._createAction(e.bind(this),t),function(e){n({event:e})}):(this._actions[e]=this.component._createActionByOption(e,t),void(this._actionConfigs[e]=t))},executeAction:function(e,t){var n=this._actions[e];return n&&n(t)},dispose:function(){var e=this;(0,d.each)(e.callbackNames()||[],function(){e[this].empty()})},addWidgetPrefix:function(e){return"dx-"+this.component.NAME.slice(2).toLowerCase()+(e?"-"+e:"")},getWidgetContainerClass:function(){var e="dxDataGrid"===this.component.NAME?null:"container";return this.addWidgetPrefix(e)}}),_=g,m=_.inherit({getView:function(e){return this.component._views[e]},getViews:function(){return this.component._views}}),v=g.inherit({_isReady:function(){return this.component.isReady()},_endUpdateCore:function(){this.callBase(),!this._isReady()&&this._requireReady&&(this._requireRender=!1,this.component._requireResize=!1),this._requireRender&&(this._requireRender=!1,this.render(this._$parent))},_invalidate:function(e,t){this._requireRender=!0,this.component._requireResize=(0,f.hasWindow)()&&(this.component._requireResize||e),this._requireReady=this._requireReady||t},_renderCore:function(){},_resizeCore:function(){},_afterRender:function(){},_parentElement:function(){return this._$parent},ctor:function(e){this.callBase(e),this.renderCompleted=(0,s.default)(),this.resizeCompleted=(0,s.default)()},element:function(){return this._$element},getElementHeight:function(){var e=this.element();if(!e)return 0;var t=parseFloat(e.css("marginTop"))||0,n=parseFloat(e.css("marginBottom"))||0;return e.get(0).offsetHeight+t+n},isVisible:function(){return!0},getTemplate:function(e){return this.component._getTemplate(e)},render:function(e,t){var n=this._$element,i=this.isVisible();(n||e)&&(this._requireReady=!1,n||(n=this._$element=(0,o.default)("<div>").appendTo(e),this._$parent=e),n.toggleClass("dx-hidden",!i),i&&(this.component._optionCache={},this._renderCore(t),this.component._optionCache=void 0,this._afterRender(e),this.renderCompleted.fire(t)))},resize:function(){this.isResizing=!0,this._resizeCore(),this.resizeCompleted.fire(),this.isResizing=!1},focus:function(){a.default.trigger(this.element(),"focus")}});e.exports={modules:[],View:v,ViewController:m,Controller:_,registerModule:function(e,t){var n,i=this.modules;for(n=0;n<i.length;n++)if(i[n].name===e)return;t.name=e,i.push(t),delete this.controllerTypes,delete this.viewTypes},registerModulesOrder:function(e){this.modulesOrder=e},unregisterModule:function(e){this.modules=(0,l.grep)(this.modules,function(t){return t.name!==e}),delete this.controllerTypes,delete this.viewTypes},processModules:function(e,t){var n=t.modules,i=t.modulesOrder,o=t.controllerTypes||{},a=t.viewTypes||{};t.controllerTypes||(i&&n.sort(function(e,t){var n=(0,c.inArray)(e.name,i),o=(0,c.inArray)(t.name,i);return n<0&&(n=1e6),o<0&&(o=1e6),n-o}),(0,d.each)(n,function(){var e=this.controllers,t=this.name,n=this.views;e&&(0,d.each)(e,function(e,n){if(o[e])throw h.default.Error("E1001",t,e);if(!(n&&n.subclassOf&&n.subclassOf(_)))throw n.subclassOf(_),h.default.Error("E1002",t,e);o[e]=n}),n&&(0,d.each)(n,function(e,n){if(a[e])throw h.default.Error("E1003",t,e);if(!(n&&n.subclassOf&&n.subclassOf(v)))throw h.default.Error("E1004",t,e);a[e]=n})}),(0,d.each)(n,function(){var e=this.extenders;e&&(e.controllers&&(0,d.each)(e.controllers,function(e,t){o[e]&&(o[e]=o[e].inherit(t))}),e.views&&(0,d.each)(e.views,function(e,t){a[e]&&(a[e]=a[e].inherit(t))}))}),t.controllerTypes=o,t.viewTypes=a);var r=function(t){var n={};return(0,d.each)(t,function(t,i){var o=new i(e);o.name=t,function(e,t,n){var i=n.publicMethods();i&&(0,d.each)(i,function(i,o){if(!n[o])throw h.default.Error("E1006",t,o);if(e[o])throw h.default.Error("E1005",o);e[o]=function(){return n[o].apply(n,arguments)}})}(e,t,o),n[t]=o}),n};e._controllers=r(o),e._views=r(a)},callModuleItemsMethod:function(e,t,n){n=n||[],e._controllers&&(0,d.each)(e._controllers,function(){this[t]&&this[t].apply(this,n)}),e._views&&(0,d.each)(e._views,function(){this[t]&&this[t].apply(this,n)})}}},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(7).getWindow(),r=n(5),s=n(21),l=n(10).getPublicElement,u=n(0).extend,c=n(1),d=n(3),h=n(26),p=n(223),f=n(112),g=n(44),_=n(77),m=n(130),v=n(9),y=n(6),b=y.when,x=y.Deferred,w=v.addNamespace(m,"dxFX"),C=c.isFunction,k=c.isPlainObject,S=n(4).noop,I=/^([+-])=(.*)/i,T="dxAnimData",D="dxAnimQueue",E="transform",A={initAnimation:function(e,t){e.css({transitionProperty:"none"}),"string"==typeof t.from?e.addClass(t.from):ne(e,t.from);var n=this,i=new x,o=t.cleanupWhen;t.transitionAnimation={deferred:i,finish:function(){n._finishTransition(e),o?b(i,o).always(function(){n._cleanup(e,t)}):n._cleanup(e,t),i.resolveWith(e,[t,e])}},this._completeAnimationCallback(e,t).done(function(){t.transitionAnimation.finish()}).fail(function(){i.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 n,i,o=this,a=Date.now()+t.delay,s=new x,l=new x,u=new x,c=g.transitionEndEventName()+".dxFX";return t.transitionAnimation.cleanup=function(){clearTimeout(n),clearTimeout(i),r.off(e,c),r.off(e,w)},r.one(e,c,function(){Date.now()-a>=t.duration&&l.reject()}),r.off(e,w),r.on(e,w,function(){o.stop(e,t),s.reject()}),i=setTimeout(function(){n=setTimeout(function(){u.reject()},t.duration+t.delay+ie._simulatedTransitionEndDelay),b(l,u).fail(function(){s.resolve()}.bind(this))}),s.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&&ne(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,n){t&&(n?t.transitionAnimation.finish():(k(t.to)&&d.each(t.to,function(t){e.css(t,e.css(t))}),this._finishTransition(e),this._cleanup(e,t)))}},O={initAnimation:function(e,t){ne(e,t.from)},animate:function(e,t){var n=new x,i=this;return t?(d.each(t.to,function(n){void 0===t.from[n]&&(t.from[n]=i._normalizeValue(e.css(n)))}),t.to[E]&&(t.from[E]=i._parseTransform(t.from[E]),t.to[E]=i._parseTransform(t.to[E])),t.frameAnimation={to:t.to,from:t.from,currentValue:t.from,easing:p.convertTransitionTimingFuncToEasing(t.easing),duration:t.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),f.cancelAnimationFrame(t.frameAnimation.animationFrameId),n.resolve()},draw:function(){if(t.draw)t.draw(this.currentValue);else{var n=u({},this.currentValue);n[E]&&(n[E]=d.map(n[E],function(e,t){return"translate"===t?h.getTranslateCss(e):"scale"===t?"scale("+e+")":"rotate"===t.substr(0,t.length-1)?t+"("+e+"deg)":void 0}).join(" ")),e.css(n)}}},t.delay?(t.frameAnimation.startTime+=t.delay,t.frameAnimation.delayTimeout=setTimeout(function(){i._startAnimation(e,t)},t.delay)):i._startAnimation(e,t),n.promise()):n.reject().promise()},_startAnimation:function(e,t){r.off(e,w),r.on(e,w,function(){t.frameAnimation&&f.cancelAnimationFrame(t.frameAnimation.animationFrameId)}),this._animationStep(e,t)},_parseTransform:function(e){var t={};return d.each(e.match(/(\w|\d)+\([^)]*\)\s*/g),function(e,n){var i=h.parseTranslate(n),o=n.match(/scale\((.+?)\)/),a=n.match(/(rotate.)\((.+)deg\)/);i&&(t.translate=i),o&&o[1]&&(t.scale=parseFloat(o[1])),a&&a[1]&&(t[a[1]]=parseFloat(a[2]))}),t},stop:function(e,t,n){var i=t&&t.frameAnimation;i&&(f.cancelAnimationFrame(i.animationFrameId),clearTimeout(i.delayTimeout),n&&i.finish(),delete t.frameAnimation)},_animationStep:function(e,t){var n=t&&t.frameAnimation;if(n){var i=(new Date).valueOf();if(i>=n.startTime+n.duration)return void n.finish();n.currentValue=this._calcStepValue(n,i-n.startTime),n.draw();var o=this;n.animationFrameId=f.requestAnimationFrame(function(){o._animationStep(e,t)})}},_calcStepValue:function(e,t){return function n(o,a){var r=Array.isArray(a)?[]:{},s=function(n){var i=t/e.duration,r=t,s=1*o[n],l=a[n]-o[n],u=e.duration;return p.getEasing(e.easing)(i,r,s,l,u)};return d.each(a,function(e,t){return"string"==typeof t&&!1===parseFloat(t,10)||void(r[e]="object"===(void 0===t?"undefined":i(t))?n(o[e],t):s(e))}),r}(e.from,e.to)},_normalizeValue:function(e){var t=parseFloat(e,10);return!1===t?e:t}},P={initAnimation:function(){},animate:function(){return(new x).resolve().promise()},stop:S,isSynchronous:!0},B=function(e,t,n,i){d.each(["from","to"],function(){if(!n(e[this]))throw s.Error("E0010",t,this,i)})},M=function(e,t){return B(e,t,function(e){return k(e)},"a plain object")},R={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"}},F={validateConfig:function(e){M(e,"slide")},setup:function(e,t){var n=h.locate(e);if("slide"!==t.type){var i="slideIn"===t.type?t.from:t.to;i.position=u({of:a},R[t.direction]),te(e,i)}this._setUpConfig(n,t.from),this._setUpConfig(n,t.to),h.clearCache(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 n={left:t.left,top:t.top};delete t.left,delete t.top;var i=this._getRelativeValue(n.left);void 0!==i?n.left=i+e.left:t.left=0,void 0!==(i=this._getRelativeValue(n.top))?n.top=i+e.top:t.top=0,t[E]=h.getTranslateCss({x:n.left,y:n.top})},_getRelativeValue:function(e){var t;if("string"==typeof e&&(t=I.exec(e)))return parseInt(t[1]+"1")*t[2]}},V={setup:function(e,t){var n,i=t.from,o=k(i)?t.skipElementInitialStyles?0:e.css("opacity"):String(i);switch(t.type){case"fadeIn":n=1;break;case"fadeOut":n=0;break;default:n=String(t.to)}t.from={visibility:"visible",opacity:o},t.to={opacity:n}}},L={custom:{setup:function(){}},slide:F,slideIn:F,slideOut:F,fade:V,fadeIn:V,fadeOut:V,pop:{validateConfig:function(e){M(e,"pop")},setup:function(e,t){var n=t.from,i=t.to,o="opacity"in n?n.opacity:e.css("opacity"),a="opacity"in i?i.opacity:1,r="scale"in n?n.scale:0,s="scale"in i?i.scale:1;t.from={opacity:o};var l=h.getTranslate(e);t.from[E]=this._getCssTransform(l,r),t.to={opacity:a},t.to[E]=this._getCssTransform(l,s)},_getCssTransform:function(e,t){return h.getTranslateCss(e)+"scale("+t+")"}},css:{validateConfig:function(e){!function(e,t){B(e,t,function(e){return"string"==typeof e},"a string")}(e,"css")},setup:function(){}}},H=function(e){var t=L[e.type];if(!t)throw s.Error("E0011",e.type);return t},z={type:"custom",from:{},to:{},duration:400,start:S,complete:S,easing:"ease",delay:0},N={duration:400,easing:"ease",delay:0},$=function(){var e=this,t=e.element,n=e.config;if(te(t,n.from),te(t,n.to),e.configurator.setup(t,n),t.data(T,e),ie.off&&(n.duration=0,n.delay=0),e.strategy.initAnimation(t,n),n.start){var i=l(t);n.start.apply(this,[i,n])}},W=function(){var e=this,t=e.element,n=e.config;return e.isStarted=!0,e.strategy.animate(t,n).done(function(){!function(e){var t=e.element,n=e.config;if(t.removeData(T),n.complete){var i=l(t);n.complete.apply(this,[i,n])}e.deferred.resolveWith(this,[t,n])}(e)}).fail(function(){e.deferred.rejectWith(this,[t,n])})},G=function(e){var t=this,n=t.element,i=t.config;clearTimeout(t.startTimeout),t.isStarted||t.start(),t.strategy.stop(n,i,e)},j=v.addNamespace(m,"dxFXStartAnimation"),q=function(e){r.off(e.element,j),r.on(e.element,j,function(){ie.stop(e.element)}),e.deferred.always(function(){r.off(e.element,j)})},K=function(e,t){var n="css"===t.type?N:z,i=u(!0,{},n,t),a=H(i),r=function(e){e=e||{};var t={transition:g.transition()?A:O,frame:O,noAnimation:P},n=e.strategy||"transition";return"css"!==e.type||g.transition()||(n="noAnimation"),t[n]}(i),s={element:o(e),config:i,configurator:a,strategy:r,isSynchronous:r.isSynchronous,setup:$,start:W,stop:G,deferred:new x};return C(a.validateConfig)&&a.validateConfig(i),q(s),s},U=function(e,t){var n=Y(e);X(e,n),n.push(t),Q(e)||J(e,n)},Y=function(e){return e.data(D)||[]},X=function(e,t){e.data(D,t)},Z=function(e){e.removeData(D)},Q=function(e){return!!e.data(T)},J=function e(t,n){if((n=Y(t)).length){var i=n.shift();0===n.length&&Z(t),ee(i).done(function(){Q(t)||e(t)})}},ee=function(e){return e.setup(),ie.off||e.isSynchronous?e.start():e.startTimeout=setTimeout(function(){e.start()}),e.deferred.promise()},te=function(e,t){if(t&&t.position){var n=o(a),i=0,r=0,s=_.calculate(e,t.position),l=e.offset(),c=e.position();c.top>l.top&&(r=n.scrollTop()),c.left>l.left&&(i=n.scrollLeft()),u(t,{left:s.h.location-l.left+c.left-i,top:s.v.location-l.top+c.top-r}),delete t.position}},ne=function(e,t){d.each(t,function(t,n){try{e.css(t,c.isFunction(n)?n():n)}catch(e){}})},ie={off:!1,animationTypes:L,animate:function(e,t){var n=o(e);if(!n.length)return(new x).resolve().promise();var i=K(n,t);return U(n,i),i.deferred.promise()},createAnimation:K,isAnimating:Q,stop:function(e,t){var n=o(e),i=Y(n);d.each(i,function(e,t){t.config.delay=0,t.config.duration=0,t.isSynchronous=!0}),Q(n)||J(n,i);var a=n.data(T);a&&a.stop(t),n.removeData(T),Z(n)},_simulatedTransitionEndDelay:100};e.exports=ie},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=n(1),a=i(o),r=i(n(12)),s=n(47),l=n(7),u=n(3),c=n(20),d=n(6),h="DEVEXTREME_XHR_ERROR_UNLOAD",p=function(){var e,t={timeout:"Network connection timeout",error:"Unspecified network error",parsererror:"Unexpected server response"},n=function(e){var n=t[e];return n||e};return(0,s.add)(function(){var t=(0,l.getWindow)();r.default.listen(t,"beforeunload",function(){e=!0})}),function(t,i){return e?h:t.status<400?n(i):t.statusText}}(),f={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 t<e?t:e}},max:{step:function(e,t){return t>e?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}}},g=function(){var e,t=0;return{obtain:function(){0===t&&(e=new d.Deferred),t++},release:function(){--t<1&&e.resolve()},promise:function(){return(0===t?(new d.Deferred).resolve():e).promise()},reset:function(){t=0,e&&e.resolve()}}}(),_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",m=function(e){var t,n,i=[];for(n=0;n<e.length;n++)(t=e.charCodeAt(n))<128?i.push(t):t<2048?i.push(192+(t>>6),128+(63&t)):t<65536?i.push(224+(t>>12),128+(t>>6&63),128+(63&t)):t<2097152&&i.push(240+(t>>18),128+(t>>12&63),128+(t>>6&63),128+(63&t));return i},v={XHR_ERROR_UNLOAD:h,normalizeBinaryCriterion:function(e){return[e[0],e.length<3?"=":String(e[1]).toLowerCase(),e.length<2||e[e.length-1]]},normalizeSortingInfo:function(e){return Array.isArray(e)||(e=[e]),(0,u.map)(e,function(e){var t={selector:(0,o.isFunction)(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})},errorMessageFromXhr:p,aggregators:f,keysEqual:function(e,t,n){if(Array.isArray(e)){for(var i,o=(0,u.map)(t,function(e,t){return t}),a=0;a<o.length;a++)if(i=o[a],(0,c.toComparable)(t[i],!0)!=(0,c.toComparable)(n[i],!0))return!1;return!0}return(0,c.toComparable)(t,!0)==(0,c.toComparable)(n,!0)},throttleChanges:function(e,t){var n=[],i=function(e,t){var n,i;return function(){var a=this;return i=arguments,n||(n=setTimeout(function(){n=void 0,i&&e.call(a,i)},(0,o.isFunction)(t)?t():t)),n}}(function(){e.call(this,n),n=[]},t);return function(e){var t;return Array.isArray(e)&&(t=n).push.apply(t,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e)),i.call(this,n)}},trivialPromise:function(){var e=new d.Deferred;return e.resolve.apply(e,arguments).promise()},rejectedPromise:function(){var e=new d.Deferred;return e.reject.apply(e,arguments).promise()},isDisjunctiveOperator:function(e){return/^(or|\|\||\|)$/i.test(e)},isConjunctiveOperator:function(e){return/^(and|&&|&)$/i.test(e)},processRequestResultLock:g,isUnaryOperation:function(e){return"!"===e[0]&&Array.isArray(e[1])},isGroupCriterion:function(e){var t=e[0],n=e[1];return!!Array.isArray(t)||!(!a.default.isFunction(t)||!(Array.isArray(n)||a.default.isFunction(n)||function(e){return"and"===e||"or"===e}(n)))},base64_encode:function(e){function t(e){return _.charAt(e)}Array.isArray(e)||(e=m(String(e)));for(var n="",i=0;i<e.length;i+=3){var o=e[i],a=e[i+1],r=e[i+2];n+=(0,u.map)([o>>2,(3&o)<<4|a>>4,isNaN(a)?64:(15&a)<<2|r>>6,isNaN(r)?64:63&r],t).join("")}return n}};e.exports=v},function(e,t,n){var i={array:n(152),remote:n(458)};e.exports=function(){var e=Array.isArray(arguments[0])?"array":"remote";return i[e].apply(this,arguments)},e.exports.queryImpl=i},function(e,t,n){var i=n(14).inherit({ctor:function(e){e&&(e=String(e)),this._value=this._normalize(e||this._generate())},_normalize:function(e){for(e=e.replace(/[^a-f0-9]/gi,"").toLowerCase();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}});e.exports=i},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(1),a=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],"&amp;").replace(e[1],"&quot;").replace(e[2],"&#39;").replace(e[3],"&lt;").replace(e[4],"&gt;")}}(),r=function(e){switch(void 0===e?"undefined":i(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}},s=function(e,t,n){return e.replace(new RegExp("("+function(e){return(e+"").replace(/([+*?.[^\]$(){}><|=!:])/g,"\\$1")}(t)+")","gi"),n)},l=function(){var e=/\s/g;return function(t){return!t||!t.replace(e,"")}}();t.encodeHtml=a,t.quadToObject=function(e){var t=r(e),n=parseInt(t&&t[0],10),i=parseInt(t&&t[1],10),o=parseInt(t&&t[2],10),a=parseInt(t&&t[3],10);return isFinite(n)||(n=0),isFinite(i)||(i=n),isFinite(o)||(o=n),isFinite(a)||(a=i),{top:i,right:o,bottom:a,left:n}},t.format=function(){var e,t,n,i=arguments[0],a=[].slice.call(arguments).slice(1);if(o.isFunction(i))return i.apply(this,a);for(var r=0;r<a.length;r++)t=new RegExp("\\{"+r+"\\}","gm"),n=a[r],"string"===o.type(n)&&n.indexOf("$")>=0&&(e="$".replace("$","$$").length,n=n.replace("$",1===e?"$$$$":"$$")),i=i.replace(t,n);return i},t.replaceAll=s,t.isEmpty=l},function(e,t,n){var i=n(13).inArray,o=n(12),a=n(70),r=n(7),s=r.getNavigator(),l=n(16),u=n(84),c={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MsTransitionEnd",transition:"transitionend"},d=function(e){return!!u.styleProp(e)},h=function(e,t){return(e.hasProperty("ontouchstart")||!!t)&&!e.hasProperty("callPhantom")}(r,s.maxTouchPoints),p=function(e,t){return e.hasProperty("PointerEvent")||!!t.pointerEnabled}(r,s),f=!!s.maxTouchPoints||!!s.msMaxTouchPoints;t.touchEvents=h,t.pointerEvents=p,t.touch=h||p&&f,t.transition=a(function(){return d("transition")}),t.transitionEndEventName=a(function(){return c[u.styleProp("transition")]}),t.animation=a(function(){return d("animation")}),t.nativeScrolling=function(){var e=l.real(),t=e.platform,n=e.version;return!(n&&n[0]<4&&"android"===t)&&i(t,["ios","android","win"])>-1||e.mac}(),t.styleProp=u.styleProp,t.stylePropPrefix=u.stylePropPrefix,t.supportProp=d,t.inputType=function(e){if("text"===e)return!0;var t=o.createElement("input");try{return t.setAttribute("type",e),t.value="wrongValue",!t.value}catch(e){return!1}}},function(e,t,n){function i(){this._counter=-1,this._deferreds={}}function o(e){return"pending"===e.state()}function a(e,t){var n;return"string"==typeof e&&(e={paginate:!1,store:function(e){return new y({load:function(){return p.sendRequest({url:e,dataType:"json"})},loadMode:t&&t.fromUrlLoadMode})}(e)}),void 0===e&&(e=[]),void 0===(e=Array.isArray(e)||e instanceof m?{store:e}:c({},e)).store&&(e.store=[]),n=e.store,"load"in e?n=function(){var t={};return h.each(["useDefaultSearch","key","load","loadMode","cacheRawData","byKey","lookup","totalCount","insert","update","remove"],function(){t[this]=e[this],delete e[this]}),new y(t)}():Array.isArray(n)?n=new v(n):f.isPlainObject(n)&&(n=function(e){var t=e.type;return delete e.type,m.create(t,e)}(c({},n))),e.store=n,e}function r(e){switch(e.length){case 0:return;case 1:return e[0]}return[].slice.call(e)}function s(e){return function(){var t=r(arguments);return void 0===t?this._storeLoadOptions[e]:void(this._storeLoadOptions[e]=t)}}function l(e,t,n){function i(e,n){return Array.isArray(e)?n?function(e,t){return h.map(e,function(e){var n={key:e.key,items:i(e.items,t-1)};return"aggregates"in e&&(n.aggregates=e.aggregates),n})}(e,n):h.map(e,t):e}return i(e,n?g.normalizeSortingInfo(n).length:0)}var u=n(14),c=n(0).extend,d=n(4),h=n(3),p=n(62),f=n(1),g=n(40),_=n(132),m=n(91),v=n(68),y=n(135),b=n(80),x=n(35).errors,w=n(13),C=n(222),k=n(6),S=k.when,I=k.Deferred,T=f.isString,D=f.isNumeric,E=f.isBoolean,A=f.isDefined,O="canceled";i.prototype.constructor=i,i.prototype.add=function(e){return this._counter+=1,this._deferreds[this._counter]=e,this._counter},i.prototype.remove=function(e){return delete this._deferreds[e]},i.prototype.cancel=function(e){return e in this._deferreds&&(this._deferreds[e].reject(O),!0)},i.prototype.cancelAll=function(){for(;this._counter>-1;)this.cancel(this._counter),this._counter--};var P=u.inherit({ctor:function(e){var t=this,n=this,o=0!==(e=a(e)).pushAggregationTimeout?g.throttleChanges(this._onPush,function(){return void 0===e.pushAggregationTimeout?5*n._changedTime:e.pushAggregationTimeout}):this._onPush;this._changedTime=0,this._onPushHandler=function(e){t._aggregationTimeoutId=o.call(t,e)},this._store=e.store,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=!!A(e.reshapeOnPush)&&e.reshapeOnPush,h.each(["onChanged","onLoadError","onLoadingChanged","onCustomizeLoadResult","onCustomizeStoreLoadOptions"],function(t,i){i in e&&n.on(i.substr(2,1).toLowerCase()+i.substr(3),e[i])}),this._operationManager=new i,this._init()},_init:function(){this._items=[],this._userData={},this._totalCount=-1,this._isLoaded=!1,A(this._paginate)||(this._paginate=!this.group()),this._isLastPage=!this._paginate},dispose:function(){this._store.off("push",this._onPushHandler),this._disposeEvents(),clearTimeout(this._aggregationTimeoutId),delete this._store,this._delayedLoadTask&&this._delayedLoadTask.abort(),this._operationManager.cancelAll(),this._disposed=!0},_extractLoadOptions:function(e){var t={},n=["sort","filter","select","group","requireTotalCount"],i=this._store._customLoadOptions();return i&&(n=n.concat(i)),h.each(n,function(){t[this]=e[this]}),t},loadOptions:function(){return this._storeLoadOptions},items:function(){return this._items},pageIndex:function(e){return D(e)?(this._pageIndex=e,void(this._isLastPage=!this._paginate)):this._pageIndex},paginate:function(e){return E(e)?void(this._paginate!==e&&(this._paginate=e,this.pageIndex(0))):this._paginate},pageSize:function(e){return D(e)?void(this._pageSize=e):this._pageSize},isLastPage:function(){return this._isLastPage},sort:s("sort"),filter:function(){var e=r(arguments);return void 0===e?this._storeLoadOptions.filter:(this._storeLoadOptions.filter=e,void this.pageIndex(0))},group:s("group"),select:s("select"),requireTotalCount:function(e){return E(e)?void(this._storeLoadOptions.requireTotalCount=e):this._storeLoadOptions.requireTotalCount},searchValue:function(e){return arguments.length<1?this._searchValue:(this._searchValue=e,void this.pageIndex(0))},searchOperation:function(e){return T(e)?(this._searchOperation=e,void this.pageIndex(0)):this._searchOperation},searchExpr:function(e){var t=arguments.length;return 0===t?this._searchExpr:(t>1&&(e=[].slice.call(arguments)),this._searchExpr=e,void this.pageIndex(0))},store:function(){return this._store},key:function(){return this._store&&this._store.key()},totalCount:function(){return this._totalCount},isLoaded:function(){return this._isLoaded},isLoading:function(){return this._loadingCount>0},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_createLoadQueue:function(){return C.create()},_changeLoadingCount:function(e){var t,n=this.isLoading();this._loadingCount+=e,n^(t=this.isLoading())&&this.fireEvent("loadingChanged",[t])},_scheduleLoadCallbacks:function(e){var t=this;t.beginLoading(),e.always(function(){t.endLoading()})},_scheduleFailCallbacks:function(e){var t=this;e.fail(function(){arguments[0]!==O&&t.fireEvent("loadError",arguments)})},_fireChanged:function(e){var t=new Date;this.fireEvent("changed",e),this._changedTime=new Date-t},_scheduleChangedCallbacks:function(e){var t=this;e.done(function(){t._fireChanged()})},loadSingle:function(e,t){var n=this,i=new I,o=this.key(),a=this._store,r=this._createStoreLoadOptions();return this._scheduleFailCallbacks(i),arguments.length<2&&(t=e,e=o),delete r.skip,delete r.group,delete r.refresh,delete r.pageIndex,delete r.searchString,(e===o||a instanceof y&&!a._byKeyViaLoad()?a.byKey(t,r):(r.take=1,r.filter=r.filter?[r.filter,[e,t]]:[e,t],a.load(r))).fail(i.reject).done(function(e){!A(e)||w.isEmpty(e)?i.reject(new x.Error("E4009")):(Array.isArray(e)||(e=[e]),i.resolve(n._applyMapFunction(e)[0]))}),i.promise()},load:function(){function e(){if(!n._disposed&&o(i))return n._loadFromStore(t,i)}var t,n=this,i=new I;return this._scheduleLoadCallbacks(i),this._scheduleFailCallbacks(i),this._scheduleChangedCallbacks(i),t=this._createLoadOperation(i),this.fireEvent("customizeStoreLoadOptions",[t]),this._loadQueue.add(function(){return"number"==typeof t.delay?n._delayedLoadTask=d.executeAsync(e,t.delay):e(),i.promise()}),i.promise({operationId:t.operationId})},_onPush:function(e){if(this._reshapeOnPush)this.load();else{this.fireEvent("changing",[{changes:e}]);var t=this.group(),n=this.items(),i=0,o=this.paginate()||t?e.filter(function(e){return"update"===e.type}):e;t&&(i=Array.isArray(t)?t.length:1),_.applyBatch(this.store(),n,o,i,!0),this._fireChanged([{changes:e}])}},_createLoadOperation:function(e){var t=this._operationManager.add(e),n=this._createStoreLoadOptions();return e.always(function(){this._operationManager.remove(t)}.bind(this)),{operationId:t,storeLoadOptions:n}},reload:function(){var e=this.store();return e instanceof y&&e.clearRawDataCache(),this._init(),this.load()},cancel:function(e){return this._operationManager.cancel(e)},cancelAll:function(){return this._operationManager.cancelAll()},_addSearchOptions:function(e){this._disposed||(this.store()._useDefaultSearch?this._addSearchFilter(e):(e.searchOperation=this._searchOperation,e.searchValue=this._searchValue,e.searchExpr=this._searchExpr))},_createStoreLoadOptions:function(){var e=c({},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:function(e){var t=this._searchValue,n=this._searchOperation,i=this._searchExpr,o=[];t&&(i||(i="this"),Array.isArray(i)||(i=[i]),h.each(i,function(e,i){o.length&&o.push("or"),o.push([i,n,t])}),e.filter?e.filter=[o,e.filter]:e.filter=o)},_loadFromStore:function(e,t){function n(n,a){i._disposed||o(t)&&function(){var o;n&&!Array.isArray(n)&&n.data&&(a=n,n=n.data),Array.isArray(n)||(n=[n]),o=c({data:n,extra:a},e),i.fireEvent("customizeLoadResult",[o]),S(o.data).done(function(e){o.data=e,i._processStoreLoadResult(o,t)}).fail(t.reject)}()}var i=this;return e.data?(new I).resolve(e.data).done(n):this.store().load(e.storeLoadOptions).done(n).fail(t.reject)},_processStoreLoadResult:function(e,t){function n(){return i._isLoaded=!0,i._totalCount=isFinite(a.totalCount)?a.totalCount:-1,t.resolve(o,a)}var i=this,o=e.data,a=e.extra,r=e.storeLoadOptions;i._disposed||(o=i._applyPostProcessFunction(i._applyMapFunction(o)),f.isPlainObject(a)||(a={}),i._items=o,(!o.length||!i._paginate||i._pageSize&&o.length<i._pageSize)&&(i._isLastPage=!0),r.requireTotalCount&&!isFinite(a.totalCount)?i.store().totalCount(r).done(function(e){a.totalCount=e,n()}).fail(t.reject):n())},_applyMapFunction:function(e){return this._mapFunc?l(e,this._mapFunc,this.group()):e},_applyPostProcessFunction:function(e){return this._postProcessFunc?this._postProcessFunc(e):e}}).include(b);t.DataSource=P,t.normalizeDataSourceOptions=a},function(e,t,n){var i=n(2),o=n(7).getWindow(),a=n(26),r=n(32).camelize,s=n(4).noop,l=n(10).getPublicElement,u=n(3).each,c=n(1).isDefined,d=n(13).inArray,h=n(0).extend,p=n(31),f=n(15),g=n(16),_=n(8),m=n(34),v=n(30),y=n(58),b=n(111),x=n(10),w=n(208),C=n(7);n(286);var k="dx-popup",S="dx-popup-title",I="dx-popup-bottom",T=["cancel","clear","done"],D=p.msie&&11===parseInt(p.version),E=y.inherit({_getDefaultOptions:function(){return h(this.callBase(),{fullScreen:!1,title:"",showTitle:!0,titleTemplate:"title",onTitleRendered:null,dragEnabled:!1,toolbarItems:[],showCloseButton:!1,bottomTemplate:"bottom",useDefaultToolbarButtons:!1,useFlatToolbarButtons:!1,autoResizeEnabled:!0})},_defaultOptionsRules:function(){var e=v.current();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"generic"===g.real().platform&&"generic"===e.platform},options:{dragEnabled:!0}},{device:function(){return"desktop"===g.real().deviceType&&!g.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return v.isMaterial(e)},options:{useDefaultToolbarButtons:!0,useFlatToolbarButtons:!0}}])},_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(){this.callBase(),this.$element().addClass(k),this._wrapper().addClass("dx-popup-wrapper"),this._$popupContent=this._$content.wrapInner(i("<div>").addClass("dx-popup-content")).children().eq(0)},_render:function(){var e=this.option("fullScreen");this._toggleFullScreenClass(e),this.callBase()},_toggleFullScreenClass:function(e){this._$content.toggleClass("dx-popup-fullscreen",e).toggleClass("dx-popup-normal",!e)},_initTemplates:function(){this.callBase(),this._defaultTemplates.title=new b(this),this._defaultTemplates.bottom=new b(this)},_renderContentImpl:function(){this._renderTitle(),this.callBase(),this._renderBottom()},_renderTitle:function(){var e=this._getToolbarItems("top"),t=this.option("title"),n=this.option("showTitle");if(n&&t&&e.unshift({location:g.current().ios?"center":"before",text:t}),n||e.length>0){this._$title&&this._$title.remove();var o=i("<div>").addClass(S).insertBefore(this.$content());this._$title=this._renderTemplateByType("titleTemplate",e,o).addClass(S),this._renderDrag(),this._executeTitleRenderAction(this._$title)}else this._$title&&this._$title.detach()},_renderTemplateByType:function(e,t,n,o){var a=this._getTemplateByOption(e);if(a instanceof b){var r=h(o,{items:t,rtlEnabled:this.option("rtlEnabled"),useDefaultButtons:this.option("useDefaultToolbarButtons"),useFlatButtons:this.option("useFlatToolbarButtons")});this._getTemplate("dx-polymorph-widget").render({container:n,model:{widget:"dxToolbarBase",options:r}});var s=n.children("div");return n.replaceWith(s),s}var u=i(a.render({container:l(n)}));return u.hasClass("dx-template-wrapper")&&(n.replaceWith(u),n=u),n},_executeTitleRenderAction:function(e){this._getTitleRenderAction()({titleElement:l(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 function(e,t,n){var o=i("<div>").addClass("dx-closebutton");this._createComponent(o,m,{icon:"close",onClick:this._createToolbarItemAction(void 0),integrationOptions:{}}),i(n).append(o)}.bind(this)},_getToolbarItems:function(e){var t=this.option("toolbarItems"),n=[];this._toolbarItemClasses=[];var i=g.current().platform,o=0;return u(t,function(t,a){var r=c(a.shortcut),s=r?function(e){var t=g.current(),n=t.platform,i="bottom",o="before";if("ios"===n)switch(e){case"cancel":i="top";break;case"clear":i="top",o="after";break;case"done":o="after"}else if("win"===n)o="after";else if("android"===n&&t.version&&parseInt(t.version[0])>4)switch(e){case"cancel":o="after";break;case"done":o="after"}else"android"===n&&(o="center");return{toolbar:i,location:o}}(a.shortcut):a;if(r&&"ios"===i&&o<2&&(s.toolbar="top",o++),s.toolbar=a.toolbar||s.toolbar||"top",s&&s.toolbar===e){r&&h(s,{location:a.location},this._getToolbarItemByAlias(a));var l="win"===i||"generic"===i;"done"===a.shortcut&&l||"cancel"===a.shortcut&&!l?n.unshift(s):n.push(s)}}.bind(this)),"top"===e&&this.option("showCloseButton")&&this.option("showTitle")&&n.push(this._getCloseButton()),n},_getLocalizationKey:function(e){return"done"===e.toLowerCase()?"OK":r(e,!0)},_getToolbarItemByAlias:function(e){var t=this,n=e.shortcut;if(d(n,T)<0)return!1;var o=h({text:f.format(this._getLocalizationKey(n)),onClick:this._createToolbarItemAction(e.onClick),integrationOptions:{},type:t.option("useDefaultToolbarButtons")?"default":"normal",stylingMode:t.option("useFlatToolbarButtons")?"text":"contained"},e.options||{}),a=k+"-"+n;return this._toolbarItemClasses.push(a),{template:function(e,n,r){var s=i("<div>").addClass(a).appendTo(r);t._createComponent(s,m,o)}}},_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=i("<div>").addClass(I).insertAfter(this.$content());this._$bottom=this._renderTemplateByType("bottomTemplate",e,t,{compactMode:!0}).addClass(I),this._toggleClasses()}else this._$bottom&&this._$bottom.detach()},_toggleClasses:function(){u(T,function(e,t){var n=k+"-"+t;d(n,this._toolbarItemClasses)>=0?(this._wrapper().addClass(n+"-visible"),this._$bottom.addClass(n)):(this._wrapper().removeClass(n+"-visible"),this._$bottom.removeClass(n))}.bind(this))},_getDragTarget:function(){return this.topToolbar()},_renderGeometryImpl:function(){this._resetContentHeight(),this.callBase.apply(this,arguments),this._setContentHeight()},_resetContentHeight:function(){this._$popupContent.css({height:"auto"})},_renderDrag:function(){this.callBase(),this._$content.toggleClass("dx-popup-draggable",this.option("dragEnabled"))},_renderResize:function(){this.callBase(),this._resizable.option("onResize",function(){this._setContentHeight(),this._actions.onResize(arguments)}.bind(this))},_setContentHeight:function(){(this.option("forceApplyBindings")||s)();var e=this._splitPopupHeight(),t=e.header+e.footer+e.contentVerticalOffsets+e.popupVerticalOffsets,n=this.overlayContent().get(0),o={},a=this._getOptionValue("maxHeight",n),r=this._getOptionValue("minHeight",n),l=!D||!a&&!r;if(this.option("autoResizeEnabled")&&this._isAutoHeight()&&l){if(!D){var u=i(this._getContainer()).get(0),c=w.addOffsetToMaxHeight(a,-t,u),d=w.addOffsetToMinHeight(r,-t,u);o=h(o,{minHeight:d,maxHeight:c})}}else{var p=n.getBoundingClientRect().height-t;o={height:Math.max(0,p)}}this.$content().css(o)},_isAutoHeight:function(){return"auto"===this.overlayContent().get(0).style.height},_splitPopupHeight:function(){var e=this.topToolbar(),t=this.bottomToolbar();return{header:w.getVisibleHeight(e&&e.get(0)),footer:w.getVisibleHeight(t&&t.get(0)),contentVerticalOffsets:w.getVerticalOffsets(this.overlayContent().get(0),!0),popupVerticalOffsets:w.getVerticalOffsets(this.$content().get(0),!0)}},_renderDimensions:function(){this.option("fullScreen")?this._$content.css({width:"100%",height:"100%"}):this.callBase.apply(this,arguments),C.hasWindow()&&this._renderFullscreenWidthClass()},_renderFullscreenWidthClass:function(){this.overlayContent().toggleClass("dx-popup-fullscreen-width",this.overlayContent().outerWidth()===i(o).width())},_renderShadingDimensions:function(){this.option("fullScreen")?this._wrapper().css({width:"100%",height:"100%"}):this.callBase.apply(this,arguments)},refreshPosition:function(){this._renderPosition()},_renderPosition:function(){return this.option("fullScreen")?void a.move(this._$content,{top:0,left:0}):((this.option("forceApplyBindings")||s)(),this.callBase.apply(this,arguments))},_optionChanged:function(e){switch(e.name){case"showTitle":case"title":case"titleTemplate":this._renderTitle(),this._renderGeometry();break;case"bottomTemplate":this._renderBottom(),this._renderGeometry();break;case"onTitleRendered":this._createTitleRenderAction(e.value);break;case"toolbarItems":case"useDefaultToolbarButtons":case"useFlatToolbarButtons":var t=-1!==e.fullName.search(".options");this._renderTitle(),this._renderBottom(),t||this._renderGeometry();break;case"dragEnabled":this._renderDrag();break;case"autoResizeEnabled":this._renderGeometry(),x.triggerResizeEvent(this._$content);break;case"fullScreen":this._toggleFullScreenClass(e.value),this._renderGeometry(),x.triggerResizeEvent(this._$content);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 l(this._$popupContent)},overlayContent:function(){return this._$content}});_("dxPopup",E),e.exports=E},function(e,t,n){var i=n(12),o=n(52),a=n(7),r=n(70),s=[],l=r(function(){var e=i.listen(i.getDocument(),"DOMContentLoaded",function(){u.fire(),e()})}),u={add:function(e){var t=a.hasWindow();t&&("complete"===i.getReadyState()||"loading"!==i.getReadyState()&&!i.getDocumentElement().doScroll)?e():(s.push(e),t&&l())},fire:function(){s.forEach(function(e){return e()}),s=[]}};e.exports=o(u)},function(e,t,n){var i=n(1),o=n(74),a=function(){function e(){}return function(t){return e.prototype=t,new e}}(),r=function(e,t,n,i){!i&&o.isWrapped(e[t])?o.assign(e[t],n):e[t]=n};t.clone=a,t.orderEach=function(e,t){var n,o,a=[];for(n in e)e.hasOwnProperty(n)&&a.push(n);for(a.sort(function(e,t){var n=i.isNumeric(e),o=i.isNumeric(t);return n&&o?e-t:n&&!o?-1:!n&&o?1:e<t?-1:e>t?1:0}),o=0;o<a.length;o++)t(n=a[o],e[n])},t.deepExtendArraySafe=function e(t,n,o,a){var s,l;for(var u in n)s=t[u],l=n[u],"__proto__"!==u&&t!==l&&(i.isPlainObject(l)&&(l=e((o?i.isObject(s):i.isPlainObject(s))?s:{},l,o,a)),void 0!==l&&s!==l&&r(t,u,l,a));return t}},function(e,t,n){var i=n(2),o=n(37),a=n(25),r=n(4),s=n(7),l=n(99).getDefaultAlignment,u=n(0).extend,c=n(17),d=n(173),h=n(58),p="dx-invalid-message-auto",f="dx-validation-target",g=c.inherit({ctor:function(){this.showValidationMessageTimeout=null,this.callBase.apply(this,arguments)},_init:function(){this.callBase(),this.validationRequest=a(),this._initInnerOptionCache("validationTooltipOptions");var e=this.$element();e&&o.data(e[0],f,this)},_getDefaultOptions:function(){return u(this.callBase(),{value:null,name:"",onValueChanged:null,readOnly:!1,isValid:!0,validationError:null,validationMessageMode:"auto",validationBoundary:void 0,validationMessageOffset:{h:0,v:0},validationTooltipOptions:{}})},_attachKeyboardEvents:function(){this.option("readOnly")||(this.callBase(),this._keyboardProcessor&&this._attachChildKeyboardEvents())},_attachChildKeyboardEvents:r.noop,_setOptionsByReference:function(){this.callBase(),u(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(){this._toggleReadOnlyState(),this._setSubmitElementName(this.option("name")),this.callBase(),this._renderValidationState()},_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=this,n="auto"===this.option("validationMessageMode");return this._canValueBeChangedByClick()&&n&&(this._$validationMessage&&this._$validationMessage.removeClass(p),clearTimeout(this.showValidationMessageTimeout),this.showValidationMessageTimeout=setTimeout(function(){return t._$validationMessage&&t._$validationMessage.addClass(p)},150)),this.callBase(e)},_canValueBeChangedByClick:function(){return!1},_renderValidationState:function(){var e=this.option("isValid"),t=this.option("validationError"),n=this.option("validationMessageMode"),o=this.$element();o.toggleClass("dx-invalid",!e),this.setAria("invalid",!e||void 0),s.hasWindow()&&(this._$validationMessage&&(this._$validationMessage.remove(),this._$validationMessage=null),!e&&t&&t.message&&(this._$validationMessage=i("<div>").addClass("dx-invalid-message").html(t.message).appendTo(o),this._validationMessage=this._createComponent(this._$validationMessage,h,u({integrationOptions:{},templatesRenderAsynchronously:!1,target:this._getValidationMessageTarget(),shading:!1,width:"auto",height:"auto",container:o,position:this._getValidationMessagePosition("below"),closeOnOutsideClick:!1,closeOnTargetScroll:!1,animation:null,visible:!0,propagateOutsideClick:!0,_checkParentVisibility:!1},this._getInnerOptionsCache("validationTooltipOptions"))),this._$validationMessage.toggleClass(p,"auto"===n).toggleClass("dx-invalid-message-always","always"===n),this._setValidationMessageMaxWidth(),this._bindInnerWidgetOptions(this._validationMessage,"validationTooltipOptions")))},_setValidationMessageMaxWidth:function(){if(this._validationMessage){if(0===this._getValidationMessageTarget().outerWidth())return void this._validationMessage.option("maxWidth","100%");var e=Math.max(100,this._getValidationMessageTarget().outerWidth());this._validationMessage.option("maxWidth",e)}},_getValidationMessageTarget:function(){return this.$element()},_getValidationMessagePosition:function(e){var t=this.option("rtlEnabled"),n=l(t),i=this.option("validationMessageOffset"),o={h:i.h,v:i.v},a="below"===e?[" top"," bottom"]:[" bottom"," top"];return t&&(o.h=-o.h),"below"!==e&&(o.v=-o.v),{offset:o,boundary:this.option("validationBoundary"),my:n+a[0],at:n+a[1],collision:"none flip"}},_toggleReadOnlyState:function(){this.$element().toggleClass("dx-state-readonly",!!this.option("readOnly")),this.setAria("readonly",this.option("readOnly")||void 0)},_dispose:function(){var e=this.$element()[0];o.data(e,f,null),clearTimeout(this.showValidationMessageTimeout),this.callBase()},_setSubmitElementName:function(e){var t=this._getSubmitElement();t&&(e.length>0?t.attr("name",e):t.removeAttr("name"))},_getSubmitElement:function(){return null},_optionChanged:function(e){switch(e.name){case"onValueChanged":this._createValueChangeAction();break;case"isValid":case"validationError":case"validationBoundary":case"validationMessageMode":this._renderValidationState();break;case"validationTooltipOptions":this._innerOptionChanged(this._validationMessage,e);break;case"readOnly":this._toggleReadOnlyState(),this._refreshFocusState();break;case"value":this._valueChangeActionSuppressed||(this._raiseValueChangeAction(e.value,e.previousValue),this._saveValueChangeEvent(void 0)),e.value!=e.previousValue&&this.validationRequest.fire({value:e.value,editor:this});break;case"width":this.callBase(e),this._setValidationMessageMaxWidth();break;case"name":this._setSubmitElementName(e.value);break;default:this.callBase(e)}},reset:function(){var e=this._getDefaultOptions();this.option("value",e.value)}}).include(d);e.exports=g},function(e,t,n){function i(e){var t=y(e);return f[t]||f[g[t]||a()]}function o(e,t){return g[e+"."+t]||_[e+"."+t]||g[e]}function a(e,t){if(!arguments.length)return b||o(p.current())||u;var n=y(t);return b=(e&&e.platform?function(e,t,n){return o(e+t,n)||o(e,n)}(y(e.platform),e.version,n):o(y(e),n))||b,this}function r(e,t){var n=function(e,t){var n=e.indexOf(t);return n>0?{name:e.substring(0,n),scheme:e.substring(n+1)}:null}(e,".")||{name:e},i=n.name,o=n.scheme;o?(g[i]=g[i]||t,g[i+"."+o]=t):g[i]=t}function s(e,t,n,i){var o=n?n[t]:i;void 0!==o&&void 0===e[t]&&(e[t]=o)}function l(e,t,n,i){var o=n?n[t]:i;void 0!==o&&(e[t]=m(!0,{},o,e[t]))}var u,c=n(0).extend,d=n(3).each,h=n(11),p=n(30),f={},g={},_={},m=c,v=d,y=h.normalizeEnum,b=null,x=0,w={};m(t,{currentTheme:a,registerTheme:function(e,t){var n=y(e&&e.name);n&&(e.isDefault&&(u=n),r(n,n),f[n]=m(!0,{},i(t),function(e){return s((e=m(!0,{loadingIndicator:{font:{}},export:{font:{}},legend:{font:{},border:{}},title:{font:{}},tooltip:{font:{}},"chart:common":{},"chart:common:axis":{grid:{},minorGrid:{},tick:{},minorTick:{},title:{font:{}},label:{font:{}}},chart:{commonSeriesSettings:{candlestick:{}}},pie:{},polar:{},gauge:{scale:{tick:{},minorTick:{},label:{font:{}}}},barGauge:{},funnel:{},sankey:{},map:{background:{}},treeMap:{tile:{selectionStyle:{border:{}}},group:{border:{},selectionStyle:{border:{}},label:{font:{}}}},rangeSelector:{scale:{tick:{},minorTick:{},label:{font:{}}},chart:{}},sparkline:{},bullet:{}},e)).loadingIndicator,"backgroundColor",e),s(e.chart.commonSeriesSettings.candlestick,"innerColor",null,e.backgroundColor),s(e.map.background,"color",null,e.backgroundColor),s(e.title.font,"color",null,e.primaryTitleColor),l(e.title,"subtitle",null,e.title),s(e.legend.font,"color",null,e.secondaryTitleColor),s(e.legend.border,"color",null,e.gridColor),function(e){var t=e["chart:common:axis"],n="color";v([t.grid,t.minorGrid],function(t,i){s(i,n,null,e.gridColor)}),v([t,t.tick,t.minorTick,t.label.font],function(t,i){s(i,n,null,e.axisColor)}),s(t.title.font,n,null,e.secondaryTitleColor),s(e.gauge.scale.label.font,n,null,e.axisColor),s(e.gauge.scale.tick,n,null,e.backgroundColor),s(e.gauge.scale.minorTick,n,null,e.backgroundColor),s(e.rangeSelector.scale.label.font,n,null,e.axisColor)}(e),v(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector","sparkline","bullet","sankey"],function(t,n){s(e[n],"redrawOnResize",e),s(e[n],"containerBackgroundColor",null,e.backgroundColor),l(e[n],"tooltip",e),l(e[n],"export",e)}),v(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector","sankey"],function(t,n){l(e[n],"loadingIndicator",e),l(e[n],"legend",e),l(e[n],"title",e)}),v(["chart","pie","polar"],function(t,n){l(e,n,null,e["chart:common"])}),v(["chart","polar"],function(t,n){e[n]=e[n]||{},l(e[n],"commonAxisSettings",null,e["chart:common:axis"])}),l(e.rangeSelector.chart,"commonSeriesSettings",e.chart),l(e.rangeSelector.chart,"dataPrepareSettings",e.chart),s(e.treeMap.group.border,"color",null,e.gridColor),s(e.treeMap.tile.selectionStyle.border,"color",null,e.primaryTitleColor),s(e.treeMap.group.selectionStyle.border,"color",null,e.primaryTitleColor),s(e.map.legend,"backgroundColor",e),function(e){var t=e.map;v(["area","line","marker"],function(e,n){l(t,"layer:"+n,null,t.layer)}),v(["dot","bubble","pie","image"],function(e,n){l(t,"layer:marker:"+n,null,t["layer:marker"])})}(e),e}(e)))},getTheme:i,registerThemeAlias:function(e,t){r(y(e),y(t))},registerThemeSchemeAlias:function(e,t){_[e]=t},refreshTheme:function(){return v(w,function(){this.refresh()}),this},addCacheItem:function(e){var t=++x;e._cache=t,w[t]=e},removeCacheItem:function(e){delete w[e._cache]}})},function(e,t,n){var i=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,o=!1,a=void 0;try{for(var r,s=e[Symbol.iterator]();!(i=(r=s.next()).done)&&(n.push(r.value),!t||n.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=n(52),a=n(13).inArray,r=n(4).escapeRegExp,s=n(3).each,l=n(1).isPlainObject,u=n(274),c=n(27),d=n(21),h=["currency","fixedpoint","exponential","percent","decimal"],p={largenumber:"auto",thousands:1,millions:2,billions:3,trillions:4},f=o({numericFormats:h,defaultLargeNumberFormatPostfixes:{1:"K",2:"M",3:"B",4:"T"},_parseNumberFormatString:function(e){var t,n={};if(e&&"string"==typeof e)return t=e.toLowerCase().split(" "),s(t,function(e,t){a(t,h)>-1?n.formatType=t:t in p&&(n.power=p[t])}),n.power&&!n.formatType&&(n.formatType="fixedpoint"),n.formatType?n:void 0},_calculateNumberPower:function(e,t,n,i){var o=Math.abs(e),a=0;if(o>1)for(;o&&o>=t&&(void 0===i||a<i);)a++,o/=t;else if(o>0&&o<1)for(;o<1&&(void 0===n||a>n);)a--,o*=t;return a},_getNumberByPower:function(e,t,n){for(var i=e;t>0;)i/=n,t--;for(;t<0;)i*=n,t++;return i},_formatNumber:function(e,t,n){var i;return"auto"===t.power&&(t.power=this._calculateNumberPower(e,1e3,0,4)),t.power&&(e=this._getNumberByPower(e,t.power,1e3)),i=this.defaultLargeNumberFormatPostfixes[t.power]||"",this._formatNumberCore(e,t.formatType,n).replace(/(\d|.$)(\D*)$/,"$1"+i+"$2")},_formatNumberExponential:function(e,t){var n,i=this._calculateNumberPower(e,10),o=this._getNumberByPower(e,i,10);return void 0===t.precision&&(t.precision=1),o.toFixed(t.precision||0)>=10&&(i++,o/=10),n=(i>=0?"+":"")+i.toString(),this._formatNumberCore(o,"fixedpoint",t)+"E"+n},_addZeroes:function(e,t){for(var n=Math.pow(10,t),i=e<0?"-":"",o=(e=(Math.abs(e)*n>>>0)/n).toString();o.length<t;)o="0"+o;return i+o},_addGroupSeparators:function(e){var t=e.toString().split(".");return t[0].replace(/\B(?=(\d{3})+(?!\d))/g,c().thousandsSeparator)+(t[1]?c().decimalSeparator+t[1]:"")},_formatNumberCore:function(e,t,n){return"exponential"===t?this._formatNumberExponential(e,n):("decimal"!==t&&null!==n.precision&&(n.precision=n.precision||0),"percent"===t&&(e*=100),void 0!==n.precision&&(e="decimal"===t?this._addZeroes(e,n.precision):null===n.precision?e.toPrecision():e.toFixed(n.precision)),e="decimal"!==t?this._addGroupSeparators(e):e.toString().replace(".",c().decimalSeparator),"percent"===t&&(e+="%"),e)},_normalizeFormat:function(e){return e?"function"==typeof e?e:(l(e)||(e={type:e}),e):{}},_getSeparators:function(){return{decimalSeparator:this.getDecimalSeparator(),thousandsSeparator:this.getThousandsSeparator()}},getThousandsSeparator:function(){return this.format(1e3,"fixedPoint")[1]},getDecimalSeparator:function(){return this.format(1.2,{type:"fixedPoint",precision:1})[1]},convertDigits:function(e,t){var n=this.format(90,"decimal");if("string"!=typeof e||"0"===n[1])return e;var i=t?n[1]:"0",o=t?"0":n[1],a=t?n[0]:"9",r=new RegExp("["+i+"-"+a+"]","g");return e.replace(r,function(e){return String.fromCharCode(e.charCodeAt(0)+(o.charCodeAt(0)-i.charCodeAt(0)))})},getSign:function(e,t){if("-"===e.replace(/[^0-9-]/g,"").charAt(0))return-1;if(!t)return 1;var n=this._getSeparators(),i=new RegExp("[0-9"+r(n.decimalSeparator+n.thousandsSeparator)+"]+","g"),o=this.format(-1,t).replace(i,"1");return e.replace(i,"1")===o?-1:1},format:function(e,t){if("number"!=typeof e)return e;if("number"==typeof t)return e;if("function"==typeof(t=t&&t.formatter||t))return t(e);(t=this._normalizeFormat(t)).type||(t.type="decimal");var n=this._parseNumberFormatString(t.type);return n?this._formatNumber(e,n,t):this.convertDigits(u.getFormatter(t.type,this._getSeparators())(e))},parse:function(e,t){if(e){if(t&&t.parser)return t.parser(e);e=this.convertDigits(e,!0),t&&"string"!=typeof t&&d.log("W0011");var n=this.getDecimalSeparator(),i=new RegExp("[^0-9"+r(n)+"]","g"),o=e.replace(i,"").replace(n,".").replace(/\.$/g,"");return"."===o||""===o?null:this._calcSignificantDigits(o)>15?NaN:+o*this.getSign(e,t)}},_calcSignificantDigits:function(e){var t=e.split("."),n=i(t,2),o=n[0],a=n[1],r=function(e){for(var t=-1,n=0;n<e.length;n++)if("0"!==e[n]){t=n;break}return t>-1?e.length-t:0},s=0;return o&&(s+=r(o.split(""))),a&&(s+=r(a.split("").reverse())),s}});e.exports=f},function(e,t,n){e.exports=function(e){var t=n(0).extend,i=n(1).isFunction,o=n(3).each,a=n(14).inherit(e),r=a,s=new r(e),l={},u=function(t,n){o(t,function(t){i(s[t])?!n&&e[t]||(e[t]=function(){return s[t].apply(e,arguments)}):(n&&(l[t]=e[t]),e[t]=s[t])})};return u(e,!0),e.inject=function(e){r=r.inherit(e),s=new r,u(e)},e.resetInjection=function(){t(e,l),r=a,s=new a},e}},function(e,t){e.exports=window.jQuery},function(e,t,n){var i=n(2),o=n(5),a=n(457),r=n(18),s=n(0).extend,l=n(3).each,u=n(4).noop,c=n(1).isDefined,d=n(186),h=n(20).compileGetter,p=n(45).DataSource,f=n(279),g=n(6),_=g.when,m=g.Deferred,v="dxItemDeleting",y=function(e){return-1!==e},b=a.inherit({_setOptionsByReference:function(){this.callBase(),s(this._optionsByReference,{selectedItem:!0})},_getDefaultOptions:function(){return s(this.callBase(),{selectionMode:"none",selectionRequired:!1,selectionByClick:!0,selectedItems:[],selectedItemKeys:[],maxFilterLengthInRequest:1500,keyExpr:null,selectedIndex:-1,selectedItem:null,onSelectionChanged:null,onItemReordered:null,onItemDeleting:null,onItemDeleted:null})},ctor:function(e,t){this._userOptions=t||{},this.callBase(e,t)},_init:function(){this._initEditStrategy(),this.callBase(),this._initKeyGetter(),this._initSelectionModule(),"multi"===this.option("selectionMode")&&this._showDeprecatedSelectionMode()},_initKeyGetter:function(){this._keyGetter=h(this.option("keyExpr"))},_getKeysByItems:function(e){return this._editStrategy.getKeysByItems(e)},_getItemsByKeys:function(e,t){return this._editStrategy.getItemsByKeys(e,t)},_getKeyByIndex:function(e){return this._editStrategy.getKeyByIndex(e)},_getIndexByKey:function(e){return this._editStrategy.getIndexByKey(e)},_getIndexByItemData:function(e){return this._editStrategy.getIndexByItemData(e)},_isKeySpecified:function(){return!(!this._dataSource||!this._dataSource.key())},_getCombinedFilter:function(){return this._dataSource&&this._dataSource.filter()},key:function(){return this.option("keyExpr")?this.option("keyExpr"):this._dataSource&&this._dataSource.key()},keyOf:function(e){var t=e,n=this._dataSource&&this._dataSource.store();return this.option("keyExpr")?t=this._keyGetter(e):n&&(t=n.keyOf(e)),t},_initSelectionModule:function(){var e=this,t=e._editStrategy.itemsGetter;this._selection=new f({mode:this.option("selectionMode"),maxFilterLengthInRequest:this.option("maxFilterLengthInRequest"),equalByReference:!this._isKeySpecified(),onSelectionChanged:function(t){(t.addedItemKeys.length||t.removedItemKeys.length)&&(e.option("selectedItems",e._getItemsByKeys(t.selectedItemKeys,t.selectedItems)),e._updateSelectedItems(t))},filter:e._getCombinedFilter.bind(e),totalCount:function(){var t=e.option("items"),n=e._dataSource;return n&&n.totalCount()>=0?n.totalCount():t.length},key:e.key.bind(e),keyOf:e.keyOf.bind(e),load:function(t){if(e._dataSource){var n=e._dataSource.loadOptions();t.customQueryParams=n.customQueryParams,t.userData=e._dataSource._userData}var i=e._dataSource&&e._dataSource.store();return i?i.load(t).done(function(t){e._dataSource._applyMapFunction(t)}):(new m).resolve([])},dataFields:function(){return e._dataSource&&e._dataSource.select()},plainItems:t.bind(e._editStrategy)})},_initEditStrategy:function(){var e=d;this._editStrategy=new e(this)},_getSelectedItemIndices:function(e){var t=this,n=[];return e=e||this._selection.getSelectedItemKeys(),t._editStrategy.beginCache(),l(e,function(e,i){var o=t._getIndexByKey(i);y(o)&&n.push(o)}),t._editStrategy.endCache(),n},_initMarkup:function(){var e=this;this._rendering=!0,this._dataSource&&this._dataSource.isLoading()||this._syncSelectionOptions().done(function(){return e._normalizeSelectedItems()}),this.callBase();var t=this._getSelectedItemIndices();this._renderSelection(t,[])},_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,n;switch(e=e||this._chooseSelectOption()){case"selectedIndex":t=this._editStrategy.getItemDataByIndex(this.option("selectedIndex")),c(t)?(this._setOptionSilent("selectedItems",[t]),this._setOptionSilent("selectedItem",t),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionSilent("selectedItems",[]),this._setOptionSilent("selectedItemKeys",[]),this._setOptionSilent("selectedItem",null));break;case"selectedItems":var i=this.option("selectedItems")||[];if(n=this._editStrategy.getIndexByItemData(i[0]),this.option("selectionRequired")&&!y(n))return this._syncSelectionOptions("selectedIndex");this._setOptionSilent("selectedItem",i[0]),this._setOptionSilent("selectedIndex",n),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems(i));break;case"selectedItem":if(t=this.option("selectedItem"),n=this._editStrategy.getIndexByItemData(t),this.option("selectionRequired")&&!y(n))return this._syncSelectionOptions("selectedIndex");c(t)?(this._setOptionSilent("selectedItems",[t]),this._setOptionSilent("selectedIndex",n),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionSilent("selectedItems",[]),this._setOptionSilent("selectedItemKeys",[]),this._setOptionSilent("selectedIndex",-1));break;case"selectedItemKeys":var o=this.option("selectedItemKeys");if(this.option("selectionRequired")){var a=this._getIndexByKey(o[0]);if(!y(a))return this._syncSelectionOptions("selectedIndex")}return this._selection.setSelection(o)}return(new m).resolve().promise()},_chooseSelectOption:function(){var e="selectedIndex",t=function(e){var t=this.option(e);return c(t)&&t.length||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 n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0},_normalizeSelectedItems:function(){if("none"===this.option("selectionMode"))this._setOptionSilent("selectedItems",[]),this._syncSelectionOptions("selectedItems");else if("single"===this.option("selectionMode")){var e=this.option("selectedItems");if(e.length>1||!e.length&&this.option("selectionRequired")&&this.option("items")&&this.option("items").length){var t=this._selection.getSelectedItems(),n=void 0===e[0]?t[0]:e[0];return void 0===n&&(n=this._editStrategy.itemsGetter()[0]),this.option("grouped")&&n&&n.items&&(n.items=[n.items[0]]),this._selection.setSelection(this._getKeysByItems([n])),this._setOptionSilent("selectedItems",[n]),this._syncSelectionOptions("selectedItems")}this._selection.setSelection(this._getKeysByItems(e))}else{var i=this._getKeysByItems(this.option("selectedItems")),o=this._selection.getSelectedItemKeys();this._compareKeys(o,i)||this._selection.setSelection(i)}return(new m).resolve().promise()},_renderSelection:u,_itemClickHandler:function(e){this._createAction(function(e){this._itemSelectHandler(e.event)}.bind(this),{validatingTargetName:"itemElement"})({itemElement:i(e.currentTarget),event:e}),this.callBase.apply(this,arguments)},_itemSelectHandler:function(e){if(this.option("selectionByClick")){var t=e.currentTarget;this.isItemSelected(t)?this.unselectItem(e.currentTarget):this.selectItem(e.currentTarget)}},_selectedItemElement:function(e){return this._itemElements().eq(e)},_postprocessRenderItem:function(e){if("none"!==this.option("selectionMode")){var t=i(e.itemElement),n=this._editStrategy.getNormalizedIndex(t),o=this._isItemSelected(n);this._processSelectableItem(t,o)}},_processSelectableItem:function(e,t){e.toggleClass(this._selectedItemClass(),t),this._setAriaSelected(e,String(t))},_updateSelectedItems:function(e){var t=this,n=e.addedItemKeys,i=e.removedItemKeys;if(t._rendered&&(n.length||i.length)){var o=t._selectionChangePromise;if(!t._rendering){var a,r,s=[],l=[];for(t._editStrategy.beginCache(),r=0;r<n.length;r++)a=t._getIndexByKey(n[r]),s.push(a),t._addSelection(a);for(r=0;r<i.length;r++)a=t._getIndexByKey(i[r]),l.push(a),t._removeSelection(a);t._editStrategy.endCache(),t._updateSelection(s,l)}_(o).done(function(){t._fireSelectionChangeEvent(e.addedItems,e.removedItems)})}},_fireSelectionChangeEvent:function(e,t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:e,removedItems:t})},_updateSelection:function(){this._renderSelection.apply(this,arguments)},_setAriaSelected:function(e,t){this.setAria("selected",t,e)},_removeSelection:function(e){var t=this._editStrategy.getItemElement(e);y(e)&&(this._processSelectableItem(t,!1),o.triggerHandler(t,"stateChanged",!1))},_showDeprecatedSelectionMode:function(){r.log("W0001",this.NAME,"selectionMode: 'multi'","16.1","Use selectionMode: 'multiple' instead"),this.option("selectionMode","multiple")},_addSelection:function(e){var t=this._editStrategy.getItemElement(e);y(e)&&(this._processSelectableItem(t,!0),o.triggerHandler(t,"stateChanged",!0))},_isItemSelected:function(e){var t=this._getKeyByIndex(e);return this._selection.isItemSelected(t)},_optionChanged:function(e){var t=this;switch(e.name){case"selectionMode":"multi"===e.value?this._showDeprecatedSelectionMode():this._invalidate();break;case"dataSource":(!e.value||Array.isArray(e.value)&&!e.value.length)&&this.option("selectedItemKeys",[]),this.callBase(e);break;case"selectedIndex":case"selectedItem":case"selectedItems":case"selectedItemKeys":this._syncSelectionOptions(e.name).done(function(){return t._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._setOptionSilent("selectedItems",[]),this._syncSelectionOptions("selectedItems")},_waitDeletingPrepare:function(e){if(e.data(v))return(new m).resolve().promise();e.data(v,!0);var t=new m,n={cancel:!1},i=this._itemEventHandler(e,"onItemDeleting",n,{excludeValidators:["disabled","readOnly"]});return _(i).always(function(o){var a=!i,r=!a&&"resolved"===i.state(),s=!!arguments.length,l=a||r&&!s||r&&o;_(g.fromPromise(n.cancel)).always(function(){e.data(v,!1)}).done(function(e){l&&!e?t.resolve():t.reject()}).fail(t.reject)}.bind(this)),t.promise()},_deleteItemFromDS:function(e){if(!this._dataSource)return(new m).resolve().promise();var t=new m,n=this.option("disabled"),i=this._dataSource.store();if(this.option("disabled",!0),!i.remove)throw r.Error("E1011");return i.remove(i.keyOf(this._getItemData(e))).done(function(e){void 0!==e?t.resolve():t.reject()}).fail(function(){t.reject()}),t.always(function(){this.option("disabled",n)}.bind(this)),t},_tryRefreshLastPage:function(){var e=new m;return this._isLastPage()||this.option("grouped")?e.resolve():this._refreshLastPage().done(function(){e.resolve()}),e.promise()},_refreshLastPage:function(){return this._expectLastItemLoading(),this._dataSource.load()},_updateSelectionAfterDelete:function(e){var t=this._getKeyByIndex(e);this._selection.deselect([t])},_updateIndicesAfterIndex:function(e){for(var t=this._itemElements(),n=e+1;n<t.length;n++)i(t[n]).data(this._itemIndexKey(),n-1)},_simulateOptionChange:function(e){var t=this.option(e);t instanceof p||this._optionChangedAction({name:e,fullName:e,value:t})},isItemSelected:function(e){return this._isItemSelected(this._editStrategy.getNormalizedIndex(e))},selectItem:function(e){if("none"!==this.option("selectionMode")){var t=this._editStrategy.getNormalizedIndex(e);if(y(t)){var n=this._getKeyByIndex(t);if(!this._selection.isItemSelected(n))if("single"===this.option("selectionMode"))this._selection.setSelection([n]);else{var i=this.option("selectedItemKeys");i.push(n),this._selection.setSelection(i)}}}},unselectItem:function(e){var t=this._editStrategy.getNormalizedIndex(e);if(y(t)){var n=this._selection.getSelectedItemKeys();if(!(this.option("selectionRequired")&&n.length<=1)){var i=this._getKeyByIndex(t);this._selection.isItemSelected(i)&&this._selection.deselect([i])}}},_deleteItemElementByIndex:function(e){this._updateSelectionAfterDelete(e),this._updateIndicesAfterIndex(e),this._editStrategy.deleteItemAtIndex(e)},_afterItemElementDeleted:function(e,t){var n=this._dataSource?"dataSource":"items";this._simulateOptionChange(n),this._itemEventHandler(e,"onItemDeleted",t,{beforeExecute:function(){e.remove()},excludeValidators:["disabled","readOnly"]}),this._renderEmptyMessage()},deleteItem:function(e){var t=this,n=new m,i=this._editStrategy.getItemElement(e),o=this._editStrategy.getNormalizedIndex(e),a=this._itemResponseWaitClass();return y(o)?this._waitDeletingPrepare(i).done(function(){i.addClass(a);var e=t._extendActionArgs(i);t._deleteItemFromDS(i).done(function(){t._deleteItemElementByIndex(o),t._afterItemElementDeleted(i,e),t._tryRefreshLastPage().done(function(){n.resolveWith(t)})}).fail(function(){i.removeClass(a),n.rejectWith(t)})}).fail(function(){n.rejectWith(t)}):n.rejectWith(t),n.promise()},reorderItem:function(e,t){var n=new m,i=this,o=this._editStrategy,a=o.getItemElement(e),r=o.getItemElement(t),s=o.getNormalizedIndex(e),l=o.getNormalizedIndex(t),u=this._dataSource?"dataSource":"items";return y(s)&&y(l)&&s!==l?n.resolveWith(this):n.rejectWith(this),n.promise().done(function(){r[o.itemPlacementFunc(s,l)](a),o.moveItemAtIndexToIndex(s,l),this._updateIndicesAfterIndex(s),i.option("selectedItems",i._getItemsByKeys(i._selection.getSelectedItemKeys(),i._selection.getSelectedItems())),"items"===u&&i._simulateOptionChange(u),i._itemEventHandler(a,"onItemReordered",{fromIndex:o.getIndex(s),toIndex:o.getIndex(l)},{excludeValidators:["disabled","readOnly"]})})}});e.exports=b},function(e,t,n){var i=n(2),o=n(37),a=n(13).wrapToArray,r=n(13).inArray,s=n(3),l=n(10).contains,u=n(67),c=n(9),d=n(157),h=n(88),p="dxdragstart",f="dxdrag",g="dxdragend",_="dxdragenter",m="dxdragleave",v="dxdrop",y="dxDragEventsCount",b=[],x=[],w=[],C={setup:function(e,t){-1!==r(e,b)||(b.push(e),x.push([]),w.push(t||{}))},add:function(e,t){var n=r(e,b);this.updateEventsCounter(e,t.type,1);var i=t.selector;-1===r(i,x[n])&&x[n].push(i)},updateEventsCounter:function(e,t,n){if([_,m,v].indexOf(t)>-1){var i=o.data(e,y)||0;o.data(e,y,Math.max(0,i+n))}},remove:function(e,t){this.updateEventsCounter(e,t.type,-1)},teardown:function(e){if(!o.data(e,y)){var t=r(e,b);b.splice(t,1),x.splice(t,1),w.splice(t,1),o.removeData(e,y)}}};u(_,C),u(m,C),u(v,C);var k=function(e){var t=r(e.get(0),b),n=x[t],i=e.find(n.join(", "));return-1!==r(void 0,n)&&(i=i.add(e)),i},S=function(e){var t=r(e.get(0),b);return w[t]};h({emitter:d.inherit({ctor:function(e){this.callBase(e),this.direction="both"},_init:function(e){this._initEvent=e},_start:function(e){e=this._fireEvent(p,this._initEvent),this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset;var t=a(e.targetElements||(null===e.targetElements?[]:b));this._dropTargets=s.map(t,function(e){return i(e).get(0)})},_move:function(e){var t=c.eventData(e),n=this._calculateOffset(t);e=this._fireEvent(f,e,{offset:n}),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,n){return null!=t&&(e=Math.max(e,-t)),null!=n&&(e=Math.min(e,n)),e},_processDropTargets:function(e){var t=this._findDropTarget(e);t===this._currentDropTarget||(this._fireDropTargetEvent(e,m),this._currentDropTarget=t,this._fireDropTargetEvent(e,_))},_fireDropTargetEvent:function(e,t){if(this._currentDropTarget){var n={type:t,originalEvent:e,draggingElement:this._$element.get(0),target:this._currentDropTarget};c.fireEvent(n)}},_findDropTarget:function(e){var t,n=this;return s.each(b,function(o,a){if(n._checkDropTargetActive(a)){var r=i(a);s.each(k(r),function(o,a){var s=i(a);n._checkDropTarget(S(r),s,e)&&(t=a)})}}),t},_checkDropTargetActive:function(e){var t=!1;return s.each(this._dropTargets,function(n,i){return!(t=t||i===e||l(i,e))}),t},_checkDropTarget:function(e,t,n){if(t.get(0)===this._$element.get(0))return!1;var i=function(e,t){return e.itemPositionFunc?e.itemPositionFunc(t):t.offset()}(e,t);if(n.pageX<i.left)return!1;if(n.pageY<i.top)return!1;var o=function(e,t){return e.itemSizeFunc?e.itemSizeFunc(t):{width:t.get(0).getBoundingClientRect().width,height:t.get(0).getBoundingClientRect().height}}(e,t);return!(n.pageX>i.left+o.width)&&!(n.pageY>i.top+o.height)&&t},_end:function(e){var t=c.eventData(e);this._fireEvent(g,e,{offset:this._calculateOffset(t)}),this._fireDropTargetEvent(e,v),delete this._currentDropTarget}}),events:[p,f,g]}),t.move=f,t.start=p,t.end=g,t.enter=_,t.leave=m,t.drop=v},function(e,t,n){var i=n(27),o=n(216).getFormatter,a=n(217),r=n(1),s=r.isString,l=r.isDate,u=r.isNumeric,c="number",d=/^(\d{4,})(-)?(\d{2})(-)?(\d{2})(?:T(\d{2})(:)?(\d{2})?(:)?(\d{2}(?:\.(\d{1,3})\d*)?)?)?(Z|([+-])(\d{2})(:)?(\d{2})?)?$/,h=/^(\d{2}):(\d{2})(:(\d{2}))?$/,p=["","yyyy","","MM","","dd","THH","","mm","","ss",".SSS"],f=function(e,t){var n,i;return s(e)&&!t&&(n=g(e)),n||(i=!l(e)&&Date.parse(e),n=u(i)?new Date(i):e),n},g=function(e){var t=e.match(d),n=function(e){return+e||0};if(t){var i=t[1],o=--t[3],a=t[5],r=0,s=0;r=n(t[14]),s=n(t[16]),"-"===t[13]&&(r=-r,s=-s);var l=n(t[6])-r,u=n(t[8])-s,c=n(t[10]),p=function(e){return n(e=e||"")*Math.pow(10,3-e.length)}(t[11]);return t[12]?new Date(Date.UTC(i,o,a,l,u,c,p)):new Date(i,o,a,l,u,c,p)}if(t=e.match(h))return new Date(0,0,0,n(t[1]),n(t[2]),n(t[4]))};e.exports={dateParser:f,deserializeDate:function(e){return"number"==typeof e?new Date(e):f(e,!i().forceIsoDateParsing)},serializeDate:function(e,t){return t?l(e)?t===c?e&&e.valueOf?e.valueOf():null:o(t,a)(e):null:e},getDateSerializationFormat:function(e){return"number"==typeof e?c:s(e)?(i().forceIsoDateParsing&&(t=function(e,t){var n=e.match(d),i="";if(n){for(var o=1;o<p.length;o++)n[o]&&(i+=p[o]||n[o]);return"Z"===n[12]&&(i+="'Z'"),n[14]&&(i+=n[15]?"xxx":n[16]?"xx":"x"),i}if(n=e.match(h))return n[3]?"HH:mm:ss":"HH:mm"}(e)),t||(e.indexOf(":")>=0?"yyyy/MM/dd HH:mm:ss":"yyyy/MM/dd")):e?null:void 0;var t}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getQuill=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(18)),o=n(7),a=void 0;t.getQuill=function(){return a||(a=function(){var e=(0,o.getWindow)(),t=e&&e.Quill||n(552);if(!t)throw i.default.Error("E1041","Quill");return t}()),a}},function(e,t,n){e.exports=n(454)},function(e,t){e.exports=window.ko},function(e,t,n){var i=n(2),o=function(e){return!(!e||"string"!=typeof e)&&(/data:.*base64|\.|\//.test(e)?"image":/^[\w-_]+$/.test(e)?"dxIcon":"fontIcon")};t.getImageSourceType=o,t.getImageContainer=function(e){var t="dx-icon";switch(o(e)){case"image":return i("<img>").attr("src",e).addClass(t);case"fontIcon":return i("<i>").addClass(t+" "+e);case"dxIcon":return i("<i>").addClass(t+" "+t+"-"+e);default:return null}}},function(e,t,n){t.compare=function(e,t,n){function i(e){return"string"==typeof e?e.split("."):"number"==typeof e?[e]:e}e=i(e),t=i(t);var o=Math.max(e.length,t.length);isFinite(n)&&(o=Math.min(o,n));for(var a=0;a<o;a++){var r=parseInt(e[a]||0,10),s=parseInt(t[a]||0,10);if(r<s)return-1;if(r>s)return 1}return 0}},function(e,t,n){var i=n(6).Deferred,o=n(12),a=n(429),r=n(7),s=r.getWindow(),l=n(0).extendFromObject,u=n(1).isDefined,c=n(83),d=n(52),h="success",p="error",f=function(e){var t=o.createElement("script");for(var n in e)t[n]=e[n];return t},g=function(e){e.parentNode.removeChild(e)},_=function(e){return o.getHead().appendChild(e)},m=function(e){var t=f({text:e});_(t),g(t)},v=function(e){var t=f({src:e});return new c(function(e,n){var i={load:e,error:n},a=function(e){i[e.type](),g(t)};for(var r in i)o.listen(t,r,a);_(t)})},y=function(e,t,n){var i=function(e){return e.responseType&&"text"!==e.responseType||"string"!=typeof e.responseText?e.response:e.responseText}(t);switch(n){case"jsonp":m(i);break;case"script":m(i),e.resolve(i,h,t);break;case"json":try{e.resolve(JSON.parse(i),h,t)}catch(n){e.reject(t,"parsererror",n)}break;default:e.resolve(i,h,t)}},b=function(e){if(!r.hasWindow())return!0;var t=!1,n=o.createElement("a"),i=o.createElement("a");n.href=s.location.href;try{i.href=e,i.href=i.href,t=n.protocol+"//"+n.host!=i.protocol+"//"+i.host}catch(e){t=!0}return t},x=function(e,t){var n=e.data,i="string"==typeof n,o=e.url||s.location.href;return i||e.cache||((n=n||{})._=Date.now()),n&&!e.upload&&(i||(n=function(e){var t=[];for(var n in e){var i=e[n];void 0!==i&&(null===i&&(i=""),t.push(encodeURIComponent(n)+"="+encodeURIComponent(i)))}return t.join("&")}(n)),"GET"===w(e)?(""!==n&&(o+=(o.indexOf("?")>-1?"&":"?")+n),n=null):t["Content-Type"]&&t["Content-Type"].indexOf("application/x-www-form-urlencoded")>-1&&(n=n.replace(/%20/g,"+"))),{url:o,parameters:n}},w=function(e){return(e.method||"GET").toUpperCase()},C=function(e){var t=e.headers||{};return t["Content-Type"]=t["Content-Type"]||function(e){var t;return e.data&&!e.upload&&"GET"!==w(e)&&(t="application/x-www-form-urlencoded;charset=utf-8"),e.contentType||t}(e),t.Accept=t.Accept||function(e){var t=e.dataType||"*",n="text/javascript, application/javascript, application/ecmascript, application/x-ecmascript",i={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",jsonp:n,script:n};return l(i,e.accepts,!0),i[t]?i[t]+("*"!==t?", */*; q=0.01":""):i["*"]}(e),e.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t};e.exports=d({sendRequest:function(e){var t,n=a.getXhr(),o=new i,r=o.promise(),l=!u(e.async)||e.async,c=e.dataType,d=e.timeout||0;e.crossDomain=b(e.url);var f="jsonp"===c||"script"===c;void 0===e.cache&&(e.cache=!f);var g=function(e){if("jsonp"===e.dataType){var t=Math.random().toString().replace(/\D/g,""),n=e.jsonpCallback||"dxCallback"+Date.now()+"_"+t,i=e.jsonp||"callback";return e.data=e.data||{},e.data[i]=n,n}}(e),_=C(e),m=x(e,_),k=m.url,S=m.parameters;if(g&&(s[g]=function(e){o.resolve(e,h,n)}),e.crossDomain&&f)return v(k).then(function(){"jsonp"!==c&&o.resolve(null,h,n)},function(){o.reject(n,p)}),r;if(e.crossDomain&&!("withCredentials"in n))return o.reject(n,p),r;if(n.open(w(e),k,l,e.username,e.password),l&&(n.timeout=d,t=function(e,t){return e&&setTimeout(function(){t.customStatus="timeout",t.abort()},e)}(d,n)),n.onreadystatechange=function(e){4===n.readyState&&(clearTimeout(t),function(e){return 200<=e&&e<300}(n.status)?function(e){return 204!==e}(n.status)?y(o,n,c):o.resolve(null,"nocontent",n):o.reject(n,n.customStatus||p))},e.upload&&(n.upload.onprogress=e.upload.onprogress,n.upload.onloadstart=e.upload.onloadstart,n.upload.onabort=e.upload.onabort),e.xhrFields)for(var I in e.xhrFields)n[I]=e.xhrFields[I];for(var T in"arraybuffer"===e.responseType&&(n.responseType=e.responseType),_)_.hasOwnProperty(T)&&u(_[T])&&n.setRequestHeader(T,_[T]);return e.beforeSend&&e.beforeSend(n),n.send(S),r.abort=function(){n.abort()},r}})},function(e,t,n){var i=n(1),o=n(22),a=n(51),r=n(33),s=n(52);n(148),e.exports=s({format:function(e,t){var n=i.isString(t)&&""!==t||i.isPlainObject(t)||i.isFunction(t),o=i.isNumeric(e)||i.isDate(e);return n&&o?i.isFunction(t)?t(e):(i.isString(t)&&(t={type:t}),i.isNumeric(e)?a.format(e,t):i.isDate(e)?r.format(e,t):void 0):i.isDefined(e)?e.toString():""},getTimeFormat:function(e){return e?"longtime":"shorttime"},_normalizeFormat:function(e){return Array.isArray(e)?1===e.length?e[0]:function(t){return e.map(function(e){return r.format(t,e)}).join(" ")}:e},getDateFormatByDifferences:function(e,t){var n=[],i=t&&e.millisecond&&!(e.year||e.month||e.day);if(i){n.push(function(e){return e.getSeconds()+e.getMilliseconds()/1e3+"s"})}else e.millisecond&&n.push("millisecond");if((e.hour||e.minute||!i&&e.second)&&n.unshift(this.getTimeFormat(e.second)),e.year&&e.month&&e.day)return t&&"month"===t?"monthandyear":(n.unshift("shortdate"),this._normalizeFormat(n));if(e.year&&e.month)return"monthandyear";if(e.year&&e.quarter)return"quarterandyear";if(e.year)return"year";if(e.quarter)return"quarter";if(e.month&&e.day){if(t){n.unshift(function(e){return r.getMonthNames("abbreviated")[e.getMonth()]+" "+r.format(e,"day")})}else n.unshift("monthandday");return this._normalizeFormat(n)}if(e.month)return"month";if(e.day){if(t)n.unshift("day");else{n.unshift(function(e){return r.format(e,"dayofweek")+", "+r.format(e,"day")})}return this._normalizeFormat(n)}return this._normalizeFormat(n)},getDateFormatByTicks:function(e){var t,n,i;if(e.length>1)for(t=o.getDatesDifferences(e[0],e[1]),i=1;i<e.length-1;i++)n=o.getDatesDifferences(e[i],e[i+1]),t.count<n.count&&(t=n);else t={year:!0,month:!0,day:!0,hour:e[0].getHours()>0,minute:e[0].getMinutes()>0,second:e[0].getSeconds()>0,millisecond:e[0].getMilliseconds()>0};return this.getDateFormatByDifferences(t)},getDateFormatByTickInterval:function(e,t,n){var a,r,s=function(e,t,n){switch(t){case"year":case"quarter":e.month=n;case"month":e.day=n;case"week":case"day":e.hour=n;case"hour":e.minute=n;case"minute":e.second=n;case"second":e.millisecond=n}};return n=i.isString(n)?n.toLowerCase():n,a=o.getDatesDifferences(e,t),e!==t&&function(e,t,n){!n.getMilliseconds()&&n.getSeconds()?n.getSeconds()-t.getSeconds()==1&&(e.millisecond=!0,e.second=!1):!n.getSeconds()&&n.getMinutes()?n.getMinutes()-t.getMinutes()==1&&(e.second=!0,e.minute=!1):!n.getMinutes()&&n.getHours()?n.getHours()-t.getHours()==1&&(e.minute=!0,e.hour=!1):!n.getHours()&&n.getDate()>1?n.getDate()-t.getDate()==1&&(e.hour=!0,e.day=!1):1===n.getDate()&&n.getMonth()?n.getMonth()-t.getMonth()==1&&(e.day=!0,e.month=!1):!n.getMonth()&&n.getFullYear()&&n.getFullYear()-t.getFullYear()==1&&(e.month=!0,e.year=!1)}(a,e>t?t:e,e>t?e:t),s(a,r=o.getDateUnitInterval(a),!0),s(a,r=o.getDateUnitInterval(n||"second"),!1),a[{week:"day"}[r]||r]=!0,this.getDateFormatByDifferences(a)}})},function(e,t,n){var i=n(2),o=n(12),a=function(e,t){if(!r(e))return!1;var n=e.nodeName.toLowerCase(),i=!isNaN(t),o=e.disabled,a=/^(input|select|textarea|button|object|iframe)$/.test(n),s="a"===n,l=e.isContentEditable;return a||l?!o:s&&e.href||i},r=function(e){var t=i(e);return t.is(":visible")&&"hidden"!==t.css("visibility")&&"hidden"!==t.parents().css("visibility")};e.exports={focusable:function(e,t){return a(t,i(t).attr("tabIndex"))},tabbable:function(e,t){var n=i(t).attr("tabIndex");return(isNaN(n)||n>=0)&&a(t,n)},focused:function(e){var t=i(e).get(0);return o.getActiveElement()===t}}},function(e,t,n){var i=n(2),o=n(71),a=n(5),r=n(130),s=n(3),l=n(1).isPrimitive,u=function(){var e=function(e,t,n){return t(function(){return e},n)},t=function(e,t,n,i,o){var a={},r=n.slice(),l=s.map(n,function(n){var s=i[n];return t(s?function(){return s(e)}:function(){return e[n]},function(e){if(a[n]=e,r.length){var t=r.indexOf(n);t>=0&&r.splice(t,1)}r.length||o(a)})});return function(){s.each(l,function(e,t){t()})}};return function(n,i,o,a,r){var s,u;return s=e(n,i,function(e){return u&&u(),l(e)?void r(e):void(u=t(e,i,o,a,function(e){r(e)}))}),function(){u&&u(),s&&s()}}}();e.exports=o.inherit({ctor:function(e,t,n,i){this._render=e,this._fields=t,this._fieldsMap=i||{},this._watchMethod=n},_renderCore:function(e){var t=i(e.container),n=u(e.model,this._watchMethod,this._fields,this._fieldsMap,function(n){t.empty(),this._render(t,n,e.model)}.bind(this));return a.on(t,r,n),t.contents()}})},function(e,t,n){var i=n(2),o=n(5),a=n(7),r=n(0).extend,s=n(27),l=n(21),u=n(10).getPublicElement,c=n(125),d=n(4),h=n(3).each,p=n(1),f=n(13).inArray,g=n(126),_=n(37),m=n(131),v=m.abstract,y="VisibilityChange",b=m.inherit({_getDefaultOptions:function(){return r(this.callBase(),{width:void 0,height:void 0,rtlEnabled:s().rtlEnabled,elementAttr:{},disabled:!1,integrationOptions:{}})},ctor:function(e,t){this._$element=i(e),g.attachInstanceToElement(this._$element,this,this._dispose),this.callBase(t)},_visibilityChanged:v,_dimensionChanged:v,_init:function(){this.callBase(),this._attachWindowResizeCallback()},_setOptionsByDevice:function(e){this.callBase([].concat(this.constructor._classCustomRules||[],e||[]))},_isInitialOptionValue:function(e){return!(this.constructor._classCustomRules&&this._convertRulesToOptions(this.constructor._classCustomRules).hasOwnProperty(e))&&this.callBase(e)},_attachWindowResizeCallback:function(){if(this._isDimensionChangeSupported()){var e=this._windowResizeCallBack=this._dimensionChanged.bind(this);c.add(e)}},_isDimensionChangeSupported:function(){return this._dimensionChanged!==v},_renderComponent:function(){this._initMarkup(),a.hasWindow()&&this._render()},_initMarkup:function(){this._renderElementAttributes(),this._toggleRTLDirection(this.option("rtlEnabled")),this._renderVisibilityChange(),this._renderDimensions()},_render:function(){this._attachVisibilityChangeHandlers()},_renderElementAttributes:function(){var e=r({},this.option("elementAttr")),t=e.class;delete e.class,this.$element().attr(e).addClass(t)},_renderVisibilityChange:function(){this._isDimensionChangeSupported()&&this._attachDimensionChangeHandlers(),this._isVisibilityChangeSupported()&&this.$element().addClass("dx-visibility-change-handler")},_renderDimensions:function(){var e=this.$element(),t=e.get(0),n=this._getOptionValue("width",t),i=this._getOptionValue("height",t);this._isCssUpdateRequired(t,i,n)&&e.css({width:n,height:i})},_isCssUpdateRequired:function(e,t,n){return!!(n||t||e.style.width||e.style.height)},_attachDimensionChangeHandlers:function(){var e=this,t="dxresize."+this.NAME+y;o.off(e.$element(),t),o.on(e.$element(),t,function(){e._dimensionChanged()})},_attachVisibilityChangeHandlers:function(){if(this._isVisibilityChangeSupported()){var e=this,t="dxhiding."+this.NAME+y,n="dxshown."+this.NAME+y;e._isHidden=!e._isVisible(),o.off(e.$element(),t),o.on(e.$element(),t,function(){e._checkVisibilityChanged("hiding")}),o.off(e.$element(),n),o.on(e.$element(),n,function(){e._checkVisibilityChanged("shown")})}},_isVisible:function(){return this.$element().is(":visible")},_checkVisibilityChanged:function(e){"hiding"===e&&this._isVisible()&&!this._isHidden?(this._visibilityChanged(!1),this._isHidden=!0):"shown"===e&&this._isVisible()&&this._isHidden&&(this._isHidden=!1,this._visibilityChanged(!0))},_isVisibilityChangeSupported:function(){return this._visibilityChanged!==v&&a.hasWindow()},_clean:d.noop,_modelByElement:function(){return(this.option("modelByElement")||d.noop)(this.$element())},_invalidate:function(){if(!this._updateLockCount)throw l.Error("E0007");this._requireRefresh=!0},_refresh:function(){this._clean(),this._renderComponent()},_dispose:function(){this.callBase(),this._clean(),this._detachWindowResizeCallback()},_detachWindowResizeCallback:function(){this._isDimensionChangeSupported()&&c.remove(this._windowResizeCallBack)},_toggleRTLDirection:function(e){this.$element().toggleClass("dx-rtl",e)},_createComponent:function(e,t,n){var o=this;n=n||{};var a,s=d.grep(["rtlEnabled","disabled"],function(e){return!(e in n)}),l=o.option("nestedComponentOptions")||d.noop;if(o._extendConfig(n,r({integrationOptions:this.option("integrationOptions"),rtlEnabled:this.option("rtlEnabled"),disabled:this.option("disabled")},l(this))),p.isString(t)){var u=i(e)[t](n);a=u[t]("instance")}else e&&((a=t.getInstance(e))?a.option(n):a=new t(e,n));if(a){var c=function(e){f(e.name,s)>=0&&a.option(e.name,e.value)};o.on("optionChanged",c),a.on("disposing",function(){o.off("optionChanged",c)})}return a},_extendConfig:function(e,t){h(t,function(t,n){e[t]=e.hasOwnProperty(t)?e[t]:n})},_defaultActionConfig:function(){return r(this.callBase(),{context:this._modelByElement(this.$element())})},_defaultActionArgs:function(){var e=this._modelByElement(this.$element());return r(this.callBase(),{element:this.element(),model:e})},_optionChanged:function(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:function(e){for(var t=e.attributes.length-1;t>=0;t--){var n=e.attributes[t];if(!n)return;var i=n.name;0!==i.indexOf("aria-")&&-1===i.indexOf("dx-")&&"role"!==i&&"style"!==i&&"tabindex"!==i||e.removeAttribute(i)}},_removeClasses:function(e){var t=e.className.split(" ").filter(function(e){return 0!==e.lastIndexOf("dx-",0)});e.className=t.join(" ")},endUpdate:function(){var e=!this._initializing&&!this._initialized;this.callBase.apply(this,arguments),this._updateLockCount||(e?this._renderComponent():this._requireRefresh&&(this._requireRefresh=!1,this._refresh()))},$element:function(){return this._$element},element:function(){return u(this.$element())},dispose:function(){var e=this.$element().get(0);_.cleanDataRecursive(e,!0),e.textContent="",this._removeAttributes(e),this._removeClasses(e)}});b.getInstance=function(e){return g.getInstanceByElement(i(e),this)},b.defaultOptions=function(e){this._classCustomRules=this._classCustomRules||[],this._classCustomRules.push(e)},e.exports=b},function(e,t,n){var i=n(3).each,o=n(113),a=function(e,t){var n={};"noBubble"in t&&(n.noBubble=t.noBubble),"bindType"in t&&(n.bindType=t.bindType),"delegateType"in t&&(n.delegateType=t.delegateType),i(["setup","teardown","add","remove","trigger","handle","_default","dispose"],function(e,i){t[i]&&(n[i]=function(){var e=[].slice.call(arguments);return e.unshift(this),t[i].apply(t,e)})}),o.fire(e,n)};a.callbacks=o,e.exports=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=n(40),a=i(n(41)),r=n(35),s=i(n(91)),l=i(n(132)),u=s.default.inherit({ctor:function(e){e=Array.isArray(e)?{data:e}:e||{},this.callBase(e);var t=e.data;if(t&&!Array.isArray(t))throw r.errors.Error("E4006");this._array=t||[]},createQuery:function(){return(0,a.default)(this._array,{errorHandler:this._errorHandler})},_byKeyImpl:function(e){var t=l.default.indexByKey(this,this._array,e);return-1===t?(0,o.rejectedPromise)(r.errors.Error("E4009")):(0,o.trivialPromise)(this._array[t])},_insertImpl:function(e){return l.default.insert(this,this._array,e)},_pushImpl:function(e){l.default.applyBatch(this,this._array,e)},_updateImpl:function(e,t){return l.default.update(this,this._array,e,t)},_removeImpl:function(e){return l.default.remove(this,this._array,e)},clear:function(){this.fireEvent("modifying"),this._array=[],this.fireEvent("modified")}},"array");e.exports=u},function(e,t){e.exports=window.Globalize},function(e,t,n){e.exports=function(e){var t,n=function(){return t=e.apply(this,arguments),n=function(){return t},t};return function(){return n.apply(this,arguments)}}},function(e,t,n){var i=n(2),o=n(12),a=n(25),r=n(10),s=n(14),l=s.abstract,u=a(),c=s.inherit({render:function(e){var t=(e=e||{}).onRendered;delete e.onRendered;var n=this._renderCore(e);return this._ensureResultInContainer(n,e.container),u.fire(n,e.container),t&&t(),n},_ensureResultInContainer:function(e,t){if(t){var n=i(t),a=r.contains(n.get(0),e.get(0));if(n.append(e),!a)o.getBody().contains(n.get(0))&&r.triggerShownEvent(e)}},_renderCore:l});e.exports=c,e.exports.renderedCallbacks=u},function(e,t,n){var i=n(2),o="dx-inkripple",a="dx-inkripple-wave",r="dx-inkripple-showing",s="dx-inkripple-hiding",l=function(e){var t=e.children("."+o);return 0===t.length&&(t=i("<div>").addClass(o).appendTo(e)),t},u=function(e,t){for(var n=l(e),o=n.children("."+a).toArray(),r=o.length;r<t;r++){var s=i("<div>").appendTo(n).addClass(a);o.push(s[0])}return i(o)},c=function(e,t){var n=u(t.element,e.wavesNumber).eq(t.wave||0);e.hidingTimeout&&clearTimeout(e.hidingTimeout),p(n),n.css(function(e,t){var n,i,o=t.element,a=o.outerWidth(),r=o.outerHeight(),s=parseInt(Math.sqrt(a*a+r*r)),l=Math.min(4e3,parseInt(s*e.waveSizeCoefficient));if(e.isCentered)n=(a-l)/2,i=(r-l)/2;else{var u=t.event,c=t.element.offset();n=u.pageX-c.left-l/2,i=u.pageY-c.top-l/2}return{left:n,top:i,height:l,width:l}}(e,t)),e.showingTimeout=setTimeout(d.bind(this,e,n),0)},d=function(e,t){var n=e.durations.showingScale+"ms";t.addClass(r).css("transitionDuration",n)},h=function(e){return{showingScale:e?1e3:300,hidingScale:300,hidingOpacity:300}},p=function(e){e.removeClass(s).css("transitionDuration","")},f=function(e,t){e.showingTimeout&&clearTimeout(e.showingTimeout);var n=u(t.element,t.wavesNumber).eq(t.wave||0),i=e.durations,o=i.hidingScale+"ms, "+i.hidingOpacity+"ms";n.addClass(s).removeClass(r).css("transitionDuration",o);var a=Math.max(i.hidingScale,i.hidingOpacity);e.hidingTimeout=setTimeout(p.bind(this,n),a)};e.exports={render:function(e){void 0===(e=e||{}).useHoldAnimation&&(e.useHoldAnimation=!0);var t={waveSizeCoefficient:e.waveSizeCoefficient||2,isCentered:e.isCentered||!1,wavesNumber:e.wavesNumber||1,durations:h(e.useHoldAnimation)};return{showWave:c.bind(this,t),hideWave:f.bind(this,t)}}}},function(e,t,n){function i(e){return e>0?Math.round(e):0}function o(e,t){t.color=t.data[e.colorField]||e.getColor(t)||t.parent.color,t.updateStyles(),t.tile=!t.ctx.forceReset&&t.tile||C[Number(t.isNode())](e,t),t.applyState()}function a(e,t){t.updateLabelStyle(),t.labelState.visible&&function(e,t,n,i){var o=t.data[e.labelField];t.label=o?String(o):null,(o=t.customLabel||t.label)&&(t.text=e.renderer.text(o).attr(n.attr).css(n.css).append(e.group),e.setTrackerData(t,t.text))}(e,t,t.labelState,t.labelParams)}function r(e,t){var n,i=t.nodes,o=[],a=[],r=0,s=o.length=a.length=i.length;for(n=0;n<s;++n)r+=i[n].value,o[n]={value:i[n].value,i:n};for(r>0&&e.algorithm({items:o.slice(),sum:r,rect:t.innerRect.slice(),isRotated:1&i[0].level,directions:e.directions}),n=0;n<s;++n)a[n]=o[n].rect||k;t.rects=a}function s(e,t){var n,i=t.parent.rects[t.index],o=e.rectOffsets;t.isNode()?(c(t.tile.outer,u(i,t.parent.innerRect,o.headerEdge,o.headerInner)),i=l(i,e.groupPadding),n=Math.min(e.headerHeight,i[3]-i[1]),t.rect=[i[0],i[1],i[2],i[1]+n],c(t.tile.inner,l(t.rect,o.headerEdge)),i[1]+=n,t.innerRect=i,r(e,t)):(t.rect=i,c(t.tile,u(i,t.parent.innerRect,o.tileEdge,o.tileInner)))}function l(e,t){return[e[0]+t,e[1]+t,e[2]-t,e[3]-t]}function u(e,t,n,i){return[e[0]+(e[0]===t[0]?n:+i),e[1]+(e[1]===t[1]?n:+i),e[2]-(e[2]===t[2]?n:-i),e[3]-(e[3]===t[3]?n:-i)]}function c(e,t){e.attr({x:t[0],y:t[1],width:b(t[2]-t[0],0),height:b(t[3]-t[1],0)})}function d(e,t){t.text&&t.labelState.visible&&function(e,t){var n=e.rect,i=e.text,o=i.getBBox(),a=t.paddingLeftRight,r=t.paddingTopBottom,s=n[2]-n[0]-2*a,l=o.height+r<=n[3]-n[1],u=o.width<=s,c=t.resolveLabelOverflow,d=t.groupLabelOverflow,h=t.tileLabelOverflow,p=t.tileLabelWordWrap;(0,v.isDefined)(c)?"ellipsis"===c&&l&&(i.setMaxSize(s,void 0,{wordWrap:"none",textOverflow:"ellipsis"}),u||(o=i.getBBox(),u=o.width<=s)):(u=!0,l=!0,i.setMaxSize(s,n[3]-n[1]-r,e.isNode()?{textOverflow:d,wordWrap:"none"}:{textOverflow:h,wordWrap:p,hideOverflowEllipsis:!0})),i.attr({visibility:l&&u?"visible":"hidden"}),l&&u&&i.move(t.rtlEnabled?n[2]-a-o.x-o.width:n[0]+a-o.x,n[1]+r-o.y)}(t,t.labelParams)}var h=n(272),p=function(e){return e&&e.__esModule?e:{default:e}}(n(170)),f=n(122),g=n(123),_=n(11),m=n(4),v=n(1),y=n(0),b=Math.max,x={lefttoprightbottom:[1,1],leftbottomrighttop:[1,-1],righttopleftbottom:[-1,1],rightbottomlefttop:[-1,-1]};n(411),n(122).setDefaultAlgorithm("squarified"),n(413),n(123).setDefaultColorizer("discrete");var w=n(98).inherit({_handlers:{beginBuildNodes:m.noop,buildNode:m.noop,endBuildNodes:m.noop,setTrackerData:m.noop,calculateState:function(e){return(0,h.buildRectAppearance)(e)}},_rootClass:"dxtm-tree-map",_rootClassPrefix:"dxtm",_getDefaultSize:function(){return{width:400,height:400}},_setDeprecatedOptions:function(){this.callBase.apply(this,arguments),(0,y.extend)(this._deprecatedOptions,{resolveLabelOverflow:{since:"19.1",message:"Use the 'tile.label.overflow' and 'group.label.textOverflow' option instead"}})},_themeSection:"treeMap",_fontFields:["tile.label.font","group.label.font"],_init:function(){var e=this;e._rectOffsets={},e._handlers=Object.create(e._handlers),e._context={suspend:function(){e._applyingChanges||e._suspendChanges()},resume:function(){e._applyingChanges||e._resumeChanges()},change:function(t){e._change(t)},settings:[{},{}],calculateState:e._handlers.calculateState,calculateLabelState:h.buildTextAppearance},e._root=e._topNode={nodes:[]},e.callBase.apply(e,arguments)},_initialChanges:["DATA_SOURCE"],_initCore:function(){var e=this,t=e._renderer;e._createProxyType(),e._tilesGroup=t.g().linkOn(t.root,"tiles").linkAppend(),e._labelsGroup=t.g().linkOn(t.root,"labels").linkAppend()},_createProxyType:m.noop,_disposeCore:function(){var e=this;e._filter&&e._filter.dispose(),e._labelsGroup.linkOff(),e._tilesGroup.linkOff()},_applySize:function(e){this._tilingRect=e.slice(),this._change(["TILING"])},_optionChangesMap:{dataSource:"DATA_SOURCE",valueField:"NODES_CREATE",childrenField:"NODES_CREATE",colorField:"TILES",colorizer:"TILES",labelField:"LABELS",tile:"TILE_SETTINGS",group:"GROUP_SETTINGS",maxDepth:"MAX_DEPTH",layoutAlgorithm:"TILING",layoutDirection:"TILING",resolveLabelOverflow:"LABEL_OVERFLOW"},_themeDependentChanges:["TILE_SETTINGS","GROUP_SETTINGS","MAX_DEPTH"],_changeDataSource:function(){var e=this;e._isDataExpected=e._isSyncData=!0,e._updateDataSource(),e._isSyncData=!1,e._isDataExpected&&e._suspendChanges()},_dataSourceChangedHandler:function(){var e=this;e._isDataExpected?(e._isDataExpected=!1,e._change(["NODES_CREATE"]),e._isSyncData||e._resumeChanges()):e._requestChange(["NODES_CREATE"])},_optionChangesOrder:["DATA_SOURCE","TILE_SETTINGS","GROUP_SETTINGS","MAX_DEPTH","LABEL_OVERFLOW"],_change_DATA_SOURCE:function(){this._changeDataSource()},_change_TILE_SETTINGS:function(){this._changeTileSettings()},_change_GROUP_SETTINGS:function(){this._changeGroupSettings()},_change_LABEL_OVERFLOW:function(){this._changeTileSettings(),this._changeGroupSettings()},_change_MAX_DEPTH:function(){this._changeMaxDepth()},_customChangesOrder:["NODES_CREATE","NODES_RESET","TILES","LABELS","TILING","LABELS_LAYOUT"],_change_NODES_CREATE:function(){this._buildNodes()},_change_NODES_RESET:function(){this._resetNodes()},_change_TILES:function(){this._applyTilesAppearance()},_change_LABELS:function(){this._applyLabelsAppearance()},_change_TILING:function(){this._performTiling()},_change_LABELS_LAYOUT:function(){this._performLabelsLayout()},_applyChanges:function(){var e=this;e.callBase.apply(e,arguments),e._isDataExpected||e._drawn(),e._context.forceReset=!1},_buildNodes:function(){var e,t=this,n=t._root=t._topNode=new p.default;n._id=0,n.parent={},n.data={},n.level=n.index=-1,n.ctx=t._context,n.label=null,t._nodes=[n],t._handlers.beginBuildNodes(),function e(t,n,i,o){var a,r,s,l,u=[],c=o.nodes,d=n.length,h=0;for(r=0;r<d;++r)s=n[r],(a=new p.default)._id=c.length,a.ctx=o.ctx,a.parent=t,a.level=i,a.index=u.length,a.data=s,o.buildNode(a),c.push(a),u.push(a),(l=s[o.itemsField])&&l.length&&e(a,l,i+1,o),s[o.valueField]>0&&(a.value=Number(s[o.valueField])),h+=a.value;t.nodes=u,t.value=h}(n,(e=t._processDataSourceItems(t._dataSourceItems()||[])).items,0,{itemsField:!e.isPlain&&t._getOption("childrenField",!0)||"items",valueField:t._getOption("valueField",!0)||"value",buildNode:t._handlers.buildNode,ctx:t._context,nodes:t._nodes}),t._onNodesCreated(),t._handlers.endBuildNodes(),t._change(["NODES_RESET"])},_onNodesCreated:m.noop,_processDataSourceItems:function(e){return{items:e,isPlain:!1}},_changeTileSettings:function(){var e=this,t=e._getOption("tile"),n=e._rectOffsets,o=i(t.border.width),a=o/2,r=1&o?.5:0,s=t.label,l=e._context.settings[0];e._change(["TILES","LABELS"]),l.state=e._handlers.calculateState(t),e._filter=e._filter||e._renderer.shadowFilter("-50%","-50%","200%","200%"),e._filter.attr(s.shadow),e._calculateLabelSettings(l,s,e._filter.id),n.tileEdge===a&&n.tileInner===r||(n.tileEdge=a,n.tileInner=r,e._change(["TILING"]))},_changeGroupSettings:function(){var e,t=this,n=t._getOption("group"),o=n.label,a=t._rectOffsets,r=i(n.border.width),s=r/2,l=1&r?.5:0,u=i(n.padding),c=t._context.settings[1];t._change(["TILES","LABELS"]),c.state=t._handlers.calculateState(n),t._calculateLabelSettings(c,o),e=n.headerHeight>=0?i(n.headerHeight):c.labelParams.height+2*i(o.paddingTopBottom),t._headerHeight!==e&&(t._headerHeight=e,t._change(["TILING"])),t._groupPadding!==u&&(t._groupPadding=u,t._change(["TILING"])),a.headerEdge===s&&a.headerInner===l||(a.headerEdge=s,a.headerInner=l,t._change(["TILING"]))},_calculateLabelSettings:function(e,t,n){var o=this._getTextBBox(t.font),a=i(t.paddingLeftRight),r=i(t.paddingTopBottom),s=this._getOption("tile.label"),l=this._getOption("group.label");e.labelState=(0,h.buildTextAppearance)(t,n),e.labelState.visible=!("visible"in t&&!t.visible),this._suppressDeprecatedWarnings(),e.labelParams={height:o.height,rtlEnabled:this._getOption("rtlEnabled",!0),paddingTopBottom:r,paddingLeftRight:a,resolveLabelOverflow:this._getOption("resolveLabelOverflow",!0),tileLabelWordWrap:s.wordWrap,tileLabelOverflow:s.textOverflow,groupLabelOverflow:l.textOverflow},this._resumeDeprecatedWarnings()},_changeMaxDepth:function(){var e=this._getOption("maxDepth",!0);e=e>=1?Math.round(e):1/0,this._maxDepth!==e&&(this._maxDepth=e,this._change(["NODES_RESET"]))},_resetNodes:function(){var e=this;e._tilesGroup.clear(),e._renderer.initHatching(),e._context.forceReset=!0,e._context.minLevel=e._topNode.level+1,e._context.maxLevel=e._context.minLevel+e._maxDepth-1,e._change(["TILES","LABELS","TILING"])},_processNodes:function(e,t){!function e(t,n,i){var o,a,r=n.nodes,s=r.length;for(a=0;a<s;++a)i(t,o=r[a]),o.isNode()&&e(t,o,i)}(e,this._topNode,t)},_applyTilesAppearance:function(){var e=this,t=(0,g.getColorizer)(e._getOption("colorizer"),e._themeManager,e._topNode);e._processNodes({renderer:e._renderer,group:e._tilesGroup,setTrackerData:e._handlers.setTrackerData,colorField:e._getOption("colorField",!0)||"color",getColor:t},o)},_applyLabelsAppearance:function(){var e=this;e._labelsGroup.clear(),e._processNodes({renderer:e._renderer,group:e._labelsGroup,setTrackerData:e._handlers.setTrackerData,labelField:e._getOption("labelField",!0)||"name"},a),e._change(["LABELS_LAYOUT"])},_performTiling:function(){var e=this,t={algorithm:(0,f.getAlgorithm)(e._getOption("layoutAlgorithm",!0)),directions:x[String(e._getOption("layoutDirection",!0)).toLowerCase()]||x.lefttoprightbottom,headerHeight:e._headerHeight,groupPadding:e._groupPadding,rectOffsets:e._rectOffsets};e._topNode.innerRect=e._tilingRect,r(t,e._topNode),e._processNodes(t,s),e._change(["LABELS_LAYOUT"]),e._onTilingPerformed()},_onTilingPerformed:m.noop,_performLabelsLayout:function(){this._processNodes(null,d)},_getTextBBox:function(e){var t,n=this._renderer,i=this._textForCalculations||n.text("0",0,0);return this._textForCalculations=i,i.css((0,_.patchFontOptions)(e)).append(n.root),t=i.getBBox(),i.remove(),t}}),C=[function(e,t){var n=e.renderer.simpleRect().append(e.group);return e.setTrackerData(t,n),n},function(e,t){var n=e.renderer.simpleRect().append(e.group),i=e.renderer.simpleRect().append(e.group);return e.setTrackerData(t,i),{outer:n,inner:i}}],k=[0,0,0,0];n(8)("dxTreeMap",w),e.exports=w,w.addPlugin(n(145).plugin)},function(e,t,n){var i=n(82).logger,o=n(52);e.exports=o({isWrapped:function(){return!1},isWritableWrapped:function(){return!1},wrap:function(e){return e},unwrap:function(e){return e},assign:function(){i.error("Method 'assign' should not be used for not wrapped variables. Use 'isWrapped' method for ensuring.")}})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o={toXml:function(e,t,n){var o=["<",e];for(var a in t){var r=t[a];(0,i.isDefined)(r)&&o.push(" ",a,'="',r,'"')}return(0,i.isDefined)(n)&&""!==n?o.push(">",n,"</",e,">"):o.push(" />"),o.join("")}};t.default=o},function(e,t,n){var i=n(2),o=n(47).add,a=n(25)(),r=i(),s=function(){var e;return function(t){if(!arguments.length)return e;var n=i(t);r=n;var o=!!n.length,l=s();e=o?n:i("body"),a.fire(o?s():i(),l)}}();o(function(){s(".dx-viewport")}),t.value=s,t.changeCallback=a,t.originalViewPort=function(){return r}},function(e,t,n){var i,o=n(2),a=n(4),r=n(3).each,s=n(7).getWindow(),l=n(12),u=n(1).isWindow,c=n(0).extend,d=n(26),h=n(44),p=/left|right/,f=/top|bottom/,g=/fit|flip|none/,_=function(e){var t={h:"center",v:"center"},n=a.splitPair(e);return n&&r(n,function(){var e=String(this).toLowerCase();p.test(e)?t.h=e:f.test(e)&&(t.v=e)}),t},m=function(e){return a.pairToObject(e)},v=function(e){var t=a.splitPair(e),n=String(t&&t[0]).toLowerCase(),i=String(t&&t[1]).toLowerCase();return g.test(n)||(n="none"),g.test(i)||(i=n),{h:n,v:i}},y=function(e){switch(e){case"center":return.5;case"right":case"bottom":return 1;default:return 0}},b=function(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return e}},x=function(e,t){var n=0;return e.myLocation<t.min&&(n+=t.min-e.myLocation),e.myLocation>t.max&&(n+=e.myLocation-t.max),n},w=function(e,t,n){return t.myLocation<n.min?"h"===e?"left":"top":t.myLocation>n.max?"h"===e?"right":"bottom":"none"},C=function(e){e.myLocation=e.atLocation+y(e.atAlign)*e.atSize-y(e.myAlign)*e.mySize+e.offset},k={fit:function(e,t){var n=!1;e.myLocation>t.max&&(e.myLocation=t.max,n=!0),e.myLocation<t.min&&(e.myLocation=t.min,n=!0),e.fit=n},flip:function(e,t){if(e.flip=!1,("center"!==e.myAlign||"center"!==e.atAlign)&&(e.myLocation<t.min||e.myLocation>t.max)){var n=c({},e,{myAlign:b(e.myAlign),atAlign:b(e.atAlign),offset:-e.offset});C(n),n.oversize=x(n,t),(n.myLocation>=t.min&&n.myLocation<=t.max||e.oversize>n.oversize)&&(e.myLocation=n.myLocation,e.oversize=n.oversize,e.flip=!0)}},flipfit:function(e,t){this.flip(e,t),this.fit(e,t)},none:function(e){e.oversize=0}},S=function(){var e=o("<div>").css({width:100,height:100,overflow:"scroll",position:"absolute",top:-9999}).appendTo(o("body")),t=e.get(0).offsetWidth-e.get(0).clientWidth;e.remove(),i=t},I={h:{location:0,flip:!1,fit:!1,oversize:0},v:{location:0,flip:!1,fit:!1,oversize:0}},T=function(e,t){var n=o(e),a=n.offset(),r=c(!0,{},I,{h:{location:a.left},v:{location:a.top}});if(!t)return r;var d=_(t.my),p=_(t.at),f=o(t.of).length&&t.of||s,g=m(t.offset),y=v(t.collision),b=t.boundary,T=m(t.boundaryOffset),D={mySize:n.outerWidth(),myAlign:d.h,atAlign:p.h,offset:g.h,collision:y.h,boundaryOffset:T.h},E={mySize:n.outerHeight(),myAlign:d.v,atAlign:p.v,offset:g.v,collision:y.v,boundaryOffset:T.v};if(f.preventDefault)D.atLocation=f.pageX,E.atLocation=f.pageY,D.atSize=0,E.atSize=0;else if(f=o(f),u(f[0]))D.atLocation=f.scrollLeft(),E.atLocation=f.scrollTop(),D.atSize=f[0].innerWidth>f[0].outerWidth?f[0].innerWidth:f.width(),E.atSize=f[0].innerHeight>f[0].outerHeight?f[0].innerHeight:f.height();else if(9===f[0].nodeType)D.atLocation=0,E.atLocation=0,D.atSize=f.width(),E.atSize=f.height();else{var A=f.offset();D.atLocation=A.left,E.atLocation=A.top,D.atSize=f.outerWidth(),E.atSize=f.outerHeight()}C(D),C(E);var O=function(){var e=o(s),t=e.width(),n=e.height(),a=e.scrollLeft(),r=e.scrollTop(),u=l.getDocumentElement(),c=h.touch?u.clientWidth/t:1,d=h.touch?u.clientHeight/n:1;void 0===i&&S();var p=t,f=n;if(b){var g=o(b),_=g.offset();a=_.left,r=_.top,p=g.width(),f=g.height()}return{h:{min:a+D.boundaryOffset,max:a+p/c-D.mySize-D.boundaryOffset},v:{min:r+E.boundaryOffset,max:r+f/d-E.mySize-E.boundaryOffset}}}();D.oversize=x(D,O.h),E.oversize=x(E,O.v),D.collisionSide=w("h",D,O.h),E.collisionSide=w("v",E,O.v),k[D.collision]&&k[D.collision](D,O.h),k[E.collision]&&k[E.collision](E,O.v);var P=function(e){return t.precise?e:Math.round(e)};return c(!0,r,{h:{location:P(D.myLocation),oversize:P(D.oversize),fit:D.fit,flip:D.flip,collisionSide:D.collisionSide},v:{location:P(E.myLocation),oversize:P(E.oversize),fit:E.fit,flip:E.flip,collisionSide:E.collisionSide},precise:t.precise}),r},D=function(e,t){var n=o(e);if(!t)return n.offset();d.resetPosition(n,!0);var i=n.offset(),a=t.h&&t.v?t:T(n,t),r=function(e){return t.precise?e:Math.round(e)};return d.move(n,{left:a.h.location-r(i.left),top:a.v.location-r(i.top)}),a};D.inverseAlign||(D.inverseAlign=b),D.normalizeAlign||(D.normalizeAlign=_),e.exports={calculateScrollbarWidth:S,calculate:T,setup:D,offset:function(e){return e=o(e).get(0),u(e)?null:e&&"pageY"in e&&"pageX"in e?{top:e.pageY,left:e.pageX}:o(e).offset()}}},function(e,t,n){var i=n(53),o=n(27),a=o().useJQuery;i&&!1!==a&&o({useJQuery:!0}),e.exports=function(){return i&&o().useJQuery}},function(e,t,n){function i(e){return function t(n,i,o,a,r,s){function l(e,r,s){_(t(n,i,o,a,r,s)).done(e.resolve)}var u,c,d,h;for(a=a||[],n=n||[],c=r=r||0;c<n.length;c++){if(e&&c>r&&c%1e4==0&&new Date-y>=300)return y=new Date,d=new m,setTimeout(l(d,c,!1),0),d;if(u=n[c],!s){if(a.unshift(u),o&&!1===i(a,c))return;if(u.children&&(h=t(u.children,i,o,a),e&&h))return d=new m,h.done(l(d,c,!0)),d}if(s=!1,!o&&!1===i(a,c))return;a.shift(),n[c]!==u&&c--}}}function o(e){return l.map(["year","quarter","month"],function(t,n){return u({},e,{groupInterval:t,groupIndex:n})})}var a=n(1),r=n(62),s=n(20),l=n(3),u=n(0).extend,c=n(1).isDefined,d=n(33),h=n(63),p=n(45),f=n(68),g=n(6),_=g.when,m=g.Deferred,v=t.setFieldProperty=function(e,t,n,i){var o=e._initProperties=e._initProperties||{},a=i?n:e[t];o.hasOwnProperty(t)&&!i||(o[t]=a),e[t]=n};t.sendRequest=function(e){return r.sendRequest(e)};var y=new Date;t.foreachTree=i(!1),t.foreachTreeAsync=i(!0),t.findField=function(e,t){var n,i;if(e&&a.isDefined(t))for(n=0;n<e.length;n++)if((i=e[n]).name===t||i.caption===t||i.dataField===t||i.index===t)return n;return-1},t.formatValue=function(e,t){var n={value:e,valueText:h.format(e,t.format)||""};return t.customizeText?t.customizeText.call(t,n):n.valueText},t.getCompareFunction=function(e){return function(t,n){var i=0,o=e(t),a=e(n),r=c(o),s=c(a);return r&&s&&(o>a?i=1:o<a&&(i=-1)),r&&!s&&(i=1),!r&&s&&(i=-1),i}},t.createPath=function(e){var t,n=[];for(t=e.length-1;t>=0;t--)n.push(e[t].key||e[t].value);return n},t.foreachDataLevel=function e(t,n,i,o){var a,r;for(i=i||0,o=o||"children",t.length&&n(t,i),r=0;r<t.length;r++)(a=t[r])[o]&&a[o].length&&e(a[o],n,i+1,o)},t.mergeArraysByMaxValue=function(e,t){var n,i=[];for(n=0;n<e.length;n++)i.push(Math.max(e[n]||0,t[n]||0));return i},t.getExpandedLevel=function(e,t){var n=e[t],i=0,o=("columns"===t?e.columnExpandedPaths:e.rowExpandedPaths)||[];for(e.headerName===t?i=e.path.length:e.headerName&&e.headerName!==t&&e.oppositePath?i=e.oppositePath.length:l.each(o,function(e,t){i=Math.max(i,t.length)});n[i+1]&&n[i].expanded;)i++;return i},t.discoverObjectFields=function(e,n){var i=t.getFieldsDataType(n);return function e(t,n,i,r){var u=[];return l.each(n||[],function(n,l){if(!n||0!==n.indexOf("__")){for(var c,d=1,h=i.length?i+"."+n:n,p=r[h],f=s.compileGetter(h);!a.isDefined(l)&&t[d];)l=f(t[d]),d++;!p&&a.isDefined(l)&&(p=a.type(l)),c=[{dataField:h,dataType:p,groupName:"date"===p?n:void 0,groupInterval:void 0,displayFolder:i}],"date"===p?c=c.concat(o(c[0])):"object"===p&&(c=e(t,l,h,r)),u.push.apply(u,c)}}),u}(e,e[0],"",i)},t.getFieldsDataType=function(e){var t={};return l.each(e,function(e,n){t[n.dataField]=t[n.dataField]||n.dataType}),t};var b={month:function(e){return d.getMonthNames()[e-1]},quarter:function(e){return d.format(new Date(2e3,3*e-1),"quarter")},dayOfWeek:function(e){return d.getDayNames()[e]}};t.setDefaultFieldValueFormatting=function(e){if("date"===e.dataType)e.format||v(e,"format",b[e.groupInterval]);else if("number"===e.dataType){var t=a.isNumeric(e.groupInterval)&&e.groupInterval>0&&e.groupInterval;t&&!e.customizeText&&v(e,"customizeText",function(n){var i=n.value+t,o=h.format(i,e.format);return n.valueText&&o?n.valueText+" - "+o:""})}},t.getFiltersByPath=function(e,t){var n=[];t=t||[];for(var i=0;i<t.length;i++)n.push(u({},e[i],{groupIndex:null,groupName:null,filterType:"include",filterValues:[t[i]]}));return n},t.storeDrillDownMixin={createDrillDownDataSource:function(e,t){function n(e){return function(t){var n;return i?n=i[e](t):(n=new m,_(o).done(function(o){(i=new f(o))[e](t).done(n.resolve).fail(n.reject)}).fail(n.reject)),n}}var i,o=this.getDrillDownItems(e,t);return new p.DataSource({load:n("load"),totalCount:n("totalCount"),key:this.key()})}},t.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){var i=n(433),o=n(3).each,a=n(1).isPlainObject;e.exports={ctor:function(){this._events={},this.setEventsStrategy(new i(this))},setEventsStrategy:function(e){"function"==typeof e&&(e=e(this)),this._eventsStrategy=e},hasEvent:function(e){return this._eventsStrategy.hasEvent(e)},fireEvent:function(e,t){return this._eventsStrategy.fireEvent(e,t),this},on:function(e,t){return a(e)?o(e,function(e,t){this.on(e,t)}.bind(this)):this._eventsStrategy.on(e,t),this},off:function(e,t){return this._eventsStrategy.off(e,t),this},_disposeEvents:function(){this._eventsStrategy.dispose()}}},function(e,t,n){function i(e,t){return e=e.groupBy(t[0].selector),t.length>1&&(e=e.select(function(e){return r({},e,{items:i(l(e.items),t.slice(1)).toArray()})})),e}function o(e,t){var n=[];return s(e,function(e,i){a(t,function(e){return i.selector===e.selector}).length<1&&n.push(i)}),n.concat(t)}var a=n(4).grep,r=n(0).extend,s=n(3).each,l=n(152),u=n(40).normalizeSortingInfo;e.exports={multiLevelGroup:i,arrangeSortingInfo:o,queryByOptions:function(e,t,n){var a=(t=t||{}).filter;if(a&&(e=e.filter(a)),n)return e;var r=t.sort,l=t.select,c=t.group,d=t.skip,h=t.take;return c&&((c=u(c)).keepInitialKeyOrder=!!t.group.keepInitialKeyOrder),(r||c)&&(r=u(r||[]),c&&!c.keepInitialKeyOrder&&(r=o(c,r)),s(r,function(t){e=e[t?"thenBy":"sortBy"](this.selector,this.desc,this.compare)})),l&&(e=e.select(l)),c&&(e=i(e,c)),(h||d)&&(e=e.slice(d||0,h)),e}}},function(e,t,n){var i=n(1).isFunction,o=function(){},a=function(e){return"undefined"!=typeof console&&i(console[e])?console[e].bind(console):o},r={info:a("info"),warn:a("warn"),error:a("error")},s=function(){function e(e,t){if(!e)throw new Error(t)}return{assert:e,assertParam:function(t,n){e(null!=t,n)}}}();t.logger=r,t.debug=s},function(e,t,n){var i=n(6),o=n(7),a=i.Deferred,r=i.when,s=o.hasWindow()?o.getWindow().Promise:Promise;s||((s=function(e){var t=new a;return e(t.resolve.bind(this),t.reject.bind(this)),t.promise()}).resolve=function(e){return(new a).resolve(e).promise()},s.reject=function(e){return(new a).reject(e).promise()},s.all=function(e){return r.apply(this,e).then(function(){return[].slice.call(arguments)})}),e.exports=s},function(e,t,n){var i=n(32).camelize,o=n(70),a=n(1),r=n(12),s=["","Webkit","Moz","O","Ms"],l={"":"",Webkit:"-webkit-",Moz:"-moz-",O:"-o-",ms:"-ms-"},u=o(function(){return r.createElement("dx").style}),c=["fillOpacity","columnCount","flexGrow","flexShrink","fontWeight","lineHeight","opacity","zIndex","zoom"],d=function(e,t,n){if(e){n=a.isNumeric(n)?n+="px":n;for(var i=0;i<e.length;++i)e[i].style[t]=n}};t.styleProp=function(e){if(e in u())return e;var t=e;e=e.charAt(0).toUpperCase()+e.substr(1);for(var n=1;n<s.length;n++){var i=s[n].toLowerCase()+e;if(i in u())return i}return t},t.stylePropPrefix=function(e){return function(e,t){e=i(e,!0);for(var n,o=0,a=s.length;o<a;o++){var r=s[o],l=r+e;if(void 0===(n=t(i(l),r))&&(n=t(l,r)),void 0!==n)break}return n||""}(e,function(e,t){if(e in u())return l[t]})},t.normalizeStyleProp=function(e,t){return a.isNumeric(t)&&-1===c.indexOf(e)&&(t+="px"),t},t.setWidth=function(e,t){d(e,"width",t)},t.setHeight=function(e,t){d(e,"height",t)}},function(e,t,n){var i=n(52);e.exports=i({locale:function(){var e="en";return function(t){return t?void(e=t):e}}()})},function(e,t,n){var i=n(71),o=n(10),a=i.inherit({ctor:function(e){this._render=e},_renderCore:function(e){return o.normalizeTemplateElement(this._render(e))}});e.exports=a},function(e,t,n){var i=n(45).DataSource,o=n(0).extend,a=n(45).normalizeDataSourceOptions,r="_dataSourceOptions",s="_dataSourceChangedHandler",l="_dataSourceLoadErrorHandler",u="_dataSourceLoadingChangedHandler",c="_dataSourceFromUrlLoadMode",d="_getSpecificDataSourceOption",h={postCtor:function(){this.on("disposing",function(){this._disposeDataSource()}.bind(this))},_refreshDataSource:function(){this._initDataSource(),this._loadDataSource()},_initDataSource:function(){var e,t,n=d in this?this[d]():this.option("dataSource");this._disposeDataSource(),n&&(n instanceof i?(this._isSharedDataSource=!0,this._dataSource=n):(e=r in this?this[r]():{},t=this._dataSourceType?this._dataSourceType():i,n=a(n,{fromUrlLoadMode:c in this&&this[c]()}),this._dataSource=new t(o(!0,{},e,n))),this._addDataSourceHandlers())},_addDataSourceHandlers:function(){s in this&&this._addDataSourceChangeHandler(),l in this&&this._addDataSourceLoadErrorHandler(),u 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[s](e.items(),t)}.bind(this),e.on("changed",this._proxiedDataSourceChangedHandler)},_addDataSourceLoadErrorHandler:function(){this._proxiedDataSourceLoadErrorHandler=this[l].bind(this),this._dataSource.on("loadError",this._proxiedDataSourceLoadErrorHandler)},_addDataSourceLoadingChangedHandler:function(){this._proxiedDataSourceLoadingChangedHandler=this[u].bind(this),this._dataSource.on("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)},_loadDataSource:function(){if(this._dataSource){var e=this._dataSource;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}};e.exports=h},function(e,t,n){var i=n(2),o=n(47),a=n(12),r=n(5),s=n(37),l=n(14),u=n(0).extend,c=n(13).inArray,d=n(3).each,h=n(67),p=n(9),f=n(24),g=n(127),_="dxEventManager",m="dxEmitter",v=new(l.inherit({ctor:function(){this._attachHandlers(),this.reset(),this._proxiedCancelHandler=this._cancelHandler.bind(this),this._proxiedAcceptHandler=this._acceptHandler.bind(this)},_attachHandlers:function(){o.add(function(){var e=a.getDocument();r.subscribeGlobal(e,p.addNamespace(f.down,_),this._pointerDownHandler.bind(this)),r.subscribeGlobal(e,p.addNamespace(f.move,_),this._pointerMoveHandler.bind(this)),r.subscribeGlobal(e,p.addNamespace([f.up,f.cancel].join(" "),_),this._pointerUpHandler.bind(this)),r.subscribeGlobal(e,p.addNamespace(g.name,_),this._mouseWheelHandler.bind(this))}.bind(this))},_eachEmitter:function(e){for(var t=this._activeEmitters||[],n=0;t.length>n;){var i=t[n];if(!1===e(i))break;t[n]===i&&n++}},_applyToEmitters:function(e,t){this._eachEmitter(function(n){n[e].call(n,t)})},reset:function(){this._eachEmitter(this._proxiedCancelHandler),this._activeEmitters=[]},resetEmitter:function(e){this._proxiedCancelHandler(e)},_pointerDownHandler:function(e){p.isMouseEvent(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),n=this._emittersSet||[],i=t.length!==n.length;return d(t,function(e,t){return!(i=i||n[e]!==t)}),this._emittersSet=t,i},_closestEmitter:function(e){function t(t,i){i&&i.validatePointers(e)&&i.validate(e)&&(i.addCancelCallback(n._proxiedCancelHandler),i.addAcceptCallback(n._proxiedAcceptHandler),o.push(i))}for(var n=this,o=[],a=i(e.target);a.length;){var r=s.data(a.get(0),m)||[];d(r,t),a=a.parent()}return o},_acceptHandler:function(e,t){var n=this;this._eachEmitter(function(i){i!==e&&n._cancelEmitter(i,t)})},_cancelHandler:function(e,t){this._cancelEmitter(e,t)},_cancelEmitter:function(e,t){var n=this._activeEmitters;t?e.cancel(t):e.reset(),e.removeCancelCallback(),e.removeAcceptCallback();var i=c(e,n);i>-1&&n.splice(i,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},_adjustWheelEvent:function(e){var t=null;if(this._eachEmitter(function(n){if(n.gesture){var i=n.getDirection(e);return"horizontal"!==i&&!e.shiftKey||"vertical"!==i&&e.shiftKey?(t=n,!1):void 0}}),t){var n=t.getDirection(e),i="both"===n&&!e.shiftKey||"vertical"===n;e[i?"pageY":"pageX"]+=e.delta}},isActive:function(e){var t=!1;return this._eachEmitter(function(n){t=t||n.getElement().is(e)}),t}})),y="dxEmitterSubscription";e.exports=function(e){var t=e.emitter,n=e.events[0],i=e.events;d(i,function(o,a){h(a,{noBubble:!e.bubble,setup:function(e){var i=s.data(e,y)||{},o=s.data(e,m)||{},r=o[n]||new t(e);i[a]=!0,o[n]=r,s.data(e,m,o),s.data(e,y,i)},add:function(e,t){s.data(e,m)[n].configure(u({delegateSelector:t.selector},t.data),t.type)},teardown:function(e){var t=s.data(e,y),o=s.data(e,m),r=o[n];delete t[a];var l=!0;d(i,function(e,n){return l=l&&!t[n]}),l&&(v.isActive(e)&&v.resetEmitter(r),r&&r.dispose(),delete o[n])}})})}},function(e,t,n){var i=n(9),o=n(114),a=n(88),r=Math.abs,s="dxhold";a({emitter:o.inherit({start:function(e){this._startEventData=i.eventData(e),this._startTimer(e)},_startTimer:function(e){var t="timeout"in this?this.timeout:750;this._holdTimer=setTimeout(function(){this._requestAccept(e),this._fireEvent(s,e,{target:e.target}),this._forgetAccept()}.bind(this),t)},move:function(e){this._touchWasMoved(e)&&this._cancel(e)},_touchWasMoved:function(e){var t=i.eventDelta(this._startEventData,i.eventData(e));return r(t.x)>5||r(t.y)>5},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}}),bubble:!0,events:[s]}),e.exports={name:s}},function(e,t,n){function i(e){var t;this.baseColor=e,e&&(t=String(e).toLowerCase().replace(/ /g,""),t=function(e){if("transparent"===e)return[0,0,0,0];for(var t,n=0,i=h.length;n<i;++n)if(t=h[n].re.exec(e))return h[n].process(t);return null}(t=d[t]?"#"+d[t]:t)),t||(this.colorIsInvalid=!0),t=t||{},this.r=o(t[0]),this.g=o(t[1]),this.b=o(t[2]),this.a=o(t[3],1,1),t[4]?this.hsv={h:t[4][0],s:t[4][1],v:t[4][2]}:this.hsv=function(e,t,n){var i,o,a,r=Math.max(e,t,n),s=Math.min(e,t,n),l=r-s;if(a=r,o=0===r?0:1-s/r,r===s)i=0;else switch(r){case e:i=(t-n)/l*60,t<n&&(i+=360);break;case t:i=(n-e)/l*60+120;break;case n:i=(e-t)/l*60+240}return o*=100,a*=100/255,{h:Math.round(i),s:Math.round(o),v:Math.round(a)}}(this.r,this.g,this.b),t[5]?this.hsl={h:t[5][0],s:t[5][1],l:t[5][2]}:this.hsl=function(e,t,n){e=u(e,255),t=u(t,255),n=u(n,255);var i,o,a=Math.max(e,t,n),r=Math.min(e,t,n),s=a+r,l=s/2;if(a===r)i=o=0;else{var c=a-r;o=l>.5?c/(2-s):c/s,i=function(e,t,n,i){switch(Math.max(e,t,n)){case e:return(t-n)/i+(t<n?6:0);case t:return(n-e)/i+2;case n:return(e-t)/i+4}}(e,t,n,c),i/=6}return{h:p(360*i),s:p(100*o),l:p(100*l)}}(this.r,this.g,this.b)}function o(e,t,n){return t=t||0,n=n||255,e<0||isNaN(e)?t:e>n?n:e}function a(e,t,n){var i,o,a,r,s,l,u;switch(o=(a=(100-t)*n/100)+(r=e%60/60*(n-a)),i=n-r,Math.floor(e%360/60)){case 0:s=n,l=o,u=a;break;case 1:s=i,l=n,u=a;break;case 2:s=a,l=n,u=o;break;case 3:s=a,l=i,u=n;break;case 4:s=o,l=a,u=n;break;case 5:s=n,l=a,u=i}return[Math.round(2.55*s),Math.round(2.55*l),Math.round(2.55*u)]}function r(e,t){var n=t;return"r"===e&&(n=t+1/3),"b"===e&&(n=t-1/3),n}function s(e,t,n){return(n=function(e){return e<0&&(e+=1),e>1&&(e-=1),e}(n))<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function l(e,t,n){var i,o,a;if(e=u(e,360),t=u(t,100),n=u(n,100),0===t)i=o=a=n;else{var l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=s(c,l,r("r",e)),o=s(c,l,r("g",e)),a=s(c,l,r("b",e))}return[p(255*i),p(255*o),p(255*a)]}function u(e,t){return e=Math.min(t,Math.max(0,parseFloat(e))),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function c(e,t,n){return t=t||0,n=n||255,!(e%1!=0||e<t||e>n||"number"!=typeof e||isNaN(e))}var d={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},h=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10)]}},{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*\.*\d+)\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10),parseFloat(e[4])]}},{re:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/,process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^#([a-f0-9]{1})([a-f0-9]{1})([a-f0-9]{1})$/,process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/^hsv\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){var t=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[3],10),o=a(t,n,i);return[o[0],o[1],o[2],1,[t,n,i]]}},{re:/^hsl\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){var t=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[3],10),o=l(t,n,i);return[o[0],o[1],o[2],1,null,[t,n,i]]}}],p=Math.round;i.prototype={constructor:i,highlight:function(e){return e=e||10,this.alter(e).toHex()},darken:function(e){return e=e||10,this.alter(-e).toHex()},alter:function(e){var t=new i;return t.r=o(this.r+e),t.g=o(this.g+e),t.b=o(this.b+e),t},blend:function(e,t){var n=e instanceof i?e:new i(e),a=new i;return a.r=o(p(this.r*(1-t)+n.r*t)),a.g=o(p(this.g*(1-t)+n.g*t)),a.b=o(p(this.b*(1-t)+n.b*t)),a},toHex:function(){return e=this.r,t=this.g,n=this.b,"#"+(16777216|e<<16|t<<8|n).toString(16).slice(1);var e,t,n},getPureColor:function(){return new i("rgb("+a(this.hsv.h,100,100).join(",")+")")},isValidHex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},isValidRGB:function(e,t,n){return!!(c(e)&&c(t)&&c(n))},isValidAlpha:function(e){return!(isNaN(e)||e<0||e>1||"number"!=typeof e)},colorIsInvalid:!1,fromHSL:function(e){var t=new i,n=l(e.h,e.s,e.l);return t.r=n[0],t.g=n[1],t.b=n[2],t}},e.exports=i},function(e,t,n){var i=n(14),o=i.abstract,a=n(80),r=n(3).each,s=n(35),l=n(40),u=n(20).compileGetter,c=n(81).queryByOptions,d=n(6).Deferred,h=n(4).noop,p={},f=i.inherit({ctor:function(e){var t=this;e=e||{},r(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","onPush","onRemoved","onRemoving","onModified","onModifying"],function(n,i){i in e&&t.on(i.slice(2).toLowerCase(),e[i])}),this._key=e.key,this._errorHandler=e.errorHandler,this._useDefaultSearch=!0},_customLoadOptions:function(){return null},key:function(){return this._key},keyOf:function(e){return this._keyGetter||(this._keyGetter=u(this.key())),this._keyGetter(e)},_requireKey:function(){if(!this.key())throw s.errors.Error("E4005")},load:function(e){var t=this;return e=e||{},this.fireEvent("loading",[e]),this._withLock(this._loadImpl(e)).done(function(n){t.fireEvent("loaded",[n,e])})},_loadImpl:function(e){return c(this.createQuery(e),e).enumerate()},_withLock:function(e){var t=new d;return e.done(function(){var e=this,n=arguments;l.processRequestResultLock.promise().done(function(){t.resolveWith(e,n)})}).fail(function(){t.rejectWith(this,arguments)}),t},createQuery:o,totalCount:function(e){return this._totalCountImpl(e)},_totalCountImpl:function(e){return c(this.createQuery(e),e,!0).count()},byKey:function(e,t){return this._addFailHandlers(this._withLock(this._byKeyImpl(e,t)))},_byKeyImpl:o,insert:function(e){var t=this;return t.fireEvent("modifying"),t.fireEvent("inserting",[e]),t._addFailHandlers(t._insertImpl(e).done(function(e,n){t.fireEvent("inserted",[e,n]),t.fireEvent("modified")}))},_insertImpl:o,update:function(e,t){var n=this;return n.fireEvent("modifying"),n.fireEvent("updating",[e,t]),n._addFailHandlers(n._updateImpl(e,t).done(function(){n.fireEvent("updated",[e,t]),n.fireEvent("modified")}))},_updateImpl:o,push:function(e){this._pushImpl(e),this.fireEvent("push",[e])},_pushImpl:h,remove:function(e){var t=this;return t.fireEvent("modifying"),t.fireEvent("removing",[e]),t._addFailHandlers(t._removeImpl(e).done(function(e){t.fireEvent("removed",[e]),t.fireEvent("modified")}))},_removeImpl:o,_addFailHandlers:function(e){return e.fail(this._errorHandler).fail(s._errorHandler)}}).include(a);f.create=function(e,t){if(!(e in p))throw s.errors.Error("E4020",e);return new p[e](t)},f.registerClass=function(e,t){return t&&(p[t]=e),e},f.inherit=function(e){return function(t,n){var i=e.apply(this,[t]);return f.registerClass(i,n),i}}(f.inherit),e.exports=f},function(e,t,n){e.exports=n(490)},function(e,t,n){var i=n(2),o=n(7).getNavigator(),a=n(44),r=n(30),s=n(0).extend,l=n(16),u=n(8),c=n(17),d="dx-loadindicator-segment",h=c.inherit({_getDefaultOptions:function(){return s(this.callBase(),{indicatorSrc:"",activeStateEnabled:!1,hoverStateEnabled:!1,_animatingSegmentCount:1,_animatingSegmentInner:!1})},_defaultOptionsRules:function(){var e=r.current();return this.callBase().concat([{device:function(){return"android"===l.real().platform&&!/chrome/i.test(o.userAgent)},options:{viaImage:!0}},{device:function(){return r.isIos7(e)},options:{_animatingSegmentCount:11}},{device:function(){return r.isMaterial(e)},options:{_animatingSegmentCount:2,_animatingSegmentInner:!0}},{device:function(){return r.isGeneric(e)},options:{_animatingSegmentCount:7}}])},_init:function(){this.callBase(),this.$element().addClass("dx-loadindicator")},_initMarkup:function(){this.callBase(),this._renderWrapper(),this._renderIndicatorContent(),this._renderMarkup()},_renderWrapper:function(){this._$wrapper=i("<div>").addClass("dx-loadindicator-wrapper"),this.$element().append(this._$wrapper)},_renderIndicatorContent:function(){this._$content=i("<div>").addClass("dx-loadindicator-content"),this._$wrapper.append(this._$content)},_renderMarkup:function(){!a.animation()||this.option("viaImage")||this.option("indicatorSrc")?this._renderMarkupForImage():this._renderMarkupForAnimation()},_renderMarkupForAnimation:function(){var e=this.option("_animatingSegmentInner");this._$indicator=i("<div>").addClass("dx-loadindicator-icon"),this._$content.append(this._$indicator);for(var t=this.option("_animatingSegmentCount");t>=0;--t){var n=i("<div>").addClass(d).addClass(d+t);e&&n.append(i("<div>").addClass("dx-loadindicator-segment-inner")),this._$indicator.append(n)}},_renderMarkupForImage:function(){var e=this.option("indicatorSrc");this._$wrapper.addClass("dx-loadindicator-image"),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=this.$element().width(),t=this.$element().height();var n=Math.min(t,e);this._$wrapper.css({height:n,width:n,fontSize:n})}}},_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)}}});u("dxLoadIndicator",h),e.exports=h},function(e,t,n){var i=n(2),o=n(5),a=n(44),r=n(31),s=n(4),l=n(1),u=n(0).extend,c=n(10).getPublicElement,d=n(7),h=d.getNavigator(),p=n(12),f=n(16),g=n(8),_=n(66),m=n(64),v=n(9),y=n(511),b=n(295),x=n(188),w=n(6).when,C="dxScrollable",k="dx-scrollable",S="dx-scrollable-content",I="vertical",T="horizontal",D="both",E=function(){return[{device:function(){return!a.nativeScrolling},options:{useNative:!1}},{device:function(e){return!f.isSimulator()&&"generic"===f.real().platform&&"generic"===e.platform},options:{bounceEnabled:!1,scrollByThumb:!0,scrollByContent:a.touch,showScrollbar:"onHover"}}]},A=_.inherit({_getDefaultOptions:function(){return u(this.callBase(),{disabled:!1,onScroll:null,direction:I,showScrollbar:"onScroll",useNative:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,onUpdated:null,onStart:null,onEnd:null,onBounce:null,onStop:null,useSimulatedScrollbar:!1,useKeyboard:!0,inertiaEnabled:!0,pushBackValue:0,updateManually:!1})},_defaultOptionsRules:function(){return this.callBase().concat(E(),[{device:function(){return a.nativeScrolling&&"android"===f.real().platform&&!r.mozilla},options:{useSimulatedScrollbar:!0}},{device:function(){return"ios"===f.real().platform},options:{pushBackValue:1}}])},_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(k),t=this._$container=i("<div>").addClass("dx-scrollable-container"),n=this._$wrapper=i("<div>").addClass("dx-scrollable-wrapper"),a=this._$content=i("<div>").addClass(S);p.hasDocumentProperty("onbeforeactivate")&&r.msie&&r.version<12&&o.on(e,v.addNamespace("beforeactivate",C),function(e){i(e.target).is(m.focusable)||e.preventDefault()}),a.append(e.contents()).appendTo(t),t.appendTo(n),n.appendTo(e)},_dimensionChanged:function(){this.update()},_attachNativeScrollbarsCustomizationCss:function(){"desktop"!==f.real().deviceType||h.platform.indexOf("Mac")>-1&&r.webkit||this.$element().addClass("dx-scrollable-customizable-scrollbars")},_initMarkup:function(){this.callBase(),this._renderDirection()},_render:function(){this._renderStrategy(),this._attachNativeScrollbarsCustomizationCss(),this._attachEventHandlers(),this._renderDisabledState(),this._createActions(),this.update(),this.callBase(),this._updateRtlPosition()},_updateRtlPosition:function(){var e=this,t=e.option("rtlEnabled");this._updateBounds(),t&&this.option("direction")!==I&&s.deferUpdate(function(){var t=e.scrollWidth()-e.clientWidth();s.deferRender(function(){e.scrollTo({left:t})})})},_updateBounds:function(){this._strategy.updateBounds()},_attachEventHandlers:function(){var e=this._strategy,t={getDirection:e.getDirection.bind(e),validate:this._validate.bind(this),isNative:this.option("useNative"),scrollTarget:this._$container};o.off(this._$wrapper,"."+C),o.on(this._$wrapper,v.addNamespace(y.init,C),t,this._initHandler.bind(this)),o.on(this._$wrapper,v.addNamespace(y.start,C),e.handleStart.bind(e)),o.on(this._$wrapper,v.addNamespace(y.move,C),e.handleMove.bind(e)),o.on(this._$wrapper,v.addNamespace(y.end,C),e.handleEnd.bind(e)),o.on(this._$wrapper,v.addNamespace(y.cancel,C),e.handleCancel.bind(e)),o.on(this._$wrapper,v.addNamespace(y.stop,C),e.handleStop.bind(e)),o.off(this._$container,"."+C),o.on(this._$container,v.addNamespace("scroll",C),e.handleScroll.bind(e))},_validate:function(e){return!this._isLocked()&&(this._updateIfNeed(),this._strategy.validate(e))},_initHandler:function(){var e=this._strategy;e.handleInit.apply(e,arguments)},_renderDisabledState:function(){this.$element().toggleClass("dx-scrollable-disabled",this.option("disabled")),this.option("disabled")?this._lock():this._unlock()},_renderDirection:function(){this.$element().removeClass("dx-scrollable-"+T).removeClass("dx-scrollable-"+I).removeClass("dx-scrollable-"+D).addClass("dx-scrollable-"+this.option("direction"))},_renderStrategy:function(){this._createStrategy(),this._strategy.render(),this.$element().data("dxScrollableStrategy",this._strategy)},_createStrategy:function(){this._strategy=this.option("useNative")?new x(this):new b.SimulatedStrategy(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"onStop":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"scrollByContent":case"scrollByThumb":case"bounceEnabled":case"useKeyboard":case"showScrollbar":case"useSimulatedScrollbar":case"pushBackValue":this._invalidate();break;case"disabled":this._renderDisabledState(),this._strategy&&this._strategy.disabledChanged();break;case"updateManually":break;case"width":this.callBase(e),this._updateRtlPosition();break;default:this.callBase(e)}},_resetInactiveDirection:function(){var e=this._getInactiveProp();if(e&&d.hasWindow()){var t=this.scrollOffset();t[e]=0,this.scrollTo(t)}},_getInactiveProp:function(){var e=this.option("direction");return e===I?"left":e===T?"top":void 0},_location:function(){return this._strategy.location()},_normalizeLocation:function(e){if(l.isPlainObject(e)){var t=s.ensureDefined(e.left,e.x),n=s.ensureDefined(e.top,e.y);return{left:l.isDefined(t)?-t:void 0,top:l.isDefined(n)?-n:void 0}}var i=this.option("direction");return{left:i!==I?-e:void 0,top:i!==T?-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===I?t!==T:e===T?t!==I:t===e},_updateAllowedDirection:function(){var e=this._strategy._allowedDirections();this._isDirection(D)&&e.vertical&&e.horizontal?this._allowedDirectionValue=D:this._isDirection(T)&&e.horizontal?this._allowedDirectionValue=T:this._isDirection(I)&&e.vertical?this._allowedDirectionValue=I:this._allowedDirectionValue=null},_allowedDirection:function(){return this._allowedDirectionValue},_container:function(){return this._$container},$content:function(){return this._$content},content:function(){return c(this._$content)},scrollOffset:function(){var e=this._location();return{top:-e.top,left:-e.left}},scrollTop:function(){return this.scrollOffset().top},scrollLeft:function(){return this.scrollOffset().left},clientHeight:function(){return this._$container.height()},scrollHeight:function(){return this.$content().outerHeight()-2*this._strategy.verticalOffset()},clientWidth:function(){return this._$container.width()},scrollWidth:function(){return this.$content().outerWidth()},update:function(){if(this._strategy)return w(this._strategy.update()).done(function(){this._updateAllowedDirection()}.bind(this))},scrollBy:function(e){((e=this._normalizeLocation(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));var n=this._normalizeLocation({left:t.left-s.ensureDefined(e.left,t.left),top:t.top-s.ensureDefined(e.top,t.top)});(n.top||n.left)&&this._strategy.scrollBy(n)},scrollToElement:function(e,t){t=t||{};var n=i(e),o=this.$content().find(e).length,a=n.parents("."+k).length-n.parents("."+S).length==0;if(o&&a){var r={top:0,left:0},s=this.option("direction");s!==I&&(r.left=this._scrollToElementPosition(n,T,t)),s!==T&&(r.top=this._scrollToElementPosition(n,I,t)),this.scrollTo(r)}},_scrollToElementPosition:function(e,t,n){var i=t===I,o=(i?n.top:n.left)||0,a=(i?n.bottom:n.right)||0,r=i?this._strategy.verticalOffset():0,s=this._elementPositionRelativeToContent(e,i?"top":"left")-r,l=e[i?"outerHeight":"outerWidth"](),u=i?this.scrollTop():this.scrollLeft(),c=u-s+o,d=u-s-l+(i?this.clientHeight():this.clientWidth())-a;return c<=0&&d>=0?u:u-(Math.abs(c)>Math.abs(d)?d:c)},_elementPositionRelativeToContent:function(e,t){for(var n=0;this._hasScrollContent(e);)n+=e.position()[t],e=e.offsetParent();return n},_hasScrollContent:function(e){var t=this.$content();return e.closest(t).length&&!e.is(t)},_updateIfNeed:function(){this.option("updateManually")||this.update()}});g(C,A),e.exports=A,e.exports.deviceDependentOptions=E},function(e,t,n){var i=n(2),o=n(4),a=n(1),r=a.isDefined,s=a.isPromise,l=n(0).extend,u=n(13).inArray,c=n(3).each,d=n(6),h=n(10).getPublicElement,p=d.Deferred,f=n(21),g=n(72),_=n(15),m=n(8),v=n(41),y=n(239),b=y.inherit({_supportedKeys:function(){var e=this,t=this.callBase(),n=function(e){this._isEditable()?this._valueSubstituted()&&(this._preventFiltering=!0):this.option("showClearButton")&&(e.preventDefault(),this.reset()),this._preventSubstitution=!0},i=function(){e.option("searchEnabled")&&e._valueSubstituted()&&e._searchHandler()};return l({},t,{tab:function(){this.option("opened")&&"instantly"===this.option("applyValueMode")&&this._cleanInputSelection(),this._wasSearch()&&this._clearFilter(),t.tab&&t.tab.apply(this,arguments)},upArrow:function(){if(t.upArrow&&t.upArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(-1),!0},downArrow:function(){if(t.downArrow&&t.downArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(1),!0},leftArrow:function(){i(),t.leftArrow&&t.leftArrow.apply(this,arguments)},rightArrow:function(){i(),t.rightArrow&&t.rightArrow.apply(this,arguments)},home:function(){i(),t.home&&t.home.apply(this,arguments)},end:function(){i(),t.end&&t.end.apply(this,arguments)},escape:function(){t.escape&&t.escape.apply(this,arguments),this._cancelEditing()},enter:function(e){var n=this.option("opened"),i=this._input().val().trim(),o=i&&this._list&&!this._list.option("focusedElement");if(!i&&this.option("value")&&this.option("allowClearing"))this.option({selectedItem:null,value:null}),this.close();else{if(this.option("acceptCustomValue"))return e.preventDefault(),o&&(this._valueChangeEventHandler(),n&&this._toggleOpenState()),n;if(t.enter&&t.enter.apply(this,arguments))return n}},space:function(e){var t=this.option("opened"),n=this.option("searchEnabled"),i=this.option("acceptCustomValue");if(t&&!n&&!i)return e.preventDefault(),this._valueChangeEventHandler(e),!0},backspace:n,del:n})},_getDefaultOptions:function(){return l(this.callBase(),{placeholder:_.format("Select"),fieldTemplate:null,valueChangeEvent:"change",acceptCustomValue:!1,onCustomItemCreating:function(e){r(e.customItem)||(e.customItem=e.text)},showSelectionControls:!1,autocompletionEnabled:!0,allowClearing:!0,tooltipEnabled:!1,openOnFieldClick:!0,showDropDownButton:!0,displayCustomValue:!1,_isAdaptablePopupPosition:!1,useInkRipple:!1})},_init:function(){this.callBase(),this._initCustomItemCreatingAction()},_initMarkup:function(){this._renderSubmitElement(),this.$element().addClass("dx-selectbox"),this._renderTooltip(),this.option("useInkRipple")&&this._renderInkRipple(),this.callBase(),this._$container.addClass("dx-selectbox-container")},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element())},_renderInkRipple:function(){this._inkRipple=g.render()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple&&!this._isEditable()){var i={element:this._inputWrapper(),event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_createPopup:function(){this.callBase(),this._popup.$element().addClass("dx-selectbox-popup")},_popupWrapperClass:function(){return this.callBase()+" dx-selectbox-popup-wrapper"},_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(){if(this._searchValue()){var e=this._list._itemElements(),t=u(this.option("selectedItem"),this.option("items")),n=t>=0&&!this._isCustomItemSelected()?e.eq(t):null;this._focusListElement(n)}else this._focusListElement(null)},_renderFocusedElement:function(){if(this._list){if(!this._searchValue()||this.option("acceptCustomValue"))return void this._focusListElement(null);var e=this._list._itemElements().not(".dx-state-disabled").eq(0);this._focusListElement(e)}},_focusListElement:function(e){this._preventInputValueRender=!0,this._list.option("focusedElement",h(e)),delete this._preventInputValueRender},_scrollToSelectedItem:function(){this._list&&this._list.scrollToItem(this._list.option("selectedItem"))},_listContentReadyHandler:function(){this.callBase(),this._dataSource&&this._dataSource.paginate()&&this._needPopupRepaint()||this._scrollToSelectedItem()},_renderValue:function(){return this._renderInputValue(),this._setSubmitValue(),(new p).resolve()},_setSubmitValue:function(){var e=this.option("value"),t="this"===this.option("valueExpr")?this._displayGetter(e):e;this._$submitElement.val(t)},_getSubmitElement:function(){return this._$submitElement},_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 p).resolve()},_fitIntoRange:function(e,t,n){return e>n?t:e<t?n:e},_setNextValue:function(e){(this._dataSource.isLoaded()?(new p).resolve():this._dataSource.load()).done(function(){var t=this._calcNextItem(e),n=this._valueGetter(t);this._setValue(n)}.bind(this))},_calcNextItem:function(e){var t=this._items();return t[this._fitIntoRange(this._getSelectedIndex()+e,0,t.length-1)]},_items:function(){var e=this._getPlainItems(!this._list&&this._dataSource.items());return new v(e).filter("disabled","<>",!0).toArray()},_getSelectedIndex:function(){var e=this._items(),t=this.option("selectedItem"),n=-1;return c(e,function(e,i){if(this._isValueEquals(i,t))return n=e,!1}.bind(this)),n},_setSelectedItem:function(e){var t=!this._isCustomValueAllowed()&&void 0===e;this.callBase(t?null:e)},_isCustomValueAllowed:function(){return this.option("acceptCustomValue")||this.callBase()},_displayValue:function(e){return e=!r(e)&&this._isCustomValueAllowed()?this.option("value"):e,this.callBase(e)},_listConfig:function(){var e=l(this.callBase(),{pageLoadMode:"scrollBottom",onSelectionChanged:this._getSelectionChangeHandler(),selectedItem:this.option("selectedItem"),onFocusedItemChanged:this._listFocusedItemChangeHandler.bind(this)});return this.option("showSelectionControls")&&l(e,{showSelectionControls:!0,selectionByClick:!0}),e},_listFocusedItemChangeHandler:function(e){if(!this._preventInputValueRender){var t=e.component,n=i(t.option("focusedElement")),o=t._getItemData(n);this._updateField(o)}},_updateField:function(e){return this._getTemplateByOption("fieldTemplate")&&this.option("fieldTemplate")?void this._renderField():void this._renderDisplayText(this._displayGetter(e))},_getSelectionChangeHandler:function(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):o.noop},_selectionChangeHandler:function(e){c(e.addedItems||[],function(e,t){this._setValue(this._valueGetter(t))}.bind(this))},_getActualSearchValue:function(){return this._dataSource.searchValue()},_toggleOpenState:function(e){if(!this.option("disabled")){if((e=arguments.length?e:!this.option("opened"))||this._restoreInputText(),this._wasSearch()&&e)if(this._wasSearch(!1),(this.option("showDataBeforeSearch")||0===this.option("minSearchLength"))&&this._dataSource){if(this._searchTimer)return;var t=this._getActualSearchValue();t&&this._wasSearch(!0),this._filterDataSource(t||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._setPopupOption("width")},_isValueEqualInputText:function(){var e=this.option("selectedItem"),t=this._displayGetter(e);return(t?String(t):"")===this._searchValue()},_popupHidingHandler:function(){this._isValueEqualInputText()&&this._cancelEditing(),this.callBase()},_restoreInputText:function(){this._loadItemDeferred&&this._loadItemDeferred.always(function(){var e=this.option("selectedItem");return this.option("acceptCustomValue")?void this._updateField(e):this.option("searchEnabled")&&!this._searchValue()&&this.option("allowClearing")?void this._clearTextValue():void(this._isValueEqualInputText()||this._renderInputValue().always(function(t){var n=o.ensureDefined(t,e);this._setSelectedItem(n),this._updateField(n),this._clearFilter()}.bind(this)))}.bind(this))},_focusOutHandler:function(e){this.callBase(e),this._restoreInputText()},_clearTextValue:function(){this.option("value",null)},_shouldOpenPopup:function(){return this._needPassDataSourceToList()},_renderValueChangeEvent:function(){this._isEditable()&&this.callBase()},_isEditable:function(){return this.option("acceptCustomValue")||this.option("searchEnabled")},_fieldRenderData:function(){var e=this._list&&this.option("opened")&&i(this._list.option("focusedElement"));return e&&e.length?this._list._getItemData(e):this.option("selectedItem")},_readOnlyPropValue:function(){return!this._isEditable()||this.option("readOnly")},_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(i(e.itemElement)),this._saveValueChangeEvent(e.event),this._shouldClearFilter()&&this._clearFilter(),this._completeSelection(this._valueGetter(e.itemData)),this._shouldCloseOnItemClick()&&this.option("opened",!1),this.option("searchEnabled")&&t===this._valueGetter(e.itemData)&&this._updateField(e.itemData)},_shouldClearFilter:function(){return this._wasSearch()},_completeSelection:function(e){this._setValue(e)},_loadItem:function(e,t){var n=this,i=new p;return this.callBase(e,t).done(function(e){i.resolve(e)}.bind(this)).fail(function(){var t=n.option("selectedItem");n.option("acceptCustomValue")&&e===n._valueGetter(t)?i.resolve(t):i.reject()}.bind(this)),i.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(),n=this._displayGetter(e);return!n||t!==n.toString()},_valueChangeEventHandler:function(){this.option("acceptCustomValue")&&this._isCustomItemSelected()&&this._customItemAddedHandler()},_initCustomItemCreatingAction:function(){this._customItemCreatingAction=this._createActionByOption("onCustomItemCreating")},_createCustomItem:function(e){var t={text:e},n=this._customItemCreatingAction(t),i=o.ensureDefined(n,t.customItem);return r(n)&&f.log("W0015","onCustomItemCreating","customItem"),i},_customItemAddedHandler:function(){var e=this._searchValue(),t=this._createCustomItem(e);if(void 0===t)throw this._renderValue(),f.Error("E0121");s(t)?d.fromPromise(t).done(this._setCustomItem.bind(this)).fail(this._setCustomItem.bind(this,null)):this._setCustomItem(t)},_setCustomItem:function(e){this._disposed||(e=e||null,this.option("selectedItem",e),this._shouldClearFilter()&&this._filterDataSource(null),this._setValue(this._valueGetter(e)),this._renderDisplayText(this._displayGetter(e)))},_clearValueHandler:function(e){return this.callBase(e),!1},_wasSearch:function(e){return arguments.length?void(this._wasSearchValue=e):this._wasSearchValue},_searchHandler:function(e){return this._preventFiltering?void delete this._preventFiltering:(this._needPassDataSourceToList()&&this._wasSearch(!0),void this.callBase(e))},_dataSourceFiltered:function(e){this.callBase(),null!==e&&(this._renderInputSubstitution(),this._renderFocusedElement())},_valueSubstituted:function(){var e=this._input().get(0),t=0===e.selectionStart&&e.selectionEnd===this._searchValue().length,n=e.selectionStart!==e.selectionEnd;return this._wasSearch()&&n&&!t},_shouldSubstitutionBeRendered:function(){return this.option("autocompletionEnabled")&&!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(),n=t.val().length;if(0!==n){var i=t.get(0),o=this._displayGetter(e).toString();i.value=o,this._caret({start:n,end:o.length})}}}else delete this._preventSubstitution},_cleanInputSelection:function(){var e=this._input().get(0),t=e.value.length;e.selectionStart=t,e.selectionEnd=t},_dispose:function(){this._renderInputValueAsync=o.noop,delete this._loadItemDeferred,this.callBase()},_optionChanged:function(e){switch(e.name){case"_isAdaptablePopupPosition":case"autocompletionEnabled":break;case"onCustomItemCreating":this._initCustomItemCreatingAction();break;case"tooltipEnabled":this._renderTooltip();break;case"displayCustomValue":case"acceptCustomValue":case"showSelectionControls":case"useInkRipple":this._invalidate();break;case"selectedItem":e.previousValue!==e.value&&this.callBase(e);break;case"allowClearing":break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});m("dxSelectBox",b),e.exports=b},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(t,n,i,o,r){var s=c.default.normalizeKeyName(i);"enter"===s||"space"===s?(a(i.target,n),o&&o({event:i})):"tab"===s?r.addClass(h):e.exports.selectView(t,n,i)}function a(e,t){var n=(0,l.default)(e),i=n.attr("aria-label"),o=r(i,t.element()).index(n);v=(0,d.extend)({},{ariaLabel:i,index:o},{viewInstance:t})}function r(e,t){var n=(0,l.default)(t);return e?n.find('[aria-label="'+e+'"][tabindex]'):n.find("[tabindex]")}function s(e){for(var t in e){var n,i=e[t];if((n=(0,l.default)(i).first()).length)return n}}var l=i(n(2)),u=i(n(5)),c=i(n(9)),d=n(0),h="dx-state-focused",p=".dx-datagrid-rowsview .dx-datagrid-content .dx-row > td",f=".dx-treelist-rowsview .dx-treelist-content .dx-row > td",g={groupPanel:[".dx-datagrid-group-panel .dx-group-panel-item[tabindex]"],columnHeaders:[".dx-datagrid-headers .dx-header-row > td.dx-datagrid-action",".dx-treelist-headers .dx-header-row > td.dx-treelist-action"],filterRow:[".dx-datagrid-headers .dx-datagrid-filter-row .dx-editor-cell input",".dx-treelist-headers .dx-treelist-filter-row .dx-editor-cell input"],rowsView:[p+"[tabindex]",""+p,f+"[tabindex]",""+f],footer:[".dx-datagrid-total-footer .dx-datagrid-summary-item",".dx-treelist-total-footer .dx-treelist-summary-item"],filterPanel:[".dx-datagrid-filter-panel .dx-icon-filter",".dx-treelist-filter-panel .dx-icon-filter"],pager:[".dx-datagrid-pager [tabindex]",".dx-treelist-pager [tabindex]"]},_=!1,m=!1,v=null;e.exports={hiddenFocus:function(e){m=!0,e.focus(),m=!1},registerKeyboardAction:function(e,t,n,i,a){if(!t.option("useLegacyKeyboardNavigation")){var r=(0,l.default)(t.element());u.default.on(n,"keydown",i,function(n){return o(e,t,n,a,r)}),u.default.on(n,"mousedown",i,function(){_=!0,r.removeClass(h)}),u.default.on(n,"focusin",i,function(){_||m||r.addClass(h),_=!1})}},restoreFocus:function(e){if(!e.option("useLegacyKeyboardNavigation")&&v){var t=v.viewInstance;if(t){var n=r(v.ariaLabel,t.element()).eq(v.index);v=null,u.default.trigger(n,"focus")}}},selectView:function(e,t,n){var i=c.default.normalizeKeyName(n);if(n.ctrlKey&&("upArrow"===i||"downArrow"===i))for(var o=Object.keys(g),a=o.indexOf(e);a>=0&&a<o.length;){var r=o[a="upArrow"===i?--a:++a],l=s(g[r]);if(l&&l.length){l.attr("tabindex",t.option("tabindex")||0),u.default.trigger(l,"focus"),l.removeClass("dx-cell-focus-disabled");break}}},setTabIndex:function(e,t){e.option("useLegacyKeyboardnavigation")||t.attr("tabindex",e.option("tabindex")||0)}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(){var e=v.testFormats(O);return{unsupported:e.unsupported,supported:e.supported.concat(P)}}function a(e,t,n){return n=n||o(),e=String(e).toUpperCase(),-1!==n.supported.indexOf(e)?e:void(-1!==n.unsupported.indexOf(e)&&t&&t("W2108",[e]))}function r(e){return"SVG"===e?y.getData:"PDF"===e?b.getData:v.getData}function s(e,t,n){var i={},o=n.type,a=n.format,r=function(e,t,n){var i=w-S,o=w+k+E+n*D,a={rect:{width:S-2*E,height:D,x:i+E,y:o},text:{x:i+(e.rtl?S-T:T),y:o+D-I}};return"printing"===t&&(a.separator={stroke:e.button.default.borderColor,"stroke-width":E,cursor:"pointer",sharp:"v",d:"M "+i+" "+(o+D-E)+" L "+(i+S)+" "+(o+D-E)}),a}(t,o,n.itemIndex),s=(0,d.patchFontOptions)(t.font);s["pointer-events"]="none";var l=e.g().attr({class:B+"-list-item"});i[M]=o,a&&(i[R]=a);var u=e.rect();u.attr(r.rect).css({cursor:"pointer","pointer-events":"all"}).data(i),u.on(_.default.start+".export",function(){return u.attr({fill:t.button.hover.backgroundColor})}).on(_.default.end+".export",function(){return u.attr({fill:null})}),u.append(l);var c=e.text(n.text).css(s).attr(r.text).append(l);return"printing"===o&&e.path(null,"line").attr(r.separator).append(l),{g:l,rect:u,resetState:function(){return u.attr({fill:null})},fixPosition:function(){var e=c.getBBox();c.move(r.text.x-e.x-(t.rtl?e.width:0))}}}function l(e,t,n,i){return(i||t.format)&&(i=a(i||t.format,e._incidentOccurred)),{format:i||A,fileName:n||t.fileName||"file",proxyUrl:t.proxyUrl,backgroundColor:t.backgroundColor,width:e._canvas.width,height:e._canvas.height,margin:t.margin,forceProxy:t.forceProxy,exportingAction:e._createActionByOption("onExporting"),exportedAction:e._createActionByOption("onExported"),fileSavingAction:e._createActionByOption("onFileSaving")}}Object.defineProperty(t,"__esModule",{value:!0}),t.plugin=t.ExportMenu=t.combineMarkups=t.exportWidgets=t.getMarkup=t.exportFromMarkup=void 0;var u=n(0),c=n(7),d=n(11),h=i(n(172)),p=i(n(15)),f=n(1),g=i(n(50)),_=i(n(134)),m=i(n(24)),v=h.default.image,y=h.default.svg,b=h.default.pdf,x=[m.default.down,m.default.move].join(" "),w=35,C=[[9,12,26,12,26,14,9,14],[9,17,26,17,26,19,9,19],[9,22,26,22,26,24,9,24]],k=4,S=120,I=8,T=15,D=30,E=1,A="PNG",O=[A,"JPEG","GIF"],P=["PDF","SVG"],B="dx-export-menu",M="export-element-type",R="export-element-format",F=/data-backgroundcolor="([^"]*)"/,V=t.exportFromMarkup=function(e,t){t.format=a(t.format)||A,t.fileName=t.fileName||"file",t.exportingAction=t.onExporting,t.exportedAction=t.onExported,t.fileSavingAction=t.onFileSaving,t.margin=(0,f.isDefined)(t.margin)?t.margin:10,t.backgroundColor=(0,f.isDefined)(t.backgroundColor)?t.backgroundColor:function(e){var t=F.exec(e);return t?t[1]:void 0}(e),h.default.export(e,t,r(t.format))},L=(t.getMarkup=function(e){return L(e).markup},t.exportWidgets=function(e,n){n=n||{};var i=t.combineMarkups(e,{gridLayout:n.gridLayout,verticalAlignment:n.verticalAlignment,horizontalAlignment:n.horizontalAlignment});n.width=i.width,n.height=i.height,V(i.markup,n)},t.combineMarkups=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Array.isArray(e)?Array.isArray(e[0])||(e=e.map(function(e){return[e]})):e=[[e]];var n=!t.gridLayout,i=e.reduce(function(e,t,i){var o=t.reduce(function(e,t,n){var o=t.getSize(),a=t.option("backgroundColor")||g.default.getTheme(t.option("theme")).backgroundColor;return a&&-1===e.backgroundColors.indexOf(a)&&e.backgroundColors.push(a),e.hOffset=e.width,e.width+=o.width,e.height=Math.max(e.height,o.height),e.itemWidth=Math.max(e.itemWidth,o.width),e.items.push({markup:t.svg(),width:o.width,height:o.height,c:n,r:i,hOffset:e.hOffset}),e},{items:[],height:0,itemWidth:0,hOffset:0,width:0,backgroundColors:e.backgroundColors});return e.rowOffsets.push(e.totalHeight),e.rowHeights.push(o.height),e.totalHeight+=o.height,e.items=e.items.concat(o.items),e.itemWidth=Math.max(e.itemWidth,o.itemWidth),e.maxItemLen=Math.max(e.maxItemLen,o.items.length),e.totalWidth=n?Math.max(e.totalWidth,o.width):e.maxItemLen*e.itemWidth,e},{items:[],rowOffsets:[],rowHeights:[],itemWidth:0,totalHeight:0,maxItemLen:0,totalWidth:0,backgroundColors:[]}),o='data-backgroundcolor="'+(1===i.backgroundColors.length?i.backgroundColors[0]:"")+'" ',a=i.totalHeight,r=i.totalWidth;return{markup:"<svg "+o+'height="'+a+'" width="'+r+'" version="1.1" xmlns="http://www.w3.org/2000/svg">'+i.items.map(function(e){return e.markup.replace("<svg",'<g transform="translate('+function(e){if(n)return e.hOffset;var o=t.horizontalAlignment,a=i.itemWidth,r=a-e.width;return e.c*a+("right"===o?r:"center"===o?r/2:0)}(e)+","+function(e){var n=t.verticalAlignment,o=i.rowHeights[e.r]-e.height;return i.rowOffsets[e.r]+("bottom"===n?o:"center"===n?o/2:0)}(e)+')" ').replace("</svg>","</g>")}).join("")+"</svg>",width:r,height:a}}),H=t.ExportMenu=function(e){var t=this._renderer=e.renderer;this._incidentOccurred=e.incidentOccurred,this._exportTo=e.exportTo,this._print=e.print,this._shadow=t.shadowFilter("-50%","-50%","200%","200%",2,6,3),this._shadow.attr({opacity:.8}),this._group=t.g().attr({class:B,"hidden-for-export":!0}).linkOn(t.root,{name:"export-menu",after:"peripheral"}),this._buttonGroup=t.g().attr({class:B+"-button"}).append(this._group),this._listGroup=t.g().attr({class:B+"-list"}).append(this._group),this._overlay=t.rect(-S+w,w+k,S,0),this._overlay.attr({"stroke-width":E,cursor:"pointer",rx:4,ry:4,filter:this._shadow.id}),this._overlay.data({"export-element-type":"list"}),this.validFormats=o(),this._subscribeEvents()};(0,u.extend)(H.prototype,{getLayoutOptions:function(){if(this._hiddenDueToLayout)return{width:0,height:0,cutSide:"vertical",cutLayoutSide:"top"};var e=this._buttonGroup.getBBox();return e.cutSide="vertical",e.cutLayoutSide="top",e.height+=10,e.position={vertical:"top",horizontal:"right"},e.verticalAlignment="top",e.horizontalAlignment="right",e},probeDraw:function(){this._fillSpace(),this.show()},shift:function(e,t){this._group.attr({translateY:this._group.attr("translateY")+t})},draw:function(e,t,n){this._group.move(e-w-2-3+n.left,Math.floor(t/2-w/2));var i=this.getLayoutOptions();return(i.width>e||i.height>t)&&this.freeSpace(),this},show:function(){this._group.linkAppend()},hide:function(){this._group.linkRemove()},setOptions:function(e){var t=this;this._options=e,e.formats?e.formats=e.formats.reduce(function(e,n){return(n=a(n,t._incidentOccurred,t.validFormats))&&e.push(n),e},[]):e.formats=this.validFormats.supported.slice(),e.printingEnabled=void 0===e.printingEnabled||e.printingEnabled,e.enabled&&(e.formats.length||e.printingEnabled)?(this.show(),this._updateButton(),this._updateList(),this._hideList()):this.hide()},dispose:function(){this._unsubscribeEvents(),this._group.linkRemove().linkOff(),this._group.dispose(),this._shadow.dispose()},layoutOptions:function(){return this._options.enabled&&{horizontalAlignment:"right",verticalAlignment:"top",weak:!0}},measure:function(){this._fillSpace();var e=this._options.button.margin;return[w+e.left+e.right,w+e.top+e.bottom]},move:function(e){var t=this._options.button.margin;this._group.attr({translateX:Math.round(e[0])+t.left,translateY:Math.round(e[1])+t.top})},_fillSpace:function(){this._hiddenDueToLayout=!1,this.show()},freeSpace:function(){this._incidentOccurred("W2107"),this._hiddenDueToLayout=!0,this.hide()},_hideList:function(){this._listGroup.remove(),this._listShown=!1,this._setButtonState("default"),this._menuItems.forEach(function(e){return e.resetState()})},_showList:function(){this._listGroup.append(this._group),this._listShown=!0,this._menuItems.forEach(function(e){return e.fixPosition()})},_setButtonState:function(e){var t=this._options.button[e];this._button.attr({stroke:t.borderColor,fill:t.backgroundColor}),this._icon.attr({fill:t.color})},_subscribeEvents:function(){var e=this;this._renderer.root.on(m.default.up+".export",function(t){var n=t.target[M];return n?void("button"===n?e._listShown?(e._setButtonState("default"),e._hideList()):(e._setButtonState("focus"),e._showList()):"printing"===n?(e._print(),e._hideList()):"exporting"===n&&(e._exportTo(t.target[R]),e._hideList())):void(e._button&&e._hideList())}),this._listGroup.on(x,function(e){return e.stopPropagation()}),this._buttonGroup.on(m.default.enter,function(){return e._setButtonState("hover")}),this._buttonGroup.on(m.default.leave,function(){return e._setButtonState(e._listShown?"focus":"default")}),this._buttonGroup.on(m.default.down+".export",function(){return e._setButtonState("active")})},_unsubscribeEvents:function(){this._renderer.root.off(".export"),this._listGroup.off(),this._buttonGroup.off()},_updateButton:function(){var e=this._renderer,t=this._options,n={"export-element-type":"button"};this._button||(this._button=e.rect(0,0,w,w).append(this._buttonGroup),this._button.attr({rx:4,ry:4,fill:t.button.default.backgroundColor,stroke:t.button.default.borderColor,"stroke-width":1,cursor:"pointer"}),this._button.data(n),this._icon=e.path(C).append(this._buttonGroup),this._icon.attr({fill:t.button.default.color,cursor:"pointer"}),this._icon.data(n),this._buttonGroup.setTitle(p.default.format("vizExport-titleMenuText")))},_updateList:function(){var e=this._options,t=e.button.default,n=this._listGroup,i=function(e,t){var n=[];return t.printingEnabled&&n.push(s(e,t,{type:"printing",text:p.default.format("vizExport-printingButtonText"),itemIndex:n.length})),t.formats.reduce(function(n,i){return n.push(s(e,t,{type:"exporting",text:p.default.getFormatter("vizExport-exportButtonText")(i),format:i,itemIndex:n.length})),n},n)}(this._renderer,e);this._shadow.attr({color:e.shadowColor}),this._overlay.attr({height:i.length*D+2*E,fill:t.backgroundColor,stroke:t.borderColor}),n.clear(),this._overlay.append(n),i.forEach(function(e){return e.g.append(n)}),this._menuItems=i}}),t.plugin={name:"export",init:function(){var e=this;this._exportMenu=new t.ExportMenu({renderer:this._renderer,incidentOccurred:this._incidentOccurred,print:function(){return e.print()},exportTo:function(t){return e.exportTo(void 0,t)}}),this._layout.add(this._exportMenu)},dispose:function(){this._exportMenu.dispose()},members:{_getExportMenuOptions:function(){return(0,u.extend)({},this._getOption("export"),{rtl:this._getOption("rtlEnabled",!0)})},_disablePointerEvents:function(){var e=this._renderer.root.attr("pointer-events");return this._renderer.root.attr({"pointer-events":"none"}),e},exportTo:function(e,t){var n=this,i=this._exportMenu,o=l(this,this._getOption("export")||{},e,t);i&&i.hide();var a=this._disablePointerEvents();h.default.export(this._renderer.root.element,o,r(o.format)).done(function(){n._renderer.root.attr({"pointer-events":a})}),i&&i.show()},print:function(){var e=this,t=this._exportMenu,n=l(this,this._getOption("export")||{});n.exportingAction=null,n.exportedAction=null,n.margin=0,n.format="PNG",n.forceProxy=!0,n.fileSavingAction=function(e){(function(e,t){var n=(0,c.getWindow)().document,i=n.createElement("iframe");i.onload=function(e,t){return function(){var t=this,n=this.contentWindow,i=n.document.createElement("img");n.document.body.appendChild(i);var o=function(){t.parentElement.removeChild(t)};i.addEventListener("load",function(){n.focus(),n.print(),o()}),i.addEventListener("error",o),i.src=e}}(e),i.style.visibility="hidden",i.style.position="fixed",i.style.right="0",i.style.bottom="0",n.body.appendChild(i)})("data:image/png;base64,"+e.data,n.__test),e.cancel=!0};var i=this._disablePointerEvents();t&&t.hide(),h.default.export(this._renderer.root.element,n,r(n.format)).done(function(){e._renderer.root.attr({"pointer-events":i})}),t&&t.show()}},customize:function(e){var t=e.prototype;e.addChange({code:"EXPORT",handler:function(){this._exportMenu.setOptions(this._getExportMenuOptions()),this._change(["LAYOUT"])},isThemeDependent:!0,isOptionChange:!0,option:"export"}),t._optionChangesMap.onExporting="EXPORT",t._optionChangesMap.onExported="EXPORT",t._optionChangesMap.onFileSaving="EXPORT"},fontFields:["export.font"]}},function(e,t,n){function i(){return!0}function o(){return!1}function a(e){e.component.hasEvent("incidentOccurred")||S.apply(null,[e.target.id].concat(e.target.args||[]))}function r(e){return e.reduce(function(e,t){return t>0&&!e?t:e},0)}function s(e){return h.isDefined(e)&&e>0}var l=n(2),u=n(4).noop,c=n(7),d=n(12),h=n(1),p=n(3).each,f=n(156),g=n(125),_=n(43).format,m=n(1).isObject,v=n(0).extend,y=n(261),b=Math.floor,x=n(66),w=n(143),C=n(11).parseScalar,k=n(757),S=k.log,I=n(168),T=n(759),D=n(16),E=n(5),A="rtlEnabled",O="dx-sized-element",P=x.prototype.option,B=!c.hasWindow();e.exports=B?function(){var e={ctor:function(e,t){this.callBase(e,t);var n=d.createElement("div"),i=t&&h.isNumeric(t.width)?t.width+"px":"100%",o=t&&h.isNumeric(t.height)?t.height+"px":this._getDefaultSize().height+"px";d.setStyle(n,"width",i),d.setStyle(n,"height",o),d.setClass(n,O),d.insertElement(e,n)}},t=x.inherit(e),n=t.inherit;return t.inherit=function(e){for(var t in e)(h.isFunction(e[t])&&"_"!==t.substr(0,1)||"_dispose"===t||"_optionChanged"===t)&&(e[t]=u);return n.call(this,e)},t}():x.inherit({_eventsMap:{onIncidentOccurred:{name:"incidentOccurred"},onDrawn:{name:"drawn"}},_getDefaultOptions:function(){return v(this.callBase(),{onIncidentOccurred:a})},_useLinks:!0,_init:function(){var e,t=this;t._$element.children("."+O).remove(),t.callBase.apply(t,arguments),t._changesLocker=0,t._optionChangedLocker=0,t._changes=w.changes(),t._suspendChanges(),t._themeManager=t._createThemeManager(),t._themeManager.setCallback(function(){t._requestChange(t._themeDependentChanges)}),t._renderElementAttributes(),t._initRenderer(),(e=t._useLinks&&t._renderer.root)&&e.enableLinks().virtualLink("core").virtualLink("peripheral"),t._renderVisibilityChange(),t._attachVisibilityChangeHandlers(),t._toggleParentsScrollSubscription(this._isVisible()),t._initEventTrigger(),t._incidentOccurred=function(e,t){return function(n,i){t("incidentOccurred",{target:{id:n,type:"E"===n[0]?"error":"warning",args:i,text:_.apply(null,[k.ERROR_MESSAGES[n]].concat(i||[])),widget:e,version:f}})}}(t.NAME,t._eventTrigger),t._layout=new T,e&&e.linkAfter("core"),t._initPlugins(),t._initCore(),e&&e.linkAfter(),t._change(t._initialChanges)},_createThemeManager:function(){return new y.BaseThemeManager(this._getThemeManagerOptions())},_getThemeManagerOptions:function(){return{themeSection:this._themeSection,fontFields:this._fontFields}},_initialChanges:["LAYOUT","RESIZE_HANDLER","THEME","DISABLED"],_initPlugins:function(){var e=this;p(e._plugins,function(t,n){n.init.call(e)})},_disposePlugins:function(){var e=this;p(e._plugins.slice().reverse(),function(t,n){n.dispose.call(e)})},_change:function(e){this._changes.add(e)},_suspendChanges:function(){++this._changesLocker},_resumeChanges:function(){var e=this;0==--e._changesLocker&&e._changes.count()>0&&!e._applyingChanges&&(e._renderer.lock(),e._applyingChanges=!0,e._applyChanges(),e._changes.reset(),e._applyingChanges=!1,e._renderer.unlock(),e._optionsQueue&&e._applyQueuedOptions(),e._optionChangedLocker++,e._notify(),e._optionChangedLocker--)},_applyQueuedOptions:function(){var e=this,t=e._optionsQueue;e._optionsQueue=null,e.beginUpdate(),p(t,function(e,t){t()}),e.endUpdate()},_requestChange:function(e){this._suspendChanges(),this._change(e),this._resumeChanges()},_applyChanges:function(){var e,t=this,n=t._changes,i=t._totalChangesOrder,o=i.length;for(e=0;e<o;++e)n.has(i[e])&&t["_change_"+i[e]]()},_optionChangesOrder:["EVENTS","THEME","RENDERER","RESIZE_HANDLER"],_layoutChangesOrder:["ELEMENT_ATTR","CONTAINER_SIZE","LAYOUT"],_customChangesOrder:["DISABLED"],_change_EVENTS:function(){this._eventTrigger.applyChanges()},_change_THEME:function(){this._setThemeAndRtl()},_change_RENDERER:function(){this._setRendererOptions()},_change_RESIZE_HANDLER:function(){this._setupResizeHandler()},_change_ELEMENT_ATTR:function(){this._renderElementAttributes(),this._change(["CONTAINER_SIZE"])},_change_CONTAINER_SIZE:function(){this._updateSize()},_change_LAYOUT:function(){this._setContentSize()},_change_DISABLED:function(){var e=this._renderer,t=e.root;this.option("disabled")?(this._initDisabledState=t.attr("pointer-events"),t.attr({"pointer-events":"none",filter:e.getGrayScaleFilter().id})):"none"===t.attr("pointer-events")&&t.attr({"pointer-events":h.isDefined(this._initDisabledState)?this._initDisabledState:null,filter:null})},_themeDependentChanges:["RENDERER"],_initRenderer:function(){var e=this;e._canvas=e._calculateCanvas(),e._renderer=new I.Renderer({cssClass:e._rootClassPrefix+" "+e._rootClass,pathModified:e.option("pathModified"),container:e._$element[0]}),e._renderer.resize(e._canvas.width,e._canvas.height)},_disposeRenderer:function(){this._renderer.dispose()},_getAnimationOptions:u,render:function(){this._requestChange(["CONTAINER_SIZE"]);var e=this._isVisible();this._toggleParentsScrollSubscription(e),!e&&this._stopCurrentHandling()},_toggleParentsScrollSubscription:function(e){var t=l(this._renderer.root.element).parents(),n="scroll.viz_widgets";"generic"===D.real().platform&&(t=t.add(c.getWindow())),this._proxiedTargetParentsScrollHandler=this._proxiedTargetParentsScrollHandler||function(){this._stopCurrentHandling()}.bind(this),E.off(l().add(this._$prevRootParents),n,this._proxiedTargetParentsScrollHandler),e&&(E.on(t,n,this._proxiedTargetParentsScrollHandler),this._$prevRootParents=t)},_stopCurrentHandling:u,_dispose:function(){var e=this;e.callBase.apply(e,arguments),e._toggleParentsScrollSubscription(!1),e._removeResizeHandler(),e._layout.dispose(),e._eventTrigger.dispose(),e._disposeCore(),e._disposePlugins(),e._disposeRenderer(),e._themeManager.dispose(),e._themeManager=e._renderer=e._eventTrigger=null},_initEventTrigger:function(){var e=this;e._eventTrigger=function(e,t){function n(n){var i=e[n];a[i.name]=t(n)}function i(e,t,n){a[e](t),n&&n()}var o,a={};return p(e,function(e,t){t.name&&n(e)}),i.change=function(t){var n=e[t];return n&&((o=o||{})[t]=n),!!n},i.applyChanges=function(){o&&(p(o,function(e,t){n(t.newName||e)}),o=null)},i.dispose=function(){e=t=a=null},i}(e._eventsMap,function(t){return e._createActionByOption(t)})},_calculateCanvas:function(){var e=this,t=e.option("size")||{},n=e.option("margin")||{},i=e._getDefaultSize()||{},o=!s(t.width)&&c.hasWindow()?e._$element.width():0,a=!s(t.height)&&c.hasWindow()?e._$element.height():0,l={width:t.width<=0?0:b(r([t.width,o,i.width])),height:t.height<=0?0:b(r([t.height,a,i.height])),left:r([n.left,i.left]),top:r([n.top,i.top]),right:r([n.right,i.right]),bottom:r([n.bottom,i.bottom])};return(l.width-l.left-l.right<=0||l.height-l.top-l.bottom<=0)&&(l={width:0,height:0}),l},_updateSize:function(){var e=this,t=e._calculateCanvas();e._renderer.fixPlacement(),(function(e,t){return!(e.width===t.width&&e.height===t.height&&e.left===t.left&&e.top===t.top&&e.right===t.right&&e.bottom===t.bottom)}(e._canvas,t)||e.__forceRender)&&(e._canvas=t,e._recreateSizeDependentObjects(!0),e._renderer.resize(t.width,t.height),e._change(["LAYOUT"]))},_recreateSizeDependentObjects:u,_getMinSize:function(){return[0,0]},_getAlignmentRect:u,_setContentSize:function(){var e,t=this._canvas,n=this._layout,i=t.width>0&&t.height>0?[t.left,t.top,t.width-t.right,t.height-t.bottom]:[0,0,0,0];i=n.forward(i,this._getMinSize()),e=this._applySize(i)||i,n.backward(e,this._getAlignmentRect()||e)},_getOption:function(e,t){var n=this._themeManager.theme(e),i=this.option(e);return t?void 0!==i?i:n:v(!0,{},n,i)},_setupResizeHandler:function(){var e=this,t=C(this._getOption("redrawOnResize",!0),!0);e._resizeHandler&&e._removeResizeHandler(),e._resizeHandler=function(e){var t,n=function(){clearTimeout(t),t=setTimeout(e,100)};return n.dispose=function(){return clearTimeout(t),this},n}(function(){t?e._requestChange(["CONTAINER_SIZE"]):e._renderer.fixPlacement()}),g.add(e._resizeHandler)},_removeResizeHandler:function(){this._resizeHandler&&(g.remove(this._resizeHandler),this._resizeHandler.dispose(),this._resizeHandler=null)},_onBeginUpdate:u,beginUpdate:function(){var e=this;return e._initialized&&0===e._updateLockCount&&(e._onBeginUpdate(),e._suspendChanges()),e.callBase.apply(e,arguments),e},endUpdate:function(){var e=this;return e.callBase.apply(e,arguments),0===e._updateLockCount&&e._resumeChanges(),e},option:function(e){var t=this;return t._initialized&&t._applyingChanges&&(arguments.length>1||m(e))?(t._optionsQueue=t._optionsQueue||[],void t._optionsQueue.push(t._getActionForUpdating(arguments))):P.apply(t,arguments)},_getActionForUpdating:function(e){var t=this;return t._deprecatedOptionsSuppressed?function(){t._suppressDeprecatedWarnings(),P.apply(t,e),t._resumeDeprecatedWarnings()}:function(){P.apply(t,e)}},_clean:u,_render:u,_optionChanged:function(e){var t=this;if(!t._optionChangedLocker){var n=void 0;e.fullName&&(n=e.fullName.slice(e.fullName.indexOf(".")+1,e.fullName.length));var i=t._partialOptionChangesMap[n]||t._optionChangesMap[e.name];t._eventTrigger.change(e.name)?t._change(["EVENTS"]):i?t._change([i]):t.callBase.apply(t,arguments)}},_notify:u,_optionChangesMap:{size:"CONTAINER_SIZE",margin:"CONTAINER_SIZE",redrawOnResize:"RESIZE_HANDLER",theme:"THEME",rtlEnabled:"THEME",encodeHtml:"THEME",elementAttr:"ELEMENT_ATTR",disabled:"DISABLED"},_partialOptionChangesMap:{},_visibilityChanged:function(){this.render()},_setThemeAndRtl:function(){this._themeManager.setTheme(this.option("theme"),this.option(A))},_getRendererOptions:function(){return{rtl:this.option(A),encodeHtml:this.option("encodeHtml"),animation:this._getAnimationOptions()}},_setRendererOptions:function(){this._renderer.setOptions(this._getRendererOptions())},svg:function(){return this._renderer.svg()},getSize:function(){var e=this._canvas||{};return{width:e.width,height:e.height}},isReady:o,_dataIsReady:i,_resetIsReady:function(){this.isReady=o},_drawn:function(){var e=this;e.isReady=o,e._dataIsReady()&&e._renderer.onEndAnimation(function(){e.isReady=i}),e._eventTrigger("drawn",{})}}),w.replaceInherit(e.exports)},function(e,t,n){var i=n(27);t.getDefaultAlignment=function(e){return e||i().rtlEnabled?"right":"left"}},function(e,t,n){var i=n(14),o=n(0).extend,a=n(13).inArray,r=n(3).each,s=n(80),l=n(21),u=n(4),c=n(1),d=n(51),h=n(15),p=i.inherit({NAME:"base",defaultMessage:function(e){return h.getFormatter("validation-"+this.NAME)(e)},defaultFormattedMessage:function(e){return h.getFormatter("validation-"+this.NAME+"-formatted")(e)},_isValueEmpty:function(e){return!w.required.validate(e,{})},validate:function(e,t){var n=Array.isArray(e)?e:[e],i=!0;return n.length?n.every(function(e){return i=this._validate(e,t)},this):i=this._validate(null,t),i}}),f=p.inherit({NAME:"required",_validate:function(e,t){return!!c.isDefined(e)&&!1!==e&&(e=String(e),!t.trim&&c.isDefined(t.trim)||(e=e.trim()),""!==e)}}),g=p.inherit({NAME:"numeric",_validate:function(e,t){return!(!1===t.ignoreEmptyValue||!this._isValueEmpty(e))||(t.useCultureSettings&&c.isString(e)?!isNaN(d.parse(e)):c.isNumeric(e))}}),_=p.inherit({NAME:"range",_validate:function(e,t){if(!1!==t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;var n=w.numeric.validate(e,t),i=c.isDefined(e)&&""!==e,o=n?parseFloat(e):i&&e.valueOf(),a=t.min,r=t.max;if(!n&&!c.isDate(e)&&!i)return!1;if(c.isDefined(a))return c.isDefined(r)?o>=a&&o<=r:o>=a;if(c.isDefined(r))return o<=r;throw l.Error("E0101")}}),m=p.inherit({NAME:"stringLength",_validate:function(e,t){return e=c.isDefined(e)?String(e):"",!t.trim&&c.isDefined(t.trim)||(e=e.trim()),!(!t.ignoreEmptyValue||!this._isValueEmpty(e))||w.range.validate(e.length,o({},t))}}),v=p.inherit({NAME:"custom",validate:function(e,t){if(t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;var n=t.validator,i=n&&c.isFunction(n.option)&&n.option("dataGetter"),o=c.isFunction(i)&&i(),a={value:e,validator:n,rule:t};return o&&(a.data=o),t.validationCallback(a)}}),y=p.inherit({NAME:"compare",_validate:function(e,t){if(!t.comparisonTarget)throw l.Error("E0102");if(t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;o(t,{reevaluate:!0});var n=t.comparisonTarget();switch(t.comparisonType||"=="){case"==":return e==n;case"!=":return e!=n;case"===":return e===n;case"!==":return e!==n;case">":return e>n;case">=":return e>=n;case"<":return e<n;case"<=":return e<=n}}}),b=p.inherit({NAME:"pattern",_validate:function(e,t){if(!1!==t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;var n=t.pattern;return c.isString(n)&&(n=new RegExp(n)),n.test(e)}}),x=p.inherit({NAME:"email",_validate:function(e,t){return!(!1===t.ignoreEmptyValue||!this._isValueEmpty(e))||w.pattern.validate(e,o({},t,{pattern:/^[\d\w._-]+@([\d\w._-]+\.)+[\w]+$/i}))}}),w={required:new f,numeric:new g,range:new _,stringLength:new m,custom:new v,compare:new y,pattern:new b,email:new x},C=i.inherit({ctor:function(e){this.group=e,this.validators=[]},validate:function(){var e={isValid:!0,brokenRules:[],validators:[]};return r(this.validators,function(t,n){var i=n.validate();e.isValid=e.isValid&&i.isValid,i.brokenRule&&e.brokenRules.push(i.brokenRule),e.validators.push(n)}),this.fireEvent("validated",[{validators:e.validators,brokenRules:e.brokenRules,isValid:e.isValid}]),e},reset:function(){r(this.validators,function(e,t){t.reset()})}}).include(s),k={groups:[],getGroupConfig:function(e){var t=u.grep(this.groups,function(t){return t.group===e});if(t.length)return t[0]},initGroups:function(){this.groups=[],this.addGroup()},addGroup:function(e){var t=this.getGroupConfig(e);return t||(t=new C(e),this.groups.push(t)),t},removeGroup:function(e){var t=this.getGroupConfig(e),n=a(t,this.groups);return n>-1&&this.groups.splice(n,1),t},_setDefaultMessage:function(e,t,n){c.isDefined(e.message)||(t.defaultFormattedMessage&&c.isDefined(n)?e.message=t.defaultFormattedMessage(n):e.message=t.defaultMessage())},validate:function(e,t,n){var i={name:n,value:e,brokenRule:null,isValid:!0,validationRules:t},o=this;return r(t||[],function(t,a){var r,s=w[a.type];if(!s)throw l.Error("E0100");return c.isDefined(a.isValid)&&a.value===e&&!a.reevaluate?!!a.isValid||(i.isValid=!1,i.brokenRule=a,!1):(a.value=e,r=s.validate(e,a),a.isValid=r,r||(i.isValid=!1,o._setDefaultMessage(a,s,n),i.brokenRule=a),!!a.isValid&&void 0)}),i},registerValidatorInGroup:function(e,t){var n=k.addGroup(e);a(t,n.validators)<0&&n.validators.push(t)},_shouldRemoveGroup:function(e,t){var n=void 0===e,i=e&&"dxValidationGroup"===e.NAME;return!n&&!i&&!t.length},removeRegisteredValidator:function(e,t){var n=k.getGroupConfig(e),i=n&&n.validators,o=a(t,i);o>-1&&(i.splice(o,1),this._shouldRemoveGroup(e,i)&&this.removeGroup(e))},validateGroup:function(e){var t=k.getGroupConfig(e);if(!t)throw l.Error("E0110");return t.validate()},resetGroup:function(e){var t=k.getGroupConfig(e);if(!t)throw l.Error("E0110");return t.reset()}};k.initGroups(),e.exports=k},function(e,t,n){function i(e,t,n){var i=[],o=function(e){return k(e,2)};return i.push(e.getFullYear()),i.push("-"),i.push(o(e.getMonth()+1)),i.push("-"),i.push(o(e.getDate())),t&&e.getHours()+e.getMinutes()+e.getSeconds()+e.getMilliseconds()<1||(i.push("T"),i.push(o(e.getHours())),i.push(":"),i.push(o(e.getMinutes())),i.push(":"),i.push(o(e.getSeconds())),e.getMilliseconds()&&(i.push("."),i.push(k(e.getMilliseconds(),3))),n||i.push("Z")),i.join("")}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=n(14),r=n(0).extend,s=n(1),l=n(3),u=n(3).each,c=n(62),d=n(42),h=s.isDefined,p=s.isPlainObject,f=n(4).grep,g=n(6).Deferred,_=n(35).errors,m=n(40),v=/^(\{{0,1}([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}\}{0,1})$/,y=/^\/Date\((-?\d+)((\+|-)?(\d+)?)\)\/$/,b=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[-+]{1}\d{2}(:?)(\d{2})?)?$/,x="application/json;odata=verbose",w=function(e){return"string"===s.type(e)?e.split():e},C=function(e){return/\./.test(e)},k=function(e,t,n){for(e=String(e);e.length<t;)e=n?e+"0":"0"+e;return e},S=function(e,t,n){t=r({async:!0,method:"get",url:"",params:{},payload:null,headers:{},timeout:3e4},t);var o=(n=n||{}).beforeSend;o&&o(t);var a=(t.method||"get").toLowerCase(),s="get"===a,l=s&&n.jsonp,u=r({},t.params),c=s?u:function(t){return JSON.stringify(t,function(t,n){if(!(this[t]instanceof Date))return n;switch(n=i(this[t]),e){case 2:return n.substr(0,n.length-1);case 3:case 4:return n;default:throw _.Error("E4002")}})}(t.payload),d=!s&&function(e){var t=[];for(var n in e)t.push(n+"="+e[n]);return t.join("&")}(u),h=t.url,p=!s&&x;return d&&(h+=(h.indexOf("?")>-1?"&":"?")+d),l&&(c.$format="json"),{url:h,data:c,dataType:l?"jsonp":"json",jsonp:l&&"$callback",method:a,async:t.async,timeout:t.timeout,headers:t.headers,contentType:p,accepts:{json:[x,"text/plain"].join()},xhrFields:{withCredentials:n.withCredentials}}},I=function(e,t,n,i){var o,a=function(e,t,n){if("nocontent"===t)return null;var i="Unknown error",o=e,a=200,s={requestOptions:n};if("success"!==t){a=e.status,i=m.errorMessageFromXhr(e,t);try{o=JSON.parse(e.responseText)}catch(e){}}var l=o&&(o.then&&o||o.error||o["odata.error"]||o["@odata.error"]);if(l){i=function(e){var t,n=e;"message"in e&&(t=e.message.value?e.message.value:e.message);for(;(n=n.innererror||n.internalexception)&&(t=n.message,!n.internalexception||-1!==t.indexOf("inner exception")););return t}(l)||i,s.errorDetails=l,200===a&&(a=500);var u=Number(l.code);isFinite(u)&&u>=400&&(a=u)}return a>=400||0===a?(s.httpStatus=a,r(Error(i),s)):null}(e,t,i);return a?{error:a}:p(e)?(o="d"in e&&(Array.isArray(e.d)||s.isObject(e.d))?T(e,t):D(e,t),A(o,n),o):{data:e}},T=function(e){var t=e.d;return h(t)?(h(t.results)&&(t=t.results),{data:t,nextUrl:e.d.__next,count:parseInt(e.d.__count,10)}):{error:Error("Malformed or unsupported JSON response received")}},D=function(e){var t=e;return h(t.value)&&(t=t.value),{data:t,nextUrl:e["@odata.nextLink"],count:parseInt(e["@odata.count"],10)}},E=a.inherit({ctor:function(e){this._value=e},valueOf:function(){return this._value}}),A=function e(t,n){n=n||{},u(t,function(i,a){if(null!==a&&"object"===(void 0===a?"undefined":o(a)))"results"in a&&(t[i]=a.results),e(t[i],n);else if("string"==typeof a){var r=n.fieldTypes;if((!r||"String"!==r[i])&&v.test(a)&&(t[i]=new d(a)),!1!==n.deserializeDates)if(a.match(y)){var s=new Date(Number(RegExp.$1)+60*RegExp.$2*1e3);t[i]=new Date(s.valueOf()+60*s.getTimezoneOffset()*1e3)}else b.test(a)&&(t[i]=new Date(function(e){var t=new Date(60*new Date(0).getTimezoneOffset()*1e3),n=e.replace("Z","").split("T"),i=/(\d{4})-(\d{2})-(\d{2})/.exec(n[0]),o=/(\d{2}):(\d{2}):(\d{2})\.?(\d{0,7})?/.exec(n[1]);if(t.setFullYear(Number(i[1])),t.setMonth(Number(i[2])-1),t.setDate(Number(i[3])),Array.isArray(o)&&o.length){t.setHours(Number(o[1])),t.setMinutes(Number(o[2])),t.setSeconds(Number(o[3]));var a=(o[4]||"").slice(0,3);a=k(a,3,!0),t.setMilliseconds(Number(a))}return t}(t[i]).valueOf()))}})},O=function(e){return e instanceof E?e.valueOf():e.replace(/\./g,"/")},P=function(e){return e instanceof Date?function(e){return"datetime'"+i(e,!0,!0)+"'"}(e):e instanceof d?"guid'"+e+"'":e instanceof E?e.valueOf():"string"==typeof e?function(e){return"'"+e.replace(/'/g,"''")+"'"}(e):String(e)},B=function(e,t){switch(t){case 2:case 3:return P(e);case 4:return function e(t){return t instanceof Date?i(t,!1,!1):t instanceof d?t.valueOf():Array.isArray(t)?"["+t.map(function(t){return e(t)}).join(",")+"]":P(t)}(e);default:throw _.Error("E4002")}},M={String:function(e){return e+""},Int32:function(e){return Math.floor(e)},Int64:function(e){return e instanceof E?e:new E(e+"L")},Guid:function(e){return e instanceof d?e:new d(e)},Boolean:function(e){return!!e},Single:function(e){return e instanceof E?e:new E(e+"f")},Decimal:function(e){return e instanceof E?e:new E(e+"m")}};t.sendRequest=function e(t,n,i){var o=new g,a=S(t,n,i);return c.sendRequest(a).always(function(n,r){var s,l={deserializeDates:i.deserializeDates,fieldTypes:i.fieldTypes},u=I(n,r,l,a),c=u.error,d=u.data,h=u.nextUrl;c?c.message!==m.XHR_ERROR_UNLOAD&&o.reject(c):i.countOnly?isFinite(u.count)?o.resolve(u.count):o.reject(new _.Error("E4018")):h&&!i.isPaged?(function(e){return/^(?:[a-z]+:)?\/\//i.test(e)}(h)||(h=function(e,t){var n,i=function(e){var t=e.indexOf("?");return t>-1?e.substr(0,t):e}(e).split("/"),o=t.split("/");for(i.pop();o.length;)".."===(n=o.shift())?i.pop():i.push(n);return i.join("/")}(a.url,h)),e(t,{url:h},i).fail(o.reject).done(function(e){o.resolve(d.concat(e))})):(isFinite(u.count)&&(s={totalCount:u.count}),o.resolve(d,s))}),o.promise()},t.serializePropName=O,t.serializeValue=B,t.serializeKey=function(e,t){if(p(e)){var n=[];return u(e,function(e,i){n.push(O(e)+"="+B(i,t))}),n.join()}return B(e,t)},t.keyConverters=M,t.convertPrimitiveValue=function(e,t){if(null===t)return null;var n=M[e];if(!n)throw _.Error("E4014",e);return n(t)},t.generateExpand=function(e,t,n){return e<4?function(){var e={};return t&&l.each(w(t),function(){e[O(this)]=1}),n&&l.each(w(n),function(){var t=this.split(".");t.length<2||(t.pop(),e[O(t.join("."))]=1)}),l.map(e,function(e,t){return t}).join()}():function(){var e=function(e,t,n){l.each(e,function(e,i){!function e(t,n,i){var o=i(n,t.shift(),t);!1!==o&&e(t,o,i)}(i.split("."),t,n)})},i={};if(t||n)return t&&e(w(t),i,function(e,t,n){return e[t]=e[t]||{},!!n.length&&e[t]}),n&&e(f(w(n),C),i,function(e,t,n){return n.length?e[t]=e[t]||{}:(e[t]=e[t]||[],e[t].push(t),!1)}),function(e){var t=[];return l.each(e,function(e,n){t.push(e+function e(t){var n="",i=[],o=[];return l.each(t,function(t,n){Array.isArray(n)&&[].push.apply(i,n),p(n)&&o.push(t+e(n))}),(i.length||o.length)&&(n+="(",i.length&&(n+="$select="+l.map(i,O).join()),o.length&&(i.length&&(n+=";"),n+="$expand="+l.map(o,O).join()),n+=")"),n}(n))}),t.join()}(i)}()},t.generateSelect=function(e,t){if(t)return e<4?O(t.join()):f(t,C,!0).join()},t.EdmLiteral=E},function(e,t,n){var i=n(497);n(8)("dxList",i),e.exports=i},function(e,t,n){var i=n(0).extend;t.registry={},t.register=function(e,n,o){var a=t.registry,r={};r[e]=a[e]?a[e]:{},r[e][n]=o,a=i(a,r)}},function(e,t,n){var i=n(2),o=n(5),a=n(16),r=n(0).extend,s=n(72),l=n(49),u=n(8),c=n(9),d=n(19),h="dx-checkbox-has-text",p=l.inherit({_supportedKeys:function(){return r(this.callBase(),{space:function(e){e.preventDefault(),this._clickAction({event:e})}})},_getDefaultOptions:function(){return r(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,value:!1,text:"",useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}}])},_canValueBeChangedByClick:function(){return!0},_feedbackHideTimeout:100,_initMarkup:function(){this._renderSubmitElement(),this._$container=i("<div>").addClass("dx-checkbox-container"),this.setAria("role","checkbox"),this.$element().addClass("dx-checkbox"),this._renderValue(),this._renderIcon(),this._renderText(),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().append(this._$container),this.callBase()},_render:function(){this._renderClick(),this.callBase()},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=s.render({waveSizeCoefficient:2.5,useHoldAnimation:!1,wavesNumber:2,isCentered:!0})},_renderInkWave:function(e,t,n,i){if(this._inkRipple){var o={element:e,event:t,wave:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}},_updateFocusState:function(e,t){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,e,t,0)},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,n,t,1)},_renderIcon:function(){this._$icon=i("<span>").addClass("dx-checkbox-icon").prependTo(this._$container)},_renderText:function(){var e=this.option("text");return e?(this._$text||(this._$text=i("<span>").addClass("dx-checkbox-text")),this._$text.text(e),this._$container.append(this._$text),void this.$element().addClass(h)):void(this._$text&&(this._$text.remove(),this.$element().removeClass(h)))},_renderClick:function(){var e=this,t=c.addNamespace(d.name,e.NAME);e._clickAction=e._createAction(e._clickHandler),o.off(e.$element(),t),o.on(e.$element(),t,function(t){e._clickAction({event:t})})},_clickHandler:function(e){var t=e.component;t._saveValueChangeEvent(e.event),t.option("value",!t.option("value"))},_renderValue:function(){var e=this.$element(),t=this.option("value"),n=void 0===t;e.toggleClass("dx-checkbox-checked",Boolean(t)),e.toggleClass("dx-checkbox-indeterminate",n),this._$submitElement.val(t),this.setAria("checked",n?"mixed":t||"false")},_optionChanged:function(e){switch(e.name){case"useInkRipple":this._invalidate();break;case"value":this._renderValue(),this.callBase(e);break;case"text":this._renderText(),this._renderDimensions();break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});u("dxCheckBox",p),e.exports=p},function(e,t,n){e.exports=n(322)},function(e,t,n){function i(e){return!!(e&&String(e).length>0)}function o(e,t,n,i,o){e.attr({text:t}).setMaxSize(n,o,i).textChanged&&e.setTitle(t)}function a(e){return e>=0?s(e):p}function r(e){this._params=e,this._group=e.renderer.g().attr({class:e.cssClass}).linkOn(e.root||e.renderer.root,"title"),this._hasText=!1}var s=Number,l=n(1).isString,u=n(0).extend,c=n(11).patchFontOptions,d=n(11).enumParser(["left","center","right"]),h=n(11).enumParser(["top","bottom"]),p=10;u(r.prototype,n(262).LayoutElement.prototype,{dispose:function(){var e=this;e._group.linkRemove(),e._group.linkOff(),e._titleElement&&(e._clipRect.dispose(),e._titleElement=e._subtitleElement=e._clipRect=null),e._params=e._group=e._options=null},_updateOptions:function(e){this._options=e,this._options.horizontalAlignment=d(e.horizontalAlignment,"center"),this._options.verticalAlignment=h(e.verticalAlignment,"top"),this._options.margin=function(e){var t;return t=e>=0?{left:s(e),top:s(e),right:s(e),bottom:s(e)}:{left:a((e=e||{}).left),top:a(e.top),right:a(e.right),bottom:a(e.bottom)},t}(e.margin)},_updateStructure:function(){var e=this,t=e._params.renderer,n=e._group,o={align:e._options.horizontalAlignment};e._titleElement||(e._titleElement=t.text().append(n),e._subtitleElement=t.text(),e._clipRect=t.clipRect(),n.attr({"clip-path":e._clipRect.id})),e._titleElement.attr(o),e._subtitleElement.attr(o),n.linkAppend(),i(e._options.subtitle.text)?e._subtitleElement.append(n):e._subtitleElement.remove()},_updateTexts:function(){var e,t,n=this,o=n._options,a=o.subtitle,r=n._titleElement,s=n._subtitleElement;r.attr({text:"A",y:0}).css(c(o.font)),e=r.getBBox(),n._baseLineCorrection=e.height+e.y,r.attr({text:o.text}),t=-(e=r.getBBox()).y,r.attr({y:t}),i(a.text)&&s.attr({text:a.text,y:0}).css(c(a.font))},_shiftSubtitle:function(){var e=this,t=e._titleElement.getBBox(),n=e._subtitleElement,i=e._options.subtitle.offset;n.move(0,t.y+t.height-n.getBBox().y-i)},_updateBoundingRectAlignment:function(){var e=this._boundingRect,t=this._options;e.verticalAlignment=t.verticalAlignment,e.horizontalAlignment=t.horizontalAlignment,e.cutLayoutSide=t.verticalAlignment,e.cutSide="vertical",e.position={horizontal:t.horizontalAlignment,vertical:t.verticalAlignment}},hasText:function(){return this._hasText},update:function(e,t){var n=this,o=u(!0,{},e,function(e){var t=l(e)?{text:e}:e||{};return t.subtitle=l(t.subtitle)?{text:t.subtitle}:t.subtitle||{},t}(t)),a=i(o.text),r=a||a!==n._hasText;return n._baseLineCorrection=0,n._updateOptions(o),n._boundingRect={},a?(n._updateStructure(),n._updateTexts()):n._group.linkRemove(),n._updateBoundingRect(),n._updateBoundingRectAlignment(),n._hasText=a,r},draw:function(e,t){var n=this;return n._hasText&&(n._group.linkAppend(),n._correctTitleLength(e),n._group.getBBox().height>t&&this.freeSpace()),n},probeDraw:function(e,t){return this.draw(e,t),this},_correctTitleLength:function(e){var t=this,n=t._options,i=n.margin,a=e-i.left-i.right,r=n.placeholderSize;o(t._titleElement,n.text,a,n,r),t._subtitleElement&&(s(r)>0&&(r-=t._titleElement.getBBox().height),o(t._subtitleElement,n.subtitle.text,a,n.subtitle,r),t._shiftSubtitle()),t._updateBoundingRect();var l=this.getCorrectedLayoutOptions(),u=l.x,c=l.y,d=l.height;this._clipRect.attr({x:u,y:c,width:e,height:d})},getLayoutOptions:function(){return this._boundingRect||null},shift:function(e,t){var n=this,i=n.getLayoutOptions();return n._group.move(e-i.x,t-i.y),n},_updateBoundingRect:function(){var e,t=this,n=t._options,i=n.margin,o=t._boundingRect;(e=t._hasText?t._group.getBBox():{width:0,height:0,x:0,y:0,isEmpty:!0}).isEmpty||(e.height+=i.top+i.bottom-t._baseLineCorrection,e.width+=i.left+i.right,e.x-=i.left,e.y+=t._baseLineCorrection-i.top),n.placeholderSize>0&&(e.height=n.placeholderSize),o.height=e.height,o.width=e.width,o.x=e.x,o.y=e.y},getCorrectedLayoutOptions:function(){var e=this.getLayoutOptions(),t=this._baseLineCorrection;return u({},e,{y:e.y-t,height:e.height+t})},layoutOptions:function(){return this._boundingRect&&{horizontalAlignment:this._boundingRect.horizontalAlignment,verticalAlignment:this._boundingRect.verticalAlignment,priority:0}},measure:function(e){return this.draw(e[0],e[1]),[this._boundingRect.width,this._boundingRect.height]},move:function(e,t){!function(e,t){return e[2]-e[0]<t.width||e[3]-e[1]<t.height}(e,this._boundingRect)?this.shift(Math.round(e[0]),Math.round(e[1])):this.shift(t[0],t[1])},freeSpace:function(){var e=this;e._params.incidentOccurred("W2103"),e._group.linkRemove(),e._boundingRect.width=e._boundingRect.height=0},getOptions:function(){return this._options},changeLink:function(e){this._group.linkRemove(),this._group.linkOn(e,"title")}}),t.Title=r,t.plugin={name:"title",init:function(){var e=this;e._title=new t.Title({renderer:e._renderer,cssClass:e._rootClassPrefix+"-title",incidentOccurred:e._incidentOccurred}),e._layout.add(e._title)},dispose:function(){this._title.dispose(),this._title=null},customize:function(e){e.addChange({code:"TITLE",handler:function(){this._title.update(this._themeManager.theme("title"),this.option("title"))&&this._change(["LAYOUT"])},isThemeDependent:!0,option:"title",isOptionChange:!0})},fontFields:["title.font","title.subtitle.font"]}},function(e,t,n){function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=0;return u(e,function(e,n){t+=n}),t}function a(e,t){return o(_(e,function(e){return(e-t)*(e-t)}))/e.length}function r(e){return function(t,n){var o=t.intervalStart,a=t.data,r=n.getValueFields()[0],l=a[0];return l=a.reduce(function(t,n){var i=n[r];return null===t[r]&&(t=n),null!==i&&e(i,t[r])?n:t},l),s({},l,i({},n.getArgumentField(),o))}}var s=n(0).extend,l=n(13).inArray,u=n(3).each,c=n(267),d=n(1),h=n(11),p=n(4).noop,f=d.isDefined,g=d.isString,_=h.map,m=h.normalizeEnum,v=Math,y=v.abs,b=v.sqrt,x=v.max,w="highError",C="lowError",k="variance",S="stddeviation",I="stderror",T="percent",D="fixed";t.chart={},t.polar={};var E={_defaultDuration:400,_defaultTrackerWidth:12,_applyStyle:p,_updateOptions:p,_parseStyle:p,_prepareSegment:p,_drawSegment:p,_appendInGroup:function(){this._group.append(this._extGroups.seriesGroup)},_createLegendState:function(e,t){return{fill:e.color||t,hatching:e.hatching?s({},e.hatching,{direction:"right"}):void 0}},_applyElementsClipRect:function(e){e["clip-path"]=this._paneClipRectID},_applyMarkerClipRect:function(e){e["clip-path"]=this._forceClipping?this._paneClipRectID:null},_createGroup:function(e,t,n,i){var o=t[e]=t[e]||this._renderer.g();n&&o.append(n),i&&o.attr(i)},_applyClearingSettings:function(e){e.opacity=null,e.scale=null,this._options.rotated?e.translateX=null:e.translateY=null},_createGroups:function(){var e=this;e._createGroup("_markersGroup",e,e._group),e._createGroup("_labelsGroup",e)},_setMarkerGroupSettings:function(){var e=this,t=e._createPointStyles(e._getMarkerGroupOptions()).normal;t.class="dxc-markers",t.opacity=1,e._applyMarkerClipRect(t),e._markersGroup.attr(t)},getVisibleArea:function(){return this._visibleArea},areErrorBarsVisible:function(){var e=this._options.valueErrorBar;return e&&this._errorBarsEnabled()&&"none"!==e.displayMode&&(function(e){return-1!==l(e,[D,T,k,S,I])}(m(e.type))||f(e.lowValueField)||f(e.highValueField))},groupPointsByCoords:function(e){var t=[];return u(this.getVisiblePoints(),function(n,i){var o=parseInt(e?i.vy:i.vx);t[o]?Array.isArray(t[o])?t[o].push(i):t[o]=[t[o],i]:t[o]=i}),t},_createErrorBarGroup:function(e){var t,n=this,i=n._options.valueErrorBar;n.areErrorBarsVisible()&&(t={class:"dxc-error-bars",stroke:i.color,"stroke-width":i.lineWidth,opacity:e?.001:i.opacity||1,"stroke-linecap":"square",sharp:!0,"clip-path":n._forceClipping?n._paneClipRectID:n._widePaneClipRectID},n._createGroup("_errorBarGroup",n,n._group,t))},_setGroupsSettings:function(e){var t=this;t._setMarkerGroupSettings(),t._setLabelGroupSettings(e),t._createErrorBarGroup(e)},_getCreatingPointOptions:function(){var e,t,n=this,i=n._predefinedPointOptions;return i||(e=n._getPointOptions(),n._predefinedPointOptions=i=s(!0,{styles:{}},e),t=e.styles&&e.styles.normal||{},i.styles=i.styles||{},i.styles.normal={"stroke-width":t["stroke-width"],r:t.r,opacity:t.opacity}),i},_getPointOptions:function(){return this._parsePointOptions(this._preparePointOptions(),this._options.label)},_getOptionsForPoint:function(){return this._options.point},_parsePointStyle:function(e,t,n,i){var o=e.border||{},a=void 0!==e.size?e.size:i;return{fill:e.color||t,stroke:o.color||n,"stroke-width":o.visible?o.width:0,r:a/2+(o.visible&&0!==a&&~~(o.width/2)||0)}},_createPointStyles:function(e){var t=this,n=e.color||t._options.mainSeriesColor,i=t._options.containerBackgroundColor,o=t._parsePointStyle(e,n,n);return o.visibility=e.visible?"visible":"hidden",{normal:o,hover:t._parsePointStyle(e.hoverStyle,i,n,e.size),selection:t._parsePointStyle(e.selectionStyle,i,n,e.size)}},_checkData:function(e,t,n){return(n=n||{value:this.getValueFields()[0]}).argument=this.getArgumentField(),function(e,t,n){var i=!0;for(var o in t){var a="argument"===o;if(a||"size"===o?!f(e[o]):void 0===e[o]){var r=t[o];a||(n[r]=(n[r]||0)+1),i=!1}}return i}(e,n,t||{})&&e.value==e.value},getErrorBarRangeCorrector:function(){var e,t;return this.areErrorBarsVisible()&&(e=m(this._options.valueErrorBar.displayMode),t=function(t){var n=t.lowError,i=t.highError;switch(e){case"low":return[n];case"high":return[i];case"none":return[];default:return[n,i]}}),t},getValueRangeInitialValue:function(){},_getRangeData:function(){return c.getRangeData(this)},_getPointDataSelector:function(){var e=this.getValueFields()[0],t=this.getArgumentField(),n=this.getTagField(),i=this.areErrorBarsVisible(),o=void 0,a=void 0;if(i){var r=this._options.valueErrorBar;o=r.lowValueField||C,a=r.highValueField||w}return function(r){var s={value:r[e],argument:r[t],tag:r[n],data:r};return i&&(s.lowError=r[o],s.highError=r[a]),s}},_errorBarsEnabled:function(){return"discrete"!==this.valueAxisType&&"logarithmic"!==this.valueAxisType&&"datetime"!==this.valueType},_drawPoint:function(e){var t=e.point;t.isInVisibleArea()?(t.clearVisibility(),t.draw(this._renderer,e.groups,e.hasAnimation,e.firstDrawing),this._drawnPoints.push(t)):t.setInvisibility()},_animateComplete:function(){var e=this,t={duration:e._defaultDuration};e._labelsGroup&&e._labelsGroup.animate({opacity:1},t),e._errorBarGroup&&e._errorBarGroup.animate({opacity:e._options.valueErrorBar.opacity||1},t)},_animate:function(){var e=this,t=e._drawnPoints.length-1;u(e._drawnPoints||[],function(n,i){i.animate(n===t?function(){e._animateComplete()}:void 0,{translateX:i.x,translateY:i.y})})},_defaultAggregator:"avg",_aggregators:{avg:function(e,t){var n,o=e.data,a=e.intervalStart;if(o.length){var r=t.getValueFields()[0],s=o.reduce(function(e,t){var n=t[r];return f(n)?(e[0]+=n,e[1]++):null===n&&e[2]++,e},[0,0,0]);return function(e,t,n){var i=n.getOptions().valueErrorBar,o=n.getValueFields()[0],a=i.lowValueField||C,r=i.highValueField||w;if(n.areErrorBarsVisible()&&void 0===i.type){var s=t.reduce(function(e,t){return f(t[a])&&(e[0]+=t[o]-t[a],e[1]++),f(t[r])&&(e[2]+=t[r]-t[o],e[3]++),e},[0,0,0,0]);s[1]&&(e[a]=e[o]-s[0]/s[1]),s[2]&&(e[r]=e[o]+s[2]/s[3])}return e}((i(n={},r,s[2]===o.length?null:s[0]/s[1]),i(n,t.getArgumentField(),a),n),o,t)}},sum:function(e,t){var n,o=e.intervalStart,a=e.data;if(a.length){var r=t.getValueFields()[0],s=a.reduce(function(e,t){var n=t[r];return void 0!==n&&(e[0]+=n),null===n?e[1]++:void 0===n&&e[2]++,e},[0,0,0]),l=s[0];if(s[1]===a.length&&(l=null),s[2]!==a.length)return function(e,t,n){var i=n.getOptions().valueErrorBar,o=i.lowValueField||C,a=i.highValueField||w;return n.areErrorBarsVisible()&&void 0===i.type&&(e[o]=0,e[a]=0,e=t.reduce(function(e,t){return e[o]+=t[o],e[a]+=t[a],e},e)),e}((i(n={},r,l),i(n,t.getArgumentField(),o),n),a,t)}},count:function(e,t){var n,o=e.data,a=e.intervalStart,r=t.getValueFields()[0];return i(n={},t.getArgumentField(),a),i(n,r,o.filter(function(e){return void 0!==e[r]}).length),n},min:r(function(e,t){return e<t}),max:r(function(e,t){return e>t})},_endUpdateData:function(){delete this._predefinedPointOptions},getArgumentField:function(){return this._options.argumentField||"arg"},getValueFields:function(){var e,t,n=this._options,i=n.valueErrorBar,o=[n.valueField||"val"];return i&&(e=i.lowValueField,t=i.highValueField,g(e)&&o.push(e),g(t)&&o.push(t)),o},_calculateErrorBars:function(e){if(this.areErrorBarsVisible()){var t,n,i,r,s,l=this._options.valueErrorBar,c=m(l.type),d=parseFloat(l.value),h=this.getValueFields()[0],p=l.lowValueField||C,g=l.highValueField||w,v=function(e,n){t=n.value,n.lowError=t-d,n.highError=t+d};switch(c){case D:s=v;break;case T:s=function(e,n){var i=(t=n.value)*d/100;n.lowError=t-i,n.highError=t+i};break;case"undefined":s=function(e,t){t.lowError=t.data[p],t.highError=t.data[g]};break;default:switch(i=(n=_(e,function(e){return f(e.data[h])?e.data[h]:null})).length,d=d||1,c){case k:d=a(n,o(n)/i)*d,s=v;break;case S:r=o(n)/i,d=b(a(n,r))*d,s=function(e,t){t.lowError=r-d,t.highError=r+d};break;case I:d=b(a(n,o(n)/i)/i)*d,s=v}}s&&u(e,s)}},_patchMarginOptions:function(e){var t=this._getCreatingPointOptions(),n=t.styles,i=[n.normal,n.hover,n.selection].reduce(function(e,t){return x(e,2*t.r+t["stroke-width"])},0);return e.size=t.visible?i:0,e.sizePointNormalState=t.visible?2*n.normal.r+n.normal["stroke-width"]:2,e},usePointsToDefineAutoHiding:function(){return!0}};t.chart=s({},E,{drawTrackers:function(){var e,t,n=this,i=n._segments||[],o=n._options.rotated;n.isVisible()&&(i.length&&(e=n._trackers=n._trackers||[],t=n._trackersGroup=(n._trackersGroup||n._renderer.g().attr({fill:"gray",opacity:.001,stroke:"gray",class:"dxc-trackers"})).attr({"clip-path":this._paneClipRectID||null}).append(n._group),u(i,function(i,o){e[i]?n._updateTrackerElement(o,e[i]):e[i]=n._drawTrackerElement(o).data({"chart-data-series":n}).append(t)})),n._trackersTranslator=n.groupPointsByCoords(o))},checkAxisVisibleAreaCoord:function(e,t){var n=(e?this.getArgumentAxis():this.getValueAxis()).getVisibleArea();return f(t)&&n[0]<=t&&n[1]>=t},checkSeriesViewportCoord:function(e,t){return!0},getShapePairCoord:function(e,t,n){for(var i=null,o=!t&&!this._options.rotated||t&&this._options.rotated,a=o?"vy":"vx",r=o?"vx":"vy",s=this.getVisiblePoints(),l=0;l<s.length;l++){var u=s[l],c=Math.abs(u[a]-e)<=n(u)?u[r]:void 0;if(this.checkAxisVisibleAreaCoord(!t,c)){i=c;break}}return i},getSeriesPairCoord:function(e,t){var n=this;return this.getShapePairCoord(e,t,function(){return n._options.point.size/2})},getNearestPointsByCoord:function(e,t){var n=this,i=n.getOptions().rotated,o=!t&&!i||t&&i?"vy":"vx",a=n.getVisiblePoints(),r=n.getPoints(),s=[];return n.isVisible()&&r.length>0&&(r.length>1?n.findNeighborPointsByCoord(e,o,a.slice(0),r,function(e,t){s.push([e,t])}):r[0][o]===e&&s.push([r[0],r[0]])),s},findNeighborPointsByCoord:function(e,t,n,i,o){var a=i;n.length>0&&(n.splice(0,0,i[i.indexOf(n[0])-1]),n.splice(n.length,0,i[i.indexOf(n[n.length-1])+1]),a=n),a.forEach(function(n,i){var r=a[i+1];n&&r&&(n[t]<=e&&r[t]>=e||n[t]>=e&&r[t]<=e)&&o(n,r)})},getNeighborPoint:function(e,t){var n,i=this._options.rotated?t:e,o=i,a=this._trackersTranslator,r=null,s=this._options.rotated?e:t,l=this._options.rotated?"vx":"vy";if(this.isVisible()&&a){r=a[i];do{r=a[o]||a[i],i--,o++}while((i>=0||o<a.length)&&!r);Array.isArray(r)&&(n=y(r[0][l]-s),u(r,function(e,t){var i=y(t[l]-s);n>=i&&(n=i,r=t)}))}return r},_applyVisibleArea:function(){var e=this,t=e._options.rotated,n=(t?e.getValueAxis():e.getArgumentAxis()).getVisibleArea(),i=(t?e.getArgumentAxis():e.getValueAxis()).getVisibleArea();e._visibleArea={minX:n[0],maxX:n[1],minY:i[0],maxY:i[1]}}}),t.polar=s({},E,{drawTrackers:function(){t.chart.drawTrackers.call(this);var e,n=this._trackersTranslator;this.isVisible()&&(u(n,function(t,n){if(n)return e=t,!1}),n[e+360]=n[e])},getNeighborPoint:function(e,n){var i=h.convertXYToPolar(this.getValueAxis().getCenter(),e,n);return t.chart.getNeighborPoint.call(this,i.phi,i.r)},_applyVisibleArea:function(){var e=this.getValueAxis().getCanvas();this._visibleArea={minX:e.left,maxX:e.width-e.right,minY:e.top,maxY:e.height-e.bottom}}})},function(e,t,n){function i(e){e.css({left:"-9999px"}).detach()}function o(e){var t,n,i=this;i._eventTrigger=e.eventTrigger,i._widgetRoot=e.widgetRoot,i._wrapper=u("<div>").css({position:"absolute",overflow:"visible",height:"1px",pointerEvents:"none"}).addClass(e.cssClass),i._renderer=t=new c.Renderer({pathModified:e.pathModified,container:i._wrapper[0]}),(n=t.root).attr({"pointer-events":"none"}),i._cloud=t.path([],"area").sharp().append(n),i._shadow=t.shadowFilter(),i._textGroup=t.g().attr({align:"center"}).append(n),i._text=t.text(void 0,0,0).append(i._textGroup),i._textGroupHtml=u("<div>").css({position:"absolute",width:0,padding:0,margin:0,border:"0px solid transparent"}).appendTo(i._wrapper),i._textHtml=u("<div>").css({position:"relative",display:"inline-block",padding:0,margin:0,border:"0px solid transparent"}).appendTo(i._textGroupHtml)}var a=n(12),r=n(7),s=n(32),l=r.getWindow(),u=n(2),c=n(168),d=n(1),h=n(0).extend,p=n(11),f=n(63).format,g=Math.ceil,_=Math.max,m=Math.min;o.prototype={constructor:o,dispose:function(){this._wrapper.remove(),this._renderer.dispose(),this._options=this._widgetRoot=null},_getContainer:function(){var e=this._options,t=u(this._widgetRoot).closest(e.container);return 0===t.length&&(t=u(e.container)),(t.length?t:u("body")).get(0)},setOptions:function(e){e=e||{};var t=this,n=t._cloudSettings={opacity:e.opacity,filter:t._shadow.id,"stroke-width":null,stroke:null},i=e.border||{};return t._shadowSettings=h({x:"-50%",y:"-50%",width:"200%",height:"200%"},e.shadow),t._options=e,i.visible&&h(n,{"stroke-width":i.width,stroke:i.color,"stroke-opacity":i.opacity,dashStyle:i.dashStyle}),t._textFontStyles=p.patchFontOptions(e.font),t._textFontStyles.color=e.font.color,t._wrapper.css({zIndex:e.zIndex}),t._customizeTooltip=e.customizeTooltip,t},setRendererOptions:function(e){return this._renderer.setOptions(e),this._textGroupHtml.css({direction:e.rtl?"rtl":"ltr"}),this},render:function(){var e=this;i(e._wrapper),e._cloud.attr(e._cloudSettings),e._shadow.attr(e._shadowSettings);var t={};for(var n in e._textFontStyles)t[s.camelize(n)]=e._textFontStyles[n];return e._textGroupHtml.css(t),e._textGroup.css(e._textFontStyles),e._text.css(e._textFontStyles),e._eventData=null,e},update:function(e){return this.setOptions(e).render()},_prepare:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._customizeTooltip,i=this._options,o={};return d.isFunction(n)&&(o=n.call(e,e),"text"in(o=d.isPlainObject(o)?o:{})&&(t.text=d.isDefined(o.text)?String(o.text):""),"html"in o&&(t.html=d.isDefined(o.html)?String(o.html):"")),"text"in t||"html"in t||(t.text=e.valueText||e.description||""),t.color=o.color||i.color,t.borderColor=o.borderColor||(i.border||{}).color,t.textColor=o.fontColor||(i.font||{}).color,!!t.text||!!t.html},show:function(e,t,n,i){var o,a,r=this,s={},u=r._options,c=u.paddingLeftRight,d=u.paddingTopBottom,h=r._textGroupHtml,p=r._textHtml,f=r._shadowSettings,_=f.offsetX,m=f.offsetY,v=2*f.blur+1,y=l.getComputedStyle;return!!r._prepare(e,s,i)&&(r._state=s,s.tc={},r._wrapper.appendTo(r._getContainer()),r._cloud.attr({fill:s.color,stroke:s.borderColor}),s.html?(r._text.attr({text:""}),h.css({color:s.textColor,width:r._getCanvas().width}),p.html(s.html),y?(o=y(p.get(0)),o={x:0,y:0,width:g(parseFloat(o.width)),height:g(parseFloat(o.height))}):(o=p.get(0).getBoundingClientRect(),o={x:0,y:0,width:g(o.width?o.width:o.right-o.left),height:g(o.height?o.height:o.bottom-o.top)}),h.width(o.width),h.height(o.height)):(p.html(""),r._text.css({fill:s.textColor}).attr({text:s.text}),o=r._textGroup.css({fill:s.textColor}).getBBox()),(a=s.contentSize={x:o.x-c,y:o.y-d,width:o.width+2*c,height:o.height+2*d,lm:v-_>0?v-_:0,rm:v+_>0?v+_:0,tm:v-m>0?v-m:0,bm:v+m>0?v+m:0}).fullWidth=a.width+a.lm+a.rm,a.fullHeight=a.height+a.tm+a.bm+u.arrowLength,r.move(t.x,t.y,t.offset),r._eventData&&r._eventTrigger("tooltipHidden",r._eventData),r._eventData=n,r._eventTrigger("tooltipShown",r._eventData),!0)},hide:function(){var e=this;i(e._wrapper),e._eventData&&e._eventTrigger("tooltipHidden",e._eventData),e._eventData=null},move:function(e,t,n){n=n||0;var i=this,o=i._getCanvas(),a=i._state,r=a.tc,s=a.contentSize;i._calculatePosition(e,t,n,o)&&(i._cloud.attr({points:r.cloudPoints}).move(s.lm,s.tm),a.html?i._textGroupHtml.css({left:-s.x+s.lm,top:-s.y+s.tm+r.correction}):i._textGroup.move(-s.x+s.lm,-s.y+s.tm+r.correction),i._renderer.resize("out"===r.hp?o.fullWidth+s.lm:s.fullWidth,"out"===r.vp?o.fullHeight:s.fullHeight)),n=i._wrapper.css({left:0,top:0}).offset(),i._wrapper.css({left:r.x-n.left,top:r.y-n.top,width:"out"===r.hp?o.fullWidth+s.lm:s.fullWidth})},formatValue:function(e,t){var n=t?function(e,t){var n=e;switch(t){case"argument":n={format:e.argumentFormat};break;case"percent":n={format:{type:"percent",precision:e.format&&e.format.percentPrecision}}}return n}(this._options,t):this._options;return f(e,n.format)},getLocation:function(){return p.normalizeEnum(this._options.location)},isEnabled:function(){return!!this._options.enabled},isShared:function(){return!!this._options.shared},_calculatePosition:function(e,t,n,i){var o,a,r,s=this._options.arrowLength,l=this._state,u=l.tc,c=l.contentSize,d=c.width,h=d/2,p=c.height,f=t-i.top,g=i.top+i.height-t,_=e-i.left,m=i.width+i.left-e,v=p+s+n+c.tm,y=p+s+n+c.bm,b=d+c.lm,x=d+c.rm,w=h+c.lm,C=h+c.rm,k=0,S=[6,0],I=h+10,T=h,D=h-10,E=p+s,A="center",O="bottom";return a=r=p,v>f&&y>g?O="out":v>f&&(O="top"),b>_&&x>m?A="out":w>_&&x<m?A="left":C>m&&b<_&&(A="right"),"out"===A?e=i.left:"left"===A?(I=10,T=D=0):"right"===A?(I=T=d,D=d-10,e-=d):"center"===A&&(e-=h),"out"===O?t=i.top:"top"===O?("out"!==A&&(k=s),S[0]=2,a=r=s,E=I,I=D,D=E,E=0,t+=n):t-=p+s+n,u.x=e-c.lm,u.y=t-c.tm,u.correction=k,(A!==u.hp||O!==u.vp)&&(u.hp=A,u.vp=O,o=[0,0+k,d,0+k,d,p+k,0,p+k],"out"!==A&&"out"!==O&&(S.splice(2,0,I,a,T,E,D,r),o.splice.apply(o,S)),u.cloudPoints=o,!0)},_getCanvas:function(){var e=this._getContainer(),t=e.getBoundingClientRect(),n=a.getDocumentElement(),i=a.getBody(),o=l.pageXOffset||n.scrollLeft||0,r=l.pageYOffset||n.scrollTop||0,s={left:o,top:r,width:n.clientWidth||0,height:n.clientHeight||0,fullWidth:_(i.scrollWidth,n.scrollWidth,i.offsetWidth,n.offsetWidth,i.clientWidth,n.clientWidth)-o,fullHeight:_(i.scrollHeight,n.scrollHeight,i.offsetHeight,n.offsetHeight,i.clientHeight,n.clientHeight)-r};return e!==i&&(o=_(s.left,s.left+t.left),r=_(s.top,s.top+t.top),s.width=m(s.width+s.left-o,t.width+(t.left>0?0:t.left)),s.height=m(s.height+s.top-r,t.height+(t.top>0?0:t.top)),s.fullWidth=s.width,s.fullHeight=s.height,s.left=o,s.top=r),s}},t.Tooltip=o,t.plugin={name:"tooltip",init:function(){this._initTooltip()},dispose:function(){this._disposeTooltip()},members:{_initTooltip:function(){this._tooltip=new t.Tooltip({cssClass:this._rootClassPrefix+"-tooltip",eventTrigger:this._eventTrigger,pathModified:this.option("pathModified"),widgetRoot:this.element()})},_disposeTooltip:function(){this._tooltip.dispose(),this._tooltip=null},_setTooltipRendererOptions:function(){this._tooltip.setRendererOptions(this._getRendererOptions())},_setTooltipOptions:function(){this._tooltip.update(this._getOption("tooltip"))}},extenders:{_stopCurrentHandling:function(){this._tooltip&&this._tooltip.hide()}},customize:function(e){var t=e.prototype;t._eventsMap.onTooltipShown={name:"tooltipShown"},t._eventsMap.onTooltipHidden={name:"tooltipHidden"},e.addChange({code:"TOOLTIP_RENDERER",handler:function(){this._setTooltipRendererOptions()},isThemeDependent:!0,isOptionChange:!0}),e.addChange({code:"TOOLTIP",handler:function(){this._setTooltipOptions()},isThemeDependent:!0,isOptionChange:!0,option:"tooltip"})},fontFields:["tooltip.font"]}},function(e,t,n){function i(e,t){return t<e}function o(e,t){return t>e}function a(e,t,n,i){var o=u(t);u(e)?o&&i(e,t)&&n(t):o&&n(t)}var r,s=n(1),l=n(0).extend,u=s.isDefined,c=s.isDate,d=s.isFunction,h=n(11).unique,p="min",f="max",g="minVisible",_="maxVisible",m="base",v="axisType";(r=t.Range=function(e){e&&l(this,e)}).prototype={constructor:r,addRange:function(e){var t=this,n=t.categories,r=e.categories,s=function(n,i){a(t[n],e[n],function(e){t[n]=e},i)},l=function(e,n,i){a(t[e],t[n],function(n){u(t[e])&&(t[e]=n)},i)},c=function(n){t[n]=t[n]||e[n]};return c("invert"),c(v),c("dataType"),c("isSpacedMargin"),c("checkMinDataVisibility"),c("checkMaxDataVisibility"),"logarithmic"===t[v]?c(m):t[m]=void 0,s(p,i),s(f,o),"discrete"===t[v]?(c(g),c(_)):(s(g,i),s(_,o)),s("interval",i),l(p,g,i),l(p,_,i),l(f,_,o),l(f,g,o),t.categories=void 0===n?r:r?h(n.concat(r)):n,t},isEmpty:function(){return!(u(this[p])&&u(this[f])||this.categories&&0!==this.categories.length)},correctValueZeroLevel:function(){function e(e,n){t[e]<0&&t[n]<0&&(t[n]=0),t[e]>0&&t[n]>0&&(t[e]=0)}var t=this;return"logarithmic"===t[v]||c(t[f])||c(t[p])?t:(e(p,f),e(g,_),t)},sortCategories:function(e){if(!1!==e&&this.categories)if(Array.isArray(e))this.categories=e.slice(0).concat(this.categories.filter(function(t){return t&&-1===e.indexOf(t.valueOf())}));else{var t=!d(e);t&&"string"!==this.dataType?e=function(e,t){return e.valueOf()-t.valueOf()}:t&&(e=!1),e&&this.categories.sort(e)}}}},function(e,t,n){var i=n(2),o=n(27),a=n(7).getWindow(),r=n(1),s=n(3).each,l=n(14),u=n(21),c=l.inherit({ctor:function(e,t){t=t||{},this._action=e,this._context=t.context||a,this._beforeExecute=t.beforeExecute,this._afterExecute=t.afterExecute,this._component=t.component,this._validatingTargetName=t.validatingTargetName;var n=this._excludeValidators={};if(t.excludeValidators)for(var i=0;i<t.excludeValidators.length;i++)n[t.excludeValidators[i]]=!0},execute:function(){var e={action:this._action,args:Array.prototype.slice.call(arguments),context:this._context,component:this._component,validatingTargetName:this._validatingTargetName,cancel:!1,handled:!1},t=this._beforeExecute,n=this._afterExecute,i=e.args[0]||{};if("jQueryEvent"in i||!i.event||!o().useJQuery||Object.defineProperty(i,"jQueryEvent",{get:function(){return u.log("W0003","Handler argument","jQueryEvent","17.2","Use the 'event' field instead"),i.event},set:function(e){u.log("W0003","Handler argument","jQueryEvent","17.2","Use the 'event' field instead"),i.event=e}}),this._validateAction(e)&&(t&&t.call(this._context,e),!e.cancel)){var a=this._executeAction(e);if(!i.cancel)return n&&n.call(this._context,e),a}},_validateAction:function(e){var t=this._excludeValidators,n=c.executors;for(var i in n)if(!t[i]){var o=n[i];if(o.validate&&o.validate(e),e.cancel)return!1}return!0},_executeAction:function(e){var t,n=c.executors;for(var i in n){var o=n[i];if(o.execute&&o.execute(e),e.handled){t=e.result;break}}return t}});c.executors={},c.registerExecutor=function(e,t){return r.isPlainObject(e)?void s(e,c.registerExecutor):void(c.executors[e]=t)},c.unregisterExecutor=function(){var e=[].slice.call(arguments);s(e,function(){delete c.executors[this]})},c.registerExecutor({undefined:{execute:function(e){e.action||(e.result=void 0,e.handled=!0)}},func:{execute:function(e){r.isFunction(e.action)&&(e.result=e.action.call(e.context,e.args[0]),e.handled=!0)}}});var d=function(e){return function(t){if(t.args.length){var n=t.args[0],o=n[t.validatingTargetName]||n.element;o&&e(i(o))&&(t.cancel=!0)}}};c.registerExecutor({disabled:{validate:d(function(e){return e.is(".dx-state-disabled, .dx-state-disabled *")})},readOnly:{validate:d(function(e){return e.is(".dx-state-readonly, .dx-state-readonly *")})}}),e.exports=c},function(e,t,n){var i=n(2),o=n(71).inherit({_renderCore:function(){return i()}});e.exports=o},function(e,t,n){var i=n(7),o=i.hasWindow()?i.getWindow():{},a=n(70),r=function(e){return setTimeout(e,1e3/60)},s=function(e){clearTimeout(e)},l=a(function(){var e=o.requestAnimationFrame||o.webkitRequestAnimationFrame||o.mozRequestAnimationFrame||o.oRequestAnimationFrame||o.msRequestAnimationFrame,t=o.cancelAnimationFrame||o.webkitCancelAnimationFrame||o.mozCancelAnimationFrame||o.oCancelAnimationFrame||o.msCancelAnimationFrame;if(e&&t&&(r=e,s=t),e&&!t){var n={};r=function(t){var i=e.call(o,function(){try{if(i in n)return;t.apply(this,arguments)}finally{delete n[i]}});return i},s=function(e){n[e]=!0}}});t.requestAnimationFrame=function(){return l(),r.apply(o,arguments)},t.cancelAnimationFrame=function(){l(),s.apply(o,arguments)}},function(e,t,n){var i=n(177);e.exports=new i},function(e,t,n){var i=n(2),o=n(4).noop,a=n(14),r=n(25),s=n(0).extend,l=n(9),u=a.inherit({ctor:function(e){this._$element=i(e),this._cancelCallback=r(),this._acceptCallback=r()},getElement:function(){return this._$element},validate:function(e){return"dxmousewheel"!==e.type},validatePointers:function(e){return 1===l.hasTouches(e)},allowInterruptionByMouseWheel:function(){return!0},configure:function(e){s(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,move:o,end:o,cancel:o,reset:function(){this._acceptRequestEvent&&this._accept(this._acceptRequestEvent)},_fireEvent:function(e,t,n){var i=s({type:e,originalEvent:t,target:this._getEmitterTarget(t),delegateTarget:this.getElement().get(0)},n);return(t=l.fireEvent(i)).cancel&&this._cancel(t),t},_getEmitterTarget:function(e){return(this.delegateSelector?i(e.target).closest(this.delegateSelector):this.getElement()).get(0)},dispose:o});e.exports=u},function(e,t,n){var i=n(69),o=n(85);if(i&&i.load){i.locale()||(i.load({supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11965 $"},likelySubtags:{en:"en-Latn-US",de:"de-Latn-DE",ru:"ru-Cyrl-RU",ja:"ja-Jpan-JP"}}}),i.locale("en")),o.inject({locale:function(e){return e?void i.locale(e):i.locale().locale}})}},function(e,t,n){e.exports=n(521)},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(56),r=n(1).isDate,s=n(3).each,l=n(33),u=function(e){var t=void 0===e?"undefined":i(e);return"string"===t?"format":"object"===t&&void 0!==e.type?e.type:null},c={SUPPORTED_FORMATS:["date","time","datetime"],DATE_COMPONENT_TEXT_FORMATTER:function(e,t){var n=o("<div>").addClass("dx-dateview-formatter-container");return o("<span>").text(e).addClass("dx-dateview-value-formatter").appendTo(n),o("<span>").text(t).addClass("dx-dateview-name-formatter").appendTo(n),n},ONE_MINUTE:6e4,ONE_DAY:864e5,ONE_YEAR:31536e6,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:["year","day","month","day"]},time:{getStandardPattern:function(){return"HH:mm"},components:["hours","minutes","seconds","milliseconds"]},datetime:{getStandardPattern:function(){var e,t;return(t=o("<input>").attr("type","datetime")).val("2000-01-01T01:01Z"),t.val()&&(e="yyyy-MM-ddTHH:mmZ"),e||(e="yyyy-MM-ddTHH:mm:ssZ"),c.FORMATS_INFO.datetime.getStandardPattern=function(){return e},e},components:["year","day","month","day"].concat(["hours","minutes","seconds","milliseconds"])},"datetime-local":{getStandardPattern:function(){return"yyyy-MM-ddTHH:mm:ss"},components:["year","day","month","day"].concat(["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 n=c.FORMATS_INFO[t].getStandardPattern();return a.serializeDate(e,n)},fromStandardDateFormat:function(e){var t=a.dateParser(e);return r(t)?t:void 0},getMaxMonthDay:function(e,t){return new Date(e,t+1,0).getDate()},mergeDates:function(e,t,n){if(!t)return t||null;if(!e||isNaN(e.getTime())){var i=new Date(null);e=new Date(i.getFullYear(),i.getMonth(),i.getDate())}var o=new Date(e.valueOf()),a=c.FORMATS_INFO[n];return s(a.components,function(){var e=c.DATE_COMPONENTS_INFO[this];o[e.setter](t[e.getter]())}),o},getLongestCaptionIndex:function(e){var t,n=0,i=0;for(t=0;t<e.length;++t)e[t].length>i&&(n=t,i=e[t].length);return n},formatUsesMonthName:function(e){return l.formatUsesMonthName(e)},formatUsesDayName:function(e){return l.formatUsesDayName(e)},getLongestDate:function(e,t,n){var i=u(e),o=9;i&&!c.formatUsesMonthName(i)||(o=c.getLongestCaptionIndex(t));var a=new Date(1888,o,21,23,59,59,999);if(!i||c.formatUsesDayName(i)){var r=a.getDate()-a.getDay()+c.getLongestCaptionIndex(n);a.setDate(r)}return a},normalizeTime:function(e){e.setSeconds(0),e.setMilliseconds(0)}};c.DATE_COMPONENTS_INFO={year:{getter:"getFullYear",setter:"setFullYear",formatter:function(e,t,n){var i=new Date(n.getTime());return i.setFullYear(e),l.format(i,"yyyy")},startValue:void 0,endValue:void 0},day:{getter:"getDate",setter:"setDate",formatter:function(e,t,n){var i=new Date(n.getTime());return i.setDate(e),t?c.DATE_COMPONENT_TEXT_FORMATTER(e,l.getDayNames()[i.getDay()]):l.format(i,"d")},startValue:1,endValue:void 0},month:{getter:"getMonth",setter:"setMonth",formatter:function(e,t){var n=l.getMonthNames()[e];return t?c.DATE_COMPONENT_TEXT_FORMATTER(e+1,n):n},startValue:0,endValue:11},hours:{getter:"getHours",setter:"setHours",formatter:function(e){return l.format(new Date(0,0,0,e),"hour")},startValue:0,endValue:23},minutes:{getter:"getMinutes",setter:"setMinutes",formatter:function(e){return l.format(new Date(0,0,0,0,e),"minute")},startValue:0,endValue:59},seconds:{getter:"getSeconds",setter:"setSeconds",formatter:function(e){return l.format(new Date(0,0,0,0,0,e),"second")},startValue:0,endValue:59},milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",formatter:function(e){return l.format(new Date(0,0,0,0,0,0,e),"millisecond")},startValue:0,endValue:999}},e.exports=c},function(e,t,n){e.exports={notifyObserver:function(e,t){var n=this.option("observer");n&&n.fire(e,t)},invoke:function(){var e=this.option("observer");if(e)return e.fire.apply(e,arguments)}}},function(e,t,n){e.exports={events:{mouseover:"mouseover",mouseout:"mouseout",mousemove:"mousemove",touchstart:"touchstart",touchmove:"touchmove",touchend:"touchend",mousedown:"mousedown",mouseup:"mouseup",click:"click",selectSeries:"selectseries",deselectSeries:"deselectseries",selectPoint:"selectpoint",deselectPoint:"deselectpoint",showPointTooltip:"showpointtooltip",hidePointTooltip:"hidepointtooltip"},states:{hover:"hover",normal:"normal",selection:"selection",normalMark:0,hoverMark:1,selectedMark:2,applyHover:"applyHover",applySelected:"applySelected",resetItem:"resetItem"},radialLabelIndent:30,pieLabelSpacing:10,pieSeriesSpacing:4}},function(e,t,n){var i=n(0).extend,o=n(3).each,a=n(4).noop,r=n(7),s=r.getWindow(),l=n(266),u=i,c=n(1).isDefined,d=n(11).normalizeEnum,h=Math,p=h.round,f=h.floor,g=h.ceil,_="canvas_position_default";e.exports={deleteLabel:function(){this._label.dispose(),this._label=null},_hasGraphic:function(){return this.graphic},clearVisibility:function(){var e=this.graphic;e&&e.attr("visibility")&&e.attr({visibility:null})},isVisible:function(){return this.inVisibleArea&&this.series.isVisible()},setInvisibility:function(){var e=this,t=e.graphic;t&&"hidden"!==t.attr("visibility")&&t.attr({visibility:"hidden"}),e._errorBar&&e._errorBar.attr({visibility:"hidden"}),e._label.draw(!1)},clearMarker:function(){var e=this.graphic;e&&e.attr(this._emptySettings)},_createLabel:function(){this._label=new l.Label({renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this})},_updateLabelData:function(){this._label.setData(this._getLabelFormatObject())},_updateLabelOptions:function(){!this._label&&this._createLabel(),this._label.setOptions(this._options.label)},_checkImage:function(e){return c(e)&&("string"==typeof e||c(e.url))},_fillStyle:function(){this._styles=this._options.styles},_checkSymbol:function(e,t){var n=e.symbol,i=t.symbol,o="circle"===n&&"circle"!==i||"circle"!==n&&"circle"===i,a=this._checkImage(e.image)!==this._checkImage(t.image);return!(!o&&!a)},_populatePointShape:function(e,t){switch(e){case"square":return function(e){return[-e,-e,e,-e,e,e,-e,e,-e,-e]}(t);case"polygon":return function(e){var t=g(e);return[-t,0,0,-t,t,0,0,t,-t,0]}(t);case"triangle":case"triangleDown":return function(e){return[-e,-e,e,-e,0,e,-e,-e]}(t);case"triangleUp":return function(e){return[-e,e,e,e,0,-e,-e,e]}(t);case"cross":return function(e){var t=g(e),n=f(t/2),i=g(t/2);return[-t,-n,-n,-t,0,-i,n,-t,t,-n,i,0,t,n,n,t,0,i,-n,t,-t,n,-i,0]}(t)}},hasCoords:function(){return null!==this.x&&null!==this.y},correctValue:function(e){var t=this;t.hasValue()&&(t.value=t.properValue=t.initialValue+e,t.minValue=e)},resetCorrection:function(){this.value=this.properValue=this.initialValue,this.minValue=_},resetValue:function(){var e=this;e.hasValue()&&(e.value=e.properValue=e.initialValue=0,e.minValue=0,e._label.setDataField("value",e.value))},_getTranslates:function(e){var t=this.x,n=this.y;return e&&(this._options.rotated?t=this.defaultX:n=this.defaultY),{x:t,y:n}},_createImageMarker:function(e,t,n){var i=n.width||20,o=n.height||20;return e.image(-p(.5*i),-p(.5*o),i,o,n.url?n.url.toString():n.toString(),"center").attr({translateX:t.translateX,translateY:t.translateY,visibility:t.visibility})},_createSymbolMarker:function(e,t){var n,i=this._options.symbol;return"circle"===i?(delete t.points,n=e.circle().attr(t)):"square"!==i&&"polygon"!==i&&"triangle"!==i&&"triangleDown"!==i&&"triangleUp"!==i&&"cross"!==i||(n=e.path([],"area").attr(t).sharp()),n},_createMarker:function(e,t,n,i){var o=this,a=o._checkImage(n)?o._createImageMarker(e,i,n):o._createSymbolMarker(e,i);return a&&a.data({"chart-data-point":o}).append(t),a},_getSymbolBBox:function(e,t,n){return{x:e-n,y:t-n,width:2*n,height:2*n}},_getImageBBox:function(e,t){var n=this._options.image,i=n.width||20,o=n.height||20;return{x:e-p(i/2),y:t-p(o/2),width:i,height:o}},_getGraphicBBox:function(){var e=this,t=e._options,n=e.x,i=e.y;return t.visible?e._checkImage(t.image)?e._getImageBBox(n,i):e._getSymbolBBox(n,i,t.styles.normal.r):{x:n,y:i,width:0,height:0}},hideInsideLabel:a,_getShiftLabelCoords:function(e){var t=this._addLabelAlignmentAndOffset(e,this._getLabelCoords(e));return this._checkLabelPosition(e,t)},_drawLabel:function(){var e=this,t=e._getCustomLabelVisibility(),n=e._label,i=e._showForZeroValues()&&e.hasValue()&&!1!==t&&(e.series.getLabelVisibility()||t);n.draw(!!i)},correctLabelPosition:function(e){var t=this,n=t._getShiftLabelCoords(e);t.hideInsideLabel(e,n)||(e.setFigureToDrawConnector(t._getLabelConnector(e.pointPosition)),e.shift(p(n.x),p(n.y)))},_showForZeroValues:function(){return!0},_getLabelConnector:function(e){var t=this._getGraphicBBox(e),n=t.width/2,i=t.height/2;return{x:t.x+n,y:t.y+i,r:this._options.visible?Math.max(n,i):0}},_getPositionFromLocation:function(){return{x:this.x,y:this.y}},_isPointInVisibleArea:function(e,t){return e.minX<=t.x+t.width&&e.maxX>=t.x&&e.minY<=t.y+t.height&&e.maxY>=t.y},_checkLabelPosition:function(e,t){var n=this,i=n._getVisibleArea(),o=e.getBoundingRect(),a=n._getGraphicBBox(e.pointPosition);return n._isPointInVisibleArea(i,a)&&(n._options.rotated?(i.minX>t.x&&(t.x=a.x+a.width+10),i.maxX<t.x+o.width&&(t.x=a.x-10-o.width),i.minY>t.y&&(t.y=i.minY),i.maxY<t.y+o.height&&(t.y=i.maxY-o.height)):(i.minX>t.x&&(t.x=i.minX),i.maxX<t.x+o.width&&(t.x=i.maxX-o.width),i.minY>t.y&&(t.y=a.y+a.height+10),i.maxY<t.y+o.height&&(t.y=a.y-o.height-10))),t},_addLabelAlignmentAndOffset:function(e,t){var n=e.getBoundingRect(),i=e.getLayoutOptions();return this._options.rotated||("left"===i.alignment?t.x+=n.width/2:"right"===i.alignment&&(t.x-=n.width/2)),t.x+=i.horizontalOffset,t.y+=i.verticalOffset,t},_getLabelCoords:function(e){return this._getLabelCoordOfPosition(e,this._getLabelPosition(e.pointPosition))},_getLabelCoordOfPosition:function(e,t){var n=e.getBoundingRect(),i=this._getGraphicBBox(e.pointPosition),o=i.height/2-n.height/2,a=i.width/2-n.width/2,r=i.x,s=i.y;switch(t){case"left":r-=n.width+10,s+=o;break;case"right":r+=i.width+10,s+=o;break;case"top":r+=a,s-=n.height+10;break;case"bottom":r+=a,s+=i.height+10;break;case"inside":r+=a,s+=o}return{x:r,y:s}},_drawMarker:function(e,t,n){var i=this,o=i._options,a=i._getTranslates(n),r=i._getStyle();i.graphic=i._createMarker(e,t,o.image,u({translateX:a.x,translateY:a.y,points:i._populatePointShape(o.symbol,r.r)},r))},_getErrorBarSettings:function(){return{visibility:"visible"}},_getErrorBarBaseEdgeLength:function(){return 2*this.getPointRadius()},_drawErrorBar:function(e,t){if(this._options.errorBars){var n,i=this,a=i._options,r=a.errorBars,s=[],l=i._errorBarPos,u=i._highErrorCoord,h=i._lowErrorCoord,p=d(r.displayMode),g="high"===p,_="low"===p,m=(g||!c(h))&&c(u)&&!_,v=(_||!c(u))&&c(h)&&!g,y=r.edgeLength;y<=1&&y>0&&(y=this._getErrorBarBaseEdgeLength()*r.edgeLength),y=f(parseInt(y)/2),m&&(h=i._baseErrorBarPos),v&&(u=i._baseErrorBarPos),"none"!==p&&c(u)&&c(h)&&c(l)?(!v&&s.push([l-y,u,l+y,u]),s.push([l,u,l,h]),!m&&s.push([l+y,h,l-y,h]),a.rotated&&o(s,function(e,t){t.reverse()}),n=i._getErrorBarSettings(r),i._errorBar?(n.points=s,i._errorBar.attr(n)):i._errorBar=e.path(s,"line").attr(n).append(t)):i._errorBar&&i._errorBar.attr({visibility:"hidden"})}},getTooltipParams:function(){var e=this,t=e.graphic;return{x:e.x,y:e.y,offset:t?t.getBBox().height/2:0}},setPercentValue:function(e,t,n,i){var o=this,a=o.value/e||0,r=o.minValue/e||0,s=a-r;o._label.setDataField("percent",s),o._label.setDataField("total",t),o.series.isFullStackedSeries()&&o.hasValue()&&(o.leftHole&&(o.leftHole/=e-n,o.minLeftHole/=e-n),o.rightHole&&(o.rightHole/=e-i,o.minRightHole/=e-i),o.value=o.properValue=a,o.minValue=r||o.minValue)},_storeTrackerR:function(){var e,t=this,n=s.navigator,i=t._options.styles.normal.r;return e=r.hasProperty("ontouchstart")||n.msPointerEnabled&&n.msMaxTouchPoints||n.pointerEnabled&&n.maxTouchPoints?20:6,t._options.trackerR=i<e?e:i,t._options.trackerR},_translateErrorBars:function(){var e=this,t=e._options,n=t.rotated,i=t.errorBars,o=e._getValTranslator();i&&(c(e.lowError)&&(e._lowErrorCoord=o.translate(e.lowError)),c(e.highError)&&(e._highErrorCoord=o.translate(e.highError)),e._errorBarPos=f(n?e.vy:e.vx),e._baseErrorBarPos="stdDeviation"===i.type?e._lowErrorCoord+(e._highErrorCoord-e._lowErrorCoord)/2:n?e.vx:e.vy)},_translate:function(){var e=this,t=e._getValTranslator(),n=e._getArgTranslator();e._options.rotated?(e.vx=e.x=t.translate(e.value),e.vy=e.y=n.translate(e.argument),e.minX=t.translate(e.minValue),e.defaultX=t.translate(_)):(e.vy=e.y=t.translate(e.value),e.vx=e.x=n.translate(e.argument),e.minY=t.translate(e.minValue),e.defaultY=t.translate(_)),e._translateErrorBars(),e._calculateVisibility(e.x,e.y)},_updateData:function(e){var t=this;t.value=t.properValue=t.initialValue=t.originalValue=e.value,t.minValue=t.initialMinValue=t.originalMinValue=c(e.minValue)?e.minValue:_},_getImageSettings:function(e){return{href:e.url||e.toString(),width:e.width||20,height:e.height||20}},getCrosshairData:function(){var e=this,t=e._options.rotated,n=e.properValue,i=e.argument;return{x:e.vx,y:e.vy,xValue:t?n:i,yValue:t?i:n,axis:e.series.axis}},getPointRadius:function(){var e=this._getStyle(),t=this._options,n=e.r,i=t.symbol,o="square"===i,a="triangle"===i||"triangleDown"===i||"triangleUp"===i;return t.visible&&!t.image&&n?(o||a?1.4*n:n)+e["stroke-width"]/2:0},_updateMarker:function(e,t){var n,i=this,o=i._options,a=o.image,r=i.isVisible()?{}:{visibility:"hidden"};n=i._checkImage(a)?u({},{visibility:t.visibility},r,i._getImageSettings(a)):u({},t,r,{points:i._populatePointShape(o.symbol,t.r)}),e||(n.translateX=i.x,n.translateY=i.y),i.graphic.attr(n).sharp()},_getLabelFormatObject:function(){var e=this;return{argument:e.initialArgument,value:e.initialValue,originalArgument:e.originalArgument,originalValue:e.originalValue,seriesName:e.series.name,lowErrorValue:e.lowError,highErrorValue:e.highError,point:e}},_getLabelPosition:function(){var e=this._options.rotated;return this.initialValue>0?e?"right":"top":e?"left":"bottom"},_getFormatObject:function(e){var t=this,n=t._label.getData();return u({},n,{argumentText:e.formatValue(t.initialArgument,"argument"),valueText:e.formatValue(t.initialValue)},c(n.percent)?{percentText:e.formatValue(n.percent,"percent")}:{},c(n.total)?{totalText:e.formatValue(n.total)}:{})},getMarkerVisibility:function(){return this._options.visible},coordsIn:function(e,t){var n=this._storeTrackerR();return e>=this.x-n&&e<=this.x+n&&t>=this.y-n&&t<=this.y+n},getMinValue:function(e){var t=this._options.errorBars;if(t&&!e){var n=t.displayMode,i="high"===n?this.value:this.lowError,o="low"===n?this.value:this.highError;return i<o?i:o}return this.value},getMaxValue:function(e){var t=this._options.errorBars;if(t&&!e){var n=t.displayMode,i="high"===n?this.value:this.lowError,o="low"===n?this.value:this.highError;return i>o?i:o}return this.value}}},function(e,t,n){function i(e){var t=this,n=e.renderer;t._group=n.g().attr({class:"dx-loading-indicator"}).linkOn(n.root,{name:"loading-indicator",after:"peripheral"}),t._rect=n.rect().attr({opacity:0}).append(t._group),t._text=n.text().attr({align:"center"}).append(t._group),t._createStates(e.eventTrigger,t._group,n.root,e.notify)}var o=n(11).patchFontOptions,a="loadingIndicatorReady";i.prototype={constructor:i,_createStates:function(e,t,n,i){this._states=[{opacity:0,start:function(){i(!1)},complete:function(){t.linkRemove(),n.css({"pointer-events":""}),e(a)}},{opacity:.85,start:function(){t.linkAppend(),n.css({"pointer-events":"none"}),i(!0)},complete:function(){e(a)}}],this._state=0},setSize:function(e){var t=e.width,n=e.height;this._rect.attr({width:t,height:n}),this._text.attr({x:t/2,y:n/2})},setOptions:function(e){this._rect.attr({fill:e.backgroundColor}),this._text.css(o(e.font)).attr({text:e.text}),this[e.show?"show":"hide"]()},dispose:function(){var e=this;e._group.linkRemove().linkOff(),e._group=e._rect=e._text=e._states=null},_transit:function(e){var t,n=this;n._state!==e&&(n._state=e,n._isHiding=!1,t=n._states[e],n._rect.stopAnimation().animate({opacity:t.opacity},{complete:t.complete,easing:"linear",duration:400,unstoppable:!0}),n._noHiding=!0,t.start(),n._noHiding=!1)},show:function(){this._transit(1)},hide:function(){this._transit(0)},scheduleHiding:function(){this._noHiding||(this._isHiding=!0)},fulfillHiding:function(){this._isHiding&&this.hide()}},t.LoadingIndicator=i,t.plugin={name:"loading_indicator",init:function(){var e=this;e._loadingIndicator=new t.LoadingIndicator({eventTrigger:e._eventTrigger,renderer:e._renderer,notify:function(t){e._skipLoadingIndicatorOptions=!0,e.option("loadingIndicator",{show:t}),e._skipLoadingIndicatorOptions=!1,t&&e._stopCurrentHandling()}}),e._scheduleLoadingIndicatorHiding()},dispose:function(){this._loadingIndicator.dispose(),this._loadingIndicator=null},members:{_scheduleLoadingIndicatorHiding:function(){this._loadingIndicator.scheduleHiding()},_fulfillLoadingIndicatorHiding:function(){this._loadingIndicator.fulfillHiding()},showLoadingIndicator:function(){this._loadingIndicator.show()},hideLoadingIndicator:function(){this._loadingIndicator.hide()},_onBeginUpdate:function(){this._optionChangedLocker||this._scheduleLoadingIndicatorHiding()}},extenders:{_dataSourceLoadingChangedHandler:function(e){e&&(this._options.loadingIndicator||{}).enabled&&this._loadingIndicator.show()},_setContentSize:function(){this._loadingIndicator.setSize(this._canvas)}},customize:function(e){var t=e.prototype;if(t._dataSourceChangedHandler){var n=t._dataSourceChangedHandler;t._dataSourceChangedHandler=function(){this._scheduleLoadingIndicatorHiding(),n.apply(this,arguments)}}e.addChange({code:"LOADING_INDICATOR",handler:function(){this._skipLoadingIndicatorOptions||this._loadingIndicator.setOptions(this._getOption("loadingIndicator")),this._scheduleLoadingIndicatorHiding()},isThemeDependent:!0,option:"loadingIndicator",isOptionChange:!0}),t._eventsMap.onLoadingIndicatorReady={name:"loadingIndicatorReady"};var i=t._drawn;t._drawn=function(){i.apply(this,arguments),this._dataIsReady()&&this._fulfillLoadingIndicatorHiding()}},fontFields:["loadingIndicator.font"]}},function(e,t,n){var i,o=n(1).isFunction,a=n(11).normalizeEnum,r=Math.round,s={};t.getAlgorithm=function(e){return s[a(e)]||o(e)&&e||i},t.addAlgorithm=function(e,t){s[e]=t},t.setDefaultAlgorithm=function(e){i=s[e]};var l={"-1":[2,0],1:[0,2]},u=function(e){return e[2]-e[0]<e[3]-e[1]?0:1};t.getStaticSideIndex=u,t.buildSidesData=function(e,t,n){var i=void 0!==n?n:u(e),o=1-i,a=t[i],r=t[o],s=l[a],c=l[r];return{staticSide:e[2+i]-e[i],variedSide:e[2+o]-e[o],static1:i+s[0],static2:i+s[1],varied1:o+c[0],varied2:o+c[1],staticDir:a,variedDir:r}},t.calculateRectangles=function(e,t,n,i,o){var a,s,l,u,c=[0,0,0,0],d=i.static1,h=i.static2,p=n[d],f=i.staticDir,g=i.staticSide,_=o.sum;for(c[i.varied1]=n[i.varied1],c[i.varied2]=n[i.varied1]+i.variedDir*o.side,a=t,s=t+o.count;a<s;++a)(l=c.slice())[d]=p,u=r(g*e[a].value/_)||0,_-=e[a].value,g-=u,p+=f*u,l[h]=p,e[a].rect=l;n[i.varied1]=c[i.varied2]}},function(e,t,n){function i(e){return e.value}var o,a=n(11).normalizeEnum,r=n(4).noop,s={};t.getColorizer=function(e,t,n){var i=a(e.type||o),l=s[i]&&s[i](e,t,n);return l?(e.colorizeGroups?function(e){return function(t){var n=!t.isNode()&&t.parent;return n?n._groupColor=n._groupColor||e(n):void 0}}:function(e){return function(t){return t.isNode()?void 0:e(t)}})(l):r},t.addColorizer=function(e,t){s[e]=t},t.setDefaultColorizer=function(e){o=e},t.createColorCodeGetter=function(e){return e.colorCodeField?function(e){return function(t){return Number(t.data[e])}}(e.colorCodeField):i}},function(e,t,n){var i=n(0).extend,o=n(82),a=n(43),r="http://js.devexpress.com/error/"+n(156).split(".").slice(0,2).join("_")+"/";e.exports=function(e,t){var n={ERROR_MESSAGES:i(t,e),Error:function(){return c([].slice.call(arguments))},log:function(e){var t="log";/^E\d+$/.test(e)?t="error":/^W\d+$/.test(e)&&(t="warn"),o.logger[t]("log"===t?e:s([].slice.call(arguments)))}},s=function(e){var t=e[0];return e=e.slice(1),u(t,l(t,e))},l=function(e,t){return t=[n.ERROR_MESSAGES[e]].concat(t),a.format.apply(this,t).replace(/\.*\s*?$/,"")},u=function(e,t){return a.format.apply(this,["{0} - {1}. See:\n{2}",e,t,d(e)])},c=function(e){var t,n,o,a;return t=e[0],e=e.slice(1),n=l(t,e),a=d(t),o=u(t,n),i(new Error(o),{__id:t,__details:n,url:a})},d=function(e){return r+e};return n}},function(e,t,n){var i=n(7),o=n(12),a=n(25),r=n(47),s=n(70),l=function(){var e,t=a(),n=t.add,l=t.remove;if(!i.hasWindow())return t;var u,c=function(){var e=o.getDocumentElement();return{width:e.clientWidth,height:e.clientHeight}},d=function(){var n,i=c();i.width===e.width&&i.height===e.height||(i.width===e.width&&(n="height"),i.height===e.height&&(n="width"),e=i,t.fire(n))},h=s(function(){e=c()});return t.add=function(){var e=n.apply(t,arguments);return h(),r.add(function(){!u&&t.has()&&(u=o.listen(i.getWindow(),"resize",d))}),e},t.remove=function(){var e=l.apply(t,arguments);return!t.has()&&u&&(u(),u=void 0),e},t}();e.exports=l},function(e,t,n){var i=n(37),o=n(5),a=n(176),r=n(1).isDefined,s=n(130),l="dxComponents",u=new a,c=0,d=t.name=function(e,t){if(!r(t)){if(!u.has(e)){var n="dxPrivateComponent"+c++;return u.set(e,n),n}return u.get(e)}u.set(e,t)};t.attachInstanceToElement=function(e,t,n){var a=i.data(e.get(0)),r=d(t.constructor);a[r]=t,n&&o.one(e,s,function(){n.call(t)}),a[l]||(a[l]=[]),a[l].push(r)},t.getInstanceByElement=function(e,t){var n=d(t);return i.data(e.get(0),n)}},function(e,t,n){var i=n(2),o=n(5),a=n(12),r=n(70),s=n(67),l=n(9),u="dxmousewheel",c="dxWheel",d=r(function(){return a.hasDocumentProperty("onwheel")?"wheel":"mousewheel"}),h={setup:function(e){var t=i(e);o.on(t,l.addNamespace(d(),c),h._wheelHandler.bind(h))},teardown:function(e){o.off(e,"."+c)},_wheelHandler:function(e){var t=this._getWheelDelta(e.originalEvent);l.fireEvent({type:u,originalEvent:e,delta:t,pointerType:"mouse"}),e.stopPropagation()},_getWheelDelta:function(e){return e.wheelDelta?e.wheelDelta:30*-e.deltaY}};s(u,h),t.name=u},function(e,t,n){var i,o=n(14),a=n(4),r=n(10).contains,s=n(16),l=n(9),u=n(24),c=n(114),d=n(88),h="dxactive",p="dxinactive",f=o.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}}),g=c.inherit({ctor:function(){this.callBase.apply(this,arguments),this._active=new f(0,a.noop),this._inactive=new f(0,a.noop)},configure:function(e,t){switch(t){case h:e.activeTimeout=e.timeout;break;case p:e.inactiveTimeout=e.timeout}this.callBase(e)},start:function(e){if(i){var t=r(this.getElement().get(0),i.getElement().get(0)),n=!i._active.fired();if(t&&n)return void this._cancel();i._inactive.force()}i=this,this._initEvents(e),this._active.start()},_initEvents:function(e){var t=this,n=this._getEmitterTarget(e),o=l.isMouseEvent(e),r=s.isSimulator()||!o,u=a.ensureDefined(this.activeTimeout,30),c=a.ensureDefined(this.inactiveTimeout,400);this._active=new f(r?u:0,function(){t._fireEvent(h,e,{target:n})}),this._inactive=new f(r?c:0,function(){t._fireEvent(p,e,{target:n}),i=null})},cancel:function(e){this.end(e)},end:function(e){var t=e.type!==u.up;t?this._active.stop():this._active.force(),this._inactive.start(),t&&this._inactive.force()},dispose:function(){this._active.stop(),this._inactive.stop(),this.callBase()},lockInactive:function(){return this._active.force(),this._inactive.stop(),i=null,this._cancel(),this._inactive.force.bind(this._inactive)}});g.lock=function(e){var t=i?i.lockInactive():a.noop;e.done(t)},d({emitter:g,events:[h,p]}),t.lock=g.lock,t.active=h,t.inactive=p},function(e,t,n){var i=n(7).getWindow(),o=i.DevExpress=i.DevExpress||{},a=o.errors=n(21);if(o._DEVEXTREME_BUNDLE_INITIALIZED)throw a.Error("E0024");o._DEVEXTREME_BUNDLE_INITIALIZED=!0,o.clientExporter=n(172),o.excelExporter=n(431),o.VERSION=n(156),o.Class=n(14),o.DOMComponent=n(66),o.registerComponent=n(8),o.devices=n(16),o.Color=n(90);var r=n(112);o.EventsMixin=n(80),o.utils={},o.utils.requestAnimationFrame=r.requestAnimationFrame,o.utils.cancelAnimationFrame=r.cancelAnimationFrame,o.utils.initMobileViewport=n(434).initMobileViewport,o.utils.extendFromObject=n(0).extendFromObject,o.utils.createComponents=n(10).createComponents,o.utils.triggerShownEvent=n(10).triggerShownEvent,o.utils.triggerHidingEvent=n(10).triggerHidingEvent,o.utils.resetActiveElement=n(10).resetActiveElement,o.utils.findBestMatches=n(4).findBestMatches,o.createQueue=n(222).create,o.utils.dom=n(10),o.utils.common=n(4),o.utils.date=n(22),o.utils.browser=n(31),o.utils.inflector=n(32),o.utils.iterator=n(3),o.utils.readyCallbacks=n(47),o.utils.resizeCallbacks=n(125),o.utils.console=n(82),o.utils.string=n(43),o.utils.support=n(44),o.viewPort=n(76).value,o.hideTopOverlay=n(210),o.formatHelper=n(63),o.config=n(27),o.animationPresets=n(178).presets,o.fx=n(39),o.TransitionExecutor=n(277).TransitionExecutor,o.AnimationPresetCollection=n(178).PresetCollection,o.events=n(278),o.events.click=n(19),o.events.utils=n(9),o.events.GestureEmitter=n(157),o.localization=n(437),e.exports=o},function(e,t,n){var i=n(2),o=n(37).beforeCleanData,a=n(5),r=n(67),s="dxremove",l="dxRemoveEvent";o(function(e){e=[].slice.call(e);for(var t=0;t<e.length;t++){var n=i(e[t]);n.prop(l)&&(n[0][l]=null,a.triggerHandler(n,s))}}),r(s,{noBubble:!0,setup:function(e){i(e).prop(l,!0)}}),e.exports=s},function(e,t,n){function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(27),s=n(12),l=n(0).extend,u=n(14),c=n(110),d=n(21),h=n(20),p=n(4),f=n(1),g=n(6),_=g.Deferred,m=g.when,v=n(25),y=n(80),b=n(126),x=n(16),w=f.isFunction,C=p.noop,k={},S={},I=function(){function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._postponedOperations={}}return a(e,[{key:"add",value:function(e,t,n){if(e in this._postponedOperations)n&&this._postponedOperations[e].promises.push(n);else{var i=new _;this._postponedOperations[e]={fn:t,completePromise:i,promises:n?[n]:[]}}return this._postponedOperations[e].completePromise.promise()}},{key:"callPostponedOperations",value:function(){for(var e in this._postponedOperations){var t=this._postponedOperations[e];f.isDefined(t)&&(t.promises&&t.promises.length?m.apply(void 0,i(t.promises)).done(t.fn).then(t.completePromise.resolve):t.fn().done(t.completePromise.resolve))}this._postponedOperations={}}}]),e}(),T=u.inherit({_setDeprecatedOptions:function(){this._deprecatedOptions={}},_getDeprecatedOptions:function(){return this._deprecatedOptions},_getOptionAliasesByName:function(e){var t=this;return Object.keys(this._deprecatedOptions).filter(function(n){return e===t._deprecatedOptions[n].alias})},_getDefaultOptions:function(){return{onInitialized:null,onOptionChanged:null,onDisposing:null,defaultOptionsRules:null}},_setDefaultOptions:function(){this._options=this._getDefaultOptions()},_defaultOptionsRules:function(){return[]},_setOptionsByDevice:function(e){var t=this._defaultOptionsRules();Array.isArray(e)&&(t=t.concat(e));var n=this._convertRulesToOptions(t);for(var i in l(!0,this._options,n),this._optionsByReference)n.hasOwnProperty(i)&&(this._options[i]=n[i])},_convertRulesToOptions:function(e){for(var t={},n=x.current(),i=function(e,t){var n=[];return Array.prototype.push.call(n,t),1===n.length&&f.isEmptyObject(n[0])||p.findBestMatches(e,n).length>0},o=0;o<e.length;o++){var a=e[o],r=a.device||{};(w(r)?r(n):i(n,r))&&l(t,a.options)}return t},_isInitialOptionValue:function(e){var t=this.option(e),n=this.initialOption(e);return w(t)&&w(n)?t.toString()===n.toString():p.equalByValue(t,n)},_setOptionsByReference:function(){this._optionsByReference={}},_getOptionsByReference:function(){return this._optionsByReference},ctor:function(e){this.NAME=b.name(this.constructor),(e=e||{}).eventsStrategy&&this.setEventsStrategy(e.eventsStrategy),this._options={},this._updateLockCount=0,this._optionChangedCallbacks=e._optionChangedCallbacks||v(),this._disposingCallbacks=e._disposingCallbacks||v(),this.postponedOperations=new I,this.beginUpdate();try{this._suppressDeprecatedWarnings(),this._setOptionsByReference(),this._setDeprecatedOptions(),this._setDefaultOptions(),e&&e.onInitializing&&e.onInitializing.apply(this,[e]),this._setOptionsByDevice(e.defaultOptionsRules),this._resumeDeprecatedWarnings(),this._initOptions(e)}finally{this.endUpdate()}},_initOptions:function(e){this.option(e)},_optionValuesEqual:function(e,t,n){return t=h.toComparable(t,!0),n=h.toComparable(n,!0),t&&n&&f.isRenderer(t)&&f.isRenderer(n)?n.is(t):!(!(t!=t)||!(n!=n))||!(null!==t&&"object"===(void 0===t?"undefined":o(t))&&!s.isElementNode(t))&&t===n},_init:function(){this._createOptionChangedAction(),this.on("disposing",function(e){this._disposingCallbacks.fireWith(this,[e])}.bind(this))},_createOptionChangedAction:function(){this._optionChangedAction=this._createActionByOption("onOptionChanged",{excludeValidators:["disabled","readOnly"]})},_createDisposingAction:function(){this._disposingAction=this._createActionByOption("onDisposing",{excludeValidators:["disabled","readOnly"]})},_optionChanged:function(e){switch(e.name){case"onDisposing":case"onInitialized":break;case"onOptionChanged":this._createOptionChangedAction()}},_dispose:function(){this._optionChangedCallbacks.empty(),this._createDisposingAction(),this._disposingAction(),this._disposeEvents(),this._disposed=!0},instance:function(){return this},beginUpdate:function(){this._updateLockCount++},endUpdate:function(){if(this._updateLockCount=Math.max(this._updateLockCount-1,0),!this._updateLockCount&&(this.postponedOperations.callPostponedOperations(),!this._initializing&&!this._initialized)){this._initializing=!0;try{this._init()}finally{this._initializing=!1,this._updateLockCount++,this._createActionByOption("onInitialized",{excludeValidators:["disabled","readOnly"]})(),this._updateLockCount--,this._initialized=!0}}},_logWarningIfDeprecated:function(e){var t=this._deprecatedOptions[e];t&&!this._deprecatedOptionsSuppressed&&this._logDeprecatedWarning(e,t)},_logDeprecatedWarningCount:0,_logDeprecatedWarning:function(e,t){var n=t.message||"Use the '"+t.alias+"' option instead";d.log("W0001",this.NAME,e,t.since,n),++this._logDeprecatedWarningCount},_suppressDeprecatedWarnings:function(){this._deprecatedOptionsSuppressed=!0},_resumeDeprecatedWarnings:function(){this._deprecatedOptionsSuppressed=!1},_optionChanging:C,_notifyOptionChanged:function(e,t,n){var i=this;if(this._initialized)for(var o=[e].concat(i._getOptionAliasesByName(e)),a=0;a<o.length;a++){var r=o[a],s={name:r.split(/[.[]/)[0],fullName:r,value:t,previousValue:n};i._optionChangedCallbacks.fireWith(i,[l(i._defaultActionArgs(),s)]),i._optionChangedAction(l({},s)),i._disposed||this._cancelOptionChange===s.name||i._optionChanged(s)}},initialOption:function(e){var t,n=this._initialized;return this._initialOptions||(t=this._options,this._options={},this._initialized=!1,this._setDefaultOptions(),this._setOptionsByDevice(t.defaultOptionsRules),this._initialOptions=this._options,this._options=t,this._initialized=n),this._initialOptions[e]},_defaultActionConfig:function(){return{context:this,component:this}},_defaultActionArgs:function(){return{component:this}},_createAction:function(e,t){var n,i=this;return function(o){return arguments.length||(o={}),f.isPlainObject(o)||(o={actionValue:o}),(n=n||new c(e,l(t,i._defaultActionConfig()))).execute.call(n,l(o,i._defaultActionArgs()))}},_createActionByOption:function(e,t){var n,i,o,a=this,s=function(){if(!i){if(t=t||{},"string"!=typeof e)throw d.Error("E0008");0===e.indexOf("on")&&(i=a._getEventName(e)),o=a.option(e)}if(n||o||t.beforeExecute||t.afterExecute||a.hasEvent(i)){if(!n){var s=t.beforeExecute;t.beforeExecute=function(e){s&&s.apply(a,arguments),a.fireEvent(i,e.args)},a._suppressDeprecatedWarnings(),n=a._createAction(o,t),a._resumeDeprecatedWarnings()}return r().wrapActionsBeforeExecute?((a.option("beforeActionExecute")||C)(a,n,t)||n).apply(a,arguments):n.apply(a,arguments)}};r().wrapActionsBeforeExecute||(s=(a.option("onActionCreated")||C)(a,s,t)||s);return s},_getEventName:function(e){return e.charAt(2).toLowerCase()+e.substr(3)},hasActionSubscription:function(e){return!!this.option(e)||this.hasEvent(this._getEventName(e))},isOptionDeprecated:function(e){return this._getDeprecatedOptions().hasOwnProperty(e)},_setOptionSilent:function(e,t){this._cancelOptionChange=e,this.option(e,t),this._cancelOptionChange=!1},option:function(){var e=function(e,t){var n;if(t){if(!e._cachedDeprecateNames)for(var i in e._cachedDeprecateNames=[],e._deprecatedOptions)e._cachedDeprecateNames.push(i);for(var o=0;o<e._cachedDeprecateNames.length;o++)if(e._cachedDeprecateNames[o]===t){n=e._deprecatedOptions[t];break}if(n){e._logWarningIfDeprecated(t);var a=n.alias;a&&(t=a)}}return t},t=function(e){var t=e.split(".");return t.pop(),t.join(".")},n=function(e){var t=e.split(".");return t[t.length-1]},i=function(e,t,n){var i=k[t];return i||(i=k[t]=h.compileGetter(t)),i(e,{functionsAsIs:!0,unwrapObservables:n})},o=function(e,o){delete e[o];var a=t(o),r=n(o),s=a?i(e,a,!1):e;s&&delete s[r]},a=function(e,o,a){var r,s="";do{s&&(s="."+s),s=n(o)+s,r=(o=t(o))?i(e,o,!1):e}while(!r);r[s]=a},r=function(t,n,i,r){if(i){var s=e(t,i);s&&s!==i&&(a(n,s,r),o(n,i))}},s=function e(t,n,i,o){if(f.isPlainObject(o))for(var a in o)e(t,n,i+"."+a,o[a]);r(t,n,i,o)},l=function(e,t,n){var o=i(e._options,t,!1);e._optionValuesEqual(t,o,n)||(e._initialized&&e._optionChanging(t,o,n),function(e,t,n){S[t]||(S[t]=h.compileSetter(t));var i=t.split(/[.[]/);S[t](e._options,n,{functionsAsIs:!0,merge:!e._getOptionsByReference()[t],unwrapObservables:i.length>1&&!!e._getOptionsByReference()[i[0]]})}(e,t,n),e._notifyOptionChanged(t,n,o))};return function(t,n){var o=this,a=t;if(arguments.length<2&&"object"!==f.type(a))return a=e(o,a),i(o._options,a);"string"==typeof a&&((t={})[a]=n),o.beginUpdate();try{var r;for(r in t)s(o,t,r,t[r]);for(r in t)l(o,r,t[r])}finally{o.endUpdate()}}}(),_getOptionValue:function(e,t){var n=this.option(e);return w(n)?n.bind(t)():n}}).include(y);e.exports=T,e.exports.PostponedOperations=I},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,i){return i?function e(t,n,i,o){var a;if(o){for(var r=0;r<n.length;r++)if(a=e(t,n[r].items||n[r].collapsedItems||[]||[],i,o-1))return a}else if(l(t,n,i)>=0)return n}(e,t,n,i)||[]:t}function a(e,t,n,i,o){var a,r=e.key();if(r){if(function(e,t){for(var n="string"==typeof t?t.split():t.slice();n.length;)if(n.shift()in e)return!0;return!1}(i,r)&&!(0,_.keysEqual)(r,n,e.keyOf(i)))return!o&&(0,_.rejectedPromise)(f.errors.Error("E4017"));var s=l(e,t,n);if(s<0)return!o&&(0,_.rejectedPromise)(f.errors.Error("E4009"));a=t[s]}else a=n;if(g.default.deepExtendArraySafe(a,i,!0),!o)return(0,d.default)().useLegacyStoreResult?(0,_.trivialPromise)(n,i):(0,_.trivialPromise)(a,n)}function r(e,t,n,i,o){var a,r,s=e.key();if(r=(0,c.isPlainObject)(n)?(0,p.extend)({},n):n,s){if(void 0===(a=e.keyOf(r))||"object"===(void 0===a?"undefined":u(a))&&(0,c.isEmptyObject)(a)){if(Array.isArray(s))throw f.errors.Error("E4007");a=r[s]=String(new h.default)}else if(void 0!==t[l(e,t,a)])return!o&&(0,_.rejectedPromise)(f.errors.Error("E4008"))}else a=r;if(i>=0?t.splice(i,0,r):t.push(r),function(e,t){e._hasKeyMap&&(e._hasKeyMap[JSON.stringify(t)]=!0)}(t,a),!o)return(0,_.trivialPromise)((0,d.default)().useLegacyStoreResult?n:r,a)}function s(e,t,n,i){var o=l(e,t,n);if(o>-1&&t.splice(o,1),!i)return(0,_.trivialPromise)(n)}function l(e,t,n){var i=e.key();if(!function(e,t){return!e._hasKeyMap||e._hasKeyMap[JSON.stringify(t)]}(t,n))return-1;for(var o=0,a=t.length;o<a;o++)if((0,_.keysEqual)(i,e.keyOf(t[o]),n))return o;return-1}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=n(1),d=i(n(27)),h=i(n(42)),p=n(0),f=n(35),g=i(n(48)),_=n(40);e.exports.applyBatch=function(e,t,n,i,l){n.forEach(function(n){var u="insert"===n.type?t:o(e,t,n.key,i);switch(function(e,t){if(e.key()&&!t._hasKeyMap){for(var n={},i=0,o=t.length;i<o;i++)n[JSON.stringify(e.keyOf(t[i]))]=!0;t._hasKeyMap=n}}(e,u),n.type){case"update":a(e,u,n.key,n.data,!0);break;case"insert":r(e,u,n.data,l&&(0,c.isDefined)(n.index)?n.index:-1,!0);break;case"remove":s(e,u,n.key,!0)}})},e.exports.update=a,e.exports.insert=r,e.exports.remove=s,e.exports.indexByKey=l},function(e,t,n){var i=n(71);e.exports=i.inherit({ctor:function(e){this.name=e}})},function(e,t,n){var i=n(5),o=n(37),a=n(14),r=n(16),s=n(67),l=n(9),u=n(24),c="dxHoverStart",d="dxhoverstart",h=l.addNamespace(u.enter,c),p="dxHoverEnd",f="dxhoverend",g=l.addNamespace(u.leave,p),_=a.inherit({noBubble:!0,ctor:function(){this._handlerArrayKeyPath=this._eventNamespace+"_HandlerStore"},setup:function(e){o.data(e,this._handlerArrayKeyPath,{})},add:function(e,t){var n=this,a=function(e){n._handler(e)};i.on(e,this._originalEventName,t.selector,a),o.data(e,this._handlerArrayKeyPath)[t.guid]=a},_handler:function(e){l.isTouchEvent(e)||r.isSimulator()||l.fireEvent({type:this._eventName,originalEvent:e,delegateTarget:e.delegateTarget})},remove:function(e,t){var n=o.data(e,this._handlerArrayKeyPath)[t.guid];i.off(e,this._originalEventName,t.selector,n)},teardown:function(e){o.removeData(e,this._handlerArrayKeyPath)}}),m=_.inherit({ctor:function(){this._eventNamespace=c,this._eventName=d,this._originalEventName=h,this.callBase()},_handler:function(e){(e.pointers||[]).length||this.callBase(e)}}),v=_.inherit({ctor:function(){this._eventNamespace=p,this._eventName=f,this._originalEventName=g,this.callBase()}});s(d,new m),s(f,new v),t.start=d,t.end=f},function(e,t,n){function i(e){return e&&f(e.then)}function o(e){return(new x).resolve(e).promise()}function a(e,t){if(!f(t))throw _.Error("E4011",e)}function r(e){throw _.Error("E4012",e)}function s(e){return function(t){var n;(n=t instanceof Error?t:new Error(function(e){var t=e[0],n=e[1];return t&&t.getResponseHeader?h.errorMessageFromXhr(t,n):null}(arguments)||t&&String(t)||"Unknown error")).message!==h.XHR_ERROR_UNLOAD&&e.reject(n)}}function l(e,t){var n,s=e._loadFunc;return a(S,s),n=s.apply(e,[t]),Array.isArray(n)?n=o(n):null==n?n=o([]):i(n)||r(S),C(n)}function u(e,t,n,i){if(t.__rawData)i(t.__rawData);else{var o=t.__rawDataPromise||l(t,n);t._cacheRawData&&(t.__rawDataPromise=o),o.always(function(){delete t.__rawDataPromise}).done(function(e){t._cacheRawData&&(t.__rawData=e),i(e)}).fail(s(e))}}function c(e,t,n,i){var o={};"userData"in(n=n||{})&&(o.userData=n.userData),u(e,t,o,function(o){var a,r,s,l,u=v(o,{errorHandler:t._errorHandler}),c=[];i||((a=y(u,n))===u?s=o.slice(0):c.push(a.enumerate().done(function(e){s=e}))),(n.requireTotalCount||i)&&((r=y(u,n,!0))===u?l=o.length:c.push(r.count().done(function(e){l=e}))),w.apply(d,c).done(function(){i?e.resolve(l):n.requireTotalCount?e.resolve(s,{totalCount:l}):e.resolve(s)}).fail(function(t){e.reject(t)})})}var d=n(2),h=n(40),p=n(132),f=n(1).isFunction,g=n(27),_=n(35).errors,m=n(91),v=n(152),y=n(81).queryByOptions,b=n(6),x=b.Deferred,w=b.when,C=b.fromPromise,k="totalCount",S="load",I="byKey",T="insert",D="update",E="remove",A=m.inherit({ctor:function(e){e=e||{},this.callBase(e),this._useDefaultSearch=!!e.useDefaultSearch||"raw"===e.loadMode,this._loadMode=e.loadMode,this._cacheRawData=!1!==e.cacheRawData,this._loadFunc=e[S],this._totalCountFunc=e[k],this._byKeyFunc=e[I],this._insertFunc=e[T],this._updateFunc=e[D],this._removeFunc=e[E]},createQuery:function(){throw _.Error("E4010")},clearRawDataCache:function(){delete this.__rawData},_totalCountImpl:function(e){var t=new x;return"raw"!==this._loadMode||this._totalCountFunc?(function(e,t){var n,a=e._totalCountFunc;if(!f(a))throw _.Error("E4021");return i(n=a.apply(e,[t]))||(n=Number(n),isFinite(n)||r(k),n=o(n)),C(n)}(this,e).done(function(e){t.resolve(Number(e))}).fail(s(t)),t=this._addFailHandlers(t)):c(t,this,e,!0),t.promise()},_pushImpl:function(e){this.__rawData&&p.applyBatch(this,this.__rawData,e)},_loadImpl:function(e){var t=new x;return"raw"===this._loadMode?c(t,this,e,!1):(l(this,e).done(function(e,n){t.resolve(e,n)}).fail(s(t)),t=this._addFailHandlers(t)),t.promise()},_byKeyImpl:function(e,t){var n=new x;return this._byKeyViaLoad()?(this._requireKey(),function(e,t,n){u(e,t,{},function(i){for(var o,a=t.key(),r=0,s=i.length;r<s;r++)if(o=i[r],h.keysEqual(a,t.keyOf(i[r]),n))return void e.resolve(o);e.reject(_.Error("E4009"))})}(n,this,e)):function(e,t,n){var r,s=e._byKeyFunc;return a(I,s),i(r=s.apply(e,[t,n]))||(r=o(r)),C(r)}(this,e,t).done(function(e){n.resolve(e)}).fail(s(n)),n.promise()},_byKeyViaLoad:function(){return"raw"===this._loadMode&&!this._byKeyFunc},_insertImpl:function(e){var t,n=this,r=n._insertFunc,l=new x;return a(T,r),i(t=r.apply(n,[e]))||(t=o(t)),C(t).done(function(t){g().useLegacyStoreResult?l.resolve(e,t):l.resolve(t||e,n.keyOf(t))}).fail(s(l)),l.promise()},_updateImpl:function(e,t){var n,r=this._updateFunc,l=new x;return a(D,r),i(n=r.apply(this,[e,t]))||(n=o(n)),C(n).done(function(n){g().useLegacyStoreResult?l.resolve(e,t):l.resolve(n||t,e)}).fail(s(l)),l.promise()},_removeImpl:function(e){var t,n=this._removeFunc,r=new x;return a(E,n),i(t=n.apply(this,[e]))||(t=o()),C(t).done(function(){r.resolve(e)}).fail(s(r)),r.promise()}});e.exports=A},function(e,t,n){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n(20),r=n(137),s=n(4),l=n(56),u=n(3),c=function(){function e(t){i(this,e),t=(0,s.ensureDefined)(t,{}),this._nameGetter=(0,a.compileGetter)(this._getNameExpr(t)),this._isDirGetter=(0,a.compileGetter)(this._getIsDirExpr(t)),this._sizeGetter=(0,a.compileGetter)(t.sizeExpr||"size"),this._dateModifiedGetter=(0,a.compileGetter)(t.dateModifiedExpr||"dateModified"),this._thumbnailGetter=(0,a.compileGetter)(t.thumbnailExpr||"thumbnail")}return o(e,[{key:"getFolders",value:function(e){return this.getItems(e,"folder")}},{key:"getFiles",value:function(e){return this.getItems(e,"file")}},{key:"getItems",value:function(e,t){return[]}},{key:"renameItem",value:function(e,t){}},{key:"createFolder",value:function(e,t){}},{key:"deleteItems",value:function(e){}},{key:"moveItems",value:function(e,t){}},{key:"copyItems",value:function(e,t){}},{key:"initiateFileUpload",value:function(e){}},{key:"uploadFileChunk",value:function(e,t){}},{key:"finalizeFileUpload",value:function(e){}},{key:"abortFileUpload",value:function(e){}},{key:"getFileUploadChunkSize",value:function(){return 2e5}},{key:"_getItemsByType",value:function(e,t){return this.getItems(e).filter(function(e){return e.isDirectory===t})}},{key:"_convertDataObjectsToFileItems",value:function(e,t,n){var i=this,o="folder"===n,a=[];return(0,u.each)(e,function(e,r){var s=i._createFileItem(r,t);n&&s.isDirectory!==o||a.push(s)}),a}},{key:"_createFileItem",value:function(e,t){var n=new d(t,this._nameGetter(e),!!this._isDirGetter(e));return n.size=this._sizeGetter(e),void 0===n.size&&(n.size=0),n.dateModified=(0,l.deserializeDate)(this._dateModifiedGetter(e)),void 0===n.dateModified&&(n.dateModified=new Date),n.isDirectory&&(n.hasSubDirs=this._hasSubDirs(e)),n.thumbnail=this._thumbnailGetter(e)||"",n.dataItem=e,n}},{key:"_hasSubDirs",value:function(e){return!0}},{key:"_getNameExpr",value:function(e){return e.nameExpr||"name"}},{key:"_getIsDirExpr",value:function(e){return e.isDirectoryExpr||"isDirectory"}}]),e}(),d=function(){function e(t,n,o){i(this,e),this.parentPath=t,this.name=n,this.relativeName=(0,r.pathCombine)(this.parentPath,n),this.isDirectory=o||!1,this.size=0,this.dateModified=new Date,this.thumbnail="",this.tooltipText=""}return o(e,[{key:"getExtension",value:function(){return this.isDirectory?"":(0,r.getFileExtension)(this.name)}},{key:"getParent",value:function(){return this.isRoot()?null:new e((0,r.getParentPath)(this.parentPath),(0,r.getName)(this.parentPath),!0)}},{key:"isRoot",value:function(){return!this.relativeName}},{key:"equals",value:function(e){return e&&this.relativeName===e.relativeName}},{key:"createClone",value:function(){var t=new e(this.parentPath,this.name,this.isDirectory);return t.size=this.size,t.dateModified=this.dateModified,t.thumbnail=this.thumbnail,t.tooltipText=this.tooltipText,t.hasSubDirs=this.hasSubDirs,t.dataItem=this.dataItem,t}}]),e}();e.exports.FileProvider=c,e.exports.FileManagerItem=d},function(e,t,n){var i=n(3),o="/",a=function(){var e="";return(0,i.each)(arguments,function(t,n){n&&(e&&(e+=o),e+=n)}),e};e.exports.getFileExtension=function(e){var t=e.lastIndexOf(".");return-1!==t?e.substr(t):""},e.exports.getName=function(e){var t=e.lastIndexOf(o);return-1!==t?e.substr(t+o.length):e},e.exports.getParentPath=function(e){var t=e.lastIndexOf(o);return-1!==t?e.substr(0,t):""},e.exports.getPathParts=function(e,t){var n=e.split(o);if(t)for(var i=0;i<n.length;i++)n[i]=a(0===i?"":n[i-1],n[i]);return n},e.exports.pathCombine=a,e.exports.getDisplayFileSize=function(e){for(var t=["B","KB","MB","GB","TB"],n=0,i=e;i>=1024&&n<=t.length-1;)i/=1024,n++;return(i=Math.round(10*i)/10)+" "+t[n]}},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(7),r=a.getWindow(),s=n(12),l=n(5),u=n(8),c=n(4),d=n(0).extend,h=n(26),p=n(77),f=n(1),g=n(29),_=n(9),m=n(46),v={left:"right",top:"bottom",right:"left",bottom:"top",center:"center"},y={left:-1,top:-1,center:0,right:1,bottom:1},b={top:{my:"bottom center",at:"top center",collision:"fit flip"},bottom:{my:"top center",at:"bottom center",collision:"fit flip"},right:{my:"left center",at:"right center",collision:"flip fit"},left:{my:"right center",at:"left center",collision:"flip fit"}},x={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},w=function(e,t){var n=e.option(t);return C(n)},C=function(e){return f.isObject(e)?e.name:e},k=function(e,t){var n,i,a,r,u=e.option("target"),c=w(e,t+"Event");c&&!e.option("disabled")&&(r=_.addNamespace(c,e.NAME),i=e._createAction(function(){n=function(e,t){var n=e.option(t);return f.isObject(n)&&n.delay}(e,t+"Event"),this._clearEventTimeout("hide"===t),n?this._timeouts[t]=setTimeout(function(){e[t]()},n):e[t]()}.bind(e),{validatingTargetName:"target"}),a=function(e){i({event:e,target:o(e.currentTarget)})},u.jquery||u.nodeType||f.isWindow(u)?(e["_"+t+"EventHandler"]=void 0,l.on(u,r,a)):(e["_"+t+"EventHandler"]=a,l.on(s.getDocument(),r,u,a)))},S=function(e,t,n,i){var a=i||w(e,n+"Event");a&&(a=_.addNamespace(a,e.NAME),e["_"+n+"EventHandler"]?l.off(s.getDocument(),a,t,e["_"+n+"EventHandler"]):l.off(o(t),a))},I=m.inherit({_getDefaultOptions:function(){return d(this.callBase(),{target:r,shading:!1,position:"bottom",closeOnOutsideClick:!0,animation:{show:{type:"fade",from:0,to:1},hide:{type:"fade",to:0}},showTitle:!1,width:"auto",height:"auto",dragEnabled:!1,resizeEnabled:!1,fullScreen:!1,closeOnTargetScroll:!0,arrowPosition:"",arrowOffset:0,boundaryOffset:{h:10,v:10}})},_defaultOptionsRules:function(){return[{device:{platform:"ios"},options:{arrowPosition:{boundaryOffset:{h:20,v:-10},collision:"fit"}}},{device:function(){return!a.hasWindow()},options:{animation:null}}]},_init:function(){this.callBase(),this._renderArrow(),this._timeouts={},this.$element().addClass("dx-popover"),this._wrapper().addClass("dx-popover-wrapper")},_render:function(){this.callBase.apply(this,arguments),this._detachEvents(this.option("target")),this._attachEvents()},_detachEvents:function(e){S(this,e,"show"),S(this,e,"hide")},_attachEvents:function(){k(this,"show"),k(this,"hide")},_renderArrow:function(){this._$arrow=o("<div>").addClass("dx-popover-arrow").prependTo(this.overlayContent())},_documentDownHandler:function(e){return!this._isOutsideClick(e)||this.callBase(e)},_isOutsideClick:function(e){return!o(e.target).closest(this.option("target")).length},_animate:function(e){e&&e.to&&"object"===i(e.to)&&d(e.to,{position:this._getContainerPosition()}),this.callBase.apply(this,arguments)},_stopAnimation:function(){this.callBase.apply(this,arguments)},_renderTitle:function(){this._wrapper().toggleClass("dx-popover-without-title",!this.option("showTitle")),this.callBase()},_renderPosition:function(){this.callBase(),this._renderOverlayPosition()},_renderOverlayBoundaryOffset:c.noop,_renderOverlayPosition:function(){this._resetOverlayPosition(),this._updateContentSize();var e=this._getContainerPosition(),t=p.setup(this._$content,e),n=this._getSideByLocation(t);this._togglePositionClass("dx-position-"+n),this._toggleFlippedClass(t.h.flip,t.v.flip),(this._isHorizontalSide()||this._isVerticalSide())&&this._renderArrowPosition(n)},_resetOverlayPosition:function(){this._setContentHeight(!0),this._togglePositionClass("dx-position-"+this._positionSide),h.move(this._$content,{left:0,top:0}),this._$arrow.css({top:"auto",right:"auto",bottom:"auto",left:"auto"})},_updateContentSize:function(){if(this._$popupContent){var e=p.calculate(this._$content,this._getContainerPosition());if(e.h.oversize>0&&this._isHorizontalSide()&&!e.h.fit){var t=this._$content.width()-e.h.oversize;this._$content.width(t)}if(e.v.oversize>0&&this._isVerticalSide()&&!e.v.fit){var n=this._$content.height()-e.v.oversize,i=this._$popupContent.height()-e.v.oversize;this._$content.height(n),this._$popupContent.height(i)}}},_getContainerPosition:function(){var e=c.pairToObject(this._position.offset||""),t=e.h,n=e.v,i=this._isVerticalSide(),o=this._isHorizontalSide();if(i||o){var a=(this._isPopoverInside()?-1:1)*y[this._positionSide]*((i?this._$arrow.height():this._$arrow.width())-this._getContentBorderWidth(this._positionSide));i?n+=a:t+=a}return d({},this._position,{offset:t+" "+n})},_getContentBorderWidth:function(e){var t=this._$content.css(x[e]);return parseInt(t)||0},_getSideByLocation:function(e){var t=e.v.flip,n=e.h.flip;return this._isVerticalSide()&&t||this._isHorizontalSide()&&n||this._isPopoverInside()?v[this._positionSide]:this._positionSide},_togglePositionClass:function(e){this._$wrapper.removeClass("dx-position-left dx-position-right dx-position-top dx-position-bottom").addClass(e)},_toggleFlippedClass:function(e,t){this._$wrapper.toggleClass("dx-popover-flipped-horizontal",e).toggleClass("dx-popover-flipped-vertical",t)},_renderArrowPosition:function(e){this._$arrow.css(v[e],-(this._isVerticalSide(e)?this._$arrow.height():this._$arrow.width()));var t,n=this._isVerticalSide(e)?"left":"top",i=this._isVerticalSide(e)?"outerWidth":"outerHeight",a=o(this._position.of),r=p.offset(a)||{top:0,left:0},s=p.offset(this._$content),l=this._$arrow[i](),u=s[n],c=this._$content[i](),d=r[n],h=a.get(0).preventDefault?0:a[i](),f=Math.max(u,d),_=Math.min(u+c,d+h);t="start"===this.option("arrowPosition")?f-u:"end"===this.option("arrowPosition")?_-u-l:(f+_)/2-u-l/2;var m=this._getContentBorderWidth(e),y=g.fitIntoRange(t-m+this.option("arrowOffset"),m,c-l-2*m);this._$arrow.css(n,y)},_isPopoverInside:function(){var e=this._transformStringPosition(this.option("position"),b),t=p.setup.normalizeAlign(e.my),n=p.setup.normalizeAlign(e.at);return t.h===n.h&&t.v===n.v},_setContentHeight:function(e){e&&this.callBase()},_renderShadingPosition:function(){this.option("shading")&&this._$wrapper.css({top:0,left:0})},_renderShadingDimensions:function(){this.option("shading")&&this._$wrapper.css({width:"100%",height:"100%"})},_normalizePosition:function(){var e=d({},this._transformStringPosition(this.option("position"),b));e.of||(e.of=this.option("target")),e.collision||(e.collision="flip"),e.boundaryOffset||(e.boundaryOffset=this.option("boundaryOffset")),this._positionSide=this._getDisplaySide(e),this._position=e},_getDisplaySide:function(e){var t=p.setup.normalizeAlign(e.my),n=p.setup.normalizeAlign(e.at),i=y[t.h]===y[n.h]&&y[t.v]===y[n.v]?-1:1;return Math.abs(y[t.h]-i*y[n.h])>Math.abs(y[t.v]-i*y[n.v])?n.h:n.v},_isVerticalSide:function(e){return"top"===(e=e||this._positionSide)||"bottom"===e},_isHorizontalSide:function(e){return"left"===(e=e||this._positionSide)||"right"===e},_clearEventTimeout:function(e){clearTimeout(this._timeouts[e?"show":"hide"])},_clean:function(){this._detachEvents(this.option("target")),this.callBase.apply(this,arguments)},_optionChanged:function(e){switch(e.name){case"showTitle":case"title":case"titleTemplate":this.callBase(e),this._renderGeometry();break;case"boundaryOffset":case"arrowPosition":case"arrowOffset":this._renderGeometry();break;case"fullScreen":e.value&&this.option("fullScreen",!1);break;case"target":e.previousValue&&this._detachEvents(e.previousValue),this.callBase(e);break;case"showEvent":case"hideEvent":var t=e.name.substring(0,4),n=C(e.previousValue);this.hide(),S(this,this.option("target"),t,n),k(this,t);break;case"visible":this._clearEventTimeout(e.value),this.callBase(e);break;default:this.callBase(e)}},show:function(e){return e&&this.option("target",e),this.callBase()}});u("dxPopover",I),e.exports=I},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(14),s=n(175),l=n(9),u="dxListEditDecorator",c=l.addNamespace(s.start,u),d=l.addNamespace(s.swipe,u),h=l.addNamespace(s.end,u),p=r.inherit({ctor:function(e){this._list=e,this._init()},_init:a,_shouldHandleSwipe:!1,_attachSwipeEvent:function(e){var t={itemSizeFunc:function(){return this._clearSwipeCache&&(this._itemWidthCache=this._list.$element().width(),this._clearSwipeCache=!1),this._itemWidthCache}.bind(this)};o.on(e.$itemElement,c,t,this._itemSwipeStartHandler.bind(this)),o.on(e.$itemElement,d,this._itemSwipeUpdateHandler.bind(this)),o.on(e.$itemElement,h,this._itemSwipeEndHandler.bind(this))},_itemSwipeStartHandler:function(e){var t=i(e.currentTarget);return t.is(".dx-state-disabled, .dx-state-disabled *")?void(e.cancel=!0):(clearTimeout(this._list._inkRippleTimer),void this._swipeStartHandler(t,e))},_itemSwipeUpdateHandler:function(e){var t=i(e.currentTarget);this._swipeUpdateHandler(t,e)},_itemSwipeEndHandler:function(e){var t=i(e.currentTarget);this._swipeEndHandler(t,e),this._clearSwipeCache=!0},beforeBag:a,afterBag:a,_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:a,handleClick:a,handleKeyboardEvents:a,handleEnterPressing:a,handleContextMenu:a,_swipeStartHandler:a,_swipeUpdateHandler:a,_swipeEndHandler:a,visibilityChange:a,getExcludedSelectors:a,dispose:a});e.exports=p},function(e,t,n){e.exports=n(544)},function(e,t,n){e.exports=n(342)},function(e,t,n){var i=n(21),o=n(0).extend,a=n(3).each,r=n(13).inArray,s=n(22),l=s.dateToMilliseconds,u={secondly:"seconds",minutely:"minutes",hourly:"hours",daily:"days",weekly:"weeks",monthly:"months",yearly:"years"},c={bysecond:function(e,t){e.setSeconds(t)},byminute:function(e,t){e.setMinutes(t)},byhour:function(e,t){e.setHours(t)},bymonth:function(e,t){e.setMonth(t)},bymonthday:function(e,t){if(t<0){var n=new Date(e);d(n,1,-1),n.getDate()>=Math.abs(t)?d(e,1,t):d(e,2,t)}else e.setDate(t),k(e,t)},byday:function(e,t,n,i,o){var a=t;"DAILY"!==i&&"WEEKLY"!==i||!(o&&t>=o||!o&&0===t)||(a=7),t+=g[n]>a?7:0,e.setDate(e.getDate()-e.getDay()+t)},byweekno:function(e,t,n){var i=new Date(e),o=new Date(i.setMonth(0,1)),a=o.getDay()-g[n],r=o.getTime()-a*l("day");a+1>4?e.setTime(r+7*t*l("day")):e.setTime(r+7*(t-1)*l("day"));var s=(e.getTimezoneOffset()-o.getTimezoneOffset())*l("minute");s&&e.setTime(e.getTime()+s)},byyearday:function(e,t){e.setMonth(0,1),e.setDate(t)}},d=function(e,t,n){var i=new Date(e);e.setMonth(e.getMonth()+t),e.getMonth()-i.getMonth()>t&&e.setDate(n+1),e.setDate(n+1)},h={bysecond:function(e){return e.getSeconds()},byminute:function(e){return e.getMinutes()},byhour:function(e){return e.getHours()},bymonth:function(e){return e.getMonth()},bymonthday:function(e){return e.getDate()},byday:function(e){return e.getDay()},byweekno:function(e,t){var n,i=new Date(e),o=4-i.getDay()+g[t]-1,a=l("day");e.getDay()<g[t]&&(o-=7),i.setHours(0,0,0),i.setDate(i.getDate()+o);var r=new Date(i.getFullYear(),0,1),s=(r.getTimezoneOffset()-i.getTimezoneOffset())*l("minute");return n=1+(i-r+s)/a,Math.ceil(n/7)},byyearday:function(e){var t=new Date(e.getFullYear(),0,0),n=e.getTimezoneOffset()-t.getTimezoneOffset(),i=e-t-n*l("minute"),o=l("day");return Math.floor(i/o)}},p=["freq","interval","byday","byweekno","byyearday","bymonth","bymonthday","count","until","byhour","byminute","bysecond","bysetpos","wkst"],f=["DAILY","WEEKLY","MONTHLY","YEARLY","SECONDLY","MINUTELY","HOURLY"],g={SU:0,MO:1,TU:2,WE:3,TH:4,FR:5,SA:6},_={0:"SU",1:"MO",2:"TU",3:"WE",4:"TH",5:"FR",6:"SA"},m=function(e){var t=e.interval,n=e.freq,i={},o=u[n.toLowerCase()];return"MONTHLY"===n&&e.byday&&(o=u.daily),i[o]=t,i},v=function(e,t){var n=!1;if(!t)return n;for(var i=t.split(","),o=function(e,t){for(var n=[],i=0,o=e.length;i<o;i++)n[i]=H(e[i],t);return n}(i,e),a=/\d{8}$/,r=0,s=o.length;r<s;r++)if(i[r].match(a)){var l=I(e,o[r]);0===l.years&&0===l.months&&0===l.days&&(n=!0)}else e.getTime()===o[r].getTime()&&(n=!0);return n},y=function(e,t,n,i,o){var a=!0;return n=n.getTime(),i.until&&i.until.getTime()<n&&(n=i.until.getTime()),i.count&&o===i.count&&(a=!1),e.getTime()<=n&&a},b=function(e){var t,n=[],i=T(e.rule),o={},r=i.rule,s=e.start;if(!i.isValid||!r.freq)return n;r.interval=m(r),t=W(r,e.firstDayOfWeek);var u=e.end?e.end.getTime()-e.start.getTime():l("day"),c={exception:e.exception,min:e.min,dateRules:t,rule:r,recurrenceStartDate:s,recurrenceEndDate:e.end,duration:u};if(t.length&&r.count){var d=0;U(t,new Date(s),new Date(s),r).forEach(function(t,n){t<e.max&&(o=x(++d,o,t,n,c,!0))})}else K(t,new Date(s),r).forEach(function(t,n){for(var i=0;y(t,0,e.max,r,i);)o=x(++i,o,t,n,c),t=S(t,s,r,n)});return r.bysetpos&&a(o,function(e,t){o[e]=C(t,r.bysetpos)}),a(o,function(e,t){n=n.concat(t)}),n.sort(function(e,t){return e-t}),n},x=function(e,t,n,i,o,a){return t[e]||(t[e]=[]),w(n,i,o,a)&&t[e].push(n),t},w=function(e,t,n,i){if(!v(e,n.exception)){var o=s.sameDate(e,n.recurrenceEndDate)&&n.recurrenceEndDate.getTime()>e.getTime()?n.recurrenceEndDate.getTime()-e.getTime():n.duration;if(e.getTime()>=n.recurrenceStartDate.getTime()&&e.getTime()+o>n.min.getTime())return i||X(e,[n.dateRules[t]],n.rule.wkst)}return!1},C=function(e,t){var n=[];return t.split(",").forEach(function(t){var i=(t=Number(t))>0?t-1:e.length+t;e[i]&&n.push(e[i])}),n},k=function(e,t){e.getDate()!==t&&e.setDate(t)},S=function(e,t,n,i){var o=new Date(e),a=!0;if(e=s.addInterval(e,n.interval),"MONTHLY"===n.freq&&!n.byday){var r=t.getDate();n.bymonthday&&((r=Number(n.bymonthday.split(",")[i]))<0&&(o.setMonth(o.getMonth()+1,1),c.bymonthday(o,r),e=o,a=!1)),a&&k(e,r)}if("YEARLY"===n.freq){if(n.byyearday){var l=Number(n.byyearday.split(",")[i]);c.byyearday(e,l)}var u=W(n);for(var d in u[i])c[d]&&c[d](e,u[i][d],n.wkst)}return e},I=function(e,t){return{years:e.getFullYear()-t.getFullYear(),months:e.getMonth()-t.getMonth(),days:e.getDate()-t.getDate(),hours:e.getHours()-t.getHours(),minutes:e.getMinutes()-t.getMinutes(),seconds:e.getSeconds()-t.getSeconds()}},T=function(e){var t={rule:{},isValid:!1};return e&&(t.rule=L(e),t.isValid=E(t.rule,e)),t},D=[],E=function(e,t){return!(F(e)||-1===r(e.freq,f)||O(e)||M(e)||R(e)||P(e)||B(e)||A(e))||(V(t),!1)},A=function(e){var t=!1,n=e.until;return void 0===n||n instanceof Date||(t=!0),t},O=function(e){var t=!1,n=e.count;return n&&"string"==typeof n&&(t=!0),t},P=function(e){var t=!1,n=e.bymonthday;return n&&isNaN(parseInt(n))&&(t=!0),t},B=function(e){var t=!1,n=e.bymonth;return n&&isNaN(parseInt(n))&&(t=!0),t},M=function(e){var t=!1,n=e.interval;return n&&"string"==typeof n&&(t=!0),t},R=function(e){var t=N(e),n=!1;return a(t,function(e,t){if(!g.hasOwnProperty(t))return n=!0,!1}),n},F=function(e){var t=!1;return a(e,function(e){if(-1===r(e,p))return t=!0,!1}),t},V=function(e){-1===r(e,D)&&(i.log("W0006",e),D.push(e))},L=function(e){for(var t={},n=e.split(";"),i=0,o=n.length;i<o;i++){var a=n[i].split("="),r=a[0].toLowerCase(),s=a[1];t[r]=s}var l=parseInt(t.count);if(isNaN(l)||(t.count=l),t.interval){var u=parseInt(t.interval);isNaN(u)||(t.interval=u)}else t.interval=1;return t.freq&&t.until&&(t.until=H(t.until)),t},H=function(e,t){if("string"!=typeof e)return e;var n=e.match(/(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2}))?(Z)?/);if(!n)return null;var i=void 0!==n[8],o=t?t.getTimezoneOffset():Z.getTimeZoneOffset(),a=new(Function.prototype.bind.apply(Date,z(n)));return o*=6e4,i&&(a=new Date(a.getTime()-o)),a},z=function(e){return e.shift(),void 0===e[3]?e.splice(3):(e.splice(3,1),e.splice(6)),e[1]--,e.unshift(null),e},N=function(e){var t=[];return e.byday&&(t=Array.isArray(e.byday)?e.byday:e.byday.split(",")),t},$=function(e){var t=6e4*Z.getTimeZoneOffset();return(e=new Date(e.getTime()+t)).getFullYear()+("0"+(e.getMonth()+1)).slice(-2)+("0"+e.getDate()).slice(-2)+"T"+("0"+e.getHours()).slice(-2)+("0"+e.getMinutes()).slice(-2)+("0"+e.getSeconds()).slice(-2)+"Z"},W=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=[];if(t&&(e.fdow=t),e.wkst||(e.wkst=t?_[t]:"MO"),e.byweekno&&!e.byday){for(var i=Object.keys(g),o=0;o<g[e.wkst];o++)i.push(i.shift());e.byday=i.join(",")}for(var a in c)if(e[a]){var r=e[a].split(","),s=G(a,r);n=n.length?q(s,n):s}return n},G=function(e,t){for(var n=[],i=0,o=t.length;i<o;i++){var a={};a[e]=j(e,t[i]),n.push(a)}return n},j=function(e,t){var n=parseInt(t);return"bymonth"===e&&(n-=1),"byday"===e&&(n=g[t]),n},q=function(e,t){for(var n=[],i=0,a=e.length;i<a;i++)for(var r=0,s=t.length;r<s;r++)n.push(o({},e[i],t[r]));return n},K=function(e,t,n){for(var i=[],o=0,a=e.length;o<a;o++){var r=e[o],s=new Date(t);for(var l in r)c[l]&&c[l](s,r[l],n.wkst,n.freq,n.fdow);Array.isArray(s)?i=i.concat(s):i.push(new Date(s))}return i.length||i.push(t),i},U=function(e,t,n,i){for(var o=[],a=i.count,r=0,l=Y(t,e);r<a;){for(var u=K(e,l,i),c=[],d=0;d<u.length;d++)u[d].getTime()>=n.getTime()&&c.push(u[d]);var h=c.length,p=(r+=h)-a;for(r>a&&c.splice(h-p,p),d=0;d<c.length;d++)o.push(c[d]);var f=i.interval;"days"===Object.keys(f)[0]&&(f={weeks:1}),l=s.addInterval(l,f)}return o},Y=function(e,t){var n=new Date(e);return t.length&&t[0].byday?n.setDate(n.getDate()-n.getDay()+t[0].byday):n.setDate(1),n},X=function(e,t,n){for(var i=!1,o=0;o<t.length;o++){var a=t[o],r=!0;for(var s in a){var l="bymonthday"===s&&a[s]<0;h[s]&&!l&&a[s]!==h[s](e,n)&&(r=!1)}i=i||r}return i||!t.length},Z={getRecurrenceString:function(e){if(e&&e.freq){var t="";for(var n in e){var i=e[n];"interval"===n&&i<2||("until"===n&&(i=$(i)),t+=n+"="+i+";")}return(t=t.substring(0,t.length-1)).toUpperCase()}},getRecurrenceRule:T,getAsciiStringByDate:$,getDatesByRecurrence:b,dateInRecurrenceRange:function(e){var t=[];return e.rule&&(t=b(e)),!!t.length},getDateByAsciiString:H,daysFromByDayRule:N,getTimeZoneOffset:function(){return(new Date).getTimezoneOffset()}};e.exports=Z},function(e,t,n){function i(){this.reset()}function o(e,t){return e!==t?d({},e,t):d({},e)}function a(e,t){return e!==t?e.concat(t):e.slice()}function r(e){e._totalChangesOrder=e._optionChangesOrder.concat(e._layoutChangesOrder,e._customChangesOrder)}function s(e){var t=this.prototype,n=e.code;t["_change_"+n]=e.handler,e.isThemeDependent&&t._themeDependentChanges.push(n),e.option&&(t._optionChangesMap[e.option]=n),(e.isOptionChange?t._optionChangesOrder:t._customChangesOrder).push(n),r(t)}function l(){var e=function e(){var t,n,i=e._chain.length;for(t=0;t<i;++t)n=e._chain[t].apply(this,arguments);return n};return e._chain=[],e.add=function(t){e._chain.push(t)},e.copy=function(t){e._chain=t._chain.slice()},e}function u(e,t,n){var i=e[t];i?i.add?(!1===e.hasOwnProperty(t)&&(i=l()).copy(e[t]),i.add(n)):((i=l()).add(e[t]),i.add(n)):i=n,e[t]=i}function c(e){var t=this.prototype;t._plugins.push(e),e.fontFields&&t._fontFields.push.apply(t._fontFields,e.fontFields),e.members&&d(this.prototype,e.members),e.customize&&e.customize(this),e.extenders&&Object.keys(e.extenders).forEach(function(n){var i=e.extenders[n];u(t,n,i)},this)}var d=n(0).extend,h=n(7),p=n(4).noop,f=!h.hasWindow();i.prototype={constructor:i,add:function(e){var t,n=e.length,i=this._flags;for(t=0;t<n;++t)i[e[t]]=1;this._k+=n},has:function(e){return this._flags[e]>0},count:function(){return this._k},reset:function(){this._flags={},this._k=0}},t.replaceInherit=f?function(e){var t=e.inherit;e.inherit=function(){var e=t.apply(this,arguments),n=e.prototype;return["_plugins","_eventsMap","_initialChanges","_themeDependentChanges","_optionChangesMap","_optionChangesOrder","_layoutChangesOrder","_customChangesOrder","_totalChangesOrder"].forEach(function(e){n[e]={}}),e.addPlugin=p,e},e.addChange=p,e.addPlugin=p}:function(e){var t=e.inherit;e.inherit=function(){var e=this.prototype,n=e._plugins,i=e._fontFields,s=e._eventsMap,l=e._initialChanges,u=e._themeDependentChanges,d=e._optionChangesMap,h=e._partialOptionChangesMap,p=e._optionChangesOrder,f=e._layoutChangesOrder,g=e._customChangesOrder,_=t.apply(this,arguments);return(e=_.prototype)._plugins=a(n,e._plugins),e._fontFields=a(i,e._fontFields),e._eventsMap=o(s,e._eventsMap),e._initialChanges=a(l,e._initialChanges),e._themeDependentChanges=a(u,e._themeDependentChanges),e._optionChangesMap=o(d,e._optionChangesMap),e._partialOptionChangesMap=o(h,e._partialOptionChangesMap),e._optionChangesOrder=a(p,e._optionChangesOrder),e._layoutChangesOrder=a(f,e._layoutChangesOrder),e._customChangesOrder=a(g,e._customChangesOrder),r(e),_.addPlugin=c,_},e.prototype._plugins=[],e.prototype._fontFields=[],e.addChange=s,e.addPlugin=c},t.changes=function(){return new i},t.expand=u},function(e,t,n){var i=n(0).extend,o=n(3).each,a=n(107),r=n(169).chart.area,s=a.chart,l=a.polar,u=i,c=o;t.chart={},t.polar={};var d={_createLegendState:function(e,t){return{fill:e.color||t,hatching:e.hatching}},_parsePointStyle:function(e,t,n){var i=e.color||t,o=s._parsePointStyle.call(this,e,i,n);return o.fill=i,o.hatching=e.hatching,o.dashStyle=e.border&&e.border.dashStyle||"solid",delete o.r,o},_applyMarkerClipRect:function(e){e["clip-path"]=null},_setGroupsSettings:function(e,t){var n={};s._setGroupsSettings.apply(this,arguments),e&&t?n=this._getAffineCoordOptions():e||(n={scaleX:1,scaleY:1,translateX:0,translateY:0}),this._markersGroup.attr(n)},_drawPoint:function(e){e.hasAnimation=e.hasAnimation&&!e.firstDrawing,e.firstDrawing=!1,s._drawPoint.call(this,e)},_getMainColor:function(){return this._options.mainSeriesColor},_createPointStyles:function(e){var t=this,n=e.color||t._getMainColor();return{normal:t._parsePointStyle(e,n,n),hover:t._parsePointStyle(e.hoverStyle||{},n,n),selection:t._parsePointStyle(e.selectionStyle||{},n,n)}},_updatePointsVisibility:function(){var e=this._options.visible;o(this._points,function(t,n){n._options.visible=e})},_getOptionsForPoint:function(){return this._options},_animate:function(e){var t=this;t._animatePoints(e,function(){t._animateComplete()},function(e,t){var n=e.length-1;c(e||[],function(e,i){i.animate(e===n?t:void 0,i.getMarkerCoords())})})},getValueRangeInitialValue:r.getValueRangeInitialValue,_patchMarginOptions:function(e){return e.checkInterval=!0,e},_defaultAggregator:"sum",_defineDrawingState:function(){},usePointsToDefineAutoHiding:function(){return!1}};t.chart.bar=u({},s,d,{_getAffineCoordOptions:function(){var e=this._options.rotated,t={scaleX:e?.001:1,scaleY:e?1:.001};return t["translate"+(e?"X":"Y")]=this.getValueAxis().getTranslator().translate("canvas_position_default"),t},_animatePoints:function(e,t,n){this._markersGroup.animate({scaleX:1,scaleY:1,translateY:0,translateX:0},void 0,t),e||n(this._drawnPoints,t)},checkSeriesViewportCoord:function(e,t){if(0===this._points.length)return!1;var n=e.isArgumentAxis?this.getArgumentRange():this.getViewport(),i=e.getTranslator().translate(n.categories?n.categories[0]:n.min),o=e.getTranslator().translate(n.categories?n.categories[n.categories.length-1]:n.max),a=this.getOptions().rotated,r=e.getOptions().inverted,s=this.getVisiblePoints(),l=!e.isArgumentAxis&&!a||e.isArgumentAxis&&a?"height":"width";if(e.isArgumentAxis){var u=!a&&!r||a&&r?-1:1;s[0]&&(i+=u*s[0].getMarkerCoords()[l]/2),s[s.length-1]&&(o-=u*s[s.length-1].getMarkerCoords()[l]/2)}return e.isArgumentAxis&&(!a&&!r||a&&r)||!e.isArgumentAxis&&(a&&!r||!a&&r)?t>=i&&t<=o:t>=o&&t<=i},getSeriesPairCoord:function(e,t){for(var n=null,i=!t&&!this._options.rotated||t&&this._options.rotated,o=i?"vy":"vx",a=this._options.rotated?"minX":"minY",r=i?"height":"width",s=i?"vx":"vy",l=this.getPoints(),u=0;u<l.length;u++){var c=l[u],d=void 0;if(t)d=Math.abs(c[o]-e)<=c.getMarkerCoords()[r]/2?c[s]:void 0;else{var h=[Math.min(c[o],c[a]),Math.max(c[o],c[a])];d=e>=h[0]&&e<=h[1]?c[s]:void 0}if(this.checkAxisVisibleAreaCoord(!t,d)){n=d;break}}return n}}),t.polar.bar=u({},l,d,{_animatePoints:function(e,t,n){n(this._drawnPoints,t)},_setGroupsSettings:s._setGroupsSettings,_drawPoint:function(e,t,n){s._drawPoint.call(this,e,t,n)},_parsePointStyle:function(e){var t=d._parsePointStyle.apply(this,arguments);return t.opacity=e.opacity,t},_createGroups:s._createGroups,_setMarkerGroupSettings:function(){var e,t=this,n=t._createPointStyles(t._getMarkerGroupOptions()).normal;n.class="dxc-markers",t._applyMarkerClipRect(n),delete(e=u({},n)).opacity,t._markersGroup.attr(e)},_createLegendState:r._createLegendState})},function(e,t,n){var i,o=n(4).noop,a=n(87),r=a.postCtor,s={_dataSourceLoadErrorHandler:function(){this._dataSourceChangedHandler()},_dataSourceOptions:function(){return{paginate:!1}},_updateDataSource:function(){this._refreshDataSource(),this.option("dataSource")||this._dataSourceChangedHandler()},_dataIsLoaded:function(){return!this._dataSource||this._dataSource.isLoaded()},_dataSourceItems:function(){return this._dataSource&&this._dataSource.items()}};for(i in a)"postCtor"!==i&&(s[i]=a[i]);t.plugin={name:"data_source",init:function(){r.call(this)},dispose:o,members:s}},function(e,t,n){var i=Number,o=n(11).getAppropriateFormat,a=n(0).extend,r=n(404),s=a,l=n(98),u=n(788),c=n(789),d=l.inherit({_rootClassPrefix:"dxg",_themeSection:"gauge",_createThemeManager:function(){return new u.ThemeManager(this._getThemeManagerOptions())},_initCore:function(){var e=this,t=e._renderer.root;e._valueChangingLocker=0,e._translator=e._factory.createTranslator(),e._tracker=e._factory.createTracker({renderer:e._renderer,container:t}),e._setTrackerCallbacks()},_beginValueChanging:function(){this._resetIsReady(),++this._valueChangingLocker},_endValueChanging:function(){0==--this._valueChangingLocker&&this._drawn()},_setTrackerCallbacks:function(){var e=this,t=e._renderer,n=e._tooltip;e._tracker.setCallbacks({"tooltip-show":function(e,i){var o=e.getTooltipParameters(),a=t.getRootOffset(),r=s({value:o.value,valueText:n.formatValue(o.value),color:o.color},i);return n.show(r,{x:o.x+a.left,y:o.y+a.top,offset:o.offset},{target:i})},"tooltip-hide":function(){return n.hide()}})},_dispose:function(){this._cleanCore(),this.callBase.apply(this,arguments)},_disposeCore:function(){var e=this;e._themeManager.dispose(),e._tracker.dispose(),e._translator=e._tracker=null},_cleanCore:function(){this._tracker.deactivate(),this._cleanContent()},_renderCore:function(){var e=this;e._isValidDomain&&(e._renderContent(),e._tracker.setTooltipState(e._tooltip.isEnabled()),e._tracker.activate(),e._noAnimation=!1)},_applyChanges:function(){this.callBase.apply(this,arguments),this._resizing=this._noAnimation=!1},_setContentSize:function(){var e=this;e._resizing=e._noAnimation=2===e._changes.count(),e.callBase.apply(e,arguments)},_applySize:function(e){var t=this;t._innerRect={left:e[0],top:e[1],right:e[2],bottom:e[3]};var n=t._layout._cache;return t._cleanCore(),t._renderCore(),t._layout._cache=t._layout._cache||n,[e[0],t._innerRect.top,e[2],t._innerRect.bottom]},_initialChanges:["DOMAIN"],_themeDependentChanges:["DOMAIN"],_optionChangesMap:{subtitle:"MOSTLY_TOTAL",indicator:"MOSTLY_TOTAL",geometry:"MOSTLY_TOTAL",animation:"MOSTLY_TOTAL",startValue:"DOMAIN",endValue:"DOMAIN"},_optionChangesOrder:["DOMAIN","MOSTLY_TOTAL"],_change_DOMAIN:function(){this._setupDomain()},_change_MOSTLY_TOTAL:function(){this._applyMostlyTotalChange()},_setupDomain:function(){var e=this;e._setupDomainCore(),e._isValidDomain=isFinite(1/(e._translator.getDomain()[1]-e._translator.getDomain()[0])),e._isValidDomain||e._incidentOccurred("W2301"),e._change(["MOSTLY_TOTAL"])},_applyMostlyTotalChange:function(){var e=this;e._setupCodomain(),e._setupAnimationSettings(),e._setupDefaultFormat(),e._change(["LAYOUT"])},_setupAnimationSettings:function(){var e=this,t=e.option("animation");e._animationSettings=null,(void 0===t||t)&&((t=s({enabled:!0,duration:1e3,easing:"easeOutCubic"},t)).enabled&&t.duration>0&&(e._animationSettings={duration:i(t.duration),easing:t.easing})),e._containerBackgroundColor=e.option("containerBackgroundColor")||e._themeManager.theme().containerBackgroundColor},_setupDefaultFormat:function(){var e=this._translator.getDomain();this._defaultFormatOptions=o(e[0],e[1],this._getApproximateScreenRange())},_setupDomainCore:null,_calculateSize:null,_cleanContent:null,_renderContent:null,_setupCodomain:null,_getApproximateScreenRange:null,_factory:{createTranslator:function(){return new r.Translator1D},createTracker:function(e){return new c(e)}}});t.dxBaseGauge=d;var h=n(63).format,p=function(e,t,n){var i,o=h(e,(t=t||{}).format);return"function"==typeof t.customizeText?(i=s({value:e,valueText:o},n),String(t.customizeText.call(i,i))):o};t.formatValue=p,t.getSampleText=function(e,t){var n=p(e.getDomainStart(),t),i=p(e.getDomainEnd(),t);return n.length>=i.length?n:i},t.compareArrays=function(e,t){return e&&t&&e.length===t.length&&function(e,t){var n,i,o,a=e.length;for(n=0;n<a;++n)if(i=e[n]!=e[n],o=t[n]!=t[n],!(i&&o||e[n]===t[n]))return!1;return!0}(e,t)},d.addPlugin(n(97).plugin),d.addPlugin(n(106).plugin),d.addPlugin(n(108).plugin),d.addPlugin(n(121).plugin);var f=d.prototype._setTooltipOptions;d.prototype._setTooltipOptions=function(){f.apply(this,arguments),this._tracker&&this._tracker.setTooltipState(this._tooltip.isEnabled())}},function(e,t,n){function i(e,t){var n=e.ctx;n.suspend(),n.change(t),n.resume()}var o=n(73).prototype,a=n(170).prototype,r=n(0).extend;o._eventsMap.onNodesInitialized={name:"nodesInitialized"},o._eventsMap.onNodesRendering={name:"nodesRendering"},o._createProxyType=function(){function e(e){var t=this;e.proxy=t,t._id=e._id,t.level=e.level,t.index=e.index,t.data=e.data}var t,n=this;e.prototype={constructor:e,getParent:function(){return t[this._id].parent.proxy||null},getChild:function(e){var n=t[this._id].nodes;return n?n[e].proxy:null},getChildrenCount:function(){var e=t[this._id].nodes;return e?e.length:0},getAllChildren:function(){var e,n=t[this._id].nodes,i=n&&n.length,o=[];for(e=0;e<i;++e)o.push(n[e].proxy);return o},getAllNodes:function(){var e=[];return function e(t,n){var i,o=t.nodes,a=o&&o.length;for(i=0;i<a;++i)n.push(o[i].proxy),e(o[i],n)}(t[this._id],e),e},isLeaf:function(){return!t[this._id].isNode()},isActive:function(){return t[this._id].isActive()},value:function(e){var n,o=t[this._id];return void 0!==e?(function(e,t){for(var n=t-e.value;e;)e.value+=n,e=e.parent}(o,e>0?Number(e):0),i(o,["TILING"]),n=this):n=o.value,n},label:function(e){var n,o=t[this._id];return void 0!==e?(o.customLabel=e?String(e):null,i(o,["LABELS"]),n=this):n=o.customLabel||o.label,n},customize:function(e){var n=t[this._id];return e&&(n._custom=n._custom||{},r(!0,n._custom,e),n._partialState=n._partialLabelState=null),i(n,["TILES","LABELS"]),this},resetCustomization:function(){var e=t[this._id];return e._custom=e._partialState=e._partialLabelState=null,i(e,["TILES","LABELS"]),this}},n._extendProxyType(e.prototype),n._handlers.beginBuildNodes=function(){t=n._nodes,new e(n._root)},n._handlers.buildNode=function(t){new e(t)},n._handlers.endBuildNodes=function(){n._eventTrigger("nodesInitialized",{root:n._root.proxy})}},o._extendProxyType=n(4).noop;var s=o._resetNodes;o._resetNodes=function(){s.call(this),this._eventTrigger("nodesRendering",{node:this._topNode.proxy})};var l=a.updateStyles;a.updateStyles=function(){var e=this;l.call(e),e._custom&&(e._partialState=!e.ctx.forceReset&&e._partialState||e.ctx.calculateState(e._custom),r(!0,e.state,e._partialState))};var u=a.updateLabelStyle;a.updateLabelStyle=function(){var e=this,t=e._custom;u.call(e),t&&t.label&&(e._partialLabelState=!e.ctx.forceReset&&e._partialLabelState||function(e,t){var n=e.ctx.calculateLabelState(t);return"visible"in t&&(n.visible=!!t.visible),n}(e,t.label),e.labelState=r(!0,{},e.labelState,e._partialLabelState))},o.getRootNode=function(){return this._root.proxy},o.resetNodes=function(){var e=this._context;return e.suspend(),e.change(["NODES_CREATE"]),e.resume(),this}},function(e,t,n){var i=n(0).extend;n(51).inject({_formatNumberCore:function(e,t,n){if("currency"===t){n.precision=n.precision||0;var o=this.format(e,i({},n,{type:"fixedpoint"})),a=this.getCurrencySymbol().symbol.replace("$","$$$$");return o.replace(/^(\D*)(\d.*)/,"$1"+a+"$2")}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(){return{symbol:"$"}},getOpenXmlCurrencyFormat:function(){return"$#,##0{0}_);\\($#,##0{0}\\)"}})},function(e,t,n){var i=n(177);e.exports=new i},function(e,t,n){var i=n(5),o=n(31),a=n(12),r=n(14),s=n(9),l="dxPointerEvents",u=r.inherit({ctor:function(e,t){this._eventName=e,this._originalEvents=s.addNamespace(t,l),this._handlerCount=0,this.noBubble=this._isNoBubble()},_isNoBubble:function(){var e=this._eventName;return"dxpointerenter"===e||"dxpointerleave"===e},_handler:function(e){var t=this._getDelegateTarget(e);return this._fireEvent({type:this._eventName,pointerType:e.pointerType||s.eventSource(e),originalEvent:e,delegateTarget:t,timeStamp:o.mozilla?(new Date).getTime():e.timeStamp})},_getDelegateTarget:function(e){var t;return this.noBubble&&(t=e.delegateTarget),t},_fireEvent:function(e){return s.fireEvent(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:a.getDocument(),this._setSelector(t);var n=this;i.on(e,this._originalEvents,this._getSelector(),function(e){n._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:a.getDocument(),this._originalEvents!=="."+l&&i.off(e,this._originalEvents,this._getSelector()))},dispose:function(e){e=this.noBubble?e:a.getDocument(),i.off(e,this._originalEvents)}});e.exports=u},function(e,t,n){var i=n(2),o=n(76),a="dx-swatch-";e.exports={getSwatchContainer:function(e){var t=i(e).closest('[class^="'+a+'"], [class*=" '+a+'"]'),n=o.value();if(!t.length)return n;var r=new RegExp("(\\s|^)("+a+".*?)(\\s|$)"),s=t[0].className.match(r)[2],l=n.children("."+s);return l.length||(l=i("<div>").addClass(s).appendTo(n)),l}}},function(e,t,n){var i=n(14),o=n(1),a=n(3),r=n(20).compileGetter,s=n(20).toComparable,l=n(6).Deferred,u=n(35),c=n(40),d=i.inherit({toArray:function(){var e=[];for(this.reset();this.next();)e.push(this.current());return e},countable:function(){return!1}}),h=d.inherit({ctor:function(e){this.array=e,this.index=-1},next:function(){return this.index+1<this.array.length&&(this.index++,!0)},current:function(){return this.array[this.index]},reset:function(){this.index=-1},toArray:function(){return this.array.slice(0)},countable:function(){return!0},count:function(){return this.array.length}}),p=d.inherit({ctor:function(e){this.iter=e},next:function(){return this.iter.next()},current:function(){return this.iter.current()},reset:function(){return this.iter.reset()}}),f=p.inherit({ctor:function(e,t){this.callBase(e),this.index=-1,this.mapper=t},current:function(){return this.mapper(this.callBase(),this.index)},next:function(){var e=this.callBase();return e&&this.index++,e}}),g=function(e,t){return e=s(e),t=s(t),null===e&&null!==t?-1:null!==e&&null===t?1:void 0===e&&void 0!==t?1:void 0!==e&&void 0===t?-1:e<t?-1:e>t?1:0},_=d.inherit({ctor:function(e,t,n,i){e instanceof f||(e=new f(e,this._wrap)),this.iter=e,this.rules=[{getter:t,desc:n,compare:i}]},thenBy:function(e,t,n){var i=new _(this.sortedIter||this.iter,e,t,n);return this.sortedIter||(i.rules=this.rules.concat(i.rules)),i},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||(a.each(e.rules,function(){this.getter=r(this.getter)}),e.sortedIter=new f(new h(this.iter.toArray().sort(function(t,n){return e._compare(t,n)})),e._unwrap))},_wrap:function(e,t){return{index:t,value:e}},_unwrap:function(e){return e.value},_compare:function(e,t){var n=e.index,i=t.index;if((e=e.value)===(t=t.value))return n-i;for(var o=0,a=this.rules.length;o<a;o++){var r=this.rules[o],s=r.getter(e),l=r.getter(t),u=(r.compare||g)(s,l);if(u)return r.desc?-u:u}return n-i}}),m=function(){function e(e,t,n){return function(i){i=s(e(i));var o=function(e){return""===e||0===e||!1===e}(t)?i===t:i==t;return n&&(o=!o),o}}var t=function(e){return o.isDefined(e)?e.toString():""},n=function(n){n=c.normalizeBinaryCriterion(n);var i=r(n[0]),o=n[1],a=n[2];switch(a=s(a),o.toLowerCase()){case"=":return e(i,a);case"<>":return e(i,a,!0);case">":return function(e){return s(i(e))>a};case"<":return function(e){return s(i(e))<a};case">=":return function(e){return s(i(e))>=a};case"<=":return function(e){return s(i(e))<=a};case"startswith":return function(e){return 0===s(t(i(e))).indexOf(a)};case"endswith":return function(e){var n=s(t(i(e))),o=t(a);return!(n.length<o.length)&&n.lastIndexOf(a)===n.length-a.length};case"contains":return function(e){return s(t(i(e))).indexOf(a)>-1};case"notcontains":return function(e){return-1===s(t(i(e))).indexOf(a)}}throw u.errors.Error("E4003",o)};return function(e){return o.isFunction(e)?e:c.isGroupCriterion(e)?function(e){var t=[],n=!1,i=!1;return a.each(e,function(){if(Array.isArray(this)||o.isFunction(this)){if(t.length>1&&n!==i)throw new u.errors.Error("E4019");t.push(m(this)),n=i,i=!0}else i=c.isConjunctiveOperator(this)}),function(e){for(var i=n,o=0;o<t.length;o++)if(t[o](e)!==n){i=!n;break}return i}}(e):c.isUnaryOperation(e)?function(e){var t=e[0],n=m(e[1]);if("!"===t)return function(e){return!n(e)};throw u.errors.Error("E4003",t)}(e):n(e)}}(),v=p.inherit({ctor:function(e,t){this.callBase(e),this.criteria=m(t)},next:function(){for(;this.iter.next();)if(this.criteria(this.current()))return!0;return!1}}),y=d.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=[],n=this.iter,i=r(this.getter);for(n.reset();n.next();){var o=n.current(),s=i(o);s in e?e[s].push(o):(e[s]=[o],t.push(s))}this.groupedIter=new h(a.map(t,function(t){return{key:t,items:e[t]}}))}}}),b=p.inherit({ctor:function(e,t){this.callBase(e),this.getter=r(t)},current:function(){return this.getter(this.callBase())},countable:function(){return this.iter.countable()},count:function(){return this.iter.count()}}),x=p.inherit({ctor:function(e,t,n){this.callBase(e),this.skip=Math.max(0,t),this.take=Math.max(0,n),this.pos=0},next:function(){if(this.pos>=this.skip+this.take)return!1;for(;this.pos<this.skip&&this.iter.next();)this.pos++;return this.pos++,this.iter.next()},reset:function(){this.callBase(),this.pos=0},countable:function(){return this.iter.countable()},count:function(){return Math.min(this.iter.count()-this.skip,this.take)}});e.exports=function e(t,n){n=n||{},t instanceof d||(t=new h(t));var i=function(e){var t=n.errorHandler;t&&t(e),u._errorHandler(e)},a=function(e){var n=(new l).fail(i),o=e.step,a=e.finalize;try{t.reset();for(var r=("seed"in e?e.seed:t.next()?t.current():NaN);t.next();)r=o(r,t.current());n.resolve(a?a(r):r)}catch(e){n.reject(e)}return n.promise()},s=function(e){return a(c.aggregators[e])},p=function(e){return o.isFunction(e)||Array.isArray(e)||(e=[].slice.call(arguments)),g(new b(t,e))},f=function(e){return p(r(e))},g=function(t){return e(t,n)};return{toArray:function(){return t.toArray()},enumerate:function(){var e=(new l).fail(i);try{e.resolve(t.toArray())}catch(t){e.reject(t)}return e.promise()},sortBy:function(e,n,i){return g(new _(t,e,n,i))},thenBy:function(e,n,i){if(t instanceof _)return g(t.thenBy(e,n,i));throw u.errors.Error("E4004")},filter:function(e){return Array.isArray(e)||(e=[].slice.call(arguments)),g(new v(t,e))},slice:function(e,n){return void 0===n&&(n=Number.MAX_VALUE),g(new x(t,e,n))},select:p,groupBy:function(e){return g(new y(t,e))},aggregate:function(e,t,n){return a(arguments.length<2?{step:e}:{seed:e,step:t,finalize:n})},count:function(){if(t.countable()){var e=(new l).fail(i);try{e.resolve(t.count())}catch(t){e.reject(t)}return e.promise()}return s("count")},sum:function(e){return e?f(e).sum():s("sum")},min:function(e){return e?f(e).min():s("min")},max:function(e){return e?f(e).max():s("max")},avg:function(e){return e?f(e).avg():s("avg")}}}},function(e,t,n){var i=n(2),o=n(14),a=n(3).each,r=n(126),s=o.inherit({ctor:function(e,t,n){this._$element=e,this._options=t,this._rawData=n,r.attachInstanceToElement(e,this,this._dispose),this._render()},_render:function(){var e=i("<div>").addClass("dx-item-content-placeholder");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 n=this._rawData,i=this._options.fieldGetter(e),o=function(e,t,n){var i=function(){var e;return function(t){e!==t&&(n(t,e),e=t)}}();return{dispose:e(t,i),force:function(){i(t())}}}(this._options.watchMethod(),function(){return i(n)},function(e,n){this._dirty=!0,t(e,n)}.bind(this));this._watchers.push(o)},setDataField:function(){if(this._dirty=!1,a(this._watchers,function(e,t){t.force()}),this._dirty)return!0},_renderDisabled:function(e,t){this._$element.toggleClass("dx-state-disabled",!!e)},_renderVisible:function(e,t){this._$element.toggleClass("dx-state-invisible",void 0!==e&&!e)},_dispose:function(){a(this._watchers,function(e,t){t.dispose()})}});s.getInstance=function(e){return r.getInstanceByElement(e,this)},e.exports=s},function(e,t,n){var i=n(5),o=n(10),a=n(12),r=n(14),s=n(67),l=n(19),u=n(9),c="dxdblclick",d=u.addNamespace(l.name,"dxDblClick"),h=r.inherit({ctor:function(){this._handlerCount=0,this._forgetLastClick()},_forgetLastClick:function(){this._firstClickTarget=null,this._lastClickTimeStamp=-300},add:function(){this._handlerCount<=0&&i.on(a.getDocument(),d,this._clickHandler.bind(this)),this._handlerCount++},_clickHandler:function(e){var t=e.timeStamp||Date.now();t-this._lastClickTimeStamp<300?(u.fireEvent({type:c,target:o.closestCommonParent(this._firstClickTarget,e.target),originalEvent:e}),this._forgetLastClick()):(this._firstClickTarget=e.target,this._lastClickTimeStamp=t)},remove:function(){this._handlerCount--,this._handlerCount<=0&&(this._forgetLastClick(),i.off(a.getDocument(),d))}});s(c,new h),t.name=c},function(e,t,n){var i=n(1),o=n(3),a=n(27),r=n(0).extend,s=n(180),l=n(101),u=l.serializePropName,c=n(35).errors,d=n(40),h=i.isFunction,p=function(){var e,t,n,s=function(e){return function(t,n){return t+" "+e+" "+n}},h=function(e,n){return function(i,o){var a=[e,"("];return t&&(i=-1===i.indexOf("tolower(")?"tolower("+i+")":i,o=o.toLowerCase()),n?a.push(o,",",i):a.push(i,",",o),a.push(")"),a.join("")}},p={"=":s("eq"),"<>":s("ne"),">":s("gt"),">=":s("ge"),"<":s("lt"),"<=":s("le"),startswith:h("startswith"),endswith:h("endswith")},f=r({},p,{contains:h("substringof",!0),notcontains:h("not substringof",!0)}),g=r({},p,{contains:h("contains"),notcontains:h("not contains")}),_=function(t){var i=(t=d.normalizeBinaryCriterion(t))[1],o=(4===e?g:f)[i.toLowerCase()];if(!o)throw c.Error("E4003",i);var a=t[0],r=t[2];return n&&n[a]&&(r=l.convertPrimitiveValue(n[a],r)),o(u(a),l.serializeValue(r,e))},m=function(e){return Array.isArray(e[0])?function(e){var t,n,i=[];return o.each(e,function(e,o){if(Array.isArray(o)){if(i.length>1&&t!==n)throw new c.Error("E4019");i.push("("+m(o)+")"),t=n,n="and"}else n=d.isConjunctiveOperator(this)?"and":"or"}),i.join(" "+t+" ")}(e):d.isUnaryOperation(e)?function(e){var t=e[0],n=m(e[1]);if("!"===t)return"not ("+n+")";throw c.Error("E4003",t)}(e):_(e)};return function(o,r,s,l){return n=s,t=i.isDefined(l)?l:a().oDataFilterToLower,e=r,m(o)}}(),f=function(e){var t,n,i,o,a=[],s=[],c=e.expand,d=e.version||2,f=function(){return n||void 0!==i};return{optimize:function(e){!function(e){for(var t=-1,n=0;n<e.length;n++)if("select"===e[n].name){t=n;break}if(!(t<0)&&h(e[t].args[0])){var i=e[1+t];i&&"slice"===i.name&&(e[1+t]=e[t],e[t]=i)}}(e)},exec:function(u){return l.sendRequest(d,{url:u,params:r(function(){var r={};if(o||(a.length&&(r.$orderby=a.join(",")),n&&(r.$skip=n),void 0!==i&&(r.$top=i),r.$select=l.generateSelect(d,t)||void 0,r.$expand=l.generateExpand(d,c,t)||void 0),s.length){var u=s.length<2?s[0]:s,h=e&&e.fieldTypes,f=e&&e.filterToLower;r.$filter=p(u,d,h,f)}return o&&(r.$top=0),(e.requireTotalCount||o)&&(4!==d?r.$inlinecount="allpages":r.$count="true"),r}(),e&&e.params)},{beforeSend:e.beforeSend,jsonp:e.jsonp,withCredentials:e.withCredentials,countOnly:o,deserializeDates:e.deserializeDates,fieldTypes:e.fieldTypes,isPaged:isFinite(i)})},multiSort:function(e){var t;if(f())return!1;for(var n=0;n<e.length;n++){var i,o=e[n][0],r=!!e[n][1];if("string"!=typeof o)return!1;i=u(o),r&&(i+=" desc"),(t=t||[]).push(i)}a=t},slice:function(e,t){return!f()&&(n=e,void(i=t))},filter:function(e){return!f()&&(Array.isArray(e)||(e=[].slice.call(arguments)),!function e(t){for(var n=0;n<t.length;n++){if(h(t[n]))return!0;if(Array.isArray(t[n])&&e(t[n]))return!0}return!1}(e)&&(s.length&&s.push("and"),void s.push(e)))},select:function(e){return!t&&!h(e)&&(Array.isArray(e)||(e=[].slice.call(arguments)),void(t=e))},count:function(){o=!0}}};s.odata=f,t.odata=f},function(e,t,n){e.exports="19.1.4"},function(e,t,n){var i=n(2),o=n(5),a=n(16),r=n(84),s=n(70),l=n(10),u=n(47).add,c=n(29),d=n(4).noop,h=n(1).isDefined,p=n(9),f=n(114),g=c.sign,_=Math.abs,m=10,v=function(e){return e&&"dxmousewheel"===e.type},y=s(function(){var e="generic"===a.real().platform;if(!r.styleProp("pointer-events")||!e)return d;var t=i("<div>").addClass("dx-gesture-cover").css("pointerEvents","none");return o.subscribeGlobal(t,"dxmousewheel",function(e){e.preventDefault()}),u(function(){t.appendTo("body")}),function(e,n){t.css("pointerEvents",e?"all":"none"),e&&t.css("cursor",n)}}),b=f.inherit({gesture:!0,configure:function(e){this.getElement().css("msTouchAction",e.immediate?"pinch-zoom":""),this.callBase(e)},allowInterruptionByMouseWheel:function(){return 2!==this._stage},getDirection:function(){return this.direction},_cancel:function(){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=0},start:function(e){return p.needSkipEvent(e)?void this._cancel(e):(this._startEvent=p.createEvent(e),this._startEventData=p.eventData(e),this._stage=1,this._init(e),void this._setupImmediateTimer())},_setupImmediateTimer:function(){clearTimeout(this._immediateTimer),this._immediateAccepted=!1,this.immediate&&(this._immediateTimer=setTimeout(function(){this._immediateAccepted=!0}.bind(this),180))},move:function(e){if(1===this._stage&&this._directionConfirmed(e)){if(this._stage=2,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(e),this._adjustStartEvent(e),this._start(this._startEvent),0===this._stage)return;this._requestAccept(e),this._move(e),this._forgetAccept()}else 2===this._stage&&(this._clearSelection(e),this._move(e))},_directionConfirmed:function(e){var t=this._getTouchBoundary(e),n=p.eventDelta(this._startEventData,p.eventData(e)),i=_(n.x),o=_(n.y),a=this._validateMove(t,i,o),r=this._validateMove(t,o,i),s=this.getDirection(e);return"both"===s&&(a||r)||"horizontal"===s&&a||"vertical"===s&&r||this._immediateAccepted},_validateMove:function(e,t,n){return t&&t>=e&&(!this.immediate||t>=n)},_getTouchBoundary:function(e){return this.immediate||v(e)?0:m},_adjustStartEvent:function(e){var t=this._getTouchBoundary(e),n=p.eventDelta(this._startEventData,p.eventData(e));this._startEvent.pageX+=g(n.x)*t,this._startEvent.pageY+=g(n.y)*t},_resetActiveElement:function(){"ios"===a.real().platform&&this.getElement().find(":focus").length&&l.resetActiveElement()},_toggleGestureCover:function(e){2===this._stage&&function(e,t){y()(e,t)}(e,this.getElement().css("cursor"))},_clearSelection:function(e){v(e)||p.isTouchEvent(e)||l.clearSelection()},end:function(e){this._toggleGestureCover(!1),2===this._stage?this._end(e):1===this._stage&&this._stop(e),this._stage=0},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:d,_start:d,_move:d,_stop:d,_end:d});b.initialTouchBoundary=m,b.touchBoundary=function(e){return h(e)?void(m=e):m},e.exports=b},function(e,t,n){var i=n(175),o=n(5),a=n(66),r=n(3).each,s=n(9),l=n(0).extend,u=n(126),c="dxSwipeable",d={onStart:i.start,onUpdated:i.swipe,onEnd:i.end,onCancel:"dxswipecancel"},h=a.inherit({_getDefaultOptions:function(){return 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("dx-swipeable"),this._attachEventHandlers()},_attachEventHandlers:function(){if(this._detachEventHandlers(),!this.option("disabled")){var e=this.NAME;this._createEventData(),r(d,function(t,n){var i=this._createActionByOption(t,{context:this});n=s.addNamespace(n,e),o.on(this.$element(),n,this._eventData,function(e){return i({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(){o.off(this.$element(),"."+c)},_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)}}});u.name(h,c),e.exports=h},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(5)),r=i(n(14)),s=n(13),l=n(3),u=n(9),c="compositionstart",d="KeyboardProcessor",h=r.default.inherit({_keydown:(0,u.addNamespace)("keydown",d),_compositionStart:(0,u.addNamespace)(c,d),_compositionEnd:(0,u.addNamespace)("compositionend",d),ctor:function(e){var t=this;(e=e||{}).element&&(this._element=(0,o.default)(e.element)),e.focusTarget&&(this._focusTarget=e.focusTarget),this._handler=e.handler,this._context=e.context,this._childProcessors=[],this._element&&(this._processFunction=function(e){t.process(e)},this._toggleProcessingWithContext=this.toggleProcessing.bind(this),a.default.on(this._element,this._keydown,this._processFunction),a.default.on(this._element,this._compositionStart,this._toggleProcessingWithContext),a.default.on(this._element,this._compositionEnd,this._toggleProcessingWithContext))},dispose:function(){this._element&&(a.default.off(this._element,this._keydown,this._processFunction),a.default.off(this._element,this._compositionStart,this._toggleProcessingWithContext),a.default.off(this._element,this._compositionEnd,this._toggleProcessingWithContext)),this._element=void 0,this._handler=void 0,this._context=void 0,this._childProcessors=void 0},clearChildren:function(){this._childProcessors=[]},push:function(e){return this._childProcessors||this.clearChildren(),this._childProcessors.push(e),e},attachChildProcessor:function(){var e=new h;return this._childProcessors.push(e),e},reinitialize:function(e,t){return this._context=t,this._handler=e,this},process:function(e){var t=this._focusTarget&&this._focusTarget!==e.target&&(0,s.inArray)(e.target,this._focusTarget)<0,n=this._isComposingJustFinished&&229===e.which||this._isComposing||t;if(this._isComposingJustFinished=!1,n)return!1;var i={keyName:(0,u.normalizeKeyName)(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};this._handler&&this._handler.call(this._context,i)&&this._childProcessors&&(0,l.each)(this._childProcessors,function(t,n){n.process(e)})},toggleProcessing:function(e){var t=e.type;this._isComposing=t===c,this._isComposingJustFinished=!this._isComposing}});e.exports=h},function(e,t,n){var i=n(2),o=n(5),a=n(44),r=n(16),s=n(14),l=n(67),u=n(9),c=n(89),d="dxContexMenu",h=u.addNamespace("contextmenu",d),p=u.addNamespace(c.name,d),f="dxcontextmenu",g=s.inherit({setup:function(e){var t=i(e);o.on(t,h,this._contextMenuHandler.bind(this)),(a.touch||r.isSimulator())&&o.on(t,p,this._holdHandler.bind(this))},_holdHandler:function(e){u.isMouseEvent(e)&&!r.isSimulator()||this._fireContextMenu(e)},_contextMenuHandler:function(e){this._fireContextMenu(e)},_fireContextMenu:function(e){return u.fireEvent({type:f,originalEvent:e})},teardown:function(e){o.off(e,"."+d)}});l(f,new g),t.name=f},function(e,t,n){var i=n(2),o=n(282),a=n(5),r=n(42),s=n(8),l=n(4),u=n(10),c=n(64).focused,d=n(3).each,h=n(1).isDefined,p=n(0).extend,f=n(10).getPublicElement,g=n(18),_=n(77),m=n(99).getDefaultAlignment,v=n(489).default,y=n(15),b=n(9),x=n(92),w=n(19),C=n(86),k=n(46),S="dx-dropdowneditor-input-wrapper",I=x.inherit({_supportedKeys:function(){var e=function(e){return!!this.option("opened")&&(e.preventDefault(),!0)};return p({},this.callBase(),{tab:function(e){if(this.option("opened")){if("instantly"===this.option("applyValueMode"))return void this.close();var t=e.shiftKey?this._getLastPopupElement():this._getFirstPopupElement();t&&a.trigger(t,"focus"),e.preventDefault()}},escape:function(e){this.option("opened")&&e.preventDefault(),this.close()},upArrow:function(e){return e.preventDefault(),e.stopPropagation(),!e.altKey||(this.close(),!1)},downArrow:function(e){return e.preventDefault(),e.stopPropagation(),!e.altKey||(this._validatedOpening(),!1)},enter:function(e){return this.option("opened")&&(e.preventDefault(),this._valueChangeEventHandler(e)),!0},home:e,end:e})},_getDefaultButtons:function(){return this.callBase().concat([{name:"dropDown",Ctor:v}])},_getDefaultOptions:function(){return p(this.callBase(),{value:null,onOpened:null,onClosed:null,opened:!1,acceptCustomValue:!0,applyValueMode:"instantly",deferRendering:!0,activeStateEnabled:!0,dropDownButtonTemplate:"dropDownButton",fieldTemplate:null,contentTemplate:null,openOnFieldClick:!1,showDropDownButton:!0,buttons:void 0,dropDownOptions:{},popupPosition:this._getDefaultPopupPosition(),onPopupInitialized:null,applyButtonText:y.format("OK"),cancelButtonText:y.format("Cancel"),buttonsLocation:"default",showPopupTitle:!1})},_getDefaultPopupPosition:function(){var e=m(this.option("rtlEnabled"));return{offset:{h:0,v:-1},my:e+" top",at:e+" bottom",collision:"flip flip"}},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"generic"===e.platform},options:{popupPosition:{offset:{v:0}}}}])},_inputWrapper:function(){return this.$element().find("."+S)},_init:function(){this.callBase(),this._initVisibilityActions(),this._initPopupInitializedAction(),this._initInnerOptionCache("dropDownOptions")},_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.callBase(),this.$element().addClass("dx-dropdowneditor"),this.setAria("role","combobox")},_render:function(){this.callBase(),this._renderOpenHandler(),this._renderOpenedState()},_renderContentImpl:function(){this.option("deferRendering")||this._createPopup()},_renderInput:function(){this.callBase(),this.$element().wrapInner(i("<div>").addClass(S)),this._$container=this.$element().children().eq(0),this.setAria({haspopup:"true",autocomplete:"list"})},_readOnlyPropValue:function(){return!this.option("acceptCustomValue")||this.callBase()},_cleanFocusState:function(){this.callBase(),this.option("fieldTemplate")&&a.off(this._input(),"focusin focusout beforeactivate")},_getFieldTemplate:function(){return this.option("fieldTemplate")&&this._getTemplateByOption("fieldTemplate")},_renderField:function(){var e=this._getFieldTemplate();e&&this._renderTemplatedField(e,this._fieldRenderData())},_renderPlaceholder:function(){!!this._getFieldTemplate()||this.callBase()},_renderValue:function(){this.callBase().always(this._renderField.bind(this))},_renderTemplatedField:function(e,t){var n=this,o=c(this._input()),r=this._$container;this._disposeKeyboardProcessor();var s=this._$beforeButtonsContainer&&this._$beforeButtonsContainer[0].parentNode,l=this._$afterButtonsContainer&&this._$afterButtonsContainer[0].parentNode;s&&s.removeChild(this._$beforeButtonsContainer[0]),l&&l.removeChild(this._$afterButtonsContainer[0]),r.empty();var d=i("<div>").addClass("dx-dropdowneditor-field-template-wrapper").appendTo(r);e.render({model:t,container:u.getPublicElement(d),onRendered:function(){if(!n._input().length)throw g.Error("E1010");n._refreshEvents(),n._refreshValueChangeEvent(),n._renderFocusState(),o&&a.trigger(n._input(),"focus")}}),r.prepend(this._$beforeButtonsContainer),r.append(this._$afterButtonsContainer)},_fieldRenderData:function(){return this.option("value")},_initTemplates:function(){this.callBase(),this._defaultTemplates.dropDownButton=new C(function(e){var t=i("<div>").addClass("dx-dropdowneditor-icon");i(e.container).append(t)},this)},_renderOpenHandler:function(){var e=this,t=e._inputWrapper(),n=b.addNamespace(w.name,e.NAME),i=e.option("openOnFieldClick");a.off(t,n),a.on(t,n,e._getInputClickHandler(i)),e.$element().toggleClass("dx-dropdowneditor-field-clickable",i),i&&(e._openOnFieldClickAction=e._createAction(e._openHandler.bind(e)))},_getInputClickHandler:function(e){var t=this;return e?function(e){t._executeOpenAction(e)}:function(e){t._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")&&!c(this._input())&&a.trigger(this._input(),"focus"),!0)},_toggleOpenState:function(e){this._focusInput()&&(this.option("readOnly")||(e=arguments.length?e:!this.option("opened"),this.option("opened",e)))},_renderOpenedState:function(){var e=this.option("opened");e&&this._createPopup(),this.$element().toggleClass("dx-dropdowneditor-active",e),this._setPopupOption("visible",e),this.setAria({expanded:e,owns:e?this._popupContentId:void 0})},_createPopup:function(){this._$popup||(this._$popup=i("<div>").addClass("dx-dropdowneditor-overlay").addClass(this.option("customOverlayCssClass")).appendTo(this.$element()),this._renderPopup(),this._renderPopupContent())},_renderPopup:function(){this._popup=this._createComponent(this._$popup,k,p(this._popupConfig(),this._getInnerOptionsCache("dropDownOptions"))),this._popup.on({showing:this._popupShowingHandler.bind(this),shown:this._popupShownHandler.bind(this),hiding:this._popupHidingHandler.bind(this),hidden:this._popupHiddenHandler.bind(this)}),this._popup.option("onContentReady",this._contentReadyHandler.bind(this)),this._contentReadyHandler(),this._popupContentId="dx-"+new r,this.setAria("id",this._popupContentId,this._popup.$content()),this._bindInnerWidgetOptions(this._popup,"dropDownOptions")},_contentReadyHandler:l.noop,_popupConfig:function(){return{onInitialized:this._popupInitializedHandler(),position:p(this.option("popupPosition"),{of:this.$element()}),showTitle:this.option("showPopupTitle"),width:"auto",height:"auto",shading:!1,closeOnTargetScroll:!0,closeOnOutsideClick:this._closeOutsideDropDownHandler.bind(this),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,toolbarItems:this._getPopupToolbarItems(),onPositioned:this._popupPositionedHandler.bind(this),fullScreen:!1}},_popupInitializedHandler:function(){if(this.option("onPopupInitialized"))return function(e){this._popupInitializedAction({popup:e.component})}.bind(this)},_popupPositionedHandler:function(e){e.position&&this._popup.overlayContent().toggleClass("dx-dropdowneditor-overlay-flipped",e.position.v.flip)},_popupShowingHandler:l.noop,_popupHidingHandler:function(){this.option("opened",!1)},_popupShownHandler:function(){this._openAction(),this._$validationMessage&&this._$validationMessage.dxOverlay("option","position",this._getValidationMessagePosition())},_popupHiddenHandler:function(){this._closeAction(),this._$validationMessage&&this._$validationMessage.dxOverlay("option","position",this._getValidationMessagePosition())},_getValidationMessagePosition:function(){var e="below";if(this._popup&&this._popup.option("visible")){var t=_.setup(this.$element()).top,n=_.setup(this._popup.$content()).top;e=t+this.option("popupPosition").offset.v>n?"below":"above"}return this.callBase(e)},_renderPopupContent:function(){var e=this._getTemplateByOption("contentTemplate");if(e&&this.option("contentTemplate")){var t=this._popup.$content(),n={value:this._fieldRenderData(),component:this};t.empty(),e.render({container:u.getPublicElement(t),model:n})}},_closeOutsideDropDownHandler:function(e){var t=e.target,n=i(t),o=this.getButton("dropDown"),a=o&&o.$element(),r=!!n.closest(this.$element()).length,s=!!n.closest(a).length;return!r&&!s},_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=i(e.currentTarget);(e.shiftKey&&t.is(this._getFirstPopupElement())||!e.shiftKey&&t.is(this._getLastPopupElement()))&&(a.trigger(this._input(),"focus"),e.preventDefault())},_popupElementEscHandler:function(){a.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"),n=e;if("default"!==t){var i=l.splitPair(t);d(n,function(e,t){p(t,{toolbar:i[0],location:i[1]})})}return n},_applyButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_cancelButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_updatePopupWidth:l.noop,_popupOptionChanged:function(e){var t=this._getOptionsFromContainer(e);this._setPopupOption(t),-1!==Object.keys(t).indexOf("width")&&void 0===t.width&&this._updatePopupWidth()},_optionChanged:function(e){switch(e.name){case"opened":this._renderOpenedState();break;case"onOpened":case"onClosed":this._initVisibilityActions();break;case"onPopupInitialized":this._initPopupInitializedAction();break;case"fieldTemplate":h(e.value)?this._renderField():this._invalidate();break;case"contentTemplate":case"acceptCustomValue":case"openOnFieldClick":this._invalidate();break;case"dropDownButtonTemplate":case"showDropDownButton":this._updateButtons(["dropDown"]);break;case"dropDownOptions":this._popupOptionChanged(e),this._cacheInnerOptions("dropDownOptions",e.value);break;case"popupPosition":case"deferRendering":break;case"applyValueMode":case"applyButtonText":case"cancelButtonText":case"buttonsLocation":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"showPopupTitle":this._setPopupOption("showTitle",e.value);break;default:this.callBase(e)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)},field:function(){return f(this._input())},content:function(){return this._popup?this._popup.content():null}}).include(o);s("dxDropDownEditor",I),e.exports=I},function(e,t,n){e.exports=n(506)},function(e,t,n){var i=n(2),o=n(30),a=n(8),r=n(4).grep,s=n(0).extend,l=n(13),u=n(3),c=n(560),d=n(561),h=n(286),p=n(133),f={actionSheet:c,dropDownMenu:d},g="dx-toolbar-item-auto-hide",_="dx-toolbar-item-invisible",m=h.inherit({_getDefaultOptions:function(){return s(this.callBase(),{menuItemTemplate:"menuItem",submenuType:"dropDownMenu",menuContainer:void 0})},_defaultOptionsRules:function(){var e=o.current();return this.callBase().concat([{device:function(){return o.isIos7(e)},options:{submenuType:"actionSheet"}}])},_dimensionChanged:function(e){"height"!==e&&(this._menuStrategy.toggleMenuVisibility(!1,!0),this.callBase(),this._menuStrategy.renderMenuItems())},_initTemplates:function(){this.callBase(),this._defaultTemplates.actionSheetItem=new p("item",this)},_initMarkup:function(){this.callBase(),this._renderMenu()},_postProcessRenderItems:function(){this._hideOverflowItems(),this._menuStrategy._updateMenuVisibility(),this.callBase(),this._menuStrategy.renderMenuItems()},_renderItem:function(e,t,n,i){var o=this.callBase(e,t,n,i);return"auto"===t.locateInMenu&&o.addClass(g),"dxButton"===t.widget&&"inMenu"===t.showText&&o.toggleClass("dx-toolbar-text-auto-hide"),o},_getItemsWidth:function(){return this._getSummaryItemsWidth([this._$beforeSection,this._$centerSection,this._$afterSection])},_hideOverflowItems:function(e){var t=this.$element().find("."+g);if(t.length){e=e||this.$element().width(),i(t).removeClass(_);for(var n=this._getItemsWidth();t.length&&e<n;){var o=t.eq(-1);n-=o.outerWidth(),o.addClass(_),t.splice(-1,1)}}},_getMenuItems:function(){var e=this,t=r(this.option("items")||[],function(t){return e._isMenuItem(t)}),n=this._itemContainer().children("."+g+"."+_).not(".dx-state-invisible");this._restoreItems=this._restoreItems||[];var o=[].slice.call(n).map(function(t){var n=e._getItemData(t),o=i(t).children(),a=o.children();return s({menuItemTemplate:function(){return e._restoreItems.push({container:o,item:a}),i("<div>").addClass(g).append(a)}},n)});return l.merge(o,t)},_getToolbarItems:function(){var e=this;return r(this.option("items")||[],function(t){return!e._isMenuItem(t)})},_renderMenu:function(){this._renderMenuStrategy(),this._menuStrategy.render()},_renderMenuStrategy:function(){var e=this.option("submenuType");this._requireDropDownStrategy()&&(e="dropDownMenu");var t=f[e];this._menuStrategy&&this._menuStrategy.NAME===e||(this._menuStrategy=new t(this))},_requireDropDownStrategy:function(){var e=this.option("items")||[],t=!1;return u.each(e,function(e,n){"auto"===n.locateInMenu?t=!0:"always"===n.locateInMenu&&n.widget&&(t=!0)}),t},_arrangeItems:function(){if(!this.$element().is(":hidden")){this._$centerSection.css({margin:"0 auto",float:"none"}),u.each(this._restoreItems||[],function(e,t){i(t.container).append(t.item)}),this._restoreItems=[];var e=this.$element().width();this._hideOverflowItems(e),this.callBase(e)}},_itemOptionChanged:function(e,t,n){this._isMenuItem(e)?this._menuStrategy.renderMenuItems():this._isToolbarItem(e)?this.callBase(e,t,n):(this.callBase(e,t,n),this._menuStrategy.renderMenuItems())},_isMenuItem:function(e){return"menu"===e.location||"always"===e.locateInMenu},_isToolbarItem:function(e){return void 0===e.location||"never"===e.locateInMenu},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"submenuType":this._invalidate();break;case"visible":this.callBase.apply(this,arguments),this._menuStrategy.handleToolbarVisibilityChange(n);break;case"menuItemTemplate":this._changeMenuOption("itemTemplate",this._getTemplate(n));break;case"onItemClick":this._changeMenuOption(t,n),this.callBase.apply(this,arguments);break;case"menuContainer":this._changeMenuOption("container",n);break;default:this.callBase.apply(this,arguments)}},_changeMenuOption:function(e,t){this._menuStrategy.widgetOption(e,t)}});a("dxToolbar",m),e.exports=m},function(e,t,n){e.exports=n(319),e.exports.show=n(249).show,e.exports.hide=n(249).hide},function(e,t,n){var i=n(1),o=n(13).inArray,a=n(3),r=["year","month","day"],s=["year","month","day","hour","minute"];e.exports=function(){var t=function(e,t){var n=e.dataField||e.selector;return"search"===t&&(n=e.displayField||e.calculateDisplayValue||n),n},n=function(e){return"date"===e||"datetime"===e},l=function(e){return i.isDate(e)?[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()]:a.map((""+e).split("/"),function(e,t){return 1===t?Number(e)-1:Number(e)})},u=function(n,i,o){var a,r,s,u=this,c=l(n),d=t(u,o);switch("headerFilter"===o?s=e.exports.getGroupInterval(u)[c.length-1]:"datetime"===u.dataType&&(s="minute"),s){case"year":a=new Date(c[0],0,1),r=new Date(c[0]+1,0,1);break;case"month":a=new Date(c[0],c[1],1),r=new Date(c[0],c[1]+1,1);break;case"quarter":a=new Date(c[0],3*c[1],1),r=new Date(c[0],3*c[1]+3,1);break;case"hour":a=new Date(c[0],c[1],c[2],c[3]),r=new Date(c[0],c[1],c[2],c[3]+1);break;case"minute":a=new Date(c[0],c[1],c[2],c[3],c[4]),r=new Date(c[0],c[1],c[2],c[3],c[4]+1);break;case"second":a=new Date(c[0],c[1],c[2],c[3],c[4],c[5]),r=new Date(c[0],c[1],c[2],c[3],c[4],c[5]+1);break;default:a=new Date(c[0],c[1],c[2]),r=new Date(c[0],c[1],c[2]+1)}switch(i){case"<":return[d,"<",a];case"<=":return[d,"<",r];case">":return[d,">=",r];case">=":return[d,">=",a];case"<>":return[[d,"<",a],"or",[d,">=",r]];default:return[[d,">=",a],"and",[d,"<",r]]}},c=function(n,o,a){var r=t(this,a),s=e.exports.getGroupInterval(this);if("headerFilter"===a&&s&&i.isDefined(n)){var l=(""+n).split("/"),u=Number(l[l.length-1]);return[[r,">=",u],"and",[r,"<",u+s[l.length-1]]]}return[r,o||"=",n]};return{defaultCalculateFilterExpression:function(e,o,a){var r=this,s=t(r,a),l=r.calculateDisplayValue&&"search"===a,d=l&&r.lookup&&r.lookup.dataType||r.dataType,h=null;if("headerFilter"!==a&&"filterBuilder"!==a||null!==e)if("string"!==d||r.lookup&&!l){if("between"===o)return function(e,o){var a,r,s,l=t(this,o);if(Array.isArray(e)&&i.isDefined(e[0])&&i.isDefined(e[1]))return r=[l,">=",e[0]],s=[l,"<=",e[1]],n(this.dataType)&&function(e){return e.getHours()+e.getMinutes()+e.getSeconds()+e.getMilliseconds()<1}(e[1])&&((a=new Date(e[1].getTime())).setDate(e[1].getDate()+1),s=[l,"<",a]),[r,"and",s]}.apply(r,[e,a]);if(n(d)&&i.isDefined(e))return u.apply(r,arguments);if("number"===d)return c.apply(r,arguments);"object"!==d&&(h=[s,o||"=",e])}else h=[s,o||"contains",e];else h=[s,o||"=",null],"string"===d&&(h=[h,"="===o?"or":"and",[s,o||"=",""]]);return h},getGroupInterval:function(e){var t,a=[],l=["year","month","day","hour","minute","second"],u=e.headerFilter&&e.headerFilter.groupInterval,c="quarter"===u?"month":u;return n(e.dataType)&&null!==u?(a="datetime"===e.dataType?s:r,(t=o(c,l))>=0?((a=l.slice(0,t)).push(u),a):a):i.isDefined(u)?Array.isArray(u)?u:[u]:void 0}}}()},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(12)),r=n(7),s=i(n(5)),l=i(n(37)),u=i(n(19)),c=i(n(154)),d=i(n(31)),h=n(4),p=i(n(84)),f=n(10),g=i(n(1)),_=i(n(3)),m=n(0),v=n(99),y=i(n(16)),b=i(n(38)),x=n(36),w=i(n(327)),C="scroll-container",k="dx-row",S="dx-group-row",I="dx-master-detail-row",T="0.0001px",D="dxCellHintVisible",E={render:function(e){e.container.append(e.content)}},A=function(e,t,n){function i(e){return setTimeout(function(){a=r=null},e)}var a,r,l;s.default.on(t,"touchstart touchend",".dx-row",function(e){clearTimeout(l),"touchstart"===e.type?(a=e.target,r=e.currentTarget,l=i(1e3)):l=i()}),s.default.on(t,n.name,".dx-row",{useNative:e._isNativeClick()},e.createAction(function(t){var i=t.event;a&&(i.target=a,i.currentTarget=r),(0,o.default)(i.target).closest("a").length||(t.rowIndex=e.getRowIndex(i.currentTarget),t.rowIndex>=0&&(t.rowElement=(0,f.getPublicElement)((0,o.default)(i.currentTarget)),t.columns=e.getColumns(),"dxclick"===n.name?e._rowClick(t):e._rowDblClick(t)))}))},O=function(e){return"auto"===e?"":g.default.isNumeric(e)?e+"px":e},P=function(e,t,n){e.style.width=e.style.maxWidth="auto"===t.width?"":n};t.ColumnsView=b.default.View.inherit(w.default).inherit({_createScrollableOptions:function(){var e=this.option("scrolling"),t=this.option("scrolling.useNative"),n=(0,m.extend)({pushBackValue:0},e,{direction:"both",bounceEnabled:!1,useKeyboard:!1});return void 0===t&&(t=!0),"auto"===t?(delete n.useNative,delete n.useSimulatedScrollbar):(n.useNative=!!t,n.useSimulatedScrollbar=!t),n},_updateCell:function(e,t){t.rowType&&this._cellPrepared(e,t)},_createCell:function(e){var t=e.column,n=t.alignment||(0,v.getDefaultAlignment)(this.option("rtlEnabled")),i=a.default.createElement("td");i.style.textAlign=n;var r=(0,o.default)(i);return"data"===e.rowType&&t.headerId&&this.setAria("describedby",t.headerId,r),!g.default.isDefined(t.groupIndex)&&t.cssClass&&r.addClass(t.cssClass),"expand"===t.command&&(r.addClass(t.cssClass),r.addClass(this.addWidgetPrefix("group-space"))),t.colspan>1?r.attr("colSpan",t.colspan):t.isBand||"auto"===t.visibleWidth||this.option("legacyRendering")||!this.option("columnAutoWidth")||((t.width||t.minWidth)&&(i.style.minWidth=O(t.minWidth||t.width)),t.width&&P(i,t,O(t.width))),r},_createRow:function(e){var t=(0,o.default)("<tr>").addClass(k);return this.setAria("role","row",t),t},_createTable:function(e,t){var n=this,i=(0,o.default)("<table>").addClass(n.addWidgetPrefix("table")).addClass(n.addWidgetPrefix("table-fixed"));if(e&&!t?(i.append(n._createColGroup(e)),y.default.real().ios&&i.append((0,o.default)("<thead>").append("<tr>")),n.setAria("role","presentation",i)):n.setAria("hidden",!0,i),this.setAria("role","presentation",(0,o.default)("<tbody>").appendTo(i)),t)return i;d.default.mozilla&&s.default.on(i,"mousedown","td",function(e){e.ctrlKey&&e.preventDefault()}),n.option("cellHintEnabled")&&s.default.on(i,"mousemove",".dx-row > td",this.createAction(function(e){var t=e.event,i=(0,o.default)(t.target),a=(0,o.default)(t.currentTarget),r=a.parent(),s=r.hasClass("dx-data-row"),l=r.hasClass("dx-header-row"),u=r.hasClass(S),c=r.hasClass(I),h=r.hasClass(n.addWidgetPrefix("filter-row")),p=n._columnsController.getVisibleColumns(),f=r.data("options"),_=a.index(),m=f&&f.cells&&f.cells[_],v=m?m.column:p[_],y=d.default.msie?1:0;c||h||s&&(!s||!v||v.cellTemplate)||l&&(!l||!v||v.headerCellTemplate)||u&&(!u||!v||void 0!==v.groupIndex&&v.groupCellTemplate)||(i.data(D)&&(i.removeAttr("title"),i.data(D,!1)),i[0].scrollWidth-i[0].clientWidth-y>0&&!g.default.isDefined(i.attr("title"))&&(i.attr("title",i.text()),i.data(D,!0)))}));var a=function(e){var t,i,a=(0,o.default)(e.currentTarget),r=(0,o.default)(e.target).closest(".dx-field-item-content"),s=a.parent().data("options"),l=s&&s.cells&&s.cells[a.index()];if(a.closest("table").is(e.delegateTarget))return i=(0,m.extend)({},l,{cellElement:(0,f.getPublicElement)(a),event:e,eventType:e.type}),r.length&&((t=r.data("dx-form-item")).column&&(i.column=t.column,i.columnIndex=n._columnsController.getVisibleIndex(i.column.index))),i};return s.default.on(i,"mouseover",".dx-row > td",function(e){var t=a(e);t&&n.executeAction("onCellHoverChanged",t)}),s.default.on(i,"mouseout",".dx-row > td",function(e){var t=a(e);t&&n.executeAction("onCellHoverChanged",t)}),s.default.on(i,u.default.name,".dx-row > td",function(e){var t=a(e);t&&n.executeAction("onCellClick",t)}),s.default.on(i,c.default.name,".dx-row > td",function(e){var t=a(e);t&&n.executeAction("onCellDblClick",t)}),function(e,t){A(e,t,u.default)}(n,i),function(e,t){A(e,t,c.default)}(n,i),i},_isNativeClick:h.noop,_rowClick:h.noop,_rowDblClick:h.noop,_createColGroup:function(e){var t,n,i,a=(0,o.default)("<colgroup>");for(t=0;t<e.length;t++)for(i=e[t].colspan||1,n=0;n<i;n++)a.append(this._createCol(e[t]));return a},_createCol:function(e){var t=e.visibleWidth||e.width;"adaptiveHidden"===t&&(t=T);var n=(0,o.default)("<col>");return p.default.setWidth(n,t),n},renderDelayedTemplates:function(){var e=this._delayedTemplates,t=e.filter(function(e){return!e.async}),n=e.filter(function(e){return e.async});this._delayedTemplates=[],this._renderDelayedTemplatesCore(t),this._renderDelayedTemplatesCoreAsync(n)},_renderDelayedTemplatesCoreAsync:function(e){var t=this;e.length&&(0,r.getWindow)().setTimeout(function(){t._renderDelayedTemplatesCore(e,!0)})},_renderDelayedTemplatesCore:function(e,t){for(var n,i=new Date;e.length;){var r=(n=e.shift()).options,s=r.model,l=a.default.getDocument();if(t&&!(0,o.default)(r.container).closest(l).length||(n.template.render(r),s&&s.column&&this._updateCell(r.container,s)),t&&new Date-i>30){this._renderDelayedTemplatesCoreAsync(e);break}}},_processTemplate:function(e){var t,n,i=this;return e&&e.render&&!g.default.isRenderer(e)?n={allowRenderToDetachedContainer:e.allowRenderToDetachedContainer,render:function(t){e.render(t.container,t.model)}}:g.default.isFunction(e)?n={render:function(t){var n=e((0,f.getPublicElement)(t.container),t.model);n&&(n.nodeType||g.default.isRenderer(n))&&t.container.append(n)}}:(t=g.default.isString(e)?e:(0,o.default)(e).attr("id"))?(i._templatesCache[t]||(i._templatesCache[t]=i.getTemplate(e)),n=i._templatesCache[t]):n=i.getTemplate(e),n},renderTemplate:function(e,t,n,i){var o,a=this,r=a._processTemplate(t,n),s=n.column,l="data"===n.rowType;if(r){if(n.component=a.component,o=s&&(s.renderAsync&&l||a.option("renderAsync")&&(!1!==s.renderAsync&&(s.command||s.showEditorAlways)&&l||"filter"===n.rowType)),(r.allowRenderToDetachedContainer||i)&&!o)return r.render({container:e,model:n}),!0;a._delayedTemplates.push({template:r,options:{container:e,model:n},async:o})}return!1},_getBodies:function(e){return(0,o.default)(e).children("tbody").not(".dx-header").not(".dx-footer")},_wrapRowIfNeed:function(e,t){var n=this.option("rowTemplate")&&this._getBodies(this._tableElement||e);if(n&&n.filter("."+k).length){var i=(0,o.default)("<tbody>").addClass(t.attr("class"));return this.setAria("role","presentation",i),i.append(t)}return t},_appendRow:function(e,t,n){(n=n||E).render({content:t,container:e})},_resizeCore:function(){var e=this,t=e._scrollLeft;t>=0&&(e._scrollLeft=0,e.scrollTo({left:t}))},_renderCore:function(e){var t=this.element().parent();t&&!t.parent().length||this.renderDelayedTemplates(e)},_renderTable:function(e){var t,n=this;(e=e||{}).columns=n._columnsController.getVisibleColumns();var i=e.change&&e.change.changeType;return t=n._createTable(e.columns,"append"===i||"prepend"===i||"update"===i),n._renderRows(t,e),t},_renderRows:function(e,t){var n,i=this._getRows(t.change),o=t.change&&t.change.columnIndices||[];for(n=0;n<i.length;n++)this._renderRow(e,(0,m.extend)({row:i[n],columnIndices:o[n]},t))},_renderRow:function(e,t){var n,i,o=this;t.columnIndices||(t.row.cells=[]),n=o._createRow(t.row),i=o._wrapRowIfNeed(e,n),o._renderCells(n,t),o._appendRow(e,i);var a=(0,m.extend)({columns:t.columns},t.row);o._addWatchMethod(a,t.row),o._rowPrepared(i,a)},_renderCells:function(e,t){var n,i=0,o=t.row,a=t.columns;for(n=0;n<a.length;n++)(!t.columnIndices||t.columnIndices.indexOf(n)>=0)&&this._renderCell(e,(0,m.extend)({column:a[n],columnIndex:i,value:o.values&&o.values[i],oldValue:o.oldValues&&o.oldValues[i]},t)),a[n].colspan>1?i+=a[n].colspan:i++},_updateCells:function(e,t,n){var i=e.children(),o=t.children(),a=this.option("highlightChanges"),r=this.addWidgetPrefix("cell-updated-animation");n.forEach(function(e,t){var n=i.eq(e),s=o.eq(t);n.replaceWith(s),a&&!s.hasClass("dx-command-expand")&&s.addClass(r)}),function(e,t){if(e&&t){var n,i,o=e.attributes,a=t.attributes;for(i=0;i<o.length;i++)n=o[i].nodeName,t.hasAttribute(n)||e.removeAttribute(n);for(i=0;i<a.length;i++)e.setAttribute(a[i].nodeName,a[i].nodeValue)}}(e.get(0),t.get(0))},_setCellAriaAttributes:function(e,t){"freeSpace"!==t.rowType&&(this.setAria("selected",!1,e),this.setAria("role","gridcell",e),this.setAria("colindex",t.columnIndex+1,e))},_renderCell:function(e,t){var n,i=this,o=i._getCellOptions(t);return t.columnIndices?t.row.cells&&(t.row.cells[o.columnIndex]=o):t.row.cells.push(o),n=i._createCell(o),i._setCellAriaAttributes(n,o),i._renderCellContent(n,o),e.get(0).appendChild(n.get(0)),n},_renderCellContent:function(e,t){var n=this._getCellTemplate(t);n&&!this.renderTemplate(e,n,t)||this._updateCell(e,t)},_getCellTemplate:function(){},_getRows:function(){return[]},_getCellOptions:function(e){var t={column:e.column,columnIndex:e.columnIndex,rowType:e.row.rowType};return this._addWatchMethod(t),t},_addWatchMethod:function(e,t){if(this.option("repaintChangesOnly")){var n=[];return(t=t||e).watch=t.watch||function(e,i){var o=e(t.data),a=function(){var n=e(t.data);JSON.stringify(o)!==JSON.stringify(n)&&(i(n,o),o=n)};n.push(a);return function(){var e=n.indexOf(a);e>=0&&n.splice(e,1)}},t.update=t.update||function(t){this.data=e.data=t.data,this.rowIndex=e.rowIndex=t.rowIndex,this.dataIndex=e.dataIndex=t.dataIndex,this.isExpanded=e.isExpanded=t.isExpanded,e.row&&(e.row=t),n.forEach(function(e){e()})},t!==e&&(e.watch=t.watch.bind(t)),e}},_cellPrepared:function(e,t){t.cellElement=(0,f.getPublicElement)((0,o.default)(e)),this.executeAction("onCellPrepared",t)},_rowPrepared:function(e,t){l.default.data(e.get(0),"options",t),t.rowElement=(0,f.getPublicElement)(e),this.executeAction("onRowPrepared",t)},_columnOptionChanged:function(e){var t=e.optionNames;if((0,x.checkChanges)(t,["width","visibleWidth"])){var n=this._columnsController.getVisibleColumns(),i=_.default.map(n,function(e){var t=e.visibleWidth||e.width;return g.default.isDefined(t)?t:"auto"});this.setColumnWidths(i)}else this._requireReady||this.render()},getCellIndex:function(e){return e.length?e[0].cellIndex:-1},getTableElements:function(){return this._tableElement||(0,o.default)()},_getTableElement:function(){return this._tableElement},_setTableElement:function(e){this._tableElement=e},optionChanged:function(e){switch(this.callBase(e),e.name){case"cellHintEnabled":case"onCellPrepared":case"onRowPrepared":case"onCellHoverChanged":this._invalidate(!0,!0),e.handled=!0}},init:function(){var e=this;e._scrollLeft=-1,e._columnsController=e.getController("columns"),e._dataController=e.getController("data"),e._delayedTemplates=[],e._templatesCache={},e.createAction("onCellClick"),e.createAction("onRowClick"),e.createAction("onCellDblClick"),e.createAction("onRowDblClick"),e.createAction("onCellHoverChanged",{excludeValidators:["disabled","readOnly"]}),e.createAction("onCellPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),e.createAction("onRowPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering",afterExecute:function(t){e._afterRowPrepared(t)}}),e._columnsController.columnsChanged.add(e._columnOptionChanged.bind(e)),e._dataController&&e._dataController.changed.add(e._handleDataChanged.bind(e))},_afterRowPrepared:h.noop,_handleDataChanged:function(){},callbackNames:function(){return["scrollChanged"]},scrollTo:function(e){var t=this,n=t.element(),i=n&&n.children("."+t.addWidgetPrefix(C)).not("."+t.addWidgetPrefix("content-fixed"));t._skipScrollChanged=!1,g.default.isDefined(e)&&g.default.isDefined(e.left)&&t._scrollLeft!==e.left&&(t._scrollLeft=e.left,i&&i.scrollLeft(Math.round(e.left)),t._skipScrollChanged=!0)},_wrapTableInScrollContainer:function(e){var t,n=this;return t=(0,o.default)("<div>"),s.default.on(t,"scroll",function(){!n._skipScrollChanged&&n.scrollChanged.fire({left:t.scrollLeft()},n.name),n._skipScrollChanged=!1}),t.addClass(n.addWidgetPrefix("content")).addClass(n.addWidgetPrefix(C)).append(e).appendTo(n.element()),n.setAria("role","presentation",t),t},_updateContent:function(e){this._setTableElement(e),this._wrapTableInScrollContainer(e)},_findContentElement:h.noop,_getWidths:function(e){var t,n,i=[],o=this.option("legacyRendering");return e&&_.default.each(e,function(e,a){t=a.offsetWidth,a.getBoundingClientRect&&((n=a.getBoundingClientRect()).width>t-1&&(t=o?Math.ceil(n.width):n.width)),i.push(t)}),i},getColumnWidths:function(e){var t,n,i=[];if((this.option("forceApplyBindings")||h.noop)(),e=e||this._getTableElement()){t=e.children("tbody").children();for(var o=0;o<t.length;o++){var a=t.eq(o),r="none"!==a.get(0).style.display&&!a.hasClass("dx-state-invisible");if(!a.is("."+S)&&!a.is("."+I)&&r){n=a.children("td");break}}i=this._getWidths(n)}return i},getVisibleColumnIndex:function(e,t){return e},setColumnWidths:function(e,t,n,i){var o,a,r,s,l,u=this.option("columnAutoWidth"),c=this.option("legacyRendering");if((t=t||this._getTableElement())&&t.length&&e)for(l=0,o=t.children("colgroup").children("col"),p.default.setWidth(o,"auto"),n=n||this.getColumns(null,t),a=0;a<n.length;a++){if(!c&&u&&!i&&((r=n[a].width)&&!n[a].command)){r=n[a].visibleWidth||r,r=O(r),s=O(n[a].minWidth||r);for(var d=d||t.children().children(".dx-row").not("."+S).not("."+I),h=0;h<d.length;h++){var f=this.getVisibleColumnIndex(a,h),_=d[h].cells[f];_&&(P(_,n[a],r),_.style.minWidth=s)}}n[a].colspan?l+=n[a].colspan:("adaptiveHidden"===(r=e[l])&&(r=T),"number"==typeof r&&(r=r.toFixed(3)+"px"),p.default.setWidth(o.eq(l),g.default.isDefined(r)?r:"auto"),l++)}},getCellElements:function(e){return this._getCellElementsCore(e)},_getCellElementsCore:function(e){return this._getRowElements().eq(e).children()},_getCellElement:function(e,t){var n,i=this.getCellElements(e),o=this._getVisibleColumnIndex(i,e,t);if(i.length&&o>=0&&(n=i.eq(o)),n&&n.length)return n},_getRowElement:function(e){var t=this,n=(0,o.default)(),i=t.getTableElements();if(_.default.each(i,function(i,a){n=n.add(t._getRowElements((0,o.default)(a)).eq(e))}),n.length)return n},getCellElement:function(e,t){return(0,f.getPublicElement)(this._getCellElement(e,t))},getRowElement:function(e){var t=this._getRowElement(e),n=[];if(t&&!(0,f.getPublicElement)(t).get)for(var i=0;i<t.length;i++)n.push(t[i]);else n=t;return n},_getVisibleColumnIndex:function(e,t,n){var i;return g.default.isString(n)?(i=this._columnsController.columnOption(n,"index"),this._columnsController.getVisibleIndex(i)):n},getColumnElements:function(){},getColumns:function(e){return this._columnsController.getVisibleColumns(e)},getCell:function(e,t){var n,i=t||this._getRowElements();if(i.length>0&&e.rowIndex>=0&&("virtual"!==this.option("scrolling.mode")&&(e.rowIndex=e.rowIndex<i.length?e.rowIndex:i.length-1),(n=this.getCellElements(e.rowIndex))&&n.length>0))return n.eq(n.length>e.columnIndex?e.columnIndex:n.length-1)},getRowsCount:function(){var e=this._getTableElement();return e&&1===e.length?e[0].rows.length:0},_getRowElements:function(e){if(e=e||this._getTableElement()){var t=this.option("rowTemplate")&&e.find("> tbody."+k);return t&&t.length?t:e.find("> tbody > ."+k+", > ."+k)}return(0,o.default)()},getRowIndex:function(e){return this._getRowElements().index(e)},getBoundingRect:function(){},getName:function(){},setScrollerSpacing:function(e){var t=this.element(),n=this.option("rtlEnabled");t&&t.css(n?{paddingLeft:e}:{paddingRight:e})},isScrollbarVisible:function(e){var t=this.element(),n=this._tableElement;return!(!t||!n)&&(e?n.outerWidth()-t.width()>0:n.outerHeight()-t.height()>0)}})},function(e,t,n){function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){return void 0===e?k||x:(e=(0,h.normalizeEnum)(e),void(k=e in C?e:void 0))}function a(e,t){e=function(e,t){var n=e||(void 0===k?t:o());return"default"===n&&f.default.log("W0016",'"palette"',"Default","18.1",'Use the "Office" value instead.'),n}(e,(t=t||{}).themeDefault);var n,i=t.type;return v(e)?e.slice(0):(y(e)&&(n=C[(0,h.normalizeEnum)(e)]),n||(n=C[o()]),i?n[i].slice(0):n)}function r(e){var t=0;this.next=function(){var n=e[t++];return t===e.length&&this.reset(),n},this.reset=function(){t=0}}function s(e,t){function n(){var t=o.next();a=t?function(e,t){var n,i=[],o=e.length;for(n=0;n<o;++n)i.push(c(e[n],t));return i}(e,t):e.slice(0)}var i=t.useHighlight?b:0,o=new r([0,i,-i]),a=[];return{getColor:function(t){var i=a[t%e.length];return t%e.length==e.length-1&&n(),i},generateColors:function(e){var n=[];e=e||t.count;for(var i=0;i<e;i++)n.push(this.getColor(i));return n},reset:function(){o.reset(),n()}}}function l(e,t){return{getColor:function(t,n){var i=e.length,o=g((n-1)/i+1),a=e[t%i];return o>1?function(e,t,n){var i=new m(e).hsl,o=i.l/100,a=n-1/n,r=o-.5*a,s=o+.5*a,l=(n-1)/2,u=t-l;return r<Math.min(.5,.9*o)&&(r=Math.min(.5,.9*o)),s>Math.max(.8,o+.15*(1-o))&&(s=Math.max(.8,o+.15*(1-o))),u<0?o-=(r-o)*u/l:o+=u/l*(s-o),i.l=100*o,m.prototype.fromHSL(i).toHex()}(a,g(t/i),o):a},generateColors:function(e){var n=[];e=e||t.count;for(var i=0;i<e;i++)n.push(this.getColor(i,e));return n},reset:function(){}}}function u(e,t,n){var i={dispose:function(){this._extensionStrategy=null},getNextColor:function(e){return this._extensionStrategy.getColor(this._currentColor++,e)},generateColors:function(e,t){return this._extensionStrategy.generateColors(e,(t||{}).repeat)},reset:function(){return this._currentColor=0,this._extensionStrategy.reset(),this}},o=((t=t||{}).extensionMode||"").toLowerCase(),r=a(e,{type:t.type||"simpleSet",themeDefault:n});return i._extensionStrategy="alternate"===o?s(r,t):"extrapolate"===o?l(r,t):function(e,t){function n(e,t,n,i){for(var o,a,r=Math.floor(e/t),s=e-t*r,l=n;l<n+e;)a=r,s>0&&(a+=1,s--),o=a>2?Math.floor(a/2):0,i.push(l+o),l+=a;return i.sort(function(e,t){return e-t})}function i(e,t,n){for(var i=0,o=t=(n+t)%n;o<2*n;o+=1){var a=(n+o)%n;if(e[a])return[e[a],i];i++}}function o(e,t){for(var n=0;n<t;n++)if(!e[n]){var o=e[n-1];if(!o)continue;var a=i(e,n,t),r=new m(a[0]);o=new m(o);for(var s=0;s<a[1];s++,n++)e[n]=o.blend(r,(s+1)/(a[1]+1)).toHex()}return e}function a(i){if(i<=r)return e;var a=[],s=r-2,l=0,u=[];u=t.keepLastColorInEnd?n(i-2,s,1,[0,i-1]):n(i-1,r-1,1,[0]);for(var c=0;c<i;c++)u.indexOf(c)>-1&&(a[c]=e[l++]);return o(a,i)}var r=e.length,s=[];return{getColor:function(e,n){return n=n||t.count||r,s.length!==n&&(s=a(n)),s[e%n]},generateColors:function(e,n){if(e=e||t.count||r,n&&e>r){for(var i=a(r),o=0;o<e-r;o++)i.push(i[o]);return i}return r>0?a(e).slice(0,e):[]},reset:function(){}}}(r,t),i.reset(),i}function c(e,t){var n=new m(e).alter(t),i=function(e){return.3*e.r+.59*e.g+.11*e.b}(n);return(i>200||i<55)&&(n=new m(e).alter(-t/2)),n.toHex()}var d;Object.defineProperty(t,"__esModule",{value:!0}),t._DEBUG_palettes=void 0,t.currentPalette=o,t.generateColors=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{keepLastColorInEnd:!1};return n.type=n.baseColorSet,n.extensionMode=n.paletteExtensionMode,u(e,n).generateColors(t)},t.getPalette=a,t.registerPalette=function(e,t){var n,i={};v(t)?i.simpleSet=t.slice(0):t&&(i.simpleSet=v(t.simpleSet)?t.simpleSet.slice(0):void 0,i.indicatingSet=v(t.indicatingSet)?t.indicatingSet.slice(0):void 0,i.gradientSet=v(t.gradientSet)?t.gradientSet.slice(0):void 0,i.accentColor=t.accentColor),i.accentColor||(i.accentColor=i.simpleSet&&i.simpleSet[0]),(i.simpleSet||i.indicatingSet||i.gradientSet)&&(n=(0,h.normalizeEnum)(e),(0,p.extend)(C[n]=C[n]||{},i))},t.getAccentColor=function(e,t){return(e=a(e,{themeDefault:t})).accentColor||e[0]},t.createPalette=u,t.getDiscretePalette=function(e,t,n){var i=t>0?function(e,t){function n(e){var t=a*e,n=g(t),i=_(t);s.push(r[n].blend(r[i],t-n).toHex())}var i,o=t-1,a=e.length-1,r=[],s=[];for(i=0;i<=a;++i)r.push(new m(e[i]));if(o>0)for(i=0;i<=o;++i)n(i/o);else n(.5);return s}(a(e,{type:"gradientSet",themeDefault:n}),t):[];return{getColor:function(e){return i[e]||null}}},t.getGradientPalette=function(e,t){var n=a(e,{type:"gradientSet",themeDefault:t}),i=new m(n[0]),o=new m(n[1]);return{getColor:function(e){return 0<=e&&e<=1?i.blend(o,e).toHex():null}}};var h=n(11),p=n(0),f=function(e){return e&&e.__esModule?e:{default:e}}(n(21)),g=Math.floor,_=Math.ceil,m=n(90),v=Array.isArray,y=n(1).isString,b=50,x="material",w={simpleSet:["#5f8b95","#ba4d51","#af8a53","#955f71","#859666","#7e688c"],indicatingSet:["#a3b97c","#e1b676","#ec7f83"],gradientSet:["#5f8b95","#ba4d51"],accentColor:"#ba4d51"},C=(i(d={},x,{simpleSet:["#1db2f5","#f5564a","#97c95c","#ffc720","#eb3573","#a63db8"],indicatingSet:["#97c95c","#ffc720","#f5564a"],gradientSet:["#1db2f5","#97c95c"],accentColor:"#1db2f5"}),i(d,"default",w),i(d,"office",w),i(d,"harmony light",{simpleSet:["#fcb65e","#679ec5","#ad79ce","#7abd5c","#e18e92","#b6d623","#b7abea","#85dbd5"],indicatingSet:["#b6d623","#fcb65e","#e18e92"],gradientSet:["#7abd5c","#fcb65e"],accentColor:"#679ec5"}),i(d,"soft pastel",{simpleSet:["#60a69f","#78b6d9","#6682bb","#a37182","#eeba69","#90ba58","#456c68","#7565a4"],indicatingSet:["#90ba58","#eeba69","#a37182"],gradientSet:["#78b6d9","#eeba69"],accentColor:"#60a69f"}),i(d,"pastel",{simpleSet:["#bb7862","#70b3a1","#bb626a","#057d85","#ab394b","#dac599","#153459","#b1d2c6"],indicatingSet:["#70b3a1","#dac599","#bb626a"],gradientSet:["#bb7862","#70b3a1"],accentColor:"#bb7862"}),i(d,"bright",{simpleSet:["#70c92f","#f8ca00","#bd1550","#e97f02","#9d419c","#7e4452","#9ab57e","#36a3a6"],indicatingSet:["#70c92f","#f8ca00","#bd1550"],gradientSet:["#e97f02","#f8ca00"],accentColor:"#e97f02"}),i(d,"soft",{simpleSet:["#cbc87b","#9ab57e","#e55253","#7e4452","#e8c267","#565077","#6babac","#ad6082"],indicatingSet:["#9ab57e","#e8c267","#e55253"],gradientSet:["#9ab57e","#e8c267"],accentColor:"#565077"}),i(d,"ocean",{simpleSet:["#75c099","#acc371","#378a8a","#5fa26a","#064970","#38c5d2","#00a7c6","#6f84bb"],indicatingSet:["#c8e394","#7bc59d","#397c8b"],gradientSet:["#acc371","#38c5d2"],accentColor:"#378a8a"}),i(d,"vintage",{simpleSet:["#dea484","#efc59c","#cb715e","#eb9692","#a85c4c","#f2c0b5","#c96374","#dd956c"],indicatingSet:["#ffe5c6","#f4bb9d","#e57660"],gradientSet:["#efc59c","#cb715e"],accentColor:"#cb715e"}),i(d,"violet",{simpleSet:["#d1a1d1","#eeacc5","#7b5685","#7e7cad","#a13d73","#5b41ab","#e287e2","#689cc1"],indicatingSet:["#d8e2f6","#d0b2da","#d56a8a"],gradientSet:["#eeacc5","#7b5685"],accentColor:"#7b5685"}),i(d,"carmine",{simpleSet:["#fb7764","#73d47f","#fed85e","#d47683","#dde392","#757ab2"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#fb7764","#73d47f"],accentColor:"#f05b41"}),i(d,"dark moon",{simpleSet:["#4ddac1","#f4c99a","#80dd9b","#f998b3","#4aaaa0","#a5aef1"],indicatingSet:["#59d8a4","#f0ad4e","#f9517e"],gradientSet:["#4ddac1","#f4c99a"],accentColor:"#3debd3"}),i(d,"soft blue",{simpleSet:["#7ab8eb","#97da97","#facb86","#e78683","#839bda","#4db7be"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#7ab8eb","#97da97"],accentColor:"#7ab8eb"}),i(d,"dark violet",{simpleSet:["#9c63ff","#64c064","#eead51","#d2504b","#4b6bbf","#2da7b0"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#9c63ff","#64c064"],accentColor:"#9c63ff"}),i(d,"green mist",{simpleSet:["#3cbab2","#8ed962","#5b9d95","#efcc7c","#f1929f","#4d8dab"],indicatingSet:["#72d63c","#ffc852","#f74a5e"],gradientSet:["#3cbab2","#8ed962"],accentColor:"#3cbab2"}),d),k=void 0},function(e,t,n){function i(e){return e&&"string"!=typeof e}function o(e){return U.createElementNS("http://www.w3.org/2000/svg",e)}function a(e,t){return null!==e?"url("+(t?Z.location.href.split("#")[0]:"")+"#"+e+")":e}function r(e,t){var n;for(n in t)e[n]=t[n];return e}function s(e,t){return e=e.toString().split("e"),+((e=(e=re(+(e[0]+"e"+(e[1]?+e[1]+t:t)))).toString().split("e"))[0]+"e"+(e[1]?+e[1]-t:-t))}function l(e,t,n,i,o,a){var r,l=!0,u=s(a,3)-s(o,3);return u&&(ue(u)%360==0&&(o=0,a=360,r=!0,a-=.01),o>360&&(o%=360),a>360&&(a%=360),o>a&&(o-=360),l=!1),o*=_e,a*=_e,[e,t,ie(i,n),oe(i,n),le(o),se(o),le(a),se(a),r,ae(ue(a-o)/ce)%2?"1":"0",l]}function u(e,t){var n=[["M",0,0]];switch(t){case"line":n=c(e);break;case"area":n=c(e,!0);break;case"bezier":n=d(e);break;case"bezierarea":n=d(e,!0)}return n}function c(e,t){return h(e,p,t)}function d(e,t){return h(e,f,t)}function h(e,t,n){var i,o,a=[];if(e[0]&&e[0].length)for(i=0,o=e.length;i<o;++i)t(e[i],n,a);else t(e,n,a);return a}function p(e,t,n){var i=0,o=n.length,a=o,r=(e||[]).length;if(r){if(void 0!==e[0].x)for(;i<r;)n[a++]=["L",e[i].x,e[i++].y];else for(;i<r;)n[a++]=["L",e[i++],e[i++]];n[o][0]="M"}else n[a]=["M",0,0];return t&&n.push(["Z"]),n}function f(e,t,n){var i,o=n.length,a=(e||[]).length;if(a)if(void 0!==e[0].x)for(n[o++]=["M",e[0].x,e[0].y],i=1;i<a;)n[o++]=["C",e[i].x,e[i++].y,e[i].x,e[i++].y,e[i].x,e[i++].y];else for(n[o++]=["M",e[0],e[1]],i=2;i<a;)n[o++]=["C",e[i++],e[i++],e[i++],e[i++],e[i++],e[i++]];else n[o]=["M",0,0];return t&&n.push(["Z"]),n}function g(e,t){var n=e[e.length-2],i=e[e.length-1];switch(t){case"line":case"area":e[0]="L";break;case"bezier":case"bezierarea":e[0]="C",e[1]=e[3]=e[5]=n,e[2]=e[4]=e[6]=i}}function _(e,t,n){var i=e[e.length-1].slice(),o=e.length;for(g(i,n);o<t.length;o++)e[o]=i.slice(0)}function m(e,t,n){var i,o,a,r,s=e.length,l=t.length;if((s-1)%2==0&&(l-1)%2==0){i=(s-1)/2-1,a=(o=e.slice(0,i+1))[o.length-1].slice(0),r=e.slice(i+1)[0].slice(0),g(a,n),g(r,n);for(var u=i;u<(l-1)/2-1;u++)e.splice(u+1,0,a),e.splice(u+3,0,r)}}function v(e,t){var n,i,o=e._styles,a="";for(n in t=t||{})i=t[n],de(i)&&(i+="number"!=typeof i||ye[n]?"":"px",o[n]=""!==i?i:null);for(n in o)(i=o[n])&&(a+=n+":"+i+";");return a&&e.element.setAttribute("style",a),e}function y(e,t){var n=e.element,i=e.attr(t);i&&-1!==i.indexOf("DevExpress")&&(n.removeAttribute(t),n.setAttribute(t,a(i,e.renderer.pathModified)))}function b(e,t){t=t||{};var n,o,s,l,u,c,d=e._settings,h={},p=e.element,f=e.renderer,g=f.rtl;if(!i(t))return t in d?d[t]:t in Pe?Pe[t]:0;for(n in r(h,t),h)if(void 0!==(o=h[n])){if(d[n]=o,"align"===n)n="text-anchor",o={left:g?"end":"start",center:"middle",right:g?"start":"end"}[o]||null;else{if("dashStyle"===n){l=!0;continue}if(n===we)l=!0;else if(!o||"fill"!==n&&"clip-path"!==n&&"filter"!==n||-1===o.indexOf("DevExpress")){if(/^(translate(X|Y)|rotate[XY]?|scale(X|Y)|sharp|sharpDirection)$/i.test(n)){s=!0;continue}/^(x|y|d)$/i.test(n)&&(s=!0)}else e._addFixIRICallback(),o=a(o,f.pathModified)}null===o?p.removeAttribute(n):p.setAttribute(n,o)}if(l&&"dashStyle"in d)if(o=d.dashStyle,u=("_originalSW"in e?e._originalSW:d[we])||1,n="stroke-dasharray",""===(o=null===o?"":pe(o))||"solid"===o||o===De)e.element.removeAttribute(n);else{for(c=(o=o.replace(/longdash/g,"8,3,").replace(/dash/g,"4,3,").replace(/dot/g,"1,3,").replace(/,$/,"").split(",")).length;c--;)o[c]=me(o[c])*u;e.element.setAttribute(n,o.join(","))}return s&&e._applyTransformation(),e}function x(e,t,n){var i,a,r;for(i=0,a=e.length;i<a;++i)(r=e[i])[n]=o("tspan"),r[n].appendChild(U.createTextNode(r.value)),r.style&&v({element:r[n],_styles:{}},r.style),r.className&&r[n].setAttribute("class",r.className),t.appendChild(r[n])}function w(){this._hasEllipsis&&this.attr({text:this._settings.text})}function C(e){var t=void 0;return e&&((t=e.cloneNode()).removeAttribute("y"),t.removeAttribute("x")),t||e}function k(e,t,n,i){var o,a;if(n<=t&&i>t)for(o=1,a=e.value.length;o<=a;++o)if(n+e.tspan.getSubStringLength(0,o)>t)return o-1}function S(e){return e.value.length?e.tspan.getSubStringLength(0,e.value.length):0}function I(e,t){return t.hideOverflowEllipsis&&0===e?"":Ae}function T(e,t,n){var i=I(t,n);if(e.value.length&&e.tspan.parentNode)for(var o=e.value.length-1;o>=1;o--){if(e.startBox+e.tspan.getSubStringLength(0,o)<t){E(e,o,i);break}1===o&&E(e,0,i)}}function D(e,t,n,i){var o=e.value,a=void 0;"none"!==i.wordWrap&&(a="normal"===i.wordWrap?function(e,t){for(var n=e.startBox>0?[0]:[],i=e.value.split("").reduce(function(e,t,n){return" "===t&&e.push(n),e},n),o=0;void 0!==i[o+1]&&e.startBox+e.tspan.getSubStringLength(0,i[o+1])<t;)o++;return i[o]}(e,t):function(e,t){for(var n=0;n<e.value.length-1;n++)if(e.startBox+e.tspan.getSubStringLength(0,n+1)>t)return n}(e,t));var s=[],l=void 0;if(isFinite(a)){E(e,a,"");var u=" "===o[a]?1:0,c=o.slice(a+u);if(c.length){var d=C(e.tspan);if(d.textContent=c,e.tspan.parentNode.appendChild(d),(l=r(r({},e),{value:c,startBox:0,height:0,tspan:d,stroke:C(e.stroke),endBox:d.getSubStringLength(0,c.length)})).stroke&&(l.stroke.textContent=c),l.endBox>t&&!(s=D(l,t,n,i)).length)return[]}}if(e.value.length){if("ellipsis"===i.textOverflow&&e.tspan.getSubStringLength(0,e.value.length)>t&&T(e,n,i),"hide"===i.textOverflow&&e.tspan.getSubStringLength(0,e.value.length)>t)return[]}else e.tspan.parentNode.removeChild(e.tspan);var h=[];return l&&h.push(l),[{commonLength:o.length,parts:h}].concat(s)}function E(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ae,i=e.value.substr(0,t)+n;e.value=e.tspan.textContent=i,e.stroke&&(e.stroke.textContent=i),n===Ae&&(e.hasEllipsis=!0)}function A(e){e.tspan.parentNode&&e.tspan.parentNode.removeChild(e.tspan),e.stroke&&e.stroke.parentNode&&e.stroke.parentNode.removeChild(e.stroke)}function O(e,t,n){e.tspan.setAttribute(t,n),e.stroke&&e.stroke.setAttribute(t,n)}function P(e,t){return e.inherits?M(e.height,t):e.height||t}function B(e){if(e._texts){var t,n,i=e._texts,o=e._settings.x,a=e._getLineHeight(),r=i[0];for(O(r,"x",o),O(r,"y",e._settings.y),t=1,n=i.length;t<n;++t)if(r=i[t],ve(r.height)>=0){O(r,"x",o),O(r,"dy",P(r,a))}}}function M(e,t){var n=ve(e),i=ve(t),o=n||Ee,a=i||Ee;return o>a?isNaN(n)?o:e:isNaN(i)?a:t}function R(e,t,n,i){n=n||{};var o,a,s=e.renderer,l=e._settings,u={},c={translateX:0,translateY:0,scaleX:1,scaleY:1,rotate:0,rotateX:0,rotateY:0};if(i&&(n.complete=i),s.animationEnabled()){for(o in t)a=t[o],/^(translate(X|Y)|rotate[XY]?|scale(X|Y))$/i.test(o)?(u.transform=u.transform||{from:{},to:{}},u.transform.from[o]=o in l?Number(l[o].toFixed(3)):c[o],u.transform.to[o]=a):u[o]="arc"===o||"segments"===o?a:{from:o in l?l[o]:parseFloat(e.element.getAttribute(o)||0),to:a};s.animateElement(e,u,r(r({},s._animation),n))}else n.step&&n.step.call(e,1,1),n.complete&&n.complete.call(e),e.attr(t);return e}function F(e,t){var n={is:!1,name:t.name||t,after:t.after};return e?n.to=e:n.virtual=!0,n}function V(e,t,n){var i=this;i.renderer=e,i.element=o(t),i._settings={},i._styles={},"path"===t&&(i.type=n||"line")}function L(e){Ve.remove(e)}function H(e,t){V.call(this,e,"path",t)}function z(e){V.call(this,e,"path","arc")}function N(e){V.call(this,e,"rect")}function $(e){V.call(this,e,"text"),this.css({"white-space":"pre"})}function W(e,t){var n,i;for(n=t;i=e[n];++n)i._link.i=n}function G(e,t){var n,i,o=t._links,a=e._link.after=e._link.after||t._linkAfter;if(a){for(n=0;(i=o[n])&&i._link.name!==a;++n);if(i)for(++n;(i=o[n])&&i._link.after===a;++n);}else n=o.length;o.splice(n,0,e),W(o,n)}function j(e){var t=this;t.root=t._createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",fill:De,stroke:De,"stroke-width":0}).attr({class:e.cssClass}).css({"line-height":"normal","-ms-user-select":De,"-moz-user-select":De,"-webkit-user-select":De,"-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)",display:"block",overflow:"hidden"}),t._init(),t.pathModified=!!e.pathModified,t._$container=K(e.container),t.root.append({element:e.container}),t.fixPlacement(),t._locker=0,t._backed=!1}var q=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,o=!1,a=void 0;try{for(var r,s=e[Symbol.iterator]();!(i=(r=s.next()).done)&&(n.push(r.value),!t||n.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),K=n(2),U=n(12),Y=n(7),X=n(70),Z=Y.getWindow(),Q=n(5),J=n(31),ee=n(184).getSvgMarkup,te=n(758),ne=Math,ie=ne.min,oe=ne.max,ae=ne.floor,re=ne.round,se=ne.sin,le=ne.cos,ue=ne.abs,ce=ne.PI,de=n(1).isDefined,he=n(11),pe=he.normalizeEnum,fe=he.normalizeBBox,ge=he.rotateBBox,_e=ce/180,me=parseInt,ve=parseFloat,ye={"column-count":!0,"fill-opacity":!0,"flex-grow":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,widows:!0,"z-index":!0,zoom:!0},be="text",xe="stroke",we="stroke-width",Ce="stroke-opacity",ke="font-size",Se="font-style",Ie="font-weight",Te="text-decoration",De="none",Ee=12,Ae="...",Oe=Object.create?function(e){return Object.create(e)}:function(e){var t=function(){};return t.prototype=e,new t},Pe={scaleX:1,scaleY:1,"pointer-events":""},Be=X(function(){var e=U.createElement("div");return e.style.left="-9999px",e.style.position="absolute",{backupContainer:e,backupCounter:0}}),Me=function(){var e=1;return function(){return"DevExpress_"+e++}}(),Re={full:De,lefttop:"xMinYMin",leftcenter:"xMinYMid",leftbottom:"xMinYMax",centertop:"xMidYMin",center:"xMidYMid",centerbottom:"xMidYMax",righttop:"xMaxYMin",rightcenter:"xMaxYMid",rightbottom:"xMaxYMax"},Fe=function(e,t,n,i,o,a,r,s,l,u){return["M",(e+i*o).toFixed(5),(t-i*a).toFixed(5),"A",i.toFixed(5),i.toFixed(5),0,u,0,(e+i*r).toFixed(5),(t-i*s).toFixed(5),l?"M":"L",(e+n*r).toFixed(5),(t-n*s).toFixed(5),"A",n.toFixed(5),n.toFixed(5),0,u,1,(e+n*o).toFixed(5),(t-n*a).toFixed(5),"Z"].join(" ")};t.SvgElement=V,V.prototype={constructor:V,_getJQElement:function(){return this._$element||(this._$element=K(this.element))},_addFixIRICallback:function(){var e=this,t=function(){y(e,"fill"),y(e,"clip-path"),y(e,"filter")};e.element._fixFuncIri=t,t.renderer=e.renderer,Ve.add(t),e._addFixIRICallback=function(){}},_clearChildrenFuncIri:function(){!function e(t){var n;for(n=0;n<t.childNodes.length;n++)L(t.childNodes[n]._fixFuncIri),e(t.childNodes[n])}(this.element)},dispose:function(){return L(this.element._fixFuncIri),this._clearChildrenFuncIri(),this._getJQElement().remove(),this},append:function(e){return(e||this.renderer.root).element.appendChild(this.element),this},remove:function(){var e=this.element;return e.parentNode&&e.parentNode.removeChild(e),this},enableLinks:function(){return this._links=[],this},virtualLink:function(e){return G({_link:F(null,e)},this),this},linkAfter:function(e){return this._linkAfter=e,this},linkOn:function(e,t){return this._link=F(e,t),G(this,e),this},linkOff:function(){return function(e){var t,n=e._link.to._links;for(t=0;n[t]!==e;++t);n.splice(t,1),W(n,t)}(this),this._link=null,this},linkAppend:function(){var e,t,n=this._link,i=n.to._links;for(e=n.i+1;(t=i[e])&&!t._link.is;++e);return this._insert(n.to,t),n.is=!0,this},_insert:function(e,t){e.element.insertBefore(this.element,t?t.element:null)},linkRemove:function(){return this.remove(),this._link.is=!1,this},clear:function(){return this._clearChildrenFuncIri(),this._getJQElement().empty(),this},toBackground:function(){var e=this.element,t=e.parentNode;return t&&t.insertBefore(e,t.firstChild),this},toForeground:function(){var e=this.element,t=e.parentNode;return t&&t.appendChild(e),this},attr:function(e){return b(this,e)},smartAttr:function(e){var t=this;return e.hatching&&"none"!==pe(e.hatching.direction)?((e=r({},e)).fill=t._hatching=t.renderer.lockHatching(e.fill,e.hatching,t._hatching),delete e.hatching):t._hatching&&(t.renderer.releaseHatching(t._hatching),t._hatching=null),t.attr(e)},css:function(e){return v(this,e)},animate:function(e,t,n){return R(this,e,t,n)},sharp:function(e,t){return this.attr({sharp:e||!0,sharpDirection:t})},_applyTransformation:function(){var e,t,n=this._settings,i=void 0,o=void 0,a=[],r=n.sharp,s=n.sharpDirection||1,l=n[we]%2,u=!l||"h"!==r&&!0!==r?0:.5*s,c=!l||"v"!==r&&!0!==r?0:.5*s;a.push("translate("+((n.translateX||0)+u)+","+((n.translateY||0)+c)+")"),n.rotate&&(i="rotateX"in n?n.rotateX:n.x,o="rotateY"in n?n.rotateY:n.y,a.push("rotate("+n.rotate+","+(i||0)+","+(o||0)+")")),e=de(n.scaleX),t=de(n.scaleY),(e||t)&&a.push("scale("+(e?n.scaleX:1)+","+(t?n.scaleY:1)+")"),a.length&&this.element.setAttribute("transform",a.join(" "))},move:function(e,t,n,i){var o={};return de(e)&&(o.translateX=e),de(t)&&(o.translateY=t),n?this.animate(o,i):this.attr(o),this},rotate:function(e,t,n,i,o){var a={rotate:e||0};return de(t)&&(a.rotateX=t),de(n)&&(a.rotateY=n),i?this.animate(a,o):this.attr(a),this},_getElementBBox:function(){var e,t=this.element;try{e=t.getBBox&&t.getBBox()}catch(e){}return e||{x:0,y:0,width:t.offsetWidth||0,height:t.offsetHeight||0}},getBBox:function(){var e=this._settings,t=this._getElementBBox();return e.rotate?ge(t,[("rotateX"in e?e.rotateX:e.x)||0,("rotateY"in e?e.rotateY:e.y)||0],-e.rotate):fe(t)},markup:function(){return ee(this.element)},getOffset:function(){return this._getJQElement().offset()},stopAnimation:function(e){var t=this.animation;return t&&t.stop(e),this},setTitle:function(e){var t=o("title");t.textContent=e||"",this.element.appendChild(t)},data:function(e,t){var n,i=this.element;if(void 0!==t)i[e]=t;else for(n in e)i[n]=e[n];return this},on:function(){var e=[this._getJQElement()];return e.push.apply(e,arguments),Q.on.apply(Q,e),this},off:function(){var e=[this._getJQElement()];return e.push.apply(e,arguments),Q.off.apply(Q,e),this},trigger:function(){var e=[this._getJQElement()];return e.push.apply(e,arguments),Q.trigger.apply(Q,e),this}},t.PathSvgElement=H,H.prototype=Oe(V.prototype),r(H.prototype,{constructor:H,attr:function(e){var t,n=this;return i(e)&&(t=(e=r({},e)).segments,"points"in e&&(t=u(e.points,n.type),delete e.points),t&&(e.d=function(e){var t,n,i,o,a=[],r=0,s=e.length;for(t=0;t<s;++t)for(i=0,o=(n=e[t]).length;i<o;++i)a[r++]=n[i];return a.join(" ")}(t),n.segments=t,delete e.segments)),b(n,e)},animate:function(e,t,n){var i,o,a=this,r=a.segments||[];return a.renderer.animationEnabled()&&"points"in e&&(o=function(e,t,n){var i,o,a=e.length,r=t.length,s=-1!==n.indexOf("area")?m:_;if(0===a)for(i=0;i<r;i++)e.push(t[i].slice(0));else a<r?s(e,t,n):a>r&&(o=t.slice(0),s(t,e,n));return o}(r,i=u(e.points,a.type),a.type),e.segments={from:r,to:i,end:o},delete e.points),R(a,e,t,n)}}),t.ArcSvgElement=z,z.prototype=Oe(V.prototype),r(z.prototype,{constructor:z,attr:function(e){var t,n,o,a,s,u,c=this._settings;return i(e)&&("x"in(e=r({},e))||"y"in e||"innerRadius"in e||"outerRadius"in e||"startAngle"in e||"endAngle"in e)&&(c.x=t="x"in e?e.x:c.x,delete e.x,c.y=n="y"in e?e.y:c.y,delete e.y,c.innerRadius=o="innerRadius"in e?e.innerRadius:c.innerRadius,delete e.innerRadius,c.outerRadius=a="outerRadius"in e?e.outerRadius:c.outerRadius,delete e.outerRadius,c.startAngle=s="startAngle"in e?e.startAngle:c.startAngle,delete e.startAngle,c.endAngle=u="endAngle"in e?e.endAngle:c.endAngle,delete e.endAngle,e.d=Fe.apply(null,l(t,n,o,a,s,u))),b(this,e)},animate:function(e,t,n){var i=this,o=i._settings,a={from:{},to:{}};return i.renderer.animationEnabled()&&("x"in e||"y"in e||"innerRadius"in e||"outerRadius"in e||"startAngle"in e||"endAngle"in e)&&(a.from.x=o.x||0,a.from.y=o.y||0,a.from.innerRadius=o.innerRadius||0,a.from.outerRadius=o.outerRadius||0,a.from.startAngle=o.startAngle||0,a.from.endAngle=o.endAngle||0,a.to.x="x"in e?e.x:o.x,delete e.x,a.to.y="y"in e?e.y:o.y,delete e.y,a.to.innerRadius="innerRadius"in e?e.innerRadius:o.innerRadius,delete e.innerRadius,a.to.outerRadius="outerRadius"in e?e.outerRadius:o.outerRadius,delete e.outerRadius,a.to.startAngle="startAngle"in e?e.startAngle:o.startAngle,delete e.startAngle,a.to.endAngle="endAngle"in e?e.endAngle:o.endAngle,delete e.endAngle,e.arc=a),R(i,e,t,n)}}),t.RectSvgElement=N,N.prototype=Oe(V.prototype),r(N.prototype,{constructor:N,attr:function(e){var t,n,o,a,s,l,u,c=this;return i(e)&&(void 0===(e=r({},e)).x&&void 0===e.y&&void 0===e.width&&void 0===e.height&&void 0===e[we]||(t=void 0!==e.x?c._originalX=e.x:c._originalX||0,n=void 0!==e.y?c._originalY=e.y:c._originalY||0,o=void 0!==e.width?c._originalWidth=e.width:c._originalWidth||0,a=void 0!==e.height?c._originalHeight=e.height:c._originalHeight||0,u=((s=void 0!==e[we]?c._originalSW=e[we]:c._originalSW)||0)<(l=~~((o<a?o:a)/2))?s||0:l,e.x=t+u/2,e.y=n+u/2,e.width=o-u,e.height=a-u,((s||0)!==u||!(0===u&&void 0===s))&&(e[we]=u)),"sharp"in e&&delete e.sharp),b(c,e)}}),t.TextSvgElement=$,$.prototype=Oe(V.prototype),r($.prototype,{constructor:$,attr:function(e){var t,n,o,a,s=this;return i(e)?(e=r({},e),t=s._settings,o=de(t[xe])&&de(t[we]),void 0!==e[be]&&(t[be]=e[be],delete e[be],n=!0),void 0!==e[xe]&&(t[xe]=e[xe],delete e[xe]),void 0!==e[we]&&(t[we]=e[we],delete e[we]),void 0!==e[Ce]&&(t[Ce]=e[Ce],delete e[Ce]),a=de(t[xe])&&de(t[we]),b(s,e),(n=n||a!==o&&t[be])&&(function(e,t,n){var i,o;e._texts=null,e.clear(),null!==t&&(t=""+t,e.renderer.encodeHtml||!/<[a-z][\s\S]*>/i.test(t)&&-1===t.indexOf("&")?/\n/g.test(t)?i=function(e){for(var t=e.replace(/\r/g,"").split(/\n/g),n=0,i=[];n<t.length;n++)i.push({value:t[n].trim(),height:0,line:n});return i}(t):n&&(i=[{value:t.trim(),height:0}]):(o=function(e){var t=/(style|class)\s*=\s*(["'])(?:(?!\2).)*\2\s?/gi;return e.replace(/(?:(<[a-z0-9]+\s*))([\s\S]*?)(>|\/>)/gi,function(e,n,i,o){return i=(i&&i.match(t)||[]).map(function(e){return e}).join(" "),n+i+o})}(t),i=function(e){var t=[],n=U.createElement("div");return n.innerHTML=e.replace(/\r/g,"").replace(/\n/g,"<br/>"),function e(t,n,i,o,a){var s,l,u,c,d;if(void 0!==i.wholeText)t.push({value:i.wholeText,style:o,className:a,line:n,height:o[ke]||0});else if("BR"===i.tagName)++n;else if(U.isElementNode(i)){switch(r(s={},o),i.tagName){case"B":case"STRONG":s[Ie]="bold";break;case"I":case"EM":s[Se]="italic";break;case"U":s[Te]="underline"}for((l=i.style).color&&(s.fill=l.color),l.fontSize&&(s[ke]=l.fontSize),l.fontStyle&&(s[Se]=l.fontStyle),l.fontWeight&&(s[Ie]=l.fontWeight),l.textDecoration&&(s[Te]=l.textDecoration),u=0,d=i.childNodes,c=d.length;u<c;++u)n=e(t,n,d[u],s,i.className||a)}return n}(t,0,n,{},""),function(e){var t,n,i,o=e[0];for(t=1,n=e.length;t<n;++t)(i=e[t]).line===o.line?(o.height=M(o.height,i.height),o.inherits=o.inherits||0===ve(i.height),i.height=NaN):o=i}(t),t}(o)),i?i.length&&(e._texts=i,n&&x(i,e.element,xe),x(i,e.element,"tspan")):e.element.appendChild(U.createTextNode(t)))}(s,t.text,a),s._hasEllipsis=!1),(n||void 0!==e.x||void 0!==e.y)&&B(s),a&&function(e){if(e._texts){var t,n,i,o=e._texts,a=e._settings[xe],r=e._settings[we],s=e._settings[Ce]||1;for(n=0,i=o.length;n<i;++n)(t=o[n].stroke).setAttribute(xe,a),t.setAttribute(we,r),t.setAttribute(Ce,s),t.setAttribute("stroke-linejoin","round")}}(s),s):b(s,e)},css:function(e){return v(this,e=e||{}),ke in e&&B(this),this},applyEllipsis:function(e){var t,n,i,o,a,r,s,l,u,c=this,d=!1;if(w.call(c),u=(l=c.renderer.text(Ae).attr(c._styles).append(c.renderer.root)).getBBox().width,c._getElementBBox().width>e)for(e-u<0?e=0:e-=u,t=function(e,t,n){var i,o,a,r,s,l=[];if(t)for(i=0,o=t.length;i<o;++i)a=t[i],l[a.line]?(a.startBox=r,l[a.line].parts.push(a),l[a.line].commonLength+=a.value.length):(a.startBox=r=0,l.push({commonLength:a.value.length,parts:[a]})),s=r+a.tspan.getSubStringLength(0,a.value.length),a.endIndex=k(a,n,r,s),r=s;else(a={value:e.textContent,tspan:e}).startBox=r=0,s=r+S(a),a.endIndex=k(a,n,r,s),l=[{commonLength:e.textContent.length,parts:[a]}];return l}(c.element,c._texts,e),n=0,i=t.length;n<i;++n)if(o=t[n].parts,1!==t[n].commonLength)for(a=0,r=o.length;a<r;++a)s=o[a],de(s.endIndex)?(E(s,s.endIndex),d=!0):s.startBox>e&&A(s);return l.remove(),c._hasEllipsis=d,d},setMaxSize:function(e,t){var n,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=this,r=[],s=!1,l=!1,u=e;w.call(a),i=(n=a.renderer.text(Ae).attr(a._styles).append(a.renderer.root)).getBBox().width;var c=a._getElementBBox(),d=c.width,h=c.height;return(d>e||t&&h>t)&&(e-i<0?u=0:u-=i,r=function(e,t,n,i,o){var a=n.textOverflow;if(!isFinite(i)||0===Number(i)||"none"===a)return e;var r=e.reduce(function(e,r,s,l){var u=q(e,2),c=u[0],d=u[1],h=function(e,t){return e.parts.reduce(function(e,n){return Math.max(e,P(n,t))},0)}(r,o);if((d+=h)<i)c.push(r);else if(r.parts.forEach(function(e){A(e)}),"ellipsis"===a){var p=l[s-1];if(p){var f=p.parts[p.parts.length-1];f.hasEllipsis||(0===t||f.endBox<t?E(f,f.value.length,I(t,n)):T(f,t,n))}}return[c,d]},[[],0]);return"hide"===a&&r[1]>i?(r[0].forEach(function(e){e.parts.forEach(function(e){A(e)})}),[]):r[0]}(r=function(e,t,n,i,o){if(!t){var a=e.textContent,r={value:a,height:0,line:0};e.textContent="",x([r],e,"tspan"),t=[r]}return t.reduce(function(e,t){var a=q(e,5),r=a[0],s=a[1],l=a[2],u=a[3],c=a[4],d=r[r.length-1];if(u)return[r,s,l,u];if(d&&t.line===c){if(t.startBox=s,s>i&&"none"===o.wordWrap&&"ellipsis"===o.textOverflow)return A(t),[r,s,l,u,c];d.parts.push(t),d.commonLength+=t.value.length}else t.startBox=s=0,r.push({commonLength:t.value.length,parts:[t]});if(t.endBox=l=s+S(t),s=l,de(n)&&l>n){var h=D(t,n,i,o);h.length?r=r.concat(h.filter(function(e){return e.parts.length>0})):(r=[],u=!0)}return[r,s,l,u,t.line]},[[],0,0,!1,0])[0]}(a.element,a._texts,e,u,o),u,o,t,parseFloat(this._getLineHeight())),this._texts=r.reduce(function(e,t){return e.concat(t.parts)},[]).filter(function(e){return""!==e.value}).map(function(e){return e.stroke&&e.tspan.parentNode.appendChild(e.stroke),e}).map(function(e){return e.tspan.parentNode.appendChild(e.tspan),e}),!this._texts.length&&(this._texts=null),s=!0,this._texts?B(this):(this.element.textContent="",l=!0)),n.remove(),a._hasEllipsis=s,{rowCount:r.length,textChanged:s,textIsEmpty:l}},restoreText:w,_getLineHeight:function(){return isNaN(ve(this._styles[ke]))?Ee:this._styles[ke]}}),t.Renderer=j,j.prototype={constructor:j,_init:function(){var e=this;e._defs=e._createElement("defs").append(e.root),e._animationController=new te.AnimationController(e.root.element),e._animation={enabled:!0,duration:1e3,easing:"easeOutCubic"}},fixPlacement:function(){if(J.mozilla||J.msie){var e=function(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t||{left:0,top:0}}(this._$container.get(0)),t=s(e.left%1,2),n=s(e.top%1,2);J.msie?this.root.css({transform:"translate("+-t+"px,"+-n+"px)"}):J.mozilla&&this.root.move(-t,-n)}},removePlacementFix:function(){(J.mozilla||J.msie)&&(J.msie?this.root.css({transform:""}):J.mozilla&&this.root.attr({transform:null}))},setOptions:function(e){var t=this;return t.rtl=!!e.rtl,t.encodeHtml=!!e.encodeHtml,t.updateAnimationOptions(e.animation||{}),t.root.attr({direction:t.rtl?"rtl":"ltr"}),t},_createElement:function(e,n,i){var o=new t.SvgElement(this,e,i);return n&&o.attr(n),o},lock:function(){var e=this;return 0===e._locker&&(e._backed=!e._$container.is(":visible"),e._backed&&function(e){0===Be().backupCounter&&U.getBody().appendChild(Be().backupContainer),++Be().backupCounter,e.append({element:Be().backupContainer})}(e.root)),++e._locker,e},unlock:function(){var e=this;return--e._locker,0===e._locker&&(e._backed&&(function(e,t){e.append({element:t}),--Be().backupCounter,0===Be().backupCounter&&U.getBody().removeChild(Be().backupContainer)}(e.root,e._$container[0]),e.fixPlacement()),e._backed=!1),e},resize:function(e,t){return e>=0&&t>=0&&this.root.attr({width:e,height:t}),this},dispose:function(){var e,t=this;for(e in t.root.dispose(),t._defs.dispose(),t._animationController.dispose(),Ve.removeByRenderer(t),t)t[e]=null;return t},animationEnabled:function(){return!!this._animation.enabled},updateAnimationOptions:function(e){return r(this._animation,e),this},stopAllAnimations:function(e){return this._animationController[e?"lock":"stop"](),this},animateElement:function(e,t,n){return this._animationController.animateElement(e,t,n),this},svg:function(){this.removePlacementFix();var e=this.root.markup();return this.fixPlacement(),e},getRootOffset:function(){return this.root.getOffset()},onEndAnimation:function(e){this._animationController.onEndAnimation(e)},rect:function(e,n,i,o){return new t.RectSvgElement(this).attr({x:e||0,y:n||0,width:i||0,height:o||0})},simpleRect:function(){return this._createElement("rect")},circle:function(e,t,n){return this._createElement("circle",{cx:e||0,cy:t||0,r:n||0})},g:function(){return this._createElement("g")},image:function(e,t,n,i,o,a){var r=this._createElement("image",{x:e||0,y:t||0,width:n||0,height:i||0,preserveAspectRatio:Re[pe(a)]||De});return r.element.setAttributeNS("http://www.w3.org/1999/xlink","href",o||""),r},path:function(e,n){return new t.PathSvgElement(this,n).attr({points:e||[]})},arc:function(e,n,i,o,a,r){return new t.ArcSvgElement(this).attr({x:e||0,y:n||0,innerRadius:i||0,outerRadius:o||0,startAngle:a||0,endAngle:r||0})},text:function(e,n,i){return new t.TextSvgElement(this).attr({text:e,x:n||0,y:i||0})},linearGradient:function(e){var t,n=Me(),i=this;return(t=i._createElement("linearGradient",{id:n}).append(i._defs)).id=n,e.forEach(function(e){i._createElement("stop",{offset:e.offset,"stop-color":e["stop-color"]}).append(t)}),t},pattern:function(e,n,i){var o,a,r,s=this,l=(n=n||{}).step||6,u=l/2,c=1.5*l;return o=i||Me(),a="right"===pe(n.direction)?"M "+u+" "+-u+" L "+-u+" "+u+" M 0 "+l+" L "+l+" 0 M "+c+" "+u+" L "+u+" "+c:"M 0 0 L "+l+" "+l+" M "+-u+" "+u+" L "+u+" "+c+" M "+u+" "+-u+" L "+c+" "+u,r=s._createElement("pattern",{id:o,width:l,height:l,patternUnits:"userSpaceOnUse"}).append(s._defs),r.id=o,s.rect(0,0,l,l).attr({fill:e,opacity:n.opacity}).append(r),new t.PathSvgElement(this).attr({d:a,"stroke-width":n.width||1,stroke:e}).append(r),r},_getPointsWithYOffset:function(e,t){return e.map(function(e,n){return n%2!=0?e+t:e})},clipRect:function(e,t,n,i){var o=this,a=Me(),r=o._createElement("clipPath",{id:a}).append(o._defs),s=o.rect(e,t,n,i).append(r);return s.id=a,s.remove=function(){throw"Not implemented"},s.dispose=function(){return r.dispose(),r=null,this},s},shadowFilter:function(e,t,n,i,o,a,r,s,l){var u=this,c=Me(),d=u._createElement("filter",{id:c,x:e||0,y:t||0,width:n||0,height:i||0}).append(u._defs),h=u._createElement("feGaussianBlur",{in:"SourceGraphic",result:"gaussianBlurResult",stdDeviation:r||0}).append(d),p=u._createElement("feOffset",{in:"gaussianBlurResult",result:"offsetResult",dx:o||0,dy:a||0}).append(d),f=u._createElement("feFlood",{result:"floodResult","flood-color":s||"","flood-opacity":l}).append(d),g=u._createElement("feComposite",{in:"floodResult",in2:"offsetResult",operator:"in",result:"compositeResult"}).append(d),_=u._createElement("feComposite",{in:"SourceGraphic",in2:"compositeResult",operator:"over"}).append(d);return d.id=c,d.gaussianBlur=h,d.offset=p,d.flood=f,d.composite=g,d.finalComposite=_,d.attr=function(e){var t=this,n={},i={},o={};return"x"in e&&(n.x=e.x),"y"in e&&(n.y=e.y),"width"in e&&(n.width=e.width),"height"in e&&(n.height=e.height),b(t,n),"blur"in e&&t.gaussianBlur.attr({stdDeviation:e.blur}),"offsetX"in e&&(i.dx=e.offsetX),"offsetY"in e&&(i.dy=e.offsetY),t.offset.attr(i),"color"in e&&(o["flood-color"]=e.color),"opacity"in e&&(o["flood-opacity"]=e.opacity),t.flood.attr(o),t},d},brightFilter:function(e,t){var n=this,i=Me(),o=n._createElement("filter",{id:i}).append(n._defs),a=n._createElement("feComponentTransfer").append(o),r={type:e,slope:t};return o.id=i,n._createElement("feFuncR",r).append(a),n._createElement("feFuncG",r).append(a),n._createElement("feFuncB",r).append(a),o},getGrayScaleFilter:function(){if(this._grayScaleFilter)return this._grayScaleFilter;var e=this,t=Me(),n=e._createElement("filter",{id:t}).append(e._defs);return e._createElement("feColorMatrix").attr({type:"matrix",values:"0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 0.6 0"}).append(n),n.id=t,e._grayScaleFilter=n,n},initHatching:function(){var e,t=this._hatchingStorage=this._hatchingStorage||{byHash:{},baseId:Me()},n=t.byHash;for(e in n)n[e].pattern.dispose();t.byHash={},t.refToHash={},t.nextId=0},lockHatching:function(e,t,n){var i,o,a=this._hatchingStorage,r=function(e,t){return"@"+e+"::"+t.step+":"+t.width+":"+t.opacity+":"+t.direction}(e,t);return a.refToHash[n]!==r&&(n&&this.releaseHatching(n),(i=a.byHash[r])||(o=this.pattern(e,t,a.baseId+"-hatching-"+a.nextId++),i=a.byHash[r]={pattern:o,count:0},a.refToHash[o.id]=r),++i.count,n=i.pattern.id),n},releaseHatching:function(e){var t=this._hatchingStorage,n=t.refToHash[e],i=t.byHash[n];i&&0==--i.count&&(i.pattern.dispose(),delete t.byHash[n],delete t.refToHash[e])}};var Ve=function(){var e=[];return{add:function(t){e.push(t)},remove:function(t){e=e.filter(function(e){return e!==t})},removeByRenderer:function(t){e=e.filter(function(e){return e.renderer!==t})},fire:function(){e.forEach(function(e){e()})}}}();t.refreshPaths=function(){Ve.fire()}},function(e,t,n){var i=n(48),o=n(0).extend,a=n(107).chart,r=n(205),s=r.chart.line,l=r.polar.line,u=n(11).map,c=o,d=r.chart.spline._calculateBezierPoints;t.chart={},t.polar={};var h={_createBorderElement:s._createMainElement,_createLegendState:function(e,t){return{fill:e.color||t,opacity:e.opacity,hatching:e.hatching}},getValueRangeInitialValue:function(){return"logarithmic"!==this.valueAxisType&&"datetime"!==this.valueType&&!1!==this.showZero?0:a.getValueRangeInitialValue.call(this)},_getDefaultSegment:function(e){var t=s._getDefaultSegment(e);return t.area=t.line.concat(t.line.slice().reverse()),t},_updateElement:function(e,t,n,i){var o={points:t.line},a={points:t.area},r=e.line;n?(r&&r.animate(o),e.area.animate(a,{},i)):(r&&r.attr(o),e.area.attr(a))},_removeElement:function(e){e.line&&e.line.remove(),e.area.remove()},_drawElement:function(e){return{line:this._bordersGroup&&this._createBorderElement(e.line,{"stroke-width":this._styles.normal.border["stroke-width"]}).append(this._bordersGroup),area:this._createMainElement(e.area).append(this._elementsGroup)}},_applyStyle:function(e){var t=this;t._elementsGroup&&t._elementsGroup.smartAttr(e.elements),t._bordersGroup&&t._bordersGroup.attr(e.border),(t._graphics||[]).forEach(function(t){t.line&&t.line.attr({"stroke-width":e.border["stroke-width"]}).sharp()})},_parseStyle:function(e,t,n){var i=e.border||{},o=s._parseLineOptions(i,n);return o.stroke=i.visible&&o["stroke-width"]?o.stroke:"none",o["stroke-width"]=o["stroke-width"]||1,{border:o,elements:{stroke:"none",fill:e.color||t,hatching:e.hatching,opacity:e.opacity}}},_areBordersVisible:function(){var e=this._options;return e.border.visible||e.hoverStyle.border.visible||e.selectionStyle.border.visible},_createMainElement:function(e,t){return this._renderer.path(e,"area").attr(t)},_getTrackerSettings:function(e){return{"stroke-width":e.singlePointSegment?this._defaultTrackerWidth:0}},_getMainPointsFromSegment:function(e){return e.area}},p=t.chart.area=c({},s,h,{_prepareSegment:function(e,t){var n=this._processSinglePointsAreaSegment(e,t),i=function(e){return u(e,function(e){return e.getCoords()}).concat(u(e.slice().reverse(),function(e){return e.getCoords(!0)}))}(n),o=this.getArgumentAxis();if(o.getAxisPosition){var a=o.getAxisPosition(),r=o.getOptions(),s=(t?1:-1)*Math.round(r.width/2);r.visible&&i.forEach(function(n,r){if(n){var l=1===e.length?0:r<e.length?r:i.length-1-r;t&&n.x===e[l].defaultX&&n.x===a-o.getAxisShift()&&(n.x+=s),!t&&n.y===e[l].defaultY&&n.y===a-o.getAxisShift()&&(n.y+=s)}})}return{line:n,area:i,singlePointSegment:n!==e}},_processSinglePointsAreaSegment:function(e,t){if(e&&1===e.length){var n=e[0],o=i.clone(n);return o[t?"y":"x"]+=1,o.argument=null,[n,o]}return e}});t.polar.area=c({},l,h,{_prepareSegment:function(e,t,n){return n&&l._closeSegment.call(this,e),p._prepareSegment.call(this,e)},_processSinglePointsAreaSegment:function(e){return r.polar.line._prepareSegment.call(this,e).line}}),t.chart.steparea=c({},p,{_prepareSegment:function(e,t){var n=r.chart.stepline;return e=p._processSinglePointsAreaSegment(e,t),p._prepareSegment.call(this,n._calculateStepLinePoints.call(this,e),t)},getSeriesPairCoord:r.chart.stepline.getSeriesPairCoord}),t.chart.splinearea=c({},p,{_areaPointsToSplineAreaPoints:function(e){var t=e[e.length/2-1],n=e[e.length/2];e.splice(e.length/2,0,{x:t.x,y:t.y},{x:n.x,y:n.y})},_prepareSegment:function(e,t){var n=p._processSinglePointsAreaSegment(e,t),i=p._prepareSegment.call(this,d(n,t));return this._areaPointsToSplineAreaPoints(i.area),i.singlePointSegment=n!==e,i},_getDefaultSegment:function(e){var t=p._getDefaultSegment(e);return this._areaPointsToSplineAreaPoints(t.area),t},_createMainElement:function(e,t){return this._renderer.path(e,"bezierarea").attr(t)},_createBorderElement:r.chart.spline._createMainElement,getSeriesPairCoord:r.chart.spline.getSeriesPairCoord,getNearestPointsByCoord:r.chart.spline.getNearestPointsByCoord,obtainCubicBezierTCoef:r.chart.spline.obtainCubicBezierTCoef})},function(e,t,n){function i(){}var o=n(0).extend;o(i.prototype,{value:0,isNode:function(){return!!(this.nodes&&this.level<this.ctx.maxLevel)},isActive:function(){var e=this.ctx;return this.level>=e.minLevel&&this.level<=e.maxLevel},updateStyles:function(){var e=this,t=Number(e.isNode());e.state=e._buildState(e.ctx.settings[t].state,!t&&e.color&&{fill:e.color})},_buildState:function(e,t){var n=o({},e);return t?o(n,t):n},updateLabelStyle:function(){var e=this.ctx.settings[Number(this.isNode())];this.labelState=e.labelState,this.labelParams=e.labelParams},_getState:function(){return this.state},applyState:function(){a[Number(this.isNode())](this.tile,this._getState())}});var a=[function(e,t){e.smartAttr(t)},function(e,t){e.outer.attr({stroke:t.stroke,"stroke-width":t["stroke-width"],"stroke-opacity":t["stroke-opacity"]}),e.inner.smartAttr({fill:t.fill,opacity:t.opacity,hatching:t.hatching})}];e.exports=i},function(e,t,n){var i=n(129);n(227),n(450),n(465),n(115),n(474),n(181),n(475),n(476),n(19),n(160),n(154),n(55),n(89),n(134),n(24),n(175),n(281),e.exports=i},function(e,t,n){var i=n(182).fileSaver,o=n(421),a=n(221),r=n(428),s=n(1).isFunction,l=n(6).Deferred;t.export=function(e,t,n){if(!e)return(new l).resolve();var o=t.exportingAction,a=t.exportedAction,r=t.fileSavingAction,u={fileName:t.fileName,format:t.format,cancel:!1};return s(o)&&o(u),u.cancel?(new l).resolve():n(e,t,function(e){s(a)&&a(),s(r)&&(u.data=e,r(u)),u.cancel||i.saveAs(u.fileName,t.format,e,t.proxyUrl,void 0,t.forceProxy)})},t.fileSaver=i,t.excel={creator:o.ExcelCreator,getData:o.getData,formatConverter:n(215)},t.image={creator:a.imageCreator,getData:a.getData,testFormats:a.testFormats},t.pdf={getData:n(430).getData},t.svg={creator:r.svgCreator,getData:r.getData}},function(e,t,n){e.exports={_findGroup:function(){var e,t=this.option("validationGroup");return t||(t=(e=this.$element().parents(".dx-validationgroup").first()).length?e.dxValidationGroup("instance"):this._modelByElement(this.$element())),t}}},function(e,t,n){var i=n(2),o=n(5),a=n(8),r=n(4),s=n(0).extend,l=n(13).inArray,u=n(3).each,c=n(1),d=n(7),h=n(26),p=n(29).fitIntoRange,f=n(66),g=n(9),_=n(55),m=c.isPlainObject,v=c.isFunction,y=n(10),b="dxResizable",x="dx-resizable-handle",w="dx-resizable-handle-corner",C=g.addNamespace(_.start,b),k=g.addNamespace(_.move,b),S=g.addNamespace(_.end,b),I={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},T=f.inherit({_getDefaultOptions:function(){return s(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})},_init:function(){this.callBase(),this.$element().addClass("dx-resizable")},_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(){var e=this.option("handles");if("none"!==e){var t="all"===e?["top","bottom","left","right"]:e.split(" ");u(t,function(e,t){this._renderHandle(t)}.bind(this)),l("bottom",t)+1&&l("right",t)+1&&this._renderHandle("corner-bottom-right"),l("bottom",t)+1&&l("left",t)+1&&this._renderHandle("corner-bottom-left"),l("top",t)+1&&l("right",t)+1&&this._renderHandle("corner-top-right"),l("top",t)+1&&l("left",t)+1&&this._renderHandle("corner-top-left")}},_renderHandle:function(e){var t=this.$element(),n=i("<div>");n.addClass(x).addClass(x+"-"+e).appendTo(t),this._attachEventHandlers(n)},_attachEventHandlers:function(e){if(!this.option("disabled")){var t={};t[C]=this._dragStartHandler.bind(this),t[k]=this._dragHandler.bind(this),t[S]=this._dragEndHandler.bind(this),o.on(e,t,{direction:"both",immediate:!0})}},_dragStartHandler:function(e){var t=this.$element();if(t.is(".dx-state-disabled, .dx-state-disabled *"))e.cancel=!0;else{this._toggleResizingClass(!0),this._movingSides=this._getMovingSides(e),this._elementLocation=h.locate(t);var n=t.get(0).getBoundingClientRect();this._elementSize={width:n.width,height:n.height},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("dx-resizable-resizing",e)},_renderDragOffsets:function(e){var t=this._getArea();if(t){var n=i(e.target).closest("."+x),o=n.outerWidth(),a=n.outerHeight(),r=n.offset(),s=t.offset,l=this._getAreaScrollOffset();e.maxLeftOffset=r.left-s.left-l.scrollX,e.maxRightOffset=s.left+t.width-r.left-o+l.scrollX,e.maxTopOffset=r.top-s.top-l.scrollY,e.maxBottomOffset=s.top+t.height-r.top-a+l.scrollY}},_getBorderWidth:function(e,t){if(c.isWindow(e.get(0)))return 0;var n=e.css(I[t]);return parseInt(n)||0},_dragHandler:function(e){var t=this.$element(),n=this._movingSides,i=this._elementLocation,o=this._elementSize,a=this._getOffset(e),r=o.width+a.x*(n.left?-1:1),s=o.height+a.y*(n.top?-1:1);(a.x||"strict"===this.option("stepPrecision"))&&this._renderWidth(r),(a.y||"strict"===this.option("stepPrecision"))&&this._renderHeight(s);var l=t.get(0).getBoundingClientRect(),u=a.y-((l.height||s)-s),c=a.x-((l.width||r)-r);h.move(t,{top:i.top+(n.top?u:0),left:i.left+(n.left?c:0)}),this._resizeAction({event:e,width:this.option("width")||r,height:this.option("height")||s,handles:this._movingSides}),y.triggerResizeEvent(t)},_getOffset:function(e){var t=e.offset,n=r.pairToObject(this.option("step")),i=this._getMovingSides(e),o="strict"===this.option("stepPrecision");return i.left||i.right||(t.x=0),i.top||i.bottom||(t.y=0),o?this._getStrictOffset(t,n,i):this._getSimpleOffset(t,n)},_getSimpleOffset:function(e,t){return{x:e.x-e.x%t.h,y:e.y-e.y%t.v}},_getStrictOffset:function(e,t,n){var i=this._elementLocation,o=this._elementSize,a=n.left?i.left:i.left+o.width,r=n.top?i.top:i.top+o.height,s=(a+e.x)%t.h,l=(r+e.y)%t.v,u=Math.sign||function(e){return 0===(e=+e)||isNaN(e)?e:e>0?1:-1},c=function(e,t){return(1+.2*u(t))%1*e},d=function(e,t){return Math.abs(e)<.2*t},h=e.x-s,p=e.y-l;return s>c(t.h,e.x)&&(h+=t.h),l>c(t.v,e.y)&&(p+=t.v),{x:!n.left&&!n.right||d(e.x,t.h)?0:h,y:!n.top&&!n.bottom||d(e.y,t.v)?0:p}},_getMovingSides:function(e){var t=i(e.target),n=t.hasClass(w+"-top-left"),o=t.hasClass(w+"-top-right"),a=t.hasClass(w+"-bottom-left"),r=t.hasClass(w+"-bottom-right");return{top:t.hasClass("dx-resizable-handle-top")||n||o,left:t.hasClass("dx-resizable-handle-left")||n||a,bottom:t.hasClass("dx-resizable-handle-bottom")||a||r,right:t.hasClass("dx-resizable-handle-right")||o||r}},_getArea:function(){var e=this.option("area");return v(e)&&(e=e.call(this)),m(e)?this._getAreaFromObject(e):this._getAreaFromElement(e)},_getAreaScrollOffset:function(){var e=this.option("area"),t={scrollY:0,scrollX:0};if(!v(e)&&!m(e)){var n=i(e)[0];c.isWindow(n)&&(t.scrollX=n.pageXOffset,t.scrollY=n.pageYOffset)}return t},_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,n=i(e);return n.length&&(t={width:n.innerWidth(),height:n.innerHeight(),offset:s({top:0,left:0},c.isWindow(n[0])?{}:n.offset())},this._correctAreaGeometry(t,n)),t},_correctAreaGeometry:function(e,t){var n=t?this._getBorderWidth(t,"left"):0,i=t?this._getBorderWidth(t,"top"):0;e.offset.left+=n+this._getBorderWidth(this.$element(),"left"),e.offset.top+=i+this._getBorderWidth(this.$element(),"top"),e.width-=this.$element().outerWidth()-this.$element().innerWidth(),e.height-=this.$element().outerHeight()-this.$element().innerHeight()},_dragEndHandler:function(e){var t=this.$element();this._resizeEndAction({event:e,width:t.outerWidth(),height:t.outerHeight(),handles:this._movingSides}),this._toggleResizingClass(!1)},_renderWidth:function(e){this.option("width",p(e,this.option("minWidth"),this.option("maxWidth")))},_renderHeight:function(e){this.option("height",p(e,this.option("minHeight"),this.option("maxHeight")))},_optionChanged:function(e){switch(e.name){case"disabled":case"handles":this._invalidate();break;case"minWidth":case"maxWidth":d.hasWindow()&&this._renderWidth(this.$element().outerWidth());break;case"minHeight":case"maxHeight":d.hasWindow()&&this._renderHeight(this.$element().outerHeight());break;case"onResize":case"onResizeStart":case"onResizeEnd":this._renderActions();break;case"area":case"stepPrecision":case"step":break;default:this.callBase(e)}},_clean:function(){this.$element().find("."+x).remove()}});a(b,T),e.exports=T},function(e,t,n){var i=n(9),o=n(157),a=n(88),r="dxswipestart",s="dxswipe",l="dxswipeend",u={horizontal:{defaultItemSizeFunc:function(){return this.getElement().width()},getBounds:function(){return[this._maxLeftOffset,this._maxRightOffset]},calcOffsetRatio:function(e){return(i.eventData(e).x-(this._savedEventData&&this._savedEventData.x||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=i.eventData(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.x-this._tickData.x)>=t.time-this._tickData.time}},vertical:{defaultItemSizeFunc:function(){return this.getElement().height()},getBounds:function(){return[this._maxTopOffset,this._maxBottomOffset]},calcOffsetRatio:function(e){return(i.eventData(e).y-(this._savedEventData&&this._savedEventData.y||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=i.eventData(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.y-this._tickData.y)>=t.time-this._tickData.time}}},c=o.inherit({TICK_INTERVAL:300,FAST_SWIPE_SPEED_LIMIT:10,ctor:function(e){this.callBase(e),this.direction="horizontal",this.elastic=!0},_getStrategy:function(){return u[this.direction]},_defaultItemSizeFunc:function(){return this._getStrategy().defaultItemSizeFunc.call(this)},_itemSizeFunc:function(){return this.itemSizeFunc||this._defaultItemSizeFunc},_init:function(e){this._tickData=i.eventData(e)},_start:function(e){this._savedEventData=i.eventData(e),(e=this._fireEvent(r,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(),n=i.eventData(e),o=t.calcOffsetRatio.call(this,e);o=this._fitOffset(o,this.elastic),n.time-this._tickData.time>this.TICK_INTERVAL&&(this._tickData=n),this._fireEvent(s,e,{offset:o}),e.preventDefault()},_end:function(e){var t=this._getStrategy(),n=t.calcOffsetRatio.call(this,e),i=t.isFastSwipe.call(this,e),o=n,a=this._calcTargetOffset(n,i);o=this._fitOffset(o,this.elastic),a=this._fitOffset(a,!1),this._fireEvent(l,e,{offset:o,targetOffset:a})},_fitOffset:function(e,t){var n=this._getStrategy().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 n;return t?(n=Math.ceil(Math.abs(e)),e<0&&(n=-n)):n=Math.round(e),n}});a({emitter:c,events:[r,s,l]}),t.swipe=s,t.start=r,t.end=l},function(e,t,n){var i=n(13).inArray,o=n(7),a=o.hasWindow()?o.getWindow().WeakMap:WeakMap;a||(a=function(){var e=[],t=[];this.set=function(n,o){var a=i(n,e);-1===a?(e.push(n),t.push(o)):t[a]=o},this.get=function(n){var o=i(n,e);if(-1!==o)return t[o]},this.has=function(t){return-1!==i(t,e)},this.delete=function(n){var o=i(n,e);-1!==o&&(e.splice(o,1),t.splice(o,1))}}),e.exports=a},function(e,t,n){var i=n(3).each,o=n(25);e.exports=function(){var e=[],t=o();this.add=function(n){i(e,function(e,t){n.apply(n,t)}),t.add(n)},this.remove=function(e){t.remove(e)},this.fire=function(){e.push(arguments),t.fire.apply(t,arguments)}}},function(e,t,n){var i=n(131),o=n(3).each,a=n(0).extend,r=n(16),s=n(39),l={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},u=i.inherit({ctor:function(){this.callBase.apply(this,arguments),this._registeredPresets=[],this.resetToDefaults()},_getDefaultOptions:function(){return a(this.callBase(),{defaultAnimationDuration:400,defaultAnimationDelay:0,defaultStaggerAnimationDuration:300,defaultStaggerAnimationDelay:40,defaultStaggerAnimationStartDelay:500})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return e.phone},options:{defaultStaggerAnimationDuration:350,defaultStaggerAnimationDelay:50,defaultStaggerAnimationStartDelay:0}},{device:function(){return r.current().android||r.real.android},options:{defaultAnimationDelay:100}}])},_getPresetOptionName:function(e){return"preset_"+e},_createAndroidSlideAnimationConfig:function(e,t){var n=this,i=function(e){return{type:"slide",delay:void 0===e.delay?n.option("defaultAnimationDelay"):e.delay,duration:void 0===e.duration?n.option("defaultAnimationDuration"):e.duration}};return{enter:function(n,o){var a=n.parent().width()*t,r=o.direction,l=i(o);return l.to={left:0,opacity:1},l.from="forward"===r?{left:a,opacity:e}:"backward"===r?{left:-a,opacity:e}:{left:0,opacity:0},s.createAnimation(n,l)},leave:function(n,o){var a=n.parent().width()*t,r=o.direction,l=i(o);return l.from={left:0,opacity:1},l.to="forward"===r?{left:-a,opacity:e}:"backward"===r?{left:a,opacity:e}:{left:0,opacity:0},s.createAnimation(n,l)}}},_createOpenDoorConfig:function(){var e=this,t=function(t){return{type:"css",extraCssClasses:"dx-opendoor-animation",delay:void 0===t.delay?e.option("defaultAnimationDelay"):t.delay,duration:void 0===t.duration?e.option("defaultAnimationDuration"):t.duration}};return{enter:function(e,n){var i=n.direction,o=t(n);return o.delay="none"===i?o.delay:o.duration,o.from="dx-enter dx-opendoor-animation"+l[i],o.to="dx-enter-active",s.createAnimation(e,o)},leave:function(e,n){var i=n.direction,o=t(n);return o.from="dx-leave dx-opendoor-animation"+l[i],o.to="dx-leave-active",s.createAnimation(e,o)}}},_createWinPopConfig:function(){var e=this,t={type:"css",extraCssClasses:"dx-win-pop-animation",duration:e.option("defaultAnimationDuration")};return{enter:function(n,i){var o=t,a=i.direction;return o.delay="none"===a?e.option("defaultAnimationDelay"):e.option("defaultAnimationDuration")/2,o.from="dx-enter dx-win-pop-animation"+l[a],o.to="dx-enter-active",s.createAnimation(n,o)},leave:function(n,i){var o=t,a=i.direction;return o.delay=e.option("defaultAnimationDelay"),o.from="dx-leave dx-win-pop-animation"+l[a],o.to="dx-leave-active",s.createAnimation(n,o)}}},resetToDefaults:function(){this.clear(),this.registerDefaultPresets(),this.applyChanges()},clear:function(e){var t=this,n=[];o(this._registeredPresets,function(i,o){e&&e!==o.name?n.push(o):t.option(t._getPresetOptionName(o.name),void 0)}),this._registeredPresets=n,this.applyChanges()},registerPreset:function(e,t){this._registeredPresets.push({name:e,config:t})},applyChanges:function(){var e=this,t=[];o(this._registeredPresets,function(n,i){var o={device:i.config.device,options:{}};o.options[e._getPresetOptionName(i.name)]=i.config.animation,t.push(o)}),this._setOptionsByDevice(t)},getPreset:function(e){for(var t=e;"string"==typeof t;)t=this.option(this._getPresetOptionName(t));return t},registerDefaultPresets:function(){this.registerPreset("pop",{animation:{extraCssClasses:"dx-android-pop-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("openDoor",{animation:this._createOpenDoorConfig()}),this.registerPreset("win-pop",{animation:this._createWinPopConfig()}),this.registerPreset("fade",{animation:{extraCssClasses:"dx-fade-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("slide",{device:function(){return r.current().android||r.real.android},animation:this._createAndroidSlideAnimationConfig(1,1)}),this.registerPreset("slide",{device:function(){return!r.current().android&&!r.real.android},animation:{extraCssClasses:"dx-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-slide",{animation:{extraCssClasses:"dx-ios7-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("overflow",{animation:{extraCssClasses:"dx-overflow-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return!r.current().android&&!r.real.android},animation:{extraCssClasses:"dx-ios7-toolbar-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return r.current().android||r.real.android},animation:this._createAndroidSlideAnimationConfig(0,.4)}),this.registerPreset("stagger-fade",{animation:{extraCssClasses:"dx-fade-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-slide",{animation:{extraCssClasses:"dx-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-slide",{animation:{extraCssClasses:"dx-fade-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-drop",{animation:{extraCssClasses:"dx-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-drop",{animation:{extraCssClasses:"dx-fade-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-rise",{animation:{extraCssClasses:"dx-fade-rise-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-3d-drop",{animation:{extraCssClasses:"dx-3d-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-zoom",{animation:{extraCssClasses:"dx-fade-zoom-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}})}});t.PresetCollection=u;var c=new u;t.presets=c},function(e,t,n){var i=n(229);e.exports=i.module("dx",[])},function(e,t,n){e.exports={}},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n(115);var o=n(69),a=n(51),r=n(21);if(n(69),o&&o.formatNumber){"en"===o.locale().locale&&(o.load({main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},numbers:{defaultNumberingSystem:"latn",otherNumberingSystems:{native:"latn"},minimumGroupingDigits:"1","symbols-numberSystem-latn":{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":"},"decimalFormats-numberSystem-latn":{standard:"#,##0.###",long:{decimalFormat:{"1000-count-one":"0 thousand","1000-count-other":"0 thousand","10000-count-one":"00 thousand","10000-count-other":"00 thousand","100000-count-one":"000 thousand","100000-count-other":"000 thousand","1000000-count-one":"0 million","1000000-count-other":"0 million","10000000-count-one":"00 million","10000000-count-other":"00 million","100000000-count-one":"000 million","100000000-count-other":"000 million","1000000000-count-one":"0 billion","1000000000-count-other":"0 billion","10000000000-count-one":"00 billion","10000000000-count-other":"00 billion","100000000000-count-one":"000 billion","100000000000-count-other":"000 billion","1000000000000-count-one":"0 trillion","1000000000000-count-other":"0 trillion","10000000000000-count-one":"00 trillion","10000000000000-count-other":"00 trillion","100000000000000-count-one":"000 trillion","100000000000000-count-other":"000 trillion"}},short:{decimalFormat:{"1000-count-one":"0K","1000-count-other":"0K","10000-count-one":"00K","10000-count-other":"00K","100000-count-one":"000K","100000-count-other":"000K","1000000-count-one":"0M","1000000-count-other":"0M","10000000-count-one":"00M","10000000-count-other":"00M","100000000-count-one":"000M","100000000-count-other":"000M","1000000000-count-one":"0B","1000000000-count-other":"0B","10000000000-count-one":"00B","10000000000-count-other":"00B","100000000000-count-one":"000B","100000000000-count-other":"000B","1000000000000-count-one":"0T","1000000000000-count-other":"0T","10000000000000-count-one":"00T","10000000000000-count-other":"00T","100000000000000-count-one":"000T","100000000000000-count-other":"000T"}}},"scientificFormats-numberSystem-latn":{standard:"#E0"},"percentFormats-numberSystem-latn":{standard:"#,##0%"},"currencyFormats-numberSystem-latn":{currencySpacing:{beforeCurrency:{currencyMatch:"[:^S:]",surroundingMatch:"[:digit:]",insertBetween:" "},afterCurrency:{currencyMatch:"[:^S:]",surroundingMatch:"[:digit:]",insertBetween:" "}},standard:"¤#,##0.00",accounting:"¤#,##0.00;(¤#,##0.00)",short:{standard:{"1000-count-one":"¤0K","1000-count-other":"¤0K","10000-count-one":"¤00K","10000-count-other":"¤00K","100000-count-one":"¤000K","100000-count-other":"¤000K","1000000-count-one":"¤0M","1000000-count-other":"¤0M","10000000-count-one":"¤00M","10000000-count-other":"¤00M","100000000-count-one":"¤000M","100000000-count-other":"¤000M","1000000000-count-one":"¤0B","1000000000-count-other":"¤0B","10000000000-count-one":"¤00B","10000000000-count-other":"¤00B","100000000000-count-one":"¤000B","100000000000-count-other":"¤000B","1000000000000-count-one":"¤0T","1000000000000-count-other":"¤0T","10000000000000-count-one":"¤00T","10000000000000-count-other":"¤00T","100000000000000-count-one":"¤000T","100000000000000-count-other":"¤000T"}},"unitPattern-count-one":"{0} {1}","unitPattern-count-other":"{0} {1}"},"miscPatterns-numberSystem-latn":{atLeast:"{0}+",range:"{0}–{1}"}}}}}),o.locale("en"));var s={},l=function(e){var t,n;return n="object"===(void 0===e?"undefined":i(e))?o.locale().locale+":"+JSON.stringify(e):o.locale().locale+":"+e,(t=s[n])||(t=s[n]=o.numberFormatter(e)),t},u={_formatNumberCore:function(e,t,n){return"exponential"===t?this.callBase.apply(this,arguments):l(this._normalizeFormatConfig(t,n,e))(e)},_normalizeFormatConfig:function(e,t,n){var i;return i="decimal"===e?{minimumIntegerDigits:t.precision||1,useGrouping:!1,minimumFractionDigits:0,maximumFractionDigits:20,round:n<0?"ceil":"floor"}:this._getPrecisionConfig(t.precision),"percent"===e&&(i.style="percent"),i},_getPrecisionConfig:function(e){return null===e?{minimumFractionDigits:0,maximumFractionDigits:20}:{minimumFractionDigits:e||0,maximumFractionDigits:e||0}},format:function(e,t){return"number"!=typeof e?e:(t=this._normalizeFormat(t))&&("function"==typeof t||t.type||t.formatter)?this.callBase.apply(this,arguments):l(t)(e)},parse:function(e,t){if(e){if(t&&(t.parser||"string"==typeof t))return this.callBase.apply(this,arguments);t&&r.log("W0011");var n=o.parseNumber(e);return isNaN(n)&&(n=this.callBase.apply(this,arguments)),n}}};a.inject(u)}},function(e,t,n){var i=n(2),o=n(12),a=n(7),r=a.getWindow(),s=a.getNavigator(),l=n(5),u=n(18),c=n(1),d={EXCEL:"xlsx",CSS:"css",PNG:"png",JPEG:"jpeg",GIF:"gif",SVG:"svg",PDF:"pdf"},h=t.MIME_TYPES={CSS:"text/css",EXCEL:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",PNG:"image/png",JPEG:"image/jpeg",GIF:"image/gif",SVG:"image/svg+xml",PDF:"application/pdf"};t.fileSaver={_revokeObjectURLTimeout:3e4,_getDataUri:function(e,t){return"data:"+h[e]+";base64,"+t},_linkDownloader:function(e,t,n){var a=o.createElement("a"),r={download:e,href:t};return l.on(i(a),"click",function(){i(a).remove(),n&&n.apply(this,arguments)}),o.getBody().appendChild(a),i(a).css({display:"none"}).text("load").attr(r)[0].click(),a},_formDownloader:function(e,t,n,o){var a={method:"post",action:e,enctype:"multipart/form-data"},r=i("<form>").css({display:"none"}).attr(a);r.append('<input type="hidden" name="fileName" value="'+t+'" />'),r.append('<input type="hidden" name="contentType" value="'+n+'" />'),r.append('<input type="hidden" name="data" value="'+o+'" />'),r.appendTo("body"),l.trigger(r,"submit"),l.trigger(r,"submit")&&r.remove()},_saveByProxy:function(e,t,n,i){return this._formDownloader(e,t,h[n],i)},_winJSBlobSave:function(e,t,n){var i=new Windows.Storage.Pickers.FileSavePicker;i.suggestedStartLocation=Windows.Storage.Pickers.PickerLocationId.documentsLibrary,i.fileTypeChoices.insert(h[n],["."+d[n]]),i.suggestedFileName=t,i.pickSaveFileAsync().then(function(t){t&&t.openAsync(Windows.Storage.FileAccessMode.readWrite).then(function(t){var n=e.msDetachStream();Windows.Storage.Streams.RandomAccessStream.copyAsync(n,t).then(function(){t.flushAsync().done(function(){n.close(),t.close()})})})})},_saveBlobAs:function(e,t,n,i){var o=this;if(o._blobSaved=!1,c.isDefined(s.msSaveOrOpenBlob))s.msSaveOrOpenBlob(n,e),o._blobSaved=!0;else if(c.isDefined(r.WinJS))o._winJSBlobSave(n,e,t),o._blobSaved=!0;else{var a=r.URL||r.webkitURL||r.mozURL||r.msURL||r.oURL;if(c.isDefined(a)){var l=a.createObjectURL(n),u=o._revokeObjectURLTimeout;return o._linkDownloader(e,l,function(e){setTimeout(function(){a.revokeObjectURL(l)},u)})}}},saveAs:function(e,t,n,i,o,a){e+="."+d[t],a?this._saveByProxy(i,e,t,n):c.isFunction(r.Blob)?this._saveBlobAs(e,t,n,o):c.isDefined(i)&&!c.isDefined(s.userAgent.match(/iPad/i))?this._saveByProxy(i,e,t,n):(c.isDefined(s.userAgent.match(/iPad/i))||u.log("E1034"),this._linkDownloader(e,this._getDataUri(t,n),o))}}},function(e,t,n){var i=" .,:;/\\<>()-[]،",o=function(e){var t=e&&e.charCodeAt(0);return e>="0"&&e<="9"||t>=1632&&t<1642},a=function(e,t,n){var a=e[t],r=e[t-1],s=e[t+1];if(!n){if("."===a||" "===a&&"."===r)return!0;if("-"===a&&!o(s))return!0}return i.indexOf(a)<0&&n===o(a)},r=function(e,t){if(!o(e[t]))for(;t>0&&!o(e[t-1])&&("."===e[t-1]||i.indexOf(e[t-1])<0);)t--;return t},s=function(e,t,n,i){var s=0,l=[],u=function(t){return e[s]!==t[s]&&(void 0===i||o(e[s])===i)};for(Array.isArray(t)||(t=[t]),s=0;s<e.length;s++)if(n.indexOf(s)<0&&t.filter(u).length){s=r(e,s);do{if(i=o(e[s]),!l.length&&!i&&o(t[0][s]))break;l.push(s),n.unshift(s),s++}while(e[s]&&a(e,s,i));break}return 1!==l.length||"0"!==e[n[0]-1]&&"٠"!==e[n[0]-1]||n.unshift(n[0]-1),l},l=function(e,t,n,i){var a,r,s;if(!o(e[t[0]]||"0")){for(var l=Math.max(t.length<=3?3:4,n.length);t.length>l;){for(s=i[r=t.pop()],i[r]=-1,a=r+1;a<i.length;a++)i[a]--;e=e.substr(0,s)+e.substr(s+1)}for(s=(r=t[t.length-1]+1)<i.length?i[r]:r;t.length<l;){for(t.push(t[t.length-1]+1),a=r;a<i.length;a++)i[a]++;e=e.substr(0,s)+" "+e.substr(s)}}return function(e,t,n,i){var o=t[0],a=o<i.length?i[o]:o;return t.forEach(function(t,i){e=e.substr(0,a+i)+(n.length>1?n[i]:n)+e.substr(a+i+1)}),1===t.length&&(e=(e=e.replace("0"+n,n+n)).replace("٠"+n,n+n)),e}(e,t,n,i)},u=function(e,t){return Array.isArray(e)?e.map(function(e){return(t(e)||"").toString()}):(t(e)||"").toString()},c=/[a-zA-Z]/g;t.getFormat=function(e){var t=[],n=u(new Date(2009,8,8,6,5,4),e),i=n.split("").map(function(e,t){return t}),o=n,a={},r=[{date:new Date(2009,8,8,6,5,4,100),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 r.forEach(function(r){var c=s(n,u(r.date,e),t,r.isDigit),d="M"!==r.pattern||a.d?r.pattern:"L";o=l(o,c,d,i),a[d]=c.length}),o=function(e,t,n,i){var o=t.split("").map(function(e,t){return n.indexOf(t)<0&&(e.match(c)||"'"===e)?i[t]:-1});return e.split("").map(function(e,t){var n=e,i=o.indexOf(t)>=0,a=t>0&&o.indexOf(t-1)>=0,r=o.indexOf(t+1)>=0;return i&&(a||(n="'"+n),r||(n+="'")),n}).join("")}(o,n,t,i),t.length?o:void 0}},function(e,t,n){var i=n(12),o=n(7).getWindow(),a=n(2);t.getSvgMarkup=function(e,t){return function(e){var t=!0;return-1===e.indexOf("xmlns:xlink")&&(e=e.replace("<svg",'<svg xmlns:xlink="http://www.w3.org/1999/xlink"')),(e=e.replace(/xmlns="[\s\S]*?"/gi,function(e){return t?(t=!1,e):""})).replace(/xmlns:NS1="[\s\S]*?"/gi,"").replace(/NS1:xmlns:xlink="([\s\S]*?)"/gi,'xmlns:xlink="$1"')}(function(e){return e.replace(/&quot;/gi,"&#34;").replace(/&amp;/gi,"&#38;").replace(/&apos;/gi,"&#39;").replace(/&lt;/gi,"&#60;").replace(/&gt;/gi,"&#62;").replace(/&nbsp;/gi,"&#160;").replace(/&shy;/gi,"&#173;")}(function(e,t){var n=i.createElement("div"),o=e.cloneNode(!0);return t&&a(o).css("backgroundColor",t),n.appendChild(o),n.innerHTML}(e,t)))},t.getSvgElement=function(e){return i.isNode(e)?e:(new o.DOMParser).parseFromString(e,"image/svg+xml").childNodes[0]}},function(e,t,n){var i=n(1),o=function(e){return e&&e.__esModule?e:{default:e}}(n(21)),a={},r=void 0;e.exports.setTemplateEngine=function(e){if((0,i.isString)(e)){if(!(r=a[e]))throw o.default.Error("E0020",e)}else r=e},e.exports.getCurrentTemplateEngine=function(){return r},e.exports.registerTemplateEngine=function(e,t){a[e]=t}},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(13).inArray,a=n(459).inherit({_getPlainItems:function(){return this._collectionWidget.option("items")||[]},getIndexByItemData:function(e){var t=this._collectionWidget.keyOf.bind(this._collectionWidget);return t?this.getIndexByKey(t(e)):o(e,this._getPlainItems())},getItemDataByIndex:function(e){return this._getPlainItems()[e]},deleteItemAtIndex:function(e){this._getPlainItems().splice(e,1)},itemsGetter:function(){return this._getPlainItems()},getKeysByItems:function(e){var t=this._collectionWidget.keyOf.bind(this._collectionWidget),n=e;if(t){n=[];for(var i=0;i<e.length;i++)n.push(t(e[i]))}return n},getIndexByKey:function(e){var t=this._cache,n=t&&t.keys||this.getKeysByItems(this._getPlainItems());if(t&&!t.keys&&(t.keys=n),"object"!==(void 0===e?"undefined":i(e)))return n.indexOf(e);for(var o=0,a=n.length;o<a;o++)if(this._equalKeys(e,n[o]))return o;return-1},getItemsByKeys:function(e,t){return(t||e).slice()},moveItemAtIndexToIndex:function(e,t){var n=this._getPlainItems(),i=n[e];n.splice(e,1),n.splice(t,0,i)},_isItemIndex:function(e){return"number"==typeof e&&Math.round(e)===e},_getNormalizedItemIndex:function(e){return this._collectionWidget._itemElements().index(e)},_normalizeItemIndex:function(e){return e},_denormalizeItemIndex:function(e){return e},_getItemByNormalizedIndex:function(e){return e>-1?this._collectionWidget._itemElements().eq(e):null},_itemsFromSameParent:function(){return!0}});e.exports=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),a=function(){function e(t,n,i){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.instance=null,this.$container=null,this.$placeMarker=null,this.editor=n,this.name=t,this.options=i||{}}return i(e,[{key:"_addPlaceMarker",value:function(e){this.$placeMarker=(0,o.default)("<div>").appendTo(e)}},{key:"_addToContainer",value:function(e){var t=this.$placeMarker,n=this.$container;t?t.replaceWith(e):e.appendTo(n)}},{key:"_attachEvents",value:function(){throw"Not implemented"}},{key:"_create",value:function(){throw"Not implemented"}},{key:"_isRendered",value:function(){return!!this.instance}},{key:"_isVisible",value:function(){var e=this.editor;return this.options.visible||!e.option("readOnly")}},{key:"_isDisabled",value:function(){throw"Not implemented"}},{key:"_shouldRender",value:function(){return this._isVisible()&&!this._isRendered()}},{key:"dispose",value:function(){var e=this.instance,t=this.$placeMarker;e&&(e.dispose?e.dispose():e.remove(),this.instance=null),t&&t.remove()}},{key:"render",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$container;if(this.$container=e,this._isVisible()){var t=this._create(),n=t.instance,i=t.$element;this.instance=n,this._attachEvents(n,i)}else this._addPlaceMarker(e)}},{key:"update",value:function(){return this._shouldRender()&&this.render(),!!this.instance}}]),e}();t.default=a},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(3).each,s=n(16),l=n(14),u=n(294),c="dxNativeScrollable",d="dx-scrollable-native",h="vertical",p="horizontal",f=l.inherit({ctor:function(e){this._init(e)},_init:function(e){this._component=e,this._$element=e.$element(),this._$container=e._$container,this._$content=e._$content,this._direction=e.option("direction"),this._useSimulatedScrollbar=e.option("useSimulatedScrollbar"),this._showScrollbar=e.option("showScrollbar"),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)},render:function(){this._renderPushBackOffset();var e=s.real().platform;this._$element.addClass(d).addClass(d+"-"+e).toggleClass("dx-scrollable-scrollbars-hidden",!this._showScrollbar),this._showScrollbar&&this._useSimulatedScrollbar&&this._renderScrollbars()},updateBounds:a,_renderPushBackOffset:function(){var e=this.option("pushBackValue");(e||this._component._lastPushBackValue)&&(this._$content.css({paddingTop:e,paddingBottom:e}),this._component._lastPushBackValue=e)},_renderScrollbars:function(){this._scrollbars={},this._hideScrollbarTimeout=0,this._$element.addClass("dx-scrollable-scrollbar-simulated"),this._renderScrollbar(h),this._renderScrollbar(p)},_renderScrollbar:function(e){this._isDirection(e)&&(this._scrollbars[e]=new u(i("<div>").appendTo(this._$element),{direction:e,expandable:this._component.option("scrollByThumb")}))},handleInit:a,handleStart:function(){this._disablePushBack=!0},handleMove:function(e){return this._isLocked()?void(e.cancel=!0):void(this._allowedDirection()&&(e.originalEvent.isScrollingEvent=!0))},handleEnd:function(){this._disablePushBack=!1},handleCancel:a,handleStop:a,_eachScrollbar:function(e){e=e.bind(this),r(this._scrollbars||{},function(t,n){e(n,t)})},createActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._updateAction=this._createActionByOption("onUpdated")},_createActionArgs:function(){var e=this.location();return{event:this._eventForUserAction,scrollOffset:{top:-e.top,left:-e.left},reachedLeft:this._isDirection(p)?e.left>=0:void 0,reachedRight:this._isDirection(p)?e.left<=this._containerSize.width-this._componentContentSize.width:void 0,reachedTop:this._isDirection(h)?e.top>=0:void 0,reachedBottom:this._isDirection(h)?e.top<=this._containerSize.height-this._componentContentSize.height:void 0}},handleScroll:function(e){return this._isScrollLocationChanged()?(this._eventForUserAction=e,this._moveScrollbars(),this._scrollAction(this._createActionArgs()),this._lastLocation=this.location(),void this._pushBackFromBoundary()):void e.stopImmediatePropagation()},_pushBackFromBoundary:function(){var e=this.option("pushBackValue");if(e&&!this._disablePushBack){var t=this._containerSize.height-this._contentSize.height,n=this._$container.scrollTop();n?t+n-2*e||this._$container.scrollTop(e-t):this._$container.scrollTop(e)}},_isScrollLocationChanged:function(){var e=this.location(),t=this._lastLocation||{},n=t.top!==e.top,i=t.left!==e.left;return n||i},_moveScrollbars:function(){this._eachScrollbar(function(e){e.moveTo(this.location()),e.option("visible",!0)}),this._hideScrollbars()},_hideScrollbars:function(){clearTimeout(this._hideScrollbarTimeout),this._hideScrollbarTimeout=setTimeout(function(){this._eachScrollbar(function(e){e.option("visible",!1)})}.bind(this),500)},location:function(){return{left:-this._$container.scrollLeft(),top:this.option("pushBackValue")-this._$container.scrollTop()}},disabledChanged:a,update:function(){this._update(),this._updateAction(this._createActionArgs())},_update:function(){this._updateDimensions(),this._updateScrollbars()},_updateDimensions:function(){this._containerSize={height:this._$container.height(),width:this._$container.width()},this._componentContentSize={height:this._component.$content().height(),width:this._component.$content().width()},this._contentSize={height:this._$content.height(),width:this._$content.width()},this._pushBackFromBoundary()},_updateScrollbars:function(){this._eachScrollbar(function(e,t){var n=t===h?"height":"width";e.option({containerSize:this._containerSize[n],contentSize:this._componentContentSize[n]}),e.update()})},_allowedDirections:function(){return{vertical:this._isDirection(h)&&this._contentSize.height>this._containerSize.height,horizontal:this._isDirection(p)&&this._contentSize.width>this._containerSize.width}},dispose:function(){var e=this._$element.get(0).className,t=new RegExp(d+"\\S*","g");t.test(e)&&this._$element.removeClass(e.match(t).join(" ")),o.off(this._$element,"."+c),o.off(this._$container,"."+c),this._removeScrollbars(),clearTimeout(this._hideScrollbarTimeout)},_removeScrollbars:function(){this._eachScrollbar(function(e){e.$element().remove()})},scrollBy:function(e){var t=this.location();this._$container.scrollTop(-t.top-e.top+this.option("pushBackValue")),this._$container.scrollLeft(-t.left-e.left)},validate:function(){return!this.option("disabled")&&this._allowedDirection()},getDirection:function(){return this._allowedDirection()},verticalOffset:function(){return this.option("pushBackValue")}});e.exports=f},function(e,t,n){var i=n(2),o=n(4).noop,a=n(15),r=n(8),s=n(0).extend,l=n(93),u=n(58),c=n(6).Deferred,d=n(30),h="dx-loadpanel-indicator",p="dx-loadpanel-message",f=u.inherit({_supportedKeys:function(){return s(this.callBase(),{escape:o})},_getDefaultOptions:function(){return s(this.callBase(),{message:a.format("Loading"),width:222,height:90,animation:null,showIndicator:!0,indicatorSrc:"",showPane:!0,delay:0,closeOnBackButton:!1,resizeEnabled:!1,focusStateEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"generic"},options:{shadingColor:"transparent"}},{device:function(){return d.isMaterial()},options:{message:"",width:60,height:60,maxHeight:60,maxWidth:60}}])},_init:function(){this.callBase.apply(this,arguments)},_initOptions:function(){this.callBase.apply(this,arguments),this.option("templatesRenderAsynchronously",!1)},_render:function(){this.callBase(),this.$element().addClass("dx-loadpanel"),this._wrapper().addClass("dx-loadpanel-wrapper")},_renderContentImpl:function(){this.callBase(),this.$content().addClass("dx-loadpanel-content"),this._$contentWrapper=i("<div>").addClass("dx-loadpanel-content-wrapper"),this._$contentWrapper.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 c,n=this.callBase.bind(this);return this._clearShowTimeout(),this._showTimeout=setTimeout(function(){n().done(function(){t.resolve()})},e),t.promise()},_hide:function(){return this._clearShowTimeout(),this.callBase()},_clearShowTimeout:function(){clearTimeout(this._showTimeout)},_renderMessage:function(){if(this._$contentWrapper){var e=this.option("message");if(e){var t=i("<div>").addClass(p).text(e);this._$contentWrapper.append(t)}}},_renderLoadIndicator:function(){this._$contentWrapper&&this.option("showIndicator")&&(this._$indicator=i("<div>").addClass(h).appendTo(this._$contentWrapper),this._createComponent(this._$indicator,l,{indicatorSrc:this.option("indicatorSrc")}))},_cleanPreviousContent:function(){this.$content().find("."+p).remove(),this.$content().find("."+h).remove()},_togglePaneVisible:function(){this.$content().toggleClass("dx-loadpanel-pane-hidden",!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._$indicator&&this._createComponent(this._$indicator,l,{indicatorSrc:this.option("indicatorSrc")});break;default:this.callBase(e)}},_dispose:function(){this._clearShowTimeout(),this.callBase()}});r("dxLoadPanel",f),e.exports=f},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(2)),a=i(n(54)),r=n(0),s=n(1),l=i(n(132)),u=n(40),c=n(6),d=n(297),h=n(12);t.default=a.default.inherit({_getDefaultOptions:function(){return(0,r.extend)(this.callBase(),{repaintChangesOnly:!1})},ctor:function(){var e=this;this.callBase.apply(this,arguments),this._customizeStoreLoadOptions=function(t){var n=e._dataSource;n&&!n.isLoaded()&&(e._correctionIndex=0),e._correctionIndex&&t.storeLoadOptions&&(t.storeLoadOptions.skip+=e._correctionIndex)},this._dataSource&&this._dataSource.on("customizeStoreLoadOptions",this._customizeStoreLoadOptions)},reload:function(){this._correctionIndex=0},_init:function(){this.callBase(),this._refreshItemsCache(),this._correctionIndex=0},_findItemElementByKey:function(e){var t=this,n=(0,o.default)(),i=this.key();return this.itemElements().each(function(a,r){var s=(0,o.default)(r),l=t._getItemData(s);if(i?(0,u.keysEqual)(i,t.keyOf(l),e):t._isItemEquals(l,e))return n=s,!1}),n},_dataSourceChangedHandler:function(e,t){t&&t.changes?this._modifyByChanges(t.changes):this.callBase(e,t)},_isItemEquals:function(e,t){try{return JSON.stringify(e)===JSON.stringify(t)}catch(n){return e===t}},_partialRefresh:function(){if(this.option("repaintChangesOnly")){var e=(0,d.findChanges)(this._itemsCache,this._editStrategy.itemsGetter(),this.keyOf.bind(this),this._isItemEquals);if(e)return this._modifyByChanges(e,!0),this._renderEmptyMessage(),!0;this._refreshItemsCache()}return!1},_refreshItemsCache:function(){if(this.option("repaintChangesOnly"))try{this._itemsCache=(0,r.extend)(!0,[],this._editStrategy.itemsGetter())}catch(e){this._itemsCache=(0,r.extend)([],this._editStrategy.itemsGetter())}},_dispose:function(){this._dataSource&&this._dataSource.off("customizeStoreLoadOptions",this._customizeStoreLoadOptions),this.callBase()},_updateByChange:function(e,t,n,i){var o=this;if(i)this._renderItem(n.index,n.data,null,this._findItemElementByKey(n.key));else{var a=t[l.default.indexByKey(e,t,n.key)];a&&l.default.update(e,t,n.key,n.data).done(function(){o._renderItem(t.indexOf(a),a,null,o._findItemElementByKey(n.key))})}},_insertByChange:function(e,t,n,i){var o=this;(0,c.when)(i||l.default.insert(e,t,n.data,n.index)).done(function(){o._renderItem((0,s.isDefined)(n.index)?n.index:t.length,n.data),o._correctionIndex++})},_removeByChange:function(e,t,n,i){var o=this,a=i?n.index:l.default.indexByKey(e,t,n.key);if(i?n.oldItem:t[a]){var r=this._findItemElementByKey(n.key),s=this._extendActionArgs(r);this._waitDeletingPrepare(r).done(function(){i?(o._updateIndicesAfterIndex(a-1),o._afterItemElementDeleted(r,s),o._normalizeSelectedItems()):(o._deleteItemElementByIndex(a),o._afterItemElementDeleted(r,s))}),this._correctionIndex--}},_modifyByChanges:function(e,t){var n=this,i=this._editStrategy.itemsGetter(),o={key:this.key.bind(this),keyOf:this.keyOf.bind(this)},a=this._dataSource,r=a&&a.paginate(),s=a&&a.group();(r||s)&&(e=e.filter(function(e){return"insert"!==e.type||void 0!==e.index})),e.forEach(function(e){return n["_"+e.type+"ByChange"](o,i,e,t)}),this._renderedItemsCount=i.length,this._refreshItemsCache(),this._fireContentReadyAction()},_appendItemToContainer:function(e,t,n){var i=e.children(this._itemSelector()).get(n);(0,h.insertElement)(e.get(0),t.get(0),i)},_optionChanged:function(e){switch(e.name){case"items":this._partialRefresh(e.value)||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)}}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},u=i(n(2)),c=i(n(5)),d=i(n(8)),h=n(0),p=n(4),f=i(n(7)),g=i(n(32)),_=n(1),m=i(n(84)),v=n(3),y=i(n(31)),b=i(n(153)),x=i(n(16)),w=i(n(54)),C="dx-box",k=".dx-box",S="dxBoxItemData",I={row:"minWidth",col:"minHeight"},T={row:"maxWidth",col:"maxHeight"},D={start:"flex-start",end:"flex-end",center:"center","space-between":"space-between","space-around":"space-around"},E={start:"flex-start",end:"flex-end",center:"center",stretch:"stretch"},A={row:"row",col:"column"},O=function(e,t,n){if(n=m.default.normalizeStyleProp(t,n),e.style[m.default.styleProp(t)]=n,!f.default.hasWindow()){if(""===n||!(0,_.isDefined)(n))return;var i=g.default.dasherize(t)+": "+n+";";e.attributes.style?e.attributes.style.value.indexOf(i)<0&&(e.attributes.style.value+=" "+i):e.setAttribute("style",i)}},P="dxupdate.dxBox",B="dx-box-fallback-item",M={row:"nowrap",col:"normal"},R={row:"width",col:"height"},F={row:"height",col:"width"},V={row:"marginLeft",col:"marginTop"},L={row:"marginRight",col:"marginBottom"},H={row:"marginTop",col:"marginLeft"},z={row:"marginBottom",col:"marginRight"},N={marginLeft:"marginRight",marginRight:"marginLeft"},$=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,b.default),s(t,[{key:"_renderVisible",value:function(e,n){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_renderVisible",this).call(this,e),(0,_.isDefined)(n)&&this._options.fireItemStateChangedAction({name:"visible",state:e,oldState:n})}}]),t}(),W=function(){function e(t,n){o(this,e),this._$element=t,this._option=n,this.initSize=p.noop,this.update=p.noop}return s(e,[{key:"renderBox",value:function(){this._$element.css({display:m.default.stylePropPrefix("flexDirection")+"flex"}),O(this._$element.get(0),"flexDirection",A[this._option("direction")])}},{key:"renderAlign",value:function(){this._$element.css({justifyContent:this._normalizedAlign()})}},{key:"_normalizedAlign",value:function(){var e=this._option("align");return e in D?D[e]:e}},{key:"renderCrossAlign",value:function(){this._$element.css({alignItems:this._normalizedCrossAlign()})}},{key:"_normalizedCrossAlign",value:function(){var e=this._option("crossAlign");return e in E?E[e]:e}},{key:"renderItems",value:function(e){var t=m.default.stylePropPrefix("flexDirection"),n=this._option("direction");(0,v.each)(e,function(){var e=(0,u.default)(this),i=e.data(S);e.css({display:t+"flex"}).css(T[n],i.maxSize||"none").css(I[n],i.minSize||"0"),O(e.get(0),"flexBasis",i.baseSize||0),O(e.get(0),"flexGrow",i.ratio),O(e.get(0),"flexShrink",(0,_.isDefined)(i.shrink)?i.shrink:1),e.children().each(function(e,t){(0,u.default)(t).css({width:"auto",height:"auto",display:m.default.stylePropPrefix("flexDirection")+"flex",flexBasis:0}),O(t,"flexGrow",1),O(t,"flexDirection",(0,u.default)(t)[0].style.flexDirection||"column")})})}}]),e}(),G=function(){function e(t,n){o(this,e),this._$element=t,this._option=n}return s(e,[{key:"renderBox",value:function(){this._$element.css({fontSize:0,whiteSpace:M[this._option("direction")],verticalAlign:"top"}),c.default.off(this._$element,P),c.default.on(this._$element,P,this.update.bind(this))}},{key:"renderAlign",value:function(){var e=this._$items;if(e){var t=this._option("align"),n=this.totalItemSize,i=this._option("direction"),o=this._$element[R[i]]()-n,a=0;switch(this._setItemsMargins(e,i,0),t){case"start":break;case"end":a=o,e.first().css(this._chooseMarginSide(V[i]),a);break;case"center":a=.5*o,e.first().css(this._chooseMarginSide(V[i]),a),e.last().css(this._chooseMarginSide(L[i]),a);break;case"space-between":a=.5*o/(e.length-1),this._setItemsMargins(e,i,a),e.first().css(this._chooseMarginSide(V[i]),0),e.last().css(this._chooseMarginSide(L[i]),0);break;case"space-around":a=.5*o/e.length,this._setItemsMargins(e,i,a)}}}},{key:"_setItemsMargins",value:function(e,t,n){e.css(this._chooseMarginSide(V[t]),n).css(this._chooseMarginSide(L[t]),n)}},{key:"renderCrossAlign",value:function(){var e=this._$items;if(e){var t=this._option("crossAlign"),n=this._option("direction"),i=this._$element[F[n]](),o=this;switch(t){case"start":break;case"end":(0,v.each)(e,function(){var e=(0,u.default)(this),t=e[F[n]](),a=i-t;e.css(o._chooseMarginSide(H[n]),a)});break;case"center":(0,v.each)(e,function(){var e=(0,u.default)(this),t=e[F[n]](),a=.5*(i-t);e.css(o._chooseMarginSide(H[n]),a).css(o._chooseMarginSide(z[n]),a)});break;case"stretch":e.css(o._chooseMarginSide(H[n]),0).css(o._chooseMarginSide(z[n]),0).css(F[n],"100%")}}}},{key:"_chooseMarginSide",value:function(e){return this._option("rtlEnabled")&&N[e]||e}},{key:"renderItems",value:function(e){var t=this;this._$items=e;var n=this._option("direction"),i=0,o=0,a=0;(0,v.each)(e,function(e,r){var s=(0,u.default)(r);s.css({display:"inline-block",verticalAlign:"top"}),s[R[n]]("auto"),s.removeClass(B);var l=s.data(S),c=l.ratio||0,d=t._baseSize(s),h=(0,_.isDefined)(l.shrink)?l.shrink:1;i+=c,o+=h*d,a+=d});var r=this._boxSize()-a,s=function(e){var n=e.data(S),a=t._baseSize(e),s=r>=0?n.ratio||0:((0,_.isDefined)(n.shrink)?n.shrink:1)*a,l=r>=0?i:o;return a+(l?Math.round(r*s/l):0)},l=0;(0,v.each)(e,function(e,t){var i=(0,u.default)(t),o=(0,u.default)(t).data(S),a=s(i);l+=a,i.css(T[n],o.maxSize||"none").css(I[n],o.minSize||"0").css(R[n],a),i.addClass(B)}),this.totalItemSize=l}},{key:"_baseSize",value:function(e){var t=(0,u.default)(e).data(S);return null==t.baseSize?0:"auto"===t.baseSize?this._contentSize(e):this._parseSize(t.baseSize)}},{key:"_contentSize",value:function(e){return(0,u.default)(e)[R[this._option("direction")]]()}},{key:"_parseSize",value:function(e){return String(e).match(/.+%$/)?.01*parseFloat(e)*this._boxSizeValue:e}},{key:"_boxSize",value:function(e){return arguments.length?void(this._boxSizeValue=e):(this._boxSizeValue=this._boxSizeValue||this._totalBaseSize(),this._boxSizeValue)}},{key:"_totalBaseSize",value:function(){var e=this,t=0;return(0,v.each)(this._$items,function(n,i){t+=e._baseSize(i)}),t}},{key:"initSize",value:function(){this._boxSize(this._$element[R[this._option("direction")]]())}},{key:"update",value:function(){if(this._$items&&!this._$element.is(":hidden")){this._$items.detach(),this.initSize(),this._$element.append(this._$items),this.renderItems(this._$items),this.renderAlign(),this.renderCrossAlign();var e=this._$element.get(0);this._$items.find(k).each(function(){e===(0,u.default)(this).parent().closest(k).get(0)&&c.default.triggerHandler(this,P)})}}}]),e}(),j=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,w.default),s(t,[{key:"_getDefaultOptions",value:function(){return(0,h.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{direction:"row",align:"start",crossAlign:"stretch",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,_layoutStrategy:"flex",_queue:void 0})}},{key:"_defaultOptionsRules",value:function(){return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_defaultOptionsRules",this).call(this).concat([{device:function(){var e=x.default.real(),t="android"===e.platform&&(e.version[0]<4||4===e.version[0]&&e.version[1]<4),n="ios"===e.platform&&e.version[0]<7;return"win"===e.platform||y.default.msie||t||n},options:{_layoutStrategy:"fallback"}}])}},{key:"_itemClass",value:function(){return"dx-box-item"}},{key:"_itemDataKey",value:function(){return S}},{key:"_itemElements",value:function(){return this._itemContainer().children(this._itemSelector())}},{key:"_init",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this.$element().addClass(C+"-"+this.option("_layoutStrategy")),this._initLayout(),this._initBoxQueue()}},{key:"_initLayout",value:function(){this._layout="fallback"===this.option("_layoutStrategy")?new G(this.$element(),this.option.bind(this)):new W(this.$element(),this.option.bind(this))}},{key:"_initBoxQueue",value:function(){this._queue=this.option("_queue")||[]}},{key:"_queueIsNotEmpty",value:function(){return!this.option("_queue")&&!!this._queue.length}},{key:"_pushItemToQueue",value:function(e,t){this._queue.push({$item:e,config:t})}},{key:"_shiftItemFromQueue",value:function(){return this._queue.shift()}},{key:"_initMarkup",value:function(){this.$element().addClass(C),this._layout.renderBox(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this._renderAlign(),this._renderActions()}},{key:"_renderActions",value:function(){this._onItemStateChanged=this._createActionByOption("onItemStateChanged")}},{key:"_renderAlign",value:function(){this._layout.renderAlign(),this._layout.renderCrossAlign()}},{key:"_renderItems",value:function(e){var n=this;for(this._layout.initSize(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_renderItems",this).call(this,e);this._queueIsNotEmpty();){var i=this._shiftItemFromQueue();this._createComponent(i.$item,t,(0,h.extend)({_layoutStrategy:this.option("_layoutStrategy"),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},i.config))}this._layout.renderItems(this._itemElements()),clearTimeout(this._updateTimer),this._updateTimer=setTimeout(function(){n._isUpdated||n._layout.update(),n._isUpdated=!1,n._updateTimer=null})}},{key:"_renderItemContent",value:function(e){var n=e.itemData&&e.itemData.node;return n?this._renderItemContentByNode(e,n):l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_renderItemContent",this).call(this,e)}},{key:"_postprocessRenderItem",value:function(e){var t=e.itemData.box;t&&this._pushItemToQueue(e.itemContent,t)}},{key:"_createItemByTemplate",value:function(e,n){return n.itemData.box?e.source?e.source():(0,u.default)():l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_createItemByTemplate",this).call(this,e,n)}},{key:"_visibilityChanged",value:function(e){e&&this._dimensionChanged()}},{key:"_dimensionChanged",value:function(){this._updateTimer||(this._isUpdated=!0,this._layout.update())}},{key:"_dispose",value:function(){clearTimeout(this._updateTimer),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_dispose",this).apply(this,arguments)}},{key:"_itemOptionChanged",value:function(e,n,i,o){"visible"===n&&this._onItemStateChanged({name:n,state:i,oldState:!1!==o}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_itemOptionChanged",this).call(this,e,n,i)}},{key:"_optionChanged",value:function(e){switch(e.name){case"_layoutStrategy":case"_queue":case"direction":this._invalidate();break;case"align":this._layout.renderAlign();break;case"crossAlign":this._layout.renderCrossAlign();break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_itemOptions",value:function(){var e=this,n=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_itemOptions",this).call(this);return n.fireItemStateChangedAction=function(t){e._onItemStateChanged(t)},n}},{key:"repaint",value:function(){this._dimensionChanged()}}]),t}();j.ItemClass=$,(0,d.default)("dxBox",j),e.exports=j},function(e,t,n){e.exports=n(527)},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(14),s=n(33),l=r.abstract,u=r.inherit({ctor:function(e){this.dateBox=e},widgetOption:function(){return this._widget&&this._widget.option.apply(this._widget,arguments)},_renderWidget:function(e){e=e||i("<div>"),this._widget=this._createWidget(e),this._widget.$element().appendTo(this._getWidgetContainer())},_createWidget:function(e){var t=this._getWidgetName(),n=this._getWidgetOptions();return this.dateBox._createComponent(e,t,n)},_getWidgetOptions:l,_getWidgetName:l,getDefaultOptions:function(){return{mode:"text"}},getDisplayFormat:l,supportedKeys:a,attachKeyboardEvents:function(e){this._widgetKeyboardProcessor=e.attachChildProcessor()},getParsedText:function(e,t){var n=s.parse(e,t);return n||s.parse(e)},renderInputMinMax:a,renderOpenedState:function(){this._updateValue()},popupConfig:l,renderPopupContent:function(){var e=this._getPopup();this._renderWidget();var t=e.$content().parent();o.off(t,"mousedown"),o.on(t,"mousedown",this._preventFocusOnPopup.bind(this))},getFirstPopupElement:a,getLastPopupElement:a,_preventFocusOnPopup:function(e){e.preventDefault()},_getWidgetContainer:function(){return this._getPopup().$content()},_getPopup:function(){return this.dateBox._popup},popupShowingHandler:a,popupHiddenHandler:a,_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},_valueChangedHandler:function(e){this.dateBox.option("opened")&&"instantly"===this.dateBox.option("applyValueMode")&&this.dateBoxValue(e.value)},useCurrentDateByDefault:a,textChangedHandler:a,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"])}});e.exports=u},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=i(n(2)),r=i(n(39)),s=n(6),l=n(32),u={moveTo:function(e){var t=e.$element,n=e.position,i=e.direction||"left",o={},a=void 0;"right"===i&&(o.transform="translate("+n+"px, 0px)",a="custom"),"left"===i&&(o.left=n,a="slide"),"top"!==i&&"bottom"!==i||(o.top=n,a="slide"),r.default.animate(t,{type:a,to:o,duration:e.duration,complete:e.complete})},margin:function(e){var t=e.$element,n=e.margin,i=e.direction||"left",o={};o["margin"+(0,l.camelize)(i,!0)]=n,r.default.animate(t,{to:o,duration:e.duration,complete:e.complete})},fade:function(e,t,n,i){r.default.animate(e,{type:"fade",to:t.to,from:t.from,duration:n,complete:i})},size:function(e){var t=e.$element,n=e.size,i=e.direction||"left",o=e.marginTop||0,a=e.duration,s={};"right"===i||"left"===i?s.width=n:s.height=n,"bottom"===i&&(s.marginTop=o),r.default.animate(t,{to:s,duration:a,complete:e.complete})},complete:function(e){r.default.stop(e,!0)}},c=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._drawer=t}return o(e,[{key:"getDrawerInstance",value:function(){return this._drawer}},{key:"renderPanel",value:function(e,t){e&&e.render({container:this.getDrawerInstance().content(),onRendered:function(){t.resolve()}})}},{key:"renderPosition",value:function(e,t){var n=this.getDrawerInstance().option("revealMode");this.prepareAnimationDeferreds(t);var i=this.getPositionRenderingConfig(e);this.useDefaultAnimation()?this.defaultPositionRendering(i,e,t):("slide"===n&&this.slidePositionRendering(i,e,t),"expand"===n&&this.expandPositionRendering(i,e,t))}},{key:"prepareAnimationDeferreds",value:function(e){var t=this.getDrawerInstance();this._contentAnimation=new s.Deferred,this._panelAnimation=new s.Deferred,this._shaderAnimation=new s.Deferred,t._animations.push(this._contentAnimation,this._panelAnimation,this._shaderAnimation),e?s.when.apply(a.default,t._animations).done(function(){t._animationCompleteHandler()}):t.resizeContent()}},{key:"getPositionRenderingConfig",value:function(e){var t=this.getDrawerInstance();return{direction:t.getDrawerPosition(),$panel:(0,a.default)(t.content()),$content:(0,a.default)(t.viewContent()),defaultAnimationConfig:this._defaultAnimationConfig(),size:this._getPanelSize(e)}}},{key:"useDefaultAnimation",value:function(){return!1}},{key:"_elementsAnimationCompleteHandler",value:function(){this._contentAnimation.resolve(),this._panelAnimation.resolve()}},{key:"_defaultAnimationConfig",value:function(){var e=this;return{complete:function(){e._elementsAnimationCompleteHandler()}}}},{key:"_getPanelOffset",value:function(e){var t=this.getDrawerInstance(),n=t.isHorizontalDirection()?t.getRealPanelWidth():t.getRealPanelHeight();return e?-(n-t.getMaxSize()):-(n-t.getMinSize())}},{key:"_getPanelSize",value:function(e){return e?this.getDrawerInstance().getMaxSize():this.getDrawerInstance().getMinSize()}},{key:"renderShaderVisibility",value:function(e,t,n){var i=this,o=this._getFadeConfig(e),r=this.getDrawerInstance();t?u.fade((0,a.default)(r._$shader),o,n,function(){i._drawer._toggleShaderVisibility(e),i._shaderAnimation.resolve()}):(r._toggleShaderVisibility(e),r._$shader.css("opacity",o.to))}},{key:"_getFadeConfig",value:function(e){return e?{to:1,from:0}:{to:0,from:1}}},{key:"getPanelContent",value:function(){return(0,a.default)(this.getDrawerInstance().content())}},{key:"getWidth",value:function(){return this.getDrawerInstance().$element().get(0).getBoundingClientRect().width}},{key:"setPanelSize",value:function(e){var t=this.getDrawerInstance(),n=this._getPanelSize(t.option("opened"));t.isHorizontalDirection()?(0,a.default)(t.content()).width(e?t.getRealPanelWidth():n):(0,a.default)(t.content()).height(e?t.getRealPanelHeight():n)}},{key:"needOrderContent",value:function(){return!1}}]),e}();e.exports=c,e.exports.animation=u},function(e,t,n){var i=n(2),o=n(7).getWindow(),a=n(16),r=n(8),s=n(0).extend,l=n(17),u=n(34),c=n(138),d=n(87),h=n(102),p=n(30),f=n(133),g={popupWidth:"width",popupHeight:"height",popupMaxHeight:"maxHeight",popupAutoResizeEnabled:"autoResizeEnabled"},_={buttonIcon:"icon",buttonText:"text",buttonWidth:"width",buttonHeight:"height",buttonTemplate:"template"},m=l.inherit({_supportedKeys:function(){var e={};return this.option("opened")&&this._list.option("focusedElement")||(e=this._button._supportedKeys()),s(this.callBase(),e,{tab:function(){this._popup&&this._popup.hide()}})},_getDefaultOptions:function(){return s(this.callBase(),{items:[],onItemClick:null,dataSource:null,itemTemplate:"item",buttonText:"",buttonIcon:"overflow",buttonWidth:void 0,buttonHeight:void 0,buttonTemplate:"content",onButtonClick:null,usePopover:!1,popupWidth:"auto",popupHeight:"auto",activeStateEnabled:!0,hoverStateEnabled:!0,opened:!1,deferRendering:!1,popupPosition:{my:"top center",at:"bottom center",collision:"fit flip",offset:{v:1}},popupAnimation:void 0,onItemRendered:null,menuWidget:h,popupMaxHeight:void 0,closeOnClick:!0,useInkRipple:!1,container:void 0,popupAutoResizeEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{usePopover:!0}},{device:{platform:"generic"},options:{popupPosition:{offset:{v:4}}}},{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}},{device:{platform:"android"},options:{popupPosition:{my:"top "+(this.option("rtlEnabled")?"left":"right"),at:"top "+(this.option("rtlEnabled")?"left":"right"),collision:"flipfit"},popupAnimation:{show:{type:"pop",duration:200,from:{scale:0},to:{scale:1}},hide:{type:"pop",duration:200,from:{scale:1},to:{scale:0}}}}},{device:function(){return p.isMaterial()},options:{useInkRipple:!0}}])},_initOptions:function(e){"android"===a.current().platform&&(e.popupPosition||(e.popupPosition={at:(e.usePopover?"bottom ":"top ")+(e.rtlEnabled?"left":"right")})),this.callBase(e)},_dataSourceOptions:function(){return{paginate:!1}},_init:function(){this.callBase(),this.$element().addClass("dx-dropdownmenu"),this._initDataSource(),this._initItemClickAction(),this._initButtonClickAction()},_initItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initButtonClickAction:function(){this._buttonClickAction=this._createActionByOption("onButtonClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.content=new f("content",this)},_initMarkup:function(){this._renderButton(),this.callBase()},_render:function(){this.callBase(),this.setAria({role:"menubar",haspopup:!0,expanded:this.option("opened")})},_renderContentImpl:function(){this.option("opened")&&this._renderPopup()},_clean:function(){this._cleanFocusState(),this._popup&&(this._popup.$element().remove(),delete this._$popup)},_renderButton:function(){var e=this.$element().addClass("dx-dropdownmenu-button"),t=this._buttonOptions();this._button=this._createComponent(e,u,t)},_toggleActiveState:function(e,t,n){this._button._toggleActiveState(e,t,n)},_buttonOptions:function(){return{text:this.option("buttonText"),icon:this.option("buttonIcon"),width:this.option("buttonWidth"),height:this.option("buttonHeight"),useInkRipple:this.option("useInkRipple"),template:this.option("buttonTemplate"),focusStateEnabled:!1,onClick:function(e){this.option("opened",!this.option("opened")),this._buttonClickAction(e)}.bind(this)}},_toggleMenuVisibility:function(e){var t=void 0===e?!this._popup.option("visible"):e;e&&this._renderPopup(),this._popup.toggle(t),this.setAria("expanded",t)},_renderPopup:function(){if(!this._$popup){var e=this._$popup=i("<div>").appendTo(this.$element()),t=this._popupOptions();this._popup=this._createComponent(e,c,t)}},_popupOptions:function(){var e=!this.option("usePopover");return{onInitialized:function(t){t.component._wrapper().addClass("dx-dropdownmenu-popup-wrapper").toggleClass("dx-dropdownmenu-popup",e)},visible:this.option("opened"),deferRendering:!1,contentTemplate:function(e){this._renderList(e)}.bind(this),position:this.option("popupPosition"),animation:this.option("popupAnimation"),onOptionChanged:function(e){"visible"===e.name&&this.option("opened",e.value)}.bind(this),target:this.$element(),height:this.option("popupHeight"),width:this.option("popupWidth"),maxHeight:this.option("popupMaxHeight"),container:this.option("container"),autoResizeEnabled:this.option("popupAutoResizeEnabled")}},_renderList:function(e){var t=i(e),n=this._listOptions();t.addClass("dx-dropdownmenu-list"),this._list=this._createComponent(t,this.option("menuWidget"),n),this._list._getAriaTarget=function(){return this.$element()}.bind(this),this._setListDataSource();var a=.5*i(o).height();t.height()>a&&t.height(a)},_listOptions:function(){return{_keyboardProcessor:this._listProcessor,pageLoadMode:"scrollBottom",indicateLoading:!1,noDataText:"",itemTemplate:this.option("itemTemplate"),onItemClick:function(e){this.option("closeOnClick")&&this.option("opened",!1),this._itemClickAction(e)}.bind(this),tabIndex:-1,focusStateEnabled:this.option("focusStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),onItemRendered:this.option("onItemRendered"),_itemAttributes:{role:"menuitem"}}},_setListDataSource:function(){this._list&&this._list.option("dataSource",this._dataSource||this.option("items")),delete this._deferRendering},_attachKeyboardEvents:function(){this.callBase.apply(this,arguments),this._listProcessor=this._keyboardProcessor&&this._keyboardProcessor.attachChildProcessor(),this._list&&this._list.option("_keyboardProcessor",this._listProcessor)},_cleanFocusState:function(){this.callBase.apply(this,arguments),delete this._listProcessor},_toggleVisibility:function(e){this.callBase(e),this._button.option("visible",e)},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"items":case"dataSource":this.option("deferRendering")&&!this.option("opened")?this._deferRendering=!0:(this._refreshDataSource(),this._setListDataSource());break;case"itemTemplate":this._list&&this._list.option(t,this._getTemplate(n));break;case"onItemClick":this._initItemClickAction();break;case"onButtonClick":this._buttonClickAction();break;case"buttonIcon":case"buttonText":case"buttonWidth":case"buttonHeight":case"buttonTemplate":this._button.option(_[t],n),this._renderPopup();break;case"popupWidth":case"popupHeight":case"popupMaxHeight":case"popupAutoResizeEnabled":this._popup.option(g[t],n);break;case"usePopover":case"menuWidget":case"useInkRipple":this._invalidate();break;case"focusStateEnabled":case"activeStateEnabled":this._list&&this._list.option(t,n),this.callBase(e);break;case"onItemRendered":this._list&&this._list.option(t,n);break;case"opened":this._deferRendering&&(this._refreshDataSource(),this._setListDataSource()),this._toggleMenuVisibility(n);break;case"deferRendering":case"popupPosition":case"closeOnClick":break;case"container":this._popup&&this._popup.option(e.name,e.value);break;default:this.callBase(e)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)}}).include(d);r("dxDropDownMenu",m),e.exports=m},function(e,t,n){var i=n(37),o=n(25),a=n(18),r=n(66),s=n(0).extend,l=n(3).map,u=n(173),c=n(100),d=n(546),h=n(8),p=r.inherit({_getDefaultOptions:function(){return s(this.callBase(),{validationRules:[]})},_init:function(){this.callBase(),this._initGroupRegistration(),this.focused=o(),this._initAdapter()},_initGroupRegistration:function(){var e=this._findGroup();this._groupWasInit||this.on("disposing",function(e){c.removeRegisteredValidator(e.component._validationGroup,e.component)}),this._groupWasInit&&this._validationGroup===e||(c.removeRegisteredValidator(this._validationGroup,this),this._groupWasInit=!0,this._validationGroup=e,c.registerValidatorInGroup(e,this))},_setOptionsByReference:function(){this.callBase(),s(this._optionsByReference,{validationGroup:!0})},_initAdapter:function(){var e=this,t=e.$element()[0],n=i.data(t,"dx-validation-target"),o=e.option("adapter");if(!o){if(n)return(o=new d(n,this)).validationRequestsCallbacks.add(function(){e.validate()}),void this.option("adapter",o);throw a.Error("E0120")}var r=o.validationRequestsCallbacks;r&&(Array.isArray(r)?r.push(function(){e.validate()}):(a.log("W0014","validationRequestsCallbacks","jQuery.Callbacks","17.2","Use the array instead"),r.add(function(){e.validate()})))},_initMarkup:function(){this.$element().addClass("dx-validator"),this.callBase()},_visibilityChanged:function(e){e&&this._initGroupRegistration()},_optionChanged:function(e){switch(e.name){case"validationGroup":return void this._initGroupRegistration();case"validationRules":return this._resetValidationRules(),void(void 0!==this.option("isValid")&&this.validate());case"adapter":this._initAdapter();break;default:this.callBase(e)}},_getValidationRules:function(){return this._validationRules||(this._validationRules=l(this.option("validationRules"),function(e){return s({},e,{validator:this})}.bind(this))),this._validationRules},_resetValidationRules:function(){delete this._validationRules},validate:function(){var e,t=this.option("adapter"),n=this.option("name"),i=t.bypass&&t.bypass(),o=t.getValue(),a=t.getCurrentValidationError&&t.getCurrentValidationError(),r=this._getValidationRules();return i?e={isValid:!0}:a&&a.editorSpecific?(a.validator=this,e={isValid:!1,brokenRule:a}):e=c.validate(o,r,n),this._applyValidationResult(e,t),e},reset:function(){var e=this.option("adapter");e.reset(),this._resetValidationRules(),this._applyValidationResult({isValid:!0,brokenRule:null},e)},_applyValidationResult:function(e,t){var n=this._createActionByOption("onValidated");e.validator=this,t.applyValidationResults&&t.applyValidationResults(e),this.option({isValid:e.isValid}),n(e)},focus:function(){var e=this.option("adapter");e&&e.focus&&e.focus()}}).include(u);h("dxValidator",p),e.exports=p},function(e,t,n){var i=n(2),o=n(5),a=n(16),r=n(8),s=n(34),l=n(72),u=n(9),c=n(0).extend,d=n(1).isPlainObject,h=n(24),p=n(3),f=n(309),g=n(30),_=n(89),m=n(94),v=n(190).default,y=n(60),b=n(65),x="dx-tabs-expanded",w="dx-tabs-stretched",C="dx-tabs-nav-buttons",k="dx-overflow-hidden",S="dx-tab",I="chevronnext",T="chevronprev",D=v.inherit({_activeStateUnit:"."+S,_getDefaultOptions:function(){return c(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}})},_defaultOptionsRules:function(){var e=g.current();return this.callBase().concat([{device:function(){return"generic"!==a.real().platform},options:{showNavButtons:!1}},{device:{platform:"generic"},options:{scrollByContent:!1}},{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return g.isMaterial(e)},options:{useInkRipple:!0,selectOnFocus:!1}}])},_init:function(){this.callBase(),this.setAria("role","tablist"),this.$element().addClass("dx-tabs"),this._renderWrapper(),this._renderMultiple(),this._feedbackHideTimeout=100},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new b(function(e,t){d(t)?this._prepareDefaultItemTemplate(t,e):e.text(String(t));var n=y.getImageContainer(t.icon);e.wrapInner(i("<span>").addClass("dx-tab-text")),n&&n.prependTo(e)}.bind(this),["text","html","icon"],this.option("integrationOptions.watchMethod"))},_itemClass:function(){return S},_selectedItemClass:function(){return"dx-tab-selected"},_itemDataKey:function(){return"dxTabData"},_initMarkup:function(){this.callBase(),this.setAria("role","tab",this.itemElements()),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().addClass(k)},_render:function(){this.callBase(),this._renderScrolling()},_renderScrolling:function(){var e=[w,x,k];this.$element().removeClass(e.join(" ")),this.option("scrollingEnabled")&&this._isItemsWidthExceeded()&&(this._scrollable||(this._renderScrollable(),this._renderNavButtons()),this._scrollable.update(),this._updateNavButtonsVisibility(),this.option("rtlEnabled")&&this._scrollable.scrollTo({left:this._scrollable.scrollWidth()-this._scrollable.clientWidth()}),this._scrollToItem(this.option("selectedItem"))),this.option("scrollingEnabled")&&this._isItemsWidthExceeded()||(this._cleanScrolling(),this._needStretchItems()&&!this._isItemsWidthExceeded()&&this.$element().addClass(w),this.$element().removeClass(C).addClass(x))},_isItemsWidthExceeded:function(){return this._getSummaryItemsWidth(this._getVisibleItems(),!0)-1>this.$element().width()},_needStretchItems:function(){var e=this._getVisibleItems(),t=this.$element().width(),n=[];return p.each(e,function(e,t){n.push(i(t).outerWidth(!0))}),Math.max.apply(null,n)>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=l.render()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:e,event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_renderMultiple:function(){"multiple"===this.option("selectionMode")&&this.option("selectOnFocus",!1)},_renderWrapper:function(){this._$wrapper=i("<div>").addClass("dx-tabs-wrapper"),this.$element().append(this._$wrapper)},_itemContainer:function(){return this._$wrapper},_renderScrollable:function(){var e=this.$element().wrapInner(i("<div>").addClass("dx-tabs-scrollable")).children();this._scrollable=this._createComponent(e,m,{direction:"horizontal",showScrollbar:!1,useKeyboard:!1,useNative:!1,scrollByContent:this.option("scrollByContent"),onScroll:this._updateNavButtonsVisibility.bind(this)}),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(C,this.option("showNavButtons")),this.option("showNavButtons")){var e=this.option("rtlEnabled");this._leftButton=this._createNavButton(-30,e?I:T);var t=this._leftButton.$element();t.addClass("dx-tabs-nav-button-left"),this.$element().prepend(t),this._rightButton=this._createNavButton(30,e?T:I);var n=this._rightButton.$element();n.addClass("dx-tabs-nav-button-right"),this.$element().append(n)}},_updateNavButtonsVisibility:function(){this._leftButton&&this._leftButton.option("disabled",this._scrollable.scrollLeft()<=0),this._rightButton&&this._rightButton.option("disabled",this._scrollable.scrollLeft()>=Math.round(this._scrollable.scrollWidth()-this._scrollable.clientWidth()))},_updateScrollPosition:function(e,t){this._scrollable.update(),this._scrollable.scrollBy(e/t)},_createNavButton:function(e,t){var n=this,a=n._createAction(function(){n._holdInterval=setInterval(function(){n._updateScrollPosition(e,5)},5)}),r=u.addNamespace(_.name,"dxNavButton"),l=u.addNamespace(h.up,"dxNavButton"),c=u.addNamespace(h.out,"dxNavButton"),d=this._createComponent(i("<div>").addClass("dx-tabs-nav-button"),s,{focusStateEnabled:!1,icon:t,onClick:function(){n._updateScrollPosition(e,1)},integrationOptions:{}}),p=d.$element();return o.on(p,r,{timeout:300},function(e){a({event:e})}.bind(this)),o.on(p,l,function(){n._clearInterval()}),o.on(p,c,function(){n._clearInterval()}),d},_clearInterval:function(){this._holdInterval&&clearInterval(this._holdInterval)},_renderSelection: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._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)}}});D.ItemClass=f,r("dxTabs",D),e.exports=D,e.exports.getTabsExpandedClass=x},function(e,t,n){var i=function(e){return e&&e.__esModule?e:{default:e}}(n(329)).default;e.exports={extend:function(e){i=i.inherit(e)},create:function(e){return new i(e)}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return e&&e.length>1&&"!"===e[0]&&!_(e)}function a(e){return o(e)?e[1]:e}function r(e,t){!function(e){return-1!==e.indexOf("!")}(t)?o(e)&&function(e){var t=a(e);e.length=0,[].push.apply(e,t)}(e):o(e)||function(e){var t=e.slice(0);e.length=0,e.push("!",t)}(e)}function s(e){if(_(e))return K;for(var t="",n=0;n<e.length;n++){var i=e[n];if(!Array.isArray(i)){if(t&&t!==i)throw new M.errors.Error("E4019");"!"!==i&&(t=i)}}return t}function l(e){var t=a(e),n=s(t);return n||(n=K),t!==e&&(n="!"+n),n}function u(e){var t=function(e){return Array.isArray(e)&&e.length}(e.filterOperations)?e.filterOperations:function(e){return e.lookup&&Q||X[e.dataType||j]}(e);return(0,H.extend)([],t)}function c(e,t){var n=G.default.getNameByFilterOperation(e);return t&&t[n]?t[n]:n}function d(e,t){var n=e.filter(function(e){return e.name===t});return n.length?n[0]:null}function h(e){return e.defaultFilterOperation||u(e)[0]}function p(e,t){var n=a(e),i=n.indexOf(t);return n.splice(i,1),1!==n.length&&n.splice(i,1),e}function f(e,t){for(var n=0;n<t.length;n++)if(t[n].dataField.toLowerCase()===e.toLowerCase())return t[n];var i=I(t,!0).filter(function(t){return t.dataField.toLowerCase()===e.toLowerCase()});if(i.length>0)return i[0];throw new F.default.Error("E1047",e)}function g(e){return!!Array.isArray(e)&&(e.length<2||Array.isArray(e[0])||Array.isArray(e[1]))}function _(e){return!!Array.isArray(e)&&e.length>1&&!Array.isArray(e[0])&&!Array.isArray(e[1])}function m(e,t){for(var n=s(e).toLowerCase()||K,i=[],o=0;o<e.length;o++)g(e[o])?(i.push(y(e[o],t)),i.push(n)):_(e[o])&&(i.push(v(e[o],t)),i.push(n));return 0===i.length&&i.push(n),i}function v(e,t){return function(e,t){var n=d(t,e[1]);return n&&n.name===e[1]}(e,t)?e:(e.length<3&&(e[2]=e[1],e[1]=U),e)}function y(e,t){return e?_(e=(0,H.extend)(!0,[],e))?[v(e,t),K]:o(e)?["!",_(e[1])?[v(e[1],t),K]:o(e[1])?[y(e[1],t),K]:m(e[1],t)]:m(e,t):[K]}function b(e,t,n,i){var o=f(e[0],t),a=v(e,n),r=n.length&&d(n,a[1]);return r&&r.calculateFilterExpression?r.calculateFilterExpression.apply(r,[a[2],o,i]):o.calculateFilterExpression?o.calculateFilterExpression.apply(o,[a[2],a[1],i]):o.defaultCalculateFilterExpression.apply(o,[a[2],a[1],i])}function x(e,t,n,i){var o;return o=!0===t?e.trueText||$.default.format("dxDataGrid-trueText"):!1===t?e.falseText||$.default.format("dxDataGrid-falseText"):function(e,t){var n=e.format||Z[e.dataType];return L.default.format(t,n)}(e,t),e.customizeText&&(o=e.customizeText.call(e,{value:t,valueText:o,target:i})),n&&n.customizeText&&(o=n.customizeText.call(n,{value:t,valueText:o,field:e,target:i})),o}function w(e){return""===e||null===e}function C(e,t){return e.some(function(e){return e.dataField===t})}function k(e,t,n){var i=n.dataField;T(i)&&(n.parentId=D(i),C(t,n.parentId)||C(e,n.parentId)||k(e,t,{dataType:"object",dataField:n.parentId,caption:S(n.parentId,!0),filterOperations:["isblank","isnotblank"]})),t.push(n)}function S(e,t){var n="";if(t)e=e.substring(e.lastIndexOf(".")+1);else if(T(e))return e.split(".").forEach(function(e,t,i){n+=z.default.captionize(e),t!==i.length-1&&(n+=".")}),n;return z.default.captionize(e)}function I(e,t){for(var n=[],i=0;i<e.length;i++){var o=(0,H.extend)(!0,{caption:S(e[i].dataField,t)},e[i]);t?k(e,n,o):n.push(o)}return n}function T(e){return-1!==e.lastIndexOf(".")}function D(e){return e.substring(0,e.lastIndexOf("."))}function E(e,t,n){var i=d(n,t);return i?(!1===i.hasValue?(e[1]=t,e.length=2):(e[1]=t,e[2]=""),e):("isblank"===t?(e[1]=U,e[2]=null):"isnotblank"===t?(e[1]=Y,e[2]=null):(((i=d(n,e[1]))||2===e.length||null===e[2])&&(e[2]=""),e[1]=t),e)}function A(e){return""!==e[2]}function O(e,t){return e[0]===t}function P(e,t,n){var i=[];return e.forEach(function(e){_(e)?O(e,t[0])?n?(i.push(t),n=!1):i.splice(i.length-1,1):i.push(e):(i.length||g(e))&&i.push(e)}),0===i.length?null:(n&&(i.push(K),i.push(t)),1===i.length?i[0]:i)}var B=n(6),M=n(35),R=n(1),F=i(n(18)),V=i(n(165)),L=i(n(63)),H=n(0),z=i(n(32)),N=i(n(622)),$=i(n(15)),W=n(45),G=i(n(623)),j="string",q="icon-none",K="and",U="=",Y="<>",X={number:["=","<>","<",">","<=",">=","isblank","isnotblank"],string:["contains","notcontains","startswith","endswith","=","<>","isblank","isnotblank"],date:["=","<>","<",">","<=",">=","isblank","isnotblank"],datetime:["=","<>","<",">","<=",">=","isblank","isnotblank"],boolean:["=","<>","isblank","isnotblank"],object:["isblank","isnotblank"]},Z={date:"shortDate",datetime:"shortDateShortTime"},Q=["=","<>","isblank","isnotblank"],J=["caption","customizeText","dataField","dataType","editorTemplate","falseText","editorOptions","filterOperations","format","lookup","trueText","calculateFilterExpression"];t.isValidCondition=A,t.isEmptyGroup=function(e){var t=a(e);return!_(t)&&!t.some(function(e){return _(e)})},t.getOperationFromAvailable=function(e,t){for(var n=0;n<t.length;n++)if(t[n].value===e)return t[n];throw new F.default.Error("E1048",e)},t.updateConditionByOperation=E,t.getCaptionWithParents=function e(t,n){if(T(t.dataField))for(var i=D(t.dataField),o=0;o<n.length;o++)if(n[o].dataField===i)return e(n[o],n)+"."+t.caption;return t.caption},t.getItems=I,t.setGroupValue=function(e,t){var n;return r(e,t),function(e,t){for(n=0;n<e.length;n++)Array.isArray(e[n])||(e[n]=t)}(a(e),t=function(e){return-1===e.indexOf("!")?e:e.substring(1)}(t)),e},t.getGroupMenuItem=function(e,t){var n=l(e);return t.filter(function(e){return e.value===n})[0]},t.getGroupValue=l,t.getAvailableOperations=function(e,t,n){var i=u(e);return n.forEach(function(t){if(!e.filterOperations&&-1===i.indexOf(t.name)){var n=t&&t.dataTypes;n&&n.indexOf(e.dataType||j)>=0&&i.push(t.name)}}),i.map(function(e){var i=d(n,e);return i?{icon:i.icon||q,text:i.caption||z.default.captionize(i.name),value:i.name,isCustom:!0}:{icon:G.default.getIconByFilterOperation(e)||q,text:c(e,t),value:e}})},t.removeItem=p,t.createCondition=function(e,t){var n=[e.dataField,"",""];return E(n,h(e),t),n},t.createEmptyGroup=function(e){return-1!==e.indexOf("not")?["!",[e.substring(3).toLowerCase()]]:[e]},t.addItem=function(e,t){var n=a(t),i=l(n);return 1===n.length?n.unshift(e):n.push(e,i),t},t.getField=f,t.isGroup=g,t.isCondition=_,t.getNormalizedFields=function(e){return e.reduce(function(e,t){if((0,R.isDefined)(t.dataField)){var n={};for(var i in t)t[i]&&J.indexOf(i)>-1&&(n[i]=t[i]);n.defaultCalculateFilterExpression=V.default.defaultCalculateFilterExpression,(0,R.isDefined)(n.dataType)||(n.dataType=j),e.push(n)}return e},[])},t.getNormalizedFilter=function e(t){var n,i=a(t);if(0===i.length)return null;var r=[];for(n=0;n<i.length;n++)if(g(i[n])){var s=e(i[n]);s?i[n]=s:r.push(i[n])}else _(i[n])&&(A(i[n])||r.push(i[n]));for(n=0;n<r.length;n++)p(i,r[n]);return 1===i.length?null:(i.splice(i.length-1,1),1===i.length&&(t=function(e,t){return o(e)?e[1]=t:e=t,e}(t,i[0])),0===t.length?null:t)},t.getGroupCriteria=a,t.convertToInnerStructure=y,t.getDefaultOperation=h,t.getCurrentValueText=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"filterBuilder";if(w(t))return"";if(Array.isArray(t)){var o=new B.Deferred;return B.when.apply(this,function(e,t,n,i){return t.map(function(t){return x(e,t,n,i)})}(e,t,n,i)).done(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.some(function(e){return!w(e)})?t.map(function(e){return w(e)?"?":e}):"";o.resolve(i)}),o}return x(e,t,n,i)},t.getCurrentLookupValueText=function(e,t,n){if(""!==t){var i=e.lookup;i.items?n(i.calculateCellValue(t)||""):new W.DataSource(i.dataSource).loadSingle(i.valueExpr,t).done(function(e){n(e?i.displayExpr?e[i.displayExpr]:e:"")}).fail(function(){n("")})}else n("")},t.getFilterOperations=u,t.getCaptionByOperation=c,t.getOperationValue=function(e){return null===e[2]?e[1]===U?"isblank":"isnotblank":e[1]},t.getFilterExpression=function e(t,n,i,r){if(!(0,R.isDefined)(t))return null;if(o(t))return["!",e(t[1],n,i,r)];var s=a(t);if(_(s))return b(s,n,i,r)||null;for(var u=void 0,c=l(s),d=[],h=0;h<s.length;h++)g(s[h])?(u=e(s[h],n,i,r))&&(h&&d.push(c),d.push(u)):_(s[h])&&(u=b(s[h],n,i,r))&&(h&&d.push(c),d.push(u));return d.length?d:null},t.getCustomOperation=d,t.getMergedOperations=function(e,t){var n=(0,H.extend)(!0,[],e),i=-1;return n.some(function(e,t){if("between"===e.name)return i=t,!0}),-1!==i?n[i]=(0,H.extend)(N.default.getConfig(t),n[i]):n.unshift(N.default.getConfig(t)),n},t.syncFilters=function(e,t){return null===e||0===e.length?t:_(e)?O(e,t[0])?t:[e,K,t]:l(e)!==K?[t,"and",e]:P(e,t,!0)},t.getMatchedConditions=function(e,t){return null===e||0===e.length?[]:_(e)?O(e,t)?[e]:[]:l(e)!==K?[]:e.filter(function(e){return _(e)&&O(e,t)})},t.filterHasField=function e(t,n){return null!==t&&0!==t.length&&(_(t)?t[0]===n:t.some(function(t){return(_(t)||g(t))&&e(t,n)}))},t.removeFieldConditionsFromFilter=function(e,t){return e&&0!==e.length?_(e)?O(e,t)?null:e:P(e,[t],!1):null}},function(e,t,n){function i(e,t){var n=e._initProperties||{};h.each(t,function(t,i){n.hasOwnProperty(i)&&(e[i]=n[i])})}function o(e,t){i(e,t),p(e.caption)||M(e,"caption",function(e){var t=e.dataField||e.groupName||"",n=(e.summaryType||"").toLowerCase();return u.isString(e.groupInterval)&&(t+="_"+e.groupInterval),n&&"custom"!==n?(n=n.replace(/^./,n[0].toUpperCase()),t.length&&(n=" ("+n+")")):n="",b.titleize(t)+n}(e))}function a(e){return e.rows.length||e.columns.length||e.values.length}var r=n(45),s=n(91),l=n(4),u=n(1),c=n(0).extend,d=n(13).inArray,h=n(3),p=u.isDefined,f=h.each,g=n(6),_=g.when,m=g.Deferred,v=n(14),y=n(80),b=n(32),x=n(13).normalizeIndexes,w=n(675),C=n(676),k=n(372),S=n(677),I=n(79),T=I.foreachTree,D=I.foreachTreeAsync,E=I.findField,A=I.formatValue,O=I.getCompareFunction,P=I.createPath,B=I.foreachDataLevel,M=I.setFieldProperty,R={row:"rows",column:"columns",data:"values",filter:"filters"},F=["area","areaIndex","sortOrder","filterType","filterValues","sortBy","sortBySummaryField","sortBySummaryPath","expanded","summaryType","summaryDisplayMode"],V=["format","selector","customizeText","caption"],L=V.concat(["allowSorting","allowSortingBySummary","allowFiltering","allowExpandAll"]);e.exports=v.inherit(function(){function e(e,t){return new(e.remoteOperations||e.paginate?C:w.LocalStore)(c(r.normalizeDataSourceOptions(e),{onChanged:null,onLoadingChanged:null,onProgressChanged:t}))}function t(t,n){var i,o;return u.isPlainObject(t)&&t.load?i=e(t,n):(t&&!t.store&&(t={store:t}),"xmla"===(o=t.store).type?i=new k.XmlaStore(o):u.isPlainObject(o)&&o.type||o instanceof s||Array.isArray(o)?i=e(t,n):o instanceof v&&(i=o)),i}function n(e,t,n,i){var o=[],a=t&&t[n]||[],r=i&&i[n]||[];return T(e[n],function(e){var t=e[0],n=P(e);t.children&&a[n.length-1]&&!a[n.length-1].expanded&&n.length<a.length&&(!i||function(e,t,n){for(var i=0;i<n;i++)if(!e[i]||!t[i]||e[i].index!==t[i].index)return!1;return!0}(a,r,n.length))&&o.push(n.slice())},!0),o}function g(e,t,n,o){return t?f(o,function(i,o){if(n)e[o]=t[o];else{if(("summaryType"===o||"summaryDisplayMode"===o)&&void 0===t[o])return;M(e,o,t[o])}}):i(e,o),e}function y(e,t){var n=[];return f(e,function(e,i){n.push(g({dataField:i.dataField,name:i.name},i,!0,t))}),n}function b(e){return e.name?e.name:e.dataField+""}function H(e,t){var n=[];return f(e||[],function(e,i){b(i)===t&&n.push(i)}),n}function z(e,t){e=e||[];var n,i={};return f(t,function(e,o){n=b(o),i[n]||(i[n]=H(t,b(o)))}),f(i,function(t,n){!function(e,t){e=e||[],f(t,function(t,n){g(n,e[t],!1,F),o(n,V)})}(H(e,t),n)}),t}function N(e){e.sort(function(e,t){return e.areaIndex-t.areaIndex||e.groupIndex-t.groupIndex})}function $(e,t){var n=e.groupName||"";return(e.dataField||n)+(e.groupInterval?n+e.groupInterval:"NOGROUP")+(t?"":n)}function W(e,t,n){var o=[],a={},r={},s=I.getFieldsDataType(e);return t?(f(t,function(e,t){a[$(t,n)]=t}),f(e,function(e,t){var l,u=$(t,n),d=a[u]||r[u];d?(d._initProperties&&i(d,L),l=c({},d,t,{_initProperties:null})):a[u]=l=t,c(l,{dataType:s[t.dataField]}),delete a[u],r[u]=d,o.push(l)}),n&&f(a,function(e,t){o.push(t)})):o=e,o.push.apply(o,[]),o}function G(e){var t,n=new m,i=e._store,o=i&&i.getFields(e._fields);return _(o).done(function(i){e._storeFields=i,t=W(e._fields,i,e._retrieveFields),n.resolve(t)}).fail(n.reject),n}function j(e,t,n,i){var o=t.values,a=E(n.values,e.sortBySummaryField),r="rows"===i,s=r?t.columns:t.rows,l=r?t.grandTotalRowIndex:t.grandTotalColumnIndex,u=e.sortBySummaryPath||[],c=u.length?function(e,t){var n=null,i=(t||[]).join(".");return i.length&&T(e,function(e){var t=e[0],o=P(e).join("."),a=h.map(e,function(e){return e.text}).reverse().join(".");if(i===o||t.key&&a===i)return n=e[0].index,!1}),n}(s,u):l;if(o&&o.length&&a>=0&&p(c))return function(e){var t=r?e.index:c,n=r?c:e.index,i=((o[t]||[[]])[n]||[])[a];return p(i)?i:null}}function q(e,t,n,i){var o=t[n]||[],a=t.headerName===n?t.path.length:0,r=[];B(e[n],function(a,s){var l=o[s]||{},u=r[s]=r[s]||function(e,t,n,i,o){var a=o?"asc":e.sortOrder,r=function(e,t){var n="text";return"none"===e?n="index":(t||"displayText"!==e)&&(n="value"),n}(e.sortBy,o),s=e.sortingMethod?function(t,n){return e.sortingMethod(t,n)}:O(function(e){return e[r]}),l=!o&&j(e,t,n,i),u=l&&O(l);return function(e,t){var n=u&&u(e,t)||s(e,t);return"desc"===a?-n:n}}(l,e,t,n,i);a.sort(u)},a)}function K(e,t,n){return D(e[n],function(e){var i=e[0];i.text=i.text||A(i.value,t[n][P(e).length-1])})}function U(e,t){return _(K(t,e,"columns"),K(t,e,"rows"))}function Y(e){var t=new m,n={};return _(D(e,function(e){var t=P(e).join(".");n[t]=e[0]})).done(t.resolve),e._cacheByPath=n,t}function X(e,t){var n=[];return f(e,function(){(function(e,t){var n="data"===t||!1!==e.visible;return e.area===t&&!p(e.groupIndex)&&n})(this,t)&&n.push(this)}),n}var Z=function(e,t){if(e._cacheByPath)return e._cacheByPath[t.join(".")]||null},Q=function e(t,n){var i,o,a=-1;if(t)for(i=0;i<t.length;i++)void 0!==(o=t[i]).index&&(a=Math.max(a,o.index)),o.children?a=Math.max(a,e(o.children)):o.collapsedChildren&&(a=Math.max(a,e(o.collapsedChildren)));return p(n)&&(a=Math.max(a,n)),a},J=function(e,t,n,i){var o,a=Q(n)+1,r=Q(e,i)+1,s=[],l=!1,u=new m;if(t.children&&t.children.length===n.length)for(var c=0;c<n.length;c++){var d=n[c];void 0!==d.index&&(void 0===t.children[c].index?(d.index=s[d.index]=r++,t.children[c]=d):s[d.index]=t.children[c].index)}else{for(l=!0,o=0;o<a;o++)s[o]=r++;t.children=n}return _(D(t.children,function(e){l&&(e[0].index=s[e[0].index])})).done(function(){u.resolve(s)}),u},ee=function(e,t,n){var i=new m,o=n>=0&&Q(e,n)+1,a=[];return _(D(e,function(e){delete e[0].collapsedChildren})).done(function(){_(D(t,function(t,n){var i=t[0];if(i.index>=0){var r=Z(e,P(t));if(r&&r.index>=0)a[i.index]=r.index;else if(o){var s=P(t.slice(1));r=Z(e,s);var l=s.length?r&&r.children:e;l&&(l[n]=i,i.index=a[i.index]=o++)}}})).done(function(){i.resolve(a)})}),i},te=function(e,t,n,i){var o,a,r,s,l,u,c=e.values;if(t)for(o=0;o<=t.length;o++)if(r=t[o],l=n[o],p(l)||(l=e.grandTotalRowIndex),r&&p(l))for(c[l]||(c[l]=[]),a=0;a<=r.length;a++)s=r[a],u=i[a],p(u)||(u=e.grandTotalColumnIndex),p(s)&&p(u)&&(c[l][u]=s)};return{ctor:function(e){var n=this,i=t(e=e||{},function(e){n.fireEvent("progressChanged",[e])});n._store=i,n._paginate=!!e.paginate,n._pageSize=e.pageSize||40,n._data={rows:[],columns:[],values:[]},n._loadingCount=0,n._isFieldsModified=!1,f(["changed","loadError","loadingChanged","progressChanged","fieldsPrepared","expandValueChanging"],function(t,n){var i="on"+n[0].toUpperCase()+n.slice(1);e.hasOwnProperty(i)&&this.on(n,e[i])}.bind(this)),n._retrieveFields=!p(e.retrieveFields)||e.retrieveFields,n._fields=e.fields||[],n._descriptions=e.descriptions?c(n._createDescriptions(),e.descriptions):void 0,i||c(!0,n._data,e.store||e)},getData:function(){return this._data},getAreaFields:function(e,t){var n=[];return t||"data"===e?N(n=X(this._fields,e)):n=(this._descriptions||{})[R[e]]||[],n},fields:function(e){var t=this;return e&&(t._fields=W(e,t._storeFields,t._retrieveFields),t._fieldsPrepared(t._fields)),t._fields},field:function(e,t){var n,i=this,a=i._fields,r=a&&a[u.isNumeric(e)?e:E(a,e)];return r&&t&&(f(t,function(e,t){var i=d(e,F)<0;if(M(r,e,t,i),"sortOrder"===e){n=r.levels||[];for(var o=0;o<n.length;o++)n[o][e]=t}}),o(r,V),i._descriptions=i._createDescriptions(r),i._isFieldsModified=!0,i.fireEvent("fieldChanged",[r])),r},getFieldValues:function(e,t,n){var i,o=this,a=this._fields&&this._fields[e],r=this.store(),s=[],l={columns:s,rows:[],values:this.getAreaFields("data"),filters:t?this._fields.filter(function(e){return e!==a&&e.area&&e.filterValues&&e.filterValues.length}):[],skipValues:!0},u=new m;return n&&(i=n.searchValue,l.columnSkip=n.skip,l.columnTake=n.take),a&&r?(f(a.levels||[a],function(){s.push(c({},this,{expanded:!0,filterValues:null,sortOrder:"asc",sortBySummaryField:null,searchValue:i}))}),r.load(l).done(function(e){l.columnSkip&&(e.columns=e.columns.slice(l.columnSkip)),l.columnTake&&(e.columns=e.columns.slice(0,l.columnTake)),U(l,e),l.columnTake||o._sort(l,e),u.resolve(e.columns)}).fail(u)):u.reject(),u},reload:function(){return this.load({reload:!0})},filter:function(){var e=this._store;return e.filter.apply(e,arguments)},load:function(e){function t(){n._delayedLoadTask=void 0,n._descriptions?n._loadCore(e,i):_(G(n)).done(function(t){n._fieldsPrepared(t),n._loadCore(e,i)}).fail(i.reject).fail(n._loadErrorHandler)}var n=this,i=new m;return e=e||{},n.beginLoading(),i.fail(function(e){n.fireEvent("loadError",[e])}).always(function(){n.endLoading()}),n.store()?n._delayedLoadTask=l.executeAsync(t):t(),i},createDrillDownDataSource:function(e){return this._store.createDrillDownDataSource(this._descriptions,e)},_createDescriptions:function(e){var t=this.fields(),n={rows:[],columns:[],values:[],filters:[]};f(["row","column","data","filter"],function(n,i){x(X(t,i),"areaIndex",e)}),f(t||[],function(e,i){var o=R[i.area],a=n[o],r=i.groupName;r&&!u.isNumeric(i.groupIndex)&&(i.levels=function(e,t){return e.filter(function(e){return e.groupName===t.groupName&&u.isNumeric(e.groupIndex)&&!1!==e.visible}).map(function(e){return c(e,{areaIndex:t.areaIndex,area:t.area,expanded:p(e.expanded)?e.expanded:t.expanded,dataField:e.dataField||t.dataField,dataType:e.dataType||t.dataType,sortBy:e.sortBy||t.sortBy,sortOrder:e.sortOrder||t.sortOrder,sortBySummaryField:e.sortBySummaryField||t.sortBySummaryField,sortBySummaryPath:e.sortBySummaryPath||t.sortBySummaryPath,visible:e.visible||t.visible,showTotals:p(e.showTotals)?e.showTotals:t.showTotals,showGrandTotals:p(e.showGrandTotals)?e.showGrandTotals:t.showGrandTotals})}).sort(function(e,t){return e.groupIndex-t.groupIndex})}(t,i)),!a||r&&u.isNumeric(i.groupIndex)||!1===i.visible&&"data"!==i.area&&"filter"!==i.area||(i.levels&&a!==n.filters&&a!==n.values?(a.push.apply(a,i.levels),i.filterValues&&i.filterValues.length&&n.filters.push(i)):a.push(i))}),f(n,function(e,t){N(t)});var i={};return f(n.values,function(e,o){var a=o.calculateSummaryValue;u.isFunction(a)&&a(S.createMockSummaryCell(n,t,i))}),n},_fieldsPrepared:function(e){var t=this;t._fields=e,f(e,function(e,t){t.index=e,o(t,L)});var n=y(e,["caption"]);t.fireEvent("fieldsPrepared",[e]);for(var i=0;i<e.length;i++)e[i].caption!==n[i].caption&&M(e[i],"caption",e[i].caption,!0);t._descriptions=t._createDescriptions()},isLoading:function(){return this._loadingCount>0},state:function(e,t){var i=this;return arguments.length?(e=c({rowExpandedPaths:[],columnExpandedPaths:[]},e),void(i._descriptions?(i._fields=z(e.fields,i._fields),i._descriptions=i._createDescriptions(),!t&&i.load(e)):(i.beginLoading(),_(G(i)).done(function(n){i._fields=z(e.fields,n),i._fieldsPrepared(n),!t&&i.load(e)}).always(function(){i.endLoading()})))):{fields:y(i._fields,F),columnExpandedPaths:n(i._data,i._descriptions,"columns"),rowExpandedPaths:n(i._data,i._descriptions,"rows")}},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_changeLoadingCount:function(e){var t,n=this.isLoading();this._loadingCount+=e,n^(t=this.isLoading())&&this.fireEvent("loadingChanged",[t])},_hasPagingValues:function(e,t,n){var i=t+"Take",o=t+"Skip",a=this._data.values,r=this._data[t+"s"],s="row"===t?"column":"row",l=[];if(e.path&&e.area===t){var u=Z(r,e.path);if(!(r=u&&u.children))return!1}if(e.oppositePath&&e.area===s){var c=Z(r,e.oppositePath);if(!(r=c&&c.children))return!1}for(var d=e[o];d<e[o]+e[i];d++)r[d]&&l.push(r[d].index);return l.every(function(e){if(void 0!==e)return"row"===t?(a[e]||[])[n]:(a[n]||[])[e]})},_processPagingCacheByArea:function(e,t,n){var i,o=n+"Take",a=n+"Skip",r=this._data[n+"s"],s="row"===n?"column":"row";if(e[o]){if(e.path&&e.area===n){var l=Z(r,e.path);r=l&&l.children||[]}if(e.oppositePath&&e.area===s){var u=Z(r,e.oppositePath);r=u&&u.children||[]}do{if((i=r[e[a]])&&void 0!==i.index){if(!this._hasPagingValues(e,s,i.index))break;e[a]++,e[o]--}}while(i&&void 0!==i.index&&e[o]);if(e[o]){var c=Math.floor(e[a]/t)*t,d=Math.ceil((e[a]+e[o])/t)*t;e[a]=c,e[o]=d-c}}},_processPagingCache:function(e){var t=this._pageSize;if(!(t<0))for(var n=0;n<e.length;n++)this._processPagingCacheByArea(e[n],t,"row"),this._processPagingCacheByArea(e[n],t,"column")},_loadCore:function(e,t){var i=this,o=this._store,r=this._descriptions,s=e.reload||this.paginate()&&i._isFieldsModified,l=this.paginate(),u=R[e.area];if(e=e||{},o){c(e,r),e.columnExpandedPaths=e.columnExpandedPaths||n(this._data,e,"columns",i._lastLoadOptions),e.rowExpandedPaths=e.rowExpandedPaths||n(this._data,e,"rows",i._lastLoadOptions),l&&(e.pageSize=this._pageSize),u&&(e.headerName=u),i.beginLoading(),t.always(function(){i.endLoading()});var d=[e];if(i.fireEvent("customizeStoreLoadOptions",[d,s]),s||i._processPagingCache(d),!(d=d.filter(function(e){return!(e.rows.length&&0===e.rowTake||e.columns.length&&0===e.columnTake)})).length)return void i._update(t);var h=d.map(function(e){return o.load(e)});_.apply(null,h).done(function(){for(var e=arguments,n=0;n<e.length;n++){var o=d[n],r=e[n],u=n===e.length-1;o.path?i.applyPartialDataSource(o.area,o.path,r,!!u&&t,o.oppositePath):l&&!s&&a(i._data)?i.mergePartialDataSource(r,!!u&&t):(c(i._data,r),i._lastLoadOptions=o,i._update(!!u&&t))}}).fail(t.reject)}else i._update(t)},_sort:function(e,t,n){this._store&&!this._paginate&&function(e,t,n){q(t,e,"rows",n),q(t,e,"columns",n)}(e,t,n)},paginate:function(){return this._paginate&&this._store&&this._store.supportPaging()},isEmpty:function(){var e=this.getAreaFields("data"),t=this.getData();return!e.length||!t.values.length},_update:function(e){var t=this,n=t._descriptions,i=t._data,o=n.values,a=function(e){return e.some(function(e){return e.summaryDisplayMode||e.calculateSummaryValue})}(o);return _(U(n,i),Y(i.rows),Y(i.columns)).done(function(){a&&(t._sort(n,i,a),!t.isEmpty()&&S.applyDisplaySummaryMode(n,i)),t._sort(n,i),!t.isEmpty()&&function(e){return e.some(function(e){return!!e.runningTotal})}(o)&&S.applyRunningTotal(n,i),t._data=i,!1!==e&&_(e).done(function(){t._isFieldsModified=!1,t.fireEvent("changed"),p(t._data.grandTotalRowIndex)&&(i.grandTotalRowIndex=t._data.grandTotalRowIndex),p(t._data.grandTotalColumnIndex)&&(i.grandTotalColumnIndex=t._data.grandTotalColumnIndex)}),e&&e.resolve(t._data)}),e},store:function(){return this._store},collapseHeaderItem:function(e,t){var n=this,i="column"===e?n._data.columns:n._data.rows,o=Z(i,t),a=n.getAreaFields(e)[t.length-1];return!(!o||!o.children||(n.fireEvent("expandValueChanging",[{area:e,path:t,expanded:!1}]),a&&(a.expanded=!1),o.collapsedChildren=o.children,delete o.children,n._update(),n.paginate()&&n.load(),0))},collapseAll:function(e){var t=this,n=!1,i=this.field(e)||{},o=[d(i,this.getAreaFields(i.area))];i.expanded=!1,i&&i.levels&&(o=[],i.levels.forEach(function(e){o.push(d(e,t.getAreaFields(i.area))),e.expanded=!1})),T(this._data[i.area+"s"],function(e){var t=e[0],i=P(e);t&&t.children&&-1!==o.indexOf(i.length-1)&&(t.collapsedChildren=t.children,delete t.children,n=!0)},!0),n&&this._update()},expandAll:function(e){var t=this.field(e);t&&t.area&&(t.expanded=!0,t&&t.levels&&t.levels.forEach(function(e){e.expanded=!0}),this.load())},expandHeaderItem:function(e,t){var n,i,o=this,a="column"===e?o._data.columns:o._data.rows,r=Z(a,t);return!(!r||r.children)&&(i={area:e,path:t,expanded:!0,needExpandData:!(n=!!r.collapsedChildren)},o.fireEvent("expandValueChanging",[i]),n?(r.children=r.collapsedChildren,delete r.collapsedChildren,o._update()):o.load(i),n)},mergePartialDataSource:function(e,t){var n,i,o=this,a=o._data;e&&e.values&&(e.rows=e.rows||[],e.columns=e.columns||[],n=ee(a.rows,e.rows,a.grandTotalColumnIndex),i=ee(a.columns,e.columns,a.grandTotalColumnIndex),_(n,i).done(function(n,i){(n.length||i.length)&&te(a,e.values,n,i),o._update(t)}))},applyPartialDataSource:function(e,t,n,i,o){var a,r,s,l,u=this,c=u._data,d="column"===e?c.columns:c.rows,h="column"===e?c.rows:c.columns;n&&n.values&&(n.rows=n.rows||[],n.columns=n.columns||[],a=Z(d,t),r=o&&Z(h,o),a&&("column"===e?(l=J(d,a,n.columns,c.grandTotalColumnIndex),s=r?J(h,r,n.rows,c.grandTotalRowIndex):ee(c.rows,n.rows,c.grandTotalRowIndex)):(s=J(d,a,n.rows,c.grandTotalRowIndex),l=r?J(h,r,n.columns,c.grandTotalColumnIndex):ee(c.columns,n.columns,c.grandTotalColumnIndex)),_(s,l).done(function(t,o){("row"===e&&t.length||"column"===e&&o.length)&&te(c,n.values,t,o),u._update(i)})))},dispose:function(){var e=this._delayedLoadTask;this._disposeEvents(),e&&e.abort(),this._isDisposed=!0},isDisposed:function(){return!!this._isDisposed}}}()).include(y)},function(e,t,n){var i=n(2),o=n(376),a=n(8),r=n(22),s=n(0).extend,l=n(7),u=r.dateToMilliseconds,c="dx-scheduler-date-time-indicator",d=o.inherit({_getToday:function(){var e=this.option("indicatorTime")||new Date;return this.invoke("convertDateByTimezone",e)||e},_needRenderDateTimeIndicator:function(){var e=this._getToday(),t=r.trimTime(this.getEndViewDate());return r.dateInRange(e,this._firstViewDate,new Date(t.getTime()+u("day")))},needRenderDateTimeIndication:function(){return!!l.hasWindow()&&this._getToday()>=r.trimTime(new Date(this.getStartViewDate()))},_renderDateTimeIndication:function(){if(this.needRenderDateTimeIndication()&&(this.option("shadeUntilCurrentTime")&&this._shader.render(this),this.option("showCurrentTimeIndicator")&&this._needRenderDateTimeIndicator())){var e=this._getGroupCount()||1,t=this._dateTableScrollable.$content(),n=this.getIndicationHeight(),i=this._getRtlOffset(this.getCellWidth());n>0&&this._renderIndicator(n,i,t,e)}},_renderIndicator:function(e,t,n,i){for(var o=0;o<i;o++){var a=this._createIndicator(n);a.width(this.getCellWidth()),this._groupedStrategy.shiftIndicator(a,e,t,o)}},_createIndicator:function(e){var t=i("<div>").addClass(c);return e.append(t),t},_getRtlOffset:function(e){return this.option("rtlEnabled")?this._dateTableScrollable.$content().get(0).getBoundingClientRect().width-this.getTimePanelWidth()-e:0},_setIndicationUpdateInterval:function(){this.option("showCurrentTimeIndicator")&&0!==this.option("indicatorUpdateInterval")&&(this._clearIndicatorUpdateInterval(),this._indicatorInterval=setInterval(function(){this._refreshDateTimeIndication()}.bind(this),this.option("indicatorUpdateInterval")))},_clearIndicatorUpdateInterval:function(){this._indicatorInterval&&(clearInterval(this._indicatorInterval),delete this._indicatorInterval)},_isVerticalShader:function(){return!0},getIndicationWidth:function(e){var t=this.getCellWidth()*this._getCellCount(),n=this._getIndicatorDuration();n>this._getCellCount()&&(n=this._getCellCount());var i=n*this.getRoundedCellWidth(e,e*this._getCellCount(),n);return t<i?t:i},getIndicatorOffset:function(e){var t=this._getIndicatorDuration()-1;return t*this.getRoundedCellWidth(e,e*this._getCellCount(),t)},_getIndicatorDuration:function(){var e=this._getToday(),t=new Date(this._firstViewDate),n=e.getTime()-t.getTime()+1;return Math.ceil(n/u("day"))},getIndicationHeight:function(){var e=this._getToday(),t=this.getCellHeight(),n=new Date(this._firstViewDate);return this._needRenderDateTimeIndicator()&&n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),(e.getTime()-n.getTime())/this.getCellDuration()*t},_dispose:function(){this._clearIndicatorUpdateInterval(),this.callBase.apply(this,arguments)},_refreshDateTimeIndication:function(){this._cleanDateTimeIndicator(),this._shader&&this._shader.clean(),this._renderDateTimeIndication()},_isCurrentTime:function(e){if(this.option("showCurrentTimeIndicator")&&this._needRenderDateTimeIndicator()){var t=this._getToday(),n=!1;(e=new Date(e)).setFullYear(t.getFullYear(),t.getMonth(),t.getDate());var i=new Date(e),o=new Date(e);return r.sameDate(t,e)&&(i=i.setMilliseconds(e.getMilliseconds()-this.getCellDuration()+1),o=o.setMilliseconds(e.getMilliseconds()+this.getCellDuration()),n=r.dateInRange(t,i,o)),n}},_isCurrentTimeHeaderCell:function(e){var t=!1;if(this.option("showCurrentTimeIndicator")&&this._needRenderDateTimeIndicator()){var n=this._getDateByIndex(e),i=this.option("indicatorTime")||new Date;t=r.sameDate(n,i)}return t},_getTimeCellClass:function(e){var t=this._getTimeCellDate(e),n=this.callBase(e);return this._isCurrentTime(t)?n+" dx-scheduler-time-panel-current-time-cell":n},_getHeaderPanelCellClass:function(e){var t=this.callBase(e);return this._isCurrentTimeHeaderCell(e)?t+" dx-scheduler-header-panel-current-time-cell":t},_cleanView:function(){this.callBase(),this._cleanDateTimeIndicator()},_dimensionChanged:function(){this.callBase(),this._refreshDateTimeIndication()},_cleanDateTimeIndicator:function(){this.$element().find("."+c).remove()},_cleanWorkSpace:function(){this.callBase(),this._renderDateTimeIndication(),this._setIndicationUpdateInterval()},_optionChanged:function(e){switch(e.name){case"showCurrentTimeIndicator":case"indicatorTime":this._cleanWorkSpace();break;case"indicatorUpdateInterval":this._setIndicationUpdateInterval();break;case"showAllDayPanel":case"allDayExpanded":case"crossScrollingEnabled":this.callBase(e),this._refreshDateTimeIndication();break;case"shadeUntilCurrentTime":this._refreshDateTimeIndication();break;default:this.callBase(e)}},_getDefaultOptions:function(){return s(this.callBase(),{showCurrentTimeIndicator:!0,indicatorTime:new Date,indicatorUpdateInterval:5*u("minute"),shadeUntilCurrentTime:!0})}});a("dxSchedulerWorkSpace",d),e.exports=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getDiagram=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(18)),o=n(7),a=void 0;t.getDiagram=function(){return a||(a=function(){var e=(0,o.getWindow)(),t=e&&e.DevExpress&&e.DevExpress.diagram||n(737);if(!t)throw i.default.Error("E1041","devexpress-diagram");return t}()),a}},function(e,t,n){function i(e,t){if(e){var n=e.fill;return{fill:n===$?t:n,hatching:A({},e.hatching,{step:B,width:P})}}}function o(e,t,n,i){var o=t&&n[t[e]];o&&o.marker.smartAttr(o.states[i])}function a(e,t,n){return e?(function(e){var t=e.margin;t=t>=0?{top:t=b(e.margin),bottom:t,left:t,right:t}:{top:t.top>=0?b(t.top):O,bottom:t.bottom>=0?b(t.bottom):O,left:t.left>=0?b(t.left):O,right:t.right>=0?b(t.right):O},e.margin=t}(e),e.horizontalAlignment=W(e.horizontalAlignment,R),e.verticalAlignment=G(e.verticalAlignment,e.horizontalAlignment===M?L:V),e.orientation=j(e.orientation,e.horizontalAlignment===M?H:z),e.itemTextPosition=q(e.itemTextPosition,e.orientation===H?L:R),e.position=n?K(e.position,N):N,e.itemsAlignment=U(e.itemsAlignment,null),e.hoverMode=E(e.hoverMode),e.customizeText=T(e.customizeText)?e.customizeText:function(){return this[t]},e.customizeHint=T(e.customizeHint)?e.customizeHint:y.noop,e._incidentOccurred=e._incidentOccurred||y.noop,e):null}function r(e,t){return e.rect(0,0,t,t)}function s(e,t){return e.circle(t/2,t/2,t/2)}function l(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom}function u(e,t,n,i){var o,a={x:0,y:0},r=0,s=0;if(o="y"===t.direction?i.top+i.bottom:i.left+i.right,e.forEach(function(e,n){var i=e[0],o=e.length;e.forEach(function(e,n){var i=e.offset||t.spacing;a[t.direction]+=e[t.measure]+(n!==o-1?i:0),r=C(r,a[t.direction])}),a[t.direction]=0,a[t.altDirection]+=i[t.altMeasure]+i.altOffset||t.altSpacing,s=C(s,a[t.altDirection])}),r+o>t.length)return t.countItem=function(e,t){return e.altCountItem++,S(t/e.altCountItem)}(t,n),!0}function c(e,t){return e.reduce(function(e,n){var i=n.offset||t.spacing;return e+n[t.measure]+i},0)}function d(e,t){var n=e.reduce(function(e,n){var i=n?n[t]:e;return C(e,i)},0);e.forEach(function(e){e&&(e[t]=n)})}function h(e){var t,n,i=e.length,o=e[0].length,a=[];for(t=0;t<o;t++)for(a[t]=[],n=0;n<i;n++)a[t][n]=e[n][t];return a}var p=n(11),f=n(0),g=n(262),_=n(1),m=function(e){return e&&e.__esModule?e:{default:e}}(n(106)),v=n(48),y=n(4),b=Number,x=Math,w=x.round,C=x.max,k=x.min,S=x.ceil,I=_.isDefined,T=_.isFunction,D=p.enumParser,E=p.normalizeEnum,A=f.extend,O=10,P=2,B=5,M="center",R="right",F="left",V="top",L="bottom",H="horizontal",z="vertical",N="outside",$="none",W=D([F,M,R]),G=D([V,L]),j=D([z,H]),q=D([F,R,V,L]),K=D([N,"inside"]),U=D([F,M,R]),Y=function(e){return function(e){return"circle"===E(e)}(e)?s:r},X=t.Legend=function(e){var t=this;t._renderer=e.renderer,t._legendGroup=e.group,t._backgroundClass=e.backgroundClass,t._itemGroupClass=e.itemGroupClass,t._textField=e.textField,t._getCustomizeObject=e.getFormatObject,t._titleGroupClass=e.titleGroupClass,t._allowInsidePosition=e.allowInsidePosition},Z=X.prototype=(0,v.clone)(g.LayoutElement.prototype);(0,f.extend)(Z,{constructor:X,getOptions:function(){return this._options},update:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this;if(t=i._options=a(t,i._textField,i._allowInsidePosition)||{},i._data=e&&t.customizeItems&&t.customizeItems(e.slice())||e,i._boundingRect={width:0,height:0,x:0,y:0},i.isVisible()&&!i._title&&(i._title=new m.default.Title({renderer:i._renderer,cssClass:i._titleGroupClass,root:i._legendGroup})),i._title){var o=t.title;n.horizontalAlignment=function(e){return e.horizontalAlignment===M?M:e.itemTextPosition===R?F:e.itemTextPosition===F?R:M}(t),i._title.update(n,o)}return i},isVisible:function(){return this._options&&this._options.visible},draw:function(e,t){var n=this,i=n._options,o=n._getItemData();if(n._size={width:e,height:t},n.erase(),!(n.isVisible()&&o&&o.length))return n;if(n._insideLegendGroup=n._renderer.g().enableLinks().append(n._legendGroup),n._title.changeLink(n._insideLegendGroup),n._createBackground(),n._title.hasText()){var a=n._background?2*n._options.paddingLeftRight:0;n._title.draw(e-a,t)}n._markersGroup=n._renderer.g().attr({class:n._itemGroupClass}).append(n._insideLegendGroup),n._createItems(o),n._locateElements(i),n._finalUpdate(i);var r=n.getLayoutOptions();return(r.width>e||r.height>t)&&n.freeSpace(),n},probeDraw:function(e,t){return this.draw(e,t)},_createItems:function(e){var t,n=this,o=n._options,a=o.markerSize,r=n._renderer,s=0,l=Y(o.markerShape);n._markersId={},n._items=(e||[]).map(function(e,u){var c=n._markersGroup,d=b(e.size>0?e.size:a),h=e.states,p=h.normal,f=p.fill,g=l(r,d).attr({fill:f||o.markerColor||o.defaultColor,opacity:p.opacity}).append(c),_=n._createLabel(e,c),m={normal:{fill:f},hovered:i(h.hover,f),selected:i(h.selection,f)},v=_.getBBox();return void 0!==e.id&&(n._markersId[e.id]=u),t=function(e,t,n){var i,o;switch(e.itemTextPosition){case F:case R:i=t+7+n.width,o=C(t,n.height);break;case V:case L:i=C(t,n.width),o=t+4+n.height}return{width:i,height:o}}(o,d,v),s=C(s,t.height),n._createHint(e,_,g),{label:_,labelBBox:v,group:c,bBox:t,marker:g,markerSize:d,tracker:{id:e.id,argument:e.argument,argumentIndex:e.argumentIndex},states:m,itemTextPosition:o.itemTextPosition,markerOffset:0,bBoxes:[]}}),o.equalRowHeight&&n._items.forEach(function(e){return e.bBox.height=s})},_getItemData:function(){var e=this._data||[];return(this._options||{}).inverted&&(e=e.slice().reverse()),e.filter(function(e){return e.visible})},_finalUpdate:function(e){this._adjustBackgroundSettings(e),this._setBoundingRect(e.margin)},erase:function(){var e=this,t=e._insideLegendGroup;return t&&t.dispose(),e._insideLegendGroup=e._markersGroup=e._x1=e._x2=e._y2=e._y2=null,e},_locateElements:function(e){this._moveInInitialValues(),this._locateRowsColumns(e)},_moveInInitialValues:function(){var e=this;e._title.hasText()&&e._title.move([0,0]),e._legendGroup&&e._legendGroup.move(0,0),e._background&&e._background.attr({x:0,y:0,width:0,height:0})},applySelected:function(e){return o(e,this._markersId,this._items,"selected"),this},applyHover:function(e){return o(e,this._markersId,this._items,"hovered"),this},resetItem:function(e){return o(e,this._markersId,this._items,"normal"),this},_createLabel:function(e,t){var n=this._getCustomizeObject(e),i=function(e){switch(e){case V:case L:return M;case F:return R;case R:return F}}(this._options.itemTextPosition),o=this._options.customizeText.call(n,n),a=I(e.textOpacity)?A({},this._options.font,{opacity:e.textOpacity}):this._options.font;return this._renderer.text(o,0,0).css((0,p.patchFontOptions)(a)).attr({align:i}).append(t)},_createHint:function(e,t,n){var i=this._getCustomizeObject(e),o=this._options.customizeHint.call(i,i);I(o)&&""!==o&&(t.setTitle(o),n.setTitle(o))},_createBackground:function(){var e=this,t="inside"===e._options.position,n=e._options.backgroundColor,i=n||(t?e._options.containerBackgroundColor:$);(e._options.border.visible||(t||n)&&n!==$)&&(e._background=e._renderer.rect(0,0,0,0).attr({fill:i,class:e._backgroundClass}).append(e._insideLegendGroup))},_locateRowsColumns:function(e){var t,n=this,i=0,o=n._getItemsLayoutOptions(),a=n._items.length;do{t=[],n._createLines(t,o),n._alignLines(t,o),i++}while(u(t,o,a,e.margin)&&i<a);n._applyItemPosition(t,o)},_createLines:function(e,t){this._items.forEach(function(n,i){var o,a,r=function(e,t,n){var i={};return n%t.countItem==0&&(t.markerOffset?e.push([],[]):e.push([])),t.markerOffset?(i.firstLine=e[e.length-1],i.secondLine=e[e.length-2]):i.firstLine=i.secondLine=e[e.length-1],i}(e,t,i),s={width:n.labelBBox.width,height:n.labelBBox.height,element:n.label,bBox:n.labelBBox,pos:function(e){switch(e.itemTextPosition){case L:return{horizontal:M,vertical:V};case V:return{horizontal:M,vertical:L};case F:return{horizontal:R,vertical:M};case R:return{horizontal:F,vertical:M}}}(t),itemIndex:i},l={width:n.markerSize,height:n.markerSize,element:n.marker,pos:{horizontal:M,vertical:M},bBox:{width:n.markerSize,height:n.markerSize,x:0,y:0},itemIndex:i},u=t.markerOffset?"altOffset":"offset";t.inverseLabelPosition?(o=s,a=l):(o=l,a=s),o[u]=t.labelOffset,r.secondLine.push(o),r.firstLine.push(a)})},_alignLines:function(e,t){function n(e){d(e,o)}var i,o=t.altMeasure;if(e.forEach(function(e){return d(e,o)}),o=t.measure,t.itemsAlignment){if(t.markerOffset)for(i=0;i<e.length;)h([e[i++],e[i++]]).forEach(n)}else h(e).forEach(n)},_applyItemPosition:function(e,t){var n=this,i={x:0,y:0},o=this._title.getLayoutOptions().x,a=function(e,t){return e.reduce(function(e,n){return C(e,c(n,t))},0)}(e,t);e.forEach(function(e){var r=e[0],s=r.altOffset||t.altSpacing;i[t.direction]=function(e,t,n){var i,o=c(e,t);switch(t.itemsAlignment){case R:i=n-o;break;case M:i=(n-o)/2;break;default:i=0}return i}(e,t,a),e.forEach(function(e){var a=e.offset||t.spacing,r=new g.WrapperLayoutElement(e.element,e.bBox),s={x:i.x+o,y:i.y,width:e.width,height:e.height},l=new g.WrapperLayoutElement(null,s),u=n._items[e.itemIndex];r.position({of:l,my:e.pos,at:e.pos}),u.bBoxes.push(l),i[t.direction]+=e[t.measure]+a}),i[t.altDirection]+=r[t.altMeasure]+s}),this._items.forEach(function(e){var t=function(e,t){var n={};return n.left=k(e.x,t.x),n.top=k(e.y,t.y),n.right=C(e.x+e.width,t.x+t.width),n.bottom=C(e.y+e.height,t.y+t.height),n}(e.bBoxes[0].getLayoutOptions(),e.bBoxes[1].getLayoutOptions()),i=n._options.columnItemSpacing/2,o=n._options.rowItemSpacing/2;e.tracker.left=t.left-i,e.tracker.right=t.right+i,e.tracker.top=t.top-o,e.tracker.bottom=t.bottom+o})},_getItemsLayoutOptions:function(){var e=this,t=e._options,n=t.orientation,i={itemsAlignment:t.itemsAlignment,orientation:t.orientation},o=e._size.width-(e._background?2*t.paddingLeftRight:0),a=e._size.height-(e._background?2*t.paddingTopBottom:0);return n===H?(i.length=o,i.spacing=t.columnItemSpacing,i.direction="x",i.measure="width",i.altMeasure="height",i.altDirection="y",i.altSpacing=t.rowItemSpacing,i.countItem=t.columnCount,i.altCountItem=t.rowCount,i.marginTextLabel=4,i.labelOffset=7,t.itemTextPosition!==L&&t.itemTextPosition!==V||(i.labelOffset=4,i.markerOffset=!0)):(i.length=a,i.spacing=t.rowItemSpacing,i.direction="y",i.measure="height",i.altMeasure="width",i.altDirection="x",i.altSpacing=t.columnItemSpacing,i.countItem=t.rowCount,i.altCountItem=t.columnCount,i.marginTextLabel=7,i.labelOffset=4,t.itemTextPosition!==R&&t.itemTextPosition!==F||(i.labelOffset=7,i.markerOffset=!0)),i.countItem||(i.altCountItem?i.countItem=S(e._items.length/i.altCountItem):i.countItem=e._items.length),t.itemTextPosition!==V&&t.itemTextPosition!==F||(i.inverseLabelPosition=!0),i.itemTextPosition=t.itemTextPosition,i.altCountItem=i.altCountItem||S(e._items.length/i.countItem),i},_adjustBackgroundSettings:function(e){if(this._background){var t=e.border,n=this._calculateTotalBox(),i={x:w(n.x-e.paddingLeftRight),y:w(n.y-e.paddingTopBottom),width:w(n.width)+2*e.paddingLeftRight,height:w(n.height),opacity:e.backgroundOpacity};t.visible&&t.width&&t.color&&t.color!==$&&(i["stroke-width"]=t.width,i.stroke=t.color,i["stroke-opacity"]=t.opacity,i.dashStyle=t.dashStyle,i.rx=t.cornerRadius||0,i.ry=t.cornerRadius||0),this._background.attr(i)}},_setBoundingRect:function(e){if(this._insideLegendGroup){var t=this._calculateTotalBox();t.height+=e.top+e.bottom,t.widthWithoutMargins=t.width,t.width+=e.left+e.right,t.x-=e.left,t.y-=e.top,this._boundingRect=t}},_calculateTotalBox:function(){var e=this._markersGroup.getBBox(),t=this._title.getCorrectedLayoutOptions(),n=this._insideLegendGroup.getBBox(),i=this._background?2*this._options.paddingTopBottom:0;return n.height=e.height+t.height+i,n},getActionCallback:function(e){var t=this;return t._options.visible?function(n){t[n](e.index)}:y.noop},getLayoutOptions:function(){var e=this._options,t=this._insideLegendGroup?this._boundingRect:{width:0,height:0,x:0,y:0};return e?(t.verticalAlignment=e.verticalAlignment,t.horizontalAlignment=e.horizontalAlignment,e.orientation===H?(t.cutLayoutSide=e.verticalAlignment,t.cutSide="vertical"):e.horizontalAlignment===M?(t.cutLayoutSide=e.verticalAlignment,t.cutSide="vertical"):(t.cutLayoutSide=e.horizontalAlignment,t.cutSide="horizontal"),t.position={horizontal:e.horizontalAlignment,vertical:e.verticalAlignment},t):null},shift:function(e,t){var n=this,i={};return n._insideLegendGroup&&n._insideLegendGroup.attr({translateX:e-n._boundingRect.x,translateY:t-n._boundingRect.y}),n._title&&n._shiftTitle(n._boundingRect.widthWithoutMargins),n._markersGroup&&n._shiftMarkers(),n._insideLegendGroup&&(i=n._legendGroup.getBBox()),n._x1=i.x,n._y1=i.y,n._x2=i.x+i.width,n._y2=i.y+i.height,n},_shiftTitle:function(e){var t=this,n=t._title,i=n.getCorrectedLayoutOptions();if(i&&n.hasText()){var o=t._options,a=o.horizontalAlignment,r=o.paddingLeftRight,s=o.itemTextPosition,l=e-(t._background?2*r:0),u=n.getOptions(),c=i.y,d=i.x;if(u.verticalAlignment===L&&(c+=t._markersGroup.getBBox().height),a===M||s===L||s===V)d=i.x+l/2-i.width/2;else if(s===F){var h=t.getLayoutOptions();d=2*h.x+h.width}n.shift(d,c)}},_shiftMarkers:function(){var e=this._title.getLayoutOptions(),t=this._markersGroup.getBBox(),n=this._title.getOptions()||{},i=0,o=0;e.width>t.width&&this._options.horizontalAlignment===M&&(i=e.width/2-t.width/2),n.verticalAlignment===V&&(o=e.height),0===i&&0===o||(this._markersGroup.attr({translateX:i,translateY:o}),this._items.forEach(function(e){e.tracker.left+=i,e.tracker.right+=i,e.tracker.top+=o,e.tracker.bottom+=o}))},getPosition:function(){return this._options.position},coordsIn:function(e,t){return e>=this._x1&&e<=this._x2&&t>=this._y1&&t<=this._y2},getItemByCoord:function(e,t){var n=this._items,i=this._insideLegendGroup;e-=i.attr("translateX"),t-=i.attr("translateY");for(var o=0;o<n.length;o++)if(l(n[o].tracker,e,t))return n[o].tracker;return null},dispose:function(){var e=this;return e._title&&e._title.dispose(),e._legendGroup=e._insideLegendGroup=e._title=e._renderer=e._options=e._data=e._items=null,e},layoutOptions:function(){var e=this.getLayoutOptions();return{horizontalAlignment:this._options.horizontalAlignment,verticalAlignment:this._options.verticalAlignment,side:e.cutSide,priority:1,position:this.getPosition()}},measure:function(e){this.draw(e[0],e[1]);var t=this.getLayoutOptions();return[t.width,t.height]},move:function(e){this.shift(e[0],e[1])},freeSpace:function(){this._options._incidentOccurred("W2104"),this.erase()}}),t.plugin={name:"legend",init:function(){var e=this,n=this._renderer.g().attr({class:this._rootClassPrefix+"-legend"}).enableLinks().append(e._renderer.root);e._legend=new t.Legend({renderer:e._renderer,group:n,itemGroupClass:this._rootClassPrefix+"-item",titleGroupClass:this._rootClassPrefix+"-title",textField:"text",getFormatObject:function(e){return{item:e.item,text:e.text}}}),e._layout.add(e._legend)},extenders:{_applyTilesAppearance:function(){var e=this;this._items.forEach(function(t){e._applyLegendItemStyle(t.id,t.getState())})},_buildNodes:function(){this._createLegendItems()}},members:{_applyLegendItemStyle:function(e,t){var n=this._legend;switch(t){case"hover":n.applyHover(e);break;case"selection":n.applySelected(e);break;default:n.resetItem(e)}},_createLegendItems:function(){this._legend.update(this._getLegendData(),this._getOption("legend"),this._themeManager.theme("legend").title)&&this._requestChange(["LAYOUT"])}},dispose:function(){this._legend.dispose()},customize:function(e){e.prototype._proxyData.push(function(e,t){if(this._legend.coordsIn(e,t)){var n=this._legend.getItemByCoord(e,t);if(n)return{id:n.id,type:"legend"}}}),e.addChange({code:"LEGEND",handler:function(){this._createLegendItems()},isThemeDependent:!0,option:"legend",isOptionChange:!0})}}},function(e,t,n){var i=n(0).extend,o=Math,a=o.floor,r=o.abs,s=n(120),l="right";e.exports=i({},s,{correctCoordinates:function(e){var t=this,n=a(e.offset-e.width/2);t._options.rotated?(t.height=e.width,t.yCorrection=n,t.xCorrection=null):(t.width=e.width,t.xCorrection=n,t.yCorrection=null)},_getGraphicBBox:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},_getLabelConnector:function(e){return this._getGraphicBBox(e)},_getLabelPosition:function(){var e=this,t=e.initialValue,n=e._getValTranslator().getBusinessRange().invert,i="discrete"===e.series.valueAxisType,o=e.series.isFullStackedSeries(),a=!i&&(t>=0&&!n||t<0&&n)||i&&!n||o;return e._options.rotated?a?l:"left":a?"top":"bottom"},_getLabelCoords:function(e){var t=this;return 0===t.initialValue&&t.series.isFullStackedSeries()?this._options.rotated?t._getLabelCoordOfPosition(e,l):t._getLabelCoordOfPosition(e,"top"):"inside"===e.getLayoutOptions().position?t._getLabelCoordOfPosition(e,"inside"):s._getLabelCoords.call(this,e)},_checkLabelPosition:function(e,t){var n=this,i=n._getVisibleArea();return n._isPointInVisibleArea(i,n._getGraphicBBox())?n._moveLabelOnCanvas(t,i,e.getBoundingRect()):t},hideInsideLabel:function(e,t){var n=this._getGraphicBBox(),i=e.getBoundingRect();return!(!this._options.resolveLabelsOverlapping||!(t.y<=n.y&&t.y+i.height>=n.y+n.height||t.x<=n.x&&t.x+i.width>=n.x+n.width)||t.y>n.y+n.height||t.y+i.height<n.y||t.x>n.x+n.width||t.x+i.width<n.x||(e.draw(!1),0))},_moveLabelOnCanvas:function(e,t,n){var i=e.x,o=e.y;return t.minX>i&&(i=t.minX),t.maxX<i+n.width&&(i=t.maxX-n.width),t.minY>o&&(o=t.minY),t.maxY<o+n.height&&(o=t.maxY-n.height),{x:i,y:o}},_showForZeroValues:function(){return this._options.label.showForZeroValues||this.initialValue},_drawMarker:function(e,t,n){var i=this,o=i._getStyle(),a=i._options.cornerRadius,r=i._options.rotated,s=i.getMarkerCoords(),l=s.x,u=s.y,c=s.width,d=s.height;n&&(r?(c=0,l=i.defaultX):(d=0,u=i.defaultY)),i.graphic=e.rect(l,u,c,d).attr({rx:a,ry:a}).smartAttr(o).data({"chart-data-point":i}).append(t)},_getSettingsForTracker:function(){var e=this,t=e.y,n=e.height,i=e.x,o=e.width;return e._options.rotated?1===o&&(o=9,i-=4):1===n&&(n=9,t-=4),{x:i,y:t,width:o,height:n}},getGraphicSettings:function(){var e=this.graphic;return{x:e.attr("x"),y:e.attr("y"),height:e.attr("height"),width:e.attr("width")}},_getEdgeTooltipParams:function(e,t,n,i){var o,a,r=this.value>=0,s=this._getValTranslator().getBusinessRange().invert;return this._options.rotated?(a=t+i/2,o=s?r?e:e+n:r?e+n:e):(o=e+n/2,a=s?r?t+i:t:r?t:t+i),{x:o,y:a,offset:0}},getTooltipParams:function(e){var t=this.x,n=this.y,i=this.width,o=this.height;return"edge"===e?this._getEdgeTooltipParams(t,n,i,o):{x:t+i/2,y:n+o/2,offset:0}},_truncateCoord:function(e,t,n){return null===e?e:e<t?t:e>n?n:e},_getErrorBarBaseEdgeLength:function(){return this._options.rotated?this.height:this.width},_translateErrorBars:function(e){s._translateErrorBars.call(this),(this._errorBarPos<e[0]||this._errorBarPos>e[1])&&(this._errorBarPos=void 0)},_translate:function(){var e,t,n,i=this,o=i._options.rotated,a=o?"x":"y",s=o?"y":"x",l=o?"width":"height",u=o?"height":"width",c=i._getArgTranslator(),d=i._getValTranslator(),h=i.series.getArgumentAxis().getVisibleArea(),p=i.series.getValueAxis().getVisibleArea();e=c.translate(i.argument),i[s]=e=null===e?e:e+(i[s+"Correction"]||0),t=d.translate(i.value,1),n=d.translate(i.minValue),i["v"+a]=t,i["v"+s]=e+i[u]/2,t=i._truncateCoord(t,p[0],p[1]),n=i._truncateCoord(n,p[0],p[1]),i[l]=r(t-n),t=t<n?t:n,i._calculateVisibility(o?t:e,o?e:t,i.width,i.height),i[a]=null===t?t:t+(i[a+"Correction"]||0),i["min"+a.toUpperCase()]=null===n?n:n+(i[a+"Correction"]||0),i["default"+a.toUpperCase()]=d.translate("canvas_position_default"),i._translateErrorBars(h),i.inVisibleArea&&null!==i[s]&&(i[s]<h[0]&&(i[u]=i[u]-(h[0]-i[s]),i[s]=h[0]),i[s]+i[u]>h[1]&&(i[u]=h[1]-i[s]))},_updateMarker:function(e,t){this.graphic.smartAttr(i({},t,e?{}:this.getMarkerCoords()))},getMarkerCoords:function(){var e=this,t=e.x,n=e.y,i=e.width,o=e.height,a=e.series.getArgumentAxis(),r=e._options.rotated;if(a.getAxisPosition){var s=a.getOptions(),l=Math.round(s.width/2),u=a.getAxisPosition();if(s.visible)if(r){var c=e.minX===e.defaultX&&e.minX===u-a.getAxisShift();t+=c?l:0,(i-=c?l:0)<0&&(i=0)}else(o-=e.minY===e.defaultY&&e.minY===u-a.getAxisShift()?l:0)<0&&(o=0)}return{x:t,y:n,width:i,height:o}},coordsIn:function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}})},function(e,t,n){function i(e,t,n,i){var o=u.clone(e);return o.x=t,o.y=n,o.angle=i,o}function o(e,t,n,o,a){var r=e.angle+a,s=h.getCosAndSin(r);return i(t,n.x+(e.radius+o*a)*s.cos,n.y-(e.radius+o*a)*s.sin,r)}function a(e,t,n,i,o){var a=t-e,r=3*n-3*t,s=3*i-6*n+3*t,l=o-3*i+3*n-t;return p.solveCubicEquation(l,s,r,a)}var r=n(107),s=r.chart,l=r.polar,u=n(48),c=n(0).extend,d=n(3).each,h=n(11),p=n(29),f=h.normalizeAngle,g="discrete",_=h.map,m=c,v=d;t.chart={},t.polar={};var y={autoHidePointMarkersEnabled:function(){return!0},_applyGroupSettings:function(e,t,n){t=m(t,e),this._applyElementsClipRect(t),n.attr(t)},_setGroupsSettings:function(e){var t=this,n=t._styles.normal;t._applyGroupSettings(n.elements,{class:"dxc-elements"},t._elementsGroup),t._bordersGroup&&t._applyGroupSettings(n.border,{class:"dxc-borders"},t._bordersGroup),s._setGroupsSettings.call(t,e),e&&t._markersGroup&&t._markersGroup.attr({opacity:.001})},_createGroups:function(){var e=this;e._createGroup("_elementsGroup",e,e._group),e._areBordersVisible()&&e._createGroup("_bordersGroup",e,e._group),s._createGroups.call(e)},_areBordersVisible:function(){return!1},_getDefaultSegment:function(e){return{line:_(e.line||[],function(e){return e.getDefaultCoords()})}},_prepareSegment:function(e){return{line:e}},_parseLineOptions:function(e,t){return{stroke:e.color||t,"stroke-width":e.width,dashStyle:e.dashStyle||"solid"}},_parseStyle:function(e,t){return{elements:this._parseLineOptions(e,t)}},_applyStyle:function(e){var t=this;t._elementsGroup&&t._elementsGroup.attr(e.elements),v(t._graphics||[],function(t,n){n.line&&n.line.attr({"stroke-width":e.elements["stroke-width"]}).sharp()})},_drawElement:function(e,t){return{line:this._createMainElement(e.line,{"stroke-width":this._styles.normal.elements["stroke-width"]}).append(t)}},_removeElement:function(e){e.line.remove()},_updateElement:function(e,t,n,i){var o={points:t.line},a=e.line;n?a.animate(o,{},i):a.attr(o)},_animateComplete:function(){var e=this;s._animateComplete.call(e),e._markersGroup&&e._markersGroup.animate({opacity:1},{duration:e._defaultDuration})},_animate:function(){var e=this,t=e._graphics.length-1;v(e._graphics||[],function(n,i){var o;n===t&&(o=function(){e._animateComplete()}),e._updateElement(i,e._segments[n],!0,o)})},_drawPoint:function(e){s._drawPoint.call(this,{point:e.point,groups:e.groups})},_createMainElement:function(e,t){return this._renderer.path(e,"line").attr(t).sharp()},_sortPoints:function(e,t){return t?e.sort(function(e,t){return t.y-e.y}):e.sort(function(e,t){return e.x-t.x})},_drawSegment:function(e,t,n,i){var o=this,a=o._options.rotated,r=o._prepareSegment(e,a,i);o._segments.push(r),o._graphics[n]?!t&&o._updateElement(o._graphics[n],r):o._graphics[n]=o._drawElement(t?o._getDefaultSegment(r):r,o._elementsGroup)},_getTrackerSettings:function(){var e=this._defaultTrackerWidth,t=this._styles.normal.elements["stroke-width"];return{"stroke-width":t>e?t:e,fill:"none"}},_getMainPointsFromSegment:function(e){return e.line},_drawTrackerElement:function(e){return this._createMainElement(this._getMainPointsFromSegment(e),this._getTrackerSettings(e))},_updateTrackerElement:function(e,t){var n=this._getTrackerSettings(e);n.points=this._getMainPointsFromSegment(e),t.attr(n)},checkSeriesViewportCoord:function(e,t){if(0===this._points.length)return!1;var n=e.isArgumentAxis?this.getArgumentRange():this.getViewport(),i=e.getTranslator().translate(n.categories?n.categories[0]:n.min),o=e.getTranslator().translate(n.categories?n.categories[n.categories.length-1]:n.max),a=this.getOptions().rotated,r=e.getOptions().inverted;return e.isArgumentAxis&&(!a&&!r||a&&r)||!e.isArgumentAxis&&(a&&!r||!a&&r)?t>=i&&t<=o:t>=o&&t<=i},getSeriesPairCoord:function(e,t){for(var n=null,i=this.getNearestPointsByCoord(e,t),o=t&&!this._options.rotated||!t&&this._options.rotated,a=0;a<i.length;a++){var r,s=i[a],l=(s[1].vy-s[0].vy)/(s[1].vx-s[0].vx),u=s[0].vy-s[0].vx*l;if(r=s[1].vx-s[0].vx==0?o?s[0].vy:s[0].vx:o?l*e+u:(e-u)/l,this.checkAxisVisibleAreaCoord(!t,r)){n=r;break}}return n}},b=t.chart.line=m({},s,y);t.chart.stepline=m({},b,{_calculateStepLinePoints:function(e){var t=[],n=this._options.rotated?"x":"y";return v(e,function(e,i){var o=void 0;if(e){var a=t[t.length-1][n];a!==i[n]&&((o=u.clone(i))[n]=a,t.push(o)),t.push(i)}else t.push(i)}),t},_prepareSegment:function(e){return b._prepareSegment(this._calculateStepLinePoints(e))},getSeriesPairCoord:function(e,t){for(var n=void 0,i=this._options.rotated,o=!t&&!i||t&&i,a=o?"vy":"vx",r=o?"vx":"vy",s=this.getNearestPointsByCoord(e,t),l=0;l<s.length;l++){var u=s[l],c=t&&e!==u[1][a]?u[0][r]:u[1][r];if(this.checkAxisVisibleAreaCoord(!t,c)){n=c;break}}return n}}),t.chart.spline=m({},b,{_calculateBezierPoints:function(e,t){var n=[],o=e,a=function(e,t,n){return e>t&&n>e||e<t&&n<e?e:n};return 1!==o.length?o.forEach(function(e,r){var s,l,u,c,d,h,p,f,g,_,m,v,y,b,x,w,C=o[r-1],k=o[r+1],S=.5;if(r&&r!==o.length-1){if(d=e.x,h=e.y,p=C.x,f=k.x,g=C.y,_=k.y,!!(!t&&(h<=C.y&&h<=k.y||h>=C.y&&h>=k.y)||t&&(d<=C.x&&d<=k.x||d>=C.x&&d>=k.x)))t?(u=s=d,c=(h+k.y)/2,l=(h+C.y)/2):(c=l=h,u=(d+k.x)/2,s=(d+C.x)/2);else{if(y=_-g,b=p-f,x=g*f-p*_,t){if(!y)return void n.push(e,e,e);p-=w=-1*(b*h+x)/y-d,f-=w}else{if(!b)return void n.push(e,e,e);g-=w=-1*(y*d+x)/b-h,_-=w}u=(d+S*f)/1.5,c=(h+S*_)/1.5,s=(d+S*p)/1.5,l=(h+S*g)/1.5}t?(s=a(C.x,d,s),u=a(k.x,d,u)):(l=a(C.y,h,l),c=a(k.y,h,c)),m=i(e,s,l),v=i(e,u,c),n.push(m,e,v)}else n.push(e,e)}):n.push(o[0]),n},_prepareSegment:function(e,t){return b._prepareSegment(this._calculateBezierPoints(e,t))},_createMainElement:function(e,t){return this._renderer.path(e,"bezier").attr(t).sharp()},getSeriesPairCoord:function(e,t){for(var n=null,i=!t&&!this._options.rotated||t&&this._options.rotated,o=i?"vy":"vx",r=i?"y":"x",s=i?"vx":"vy",l=i?"x":"y",u=(t?this.getValueAxis():this.getArgumentAxis()).getVisibleArea(),c=this.getNearestPointsByCoord(e,t),d=function(t){var i=c[t];1===i.length?u[0]<=i[0][s]&&u[1]>=i[0][s]&&(n=i[0][s]):a(e,i[0][o],i[1][r],i[2][r],i[3][o]).forEach(function(e){if(e>=0&&e<=1){var t=Math.pow(1-e,3)*i[0][s]+3*Math.pow(1-e,2)*e*i[1][l]+3*(1-e)*e*e*i[2][l]+e*e*e*i[3][s];u[0]<=t&&u[1]>=t&&(n=t)}});if(null!==n)return"break"},h=0;h<c.length;h++){if("break"===d(h))break}return n},getNearestPointsByCoord:function(e,t){var n=this,i=n.getOptions().rotated,o=!t&&!i||t&&i?"vy":"vx",a=n.getVisiblePoints(),r=n.getPoints(),s=n._segments.length>0?n._segments.reduce(function(e,t){return e.concat(t.line)},[]):[],l=[];return n.isVisible()&&r.length>0&&(r.length>1?n.findNeighborPointsByCoord(e,o,a.slice(0),r,function(e,t){var n=s.indexOf(e);l.push([e,s[n+1],s[n+2],t])}):r[0][o]===e&&l.push([r[0]])),l}}),t.polar.line=m({},l,y,{_sortPoints:function(e){return e},_prepareSegment:function(e,t,n){var i,o=[],a=this.getValueAxis().getCenter();if(n&&this._closeSegment(e),this.argumentAxisType===g||this.valueAxisType===g)return b._prepareSegment.call(this,e);for(i=1;i<e.length;i++)o=o.concat(this._getTangentPoints(e[i],e[i-1],a));return o.length||(o=e),{line:o}},_getRemainingAngle:function(e){var t=f(e);return e>=0?360-t:-t},_closeSegment:function(e){var t,n;t=this._segments.length?this._segments[0].line[0]:i(e[0],e[0].x,e[0].y,e[0].angle),e[e.length-1].angle!==t.angle&&(f(Math.round(e[e.length-1].angle))===f(Math.round(t.angle))?t.angle=e[e.length-1].angle:(n=e[e.length-1].angle-t.angle,t.angle=e[e.length-1].angle+this._getRemainingAngle(n)),e.push(t))},_getTangentPoints:function(e,t,n){var i,a=[],r=Math.round(t.angle-e.angle),s=(t.radius-e.radius)/r;if(0===r)a=[t,e];else if(r>0)for(i=r;i>=0;i--)a.push(o(e,t,n,s,i));else for(i=0;i>=r;i--)a.push(o(e,t,n,s,r-i));return a}})},function(e,t,n){function i(e,t){return null===e?e:S(e)?I(e):t}function o(e){return y(e)?e:b(e)?[e]:null}function a(e){return e?e.value:null}function r(e,t,n){for(var o=e[t],r=y(n)?w(n,a):[],s=0,l=r.length,u=[];s<l;++s)u.push(i(r[s],o[s]));e[t]=u}function s(e){void 0===e.option(P)&&void 0===e.option(B)&&void 0!==e.option("valueIndicators")&&(function(e){e.value=e.subvalues=O,e._setupValue=e._setupSubvalues=e._updateValueIndicator=e._updateSubvalueIndicators=null}(e),function(e){e._indicatorValues=[],r(e,"_indicatorValues",e.option("valueIndicators")),e._valueIndicators=[];var t=e._applyMostlyTotalChange;e._applyMostlyTotalChange=function(){r(this,"_indicatorValues",this.option("valueIndicators")),t.call(this)},e._updateActiveElements=l,e._prepareValueIndicators=u,e._disposeValueIndicators=c,e._cleanValueIndicators=d,e.indicatorValue=h}(e))}function l(){var e=this;A(e._valueIndicators,function(t,n){n.value(e._indicatorValues[n.index],e._noAnimation)})}function u(){var e,t=this,n=t._valueIndicators||[],i=t.option("valueIndicators"),o=[],a=0;for(e=y(i)?i.length:0;a<e;++a)o.push(i[a]);for(e=n.length;a<e;++a)o.push(null);var r=[];return A(o,function(e,i){var o=n[e];if(i){var a=t._prepareIndicatorSettings(i,"valueIndicatorType");o&&o.type!==a.type&&(o.dispose(),o=null),o||(o=t._createIndicator(a.type,t._renderer.root,"dxg-value-indicator","value-indicator",e,!0)),o&&(o.index=e,o.render(a),r.push(o))}else o&&o.dispose()}),t._valueIndicators=r,t._valueIndicators}function c(){A(this._valueIndicators,function(e,t){t.dispose()}),this._valueIndicators=null}function d(){A(this._valueIndicators,function(e,t){t.clean()})}function h(e,t){return function(e,t,n,o,a){return void 0!==a?(void 0!==n[o]&&(n[o]=i(a,n[o]),t[o]&&t[o].value(n[o])),e):n[o]}(this,this._valueIndicators,this._indicatorValues,e,t)}function p(e){this._parameters=e,this._indicators=[]}var f=n(146).dxBaseGauge,g=n(1),_=n(3).each,m=n(0).extend,v=g.isDefined,y=Array.isArray,b=g.isNumeric,x=n(268),w=n(11).map,C=n(11).normalizeEnum,k=n(146).compareArrays,S=isFinite,I=Number,T=Math.min,D=Math.max,E=m,A=_,O=n(4).noop,P="value",B="subvalues",M=[1,2,5];t.dxGauge=f.inherit({_initCore:function(){var e=this,t=e._renderer;e._setupValue(e.option(P)),e.__subvalues=o(e.option(B)),e._setupSubvalues(e.__subvalues),s(e),e.callBase.apply(e,arguments),e._rangeContainer=new e._factory.RangeContainer({renderer:t,container:t.root,translator:e._translator,themeManager:e._themeManager}),e._initScale()},_fontFields:["scale.label.font","valueIndicators.rangebar.text.font","valueIndicators.textcloud.text.font","indicator.text.font"],_initScale:function(){var e=this;e._scaleGroup=e._renderer.g().attr({class:"dxg-scale"}).linkOn(e._renderer.root,"scale"),e._scale=new x.Axis({incidentOccurred:e._incidentOccurred,renderer:e._renderer,axesContainerGroup:e._scaleGroup,axisType:e._scaleTypes.type,drawingType:e._scaleTypes.drawingType,widgetClass:"dxg"})},_disposeCore:function(){var e=this;e.callBase.apply(e,arguments),e._scale.dispose(),e._scaleGroup.linkOff(),e._rangeContainer.dispose(),e._disposeValueIndicators(),e._scale=e._scaleGroup=e._rangeContainer=null},_disposeValueIndicators:function(){var e=this;e._valueIndicator&&e._valueIndicator.dispose(),e._subvalueIndicatorsSet&&e._subvalueIndicatorsSet.dispose(),e._valueIndicator=e._subvalueIndicatorsSet=null},_setupDomainCore:function(){var e=this,t=e.option("scale")||{},n=e.option("startValue"),i=e.option("endValue");n=b(n)?I(n):b(t.startValue)?I(t.startValue):0,i=b(i)?I(i):b(t.endValue)?I(t.endValue):100,e._baseValue=n<i?n:i,e._translator.setDomain(n,i)},_cleanContent:function(){this._rangeContainer.clean(),this._cleanValueIndicators()},_measureScale:function(e){var t,n,i,o,a,r,s=this,l=e.tick,u=l.visible&&l.length>0&&l.width>0,c=e.minorTick,d=c.visible&&c.length>0&&c.width>0,h=e.label,p=Number(h.indentFromTick);return u||d||h.visible?(t=s._scale.measureLabels(m({},s._canvas)),i={min:n=s._getScaleLayoutValue(),max:n},a=(o=s._getTicksCoefficients(e)).inner,r=o.outer,u&&(i.min=T(i.min,n-a*l.length),i.max=D(i.max,n+r*l.length)),d&&(i.min=T(i.min,n-a*c.length),i.max=D(i.max,n+r*c.length)),h.visible&&s._correctScaleIndents(i,p,t),i):{}},_renderContent:function(){var e,t=this,n=t._prepareScaleSettings();t._rangeContainer.render(E(t._getOption("rangeContainer"),{vertical:t._area.vertical})),t._renderScale(n),e=w([t._rangeContainer].concat(t._prepareValueIndicators()),function(e){return e&&e.enabled?e:null}),t._applyMainLayout(e,t._measureScale(n)),A(e,function(e,n){n.resize(t._getElementLayout(n.getOffset()))}),t._shiftScale(t._getElementLayout(0),n),t._beginValueChanging(),t._updateActiveElements(),t._endValueChanging()},_prepareScaleSettings:function(){var e=this,t=e.option("scale"),n=m(!0,{},e._themeManager.theme("scale"),t);return n.label.indentFromAxis=0,n.isHorizontal=!e._area.vertical,n.forceUserTickInterval|=v(t)&&v(t.tickInterval)&&!v(t.scaleDivisionFactor),n.axisDivisionFactor=n.scaleDivisionFactor||e._gridSpacingFactor,n.minorAxisDivisionFactor=n.minorScaleDivisionFactor||5,n.numberMultipliers=M,n.tickOrientation=e._getTicksOrientation(n),n.label.useRangeColors&&(n.label.customizeColor=function(){return e._rangeContainer.getColorForValue(this.value)}),n},_renderScale:function(e){var t=this,n=t._translator.getDomain(),i=n[0],o=n[1],a=t._translator.getCodomain(),r=i>o,s=T(i,o),l=D(i,o);e.min=s,e.max=l,e.startAngle=90-a[0],e.endAngle=90-a[1],e.skipViewportExtending=!0,t._scale.updateOptions(e),t._scale.setBusinessRange({axisType:"continuous",dataType:"numeric",min:s,max:l,invert:r}),t._updateScaleTickIndent(e),t._scaleGroup.linkAppend(),t._scale.draw(m({},t._canvas))},_updateIndicatorSettings:function(e){var t=this;e.currentValue=e.baseValue=S(t._translator.translate(e.baseValue))?I(e.baseValue):t._baseValue,e.vertical=t._area.vertical,e.text&&!e.text.format&&(e.text.format=t._defaultFormatOptions)},_prepareIndicatorSettings:function(e,t){var n=this,i=n._themeManager.theme("valueIndicators"),o=C(e.type||n._themeManager.theme(t)),a=E(!0,{},i._default,i[o],e);return a.type=o,a.animation=n._animationSettings,a.containerBackgroundColor=n._containerBackgroundColor,n._updateIndicatorSettings(a),a},_cleanValueIndicators:function(){this._valueIndicator&&this._valueIndicator.clean(),this._subvalueIndicatorsSet&&this._subvalueIndicatorsSet.clean()},_prepareValueIndicators:function(){var e=this;return e._prepareValueIndicator(),null!==e.__subvalues&&e._prepareSubvalueIndicators(),[e._valueIndicator,e._subvalueIndicatorsSet]},_updateActiveElements:function(){this._updateValueIndicator(),this._updateSubvalueIndicators()},_prepareValueIndicator:function(){var e=this,t=e._valueIndicator,n=e._prepareIndicatorSettings(e.option("valueIndicator")||{},"valueIndicatorType");t&&t.type!==n.type&&(t.dispose(),t=null),t||(t=e._valueIndicator=e._createIndicator(n.type,e._renderer.root,"dxg-value-indicator","value-indicator")),t.render(n)},_createSubvalueIndicatorsSet:function(){var e=this,t=e._renderer.root;return new p({createIndicator:function(n,i){return e._createIndicator(n,t,"dxg-subvalue-indicator","subvalue-indicator",i)},createPalette:function(t){return e._themeManager.createPalette(t)}})},_prepareSubvalueIndicators:function(){var e,t,n=this,i=n._subvalueIndicatorsSet,o=n._prepareIndicatorSettings(n.option("subvalueIndicator")||{},"subvalueIndicatorType");i||(i=n._subvalueIndicatorsSet=n._createSubvalueIndicatorsSet()),e=o.type!==i.type,i.type=o.type,(t=n._createIndicator(o.type,n._renderer.root))&&(t.dispose(),i.render(o,e))},_setupValue:function(e){this.__value=i(e,this.__value)},_setupSubvalues:function(e){var t,n,a,r=void 0===e?this.__subvalues:o(e);if(null!==r){for(t=0,n=r.length,a=[];t<n;++t)a.push(i(r[t],this.__subvalues[t]));this.__subvalues=a}},_updateValueIndicator:function(){var e=this;e._valueIndicator&&e._valueIndicator.value(e.__value,e._noAnimation)},_updateSubvalueIndicators:function(){var e=this;e._subvalueIndicatorsSet&&e._subvalueIndicatorsSet.values(e.__subvalues,e._noAnimation)},value:function(e){return void 0!==e?(this._changeValue(e),this):this.__value},subvalues:function(e){return void 0!==e?(this._changeSubvalues(e),this):null!==this.__subvalues?this.__subvalues.slice():void 0},_changeValue:function(e){var t=this;t._setupValue(e),t._beginValueChanging(),t._updateValueIndicator(),t.__value!==t.option(P)&&t.option(P,t.__value),t._endValueChanging()},_changeSubvalues:function(e){var t=this;null!==t.__subvalues?(t._setupSubvalues(e),t._beginValueChanging(),t._updateSubvalueIndicators(),t._endValueChanging()):(t.__subvalues=o(e),t._setContentSize(),t._renderContent()),k(t.__subvalues,t.option(B))||t.option(B,t.__subvalues)},_optionChangesMap:{scale:"DOMAIN",rangeContainer:"MOSTLY_TOTAL",valueIndicator:"MOSTLY_TOTAL",subvalueIndicator:"MOSTLY_TOTAL",containerBackgroundColor:"MOSTLY_TOTAL",value:"VALUE",subvalues:"SUBVALUES",valueIndicators:"MOSTLY_TOTAL"},_customChangesOrder:["VALUE","SUBVALUES"],_change_VALUE:function(){this._changeValue(this.option(P))},_change_SUBVALUES:function(){this._changeSubvalues(this.option(B))},_applyMainLayout:null,_getElementLayout:null,_createIndicator:function(e,t,n,i,o,a){var r=this,s=r._factory.createIndicator({renderer:r._renderer,translator:r._translator,owner:t,tracker:r._tracker,className:n},e,a);return s&&(s.type=e,s._trackerInfo={type:i,index:o}),s},_getApproximateScreenRange:null}),p.prototype={constructor:p,dispose:function(){var e=this;return A(e._indicators,function(e,t){t.dispose()}),e._parameters=e._options=e._indicators=e._colorPalette=e._palette=null,e},clean:function(){var e=this;return e._sample&&e._sample.clean().dispose(),A(e._indicators,function(e,t){t.clean()}),e._sample=e._options=e._palette=null,e},render:function(e,t){var n=this;return n._options=e,n._sample=n._parameters.createIndicator(n.type),n._sample.render(e),n.enabled=n._sample.enabled,n._palette=v(e.palette)?n._parameters.createPalette(e.palette):null,n.enabled&&(n._generatePalette(n._indicators.length),n._indicators=w(n._indicators,function(e,i){return t&&(e.dispose(),e=n._parameters.createIndicator(n.type,i)),e.render(n._getIndicatorOptions(i)),e})),n},getOffset:function(){return this._sample.getOffset()},resize:function(e){var t=this;return t._layout=e,A(t._indicators,function(t,n){n.resize(e)}),t},measure:function(e){return this._sample.measure(e)},_getIndicatorOptions:function(e){var t=this._options;return this._colorPalette&&(t=E({},t,{color:this._colorPalette[e]})),t},_generatePalette:function(e){var t=this,n=null;t._palette&&(t._palette.reset(),n=t._palette.generateColors(e,{repeat:!0})),t._colorPalette=n},_adjustIndicatorsCount:function(e){var t,n,i,o=this,a=o._indicators,r=a.length;if(r>e){for(t=e,n=r;t<n;++t)a[t].clean().dispose();o._indicators=a.slice(0,e),o._generatePalette(a.length)}else if(r<e)for(o._generatePalette(e),t=r,n=e;t<n;++t)(i=o._parameters.createIndicator(o.type,t)).render(o._getIndicatorOptions(t)).resize(o._layout),a.push(i)},values:function(e,t){var n=this;if(n.enabled)return void 0!==e?(y(e)||(e=S(e)?[Number(e)]:null),e&&(n._adjustIndicatorsCount(e.length),A(n._indicators,function(n,i){i.value(e[n],t)})),n):w(n._indicators,function(e){return e.value()})}},t.createIndicatorCreator=function(e){return function(t,n,i){var o=e[C(n)]||!i&&e._default;return o?new o(t):null}}},function(e,t,n){var i=n(397).smartFormatter,o=n(1).isFunction,a={emptySliderMarkerText:". . .",pointerSize:4};t.utils={trackerSettings:{fill:"grey",stroke:"grey",opacity:1e-4},animationSettings:{duration:250}},t.consts=a,t.formatValue=function(e,t,n,a,r,s){var l={value:e,valueText:i(e,{labelOptions:t,ticks:n?n.ticks:[],tickInterval:n?n.tickInterval:void 0,dataType:a,type:r,logarithmBase:s})};return String(o(t.customizeText)?t.customizeText.call(l,l):l.valueText)},t.HEIGHT_COMPACT_MODE=24},function(e,t,n){var i=n(7).getWindow(),o=n(1),a=["auto","none","inherit","initial"],r=function(e,t){var n=0;return t.forEach(function(t){n+=parseFloat(e[t])||0}),n},s=function(e,t){var n="width"===e?"Left":"Top",i="width"===e?"Right":"Bottom";return{padding:r(t,["padding"+n,"padding"+i]),border:r(t,["border"+n+"Width","border"+i+"Width"]),margin:r(t,["margin"+n,"margin"+i])}},l=function(e,t){return e.indexOf("px")>0?e=parseInt(e.replace("px","")):e.indexOf("%")>0?e=parseInt(e.replace("%",""))*function(e){return o.isWindow(e)?e.innerHeight:e.offsetHeight}(t)/100:isNaN(e)||(e=parseInt(e)),e},u=function(e,t,n){return e?a.indexOf(e)>-1?t?null:e:(o.isString(e)&&(e=l(e,n)),o.isNumeric(e)?Math.max(0,e+t):"calc("+e+(t<0?" - ":" ")+Math.abs(t)+"px)"):null};t.getSize=function(e,t,n){var o=i.getComputedStyle(e),a=s(t,o),r=e.getClientRects().length,l=e.getBoundingClientRect()[t],u=r?l:0;return u<=0?(u=parseFloat(o[t]||e.style[t])||0,u-=function(e,t,n){var i=t[e];return"border-box"===t.boxSizing&&i.length&&"%"!==i[i.length-1]?n.border+n.padding:0}(t,o,a)):u-=a.padding+a.border,n.paddings&&(u+=a.padding),n.borders&&(u+=a.border),n.margins&&(u+=a.margin),u},t.getElementBoxParams=s,t.addOffsetToMaxHeight=function(e,t,n){var i=u(e,t,n);return null!==i?i:"none"},t.addOffsetToMinHeight=function(e,t,n){var i=u(e,t,n);return null!==i?i:0},t.getVerticalOffsets=function(e,t){if(!e)return 0;var n=s("height",i.getComputedStyle(e));return n.padding+n.border+(t?n.margin:0)},t.getVisibleHeight=function(e){if(e){var t=e.getBoundingClientRect();if(t.height)return t.height}return 0}},function(e,t,n){var i=n(4).escapeRegExp,o={3:"abbreviated",4:"wide",5:"narrow"},a=function(e,t){return e>2?Object.keys(o).map(function(e){return["format","standalone"].map(function(n){return t.getMonthNames(o[e],n).join("|")}).join("|")}).join("|"):"0?[1-9]|1[012]"},r={y:function(e){return"[0-9]+"},M:a,L:a,Q:function(e,t){return e>2?t.getQuarterNames(o[e],"format").join("|"):"0?[1-4]"},E:function(e,t){return"\\D*"},a:function(e,t){return t.getPeriodNames(o[e<3?3:e],"format").join("|")},d:function(e){return"0?[1-9]|[12][0-9]|3[01]"},H:function(e){return"0?[0-9]|1[0-9]|2[0-3]"},h:function(e){return"0?[1-9]|1[012]"},m:function(e){return"0?[0-9]|[1-5][0-9]"},s:function(e){return"0?[0-9]|[1-5][0-9]"},S:function(e){return"[0-9]{1,"+e+"}"}},s=Number,l=function(e,t){return e.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())},u=function(e,t,n){return t>2?["format","standalone"].map(function(t){return Object.keys(o).map(function(i){var a=n.getMonthNames(o[i],t);return l(a,e)})}).reduce(function(e,t){return e.concat(t)}).filter(function(e){return e>=0})[0]:s(e)-1},c={y:function(e,t){var n=s(e);return 2===t?n<30?2e3+n:1900+n:n},M:u,L:u,Q:function(e,t,n){return t>2?n.getQuarterNames(o[t],"format").indexOf(e):s(e)-1},E:function(e,t,n){var i=n.getDayNames(o[t<3?3:t],"format");return l(i,e)},a:function(e,t,n){var i=n.getPeriodNames(o[t<3?3:t],"format");return l(i,e)},d:s,H:s,h:s,m:s,s:s,S:function(e,t){for(t=Math.max(t,3),e=e.slice(0,3);t<3;)e+="0",t++;return s(e)}},d=["y","M","d","h","m","s","S"],h={y:"setFullYear",M:"setMonth",L:"setMonth",a:function(e,t){var n=e.getHours();t||12!==n?t&&12!==n&&e.setHours(n+12):e.setHours(0)},d:"setDate",H:"setHours",h:"setHours",m:"setMinutes",s:"setSeconds",S:"setMilliseconds"},p=function(e,t){var n=e[t],i=0;do{t++,i++}while(e[t]===n);return i},f=function(e,t){for(var n="",i=0;i<t;i++)n+=e;return n},g=function(e,t){for(var n,o="",a="",s=[],l=function(){a&&(s.push("'"+a+"'"),o+=i(a)+")",a="")},u=0;u<e.length;u++){var c=e[u],d=r[c];if(!("'"===c)||(n=!n,"'"===e[u-1]))if(d&&!n){var h=p(e,u),g=f(c,h);l(),s.push(g),o+="("+d(h,t)+")",u+=h-1}else a||(o+="("),a+=c}return l(),{patterns:s,regexp:new RegExp("^"+o+"$","i")}};t.getParser=function(e,t){var n=g(e,t);return function(e){var i=n.regexp.exec(e);if(i){var o=new Date,a=new Date(o.getFullYear(),0,1),r=function(e){return e.map(function(e){return"'"===e[0]?"":"H"===e[0]?"h":e[0]})}(n.patterns),s=function(e){var t=e.map(function(e){return d.indexOf(e)});return Math.max.apply(Math,t)}(r);return function(e){var t=e.filter(function(e){return d.indexOf(e)<0});return d.concat(t)}(r).forEach(function(e,l){if(e&&!(l<d.length&&l>s)){var u=r.indexOf(e);u>=0?function(e,t,n,i){var o=t[0],a=h[o],r=c[o];if(a&&r){var s=r(n,t.length,i);e[a]?e[a](s):a(e,s)}}(a,n.patterns[u],i[u+1],t):function(e,t,n){var i=h[t],o="g"+i.substr(1);e[i](n[o]())}(a,e,o)}}),a}return null}},t.getRegExpInfo=g,t.getPatternSetters=function(){return h}},function(e,t,n){var i=n(13).inArray,o=function(){var e=[];return{add:function(t){-1===i(t,e)&&e.push(t)},remove:function(t){var n=i(t,e);-1!==n&&e.splice(n,1)},fire:function(){var t=e.pop(),n=!!t;return n&&t(),n},hasCallback:function(){return e.length>0}}}();e.exports=function(){return o.fire()},e.exports.hideCallback=o},function(e,t,n){var i=n(171).data=n(233);i.odata=n(480),e.exports=i},function(e,t,n){var i=n(37),o=n(12),a=n(7).getWindow(),r=n(1),s=n(84),l=n(208),u=n(214),c=function(e,t){return new d(e,t)},d=function(e,t){return e?"string"==typeof e?"body"===e?(this[0]=t?t.body:o.getBody(),this.length=1,this):(t=t||o.getDocument(),"<"===e[0]?(this[0]=o.createElement(e.slice(1,-1),t),this.length=1,this):([].push.apply(this,o.querySelectorAll(t,e)),this)):o.isNode(e)||r.isWindow(e)?(this[0]=e,this.length=1,this):Array.isArray(e)?([].push.apply(this,e),this):c(e.toArray?e.toArray():[e]):(this.length=0,this)};c.fn={dxRenderer:!0},d.prototype=c.fn;var h=function(e,t){for(var n=0;n<this.length;n++){var i=c(this[n]);i[e].apply(i,t)}return this},p=function(e,t,n){null!=n?o.setAttribute(e,t,n):o.removeAttribute(e,t)};d.prototype.show=function(){return this.toggle(!0)},d.prototype.hide=function(){return this.toggle(!1)},d.prototype.toggle=function(e){return this[0]&&this.toggleClass("dx-state-invisible",!e),this},d.prototype.attr=function(e,t){if(this.length>1&&arguments.length>1)return h.call(this,"attr",arguments);if(!this[0])return r.isObject(e)||void 0!==t?this:void 0;if(!this[0].getAttribute)return this.prop(e,t);if("string"==typeof e&&1===arguments.length){var n=this[0].getAttribute(e);return null==n?void 0:n}if(r.isPlainObject(e))for(var i in e)this.attr(i,e[i]);else p(this[0],e,t);return this},d.prototype.removeAttr=function(e){return this[0]&&o.removeAttribute(this[0],e),this},d.prototype.prop=function(e,t){if(!this[0])return this;if("string"==typeof e&&1===arguments.length)return this[0][e];if(r.isPlainObject(e))for(var n in e)this.prop(n,e[n]);else o.setProperty(this[0],e,t);return this},d.prototype.addClass=function(e){return this.toggleClass(e,!0)},d.prototype.removeClass=function(e){return this.toggleClass(e,!1)},d.prototype.hasClass=function(e){if(!this[0]||void 0===this[0].className)return!1;for(var t=e.split(" "),n=0;n<t.length;n++)if(this[0].classList){if(this[0].classList.contains(t[n]))return!0}else{if(((r.isString(this[0].className)?this[0].className:o.getAttribute(this[0],"class"))||"").split(" ").indexOf(t[n])>=0)return!0}return!1},d.prototype.toggleClass=function(e,t){if(this.length>1)return h.call(this,"toggleClass",arguments);if(!this[0]||!e)return this;t=void 0===t?!this.hasClass(e):t;for(var n=e.split(" "),i=0;i<n.length;i++)o.setClass(this[0],n[i],t);return this},["width","height","outerWidth","outerHeight","innerWidth","innerHeight"].forEach(function(e){var t=e.toLowerCase().indexOf("width")>=0?"Width":"Height",n=t.toLowerCase(),i=0===e.indexOf("outer"),s=0===e.indexOf("inner");d.prototype[e]=function(u){if(this.length>1&&arguments.length>0)return h.call(this,e,arguments);var c=this[0];if(c){if(r.isWindow(c))return i?c["inner"+t]:o.getDocumentElement()["client"+t];if(o.isDocument(c)){var d=o.getDocumentElement(),p=o.getBody();return Math.max(p["scroll"+t],p["offset"+t],d["scroll"+t],d["offset"+t],d["client"+t])}if(0===arguments.length||"boolean"==typeof u){var f={paddings:s||i,borders:i,margins:u};return l.getSize(c,n,f)}if(null==u)return this;if(r.isNumeric(u)){var g=a.getComputedStyle(c),_=l.getElementBoxParams(n,g),m="border-box"===g.boxSizing;i?u-=m?0:_.border+_.padding:s?u+=m?_.border:-_.padding:m&&(u+=_.border+_.padding)}return u+=r.isNumeric(u)?"px":"",o.setStyle(c,n,u),this}}}),d.prototype.html=function(e){return arguments.length?(this.empty(),"string"==typeof e&&!u.isTablePart(e)||"number"==typeof e?(this[0].innerHTML=e,this):this.append(u.parseHTML(e))):this[0].innerHTML};var f=function(e,t){if(this[0]&&e){"string"==typeof e?e=u.parseHTML(e):e.nodeType?e=[e]:r.isNumeric(e)&&(e=[o.createTextNode(e)]);for(var n=0;n<e.length;n++){var i=e[n],a=this[0];"TABLE"===a.tagName&&"TR"===i.tagName&&a.tBodies&&a.tBodies.length&&(a=a.tBodies[0]),o.insertElement(a,i.nodeType?i:i[0],t)}}},g=function(e,t){if(this[0]&&this[0].style&&!(null===t||"number"==typeof t&&isNaN(t))){e=s.styleProp(e);for(var n=0;n<this.length;n++)this[n].style[e]=s.normalizeStyleProp(e,t)}};d.prototype.css=function(e,t){if(r.isString(e)){if(2!==arguments.length){if(!this[0])return;e=s.styleProp(e);var n=a.getComputedStyle(this[0])[e]||this[0].style[e];return r.isNumeric(n)?n.toString():n}g.call(this,e,t)}else if(r.isPlainObject(e))for(var i in e)g.call(this,i,e[i]);return this},d.prototype.prepend=function(e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.prepend(arguments[t]);return this}return f.apply(this,[e,this[0].firstChild]),this},d.prototype.append=function(e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.append(arguments[t]);return this}return f.apply(this,[e]),this},d.prototype.prependTo=function(e){return(e=c(e))[0]&&o.insertElement(e[0],this[0],e[0].firstChild),this},d.prototype.appendTo=function(e){return this.length>1?h.call(this,"appendTo",arguments):(o.insertElement(c(e)[0],this[0]),this)},d.prototype.insertBefore=function(e){return e&&e[0]&&o.insertElement(e[0].parentNode,this[0],e[0]),this},d.prototype.insertAfter=function(e){return e&&e[0]&&o.insertElement(e[0].parentNode,this[0],e[0].nextSibling),this},d.prototype.before=function(e){return this[0]&&o.insertElement(this[0].parentNode,e[0],this[0]),this},d.prototype.after=function(e){return this[0]&&o.insertElement(this[0].parentNode,e[0],this[0].nextSibling),this},d.prototype.wrap=function(e){if(this[0]){var t=c(e);t.insertBefore(this),t.append(this)}return this},d.prototype.wrapInner=function(e){var t=this.contents();return t.length?t.wrap(e):this.append(e),this},d.prototype.replaceWith=function(e){if(e&&e[0])return e.insertBefore(this),this.remove(),e},d.prototype.remove=function(){return this.length>1?h.call(this,"remove",arguments):(i.cleanDataRecursive(this[0],!0),o.removeElement(this[0]),this)},d.prototype.detach=function(){return this.length>1?h.call(this,"detach",arguments):(o.removeElement(this[0]),this)},d.prototype.empty=function(){return this.length>1?h.call(this,"empty",arguments):(i.cleanDataRecursive(this[0]),o.setText(this[0],""),this)},d.prototype.clone=function(){for(var e=[],t=0;t<this.length;t++)e.push(this[t].cloneNode(!0));return c(e)},d.prototype.text=function(e){if(!arguments.length){for(var t="",n=0;n<this.length;n++)t+=this[n]&&this[n].textContent||"";return t}var a=r.isFunction(e)?e():e;return i.cleanDataRecursive(this[0],!1),o.setText(this[0],r.isDefined(a)?a:""),this},d.prototype.val=function(e){return 1===arguments.length?this.prop("value",r.isDefined(e)?e:""):this.prop("value")},d.prototype.contents=function(){if(!this[0])return c();var e=[];return e.push.apply(e,this[0].childNodes),c(e)},d.prototype.find=function(e){var t=c();if(!e)return t;var n,i=[];if("string"==typeof e)for(e=e.trim(),n=0;n<this.length;n++){var a=this[n];if(o.isElementNode(a)){var r=a.getAttribute("id"),s=r||"dx-query-children";r||p(a,"id",s);var l=(s="[id='"+s+"'] ")+e.replace(/([^\\])(,)/g,"$1, "+s);i.push.apply(i,o.querySelectorAll(a,l)),p(a,"id",r)}else o.isDocument(a)&&i.push.apply(i,o.querySelectorAll(a,e))}else for(n=0;n<this.length;n++)e=o.isNode(e)?e:e[0],this[n]!==e&&this[n].contains(e)&&i.push(e);return t.add(i)};var _=function(e,t){return!t.nodeType||!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)};d.prototype.filter=function(e){if(!e)return c();if(":visible"===e)return this.filter(_);if(":hidden"===e)return this.filter(function(e,t){return!_(0,t)});for(var t=[],n=0;n<this.length;n++){var i=this[n];if(o.isElementNode(i)&&"string"===r.type(e))o.elementMatches(i,e)&&t.push(i);else if(o.isNode(e)||r.isWindow(e))e===i&&t.push(i);else if(r.isFunction(e))e.call(i,n,i)&&t.push(i);else for(var a=0;a<e.length;a++)e[a]===i&&t.push(i)}return c(t)},d.prototype.not=function(e){for(var t=[],n=this.filter(e).toArray(),i=0;i<this.length;i++)-1===n.indexOf(this[i])&&t.push(this[i]);return c(t)},d.prototype.is=function(e){return!!this.filter(e).length},d.prototype.children=function(e){for(var t=[],n=0;n<this.length;n++)for(var i=this[n]?this[n].childNodes:[],a=0;a<i.length;a++)o.isElementNode(i[a])&&t.push(i[a]);return t=c(t),e?t.filter(e):t},d.prototype.siblings=function(){var e=this[0];if(!e||!e.parentNode)return c();for(var t=[],n=e.parentNode.childNodes||[],i=0;i<n.length;i++){var a=n[i];o.isElementNode(a)&&a!==e&&t.push(a)}return c(t)},d.prototype.each=function(e){for(var t=0;t<this.length&&!1!==e.call(this[t],t,this[t]);t++);},d.prototype.index=function(e){return e?(e=c(e),this.toArray().indexOf(e[0])):this.parent().children().index(this)},d.prototype.get=function(e){return this[e<0?this.length+e:e]},d.prototype.eq=function(e){return e=e<0?this.length+e:e,c(this[e])},d.prototype.first=function(){return this.eq(0)},d.prototype.last=function(){return this.eq(-1)},d.prototype.parent=function(e){if(!this[0])return c();var t=c(this[0].parentNode);return!e||t.is(e)?t:c()},d.prototype.parents=function(e){for(var t=[],n=this.parent();n&&n[0]&&!o.isDocument(n[0]);)o.isElementNode(n[0])&&(!e||e&&n.is(e))&&t.push(n.get(0)),n=n.parent();return c(t)},d.prototype.closest=function(e){if(this.is(e))return this;for(var t=this.parent();t&&t.length;){if(t.is(e))return t;t=t.parent()}return c()},d.prototype.next=function(e){if(!this[0])return c();var t=c(this[0].nextSibling);if(!arguments.length)return t;for(;t&&t.length;){if(t.is(e))return t;t=t.next()}return c()},d.prototype.prev=function(){return this[0]?c(this[0].previousSibling):c()},d.prototype.add=function(e){for(var t=c(e),n=this.toArray(),i=0;i<t.length;i++){var o=t[i];-1===n.indexOf(o)&&n.push(o)}return c(n)};var m=[];d.prototype.splice=function(){return c(m.splice.apply(this,arguments))},d.prototype.slice=function(){return c(m.slice.apply(this,arguments))},d.prototype.toArray=function(){return m.slice.call(this)};var v=function(e){return r.isWindow(e)?e:e.defaultView};d.prototype.offset=function(){if(this[0]){if(!this[0].getClientRects().length)return{top:0,left:0};var e=this[0].getBoundingClientRect(),t=v(this[0].ownerDocument),n=this[0].ownerDocument.documentElement;return{top:e.top+t.pageYOffset-n.clientTop,left:e.left+t.pageXOffset-n.clientLeft}}},d.prototype.offsetParent=function(){if(!this[0])return c();for(var e=c(this[0].offsetParent);e[0]&&"static"===e.css("position");)e=c(e[0].offsetParent);return e[0]?e:c(o.getDocumentElement())},d.prototype.position=function(){if(this[0]){var e,t=parseFloat(this.css("marginTop")),n=parseFloat(this.css("marginLeft"));if("fixed"===this.css("position"))return{top:(e=this[0].getBoundingClientRect()).top-t,left:e.left-n};e=this.offset();var i=this.offsetParent(),o={top:0,left:0};return"HTML"!==i[0].nodeName&&(o=i.offset()),o={top:o.top+parseFloat(i.css("borderTopWidth")),left:o.left+parseFloat(i.css("borderLeftWidth"))},{top:e.top-o.top-t,left:e.left-o.left-n}}},[{name:"scrollLeft",offsetProp:"pageXOffset",scrollWindow:function(e,t){e.scrollTo(t,e.pageYOffset)}},{name:"scrollTop",offsetProp:"pageYOffset",scrollWindow:function(e,t){e.scrollTo(e.pageXOffset,t)}}].forEach(function(e){var t=e.name;d.prototype[t]=function(n){if(this[0]){var i=v(this[0]);return void 0===n?i?i[e.offsetProp]:this[0][t]:(i?e.scrollWindow(i,n):this[0][t]=n,this)}}}),d.prototype.data=function(e,t){if(this[0])return arguments.length<2?i.data.call(c,this[0],e):(i.data.call(c,this[0],e,t),this)},d.prototype.removeData=function(e){return this[0]&&i.removeData(this[0],e),this};var y=function(){return c.apply(this,arguments)};Object.defineProperty(y,"fn",{enumerable:!0,configurable:!0,get:function(){return c.fn},set:function(e){c.fn=e}}),e.exports={set:function(e){c=e},get:function(){return y}}},function(e,t,n){var i=["pageX","pageY","screenX","screenY","clientX","clientY"];e.exports=function(e){i.forEach(function(t){e(t,function(e){return function(e,t){if(t[e]&&!t.touches||!t.touches)return t[e];var n=t.touches.length?t.touches:t.changedTouches;return n.length?n[0][e]:void 0}(t,e)})},this)}},function(e,t,n){var i=n(13).merge,o=n(12),a=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,r={default:{tagsCount:0,startTags:"",endTags:""},thead:{tagsCount:1,startTags:"<table>",endTags:"</table>"},td:{tagsCount:3,startTags:"<table><tbody><tr>",endTags:"</tr></tbody></table>"},col:{tagsCount:2,startTags:"<table><colgroup>",endTags:"</colgroup></table>"},tr:{tagsCount:2,startTags:"<table><tbody>",endTags:"</tbody></table>"}};r.tbody=r.colgroup=r.caption=r.tfoot=r.thead,r.th=r.td;t.parseHTML=function(e){if("string"!=typeof e)return null;var t=o.createDocumentFragment().appendChild(o.createElement("div")),n=a.exec(e),s=n&&n[1].toLowerCase(),l=r[s]||r.default;t.innerHTML=l.startTags+e+l.endTags;for(var u=0;u<l.tagsCount;u++)t=t.lastChild;return i([],t.childNodes)},t.isTablePart=function(e){var t=a.exec(e);return t&&t[1]in r}},function(e,t,n){var i=n(1),o=n(43),a=n(51),r=n(33),s=n(183).getFormat,l=n(275).getLanguageId,u={quarter:"shortDate",quarterAndYear:"shortDate",minute:"longTime",millisecond:"longTime"},c={thousands:"#,##0{0},&quot;K&quot;",millions:"#,##0{0},,&quot;M&quot;",billions:"#,##0{0},,,&quot;B&quot;",trillions:"#,##0{0},,,,&quot;T&quot;",percent:"0{0}%",decimal:"#{0}",fixedpoint:"#,##0{0}",exponential:"0{0}E+00",currency:" "},d=/a+/g,h=/E/g,p=/dE+/g,f=/L/g,g=/h/g,_=/\//g,m=/\[/g,v=/]/g,y=/./g;n(148);var b=e.exports={_applyPrecision:function(e,t){var n,i;if(t>0){for(n="decimal"!==e?".":"",i=0;i<t;i++)n+="0";return n}return""},_getCurrencyFormat:function(e){return a.getOpenXmlCurrencyFormat(e)},_hasArabicDigits:function(e){for(var t,n=0;n<e.length;n++)if((t=e.charCodeAt(n))>=1632&&t<1642)return!0;return!1},_convertDateFormatToOpenXml:function(e){return e.replace(_,"\\/").split("'").map(function(e,t){return t%2==0?e.replace(d,"AM/PM").replace(p,"d").replace(h,"d").replace(f,"M").replace(g,"H").replace(m,"\\[").replace(v,"\\]"):e?e.replace(y,"\\$&"):"'"}).join("")},_convertDateFormat:function(e){e=u[e&&e.type||e]||e;var t=(r.format(new Date(2009,8,8,6,5,4),e)||"").toString(),n=s(function(t){return r.format(t,e)});return n&&(n=this._convertDateFormatToOpenXml(n),n=this._getLanguageInfo(t)+n),n},_getLanguageInfo:function(e){var t=l(),n=t?t.toString(16):"",i="";if(this._hasArabicDigits(e)){for(;n.length<3;)n="0"+n;i="[$-2010"+n+"]"}else n&&(i="[$-"+n+"]");return i},_convertNumberFormat:function(e,t,n){var i,a="currency"===e?this._getCurrencyFormat(n):c[e.toLowerCase()];return a&&(i=o.format(a,this._applyPrecision(e,t))),i},convertFormat:function(e,t,n,o){if(i.isDefined(e)){if("date"===n)return b._convertDateFormat(e);if(i.isString(e)&&c[e.toLowerCase()])return b._convertNumberFormat(e,t,o)}}}},function(e,t,n){function i(e,t){for(;e.length<t;)e="0"+e;return e}var o={3:"abbreviated",4:"wide",5:"narrow"},a={y:function(e,t,n){var o=e[n?"getUTCFullYear":"getFullYear"]();return 2===t&&(o%=100),i(o.toString(),t)},M:function(e,t,n,a){var r=e[n?"getUTCMonth":"getMonth"](),s=o[t];return s?a.getMonthNames(s,"format")[r]:i((r+1).toString(),Math.min(t,2))},L:function(e,t,n,a){var r=e[n?"getUTCMonth":"getMonth"](),s=o[t];return s?a.getMonthNames(s,"standalone")[r]:i((r+1).toString(),Math.min(t,2))},Q:function(e,t,n,a){var r=e[n?"getUTCMonth":"getMonth"](),s=Math.floor(r/3),l=o[t];return l?a.getQuarterNames(l)[s]:i((s+1).toString(),Math.min(t,2))},E:function(e,t,n,i){var a=e[n?"getUTCDay":"getDay"](),r=o[t<3?3:t];return i.getDayNames(r)[a]},a:function(e,t,n,i){var a=e[n?"getUTCHours":"getHours"]()<12?0:1,r=o[t];return i.getPeriodNames(r)[a]},d:function(e,t,n){return i(e[n?"getUTCDate":"getDate"]().toString(),Math.min(t,2))},H:function(e,t,n){return i(e[n?"getUTCHours":"getHours"]().toString(),Math.min(t,2))},h:function(e,t,n){return i((e[n?"getUTCHours":"getHours"]()%12||12).toString(),Math.min(t,2))},m:function(e,t,n){return i(e[n?"getUTCMinutes":"getMinutes"]().toString(),Math.min(t,2))},s:function(e,t,n){return i(e[n?"getUTCSeconds":"getSeconds"]().toString(),Math.min(t,2))},S:function(e,t,n){return i(e[n?"getUTCMilliseconds":"getMilliseconds"]().toString(),3).substr(0,t)},x:function(e,t,n){var o=n?0:e.getTimezoneOffset(),a=o>0?"-":"+",r=Math.abs(o),s=r%60,l=i(Math.floor(r/60).toString(),2),u=i(s.toString(),2);return a+l+(t>=3?":":"")+(t>1||s?u:"")},X:function(e,t,n){return n||!e.getTimezoneOffset()?"Z":a.x(e,t,n)},Z:function(e,t,n){return a.X(e,t>=5?3:2,n)}};e.exports.getFormatter=function(e,t){return function(n){var i,o,r,s,l=0,u=!1,c="";if(!n)return null;if(!e)return n;var d="Z"===e[e.length-1]||"'Z'"===e.slice(-3);for(i=0;i<e.length;i++)r=e[i],o=a[r],l++,(s=r===e[i+1])||(o&&!u&&(c+=o(n,l,d,t)),l=0),"'"!==r||s?!u&&o||(c+=r):u=!u,"'"===r&&s&&i++;return c}}},function(e,t,n){var i=n(3),o=["January","February","March","April","May","June","July","August","September","October","November","December"],a=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],r=["AM","PM"],s=["Q1","Q2","Q3","Q4"],l=function(e,t){var n={abbreviated:3,short:2,narrow:1};return i.map(e,function(e){return e.substr(0,n[t])})};e.exports={getMonthNames:function(e){return l(o,e)},getDayNames:function(e){return l(a,e)},getQuarterNames:function(e){return s},getPeriodNames:function(e){return r}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=i(n(75)),r=i(n(426)),s={tryCreateTag:function(e){var t=null;return(0,o.isDefined)(e)&&(t={patternFill:r.default.tryCreateTag(e.patternFill)},s.isEmpty(t)&&(t=null)),t},tryCreateFillFromSimpleFormat:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.backgroundColor,n=e.fillPatternType,i=e.fillPatternColor;return!(0,o.isDefined)(t)||(0,o.isDefined)(n)&&(0,o.isDefined)(i)?(0,o.isDefined)(n)&&(0,o.isDefined)(i)?{patternFill:{patternType:n,foregroundColor:{rgb:i},backgroundColor:{rgb:t}}}:void 0:{patternFill:{patternType:"solid",foregroundColor:{rgb:t}}}},copySimpleFormat:function(e,t){void 0!==e.backgroundColor&&(t.backgroundColor=e.backgroundColor),void 0!==e.fillPatternType&&(t.fillPatternType=e.fillPatternType),void 0!==e.fillPatternColor&&(t.fillPatternColor=e.fillPatternColor)},copy:function(e){var t=null;return(0,o.isDefined)(e)&&(t={},void 0!==e.patternFill&&(t.patternFill=r.default.copy(e.patternFill))),t},areEqual:function(e,t){return s.isEmpty(e)&&s.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&r.default.areEqual(e.patternFill,t.patternFill)},isEmpty:function(e){return!(0,o.isDefined)(e)||r.default.isEmpty(e.patternFill)},toXml:function(e){return a.default.toXml("fill",{},r.default.toXml(e.patternFill))}};t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=function(e){return e&&e.__esModule?e:{default:e}}(n(75)),a={_tryConvertColor:function(e){if("string"!=typeof e)return e;var t=void 0;if(e.length>0&&"#"===e[0]){var n=e.substr(1,e.length);t=6===n.length?"FF"+n:8===n.length?n[6]+n[7]+n.substr(0,6):n}else t=e;return t},tryCreateTag:function(e){var t=null;return(0,i.isDefined)(e)&&(t="string"==typeof e?{rgb:this._tryConvertColor(e)}:{rgb:this._tryConvertColor(e.rgb),theme:e.theme},a.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,i.isDefined)(e)&&("string"==typeof e?t=e:(t={},void 0!==e.rgb&&(t.rgb=e.rgb),void 0!==e.theme&&(t.theme=e.theme))),t},isEmpty:function(e){return!(0,i.isDefined)(e)||!(0,i.isDefined)(e.rgb)&&!(0,i.isDefined)(e.theme)},areEqual:function(e,t){return a.isEmpty(e)&&a.isEmpty(t)||(0,i.isDefined)(e)&&(0,i.isDefined)(t)&&e.rgb===t.rgb&&e.theme===t.theme},toXml:function(e,t){return o.default.toXml(e,{rgb:t.rgb,theme:t.theme})}};t.default=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=i(n(75)),r=i(n(219)),s={tryCreateTag:function(e){var t=null;return(0,o.isDefined)(e)&&(t={size:e.size,name:e.name,family:e.family,scheme:e.scheme,bold:e.bold,italic:e.italic,underline:e.underline,color:r.default.tryCreateTag(e.color)},s.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,o.isDefined)(e)&&(t={},void 0!==e.size&&(t.size=e.size),void 0!==e.name&&(t.name=e.name),void 0!==e.family&&(t.family=e.family),void 0!==e.scheme&&(t.scheme=e.scheme),void 0!==e.bold&&(t.bold=e.bold),void 0!==e.italic&&(t.italic=e.italic),void 0!==e.underline&&(t.underline=e.underline),void 0!==e.color&&(t.color=r.default.copy(e.color))),t},areEqual:function(e,t){return s.isEmpty(e)&&s.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.size===t.size&&e.name===t.name&&e.family===t.family&&e.scheme===t.scheme&&(e.bold===t.bold||!e.bold==!t.bold)&&(e.italic===t.italic||!e.italic==!t.italic)&&e.underline===t.underline&&r.default.areEqual(e.color,t.color)},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.size)&&!(0,o.isDefined)(e.name)&&!(0,o.isDefined)(e.family)&&!(0,o.isDefined)(e.scheme)&&(!(0,o.isDefined)(e.bold)||!e.bold)&&(!(0,o.isDefined)(e.italic)||!e.italic)&&!(0,o.isDefined)(e.underline)&&r.default.isEmpty(e.color)},toXml:function(e){var t=[(0,o.isDefined)(e.bold)&&e.bold?a.default.toXml("b",{}):"",(0,o.isDefined)(e.size)?a.default.toXml("sz",{val:e.size}):"",(0,o.isDefined)(e.color)?r.default.toXml("color",e.color):"",(0,o.isDefined)(e.name)?a.default.toXml("name",{val:e.name}):"",(0,o.isDefined)(e.family)?a.default.toXml("family",{val:e.family}):"",(0,o.isDefined)(e.scheme)?a.default.toXml("scheme",{val:e.scheme}):"",(0,o.isDefined)(e.italic)&&e.italic?a.default.toXml("i",{}):"",(0,o.isDefined)(e.underline)?a.default.toXml("u",{val:e.underline}):""].join("");return a.default.toXml("font",{},t)}};t.default=s},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){var i=(0,x.default)("<canvas>")[0];return i.width=e+2*n,i.height=t+2*n,i.hidden=!0,i}function a(e,t,n,i,o,a,r,s){var l,u,c,d,h,p,f=(e+n)/2,g=(t+i)/2,_=H(t-i,e-n),m=a?1:-1;_+=M/180*90*(r?1:-1),l=V(L(n-e,2)+L(i-t,2))/2,c=f+m*((u=V(F(L(o,2)-L(l,2))))*z(_)),d=g+m*(u*N(_)),h=H(t-d,e-c),p=H(i-d,n-c),s.arc(c,d,o,h,p,!r)}function r(e){var t,n=U(e.attributes||{}),i=(0,I.extend)({},n,{text:e.textContent.replace(/\s+/g," "),textAlign:"middle"===n["text-anchor"]?"center":n["text-anchor"]}),o=n.transform;return o&&((t=o.match(/translate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/))&&(t=t[0].match(/-*\d+([.]\d+)*/g),i.translateX=W(t[0]),i.translateY=t[1]?W(t[1]):0),(t=o.match(/rotate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*,*\s*-*\d+([.]\d+)*)*/))&&(t=t[0].match(/-*\d+([.]\d+)*/g),i.rotationAngle=W(t[0]),i.rotationX=t[1]&&W(t[1]),i.rotationY=t[2]&&W(t[2]))),function(e,t){var n,i=e.style||{};for(n in i)""!==i[n]&&(t[(0,A.camelize)(n)]=i[n]);T.default.isElementNode(e)&&D.default.contains(T.default.getBody(),e)&&(i=P.getComputedStyle(e),["fill","stroke","stroke-width","font-family","font-size","font-style","font-weight"].forEach(function(e){e in i&&""!==i[e]&&(t[(0,A.camelize)(e)]=i[e])}),["opacity","fill-opacity","stroke-opacity"].forEach(function(e){e in i&&""!==i[e]&&"1"!==i[e]&&(t[e]=W(i[e]))})),t.textDecoration=t.textDecoration||t.textDecorationLine,t.globalAlpha=t.opacity||t.globalAlpha}(e,i),i}function s(e,t){var n,i,o=t.split(" "),r=0;do{switch(n=W(o[r+1]),i=W(o[r+2]),o[r]){case"M":e.moveTo(n,i),r+=3;break;case"L":e.lineTo(n,i),r+=3;break;case"C":e.bezierCurveTo(n,i,W(o[r+3]),W(o[r+4]),W(o[r+5]),W(o[r+6])),r+=7;break;case"A":a(W(o[r-2]),W(o[r-1]),W(o[r+6]),W(o[r+7]),n,W(o[r+4]),W(o[r+5]),e),r+=8;break;case"Z":e.closePath(),r+=1}}while(r<o.length)}function l(e){var t=e&&e.match(/url\(.*#(.*?)["']?\)/i);return t&&t[1]}function u(e,t){var n=[];t.fontSize=t.fontSize||q,t.fontFamily,t.fill=t.fill||K,t.fontStyle&&n.push(t.fontStyle),t.fontWeight&&n.push(t.fontWeight),n.push(t.fontSize),n.push(t.fontFamily),e.font=n.join(" "),e.textAlign=t.textAlign,e.fillStyle=t.fill,e.globalAlpha=t.globalAlpha}function c(e,t,n){u(e,t),p(e,t,n),t.text&&e.fillText(t.text,t.x||0,t.y||0),v(e,t,!0),function(e,t,n){if(t.textDecoration&&"none"!==t.textDecoration){var i=t.x,o=e.measureText(t.text).width,a=parseInt(t.fontSize,10),r=a*j<1?1:a*j,s=t.y;switch(t.textDecoration){case"line-through":s-=a/3+r/2;break;case"overline":s-=a-r;break;case"underline":s+=r}e.rect(i,s,o,r),y(e,t,n),v(e,t)}}(e,t,n)}function d(e){for(var t=e.childNodes,n=0;n<t.length;n++)if("tspan"===t[n].tagName)return!0;return!1}function h(e,t,n,i){var o=e.tagName,a="text"===o||"tspan"===o||void 0===o,l="image"===o,_=(0,I.extend)({},n,r(e));if("hidden"!==_.visibility&&!_["hidden-for-export"]){t.save(),!l&&f(t,_),g(t,_,i),function(e){e.strokeOpacity=void 0!==e["stroke-opacity"]?e["stroke-opacity"]:1,e.fillOpacity=void 0!==e["fill-opacity"]?e["fill-opacity"]:1,void 0!==e.opacity&&(e.strokeOpacity*=e.opacity,e.fillOpacity*=e.opacity)}(_);var m=void 0;switch(t.beginPath(),e.tagName){case void 0:c(t,_,i);break;case"text":case"tspan":!function e(t,n,i,o){for(var a,s=[],l=0,c=0;c<t.length;c++){var p=t[c];if(void 0===p.tagName)h(p,n,i,o);else if("tspan"===p.tagName||"text"===p.tagName){var f=r(p),g=(0,I.extend)({},i,f);if("tspan"===p.tagName&&d(p)){e(p.childNodes,n,g,o);continue}g.textAlign="start",a&&void 0===f.x||(a={elements:[],options:[],widths:[],offsets:[]},s.push(a)),void 0!==f.y&&(l=0),void 0!==f.dy&&(l+=parseFloat(f.dy)),a.elements.push(p),a.options.push(g),a.offsets.push(l),u(n,g),a.widths.push(n.measureText(g.text).width)}}s.forEach(function(t){var a=t.widths.reduce(function(e,t){return e+t},0),r=0,s=0;"center"===i.textAlign&&(r=a/2),"end"===i.textAlign&&(r=a),t.options.forEach(function(e,n){var i=t.widths[n];e.x=e.x-r+s,e.y+=t.offsets[n],s+=i}),t.elements.forEach(function(i,a){e(i.childNodes,n,t.options[a],o)})})}(e.childNodes,t,_,i);break;case"image":m=function(e,t,n){var i=new O.Deferred,o=new P.Image;return o.onload=function(){e.save(),e.globalAlpha=t.globalAlpha,f(e,t),g(e,t,n),e.drawImage(o,t.x,t.y,t.width,t.height),e.restore(),i.resolve()},o.onerror=function(){i.resolve()},o.setAttribute("crossOrigin","anonymous"),o.src=t.href||t["xlink:href"],i}(t,_,i);break;case"path":s(t,_.d);break;case"rect":(function(e,t){var n=t.x,i=t.y,o=t.width,a=t.height,r=t.rx;r?(r=R(r,o/2,a/2),e.save(),e.translate(n,i),e.moveTo(o/2,0),e.arcTo(o,0,o,a,r),e.arcTo(o,a,0,a,r),e.arcTo(0,a,0,0,r),e.arcTo(0,0,r,0,r),e.lineTo(o/2,0),e.restore()):e.rect(t.x,t.y,t.width,t.height)})(t,_),t.closePath();break;case"circle":t.arc(_.cx,_.cy,_.r,0,2*M,1)}return a||(p(t,_,i),y(t,_,i),v(t,_)),t.restore(),m}}function p(e,t,n){var i,o=l(t.filter);o&&((i=n.filters[o])||(i={offsetX:0,offsetY:0,blur:0,color:"#000"}),e.shadowOffsetX=i.offsetX,e.shadowOffsetY=i.offsetY,e.shadowColor=i.color,e.shadowBlur=i.blur)}function f(e,t){e.translate(t.translateX||0,t.translateY||0),delete t.translateX,delete t.translateY,t.rotationAngle&&(e.translate(t.rotationX||0,t.rotationY||0),e.rotate(t.rotationAngle*M/180),e.translate(-(t.rotationX||0),-(t.rotationY||0)),delete t.rotationAngle,delete t.rotationX,delete t.rotationY)}function g(e,t,n){t["clip-path"]&&(h(n.clipPaths[l(t["clip-path"])],e,{},n),e.clip(),delete t["clip-path"])}function _(e){var t,n,i={};return $(e.childNodes,function(e,o){var a=o.attributes;if(a.result)switch(a.result.value){case"gaussianBlurResult":i.blur=W(a.stdDeviation.value);break;case"offsetResult":i.offsetX=W(a.dx.value),i.offsetY=W(a.dy.value);break;case"floodResult":t=a["flood-color"]?a["flood-color"].value:"#000",n=a["flood-opacity"]?a["flood-opacity"].value:1,i.color=function(e,t){var n=new w.default(e);return"rgba("+n.r+","+n.g+","+n.b+","+t+")"}(t,n)}}),i}function m(e,t,n,i){return function e(t,n){function i(){e(Array.prototype.slice.call(t,1),n,o)}var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new O.Deferred;if(0===t.length)return o.resolve();var a=n(t[0]);return(0,C.isPromise)(a)?a.then(i):i(),o}(e,function(e){switch(e.tagName&&e.tagName.toLowerCase()){case"g":var o=(0,I.extend)({},n,r(e));t.save(),f(t,o),g(t,o,i);var a=function(){t.restore()},s=m(e.childNodes,t,o,i);return(0,C.isPromise)(s)?s.then(a):a(),s;case"defs":return m(e.childNodes,t,{},i);case"clippath":i.clipPaths[e.attributes.id.textContent]=e.childNodes[0];break;case"pattern":i.patterns[e.attributes.id.textContent]=e;break;case"filter":i.filters[e.id]=_(e);break;default:return h(e,t,n,i)}})}function v(e,t,n){var i=t.stroke;i&&"none"!==i&&0!==t["stroke-width"]&&(function(e,t){var n=t["stroke-dasharray"]&&t["stroke-dasharray"].match(/(\d+)/g);n&&n.length&&(n=S.default.map(n,function(e){return W(e)}),e.setLineDash(n))}(e,t),e.lineJoin=t["stroke-linejoin"],e.lineWidth=t["stroke-width"],e.globalAlpha=t.strokeOpacity,e.strokeStyle=i,n?e.strokeText(t.text,t.x,t.y):e.stroke(),e.globalAlpha=1)}function y(e,t,n){var i=t.fill;i&&"none"!==i&&(e.fillStyle=-1===i.search(/url/)?i:function(e,t,n){var i=n.patterns[l(t)],a=r(i),s=o(a.width,a.height,0),u=s.getContext("2d");return m(i.childNodes,u,a,n),e.createPattern(s,"repeat")}(e,i,n),e.globalAlpha=t.fillOpacity,e.fill(),e.globalAlpha=1)}function b(e,t,n,i,a){var r=o(t,n,a),s=r.getContext("2d"),l=k.default.getSvgElement(e);return s.translate(a,a),T.default.getBody().appendChild(r),l.attributes.direction&&(r.dir=l.attributes.direction.textContent),function(e,t,n,i,o){e.fillStyle=i||"#ffffff",e.fillRect(-o,-o,t+2*o,n+2*o)}(s,t,n,i,a),m(l.childNodes,s,{},{clipPaths:{},patterns:{},filters:{}}).then(function(){return T.default.getBody().removeChild(r),r})}var x=i(n(2)),w=i(n(90)),C=n(1),k=i(n(184)),S=i(n(3)),I=n(0),T=i(n(12)),D=i(n(10)),E=i(n(7)),A=n(32),O=n(6),P=E.default.getWindow(),B=Math,M=B.PI,R=B.min,F=B.abs,V=B.sqrt,L=B.pow,H=B.atan2,z=B.cos,N=B.sin,$=S.default.each,W=Number,G=1,j=.05,q="10px",K="#000",U=function(e){var t,n={};return S.default.each(e,function(e,i){t=i.textContent,isFinite(t)&&(t=W(t)),n[i.name.toLowerCase()]=t}),n};t.imageCreator={getImageData:function(e,t){var n="image/"+t.format,i=t.width,o=t.height,a=t.backgroundColor;(0,C.isFunction)(t.__parseAttributesFn)&&(U=t.__parseAttributesFn);var r=new O.Deferred;return b(e,i,o,a,t.margin).then(function(e){r.resolve(function(e,t){var n=e.toDataURL(t,G);return P.atob(n.substring(("data:"+t+";base64,").length))}(e,n))}),r},getData:function(e,n){var i=this,o=new O.Deferred;return t.imageCreator.getImageData(e,n).then(function(e){var t="image/"+n.format,a=(0,C.isFunction)(P.Blob)&&!n.forceProxy?i._getBlob(e,t):i._getBase64(e);o.resolve(a)}),o},_getBlob:function(e,t){var n,i=new Uint8Array(e.length);for(n=0;n<e.length;n++)i[n]=e.charCodeAt(n);return new P.Blob([i.buffer],{type:t})},_getBase64:function(e){return P.btoa(e)}},t.getData=function(e,n,i){return t.imageCreator.getData(e,n).then(i)},t.testFormats=function(e){var t=o(100,100,0);return e.reduce(function(e,n){var i=("image/"+n).toLowerCase();return-1!==t.toDataURL(i).indexOf(i)?e.supported.push(n):e.unsupported.push(n),e},{supported:[],unsupported:[]})}},function(e,t,n){function i(e){function t(){for(;n.length;){i=!0;var e=n.shift()();if(void 0!==e){if(e.then)return void a(e).always(t);throw o.Error("E0015")}}i=!1}var n=[],i=!1;return{add:function(o,a){e?(n[0]&&a&&a(n[0]),n=[o]):n.push(o),i||t()},busy:function(){return i}}}var o=n(21),a=n(6).when;t.create=i,t.enqueue=i().add},function(e,t,n){var i=n(1).isFunction,o=/cubic-bezier\((\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\)/,a={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)"},r=function(e,t,n,i){var o=3*e,a=3*(n-e)-o,r=1-o-a,s=3*t,l=3*(i-t)-s,u=1-s-l,c=function(e){return e*(o+e*(a+e*r))},d=function(e){return o+e*(2*a+3*e*r)};return function(e){return function(e){return e*(s+e*(l+e*u))}(function(e){for(var t,n=e,i=0;i<14&&(t=c(n)-e,!(Math.abs(t)<.001));)n-=t/d(n),i++;return n}(e))}},s={};t.setEasing=function(e){s=e},t.getEasing=function(e){return s[e]},t.convertTransitionTimingFuncToEasing=function(e){var t,n=(e=a[e]||e).match(o);n||(n=a[t="linear"].match(o)),n=n.slice(1,5);for(var l=0;l<n.length;l++)n[l]=parseFloat(n[l]);var u=t||"cubicbezier_"+n.join("_").replace(/\./g,"p");return i(s[u])||(s[u]=function(e,t,i,o,a){return o*r(n[0],n[1],n[2],n[3])(t/a)+i}),u}},function(e,t,n){var i=n(16),o=n(0).extend,a=n(3).each,r=n(150),s=function(e){var t=[];return a(e.touches,function(e,n){t.push(o({pointerId:n.identifier},n))}),{pointers:t,pointerId:e.changedTouches[0].identifier}},l=r.inherit({ctor:function(){this.callBase.apply(this,arguments),this._pointerId=0},_handler:function(e){if(function(e){return"ios"===i.real().platform&&("dxpointerdown"===e||"dxpointerup"===e)}(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(o(s(e.originalEvent),e))}});l.map={dxpointerdown:"touchstart",dxpointermove:"touchmove",dxpointerup:"touchend",dxpointercancel:"touchcancel",dxpointerover:"",dxpointerout:"",dxpointerenter:"",dxpointerleave:""},l.normalize=s,e.exports=l},function(e,t,n){var i=n(3).each,o=n(47),a=n(12),r=function(e,t){o.add(function(){e.split(" ").forEach(function(e){a.listen(a.getDocument(),e,t,!0)})})};e.exports=function(e,t,n){n=n||function(){};var o=[],a=function(e){var n=-1;return i(o,function(i,o){return!t(e,o)||(n=i,!1)}),n},s=function(e){var t=a(e);t>-1&&o.splice(t,1)};r(e.dxpointerdown,function(e){-1===a(e)&&(n(e),o.push(e))}),r(e.dxpointermove,function(e){o[a(e)]=e}),r(e.dxpointerup,s),r(e.dxpointercancel,s),this.pointers=function(){return o},this.reset=function(){o=[]}}},function(e,t,n){var i,o=n(0).extend,a=n(150),r=n(225),s={dxpointerdown:"mousedown",dxpointermove:"mousemove",dxpointerup:"mouseup",dxpointercancel:"",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},l=function(e){return e.pointerId=1,{pointers:i.pointers(),pointerId:1}},u=!1,c=function(){u||(i=new r(s,function(){return!0}),u=!0)},d=a.inherit({ctor:function(){this.callBase.apply(this,arguments),c()},_fireEvent:function(e){return this.callBase(o(l(e.originalEvent),e))}});d.map=s,d.normalize=l,d.activate=c,d.resetObserver=function(){i.reset()},e.exports=d},function(e,t,n){var i=n(53),o=n(61).compare,a=n(124);if(n(78)()&&o(i.fn.jquery,[1,10])<0)throw a.Error("E0012");n(440),n(441),n(442),n(443),n(444),n(445),n(446),n(447),n(448),n(449)},function(e,t,n){var i=n(25);e.exports=new i},function(e,t){e.exports=window.angular},function(e,t,n){var i=n(21);e.exports=function(){var e={},t=function(t){return e[t]||0};return{obtain:function(n){e[n]=t(n)+1},release:function(n){var o=t(n);if(o<1)throw i.Error("E0014");1===o?delete e[n]:e[n]=o-1},locked:function(e){return t(e)>0}}}},function(e,t,n){var i=n(41),o=n(4),a=n(1),r=o.getKeyHash,s=n(14),l=n(6).Deferred;e.exports=s.inherit({ctor:function(e){this.options=e,this._clearItemKeys()},_clearItemKeys:function(){this._setOption("addedItemKeys",[]),this._setOption("removedItemKeys",[]),this._setOption("removedItems",[]),this._setOption("addedItems",[])},validate:o.noop,_setOption:function(e,t){this.options[e]=t},onSelectionChanged:function(){var e=this.options.addedItemKeys,t=this.options.removedItemKeys,n=this.options.addedItems,i=this.options.removedItems,a=this.options.selectedItems,r=this.options.selectedItemKeys,s=this.options.onSelectionChanged||o.noop;this._clearItemKeys(),s({selectedItems:a,selectedItemKeys:r,addedItemKeys:e,removedItemKeys:t,addedItems:n,removedItems:i})},equalKeys:function(e,t){return this.options.equalByReference&&a.isObject(e)&&a.isObject(t)?e===t:o.equalByValue(e,t)},_clearSelection:function(e,t,n,i){return e=e||[],e=Array.isArray(e)?e:[e],this.validate(),this.selectedItemKeys(e,t,n,i)},_loadFilteredData:function(e,t,n){var o=encodeURI(JSON.stringify(e)).length,r=this.options.maxFilterLengthInRequest&&o>this.options.maxFilterLengthInRequest,s=new l,u={filter:r?void 0:e,select:r?this.options.dataFields():n||this.options.dataFields()};return e&&0===e.length?s.resolve([]):this.options.load(u).done(function(n){var o=a.isPlainObject(n)?n.data:n;t?o=o.filter(t):r&&(o=i(o).filter(e).toArray()),s.resolve(o)}).fail(s.reject.bind(s)),s},updateSelectedItemKeyHash:function(e){for(var t=0;t<e.length;t++){var n=r(e[t]);if(!a.isObject(n))this.options.keyHashIndices[n]=this.options.keyHashIndices[n]||[],this.options.keyHashIndices[n].push(t)}},_isAnyItemSelected:function(e){for(var t=0;t<e.length;t++)if(this.options.isItemSelected(e[t]))return;return!1},_getFullSelectAllState:function(){var e=this.options.plainItems(),t=this.options.filter(),n=this.options.selectedItems;t&&(n=i(n).filter(t).toArray());var o=n.length;return o?o>=this.options.totalCount()||void 0:this._isAnyItemSelected(e)},_getVisibleSelectAllState:function(){for(var e=this.options.plainItems(),t=!1,n=!1,i=0;i<e.length;i++){var o=e[i],a=this.options.getItemData(o),r=this.options.keyOf(a);this.options.isSelectableItem(o)&&(this.isItemKeySelected(r)?t=!0:n=!0)}return!!t&&(!n||void 0)}})},function(e,t,n){var i=n(59);e.exports.getClosestNodeWithContext=function e(t){return!i.contextFor(t)&&t.parentNode?e(t.parentNode):t}},function(e,t,n){var i=n(129);e.exports=i.data=i.data||{},Object.defineProperty(i.data,"errorHandler",{get:function(){return n(35).errorHandler},set:function(e){n(35).errorHandler=e}}),Object.defineProperty(i.data,"_errorHandler",{get:function(){return n(35)._errorHandler},set:function(e){n(35)._errorHandler=e}}),i.data.DataSource=n(477),i.data.query=n(41),i.data.Store=n(91),i.data.ArrayStore=n(68),i.data.CustomStore=n(135),i.data.LocalStore=n(478),i.data.base64_encode=n(40).base64_encode,i.data.Guid=n(42),i.data.utils={},i.data.utils.compileGetter=n(20).compileGetter,i.data.utils.compileSetter=n(20).compileSetter,i.EndpointSelector=n(479),i.data.queryImpl=n(41).queryImpl,i.data.queryAdapters=n(180);var o=n(40);i.data.utils.normalizeBinaryCriterion=o.normalizeBinaryCriterion,i.data.utils.normalizeSortingInfo=o.normalizeSortingInfo,i.data.utils.errorMessageFromXhr=o.errorMessageFromXhr,i.data.utils.aggregators=o.aggregators,i.data.utils.keysEqual=o.keysEqual,i.data.utils.isDisjunctiveOperator=o.isDisjunctiveOperator,i.data.utils.isConjunctiveOperator=o.isConjunctiveOperator,i.data.utils.processRequestResultLock=o.processRequestResultLock,i.data.utils.toComparable=n(20).toComparable,i.data.utils.multiLevelGroup=n(81).multiLevelGroup,i.data.utils.arrangeSortingInfo=n(81).arrangeSortingInfo,i.data.utils.normalizeDataSourceOptions=n(45).normalizeDataSourceOptions},function(e,t,n){var i=n(3).each,o=n(12),a=n(7).getWindow(),r=n(70),s="dxproxy.devexpress.com:8000",l={},u=r(function(){var e=o.createElement("a"),t=["protocol","hostname","port","pathname","search","hash"];return function(n){e.href=n;var o={};return i(t,function(){o[this]=e[this]}),o.pathname=function(e){return"/"!==e.charAt(0)&&(e="/"+e),e}(o.pathname),o}}),c=function(e){return u()(e)};e.exports={parseUrl:c,isProxyUsed:function(){return a.location.host===s},formatProxyUrl:function(e){var t=c(e);if(!/^(localhost$|127\.)/i.test(t.hostname))return e;var n=s+"/"+a.location.pathname.split("/")[1]+"_"+t.port;return l[n]=t.hostname+":"+t.port,"http://"+n+t.pathname+t.search},formatLocalUrl:function(e){if(e.indexOf(s)<0)return e;var t=e;for(var n in l)if(l.hasOwnProperty(n)&&e.indexOf(n)>=0){t=e.replace(n,l[n]);break}return t}}},function(e,t,n){var i=n(1).isDefined,o=n(27),a=n(101),r=n(234),s=n(35).errors,l=n(41),u=n(91),c=n(236),d=n(6),h=d.when,p=d.Deferred;n(155);var f=u.inherit({ctor:function(e){this.callBase(e),this._extractServiceOptions(e);var t=this.key(),n=e.fieldTypes,i=e.keyType;if(i){var o="string"==typeof i;t||(t=o?"5d46402c-7899-4ea9-bd81-8b73c47c7683":Object.keys(i),this._legacyAnonymousKey=t),o&&(i=function(e,t){var n={};return n[e]=t,n}(t,i)),n=function(e,t){var n={};for(var i in e)n[i]=e[i];for(var o in t)o in n?n[o]!==t[o]&&s.log("W4001",o):n[o]=t[o];return n}(n,i)}this._fieldTypes=n||{},2===this.version()?this._updateMethod="MERGE":this._updateMethod="PATCH"},_customLoadOptions:function(){return["expand","customQueryParams"]},_byKeyImpl:function(e,t){var n={};return t&&(n.$expand=a.generateExpand(this._version,t.expand,t.select),n.$select=a.generateSelect(this._version,t.select)),this._sendRequest(this._byKeyUrl(e),"GET",n)},createQuery:function(e){var t,n;if(e=e||{},n={adapter:"odata",beforeSend:this._beforeSend,errorHandler:this._errorHandler,jsonp:this._jsonp,version:this._version,withCredentials:this._withCredentials,expand:e.expand,requireTotalCount:e.requireTotalCount,deserializeDates:this._deserializeDates,fieldTypes:this._fieldTypes},t=i(e.urlOverride)?e.urlOverride:this._url,i(this._filterToLower)&&(n.filterToLower=this._filterToLower),e.customQueryParams){var o=c.escapeServiceOperationParams(e.customQueryParams,this.version());4===this.version()?t=c.formatFunctionInvocationUrl(t,o):n.params=o}return l(t,n)},_insertImpl:function(e){this._requireKey();var t=this,n=new p;return h(this._sendRequest(this._url,"POST",null,e)).done(function(i){n.resolve(o().useLegacyStoreResult?e:i||e,t.keyOf(i))}).fail(n.reject),n.promise()},_updateImpl:function(e,t){var n=new p;return h(this._sendRequest(this._byKeyUrl(e),this._updateMethod,null,t)).done(function(i){o().useLegacyStoreResult?n.resolve(e,t):n.resolve(i||t,e)}).fail(n.reject),n.promise()},_removeImpl:function(e){var t=new p;return h(this._sendRequest(this._byKeyUrl(e),"DELETE")).done(function(){t.resolve(e)}).fail(t.reject),t.promise()},_convertKey:function(e){var t=e,n=this._fieldTypes,i=this.key()||this._legacyAnonymousKey;if(Array.isArray(i)){t={};for(var o=0;o<i.length;o++){var r=i[o];t[r]=a.convertPrimitiveValue(n[r],e[r])}}else n[i]&&(t=a.convertPrimitiveValue(n[i],e));return t},_byKeyUrl:function(e,t){var n=t?r.formatLocalUrl(this._url):this._url,i=this._convertKey(e);return n+"("+encodeURIComponent(a.serializeKey(i,this._version))+")"}},"odata").include(c.SharedMethods);e.exports=f},function(e,t,n){var i=n(43),o=n(3),a=n(101);n(155);var r={_extractServiceOptions:function(e){e=e||{},this._url=String(e.url).replace(/\/+$/,""),this._beforeSend=e.beforeSend,this._jsonp=e.jsonp,this._version=e.version||2,this._withCredentials=e.withCredentials,this._deserializeDates=e.deserializeDates,this._filterToLower=e.filterToLower},_sendRequest:function(e,t,n,i){return a.sendRequest(this.version(),{url:e,method:t,params:n||{},payload:i},{beforeSend:this._beforeSend,jsonp:this._jsonp,withCredentials:this._withCredentials,deserializeDates:this._deserializeDates})},version:function(){return this._version}};t.SharedMethods=r,t.escapeServiceOperationParams=function(e,t){if(!e)return e;var n={};return o.each(e,function(e,i){n[e]=a.serializeValue(i,t)}),n},t.formatFunctionInvocationUrl=function(e,t){return i.format("{0}({1})",e,o.map(t||{},function(e,t){return i.format("{0}={1}",t,e)}).join(","))}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(131)),r=i(n(110)),s=i(n(16)),l=i(n(27)),u=n(10),c=n(6),d=n(1),h=n(3),p=n(0),f=n(7),g=n(5),_=n(76),m=i(n(15)),v=i(n(18)),y=i(n(46)),b=n(4),x=(0,f.getWindow)(),w={text:"OK",onClick:function(){return!0}},C="dx-dialog",k="dx-button",S=a.default.inherit({ctor:function(e,t){this.callBase(t)},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{width:276}},{device:{platform:"android"},options:{lWidth:"60%",pWidth:"80%"}}])}});t.FakeDialogComponent=S,t.title="",t.custom=function(e){function n(e){i.resolve(e),A.hide().done(function(){A.$element().remove()})}var i=new c.Deferred,a=(new S).option();e=(0,p.extend)(a,e);var f=(0,o.default)("<div>").addClass(C).appendTo((0,_.value)()),m="messageHtml"in e;"message"in e&&v.default.log("W1013");var I=String(m?e.messageHtml:e.message),T=(0,o.default)("<div>").addClass("dx-dialog-message").html(I),D=[],E=e.toolbarItems;E?v.default.log("W0001","DevExpress.ui.dialog","toolbarItems","16.2","Use the 'buttons' option instead"):E=e.buttons,(0,h.each)(E||[w],function(){var e=new r.default(this.onClick,{context:A});D.push({toolbar:"bottom",location:s.default.current().android?"after":"center",widget:"dxButton",options:(0,p.extend)({},this,{onClick:function(){n(e.execute.apply(e,arguments))}})})});var A=new y.default(f,(0,p.extend)({title:e.title||t.title,showTitle:(0,b.ensureDefined)(e.showTitle,!0),dragEnabled:(0,b.ensureDefined)(e.dragEnabled,!0),height:"auto",width:function(){var t=((0,o.default)(x).height()>(0,o.default)(x).width()?"p":"l")+"Width",n=e.hasOwnProperty(t)?e[t]:e.width;return(0,d.isFunction)(n)?n():n},showCloseButton:e.showCloseButton||!1,ignoreChildEvents:!1,onContentReady:function(e){e.component.$content().addClass("dx-dialog-content").append(T)},onShowing:function(e){e.component.bottomToolbar().addClass("dx-dialog-buttons").find("."+k).addClass("dx-dialog-button"),(0,u.resetActiveElement)()},onShown:function(e){var t=e.component.bottomToolbar().find("."+k).first();(0,g.trigger)(t,"focus")},onHiding:function(){i.reject()},toolbarItems:D,animation:{show:{type:"pop",duration:400},hide:{type:"pop",duration:400,to:{opacity:0,scale:0},from:{opacity:1,scale:1}}},rtlEnabled:(0,l.default)().rtlEnabled,boundaryOffset:{h:10,v:0}},e.popupOptions));return A._wrapper().addClass("dx-dialog-wrapper"),e.position&&A.option("position",e.position),A._wrapper().addClass("dx-dialog-root"),{show:function(){return A.show(),i.promise()},hide:n}},t.alert=function(e,n,i){var o=(0,d.isPlainObject)(e)?e:{title:n,messageHtml:e,showTitle:i,dragEnabled:i};return t.custom(o).show()},t.confirm=function(e,n,i){var o=(0,d.isPlainObject)(e)?e:{title:n,messageHtml:e,showTitle:i,buttons:[{text:m.default.format("Yes"),onClick:function(){return!0}},{text:m.default.format("No"),onClick:function(){return!1}}],dragEnabled:i};return t.custom(o).show()}},function(e,t,n){var i=n(2),o=n(7).getWindow(),a=n(4).noop,r=n(15),s=n(8),l=n(0).extend,u=n(34),c=n(54),d=n(46),h=n(138),p=n(65),f=n(6).Deferred,g=c.inherit({_getDefaultOptions:function(){return l(this.callBase(),{usePopover:!1,target:null,title:"",showTitle:!0,showCancelButton:!0,cancelText:r.format("Cancel"),onCancelClick:null,visible:!1,noDataText:"",focusStateEnabled:!1,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios",tablet:!0},options:{usePopover:!0}}])},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new p(function(e,t){var n=new u(i("<div>"),l({onClick:t&&t.click},t));e.append(n.$element())},["disabled","icon","text","type","onClick","click"],this.option("integrationOptions.watchMethod"))},_itemContainer:function(){return this._$itemContainer},_itemClass:function(){return"dx-actionsheet-item"},_itemDataKey:function(){return"dxActionSheetItemData"},_toggleVisibility:a,_renderDimensions:a,_initMarkup:function(){this.callBase(),this.$element().addClass("dx-actionsheet"),this._createItemContainer()},_render:function(){this._renderPopup()},_createItemContainer:function(){this._$itemContainer=i("<div>").addClass("dx-actionsheet-container"),this._renderDisabled()},_renderDisabled:function(){this._$itemContainer.toggleClass("dx-state-disabled",this.option("disabled"))},_renderPopup:function(){this._$popup=i("<div>").appendTo(this.$element()),this._isPopoverMode()?this._createPopover():this._createPopup(),this._renderPopupTitle(),this._mapPopupOption("visible")},_mapPopupOption:function(e){this._popup&&this._popup.option(e,this.option(e))},_isPopoverMode:function(){return this.option("usePopover")&&this.option("target")},_renderPopupTitle:function(){this._mapPopupOption("showTitle"),this._popup&&this._popup._wrapper().toggleClass("dx-actionsheet-without-title",!this.option("showTitle"))},_clean:function(){this._$popup&&this._$popup.remove(),this.callBase()},_overlayConfig:function(){return{onInitialized:function(e){this._popup=e.component}.bind(this),disabled:!1,showTitle:!0,title:this.option("title"),deferRendering:!o.angular,onContentReady:this._popupContentReadyAction.bind(this),onHidden:this.hide.bind(this)}},_createPopover:function(){this._createComponent(this._$popup,h,l(this._overlayConfig(),{width:this.option("width")||200,height:this.option("height")||"auto",target:this.option("target")})),this._popup._wrapper().addClass("dx-actionsheet-popover-wrapper")},_createPopup:function(){this._createComponent(this._$popup,d,l(this._overlayConfig(),{dragEnabled:!1,width:this.option("width")||"100%",height:this.option("height")||"auto",showCloseButton:!1,position:{my:"bottom",at:"bottom",of:o},animation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom",of:o}},to:{position:{my:"bottom",at:"bottom",of:o}}},hide:{type:"slide",duration:400,from:{position:{my:"bottom",at:"bottom",of:o}},to:{position:{my:"top",at:"bottom",of:o}}}}})),this._popup._wrapper().addClass("dx-actionsheet-popup-wrapper")},_popupContentReadyAction:function(){this._popup.$content().append(this._$itemContainer),this._attachClickEvent(),this._attachHoldEvent(),this._prepareContent(),this._renderContent(),this._renderCancelButton()},_renderCancelButton:function(){if(!this._isPopoverMode()&&(this._$cancelButton&&this._$cancelButton.remove(),this.option("showCancelButton"))){var e=this._createActionByOption("onCancelClick")||a,t=this;this._$cancelButton=i("<div>").addClass("dx-actionsheet-cancel").appendTo(this._popup&&this._popup.$content()),this._createComponent(this._$cancelButton,u,{disabled:!1,text:this.option("cancelText"),onClick:function(n){var i={event:n,cancel:!1};e(i),i.cancel||t.hide()},integrationOptions:{}})}},_attachItemClickEvent:a,_itemClickHandler:function(e){this.callBase(e),i(e.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_itemHoldHandler:function(e){this.callBase(e),i(e.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_optionChanged:function(e){switch(e.name){case"width":case"height":case"visible":case"title":this._mapPopupOption(e.name);break;case"disabled":this._renderDisabled();break;case"showTitle":this._renderPopupTitle();break;case"showCancelButton":case"onCancelClick":case"cancelText":this._renderCancelButton();break;case"target":case"usePopover":case"items":this._invalidate();break;default:this.callBase(e)}},toggle:function(e){var t=this,n=new f;return t._popup.toggle(e).done(function(){t.option("visible",e),n.resolveWith(t)}),n.promise()},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)}});s("dxActionSheet",g),e.exports=g},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(7).getWindow(),r=n(5),s=n(42),l=n(8),u=n(4),c=n(1),d=n(0).extend,h=n(13).inArray,p=n(161),f=n(102),g=n(18),_=n(9),m=n(16),v=n(242),y=n(15),b=n(133),x=n(6).Deferred,w=n(283).default,C="dx-skip-gesture-event",k=["startswith","contains","endwith","notcontains"],S=p.inherit({_supportedKeys:function(){var e=this.callBase();return d({},e,{tab:function(t){if(this._allowSelectItemByTab()){this._saveValueChangeEvent(t);var n=o(this._list.option("focusedElement"));n.length&&this._setSelectedElement(n)}e.tab.apply(this,arguments)},space:u.noop,home:u.noop,end:u.noop})},_allowSelectItemByTab:function(){return this.option("opened")&&"instantly"===this.option("applyValueMode")},_setSelectedElement:function(e){var t=this._valueGetter(this._list._getItemData(e));this._setValue(t)},_setValue:function(e){this.option("value",e)},_getDefaultOptions:function(){return d(this.callBase(),d(v._dataExpressionDefaultOptions(),{displayValue:void 0,searchEnabled:!1,searchMode:"contains",searchTimeout:500,minSearchLength:0,searchExpr:null,valueChangeEvent:"input change keyup",selectedItem:null,noDataText:y.format("dxCollectionWidget-noDataText"),onSelectionChanged:null,onItemClick:u.noop,showDataBeforeSearch:!1,grouped:!1,groupTemplate:"group",popupPosition:{my:"left top",at:"left bottom",offset:{h:0,v:0},collision:"flip"},popupWidthExtension:0}))},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"win"===e.platform&&e.version&&8===e.version[0]},options:{popupPosition:{offset:{v:-6}}}},{device:{platform:"ios"},options:{popupPosition:{offset:{v:-1}}}},{device:{platform:"generic"},options:{buttonsLocation:"bottom center"}}])},_setOptionsByReference:function(){this.callBase(),d(this._optionsByReference,{value:!0,selectedItem:!0,displayValue:!0})},_init:function(){this.callBase(),this._initDataExpressions(),this._initActions(),this._setListDataSource(),this._validateSearchMode(),this._clearSelectedItem(),this._initItems()},_initItems:function(){var e=this.option().items;e&&!e.length&&this._dataSource&&(this.option().items=this._dataSource.items())},_initActions:function(){this._initContentReadyAction(),this._initSelectionChangedAction(),this._initItemClickAction()},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initSelectionChangedAction:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})},_initItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new b("item",this)},_saveFocusOnWidget:function(e){this._list&&this._list.initialOption("focusStateEnabled")&&this._focusInput()},_createPopup:function(){this.callBase(),this._popup._wrapper().addClass(this._popupWrapperClass());var e=this._popup.$content();r.off(e,"mouseup"),r.on(e,"mouseup",this._saveFocusOnWidget.bind(this))},_popupWrapperClass:function(){return"dx-dropdownlist-popup-wrapper"},_renderInputValue:function(){var e=this._getCurrentValue();return this._loadInputValue(e,this._setSelectedItem.bind(this)).always(this.callBase.bind(this,e))},_loadInputValue:function(e,t){return this._loadItem(e).always(t)},_loadItem:function(e,t){var n,o;return t&&"object"!==(void 0===e?"undefined":i(e))&&(t.itemByValue||(t.itemByValue={},(n=this._getPlainItems()).forEach(function(e){t.itemByValue[this._valueGetter(e)]=e},this)),o=t.itemByValue[e]),o||(n=this._getPlainItems(),o=u.grep(n,function(t){return this._isValueEquals(this._valueGetter(t),e)}.bind(this))[0]),void 0!==o?(new x).resolve(o).promise():this._loadValue(e)},_getPlainItems:function(e){var t=[];e=e||this.option("items")||[];for(var n=0;n<e.length;n++)e[n]&&e[n].items?t=t.concat(e[n].items):t.push(e[n]);return t},_setSelectedItem:function(e){var t=this._displayValue(e);this.option("selectedItem",u.ensureDefined(e,null)),this.option("displayValue",t)},_displayValue:function(e){return this._displayGetter(e)},_refreshSelected:function(){var e={};this._listItemElements().each(function(t,n){var i=o(n),a=this._valueGetter(i.data("dxListItemData"));this._isSelectedValue(a,e)?this._list.selectItem(i):this._list.unselectItem(i)}.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(h(t,k)<0)throw g.Error("E1019",e)},_clearSelectedItem:function(){this.option("selectedItem",null)},_processDataSourceChanging:function(){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(".dx-list-item"):o()},_popupConfig:function(){var e=this;return d(this.callBase(),{templatesRenderAsynchronously:!1,width:this.option("width"),onShowing:function(){e.$element().addClass(C)},onHidden:function(){e.$element().removeClass(C)},height:"auto",autoResizeEnabled:!1,maxHeight:this._getMaxHeight.bind(this)})},_renderPopupContent:function(){this._renderList()},_attachChildKeyboardEvents:function(){this._childKeyboardProcessor=this._keyboardProcessor.attachChildProcessor(),this._setListOption("_keyboardProcessor",this._childKeyboardProcessor)},_fireContentReadyAction:u.noop,_setAriaTargetForList:function(){this._list._getAriaTarget=this._getAriaTarget.bind(this),this._list.setAria("role","combobox")},_renderList:function(){this._listId="dx-"+(new s)._value;var e=this._$list=o("<div>").attr("id",this._listId).appendTo(this._popup.$content());this._list=this._createComponent(e,f,this._listConfig()),this._refreshList(),this._setAriaTargetForList(),this._renderPreventBlur(this._$list)},_renderPreventBlur:function(e){var t=_.addNamespace("mousedown","dxDropDownList");r.off(e,t),r.on(e,t,function(e){e.preventDefault()}.bind(this))},_renderOpenedState:function(){this.callBase();var e=this.option("opened")||void 0;this.setAria({activedescendant:e&&this._list.getFocusedItemId(),owns:e&&this._listId})},_refreshList:function(){this._list&&this._shouldRefreshDataSource()&&this._setListDataSource()},_shouldRefreshDataSource:function(){return!!this._list.option("dataSource")!==this._needPassDataSourceToList()},_isDesktopDevice:function(){return"desktop"===m.real().deviceType},_listConfig:function(){return{selectionMode:"single",_templates:this.option("_templates"),templateProvider:this.option("templateProvider"),noDataText:this.option("noDataText"),grouped:this.option("grouped"),onContentReady:this._listContentReadyHandler.bind(this),itemTemplate:this.option("itemTemplate"),indicateLoading:!1,keyExpr:this._getCollectionKeyExpr(),displayExpr:this._displayGetterExpr(),groupTemplate:this.option("groupTemplate"),tabIndex:null,onItemClick:this._listItemClickAction.bind(this),dataSource:this._getDataSource(),_keyboardProcessor:this._childKeyboardProcessor,hoverStateEnabled:!!this._isDesktopDevice()&&this.option("hoverStateEnabled"),focusStateEnabled:!!this._isDesktopDevice()&&this.option("focusStateEnabled")}},_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:u.noop,_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")},_searchValue:function(){return this._input().val()||""},_getSearchEvent:function(){return _.addNamespace("input",this.NAME+"Search")},_getSetFocusPolicyEvent:function(){return _.addNamespace("input",this.NAME+"FocusPolicy")},_renderEvents:function(){this.callBase(),r.on(this._input(),this._getSetFocusPolicyEvent(),this._setFocusPolicy.bind(this)),this._shouldRenderSearchEvent()&&r.on(this._input(),this._getSearchEvent(),this._searchHandler.bind(this))},_shouldRenderSearchEvent:function(){return this.option("searchEnabled")},_refreshEvents:function(){r.off(this._input(),this._getSearchEvent()),r.off(this._input(),this._getSetFocusPolicyEvent()),this.callBase()},_searchHandler:function(){if(this._isMinSearchLengthExceeded()){var e=this.option("searchTimeout");e?(this._clearSearchTimer(),this._searchTimer=setTimeout(this._searchDataSource.bind(this),e)):this._searchDataSource()}else this._searchCanceled()},_searchCanceled:function(){this._clearSearchTimer(),this._needPassDataSourceToList()&&this._filterDataSource(null),this._refreshList()},_searchDataSource:function(){this._filterDataSource(this._searchValue())},_filterDataSource:function(e){this._clearSearchTimer();var t=this._dataSource;return 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._dataSource;e&&e.searchValue()&&e.searchValue(null)},_dataSourceFiltered:function(){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._dataSource.pageIndex()?this.option().items=e:this.option().items=this.option().items.concat(e)},_hasItemsToShow:function(){var e=(this._dataSource&&this._dataSource.items()||[]).length;return!(!this._needPassDataSourceToList()||!e)},_clearSearchTimer:function(){clearTimeout(this._searchTimer),delete this._searchTimer},_popupShowingHandler:function(){this._dimensionChanged()},_dimensionChanged:function(){this._popup&&this._updatePopupDimensions()},_updatePopupDimensions:function(){this._updatePopupWidth(),this._updatePopupHeight()},_updatePopupWidth:function(){this._setPopupOption("width",this.$element().outerWidth()+this.option("popupWidthExtension"))},_needPopupRepaint:function(){if(!this._dataSource)return!1;var e=this._dataSource.pageIndex(),t=c.isDefined(this._pageIndex)&&e<=this._pageIndex;return this._pageIndex=e,t},_updatePopupHeight:function(){this._needPopupRepaint()&&this._popup.repaint(),this._list&&this._list.updateDimensions()},_getMaxHeight:function(){var e=this.$element(),t=e.offset(),n=o(a).height(),i=Math.max(t.top,n-t.top-e.outerHeight());return Math.min(.5*n,i)},_clean:function(){this._list&&delete this._list,this.callBase()},_dispose:function(){this._clearSearchTimer(),this.callBase()},_setCollectionWidgetOption:function(){this._setListOption.apply(this,arguments)},_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"noDataText":this._setListOption(e.name);break;case"displayValue":this.option("text",e.value);break;case"itemTemplate":case"searchTimeout":case"popupWidthExtension":break;case"selectedItem":this._selectionChangedAction({selectedItem:e.value});break;default:this.callBase(e)}}}).include(v,w);l("dxDropDownList",S),e.exports=S},function(e,t,n){var i=n(2),o=n(5),a=n(4),r=n(1),s=n(60),l=n(10).getPublicElement,u=n(3).each,c=n(20).compileGetter,d=n(0).extend,h=n(39),p=n(19),f=n(175),g=n(44),_=n(15),m=n(72),v=n(16),y=n(505),b=n(34),x=n(9),w=n(30),C=n(7),k=n(162),S=n(94).deviceDependentOptions,I=n(190).default,T=n(65),D=n(6).Deferred,E=n(283).default,A="dx-list-item",O="."+A,P="dx-list-group",B="dx-list-group-header",M="dx-list-group-body",R="dx-list-group-collapsed",F=c("items"),V=I.inherit({_activeStateUnit:[O,".dx-list-select-all"].join(","),_supportedKeys:function(){var e=this,t=function(t){var i=n(t);i.is(e.option("focusedElement"))&&(o(i,t),i=n(t)),e.option("focusedElement",l(i)),e.scrollToItem(i)},n=function(t){var n=e.scrollTop(),o=e.$element().height(),a=i(e.option("focusedElement")),r=!0;if(!a.length)return i();for(;r;){var s=a[t]();if(!s.length)break;var l=s.position().top+s.outerHeight()/2;(r=l<o+n&&l>n)&&(a=s)}return a},o=function(t,n){var i=t.position().top;"prev"===n&&(i=t.position().top-e.$element().height()+t.outerHeight()),e.scrollTo(i)};return d(this.callBase(),{leftArrow:a.noop,rightArrow:a.noop,pageUp:function(){return t("prev"),!1},pageDown:function(){return t("next"),!1}})},_getDefaultOptions:function(){return d(this.callBase(),{hoverStateEnabled:!0,pullRefreshEnabled:!1,scrollingEnabled:!0,showScrollbar:"onScroll",useNativeScrolling:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,pullingDownText:_.format("dxList-pullingDownText"),pulledDownText:_.format("dxList-pulledDownText"),refreshingText:_.format("dxList-refreshingText"),pageLoadingText:_.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:_.format("dxList-nextButtonText"),onItemSwipe:null,grouped:!1,onGroupRendered:null,collapsibleGroups:!1,groupTemplate:"group",indicateLoading:!0,activeStateEnabled:!0,_itemAttributes:{role:"option"},useInkRipple:!1,showChevronExpr:function(e){return e?e.showChevron:void 0},badgeExpr:function(e){return e?e.badge:void 0}})},_defaultOptionsRules:function(){var e=w.current();return this.callBase().concat(S(),[{device:function(){return!g.nativeScrolling},options:{useNativeScrolling:!1}},{device:function(e){return!g.nativeScrolling&&!v.isSimulator()&&"generic"===v.real().platform&&"generic"===e.platform},options:{showScrollbar:"onHover",pageLoadMode:"nextButton"}},{device:function(){return"desktop"===v.real().deviceType&&!v.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return"win"===v.current().platform&&v.isSimulator()},options:{bounceEnabled:!1}},{device:function(){return w.isMaterial(e)},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",pageLoadingText:"",useInkRipple:!0}}])},_visibilityChanged:function(e){e&&this._updateLoadingState(!0)},_itemClass:function(){return A},_itemDataKey:function(){return"dxListItemData"},_itemContainer:function(){return this._$container},_refreshItemElements:function(){this.option("grouped")?this._itemElementsCache=this._itemContainer().children("."+P).children("."+M).children(this._itemSelector()):this._itemElementsCache=this._itemContainer().children(this._itemSelector())},reorderItem:function(e,t){return this.callBase(e,t).done(function(){this._refreshItemElements()})},deleteItem:function(e){return this.callBase(e).done(function(){this._refreshItemElements()})},_itemElements:function(){return this._itemElementsCache},_itemSelectHandler:function(e){"single"===this.option("selectionMode")&&this.isItemSelected(e.currentTarget)||this.callBase(e)},_allowDynamicItemsAppend:function(){return!0},_init:function(){this.callBase(),this._$container=this.$element(),this._initScrollView(),this._feedbackShowTimeout=70,this._createGroupRenderAction(),this.setAria("role","listbox")},_scrollBottomMode:function(){return"scrollBottom"===this.option("pageLoadMode")},_nextButtonMode:function(){return"nextButton"===this.option("pageLoadMode")},_dataSourceOptions:function(){var e=this._scrollBottomMode(),t=this._nextButtonMode();return d(this.callBase(),{paginate:a.ensureDefined(e||t,!0)})},_getGroupedOption:function(){return this.option("grouped")},_dataSourceFromUrlLoadMode:function(){return"raw"},_initScrollView:function(){var e=this.option("scrollingEnabled"),t=e&&this.option("pullRefreshEnabled"),n=e&&this._scrollBottomMode()&&!!this._dataSource;this._scrollView=this._createComponent(this.$element(),k,{disabled:this.option("disabled")||!e,onScroll:this._scrollHandler.bind(this),onPullDown:t?this._pullDownHandler.bind(this):null,onReachBottom:n?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=i(this._scrollView.content()),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.callBase(),this._defaultTemplates.group=new T(function(e,t){r.isPlainObject(t)?t.key&&e.text(t.key):e.text(String(t))},["key"],this.option("integrationOptions.watchMethod"))},_prepareDefaultItemTemplate:function(e,t){if(this.callBase(e,t),e.icon){var n=s.getImageContainer(e.icon).addClass("dx-list-item-icon"),o=i("<div>").addClass("dx-list-item-icon-container");o.append(n),t.prepend(o)}},_getBindableFields:function(){return["text","html","icon"]},_updateLoadingState:function(e){var t=!e||this._isLastPage(),n=this._scrollBottomMode(),i=t||!n,o=i&&!this._isDataSourceLoading();i||this._scrollViewIsFull()?(this._scrollView.release(o),this._toggleNextButton(this._shouldRenderNextButton()&&!this._isLastPage()),this._loadIndicationSuppressed(!1)):this._infiniteDataLoading()},_shouldRenderNextButton:function(){return this._nextButtonMode()&&this._dataSource&&this._dataSource.isLoaded()},_dataSourceLoadingChangedHandler:function(e){this._loadIndicationSuppressed()||(e&&this.option("indicateLoading")?this._showLoadingIndicatorTimer=setTimeout(function(){var e=!this._itemElements().length;this._scrollView&&!e&&this._scrollView.startLoading()}.bind(this)):(clearTimeout(this._showLoadingIndicatorTimer),this._scrollView&&this._scrollView.finishLoading()))},_dataSourceChangedHandler:function(e){!this._shouldAppendItems()&&C.hasWindow()&&this._scrollView&&this._scrollView.scrollTo(0),this.callBase.apply(this,arguments)},_refreshContent:function(){this._prepareContent(),this._fireContentReadyAction()},_hideLoadingIfLoadIndicationOff:function(){this.option("indicateLoading")||this._dataSourceLoadingChangedHandler(!1)},_loadIndicationSuppressed:function(e){return arguments.length?void(this._isLoadIndicationSuppressed=e):this._isLoadIndicationSuppressed},_scrollViewIsFull:function(){return!this._scrollView||this._scrollView.isFull()},_pullDownHandler:function(e){this._pullRefreshAction(e),this._dataSource&&!this._isDataSourceLoading()?(this._clearSelectedItems(),this._dataSource.pageIndex(0),this._dataSource.reload()):this._updateLoadingState()},_infiniteDataLoading:function(){!this.$element().is(":visible")||this._scrollViewIsFull()||this._isDataSourceLoading()||this._isLastPage()||(clearTimeout(this._loadNextPageTimer),this._loadNextPageTimer=setTimeout(this._loadNextPage.bind(this)))},_scrollBottomHandler:function(e){this._pageLoadingAction(e),this._isDataSourceLoading()||this._isLastPage()?this._updateLoadingState():this._loadNextPage()},_renderItems:function(e){this.option("grouped")?(u(e,this._renderGroup.bind(this)),this._attachGroupCollapseEvent(),this._renderEmptyMessage(),w.isMaterial()&&this.attachGroupHeaderInkRippleEvents()):this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},_attachGroupCollapseEvent:function(){var e=x.addNamespace(p.name,this.NAME),t="."+B,n=this.$element(),a=this.option("collapsibleGroups");n.toggleClass("dx-list-collapsible-groups",a),o.off(n,e,t),a&&o.on(n,e,t,function(e){this._createAction(function(e){var t=i(e.event.currentTarget).parent();this._collapseGroupHandler(t),this.option("focusStateEnabled")&&this.option("focusedElement",l(t.find("."+A).eq(0)))}.bind(this),{validatingTargetName:"element"})({event:e})}.bind(this))},_collapseGroupHandler:function(e,t){var n=new D;if(e.hasClass(R)===t)return n.resolve();var i=e.children("."+M),o=i.outerHeight(),a=0===o?i.height("auto").outerHeight():0;return e.toggleClass(R,t),h.animate(i,{type:"custom",from:{height:o},to:{height:a},duration:200,complete:function(){this.updateDimensions(),this._updateLoadingState(),n.resolve()}.bind(this)}),n.promise()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this._initialized&&(this._renderEmptyMessage(),this._updateLoadingState())},_initMarkup:function(){this._itemElementsCache=i(),this.$element().addClass("dx-list"),this.callBase(),this.option("useInkRipple")&&this._renderInkRipple()},_renderInkRipple:function(){this._inkRipple=m.render()},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments);var i=this;if(this._inkRipple){var o={element:e,event:n};t?w.isMaterial()?this._inkRippleTimer=setTimeout(function(){i._inkRipple.showWave(o)},35):i._inkRipple.showWave(o):(clearTimeout(this._inkRippleTimer),this._inkRipple.hideWave(o))}},_postprocessRenderItem:function(e){this._refreshItemElements(),this.callBase.apply(this,arguments),this.option("onItemSwipe")&&this._attachSwipeEvent(i(e.itemElement))},_attachSwipeEvent:function(e){var t=x.addNamespace(f.end,this.NAME);o.on(e,t,this._itemSwipeEndHandler.bind(this))},_itemSwipeEndHandler:function(e){this._itemDXEventHandler(e,"onItemSwipe",{direction:e.offset<0?"left":"right"})},_nextButtonHandler:function(){var e=this._dataSource;e&&!e.isLoading()&&(this._scrollView.toggleLoading(!0),this._$nextButton.detach(),this._loadIndicationSuppressed(!0),this._loadNextPage())},_renderGroup:function(e,t){var n=i("<div>").addClass(P).appendTo(this._itemContainer()),o=i("<div>").addClass(B).appendTo(n),a=this.option("groupTemplate"),r=this._getTemplate(t.template||a,t,e,o),s={index:e,itemData:t,container:l(o)};this._createItemByTemplate(r,s),w.isMaterial()&&i("<div>").addClass("dx-list-group-header-indicator").prependTo(o),this._renderingGroupIndex=e;var c=i("<div>").addClass(M).appendTo(n);u(F(t)||[],function(e,t){this._renderItem(e,t,c)}.bind(this)),this._groupRenderAction({groupElement:l(n),groupIndex:e,groupData:t})},attachGroupHeaderInkRippleEvents:function(){var e=this,t="."+B,n=this.$element();o.on(n,"dxpointerdown",t,function(t){e._toggleActiveState(i(t.currentTarget),!0,t)}),o.on(n,"dxpointerup dxhoverend",t,function(t){e._toggleActiveState(i(t.currentTarget),!1)})},_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(){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._dataSource,n=this._getNextButton();this.$element().toggleClass("dx-has-next",e),e&&t&&t.isLoaded()&&n.appendTo(this._itemContainer()),e||n.detach()},_getNextButton:function(){return this._$nextButton||(this._$nextButton=this._createNextButton()),this._$nextButton},_createNextButton:function(){var e=i("<div>").addClass("dx-list-next-button"),t=i("<div>").appendTo(e);return this._createComponent(t,b,{text:this.option("nextButtonText"),onClick:this._nextButtonHandler.bind(this),type:w.isMaterial()?"default":void 0,integrationOptions:{}}),e},_moveFocus:function(){this.callBase.apply(this,arguments),this.scrollToItem(this.option("focusedElement"))},_refresh:function(){if(C.hasWindow()){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();break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"pageLoadingText":case"useNative":case"showScrollbar":case"bounceEnabled":case"scrollByContent":case"scrollByThumb":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(),this._invalidate();break;case"grouped":case"collapsibleGroups":case"groupTemplate":this._invalidate();break;case"onGroupRendered":this._createGroupRenderAction();break;case"width":case"height":this.callBase(e),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;default:this.callBase(e)}},_extendActionArgs:function(e){if(!this.option("grouped"))return this.callBase(e);var t=e.closest("."+P),n=t.find("."+A);return d(this.callBase(e),{itemIndex:{group:t.index(),item:n.index(e)}})},expandGroup:function(e){var t=new D,n=this._itemContainer().find("."+P).eq(e);return this._collapseGroupHandler(n,!1).done(function(){t.resolveWith(this)}.bind(this)),t.promise()},collapseGroup:function(e){var t=new D,n=this._itemContainer().find("."+P).eq(e);return this._collapseGroupHandler(n,!0).done(function(){t.resolveWith(this)}.bind(this)),t},updateDimensions:function(){var e=this,t=new D;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);this._scrollView.scrollToElement(t)}}).include(E);V.ItemClass=y,e.exports=V},function(e,t,n){var i=n(2),o=n(0).extend,a=n(15),r=n(92),s=n(18),l=n(6).Deferred;e.exports={_getDefaultOptions:function(){return o(this.callBase(),{searchMode:"",searchExpr:null,searchValue:"",searchEnabled:!1,searchEditorOptions:{}})},_initMarkup:function(){this._renderSearch(),this.callBase()},_renderSearch:function(){var e,t=this.$element(),n=this.option("searchEnabled"),o=this._addWidgetPrefix("search"),a=this._addWidgetPrefix("with-search");return n?(e=this._getSearchEditorOptions(),void(this._searchEditor?this._searchEditor.option(e):(t.addClass(a),this._$searchEditorElement=i("<div>").addClass(o).prependTo(t),this._searchEditor=this._createComponent(this._$searchEditorElement,r,e)))):(t.removeClass(a),void this._removeSearchBox())},_removeSearchBox:function(){this._$searchEditorElement&&this._$searchEditorElement.remove(),delete this._$searchEditorElement,delete this._searchEditor},_getSearchEditorOptions:function(){var e=this,t=e.option("searchEditorOptions");return o({mode:"search",placeholder:a.format("Search"),tabIndex:e.option("tabIndex"),value:e.option("searchValue"),valueChangeEvent:"input",onValueChanged:function(t){var n=e.option("searchTimeout");e._valueChangeDeferred=new l,clearTimeout(e._valueChangeTimeout),e._valueChangeDeferred.done(function(){this.option("searchValue",t.value)}.bind(e)),t.event&&"input"===t.event.type&&n?e._valueChangeTimeout=setTimeout(function(){e._valueChangeDeferred.resolve()},n):e._valueChangeDeferred.resolve()}},t)},_getAriaTarget:function(){return this.$element()},_focusTarget:function(){return this.option("searchEnabled")?this._itemContainer():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},_optionChanged:function(e){switch(e.name){case"searchEnabled":case"searchEditorOptions":this._invalidate();break;case"searchExpr":case"searchMode":case"searchValue":if(!this._dataSource)return void s.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(){return!this.option("focusedElement")&&this.option("searchEnabled")?void(this._searchEditor&&this._searchEditor.focus()):void this.callBase()},_refresh:function(){this._valueChangeDeferred&&this._valueChangeDeferred.resolve(),this.callBase()}}},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(74),a=n(20),r=n(4),s=n(1),l=n(0).extend,u=n(87),c=n(45),d=n(68),h=n(6).Deferred,p=l({},u,{_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 c.DataSource({store:new d(this.option("items")),pageSize:0}))},_compileDisplayGetter:function(){this._displayGetter=a.compileGetter(this._displayGetterExpr())},_displayGetterExpr:function(){return this.option("displayExpr")},_compileValueGetter:function(){this._valueGetter=a.compileGetter(this._valueGetterExpr())},_valueGetterExpr:function(){return this.option("valueExpr")||"this"},_loadValue:function(e){var t=new h;return e=this._unwrappedValue(e),s.isDefined(e)?(this._loadSingle(this._valueGetterExpr(),e).done(function(n){this._isValueEquals(this._valueGetter(n),e)?t.resolve(n):t.reject()}.bind(this)).fail(function(){t.reject()}),t.promise()):t.reject().promise()},_getCurrentValue:function(){return this.option("value")},_unwrappedValue:function(e){return(e=s.isDefined(e)?e:this._getCurrentValue())&&this._dataSource&&"this"===this._valueGetterExpr()&&(e=this._getItemKey(e)),o.unwrap(e)},_getItemKey:function(e){var t=this._dataSource.key();if(Array.isArray(t)){for(var n={},o=0,a=t.length;o<a;o++)n[t[o]]=e[t[o]];return n}return t&&"object"===(void 0===e?"undefined":i(e))&&(e=e[t]),e},_isValueEquals:function(e,t){var n=this._dataSource&&this._dataSource.key(),i=s.isDefined,o=this._compareValues(e,t);return!o&&n&&i(e)&&i(t)&&(o=Array.isArray(n)?this._compareByCompositeKey(e,t,n):this._compareByKey(e,t,n)),o},_compareByCompositeKey:function(e,t,n){var i=s.isObject;if(!i(e)||!i(t))return!1;for(var o=0,a=n.length;o<a;o++)if(e[n[o]]!==t[n[o]])return!1;return!0},_compareByKey:function(e,t,n){var i=r.ensureDefined,a=o.unwrap,s=i(a(e[n]),e),l=i(a(t[n]),t);return this._compareValues(s,l)},_compareValues:function(e,t){return a.toComparable(e,!0)===a.toComparable(t,!0)},_initDynamicTemplates:r.noop,_setCollectionWidgetItemTemplate:function(){this._initDynamicTemplates(),this._setCollectionWidgetOption("itemTemplate",this.option("itemTemplate"))},_getCollectionKeyExpr:function(){var e=this.option("valueExpr");return s.isString(e)&&"this"!==e||s.isFunction(e)?e:null},_dataExpressionOptionChanged:function(e){switch(e.name){case"items":this._itemsToDataSource(),this._setCollectionWidgetOption("items");break;case"dataSource":this._initDataSource();break;case"itemTemplate":this._setCollectionWidgetItemTemplate();break;case"valueExpr":this._compileValueGetter();break;case"displayExpr":this._compileDisplayGetter(),this._initDynamicTemplates(),this._setCollectionWidgetOption("displayExpr")}}});e.exports=p},function(e,t,n){e.exports=n(516)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getElementMaxHeightByWindow=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),o=n(7);t.getElementMaxHeightByWindow=function(e){var t=(0,o.getWindow)(),n=e.offset().top-(0,i.default)(t).scrollTop(),a=(0,i.default)(t).innerHeight()-n-e.outerHeight();return.9*Math.max(n,a)}},function(e,t,n){var i=n(2),o=n(246),a=n(0).extend,r=n(1).isFunction,s=n(8),l="dx-progressbar-animating-segment",u=o.inherit({_getDefaultOptions:function(){return a(this.callBase(),{value:0,statusFormat:function(e){return"Progress: "+Math.round(100*e)+"%"},showStatus:!0,onComplete:null,activeStateEnabled:!1,statusPosition:"bottom left",_animatingSegmentCount:0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"win"},options:{_animatingSegmentCount:5}},{device:function(e){return"android"===e.platform},options:{_animatingSegmentCount:2}}])},_initMarkup:function(){this._renderStatus(),this._createCompleteAction(),this.callBase(),this.$element().addClass("dx-progressbar"),this._$wrapper.addClass("dx-progressbar-wrapper"),this._$bar.addClass("dx-progressbar-container"),this.setAria("role","progressbar"),i("<div>").addClass("dx-progressbar-range-container").appendTo(this._$wrapper).append(this._$bar),this._$range.addClass("dx-progressbar-range"),this._toggleStatus(this.option("showStatus"))},_createCompleteAction:function(){this._completeAction=this._createActionByOption("onComplete")},_renderStatus:function(){this._$status=i("<div>").addClass("dx-progressbar-status")},_renderIndeterminateState:function(){this._$segmentContainer=i("<div>").addClass("dx-progressbar-animating-container");for(var e=this.option("_animatingSegmentCount"),t=0;t<e;t++)i("<div>").addClass(l).addClass(l+"-"+(t+1)).appendTo(this._$segmentContainer);this._$segmentContainer.appendTo(this._$wrapper)},_toggleStatus:function(e){var t=this.option("statusPosition").split(" ");e?"top"===t[0]||"left"===t[0]?this._$status.prependTo(this._$wrapper):this._$status.appendTo(this._$wrapper):this._$status.detach(),this._togglePositionClass()},_togglePositionClass:function(){var e=this.option("statusPosition").split(" ");this._$wrapper.removeClass("dx-position-top-left dx-position-top-right dx-position-bottom-left dx-position-bottom-right dx-position-left dx-position-right");var t="dx-position-"+e[0];e[1]&&(t+="-"+e[1]),this._$wrapper.addClass(t)},_toggleIndeterminateState:function(e){e?(this._renderIndeterminateState(),this._$bar.toggle(!1)):(this._$bar.toggle(!0),this._$segmentContainer.remove(),delete this._$segmentContainer)},_renderValue:function(){var e=this.option("value"),t=this.option("max");return e||0===e?(this._$segmentContainer&&this._toggleIndeterminateState(!1),e===t&&this._completeAction(),this.callBase(),void this._setStatus()):void this._toggleIndeterminateState(!0)},_setStatus:function(){var e=this.option("statusFormat"),t=(e=r(e)?e.bind(this):function(e){return e})(this._currentRatio,this.option("value"));this._$status.text(t)},_dispose:function(){this._$status.remove(),this.callBase()},_optionChanged:function(e){switch(e.name){case"statusFormat":this._setStatus();break;case"showStatus":this._toggleStatus(e.value);break;case"statusPosition":this._toggleStatus(this.option("showStatus"));break;case"onComplete":this._createCompleteAction();break;case"_animatingSegmentCount":break;default:this.callBase(e)}}});s("dxProgressBar",u),e.exports=u},function(e,t,n){var i=n(2),o=n(49),a=n(8),r=n(0).extend,s=n(7),l=n(39),u=o.inherit({_getDefaultOptions:function(){return r(this.callBase(),{min:0,max:100,value:0})},_initMarkup:function(){this.$element().addClass("dx-trackbar"),this._renderWrapper(),this._renderContainer(),this._renderRange(),this._renderValue(),this._setRangeStyles(),this.callBase()},_render:function(){this.callBase(),this._setRangeStyles(this._rangeStylesConfig())},_renderWrapper:function(){this._$wrapper=i("<div>").addClass("dx-trackbar-wrapper").appendTo(this.$element())},_renderContainer:function(){this._$bar=i("<div>").addClass("dx-trackbar-container").appendTo(this._$wrapper)},_renderRange:function(){this._$range=i("<div>").addClass("dx-trackbar-range").appendTo(this._$bar)},_renderValue:function(){var e=this.option("value"),t=this.option("min"),n=this.option("max");if(!(t>n)){if(e<t)return this.option("value",t),void(this._currentRatio=0);if(e>n)return this.option("value",n),void(this._currentRatio=1);var i=t===n?0:(e-t)/(n-t);!this._needPreventAnimation&&this._setRangeStyles({width:100*i+"%"}),this.setAria({valuemin:this.option("min"),valuemax:n,valuenow:e}),this._currentRatio=i}},_rangeStylesConfig:function(){return{width:100*this._currentRatio+"%"}},_setRangeStyles:function(e){return l.stop(this._$range),e?void(!this._needPreventAnimation&&s.hasWindow()&&l.animate(this._$range,{type:"custom",duration:100,to:e})):void this._$range.css({width:0})},_optionChanged:function(e){switch(e.name){case"value":this._renderValue(),this.callBase(e);break;case"max":case"min":this._renderValue();break;default:this.callBase(e)}},_dispose:function(){l.stop(this._$range),this.callBase()}});a("dxTrackBar",u),e.exports=u},function(e,t,n){var i=n(8),o=n(5),a=n(4).grep,r=n(0).extend,s=n(3),l=n(173),u=n(100),c=n(54),d="dx-validationsummary",h=c.inherit({_getDefaultOptions:function(){return r(this.callBase(),{focusStateEnabled:!1,noDataText:null})},_setOptionsByReference:function(){this.callBase(),r(this._optionsByReference,{validationGroup:!0})},_init:function(){this.callBase(),this._initGroupRegistration()},_initGroupRegistration:function(){var e=this._findGroup(),t=u.addGroup(e);this._unsubscribeGroup(),this._groupWasInit=!0,this._validationGroup=e,this.groupSubscription=this._groupValidationHandler.bind(this),t.on("validated",this.groupSubscription)},_unsubscribeGroup:function(){var e=u.getGroupConfig(this._validationGroup);e&&e.off("validated",this.groupSubscription)},_getOrderedItems:function(e,t){var n=[];return s.each(e,function(e,i){var o=a(t,function(e){if(e.validator===i)return!0})[0];o&&n.push(o)}),n},_groupValidationHandler:function(e){var t=this,n=t._getOrderedItems(e.validators,s.map(e.brokenRules,function(e){return{text:e.message,validator:e.validator}}));t.validators=e.validators,s.each(t.validators,function(e,n){if(n._validationSummary!==this){var i=t._itemValidationHandler.bind(t);n.on("validated",i),n.on("disposing",function(){n.off("validated",i),n._validationSummary=null,i=null}),n._validationSummary=this}}),t.option("items",n)},_itemValidationHandler:function(e){var t,n=this.option("items"),i=e.isValid,o=!1,a=e.brokenRule&&e.brokenRule.message,r=e.validator;s.each(n,function(e,n){if(n.validator===r)return i?t=e:n.text=a,o=!0,!1}),i^o||(i?n.splice(t,1):n.push({text:a,validator:r}),n=this._getOrderedItems(this.validators,n),this.option("items",n))},_initMarkup:function(){this.$element().addClass(d),this.callBase()},_optionChanged:function(e){switch(e.name){case"validationGroup":this._initGroupRegistration();break;default:this.callBase(e)}},_itemClass:function(){return"dx-validationsummary-item"},_itemDataKey:function(){return"dx-validationsummary-item-data"},_postprocessRenderItem:function(e){o.on(e.itemElement,"click",function(){e.itemData.validator&&e.itemData.validator.focus&&e.itemData.validator.focus()})},_dispose:function(){this.callBase(),this._unsubscribeGroup()}}).include(l);i("dxValidationSummary",h),e.exports=h},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=new(function(){function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._converters={}}return i(e,[{key:"addConverter",value:function(e,t){this._converters[e]=t}},{key:"getConverter",value:function(e){return this._converters[e]}}]),e}());t.default=o},function(e,t,n){var i=n(2),o=n(319),a=n(0).extend,r=n(6).Deferred,s=n(76),l=null,u=null,c=function(){l&&(u(),l=null)};t.show=function(e){return c(),function(e){var t=(e=a({position:"top"},e)).content;delete e.content;var n=i("<div>").html(t).appendTo(s.value());u=function(){n.remove()},l=new o(n,e)}(e),l.show()},t.hide=function(){return l?l.hide().done(c).promise():(new r).resolve()}},function(e,t,n){var i=n(2),o=n(5),a=n(39),r=n(19),s=n(16),l=n(0).extend,u=n(10).getPublicElement,c=n(3),d=n(1).isPlainObject,h=n(8),p=n(9),f=n(190).default,g=n(6),_=g.when,m=g.Deferred,v=n(65),y=n(60),b=n(1).isDefined,x=n(30),w="dx-accordion-item",C="dx-accordion-item-opened",k="dx-accordion-item-closed",S="dx-accordion-item-title",I="dx-accordion-item-body",T=f.inherit({_activeStateUnit:"."+w,_getDefaultOptions:function(){return l(this.callBase(),{hoverStateEnabled:!0,height:void 0,itemTitleTemplate:"title",onItemTitleClick:null,selectedIndex:0,collapsible:!1,multiple:!1,animationDuration:300,deferRendering:!0,selectionByClick:!0,activeStateEnabled:!0,_itemAttributes:{role:"tab"},_animationEasing:"ease"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===s.real().deviceType&&!s.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return x.isMaterial()},options:{animationDuration:200,_animationEasing:"cubic-bezier(0.4, 0, 0.2, 1)"}}])},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_init:function(){this.callBase(),this.option("selectionRequired",!this.option("collapsible")),this.option("selectionMode",this.option("multiple")?"multiple":"single");var e=this.$element();e.addClass("dx-accordion"),this._$container=i("<div>").addClass("dx-accordion-wrapper"),e.append(this._$container)},_initTemplates:function(){this.callBase(),this._defaultTemplates.title=new v(function(e,t){var n=i("<div>").addClass("dx-accordion-item-title-caption").appendTo(e);d(t)?(t.title&&n.text(t.title),n.append(y.getImageContainer(t.icon))):n.text(String(t))},["title","icon"],this.option("integrationOptions.watchMethod"))},_initMarkup:function(){this._deferredItems=[],this.callBase(),this.setAria({role:"tablist",multiselectable:this.option("multiple")})},_render:function(){this.callBase(),this._updateItemHeightsWrapper(!0)},_itemDataKey:function(){return"dxAccordionItemData"},_itemClass:function(){return w},_itemContainer:function(){return this._$container},_itemTitles:function(){return this._itemElements().find("."+S)},_itemContents:function(){return this._itemElements().find("."+I)},_getItemData:function(e){return i(e).parent().data(this._itemDataKey())||this.callBase.apply(this,arguments)},_executeItemRenderAction:function(e){e.type||this.callBase.apply(this,arguments)},_itemSelectHandler:function(e){i(e.target).closest(this._itemContents()).length||this.callBase.apply(this,arguments)},_afterItemElementDeleted:function(e,t){this._deferredItems.splice(t.itemIndex,1),this.callBase.apply(this,arguments)},_renderItemContent:function(e){var t=this.callBase(l({},e,{contentClass:S,templateProperty:"titleTemplate",defaultTemplateName:this.option("itemTitleTemplate")}));this._attachItemTitleClickAction(t);var n=new m;b(this._deferredItems[e.index])?this._deferredItems[e.index]=n:this._deferredItems.push(n),(!this.option("deferRendering")||this._getSelectedItemIndices().indexOf(e.index)>=0)&&n.resolve(),n.done(this.callBase.bind(this,l({},e,{contentClass:I,container:u(i("<div>").appendTo(i(t).parent()))})))},_attachItemTitleClickAction:function(e){var t=p.addNamespace(r.name,this.NAME);o.off(e,t),o.on(e,t,this._itemTitleClickHandler.bind(this))},_itemTitleClickHandler:function(e){this._itemDXEventHandler(e,"onItemTitleClick")},_renderSelection:function(e,t){this._itemElements().addClass(k),this.setAria("hidden",!0,this._itemContents()),this._updateItems(e,t)},_updateSelection:function(e,t){this._updateItems(e,t),this._updateItemHeightsWrapper(!1)},_updateItems:function(e,t){var n=this._itemElements(),i=this;c.each(e,function(e,t){i._deferredItems[t].resolve();var o=n.eq(t).addClass(C).removeClass(k);i.setAria("hidden",!1,o.find("."+I))}),c.each(t,function(e,t){var o=n.eq(t).removeClass(C);i.setAria("hidden",!0,o.find("."+I))})},_updateItemHeightsWrapper:function(e){this.option("templatesRenderAsynchronously")?this._animationTimer=setTimeout(function(){this._updateItemHeights(e)}.bind(this)):this._updateItemHeights(e)},_updateItemHeights:function(e){var t=this,n=t._deferredAnimate,o=this._splitFreeSpace(this._calculateFreeSpace());return clearTimeout(this._animationTimer),_.apply(i,[].slice.call(this._itemElements()).map(function(n){return t._updateItemHeight(i(n),o,e)})).done(function(){n&&n.resolveWith(t)})},_updateItemHeight:function(e,t,n){var i=e.children("."+S);a.isAnimating(e)&&a.stop(e);var o=e.outerHeight(),r=e.hasClass(C)?t+i.outerHeight()||e.height("auto").outerHeight():i.outerHeight();return this._animateItem(e,o,r,n,!!t)},_animateItem:function(e,t,n,i,o){var r;return i||t===n?(e.css("height",n),r=(new m).resolve()):r=a.animate(e,{type:"custom",from:{height:t},to:{height:n},duration:this.option("animationDuration"),easing:this.option("_animationEasing")}),r.done(function(){e.hasClass(C)&&!o&&e.css("height",""),e.not("."+C).addClass(k)})},_splitFreeSpace:function(e){return e?e/this.option("selectedItems").length:e},_calculateFreeSpace:function(){var e=this.option("height");if(void 0!==e&&"auto"!==e){var t=this._itemTitles(),n=0;return c.each(t,function(e,t){n+=i(t).outerHeight()}),this.$element().height()-n}},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._updateItemHeights(!0)},_clean:function(){clearTimeout(this._animationTimer),this.callBase()},_optionChanged:function(e){switch(e.name){case"animationDuration":case"onItemTitleClick":case"_animationEasing":break;case"collapsible":this.option("selectionRequired",!this.option("collapsible"));break;case"itemTitleTemplate":case"height":case"deferRendering":this._invalidate();break;case"multiple":this.option("selectionMode",e.value?"multiple":"single");break;default:this.callBase(e)}},expandItem:function(e){return this._deferredAnimate=new m,this.selectItem(e),this._deferredAnimate.promise()},collapseItem:function(e){return this._deferredAnimate=new m,this.unselectItem(e),this._deferredAnimate.promise()},updateDimensions:function(){return this._updateItemHeights(!1)}});h("dxAccordion",T),e.exports=T},function(e,t,n){var i=function(e){return e&&e.__esModule?e:{default:e}}(n(36)),o=n(40);t.createGroupFilter=function(e,t){var n,a=(0,o.normalizeSortingInfo)(t.group),r=[];for(n=0;n<e.length;n++)r.push([a[n].selector,"=",e[n]]);return t.filter&&r.push(t.filter),i.default.combineFilters(r)}},function(e,t,n){function i(e,t,n,i){var o=0,a=0,r=n/2;return e+i-(t+n)>1?(e>=t+n+r&&(a=parseInt((e-(t+n))/r,10)),o=t+n+r*a):e<t?(e<=t-r&&(a=parseInt((e-(t-r))/r,10)),o=t-(n-r*a)):o=t,o}var o=n(2),a=n(14),r=n(10).getPublicElement,s=n(0).extend,l=n(1).isDefined,u=function(e){var t,n=0;return e.getBoundingClientRect&&((n=(t=e.getBoundingClientRect()).width)||(n=t.right-t.left)),n>0?n:e.offsetWidth};t.AreaItem=a.inherit({_getRowElement:function(e){var t=this;return t._tableElement&&t._tableElement.length>0?t._tableElement[0].rows[e]:null},_createGroupElement:function(){return o("<div>")},_createTableElement:function(){return o("<table>")},_getCellText:function(e,t){var n=e.isWhiteSpace?"&nbsp":e.text||"&nbsp";return!t||-1===n.indexOf("<")&&-1===n.indexOf(">")||(n=o("<div>").text(n).html()),n},_getRowClassNames:function(){},_applyCustomStyles:function(e){e.cell.width&&e.cssArray.push("min-width:"+e.cell.width+"px"),e.cell.sorted&&e.classArray.push("dx-pivotgrid-sorted")},_getMainElementMarkup:function(){return"<tbody>"},_getCloseMainElementMarkup:function(){return"</tbody>"},_renderTableContent:function(e,t){var n,i,o,a,r,s,u=this,c=t.length,d=u.option("rtlEnabled"),h=[],p=u.option("encodeHtml");for(e.data("area",u._getAreaName()),e.data("data",t),e.css("width",""),h.push(u._getMainElementMarkup()),o=0;o<c;o++){n=t[o];var f=[];for(s=[],h.push("<tr "),a=0;a<n.length;a++){if(i=n[a],this._getRowClassNames(o,i,s),f.push("<td "),i){i.rowspan&&f.push("rowspan='"+(i.rowspan||1)+"'"),i.colspan&&f.push("colspan='"+(i.colspan||1)+"'");var g={cellElement:void 0,cell:i,cellsCount:n.length,cellIndex:a,rowElement:void 0,rowIndex:o,rowsCount:c,rtlEnabled:d,classArray:[],cssArray:[]};u._applyCustomStyles(g),g.cssArray.length&&(f.push("style='"),f.push(g.cssArray.join(";")),f.push("'")),g.classArray.length&&(f.push("class='"),f.push(g.classArray.join(" ")),f.push("'")),f.push(">"),l(i.expanded)&&f.push("<div class='dx-expand-icon-container'><span class='dx-expand'></span></div>"),r=this._getCellText(i,p)}else r="";f.push("<span "),l(i.wordWrapEnabled)&&f.push("style='white-space:",i.wordWrapEnabled?"normal":"nowrap",";'"),f.push(">"+r+"</span>"),i.sorted&&f.push("<span class='dx-icon-sorted'></span>"),f.push("</td>")}s.length&&(h.push("class='"),h.push(s.join(" ")),h.push("'")),h.push(">"),h.push(f.join("")),h.push("</tr>")}h.push(this._getCloseMainElementMarkup()),e.append(h.join("")),this._triggerOnCellPrepared(e,t)},_triggerOnCellPrepared:function(e,t){var n,i,o,a,l,u,c,d=this,h=e.find("tr"),p=d._getAreaName(),f=d.option("onCellPrepared"),g=d.component.hasEvent("cellPrepared"),_=this.component._defaultActionArgs();if(f||g)for(u=0;u<t.length;u++)for(a=t[u],n=h.eq(u),c=0;c<a.length;c++)l=a[c],i=n.children().eq(c),o={area:p,rowIndex:u,columnIndex:c,cellElement:r(i),cell:l},g?d.component._trigger("onCellPrepared",o):f(s(o,_))},_getRowHeight:function(e){var t=this._getRowElement(e),n=0;return t&&t.lastChild?(t.getBoundingClientRect&&(n=t.getBoundingClientRect().height),n>0?n:t.offsetHeight):0},_setRowHeight:function(e,t){var n=this._getRowElement(e);n&&(n.style.height=t+"px")},ctor:function(e){this.component=e},option:function(){return this.component.option.apply(this.component,arguments)},getRowsLength:function(){var e=this;return e._tableElement&&e._tableElement.length>0?e._tableElement[0].rows.length:0},getRowsHeight:function(){var e,t=[],n=this.getRowsLength();for(e=0;e<n;e++)t.push(this._getRowHeight(e));return t},setRowsHeight:function(e){var t,n=0,i=e.length;for(t=0;t<i;t++)n+=e[t],this._setRowHeight(t,e[t]);this._tableHeight=n,this._tableElement[0].style.height=n+"px"},getColumnsWidth:function(){var e,t,n,i,o=this.getRowsLength(),a=[],r=[],s=function(e,t,n,i,o){var a,r;for(a=0;a<i;a++)for(r=0;r<o;r++)e[t+a]=e[t+a]||[],e[t+a][n+r]=!0};if(o)for(e=0;e<o;e++)for(a[e]=a[e]||[],t=this._getRowElement(e),n=0;n<t.cells.length;n++){for(i=0;a[e][i];i++);s(a,e,i,t.cells[n].rowSpan,t.cells[n].colSpan),1===t.cells[n].colSpan&&(r[i]=r[i]||u(t.cells[n]))}return r},setColumnsWidth:function(e){var t,n=0,i=this._tableElement[0],o="",a=this.getColumnsCount(),r=[];for(t=0;t<a;t++)r.push(e[t]||0);for(t=a;t<e.length&&e;t++)r[a-1]+=e[t];for(t=0;t<a;t++)n+=r[t],o+='<col style="width: '+r[t]+'px">';this._colgroupElement.html(o),this._tableWidth=n-this._groupWidth>.01?Math.ceil(n):n,i.style.width=this._tableWidth+"px",i.style.tableLayout="fixed"},resetColumnsWidth:function(){this._colgroupElement.find("col").width("auto"),this._tableElement.css({width:"",tableLayout:""})},groupWidth:function(e){return void 0===e?this._groupElement.width():e>=0?(this._groupWidth=e,this._groupElement[0].style.width=e+"px"):this._groupElement[0].style.width=e},groupHeight:function(e){return void 0===e?this._groupElement.height():(this._groupHeight=null,void(e>=0?(this._groupHeight=e,this._groupElement[0].style.height=e+"px"):this._groupElement[0].style.height=e))},groupElement:function(){return this._groupElement},tableElement:function(){return this._tableElement},element:function(){return this._rootElement},headElement:function(){return this._tableElement.find("thead")},_setTableCss:function(e){this.option("rtlEnabled")&&(e.right=e.left,delete e.left),this.tableElement().css(e)},setVirtualContentParams:function(e){this._virtualContent.css({width:e.width,height:e.height}),this.groupElement().addClass("dx-virtual-mode")},disableVirtualMode:function(){this.groupElement().removeClass("dx-virtual-mode")},_renderVirtualContent:function(){var e=this;e._virtualContent||"virtual"!==e.option("scrolling.mode")||(e._virtualContent=o("<div>").addClass("dx-virtual-content").insertBefore(e._tableElement))},reset:function(){var e=this,t=e._tableElement[0];if(e._fakeTable&&e._fakeTable.detach(),e._fakeTable=null,e.disableVirtualMode(),e.groupWidth("100%"),e.groupHeight("auto"),e.resetColumnsWidth(),t){for(var n=0;n<t.rows.length;n++)t.rows[n].style.height="";t.style.height="",t.style.width="100%"}},_updateFakeTableVisibility:function(){var e=this,t=e.tableElement()[0],n=e.option("rtlEnabled")?"right":"left",i=e._fakeTable[0];t.style.top===i.style.top&&i.style[n]===t.style[n]?e._fakeTable.addClass("dx-hidden"):e._fakeTable.removeClass("dx-hidden")},_moveFakeTableHorizontally:function(e){var t=this,n=t.option("rtlEnabled")?"right":"left",o=i(e,parseFloat(t.tableElement()[0].style[n]),t._tableWidth,t._groupWidth);parseFloat(t._fakeTable[0].style[n])!==o&&(t._fakeTable[0].style[n]=o+"px")},_moveFakeTableTop:function(e){var t=this,n=i(e,parseFloat(t.tableElement()[0].style.top),t._tableHeight,t._groupHeight);parseFloat(t._fakeTable[0].style.top)!==n&&(t._fakeTable[0].style.top=n+"px")},_moveFakeTable:function(){this._updateFakeTableVisibility()},_createFakeTable:function(){var e=this;e._fakeTable||(e._fakeTable=e.tableElement().clone().addClass("dx-pivot-grid-fake-table").appendTo(e._virtualContent))},render:function(e,t){var n=this;if(n._tableElement){try{n._tableElement[0].innerHTML=""}catch(e){n._tableElement.empty()}n._tableElement.attr("style","")}else n._groupElement=n._createGroupElement(),n._tableElement=n._createTableElement(),n._tableElement.appendTo(n._groupElement),n._groupElement.appendTo(e),n._rootElement=e;n._colgroupElement=o("<colgroup>").appendTo(n._tableElement),n._renderTableContent(n._tableElement,t),n._renderVirtualContent()},_getScrollable:function(){return this.groupElement().data("dxScrollable")},on:function(e,t){var n=this,i=n._getScrollable();return i&&i.on(e,function(e){n.option("rtlEnabled")&&l(e.scrollOffset.left)&&(e.scrollOffset.left=i.$content().width()-i._container().width()-e.scrollOffset.left),t(e)}),this},off:function(e){var t=this._getScrollable();return t&&t.off(e),this},scrollTo:function(e){var t=this._getScrollable(),n=e;t&&(this.option("rtlEnabled")&&("column"===this._getAreaName()?n=t.$content().width()-t._container().width()-e:"data"===this._getAreaName()&&(n={x:t.$content().width()-t._container().width()-e.x,y:e.y})),t.scrollTo(n),this._virtualContent&&(this._createFakeTable(),this._moveFakeTable(e)))},updateScrollable:function(){var e=this._getScrollable();if(e)return e.update()},getColumnsCount:function(){var e,t=0,n=this._getRowElement(0);if(n)for(var i=0,o=(e=n.cells).length;i<o;++i)t+=e[i].colSpan;return t},getData:function(){var e=this._tableElement;return e?e.data("data"):[]}})},function(e,t,n){function i(e,t){var n=t;return c(t.groupIndex)&&(n=e.getAreaFields(t.area,!0)[t.areaIndex]),n}function o(e){return e=e||{},JSON.stringify([e.fields,e.columnExpandedPaths,e.rowExpandedPaths])}var a=n(2),r=n(5),s=n(68),l=n(19),u=n(4).noop,c=n(1).isDefined,d=n(13).inArray,h=n(0).extend,p=n(3),f=n(15),g=n(8),_=n(17),m=n(355),v=n(327),y=n(332),b=n(79),x=n(681),w=n(6).Deferred,C=p.each,k="<div>",S=m.HeaderFilterView.inherit({_getSearchExpr:function(e){return e.useDefaultSearchExpr=!0,this.callBase(e)}}),I=_.inherit(v).inherit(y).inherit(m.headerFilterMixin).inherit({_getDefaultOptions:function(){return h(this.callBase(),{allowFieldDragging:!0,applyChangesMode:"instantly",state:null,headerFilter:{width:252,height:325,searchTimeout:500,texts:{emptyValue:f.format("dxDataGrid-headerFilterEmptyValue"),ok:f.format("dxDataGrid-headerFilterOK"),cancel:f.format("dxDataGrid-headerFilterCancel")}}})},_init:function(){this.callBase(),this._headerFilterView=new S(this),this._refreshDataSource(),this.subscribeToEvents()},_refreshDataSource:function(){var e=this.option("dataSource");e&&e.fields&&e.load&&(this._dataSource=e)},_optionChanged:function(e){switch(e.name){case"dataSource":this._refreshDataSource();break;case"applyChangesMode":break;case"state":if(this._skipStateChange||!this._dataSource)break;"instantly"===this.option("applyChangesMode")&&o(this._dataSource.state())!==o(e.value)?this._dataSource.state(e.value):(this._clean(!0),this._renderComponent());break;case"headerFilter":case"allowFieldDragging":this._invalidate();break;default:this.callBase(e)}},renderField:function(e,t){var n=this,o=a(k).addClass("dx-area-field-content").text(e.caption||e.dataField),r=a(k).addClass("dx-area-field").addClass("dx-area-box").data("field",e).append(o),s=i(n._dataSource,e);return"data"!==e.area&&(e.allowSorting&&n._applyColumnState({name:"sort",rootElement:r,column:{alignment:n.option("rtlEnabled")?"right":"left",sortOrder:"desc"===e.sortOrder?"desc":"asc"},showColumnLines:t}),n._applyColumnState({name:"headerFilter",rootElement:r,column:{alignment:n.option("rtlEnabled")?"right":"left",filterValues:s.filterValues,allowFiltering:s.allowFiltering&&!e.groupIndex},showColumnLines:t})),e.groupName&&r.attr("item-group",e.groupName),r},_clean:function(){},_render:function(){this.callBase(),this._headerFilterView.render(this.$element())},renderSortable:function(){var e=this;e._createComponent(e.$element(),x,h({allowDragging:e.option("allowFieldDragging"),itemSelector:".dx-area-field",itemContainerSelector:".dx-area-field-container",groupSelector:".dx-area-fields",groupFilter:function(){var t=e._dataSource,n=a(this).closest(".dx-sortable"),i=n.data("dxPivotGrid"),o=n.data("dxPivotGridFieldChooser");return i?i.getDataSource()===t:!!o&&o.option("dataSource")===t},itemRender:function(e,t){var n;if(e.hasClass("dx-area-box")?(n=e.clone(),"drag"===t&&C(e,function(e,t){n.eq(e).css("width",parseInt(a(t).outerWidth(),10)+1)})):n=a(k).addClass("dx-area-field").addClass("dx-area-box").text(e.text()),"drag"===t){var i=a(k);return C(n,function(e,t){var n=a("<div>").addClass("dx-pivotgrid-fields-container").addClass("dx-widget").append(a(t));i.append(n)}),i.children()}return n},onDragging:function(e){var t=e.sourceElement.data("field"),n=e.targetGroup;e.cancel=!1,!0===t.isMeasure?"column"!==n&&"row"!==n&&"filter"!==n||(e.cancel=!0):!1===t.isMeasure&&"data"===n&&(e.cancel=!0)},useIndicator:!0,onChanged:function(t){var n=e._dataSource,o=t.sourceElement.data("field");t.removeSourceElement=!!t.sourceGroup,e._adjustSortableOnChangedArgs(t),o&&e._applyChanges([i(n,o)],{area:t.targetGroup,areaIndex:t.targetIndex})}},e._getSortableOptions()))},_processDemandState:function(e){var t=this,n="instantly"===t.option("applyChangesMode"),i=t._dataSource;if(n)e(i,n);else{var o=i.state();i.state(t.option("state"),!0),e(i,n),i.state(o,!0)}},_applyChanges:function(e,t){var n=this;n._processDemandState(function(i,o){e.forEach(function(e){var n=e.index;i.field(n,t)}),o?i.load():n._changedHandler()})},_adjustSortableOnChangedArgs:function(e){e.removeSourceElement=!1,e.removeTargetElement=!0,e.removeSourceClass=!1},_getSortableOptions:function(){return{direction:"auto"}},subscribeToEvents:function(e){var t=this,n=function(e){var n=a(e.currentTarget).data("field"),o=h(!0,{},i(t._dataSource,n)),r=a(e.target).hasClass("dx-header-filter"),l=t._dataSource,u=o.groupName?"tree":"list",c=l.paginate()&&"list"===u;r?t._headerFilterView.showHeaderFilterMenu(a(e.currentTarget),h(o,{type:u,encodeHtml:t.option("encodeHtml"),dataSource:{useDefaultSearch:!c,load:function(e){var n=e.userData;if(n.store)return n.store.load(e);var i=new w;return l.getFieldValues(o.index,t.option("headerFilter.showRelevantValues"),c?e:void 0).done(function(t){c?i.resolve(t):(n.store=new s(t),n.store.load(e).done(i.resolve).fail(i.reject))}).fail(i.reject),i},postProcess:function(e){return function(e,t){var n=[],i=!!t.groupName,o="exclude"===t.filterType;t.filterValues&&C(t.filterValues,function(e,t){n.push(Array.isArray(t)?t.join("/"):t&&t.valueOf())}),b.foreachTree(e,function(e){var t,a=e[0],r=b.createPath(e),s=i?p.map(e,function(e){return e.text}).reverse().join("/"):a.text;a.value=i?r.slice(0):a.key||a.value,t=i?r.join("/"):a.value&&a.value.valueOf(),a.children&&(a.items=a.children,a.children=null),m.updateHeaderFilterItemSelectionState(a,a.key&&d(s,n)>-1||d(t,n)>-1,o)})}(e,o),e}},apply:function(){t._applyChanges([o],{filterValues:this.filterValues,filterType:this.filterType})}})):n.allowSorting&&"data"!==n.area&&t._applyChanges([n],{sortOrder:"desc"===n.sortOrder?"asc":"desc"})};return e?void r.on(e,l.name,".dx-area-field.dx-area-box",n):void r.on(t.$element(),l.name,".dx-area-field.dx-area-box",n)},_initTemplates:u,addWidgetPrefix:function(e){return"dx-pivotgrid-"+e}});g("dxPivotGridFieldChooserBase",I),e.exports=I},function(e,t,n){var i=n(2),o=n(12),a=n(37),r=n(1),s=n(10).getPublicElement,l="tr",u={VERTICAL:"vertical",HORIZONTAL:"horizontal",insertAllDayRow:function(e,t,n){if(e[n]){var a=e[n].find(l);a.length||(a=i(o.createElement(l))).append(e[n].get(0)),t.appendChild(a.get?a.get(0):a)}},makeTable:function(e){var t,n=o.createElement("tbody"),u=[],c=e.groupCount?e.rowCount/e.groupCount:e.rowCount,d=0,h=e.allDayElements,p=e.groupIndex,f=e.rowCount;i(e.container).append(n),h&&(this.insertAllDayRow(h,n,0),d++);for(var g=0;g<f;g++){t=o.createElement(l),n.appendChild(t);var _=(g+1)%c==0;e.rowClass&&(t.className=e.rowClass);for(var m=0;m<e.cellCount;m++){var v,y,b,x=o.createElement("td");if(t.appendChild(x),e.cellClass&&(r.isFunction(e.cellClass)?x.className=e.cellClass(g,m):x.className=e.cellClass),e.getCellData&&(y=(v=e.getCellData(x,g,m,p)).key,b=v.value,y&&a.data(x,y,b)),e.cellTemplate&&e.cellTemplate.render){var w={model:{text:e.getCellText?e.getCellText(g,m):"",date:e.getCellDate?e.getCellDate(g):void 0},container:s(i(x)),index:g*e.cellCount+m};b&&(b.startDate&&(w.model.startDate=b.startDate),b.endDate&&(w.model.endDate=b.endDate),b.groups&&(w.model.groups=b.groups),b.allDay&&(w.model.allDay=b.allDay)),u.push(e.cellTemplate.render.bind(e.cellTemplate,w))}else e.getCellText&&(x.innerHTML="<div>"+e.getCellText(g,m)+"</div>")}h&&_&&(this.insertAllDayRow(h,n,d),d++)}return u},makeGroupedTable:function(e,t,n,i,o,a,r){return e===this.VERTICAL?this._makeVerticalGroupedRows(t,n,o,a):this._makeHorizontalGroupedRows(t,n,i,o,r)},makeGroupedTableFromJSON:function(e,t,n){function i(e){return e[d]?e[d].length:0}function a(e,t,n,i){var a={element:o.createElement(c),childCount:t};g&&(a.element.className=g);var r=o.createTextNode(e);return"function"==typeof _?_(a.element,r,n,i):a.element.appendChild(r),a}var r,s=[],u=0,c=(n=n||{}).cellTag||"td",d=n.childrenField||"children",h=n.titleField||"title",p=n.groupTableClass,f=n.groupRowClass,g=n.groupCellClass,_=n.groupCellCustomContent;return r=o.createElement("table"),p&&(r.className=p),function e(t){for(var n=0;n<t.length;n++){var o=i(t[n]),r=a(t[n][h],o,n,t[n]);s[u]||(s[u]=[]),s[u].push(r),o?e(t[n][d]):u++}}(t),s.forEach(function(e){var t=o.createElement(l);f&&(t.className=f);for(var n=[],i=e.length-1;i>=0;i--){var a=e[i+1],s=e[i].childCount;a&&a.childCount&&(s*=a.childCount),n.push(s)}n.reverse(),e.forEach(function(e,i){n[i]&&e.element.setAttribute("rowSpan",n[i]),t.appendChild(e.element)}),r.appendChild(t)}),r},_makeVerticalGroupedRows:function(e,t,n,o){var a,r=[],s=1,l=[],u=function(e){e.template&&r.push(e.template)};for(a=0;a<e.length;a++){a>0&&(s=e[a-1].items.length*s);var c=this._makeGroupedRowCells(e[a],s,t,n);c.forEach(u),l.push(c)}var d=[],h=l.length,p=l[h-1].length;for(a=0;a<p;a++)d.push(i("<tr>").addClass(t.groupHeaderRowClass));for(a=h-1;a>=0;a--)for(var f=l[a].length,g=p/f,_=0;_<f;_++){d[_*g].prepend(l[a][_].element.attr("rowSpan",g))}return{elements:d,cellTemplates:r}},_makeHorizontalGroupedRows:function(e,t,n,o,a){for(var r=1,s=e.length,l=[],u=[],c=a?n:1,d=function(e){return e.template&&u.push(e.template),e.element},h=0;h<s;h++){h>0&&(r=e[h-1].items.length*r);var p=this._makeGroupedRowCells(e[h],r,t,o,c);l.push(i("<tr>").addClass(t.groupRowClass).append(p.map(d)))}for(var f=l[s-1].find("th").length,g=0;g<s;g++){var _=l[g].find("th"),m=f/_.length;a||(m*=n),(m>1&&1===c||a&&s>1)&&_.attr("colSpan",m)}return{elements:l,cellTemplates:u}},_makeGroupedRowCells:function(e,t,n,o,a){t*=a=a||1;for(var l=[],u=e.items,c=u.length,d=0;d<t;d++)for(var h=0;h<c;h++){var p,f=i("<div>"),g={};if(o&&o.render){var _={model:u[h],container:s(f),index:d*c+h};e.data&&(_.model.data=e.data[h]),g.template=o.render.bind(o,_)}else f.text(u[h].text),f=i("<div>").append(f);f.addClass(n.groupHeaderContentClass),p=r.isFunction(n.groupHeaderClass)?n.groupHeaderClass(h):n.groupHeaderClass,g.element=i("<th>").addClass(p).append(f),l.push(g)}return l}};e.exports=u},function(e,t,n){var i=n(2),o=n(4).noop,a=n(0).extend,r=n(8),s=n(201),l=n(22),u=n(254),c=n(701),d=l.dateToMilliseconds,h=s.inherit({_init:function(){this.callBase(),this.$element().addClass("dx-scheduler-timeline"),this._$sidebarTable=i("<table>").addClass("dx-scheduler-group-table")},_getCellFromNextRow:function(e,t){return t?this._$focusedCell:this.callBase(e,t)},_getDefaultGroupStrategy:function(){return"vertical"},_toggleGroupingDirectionClass:function(){this.$element().toggleClass("dx-scheduler-work-space-horizontal-grouped",this._isHorizontalGroupedWorkSpace())},_getDefaultOptions:function(){return a(this.callBase(),{groupOrientation:"vertical"})},_getRightCell:function(){var e,t=this._$focusedCell,n=this._getCellCount(),i=this._isRTL()?0:n-1,o=this._isRTL()?"prev":"next";return t.index()===i?e=t:(e=t[o](),e=this._checkForViewBounds(e)),e},_getLeftCell:function(){var e,t=this._$focusedCell,n=this._getCellCount(),i=this._isRTL()?n-1:0,o=this._isRTL()?"next":"prev";return t.index()===i?e=t:(e=t[o](),e=this._checkForViewBounds(e)),e},_getRowCount:function(){return 1},_getCellCount:function(){return this._getCellCountInDay()*this.option("intervalCount")},getGroupTableWidth:function(){return this._$sidebarTable?this._$sidebarTable.outerWidth():0},_getTotalRowCount:function(e){return this._isHorizontalGroupedWorkSpace()?this._getRowCount():(e=e||1,this._getRowCount()*e)},_getDateByIndex:function(e){var t=new Date(this._firstViewDate),n=Math.floor(e/this._getCellCountInDay());return t.setTime(this._firstViewDate.getTime()+this._calculateCellIndex(0,e)*this._getInterval()+n*this._getHiddenInterval()),t},_getFormat:function(){return"shorttime"},_needApplyLastGroupCellClass:function(){return!0},_calculateHiddenInterval:function(e,t){return Math.floor(t/this._getCellCountInDay())*this._getHiddenInterval()},_getMillisecondsOffset:function(e,t){return t=this._calculateCellIndex(e,t),this._getInterval()*t+this._calculateHiddenInterval(e,t)},_createWorkSpaceElements:function(){this._createWorkSpaceScrollableElements()},_getWorkSpaceHeight:function(){return this.option("crossScrollingEnabled")?this._$dateTable.get(0).getBoundingClientRect().height:this.$element().get(0).getBoundingClientRect().height},_dateTableScrollableConfig:function(){var e,t=this.callBase(),n={direction:"horizontal",onStart:function(){this._headerScrollable&&(e=this._headerScrollable.option("onScroll"),this._headerScrollable.option("onScroll",void 0))}.bind(this),onScroll:function(e){this._headerScrollable&&this._headerScrollable.scrollTo({left:e.scrollOffset.left})}.bind(this),onEnd:function(t){this._headerScrollable&&this._headerScrollable.option("onScroll",e)}.bind(this)};return this.option("crossScrollingEnabled")?t:a(t,n)},_headerScrollableConfig:function(){var e=this.callBase();return a(e,{scrollByContent:!0})},_renderTimePanel:o,_renderAllDayPanel:o,_getTableAllDay:function(){return!1},_getDateHeaderTemplate:function(){return this.option("timeCellTemplate")},_toggleAllDayVisibility:o,_changeAllDayVisibility:o,supportAllDayRow:function(){return!1},_getGroupHeaderContainer:function(){return this._isHorizontalGroupedWorkSpace()?this._$thead:this._$sidebarTable},_insertAllDayRowsIntoDateTable:function(){return!1},_createAllDayPanelElements:o,_renderDateHeader:function(){var e=this.callBase();if(this._needRenderWeekHeader()){for(var t=new Date(this._firstViewDate),n=[],o=this._getCellCountInDay(),a=this.option("dateCellTemplate"),r=0;r<this._getWeekDuration()*this.option("intervalCount");r++){var s=i("<th>"),l=this._formatWeekdayAndDay(t);if(a){var u={model:{text:l,date:new Date(t)},container:s,index:r};a.render(u)}else s.text(l);s.addClass("dx-scheduler-header-panel-cell").addClass("dx-scheduler-header-panel-week-cell").attr("colSpan",o),n.push(s),this._incrementDate(t)}var c=i("<tr>").addClass("dx-scheduler-header-row").append(n);e.before(c)}},_needRenderWeekHeader:function(){return!1},_incrementDate:function(e){e.setDate(e.getDate()+1)},_getWeekDuration:function(){return 1},_renderView:function(){this._setFirstViewDate();var e=this._renderGroupHeader();this._renderDateHeader(),this._renderAllDayPanel(),this._renderTimePanel(),this._renderDateTable(),this._shader=new c,this._updateGroupTableHeight(),this._$sidebarTable.appendTo(this._sidebarScrollable.$content()),this._applyCellTemplates(e)},_setHorizontalGroupHeaderCellsHeight:o,getIndicationWidth:function(){var e=this._getToday(),t=this.getCellWidth(),n=this._getIndicationFirstViewDate(),i=this._getHiddenInterval(),o=e.getTime()-n.getTime();return(o-(Math.ceil(o/d("day"))-1)*i)/this.getCellDuration()*t},_renderIndicator:function(e,t,n,i){var o,a=this.getIndicationWidth();if("vertical"===this.option("groupOrientation"))(o=this._createIndicator(n)).height(n.get(0).getBoundingClientRect().height),o.css("left",t?t-a:a);else for(var r=0;r<i;r++){var s=this._getCellCount()*this.getCellWidth()*r;(o=this._createIndicator(n)).height(n.get(0).getBoundingClientRect().height),o.css("left",t?t-a-s:a+s)}},_isVerticalShader:function(){return!1},_isCurrentTimeHeaderCell:function(e){var t=!1;if(this.option("showCurrentTimeIndicator")&&this._needRenderDateTimeIndicator()){var n=this._getDateByIndex(e),i=this._getToday();if(n=new Date(n),l.sameDate(i,n)){var o=new Date(n),a=new Date(n);a=a.setMilliseconds(n.getMilliseconds()+this.getCellDuration()),t=l.dateInRange(i,o,a)}}return t},_cleanView:function(){this.callBase(),this._$sidebarTable.empty()},_visibilityChanged:function(e){this.callBase(e)},_setTableSizes:function(){var e=this.getCellHeight(),t=this._getWorkSpaceMinHeight(),n=e*this._$sidebarTable.find("tr").length;n<t&&(n=t),this._$sidebarTable.height(n),this._$dateTable.height(n),this.callBase()},_getWorkSpaceMinHeight:function(){var e=this._getWorkSpaceHeight(),t=this.$element().outerHeight(!0)-this.getHeaderPanelHeight()-2-1;return e<t&&(e=t),e},_makeGroupRows:function(e,t){var n="vertical"===this.option("groupOrientation")?u.VERTICAL:u.HORIZONTAL;return u.makeGroupedTable(n,e,{groupRowClass:this._getGroupRowClass(),groupHeaderRowClass:this._getGroupRowClass(),groupHeaderClass:this._getGroupHeaderClass.bind(this),groupHeaderContentClass:this._getGroupHeaderContentClass()},this._getCellCount()||1,this.option("resourceCellTemplate"),this._getTotalRowCount(this._getGroupCount()),t)},_ensureGroupHeaderCellsHeight:function(e){var t=this._calculateMinCellHeight();return e<t?t:e},_calculateMinCellHeight:function(){var e=this._getDateTable(),t="."+this._getDateTableRowClass();return e.get(0).getBoundingClientRect().height/e.find(t).length-2},_getCellCoordinatesByIndex:function(e){return{cellIndex:e%this._getCellCount(),rowIndex:0}},_getCellByCoordinates:function(e,t){var n=this._groupedStrategy.prepareCellIndexes(e,t);return this._$dateTable.find("tr").eq(n.rowIndex).find("td").eq(n.cellIndex)},_getWorkSpaceWidth:function(){return this._$dateTable.outerWidth(!0)},_getGroupIndexByCell:function(e){return e.parent().index()},_getIndicationFirstViewDate:function(){return new Date(this._firstViewDate)},_getIntervalBetween:function(e,t){var n=this.option("startDayHour"),i=this.option("endDayHour"),o=this.getStartViewDate(),a=o.getTime(),r=(24-i+n)*d("hour"),s=l.getTimezonesDifference(o,e),u=e.getTime(),c=u-a-s,h=Math.floor(c/d("day")),p=c-h*d("day"),f=0,g=this._getCellCountInDay()*(h-this._getWeekendsCount(h)),_=u-l.trimTime(new Date(e)).getTime(),m=g*this.option("hoursInterval")*d("hour");return t||(e.getHours()<n?f=p-r+_:e.getHours()>=n&&e.getHours()<i?f=p:e.getHours()>=n&&e.getHours()>=i?f=p-(_-i*d("hour")):h||(m=c),m+=f),m},_getWeekendsCount:function(){return 0},getAllDayContainer:function(){return null},getTimePanelWidth:function(){return 0},getPositionShift:function(e){var t=this.callBase(e),n=this.getCellWidth()*e;return this.option("rtlEnabled")&&(n*=-1),{top:0,left:n+=t.left,cellPosition:n}},getVisibleBounds:function(){var e=this.option("rtlEnabled"),t={},n=this.getScrollable().$element(),i=this.getCellWidth(),o=(e?this.getScrollableOuterWidth()-this.getScrollableScrollLeft():this.getScrollableScrollLeft())/i,a=n.width()/i,r=e?o-a:o+a,s=this._getDateByIndex(o),u=this._getDateByIndex(r);return e&&(s=this._getDateByIndex(r),u=this._getDateByIndex(o)),t.left={hours:s.getHours(),minutes:s.getMinutes()>=30?30:0,date:l.trimTime(s)},t.right={hours:u.getHours(),minutes:u.getMinutes()>=30?30:0,date:l.trimTime(u)},t},needUpdateScrollPosition:function(e,t,n,i){var o=!1;return o=this._dateWithinBounds(n,i),(e<n.left.hours||e>n.right.hours)&&(o=!0),e===n.left.hours&&t<n.left.minutes&&(o=!0),e===n.right.hours&&t>n.right.minutes&&(o=!0),o},getIntervalDuration:function(e){return this.getCellDuration()},_dateWithinBounds:function(e,t){var n=l.trimTime(new Date(t)),i=!1;return(n<e.left.date||n>e.right.date)&&(i=!0),i},_supportCompactDropDownAppointments:function(){return!1},getCellMinWidth:function(){return 0},getWorkSpaceLeftOffset:function(){return 0},scrollToTime:function(e,t,n){var i=this._getScrollCoordinates(e,t,n),o=this.getScrollable(),a=this.option("rtlEnabled")?this.getScrollableContainer().get(0).getBoundingClientRect().width:0;o.scrollBy({left:i.left-o.scrollLeft()-a,top:0})}});r("dxSchedulerTimeline",h),e.exports=h},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(381)),a=i(n(711)),r=n(4),s=i(n(14)),l=n(0),u=i(n(18)),c=i(n(22)),d=n(1),h=i(d),p=i(n(30)),f=c.default.dateToMilliseconds,g=s.default.abstract,_=s.default.inherit({ctor:function(e){this.instance=e,this._initPositioningStrategy()},_initPositioningStrategy:function(){this._positioningStrategy=this.instance.fire("isAdaptive")?new a.default(this):new o.default(this)},getPositioningStrategy:function(){return this._positioningStrategy},getAppointmentMinSize:function(){return 2},keepAppointmentSettings:function(){return!1},getDeltaTime:g,getAppointmentGeometry:function(e){return e},needCorrectAppointmentDates:function(){return!0},getDirection:function(){return"horizontal"},createTaskPositionMap:function(e){delete this._maxAppointmentCountPerCell;var t=e&&e.length;if(t){this._defaultWidth=this.instance._cellWidth,this._defaultHeight=this.instance._cellHeight,this._allDayHeight=this.instance._allDayCellHeight;for(var n=[],i=0;i<t;i++){var o=this._getItemPosition(e[i]);this._isRtl()&&(o=this._correctRtlCoordinates(o)),n.push(o)}var a=this._getSortedPositions(n),r=this._getResultPositions(a);return this._getExtendedPositionMap(n,r)}},_getDeltaWidth:function(e,t){var n=this.instance.fire("getResizableStep")||this.getAppointmentMinSize(),i=t.width;return Math.round((e.width-i)/n)},_correctRtlCoordinates:function(e){var t=e[0].width||this._getAppointmentMaxWidth();return e[0].appointmentReduced||(e[0].left-=t),this._correctRtlCoordinatesParts(e,t),e},_correctRtlCoordinatesParts:r.noop,_getAppointmentMaxWidth:function(){return this.getDefaultCellWidth()},_getItemPosition:function(e){for(var t=this._getAppointmentCoordinates(e),n=this.isAllDay(e),i=[],o=new Date(this.instance.fire("getField","startDate",e)),a=!!this.instance.fire("getField","recurrenceRule",e),r=0;r<t.length;r++){var s=this.calculateAppointmentHeight(e,t[r],a),u=this.calculateAppointmentWidth(e,t[r],a),c=u,d=null,h=[],p=t[r].rowIndex,f=t[r].cellIndex;if(this._needVerifyItemSize()||n){var g=t[r].hMax;this.isAppointmentGreaterThan(g,{left:t[r].left,width:u})&&(d="head",p=t[r].rowIndex,f=t[r].cellIndex,c=this._reduceMultiWeekAppointment(u,{left:t[r].left,right:g}),h=this._getAppointmentParts({sourceAppointmentWidth:u,reducedWidth:c,height:s},t[r],o),this._isRtl()&&(t[r].left=g))}(0,l.extend)(t[r],{height:s,width:c,allDay:n,rowIndex:p,cellIndex:f,appointmentReduced:d}),i=this._getAppointmentPartsPosition(h,t[r],i)}return i},_getAppointmentPartsPosition:function(e,t,n){return e.length?(e.unshift(t),n=n.concat(e)):n.push(t),n},_getAppointmentCoordinates:function(e){var t=[{top:0,left:0}];return this.instance.fire("needCoordinates",{startDate:this.startDate(e),originalStartDate:this.startDate(e,!0),appointmentData:e,callback:function(e){t=e}}),t},_isRtl:function(){return this.instance.option("rtlEnabled")},_getAppointmentParts:function(){return[]},_getCompactAppointmentParts:function(e){var t=this.getDefaultCellWidth()||this.getAppointmentMinSize();return Math.round(e/t)},_reduceMultiWeekAppointment:function(e,t){return this._isRtl()?Math.floor(t.left-t.right):t.right-Math.floor(t.left)},calculateAppointmentHeight:function(){return 0},calculateAppointmentWidth:function(){return 0},isAppointmentGreaterThan:function(e,t){var n=t.left+t.width-e;return this._isRtl()&&(n=e+t.width-t.left),n>this.getDefaultCellWidth()/2},isAllDay:function(){return!1},cropAppointmentWidth:function(e,t){return this.instance.fire("isGroupedByDate")&&(e=t),e},_getSortedPositions:function(e){for(var t=[],n=0,i=0,o=e.length;i<o;i++)for(var a=0,r=e[i].length;a<r;a++){var s=e[i][a],l={i:i,j:a,top:s.top,left:s.left,cellPosition:s.cellPosition,isStart:!0,allDay:s.allDay,__tmpIndex:n};n++;var u={i:i,j:a,top:s.top+s.height,left:s.left+s.width,cellPosition:s.cellPosition,isStart:!1,allDay:s.allDay,__tmpIndex:n};t.push(l,u),n++}return t.sort(function(e,t){return this._sortCondition(e,t)}.bind(this)),t},_fixUnstableSorting:function(e,t,n){if(0===e){if(t.__tmpIndex<n.__tmpIndex)return-1;if(t.__tmpIndex>n.__tmpIndex)return 1}return e},_sortCondition:g,_rowCondition:function(e,t){var n=this._isSomeEdge(e,t),i=this._normalizeCondition(e.left,t.left,n),o=this._normalizeCondition(e.top,t.top,n);return i||(o||e.isStart-t.isStart)},_columnCondition:function(e,t){var n=this._isSomeEdge(e,t),i=this._normalizeCondition(e.left,t.left,n),o=this._normalizeCondition(e.top,t.top,n);return o||(i||e.isStart-t.isStart)},_isSomeEdge:function(e,t){return e.i===t.i&&e.j===t.j},_normalizeCondition:function(e,t,n){var i=e-t;return n||Math.abs(i)>1?i:0},_getResultPositions:function(e){for(var t,n=[],i=[],o=[],a=[],r=0,s=0,l=0;l<e.length;l++){var u,c=e[l];if(c.isStart){for(t=void 0,u=0;u<i.length;u++)if(!i[u]){t=u,i[u]=!0;break}if(void 0===t)for(t=i.length,i.push(!0),u=0;u<n.length;u++)n[u].count++;n.push({index:t,count:i.length,i:c.i,j:c.j,sortedIndex:this._skipSortedIndex(t)?null:s++}),r<i.length&&(r=i.length)}else{var d=this._findIndexByKey(n,"i","j",c.i,c.j),h=n[d];if(n.splice(d,1),i[h.index]=!1,a.push(h),!n.length){i=[];for(var p=0;p<a.length;p++)a[p].count=r;a=[],r=0}o.push(h)}}return o.sort(function(e,t){var n=e.j-t.j,i=e.i-t.i;return i||n})},_skipSortedIndex:function(e){return this.instance.fire("getMaxAppointmentsPerCell")&&e>this._getMaxAppointmentCountPerCell()-1},_findIndexByKey:function(e,t,n,i,o){for(var a=0,r=0,s=e.length;r<s;r++)if(e[r][t]===i&&e[r][n]===o){a=r;break}return a},_getExtendedPositionMap:function(e,t){for(var n=0,i=[],o=0,a=e.length;o<a;o++){for(var r=[],s=0,l=e[o].length;s<l;s++)e[o][s].index=t[n].index,e[o][s].sortedIndex=t[n].sortedIndex,e[o][s].count=t[n++].count,r.push(e[o][s]),this._checkLongCompactAppointment(e[o][s],r);i.push(r)}return i},_checkLongCompactAppointment:r.noop,_splitLongCompactAppointment:function(e,t){var n=this._getMaxAppointmentCountPerCellByType(e.allDay),i=0;if(void 0!==n&&e.index>n-1){e.isCompact=!0,i=this._getCompactAppointmentParts(e.width);for(var o=1;o<i;o++){var a=(0,l.extend)(!0,{},e);a.left=this._getCompactLeftCoordinate(e.left,o),a.cellIndex=a.cellIndex+o,a.sortedIndex=null,t.push(a)}}return t},startDate:function(e,t,n){var i=n&&n.startDate,o=this.instance._getStartDate(e,t),a=this.instance.fire("getField","text",e);if((i&&o>i||!i)&&(i=o),isNaN(i.getTime()))throw u.default.Error("E1032",a);return i},endDate:function(e,t,n){var i=this.instance._getEndDate(e),o=this.startDate(e,!0),a=this.startDate(e,!1,t);if(a.getTime()>i.getTime()||n){var r=t?t.initialStartDate||t.startDate:o,s=t?t.startDate:o,l=i.getTime()-o.getTime();if(l=this._adjustDurationByDaylightDiff(l,o,i),i=new Date(a.getTime()>=r.getTime()?r.getTime():a.getTime()),n&&(i=new Date(i.getTime()+l)),!c.default.sameDate(o,i)&&s.getTime()<a.getTime()){var u=l-(c.default.trimTime(i).getTime()-s.getTime())||l;i=new Date(c.default.trimTime(a).getTime()+u)}}if(!this.isAllDay(e)){var d=c.default.roundToHour(this.instance.fire("getEndViewDate"));i>d&&(i=d)}return i},_adjustDurationByDaylightDiff:function(e,t,n){var i=this.instance.fire("getDaylightOffset",t,n);return this._needAdjustDuration(i)?this._calculateDurationByDaylightDiff(e,i):e},_needAdjustDuration:function(e){return 0!==e},_calculateDurationByDaylightDiff:function(e,t){return e+t*f("minute")},_getAppointmentDurationInMs:function(e,t,n){var i;return this.instance.fire("getAppointmentDurationInMs",{startDate:e,endDate:t,allDay:n,callback:function(e){i=e}}),i},_getMaxNeighborAppointmentCount:function(){if(this.instance.fire("getMaxAppointmentsPerCell"))return 0;var e=this.getCompactAppointmentDefaultWidth()+this.getCompactAppointmentLeftOffset();return Math.floor(this.getDropDownAppointmentWidth()/e)},_markAppointmentAsVirtual:function(e,t){var n=this._getMaxAppointmentCountPerCellByType(t);e.count-n>this._getMaxNeighborAppointmentCount()&&(e.virtual={top:e.top,left:e.left,index:e.groupIndex+"-"+e.rowIndex+"-"+e.cellIndex,isAllDay:t})},_getMaxAppointmentCountPerCellByType:function(e){var t=this._getMaxAppointmentCountPerCell();return h.default.isObject(t)?e?this._getMaxAppointmentCountPerCell().allDay:this._getMaxAppointmentCountPerCell().simple:t},getDropDownAppointmentWidth:function(e,t){return this.getPositioningStrategy().getDropDownAppointmentWidth(e,t)},getDropDownAppointmentHeight:function(){return this.getPositioningStrategy().getDropDownAppointmentHeight()},getDropDownButtonAdaptiveSize:function(){return 28},getDefaultCellWidth:function(){return this._defaultWidth},getDefaultCellHeight:function(){return this._defaultHeight},getDefaultAllDayCellHeight:function(){return this._allDayHeight},getCompactAppointmentDefaultWidth:function(){return 15},getCompactAppointmentTopOffset:function(e){return this.getPositioningStrategy().getCompactAppointmentTopOffset(e)},getCompactAppointmentLeftOffset:function(){return this.getPositioningStrategy().getCompactAppointmentLeftOffset()},getAppointmentDataCalculator:r.noop,_customizeCoordinates:function(e,t,n,i,o){var a,r,s=e.index,l=t/n,u=e.top+s*l+i,c=e.width,d=e.left,h=this.getCompactAppointmentTopOffset(o);return e.isCompact&&(a=this.getCompactAppointmentDefaultWidth(),r=this.getCompactAppointmentLeftOffset(),u=e.top+h,d=e.left+(s-n)*(a+r)+r,this.instance.fire("isAdaptive")&&(e.top=u,e.left=e.left+r),l=a,c=a,this._markAppointmentAsVirtual(e,o)),{height:l,width:c,top:u,left:d,empty:this._isAppointmentEmpty(t,c)}},_isAppointmentEmpty:function(e,t){return e<this._getAppointmentMinHeight()||t<this._getAppointmentMinWidth()},_calculateGeometryConfig:function(e){var t=this.instance.fire("getMaxAppointmentsPerCell"),n=this._getOffsets(),i=this._getAppointmentDefaultOffset(),o=this._getAppointmentCount(t,e),a=this._getDefaultRatio(e,o),r=this._getMaxHeight();(0,d.isNumeric)(o)||(o=e.count,a=(r-n.unlimited)/r);var s=(1-a)*r;return("auto"===t||(0,d.isNumeric)(t))&&(a=1,r-=i,s=i),{height:a*r,appointmentCountPerCell:o,offset:s}},_getAppointmentCount:r.noop,_getDefaultRatio:r.noop,_getOffsets:r.noop,_getMaxHeight:r.noop,_needVerifyItemSize:function(){return!1},needSeparateAppointment:function(e){return this.instance.fire("isGroupedByDate")&&e},_getMaxAppointmentCountPerCell:function(){if(!this._maxAppointmentCountPerCell){var e,t=this.instance.fire("getMaxAppointmentsPerCell");t||(e=2),(0,d.isNumeric)(t)&&(e=t),"auto"===t&&(e=this._getDynamicAppointmentCountPerCell()),"unlimited"===t&&(e=void 0),this._maxAppointmentCountPerCell=e}return this._maxAppointmentCountPerCell},_getDynamicAppointmentCountPerCell:function(){return this.getPositioningStrategy().getDynamicAppointmentCountPerCell()},hasAllDayAppointments:function(){return!1},_isCompactTheme:function(){return"compact"===(p.default.current()||"").split(".").pop()},_getAppointmentDefaultOffset:function(){return this.getPositioningStrategy().getAppointmentDefaultOffset()},_getAppointmentDefaultHeight:function(){return this._getAppointmentHeightByTheme()},_getAppointmentMinHeight:function(){return this._getAppointmentDefaultHeight()},_getAppointmentHeightByTheme:function(){return this._isCompactTheme()?18:20},_getAppointmentDefaultWidth:function(){return this.getPositioningStrategy()._getAppointmentDefaultWidth()},_getAppointmentMinWidth:function(){return this._getAppointmentDefaultWidth()},_needVerticalGroupBounds:function(){return!1},_needHorizontalGroupBounds:function(){return!1}});e.exports=_},function(e,t,n){var i=n(202),o=n(182),a=n(1),r=n(7),s={widget:"separator"},l="dx-diagram-select-sm",u="dx-diagram-select-b",c="dx-diagram-color-b",d={getToolbar:function(){var e=this,t=(0,i.getDiagram)().DiagramCommand;return[{command:t.Undo,hint:"Undo",icon:"undo",text:"Undo"},{command:t.Redo,hint:"Redo",icon:"redo",text:"Redo"},s,{command:t.FontName,beginGroup:!0,widget:"dxSelectBox",items:["Arial","Arial Black","Helvetica","Times New Roman","Courier New","Courier","Verdana","Georgia","Comic Sans MS","Trebuchet MS"]},{command:t.FontSize,widget:"dxSelectBox",items:["8pt","9pt","10pt","11pt","12pt","14pt","16pt","18pt","20pt","22pt","24pt","26pt","28pt","36pt","48pt","72pt"],cssClass:l},s,{command:t.Bold,hint:"Bold",text:"Bold",icon:"bold"},{command:t.Italic,hint:"Italic",text:"Italic",icon:"italic"},{command:t.Underline,hint:"Underline",text:"Underline",icon:"underline"},s,{command:t.FontColor,text:"Text Color",widget:"dxColorBox",icon:"dx-icon dx-icon-color",cssClass:c},{command:t.StrokeColor,text:"Line Color",widget:"dxColorBox",icon:"dx-icon dx-icon-background",cssClass:c},{command:t.FillColor,text:"Fill Color",widget:"dxColorBox",icon:"dx-diagram-i dx-diagram-i-button-fill",cssClass:c},s,{command:t.TextLeftAlign,hint:"Align Left",text:"Align Left",icon:"alignleft",beginGroup:!0},{command:t.TextCenterAlign,hint:"Align Center",text:"Center",icon:"aligncenter"},{command:t.TextRightAlign,hint:"Align Right",text:"Align Right",icon:"alignright"},s,{command:t.ConnectorLineOption,widget:"dxSelectBox",hint:"Line Type",items:[{value:0,icon:"dx-diagram-i-connector-straight dx-diagram-i",hint:"Straight"},{value:1,icon:"dx-diagram-i-connector-orthogonal dx-diagram-i",hint:"Orthogonal"}],displayExpr:"name",valueExpr:"value",cssClass:u},{command:t.ConnectorStartLineEnding,widget:"dxSelectBox",items:[{value:0,icon:"dx-diagram-i-connector-begin-none dx-diagram-i",hint:"None"},{value:1,icon:"dx-diagram-i-connector-begin-arrow dx-diagram-i",hint:"Arrow"}],displayExpr:"name",valueExpr:"value",hint:"Line Start",cssClass:u},{command:t.ConnectorEndLineEnding,widget:"dxSelectBox",items:[{value:0,icon:"dx-diagram-i-connector-end-none dx-diagram-i",hint:"None"},{value:1,icon:"dx-diagram-i-connector-end-arrow dx-diagram-i",hint:"Arrow"}],displayExpr:"name",valueExpr:"value",hint:"Line End",cssClass:u},s,{widget:"dxButton",icon:"export",text:"Export",items:[{command:t.ExportSvg,text:"Export to SVG",getParameter:function(t){return function(n){return e._exportTo(t,n,"SVG","image/svg+xml")}}},{command:t.ExportPng,text:"Export to PNG",getParameter:function(t){return function(n){return e._exportTo(t,n,"PNG","image/png")}}},{command:t.ExportJpg,text:"Export to JPEG",getParameter:function(t){return function(n){return e._exportTo(t,n,"JPEG","image/jpeg")}}}]},{widget:"dxButton",text:"Auto Layout",showText:"always",items:[{command:t.AutoLayoutTreeVertical,text:"Tree (vertical)"},{command:t.AutoLayoutLayeredVertical,text:"Layered (vertical)"},{command:t.AutoLayoutLayeredHorizontal,text:"Layered (horizontal)"}]}]},getOptions:function(){var e=(0,i.getDiagram)().DiagramCommand;return[{command:e.Units,text:"Units",widget:"dxSelectBox"},{command:e.PageSize,text:"Page Size",widget:"dxSelectBox",getValue:function(e){return JSON.parse(e)},setValue:function(e){return JSON.stringify(e)}},{command:e.PageLandscape,text:"Page Landscape",widget:"dxCheckBox"},{command:e.PageColor,text:"Page Color",widget:"dxColorBox",beginGroup:!0},{command:e.ShowGrid,text:"Show Grid",widget:"dxCheckBox",beginGroup:!0},{command:e.SnapToGrid,text:"Snap to Grid",widget:"dxCheckBox"},{command:e.GridSize,text:"Grid Size",widget:"dxSelectBox"},{command:e.ZoomLevel,text:"Zoom Level",widget:"dxSelectBox",beginGroup:!0}]},getContextMenu:function(){var e=(0,i.getDiagram)().DiagramCommand;return[{command:e.Cut,text:"Cut"},{command:e.Copy,text:"Copy"},{command:e.Paste,text:"Paste"},{command:e.SelectAll,text:"Select All",beginGroup:!0},{command:e.Delete,text:"Delete",beginGroup:!0},{command:e.BringToFront,text:"Bring to Front",beginGroup:!0},{command:e.SendToBack,text:"Send to Back"},{command:e.Lock,text:"Lock",beginGroup:!0},{command:e.Unlock,text:"Unlock"}]},_exportTo:function(e,t,n,i){var s=(0,r.getWindow)();if(s&&s.atob&&(0,a.isFunction)(s.Blob)){var l=this._getBlobByDataURI(s,t,i),u=e.option("export");o.fileSaver.saveAs(u.fileName||"foo",n,l,u.proxyURL)}},_getBlobByDataURI:function(e,t,n){for(var i=e.atob(t.split(",")[1]),o=new ArrayBuffer(i.length),a=new Uint8Array(o),r=0;r<i.length;r++)a[r]=i.charCodeAt(r);var s=new DataView(o);return new e.Blob([s],{type:n})}};e.exports=d},function(e,t,n){var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(202),a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=(0,o.getDiagram)().EventDispatcher;this.onChanged=new n,this._owner=t}return i(e,[{key:"raiseBarCommandExecuted",value:function(e,t){this.onChanged.raise("NotifyBarCommandExecuted",parseInt(e),t)}},{key:"getCommandKeys",value:function(){throw"Not Implemented"}},{key:"setItemValue",value:function(e,t){}},{key:"setItemEnabled",value:function(e,t){}},{key:"setItemVisible",value:function(e,t){}},{key:"setEnabled",value:function(e){}},{key:"setItemSubItems",value:function(e,t){}},{key:"isVisible",value:function(){return!0}}]),e}();e.exports=a},function(e,t,n){e.exports=n(97)},function(e,t,n){function i(e,t){var n=t.end-t.start,i=0;for(e.forEach(function(e){i+=e.getBoundingRect().width});n<i;)i-=o(e)}function o(e){var t,n;return(t=e.reduce(function(e,t,n){if(!t)return e;var i=t.value();return i<e.value?{value:i,rollingStock:t,index:n}:e},{rollingStock:void 0,value:1/0,index:void 0})).rollingStock.getLabels()[0].draw(!1),n=t.rollingStock.getBoundingRect().width,e[t.index]=null,n}function a(e){var t,n,i,o,a=!1;for(t=0,i=e.length-1;t<i;t++){for(n=t+1,o=e.length;n<o;n++)if(t!==n&&r(e[t],e[n],!0)){a=!0;break}if(a)break}return a}function r(e,t,n){if(e&&t){var i=e.getBoundingRect(),o=t.getBoundingRect(),a=!n||i.oppositeStart<=o.oppositeStart&&i.oppositeEnd>o.oppositeStart||o.oppositeStart<=i.oppositeStart&&o.oppositeEnd>i.oppositeStart;return i.end>o.start&&a}}function s(e){var t,n,i;for(t=0;t<e.length-1;t++)r(n=i||e[t],e[t+1])?(n.toChain(e[t+1]),e[t+1]=null,i=n):i=e[t+1]||n}function l(e,t){var n,i,o,a,r;for(n=0;n<e.length;n++){if(u(o=e[n],t))for(r=o.getBoundingRect(),i=n+1;i<e.length;i++)if((a=e[i])&&a.getBoundingRect().end>r.start-(r.end-t.end)){a.toChain(o),e[n]=o=null;break}o&&o.setRollingStockInCanvas(t)}}function u(e,t){return e&&e.getBoundingRect().end>t.end}function c(e,t,n){var i=e.getBoundingRect(),o=i.x,a=i.y,r=i.x+i.width,s=i.y+i.height;return this.labels=[e],this.shiftFunction=n,this._bBox={start:t?o:a,width:t?i.width:i.height,end:t?r:s,oppositeStart:t?a:o,oppositeEnd:t?s:r},this._initialPosition=t?i.x:i.y,this}function d(e,t){return(e.x<=t.x&&t.x<=e.x+e.width||e.x>=t.x&&e.x<=t.x+t.width)&&(e.y<=t.y&&t.y<=e.y+e.height||e.y>=t.y&&e.y<=t.y+t.height)}var h=n(4),p=h.noop,f=n(5),g=n(1),_=n(3),m=n(0).extend,v=n(13).inArray,y=n(9),b=n(98),x=n(20),w=n(203),C=n(263),k=n(265),S=n(394),I=n(395),T=n(770),D="_reinit",E="_forceRender",A="_resize",O=[D,"_updateDataSource","_dataInit",E,A],P=n(11),B=P.map,M=_.each,R=_.reverseEach,F=m,V=Array.isArray,L=g.isDefined,H=P.setCanvasValues,z="font";c.prototype={toChain:function(e){var t=e.getBoundingRect();e.shift(t.start-this._bBox.end),this._changeBoxWidth(t.width),this.labels=this.labels.concat(e.labels)},getBoundingRect:function(){return this._bBox},shift:function(e){var t=this.shiftFunction;M(this.labels,function(n,i){var o=i.getBoundingRect(),a=t(o,e);i.hideInsideLabel(a)||i.shift(a.x,a.y)}),this._bBox.end-=e,this._bBox.start-=e},setRollingStockInCanvas:function(e){this._bBox.end>e.end&&this.shift(this._bBox.end-e.end)},getLabels:function(){return this.labels},value:function(){return this.labels[0].getData().value},getInitialPosition:function(){return this._initialPosition},_changeBoxWidth:function(e){this._bBox.end+=e,this._bBox.width+=e}};var N={resolveLabelOverlappingInOneDirection:function(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return 0},u=[],d={start:n?t.left:t.top,end:n?t.width-t.right:t.height-t.bottom},h=!1;if(e.forEach(function(e){e&&(h=h||e.series.isStackedSeries()||e.series.isFullStackedSeries(),e.getLabels().forEach(function(e){e.isVisible()&&u.push(new c(e,n,o))}))}),h)!n&&u.reverse();else{var p=u.slice();u.sort(function(e,t){return r(e,t)||e.getInitialPosition()-t.getInitialPosition()||p.indexOf(e)-p.indexOf(t)})}return!!a(u)&&(i(u,d),s(u),u.reverse(),l(u,d),!0)}},$=b.inherit({_eventsMap:{onSeriesClick:{name:"seriesClick"},onPointClick:{name:"pointClick"},onArgumentAxisClick:{name:"argumentAxisClick"},onLegendClick:{name:"legendClick"},onSeriesSelectionChanged:{name:"seriesSelectionChanged"},onPointSelectionChanged:{name:"pointSelectionChanged"},onSeriesHoverChanged:{name:"seriesHoverChanged"},onPointHoverChanged:{name:"pointHoverChanged"},onDone:{name:"done"},onZoomStart:{name:"zoomStart"},onZoomEnd:{name:"zoomEnd"}},_fontFields:["legend."+z,"legend.title."+z,"legend.title.subtitle."+z,"commonSeriesSettings.label."+z],_rootClassPrefix:"dxc",_rootClass:"dxc-chart",_initialChanges:["INIT"],_themeDependentChanges:["REFRESH_SERIES_REINIT"],_getThemeManagerOptions:function(){var e=this.callBase.apply(this,arguments);return e.options=this.option(),e},_createThemeManager:function(){var e=this.option(),t=new S.ThemeManager(this._getThemeManagerOptions());return t.setTheme(e.theme,e.rtlEnabled),t},_initCore:function(){var e=this;e._canvasClipRect=e._renderer.clipRect(),e._createHtmlStructure(),e._createLegend(),e._createTracker(),e._needHandleRenderComplete=!0,e.layoutManager=new I.LayoutManager,e._createScrollBar(),f.on(e._$element,"contextmenu",function(e){(y.isTouchEvent(e)||y.isPointerEvent(e))&&e.preventDefault()}),f.on(e._$element,"MSHoldVisual",function(e){e.preventDefault()})},_getLayoutItems:p,_layoutManagerOptions:function(){return this._themeManager.getOptions("adaptiveLayout")},_reinit:function(){var e=this;H(e._canvas),e._reinitAxes(),e._requestChange(["DATA_SOURCE","DATA_INIT","CORRECT_AXIS","FULL_RENDER"])},_correctAxes:p,_createHtmlStructure:function(){var e=this,t=e._renderer,n=t.root,i=function(){return t.g().attr({class:"dxc-constant-lines-group"}).linkOn(n,"constant-lines")};e._constantLinesGroup={dispose:function(){this.under.dispose(),this.above.dispose()},linkOff:function(){this.under.linkOff(),this.above.linkOff()},clear:function(){this.under.linkRemove().clear(),this.above.linkRemove().clear()},linkAppend:function(){this.under.linkAppend(),this.above.linkAppend()}},e._backgroundRect=t.rect().attr({fill:"gray",opacity:1e-4}).append(n),e._panesBackgroundGroup=t.g().attr({class:"dxc-background"}).append(n),e._stripsGroup=t.g().attr({class:"dxc-strips-group"}).linkOn(n,"strips"),e._gridGroup=t.g().attr({class:"dxc-grids-group"}).linkOn(n,"grids"),e._panesBorderGroup=t.g().attr({class:"dxc-border"}).linkOn(n,"border"),e._axesGroup=t.g().attr({class:"dxc-axes-group"}).linkOn(n,"axes"),e._labelAxesGroup=t.g().attr({class:"dxc-strips-labels-group"}).linkOn(n,"strips-labels"),e._constantLinesGroup.under=i(),e._seriesGroup=t.g().attr({class:"dxc-series-group"}).linkOn(n,"series"),e._constantLinesGroup.above=i(),e._scaleBreaksGroup=t.g().attr({class:"dxc-scale-breaks"}).linkOn(n,"scale-breaks"),e._labelsGroup=t.g().attr({class:"dxc-labels-group"}).linkOn(n,"labels"),e._crosshairCursorGroup=t.g().attr({class:"dxc-crosshair-cursor"}).linkOn(n,"crosshair"),e._legendGroup=t.g().attr({class:"dxc-legend","clip-path":e._getCanvasClipRectID()}).linkOn(n,"legend").linkAppend(n).enableLinks(),e._scrollBarGroup=t.g().attr({class:"dxc-scroll-bar"}).linkOn(n,"scroll-bar")},_disposeObjectsInArray:function(e,t){M(this[e]||[],function(e,n){t&&n?M(t,function(e,t){n[t]&&n[t].dispose()}):n&&n.dispose()}),this[e]=null},_disposeCore:function(){var e=this,t=function(t){e[t]&&(e[t].dispose(),e[t]=null)},n=function(t){e[t].linkOff()},i=this._disposeObjectsInArray;e._renderer.stopAllAnimations(),i.call(e,"series"),t("_tracker"),t("_crosshair"),e.layoutManager=e._userOptions=e._canvas=e._groupsData=null,n("_stripsGroup"),n("_gridGroup"),n("_axesGroup"),n("_constantLinesGroup"),n("_labelAxesGroup"),n("_panesBorderGroup"),n("_seriesGroup"),n("_labelsGroup"),n("_crosshairCursorGroup"),n("_legendGroup"),n("_scrollBarGroup"),n("_scaleBreaksGroup"),t("_canvasClipRect"),t("_panesBackgroundGroup"),t("_backgroundRect"),t("_stripsGroup"),t("_gridGroup"),t("_axesGroup"),t("_constantLinesGroup"),t("_labelAxesGroup"),t("_panesBorderGroup"),t("_seriesGroup"),t("_labelsGroup"),t("_crosshairCursorGroup"),t("_legendGroup"),t("_scrollBarGroup"),t("_scaleBreaksGroup")},_getAnimationOptions:function(){return this._themeManager.getOptions("animation")},_getDefaultSize:function(){return{width:400,height:400}},_getOption:function(e){return this._themeManager.getOptions(e)},_applySize:function(e){this._rect=e.slice(),this._changes.has("FULL_RENDER")||this._processRefreshData(A)},_resize:function(){this._doRender(this.__renderOptions||{animate:!1,isResize:!0})},_trackerType:"ChartTracker",_createTracker:function(){var e=this;e._tracker=new T[e._trackerType]({seriesGroup:e._seriesGroup,renderer:e._renderer,tooltip:e._tooltip,legend:e._legend,eventTrigger:e._eventTrigger})},_getTrackerSettings:function(){return this._getSelectionModes()},_getSelectionModes:function(){var e=this._themeManager;return{seriesSelectionMode:e.getOptions("seriesSelectionMode"),pointSelectionMode:e.getOptions("pointSelectionMode")}},_updateTracker:function(e){var t=this;t._tracker.update(t._getTrackerSettings()),t._tracker.setCanvases({left:0,right:t._canvas.width,top:0,bottom:t._canvas.height},e)},_createCanvasFromRect:function(e){var t=this._canvas;return H({left:e[0],top:e[1],right:t.width-e[2],bottom:t.height-e[3],width:t.width,height:t.height})},_doRender:function(e){var t,n,i=this;if(0!==i._canvas.width||0!==i._canvas.height){i._resetIsReady(),n=(t=i._prepareDrawOptions(e)).recreateCanvas,i.__originalCanvas=i._canvas,i._canvas=m({},i._canvas),n?i.__currentCanvas=i._canvas:i._canvas=i.__currentCanvas,n&&i._updateCanvasClipRect(i._canvas),this._canvas=this._createCanvasFromRect(this._rect),i._renderer.stopAllAnimations(!0),i._cleanGroups();var o=new Date;i._renderElements(t),i._lastRenderingTime=new Date-o}},_layoutAxes:p,_renderElements:function(e){var t,n,i,o=this,a=o._prepareToRender(e),r=o._isRotated(),s=o._isLegendInside(),l=[];m({},o._canvas),o._renderer.lock(),e.drawLegend&&o._legend&&o._legendGroup.linkAppend(),o.layoutManager.setOptions(o._layoutManagerOptions());var u=o._getLayoutTargets();this._layoutAxes(function(t){var n=t?m({},e,{animate:!1}):e,i=o._renderAxes(n,a);o._shrinkAxes(t,i)}),o._applyClipRects(a),o._appendSeriesGroups(),o._createCrosshairCursor(),u.forEach(function(e){var t=e.canvas;l.push({left:t.left,right:t.width-t.right,top:t.top,bottom:t.height-t.bottom})}),o._scrollBar&&("discrete"===(t=o._argumentAxes[0].getTranslator().getBusinessRange()).axisType&&t.categories&&t.categories.length<=1||"discrete"!==t.axisType&&t.min===t.max?n=i=void 0:(n=t.minVisible,i=t.maxVisible),o._scrollBar.init(t,!o._argumentAxes[0].getOptions().valueMarginsEnabled).setPosition(n,i)),o._updateTracker(l),o._updateLegendPosition(e,s),o._applyPointMarkersAutoHiding(),o._renderSeries(e,r,s),o._renderer.unlock()},_createCrosshairCursor:p,_appendSeriesGroups:function(){this._seriesGroup.linkAppend(),this._labelsGroup.linkAppend(),this._appendAdditionalSeriesGroups()},_renderSeries:function(e,t,n){this._calculateSeriesLayout(e,t),this._renderSeriesElements(e,t,n)},_calculateSeriesLayout:function(e,t){e.hideLayoutLabels=this.layoutManager.needMoreSpaceForPanesCanvas(this._getLayoutTargets(),t)&&!this._themeManager.getOptions("adaptiveLayout").keepLabels,this._updateSeriesDimensions(e)},_renderSeriesElements:function(e,t,n){var i,o,a=this,r=a.series,s=r.length,l=a._themeManager.getOptions("resolveLabelOverlapping");for(i=0;i<s;i++)o=r[i],a._applyExtraSettings(o,e),o.draw(e.animate&&o.getPoints().length<=e.animationPointsLimit&&a._renderer.animationEnabled(),e.hideLayoutLabels,a._getLegendCallBack(o));"none"===l?a._adjustSeriesLabels(!1):a._locateLabels(l),a._renderTrackers(n),a._tracker.repairTooltip(),a._clearCanvas(),a._renderExtraElements(),a._drawn(),a._renderCompleteHandler()},_locateLabels:function(e){this._resolveLabelOverlapping(e)},_renderExtraElements:function(){},_clearCanvas:function(){this._canvas=this.__originalCanvas},_resolveLabelOverlapping:function(e){var t;switch(e){case"stack":t=this._resolveLabelOverlappingStack;break;case"hide":t=this._resolveLabelOverlappingHide;break;case"shift":t=this._resolveLabelOverlappingShift}return g.isFunction(t)&&t.call(this)},_getVisibleSeries:function(){return h.grep(this.getAllSeries(),function(e){return e.isVisible()})},_resolveLabelOverlappingHide:function(){var e,t,n,i,o,a,r=[],s=this._getVisibleSeries();for(i=0;i<s.length;i++)for(a=s[i].getVisiblePoints(),o=0;o<a.length;o++)r.push.apply(r,a[o].getLabels());for(i=0;i<r.length;i++)if((e=r[i]).isVisible())for(n=e.getBoundingRect(),o=i+1;o<r.length;o++)d(n,(t=r[o]).getBoundingRect())&&t.draw(!1)},_cleanGroups:function(){var e=this;e._stripsGroup.linkRemove().clear(),e._gridGroup.linkRemove().clear(),e._axesGroup.linkRemove().clear(),e._constantLinesGroup.above.clear(),e._labelAxesGroup.linkRemove().clear(),e._labelsGroup.linkRemove().clear(),e._crosshairCursorGroup.linkRemove().clear(),e._scaleBreaksGroup.linkRemove().clear()},_allowLegendInsidePosition:function(){return!1},_updateLegendPosition:p,_createLegend:function(){var e=this,t=function(e){var t=function(e){return{nameField:e+"Name",colorField:e+"Color",indexField:e+"Index"}}(e);return{getFormatObject:function(e){var n={};return n[t.indexField]=e.id,n[t.colorField]=e.states.normal.fill,n[t.nameField]=e.text,n},textField:t.nameField}}(e._legendDataField);e._legend=new w.Legend({renderer:e._renderer,group:e._legendGroup,backgroundClass:"dxc-border",itemGroupClass:"dxc-item",titleGroupClass:"dxc-title",textField:t.textField,getFormatObject:t.getFormatObject,allowInsidePosition:e._allowLegendInsidePosition()}),e._updateLegend(),e._layout.add(e._legend)},_updateLegend:function(){var e=this,t=e._themeManager,n=t.getOptions("legend"),i=e._getLegendData();n.containerBackgroundColor=t.getOptions("containerBackgroundColor"),n._incidentOccurred=e._incidentOccurred,e._legend.update(i,n,t.theme("legend").title),this._change(["LAYOUT"])},_prepareDrawOptions:function(e){var t,n=this._getAnimationOptions();return t=m({},{force:!1,adjustAxes:!0,drawLegend:!0,drawTitle:!0,animate:n.enabled,animationPointsLimit:n.maxPointCountSupported},e,this.__renderOptions),L(t.recreateCanvas)||(t.recreateCanvas=t.adjustAxes&&t.drawLegend&&t.drawTitle),t},_processRefreshData:function(e){var t=v(this._currentRefreshData,O),n=v(e,O);(!this._currentRefreshData||t>=0&&n<t)&&(this._currentRefreshData=e),this._requestChange(["REFRESH"])},_getLegendData:function(){return B(this._getLegendTargets(),function(e){var t=e.legendData,n=e.getLegendStyles,i=n.normal.opacity;return e.visible||((!L(i)||i>.3)&&(i=.3),t.textOpacity=.3),t.states={hover:n.hover,selection:n.selection,normal:F({},n.normal,{opacity:i})},t})},_getLegendOptions:function(e){return{legendData:{text:e[this._legendItemTextField],id:e.index,visible:!0},getLegendStyles:e.getLegendStyles(),visible:e.isVisible()}},_disposeSeries:function(e){var t=this;t.series&&(L(e)?(t.series[e].dispose(),t.series.splice(e,1)):(M(t.series,function(e,t){return t.dispose()}),t.series.length=0)),t.series&&t.series.length||(t.series=[])},_disposeSeriesFamilies:function(){var e=this;M(e.seriesFamilies||[],function(e,t){t.dispose()}),e.seriesFamilies=null,e._needHandleRenderComplete=!0},_simulateOptionChange:function(e,t,n){var i=this;x.compileSetter(e)(i._options,t,{functionsAsIs:!0,merge:!i._getOptionsByReference()[e]}),i._notifyOptionChanged(e,t,n),i._changes.reset()},_optionChanged:function(e){this._themeManager.resetOptions(e.name),this.callBase.apply(this,arguments)},_applyChanges:function(){var e=this;e._themeManager.update(e._options),e.callBase.apply(e,arguments)},_optionChangesMap:{animation:"ANIMATION",dataSource:"DATA_SOURCE",palette:"PALETTE",paletteExtensionMode:"PALETTE",legend:"FORCE_DATA_INIT",seriesTemplate:"FORCE_DATA_INIT",export:"FORCE_RENDER",valueAxis:"AXES_AND_PANES",argumentAxis:"AXES_AND_PANES",commonAxisSettings:"AXES_AND_PANES",panes:"AXES_AND_PANES",defaultPane:"AXES_AND_PANES",useAggregation:"AXES_AND_PANES",containerBackgroundColor:"AXES_AND_PANES",rotated:"ROTATED",autoHidePointMarkers:"REFRESH_SERIES_REINIT",customizePoint:"REFRESH_SERIES_REINIT",customizeLabel:"REFRESH_SERIES_REINIT",scrollBar:"SCROLL_BAR"},_optionChangesOrder:["ROTATED","PALETTE","REFRESH_SERIES_REINIT","AXES_AND_PANES","INIT","REINIT","DATA_SOURCE","REFRESH_SERIES_DATA_INIT","DATA_INIT","FORCE_DATA_INIT","CORRECT_AXIS"],_customChangesOrder:["ANIMATION","REFRESH_SERIES_FAMILIES","FORCE_RENDER","VISUAL_RANGE","SCROLL_BAR","CHART_TOOLTIP","REINIT","REFRESH","FULL_RENDER"],_change_ANIMATION:function(){this._renderer.updateAnimationOptions(this._getAnimationOptions())},_change_DATA_SOURCE:function(){this._needHandleRenderComplete=!0,this._updateDataSource()},_change_PALETTE:function(){this._themeManager.updatePalette(),this._refreshSeries("DATA_INIT")},_change_REFRESH_SERIES_DATA_INIT:function(){this._refreshSeries("DATA_INIT")},_change_DATA_INIT:function(){this.series&&!this.needToPopulateSeries||this._changes.has("FORCE_DATA_INIT")||this._dataInit()},_change_FORCE_DATA_INIT:function(){this._dataInit()},_change_REFRESH_SERIES_FAMILIES:function(){this._processSeriesFamilies(),this._populateBusinessRange(),this._processRefreshData(E)},_change_FORCE_RENDER:function(){this._processRefreshData(E)},_change_AXES_AND_PANES:function(){this._refreshSeries("INIT")},_change_ROTATED:function(){this._createScrollBar(),this._refreshSeries("INIT")},_change_REFRESH_SERIES_REINIT:function(){this._refreshSeries("INIT")},_change_SCROLL_BAR:function(){this._createScrollBar(),this._processRefreshData(E)},_change_CHART_TOOLTIP:function(){this._organizeStackPoints()},_change_REINIT:function(){this._processRefreshData(D)},_refreshSeries:function(e){this.needToPopulateSeries=!0,this._requestChange([e])},_change_CORRECT_AXIS:function(){this._correctAxes()},_doRefresh:function(){var e=this._currentRefreshData;e&&(this._currentRefreshData=null,this._renderer.stopAllAnimations(!0),this[e]())},_updateCanvasClipRect:function(e){var t,n;t=Math.max(e.width-e.left-e.right,0),n=Math.max(e.height-e.top-e.bottom,0),this._canvasClipRect.attr({x:e.left,y:e.top,width:t,height:n}),this._backgroundRect.attr({x:e.left,y:e.top,width:t,height:n})},_getCanvasClipRectID:function(){return this._canvasClipRect.id},_dataSourceChangedHandler:function(){this._changes.has("INIT")?this._requestChange(["DATA_INIT"]):this._requestChange(["FORCE_DATA_INIT"])},_dataInit:function(){this._dataSpecificInit(!0)},_processSingleSeries:function(e){e.createPoints(!1)},_handleSeriesDataUpdated:function(){var e=this;this._getVisibleSeries().some(function(e){return e.useAggregation()})&&this._populateMarginOptions(),this.series.forEach(function(t){return e._processSingleSeries(t)},this)},_dataSpecificInit:function(e){var t=this;t.series&&!t.needToPopulateSeries||(t.series=t._populateSeries()),t._repopulateSeries(),t._seriesPopulatedHandlerCore(),t._populateBusinessRange(),t._tracker.updateSeries(t.series,this._changes.has("INIT")),t._updateLegend(),e&&this._requestChange(["FULL_RENDER"])},_forceRender:function(){this._doRender({force:!0})},_repopulateSeries:function(){var e,t=this,n=t._themeManager,i=t._dataSourceItems(),o=n.getOptions("dataPrepareSettings");n.getOptions("seriesTemplate")&&t._populateSeries(i),t._groupSeries(),e=C.validateData(i,t._groupsData,t._incidentOccurred,o),n.resetPalette(),t.series.forEach(function(t){t.updateData(e[t.getArgumentField()])}),t._handleSeriesDataUpdated(),t._organizeStackPoints()},_organizeStackPoints:function(){var e=this,t=e._themeManager.getOptions("tooltip").shared,n={};M(e.series||[],function(i,o){e._resetStackPoints(o),t&&e._prepareStackPoints(o,n)})},_renderCompleteHandler:function(){var e=this,t=!0;e._needHandleRenderComplete&&(M(e.series,function(e,n){t=t&&n.canRenderCompleteHandle()}),t&&(e._needHandleRenderComplete=!1,e._eventTrigger("done",{target:e})))},_dataIsReady:function(){return L(this.option("dataSource"))&&this._dataIsLoaded()},_populateSeriesOptions:function(e){for(var t=this,n=t._themeManager,i=n.getOptions("seriesTemplate"),o=i?P.processSeriesTemplate(i,e||[]):t.option("series"),a=V(o)?o:o?[o]:[],r=t._getExtraOptions(),s=void 0,l=void 0,u=[],c=function(e){t._specialProcessSeries(),t._populateBusinessRange(e&&e.getValueAxis()),t._renderer.stopAllAnimations(!0),t._updateLegend(),t._requestChange(["FULL_RENDER"])},d=0;d<a.length;d++)(s=F(!0,{},a[d],r)).name||(s.name="Series "+(d+1).toString()),s.rotated=t._isRotated(),s.customizePoint=n.getOptions("customizePoint"),s.customizeLabel=n.getOptions("customizeLabel"),s.visibilityChanged=c,s.incidentOccurred=t._incidentOccurred,l=n.getOptions("series",s,a.length),t._checkPaneName(l)&&u.push(l);return u},_populateSeries:function(e){var t=this,n=[],i=t._incidentOccurred,o=t._populateSeriesOptions(e),a=void 0,r=0;t.needToPopulateSeries=!1,M(o,function(e,i){var o=t.series&&t.series.filter(function(e){return e.name===i.name&&-1===n.map(function(e){return e.series}).indexOf(e)})[0];o&&o.type===i.type?n.push({series:o,options:i}):(n.push({options:i}),r++)}),t._tracker.clearHover(),R(t.series,function(e,i){n.some(function(e){return i===e.series})||(t._disposeSeries(e),r++)}),t.series=[],r>0&&t._disposeSeriesFamilies(),t._themeManager.resetPalette();var s=function(e){t.series.forEach(function(t){t.notify(e)})};return M(n,function(e,n){var o=n.options,r={commonSeriesModes:t._getSelectionModes(),argumentAxis:t.getArgumentAxis(),valueAxis:t._getValueAxis(o.pane,o.axis)};n.series?(a=n.series).updateOptions(o,r):a=new k.Series(F({renderer:t._renderer,seriesGroup:t._seriesGroup,labelsGroup:t._labelsGroup,eventTrigger:t._eventTrigger,eventPipe:s,incidentOccurred:i},r),o),a.isUpdated?(a.index=t.series.length,t.series.push(a)):i("E2101",[o.type])}),t.series},getAllSeries:function(){return(this.series||[]).slice()},getSeriesByName:function(e){var t=null;return M(this.series,function(n,i){if(i.name===e)return t=i,!1}),t},getSeriesByPos:function(e){return(this.series||[])[e]},clearSelection:function(){this._tracker.clearSelection()},hideTooltip:function(){this._tracker._hideTooltip()},clearHover:function(){this._tracker.clearHover()},render:function(e){var t=this;return t.__renderOptions=e,t.__forceRender=e&&e.force,t.callBase.apply(t,arguments),t.__renderOptions=t.__forceRender=null,t},refresh:function(){this._disposeSeries(),this._disposeSeriesFamilies(),this._requestChange(["CONTAINER_SIZE","REFRESH_SERIES_REINIT"])},_getMinSize:function(){var e=this._layoutManagerOptions();return[e.width,e.height]},_change_REFRESH:function(){this._changes.has("INIT")?this._currentRefreshData=null:this._doRefresh()},_change_FULL_RENDER:function(){this._forceRender()},_change_INIT:function(){this._reinit()},_stopCurrentHandling:function(){this._tracker.stopCurrentHandling()}});["series","commonSeriesSettings","dataPrepareSettings","seriesSelectionMode","pointSelectionMode","synchronizeMultiAxes","resolveLabelsOverlapping"].forEach(function(e){$.prototype._optionChangesMap[e]="REFRESH_SERIES_DATA_INIT"}),["adaptiveLayout","crosshair","resolveLabelOverlapping","adjustOnZoom","zoomingMode","scrollingMode","stickyHovering"].forEach(function(e){$.prototype._optionChangesMap[e]="FORCE_RENDER"}),["equalBarWidth","minBubbleSize","maxBubbleSize","barWidth","barGroupPadding","barGroupWidth","negativesAsZeroes","negativesAsZeros"].forEach(function(e){$.prototype._optionChangesMap[e]="REFRESH_SERIES_FAMILIES"}),t.overlapping=N,t.BaseChart=$,$.addPlugin(n(97).plugin),$.addPlugin(n(106).plugin),$.addPlugin(n(108).plugin),$.addPlugin(n(121).plugin),$.addPlugin(n(145).plugin);var W=$.prototype._change_TITLE;$.prototype._change_TITLE=function(){W.apply(this,arguments),this._change(["FORCE_RENDER"])};var G=$.prototype._change_TOOLTIP;$.prototype._change_TOOLTIP=function(){G.apply(this,arguments),this._change(["CHART_TOOLTIP"])}},function(e,t,n){function i(e,t){var n=e;return t&&_(t.split("."),function(e,t){return n=n[t]}),n}var o=n(14),a=n(0).extend,r=n(1),s=n(3).each,l=n(167),u=r.isString,c=n(11).parseScalar,d=n(50),h=d.getTheme,p=d.addCacheItem,f=d.removeCacheItem,g=a,_=s;n(747),n(748),n(749),n(750),n(751),n(752),n(753),n(754),n(755),n(756),t.BaseThemeManager=o.inherit({ctor:function(e){this._themeSection=e.themeSection,this._fontFields=e.fontFields||[],p(this)},dispose:function(){var e=this;return f(e),e._callback=e._theme=e._font=null,e},setCallback:function(e){return this._callback=e,this},setTheme:function(e,t){return this._current=e,this._rtl=t,this.refresh()},refresh:function(){var e=this,t=e._current||{},n=h(t.name||t);return e._themeName=n.name,e._defaultPalette=n.defaultPalette,e._font=g({},n.font,t.font),e._themeSection&&_(e._themeSection.split("."),function(e,t){n=g(!0,{},n[t])}),e._theme=g(!0,{},n,u(t)?{}:t),e._initializeTheme(),c(e._rtl,e._theme.rtlEnabled)&&g(!0,e._theme,e._theme._rtl),e._callback(),e},theme:function(e){return i(this._theme,e)},themeName:function(){return this._themeName},createPalette:function(e,t){return l.createPalette(e,t,this._defaultPalette)},createDiscretePalette:function(e,t){return l.getDiscretePalette(e,t,this._defaultPalette)},createGradientPalette:function(e){return l.getGradientPalette(e,this._defaultPalette)},getAccentColor:function(e){return l.getAccentColor(e,this._defaultPalette)},_initializeTheme:function(){var e=this;_(e._fontFields||[],function(t,n){e._initializeFont(i(e._theme,n))})},_initializeFont:function(e){g(e,this._font,g({},e))}})},function(e,t,n){function i(e){this._options=e}function o(e,t){this._renderElement=e,this._cacheBBox=t}var a=n(4).noop,r=Math.round,s=n(48),l={horizontal:0,vertical:0},u={center:.5,right:1,bottom:1,left:0,top:0};i.prototype={constructor:i,position:function(e){var t=e.of.getLayoutOptions(),n=this.getLayoutOptions(),i=e.at,o=e.my,a=e.offset||l,s=-u[o.horizontal]*n.width+t.x+u[i.horizontal]*t.width+parseInt(a.horizontal),c=-u[o.vertical]*n.height+t.y+u[i.vertical]*t.height+parseInt(a.vertical);this.shift(r(s),r(c))},getLayoutOptions:a};var c=o.prototype=s.clone(i.prototype);c.constructor=o,c.getLayoutOptions=function(){return this._cacheBBox||this._renderElement.getBBox()},c.shift=function(e,t){var n=this.getLayoutOptions();this._renderElement.move(r(e-n.x),r(t-n.y))},t.LayoutElement=i,t.WrapperLayoutElement=o},function(e,t,n){function i(e,t,n){var i=t?function(e,t){return e-t}:function(e,t){return t-e};return e.sort(function(e,t){var o=n(e),a=n(t),r=O(o)?1:0,s=O(a)?1:0;return r&&s?i(o,a):i(r,s)}),e}function o(e,t){var n=[];return e.forEach(function(e){var i=t(e);void 0!==i&&n.push(i)}),n}function a(e,t){var n=e.argumentOptions&&e.argumentOptions.categories;e.groups.forEach(function(e,n){var i=e.valueOptions&&e.valueOptions.categories;i&&(e.valueOptions.categories=o(i,t[n+1]))}),n&&(e.argumentOptions.categories=o(n,t[0]))}function r(e,t,n){return e<=0&&null!==e&&(n("E2004",[t]),e=null),e}function s(e){return e}function l(e,t){var n=t;return t===y||M(e)?n=y:t===x||R(e)?n=x:F(e)&&(n=b),n}function u(e,t,n,i){return e!==y||t!==k&&t!==S&&t!==C||i("E2002"),t===S?S:n||t===w||e===y?w:t===C?C:k}function c(e,t,n,i){var o=e?A(e):s,a=t===S?r:s,l=t!==w?function(e){return isFinite(e)||void 0===e?e:null}:s,u=n?function(e){return null===e?void 0:e}:s;return function(e,t){var n=u(function(e){return a(e,t,i)}(l(o(e))));return void 0===n&&function(e,t,n){e&&n(F(e)||R(e)||M(e)?"E2004":"E2003",[t])}(e,t,i),n}}function d(e,t){var n,i,o,a=t.length,r=D({},e);for(n=0;n<a;++n)o=e[i=t[n][0]],r[i]=t[n][1](o,i);return r}function h(e,t,n,o){var a,r=(o=o||{}).mode,s={};r&&"none"!==r&&(s[t]=String(o.groupName||"others"),s[n]=0,function(e,t,n,i){i>=0&&e.slice(i).forEach(function(e){O(e[n])&&(t[n]+=e[n],e[n]=void 0)})}(a=i(e.slice(),!1,function(e){return e[n]}),s,n,"smallValueThreshold"===r?function(e,t,n){var i,o,a=e.length;for(i=0;i<a&&(o=e[i][t],!(O(o)&&n>o));++i);return i}(a,n,o.threshold):o.topCount),s[n]&&e.push(s))}function p(e,t){var n=e-t;return isNaN(n)?O(e)?O(t)?0:-1:1:n}function f(e,t){return e.slice().sort(function(e,n){return p(e[t],n[t])})}function g(e){var t={};return e.forEach(function(e,n){t[e]=n}),function(e,n){return i(e.slice(),!0,function(e){return t[e[n]]})}}function _(e,t,n,i){var o,a={},r=t.argumentAxisType===w,s=r&&t.argumentOptions&&t.argumentOptions.categories,l=function(e){return e},u=n.sortingMethod;return!s&&P(u)&&(e=function(e,t){return e.slice().sort(t)}(e,u)),r&&(t.categories=function(e,t,n){var i=n?n.slice():[];return t.forEach(function(t){e.forEach(function(e){var n=e[t];O(n)&&function(e,t){return-1===e.map(function(e){return e.valueOf()}).indexOf(t.valueOf())}(i,n)&&i.push(n)})}),i}(e,i,s)),s||!P(u)&&t.argumentType===y&&!n._skipArgumentSorting?l=g(t.categories):!0===u&&t.argumentType!==y&&(l=f,o=r),i.forEach(function(t){a[t]=l(e,t)}),o&&(t.categories=t.categories.sort(p)),a}function m(e,t,n){var i,o=[],a=[],r=t.argumentOptions&&E(t.argumentOptions.argumentType);t.groups.forEach(function(e){if(e.series.length){var n=e.valueOptions&&E(e.valueOptions.valueType);e.valueType=n,t.argumentType=r,!n&&o.push(e),!r&&a.push(e)}}),(o.length||a.length)&&(i=o.map(function(e,t){return t}),e.some(function(e){var r;if(o.forEach(function(t,n){(function(e,t){return e.series.forEach(function(n){n.getValueFields().forEach(function(n){e.valueType=l(t[n],e.valueType)})}),e.valueType})(t,e)&&i.indexOf(n)>=0&&i.splice(n,1)}),r||a.forEach(function(n){r=function(e,t,n){return e.forEach(function(e){n.argumentType=l(t[e.getArgumentField()],n.argumentType)}),n.argumentType}(n.series,e,t)}),!n&&r&&0===i.length)return!0}))}var v=n(1),y="string",b="numeric",x="datetime",w="discrete",C="semidiscrete",k="continuous",S="logarithmic",I="valueType",T="argumentType",D=n(0).extend,E=n(11).enumParser([y,b,x]),A=n(264).getParser,O=v.isDefined,P=v.isFunction,B=Array.isArray,M=v.isString,R=v.isDate,F=v.isNumeric,V=v.isObject;t.validateData=function(e,t,n,i){return e=function(e,t){var n,i,o,a,r=[],s=O(e),l=s&&!B(e);if(s&&!l)for(n=0,i=e.length,o=0;n<i;++n)a=e[n],V(a)?r[o++]=a:a&&(l=!0);return l&&t("E2001"),r}(e,n),t.argumentType=t.argumentAxisType=null,function(e){e.forEach(function(e){e.valueType=e.valueAxisType=null,e.series.forEach(function(e){e.updateDataType({})}),e.valueAxis&&e.valueAxis.resetTypes(I)})}(t.groups),function(e){e&&e.forEach(function(e){e.resetTypes(T)})}(t.argumentAxes),m(e,t,i.checkTypeForAllData),function(e,t){var n=e.argumentOptions||{},i=n&&n.categories||[],o=u(e.argumentType,n.type,!!i.length,t);e.groups.forEach(function(n){var i=n.valueOptions||{},a=i.categories||[],r=u(n.valueType,i.type,!!a.length,t);n.series.forEach(function(t){var a={};a.argumentAxisType=o,a.valueAxisType=r,e.argumentAxisType=e.argumentAxisType||a.argumentAxisType,n.valueAxisType=n.valueAxisType||a.valueAxisType,a.argumentType=e.argumentType,a.valueType=n.valueType,a.showZero=i.showZero,t.updateDataType(a)}),n.valueAxisType=n.valueAxisType||r,n.valueAxis&&(n.valueAxis.setTypes(n.valueAxisType,n.valueType,I),n.valueAxis.validate())}),e.argumentAxisType=e.argumentAxisType||o,e.argumentAxes&&e.argumentAxes.forEach(function(t){t.setTypes(e.argumentAxisType,e.argumentType,T),t.validate()})}(t,n),i.convertToAxisDataType&&(e=function(e,t){var n,i=[],o=e.length;for(i.length=o,n=0;n<o;++n)i[n]=d(e[n],t);return i}(e,function(e,t){var n,i,o,r=c(e.argumentType,e.argumentAxisType,!1,t),s=[r],l={},u=[];for(var d in e.groups.forEach(function(e,a){e.series.forEach(function(u){o=u.getOptions().ignoreEmptyPoints,i=c(e.valueType,e.valueAxisType,o,t),n=c(b,k,o,t),l[u.getArgumentField()]=r,u.getValueFields().forEach(function(e){s[a+1]=i,l[e]=i}),u.getSizeField()&&(l[u.getSizeField()]=n)})}),l)u.push([d,l[d]]);return u.length&&a(e,s),u}(t,n))),function(e,t){var n=t.groups[0]&&t.groups[0].series[0];n&&("pie"===n.type||"doughnut"===n.type||"donut"===n.type)&&t.groups.forEach(function(t){t.series.forEach(function(t){h(e,t.getArgumentField(),t.getValueFields()[0],t.getOptions().smallValuesGrouping)})})}(e,t),_(e,t,i,function(e){var t=[],n={};return e.groups.forEach(function(e){e.series.forEach(function(e){!function(e,t,n){n[e]||(t.push(e),n[e]=!0)}(e.getArgumentField(),t,n)})}),t}(t))}},function(e,t,n){function i(e){return"numeric"===e||"datetime"===e||"string"===e?e:""}var o=n(4).noop,a=n(56),r=n(1).isDefined,s={string:function(e){return r(e)?""+e:e},numeric:function(e){if(!r(e))return e;var t=Number(e);return isNaN(t)&&(t=void 0),t},datetime:function(e){if(!r(e))return e;var t,n=Number(e);return t=isNaN(n)?a.deserializeDate(e):new Date(n),isNaN(Number(t))&&(t=void 0),t}};e.exports={correctValueType:i,getParser:function(e){return s[i(e)]||o}}},function(e,t,n){function i(e,t,n){e&&e.trigger(t,n)}function o(e){return(e=_(e))===H||e===G}function a(e,t){var n=c({},e,t);return n.border=c({},e&&e.border,t&&t.border),n}function r(e,t){var n=this;n.fullState=0,n._extGroups=e,n._renderer=e.renderer,n._group=e.renderer.g().attr({class:"dxc-series"}),n._eventTrigger=e.eventTrigger,n._eventPipe=e.eventPipe,n._incidentOccurred=e.incidentOccurred,n._legendCallback=m,n.updateOptions(t,e)}function s(e){return e.data}var l={},u=n(1),c=n(0).extend,d=n(3).each,h=n(760),p=u.isDefined,f=n(11),g=u.isEmptyObject,_=f.normalizeEnum,m=n(4).noop,v=n(119).states,y=n(267),b=n(107),x=n(205),w=n(169),C=n(144),k=n(765),S=n(766),I=n(767),T=n(768),D=n(769),E="discrete",A=v.selectedMark,O=v.hoverMark,P=v.hover,B=v.normal,M=v.selection,R=v.applySelected,F=v.applyHover,V=v.resetItem,L="none",H="includepoints",z="seriesSelectionChanged",N="pointSelectionChanged",$="seriesHoverChanged",W="pointHoverChanged",G="allseriespoints",j="allargumentpoints",q="pointHover",K="clearPointHover",U="seriesSelect",Y="pointSelect",X="pointDeselect";l.mixins={chart:{},pie:{},polar:{}},l.mixins.chart.scatter=b.chart,l.mixins.polar.scatter=b.polar,c(l.mixins.pie,I),c(l.mixins.chart,x.chart,w.chart,C.chart,k.chart,S.chart,T,D.chart),c(l.mixins.polar,x.polar,w.polar,C.polar,k.polar,S.polar,D.polar),t.Series=r,t.mixins=l.mixins,r.prototype={constructor:r,_createLegendState:m,getLegendStyles:function(){return this._styles.legendStyles},_createStyles:function(e){var t=this,n=e.mainSeriesColor;t._styles={normal:t._parseStyle(e,n,n),hover:t._parseStyle(e.hoverStyle||{},n,n),selection:t._parseStyle(e.selectionStyle||{},n,n),legendStyles:{normal:t._createLegendState(e,n),hover:t._createLegendState(e.hoverStyle||{},n),selection:t._createLegendState(e.selectionStyle||{},n)}}},setClippingParams:function(e,t,n){this._paneClipRectID=e,this._widePaneClipRectID=t,this._forceClipping=n},applyClip:function(){this._group.attr({"clip-path":this._paneClipRectID})},resetClip:function(){this._group.attr({"clip-path":null})},getTagField:function(){return this._options.tagField||"tag"},getValueFields:m,getSizeField:m,getArgumentField:m,getPoints:function(){return this._points},getPointsInViewPort:function(){return y.getPointsInViewPort(this)},_createPoint:function(e,t,n){e.index=t;var i,a=this,r=a.pointsByArgument,s=a._getCreatingPointOptions(e),l=e.argument.valueOf(),u=n;return u?u.update(e,s):(u=new h.Point(a,e,s),a.isSelected()&&o(a.lastSelectionMode)&&u.setView(M)),(i=r[l])?i.push(u):r[l]=[u],u.hasValue()&&a.customizePoint(u,e),u},getRangeData:function(){return this._visible?this._getRangeData():{arg:{},val:{}}},getArgumentRange:function(){return this._visible?y.getArgumentRange(this):{arg:{},val:{}}},getViewport:function(){return y.getViewport(this)},_deleteGroup:function(e){var t=this[e];t&&(t.dispose(),this[e]=null)},updateOptions:function(e,t){var n=this,i=e.widgetType,o=n.type,a=e.type;return n.type=a&&_(a.toString()),!n._checkType(i)||n._checkPolarBarType(i,e)?(n.dispose(),void(n.isUpdated=!1)):(o!==n.type?(n._firstDrawing=!0,n._resetType(o,i),n._setType(n.type,i)):n._defineDrawingState(),n._options=e,n._pointOptions=null,n.name=e.name,n.pane=e.pane,n.tag=e.tag,t&&(n._seriesModes=t.commonSeriesModes||n._seriesModes,n._valueAxis=t.valueAxis||n._valueAxis,n.axis=n._valueAxis&&n._valueAxis.name,n._argumentAxis=t.argumentAxis||n._argumentAxis),n._createStyles(e),n._stackName=null,n._updateOptions(e),n._visible=e.visible,n.isUpdated=!0,n.stack=e.stack,n.barOverlapGroup=e.barOverlapGroup,void n._createGroups())},_defineDrawingState:function(){this._firstDrawing=!0},_disposePoints:function(e){d(e||[],function(e,t){t.dispose()})},getErrorBarRangeCorrector:m,updateDataType:function(e){var t=this;return t.argumentType=e.argumentType,t.valueType=e.valueType,t.argumentAxisType=e.argumentAxisType,t.valueAxisType=e.valueAxisType,t.showZero=e.showZero,t},getOptions:function(){return this._options},_getOldPoint:function(e,t,n){var i=e.argument&&e.argument.valueOf(),o=(t[i]||[])[0];return o&&t[i].splice(0,1),o},updateData:function(e){var t=this,n=t._options,i=n.nameField;(e=e||[]).length&&(t._canRenderCompleteHandle=!0);var o=this._getPointDataSelector(),a=0;t._data=e.reduce(function(e,t,r){var s=o(t);return p(s.argument)?i&&t[i]!==n.nameFieldValue||(s.index=r,e.push(s)):a++,e},[]),a&&a===e.length&&t._incidentOccurred("W2002",[t.name,t.getArgumentField()]),t._endUpdateData()},_getData:function(){var e=this._data||[];return this.useAggregation()&&(e=this._resample(this.getArgumentAxis().getAggregationInfo(this._useAllAggregatedPoints,this.argumentAxisType!==E?this.getArgumentRange():{}),e)),e},useAggregation:function(){var e=this.getOptions().aggregation;return e&&e.enabled},autoHidePointMarkersEnabled:m,usePointsToDefineAutoHiding:m,createPoints:function(e){this._normalizeUsingAllAggregatedPoints(e),this._createPoints()},_normalizeUsingAllAggregatedPoints:function(e){this._useAllAggregatedPoints=this.useAggregation()&&(this.argumentAxisType===E||(this._data||[]).length>1&&!!e)},_createPoints:function(){var e,t=this,n=t.pointsByArgument||{},i=t._getData();t.pointsByArgument={},t._calculateErrorBars(i);var o={};for(var a in e=i.reduce(function(e,i){if(t._checkData(i,o)){var a=e.length,r=t._getOldPoint(i,n,a),s=t._createPoint(i,a,r);e.push(s)}return e},[]),o)o[a]===i.length&&t._incidentOccurred("W2002",[t.name,a]);Object.keys(n).forEach(function(e){return t._disposePoints(n[e])}),t._points=e},_removeOldSegments:function(){var e=this,t=e._segments.length;d(e._graphics.splice(t,e._graphics.length)||[],function(t,n){e._removeElement(n)}),e._trackers&&d(e._trackers.splice(t,e._trackers.length)||[],function(e,t){t.remove()})},_drawElements:function(e,t,n){var i,o=this,a=o._points||[],r=a[0]&&a[0].hasValue()&&o._options.closed,s={markers:o._markersGroup,errorBars:o._errorBarGroup};o._drawnPoints=[],o._graphics=o._graphics||[],o._segments=[],(i=a.reduce(function(i,a){var r=i[i.length-1];return a.translated&&!n||(a.translate(),!n&&a.setDefaultCoords()),a.hasValue()&&a.hasCoords()?(n&&o._drawPoint({point:a,groups:s,hasAnimation:e,firstDrawing:t}),r.push(a)):a.hasValue()?a.setInvisibility():r.length&&i.push([]),i},[[]])).forEach(function(t,n){t.length&&o._drawSegment(t,e,n,r&&n===this.length-1)},i),o._firstDrawing=!a.length,o._removeOldSegments(),e&&o._animate(t)},draw:function(e,t,n){var i=this,o=i._firstDrawing;return i._legendCallback=n||i._legendCallback,i._visible?(i._appendInGroup(),i._applyVisibleArea(),i._setGroupsSettings(e,o),!o&&i._drawElements(!1,o,!1),i._drawElements(e,o,!0),t&&i.hideLabels(),void(i.isSelected()?i._changeStyle(i.lastSelectionMode,void 0,!0):i.isHovered()&&i._changeStyle(i.lastHoverMode,void 0,!0))):(e=!1,void i._group.remove())},_setLabelGroupSettings:function(e){var t={class:"dxc-labels"};this._applyElementsClipRect(t),this._applyClearingSettings(t),e&&(t.opacity=.001),this._labelsGroup.attr(t).append(this._extGroups.labelsGroup)},_checkType:function(e){return!!l.mixins[e][this.type]},_checkPolarBarType:function(e,t){return"polar"===e&&t.spiderWidget&&-1!==this.type.indexOf("bar")},_resetType:function(e,t){var n;if(e)for(n in l.mixins[t][e])delete this[n]},_setType:function(e,t){var n,i=l.mixins[t][e];for(n in i)this[n]=i[n]},_setPointsView:function(e,t){this.getPoints().forEach(function(n){t!==n&&n.setView(e)})},_resetPointsView:function(e,t){this.getPoints().forEach(function(n){t!==n&&n.resetView(e)})},_resetNearestPoint:function(){var e=this;e._nearestPoint&&null!==e._nearestPoint.series&&e._nearestPoint.resetView(P),e._nearestPoint=null},_setSelectedState:function(e){var t=this;t.lastSelectionMode=_(e||t._options.selectionMode),t.fullState=t.fullState|A,t._resetNearestPoint(),t._changeStyle(t.lastSelectionMode),t.lastSelectionMode!==L&&t.isHovered()&&o(t.lastHoverMode)&&t._resetPointsView(P)},_releaseSelectedState:function(){var e=this;e.fullState=e.fullState&~A,e._changeStyle(e.lastSelectionMode,M),e.lastSelectionMode!==L&&e.isHovered()&&o(e.lastHoverMode)&&e._setPointsView(P)},isFullStackedSeries:function(){return 0===this.type.indexOf("fullstacked")},isStackedSeries:function(){return 0===this.type.indexOf("stacked")},isFinancialSeries:function(){return"stock"===this.type||"candlestick"===this.type},_canChangeView:function(){return!this.isSelected()&&_(this._options.hoverMode)!==L},_changeStyle:function(e,t,n){var i=this,a=i.fullState,r=[B,P,M,M];"none"===i.lastHoverMode&&(a&=~O),"none"===i.lastSelectionMode&&(a&=~A),o(e)&&!n&&(t?i._resetPointsView(t):i._setPointsView(r[a])),i._legendCallback([V,F,R,R][a]),i._applyStyle(i._styles[r[a]])},updateHover:function(e,t){var n=this,i=n._nearestPoint,o=n.isHovered()&&"nearestpoint"===n.lastHoverMode&&n.getNeighborPoint(e,t);o===i||n.isSelected()&&n.lastSelectionMode!==L||(n._resetNearestPoint(),o&&(o.setView(P),n._nearestPoint=o))},_getMainAxisName:function(){return this._options.rotated?"X":"Y"},areLabelsVisible:function(){return!p(this._options.maxLabelCount)||this._points.length<=this._options.maxLabelCount},getLabelVisibility:function(){return this.areLabelsVisible()&&this._options.label&&this._options.label.visible},customizePoint:function(e,t){var n,i,o,a,r,s,l=this,u=l._options,d=u.customizePoint,h=u.customizeLabel;h&&h.call&&((n=c({seriesName:l.name},t)).series=l,o=(r=(o=h.call(n,n))&&!g(o))?c(!0,{},u.label,o):null),d&&d.call&&((n=n||c({seriesName:l.name},t)).series=l,s=(a=d.call(n,n))&&!g(a)),(r||s)&&((i=l._parsePointOptions(l._preparePointOptions(a),o||u.label,t,e)).styles.useLabelCustomOptions=r,i.styles.usePointCustomOptions=s,e.updateOptions(i))},show:function(){this._visible||this._changeVisibility(!0)},hide:function(){this._visible&&this._changeVisibility(!1)},_changeVisibility:function(e){var t=this;t._visible=t._options.visible=e,t._updatePointsVisibility(),t.hidePointTooltip(),t._options.visibilityChanged(t)},_updatePointsVisibility:m,hideLabels:function(){d(this._points,function(e,t){t._label.draw(!1)})},_parsePointOptions:function(e,t,n,i){var o=this,a=o._options,r=o._createPointStyles(e,n,i),s=c({},e,{type:a.type,rotated:a.rotated,styles:r,widgetType:a.widgetType,visibilityChanged:a.visibilityChanged});return s.label=function(e,t){var n=e||{},i=c({},n.font)||{},o=n.border||{},a=n.connector||{},r={fill:n.backgroundColor||t,"stroke-width":o.visible&&o.width||0,stroke:o.visible&&o.width?o.color:"none",dashStyle:o.dashStyle},s={stroke:a.visible&&a.width?a.color||t:"none","stroke-width":a.visible&&a.width||0};return i.color="none"===n.backgroundColor&&"#ffffff"===_(i.color)&&"inside"!==n.position?t:i.color,{alignment:n.alignment,format:n.format,argumentFormat:n.argumentFormat,customizeText:u.isFunction(n.customizeText)?n.customizeText:void 0,attributes:{font:i},visible:0!==i.size&&n.visible,showForZeroValues:n.showForZeroValues,horizontalOffset:n.horizontalOffset,verticalOffset:n.verticalOffset,radialOffset:n.radialOffset,background:r,position:n.position,connector:s,rotationAngle:n.rotationAngle,wordWrap:n.wordWrap,textOverflow:n.textOverflow}}(t,r.normal.fill),o.areErrorBarsVisible()&&(s.errorBars=a.valueErrorBar),s},_preparePointOptions:function(e){var t=this._getOptionsForPoint();return e?function(e,t){var n=a(e,t);return n.image=c(!0,{},e.image,t.image),n.selectionStyle=a(e.selectionStyle,t.selectionStyle),n.hoverStyle=a(e.hoverStyle,t.hoverStyle),n}(t,e):t},_getMarkerGroupOptions:function(){return c(!1,{},this._getOptionsForPoint(),{hoverStyle:{},selectionStyle:{}})},_getAggregationMethod:function(e){var t,n=this.getOptions().aggregation,i=_(n.method),o="custom"===i&&n.calculate;return t=e?function(e){return e.data[0]}:this._aggregators[i]||this._aggregators[this._defaultAggregator],o||t},_resample:function(e,t){var n=e.interval,i=e.ticks,o=this,a=o.argumentAxisType===E||o.valueAxisType===E,r=0,l=this._getPointDataSelector(),u=o.getOptions(),c=function(e,t,n){if(t){var i=function(t){var i=t&&l(t,u);i&&o._checkData(i)&&(i.aggregationInfo=n,e.push(i))};t.length?t.forEach(i):i(t)}},d=this._getAggregationMethod(a);if(a)return t.reduce(function(e,t,i,a){if(e[1].push(t),i===a.length-1||(i+1)%n==0){var r=e[1],l={aggregationInterval:n,data:r.map(s)};c(e[0],d(l,o)),e[1]=[]}return e},[[],[]])[0];for(var h=[],p=1;p<i.length;p++){for(var f=i[p],g=i[p-1],_=[];t[r]&&t[r].argument<f;)t[r].argument>=g&&_.push(t[r]),r++;var m={intervalStart:g,intervalEnd:f,aggregationInterval:n,data:_.map(s)};c(h,d(m,o),m)}return o._endUpdateData(),h},canRenderCompleteHandle:function(){var e=this._canRenderCompleteHandle;return delete this._canRenderCompleteHandle,!!e},isHovered:function(){return!!(1&this.fullState)},isSelected:function(){return!!(2&this.fullState)},isVisible:function(){return this._visible},getAllPoints:function(){return this._createAllAggregatedPoints(),(this._points||[]).slice()},getPointByPos:function(e){return this._createAllAggregatedPoints(),(this._points||[])[e]},getVisiblePoints:function(){return(this._drawnPoints||[]).slice()},selectPoint:function(e){e.isSelected()||(function(e,t){e.fullState|=A,e.applyView(t)}(e,this._legendCallback),this._eventPipe({action:Y,target:e}),this._eventTrigger(N,{target:e}))},deselectPoint:function(e){e.isSelected()&&(function(e,t){e.fullState&=~A,e.applyView(t)}(e,this._legendCallback),this._eventPipe({action:X,target:e}),this._eventTrigger(N,{target:e}))},hover:function(e){var t=this,n=t._eventTrigger;t.isHovered()||(t.lastHoverMode=_(e||t._options.hoverMode),t.fullState=t.fullState|O,t._changeStyle(t.lastHoverMode,void 0,t.isSelected()&&t.lastSelectionMode!==L),n($,{target:t}))},clearHover:function(){var e=this,t=e._eventTrigger;e.isHovered()&&(e._resetNearestPoint(),e.fullState=e.fullState&~O,e._changeStyle(e.lastHoverMode,P,e.isSelected()&&e.lastSelectionMode!==L),t($,{target:e}))},hoverPoint:function(e){var t=this;e.isHovered()||(e.clearHover(),function(e,t){e.fullState|=O,e.applyView(t)}(e,t._legendCallback),t._canChangeView()&&t._applyStyle(t._styles.hover),t._eventPipe({action:q,target:e}),t._eventTrigger(W,{target:e}))},clearPointHover:function(){var e=this;e.getPoints().some(function(t){return!!t.isHovered()&&(function(e,t){e.fullState&=~O,e.applyView(t),e.releaseHoverState()}(t,e._legendCallback),e._canChangeView()&&e._applyStyle(e._styles.normal),e._eventPipe({action:K,target:t}),e._eventTrigger(W,{target:t}),!0)})},showPointTooltip:function(e){i(this._extGroups.seriesGroup,"showpointtooltip",e)},hidePointTooltip:function(e){i(this._extGroups.seriesGroup,"hidepointtooltip",e)},select:function(){var e=this;e.isSelected()||(e._setSelectedState(e._options.selectionMode),e._eventPipe({action:U,target:e}),e._group.toForeground(),e._eventTrigger(z,{target:e}))},clearSelection:function(){var e=this;e.isSelected()&&(e._releaseSelectedState(),e._eventTrigger(z,{target:e}))},getPointsByArg:function(e,t){var n=this,i=e.valueOf(),o=n.pointsByArgument[i];return o||t||!n._createAllAggregatedPoints()||(o=n.pointsByArgument[i]),o||[]},_createAllAggregatedPoints:function(){return!(!this.useAggregation()||this._useAllAggregatedPoints||(this.createPoints(!0),0))},getPointsByKeys:function(e){return this.getPointsByArg(e)},notify:function(e){var t=this,n=e.action,i=t._seriesModes,o=e.target,a=o.getOptions(),r=_(a.hoverMode),s=_(a.selectionMode);n===q?t._hoverPointHandler(o,r,e.notifyLegend):n===K?t._clearPointHoverHandler(o,r,e.notifyLegend):n===U?o!==t&&"single"===i.seriesSelectionMode&&t.clearSelection():n===Y?("single"===i.pointSelectionMode&&t.getPoints().some(function(e){return!(e===o||!e.isSelected()||(t.deselectPoint(e),0))}),t._selectPointHandler(o,s)):n===X&&t._deselectPointHandler(o,s)},_selectPointHandler:function(e,t){var n=this;t===G?e.series===n&&n._setPointsView(M,e):t===j&&n.getPointsByKeys(e.argument,e.argumentIndex).forEach(function(t){t!==e&&t.setView(M)})},_deselectPointHandler:function(e,t){t===G?e.series===this&&this._resetPointsView(M,e):t===j&&this.getPointsByKeys(e.argument,e.argumentIndex).forEach(function(t){t!==e&&t.resetView(M)})},_hoverPointHandler:function(e,t,n){var i=this;e.series!==i&&t===j?(i.getPointsByKeys(e.argument,e.argumentIndex).forEach(function(e){e.setView(P)}),n&&i._legendCallback(e)):t===G&&e.series===i&&i._setPointsView(P,e)},_clearPointHoverHandler:function(e,t,n){var i=this;t===j?(e.series!==i&&i.getPointsByKeys(e.argument,e.argumentIndex).forEach(function(e){e.resetView(P)}),n&&i._legendCallback(e)):t===G&&e.series===i&&i._resetPointsView(P,e)},_deletePoints:function(){var e=this;e._disposePoints(e._points),e._points=e._drawnPoints=null},_deleteTrackers:function(){var e=this;d(e._trackers||[],function(e,t){t.remove()}),e._trackersGroup&&e._trackersGroup.dispose(),e._trackers=e._trackersGroup=null},dispose:function(){var e=this;e._deletePoints(),e._group.dispose(),e._labelsGroup&&e._labelsGroup.dispose(),e._errorBarGroup&&e._errorBarGroup.dispose(),e._deleteTrackers(),e._group=e._extGroups=e._markersGroup=e._elementsGroup=e._bordersGroup=e._labelsGroup=e._errorBarGroup=e._graphics=e._rangeData=e._renderer=e._styles=e._options=e._pointOptions=e._drawnPoints=e.pointsByArgument=e._segments=e._prevSeries=null},correctPosition:m,drawTrackers:m,getNeighborPoint:m,areErrorBarsVisible:m,getMarginOptions:function(){return this._patchMarginOptions({percentStick:this.isFullStackedSeries()})},getColor:function(){return this.getLegendStyles().normal.fill},getOpacity:function(){return this._options.opacity},getStackName:function(){return this._stackName},getBarOverlapGroup:function(){return this._options.barOverlapGroup},getPointByCoord:function(e,t){var n=this.getNeighborPoint(e,t);return n&&n.coordsIn(e,t)?n:null},getValueAxis:function(){return this._valueAxis},getArgumentAxis:function(){return this._argumentAxis},getMarkersGroup:function(){return this._markersGroup},getRenderer:function(){return this._renderer}}},function(e,t,n){function i(e,t){var n,i=1/0;return(0,h.each)(t,function(t,o){var a=e[0]-o[0],r=e[1]-o[1],s=a*a+r*r;s<i&&(i=s,n=o)}),[_(n[0]),_(n[1])]}function o(e,t,n){return(t-e[0+n])/(e[2+n]-e[0+n])*(e[3-n]-e[1-n])+e[1-n]}function a(e){return void 0!==e.angle&&b||void 0!==e.r&&y||v}function r(e,t){e[t]&&e[t].dispose(),e[t]=null}function s(e){return e&&(e.fill&&"none"!==e.fill||e["stroke-width"]>0&&e.stroke&&"none"!==e.stroke)}function l(e){return e&&e["stroke-width"]>0&&e.stroke&&"none"!==e.stroke}function u(e){this._renderer=e.renderer,this._container=e.labelsGroup,this._point=e.point,this._strategy=e.strategy,this._rowCount=1}var c=n(63),d=n(11),h=n(3),p=n(0),f=Math,g=f.round,_=f.floor,m=f.abs,v={isLabelInside:function(e,t){var n=e.x+e.width/2,i=e.y+e.height/2;return t.x<=n&&n<=t.x+t.width&&t.y<=i&&i<=t.y+t.height},prepareLabelPoints:function(e,t,n,i,a){var r=t.x,s=r+t.width/2,l=r+t.width-1,u=t.y,c=u+t.height/2,d=u+t.height-1,h=m(i)%90==0;return a[0]>r&&a[0]<l?h?[[a[0],m(a[1]-u)<m(a[1]-d)?u:d]]:[[a[0],o([r,u,l,d],a[0],0)]]:a[1]>u&&a[1]<d?h?[[m(a[0]-r)<m(a[0]-l)?r:l,a[1]]]:[[o([r,u,l,d],a[1],1),a[1]]]:h?[[r,u],[n?r:s,n?c:u],[l,u],[r,d],[n?l:s,n?c:d],[l,d]]:[[s,c]]},isHorizontal:function(e,t){return e.x>t.x+t.width||e.x+e.width<t.x},getFigureCenter:function(e){return[_(e.x+e.width/2),_(e.y+e.height/2)]},findFigurePoint:function(e,t){var n=v.getFigureCenter(e);return i(t,[[e.x,n[1]],[n[0],e.y+e.height],[e.x+e.width,n[1]],[n[0],e.y]])},adjustPoints:function(e){var t=m(e[1]-e[3])<=1;return m(e[0]-e[2])<=1&&(e[0]=e[2]),t&&(e[1]=e[3]),e}},y={isLabelInside:function(){return!1},prepareLabelPoints:v.prepareLabelPoints,isHorizontal:function(e,t){return e.x>t.x+t.r||e.x+e.width<t.x-t.r},getFigureCenter:function(e){return[e.x,e.y]},findFigurePoint:function(e,t){var n=Math.atan2(e.y-t[1],t[0]-e.x);return[g(e.x+e.r*Math.cos(n)),g(e.y-e.r*Math.sin(n))]},adjustPoints:v.adjustPoints},b={isLabelInside:function(e,t,n){return!n},prepareLabelPoints:function(e,t,n,i){var o=e.x,a=o+e.width,r=o+g(e.width/2),s=e.y,l=s+e.height,u=s+g(e.height/2),c=[[[o,s],[a,s]],[[a,s],[a,l]],[[a,l],[o,l]],[[o,l],[o,s]]],h=(0,d.getCosAndSin)(i);return 0===i?n?[[o,u],[a,u]]:[[r,s],[r,l]]:c.map(function(e){return e.map(function(e){return[g((e[0]-r)*h.cos+(e[1]-u)*h.sin+r),g(-(e[0]-r)*h.sin+(e[1]-u)*h.cos+u)]})}).reduce(function(e,t){var i=t[0][0],o=t[0][1],a=t[1][0],s=t[1][1];return n?(o>=u&&u>=s||o<=u&&u<=s)&&e.push([(u-o)*(a-i)/(s-o)+i,u]):(i>=r&&r>=a||i<=r&&r<=a)&&e.push([r,(r-i)*(s-o)/(a-i)+o]),e},[])},isHorizontal:function(e,t){return e.x>t.x||t.x>e.x+e.width},getFigureCenter:y.getFigureCenter,findFigurePoint:function(e,t,n){if(!n)return[e.x,e.y];var i=t[0],o=g(e.x+(e.y-t[1])/Math.tan((0,d.degreesToRadians)(e.angle))),a=[e.x,e.y,o,t[1]];return e.x<=o&&o<=i||i<=o&&o<=e.x||(m(e.x-i)<12?a=[e.x,e.y]:e.x<=i?a[2]=e.x+12:a[2]=e.x-12),a},adjustPoints:function(e){return e}};u.prototype={constructor:u,setColor:function(e){this._color=e},setOptions:function(e){this._options=e},setData:function(e){this._data=e},setDataField:function(e,t){this._data=this._data||{},this._data[e]=t},getData:function(){return this._data},setFigureToDrawConnector:function(e){this._figure=e},dispose:function(){var e=this;r(e,"_group"),e._data=e._options=e._textContent=e._visible=e._insideGroup=e._text=e._background=e._connector=e._figure=null},_setVisibility:function(e,t){this._group&&this._group.attr({visibility:e}),this._visible=t},isVisible:function(){return this._visible},hide:function(e){this._holdVisibility=!!e,this._hide()},_hide:function(){this._setVisibility("hidden",!1)},show:function(e){var t=!this._drawn;this._point.hasValue()&&(this._holdVisibility=!!e,this._show(),t&&this._point.correctLabelPosition(this))},_show:function(){var e=this,t=e._renderer,n=e._container,i=e._options||{},o=e._textContent=function(e,t){var n=t.format;return e.valueText=(0,c.format)(e.value,n),e.argumentText=(0,c.format)(e.argument,t.argumentFormat),void 0!==e.percent&&(e.percentText=(0,c.format)(e.percent,{type:"percent",precision:n&&n.percentPrecision})),void 0!==e.total&&(e.totalText=(0,c.format)(e.total,n)),void 0!==e.openValue&&(e.openValueText=(0,c.format)(e.openValue,n)),void 0!==e.closeValue&&(e.closeValueText=(0,c.format)(e.closeValue,n)),void 0!==e.lowValue&&(e.lowValueText=(0,c.format)(e.lowValue,n)),void 0!==e.highValue&&(e.highValueText=(0,c.format)(e.highValue,n)),void 0!==e.reductionValue&&(e.reductionValueText=(0,c.format)(e.reductionValue,n)),t.customizeText?t.customizeText.call(e,e):e.valueText}(e._data,e._options)||null;o?(e._group||(e._group=t.g().append(n),e._insideGroup=t.g().append(e._group),e._text=t.text("",0,0).append(e._insideGroup)),e._text.css(i.attributes?(0,d.patchFontOptions)(i.attributes.font):{}),s(i.background)?(e._background=e._background||t.rect().append(e._insideGroup).toBackground(),e._background.attr(i.background),e._color&&e._background.attr({fill:e._color})):r(e,"_background"),l(i.connector)?(e._connector=e._connector||t.path([],"line").sharp().append(e._group).toBackground(),e._connector.attr(i.connector),e._color&&e._connector.attr({stroke:e._color})):r(e,"_connector"),e._text.attr({text:o,align:i.textAlignment}),e._updateBackground(e._text.getBBox()),e._setVisibility("visible",!0),e._drawn=!0):e._hide()},_getLabelVisibility:function(e){return this._holdVisibility?this.isVisible():e},draw:function(e){return this._getLabelVisibility(e)?(this._show(),this._point&&this._point.correctLabelPosition(this)):(this._drawn=!1,this._hide()),this},_updateBackground:function(e){var t=this;t._background&&(e.x-=8,e.y-=4,e.width+=16,e.height+=8,t._background.attr(e)),t._bBoxWithoutRotation=(0,p.extend)({},e);var n=t._options.rotationAngle||0;t._insideGroup.rotate(n,e.x+e.width/2,e.y+e.height/2),e=(0,d.rotateBBox)(e,[e.x+e.width/2,e.y+e.height/2],-n),t._bBox=e},getFigureCenter:function(){var e=this._figure;return(this._strategy||a(e)).getFigureCenter(e)},_getConnectorPoints:function(){var e,t,n=this,o=n._figure,r=n._options,s=n._strategy||a(o),l=n._shiftBBox(n._bBoxWithoutRotation),u=n.getBoundingRect(),c=[];if(!s.isLabelInside(l,o,"inside"!==r.position)){t=s.isHorizontal(l,o);var d=n.getFigureCenter();e=i(d,c=s.prepareLabelPoints(l,u,t,-r.rotationAngle||0,d)),c=(c=s.findFigurePoint(o,e,t)).concat(e)}return s.adjustPoints(c)},fit:function(e){var t=this._background?16:0,n=!1;if(this._text){var i=this._text.setMaxSize(e-t,void 0,this._options),o=i.rowCount,a=i.textIsEmpty;0===o&&(o=1),o!==this._rowCount&&(n=!0,this._rowCount=o),a&&r(this,"_background")}return this._updateBackground(this._text.getBBox()),n},resetEllipsis:function(){this._text&&this._text.restoreText(),this._updateBackground(this._text.getBBox())},setTrackerData:function(e){this._text.data({"chart-data-point":e}),this._background&&this._background.data({"chart-data-point":e})},hideInsideLabel:function(e){return this._point.hideInsideLabel(this,e)},getPoint:function(){return this._point},shift:function(e,t){var n=this;return n._textContent&&(n._insideGroup.attr({translateX:n._x=g(e-n._bBox.x),translateY:n._y=g(t-n._bBox.y)}),n._connector&&n._connector.attr({points:n._getConnectorPoints()})),n},getBoundingRect:function(){return this._shiftBBox(this._bBox)},_shiftBBox:function(e){return this._textContent?{x:e.x+this._x,y:e.y+this._y,width:e.width,height:e.height}:{}},getLayoutOptions:function(){var e=this._options;return{alignment:e.alignment,background:s(e.background),horizontalOffset:e.horizontalOffset,verticalOffset:e.verticalOffset,radialOffset:e.radialOffset,position:e.position,connectorOffset:(l(e.connector)?12:0)+(s(e.background)?8:0)}}},t.Label=u},function(e,t,n){function i(e,t,n){e.min=e.min<t?e.min:t,e.max=e.max>n?e.max:n}function o(e,t){return e===g?function(e,t,n){t!==n&&e.categories.push(n),e.categories.push(t)}:t?function(e,n){var o=t.calculateInterval(n,e.prevValue),a=e.interval;e.interval=(a<o?a:o)||a,e.prevValue=n,i(e,n,n)}:i}function a(e,t,n){var i={axisType:e,dataType:t};return e===g?i.categories=[]:(i.min=n,i.max=n),i}function r(e){e.categories&&(e.categories=d(e.categories))}function s(e,t,n,i,o){var a=function(e,t,n){if(t&&p(t.value)){var i=e.value,o=t.value,a=e.argument;return(n-a)*(o-i)/(t.argument-a)+i}return e.value}(n,i,o);e(t,a,a)}function l(e){return e.type.toLowerCase().indexOf("line")>=0||e.type.toLowerCase().indexOf("area")>=0}function u(t){var n,i=o(t.valueAxisType),a=t.getArgumentAxis(),r=a&&t.getArgumentAxis().visualRange()||{},u=l(t)?s:f;if(a&&a.getMarginOptions().checkInterval){var c=t.getArgumentAxis().getTranslator().getBusinessRange(),d=h(c,!1),g=c.interval;isFinite(g)&&p(r.startValue)&&p(r.endValue)&&(r.startValue=d(r.startValue,g,-1),r.endValue=d(r.endValue,g))}return n=e.exports.getViewPortFilter(r),function(e,t,o,a){var s=t.argument;return t.hasValue()?(n(s)?(e.startCalc||(e.startCalc=!0,u(i,e,t,a[o-1],r.startValue)),i(e,t.getMinValue(),t.getMaxValue())):!r.categories&&p(r.startValue)&&s>r.startValue&&(e.startCalc||u(i,e,t,a[o-1],r.startValue),e.endCalc=!0,u(i,e,t,a[o-1],r.endValue)),e):e}}var c=n(11),d=c.unique,h=c.getAddFunction,p=n(1).isDefined,f=n(4).noop,g="discrete";e.exports={getViewPortFilter:function(e){if(e.categories){var t=e.categories.reduce(function(e,t){return e[t.valueOf()]=!0,e},{});return function(e){return t[e.valueOf()]}}return p(e.startValue)||p(e.endValue)?p(e.endValue)?p(e.startValue)?function(t){return t>=e.startValue&&t<=e.endValue}:function(t){return t<=e.endValue}:function(t){return t>=e.startValue}:function(){return!0}},getArgumentRange:function(e){var t=e._data||[],n={};if(t.length)if(e.argumentAxisType===g)n={categories:t.map(function(e){return e.argument})};else{var i=void 0;if(t.length>1){var o=e.getArgumentAxis().calculateInterval(t[0].argument,t[1].argument),a=e.getArgumentAxis().calculateInterval(t[t.length-1].argument,t[t.length-2].argument);i=Math.min(o,a)}n={min:t[0].argument,max:t[t.length-1].argument,interval:i}}return n},getRangeData:function(e){var t=e.getPoints(),n=e.useAggregation(),i=o(e.argumentAxisType,t.length>1&&e.getArgumentAxis()),s=o(e.valueAxisType),l=u(e),c=t.reduce(function(e,t,n,o){var a=t.argument;return i(e.arg,a,a),t.hasValue()&&(s(e.val,t.getMinValue(),t.getMaxValue()),l(e.viewport,t,n,o)),e},{arg:a(e.argumentAxisType,e.argumentType,t.length?t[0].argument:void 0),val:a(e.valueAxisType,e.valueType,t.length?e.getValueRangeInitialValue():void 0),viewport:a(e.valueAxisType,e.valueType,t.length?e.getValueRangeInitialValue():void 0)});if(n){var d=this.getArgumentRange(e);if(e.argumentAxisType===g)c.arg=d;else{var h=e.getArgumentAxis().getViewport();(p(h.startValue)||p(h.length))&&i(c.arg,d.min,d.min),(p(h.endValue)||p(h.length)&&p(h.startValue))&&i(c.arg,d.max,d.max)}}return r(c.arg),r(c.val),c},getViewport:function(e){var t,n,i=e.getPoints();return t=u(e),n=a(e.valueAxisType,e.valueType,i.length?e.getValueRangeInitialValue():void 0),i.some(function(e,o){return t(n,e,o,i),n.endCalc}),n},getPointsInViewPort:function(e){var t=this.getViewPortFilter(e.getArgumentAxis().visualRange()||{}),n=e.getValueAxis().visualRange()||{},i=this.getViewPortFilter(n),o=e.getPoints(),a=function(e,t,o){var a=t.getMinValue(),r=t.getMaxValue(),s=i(a),l=i(r);s&&e.push(a),r!==a&&l&&e.push(r),!o||s||l||(e.length?e.push(n.endValue):e.push(n.startValue))},r=l(e)?function(e,n,i){var o=n[i],r=n[i-1],s=n[i+1];s&&t(s.argument)&&a(e[1],o,!0),r&&t(r.argument)&&a(e[1],o,!0)}:f;return o.reduce(function(e,n,i){return t(n.argument)?a(e[0],n):r(e,o,i),e},[[],[]])}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t,n,i,o){return A.default.tickGenerator({axisType:e.type,dataType:e.dataType,logBase:e.logarithmBase,axisDivisionFactor:o(e.axisDivisionFactor||ae),minorAxisDivisionFactor:o(e.minorAxisDivisionFactor||re),numberMultipliers:e.numberMultipliers,calculateMinors:e.minorTick.visible||e.minorGrid.visible||e.calculateMinors,allowDecimals:e.allowDecimals,endOnTick:e.endOnTick,incidentOccurred:t,firstDayOfWeek:e.workWeek&&e.workWeek[0],skipTickGeneration:n,skipCalculationLimits:e.skipCalculationLimits,generateExtraTick:e.generateExtraTick,minTickInterval:e.minTickInterval,rangeIsEmpty:i})}function r(e,t,n){var i=e.getOptions();return(0,B.tick)(e,t,i.tick,i.grid,n,!1)}function s(e,t){var n=e.getOptions();return(0,B.tick)(e,t,n.minorTick,n.minorGrid)}function l(e,t,n){var i=e.getOptions();return(0,B.tick)(e,t,(0,I.extend)({},i.tick,{visible:i.showCustomBoundaryTicks}),i.grid,void 0,!1,n?-1:1)}function u(e,t,n,i){(e||[]).forEach(function(e){return e[t](n,i)})}function c(e){u(e,"initCoords")}function d(e,t){u(e,"drawMark",t)}function h(e,t){u(e,"drawGrid",t)}function p(e,t,n){u(e,"updateTickPosition",t,n)}function f(e,t){u(e,"updateGridPosition",t)}function g(e){e.forEach(function(e){e.labelBBox=e.label?e.label.getBBox():{x:0,y:0,width:0,height:0}})}function _(e){for(var t=e.length-1;t>=0&&m(e,t);t--);for(t=0;t<e.length&&m(e,t);t++)t--}function m(e,t){return(null===e[t].coords.x||null===e[t].coords.y)&&(e.splice(t,1),!0)}function v(e,t,n){e.forEach(function(e,i){e.label&&(i%t!=0?e.removeLabel():n&&n(e,i))})}function y(e){return e.valueOf()}function b(e,t){return void 0===e?t:null===e?void 0:e}function x(e,t,n,i,o){var r=(0,I.extend)({},e,{endOnTick:!0,axisDivisionFactor:t,skipCalculationLimits:!0,generateExtraTick:!0,minTickInterval:o});return function(e,t,o,s,l){return a(r,F.noop,t,n.isEmpty(),function(e){return e})({min:o,max:s,categories:n.categories,isSpacedMargin:n.isSpacedMargin,checkMinDataVisibility:n.checkMinDataVisibility,checkMaxDataVisibility:n.checkMaxDataVisibility},i,e,(0,k.isDefined)(e),void 0,void 0,void 0,l)}}var w=n(397),C=i(n(11)),k=n(1),S=i(n(269)),I=n(0),T=n(13),D=i(n(63)),E=i(n(264)),A=i(n(398)),O=i(n(270)),P=n(109),B=n(399),M=n(29),R=n(22),F=n(4),V=i(n(400)),L=i(n(777)),H=i(n(778)),z=i(n(779)),N=S.default.convertTicksToValues,$=C.default.patchFontOptions,W=C.default.getVizRangeObject,G=Math,j=G.abs,q=G.max,K=G.min,U=Array.isArray,Y=5,X=S.default.top,Z=S.default.bottom,Q=S.default.left,J=S.default.right,ee=S.default.center,te="keep",ne="shift",ie="reset",oe="rotate",ae=50,re=15,se=864e5,le=6048e5,ue=t.Axis=function(e){var t=this;t._renderer=e.renderer,t._incidentOccurred=e.incidentOccurred,t._eventTrigger=e.eventTrigger,t._stripsGroup=e.stripsGroup,t._labelAxesGroup=e.labelAxesGroup,t._constantLinesGroup=e.constantLinesGroup,t._scaleBreaksGroup=e.scaleBreaksGroup,t._axesContainerGroup=e.axesContainerGroup,t._gridContainerGroup=e.gridGroup,t._axisCssPrefix=e.widgetClass+"-"+(e.axisClass?e.axisClass+"-":""),t._setType(e.axisType,e.drawingType),t._createAxisGroups(),t._translator=t._createTranslator(),t.isArgumentAxis=e.isArgumentAxis,t._viewport={},t._firstDrawing=!0,t._initRange={}};ue.prototype={constructor:ue,_drawAxis:function(){var e=this._options;e.visible&&(this._axisElement=this._createAxisElement(),this._updateAxisElementPosition(),this._axisElement.attr({"stroke-width":e.width,stroke:e.color,"stroke-opacity":e.opacity}).sharp(this._getSharpParam(!0),this.getAxisSharpDirection()).append(this._axisLineGroup))},_createPathElement:function(e,t,n){return this.sharp(this._renderer.path(e,"line").attr(t),n)},sharp:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.sharp(this._getSharpParam(),t)},getAxisSharpDirection:function(){var e=this._options.position;return e===X||e===Q?1:-1},getSharpDirectionByCoords:function(e){var t=this._getCanvasStartEnd(),n=Math.max(t.start,t.end);return this.getRadius?0:n!==e[this._isHorizontal?"x":"y"]?1:-1},_getGridLineDrawer:function(){var e=this;return function(t,n){var i=e._getGridPoints(t.coords);return i.points?e._createPathElement(i.points,n,e.getSharpDirectionByCoords(t.coords)):null}},_getGridPoints:function(e){var t=this,n=this._isHorizontal,i=n?"x":"y",o=this._orthogonalPositions,a=o.start,r=o.end,s=t.borderOptions,l=n?Q:X,u=n?J:Z,c=t.getCanvas(),d={left:c.left,right:c.width-c.right,top:c.top,bottom:c.height-c.bottom},h=4+(s.visible&&s[l]?d[l]:void 0),p=(s.visible&&s[u]?d[u]:void 0)-4;return t.areCoordsOutsideAxis(e)||void 0===e[i]||e[i]<h||e[i]>p?{points:null}:{points:n?null!==e[i]?[e[i],a,e[i],r]:null:null!==e[i]?[a,e[i],r,e[i]]:null}},_getConstantLinePos:function(e,t,n){var i=this._getTranslatedCoord(e);if(!(!(0,k.isDefined)(i)||i<K(t,n)||i>q(t,n)))return i},_getConstantLineGraphicAttributes:function(e){var t=this._orthogonalPositions.start,n=this._orthogonalPositions.end;return{points:this._isHorizontal?[e,t,e,n]:[t,e,n,e]}},_createConstantLine:function(e,t){return this._createPathElement(this._getConstantLineGraphicAttributes(e).points,t,function(e,t){return Math.max(t.start,t.end)!==e?1:-1}(e,this._getCanvasStartEnd()))},_drawConstantLineLabelText:function(e,t,n,i,o){var a=this._options.label;return this._renderer.text(e,t,n).css($((0,I.extend)({},a.font,i.font))).attr({align:"center"}).append(o)},_drawConstantLineLabels:function(e,t,n,i){var o,a=this,r=t.text,s=a._options.label;return a._checkAlignmentConstantLineLabels(t),r=(0,k.isDefined)(r)?r:a.formatLabel(e,s),o=a._getConstantLineLabelsCoords(n,t),a._drawConstantLineLabelText(r,o.x,o.y,t,i)},_getStripPos:function(e,t,n,i,o){var a,r,s,l,u,c=!(!o.minVisible&&!o.maxVisible),d=(o.categories||[]).reduce(function(e,t){return e.push(t.valueOf()),e},[]),h=o.minVisible;if(!c&&(0,k.isDefined)(e)&&(0,k.isDefined)(t)){if(l=(0,T.inArray)(e.valueOf(),d),u=(0,T.inArray)(t.valueOf(),d),-1===l||-1===u)return{from:0,to:0};l>u&&(s=t,t=e,e=s)}return(0,k.isDefined)(e)?(e=this.validateUnit(e,"E2105","strip"),a=this._getTranslatedCoord(e,-1),!(0,k.isDefined)(a)&&c&&(a=e<h?n:i)):a=n,(0,k.isDefined)(t)?(t=this.validateUnit(t,"E2105","strip"),r=this._getTranslatedCoord(t,1),!(0,k.isDefined)(r)&&c&&(r=t>h?i:n)):r=i,a<r?{from:a,to:r}:{from:r,to:a}},_getStripGraphicAttributes:function(e,t){var n,i,o,a,r=this._orthogonalPositions,s=r.start,l=r.end;return this._isHorizontal?(n=e,i=K(s,l),o=t-e,a=j(s-l)):(n=K(s,l),i=e,o=j(s-l),a=j(e-t)),{x:n,y:i,width:o,height:a}},_createStrip:function(e){return this._renderer.rect(e.x,e.y,e.width,e.height)},_adjustStripLabels:function(){var e=this;this._strips.forEach(function(t){t.label&&t.label.attr(e._getAdjustedStripLabelCoords(t))})},_adjustLabels:function(e){var t=this,n=t._majorTicks.reduce(function(e,t){if(!t.label)return e;var n=t.labelRotationAngle?C.default.rotateBBox(t.labelBBox,[t.labelCoords.x,t.labelCoords.y],-t.labelRotationAngle):t.labelBBox;return{width:q(e.width||0,n.width),height:q(e.height||0,n.height),offset:q(e.offset||0,t.labelOffset||0)}},{}),i=t._isHorizontal?n.height:n.width;return t._majorTicks.forEach(function(i){i.label&&i.label.attr(t._getLabelAdjustedCoord(i,e+(i.labelOffset||0),n.width))}),e+i+(i&&t._options.label.indentFromAxis)+n.offset},_getLabelAdjustedCoord:function(e,t,n){t=t||0;var i,o,a=this,r=a._options,s=C.default.rotateBBox(e.labelBBox,[e.labelCoords.x,e.labelCoords.y],-e.labelRotationAngle||0),l=r.position,u=e.labelAlignment||r.label.alignment,c="discrete"===a._options.type,d=e.labelRotationAngle%90==0,h=r.label.indentFromAxis,p=a._axisPosition,f=e.labelCoords,g=f.x;return a._isHorizontal?(o=l===Z?p+h-s.y+t:p-h-(s.y+s.height)-t,i=u===J?c&&d?e.coords.x-(s.x+s.width):g-s.x-s.width:u===Q?c&&d?g-s.x-(e.coords.x-g):g-s.x:g-s.x-s.width/2):(o=f.y-s.y-s.height/2,l===Q?(i=u===Q?p-h-n-s.x:u===ee?p-h-n/2-s.x-s.width/2:p-h-s.x-s.width,i-=t):(i=u===J?p+h+n-s.x-s.width:u===ee?p+h+n/2-s.x-s.width/2:p+h-s.x,i+=t)),{translateX:i,translateY:o}},_createAxisConstantLineGroups:function(){var e,t,n=this._renderer,i=this._axisCssPrefix+"constant-lines";return{inside:n.g().attr({class:i}),outside1:e=n.g().attr({class:i}),left:e,top:e,outside2:t=n.g().attr({class:i}),right:t,bottom:t,remove:function(){this.inside.remove(),this.outside1.remove(),this.outside2.remove()},clear:function(){this.inside.clear(),this.outside1.clear(),this.outside2.clear()}}},_createAxisGroups:function(){var e=this,t=e._renderer,n=e._axisCssPrefix;e._axisGroup=t.g().attr({class:n+"axis"}),e._axisStripGroup=t.g().attr({class:n+"strips"}),e._axisGridGroup=t.g().attr({class:n+"grid"}),e._axisElementsGroup=t.g().attr({class:n+"elements"}).append(e._axisGroup),e._axisLineGroup=t.g().attr({class:n+"line"}).append(e._axisGroup),e._axisTitleGroup=t.g().attr({class:n+"title"}).append(e._axisGroup),e._axisConstantLineGroups={above:e._createAxisConstantLineGroups(),under:e._createAxisConstantLineGroups()},e._axisStripLabelGroup=t.g().attr({class:n+"axis-labels"})},_clearAxisGroups:function(){var e=this;e._axisGroup.remove(),e._axisStripGroup.remove(),e._axisStripLabelGroup.remove(),e._axisConstantLineGroups.above.remove(),e._axisConstantLineGroups.under.remove(),e._axisGridGroup.remove(),e._axisTitleGroup.clear(),e._axisElementsGroup.clear(),e._axisLineGroup&&e._axisLineGroup.clear(),e._axisStripGroup&&e._axisStripGroup.clear(),e._axisGridGroup&&e._axisGridGroup.clear(),e._axisConstantLineGroups.above.clear(),e._axisConstantLineGroups.under.clear(),e._axisStripLabelGroup&&e._axisStripLabelGroup.clear()},_getLabelFormatObject:function(e,t,n,i,o,a){n=n||this._getViewportRange();var r={value:e,valueText:(0,w.smartFormatter)(e,{labelOptions:t,ticks:a||N(this._majorTicks),tickInterval:(0,k.isDefined)(o)?o:this._tickInterval,dataType:this._options.dataType,logarithmBase:this._options.logarithmBase,type:this._options.type,showTransition:!this._options.marker.visible,point:i})||"",min:n.minVisible,max:n.maxVisible};return i&&(r.point=i),r},formatLabel:function(e,t,n,i,o,a){var r=this._getLabelFormatObject(e,t,n,i,o,a);return(0,k.isFunction)(t.customizeText)?t.customizeText.call(r,r):r.valueText},formatHint:function(e,t,n){var i=this._getLabelFormatObject(e,t,n);return(0,k.isFunction)(t.customizeHint)?t.customizeHint.call(i,i):void 0},formatRange:function(e,t,n){return(0,w.formatRange)(e,t,n,this.getOptions())},_setTickOffset:function(){var e=this._options.discreteAxisDivisionMode;this._tickOffset=+("crossLabels"!==e||!e)},getMargins:function(){var e=this,t=e._options,n=t.position,i=t.placeholderSize,o=e.getCanvas(),a=o.left,r=o.top,s=o.width-o.right,l=o.height-o.bottom,u=q(t.grid.visible&&t.grid.width||0,t.tick.visible&&t.tick.width||0),c=e._axisConstantLineGroups.above,d=e._axisConstantLineGroups.under,h=[e._axisElementsGroup,c.outside1,c.outside2,d.outside1,d.outside2,e._axisLineGroup].map(function(e){return e&&e.getBBox()}).concat(function(t){var n=t&&t.getBBox();return!n||n.isEmpty?n:(e._isHorizontal?(n.x=a,n.width=s-a):(n.y=r,n.height=l-r),n)}(e._axisTitleGroup)).reduce(function(e,t){return!t||t.isEmpty?e:{left:q(e.left,a-t.x),top:q(e.top,r-t.y),right:q(e.right,t.x+t.width-s),bottom:q(e.bottom,t.y+t.height-l)}},{left:0,right:0,top:0,bottom:0});return h[n]+=t.crosshairMargin,i&&(h[n]=i),u&&(e._isHorizontal&&o.right<u&&h.right<u&&(h.right=u),!e._isHorizontal&&o.bottom<u&&h.bottom<u&&(h.bottom=u)),h},validateUnit:function(e,t,n){return void 0===(e=this.parser(e))&&t&&this._incidentOccurred(t,[n]),e},_setType:function(e,t){var n;switch(e){case"xyAxes":n=V.default;break;case"polarAxes":n=L.default}(0,I.extend)(this,n[t])},_getSharpParam:function(){return!0},_disposeBreaksGroup:F.noop,dispose:function(){var e=this;[e._axisElementsGroup,e._axisStripGroup,e._axisGroup].forEach(function(e){e.dispose()}),e._strips=e._title=null,e._axisStripGroup=e._axisConstantLineGroups=e._axisStripLabelGroup=e._axisBreaksGroup=null,e._axisLineGroup=e._axisElementsGroup=e._axisGridGroup=null,e._axisGroup=e._axisTitleGroup=null,e._axesContainerGroup=e._stripsGroup=e._constantLinesGroup=null,e._renderer=e._options=e._textOptions=e._textFontStyles=null,e._translator=null,e._majorTicks=e._minorTicks=null,e._disposeBreaksGroup()},getOptions:function(){return this._options},setPane:function(e){this.pane=e,this._options.pane=e},setTypes:function(e,t,n){this._options.type=e||this._options.type,this._options[n]=t||this._options[n],this._updateTranslator()},resetTypes:function(e){this._options.type=this._initTypes.type,this._options[e]=this._initTypes[e]},getTranslator:function(){return this._translator},updateOptions:function(e){var t=this,n=e.label;t._options=e,e.tick=e.tick||{},e.minorTick=e.minorTick||{},e.grid=e.grid||{},e.minorGrid=e.minorGrid||{},e.title=e.title||{},e.marker=e.marker||{},t._initTypes={type:e.type,argumentType:e.argumentType,valueType:e.valueType},function(e){var t=e.label,n=e.position,i=e.isHorizontal?Z:Q,o=e.isHorizontal?X:J;n!==i&&n!==o&&(n=i),n!==J||t.userAlignment||(t.alignment=Q),e.position=n,e.hoverMode=e.hoverMode?e.hoverMode.toLowerCase():"none",t.minSpacing=(0,k.isDefined)(t.minSpacing)?t.minSpacing:Y}(e),t._setTickOffset(),t._isHorizontal=e.isHorizontal,t.pane=e.pane,t.name=e.name,t.priority=e.priority,t._hasLabelFormat=""!==n.format&&(0,k.isDefined)(n.format),t._textOptions={opacity:n.opacity,align:"center"},t._textFontStyles=C.default.patchFontOptions(n.font),e.type===S.default.logarithmic&&e.logarithmBaseError&&(t._incidentOccurred("E2104"),delete e.logarithmBaseError),t._updateTranslator(),t._createConstantLines(),t._strips=(e.strips||[]).map(function(e){return(0,z.default)(t,e)}),t._majorTicks=t._minorTicks=null,t._firstDrawing=!0},calculateInterval:function(e,t){var n=this._options;return n&&n.type===S.default.logarithmic?C.default.getLog(e/t,n.logarithmBase):j(e-t)},_processCanvas:function(e){return e},updateCanvas:function(e){var t=this._orthogonalPositions={start:this._isHorizontal?e.top:e.left,end:this._isHorizontal?e.height-e.bottom:e.width-e.right};this._canvas=e,t.center=t.start+(t.end-t.start)/2,this._translator.updateCanvas(this._processCanvas(e)),this._initAxisPositions()},getCanvas:function(){return this._canvas},getAxisShift:function(){return this._axisShift||0},hideTitle:function(){var e=this;e._options.title.text&&(e._incidentOccurred("W2105",[e._isHorizontal?"horizontal":"vertical"]),e._axisTitleGroup.clear())},getTitle:function(){return this._title},hideOuterElements:function(){var e=this;!e._options.label.visible&&!e._outsideConstantLines.length||e._translator.getBusinessRange().isEmpty()||(e._incidentOccurred("W2106",[e._isHorizontal?"horizontal":"vertical"]),e._axisElementsGroup.clear(),u(e._outsideConstantLines,"removeLabel"))},adjustViewport:function(e){var t=this,n=t._options,i=n.type===S.default.discrete,o=t._seriesData&&t._seriesData.categories||[],a=t.adjustRange(W(n.wholeRange)),r=t.getViewport()||{},s=new P.Range(e);t._addConstantLinesToRange(s,"minVisible","maxVisible");var l=(0,k.isDefined)(r.startValue),u=(0,k.isDefined)(r.endValue);i||(l=l&&(!(0,k.isDefined)(a.endValue)||r.startValue<a.endValue),u=u&&(!(0,k.isDefined)(a.startValue)||r.endValue>a.startValue));var c=l?r.startValue:s.minVisible,d=u?r.endValue:s.maxVisible;i?(o=C.default.getCategoriesInfo(o,a.startValue,a.endValue).categories,s.categories=o):(s.min=(0,k.isDefined)(a.startValue)?a.startValue:s.min,s.max=(0,k.isDefined)(a.endValue)?a.endValue:s.max);var h=C.default.adjustVisualRange({axisType:n.type,dataType:n.dataType,base:n.logarithmBase},{startValue:l?r.startValue:void 0,endValue:u?r.endValue:void 0,length:r.length},{categories:o,min:a.startValue,max:a.endValue},{categories:o,min:c,max:d});return s.minVisible=h.startValue,s.maxVisible=h.endValue,!(0,k.isDefined)(s.min)&&(s.min=s.minVisible),!(0,k.isDefined)(s.max)&&(s.max=s.maxVisible),s.addRange({}),s},adjustRange:function(e){e=e||{};var t=this._options.type===S.default.discrete;if(this._options.type===S.default.logarithmic&&(e.startValue=e.startValue<=0?null:e.startValue,e.endValue=e.endValue<=0?null:e.endValue),!t&&(0,k.isDefined)(e.startValue)&&(0,k.isDefined)(e.endValue)&&e.startValue>e.endValue){var n=e.endValue;e.endValue=e.startValue,e.startValue=n}return e},_getVisualRangeUpdateMode:function(e,t,n){var i=this._options.visualRangeUpdateMode,o=this._translator,a=o.getBusinessRange();if(this.isArgumentAxis){if(-1===[ne,te,ie].indexOf(i))if(a.axisType===S.default.discrete){var r=a.categories,s=t.categories,l=this.visualRange();i=r&&s&&r.length&&-1!==s.map(function(e){return e.valueOf()}).join(",").indexOf(r.map(function(e){return e.valueOf()}).join(","))&&(l.startValue.valueOf()!==r[0].valueOf()||l.endValue.valueOf()!==r[r.length-1].valueOf())?te:ie}else{var u=o.translate(a.min),c=o.translate(e.startValue),d=o.translate(a.max),h=o.translate(e.endValue);i=u===c&&d===h?ie:u!==c&&d===h?ne:te}}else-1===[te,ie].indexOf(i)&&(i=n===te?te:ie);return i},_handleBusinessRangeChanged:function(e,t){var n=this,i=this.visualRange();if(!t&&!n._translator.getBusinessRange().isEmpty()){var o=n._lastVisualRangeUpdateMode=n._getVisualRangeUpdateMode(i,n._seriesData,e);if(!n.isArgumentAxis){var a=n.getViewport();(0,k.isDefined)(a.startValue)||(0,k.isDefined)(a.endValue)||(0,k.isDefined)(a.length)||(o=ie)}n._prevDataWasEmpty&&(o=te),o===te&&n._setVisualRange([i.startValue,i.endValue]),o===ie&&n._setVisualRange([null,null]),o===ne&&n._setVisualRange({length:n.getVisualRangeLength()})}},getVisualRangeLength:function(e){var t=e||this._translator.getBusinessRange(),n=this._options,i=n.type,o=n.logarithmBase,a=void 0;if(i===S.default.logarithmic)a=(0,M.adjust)(C.default.getLog(t.maxVisible/t.minVisible,o));else if(i===S.default.discrete){a=C.default.getCategoriesInfo(t.categories,t.minVisible,t.maxVisible).categories.length}else a=t.maxVisible-t.minVisible;return a},getVisualRangeCenter:function(e){var t=this._translator.getBusinessRange(),n=e||t,i=this._options,o=i.type,a=i.logarithmBase,r=void 0;if((0,k.isDefined)(n.minVisible)&&(0,k.isDefined)(n.maxVisible)){if(o===S.default.logarithmic)r=C.default.raiseTo((0,M.adjust)(C.default.getLog(n.maxVisible*n.minVisible,a))/2,a);else if(o===S.default.discrete){var s=C.default.getCategoriesInfo(n.categories,n.minVisible,n.maxVisible),l=Math.ceil(s.categories.length/2)-1;r=t.categories.indexOf(s.categories[l])}else r=(n.maxVisible.valueOf()+n.minVisible.valueOf())/2;return r}},setBusinessRange:function(e,t,n){var i=this,o=i._options,a=o.type===S.default.discrete;i._seriesData=new P.Range(e);var r=i._seriesData.isEmpty();if(i._handleBusinessRangeChanged(n,t),i._prevDataWasEmpty=r,i._seriesData.addRange({categories:o.categories,dataType:o.dataType,axisType:o.type,base:o.logarithmBase,invert:o.inverted}),!a){if(!(0,k.isDefined)(i._seriesData.min)&&!(0,k.isDefined)(i._seriesData.max)){var s=i.getViewport();s&&i._seriesData.addRange({min:s.startValue,max:s.endValue})}var l=o.synchronizedValue;(0,k.isDefined)(l)&&i._seriesData.addRange({min:l,max:l})}i._seriesData.minVisible=void 0===i._seriesData.minVisible?i._seriesData.min:i._seriesData.minVisible,i._seriesData.maxVisible=void 0===i._seriesData.maxVisible?i._seriesData.max:i._seriesData.maxVisible,!i.isArgumentAxis&&o.showZero&&i._seriesData.correctValueZeroLevel(),i._seriesData.sortCategories(i.getCategoriesSorter()),i._seriesData.breaks=i._breaks=i._getScaleBreaks(o,i._seriesData,i._series,i.isArgumentAxis),i._translator.updateBusinessRange(i.adjustViewport(i._seriesData))},_addConstantLinesToRange:function(e,t,n){this._outsideConstantLines.concat(this._insideConstantLines||[]).forEach(function(i){if(i.options.extendAxis){var a,r=i.getParsedValue();e.addRange((o(a={},t,r),o(a,n,r),a))}})},setGroupSeries:function(e){this._series=e},getLabelsPosition:function(){var e=this,t=e._options,n=t.position,i=t.label.indentFromAxis+(e._axisShift||0)+e._constantLabelOffset,o=e._axisPosition;return n===X||n===Q?o-i:o+i},getFormattedValue:function(e,t,n){var i=this._options.label;return(0,k.isDefined)(e)?this.formatLabel(e,(0,I.extend)(!0,{},i,t),void 0,n):null},_getBoundaryTicks:function(e,t){var n=this,i=e.length,o=n._options,a=o.customBoundTicks,r=t.minVisible,s=t.maxVisible,l=o.showCustomBoundaryTicks?n._boundaryTicksVisibility:{},u=[];return o.type===S.default.discrete?n._tickOffset&&0!==e.length&&(u=[e[0],e[e.length-1]]):a?(l.min&&(0,k.isDefined)(a[0])&&u.push(a[0]),l.max&&(0,k.isDefined)(a[1])&&u.push(a[1])):(l.min&&(0===i||e[0]>r)&&u.push(r),l.max&&(0===i||e[i-1]<s)&&u.push(s)),u},setPercentLabelFormat:function(){this._hasLabelFormat||(this._options.label.format="percent")},resetAutoLabelFormat:function(){this._hasLabelFormat||delete this._options.label.format},getMultipleAxesSpacing:function(){return this._options.multipleAxesSpacing||0},getTicksValues:function(){return{majorTicksValues:N(this._majorTicks),minorTicksValues:N(this._minorTicks)}},setTicks:function(e){var t=e.majorTicks||[];this._majorTicks=t.map(r(this,this._renderer,this._getSkippedCategory(t))),this._minorTicks=(e.minorTicks||[]).map(s(this,this._renderer)),this._isSynchronized=!0},_adjustDivisionFactor:function(e){return e},_getTicks:function(e,t,n){var i=this,o=i._options,r=o.customTicks,s=o.customMinorTicks;return a(o,t||i._incidentOccurred,n,i._translator.getBusinessRange().isEmpty(),i._adjustDivisionFactor.bind(i))({min:e.minVisible,max:e.maxVisible,categories:e.categories,isSpacedMargin:e.isSpacedMargin,checkMinDataVisibility:e.checkMinDataVisibility,checkMaxDataVisibility:e.checkMaxDataVisibility},i._getScreenDelta(),o.tickInterval,"ignore"===o.label.overlappingBehavior||o.forceUserTickInterval,{majors:r,minors:s},o.minorTickInterval,o.minorTickCount,i._breaks)},_createTicksAndLabelFormat:function(e,t){var n,i=this._options;return n=this._getTicks(e,t,!1),e.isEmpty()||i.type!==S.default.discrete||"datetime"!==i.dataType||this._hasLabelFormat||!n.ticks.length||(i.label.format=D.default.getDateFormatByTicks(n.ticks)),n},getAggregationInfo:function(e,t){var n=this,i=n._options,o=n._marginOptions,a=new P.Range(n.getTranslator().getBusinessRange()).addRange(t),r=n.getViewport(),s=r&&(0,k.isDefined)(r.startValue)?r.startValue:a.minVisible,l=r&&(0,k.isDefined)(r.endValue)?r.endValue:a.maxVisible,u=[],c=i.aggregationInterval,d=i.aggregationGroupWidth;!d&&o&&(o.checkInterval&&(d=i.axisDivisionFactor),o.sizePointNormalState&&(d=Math.min(o.sizePointNormalState,i.axisDivisionFactor)));var h=!i.aggregationGroupWidth&&!c&&t.interval,p=x(i,d,a,n._getScreenDelta(),h),f=p(c,!0,s,l,n._breaks).tickInterval;if(i.type!==S.default.discrete){var g=e?a.min:s,_=e?a.max:l;if((0,k.isDefined)(g)&&(0,k.isDefined)(_)){var m=C.default.getAddFunction({base:i.logarithmBase,axisType:i.type,dataType:i.dataType},!1),v=g,y=_;if(!e){var b=Math.max(n.calculateInterval(_,g),"datetime"===i.dataType?(0,R.dateToMilliseconds)(f):f);v=m(g,b,-1),y=m(_,b)}u=p(f,!1,v=v<a.min?a.min:v,y=y>a.max?a.max:y,n._getScaleBreaks(i,{minVisible:v,maxVisible:y},n._series,n.isArgumentAxis)).ticks}}return n._aggregationInterval=f,{interval:f,ticks:u}},createTicks:function(e){var t,n,i,o=this,a=o._renderer,u=o._options;if(e){o._isSynchronized=!1,o.updateCanvas(e),o._estimatedTickInterval=o._getTicks(o.adjustViewport(this._seriesData),F.noop,!0).tickInterval,i=o._getViewportRange();var c=this._calculateValueMargins();i.addRange({minVisible:c.minValue,maxVisible:c.maxValue,isSpacedMargin:c.isSpacedMargin,checkMinDataVisibility:!this.isArgumentAxis&&c.checkInterval&&!(0,k.isDefined)(u.min)&&c.minValue.valueOf()>0,checkMaxDataVisibility:!this.isArgumentAxis&&c.checkInterval&&!(0,k.isDefined)(u.max)&&c.maxValue.valueOf()<0}),t=o._createTicksAndLabelFormat(i),n=o._getBoundaryTicks(t.ticks,o._getViewportRange()),u.showCustomBoundaryTicks&&n.length?(o._boundaryTicks=[n[0]].map(l(o,a,!0)),n.length>1&&(o._boundaryTicks=o._boundaryTicks.concat([n[1]].map(l(o,a,!1))))):o._boundaryTicks=[];var d=(t.minorTicks||[]).filter(function(e){return!n.some(function(t){return y(t)===y(e)})});o._tickInterval=t.tickInterval,o._minorTickInterval=t.minorTickInterval;var h=o._majorTicks||[],p=h.reduce(function(e,t){return e[t.value.valueOf()]=t,e},{}),f=(0,k.type)(t.ticks[0])===(0,k.type)(h[0]&&h[0].value),g=o._getSkippedCategory(t.ticks),_=t.ticks.map(function(e){var t=p[e.valueOf()];return t&&f?(delete p[e.valueOf()],t.setSkippedCategory(g),t):r(o,a,g)(e)});o._majorTicks=_;var m=o._minorTicks||[];o._minorTicks=d.map(function(e,t){var n=m[t];return n?(n.updateValue(e),n):s(o,a)(e)}),o._ticksToRemove=Object.keys(p).map(function(e){return p[e]}).concat(m.slice(o._minorTicks.length,m.length)),o._correctedBreaks=t.breaks,o._reinitTranslator(o._getViewportRange())}},_reinitTranslator:function(e){var t=this,n=t._translator;t._correctedBreaks&&(e.breaks=t._correctedBreaks),t._isSynchronized||n.updateBusinessRange(t.adjustViewport(e))},_getViewportRange:function(){return this.adjustViewport(this._seriesData)},setMarginOptions:function(e){this._marginOptions=e},getMarginOptions:function(){return(0,k.isDefined)(this._marginOptions)?this._marginOptions:{}},allowToExtendVisualRange:function(e){var t=this.adjustRange(W(this._options.wholeRange)),n=e?t.endValue:t.startValue;return!this.isArgumentAxis||!(0,k.isDefined)(n)&&this.isExtremePosition(e)},_calculateRangeInterval:function(e){var t="datetime"===this._options.dataType,n=[],i=function(e){(0,k.isDefined)(e)&&n.push(t?(0,R.dateToMilliseconds)(e):e)};return i(this._tickInterval),i(this._estimatedTickInterval),(0,k.isDefined)(e)&&n.push(e),i(this._aggregationInterval),this._calculateWorkWeekInterval(K.apply(this,n))},_calculateWorkWeekInterval:function(e){var t=this._options;if("datetime"===t.dataType&&t.workdaysOnly&&e){var n=t.workWeek.length*se,i=le-n;if(n!==e&&i<e){var o=Math.ceil(e/le);e=i>=e?se:e-i*o}else i>=e&&e>se&&(e=se)}return e},_calculateValueMargins:function(e){function t(e){var t=h.ratioOfCanvasRange();return t/(t*u/(e+u))}function n(e,n){var i=j(I.start-e),o=j(I.end-n),a=t(i+o);g=i/a,_=o/a}this._resetMargins();var i=this,o=i.getMarginOptions(),a=(o.size||0)/2,r=i._options,s=this._getViewportRange(),l=this.getViewport(),u=i._getScreenDelta(),c=-1!==(r.type||"").indexOf(S.default.discrete),d=r.valueMarginsEnabled&&!c,h=i._translator,p=r.minValueMargin,f=r.maxValueMargin,g=0,_=0,m=0,v=void 0;if(s.stubData||!u)return{startPadding:0,endPadding:0};if(i.isArgumentAxis&&o.checkInterval)if(v=i._calculateRangeInterval(s.interval),isFinite(v)){var y=h.getInterval(v);m=Math.ceil(y/(2*t(y)))}else v=0;var b=void 0,x=void 0,w=.8*u/2;d&&((0,k.isDefined)(p)?b=isFinite(p)?p:0:(g=Math.max(a,m),g=Math.min(w,g)),(0,k.isDefined)(f)?x=isFinite(f)?f:0:(_=Math.max(a,m),_=Math.min(w,_)));var C=o.percentStick&&!this.isArgumentAxis;C&&1===j(s.max)&&(x=_=0),C&&1===j(s.min)&&(b=g=0);var I=i._getCanvasStartEnd(),T=(u-g-_)/(1+(b||0)+(x||0))||u;void 0===b&&void 0===x||(void 0!==b&&(g=T*b),void 0!==x&&(_=T*x));var D=void 0,E=void 0;if(r.type!==S.default.discrete&&e&&e.length>1&&!r.skipViewportExtending&&!l.action&&!1!==r.endOnTick){var A=e.length,O=h.translate(e[0].value),P=h.translate(e[A-1].value),B=O>P?-1:1,M=q(B*(I.start-O),0),R=q(B*(P-I.end),0);if(M>g||R>_){var F=t(R+M);M>=g&&(D=e[0].value),R>=_&&(E=e[A-1].value),g=q(M,g)/F,_=q(R,_)/F}}return b=void 0===b?g/T:b,x=void 0===x?_/T:x,c||(this._translator.isInverted()?(D=(0,k.isDefined)(D)?D:h.from(I.start+u*b,-1),E=(0,k.isDefined)(E)?E:h.from(I.end-u*x,1)):(D=(0,k.isDefined)(D)?D:h.from(I.start-u*b,-1),E=(0,k.isDefined)(E)?E:h.from(I.end+u*x,1))),i.isArgumentAxis||(D*s.min<=0&&D*s.minVisible<=0&&(n(h.translate(0),h.translate(E)),D=0),E*s.max<=0&&E*s.maxVisible<=0&&(n(h.translate(D),h.translate(0)),E=0)),{startPadding:this._translator.isInverted()?_:g,endPadding:this._translator.isInverted()?g:_,minValue:D,maxValue:E,interval:v,isSpacedMargin:g===_&&0!==g}},applyMargins:function(){if(!this._isSynchronized){var e=this._calculateValueMargins(this._majorTicks),t=(0,I.extend)({},this._canvas,{startPadding:e.startPadding,endPadding:e.endPadding});if(this._translator.updateCanvas(this._processCanvas(t)),isFinite(e.interval)){var n=this._translator.getBusinessRange();n.addRange({interval:e.interval}),this._translator.updateBusinessRange(n)}}},_resetMargins:function(){this._reinitTranslator(this._getViewportRange()),this._canvas&&this._translator.updateCanvas(this._processCanvas(this._canvas))},_createConstantLines:function(){var e=this,t=(this._options.constantLines||[]).map(function(t){return(0,H.default)(e,t)});this._outsideConstantLines=t.filter(function(e){return"outside"===e.labelPosition}),this._insideConstantLines=t.filter(function(e){return"inside"===e.labelPosition})},draw:function(e,t){var n=this,i=this._options;n.borderOptions=t||{visible:!1},n._resetMargins(),n.createTicks(e),n.applyMargins(),n._clearAxisGroups(),c(n._majorTicks),c(n._minorTicks),c(n._boundaryTicks),n._axisGroup.append(n._axesContainerGroup),n._drawAxis(),n._drawTitle(),d(n._majorTicks,i.tick),d(n._minorTicks,i.minorTick),d(n._boundaryTicks,i.tick);var o=n._getGridLineDrawer();h(n._majorTicks,o),h(n._minorTicks,o),u(n._majorTicks,"drawLabel",n._getViewportRange()),n._majorTicks.forEach(function(e){e.labelRotationAngle=0,e.labelAlignment=void 0,e.labelOffset=0}),u(n._outsideConstantLines.concat(n._insideConstantLines),"draw"),u(n._strips,"draw"),n._dateMarkers=n._drawDateMarkers()||[],n._labelAxesGroup&&n._axisStripLabelGroup.append(n._labelAxesGroup),n._gridContainerGroup&&n._axisGridGroup.append(n._gridContainerGroup),n._stripsGroup&&n._axisStripGroup.append(n._stripsGroup),n._constantLinesGroup&&(n._axisConstantLineGroups.above.inside.append(n._constantLinesGroup.above),n._axisConstantLineGroups.above.outside1.append(n._constantLinesGroup.above),n._axisConstantLineGroups.above.outside2.append(n._constantLinesGroup.above),n._axisConstantLineGroups.under.inside.append(n._constantLinesGroup.under),n._axisConstantLineGroups.under.outside1.append(n._constantLinesGroup.under),n._axisConstantLineGroups.under.outside2.append(n._constantLinesGroup.under)),n._measureTitle(),g(n._majorTicks);var a=void 0,r=void 0,s=void 0,l=n._tickInterval;(0,k.isDefined)(l)&&(s=n.getTranslator().getInterval("datetime"===i.dataType?(0,R.dateToMilliseconds)(l):l)),n._isHorizontal?(a=s,r=i.placeholderSize):(a=i.placeholderSize,r=s);var p=n._validateDisplayMode(i.label.displayMode),f=n._validateOverlappingMode(i.label.overlappingBehavior,p),_=i.label.wordWrap||"none",m=i.label.textOverflow||"none";if(("none"!==_||"none"!==m)&&p!==oe&&f!==oe&&"auto"!==f){var v=!1,y=!1;a&&n._majorTicks.some(function(e){return e.labelBBox.width>a})&&(v=!0),r&&n._majorTicks.some(function(e){return e.labelBBox.height>r})&&(y=!0),(v||y)&&(n._majorTicks.forEach(function(e){e.label&&e.label.setMaxSize(a,r,i.label)}),g(n._majorTicks))}g(n._outsideConstantLines),g(n._insideConstantLines),g(n._strips),g(n._dateMarkers),n._adjustConstantLineLabels(n._insideConstantLines),n._adjustStripLabels();var b=n._constantLabelOffset=n._adjustConstantLineLabels(n._outsideConstantLines);n._translator.getBusinessRange().isEmpty()||(n._setLabelsPlacement(),b=n._adjustLabels(b)),b=n._adjustDateMarkers(b),n._adjustTitle(b)},_measureTitle:F.noop,animate:function(){u(this._majorTicks,"animateLabels")},updateSize:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this;i.updateCanvas(e),n&&(i._checkTitleOverflow(),i._measureTitle(),i._updateTitleCoords()),i._reinitTranslator(i._getViewportRange()),i.applyMargins();var o=!i._firstDrawing&&t,a=this._options;c(i._majorTicks),c(i._minorTicks),c(i._boundaryTicks),_(i._majorTicks),_(i._minorTicks),_(i._boundaryTicks),i._updateAxisElementPosition(),p(i._majorTicks,a.tick,o),p(i._minorTicks,a.minorTick,o),p(i._boundaryTicks,a.tick),u(i._majorTicks,"updateLabelPosition",o),i._outsideConstantLines.concat(i._insideConstantLines||[]).forEach(function(e){return e.updatePosition(o)}),u(i._strips,"updatePosition",o),f(i._majorTicks,o),f(i._minorTicks,o),o&&u(i._ticksToRemove||[],"fadeOutElements"),i.prepareAnimation(),i._ticksToRemove=null,i._translator.getBusinessRange().isEmpty()||(i._firstDrawing=!1)},prepareAnimation:function(){var e=this,t="saveCoords";u(e._majorTicks,t),u(e._minorTicks,t),u(e._insideConstantLines,t),u(e._outsideConstantLines,t),u(e._strips,t)},applyClipRects:function(e,t){this._axisGroup.attr({"clip-path":t}),this._axisStripGroup.attr({"clip-path":e})},_mergeViewportOptions:function(){var e,t=this._options,n=t._customVisualRange;e=!(0,k.isDefined)(t.max)&&!(0,k.isDefined)(t.min)||(0,k.isDefined)(n.startValue)||(0,k.isDefined)(n.endValue)||(0,k.isDefined)(n.length)?n:{startValue:t.min,endValue:t.max},this._setVisualRange(e)},_validateVisualRange:function(e){var t=W(e);return void 0!==t.startValue&&(t.startValue=this.validateUnit(t.startValue)),void 0!==t.endValue&&(t.endValue=this.validateUnit(t.endValue)),function(e,t){return C.default.convertVisualRangeObject(e,!U(t))}(t,e)},_validateOptions:function(e){var t=this;void 0!==e.min&&(e.min=t.validateUnit(e.min,"E2106")),void 0!==e.max&&(e.max=t.validateUnit(e.max,"E2106")),e.wholeRange=t._validateVisualRange(e.wholeRange),e.visualRange=e._customVisualRange=t._validateVisualRange(e._customVisualRange),t._mergeViewportOptions()},validate:function(){var e=this,t=e._options,n=e.isArgumentAxis?t.argumentType:t.valueType,i=n?E.default.getParser(n):function(e){return e};e.parser=i,t.dataType=n,e._validateOptions(t)},resetVisualRange:function(e){this._seriesData.minVisible=this._seriesData.min,this._seriesData.maxVisible=this._seriesData.max,this.handleZooming([null,null],{start:!!e,end:!!e})},_applyZooming:function(e){var t=this;t._resetVisualRangeOption(),t._setVisualRange(e);var n=t.getViewport();t._breaks=t._getScaleBreaks(t._options,{minVisible:n.startValue,maxVisible:n.endValue},t._series,t.isArgumentAxis),t._translator.updateBusinessRange(t._getViewportRange())},getZoomStartEventArg:function(e,t){return{axis:this,range:this.visualRange(),cancel:!1,event:e,actionType:t}},getZoomEndEventArg:function(e,t,n,i,o){var a=this.visualRange();return{axis:this,previousRange:e,range:a,cancel:!1,event:t,actionType:n,zoomFactor:i,shift:o,rangeStart:a.startValue,rangeEnd:a.endValue}},getZoomBounds:function(){var e=C.default.getVizRangeObject(this._options.wholeRange),t=this.getTranslator().getBusinessRange(),n={startValue:b(this._initRange.startValue,t.min),endValue:b(this._initRange.endValue,t.max)};return{startValue:b(e.startValue,n.startValue),endValue:b(e.endValue,n.endValue)}},setInitRange:function(){this._initRange={},0===Object.keys(this._options.wholeRange||{}).length&&(this._initRange=this.getZoomBounds())},_resetVisualRangeOption:function(){this._options._customVisualRange={}},setCustomVisualRange:function(e){this._options._customVisualRange=e},visualRange:function(){var e=this,t=arguments,n=void 0;if(0===t.length){var i=e._getAdjustedBusinessRange(),o=i.minVisible,a=i.maxVisible;return e._options.type===S.default.discrete?{startValue:o=(0,k.isDefined)(o)?o:i.categories[0],endValue:a=(0,k.isDefined)(a)?a:i.categories[i.categories.length-1],categories:C.default.getCategoriesInfo(i.categories,o,a).categories}:{startValue:o,endValue:a}}n=U(t[0])||(0,k.isPlainObject)(t[0])?t[0]:[t[0],t[1]];var r=e.handleZooming(n,t[1]);r.isPrevented||e._visualRange(e,r.range)},handleZooming:function(e,t,n,i){var o=this;t=t||{},(0,k.isDefined)(e)&&((e=o._validateVisualRange(e)).action=i);var a=o.getZoomStartEventArg(n,i),r=a.range;!t.start&&o._eventTrigger("zoomStart",a);var s={isPrevented:a.cancel,range:e||a.range};return a.cancel||((0,k.isDefined)(e)&&o._applyZooming(e),(0,k.isDefined)(o._storedZoomEndParams)||(o._storedZoomEndParams={startRange:r}),o._storedZoomEndParams.event=n,o._storedZoomEndParams.action=i,o._storedZoomEndParams.prevent=!!t.end),s},handleZoomEnd:function(){var e=this;if((0,k.isDefined)(e._storedZoomEndParams)&&!e._storedZoomEndParams.prevent){var t=e._storedZoomEndParams.startRange,n=e._storedZoomEndParams.event,i=e._storedZoomEndParams.action,o={minVisible:t.startValue,maxVisible:t.endValue,categories:t.categories},a=(0,M.adjust)(e.getVisualRangeCenter()-e.getVisualRangeCenter(o)),r=+(Math.round(e.getVisualRangeLength(o)/e.getVisualRangeLength()+"e+2")+"e-2"),s=e.getZoomEndEventArg(t,n,i,r,a);s.cancel=e.isZoomingLowerLimitOvercome(1===r?"pan":"zoom",r),e._eventTrigger("zoomEnd",s),s.cancel&&e.restorePreviousVisualRange(t),e._storedZoomEndParams=null}},restorePreviousVisualRange:function(e){var t=this;t._storedZoomEndParams=null,t._applyZooming(e),t._visualRange(t,e)},isZoomingLowerLimitOvercome:function(e,t,n){var i=this,o=i._options,a=o.minVisualRangeLength,r="zoom"===e&&t>=1,s=i._translator.getBusinessRange(),l=void 0;(0,k.isDefined)(n)&&(l={minVisible:(l=i.adjustRange(C.default.getVizRangeObject(n))).startValue,maxVisible:l.endValue,categories:s.categories});var u=i.getVisualRangeLength(l);if("discrete"!==o.type)if((0,k.isDefined)(a))"datetime"!==o.dataType||(0,k.isNumeric)(a)||(a=(0,R.dateToMilliseconds)(a)),r&=a>=u;else{var c=i._translator.canvasLength,d={minVisible:s.min,maxVisible:s.max,categories:s.categories};r&=i.getVisualRangeLength(d)/c>=u}else!(0,k.isDefined)(a)&&(a=1),r&=(0,k.isDefined)(n)&&i.getVisualRangeLength()===a&&u<=a;return!!r},dataVisualRangeIsReduced:function(){var e=void 0,t=void 0,n=this.getTranslator();if("discrete"===this._options.type){var i=n.getBusinessRange().categories;e=i[0],t=i[i.length-1]}else{var o=this._seriesData;e=o.min,t=o.max}if(!(0,k.isDefined)(e)||!(0,k.isDefined)(t))return!1;var a=n.translate(e),r=n.translate(t),s=[Math.min(a,r),Math.max(a,r)],l=this.visualRange(),u=n.translate(l.startValue),c=n.translate(l.endValue);return u>s[0]&&u<s[1]||c>s[0]&&c<s[1]||u===c&&s[0]!==s[1]},isExtremePosition:function(e){var t=void 0,n=void 0;"discrete"===this._options.type?(n=this._translator.getBusinessRange(),t=e?n.categories[n.categories.length-1]:n.categories[0]):(n=this.getZoomBounds(),t=e?n.endValue:n.startValue);var i=this.getTranslator(),o=i.translate(t),a=this.visualRange(),r=e?i.translate(a.endValue):i.translate(a.startValue);return j(r-o)<5},getViewport:function(){return this._viewport},getFullTicks:function(){var e=this._majorTicks||[];return this._options.type===S.default.discrete?N(e):N(e.concat(this._minorTicks,this._boundaryTicks)).sort(function(e,t){return y(e)-y(t)})},measureLabels:function(e,t){var n,i,o,a,r,s=this,l=s._options,u=l.visible?l.width:0,c=t?l.label.indentFromAxis+.5*l.tick.length:0,d=s._getViewportRange();return!d.isEmpty()&&l.label.visible&&s._axisElementsGroup?(s._majorTicks?n=N(s._majorTicks):(this.updateCanvas(e),n=s._createTicksAndLabelFormat(d,F.noop),r=n.tickInterval,n=n.ticks),i=n.reduce(function(e,t,i){var o=s.formatLabel(t,l.label,d,void 0,r,n);return e.length<o.length?o:e},s.formatLabel(n[0],l.label,d,void 0,r,n)),a=(o=s._renderer.text(i,0,0).css(s._textFontStyles).attr(s._textOptions).append(s._renderer.root)).getBBox(),o.remove(),{x:a.x,y:a.y,width:a.width+c,height:a.height+c}):{height:u,width:u,x:0,y:0}},_setLabelsPlacement:function(){if(this._options.label.visible){var e,t,n=this,i=n._options.label,o=n._validateDisplayMode(i.displayMode),a=n._validateOverlappingMode(i.overlappingBehavior,o),r="none"===a||"ignore"===a,s={rotationAngle:i.rotationAngle,staggeringSpacing:i.staggeringSpacing},l=n._majorTicks.map(function(e){return e.labelBBox});switch(t=n._getStep(l),o){case oe:r&&(e=!0,t=1),n._applyLabelMode(o,t,l,i,e);break;case"stagger":r&&(t=2),n._applyLabelMode(o,q(t,2),l,i);break;default:n._applyLabelOverlapping(l,a,t,s)}}},_applyLabelOverlapping:function(e,t,n,i){var o=this,a=o._options.label,r=o._majorTicks;if("none"!==t&&"ignore"!==t){n>1&&e.some(function(e,t,n){return 0!==t&&S.default.areLabelsOverlap(e,n[t-1],a.minSpacing,a.alignment)})&&o._applyLabelMode(t,n,e,i),"hide"===t&&o._checkBoundedLabelsOverlapping(n,r,e)}},_applyLabelMode:function(e,t,n,i,o){var a,r,s=this,l=s._majorTicks,u=s._options.label,c=i.rotationAngle;switch(e){case oe:u.userAlignment||(r=c<0?J:Q,c%90==0&&(r=ee)),v(l,t=o?t:s._getStep(n,c),function(e){e.label.rotate(c),e.labelRotationAngle=c,r&&(e.labelAlignment=r)});break;case"stagger":a=s._getMaxLabelHeight(n,i.staggeringSpacing),v(l,t-1,function(e,n){n/(t-1)%2!=0&&(e.labelOffset=a)});break;case"auto":case"_auto":2===t?s._applyLabelMode("stagger",t,n,i):s._applyLabelMode(oe,t,n,{rotationAngle:function(e,t){return 180*G.asin((e[0].height+t.minSpacing)/(e[1].x-e[0].x))/G.PI<45?-45:-90}(n,u)});break;default:v(l,t)}},getMarkerTrackers:F.noop,_drawDateMarkers:F.noop,_adjustDateMarkers:F.noop,coordsIn:F.noop,areCoordsOutsideAxis:F.noop,_getSkippedCategory:F.noop,_initAxisPositions:F.noop,_drawTitle:F.noop,_updateTitleCoords:F.noop,_adjustConstantLineLabels:F.noop,_createTranslator:function(){return new O.default.Translator2D({},{},{})},_updateTranslator:function(){var e=this._translator;e.update(e.getBusinessRange(),this._canvas||{},this._getTranslatorOptions())},_getTranslatorOptions:function(){var e=this._options;return{isHorizontal:this._isHorizontal,interval:e.semiDiscreteInterval,stick:this._getStick(),breaksSize:e.breakStyle?e.breakStyle.width:0}},getVisibleArea:function(){var e=this._getCanvasStartEnd();return[e.start,e.end].sort(function(e,t){return e-t})},_getCanvasStartEnd:function(){var e=this._isHorizontal,t=this._canvas||{},n=this._translator.getBusinessRange().invert,i=e?[t.left,t.width-t.right]:[t.height-t.bottom,t.top];return n&&i.reverse(),{start:i[0],end:i[1]}},_getScreenDelta:function(){var e=this._getCanvasStartEnd(),t=this._breaks,n=t?t.length:0;return j(e.start-e.end)-(n?t[n-1].cumulativeWidth:0)},_getScaleBreaks:function(){return[]},_adjustTitle:F.noop,_checkTitleOverflow:F.noop,getSpiderTicks:F.noop,setSpiderTicks:F.noop,_checkBoundedLabelsOverlapping:F.noop,drawScaleBreaks:F.noop,_visualRange:F.noop,applyVisualRangeSetter:F.noop,getCategoriesSorter:function(){var e=this._options.categoriesSortingMethod;return(0,k.isDefined)(e)?e:this._options.categories},_getAdjustedBusinessRange:function(){return this.adjustViewport(this._translator.getBusinessRange())}}},function(e,t,n){var i=n(11).map;e.exports={logarithmic:"logarithmic",discrete:"discrete",numeric:"numeric",left:"left",right:"right",top:"top",bottom:"bottom",center:"center",horizontal:"horizontal",vertical:"vertical",convertTicksToValues:function(e){return i(e||[],function(e){return e.value})},validateOverlappingMode:function(e){return"ignore"===e||"none"===e?e:"hide"},getTicksCountInRange:function(e,t,n){var i=1;if(e.length>1)for(;i<e.length&&!(Math.abs(e[i].coords[t]-e[0].coords[t])>=n);i++);return i},areLabelsOverlap:function(e,t,n,i){var o,a,r=e.x>t.x,s=e.y>t.y,l=e.x,u=t.x,c=e.width,d=t.width;return"left"===i?(l+=c/2,u+=d/2):"right"===i&&(l-=c/2,u-=d/2),o=r?u+d+n>l:l+c+n>u,a=s?t.y+t.height>e.y:e.y+e.height>t.y,o&&a}}},function(e,t,n){function i(e){return{isStartSide:e?function(e,t,n,i){return e<=t[t.length-1][i]}:function(e,t,n,i){return e<t[0][n]},isEndSide:e?function(e,t,n,i){return e>t[0][n]}:function(e,t,n,i){return e>=t[t.length-1][i]},isInBreak:e?function(e,t,n,i){return e>t[i]&&e<=t[n]}:function(e,t,n,i){return e>=t[n]&&e<t[i]},isBetweenBreaks:e?function(e,t,n,i,o){return e>=t[o]&&e<n[i]}:function(e,t,n,i,o){return e<t[i]&&e>=n[o]},getLength:e?function(e,t){return t.length-e.length}:function(e){return e.length},getBreaksSize:e?function(e,t){return t.cumulativeWidth-e.cumulativeWidth}:function(e){return e.cumulativeWidth}}}var o,a=n(0).extend,r=n(3).each,s=n(109).Range,l=n(772),u=n(773),c=n(774),d=n(775),h=n(11),p=n(1),f=h.getLog,g=h.getPower,_=p.isDefined,m=n(29).adjust,v=Math.abs,y=["width","height","left","top","bottom","right"],b=n(22).addInterval,x={to:function(e){var t=this._canvasOptions.startPoint+(this._options.conversionValue?e:Math.round(e));return t>this._canvasOptions.endPoint?this._canvasOptions.endPoint:t},from:function(e){return e-this._canvasOptions.startPoint}},w=function(e){return r(y,function(t,n){e[n]=parseInt(e[n])||0}),e};t.Translator2D=o=function(e,t,n){this.update(e,t,n)},o.prototype={constructor:o,reinit:function(){var e=this,t=e._options,n=e._businessRange,o=n.categories||[],r={},s=e._prepareCanvasOptions(),p=h.getCategoriesInfo(o,n.minVisible,n.maxVisible).categories,f=p.length;if(n.isEmpty())r=x;else switch(n.axisType){case"logarithmic":r=d;break;case"semidiscrete":r=u,s.ratioOfCanvasRange=s.canvasLength/(b(s.rangeMaxVisible,t.interval)-s.rangeMinVisible);break;case"discrete":r=l,e._categories=o,s.interval=e._getDiscreteInterval(t.addSpiderCategory?f+1:f,s),e._categoriesToPoints=function(e){var t={};return e.forEach(function(e,n){t[e.valueOf()]=n}),t}(o,s.invert),f&&(s.startPointIndex=e._categoriesToPoints[p[0].valueOf()],e.visibleCategories=p);break;default:"datetime"===n.dataType&&(r=c)}(e._oldMethods||[]).forEach(function(t){delete e[t]}),e._oldMethods=Object.keys(r),a(e,r),e._conversionValue=t.conversionValue?function(e){return e}:function(e){return Math.round(e)},e.sc={},e._checkingMethodsAboutBreaks=[i(!1),i(e.isInverted())],e._translateBreaks(),e._calculateSpecialValues()},_translateBreaks:function(){var e,t,n,i,o=this._breaks,a=this._options.breaksSize;if(void 0!==o)for(e=0,i=o.length;e<i;e++)t=o[e],n=this.translate(t.to),t.end=n,t.start=t.gapSize?n:this.isInverted()?n+a:n-a},_checkValueAboutBreaks:function(e,t,n,i,o){var a,r,s,l,u={length:0,breaksSize:void 0,inBreak:!1},c=e[e.length-1];if(o.isStartSide(t,e,n,i))return u;if(o.isEndSide(t,e,n,i))return{length:c.length,breaksSize:c.cumulativeWidth,inBreak:!1};for(a=0,r=e.length;a<r;a++){if(s=e[a],l=e[a-1],o.isInBreak(t,s,n,i)){u.inBreak=!0,u.break=s;break}if(l&&o.isBetweenBreaks(t,s,l,n,i)){u={length:o.getLength(l,c),breaksSize:o.getBreaksSize(l,c),inBreak:!1};break}}return u},isInverted:function(){return!(this._options.isHorizontal^this._businessRange.invert)},_getDiscreteInterval:function(e,t){var n=e-(this._options.stick?1:0);return n>0?t.canvasLength/n:t.canvasLength},_prepareCanvasOptions:function(){var e=this,t=e._businessRange,n=e._canvasOptions=function(e){var t=e.min,n=e.max,i=e.minVisible,o=e.maxVisible;return"logarithmic"===e.axisType&&(o=f(o,e.base),i=f(i,e.base),t=f(t,e.base),n=f(n,e.base)),{base:e.base,rangeMin:t,rangeMax:n,rangeMinVisible:i,rangeMaxVisible:o}}(t),i=e._canvas,o=e._breaks,a=void 0;return n.startPadding=i.startPadding||0,n.endPadding=i.endPadding||0,e._options.isHorizontal?(n.startPoint=i.left+n.startPadding,a=i.width,n.endPoint=i.width-i.right-n.endPadding,n.invert=t.invert):(n.startPoint=i.top+n.startPadding,a=i.height,n.endPoint=i.height-i.bottom-n.endPadding,n.invert=!t.invert),e.canvasLength=n.canvasLength=n.endPoint-n.startPoint,n.rangeDoubleError=Math.pow(10,g(n.rangeMax-n.rangeMin)-g(a)-2),n.ratioOfCanvasRange=n.canvasLength/(n.rangeMaxVisible-n.rangeMinVisible),void 0!==o&&(n.ratioOfCanvasRange=(n.canvasLength-o[o.length-1].cumulativeWidth)/(n.rangeMaxVisible-n.rangeMinVisible-o[o.length-1].length)),n},updateCanvas:function(e){this._canvas=w(e),this.reinit()},updateBusinessRange:function(e){var t=this,n=e.breaks||[];t._businessRange=function(e){function t(t,n){!_(e[t])&&_(e[n])&&(e[t]=e[n])}return e instanceof s||(e=new s(e)),t("minVisible","min"),t("maxVisible","max"),e}(e),t._breaks=n.length?function(e,t){var n,i,o,a,r="logarithmic"===t.axisType?function(e){return f(e,t.base)}:function(e){return e},s=[],l=e.length,u=0;for(a=0;a<l;a++)i=r((n=e[a]).from),u+=(o=r(n.to))-i,s.push({trFrom:i,trTo:o,from:n.from,to:n.to,length:u,cumulativeWidth:n.cumulativeWidth});return s}(n,t._businessRange):void 0,t.reinit()},update:function(e,t,n){var i=this;i._options=a(i._options||{},n),i._canvas=w(t),i.updateBusinessRange(e)},getBusinessRange:function(){return this._businessRange},getEventScale:function(e){return e.deltaScale||1},getCanvasVisibleArea:function(){return{min:this._canvasOptions.startPoint,max:this._canvasOptions.endPoint}},_calculateSpecialValues:function(){var e=this,t=e._canvasOptions,n=t.startPoint-t.startPadding,i=t.endPoint+t.endPadding,o=e._businessRange,a=o.minVisible,r=o.maxVisible,s=n+t.canvasLength/2,l=void 0;if(a<0&&r>0&&a!==r&&(l=e.translate(0,1)),!_(l)){var u=o.invert^(a<0&&r<=0);l=e._options.isHorizontal?u?i:n:u?n:i}e.sc={canvas_position_default:l,canvas_position_left:n,canvas_position_top:n,canvas_position_center:s,canvas_position_middle:s,canvas_position_right:i,canvas_position_bottom:i,canvas_position_start:t.invert?i:n,canvas_position_end:t.invert?n:i}},translateSpecialCase:function(e){return this.sc[e]},_calculateProjection:function(e){var t=this._canvasOptions;return t.invert?t.endPoint-e:t.startPoint+e},_calculateUnProjection:function(e){var t=this._canvasOptions;return t.invert?t.rangeMaxVisible.valueOf()-e:t.rangeMinVisible.valueOf()+e},getMinBarSize:function(e){var t=this.getCanvasVisibleArea(),n=this.from(t.min+e);return v(this.from(t.min)-(_(n)?n:this.from(t.max)))},checkMinBarSize:function(e,t,n){return v(e)<t?e>=0?t:-t:e},translate:function(e,t){var n=this.translateSpecialCase(e);return _(n)?Math.round(n):isNaN(e)?null:this.to(e,t)},getInterval:function(e){var t=this._canvasOptions;return(e=_(e)?e:this._businessRange.interval)?Math.round(t.ratioOfCanvasRange*e):Math.round(t.endPoint-t.startPoint)},zoom:function(e,t,n){var i=this._canvasOptions;if(i.rangeMinVisible.valueOf()===i.rangeMaxVisible.valueOf()&&0!==e)return this.zoomZeroLengthRange(e,t);var o=i.startPoint,a=i.endPoint,r=this.isInverted(),s=(o+e)/t,l=(a+e)/t;n=n||{};var u=this.to(r?n.endValue:n.startValue),c=this.to(r?n.startValue:n.endValue),d=void 0,h=void 0;return u>s&&(l-=s-u,s=u,d=r?n.endValue:n.startValue),c<l&&(s-=l-c,l=c,h=r?n.startValue:n.endValue),c-u<l-s&&(s=u,l=c),t=(o+(e=(a-o)*s/(l-s)-o))/s||1,(d=_(d)?d:m(this.from(s,1)))>(h=_(h)?h:m(this.from(l,-1)))?(d=d>n.endValue?n.endValue:d,h=h<n.startValue?n.startValue:h):(d=d<n.startValue?n.startValue:d,h=h>n.endValue?n.endValue:h),{min:d,max:h,translate:m(e),scale:m(t)}},zoomZeroLengthRange:function(e,t){var n=this._canvasOptions,i=n.rangeMin,o=n.rangeMax,a=(o.valueOf()!==i.valueOf()?o.valueOf()-i.valueOf():v(n.rangeMinVisible.valueOf()-i.valueOf()))/n.canvasLength,r=p.isDate(o)||p.isDate(i),s="logarithmic"===this._businessRange.axisType,l=n.rangeMinVisible.valueOf()-a,u=n.rangeMaxVisible.valueOf()+a;return{min:l=s?m(Math.pow(n.base,l)):r?new Date(l):l,max:u=s?m(Math.pow(n.base,u)):r?new Date(u):u,translate:e,scale:t}},getMinScale:function(e){return e?1.1:.9},getScale:function(e,t){var n=this._canvasOptions;return n.rangeMax===n.rangeMin?1:(e=_(e)?this._fromValue(e):n.rangeMin,t=_(t)?this._fromValue(t):n.rangeMax,(n.rangeMax-n.rangeMin)/Math.abs(e-t))},isValid:function(e){var t=this._canvasOptions;return null!==(e=this._fromValue(e))&&!isNaN(e)&&e.valueOf()+t.rangeDoubleError>=t.rangeMin&&e.valueOf()-t.rangeDoubleError<=t.rangeMax},getCorrectValue:function(e,t){var n,i=this,o=i._breaks;return e=i._fromValue(e),i._breaks&&!0===(n=i._checkValueAboutBreaks(o,e,"trFrom","trTo",i._checkingMethodsAboutBreaks[0])).inBreak?i._toValue(t>0?n.break.trTo:n.break.trFrom):i._toValue(e)},to:function(e,t){var n=this.getBusinessRange();if(_(n.maxVisible)&&_(n.minVisible)&&n.maxVisible.valueOf()===n.minVisible.valueOf())return _(e)&&n.maxVisible.valueOf()===e.valueOf()?this.translateSpecialCase(0===e?"canvas_position_default":"canvas_position_middle"):null;e=this._fromValue(e);var i=this,o=i._canvasOptions,a=i._breaks,r={length:0},s=0;return void 0!==a&&(r=i._checkValueAboutBreaks(a,e,"trFrom","trTo",i._checkingMethodsAboutBreaks[0]),s=_(r.breaksSize)?r.breaksSize:0),!0===r.inBreak?t>0?r.break.start:t<0?r.break.end:null:i._conversionValue(i._calculateProjection((e-o.rangeMinVisible-r.length)*o.ratioOfCanvasRange+s))},from:function(e,t){var n=this,i=n._breaks,o={length:0},a=n._canvasOptions,r=a.startPoint,s=0;return void 0!==i&&(o=n._checkValueAboutBreaks(i,e,"start","end",n._checkingMethodsAboutBreaks[1]),s=_(o.breaksSize)?o.breaksSize:0),!0===o.inBreak?t>0?n._toValue(o.break.trTo):t<0?n._toValue(o.break.trFrom):null:n._toValue(n._calculateUnProjection((e-r-s)/a.ratioOfCanvasRange+o.length))},isValueProlonged:!1,getRange:function(){return[this._toValue(this._canvasOptions.rangeMin),this._toValue(this._canvasOptions.rangeMax)]},getScreenRange:function(){return[this._canvasOptions.startPoint,this._canvasOptions.endPoint]},add:function(e,t,n){return this._add(e,t,(this._businessRange.invert?-1:1)*n)},_add:function(e,t,n){return this._toValue(this._fromValue(e)+t*n)},_fromValue:function(e){return null!==e?Number(e):null},_toValue:function(e){return null!==e?Number(e):null},ratioOfCanvasRange:function(){return this._canvasOptions.ratioOfCanvasRange}}},function(e,t,n){var i=n(4).noop,o=n(3).each,a=isFinite,r=Number,s=Math.round,l=n(146),u=l.formatValue,c=l.getSampleText,d=n(11).patchFontOptions,h=n(0).extend,p=n(14).inherit({ctor:function(e){var t=this;o(e,function(e,n){t["_"+e]=n}),t._init()},dispose:function(){var e=this;return e._dispose(),o(e,function(t){e[t]=null}),e},getOffset:function(){return r(this._options.offset)||0}}),f=p.inherit({_init:function(){var e=this;e._rootElement=e._createRoot().linkOn(e._owner,{name:"value-indicator",after:"core"}),e._trackerElement=e._createTracker()},_dispose:function(){this._rootElement.linkOff()},_setupAnimation:function(){var e=this;e._options.animation&&(e._animation={step:function(t){e._actualValue=e._animation.start+e._animation.delta*t,e._actualPosition=e._translator.translate(e._actualValue),e._move()},duration:e._options.animation.duration>0?r(e._options.animation.duration):0,easing:e._options.animation.easing})},_runAnimation:function(e){var t=this,n=t._animation;n.start=t._actualValue,n.delta=e-t._actualValue,t._rootElement.animate({_:0},{step:n.step,duration:n.duration,easing:n.easing})},_createRoot:function(){return this._renderer.g().attr({class:this._className})},_createTracker:function(){return this._renderer.path([],"area")},_getTrackerSettings:i,clean:function(){var e=this;return e._animation&&e._rootElement.stopAnimation(),e._rootElement.linkRemove().clear(),e._clear(),e._tracker.detach(e._trackerElement),e._options=e.enabled=e._animation=null,e},render:function(e){var t=this;return t.type=e.type,t._options=e,t._actualValue=t._currentValue=t._translator.adjust(t._options.currentValue),t.enabled=t._isEnabled(),t.enabled&&(t._setupAnimation(),t._rootElement.attr({fill:t._options.color}).linkAppend(),t._tracker.attach(t._trackerElement,t,t._trackerInfo)),t},resize:function(e){var t=this;return t._rootElement.clear(),t._clear(),t.visible=t._isVisible(e),t.visible&&(h(t._options,e),t._actualPosition=t._translator.translate(t._actualValue),t._render(),t._trackerElement.attr(t._getTrackerSettings()),t._move()),t},value:function(e,t){var n,i=this,o=this._rootElement,r=null;return void 0===e?i._currentValue:(null===e?(r="hidden",i._currentValue=e):(n=i._translator.adjust(e),i._currentValue!==n&&a(n)&&(i._currentValue=n,i.visible&&(i._animation&&!t?i._runAnimation(n):(i._actualValue=n,i._actualPosition=i._translator.translate(n),i._move())))),o.attr({visibility:r}),i)},_isEnabled:null,_isVisible:null,_render:null,_clear:null,_move:null}),g={};g["right-bottom"]=g.rb=[0,-1,-1,0,0,1,1,0],g["bottom-right"]=g.br=[-1,0,0,-1,1,0,0,1],g["left-bottom"]=g.lb=[0,-1,1,0,0,1,-1,0],g["bottom-left"]=g.bl=[1,0,0,-1,-1,0,0,1],g["left-top"]=g.lt=[0,1,1,0,0,-1,-1,0],g["top-left"]=g.tl=[1,0,0,1,-1,0,0,-1],g["right-top"]=g.rt=[0,1,-1,0,0,-1,1,0],g["top-right"]=g.tr=[-1,0,0,1,1,0,0,-1];var _=f.inherit({_move:function(){var e,t,n=this,i=n._getTextCloudOptions(),o=u(n._actualValue,n._options.text);n._text.attr({text:o}),e=n._text.getBBox(),t=function(e){var t,n,i=e.x,o=e.y,a=g[e.type],r=e.textWidth+2*e.horMargin,l=e.textHeight+2*e.verMargin,u=i,c=o;return t=n=e.tailLength,1&a[0]?n=Math.min(n,l/3):t=Math.min(t,r/3),{cx:s(u+a[0]*t+(a[0]+a[2])*r/2),cy:s(c+a[1]*n+(a[1]+a[3])*l/2),points:[s(i),s(o),s(i+=a[0]*(r+t)),s(o+=a[1]*(l+n)),s(i+=a[2]*r),s(o+=a[3]*l),s(i+=a[4]*r),s(o+=a[5]*l),s(i+=a[6]*(r-t)),s(o+=a[7]*(l-n))]}}({x:i.x,y:i.y,textWidth:e.width||o.length*n._textUnitWidth,textHeight:e.height||n._textHeight,horMargin:n._options.horizontalOffset,verMargin:n._options.verticalOffset,tailLength:n._options.arrowLength,type:i.type}),n._text.attr({x:t.cx,y:t.cy+n._textVerticalOffset}),n._cloud.attr({points:t.points}),n._trackerElement&&n._trackerElement.attr({points:t.points})},_measureText:function(){var e,t,n,i=this;i._textVerticalOffset||(e=i._createRoot().append(i._owner),n=c(i._translator,i._options.text),t=i._renderer.text(n,0,0).attr({align:"center"}).css(d(i._options.text.font)).append(e).getBBox(),e.remove(),i._textVerticalOffset=-t.y-t.height/2,i._textWidth=t.width,i._textHeight=t.height,i._textUnitWidth=i._textWidth/n.length,i._textFullWidth=i._textWidth+2*i._options.horizontalOffset,i._textFullHeight=i._textHeight+2*i._options.verticalOffset)},_render:function(){var e=this;e._measureText(),e._cloud=e._cloud||e._renderer.path([],"area").append(e._rootElement),e._text=e._text||e._renderer.text().append(e._rootElement),e._text.attr({align:"center"}).css(d(e._options.text.font))},_clear:function(){delete this._cloud,delete this._text},getTooltipParameters:function(){var e=this._getTextCloudOptions();return{x:e.x,y:e.y,value:this._currentValue,color:this._options.color}}}),m=f.inherit({_measureText:function(){var e,t,n=this;n._hasText=n._isTextVisible(),n._hasText&&!n._textVerticalOffset&&(e=n._createRoot().append(n._owner),t=n._renderer.text(c(n._translator,n._options.text),0,0).attr({class:"dxg-text",align:"center"}).css(d(n._options.text.font)).append(e).getBBox(),e.remove(),n._textVerticalOffset=-t.y-t.height/2,n._textWidth=t.width,n._textHeight=t.height)},_move:function(){var e=this;e._updateBarItemsPositions(),e._hasText&&(e._text.attr({text:u(e._actualValue,e._options.text)}),e._updateTextPosition(),e._updateLinePosition())},_updateBarItems:function(){var e,t,n=this,i=n._options,o=n._translator;n._setBarSides(),n._startPosition=o.translate(o.getDomainStart()),n._endPosition=o.translate(o.getDomainEnd()),n._basePosition=o.translate(i.baseValue),n._space=n._getSpace(),"none"!==(e=i.backgroundColor||"none")&&n._space>0?t=i.containerBackgroundColor||"none":(n._space=0,t="none"),n._backItem1.attr({fill:e}),n._backItem2.attr({fill:e}),n._spaceItem1.attr({fill:t}),n._spaceItem2.attr({fill:t})},_getSpace:function(){return 0},_updateTextItems:function(){var e=this;e._hasText?(e._line=e._line||e._renderer.path([],"line").attr({class:"dxg-main-bar","stroke-linecap":"square"}).append(e._rootElement),e._text=e._text||e._renderer.text("",0,0).attr({class:"dxg-text"}).append(e._rootElement),e._text.attr({align:e._getTextAlign()}).css(e._getFontOptions()),e._setTextItemsSides()):(e._line&&(e._line.remove(),delete e._line),e._text&&(e._text.remove(),delete e._text))},_isTextVisible:function(){return!1},_getTextAlign:function(){return"center"},_getFontOptions:function(){var e=this._options,t=e.text.font;return t&&t.color||(t=h({},t,{color:e.color})),d(t)},_updateBarItemsPositions:function(){var e=this,t=e._getPositions();e._backItem1.attr(e._buildItemSettings(t.start,t.back1)),e._backItem2.attr(e._buildItemSettings(t.back2,t.end)),e._spaceItem1.attr(e._buildItemSettings(t.back1,t.main1)),e._spaceItem2.attr(e._buildItemSettings(t.main2,t.back2)),e._mainItem.attr(e._buildItemSettings(t.main1,t.main2)),e._trackerElement&&e._trackerElement.attr(e._buildItemSettings(t.main1,t.main2))},_render:function(){var e=this;e._measureText(),e._backItem1||(e._backItem1=e._createBarItem(),e._backItem1.attr({class:"dxg-back-bar"})),e._backItem2||(e._backItem2=e._createBarItem(),e._backItem2.attr({class:"dxg-back-bar"})),e._spaceItem1||(e._spaceItem1=e._createBarItem(),e._spaceItem1.attr({class:"dxg-space-bar"})),e._spaceItem2||(e._spaceItem2=e._createBarItem(),e._spaceItem2.attr({class:"dxg-space-bar"})),e._mainItem||(e._mainItem=e._createBarItem(),e._mainItem.attr({class:"dxg-main-bar"})),e._updateBarItems(),e._updateTextItems()},_clear:function(){var e=this;delete e._backItem1,delete e._backItem2,delete e._spaceItem1,delete e._spaceItem2,delete e._mainItem,delete e._hasText,delete e._line,delete e._text},getTooltipParameters:function(){var e=this._getTooltipPosition();return{x:e.x,y:e.y,value:this._currentValue,color:this._options.color,offset:0}}});t.BaseElement=p,t.BaseIndicator=f,t.BaseTextCloudMarker=_,t.BaseRangeBar=m},function(e,t,n){var i=n(11).patchFontOptions;t.buildRectAppearance=function(e){var t=e.border||{};return{fill:e.color,opacity:e.opacity,stroke:t.color,"stroke-width":t.width,"stroke-opacity":t.opacity,hatching:e.hatching}},t.buildTextAppearance=function(e,t){return{attr:e["stroke-width"]?{stroke:e.stroke,"stroke-width":e["stroke-width"],"stroke-opacity":e["stroke-opacity"],filter:t}:{},css:i(e.font)}}},function(e,t,n){function i(e){this._initHandlers(e)}var o=n(9).eventData,a=n(12),r=n(19).name,s=n(24).down,l=n(24).move,u=n(5);i.prototype={constructor:i,_initHandlers:function(e){function t(t){!function(e,t){var n=t.getData(e);n>=0&&t.click({node:t.getNode(n),coords:t.getCoords(e),event:e})}(t,e)}function n(t){d?d=!1:(void 0!==e.getData(t)&&(d=!0),i(t))}function i(t){(function(e,t){var n=t.getData(e);n>=0?t.getNode(n).setHover():t.widget.clearHover()})(t,e),e.widget._getOption("tooltip").enabled&&function(e,t){var n,i=t.getData(e,!0);i>=0?(n=o(e),t.getNode(i).showTooltip([n.x,n.y])):t.widget.hideTooltip()}(t,e)}var c=a.getDocument();e.getCoords=function(t){var n=o(t),i=e.widget._renderer.getRootOffset();return[n.x-i.left,n.y-i.top]},e.root.on(r,t),e.root.on(s,n),u.on(c,s,n),u.on(c,l,i),this._disposeHandlers=function(){e.root.off(r,t),e.root.off(s,n),u.off(c,s,n),u.off(c,l,i)};var d=!1},dispose:function(){this._disposeHandlers()}},e.exports.Tracker=i},function(e,t,n){function i(e){return e.toString().split("").reverse().join("")}function o(e){return e?e.length-e.replace(/[#]/g,"").length:0}function a(e){return e?e.length-e.replace(/[0]/g,"").length:0}function r(e,t,n){if(!e)return"";for(e.length>n&&(e=e.substr(0,n));e.length>t&&"0"===e.slice(-1);)e=e.substr(0,e.length-1);for(;e.length<t;)e+="0";return e}function s(e,t){return e.split(p).map(function(e,n){var i=n%2;return!e&&i?p:i?e:e.replace(/[,#0]+/,t)}).join("")}function l(e,t,n){var i=(t?.01:1)*parseFloat(e)||0;return n?-i:i}function u(e,t,n,i){var o,a,r,s=e;do{r&&(o=a.length===r.length?"0":"1",e=i?o+e:e+o),a=r||t(l(s,n)),r=t(l(s=i?"1"+s:s+"1",n))}while(a!==r&&(i?a.length===r.length:a.length<=r.length));if(i&&r.length>a.length){var u=-1===t(12345).indexOf("12345");do{e="1"+e}while(u&&l(e,n)<1e5)}return e}function c(e,t,n,i){var o=t(l(e,n,i)),a=e.split("."),r=t(l(a[0]+".3"+a[1].slice(1),n,i)).indexOf("3")-1;return o=o.replace(/(\d)\D(\d)/g,"$1,$2"),r>=0&&(o=o.slice(0,r)+"."+o.slice(r+1)),o=o.replace(/1+/,"1").replace(/1/g,"#"),n||(o=o.replace("%","'%'")),o}var d=n(29).fitIntoRange,h={thousandsSeparator:",",decimalSeparator:"."},p="'",f=15;t.getFormatter=function(e,t){return t=t||h,function(n){if("number"!=typeof n||isNaN(n))return"";var l=n>0||1/n==1/0,u=function(e){var t=e.split(";");return 1===t.length&&t.push("-"+t[0]),t}(e)[l?0:1];(function(e){return-1!==e.indexOf("%")&&!e.match(/'[^']*%[^']*'/g)})(u)&&(n*=100),l||(n=-n);var c=function(e){for(var t=!1,n=0;n<e.length;n++)if("'"===e[n]&&(t=!t),"."===e[n]&&!t)return n;return e.length}(u),h=[u.substr(0,c),u.substr(c+1)],p=a(h[1]),g=p+o(h[1]),_=a(h[0]),m=o(h[0])?void 0:_,v=Math.floor(n).toString().length,y=d(g,0,f-v),b=function(e){return e.split(",").slice(1).map(function(e){return e.split("").filter(function(e){return"#"===e||"0"===e}).length})}(h[0]).reverse(),x=n.toFixed(y<0?0:y).split("."),w=r(i(x[0]),_,m),C=r(x[1],p,g);w=function(e,t,n){if(!t.length)return e;for(var i=[],o=0;e;){var a=t[o];i.push(e.slice(0,a)),e=e.slice(a),o<t.length-1&&o++}return i.join(n)}(w,b,t.thousandsSeparator);var k=i(s(i(h[0]),w)),S=g?s(h[1],C):"";return k+(S.match(/\d/)?t.decimalSeparator:"")+S}},t.getFormat=function(e){var t=".",n=e(1).indexOf("100")>=0;t=u(t,e,n,!0);var i=c(t=u(t,e,n,!1),e,n,!1),o=c(t,e,n,!0);return o==="-"+i?i:i+";"+o}},function(e,t,n){var i=n(85).locale,o={ar:1,bg:2,ca:3,"zh-Hans":4,cs:5,da:6,de:7,el:8,en:9,es:10,fi:11,fr:12,he:13,hu:14,is:15,it:16,ja:17,ko:18,nl:19,no:20,pl:21,pt:22,rm:23,ro:24,ru:25,hr:26,sk:27,sq:28,sv:29,th:30,tr:31,ur:32,id:33,uk:34,be:35,sl:36,et:37,lv:38,lt:39,tg:40,fa:41,vi:42,hy:43,az:44,eu:45,hsb:46,mk:47,tn:50,xh:52,zu:53,af:54,ka:55,fo:56,hi:57,mt:58,se:59,ga:60,ms:62,kk:63,ky:64,sw:65,tk:66,uz:67,tt:68,bn:69,pa:70,gu:71,or:72,ta:73,te:74,kn:75,ml:76,as:77,mr:78,sa:79,mn:80,bo:81,cy:82,km:83,lo:84,gl:86,kok:87,syr:90,si:91,iu:93,am:94,tzm:95,ne:97,fy:98,ps:99,fil:100,dv:101,ha:104,yo:106,quz:107,nso:108,ba:109,lb:110,kl:111,ig:112,ii:120,arn:122,moh:124,br:126,ug:128,mi:129,oc:130,co:131,gsw:132,sah:133,qut:134,rw:135,wo:136,prs:140,gd:145,"ar-SA":1025,"bg-BG":1026,"ca-ES":1027,"zh-TW":1028,"cs-CZ":1029,"da-DK":1030,"de-DE":1031,"el-GR":1032,"en-US":1033,"fi-FI":1035,"fr-FR":1036,"he-IL":1037,"hu-HU":1038,"is-IS":1039,"it-IT":1040,"ja-JP":1041,"ko-KR":1042,"nl-NL":1043,"nb-NO":1044,"pl-PL":1045,"pt-BR":1046,"rm-CH":1047,"ro-RO":1048,"ru-RU":1049,"hr-HR":1050,"sk-SK":1051,"sq-AL":1052,"sv-SE":1053,"th-TH":1054,"tr-TR":1055,"ur-PK":1056,"id-ID":1057,"uk-UA":1058,"be-BY":1059,"sl-SI":1060,"et-EE":1061,"lv-LV":1062,"lt-LT":1063,"tg-Cyrl-TJ":1064,"fa-IR":1065,"vi-VN":1066,"hy-AM":1067,"az-Latn-AZ":1068,"eu-ES":1069,"hsb-DE":1070,"mk-MK":1071,"tn-ZA":1074,"xh-ZA":1076,"zu-ZA":1077,"af-ZA":1078,"ka-GE":1079,"fo-FO":1080,"hi-IN":1081,"mt-MT":1082,"se-NO":1083,"ms-MY":1086,"kk-KZ":1087,"ky-KG":1088,"sw-KE":1089,"tk-TM":1090,"uz-Latn-UZ":1091,"tt-RU":1092,"bn-IN":1093,"pa-IN":1094,"gu-IN":1095,"or-IN":1096,"ta-IN":1097,"te-IN":1098,"kn-IN":1099,"ml-IN":1100,"as-IN":1101,"mr-IN":1102,"sa-IN":1103,"mn-MN":1104,"bo-CN":1105,"cy-GB":1106,"km-KH":1107,"lo-LA":1108,"gl-ES":1110,"kok-IN":1111,"syr-SY":1114,"si-LK":1115,"iu-Cans-CA":1117,"am-ET":1118,"ne-NP":1121,"fy-NL":1122,"ps-AF":1123,"fil-PH":1124,"dv-MV":1125,"ha-Latn-NG":1128,"yo-NG":1130,"quz-BO":1131,"nso-ZA":1132,"ba-RU":1133,"lb-LU":1134,"kl-GL":1135,"ig-NG":1136,"ii-CN":1144,"arn-CL":1146,"moh-CA":1148,"br-FR":1150,"ug-CN":1152,"mi-NZ":1153,"oc-FR":1154,"co-FR":1155,"gsw-FR":1156,"sah-RU":1157,"qut-GT":1158,"rw-RW":1159,"wo-SN":1160,"prs-AF":1164,"gd-GB":1169,"ar-IQ":2049,"zh-CN":2052,"de-CH":2055,"en-GB":2057,"es-MX":2058,"fr-BE":2060,"it-CH":2064,"nl-BE":2067,"nn-NO":2068,"pt-PT":2070,"sr-Latn-CS":2074,"sv-FI":2077,"az-Cyrl-AZ":2092,"dsb-DE":2094,"se-SE":2107,"ga-IE":2108,"ms-BN":2110,"uz-Cyrl-UZ":2115,"bn-BD":2117,"mn-Mong-CN":2128,"iu-Latn-CA":2141,"tzm-Latn-DZ":2143,"quz-EC":2155,"ar-EG":3073,"zh-HK":3076,"de-AT":3079,"en-AU":3081,"es-ES":3082,"fr-CA":3084,"sr-Cyrl-CS":3098,"se-FI":3131,"quz-PE":3179,"ar-LY":4097,"zh-SG":4100,"de-LU":4103,"en-CA":4105,"es-GT":4106,"fr-CH":4108,"hr-BA":4122,"smj-NO":4155,"ar-DZ":5121,"zh-MO":5124,"de-LI":5127,"en-NZ":5129,"es-CR":5130,"fr-LU":5132,"bs-Latn-BA":5146,"smj-SE":5179,"ar-MA":6145,"en-IE":6153,"es-PA":6154,"fr-MC":6156,"sr-Latn-BA":6170,"sma-NO":6203,"ar-TN":7169,"en-ZA":7177,"es-DO":7178,"sr-Cyrl-BA":7194,"sma-SE":7227,"ar-OM":8193,"en-JM":8201,"es-VE":8202,"bs-Cyrl-BA":8218,"sms-FI":8251,"ar-YE":9217,"en-029":9225,"es-CO":9226,"sr-Latn-RS":9242,"smn-FI":9275,"ar-SY":10241,"en-BZ":10249,"es-PE":10250,"sr-Cyrl-RS":10266,"ar-JO":11265,"en-TT":11273,"es-AR":11274,"sr-Latn-ME":11290,"ar-LB":12289,"en-ZW":12297,"es-EC":12298,"sr-Cyrl-ME":12314,"ar-KW":13313,"en-PH":13321,"es-CL":13322,"ar-AE":14337,"es-UY":14346,"ar-BH":15361,"es-PY":15370,"ar-QA":16385,"en-IN":16393,"es-BO":16394,"en-MY":17417,"es-SV":17418,"en-SG":18441,"es-HN":18442,"es-NI":19466,"es-PR":20490,"es-US":21514,"bs-Cyrl":25626,"bs-Latn":26650,"sr-Cyrl":27674,"sr-Latn":28698,smn:28731,"az-Cyrl":29740,sms:29755,zh:30724,nn:30740,bs:30746,"az-Latn":30764,sma:30779,"uz-Cyrl":30787,"mn-Cyrl":30800,"iu-Cans":30813,"zh-Hant":31748,nb:31764,sr:31770,"tg-Cyrl":31784,dsb:31790,smj:31803,"uz-Latn":31811,"mn-Mong":31824,"iu-Latn":31837,"tzm-Latn":31839,"ha-Latn":31848};t.getLanguageId=function(){return o[i()]}},function(e,t,n){var i=n(7).getWindow();t.sessionStorage=function(){var e;try{e=i.sessionStorage}catch(e){}return e}},function(e,t,n){var i=n(2),o=n(14),a=n(0).extend,r=n(4),s=n(1),l=n(3),u=n(39),c=n(178),d=n(6),h=d.when,p=d.Deferred,f={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},g="dx-animating",_=o.inherit({ctor:function(){this._accumulatedDelays={enter:0,leave:0},this._animations=[],this.reset()},_createAnimations:function(e,t,n,o){var a,r=this,s=[];return n=n||{},(a=this._prepareElementAnimationConfig(t,n,o))&&e.each(function(){var e=r._createAnimation(i(this),a,n);e&&(e.element.addClass(g),e.setup(),s.push(e))}),s},_prepareElementAnimationConfig:function(e,t,n){var i;if("string"==typeof e){var o=e;e=c.presets.getPreset(o)}if(e)if(s.isFunction(e[n]))i=e[n];else{if(!(i=a({skipElementInitialStyles:!0,cleanupWhen:this._completePromise},e,t)).type||"css"===i.type){var r="dx-"+n,l=(i.extraCssClasses?" "+i.extraCssClasses:"")+f[i.direction];i.type="css",i.from=(i.from||r)+l,i.to=i.to||r+"-active"}i.staggerDelay=i.staggerDelay||0,i.delay=i.delay||0,i.staggerDelay&&(i.delay+=this._accumulatedDelays[n],this._accumulatedDelays[n]+=i.staggerDelay)}else i=void 0;return i},_createAnimation:function(e,t,n){var i;return s.isPlainObject(t)?i=u.createAnimation(e,t):s.isFunction(t)&&(i=t(e,n)),i},_startAnimations:function(){for(var e=this._animations,t=0;t<e.length;t++)e[t].start()},_stopAnimations:function(e){for(var t=this._animations,n=0;n<t.length;n++)t[n].stop(e)},_clearAnimations:function(){for(var e=this._animations,t=0;t<e.length;t++)e[t].element.removeClass(g);this._animations.length=0},reset:function(){this._accumulatedDelays.enter=0,this._accumulatedDelays.leave=0,this._clearAnimations(),this._completeDeferred=new p,this._completePromise=this._completeDeferred.promise()},enter:function(e,t,n){var i=this._createAnimations(e,t,n,"enter");this._animations.push.apply(this._animations,i)},leave:function(e,t,n){var i=this._createAnimations(e,t,n,"leave");this._animations.push.apply(this._animations,i)},start:function(){var e,t=this;if(this._animations.length){var n=l.map(this._animations,function(e){var t=new p;return e.deferred.always(function(){t.resolve()}),t.promise()});e=h.apply(i,n).always(function(){t._completeDeferred.resolve(),t.reset()}),r.executeAsync(function(){t._startAnimations()})}else t.reset(),e=(new p).resolve().promise();return e},stop:function(e){this._stopAnimations(e)}});t.TransitionExecutor=_},function(e,t,n){var i=n(5);t.on=i.on,t.one=i.one,t.off=i.off,t.trigger=i.trigger,t.triggerHandler=i.triggerHandler,t.Event=i.Event},function(e,t,n){var i=n(14),o=n(460),a=n(461),r=n(0).extend,s=n(4).noop,l=n(1).isDefined,u=n(6).Deferred;e.exports=i.inherit({ctor:function(e){this.options=r(this._getDefaultOptions(),e,{selectedItemKeys:e.selectedKeys||[]}),this._selectionStrategy=this.options.deferred?new o(this.options):new a(this.options),this._focusedItemIndex=-1,this.options.equalByReference||this._selectionStrategy.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_getDefaultOptions:function(){return{deferred:!1,equalByReference:!1,mode:"multiple",selectedItems:[],selectionFilter:[],maxFilterLengthInRequest:0,onSelectionChanged:s,key:s,keyOf:function(e){return e},load:function(){return(new u).resolve([])},totalCount:function(){return-1},isSelectableItem:function(){return!0},isItemSelected:function(){return!1},getItemData:function(e){return e},dataFields:s,filter:s}},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){return this.selectedItemKeys(e)},select:function(e){return this.selectedItemKeys(e,!0)},deselect:function(e){return this.selectedItemKeys(e,!0,!0)},selectedItemKeys:function(e,t,n,i){return e=e||[],e=Array.isArray(e)?e:[e],this.validate(),this._selectionStrategy.selectedItemKeys(e,t,n,i)},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){var n,i=this.options.plainItems(),o=i[e];if(!this.isSelectable()||!this.isDataItem(o))return!1;var a=this.options.getItemData(o),r=this.options.keyOf(a);if((t=t||{}).shift&&"multiple"===this.options.mode&&this._focusedItemIndex>=0)n=this.changeItemSelectionWhenShiftKeyPressed(e,i);else if(t.control){this._resetItemSelectionWhenShiftKeyPressed();var s=this._selectionStrategy.isItemDataSelected(a);"single"===this.options.mode&&this.clearSelectedItems(),s?this._removeSelectedItem(r):this._addSelectedItem(a,r),n=!0}else{this._resetItemSelectionWhenShiftKeyPressed();var l=this._selectionStrategy.equalKeys(this.options.selectedItemKeys[0],r);1===this.options.selectedItemKeys.length&&l||(this._setSelectedItems([r],[a]),n=!0)}return n?(this._focusedItemIndex=e,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)},isItemSelected:function(e){return this._selectionStrategy.isItemKeySelected(e)},_resetItemSelectionWhenShiftKeyPressed:function(){delete this._shiftFocusedItemIndex},_resetFocusedItemIndex:function(){this._focusedItemIndex=-1},changeItemSelectionWhenShiftKeyPressed:function(e,t){var n,i,o,a,r=!1,s=this.options.keyOf,u=t[this._focusedItemIndex],c=this.options.getItemData(u),d=s(c),h=u&&this.isItemDataSelected(c);if(l(this._shiftFocusedItemIndex)||(this._shiftFocusedItemIndex=this._focusedItemIndex),this._shiftFocusedItemIndex!==this._focusedItemIndex)for(n=this._focusedItemIndex<this._shiftFocusedItemIndex?1:-1,i=this._focusedItemIndex;i!==this._shiftFocusedItemIndex;i+=n)this.isDataItem(t[i])&&(a=s(this.options.getItemData(t[i])),this._removeSelectedItem(a),r=!0);if(e!==this._shiftFocusedItemIndex)for(n=e<this._shiftFocusedItemIndex?1:-1,i=e;i!==this._shiftFocusedItemIndex;i+=n)this.isDataItem(t[i])&&(a=s(o=this.options.getItemData(t[i])),this._addSelectedItem(o,a),r=!0);return this.isDataItem(u)&&!h&&(this._addSelectedItem(c,d),r=!0),r},clearSelectedItems:function(){this._setSelectedItems([],[])},selectAll:function(e){return this._resetFocusedItemIndex(),e?this._onePageSelectAll(!1):this.selectedItemKeys([],!0,!1,!0)},deselectAll:function(e){return this._resetFocusedItemIndex(),e?this._onePageSelectAll(!0):this.selectedItemKeys([],!0,!0,!0)},_onePageSelectAll:function(e){for(var t=this.options.plainItems(),n=0;n<t.length;n++){var i=t[n];if(this.isDataItem(i)){var o=this.options.getItemData(i),a=this.options.keyOf(o),r=this.isItemSelected(a);r||e||this._addSelectedItem(o,a),r&&e&&this._removeSelectedItem(a)}}return this.onSelectionChanged(),(new u).resolve()},getSelectAllState:function(e){return this._selectionStrategy.getSelectAllState(e)}})},function(e,t,n){var i=n(4).getKeyHash,o=n(4).equalByValue,a=n(1);t.SelectionFilterCreator=function(e,t){this.getLocalFilter=function(e,t,n,i){return t=void 0===t?o:t,s.bind(this,t,e,n,i)},this.getExpr=function(n){var i;if(n)return e.forEach(function(e,o){var r;i=i||[],o>0&&i.push(t?"and":"or"),r=a.isString(n)?l(n,e):u(n,e),i.push(r)}),i&&1===i.length&&(i=i[0]),i},this.getCombinedFilter=function(e,n){var i=this.getExpr(e),o=i;return t&&n&&(i?((o=[]).push(i),o.push(n)):o=n),o};var n,r=function(e){if(!n){n={};for(var t=0;t<e.length;t++)n[i(e[t])]=!0}return n},s=function(n,o,s,l,u){var c,d,h=o(u);if(!s&&(c=i(h),!a.isObject(c)))return r(function(e,t,n){return Array.isArray(n)?e.map(function(e){return t(e)}):e}(e,o,l))[c]?!t:!!t;for(d=0;d<e.length;d++)if(n(e[d],h))return!t;return!!t},l=function(e,n){if(void 0!==n)return[e,t?"<>":"=",n]},u=function(e,n){for(var i=[],o=0,a=e.length;o<a;o++){var r=e[o],s=n&&n[r],u=l(r,s);if(!u)break;o>0&&i.push(t?"or":"and"),i.push(u)}return i}}},function(e,t,n){var i=n(29),o=n(3),a=n(21),r=n(9),s=n(114),l=n(88),u="dx",c="zoom",d="pinch",h="start",p="",f="end",g=[],_=function(e,t){g.push({name:e,args:t})};_("transform",{scale:!0,deltaScale:!0,rotation:!0,deltaRotation:!0,translation:!0,deltaTranslation:!0}),_("translate",{translation:!0,deltaTranslation:!0}),_(c,{scale:!0,deltaScale:!0}),_(d,{scale:!0,deltaScale:!0}),_("rotate",{rotation:!0,deltaRotation:!0});var m=function(e){var t=e.pointers;return function(e,t){return{x:t.pageX-e.pageX,y:-t.pageY+e.pageY,centerX:.5*(t.pageX+e.pageX),centerY:.5*(t.pageY+e.pageY)}}(t[0],t[1])},v=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},y=function(e,t){return v(e)/v(t)},b=function(e,t){var n=e.x*t.x+e.y*t.y,o=v(e)*v(t);return 0===o?0:i.sign(e.x*t.y-t.x*e.y)*Math.acos(i.fitIntoRange(n/o,-1,1))},x=function(e,t){return{x:e.centerX-t.centerX,y:e.centerY-t.centerY}},w=s.inherit({configure:function(e,t){t.indexOf(c)>-1&&a.log("W0005",t,"15.1","Use '"+t.replace(c,d)+"' event instead"),this.callBase(e)},validatePointers:function(e){return r.hasTouches(e)>1},start:function(e){this._accept(e);var t=m(e);this._startVector=t,this._prevVector=t,this._fireEventAliases(h,e)},move:function(e){var t=m(e),n=this._getEventArgs(t);this._fireEventAliases(p,e,n),this._prevVector=t},end:function(e){var t=this._getEventArgs(this._prevVector);this._fireEventAliases(f,e,t)},_getEventArgs:function(e){return{scale:y(e,this._startVector),deltaScale:y(e,this._prevVector),rotation:b(e,this._startVector),deltaRotation:b(e,this._prevVector),translation:x(e,this._startVector),deltaTranslation:x(e,this._prevVector)}},_fireEventAliases:function(e,t,n){n=n||{},o.each(g,function(i,a){var r={};o.each(a.args,function(e){e in n&&(r[e]=n[e])}),this._fireEvent(u+a.name+e,t,r)}.bind(this))}}),C=g.reduce(function(e,t){return[h,p,f].forEach(function(n){e.push(u+t.name+n)}),e},[]);l({emitter:w,events:C}),o.each(C,function(e,n){t[n.substring(u.length)]=n})},function(e,t,n){e.exports={_waitAsyncTemplates:function(e){if(this._options.templatesRenderAsynchronously){this._asyncTemplatesTimers=this._asyncTemplatesTimers||[];var t=setTimeout(function(){e.call(this),clearTimeout(t)}.bind(this));this._asyncTemplatesTimers.push(t)}else e.call(this)},_cleanAsyncTemplatesTimer:function(){for(var e=this._asyncTemplatesTimers||[],t=0;t<e.length;t++)clearTimeout(e[t]);delete this._asyncTemplatesTimers}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(1);t.default={_getSpecificDataSourceOption:function(){var e=this.option("dataSource"),t=!1,n={};return this._getGroupedOption()&&function(e){return Array.isArray(e)&&e.every(function(e){return 2===Object.keys(e).length&&"key"in e&&"items"in e&&Array.isArray(e.items)})}(e)&&(n=e.reduce(function(e,n){var o=n.items.map(function(e){return(0,i.isObject)(e)||(e={text:e},t=!0),"key"in e||(e.key=n.key),e});return e.concat(o)},[]),e={store:{type:"array",data:n},group:{selector:"key",keepInitialKeyOrder:!0}},t&&(e.searchExpr="text")),e}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=i(n(62)),r=n(4),s=i(n(42)),l=n(7),u=n(3),c=n(6),d=n(136),h=n(20),p=(0,l.getWindow)(),f=function(e){function t(e){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),e=(0,r.ensureDefined)(e,{});var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._endpointUrl=e.endpointUrl,n._hasSubDirsGetter=(0,h.compileGetter)(e.hasSubDirectoriesExpr||"hasSubDirectories"),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,d.FileProvider),o(t,[{key:"getItems",value:function(e,t){return this._getItems(e,t)}},{key:"renameItem",value:function(e,t){return this._executeRequest("Rename",{id:e.relativeName,name:t})}},{key:"createFolder",value:function(e,t){return this._executeRequest("CreateDir",{parentId:e.relativeName,name:t})}},{key:"deleteItems",value:function(e){var t=this;return e.map(function(e){return t._executeRequest("Remove",{id:e.relativeName})})}},{key:"moveItems",value:function(e,t){var n=this;return e.map(function(e){return n._executeRequest("Move",{sourceId:e.relativeName,destinationId:t.relativeName+"/"+e.name})})}},{key:"copyItems",value:function(e,t){var n=this;return e.map(function(e){return n._executeRequest("Copy",{sourceId:e.relativeName,destinationId:t.relativeName+"/"+e.name})})}},{key:"initiateFileUpload",value:function(e){e.customData.uploadId=new s.default}},{key:"uploadFileChunk",value:function(e,t){var n={destinationId:e.destinationFolder.relativeName,chunkMetadata:JSON.stringify({UploadId:e.customData.uploadId,FileName:e.file.name,Index:t.index,TotalCount:e.totalChunkCount,FileSize:e.file.size})},i=new p.FormData;i.append("chunk",t.blob),i.append("arguments",JSON.stringify(n)),i.append("command","UploadChunk");var o=new c.Deferred;return a.default.sendRequest({url:this._endpointUrl,method:"POST",dataType:"json",data:i,upload:{onprogress:r.noop,onloadstart:r.noop,onabort:r.noop},cache:!1}).then(function(e){!e.success&&o.reject(e)||o.resolve()},function(e){return o.reject(e)}),o.promise()}},{key:"abortFileUpload",value:function(e){return this._executeRequest("AbortUpload",{uploadId:e.customData.uploadId})}},{key:"_getItems",value:function(e,t){var n=this;return this._getEntriesByPath(e).then(function(i){return n._convertDataObjectsToFileItems(i.result,e,t)})}},{key:"_getItemsIds",value:function(e){return e.map(function(e){return e.relativeName})}},{key:"_getEntriesByPath",value:function(e){return this._executeRequest("GetDirContents",{parentId:e})}},{key:"_executeRequest",value:function(e,t){var n=this._getQueryString({command:e,arguments:JSON.stringify(t)}),i="GetDirContents"===e?"GET":"POST",o=new c.Deferred;return a.default.sendRequest({url:this._endpointUrl+"?"+n,method:i,dataType:"json",cache:!1}).then(function(e){!e.success&&o.reject(e)||o.resolve(e)},function(e){return o.reject(e)}),o.promise()}},{key:"_getQueryString",value:function(e){for(var t=[],n=Object.keys(e),i=0;i<n.length;i++){var o=n[i],a=e[o];if(void 0!==a)if(null===a&&(a=""),Array.isArray(a))this._processQueryStringArrayParam(o,a,t);else{var r=this._getQueryStringPair(o,a);t.push(r)}}return t.join("&")}},{key:"_processQueryStringArrayParam",value:function(e,t,n){var i=this;(0,u.each)(t,function(t,o){var a=i._getQueryStringPair(e,o);n.push(a)})}},{key:"_getQueryStringPair",value:function(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(t)}},{key:"_hasSubDirs",value:function(e){var t=this._hasSubDirsGetter(e);return"boolean"!=typeof t||t}}]),t}();e.exports=f},function(e,t,n){var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function(e){return e&&e.__esModule?e:{default:e}}(n(62)),a=n(6),r=n(4),s=n(136),l="https://graph.microsoft.com/v1.0/drive",u=l+"/special/approot",c=function(e){function t(e){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),(e=e||{}).dateModifiedExpr="lastModifiedDateTime",e.isDirectoryExpr="folder";var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._getAccessTokenUrl=e.getAccessTokenUrl||"",n._accessToken="",n._accessTokenPromise=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.FileProvider),i(t,[{key:"getItems",value:function(e,t){return this._getItems(e,t)}},{key:"initiateFileUpload",value:function(e){var t=this,n=e.destinationFolder.relativeName,i=e.file.name,o=e.customData;return this._ensureAccessTokenAcquired().then(function(){return t._createFile(n,i)}).then(function(e){return t._initiateUploadSession(e.id).done(function(e){o.uploadUrl=e.uploadUrl})})}},{key:"uploadFileChunk",value:function(e,t){var n=e.customData,i=e.uploadedBytesCount,o=e.file,a=t.blob,r=t.size;return this._uploadFileChunk(n.uploadUrl,a,r,i,o.size)}},{key:"abortFileUpload",value:function(e){var t=this;return this._ensureAccessTokenAcquired().then(function(){return t._cancelUploadSession(e.customData.uploadUrl)})}},{key:"_getItems",value:function(e,t){var n=this;return this._ensureAccessTokenAcquired().then(function(){return n._getEntriesByPath(e)}).then(function(i){return n._convertDataObjectsToFileItems(i.children,e,t)})}},{key:"_ensureAccessTokenAcquired",value:function(){var e=this;if(this._accessTokenPromise)return this._accessTokenPromise;var t=new a.Deferred;return this._accessToken?t.resolve():o.default.sendRequest({url:this._getAccessTokenUrl,dataType:"json"}).done(function(n){var i=n.token;e._accessToken=i,e._accessTokenPromise=null,t.resolve()}),this._accessTokenPromise=t.promise(),this._accessTokenPromise}},{key:"_getEntriesByPath",value:function(e){var t=this._prepareItemRelativePath(e),n=u+t+"?$select=id,name,folder,lastModifiedDateTime,size,parentReference&$expand=children($select=id,name,folder,lastModifiedDateTime,size,parentReference)";return o.default.sendRequest({url:n,dataType:"json",cache:!1,headers:{Authorization:this._authorizationString}})}},{key:"_uploadFileChunk",value:function(e,t,n,i,a){var s="bytes "+i+"-"+(i+n-1)+"/"+a;return o.default.sendRequest({url:e,method:"PUT",dataType:"json",data:t,upload:{onprogress:r.noop,onloadstart:r.noop,onabort:r.noop},cache:!1,headers:{Authorization:this._authorizationString,"Content-Range":s}})}},{key:"_initiateUploadSession",value:function(e){var t=l+"/items/"+e+"/createUploadSession";return o.default.sendRequest({url:t,method:"POST",dataType:"json",cache:!1,headers:{Authorization:this._authorizationString}})}},{key:"_createFile",value:function(e,t){var n=this._prepareItemRelativePath(e),i=u+n+"/children?$select=id,name,folder,lastModifiedDateTime,size,parentReference",a={name:t,file:{},"@microsoft.graph.conflictBehavior":"rename"},r=JSON.stringify(a);return o.default.sendRequest({url:i,method:"POST",dataType:"json",data:r,cache:!1,headers:{Authorization:this._authorizationString,"Content-Type":"application/json"}})}},{key:"_cancelUploadSession",value:function(e){return o.default.sendRequest({url:e,method:"DELETE",dataType:"json",cache:!1,headers:{Authorization:this._authorizationString}})}},{key:"_prepareItemRelativePath",value:function(e){return""===e?"":":/"+e+":"}},{key:"_hasSubDirs",value:function(e){return e.hasOwnProperty("folder")&&e.folder.childCount>0}},{key:"_authorizationString",get:function(){return"Bearer "+this._accessToken}}]),t}();e.exports=c},function(e,t,n){var i=n(2),o=n(30),a=n(4),r=n(1).isPlainObject,s=n(8),l=n(13).inArray,u=n(0).extend,c=n(3).each,d=n(487),h=n(83),p=n(65),f="dx-toolbar-before",g="dx-toolbar-after",_="dx-toolbar-label",m="dx-toolbar-compact",v="."+_,y=d.inherit({compactMode:!1,_initTemplates:function(){this.callBase();var e=new p(function(e,t,n){r(t)?(t.text&&e.text(t.text).wrapInner("<div>"),t.html&&e.html(t.html),"dxButton"===t.widget&&(this.option("useFlatButtons")&&(t.options=t.options||{},t.options.stylingMode=t.options.stylingMode||"text"),this.option("useDefaultButtons")&&(t.options=t.options||{},t.options.type=t.options.type||"default"))):e.text(String(t)),this._getTemplate("dx-polymorph-widget").render({container:e,model:n,parent:this})}.bind(this),["text","html","widget","options"],this.option("integrationOptions.watchMethod"));this._defaultTemplates.item=e,this._defaultTemplates.menuItem=e},_getDefaultOptions:function(){return u(this.callBase(),{renderAs:"topToolbar",grouped:!1,useFlatButtons:!1,useDefaultButtons:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return o.isMaterial()},options:{useFlatButtons:!0}}])},_itemContainer:function(){return this._$toolbarItemsContainer.find(["."+f,".dx-toolbar-center","."+g].join(","))},_itemClass:function(){return"dx-toolbar-item"},_itemDataKey:function(){return"dxToolbarItemDataKey"},_buttonClass:function(){return"dx-toolbar-button"},_dimensionChanged:function(){this._arrangeItems(),this._applyCompactMode()},_initMarkup:function(){this._renderToolbar(),this._renderSections(),this.callBase(),this.setAria("role","toolbar")},_render:function(){this.callBase(),this._renderItemsAsync(),o.isMaterial()&&this._checkWebFontForLabelsLoaded().then(this._dimensionChanged.bind(this))},_postProcessRenderItems:function(){this._arrangeItems()},_renderToolbar:function(){this.$element().addClass("dx-toolbar").toggleClass("dx-toolbar-bottom","bottomToolbar"===this.option("renderAs")),this._$toolbarItemsContainer=i("<div>").addClass("dx-toolbar-items-container").appendTo(this.$element())},_renderSections:function(){var e=this._$toolbarItemsContainer,t=this;c(["before","center","after"],function(){var n="dx-toolbar-"+this,o=e.find("."+n);o.length||(t["_$"+this+"Section"]=o=i("<div>").addClass(n).appendTo(e))})},_checkWebFontForLabelsLoaded:function(){var e=this.$element().find(v),t=[];return e.each(function(e,n){var a=i(n).text(),r=i(n).css("fontWeight");t.push(o.waitWebFont(a,r))}),h.all(t)},_arrangeItems:function(e){e=e||this.$element().width(),this._$centerSection.css({margin:"0 auto",float:"none"});var t=this._$beforeSection.get(0).getBoundingClientRect(),n=this._$afterSection.get(0).getBoundingClientRect();this._alignCenterSection(t,n,e);var o=this._$toolbarItemsContainer.find(v).eq(0),a=o.parent();if(o.length){var r=t.width?t.width:o.position().left,s=a.hasClass(f)?0:r,l=a.hasClass(g)?0:n.width,u=0;a.children().not(v).each(function(){u+=i(this).outerWidth()});var c=e-u,d=Math.max(c-s-l,0);if(a.hasClass(f))this._alignSection(this._$beforeSection,d);else{var h=o.outerWidth()-o.width();o.css("maxWidth",d-h)}}},_alignCenterSection:function(e,t,n){this._alignSection(this._$centerSection,n-e.width-t.width);var i=this.option("rtlEnabled"),o=i?t:e,a=i?e:t,r=this._$centerSection.get(0).getBoundingClientRect();(o.right>r.left||r.right>a.left)&&this._$centerSection.css({marginLeft:o.width,marginRight:a.width,float:o.width>a.width?"none":"right"})},_alignSection:function(e,t){var n=e.find(v).toArray();t-=this._getCurrentLabelsPaddings(n);var i=this._getCurrentLabelsWidth(n),o=Math.abs(i-t);t<i?(n=n.reverse(),this._alignSectionLabels(n,o,!1)):this._alignSectionLabels(n,o,!0)},_alignSectionLabels:function(e,t,n){for(var o=function(e){return e.getBoundingClientRect().width},a=0;a<e.length;a++){var r,s=i(e[a]),l=Math.ceil(o(e[a]));n&&s.css("maxWidth","inherit");var u=Math.ceil(n?o(e[a]):l);if(!(u<t)){r=n?l+t:l-t,s.css("maxWidth",r);break}r=n?u:0,t-=u,s.css("maxWidth",r)}},_applyCompactMode:function(){var e=this.$element();e.removeClass(m),this.option("compactMode")&&this._getSummaryItemsWidth(this.itemElements(),!0)>e.width()&&e.addClass(m)},_getCurrentLabelsWidth:function(e){var t=0;return e.forEach(function(e,n){t+=i(e).outerWidth()}),t},_getCurrentLabelsPaddings:function(e){var t=0;return e.forEach(function(e,n){t+=i(e).outerWidth()-i(e).width()}),t},_renderItem:function(e,t,n,i){var o=t.location||"center",a=n||this["_$"+o+"Section"],r=!(!t.text&&!t.html),s=this.callBase(e,t,a,i);return s.toggleClass(this._buttonClass(),!r).toggleClass(_,r).addClass(t.cssClass),s},_renderGroupedItems:function(){var e=this;c(this.option("items"),function(t,n){var o=n.items,a=i("<div>").addClass("dx-toolbar-group"),r=n.location||"center";o&&o.length&&(c(o,function(t,n){e._renderItem(t,n,a,null)}),e._$toolbarItemsContainer.find(".dx-toolbar-"+r).append(a))})},_renderItems:function(e){this.option("grouped")&&e.length&&e[0].items?this._renderGroupedItems():this.callBase(e)},_getToolbarItems:function(){return this.option("items")||[]},_renderContentImpl:function(){var e=this._getToolbarItems();this.$element().toggleClass("dx-toolbar-mini",0===e.length),this._renderedItemsCount?this._renderItems(e.slice(this._renderedItemsCount)):this._renderItems(e),this._applyCompactMode()},_renderEmptyMessage:a.noop,_clean:function(){this._$toolbarItemsContainer.children().empty(),this.$element().empty()},_visibilityChanged:function(e){e&&this._arrangeItems()},_isVisible:function(){return this.$element().width()>0&&this.$element().height()>0},_getIndexByItem:function(e){return l(e,this._getToolbarItems())},_itemOptionChanged:function(e,t,n){this.callBase.apply(this,[e,t,n]),this._arrangeItems()},_optionChanged:function(e){switch(e.name){case"width":this.callBase.apply(this,arguments),this._dimensionChanged();break;case"renderAs":case"useFlatButtons":case"useDefaultButtons":this._invalidate();break;case"compactMode":this._applyCompactMode();break;case"grouped":break;default:this.callBase.apply(this,arguments)}}});s("dxToolbarBase",y),e.exports=y},function(e,t,n){var i=n(2),o=n(110),a=n(76),r=n(0).extend,s=n(1).isPlainObject,l=n(288),u=null;e.exports=function(e,t,n){var c=s(e)?e:{message:e},d=c.onHidden;r(c,{type:t,displayTime:n,onHidden:function(e){i(e.element).remove(),new o(d,{context:e.model}).execute(arguments)}}),u=i("<div>").appendTo(a.value()),new l(u,c).show()}},function(e,t,n){var i=n(2),o=n(7).getWindow(),a=n(12),r=n(5),s=n(47).add,l=n(4),u=n(1),c=n(0).extend,d=n(13).inArray,h=n(24),p=n(8),f=n(58),g=n(30),_="dx-toast",m=_+"-",v=["info","warning","error","success"],y=[],b=null,x={top:{my:"top",at:"top",of:null,offset:"0 0"},bottom:{my:"bottom",at:"bottom",of:null,offset:"0 -20"},center:{my:"center",at:"center",of:null,offset:"0 0"},right:{my:"center right",at:"center right",of:null,offset:"0 0"},left:{my:"center left",at:"center left",of:null,offset:"0 0"}};s(function(){r.subscribeGlobal(a.getDocument(),h.down,function(e){for(var t=y.length-1;t>=0;t--)if(!y[t]._proxiedDocumentDownHandler(e))return})});var w=f.inherit({_getDefaultOptions:function(){return c(this.callBase(),{message:"",type:"info",displayTime:2e3,position:"bottom center",animation:{show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,to:0}},shading:!1,height:"auto",closeOnBackButton:!1,closeOnSwipe:!0,closeOnClick:!1,resizeEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"win"===e.platform&&e.version&&8===e.version[0]},options:{position:"top center",width:function(){return i(o).width()}}},{device:function(e){return"win"===e.platform&&e.version&&10===e.version[0]},options:{position:"bottom right",width:"auto"}},{device:{platform:"android"},options:{closeOnOutsideClick:!0,width:"auto",position:{at:"bottom left",my:"bottom left",offset:"20 -20"},animation:{show:{type:"slide",duration:200,from:{position:{my:"top",at:"bottom",of:o}}},hide:{type:"slide",duration:200,to:{position:{my:"top",at:"bottom",of:o}}}}}},{device:function(e){var t="phone"===e.deviceType,n="android"===e.platform,i="win"===e.platform&&e.version&&10===e.version[0];return t&&(n||i)},options:{width:function(){return i(o).width()},position:{at:"bottom center",my:"bottom center",offset:"0 0"}}},{device:function(){return g.isMaterial()},options:{minWidth:344,maxWidth:568,displayTime:4e3}}])},_init:function(){this.callBase(),this._posStringToObject()},_renderContentImpl:function(){this.option("message")&&(this._message=i("<div>").addClass("dx-toast-message").text(this.option("message")).appendTo(this.$content())),this.setAria("role","alert",this._message),d(this.option("type").toLowerCase(),v)>-1&&this.$content().prepend(i("<div>").addClass("dx-toast-icon")),this.callBase()},_render:function(){this.callBase(),this.$element().addClass(_),this._wrapper().addClass("dx-toast-wrapper"),this._$content.addClass(m+String(this.option("type")).toLowerCase()),this.$content().addClass("dx-toast-content"),this._toggleCloseEvents("Swipe"),this._toggleCloseEvents("Click")},_renderScrollTerminator:l.noop,_toggleCloseEvents:function(e){var t="dx"+e.toLowerCase();r.off(this._$content,t),this.option("closeOn"+e)&&r.on(this._$content,t,this.hide.bind(this))},_posStringToObject:function(){if(u.isString(this.option("position"))){var e=this.option("position").split(" ")[0],t=this.option("position").split(" ")[1];switch(this.option("position",c({},x[e])),t){case"center":case"left":case"right":this.option("position").at+=" "+t,this.option("position").my+=" "+t}}},_show:function(){return b&&b!==this&&(clearTimeout(b._hideTimeout),b.hide()),b=this,this.callBase.apply(this,arguments).done(function(){clearTimeout(this._hideTimeout),this._hideTimeout=setTimeout(this.hide.bind(this),this.option("displayTime"))}.bind(this))},_hide:function(){return b=null,this.callBase.apply(this,arguments)},_overlayStack:function(){return y},_zIndexInitValue:function(){return this.callBase()+8e3},_dispose:function(){clearTimeout(this._hideTimeout),b=null,this.callBase()},_optionChanged:function(e){switch(e.name){case"type":this._$content.removeClass(m+e.previousValue),this._$content.addClass(m+String(e.value).toLowerCase());break;case"message":this._message&&this._message.text(e.value);break;case"closeOnSwipe":this._toggleCloseEvents("Swipe");break;case"closeOnClick":this._toggleCloseEvents("Click");break;case"displayTime":case"position":break;default:this.callBase(e)}}});p("dxToast",w),e.exports=w},function(e,t,n){var i=n(8),o=n(491);i("dxTextEditor",o),e.exports=o},function(e,t,n){var i=n(2),o=n(1).isDefined,a=n(31),r=n(12),s=a.msie||a.safari,l=function(e){return!e.setSelectionRange},u=function(e){var t=r.getSelection().createRange(),n=t.duplicate();return t.move("character",-e.value.length),t.setEndPoint("EndToStart",n),{start:t.text.length,end:t.text.length+n.text.length}},c=function(e,t){if(r.getBody().contains(e)){var n=e.createTextRange();n.collapse(!0),n.moveStart("character",t.start),n.moveEnd("character",t.end-t.start),n.select()}};e.exports=function(e,t){return e=i(e).get(0),o(t)?void(s&&r.getActiveElement()!==e||function(e,t){l(e)?c(e,t):r.getBody().contains(e)&&(e.selectionStart=t.start,e.selectionEnd=t.end)}(e,t)):function(e){return l(e)?u(e):{start:e.selectionStart,end:e.selectionEnd}}(e)}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=n(9),r=n(0),s=i(n(498)),l=n(15),u=i(n(499)),c=i(n(240)),d=c.default.inherit({_supportedKeys:function(){var e=this,t=this.callBase();return(0,r.extend)({},t,{del:function(t){e.option("allowItemDeleting")&&(t.preventDefault(),e.deleteItem(e.option("focusedElement")))},upArrow:function(n){var i=e._editStrategy.getNormalizedIndex(e.option("focusedElement"));if(n.shiftKey&&e.option("allowItemReordering")){n.preventDefault();var o=e._editStrategy.getItemElement(i-1);e.reorderItem(e.option("focusedElement"),o),e.scrollToItem(e.option("focusedElement"))}else{if(0===i&&this._editProvider.handleKeyboardEvents(i,!1))return;this._editProvider.handleKeyboardEvents(i,!0),t.upArrow(n)}},downArrow:function(n){var i=e._editStrategy.getNormalizedIndex(e.option("focusedElement")),o=i===this._getLastItemIndex();if(!o||!this._isDataSourceLoading())if(n.shiftKey&&e.option("allowItemReordering")){n.preventDefault();var a=e._editStrategy.getItemElement(i+1);e.reorderItem(e.option("focusedElement"),a),e.scrollToItem(e.option("focusedElement"))}else{if(o&&this._editProvider.handleKeyboardEvents(i,!1))return;this._editProvider.handleKeyboardEvents(i,!0),t.downArrow(n)}},enter:function(e){this._editProvider.handleEnterPressing()||t.enter.apply(this,arguments)},space:function(e){this._editProvider.handleEnterPressing()||t.space.apply(this,arguments)}})},_updateSelection:function(){this._editProvider.afterItemsRendered(),this.callBase()},_getLastItemIndex:function(){return this._itemElements().length-1},_refreshItemElements:function(){this.callBase();var e=this._editProvider.getExcludedItemSelectors();e.length&&(this._itemElementsCache=this._itemElementsCache.not(e))},_getDefaultOptions:function(){return(0,r.extend)(this.callBase(),{showSelectionControls:!1,selectionMode:"none",selectAllMode:"page",onSelectAllValueChanged:null,selectAllText:(0,l.format)("dxList-selectAll"),menuItems:[],menuMode:"context",allowItemDeleting:!1,itemDeleteMode:"static",allowItemReordering:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"ios"===e.platform},options:{menuMode:"slide",itemDeleteMode:"slideItem"}},{device:{platform:"android"},options:{itemDeleteMode:"swipe"}},{device:{platform:"win"},options:{itemDeleteMode:"context"}}])},_init:function(){this.callBase(),this._initEditProvider()},_initDataSource:function(){this.callBase(),this._isPageSelectAll()||this._dataSource&&this._dataSource.requireTotalCount(!0)},_isPageSelectAll:function(){return"page"===this.option("selectAllMode")},_initEditProvider:function(){this._editProvider=new u.default(this)},_disposeEditProvider:function(){this._editProvider&&this._editProvider.dispose()},_refreshEditProvider:function(){this._disposeEditProvider(),this._initEditProvider()},_initEditStrategy:function(){this.option("grouped")?this._editStrategy=new s.default(this):this.callBase()},_initMarkup:function(){this._refreshEditProvider(),this.callBase()},_renderItems:function(){this.callBase.apply(this,arguments),this._editProvider.afterItemsRendered()},_selectedItemClass:function(){return"dx-list-item-selected"},_itemResponseWaitClass:function(){return"dx-list-item-response-wait"},_itemClickHandler:function(e){var t=(0,o.default)(e.currentTarget);t.is(".dx-state-disabled, .dx-state-disabled *")||(this._editProvider.handleClick(t,e)||this.callBase.apply(this,arguments))},_shouldFireContextMenuEvent:function(){return this.callBase.apply(this,arguments)||this._editProvider.contextMenuHandlerExists()},_itemHoldHandler:function(e){var t=(0,o.default)(e.currentTarget);if(!t.is(".dx-state-disabled, .dx-state-disabled *"))return(0,a.isTouchEvent)(e)&&this._editProvider.handleContextMenu(t,e)?void(e.handledByEditProvider=!0):void this.callBase.apply(this,arguments)},_itemContextMenuHandler:function(e){var t=(0,o.default)(e.currentTarget);if(!t.is(".dx-state-disabled, .dx-state-disabled *"))return!e.handledByEditProvider&&this._editProvider.handleContextMenu(t,e)?void e.preventDefault():void this.callBase.apply(this,arguments)},_postprocessRenderItem:function(e){this.callBase.apply(this,arguments),this._editProvider.modifyItemElement(e)},_clean:function(){this._disposeEditProvider(),this.callBase()},focusListItem:function(e){var t=this._editStrategy.getItemElement(e);this.option("focusedElement",t),this.focus(),this.scrollToItem(this.option("focusedElement"))},_optionChanged:function(e){switch(e.name){case"selectAllMode":this._initDataSource(),this._dataSource.pageIndex(0),this._dataSource.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"allowItemReordering":case"selectAllText":this._invalidate();break;case"onSelectAllValueChanged":break;default:this.callBase(e)}},selectAll:function(){return this._selection.selectAll(this._isPageSelectAll())},unselectAll:function(){return this._selection.deselectAll(this._isPageSelectAll())},isSelectAll:function(){return this._selection.getSelectAllState(this._isPageSelectAll())},getFlatIndexByItemElement:function(e){return this._itemElements().index(e)},getItemElementByFlatIndex:function(e){var t=this._itemElements();return e<0||e>=t.length?(0,o.default)():t.eq(e)},getItemByIndex:function(e){return this._editStrategy.getItemDataByIndex(e)}});e.exports=d},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(139),s=r.abstract,l=n(9),u=n(24),c=n(128),d="dxListEditDecorator",h=l.addNamespace(u.down,d),p=l.addNamespace(c.active,d),f="dx-list-switchable-delete-ready",g="dx-list-switchable-menu-item-shield-positioning",_=r.inherit({_init:function(){this._$topShield=i("<div>").addClass("dx-list-switchable-delete-top-shield"),this._$bottomShield=i("<div>").addClass("dx-list-switchable-delete-bottom-shield"),this._$itemContentShield=i("<div>").addClass("dx-list-switchable-delete-item-content-shield"),o.on(this._$topShield,h,this._cancelDeleteReadyItem.bind(this)),o.on(this._$bottomShield,h,this._cancelDeleteReadyItem.bind(this)),this._list.$element().append(this._$topShield.toggle(!1)).append(this._$bottomShield.toggle(!1))},handleClick:function(){return this._cancelDeleteReadyItem()},_cancelDeleteReadyItem:function(){return!!this._$readyToDeleteItem&&(this._cancelDelete(this._$readyToDeleteItem),!0)},_cancelDelete:function(e){this._toggleDeleteReady(e,!1)},_toggleDeleteReady:function(e,t){void 0===t&&(t=!this._isReadyToDelete(e)),this._toggleShields(e,t),this._toggleScrolling(t),this._cacheReadyToDeleteItem(e,t),this._animateToggleDelete(e,t)},_isReadyToDelete:function(e){return e.hasClass(f)},_toggleShields:function(e,t){this._list.$element().toggleClass("dx-list-switchable-menu-shield-positioning",t),this._$topShield.toggle(t),this._$bottomShield.toggle(t),t&&this._updateShieldsHeight(e),this._toggleContentShield(e,t)},_updateShieldsHeight:function(e){var t=this._list.$element(),n=t.offset().top,i=t.outerHeight(),o=e.offset().top-n,a=i-e.outerHeight()-o;this._$topShield.height(Math.max(o,0)),this._$bottomShield.height(Math.max(a,0))},_toggleContentShield:function(e,t){t?e.find(".dx-list-item-content").first().append(this._$itemContentShield):this._$itemContentShield.detach()},_toggleScrolling:function(e){var t=this._list.$element().dxScrollView("instance");e?t.on("start",this._cancelScrolling):t.off("start",this._cancelScrolling)},_cancelScrolling:function(e){e.event.cancel=!0},_cacheReadyToDeleteItem:function(e,t){t?this._$readyToDeleteItem=e:delete this._$readyToDeleteItem},_animateToggleDelete:function(e,t){t?(this._enablePositioning(e),this._prepareDeleteReady(e),this._animatePrepareDeleteReady(e),o.off(e,u.up)):(this._forgetDeleteReady(e),this._animateForgetDeleteReady(e).done(this._disablePositioning.bind(this,e)))},_enablePositioning:function(e){e.addClass(g),o.on(e,p,a),o.one(e,u.up,this._disablePositioning.bind(this,e))},_disablePositioning:function(e){e.removeClass(g),o.off(e,p)},_prepareDeleteReady:function(e){e.addClass(f)},_forgetDeleteReady:function(e){e.removeClass(f)},_animatePrepareDeleteReady:s,_animateForgetDeleteReady:s,_getDeleteButtonContainer:function(e){return(e=e||this._$readyToDeleteItem).children(".dx-list-switchable-delete-button-container")},_deleteItem:function(e){e=e||this._$readyToDeleteItem,this._getDeleteButtonContainer(e).detach(),e.is(".dx-state-disabled, .dx-state-disabled *")||this._list.deleteItem(e).always(this._cancelDelete.bind(this,e))},_isRtlEnabled:function(){return this._list.option("rtlEnabled")},dispose:function(){this._$topShield&&this._$topShield.remove(),this._$bottomShield&&this._$bottomShield.remove(),this.callBase.apply(this,arguments)}});e.exports=_},function(e,t,n){e.exports={_menuEnabled:function(){return!!this._menuItems().length},_menuItems:function(){return this._list.option("menuItems")},_deleteEnabled:function(){return this._list.option("allowItemDeleting")},_fireMenuAction:function(e,t){this._list._itemEventHandlerByHandler(e,t,{},{excludeValidators:["disabled","readOnly"]})}}},function(e,t,n){var i=n(2),o=n(12),a=n(5),r=n(47).add,s=n(26),l=n(17),u=n(9),c=n(4),d=n(1).isPlainObject,h=n(0).extend,p=n(24),f="dxScrollbar",g="dx-scrollable-scrollbar",_=g+"-active",m="horizontal",v="onScroll",y="onHover",b="always",x="never",w=l.inherit({_getDefaultOptions:function(){return h(this.callBase(),{direction:null,visible:!1,activeStateEnabled:!1,visibilityMode:v,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("dx-scrollbar-hoverable",this.option("hoverStateEnabled"))},_renderThumb:function(){this._$thumb=i("<div>").addClass("dx-scrollable-scroll"),i("<div>").addClass("dx-scrollable-scroll-content").appendTo(this._$thumb),this.$element().addClass(g).append(this._$thumb)},isThumb:function(e){return!!this.$element().find(e).length},_isHoverMode:function(){var e=this.option("visibilityMode");return(e===y||e===b)&&this.option("expandable")},_renderDirection:function(){var e=this.option("direction");this.$element().addClass("dx-scrollbar-"+e),this._dimension=e===m?"width":"height",this._prop=e===m?"left":"top"},_attachPointerDownHandler:function(){a.on(this._$thumb,u.addNamespace(p.down,f),this.feedbackOn.bind(this))},feedbackOn:function(){this.$element().addClass(_),C=this},feedbackOff:function(){this.$element().removeClass(_),C=null},cursorEnter:function(){this._isHovered=!0,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")===v&&this._$thumb.css("opacity"),e=this._adjustVisibility(e),this.option().visible=e,this._$thumb.toggleClass("dx-state-invisible",!e)},_adjustVisibility:function(e){if(this.containerToContentRatio()&&!this._needScrollbar())return!1;switch(this.option("visibilityMode")){case v:break;case y:e=e||!!this._isHovered;break;case x:e=!1;break;case b:e=!0}return e},moveTo:function(e){if(!this._isHidden()){d(e)&&(e=e[this._prop]||0);var t={};t[this._prop]=this._calculateScrollBarPosition(e),s.move(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"));this._containerToContentRatio=t?e/t:e;var n=Math.round(Math.max(Math.round(e*this._containerToContentRatio),15));this._thumbRatio=(e-n)/(this.option("scaleRatio")*(t-e)),this.option(this._dimension,n/this.option("scaleRatio")),this.$element().css("display",this._needScrollbar()?"":"none")},_isHidden:function(){return this.option("visibilityMode")===x},_needScrollbar:function(){return!this._isHidden()&&this._containerToContentRatio<1},containerToContentRatio:function(){return this._containerToContentRatio},_normalizeSize:function(e){return d(e)?e[this._dimension]||0:e},_clean:function(){this.callBase(),this===C&&(C=null),a.off(this._$thumb,"."+f)},_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"visibilityMode":case"direction":this._invalidate();break;case"scaleRatio":this._update();break;default:this.callBase.apply(this,arguments)}},update:c.deferRenderer(function(){this._adjustVisibility()&&this.option("visible",!0)})}),C=null;r(function(){a.subscribeGlobal(o.getDocument(),u.addNamespace(p.up,f),function(){C&&C.feedbackOff()})}),e.exports=w},function(e,t,n){var i,o,a=n(2),r=n(12),s=n(5),l=Math,u=n(32).titleize,c=n(0).extend,d=n(7),h=n(3),p=n(1).isDefined,f=n(26),g=n(14),_=n(296),m=n(16),v=n(9),y=n(4),b=n(294),x=n(6),w=x.when,C=x.Deferred,k=m.real,S="win"===k.platform||"android"===k.platform,I="dxSimulatedScrollable",T=I+"Cursor",D=I+"Keyboard",E="dx-scrollable-simulated",A="vertical",O="horizontal",P=S?.95:.92,B=l.round(1e3/60),M=(S?300:400)/B,R=(1-l.pow(P,M))/(1-P),F="pageUp",V="pageDown",L="end",H="home",z="leftArrow",N="upArrow",$="rightArrow",W="downArrow",G=_.inherit({ctor:function(e){this.callBase(),this.scroller=e},VELOCITY_LIMIT:1,_isFinished:function(){return l.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()?P:.5},_complete:function(){this.scroller._scrollComplete()},_stop:function(){this.scroller._stopComplete()}}),j=G.inherit({VELOCITY_LIMIT:.2,_isFinished:function(){return this.scroller._crossBoundOnNextStep()||this.callBase()},_acceleration:function(){return P},_complete:function(){this.scroller._move(this.scroller._bounceLocation),this.callBase()}}),q=function(e){return"dxmousewheel"===e.type},K=g.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===O?"x":"y",this._prop=e.direction===O?"left":"top",this._dimension=e.direction===O?"width":"height",this._scrollProp=e.direction===O?"scrollLeft":"scrollTop",h.each(e,function(e,t){this["_"+e]=t}.bind(this))},_initAnimators:function(){this._inertiaAnimator=new G(this),this._bounceAnimator=new j(this)},_initScrollbar:function(){this._scrollbar=new b(a("<div>").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||s.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,l.max(l.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(d.hasWindow()&&!this._scaleRatio){var e=this._$element.get(0),t=this._getRealDimension(e,this._dimension),n=this._getBaseDimension(e,this._dimension);this._scaleRatio=t/n}return this._scaleRatio||1},_getRealDimension:function(e,t){return l.round(e.getBoundingClientRect()[t])},_getBaseDimension:function(e,t){return e["offset"+u(t)]},_moveContentByTranslator:function(e){var t,n=-this._maxScrollPropValue;if(t=e>0?e:e<=n?e-n:e%1,this._translateOffset!==t){var i={};return i[this._prop]=t,this._translateOffset=t,0===t?void f.resetPosition(this._$content):void f.move(this._$content,i)}},_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())-this._location;this._velocity=e/R},_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&&t>=this._minOffset||e>this._maxOffset&&t<=this._maxOffset},_initHandler:function(e){return this._stopDeferred=new C,this._stopScrolling(),this._prepareThumbScrolling(e),this._stopDeferred.promise()},_stopScrolling:y.deferRenderer(function(){this._hideScrollbar(),this._inertiaAnimator.stop(),this._bounceAnimator.stop()}),_prepareThumbScrolling:function(e){if(!q(e.originalEvent)){var t=a(e.originalEvent.target),n=this._isScrollbar(t);n&&this._moveToMouseLocation(e),this._thumbScrolling=n||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],n=this._location+t/this._containerToContentRatio()-this._$container.height()/2;this._scrollStep(-Math.round(n))},_stopComplete:function(){this._stopDeferred&&this._stopDeferred.resolve()},_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*=.5),this._scrollStep(e)},_scrollByHandler:function(e){this._scrollBy(e),this._scrollComplete()},_containerToContentRatio:function(){return this._scrollbar.containerToContentRatio()},_endHandler:function(e){return this._completeDeferred=new C,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(){var e=this;return e._stopScrolling(),y.deferUpdate(function(){e._resetScaleRatio(),e._updateLocation(),e._updateBounds(),e._updateScrollbar(),y.deferRender(function(){e._moveScrollbar(),e._scrollbar.update()})})},_resetScaleRatio:function(){this._scaleRatio=null},_updateLocation:function(){this._location=(f.locate(this._$content)[this._prop]-this._$container[this._scrollProp]())*this._getScaleRatio()},_updateBounds:function(){this._maxOffset=Math.round(this._getMaxOffset()),this._minOffset=Math.round(this._getMinOffset())},_getMaxOffset:function(){return 0},_getMinOffset:function(){return this._maxScrollPropValue=l.max(this._contentSize()-this._containerSize(),0),-this._maxScrollPropValue},_updateScrollbar:y.deferUpdater(function(){var e=this,t=e._containerSize(),n=e._contentSize();y.deferRender(function(){e._scrollbar.option({containerSize:t,contentSize:n,scaleRatio:e._getScaleRatio()})})}),_moveToBounds:y.deferRenderer(y.deferUpdater(y.deferRenderer(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 n=this._$content[0]["scroll"+u(this._dimension)]*this._getScaleRatio();t=l.max(n,t)}return t},_validateEvent:function(e){var t=a(e.originalEvent.target);return this._isThumb(t)||this._isScrollbar(t)||this._isContent(t)},_isThumb:function(e){return this._scrollByThumb&&this._scrollbar.isThumb(e)},_isScrollbar:function(e){return this._scrollByThumb&&e&&e.is(this._$scrollbar)},_isContent:function(e){return this._scrollByContent&&!!e.closest(this._$element).length},_reachedMin:function(){return this._location<=this._minOffset},_reachedMax:function(){return this._location>=this._maxOffset},_cursorEnterHandler:function(){this._scrollbar.cursorEnter()},_cursorLeaveHandler:function(){this._scrollbar.cursorLeave()},dispose:y.noop}),U=g.inherit({ctor:function(e){this._init(e)},_init:function(e){this._component=e,this._$element=e.$element(),this._$container=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)},render:function(){this._$element.addClass(E),this._createScrollers(),this.option("useKeyboard")&&this._$container.prop("tabIndex",0),this._attachKeyboardHandler(),this._attachCursorHandlers()},_createScrollers:function(){this._scrollers={},this._isDirection(O)&&this._createScroller(O),this._isDirection(A)&&this._createScroller(A),this._$element.toggleClass("dx-scrollable-scrollbars-alwaysvisible","always"===this.option("showScrollbar")),this._$element.toggleClass("dx-scrollable-scrollbars-hidden",!this.option("showScrollbar"))},_createScroller:function(e){this._scrollers[e]=new K(this._scrollerOptions(e))},_scrollerOptions:function(e){return{direction:e,$content:this._$content,$container:this._$container,$wrapper:this._$wrapper,$element:this._$element,scrollByContent:this.option("scrollByContent"),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 n=this._getPropByDirection(t);if(p(e[n])){var i=this._scrollers[t];e[n]*=i._getScaleRatio()}}return e},_isAnyThumbScrolling:function(e){var t=!1;return this._eventHandler("isThumbScrolling",e).done(function(e,n){t=e||n}),t},handleInit:function(e){this._suppressDirections(e),this._eventForUserAction=e,this._eventHandler("init",e).done(this._stopAction)},_suppressDirections:function(e){return q(e.originalEvent)?void this._prepareDirections(!0):(this._prepareDirections(),void this._eachScroller(function(t,n){var i=t._validateEvent(e);this._validDirections[n]=i}))},_prepareDirections:function(e){e=e||!1,this._validDirections={},this._validDirections[O]=e,this._validDirections[A]=e},_eachScroller:function(e){e=e.bind(this),h.each(this._scrollers,function(t,n){e(n,t)})},handleStart:function(e){this._eventForUserAction=e,this._eventHandler("start").done(this._startAction)},_saveActive:function(){o=this},_resetActive:function(){o===this&&(o=null)},handleMove:function(e){return this._isLocked()?(e.cancel=!0,void this._resetActive()):(this._saveActive(),e.preventDefault&&e.preventDefault(),this._adjustDistance(e.delta),this._eventForUserAction=e,void this._eventHandler("move",e.delta))},_adjustDistance:function(e){e.x*=this._validDirections[O],e.y*=this._validDirections[A]},handleEnd:function(e){return this._resetActive(),this._refreshCursorState(e.originalEvent&&e.originalEvent.target),this._adjustDistance(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._scrollAction()},_attachKeyboardHandler:function(){s.off(this._$element,"."+D),!this.option("disabled")&&this.option("useKeyboard")&&s.on(this._$element,v.addNamespace("keydown",D),this._keyDownHandler.bind(this))},_keyDownHandler:function(e){if(this._$container.is(r.getActiveElement())){var t=!0;switch(v.normalizeKeyName(e)){case W:this._scrollByLine({y:1});break;case N:this._scrollByLine({y:-1});break;case $:this._scrollByLine({x:1});break;case z:this._scrollByLine({x:-1});break;case V:this._scrollByPage(1);break;case F:this._scrollByPage(-1);break;case H:this._scrollToHome();break;case L:this._scrollToEnd();break;default:t=!1}t&&(e.stopPropagation(),e.preventDefault())}},_scrollByLine:function(e){this.scrollBy({top:-20*(e.y||0),left:-20*(e.x||0)})},_scrollByPage:function(e){var t=this._wheelProp(),n=this._dimensionByProp(t),i={};i[t]=e*-this._$container[n](),this.scrollBy(i)},_dimensionByProp:function(e){return"left"===e?"width":"height"},_getPropByDirection:function(e){return e===O?"left":"top"},_scrollToHome:function(){var e={};e[this._wheelProp()]=0,this._component.scrollTo(e)},_scrollToEnd:function(){var e=this._wheelProp(),t=this._dimensionByProp(e),n={};n[e]=this._$content[t]()-this._$container[t](),this._component.scrollTo(n)},createActions:function(){this._startAction=this._createActionHandler("onStart"),this._stopAction=this._createActionHandler("onStop"),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,n=t._createActionByOption(e);return function(){n(c(t._createActionArgs(),arguments))}},_createActionArgs:function(){var e=this._scrollers[O],t=this._scrollers[A],n=this.location();return this._scrollOffset={top:t&&-n.top,left:e&&-n.left},{event:this._eventForUserAction,scrollOffset:this._scrollOffset,reachedLeft:e&&e._reachedMax(),reachedRight:e&&e._reachedMin(),reachedTop:t&&t._reachedMax(),reachedBottom:t&&t._reachedMin()}},_eventHandler:function(e){var t=[].slice.call(arguments).slice(1),n=h.map(this._scrollers,function(n){return n["_"+e+"Handler"].apply(n,t)});return w.apply(a,n).promise()},location:function(){var e=f.locate(this._$content);return e.top-=this._$container.scrollTop(),e.left-=this._$container.scrollLeft(),e},disabledChanged:function(){this._attachCursorHandlers()},_attachCursorHandlers:function(){s.off(this._$element,"."+T),!this.option("disabled")&&this._isHoverMode()&&(s.on(this._$element,v.addNamespace("mouseenter",T),this._cursorEnterHandler.bind(this)),s.on(this._$element,v.addNamespace("mouseleave",T),this._cursorLeaveHandler.bind(this)))},_isHoverMode:function(){return"onHover"===this.option("showScrollbar")},_cursorEnterHandler:function(e){(e=e||{}).originalEvent=e.originalEvent||{},o||e.originalEvent._hoverHandled||(i&&i._cursorLeaveHandler(),i=this,this._eventHandler("cursorEnter"),e.originalEvent._hoverHandled=!0)},_cursorLeaveHandler:function(e){i===this&&o!==i&&(this._eventHandler("cursorLeave"),i=null,this._refreshCursorState(e&&e.relatedTarget))},_refreshCursorState:function(e){if(this._isHoverMode()||e&&!o){var t=a(e).closest("."+E+":not(.dx-state-disabled)"),n=t.length&&t.data("dxScrollableStrategy");i&&i!==n&&i._cursorLeaveHandler(),n&&n._cursorEnterHandler()}},update:function(){var e=this,t=this._eventHandler("update").done(this._updateAction);return w(t,y.deferUpdate(function(){var t=e._allowedDirections();return y.deferRender(function(){var n=t.vertical?"pan-x":"";n=t.horizontal?"pan-y":n,n=t.vertical&&t.horizontal?"none":n,e._$container.css("touchAction",n)}),w().promise()}))},_allowedDirections:function(){var e=this.option("bounceEnabled"),t=this._scrollers[A],n=this._scrollers[O];return{vertical:t&&(t._minOffset<0||e),horizontal:n&&(n._minOffset<0||e)}},updateBounds:function(){this._scrollers[O]&&this._scrollers[O]._updateBounds()},scrollBy:function(e){var t=this._scrollers[A],n=this._scrollers[O];t&&(e.top=t._boundLocation(e.top+t._location)-t._location),n&&(e.left=n._boundLocation(e.left+n._location)-n._location),this._prepareDirections(!0),this._startAction(),this._eventHandler("scrollBy",{x:e.left,y:e.top}),this._endAction()},validate:function(e){return!this.option("disabled")&&(!!this.option("bounceEnabled")||(q(e)?this._validateWheel(e):this._validateMove(e)))},_validateWheel:function(e){var t=this,n=this._scrollers[this._wheelDirection(e)],i=n._reachedMin(),o=n._reachedMax(),a=!i||!o,r=!i&&!o,s=i&&e.delta>0,l=o&&e.delta<0,u=a&&(r||s||l);return(u=u||void 0!==this._validateWheelTimer)&&(clearTimeout(this._validateWheelTimer),this._validateWheelTimer=setTimeout(function(){t._validateWheelTimer=void 0},500)),u},_validateMove:function(e){return!(!this.option("scrollByContent")&&!a(e.target).closest(".dx-scrollable-scrollbar").length)&&this._allowedDirection()},getDirection:function(e){return q(e)?this._wheelDirection(e):this._allowedDirection()},_wheelProp:function(){return this._wheelDirection()===O?"left":"top"},_wheelDirection:function(e){switch(this.option("direction")){case O:return O;case A:return A;default:return e&&e.shiftKey?O:A}},verticalOffset:function(){return 0},dispose:function(){this._resetActive(),i===this&&(i=null),this._eventHandler("dispose"),this._detachEventHandlers(),this._$element.removeClass(E),this._eventForUserAction=null,clearTimeout(this._validateWheelTimer)},_detachEventHandlers:function(){s.off(this._$element,"."+T),s.off(this._$container,"."+D)}});t.SimulatedStrategy=U,t.Scroller=K},function(e,t,n){var i=n(4).noop,o=n(14),a=o.abstract,r=n(112),s=o.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,r.cancelAnimationFrame(this._stepAnimationFrame)},_stepCore:function(){return this._isStopped()?void this._stop():this._isFinished()?(this._finished=!0,void this._complete()):(this._step(),void(this._stepAnimationFrame=r.requestAnimationFrame(this._proxiedStepCore)))},_step:a,_isFinished:i,_stop:i,_complete:i,_isStopped:function(){return this._stopped},inProgress:function(){return!(this._stopped||this._finished)}});e.exports=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.findChanges=void 0;var i=n(1),o=function(e,t){var n=t(e);if((0,i.isObject)(n))try{return JSON.stringify(n)}catch(e){return n}return n},a=function(e,t,n,i){return t[n[o(e,i)]]};t.findChanges=function(e,t,n,i){var r={},s={},l=0,u=0,c=[];e.forEach(function(e,t){var i=o(e,n);r[i]=t}),t.forEach(function(e,t){var i=o(e,n);s[i]=t});for(var d=Math.max(e.length,t.length),h=0;h<d+l;h++){var p=t[h],f=h-l+u,g=e[f];if(!p||g&&!a(g,t,s,n))g&&(c.push({type:"remove",key:n(g),index:h,oldItem:g}),u++,h--);else{var _=o(p,n),m=r[_],v=e[m];if(v){if(m!==f)return;i(v,p)||c.push({type:"update",data:p,key:n(p),index:h,oldItem:v})}else l++,c.push({type:"insert",data:p,index:h})}}return c}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(17)),r=i(n(34)),s=i(n(54)),l=i(n(8)),u=n(0),c=n(1),d=i(n(65)),h="dx-buttongroup",p=h+"-item",f=p+"-has-width",g=s.default.inherit({_renderItemContent:function(e){e.container=(0,o.default)(e.container).parent(),this.callBase(e)},_focusTarget:function(){return this.$element().parent()},_keyboardEventBindingTarget:function(){return this._focusTarget()},_refreshContent:function(){this._prepareContent(),this._renderContent()},_itemClass:function(){return p},_itemSelectHandler:function(e){"single"===this.option("selectionMode")&&this.isItemSelected(e.currentTarget)||this.callBase(e)}}),_=a.default.inherit({_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{hoverStateEnabled:!0,focusStateEnabled:!0,selectionMode:"single",selectedItems:[],selectedItemKeys:[],stylingMode:"contained",keyExpr:"text",items:[],itemTemplate:"item",onSelectionChanged:null,onItemClick:null})},_prepareItemStyles:function(e){var t=e.data("dxItemIndex");0===t&&e.addClass("dx-buttongroup-first-item");var n=this.option("items");n&&t===n.length-1&&e.addClass("dx-buttongroup-last-item"),e.addClass("dx-shape-standard")},_initTemplates:function(){var e=this;this.callBase(),this._defaultTemplates.item=new d.default(function(t,n,i){e._prepareItemStyles(t),e._createComponent(t,r.default,(0,u.extend)({},i,n,e._getBasicButtonOptions()))},["text","type","icon","disabled","visible","hint"],this.option("integrationOptions.watchMethod"))},_init:function(){this.callBase(),this._createItemClickAction()},_createItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initMarkup:function(){this.setAria("role","group"),this.$element().addClass(h),this._renderButtons(),this._syncSelectionOptions(),this.callBase()},_fireSelectionChangeEvent:function(e,t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:e,removedItems:t})},_getBasicButtonOptions:function(){return{focusStateEnabled:!1,stylingMode:this.option("stylingMode"),hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),onClick:null}},_renderButtons:function(){var e=this,t=(0,o.default)("<div>").addClass("dx-buttongroup-wrapper").appendTo(this.$element()),n=this.option("selectedItems"),i={selectionMode:this.option("selectionMode"),items:this.option("items"),keyExpr:this.option("keyExpr"),itemTemplate:this._getTemplateByOption("itemTemplate"),scrollingEnabled:!1,selectedItemKeys:this.option("selectedItemKeys"),focusStateEnabled:this.option("focusStateEnabled"),accessKey:this.option("accessKey"),tabIndex:this.option("tabIndex"),noDataText:"",selectionRequired:!1,onItemRendered:function(t){var n=e.option("width");(0,c.isDefined)(n)&&(0,o.default)(t.itemElement).addClass(f)},onSelectionChanged:function(t){e._syncSelectionOptions(),e._fireSelectionChangeEvent(t.addedItems,t.removedItems)},onItemClick:function(t){e._itemClickAction(t)}};(0,c.isDefined)(n)&&n.length&&(i.selectedItems=n),this._buttonsCollection=this._createComponent(t,g,i)},_syncSelectionOptions:function(){this._setOptionSilent("selectedItems",this._buttonsCollection.option("selectedItems")),this._setOptionSilent("selectedItemKeys",this._buttonsCollection.option("selectedItemKeys"))},_optionChanged:function(e){switch(e.name){case"stylingMode":case"selectionMode":case"keyExpr":case"itemTemplate":case"items":case"activeStateEnabled":case"focusStateEnabled":case"hoverStateEnabled":case"tabIndex":this._invalidate();break;case"selectedItemKeys":case"selectedItems":this._buttonsCollection.option(e.name,e.value);break;case"onItemClick":this._createItemClickAction();break;case"onSelectionChanged":break;case"width":this.callBase(e),this.$element().find("."+p).toggleClass(f,!!e.value);break;default:this.callBase(e)}}});(0,l.default)("dxButtonGroup",_),e.exports=_},function(e,t,n){e.exports=n(520)},function(e,t,n){var i=n(2),o=n(5),a=n(26),r=n(0).extend,s=n(90),l=n(15),u=n(16),c=n(8),d=n(49),h=n(116),p=n(92),f=n(301),g=n(19),_="dx-colorview-container-row",m="dx-colorview-palette-gradient",v="dx-colorview-palette-gradient-white",y="dx-colorview-palette-gradient-black",b="dx-colorview-color-preview",x="dx-colorview-color-preview-color-current",w="dx-colorview-color-preview-color-new",C=d.inherit({_supportedKeys:function(){var e=this.option("rtlEnabled"),t=this,n=function(e){var n=100/t._paletteWidth;return e.shiftKey&&(n*=t.option("keyStep")),n=n>1?n:1,Math.round(n)},i=function(e){var n=t._currentColor.hsv.s+e;n>100?n=100:n<0&&(n=0),t._currentColor.hsv.s=n,l()},o=function(e){var n=100/t._paletteHeight;return e.shiftKey&&(n*=t.option("keyStep")),n=n>1?n:1,Math.round(n)},s=function(e){var n=t._currentColor.hsv.v+e;n>100?n=100:n<0&&(n=0),t._currentColor.hsv.v=n,l()},l=function(){t._placePaletteHandle(),t._updateColorFromHsv(t._currentColor.hsv.h,t._currentColor.hsv.s,t._currentColor.hsv.v)},u=function(e){var n=360/(t._hueScaleWrapperHeight-t._hueScaleHandleHeight);return e.shiftKey&&(n*=t.option("keyStep")),n>1?n:1},c=function(e){t._currentColor.hsv.h+=e,t._placeHueScaleHandle();var n=a.locate(t._$hueScaleHandle);t._updateColorHue(n.top+t._hueScaleHandleHeight/2)},d=function(n){var i=1/t._alphaChannelScaleWorkWidth;return n.shiftKey&&(i*=t.option("keyStep")),i=i>.01?i:.01,e?-i:i},h=function(e){t._currentColor.a+=e,t._placeAlphaChannelHandle();var n=a.locate(t._$alphaChannelHandle);t._calculateColorTransparencyByScaleWidth(n.left+t._alphaChannelHandleWidth/2)};return r(this.callBase(),{upArrow:function(e){e.preventDefault(),e.stopPropagation(),e.ctrlKey?this._currentColor.hsv.h<=360&&!this._isTopColorHue&&c(u(e)):this._currentColor.hsv.v<100&&s(o(e))},downArrow:function(e){e.preventDefault(),e.stopPropagation(),e.ctrlKey?this._currentColor.hsv.h>=0&&(this._isTopColorHue&&(this._currentColor.hsv.h=360),c(-u(e))):this._currentColor.hsv.v>0&&s(-o(e))},rightArrow:function(t){t.preventDefault(),t.stopPropagation(),t.ctrlKey?(e?this._currentColor.a<1:this._currentColor.a>0&&this.option("editAlphaChannel"))&&h(-d(t)):this._currentColor.hsv.s<100&&i(n(t))},leftArrow:function(t){t.preventDefault(),t.stopPropagation(),t.ctrlKey?(e?this._currentColor.a>0:this._currentColor.a<1&&this.option("editAlphaChannel"))&&h(d(t)):this._currentColor.hsv.s>0&&i(-n(t))},enter:function(e){this._fireEnterKeyPressed(e)}})},_getDefaultOptions:function(){return r(this.callBase(),{value:null,matchValue:null,onEnterKeyPressed:void 0,editAlphaChannel:!1,keyStep:1,stylingMode:void 0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===u.real().deviceType&&!u.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this._initColorAndOpacity(),this._initEnterKeyPressedAction()},_initEnterKeyPressedAction:function(){this._onEnterKeyPressedAction=this._createActionByOption("onEnterKeyPressed")},_fireEnterKeyPressed:function(e){this._onEnterKeyPressedAction&&this._onEnterKeyPressedAction({event:e})},_initColorAndOpacity:function(){this._setCurrentColor(this.option("value"))},_setCurrentColor:function(e){var t=new s(e=e||"#000000");t.colorIsInvalid?this.option("value",this._currentColor.baseColor):this._currentColor&&this._makeRgba(this._currentColor)===this._makeRgba(t)||(this._currentColor=t,this._$currentColor&&this._makeTransparentBackground(this._$currentColor,t))},_setBaseColor:function(e){var t=new s(e||"#000000");t.colorIsInvalid||this._makeRgba(this.option("matchValue")!==this._makeRgba(t))&&this._$baseColor&&this._makeTransparentBackground(this._$baseColor,t)},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-colorview"),this._renderColorPickerContainer()},_render:function(){this.callBase(),this._renderPalette(),this._renderHueScale(),this._renderControlsContainer(),this._renderControls(),this._renderAlphaChannelElements()},_makeTransparentBackground:function(e,t){t instanceof s||(t=new s(t)),e.css("backgroundColor",this._makeRgba(t))},_makeRgba:function(e){return e instanceof s||(e=new s(e)),"rgba("+[e.r,e.g,e.b,e.a].join(", ")+")"},_renderValue:function(){this.callBase(this.option("editAlphaChannel")?this._makeRgba(this._currentColor):this.option("value"))},_renderColorPickerContainer:function(){var e=this.$element();this._$colorPickerContainer=i("<div>").addClass("dx-colorview-container").appendTo(e),this._renderHtmlRows()},_renderHtmlRows:function(e){var t=this._$colorPickerContainer.find("."+_),n=t.length,o=n-(this.option("editAlphaChannel")?2:1);if(o>0&&t.eq(-1).remove(),o<0){o=Math.abs(o);var a,r=[];for(a=0;a<o;a++)r.push(i("<div>").addClass(_));if(n)for(a=0;a<r.length;a++)t.eq(0).after(r[a]);else this._$colorPickerContainer.append(r)}},_renderHtmlCellInsideRow:function(e,t,n){return i("<div>").addClass("dx-colorview-container-cell").addClass(n).appendTo(t.find("."+_).eq(e))},_renderPalette:function(){var e=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer,"dx-colorview-palette-cell"),t=i("<div>").addClass([m,v].join(" ")),n=i("<div>").addClass([m,y].join(" "));this._$palette=i("<div>").addClass("dx-colorview-palette").css("backgroundColor",this._currentColor.getPureColor().toHex()).appendTo(e),this._paletteHeight=this._$palette.height(),this._paletteWidth=this._$palette.width(),this._renderPaletteHandle(),this._$palette.append([t,n])},_renderPaletteHandle:function(){this._$paletteHandle=i("<div>").addClass("dx-colorview-palette-handle").appendTo(this._$palette),this._createComponent(this._$paletteHandle,f,{area:this._$palette,allowMoveByClick:!0,boundOffset:function(){return-this._paletteHandleHeight/2}.bind(this),onDrag:function(){var e=a.locate(this._$paletteHandle);this._updateByDrag=!0,this._updateColorFromHsv(this._currentColor.hsv.h,this._calculateColorSaturation(e),this._calculateColorValue(e))}.bind(this)}),this._paletteHandleWidth=this._$paletteHandle.width(),this._paletteHandleHeight=this._$paletteHandle.height(),this._placePaletteHandle()},_placePaletteHandle:function(){a.move(this._$paletteHandle,{left:Math.round(this._paletteWidth*this._currentColor.hsv.s/100-this._paletteHandleWidth/2),top:Math.round(this._paletteHeight-this._paletteHeight*this._currentColor.hsv.v/100-this._paletteHandleHeight/2)})},_calculateColorValue:function(e){var t=Math.floor(e.top+this._paletteHandleHeight/2);return 100-Math.round(100*t/this._paletteHeight)},_calculateColorSaturation:function(e){var t=Math.floor(e.left+this._paletteHandleWidth/2);return Math.round(100*t/this._paletteWidth)},_updateColorFromHsv:function(e,t,n){var i=this._currentColor.a;this._currentColor=new s("hsv("+[e,t,n].join(",")+")"),this._currentColor.a=i,this._updateColorParamsAndColorPreview(),this.applyColor()},_renderHueScale:function(){var e=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer,"dx-colorview-hue-scale-cell");this._$hueScaleWrapper=i("<div>").addClass("dx-colorview-hue-scale-wrapper").appendTo(e),this._$hueScale=i("<div>").addClass("dx-colorview-hue-scale").appendTo(this._$hueScaleWrapper),this._hueScaleHeight=this._$hueScale.height(),this._hueScaleWrapperHeight=this._$hueScaleWrapper.outerHeight(),this._renderHueScaleHandle()},_renderHueScaleHandle:function(){this._$hueScaleHandle=i("<div>").addClass("dx-colorview-hue-scale-handle").appendTo(this._$hueScaleWrapper),this._createComponent(this._$hueScaleHandle,f,{area:this._$hueScaleWrapper,allowMoveByClick:!0,direction:"vertical",onDrag:function(){this._updateByDrag=!0,this._updateColorHue(a.locate(this._$hueScaleHandle).top+this._hueScaleHandleHeight/2)}.bind(this)}),this._hueScaleHandleHeight=this._$hueScaleHandle.height(),this._placeHueScaleHandle()},_placeHueScaleHandle:function(){var e=this._hueScaleWrapperHeight,t=this._hueScaleHandleHeight,n=(e-t)*(360-this._currentColor.hsv.h)/360;e<n+t&&(n=e-t),n<0&&(n=0),a.move(this._$hueScaleHandle,{top:Math.round(n)})},_updateColorHue:function(e){var t=360-Math.round(360*(e-this._hueScaleHandleHeight/2)/(this._hueScaleWrapperHeight-this._hueScaleHandleHeight)),n=this._currentColor.hsv.s,i=this._currentColor.hsv.v;this._isTopColorHue=!1,(t=t<0?0:t)>=360&&(this._isTopColorHue=!0,t=0),this._updateColorFromHsv(t,n,i),this._$palette.css("backgroundColor",this._currentColor.getPureColor().toHex())},_renderControlsContainer:function(){var e=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer);this._$controlsContainer=i("<div>").addClass("dx-colorview-controls-container").appendTo(e)},_renderControls:function(){this._renderColorsPreview(),this._renderRgbInputs(),this._renderHexInput()},_renderColorsPreview:function(){var e=i("<div>").addClass("dx-colorview-color-preview-container").appendTo(this._$controlsContainer),t=i("<div>").addClass("dx-colorview-color-preview-container-inner").appendTo(e);this._$currentColor=i("<div>").addClass([b,w].join(" ")),this._$baseColor=i("<div>").addClass([b,x].join(" ")),this._makeTransparentBackground(this._$baseColor,this.option("matchValue")),this._makeTransparentBackground(this._$currentColor,this._currentColor),t.append([this._$baseColor,this._$currentColor])},_renderAlphaChannelElements:function(){this.option("editAlphaChannel")&&(this._$colorPickerContainer.find("."+_).eq(1).addClass("dx-colorview-alpha-channel-row"),this._renderAlphaChannelScale(),this._renderAlphaChannelInput())},_renderRgbInputs:function(){this._rgbInputsWithLabels=[this._renderEditorWithLabel({editorType:h,value:this._currentColor.r,onValueChanged:this._updateColor.bind(this,!1),labelText:"R",labelAriaText:l.format("dxColorView-ariaRed"),labelClass:"dx-colorview-label-red"}),this._renderEditorWithLabel({editorType:h,value:this._currentColor.g,onValueChanged:this._updateColor.bind(this,!1),labelText:"G",labelAriaText:l.format("dxColorView-ariaGreen"),labelClass:"dx-colorview-label-green"}),this._renderEditorWithLabel({editorType:h,value:this._currentColor.b,onValueChanged:this._updateColor.bind(this,!1),labelText:"B",labelAriaText:l.format("dxColorView-ariaBlue"),labelClass:"dx-colorview-label-blue"})],this._$controlsContainer.append(this._rgbInputsWithLabels),this._rgbInputs=[this._rgbInputsWithLabels[0].find(".dx-numberbox").dxNumberBox("instance"),this._rgbInputsWithLabels[1].find(".dx-numberbox").dxNumberBox("instance"),this._rgbInputsWithLabels[2].find(".dx-numberbox").dxNumberBox("instance")]},_renderEditorWithLabel:function(e){var t=i("<div>"),n=i("<label>").addClass(e.labelClass).text(e.labelText+":").append(t);o.off(n,g.name),o.on(n,g.name,function(e){e.preventDefault()});var a=e.editorType,s=r({value:e.value,onValueChanged:e.onValueChanged},{stylingMode:this.option("stylingMode")});return a===h&&(s.min=e.min||0,s.max=e.max||255,s.step=e.step||1),new a(t,s).registerKeyHandler("enter",function(e){this._fireEnterKeyPressed(e)}.bind(this)),this.setAria("label",e.labelAriaText,t),n},hexInputOptions:function(){return{editorType:p,value:this._currentColor.toHex().replace("#",""),onValueChanged:this._updateColor.bind(this,!0),labelClass:"dx-colorview-label-hex",labelText:"#",labelAriaText:l.format("dxColorView-ariaHex")}},_renderHexInput:function(){this._hexInput=p.getInstance(this._renderEditorWithLabel(this.hexInputOptions()).appendTo(this._$controlsContainer).find(".dx-textbox"))},_renderAlphaChannelScale:function(){var e=this._renderHtmlCellInsideRow(1,this._$colorPickerContainer,"dx-colorview-alpha-channel-cell"),t=i("<div>").addClass("dx-colorview-alpha-channel-border").appendTo(e),n=i("<div>").addClass("dx-colorview-alpha-channel-wrapper").appendTo(t);this._$alphaChannelScale=i("<div>").addClass("dx-colorview-alpha-channel-scale").appendTo(n),this._makeCSSLinearGradient(this._$alphaChannelScale),this._renderAlphaChannelHandle(e)},_makeCSSLinearGradient:function(e){var t=this._currentColor,n=[t.r,t.g,t.b].join(","),i=t.toHex().replace("#","");e.attr("style",function(e,t){var n=this.option("rtlEnabled"),i="rgba("+e+", "+(n?"1":"0")+")",o="rgba("+e+", "+(n?"0":"1")+")";return["background-image: -webkit-linear-gradient(180deg, "+i+", "+o+")","background-image: -moz-linear-gradient(-90deg, "+i+", "+o+")","background-image: -o-linear-gradient(-90deg, "+i+", "+o+")","background-image: linear-gradient(-90deg, "+i+", "+o+")","filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#"+(n?"00":"")+t+"', endColorstr='#"+(n?"":"00")+t+"')"].join(";")}.call(this,n,i))},_renderAlphaChannelInput:function(){var e=this,t=this._renderHtmlCellInsideRow(1,this._$colorPickerContainer);e._alphaChannelInput=this._renderEditorWithLabel({editorType:h,value:this._currentColor.a,max:1,step:.1,onValueChanged:function(t){var n=t.value;n=e._currentColor.isValidAlpha(n)?n:e._currentColor.a,e._updateColorTransparency(n),e._placeAlphaChannelHandle()},labelClass:"dx-colorview-alpha-channel-label",labelText:"Alpha",labelAriaText:l.format("dxColorView-ariaAlpha")}).appendTo(t).find(".dx-numberbox").dxNumberBox("instance")},_updateColorTransparency:function(e){this._currentColor.a=e,this.applyColor()},_renderAlphaChannelHandle:function(e){this._$alphaChannelHandle=i("<div>").addClass("dx-colorview-alpha-channel-handle").appendTo(e),this._createComponent(this._$alphaChannelHandle,f,{area:e,allowMoveByClick:!0,direction:"horizontal",onDrag:function(){this._updateByDrag=!0;var e=this._$alphaChannelHandle,t=a.locate(e).left+this._alphaChannelHandleWidth/2;this._calculateColorTransparencyByScaleWidth(t)}.bind(this)}),this._alphaChannelHandleWidth=this._$alphaChannelHandle.width(),this._alphaChannelScaleWorkWidth=e.width()-this._alphaChannelHandleWidth,this._placeAlphaChannelHandle()},_calculateColorTransparencyByScaleWidth:function(e){var t=(e-this._alphaChannelHandleWidth/2)/this._alphaChannelScaleWorkWidth,n=this.option("rtlEnabled");t=n?t:1-t,e>=this._alphaChannelScaleWorkWidth+this._alphaChannelHandleWidth/2?t=n?1:0:t<1&&(t=t.toFixed(2)),t=Math.max(t,0),t=Math.min(t,1),this._alphaChannelInput.option("value",t)},_placeAlphaChannelHandle:function(){var e=this._alphaChannelScaleWorkWidth*(1-this._currentColor.a);e<0&&(e=0),this._alphaChannelScaleWorkWidth<e&&(e=this._alphaChannelScaleWorkWidth),a.move(this._$alphaChannelHandle,{left:this.option("rtlEnabled")?this._alphaChannelScaleWorkWidth-e:e})},applyColor:function(){var e=this.option("editAlphaChannel")?this._makeRgba(this._currentColor):this._currentColor.toHex();this._makeTransparentBackground(this._$currentColor,this._currentColor),this.option("value",e)},cancelColor:function(){this._initColorAndOpacity(),this._refreshMarkup()},_updateColor:function(e,t){var n,i;e?i=this._validateHex("#"+this._hexInput.option("value")):(n=this._validateRgb(),this._alphaChannelInput?(n.push(this._alphaChannelInput.option("value")),i="rgba("+n.join(", ")+")"):i="rgb("+n.join(", ")+")"),this._suppressEditorsValueUpdating||(this._currentColor=new s(i),this.applyColor(),this._refreshMarkup())},_validateHex:function(e){return this._currentColor.isValidHex(e)?e:this._currentColor.toHex()},_validateRgb:function(){var e=this._rgbInputs[0].option("value"),t=this._rgbInputs[1].option("value"),n=this._rgbInputs[2].option("value");return this._currentColor.isValidRGB(e,t,n)||(e=this._currentColor.r,t=this._currentColor.g,n=this._currentColor.b),[e,t,n]},_refreshMarkup:function(){this._placeHueScaleHandle(),this._placePaletteHandle(),this._updateColorParamsAndColorPreview(),this._$palette.css("backgroundColor",this._currentColor.getPureColor().toHex()),this._$alphaChannelHandle&&(this._updateColorTransparency(this._currentColor.a),this._placeAlphaChannelHandle())},_updateColorParamsAndColorPreview:function(){this._suppressEditorsValueUpdating=!0,this._hexInput.option("value",this._currentColor.toHex().replace("#","")),this._rgbInputs[0].option("value",this._currentColor.r),this._rgbInputs[1].option("value",this._currentColor.g),this._rgbInputs[2].option("value",this._currentColor.b),this._suppressEditorsValueUpdating=!1,this.option("editAlphaChannel")&&(this._makeCSSLinearGradient.call(this,this._$alphaChannelScale),this._alphaChannelInput.option("value",this._currentColor.a))},_optionChanged:function(e){var t=e.value;switch(e.name){case"value":this._setCurrentColor(t),this._updateByDrag||this._refreshMarkup(),this._updateByDrag=!1,this.callBase(e);break;case"matchValue":this._setBaseColor(t);break;case"onEnterKeyPressed":this._initEnterKeyPressedAction();break;case"editAlphaChannel":this._$colorPickerContainer&&(this._renderHtmlRows("editAlphaChannel"),this._renderAlphaChannelElements());break;case"keyStep":break;case"stylingMode":this._renderControls();break;default:this.callBase(e)}}});c("dxColorView",C),e.exports=C},function(e,t,n){var i=n(2),o=n(7).getWindow(),a=n(5),r=n(43),s=n(8),l=n(26),u=n(32).dasherize,c=n(0).extend,d=n(66),h=n(9),p=n(24),f=n(55),g=n(77),_=n(1).isFunction,m=n(4).noop,v="dxDraggable",y=h.addNamespace(f.start,v),b=h.addNamespace(f.move,v),x=h.addNamespace(f.end,v),w=h.addNamespace(p.down,v),C=u(v),k=C+"-dragging",S=d.inherit({_getDefaultOptions:function(){return c(this.callBase(),{onDragStart:m,onDrag:m,onDragEnd:m,immediate:!0,direction:"both",area:o,boundOffset:0,allowMoveByClick:!1})},_init:function(){this.callBase(),this._attachEventHandlers()},_attachEventHandlers:function(){if(!this.option("disabled")){var e=this.$element().css("position","absolute"),t={},n=this.option("allowMoveByClick");t[y]=this._dragStartHandler.bind(this),t[b]=this._dragHandler.bind(this),t[x]=this._dragEndHandler.bind(this),n&&(t[w]=this._pointerDownHandler.bind(this),e=this._getArea()),a.on(e,t,{direction:this.option("direction"),immediate:this.option("immediate")})}},_detachEventHandlers:function(){a.off(this.$element(),"."+v),a.off(this._getArea(),"."+v)},_move:function(e){l.move(this.$element(),e)},_pointerDownHandler:function(e){if(!h.needSkipEvent(e)){var t=this._getAreaOffset(i(e.currentTarget)),n=this.option("direction"),o={};"horizontal"!==n&&"both"!==n||(o.left=e.pageX-this.$element().width()/2-t.left),"vertical"!==n&&"both"!==n||(o.top=e.pageY-this.$element().height()/2-t.top),this._move(o),this._getAction("onDrag")({event:e})}},_dragStartHandler:function(e){var t=this.$element();if(t.is(".dx-state-disabled, .dx-state-disabled *"))e.cancel=!0;else{var n=this._getArea(),i=this._getAreaOffset(n),o=this._getBoundOffset(),a=n.outerWidth(),r=n.outerHeight(),s=t.width(),u=t.height();this._toggleDraggingClass(!0);var c=t.offset().left-i.left,d=t.offset().top-i.top;this._startPosition=l.locate(t),e.maxLeftOffset=c-o.left,e.maxRightOffset=a-c-s-o.right,e.maxTopOffset=d-o.top,e.maxBottomOffset=r-d-u-o.bottom,this._getAction("onDragStart")({event:e})}},_getAreaOffset:function(e){var t=e&&g.offset(e);return t||{left:0,top:0}},_toggleDraggingClass:function(e){this.$element().toggleClass(k,e)},_getBoundOffset:function(){var e=this.option("boundOffset");return _(e)&&(e=e.call(this)),r.quadToObject(e)},_getArea:function(){var e=this.option("area");return _(e)&&(e=e.call(this)),i(e)},_dragHandler:function(e){var t=e.offset,n=this._startPosition;this._move({left:n.left+t.x,top:n.top+t.y}),this._getAction("onDrag")({event:e})},_dragEndHandler:function(e){this._toggleDraggingClass(!1),this._getAction("onDragEnd")({event:e})},_getAction:function(e){return this["_"+e+"Action"]||this._createActionByOption(e)},_render:function(){this.callBase(),this.$element().addClass(C)},_optionChanged:function(e){var t=e.name;switch(t){case"onDragStart":case"onDrag":case"onDragEnd":this["_"+t+"Action"]=this._createActionByOption(t);break;case"allowMoveByClick":case"direction":case"disabled":this._detachEventHandlers(),this._attachEventHandlers();break;case"boundOffset":case"area":break;default:this.callBase(e)}},_dispose:function(){this.callBase(),this._detachEventHandlers()}});s(v,S),e.exports=S},function(e,t,n){var i=n(243),o=n(193),a=n(22),r=n(4),s=n(1).isFunction,l=n(0).extend,u=n(15),c=o.inherit({NAME:"Calendar",supportedKeys:function(){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"))return!0;var t=this._widget._view.option("contouredDate");t&&this.dateBoxValue(t,e),this.dateBox.close(),this.dateBox._valueChangeEventHandler(e)}else this.dateBox._valueChangeEventHandler(e)}.bind(this)}},getDisplayFormat:function(e){return e||"shortdate"},_getWidgetName:function(){return i},_getWidgetOptions:function(){var e=this.dateBox.option("disabledDates");return l(this.dateBox.option("calendarOptions"),{value:this.dateBoxValue()||null,dateSerializationFormat:null,_keyboardProcessor:this._widgetKeyboardProcessor,min:this.dateBox.dateOption("min"),max:this.dateBox.dateOption("max"),onValueChanged:this._valueChangedHandler.bind(this),onCellClick:this._cellClickHandler.bind(this),tabIndex:null,disabledDates:s(e)?this._injectComponent(e.bind(this.dateBox)):e,onContouredChanged:this._refreshActiveDescendant.bind(this),hasFocus:function(){return!0}})},_injectComponent:function(e){var t=this;return function(n){return l(n,{component:t.dateBox}),e(n)}},_refreshActiveDescendant:function(e){this.dateBox.setAria("activedescendant",e.actionValue)},popupConfig:function(e){var t,n=e.toolbarItems,i=this.dateBox.option("buttonsLocation");return t="default"!==i?r.splitPair(i):["bottom","center"],"useButtons"===this.dateBox.option("applyValueMode")&&n.unshift({widget:"dxButton",toolbar:t[0],location:"after"===t[1]?"before":t[1],options:{onClick:function(){this._widget._toTodayView()}.bind(this),text:u.format("dxCalendar-todayButtonText"),type:"today"}}),l(!0,e,{toolbarItems:n,position:{collision:"flipfit flip"}})},_valueChangedHandler:function(e){var t=this.dateBox,n=e.value,i=e.previousValue;a.sameDate(n,i)||"instantly"===t.option("applyValueMode")&&this.dateBoxValue(this.getValue(),e.event)},_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},textChangedHandler:function(){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))}});e.exports=c},function(e,t,n){e.exports=n(304)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(5)),r=i(n(1)),s=n(10),l=i(n(8)),u=n(0),c=i(n(17)),d=i(n(111)),h=n(7),p=i(n(538)),f=i(n(539)),g=i(n(540)),_=n(194),m=i(n(19)),v=i(n(39)),y=n(6),b="dx-drawer",x="dx-state-invisible",w=c.default.inherit({_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{position:"left",opened:!1,minSize:null,maxSize:null,shading:!1,template:"panel",openedStateMode:"shrink",revealMode:"slide",animationEnabled:!0,animationDuration:400,closeOnOutsideClick:!1,contentTemplate:"content",target:void 0})},_getAnonymousTemplateName:function(){return"content"},_init:function(){this.callBase(),this._initStrategy(),this.$element().addClass(b),this._animations=[],this._animationPromise=void 0,this._whenPanelRendered=void 0,this._whenPanelRefreshed=void 0,this._initHideTopOverlayHandler(),this._initContentMarkup()},_initStrategy:function(){var e=this.option("openedStateMode"),t=this._getDefaultStrategy();"push"===e&&(t=p.default),"shrink"===e&&(t=f.default),"overlap"===e&&(t=g.default),this._strategy=new t(this)},_initContentMarkup:function(){this._$wrapper=(0,o.default)("<div>").addClass("dx-drawer-wrapper"),this._$contentWrapper=(0,o.default)("<div>").addClass("dx-drawer-content"),this._$wrapper.append(this._$contentWrapper),this.$element().append(this._$wrapper)},_getDefaultStrategy:function(){return p.default},_initHideTopOverlayHandler:function(){this._hideMenuHandler=this.hide.bind(this)},_initTemplates:function(){this.callBase(),this._defaultTemplates.panel=new d.default(this),this._defaultTemplates.content=new d.default(this)},_initCloseOnOutsideClickHandler:function(){a.default.off(this._$contentWrapper,m.default.name),a.default.on(this._$contentWrapper,m.default.name,this._outsideClickHandler.bind(this))},_outsideClickHandler:function(e){var t=this.option("closeOnOutsideClick");r.default.isFunction(t)&&(t=t(e)),t&&this.option("opened")&&(this.stopAnimations(),this.option("shading")&&e.preventDefault(),this.hide(),this._toggleShaderVisibility(!1))},_initMarkup:function(){this.callBase(),this._toggleVisibleClass(this.option("opened")),this._renderPanelElement(),this._refreshModeClass(),this._refreshRevealModeClass(),this._renderShader(),this._whenPanelRendered=new y.Deferred,this._strategy.renderPanel(this._getTemplate(this.option("template")),this._whenPanelRendered);var e=this.option("contentTemplate"),t=this._getTemplate(e),n=this._getAnonymousTemplateName()===e;t&&t.render({container:this.viewContent(),noModel:!0,transclude:n}),this._initCloseOnOutsideClickHandler(),this._refreshPositionClass()},_render:function(){var e=this;this._initSize(),this.callBase(),this._whenPanelRendered.always(function(){e._initSize(),e._strategy.setPanelSize("slide"===e.option("revealMode")||!e.isHorizontalDirection()),e._renderPosition(e.option("opened"),!1)})},_renderPanelElement:function(){this._$panel=(0,o.default)("<div>").addClass("dx-drawer-panel-content"),this._$wrapper.append(this._$panel)},_refreshModeClass:function(e){e&&this.$element().removeClass(b+"-"+e),this.$element().addClass(b+"-"+this.option("openedStateMode"))},_refreshPositionClass:function(e){e&&this.$element().removeClass(b+"-"+e);var t=this.getDrawerPosition();this.$element().addClass(b+"-"+t),this._orderContent(t)},_orderContent:function(e){this._strategy.needOrderContent(e,this.option("rtlEnabled"))?this._$wrapper.prepend(this._$contentWrapper):this._$wrapper.prepend(this._$panel)},_refreshRevealModeClass:function(e){e&&this.$element().removeClass(b+"-"+e),this.$element().addClass(b+"-"+this.option("revealMode"))},_renderShader:function(){this._$shader=this._$shader||(0,o.default)("<div>").addClass("dx-drawer-shader"),this._$shader.appendTo(this.viewContent()),this._toggleShaderVisibility(this.option("opened"))},_initSize:function(){var e=this.isHorizontalDirection()?this.getRealPanelWidth():this.getRealPanelHeight();this._maxSize=this.option("maxSize")||e,this._minSize=this.option("minSize")||0},getDrawerPosition:function(){var e=this.option("position"),t=this.option("rtlEnabled");return"before"===e?t?"right":"left":"after"===e?t?"left":"right":e},getOverlayTarget:function(){return this.option("target")||this._$wrapper},getOverlay:function(){return this._overlay},getMaxSize:function(){return this._maxSize},getMinSize:function(){return this._minSize},getRealPanelWidth:function(){return(0,h.hasWindow)()?this.getElementWidth(this._strategy.getPanelContent()):0},getElementWidth:function(e){var t=e.children();return t.length?t.eq(0).get(0).getBoundingClientRect().width:e.get(0).getBoundingClientRect().width},getRealPanelHeight:function(){return(0,h.hasWindow)()?this.getElementHeight(this._strategy.getPanelContent()):0},getElementHeight:function(e){var t=e.children();return t.length?t.eq(0).get(0).getBoundingClientRect().height:e.get(0).getBoundingClientRect().height},isHorizontalDirection:function(){var e=this.getDrawerPosition();return"left"===e||"right"===e},stopAnimations:function(e){v.default.stop(this._$shader,e),v.default.stop((0,o.default)(this.content()),e),v.default.stop((0,o.default)(this.viewContent()),e);var t=this.getOverlay();t&&v.default.stop((0,o.default)(t.$content()),e)},setZIndex:function(e){this._$shader.css("zIndex",e-1),this._$panel.css("zIndex",e)},resizeContent:function(){(0,s.triggerResizeEvent)(this.viewContent())},_isInvertedPosition:function(){var e=this.getDrawerPosition();return"right"===e||"bottom"===e},_renderPosition:function(e,t,n){if(this.stopAnimations(n),this._animations=[],t=r.default.isDefined(t)?t&&this.option("animationEnabled"):this.option("animationEnabled"),(0,h.hasWindow)()){var i=this.option("animationDuration");e&&this._toggleShaderVisibility(e),this._strategy.renderPosition(e,t),this._strategy.renderShaderVisibility(e,t,i)}},_animationCompleteHandler:function(){this.resizeContent(),this._animationPromise&&(this._animationPromise.resolve(),this._animations=[])},_getPositionCorrection:function(){return this._isInvertedPosition()?-1:1},_dispose:function(){_.animation.complete((0,o.default)(this.viewContent())),this.callBase()},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._initSize(),this._strategy.setPanelSize("slide"===this.option("revealMode"))},_toggleShaderVisibility:function(e){this.option("shading")?(this._$shader.toggleClass(x,!e),this._$shader.css("visibility",e?"visible":"hidden")):this._$shader.toggleClass(x,!0)},_toggleVisibleClass:function(e){this.$element().toggleClass("dx-drawer-opened",e)},_refreshPanel:function(){var e=this;this._setInitialViewContentPosition(),this._cleanPanel(),this._renderPanelElement(),this._orderContent(this.getDrawerPosition()),this._whenPanelRefreshed=new y.Deferred,this._strategy.renderPanel(this._getTemplate(this.option("template")),this._whenPanelRefreshed),(0,h.hasWindow)()&&this._whenPanelRefreshed.always(function(){e._strategy.setPanelSize("slide"===e.option("revealMode")),e._renderPosition(e.option("opened"),!1,!0)})},_setInitialViewContentPosition:function(){(0,o.default)(this.viewContent()).css("paddingLeft",0),(0,o.default)(this.viewContent()).css("left",0),(0,o.default)(this.viewContent()).css("transform","translate(0px, 0px)")},_clean:function(){this._cleanFocusState(),this._cleanPanel()},_cleanPanel:function(){this._$panel.remove(),this._overlay&&(this._overlay.dispose(),delete this._overlay,delete this._$panel)},_optionChanged:function(e){switch(e.name){case"width":this.callBase(e),this._dimensionChanged();break;case"opened":this._renderPosition(e.value),this._toggleVisibleClass(e.value);break;case"position":this._refreshPositionClass(e.previousValue),this._invalidate();break;case"contentTemplate":case"template":this._invalidate();break;case"openedStateMode":case"target":this._initStrategy(),this._refreshModeClass(e.previousValue),this._refreshPanel();break;case"minSize":case"maxSize":this._initSize(),this._renderPosition(this.option("opened"),!1);break;case"revealMode":this._refreshRevealModeClass(e.previousValue),this._refreshPanel();break;case"shading":this._toggleShaderVisibility(this.option("opened"));break;case"animationEnabled":case"animationDuration":case"closeOnOutsideClick":break;default:this.callBase(e)}},content:function(){return(0,s.getPublicElement)(this._$panel)},viewContent:function(){return(0,s.getPublicElement)(this._$contentWrapper)},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},toggle:function(e){return e=void 0===e?!this.option("opened"):e,this._animationPromise=new y.Deferred,this.option("opened",e),this._animationPromise.promise()}});(0,l.default)("dxDrawer",w),e.exports=w},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function(e){return e&&e.__esModule?e:{default:e}}(n(42)),a=n(3),r=function(){function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._map={}}return i(e,[{key:"_findWidgetInstance",value:function(e){var t;return(0,a.each)(this._map,function(n,i){var o=i.widgetInstance,a=i.item;if(e(a))return t=o,!1}),t}},{key:"clear",value:function(){this._map={}}},{key:"add",value:function(e,t,n,i){return n=n||new o.default,this._map[n]={item:e,widgetInstance:t,$itemContainer:i},n}},{key:"addItemsOrExtendFrom",value:function(e){var t=this;e.each(function(e,n){t._map[e]?(t._map[e].widgetInstance=n.widgetInstance,t._map[e].$itemContainer=n.$itemContainer):t.add(n.item,n.widgetInstance,e,n.$itemContainer)})}},{key:"findWidgetInstanceByItem",value:function(e){return this._findWidgetInstance(function(t){return t===e})}},{key:"findWidgetInstanceByName",value:function(e){return this._findWidgetInstance(function(t){return e===t.name})}},{key:"findWidgetInstanceByDataField",value:function(e){return this._findWidgetInstance(function(t){return e===t.dataField})}},{key:"findItemContainerByItem",value:function(e){for(var t in this._map)if(this._map[t].item===e)return this._map[t].$itemContainer;return null}},{key:"each",value:function(e){(0,a.each)(this._map,function(t,n){e(t,n)})}}]),e}();t.default=r},function(e,t,n){var i=n(2),o=n(5),a=n(4),r=n(1),s=n(18),l=n(7),u=l.getWindow(),c=n(3),d=n(0).extend,h=n(8),p=n(191),f=n(54),g="dx-responsivebox",_=g+"-screen-",m="dxBoxItemData",v=f.inherit({_getDefaultOptions:function(){return d(this.callBase(),{rows:[],cols:[],screenByWidth:null,singleColumnScreen:"",height:"100%",width:"100%",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,onLayoutChanged:null,currentScreenFactor:void 0,_layoutStrategy:void 0})},_init:function(){this.option("screenByWidth")||(this._options.screenByWidth=l.defaultScreenFactorFunc),this.callBase(),this._initLayoutChangedAction()},_initLayoutChangedAction:function(){this._layoutChangedAction=this._createActionByOption("onLayoutChanged",{excludeValidators:["disabled","readonly"]})},_itemClass:function(){return"dx-box-item"},_itemDataKey:function(){return m},_initMarkup:function(){this.callBase(),this.$element().addClass(g),this._updateRootBox()},_updateRootBox:function(){clearTimeout(this._updateTimer),this._updateTimer=setTimeout(function(){this._$root&&o.triggerHandler(this._$root,"dxupdate")}.bind(this))},_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())},_setScreenSize:function(){var e=this._getCurrentScreen();this._removeScreenSizeClass(),this.$element().addClass(_+e),this.option("currentScreenFactor",e)},_removeScreenSizeClass:function(){var e=this.option("currentScreenFactor");e&&this.$element().removeClass(_+e)},_prepareGrid:function(){var e=this._grid=[];this._prepareRowsAndCols(),c.each(this._rows,function(){var t=[];e.push(t),c.each(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 n=this._filterByScreen(e),i=[],o=0;o<t;o++){var a=this._defaultSizeConfig();o<n.length&&r.isDefined(n[o].shrink)&&(a.shrink=n[o].shrink),i.push(a)}return i}return this._defaultSizeConfig(t)},_prepareRowsAndCols:function(){this._isSingleColumnScreen()?(this._prepareSingleColumnScreenItems(),this._rows=this.getSingleColumnRows(),this._cols=this._defaultSizeConfig(1)):(this._rows=this._sizesByScreen(this.option("rows")),this._cols=this._sizesByScreen(this.option("cols")))},_isSingleColumnScreen:function(){return this._screenRegExp().test(this.option("singleColumnScreen"))||!this.option("rows").length||!this.option("cols").length},_prepareSingleColumnScreenItems:function(){this._screenItems.sort(function(e,t){return e.location.row-t.location.row||e.location.col-t.location.col}),c.each(this._screenItems,function(e,t){d(t.location,{row:e,col:0,rowspan:1,colspan:1})})},_sizesByScreen:function(e){return c.map(this._filterByScreen(e),function(e){return d(this._defaultSizeConfig(),e)}.bind(this))},_createDefaultSizeConfig:function(){return{ratio:1,baseSize:0,minSize:0,maxSize:0}},_defaultSizeConfig:function(e){var t=this._createDefaultSizeConfig();if(!arguments.length)return t;for(var n=[],i=0;i<e;i++)n.push(t);return n},_filterByScreen:function(e){var t=this._screenRegExp();return a.grep(e,function(e){return!e.screen||t.test(e.screen)})},_screenRegExp:function(){var e=this._getCurrentScreen();return new RegExp("(^|\\s)"+e+"($|\\s)","i")},_getCurrentScreen:function(){var e=this._screenWidth();return this.option("screenByWidth")(e)},_screenWidth:function(){return l.hasWindow()?i(u).width():1920},_createEmptyCell:function(){return{item:{},location:{colspan:1,rowspan:1}}},_spreadItems:function(){c.each(this._screenItems,function(e,t){var n=t.location||{},i=n.col,o=n.row,a=this._grid[o],r=a&&a[i];this._occupyCells(r,t)}.bind(this))},_itemsByScreen:function(){var e=this;return this.option("items").reduce(function(t,n){var i=n.location||{};return i=r.isPlainObject(i)?[i]:i,e._filterByScreen(i).forEach(function(e){t.push({item:n,location:d({rowspan:1,colspan:1},e)})}),t},[])},_occupyCells:function(e,t){e&&!this._isItemCellOccupied(e,t)&&(d(e,t),this._markSpanningCell(e))},_isItemCellOccupied:function(e,t){if(!r.isEmptyObject(e.item))return!0;var n=!1;return this._loopOverSpanning(t.location,function(e){n=n||!r.isEmptyObject(e.item)}),n},_loopOverSpanning:function(e,t){var n=e.row+e.rowspan-1,i=e.col+e.colspan-1,o=Math.min(n,this._rows.length-1),a=Math.min(i,this._cols.length-1);e.rowspan-=n-o,e.colspan-=i-a;for(var r=e.row;r<=o;r++)for(var s=e.col;s<=a;s++)r===e.row&&s===e.col||t(this._grid[r][s])},_markSpanningCell:function(e){this._loopOverSpanning(e.location,function(t){d(t,{item:e.item,spanningCell:e})})},_linkNodeToItem:function(){c.each(this._itemElements(),function(e,t){var n=i(t),o=n.data(m);o.box||(o.node=n.children())})},_layoutItems:function(){var e=this._grid.length,t=e&&this._grid[0].length;if(e||t){var n=this._layoutBlock({direction:"col",row:{start:0,end:e-1},col:{start:0,end:t-1}}),o=this._prepareBoxConfig(n.box||{direction:"row",items:[d(n,{ratio:1})]});d(o,this._rootBoxConfig(o.items)),this._$root=i("<div>").appendTo(this._itemContainer()),this._createComponent(this._$root,p,o)}},_rootBoxConfig:function(e){var t=c.each(e,function(e,t){this._needApplyAutoBaseSize(t)&&d(t,{baseSize:"auto"})}.bind(this));return d({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")},{_layoutStrategy:this.option("_layoutStrategy")})},_needApplyAutoBaseSize:function(e){return!(e.baseSize||e.minSize&&"auto"!==e.minSize||e.maxSize&&"auto"!==e.maxSize)},_prepareBoxConfig:function(e){return d(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,n=e.row.end-e.row.start==t.rowspan-1,i=e.col.end-e.col.start==t.colspan-1;return n&&i},_itemByCell:function(e,t){var n=this._grid[e][t];return n.spanningCell?null:n.item},_layoutDirection:function(e){for(var t,n=[],i=e.direction,o=this._crossDirection(i);t=this._nextBlock(e);){if(this._isBlockIndivisible(e.prevBlockOptions,t))throw s.Error("E1025");var a=this._layoutBlock({direction:o,row:t.row,col:t.col,prevBlockOptions:e});a&&(d(a,this._blockSize(t,o)),n.push(a)),e[o].start=t[o].end+1}return{box:this._prepareBoxConfig({direction:i,items:n})}},_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,n=this._crossDirection(t),i=e[t].start,o=e[t].end,a=e[n].start;if(a>e[n].end)return null;for(var r=1,s=a;s<a+r;s++){for(var l=1,u=i;u<=o;u++){var c=this._cellByDirection(t,u,s);l=Math.max(l,c.location[n+"span"])}var d=s+l,h=a+r;d>h&&(r+=d-h)}var p={};return p[t]={start:i,end:o},p[n]={start:a,end:a+r-1},p},_cellByDirection:function(e,t,n){return"col"===e?this._grid[n][t]:this._grid[t][n]},_blockSize:function(e,t){for(var n="row"===t?this._rows:this._cols,i=d(this._createDefaultSizeConfig(),{ratio:0}),o=e[t].start;o<=e[t].end;o++){var a=n[o];i.ratio+=a.ratio,i.baseSize+=a.baseSize,i.minSize+=a.minSize,i.maxSize+=a.maxSize,r.isDefined(a.shrink)&&(i.shrink=a.shrink)}return i.minSize=i.minSize?i.minSize:"auto",i.maxSize=i.maxSize?i.maxSize:"auto",this._isSingleColumnScreen()&&(i.baseSize="auto"),i},_update:function(){var e=this._$root;this._renderItems(),e&&e.detach(),this._saveAssistantRoot(e),this._layoutChangedAction(),this._updateRootBox()},_saveAssistantRoot:function(e){this._assistantRoots=this._assistantRoots||[],this._assistantRoots.push(e)},_dispose:function(){clearTimeout(this._updateTimer),this._clearItemNodeTemplates(),this._cleanUnusedRoots(),this.callBase.apply(this,arguments)},_cleanUnusedRoots:function(){this._assistantRoots&&c.each(this._assistantRoots,function(e,t){i(t).remove()})},_clearItemNodeTemplates:function(){c.each(this.option("items"),function(){delete this.node})},_toggleVisibility:function(e){this.callBase(e),e&&this._updateRootBox()},_attachClickEvent:a.noop,_optionChanged:function(e){switch(e.name){case"rows":case"cols":case"screenByWidth":case"_layoutStrategy":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()}});h("dxResponsiveBox",v),e.exports=v},function(e,t,n){var i=n(2),o=n(44),a=n(0).extend,r=n(16),s=n(8),l=n(308),u=n(197),c=n(547).default,d=n(60),h=n(10).getPublicElement,p=n(65),f=n(7),g=l.inherit({_getDefaultOptions:function(){return a(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"===r.real().deviceType&&!r.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return!o.touch},options:{swipeEnabled:!1}},{device:{platform:"generic"},options:{animationEnabled:!1}}])},_init:function(){this.callBase(),this.$element().addClass("dx-tabpanel"),this.setAria("role","tabpanel")},_initMarkup:function(){this.callBase(),this._createTitleActions(),this._renderLayout()},_initTemplates:function(){this.callBase(),this._defaultTemplates.title=new p(function(e,t){e.text(t.title||String(t));var n=d.getImageContainer(t.icon);e.wrapInner(i("<span>").addClass("dx-tab-text")),n&&n.prependTo(e)},["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){var e=this.$element();this._$tabContainer=i("<div>").addClass("dx-tabpanel-tabs").appendTo(e);var t=i("<div>").appendTo(this._$tabContainer);this._tabs=this._createComponent(t,u,this._tabConfig()),this._$container=i("<div>").addClass("dx-tabpanel-container").appendTo(e),this._$container.append(this._$wrapper),this._updateLayout()}},_updateLayout:function(){if(f.hasWindow()){var e=this._$tabContainer.outerHeight();this._$container.css({marginTop:-e,paddingTop:e})}},_refreshActiveDescendant:function(){if(this._tabs){var e=this._tabs,t=e.itemElements(),n=i(t[e.option("selectedIndex")]),o=this.getFocusedItemId();this.setAria("controls",void 0,i(t)),this.setAria("controls",o,n)}},_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=i(e.value),n=this._itemElements().eq(t.index());this.option("focusedElement",h(n))}else this.option("focusedElement",e.value)}.bind(this),onFocusIn:function(e){this._focusInHandler(e.event)}.bind(this),onFocusOut:function(e){this._focusOutHandler(e.event)}.bind(this)}},_renderFocusTarget:function(){this._focusTarget().attr("tabIndex",-1),this._refreshActiveDescendant()},_updateFocusState:function(e,t){this.callBase(e,t),e.target===this._tabs._focusTarget().get(0)&&this._toggleFocusClass(t,this._focusTarget())},_setTabsOption:function(e,t){this._tabs&&this._tabs.option(e,t)},_visibilityChanged:function(e){e&&(this._tabs._dimensionChanged(),this._updateLayout())},repaint:function(){this.callBase(),this._tabs.repaint()},_optionChanged:function(e){var t=e.name,n=e.value,o=e.fullName;switch(t){case"dataSource":this.callBase(e);break;case"items":this._setTabsOption(o,n),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":case"itemHoldTimeout":case"focusStateEnabled":case"hoverStateEnabled":this._setTabsOption(o,n),this.callBase(e);break;case"scrollingEnabled":case"scrollByContent":case"showNavButtons":this._setTabsOption(o,n);break;case"focusedElement":var a=n?i(n).index():n,r=n?this._tabs._itemElements().eq(a):n;this._setTabsOption("focusedElement",h(r)),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",n);break;case"badgeExpr":this._invalidate();break;default:this.callBase(e)}},_clean:function(){clearTimeout(this._resizeEventTimer),this.callBase()}});g.ItemClass=c,s("dxTabPanel",g),e.exports=g},function(e,t,n){var i=n(2),o=n(39),a=n(26),r=n(29),s=n(0).extend,l=n(4).noop,u=n(10),c=n(1).isDefined,d=n(16),h=n(10).getPublicElement,p=n(8),f=n(190).default,g=n(158),_=n(6).Deferred,m="dx-multiview-item",v=function(e){return+e},y=function(e){return a.locate(e).left},b=function(e,t){a.move(e,{left:t})},x=function(e,t,n,i){o.animate(e,{type:"slide",to:{left:t},duration:n,complete:i})},w=function(e){o.stop(e,!0)},C=f.inherit({_activeStateUnit:"."+m,_supportedKeys:function(){return s(this.callBase(),{pageUp:l,pageDown:l})},_getDefaultOptions:function(){return s(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"===d.real().deviceType&&!d.isSimulator()},options:{focusStateEnabled:!0}}])},_itemClass:function(){return m},_itemDataKey:function(){return"dxMultiViewItemData"},_itemContainer:function(){return this._$itemContainer},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_itemWidth:function(){return this._itemWidthValue||(this._itemWidthValue=this._$wrapper.width()),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("dx-multiview"),this._$wrapper=i("<div>").addClass("dx-multiview-wrapper"),this._$wrapper.appendTo(e),this._$itemContainer=i("<div>").addClass("dx-multiview-item-container"),this._$itemContainer.appendTo(this._$wrapper),this.option("loopItemFocus",this.option("loop")),this._initSwipeable()},_initMarkup:function(){this._deferredItems=[],this.callBase()},_afterItemElementDeleted:function(e,t){if(this.callBase(e,t),this._deferredItems&&(this._deferredItems.splice(t.itemIndex,1),this.option("items")))for(var n=t.itemIndex;n<this.option("items").length;n++){var i=this.option("items")[n],o=this._findItemElementByItem(i);if(!o.length)break;this._refreshItem(o,i)}},_renderItemContent:function(e){var t=new _,n=this,i=this.callBase,o=new _;return o.done(function(){var o=i.call(n,e);t.resolve(o)}),this._deferredItems[e.index]=o,this.option("deferRendering")||o.resolve(),t.promise()},_render:function(){this.callBase();var e=this._getSelectedItemIndices();this._updateItemsPosition(e[0]),this._updateItemsVisibility(e[0])},_renderSelection:function(e){this._updateItemsVisibility(e[0])},_updateItems:function(e,t){this._updateItemsPosition(e,t),this._updateItemsVisibility(e,t)},_updateItemsPosition:function(e,t){var n=this._itemElements(),i=c(t)?-this._animationDirection(t,e):void 0,o=n.eq(e);b(o,0),c(t)&&b(n.eq(t),100*i+"%")},_updateItemsVisibility:function(e,t){this._itemElements().each(function(n,o){var a=i(o),r=n!==e&&n!==t;r||this._renderSpecificItem(n),a.toggleClass("dx-multiview-item-hidden",r),this.setAria("hidden",r||void 0,a)}.bind(this))},_renderSpecificItem:function(e){var t=this._itemElements().eq(e),n=t.find(this._itemContentClass()).length>0;c(e)&&!n&&(this._deferredItems[e].resolve(),u.triggerResizeEvent(t))},_refreshItem:function(e,t){this.callBase(e,t),this._updateItemsVisibility(this.option("selectedIndex"))},_setAriaSelected:l,_updateSelection:function(e,t){var n=e[0],i=t[0];w(this._$itemContainer),this._updateItems(i,n);var o=this._animationDirection(n,i);this._animateItemContainer(o*this._itemWidth(),function(){b(this._$itemContainer,0),this._updateItems(n),this._$itemContainer.width()}.bind(this))},_animateItemContainer:function(e,t){var n=this.option("animationEnabled")?200:0;x(this._$itemContainer,e,n,t)},_animationDirection:function(e,t){var n=y(this._$itemContainer),i=(t-e)*this._getRTLSignCorrection()*this._getItemFocusLoopSignCorrection(),o=0!==n?n:i;return r.sign(o)},_initSwipeable:function(){this._createComponent(this.$element(),g,{disabled:!this.option("swipeEnabled"),elastic:!1,itemSizeFunc:this._itemWidth.bind(this),onStart:function(e){this._swipeStartHandler(e.event)}.bind(this),onUpdated:function(e){this._swipeUpdateHandler(e.event)}.bind(this),onEnd:function(e){this._swipeEndHandler(e.event)}.bind(this)})},_swipeStartHandler:function(e){w(this._$itemContainer);var t=this.option("selectedIndex"),n=this.option("loop"),i=this._itemsCount()-1,o=this.option("rtlEnabled");e.maxLeftOffset=v(n||(o?t>0:t<i)),e.maxRightOffset=v(n||(o?t<i:t>0)),this._swipeDirection=null},_swipeUpdateHandler:function(e){var t=e.offset,n=r.sign(t)*this._getRTLSignCorrection();if(b(this._$itemContainer,t*this._itemWidth()),n!==this._swipeDirection){this._swipeDirection=n;var i=this.option("selectedIndex"),o=this._normalizeIndex(i-n);this._updateItems(i,o)}},_swipeEndHandler:function(e){var t=e.targetOffset*this._getRTLSignCorrection();if(t){this.option("selectedIndex",this._normalizeIndex(this.option("selectedIndex")-t));var n=this.itemElements().filter(".dx-item-selected");this.option("focusStateEnabled")&&this.option("focusedElement",h(n))}else this._animateItemContainer(0,l)},_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()},_optionChanged:function(e){var t=e.value;switch(e.name){case"loop":this.option("loopItemFocus",t);break;case"animationEnabled":break;case"swipeEnabled":g.getInstance(this.$element()).option("disabled",!t);break;case"deferRendering":this._invalidate();break;default:this.callBase(e)}}});p("dxMultiView",C),e.exports=C},function(e,t,n){var i=n(2),o=n(153),a="dx-badge",r=o.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this))},_renderBadge:function(e){if(this._$element.children("."+a).remove(),e){var t=i("<div>").addClass("dx-tabs-item-badge").addClass(a).text(e);this._$element.append(t)}}});e.exports=r},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(8)),r=i(n(66)),s=i(n(247)),l=i(n(100)),u=i(n(196)),c="dx-validationgroup",d=r.default.inherit({_getDefaultOptions:function(){return this.callBase()},_init:function(){this.callBase(),l.default.addGroup(this)},_initMarkup:function(){var e=this.$element();e.addClass(c),e.find(".dx-validator").each(function(e,t){u.default.getInstance((0,o.default)(t))._initGroupRegistration()}),e.find(".dx-validationsummary").each(function(e,t){s.default.getInstance((0,o.default)(t))._initGroupRegistration()}),this.callBase()},validate:function(){return l.default.validateGroup(this)},reset:function(){return l.default.resetGroup(this)},_dispose:function(){l.default.removeGroup(this),this.$element().removeClass(c),this.callBase()}});(0,a.default)("dxValidationGroup",d),e.exports=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(57),a=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),r=(0,o.getQuill)().import("blots/embed"),s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r),i(t,null,[{key:"create",value:function(e){var n=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0}(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this);return n.setAttribute("spellcheck",!1),n.dataset.marker=e.marker,n.dataset.mentionValue=e.value,n.dataset.id=e.id,this.renderContent(n,e),n}},{key:"value",value:function(e){return{marker:e.dataset.marker,id:e.dataset.id,value:e.dataset.mentionValue}}},{key:"renderContent",value:function(e,t){var n=this._templates.get(t.marker);n?n.render({model:t,container:e}):this.baseContentRender(e,t)}},{key:"baseContentRender",value:function(e,t){var n=(0,a.default)("<span>").text(t.marker);(0,a.default)(e).append(n).append(t.value)}},{key:"addTemplate",value:function(e,t){this._templates.set(e,t)}},{key:"removeTemplate",value:function(e){this._templates.delete(e)}}]),t}();s.blotName="mention",s.tagName="span",s.className="dx-mention",s._templates=new Map,t.default=s},function(e,t,n){var i=n(2),o=n(4).noop,a=n(3).each,r=n(21),s=n(20).compileGetter,l=n(14),u=n(34),c=l.abstract,d=l.inherit({ctor:function(e){this._toolbar=e},render:function(){this._renderMenuButton(),this._renderWidget()},_widgetOptions:function(){var e=this._toolbar._createActionByOption("onItemClick");return{itemTemplate:this._getMenuItemTemplate.bind(this),onItemClick:function(t){this._toggleMenu(!1,!0),e(t)}.bind(this)}},_getMenuItemTemplate:function(){return this._toolbar._getTemplateByOption("menuItemTemplate")},_renderWidget:function(){var e=i("<div>").appendTo(this._menuContainer());this._menu=this._toolbar._createComponent(e,this._menuWidgetClass(),this._widgetOptions()),this.renderMenuItems()},_menuContainer:c,_menuWidgetClass:c,_hasVisibleMenuItems:function(e){var t=e||this._toolbar.option("items"),n=!1,i=s("visible"),o=s("locateInMenu"),l=!1;return a(t,function(e,t){var a=i(t,{functionsAsIs:!0}),r=o(t,{functionsAsIs:!0});"menu"===t.location&&(l=!0),!1===a||"auto"!==r&&"always"!==r&&"menu"!==t.location||(n=!0)}),l&&r.log("W0001","dxToolbar - 'location' item field","menu","16.1","Use 'locateInMenu' item field instead."),n},_getMenuItems:function(){return this._toolbar._getMenuItems()},_updateMenuVisibility:o,_renderMenuButton:function(){var e=this._menuButtonOptions();this._renderMenuButtonContainer(),this._$button=i("<div>").appendTo(this._$menuButtonContainer).addClass("dx-toolbar-menu-button"),this._toolbar._createComponent(this._$button,u,e)},_menuButtonOptions:function(){return{onClick:this._menuButtonClickHandler.bind(this)}},_menuButtonClickHandler:function(){this._toggleMenu(!this._menuShown,!0)},_renderMenuButtonContainer:function(){var e=this._toolbar._$afterSection;this._$menuButtonContainer=i("<div>").appendTo(e).addClass(this._toolbar._buttonClass()).addClass("dx-toolbar-menu-container")},renderMenuItems:function(){this._menu&&this._menu.option("items",this._getMenuItems())},toggleMenuVisibility:function(e,t){this._menu&&this._toggleMenu(e,t)},_toggleMenu:function(e){this._menuShown=e},getMenuWidget:function(){return this._menu},widgetOption:function(e,t){this._menu&&this._menu.option(e,t)},handleToolbarVisibilityChange:o});e.exports=d},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n(57),r=i(n(2)),s=n(0),l=n(7),u=i(n(46)),c=i(n(102)),d="dx-suggestion-list-wrapper",h=(0,a.getQuill)().import("core/module"),p=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.options=(0,s.extend)({},i._getDefaultOptions(),n),i._popup=i.renderPopup(),i._popup._wrapper().addClass(d),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,h),o(t,[{key:"_getDefaultOptions",value:function(){return{dataSource:null}}}]),o(t,[{key:"renderList",value:function(e,t){var n=(0,r.default)("<div>").addClass("dx-suggestion-list").appendTo(e);this._list=this.options.editorInstance._createComponent(n,c.default,t)}},{key:"renderPopup",value:function(){var e=this.options.editorInstance,t=(0,r.default)("<div>").appendTo(e.$element()),n=this._getPopupConfig();return e._createComponent(t,u.default,n)}},{key:"_getPopupConfig",value:function(){var e=this;return{contentTemplate:function(t){var n=e._getListConfig(e.options);e.renderList((0,r.default)(t),n)},deferRendering:!1,onShown:function(){e._list.focus()},onHidden:function(){e._list.unselectAll(),e._list.option("focusedElement",null)},showTitle:!1,width:"auto",height:"auto",shading:!1,closeOnTargetScroll:!0,closeOnOutsideClick:!0,animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},fullScreen:!1,maxHeight:this.maxHeight}}},{key:"_getListConfig",value:function(e){return{dataSource:e.dataSource,onSelectionChanged:this.selectionChangedHandler.bind(this),selectionMode:"single",pageLoadMode:"scrollBottom"}}},{key:"selectionChangedHandler",value:function(e){this._popup.option("visible")&&(this._popup.hide(),this.insertEmbedContent(e))}},{key:"insertEmbedContent",value:function(e){}},{key:"showPopup",value:function(){this._popup&&this._popup.show()}},{key:"savePosition",value:function(e){this.caretPosition=e}},{key:"getPosition",value:function(){return this.caretPosition}},{key:"maxHeight",get:function(){var e=(0,l.getWindow)(),t=e&&(0,r.default)(e).height()||0;return Math.max(100,.5*t)}}]),t}();t.default=p},function(e,t,n){var i=n(83),o=n(14),a=n(3).map,r=n(1),s=n(9),l=r.isPlainObject,u=r.isNumeric,c=o.abstract,d=o.inherit({_defaultRouteWeight:function(){return 5},_defaultRouteOpacity:function(){return.5},_defaultRouteColor:function(){return"#0000FF"},ctor:function(e,t){this._mapWidget=e,this._$container=t},render:function(e,t){return this._renderImpl().then(function(){return i.all([this._applyFunctionIfNeeded("addMarkers",e),this._applyFunctionIfNeeded("addRoutes",t)]).then(function(){return!0})}.bind(this))},_renderImpl:c,updateDimensions:c,updateMapType:c,updateBounds:c,updateCenter:c,updateZoom:c,updateControls:c,updateMarkers:function(e,t){return new i(function(n){return this._applyFunctionIfNeeded("removeMarkers",e).then(function(e){this._applyFunctionIfNeeded("addMarkers",t).then(function(t){n(t||e)})}.bind(this))}.bind(this))},addMarkers:c,removeMarkers:c,adjustViewport:c,updateRoutes:function(e,t){return new i(function(n){return this._applyFunctionIfNeeded("removeRoutes",e).then(function(e){this._applyFunctionIfNeeded("addRoutes",t).then(function(t){n(t||e)})}.bind(this))}.bind(this))},addRoutes:c,removeRoutes:c,clean:c,map:function(){return this._map},isEventsCanceled:function(){return!1},_option:function(e,t){return void 0===t?this._mapWidget.option(e):void this._mapWidget.setOptionSilent(e,t)},_keyOption:function(e){var t=this._option("key");return void 0===t[e]?t:t[e]},_parseTooltipOptions:function(e){return{text:e.text||e,visible:e.isShown||!1}},_getLatLng:function(e){if("string"==typeof e){var t=a(e.split(","),function(e){return e.trim()}),n=/^[-+]?[0-9]*\.?[0-9]*$/;if(2===t.length&&t[0].match(n)&&t[1].match(n))return{lat:parseFloat(t[0]),lng:parseFloat(t[1])}}else{if(Array.isArray(e)&&2===e.length)return{lat:e[0],lng:e[1]};if(l(e)&&u(e.lat)&&u(e.lng))return e}return null},_areBoundsSet:function(){return this._option("bounds.northEast")&&this._option("bounds.southWest")},_addEventNamespace:function(e){return s.addNamespace(e,this._mapWidget.NAME)},_applyFunctionIfNeeded:function(e,t){return t.length?this[e](t):i.resolve()},_fireAction:function(e,t){this._mapWidget._createActionByOption(e)(t)},_fireClickAction:function(e){this._fireAction("onClick",e)},_fireMarkerAddedAction:function(e){this._fireAction("onMarkerAdded",e)},_fireMarkerRemovedAction:function(e){this._fireAction("onMarkerRemoved",e)},_fireRouteAddedAction:function(e){this._fireAction("onRouteAdded",e)},_fireRouteRemovedAction:function(e){this._fireAction("onRouteRemoved",e)}});e.exports=d},function(e,t,n){var i=n(83),o=n(0).extend,a=n(3),r=n(314),s=r.abstract,l=r.inherit({_geocodeLocation:function(e){return new i(function(t){var n=this._geocodedLocations,i=n[e];i?t(i):this._geocodeLocationImpl(e).then(function(i){n[e]=i,t(i)})}.bind(this))},_renderImpl:function(){return this._load().then(function(){return this._init()}.bind(this)).then(function(){return i.all([this.updateMapType(),this._areBoundsSet()?this.updateBounds():this.updateCenter()])}.bind(this)).then(function(){return this._attachHandlers(),new i(function(e){var t=setTimeout(function(){clearTimeout(t),e()})})}.bind(this))},_load:function(){return this._mapsLoader||(this._mapsLoader=this._loadImpl()),this._markers=[],this._routes=[],this._mapsLoader},_loadImpl:s,_init:s,_attachHandlers:s,addMarkers:function(e){return i.all(a.map(e,function(e){return this._addMarker(e)}.bind(this))).then(function(e){return this._fitBounds(),[!1,a.map(e,function(e){return e.marker})]}.bind(this))},_addMarker:function(e){return this._renderMarker(e).then(function(t){return this._markers.push(o({options:e},t)),this._fireMarkerAddedAction({options:e,originalMarker:t.marker}),t}.bind(this))},_renderMarker:s,removeMarkers:function(e){var t=this;return a.each(e,function(e,n){t._removeMarker(n)}),i.resolve()},_removeMarker:function(e){var t=this;a.each(this._markers,function(n,i){return i.options!==e||(t._destroyMarker(i),t._markers.splice(n,1),t._fireMarkerRemovedAction({options:i.options}),!1)})},_destroyMarker:s,_clearMarkers:function(){for(;this._markers.length>0;)this._removeMarker(this._markers[0].options)},addRoutes:function(e){return i.all(a.map(e,function(e){return this._addRoute(e)}.bind(this))).then(function(e){return this._fitBounds(),[!1,a.map(e,function(e){return e.instance})]}.bind(this))},_addRoute:function(e){return this._renderRoute(e).then(function(t){return this._routes.push(o({options:e},t)),this._fireRouteAddedAction({options:e,originalRoute:t.instance}),t}.bind(this))},_renderRoute:s,removeRoutes:function(e){var t=this;return a.each(e,function(e,n){t._removeRoute(n)}),i.resolve()},_removeRoute:function(e){var t=this;a.each(this._routes,function(n,i){return i.options!==e||(t._destroyRoute(i),t._routes.splice(n,1),t._fireRouteRemovedAction({options:e}),!1)})},_destroyRoute:s,_clearRoutes:function(){for(;this._routes.length>0;)this._removeRoute(this._routes[0].options)},adjustViewport:function(){return this._fitBounds()},isEventsCanceled:function(){return!0},_fitBounds:s,_updateBounds:function(){var e=this;this._clearBounds(),this._option("autoAdjust")&&(a.each(this._markers,function(t,n){e._extendBounds(n.location)}),a.each(this._routes,function(t,n){n.northEast&&e._extendBounds(n.northEast),n.southWest&&e._extendBounds(n.southWest)}))},_clearBounds:function(){this._bounds=null},_extendBounds:s});e.exports=l},function(e,t,n){e.exports=n(579)},function(e,t,n){e.exports=n(581)},function(e,t,n){var i=n(2),o=n(17),a=n(164),r=n(26),s=n(77),l=n(29),u=n(1),c=n(0).extend,d=n(51),h={top:{my:"bottom center",at:"top center",collision:"none"},bottom:{my:"top center",at:"bottom center",collision:"none"},right:{my:"left center",at:"right center",collision:"none"},left:{my:"right center",at:"left center",collision:"none"}},p=o.inherit({_getDefaultOptions:function(){return c(this.callBase(),{hoverStateEnabled:!1,value:0,tooltipEnabled:!1,tooltipFormat:function(e){return e},tooltipPosition:"top",tooltipShowMode:"onHover",tooltipFitIn:null})},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-slider-handle"),this.setAria({role:"slider",valuenow:this.option("value")})},_render:function(){this._renderTooltip(),this.callBase()},_renderTooltip:function(){this.option("tooltipEnabled")?(this._$tooltip||(this._$tooltip=i("<div>").appendTo(this.$element())),this._$slider=this.$element().closest(".dx-slider"),this._updateTooltip()):this._removeTooltip()},_createTooltip:function(){return!this._tooltip&&(this._tooltip=this._createComponent(this._$tooltip,a,{visible:!0,target:this.$element(),closeOnOutsideClick:!1,container:this.$element(),closeOnBackButton:!1,closeOnTargetScroll:!1,onPositioned:function(e){this._saveTooltipElements(e.component),this._saveTooltipLocation(),this._centeredTooltipPosition()}.bind(this),animation:null,arrowPosition:null,templatesRenderAsynchronously:!1}),!0)},_removeTooltip:function(){this._$tooltip&&(this._$tooltip.remove(),delete this._$tooltip,delete this._tooltip)},_renderTooltipPosition:function(){if(this._tooltip){var e=this.option("tooltipPosition");this._saveTooltipElements(),this._resetTooltipPosition(),"string"===u.type(e)&&(e=c({boundary:this._$slider,boundaryOffset:{h:1,v:1}},h[e])),this._tooltip.option("position",e),this._saveTooltipLocation()}},_saveTooltipElements:function(e){e=this._tooltip||e,this._$tooltipContent=e.$content().parent(),this._$tooltipArrow=this._$tooltipContent.find(".dx-popover-arrow")},_resetTooltipPosition:function(){r.resetPosition(this._$tooltipContent),r.resetPosition(this._$tooltipArrow)},_saveTooltipLocation:function(){this._contentLocate=r.locate(this._$tooltipContent)},_centeredTooltipPosition:function(){if(this._tooltip){this._$tooltipContent.outerWidth("auto");var e=this._$tooltipContent.get(0).getBoundingClientRect().width,t=Math.ceil(e),n=t%2+t;this._$tooltipContent.outerWidth(n);var i=(n-this.$element().width())/2;this._contentLocate.left=-i,this._$tooltipArrow.css({marginLeft:-this._$tooltipArrow.outerWidth()/2,left:"50%"}),this._fitTooltip()}},_fitTooltip:function(){if(this._tooltip){var e=this.option("tooltipPosition");"string"===u.type(e)&&(e=c({of:this.$element(),boundary:this._$slider,boundaryOffset:{h:2,v:1}},h[e],{collision:"fit none"}));var t=s.calculate(this._$tooltipContent,e),n="left"===t.h.collisionSide,i=(n?-1:1)*t.h.oversize,o=this._contentLocate.left,a=this._contentLocate.left+this._$tooltipContent.outerWidth()-this._$tooltipArrow.outerWidth();r.move(this._$tooltipContent,{left:this._contentLocate.left+(n?1:-1)*t.h.oversize}),r.move(this._$tooltipArrow,{left:l.fitIntoRange(i,o,a)})}},_getFormattedValue:function(e){return d.format(e,this.option("tooltipFormat"))},_renderValue:function(){if(this._tooltip){var e=this.option("value");this._tooltip.$content().html(this._getFormattedValue(e)),this._fitTooltip()}},_updateTooltip:function(){var e=/^onhover$/i.test(this.option("tooltipShowMode"));e||this._createTooltip(),this.$element().toggleClass("dx-slider-tooltip-on-hover",e),this._renderTooltipPosition(),this._renderValue(),this._centeredTooltipPosition()},_clean:function(){this.callBase(),delete this._$tooltip,delete this._tooltip},_ensureTooltipIsCentered:function(e,t){u.isDefined(e)&&u.isDefined(t)&&e.toString().length!==t.toString().length&&this._centeredTooltipPosition()},_optionChanged:function(e){switch(e.name){case"tooltipFormat":this._renderValue();break;case"value":this._renderValue();var t=this._getFormattedValue(e.value),n=this._getFormattedValue(e.previousValue);this._ensureTooltipIsCentered(t,n),this.setAria("valuenow",e.value);break;case"tooltipEnabled":this._renderTooltip();break;case"tooltipPosition":this._renderTooltipPosition(),this._centeredTooltipPosition();break;case"tooltipShowMode":this._updateTooltip();break;case"tooltipFitIn":this._fitTooltip();break;default:this.callBase(e)}},fitTooltipPosition:function(){this._fitTooltip()},updateTooltip:function(){this._createTooltip()&&(this._renderTooltipPosition(),this._renderValue(),this._centeredTooltipPosition())},repaint:function(){this._renderTooltipPosition(),this._centeredTooltipPosition(),this._tooltip&&this._tooltip._visibilityChanged(!0)}});e.exports=p},function(e,t,n){var i=n(2),o=n(42),a=n(8),r=n(0).extend,s=n(138),l=s.inherit({_getDefaultOptions:function(){return r(this.callBase(),{toolbarItems:[],showCloseButton:!1,showTitle:!1,title:null,titleTemplate:null,onTitleRendered:null,bottomTemplate:null,propagateOutsideClick:!0})},_render:function(){this.$element().addClass("dx-tooltip"),this._wrapper().addClass("dx-tooltip-wrapper"),this.callBase()},_renderContent:function(){this.callBase(),this._contentId="dx-"+new o,this._$content.attr({id:this._contentId,role:"tooltip"}),this._toggleAriaDescription(!0)},_toggleAriaDescription:function(e){var t=i(this.option("target")),n=e?this._contentId:void 0;this.setAria("describedby",n,t)}});a("dxTooltip",l),e.exports=l},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(16),r=n(37),s=n(5),l=n(8),u=n(31),c=n(4),d=c.noop,h=n(280).SelectionFilterCreator,p=n(6),f=p.when,g=p.Deferred,_=n(10).getPublicElement,m=n(1),v=m.isDefined,y=n(7),b=n(0).extend,x=n(13).inArray,w=n(3).each,C=n(15),k=n(9),S=n(19),I=n(95),T=n(290),D=n(65),E="dxTagData",A="dx-tag",O="dx-tagbox-multi-tag",P="dx-tag-custom",B="dx-tag-remove-button",M="dx-tagbox-single-line",R="dx-list-select-all-checkbox",F="dx-native-click",V=I.inherit({_supportedKeys:function(){var e=this.callBase();return b(e,{backspace:function(e){if(this._isCaretAtTheStart()){e.preventDefault(),e.stopPropagation(),this._isTagRemoved=!0;var t=this._$focusedTag||this._tagElements().last();this._$focusedTag&&this._moveTagFocus("prev",!0),0!==t.length&&(this._preserveFocusedTag=!0,this._removeTagElement(t),delete this._preserveFocusedTag)}},del:function(e){if(this._$focusedTag&&this._isCaretAtTheStart()){e.preventDefault(),e.stopPropagation(),this._isTagRemoved=!0;var t=this._$focusedTag;this._moveTagFocus("next",!0),this._preserveFocusedTag=!0,this._removeTagElement(t),delete this._preserveFocusedTag}},enter:function(e){var t=this._list&&null!==this._list.option("focusedElement");return this.option("acceptCustomValue")&&!t?(e.preventDefault(),void(""!==this._searchValue()&&this._customItemAddedHandler())):void(this.option("opened")&&(e.preventDefault(),this._keyboardProcessor._childProcessors[0].process(e)))},space:function(e){var t=this.option("opened"),n=this._shouldRenderSearchEvent();t&&!n&&(e.preventDefault(),this._keyboardProcessor._childProcessors[0].process(e))},leftArrow:function(e){if(this._isCaretAtTheStart()){var t=this.option("rtlEnabled");if(!this._isEditable()||!t||this._$focusedTag){e.preventDefault();var n=t?"next":"prev";this._moveTagFocus(n),!this.option("multiline")&&this._scrollContainer(n)}}},rightArrow:function(e){if(this._isCaretAtTheStart()){var t=this.option("rtlEnabled");if(!this._isEditable()||t||this._$focusedTag){e.preventDefault();var n=t?"prev":"next";this._moveTagFocus(n),!this.option("multiline")&&this._scrollContainer(n)}}}})},_allowSelectItemByTab:function(){return!1},_isCaretAtTheStart:function(){var e=T(this._input());return 0===e.start&&0===e.end},_moveTagFocus:function(e,t){if(!this._$focusedTag){var n=this._tagElements();return this._$focusedTag="next"===e?n.first():n.last(),void this._toggleFocusClass(!0,this._$focusedTag)}var i=this._$focusedTag[e]("."+A);i.length>0?this._replaceFocusedTag(i):(t||"next"===e&&this._isEditable())&&this._clearTagFocus()},_replaceFocusedTag:function(e){this._toggleFocusClass(!1,this._$focusedTag),this._$focusedTag=e,this._toggleFocusClass(!0,this._$focusedTag)},_clearTagFocus:function(){this._$focusedTag&&(this._toggleFocusClass(!1,this._$focusedTag),delete this._$focusedTag)},_focusClassTarget:function(e){return e&&e.length&&e[0]!==this._focusTarget()[0]?e:this.callBase()},_scrollContainer:function(e){if(!this.option("multiline")&&y.hasWindow()&&this._$tagsContainer){var t=this._getScrollPosition(e);this._$tagsContainer.scrollLeft(t)}},_getScrollPosition:function(e){return"start"===e||"end"===e?this._getBorderPosition(e):this._$focusedTag?this._getFocusedTagPosition(e):this._getBorderPosition("end")},_getBorderPosition:function(e){var t=this.option("rtlEnabled"),n="end"===e^t,i=t&&!u.webkit,o=!t||u.webkit||u.msie?1:-1;return n^!i?0:o*(this._$tagsContainer.get(0).scrollWidth-this._$tagsContainer.outerWidth())},_getFocusedTagPosition:function(e){var t=this.option("rtlEnabled"),n="next"===e^t,i=this._$focusedTag.position().left,o=this._$tagsContainer.scrollLeft();(n&&(i+=this._$focusedTag.outerWidth(!0)-this._$tagsContainer.outerWidth()),n^i<0)&&(o+=i*(t&&u.msie?-1:1));return o},_setNextValue:d,_getDefaultOptions:function(){return b(this.callBase(),{value:[],showDropDownButton:!1,maxFilterLength:1500,tagTemplate:"tag",selectAllText:C.format("dxList-selectAll"),hideSelectedItems:!1,selectedItems:[],selectAllMode:"page",onSelectAllValueChanged:null,maxDisplayedTags:void 0,showMultiTagOnly:!0,onMultiTagPreparing:null,multiline:!0,useSubmitBehavior:!0})},_init:function(){this.callBase(),this._selectedItems=[],this._initSelectAllValueChangedAction()},_initActions:function(){this.callBase(),this._initMultiTagPreparingAction()},_initMultiTagPreparingAction:function(){this._multiTagPreparingAction=this._createActionByOption("onMultiTagPreparing",{beforeExecute:function(e){this._multiTagPreparingHandler(e.args[0])}.bind(this),excludeValidators:["disabled","readOnly"]})},_multiTagPreparingHandler:function(e){var t=this._getValue().length;this.option("showMultiTagOnly")?e.text=C.getFormatter("dxTagBox-selected")(t):e.text=C.getFormatter("dxTagBox-moreSelected")(t-this.option("maxDisplayedTags")+1)},_initDynamicTemplates:function(){this.callBase(),this._defaultTemplates.tag=new D(function(e,t){var n=o("<div>").addClass("dx-tag-content");o("<span>").text(t.text||t).appendTo(n),o("<div>").addClass(B).appendTo(n),e.append(n)}.bind(this),["text"],this.option("integrationOptions.watchMethod"),{text:this._displayGetter})},_toggleSubmitElement:function(e){e?(this._renderSubmitElement(),this._setSubmitValue()):(this._$submitElement&&this._$submitElement.remove(),delete this._$submitElement)},_renderSubmitElement:function(){this.option("useSubmitBehavior")&&(this._$submitElement=o("<select>").attr("multiple","multiple").css("display","none").appendTo(this.$element()))},_setSubmitValue:function(){if(this.option("useSubmitBehavior")){for(var e=this._getValue(),t="this"===this.option("valueExpr"),n=[],i=0,a=e.length;i<a;i++)n.push(o("<option>").val(t?this._displayGetter(e[i]):e[i]).attr("selected","selected"));this._$submitElement.empty(),this._$submitElement.append(n)}},_initMarkup:function(){this._tagElementsCache=o();var e=!this.option("multiline");this.$element().addClass("dx-tagbox").toggleClass("dx-tagbox-only-select",!(this.option("searchEnabled")||this.option("acceptCustomValue"))).toggleClass(M,e),this._initTagTemplate(),this.callBase()},_render:function(){this.callBase(),this._renderTagRemoveAction(),this._renderSingleLineScroll(),this._scrollContainer("start")},_initTagTemplate:function(){this._tagTemplate=this._getTemplateByOption("tagTemplate")},_renderField:function(){var e=!v(this.option("fieldTemplate"));this.$element().toggleClass("dx-tagbox-default-template",e).toggleClass("dx-tagbox-custom-template",!e),this.callBase()},_renderTagRemoveAction:function(){var e=this._createAction(this._removeTagHandler.bind(this)),t=k.addNamespace(S.name,"dxTagBoxTagRemove");s.off(this._$tagsContainer,t),s.on(this._$tagsContainer,t,"."+B,function(t){e({event:t})}),this._renderTypingEvent()},_renderSingleLineScroll:function(){var e=k.addNamespace("dxmousewheel",this.NAME),t=this.$element(),n=this.option("multiline");return s.off(t,e),"desktop"!==a.real().deviceType?void(this._$tagsContainer&&this._$tagsContainer.css("overflowX",n?"":"auto")):void(n||s.on(t,e,this._tagContainerMouseWheelHandler.bind(this)))},_tagContainerMouseWheelHandler:function(e){var t=this._$tagsContainer.scrollLeft();return this._$tagsContainer.scrollLeft(t+-.3*e.delta),!1},_renderTypingEvent:function(){s.on(this._input(),k.addNamespace("keydown",this.NAME),function(e){var t=k.normalizeKeyName(e);!this._isControlKey(t)&&this._isEditable()&&this._clearTagFocus()}.bind(this))},_popupWrapperClass:function(){return this.callBase()+" dx-tagbox-popup-wrapper"},_renderInput:function(){this.callBase(),this._renderPreventBlur(this._inputWrapper())},_renderInputValueImpl:function(){return this._renderMultiSelect()},_loadInputValue:function(){return f()},_clearTextValue:function(){this._input().val(""),this._toggleEmptinessEventHandler()},_focusInHandler:function(e){this.callBase(e),this._scrollContainer("end")},_restoreInputText:function(){this._clearTextValue()},_focusOutHandler:function(e){this.callBase(e),this._clearTagFocus(),this._scrollContainer("start")},_getFirstPopupElement:function(){return this.option("showSelectionControls")?this._popup._wrapper().find("."+R):this.callBase()},_initSelectAllValueChangedAction:function(){this._selectAllValueChangeAction=this._createActionByOption("onSelectAllValueChanged")},_renderList:function(){if(this.callBase(),this._setListDataSourceFilter(),this.option("showSelectionControls")){var e=this._list.$element().find("."+R).dxCheckBox("instance");e.registerKeyHandler("tab",this._popupElementTabHandler.bind(this)),e.registerKeyHandler("escape",this._popupElementEscHandler.bind(this))}},_listConfig:function(){var e=this,t=this.option("showSelectionControls")?"all":"multiple";return b(this.callBase(),{selectionMode:t,selectAllText:this.option("selectAllText"),onSelectAllValueChanged:function(t){e._selectAllValueChangeAction({value:t.value})},selectAllMode:this.option("selectAllMode"),selectedItems:this._selectedItems,onFocusedItemChanged:null})},_renderMultiSelect:function(){var e=new g;return this._$tagsContainer=this._$textEditorInputContainer.addClass("dx-tag-container").addClass(F),this._$tagsContainer.parent().addClass(F),this._renderInputSize(),this._renderTags().always(function(){this._popup&&this._popup.refreshPosition(),e.resolve()}.bind(this)),e.promise()},_listItemClickHandler:function(e){!this.option("showSelectionControls")&&this._clearTextValue(),"useButtons"!==this.option("applyValueMode")&&this.callBase(e)},_shouldClearFilter:function(){var e=this.callBase();return!this.option("showSelectionControls")&&e},_renderInputSize:function(){var e=this._input();e.prop("size",e.val()?e.val().length+2:1)},_renderInputSubstitution:function(){this.callBase(),this._renderInputSize()},_getValue:function(){return this.option("value")||[]},_multiTagRequired:function(){var e=this._getValue(),t=this.option("maxDisplayedTags");return v(t)&&e.length>t},_renderMultiTag:function(e){var t=o("<div>").addClass(A).addClass(O),n={multiTagElement:_(t),selectedItems:this.option("selectedItems")};return this._multiTagPreparingAction(n),!n.cancel&&(t.data(E,n.text),t.insertBefore(e),this._tagTemplate.render({model:n.text,container:_(t)}),t)},_getFilteredItems:function(e){var t=new h(e),n=this._list&&this._list.option("selectedItems")||this.option("selectedItems"),i=t.getLocalFilter(this._valueGetter),o=n.filter(i),a=o.length===e.length,r=new g;if(a)return r.resolve(o).promise();var s=this._dataSource,l=s.filter(),u=t.getCombinedFilter(this.option("valueExpr"),l),c=encodeURI(JSON.stringify(u)).length>this.option("maxFilterLength")?void 0:u,d=s.loadOptions().customQueryParams;return s.store().load({filter:c,customQueryParams:d}).done(function(e){var t=s._applyMapFunction(e);r.resolve(t.filter(i))}),r.promise()},_createTagsData:function(e,t){var n=[],i={},o="this"===this._valueGetterExpr(),a={};t.forEach(function(e){var t=o?JSON.stringify(e):this._valueGetter(e);a[t]=e}.bind(this));var r=[];e.forEach(function(e,t){var s=a[o?JSON.stringify(e):e];if(o&&!v(s))r.push(this._loadItem(e,i).always(function(i){var o=this._createTagData(n,i,e,t);n.splice(t,0,o)}.bind(this)));else{var l=this._createTagData(n,s,e,t);n.splice(t,0,l)}}.bind(this));var s=new g;return f.apply(this,r).always(function(){s.resolve(n)}),s.promise()},_createTagData:function(e,t,n,i){if(v(t))return this._selectedItems.push(t),t;var o=this.option("selectedItem");return this._valueGetter(o)===n?o:n},_loadTagsData:function(){var e=this._getValue(),t=new g;return this._selectedItems=[],this._getFilteredItems(e).done(function(n){this._createTagsData(e,n).always(function(e){t.resolve(e)})}.bind(this)).fail(t.reject.bind(this)),t.promise()},_renderTags:function(){var e=new g;return this._loadTagsData().always(function(t){this._renderTagsCore(t),this._renderEmptyState(),this._preserveFocusedTag||this._clearTagFocus(),e.resolve()}.bind(this)),e.promise()},_renderTagsCore:function(e){this._renderField(),this.option("selectedItems",this._selectedItems.slice()),this._cleanTags();var t=this._multiTagRequired()&&this._renderMultiTag(this._input()),n=this.option("showMultiTagOnly"),i=this.option("maxDisplayedTags");e.forEach(function(e,o){return!(t&&n||t&&!n&&o-i>=-1)&&void this._renderTag(e,t||this._input())}.bind(this)),this._scrollContainer("end"),this._refreshTagElements()},_cleanTags:function(){if(this._multiTagRequired())this._tagElements().remove();else{var e=this._tagElements(),t=this._getValue();w(e,function(e,n){var i=o(n);x(i.data(E),t)<0&&i.remove()})}},_renderEmptyState:function(){var e=!(this._getValue().length||this._selectedItems.length||this._searchValue());this._toggleEmptiness(e),this._renderDisplayText()},_renderDisplayText:function(){this._renderInputSize()},_refreshTagElements:function(){this._tagElementsCache=this.$element().find("."+A)},_tagElements:function(){return this._tagElementsCache},_applyTagTemplate:function(e,t){this._tagTemplate.render({model:e,container:_(t)})},_renderTag:function(e,t){var n=this._valueGetter(e);if(v(n)){var i=this._getTag(n),o=this._displayGetter(e),a=this._getItemModel(e,o);i?(v(o)&&(i.empty(),this._applyTagTemplate(a,i)),i.removeClass(P)):(i=this._createTag(n,t),v(e)?this._applyTagTemplate(a,i):(i.addClass(P),this._applyTagTemplate(n,i)))}},_getItemModel:function(e,t){return m.isObject(e)&&t?e:c.ensureDefined(t,"")},_getTag:function(e){for(var t=this._tagElements(),n=t.length,i=!1,a=0;a<n;a++){var s=t[a],l=r.data(s,E);if(e===l||c.equalByValue(e,l)){i=o(s);break}}return i},_createTag:function(e,t){return o("<div>").addClass(A).data(E,e).insertBefore(t)},_toggleEmptinessEventHandler:function(){this._toggleEmptiness(!this._getValue().length&&!this._searchValue().length)},_customItemAddedHandler:function(e){this.callBase(e),this._input().val("")},_removeTagHandler:function(e){var t=e.event;t.stopPropagation();var n=o(t.target).closest("."+A);this._removeTagElement(n)},_removeTagElement:function(e){if(e.hasClass(O))this.option("showMultiTagOnly")?this.reset():this.option("value",this._getValue().slice(0,this.option("maxDisplayedTags")));else{var t=e.data(E);this._removeTagWithUpdate(t),this._refreshTagElements()}},_updateField:d,_removeTagWithUpdate:function(e){var t=this._getValue().slice();this._removeTag(t,e),this.option("value",t),0===t.length&&this._clearTagFocus()},_getCurrentValue:function(){return this._lastValue()},_selectionChangeHandler:function(e){if("useButtons"!==this.option("applyValueMode")){var t=this._getValue().slice();w(e.removedItems||[],function(e,n){this._removeTag(t,this._valueGetter(n))}.bind(this)),w(e.addedItems||[],function(e,n){this._addTag(t,this._valueGetter(n))}.bind(this)),this._updateWidgetHeight(),this.option("value",t)}},_removeTag:function(e,t){var n=this._valueIndex(t,e);n>=0&&e.splice(n,1)},_addTag:function(e,t){this._valueIndex(t)<0&&e.push(t)},_fieldRenderData:function(){return this._selectedItems.slice()},_completeSelection:function(e){this.option("showSelectionControls")||this._setValue(e)},_setValue:function(e){if(null!==e){var t="useButtons"===this.option("applyValueMode"),n=this._valueIndex(e),i=(t?this._list.option("selectedItemKeys"):this._getValue()).slice();n>=0?i.splice(n,1):i.push(e),"useButtons"===this.option("applyValueMode")?this._list.option("selectedItemKeys",i):this.option("value",i)}},_isSelectedValue:function(e,t){return this._valueIndex(e,null,t)>-1},_valueIndex:function(e,t,n){var o=-1;return n&&"object"!==(void 0===e?"undefined":i(e))&&(n.indexByValues||(n.indexByValues={},(t=t||this._getValue()).forEach(function(e,t){n.indexByValues[e]=t})),e in n.indexByValues)?n.indexByValues[e]:(t=t||this._getValue(),w(t,function(t,n){if(this._isValueEquals(e,n))return o=t,!1}.bind(this)),o)},_lastValue:function(){var e=this._getValue(),t=e[e.length-1];return v(t)?t:null},_valueChangeEventHandler:d,_shouldRenderSearchEvent:function(){return this.option("searchEnabled")||this.option("acceptCustomValue")},_searchHandler:function(e){this.option("searchEnabled")&&e&&!this._isTagRemoved&&this.callBase(e),this._updateWidgetHeight(),delete this._isTagRemoved},_updateWidgetHeight:function(){var e=this.$element(),t=e.height();this._renderInputSize();var n=e.height();this._popup&&this.option("opened")&&this._isEditable()&&n!==t&&this._popup.repaint()},_refreshSelected:function(){this._list&&this._list.option("selectedItems",this._selectedItems)},_resetListDataSourceFilter:function(){var e=this._getDataSource();e&&(delete this._userFilter,e.filter(null),e.reload())},_setListDataSourceFilter:function(){if(this.option("hideSelectedItems")&&this._list){var e=this._getDataSource();if(e){var t=this._valueGetterExpr();if(m.isString(t)&&"this"!==t){var n=this._dataSourceFilterExpr();void 0===this._userFilter&&(this._userFilter=e.filter()||null),this._userFilter&&n.push(this._userFilter),n.length?e.filter(n):e.filter(null)}else e.filter(this._dataSourceFilterFunction.bind(this));e.load()}}},_dataSourceFilterExpr:function(){var e=[];return w(this._getValue(),function(t,n){e.push(["!",[this._valueGetterExpr(),n]])}.bind(this)),e},_dataSourceFilterFunction:function(e){var t=this._valueGetter(e),n=!0;return w(this._getValue(),function(e,i){if(this._isValueEquals(i,t))return n=!1,!1}.bind(this)),n},_applyButtonHandler:function(){this.option("value",this._getSortedListValues()),this._clearTextValue(),this._clearFilter(),this.callBase()},_getSortedListValues:function(){var e=this._getListValues(),t=this.option("value")||[],n=e.length?t.filter(function(t){return-1!==e.indexOf(t)}):[],i=n.length?e.filter(function(e){return-1===t.indexOf(e)}):e;return n.concat(i)},_getListValues:function(){if(!this._list)return[];var e=this,t=this._getPlainItems(this._list.option("selectedItems")),n=[];return w(t,function(t,i){n[t]=e._valueGetter(i)}),n},_renderOpenedState:function(){this.callBase(),"useButtons"!==this.option("applyValueMode")||this.option("opened")||this._refreshSelected()},reset:function(){this._restoreInputText(),this.callBase()},_clean:function(){this.callBase(),delete this._defaultTagTemplate,delete this._tagTemplate},_removeDuplicates:function(e,t){var n=this,i=[];return w(e,function(e,o){t.filter(function(e){return n._valueGetter(o)===n._valueGetter(e)}).length||i.push(o)}),i},_optionChanged:function(e){switch(e.name){case"onSelectAllValueChanged":this._initSelectAllValueChangedAction();break;case"onMultiTagPreparing":this._initMultiTagPreparingAction(),this._renderTags();break;case"hideSelectedItems":e.value?this._setListDataSourceFilter():this._resetListDataSourceFilter();break;case"useSubmitBehavior":this._toggleSubmitElement(e.value);break;case"displayExpr":this.callBase(e),this._initTemplates(),this._invalidate();break;case"tagTemplate":this._initTagTemplate(),this._invalidate();break;case"selectAllText":this._setListOption("selectAllText",this.option("selectAllText"));break;case"value":this.callBase(e),this._setListDataSourceFilter();break;case"maxDisplayedTags":case"showMultiTagOnly":this._renderTags();break;case"selectAllMode":this._setListOption(e.name,e.value);break;case"selectedItem":break;case"selectedItems":var t=this._removeDuplicates(e.value,e.previousValue),n=this._removeDuplicates(e.previousValue,e.value);this._selectionChangedAction({addedItems:t,removedItems:n});break;case"multiline":this.$element().toggleClass(M,!e.value),this._renderSingleLineScroll();break;case"maxFilterLength":break;default:this.callBase(e)}},_getActualSearchValue:function(){return this.callBase()||this._searchValue()},_popupHidingHandler:function(){this.callBase(),this._clearFilter()}});l("dxTagBox",V),e.exports=V},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(8),s=n(0).extend,l=n(9),u=n(24),c=n(92),d=c.inherit({_getDefaultOptions:function(){return s(this.callBase(),{spellcheck:!0,minHeight:void 0,maxHeight:void 0,autoResizeEnabled:!1})},_initMarkup:function(){this.$element().addClass("dx-textarea"),this.callBase(),this.setAria("multiline","true")},_renderContentImpl:function(){this._updateInputHeight(),this.callBase()},_renderInput:function(){this.callBase(),this._renderScrollHandler()},_createInput:function(){var e=i("<textarea>");return this._applyInputAttributes(e,this.option("inputAttr")),this._updateInputAutoResizeAppearance(e),e},_applyInputAttributes:function(e,t){e.attr(t).addClass("dx-texteditor-input")},_renderScrollHandler:function(){var e=this._input(),t=0;o.on(e,l.addNamespace(u.down,this.NAME),function(e){t=l.eventData(e).y}),o.on(e,l.addNamespace(u.move,this.NAME),function(n){var i=e.scrollTop(),o=e.prop("scrollHeight")-e.prop("clientHeight")-i;if(0!==i||0!==o){var a=l.eventData(n).y;(0===i&&t>=a||0===o&&t<=a||i>0&&o>0)&&(n.isScrollingEvent=!0,n.stopPropagation()),t=a}})},_renderDimensions:function(){var e=this.$element(),t=e.get(0),n=this._getOptionValue("width",t),i=this._getOptionValue("height",t),o=this.option("minHeight"),a=this.option("maxHeight");e.css({minHeight:void 0!==o?o:"",maxHeight:void 0!==a?a:"",width:n,height:i})},_resetDimensions:function(){this.$element().css({height:"",minHeight:"",maxHeight:""})},_renderEvents:function(){this.option("autoResizeEnabled")&&o.on(this._input(),l.addNamespace("input paste",this.NAME),this._updateInputHeight.bind(this)),this.callBase()},_refreshEvents:function(){o.off(this._input(),l.addNamespace("input paste",this.NAME)),this.callBase()},_updateInputHeight:function(){var e=this._input();if(this.option("autoResizeEnabled")&&void 0===this.option("height")){this._resetDimensions(),e.css("height",0);var t=this._$element.outerHeight()-e.outerHeight();this._renderDimensions();var n=this.option("minHeight"),i=this.option("maxHeight"),o=e[0].scrollHeight;void 0!==n&&(o=Math.max(o,n-t)),void 0!==i&&(o=Math.min(o,i-t)),e.css("height",o)}else e.css("height","")},_renderInputType:a,_visibilityChanged:function(e){e&&this._updateInputHeight()},_updateInputAutoResizeAppearance:function(e){e&&e.toggleClass("dx-texteditor-input-auto-resize",this.option("autoResizeEnabled"))},_optionChanged:function(e){switch(e.name){case"autoResizeEnabled":this._updateInputAutoResizeAppearance(this._input()),this._refreshEvents(),this._updateInputHeight();break;case"value":case"height":this.callBase(e),this._updateInputHeight();break;case"minHeight":case"maxHeight":this._renderDimensions(),this._updateInputHeight();break;case"visible":this.callBase(e),e.value&&this._updateInputHeight();break;default:this.callBase(e)}}});r("dxTextArea",d),e.exports=d},function(e,t,n){var i=n(2),o=n(12),a=n(5),r=n(42),s=n(8),l=n(4).noop,u=n(1),c=n(10),d=c.contains,h=c.getPublicElement,p=n(3).each,f=n(13).inArray,g=n(0).extend,_=n(7),m=n(39),v=n(77),y=n(16),b=n(9),x=n(58),w=n(323),C=n(6).Deferred,k="dx-menu",S=k+"-item",I=S+"-expanded",T=k+"-items-container",D=S+"-wrapper",E="dx-submenu",A="down",O="first",P="last",B=["onShowing","onShown","onSubmenuCreated","onHiding","onHidden","onPositioning","onLeftFirstItem","onLeftLastItem","onCloseRootSubmenu","onExpandLastSubmenu"],M=["up",A,O,P],R="dxcontextmenu",F=w.inherit(function(){var e=function(e){var t=null,n=e.option("showEvent");return u.isObject(n)?null!==n.name&&(t=n.name||R):t=n,t};return{_getDefaultOptions:function(){return g(this.callBase(),{showEvent:R,closeOnOutsideClick:!0,position:{at:"top left",my:"top left"},onShowing:null,onShown:null,onSubmenuCreated:null,onHiding:null,onHidden:null,onPositioning:null,submenuDirection:"auto",visible:!1,target:void 0,onLeftFirstItem:null,onLeftLastItem:null,onCloseRootSubmenu:null,onExpandLastSubmenu:null})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return!_.hasWindow()},options:{animation:null}}])},_initActions:function(){this._actions={},p(B,function(e,t){this._actions[t]=this._createActionByOption(t)||l}.bind(this))},_setOptionsByReference:function(){this.callBase(),g(this._optionsByReference,{animation:!0,selectedItem:!0})},_focusInHandler:l,_itemContainer:function(){return this._overlay?this._overlay.$content():i()},_eventBindingTarget:function(){return this._itemContainer()},itemsContainer:function(){return this._overlay?this._overlay.$content():void 0},_supportedKeys:function(){return g(this.callBase(),{space:function(){var e=i(this.option("focusedElement"));this.hide(),e.length&&this._isSelectionEnabled()&&this.selectItem(e[0])},esc:this.hide})},_getActiveItem:function(){var e=this._getAvailableItems(),t=e.filter(".dx-state-focused"),n=e.filter(".dx-state-hover");return n.closest("."+T).find("."+S).index(t)>=0?t:n.length?n:this.callBase()},_moveFocus:function(e){var t,n=this._getItemsByLocation(e),o=this._getActiveItem(!0),a=this.itemsContainer().find(".dx-state-hover"),r=!(!i(this.option("focusedElement")).length&&!a.length);switch(e){case"up":t=r?this._prevItem(n):o,o.is(n.first())&&this._actions.onLeftFirstItem(o);break;case A:t=r?this._nextItem(n):o,o.is(n.last())&&this._actions.onLeftLastItem(o);break;case"right":t=this.option("rtlEnabled")?this._hideSubmenuHandler():this._expandSubmenuHandler(n,e);break;case"left":t=this.option("rtlEnabled")?this._expandSubmenuHandler(n,e):this._hideSubmenuHandler();break;case O:t=n.first();break;case P:t=n.last();break;default:return this.callBase(e)}0!==t.length&&this.option("focusedElement",h(t))},_getItemsByLocation:function(e){var t,n=this._getActiveItem(!0);return f(e,M)>=0&&(t=n.closest("."+T).children().children()),this._getAvailableItems(t)},_getAriaTarget:function(){return this.$element()},_refreshActiveDescendant:function(){if(this._overlay){var e=this.getFocusedItemId();this.setAria("activedescendant","",this._overlay.$content()),this.setAria("activedescendant",e,this._overlay.$content())}},_hideSubmenuHandler:function(){var e=this._getActiveItem(!0),t=e.parents("."+I).first();return t.length?(this._hideSubmenusOnSameLevel(t),this._hideSubmenu(e.closest("."+E)),t):(this._actions.onCloseRootSubmenu(e),e)},_expandSubmenuHandler:function(e,t){var n=this._getActiveItem(!0),i=this._getItemData(n),o=this._dataAdapter.getNodeByItem(i),a=this._hasSubmenu(o),r=n.children("."+E);return a&&!n.hasClass("dx-state-disabled")?(r.length&&"hidden"!==r.css("visibility")||this._showSubmenu(n),this._nextItem(this._getItemsByLocation(t))):(this._actions.onExpandLastSubmenu(n),n)},_clean:function(){this._overlay&&(this._overlay.$element().remove(),this._overlay=null),this._detachShowContextMenuEvents(this._getTarget()),this.callBase()},_initMarkup:function(){this.$element().addClass("dx-has-context-menu"),this.callBase()},_render:function(){this.callBase(),this._renderVisibility(this.option("visible")),this._addWidgetClass()},_renderContentImpl:function(){this._detachShowContextMenuEvents(this._getTarget()),this._attachShowContextMenuEvents()},_attachKeyboardEvents:function(){!this._keyboardProcessor&&this._focusTarget().length&&this.callBase()},_renderContextMenuOverlay:function(){if(!this._overlay){var e,t=this._getOverlayOptions(),n=i("<div>");this._overlay=this._createComponent(n.appendTo(this._$element),x,t),(e=this._overlay.$content()).addClass("dx-context-menu"),this._addCustomCssClass(e),this._addPlatformDependentClass(e),this._attachContextMenuEvent()}},_itemContextMenuHandler:function(e){this.callBase(e),e.stopPropagation()},_addPlatformDependentClass:function(e){y.current().phone&&e.addClass("dx-menu-phone-overlay")},_detachShowContextMenuEvents:function(t){var n,r=e(this);r&&(n=b.addNamespace(r,this.NAME),this._showContextMenuEventHandler?a.off(o.getDocument(),n,t,this._showContextMenuEventHandler):a.off(i(t),n))},_attachShowContextMenuEvents:function(){var t,n,r,s,l=this,c=l._getTarget(),d=e(l);d&&(r=b.addNamespace(d,l.NAME),s=l._createAction(function(e){(t=function(e){var t=e.option("showEvent");return u.isObject(t)&&t.delay}(l))?setTimeout(function(){l._show(e.event)},t):l._show(e.event)}.bind(l),{validatingTargetName:"target"}),n=function(e){s({event:e,target:i(e.currentTarget)})},s=l._createAction(s),u.isRenderer(c)||c.nodeType||u.isWindow(c)?(l._showContextMenuEventHandler=void 0,a.on(c,r,n)):(l._showContextMenuEventHandler=n,a.on(o.getDocument(),r,c,l._showContextMenuEventHandler)))},_hoverEndHandler:function(e){this.callBase(e),e.stopPropagation()},_renderDimensions:l,_renderContainer:function(e,t){var n,o=t||this._itemContainer();return(e=i("<div>")).appendTo(o).addClass(E).css("visibility",t?"hidden":"visible"),n=this.callBase(e),t?n:this.option("width")?n.css("minWidth",this.option("width")):this.option("height")?n.css("minHeight",this.option("height")):n},_renderSubmenuItems:function(e,t){this._renderItems(this._getChildNodes(e),t),this._actions.onSubmenuCreated({itemElement:h(t),itemData:e.internalFields.item,submenuElement:h(t.children("."+E))})},_getOverlayOptions:function(){var e=this.option("position"),t=this.option("animation");return{focusStateEnabled:this.option("focusStateEnabled"),animation:t,innerOverlay:!0,closeOnOutsideClick:this._closeOnOutsideClickHandler.bind(this),propagateOutsideClick:!0,closeOnTargetScroll:!0,deferRendering:!1,position:{at:e.at,my:e.my,of:this._getTarget(),collision:"flipfit"},shading:!1,showTitle:!1,height:"auto",width:"auto",onShown:this._overlayShownActionHandler.bind(this),onHiding:this._overlayHidingActionHandler.bind(this),onHidden:this._overlayHiddenActionHandler.bind(this)}},_overlayShownActionHandler:function(e){this._actions.onShown(e)},_overlayHidingActionHandler:function(e){this._actions.onHiding(e),e.cancel||(this._hideAllShownSubmenus(),this._setOptionSilent("visible",!1))},_overlayHiddenActionHandler:function(e){this._actions.onHidden(e)},_closeOnOutsideClickHandler:function(e){var t,n,i,a,r,s,l=this.option("closeOnOutsideClick");return u.isFunction(l)?l(e):!(!l||!o.isDocument(e.target)&&(n=this._getActiveItemsContainer(e.target),i=this._getItemsContainers(),t=this._searchActiveItem(e.target),a=this.$element().parents("."+S),r=t[0]===a[0]&&t.length&&a.length,s=this._isIncludeOverlay(n,i)&&t.length,(s||r)&&("onClick"===this._getShowSubmenuMode()&&this._hideAllShownChildSubmenus(t),1)))},_getActiveItemsContainer:function(e){return i(e).closest("."+T)},_getItemsContainers:function(){return this._overlay._$content.find("."+T)},_searchActiveItem:function(e){return i(e).closest("."+S).eq(0)},_isIncludeOverlay:function(e,t){var n=!1;return p(t,function(t,i){e.is(i)&&!n&&(n=!0)}),n},_hideAllShownChildSubmenus:function(e){var t,n=this,i=e.find("."+E),o=g([],this._shownSubmenus);i.length>0&&p(o,function(i,o){(t=n._searchActiveItem(o.context).parent()).parent().is(e.parent().parent())&&!t.is(e.parent())&&n._hideSubmenu(o)})},_showSubmenu:function(e){var t=this._dataAdapter.getNodeByItem(this._getItemData(e));if(this._hideSubmenusOnSameLevel(e),this._hasSubmenu(t)){var n=e.children("."+E),i=n.length;this.callBase(e),i||this._renderSubmenuItems(t,e),this._isSubmenuVisible(n)||this._drawSubmenu(e)}},_hideSubmenusOnSameLevel:function(e){var t=e.parent("."+D).siblings().find("."+I);t.length&&(t.removeClass(I),this._hideSubmenu(t.find("."+E)))},_hideSubmenuGroup:function(e){this._isSubmenuVisible(e)&&this._hideSubmenuCore(e)},_isSubmenuVisible:function(e){return"visible"===e.css("visibility")},_drawSubmenu:function(e){var t=this.option("animation")?this.option("animation").show:{},n=e.children("."+E),i=this._getSubmenuPosition(e);this._overlay&&this._overlay.option("visible")&&(u.isDefined(this._shownSubmenus)||(this._shownSubmenus=[]),f(n,this._shownSubmenus)&&this._shownSubmenus.push(n),t&&m.stop(n),v.setup(n,i),t&&(u.isPlainObject(t.to)&&(t.to.position=i),this._animate(n,t)),n.css("visibility","visible"))},_animate:function(e,t){m.animate(e,t)},_getSubmenuPosition:function(e){var t=this.option("submenuDirection").toLowerCase(),n={collision:"flip",of:e.parent("."+D),offset:{h:0,v:-1}};switch(t){case"left":n.at="left top",n.my="right top";break;case"right":n.at="right top",n.my="left top";break;default:this.option("rtlEnabled")?(n.at="left top",n.my="right top"):(n.at="right top",n.my="left top")}return n},_updateSubmenuVisibilityOnClick:function(e){if(e.args.length){var t=i(e.args[0].itemElement),n=e.args[0].itemData,o=this._dataAdapter.getNodeByItem(n);if(o){var a=t.find("."+E);if(this._hasSubmenu(o)&&!a.length&&(this._renderSubmenuItems(o,t),a=t.find("."+E)),t.context!==a.context||"visible"!==a.css("visibility")){var r=n&&!1===n.closeMenuOnClick;if(n&&!n.disabled&&!r)if(this._updateSelectedItemOnClick(e),0===a.length){var s=i(t.parents("."+E)[0]);this._hideSubmenu(s),!e.canceled&&this._overlay&&this._overlay.option("visible")&&this.option("visible",!1)}else this._shownSubmenus&&this._shownSubmenus.length>0&&this._shownSubmenus[0].is(a)&&this._hideSubmenu(a),this._showSubmenu(t)}}}},_hideSubmenu:function(e){var t=this,n=g([],t._shownSubmenus);p(n,function(n,i){(e.is(i)||d(e[0],i[0]))&&(i.parent().removeClass(I),t._hideSubmenuCore(i))})},_hideSubmenuCore:function(e){var t=f(e,this._shownSubmenus),n=this.option("animation")?this.option("animation").hide:null;t>=0&&this._shownSubmenus.splice(t,1),this._stopAnimate(e),n&&this._animate(e,n),e.css("visibility","hidden")},_stopAnimate:function(e){m.stop(e,!0)},_hideAllShownSubmenus:function(){var e=this,t=g([],e._shownSubmenus);this._overlay.$content().find("."+I).removeClass(I),p(t,function(t,n){e._hideSubmenu(n)})},_visibilityChanged:function(e){e&&this._renderContentImpl()},_optionChanged:function(e){if(f(e.name,B)>-1)this._initActions();else switch(e.name){case"visible":this._renderVisibility(e.value);break;case"showEvent":case"position":case"submenuDirection":this._invalidate();break;case"target":e.previousValue&&this._detachShowContextMenuEvents(e.previousValue),this._invalidate();break;case"closeOnOutsideClick":break;default:this.callBase(e)}},_renderVisibility:function(e){return e?this._show():this._hide()},_toggleVisibility:l,_show:function(e){var t={jQEvent:e},n=(new C).reject().promise();if(this._actions.onShowing(t),t.cancel)return n;var i=this._positionContextMenu(e);if(i){this._overlay||(this._renderContextMenuOverlay(),this._overlay.$content().addClass(this._widgetClass()),this._renderFocusState(),this._attachHoverEvents(),this._attachClickEvent(),this._renderItems(this._dataAdapter.getRootNodes())),this._setOptionSilent("visible",!0),this._overlay.option("position",i),n=this._overlay.show(),e&&e.stopPropagation();var o="dx-"+new r;this._overlay.$content().attr({id:o,role:"menu"}),this.setAria("owns",o)}return n},_getTarget:function(){return this.option("target")||this.option("position").of||i(o.getDocument())},_getContextMenuPosition:function(){return g({},this.option("position"),{of:this._getTarget()})},_positionContextMenu:function(e){var t,n=this._getContextMenuPosition(),i=this._isInitialOptionValue("position"),o=this._createActionByOption("onPositioning",t);return e&&e.preventDefault&&i&&(n.of=e),o(t={position:n,event:e}),t.cancel?n=null:t.event&&(t.event.cancel=!0,e.preventDefault()),n},_hide:function(){var e;return this._overlay&&(this._overlay.$content().removeAttr("id"),e=this._overlay.hide(),this._setOptionSilent("visible",!1)),this.setAria("owns",void 0),e||(new C).reject().promise()},toggle:function(e){var t=this.option("visible");return e=void 0===e?!t:e,this._renderVisibility(e)},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)}}}());s("dxContextMenu",F),e.exports=F},function(e,t,n){var i=n(2),o=n(4),a=n(1),r=n(3).each,s=n(0).extend,l=n(72),u=n(324),c=n(594),d=n(16),h="dx-menu",p=h+"-item",f=p+"-selected",g=p+"-wrapper",_=p+"-popout",m={show:50,hide:300},v=u.inherit({_getDefaultOptions:function(){return s(this.callBase(),{items:[],cssClass:"",activeStateEnabled:!0,showSubmenuMode:{name:"onHover",delay:{show:50,hide:300}},animation:{show:{type:"fade",from:0,to:1,duration:100},hide:{type:"fade",from:1,to:0,duration:100}},selectByClick:!1,focusOnSelectedItem:!1,keyExpr:null,_itemAttributes:{role:"menuitem"},useInkRipple:!1})},_activeStateUnit:"."+p,_itemDataKey:function(){return"dxMenuItemDataKey"},_itemClass:function(){return p},_setAriaSelected:o.noop,_selectedItemClass:function(){return f},_widgetClass:function(){return"dx-menu-base"},_focusTarget:function(){return this._itemContainer()},_clean:function(){this.option("focusedElement",null),this.callBase()},_supportedKeys:function(){return s(this.callBase(),{space:function(){var e=i(this.option("focusedElement"));e.length&&this._isSelectionEnabled()&&this.selectItem(e[0])},pageUp:o.noop,pageDown:o.noop})},_isSelectionEnabled:function(){return"single"===this.option("selectionMode")},_init:function(){this.callBase(),this._renderSelectedItem(),this._initActions()},_getTextContainer:function(e){var t=e.text,n=i("<span>").addClass("dx-menu-item-text"),o=a.isPlainObject(e)?t:String(e);return t&&n.text(o)},_getPopoutContainer:function(e){var t,n=e.items;if(n&&n.length){var o=i("<div>").addClass(_);t=i("<span>").addClass("dx-menu-item-popout-container").append(o)}return t},_getDataAdapterOptions:function(){return{rootValue:0,multipleSelection:!1,recursiveSelection:!1,recursiveExpansion:!1,searchValue:""}},_selectByItem:function(e){if(e){var t=this._dataAdapter.getNodeByItem(e);this._dataAdapter.toggleSelection(t.internalFields.key,!0)}},_renderSelectedItem:function(){var e=this._dataAdapter.getSelectedNodesKeys(),t=e.length&&e[0],n=this.option("selectedItem");if(t){var i=this._dataAdapter.getNodeByKey(t);return!1!==i.selectable?n?void(n!==i.internalFields.item&&(this._dataAdapter.toggleSelection(t,!1),this._selectByItem(n))):void this.option("selectedItem",i.internalFields.item):void 0}this._selectByItem(n)},_initActions:o.noop,_initMarkup:function(){this.callBase(),this._addCustomCssClass(this.$element()),this.option("useInkRipple")&&this._renderInkRipple()},_renderInkRipple:function(){this._inkRipple=l.render()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:e,event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_getShowSubmenuMode:function(){var e=this.option("showSubmenuMode");return e=a.isObject(e)?e.name:e,this._isDesktopDevice()?e:"onClick"},_initSelectedItems:o.noop,_isDesktopDevice:function(){return"desktop"===d.real().deviceType},_initEditStrategy:function(){var e=c;this._editStrategy=new e(this)},_addCustomCssClass:function(e){e.addClass(this.option("cssClass"))},_itemWrapperSelector:function(){return"."+g},_hoverStartHandler:function(e){var t=this,n=t._getItemElementByEventArgs(e);n&&!t._isItemDisabled(n)&&(e.stopPropagation(),"onHover"===t._getShowSubmenuMode()&&(clearTimeout(this._showSubmenusTimeout),this._showSubmenusTimeout=setTimeout(t._showSubmenu.bind(t,n),t._getSubmenuDelay("show"))))},_getAvailableItems:function(e){return this.callBase(e).filter(function(){return"hidden"!==i(this).css("visibility")})},_isItemDisabled:function(e){return this._disabledGetter(e.data(this._itemDataKey()))},_showSubmenu:function(e){this._addExpandedClass(e)},_addExpandedClass:function(e){i(e).addClass("dx-menu-item-expanded")},_getSubmenuDelay:function(e){var t=this.option("showSubmenuMode").delay;return a.isDefined(t)?a.isObject(t)?t[e]:t:m[e]},_getItemElementByEventArgs:function(e){var t=i(e.target);if(t.hasClass(this._itemClass())||t.get(0)===e.currentTarget)return t;for(;!t.hasClass(this._itemClass());)if((t=t.parent()).hasClass("dx-submenu"))return null;return t},_hoverEndHandler:function(){clearTimeout(this._showSubmenusTimeout)},_hasSubmenu:function(e){return e.internalFields.childrenKeys.length},_renderContentImpl:function(){this._renderItems(this._dataAdapter.getRootNodes())},_renderItems:function(e,t){var n,i=this;if(e.length){this.hasIcons=!1,n=this._renderContainer(this.$element(),t);var o=-1,a=-1;r(e,function(e,t){var r=!1!==t.visible;r&&o<0&&(o=e),o<e&&(t.beginGroup||e===a)&&(a=r?e:e+1),e===a&&o<e&&i._renderSeparator(n),i._renderItem(e,t,n)}),this.hasIcons||n.addClass("dx-menu-no-icons")}},_renderContainer:function(e){return i("<ul>").appendTo(e).addClass("dx-menu-items-container")},_createDOMElement:function(e){return i("<li>").appendTo(e).addClass(g)},_renderItem:function(e,t,n,i){var o,a=this.option("items");if(!1!==t.internalFields.item.visible){var r=i||this._createDOMElement(n);a[e+1]&&a[e+1].beginGroup&&r.addClass("dx-menu-last-group-item"),o=this.callBase(e,t.internalFields.item,r),t.internalFields.item===this.option("selectedItem")&&o.addClass(f),o.attr("tabIndex",-1),this._hasSubmenu(t)&&this.setAria("haspopup","true",o)}},_renderItemFrame:function(e,t,n){var i=n.children("."+p);return i.length?i:this.callBase.apply(this,arguments)},_refreshItem:function(e,t){var n=this._dataAdapter.getNodeByItem(t),i=e.data(this._itemIndexKey()),o=e.closest("ul"),a=e.closest("li");this._renderItem(i,n,o,a)},_addContentClasses:function(e,t){var n=!!e.text&&!!e.text.length,i=!!e.icon,o=!!e.items&&!!e.items.length;t.toggleClass("dx-menu-item-has-text",n),t.toggleClass("dx-menu-item-has-icon",i),this.hasIcons||(this.hasIcons=i),t.toggleClass("dx-menu-item-has-submenu",o)},_getItemContent:function(e){var t=this.callBase(e);return t.length||(t=e.children(".dx-menu-item-content")),t},_postprocessRenderItem:function(e){var t=i(e.itemElement),n=this._dataAdapter.getSelectedNodesKeys();return n.length&&this._selectedGetter(e.itemData)&&this._isItemSelectable(e.itemData)?void(this._dataAdapter.getNodeByItem(e.itemData).internalFields.key===n[0]?(t.addClass(this._selectedItemClass()),this._setAriaSelected(t,"true")):this._setAriaSelected(t,"false")):void this._setAriaSelected(t,"false")},_isItemSelectable:function(e){return!1!==e.selectable},_renderSeparator:function(e){i("<li>").appendTo(e).addClass("dx-menu-separator")},_itemClickHandler:function(e){if(!e._skipHandling){var t=this._createAction(this._updateSubmenuVisibilityOnClick.bind(this));this._itemDXEventHandler(e,"onItemClick",{},{afterExecute:t.bind(this)}),e._skipHandling=!0}},_updateSubmenuVisibilityOnClick:function(e){this._updateSelectedItemOnClick(e),"onClick"===this._getShowSubmenuMode()&&this._addExpandedClass(e.args[0].itemElement)},_updateSelectedItemOnClick:function(e){var t,n=e.args?e.args[0]:e;if(this._isItemSelectionAllowed(n.itemData)){var i=(t=this._dataAdapter.getSelectedNodesKeys()).length&&this._dataAdapter.getNodeByKey(t[0]);i&&this._toggleItemSelection(i,!1),i&&i.internalFields.item===n.itemData?(this._fireSelectionChangeEvent(null,this.option("selectedItem")),this._setOptionSilent("selectedItem",null)):this.selectItem(n.itemData)}},_isItemSelectionAllowed:function(e){var t=this._isSelectionEnabled()&&this.option("selectByClick");return!this._isContainerEmpty()&&t&&this._isItemSelectable(e)&&!this._itemsGetter(e)},_isContainerEmpty:function(){return this._itemContainer().is(":empty")},_syncSelectionOptions:o.asyncNoop,_optionChanged:function(e){switch(e.name){case"showSubmenuMode":break;case"selectedItem":var t=e.value,n=this._dataAdapter.getNodeByItem(t),i=this._dataAdapter.getSelectedNodesKeys()[0];if(n&&n.internalFields.key!==i){if(!1===n.selectable)break;i&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(i),!1),this._toggleItemSelection(n,!0),this._updateSelectedItems()}break;case"cssClass":case"position":case"selectByClick":case"animation":case"useInkRipple":this._invalidate();break;default:this.callBase(e)}},_toggleItemSelection:function(e,t){var n=this._getElementByItem(e.internalFields.item);n&&i(n).toggleClass(f),this._dataAdapter.toggleSelection(e.internalFields.key,t)},_getElementByItem:function(e){var t,n=this;return r(this._itemElements(),function(o,a){return i(a).data(n._itemDataKey())!==e||(t=a,!1)}),t},_updateSelectedItems:function(e,t){(e||t)&&(this._updateSelection(t,e),this._fireSelectionChangeEvent(t,e))},_fireSelectionChangeEvent:function(e,t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:[e],removedItems:[t]})},selectItem:function(e){var t=e.nodeType?this._getItemData(e):e,n=this._dataAdapter.getNodeByItem(t),i=this._dataAdapter.getSelectedNodesKeys()[0],o=this.option("selectedItem");n.internalFields.key!==i&&(i&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(i),!1),this._toggleItemSelection(n,!0),this._updateSelectedItems(o,t),this._setOptionSilent("selectedItem",t))},unselectItem:function(e){var t=e.nodeType?this._getItemData(e):e,n=this._dataAdapter.getNodeByItem(t),i=this.option("selectedItem");n.internalFields.selected&&(this._toggleItemSelection(n,!1),this._updateSelectedItems(i,null),this._setOptionSilent("selectedItem",null))}});e.exports=v},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=n(20),r=n(0),s=n(3),l=i(n(16)),u=i(n(60)),c=i(n(592)),d=i(n(54)),h=i(n(65)),p=n(1),f=n(4),g=d.default.inherit({_getDefaultOptions:function(){return(0,r.extend)(this.callBase(),{keyExpr:"id",displayExpr:"text",selectedExpr:"selected",disabledExpr:"disabled",itemsExpr:"items",hoverStateEnabled:!0,parentIdExpr:"parentId",expandedExpr:"expanded"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===l.default.real().deviceType&&!l.default.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this._initAccessors(),this._initDataAdapter(),this._initDynamicTemplates()},_initDataSource:function(){this.callBase(),this._dataSource&&this._dataSource.paginate(!1)},_initDataAdapter:function(){var e=this._createDataAdapterAccessors();this._dataAdapter=new c.default((0,r.extend)({dataAccessors:{getters:e.getters,setters:e.setters},items:this.option("items")},this._getDataAdapterOptions()))},_getDataAdapterOptions:f.noop,_initDynamicTemplates:function(){var e=this;this._defaultTemplates.item=new h.default(function(t,n){t.html(n.html).append(this._getIconContainer(n)).append(this._getTextContainer(n)).append(this._getPopoutContainer(n)),e._addContentClasses(n,t.parent())}.bind(this),["text","html","items","icon"],this.option("integrationOptions.watchMethod"),{text:this._displayGetter,items:this._itemsGetter})},_getIconContainer:function(e){return e.icon?u.default.getImageContainer(e.icon):void 0},_getTextContainer:function(e){return(0,o.default)("<span>").text(e.text)},_getPopoutContainer:f.noop,_addContentClasses:f.noop,_initAccessors:function(){var e=this;(0,s.each)(this._getAccessors(),function(t,n){e._compileAccessor(n)}),this._compileDisplayGetter()},_getAccessors:function(){return["key","selected","items","disabled","parentId","expanded"]},_getChildNodes:function(e){var t=this,n=[];return(0,s.each)(e.internalFields.childrenKeys,function(e,i){var o=t._dataAdapter.getNodeByKey(i);n.push(o)}),n},_hasChildren:function(e){return e&&e.internalFields.childrenKeys.length},_compileAccessor:function(e){var t="_"+e+"Getter",n="_"+e+"Setter",i=this.option(e+"Expr");return i?(0,p.isFunction)(i)?(this[n]=function(e,t){e[i()]=t},void(this[t]=function(e){return e[i()]})):(this[t]=(0,a.compileGetter)(i),void(this[n]=(0,a.compileSetter)(i))):(this[t]=f.noop,void(this[n]=f.noop))},_createDataAdapterAccessors:function(){var e=this,t={getters:{},setters:{}};return(0,s.each)(this._getAccessors(),function(n,i){var o="_"+i+"Getter",a="_"+i+"Setter",r="parentId"===i?"parentKey":i;t.getters[r]=e[o],t.setters[r]=e[a]}),t.getters.display=this._displayGetter?this._displayGetter:function(e){return e.text},t},_initMarkup:function(){this.callBase(),this._addWidgetClass()},_addWidgetClass:function(){this._focusTarget().addClass(this._widgetClass())},_widgetClass:f.noop,_renderItemFrame:function(e,t){var n=this.callBase.apply(this,arguments);return n.toggleClass("dx-state-disabled",!!this._disabledGetter(t)),n},_optionChanged:function(e){switch(e.name){case"displayExpr":case"keyExpr":this._initAccessors(),this._initDynamicTemplates(),this.repaint();break;case"itemsExpr":case"selectedExpr":case"disabledExpr":case"expandedExpr":case"parentIdExpr":this._initAccessors(),this._initDataAdapter(),this.repaint();break;case"items":this._initDataAdapter(),this.callBase(e);break;default:this.callBase(e)}}});e.exports=g},function(e,t,n){var i=function(e){return e&&e.__esModule?e:{default:e}}(n(596));n(606),n(607),n(608),n(610),n(613),n(614),n(616),n(617),n(618),n(620),n(621),n(625),n(626),n(627),n(628),n(630),n(631),n(632),n(634),n(635),n(636),n(637),n(638),e.exports=i.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(5)),r=i(n(166)),s=i(n(15)),l=n(1),u=n(3),c=n(0),d=n(96),h="text-content",p="dx-header-row",f="dx-visibility-hidden",g="dx-text-content-alignment-";e.exports={defaultOptions:function(){return{showColumnHeaders:!0,cellHintEnabled:!0}},views:{columnHeadersView:r.default.ColumnsView.inherit(function(){var e=function(e,n,i){var a=(0,o.default)("<div>").addClass(e.addWidgetPrefix(h));return e.setAria("role","presentation",a),t(e,n,i.column,a),a[e.option("showColumnLines")||"right"===i.column.alignment?"appendTo":"prependTo"](n)},t=function(e,t,n,i){var o=e._getIndicatorElements(t,!0),a=e._getIndicatorElements(t),r=o&&o.length,s=e._getColumnAlignment(n.alignment);(i=i||t.children("."+e.addWidgetPrefix(h))).toggleClass(g+s,r>0).toggleClass(g+("left"===s?"right":"left"),r>0&&"center"===n.alignment).toggleClass("dx-sort-indicator",!!a.filter("."+e._getIndicatorClassName("sort")).length).toggleClass("dx-header-filter-indicator",!!a.filter("."+e._getIndicatorClassName("headerFilter")).length)};return{_createTable:function(){var e=this.callBase.apply(this,arguments);return a.default.on(e,"mousedown selectstart",this.createAction(function(e){var t=e.event;t.shiftKey&&t.preventDefault()})),e},_isLegacyKeyboardNavigation:function(){return this.option("useLegacyKeyboardNavigation")},_getDefaultTemplate:function(t){var n=this;return function(i,o){var a=t.command?i:e(n,i,o),r=!(0,l.isDefined)(t.groupIndex)&&t.caption;r?a.text(r):t.command&&i.html("&nbsp;")}},_getHeaderTemplate:function(e){return e.headerCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(e)}},_processTemplate:function(t,n){var i=this,o=n.column,a=i.callBase(t);return"header"===n.rowType&&a&&o.headerCellTemplate&&!o.command?{render:function(t){var n=e(i,t.container,t.model);a.render((0,c.extend)({},t,{container:n}))}}:a},_handleDataChanged:function(e){"refresh"===e.changeType&&(this._isGroupingChanged||this._requireReady)&&(this._isGroupingChanged=!1,this.render())},_renderCell:function(e,t){var n=this.callBase(e,t);return"header"===t.row.rowType&&(n.addClass("dx-cell-focus-disabled"),this._isLegacyKeyboardNavigation()||t.column&&!t.column.type&&n.attr("tabindex",this.option("tabindex")||0)),n},_setCellAriaAttributes:function(e,t){this.callBase(e,t),"header"===t.rowType&&(this.setAria("role","columnheader",e),!t.column||t.column.command||t.column.isBand||(e.attr("id",t.column.headerId),this.setAria("label",s.default.format("dxDataGrid-ariaColumn")+" "+t.column.caption,e)))},_createRow:function(e){var t=this.callBase(e).toggleClass("dx-column-lines",this.option("showColumnLines"));return"header"===e.rowType&&(t.addClass(p),this._isLegacyKeyboardNavigation()||(0,d.registerKeyboardAction)("columnHeaders",this,t,"td",this._handleActionKeyDown.bind(this))),t},_handleActionKeyDown:function(e){var t=e.event,n=(0,o.default)(t.target);if(this._lastActionElement=t.target,n.is(".dx-header-filter")){var i=this.getController("headerFilter"),a=n.closest("td"),r=this.getColumnIndexByElement(a);r>=0&&i.showHeaderFilterMenu(r,!1)}else{var s=n.closest(".dx-row");this._processHeaderAction(t,s)}t.preventDefault()},_renderCore:function(){var e=this,t=e.element();(!e._tableElement||e._dataController.isLoaded()||e._hasRowElements)&&(t.addClass(e.addWidgetPrefix("headers")).toggleClass(e.addWidgetPrefix("nowrap"),!e.option("wordWrapEnabled")).empty(),e.setAria("role","presentation",t),e._updateContent(e._renderTable()),e.getRowCount()>1&&t.addClass("dx-header-multi-row"),e.callBase.apply(e,arguments))},_renderRows:function(){var e=this;(e._dataController.isLoaded()||e._hasRowElements)&&(e.callBase.apply(e,arguments),e._hasRowElements=!0)},_getRowVisibleColumns:function(e){return this._columnsController.getVisibleColumns(e)},_renderRow:function(e,t){t.columns=this._getRowVisibleColumns(t.row.rowIndex),this.callBase(e,t)},_createCell:function(e){var t=e.column,n=this.callBase.apply(this,arguments);return t.rowspan>1&&"header"===e.rowType&&n.attr("rowSpan",t.rowspan),n},_getRows:function(){var e,t=[],n=this.getRowCount();if(this.option("showColumnHeaders"))for(e=0;e<n;e++)t.push({rowType:"header",rowIndex:e});return t},_getCellTemplate:function(e){if("header"===e.rowType)return this._getHeaderTemplate(e.column)},_columnOptionChanged:function(e){var t=e.changeTypes,n=e.optionNames;return t.grouping?void(this._isGroupingChanged=!0):(this.callBase(e),void((n.width||n.visible)&&this.resizeCompleted.fire()))},_isElementVisible:function(e){return e&&e.visible},_alignCaptionByCenter:function(e){var t=this._getIndicatorContainer(e,!0);t&&t.length&&(t.filter("."+f).remove(),(t=this._getIndicatorContainer(e)).clone().addClass(f).css("float","").insertBefore(e.children("."+this.addWidgetPrefix(h))))},_updateCell:function(e,t){"header"===t.rowType&&"center"===t.column.alignment&&this._alignCaptionByCenter(e),this.callBase.apply(this,arguments)},_updateIndicator:function(e,n,i){var o=this.callBase.apply(this,arguments);return"center"===n.alignment&&this._alignCaptionByCenter(e),t(this,e,n),o},_getIndicatorContainer:function(e,t){var n=this.callBase(e);return t?n:n.filter(":not(."+f+")")},_isSortableElement:function(){return!0},getHeadersRowHeight:function(){var e=this._getTableElement(),t=e&&e.find("."+p);return t&&t.toArray().reduce(function(e,t){return e+(0,o.default)(t).height()},0)||0},getHeaderElement:function(e){var t=this.getColumnElements();return t&&t.eq(e)},getColumnElements:function(e,t){var n,i,a,r,s=this,c=s._columnsController,d=s.getRowCount();if(s.option("showColumnHeaders")){if(d>1&&(!(0,l.isDefined)(e)||(0,l.isDefined)(t)))return i=[],r=(0,l.isDefined)(t)?c.getChildrenByBandColumn(t,!0):c.getVisibleColumns(),(0,u.each)(r,function(t,o){n=(0,l.isDefined)(e)?e:c.getRowIndex(o.index),(a=s._getCellElement(n,c.getVisibleIndex(o.index,n)))&&i.push(a.get(0))}),(0,o.default)(i);if(!e||e<d)return s.getCellElements(e||0)}},getColumnIndexByElement:function(e){var t=this.getCellIndex(e),n=e.closest(".dx-row")[0].rowIndex,i=this.getColumns(n)[t];return i?i.index:-1},getVisibleColumnIndex:function(e,t){var n=this.getColumns()[e];return n?this._columnsController.getVisibleIndex(n.index,t):-1},getColumnWidths:function(){var e=this.getColumnElements();return e&&e.length?this._getWidths(e):this.callBase.apply(this,arguments)},allowDragging:function(e,t,n){var i,o,a=e&&this._columnsController.getRowIndex(e.index),r=this.getColumns(0===a?0:null),s=0,l=function(e){return e.allowReordering||e.allowGrouping||e.allowHiding};for(i=0;i<r.length;i++)l(r[i])&&s++;if(s<=1)return!1;if(!n)return(this.option("allowColumnReordering")||this._columnsController.isColumnOptionUsed("allowReordering"))&&e&&e.allowReordering;for(i=0;i<n.length;i++)if((o=n[i])&&o.allowDragging(e,t))return!0;return!1},getBoundingRect:function(){var e=this.getColumnElements();return e&&e.length?{top:this._getTableElement().offset().top}:null},getName:function(){return"headers"},getColumnCount:function(){var e=this.getColumnElements();return e?e.length:0},isVisible:function(){return this.option("showColumnHeaders")},optionChanged:function(e){switch(e.name){case"showColumnHeaders":case"wordWrapEnabled":case"showColumnLines":this._invalidate(!0,!0),e.handled=!0;break;default:this.callBase(e)}},getHeight:function(){return this.getElementHeight()},getContextMenuItems:function(e){var t,n,i=this,o=e.column;if(e.row&&("header"===e.row.rowType||"detailAdaptive"===e.row.rowType)&&((n=i.option("sorting"))&&"none"!==n.mode&&o&&o.allowSorting))return t=function(e){setTimeout(function(){i._columnsController.changeSortOrder(o.index,e.itemData.value)})},[{text:n.ascendingText,value:"asc",disabled:"asc"===o.sortOrder,icon:"context-menu-sort-asc",onItemClick:t},{text:n.descendingText,value:"desc",disabled:"desc"===o.sortOrder,icon:"context-menu-sort-desc",onItemClick:t},{text:n.clearText,value:"none",disabled:!o.sortOrder,icon:"context-menu-sort-none",onItemClick:t}]},getRowCount:function(){return this._columnsController&&this._columnsController.getRowCount()},setRowsOpacity:function(e,t,n){var i,o,a=this,r=a.getRowCount(),s=a._columnsController.getColumns(),c=s&&s[e],d=c&&c.isBand&&c.index,h=function(e,n){n.ownerBand===d&&(o.eq(e).css({opacity:t}),n.isBand&&a.setRowsOpacity(n.index,t,i+1))};if((0,l.isDefined)(d))for(i=n=n||0;i<r;i++)o=a.getCellElements(i),(0,u.each)(a.getColumns(i),h)}}}())}}},function(e,t,n){var i=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),o=n(4),a=n(0),r=n(99),s="dx-column-indicators";e.exports={_applyColumnState:function(e){var t=this,n=this.option("rtlEnabled"),o=t._getColumnAlignment(e.column.alignment,n),r=(0,a.extend)(!0,{columnAlignment:o},e),s=r.rootElement.hasClass("dx-group-panel-item"),l=t._createIndicatorContainer(r,s),u=(0,i.default)("<span>").addClass(t._getIndicatorClassName(e.name));return r.container=l,r.indicator=u,t._renderIndicator(r),l[!s&&e.showColumnLines||"left"!==(n?"left"===o?"right":"left":o)?"prependTo":"appendTo"](e.rootElement),u},_getIndicatorClassName:o.noop,_getColumnAlignment:function(e,t){return t=t||this.option("rtlEnabled"),e&&"center"!==e?e:(0,r.getDefaultAlignment)(t)},_createIndicatorContainer:function(e,t){var n=this._getIndicatorContainer(e.rootElement),o="left"===e.columnAlignment?"right":"left";return n.length||(n=(0,i.default)("<div>").addClass(s)),this.setAria("role","presentation",n),n.css("float",e.showColumnLines&&!t?o:null)},_getIndicatorContainer:function(e){return e&&e.find("."+s)},_getIndicatorElements:function(e){var t=this._getIndicatorContainer(e);return t&&t.children()},_renderIndicator:function(e){var t=e.container,n=e.indicator;t&&n&&t.append(n)},_updateIndicators:function(e){var t,n,i,o=this,a=o.getColumns(),r=o.getColumnElements();if(r&&a.length===r.length)for(i=0;i<a.length;i++)n=r.eq(i),o._updateIndicator(n,a[i],e),(t=n.parent().data("options"))&&t.cells&&(t.cells[n.index()].column=a[i])},_updateIndicator:function(e,t,n){if(!t.command)return this._applyColumnState({name:n,rootElement:e,column:t,showColumnLines:this.option("showColumnLines")})}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(25)),r=n(74),s=i(n(20)),l=n(4),u=n(1),c=i(n(3)),d=n(99),h=n(0),p=n(13),f=i(n(27)),g=n(48),_=i(n(18)),m=i(n(38)),v=n(36),y=i(n(32)),b=i(n(56)),x=i(n(51)),w=i(n(33)),C=i(n(15)),k=n(6),S=i(n(91)),I=n(45),T=i(n(165)),D=["filterValues","filterType","fixed","fixedPosition"],E=["visibleIndex","dataField","name","dataType","width","visible","sortOrder","lastSortOrder","sortIndex","groupIndex","filterValue","selectedFilterOperation","added"].concat(D),A={visibleWidth:!0,bestFitWidth:!0,bufferedFilterValue:!0},O=Number.MAX_SAFE_INTEGER||9007199254740991,P="groupExpand",B=/columns\[(\d+)\]\.?/gi,M=1;e.exports={defaultOptions:function(){return{commonColumnSettings:{allowFiltering:!0,allowHiding:!0,allowSorting:!0,allowEditing:!0,encodeHtml:!0,trueText:C.default.format("dxDataGrid-trueText"),falseText:C.default.format("dxDataGrid-falseText")},allowColumnReordering:!1,allowColumnResizing:!1,columnResizingMode:"nextColumn",columnMinWidth:void 0,columnWidth:void 0,adaptColumnWidthByRatio:!0,columns:void 0,regenerateColumnsByVisibleItems:!1,customizeColumns:null,dateSerializationFormat:void 0}},controllers:{columns:m.default.Controller.inherit(function(){var e={visible:!0,showInColumnChooser:!0},t={number:["=","<>","<",">","<=",">=","between"],string:["contains","notcontains","startswith","endswith","=","<>"],date:["=","<>","<",">","<=",">=","between"],datetime:["=","<>","<",">","<=",">=","between"]},n={visibleIndex:!0,groupIndex:!0,grouped:!0,sortIndex:!0,sortOrder:!0},i="group",m="columnChooser",C=function(e){e.filterOperations=e.defaultFilterOperations},R=function(t,n,i,o){var a,r={};if(n){(0,u.isString)(n)&&(n={dataField:n});var s=void 0;return n.command?s=(0,g.deepExtendArraySafe)(r,n):(r=t.getCommonSettings(n),i&&i.name&&i.dataField&&(n=(0,h.extend)({},n,{dataField:i.dataField})),a=t._createCalculatedColumnOptions(n,o),s=(0,g.deepExtendArraySafe)({headerId:"dx-col-"+M++},e),(0,g.deepExtendArraySafe)(s,r),(0,g.deepExtendArraySafe)(s,a),(0,g.deepExtendArraySafe)(s,n),(0,g.deepExtendArraySafe)(s,{selector:null})),n.filterOperations===n.defaultFilterOperations&&C(s),s}},F=function e(t,n,i){var o=[];return n&&c.default.each(n,function(n,a){var r=t._columnsUserState&&j(a,t._columnsUserState[n])&&t._columnsUserState[n],s=R(t,a,r,i);s&&(i&&(s.ownerBand=i),o.push(s),s.isBand&&(o=o.concat(e(t,s.columns,s)),delete s.columns))}),o},V=function(e,t){for(var n=[],i=t[e];i;)n.unshift(i),i=t[e=i.index];return n},L=function e(t,n){var i=0,o=t.getChildrenByBandColumn(n,!0);return c.default.each(o,function(n,o){o.isBand?(o.colspan=o.colspan||e(t,o.index),i+=o.colspan||1):i+=1}),i},H=function(e){var t=(0,u.type)(e);return"string"!==t&&"boolean"!==t&&"number"!==t&&"date"!==t&&"object"!==t&&(t=void 0),t},z=function(e,t){switch(e){case"date":case"datetime":return b.default.getDateSerializationFormat(t);case"number":if((0,u.isString)(t))return"string";if((0,u.isNumeric)(t))return null}},N=function(e,t){e.deserializeValue||((0,v.isDateType)(t)&&(e.deserializeValue=function(e){return b.default.deserializeDate(e)},e.serializeValue=function(e){return(0,u.isString)(e)?e:b.default.serializeDate(e,this.serializationFormat)}),"number"===t&&(e.deserializeValue=function(e){var t=parseFloat(e);return isNaN(t)?e:t},e.serializeValue=function(e,t){return"filter"===t?e:(0,u.isDefined)(e)&&"string"===this.serializationFormat?e.toString():e}))},$=function(e){c.default.each(e._columns,function(e,t){t.index=e}),c.default.each(e._columns,function(e,t){(0,u.isObject)(t.ownerBand)&&(t.ownerBand=t.ownerBand.index)}),c.default.each(e._commandColumns,function(e,t){t.index=-(e+1)})},W=function(e,t){(0,p.normalizeIndexes)(e._columns,"groupIndex",t,function(e){var t=e.grouped;return delete e.grouped,t})},G=function(e,t,n){var o,a=(0,u.isObject)(t)?t.rowIndex:null,r=n===i?e.getGroupColumns():n===m?e.getChooserColumns():e.getVisibleColumns(a);return t=(0,u.isObject)(t)?t.columnIndex:t,(o=r[t])&&o.type===P&&(o=e._columns.filter(function(e){return o.type===e.type})[0]||o),o&&(0,u.isDefined)(o.index)?o.index:-1},j=function(e,t){return e&&t&&t.name===e.name&&(t.dataField===e.dataField||e.name)},q=function(e){function t(e,t){var n;if(t)for(var i=0;i<E.length;i++)n=E[i],(0,p.inArray)(n,l)>=0||("dataType"===n?e[n]=e[n]||t[n]:(0,p.inArray)(n,D)>=0?n in t&&(e[n]=t[n]):("selectedFilterOperation"===n&&t[n]&&(e.defaultSelectedFilterOperation=e[n]||null),e[n]=t[n]))}function n(e,t){for(var n=t.name||t.dataField,i=d[n]||0,o=0;o<e.length;o++)if(j(t,e[o])){if(!i)return d[n]=d[n]||0,d[n]++,o;i--}return-1}var i,o,a,r,s=e._columnsUserState,l=e._ignoreColumnOptionNames||[],c=e._columns,d={},h=[],f=!0,g=[];if(s){for(r=0;r<c.length;r++)a=n(s,c[r]),f=f&&a>=0,g.push(a);for(r=0;r<c.length;r++)i=c[r],a=g[r],(e._hasUserState||f)&&t(i,s[a]),a>=0&&(0,u.isDefined)(s[a].initialIndex)?h[a]=i:h.push(i);var _=!1;for(r=0;r<s.length;r++)(o=s[r]).added&&n(c,o)<0&&(t(i=R(e,o.added),o),h.push(i),o.added.columns&&(_=!0));_&&($(e),h=F(e,h)),Y(e,h)}},K=function(e,t){$(e),W(e,t),function(e,t){c.default.each(e._columns,function(e,t){(0,u.isDefined)(t.sortIndex)&&!J(t.sortOrder)&&delete t.sortIndex}),(0,p.normalizeIndexes)(e._columns,"sortIndex",t,function(e){return!(0,u.isDefined)(e.groupIndex)&&J(e.sortOrder)})}(e,t),function(e,t){var n,i,o,a,r,s={},l=[],u=e.getBandColumnsCache(),c=e._columns.filter(function(e){return!e.command});for(n=0;n<c.length;n++)o=c[n],(r=V(n,u.columnParentByIndex)).length?(s[a=r[r.length-1].index]=s[a]||[],s[a].push(o)):l.push(o);for(i in s)(0,p.normalizeIndexes)(s[i],"visibleIndex",t);(0,p.normalizeIndexes)(l,"visibleIndex",t)}(e,t)},U=function(e){e.resetColumnsCache()},Y=function(e,t){e._columns=t,U(e),e.updateColumnDataTypes()},X=function(e,t,n,i){var o=e._columnChanges||{optionNames:{length:0},changeTypes:{length:0},columnIndex:i};n=(n=n||"all").split(".")[0];var a=o.changeTypes;t&&!a[t]&&(a[t]=!0,a.length++);var r=o.optionNames;n&&!r[n]&&(r[n]=!0,r.length++),void 0!==i&&i===o.columnIndex||delete o.columnIndex,e._columnChanges=o,U(e)},Z=function(e){var t=e.option("onColumnsChanging"),n=e._columnChanges;e.isInitialized()&&!e._updateLockCount&&n&&(t&&(e._updateLockCount++,t((0,h.extend)({component:e.component},n)),e._updateLockCount--),e._columnChanges=void 0,n.optionNames&&(n.optionNames.dataField||n.optionNames.lookup||n.optionNames.dataType)?e.reinit():e.columnsChanged.fire(n))},Q=function(e,t,n,i,o){var a,r,l,c,d,h,f=s.default.compileGetter(n),g=t.index;return 3===arguments.length?f(t,{functionsAsIs:!0}):void((a=f(t,{functionsAsIs:!0}))!==i&&("groupIndex"===n||"calculateGroupValue"===n?(c="grouping",function(e,t,n){t>=0?n>=0||(e.lastSortOrder=e.sortOrder):e.sortOrder=e.lastSortOrder}(t,i,a)):c="sortIndex"===n||"sortOrder"===n||"calculateSortValue"===n?"sorting":"columns",r=s.default.compileSetter(n),r(t,i,{functionsAsIs:!0}),d=function(e,t){for(var n=[],i=e.getBandColumnsCache(),o=function(e){return e.ownerBand===t.ownerBand},a=e._columns.filter(o);a.length&&-1!==a.indexOf(t);)n.unshift("columns["+a.indexOf(t)+"]"),a=(t=i.columnParentByIndex[t.index])?e._columns.filter(o):[];return n.join(".")}(e,t),d&&function(e,t){var n=t.value,i=t.optionName,o=t.prevValue,a=t.fullOptionName;A[i]||(e._skipProcessingColumnsChange=!0,e.component._notifyOptionChanged(a+"."+i,n,o),e._skipProcessingColumnsChange=!1)}(e,{fullOptionName:d,optionName:n,value:i,prevValue:a}),(0,u.isDefined)(a)||(0,u.isDefined)(i)||0===n.indexOf("buffer")||(o=!0),o?U(e):((0,p.inArray)(n,E)<0&&"visibleWidth"!==n&&(l=e.option("columns"),h=e.getColumnByPath(d,l),(0,u.isString)(h)&&(h=l[g]={dataField:h}),h&&j(h,t)&&r(h,i,{functionsAsIs:!0})),X(e,c,n,g))))},J=function(e){return"asc"===e||"desc"===e},ee=function(e,t){var n,i,o=this.dataField.split("."),a=o.length-1;for(this.serializeValue&&(t=this.serializeValue(t)),i=0;i<a;i++)e=e[n=o[i]]=e[n]||{};e[o[a]]=t},te=function(e,t){var n=e.option("rtlEnabled");return t.command&&!ae(e,t)||!t.fixedPosition?n?"right":"left":t.fixedPosition},ne=function(e,t,n,i){var o,a=this.getRowCount(),r=e[i]&&e[i].rowspan,s=t.filter(function(e){return e.type===n});return e.forEach(function(t,i){t.type===n&&(o=i,r=e[i+1]?e[i+1].rowspan:a)}),r>1&&(s=c.default.map(s,function(e){return(0,h.extend)({},e,{rowspan:r})})),s.unshift.apply(s,(0,u.isDefined)(o)?[o,1]:[i,0]),e.splice.apply(e,s),r||1},ie=function(e,t){for(var n=e?e.toString():"0";n.length<t;)n="0"+n;return n},oe=function(e,t,n,i){var o,a,r,s,l=t.slice().map(function(e){return(0,h.extend)({},e)}),u=e._isColumnFixing(),c=n.slice().map(function(e){return(0,h.extend)({fixed:u},e)}),d=function(e){return n.reduce(function(t,n,o){var a=i&&e.type===P?"expand":e.type;return n.type===a||n.command===e.command?o:t},-1)},p=function(e){return e.command!==n[s].command};for(o=0;o<t.length;o++)a=t[o],(s=a&&(a.type||a.command)?d(a):-1)>=0&&(i?(l[o]=(0,h.extend)({fixed:u},n[s],a),a.type!==P&&(c=c.filter(p))):(r={visibleIndex:a.visibleIndex,index:a.index,headerId:a.headerId,allowFixing:0===a.groupIndex,allowReordering:0===a.groupIndex,groupIndex:a.groupIndex},l[o]=(0,h.extend)({},a,n[s],a.type===P&&r)));return t.length&&i&&c.length&&(l=l.concat(c)),l},ae=function(e,t){return!!e._columns.filter(function(e){return e.type===t.type}).length},re=function(e,t){return(0,u.isDefined)(t.fixed)||!t.type?t.fixed:e._isColumnFixing()};return{_getExpandColumnOptions:function(){return{type:"expand",command:"expand",width:"auto",cssClass:"dx-command-expand",allowEditing:!1,allowGrouping:!1,allowSorting:!1,allowResizing:!1,allowReordering:!1,allowHiding:!1}},_getFirstItems:function(e){var t,n=[];return e&&e.items().length>0&&(t=(0,v.normalizeSortingInfo)(e.group()).length,n=function e(t,n){var i,o;if(!t||!n)return t;for(i=0;i<t.length;i++)if((o=e(t[i].items||t[i].collapsedItems,n-1))&&o.length)return o}(e.items(),t)||[]),n},_endUpdateCore:function(){!this._skipProcessingColumnsChange&&Z(this)},init:function(){var e=this,t=e.option("columns");e._commandColumns=e._commandColumns||[],e._columns=e._columns||[],e._isColumnsFromOptions=!!t,e._isColumnsFromOptions?(Y(e,t?F(e,t):[]),q(e)):Y(e,e._columnsUserState?F(e,e._columnsUserState):e._columns),function(e){var t=e._getExpandColumnOptions();e.addCommandColumn(t)}(e),e._dataSourceApplied?e.applyDataSource(e._dataSource,!0):K(e)},callbackNames:function(){return["columnsChanged"]},getColumnByPath:function(e,t){var n,i=[];return e.replace(B,function(e,t){return i.push(parseInt(t)),""}),i.length&&(n=t?i.reduce(function(e,t){return e&&e.columns&&e.columns[t]},{columns:t}):function(e,t){for(var n,i=function(e){var t=n?n.index:void 0;return e.ownerBand===t},o=e._columns.filter(i),a=0;a<t.length;a++)(n=o[t[a]])&&(o=e._columns.filter(i));return n}(this,i)),n},optionChanged:function(e){switch(e.name){case"adaptColumnWidthByRatio":e.handled=!0;break;case"columns":e.handled=!0,this._skipProcessingColumnsChange?this._updateRequireResize(e):e.name===e.fullName?(this._columnsUserState=null,this._ignoreColumnOptionNames=null,this.init()):this._columnOptionChanged(e);break;case"commonColumnSettings":case"columnAutoWidth":case"allowColumnResizing":case"allowColumnReordering":case"columnFixing":case"grouping":case"groupPanel":case"regenerateColumnsByVisibleItems":case"customizeColumns":case"editing":case"columnHidingEnabled":case"dateSerializationFormat":case"columnResizingMode":case"columnMinWidth":case"columnWidth":e.handled=!0,this.reinit();break;case"rtlEnabled":this.reinit();break;default:this.callBase(e)}},_columnOptionChanged:function(e){var t={},n=this.getColumnByPath(e.fullName),i=e.fullName.replace(B,"");n&&(i?t[i]=e.value:t=e.value,this.columnOption(n.index,t))},_updateRequireResize:function(e){var t=this.component;"width"===e.fullName.replace(B,"")&&t._updateLockCount&&(t._requireResize=!0)},publicMethods:function(){return["addColumn","deleteColumn","columnOption","columnCount","clearSorting","clearGrouping","getVisibleColumns"]},applyDataSource:function(e,t){var n=this,i=e&&e.isLoaded();if(n._dataSource=e,!n._dataSourceApplied||0===n._dataSourceColumnsCount||t||n.option("regenerateColumnsByVisibleItems")){if(i){if(!n._isColumnsFromOptions){var o=function(e,t){var n,i,o=e._getFirstItems(t),a={},s=[];for(i=0;i<o.length;i++)if(o[i])for(n in o[i])(0,u.isFunction)(o[i][n])&&!(0,r.isWrapped)(o[i][n])||(a[n]=!0);for(n in a)if(0!==n.indexOf("__")){var l=R(e,n);s.push(l)}return s}(n,e);o.length&&(Y(n,o),n._dataSourceColumnsCount=n._columns.length,q(n))}return n.updateColumns(e,t)}n._dataSourceApplied=!1}else if(i&&!n.isAllDataTypesDefined(!0)&&n.updateColumnDataTypes(e))return X(n,"columns"),Z(n),(new k.Deferred).reject().promise()},reset:function(){this._dataSourceApplied=!1,this._dataSourceColumnsCount=void 0,this.reinit()},resetColumnsCache:function(){var e=this;e._visibleColumns=void 0,e._fixedColumns=void 0,e._rowCount=void 0,e._bandColumnsCache=void 0},reinit:function(){this._columnsUserState=this.getUserState(),this._ignoreColumnOptionNames=null,this.init()},isInitialized:function(){return!!this._columns.length||!!this.option("columns")},isDataSourceApplied:function(){return this._dataSourceApplied},getCommonSettings:function(e){var t=(!e||!e.type)&&this.option("commonColumnSettings")||{},n=this.option("grouping")||{},i=this.option("groupPanel")||{};return(0,h.extend)({allowFixing:this.option("columnFixing.enabled"),allowResizing:this.option("allowColumnResizing")||void 0,allowReordering:this.option("allowColumnReordering"),minWidth:this.option("columnMinWidth"),width:this.option("columnWidth"),autoExpandGroup:n.autoExpandAll,allowCollapsing:n.allowCollapsing,allowGrouping:i.allowColumnDragging&&i.visible||n.contextMenuEnabled},t)},isColumnOptionUsed:function(e){for(var t=0;t<this._columns.length;t++)if(this._columns[t][e])return!0},isAllDataTypesDefined:function(e){var t,n=this._columns;if(!n.length)return!1;for(t=0;t<n.length;t++)if((n[t].dataField||n[t].calculateCellValue!==n[t].defaultCalculateCellValue)&&(!n[t].dataType||e&&n[t].deserializeValue&&void 0===n[t].serializationFormat))return!1;return!0},getColumns:function(){return this._columns},isBandColumnsUsed:function(){return this.getColumns().some(function(e){return e.isBand})},getGroupColumns:function(){var e=[];return c.default.each(this._columns,function(){var t=this;(0,u.isDefined)(t.groupIndex)&&(e[t.groupIndex]=t)}),e},getVisibleColumns:function(e){return this._visibleColumns=this._visibleColumns||this._getVisibleColumnsCore(),e=(0,u.isDefined)(e)?e:this._visibleColumns.length-1,this._visibleColumns[e]||[]},getFixedColumns:function(e){return this._fixedColumns=this._fixedColumns||this._getFixedColumnsCore(),e=(0,u.isDefined)(e)?e:this._fixedColumns.length-1,this._fixedColumns[e]||[]},getFilteringColumns:function(){return this.getColumns().filter(function(e){return(e.dataField||e.name)&&(e.allowFiltering||e.allowHeaderFiltering)}).map(function(e){var t=(0,h.extend)(!0,{},e);return(0,u.isDefined)(t.dataField)||(t.dataField=t.name),t.filterOperations=e.filterOperations!==e.defaultFilterOperations?t.filterOperations:null,t})},_getFixedColumnsCore:function(){var e,t,n,i,o,a,r,s,l=this,c=[],d=l.getRowCount(),h={command:"transparent"},p=0;if(l._isColumnFixing())for(e=0;e<=d;e++){for(o=0,r=null,a=null,s=l.getVisibleColumns(e,!0),t=0;t<s.length;t++)i=s[t-1],(n=s[t]).fixed?i&&i.fixed&&te(l,i)!==te(l,n)?(0,u.isDefined)(a)||(a=t):r=n.fixedPosition:(0===e&&(n.isBand&&n.colspan?p+=n.colspan:p++),o++,(0,u.isDefined)(a)||(a=t));if(0===e&&(0===o||o>=s.length))return[];(0,u.isDefined)(a)||(a="right"===r?0:s.length),c[e]=s.slice(0),h.colspan||(h.colspan=p),c[e].splice(a,o,h)}return c},_isColumnFixing:function(){var e=this.option("columnFixing.enabled");return!e&&c.default.each(this._columns,function(t,n){if(n.fixed)return e=!0,!1}),e},_getExpandColumnsCore:function(){return this.getGroupColumns()},getExpandColumns:function(){var e,t=this._getExpandColumnsCore(),n=t.filter(function(e){return 0===e.groupIndex})[0],i=n&&n.fixed,o=this._isColumnFixing();return t.length&&(e=this.columnOption("command:expand")),c.default.map(t,function(t){return(0,h.extend)({},t,{visibleWidth:null,minWidth:null,cellTemplate:(0,u.isDefined)(t.groupIndex)?null:t.cellTemplate,headerCellTemplate:null,fixed:!(!(0,u.isDefined)(t.groupIndex)||!i)||o},e,{index:t.index,type:t.type||P})})},getBandColumnsCache:function(){if(!this._bandColumnsCache){var e=this._columns,t={},n={};e.forEach(function(i){var o=i.ownerBand,a=e[o];i.colspan&&(i.colspan=void 0),i.rowspan&&(i.rowspan=void 0),a?n[i.index]=a:o=-1,t[o]=t[o]||[],t[o].push(i)}),this._bandColumnsCache={columnChildrenByIndex:t,columnParentByIndex:n}}return this._bandColumnsCache},_isColumnVisible:function(e){return e.visible&&this.isParentColumnVisible(e.index)},_getVisibleColumnsCore:function(){var e,t,n,i=this,o=[],a=0,r=0,s=i.getRowCount(),l=[],d=[],h=0,p=i.option("rtlEnabled"),f=i.getBandColumnsCache(),_=oe(i,i.getExpandColumns(),i._columns),m=oe(i,i._columns,i._commandColumns,!0),v=function(e){var t;for(t=0;e>1;t++)e/=10;return t}(m.length);for(function(e,t,n){var i,o,a,r=e.getRowCount();for(i=0;i<t.length;i++)((o=t[i]).visible||o.command)&&(o.isBand&&(o.colspan=o.colspan||L(e,o.index)),o.isBand&&o.colspan||(a=r-(o.command||(0,u.isDefined)(o.groupIndex)?0:V(o.index,n.columnParentByIndex).length))>1&&(o.rowspan=a))}(i,m,f),e=0;e<s;e++)o[e]=[],d[e]=[{}],l[e]=[{},{},{}];return c.default.each(m,function(){var t,o,a=this,r=a.visibleIndex,s=V(a.index,f.columnParentByIndex);if(i._isColumnVisible(a)&&(!(0,u.isDefined)(a.groupIndex)||a.showWhenGrouped)){if(t=s.length,r<0?(r=-r,o=d[t]):(a.fixed=s.length?s[0].fixed:a.fixed,a.fixedPosition=s.length?s[0].fixedPosition:a.fixedPosition,a.fixed?(n="right"===a.fixedPosition,!p||a.command&&!ae(i,a)||(n=!n),o=n?l[t][2]:l[t][0]):o=l[t][1]),s.length)for(r=ie(r,v),e=s.length-1;e>=0;e--)r=ie(s[e].visibleIndex,v)+r;o[r]=o[r]||[],o[r].push(a),h++}}),c.default.each(o,function(e){(0,g.orderEach)(d[e],function(t,n){o[e].unshift.apply(o[e],n)}),t=o[e].length,c.default.each(l[e],function(t,n){(0,g.orderEach)(n,function(t,n){o[e].push.apply(o[e],n)})}),r<e+1&&(r+=ne.call(i,o[e],_,"detailExpand",t)),a<e+1&&(a+=ne.call(i,o[e],_,P,t))}),o.push(function e(t,n,i){var o=[];return t[n=n||0]&&c.default.each(t[n],function(a,r){(r.ownerBand===i||(0,u.isDefined)(r.groupIndex))&&(r.isBand&&r.colspan?o.push.apply(o,e(t,n+1,r.index)):(!r.command||n<1)&&o.push(r))}),o}(o)),!h&&i._columns.length&&o[s].push({command:"empty"}),o},getInvisibleColumns:function(e,t){var n,i=this,o=[];return e=e||i._columns,c.default.each(e,function(e,a){if(a.ownerBand===t)return a.isBand?void((n=a.visible?i.getInvisibleColumns(i.getChildrenByBandColumn(a.index),a.index):i.getChildrenByBandColumn(a.index)).length&&(o.push(a),o=o.concat(n))):void(a.visible||o.push(a))}),o},getChooserColumns:function(e){var t=e?this.getColumns():this.getInvisibleColumns();return(0,l.grep)(t,function(e){return e.showInColumnChooser})},allowMoveColumn:function(e,t,n,o){var a=G(this,e,n),r=this._columns[a];return!(!r||!(r.allowReordering||r.allowGrouping||r.allowHiding))&&(n===o?n!==m&&((e=(0,u.isObject)(e)?e.columnIndex:e)!==(t=(0,u.isObject)(t)?t.columnIndex:t)&&e+1!==t):n===i&&o!==m||o===i?r&&r.allowGrouping:n!==m&&o!==m||r&&r.allowHiding)},moveColumn:function(e,t,n,o){var a,r,s,l=this,c={},d=G(l,e,n),h=G(l,t,o);if(d>=0){if(s=l._columns[d],t=(0,u.isObject)(t)?t.columnIndex:t,r=h>=0?l._columns[h].groupIndex:-1,(0,u.isDefined)(s.groupIndex)&&n===i&&(r>s.groupIndex&&r--,o!==i?c.groupIndex=void 0:(a=s.groupIndex,delete s.groupIndex,W(l))),o===i)c.groupIndex=function(e,t,n){var i,o=e.getGroupColumns();if(n>=0)for(i=0;i<o.length;i++)o[i].groupIndex>=n&&o[i].groupIndex++;else for(n=0,i=0;i<o.length;i++)n=Math.max(n,o[i].groupIndex+1);return n}(l,0,r),s.groupIndex=a;else if(t>=0){var p=l._columns[h];p&&s.ownerBand===p.ownerBand?re(l,s)^re(l,p)?c.visibleIndex=O:c.visibleIndex=p.visibleIndex:c.visibleIndex=O}var f=o!==m;s.visible!==f&&(c.visible=f),l.columnOption(s.index,c)}},changeSortOrder:function(e,t){var n=this,i={},o=n.option("sorting"),a=o&&o.mode,r="single"===a||!t,s="single"===a||"multiple"===a,l=n._columns[e];s&&l&&l.allowSorting&&(r&&!(0,u.isDefined)(l.groupIndex)&&c.default.each(n._columns,function(t){t!==e&&this.sortOrder&&!(0,u.isDefined)(this.groupIndex)&&(delete this.sortOrder,delete this.sortIndex)}),J(t)?l.sortOrder!==t&&(i.sortOrder=t):"none"===t?l.sortOrder&&(i.sortIndex=void 0,i.sortOrder=void 0):function(e){if("ctrl"===t){if(!("sortOrder"in e&&"sortIndex"in e))return!1;i.sortOrder=void 0,i.sortIndex=void 0}else(0,u.isDefined)(e.groupIndex)||(0,u.isDefined)(e.sortIndex)?i.sortOrder="desc"===e.sortOrder?"asc":"desc":i.sortOrder="asc"}(l)),n.columnOption(l.index,i)},getSortDataSourceParameters:function(e){var t=[],n=[];return c.default.each(this._columns,function(){(this.dataField||this.selector||this.calculateCellValue)&&(0,u.isDefined)(this.sortIndex)&&!(0,u.isDefined)(this.groupIndex)&&(t[this.sortIndex]=this)}),c.default.each(t,function(){var t=this&&this.sortOrder;if(J(t)){var i={selector:this.calculateSortValue||this.displayField||this.calculateDisplayValue||e&&this.selector||this.dataField||this.calculateCellValue,desc:"desc"===this.sortOrder};this.sortingMethod&&(i.compare=this.sortingMethod.bind(this)),n.push(i)}}),n.length>0?n:null},getGroupDataSourceParameters:function(e){var t=[];return c.default.each(this.getGroupColumns(),function(){var n=this.calculateGroupValue||this.displayField||this.calculateDisplayValue||e&&this.selector||this.dataField||this.calculateCellValue;if(n){var i={selector:n,desc:"desc"===this.sortOrder,isExpanded:!!this.autoExpandGroup};this.sortingMethod&&(i.compare=this.sortingMethod.bind(this)),t.push(i)}}),t.length>0?t:null},refresh:function(e){var t=[];return c.default.each(this._columns,function(){var n=this.lookup;if(n&&!this.calculateDisplayValue){if(e&&n.valueMap)return;n.update&&t.push(n.update())}}),k.when.apply(o.default,t).done(U.bind(null,this))},_updateColumnOptions:function(e){e.selector=e.selector||function(t){return e.calculateCellValue(t)},c.default.each(["calculateSortValue","calculateGroupValue","calculateDisplayValue"],function(t,n){var i=e[n];(0,u.isFunction)(i)&&!i.originalCallback&&(e[n]=function(t){return i.call(e,t)},e[n].originalCallback=i)}),(0,u.isString)(e.calculateDisplayValue)&&(e.displayField=e.calculateDisplayValue,e.calculateDisplayValue=s.default.compileGetter(e.displayField)),e.calculateDisplayValue&&(e.displayValueMap=e.displayValueMap||{}),N(e,e.dataType);var n=e.lookup;n&&N(n,n.dataType);var i=n?n.dataType:e.dataType;i&&(e.alignment=e.alignment||function(e,t){switch(e){case"number":return"right";case"boolean":return"center";default:return(0,d.getDefaultAlignment)(t)}}(i,this.option("rtlEnabled")),e.format=e.format||(0,v.getFormatByDataType)(i),e.customizeText=e.customizeText||function(e){if("boolean"===e)return function(e){return!0===e.value?this.trueText||"true":!1===e.value?this.falseText||"false":e.valueText||""}}(i),e.defaultFilterOperations=e.defaultFilterOperations||!n&&t[i]||[],(0,u.isDefined)(e.filterOperations)||C(e),e.defaultFilterOperation=e.filterOperations&&e.filterOperations[0]||"=",e.showEditorAlways=(0,u.isDefined)(e.showEditorAlways)?e.showEditorAlways:"boolean"===i&&!e.cellTemplate)},updateColumnDataTypes:function(e){var t=this,n=t.option("dateSerializationFormat"),i=t._getFirstItems(e),o=!1;return c.default.each(t._columns,function(e,a){var r,s,l,u,c,d=a.lookup;if((0,v.isDateType)(a.dataType)&&void 0===a.serializationFormat&&(a.serializationFormat=n),d&&(0,v.isDateType)(d.dataType)&&void 0===a.serializationFormat&&(d.serializationFormat=n),a.calculateCellValue&&i.length){if(!a.dataType||d&&!d.dataType){for(r=0;r<i.length;r++)s=a.calculateCellValue(i[r]),a.dataType||(c=H(s),(l=l||c)&&c&&l!==c&&(l="string")),d&&!d.dataType&&(c=H((0,v.getDisplayValue)(a,s,i[r])),(u=u||c)&&c&&u!==c&&(u="string"));(l||u)&&(l&&(a.dataType=l),d&&u&&(d.dataType=u),o=!0)}if(void 0===a.serializationFormat||d&&void 0===d.serializationFormat)for(r=0;r<i.length;r++)s=a.calculateCellValue(i[r],!0),void 0===a.serializationFormat&&(a.serializationFormat=z(a.dataType,s)),d&&void 0===d.serializationFormat&&(d.serializationFormat=z(d.dataType,d.calculateCellValue(s,!0)))}t._updateColumnOptions(a)}),o},_customizeColumns:function(e){var t=this,n=t.option("customizeColumns");n&&(e.some(function(e){return(0,u.isObject)(e.ownerBand)})&&K(t),n(e),Y(t,F(t,e)))},updateColumns:function(e,t){var n,i,o=this;if(t||o.updateSortingGrouping(e),!e||e.isLoaded()){n=e?e.sort()||[]:o.getSortDataSourceParameters(),i=e?e.group()||[]:o.getGroupDataSourceParameters(),o._customizeColumns(o._columns),K(o);var a=o._columns;return(0,k.when)(o.refresh(!0)).always(function(){o._columns===a&&(o._updateChanges(e,{sorting:n,grouping:i}),Z(o))})}},_updateChanges:function(e,t){var n=this;e&&(n.updateColumnDataTypes(e),n._dataSourceApplied=!0),(0,v.equalSortParameters)(t.sorting,n.getSortDataSourceParameters())||X(n,"sorting"),(0,v.equalSortParameters)(t.grouping,n.getGroupDataSourceParameters())||X(n,"grouping"),X(n,"columns")},updateSortingGrouping:function(e,t){var n,i,o,a,r,s=this,l=function(e,t,n){var i,o,a;c.default.each(e,function(e,r){if(delete r[n],t)for(i=0;i<t.length;i++)if(o=t[i].selector,a=t[i].isExpanded,o===r.dataField||o===r.name||o===r.selector||o===r.calculateCellValue||o===r.calculateGroupValue){r.sortOrder=r.sortOrder||(t[i].desc?"desc":"asc"),void 0!==a&&(r.autoExpandGroup=a),r[n]=i;break}})};e&&(n=(0,v.normalizeSortingInfo)(e.sort()),i=(0,v.normalizeSortingInfo)(e.group()),o=s.getGroupDataSourceParameters(),a=s.getSortDataSourceParameters(),s._columns.length||(c.default.each(i,function(e,t){s._columns.push(t.selector)}),c.default.each(n,function(e,t){s._columns.push(t.selector)}),Y(s,F(s,s._columns))),!t&&(o||s._hasUserState)||(0,v.equalSortParameters)(i,o)||(l(s._columns,i,"groupIndex"),t&&(X(s,"grouping"),r=!0)),!t&&(a||s._hasUserState)||(0,v.equalSortParameters)(n,a)||(l(s._columns,n,"sortIndex"),t&&(X(s,"sorting"),r=!0)),r&&Z(s))},updateFilter:function(e,t,n,i){var o,a;if(!Array.isArray(e))return e;for(n=(e=(0,h.extend)([],e)).columnIndex||n,i=e.filterValue||i,(0,u.isString)(e[0])?(o=this.columnOption(e[0]),t?(0,f.default)().forceIsoDateParsing&&o&&o.serializeValue&&e.length>1&&(e[e.length-1]=o.serializeValue(e[e.length-1],"filter")):o&&o.selector&&(e[0]=o.selector,e[0].columnIndex=o.index)):(0,u.isFunction)(e[0])&&(e[0].columnIndex=n,e[0].filterValue=i),a=0;a<e.length;a++)e[a]=this.updateFilter(e[a],t,n,i);return e},columnCount:function(){return this._columns?this._columns.length:0},columnOption:function(e,t,i,o){var a,r,s,l=this,d=(0,u.isString)(e)&&e.substr(0,e.indexOf(":")),p=l._columns.concat(l._commandColumns);if(void 0!==e){for(d&&(e=e.substr(d.length+1)),a=0;a<p.length;a++)if(d){if(""+p[a][d]===e){s=p[a];break}}else if(p[a].index===e||p[a].name===e||p[a].dataField===e||p[a].caption===e){s=p[a];break}if(s){if(1===arguments.length)return(0,h.extend)({},s);if((0,u.isString)(t)){if(2===arguments.length)return Q(l,s,t);r=r||n[t],Q(l,s,t,i,o)}else(0,u.isObject)(t)&&c.default.each(t,function(e,t){r=r||n[e],Q(l,s,e,t,o)});r&&K(l,s),Z(l)}}},clearSorting:function(){var e,t=this,n=this.columnCount();for(t.beginUpdate(),e=0;e<n;e++)t.columnOption(e,"sortOrder",void 0);t.endUpdate()},clearGrouping:function(){var e,t=this,n=this.columnCount();for(t.beginUpdate(),e=0;e<n;e++)t.columnOption(e,"groupIndex",void 0);t.endUpdate()},getVisibleIndex:function(e,t){var n,i=this.getVisibleColumns(t);for(n=i.length-1;n>=0;n--)if(i[n].index===e)return n;return-1},addColumn:function(e){var t=this,n=R(t,e),i=t._columns.length;t._columns.push(n),n.isBand&&(t._columns=F(t,t._columns),n=t._columns[i]),n.added=e,K(t,n),t.updateColumns(t._dataSource)},deleteColumn:function(e){var t,n=this,i=n.columnOption(e);i&&i.index>=0&&(n._columns.splice(i.index,1),i.isBand&&(t=n.getChildrenByBandColumn(i.index).map(function(e){return e.index}),n._columns=n._columns.filter(function(e){return t.indexOf(e.index)<0})),K(n),n.updateColumns(n._dataSource))},addCommandColumn:function(e){var t=this._commandColumns.filter(function(t){return t.command===e.command})[0];t||(t=e,this._commandColumns.push(t))},getUserState:function(){function e(e,o){void 0!==n[t][o]&&(i[t][o]=n[t][o])}var t,n=this._columns,i=[];for(t=0;t<n.length;t++)i[t]={},c.default.each(E,e);return i},setUserState:function(e){var t,n=this,i=n._dataSource,o=n.option("stateStoring.ignoreColumnOptionNames");o||(o=[],t=n.getCommonSettings(),n.option("columnChooser.enabled")||o.push("visible"),"none"===n.option("sorting.mode")&&o.push("sortIndex","sortOrder"),t.allowGrouping||o.push("groupIndex"),t.allowFixing||o.push("fixed","fixedPosition"),t.allowResizing||o.push("width","visibleWidth"),n.option("filterRow.visible")||o.push("filterValue","selectedFilterOperation"),n.option("headerFilter.visible")||o.push("filterValues","filterType")),n._columnsUserState=e,n._ignoreColumnOptionNames=o,n._hasUserState=!!e,i&&(i.sort(null),i.group(null)),X(n,"filtering"),n.init()},_createCalculatedColumnOptions:function(e,t){var n,i={},o=e.dataField;return(Array.isArray(e.columns)&&e.columns.length||e.isBand)&&(i.isBand=!0,o=null),o?((0,u.isString)(o)&&(n=s.default.compileGetter(o),i={caption:y.default.captionize(o),calculateCellValue:function(e,t){var i=n(e);return this.deserializeValue&&!t?this.deserializeValue(i):i},setCellValue:ee,parseValue:function(e){var t,n,i=this;return"number"===i.dataType?(0,u.isString)(e)&&i.format?(n=x.default.parse(e),(0,u.isNumeric)(n)&&(t=n)):(0,u.isDefined)(e)&&(0,u.isNumeric)(e)&&(t=Number(e)):"boolean"===i.dataType?e===i.trueText?t=!0:e===i.falseText&&(t=!1):(0,v.isDateType)(i.dataType)?(n=w.default.parse(e,i.format))&&(t=n):t=e,t}}),i.allowFiltering=!0):i.allowFiltering=!!e.calculateFilterExpression,i.calculateFilterExpression=function(){return T.default.defaultCalculateFilterExpression.apply(this,arguments)},i.createFilterExpression=function(e){var t;return this.calculateFilterExpression&&(t=this.calculateFilterExpression.apply(this,arguments)),(0,u.isFunction)(t)?t=[t,"=",!0]:t&&(t.columnIndex=this.index,t.filterValue=e),t},o&&(0,u.isString)(o)||(0,h.extend)(!0,i,{allowSorting:!1,allowGrouping:!1,calculateCellValue:function(){return null}}),t&&(i.allowFixing=!1),e.dataType&&(i.userDataType=e.dataType),!e.selectedFilterOperation||"defaultSelectedFilterOperation"in i||(i.defaultSelectedFilterOperation=e.selectedFilterOperation),e.lookup&&(i.lookup={calculateCellValue:function(e,t){return this.valueExpr&&(e=this.valueMap&&this.valueMap[e]),this.deserializeValue&&!t?this.deserializeValue(e):e},updateValueMap:function(){var e,t,n,i;if(this.valueMap={},this.items)for(e=s.default.compileGetter(this.valueExpr),t=s.default.compileGetter(this.displayExpr),i=0;i<this.items.length;i++){var o=t(n=this.items[i]);this.valueMap[e(n)]=o,this.dataType=this.dataType||H(o)}},update:function(){var e,t=this,n=t.dataSource;if(n)if((0,u.isFunction)(n)&&!(0,r.isWrapped)(n)&&(n=n({})),(0,u.isPlainObject)(n)||n instanceof S.default||Array.isArray(n)){if(t.valueExpr)return(e=(0,I.normalizeDataSourceOptions)(n)).paginate=!1,(n=new I.DataSource(e)).load().done(function(e){t.items=e,t.updateValueMap&&t.updateValueMap()})}else _.default.log("E1016");else t.updateValueMap&&t.updateValueMap()}}),i.resizedCallbacks=(0,a.default)(),e.resized&&i.resizedCallbacks.add(e.resized.bind(e)),c.default.each(i,function(e){var t;(0,u.isFunction)(i[e])&&0!==e.indexOf("default")&&(t="default"+e.charAt(0).toUpperCase()+e.substr(1),i[t]=i[e])}),i},getRowCount:function(){return this._rowCount=this._rowCount||(t=1,n=(e=this).getBandColumnsCache().columnParentByIndex,e._columns.forEach(function(e){var i=V(e.index,n),o=i.filter(function(e){return!e.visible});e.visible&&!o.length&&(t=Math.max(t,i.length+1))}),t),this._rowCount;var e,t,n},getRowIndex:function(e,t){var n=this._columns[e],i=this.getBandColumnsCache();return n&&(t||n.visible&&!n.command&&!(0,u.isDefined)(n.groupIndex))?V(e,i.columnParentByIndex).length:0},getChildrenByBandColumn:function(e,t){var n=function e(t,n,i){var o,a=[],r=n[t];if(r)for(var s=0;s<r.length;s++)o=r[s],(0,u.isDefined)(o.groupIndex)&&!o.showWhenGrouped||(a.push(o),i&&o.isBand&&(a=a.concat(e(o.index,n,i))));return a}(e,this.getBandColumnsCache().columnChildrenByIndex,!t);return t?n.filter(function(e){return e.visible&&!e.command}).sort(function(e,t){return e.visibleIndex-t.visibleIndex}):n},isParentBandColumn:function(e,t){var n=!1,i=this._columns[e],o=this.getBandColumnsCache(),a=i&&V(e,o.columnParentByIndex);return a&&c.default.each(a,function(e,i){if(i.index===t)return n=!0,!1}),n},isParentColumnVisible:function(e){var t=!0,n=this.getBandColumnsCache(),i=e>=0&&V(e,n.columnParentByIndex);return i&&c.default.each(i,function(e,n){return t=t&&n.visible}),t},getColumnId:function(e){return e.command&&e.type===P?ae(this,e)?"type:"+e.type:"command:"+e.command:e.index}}}())}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(25)),a=i(n(23)),r=n(4),s=i(n(1)),l=n(3),u=n(0),c=i(n(68)),d=i(n(132)),h=n(6);e.exports=a.default.Controller.inherit(function(){function e(t,n){if(t&&(t=t.slice(0),n))for(var i=0;i<t.length;i++)t[i]=(0,u.extend)({key:t[i].key},t[i]),t[i].items=e(t[i].items,n-1);return t}function t(e,t){var n={};return t&&((n={sorting:!a.default.equalSortParameters(e.sort,t.sort),grouping:!a.default.equalSortParameters(e.group,t.group,!0),groupExpanding:!a.default.equalSortParameters(e.group,t.group)||t.groupExpand,filtering:!a.default.equalFilterParameters(e.filter,t.filter),pageIndex:e.pageIndex!==t.pageIndex,skip:e.skip!==t.skip,take:e.take!==t.take}).reload=n.sorting||n.grouping||n.filtering,n.paging=n.pageIndex||n.take),n}function n(e){return e.cachedPagesData.pages[e.pageIndex]}return{init:function(e,t){var n=this;n._dataSource=e,n._remoteOperations=t||{},n._isLastPage=!e.isLastPage(),n._hasLastPage=!1,n._currentTotalCount=0,n._cachedPagesData={pages:{}},n._lastOperationTypes={},n.changed=(0,o.default)(),n.loadingChanged=(0,o.default)(),n.loadError=(0,o.default)(),n.customizeStoreLoadOptions=(0,o.default)(),n.changing=(0,o.default)(),n._dataChangedHandler=n._handleDataChanged.bind(n),n._dataLoadingHandler=n._handleDataLoading.bind(n),n._dataLoadedHandler=n._handleDataLoaded.bind(n),n._loadingChangedHandler=n._handleLoadingChanged.bind(n),n._loadErrorHandler=n._handleLoadError.bind(n),n._pushHandler=n._handlePush.bind(n),n._changingHandler=n._handleChanging.bind(n),e.on("changed",n._dataChangedHandler),e.on("customizeStoreLoadOptions",n._dataLoadingHandler),e.on("customizeLoadResult",n._dataLoadedHandler),e.on("loadingChanged",n._loadingChangedHandler),e.on("loadError",n._loadErrorHandler),e.on("changing",n._changingHandler),e.store().on("push",n._pushHandler),(0,l.each)(e,function(e,t){!n[e]&&s.default.isFunction(t)&&(n[e]=function(){return this._dataSource[e].apply(this._dataSource,arguments)})})},remoteOperations:function(){return this._remoteOperations},dispose:function(e){var t=this,n=t._dataSource;n.off("changed",t._dataChangedHandler),n.off("customizeStoreLoadOptions",t._dataLoadingHandler),n.off("customizeLoadResult",t._dataLoadedHandler),n.off("loadingChanged",t._loadingChangedHandler),n.off("loadError",t._loadErrorHandler),n.off("changing",t._changingHandler),n.store().off("push",t._pushHandler),e||n.dispose()},refresh:function(e,t,n){var i=this,o=i._dataSource;(t||n.reload)&&(i._currentTotalCount=0,i._isLastPage=!o.paginate(),i._hasLastPage=i._isLastPage)},resetCache:function(){this._cachedStoreData=void 0,this._cachedPagingData=void 0},resetPagesCache:function(){this._cachedPagesData={pages:{}}},_needClearStoreDataCache:function(){var e=this.remoteOperations(),n=t(this._lastLoadOptions||{},{});return!Object.keys(e).every(function(t){return!n[t]||!e[t]})},push:function(e,t){var n=this.store();this._needClearStoreDataCache()&&(this._cachedStoreData=void 0),this._cachedPagingData=void 0,this.resetPagesCache(),this._cachedStoreData&&d.default.applyBatch(n,this._cachedStoreData,e),t||this._applyBatch(e)},getDataIndexGetter:function(){var e=this;if(!this._dataIndexGetter){var t,n=this.store();this._dataIndexGetter=function(i){var o=e._cachedStoreData||[];if(!t){t={};for(var a=0;a<o.length;a++)t[(0,r.getKeyHash)(n.keyOf(o[a]))]=a}return t[(0,r.getKeyHash)(n.keyOf(i))]}}return this._dataIndexGetter},_getKeyInfo:function(){return this.store()},_applyBatch:function(e){var t=this._getKeyInfo(),n=this._dataSource,i=a.default.normalizeSortingInfo(this.group()).length;e=e.filter(function(e){return!n.paginate()||"insert"!==e.type||void 0!==e.index}),d.default.applyBatch(t,this._items,e,i,!0),d.default.applyBatch(t,n.items(),e,i,!0),e.splice(0,e.length)},_handlePush:function(e){this.push(e,!0)},_handleChanging:function(e){this.changing.fire(e),this._applyBatch(e.changes)},_customizeRemoteOperations:function(e,t,n){var i=this,o=i._cachedStoreData,a=i._cachedPagingData,r=i._cachedPagesData;e.storeLoadOptions.filter&&!e.remoteOperations.filtering&&(e.remoteOperations={}),t?(o=void 0,a=void 0,r={pages:{}}):(n.reload?(a=void 0,r={pages:{}}):(n.take||n.groupExpanding)&&(r={pages:{}}),(0,l.each)(n,function(t,n){n&&e.remoteOperations[t]&&(o=void 0,a=void 0)})),a&&(e.remoteOperations.paging=!1),e.cachedStoreData=o,e.cachedPagingData=a,e.cachedPagesData=r,e.isCustomLoading||(i._cachedStoreData=o,i._cachedPagingData=a,i._cachedPagesData=r)},_handleDataLoading:function(e){var n,i,o=this,a=o._dataSource,r=o._lastLoadOptions;o.customizeStoreLoadOptions.fire(e),e.delay=this.option("loadingTimeout"),e.originalStoreLoadOptions=e.storeLoadOptions,e.remoteOperations=(0,u.extend)({},this.remoteOperations());var s=!o.isLoaded()&&!o._isRefreshing;if(o.option("integrationOptions.renderedOnServer")&&!o.isLoaded()&&(e.delay=void 0),i=t(n=(0,u.extend)({pageIndex:o.pageIndex()},e.storeLoadOptions),r),o._customizeRemoteOperations(e,s,i),!e.isCustomLoading){var l=o._isRefreshing;e.pageIndex=a.pageIndex(),e.lastLoadOptions=n,e.operationTypes=i,o._loadingOperationTypes=i,o._isRefreshing=!0,(0,h.when)(l||o._isRefreshed||o.refresh(e,s,i)).done(function(){o._lastOperationId===e.operationId&&(o._isRefreshed=!0,o.load().always(function(){o._isRefreshed=!1}))}).fail(function(){a.cancel(e.operationId)}).always(function(){o._isRefreshing=!1}),a.cancel(o._lastOperationId),o._lastOperationId=e.operationId,o._isRefreshing&&a.cancel(o._lastOperationId)}this._handleDataLoadingCore(e)},_handleDataLoadingCore:function(e){var t=e.remoteOperations;e.loadOptions={};var i=e.cachedPagesData.extra,o={filter:!t.filtering,sort:!t.sorting,group:!t.grouping,summary:!t.summary,skip:!t.paging,take:!t.paging,requireTotalCount:i&&"totalCount"in i||!t.paging};(0,l.each)(e.storeLoadOptions,function(t,n){o[t]&&(e.loadOptions[t]=n,delete e.storeLoadOptions[t])}),i&&(e.extra=i),e.data=n(e)||e.cachedStoreData},_handleDataLoaded:function(t){var i=this,o=t.loadOptions,r=t.remoteOperations&&!t.remoteOperations.paging,l=t.cachedPagesData,d=!1!==this.option("cacheEnabled")&&t.storeLoadOptions,p=d&&!t.isCustomLoading&&l&&(!r||t.storeLoadOptions.group)&&!this.option("legacyRendering"),f=d&&r,g=f&&!t.isCustomLoading;if(o){t.lastLoadOptions&&(this._lastLoadOptions=t.lastLoadOptions,Object.keys(t.operationTypes).forEach(function(e){i._lastOperationTypes[e]=i._lastOperationTypes[e]||t.operationTypes[e]})),r&&(t.skip=o.skip,t.take=o.take,delete o.skip,delete o.take),o.group&&(o.group=t.group||o.group);var _=a.default.normalizeSortingInfo(t.storeLoadOptions.group||o.group).length;p&&n(t)||(f&&t.cachedPagingData?t.data=e(t.cachedPagingData,_):(g&&(this._cachedStoreData?t.mergeStoreLoadData&&(t.data=this._cachedStoreData=this._cachedStoreData.concat(t.data)):this._cachedStoreData=e(t.data,a.default.normalizeSortingInfo(t.storeLoadOptions.group).length)),new c.default(t.data).load(o).done(function(n){t.data=n,g&&(i._cachedPagingData=e(t.data,_))}).fail(function(e){t.data=(new h.Deferred).reject(e)})),o.requireTotalCount&&r&&(t.extra=s.default.isPlainObject(t.extra)?t.extra:{},t.extra.totalCount=t.data.length),this._handleDataLoadedCore(t),p&&(l.extra=l.extra||(0,u.extend)({},t.extra),(0,h.when)(t.data).done(function(n){!function(e,t){var n=e.pageIndex;void 0!==n&&(e.cachedPagesData.pages[n]=t)}(t,e(n,_))}))),t.storeLoadOptions=t.originalStoreLoadOptions}else this._dataSource.cancel(t.operationId)},_handleDataLoadedCore:function(e){e.remoteOperations&&!e.remoteOperations.paging&&Array.isArray(e.data)&&(void 0!==e.skip&&(e.data=e.data.slice(e.skip)),void 0!==e.take&&(e.data=e.data.slice(0,e.take)))},_handleLoadingChanged:function(e){this.loadingChanged.fire(e)},_handleLoadError:function(e){this.changed.fire({changeType:"loadError",error:e}),this.loadError.fire(e)},_handleDataChanged:function(e){var t,n=this,i=n._dataSource,o=!1,a=n.itemsCount();n._isLastPage=!a||!n.pageSize()||a<n.pageSize(),n._isLastPage&&(n._hasLastPage=!0),i.totalCount()>=0?i.pageIndex()>=n.pageCount()&&(i.pageIndex(n.pageCount()-1),n.pageIndex(i.pageIndex()),i.reload(),o=!0):(t=i.pageIndex()*n.pageSize()+a,n._currentTotalCount=Math.max(n._currentTotalCount,t),0===a&&i.pageIndex()>=n.pageCount()&&(i.pageIndex(n.pageCount()-1),"infinite"!==n.option("scrolling.mode")&&(i.load(),o=!0))),o||(n._operationTypes=n._lastOperationTypes,n._lastOperationTypes={},n.component._optionCache={},n.changed.fire(e),n.component._optionCache=void 0)},_scheduleCustomLoadCallbacks:function(e){var t=this;t._isCustomLoading=!0,e.always(function(){t._isCustomLoading=!1})},loadingOperationTypes:function(){return this._loadingOperationTypes},operationTypes:function(){return this._operationTypes},isLastPage:function(){return this._isLastPage},totalCount:function(){return parseInt(this._currentTotalCount||this._dataSource.totalCount())},itemsCount:function(){return this._dataSource.items().length},totalItemsCount:function(){return this.totalCount()},pageSize:function(){var e=this._dataSource;return arguments.length||e.paginate()?e.pageSize.apply(e,arguments):0},pageCount:function(){var e=this.totalItemsCount(),t=this.pageSize();return t&&e>0?Math.max(1,Math.ceil(e/t)):1},hasKnownLastPage:function(){return this._hasLastPage||this._dataSource.totalCount()>=0},loadFromStore:function(e){var t=this._dataSource,n=new h.Deferred;if(t)return t.store().load(e).done(function(e,t){e&&!Array.isArray(e)&&Array.isArray(e.data)&&(t=e,e=e.data),n.resolve(e,t)}).fail(n.reject),n},isCustomLoading:function(){return!!this._isCustomLoading},load:function(e){var t,n,i,o=this,a=o._dataSource,u=new h.Deferred;return e?(t=a.store(),i=a.loadOptions(),n={storeLoadOptions:e,isCustomLoading:!0},(0,l.each)(t._customLoadOptions()||[],function(e,t){t in n.storeLoadOptions||(n.storeLoadOptions[t]=i[t])}),o._scheduleCustomLoadCallbacks(u),a._scheduleLoadCallbacks(u),o._handleDataLoading(n),function(e,t){s.default.isDefined(t)?(0,r.executeAsync)(e,t):e()}(function(){return a.store()?void(0,h.when)(n.data||o.loadFromStore(n.storeLoadOptions)).done(function(i,a){n.data=i,n.extra=a||{},o._handleDataLoaded(n),e.requireTotalCount&&void 0===n.extra.totalCount&&(n.extra.totalCount=t.totalCount(n.storeLoadOptions)),(0,h.when)(n.data,n.extra.totalCount).done(function(e,t){n.extra.totalCount=t,u.resolve(e,n.extra)}).fail(u.reject)}).fail(u.reject):u.reject("canceled")},o.option("loadingTimeout")),u.fail(function(){o.fireEvent("loadError",arguments)}).promise()):a.load()},reload:function(e){return e?this._dataSource.reload():this._dataSource.load()},getCachedStoreData:function(){return this._cachedStoreData}}}())},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(38)),r=i(n(36)),s=i(n(68)),l=i(n(135)),u=i(n(18)),c=n(4),d=n(3),h=i(n(1)),p=n(0),f=i(n(87)),g=n(6),_=n(297);e.exports={defaultOptions:function(){return{loadingTimeout:0,dataSource:null,cacheEnabled:!0,repaintChangesOnly:!1,highlightChanges:!1,onDataErrorOccurred:null,remoteOperations:"auto",paging:{enabled:!0,pageSize:void 0,pageIndex:void 0}}},controllers:{data:a.default.Controller.inherit({}).include(f.default).inherit(function(){var e=function(e,t,n){var i=e._dataSource;return i?void 0!==n?i[t]()!==n?("pageSize"===t&&i.pageIndex(0),i[t](n),e._skipProcessingPagingChange=!0,e.option("paging."+t,n),e._skipProcessingPagingChange=!1,i["pageIndex"===t?"load":"reload"]().done(e.pageChanged.fire.bind(e.pageChanged))):(0,g.Deferred)().resolve().promise():i[t]():0},t={init:function(){var e=this;e._items=[],e._columnsController=e.getController("columns"),e._columnsChangedHandler=e._handleColumnsChanged.bind(e),e._dataChangedHandler=e._handleDataChanged.bind(e),e._loadingChangedHandler=e._handleLoadingChanged.bind(e),e._loadErrorHandler=e._handleLoadError.bind(e),e._customizeStoreLoadOptionsHandler=e._handleCustomizeStoreLoadOptions.bind(e),e._changingHandler=e._handleChanging.bind(e),e._columnsController.columnsChanged.add(e._columnsChangedHandler),e._isLoading=!1,e._isCustomLoading=!1,e._repaintChangesOnly=void 0,e._changes=[],e.createAction("onDataErrorOccurred"),e.dataErrorOccurred.add(function(t){return e.executeAction("onDataErrorOccurred",{error:t})}),e._refreshDataSource()},callbackNames:function(){return["changed","loadingChanged","dataErrorOccurred","pageChanged","dataSourceChanged"]},callbackFlags:function(e){if("dataErrorOccurred"===e)return{stopOnFalse:!0}},publicMethods:function(){return["beginCustomLoading","endCustomLoading","refresh","filter","clearFilter","getCombinedFilter","keyOf","byKey","getDataByKeys","pageIndex","pageSize","pageCount","totalCount","_disposeDataSource","getKeyByRowIndex","getRowIndexByKey","getDataSource","getVisibleRows","repaintRows"]},reset:function(){this._columnsController.reset(),this._items=[],this._refreshDataSource()},optionChanged:function(e){function t(){e.handled=!0}var n,i=this;if("dataSource"===e.name&&e.name===e.fullName&&(e.value===e.previousValue||i.option("columns")&&Array.isArray(e.value)&&Array.isArray(e.previousValue))){if(e.value!==e.previousValue){var o=i.store();o&&(o._array=e.value)}return t(),void i.refresh(i.option("repaintChangesOnly"))}switch(e.name){case"cacheEnabled":case"repaintChangesOnly":case"highlightChanges":case"loadingTimeout":case"remoteOperations":t();break;case"keyExpr":case"dataSource":case"scrolling":t(),i.skipProcessingPagingChange(e.fullName)||i.reset();break;case"paging":(n=i.dataSource())&&i._setPagingOptions(n)&&n.load().done(i.pageChanged.fire.bind(i.pageChanged)),t();break;case"rtlEnabled":i.reset();break;case"columns":(n=i.dataSource())&&n.isLoading()&&e.name===e.fullName&&n.load();break;default:i.callBase(e)}},isReady:function(){return!this._isLoading},getDataSource:function(){return this._dataSource&&this._dataSource._dataSource},getCombinedFilter:function(e){return this.combinedFilter(void 0,e)},combinedFilter:function(e,t){var n,i=this,o=i._dataSource,a=i._columnsController;return o&&(void 0===e&&(e=o.filter()),(n=i._calculateAdditionalFilter())&&(a.isDataSourceApplied()||a.isAllDataTypesDefined())&&(e=r.default.combineFilters([n,e])),e=a.updateFilter(e,t||o.remoteOperations().filtering)),e},waitReady:function(){return this._updateLockCount?(this._readyDeferred=new g.Deferred,this._readyDeferred):(0,g.when)()},_endUpdateCore:function(){var e=this._changes;if(e.length){this._changes=[];var t=e.every(function(e){return e.repaintChangesOnly});this.updateItems(1===e.length?e[0]:{repaintChangesOnly:t})}this._readyDeferred&&(this._readyDeferred.resolve(),this._readyDeferred=null)},_handleCustomizeStoreLoadOptions:function(e){var t=this._columnsController,n=this._dataSource,i=e.storeLoadOptions;e.isCustomLoading&&!i.isLoadingAll||(i.filter=this.combinedFilter(i.filter),t.isDataSourceApplied()||t.updateColumnDataTypes(n),this._columnsUpdating=!0,t.updateSortingGrouping(n,!this._isFirstLoading),this._columnsUpdating=!1,i.sort=t.getSortDataSourceParameters(),i.group=t.getGroupDataSourceParameters(),n.sort(i.sort),n.group(i.group),i.sort=t.getSortDataSourceParameters(!n.remoteOperations().sorting),e.group=t.getGroupDataSourceParameters(!n.remoteOperations().grouping))},_handleColumnsChanged:function(e){var t,n,i,o=this,a=e.changeTypes,s=e.optionNames;if(a.sorting||a.grouping)o._dataSource&&!o._columnsUpdating&&(o._dataSource.group(o._columnsController.getGroupDataSourceParameters()),o._dataSource.sort(o._columnsController.getSortDataSourceParameters()),o.reload());else if(a.columns&&((s.filterValues||s.filterValue||s.selectedFilterOperation)&&(t=o._columnsController.columnOption(e.columnIndex,"filterValue"),n=o._columnsController.columnOption(e.columnIndex,"filterValues"),(Array.isArray(n)||void 0===e.columnIndex||h.default.isDefined(t)||!s.selectedFilterOperation||s.filterValue)&&(o._applyFilter(),i=!0)),o._needApplyFilter||r.default.checkChanges(s,["width","visibleWidth","filterValue","bufferedFilterValue","selectedFilterOperation","filterValues","filterType"])||o._columnsController.columnsChanged.add(function e(){o._columnsController.columnsChanged.remove(e),o.updateItems()}),h.default.isDefined(s.visible))){var l=o._columnsController.columnOption(e.columnIndex);l&&(h.default.isDefined(l.filterValue)||h.default.isDefined(l.filterValues))&&(o._applyFilter(),i=!0)}!i&&a.filtering&&o.reload()},_handleDataChanged:function(e){var t=this,n=t._dataSource,i=t._columnsController,o=!1;this._isFirstLoading=!1,n&&!t._isDataSourceApplying&&(t._isDataSourceApplying=!0,(0,g.when)(t._columnsController.applyDataSource(n)).done(function(){t._isLoading&&t._handleLoadingChanged(!1),o&&e&&e.isDelayed&&(e.isDelayed=!1),t._isDataSourceApplying=!1;var n=t._needApplyFilter;t._needApplyFilter=!1,n&&!t._isAllDataTypesDefined&&function(){var e=t._calculateAdditionalFilter();return e&&e.length}()?(u.default.log("W1005",t.component.NAME),t._applyFilter()):t.updateItems(e,!0)}).fail(function(){t._isDataSourceApplying=!1}),t._isDataSourceApplying&&(o=!0,t._handleLoadingChanged(!0)),t._needApplyFilter=!t._columnsController.isDataSourceApplied(),t._isAllDataTypesDefined=i.isAllDataTypesDefined())},_handleLoadingChanged:function(e){this._isLoading=e,this._fireLoadingChanged()},_handleLoadError:function(e){this.dataErrorOccurred.fire(e)},fireError:function(){this.dataErrorOccurred.fire(u.default.Error.apply(u.default,arguments))},_setPagingOptions:function(e){var t=this.option("paging.pageIndex"),n=this.option("paging.pageSize"),i=this.option("paging.enabled"),o=this.option("scrolling.mode"),a="infinite"===o,r=i||"virtual"===o||a,s=!1;return e.requireTotalCount(!a),void 0!==i&&e.paginate()!==r&&(e.paginate(r),s=!0),void 0!==n&&e.pageSize()!==n&&(e.pageSize(n),s=!0),void 0!==t&&e.pageIndex()!==t&&(e.pageIndex(t),s=!0),s},_getSpecificDataSourceOption:function(){var e=this.option("dataSource");return Array.isArray(e)?{store:{type:"array",data:e,key:this.option("keyExpr")}}:e},_initDataSource:function(){var e=this,t=this.option("dataSource"),n=this._dataSource;e.callBase(),t=e._dataSource,e._isFirstLoading=!0,t?(e._setPagingOptions(t),e.setDataSource(t)):n&&e.updateItems()},_loadDataSource:function(){var e=this._dataSource,t=new g.Deferred;return(0,g.when)(this._columnsController.refresh(!0)).always(function(){e?e.load().done(t.resolve).fail(t.reject):t.resolve()}),t.promise()},_beforeProcessItems:function(e){return e.slice(0)},getRowIndexDelta:function(){return 0},_processItems:function(e,t){var n=this,i=n.getRowIndexDelta(),o=n._columnsController.getVisibleColumns(null,"loadingAll"===t),a=n._items,r={visibleColumns:o,dataIndex:"append"===t&&a.length>0?a[a.length-1].dataIndex+1:0},s=[];return(0,d.each)(e,function(e,t){h.default.isDefined(t)&&(r.rowIndex=e-i,t=n._processItem(t,r),s.push(t))}),s},_processItem:function(e,t){return e=this._generateDataItem(e,t),(e=this._processDataItem(e,t)).dataIndex=t.dataIndex++,e},_generateDataItem:function(e){return{rowType:"data",data:e,key:this.keyOf(e)}},_processDataItem:function(e,t){return e.values=this.generateDataValues(e.data,t.visibleColumns),e},generateDataValues:function(e,t,n){for(var i,o,a=[],r=0;r<t.length;r++)o=n?void 0:null,(i=t[r]).command||(i.calculateCellValue?o=i.calculateCellValue(e):i.dataField&&(o=e[i.dataField])),a.push(o);return a},_applyChange:function(e){var t=this;"update"===e.changeType?t._applyChangeUpdate(e):t.items().length&&e.repaintChangesOnly&&"refresh"===e.changeType?t._applyChangesOnly(e):"refresh"===e.changeType&&t._applyChangeFull(e)},_applyChangeFull:function(e){this._items=e.items.slice(0)},_applyChangeUpdate:function(e){var t,n=this,i=e.items,o=e.rowIndices.slice(0),a=n.getRowIndexDelta(),r=n.option("repaintChangesOnly"),s=-1,l=0;o.sort(function(e,t){return e-t});for(var u=0;u<o.length;u++)o[u]<0&&(o.splice(u,1),u--);e.items=[],e.rowIndices=[],e.columnIndices=[],e.changeTypes=[];var h=function(e,t,n){var i=e&&t&&(0,c.equalByValue)(e.key,t.key);return i&&n&&(i=e.rowType===t.rowType&&("detail"!==t.rowType||e.isEditing===t.isEditing)),i};(0,d.each)(o,function(o,u){var c,d,p,f,g,_;if(s!==(u+=l+a)){if(s=u,c=n._items[u],p=n._items[u+1],d=i[u],f=i[u+1],g=h(c,p)||h(d,f),d&&(d.rowIndex=u,e.items.push(d)),c&&d&&h(c,d,g))t="update",n._items[u]=d,c.visible!==d.visible?e.items.splice(-1,1,{visible:d.visible}):r&&!e.isFullUpdate&&(d.cells=c.cells,_=n._getChangedColumnIndices(c,d,u));else if(d&&!c||f&&h(c,f,g))t="insert",n._items.splice(u,0,d),l++;else if(c&&!d||p&&h(d,p,g))t="remove",n._items.splice(u,1),l--,s=-1;else{if(!d)return;t="update",n._items[u]=d}e.rowIndices.push(u-a),e.changeTypes.push(t),e.columnIndices.push(_)}})},_isCellChanged:function(e,t,n,i,o){function a(e,t){return!!e.modifiedValues&&void 0!==e.modifiedValues[t]}return JSON.stringify(e.values[i])!==JSON.stringify(t.values[i])||a(e,i)!==a(t,i)},_getChangedColumnIndices:function(e,t,n,i){if(e.rowType===t.rowType&&"group"!==t.rowType&&"groupFooter"!==t.rowType){for(var o=[],a=0;a<e.values.length;a++)if(this._isCellChanged(e,t,n,a,i))o.push(a);else{var r=e.cells&&e.cells[a];r&&r.update&&r.update(t)}return e.update&&e.update(t),o}},_applyChangesOnly:function(e){function t(e){if(e)return e.rowType+","+JSON.stringify(e.key)}var n=this,i=[],o=[],a=[],r=[],s={},l=this._items.slice();e.items.forEach(function(e,n){var i=t(e);s[i]=n,e.rowIndex=n});var u=(0,_.findChanges)(l,e.items,t,function(e,t){return JSON.stringify(e.values)===JSON.stringify(t.values)&&e.modified===t.modified&&e.inserted===t.inserted&&e.removed===t.removed&&("group"!==e.rowType&&"groupFooter"!==e.rowType||e.isExpanded===t.isExpanded&&JSON.stringify(e.summaryCells)===JSON.stringify(t.summaryCells))&&(e.cells&&(e.update&&e.update(t),e.cells.forEach(function(e){e&&e.update&&e.update(t)})),!0)});return u?(u.forEach(function(e){switch(e.type){case"update":var t=e.index,s=e.data,l=e.oldItem,u=n._getChangedColumnIndices(l,s,t,!0);i.push(t),a.push("update"),r.push(s),n._items[t]=s,s.cells=l.cells,s.oldValues=l.values,o.push(u);break;case"insert":i.push(e.index),a.push("insert"),r.push(e.data),o.push(void 0),n._items.splice(e.index,0,e.data);break;case"remove":i.push(e.index),a.push("remove"),n._items.splice(e.index,1),r.push(e.oldItem),o.push(void 0)}}),e.repaintChangesOnly=!0,e.changeType="update",e.rowIndices=i,e.columnIndices=o,e.changeTypes=a,e.items=r,l.length&&(e.isLiveUpdate=!0),void this._correctRowIndices(function(e){var n=t(l[e]),i=s[n];return i>=0?i-e:0})):void this._applyChangeFull(e)},_correctRowIndices:c.noop,_updateItemsCore:function(e){var t,n,i=this,o=i._dataSource,a=e.changeType||"refresh";e.changeType=a,o?(t=e.items||o.items(),t=i._beforeProcessItems(t),t=i._processItems(t,a),e.items=t,n=i._items.length===t.length&&i._items,i._applyChange(e),(0,d.each)(i._items,function(e,t){t.rowIndex=e,n&&(t.cells=n[e].cells)})):i._items=[]},_handleChanging:function(e){var t=this.getVisibleRows();this.dataSource()&&e.changes.forEach(function(e){if("insert"===e.type&&e.index>=0){for(var n,i=0,o=0;o<e.index;o++)!(n=t[o])||"data"!==n.rowType&&"group"!==n.rowType||i++;e.index=i}})},updateItems:function(e,t){e=e||{};var n=this;if(void 0!==n._repaintChangesOnly)e.repaintChangesOnly=n._repaintChangesOnly;else if(e.changes)e.repaintChangesOnly=n.option("repaintChangesOnly");else if(t){var i=n.dataSource().operationTypes();e.repaintChangesOnly=i&&!i.grouping&&!i.filtering&&n.option("repaintChangesOnly"),e.isDataChanged=!0,i&&(i.reload||i.paging||i.groupExpanding)&&(e.needUpdateDimensions=!0)}return n._updateLockCount?void n._changes.push(e):(n._updateItemsCore(e),void(e.cancel||n._fireChanged(e)))},loadingOperationTypes:function(){var e=this.dataSource();return e&&e.loadingOperationTypes()||{}},_fireChanged:function(e){var t=this;(0,c.deferRender)(function(){t.changed.fire(e)})},isLoading:function(){return this._isLoading||this._isCustomLoading},_fireLoadingChanged:function(){this.loadingChanged.fire(this.isLoading(),this._loadingText)},_calculateAdditionalFilter:function(){return null},_applyFilter:function(){var e=this,t=e._dataSource;if(t)return t.pageIndex(0),e.reload().done(e.pageChanged.fire.bind(e.pageChanged))},filter:function(e){var t=this._dataSource,n=t.filter();return 0===arguments.length?t?t.filter():void 0:(e=arguments.length>1?Array.prototype.slice.call(arguments,0):e,void(r.default.equalFilterParameters(n,e)||(t&&t.filter(e),this._applyFilter())))},clearFilter:function(e){var t=this,n=t._columnsController,i=function(e){var t,i=n.columnCount();for(t=0;t<i;t++)n.columnOption(t,e,void 0)};if(t.component.beginUpdate(),arguments.length>0)switch(e){case"dataSource":t.filter(null);break;case"search":t.searchByText("");break;case"header":i("filterValues");break;case"row":i("filterValue")}else t.filter(null),t.searchByText(""),i("filterValue"),i("filterValues");t.component.endUpdate()},_fireDataSourceChanged:function(){var e=this;e.changed.add(function t(){e.changed.remove(t),e.dataSourceChanged.fire()})},_getDataSourceAdapter:c.noop,_createDataSourceAdapterCore:function(e,t){var n=this._getDataSourceAdapter().create(this.component);return n.init(e,t),n},isLocalStore:function(e){return(e=e||this.store())instanceof s.default},isCustomStore:function(e){return(e=e||this.store())instanceof l.default},_createDataSourceAdapter:function(e){var t=this.option("remoteOperations"),n=e.store(),i={filtering:!0,sorting:!0,paging:!0,grouping:!0,summary:!0};return t&&t.groupPaging&&(t=(0,p.extend)({},i,t)),"auto"===t&&(t=this.isLocalStore(n)||this.isCustomStore(n)?{}:{filtering:!0,sorting:!0,paging:!0}),!0===t&&(t=i),this._createDataSourceAdapterCore(e,t)},setDataSource:function(e){var t=this,n=t._dataSource;!e&&n&&(n.changed.remove(t._dataChangedHandler),n.loadingChanged.remove(t._loadingChangedHandler),n.loadError.remove(t._loadErrorHandler),n.customizeStoreLoadOptions.remove(t._customizeStoreLoadOptionsHandler),n.changing.remove(t._changingHandler),n.cancelAll(),n.dispose(t._isSharedDataSource)),e&&(e=t._createDataSourceAdapter(e)),t._dataSource=e,e&&(t._fireDataSourceChanged(),t._isLoading=!e.isLoaded(),t._needApplyFilter=!0,t._isAllDataTypesDefined=t._columnsController.isAllDataTypesDefined(),e.changed.add(t._dataChangedHandler),e.loadingChanged.add(t._loadingChangedHandler),e.loadError.add(t._loadErrorHandler),e.customizeStoreLoadOptions.add(t._customizeStoreLoadOptionsHandler),e.changing.add(t._changingHandler))},items:function(){return this._items},isEmpty:function(){return!this.items().length},pageCount:function(){return this._dataSource?this._dataSource.pageCount():1},dataSource:function(){return this._dataSource},store:function(){var e=this._dataSource;return e&&e.store()},loadAll:function(e){var t=this,n=new g.Deferred,i=t._dataSource;if(i)if(e){var o={data:e,isCustomLoading:!0,storeLoadOptions:{isLoadingAll:!0},loadOptions:{filter:t.getCombinedFilter(),group:i.group(),sort:i.sort()}};i._handleDataLoaded(o),(0,g.when)(o.data).done(function(e){e=t._beforeProcessItems(e),n.resolve(t._processItems(e,"loadingAll"),o.extra&&o.extra.summary)}).fail(n.reject)}else if(i.isLoading())n.reject();else{var a=(0,p.extend)({},i.loadOptions(),{isLoadingAll:!0,requireTotalCount:!1});i.load(a).done(function(e,i){e=t._beforeProcessItems(e),e=t._processItems(e,"loadingAll"),n.resolve(e,i&&i.summary)}).fail(n.reject)}else n.resolve([]);return n},getKeyByRowIndex:function(e){var t=this.items()[e];if(t)return t.key},getRowIndexByKey:function(e){return r.default.getIndexByKey(e,this.items())},keyOf:function(e){var t=this.store();if(t)return t.keyOf(e)},byKey:function(e){var t,n=this.store(),i=this.getRowIndexByKey(e);if(n)return i>=0&&(t=(new g.Deferred).resolve(this.items()[i].data)),t||n.byKey(e)},key:function(){var e=this.store();if(e)return e.key()},getRowIndexOffset:function(){return 0},getDataByKeys:function(e){var t=this,n=new g.Deferred,i=[],a=[];return(0,d.each)(e,function(e,n){i.push(t.byKey(n).done(function(t){a[e]=t}))}),g.when.apply(o.default,i).always(function(){n.resolve(a)}),n},pageIndex:function(t){return e(this,"pageIndex",t)},pageSize:function(t){return e(this,"pageSize",t)},beginCustomLoading:function(e){this._isCustomLoading=!0,this._loadingText=e||"",this._fireLoadingChanged()},endCustomLoading:function(){this._isCustomLoading=!1,this._loadingText=void 0,this._fireLoadingChanged()},refresh:function(e){!0===e?e={reload:!0,changesOnly:!0}:e||(e={lookup:!0,selection:!0,reload:!0});var t=this,n=t.getDataSource(),i=e.changesOnly,o=new g.Deferred,a=function(){t._repaintChangesOnly=!!i};return(0,g.when)(!e.lookup||t._columnsController.refresh()).always(function(){e.load||e.reload?(n&&n.on("customizeLoadResult",a),(0,g.when)(t.reload(e.reload,i)).always(function(){n&&n.off("customizeLoadResult",a),t._repaintChangesOnly=void 0}).done(o.resolve).fail(o.reject)):(t.updateItems({repaintChangesOnly:e.changesOnly}),o.resolve())}),o.promise()},getVisibleRows:function(){return this.items()},_disposeDataSource:function(){this.setDataSource(null)},repaintRows:function(e,t){((e=Array.isArray(e)?e:[e]).length>1||h.default.isDefined(e[0]))&&this.updateItems({changeType:"update",rowIndices:e,isFullUpdate:!t})},skipProcessingPagingChange:function(e){return this._skipProcessingPagingChange&&("paging.pageIndex"===e||"paging.pageSize"===e)},getUserState:function(){return{searchText:this.option("searchPanel.text"),pageIndex:this.pageIndex(),pageSize:this.pageSize()}},getCachedStoreData:function(){return this._dataSource&&this._dataSource.getCachedStoreData()}};return r.default.proxyMethod(t,"load"),r.default.proxyMethod(t,"reload"),r.default.proxyMethod(t,"push"),r.default.proxyMethod(t,"itemsCount",0),r.default.proxyMethod(t,"totalItemsCount",0),r.default.proxyMethod(t,"hasKnownLastPage",!0),r.default.proxyMethod(t,"isLoaded",!0),r.default.proxyMethod(t,"totalCount",0),t}())}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(5)),r=i(n(19)),s=n(1),l=n(0),u=i(n(332)),c=i(n(15)),d=n(9),h=(0,l.extend)({},u.default,{_createRow:function(e){var t=this,n=this.callBase(e);return"header"===e.rowType&&a.default.on(n,(0,d.addNamespace)(r.default.name,"dxDataGridColumnHeadersView"),"td",this.createAction(function(e){t._processHeaderAction(e.event,n)})),n},_processHeaderAction:function(e,t){if((0,o.default)(e.currentTarget).parent().get(0)===t.get(0)){var n=this,i=null,a=(0,o.default)(e.currentTarget),r=a.parent().index(),l=-1;[].slice.call(n.getCellElements(r)).some(function(e,t){if(e===a.get(0))return l=t,!0});var u=n._columnsController.getVisibleColumns(r)[l],c=n.getController("editing"),d=n.option("editing.mode");!(c&&c.isEditing()&&("batch"===d||"cell"===d))&&n._isSortableElement((0,o.default)(e.target))&&(!u||(0,s.isDefined)(u.groupIndex)||u.command||(e.shiftKey?i="shift":e.ctrlKey&&(i="ctrl"),setTimeout(function(){n._columnsController.changeSortOrder(u.index,i)})))}},_renderCellContent:function(e,t){var n=this,i=t.column;i.command||"header"!==t.rowType||n._applyColumnState({name:"sort",rootElement:e,column:i,showColumnLines:n.option("showColumnLines")}),n.callBase(e,t)},_columnOptionChanged:function(e){var t=e.changeTypes;return 1===t.length&&t.sorting?void this._updateIndicators("sort"):void this.callBase(e)},optionChanged:function(e){switch(e.name){case"sorting":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}}}),p=(0,l.extend)({},u.default,{_createGroupPanelItem:function(e,t){var n=this,i=n.callBase.apply(n,arguments);return a.default.on(i,(0,d.addNamespace)(r.default.name,"dxDataGridHeaderPanel"),n.createAction(function(){n._processGroupItemAction(t.index)})),n._applyColumnState({name:"sort",rootElement:i,column:{alignment:n.option("rtlEnabled")?"right":"left",allowSorting:t.allowSorting,sortOrder:"desc"===t.sortOrder?"desc":"asc"},showColumnLines:!0}),i},_processGroupItemAction:function(e){var t=this;setTimeout(function(){return t.getController("columns").changeSortOrder(e)})},optionChanged:function(e){switch(e.name){case"sorting":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}}});e.exports={defaultOptions:function(){return{sorting:{mode:"single",ascendingText:c.default.format("dxDataGrid-sortingAscendingText"),descendingText:c.default.format("dxDataGrid-sortingDescendingText"),clearText:c.default.format("dxDataGrid-sortingClearText")}}},extenders:{views:{columnHeadersView:h,headerPanel:p}}}},function(e,t,n){var i=n(1),o="dx-sort",a="dx-sort-none";e.exports={_applyColumnState:function(e){var t,n,a=this,r=a.option("sorting.mode"),s=e.rootElement,l=e.column,u=a._getIndicatorContainer(s);return"sort"===e.name?(s.find("."+o).remove(),!u.children().length&&u.remove(),(("single"===r||"multiple"===r)&&l.allowSorting||(0,i.isDefined)(l.sortOrder))&&(t="asc"===l.sortOrder?"ascending":"descending",n=a.callBase(e).toggleClass("dx-sort-up","asc"===l.sortOrder).toggleClass("dx-sort-down","desc"===l.sortOrder),e.rootElement.addClass(a.addWidgetPrefix("action"))),(0,i.isDefined)(l.sortOrder)?a.setAria("sort",t,s):a.setAria("sort","none",s),n):a.callBase(e)},_getIndicatorClassName:function(e){return"sort"===e?o:this.callBase(e)},_renderIndicator:function(e){var t,n=e.column,o=e.container,r=e.indicator;return"sort"===e.name&&(t=this.option("rtlEnabled"),(0,i.isDefined)(n.sortOrder)||r&&r.addClass(a),o.children().length&&(!t&&"left"===e.columnAlignment||t&&"right"===e.columnAlignment))?void o.prepend(r):void this.callBase(e)},_updateIndicator:function(e,t,n){if("sort"!==n||!(0,i.isDefined)(t.groupIndex))return this.callBase.apply(this,arguments)},_getIndicatorElements:function(e,t){var n=this.callBase(e);return t?n:n&&n.not("."+a)}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=n(7),r=i(n(5)),s=n(4),l=i(n(84)),u=n(1),c=n(3),d=n(0),h=n(43),p=n(99),f=n(20),g=n(36),_=i(n(166)),m=i(n(94)),v=i(n(130)),y=i(n(15)),b=i(n(31)),x="content",w="dx-group-row",C="dx-group-cell",k="dx-freespace-row",S="dx-column-lines",I="dx-row-alt",T="dx-last-row-border";e.exports={defaultOptions:function(){return{hoverStateEnabled:!1,scrolling:{useNative:"auto"},loadPanel:{enabled:"auto",text:y.default.format("Loading"),width:200,height:90,showIndicator:!0,indicatorSrc:"",showPane:!0},rowTemplate:null,columnAutoWidth:!1,noDataText:y.default.format("dxDataGrid-noDataText"),wordWrapEnabled:!1,showColumnLines:!0,showRowLines:!1,rowAlternationEnabled:!1,activeStateEnabled:!1,twoWayBindingEnabled:!0}},views:{rowsView:_.default.ColumnsView.inherit(function(){var e=function(e,t){var n=(0,h.isEmpty)(t.text)&&"data"===t.rowType,i=t.text,o=e.get(0);n?(0,g.setEmptyText)(e):t.column.encodeHtml?o.textContent=i:o.innerHTML=i},t=function(e){var t=e.getScrollable();return t?Math.ceil(parseFloat(t.$content().css("paddingBottom"))):0};return{_getDefaultTemplate:function(t){switch(t.command){case"empty":return function(e){e.html("&nbsp;")};default:return e}},_getDefaultGroupTemplate:function(e){var t=this.option("summary.texts");return function(n,i){var o=i.data,a=i.column.caption+": "+i.text,r=n.get(0);i.summaryItems&&i.summaryItems.length&&(a+=" "+(0,g.getGroupRowSummaryText)(i.summaryItems,t)),o&&(i.groupContinuedMessage&&i.groupContinuesMessage?a+=" ("+i.groupContinuedMessage+". "+i.groupContinuesMessage+")":i.groupContinuesMessage?a+=" ("+i.groupContinuesMessage+")":i.groupContinuedMessage&&(a+=" ("+i.groupContinuedMessage+")")),n.addClass(C),e.encodeHtml?r.textContent=a:r.innerHTML=a}},_update:function(){},_getCellTemplate:function(e){var t=e.column;return"group"!==e.rowType||!(0,u.isDefined)(t.groupIndex)||t.showWhenGrouped||t.command?t.cellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(t)}:t.groupCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultGroupTemplate(t)}},_createRow:function(e){var t,n,i,o=this.callBase(e);return e&&(t="group"===e.rowType,(n="data"===e.rowType)&&o.addClass("dx-data-row"),n&&this.option("showRowLines")&&o.addClass("dx-row-lines"),this.option("showColumnLines")&&o.addClass(S),!1===e.visible&&o.hide(),t&&(o.addClass(w),i=e.isExpanded,this.setAria("role","row",o),this.setAria("expanded",(0,u.isDefined)(i)&&i.toString(),o))),o},_rowPrepared:function(e,t){var n=this;if("data"===t.rowType){if(this.option("rowAlternationEnabled")){var i=function(){return t.dataIndex%2==1};i()&&e.addClass(I),t.watch&&t.watch(i,function(t){e.toggleClass(I,t)})}this._setAriaRowIndex(t,e),t.watch&&t.watch(function(){return t.rowIndex},function(){return n._setAriaRowIndex(t,e)})}this.callBase.apply(this,arguments)},_setAriaRowIndex:function(e,t){var n=this.component,i="standard"===n.option("scrolling.mode")&&"virtual"!==n.option("scrolling.rowRenderingMode"),o=e.rowIndex+1;i?o=n.pageIndex()*n.pageSize()+o:o+=this._dataController.getRowIndexOffset(),this.setAria("rowindex",o,t)},_afterRowPrepared:function(e){var t=this,n=e.args[0],i=this._dataController,o=this.option("integrationOptions.watchMethod");if(n.data&&"data"===n.rowType&&!n.inserted&&this.option("twoWayBindingEnabled")&&o){var a=o(function(){return i.generateDataValues(n.data,n.columns)},function(){i.repaintRows([n.rowIndex],t.option("repaintChangesOnly"))},{deep:!0,skipImmediate:!0});r.default.on(n.rowElement,v.default,a)}},_renderScrollable:function(e){var t=this,n=t.element();if(n.children().length||n.append("<div>"),!e&&t._loadPanel||t._renderLoadPanel(n,n.parent(),t._dataController.isLocalStore()),(e||!t.getScrollable())&&t._dataController.isLoaded()){for(var i=t.getColumns(),o=!0,a=0;a<i.length;a++)if(!i[a].width&&!i[a].minWidth){o=!1;break}(t.option("columnAutoWidth")||t._hasHeight||o||t._columnsController._isColumnFixing())&&t._renderScrollableCore(n)}},_handleScroll:function(e){var t=this;t._isScrollByEvent=!!e.event,t._scrollTop=e.scrollOffset.top,t._scrollLeft=e.scrollOffset.left,t.scrollChanged.fire(e.scrollOffset,t.name)},_renderScrollableCore:function(e){var t=this,n=t._createScrollableOptions(),i=t._handleScroll.bind(t);n.onScroll=i,n.onStop=i,t._scrollable=t._createComponent(e,m.default,n),t._scrollableContainer=t._scrollable&&t._scrollable._$container},_renderLoadPanel:g.renderLoadPanel,_renderContent:function(e,t){return e.replaceWith((0,o.default)("<div>").addClass(this.addWidgetPrefix(x)).append(t)),this._findContentElement()},_updateContent:function(e,t){var n=this,i=n._getTableElement(),o=n._findContentElement(),a=t&&t.changeType,r=[],s=this.option("highlightChanges"),l=this.addWidgetPrefix("row-inserted-animation");switch(a){case"update":(0,c.each)(t.rowIndices,function(o,a){var c=n._getRowElements(e).eq(o),d=t.changeTypes&&t.changeTypes[o],h=t.items&&t.items[o];r.push(function(){var e=n._getRowElements(),r=e.eq(a);switch(d){case"update":if(h){var p=t.columnIndices&&t.columnIndices[o];(0,u.isDefined)(h.visible)&&h.visible!==r.is(":visible")?r.toggle(h.visible):p?n._updateCells(r,c,p):r.replaceWith(c)}break;case"insert":e.length?r.length?c.insertBefore(r):c.insertAfter(e.last()):c.prependTo(i.children("tbody")),s&&t.isLiveUpdate&&c.addClass(l);break;case"remove":r.remove()}})}),(0,c.each)(r,function(){this()}),e.remove();break;default:n._setTableElement(e),o.addClass(n.addWidgetPrefix(x)),n._renderContent(o,e)}},_createEmptyRow:function(e,t,n){var i,o,a=this,r=a._createRow(),s=t?this.getFixedColumns():this.getColumns();for(r.addClass(e).toggleClass(S,a.option("showColumnLines")),i=0;i<s.length;i++)o=a._createCell({column:s[i],rowType:"freeSpace",columnIndex:i,columns:s}),(0,u.isNumeric)(n)&&o.css("height",n),r.append(o);return a.setAria("role","presentation",r),r},_appendEmptyRow:function(e,t,n){var i=this._getBodies(e),o=i.length&&!t.is("tbody")?i:e;"top"===n?o.first().prepend(t):o.last().append(t)},_renderFreeSpaceRow:function(e){var t=this._createEmptyRow(k);t=this._wrapRowIfNeed(e,t),this._appendEmptyRow(e,t)},_checkRowKeys:function(e){var t=this,n=t._getRows(e),i=t._dataController.store()&&t._dataController.store().key();i&&n.some(function(e){if("data"===e.rowType&&void 0===e.key)return t._dataController.fireError("E1046",i),!0})},_needUpdateRowHeight:function(e){return e>0&&!this._rowHeight},_getRowsHeight:function(e){return e.children("tbody").children().not(".dx-virtual-row").not("."+k).toArray().reduce(function(e,t){return e+t.getBoundingClientRect().height},0)},_updateRowHeight:function(){var e,t=this,n=t._getTableElement(),i=t._dataController.items().length;n&&t._needUpdateRowHeight(i)&&(e=t._getRowsHeight(n),t._rowHeight=e/i)},_findContentElement:function(){var e=this.element(),t=this.getScrollable();if(e)return t&&(e=t.$content()),e.children().first()},_getRowElements:function(e){var t=this.callBase(e);return t&&t.not("."+k)},_getFreeSpaceRowElements:function(e){var t=e||this.getTableElements();return t&&t.children("tbody").children("."+k)},_getNoDataText:function(){return this.option("noDataText")},_rowClick:function(e){var t=this._dataController.items()[e.rowIndex]||{};this.executeAction("onRowClick",(0,d.extend)({evaluate:function(e){return(0,f.compileGetter)(e)(t.data)}},e,t))},_rowDblClick:function(e){var t=this._dataController.items()[e.rowIndex]||{};this.executeAction("onRowDblClick",(0,d.extend)({},e,t))},_getColumnsCountBeforeGroups:function(e){for(var t=0;t<e.length;t++)if("groupExpand"===e[t].type)return t;return 0},_getGroupCellOptions:function(e){var t=this._getColumnsCountBeforeGroups(e.columns),n=(e.row.groupIndex||0)+t;return{columnIndex:n,colspan:e.columns.length-n-1}},_renderCells:function(e,t){"group"===t.row.rowType?this._renderGroupedCells(e,t):t.row.values&&this.callBase(e,t)},_renderGroupedCells:function(e,t){var n,i,o,a,r,s=t.row,l=t.columns,u=s.rowIndex,c=this._getGroupCellOptions(t);for(n=0;n<=c.columnIndex;n++)n===c.columnIndex&&l[n].allowCollapsing&&"infinite"!==t.scrollingMode?(o=!!s.isExpanded,i=l[n]):(o=null,i={command:"expand",cssClass:l[n].cssClass}),this._renderCell(e,{value:o,row:s,rowIndex:u,column:i,columnIndex:n});r=(0,p.getDefaultAlignment)(this.option("rtlEnabled")),a=(0,d.extend)({},l[c.columnIndex],{command:null,cssClass:null,width:null,showWhenGrouped:!1,alignment:r}),c.colspan>1&&(a.colspan=c.colspan),this._renderCell(e,{value:s.values[s.groupIndex],row:s,rowIndex:u,column:a,columnIndex:c.columnIndex})},_renderRows:function(e,t){var n=this,i=n.option("scrolling.mode");n.callBase(e,(0,d.extend)({scrollingMode:i},t)),n._checkRowKeys(t.change),n._renderFreeSpaceRow(e),n._hasHeight||n.updateFreeSpaceRowHeight(e)},_renderRow:function(e,t){var n=this,i=t.row,o=n.option("rowTemplate");"data"!==i.rowType&&"group"!==i.rowType||(0,u.isDefined)(i.groupIndex)||!o?n.callBase(e,t):n.renderTemplate(e,o,(0,d.extend)({columns:t.columns},i),!0)},_renderTable:function(e){var t=this,n=t.callBase(e);return(0,u.isDefined)(t._getTableElement())?t._renderScrollable():(t._setTableElement(n),t._renderScrollable(!0),t.resizeCompleted.add(function e(){var n=t.getScrollable();n&&t.element().closest((0,a.getWindow)().document).length&&(t.resizeCompleted.remove(e),n._visibilityChanged(!0))})),n},_createTable:function(){var e=this.callBase.apply(this,arguments);return this.option("rowTemplate")&&e.appendTo(this.component.$element()),e},_renderCore:function(e){var t,n=this,i=n.element();i.addClass(n.addWidgetPrefix("rowsview")).toggleClass(n.addWidgetPrefix("nowrap"),!n.option("wordWrapEnabled")),i.toggleClass("dx-empty",0===n._dataController.items().length),n.setAria("role","presentation",i),t=n._renderTable({change:e}),n._updateContent(t,e),n.callBase(e),n._lastColumnWidths=null},_getRows:function(e){return e&&e.items||this._dataController.items()},_getCellOptions:function(e){var t,n,i,o=e.column,a=e.row,r=a.data,s=a&&a.summaryCells,l=e.value,c=(0,g.getDisplayValue)(o,l,r,a.rowType);return(t=this.callBase(e)).value=l,t.oldValue=e.oldValue,t.displayValue=c,t.row=a,t.key=a.key,t.data=r,t.rowType=a.rowType,t.values=a.values,t.text=o.command?"":(0,g.formatValue)(c,o),t.rowIndex=a.rowIndex,t.summaryItems=s&&s[e.columnIndex],t.resized=o.resizedCallbacks,(0,u.isDefined)(o.groupIndex)&&!o.command&&(n=this.option("grouping.texts"),"virtual"!==(i=this.option("scrolling.mode"))&&"infinite"!==i&&(t.groupContinuesMessage=r&&r.isContinuationOnNextPage&&n&&n.groupContinuesMessage,t.groupContinuedMessage=r&&r.isContinuation&&n&&n.groupContinuedMessage)),t},_setRowsOpacityCore:function(e,t,n,i){var a=this._columnsController,r=a.getColumns(),s=r&&r[n],l=s&&s.isBand&&s.index;(0,c.each)(e,function(r,s){if(!(0,o.default)(s).hasClass(w))for(var c=0;c<t.length&&(!((0,u.isNumeric)(l)&&a.isParentBandColumn(t[c].index,l)||t[c].index===n)||(e.eq(r).children().eq(c).css({opacity:i}),(0,u.isNumeric)(l)));c++);})},_getDevicePixelRatio:function(){return(0,a.getWindow)().devicePixelRatio},renderNoDataText:g.renderNoDataText,getCellOptions:function(e,t){var n,i,o=this._dataController.items()[e];return o&&((i=(0,u.isString)(t)?this._columnsController.columnOption(t):this._columnsController.getVisibleColumns()[t])&&(n=this._getCellOptions({value:i.calculateCellValue(o.data),rowIndex:o.rowIndex,row:o,column:i}))),n},getRow:function(e){if(e>=0){var t=this._getRowElements();if(t.length>e)return(0,o.default)(t[e])}},updateFreeSpaceRowHeight:function(e){var n,i,o=this,a=o._dataController.items().length,r=o._findContentElement(),u=o._getFreeSpaceRowElements(e);if(u&&r){var c=!1;a>0?o._hasHeight?(u.hide(),(0,s.deferUpdate)(function(){var n=t(o),i=o.getScrollbarWidth(!0),a=o.element().height()-i-n,l=a-r.outerHeight()>0,d=o._getRowsHeight(r.children().first()),h=e||o.getTableElements(),p=a-d-Math.ceil(parseFloat(h.css("borderTopWidth")))-(b.default.webkit&&o._getDevicePixelRatio()>=2?1:0);l&&(0,s.deferRender)(function(){u.css("height",p),c=!0,u.show()}),(0,s.deferRender)(function(){o._updateLastRowBorder(c)})})):(n=o._dataController.pageSize()-a,i=o.option("scrolling.mode"),n>0&&o._dataController.pageCount()>1&&"virtual"!==i&&"infinite"!==i&&(l.default.setHeight(u,n*o._rowHeight),c=!0),!c&&e?l.default.setHeight(u,0):u.toggle(c),o._updateLastRowBorder(c)):(u.css("height",0),u.show(),o._updateLastRowBorder(!0))}},_columnOptionChanged:function(e){var t=e.optionNames;e.changeTypes.grouping||(t.width||t.visibleWidth)&&(this.callBase(e),this._fireColumnResizedCallbacks())},getScrollable:function(){return this._scrollable},init:function(){var e=this,t=e.getController("data");e.callBase(),e._editorFactoryController=e.getController("editorFactory"),e._rowHeight=0,e._scrollTop=0,e._scrollLeft=-1,e._hasHeight=!1,t.loadingChanged.add(function(t,n){e.setLoading(t,n)}),t.dataSourceChanged.add(function(){e._scrollLeft>=0&&e._handleScroll({scrollOffset:{top:e._scrollTop,left:e._scrollLeft}})})},_handleDataChanged:function(e){switch(e.changeType){case"refresh":case"prepend":case"append":case"update":this.render(null,e);break;default:this._update(e)}},publicMethods:function(){return["isScrollbarVisible","getTopVisibleRowData","getScrollbarWidth","getCellElement","getRowElement","getScrollable"]},contentWidth:function(){return this.element().width()-this.getScrollbarWidth()},getScrollbarWidth:function(e){var n=this._scrollableContainer&&this._scrollableContainer.get(0),i=0;return n&&(e?(i=n.clientHeight?n.offsetHeight-n.clientHeight:0,i+=t(this)):i=n.clientWidth?n.offsetWidth-n.clientWidth:0),i>0?i:0},_fireColumnResizedCallbacks:function(){var e,t=this,n=t._lastColumnWidths||[],i=[],o=t.getColumns();for(e=0;e<o.length;e++)i[e]=o[e].visibleWidth,o[e].resizedCallbacks&&!(0,u.isDefined)(o[e].groupIndex)&&n[e]!==i[e]&&o[e].resizedCallbacks.fire(i[e]);t._lastColumnWidths=i},_updateLastRowBorder:function(e){this.option("showBorders")&&this.option("showRowLines")&&!e?this.element().addClass(T):this.element().removeClass(T)},_updateScrollable:function(){var e=m.default.getInstance(this.element());e&&(e.update(),this._updateHorizontalScrollPosition())},_updateHorizontalScrollPosition:function(){var e=this.getScrollable(),t=e&&e.scrollOffset().left;this._scrollLeft>=0&&t!==this._scrollLeft&&e.scrollTo({x:this._scrollLeft})},_resizeCore:function(){var e=this;e._fireColumnResizedCallbacks(),e._updateRowHeight(),(0,s.deferRender)(function(){e._renderScrollable(),e.renderNoDataText(),e.updateFreeSpaceRowHeight(),(0,s.deferUpdate)(function(){e._updateScrollable()})})},scrollTo:function(e){var t=this.element(),n=t&&m.default.getInstance(t);n&&n.scrollTo(e)},height:function(e,t){var n=this.element();return 0===arguments.length?n?n.outerHeight(!0):0:(this._hasHeight=void 0===t?"auto"!==e:t,void((0,u.isDefined)(e)&&n&&l.default.setHeight(n,e)))},setLoading:function(e,t){var n,i=this,o=i._loadPanel,r=i._dataController,s=i.option("loadPanel")||{},l=r.isLoaded()?s.animation:null,u=i.element();(0,a.hasWindow)()&&(!o&&void 0!==t&&r.isLocalStore()&&"auto"===s.enabled&&u&&(i._renderLoadPanel(u,u.parent()),o=i._loadPanel),o&&(n={message:t||s.text,animation:l,visible:e},clearTimeout(i._hideLoadingTimeoutID),o.option("visible")&&!e?i._hideLoadingTimeoutID=setTimeout(function(){o.option(n)},200):o.option(n)))},setRowsOpacity:function(e,t){var n=this._getRowElements().not("."+w)||[];this._setRowsOpacityCore(n,this.getColumns(),e,t)},_getCellElementsCore:function(e){var t,n=this.callBase(e);return n&&((t=n.filter("."+C).index())>=0&&n.length>t+1)?n.slice(0,t+1):n},getTopVisibleItemIndex:function(){var e,t,n=this,i=0,o=0,a=0,r=n._scrollTop,s=n._findContentElement(),l=s&&s.offset().top,u=n._dataController.items(),c=n._getTableElement();if(u.length&&c){for(e=n._getRowElements(c).filter(":visible"),i=0;i<u.length;i++)if(o=a,(t=e.eq(i)).length&&(a=t.offset().top-l)>r){2*r<Math.round(a+o)&&i&&i--;break}i&&i===u.length&&i--}return i},getTopVisibleRowData:function(){var e=this.getTopVisibleItemIndex(),t=this._dataController.items();if(t[e])return t[e].data},optionChanged:function(e){var t=this;switch(t.callBase(e),e.name){case"wordWrapEnabled":case"showColumnLines":case"showRowLines":case"rowAlternationEnabled":case"rowTemplate":case"twoWayBindingEnabled":t._invalidate(!0,!0),e.handled=!0;break;case"scrolling":t._rowHeight=null,t._tableElement=null,e.handled=!0;break;case"rtlEnabled":t._rowHeight=null,t._tableElement=null;break;case"loadPanel":t._tableElement=null,t._invalidate(!0,"loadPanel.enabled"!==e.fullName),e.handled=!0;break;case"noDataText":t.renderNoDataText(),e.handled=!0}},dispose:function(){clearTimeout(this._hideLoadingTimeoutID),this._scrollable&&this._scrollable.dispose()},setScrollerSpacing:function(){}}}())}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=n(10),r=n(4),s=n(3),l=i(n(38)),u=i(n(105)),c={columnHeadersView:"header",rowsView:"content",footerView:"footer",headerPanel:"headerPanel"},d=["columnHeadersView","rowsView","footerView","headerPanel"],h=l.default.ViewController.inherit({init:function(){this.createAction("onContextMenuPreparing")},getContextMenuItems:function(e){if(!e)return!1;var t,n,i,r,l,u,h,p,f,g=this,_=(0,o.default)(e.target);return(0,s.each)(d,function(){if(t=g.getView(this),(u=t&&t.element())&&(u.is(_)||u.find(_).length)&&(p=_.closest("td"),h=p.closest(".dx-row"),i=t.getRowIndex(h),r=p[0]&&p[0].cellIndex,l=h.data("options"),(n={event:e,targetElement:(0,a.getPublicElement)(_),target:c[this],rowIndex:i,row:t._getRows()[i],columnIndex:r,column:l&&l.cells[r].column}).items=t.getContextMenuItems&&t.getContextMenuItems(n),g.executeAction("onContextMenuPreparing",n),g._contextMenuPrepared(n),f=n.items))return!1}),f},_contextMenuPrepared:r.noop}),p=l.default.View.inherit({_renderCore:function(){var e=this,t=e.element().addClass("dx-context-menu");this.setAria("role","presentation",t),this._createComponent(t,u.default,{onPositioning:function(t){var n=t.event,i=t.component,o=e.getController("contextMenu").getContextMenuItems(n);o?(i.option("items",o),n.stopPropagation()):t.cancel=!0},onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:e.getWidgetContainerClass(),target:e.component.$element()})}});e.exports={defaultOptions:function(){return{onContextMenuPreparing:null}},controllers:{contextMenu:h},views:{contextMenuView:p}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(5)),r=i(n(19)),s=n(3),l=i(n(38)),u="dx-error-row",c="dx-error-message",d=l.default.ViewController.inherit({init:function(){var e=this;e._columnHeadersView=e.getView("columnHeadersView"),e._rowsView=e.getView("rowsView")},_createErrorRow:function(e,t){var n,i,l=this,c=this._renderErrorMessage(e);return t?(n=(0,o.default)("<tr>").addClass(u),i=(0,o.default)("<div>").addClass("dx-closebutton").addClass(l.addWidgetPrefix("action")),a.default.on(i,r.default.name,l.createAction(function(e){var n,i=e.event,a=(0,o.default)(i.currentTarget).closest("."+u).index();i.stopPropagation(),(0,s.each)(t,function(e,t){n=(0,o.default)(t).children("tbody").children("tr").eq(a),l.removeErrorRow(n)})})),(0,o.default)("<td>").attr({colSpan:l.getController("columns").getVisibleColumns().length,role:"presentation"}).prepend(i).append(c).appendTo(n),n):c},_renderErrorMessage:function(e){var t=e.url?e.message.replace(e.url,""):e.message||e,n=(0,o.default)("<div>").addClass(c).text(t);return e.url&&(0,o.default)("<a>").attr("href",e.url).text(e.url).appendTo(n),n},renderErrorRow:function(e,t,n){var i,a,r,l,u,d,h=this;return n?(n.find("."+c).remove(),a=h._createErrorRow(e),n.prepend(a),a):(u=t>=0||!h._columnHeadersView.isVisible()?h._rowsView:h._columnHeadersView,d=n||u.getTableElements(),(0,s.each)(d,function(n,s){if(a=h._createErrorRow(e,d),r=r||a,t>=0)i=u._getRowElements((0,o.default)(s)).eq(t),h.removeErrorRow(i.next()),a.insertAfter(i);else{var c=(0,o.default)(s).children("tbody");l=c.children("tr"),h._columnHeadersView.isVisible()?(h.removeErrorRow(l.last()),(0,o.default)(s).append(a)):(h.removeErrorRow(l.first()),c.first().prepend(a))}}),r)},removeErrorRow:function(e){if(!e){var t=this._columnHeadersView&&this._columnHeadersView.element();if(!(e=t&&t.find("."+u))||!e.length){var n=this._rowsView.element();e=n&&n.find("."+u)}}e&&e.hasClass(u)&&e.remove()},optionChanged:function(e){switch(e.name){case"errorRowEnabled":e.handled=!0;break;default:this.callBase(e)}}});e.exports={defaultOptions:function(){return{errorRowEnabled:!0}},controllers:{errorHandling:d},extenders:{controllers:{data:{init:function(){var e=this,t=e.getController("errorHandling");e.callBase(),e.dataErrorOccurred.add(function(n,i){e.option("errorRowEnabled")&&t.renderErrorRow(n,void 0,i)}),e.changed.add(function(){var t=e.getController("errorHandling"),n=e.getController("editing");n&&!n.hasChanges()&&t&&t.removeErrorRow()})}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(38)),r=i(n(4)),s=i(n(7)),l=n(3),u=i(n(1)),c=i(n(36)),d=i(n(15)),h=n(6),p=i(n(12)),f=i(n(31)),g=i(n(96)),_="borders",m="table-fixed",v="dx-hidden",y="dx-gridbase-container",b="adaptiveHidden",x=["columnsSeparatorView","blockSeparatorView","trackerView","headerPanel","columnHeadersView","rowsView","footerView","columnChooserView","filterPanelView","pagerView","draggingHeaderView","contextMenuView","errorView","headerFilterView","filterBuilderView"],w=function(e){return u.default.isString(e)&&"%"===e.slice(-1)},C=function(e,t){var n,i=[];if(e&&t&&e.length&&e.length===t.length)for(n=0;n<e.length;n++)i.push(e[n]>t[n]?e[n]:t[n]);else e&&e.length?i=e:t&&(i=t);return i},k=function(e,t){var n=e._rowsView.contentWidth();return n-e._getTotalWidth(t,n)},S=function(e,t,n,i){return k(e,i.map(function(e,i){return i===t?n:e}))},I=function(e,t){g.default.hiddenFocus(e),c.default.setSelectionRange(e,t)},T=a.default.ViewController.inherit({_initPostRenderHandlers:function(){var e=this,t=e._dataController;e._refreshSizesHandler||(e._refreshSizesHandler=function(n){t.changed.remove(e._refreshSizesHandler);var i,o=n&&n.changeType,a=n&&n.isDelayed,r=t.items();n&&"refresh"!==o&&"prepend"!==o&&"append"!==o?"update"===o&&n.changeTypes&&(!(r.length>1||"insert"!==n.changeTypes[0])||0===r.length&&"remove"===n.changeTypes[0]||n.needUpdateDimensions?i=e.resize():e._rowsView.resize()):a||(i=e.resize()),o&&"updateSelection"!==o&&"updateFocusedRow"!==o&&!a&&(0,h.when)(i).done(function(){e._setAriaRowColCount(),e.component._fireContentReadyAction()})},e._dataController.changed.add(function(){e._dataController.changed.add(e._refreshSizesHandler)}))},_setAriaRowColCount:function(){var e=this.component;e.setAria({rowCount:this._dataController.totalItemsCount(),colCount:e.columnCount()},e.$element().children("."+y))},_getBestFitWidths:function(){if(!this.option("legacyRendering"))return this._rowsView.getColumnWidths();var e,t,n,i,o=this;return e=o._rowsView.getColumnWidths(),t=o._columnHeadersView&&o._columnHeadersView.getColumnWidths(),n=o._footerView&&o._footerView.getColumnWidths(),i=C(e,t),C(i,n)},_setVisibleWidths:function(e,t){var n=this._columnsController;n.beginUpdate(),(0,l.each)(e,function(e,i){var o=n.getColumnId(i);n.columnOption(o,"visibleWidth",t[e])}),n.endUpdate()},_toggleBestFitModeForView:function(e,t,n){if(e&&e.isVisible()){var i,o=this._rowsView._getTableElement(),a=e._getTableElement();a&&((i=n?a.children("tbody").appendTo(o):o.children("."+t).appendTo(a)).toggleClass(t,n),i.toggleClass(this.addWidgetPrefix("best-fit"),n))}},_toggleBestFitMode:function(e){var t=this.component.$element(),n=this;if(n.option("legacyRendering"))t.find("."+this.addWidgetPrefix("table")).toggleClass(this.addWidgetPrefix(m),!e),t.find("input:not([type='hidden'])").toggleClass(v,e),t.find(".dx-group-cell").toggleClass(v,e),t.find(".dx-header-row ."+this.addWidgetPrefix("text-content")).css("maxWidth","");else{var i=n._rowsView._getTableElement(),o=n._rowsView.getTableElements().eq(1);i.css("tableLayout",e?"auto":"fixed"),i.children("colgroup").css("display",e?"none":""),o.toggleClass(this.addWidgetPrefix(m),!e),n._toggleBestFitModeForView(n._columnHeadersView,"dx-header",e),n._toggleBestFitModeForView(n._footerView,"dx-footer",e),n._needStretch()&&(i.get(0).style.width=e?"auto":""),f.default.msie&&11===parseInt(f.default.version)&&i.find("."+this.addWidgetPrefix(m)).each(function(){this.style.width=e?"10px":""})}},_synchronizeColumns:function(){var e,t,n,i=this,o=i._columnsController,a=o.getVisibleColumns(),s=i.option("columnAutoWidth"),d=i.option("legacyRendering"),h=i._needBestFit(),g=!1,_=!1,m=[];!h&&(0,l.each)(a,function(e,t){if("auto"===t.width||d&&t.fixed)return h=!0,!1}),(0,l.each)(a,function(e,t){if(t.minWidth)return g=!0,!1}),i._setVisibleWidths(a,[]),h&&(t=p.default.getActiveElement(),n=c.default.getSelectionRange(t),i._toggleBestFitMode(!0),e=!0),r.default.deferUpdate(function(){h?(m=i._getBestFitWidths(),(0,l.each)(a,function(e,t){var n=o.getColumnId(t);o.columnOption(n,"bestFitWidth",m[e],!0)})):g&&(m=i._getBestFitWidths()),(0,l.each)(a,function(e){var t=this.width;"auto"!==t&&(u.default.isDefined(t)?m[e]=u.default.isNumeric(t)?parseFloat(t):t:s||(m[e]=void 0))}),e&&(i._toggleBestFitMode(!1),e=!1,t&&t!==p.default.getActiveElement()&&(t.getBoundingClientRect().bottom<0||(f.default.msie?setTimeout(function(){I(t,n)}):I(t,n)))),_=i._correctColumnWidths(m,a),s&&(function(){var e;(0,l.each)(a,function(t,n){"groupExpand"===n.type&&(e=m[t])}),(0,l.each)(a,function(t,n){"groupExpand"===n.type&&e&&(m[t]=e)})}(),i._needStretch()&&i._processStretch(m,a)),r.default.deferRender(function(){(h||_)&&i._setVisibleWidths(a,m)})})},_needBestFit:function(){return this.option("columnAutoWidth")},_needStretch:function(){return this.option("legacyRendering")||this._columnsController.getVisibleColumns().some(function(e){return"auto"===e.width&&!e.command})},_getAverageColumnsWidth:function(e){return k(this,e)/e.filter(function(e){return void 0===e}).length},_correctColumnWidths:function(e,t){var n,i,o=this,a=!1,r=!1,s=!1,l=o.component.$element(),d=o._hasWidth;for(n=0;n<t.length;n++){var h=n,p=t[h],f=e[h]===b,g=e[h],_=p.minWidth;if(_)if(void 0===g)g=o._getAverageColumnsWidth(e);else if(w(g)){S(o,h,_,e)<0&&(g=-1)}_&&o._getRealColumnWidth(g)<_&&!f&&(e[h]=_,s=!0,n=-1),u.default.isDefined(p.width)||(r=!0),w(p.width)&&(a=!0)}if(l&&o._maxWidth&&(delete o._maxWidth,l.css("maxWidth","")),!r&&e.length){var m=o._rowsView.contentWidth(),v=o._rowsView.getScrollbarWidth(),y=o._getTotalWidth(e,m);y<m&&((i=c.default.getLastResizableColumnIndex(t,e))>=0&&(e[i]="auto",s=!0,d||a||(o._maxWidth=y+v+(o.option("showBorders")?2:0),l.css("maxWidth",o._maxWidth))))}return s},_processStretch:function(e,t){var n,i,o,a,r=this._rowsView.contentWidth(),s=this._getTotalWidth(e,r),u={length:0};if(e.length&&((0,l.each)(t,function(t){(this.width||e[t]===b)&&(u[t]=!0,u.length++)}),o=(n=r-s)-(i=Math.floor(n/(e.length-u.length)))*(e.length-u.length),n>=0))for(a=0;a<e.length;a++)u[a]||(e[a]+=i,o>0&&(o<1?(e[a]+=o,o=0):(e[a]++,o--)))},_getRealColumnWidth:function(e,t){return w(e)?(t=t||this._rowsView.contentWidth(),parseFloat(e)*t/100):parseFloat(e)},_getTotalWidth:function(e,t){var n,i,o=0;for(i=0;i<e.length;i++)(n=e[i])&&n!==b&&(o+=this._getRealColumnWidth(n,t));return Math.round(o)},updateSize:function(e){var t,n,i=this,o=i.addWidgetPrefix("important-margin");void 0===i._hasHeight&&e&&e.is(":visible")&&((t=e.children("."+i.getWidgetContainerClass())).length&&t.detach(),i._hasHeight=!!function(e){return e.get(0).clientHeight-parseFloat(e.css("paddingTop"))-parseFloat(e.css("paddingBottom"))}(e),n=e.width(),e.addClass(o),i._hasWidth=e.width()===n,e.removeClass(o),t.length&&t.appendTo(e))},publicMethods:function(){return["resize","updateDimensions"]},resize:function(){return!this.component._requireResize&&this.updateDimensions()},updateDimensions:function(e){var t=this;if(t._initPostRenderHandlers(),t._checkSize(e)){var n=t._resizeDeferred,i=t._resizeDeferred=new h.Deferred;return(0,h.when)(n).always(function(){r.default.deferRender(function(){t._dataController.isLoaded()&&t._synchronizeColumns(),t._resetGroupElementHeight(),r.default.deferUpdate(function(){r.default.deferRender(function(){r.default.deferUpdate(function(){t._updateDimensionsCore()})})})}).done(i.resolve).fail(i.reject)}),i.promise()}},_resetGroupElementHeight:function(){var e=this.component.$element().children().get(0),t=this._rowsView.getScrollable();!e||!e.style.height||t&&t.scrollTop()||(e.style.height="")},_checkSize:function(e){var t=this.component.$element();return!(e&&(this._lastWidth===t.width()&&this._lastHeight===t.height()||!t.is(":visible")))},_setScrollerSpacingCore:function(e){var t=this,n=e?t._rowsView.getScrollbarWidth():0,i=t._rowsView.getScrollbarWidth(!0);r.default.deferRender(function(){t._columnHeadersView&&t._columnHeadersView.setScrollerSpacing(n),t._footerView&&t._footerView.setScrollerSpacing(n),t._rowsView.setScrollerSpacing(n,i)})},_setScrollerSpacing:function(e){var t=this;!t._rowsView.getScrollable()&&e?r.default.deferRender(function(){r.default.deferUpdate(function(){t._setScrollerSpacingCore(e)})}):t._setScrollerSpacingCore(e)},_updateDimensionsCore:function(){var e,t,n=this,i=n._dataController,a=n._rowsView,s=n.component.$element(),u=s.children().get(0),c=s&&(s.get(0).clientHeight||s.height()),d=parseFloat(s.css("maxHeight")),h=d&&c>=d,p=n.option("height")||s.get(0).style.height,f=n.getController("editorFactory"),g=h&&u.scrollHeight===u.offsetHeight;n.updateSize(s),e=n._hasHeight||h,p&&n._hasHeight^"auto"!==p&&(t=(0,o.default)("<div>").height(p).appendTo(s),n._hasHeight=!!t.height(),t.remove()),r.default.deferRender(function(){return a.height(null,e),h&&!g&&(0,o.default)(u).css("height",d),i.isLoaded()?void r.default.deferUpdate(function(){n._updateLastSizes(s),n._setScrollerSpacing(e),(0,l.each)(x,function(e,t){var i=n.getView(t);i&&i.resize()}),f&&f.resize()}):void a.setLoading(i.isLoading())})},_updateLastSizes:function(e){this._lastWidth=e.width(),this._lastHeight=e.height()},optionChanged:function(e){switch(e.name){case"width":case"height":this.component._renderDimensions(),this.resize();case"legacyRendering":case"renderAsync":return void(e.handled=!0);default:this.callBase(e)}},init:function(){var e=this;e._dataController=e.getController("data"),e._columnsController=e.getController("columns"),e._columnHeadersView=e.getView("columnHeadersView"),e._footerView=e.getView("footerView"),e._rowsView=e.getView("rowsView")}}),D=a.default.ViewController.inherit({_scrollChangedHandler:function(e,t,n){for(var i=0;i<e.length;i++)e[i]&&e[i].name!==n&&e[i].scrollTo({left:t.left,top:t.top})},init:function(){var e,t,n=[this.getView("columnHeadersView"),this.getView("footerView"),this.getView("rowsView")];for(t=0;t<n.length;t++)(e=n[t])&&e.scrollChanged.add(this._scrollChangedHandler.bind(this,n))}}),E=a.default.View.inherit({_endUpdateCore:function(){this.component._requireResize&&(this.component._requireResize=!1,this._resizingController.resize())},_getWidgetAriaLabel:function(){return"dxDataGrid-ariaDataGrid"},init:function(){var e=this;e._resizingController=e.getController("resizing"),e._dataController=e.getController("data")},getView:function(e){return this.component._views[e]},element:function(){return this._groupElement},optionChanged:function(e){var t=this;u.default.isDefined(t._groupElement)&&"showBorders"===e.name?(t._groupElement.toggleClass(t.addWidgetPrefix(_),!!e.value),e.handled=!0):t.callBase(e)},_renderViews:function(e){var t=this;(0,l.each)(x,function(n,i){var o=t.getView(i);o&&o.render(e)})},_getTableRoleName:function(){return"grid"},render:function(e){var t=this,n=!t._groupElement,i=t._groupElement||(0,o.default)("<div>").addClass(t.getWidgetContainerClass());i.addClass(y),i.toggleClass(t.addWidgetPrefix(_),!!t.option("showBorders")),t.setAria("role","presentation",e),t.component.setAria({role:this._getTableRoleName(),label:d.default.format(t._getWidgetAriaLabel())},i),t._rootElement=e||t._rootElement,n&&(t._groupElement=i,s.default.hasWindow()&&t.getController("resizing").updateSize(e),i.appendTo(e)),t._renderViews(i)},update:function(){var e=this,t=e._rootElement,n=e._groupElement,i=e.getController("resizing");t&&n&&(i.resize(),e._dataController.isLoaded()&&e.component._fireContentReadyAction())}});e.exports={defaultOptions:function(){return{showBorders:!1,renderAsync:!1,legacyRendering:!1}},controllers:{resizing:T,synchronizeScrolling:D},views:{gridView:E}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(163)),r=i(n(166)),s=n(4),l=n(1),u=n(10);n(195);var c="toolbar-button",d=r.default.ColumnsView.inherit({_getToolbarItems:function(){return[]},_getButtonContainer:function(){return(0,o.default)("<div>").addClass(this.addWidgetPrefix(c))},_getToolbarButtonClass:function(e){var t=e?" "+e:"";return this.addWidgetPrefix(c)+t},_getToolbarOptions:function(){var e,t={toolbarOptions:{items:this._getToolbarItems(),onItemRendered:function(e){var t=e.itemData.onItemRendered;t&&t(e)}}};return this.executeAction("onToolbarPreparing",t),t.toolbarOptions&&!(0,l.isDefined)(t.toolbarOptions.visible)&&(e=t.toolbarOptions.items,t.toolbarOptions.visible=!(!e||!e.length)),t.toolbarOptions},_renderCore:function(){this._toolbar?this._toolbar.option(this._toolbarOptions):(this.element().addClass(this.addWidgetPrefix("header-panel")),this._toolbar=this._createComponent((0,o.default)("<div>").appendTo(this.element()),a.default,this._toolbarOptions))},_columnOptionChanged:s.noop,_handleDataChanged:function(){this._requireReady&&this.render()},init:function(){this.callBase(),this.createAction("onToolbarPreparing",{excludeValidators:["disabled","readOnly"]})},render:function(){this._toolbarOptions=this._getToolbarOptions(),this.callBase.apply(this,arguments)},setToolbarItemDisabled:function(e,t){var n=this._toolbar;if(n){var i=n.option("items")||[],o=i.indexOf(i.filter(function(t){return t.name===e})[0]);if(o>=0){var a="items["+o+"]";n.option(a+".options")?n.option(a+".options.disabled",t):n.option(a+".disabled",t)}}},updateToolbarDimensions:function(){this._toolbar&&(0,u.triggerResizeEvent)(this.getHeaderPanel())},getHeaderPanel:function(){return this.element()},getHeight:function(){return this.getElementHeight()},optionChanged:function(e){"onToolbarPreparing"===e.name&&(this._invalidate(),e.handled=!0),this.callBase(e)},isVisible:function(){return this._toolbarOptions&&this._toolbarOptions.visible},allowDragging:s.noop});e.exports={defaultOptions:function(){return{}},views:{headerPanel:d},extenders:{controllers:{resizing:{_updateDimensionsCore:function(){this.callBase.apply(this,arguments),this.getView("headerPanel").updateToolbarDimensions()}}}}}},function(e,t,n){var i=n(4),o=n(1),a=n(0),r=function(e){return e&&e.__esModule?e:{default:e}}(n(339)),s=n(6);e.exports={defaultOptions:function(){return{stateStoring:{enabled:!1,storageKey:null,type:"localStorage",customLoad:null,customSave:null,savingTimeout:2e3}}},controllers:{stateStoring:r.default.StateStoringController},extenders:{views:{rowsView:{init:function(){var e=this,t=e.getController("data");e.callBase(),t.stateLoaded.add(function(){if(t.isLoaded()&&!t.getDataSource()){e.setLoading(!1),e.renderNoDataText();var n=e.component.getView("columnHeadersView");n&&n.render(),e.component._fireContentReadyAction()}})}}},controllers:{stateStoring:{init:function(){var e,t,n,o,r,s;this.callBase.apply(this,arguments),t=(e=this).getController("columns"),n=e.getController("selection"),o=e.getController("export"),r=e.getController("data"),s=e.getView("pagerView"),t&&t.columnsChanged.add(function(){var n=t.getUserState(),o=(0,i.getKeyHash)(n),r=(0,i.getKeyHash)(e._state.columns);(0,i.equalByValue)(r,o)||((0,a.extend)(e._state,{columns:n}),e.isEnabled()&&e.save())}),n&&n.selectionChanged.add(function(t){(0,a.extend)(e._state,{selectedRowKeys:t.selectedRowKeys,selectionFilter:t.selectionFilter}),e.isEnabled()&&e.save()}),r&&(e._initialPageSize=e.option("paging.pageSize"),r.changed.add(function(){var t=r.getUserState(),n=e.option("focusedRowEnabled");(0,a.extend)(e._state,t,{allowedPageSizes:s?s.getPageSizes():void 0,filterPanel:{filterEnabled:e.option("filterPanel.filterEnabled")},filterValue:e.option("filterValue"),focusedRowKey:n?e.option("focusedRowKey"):void 0}),e.isEnabled()&&e.save()})),o&&o.selectionOnlyChanged.add(function(){(0,a.extend)(e._state,{exportSelectionOnly:o.selectionOnly()}),e.isEnabled()&&e.save()})},isLoading:function(){return this.callBase()||this.getController("data").isStateLoading()},state:function(e){var t=this.callBase.apply(this,arguments);return void 0!==e&&this.applyState((0,a.extend)({},e)),t},applyState:function(e){var t=this,n=e.allowedPageSizes,i=e.searchText,a=e.selectedRowKeys,r=e.selectionFilter,s=t.getController("export"),l=t.getController("columns"),u=t.getController("data"),c=t.getController("filterSync"),d=t.option("scrolling.mode"),h="virtual"===d||"infinite"===d,p=!0===t.option("pager.visible")&&t.option("pager.showPageSizeSelector");t.component.beginUpdate(),l&&l.setUserState(e.columns),s&&s.selectionOnly(e.exportSelectionOnly),t.option("selectedRowKeys",a||[]),t.option("selectionFilter",r),n&&"auto"===t.option("pager.allowedPageSizes")&&(t.option("pager").allowedPageSizes=n),t.option("focusedRowEnabled")&&t.option("focusedRowKey",e.focusedRowKey),t.component.endUpdate(),t.option("searchPanel.text",i||""),t.option("filterValue",e.filterValue||(c?c.getFilterValueFromColumns(e.columns):null)),t.option("filterPanel.filterEnabled",!e.filterPanel||e.filterPanel.filterEnabled),t.option("paging.pageSize",h&&!p||!(0,o.isDefined)(e.pageSize)?t._initialPageSize:e.pageSize),t.option("paging.pageIndex",e.pageIndex||0),u&&u.reset()}},columns:{getVisibleColumns:function(){var e=this.callBase.apply(this,arguments),t=this.getController("stateStoring");return t.isEnabled()&&!t.isLoaded()?[]:e}},data:{callbackNames:function(){return this.callBase().concat(["stateLoaded"])},_refreshDataSource:function(){var e=this,t=e.callBase,n=e.getController("stateStoring");if(n.isEnabled()&&!n.isLoaded()){clearTimeout(e._restoreStateTimeoutID);var i=new s.Deferred;return e._restoreStateTimeoutID=setTimeout(function(){n.load().always(function(){e._restoreStateTimeoutID=null,t.call(e),e.stateLoaded.fire(),i.resolve()})}),i.promise()}e.isStateLoading()||t.call(e)},isLoading:function(){var e=this.getController("stateStoring");return this.callBase()||e.isLoading()},isStateLoading:function(){return(0,o.isDefined)(this._restoreStateTimeoutID)},isLoaded:function(){return this.callBase()&&!this.isStateLoading()},dispose:function(){clearTimeout(this._restoreStateTimeoutID),this.callBase()}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(5)),a=n(7),r=i(n(38)),s=i(n(18)),l=i(n(31)),u=n(276),c=n(0),d=n(3),h=n(1),p=n(6),f=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/;t.StateStoringController=r.default.ViewController.inherit(function(){var e=function(e){var t="sessionStorage"===e.type?(0,u.sessionStorage)():(0,a.getWindow)().localStorage;if(!t)throw"file:"===(0,a.getWindow)().location.protocol&&l.default.msie?new Error("E1038"):new Error("E1007");return t},t=function(e){return(0,h.isDefined)(e.storageKey)?e.storageKey:"storage"};return{_loadState:function(){var n=this.option("stateStoring");if("custom"===n.type)return n.customLoad&&n.customLoad();try{return JSON.parse(e(n).getItem(t(n)))}catch(e){s.default.log(e.message)}},_saveState:function(n){var i=this.option("stateStoring");if("custom"!==i.type)try{e(i).setItem(t(i),JSON.stringify(n))}catch(e){}else i.customSave&&i.customSave(n)},publicMethods:function(){return["state"]},isEnabled:function(){return this.option("stateStoring.enabled")},init:function(){var e=this;return e._state={},e._isLoaded=!1,e._isLoading=!1,e._windowUnloadHandler=function(){void 0!==e._savingTimeoutID&&e._saveState(e.state())},o.default.on((0,a.getWindow)(),"unload",e._windowUnloadHandler),e},isLoaded:function(){return this._isLoaded},isLoading:function(){return this._isLoading},load:function(){var e,t=this;return t._isLoading=!0,(e=(0,p.fromPromise)(t._loadState())).done(function(e){t._isLoaded=!0,t._isLoading=!1,t.state(e)}),e},state:function(e){var t=this;return arguments.length?(t._state=(0,c.extend)({},e),void function e(t){t&&(0,d.each)(t,function(n,i){var o;(0,h.isPlainObject)(i)||Array.isArray(i)?e(i):"string"==typeof i&&(o=f.exec(i))&&(t[n]=new Date(Date.UTC(+o[1],+o[2]-1,+o[3],+o[4],+o[5],+o[6])))})}(t._state)):(0,c.extend)(!0,{},t._state)},save:function(){var e=this;clearTimeout(e._savingTimeoutID),e._savingTimeoutID=setTimeout(function(){e._saveState(e.state()),e._savingTimeoutID=void 0},e.option("stateStoring.savingTimeout"))},optionChanged:function(e){var t=this;switch(e.name){case"stateStoring":t.isEnabled()&&!t.isLoading()&&t.load(),e.handled=!0;break;default:t.callBase(e)}},dispose:function(){clearTimeout(this._savingTimeoutID),o.default.off((0,a.getWindow)(),"unload",this._windowUnloadHandler)}}}())},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(5)),r=i(n(23)),s=n(36),l=n(1),u=n(3),c=n(0),d=i(n(44)),h=i(n(19)),p=i(n(15)),f=n(9),g=i(n(89)),_=i(n(279)),m=n(6),v="dx-editor-cell",y="dx-selection",b="dx-select-checkbox",x="dx-command-select",w="dx-data-row",C="selection.showCheckBoxesMode",k="selection.mode",S=function(e,t){var n=e.getController("selection"),i=e.getView("rowsView"),a=(0,o.default)(t.target).closest("."+w),r=i.getRowIndex(a);r<0||("onLongTap"===e.option(C)?n.isSelectionWithCheckboxes()?n.stopSelectionWithCheckboxes():n.startSelectionWithCheckboxes():("onClick"===e.option(C)&&n.startSelectionWithCheckboxes(),"always"!==e.option(C)&&n.changeItemSelection(r,{control:!0})))};t.SelectionController=r.default.Controller.inherit(function(){var e=function(e,t){t.component.getView("rowsView").renderSelectCheckBoxContainer((0,o.default)(e),t)},t=function(e,t){var n=t.column,i=(0,o.default)(e),a=t.component.getView("columnHeadersView");i.addClass(v),a._renderSelectAllCheckBox(i,n),a._attachSelectAllCheckBoxClickEvent(i)};return{init:function(){this._dataController=this.getController("data"),this._selectionMode=this.option(k),this._isSelectionWithCheckboxes=!1,this._selection=this._createSelection(),this._updateSelectColumn(),this.createAction("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})},_getSelectionConfig:function(){var e=this,t=e._dataController,n=e.option("selection")||{};return{selectedKeys:e.option("selectedRowKeys"),mode:e._selectionMode,deferred:n.deferred,maxFilterLengthInRequest:n.maxFilterLengthInRequest,selectionFilter:e.option("selectionFilter"),key:function(){return t&&t.key()},keyOf:function(e){return t&&t.keyOf(e)},dataFields:function(){return t.dataSource()&&t.dataSource().select()},load:function(e){return t.dataSource()&&t.dataSource().load(e)||(new m.Deferred).resolve([])},plainItems:function(){return t.items(!0)},isItemSelected:function(e){return e.selected},isSelectableItem:function(e){return e&&"data"===e.rowType&&!e.inserted},getItemData:function(e){return e&&(e.oldData||e.data||e)},filter:function(){return t.getCombinedFilter()},totalCount:function(){return t.totalCount()},onSelectionChanged:e._updateSelectedItems.bind(this)}},_updateSelectColumn:function(){var n=this.getController("columns"),i=this.isSelectColumnVisible();n.addCommandColumn({type:"selection",command:"select",visible:i,visibleIndex:-1,dataType:"boolean",alignment:"center",cssClass:x,width:"auto",cellTemplate:e,headerCellTemplate:t}),n.columnOption("command:select","visible",i)},_createSelection:function(){var e=this._getSelectionConfig();return new _.default(e)},_fireSelectionChanged:function(e){e&&this.executeAction("onSelectionChanged",e);var t=this.option("selection.deferred")?{selectionFilter:this.option("selectionFilter")}:{selectedRowKeys:this.option("selectedRowKeys")};this.selectionChanged.fire(t)},_updateCheckboxesState:function(e){var t=e.isDeferredMode,n=e.selectionFilter,i=e.selectedItemKeys,o=e.removedItemKeys;"onClick"===this.option(C)&&((t?n&&function(e,t){var n=0,i=e._dataController.store(),o=i&&i.key(),a=Array.isArray(o);if(!t.length)return!1;if(a&&Array.isArray(t[0])&&"and"===t[1]){for(var r=0;r<t.length;r++)if(Array.isArray(t[r])){if(t[r][0]!==o[n]||"="!==t[r][1])return!0;n++}return!1}return o!==t[0]}(this,n):i.length>1)?this.startSelectionWithCheckboxes():(t?n&&!n.length:0===i.length&&o.length)&&this.stopSelectionWithCheckboxes())},_updateSelectedItems:function(e){var t,n=this,i=n.option("selection.deferred"),o=n._selection.selectionFilter(),a=n._dataController,r=a.items();if(r){var s=n.isSelectionWithCheckboxes(),l=n.getChangedItemIndexes(r);n._updateCheckboxesState({selectedItemKeys:e.selectedItemKeys,removedItemKeys:e.removedItemKeys,selectionFilter:o,isDeferredMode:i}),(l.length||s!==n.isSelectionWithCheckboxes())&&a.updateItems({changeType:"updateSelection",itemIndexes:l}),i?(n.option("selectionFilter",o),t={}):(e.addedItemKeys.length||e.removedItemKeys.length)&&(n._selectedItemsInternalChange=!0,n.option("selectedRowKeys",e.selectedItemKeys.slice(0)),n._selectedItemsInternalChange=!1,t={selectedRowsData:e.selectedItems.slice(0),selectedRowKeys:e.selectedItemKeys.slice(0),currentSelectedRowKeys:e.addedItemKeys.slice(0),currentDeselectedRowKeys:e.removedItemKeys.slice(0)}),n._fireSelectionChanged(t)}},getChangedItemIndexes:function(e){for(var t=[],n=this.option("selection.deferred"),i=0,o=e.length;i<o;i++){var a=e[i],r=this.isRowSelected(n?a.data:a.key);this._selection.isDataItem(a)&&a.isSelected!==r&&t.push(i)}return t},callbackNames:function(){return["selectionChanged"]},optionChanged:function(e){var t=this;switch(t.callBase(e),e.name){case"selection":var n=t._selectionMode;t.init();var i=t._selectionMode,o=t.option("selectedRowKeys");n!==i&&("single"===i?o.length>1&&(o=[o[0]]):"multiple"!==i&&(o=[])),t.selectRows(o).always(function(){t._fireSelectionChanged()}),t.getController("columns").updateColumns(),e.handled=!0;break;case"selectionFilter":this._selection.selectionFilter(e.value),e.handled=!0;break;case"selectedRowKeys":Array.isArray(e.value)&&!t._selectedItemsInternalChange&&t.component.getDataSource()&&t.selectRows(e.value),e.handled=!0}},publicMethods:function(){return["selectRows","deselectRows","selectRowsByIndexes","getSelectedRowKeys","getSelectedRowsData","clearSelection","selectAll","deselectAll","startSelectionWithCheckboxes","stopSelectionWithCheckboxes","isRowSelected"]},isRowSelected:function(e){return this._selection.isItemSelected(e)},isSelectColumnVisible:function(){return"multiple"===this.option(k)&&("always"===this.option(C)||"onClick"===this.option(C)||this._isSelectionWithCheckboxes)},_isOnePageSelectAll:function(){return"page"===this.option("selection.selectAllMode")},isSelectAll:function(){return this._selection.getSelectAllState(this._isOnePageSelectAll())},selectAll:function(){return"onClick"===this.option(C)&&this.startSelectionWithCheckboxes(),this._selection.selectAll(this._isOnePageSelectAll())},deselectAll:function(){return this._selection.deselectAll(this._isOnePageSelectAll())},clearSelection:function(){return this.selectedItemKeys([])},refresh:function(){var e=this.option("selectedRowKeys")||[];return!this.option("selection.deferred")&&e.length?this.selectedItemKeys(e):(new m.Deferred).resolve().promise()},selectedItemKeys:function(e,t,n,i){return this._selection.selectedItemKeys(e,t,n,i)},getSelectedRowKeys:function(){return this._selection.getSelectedItemKeys()},selectRows:function(e,t){return this.selectedItemKeys(e,t)},deselectRows:function(e){return this.selectedItemKeys(e,!0,!0)},selectRowsByIndexes:function(e){var t=this._dataController.items(),n=[];return Array.isArray(e)||(e=Array.prototype.slice.call(arguments,0)),(0,u.each)(e,function(){var e=t[this];e&&"data"===e.rowType&&n.push(e.key)}),this.selectRows(n)},getSelectedRowsData:function(){return this._selection.getSelectedItems()},changeItemSelection:function(e,t){return t=t||{},this.isSelectionWithCheckboxes()&&(t.control=!0),this._selection.changeItemSelection(this._dataController.getRowIndexDelta()+e,t)},focusedItemIndex:function(e){return(0,l.isDefined)(e)?void(this._selection._focusedItemIndex=e):this._selection._focusedItemIndex},isSelectionWithCheckboxes:function(){return"multiple"===this.option(k)&&("always"===this.option(C)||this._isSelectionWithCheckboxes)},startSelectionWithCheckboxes:function(){var e=this;return"multiple"===e.option(k)&&!e.isSelectionWithCheckboxes()&&(e._isSelectionWithCheckboxes=!0,e._updateSelectColumn(),!0)},stopSelectionWithCheckboxes:function(){var e=this;return!!e._isSelectionWithCheckboxes&&(e._isSelectionWithCheckboxes=!1,e._updateSelectColumn(),!0)}}}()),e.exports={defaultOptions:function(){return{selection:{mode:"none",showCheckBoxesMode:"onClick",allowSelectAll:!0,selectAllMode:"allPages",maxFilterLengthInRequest:1500,deferred:!1},selectionFilter:[],selectedRowKeys:[]}},controllers:{selection:t.SelectionController},extenders:{controllers:{data:{init:function(){var e=this.getController("selection"),t=this.option("selection.deferred");this.callBase.apply(this,arguments),t&&e._updateCheckboxesState({isDeferredMode:!0,selectionFilter:this.option("selectionFilter")})},_loadDataSource:function(){var e=this;return e.callBase().done(function(){e.getController("selection").refresh()})},_processDataItem:function(e,t){var n=this.getController("selection"),i=n.isSelectColumnVisible(),o=t.isDeferredSelection=void 0===t.isDeferredSelection?this.option("selection.deferred"):t.isDeferredSelection,a=this.callBase.apply(this,arguments);if(a.isSelected=n.isRowSelected(o?a.data:a.key),i&&a.values)for(var r=0;r<t.visibleColumns.length;r++)if("select"===t.visibleColumns[r].command){a.values[r]=a.isSelected;break}return a},refresh:function(e){var t=this,n=new m.Deferred;return this.callBase.apply(this,arguments).done(function(){!e||e.selection?t.getController("selection").refresh().done(n.resolve).fail(n.reject):n.resolve()}).fail(n.reject),n.promise()},_handleDataChanged:function(e){this.callBase.apply(this,arguments),e&&"refresh"!==e.changeType||this._repaintChangesOnly||this.getController("selection").focusedItemIndex(-1)},_applyChange:function(e){var t=this;return e&&"updateSelection"===e.changeType?void e.items.forEach(function(e,n){var i=t._items[n];i&&(i.isSelected=e.isSelected,i.values=e.values)}):this.callBase.apply(this,arguments)},_endUpdateCore:function(){var e=this._changes;if(e.length>1&&e.every(function(e){return"updateSelection"===e.changeType})){var t=e.map(function(e){return e.itemIndexes||[]}).reduce(function(e,t){return e.concat(t)});this._changes=[{changeType:"updateSelection",itemIndexes:t}]}this.callBase.apply(this,arguments)}},contextMenu:{_contextMenuPrepared:function(e){var t=e.event;t.originalEvent&&"dxhold"!==t.originalEvent.type||e.items&&e.items.length>0||S(this,t)}}},views:{columnHeadersView:{init:function(){var e=this;e.callBase(),e.getController("selection").selectionChanged.add(e._updateSelectAllValue.bind(e))},_updateSelectAllValue:function(){var e=this,t=e.element(),n=t&&t.find("."+b);t&&n.length&&"multiple"===e.option("selection.mode")&&n.dxCheckBox("instance").option("value",e.getController("selection").isSelectAll())},_handleDataChanged:function(e){this.callBase(e),e&&"refresh"!==e.changeType||this._updateSelectAllValue()},_renderSelectAllCheckBox:function(e,t){var n,i=this,a=i.getController("selection");return n=(0,o.default)("<div>").appendTo(e).addClass(b),i.setAria("label",p.default.format("dxDataGrid-ariaSelectAll"),e),i.getController("editorFactory").createEditor(n,(0,c.extend)({},t,{parentType:"headerRow",dataType:"boolean",value:a.isSelectAll(),editorOptions:{visible:i.option("selection.allowSelectAll")||!1!==a.isSelectAll()},tabIndex:i.option("useLegacyKeyboardNavigation")?-1:i.option("tabIndex")||0,setValue:function(e,t){var n=i.option("selection.allowSelectAll");t.component.option("visible",n||!1!==t.component.option("value")),t.event&&a.isSelectAll()!==e&&(t.value&&!n?t.component.option("value",!1):t.value?a.selectAll():a.deselectAll(),t.event.preventDefault())}})),n},_attachSelectAllCheckBoxClickEvent:function(e){a.default.on(e,h.default.name,this.createAction(function(e){var t=e.event;(0,o.default)(t.target).closest("."+b).length||a.default.trigger((0,o.default)(t.currentTarget).children("."+b),h.default.name),t.preventDefault()}))}},rowsView:{renderSelectCheckBoxContainer:function(e,t){"data"!==t.rowType||t.row.inserted?(0,s.setEmptyText)(e):(e.addClass(v),this._attachCheckBoxClickEvent(e),this.setAria("label",p.default.format("dxDataGrid-ariaSelectRow"),e),this._renderSelectCheckBox(e,t))},_renderSelectCheckBox:function(e,t){var n=(0,o.default)("<div>").addClass(b).appendTo(e);return this.getController("editorFactory").createEditor(n,(0,c.extend)({},t.column,{parentType:"dataRow",dataType:"boolean",lookup:null,value:t.value,tabIndex:-1,setValue:function(t,n){n&&n.event&&"keydown"===n.event.type&&a.default.trigger(e,h.default.name,n)},row:t.row})),n},_attachCheckBoxClickEvent:function(e){a.default.on(e,h.default.name,this.createAction(function(e){var t=this.getController("selection"),n=e.event,i=this.getRowIndex((0,o.default)(n.currentTarget).closest(".dx-row"));i>=0&&(t.startSelectionWithCheckboxes(),t.changeItemSelection(i,{shift:n.shiftKey}),(0,o.default)(n.target).closest("."+b).length&&this.getController("data").updateItems({changeType:"updateSelection",itemIndexes:[i]}))}))},_update:function(e){var t=this,n=t.getTableElements();"updateSelection"===e.changeType?n.length>0&&((0,u.each)(n,function(n,i){(0,u.each)(e.itemIndexes||[],function(n,a){var r,s;e.items[a]&&((r=t._getRowElements((0,o.default)(i)).eq(a)).length&&(s=e.items[a].isSelected,r.toggleClass(y,void 0!==s&&s).find("."+b).dxCheckBox("option","value",s),t.setAria("selected",s,r)))})}),t._updateCheckboxesClass()):t.callBase(e)},_createTable:function(){var e=this,t=e.option("selection.mode"),n=e.callBase.apply(e,arguments);return"none"!==t&&("onLongTap"!==e.option(C)&&d.default.touch||a.default.on(n,(0,f.addNamespace)(g.default.name,"dxDataGridRowsView"),"."+w,e.createAction(function(t){S(e.component,t.event),t.event.stopPropagation()})),a.default.on(n,"mousedown selectstart",e.createAction(function(e){var t=e.event;t.shiftKey&&t.preventDefault()}))),n},_createRow:function(e){var t,n=this.callBase(e);return e&&((t=!!e.isSelected)&&n.addClass(y),this.setAria("selected",t,n)),n},_rowClick:function(e){var t=this,n=e.event,i=(0,o.default)(n.target).closest(".dx-selection-disabled").length;t.isClickableElement((0,o.default)(n.target))||(i||"multiple"===t.option(k)&&"always"===t.option(C)||t.getController("selection").changeItemSelection(e.rowIndex,{control:n.ctrlKey||n.metaKey,shift:n.shiftKey})&&(n.preventDefault(),e.handled=!0),t.callBase(e))},isClickableElement:function(e){return!!e.closest("."+x).length},_renderCore:function(e){this.callBase(e),this._updateCheckboxesClass()},_updateCheckboxesClass:function(){var e=this.getTableElements(),t=this.getController("selection"),n=t.isSelectColumnVisible()&&!t.isSelectionWithCheckboxes();(0,u.each)(e,function(e,t){(0,o.default)(t).toggleClass("dx-select-checkboxes-hidden",n)})}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=n(4),r=i(n(38)),s=i(n(166)),l=i(n(15)),u=i(n(30)),c=i(n(34)),d=i(n(141)),h=i(n(16)),p=i(n(46)),f=n(1),g=n(0),_=n(3),m="column-chooser-button",v="notouch-action",y="column-chooser",b="dx-column-chooser-item",x=function(e,t){var n,i=[],o="select"===e.option("columnChooser.mode");return t.length&&(0,_.each)(t,function(e,t){n={text:t.caption,cssClass:t.cssClass,allowHiding:t.allowHiding,expanded:!0,id:t.index,disabled:!1===t.allowHiding,parentId:(0,f.isDefined)(t.ownerBand)?t.ownerBand:null},o&&(n.selected=t.visible),i.push(n)}),i},w=r.default.ViewController.inherit({renderShowColumnChooserButton:function(e){var t,n=this,i=n.addWidgetPrefix(m),a=n.option("columnChooser.enabled"),r=e.find("."+i);a?r.length?r.show():(t=(0,o.default)("<div>").addClass(i).appendTo(e),n._createComponent(t,c.default,{icon:y,onClick:function(){n.getView("columnChooserView").showColumnChooser()},hint:n.option("columnChooser.title"),integrationOptions:{}})):r.hide()},getPosition:function(){var e=this.getView("rowsView");return{my:"right bottom",at:"right bottom",of:e&&e.element(),collision:"fit",offset:"-2 -2",boundaryOffset:"2 2"}}}),C=s.default.ColumnsView.inherit({_resizeCore:a.noop,_isWinDevice:function(){return!!h.default.real().win},_updateList:function(e){var t,n=this._popupContainer.$content(),i="select"===this.option("columnChooser.mode"),o=this._columnChooserList,a=this._columnsController.getChooserColumns(i);if(i&&o&&e&&"selection"===e.changeType){t=x(this,a);for(var r=0;r<t.length;r++)t[r].id===e.columnIndex&&o.option("items["+r+"].selected",t[r].selected)}else i&&o&&"full"!==e||(this._popupContainer._wrapper().toggleClass(this.addWidgetPrefix("column-chooser-mode-drag"),!i).toggleClass(this.addWidgetPrefix("column-chooser-mode-select"),i),t=x(this,a),this._renderTreeView(n,t))},_initializePopupContainer:function(){var e=this,t=e.element().addClass(e.addWidgetPrefix("column-chooser")),n=e.option("columnChooser"),i=u.default.current(),a=u.default.isGeneric(i),r=u.default.isMaterial(i),s={visible:!1,shading:!1,showCloseButton:!1,dragEnabled:!0,resizeEnabled:!0,toolbarItems:[{text:n.title,toolbar:"top",location:a||r?"before":"center"}],position:e.getController("columnChooser").getPosition(),width:n.width,height:n.height,rtlEnabled:e.option("rtlEnabled"),onHidden:function(){e._isWinDevice()&&(0,o.default)("body").removeClass(e.addWidgetPrefix(v))},container:n.container};a||r?(0,g.extend)(s,{showCloseButton:!0}):s.toolbarItems[s.toolbarItems.length]={shortcut:"cancel"},(0,f.isDefined)(this._popupContainer)?this._popupContainer.option(s):(e._popupContainer=e._createComponent(t,p.default,s),e._popupContainer.on("optionChanged",function(t){"visible"===t.name&&e.renderCompleted.fire()}))},_renderCore:function(e){this._popupContainer&&this._updateList(e)},_renderTreeView:function(e,t){var n,i,r=this,s=this.option("columnChooser"),l="select"===s.mode,u={items:t,dataStructure:"plain",activeStateEnabled:!0,focusStateEnabled:!0,hoverStateEnabled:!0,itemTemplate:"item",showCheckBoxesMode:"none",rootValue:null,searchEnabled:s.allowSearch,searchTimeout:s.searchTimeout};i=e.find(".dx-scrollable").data("dxScrollable"),n=i&&i.scrollTop(),l&&!this._columnsController.isBandColumnsUsed()&&e.addClass(this.addWidgetPrefix("column-chooser-plain")),u.onContentReady=function(e){(0,a.deferUpdate)(function(){if(n){var t=(0,o.default)(e.element).find(".dx-scrollable").data("dxScrollable");t&&t.scrollTo({y:n})}r.renderCompleted.fire()})},this._isWinDevice()&&(u.useNativeScrolling=!1),(0,g.extend)(u,l?this._prepareSelectModeConfig():this._prepareDragModeConfig()),this._columnChooserList?(u.searchEnabled||(u.searchValue=""),this._columnChooserList.option(u)):(this._columnChooserList=this._createComponent(e,d.default,u),e.addClass(this.addWidgetPrefix("column-chooser-list")))},_prepareDragModeConfig:function(){return{noDataText:this.option("columnChooser").emptyPanelText,activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,itemTemplate:function(e,t,n){(0,o.default)(n).text(e.text).parent().addClass(e.cssClass).addClass(b)}}},_prepareSelectModeConfig:function(){var e=this;return{selectNodesRecursive:!1,showCheckBoxesMode:"normal",onItemSelectionChanged:function(t){1!==e._columnsController.getVisibleColumns().filter(function(e){return!e.command}).length||t.itemData.selected?setTimeout(function(){e._columnsController.columnOption(t.itemData.id,"visible",t.itemData.selected)},300):t.component.selectItem(t.itemElement)}}},_columnOptionChanged:function(e){var t=e.changeTypes,n=e.optionNames,i="select"===this.option("columnChooser.mode");this.callBase(e),i&&(n.visible&&1===n.length&&void 0!==e.columnIndex?this.render(null,{changeType:"selection",columnIndex:e.columnIndex}):(n.showInColumnChooser||n.visible||t.columns&&n.all)&&this.render(null,"full"))},optionChanged:function(e){switch(e.name){case"columnChooser":this._initializePopupContainer(),this.render(null,"full");break;default:this.callBase(e)}},getColumnElements:function(){var e,t,n=[],i="select"===this.option("columnChooser.mode"),a=this._columnsController.getChooserColumns(i),r=this._popupContainer&&this._popupContainer.$content(),s=r&&r.find(".dx-treeview-node");return s&&a.forEach(function(i){e=s.filter("[data-item-id = '"+i.index+"']"),t=e.length?e.children("."+b).get(0):null,n.push(t)}),(0,o.default)(n)},getName:function(){return"columnChooser"},getColumns:function(){return this._columnsController.getChooserColumns()},allowDragging:function(e,t){var n=e&&e.allowHiding&&("columnChooser"!==t||!e.visible&&this._columnsController.isParentColumnVisible(e.index));return this.isColumnChooserVisible()&&n},getBoundingRect:function(){var e,t=this._popupContainer&&this._popupContainer._container();return t&&t.is(":visible")?{left:(e=t.offset()).left,top:e.top,right:e.left+t.outerWidth(),bottom:e.top+t.outerHeight()}:null},showColumnChooser:function(){this._popupContainer||(this._initializePopupContainer(),this.render()),this._popupContainer.show(),this._isWinDevice()&&(0,o.default)("body").addClass(this.addWidgetPrefix(v))},hideColumnChooser:function(){this._popupContainer&&this._popupContainer.hide()},isColumnChooserVisible:function(){var e=this._popupContainer;return e&&e.option("visible")},publicMethods:function(){return["showColumnChooser","hideColumnChooser"]}});e.exports={defaultOptions:function(){return{columnChooser:{enabled:!1,allowSearch:!1,searchTimeout:500,mode:"dragAndDrop",width:250,height:260,title:l.default.format("dxDataGrid-columnChooserTitle"),emptyPanelText:l.default.format("dxDataGrid-columnChooserEmptyText"),container:void 0}}},controllers:{columnChooser:w},views:{columnChooserView:C},extenders:{views:{headerPanel:{_getToolbarItems:function(){var e=this.callBase();return this._appendColumnChooserItem(e)},_appendColumnChooserItem:function(e){var t=this;if(t.option("columnChooser.enabled")){var n=t.option("columnChooser.title"),i={widget:"dxButton",options:{icon:y,onClick:function(){t.component.getView("columnChooserView").showColumnChooser()},hint:n,text:n,onInitialized:function(e){(0,o.default)(e.element).addClass(t._getToolbarButtonClass(t.addWidgetPrefix(m)))}},showText:"inMenu",location:"after",name:"columnChooserButton",locateInMenu:"auto",sortIndex:40};e.push(i)}return e},optionChanged:function(e){switch(e.name){case"columnChooser":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}},isVisible:function(){var e=this.option("columnChooser.enabled");return this.callBase()||e}}},controllers:{columns:{allowMoveColumn:function(e,t,n,i){return!("select"===this.option("columnChooser.mode")&&"columnChooser"===i)&&this.callBase(e,t,n,i)}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(8)),a=i(n(241)),r=n(0),s=i(n(609)),l="dx-treeview",u=s.default.inherit(a.default).inherit({_addWidgetPrefix:function(e){return l+"-"+e},_optionChanged:function(e){switch(e.name){case"searchValue":this._showCheckboxes()&&this._isRecursiveSelection()&&this._removeSelection(),this._initDataAdapter(),this._updateSearch(),this._repaintContainer();break;case"searchExpr":this._initDataAdapter(),this.repaint();break;case"searchMode":this.option("expandNodesRecursive")?this._updateDataAdapter():this._initDataAdapter(),this.repaint();break;default:this.callBase(e)}},_updateDataAdapter:function(){this._setOptionSilent("expandNodesRecursive",!1),this._initDataAdapter(),this._setOptionSilent("expandNodesRecursive",!0)},_getDataAdapterOptions:function(){return(0,r.extend)(this.callBase(),{searchValue:this.option("searchValue"),searchMode:this.option("searchMode")||"contains",searchExpr:this.option("searchExpr")})},_updateSearch:function(){if(this._searchEditor){var e=this._getSearchEditorOptions();this._searchEditor.option(e)}},_repaintContainer:function(){var e,t=this.$element().find(".dx-treeview-node-container").first();t.length&&(t.empty(),e=this._dataAdapter.getRootNodes(),this._renderEmptyMessage(e),this._renderItems(t,e),this._fireContentReadyAction())},_focusTarget:function(){return this.option("searchEnabled")?this._scrollableContainer.$element():this.callBase()},_addWidgetClass:function(){this.$element().addClass(this._widgetClass())},_clean:function(){this.callBase(),this._removeSearchBox()}});(0,o.default)("dxTreeView",u),e.exports=u},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(14)),r=i(n(23)),s=n(40),l=n(6);t.createOffsetFilter=function(e,t){var n,i,o,a,l,u=(0,s.normalizeSortingInfo)(t.group),c=[];for(n=0;n<e.length;n++){for(o=[],i=0;i<=n;i++)a=u[i].selector,n!==i||null!==e[i]&&!1!==e[i]&&!0!==e[i]?"<"===(l=[a,n===i?u[i].desc?">":"<":"=",e[i]])[1]?o.push([l,"or",[a,"=",null]]):o.push(l):!1===e[i]?o.push([a,"=",!!u[i].desc||null]):(e[i]?!u[i].desc:u[i].desc)?o.push([a,"<>",e[i]]):(o.push([a,"<>",null]),o.push([a,"=",null]));c.push(r.default.combineFilters(o))}return c=r.default.combineFilters(c,"or"),r.default.combineFilters([c,t.filter])},t.GroupingHelper=a.default.inherit(function(){var e=function(e,t){var n=e.hash;return n&&n[JSON.stringify(t)]},t=function(e,t){var n,i=0,o=e.length-1;if(!e.length)return 0;do{var a=o+i>>1;e[a].offset>t?o=a:i=a}while(o-i>1);for(n=i;n<=o&&!(e[n].offset>t);n++);return n},n=function(e,t){var n,i;for(t=t||[],i=0;i<e.length;i++)if((n=e[i]).data&&n.data.offset!==n.offset){n.offset=n.data.offset;for(var o=0;o<t.length;o++)t[o].offset=n.offset}e.sort(function(e,t){return e.offset-t.offset})};return{ctor:function(e){this._dataSource=e,this.reset()},reset:function(){this._groupsInfo=[],this._totalCountCorrection=0},totalCountCorrection:function(){return this._totalCountCorrection},updateTotalItemsCount:function(e){this._totalCountCorrection=e||0},isGroupItemCountable:function(e){return!this._isVirtualPaging()||!e.isContinuation},_isVirtualPaging:function(){var e=this._dataSource.option("scrolling.mode");return"virtual"===e||"infinite"===e},itemsCount:function(){var e=this._dataSource._dataSource,t=r.default.normalizeSortingInfo(e.group()||[]).length,n=function e(t,n,i){var o,a=0;if(n)if(i)for(o=0;o<n.length;o++)t.isGroupItemCountable(n[o])&&a++,a+=e(t,n[o].items,i-1);else a=n.length;return a}(this,e.items(),t);return n},foreachGroups:function(e,t,i,a,r){return function e(t,s,u,c){function d(e,t,n,i){var o=t&&e(t,n);return o&&i.push(o),o}var h,p,f=[];for(h=0;h<t.length;h++){if(c.push(t[h].data),!u&&!1===d(s,t[h].data,c,f))return!1;if((!t[h].data||t[h].data.isExpanded||i)&&((p=e(t[h].children,s,u,c))&&f.push(p),!1===p))return!1;if(u&&!1===d(s,t[h].data,c,f))return!1;t[h].data&&t[h].data.offset===t[h].offset||(a=!0),c.pop()}var g=r&&c.slice(0);return a&&l.when.apply(o.default,f).always(function(){n(t,g)})}(this._groupsInfo,e,t,[])},findGroupInfo:function(t){var n,i,o=this._groupsInfo;for(n=0;o&&n<t.length;n++)o=(i=e(o,t[n]))&&i.children;return i&&i.data},addGroupInfo:function(i){var o,a,r,s=i.path,l=this._groupsInfo;for(r=0;r<s.length;r++)(a=e(l,s[r]))||(a={key:s[r],offset:i.offset,data:{offset:i.offset,isExpanded:!0,path:s.slice(0,r+1)},children:[]},o=t(l,i.offset),l.splice(o,0,a),l.hash=l.hash||{},l.hash[JSON.stringify(a.key)]=a),r===s.length-1&&(a.data=i,a.offset!==i.offset&&n(l)),l=a.children},allowCollapseAll:function(){return!0},refresh:function(e){var t,n=this,i=e.storeLoadOptions,o=(0,s.normalizeSortingInfo)(i.group||[]),a="_group"in n?(0,s.normalizeSortingInfo)(n._group||[]):o,r=Math.min(a.length,o.length);for(n._group=i.group,t=0;t<r;t++)if(a[t].selector!==o[t].selector){r=t;break}r?function e(t,n,i){var o;for(o=0;o<t.length;o++)n+1>=i?t[o].children=[]:e(t[o].children,n+1,i)}(n._groupsInfo,0,r):n.reset()},handleDataLoading:function(){},handleDataLoaded:function(e,t){t(e)},handleDataLoadedCore:function(e,t){t(e)}}}())},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(36)),r=n(4),s=n(3),l=n(1);e.exports={defaultOptions:function(){return{masterDetail:{enabled:!1,autoExpandAll:!1,template:null}}},extenders:{controllers:{columns:{_getExpandColumnsCore:function(){var e=this.callBase();return this.option("masterDetail.enabled")&&e.push({type:"detailExpand",cellTemplate:a.default.getExpandCellTemplate()}),e}},data:function(){var e=function(e){e._expandedItems=[],e._isExpandAll=e.option("masterDetail.autoExpandAll")};return{init:function(){e(this),this.callBase()},expandAll:function(e){var t=this;e<0?(t._isExpandAll=!0,t._expandedItems=[],t.updateItems()):t.callBase.apply(t,arguments)},collapseAll:function(e){var t=this;e<0?(t._isExpandAll=!1,t._expandedItems=[],t.updateItems()):t.callBase.apply(t,arguments)},isRowExpanded:function(e){var t=this,n=a.default.getIndexByKey(e,t._expandedItems);return Array.isArray(e)?t.callBase.apply(t,arguments):!!(t._isExpandAll^(n>=0&&t._expandedItems[n].visible))},_getRowIndicesForExpand:function(e){var t=this.getRowIndexByKey(e);return[t,t+1]},_changeRowExpandCore:function(e){var t,n,i=this;if(Array.isArray(e))return i.callBase.apply(i,arguments);if((t=a.default.getIndexByKey(e,i._expandedItems))>=0){var o=i._expandedItems[t].visible;i._expandedItems[t].visible=!o}else i._expandedItems.push({key:e,visible:!0}),(n=i.getController("editing"))&&n.correctEditRowIndexAfterExpand(e);i.updateItems({changeType:"update",rowIndices:i._getRowIndicesForExpand(e)})},_processDataItem:function(e,t){var n=this,i=n.callBase.apply(n,arguments);return i.isExpanded=n.isRowExpanded(i.key),void 0===t.detailColumnIndex&&(t.detailColumnIndex=-1,(0,s.each)(t.visibleColumns,function(e,n){if("expand"===n.command&&!(0,l.isDefined)(n.groupIndex))return t.detailColumnIndex=e,!1})),t.detailColumnIndex>=0&&(i.values[t.detailColumnIndex]=i.isExpanded),i},_processItems:function(e,t){var n,i=this,o=[];return e=i.callBase.apply(i,arguments),"loadingAll"===t?e:("refresh"===t&&(i._expandedItems=(0,r.grep)(i._expandedItems,function(e){return e.visible})),(0,s.each)(e,function(e,t){o.push(t),n=a.default.getIndexByKey(t.key,i._expandedItems),"data"===t.rowType&&(t.isExpanded||n>=0)&&!t.inserted&&o.push({visible:t.isExpanded,rowType:"detail",key:t.key,data:t.data,values:[]})}),o)},optionChanged:function(t){var n,i,o,a;if("masterDetail"===t.name){switch(t.name="dataSource",t.fullName){case"masterDetail":n=t.value||{},i=t.previousValue||{},o=n.enabled!==i.enabled,a=n.autoExpandAll!==i.autoExpandAll;break;case"masterDetail.enabled":o=!0;break;case"masterDetail.autoExpandAll":a=!0}(o||a)&&e(this)}this.callBase(t)}}}()},views:{rowsView:{_getCellTemplate:function(e){var t=this,n=e.column,i=t.getController("editing"),o=i&&i.isEditRow(e.rowIndex);return"detail"!==n.command||o?t.callBase.apply(t,arguments):t.option("masterDetail.template")||{allowRenderToDetachedContainer:!1,render:t._getDefaultTemplate(n)}},_cellPrepared:function(e,t){var n=this,i=n.component;n.callBase.apply(n,arguments),"detail"===t.rowType&&"detail"===t.column.command&&e.find("."+n.getWidgetContainerClass()).each(function(){var e=(0,o.default)(this).parent().data("dxDataGrid");e&&e.on("contentReady",function(){if(n._isFixedColumns){var e=(0,o.default)(i.getRowElement(t.rowIndex));e&&2===e.length&&e.eq(0).height()!==e.eq(1).height()&&i.updateDimensions()}else{var a=i.getScrollable();a&&a.update()}})})},_isDetailRow:function(e){return e&&e.rowType&&0===e.rowType.indexOf("detail")},_createRow:function(e){var t=this.callBase(e);return e&&this._isDetailRow(e)&&(this.option("showRowLines")&&t.addClass("dx-row-lines"),t.addClass("dx-master-detail-row"),(0,l.isDefined)(e.visible)&&t.toggle(e.visible)),t},_renderCells:function(e,t){var n=t.row,i=this._columnsController.getVisibleColumns();n.rowType&&this._isDetailRow(n)?this._renderCell(e,{value:null,row:n,rowIndex:n.rowIndex,column:{command:"detail"},columnIndex:0}).addClass("dx-cell-focus-disabled").addClass("dx-master-detail-cell").attr("colSpan",i.length):this.callBase.apply(this,arguments)}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(12)),r=i(n(5)),s=i(n(38)),l=i(n(19)),u=i(n(24)),c=i(n(77)),d=n(9),h=i(n(31)),p=n(0),f=i(n(346)),g="dx-cell-focus-disabled",_="focus-overlay",m="dx-focused",v="dxDataGridEditorFactory",y=(0,d.addNamespace)([u.default.down,"focusin",l.default.name].join(" "),v),b="dx-pointer-events-target",x="dx-hidden",w=s.default.ViewController.inherit({_getFocusedElement:function(e){return e.find("td[tabindex]:focus, tr[tabindex]:focus, input:focus, textarea:focus, .dx-lookup-field:focus, .dx-checkbox:focus")},_getFocusCellSelector:function(){return".dx-row > td"},_updateFocusCore:function(){var e,t,n=this._$focusedElement,i=this.component&&this.component.$element();return i&&((n=this._getFocusedElement(i)).length&&(n.hasClass(g)||n.hasClass("dx-row")||(t=(e=n.closest(this._getFocusCellSelector()+", ."+g)).get(0)!==n.get(0)&&e.hasClass("dx-editor-inline-block"),n=e),n.length&&!n.hasClass(g)))?void this.focus(n,t):void this.loseFocus()},_updateFocus:function(e){var t=this,n=e&&e.event&&(0,o.default)(e.event.target).hasClass(t.addWidgetPrefix(_));t._isFocusOverlay=t._isFocusOverlay||n,clearTimeout(t._updateFocusTimeoutID),t._updateFocusTimeoutID=setTimeout(function(){delete t._updateFocusTimeoutID,t._isFocusOverlay||t._updateFocusCore(),t._isFocusOverlay=!1})},_updateFocusOverlaySize:function(e,t){var n=c.default.calculate(e,(0,p.extend)({collision:"fit"},t));n.h.oversize>0&&e.outerWidth(e.outerWidth()-n.h.oversize),n.v.oversize>0&&e.outerHeight(e.outerHeight()-n.v.oversize)},callbackNames:function(){return["focused"]},focus:function(e,t){var n=this;return void 0===e?n._$focusedElement:void(e&&(e.is(n._$focusedElement)||n._$focusedElement&&n._$focusedElement.removeClass(m),n._$focusedElement=e,clearTimeout(n._focusTimeoutID),n._focusTimeoutID=setTimeout(function(){delete n._focusTimeoutID,n.renderFocusOverlay(e,t),e.addClass(m),n.focused.fire(e)})))},renderFocusOverlay:function(e,t){var n,i=this;if(i._$focusOverlay||(i._$focusOverlay=(0,o.default)("<div>").addClass(i.addWidgetPrefix(_)+" "+b)),t)i._$focusOverlay.addClass(x);else if(e.length){var a=h.default.msie?"left bottom":h.default.mozilla?"right bottom":"left top",r=e.closest("."+i.addWidgetPrefix("content")),s=e[0].getBoundingClientRect();i._$focusOverlay.removeClass(x).appendTo(r).outerWidth(s.right-s.left+1).outerHeight(s.bottom-s.top+1),n={precise:!0,my:a,at:a,of:e,boundary:r.length&&r},i._updateFocusOverlaySize(i._$focusOverlay,n),c.default.setup(i._$focusOverlay,n),i._$focusOverlay.css("visibility","visible")}},resize:function(){var e=this._$focusedElement;e&&this.focus(e)},loseFocus:function(){this._$focusedElement&&this._$focusedElement.removeClass(m),this._$focusedElement=null,this._$focusOverlay&&this._$focusOverlay.addClass(x)},init:function(){this.createAction("onEditorPreparing",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this.createAction("onEditorPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this._updateFocusHandler=this._updateFocusHandler||this.createAction(this._updateFocus.bind(this)),r.default.on(a.default.getDocument(),y,this._updateFocusHandler),this._attachContainerEventHandlers()},_attachContainerEventHandlers:function(){var e=this,t=e.component&&e.component.$element();t&&r.default.on(t,(0,d.addNamespace)("keydown",v),function(t){"tab"===(0,d.normalizeKeyName)(t)&&e._updateFocusHandler(t)})},_focusOverlayEventProxy:function(e){var t,n=(0,o.default)(e.target),i=(0,o.default)(e.currentTarget);(n.hasClass(b)||n.hasClass("dx-pointer-events-none"))&&!i.hasClass(x)&&(i.addClass(x),t=n.get(0).ownerDocument.elementFromPoint(e.clientX,e.clientY),(0,d.fireEvent)({originalEvent:e,target:t}),e.stopPropagation(),i.removeClass(x),e.type===l.default.name&&"INPUT"===t.tagName&&r.default.trigger((0,o.default)(t),"focus"))},dispose:function(){clearTimeout(this._focusTimeoutID),clearTimeout(this._updateFocusTimeoutID),r.default.off(a.default.getDocument(),y,this._updateFocusHandler)}}).include(f.default);e.exports={defaultOptions:function(){return{}},controllers:{editorFactory:w},extenders:{controllers:{columnsResizer:{_startResizing:function(e){this.callBase(e),this.isResizing()&&this.getController("editorFactory").loseFocus()}}}}}},function(e,t,n){var i=n(2),o=n(4).noop,a=n(5),r=n(1),s=n(74).isWrapped,l=n(20).compileGetter,u=n(31),c=n(0).extend,d=n(16),h=n(10).getPublicElement,p=n(45).normalizeDataSourceOptions,f=n(9).normalizeKeyName;n(92),n(116),n(104),n(95),n(192);var g=function(){var e=function(e,t){return c(e,{readOnly:t.readOnly,placeholder:t.placeholder,inputAttr:{id:t.id},tabIndex:t.tabIndex},t.editorOptions)},t=function(){return u.msie||u.mozilla||d.real().ios},n=function(n){var o={},s=t(),l=n.sharedData||o;return e({placeholder:n.placeholder,width:n.width,value:n.value,onValueChanged:function(e){var t="filterRow"===n.parentType||"searchPanel"===n.parentType,i=e.event&&"keyup"===e.event.type,a=function(e,t){n&&n.setValue(e.value,t)};clearTimeout(o.valueChangeTimeout),i&&t?l.valueChangeTimeout=o.valueChangeTimeout=setTimeout(function(){a(e,o.valueChangeTimeout!==l.valueChangeTimeout)},r.isDefined(n.updateValueTimeout)?n.updateValueTimeout:0):a(e)},onKeyDown:function(e){s&&"enter"===f(e.event)&&a.trigger(i(e.component._input()),"change")},valueChangeEvent:"change"+("filterRow"===n.parentType?" keyup":"")},n)},g=function(n){n.editorName="dxDateBox",n.editorOptions=e({value:n.value,onValueChanged:function(e){n.setValue(e.value)},onKeyDown:function(e){t()&&"enter"===f(e.event)&&(e.component.blur(),e.component.focus())},displayFormat:n.format,type:n.dataType,formatWidthCalculator:null,dateSerializationFormat:null,width:"filterBuilder"===n.parentType?void 0:"auto"},n)},_=function(e){var t=n(e),i="searchPanel"===e.parentType;t.value=function(e){return r.isDefined(e)?e.toString():""}(e.value),t.valueChangeEvent+=i?" keyup search":"",t.mode=t.mode||(i?"search":"text"),e.editorName="dxTextBox",e.editorOptions=t},m=function(e){var t=n(e);t.value=r.isDefined(e.value)?e.value:null,e.editorName="dxNumberBox",e.editorOptions=t},v=function(t){var n,i,o,a=t.lookup,u="filterRow"===t.parentType;if(a){n=l(a.displayExpr),i=a.dataSource,r.isFunction(i)&&!s(i)&&(i=i(t.row||{})),(r.isObject(i)||Array.isArray(i))&&(i=p(i),u&&(o=i.postProcess,i.postProcess=function(e){return 0===this.pageIndex()&&(e=e.slice(0)).unshift(null),o?o.call(this,e):e}));var c=Boolean(a.allowClearing&&!u);t.editorName="dxSelectBox",t.editorOptions=e({searchEnabled:!0,value:t.value,valueExpr:t.lookup.valueExpr,searchExpr:t.lookup.searchExpr||t.lookup.displayExpr,allowClearing:c,showClearButton:c,displayExpr:function(e){return null===e?t.showAllText:n(e)},dataSource:i,onValueChanged:function(e){var n=[e.value];!u&&n.push(e.component.option("text")),t.setValue.apply(this,n)}},t)}},y=function(t){t.editorName="dxCheckBox",t.editorOptions=e({value:r.isDefined(t.value)?t.value:void 0,hoverStateEnabled:!t.readOnly,focusStateEnabled:!t.readOnly,activeStateEnabled:!1,onValueChanged:function(e){t.setValue&&t.setValue(e.value,e)}},t)};return{createEditor:function(e,t){var n;if(t.cancel=!1,t.editorElement=h(e),r.isDefined(t.tabIndex)||(t.tabIndex=this.option("tabIndex")),t.lookup)v(t);else switch(t.dataType){case"date":case"datetime":g(t);break;case"boolean":!function(e){"filterRow"===e.parentType||"filterBuilder"===e.parentType?v(c(e,{lookup:{displayExpr:function(t){return!0===t?e.trueText||"true":!1===t?e.falseText||"false":void 0},dataSource:[!0,!1]}})):y(e)}(t);break;case"number":m(t);break;default:_(t)}n=t.editorName,this.executeAction("onEditorPreparing",t),t.cancel||("dataRow"===t.parentType&&t.editorType&&n===t.editorName&&(t.editorName=t.editorType),function(e,t){var n=i(t.editorElement);t.editorName&&t.editorOptions&&n[t.editorName]&&("dxCheckBox"===t.editorName&&(t.isOnForm||(n.addClass(e.addWidgetPrefix("checkbox-size")),n.parent().addClass("dx-editor-inline-block")),(t.command||t.editorOptions.readOnly)&&n.parent().addClass("dx-cell-focus-disabled")),e._createComponent(n,t.editorName,t.editorOptions),"dxTextBox"===t.editorName&&n.dxTextBox("instance").registerKeyHandler("enter",o))}(this,t),this.executeAction("onEditorPrepared",t))}}}();e.exports=g},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(12)),r=n(7),s=i(n(5)),l=i(n(42)),u=i(n(1)),c=n(3),d=n(0),h=i(n(38)),p=i(n(19)),f=i(n(24)),g=n(36),_=n(9),m=i(n(237)),v=i(n(15)),y=i(n(34)),b=i(n(46)),x=i(n(18)),w=i(n(16)),C=i(n(140)),k=i(n(89)),S=n(6),I=i(S),T=i(n(4)),D=i(n(60)),E=i(n(94)),A="edit-form-item",O="dx-editor-cell",P="dx-selection",B="dx-edit-row",M="dx-command-edit",R=M+"-with-icons",F="__DX_INSERT_INDEX__",V="dx-cell-modified",L="dx-highlight-outline",H="input:not([type='hidden'])",z="[tabindex], "+H,N="batch",$="row",W="cell",G="form",j="popup",q="insert",K="update",U="remove",Y=[N,$,W,G,j],X=[$,G,j],Z=[N,W],Q=[G,j],J=[$,G],ee={save:"dx-link-save",cancel:"dx-link-cancel",edit:"dx-link-edit",undelete:"dx-link-undelete",delete:"dx-link-delete",add:"dx-link-add"},te={save:"save",cancel:"revert",edit:"edit",undelete:"revert",delete:"trash",add:"add"},ne={edit:"editRow",delete:"deleteRow",undelete:"undeleteRow",save:"saveEditData",cancel:"cancelEditData",add:"addRowByRowIndex"},ie={add:"allowAdding",edit:"allowUpdating",delete:"allowDeleting"},oe=["edit","save","cancel","delete","undelete"],ae=function(e){var t=e.option("editing.mode");return-1!==Y.indexOf(t)?t:$},re=function(e){var t=ae(e);return-1!==X.indexOf(t)},se=h.default.ViewController.inherit(function(){var e=function(e){return function(t,n){var i=(0,o.default)("<div>").appendTo(t);e.getController("editorFactory").createEditor(i,(0,d.extend)({},n.column,{value:n.value,setValue:n.setValue,row:n.row,parentType:"dataRow",width:null,readOnly:!n.setValue,isOnForm:n.isOnForm,id:n.id}))}},t=function(e,t){var i=-1;return e.some(function(e,o){if(n(e)===t)return i=o,!0}),i},n=function(e){return u.default.isObject(e)?e.name:e};return{init:function(){var e=this;e._editRowIndex=-1,e._editData=[],e._editColumnIndex=-1,e._columnsController=e.getController("columns"),e._dataController=e.getController("data"),e._rowsView=e.getView("rowsView"),e._editForm=null,e._dataChangedHandler||(e._dataChangedHandler=e._handleDataChanged.bind(e),e._dataController.changed.add(e._dataChangedHandler)),e._saveEditorHandler||(e.createAction("onInitNewRow",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowInserting",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowInserted",{excludeValidators:["disabled","readOnly"]}),e.createAction("onEditingStart",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowUpdating",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowUpdated",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowRemoving",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowRemoved",{excludeValidators:["disabled","readOnly"]}),e._saveEditorHandler=e.createAction(function(t){var n,i,a,s,l,u,c=t.event;re(e)||e._editCellInProgress||(n=(u=(0,o.default)(c.target)).closest(".dx-dropdowneditor-overlay").length,i=u.closest((0,r.getWindow)().document).length,s=u.closest("."+e.addWidgetPrefix("addrow-button")).length,a=u.hasClass(e.addWidgetPrefix("focus-overlay")),l=ae(e)===W,n||a||s&&l&&e.isEditing()||!i||e._closeEditItem.bind(e)(u))}),s.default.on(a.default.getDocument(),f.default.down,e._saveEditorHandler)),e._updateEditColumn(),e._updateEditButtons()},getUpdatedData:function(e){var t=this._dataController.keyOf(e),n=this._editData,i=(0,g.getIndexByKey)(t,n);return n[i]?(0,g.createObjectWithChanges)(e,n[i].data):e},getInsertedData:function(){return this._editData.filter(function(e){return e.data&&e.type===q}).map(function(e){return e.data})},getRemovedData:function(){return this._editData.filter(function(e){return e.oldData&&e.type===U}).map(function(e){return e.oldData})},_needToCloseEditableCell:function(e){var t=e.closest(".dx-data-row").length,n=e.closest(".dx-row> td"),i=n[0]&&n[0].cellIndex,o=this.getView("rowsView").getRowIndex(n.parent()),a=this._columnsController.getVisibleColumns(),r=a[i]&&a[i].allowEditing;return this.isEditing()&&(!t||t&&!r&&!this.isEditCell(o,i))},_closeEditItem:function(e){this._needToCloseEditableCell(e)&&this.closeEditCell()},_handleDataChanged:function(e){var t=this,n=t._editForm;"standard"===t.option("scrolling.mode")&&t.resetRowAndPageIndices(),"prepend"===e.changeType&&(0,c.each)(t._editData,function(t,n){n.rowIndex+=e.items.length,n.type===q&&(n.key.rowIndex+=e.items.length,n.key.dataRowIndex+=e.items.filter(function(e){return"data"===e.rowType}).length)}),"refresh"===e.changeType&&ae(t)===j&&n&&n.option("visible")&&n.repaint()},_isDefaultButtonVisible:function(e,t){var n=!0,i=re(this),o=t.row&&t.row.rowIndex===this._getVisibleEditRowIndex()&&i;switch(e.name){case"edit":n=!o&&this.allowUpdating(t)&&i;break;case"save":case"cancel":n=o;break;case"delete":n=!o&&this.allowDeleting(t)&&!t.row.removed;break;case"undelete":n=this.allowDeleting(t)&&t.row.removed}return n},_isButtonVisible:function(e,t){var n=e.visible;return u.default.isDefined(n)?u.default.isFunction(n)?n.call(e,{component:t.component,row:t.row,column:t.column}):n:this._isDefaultButtonVisible(e,t)},_getButtonConfig:function(e,t){var i=this,o=u.default.isObject(e)?e:{},a=n(e),r=function(e){var t=e.component.option("editing.texts")||{};return{save:t.saveRowChanges,cancel:t.cancelRowChanges,edit:t.editRow,undelete:t.undeleteRow,delete:t.deleteRow,add:t.addRowToNode}}(t),s=ne[a],l=this.option("editing"),c=ie[a],h=!c||l[c];return(0,d.extend)({name:a,text:r[a],cssClass:ee[a],onClick:function(e){var n=e.event;n.stopPropagation(),n.preventDefault(),setTimeout(function(){t.row&&h&&i[s]&&i[s](t.row.rowIndex)})}},o)},_getEditingButtons:function(e){var n,i=this,o=!!e.column.buttons,a=(e.column.buttons||[]).slice();return o?((n=t(a,"edit"))>=0&&(t(a,"save")<0&&a.splice(n+1,0,"save"),t(a,"cancel")<0&&a.splice(t(a,"save")+1,0,"cancel")),(n=t(a,"delete"))>=0&&t(a,"undelete")<0&&a.splice(n+1,0,"undelete")):a=oe.slice(),a.map(function(t){return i._getButtonConfig(t,e)})},_renderEditingButtons:function(e,t,n){var i=this;t.forEach(function(t){i._isButtonVisible(t,n)&&i._createButton(e,t,n)})},_getEditCommandCellTemplate:function(){var e=this;return function(t,n){var i,a=(0,o.default)(t);"data"===n.rowType?(n.rtlEnabled=e.option("rtlEnabled"),i=e._getEditingButtons(n),e._renderEditingButtons(a,i,n),n.watch&&n.watch(function(){return i.map(function(t){return e._isButtonVisible(t,n)})},function(){a.empty(),e._renderEditingButtons(a,i,n)})):(0,g.setEmptyText)(a)}},correctEditRowIndexAfterExpand:function(e){this._editRowIndex>this._dataController.getRowIndexByKey(e)&&this._editRowIndex++},correctEditRowIndex:function(e){this._editRowIndex+=e(this._getVisibleEditRowIndex())},isRowEditMode:function(){return re(this)},isFormEditMode:function(){var e=ae(this);return-1!==Q.indexOf(e)},getEditMode:function(){return ae(this)},getFirstEditableColumnIndex:function(){var e,t=this.getController("columns"),n=this._firstFormItem;if(ae(this)===G&&n){var i=this._rowsView.getCellElements(this._editRowIndex);e=this._rowsView._getEditFormEditorVisibleIndex(i,n.column)}else{var o=t.getVisibleColumns();(0,c.each)(o,function(t,n){if(n.allowEditing)return e=t,!1})}return e},getFirstEditableCellInRow:function(e){var t=this.getView("rowsView");return t&&t._getCellElement(e||0,this.getFirstEditableColumnIndex())},getFocusedCellInRow:function(e){return this.getFirstEditableCellInRow(e)},getIndexByKey:function(e,t){return(0,g.getIndexByKey)(e,t)},hasChanges:function(e){for(var t=this,n=!1,i=0;i<t._editData.length;i++)if(t._editData[i].type&&(!u.default.isDefined(e)||t._dataController.getRowIndexByKey(t._editData[i].key)===e)){n=!0;break}return n},dispose:function(){this.callBase(),clearTimeout(this._inputFocusTimeoutID),s.default.off(a.default.getDocument(),f.default.down,this._saveEditorHandler)},optionChanged:function(e){if("editing"===e.name){if(this._editPopup&&this._editPopup.option("visible")&&0===e.fullName.indexOf("editing.form")){var t=this._getVisibleEditRowIndex();t>=0&&this._showEditPopup(t)}else this.init();e.handled=!0}else this.callBase(e)},publicMethods:function(){return["insertRow","addRow","removeRow","deleteRow","undeleteRow","editRow","editCell","closeEditCell","saveEditData","cancelEditData","hasEditData"]},refresh:function(){ae(this)!==W&&(ae(this)!==N?this.init():(this._editRowIndex=-1,this._editColumnIndex=-1))},isEditing:function(){return this._editRowIndex>-1},isEditRow:function(e){var t=ae(this);return this._getVisibleEditRowIndex()===e&&-1!==X.indexOf(t)},getEditRowKey:function(){var e=this._dataController.items()[this._getVisibleEditRowIndex()];return e&&e.key},getEditRowIndex:function(){return this._getVisibleEditRowIndex()},getEditFormRowIndex:function(){var e=ae(this);return e===G||e===j?this._getVisibleEditRowIndex():-1},isEditCell:function(e,t){return!(!Array.isArray(this._editData)||!this._editData.length)&&this._getVisibleEditRowIndex()===e&&this._editColumnIndex===t},getPopupContent:function(){var e=ae(this),t=this._editPopup&&this._editPopup.option("visible");if(e===j&&t)return this._$popupContent},getEditForm:function(){return this._editForm},_needInsertItem:function(e,t){var n=this._dataController.dataSource(),i=this.option("scrolling.mode"),o=n.pageIndex(),a=n.beginPageIndex?n.beginPageIndex():o,r=n.endPageIndex?n.endPageIndex():o;if("standard"!==i)switch(t){case"append":return e.key.pageIndex===r;case"prepend":return e.key.pageIndex===a;case"refresh":e.key.rowIndex=0,e.key.dataRowIndex=0,e.key.pageIndex=0;break;default:return e.key.pageIndex>=a&&e.key.pageIndex<=r}return e.key.pageIndex===o},_generateNewItem:function(e){var t={key:e};return e&&e[F]&&(t[F]=e[F]),t},processItems:function(e,t){var n,i,o,a,r=this;for(r.update(t),a=r._editData,n=0;n<a.length;n++)i=a[n].key,o=r._generateNewItem(i),a[n].type===q&&r._needInsertItem(a[n],t,e,o)&&e.splice(i.dataRowIndex,0,o);return e},processDataItem:function(e,t,n){var i,o,a,r,s=this,l=t.visibleColumns,u=e.data[F]?e.data.key:e.key;if((r=(0,g.getIndexByKey)(u,s._editData))>=0)switch(o=ae(s),a=s._editData[r],i=a.data,e.isEditing=!1,a.type){case q:o===j&&(e.visible=!1),e.inserted=!0,e.key=u,e.data=i;break;case K:e.modified=!0,e.oldData=e.data,e.data=(0,g.createObjectWithChanges)(e.data,i),e.modifiedValues=n(i,l,!0);break;case U:o===N&&(e.data=(0,g.createObjectWithChanges)(e.data,i)),e.removed=!0}},insertRow:function(){return x.default.log("W0002","dxDataGrid","insertRow","15.2","Use the 'addRow' method instead"),this.addRow()},_initNewRow:function(e,t){this.executeAction("onInitNewRow",e);var n=this._dataController,i=n.items(),o=i[t.rowIndex];o&&(!o.isEditing&&"detail"===o.rowType||"detailAdaptive"===o.rowType)&&t.rowIndex++,t.dataRowIndex=n.getRowIndexDelta()+i.filter(function(e,n){return n<t.rowIndex&&("data"===e.rowType||"group"===e.rowType)}).length},_getInsertIndex:function(){var e=0;return this._editData.forEach(function(t){t.type===q&&t.key[F]>e&&(e=t.key[F])}),e+1},addRow:function(e){var t,n=this,i=n._dataController,o=i.store(),a=o&&o.key(),r=n.getView("rowsView"),u={data:{}},c=i.getRowIndexByKey(e),d={pageIndex:i.pageIndex(),rowIndex:c>=0?c+1:r?r.getTopVisibleItemIndex():0,parentKey:e},h=n._getVisibleEditRowIndex(),f=ae(n);if(o){f===W&&n.hasChanges()&&n.saveEditData(),n.refresh();var g=n._getInsertIndex();f!==N&&g>1||(a||(u.data.__KEY__=String(new l.default)),n._initNewRow(u,d),(f=ae(n))!==N&&(n._editRowIndex=d.rowIndex+n._dataController.getRowIndexOffset()),d[F]=g,n._addEditData({key:d,data:u.data,type:q}),i.updateItems({changeType:"update",rowIndices:[h,d.rowIndex]}),f===j?n._showEditPopup(d.rowIndex):(t=n.getFirstEditableCellInRow(d.rowIndex),n._editCellInProgress=!0,n._delayedInputFocus(t,function(){n._editCellInProgress=!1;var e=n.getFirstEditableCellInRow(d.rowIndex);e&&s.default.trigger(e,p.default.name)})),n._afterInsertRow({key:d,data:u.data}))}else i.fireError("E1052",this.component.NAME)},_isEditingStart:function(e){return this.executeAction("onEditingStart",e),e.cancel},_beforeEditCell:function(e,t,n){var i=this;if(ae(i)===W&&!n.inserted&&i.hasChanges()){var o=new S.Deferred;return i.saveEditData().always(function(){o.resolve(i.hasChanges())}),o}},_beforeUpdateItems:function(){},_getVisibleEditRowIndex:function(){return this._editRowIndex>=0?this._editRowIndex-this._dataController.getRowIndexOffset():-1},editRow:function(e){var t,n=this,i=n._dataController,o=i.items(),a=o[e],r={data:a&&a.data,cancel:!1},s=n._getVisibleEditRowIndex();if(a){if(e===s)return!0;if(a.inserted||(r.key=a.key),!n._isEditingStart(r)){n.init(),n._pageIndex=i.pageIndex(),n._editRowIndex=(o[0].inserted?e-1:e)+n._dataController.getRowIndexOffset(),n._addEditData({data:{},key:a.key,oldData:a.data});var l=[s,e],u=ae(n);n._beforeUpdateItems(l,e,s),u===j?n._showEditPopup(e):i.updateItems({changeType:"update",rowIndices:l}),-1!==J.indexOf(u)&&(t=n.getFocusedCellInRow(n._getVisibleEditRowIndex()),n._delayedInputFocus(t,function(){t&&n.component.focus(t)}))}}},_showEditPopup:function(e){var t=this,n="desktop"!==w.default.current().deviceType,i=(0,d.extend)({showTitle:!1,fullScreen:n,toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:t._getSaveButtonConfig()},{toolbar:"bottom",location:"after",widget:"dxButton",options:t._getCancelButtonConfig()}],contentTemplate:t._getPopupEditFormTemplate(e)},t.option("editing.popup"));if(!t._editPopup){var a=(0,o.default)("<div>").appendTo(t.component.$element()).addClass(t.addWidgetPrefix("edit-popup"));t._editPopup=t._createComponent(a,b.default,{}),t._editPopup.on("hiding",t._getEditPopupHiddenHandler()),t._editPopup.on("shown",function(e){s.default.trigger(e.component.$content().find(z).not(".dx-scrollable-container").first(),"focus")})}t._editPopup.option(i),t._editPopup.show()},_getEditPopupHiddenHandler:function(){var e=this;return function(t){e.isEditing()&&e.cancelEditData()}},_getPopupEditFormTemplate:function(e){var t=this,n=t.component.getVisibleRows()[e],i={row:n,rowType:n.rowType,key:n.key};return function(e){var n=t.getEditFormTemplate(),a=t._createComponent((0,o.default)("<div>").appendTo(e),E.default);t._$popupContent=a.$content(),n(t._$popupContent,i,!0)}},_getSaveButtonConfig:function(){return{text:this.option("editing.texts.saveRowChanges"),onClick:this.saveEditData.bind(this)}},_getCancelButtonConfig:function(){return{text:this.option("editing.texts.cancelRowChanges"),onClick:this.cancelEditData.bind(this)}},_removeEditDataItem:function(e){e>=0&&this._editData.splice(e,1)},editCell:function(e,t){var n=this,i=n._columnsController,o=n._dataController,a=o.items()[e],r={data:a&&a.data,cancel:!1},s=n._getVisibleEditRowIndex(),l=i.getVisibleColumns(),c=l[n._editColumnIndex];u.default.isString(t)&&(t=i.columnOption(t,"index"),t=i.getVisibleIndex(t));var d=r.column=l[t];if(d&&a&&("data"===a.rowType||"detailAdaptive"===a.rowType)&&!a.removed&&!re(n)){if(n.isEditCell(e,t))return!0;var h=e+o.getRowIndexOffset();return(0,S.when)(n._beforeEditCell(e,t,a)).done(function(e){e||(n._prepareEditCell(r,a,t,h)?T.default.deferRender(function(){n._repaintEditCell(d,c,s)}):n._processCanceledEditingCell())})}return!1},_processCanceledEditingCell:function(){},_prepareEditCell:function(e,t,n,i){var o=this;return t.inserted||(e.key=t.key),!o._isEditingStart(e)&&(o._editRowIndex=i,o._editColumnIndex=n,o._pageIndex=o._dataController.pageIndex(),o._addEditData({data:{},key:t.key,oldData:t.data}),!0)},_repaintEditCell:function(e,t,n){var i=this,o=i._rowsView;e&&e.showEditorAlways&&(!t||t.showEditorAlways)||(i._editCellInProgress=!0,i.getController("editorFactory").loseFocus(),i._dataController.updateItems({changeType:"update",rowIndices:[n,i._getVisibleEditRowIndex()]}));var a=o&&o._getCellElement(i._getVisibleEditRowIndex(),i._editColumnIndex);a&&!a.find(":focus").length?i._focusEditingCell(function(){i._editCellInProgress=!1},a,!0):i._editCellInProgress=!1},_delayedInputFocus:function(e,t,n){function i(){if(t&&t(),e){var n=e.find(z).first();(0,g.focusAndSelectElement)(o,n)}o._beforeFocusCallback=null}var o=this;w.default.real().ios||w.default.real().android?i():(o._beforeFocusCallback&&o._beforeFocusCallback(),clearTimeout(o._inputFocusTimeoutID),n&&(o._beforeFocusCallback=t),o._inputFocusTimeoutID=setTimeout(i))},_focusEditingCell:function(e,t,n){var i=this,o=i.getView("rowsView");t=t||o&&o._getCellElement(i._getVisibleEditRowIndex(),i._editColumnIndex),i._delayedInputFocus(t,e,n)},removeRow:function(e){return x.default.log("W0002","dxDataGrid","removeRow","15.2","Use the 'deleteRow' method instead"),this.deleteRow(e)},deleteRow:function(e){var t,n,i=this,o=i.option("editing"),a=o&&o.texts,r=a&&a.confirmDeleteTitle,s=o&&o.mode===N,l=a&&a.confirmDeleteMessage,c=i._dataController,d=i._getVisibleEditRowIndex(),h=c.items()[e],p=h&&h.key,f=s||!this.isEditing();h&&f&&(t=function(t){i.refresh();var n=(0,g.getIndexByKey)(t,i._editData);n>=0?i._editData[n].type===q?i._removeEditDataItem(n):i._addEditData({key:t,type:U}):i._addEditData({key:t,oldData:h.data,type:U}),s?c.updateItems({changeType:"update",rowIndices:[d,e]}):i.saveEditData()},s||!l?t(p):(n=u.default.isDefined(r)&&r.length>0,m.default.confirm(l,r,n).done(function(e){e&&t(p)})))},undeleteRow:function(e){var t=this,n=t._dataController,i=n.items()[e],o=t._getVisibleEditRowIndex(),a=i&&i.key;if(i){var r,s=(0,g.getIndexByKey)(a,t._editData);s>=0&&(r=t._editData[s],u.default.isEmptyObject(r.data)?t._removeEditDataItem(s):t._addEditData({key:a,type:K}),n.updateItems({changeType:"update",rowIndices:[o,e]}))}},_saveEditDataCore:function(e,t,n){function i(e,t,n){function i(e){return function(t){var n=t instanceof Error?t:new Error(t&&String(t)||"Unknown error");e.reject(n)}}var a=new S.Deferred;return o.executeAction(e,t),(0,S.when)((0,S.fromPromise)(t.cancel)).done(function(e){e?setTimeout(function(){a.resolve("cancel")}):n(t).done(a.resolve).fail(i(a))}).fail(i(a)),a}var o=this,a=o._dataController.store(),r=!0;return(0,c.each)(o._editData,function(s,l){var c,d,h,p=l.data,f=l.oldData,g=l.type;if(!o._beforeSaveEditData(l,s)){switch(g){case U:c=i("onRowRemoving",h={data:f,key:l.key,cancel:!1},function(){return a.remove(l.key).done(function(e){n.push({type:"remove",key:e})})});break;case q:c=i("onRowInserting",h={data:p,cancel:!1},function(){return a.insert(h.data).done(function(e,t){u.default.isDefined(t)&&(l.key=t),e&&u.default.isObject(e)&&e!==h.data&&(l.data=e),n.push({type:"insert",data:e,index:0})})});break;case K:c=i("onRowUpdating",h={newData:p,oldData:f,key:l.key,cancel:!1},function(){return a.update(l.key,h.newData).done(function(e,t){e&&u.default.isObject(e)&&e!==h.newData&&(l.data=e),n.push({type:"update",key:t,data:e})})})}c&&(d=new S.Deferred,c.always(function(e){r="cancel"!==e,t.push({key:l.key,result:e})}).always(d.resolve),e.push(d.promise()))}}),r},_processSaveEditDataResult:function(e){var t,n,i,o,a,r,s=this,l=s._dataController,u=!1,c=ae(s);for(t=0;t<e.length;t++)if(i="cancel"===(n=e[t].result),a=(0,g.getIndexByKey)(e[t].key,s._editData),o=s._editData[a],n&&n instanceof Error){if(o&&(o.error=n),r=s.getPopupContent(),l.dataErrorOccurred.fire(n,r),c!==N){o&&o.type===U&&s._removeEditDataItem(a);break}}else i&&o&&(c===N||o.type!==U)||(s._removeEditDataItem(a),u=!i);return u},_fireSaveEditDataEvents:function(e){var t=this;(0,c.each)(e,function(e,n){var i=n.data,o=n.key,a=n.type,r={key:o,data:i};switch(n.error&&(r.error=n.error),a){case U:t.executeAction("onRowRemoved",(0,d.extend)({},r,{data:n.oldData}));break;case q:t.executeAction("onRowInserted",r);break;case K:t.executeAction("onRowUpdated",r)}})},saveEditData:function(){var e,t=this,n=[],i=[],a=[],r=t._dataController,s=r.dataSource(),l=ae(t),u=new S.Deferred,c=function(e){l!==W&&(e._editColumnIndex=-1,e._editRowIndex=-1)};return t._beforeSaveEditData()||t._saving?(t._afterSaveEditData(),u.resolve().promise()):(e=t._editData.slice(0),t._saveEditDataCore(i,n,a)||l!==W||t._focusEditingCell(),i.length?(t._saving=!0,s&&s.beginLoading(),S.when.apply(o.default,i).done(function(){if(t._processSaveEditDataResult(n)){c(t),l===j&&t._editPopup&&t._editPopup.hide(),s&&s.endLoading();var i=t.option("editing.refreshMode"),o="reshape"!==i&&"repaint"!==i;o||r.push(a),(0,S.when)(r.refresh({selection:o,reload:o,load:"reshape"===i,changesOnly:t.option("repaintChangesOnly")})).always(function(){t._fireSaveEditDataEvents(e),t._afterSaveEditData(),u.resolve()})}else s&&s.endLoading(),u.resolve()}).fail(function(){s&&s.endLoading(),u.resolve()}),u.always(function(){t._focusEditingCell(),t._saving=!1}).promise()):(re(t)?t.hasChanges()||t.cancelEditData():-1!==Z.indexOf(l)?(c(t),r.updateItems()):t._focusEditingCell(),t._afterSaveEditData(),u.resolve().promise()))},isSaving:function(){return this._saving},_updateEditColumn:function(){var e=this,t=e._isEditColumnVisible(),n=e.option("editing.useIcons"),i=M+(n?" "+R:"");e._columnsController.addCommandColumn({type:"buttons",command:"edit",visible:t,cssClass:i,width:"auto",alignment:"center",cellTemplate:e._getEditCommandCellTemplate(),fixedPosition:"right"}),e._columnsController.columnOption("command:edit",{visible:t,cssClass:i})},_isEditColumnVisible:function(){var e=this.option("editing");if(e){var t=!1;switch(ae(this)){case $:t=e.allowUpdating||e.allowAdding;break;case G:case j:t=e.allowUpdating}return e.allowDeleting||t}},_updateEditButtons:function(){var e=this.getView("headerPanel"),t=this.hasChanges();e&&(e.setToolbarItemDisabled("saveButton",!t),e.setToolbarItemDisabled("revertButton",!t))},_applyModified:function(e){e&&e.addClass(V)},_beforeCloseEditCellInBatchMode:function(){},cancelEditData:function(){var e=this,t=ae(e),n=this._getVisibleEditRowIndex(),i=e._dataController;e._beforeCancelEditData(),e.init(),-1!==X.indexOf(t)&&n>=0?i.updateItems({changeType:"update",rowIndices:[n,n+1]}):i.updateItems(),t===j&&e._hideEditPopup()},_hideEditPopup:function(){this._editPopup&&this._editPopup.option("visible",!1)},hasEditData:function(){return this.hasChanges()},closeEditCell:function(){var e=this,t=ae(e),n=e._getVisibleEditRowIndex(),i=e._dataController,o=I.default.when();return re(e)||(o=I.default.Deferred(),setTimeout(function(){if(t===W&&e.hasChanges())e.saveEditData().done(function(){e.hasChanges()||e.closeEditCell()});else if(n>=0){var a=[n];e._editRowIndex=-1,e._editColumnIndex=-1,e._beforeCloseEditCellInBatchMode(a),i.updateItems({changeType:"update",rowIndices:a})}o.resolve()})),o.promise()},update:function(e){var t=this,n=t._dataController;n&&t._pageIndex!==n.pageIndex()&&("refresh"===e&&t.refresh(),t._pageIndex=n.pageIndex()),t._updateEditButtons()},_getRowIndicesForCascadeUpdating:function(e,t){return t?[]:[e.rowIndex]},updateFieldValue:function(e,t,n,i){var a,r,s=this,l={},u=e.data,c=e.key,h=(0,o.default)(e.cellElement),p=ae(s),f=e.column.setCellValue!==e.column.defaultSetCellValue;if(void 0===c&&s._dataController.fireError("E1043"),e.column.setCellValue){if(void 0!==c&&(p===N&&s._applyModified(h,e),e.value=t,e.column.setCellValue(l,t,(0,d.extend)(!0,{},u),n),n&&e.column.displayValueMap&&(e.column.displayValueMap[t]=n)),a={data:l,key:c,oldData:u,type:K},s._addEditData(a,e.row),s._updateEditButtons(),e.column.showEditorAlways&&!i){if(p===W&&e.row&&!e.row.inserted)return s.saveEditData();p===N&&(r=s._columnsController.getVisibleColumns(),i=f||r.some(function(e){return e.calculateCellValue!==e.defaultCalculateCellValue}))}e.row&&(i||f)&&s._updateEditRow(e.row,i)}},_updateEditRowCore:function(e,t){var n=this,i=n._editForm;ae(n)===j?i&&i.repaint():n._dataController.updateItems({changeType:"update",rowIndices:n._getRowIndicesForCascadeUpdating(e,t)})},_updateEditRow:function(e,t){var n=this;t||!re(n)?(n._updateEditRowCore(e,!t),t||n._focusEditingCell()):setTimeout(function(){var t=(0,o.default)(a.default.getActiveElement()),i=n._rowsView.getCellIndex(t,e.rowIndex),r=t.get(0),s=(0,g.getSelectionRange)(r);if(n._updateEditRowCore(e),i>=0){var l=n._rowsView._getCellElement(e.rowIndex,i);n._delayedInputFocus(l,function(){setTimeout(function(){r=a.default.getActiveElement(),s.selectionStart>=0&&(0,g.setSelectionRange)(r,s)})})}})},_addEditData:function(e,t){var n=this,i=(0,g.getIndexByKey)(e.key,n._editData);return i<0&&(i=n._editData.length,n._editData.push(e)),n._editData[i]&&(e.data&&(n._editData[i].data=(0,g.createObjectWithChanges)(n._editData[i].data,e.data)),n._editData[i].type&&e.data||!e.type||(n._editData[i].type=e.type),t&&(t.oldData=n._editData[i].oldData,t.data=(0,g.createObjectWithChanges)(t.data,e.data))),i},_getFormEditItemTemplate:function(t,n){return n.editCellTemplate||e(this)},renderFormEditTemplate:function(e,t,n,i,a){var s=this,l=(0,o.default)(i),u=t.column,c=function(e){var t=e.column;return e.isCustomEditorType?e.editorType:t.formItem&&t.formItem.editorType}(t),h=e.row&&e.row.data,p=(0,d.extend)({},e,{data:h,cellElement:null,isOnForm:!0,item:t,value:u.calculateCellValue(h),column:(0,d.extend)({},u,{editorType:c,editorOptions:t.editorOptions}),id:n.getItemID(t.name||t.dataField),columnIndex:u.index,setValue:!a&&u.allowEditing&&function(e){s.updateFieldValue(p,e)}}),f=s._getFormEditItemTemplate.bind(s)(p,u);s._rowsView.renderTemplate(l,f,p,!!l.closest((0,r.getWindow)().document).length)&&s._rowsView._updateCell(l,p)},getFormEditorTemplate:function(e,t){var n=this;return function(i,o){n.renderFormEditTemplate.bind(n)(e,t,i.component,o)}},getEditFormTemplate:function(){var e=this;return function(t,n,i){var a=e.option("editing.form"),r=e.option("editing.form.items"),s=e.option("editing.form.customizeItem"),h=e._editData[(0,g.getIndexByKey)(n.key,e._editData)],p=e.addWidgetPrefix(A),f={};if(r)!function e(t,n){t.forEach(function(t){t.items||t.tabs?e(t.items||t.tabs,n):n(t)})}(r,function(e){var t=e&&(e.name||e.dataField);t&&(f[t]=!!e.editorType)});else{var _=e.getController("columns").getColumns();r=[],(0,c.each)(_,function(e,t){t.isBand||t.type||r.push({column:t,name:t.name,dataField:t.dataField})})}if(e._firstFormItem=void 0,e._editForm=e._createComponent((0,o.default)("<div>").appendTo(t),C.default,(0,d.extend)({},a,{items:r,formID:"dx-"+new l.default,validationGroup:h,customizeItem:function(t){var i,o=t.name||t.dataField;if((t.column||o)&&(i=t.column||e._columnsController.columnOption(t.name?"name:"+t.name:"dataField:"+t.dataField)),i){t.label=t.label||{},t.label.text=t.label.text||i.caption,t.template=t.template||e.getFormEditorTemplate(n,t),t.column=i,t.isCustomEditorType=f[o],i.formItem&&(0,d.extend)(t,i.formItem),void 0===t.isRequired&&i.validationRules&&(t.isRequired=i.validationRules.some(function(e){return"required"===e.type}),t.validationRules=[]);var a=!u.default.isDefined(t.visible)||t.visible;!e._firstFormItem&&a&&(e._firstFormItem=t)}s&&s.call(this,t),t.cssClass=u.default.isString(t.cssClass)?t.cssClass+" "+p:p}})),!i){var m=(0,o.default)("<div>").addClass(e.addWidgetPrefix("form-buttons-container")).appendTo(t);e._createComponent((0,o.default)("<div>").appendTo(m),y.default,e._getSaveButtonConfig()),e._createComponent((0,o.default)("<div>").appendTo(m),y.default,e._getCancelButtonConfig())}e._editForm.on("contentReady",function(){e._editPopup&&e._editPopup.repaint()})}},getColumnTemplate:function(t){var n,i,o=this,a=t.column,r=t.row&&t.row.rowIndex,s=re(o),l=o.isEditRow(r),u=o.isEditCell(r,t.columnIndex);return!(a.showEditorAlways||a.setCellValue&&(l&&a.allowEditing||u))||"data"!==t.rowType&&"detailAdaptive"!==t.rowType||a.command?"detail"===a.command&&"detail"===t.rowType&&l&&(n=o.getEditFormTemplate(t)):(((o.allowUpdating(t)||l)&&a.allowEditing||u)&&(s&&l||!s)&&(a.showEditorAlways&&!s&&(i={cancel:!1,key:t.row.inserted?void 0:t.row.key,data:t.row.data,column:a},o._isEditingStart(i)),i&&i.cancel||(t.setValue=function(e,n){o.updateFieldValue(t,e,n)})),n=a.editCellTemplate||e(o)),n},_createButton:function(e,t,n){var i,a=this,r=te[t.name],l=a.option("editing.useIcons"),c=(0,o.default)("<a>").attr("href","#").addClass("dx-link").addClass(t.cssClass);t.template?a._rowsView.renderTemplate(e,t.template,n,!0):(l&&r||t.icon?(r=t.icon||r,"image"===(i=D.default.getImageSourceType(r))?c=D.default.getImageContainer(r):c.addClass("dx-icon"+("dxIcon"===i?"-":" ")+r).attr("title",t.text),e.addClass(R)):c.text(t.text),u.default.isDefined(t.hint)&&c.attr("title",t.hint),s.default.on(c,(0,_.addNamespace)("click","dxDataGridEditing"),a.createAction(function(e){t.onClick.call(t,(0,d.extend)({},e,{row:n.row,column:n.column})),e.event.preventDefault()})),n.rtlEnabled?e.prepend(c,"&nbsp;"):e.append(c,"&nbsp;"))},prepareEditButtons:function(e){var t=this,n=t.option("editing")||{},i=t.option("editing.texts")||{},a={revert:i.cancelAllChanges,save:i.saveAllChanges,addRow:i.addRow},r={revert:"cancel",save:"save",addRow:"addrow"},s=[],l=function(n,i,s){var l=r[n],u=a[n],c=("save"===l||"cancel"===l)&&!t.hasChanges();return{widget:"dxButton",options:{onInitialized:function(n){(0,o.default)(n.element).addClass(e._getToolbarButtonClass("dx-edit-button "+t.addWidgetPrefix(l)+"-button"))},icon:"edit-button-"+l,disabled:c,onClick:function(){setTimeout(function(){t[i]()})},text:u,hint:u},showText:"inMenu",name:n+"Button",location:"after",locateInMenu:"auto",sortIndex:s}};return n.allowAdding&&s.push(l("addRow","addRow",20)),(n.allowUpdating||n.allowAdding||n.allowDeleting)&&ae(t)===N&&(s.push(l("save","saveEditData",21)),s.push(l("revert","cancelEditData",22))),s},showHighlighting:function(e){var t=e.find("."+L);"TD"!==e.get(0).tagName||t.length||e.wrapInner((0,o.default)("<div>").addClass(L+" dx-pointer-events-target"))},resetRowAndPageIndices:function(e){var t=this;(0,c.each)(t._editData,function(n,i){(i.pageIndex!==t._pageIndex||e)&&(delete i.pageIndex,delete i.rowIndex)})},_afterInsertRow:function(){},_beforeSaveEditData:function(e){if(e&&!u.default.isDefined(e.key)&&u.default.isDefined(e.type))return!0},_afterSaveEditData:function(){},_beforeCancelEditData:function(){},_allowEditAction:function(e,t){var n=this.option("editing."+e);return u.default.isFunction(n)&&(n=n({component:this.component,row:t.row})),n},allowUpdating:function(e,t){var n=this.option("editing.startEditAction")||"click";return(!(arguments.length>1)||n===t)&&this._allowEditAction("allowUpdating",e)},allowDeleting:function(e){return this._allowEditAction("allowDeleting",e)}}}());e.exports={defaultOptions:function(){return{editing:{mode:"row",refreshMode:"full",allowAdding:!1,allowUpdating:!1,allowDeleting:!1,useIcons:!1,selectTextOnEditStart:!1,texts:{editRow:v.default.format("dxDataGrid-editingEditRow"),saveAllChanges:v.default.format("dxDataGrid-editingSaveAllChanges"),saveRowChanges:v.default.format("dxDataGrid-editingSaveRowChanges"),cancelAllChanges:v.default.format("dxDataGrid-editingCancelAllChanges"),cancelRowChanges:v.default.format("dxDataGrid-editingCancelRowChanges"),addRow:v.default.format("dxDataGrid-editingAddRow"),deleteRow:v.default.format("dxDataGrid-editingDeleteRow"),undeleteRow:v.default.format("dxDataGrid-editingUndeleteRow"),confirmDeleteMessage:v.default.format("dxDataGrid-editingConfirmDeleteMessage"),confirmDeleteTitle:""},form:{colCount:2},popup:{},startEditAction:"click"}}},controllers:{editing:se},extenders:{controllers:{data:{init:function(){this._editingController=this.getController("editing"),this.callBase()},reload:function(e,t){var n,i=this.getController("editing");return!t&&this._editingController.refresh(),(n=this.callBase.apply(this,arguments))&&n.done(function(){i.resetRowAndPageIndices(!0)})},repaintRows:function(){if(!this.getController("editing").isSaving())return this.callBase.apply(this,arguments)},_updateEditRow:function(e){var t=this._editingController,n=e[t.getEditRowIndex()];n&&(n.isEditing=!0,t.getEditMode()===G&&(n.rowType="detail"))},_updateItemsCore:function(e){this.callBase(e),this._updateEditRow(this.items())},_applyChangeUpdate:function(e){this._updateEditRow(e.items),this.callBase(e)},_applyChangesOnly:function(e){this._updateEditRow(e.items),this.callBase(e)},_processItems:function(e,t){return e=this._editingController.processItems(e,t),this.callBase(e,t)},_processDataItem:function(e,t){return this._editingController.processDataItem(e,t,this.generateDataValues),this.callBase(e,t)},_processItem:function(e,t){return(e=this.callBase(e,t)).inserted&&(t.dataIndex--,delete e.dataIndex),e},_correctRowIndices:function(e){this.callBase.apply(this,arguments),this._editingController.correctEditRowIndex(e)},_getChangedColumnIndices:function(e,t,n,i){var o=this.getController("editing"),a=o.isRowEditMode();if(!(e.inserted!==t.inserted||e.removed!==t.removed||a&&e.isEditing!==t.isEditing))return e.rowType===t.rowType&&a&&o.isEditRow(n)&&i?[]:this.callBase.apply(this,arguments)},_isCellChanged:function(e,t,n,i,o){var a=this.getController("editing"),r=e.cells&&e.cells[i],s=a&&a.isEditCell(n,i);return(!o||!s)&&(!(!r||r.isEditing===s)||this.callBase.apply(this,arguments))}}},views:{rowsView:{init:function(){this.callBase(),this._editingController=this.getController("editing")},getCellElements:function(e){var t=this.callBase(e),n=this._editingController,i=n.getEditForm();return n.getEditFormRowIndex()===e&&t&&i?i.$element().find("."+this.addWidgetPrefix(A)+", .dx-button"):t},getCellIndex:function(e,t){if(!e.is("td")&&t>=0){var n=this.getCellElements(t),i=-1;return(0,c.each)(n,function(t,n){(0,o.default)(n).find(e).length&&(i=t)}),i}return this.callBase.apply(this,arguments)},_getVisibleColumnIndex:function(e,t,n){var i;return this._editingController.getEditFormRowIndex()===t&&u.default.isString(n)?(i=this._columnsController.columnOption(n),this._getEditFormEditorVisibleIndex(e,i)):this.callBase.apply(this,arguments)},_getEditFormEditorVisibleIndex:function(e,t){var n,i=-1;return(0,c.each)(e,function(e,a){if((n=(0,o.default)(a).find(".dx-field-item-content").data("dx-form-item"))&&n.column&&t&&n.column.index===t.index)return i=e,!1}),i},publicMethods:function(){return this.callBase().concat(["cellValue"])},_getCellTemplate:function(e){return this._editingController.getColumnTemplate(e)||this.callBase(e)},_isNativeClick:function(){return(w.default.real().ios||w.default.real().android)&&this.option("editing.allowUpdating")},_createTable:function(){var e=this,t=e.callBase.apply(e,arguments);return!re(e)&&e.option("editing.allowUpdating")&&s.default.on(t,(0,_.addNamespace)(k.default.name,"dxDataGridRowsView"),"td:not(."+O+")",e.createAction(function(){var t=e._editingController;t.isEditing()&&t.closeEditCell()})),t},_createRow:function(e){var t,n,i,o,a=this.callBase(e);return e&&(t=this._editingController.isEditRow(e.rowIndex),n=!!e.removed,i=!!e.inserted,o=!!e.modified,ae(this)===N?n&&a.addClass("dx-row-removed"):t&&a.addClass(B),i&&a.addClass("dx-row-inserted"),o&&a.addClass("dx-row-modified"),(t||i||n)&&a.removeClass(P),t&&"detail"===e.rowType&&a.addClass(this.addWidgetPrefix("edit-form"))),a},_getColumnIndexByElement:function(e){for(var t=e.closest("table"),n=this.getTableElements();t.length&&!n.filter(t).length;)e=t.closest("td"),t=e.closest("table");return this._getColumnIndexByElementCore(e)},_getColumnIndexByElementCore:function(e){var t=e.closest(".dx-row> td:not(.dx-master-detail-cell)");return this.getCellIndex(t)},_editCellByClick:function(e,t){var n=this,i=n._editingController,a=(0,o.default)(e.event.target),r=n._getColumnIndexByElement(a),s=n._dataController.items()[e.rowIndex],l=i.allowUpdating({row:s},t)||s&&s.inserted,u=n._columnsController.getVisibleColumns()[r],c=u&&(u.allowEditing||i.isEditCell(e.rowIndex,r)),d=n.option("editing.startEditAction")||"click";return"click"!==t||"dblClick"!==d||i.isEditCell(e.rowIndex,r)||i.closeEditCell(),t===d&&l&&c&&i.editCell(e.rowIndex,r)||i.isEditRow(e.rowIndex)},_rowClick:function(e){this._editCellByClick(e,"click")||this.callBase.apply(this,arguments)},_rowDblClick:function(e){this._editCellByClick(e,"dblClick")||this.callBase.apply(this,arguments)},_cellPrepared:function(e,t){var n=t.columnIndex,i=this._editingController,o=!!t.column.command,a=t.setValue,r=t.isEditing||i.isEditRow(t.rowIndex)&&t.column.allowEditing;if("data"===t.rowType&&!t.column.command&&(r||t.column.showEditorAlways)){var s=t.column.alignment;e.addClass(O).toggleClass(this.addWidgetPrefix("readonly"),!a).toggleClass("dx-cell-focus-disabled",!a),s&&e.find(H).first().css("textAlign",s)}r&&this._editCellPrepared(e);var l=t.row&&(t.row.inserted?t.row.values:t.row.modifiedValues);l&&void 0!==l[n]&&t.column&&!o&&t.column.setCellValue?(i.showHighlighting(e),e.addClass(V)):a&&i.showHighlighting(e,!0),this.callBase.apply(this,arguments)},_editCellPrepared:function(e){},_formItemPrepared:function(){},_isFormItem:function(e){var t="detail"===e.rowType||"detailAdaptive"===e.rowType,n="data"===e.rowType&&"popup"===ae(this);return(t||n)&&e.item},_updateCell:function(e,t){this._isFormItem(t)?this._formItemPrepared(t,e):this.callBase(e,t)},_update:function(e){this.callBase(e),"updateSelection"===e.changeType&&this.getTableElements().children("tbody").children("."+B).removeClass(P)},_getCellOptions:function(e){var t=this.callBase(e);return t.isEditing=this._editingController.isEditCell(t.rowIndex,t.columnIndex),t},_renderCellContent:function(e,t){"data"===t.rowType&&ae(this)===j&&!1===t.row.visible||this.callBase.apply(this,arguments)},cellValue:function(e,t,n,i){var o=this.getCellOptions(e,t);if(o){if(void 0===n)return o.value;this._editingController.updateFieldValue(o,n,i,!0)}}},headerPanel:{_getToolbarItems:function(){var e=this.callBase();return this.getController("editing").prepareEditButtons(this).concat(e)},optionChanged:function(e){switch(e.name){case"editing":this._invalidate(),this.callBase(e);break;default:this.callBase(e)}},isVisible:function(){var e=this.getController("editing").option("editing");return this.callBase()||e&&(e.allowAdding||(e.allowUpdating||e.allowDeleting)&&e.mode===N)}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(5)),r=i(n(38)),s=n(36),l=n(4),u=n(3),c=n(1),d=n(0),h=n(64),p=i(n(15)),f=i(n(34)),g=i(n(24)),_=i(n(100)),m=i(n(196)),v=i(n(164)),y=i(n(58)),b=i(n(30)),x=i(n(18)),w="revert-tooltip",C="invalid-message",k="dx-highlight-outline",S="validator",I="__DX_INSERT_INDEX__",T="row",D="batch",E="cell",A="popup",O=[A,"form"],P=r.default.Controller.inherit({init:function(){this._editingController=this.getController("editing"),this.createAction("onRowValidating")},_rowValidating:function(e,t){var n=t?t.brokenRules||t.brokenRule&&[t.brokenRule]:[],i={brokenRules:n,isValid:t?t.isValid:e.isValid,key:e.key,newData:e.data,oldData:e.oldData,errorText:this.getHiddenValidatorsErrorText(n)};return this.executeAction("onRowValidating",i),e.isValid=i.isValid,e.errorText=i.errorText,i},getHiddenValidatorsErrorText:function(e){var t=[];return(0,u.each)(e,function(e,n){n.validator.$element().parent().length||t.push(n.message)}),t.join(", ")},validate:function(e){var t=this,n=!0,i=t._editingController;return e=e||i.getEditMode()===T,!t._isValidationInProgress&&(t._isValidationInProgress=!0,e?(0,u.each)(i._editData,function(e,o){var a;o.type&&"remove"!==o.type&&((a=t.validateGroup(o)).isValid||(0,u.each)(a.brokenRules,function(){var e=this.validator.option("adapter").getValue();void 0===e&&(e=null),this.column&&i.updateFieldValue({key:o.key,column:this.column},e,null,!0)}),n=n&&a.isValid)}):t._currentCellValidator&&(n=t.validateGroup(t._currentCellValidator._findGroup()).isValid),t._isValidationInProgress=!1,n)},validateGroup:function(e){var t,n=_.default.getGroupConfig(e);return n&&n.validators.length&&(t=_.default.validateGroup(e)),this._rowValidating(e,t)},updateEditData:function(e){var t=this._editingController.getEditMode();-1===O.indexOf(t)?(this.setDisableApplyValidationResults(!0),e.isValid=!_.default.getGroupConfig(e)||_.default.validateGroup(e).isValid,this.setDisableApplyValidationResults(!1)):e.isValid=!0},setValidator:function(e){this._currentCellValidator=e},getValidator:function(){return this._currentCellValidator},createValidator:function(e,t){var n,i,r,l=this,u=l._editingController,p=e.column,f=function(){var t=p.calculateCellValue(n.data||{});return void 0!==t?t:e.value},_=p.showEditorAlways;if(p.validationRules&&Array.isArray(p.validationRules)&&p.validationRules.length&&!(0,c.isDefined)(p.command)&&((i=u.getIndexByKey(e.key,u._editData))<0&&(_||(_=((r=l.getController("columns"))&&r.getVisibleColumns()||[]).some(function(e){return e.showEditorAlways})),_&&(i=u._addEditData({key:e.key,oldData:e.data}))),i>=0)){if(t&&!t.length)return void x.default.log("E1050");n=u._editData[i];var v=t&&t.hasClass("dx-widget");t&&t.addClass(l.addWidgetPrefix(S));var y=new m.default(t||(0,o.default)("<div>"),{name:p.caption,validationRules:(0,d.extend)(!0,[],p.validationRules),validationGroup:n,adapter:v?null:{getValue:f,applyValidationResults:function(e){if(e.brokenRule&&(e.brokenRule.columnIndex=p.index,e.brokenRule.column=p),t&&!l.getDisableApplyValidationResults()){if(!e.isValid){var n=t.find(":focus");u.showHighlighting(t,!0),(0,h.focused)(n)||(a.default.trigger(n,"focus"),a.default.trigger(n,g.default.down))}t.toggleClass(l.addWidgetPrefix("invalid"),!e.isValid)}}},dataGetter:function(){return(0,s.createObjectWithChanges)(n.oldData,n.data)}});if(v){var b=y.option("adapter");b&&(b.getValue=f)}return y}},setDisableApplyValidationResults:function(e){this._disableApplyValidationResults=e},getDisableApplyValidationResults:function(){return this._disableApplyValidationResults}});e.exports={defaultOptions:function(){return{editing:{texts:{validationCancelChanges:p.default.format("dxDataGrid-validationCancelChanges")}}}},controllers:{validating:P},extenders:{controllers:{editing:{_addEditData:function(e,t){var n,i=this,o=i.getController("validating"),a=i.callBase(e,t);return a>=0&&(n=i._editData[a],o.updateEditData(n)),a},_updateRowAndPageIndices:function(){var e=this,t=e.getView("rowsView").getTopVisibleItemIndex(),n=t;(0,u.each)(e._editData,function(i,o){o.isValid||o.pageIndex===e._pageIndex||(o.pageIndex=e._pageIndex,"insert"===o.type?o.rowIndex=t:o.rowIndex=n,n++)})},_needInsertItem:function(e){var t=this.callBase.apply(this,arguments);return t&&!e.isValid&&(t=e.key.pageIndex===this._pageIndex),t},processItems:function(e,t){var n,i,o=this,a=o._editData,r=o.getController("data"),s=function(t){var n,o={key:t.key};(function(e,t){var n=-1,i="insert"===e.type,o=e.key;return(0,u.each)(t,function(e,t){if((0,l.equalByValue)(o,i?t:r.keyOf(t)))return n=e,!1}),n})(t,e)>=0||(t.rowIndex=t.rowIndex>i?t.rowIndex%i:t.rowIndex,n=t.rowIndex,o[I]=1,e.splice(n,0,o))};if(e=o.callBase(e,t),i=e.length,o.getEditMode()===D&&"prepend"!==t&&"append"!==t)for(n=0;n<a.length;n++)a[n].type&&a[n].pageIndex===o._pageIndex&&a[n].key.pageIndex!==o._pageIndex&&s(a[n]);return e},processDataItem:function(e){var t,n,i=this,o=e.data[I],a=o?e.data.key:e.key;i.getEditMode()===D&&o&&a&&((t=(0,s.getIndexByKey)(a,i._editData))>=0&&("insert"!==(n=i._editData[t]).type&&(e.data=(0,d.extend)(!0,{},n.oldData,n.data),e.key=a))),i.callBase.apply(i,arguments)},_createInvisibleColumnValidators:function(e){var t=this.getController("validating"),n=(0,l.grep)(this.getController("columns").getInvisibleColumns(),function(e){return!e.isBand}),i=[];return-1===O.indexOf(this.getEditMode())&&(0,u.each)(n,function(n,o){e.forEach(function(e){var n;if("insert"===e.type?n=e.data:"update"===e.type&&(n=(0,s.createObjectWithChanges)(e.oldData,e.data)),n){var a=t.createValidator({column:o,key:e.key,value:o.calculateCellValue(n)});a&&i.push(a)}})}),function(){i.forEach(function(e){e._dispose()})}},_beforeSaveEditData:function(e,t){var n,i,o=this,a=o.callBase.apply(o,arguments),r=o.getController("validating");if(e)n="remove"===e.type||e.isValid,a=a||!n;else{var s=o._createInvisibleColumnValidators(this._editData);switch(i=r.validate(!0),s(),o._updateRowAndPageIndices(),o.getEditMode()){case E:i||(o._focusEditingCell(),a=!0);break;case D:i||(o._editRowIndex=-1,o._editColumnIndex=-1,o.getController("data").updateItems(),a=!0);break;case T:case A:a=!i}}return a},_beforeEditCell:function(e,t,n){var i=this.callBase(e,t,n),o=this._rowsView._getCellElement(e,t),a=o&&o.data("dxValidator"),r=a&&a.option("adapter").getValue();if(this.getEditMode(this)===E&&(!a||void 0!==r&&a.validate().isValid))return i},_afterSaveEditData:function(){var e,t=this;if((0,u.each)(t._editData,function(n,i){var o=t._showErrorRow(i);e=e||o}),e){var n=this._rowsView.getScrollable();n&&(n.update(),n.scrollToElement(e))}},_showErrorRow:function(e){var t,n=this.getController("errorHandling"),i=this.getController("data").items(),o=this.getIndexByKey(e.key,i);if(!e.isValid&&e.errorText&&o>=0)return t=this.getPopupContent(),n&&n.renderErrorRow(e.errorText,o,t)},updateFieldValue:function(e){var t=this,n=t.getEditMode();if(t.callBase.apply(t,arguments),n===T||n===D&&e.column.showEditorAlways){var i=t.getController("validating").getValidator();i&&i.validate()}},showHighlighting:function(e,t){var n,i=!0;t||(n=e.data("dxValidator"))&&(i=n.validate().isValid),i&&this.callBase(e)},getEditDataByKey:function(e){return this._editData[(0,s.getIndexByKey)(e,this._editData)]}},editorFactory:{_showRevertButton:function(e,t){var n=this;if(t&&t.length){var i=(0,o.default)("<div>").addClass(this.addWidgetPrefix(w)).appendTo(e),a={animation:null,visible:!0,target:t,container:e,closeOnOutsideClick:!1,closeOnTargetScroll:!1,contentTemplate:function(){var e=(0,o.default)("<div>").addClass("dx-revert-button"),t={icon:"revert",hint:n.option("editing.texts.validationCancelChanges"),onClick:function(){n._editingController.cancelEditData()}};return new f.default(e,t).$element()},position:{my:"left top",at:"right top",of:t,offset:"1 0",collision:"flip",boundary:this._rowsView.element()},onPositioned:this._positionedHandler.bind(this)};return new v.default(i,a)}},_hideFixedGroupCell:function(e,t){var n,i,a,r=this._rowsView.isFixedColumns(),s=this._editingController.isFormEditMode();r&&!s&&(n=e.closest(".dx-row").next().data("options"))&&"group"===n.rowType&&(i=(0,o.default)(this._rowsView.getRowElement(n.rowIndex)).last(),(a=i.find(".dx-group-cell")).length&&"hidden"!==a.get(0).style.visibility&&(a.css("visibility","hidden"),t.onDisposing=function(){a.css("visibility","")}))},_positionedHandler:function(e,t){if(!e.component.__skipPositionProcessing){var n=(0,o.default)(e.element).hasClass(this.addWidgetPrefix(w)),i=!n&&this._rowsView.updateFreeSpaceRowHeight(),a=this._normalizeValidationMessagePositionAndMaxWidth(e,n,t);e.component.__skipPositionProcessing=!(!i&&!a),a?e.component.option(a):i&&e.component.repaint()}},_showValidationMessage:function(e,t,n,i){var a=this,r=e.find("."+k),s=b.default.isMaterial(),l=r.length&&!s?r:e,u=e.find(".dx-dropdowneditor-overlay").data("dxPopup"),c=u&&u.option("visible"),d=c?"top right":"top "+n,h=c?"top left":"bottom "+n,p=(0,o.default)("<div>").addClass("dx-invalid-message").addClass("dx-invalid-message-always").addClass(this.addWidgetPrefix(C)).text(t).appendTo(e),f={target:l,container:e,shading:!1,width:"auto",height:"auto",visible:!0,animation:!1,propagateOutsideClick:!0,closeOnOutsideClick:!1,closeOnTargetScroll:!1,position:{collision:"flip",boundary:this._rowsView.element(),boundaryOffset:"0 0",my:d,at:h},onPositioned:function(t){a._positionedHandler(t,c),a._shiftValidationMessageIfNeed(t.component.$content(),i&&i.$content(),e)}};this._hideFixedGroupCell(e,f),new y.default(p,f)},_normalizeValidationMessagePositionAndMaxWidth:function(e,t,n){var i=this._columnsController.getFixedColumns();if(i&&i.length){var a=void 0,r=!t&&function(e,t){var n=(0,o.default)(t).closest("tr").index(),i=(0,o.default)(e._rowsView.getRowElement(n)).first().children().filter(":not(.dx-hidden-cell)");return e._rowsView._getWidths(i).reduce(function(e,t){return e+t},0)}(this,e.element),s=(t?e.component.overlayContent():e.component.$content()).outerWidth(!0),l=!t&&s>r,u=this._rowsView.getCellIndex((0,o.default)(e.element).closest("td")),c=function(e){var t=void 0,n=void 0;return e.some(function(i,o){if("transparent"===i.command)return t=0===o?-1:o,n=o===e.length-1?-1:o+i.colspan-1,!0}),{startColumnIndex:t,endColumnIndex:n}}(i);return t||u!==c.startColumnIndex&&!l?u===c.endColumnIndex&&(a={collision:"none flip",my:"top right",at:t||n?"top left":"bottom right"},t&&(a.offset="-1 0")):a={collision:"none flip",my:"top left",at:n?"top right":"bottom left"},a&&{position:a,maxWidth:l?r-2:void 0}}},_shiftValidationMessageIfNeed:function(e,t,n){if(t){var i=e.offset(),o=t.offset();if(i.top===o.top&&i.left+e.width()>o.left){var a=t.width()+2;e.css("left",o.left<n.offset().left?-a:a)}}},_getTooltipsSelector:function(){var e=this.addWidgetPrefix(C);return".dx-editor-cell ."+this.addWidgetPrefix(w)+", .dx-editor-cell ."+e+", .dx-cell-modified ."+e},init:function(){this.callBase(),this._editingController=this.getController("editing"),this._columnsController=this.getController("columns"),this._rowsView=this.getView("rowsView")},loseFocus:function(e){e||this.getController("validating").setValidator(null),this.callBase()},focus:function(e,t){var n,i,o=this,a=e&&e.closest(o._getFocusCellSelector()),r=a&&(a.data("dxValidator")||e.find("."+o.addWidgetPrefix(S)).eq(0).data("dxValidator")),s=a&&a.closest(".dx-row").data("options"),l=s?o.getController("editing").getEditDataByKey(s.key):null,u=a&&a.closest("."+o.addWidgetPrefix("rowsview")).find(o._getTooltipsSelector()),c=a&&a.is("td")?a:null,d=!1,h=c&&o.getController("columns").getVisibleColumns()[c.index()];return arguments.length?(u&&u.remove(),r&&(o.getController("validating").setValidator(r),void 0!==r.option("adapter").getValue()&&((n=r.validate()).isValid||(t=!0,d=!0))),(n&&!n.isValid||l&&"update"===l.type&&!o._editingController.isSaving())&&o._editingController.getEditMode()===E&&(i=o._showRevertButton(a,c?a.find("."+k).first():a)),d&&c&&h&&n.brokenRule.message&&o._showValidationMessage(a,n.brokenRule.message,h.alignment||"left",i),!t&&o._rowsView.element()&&o._rowsView.updateFreeSpaceRowHeight(),o.callBase(e,t)):o.callBase()}}},views:{rowsView:{updateFreeSpaceRowHeight:function(e){var t,n,i,o=this,a=o.element(),r=a&&a.find("."+o.addWidgetPrefix(C)+" .dx-overlay-content");if(o.callBase(e),r&&r.length&&(t=o._getRowElements(),(n=(i=o._getFreeSpaceRowElements(e)).first())&&1===t.length&&(!n.is(":visible")||r.outerHeight()>n.outerHeight())))return i.show(),i.height(r.outerHeight()),!0},_formItemPrepared:function(e,t){var n=this;this.callBase.apply(this,arguments),(0,l.deferUpdate)(function(){var i=t.find(".dx-widget").first();i.length&&!i.children().length||n.getController("validating").createValidator(e,i)})},_cellPrepared:function(e,t){this.getController("editing").isFormEditMode()||this.getController("validating").createValidator(t,e),this.callBase.apply(this,arguments)}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=n(7),r=n(4),s=i(n(350)),l=i(n(36)),u=n(3),c=n(6),d=i(n(26)),h=i(n(93)),p="bottom-load-panel",f="table-content",g="dx-freespace-row",_="dx-column-lines",m="dx-virtual-row",v="infinite",y="virtual",b=25e4,x=function(e){return e.option("scrolling.mode")===y},w=function(e){return e.option("scrolling.mode")===v},C=function(e){var t=e.option("scrolling.rowRenderingMode");return t===y||"standard"!==t&&void 0},k=function(e,t,n,i){for(var o=n?0:1,a=0;a<t+o;a++){var r=e[n?e.length-1-a:a];r&&!i(r,a===t)&&t++}return t},S=function(){var e=function(e){var t=e._virtualScrollController.beginPageIndex(-1);x(e)&&(t<0||e.viewportSize()>=0&&e.getViewportItemIndex()>=0&&(t*e.pageSize()>e.getViewportItemIndex()||t*e.pageSize()+e.itemsCount()<e.getViewportItemIndex()+e.viewportSize())&&e._dataSource.isLoading()?e._isLoading||(e._isLoading=!0,e.loadingChanged.fire(!0)):e._isLoading&&(e._isLoading=!1,e.loadingChanged.fire(!1)))},t={init:function(t){var n=this;n.callBase.apply(n,arguments),n._items=[],n._isLoaded=!0,n._virtualScrollController=new s.default.VirtualScrollController(n.component,{pageSize:function(){return n.pageSize()},totalItemsCount:function(){return n.totalItemsCount()},hasKnownLastPage:function(){return n.hasKnownLastPage()},pageIndex:function(e){return t.pageIndex(e)},isLoading:function(){return t.isLoading()&&!n.isCustomLoading()},pageCount:function(){return n.pageCount()},load:function(){return t.load()},updateLoading:function(){e(n)},itemsCount:function(){return n.itemsCount(!0)},items:function(){return t.items()},viewportItems:function(e){return e&&(n._items=e),n._items},onChanged:function(e){n.changed.fire(e)},changingDuration:function(e){return n._renderTime||0}})},_handleLoadingChanged:function(e){var t=this;x(t)||(t._isLoading=e,t.callBase.apply(t,arguments))},_handleLoadError:function(){var e=this;e._isLoading=!1,e.loadingChanged.fire(!1),e.callBase.apply(e,arguments)},_handleDataChanged:function(e){var t=this.callBase.bind(this);this._virtualScrollController.handleDataChanged(t,e)},_customizeRemoteOperations:function(e,t,n){var i=this;!i.option("legacyRendering")&&x(i)&&!n.reload&&!t&&n.skip&&i._renderTime<i.option("scrolling.renderingThreshold")&&(e.delay=void 0),i.callBase.apply(i,arguments)},items:function(){return this._items},itemsCount:function(e){return e?this.callBase():this._virtualScrollController.itemsCount()},load:function(e){return e?this.callBase(e):this._virtualScrollController.load()},isLoading:function(){return this._isLoading},isLoaded:function(){return this._dataSource.isLoaded()&&this._isLoaded},_changeRowExpandCore:function(){var t=this.callBase.apply(this,arguments);return this._virtualScrollController.reset(),this.resetPagesCache(),e(this),t},reload:function(){this._dataSource.pageIndex(this.pageIndex());var e=this._virtualScrollController;if(e){var t=new c.Deferred;return this.callBase.apply(this,arguments).done(function(n){var i=e._delayDeferred;i?i.done(t.resolve).fail(t.reject):t.resolve(n)}).fail(t.reject),t}return this.callBase.apply(this,arguments)},refresh:function(t,n,i){var o=this,a=t.storeLoadOptions,r=o._dataSource;return(n||i.reload)&&(o._virtualScrollController.reset(),r.items().length=0,o._isLoaded=!1,e(o),o._isLoaded=!0,w(o)?(o.pageIndex(0),r.pageIndex(0),a.pageIndex=0,t.pageIndex=0,a.skip=0):(r.pageIndex(o.pageIndex()),r.paginate()&&(a.skip=o.pageIndex()*o.pageSize()))),o.callBase.apply(o,arguments)},dispose:function(){this._virtualScrollController.dispose(),this.callBase.apply(this,arguments)}};return["virtualItemsCount","getContentOffset","getVirtualContentSize","setContentSize","setViewportPosition","getViewportItemIndex","setViewportItemIndex","getItemIndexByPosition","viewportSize","viewportItemSize","getItemSize","getItemSizes","pageIndex","beginPageIndex","endPageIndex","loadIfNeed"].forEach(function(e){t[e]=function(){var t=this._virtualScrollController;return t[e].apply(t,arguments)}}),t}(),I=function(){var e=function(e,t){var n,i=e.parent("."+t);i.length&&(e=i),n=t===g?e.length-1:e.length;for(var o=0;o<n;o++)e.eq(o).remove()};return{init:function(){var e=this,t=e.getController("data");if(e.callBase(),t.pageChanged.add(function(){e.scrollToPage(t.pageIndex())}),!e.option("legacyRendering")&&t.pageIndex()>0){e.resizeCompleted.add(function n(){e.resizeCompleted.remove(n),e.scrollToPage(t.pageIndex())})}},scrollToPage:function(e){var t,n=this,i=n._dataController,o=i?i.pageSize():0;if(x(n)||w(n)){var a=i.getItemSize(),r=i.getItemSizes(),s=e*o;for(var l in t=s*a,r)l<=s&&(t+=r[l]-a)}else t=0;n.scrollTo({y:t,x:n._scrollLeft})},renderDelayedTemplates:function(e){this._updateContentPosition(!0),this.callBase.apply(this,arguments)},_renderCore:function(e){var t=this,n=new Date;t.callBase.apply(t,arguments);var i=t._dataController._dataSource;if(i&&e){var o=e.items?e.items.length:20,a=t._dataController.viewportSize()||20;C(t)?i._renderTime=(new Date-n)*a/o:i._renderTime=new Date-n}},_getRowElements:function(e){var t=this.callBase(e);return t&&t.not("."+m)},_renderContent:function(e,t){var n=this;return n._dataController.virtualItemsCount()&&n.option("legacyRendering")?((0,a.hasWindow)()&&t.addClass(n.addWidgetPrefix(f)),e.children().length?e.children().first().replaceWith(t):e.append(t),1===e.children("table").length&&(e.append(n._createTable()),n._contentHeight=0),e):n.callBase.apply(n,arguments)},_removeRowsElements:function(e,t,n){var i=this._getRowElements(e).toArray();i="append"===n?i.slice(0,t):i.slice(-t);var a=this.getController("errorHandling");i.map(function(e){var t=(0,o.default)(e);a&&a.removeErrorRow(t.next()),t.remove()})},_restoreErrorRow:function(e){var t=this.getController("editing");t&&t.hasChanges()&&this._getRowElements(e).each(function(e,n){var i=(0,o.default)(n).data("options");if(i){var a=t.getEditDataByKey(i.key);a&&t._showErrorRow(a)}})},_updateContent:function(t,n){var i,o,a=this,r=a._findContentElement(),s=n&&n.changeType;if("append"===s||"prepend"===s){i=r.children().first();var l=a._getBodies(t);a.option("legacyRendering")||1!==l.length?l["append"===s?"appendTo":"prependTo"](i):a._getBodies(i)["append"===s?"append":"prepend"](l.children()),t.remove(),o=a._getFreeSpaceRowElements(i),e(o,g),n.removeCount&&a._removeRowsElements(i,n.removeCount,s),a._restoreErrorRow(i)}else a.callBase.apply(a,arguments);a._updateBottomLoading()},_addVirtualRow:function(e,t,n,i){if(i){var o=this._createEmptyRow(m,t,i);o=this._wrapRowIfNeed(e,o),this._appendEmptyRow(e,o,n)}},_updateContentPosition:function(t){var n=this,i=n._dataController,a=n._rowHeight||20;if(i.viewportItemSize(a),n.option("legacyRendering")||!x(n)&&!C(n))(0,r.deferUpdate)(function(){n._updateContentPositionCore()});else{if(!t){var s=n._getRowElements(n._tableElement).toArray().map(function(e){return e.getBoundingClientRect().height});i.setContentSize(s)}var l=i.getContentOffset("begin"),u=i.getContentOffset("end"),c=n.getTableElements(),d=c.children("tbody").children("."+m);e(d,m),c.each(function(e){var t=e>0;n._isFixedTableRendering=t,n._addVirtualRow((0,o.default)(this),t,"top",l),n._addVirtualRow((0,o.default)(this),t,"bottom",u),n._isFixedTableRendering=!1}),!t&&n._updateScrollTopPosition(l)}},_updateScrollTopPosition:function(e){this._scrollTop<e&&!this._isScrollByEvent&&this._dataController.pageIndex()>0&&this.scrollTo({top:e,left:this._scrollLeft})},_updateContentPositionCore:function(){var e,t,n,i,o,a=this,s=a._rowHeight||20;a._dataController.virtualItemsCount()&&(n=a._findContentElement().children(),i=n.eq(0),o=n.eq(1),a._contentTableHeight=i[0].offsetHeight,a._dataController.viewportItemSize(s),a._dataController.setContentSize(a._contentTableHeight),e=a._dataController.getVirtualContentSize(),t=a._dataController.getContentOffset(),(0,r.deferRender)(function(){d.default.move(i,{left:0,top:t}),(a._contentHeight!==e||0===e||!a._isTableLinesDisplaysCorrect(o)||!a._isColumnElementsEqual(i.find("col"),o.find("col")))&&(a._contentHeight=e,a._renderVirtualTableContent(o,e)),a._updateScrollTopPosition(t)}))},_isTableLinesDisplaysCorrect:function(e){return e.find("."+_).length>0===this.option("showColumnLines")},_isColumnElementsEqual:function(e,t){var n=e.length===t.length;return n&&(0,u.each)(e,function(e,i){if(i.style.width!==t[e].style.width)return n=!1}),n},_renderVirtualTableContent:function(e,t){var n,i=this,o=i._columnsController.getVisibleColumns(),a=i._createColGroup(o).prop("outerHTML"),r="",s=i.option("showColumnLines")?_:"",l=function(e){return"<tr style='height:"+e+"px;' class='"+g+" dx-row "+s+"' >"+r+"</tr>"};for(n=0;n<o.length;n++){var u=i._getCellClasses(o[n]),c=u.length?" class='"+u.join(" ")+"'":"";r+="<td"+c+"/>"}for(;t>b;)a+=l(b),t-=b;a+=l(t),e.addClass(i.addWidgetPrefix("table")),e.html(a)},_getCellClasses:function(e){var t=[],n=e.cssClass,i="expand"===e.command;return n&&t.push(n),i&&t.push(this.addWidgetPrefix("group-space")),t},_findBottomLoadPanel:function(e){var t=e||this.element(),n=t&&t.find("."+this.addWidgetPrefix(p));if(n&&n.length)return n},_updateBottomLoading:function(){var e=this,t=e.option("scrolling.mode"),n=t===y,i=t===v,a=!e._dataController.hasKnownLastPage()&&e._dataController.isLoaded()&&(n||i),r=e._findContentElement(),s=e._findBottomLoadPanel(r);a?s||(0,o.default)("<div>").addClass(e.addWidgetPrefix(p)).append(e._createComponent((0,o.default)("<div>"),h.default).$element()).appendTo(r):s&&s.remove()},_handleScroll:function(e){var t=this;t._hasHeight&&t._rowHeight&&t._dataController.setViewportPosition(e.scrollOffset.top),t.callBase.apply(t,arguments)},_needUpdateRowHeight:function(e){var t=this;return t.callBase.apply(t,arguments)||e>0&&t.option("scrolling.mode")===v&&t.option("scrolling.rowRenderingMode")!==y},_updateRowHeight:function(){var e,t=this;t.callBase.apply(t,arguments),t._rowHeight&&(t._updateContentPosition(),e=t._hasHeight?t.element().outerHeight():(0,o.default)((0,a.getWindow)()).outerHeight(),t._dataController.viewportSize(Math.ceil(e/t._rowHeight)))},updateFreeSpaceRowHeight:function(){var e=this.callBase.apply(this,arguments);return e&&this._updateContentPosition(),e},setLoading:function(e,t){var n=this,i=n.callBase,o=n._dataController;o.pageIndex()>0&&o.isLoaded()&&!!n._findBottomLoadPanel()&&(e=!1),i.call(n,e,t)},_resizeCore:function(){var e=this,t=e.element();e.callBase(),e.component.$element()&&!e._windowScroll&&t.closest((0,a.getWindow)().document).length&&(e._windowScroll=s.default.subscribeToExternalScrollers(t,function(t){!e._hasHeight&&e._rowHeight&&e._dataController.setViewportPosition(t)},e.component.$element()),e.on("disposing",function(){e._windowScroll.dispose()})),e.loadIfNeed()},loadIfNeed:function(){var e=this._dataController;e&&e.loadIfNeed&&e.loadIfNeed()},setColumnWidths:function(e){var t,n=this.getScrollable();this.callBase.apply(this,arguments),"virtual"===this.option("scrolling.mode")&&(t=n?n.$content():this.element(),this.callBase(e,t.children("."+this.addWidgetPrefix("content")).children(":not(."+this.addWidgetPrefix(f)+")")))},dispose:function(){clearTimeout(this._scrollTimeoutID),this.callBase()}}}();e.exports={defaultOptions:function(){return{scrolling:{timeout:300,updateTimeout:300,minTimeout:0,renderingThreshold:100,removeInvisiblePages:!0,rowPageSize:5,mode:"standard",preloadEnabled:!1,rowRenderingMode:"standard"}}},extenders:{dataSourceAdapter:S,controllers:{data:function(){var e={_refreshDataSource:function(){var e=this.callBase.apply(this,arguments)||(new c.Deferred).resolve().promise();return e.done(this.initVirtualRows.bind(this)),e},getRowPageSize:function(){var e=this.option("scrolling.rowPageSize"),t=this.pageSize();return t&&t<e?t:e},reload:function(){var e=this,t=e._rowsScrollController||e._dataSource,n=t&&t.getItemIndexByPosition(),i=this.callBase.apply(this,arguments);return i&&i.done(function(){if(x(e)||C(e)){var t=e.getRowIndexOffset(),i=Math.floor(n)-t,a=e.component,r=a.getScrollable&&a.getScrollable();if(r&&!e.option("legacyRendering")){var s=a.getRowElement(i),l=s&&s[0]&&(0,o.default)(s[0]),u=l&&l.position().top;u>0&&(u=Math.round(u+l.outerHeight()*(n%1)),r.scrollTo({y:u}))}}})},initVirtualRows:function(){var e=this,t=C(e);if("virtual"!==e.option("scrolling.mode")&&!0!==t||!1===t||e.option("legacyRendering")||!e.option("scrolling.rowPageSize"))return e._visibleItems=null,void(e._rowsScrollController=null);e._rowPageIndex=Math.ceil(e.pageIndex()*e.pageSize()/e.getRowPageSize()),e._visibleItems=[];var n=function(t){return"data"===t.rowType||"group"===t.rowType&&e._dataSource.isGroupItemCountable(t.data)};e._rowsScrollController=new s.default.VirtualScrollController(e.component,{pageSize:function(){return e.getRowPageSize()},totalItemsCount:function(){return x(e)?e.totalItemsCount():e._items.filter(n).length},hasKnownLastPage:function(){return!0},pageIndex:function(t){return void 0!==t&&(e._rowPageIndex=t),e._rowPageIndex},isLoading:function(){return e.isLoading()},pageCount:function(){var e=Math.ceil(this.totalItemsCount()/this.pageSize());return e||1},load:function(){e._rowsScrollController.pageIndex()>=this.pageCount()&&(e._rowPageIndex=this.pageCount()-1,e._rowsScrollController.pageIndex(e._rowPageIndex)),!e._rowsScrollController._dataSource.items().length&&this.totalItemsCount()||e._rowsScrollController.handleDataChanged(function(t){(t=t||{}).changeType=t.changeType||"refresh",t.items=t.items||e._visibleItems,e._visibleItems.forEach(function(e,t){e.rowIndex=t}),e._fireChanged(t)})},updateLoading:function(){},itemsCount:function(){return e._rowsScrollController._dataSource.items().filter(n).length},correctCount:function(e,t,i){return k(e,t,i,n)},items:function(t){var i=e.dataSource(),o=i&&i.virtualItemsCount(),a=o?o.begin:0,r=e.getRowPageSize(),s=e._rowPageIndex*r-a,l=r,u=e._items;return s<0?[]:(s&&(s=this.correctCount(u,s),u=u.slice(s)),l&&(l=this.correctCount(u,l),u=u.slice(0,l)),t?u.filter(n):u)},viewportItems:function(t){return t&&(e._visibleItems=t),e._visibleItems},onChanged:function(){},changingDuration:function(t){var n=e.dataSource();return n&&n._renderTime||0}},!0),e.isLoaded()&&e._rowsScrollController.load()},_updateItemsCore:function(e){var t=this,n=this.getRowIndexDelta();this.callBase.apply(this,arguments);var i=this._rowsScrollController;if(i){var o=this._visibleItems,a="refresh"===e.changeType||e.isLiveUpdate;if("append"===e.changeType&&e.items&&!e.items.length)return;a||"append"===e.changeType||"prepend"===e.changeType?(e.cancel=!0,a&&i.reset(),i.load()):("update"===e.changeType?e.rowIndices.forEach(function(t,n){var i=e.changeTypes[n],a=e.items[n];"update"===i?o[t]=a:"insert"===i?o.splice(t,0,a):"remove"===i&&o.splice(t,1)}):(o.forEach(function(e,i){o[i]=t._items[i+n]||o[i]}),e.items=o),o.forEach(function(e,t){e.rowIndex=t}))}},_applyChange:function(e){var t=this,n=e.items,i=e.changeType,o=e.removeCount;if(o){var a="prepend"===i;o=k(t._items,o,a,function(e,n){return"data"===e.rowType||"group"===e.rowType&&(t._dataSource.isGroupItemCountable(e.data)||n)}),e.removeCount=o}switch(i){case"prepend":t._items.unshift.apply(t._items,n),o&&t._items.splice(-o);break;case"append":t._items.push.apply(t._items,n),o&&t._items.splice(0,o);break;default:t.callBase(e)}},items:function(e){return e?this._items:this._visibleItems||this._items},getRowIndexDelta:function(){var e=this._visibleItems,t=0;return e&&e[0]&&(t=this._items.indexOf(e[0])),t<0?0:t},getRowIndexOffset:function(){var e=0,t=this.dataSource(),n=this._rowsScrollController;return n?e=n.beginPageIndex()*n._dataSource.pageSize():"virtual"===this.option("scrolling.mode")&&t&&(e=t.beginPageIndex()*t.pageSize()),e},viewportSize:function(){var e=this._rowsScrollController;e&&e.viewportSize.apply(e,arguments);var t=this._dataSource;return t&&t.viewportSize.apply(t,arguments)},viewportItemSize:function(){var e=this._rowsScrollController;e&&e.viewportItemSize.apply(e,arguments);var t=this._dataSource;return t&&t.viewportItemSize.apply(t,arguments)},setViewportPosition:function(){var e=this._rowsScrollController,t=this._dataSource;e?e.setViewportPosition.apply(e,arguments).done(function(){t&&t.setViewportItemIndex(e.getViewportItemIndex())}):t&&t.setViewportPosition.apply(t,arguments)},setContentSize:function(e){var t=this._rowsScrollController;t&&t.setContentSize(e);var n=this._dataSource;return n&&n.setContentSize(e)},loadIfNeed:function(){var e=this._rowsScrollController;e&&e.loadIfNeed();var t=this._dataSource;return t&&t.loadIfNeed()},getItemSize:function(){var e=this._rowsScrollController;if(e)return e.getItemSize.apply(e,arguments);var t=this._dataSource;return t&&t.getItemSize.apply(t,arguments)},getItemSizes:function(){var e=this._rowsScrollController;if(e)return e.getItemSizes.apply(e,arguments);var t=this._dataSource;return t&&t.getItemSizes.apply(t,arguments)},getContentOffset:function(){var e=this._rowsScrollController;if(e)return e.getContentOffset.apply(e,arguments);var t=this._dataSource;return t&&t.getContentOffset.apply(t,arguments)},dispose:function(){var e=this._rowsScrollController;e&&e.dispose(),this.callBase.apply(this,arguments)}};return l.default.proxyMethod(e,"virtualItemsCount"),l.default.proxyMethod(e,"getVirtualContentSize"),l.default.proxyMethod(e,"setViewportItemIndex"),e}(),resizing:{resize:function(){var e,t=this,n=t.callBase;if(t.option("legacyRendering")||!x(t)&&!C(t))e=n.apply(t);else{clearTimeout(t._resizeTimeout);var i=new Date-t._lastTime,o=t.option("scrolling.updateTimeout");t._lastTime&&i<o?(e=new c.Deferred,t._resizeTimeout=setTimeout(function(){n.apply(t).done(e.resolve).fail(e.reject),t._lastTime=new Date},o),t._lastTime=new Date):(e=n.apply(t),t._dataController.isLoaded()&&(t._lastTime=new Date))}return e},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._resizeTimeout)}}},views:{rowsView:I}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=n(7),r=i(n(5)),s=i(n(31)),l=n(1),u=i(n(77)),c=n(3),d=i(n(14)),h=n(6),p=function(e){return"virtual"===e.option("scrolling.mode")||e._isVirtual},f=function(e){return"infinite"===e.option("scrolling.mode")&&!e._isVirtual};t.getPixelRatio=function(e){return e.devicePixelRatio||1},t.getContentHeightLimit=function(e){return e.msie?4e6:e.mozilla?8e6:15e6/t.getPixelRatio((0,a.getWindow)())},t.subscribeToExternalScrollers=function(e,t,n){function i(t){var n=t.element?t.$element():t,i=u.default.offset(n);return i?t.scrollTop()-(i.top-e.offset().top):e.offset().top}function s(e){return function(){var n=e.scrollTop()-i(e);t(n=n>0?n:0)}}function l(e){var t="#document"===e.get(0).nodeName,n=e.data("dxScrollable"),l=g;if(n||(n=t&&(0,o.default)((0,a.getWindow)())||"auto"===e.css("overflowY")&&e,l=r.default,n)){var u=s(n);l.on(n,"scroll",u),p.push(function(e){var t=i(n),o=n.scrollTo?"scrollTo":"scrollTop";e-t>=0&&n[o](e+t)}),h.push(n),f.push(function(){l.off(n,"scroll",u)})}}var d,h=[],p=[],f=[],g={on:function(e,t,n){e.on("scroll",n)},off:function(e,t,n){e.off("scroll",n)}};for(d=(n=n||e).parent();d.length;d=d.parent())l(d);return{scrollTo:function(e){(0,c.each)(p,function(t,n){n(e)})},dispose:function(){(0,c.each)(f,function(e,t){t()})}}},t.VirtualScrollController=d.default.inherit(function(){var e=function(e,t){var n=e.option("scrolling.preloadEnabled"),i=function(e){var t=e._dataSource.pageSize();if(e.option("scrolling.preventPreload"))return 0;var n=e._viewportSize;if(p(e)&&!1===e.option("legacyRendering")&&e.option("scrolling.removeInvisiblePages")){n=0;for(var i=e._viewportSize*e._viewportItemSize,o=e.getContentOffset(),a=e._position||0,r=e.virtualItemsCount(),s=e._dataSource.totalItemsCount(),l=r.begin;l<s&&!(o>=a+i);l++)(o+=e._itemSizes[l]||e._viewportItemSize)>=a&&n++}return t&&n>0?Math.ceil(n/t):1}(e);return i&&(t?i=n?1:0:(n&&i++,f(e)&&i--)),i},n=function(t){var n=-1,a=i(t),r=t._dataSource;return a<0?n=t._pageIndex:t._cache[t._pageIndex-a]?a>=0&&t._viewportSize>=0&&(a>0&&((o(t)+1===r.pageCount()&&t._cache.length<e(t)+1||t._pageIndex===a&&e(t,!0))&&(n=a-1)),n<0&&(a+t._cache.length<=t._pageIndex+e(t)&&(n=a+t._cache.length))):(t._loadingPageIndex!==t._pageIndex||t._isVirtual)&&(n=t._pageIndex),n},i=function(e){return e._cache.length?e._cache[0].pageIndex:-1},o=function(e){return e._cache.length?e._cache[e._cache.length-1].pageIndex:-1},a=function(e,t,n){e._isChangedFiring=!0,t(n),e._isChangedFiring=!1},r=function(e,t,n){if(e._isDelayChanged)return e._isDelayChanged=!1,a(e,t,n),!0},u=function(e,t,n,i,o){var r=e._dataSource,s=r.items().slice(),u=(0,l.isObject)(n)?n:void 0,c="prepend"===n,d=r.viewportItems();n&&(0,l.isString)(n)&&!e._isDelayChanged&&(u={changeType:n,items:s},o&&(u.removeCount=o.itemsCount,u.removeCount&&r.correctCount&&(u.removeCount=r.correctCount(d,u.removeCount,c))));var h=o?o.itemsLength:0;h&&r.correctCount&&(h=r.correctCount(d,h,c)),"append"===n?(d.push.apply(d,s),o&&d.splice(0,h)):c?(d.unshift.apply(d,s),o&&d.splice(-h)):e._dataSource.viewportItems(s),r.updateLoading(),e._lastPageIndex=e.pageIndex(),e._isDelayChanged=i,i||a(e,t,u)};return{ctor:function(e,t,n){var i=this;i._dataSource=t,i.component=e,i._pageIndex=i._lastPageIndex=t.pageIndex(),i._viewportSize=0,i._viewportItemSize=20,i._viewportItemIndex=-1,i._itemSizes={},i._sizeRatio=1,i._items=[],i._cache=[],i._isVirtual=n,i._loadingPageIndex=-1},getItemSizes:function(){return this._itemSizes},option:function(){return this.component.option.apply(this.component,arguments)},virtualItemsCount:function(){var e,t,n=this,o=0;if(p(n))return(e=i(n))<0&&(e=n._dataSource.pageIndex()),t=e*n._dataSource.pageSize(),o=n._cache.length*n._dataSource.pageSize(),{begin:t,end:Math.max(0,n._dataSource.totalItemsCount()-o-t)}},setViewportPosition:function(e){var t=this,n=new h.Deferred,i=Math.min(t.option("scrolling.timeout")||0,t._dataSource.changingDuration());return i<t.option("scrolling.renderingThreshold")&&(i=t.option("scrolling.minTimeout")||0),clearTimeout(t._scrollTimeoutID),i>0?t._scrollTimeoutID=setTimeout(function(){t._setViewportPositionCore(e),n.resolve()},i):(t._setViewportPositionCore(e),n.resolve()),n.promise()},getViewportPosition:function(){return this._position||0},getItemIndexByPosition:function(){for(var e,t=this,n=t._position,i=t.getItemSize(),o=0,a=0,r=Object.keys(t._itemSizes).concat(-1),s=0;s<r.length&&o<n;s++){var l=parseInt(r[s]),u=(n-o)/i;if(l<0||a+u<l){a+=u;break}o+=(u=l-a)*i,a+=u,a+=(o+=e=t._itemSizes[l])<n?1:(n-o+e)/e}return Math.round(50*a)/50},_setViewportPositionCore:function(e){this._position=e;var t=this.getItemIndexByPosition();return this.setViewportItemIndex(t)},setContentSize:function(e){var n=this,i=Array.isArray(e)&&e,o=n.virtualItemsCount();if(i&&(e=i.reduce(function(e,t){return e+t},0)),n._contentSize=e,o){i&&i.forEach(function(e,t){n._itemSizes[o.begin+t]=e});var a=(o.begin+o.end+n.itemsCount())*n._viewportItemSize,r=t.getContentHeightLimit(s.default);n._sizeRatio=a>r?r/a:1}},getItemSize:function(){return this._viewportItemSize*this._sizeRatio},getContentOffset:function(e){var t,n=this,i=n.virtualItemsCount(),o="end"===e;if(!i)return 0;t=o?i.end:i.begin;var a=0,r=n._dataSource.totalItemsCount();return Object.keys(n._itemSizes).forEach(function(e){t&&(o?e>=r-i.end:e<i.begin)&&(a+=n._itemSizes[e],t--)}),Math.floor(a+t*n._viewportItemSize*n._sizeRatio)},getVirtualContentSize:function(){var e=this;return e.virtualItemsCount()?e.getContentOffset("begin")+e.getContentOffset("end")+e._contentSize:0},getViewportItemIndex:function(){return this._viewportItemIndex},setViewportItemIndex:function(e){var t,n,i,o=this,a=o._dataSource.pageSize(),r=o._dataSource.pageCount(),s=p(o),l=f(o),u=o._dataSource.totalItemsCount(),c=o._viewportItemIndex<0;if(o._viewportItemIndex=e,a&&(s||l)&&u>=0)return o._viewportSize&&e+o._viewportSize>=u&&!o._isVirtual?o._dataSource.hasKnownLastPage()?(t=u%a,(i=r-1)>0&&t>0&&t<a/2&&i--):i=r:(i=Math.floor(e/a),n=r-1,i=Math.max(i,0),i=Math.min(i,n)),(o.pageIndex()!==i||c)&&o.pageIndex(i),o.load()},viewportItemSize:function(e){return void 0!==e&&(this._viewportItemSize=e),this._viewportItemSize},viewportSize:function(e){return void 0!==e&&(this._viewportSize=e),this._viewportSize},pageIndex:function(e){return p(this)||f(this)?(void 0!==e&&(this._pageIndex=e),this._pageIndex):this._dataSource.pageIndex(e)},beginPageIndex:function(e){var t=i(this);return t<0&&(t=void 0!==e?e:this.pageIndex()),t},endPageIndex:function(){var e=o(this);return e>0?e:this._lastPageIndex},load:function(){var e,t,i,o=this,a=o._dataSource;return p(o)||f(o)?(e=n(o))>=0&&((t=function(e,t){var n=e._dataSource;if(t===e.pageIndex()||!n.isLoading()&&t<n.pageCount()||!n.hasKnownLastPage()&&t===n.pageCount())return n.pageIndex(t),e._loadingPageIndex=t,(0,h.when)(n.load()).always(function(){e._loadingPageIndex=-1})}(o,e))&&(i=new h.Deferred,t.done(function(){var e=o._delayDeferred;e?e.done(i.resolve).fail(i.reject):i.resolve()}).fail(i.reject),a.updateLoading())):i=a.load(),i||o._lastPageIndex===o.pageIndex()||o._dataSource.onChanged({changeType:"pageIndex"}),i||(new h.Deferred).resolve()},loadIfNeed:function(){var e=this;if((p(e)||f(e))&&!e._dataSource.isLoading()&&(!e._isChangedFiring||e._isVirtual)){var t=e.getViewportPosition();t>0?e._setViewportPositionCore(t):e.load()}},handleDataChanged:function(t,n){var s,l,c,d,h=this,g=h._dataSource,_=h._cache.length;if(n&&n.changes)a(h,t,n);else if(p(h)||f(h)){if((s=i(h))>=0&&(p(h)&&s+h._cache.length!==g.pageIndex()&&s-1!==g.pageIndex()&&(_=0,h._cache=[]),f(h)))if(0===g.pageIndex())h._cache=[];else if(g.pageIndex()<o(h))return void a(h,t,{changeType:"append",items:[]});var m;d={pageIndex:g.pageIndex(),itemsLength:g.items(!0).length,itemsCount:h.itemsCount(!0)},!h.option("legacyRendering")&&h.option("scrolling.removeInvisiblePages")&&p(h)?c=h._cache.length>Math.max(e(this)+(h.option("scrolling.preloadEnabled")?1:0),2):r(h,t,{isDelayed:!0}),s===g.pageIndex()+1?(c&&(m=h._cache.pop()),l="prepend",h._cache.unshift(d)):(c&&(m=h._cache.shift()),l="append",h._cache.push(d));var v=p(h)&&0===_;u(h,t,h._cache.length>1?l:void 0,v,m),h._delayDeferred=h.load().done(function(){r(h,t)&&h.load()})}else u(h,t,n)},itemsCount:function(e){var t=0;return!e&&p(this)?(0,c.each)(this._cache,function(){t+=this.itemsCount}):t=this._dataSource.itemsCount(),t},reset:function(){this._cache=[],this._itemSizes={}},subscribeToWindowScrollEvents:function(e){var n=this;n._windowScroll=n._windowScroll||t.subscribeToExternalScrollers(e,function(e){n.viewportItemSize()&&n.setViewportPosition(e)})},dispose:function(){clearTimeout(this._scrollTimeoutID),this._windowScroll&&this._windowScroll.dispose(),this._windowScroll=null},scrollTo:function(e){this._windowScroll&&this._windowScroll.scrollTo(e)}}}())},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return"onClick"===e.option("filterRow.applyFilter")}var a=i(n(2)),r=i(n(5)),s=n(1),l=n(0),u=n(9),c=i(n(3)),d=i(n(38)),h=i(n(36)),p=i(n(15)),f=i(n(49)),g=i(n(58)),_=i(n(352)),m=n(96),v={"=":"filter-operation-equals","<>":"filter-operation-not-equals","<":"filter-operation-less","<=":"filter-operation-less-equal",">":"filter-operation-greater",">=":"filter-operation-greater-equal",default:"filter-operation-default",notcontains:"filter-operation-not-contains",contains:"filter-operation-contains",startswith:"filter-operation-starts-with",endswith:"filter-operation-ends-with",between:"filter-operation-between"},y={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",between:"between"},b="filter-row",x="filter-range-overlay",w="filter-range-start",C="dx-menu",k="dx-editor-with-menu",S="dx-editor-container",I="dx-editor-cell",T="dx-highlight-outline",D="dx-focused",E="dx-filter-range-content",A="dx-filter-modified",O="input:not([type='hidden'])",P=function(){var e=function(e){var t=e&&e.children(),n=t&&t.data("dxComponents"),i=n&&n.length&&t.data(n[0]);if(i instanceof f.default)return i},t=function(e,t){var i="",o="",a=n(e,t),r=h.default.getFormatOptionsByColumn(t,"filterRow");return Array.isArray(a)?(i=h.default.formatValue(a[0],r),""!==(o=h.default.formatValue(a[1],r))&&(i+=" - "+o)):(0,s.isDefined)(a)&&(i=h.default.formatValue(a,r)),i},n=function(e,t){if(t)return o(e)&&void 0!==t.bufferedFilterValue?t.bufferedFilterValue:t.filterValue},i=function(e,t){if(t)return o(e)&&void 0!==t.bufferedSelectedFilterOperation?t.bufferedSelectedFilterOperation:t.selectedFilterOperation},d=function(e,t,o){var a=e._columnsController.columnOption(t),r=n(e,a),s=o.closest("."+e.addWidgetPrefix(x)).length,l=o.hasClass(e.addWidgetPrefix(w));return r&&Array.isArray(r)&&"between"===i(e,a)?l?r[0]:r[1]:s||void 0===r?null:r},T=function(e,t,o,a){if("between"===i(e,o)){var r=n(e,o);return a.hasClass(e.addWidgetPrefix(w))?[t,Array.isArray(r)?r[1]:void 0]:[Array.isArray(r)?r[0]:r,t]}return t},A=function(e,t){var n=""===t.value?null:t.value,i=t.container,a=e._columnsController.columnOption(t.column.index),r=d(e,a.index,i);((0,s.isDefined)(r)||(0,s.isDefined)(n))&&(e._applyFilterViewController.setHighLight(i,r!==n),e._columnsController.columnOption(a.index,o(e)?"bufferedFilterValue":"filterValue",T(e,n,a,i),t.notFireEvent))};return{_updateEditorValue:function(t,n){var i=e(n);i&&i.option("value",d(this,t.index,n))},_columnOptionChanged:function(e){var n,o,r,s,l,u,c,d=this,p=e.optionNames;return h.default.checkChanges(p,["filterValue","bufferedFilterValue","selectedFilterOperation","bufferedSelectedFilterOperation"])&&void 0!==e.columnIndex?(o=d._columnsController.getVisibleIndex(e.columnIndex),r=d._columnsController.columnOption(e.columnIndex),l=(s=d._getCellElement(d.element().find("."+d.addWidgetPrefix(b)).index(),o)||(0,a.default)()).find("."+S).first(),(p.filterValue||p.bufferedFilterValue)&&(d._updateEditorValue(r,l),(n=s.find("."+d.addWidgetPrefix(x)).data("dxOverlay"))&&(u=n.$content().find("."+S),d._updateEditorValue(r,u.first()),d._updateEditorValue(r,u.last())),n&&n.option("visible")||d._updateFilterRangeContent(s,t(d,r))),void((p.selectedFilterOperation||p.bufferedSelectedFilterOperation)&&o>=0&&r&&(c=s.find("."+C),c.length&&(d._updateFilterOperationChooser(c,r,l),"between"===i(d,r)?d._renderFilterRangeContent(s,r):l.find("."+E).length&&(d._renderEditor(l,d._getEditorOptions(l,r)),d._hideFilterRange()))))):void d.callBase(e)},_renderCore:function(){this._filterRangeOverlayInstance=null,this.callBase.apply(this,arguments)},_resizeCore:function(){this.callBase.apply(this,arguments),this._filterRangeOverlayInstance&&this._filterRangeOverlayInstance.repaint()},isFilterRowVisible:function(){return this._isElementVisible(this.option("filterRow"))},isVisible:function(){return this.callBase()||this.isFilterRowVisible()},init:function(){this.callBase(),this._applyFilterViewController=this.getController("applyFilter")},_initFilterRangeOverlay:function(e,n){var o=this,s={},l=e.find(".dx-editor-container"),c=(0,a.default)("<div>").addClass(o.addWidgetPrefix(x)).appendTo(e);return o._createComponent(c,g.default,{height:"auto",shading:!1,showTitle:!1,focusStateEnabled:!1,closeOnTargetScroll:!1,closeOnOutsideClick:!0,animation:!1,position:{my:"top",at:"top",of:l.length&&l||e,offset:"0 -1"},contentTemplate:function(t){var i,l=(0,a.default)("<div>").addClass(S+" "+o.addWidgetPrefix(w)).appendTo(t);return n=o._columnsController.columnOption(n.index),(i=o._getEditorOptions(l,n)).sharedData=s,o._renderEditor(l,i),r.default.on(l.find(O),"keydown",function(t){var n=e.find("[tabindex]").not(t.target).first();"tab"===(0,u.normalizeKeyName)(t)&&t.shiftKey&&(t.preventDefault(),o._hideFilterRange(),n.length||(n=e.prev().find("[tabindex]").last()),r.default.trigger(n,"focus"))}),l=(0,a.default)("<div>").addClass(S+" "+o.addWidgetPrefix("filter-range-end")).appendTo(t),(i=o._getEditorOptions(l,n)).sharedData=s,o._renderEditor(l,i),r.default.on(l.find(O),"keydown",function(t){"tab"!==(0,u.normalizeKeyName)(t)||t.shiftKey||(t.preventDefault(),o._hideFilterRange(),r.default.trigger(e.next().find("[tabindex]").first(),"focus"))}),(0,a.default)(t).addClass(o.getWidgetContainerClass())},onShown:function(e){var t=e.component.$content().find("."+S).first();r.default.trigger(t.find(O),"focus")},onHidden:function(){n=o._columnsController.columnOption(n.index),e.find("."+C).parent().addClass(k),"between"===i(o,n)&&(o._updateFilterRangeContent(e,t(o,n)),o.component.updateDimensions())}})},_updateFilterRangeOverlay:function(e){var t=this._filterRangeOverlayInstance;t&&t.option(e)},_showFilterRange:function(e,t){var n=this,i=e.children("."+n.addWidgetPrefix(x)),o=i.length&&i.data("dxOverlay");!o&&t&&(o=n._initFilterRangeOverlay(e,t)),o.option("visible")||(n._filterRangeOverlayInstance&&n._filterRangeOverlayInstance.hide(),n._filterRangeOverlayInstance=o,n._updateFilterRangeOverlay({width:e.outerWidth(!0)+1}),n._filterRangeOverlayInstance&&n._filterRangeOverlayInstance.show())},_hideFilterRange:function(){var e=this._filterRangeOverlayInstance;e&&e.hide()},getFilterRangeOverlayInstance:function(){return this._filterRangeOverlayInstance},_createRow:function(e){var t=this,n=this.callBase(e);return"filter"===e.rowType&&(n.addClass(this.addWidgetPrefix(b)),this.option("useLegacyKeyboardNavigation")||r.default.on(n,"keydown",function(e){return(0,m.selectView)("filterRow",t,e)})),n},_getRows:function(){var e=this.callBase();return this.isFilterRowVisible()&&e.push({rowType:"filter"}),e},_renderFilterCell:function(e,t){var n,o,r=this,s=t.column,l=(0,a.default)(e);r.setAria("label",p.default.format("dxDataGrid-ariaColumn")+" "+s.caption+", "+p.default.format("dxDataGrid-ariaFilterCell"),l),l.addClass(I),n=(0,a.default)("<div>").appendTo(l),o=(0,a.default)("<div>").addClass(S).appendTo(n),"between"===i(r,s)?r._renderFilterRangeContent(l,s):r._renderEditor(o,r._getEditorOptions(o,s)),s.alignment&&l.find(O).first().css("textAlign",s.alignment),s.filterOperations&&s.filterOperations.length&&r._renderFilterOperationChooser(n,s,o)},_renderCellContent:function(e,t){var n=this,i=t.column;if("filter"===t.rowType)if(i.command)e.html("&nbsp;");else if(i.allowFiltering)return void n.renderTemplate(e,n._renderFilterCell.bind(n),t);n.callBase(e,t)},_getEditorOptions:function(e,t){var n=this,o=(0,l.extend)({},t,{value:d(n,t.index,e),parentType:"filterRow",showAllText:n.option("filterRow.showAllText"),updateValueTimeout:"onClick"===n.option("filterRow.applyFilter")?0:700,width:null,setValue:function(i,o){A(n,{column:t,value:i,container:e,notFireEvent:o})}});return"between"===i(n,t)&&(e.hasClass(n.addWidgetPrefix(w))?o.placeholder=n.option("filterRow.betweenStartText"):o.placeholder=n.option("filterRow.betweenEndText")),o},_renderEditor:function(e,t){return e.empty(),this.getController("editorFactory").createEditor((0,a.default)("<div>").appendTo(e),t)},_renderFilterRangeContent:function(e,n){var i=this,o=e.find("."+S).first();o.empty();var s=(0,a.default)("<div>").addClass(E).attr("tabindex",this.option("tabIndex"));r.default.on(s,"focusin",function(){i._showFilterRange(e,n)}),s.appendTo(o),i._updateFilterRangeContent(e,t(i,n))},_updateFilterRangeContent:function(e,t){var n=e.find("."+E);n.length&&(""===t?n.html("&nbsp;"):n.text(t))},_updateFilterOperationChooser:function(t,n,a){var s,l=this;l._createComponent(t,_.default,{integrationOptions:{},activeStateEnabled:!1,selectionMode:"single",cssClass:l.getWidgetContainerClass()+" dx-cell-focus-disabled dx-filter-menu",showFirstSubmenuMode:"onHover",hideSubmenuOnMouseLeave:!0,items:[{disabled:!n.filterOperations||!n.filterOperations.length,icon:v[i(l,n)||"default"],selectable:!1,items:l._getFilterOperationMenuItems(n)}],onItemClick:function(t){var r=t.itemData.name,s=i(l,n),u=!1,c=o(l),d={};if(!(t.itemData.items||r&&r===s)){if(r?(d[c?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=r,"between"!==r&&"between"!==s||(u="between"===r,d[c?"bufferedFilterValue":"filterValue"]=null)):(d[c?"bufferedFilterValue":"filterValue"]=null,d[c?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=n.defaultSelectedFilterOperation||null),l._columnsController.columnOption(n.index,d),l._applyFilterViewController.setHighLight(a,!0),!r){var h=e(a);h&&"dxDateBox"===h.NAME&&!h.option("isValid")&&(h.reset(),h.option("isValid",!0))}u?l._showFilterRange(a.closest("."+I),n):l._focusEditor(a)}},onSubmenuShown:function(){s=l._isEditorFocused(a),l.getController("editorFactory").loseFocus()},onSubmenuHiding:function(){var e=_.default.getInstance(t);r.default.trigger(t,"blur"),e&&e.option("focusedElement",null),s&&l._focusEditor(a)},rtlEnabled:l.option("rtlEnabled")})},_isEditorFocused:function(e){return e.hasClass(D)||e.parents("."+D).length},_focusEditor:function(e){this.getController("editorFactory").focus(e),r.default.trigger(e.find(O),"focus")},_renderFilterOperationChooser:function(e,t,n){var i;this.option("filterRow.showOperationChooser")&&(e.addClass(k),i=(0,a.default)("<div>").prependTo(e),this._updateFilterOperationChooser(i,t,n))},_getFilterOperationMenuItems:function(e){var t=this,n=[{}],o=t.option("filterRow"),a=o&&o.operationDescriptions||{};if(e.filterOperations&&e.filterOperations.length){var r=e.filterOperations.filter(function(e){return(0,s.isDefined)(y[e])});(n=c.default.map(r,function(n){var o=y[n];return{name:n,selected:(i(t,e)||e.defaultFilterOperation)===n,text:a[o],icon:v[n]}})).push({name:null,text:o&&o.resetOperationText,icon:v.default})}return n},optionChanged:function(e){switch(e.name){case"filterRow":case"showColumnLines":this._invalidate(!0,!0),e.handled=!0;break;default:this.callBase(e)}}}}(),B={skipCalculateColumnFilters:function(){return!1},_calculateAdditionalFilter:function(){if(this.skipCalculateColumnFilters())return this.callBase();var e=[this.callBase()],t=this._columnsController.getVisibleColumns();return c.default.each(t,function(){var t;this.allowFiltering&&this.calculateFilterExpression&&(0,s.isDefined)(this.filterValue)&&(t=this.createFilterExpression(this.filterValue,this.selectedFilterOperation||this.defaultFilterOperation,"filterRow"),e.push(t))}),h.default.combineFilters(e)}};t.ApplyFilterViewController=d.default.ViewController.inherit({_getHeaderPanel:function(){return this._headerPanel||(this._headerPanel=this.getView("headerPanel")),this._headerPanel},setHighLight:function(e,t){o(this)&&(e&&e.toggleClass(T,t)&&e.closest("."+I).toggleClass(A,t),this._getHeaderPanel().enableApplyButton(t))},applyFilter:function(){var e=this.getController("columns"),t=e.getColumns();e.beginUpdate();for(var n=0;n<t.length;n++){var i=t[n];void 0!==i.bufferedFilterValue&&(e.columnOption(n,"filterValue",i.bufferedFilterValue),i.bufferedFilterValue=void 0),void 0!==i.bufferedSelectedFilterOperation&&(e.columnOption(n,"selectedFilterOperation",i.bufferedSelectedFilterOperation),i.bufferedSelectedFilterOperation=void 0)}e.endUpdate(),this.removeHighLights()},removeHighLights:function(){if(o(this)){var e=this.getView("columnHeadersView").element();e.find("."+this.addWidgetPrefix(b)+" ."+T).removeClass(T),e.find("."+this.addWidgetPrefix(b)+" ."+A).removeClass(A),this._getHeaderPanel().enableApplyButton(!1)}}}),e.exports={defaultOptions:function(){return{filterRow:{visible:!1,showOperationChooser:!0,showAllText:p.default.format("dxDataGrid-filterRowShowAllText"),resetOperationText:p.default.format("dxDataGrid-filterRowResetOperationText"),applyFilter:"auto",applyFilterText:p.default.format("dxDataGrid-applyFilterText"),operationDescriptions:{equal:p.default.format("dxDataGrid-filterRowOperationEquals"),notEqual:p.default.format("dxDataGrid-filterRowOperationNotEquals"),lessThan:p.default.format("dxDataGrid-filterRowOperationLess"),lessThanOrEqual:p.default.format("dxDataGrid-filterRowOperationLessOrEquals"),greaterThan:p.default.format("dxDataGrid-filterRowOperationGreater"),greaterThanOrEqual:p.default.format("dxDataGrid-filterRowOperationGreaterOrEquals"),startsWith:p.default.format("dxDataGrid-filterRowOperationStartsWith"),contains:p.default.format("dxDataGrid-filterRowOperationContains"),notContains:p.default.format("dxDataGrid-filterRowOperationNotContains"),endsWith:p.default.format("dxDataGrid-filterRowOperationEndsWith"),between:p.default.format("dxDataGrid-filterRowOperationBetween"),isBlank:p.default.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:p.default.format("dxFilterBuilder-filterOperationIsNotBlank")},betweenStartText:p.default.format("dxDataGrid-filterRowOperationBetweenStartText"),betweenEndText:p.default.format("dxDataGrid-filterRowOperationBetweenEndText")}}},controllers:{applyFilter:t.ApplyFilterViewController},extenders:{controllers:{data:B,columnsResizer:{_startResizing:function(){var e,t,n=this;n.callBase.apply(n,arguments),n.isResizing()&&((t=n._columnHeadersView.getFilterRangeOverlayInstance())&&((e=t.$element().closest("td").index())!==n._targetPoint.columnIndex&&e!==n._targetPoint.columnIndex+1||t.$content().hide()))},_endResizing:function(){var e,t,n=this;n.isResizing()&&((t=n._columnHeadersView.getFilterRangeOverlayInstance())&&(e=t.$element().closest("td"),n._columnHeadersView._updateFilterRangeOverlay({width:e.outerWidth(!0)+1}),t.$content().show())),n.callBase.apply(n,arguments)}}},views:{columnHeadersView:P,headerPanel:{_getToolbarItems:function(){var e=this.callBase();return this._prepareFilterItem(e).concat(e)},_prepareFilterItem:function(){var e=this,t=[];if(e._isShowApplyFilterButton()){var n=e.option("filterRow.applyFilterText"),i={widget:"dxButton",options:{icon:"apply-filter",disabled:!e._columnsController.getColumns().filter(function(e){return void 0!==e.bufferedFilterValue}).length,onClick:function(){e._applyFilterViewController.applyFilter()},hint:n,text:n,onInitialized:function(t){(0,a.default)(t.element).addClass(e._getToolbarButtonClass("dx-apply-button"))}},showText:"inMenu",name:"applyFilterButton",location:"after",locateInMenu:"auto",sortIndex:10};t.push(i)}return t},_isShowApplyFilterButton:function(){var e=this.option("filterRow");return e&&e.visible&&"onClick"===e.applyFilter},init:function(){this.callBase(),this._dataController=this.getController("data"),this._applyFilterViewController=this.getController("applyFilter")},enableApplyButton:function(e){this.setToolbarItemDisabled("applyFilterButton",!e)},isVisible:function(){return this.callBase()||this._isShowApplyFilterButton()},optionChanged:function(e){"filterRow"===e.name?(this._invalidate(),e.handled=!0):this.callBase(e)}}}}}},function(e,t,n){e.exports=n(353)},function(e,t,n){var i=n(2),o=n(5),a=n(8),r=n(4),s=n(10).getPublicElement,l=n(3).each,u=n(1),c=n(0).extend,d=n(244).getElementMaxHeightByWindow,h=n(9),p=n(24),f=n(134),g=n(323),_=n(58),m=n(619),v=n(34),y=n(141),b="dx-menu",x=b+"-horizontal",w=b+"-item",C=b+"-items-container",k=w+"-expanded",S="dx-context-menu",I=S+"-container-border",T="dx-state-hover",D=b+"-adaptive-mode",E=b+"-hamburger-button",A="showSubmenu",O="nextItem",P="prevItem",B={show:50,hide:300},M=["onSubmenuShowing","onSubmenuShown","onSubmenuHiding","onSubmenuHidden","onItemContextMenu","onItemClick","onSelectionChanged"],R=g.inherit({_getDefaultOptions:function(){return c(this.callBase(),{orientation:"horizontal",submenuDirection:"auto",showFirstSubmenuMode:{name:"onClick",delay:{show:50,hide:300}},hideSubmenuOnMouseLeave:!1,onSubmenuShowing:null,onSubmenuShown:null,onSubmenuHiding:null,onSubmenuHidden:null,adaptivityEnabled:!1})},_setOptionsByReference:function(){this.callBase(),c(this._optionsByReference,{animation:!0,selectedItem:!0})},_itemElements:function(){var e=this.callBase(),t=this._submenuItemElements();return e.add(t)},_submenuItemElements:function(){var e=[],t=this._submenus.length&&this._submenus[0];return t&&t.itemsContainer()&&(e=t.itemsContainer().find(".dx-menu-item")),e},_focusTarget:function(){return this.$element()},_isMenuHorizontal:function(){return"horizontal"===this.option("orientation")},_moveFocus:function(e){var t,n,i,o=this._getAvailableItems(),a=this._isMenuHorizontal(),r=this._getActiveItem(!0);switch(e){case"up":n=a?A:this._getItemsNavigationOperation(P),t=a?r:o,i=this._getKeyboardNavigationAction(n,t)();break;case"down":n=a?A:this._getItemsNavigationOperation(O),t=a?r:o,i=this._getKeyboardNavigationAction(n,t)();break;case"right":n=a?this._getItemsNavigationOperation(O):A,t=a?o:r,i=this._getKeyboardNavigationAction(n,t)();break;case"left":n=a?this._getItemsNavigationOperation(P):A,t=a?o:r,i=this._getKeyboardNavigationAction(n,t)();break;default:return this.callBase(e)}i&&0!==i.length&&this.option("focusedElement",s(i))},_getItemsNavigationOperation:function(e){var t=e;return this.option("rtlEnabled")&&(t=e===P?O:P),t},_getKeyboardNavigationAction:function(e,t){var n=r.noop;switch(e){case A:t.hasClass("dx-state-disabled")||(n=this._showSubmenu.bind(this,t));break;case O:n=this._nextItem.bind(this,t);break;case P:n=this._prevItem.bind(this,t)}return n},_clean:function(){this.callBase(),this.option("templatesRenderAsynchronously")&&clearTimeout(this._resizeEventTimer)},_visibilityChanged:function(e){e&&(this._menuItemsWidth||this._updateItemsWidthCache(),this._dimensionChanged())},_isAdaptivityEnabled:function(){return this.option("adaptivityEnabled")&&"horizontal"===this.option("orientation")},_updateItemsWidthCache:function(){var e=this.$element().find("ul").first().children("li").children("."+w);this._menuItemsWidth=this._getSummaryItemsWidth(e,!0)},_dimensionChanged:function(){if(this._isAdaptivityEnabled()){var e=this.$element().outerWidth();this._toggleAdaptiveMode(this._menuItemsWidth>e)}},_init:function(){this.callBase(),this._submenus=[]},_initActions:function(){this._actions={},l(M,function(e,t){this._actions[t]=this._createActionByOption(t)}.bind(this))},_initMarkup:function(){this._visibleSubmenu=null,this.$element().addClass(b),this.callBase(),this.setAria("role","menubar")},_render:function(){this.callBase(),this._initAdaptivity()},_renderHamburgerButton:function(){return this._hamburger=new v(i("<div>").addClass(E),{icon:"menu",activeStateEnabled:!1,onClick:this._toggleTreeView.bind(this)}),this._hamburger.$element()},_toggleTreeView:function(e){u.isPlainObject(e)&&(e=!this._overlay.option("visible")),this._overlay.option("visible",e),this._toggleHamburgerActiveState(e)},_toggleHamburgerActiveState:function(e){this._hamburger&&this._hamburger.$element().toggleClass("dx-state-active",e)},_toggleAdaptiveMode:function(e){var t=this.$element().find("."+x),n=this.$element().find("."+D);e?this._hideVisibleSubmenu():(this._treeView&&this._treeView.collapseAll(),this._overlay&&this._toggleTreeView(e)),t.toggle(!e),n.toggle(e)},_removeAdaptivity:function(){this._$adaptiveContainer&&(this._toggleAdaptiveMode(!1),this._$adaptiveContainer.remove(),this._$adaptiveContainer=null,this._treeView=null,this._hamburger=null,this._overlay=null)},_treeviewItemClickHandler:function(e){this._actions.onItemClick(e),e.node.children.length||this._toggleTreeView(!1)},_getAdaptiveOverlayOptions:function(){var e=this.option("rtlEnabled")?"right":"left";return{maxHeight:function(){return d(this.$element())}.bind(this),deferRendering:!1,shading:!1,animation:!1,closeOnTargetScroll:!0,onHidden:function(){this._toggleHamburgerActiveState(!1)}.bind(this),height:"auto",closeOnOutsideClick:function(e){return!i(e.target).closest("."+E).length},position:{collision:"flipfit",at:"bottom "+e,my:"top "+e,of:this._hamburger.$element()}}},_getTreeViewOptions:function(){var e={},t=this;return l(["rtlEnabled","width","accessKey","activeStateEnabled","animation","dataSource","disabled","displayExpr","displayExpr","focusStateEnabled","hint","hoverStateEnabled","itemsExpr","items","itemTemplate","selectedExpr","selectionMode","tabIndex","visible"],function(n,i){e[i]=t.option(i)}),l(["onItemContextMenu","onSelectionChanged"],function(n,i){e[i]=function(e){this._actions[i](e)}.bind(t)}),c(e,{dataSource:t.getDataSource(),animationEnabled:!!this.option("animation"),onItemClick:t._treeviewItemClickHandler.bind(t),onItemExpanded:function(e){this._overlay.repaint(),this._actions.onSubmenuShown(e)}.bind(t),onItemCollapsed:function(e){this._overlay.repaint(),this._actions.onSubmenuHidden(e)}.bind(t),selectNodesRecursive:!1,selectByClick:this.option("selectByClick"),expandEvent:"click"})},_initAdaptivity:function(){if(this._isAdaptivityEnabled()){this._$adaptiveContainer=i("<div>").addClass(D);var e=this._renderHamburgerButton();this._treeView=this._createComponent(i("<div>"),y,this._getTreeViewOptions()),this._overlay=this._createComponent(i("<div>"),_,this._getAdaptiveOverlayOptions()),this._overlay.$content().append(this._treeView.$element()).addClass(D).addClass(this.option("cssClass")),this._overlay._wrapper().addClass("dx-menu-adaptive-mode-overlay-wrapper"),this._$adaptiveContainer.append(e),this._$adaptiveContainer.append(this._overlay.$element()),this.$element().append(this._$adaptiveContainer),this._updateItemsWidthCache(),this._dimensionChanged()}},_getDelay:function(e){var t=this.option("showFirstSubmenuMode").delay;return u.isDefined(t)?u.isObject(t)?t[e]:t:B[e]},_keyboardHandler:function(e){return!!this._visibleSubmenu||this.callBase(e)},_renderContainer:function(){var e=i("<div>");return e.appendTo(this.$element()).addClass(this._isMenuHorizontal()?x:"dx-menu-vertical"),this.callBase(e)},_renderSubmenuItems:function(e,t){var n=this._createSubmenu(e,t);return this._submenus.push(n),this._renderBorderElement(t),n},_createSubmenu:function(e,t){var n=i("<div>").addClass(S).appendTo(t),o=this._keyboardProcessor&&this._keyboardProcessor.attachChildProcessor(),a=this._getChildNodes(e),r=this._createComponent(n,m,c(this._getSubmenuOptions(),{_keyboardProcessor:o,_dataAdapter:this._dataAdapter,_parentKey:e.internalFields.key,items:a,onHoverStart:this._clearTimeouts.bind(this),position:this.getSubmenuPosition(t)}));return this._attachSubmenuHandlers(t,r),r},_getSubmenuOptions:function(){var e=i("<div>"),t=this._isMenuHorizontal();return{itemTemplate:this.option("itemTemplate"),target:e,orientation:this.option("orientation"),selectionMode:this.option("selectionMode"),cssClass:this.option("cssClass"),selectByClick:this.option("selectByClick"),hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),focusStateEnabled:this.option("focusStateEnabled"),animation:this.option("animation"),showSubmenuMode:this.option("showSubmenuMode"),displayExpr:this.option("displayExpr"),disabledExpr:this.option("disabledExpr"),selectedExpr:this.option("selectedExpr"),itemsExpr:this.option("itemsExpr"),onFocusedItemChanged:function(e){e.component.option("visible")&&this.option("focusedElement",e.component.option("focusedElement"))}.bind(this),onSelectionChanged:this._nestedItemOnSelectionChangedHandler.bind(this),onItemClick:this._nestedItemOnItemClickHandler.bind(this),onItemRendered:this.option("onItemRendered"),onLeftFirstItem:t?null:this._moveMainMenuFocus.bind(this,P),onLeftLastItem:t?null:this._moveMainMenuFocus.bind(this,O),onCloseRootSubmenu:this._moveMainMenuFocus.bind(this,t?P:null),onExpandLastSubmenu:t?this._moveMainMenuFocus.bind(this,O):null}},_getShowFirstSubmenuMode:function(){if(!this._isDesktopDevice())return"onClick";var e=this.option("showFirstSubmenuMode");return u.isObject(e)?e.name:e},_moveMainMenuFocus:function(e){var t=this._getAvailableItems(),n=t.length,i=t.filter("."+k).eq(0),o=t.index(i);this._hideSubmenu(this._visibleSubmenu),(o+=e===P?-1:1)>=n?o=0:o<0&&(o=n-1);var a=t.eq(o);this.option("focusedElement",s(a))},_nestedItemOnSelectionChangedHandler:function(e){var t=e.addedItems.length&&e.addedItems[0],n=m.getInstance(e.element);(0,this._actions.onSelectionChanged)(e),t&&this._clearSelectionInSubmenus(t[0],n),this._clearRootSelection(),this._setOptionSilent("selectedItem",t)},_clearSelectionInSubmenus:function(e,t){var n=this,i=!arguments.length;l(this._submenus,function(e,o){var a,r=o._itemContainer(),s=!r.is(t&&t._itemContainer()),l=r.find("."+n._selectedItemClass());(s&&l.length||i)&&(l.removeClass(n._selectedItemClass()),(a=n._getItemData(l))&&(a.selected=!1),o._clearSelectedItems())})},_clearRootSelection:function(){var e=this.$element().find("."+C).first().children().children().filter("."+this._selectedItemClass());e.length&&(this._getItemData(e).selected=!1,e.removeClass(this._selectedItemClass()))},_nestedItemOnItemClickHandler:function(e){this._actions.onItemClick(e)},_attachSubmenuHandlers:function(e,t){var n=this,i=t.getOverlayContent().find(".dx-submenu"),a=h.addNamespace(f.end,this.NAME+"_submenu");t.option({onShowing:this._submenuOnShowingHandler.bind(this,e,t),onShown:this._submenuOnShownHandler.bind(this,e,t),onHiding:this._submenuOnHidingHandler.bind(this,e,t),onHidden:this._submenuOnHiddenHandler.bind(this,e,t)}),l(i,function(t,i){o.off(i,a),o.on(i,a,null,n._submenuMouseLeaveHandler.bind(n,e))})},_submenuOnShowingHandler:function(e,t){var n=e.children("."+I);this._actions.onSubmenuShowing({rootItem:s(e),submenu:t}),n.show(),e.addClass(k)},_submenuOnShownHandler:function(e,t){this._actions.onSubmenuShown({rootItem:s(e),submenu:t})},_submenuOnHidingHandler:function(e,t,n){var i=e.children("."+I),o=n;o.rootItem=s(e),o.submenu=t,this._actions.onSubmenuHiding(o),(n=o).cancel||(this._visibleSubmenu===t&&(this._visibleSubmenu=null),i.hide(),e.removeClass(k))},_submenuOnHiddenHandler:function(e,t){this._actions.onSubmenuHidden({rootItem:s(e),submenu:t})},_submenuMouseLeaveHandler:function(e,t){var n=this,o=i(t.relatedTarget).parents("."+S)[0],a=n._getSubmenuByRootElement(e).getOverlayContent()[0];n.option("hideSubmenuOnMouseLeave")&&o!==a&&(n._clearTimeouts(),setTimeout(n._hideSubmenuAfterTimeout.bind(n),n._getDelay("hide")))},_hideSubmenuAfterTimeout:function(){if(this._visibleSubmenu){var e=i(this._visibleSubmenu.$element().context).hasClass(T);this._visibleSubmenu.getOverlayContent().find("."+T).length||e||this._visibleSubmenu.hide()}},_getSubmenuByRootElement:function(e){if(!e)return!1;var t=e.children("."+S);return t.length&&m.getInstance(t)},getSubmenuPosition:function(e){var t=this._isMenuHorizontal(),n=this.option("submenuDirection").toLowerCase(),i=this.option("rtlEnabled"),o={collision:"flip",of:e};switch(n){case"leftortop":o.at="left top",o.my=t?"left bottom":"right top";break;case"rightorbottom":o.at=t?"left bottom":"right top",o.my="left top";break;default:t?(o.at=i?"right bottom":"left bottom",o.my=i?"right top":"left top"):(o.at=i?"left top":"right top",o.my=i?"right top":"left top")}return o},_renderBorderElement:function(e){i("<div>").appendTo(e).addClass(I).hide()},_itemPointerDownHandler:function(e){return i(e.target).closest(this._itemElements()).hasClass("dx-menu-item-has-submenu")?void this.option("focusedElement",null):void this.callBase(e)},_hoverStartHandler:function(e){var t=h.addNamespace(p.move,this.NAME),n=this._getItemElementByEventArgs(e),i=this._dataAdapter.getNodeByItem(this._getItemData(n)),a=u.isDefined(e.buttons)&&1===e.buttons||!u.isDefined(e.buttons)&&1===e.which;if(!this._isItemDisabled(n)){if(o.off(n,t),!this._hasChildren(i))return void(this._showSubmenuTimer=setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide")));if("onHover"===this._getShowFirstSubmenuMode()&&!a){var r=this._getSubmenuByElement(n);this._clearTimeouts(),r.isOverlayVisible()||(o.on(n,t,this._itemMouseMoveHandler.bind(this)),this._showSubmenuTimer=this._getDelay("hide"))}}},_hoverEndHandler:function(e){var t=this,n=t._getItemElementByEventArgs(e),o=i(e.relatedTarget);t.callBase(e),t._clearTimeouts(),t._isItemDisabled(n)||o.hasClass("dx-context-menu-content-delimiter")||t.option("hideSubmenuOnMouseLeave")&&!o.hasClass(C)&&(t._hideSubmenuTimer=setTimeout(function(){t._hideSubmenuAfterTimeout()},t._getDelay("hide")))},_hideVisibleSubmenu:function(){return!!this._visibleSubmenu&&(this._hideSubmenu(this._visibleSubmenu),!0)},_showSubmenu:function(e){var t=this._getSubmenuByElement(e);this._visibleSubmenu!==t&&this._hideVisibleSubmenu(),t&&(t.show(),this.option("focusedElement",t.option("focusedElement"))),this._visibleSubmenu=t,this._hoveredRootItem=e},_hideSubmenu:function(e){e&&e.hide(),this._visibleSubmenu===e&&(this._visibleSubmenu=null),this._hoveredRootItem=null},_itemMouseMoveHandler:function(e){if(!e.pointers||!e.pointers.length){var t=this,n=i(e.currentTarget);u.isDefined(t._showSubmenuTimer)&&(t._clearTimeouts(),t._showSubmenuTimer=setTimeout(function(){var e=t._getSubmenuByElement(n);e&&!e.isOverlayVisible()&&t._showSubmenu(n)},t._getDelay("show")))}},_clearTimeouts:function(){clearTimeout(this._hideSubmenuTimer),clearTimeout(this._showSubmenuTimer)},_getSubmenuByElement:function(e,t){var n=this._getSubmenuByRootElement(e);if(n)return n;t=t||this._getItemData(e);var i=this._dataAdapter.getNodeByItem(t);return this._hasChildren(i)&&this._renderSubmenuItems(i,e)},_updateSubmenuVisibilityOnClick:function(e){var t,n=e.args.length&&e.args[0];if(n&&!this._disabledGetter(n.itemData)){var o=i(n.itemElement);if(t=this._getSubmenuByElement(o,n.itemData),this._updateSelectedItemOnClick(e),this._visibleSubmenu){if(this._visibleSubmenu===t)return void("onClick"===this.option("showFirstSubmenuMode")&&this._hideSubmenu(this._visibleSubmenu));this._hideSubmenu(this._visibleSubmenu)}if(t)return t.isOverlayVisible()?void 0:void this._showSubmenu(o)}},_optionChanged:function(e){switch(e.name){case"orientation":case"submenuDirection":this._invalidate();break;case"showFirstSubmenuMode":case"hideSubmenuOnMouseLeave":break;case"showSubmenuMode":this._changeSubmenusOption(e.name,e.value);break;case"onSubmenuShowing":case"onSubmenuShown":case"onSubmenuHiding":case"onSubmenuHidden":this._initActions();break;case"adaptivityEnabled":e.value?this._initAdaptivity():this._removeAdaptivity();break;case"width":this._isAdaptivityEnabled()&&(this._treeView.option(e.name,e.value),this._overlay.option(e.name,e.value)),this.callBase(e),this._dimensionChanged();break;case"animation":this._isAdaptivityEnabled()&&this._treeView.option("animationEnabled",!!e.value),this.callBase(e);break;default:this._isAdaptivityEnabled()&&this._treeView.option(e.name,e.value),this.callBase(e)}},_changeSubmenusOption:function(e,t){l(this._submenus,function(n,i){i.option(e,t)})},selectItem:function(e){this._hideSubmenu(this._visibleSubmenu),this.callBase(e)},unselectItem:function(e){this._hideSubmenu(this._visibleSubmenu),this.callBase(e)}});a("dxMenu",R),e.exports=R},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(5)),a=i(n(38)),r=i(n(165)),s=i(n(36)),l=n(355),u=i(n(15)),c=i(n(19)),d=n(20),h=n(3),p=n(1),f=n(99),g=n(0),_=n(45),m=i(n(33)),v=n(74),y=n(6),b=n(96),x={month:function(e){return m.default.getMonthNames()[e-1]},quarter:function(e){return m.default.format(new Date(2e3,3*e-1),"quarter")}},w=a.default.ViewController.inherit({init:function(){this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._headerFilterView=this.getView("headerFilterView")},_updateSelectedState:function(e,t){for(var n=e.length,i="exclude"===t.filterType;n--;){var o=e[n];"items"in e[n]&&this._updateSelectedState(e[n].items,t),(0,l.updateHeaderFilterItemSelectionState)(o,s.default.getIndexByKey(e[n].value,t.filterValues,null)>-1,i)}},_normalizeGroupItem:function(e,t,n){var i,o,a=n.path,r=n.valueSelector,s=n.displaySelector,l=n.column;return r&&s?(i=r(e),o=s(e)):o=i=e.key,(0,p.isObject)(e)?e===i&&(e=(0,g.extend)({},e)):e={},a.push(i),1===a.length?e.value=a[0]:e.value=a.join("/"),e.text=this.getHeaderItemText(o,l,t,n.headerFilterOptions),delete e.key,e},getHeaderItemText:function(e,t,n,i){var o=s.default.formatValue(e,function(e,t,n){var i=r.default.getGroupInterval(t),o=s.default.getFormatOptionsByColumn(t,"headerFilter");return i&&(o.groupInterval=i[n],s.default.isDateType(t.dataType)?o.format=x[i[n]]:"number"===t.dataType&&(o.getDisplayFormat=function(){var o={format:t.format,target:"headerFilter"},a=s.default.formatValue(e,o),r=e+i[n],l=s.default.formatValue(r,o);return a&&l?a+" - "+l:""})),o}(e,t,n));return o||(o=i.texts.emptyValue),o},_processGroupItems:function(e,t,n,i){var o,a,r=i.column.lookup,s=i.level;n=n||[],t=t||0,r&&(o=(0,d.compileGetter)(r.displayExpr),a=(0,d.compileGetter)(r.valueExpr));for(var l=0;l<e.length;l++)e[l]=this._normalizeGroupItem(e[l],t,{column:i.column,headerFilterOptions:i.headerFilterOptions,displaySelector:o,valueSelector:a,path:n}),"items"in e[l]&&(t!==s&&(0,p.isDefined)(e[l].value)?this._processGroupItems(e[l].items,t+1,n,i):delete e[l].items),n.pop()},getDataSource:function(e){var t,n,i,o=this,a=o._dataController.dataSource(),r=s.default.getHeaderFilterGroupParameters(e,a&&a.remoteOperations().grouping),l=e.headerFilter&&e.headerFilter.dataSource,u=o.option("headerFilter"),c=!1,d={component:o.component};if(a)return(0,p.isDefined)(l)&&!(0,p.isFunction)(l)?d.dataSource=(0,_.normalizeDataSourceOptions)(l):e.lookup?(c=!0,a=e.lookup.dataSource,(0,p.isFunction)(a)&&!(0,v.isWrapped)(a)&&(a=a({})),a=(0,_.normalizeDataSourceOptions)(a),d.dataSource=a):(n=Array.isArray(r)?r.length-1:0,o._currentColumn=e,t=o._dataController.getCombinedFilter(),o._currentColumn=null,d.dataSource={filter:t,group:r,useDefaultSearch:!0,load:function(t){var i=new y.Deferred;return t.dataField=e.dataField||e.name,a.load(t).done(function(t){o._processGroupItems(t,null,null,{level:n,column:e,headerFilterOptions:u}),i.resolve(t)}).fail(i.reject),i}}),(0,p.isFunction)(l)&&l.call(e,d),i=d.dataSource.postProcess,d.dataSource.postProcess=function(t){var n=t;return c&&(0!==this.pageIndex()||this.searchValue()||(n=n.slice(0)).unshift(null),o._processGroupItems(n,null,null,{level:0,column:e,headerFilterOptions:u})),n=i&&i.call(this,n)||n,o._updateSelectedState(n,e),n},d.dataSource},getCurrentColumn:function(){return this._currentColumn},showHeaderFilterMenu:function(e,t){var n=this._columnsController,i=(0,g.extend)(!0,{},this._columnsController.getColumns()[e]);if(i){var o=n.getVisibleIndex(e),a=t?this.getView("headerPanel"):this.getView("columnHeadersView"),r=r||a.getColumnElements().eq(t?i.groupIndex:o);this.showHeaderFilterMenuBase({columnElement:r,column:i,applyFilter:!0,apply:function(){n.columnOption(e,{filterValues:this.filterValues,filterType:this.filterType})}})}},showHeaderFilterMenuBase:function(e){var t=this,n=this,i=e.column;if(i){var o=r.default.getGroupInterval(i);(0,g.extend)(e,i,{type:o&&o.length>1?"tree":"list",onShowing:function(t){var i=t.component.overlayContent().dxResizable("instance");i&&i.option("onResizeEnd",function(t){var i=n.getController("columns"),o=i.columnOption(e.dataField,"headerFilter");(o=o||{}).width=t.width,o.height=t.height,i.columnOption(e.dataField,"headerFilter",o,!0)})},onHidden:function(){return(0,b.restoreFocus)(t)}}),e.dataSource=n.getDataSource(e),e.isFilterBuilder&&(e.dataSource.filter=null,e.alignment="right"),n._headerFilterView.showHeaderFilterMenu(e.columnElement,e)}},hideHeaderFilterMenu:function(){this._headerFilterView.hideHeaderFilterMenu()}}),C=(0,g.extend)({},l.headerFilterMixin,{_renderCellContent:function(e,t){var n,i=this,o=t.column;!o.command&&(0,l.allowHeaderFiltering)(o)&&i.option("headerFilter.visible")&&"header"===t.rowType&&((n=i._applyColumnState({name:"headerFilter",rootElement:e,column:o,showColumnLines:i.option("showColumnLines")}))&&i._subscribeToIndicatorEvent(n,o,"headerFilter")),i.callBase(e,t)},_subscribeToIndicatorEvent:function(e,t,n){var i=this;"headerFilter"===n&&o.default.on(e,c.default.name,i.createAction(function(e){e.event.stopPropagation(),i.getController("headerFilter").showHeaderFilterMenu(t.index,!1)}))},_updateIndicator:function(e,t,n){var i=this.callBase(e,t,n);i&&this._subscribeToIndicatorEvent(i,t,n)},_updateHeaderFilterIndicators:function(){this.option("headerFilter.visible")&&this._updateIndicators("headerFilter")},_needUpdateFilterIndicators:function(){return!0},_columnOptionChanged:function(e){var t=e.optionNames;return s.default.checkChanges(t,["filterValues","filterType"])?void(this._needUpdateFilterIndicators()&&this._updateHeaderFilterIndicators()):void this.callBase(e)}}),k=(0,g.extend)({},l.headerFilterMixin,{_createGroupPanelItem:function(e,t){var n,i=this,a=i.callBase.apply(i,arguments);return!t.command&&(0,l.allowHeaderFiltering)(t)&&i.option("headerFilter.visible")&&((n=i._applyColumnState({name:"headerFilter",rootElement:a,column:{alignment:(0,f.getDefaultAlignment)(i.option("rtlEnabled")),filterValues:t.filterValues,allowHeaderFiltering:!0},showColumnLines:!0}))&&o.default.on(n,c.default.name,i.createAction(function(e){e.event.stopPropagation(),i.getController("headerFilter").showHeaderFilterMenu(t.index,!0)}))),a}}),S={skipCalculateColumnFilters:function(){return!1},_calculateAdditionalFilter:function(){if(this.skipCalculateColumnFilters())return this.callBase();var e=this,t=[e.callBase()],n=e._columnsController.getVisibleColumns(),i=e.getController("headerFilter").getCurrentColumn();return(0,h.each)(n,function(e,n){var o;if((!i||i.index!==n.index)&&(0,l.allowHeaderFiltering)(n)&&n.calculateFilterExpression&&Array.isArray(n.filterValues)&&n.filterValues.length){var a=[];(0,h.each)(n.filterValues,function(e,t){Array.isArray(t)?o=t:(n.deserializeValue&&!s.default.isDateType(n.dataType)&&"number"!==n.dataType&&(t=n.deserializeValue(t)),o=n.createFilterExpression(t,"=","headerFilter")),o&&(o.columnIndex=n.index),a.push(o)}),a=s.default.combineFilters(a,"or"),t.push("exclude"===n.filterType?["!",a]:a)}}),s.default.combineFilters(t)}};e.exports={invertFilterExpression:function(e){return["!",e]},defaultOptions:function(){return{headerFilter:{visible:!1,width:252,height:325,allowSearch:!1,searchTimeout:500,texts:{emptyValue:u.default.format("dxDataGrid-headerFilterEmptyValue"),ok:u.default.format("dxDataGrid-headerFilterOK"),cancel:u.default.format("dxDataGrid-headerFilterCancel")}}}},controllers:{headerFilter:w},views:{headerFilterView:l.HeaderFilterView},extenders:{controllers:{data:S},views:{columnHeadersView:C,headerPanel:k}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!e.component.option("searchValue")){var n=(0,a.default)(e.element).find(".dx-list-select-all-checkbox").data("dxCheckBox");n&&t&&t.length&&n.option("value",void 0)}}var a=i(n(2)),r=i(n(38)),s=i(n(36)),l=n(1),u=n(3),c=n(0),d=i(n(5)),h=i(n(46)),p=i(n(141)),f=i(n(102)),g="dx-header-filter";t.updateHeaderFilterItemSelectionState=function(e,t,n){if(t^n){if(e.selected=!0,n&&e.items)for(var i=0;i<e.items.length;i++)if(!e.items[i].selected){e.selected=void 0;break}}else(n||e.selected)&&(e.selected=!1,function e(t){t=t||[];for(var n=0;n<t.length;n++)t[n].selected=!1,e(t[n].items)}(e.items))},t.HeaderFilterView=r.default.View.inherit({getPopupContainer:function(){return this._popupContainer},getListContainer:function(){return this._listContainer},applyHeaderFilter:function(e){var t=this.getListContainer(),n=[];!t.option("searchValue")&&!e.isFilterBuilder&&t.$element().find(".dx-checkbox").eq(0).hasClass("dx-checkbox-checked")?Array.isArray(e.filterValues)&&(e.filterValues=[]):"tree"===e.type&&(function e(n,i,o){(0,u.each)(i,function(i,a){return!(void 0!==a.selected&&!!a.selected^o)||t.option("searchValue")&&a.items&&a.items.length?void(a.items&&a.items.length&&e(n,a.items,o)):void n.push(a.value)})}(n,t.option("items"),"exclude"===e.filterType),e.filterValues=n),e.filterValues&&!e.filterValues.length&&(e.filterValues=null),e.apply(),this.hideHeaderFilterMenu()},showHeaderFilterMenu:function(e,t){var n,i=this;t&&(i._initializePopupContainer(t),n=i.getPopupContainer(),i.hideHeaderFilterMenu(),i.updatePopup(e,t),n.show())},hideHeaderFilterMenu:function(){var e=this.getPopupContainer();e&&e.hide()},updatePopup:function(e,t){var n=this,i="right"===t.alignment?"left":"right";n._popupContainer&&(n._cleanPopupContent(),n._popupContainer.option("position",{my:i+" top",at:i+" bottom",of:e,collision:"flip fit"}))},_getSearchExpr:function(e){var t=e.lookup,n=e.useDefaultSearchExpr,i=e.headerFilter&&e.headerFilter.dataSource;if(n||(0,l.isDefined)(i)&&!(0,l.isFunction)(i))return"text";if(t)return t.displayExpr||"this";if(e.dataSource){var o=e.dataSource.group;if(Array.isArray(o)&&o.length>0)return o[0].selector;if((0,l.isFunction)(o))return o}return e.dataField||e.selector},_cleanPopupContent:function(){this._popupContainer&&this._popupContainer.$content().empty()},_initializePopupContainer:function(e){var t=this,n=t.element(),i=t.option("headerFilter"),o={width:e.headerFilter&&e.headerFilter.width||i&&i.width,height:e.headerFilter&&e.headerFilter.height||i&&i.height,visible:!1,shading:!1,showTitle:!1,showCloseButton:!1,closeOnTargetScroll:!0,dragEnabled:!1,closeOnOutsideClick:!0,focusStateEnabled:!1,toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:i.texts.ok,onClick:function(){t.applyHeaderFilter(e)}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:i.texts.cancel,onClick:function(){t.hideHeaderFilterMenu()}}}],resizeEnabled:!0,onShowing:function(n){n.component.$content().parent().addClass("dx-dropdowneditor-overlay"),t._initializeListContainer(e),e.onShowing&&e.onShowing(n)},onShown:function(e){d.default.trigger(e.component.$content().find(".dx-checkbox").first(),"focus")},onHidden:e.onHidden,onInitialized:function(e){var t=e.component;t.option("animation",t._getDefaultOptions().animation)}};(0,l.isDefined)(t._popupContainer)?t._popupContainer.option(o):t._popupContainer=t._createComponent(n,h.default,o)},_initializeListContainer:function(e){var t=this,n=t._popupContainer.$content(),i={searchEnabled:function(e,t){var n=t.headerFilter;return n&&(0,l.isDefined)(n.allowSearch)?n.allowSearch:e.option("headerFilter.allowSearch")}(t,e),searchTimeout:t.option("headerFilter.searchTimeout"),searchMode:e.headerFilter&&e.headerFilter.searchMode||"",dataSource:e.dataSource,onContentReady:function(){t.renderCompleted.fire()},itemTemplate:function(t,n,i){var o=(0,a.default)(i);return e.encodeHtml?o.text(t.text):o.html(t.text)}};"tree"===e.type?t._listContainer=t._createComponent((0,a.default)("<div>").appendTo(n),p.default,(0,c.extend)(i,{showCheckBoxesMode:e.isFilterBuilder?"normal":"selectAll",keyExpr:"id"})):t._listContainer=t._createComponent((0,a.default)("<div>").appendTo(n),f.default,(0,c.extend)(i,{searchExpr:t._getSearchExpr(e),pageLoadMode:"scrollBottom",showSelectionControls:!0,selectionMode:e.isFilterBuilder?"multiple":"all",onSelectionChanged:function(t){var n=t.component.option("items"),i=t.component.option("selectedItems");t.component._selectedItemsUpdating||t.component.option("searchValue")||e.isFilterBuilder||(0===i.length&&n.length&&(!e.filterValues||e.filterValues.length<=1)?(e.filterType="include",e.filterValues=[]):i.length===n.length&&(e.filterType="exclude",e.filterValues=[])),(0,u.each)(n,function(t,n){var o,a=s.default.getIndexByKey(n,i,null)>=0;!!n.selected!==a&&(n.selected=a,e.filterValues=e.filterValues||[],(o=s.default.getIndexByKey(n.value,e.filterValues,null))>=0&&e.filterValues.splice(o,1),a^"exclude"===e.filterType&&e.filterValues.push(n.value))}),o(t,e.filterValues)},onContentReady:function(t){var n=t.component,i=n.option("items"),a=[];(0,u.each)(i,function(){this.selected&&a.push(this)}),n._selectedItemsUpdating=!0,n.option("selectedItems",a),n._selectedItemsUpdating=!1,o(t,e.filterValues)}}))},_renderCore:function(){this.element().addClass("dx-header-filter-menu")}});var _=t.allowHeaderFiltering=function(e){return(0,l.isDefined)(e.allowHeaderFiltering)?e.allowHeaderFiltering:e.allowFiltering};t.headerFilterMixin={_applyColumnState:function(e){var t,n=e.rootElement,i=e.column;return"headerFilter"===e.name?(n.find("."+g).remove(),_(i)&&(t=this.callBase(e).toggleClass("dx-header-filter-empty",this._isHeaderFilterEmpty(i)),this.option("useLegacyKeyboardNavigation")||t.attr("tabindex",this.option("tabindex")||0)),t):this.callBase(e)},_isHeaderFilterEmpty:function(e){return!e.filterValues||!e.filterValues.length},_getIndicatorClassName:function(e){return"headerFilter"===e?g:this.callBase(e)},_renderIndicator:function(e){var t,n=e.container,i=e.indicator;return"headerFilter"===e.name&&(t=this.option("rtlEnabled"),n.children().length&&(!t&&"right"===e.columnAlignment||t&&"left"===e.columnAlignment))?void n.prepend(i):void this.callBase(e)},optionChanged:function(e){"headerFilter"===e.name?(this._invalidate(!0,!0),e.handled=!0):this.callBase(e)}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return e.dataField||e.name}function a(e){e.forEach(function(e){var t=o(e);if(!(0,r.isDefined)(t)&&e.allowFiltering)throw new u.default.Error("E1049",e.caption)})}var r=n(1),s=i(n(38)),l=i(n(199)),u=i(n(18)),c=i(n(36)),d=i(n(165)),h=i(n(624)),p=["=","<>","<","<=",">",">=","notcontains","contains","startswith","endswith","between"],f="include",g="exclude",_=s.default.Controller.inherit(function(){var e=function(){return{filterType:f,filterValues:void 0}},t=function(e){return!(d.default.getGroupInterval(e)||e.headerFilter&&e.headerFilter.dataSource)},n=function(n,i){if(!n)return e();var o,a=n[1],r=n[2],s=Array.isArray(r);if(!s&&!t(i))return e();switch(a){case"anyof":case"=":o=f;break;case"noneof":case"<>":o=g;break;default:return e()}return{filterType:o,filterValues:s?r:[r]}},i=function(e){var t=e.filterValue;if((0,r.isDefined)(t)){var n=e.selectedFilterOperation||e.defaultFilterOperation||l.default.getDefaultOperation(e);return[o(e),n,e.filterValue]}return null},s=function(e){var n,i,a=e.filterValues;return a?(t(e)&&1===e.filterValues.length&&!Array.isArray(a[0])?(n=e.filterType===g?"<>":"=",i=a[0]):(n=e.filterType===g?"noneof":"anyof",i=a),[o(e),n,i]):null},u=function(e,t,i){var a=n(i,t);e.columnOption(o(t),a)},c=function(e,t,n){var i,a=n&&n[1],s=t.filterOperations||t.defaultFilterOperations;(!s||s.indexOf(a)>=0||a===t.defaultFilterOperation)&&p.indexOf(a)>=0?(a!==t.defaultFilterOperation||(0,r.isDefined)(t.selectedFilterOperation)||(a=t.selectedFilterOperation),i={filterValue:n[2],selectedFilterOperation:a}):i={filterValue:void 0,selectedFilterOperation:void 0},e.columnOption(o(t),i)};return{syncFilterValue:function(){var e=this,t=e.getController("columns"),n=t.getFilteringColumns();this._skipSyncColumnOptions=!0,n.forEach(function(n){var i=l.default.getMatchedConditions(e.option("filterValue"),o(n));if(1===i.length){var a=i[0];u(t,n,a),c(t,n,a)}else(0,r.isDefined)(n.filterValues)&&u(t,n),(0,r.isDefined)(n.filterValue)&&c(t,n)}),this._skipSyncColumnOptions=!1},_initSync:function(){var e=this.getController("columns").getColumns(),t=this.getController("data"),n=t.pageIndex();if(a(e),!this.option("filterValue")){var i=this.getController("columns").getFilteringColumns(),o=this.getFilterValueFromColumns(i);this.option("filterValue",o)}this.syncFilterValue(),t.pageIndex(n)},init:function(){var e=this,t=this.getController("data");t.isFilterSyncActive()&&(this.getController("columns").isAllDataTypesDefined()?this._initSync():t.dataSourceChanged.add(function(){return e._initSync()}))},_getSyncFilterRow:function(e,t){var n=i(t);return(0,r.isDefined)(n)?l.default.syncFilters(e,n):l.default.removeFieldConditionsFromFilter(e,o(t))},_getSyncHeaderFilter:function(e,t){var n=s(t);return n?l.default.syncFilters(e,n):l.default.removeFieldConditionsFromFilter(e,o(t))},getFilterValueFromColumns:function(e){if(!this.getController("data").isFilterSyncActive())return null;var t=["and"];return e&&e.forEach(function(e){var n=s(e),o=i(e);n&&l.default.addItem(n,t),o&&l.default.addItem(o,t)}),l.default.getNormalizedFilter(t)},syncFilterRow:function(e,t){this.option("filterValue",this._getSyncFilterRow(this.option("filterValue"),e))},syncHeaderFilter:function(e){this.option("filterValue",this._getSyncHeaderFilter(this.option("filterValue"),e))},getCustomFilterOperations:function(){var e=this.option("filterBuilder.customOperations")||[];return[h.default.anyOf(this.component),h.default.noneOf(this.component)].concat(e)},publicMethods:function(){return["getCustomFilterOperations"]}}}()),m={isFilterSyncActive:function(){var e=this.option("filterSyncEnabled");return"auto"===e?this.option("filterPanel.visible"):e},skipCalculateColumnFilters:function(){return(0,r.isDefined)(this.option("filterValue"))&&this.isFilterSyncActive()},_calculateAdditionalFilter:function(){var e=this;if(!1===e.option("filterPanel.filterEnabled"))return e.callBase();var t=[e.callBase()],n=e.getController("columns").getFilteringColumns(),i=e.option("filterValue");if(e.isFilterSyncActive()){var a=e.getController("headerFilter").getCurrentColumn();a&&i&&(i=l.default.removeFieldConditionsFromFilter(i,o(a)))}var r=e.getController("filterSync").getCustomFilterOperations(),s=l.default.getFilterExpression(i,n,r,"filterBuilder");return s&&t.push(s),c.default.combineFilters(t)},_parseColumnPropertyName:function(e){return e.match(/.*\.(.*)/)[1]},clearFilter:function(e){this.component.beginUpdate(),arguments.length>0?("filterValue"===e&&this.option("filterValue",null),this.callBase(e)):(this.option("filterValue",null),this.callBase()),this.component.endUpdate()},optionChanged:function(e){switch(e.name){case"filterValue":this._applyFilter(),this.isFilterSyncActive()&&this.getController("filterSync").syncFilterValue(),e.handled=!0;break;case"filterSyncEnabled":e.handled=!0;break;case"columns":if(this.isFilterSyncActive()){var t=this.getController("columns").getColumnByPath(e.fullName),n=this.getController("filterSync");if(t&&!n._skipSyncColumnOptions){var i=this._parseColumnPropertyName(e.fullName);n._skipSyncColumnOptions=!0,"filterType"===i?g!==e.value&&g!==e.previousValue||n.syncHeaderFilter(t):"filterValues"===i?n.syncHeaderFilter(t):["filterValue","selectedFilterOperation"].indexOf(i)>-1&&n.syncFilterRow(t,t.filterValue),n._skipSyncColumnOptions=!1}}this.callBase(e);break;default:this.callBase(e)}}},v={_isHeaderFilterEmpty:function(e){return this.getController("data").isFilterSyncActive()?!l.default.filterHasField(this.option("filterValue"),o(e)):this.callBase(e)},_needUpdateFilterIndicators:function(){return!this.getController("data").isFilterSyncActive()},optionChanged:function(e){"filterValue"===e.name?this._updateHeaderFilterIndicators():this.callBase(e)}};e.exports={defaultOptions:function(){return{filterValue:null,filterSyncEnabled:"auto"}},controllers:{filterSync:_},extenders:{controllers:{data:m},views:{columnHeadersView:v}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(12)),r=i(n(14)),s=i(n(5)),l=i(n(17)),u=i(n(8)),c=n(0),d=i(n(15)),h=i(n(199)),p=i(n(6)),f=n(1),g=i(n(141)),_=i(n(46)),m=n(244),v=i(n(346)),y=n(9),b="dx-filterbuilder",x=b+"-group",w=x+"-item",C=x+"-content",k=b+"-action",S=k+"-icon",I=b+"-text",T=I+"-separator",D=b+"-item-value",E="dx-state-active",A="filterBuilder",O="enter",P=[{name:"onEditorPreparing",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onEditorPrepared",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onValueChanged",config:{excludeValidators:["disabled","readOnly"]}}],B={and:"and",or:"or",notAnd:"!and",notOr:"!or"},M=r.default.inherit(v.default),R=function(e,t,n){if(Array.isArray(t)){var i=t.length-1;e.empty(),t.forEach(function(t,a){(0,o.default)("<span>").addClass("dx-filterbuilder-text-part").text(t).appendTo(e),a!==i&&(0,o.default)("<span>").addClass(T).text(n&&n.valueSeparator?n.valueSeparator:"|").addClass("dx-filterbuilder-text-separator-empty").appendTo(e)})}else t?e.text(t):e.text(d.default.format("dxFilterBuilder-enterValueText"))},F=l.default.inherit({_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{onEditorPreparing:null,onEditorPrepared:null,onValueChanged:null,fields:[],defaultGroupOperation:"and",groupOperations:["and","or","notAnd","notOr"],maxGroupLevel:void 0,value:null,allowHierarchicalFields:!1,groupOperationDescriptions:{and:d.default.format("dxFilterBuilder-and"),or:d.default.format("dxFilterBuilder-or"),notAnd:d.default.format("dxFilterBuilder-notAnd"),notOr:d.default.format("dxFilterBuilder-notOr")},customOperations:[],filterOperationDescriptions:{between:d.default.format("dxFilterBuilder-filterOperationBetween"),equal:d.default.format("dxFilterBuilder-filterOperationEquals"),notEqual:d.default.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:d.default.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:d.default.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:d.default.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:d.default.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:d.default.format("dxFilterBuilder-filterOperationStartsWith"),contains:d.default.format("dxFilterBuilder-filterOperationContains"),notContains:d.default.format("dxFilterBuilder-filterOperationNotContains"),endsWith:d.default.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:d.default.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:d.default.format("dxFilterBuilder-filterOperationIsNotBlank")}})},_optionChanged:function(e){switch(e.name){case"onEditorPreparing":case"onEditorPrepared":case"onValueChanged":this._initActions();break;case"customOperations":this._initCustomOperations(),this._invalidate();break;case"fields":case"defaultGroupOperation":case"maxGroupLevel":case"groupOperations":case"allowHierarchicalFields":case"groupOperationDescriptions":case"filterOperationDescriptions":this._invalidate();break;case"value":var t=this._disableInvalidateForValue;t||(this._initModel(),this._invalidate()),this._disableInvalidateForValue=!1,this.executeAction("onValueChanged",{value:e.value,previousValue:e.previousValue}),this._disableInvalidateForValue=t;break;default:this.callBase(e)}},getFilterExpression:function(){var e=this._getNormalizedFields(),t=(0,c.extend)(!0,[],this._model);return h.default.getFilterExpression(h.default.getNormalizedFilter(t),e,this._customOperations,A)},_getNormalizedFields:function(){return h.default.getNormalizedFields(this.option("fields"))},_updateFilter:function(){this._disableInvalidateForValue=!0;var e=(0,c.extend)(!0,[],this._model),t=h.default.getNormalizedFilter(e),n=h.default.getNormalizedFilter(this._getModel(this.option("value")));JSON.stringify(n)!==JSON.stringify(t)&&this.option("value",t),this._disableInvalidateForValue=!1,this._fireContentReadyAction()},_init:function(){this._initCustomOperations(),this._initModel(),this._initEditorFactory(),this._initActions(),this.callBase()},_initEditorFactory:function(){this._editorFactory=new M},_initCustomOperations:function(){this._customOperations=h.default.getMergedOperations(this.option("customOperations"),this.option("filterOperationDescriptions.between"))},_getModel:function(e){return h.default.convertToInnerStructure(e,this._customOperations)},_initModel:function(){this._model=this._getModel(this.option("value"))},_initActions:function(){var e=this;e._actions={},P.forEach(function(t){e._actions[t.name]=e._createActionByOption(t.name,t.config)})},executeAction:function(e,t){var n=this._actions[e];return n&&n(t)},_initMarkup:function(){this.$element().addClass(b),this.callBase(),this._createGroupElementByCriteria(this._model).appendTo(this.$element())},_createConditionElement:function(e,t){return(0,o.default)("<div>").addClass(x).append(this._createConditionItem(e,t))},_createGroupElementByCriteria:function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=this._createGroupElement(e,t,n),o=i.find("."+C),a=h.default.getGroupCriteria(e),r=0;r<a.length;r++){var s=a[r];h.default.isGroup(s)?this._createGroupElementByCriteria(s,a,n+1).appendTo(o):h.default.isCondition(s)&&this._createConditionElement(s,a).appendTo(o)}return i},_createGroupElement:function(e,t,n){var i=this,a=(0,o.default)("<div>").addClass(w),r=(0,o.default)("<div>").addClass(C),s=(0,o.default)("<div>").addClass(x).append(a).append(r);return null!=t&&this._createRemoveButton(function(){h.default.removeItem(t,e),s.remove(),i._updateFilter()}).appendTo(a),this._createGroupOperationButton(e).appendTo(a),this._createAddButton(function(){var t=h.default.createEmptyGroup(i.option("defaultGroupOperation"));h.default.addItem(t,e),i._createGroupElement(t,e,n+1).appendTo(r),i._updateFilter()},function(){var t=i.option("fields")[0],n=h.default.createCondition(t,i._customOperations);h.default.addItem(n,e),i._createConditionElement(n,e).appendTo(r),i._updateFilter()},n).appendTo(a),s},_createButton:function(e){return(0,o.default)("<div>").text(e)},_createGroupOperationButton:function(e){var t=this,n=this._getGroupOperations(e),i=h.default.getGroupMenuItem(e,n),o=i.text,a=n&&n.length<2?this._createButton(o).addClass("dx-state-disabled"):this._createButtonWithMenu({caption:o,menu:{items:n,displayExpr:"text",keyExpr:"value",onItemClick:function(n){i!==n.itemData&&(h.default.setGroupValue(e,n.itemData.value),a.html(n.itemData.text),i=n.itemData,t._updateFilter())},onContentReady:function(e){e.component.selectItem(i)},cssClass:"dx-filterbuilder-group-operations"}});return a.addClass(I).addClass("dx-filterbuilder-group-operation").attr("tabindex",0)},_createButtonWithMenu:function(e){var t=this,n=function(){t.$element().find("."+E).removeClass(E),t.$element().find(".dx-overlay .dx-treeview").remove(),t.$element().find(".dx-overlay").remove()},i=this.option("rtlEnabled"),a=i?"right":"left",r=this._createButton(e.caption);return(0,c.extend)(e.menu,{focusStateEnabled:!0,selectionMode:"single",onItemClick:function(e){return function(t){e(t),"dxclick"===t.event.type&&n()}}(e.menu.onItemClick),onHiding:function(e){r.removeClass(E)},position:{my:a+" top",at:a+" bottom",offset:"0 1",of:r,collision:"flip"},animation:null,onHidden:function(){n()},cssClass:"dx-filterbuilder-overlay "+e.menu.cssClass,rtlEnabled:i}),e.popup={onShown:function(t){var n=(0,o.default)(t.component.content()).find(".dx-treeview"),i=n.dxTreeView("instance");s.default.on(n,"keyup keydown",function(n){var i=(0,y.normalizeKeyName)(n);("keydown"===n.type&&"tab"===i||"keyup"===n.type&&("escape"===i||i===O))&&(t.component.hide(),s.default.trigger(e.menu.position.of,"focus"))}),i.focus(),i.option("focusedElement",null)}},this._subscribeOnClickAndEnterKey(r,function(){n(),t._createPopupWithTreeView(e,t.$element()),r.addClass(E)}),r},_hasValueButton:function(e){var t=h.default.getCustomOperation(this._customOperations,e[1]);return t?!1!==t.hasValue:null!==e[2]},_createOperationButtonWithMenu:function(e,t){var n=this,i=this,a=h.default.getAvailableOperations(t,this.option("filterOperationDescriptions"),this._customOperations),r=h.default.getOperationFromAvailable(h.default.getOperationValue(e),a),s=this._createButtonWithMenu({caption:r.text,menu:{items:a,displayExpr:"text",onItemRendered:function(e){e.itemData.isCustom&&(0,o.default)(e.itemElement).addClass("dx-filterbuilder-menu-custom-operation")},onContentReady:function(e){e.component.selectItem(r)},onItemClick:function(o){if(r!==o.itemData){r=o.itemData,h.default.updateConditionByOperation(e,r.value,i._customOperations);var a=s.siblings().filter("."+D);i._hasValueButton(e)?(0!==a.length&&a.remove(),i._createValueButton(e,t).appendTo(s.parent())):a.remove(),s.html(r.text),n._updateFilter()}},cssClass:"dx-filterbuilder-operations"}}).addClass(I).addClass("dx-filterbuilder-item-operation").attr("tabindex",0);return s},_createOperationAndValueButtons:function(e,t,n){this._createOperationButtonWithMenu(e,t).appendTo(n),this._hasValueButton(e)&&this._createValueButton(e,t).appendTo(n)},_createFieldButtonWithMenu:function(e,t,n){var i=this,o=this,a=this.option("allowHierarchicalFields"),r=h.default.getItems(e,a),s=h.default.getField(n.dataField,r),l=function(e,t){return a?h.default.getCaptionWithParents(e,t):e.caption},u=this._createButtonWithMenu({caption:l(s,r),menu:{items:r,dataStructure:"plain",keyExpr:"dataField",displayExpr:"caption",onItemClick:function(e){if(s!==e.itemData){s=e.itemData,t[0]=s.dataField,t[2]="object"===s.dataType?null:"",h.default.updateConditionByOperation(t,h.default.getDefaultOperation(s),o._customOperations),u.siblings().filter("."+I).remove(),o._createOperationAndValueButtons(t,s,u.parent());var n=l(s,e.component.option("items"));u.html(n),i._updateFilter()}},onContentReady:function(e){e.component.selectItem(s)},cssClass:"dx-filterbuilder-fields"}}).addClass(I).addClass("dx-filterbuilder-item-field").attr("tabindex",0);return u},_createConditionItem:function(e,t){var n=this,i=(0,o.default)("<div>").addClass(w),a=this._getNormalizedFields(),r=h.default.getField(e[0],a);return this._createRemoveButton(function(){h.default.removeItem(t,e),i.remove(),n._updateFilter()}).appendTo(i),this._createFieldButtonWithMenu(a,e,r).appendTo(i),this._createOperationAndValueButtons(e,r,i),i},_getGroupOperations:function(e){var t=this.option("groupOperations"),n=this.option("groupOperationDescriptions");return t&&t.length||(t=[h.default.getGroupValue(e).replace("!","not")]),t.map(function(e){return{text:n[e],value:B[e]}})},_createRemoveButton:function(e){var t=(0,o.default)("<div>").addClass(S).addClass("dx-icon-remove").addClass(k).attr("tabindex",0);return this._subscribeOnClickAndEnterKey(t,e),t},_createAddButton:function(e,t,n){var i=void 0,o=this.option("maxGroupLevel");return(0,f.isDefined)(o)&&n>=o?(i=this._createButton(),this._subscribeOnClickAndEnterKey(i,t)):i=this._createButtonWithMenu({menu:{items:[{caption:d.default.format("dxFilterBuilder-addCondition"),click:t},{caption:d.default.format("dxFilterBuilder-addGroup"),click:e}],displayExpr:"caption",onItemClick:function(e){e.itemData.click()},cssClass:"dx-filterbuilder-add-condition"}}),i.addClass(S).addClass("dx-icon-plus").addClass(k).attr("tabindex",0)},_createValueText:function(e,t,n){var i=this,a=(0,o.default)("<div>").html("&nbsp;").addClass("dx-filterbuilder-item-value-text").attr("tabindex",0).appendTo(n),r=e[2],s=h.default.getCustomOperation(i._customOperations,e[1]);return!s&&t.lookup?h.default.getCurrentLookupValueText(t,r,function(e){R(a,e)}):p.default.when(h.default.getCurrentValueText(t,r,s)).done(function(e){R(a,e,s)}),i._subscribeOnClickAndEnterKey(a,function(o){"keyup"===o.type&&o.stopPropagation(),i._createValueEditorWithEvents(e,t,n)}),a},_updateConditionValue:function(e,t,n){e[2]!==t&&(e[2]=t),n(),this._updateFilter()},_addDocumentKeyUp:function(e,t){var n=a.default.getDocument(),i=function(e){return o||r?void(r=!1):void t(e)};s.default.on(n,"keyup",i);var o=!1,r=!1,l=e.find("input");s.default.on(l,"compositionstart",function(){o=!0}),s.default.on(l,"compositionend",function(){o=!1,r=!0}),s.default.on(l,"keydown",function(e){229!==e.which&&(r=!1)}),this._documentKeyUpHandler=i},_addDocumentClick:function(e,t){var n=this,i=a.default.getDocument(),o=function(i){n._isFocusOnEditorParts(e,i.target)||(s.default.trigger(e.find("input"),"change"),t())};s.default.on(i,"dxpointerdown",o),this._documentClickHandler=o},_isFocusOnEditorParts:function(e,t){var n=t||a.default.getActiveElement();return(0,o.default)(n).closest(e.children()).length||(0,o.default)(n).closest(".dx-dropdowneditor-overlay").length},_removeEvents:function(){var e=a.default.getDocument();(0,f.isDefined)(this._documentKeyUpHandler)&&s.default.off(e,"keyup",this._documentKeyUpHandler),(0,f.isDefined)(this._documentClickHandler)&&s.default.off(e,"dxpointerdown",this._documentClickHandler)},_dispose:function(){this._removeEvents(),this.callBase()},_createValueEditorWithEvents:function(e,t,n){var i=this,o=e[2],a=function(){return n.empty(),i._removeEvents(),i._createValueText(e,t,n)},r=function(){i._updateConditionValue(e,o,function(){a()})},l={value:""===o?null:o,filterOperation:h.default.getOperationValue(e),setValue:function(e){o=null===e?"":e},closeEditor:r,text:n.text()};n.empty();var u=this._createValueEditor(n,t,l);s.default.trigger(u.find("input").not(":hidden").eq(0),"focus"),this._removeEvents(),this._addDocumentClick(u,r),this._addDocumentKeyUp(u,function(t){var r=(0,y.normalizeKeyName)(t);if("tab"===r){if(i._isFocusOnEditorParts(u))return;i._updateConditionValue(e,o,function(){a(),t.shiftKey&&s.default.trigger(n.prev(),"focus")})}"escape"===r&&s.default.trigger(a(),"focus"),r===O&&i._updateConditionValue(e,o,function(){s.default.trigger(a(),"focus")})}),this._fireContentReadyAction()},_createValueButton:function(e,t){var n=(0,o.default)("<div>").addClass(I).addClass(D);return this._createValueText(e,t,n),n},_createValueEditor:function(e,t,n){var i=(0,o.default)("<div>").attr("tabindex",0).appendTo(e),a=h.default.getCustomOperation(this._customOperations,n.filterOperation),r=a&&a.editorTemplate?a.editorTemplate:t.editorTemplate;r?this._getTemplate(r).render({model:(0,c.extend)({field:t},n),container:i}):this._editorFactory.createEditor.call(this,i,(0,c.extend)({},t,n,{parentType:A}));return i},_createPopupWithTreeView:function(e,t){var n=this,i=(0,o.default)("<div>").addClass(e.menu.cssClass).appendTo(t);this._createComponent(i,_.default,{onHiding:e.menu.onHiding,onHidden:e.menu.onHidden,rtlEnabled:e.menu.rtlEnabled,position:e.menu.position,animation:e.menu.animation,contentTemplate:function(t){var i=(0,o.default)("<div>");return n._createComponent(i,g.default,e.menu),i},maxHeight:function(){return(0,m.getElementMaxHeightByWindow)(e.menu.position.of)},visible:!0,focusStateEnabled:!1,closeOnOutsideClick:!0,onShown:e.popup.onShown,shading:!1,width:"auto",height:"auto",showTitle:!1})},_subscribeOnClickAndEnterKey:function(e,t){s.default.on(e,"dxclick",t),s.default.on(e,"keyup",function(e){(0,y.normalizeKeyName)(e)===O&&t(e)})}});(0,u.default)("dxFilterBuilder",F),e.exports=F,e.exports.renderValueText=R},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(38)),r=n(0),s=i(n(359)),l=i(n(15)),u=i(n(162)),c=i(n(46)),d=n(96),h=a.default.View.inherit({_renderCore:function(){this._updatePopupOptions()},_updatePopupOptions:function(){this.option("filterBuilderPopup.visible")?this._initPopup():this._filterBuilderPopup&&this._filterBuilderPopup.hide()},_disposePopup:function(){this._filterBuilderPopup&&(this._filterBuilderPopup.dispose(),this._filterBuilderPopup=void 0),this._filterBuilder&&(this._filterBuilder.dispose(),this._filterBuilder=void 0)},_initPopup:function(){var e=this;e._disposePopup(),e._filterBuilderPopup=e._createComponent(e.element(),c.default,(0,r.extend)({title:l.default.format("dxDataGrid-filterBuilderPopupTitle"),contentTemplate:function(t){return e._getPopupContentTemplate(t)},onOptionChanged:function(t){"visible"===t.name&&e.option("filterBuilderPopup.visible",t.value)},toolbarItems:e._getPopupToolbarItems()},e.option("filterBuilderPopup"),{onHidden:function(t){(0,d.restoreFocus)(e),e._disposePopup()}}))},_getPopupContentTemplate:function(e){var t=(0,o.default)(e),n=(0,o.default)("<div>").appendTo((0,o.default)(e));this._filterBuilder=this._createComponent(n,s.default,(0,r.extend)({value:this.option("filterValue"),fields:this.getController("columns").getFilteringColumns()},this.option("filterBuilder"),{customOperations:this.getController("filterSync").getCustomFilterOperations()})),this._createComponent(t,u.default,{direction:"both"})},_getPopupToolbarItems:function(){var e=this;return[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:l.default.format("OK"),onClick:function(t){var n=e._filterBuilder.option("value");e.option("filterValue",n),e._filterBuilderPopup.hide()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:l.default.format("Cancel"),onClick:function(t){e._filterBuilderPopup.hide()}}}]},optionChanged:function(e){switch(e.name){case"filterBuilder":case"filterBuilderPopup":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}}});e.exports={defaultOptions:function(){return{filterBuilder:{groupOperationDescriptions:{and:l.default.format("dxFilterBuilder-and"),or:l.default.format("dxFilterBuilder-or"),notAnd:l.default.format("dxFilterBuilder-notAnd"),notOr:l.default.format("dxFilterBuilder-notOr")},filterOperationDescriptions:{between:l.default.format("dxFilterBuilder-filterOperationBetween"),equal:l.default.format("dxFilterBuilder-filterOperationEquals"),notEqual:l.default.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:l.default.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:l.default.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:l.default.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:l.default.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:l.default.format("dxFilterBuilder-filterOperationStartsWith"),contains:l.default.format("dxFilterBuilder-filterOperationContains"),notContains:l.default.format("dxFilterBuilder-filterOperationNotContains"),endsWith:l.default.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:l.default.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:l.default.format("dxFilterBuilder-filterOperationIsNotBlank")}},filterBuilderPopup:{}}},views:{filterBuilderView:h}}},function(e,t,n){e.exports=n(357)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=n(1),r=i(n(38)),s=i(n(36)),l=i(n(5)),u=i(n(15)),c=i(n(104)),d=i(n(199)),h=n(6),p=i(n(32)),f=n(96),g="filter-panel",_=r.default.View.inherit({isVisible:function(){return this.option("filterPanel.visible")&&this.getController("data").dataSource()},init:function(){var e=this;this.getController("data").dataSourceChanged.add(function(){return e.render()})},_renderCore:function(){var e,t=this,n=t.element();n.empty().addClass(t.addWidgetPrefix(g)),e=(0,o.default)("<div>").addClass(t.addWidgetPrefix("filter-panel-left")).appendTo(n),t.option("filterValue")||t._filterValueBuffer?(e.append(t._getCheckElement()).append(t._getFilterElement()).append(t._getTextElement()),n.append(t._getRemoveButtonElement())):e.append(t._getFilterElement()).append(t._getTextElement())},_getCheckElement:function(){var e=this,t=(0,o.default)("<div>").addClass(this.addWidgetPrefix("filter-panel-checkbox"));return e._createComponent(t,c.default,{value:e.option("filterPanel.filterEnabled"),onValueChanged:function(t){e.option("filterPanel.filterEnabled",t.value)}}),t.attr("title",this.option("filterPanel.texts.filterEnabledHint")),t},_getFilterElement:function(){var e=this,t=(0,o.default)("<div>").addClass("dx-icon-filter");return l.default.on(t,"click",function(){return e._showFilterBuilder()}),(0,f.registerKeyboardAction)("filterPanel",e,t,void 0,function(){return e._showFilterBuilder()}),e._addTabIndexToElement(t),t},_getTextElement:function(){var e,t=this,n=(0,o.default)("<div>").addClass(t.addWidgetPrefix("filter-panel-text")),i=t.option("filterValue");return i?(0,h.when)(t.getFilterText(i,t.getController("filterSync").getCustomFilterOperations())).done(function(e){var o=t.option("filterPanel.customizeText");if(o){var a=o({component:t.component,filterValue:i,text:e});"string"==typeof a&&(e=a)}n.text(e)}):(e=t.option("filterPanel.texts.createFilter"),n.text(e)),l.default.on(n,"click",function(){return t._showFilterBuilder()}),(0,f.registerKeyboardAction)("filterPanel",t,n,void 0,function(){return t._showFilterBuilder()}),t._addTabIndexToElement(n),n},_showFilterBuilder:function(){this.option("filterBuilderPopup.visible",!0)},_getRemoveButtonElement:function(){var e=this,t=function(){return e.option("filterValue",null)},n=(0,o.default)("<div>").addClass(e.addWidgetPrefix("filter-panel-clear-filter")).text(e.option("filterPanel.texts.clearFilter"));return l.default.on(n,"click",t),(0,f.registerKeyboardAction)("filterPanel",this,n,void 0,t),e._addTabIndexToElement(n),n},_addTabIndexToElement:function(e){if(!this.option("useLegacyKeyboardNavigation")){var t=this.option("tabindex")||0;e.attr("tabindex",t)}},optionChanged:function(e){switch(e.name){case"filterValue":this._invalidate(),this.option("filterPanel.filterEnabled",!0),e.handled=!0;break;case"filterPanel":this._invalidate(),e.handled=!0;break;default:this.callBase(e)}},_getConditionText:function(e,t,n){var i="["+e+"] "+t;return(0,a.isDefined)(n)&&(i+=n),i},_getValueMaskedText:function(e){return Array.isArray(e)?"('"+e.join("', '")+"')":" '"+e+"'"},_getValueText:function(e,t,n){var i=this,o=new h.Deferred,r=t&&t.customizeText;if((0,a.isDefined)(n)||r)if(!r&&e.lookup)d.default.getCurrentLookupValueText(e,n,function(e){o.resolve(i._getValueMaskedText(e))});else{var l=Array.isArray(n)?n:s.default.getDisplayValue(e,n);(0,h.when)(d.default.getCurrentValueText(e,l,t,"filterPanel")).done(function(e){o.resolve(i._getValueMaskedText(e))})}else o.resolve("");return o.promise()},getConditionText:function(e,t){var n,i=this,o=e[1],a=new h.Deferred,r=d.default.getCustomOperation(t.customOperations,o),s=d.default.getField(e[0],t.columns),l=s.caption||"",u=e[2];return n=r?r.caption||p.default.captionize(r.name):null===u?d.default.getCaptionByOperation("="===o?"isblank":"isnotblank",t.filterOperationDescriptions):d.default.getCaptionByOperation(o,t.filterOperationDescriptions),this._getValueText(s,r,u).done(function(e){a.resolve(i._getConditionText(l,n,e))}),a},getGroupText:function(e,t,n){var i=this,o=new h.Deferred,a=[],r=d.default.getGroupValue(e);return e.forEach(function(e){d.default.isCondition(e)?a.push(i.getConditionText(e,t)):d.default.isGroup(e)&&a.push(i.getGroupText(e,t,!0))}),h.when.apply(this,a).done(function(){for(var e=arguments.length,i=Array(e),a=0;a<e;a++)i[a]=arguments[a];var s=void 0;"!"===r[0]?s=t.groupOperationDescriptions["not"+r.substring(1,2).toUpperCase()+r.substring(2)].split(" ")[0]+" "+i[0]:s=i.join(" "+t.groupOperationDescriptions[r]+" ");n&&(s="("+s+")"),o.resolve(s)}),o},getFilterText:function(e,t){var n=this,i={customOperations:t,columns:n.getController("columns").getFilteringColumns(),filterOperationDescriptions:n.option("filterBuilder.filterOperationDescriptions"),groupOperationDescriptions:n.option("filterBuilder.groupOperationDescriptions")};return d.default.isCondition(e)?n.getConditionText(e,i):n.getGroupText(e,i)}});e.exports={defaultOptions:function(){return{filterPanel:{visible:!1,filterEnabled:!0,texts:{createFilter:u.default.format("dxDataGrid-filterPanelCreateFilter"),clearFilter:u.default.format("dxDataGrid-filterPanelClearFilter"),filterEnabledHint:u.default.format("dxDataGrid-filterPanelFilterEnabledHint")}}}},views:{filterPanelView:_},extenders:{controllers:{data:{optionChanged:function(e){switch(e.name){case"filterPanel":this._applyFilter(),e.handled=!0;break;default:this.callBase(e)}}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return(0,l.isDefined)(e.allowSearch)?e.allowSearch:e.allowFiltering}function a(e,t){var n=e.lookup;return n?e.parseValue.call(n,t):e.parseValue?e.parseValue(t):t}var r=i(n(2)),s=i(n(12)),l=n(1),u=n(20),c=n(3),d=n(36),h=i(n(15)),p=i(n(41)),f="search-panel",g="search-text";e.exports={defaultOptions:function(){return{searchPanel:{visible:!1,width:160,placeholder:h.default.format("dxDataGrid-searchPanelPlaceholder"),highlightSearchText:!0,highlightCaseSensitive:!1,text:"",searchVisibleColumnsOnly:!1}}},extenders:{controllers:{data:{publicMethods:function(){return this.callBase().concat(["searchByText"])},_calculateAdditionalFilter:function(){var e=this,t=e.callBase(),n=function(e,t){function n(e){var t,n,i=(0,u.compileGetter)(l.valueExpr);for(t=0;t<e.length;t++)n=i(e[t]),f.push(r.createFilterExpression(n,null,"search"))}var i,r,s,l,c=e._columnsController.getColumns(),h=e.option("searchPanel.searchVisibleColumnsOnly"),f=[];if(!t)return null;for(i=0;i<c.length;i++)r=c[i],h&&!r.visible||o(r)&&r.calculateFilterExpression&&(l=r.lookup,s=a(r,t),l&&l.items?(0,p.default)(l.items).filter(r.createFilterExpression.call({dataField:l.displayExpr,dataType:l.dataType,calculateFilterExpression:r.calculateFilterExpression},s,null,"search")).enumerate().done(n):void 0!==s&&f.push(r.createFilterExpression(s,null,"search")));return(0,d.combineFilters)(f,"or")}(e,e.option("searchPanel.text"));return(0,d.combineFilters)([t,n])},searchByText:function(e){this.option("searchPanel.text",e)},optionChanged:function(e){switch(e.fullName){case"searchPanel.text":case"searchPanel":this._applyFilter(),e.handled=!0;break;default:this.callBase(e)}}}},views:{headerPanel:function(){var e=function(e){return e.option("searchPanel")};return{_getToolbarItems:function(){var e=this.callBase();return this._prepareSearchItem(e)},_prepareSearchItem:function(t){var n=this,i=n.getController("data"),o=e(n);if(o&&o.visible){var a={template:function(e,t,a){var s=(0,r.default)("<div>").addClass(n.addWidgetPrefix(f)).appendTo(a);n.getController("editorFactory").createEditor(s,{width:o.width,placeholder:o.placeholder,parentType:"searchPanel",value:n.option("searchPanel.text"),updateValueTimeout:700,setValue:function(e){i.searchByText(e)},editorOptions:{inputAttr:{"aria-label":h.default.format("dxDataGrid-ariaSearchInGrid")}}}),n.resize()},name:"searchPanel",location:"after",locateInMenu:"never",sortIndex:40};t.push(a)}return t},_getSearchTextEditor:function(){var e=this.element(),t=e.find("."+this.addWidgetPrefix(f)).filter(function(){return(0,r.default)(this).closest(".dx-datagrid-header-panel").is(e)});return t.length?t.dxTextBox("instance"):null},isVisible:function(){var t=e(this);return this.callBase()||t&&t.visible},optionChanged:function(e){if("searchPanel"===e.name){if("searchPanel.text"===e.fullName){var t=this._getSearchTextEditor();t&&t.option("value",e.value)}else this._invalidate();e.handled=!0}else this.callBase(e)}}}(),rowsView:{init:function(){this.callBase.apply(this,arguments),this._searchParams=[]},_getFormattedSearchText:function(e,t){var n=a(e,t),i=(0,d.getFormatOptionsByColumn)(e,"search");return(0,d.formatValue)(n,i)},_getStringNormalizer:function(){var e=this.option("searchPanel.highlightCaseSensitive");return function(t){return e?t:t.toLowerCase()}},_findHighlightingTextNodes:function(e,t,n){var i,o,a=t.parent(),s=this._getStringNormalizer(),l=s(n);return a.length?e&&(o=this._columnsController.getVisibleIndex(e.index),i=a.children("td").eq(o).find("*")):a=(0,r.default)("<div>").append(t),(i=i&&i.length?i:a.find("*")).filter(function(e,t){for(var n=(0,r.default)(t).contents(),i=0;i<n.length;i++){var o=n.get(i);return 3===o.nodeType&&s(o.textContent||o.nodeValue).indexOf(l)>-1}})},_highlightSearchTextCore:function(e,t){var n=(0,r.default)("<span>").addClass(this.addWidgetPrefix(g)),i=e.text(),o=e[0],a=this._getStringNormalizer(),l=a(i).indexOf(a(t));if(l>=0)return o.textContent?o.textContent=i.substr(0,l):o.nodeValue=i.substr(0,l),e.after(n.text(i.substr(l,t.length))),e=(0,r.default)(s.default.createTextNode(i.substr(l+t.length))).insertAfter(n),this._highlightSearchTextCore(e,t)},_highlightSearchText:function(e,t,n){var i=this,o=this._getStringNormalizer(),a=i.option("searchPanel.text");if(t&&n&&(a=a&&i._getFormattedSearchText(n,a)),a&&i.option("searchPanel.highlightSearchText")){var s=i._findHighlightingTextNodes(n,e,a);(0,c.each)(s,function(e,n){(0,c.each)((0,r.default)(n).contents(),function(e,n){t?o((0,r.default)(n).text())===o(a)&&(0,r.default)(this).replaceWith((0,r.default)("<span>").addClass(i.addWidgetPrefix(g)).text((0,r.default)(n).text())):i._highlightSearchTextCore((0,r.default)(n),a)})})}},_renderCore:function(){this.callBase.apply(this,arguments),this.option("rowTemplate")&&(this.option("templatesRenderAsynchronously")?(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(function(){this._highlightSearchText(this._getTableElement())}.bind(this))):this._highlightSearchText(this._getTableElement()))},_updateCell:function(e,t){var n=t.column,i="string"!==(n.lookup&&n.lookup.dataType||n.dataType);o(n)&&(this.option("templatesRenderAsynchronously")?(this._searchParams.length||(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(function(){this._searchParams.forEach(function(e){this._highlightSearchText.apply(this,e)}.bind(this)),this._searchParams=[]}.bind(this))),this._searchParams.push([e,i,n])):this._highlightSearchText(e,i,n)),this.callBase(e,t)},dispose:function(){clearTimeout(this._highlightTimer),this.callBase()}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(38)),a=i(n(629)),r=n(13),s=n(1),l=n(7),u=o.default.View.inherit({init:function(){var e=this,t=e.getController("data");e._isVisible=!1,t.changed.add(function(n){if(n&&n.repaintChangesOnly){var i=e._getPager();i?i.option({pageCount:t.pageCount(),totalCount:t.totalCount(),hasKnownLastPage:t.hasKnownLastPage()}):e.render()}else n&&"update"===n.changeType||e.render()})},_getPager:function(){var e=this.element();return e&&e.data("dxPager")},_renderCore:function(){var e=this,t=e.element().addClass(e.addWidgetPrefix("pager")),n=e.option("pager")||{},i=e.getController("data"),o={maxPagesCount:10,pageIndex:1+(parseInt(i.pageIndex())||0),pageCount:i.pageCount(),pageSize:i.pageSize(),showPageSizes:n.showPageSizeSelector,showInfo:n.showInfo,pagesNavigatorVisible:n.visible,showNavigationButtons:n.showNavigationButtons,pageSizes:e.getPageSizes(),totalCount:i.totalCount(),hasKnownLastPage:i.hasKnownLastPage(),pageIndexChanged:function(e){i.pageIndex()!==e-1&&setTimeout(function(){i.pageIndex(e-1)})},pageSizeChanged:function(e){setTimeout(function(){i.pageSize(e)})},useLegacyKeyboardNavigation:this.option("useLegacyKeyboardNavigation")};(0,s.isDefined)(n.infoText)&&(o.infoText=n.infoText),e._createComponent(t,a.default,o)},getPageSizes:function(){var e=this,t=e.getController("data"),n=e.option("pager"),i=n&&n.allowedPageSizes,o=t.pageSize();return(0,s.isDefined)(e._pageSizes)&&-1!==(0,r.inArray)(o,e._pageSizes)||(e._pageSizes=[],n&&(Array.isArray(i)?e._pageSizes=i:i&&o>1&&(e._pageSizes=[Math.floor(o/2),o,2*o]))),e._pageSizes},isVisible:function(){var e=this,t=e.getController("data"),n=e.option("pager"),i=n&&n.visible,o=e.option("scrolling");return!!e._isVisible||("auto"===i&&(i=(!o||"virtual"!==o.mode&&"infinite"!==o.mode)&&(t.pageCount()>1||t.isLoaded()&&!t.hasKnownLastPage())),e._isVisible=i,i)},getHeight:function(){return this.getElementHeight()},optionChanged:function(e){var t=this,n=e.name,i="pager"===n,o="paging"===n,a="dataSource"===n,r="scrolling"===n,s=t.getController("data");if(i||o||r||a){if(e.handled=!0,s.skipProcessingPagingChange(e.fullName))return;(i||o)&&(t._pageSizes=null),(i||o||r)&&(t._isVisible=!1),a||(t._invalidate(),(0,l.hasWindow)()&&i&&t.component&&t.component.resize())}}});e.exports={defaultOptions:function(){return{pager:{visible:"auto",showPageSizeSelector:!1,allowedPageSizes:"auto"}}},views:{pagerView:u}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(12)),r=i(n(5)),s=i(n(25)),l=i(n(1)),u=n(3),c=n(0),d=n(9),h=i(n(24)),p=i(n(55)),f=i(n(38)),g=i(n(36)),_=i(n(39)),m=n(151),v="columns-separator-transparent",y="drag-header",b="drag-action",x="tracker",w="drop-highlight",C="dx-block-separator",k="dx-header-row",S="dxDataGridResizingReordering",I=function(e){return e.option("allowColumnResizing")||e.getController("columns").isColumnOptionUsed("allowResizing")},T=function(e){return e.option("allowColumnReordering")||e.getController("columns").isColumnOptionUsed("allowReordering")},D=f.default.View.inherit({_renderCore:function(){this.callBase(),this.element().addClass(this.addWidgetPrefix(x)),this.hide()},_unsubscribeFromCallback:function(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)},_subscribeToCallback:function(){var e=this;e._positionChanged=function(t){var n=e.element();n&&n.hasClass(e.addWidgetPrefix(x))&&(n.css({top:t.top}),n.height(t.height))},this._tablePositionController.positionChanged.add(e._positionChanged)},optionChanged:function(e){"allowColumnResizing"===e.name&&(this._unsubscribeFromCallback(),e.value&&(this._subscribeToCallback(),this._invalidate())),this.callBase(e)},init:function(){this.callBase(),this._tablePositionController=this.getController("tablePosition"),this._subscribeToCallback()},isVisible:function(){return I(this)},show:function(){this.element().show()},hide:function(){this.element()&&this.element().hide()},setHeight:function(e){this.element().height(e)},dispose:function(){this._unsubscribeFromCallback(),this.callBase()}}),E=f.default.View.inherit({_renderSeparator:function(){},_renderCore:function(e){this.callBase(e),this._isShown=!0,this._renderSeparator(),this.hide()},show:function(){this._isShown=!0},hide:function(){this._isShown=!1},height:function(e){var t=this.element();if(t){if(!l.default.isDefined(e))return t.height();t.height(e)}},width:function(e){var t=this.element();if(t){if(!l.default.isDefined(e))return t.width();t.width(e)}}}),A=E.inherit({_renderSeparator:function(){this.callBase(),this.element().addClass(this.addWidgetPrefix("columns-separator"))},_subscribeToCallback:function(){var e,t=this;t._positionChanged=function(n){(e=t.element())&&(e.css({top:n.top}),e.height(n.height))},t._tablePositionController.positionChanged.add(t._positionChanged)},_unsubscribeFromCallback:function(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)},_init:function(){this._isTransparent=I(this),this.isVisible()&&this._subscribeToCallback()},isVisible:function(){return this.option("showColumnHeaders")&&(T(this)||I(this))},optionChanged:function(e){"allowColumnResizing"===e.name&&(e.value?(this._init(),this._invalidate(),this.hide(!0)):(this._unsubscribeFromCallback(),this._isTransparent=I(this),this.hide(!0))),this.callBase(e)},init:function(){this.callBase(),this._tablePositionController=this.getController("tablePosition"),this._init()},show:function(){var e=this,t=this.element();t&&!e._isShown&&(e._isTransparent?t.removeClass(e.addWidgetPrefix(v)):t.show()),this.callBase()},hide:function(e){var t=this.element(),n=this.addWidgetPrefix(v);t&&(this._isShown||e)&&(this._isTransparent?(t.addClass(n),t.css("left",""),t.show()):(t.hasClass(n)&&t.removeClass(n),t.hide())),this.callBase()},moveByX:function(e){var t=this.element();t&&t.css("left",e-this._parentElement().offset().left)},changeCursor:function(e){e=l.default.isDefined(e)?e:"";var t=this.element();t&&t.css("cursor",e)},dispose:function(){this._unsubscribeFromCallback(),this.callBase()}}),O=E.inherit({init:function(){var e=this;this.callBase(),this.getController("data").loadingChanged.add(function(t){t||e.hide()})},_renderSeparator:function(){this.callBase(),this.element().addClass(C).html("&nbsp;")},hide:function(){var e=this._parentElement(),t=this.element();t&&this._isShown&&t.css("display","none"),e&&!e.children("."+C).length&&e.prepend(this.element()),this.callBase()},isVisible:function(){var e=this.option("groupPanel"),t=this.option("columnChooser");return e&&e.visible||t&&t.enabled},show:function(e){var t=this.element(),n=function(e){_.default.stop(t,!0),_.default.animate(t,{type:"slide",from:{width:0,display:e.display},to:e,duration:300,easing:"swing"})};if(t&&!this._isShown)switch(e){case"group":n({width:"50px",display:"inline-block"});break;case"columnChooser":n({width:"100%",display:"block"});break;default:t.css("display","")}this.callBase()}}),P=f.default.View.inherit({_isDragging:!1,_getDraggingPanelByPos:function(e){var t;return(0,u.each)(this._dragOptions.draggingPanels,function(n,i){if(i){var o=i.getBoundingRect();if(o&&(void 0===o.bottom||e.y<o.bottom)&&(void 0===o.top||e.y>o.top)&&(void 0===o.left||e.x>o.left)&&(void 0===o.right||e.x<o.right))return t=i,!1}}),t},_renderCore:function(){this.element().addClass(this.addWidgetPrefix(y)+" "+this.addWidgetPrefix("text-content")+" dx-widget").hide()},_resetTargetColumnOptions:function(){var e=this._dropOptions;e.targetColumnIndex=-1,delete e.targetColumnElement,delete e.isLast,delete e.posX,delete e.posY},_getVisibleIndexObject:function(e,t){return l.default.isDefined(e)?{columnIndex:t,rowIndex:e}:t},dispose:function(){var e=this.element();this._dragOptions=null,e&&e.parent().find("."+this.addWidgetPrefix(y)).remove()},isVisible:function(){var e=this.getController("columns").getCommonSettings();return this.option("showColumnHeaders")&&(T(this)||e.allowGrouping||e.allowHiding)},init:function(){var e=this;this.callBase(),this._controller=this.getController("draggingHeader"),this._columnsResizerViewController=this.getController("columnsResizer"),this.getController("data").loadingChanged.add(function(t){var n=e.element();!t&&n&&n.hide()})},dragHeader:function(e){var t=this,n=e.columnElement,i=!!e.sourceColumn.type;t._isDragging=!0,t._dragOptions=e,t._dropOptions={sourceIndex:e.index,sourceColumnIndex:t._getVisibleIndexObject(e.rowIndex,e.columnIndex),sourceColumnElement:e.columnElement,sourceLocation:e.sourceLocation};var o=a.default.getDocument();t._onSelectStart=o.onselectstart,o.onselectstart=function(){return!1},t._controller.drag(t._dropOptions),t.element().css({textAlign:n&&n.css("textAlign"),height:n&&(i&&n.get(0).clientHeight||n.height()),width:n&&(i&&n.get(0).clientWidth||n.width()),whiteSpace:n&&n.css("whiteSpace")}).addClass(t.addWidgetPrefix(b)).toggleClass("dx-drag-command-cell",i).text(i?"":e.sourceColumn.caption),t.element().appendTo((0,m.getSwatchContainer)(n))},moveHeader:function(e){var t,n,i,o,a=e.event,r=a.data.that,s=(0,d.eventData)(a),l=!!r._columnsResizerViewController&&r._columnsResizerViewController.isResizing(),u=r._dragOptions;if(r._isDragging&&!l){var c=r.element();i=Math.abs(s.x-u.columnElement.offset().left-u.deltaX),o=Math.abs(s.y-u.columnElement.offset().top-u.deltaY),(c.is(":visible")||i>5||o>5)&&(c.show(),t=s.x-u.deltaX,n=s.y-u.deltaY,c.css({left:t,top:n}),r.dockHeader(s)),a.preventDefault()}},dockHeader:function(e){var t,n,i=this,a=i._getDraggingPanelByPos(e),r=i._controller,s=i._dropOptions,l=i._dragOptions;if(a){var u=i.option("rtlEnabled"),d="columnChooser"===a.getName(),h=d?"y":"x",p=a.getName(),f="headers"===p?l.rowIndex:void 0,g=l.sourceColumn,_=a.getColumnElements(f,g&&g.ownerBand)||[],m=l.pointsByTarget=l.pointsByTarget||{},v="columnChooser"===p?[]:m[p]||r._generatePointsByColumns((0,c.extend)({},l,{targetDraggingPanel:a,columns:a.getColumns(f),columnElements:_,isVerticalOrientation:d,startColumnIndex:"headers"===p&&(0,o.default)(_[0]).index()}));if(m[p]=v,s.targetLocation=p,v.length>0){for(t=0;t<v.length;t++)if(void 0===(n=v[t+1]&&(v[t][h]+v[t+1][h])/2)||(u&&"x"===h?e[h]>n:e[h]<n)){s.targetColumnIndex=i._getVisibleIndexObject(f,v[t].columnIndex),_[t]?(s.targetColumnElement=_.eq(t),s.isLast=!1):(s.targetColumnElement=_.last(),s.isLast=!0),s.posX=v[t].x,s.posY=v[t].y,r.dock(s);break}}else i._resetTargetColumnOptions(),r.dock(s)}},dropHeader:function(e){var t=e.event.data.that,n=t._controller;t.element().hide(),n&&t._isDragging&&n.drop(t._dropOptions),t.element().appendTo(t._parentElement()),t._dragOptions=null,t._dropOptions=null,t._isDragging=!1,a.default.getDocument().onselectstart=t._onSelectStart||null}}),B=function(e){return"widget"!==e.option("columnResizingMode")},M=f.default.ViewController.inherit({_isHeadersRowArea:function(e){if(this._columnHeadersView){var t,n,i=this._columnHeadersView.element();if(i)return n=i.offset().top,t=this._columnHeadersView.getHeadersRowHeight(),e>=n&&e<=n+t}return!1},_pointCreated:function(e,t,n){var i,o,a=B(this),r=this.option("rtlEnabled"),s=!a&&r?0:1;return!(e.index>=s&&e.index<t+(a||r?0:1)&&(e.columnIndex-=s,i=n[e.columnIndex]||{},o=n[e.columnIndex+1]||{},a?i.allowResizing&&o.allowResizing:i.allowResizing))},_getTargetPoint:function(e,t,n){if(e)for(var i=0;i<e.length;i++)if((e[i].x!==e[0].x||!e[i+1]||e[i].x!==e[i+1].x)&&e[i].x-n<=t&&t<=e[i].x+n)return e[i];return null},_moveSeparator:function(e){var t=e.event,n=t.data,i=n._columnsSeparatorView.width(),o=n._columnsSeparatorView.element().offset(),a=B(n),r=i/2,s=n._$parentContainer.offset(),l=s.left,u=(0,d.eventData)(t);if(n._isResizing&&n._resizingInfo){if(l<=u.x&&(!a||u.x<=l+n._$parentContainer.width())&&n._updateColumnsWidthIfNeeded(u.x)){var c=n._columnHeadersView.getColumnElements().eq(n._resizingInfo.currentColumnIndex);n._columnsSeparatorView.moveByX(c.offset().left+(a&&n.option("rtlEnabled")?0:c.outerWidth())),n._tablePositionController.update(n._targetPoint.y),t.preventDefault()}}else n._isHeadersRowArea(u.y)?(n._previousParentOffset&&(n._previousParentOffset.left===s.left&&n._previousParentOffset.top===s.top||n.pointsByColumns(null)),n._targetPoint=n._getTargetPoint(n.pointsByColumns(),u.x,i),n._previousParentOffset=s,n._isReadyResizing=!1,n._targetPoint&&n._targetPoint.y<=u.y&&o.top+n._columnsSeparatorView.height()>=u.y?(n._columnsSeparatorView.changeCursor("col-resize"),n._columnsSeparatorView.moveByX(n._targetPoint.x-r),n._tablePositionController.update(n._targetPoint.y),n._isReadyResizing=!0,t.preventDefault()):n._columnsSeparatorView.changeCursor()):(n.pointsByColumns(null),n._isReadyResizing=!1,n._columnsSeparatorView.changeCursor())},_endResizing:function(e){var t=e.event.data;if(t._isResizing){if(t.pointsByColumns(null),t._resizingInfo=null,t._columnsSeparatorView.hide(),t._columnsSeparatorView.changeCursor(),t._trackerView.hide(),!B(t)){var n=t.component.pageIndex();t.component.updateDimensions(),t.option("wordWrapEnabled")&&"virtual"===t.option("scrolling.mode")&&t.component.refresh().done(function(){t._rowsView.scrollToPage(n)})}t._isReadyResizing=!1,t._isResizing=!1}},_getNextColumnIndex:function(e){return e+1},_setupResizingInfo:function(e){var t=this,n=t._targetPoint.columnIndex,i=t._getNextColumnIndex(n),o=t._columnHeadersView.getHeaderElement(n),a=t._columnHeadersView.getHeaderElement(i);t._resizingInfo={startPosX:e,currentColumnIndex:n,currentColumnWidth:o&&o.length>0?o[0].getBoundingClientRect().width:0,nextColumnIndex:i,nextColumnWidth:a&&a.length>0?a[0].getBoundingClientRect().width:0}},_startResizing:function(e){var t=e.event,n=t.data,i=(0,d.eventData)(t),o=n.getController("editing"),a=n.option("editing.mode"),r=o.isEditing()&&("batch"===a||"cell"===a);(0,d.isTouchEvent)(t)&&(n._isHeadersRowArea(i.y)?(n._targetPoint=n._getTargetPoint(n.pointsByColumns(),i.x,10),n._targetPoint&&(n._columnsSeparatorView.moveByX(n._targetPoint.x-n._columnsSeparatorView.width()/2),n._isReadyResizing=!0)):n._isReadyResizing=!1),n._isReadyResizing&&!r&&(n._setupResizingInfo(i.x),n._tablePositionController.update(n._targetPoint.y),n._columnsSeparatorView.show(),n._trackerView.show(),n._isResizing=!0,t.preventDefault(),t.stopPropagation())},_generatePointsByColumns:function(){var e=this,t=e._columnsController?e._columnsController.getVisibleColumns():[],n=e._columnHeadersView.getColumnElements(),i=[];n&&n.length>0&&(i=g.default.getPointsByColumns(n,function(i){return e._pointCreated(i,n.length,t)})),e._pointsByColumns=i},_unsubscribeFromEvents:function(){this._moveSeparatorHandler&&r.default.off(a.default.getDocument(),(0,d.addNamespace)(h.default.move,S),this._moveSeparatorHandler),this._startResizingHandler&&r.default.off(this._$parentContainer,(0,d.addNamespace)(h.default.down,S),this._startResizingHandler),this._endResizingHandler&&(r.default.off(this._columnsSeparatorView.element(),(0,d.addNamespace)(h.default.up,S),this._endResizingHandler),r.default.off(a.default.getDocument(),(0,d.addNamespace)(h.default.up,S),this._endResizingHandler))},_subscribeToEvents:function(){this._moveSeparatorHandler=this.createAction(this._moveSeparator),this._startResizingHandler=this.createAction(this._startResizing),this._endResizingHandler=this.createAction(this._endResizing),r.default.on(a.default.getDocument(),(0,d.addNamespace)(h.default.move,S),this,this._moveSeparatorHandler),r.default.on(this._$parentContainer,(0,d.addNamespace)(h.default.down,S),this,this._startResizingHandler),r.default.on(this._columnsSeparatorView.element(),(0,d.addNamespace)(h.default.up,S),this,this._endResizingHandler),r.default.on(a.default.getDocument(),(0,d.addNamespace)(h.default.up,S),this,this._endResizingHandler)},_updateColumnsWidthIfNeeded:function(e){function t(e){return l.default.isString(e)&&"%"===e.slice(-1)}function n(e,n,i,o){if(e){var a=e.width;a&&(o=t(a)),o?(e&&h.columnOption(e.index,"visibleWidth",n),e&&h.columnOption(e.index,"width",(n/i*100).toFixed(3)+"%")):(e&&h.columnOption(e.index,"visibleWidth",null),e&&h.columnOption(e.index,"width",n))}}var i,o,a,r,s,u,c=!1,d=this._resizingInfo,h=this._columnsController,p=h.getVisibleColumns(),f=this._columnsSeparatorView.width(),_=this._rowsView.contentWidth(),m=B(this),v=m&&this.option("adaptColumnWidthByRatio")&&!this.option("columnAutoWidth");if(i=e-d.startPosX,m&&this.option("rtlEnabled")&&(i=-i),c=(u=d.currentColumnWidth+i)>=(r=(a=p[d.currentColumnIndex])&&a.minWidth||f),m&&(o=d.nextColumnWidth-i,r=(s=p[d.nextColumnIndex])&&s.minWidth||f,c=c&&o>=r),c){if(h.beginUpdate(),u=Math.floor(u),_=function(e,n){var i;return n.every(function(e){return e.width})&&(i=n.reduce(function(e,n){return t(n.width)&&(e+=parseFloat(n.width)),e},0))>100&&(e=e/i*100),e}(_,p),n(a,u,_,v),m)n(s,o=Math.floor(o),_,v);else{var y=this._columnHeadersView.getColumnWidths();if(y[d.currentColumnIndex]=u,!(y.reduce(function(e,t){return e+t},0)>this._rowsView.contentWidth())){var b=g.default.getLastResizableColumnIndex(p);b>=0&&h.columnOption(p[b].index,"visibleWidth","auto")}for(var x=0;x<y.length;x++)p[x]&&p[x]!==a&&void 0===p[x].width&&h.columnOption(p[x].index,"width",y[x])}h.endUpdate()}return c},_subscribeToCallback:function(e,t){e.add(t),this._subscribesToCallbacks.push({callback:e,handler:t})},_unsubscribeFromCallbacks:function(){var e,t;for(e=0;e<this._subscribesToCallbacks.length;e++)(t=this._subscribesToCallbacks[e]).callback.remove(t.handler);this._subscribesToCallbacks=[]},_unsubscribes:function(){this._unsubscribeFromEvents(),this._unsubscribeFromCallbacks()},_init:function(){var e=this,t=function(){e._isResizing||e.pointsByColumns(null)},n=function(t){e._scrollLeft!==t.left&&(e._scrollLeft=t.left,e.pointsByColumns(null))};e._columnsSeparatorView=e.getView("columnsSeparatorView"),e._columnHeadersView=e.getView("columnHeadersView"),e._trackerView=e.getView("trackerView"),e._rowsView=e.getView("rowsView"),e._columnsController=e.getController("columns"),e._tablePositionController=e.getController("tablePosition"),e._$parentContainer=e._columnsSeparatorView.component.$element(),e._subscribeToCallback(e._columnHeadersView.renderCompleted,t),e._subscribeToCallback(e._columnHeadersView.resizeCompleted,t),e._subscribeToCallback(e._columnsSeparatorView.renderCompleted,function(){e._unsubscribeFromEvents(),e._subscribeToEvents()}),e._subscribeToCallback(e._rowsView.renderCompleted,function(){e._rowsView.scrollChanged.remove(n),e._rowsView.scrollChanged.add(n)});var i=0!==e._rowsView.getScrollbarWidth(),o=0;e._subscribeToCallback(e.getController("tablePosition").positionChanged,function(t){if(e._isResizing&&!e._rowsView.isResizing){var n=0!==e._rowsView.getScrollbarWidth();i!==n||o&&o!==t.height?(i=n,o=t.height,e.component.updateDimensions()):e._rowsView.updateFreeSpaceRowHeight()}o=t.height})},optionChanged:function(e){this.callBase(e),"allowColumnResizing"===e.name&&(e.value?(this._init(),this._subscribeToEvents()):this._unsubscribes())},isResizing:function(){return this._isResizing},init:function(){this._subscribesToCallbacks=[],I(this)&&this._init()},pointsByColumns:function(e){return void 0===e?(this._pointsByColumns||this._generatePointsByColumns(),this._pointsByColumns):void(this._pointsByColumns=e)},dispose:function(){this._unsubscribes(),this.callBase()}}),R=f.default.ViewController.inherit({update:function(e){var t=this,n={},i=t._columnHeadersView.element(),o=i&&i.offset(),a=o&&o.top||0,r=l.default.isDefined(e)?Math.abs(e-a):0,s=t._columnHeadersView?t._columnHeadersView.getHeight():0,u=t._rowsView?t._rowsView.height()-t._rowsView.getScrollbarWidth(!0):0;n.height=s+u-r,null!==e&&i&&i.length&&(n.top=i[0].offsetTop+r),t.positionChanged.fire(n)},init:function(){var e=this;e.callBase(),e._columnHeadersView=this.getView("columnHeadersView"),e._rowsView=this.getView("rowsView"),e._pagerView=this.getView("pagerView"),e._rowsView.resizeCompleted.add(function(){e.option("allowColumnResizing")&&e.update(null)})},ctor:function(e){this.callBase(e),this.positionChanged=(0,s.default)()}}),F=f.default.ViewController.inherit({_generatePointsByColumns:function(e){var t=this;return g.default.getPointsByColumns(e.columnElements,function(n){return t._pointCreated(n,e.columns,e.targetDraggingPanel.getName(),e.sourceColumn)},e.isVerticalOrientation,e.startColumnIndex)},_pointCreated:function(e,t,n,i){var o=t[e.columnIndex],a=t[e.columnIndex-1];switch(n){case"columnChooser":return!0;case"headers":return i&&!i.allowReordering||(!o||!o.allowReordering)&&(!a||!a.allowReordering);default:return 0===t.length}},_subscribeToEvents:function(e,t){var n=this;(0,u.each)(t,function(i,a){if(a){var s,l,c,h=a.getRowCount?a.getRowCount():1,f=a.getName(),g=function(i,s){if(s){var u=(0,o.default)(s),c=l[i];a.allowDragging(c,f,t)&&(u.addClass(n.addWidgetPrefix(b)),r.default.on(u,(0,d.addNamespace)(p.default.start,S),n.createAction(function(a){var r=a.event,s=(0,d.eventData)(r);e.dragHeader({deltaX:s.x-(0,o.default)(r.currentTarget).offset().left,deltaY:s.y-(0,o.default)(r.currentTarget).offset().top,sourceColumn:c,index:c.index,columnIndex:i,columnElement:u,sourceLocation:f,draggingPanels:t,rowIndex:n._columnsController.getRowIndex(c.index,!0)})})),r.default.on(u,(0,d.addNamespace)(p.default.move,S),{that:e},n.createAction(e.moveHeader)),r.default.on(u,(0,d.addNamespace)(p.default.end,S),{that:e},n.createAction(e.dropHeader)))}};for(s=0;s<h;s++)(c=a.getColumnElements(s)||[]).length&&(l=a.getColumns(s)||[],(0,u.each)(c,g))}})},_unsubscribeFromEvents:function(e,t){var n=this;(0,u.each)(t,function(e,t){if(t){var i=t.getColumnElements()||[];(0,u.each)(i,function(e,t){var i=(0,o.default)(t);r.default.off(i,(0,d.addNamespace)(p.default.start,S)),r.default.off(i,(0,d.addNamespace)(p.default.move,S)),r.default.off(i,(0,d.addNamespace)(p.default.end,S)),i.removeClass(n.addWidgetPrefix(b))})}})},_getSeparator:function(e){return"headers"===e?this._columnsSeparatorView:this._blockSeparatorView},hideSeparators:function(e){var t=this._blockSeparatorView,n=this._columnsSeparatorView;this._animationColumnIndex=null,t&&t.hide(),"block"!==e&&n&&n.hide()},init:function(){var e,t=this;t.callBase(),t._columnsController=t.getController("columns"),t._columnHeadersView=t.getView("columnHeadersView"),t._columnsSeparatorView=t.getView("columnsSeparatorView"),t._draggingHeaderView=t.getView("draggingHeaderView"),t._rowsView=t.getView("rowsView"),t._blockSeparatorView=t.getView("blockSeparatorView"),t._headerPanelView=t.getView("headerPanel"),t._columnChooserView=t.getView("columnChooserView"),e=function(){if(t._draggingHeaderView){var e=[t._columnChooserView,t._columnHeadersView,t._headerPanelView];t._unsubscribeFromEvents(t._draggingHeaderView,e),t._subscribeToEvents(t._draggingHeaderView,e)}},t._columnHeadersView.renderCompleted.add(e),t._headerPanelView&&t._headerPanelView.renderCompleted.add(e),t._columnChooserView&&t._columnChooserView.renderCompleted.add(e)},allowDrop:function(e){return this._columnsController.allowMoveColumn(e.sourceColumnIndex,e.targetColumnIndex,e.sourceLocation,e.targetLocation)},drag:function(e){var t=e.sourceIndex,n=e.sourceLocation,i=e.sourceColumnElement,o=this._columnHeadersView,a=this._rowsView;i&&(i.css({opacity:.5}),"headers"===n&&(o&&o.setRowsOpacity(t,.5),a&&a.setRowsOpacity(t,.5)))},dock:function(e){var t=this,n=l.default.isObject(e.targetColumnIndex)?e.targetColumnIndex.columnIndex:e.targetColumnIndex,i=e.sourceLocation,o=e.targetLocation,a=t._getSeparator(o),r=n>=0;t._columnHeadersView.element().find("."+k).toggleClass(t.addWidgetPrefix(w),"headers"!==i&&"headers"===o&&!r),a&&(t.allowDrop(e)&&r?"group"===o||"columnChooser"===o?t._animationColumnIndex!==n&&(t.hideSeparators(),a.element()[e.isLast?"insertAfter":"insertBefore"](e.targetColumnElement),t._animationColumnIndex=n,a.show(o)):(t.hideSeparators("block"),t.getController("tablePosition").update(e.posY),a.moveByX(e.posX-a.width()),a.show()):t.hideSeparators())},drop:function(e){var t=e.sourceColumnElement;if(t&&(t.css({opacity:""}),this._columnHeadersView.setRowsOpacity(e.sourceIndex,""),this._rowsView.setRowsOpacity(e.sourceIndex,""),this._columnHeadersView.element().find("."+k).removeClass(this.addWidgetPrefix(w))),this.allowDrop(e)){var n=this._getSeparator(e.targetLocation);n&&n.hide(),this._columnsController.moveColumn(e.sourceColumnIndex,e.targetColumnIndex,e.sourceLocation,e.targetLocation)}},dispose:function(){this._draggingHeaderView&&this._unsubscribeFromEvents(this._draggingHeaderView,[this._columnChooserView,this._columnHeadersView,this._headerPanelView])}});e.exports={views:{columnsSeparatorView:A,blockSeparatorView:O,draggingHeaderView:P,trackerView:D},controllers:{draggingHeader:F,tablePosition:R,columnsResizer:M},extenders:{views:{rowsView:{_needUpdateRowHeight:function(e){var t=this.option("wordWrapEnabled"),n=this.getController("columnsResizer").isResizing();return this.callBase.apply(this,arguments)||e>0&&t&&n}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return e&&e.hasClass(I)}function a(e){return e&&e.hasClass(T)}function r(e){return e&&!o(e)&&!a(e)}function s(e){return e.length&&"TD"===e[0].tagName}function l(e,t){return!e._isRowEditMode()&&t&&t.hasClass(O)}var u=i(n(2)),c=i(n(12)),d=i(n(5)),h=i(n(38)),p=n(36),f=n(1),g=n(13),_=n(64),m=n(3),v=i(n(159)),y=i(n(9)),b=i(n(24)),x=n(4),w=n(96),C="rowsview",k="edit-form",S="dx-row",I="dx-group-row",T="dx-master-detail-row",D="dx-freespace-row",E="dx-virtual-row",A="dx-master-detail-cell",O="dx-editor-cell",P="dx-command-expand",B="dx-cell-focus-disabled",M="dx-state-focused",R="delete",F="input:not([type='hidden']), textarea, a, [tabindex]",V=["rowsView"],L="form",H=h.default.ViewController.inherit({_isRowEditMode:function(){var e=this.getController("editing").getEditMode();return"row"===e||e===L},_isCellEditMode:function(){var e=this.getController("editing").getEditMode();return"cell"===e||"batch"===e},_isFastEditingAllowed:function(){return this._isCellEditMode()&&this.option("keyboardNavigation.editOnKeyPress")},_focusView:function(e,t){this._focusedViews.viewIndex=t,this._focusedView=e},_getInteractiveElement:function(e,t){var n=e.find(F).filter(":visible");return t?n.last():n.first()},_focusInteractiveElement:function(e,t){if(e){var n=this._getInteractiveElement(e,t);(0,p.focusAndSelectElement)(this,n)}},_updateFocus:function(){var e=this;setTimeout(function(){var t=e._getFocusedCell(),n=e._isCellEditMode()&&t;!t||e._isMasterDetailCell(t)&&!e._isRowEditMode()||(e._hasSkipRow(t.parent())&&(t=e._getNextCell(e._focusedCellPosition&&e._focusedCellPosition.rowIndex>0?"upArrow":"downArrow")),t&&t.length>0&&(t.is("td")||t.hasClass(e.addWidgetPrefix("edit-form-item"))?(e.getController("editorFactory").focus()||n?e._focus(t):e._isHiddenFocus&&e._focus(t,!0),e._editingController.isEditing()&&e._focusInteractiveElement.bind(e)(t)):d.default.trigger(t,"focus")))})},_applyTabIndexToElement:function(e){var t=this.option("tabIndex");e.attr("tabIndex",(0,f.isDefined)(t)?t:0)},_isEventInCurrentGrid:function(e){return(0,u.default)(e.target).closest("."+this.getWidgetContainerClass()).parent().is(this.component.$element())},_clickHandler:function(e){var t=e.event,n=(0,u.default)(t.currentTarget),i=t.data,o=i.view&&i.view.element(),a=n.hasClass(O);this._isEventInCurrentGrid(t)&&this._isCellValid(n)?(n=this._isInsideEditForm(n)?(0,u.default)(t.target):n,this._focusView(i.view,i.viewIndex),(0,u.default)(o).removeClass(M),n.parent().hasClass(D)?(this._updateFocusedCellPosition(n),this._focusedView.element().attr("tabindex",0),this._focusedView.focus()):a||this._isMasterDetailCell(n)?this._updateFocusedCellPosition(n):this._clickTargetCellHandler(t,n)):n.is("td")&&this._resetFocusedCell()},_allowRowUpdating:function(){var e=this.getVisibleRowIndex(),t=this._dataController.items()[e];return this._editingController.allowUpdating({row:t},"click")},_clickTargetCellHandler:function(e,t){var n,i=this.getView("rowsView").getCellIndex(t),o=this._columnsController.getVisibleColumns()[i],a=this._isCellEditMode();if(this.setCellFocusType(),t=(n=this._fireFocusChangingEvents(e,t,!0)).$newCellElement,n.cancel)this.setRowFocusType(),this.setFocusedRowIndex(n.prevRowIndex),t=this._getFocusedCell(),this._editingController.isEditing()&&a&&this._editingController.closeEditCell();else{if(n.resetFocusedRow)return void this.getController("focus")._resetFocusedRow();if(n.rowIndexChanged&&(t=this._getFocusedCell()),n.isHighlighted||a||this.setRowFocusType(),this._updateFocusedCellPosition(t),this._allowRowUpdating()&&a&&o&&o.allowEditing)this._isHiddenFocus=!1;else{var r=e&&(0,u.default)(e.target),s=r&&r.not(t).is(F),l=!n.isHighlighted||s;this._focus(t,l,s)}}},_initFocusedViews:function(){var e=this,t=e.createAction(e._clickHandler);e._focusedViews=[],(0,m.each)(V,function(t,n){var i=e.getView(n);i&&i.isVisible()&&e._focusedViews.push(i)}),(0,m.each)(e._focusedViews,function(n,i){i&&i.renderCompleted.add(function(o){var a=i.element(),r=!o||"refresh"===o.changeType,s=e._focusedView&&e._focusedView.name===i.name,l=o&&("append"===o.changeType||"prepend"===o.changeType);d.default.off(a,y.default.addNamespace(b.default.down,"dxDataGridKeyboardNavigation"),t),d.default.on(a,y.default.addNamespace(b.default.down,"dxDataGridKeyboardNavigation"),".dx-row > td, .dx-row",{viewIndex:n,view:i},t),e._initKeyDownProcessor(e,a,e._keyDownHandler),s&&((e._isNeedFocus?!l:e._isHiddenFocus&&r)&&e._updateFocus(!1,!0))})})},_initKeyDownProcessor:function(e,t,n){this._keyDownProcessor&&(this._keyDownProcessor.dispose(),this._keyDownProcessor=null),this._keyDownProcessor=new v.default({element:t,context:e,handler:n})},_getCell:function(e){if(this._focusedView&&e)return this._focusedView.getCell({rowIndex:e.rowIndex-this._dataController.getRowIndexOffset(),columnIndex:e.columnIndex})},_getFocusedCell:function(){return this._getCell(this._focusedCellPosition)},_getRowIndex:function(e){var t=this._focusedView,n=-1;return t&&(n=t.getRowIndex(e)),n>=0&&(n+=this._dataController.getRowIndexOffset()),n},_updateFocusedCellPosition:function(e,t){var n=this._getCellPosition(e,t);n&&(!e.length||n.rowIndex>=0&&n.columnIndex>=0)&&this.setFocusedCellPosition(n.rowIndex,n.columnIndex)},_getCellPosition:function(e,t){var n,i,o=this,a=e.closest("tr");if(a.length>0&&o._focusedView)return n=a.length>0&&o._getRowIndex(a),i=o._focusedView.getCellIndex(e,n),t&&(i="previous"===t?i-1:i+1,i=o._applyColumnIndexBoundaries(i)),{rowIndex:n,columnIndex:i}},setFocusedCellPosition:function(e,t){this.setFocusedRowIndex(e),this.setFocusedColumnIndex(t)},setFocusedRowIndex:function(e){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.rowIndex=e},setFocusedColumnIndex:function(e){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.columnIndex=e},getVisibleRowIndex:function(){return this._focusedCellPosition?this._focusedCellPosition.rowIndex?this._focusedCellPosition.rowIndex-this._dataController.getRowIndexOffset():this._focusedCellPosition.rowIndex:null},getVisibleColumnIndex:function(){return this._focusedCellPosition&&(0,f.isDefined)(this._focusedCellPosition.columnIndex)?this._focusedCellPosition.columnIndex:-1},getFocusedColumnIndex:function(){return this._focusedCellPosition?this._focusedCellPosition.columnIndex:null},_applyColumnIndexBoundaries:function(e){var t=this._getVisibleColumnCount();return e<0?e=0:e>=t&&(e=t-1),e},_isCellValid:function(e){if((0,f.isDefined)(e)){var t=this.getView("rowsView"),n=e.parent(),i=this._columnsController.getVisibleColumns(),o=t.getCellIndex(e),s=i[o],l=this._getVisibleColumnCount(),u=this._editingController,c=a(n),d=s&&s.showWhenGrouped,h=s&&!e.hasClass(P)&&r(n);if(this._isMasterDetailCell(e))return!0;if(l>o&&(!c&&s&&(!(0,f.isDefined)(s.groupIndex)||d&&h)||parseInt(e.attr("colspan"))>1)){var p=this._dataController.items(),g=t.getRowIndex(n),_=p[g],m=u&&this._isCellEditMode()&&u.isEditing(),v=u&&u.isEditRow(g),y=v||m;return s.command?this._isLegacyNavigation()?!y&&"expand"===s.command:m?!s.command:v?"select"!==s.command:!y:(!m||!_||"data"===_.rowType)&&(!y||s.allowEditing)}}},_isCellByPositionValid:function(e){var t=this._getCell(e);return this._isCellValid(t)},_focus:function(e,t,n){var i=e&&e.is("td")?e.parent():e;if(!i||!function(e){return!e||e.hasClass(D)||e.hasClass(E)}(i)){var a,r=this._getFocusedCell(),l=this._focusedView,u=l&&l.element();this._isHiddenFocus=t,o(i)||this.isRowFocusType()?(a=i,l&&this.setFocusedRowIndex(this._getRowIndex(i))):s(e)&&(a=e,this._updateFocusedCellPosition(e)),r&&r.is("td")&&r.not(a).removeAttr("tabIndex"),a&&(n||(this._applyTabIndexToElement(a),d.default.trigger(a,"focus")),t?(u&&u.find("."+B+"[tabIndex]").not(a).removeClass(B).removeAttr("tabIndex"),a.addClass(B)):(u&&u.find("."+B+":not(."+A+")").removeClass(B),this.getController("editorFactory").focus(a)))}},_hasSkipRow:function(e){var t=e&&e.get(0);return t&&("none"===t.style.display||e.hasClass(this.addWidgetPrefix("group-footer"))||a(e)&&!e.hasClass(this.addWidgetPrefix(k)))},_f2KeyHandler:function(){var e=this._editingController.isEditing(),t=this.getVisibleRowIndex(),n=this._focusedView&&this._focusedView.getRow(t);!e&&r(n)&&this._startEditing()},_allowEditingOnEnterKey:function(){return"startEdit"===this.option("keyboardNavigation.enterKeyAction")},_isLegacyNavigation:function(){return this.option("useLegacyKeyboardNavigation")},_enterKeyHandler:function(e,t){var n=this._getFocusedCell(),i=this.getVisibleRowIndex(),a=this._focusedView&&this._focusedView.getRow(i);if(this.option("grouping.allowCollapsing")&&o(a)||this.option("masterDetail.enabled")&&n&&n.hasClass(P)){var r=this._dataController.getKeyByRowIndex(i),s=this._dataController.items()[i];void 0!==r&&s&&s.data&&!s.data.isContinuation&&this._dataController.changeRowExpand(r)}else this._processEnterKeyForDataCell(e,t)},_processEnterKeyForDataCell:function(e,t){var n;t||!this._allowEditingOnEnterKey()?(this._handleEnterKeyEditingCell(e.originalEvent),"next"===(n=this._getEnterKeyDirection(e))||"previous"===n?this._targetCellTabHandler(e,n):"upArrow"!==n&&"downArrow"!==n||this._navigateNextCell(e.originalEvent,n)):this._startEditing(e)},_getEnterKeyDirection:function(e){var t=this.option("keyboardNavigation.enterKeyDirection"),n=e.shift;return"column"===t?n?"upArrow":"downArrow":"row"===t?n?"previous":"next":void 0},_handleEnterKeyEditingCell:function(e){var t=e.target,n=this._getCellElementFromTarget(t),i=this._isRowEditMode();this._updateFocusedCellPosition(n),i?(this._focusEditFormCell(n),setTimeout(this._editingController.saveEditData.bind(this._editingController))):(d.default.trigger((0,u.default)(t),"blur"),this._editingController.closeEditCell(),e.preventDefault())},_startEditing:function(e,t){var n=this._focusedCellPosition,i=this.getVisibleRowIndex(),o=this._dataController.items()[i],a=this._columnsController.getVisibleColumns()[n.columnIndex];this._editingController.allowUpdating({row:o})&&a&&a.allowEditing&&(this._isRowEditMode()?this._editingController.editRow(i):n&&this._startEditingCell(e,t))},_startEditingCell:function(e,t){var n,i=this,o=this.getVisibleRowIndex(),a=this._focusedCellPosition.columnIndex;if(this._fastEditingStarted=(0,f.isDefined)(t),n=this._editingController.editCell(o,a),this._isFastEditingStarted())if(!0===n)i._editingCellHandler(e,t);else if(n&&n.done){var r=t!==R?t:"";n.done(function(){return i._editingCellHandler(e,r)})}},_editingCellHandler:function(e,t){var n=this._getFocusedCell().find(".dx-texteditor-input").eq(0),i=y.default.createEvent(e,{type:"keydown",target:n.get(0)}),o=y.default.createEvent(e,{type:"keypress",target:n.get(0)}),a=y.default.createEvent(e,{type:"input",target:n.get(0)});d.default.trigger(n,i),i.isDefaultPrevented()||(d.default.trigger(n,o),o.isDefaultPrevented()||(n.val(t),d.default.off(n,"focusout"),d.default.on(n,"focusout",function(){d.default.trigger(n,"change")}),setTimeout(function(){d.default.trigger(n,a)})))},_leftRightKeysHandler:function(e,t){var n=this.getVisibleRowIndex(),i=e.originalEvent,o=this._focusedView&&this._focusedView.getRow(n),a=this._getDirectionCodeByKey(e.keyName),s=this._isFastEditingStarted();(!t||s)&&r(o)&&(this.setCellFocusType(),s&&this._editingController.closeEditCell(),this._arrowKeysHandlerFocusCell(i,this._getNextCell(a)),i&&i.preventDefault())},_upDownKeysHandler:function(e,t){var n,i=this.getVisibleRowIndex(),o=this._focusedView&&this._focusedView.getRow(i),r=e.originalEvent,s="upArrow"===e.keyName,l=this._dataController.dataSource(),u=this._isFastEditingStarted();(!t||u)&&o&&!a(o)&&(u&&this._editingController.closeEditCell(),this._navigateNextCell(r,e.keyName)||this._isVirtualScrolling()&&s&&l&&!l.isLoading()&&(n=o.outerHeight(),i=this._focusedCellPosition.rowIndex-1,this._scrollBy(-n,i,r)),r&&r.preventDefault())},_getDirectionCodeByKey:function(e){return this.option("rtlEnabled")?"leftArrow"===e?"nextInRow":"previousInRow":"leftArrow"===e?"previousInRow":"nextInRow"},_navigateNextCell:function(e,t){var n=this._getNextCell(t);return!(!n||!this._isCellValid(n))&&this._arrowKeysHandlerFocusCell(e,n,!0)},_arrowKeysHandlerFocusCell:function(e,t,n){var i=this._fireFocusChangingEvents(e,t,n,!0);return t=i.$newCellElement,!(i.cancel||!this._isCellValid(t)||(this._focus(t,!i.isHighlighted),0))},_fireFocusChangingEvents:function(e,t,n,i){var o={},a=this._getCellPosition(t)||{};return this.isCellFocusType()&&((o=this._fireFocusedCellChanging(e,t,i)).cancel||(a.columnIndex=o.newColumnIndex,a.rowIndex=o.newRowIndex,i=o.isHighlighted,t=this._getCell(a))),!o.cancel&&n&&t&&((o=this._fireFocusedRowChanging(e,t.parent())).cancel||(a.rowIndex=o.newRowIndex,o.isHighlighted=i)),o.$newCellElement=this._getCell(a),o.$newCellElement&&o.$newCellElement.length||(o.$newCellElement=t),o},_isVirtualScrolling:function(){var e=this.option("scrolling.mode");return"virtual"===e||"infinite"===e},_scrollBy:function(e,t,n){var i=this,o=this.getView("rowsView").getScrollable();if(i._focusedCellPosition){o.on("scroll",function e(){o.off("scroll",e),setTimeout(i.restoreFocusableElement.bind(i,t,n))})}o.scrollBy({left:0,top:e})},restoreFocusableElement:function(e,t){var n,i,o=this,a=(0,f.isDefined)(e),r=o.getView("rowsView"),s=r.element(),l=o._focusedCellPosition.columnIndex,u=o._dataController.getRowIndexOffset();e=a?e:r.getTopVisibleItemIndex()+u,a?(i=r.getRow(e-u),!(n=o._fireFocusedRowChanging(t,i)).cancel&&n.rowIndexChanged&&(e=n.newRowIndex)):(o.getController("editorFactory").loseFocus(),o._applyTabIndexToElement(s),d.default.trigger(s,"focus")),a&&n.cancel||o.setFocusedCellPosition(e,l),a&&o._updateFocus()},_pageUpDownKeyHandler:function(e){var t=this._dataController.pageIndex(),n=this._dataController.pageCount(),i=this.option("paging.enabled"),o="pageUp"===e.keyName,a=o?-1:1,r=this.getView("rowsView").getScrollable();i&&!this._isVirtualScrolling()?(o?t>0:t<n-1)&&!this._isVirtualScrolling()&&(this._dataController.pageIndex(t+a),e.originalEvent.preventDefault()):r&&r._container().height()<r.$content().height()&&(this._scrollBy(r._container().height()*a),e.originalEvent.preventDefault())},_spaceKeyHandler:function(e,t){var n,i=this.getVisibleRowIndex(),o=(0,u.default)(e.originalEvent&&e.originalEvent.target);this.option("selection")&&"none"!==this.option("selection").mode&&!t?((n="row"===this._getElementType(o)&&this.isRowFocusType()&&r(o))&&this._selectionController.startSelectionWithCheckboxes(),(n||o.parent().hasClass("dx-data-row")||o.hasClass(this.addWidgetPrefix(C)))&&(this._selectionController.changeItemSelection(i,{shift:e.shift,control:e.ctrl}),e.originalEvent.preventDefault())):this._beginFastEditing(e.originalEvent)},_ctrlAKeyHandler:function(e,t){!t&&e.ctrl&&!e.alt&&"multiple"===this.option("selection.mode")&&this.option("selection.allowSelectAll")&&(this._selectionController.selectAll(),e.originalEvent.preventDefault())},_isInsideEditForm:function(e){return(0,u.default)(e).closest("."+this.addWidgetPrefix(k)).length>0},_isMasterDetailCell:function(e){var t=(0,u.default)(e).closest("."+A),n=t.closest("."+this.getWidgetContainerClass()).parent();return t.length&&n.is(this.component.$element())},_processNextCellInMasterDetail:function(e){!this._isInsideEditForm(e)&&e&&this._applyTabIndexToElement(e)},_handleTabKeyOnMasterDetailCell:function(e,t){if(this._isMasterDetailCell(e)){this._updateFocusedCellPosition((0,u.default)(e),t);var n=this._getNextCell(t,"row");return this._processNextCellInMasterDetail(n),!0}return!1},_tabKeyHandler:function(e,t){var n=this.option("editing"),i=e.shift?"previous":"next",o=!e.shift&&this._isLastValidCell(this._focusedCellPosition)||e.shift&&this._isFirstValidCell(this._focusedCellPosition),a=e.originalEvent.target,r=this._focusedView&&this._focusedView.element();if(!this._handleTabKeyOnMasterDetailCell(a,i)){if((0,u.default)(r).addClass(M),n&&a&&!o)if((0,u.default)(a).hasClass(this.addWidgetPrefix(C))&&this._resetFocusedCell(),t){if(!this._editingCellTabHandler(e,i))return}else this._targetCellTabHandler(e,i)&&(o=!0);o?(this.getController("editorFactory").loseFocus(),this._editingController.isEditing()&&!this._isRowEditMode()&&(this._resetFocusedCell(),this._editingController.closeEditCell())):e.originalEvent.preventDefault()}},_editingCellTabHandler:function(e,t){var n,i,o,a=this.option("editing"),r=e.originalEvent.target,s=this._getCellElementFromTarget(r);if(s.is("[class^=dx-command]"))return!this._targetCellTabHandler(e,t);if(this._updateFocusedCellPosition(s),!(s=this._getNextCell(t))||this._handleTabKeyOnMasterDetailCell(s,t))return!1;if(n=this._columnsController.getVisibleColumns()[this.getView("rowsView").getCellIndex(s)],i=this._dataController.items()[this._getRowIndex(s&&s.parent())],n.allowEditing){var l=!i||"data"===i.rowType;o=a.allowUpdating?l:i&&i.inserted}return o||this._editingController.closeEditCell(),this._focusCell(s)&&(!this._isRowEditMode()&&o?this._editingController.editCell(this.getVisibleRowIndex(),this._focusedCellPosition.columnIndex):this._focusInteractiveElement(s,e.shift)),!0},_targetCellTabHandler:function(e,t){var n,i=e.originalEvent,o=i.target,a=this._getCellElementFromTarget(o),s=this._getInteractiveElement(a,!e.shift),c=!1;if(!l(this,a)&&s.length&&o!==s.get(0))c=!0;else{if(void 0===this._focusedCellPosition.rowIndex&&(0,u.default)(o).hasClass(S)&&this._updateFocusedCellPosition((0,u.default)(o).children().first()),n=this._getElementType(o),this.isRowFocusType()&&(this.setCellFocusType(),"row"===n&&r((0,u.default)(o))&&(o=this.getFirstValidCellInRow((0,u.default)(o)),n=this._getElementType(o))),!(a=this._getNextCellByTabKey(i,t,n)))return!1;if(!(a=this._checkNewLineTransition(i,a)))return!1;this._focusCell(a),l(this,a)||this._focusInteractiveElement(a,e.shift)}return c},_getNextCellByTabKey:function(e,t,n){var i=this._getNextCell(t,n),o=i&&this._fireFocusedCellChanging(e,i,!0);if(o&&!o.cancel)return o.$newCellElement&&(i=o.$newCellElement),i},_checkNewLineTransition:function(e,t){var n=this.getVisibleRowIndex(),i=t.parent();if(n!==this._getRowIndex(i)){var o=this._getCellPosition(t),a=this._fireFocusedRowChanging(e,i);if(a.cancel)return;a.rowIndexChanged&&(this.setFocusedColumnIndex(o.columnIndex),t=this._getFocusedCell())}return t},getFirstValidCellInRow:function(e,t){for(var n,i,o=e.find("> td"),a=t=t||0;a<o.length;++a)if(n=o.eq(a),this._isCellValid(n)){i=n;break}return i},_focusCell:function(e){if(this._isCellValid(e))return this._focus(e),!0},_getElementType:function(e){return(0,u.default)(e).is("tr")?"row":"cell"},_focusEditFormCell:function(e){e.hasClass(A)&&this.getController("editorFactory").focus(e,!0)},_escapeKeyHandler:function(e,t){var n=this._getCellElementFromTarget(e.originalEvent.target);t&&(this._updateFocusedCellPosition(n),this._isRowEditMode()?(this._focusEditFormCell(n),this._editingController.cancelEditData()):"cell"===this._editingController.getEditMode()?this._editingController.cancelEditData():this._editingController.closeEditCell(),e.originalEvent.preventDefault())},_ctrlFKeyHandler:function(e){e.ctrl&&this.option("searchPanel")&&this.option("searchPanel").visible&&(this._headerPanel.focus(),e.originalEvent.preventDefault())},_keyDownHandler:function(e){var t=this._editingController.isEditing(),n=!0,i=e.originalEvent,o={handled:!1,event:i};if(this.executeAction("onKeyDown",o),!i.isDefaultPrevented()&&(this._isNeedFocus=!0,this._isNeedScroll=!0,this._updateFocusedCellPosition(this._getCellElementFromTarget(o.event.target)),!o.handled)){switch(e.keyName){case"leftArrow":case"rightArrow":this._leftRightKeysHandler(e,t);break;case"upArrow":case"downArrow":e.ctrl?(0,w.selectView)("rowsView",this,i):this._upDownKeysHandler(e,t);break;case"pageUp":case"pageDown":this._pageUpDownKeyHandler(e);break;case"space":this._spaceKeyHandler(e,t);break;case"A":e.ctrl?this._ctrlAKeyHandler(e,t):this._beginFastEditing(e.originalEvent);break;case"tab":this._tabKeyHandler(e,t);break;case"enter":this._enterKeyHandler(e,t);break;case"escape":this._escapeKeyHandler(e,t);break;case"F":e.ctrl?this._ctrlFKeyHandler(e):this._beginFastEditing(e.originalEvent);break;case"F2":this._f2KeyHandler();break;case"del":case"backspace":this._isFastEditingAllowed()&&!this._isFastEditingStarted()&&this._beginFastEditing(e.originalEvent,!0);break;default:this._beginFastEditing(e.originalEvent)||(this._isNeedFocus=!1,this._isNeedScroll=!1,n=!1)}n&&i.stopPropagation()}},_isFastEditingStarted:function(){return this._isFastEditingAllowed()&&this._fastEditingStarted},_beginFastEditing:function(e,t){if(!this._isFastEditingAllowed()||e.altKey||e.ctrlKey||this._editingController.isEditing())return!1;if(t)this._startEditing(e,R);else{var n=e.key,i=e.keyCode||e.which,o=n||i&&String.fromCharCode(i);!o||1!==o.length&&o!==R||this._startEditing(e,o)}return!0},_isLastRow:function(e){return this._isVirtualScrolling()?e>=this._dataController.totalItemsCount()-1:e===this.getController("data").items().length-1},_getNextCell:function(e,t,n){var i,o,a,r,s=n||this._focusedCellPosition,l=this.isRowFocusType(),u=l||(0,g.inArray)(e,["next","previous"])>-1,c="previous"===e?this._isFirstValidCell(s):this._isLastValidCell(s);if(this._focusedView&&s){if(o=this._getNewPositionByCode(s,t,e),(a=this._getCell(o))&&!this._isCellValid(a)&&this._isCellInRow(o,u)&&!c&&(a=l?this.getFirstValidCellInRow(a.parent(),o.columnIndex):this._getNextCell(e,"cell",o)),r=a&&a.parent(),this._hasSkipRow(r)){if(i=this._getRowIndex(r),this._isLastRow(i))return null;a=this._getNextCell(e,"row",{columnIndex:s.columnIndex,rowIndex:i})}return a}return null},_getNewPositionByCode:function(e,t,n){var i=e.columnIndex,o=e.rowIndex;if(void 0===e.rowIndex&&"next"===n)return{columnIndex:0,rowIndex:0};switch(n){case"nextInRow":case"next":i<this._getVisibleColumnCount()-1&&!this._isLastValidCell({columnIndex:i,rowIndex:o})&&"row"!==t?i++:this._isLastRow(o)||"next"!==n||(i=0,o++);break;case"previousInRow":case"previous":i>0&&!this._isFirstValidCell({columnIndex:i,rowIndex:o})&&"row"!==t?i--:o>0&&"previous"===n&&(o--,i=this._getVisibleColumnCount()-1);break;case"upArrow":o=o>0?o-1:o;break;case"downArrow":o=this._isLastRow(o)?o:o+1}return{columnIndex:i,rowIndex:o}},_isFirstValidCell:function(e){var t=!1;return 0===e.rowIndex&&e.columnIndex>=0&&(t=t||!this._haveValidCellBeforePosition(e)),t},_haveValidCellBeforePosition:function(e){for(var t=e.columnIndex,n=!1;t>0&&!n;){var i={columnIndex:--t,rowIndex:e.rowIndex};n=this._isCellByPositionValid(i)}return n},_isLastValidCell:function(e){var t={columnIndex:e.columnIndex>=0?e.columnIndex+1:0,rowIndex:e.rowIndex},n=this._getVisibleColumnCount(),i=this._isCellByPositionValid(t);return!!this._isLastRow(e.rowIndex)&&(e.columnIndex===n-1||!i&&this._isLastValidCell(t))},_getVisibleColumnCount:function(){return this.getController("columns").getVisibleColumns().length},_isCellInRow:function(e,t){var n=e.columnIndex,i=this._getVisibleColumnCount();return t?n>=0&&n<=i-1:n>0&&n<i-1},_resetFocusedCell:function(){var e=this,t=e._getFocusedCell();t&&t.removeAttr("tabIndex"),e._focusedView&&e._focusedView.renderFocusState&&e._focusedView.renderFocusState(),e._isNeedFocus=!1,e._isNeedScroll=!1,e._focusedCellPosition={}},_getCellElementFromTarget:function(e){return(0,u.default)(e).closest("."+S+"> td")},init:function(){var e=this;e.option("useKeyboard")&&(e._dataController=e.getController("data"),e._selectionController=e.getController("selection"),e._editingController=e.getController("editing"),e._headerPanel=e.getView("headerPanel"),e._columnsController=e.getController("columns"),e.getController("editorFactory").focused.add(function(t){e.setupFocusedView(),e._isNeedScroll&&t.is(":visible")&&e._focusedView&&e._focusedView.getScrollable&&(e._scrollToElement(t),e._isNeedScroll=!1)}),e._fastEditingStarted=!1,e._focusedCellPosition={},e._canceledCellPosition=null,e._initFocusedViews(),e._documentClickHandler=e.createAction(function(t){var n=(0,u.default)(t.event.target),i=e._isEventInCurrentGrid(t.event)&&n.closest("."+e.addWidgetPrefix(C)).length,o=n.closest(".dx-dropdowneditor-overlay").length;i||o||e._resetFocusedCell()}),e.createAction("onKeyDown"),d.default.on(c.default.getDocument(),y.default.addNamespace(b.default.down,"dxDataGridKeyboardNavigation"),e._documentClickHandler))},_scrollToElement:function(e,t){var n=this._focusedView.getScrollable();n&&n.update(),n&&n.scrollToElement(e,t)},focus:function(e){var t,n=this.option("focusedRowEnabled"),i=s((0,u.default)(e));e||(t=".dx-datagrid-rowsview .dx-row[tabindex]",n||(t+=", .dx-datagrid-rowsview .dx-row > td[tabindex]"),e=this.component.$element().find(t).first()),e&&this._focusElement((0,u.default)(e),i)},_focusElement:function(e,t){var n=this._getFocusedViewByElement(e),i=this.isRowFocusType(),a={};!n||s(e)&&!this._isCellValid(e)||(this._focusView(n.view,n.viewIndex),this._isNeedFocus=!0,this._isNeedScroll=!0,(s(e)||o(e))&&(this.setCellFocusType(),e=(a=this._fireFocusChangingEvents(null,e,!1,t)).$newCellElement,i&&!a.isHighlighted&&this.setRowFocusType()),this._focus(e,!a.isHighlighted),this._focusInteractiveElement(e))},getFocusedView:function(){return this._focusedView},_getFocusedViewByElement:function(e){return this._getFocusedViewByCondition(function(t){return e.closest(t._$element).length})},_getFocusedViewByCondition:function(e){var t;return(0,m.each)(this._focusedViews,function(n,i){if(e(i))return t={viewIndex:n,view:i},!1}),t},isRowFocusType:function(){return"row"===this.focusType},isCellFocusType:function(){return"cell"===this.focusType},setRowFocusType:function(){this.option("focusedRowEnabled")&&(this.focusType="row")},setCellFocusType:function(){this.focusType="cell"},focusViewByName:function(e){var t=this._getFocusedViewByName(e);this._focusView(t.view,t.viewIndex)},setupFocusedView:function(){this.option("useKeyboard")&&!(0,f.isDefined)(this._focusedView)&&this.focusViewByName("rowsView")},_getFocusedViewByName:function(e){return this._getFocusedViewByCondition(function(t){return t.name===e})},optionChanged:function(e){switch(e.name){case"useKeyboard":case"keyboardNavigation":case"useLegacyKeyboardNavigation":e.handled=!0;break;default:this.callBase(e)}},dispose:function(){this.callBase(),this._focusedView=null,this._focusedViews=null,this._keyDownProcessor&&this._keyDownProcessor.dispose(),d.default.off(c.default.getDocument(),y.default.addNamespace(b.default.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler)},_fireFocusedCellChanging:function(e,t,n){var i=this,o=i.option("focusedColumnIndex"),a=i.option("focusedRowIndex"),r=i._getCellPosition(t),s=r?r.columnIndex:-1,l=r?r.rowIndex:-1,u={cellElement:t,prevColumnIndex:o,prevRowIndex:a,newColumnIndex:s,newRowIndex:l,rows:i.getController("data").getVisibleRows(),columns:i.getController("columns").getVisibleColumns(),event:e,isHighlighted:n||!1,cancel:!1};return this._canceledCellPosition=null,i.executeAction("onFocusedCellChanging",u),u.newColumnIndex===s&&u.newRowIndex===l||(u.$newCellElement=this._getCell({columnIndex:u.newColumnIndex,rowIndex:u.newRowIndex})),u.cancel&&(this._canceledCellPosition={rowIndex:l,columnIndex:s}),u},_fireFocusedCellChanged:function(e,t,n){var i=this,o=i.getController("data"),a=i.getView("rowsView").getCellIndex(e),r=this._getRowIndex(e&&e.parent()),s=i.getController("editing").isEditCell(r,a),l=o.items()[r];s||t===a&&n===r||(o=i.getController("data"),i.executeAction("onFocusedCellChanged",{cellElement:e,columnIndex:a,rowIndex:r,row:l,column:i.getController("columns").getVisibleColumns()[a]}))},_fireFocusedRowChanging:function(e,t){var n=this._getRowIndex(t),i=this.getController("data"),o=this.getVisibleRowIndex(),a=i.loadingOperationTypes(),r={rowElement:t,prevRowIndex:o,newRowIndex:n,event:e,rows:this.getController("data").getVisibleRows(),cancel:!1};return!i||i.isLoading()&&(a.reload||a.paging)?(r.cancel=!0,r):(this.option("focusedRowEnabled")&&(this.executeAction("onFocusedRowChanging",r),r.cancel||r.newRowIndex===n||(r.resetFocusedRow=r.newRowIndex<0,r.resetFocusedRow||this.setFocusedRowIndex(r.newRowIndex),r.rowIndexChanged=!0)),r)},_fireFocusedRowChanged:function(e){var t,n,i=this.option("focusedRowIndex");this.option("focusedRowEnabled")&&(i>=0&&(n=this.getController("data"),t=i>=0&&n.getVisibleRows()[i-n.getRowIndexOffset()]),this.executeAction("onFocusedRowChanged",{rowElement:e,rowIndex:i,row:t}))},_processCanceledEditCellPosition:function(e,t){if(this._canceledCellPosition){var n=this._canceledCellPosition.rowIndex===e&&this._canceledCellPosition.columnIndex===t;return this._canceledCellPosition=null,n}}});e.exports={defaultOptions:function(){return{useKeyboard:!0,useLegacyKeyboardNavigation:!1,keyboardNavigation:{enterKeyAction:"startEdit",enterKeyDirection:"none",editOnKeyPress:!1}}},controllers:{keyboardNavigation:H},extenders:{views:{rowsView:{renderFocusState:function(){var e,t=this._dataController,n=this.option("focusedRowIndex")||0,i=this.element();i&&!(0,_.focused)(i)&&i.attr("tabIndex",null),(n<0||n>=t.getVisibleRows().length)&&(n=0),e=this.getCellElements(n),this.option("useKeyboard")&&e&&this.updateFocusElementTabIndex(e)},updateFocusElementTabIndex:function(e){var t=this,n=e.eq(0).parent(),i=t.option("focusedColumnIndex"),a=t.option("tabIndex");(!i||i<0)&&(i=0),o(n)?n.attr("tabIndex",a):t._updateFocusedCellTabIndex(e,i)},_updateFocusedCellTabIndex:function(e,t){var n,i=this,o=i.option("tabIndex"),a=i.getController("keyboardNavigation"),r=a._focusedView,l=e?e.length:-1;if(a._focusedView=i,l>0){l<=t&&(t=l-1);for(var c=t;c<l;++c)if(n=(0,u.default)(e[c]),!a._isMasterDetailCell(n)&&a._isCellValid(n)&&s(n)){n.attr("tabIndex",o),a.setCellFocusType();break}}a._focusedView=r},renderDelayedTemplates:function(e){this.callBase.apply(this,arguments),e&&e.repaintChangesOnly||this.renderFocusState()},_renderCore:function(e){this.callBase(e),e&&e.repaintChangesOnly||this.renderFocusState()},_editCellPrepared:function(e){var t=this._getEditorInstance(e),n=this.getController("keyboardNavigation"),i=n&&n._isFastEditingStarted();t&&i&&this._handleEditingNavigationMode(t),this.callBase.apply(this,arguments)},_handleEditingNavigationMode:function(e){["downArrow","upArrow"].forEach(function(t){var n=e._supportedKeys()[t];e.registerKeyHandler(t,function(t){if("true"===e._input().attr("aria-expanded"))return n&&n.call(e,t)})}),e.registerKeyHandler("leftArrow",x.noop),e.registerKeyHandler("rightArrow",x.noop),"dxDateBox"===e.NAME&&e.option("useMaskBehavior")&&e.registerKeyHandler("enter",x.noop)},_getEditorInstance:function(e){var t=e.find(".dx-texteditor").eq(0),n=t.data&&t.data(),i=n&&n.dxComponents[0];return i&&n[i]}}},controllers:{editing:{editCell:function(e,t){var n=this.getController("keyboardNavigation");if(n._processCanceledEditCellPosition(e,t))return!1;var i=this.callBase(e,t);return i&&n.setupFocusedView(),i},editRow:function(e){var t=this.getController("keyboardNavigation"),n=this.option("focusedColumnIndex"),i=this._columnsController.getVisibleColumns()[n];(i&&i.type||this.option("editing.mode")===L)&&t._resetFocusedCell(),this.callBase(e)},addRow:function(e){this.getController("keyboardNavigation").setupFocusedView(),this.callBase.apply(this,arguments)},getFocusedCellInRow:function(e){var t=this.getController("keyboardNavigation"),n=this.callBase(e);return this.option("useKeyboard")&&t._focusedCellPosition.rowIndex===e&&(n=t._getFocusedCell()||n),n},_processCanceledEditingCell:function(){var e=this;this.closeEditCell().done(function(){e.getController("keyboardNavigation")._updateFocus()})},init:function(){this.callBase(),this._keyboardNavigationController=this.getController("keyboardNavigation")},closeEditCell:function(){return this.getController("keyboardNavigation")._fastEditingStarted=!1,this.callBase.apply(this,arguments)}},data:{_correctRowIndices:function(e){var t=this,n=t.getController("keyboardNavigation"),i=t.getController("editorFactory"),o=n._focusedCellPosition;if(t.callBase.apply(t,arguments),o&&o.rowIndex>=0){var a=e(o.rowIndex);a&&(o.rowIndex+=a,i.focus(i.focus()))}}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(5)),r=i(n(127)),s=i(n(15)),l=i(n(36)),u=n(1),c=n(0),d=n(3),h=i(n(31)),p=i(n(26)),f="content",g="content-fixed",_="dx-first-cell",m="dx-state-hover",v="dx-pointer-events-target",y="dx-pointer-events-none",b="transparent",x=function(e){var t=-1;return(0,d.each)(e,function(e,n){if(n.command===b)return t=e,!1}),t},w=function(e,t,n){var i,o=0;if(e&&t&&n)for(i=0;i<e.length;i++)e[i].command===b?o+=e[i].colspan:(t[o]<n[i]&&(t[o]=n[i]),o++);return t},C={init:function(){this.callBase(),this._isFixedTableRendering=!1,this._isFixedColumns=!1},_createCol:function(e){return this.callBase(e).toggleClass("dx-col-fixed",!(!this._isFixedTableRendering||!(e.fixed||e.command&&e.command!==b)))},_correctColumnIndicesForFixedColumns:function(e,t){var n=x(e),i=e[n].colspan,o=t&&t.columnIndices;o&&(t.columnIndices=o.map(function(e){if(e)return e.map(function(e){return e<n?e:e>=n+i?e-i+1:-1}).filter(function(e){return e>=0})}))},_renderTable:function(e){var t,n,i=this,o=i.getFixedColumns();if(i._isFixedColumns=!!o.length,n=i.callBase(e),i._isFixedColumns){i._isFixedTableRendering=!0;var a=e&&e.change,r=a&&a.columnIndices;i._correctColumnIndicesForFixedColumns(o,a),t=i._createTable(o),i._renderRows(t,(0,c.extend)({},e,{columns:o})),i._updateContent(t,a),r&&(a.columnIndices=r),i._isFixedTableRendering=!1}else i._fixedTableElement&&i._fixedTableElement.remove(),i._fixedTableElement=null;return n},_renderRow:function(e,t){var n,i,o=t.row.cells;if(this.callBase.apply(this,arguments),this._isFixedTableRendering&&o&&o.length){i=0,n=t.row.cells||[],o=o.slice(),t.row.cells=o;for(var a=0;a<n.length;a++)n[a].column&&n[a].column.command===b?i=(n[a].column.colspan||1)-1:o[a+i]=n[a]}},_createCell:function(e){var t,n,i,o=this,a=e.column,r=a&&a.command,s=e.rowType,u=o.callBase.apply(o,arguments);return(o._isFixedTableRendering||"filter"===s)&&(n=(t=o.getFixedColumns())[(i=x(t))-1]),o._isFixedTableRendering?r===b&&(u.addClass(y).toggleClass(_,0===i||n&&"expand"===n.command).toggleClass("dx-last-cell",t.length&&i===t.length-1),"freeSpace"!==s&&l.default.setEmptyText(u)):"filter"===s&&u.toggleClass(_,e.columnIndex===i),u},_wrapTableInScrollContainer:function(){var e=this.callBase.apply(this,arguments);return this._isFixedTableRendering&&e.addClass(this.addWidgetPrefix(g)+" "+v),e},_renderCellContent:function(e,t){var n,i,o,a,r=this,s=t.column;if(!r._isFixedTableRendering&&r._isFixedColumns&&(i=s.fixed||s.command,"group"===t.rowType&&(0,u.isDefined)(s.groupIndex)&&(i=!1,t.row.summaryCells&&t.row.summaryCells.length&&(n=r._columnsController.getVisibleColumns(),(a=r._getAlignByColumnCellCount?r._getAlignByColumnCellCount(s.colspan,{columns:n,row:t.row,isFixed:!0}):0)>0&&(o=x(r._columnsController.getFixedColumns()),i=n.length-a<o))),i)){if(r.option("legacyRendering")||s.command&&"buttons"!==s.type||"group"===t.rowType)return void e.html("&nbsp;").addClass(s.cssClass);e.addClass("dx-hidden-cell")}s.command!==b&&r.callBase(e,t)},_getCellElementsCore:function(e){var t,n,i,o,a=this,r=a.callBase(e),s=r.parent().hasClass("dx-group-row"),l="columnHeadersView"===a.name?e:void 0;return a._fixedTableElement&&r&&(n=a.getFixedColumns(l),o=a._getRowElements(a._fixedTableElement).eq(e).children("td"),(0,d.each)(o,function(e,u){s?r[e]&&"hidden"!==u.style.visibility&&(r[e]=u):(t=n[e])&&(t.command===b?o.eq(e).hasClass("dx-master-detail-cell")&&(r[e]=u||r[e]):(i=a._columnsController.getVisibleIndex(t.index,l),r[i]=u||r[i]))})),r},getColumnWidths:function(){var e,t=this,n=t.callBase(),i=t.getFixedColumns();return t._fixedTableElement&&n.length&&(e=t.callBase(t._fixedTableElement)),w(i,n,e)},_getTableElement:function(){return this._isFixedTableRendering?this._fixedTableElement:this.callBase()},_setTableElement:function(e){this._isFixedTableRendering?this._fixedTableElement=e.addClass(y):this.callBase(e)},getColumns:function(e,t){return t=t||this._getTableElement(),this._isFixedTableRendering||t&&t.closest("table").parent("."+this.addWidgetPrefix(g)).length?this.getFixedColumns(e):this.callBase(e,t)},getRowIndex:function(e){var t=this._fixedTableElement;return t&&t.find(e).length?this._getRowElements(t).index(e):this.callBase(e)},getTableElements:function(){var e=this.callBase.apply(this,arguments);return this._fixedTableElement&&(e=e.add(this._fixedTableElement)),e},getFixedColumns:function(e){return this._columnsController.getFixedColumns(e)},getFixedColumnsOffset:function(){var e,t,n={left:0,right:0};return this._fixedTableElement&&(n={left:(t=(e=this.getTransparentColumnElement()).position()).left,right:this.element().outerWidth(!0)-(e.outerWidth(!0)+t.left)}),n},getTransparentColumnElement:function(){return this._fixedTableElement&&this._fixedTableElement.find("."+y).first()},getFixedTableElement:function(){return this._fixedTableElement},isFixedColumns:function(){return this._isFixedColumns},_resizeCore:function(){this.callBase(),this.synchronizeRows()},setColumnWidths:function(e){var t;this.callBase.apply(this,arguments),this._fixedTableElement&&((this.option("legacyRendering")?e&&e.length&&!this.isScrollbarVisible(!0):e&&e.filter(function(e){return"auto"===e}).length)&&(t=this._columnsController.getVisibleColumns()),this.callBase(e,this._fixedTableElement,t,!0)),e&&e.length&&(0,u.isDefined)(this._columnsController.getVisibleColumns()[0].visibleWidth)&&this.synchronizeRows()},_createColGroup:function(e){if(!this.option("legacyRendering")&&this._isFixedTableRendering&&!this.option("columnAutoWidth")){var t=this._columnsController.getVisibleColumns();t.filter(function(e){return!e.width}).length&&(e=t)}return this.callBase(e)},_getClientHeight:function(e){var t=e.getBoundingClientRect&&e.getBoundingClientRect();return t&&t.height?t.height:e.clientHeight},synchronizeRows:function(){var e,t,n,i,o,a,r,s,l=this,u=[],c=[];if(l._isFixedColumns&&l._tableElement&&l._fixedTableElement&&(i=l._getClientHeight(l._tableElement.get(0)),o=l._getClientHeight(l._fixedTableElement.get(0)),a=l._getRowElements(l._tableElement),r=l._getRowElements(l._fixedTableElement),s=l._findContentElement(),i!==o)){for(s&&s.css("height",i),a.css("height",""),r.css("height",""),n=0;n<a.length;n++)u.push(l._getClientHeight(a.get(n))),c.push(l._getClientHeight(r.get(n)));for(n=0;n<a.length;n++)(e=u[n])>(t=c[n])?r.eq(n).css("height",e):e<t&&a.eq(n).css("height",t);s&&s.css("height","")}}},k=(0,c.extend)({},C,{_getRowVisibleColumns:function(e){return this._isFixedTableRendering?this.getFixedColumns(e):this.callBase(e)},getContextMenuItems:function(e){var t,n=this,i=e.column,o=n.option("columnFixing"),a=n.callBase(e);return e.row&&"header"===e.row.rowType&&i&&i.allowFixing&&(t=function(e){switch(e.itemData.value){case"none":n._columnsController.columnOption(i.index,"fixed",!1);break;case"left":n._columnsController.columnOption(i.index,{fixed:!0,fixedPosition:"left"});break;case"right":n._columnsController.columnOption(i.index,{fixed:!0,fixedPosition:"right"})}},(a=a||[]).push({text:o.texts.fix,beginGroup:!0,items:[{text:o.texts.leftPosition,value:"left",disabled:i.fixed&&(!i.fixedPosition||"left"===i.fixedPosition),onItemClick:t},{text:o.texts.rightPosition,value:"right",disabled:i.fixed&&"right"===i.fixedPosition,onItemClick:t}]},{text:o.texts.unfix,value:"none",disabled:!i.fixed,onItemClick:t})),a},setScrollerSpacing:function(e){var t=this,n=t.option("rtlEnabled");t.callBase(e),t.element().children("."+this.addWidgetPrefix(g)).css(n?{paddingLeft:e}:{paddingRight:e})},getFixedColumnElements:function(e){var t,n,i,o=this;return(0,u.isDefined)(e)?this._fixedTableElement&&this._getRowElements(this._fixedTableElement).eq(e).children():(t=o.getColumnElements(),i=o.getTransparentColumnElement(),t&&i&&i.length&&(n=x(o.getFixedColumns()),t.splice(n,i.get(0).colSpan,i.get(0))),t)},getColumnWidths:function(){var e,t=this,n=t.callBase(),i=t.getFixedColumnElements(),o=t.getFixedColumns();return t._fixedTableElement&&(e=i&&i.length?t._getWidths(i):t.callBase(t._fixedTableElement)),w(o,n,e)}}),S=(0,c.extend)({},C,{_detachHoverEvents:function(){this._fixedTableElement&&a.default.off(this._fixedTableElement,"mouseover mouseout",".dx-data-row"),this._tableElement&&a.default.off(this._tableElement,"mouseover mouseout",".dx-data-row")},_attachHoverEvents:function(){var e=this,t=function(t){a.default.on(t,"mouseover mouseout",".dx-data-row",e.createAction(function(t){var n=t.event,i=e.getRowIndex((0,o.default)(n.target).closest(".dx-row")),a="mouseover"===n.type;i>=0&&(e._tableElement&&e._getRowElements(e._tableElement).eq(i).toggleClass(m,a),e._fixedTableElement&&e._getRowElements(e._fixedTableElement).eq(i).toggleClass(m,a))}))};e._fixedTableElement&&e._tableElement&&(t(e._fixedTableElement),t(e._tableElement))},_findContentElement:function(){var e,t,n,i=this,s=i.addWidgetPrefix(f),l=i.element(),u=h.default.mozilla?60:0;return l&&i._isFixedTableRendering?(e=l.children("."+s),t=i.getScrollable(),!e.length&&t&&(e=(0,o.default)("<div>").addClass(s),a.default.on(e,"scroll",function(e){clearTimeout(i._fixedScrollTimeout),i._fixedScrollTimeout=setTimeout(function(){n=(0,o.default)(e.target).scrollTop(),t.scrollTo({y:n})},u)}),a.default.on(e,r.default.name,function(e){if(t&&(n=t.scrollTop(),t.scrollTo({y:n-e.delta}),t.scrollTop()>0&&t.scrollTop()+t.clientHeight()<t.scrollHeight()+i.getScrollbarWidth()))return!1}),e.appendTo(l)),e):i.callBase()},_updateScrollable:function(){this.callBase();var e=this.getScrollable(),t=e&&e.scrollOffset().top;this._updateFixedTablePosition(t)},_renderContent:function(e,t){return this._isFixedTableRendering?e.empty().addClass(this.addWidgetPrefix(f)+" "+this.addWidgetPrefix(g)+" "+v).append(t):this.callBase(e,t)},_getGroupCellOptions:function(e){return this._isFixedTableRendering?this.callBase((0,c.extend)({},e,{columns:this._columnsController.getVisibleColumns()})):this.callBase(e)},_renderGroupedCells:function(e,t){return this.callBase(e,(0,c.extend)({},t,{columns:this._columnsController.getVisibleColumns()}))},_renderGroupSummaryCells:function(e,t){this._isFixedTableRendering?this.callBase(e,(0,c.extend)({},t,{columns:this._columnsController.getVisibleColumns()})):this.callBase(e,t)},_hasAlignByColumnSummaryItems:function(e,t){var n=this.callBase.apply(this,arguments),i=t.columns[e];return t.isFixed?i.fixed&&(n||"right"===i.fixedPosition):n&&!i.fixed},_renderGroupSummaryCellsCore:function(e,t,n,i){var o,a,r;this._isFixedTableRendering&&(t.isFixed=!0,r=this._getAlignByColumnCellCount(n,t),t.isFixed=!1,o=t.columns.length-r,t=(0,c.extend)({},t,{columns:this.getFixedColumns()}),o<(a=x(t.columns))?(r-=t.columns[a].colspan-1||0,n-=t.columns[a].colspan-1||0):i>0&&e.css("visibility","hidden"),i=r),this.callBase(e,t,n,i)},_getSummaryCellIndex:function(e,t){var n;return this._isFixedTableRendering?(e>(n=x(t))&&(e+=t[n].colspan-1),e):this.callBase.apply(this,arguments)},_renderCore:function(e){this._detachHoverEvents(),this.callBase(e);var t=this._isFixedColumns;this.element().toggleClass("dx-fixed-columns",t),this.option("hoverStateEnabled")&&t&&this._attachHoverEvents()},setRowsOpacity:function(e,t){this.callBase(e,t);var n=this._getRowElements(this._fixedTableElement);this._setRowsOpacityCore(n,this.getFixedColumns(),e,t)},optionChanged:function(e){this.callBase(e),"hoverStateEnabled"===e.name&&this._isFixedColumns&&(e.value?this._attachHoverEvents():this._detachHoverEvents())},getCellIndex:function(e){var t,n=this._fixedTableElement,i=0;return n&&n.find(e).length?(t=this.getFixedColumns(),(0,d.each)(t,function(t,n){return t!==e[0].cellIndex&&(n.colspan?void(i+=n.colspan):void i++)}),i):this.callBase.apply(this,arguments)},_updateFixedTablePosition:function(e,t){if(this._fixedTableElement&&this._tableElement){var n,i=this.getController("editorFactory");this._fixedTableElement.parent().scrollTop(e),t&&((n=i.focus())&&i.focus(n))}},setScrollerSpacing:function(e,t){var n=this,i={marginBottom:0},o=n.element().children("."+this.addWidgetPrefix(g));o.length&&n._fixedTableElement&&(o.css(i),n._fixedTableElement.css(i),i[n.option("rtlEnabled")?"marginLeft":"marginRight"]=e,i.marginBottom=t,(n._scrollable&&n._scrollable.option("useNative")?o:n._fixedTableElement).css(i))},_getElasticScrollTop:function(e){var t=void 0,n=void 0,i=0,o=this.getScrollbarWidth(!0);return e.scrollOffset.top<0?i=-e.scrollOffset.top:e.reachedBottom&&(t=this._findContentElement(),n=e.component._container(),i=Math.max(t.height()+o-n.height(),0)-e.scrollOffset.top),i},_applyElasticScrolling:function(e){if(this._fixedTableElement){var t=this._getElasticScrollTop(e);0!==Math.ceil(t)?p.default.move(this._fixedTableElement,{top:t}):this._fixedTableElement.css("transform","")}},_handleScroll:function(e){this._updateFixedTablePosition(e.scrollOffset.top,!0),this._applyElasticScrolling(e),this.callBase(e)},_updateContentPosition:function(e){this.callBase.apply(this,arguments),e||this._updateFixedTablePosition(this._scrollTop)},_afterRowPrepared:function(e){this._isFixedTableRendering||this.callBase(e)},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._fixedScrollTimeout)}}),I=C;e.exports={defaultOptions:function(){return{columnFixing:{enabled:!1,texts:{fix:s.default.format("dxDataGrid-columnFixingFix"),unfix:s.default.format("dxDataGrid-columnFixingUnfix"),leftPosition:s.default.format("dxDataGrid-columnFixingLeftPosition"),rightPosition:s.default.format("dxDataGrid-columnFixingRightPosition")}}}},extenders:{views:{columnHeadersView:k,rowsView:S,footerView:I},controllers:function(){var e=function(e,t,n){var i=x(t),o=e.length-t.length;return(0,d.each)(n,function(e,t){t.index>i&&(t.columnIndex+=o,t.index+=o)}),n};return{draggingHeader:{_generatePointsByColumns:function(t){var n,i=t.columns,o=t.targetDraggingPanel;return o&&"headers"===o.getName()&&o.isFixedColumns()&&t.sourceColumn.fixed?(t.rowIndex||(t.columnElements=o.getFixedColumnElements(0)),t.columns=o.getFixedColumns(t.rowIndex),n=this.callBase(t),e(i,t.columns,n),n):this.callBase(t)},_pointCreated:function(e,t,n,i){var o,a=this.callBase.apply(this,arguments),r=this._columnHeadersView.getTransparentColumnElement();return!a&&"headers"===n&&r&&r.length?(o=r.get(0).getBoundingClientRect(),i&&i.fixed?"right"===i.fixedPosition?e.x<o.right:e.x>o.left:e.x<o.left||e.x>o.right):a}},columnsResizer:{_generatePointsByColumns:function(){var t=this,n=t._columnsController,i=n&&t._columnsController.getVisibleColumns(),o=n&&t._columnsController.getFixedColumns(),a=t._columnHeadersView.getFixedColumnElements(),r=[];t.callBase(),a&&a.length>0&&(r=l.default.getPointsByColumns(a,function(e){return t._pointCreated(e,a.length,o)}),t._pointsByFixedColumns=e(i,o,r))},_pointCreated:function(e,t,n){var i,o,a="widget"===this.option("columnResizingMode");return e.index>0&&e.index<t&&(i=n[e.columnIndex-1]||{},o=n[e.columnIndex]||{},i.fixed||o.fixed)?(e.columnIndex-=1,!((i.allowResizing||i.command===b)&&(a||o.allowResizing||o.command===b))):this.callBase.apply(this,arguments)},_getTargetPoint:function(e,t,n){var i,o=this._columnHeadersView.getTransparentColumnElement();return o&&o.length&&(t<=(i=o.get(0).getBoundingClientRect()).left||t>=i.right)?this.callBase(this._pointsByFixedColumns,t,n):this.callBase(e,t,n)}},keyboardNavigation:{_scrollToElement:function(e){var t=this.getFocusedView();this.callBase(e,t&&t.getFixedColumnsOffset())}}}}()}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){return e._columnsController.getColumnId(t)}function a(e){return e.find("td:not(.dx-datagrid-hidden-column):not([class*='dx-command-'])")}function r(e,t){var n,i=(0,s.default)(e),o=t.component.getController("adaptiveColumns");"data"===t.rowType?(n=(0,s.default)("<span>").addClass(o.addWidgetPrefix(A)),l.default.on(n,u.default.addNamespace(c.default.name,S),o.createAction(function(){o.toggleExpandAdaptiveDetailRow(t.key)})),n.appendTo(i)):_.default.setEmptyText(i)}var s=i(n(2)),l=i(n(5)),u=i(n(9)),c=i(n(19)),d=i(n(1)),h=i(n(31)),p=i(n(42)),f=i(n(38)),g=i(n(140)),_=i(n(36)),m=i(n(30)),v=n(7),y=n(4),b=n(3),x=n(0),w="columnHeadersView",C="rowsView",k=[w,C,"footerView"],S="dxDataGridAdaptivity",I="adaptiveHidden",T="detailAdaptive",D="dx-field-item-content",E="hidden-column",A="adaptive-more",O="dx-command-adaptive",P="dx-command-adaptive-hidden",B="adaptive",M="row",R=f.default.ViewController.inherit({_isRowEditMode:function(){return this._editingController.getEditMode()===M},_isItemModified:function(e,t){var n=this._columnsController.getVisibleIndex(e.column.index),i=this._dataController.getRowIndexByKey(t.key),o=this._dataController.items()[i+1];return o&&o.modifiedValues&&d.default.isDefined(o.modifiedValues[n])},_renderFormViewTemplate:function(e,t,n){var i,o=this,a=e.column,r=o.createAction(function(){l.default.trigger(n,c.default.name)}),s=a.calculateCellValue(t.data),u=_.default.getDisplayValue(a,s,t.data,t.rowType),h=_.default.formatValue(u,a);if(a.allowEditing&&o.option("useKeyboard")&&(n.attr("tabIndex",o.option("tabIndex")),l.default.off(n,"focus",r),l.default.on(n,"focus",r)),a.cellTemplate){var p=(0,x.extend)({},t,{value:s,displayValue:u,text:h,column:a});o._rowsView.renderTemplate(n,a.cellTemplate,p,!!n.closest((0,v.getWindow)().document).length)}else i=n.get(0),a.encodeHtml?i.textContent=h:i.innerHTML=h,n.addClass("dx-adaptive-item-text"),d.default.isDefined(h)&&""!==h||n.html("&nbsp;"),o._isRowEditMode()||o._isItemModified(e,t)&&n.addClass("dx-item-modified");o.getView("rowsView")._cellPrepared(n,t)},_getTemplate:function(e,t){var n=this,i=e.column,o=this.getController("editing");return function(a,r){var l=n._isItemEdited(e),u=(0,s.default)(r),c=n._columnsController.getVisibleIndex(i.visibleIndex),d=(0,x.extend)({},t);d.value=t.row.values[c],l||i.showEditorAlways?o.renderFormEditTemplate(d,e,a.component,u,!l):(d.column=i,d.columnIndex=c,d.watch&&d.watch(function(){return d.column.selector(d.data)},function(t){d.value=t,u.contents().remove(),n._renderFormViewTemplate(e,d,u)}),n._renderFormViewTemplate(e,d,u))}},_isVisibleColumnsValid:function(e){return!(e<2||e.length-function(){var t,n=0;for(t=0;t<e.length;t++)e[t].command&&n++;return n}()<=1)},_calculatePercentWidths:function(e,t){var n=this,i=0;return t.forEach(function(t,o){e[o]!==I&&(i+=n._getItemPercentWidth(t))}),i},_isPercentWidth:function(e){return d.default.isString(e)&&"%"===e.slice(-1)},_isColumnHidden:function(e){return this._hiddenColumns.filter(function(t){return t.index===e.index}).length>0},_getAverageColumnsWidth:function(e,t,n){var i=this,o=0,a=0;return t.forEach(function(r){if(!i._isColumnHidden(r)){var s=r.width;d.default.isDefined(s)&&!isNaN(parseFloat(s))?o+=i._isPercentWidth(s)?i._calculatePercentWidth({visibleIndex:r.visibleIndex,columnsCount:t.length,columnsCanFit:n,bestFitWidth:r.bestFitWidth,columnWidth:s,containerWidth:e}):parseFloat(s):a++}}),(e-o)/a},_calculateColumnWidth:function(e,t,n,i){var a,r=o(this,e),s=this._columnsController.columnOption(r,"width"),l=this._columnsController.columnOption(r,"bestFitWidth"),u=n.length;if(s&&"auto"!==s){if(!this._isPercentWidth(s))return s;a=this._calculatePercentWidth({visibleIndex:e.visibleIndex,columnsCount:u,columnsCanFit:i,bestFitWidth:l,columnWidth:s,containerWidth:t})}else{a=this.option("columnAutoWidth")||e.command?l:this._getAverageColumnsWidth(t,n,i)}return a},_calculatePercentWidth:function(e){var t=e.visibleIndex<e.columnsCount-1&&e.columnsCanFit,n=e.containerWidth*parseFloat(e.columnWidth)/100,i=e.columnsCanFit&&n<e.bestFitWidth?e.bestFitWidth:n;return t?e.containerWidth*parseFloat(e.columnWidth)/100:i},_getNotTruncatedColumnWidth:function(e,t,n,i){var a,r=o(this,e),s=this._columnsController.columnOption(r,"width"),l=this._columnsController.columnOption(r,"bestFitWidth");return s&&"auto"!==s&&!this._isPercentWidth(s)?s:(a=this._calculateColumnWidth(e,t,n,i))<l?null:a},_getItemPercentWidth:function(e){var t=0;return e.width&&this._isPercentWidth(e.width)&&(t=parseFloat(e.width)),t},_getCommandColumnsWidth:function(){var e=this,t=e._columnsController.getVisibleColumns(),n=0;return(0,b.each)(t,function(t,i){(i.index<0||i.command)&&(n+=e._columnsController.columnOption(o(e,i),"bestFitWidth")||0)}),n},_isItemEdited:function(e){if(this.isFormEditMode())return!1;if(!this._isRowEditMode()){var t=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,n=this._columnsController.getVisibleIndex(e.column.index);return this._editingController.isEditCell(t,n)}var i=this._editingController.getEditRowKey();return!!(0,y.equalByValue)(i,this._dataController.adaptiveExpandedKey())||void 0},_getFormItemsByHiddenColumns:function(e){var t=[];return(0,b.each)(e,function(e,n){t.push({column:n,name:n.name,dataField:n.dataField,visibleIndex:n.visibleIndex})}),t},_getAdaptiveColumnVisibleIndex:function(e){var t;for(t=0;t<e.length;t++)if(e[t].command===B)return t},_hideAdaptiveColumn:function(e,t){var n=this._getAdaptiveColumnVisibleIndex(t);d.default.isDefined(n)&&(e[n]=I,this._addCssClassToColumn(P,n))},_removeCssClassFromColumn:function(e){var t,n;for(t=0;t<k.length;t++)(n=this.getView(k[t]))&&n.isVisible()&&n.element()&&n.element().find("."+e).removeClass(e)},_removeCssClassesFromColumns:function(){this._removeCssClassFromColumn(P),this._removeCssClassFromColumn(this.addWidgetPrefix(E))},_isCellValid:function(e){return!e.hasClass("dx-master-detail-cell")},_addCssClassToColumn:function(e,t){var n=this;k.forEach(function(i){var o=n.getView(i);o&&n._addCssClassToViewColumn(o,e,t)})},_addCssClassToViewColumn:function(e,t,n){var i,o,a,r,s=e.name,l=this._columnsController.getVisibleColumns()[n],u=this._editingController&&this._editingController.getEditFormRowIndex();if(e&&e.isVisible()&&l){i=e.getRowsCount();var c=e._getRowElements();for(o=0;o<i;o++)o===u&&s===C||(r=s===w?this._columnsController.getVisibleIndex(l.index,o):n)>=0&&(a=c.eq(o).children().eq(r),this._isCellValid(a)&&a.addClass(t))}},isFormEditMode:function(){var e=this._editingController.getEditMode();return"form"===e||"popup"===e},hideRedundantColumns:function(e,t,n){var i,a=this;if(this._hiddenColumns=[],a._isVisibleColumnsValid(t)&&n.length){var r,s,l,u,c,d=0,h=a.component.$element(),p=h.width()-a._getCommandColumnsWidth(),f=function(){var e=this;return t.filter(function(t){return!t.command&&0===e._hiddenColumns.filter(function(e){return e.dataField===t.dataField}).length})}.bind(this),g=f(),_=g.length;do{for(c=!1,d=0,s=(r=a._calculatePercentWidths(e,t))<100&&0!==r,l=0;l<t.length;l++){i=t[l];var m=a._getNotTruncatedColumnWidth(i,p,g,s),v=o(a,i),y=a._columnsController.columnOption(v,"width"),b=a._columnsController.columnOption(v,"minWidth"),x=a._columnsController.columnOption(v,"bestFitWidth");if(e[l]!==I){if(!m&&!i.command&&!i.fixed){c=!0;break}y&&"auto"!==y||(m=Math.max(x||0,b||0)),(i.command!==B||u)&&(d+=m)}else u=!0}if(c=c||d>h.width()){var w=n.pop(),C=a._columnsController.getVisibleIndex(w.index);p+=a._calculateColumnWidth(w,p,g,s),a._addCssClassToColumn(a.addWidgetPrefix(E),C),e[C]=I,this._hiddenColumns.push(w),g=f()}}while(c&&g.length>1&&n.length);_===g.length&&a._hideAdaptiveColumn(e,t)}else a._hideAdaptiveColumn(e,t)},getItemContentByColumnIndex:function(e){var t,n,i;for(n=0;n<this._$itemContents.length;n++)if((i=(t=this._$itemContents.eq(n)).data("dx-form-item"))&&i.column&&this._columnsController.getVisibleIndex(i.column.index)===e)return t},toggleExpandAdaptiveDetailRow:function(e,t){this.isFormEditMode()&&this._editingController.isEditing()||this.getController("data").toggleExpandAdaptiveDetailRow(e,t)},createFormByHiddenColumns:function(e,t){var n=this,i=(0,s.default)(e),o={items:n._getFormItemsByHiddenColumns(n._hiddenColumns),formID:"dx-"+new p.default},a=m.default.isMaterial()?{colCount:2}:{};this.executeAction("onAdaptiveDetailRowPreparing",{formOptions:o}),n._$itemContents=null,n._form=n._createComponent((0,s.default)("<div>").appendTo(i),g.default,(0,x.extend)(a,o,{customizeItem:function(e){var i=e.column||n._columnsController.columnOption(e.name||e.dataField);i&&(e.label=e.label||{},e.label.text=e.label.text||i.caption,e.column=i,e.template=n._getTemplate(e,t,n.updateForm.bind(n))),o.customizeItem&&o.customizeItem.call(this,e)},onContentReady:function(e){o.onContentReady&&o.onContentReady.call(this,e),n._$itemContents=i.find("."+D)}}))},hasAdaptiveDetailRowExpanded:function(){return d.default.isDefined(this._dataController.adaptiveExpandedKey())},updateForm:function(e){this.hasAdaptiveDetailRowExpanded()&&this._form&&d.default.isDefined(this._form._contentReadyAction)&&(e&&e.length?this._form.option("items",this._getFormItemsByHiddenColumns(e)):this._form.repaint())},updateHidingQueue:function(e){var t,n,i=this,o=e.filter(function(e){return e.visible&&!e.type&&!e.fixed&&!(d.default.isDefined(e.groupIndex)&&e.groupIndex>=0)});if(i._hidingColumnsQueue=[],i.option("allowColumnResizing")&&"widget"===i.option("columnResizingMode"))return i._hidingColumnsQueue;for(n=0;n<o.length;n++)d.default.isDefined(o[n].hidingPriority)&&o[n].hidingPriority>=0&&(t=!0,i._hidingColumnsQueue[o[n].hidingPriority]=o[n]);if(t)i._hidingColumnsQueue.reverse();else if(i.option("columnHidingEnabled"))for(n=0;n<o.length;n++){var a=i._columnsController.getVisibleIndex(o[n].index);i._hidingColumnsQueue[a]=o[n]}return i._hidingColumnsQueue=i._hidingColumnsQueue.filter(Object),i._hidingColumnsQueue},getHiddenColumns:function(){return this._hiddenColumns},hasHiddenColumns:function(){return this._hiddenColumns.length>0},getHidingColumnsQueue:function(){return this._hidingColumnsQueue},init:function(){var e=this;e._columnsController=e.getController("columns"),e._dataController=e.getController("data"),e._rowsView=e.getView("rowsView"),e._columnsController.addCommandColumn({type:B,command:B,visible:!0,adaptiveHidden:!0,cssClass:O,width:"auto",cellTemplate:r,fixedPosition:"right"}),e._columnsController.columnsChanged.add(function(){var t=!!e.updateHidingQueue(e._columnsController.getColumns()).length;e._columnsController.columnOption("command:adaptive","adaptiveHidden",!t,!0)}),e._editingController=e.getController("editing"),e._hidingColumnsQueue=[],e._hiddenColumns=[],e.createAction("onAdaptiveDetailRowPreparing"),e.callBase()},optionChanged:function(e){"columnHidingEnabled"===e.name&&this._columnsController.columnOption("command:adaptive","adaptiveHidden",!e.value),this.callBase(e)},publicMethods:function(){return["isAdaptiveDetailRowExpanded","expandAdaptiveDetailRow","collapseAdaptiveDetailRow"]},isAdaptiveDetailRowExpanded:function(e){return this._dataController.adaptiveExpandedKey()&&(0,y.equalByValue)(this._dataController.adaptiveExpandedKey(),e)},expandAdaptiveDetailRow:function(e){this.hasAdaptiveDetailRowExpanded()||this.toggleExpandAdaptiveDetailRow(e)},collapseAdaptiveDetailRow:function(){this.hasAdaptiveDetailRowExpanded()&&this.toggleExpandAdaptiveDetailRow()}});e.exports={defaultOptions:function(){return{columnHidingEnabled:!1,onAdaptiveDetailRowPreparing:null}},controllers:{adaptiveColumns:R},extenders:{views:{rowsView:{_getCellTemplate:function(e){var t=this,n=e.column;return e.rowType===T&&"detail"===n.command?function(e,n){t._adaptiveColumnsController.createFormByHiddenColumns((0,s.default)(e),n)}:t.callBase(e)},_createRow:function(e){var t=this.callBase(e);return e&&e.rowType===T&&e.key===this._dataController.adaptiveExpandedKey()&&t.addClass("dx-adaptive-detail-row"),t},_renderCells:function(e,t){this.callBase(e,t);var n=this._adaptiveColumnsController.getHidingColumnsQueue().length,i=this._adaptiveColumnsController.getHiddenColumns().length;n&&!i&&a(e).last().addClass("dx-last-data-cell")},_getColumnIndexByElementCore:function(e){var t=e.closest("."+D);if(t.length&&t.closest(this.component.$element()).length){var n=t.length?t.first().data("dx-form-item"):null;return n&&n.column&&this._columnsController.getVisibleIndex(n.column.index)}return this.callBase(e)},_cellPrepared:function(e,t){this.callBase.apply(this,arguments),t.row.rowType!==T&&t.column.visibleWidth===I&&e.addClass(this.addWidgetPrefix(E))},_getCellElement:function(e,t){var n=this._dataController.items()[e];return n&&n.rowType===T?this._adaptiveColumnsController.getItemContentByColumnIndex(t):this.callBase(e,t)},getContextMenuItems:function(e){if(e.row&&"detailAdaptive"===e.row.rowType){var t=this.component.getView("columnHeadersView"),n=(0,s.default)(e.targetElement).closest(".dx-field-item-label").next().data("dx-form-item");return e.column=n?n.column:e.column,t.getContextMenuItems&&t.getContextMenuItems(e)}return this.callBase&&this.callBase(e)},isClickableElement:function(e){return!!this.callBase&&this.callBase(e)||!!e.closest("."+O).length},init:function(){this.callBase(),this._adaptiveColumnsController=this.getController("adaptiveColumns")}}},controllers:{export:{_updateColumnWidth:function(e,t){this.callBase(e,e.visibleWidth===I?e.bestFitWidth:t)}},columnsResizer:{_pointCreated:function(e,t,n){var i=this.callBase(e,t,n),o=n[e.columnIndex]||{},a=this._getNextColumnIndex(e.columnIndex),r=n[a]||{},s=a!==e.columnIndex+1&&r.command,l=o.visibleWidth===I||s;return i||l},_getNextColumnIndex:function(e){for(var t=this._columnsController.getVisibleColumns(),n=this.callBase(e);t[n]&&t[n].visibleWidth===I;)n++;return n}},draggingHeader:{_pointCreated:function(e,t,n,i){var o=this.callBase(e,t,n,i),a=(t[e.columnIndex-1]||{}).visibleWidth===I;return o||a}},editing:{_isRowEditMode:function(){return this.getEditMode()===M},_getFormEditItemTemplate:function(e,t){return this.getEditMode()!==M&&"detailAdaptive"===e.rowType?(e.columnIndex=this._columnsController.getVisibleIndex(t.index),this.getColumnTemplate(e)):this.callBase(e,t)},_closeEditItem:function(e){var t=e.closest("."+D),n=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,i=t.length?t.first().data("dx-form-item"):null,o=i&&i.column&&this._columnsController.getVisibleIndex(i.column.index);this.isEditCell(n,o)||this.callBase(e)},_beforeUpdateItems:function(e,t){if(!this._adaptiveController.isFormEditMode()&&this._adaptiveController.hasHiddenColumns()){var n=this._dataController.items(),i=n[t],o=_.default.getIndexByKey(this._dataController.adaptiveExpandedKey(),n);this._isForceRowAdaptiveExpand=!this._adaptiveController.hasAdaptiveDetailRowExpanded(),o>=0&&t>o&&this._editRowIndex--,o>=0&&e.push(o+1),e.push(t+1),this._dataController.adaptiveExpandedKey(i.key)}},_afterInsertRow:function(e){this.callBase(e),this._adaptiveController.hasHiddenColumns()&&(this._adaptiveController.toggleExpandAdaptiveDetailRow(e.key,this.isRowEditMode()),this._isForceRowAdaptiveExpand=!0)},_collapseAdaptiveDetailRow:function(){this._isRowEditMode()&&this._isForceRowAdaptiveExpand&&(this._adaptiveController.collapseAdaptiveDetailRow(),this._isForceRowAdaptiveExpand=!1)},_cancelEditAdaptiveDetailRow:function(){this._adaptiveController.hasHiddenColumns()&&this._collapseAdaptiveDetailRow()},_afterSaveEditData:function(){this.callBase(),this._isRowEditMode()&&this._adaptiveController.hasHiddenColumns()&&this.getController("validating").validate(!0)&&this._cancelEditAdaptiveDetailRow()},_beforeCancelEditData:function(){this.callBase(),this._cancelEditAdaptiveDetailRow()},_getRowIndicesForCascadeUpdating:function(e){var t=this.callBase.apply(this,arguments);return this._adaptiveController.isAdaptiveDetailRowExpanded(e.key)&&t.push(e.rowType===T?e.rowIndex-1:e.rowIndex+1),t},_beforeCloseEditCellInBatchMode:function(e){var t,n=this._dataController._adaptiveExpandedKey;n&&((t=_.default.getIndexByKey(n,this._dataController.items()))>-1&&e.unshift(t))},editRow:function(e){this._adaptiveController.isFormEditMode()&&this._adaptiveController.collapseAdaptiveDetailRow(),this.callBase(e)},deleteRow:function(e){var t=this._dataController.getKeyByRowIndex(e);"batch"===this.getEditMode()&&this._adaptiveController.isAdaptiveDetailRowExpanded(t)&&this._adaptiveController.collapseAdaptiveDetailRow(),this.callBase(e)},init:function(){this.callBase(),this._adaptiveController=this.getController("adaptiveColumns")}},resizing:{_needBestFit:function(){return this.callBase()||!!this._adaptiveColumnsController.getHidingColumnsQueue().length},_updateScrollableForIE:function(){var e=this;h.default.msie&&parseInt(h.default.version)<=11&&setTimeout(function(){e.getView("rowsView")._updateScrollable()})},_correctColumnWidths:function(e,t){var n,i=this._adaptiveColumnsController,o=this.option("columnAutoWidth"),a=i.getHiddenColumns(),r=i.updateHidingQueue(this._columnsController.getColumns());return i.hideRedundantColumns(e,t,r),n=i.getHiddenColumns(),i.hasAdaptiveDetailRowExpanded()&&a.length!==n.length&&i.updateForm(n),!n.length&&i.collapseAdaptiveDetailRow(),o&&r.length&&!n.length&&this._updateScrollableForIE(),this.callBase.apply(this,arguments)},_toggleBestFitMode:function(e){e&&this._adaptiveColumnsController._removeCssClassesFromColumns(),this.callBase(e)},_needStretch:function(){var e=this._adaptiveColumnsController;return this.callBase.apply(this,arguments)||e.getHidingColumnsQueue().length||e.hasHiddenColumns()},init:function(){this._adaptiveColumnsController=this.getController("adaptiveColumns"),this.callBase()}},data:{_processItems:function(e,t){var n,i,o=this;return e=o.callBase.apply(o,arguments),"loadingAll"!==t&&d.default.isDefined(o._adaptiveExpandedKey)?((i=_.default.getIndexByKey(o._adaptiveExpandedKey,e))>=0?(n=e[i],e.splice(i+1,0,{visible:!0,rowType:T,key:n.key,data:n.data,modifiedValues:n.modifiedValues,inserted:n.inserted,values:n.values})):"refresh"===t&&(o._adaptiveExpandedKey=void 0),e):e},_getRowIndicesForExpand:function(e){var t,n=this.callBase.apply(this,arguments);return this.getController("adaptiveColumns").isAdaptiveDetailRowExpanded(e)&&(t=n[n.length-1],n.push(t+1)),n},adaptiveExpandedKey:function(e){return d.default.isDefined(e)?void(this._adaptiveExpandedKey=e):this._adaptiveExpandedKey},toggleExpandAdaptiveDetailRow:function(e,t){var n=this,i=_.default.getIndexByKey(n._adaptiveExpandedKey,n._items),o=_.default.getIndexByKey(e,n._items);i>=0&&i===o&&!t&&(e=void 0,o=-1),n._adaptiveExpandedKey=e,i>=0&&i++,o>=0&&o++,n.updateItems({changeType:"update",rowIndices:[i,o]})},init:function(){this.callBase(),this._adaptiveExpandedKey=void 0}},editorFactory:{_getFocusCellSelector:function(){return this.callBase()+", .dx-adaptive-detail-row .dx-field-item > .dx-field-item-content"},_getTooltipsSelector:function(){return this.callBase()+", .dx-field-item-content ."+this.addWidgetPrefix("revert-tooltip")}},columns:{_isColumnVisible:function(e){return this.callBase(e)&&!e.adaptiveHidden}},keyboardNavigation:{_isCellValid:function(e){return this.callBase(e)&&!e.hasClass(this.addWidgetPrefix(E))},_processNextCellInMasterDetail:function(e){if(this.callBase(e),!this._isInsideEditForm(e)&&e){l.default.on(e,"focus",function t(){l.default.off(e,"focus",t),l.default.trigger(e,"dxclick")})}},_handleTabKeyOnMasterDetailCell:function(e,t){var n=this.callBase(e,t),i=this._getFocusedCell();if(!n&&i){var o=i.parent(),r=a(o),s="next"===t?r.last():r.first(),l=o.get(0).rowIndex,u=this._adaptiveController,c=this._dataController.getKeyByRowIndex("next"===t?l:l-1),d=i&&s&&i.get(0)===s.get(0);return u.isAdaptiveDetailRowExpanded(c)&&d}return n},init:function(){this.callBase(),this._adaptiveController=this.getController("adaptiveColumns")}}}}}},function(e,t,n){var i=n(7),o=n(368),a={_renderCore:function(){var e=this,t=e._scrollLeft;e.callBase.apply(e,arguments),e._columnsController.isVirtualMode()&&t>=0&&(e._scrollLeft=0,e.scrollTo({left:t}))}},r=function(){var e=function(e){return e.map(function(e){return e.visibleWidth||parseFloat(e.width)||50})};return{init:function(){var e=this;e.callBase(),e._beginPageIndex=0,e._endPageIndex=0,e._position=0,e._virtualVisibleColumns={}},resetColumnsCache:function(){this.callBase(),this._virtualVisibleColumns={}},getBeginPageIndex:function(t){for(var n=this.getVisibleColumns(void 0,!0),i=e(n),o=0,a=0;a<i.length;a++){if(o>=t)return Math.floor(a/this.getColumnPageSize());o+=i[a]}return 0},getTotalWidth:function(){var e=this.option("width");return"number"==typeof e?e:this.getController("resizing")._lastWidth||this.component.$element().outerWidth()},getEndPageIndex:function(t){var n=this.getVisibleColumns(void 0,!0),i=e(n),o=0;t+=this.getTotalWidth();for(var a=0;a<i.length;a++){if(o>=t)return Math.ceil(a/this.getColumnPageSize());o+=i[a]}return Math.ceil(i.length/this.getColumnPageSize())},getColumnPageSize:function(){return this.option("scrolling.columnPageSize")},_fireColumnsChanged:function(){var e=new Date;this.columnsChanged.fire({optionNames:{all:!0,length:1},changeTypes:{columns:!0,length:1}}),this._renderTime=new Date-e},setScrollPosition:function(e){var t=this,n=t.option("scrolling.columnRenderingThreshold");t._renderTime>n?(clearTimeout(t._changedTimeout),t._changedTimeout=setTimeout(function(){t._setScrollPositionCore(e)},t.option("scrolling.timeout"))):t._setScrollPositionCore(e)},isVirtualMode:function(){return(0,i.hasWindow)()&&"virtual"===this.option("scrolling.columnRenderingMode")},resize:function(){this._setScrollPositionCore(this._position)},_setScrollPositionCore:function(e){var t=this;if(t.isVirtualMode()){var n=t.getBeginPageIndex(e),i=t.getEndPageIndex(e),o=e<t._position?t._beginPageIndex>n:t._endPageIndex<i;t._position=e,o&&(t._beginPageIndex=n,t._endPageIndex=i,t._fireColumnsChanged())}},getFixedColumns:function(e,t){var n=this.callBase(e);if(this.isVirtualMode()&&!t&&n.length){var i=n.map(function(e){return e.command}).indexOf("transparent");return n[i].colspan=this.getVisibleColumns().length-this.callBase().length+1,n}return n},getVisibleColumns:function(t,n){if(n||!this.isVirtualMode())return this.callBase(t);this._beginPageIndex||this._endPageIndex||(this._beginPageIndex=this.getBeginPageIndex(this._position),this._endPageIndex=this.getEndPageIndex(this._position));var i=this._beginPageIndex,a=this._endPageIndex,r=t+"-"+i+"-"+a;if(this._virtualVisibleColumns[r])return this._virtualVisibleColumns[r];var s=this.callBase(),l=this.getRowCount(),u=this.getColumnPageSize(),c=i*u,d=a*u,h=this.getFixedColumns(void 0,!0),p=h.map(function(e){return e.command}).indexOf("transparent"),f=h.length?p:0,g=s.slice(0,f),_=s.slice(f,c),m=e(_).reduce(function(e,t){return e+t},0);m||(c=0);var v=h.length?h.length-p-1:0,y=s.slice(s.length-v),b=s.slice(d,s.length-v),x=e(b).reduce(function(e,t){return e+t},0);if(x||(d=s.length),l>1&&"number"==typeof t){for(var w=[],C=0;C<l;C++)w.push(this.callBase(C));g=(0,o.createColumnsInfo)(w,0,g.length)[t]||[],y=(0,o.createColumnsInfo)(w,s.length-y.length,s.length)[t]||[],s=(0,o.createColumnsInfo)(w,c,d)[t]||[]}else s=s.slice(c,d);return m&&(s.unshift({command:"virtual",width:m}),s=g.concat(s)),x&&(s.push({command:"virtual",width:x}),s=s.concat(y)),this._virtualVisibleColumns[r]=s,s},dispose:function(){clearTimeout(this._changedTimeout),this.callBase.apply(this,arguments)}}}();e.exports={defaultOptions:function(){return{scrolling:{columnRenderingMode:"standard",columnPageSize:5,columnRenderingThreshold:300}}},extenders:{controllers:{columns:r},views:{columnHeadersView:a,footerView:a,rowsView:{_resizeCore:function(){this.callBase.apply(this,arguments),this._columnsController.resize()},_handleScroll:function(e){var t=this,n=this.getScrollable(),i=e.scrollOffset.left;t.callBase.apply(t,arguments),t.option("rtlEnabled")&&n&&(i=n.$content().width()-n.$element().width()-i),t._columnsController.setScrollPosition(i)}}}}}},function(e,t,n){function i(e,t,n,o,a,r){r=r||[],(o=o||[])[n=n||0]=o[n]||0;var s=e[n],l=r[n]+1||0,u=0;if(s){for(var c=l;c<s.length;c++){var d=s[c],h=c+o[n],p=d.colspan||1;if(i(e,t,n+(d.rowspan||1),o,p,r),o[n]+=p-1,u+=p,d.rowspan)for(var f=n+1;f<n+d.rowspan;f++)o[f]=o[f]||0,o[f]+=d.colspan||1;if(!1===t(d,h,n,c))break;if(void 0!==a&&u>=a)break}r[n]=c}}var o=n(0);t.foreachColumnInfo=i,t.createColumnsInfo=function(e,t,n){var a=[];i(e,function(e,i,r){var s,l=e,u=l.colspan||1,c=i+u-1>=t&&i<n;if(a[r]=a[r]||[],c)i<t?(s=u-(t-i),i=t):s=u,i+s>n&&(s=n-i),s!==u&&(l=(0,o.extend)({},l,{colspan:s})),a[r].push(l);else if(i>n)return!1});for(var r=0;r<a.length;r++)a[r]=a[r]||[];return a}},function(e,t,n){var i=n(0);e.exports={_getEmptyCell:function(){return{text:"",value:void 0,colspan:1,rowspan:1}},_defaultSetter:function(e){return e||1},_cloneItem:function(e){return(0,i.extend)({},e,this._getEmptyCell())},_prepareItems:function(e){function t(e,o,a){if((i[e]=i[e]||[])[o]=a,a.colspan>1||a.rowspan>1){for(var r=n._cloneItem(a),s=1;s<a.colspan;s++)t(e,o+s,r);for(var l=1;l<a.rowspan;l++)for(var u=0;u<a.colspan;u++)t(e+l,o+u,r)}}for(var n=this,i=[],o=(e[0]||[]).reduce(function(e,t){return e+n._defaultSetter(t.colspan)},0),a=function(e){var t=0,i=0;return function(){var o=e[t]||[],a=o[i++];return i>=o.length&&(t++,i=0),a&&(a.colspan=n._defaultSetter(a.colspan),a.rowspan=n._defaultSetter(a.rowspan)),a}}(e),r=a(),s=0;r;){for(var l=0;l<o&&r;l++)i[s]&&i[s][l]||(t(s,l,r),l+=r.colspan-1,r=a());s++}return i}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(38)),r=n(3),s=n(36),l=n(4),u=n(1),c=n(6),d="dx-row-focused",h=".dx-row."+d,p="dx-cell-focus-disabled";t.FocusController=a.default.ViewController.inherit({init:function(){this._dataController=this.getController("data"),this._keyboardController=this.getController("keyboardNavigation")},optionChanged:function(e){"focusedRowIndex"===e.name?(this._focusRowByIndex(e.value),e.handled=!0):"focusedRowKey"===e.name?(this._focusRowByKey(e.value),e.handled=!0):"focusedColumnIndex"===e.name?e.handled=!0:"focusedRowEnabled"===e.name?e.handled=!0:this.callBase(e)},_focusRowByIndex:function(e){this.option("focusedRowEnabled")&&((e=void 0!==e?e:this.option("focusedRowIndex"))<0?this._resetFocusedRow():this._focusRowByIndexCore(e))},_focusRowByIndexCore:function(e){var t=this,n=this.getController("data"),i=n.pageSize(),o=function(){if(t._isValidFocusedRowIndex(e)){var i=Math.min(e-n.getRowIndexOffset(),n.items().length-1),o=n.getKeyByRowIndex(i);void 0===o||t.isRowFocused(o)||t.option("focusedRowKey",o)}};if(i>=0)if(this._isLocalRowIndex(e))o();else{var a=Math.floor(e/n.pageSize());(0,c.when)(n.pageIndex(a),n.waitReady()).done(function(){o()})}},_isLocalRowIndex:function(e){var t=this.getController("data");if(this.getController("keyboardNavigation")._isVirtualScrolling()){var n=Math.floor(e/t.pageSize()),i=t.virtualItemsCount(),o=i?i.begin:-1,a=t.getVisibleRows().length+t.getRowIndexOffset(),r=Math.ceil(a/t.pageSize());return o<=e&&r>n}return!0},_setFocusedRowKeyByIndex:function(e){var t=this.getController("data");if(this._isValidFocusedRowIndex(e)){var n=Math.min(e-t.getRowIndexOffset(),t.items().length-1),i=t.getKeyByRowIndex(n);void 0===i||this.isRowFocused(i)||this.option("focusedRowKey",i)}},_focusRowByKey:function(e){void 0===e?this._resetFocusedRow():this.navigateToRow(e)},_resetFocusedRow:function(){void 0===this.option("focusedRowKey")&&this.option("focusedRowIndex")<0||(this.option("focusedRowKey",void 0),this.getController("keyboardNavigation").setFocusedRowIndex(-1),this.option("focusedRowIndex",-1),this.getController("data").updateItems({changeType:"updateFocusedRow",focusedRowKey:void 0}))},_isValidFocusedRowIndex:function(e){var t=this.getController("data").getVisibleRows()[e];return!t||"data"===t.rowType||"group"===t.rowType},publicMethods:function(){return["navigateToRow","isRowFocused"]},navigateToRow:function(e){var t=this,n=this.getController("data"),i=this.option("focusedRowIndex"),o=new c.Deferred;if(void 0===e||!n.dataSource())return o.reject().promise();var a=t._getFocusedRowIndexByKey(e);return i>=0&&i===a?t._triggerUpdateFocusedRow(e,o):n.getPageIndexByKey(e).done(function(i){return i<0?void o.resolve(-1):void(i===n.pageIndex()?n.reload().done(function(){t.isRowFocused(e)?o.resolve(t._getFocusedRowIndexByKey(e)):t._triggerUpdateFocusedRow(e,o)}).fail(o.reject):n.pageIndex(i).done(function(){t._triggerUpdateFocusedRow(e,o)}).fail(o.reject))}).fail(o.reject),o.promise()},_triggerUpdateFocusedRow:function(e,t){var n=this.getController("data"),i=this._getFocusedRowIndexByKey(e);if(this._isValidFocusedRowIndex(i)){if(this.getController("keyboardNavigation").setFocusedRowIndex(i),this.option("focusedRowEnabled"))n.updateItems({changeType:"updateFocusedRow",focusedRowKey:e});else{var o=n.getRowIndexByKey(e);this._scrollToFocusedRow(this.getView("rowsView").getRow(o))}t&&t.resolve(i)}else t&&t.resolve(-1)},_getFocusedRowIndexByKey:function(e){var t=this.getController("data"),n=t.getRowIndexByKey(e);return n>=0?n+t.getRowIndexOffset():-1},_focusRowByKeyOrIndex:function(){var e=this,t=this.option("focusedRowKey"),n=this.option("focusedRowIndex"),i=this.getController("keyboardNavigation"),o=this.getController("data");if(void 0!==t){var a=o.getRowIndexByKey(t);a>=0?(i._isVirtualScrolling()&&(n=a+o.getRowIndexOffset()),i.setFocusedRowIndex(n),this._triggerUpdateFocusedRow(t)):this.navigateToRow(t).done(function(t){n>=0&&t<0&&e._focusRowByIndex()})}else n>=0&&this.getController("focus")._focusRowByIndex(n)},isRowFocused:function(e){if(void 0!==this.option("focusedRowKey"))return(0,l.equalByValue)(e,this.option("focusedRowKey"))},updateFocusedRow:function(e){var t,n,i=this,a=i._dataController.getRowIndexByKey(e.focusedRowKey),s=i.getView("rowsView");(0,r.each)(s.getTableElements(),function(r,s){n=(0,o.default)(s),i._clearPreviousFocusedRow(n,a);var l=0===r;t=i._prepareFocusedRow(e.items[a],n,a),l&&i.getController("keyboardNavigation")._fireFocusedRowChanged(t)})},_clearPreviousFocusedRow:function(e,t){var n=e.find(h);n.removeClass(d).removeClass(p).removeAttr("tabindex"),n.children("td").removeAttr("tabindex"),0!==t&&(0,o.default)(this.getView("rowsView").getRowElement(0)).removeClass(p).removeAttr("tabIndex")},_prepareFocusedRow:function(e,t,n){var i,a=this.option("tabindex")||0;return!e||"data"!==e.rowType&&"group"!==e.rowType||((i=(0,o.default)(this.getView("rowsView")._getRowElements(t).eq(n))).addClass(d).attr("tabindex",a),this._scrollToFocusedRow(i)),i},_scrollToFocusedRow:function(e){var t,n=this.getView("rowsView"),i=n.element();if(i&&(t=e||i.find(h)).length>0){var o,a=t[0].getBoundingClientRect(),r=n.element()[0].getBoundingClientRect();a.bottom>r.bottom?o=a.bottom-r.bottom:a.top<r.top&&(o=a.top-r.top),o&&n.scrollTo({y:n._scrollTop+o})}}}),e.exports={defaultOptions:function(){return{focusedRowEnabled:!1,focusedRowKey:void 0,focusedRowIndex:-1,focusedColumnIndex:-1}},controllers:{focus:t.FocusController},extenders:{controllers:{keyboardNavigation:{init:function(){var e=this.option("focusedRowIndex"),t=this.option("focusedColumnIndex");this.option("focusedRowEnabled")&&(this.createAction("onFocusedRowChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedRowChanged",{excludeValidators:["disabled","readOnly"]})),this.createAction("onFocusedCellChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanged",{excludeValidators:["disabled","readOnly"]}),this.callBase(),this.setRowFocusType(),this._focusedCellPosition={},(0,u.isDefined)(e)&&(this._focusedCellPosition.rowIndex=this.option("focusedRowIndex")),(0,u.isDefined)(t)&&(this._focusedCellPosition.columnIndex=this.option("focusedColumnIndex"))},setFocusedRowIndex:function(e){this.callBase(e);var t=this.getController("data").getVisibleRows()[e];t&&t.inserted||this.option("focusedRowIndex",e)},setFocusedColumnIndex:function(e){this.callBase(e),this.option("focusedColumnIndex",e)},_escapeKeyHandler:function(e,t){return t||!this.option("focusedRowEnabled")?void this.callBase(e,t):void(this.isCellFocusType()&&(this.setRowFocusType(),this._focus(this._getCellElementFromTarget(e.originalEvent.target),!0)))},_updateFocusedCellPosition:function(e,t){var n=this.option("focusedRowIndex"),i=this.option("focusedColumnIndex");this.callBase(e,t),this._fireFocusedCellChanged(e,i,n)}},editorFactory:{renderFocusOverlay:function(e,t){var n,i=this.getController("keyboardNavigation"),o=this.option("focusedRowEnabled"),a=this.getController("editing"),r="row"===i._getElementType(e);o&&i.isRowFocusType()&&!a.isEditing()?o&&r&&!e.hasClass(d)&&(n=i.getFirstValidCellInRow(e),i.focus(n)):this.callBase(e,t)}},columns:{getSortDataSourceParameters:function(){var e=this,t=this.callBase.apply(this,arguments),n=this.getController("data"),i=n._dataSource,o=n.store(),a=o&&o.key(),r=i&&i.remoteOperations()||{},s=Object.keys(r).every(function(e){return!r[e]});if(this.option("focusedRowEnabled")&&a){var l=(a=Array.isArray(a)?a:[a]).filter(function(t){return!e.columnOption(t,"sortOrder")});l.length&&(t=t||[],s?t.push({selector:i.getDataIndexGetter(),desc:!1}):l.forEach(function(e){return t.push({selector:e,desc:!1})}))}return t}},data:{_applyChange:function(e){if(!e||"updateFocusedRow"!==e.changeType)return this.callBase.apply(this,arguments)},_fireChanged:function(e){var t;this.option("focusedRowEnabled")&&this._dataSource&&((t="update"===e.changeType&&e.repaintChangesOnly&&e.changeTypes&&e.changeTypes.indexOf("remove")>=0)&&this.callBase(e),("refresh"===e.changeType||t)&&this.processUpdateFocusedRow());t||this.callBase(e)},processUpdateFocusedRow:function(){var e=this._prevPageIndex,t=this._dataSource.operationTypes(),n=this.getController("focus"),i=t&&t.reload,o=this.getController("keyboardNavigation")._isVirtualScrolling(),a=this.option("focusedRowKey"),r=void 0!==e&&e!==this.pageIndex();this._prevPageIndex=this.pageIndex(),i&&void 0!==a?n.navigateToRow(a).done(function(e){e<0&&n._focusRowByIndex()}):r?!o&&this.option("focusedRowIndex")>=0&&n._focusRowByIndex():n._focusRowByKeyOrIndex()},getPageIndexByKey:function(e){var t=this,n=new c.Deferred;return t.getGlobalRowIndexByKey(e).done(function(e){n.resolve(e>=0?Math.floor(e/t.pageSize()):-1)}).fail(n.reject),n.promise()},getGlobalRowIndexByKey:function(e){return this._dataSource.group()?this._calculateGlobalRowIndexByGroupedData(e):this._calculateGlobalRowIndexByFlatData(e)},_calculateGlobalRowIndexByFlatData:function(e,t,n){var i=this,o=new c.Deferred,a=i._dataSource,r=i._generateFilterByKey(e);return a.load({filter:i._concatWithCombinedFilter(r),skip:0,take:1}).done(function(s){s.length>0?(r=i._generateOperationFilterByKey(e,s[0],n),a.load({filter:i._concatWithCombinedFilter(r,t),skip:0,take:1,requireTotalCount:!0}).done(function(e,t){o.resolve(t.totalCount)})):o.resolve(-1)}),o.promise()},_concatWithCombinedFilter:function(e,t){var n=this.getCombinedFilter();return(0,s.combineFilters)([e,n,t])},_generateOperationFilterByKey:function(e,t,n){var i=this,o=i._dataSource,a=i._generateFilterByKey(e,"<"),r=i._columnsController.getSortDataSourceParameters(!o.remoteOperations().filtering);if(n){var s=i._columnsController.getGroupDataSourceParameters(!o.remoteOperations().filtering);s&&(r=r?s.concat(r):s)}return r&&r.slice().reverse().forEach(function(e){var n,o,r=e.selector;o=(n="function"==typeof r?r:i._columnsController.columnOption(r,"selector"))?n(t):t[r],a=[[r,"=",o],"and",a],a=[[r,e.desc?">":"<",o],"or",a]}),a},_generateFilterByKey:function(e,t){var n,i=this._dataSource.key(),o=[];if(t||(t="="),Array.isArray(i))for(var a=0;a<i.length;++a)(n=e[i[a]])&&(o.length>0&&o.push("and"),o.push([i[a],t,n]));else o=[i,t,e];return o}}},views:{rowsView:{_createRow:function(e){var t=this.callBase(e);return this.option("focusedRowEnabled")&&e&&this.getController("focus").isRowFocused(e.key)&&t.addClass(d),t},_checkRowKeys:function(e){if(this.callBase.apply(this,arguments),this.option("focusedRowEnabled")&&this.option("dataSource")){var t=this._dataController.store();t&&!t.key()&&this._dataController.fireError("E1042","Row focusing")}},_update:function(e){"updateFocusedRow"===e.changeType?this.option("focusedRowEnabled")&&this.getController("focus").updateFocusedRow(e):this.callBase(e)},updateFocusElementTabIndex:function(e){this.option("focusedRowEnabled")?this._setFocusedRowElementTabIndex():this.callBase(e)},_setFocusedRowElementTabIndex:function(){var e=this,t=e.option("focusedRowKey"),n=e.option("tabIndex"),i=e._dataController.getRowIndexByKey(t),o=e.option("focusedColumnIndex"),a=e.getCellElements(i>=0?i:0).eq(0).parent(),r=e.component.getController("data")._dataSource,s=r&&r.operationTypes();e._scrollToFocusOnResize=e._scrollToFocusOnResize||function(){e.getController("focus")._scrollToFocusedRow(a),e.resizeCompleted.remove(e._scrollToFocusOnResize)},a.length&&(a.attr("tabIndex",n),i>=0&&(o<0&&(o=0),i+=e.getController("data").getRowIndexOffset(),e.getController("keyboardNavigation").setFocusedCellPosition(i,o),s&&!s.paging&&(e.resizeCompleted.remove(e._scrollToFocusOnResize),e.resizeCompleted.add(e._scrollToFocusOnResize))))}}}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(28)),a=i(n(18)),r=i(n(4)),s=i(n(1)),l=n(3),u=i(n(20)),c=n(0),d=i(n(36)),h=i(n(68)),p=i(n(41)),f=i(n(329)),g=n(6),_=n(81),m=function(e){return"fullBranch"===e.option("filterMode")},v=f.default.inherit({_createKeyGetter:function(){var e=this.getKeyExpr();return u.default.compileGetter(e)},_createKeySetter:function(){var e=this.getKeyExpr();return s.default.isFunction(e)?e:u.default.compileSetter(e)},_createParentIdGetter:function(){return u.default.compileGetter(this.option("parentIdExpr"))},createParentIdSetter:function(){var e=this.option("parentIdExpr");return s.default.isFunction(e)?e:u.default.compileSetter(e)},_createItemsGetter:function(){return u.default.compileGetter(this.option("itemsExpr"))},_createHasItemsGetter:function(){var e=this.option("hasItemsExpr");return e&&u.default.compileGetter(e)},_createHasItemsSetter:function(){var e=this.option("hasItemsExpr");return s.default.isFunction(e)?e:e&&u.default.compileSetter(e)},_updateIndexByKeyObject:function(e){var t=this;t._indexByKey={},(0,l.each)(e,function(e,n){t._indexByKey[n.key]=e})},_calculateHasItems:function(e,t){var n,i=this,o=t.storeLoadOptions.parentIds,a=m(i);return i._hasItemsGetter&&(o||!t.storeLoadOptions.filter||a)&&(n=i._hasItemsGetter(e.data)),void 0===n&&(n=!(i._isChildrenLoaded[e.key]||!t.remoteOperations.filtering||!o&&!a)||(t.loadOptions.filter&&!t.remoteOperations.filtering&&a?e.children.length:e.hasChildren)),!!n},_createVisibleItemsByNodes:function(e,t){for(var n=[],i=0;i<e.length;i++)e[i].visible&&n.push(e[i]),(this.isRowExpanded(e[i].key,t)||!e[i].visible)&&e[i].hasChildren&&e[i].children.length&&(n=n.concat(this._createVisibleItemsByNodes(e[i].children,t)));return n},_convertItemToNode:function(e,t,n){var i,o,a=this._keyGetter(e),r=this._parentIdGetter(e);return i=n[r=s.default.isDefined(r)?r:t]=n[r]||{key:r,children:[]},(o=n[a]=n[a]||{key:a,children:[]}).data=e,o.parent=i,o},_createNodesByItems:function(e,t){var n,i=this,o=i.option("rootValue"),a={},r=i._nodeByKey={};if(t)for(n=0;n<t.length;n++)a[this._keyGetter(t[n])]=!0;for(n=0;n<e.length;n++){var s=i._convertItemToNode(e[n],o,r);if(void 0===s.key)return;s.visible=!t||!!a[s.key],s.parent&&s.parent.children.push(s)}var l=r[o]||{key:o,children:[]};return l.level=-1,l},_convertDataToPlainStructure:function(e,t,n){var i,o,a,r;if(this._itemsGetter&&!e.isConverted){n=n||[];for(var l=0;l<e.length;l++)o=d.default.createObjectWithChanges(e[l]),void 0===(i=this._keyGetter(o))&&(i=n.length+1,this._keySetter(o,i)),this._parentIdSetter(o,void 0===t?this.option("rootValue"):t),n.push(o),(r=this._itemsGetter(o))&&r.length&&(this._convertDataToPlainStructure(r,i,n),a=this.option("itemsExpr"),s.default.isFunction(a)||delete o[a]);return n.isConverted=!0,n}return e},_createIdFilter:function(e,t){for(var n=[],i=0;i<t.length;i++)n.push([e,"=",t[i]]);return d.default.combineFilters(n,"or")},_customizeRemoteOperations:function(e,t,n){this.callBase.apply(this,arguments),e.remoteOperations.paging=!1;var i=!1;this.option("autoExpandAll")&&(e.remoteOperations.sorting=!1,e.remoteOperations.filtering=!1,this._lastLoadOptions&&(!n.filtering||e.storeLoadOptions.filter)||e.isCustomLoading||(i=!0)),e.isCustomLoading||(this._isReload=this._isReload||t||n.reload,e.cachedStoreData||(this._isChildrenLoaded={}),this.option("expandNodesOnFiltering")&&(n.filtering||this._isReload&&e.storeLoadOptions.filter)&&(e.storeLoadOptions.filter?i=!0:e.collapseVisibleNodes=!0)),e.expandVisibleNodes=i},_getParentIdsToLoad:function(e){for(var t=[],n=0;n<e.length;n++){var i=this.getNodeByKey(e[n]);i&&i.hasChildren&&!i.children.length&&t.push(e[n])}return t},_handleDataLoading:function(e){var t,n,i=this.option("rootValue"),o=this.option("parentIdExpr"),a=e.storeLoadOptions.parentIds;a&&(e.isCustomLoading=!1),this.callBase.apply(this,arguments),e.remoteOperations.filtering&&!e.isCustomLoading&&(m(this)&&e.cachedStoreData||!e.storeLoadOptions.filter)&&(n=e.collapseVisibleNodes?[]:this.option("expandedRowKeys"),a=[i].concat(n).concat(a||[]),(t=e.data?this._getParentIdsToLoad(a):a).length&&(e.cachedPagingData=void 0,e.data=void 0,e.mergeStoreLoadData=!0),e.storeLoadOptions.parentIds=t,e.storeLoadOptions.filter=this._createIdFilter(o,t))},_generateInfoToLoad:function(e,t){var n,i,o,a=this,r={},s={},l=[],u=a.option("rootValue");for(o=0;o<e.length;o++)r[n=t?a._parentIdGetter(e[o]):a._keyGetter(e[o])]=!0;for(o=0;o<e.length;o++)n=t?a._keyGetter(e[o]):a._parentIdGetter(e[o]),i=t?a.isRowExpanded(n):n!==u,r[n]||s[n]||!i||(s[n]=!0,l.push(n));return{keyMap:s,keys:l}},_loadParentsOrChildren:function(e,t,n){function i(t){return m&&(l._cachedStoreData=l._cachedStoreData.concat(t)),e.concat(t)}var o,a,r,s=this,l=this,u=l._generateInfoToLoad(e,n),d=u.keys,f=u.keyMap,_=new g.Deferred,m=t.remoteOperations.filtering,v=l.option("maxFilterLengthInRequest"),y=m?t.storeLoadOptions:t.loadOptions;if(!d.length)return _.resolve(e);var b=d.map(function(e){return s.getNodeByKey(e)}).filter(function(e){return e});return b.length===d.length&&(n&&(b=b.reduce(function(e,t){return e.concat(t.children)},[])),b.length)?l._loadParentsOrChildren(i(b.map(function(e){return e.data})),t,n):(a=n?l.option("parentIdExpr"):l.getKeyExpr(),o=l._createIdFilter(a,d),encodeURI(JSON.stringify(o)).length>v&&(o=function(e){return f[l._keyGetter(e)]},r=m),y=(0,c.extend)({},y,{filter:r?null:o}),(t.fullData?new h.default(t.fullData):l._dataSource.store()).load(y).done(function(a){a.length?(r&&(a=(0,p.default)(a).filter(o).toArray()),l._loadParentsOrChildren(i(a),t,n).done(_.resolve).fail(_.reject)):_.resolve(e)}).fail(_.reject),_)},_loadParents:function(e,t){return this._loadParentsOrChildren(e,t)},_loadChildrenIfNeed:function(e,t){return m(this)?this._loadParentsOrChildren(e,t,!0):(0,g.when)(e)},_updateHasItemsMap:function(e){var t=e.storeLoadOptions.parentIds;if(t)for(var n=0;n<t.length;n++)this._isChildrenLoaded[t[n]]=!0},_getKeyInfo:function(){return{key:function(){return"key"},keyOf:function(e){return e.key}}},_applyBatch:function(e){var t=this,n=[];e.forEach(function(e){"insert"===e.type?n=n.concat(t._applyInsert(e)):"remove"===e.type?n=n.concat(t._applyRemove(e)):"update"===e.type&&n.push({type:e.type,key:e.key,data:{data:e.data}})}),this.callBase(n)},_setHasItems:function(e,t){var n=this._hasItemsSetter;e.hasChildren=t,n&&e.data&&n(e.data,t)},_applyInsert:function(e){var t=this,n=[],i=t.parentKeyOf(e.data),o=t.getNodeByKey(i);if(o){var a=t.option("rootValue"),r=t._convertItemToNode(e.data,a,t._nodeByKey);if(r.hasChildren=!1,r.level=o.level+1,r.visible=!0,o.children.push(r),t._isChildrenLoaded[r.key]=!0,t._setHasItems(o,!0),(!o.parent||t.isRowExpanded(o.key))&&void 0!==e.index){var s=t.items().indexOf(o)+1;s+=e.index>=0?Math.min(e.index,o.children.length):o.children.length,n.push({type:e.type,data:r,index:s})}}return n},_applyRemove:function(e){var t=[],n=this.getNodeByKey(e.key),i=n.parent;if(i){var o=i.children.indexOf(n);o>=0&&(i.children.splice(o,1),i.children.length||this._setHasItems(i,!1),t.push(e),t=t.concat(this.getChildNodeKeys(e.key).map(function(t){return{type:e.type,key:t}})))}return t},_handleDataLoaded:function(e){var t=e.data=this._convertDataToPlainStructure(e.data);!e.remoteOperations.filtering&&e.loadOptions.filter&&(e.fullData=(0,_.queryByOptions)((0,p.default)(e.data),{sort:e.loadOptions&&e.loadOptions.sort}).toArray()),this._updateHasItemsMap(e),this.callBase(e),t.isConverted&&this._cachedStoreData&&(this._cachedStoreData.isConverted=!0)},_fillNodes:function(e,t,n,i){var a=m(this);i=i||0;for(var r=0;r<e.length;r++){var s=e[r],l=!1;this._fillNodes(e[r].children,t,n,i+1),s.level=i,s.hasChildren=this._calculateHasItems(s,t),s.visible&&s.hasChildren&&(a?s.children.filter(function(e){return e.visible}).length?l=!0:s.children.length&&o.default.foreachNodes(s.children,function(e){e.visible=!0}):l=!0,t.expandVisibleNodes&&l&&n.push(s.key)),(s.visible||s.hasChildren)&&(s.parent.hasChildren=!0)}},_processTreeStructure:function(e,t){var n=e.data,i=e.storeLoadOptions.parentIds,o=[];if(i&&i.length||this._isReload){if(e.fullData&&e.fullData.length>e.data.length&&(n=e.fullData,t=t||e.data),this._rootNode=this._createNodesByItems(n,t),!this._rootNode)return void(e.data=(new g.Deferred).reject(a.default.Error("E1046",this.getKeyExpr())));this._fillNodes(this._rootNode.children,e,o),this._isNodesInitializing=!0,(e.collapseVisibleNodes||o.length)&&this.option("expandedRowKeys",o),this.executeAction("onNodesInitialized",{root:this._rootNode}),this._isNodesInitializing=!1,this._isReload=!1}n=this._createVisibleItemsByNodes(this._rootNode.children,e),e.data=n,this._totalItemsCount=n.length},_handleDataLoadedCore:function(e){var t,n=this,i=e.data,o=n.callBase,a=e.storeLoadOptions.filter||e.loadOptions.filter,r=n.option("filterMode"),s=e.storeLoadOptions.parentIds,l=a&&(!s||!s.length)&&"standard"!==r;if(!e.isCustomLoading){if(l){var u=e.data=new g.Deferred;return"matchOnly"===r&&(t=i),n._loadParents(i,e).done(function(i){n._loadChildrenIfNeed(i,e).done(function(i){e.data=i,n._processTreeStructure(e,t),o.call(n,e),u.resolve(e.data)})}).fail(u.reject)}n._processTreeStructure(e)}n.callBase(e)},init:function(e,t){this.callBase.apply(this,arguments);var n=this.option("dataStructure");this._keyGetter=this._createKeyGetter(),this._parentIdGetter=this._createParentIdGetter(),this._hasItemsGetter=this._createHasItemsGetter(),this._hasItemsSetter=this._createHasItemsSetter(),"tree"===n&&(this._itemsGetter=this._createItemsGetter(),this._keySetter=this._createKeySetter(),this._parentIdSetter=this.createParentIdSetter()),this._nodeByKey={},this._isChildrenLoaded={},this._totalItemsCount=0,this.createAction("onNodesInitialized")},getKeyExpr:function(){var e=this.store(),t=e&&e.key(),n=this.option("keyExpr");if(s.default.isDefined(t)&&s.default.isDefined(n)&&!r.default.equalByValue(t,n))throw a.default.Error("E1044");return t||n||"id"},keyOf:function(e){return this._keyGetter&&this._keyGetter(e)},parentKeyOf:function(e){return this._parentIdGetter&&this._parentIdGetter(e)},getRootNode:function(){return this._rootNode},totalItemsCount:function(){return this._totalItemsCount},isRowExpanded:function(e,t){if(t){var n=t.isExpandedByKey;return n||(n=t.isExpandedByKey={},this.option("expandedRowKeys").forEach(function(e){n[e]=!0})),!!n[e]}return d.default.getIndexByKey(e,this.option("expandedRowKeys"),null)>=0},_changeRowExpandCore:function(e){var t=this.option("expandedRowKeys"),n=d.default.getIndexByKey(e,t,null);n<0?t.push(e):t.splice(n,1),this.option("expandedRowKeys",t)},changeRowExpand:function(e){return this._changeRowExpandCore(e),this._isNodesInitializing?(new g.Deferred).resolve():this.load()},getNodeByKey:function(e){if(this._nodeByKey)return this._nodeByKey[e]},getNodeLeafKeys:function(){var e,t=this,n=[];return(t._rootNode?[t._rootNode.key]:[]).forEach(function(i){(e=t.getNodeByKey(i))&&o.default.foreachNodes([e],function(e){!e.children.length&&n.push(e.key)})}),n},getChildNodeKeys:function(e){var t=this.getNodeByKey(e),n=[];return t&&o.default.foreachNodes(t.children,function(e){n.push(e.key)}),n},loadDescendants:function(e,t){var n,i=this,o=new g.Deferred,a=i.remoteOperations();return e=s.default.isDefined(e)?Array.isArray(e)?e:[e]:i.getNodeLeafKeys(),a.filtering&&e.length?((n=i._dataSource._createStoreLoadOptions()).parentIds=e,i.load(n).done(function(){if(!t){var n=function(e,t){var n=[];return t.forEach(function(t){var i=e.getNodeByKey(t);i&&i.children.forEach(function(e){n.push(e.key)})}),n}(i,e);if(n.length)return void i.loadDescendants(n,t).done(o.resolve).fail(o.reject)}o.resolve()}).fail(o.reject),o.promise()):o.resolve()},forEachNode:function(){var e,t,n=[];1===arguments.length?(e=arguments[0],n=(t=this.getRootNode())&&t.children||[]):2===arguments.length&&(e=arguments[1],n=arguments[0],n=Array.isArray(n)?n:[n]),o.default.foreachNodes(n,e)}});e.exports={extend:function(e){v=v.inherit(e)},create:function(e){return new v(e)}}},function(e,t,n){function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var o=n(2),a=n(7).getWindow(),r=n(14),s=n(43).format,l=n(35).errors,u=n(4).noop,c=n(0).extend,d=n(1),h=n(3),p=n(13).inArray,f=n(79),g=n(6),_=g.when,m=g.Deferred,v=n(275).getLanguageId;t.XmlaStore=r.inherit(function(){function e(e,t){var n=new m,i=e.beforeSend,o={url:e.url,dataType:"text",data:t,headers:{"Content-Type":"text/xml"},xhrFields:{},method:"POST"};return d.isFunction(i)&&i(o),f.sendRequest(o).fail(function(){n.reject(arguments)}).done(function(e){var t,i=new a.DOMParser;try{try{t=i.parseFromString(e,"text/xml")}catch(e){t=void 0}if(!t||t.getElementsByTagName("parsererror").length||0===t.childNodes.length)throw new l.Error("E4023",e)}catch(t){n.reject({statusText:t.message,stack:t.stack,responseText:e})}n.resolve(t)}),n}function t(){var e=v();return void 0!==e?s("<LocaleIdentifier>{0}</LocaleIdentifier>",e):""}function n(e,t,n){return"Descendants({"+(t||e)+"}, "+n+", SELF_AND_BEFORE)"}function r(e){return(e.hierarchyName||e.dataField)+".[All]"}function g(e){var t=e.dataField+".allMembers",n=e.searchValue;return n&&(n=n.replace(/'/g,"''"),t="Filter("+t+", instr("+e.dataField+".currentmember.member_caption,'"+n+"') > 0)"),t}function y(e){var t=e.join(",");return e.length>1?s(ne,t):t}function b(e,t,i,o,a,l,u,c){var d,h,p,f,_,m,v,b,x,w,C,k=[],S=l[u],I=[];for(C=o;C<=t;C++)if(d=(x=S[C]).dataField,m=S[C-1]&&S[C-1].hierarchyName,v=!(p=x.hierarchyName)||!S[C+1]||S[C+1].hierarchyName!==p,b=e.length+i+o,f=null,I.push(x),C<e.length?v&&(f="("+d+"."+R(e[C],d)+")"):C<=b?0===C&&0===i?(h=r(S[o]),f=p?h+","+S[o].dataField:g(S[o])):p?(w=R(a[a.length-1]),(v||C===b)&&(m===p?(a.length&&(_=S[a.length-1]),_&&_.hierarchyName===p||(_=S[C-1],w=""),f=n(_.dataField,w,d)):f=g(x))):f=g(x):(!p||m!==p)&&(f="("+r(x)+")"),f){if(f=s(ie,f),c){var T=(x.hierarchyName||x.dataField)+("displayText"===x.sortBy?".MEMBER_CAPTION":".MEMBER_VALUE");f=s(Z,f,T,"desc"===x.sortOrder?"DESC":"ASC")}k.push(f)}return y(k)}function x(e,t,n,i,o,a,r,l,u,c){var d,h=-1,p=a[r];do{h++,d=t.length+h+i;var f=b(t,n,h,i,o,a,r,u);u||c||(f=s(ee,f,l)),e.push(f)}while(p[d]&&p[d+1]&&p[d].expanded)}function w(e,t,n,i){return n=n||"[DX_Set_"+t.length+"]",i=i||"set",t.push(s(Q,i,n,e)),n}function C(e,t,n,i,o){var a=e[t],r=[],l=[],u=[],c=0,d=0,h=[],p=s(ie,n.join(","));if(a&&a.length){e.headerName===t?(l=e.path,c=l.length):e.headerName&&e.oppositePath?(l=e.oppositePath,c=l.length):u=("columns"===t?e.columnExpandedPaths:e.rowExpandedPaths)||u,d=f.getExpandedLevel(e,t),x(r,[],d,c,l,e,t,p,"rows"===t?e.rowTake:e.columnTake,e.totalsOnly),oe(u,function(n,i){x(r,i,d,c,i,e,t,p)});for(var g=d;g>=l.length;g--)a[g].hierarchyName&&(o.visibleLevels[a[g].hierarchyName]=o.visibleLevels[a[g].hierarchyName]||[],o.visibleLevels[a[g].hierarchyName].push(a[g].dataField))}if(r.length){var _=function(e){var t=e.join(",");return e.length>1?"Union("+t+")":t}(r);"rows"===t&&e.rowTake&&(_=s(X,_,e.rowSkip>0?e.rowSkip+1:0,e.rowSkip>0?e.rowTake:e.rowTake+1)),"columns"===t&&e.columnTake&&(_=s(X,_,e.columnSkip>0?e.columnSkip+1:0,e.columnSkip>0?e.columnTake:e.columnTake+1));var m="[DX_"+t+"]";h.push(w(_,i,m)),e.totalsOnly&&h.push(w("COUNT("+m+")",i,"[DX_"+t+"_count]","member"))}return"columns"===t&&n.length&&!e.skipValues&&h.push(p),s(te,y(h),t)}function k(e){var t=[];return oe(e,function(e,n){var i,o=n.dataField,a=[],r=n.filterValues||[];n.hierarchyName&&d.isNumeric(n.groupIndex)||(oe(r,function(e,t){var i=o+"."+R(Array.isArray(t)?t[t.length-1]:t,o);"exclude"===n.filterType&&(a.push(i+".parent"),i="Descendants("+i+")"),a.push(i)}),r.length&&(i=s(ie,a.join(",")),"exclude"===n.filterType&&(i="Except("+g(n)+","+i+")"),t.push(i)))}),t.length?y(t):""}function S(e,t,n,i,o,a,r){var l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u="",c=(t.length?"with "+t.join(" "):"")+" ";if(e.length){var d=void 0;if(l.totalsOnly){var h=[];i.length&&h.push("[DX_rows_count]"),n.length&&h.push("[DX_columns_count]"),d="{"+h.join(",")+"} on columns"}else d=e.join(",");u=c+s(U,function(e,t,n,i){var o="["+i+"]";return oe([e,t,n],function(e,t){t&&(o=s(Y,t+"on 0",o))}),o}(k(n),k(i),k(o||[]),r),a.length?s(J,a.join(",")):"",d)}return u}function I(e,t){return h.map(t,function(t){return d.isString(t.expression)&&w(t.expression,e,t.dataField,"member"),t.dataField})}function T(e,t,n,i){oe(i,function(i,o){var a=t[n][i];a.hierarchyName&&a.hierarchyName===t[n][i+1].hierarchyName||e.push(a.dataField+"."+R(o,a.dataField))})}function D(e,t,n){var i=e.columns||[],o=e.rows||[],a=e.values&&e.values.length?e.values:[{dataField:"[Measures]"}],r=[],s=[],l=[],u=I(s,a);return n.measureCount=e.skipValues?1:a.length,n.visibleLevels={},e.headerName&&e.path&&T(r,e,e.headerName,e.path),e.headerName&&e.oppositePath&&T(r,e,"rows"===e.headerName?"columns":"rows",e.oppositePath),(i.length||u.length)&&l.push(C(e,"columns",u,s,n)),o.length&&l.push(C(e,"rows",u,s,n)),S(l,s,i,o,e.filters,r,t,e)}function E(e,t,n){oe(n,function(n,i){var o=t[n];o.hierarchyName&&(t[n+1]||{}).hierarchyName===o.hierarchyName||e.push(o.dataField+"."+R(i,o.dataField))})}function A(e){return parseInt(e,10)}function O(e){return d.isNumeric(e)?parseFloat(e):e}function P(e,t){return B(function(e,t){return(e.getElementsByTagName(t)||[])[0]}(e,t))}function B(e){return e&&e&&(e.textContent||e.text||e.innerHTML)||""}function M(e,t,n){for(var i,o=[],a=[],r=0,s=[],u=e.getElementsByTagName("Cell"),c={},d=0;d<u.length;d++){var h=u[d],p=h.getElementsByTagName("Value")[0],f=p&&p.getElementsByTagName("Error")||[],g=0===f.length?B(p):"#N/A",_=parseFloat(g),m=g-_+1>0,v=A(h.getAttribute("CellOrdinal"));f.length&&(c[B(f[0].getElementsByTagName("ErrorCode")[0])]=B(f[0].getElementsByTagName("Description")[0])),s[v]={value:m?_:g||null}}return oe(t[1],function(){i=[],o.push(i),oe(t[0],function(){0===r%n&&(a=[],i.push(a)),a.push(s[r]?s[r].value:null),r++})}),Object.keys(c).forEach(function(e){l.log("W4002",c[e])}),o}function R(e,t){return e&&(e=d.isString(e)&&-1!==e.indexOf("&")?e:"["+e+"]",t&&0===e.indexOf(t+".")&&(e=e.slice(t.length+1,e.length))),e}function F(e,t,n,i){var o=e[t];return o||(o={},e[t]=o),!d.isDefined(o.value)&&n&&(o.text=n.caption,o.value=n.value,o.key=t||"",o.levelName=n.levelName,o.hierarchyName=n.hierarchyName,o.parentName=n.parentName,o.index=i,o.level=n.level),o}function V(e,t){var n=[],i=e.children&&(e.children.length?e.children:Object.keys(e.children.grandTotalHash||{}).reduce(function(t,n){return t.concat(e.children.grandTotalHash[n].children)},[])),o=i&&i[0];if(o&&(t[o.hierarchyName]&&-1!==p(o.levelName,t[o.hierarchyName])||!t[o.hierarchyName]||0===o.level)){var a=i.filter(function(e){return e.hierarchyName===o.hierarchyName});return a.grandTotalHash=i.grandTotalHash,a}if(o)for(var r=0;r<i.length;r++)i[r].hierarchyName===o.hierarchyName&&n.push.apply(n,V(i[r],t));return n}function L(e,t,n,i){var o,a=[];oe(t,function(e,t){var i={children:a},o=d.isDefined(n)?Math.floor(e/n):e;oe(t,function(e,t){i=function(e,t,n){var i,o=n.children=n.children||[],a=o.hash=o.hash||{},r=o.grandTotalHash=o.grandTotalHash||{};return t.parentName&&(o=(n=F(a,t.parentName)).children=n.children||[]),i=F(a,t.name,t,e),t.hasValue&&!i.added&&(i.index=e,i.added=!0,o.push(i)),n.value&&n.parentName||!t.parentName?r[n.name]&&delete r[t.parentName]:r[t.parentName]=n,i}(o,t,i)})});var r={children:a};return r.children=V(r,i),o=function(e,t){var n;if(1===e.children.length&&""===e.children[0].parentName){n=e.children[0].index;var i=e.children.grandTotalHash;e.children=e.children[0].children||[],e.children.grandTotalHash=i,e.children=V(e,t)}else 0===e.children.length&&(n=0);return n}(r,i),f.foreachTree(r.children,function(e){var t=e[0],n=V(t,i);n.length?t.children=n:delete t.children,delete t.levelName,delete t.hierarchyName,delete t.added,delete t.parentName,delete t.level},!0),oe(r.children||[],function(t,n){e.push(n)}),o}function H(e){var t,n,i=e.getElementsByTagName("soap:Fault"),a=e.getElementsByTagName("Fault"),r=o([].slice.call(a.length?a:i)).find("Error");return r.length?(t=r.attr("Description"),n=new l.Error("E4000",t),l.log("E4000",t),n):null}function z(e,t){var n,i={columns:[],rows:[]},o=t.measureCount;return n=function(e,t){var n=[];for(oe(e.getElementsByTagName("Axis"),function(e,i){var o=i.getAttribute("name"),a=[],r=0;0===o.indexOf("Axis")&&d.isNumeric(A(o.substr(4)))&&(n.push(a),oe(i.getElementsByTagName("Tuple"),function(e,i){var o,s,l,u=i.childNodes,c=0,d=[],h=t?u.length:u.length-1;for(1===n.length&&h--,a.push(d),l=h;l>=0;l--)s=A(P(o=u[l],"LNum")),d[l]={caption:P(o,"Caption"),value:O(P(o,"MEMBER_VALUE")),level:s,index:r++,hasValue:!(c||!s&&0!==l),name:P(o,"UName"),hierarchyName:u[l].getAttribute("Hierarchy"),parentName:P(o,"PARENT_UNIQUE_NAME"),levelName:P(o,"LName")},c+=s}))});n.length<2;)n.push([[{level:0}]]);return n}(e,t.skipValues),i.grandTotalColumnIndex=L(i.columns,n[0],o,t.visibleLevels),i.grandTotalRowIndex=L(i.rows,n[1],void 0,t.visibleLevels),i.values=M(e,n,o),i}function N(e,t,n,i){var o=[],a="MEASURE"===t,r=a?"MEASUREGROUP_NAME":t+"_DISPLAY_FOLDER";return oe(e.getElementsByTagName("row"),function(e,s){var l="LEVEL"===t?P(s,"HIERARCHY_UNIQUE_NAME"):void 0,u=P(s,"LEVEL_NUMBER"),c=P(s,r);if(a&&(c=i[c]||c),("0"!==u||"true"!==P(s,t+"_IS_VISIBLE"))&&P(s,"DIMENSION_TYPE")!==re){var d=a?ae:P(s,"DIMENSION_UNIQUE_NAME"),h=P(s,t+"_UNIQUE_NAME");o.push({dimension:n.names[d]||d,groupIndex:u?A(u)-1:void 0,dataField:h,caption:P(s,t+"_CAPTION"),hierarchyName:l,groupName:l,displayFolder:c,isMeasure:a,isDefault:!!n.defaultHierarchies[h]})}}),o}function $(e){var t={names:{},defaultHierarchies:{}};return oe(o(e).find("row"),function(){var e=o(this),n=e.children("DIMENSION_TYPE").text()===re?ae:e.children("DIMENSION_UNIQUE_NAME").text();t.names[n]=e.children("DIMENSION_CAPTION").text(),t.defaultHierarchies[e.children("DEFAULT_HIERARCHY").text()]=!0}),t}function W(e){var t=(e=e.replace(/_x(....)_/g,function(e,t){return String.fromCharCode(parseInt(t,16))})).match(/\[.+?\]/gi);return t&&t.length&&(e=t[t.length-1]),e.replace(/\[/gi,"").replace(/\]/gi,"").replace(/\$/gi,"").replace(/\./gi," ")}function G(n,i){return i=o("<div>").text(i).html(),e(n,s(K,i,n.catalog,t()))}function j(e,t,n){var o=[],a=t.columns||[],r=t.rows||[];a.length&&o.push({}),r.length&&o.push({});var s=M(n,[[{}],[{},{}]],1);if(!a.length&&r.length&&(e.rowCount=Math.max(s[0][0][0]-1,0)),!r.length&&a.length&&(e.columnCount=Math.max(s[0][0][0]-1,0)),r.length&&a.length&&(e.rowCount=Math.max(s[0][0][0]-1,0),e.columnCount=Math.max(s[1][0][0]-1,0)),void 0!==e.rowCount&&t.rowTake){e.rows=[].concat(i(Array(t.rowSkip))).concat(e.rows),e.rows.length=e.rowCount;for(var l=0;l<e.rows.length;l++)e.rows[l]=e.rows[l]||{}}if(void 0!==e.columnCount&&t.columnTake){e.columns=[].concat(i(Array(t.columnSkip))).concat(e.columns),e.columns.length=e.columnCount;for(var u=0;u<e.columns.length;u++)e.columns[u]=e.columns[u]||{}}}var q='<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><Discover xmlns="urn:schemas-microsoft-com:xml-analysis"><RequestType>{2}</RequestType><Restrictions><RestrictionList><CATALOG_NAME>{0}</CATALOG_NAME><CUBE_NAME>{1}</CUBE_NAME></RestrictionList></Restrictions><Properties><PropertyList><Catalog>{0}</Catalog>{3}</PropertyList></Properties></Discover></Body></Envelope>',K='<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><Execute xmlns="urn:schemas-microsoft-com:xml-analysis"><Command><Statement>{0}</Statement></Command><Properties><PropertyList><Catalog>{1}</Catalog><ShowHiddenCubes>True</ShowHiddenCubes><SspropInitAppName>Microsoft SQL Server Management Studio</SspropInitAppName><Timeout>3600</Timeout>{2}</PropertyList></Properties></Execute></Body></Envelope>',U="SELECT {2} FROM {0} {1} CELL PROPERTIES VALUE, FORMAT_STRING, LANGUAGE, BACK_COLOR, FORE_COLOR, FONT_FLAGS",Y="(SELECT {0} FROM {1})",X="Subset({0}, {1}, {2})",Z="Order({0}, {1}, {2})",Q="{0} {1} as {2}",J="WHERE ({0})",ee="NonEmpty({0}, {1})",te="{0} DIMENSION PROPERTIES PARENT_UNIQUE_NAME,HIERARCHY_UNIQUE_NAME, MEMBER_VALUE ON {1}",ne="CrossJoin({0})",ie="{{0}}",oe=h.each,ae="DX_MEASURES",re="2";return{ctor:function(e){this._options=e},getFields:function(){var n=this._options,i=n.catalog,o=n.cube,a=t(),r=e(n,s(q,i,o,"MDSCHEMA_DIMENSIONS",a)),l=e(n,s(q,i,o,"MDSCHEMA_MEASURES",a)),u=e(n,s(q,i,o,"MDSCHEMA_HIERARCHIES",a)),c=e(n,s(q,i,o,"MDSCHEMA_LEVELS",a)),d=new m;return _(r,l,u,c).then(function(t,r,l,u){e(n,s(q,i,o,"MDSCHEMA_MEASUREGROUPS",a)).done(function(e){var n=$(t),i=N(l,"HIERARCHY",n),o=N(u,"LEVEL",n),a=function(e){var t={};return oe(e.getElementsByTagName("row"),function(e,n){t[P(n,"MEASUREGROUP_NAME")]=P(n,"MEASUREGROUP_CAPTION")}),t}(e),s=N(r,"MEASURE",n,a).concat(i),c={};oe(o,function(e,t){c[t.hierarchyName]=c[t.hierarchyName]||[],c[t.hierarchyName].push(t)}),oe(i,function(e,t){c[t.dataField]&&c[t.dataField].length>1&&(t.groupName=t.hierarchyName=t.dataField,s.push.apply(s,c[t.hierarchyName]))}),d.resolve(s)}).fail(d.reject)}).fail(d.reject),d},load:function(e){var t=new m,n=this._options,i={skipValues:e.skipValues},o=D(e,n.cube,i),a=void 0;(e.rowSkip||e.rowTake||e.columnTake||e.columnSkip)&&(a=D(c({},e,{totalsOnly:!0,rowSkip:null,rowTake:null,columnSkip:null,columnTake:null}),n.cube,{}));var r=function(){o?_(G(n,o),a&&G(n,a)).done(function(n,o){var a=H(n)||o&&H(o);if(a)t.reject(a);else{var r=z(n,i);o&&j(r,e,o),t.resolve(r)}}).fail(t.reject):t.resolve({columns:[],rows:[],values:[],grandTotalColumnIndex:0,grandTotalRowIndex:0})};return e.delay?setTimeout(r,e.delay):r(),t},supportPaging:function(){return!0},getDrillDownItems:function(e,t){var n=new m,i=this._options,o=function(e,t,n){var i,o=e.columns||[],a=e.rows||[],r=[],s=[],l=[],u=I(s,e.values&&e.values.length?e.values:[{dataField:"[Measures]"}]),c=n.maxRowCount,d=n.customColumns||[],h=d.length>0?" return "+d.join(","):"";return E(r,o,n.columnPath||[]),E(r,a,n.rowPath||[]),(o.length||o.length||u.length)&&l.push([(u[n.dataIndex]||u[0])+" on 0"]),(i=S(l,s,o,a,e.filters,r,t))?"drillthrough"+(c>0?" maxrows "+c:"")+i+h:i}(e,i.cube,t);return o?_(G(i,o)).done(function(e){var t=H(e);t?n.reject(t):n.resolve(function(e){for(var t=e.getElementsByTagName("row"),n=[],i={},o=0;o<t.length;o++){for(var a=t[o].childNodes,r={},s=0;s<a.length;s++){var l=a[s].tagName;r[i[l]=i[l]||W(l)]=B(a[s])}n.push(r)}return n}(e))}).fail(n.reject):n.resolve([]),n},key:u,filter:u}}()).include(f.storeDrillDownMixin)},function(e,t,n){function i(e,t){if(e.items)for(var n=0;n<e.items.length;n++){var o=i(e.items[n],t);if(o)return o}if(t(e))return e}function o(e,t){for(var n=0,i=0;!n&&w[i];)n=w[i++](e,t);return n}function a(e){return e.find(".dx-scrollable").dxScrollable("instance")}var r=n(2),s=n(60),l=n(7).hasWindow(),u=n(1).isDefined,c=n(0).extend,d=n(13).inArray,h=n(3),p=n(15),f=n(8),g=n(79),_=n(141),m=n(105),v=n(253),y=h.each,b="<div>";n(200);var x="dx-pivotgridfieldchooser-container",w=[function(e,t){return-!!e.isMeasure+ +!!t.isMeasure},function(e,t){return-!(!e.items||!e.items.length)+ +!(!t.items||!t.items.length)},function(e,t){return+!!(e.field&&e.field.levels&&e.field.levels.length)+-!!(t.field&&t.field.levels&&t.field.levels.length)},g.getCompareFunction(function(e){return e.text})],C=v.inherit({_getDefaultOptions:function(){return c(this.callBase(),{height:400,layout:0,dataSource:null,onContextMenuPreparing:null,allowSearch:!1,searchTimeout:500,texts:{columnFields:p.format("dxPivotGrid-columnFields"),rowFields:p.format("dxPivotGrid-rowFields"),dataFields:p.format("dxPivotGrid-dataFields"),filterFields:p.format("dxPivotGrid-filterFields"),allFields:p.format("dxPivotGrid-allFields")}})},_refreshDataSource:function(){var e=this;e._expandedPaths=[],e._changedHandler=e._changedHandler||function(){y(e._dataChangedHandlers,function(e,t){t()}),e._fireContentReadyAction(),e._skipStateChange=!0,e.option("state",e._dataSource.state()),e._skipStateChange=!1},e._dataSource&&(e._dataSource.off("changed",e._changedHandler),e._dataSource=void 0),e.callBase(),e._dataSource&&e._dataSource.on("changed",e._changedHandler)},_init:function(){this.callBase(),this._refreshDataSource(),this._dataChangedHandlers=[],this._initActions()},_initActions:function(){this._actions={onContextMenuPreparing:this._createActionByOption("onContextMenuPreparing")}},_trigger:function(e,t){this._actions[e](t)},_setOptionsByReference:function(){this.callBase(),c(this._optionsByReference,{dataSource:!0})},_optionChanged:function(e){var t=this;switch(e.name){case"dataSource":t._refreshDataSource(),t._invalidate();break;case"layout":case"texts":case"allowSearch":case"searchTimeout":t._invalidate();break;case"onContextMenuPreparing":t._actions[e.name]=t._createActionByOption(e.name);break;default:t.callBase(e)}},_clean:function(e){!e&&this._dataSource&&this.option("state",this._dataSource.state()),this.$element().children("."+x).remove()},_renderLayout0:function(e){var t,n,i,o,a,s,l=this;e.addClass("dx-layout-0"),a=r(b).addClass("dx-row").appendTo(e),s=r(b).addClass("dx-row").appendTo(e),t=r(b).addClass("dx-col").appendTo(a),n=r(b).addClass("dx-col").appendTo(a),i=r(b).addClass("dx-col").appendTo(s),o=r(b).addClass("dx-col").appendTo(s),l._renderArea(t,"all"),l._renderArea(n,"row"),l._renderArea(n,"column"),l._renderArea(i,"filter"),l._renderArea(o,"data")},_renderLayout1:function(e){var t,n,i=this;t=r(b).addClass("dx-col").appendTo(e),n=r(b).addClass("dx-col").appendTo(e),i._renderArea(t,"all"),i._renderArea(n,"filter"),i._renderArea(n,"row"),i._renderArea(n,"column"),i._renderArea(n,"data")},_renderLayout2:function(e){var t,n,i,o,a=this;e.addClass("dx-layout-2"),i=r(b).addClass("dx-row").appendTo(e),a._renderArea(i,"all"),o=r(b).addClass("dx-row").appendTo(e),t=r(b).addClass("dx-col").appendTo(o),n=r(b).addClass("dx-col").appendTo(o),a._renderArea(t,"filter"),a._renderArea(t,"row"),a._renderArea(n,"column"),a._renderArea(n,"data")},_initMarkup:function(){var e=this,t=this.$element(),n=r(b).addClass(x).appendTo(t),i=e.option("layout");e.callBase(),t.addClass("dx-pivotgridfieldchooser").addClass("dx-pivotgrid-fields-container"),e._dataChangedHandlers=[];var o=this._dataSource,a="instantly"!==e.option("applyChangesMode")&&o&&o.state();a&&e.option("state")&&o.state(e.option("state"),!0),0===i?e._renderLayout0(n):1===i?e._renderLayout1(n):e._renderLayout2(n),a&&o.state(a,!0)},_renderContentImpl:function(){this.callBase(),this.renderSortable(),this._renderContextMenu(),this.updateDimensions()},_fireContentReadyAction:function(){this._dataSource&&this._dataSource.isLoading()||this.callBase()},_getContextMenuArgs:function(e){var t,n,i=r(e.target).closest(".dx-area-field"),o=r(e.target).closest(".dx-area-fields");return i.length&&(t=i.data("field")),o.length&&(n=o.attr("group")),{event:e,field:t,area:n,items:[]}},_renderContextMenu:function(){var e=this,t=e.$element();e._contextMenu&&e._contextMenu.$element().remove(),e._contextMenu=e._createComponent(r(b).appendTo(t),m,{onPositioning:function(t){var n,i=t.event;i&&(n=e._getContextMenuArgs(i),e._trigger("onContextMenuPreparing",n),n.items&&n.items.length?t.component.option("items",n.items):t.cancel=!0)},target:t,onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:"dx-pivotgridfieldchooser-context-menu"})},_createTreeItems:function(e,t,n){var i,o=this,a=[],r=[],s=t[0],l={};return s?(y(e,function(e,t){var n=t[s]||"";l[n]=l[n]||[],l[n].push(t),void 0===i&&(i=!0),i=i&&!0===t.isMeasure}),y(l,function(e,i){var s=n?n+"."+e:e,l=o._createTreeItems(i,t.slice(1),s);e?r.push({key:e,text:e,path:s,isMeasure:l.isMeasure,expanded:d(s,o._expandedPaths)>=0,items:l}):a=l}),(a=r.concat(a)).isMeasure=i):y(e,function(e,t){var n;!0===t.isMeasure&&(n="measure"),!1===t.isMeasure&&(n=t.groupName?"hierarchy":"dimension"),a.push({index:t.index,field:t,key:t.dataField,selected:u(t.area),text:t.caption||t.dataField,icon:n,isMeasure:t.isMeasure,isDefault:t.isDefault})}),a},_createFieldsDataSource:function(e){var t,n=e&&e.fields()||[];return n=n.filter(function(e){return!1!==e.visible&&!u(e.groupIndex)}),t=this._createTreeItems(n,["dimension","displayFolder"]),g.foreachDataLevel(t,function(e){e.sort(o)},0,"items"),t},_renderFieldsTreeView:function(e){var t=this,n=t._dataSource,o=t._createComponent(e,_,{dataSource:t._createFieldsDataSource(n),showCheckBoxesMode:"normal",searchEnabled:t.option("allowSearch"),searchTimeout:t.option("searchTimeout"),itemTemplate:function(e,t,n){e.icon&&s.getImageContainer(e.icon).appendTo(n),r("<span>").toggleClass("dx-area-field",!e.items).data("field",e.field).text(e.text).appendTo(n)},onItemCollapsed:function(e){var n=d(e.itemData.path,t._expandedPaths);n>=0&&t._expandedPaths.splice(n,1)},onItemExpanded:function(e){d(e.itemData.path,t._expandedPaths)<0&&t._expandedPaths.push(e.itemData.path)},onItemSelectionChanged:function(e){var a,r,s,l=e.itemData,c=!0;if(l.items){if(l.selected)return void o.unselectItem(l);if(t._processDemandState(function(){r=function e(t,n){var i=[];if(t.items)for(var o=0;o<t.items.length;o++)i.push.apply(i,e(t.items[o],n));else u(t.index)&&i.push(n[t.index]);return i}(l,n.fields());for(var e=0;e<r.length;e++)if(r[e].area){c=!1;break}}),c){var d=i(l,function(e){return e.isDefault})||i(l,function(e){return u(e.index)});return void(d&&o.selectItem(d))}}else a=n.fields()[l.index],l.selected&&(s=a.isMeasure?"data":"column"),a&&(r=[a]);t._applyChanges(r,{area:s,areaIndex:void 0})}});t._dataChangedHandlers.push(function(){var i=a(e),r=i?i.scrollTop():0;o.option({dataSource:t._createFieldsDataSource(n)}),(i=a(e))&&(i.scrollTo({y:r}),i.update())})},_renderAreaFields:function(e,t){var n=this,i=n._dataSource,o=i?c(!0,[],i.getAreaFields(t,!0)):[];e.empty(),y(o,function(t,i){!1!==i.visible&&n.renderField(i,!0).appendTo(e)})},_renderArea:function(e,t){var n,i,o,a=this,s=r(b).addClass("dx-area").appendTo(e),l=r(b).addClass("dx-area-fields-header").appendTo(s),u=a.option("texts."+t+"Fields");r("<span>").addClass("dx-area-icon").addClass("dx-area-icon-"+t).appendTo(l),r("<span>").html("&nbsp;").appendTo(l),r("<span>").addClass("dx-area-caption").text(u).appendTo(l),n=r(b).addClass("dx-area-fields").addClass("dx-pivotgrid-drag-action").appendTo(s),"all"!==t?(n.attr("group",t).attr("allow-scrolling",!0),i=r(b).addClass("dx-area-field-container").appendTo(n),o=function(){a._renderAreaFields(i,t)},a._dataChangedHandlers.push(o),o(),n.dxScrollable()):(s.addClass("dx-all-fields"),n.addClass("dx-treeview-border-visible"),a._renderFieldsTreeView(n))},_getSortableOptions:function(){return{}},_adjustSortableOnChangedArgs:function(){},resetTreeView:function(){var e=this.$element().find(".dx-treeview").dxTreeView("instance");e&&(e.option("searchValue",""),e.collapseAll())},applyChanges:function(){var e=this.option("state");u(e)&&this._dataSource.state(e)},cancelChanges:function(){this.option("state",this._dataSource.state())},getDataSource:function(){return this._dataSource},updateDimensions:function(){this.$element().find(".dx-area .dx-scrollable").dxScrollable("update")},_visibilityChanged:function(e){e&&l&&this.updateDimensions()}});f("dxPivotGridFieldChooser",C),e.exports=C},function(e,t,n){var i=n(41),o=n(21),a=n(689),r={_displayNames:a.displayNames,_list:a.timezones,getTimezones:function(){return this._list},getDisplayNames:function(){return this._displayNames},queryableTimezones:function(){return i(this.getTimezones())},getTimezoneById:function(e){var t,n=0,i=this.getTimezones();if(e)for(;!t;){if(!i[n])return void o.log("W0009",e);i[n].id===e&&(t=i[n]),n++}return t},getTimezoneOffsetById:function(e,t){var n,i,o,a,r=this.getTimezoneById(e);if(r){if(r.link){var s=this.getTimezones()[r.link];n=s.offsets,o=s.untils,i=s.offsetIndices}else n=r.offsets,o=r.untils,i=r.offsetIndices;a=this.getUtcOffset(n,i,o,t)}return a},getUtcOffset:function(e,t,n,i){for(var o=0,a=t.split(""),r=n.split("|").map(function(e){return"Infinity"===e?null:1e3*parseInt(e,36)}),s=0,l=0,u=r.length;l<u&&i>=(s+=r[l]);l++)o=l;return r[o+1]&&o++,e[Number(a[o])]},getTimezoneShortDisplayNameById:function(e){var t,n=this.getTimezoneById(e);return n&&(t=n.DisplayName.substring(0,11)),t},getTimezonesDisplayName:function(){return i(this.getDisplayNames()).sortBy().toArray()},getTimezoneDisplayNameById:function(e){var t=this.getTimezoneById(e);return t?this.getDisplayNames()[t.winIndex]:""},getSimilarTimezones:function(e){if(!e)return[];var t=this.getTimezoneById(e);return this.getTimezonesIdsByWinIndex(t.winIndex)},getTimezonesIdsByWinIndex:function(e){return this.queryableTimezones().filter(["winIndex",e]).sortBy("title").toArray().map(function(e){return{id:e.id,displayName:e.title}})},getTimezonesIdsByDisplayName:function(e){var t=this.getDisplayNames().indexOf(e);return this.getTimezonesIdsByWinIndex(t)},getClientTimezoneOffset:function(e){return 6e4*e.getTimezoneOffset()},processDateDependOnTimezone:function(e,t){var n=new Date(e);if(t){var i=t+this.getClientTimezoneOffset(e)/36e5;n=new Date(n.setHours(n.getHours()+i))}return n}};e.exports=r},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.TooltipStrategyBase=t.createDefaultTooltipTemplate=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=i(n(34)),r=i(n(22)),s=i(n(86)),l=i(n(2)),u=i(n(291)),c=n(0),d="dx-tooltip-appointment-item",h=t.createDefaultTooltipTemplate=function(e,t,n,i){return new s.default(function(o){return e.render({model:t,targetedAppointmentData:n,container:o.container,currentIndex:i})})};t.TooltipStrategyBase=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.scheduler=t}return o(e,[{key:"show",value:function(e,t,n){this._canShowTooltip(e,t)&&(this.hide(),this._showCore(e,t,n))}},{key:"_showCore",value:function(e,t,n){this.tooltip?(this.list.option("dataSource",t),this._shouldUseTarget()&&this.tooltip.option("target",e)):(this.list=this._createList(e,t),this.tooltip=this._createTooltip(e,this.list)),this.tooltip.option("visible",!0),this.list.option("focusStateEnabled",this.scheduler.option("focusStateEnabled"))}},{key:"hide",value:function(){this.tooltip&&this.tooltip.option("visible",!1)}},{key:"_shouldUseTarget",value:function(){return!0}},{key:"_createTooltip",value:function(e,t){}},{key:"_canShowTooltip",value:function(e,t){return!(!t.length||this.tooltip&&this.tooltip.option("visible")&&(0,l.default)(this.tooltip.option("target")).get(0)===(0,l.default)(e).get(0))}},{key:"_createList",value:function(e,t){var n=this,i=(0,l.default)("<div>");return this.scheduler._createComponent(i,u.default,{dataSource:t,onItemRendered:function(e){return n._onListItemRendered(e)},onItemClick:function(e){return n._onListItemClick(e)},itemTemplate:function(t,i){return n._renderTemplate(e,t.data,t.currentData||t.data,i,t.color)}})}},{key:"_onListItemRendered",value:function(e){}},{key:"_getTargetData",value:function(e,t){return this.scheduler.fire("getTargetedAppointmentData",e,t)}},{key:"_renderTemplate",value:function(e,t,n,i,o){this._createTemplate(t,n,o);var a=this.scheduler._getAppointmentTemplate(this._getItemListTemplateName());return this._createFunctionTemplate(a,t,this._getTargetData(t,e),i)}},{key:"_createFunctionTemplate",value:function(e,t,n,i){return h(e,t,n,i)}},{key:"_getItemListTemplateName",value:function(){return"appointmentTooltipTemplate"}},{key:"_getItemListDefaultTemplateName",value:function(){return"appointmentTooltip"}},{key:"_onListItemClick",value:function(e){this.hide(),this._canRaiseClickEvent()?this._raiseClickEventAndShowAppointmentPopup(e):this.scheduler.showAppointmentPopup(e.itemData.data,!1,e.itemData.currentData)}},{key:"_canRaiseClickEvent",value:function(){return!0}},{key:"_raiseClickEventAndShowAppointmentPopup",value:function(e){var t={itemData:e.itemData.data,itemElement:e.itemElement};this.createAppointmentClickAction()(this.createClickEventArgument(t,e))}},{key:"createAppointmentClickAction",value:function(){var e=this;return this.scheduler._createActionByOption("onAppointmentClick",{afterExecute:function(t){var n=t.args[0];n.event.stopPropagation(),e.scheduler.fire("showEditAppointmentPopup",{data:n.appointmentData})}})}},{key:"createClickEventArgument",value:function(e,t){var n=(0,c.extendFromObject)(this.scheduler.fire("mapAppointmentFields",e),t,!1);return this.trimClickEventArgument(n)}},{key:"trimClickEventArgument",value:function(e){return delete e.itemData,delete e.itemIndex,delete e.itemElement,e}},{key:"_onDeleteButtonClick",value:function(){this.hide()}},{key:"_createTemplate",value:function(e,t,n){var i=this;this.scheduler._defaultTemplates[this._getItemListDefaultTemplateName()]=new s.default(function(o){var a=(0,l.default)(o.container);return a.append(i._createItemListContent(e,t,n)),a})}},{key:"_createItemListContent",value:function(e,t,n){var i=this.scheduler.option("editing"),o=this.scheduler.fire("getField","allDay",e),a=this.scheduler.fire("getField","text",e),r=this.scheduler.fire("getField","startDateTimeZone",e),s=this.scheduler.fire("getField","endDateTimeZone",e),u=this.scheduler.fire("convertDateByTimezone",this.scheduler.fire("getField","startDate",t),r),c=this.scheduler.fire("convertDateByTimezone",this.scheduler.fire("getField","endDate",t),s),h=(0,l.default)("<div>").addClass(d);return h.append(this._createItemListMarker(n)),h.append(this._createItemListInfo(a,this._formatDate(u,c,o))),(i&&!0===i.allowDeleting||!0===i)&&h.append(this._createDeleteButton(e,t)),h}},{key:"_createItemListMarker",value:function(e){var t=(0,l.default)("<div>").addClass("dx-tooltip-appointment-item-marker"),n=(0,l.default)("<div>").addClass("dx-tooltip-appointment-item-marker-body");return t.append(n),e&&e.done(function(e){return n.css("background",e)}),t}},{key:"_createItemListInfo",value:function(e,t){var n=(0,l.default)("<div>").addClass("dx-tooltip-appointment-item-content"),i=(0,l.default)("<div>").addClass("dx-tooltip-appointment-item-content-subject").text(e),o=(0,l.default)("<div>").addClass("dx-tooltip-appointment-item-content-date").text(t);return n.append(i).append(o)}},{key:"_createDeleteButton",value:function(e,t){var n=this,i=(0,l.default)("<div>").addClass("dx-tooltip-appointment-item-delete-button-container"),o=(0,l.default)("<div>").addClass("dx-tooltip-appointment-item-delete-button");return i.append(o),this.scheduler._createComponent(o,a.default,{icon:"trash",stylingMode:"text",onClick:function(i){n._onDeleteButtonClick(),n.scheduler._checkRecurringAppointment(e,t,n.scheduler._getStartDate(t,!0),function(){return n.scheduler.deleteAppointment(e)},!0),i.event.stopPropagation()}}),i}},{key:"_formatDate",value:function(e,t,n){var i="";return this.scheduler.fire("formatDates",{startDate:e,endDate:t,formatType:this._getTypeFormat(e,t,n),callback:function(e){return i=e}}),i}},{key:"_getTypeFormat",value:function(e,t,n){return n?"DATE":"month"!==this.scheduler.option("currentView")&&r.default.sameDate(e,t)?"TIME":"DATETIME"}}]),e}()},function(e,t,n){var i=n(2),o=n(12),a=n(5),r=n(37),s=n(22),l=n(1),u=n(7),c=n(10).getPublicElement,d=n(0).extend,h=n(3).each,p=n(15),f=n(33),g=s.dateToMilliseconds,_=n(17),m=_.abstract,v=n(4).noop,y=n(1).isDefined,b=n(118),x=n(9),w=n(24),C=n(18),k=n(19),S=n(160),I=n(55),T=n(94),D=n(695),E=n(696),A=n(254),O=n(697),P="dx-scheduler-all-day-panel",B="dx-scheduler-all-day-table",M="dx-scheduler-all-day-title",R="dx-scheduler-all-day-table-cell",F="dx-scheduler-work-space-mouse-selection",V="dx-scheduler-cell-sizes-horizontal",L="dx-scheduler-cell-sizes-vertical",H="dx-scheduler-group-header",z="dx-scheduler-group-header-content",N="dx-scheduler-date-table-cell",$="dx-scheduler-focused-cell",W="dx-scheduler-date-table-droppable-cell",G=x.addNamespace(w.down,"dxSchedulerWorkSpace"),j=x.addNamespace(I.enter,"dxSchedulerDateTable"),q=x.addNamespace(I.drop,"dxSchedulerDateTable"),K=x.addNamespace(k.name,"dxSchedulerDateTable"),U=x.addNamespace(w.down,"dxSchedulerDateTable"),Y=x.addNamespace(w.up,"dxSchedulerDateTable"),X=x.addNamespace(w.move,"dxSchedulerDateTable"),Z="dxCellData",Q=g("day"),J=g("hour"),ee=function(e){return f.getDayNames("abbreviated")[e.getDay()]},te=_.inherit({_supportedKeys:function(){var e=function(e){if(e.preventDefault(),e.stopPropagation(),this._focusedCells&&this._focusedCells.length){var t=i(this.option("focusedElement")),n=t.length?t:this._focusedCells;e.target=this._focusedCells,this._showPopup=!0,this._cellClickAction({event:e,cellElement:i(this._focusedCells),cellData:this.getCellData(n)})}},t=function(e,t){e.preventDefault(),e.stopPropagation(),this._moveToCell(t,e.shiftKey)};return d(this.callBase(),{enter:e,space:e,downArrow:function(e){var n=this._getCellFromNextRow("next",e.shiftKey);t.call(this,e,n)},upArrow:function(e){var n=this._getCellFromNextRow("prev",e.shiftKey);t.call(this,e,n)},rightArrow:function(e){var n=this._getRightCell(e.shiftKey);t.call(this,e,n)},leftArrow:function(e){var n=this._getLeftCell(e.shiftKey);t.call(this,e,n)}})},_isRTL:function(){return this.option("rtlEnabled")},_getFocusedCell:function(){return this._$focusedCell||this._$dateTable.find("."+N).eq(0)},_getAllFocusedCells:function(){return this._focusedCells||this._$dateTable.find("."+N).eq(0)},_getCellFromNextRow:function(e){var t=this._$focusedCell;if(y(t)){var n=t.index(),i=t.parent()[e]().children().eq(n);return this._checkForViewBounds(i)}},_checkForViewBounds:function(e){return e.length||(e=this._$focusedCell),e},_getRightCell:function(e){if(y(this._$focusedCell)){var t,n=this._$focusedCell,i=this._getGroupCount(),o=(e?this._getCellCount():this._getTotalCellCount(i))-1,a=this._isRTL()?0:o,r=n.index(),s=this._isRTL()?"prev":"next";if(r===a||e&&this._isGroupEndCell(n)){var l=n.parent(),u=this._isRTL()?1:-1;t=l[s]().children().eq(r+u*o),t=this._checkForViewBounds(t)}else t=n[s]();return t}},_isGroupEndCell:function(e){var t=this._getCellCount(),n=e.index()%t;return this._isRTL()?0===n:n===t-1},_getLeftCell:function(e){if(y(this._$focusedCell)){var t,n=this._$focusedCell,i=this._getGroupCount(),o=(e?this._getCellCount():this._getTotalCellCount(i))-1,a=this._isRTL()?o:0,r=n.index(),s=this._isRTL()?"next":"prev";if(r===a||e&&this._isGroupStartCell(n)){var l=n.parent(),u=this._isRTL()?-1:1;t=l[s]().children().eq(r+u*o),t=this._checkForViewBounds(t)}else t=n[s]();return t}},_isGroupStartCell:function(e){var t=this._getCellCount(),n=e.index()%t;return this._isRTL()?n===t-1:0===n},_moveToCell:function(e,t){t=t&&this.option("allowMultipleCellSelection"),this._setFocusedCell(e,t),this._dateTableScrollable.scrollToElement(e)},_setFocusedCell:function(e,t){if(y(e)&&e.length){if(this._releaseFocusedCell(),this._focusedCells=[],t){e=this._correctCellForGroup(e);var n=this._getCellsBetween(e,this._$prevCell);this._focusedCells=n.toArray()}else this._focusedCells=[e.get(0)],this._$prevCell=e;var o=i(this._focusedCells);this._toggleFocusClass(!0,o),this.setAria("label","Add appointment",o),this._toggleFocusedCellClass(!0,e),this._$focusedCell=e;var a=this.getFocusedCellData();this.option("selectedCellData",a),this._selectionChangedAction({selectedCellData:a})}},_correctCellForGroup:function(e){var t=this._$focusedCell,n=this._getGroupIndexByCell(e),i=this._getGroupIndexByCell(t),o=this._hasAllDayClass(e)!==this._hasAllDayClass(t);return i!==n||o?t:e},_getCellsBetween:function(e,t){var n=this._hasAllDayClass(t),o=this._getCells(n),a=o.index(e),r=o.index(t);if(a>r){var s=a;a=r,r=s}if(o=o.slice(a,r+1),this._getGroupCount()>1){var l=[],u=this._getGroupIndexByCell(e);h(o,function(e,t){var n=this._getGroupIndexByCell(i(t));u===n&&l.push(t)}.bind(this)),o=i(l)}return o},_hasAllDayClass:function(e){return e.hasClass(R)},_getGroupIndexByCell:function(e){var t=this._getCellCount(),n=e.index()+1;return Math.ceil(n/t)},_toggleFocusedCellClass:function(e,t){(t&&t.length?t:this._focusTarget()).toggleClass($,e)},_releaseFocusedCell:function(e){e=e||i(this._focusedCells),y(e)&&e.length&&(this._toggleFocusClass(!1,e),this._toggleFocusedCellClass(!1,e),this.setAria("label",void 0,e)),this.option("selectedCellData",[])},_focusInHandler:function(e){if(i(e.target).is(this._focusTarget())&&!1!==this._isCellClick){delete this._isCellClick,delete this._contextMenuHandled,this.callBase.apply(this,arguments);var t=this._getFocusedCell();this._setFocusedCell(t)}},_focusOutHandler:function(){this.callBase.apply(this,arguments),this._contextMenuHandled||this._releaseFocusedCell()},_focusTarget:function(){return this.$element()},_activeStateUnit:"."+N+", ."+R,_getDefaultOptions:function(){return d(this.callBase(),{currentDate:new Date,intervalCount:1,startDate:null,firstDayOfWeek:void 0,startDayHour:0,endDayHour:24,hoursInterval:.5,activeStateEnabled:!0,hoverStateEnabled:!0,groups:[],showAllDayPanel:!0,allDayExpanded:!1,onCellClick:null,crossScrollingEnabled:!1,dataCellTemplate:null,timeCellTemplate:null,resourceCellTemplate:null,dateCellTemplate:null,allowMultipleCellSelection:!0,indicatorTime:new Date,indicatorUpdateInterval:5*g("minute"),shadeUntilCurrentTime:!0,groupOrientation:"horizontal",selectedCellData:[],groupByDate:!1})},_optionChanged:function(e){switch(e.name){case"dateCellTemplate":case"resourceCellTemplate":case"dataCellTemplate":case"timeCellTemplate":case"startDayHour":case"endDayHour":case"hoursInterval":case"firstDayOfWeek":case"currentDate":case"startDate":this._cleanWorkSpace();break;case"groups":this._cleanView(),this._removeAllDayElements(),this._initGrouping(),this.repaint();break;case"groupOrientation":this._initGroupedStrategy(),this._createAllDayPanelElements(),this._removeAllDayElements(),this._cleanWorkSpace(),this._toggleGroupByDateClass();break;case"showAllDayPanel":this._isVerticalGroupedWorkSpace()?(this._cleanView(),this._removeAllDayElements(),this._initGrouping(),this.repaint()):this._toggleAllDayVisibility();break;case"allDayExpanded":this._changeAllDayVisibility(),this.notifyObserver("allDayPanelToggled"),this._attachTablesEvents(),this.headerPanelOffsetRecalculate(),this._updateScrollable();break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"onCellClick":this._createCellClickAction();break;case"onCellContextMenu":this._attachContextMenuEvent();break;case"intervalCount":this._cleanWorkSpace(),this._toggleWorkSpaceCountClass(),this._toggleFixedScrollableClass();break;case"groupByDate":this._cleanWorkSpace(),this._toggleGroupByDateClass();break;case"crossScrollingEnabled":this._toggleHorizontalScrollClass(),this._dateTableScrollable.option(this._dateTableScrollableConfig());break;case"width":this.callBase(e),this._dimensionChanged();break;case"allowMultipleCellSelection":case"selectedCellData":break;default:this.callBase(e)}},_cleanWorkSpace:function(){this._cleanView(),this._toggleGroupedClass(),this._toggleWorkSpaceWithOddCells(),this._renderView()},_init:function(){this.callBase(),this._initGrouping(),this._toggleHorizontalScrollClass(),this._toggleWorkSpaceCountClass(),this._toggleGroupByDateClass(),this._toggleWorkSpaceWithOddCells(),this._toggleWorkSpaceOverlappingClass(),this.$element().addClass("dx-scheduler-work-space").addClass(this._getElementClass())},_initGrouping:function(){this._initGroupedStrategy(),this._toggleGroupingDirectionClass(),this._toggleGroupByDateClass()},_initGroupedStrategy:function(){var e="vertical"===(this.option("groups").length?this.option("groupOrientation"):this._getDefaultGroupStrategy())?E:D;this._groupedStrategy=new e(this)},_getDefaultGroupStrategy:function(){return"horizontal"},_isVerticalGroupedWorkSpace:function(){return!!this.option("groups").length&&"vertical"===this.option("groupOrientation")},_isHorizontalGroupedWorkSpace:function(){return!!this.option("groups").length&&"horizontal"===this.option("groupOrientation")},_toggleHorizontalScrollClass:function(){this.$element().toggleClass("dx-scheduler-work-space-both-scrollbar",this.option("crossScrollingEnabled"))},_toggleGroupByDateClass:function(){this.$element().toggleClass("dx-scheduler-work-space-group-by-date",this.isGroupedByDate())},_toggleWorkSpaceCountClass:function(){this.$element().toggleClass("dx-scheduler-work-space-count",this._isWorkSpaceWithCount())},_isWorkSpaceWithCount:function(){return this.option("intervalCount")>1},_toggleWorkSpaceWithOddCells:function(){this.$element().toggleClass("dx-scheduler-work-space-odd-cells",this._isWorkspaceWithOddCells())},_isWorkspaceWithOddCells:function(){return.5===this.option("hoursInterval")},_toggleWorkSpaceOverlappingClass:function(){this.$element().toggleClass("dx-scheduler-work-space-overlapping",this._isWorkSpaceWithOverlapping())},_isWorkSpaceWithOverlapping:function(){return null!==this.invoke("getMaxAppointmentsPerCell")},_toggleGroupingDirectionClass:function(){this.$element().toggleClass("dx-scheduler-work-space-vertical-grouped",this._isVerticalGroupedWorkSpace())},_getRealGroupOrientation:function(){return this._isVerticalGroupedWorkSpace()?"vertical":"horizontal"},_getTimePanelClass:function(){return"dx-scheduler-time-panel"},_getDateTableClass:function(){return"dx-scheduler-date-table"},_getDateTableRowClass:function(){return"dx-scheduler-date-table-row"},_getDateTableCellClass:function(e,t){var n=N+" "+V+" "+L;return this._needApplyLastGroupCellClass()?this._groupedStrategy.addAdditionalGroupCellClasses(n,t+1,e,t):n},_needApplyLastGroupCellClass:function(){return!0},_getGroupRowClass:function(){return"dx-scheduler-group-row"},_getGroupHeaderClass:function(e){return this._groupedStrategy.addAdditionalGroupCellClasses("dx-scheduler-group-header",e+1)},_getGroupHeaderContentClass:function(){return z},_initWorkSpaceUnits:function(){this._$headerPanel=i("<table>"),this._$thead=i("<thead>").appendTo(this._$headerPanel),this._$fixedContainer=i("<div>").addClass("dx-scheduler-fixed-appointments"),this._$allDayContainer=i("<div>").addClass("dx-scheduler-all-day-appointments"),this._initAllDayPanelElements(),this._createAllDayPanelElements(),this._$timePanel=i("<table>").addClass(this._getTimePanelClass()),this._$dateTable=i("<table>"),this._$groupTable=i("<table>").addClass("dx-scheduler-work-space-vertical-group-table")},_initAllDayPanelElements:function(){this._allDayTitles=[],this._allDayTables=[],this._allDayPanels=[]},_createAllDayPanelElements:function(){var e=this._getGroupCount();if(this._isVerticalGroupedWorkSpace()&&0!==e)for(var t=0;t<e;t++){var n=i("<div>").addClass(M).text(p.format("dxScheduler-allDay"));this._allDayTitles.push(n),this._$allDayTable=i("<table>"),this._allDayTables.push(this._$allDayTable),this._$allDayPanel=i("<div>").addClass(P).append(this._$allDayTable),this._allDayPanels.push(this._$allDayPanel)}else this._$allDayTitle=i("<div>").addClass(M).text(p.format("dxScheduler-allDay")).appendTo(this.$element()),this._$allDayTable=i("<table>"),this._$allDayPanel=i("<div>").addClass(P).append(this._$allDayTable)},_initDateTableScrollable:function(){var e=i("<div>").addClass("dx-scheduler-date-table-scrollable");this._dateTableScrollable=this._createComponent(e,T,this._dateTableScrollableConfig())},_dateTableScrollableConfig:function(){var e={useKeyboard:!1,useNative:!1,bounceEnabled:!1,updateManually:!0,pushBackValue:0};return this._needCreateCrossScrolling()&&(e=d(e,this._createCrossScrollingConfig())),e},_createCrossScrollingConfig:function(){var e,t,n={direction:"both"};return n.onStart=function(n){this._headerScrollable&&(e=this._headerScrollable.option("onScroll"),this._headerScrollable.option("onScroll",void 0)),this._sidebarScrollable&&(t=this._sidebarScrollable.option("onScroll"),this._sidebarScrollable.option("onScroll",void 0))}.bind(this),n.onScroll=function(e){this._sidebarScrollable&&this._sidebarScrollable.scrollTo({top:e.scrollOffset.top}),this._headerScrollable&&this._headerScrollable.scrollTo({left:e.scrollOffset.left})}.bind(this),n.onEnd=function(){this.notifyObserver("updateResizableArea",{}),this._headerScrollable&&this._headerScrollable.option("onScroll",e),this._sidebarScrollable&&this._sidebarScrollable.option("onScroll",t)}.bind(this),n},_createWorkSpaceElements:function(){this.option("crossScrollingEnabled")?this._createWorkSpaceScrollableElements():this._createWorkSpaceStaticElements()},_createWorkSpaceStaticElements:function(){this._isVerticalGroupedWorkSpace()?(this._dateTableScrollable.$content().append(this._$allDayContainer,this._$groupTable,this._$timePanel,this._$dateTable),this.$element().append(this._$fixedContainer,this._$headerPanel,this._dateTableScrollable.$element())):(this._dateTableScrollable.$content().append(this._$timePanel,this._$dateTable),this.$element().append(this._$fixedContainer,this._$headerPanel,this._$allDayContainer,this._$allDayPanel,this._dateTableScrollable.$element()))},_createWorkSpaceScrollableElements:function(){this.$element().append(this._$fixedContainer),this._createHeaderScrollable(),this._createSidebarScrollable(),this.$element().append(this._dateTableScrollable.$element()),this._headerScrollable.$content().append(this._$headerPanel),this._dateTableScrollable.$content().append(this._$dateTable),this._isVerticalGroupedWorkSpace()?(this._dateTableScrollable.$content().prepend(this._$allDayContainer),this._sidebarScrollable.$content().append(this._$groupTable,this._$timePanel)):this._headerScrollable.$content().append(this._$allDayContainer,this._$allDayPanel),this._sidebarScrollable.$content().append(this._$timePanel)},_createHeaderScrollable:function(){var e=i("<div>").addClass("dx-scheduler-header-scrollable").appendTo(this.$element());this._headerScrollable=this._createComponent(e,T,this._headerScrollableConfig())},_headerScrollableConfig:function(){var e;return{useKeyboard:!1,showScrollbar:!1,direction:"horizontal",useNative:!1,updateManually:!0,bounceEnabled:!1,pushBackValue:0,onStart:function(t){e=this._dateTableScrollable.option("onScroll"),this._dateTableScrollable.option("onScroll",void 0)}.bind(this),onScroll:function(e){this._dateTableScrollable.scrollTo({left:e.scrollOffset.left})}.bind(this),onEnd:function(t){this._dateTableScrollable.option("onScroll",e)}.bind(this)}},_createSidebarScrollable:function(){var e,t=i("<div>").addClass("dx-scheduler-sidebar-scrollable").appendTo(this.$element());this._sidebarScrollable=this._createComponent(t,T,{useKeyboard:!1,showScrollbar:!1,direction:"vertical",useNative:!1,updateManually:!0,bounceEnabled:!1,pushBackValue:0,onStart:function(t){e=this._dateTableScrollable.option("onScroll"),this._dateTableScrollable.option("onScroll",void 0)}.bind(this),onScroll:function(e){this._dateTableScrollable.scrollTo({top:e.scrollOffset.top})}.bind(this),onEnd:function(t){this._dateTableScrollable.option("onScroll",e)}.bind(this)})},_visibilityChanged:function(e){e&&this._isVerticalGroupedWorkSpace()&&this._setHorizontalGroupHeaderCellsHeight(),e&&this._needCreateCrossScrolling()&&this._setTableSizes()},_attachTableClasses:function(){if(this._addTableClass(this._$dateTable,this._getDateTableClass()),this._isVerticalGroupedWorkSpace())for(var e=this._getGroupCount(),t=0;t<e;t++)this._addTableClass(this._allDayTables[t],B);else this._addTableClass(this._$allDayTable,B)},_attachHeaderTableClasses:function(){this._addTableClass(this._$headerPanel,"dx-scheduler-header-panel")},_addTableClass:function(e,t){e&&!e.hasClass(t)&&e.addClass(t)},_setTableSizes:function(){this._attachTableClasses();var e=this.getCellWidth();e<this.getCellMinWidth()&&(e=this.getCellMinWidth());var t=this.getWorkSpaceMinWidth(),n=e*this._$headerPanel.find("tr").last().find("th").length;n<t&&(n=t),this._$headerPanel.width(n),this._$dateTable.width(n),this._$allDayTable&&this._$allDayTable.width(n),this._attachHeaderTableClasses(),this._isVerticalGroupedWorkSpace()&&this._setHorizontalGroupHeaderCellsHeight()},getWorkSpaceMinWidth:function(){return this._groupedStrategy.getWorkSpaceMinWidth()},_dimensionChanged:function(){this.option("crossScrollingEnabled")&&this._setTableSizes(),this.headerPanelOffsetRecalculate(),this._cleanCellDataCache(),this._cleanAllowedPositions()},_needCreateCrossScrolling:function(){return this.option("crossScrollingEnabled")},_getElementClass:v,_getRowCount:v,_getCellCount:v,_initMarkup:function(){this._initWorkSpaceUnits(),this._initDateTableScrollable(),this._createWorkSpaceElements(),this.callBase(),this.option("crossScrollingEnabled")||(this._attachTableClasses(),this._attachHeaderTableClasses()),this._toggleGroupedClass(),this._toggleFixedScrollableClass(),this._renderView(),this._attachEvents(),this._setFocusOnCellByOption(this.option("selectedCellData"))},_render:function(){this.callBase(),this._renderDateTimeIndication(),this._setIndicationUpdateInterval()},_toggleGroupedClass:function(){this.$element().toggleClass("dx-scheduler-work-space-grouped",this._getGroupCount()>0)},_toggleFixedScrollableClass:v,_renderView:function(){if(this._setFirstViewDate(),this._applyCellTemplates(this._renderGroupHeader()),this._renderDateHeader(),this._renderTimePanel(),this._isVerticalGroupedWorkSpace())for(var e=this._getGroupCount(),t=0;t<e;t++)this._renderAllDayPanel(t);this._renderDateTable(),this._renderAllDayPanel(),this._updateGroupTableHeight(),this._shader=new O},_updateGroupTableHeight:function(){this._isVerticalGroupedWorkSpace()&&u.hasWindow()&&this._setHorizontalGroupHeaderCellsHeight()},_renderDateTimeIndication:v,_setIndicationUpdateInterval:v,_refreshDateTimeIndication:v,_setFocusOnCellByOption:function(e){var t=[];this._releaseFocusedCell();for(var n=0;n<e.length;n++){var i=e[n].groups,o=this.option("groups").length&&i?this._getGroupIndexByResourceId(i):0,a=!!e[n].allDay,r=this.getCoordinatesByDate(e[n].startDate,o,a),s=this._getCellByCoordinates(r,o);y(s)&&(this._toggleFocusClass(!0,s),t.push(s.get(0)))}this._focusedCells=t},_getGroupIndexByResourceId:function(e){for(var t=this.option("groups"),n=Object.keys(e)[0],i=e[n],o=this.invoke("createResourcesTree",t),a=0,r=0;r<o.length;r++)o[r].name===n&&o[r].value===i&&(a=o[r].leafIndex);return a},_setFirstViewDate:function(){var e=y(this._firstDayOfWeek())?this._firstDayOfWeek():f.firstDayOfWeekIndex();this._firstViewDate=s.getFirstWeekDate(this._getViewStartByOptions(),e),this._setStartDayHour(this._firstViewDate)},_getViewStartByOptions:function(){if(this.option("startDate")){for(var e=s.trimTime(this._getStartViewDate()),t=this.option("currentDate"),n=e.getTime()<=t.getTime()?1:-1,i=new Date(e.getTime()+this._getIntervalDuration()*n);!this._dateInRange(t,e,i,n);)e=i,i=new Date(e.getTime()+this._getIntervalDuration()*n);return n>0?e:i}return this.option("currentDate")},_getHeaderDate:function(){return this.getStartViewDate()},_getStartViewDate:function(){return this.option("startDate")},_dateInRange:function(e,t,n,i){return i>0?s.dateInRange(e,t,new Date(n.getTime()-1)):s.dateInRange(e,n,t,"date")},_getIntervalDuration:function(){return g("day")*this.option("intervalCount")},_setStartDayHour:function(e){var t=this.option("startDayHour");y(t)&&e.setHours(t,t%1*60,0,0)},_firstDayOfWeek:function(){return this.option("firstDayOfWeek")},_attachEvents:function(){this._createSelectionChangedAction(),this._attachClickEvent(),this._attachContextMenuEvent()},_attachClickEvent:function(){var e=this,t=this._createAction(function(t){e._pointerDownHandler(t.event)});this._createCellClickAction();var n=this.$element();a.off(n,G),a.off(n,K),a.on(n,G,function(e){return x.isMouseEvent(e)&&e.which>1?void e.preventDefault():void t({event:e})}),a.on(n,K,".dx-scheduler-date-table-cell,.dx-scheduler-all-day-table-cell",function(t){var n=i(t.target);e._cellClickAction({event:t,cellElement:c(n),cellData:e.getCellData(n)})})},_createCellClickAction:function(){var e=this;this._cellClickAction=this._createActionByOption("onCellClick",{afterExecute:function(t){e._moveToClosestNonStub(t.args[0].event)}})},_createSelectionChangedAction:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")},_moveToClosestNonStub:function(e){var t=i(e.target);this._showPopup&&this._hasFocusClass(t)&&(delete this._showPopup,this._showAddAppointmentPopup(t))},_pointerDownHandler:function(e){var t=i(e.target);return t.hasClass(N)||t.hasClass(R)?(this._isCellClick=!0,void(t.hasClass($)?this._showPopup=!0:this._setFocusedCell(t))):void(this._isCellClick=!1)},_showAddAppointmentPopup:function(e){var t=this.getCellData(e.first()),n=this.getCellData(e.last()),i={startDate:t.startDate,endDate:n.endDate};y(n.allDay)&&(i.allDay=n.allDay),d(i,n.groups),this.notifyObserver("showAddAppointmentPopup",i)},_attachContextMenuEvent:function(){this._createContextMenuAction();var e="."+N+",."+R,t=this.$element(),n=x.addNamespace(S.name,this.NAME);a.off(t,n,e),a.on(t,n,e,this._contextMenuHandler.bind(this))},_contextMenuHandler:function(e){var t=i(e.target);this._contextMenuAction({event:e,cellElement:c(t),cellData:this.getCellData(t)}),this._contextMenuHandled=!0},_createContextMenuAction:function(){this._contextMenuAction=this._createActionByOption("onCellContextMenu")},_getGroupHeaderContainer:function(){return this._isVerticalGroupedWorkSpace()?this._$groupTable:this._$thead},_getDateHeaderContainer:function(){return this._$thead},_renderGroupHeader:function(){var e=this._getGroupHeaderContainer(),t=this._getGroupCount(),n=[];if(t){var i=this._makeGroupRows(this.option("groups"),this.option("groupByDate"));this._attachGroupCountAttr(t,i),e.append(i.elements),n=i.cellTemplates}else this._detachGroupCountAttr();return n},_applyCellTemplates:function(e){e.forEach(function(e){e()})},_detachGroupCountAttr:function(){var e=this._groupedStrategy.getGroupCountAttr();this.$element().removeAttr(e.attr)},_attachGroupCountAttr:function(e,t){var n=this._groupedStrategy.getGroupCountAttr(e,t);this.$element().attr(n.attr,n.count)},headerPanelOffsetRecalculate:function(){if(this.option("resourceCellTemplate")||this.option("dateCellTemplate")){var e=this.getHeaderPanelHeight(),t=this.invoke("getHeaderHeight"),n=this.supportAllDayRow()&&this.option("showAllDayPanel")?this._groupedStrategy.getAllDayTableHeight():0;e&&this._headerScrollable&&this._headerScrollable.$element().height(e+n),e&&this._dateTableScrollable.$element().css({paddingBottom:n+e+"px",marginBottom:-1*(parseInt(e,10)+n)+"px"}),e&&this._sidebarScrollable&&this._sidebarScrollable.$element().css({paddingBottom:n+e+"px",marginBottom:-1*(parseInt(e,10)+n)+"px"}),this._$allDayTitle&&this._$allDayTitle.css("top",t+e+"px")}},_makeGroupRows:function(e,t){var n=this._isVerticalGroupedWorkSpace()?A.VERTICAL:A.HORIZONTAL;return A.makeGroupedTable(n,e,{groupHeaderRowClass:this._getGroupRowClass(),groupRowClass:this._getGroupRowClass(),groupHeaderClass:this._getGroupHeaderClass.bind(this),groupHeaderContentClass:this._getGroupHeaderContentClass()},this._getCellCount()||1,this.option("resourceCellTemplate"),this._getGroupCount(),t)},_getDateHeaderTemplate:function(){return this.option("dateCellTemplate")},_renderDateHeader:function(){var e,t,n=this._getDateHeaderContainer(),o=i("<tr>").addClass("dx-scheduler-header-row"),a=this._getCellCount(),r=this._getDateHeaderTemplate(),s=this._calculateHeaderCellRepeatCount(),l=[],u=this.option("groupByDate")?this._getGroupCount():1;if(this.option("groupByDate")){for(e=0;e<a;e++){this._renderDateHeaderTemplate(o,e,e*s,r,l).attr("colSpan",u)}n.prepend(o)}else{for(t=0;t<s;t++)for(e=0;e<a;e++)this._renderDateHeaderTemplate(o,e,t*s+e,r,l);n.append(o)}return this._applyCellTemplates(l),o},_renderDateHeaderTemplate:function(e,t,n,o,a){var r=this._getHeaderText(t),s=i("<th>").addClass(this._getHeaderPanelCellClass(t)).attr("title",r);return o&&o.render?a.push(o.render.bind(o,{model:{text:r,date:this._getDateByIndex(t)},index:n,container:c(s)})):s.text(r),e.append(s),s},_getHeaderPanelCellClass:function(e){return this._groupedStrategy.addAdditionalGroupCellClasses("dx-scheduler-header-panel-cell dx-scheduler-cell-sizes-horizontal",e+1)},_calculateHeaderCellRepeatCount:function(){return this._groupedStrategy.calculateHeaderCellRepeatCount()},_renderAllDayPanel:function(e){var t=this._getCellCount();this._isVerticalGroupedWorkSpace()||(t*=this._getGroupCount()||1);var n=this._renderTableBody({container:c(this._allDayPanels.length?this._allDayTables[e]:this._$allDayTable),rowCount:1,cellCount:t,cellClass:this._getAllDayPanelCellClass.bind(this),rowClass:"dx-scheduler-all-day-table-row",cellTemplate:this.option("dataCellTemplate"),getCellData:this._getAllDayCellData.bind(this),groupIndex:e},!0);this._toggleAllDayVisibility(),this._applyCellTemplates(n)},_getAllDayPanelCellClass:function(e,t){return this._groupedStrategy.addAdditionalGroupCellClasses("dx-scheduler-all-day-table-cell dx-scheduler-cell-sizes-horizontal",t+1)},_getAllDayCellData:function(e,t,n,i){var o=this._getDateByCellIndexes(t,n),a={startDate:o=s.trimTime(o),endDate:new Date(o.getTime()+Q),allDay:!0},r=this._getCellGroups(i||this._getGroupIndex(t,n));r.length&&(a.groups={});for(var l=0;l<r.length;l++)a.groups[r[l].name]=r[l].id;return{key:Z,value:a}},_toggleAllDayVisibility:function(){var e=this.option("showAllDayPanel");this._$allDayPanel.toggle(e),this._$allDayTitle&&this._$allDayTitle.toggleClass("dx-scheduler-all-day-title-hidden",!e),this.$element().toggleClass("dx-scheduler-work-space-all-day",e),this._changeAllDayVisibility(),this._updateScrollable()},_changeAllDayVisibility:function(){this.$element().toggleClass("dx-scheduler-work-space-all-day-collapsed",!this.option("allDayExpanded")&&this.option("showAllDayPanel"))},_updateScrollable:function(){this._dateTableScrollable.update(),this._headerScrollable&&this._headerScrollable.update(),this._sidebarScrollable&&this._sidebarScrollable.update()},_renderTimePanel:function(){var e=this._groupedStrategy.calculateTimeCellRepeatCount();this._renderTableBody({container:c(this._$timePanel),rowCount:this._getTimePanelRowCount()*e,cellCount:1,cellClass:this._getTimeCellClass.bind(this),rowClass:"dx-scheduler-time-panel-row",cellTemplate:this.option("timeCellTemplate"),getCellText:this._getTimeText.bind(this),getCellDate:this._getTimeCellDate.bind(this),groupCount:this._getGroupCount(),allDayElements:this._insertAllDayRowsIntoDateTable()?this._allDayTitles:void 0})},_getTimePanelRowCount:function(){return this._getCellCountInDay()},_getCellCountInDay:function(){return Math.ceil(this._calculateDayDuration()/this.option("hoursInterval"))},_calculateDayDuration:function(){return this.option("endDayHour")-this.option("startDayHour")},_getTimeCellClass:function(e){return this._groupedStrategy.addAdditionalGroupCellClasses("dx-scheduler-time-panel-cell dx-scheduler-cell-sizes-vertical",e,e)},_getTimeText:function(e){var t=this._getTimeCellDate(e);return e%this._getRowCount()%2==0?f.format(t,"shorttime"):""},_getTimeCellDate:function(e){var t=new Date(this.getStartViewDate()),n=Math.round(this.getCellDuration()),i=this._calculateDayDuration()/this.option("hoursInterval");return t.setMilliseconds(t.getMilliseconds()+n*(e%i)),t},_renderDateTable:function(){var e=this._getGroupCount();this._renderTableBody({container:c(this._$dateTable),rowCount:this._getTotalRowCount(e),cellCount:this._getTotalCellCount(e),cellClass:this._getDateTableCellClass.bind(this),rowClass:this._getDateTableRowClass(),cellTemplate:this.option("dataCellTemplate"),getCellData:this._getCellData.bind(this),allDayElements:this._insertAllDayRowsIntoDateTable()?this._allDayPanels:void 0,groupCount:e,groupByDate:this.option("groupByDate")}),this._attachTablesEvents()},_insertAllDayRowsIntoDateTable:function(){return this._groupedStrategy.insertAllDayRowsIntoDateTable()},_getTotalCellCount:function(e){return this._groupedStrategy.getTotalCellCount(e)},_getTotalRowCount:function(){return this._groupedStrategy.getTotalRowCount()},_getCellData:function(e,t,n){var i=this._prepareCellData(t,n,e);return{key:Z,value:i}},_prepareCellData:function(e,t){var n=this._getDateByCellIndexes(e,t),i={startDate:n,endDate:this.calculateEndDate(n),allDay:this._getTableAllDay()},o=this._getCellGroups(this._getGroupIndex(e,t));o.length&&(i.groups={});for(var a=0;a<o.length;a++)i.groups[o[a].name]=o[a].id;return i},_getGroupIndex:function(e,t){return this._groupedStrategy.getGroupIndex(e,t)},_getTableAllDay:function(){return!1},calculateEndDate:function(e){var t=new Date(e);return t.setMilliseconds(t.getMilliseconds()+Math.round(this._getInterval())),t},_getGroupCount:function(){for(var e=this.option("groups"),t=0,n=0,i=e.length;n<i;n++)n?t*=e[n].items.length:t=e[n].items.length;return t},_getPathToLeaf:function(e){return function e(t,n){return(n=n||[]).push(t.value),t.parent&&e(t.parent,n),n}(function e(t,n){for(var i=0;i<t.length;i++){if(t[i].leafIndex===n)return t[i];var o=e(t[i].children,n);if(o)return o}}(this.invoke("createResourcesTree",this.option("groups")),e)).reverse()},_getCellGroups:function(e){var t=[];if(this._getGroupCount()){var n=this.option("groups");if(e<0)return;for(var i=this._getPathToLeaf(e),o=0;o<n.length;o++)t.push({name:n[o].name,id:i[o]})}return t},_attachTablesEvents:function(){this._attachTableEvents(this._getDateTable()),this._attachTableEvents(this._getAllDayTable())},_attachTableEvents:function(e){var t,n,r=this,s=!1;a.off(e,j),a.off(e,q),a.off(e,X),a.off(e,U),a.on(e,j,"td",{itemSizeFunc:function(e){return t||(t=e.get(0).getBoundingClientRect().height),n||(n=e.get(0).getBoundingClientRect().width),{width:n,height:t}}},function(e){r._$currentTableTarget&&r._$currentTableTarget.removeClass(W),r._$currentTableTarget=i(e.target),r._$currentTableTarget.addClass(W)}),a.on(e,q,"td",function(e){i(e.target).removeClass(W),t=0,n=0}),a.on(e,U,"td",function(e){x.isMouseEvent(e)&&1===e.which&&(s=!0,r.$element().addClass(F),a.off(o.getDocument(),Y),a.on(o.getDocument(),Y,function(){s=!1,r.$element().removeClass(F)}))}),a.on(e,X,"td",function(e){s&&r._dateTableScrollable&&!r._dateTableScrollable.option("scrollByContent")&&(e.preventDefault(),e.stopPropagation(),r._moveToCell(i(e.target),!0))})},_getDateTables:function(){return this._$dateTable.add(this._$allDayTable)},_getDateTable:function(){return this._$dateTable},_getAllDayTable:function(){return this._$allDayTable},_getInterval:function(){return void 0===this._interval&&(this._interval=this.option("hoursInterval")*J),this._interval},_getHeaderText:function(e){return f.format(this._getDateByIndex(e),this._getFormat())},_getDateByIndex:m,_getFormat:m,_calculateCellIndex:function(e,t){return this._groupedStrategy.calculateCellIndex(e,t)},_renderTableBody:function(e,t){var n=[];return t?n=A.makeTable(e):this._applyCellTemplates(A.makeTable(e)),n},_removeAllDayElements:function(){this._$allDayTable&&this._$allDayTable.remove(),this._$allDayTitle&&this._$allDayTitle.remove()},_cleanView:function(){this._cleanCellDataCache(),this._cleanAllowedPositions(),this._$thead.empty(),this._$dateTable.empty(),this._shader&&this._shader.clean(),this._$timePanel.empty(),this._$allDayTable&&this._$allDayTable.empty(),this._$groupTable.empty(),delete this._hiddenInterval,delete this._interval},_clean:function(){a.off(o.getDocument(),Y),this.callBase()},getWorkArea:function(){return this._dateTableScrollable.$content()},getScrollable:function(){return this._dateTableScrollable},getScrollableScrollTop:function(){return this._dateTableScrollable.scrollTop()},getGroupedScrollableScrollTop:function(e){return this._groupedStrategy.getScrollableScrollTop(e)},getScrollableScrollLeft:function(){return this._dateTableScrollable.scrollLeft()},getScrollableOuterWidth:function(){return this._dateTableScrollable.scrollWidth()},getScrollableContainer:function(){return this._dateTableScrollable._container()},getHeaderPanelHeight:function(){return this._$headerPanel&&this._$headerPanel.outerHeight(!0)},getTimePanelWidth:function(){return this._$timePanel&&this._$timePanel.get(0).getBoundingClientRect().width},getGroupTableWidth:function(){return this._$groupTable?this._$groupTable.outerWidth():0},getWorkSpaceLeftOffset:function(){return this._groupedStrategy.getLeftOffset()},getGroupedStrategy:function(){return this._groupedStrategy},_getCellCoordinatesByIndex:function(e){var t=Math.floor(e/this._getRowCount());return{cellIndex:t,rowIndex:e-this._getRowCount()*t}},_getDateByCellIndexes:function(e,t,n){t=n?t:this._patchCellIndex(t);var i=this.getStartViewDate(),o=new Date(i.getTime()+this._getMillisecondsOffset(e,t)+this._getOffsetByCount(t));return o.setTime(o.getTime()+s.getTimezonesDifference(i,o)),o},_patchCellIndex:function(e){return this.isGroupedByDate()&&(e=Math.floor(e/this._getGroupCount())),e},_getOffsetByCount:function(){return 0},_getMillisecondsOffset:function(e,t){return this._getInterval()*this._calculateCellIndex(e,t)+this._calculateHiddenInterval(e,t)},_calculateHiddenInterval:function(e,t){return t%this._getCellCount()*this._getHiddenInterval()},_getHiddenInterval:function(){return void 0===this._hiddenInterval&&(this._hiddenInterval=Q-this.getVisibleDayDuration()),this._hiddenInterval},_getIntervalBetween:function(e,t){var n=this.getStartViewDate(),i=this.option("startDayHour")*J,o=s.getTimezonesDifference(n,e),a=e.getTime()-n.getTime()-o,r=this._getDaysOfInterval(a,i),l=this._getWeekendsCount(r),u=(r-l)*Q;return t||(u=a-r*this._getHiddenInterval()-l*this.getVisibleDayDuration()),u},_getWeekendsCount:function(){return 0},_getDaysOfInterval:function(e,t){return Math.floor((e+t)/Q)},_getGroupIndexes:function(e){var t=[];if(e&&this.option("groups").length){var n=this.invoke("createResourcesTree",this.option("groups"));t=this.invoke("getResourceTreeLeaves",n,e)}return t},_updateIndex:function(e){return e*this._getRowCount()},_getDroppableCell:function(){return this._getDateTables().find("."+W)},_getWorkSpaceWidth:function(){return this._needCreateCrossScrolling()?this._$dateTable.get(0).getBoundingClientRect().width:this.$element().get(0).getBoundingClientRect().width-this.getTimePanelWidth()},_getCellPositionByIndex:function(e,t,n){var i=this._getCellCoordinatesByIndex(e),o=this._getCellByCoordinates(i,t,n),a=this._getCellPosition(o);return this.setCellDataCache(i,t,o),a&&(a.rowIndex=i.rowIndex,a.cellIndex=i.cellIndex),a},_getCellPosition:function(e){var t=this.option("rtlEnabled"),n=e.position();return t&&(n.left+=e.get(0).getBoundingClientRect().width),n},_getCellByCoordinates:function(e,t,n){var i=this._groupedStrategy.prepareCellIndexes(e,t,n);return this._$dateTable.find("tr").eq(i.rowIndex).find("td").eq(i.cellIndex)},_getCells:function(e){var t=e?R:N;return this.$element().find("."+t)},_setHorizontalGroupHeaderCellsHeight:function(){var e=this._$dateTable.get(0).getBoundingClientRect().height;this._$groupTable.outerHeight(e)},_getDateTableBorder:function(){return 1},_getDateTableBorderOffset:function(){return 2*this._getDateTableBorder()},_getGroupHeaderCellsContent:function(){return this.$element().find("."+z)},_getGroupHeaderCells:function(){return this.$element().find("."+H)},_getScrollCoordinates:function(e,t,n){var i=n||new Date(this.option("currentDate")),o=this.option("startDayHour"),a=this.option("endDayHour");return e<o&&(e=o),e>=a&&(e=a-1),i.setHours(e,t,0,0),this.getCoordinatesByDate(i)},setCellDataCache:function(e,t,n){var i=this.getCellDataCache(),o=this.getCellData(n);i[JSON.stringify({rowIndex:e.rowIndex,cellIndex:e.cellIndex,groupIndex:t})]=o},setCellDataCacheAlias:function(e,t){var n=JSON.stringify({rowIndex:e.rowIndex,cellIndex:e.cellIndex,groupIndex:e.groupIndex}),i=JSON.stringify({top:t.top,left:t.left}),o=this.getCellDataCache();o[n]&&(o[i]=o[n])},getCellDataCache:function(e){return this._cache||(this._cache={}),e?this._cache[e]:this._cache},_cleanCellDataCache:function(){delete this._cache},_cleanAllowedPositions:function(){delete this._maxAllowedVerticalPosition,delete this._maxAllowedPosition},supportAllDayRow:function(){return!0},keepOriginalHours:function(){return!1},getFocusedCellData:function(){var e=this._getAllFocusedCells(),t=[];if(e.length>1)t=this._getMultipleCellsData(e);else{var n=this.getCellData(e);n&&t.push(n)}return t},_getMultipleCellsData:function(e){for(var t=[],n=0;n<e.length;n++)t.push(r.data(e[n],Z));return t},getCellData:function(e){var t=e[0]?r.data(e[0],Z):void 0;return d(!0,{},t)},_getHorizontalMax:function(e){return e=this.option("groupByDate")?this._getGroupCount()-1:e,this._groupedStrategy.getHorizontalMax(e)},getCoordinatesByDate:function(e,t,n){t=t||0;var i=this.getCellIndexByDate(e,n),o=this._getCellPositionByIndex(i,t,n),a=this.getPositionShift(n?0:this.getTimeShift(e)),r=this._getHorizontalMax(t,e);if(!o)throw C.Error("E1039");return{cellPosition:o.left+a.cellPosition,top:o.top+a.top,left:o.left+a.left,rowIndex:o.rowIndex,cellIndex:o.cellIndex,hMax:r,vMax:this.getVerticalMax(t),groupIndex:t}},getVerticalMax:function(e){return this._groupedStrategy.getVerticalMax(e)},_getOffsetByAllDayPanel:function(e){return this._groupedStrategy._getOffsetByAllDayPanel(e)},_getGroupTop:function(e){return this._groupedStrategy._getGroupTop(e)},isGroupedByDate:function(){return this.option("groupByDate")&&this._isHorizontalGroupedWorkSpace()&&this._getGroupCount()>0},getCellIndexByDate:function(e,t){var n=t?864e5:this._getInterval(),i=this._getIntervalBetween(e,t),o=Math.floor(i/n);return t&&(o=this._updateIndex(o)),o<0&&(o=0),o},getPositionShift:function(e){return{top:e*this.getCellHeight(),left:0,cellPosition:0}},getTimeShift:function(e){var t=this.getCellDuration(),n=new Date(e);return n.setHours(this.option("startDayHour"),0,0,0),(e.getTime()-n.getTime())%t/t},getCoordinatesByDateInGroup:function(e,t,n){var i=this._getGroupIndexes(t),o=[];if(i.length)for(var a=0;a<i.length;a++)o.push(this.getCoordinatesByDate(e,i[a],n));else o.push(this.getCoordinatesByDate(e,0,n));return o},getDroppableCellIndex:function(){var e=this._getDroppableCell(),t=e.parent();return t.index()*t.find("td").length+e.index()},getDataByDroppableCell:function(){var e=this.getCellData(this._getDroppableCell());return{date:e.startDate,allDay:e.allDay,groups:e.groups}},getDateRange:function(){return[this.getStartViewDate(),this.getEndViewDate()]},getCellWidth:function(){var e=this._getCells().first().get(0);return e&&e.getBoundingClientRect().width},getCellMinWidth:function(){return 75},getRoundedCellWidth:function(e,t,n){if(e<0)return 0;var o=0,a=this.$element().find("."+this._getDateTableRowClass()).eq(0).find("."+N),r=this._getCellCount()*e;n=n||this._getCellCount(),l.isDefined(t)||(t=r);for(var s=t;s<r+n;s++)o+=i(a).eq(s).get(0).getBoundingClientRect().width;return o/(r+n-t)},getCellHeight:function(){var e=this._getCells().first().get(0);return e&&e.getBoundingClientRect().height},getAllDayHeight:function(){var e=this._getCells(!0).first().get(0);return this.option("showAllDayPanel")&&e&&e.getBoundingClientRect().height||0},getAllDayOffset:function(){return this._groupedStrategy.getAllDayOffset()},getMaxAllowedPosition:function(){if(!this._maxAllowedPosition){var e=this.option("rtlEnabled");this._maxAllowedPosition=[],this._$dateTable.find("tr").first().find("td:nth-child("+this._getCellCount()+"n)").each(function(t,n){var o=i(n).position().left;e||(o+=i(n).get(0).getBoundingClientRect().width),this._maxAllowedPosition.push(Math.round(o))}.bind(this))}return this._maxAllowedPosition},getMaxAllowedVerticalPosition:function(){if(!this._maxAllowedVerticalPosition){var e=this;this._maxAllowedVerticalPosition=[];var t=this._getRowCount();this._$dateTable.find("tr:nth-child("+t+"n)").each(function(t,n){var o=i(n).position().top+i(n).get(0).getBoundingClientRect().height;e._maxAllowedVerticalPosition.push(Math.round(o))})}return this._maxAllowedVerticalPosition},getFixedContainer:function(){return this._$fixedContainer},getAllDayContainer:function(){return this._$allDayContainer},getCellIndexByCoordinates:function(e,t){var n=this._getTotalCellCount(this._getGroupCount()),i=Math.floor(this._getWorkSpaceWidth()/n),o=t?this.getAllDayHeight():this.getCellHeight(),a=this._isRTL()||this.option("crossScrollingEnabled")?0:this.getWorkSpaceLeftOffset(),r=Math.floor(e.top/o),s=Math.floor((e.left+5-a)/i);return this._isRTL()&&(s=n-s-1),n*r+s},getStartViewDate:function(){return this._firstViewDate},getEndViewDate:function(){var e=this.getDateOfLastViewCell(),t=this.calculateEndViewDate(e);return this._adjustEndViewDateByDaylightDiff(e,t)},calculateEndViewDate:function(e){return new Date(e.getTime()+this.getCellDuration())},_adjustEndViewDateByDaylightDiff:function(e,t){var n=this.invoke("getDaylightOffset",e,t)*g("minute")||0,i=new Date(t.getTime()-n);return new Date(i.getTime()-g("minute"))},getDateOfLastViewCell:function(){var e=this._getRowCount()-1,t=this._getCellCount();return this.option("groupByDate")?t=t*this._getGroupCount()-1:t-=1,this._getDateByCellIndexes(e,t,!0)},getCellDuration:function(){return 36e5*this.option("hoursInterval")},getIntervalDuration:function(e){return e?g("day"):this.getCellDuration()},getVisibleDayDuration:function(){return this.option("hoursInterval")*this._getCellCountInDay()*J},getGroupBounds:function(e){var t=this._getCellCount(),n=this._getCells(),i=this.getCellWidth(),o=this._groupedStrategy.getGroupBoundsOffset(t,n,i,e);if(this._isRTL()){var a=o.left;o.left=o.right-2*i,o.right=a+2*i}return o},needRecalculateResizableArea:function(){return this._isVerticalGroupedWorkSpace()&&0!==this.getScrollable().scrollTop()},getCellDataByCoordinates:function(e,t){var n=JSON.stringify({top:e.top,left:e.left}),i=this.getCellDataCache(n);if(i)return i;var o=this._getCells(t),a=this.getCellIndexByCoordinates(e,t),r=o.eq(a);return this.getCellData(r)},getVisibleBounds:function(){var e={},t=this.getScrollable().$element(),n=this.getCellHeight(),i=this.getScrollableScrollTop()/n,o=i+t.height()/n;return e.top={hours:Math.floor(i*this.option("hoursInterval"))+this.option("startDayHour"),minutes:i%2?30:0},e.bottom={hours:Math.floor(o*this.option("hoursInterval"))+this.option("startDayHour"),minutes:Math.floor(o)%2?30:0},e},updateScrollPosition:function(e){e=this.invoke("convertDateByTimezone",e);var t=this.getVisibleBounds(),n=e.getHours(),i=e.getMinutes();this.needUpdateScrollPosition(n,i,t,e)&&this.scrollToTime(n,i,e)},needUpdateScrollPosition:function(e,t,n){var i=!1;return(e<n.top.hours||e>n.bottom.hours)&&(i=!0),e===n.top.hours&&t<n.top.minutes&&(i=!0),e===n.bottom.hours&&t>n.top.minutes&&(i=!0),i},getGroupWidth:function(e){var t=this._getCellCount()*this.getCellWidth(),n=this.getMaxAllowedPosition(),i=n[e];return n.length&&i&&(t=this._isRTL()?i-n[e+1]:0===e?i:i-n[e-1]),t},restoreScrollTop:function(){this.$element().scrollTop(0)},scrollToTime:function(e,t,n){var i=this.getStartViewDate(),o=this.getEndViewDate();if(n<i||n>o)C.log("W1008",n);else{var a=this._getScrollCoordinates(e,t,n),r=this.getScrollable();r.scrollBy({top:a.top-r.scrollTop(),left:0})}},getDistanceBetweenCells:function(e,t){var n=0;return this.$element().find("."+this._getDateTableRowClass()).first().find("."+N).each(function(o){return o<e||o>t||void(n+=i(this).get(0).getBoundingClientRect().width)}),n},needApplyCollectorOffset:function(){return!1},_supportCompactDropDownAppointments:function(){return!0},_formatWeekday:function(e){return ee(e)},_formatWeekdayAndDay:function(e){return ee(e)+" "+f.format(e,"day")}}).include(b);e.exports=te},function(e,t,n){var i=n(14),o=i.abstract,a=i.inherit({ctor:function(e){this._workSpace=e},getLastGroupCellClass:function(){return"dx-scheduler-last-group-cell"},getFirstGroupCellClass:function(){return"dx-scheduler-first-group-cell"},_getOffsetByAllDayPanel:function(){return 0},_getGroupTop:function(){return 0},prepareCellIndexes:o,calculateCellIndex:o,getGroupIndex:o,insertAllDayRowsIntoDateTable:o,getTotalCellCount:o,addAdditionalGroupCellClasses:o,getHorizontalMax:o,getVerticalMax:o,calculateTimeCellRepeatCount:o,getWorkSpaceMinWidth:o,getAllDayHeight:o,getGroupCountAttr:o,getLeftOffset:o,shiftIndicator:o,getShaderOffset:o,getShaderTopOffset:o,getShaderMaxHeight:o,getShaderWidth:o,getScrollableScrollTop:o});e.exports=a},function(e,t,n){var i=n(2),o=n(14),a="dx-scheduler-date-time-shader",r=o.inherit({render:function(e){var t=this;this._workspace=e,this._$container=e._dateTableScrollable.$content(),this._$shader=this._createShader(),this._shader=[],this._shader.push(this._$shader),this._renderShader(),this._$shader&&this._workspace.option("crossScrollingEnabled")&&(this._$shader.css("marginTop",-this._$container.get(0).getBoundingClientRect().height),this._$shader.css("height",this._$container.get(0).getBoundingClientRect().height)),this._shader.forEach(function(e,n){t._$container.append(e)})},_createShader:function(){return i("<div>").addClass(a)},clean:function(){this._$container&&this._$container.find("."+a).remove()}});e.exports=r},function(e,t,n){var i=n(2),o=n(8),a=n(22),r=n(33),s=n(3).each,l=n(201),u=a.dateToMilliseconds,c=l.inherit({_getElementClass:function(){return"dx-scheduler-work-space-week"},_getRowCount:function(){return this._getCellCountInDay()},_getCellCount:function(){return 7*this.option("intervalCount")},_getDateByIndex:function(e){var t=new Date(this._firstViewDate);return t.setDate(this._firstViewDate.getDate()+e),t},_getFormat:function(){return this._formatWeekdayAndDay},_getStartViewDate:function(){return a.getFirstWeekDate(this.option("startDate"),this._firstDayOfWeek()||r.firstDayOfWeekIndex())},_getIntervalDuration:function(){return 7*u("day")*this.option("intervalCount")},_getCellsBetween:function(e,t){if(this._hasAllDayClass(t))return this.callBase(e,t);for(var n=this._getCells(),o=e.index(),a=e.parent().index(),r=t.index(),l=t.parent().index(),u=this._getGroupCount(),c=u>0?this._getTotalCellCount(u):this._getCellCount(),d=this._getTotalRowCount(u),h=[],p=0;p<c;p++)for(var f=0;f<d;f++){var g=n.get(c*f+p);h.push(g)}var _=this.getCellData(t).groups,m=this.option("showAllDayPanel")&&this._isVerticalGroupedWorkSpace()?this._getGroupIndexByResourceId(_)+1:0,v=d*o+a-m,y=d*r+l-m;if(v>y){var b=v;v=y,y=b}if(n=i(h).slice(v,y+1),this._getGroupCount()){var x=[],w=this._getGroupIndexByCell(e);s(n,function(e,t){var n=this._getGroupIndexByCell(i(t));w===n&&x.push(t)}.bind(this)),n=i(x)}return n},_getRightCell:function(e){if(!e)return this.callBase(e);var t,n=this._$focusedCell,i=this._getGroupCount(),o=e?this._getCellCount():this._getTotalCellCount(i),a=this._isRTL()?0:o-1,r=this._isRTL()?"prev":"next";return n.index()===a||this._isGroupEndCell(n)?t=n:(t=n[r](),t=this._checkForViewBounds(t)),t},_getLeftCell:function(e){if(!e)return this.callBase(e);var t,n=this._$focusedCell,i=this._getGroupCount(),o=e?this._getCellCount():this._getTotalCellCount(i),a=this._isRTL()?o-1:0,r=this._isRTL()?"next":"prev";return n.index()===a||this._isGroupStartCell(n)?t=n:(t=n[r](),t=this._checkForViewBounds(t)),t}});o("dxSchedulerWorkSpaceWeek",c),e.exports=c},function(e,t,n){var i=n(8),o=n(255),a=o.inherit({_getElementClass:function(){return"dx-scheduler-timeline-week"},_getCellCount:function(){return this.callBase()*this._getWeekDuration()},_setTableSizes:function(){this.callBase();var e=this.getCellWidth(),t=this.getWorkSpaceMinWidth(),n=e*this.$element().find(".dx-scheduler-header-row").last().find("th").length;n<t&&(n=t),this._$headerPanel.width(n)},_getHeaderPanelCellWidth:function(e){return e.children().first().get(0).getBoundingClientRect().width},_getWeekDuration:function(){return 7},_needRenderWeekHeader:function(){return!0},_incrementDate:function(e){e.setDate(e.getDate()+1)}});i("dxSchedulerTimelineWeek",a),e.exports=a},function(e,t,n){var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),a=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._renderingStrategy=t}return i(e,[{key:"getRenderingStrategy",value:function(){return this._renderingStrategy}},{key:"getDropDownAppointmentWidth",value:function(e,t){return t||!o.default.isDefined(t)?75*this.getRenderingStrategy().getDefaultCellWidth()/100:24}},{key:"getCompactAppointmentTopOffset",value:function(){return 3}},{key:"getCompactAppointmentLeftOffset",value:function(){return 3}},{key:"getAppointmentDefaultOffset",value:function(){return this.getRenderingStrategy()._isCompactTheme()?22:this.getRenderingStrategy().instance.option("_appointmentOffset")}},{key:"getDynamicAppointmentCountPerCell",value:function(){var e=this.getRenderingStrategy(),t=e.instance.fire("getCellHeight"),n=Math.floor((t-e._getAppointmentDefaultOffset())/e._getAppointmentDefaultHeight())||this._getAppointmentMinCount();return e.hasAllDayAppointments()?{allDay:"vertical"===e.instance._groupOrientation?n:e.instance.option("_appointmentCountPerCell"),simple:this._calculateDynamicAppointmentCountPerCell()||this._getAppointmentMinCount()}:n}},{key:"getDropDownAppointmentHeight",value:function(){}},{key:"_getAppointmentMinCount",value:function(){return 1}},{key:"_calculateDynamicAppointmentCountPerCell",value:function(){return Math.floor(this.getRenderingStrategy()._getAppointmentMaxWidth()/50)}},{key:"_getAppointmentDefaultWidth",value:function(){return 40}}]),e}();e.exports=a},function(e,t,n){var i=n(256),o=n(22),a=o.dateToMilliseconds,r=i.inherit({_needVerifyItemSize:function(){return!0},calculateAppointmentWidth:function(e,t,n){var i,o=this.getDefaultCellWidth()||this.getAppointmentMinSize(),r=this.instance.fire("getField","allDay",e),s=this.startDate(e,!1,t),l=this.endDate(e,t,n),u=this._getAppointmentDurationInMs(s,l,r);return i=(u=this._adjustDurationByDaylightDiff(u,s,l))/(this.instance.getAppointmentDurationInMinutes()*a("minute"))*o,this.cropAppointmentWidth(i,o)},_needAdjustDuration:function(e){return e<0},getAppointmentGeometry:function(e){var t=this._customizeAppointmentGeometry(e);return this.callBase(t)},_customizeAppointmentGeometry:function(e){if(this.instance.fire("getMaxAppointmentsPerCell")){var t=this._calculateGeometryConfig(e);return this._customizeCoordinates(e,t.height,t.appointmentCountPerCell,t.offset)}var n=((this.getDefaultCellHeight()||this.getAppointmentMinSize())-20)/e.count;n>100&&(n=100);var i=e.top+e.index*n;return{height:n,width:e.width,top:i,left:e.left}},_getOffsets:function(){return{unlimited:0,auto:0}},_checkLongCompactAppointment:function(e,t){if(this.instance.fire("getMaxAppointmentsPerCell"))return this._splitLongCompactAppointment(e,t),t},_getCompactLeftCoordinate:function(e,t){return e+(this.getDefaultCellWidth()||this.getAppointmentMinSize())*t},_getMaxHeight:function(){return this.getDefaultCellHeight()||this.getAppointmentMinSize()},_getAppointmentCount:function(e,t){return this._getMaxAppointmentCountPerCellByType(!1)},_getAppointmentDefaultHeight:function(){return 60},_getAppointmentMinHeight:function(){return 35},_correctRtlCoordinatesParts:function(e,t){for(var n=1;n<e.length;n++)e[n].left-=t;return e},_sortCondition:function(e,t){var n=this._columnCondition(e,t);return this._fixUnstableSorting(n,e,t)},_getMaxAppointmentWidth:function(e){var t;return this.instance.fire("getMaxAppointmentWidth",{date:e,callback:function(e){t=e}}),t},getDropDownAppointmentWidth:function(){return this.getDefaultCellWidth()-4},getDeltaTime:function(e,t){var n=e.width-t.width;return a("minute")*Math.round(n/this.getDefaultCellWidth()*this.instance.getAppointmentDurationInMinutes())},isAllDay:function(e){return this.instance.fire("getField","allDay",e)},needSeparateAppointment:function(){return this.instance.fire("isGroupedByDate")}});e.exports=r},function(e,t,n){var i=n(382),o=n(22),a=n(41),r=i.inherit({calculateAppointmentWidth:function(e,t,n){var i=new Date(this.startDate(e,!1,t)),a=new Date(this.endDate(e,t,n)),r=this.getDefaultCellWidth()||this.getAppointmentMinSize();i=o.trimTime(i);var s=Math.ceil(this._getDurationInHour(i,a)/24)*r;return this.cropAppointmentWidth(s,r)},_getDurationInHour:function(e,t){return this._adjustDurationByDaylightDiff(t.getTime()-e.getTime(),e,t)/o.dateToMilliseconds("hour")},getDeltaTime:function(e,t){return 864e5*this._getDeltaWidth(e,t)},isAllDay:function(){return!1},createTaskPositionMap:function(e,t){return t||this.instance.getAppointmentsInstance()._sortAppointmentsByStartDate(e),this.callBase(e)},_getSortedPositions:function(e,t){var n=this.callBase(e);return t||(n=a(n).sortBy("top").thenBy("left").thenBy("cellPosition").thenBy("i").toArray()),n},needCorrectAppointmentDates:function(){return!1}});e.exports=r},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},s=i(n(2)),l=i(n(5)),u=n(6),c=n(0),d=n(60),h=n(4),p=i(n(17)),f=i(n(342)),g=n(136),_=i(n(385)),m=n(137),v=i(n(386)),y="dx-filemanager-focused-item",b=function(e){function t(){return o(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,p.default),a(t,[{key:"_initMarkup",value:function(){var e=this;this._initActions(),this._setSelectedItem(),this._createFileActionsButton=h.noop,this._model=new x({rootItemText:this.option("rootFolderDisplayName"),initialDir:this.option("initialFolder"),getItems:this.option("getItems"),onSelectedItemLoaded:function(t){return e._onModelSelectedItemLoaded(t)}});var t=(0,s.default)("<div>").addClass("dx-filemanager-dirs-tree").appendTo(this.$element()),n={dataStructure:"plain",rootValue:"",createChildren:this._onFilesTreeViewCreateChildren.bind(this),itemTemplate:this._createFilesTreeViewItemTemplate.bind(this),hasItemsExpr:"dataItem.hasSubDirs",onItemClick:this._onFilesTreeViewItemClick.bind(this),onItemExpanded:function(t){var n=t.itemData;return e._model.changeItemExpandState(n,!0)},onItemCollapsed:function(t){var n=t.itemData;return e._model.changeItemExpandState(n,!1)},onItemRendered:function(t){return e._onFilesTreeViewItemRendered(t)}};this._contextMenu&&(this._contextMenu.option("onContextMenuHidden",function(){return e._onContextMenuHidden()}),n.onItemContextMenu=function(t){return e._onFilesTreeViewItemContextMenu(t)},this._createFileActionsButton=function(t,n){return e._createComponent(t,v.default,n)}),this._filesTreeView=this._createComponent(t,f.default,n),l.default.on(t,"click",this._raiseClick.bind(this))}},{key:"_onFilesTreeViewCreateChildren",value:function(e){return this._model.expandAndGetChildren(e&&e.itemData)}},{key:"_onFilesTreeViewItemClick",value:function(e){var t=e.itemElement,n=e.itemData;this._selectedItem&&this._selectedItem.dataItem.equals(n.dataItem)||(this._model.selectItem(n),this._changeSelectedItem(n,(0,s.default)(t)))}},{key:"_onFilesTreeViewItemRendered",value:function(e){var t=e.itemElement,n=e.itemData;this._selectedItem&&this._selectedItem.dataItem.equals(n.dataItem)&&this._updateFocusedElement((0,s.default)(t))}},{key:"_createFilesTreeViewItemTemplate",value:function(e,t,n){var i=this,o=(0,s.default)(n);o.closest(this._filesTreeViewItemSelector).data("item",e);var a=(0,s.default)("<div>");o.append((0,d.getImageContainer)(e.icon),(0,s.default)("<span>").text(e.text),a),this._createFileActionsButton(a,{onClick:function(e){return i._onFileItemActionButtonClick(e)}})}},{key:"_onFilesTreeViewItemContextMenu",value:function(e){var t=e.itemElement,n=e.event;n.preventDefault();var i=(0,s.default)(t).data("item");this._contextMenu.showAt([i.dataItem],t,n)}},{key:"_onFileItemActionButtonClick",value:function(e){var t=e.component,n=e.element;e.event.stopPropagation();var i=t.$element().closest(this._filesTreeViewItemSelector).data("item");this._contextMenu.showAt([i.dataItem],n),this._activeFileActionsButton=t,this._activeFileActionsButton.setActive(!0)}},{key:"_onContextMenuHidden",value:function(){this._activeFileActionsButton&&this._activeFileActionsButton.setActive(!1)}},{key:"_onModelSelectedItemLoaded",value:function(e){var t=this;this._filesTreeView?this._handleModelSelectedItemLoaded(e):setTimeout(function(){return t._handleModelSelectedItemLoaded(e)})}},{key:"_handleModelSelectedItemLoaded",value:function(e){var t=this._getItemElement(e);this._changeSelectedItem(e,t)}},{key:"_changeSelectedItem",value:function(e,t){this._setSelectedItem(e,t),this._raiseCurrentFolderChanged()}},{key:"_setSelectedItem",value:function(e,t){this._selectedItem=e||null,this._updateFocusedElement(t)}},{key:"_updateFocusedElement",value:function(e){this._$focusedElement&&this._$focusedElement.toggleClass(y,!1),this._$focusedElement=e||(0,s.default)(),this._$focusedElement.toggleClass(y,!0)}},{key:"_getItemElement",value:function(e){var t=this._filesTreeView._dataAdapter.getNodeByKey(e.id);if(t){var n=this._filesTreeView._getNodeElement(t);if(n)return n.children(this._filesTreeViewItemSelector)}return null}},{key:"_raiseCurrentFolderChanged",value:function(){this._actions.onCurrentFolderChanged()}},{key:"_raiseClick",value:function(){this._actions.onClick()}},{key:"_initActions",value:function(){this._actions={onCurrentFolderChanged:this._createActionByOption("onCurrentFolderChanged"),onClick:this._createActionByOption("onClick")}}},{key:"_getDefaultOptions",value:function(){return(0,c.extend)(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{rootFolderDisplayName:"Files",initialFolder:null,contextMenu:null,getItems:null,onCurrentFolderChanged:null,onClick:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"getItems":case"rootFolderDisplayName":case"initialFolder":case"contextMenu":this.repaint();break;case"onCurrentFolderChanged":case"onClick":this._actions[n]=this._createActionByOption(n);break;default:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"refreshData",value:function(){var e=this.getCurrentFolderPath();this._setSelectedItem(),this._model.refresh(),this._filesTreeView.option("dataSource",[]),this.getCurrentFolderPath()!==e&&this._raiseCurrentFolderChanged()}},{key:"setCurrentFolderPath",value:function(e){var t=this;if(e!==this.getCurrentFolderPath()){var n=new g.FileManagerItem((0,m.getParentPath)(e),(0,m.getName)(e),!0),i=n.getParent(),o=this._model.getItemByDataItem(n),a=i?this._model.getItemByDataItem(i):null;this._model.selectItem(o),!a||a.childrenLoaded?this._onModelSelectedItemLoaded(o):this._model.expandAndGetChildren(a).done(function(){a.expanded=!1,t._filesTreeView.expandItem(a)})}}},{key:"getCurrentFolderPath",value:function(){return this.getCurrentFolder()?this.getCurrentFolder().relativeName:null}},{key:"getCurrentFolder",value:function(){return this._selectedItem?this._selectedItem.dataItem:null}},{key:"_filesTreeViewItemSelector",get:function(){return".dx-treeview-item"}},{key:"_contextMenu",get:function(){return this.option("contextMenu")}}]),t}(),x=function(){function e(t){o(this,e),this._options=t,this._expandedDataItems={},this._selectedDataItem=null,this._initState();var n=this._options.initialDir;n&&(this._selectedDataItem=n,this._setTreeLineExpandState(n))}return a(e,[{key:"selectItem",value:function(e){this._selectedDataItem=e.dataItem}},{key:"expandAndGetChildren",value:function(e){return e?e.isRoot?this._expandAndGetChildrenForRootItem():this._expandAndGetChildrenForGeneralItem(e):(this._onItemLoaded(this._rootItem),(new u.Deferred).resolve([this._rootItem]).promise())}},{key:"refresh",value:function(){this._initState()}},{key:"changeItemExpandState",value:function(e,t){t?this._expandedDataItems[e.dataKey]=e.dataItem:delete this._expandedDataItems[e.dataKey],e.expanded=t}},{key:"getItemByDataItem",value:function(e,t){var n=this._itemMap[e.relativeName];return n?t&&(n.dataItem=e):n=this._createItem(e),n}},{key:"_expandAndGetChildrenForRootItem",value:function(){var e=this,t=Object.keys(this._expandedDataItems).filter(function(t){return e._isVisibleAndExpandedItem(t)}).map(function(t){return e._expandedDataItems[t]}).map(function(t){var n=e.getItemByDataItem(t);return e._expandAndGetChildrenForGeneralItem(n)});return(0,_.default)(t).then(function(){return e._ensureSelectedItemLoaded(),e._rootItem.children})}},{key:"_expandAndGetChildrenForGeneralItem",value:function(e){var t=this;if(e.expanded&&e.childrenLoaded)return(new u.Deferred).resolve(e.children).promise();var n=this._loadMap[e.id];if(n)return n;if(this.changeItemExpandState(e,!0),e.isRoot)n=(new u.Deferred).resolve().promise();else{var i=e.dataItem.getParent(),o=this.getItemByDataItem(i);n=this._expandAndGetChildrenForGeneralItem(o)}n=n.then(function(n){return!n||n.some(function(t){return e.dataItem.equals(t.dataItem)})?t._loadChildren(e):(t._onItemNotFound(e),[])}),this._loadMap[e.id]=n;var a=function(){delete t._loadMap[e.id]};return n.done(a).fail(a),n}},{key:"_loadChildren",value:function(e){var t=this,n=this._options.getItems(e.dataItem);return(0,u.when)(n).then(function(n){return e.children=[],n.forEach(function(n){var i=t.getItemByDataItem(n,!0);e.children.push(i),t._onItemLoaded(i)}),e.childrenLoaded=!0,e.children})}},{key:"_isVisibleAndExpandedItem",value:function(e){var t=this._expandedDataItems[e];if(!t)return!1;if(t.isRoot())return!0;var n=(0,m.getParentPath)(t.relativeName);return this._isVisibleAndExpandedItem(n)}},{key:"_setTreeLineExpandState",value:function(e){var t=this.getItemByDataItem(e);if(this.changeItemExpandState(t,!0),!t.isRoot){var n=e.getParent();this._setTreeLineExpandState(n)}}},{key:"_ensureSelectedItemLoaded",value:function(){var e=this._getSelectedItem();if(!e.isRoot&&!e.childrenLoaded){for(var t in this._itemMap)if(this._itemMap.hasOwnProperty(t)){var n=this._itemMap[t];if(n.childrenLoaded&&-1!==n.children.indexOf(e))return}this._selectedDataItem=e.dataItem.getParent(),e=this._getSelectedItem(),this._raiseSelectedItemLoaded(e)}}},{key:"_onItemLoaded",value:function(e){this._isSelectedItem(e)&&this._raiseSelectedItemLoaded(e)}},{key:"_onItemNotFound",value:function(e){if(this.changeItemExpandState(e,!1),0===this._selectedDataItem.relativeName.indexOf(e.dataItem.relativeName)){this._selectedDataItem=e.dataItem.getParent();var t=this._getSelectedItem();this._raiseSelectedItemLoaded(t)}}},{key:"_getSelectedItem",value:function(){return this.getItemByDataItem(this._selectedDataItem)}},{key:"_isSelectedItem",value:function(e){return e===this._getSelectedItem()}},{key:"_initState",value:function(){this._itemMap={},this._loadMap={};var e=new g.FileManagerItem("","",!0);e.name=this._options.rootItemText,this._rootItem=this.getItemByDataItem(e),this.changeItemExpandState(this._rootItem,!0),this._selectedDataItem||(this._selectedDataItem=e)}},{key:"_createItem",value:function(e){var t=e.relativeName,n=!e.relativeName,i=n?"":this._getTreeItemKey(e.parentPath),o=!!this._expandedDataItems[t],a={dataKey:t,childrenLoaded:!1,dataItem:e,isRoot:n,id:this._getTreeItemKey(e.relativeName),parentId:i,text:e.name,expanded:o,icon:"folder"};return this._itemMap[a.dataKey]=a,a}},{key:"_getTreeItemKey",value:function(e){return"TVK_"+e}},{key:"_raiseSelectedItemLoaded",value:function(e){this._options.onSelectedItemLoaded(e)}}]),e}();e.exports=b},function(e,t,n){var i=n(6),o=n(4);e.exports=function(e,t,n){t=t||o.noop,n=n||o.noop;var a=function(e,t,n,i){return{result:e,success:t,canceled:n||!1,error:i||null}},r=function(e,t){return{index:e,errorId:t.errorId}};if(!Array.isArray(e))return(0,i.when)(e).then(t,function(e){e&&n(r(0,e))});var s=e.map(function(e,t){return(0,i.when)(e).then(function(e){return a(e,!0)},function(e){return e&&n(r(t,e)),a(null,!1,!e,e)})});return i.when.apply(null,s).then(function(){var e=[].slice.call(arguments);return e.some(function(e){return e.success})&&t(),e})}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},r=i(n(2)),s=n(0),l=i(n(17)),u=i(n(34)),c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l.default),o(t,[{key:"_initMarkup",value:function(){var e=this;this._createClickAction();var n=(0,r.default)("<div>");this.$element().append(n).addClass("dx-filemanager-file-actions-button"),this._button=this._createComponent(n,u.default,{text:"&vellip;",stylingMode:"text",onClick:function(t){return e._raiseClick(t)},template:function(){return(0,r.default)("<i>").html("&vellip;")}}),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this)}},{key:"_createClickAction",value:function(){this._clickAction=this._createActionByOption("onClick")}},{key:"_raiseClick",value:function(e){this._clickAction(e)}},{key:"_getDefaultOptions",value:function(){return(0,s.extend)(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{cssClass:"",onClick:null})}},{key:"_optionChanged",value:function(e){switch(e.name){case"cssClass":this.repaint();break;case"onClick":this._createClickAction();break;default:a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"setActive",value:function(e){var t=this;this.$element().toggleClass("dx-filemanager-file-actions-button-activated",e),setTimeout(function(){return t._button.$element().toggleClass("dx-state-active",e)})}}]),t}();e.exports=c},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},r=n(0),s=n(154),l=n(9),u=i(n(5)),c=n(60),d=i(n(17)),h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,d.default),o(t,[{key:"_initMarkup",value:function(){this._initActions(),this.$element().addClass("dx-filemanager-files-view");var e=(0,l.addNamespace)(s.name,"dxFileManager_open");u.default.on(this.$element(),e,this._getItemSelector(),this._onItemDblClick.bind(this)),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this)}},{key:"_initActions",value:function(){this._actions={onError:this._createActionByOption("onError"),onSelectionChanged:this._createActionByOption("onSelectionChanged"),onSelectedItemOpened:this._createActionByOption("onSelectedItemOpened")}}},{key:"_getDefaultOptions",value:function(){return(0,r.extend)(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{selectionMode:"single",contextMenu:null,getItems:null,getItemThumbnail:null,onError:null,onSelectionChanged:null,onSelectedItemOpened:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"selectionMode":case"contextMenu":case"getItems":case"getItemThumbnail":this.repaint();break;case"onError":case"onSelectedItemOpened":case"onSelectionChanged":this._actions[n]=this._createActionByOption(n);break;default:a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_getItems",value:function(){var e=this.option("getItems");return e?e():[]}},{key:"_raiseOnError",value:function(e){this._actions.onError({error:e})}},{key:"_raiseSelectionChanged",value:function(){this._actions.onSelectionChanged()}},{key:"_raiseSelectedItemOpened",value:function(e){this._actions.onSelectedItemOpened({item:e})}},{key:"_getItemThumbnail",value:function(e){var t=this.option("getItemThumbnail");return t?t(e):{thumbnail:""}}},{key:"_getItemThumbnailContainer",value:function(e){var t=this._getItemThumbnail(e),n=t.thumbnail,i=t.cssClass,o=(0,c.getImageContainer)(n).addClass(this._getItemThumbnailCssClass());return i&&o.addClass(i),o}},{key:"_getItemThumbnailCssClass",value:function(){return""}},{key:"_getItemSelector",value:function(){}},{key:"_onItemDblClick",value:function(e){}},{key:"_showContextMenu",value:function(e,t,n){this._contextMenu.showAt(e,t,n)}},{key:"refreshData",value:function(){}},{key:"getSelectedItems",value:function(){}},{key:"clearSelection",value:function(){}},{key:"selectItem",value:function(){}},{key:"_contextMenu",get:function(){return this.option("contextMenu")}}]),t}();e.exports=h},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},r=i(n(2)),s=n(0),l=i(n(17)),u=i(n(46)),c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l.default),o(t,[{key:"_initMarkup",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this._createOnClosedAction();var e=this._getDialogOptions(),n=(0,r.default)("<div>").addClass("dx-filemanager-dialog-popup").appendTo(this.$element());e.popupCssClass&&n.addClass(e.popupCssClass),this._popup=this._createComponent(n,u.default,{showTitle:!0,title:e.title,visible:!1,closeOnOutsideClick:!0,contentTemplate:this._createContentTemplate.bind(this),toolbarItems:[{widget:"dxButton",toolbar:"bottom",location:"after",options:{text:e.buttonText,onClick:this._onButtonClick.bind(this)}}],onHidden:this._onPopupHidden.bind(this)})}},{key:"show",value:function(){this._dialogResult=null,this._popup.show()}},{key:"_getDialogOptions",value:function(){return{title:"Title",buttonText:"ButtonText",contentCssClass:"",popupCssClass:""}}},{key:"_createContentTemplate",value:function(e){this._$contentElement=(0,r.default)("<div>").appendTo(e).addClass("dx-filemanager-dialog");var t=this._getDialogOptions().contentCssClass;t&&this._$contentElement.addClass(t)}},{key:"_getDialogResult",value:function(){return null}},{key:"_onButtonClick",value:function(){var e=this._getDialogResult();e&&(this._dialogResult=e,this._popup.hide())}},{key:"_onPopupHidden",value:function(){this._onClosedAction({dialogResult:this._dialogResult})}},{key:"_createOnClosedAction",value:function(){this._onClosedAction=this._createActionByOption("onClosed")}},{key:"_getDefaultOptions",value:function(){return(0,s.extend)(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{onClosed:null})}},{key:"_optionChanged",value:function(e){switch(e.name){case"onClosed":this._createOnPathChangedAction();break;default:a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}}]),t}();e.exports=c},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n(4),r=n(20),s=n(3),l=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),u=n(35),c=n(136),d=function(e){function t(e){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),e=(0,a.ensureDefined)(e,{});var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),i=e.data;if(i&&!Array.isArray(i))throw u.errors.Error("E4006");var o=e.itemsExpr||"items";n._subFileItemsGetter=(0,r.compileGetter)(o),n._subFileItemsSetter=l.default.isFunction(o)?o:(0,r.compileSetter)(o);var s=n._getNameExpr(e);n._nameSetter=l.default.isFunction(s)?s:(0,r.compileSetter)(s);var c=n._getIsDirExpr(e);return n._getIsDirSetter=l.default.isFunction(c)?c:(0,r.compileSetter)(c),n._data=i||[],n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.FileProvider),o(t,[{key:"getItems",value:function(e,t){return this._getItems(e,t)}},{key:"renameItem",value:function(e,t){e.dataItem.name=t}},{key:"createFolder",value:function(e,t){var n={};this._nameSetter(n,t),this._getIsDirSetter(n,!0),this._getChildrenArray(e.dataItem).push(n)}},{key:"deleteItems",value:function(e){var t=this;(0,s.each)(e,function(e,n){return t._deleteItem(n)})}},{key:"moveItems",value:function(e,t){var n=this,i=this._getChildrenArray(t.dataItem);(0,s.each)(e,function(e,t){n._deleteItem(t),i.push(t.dataItem)})}},{key:"copyItems",value:function(e,t){var n=this,i=this._getChildrenArray(t.dataItem);(0,s.each)(e,function(e,t){var o=n._createCopy(t.dataItem);i.push(o)})}},{key:"_createCopy",value:function(e){var t=this,n={};this._nameSetter(n,this._nameGetter(e)),this._getIsDirSetter(n,this._isDirGetter(e));var i=this._subFileItemsGetter(e);if(Array.isArray(i)){var o=[];(0,s.each)(i,function(e,n){var i=t._createCopy(n);o.push(i)}),this._subFileItemsSetter(n,o)}return n}},{key:"_deleteItem",value:function(e){var t=e.parentPath,n=e.dataItem,i=this._data;if(""!==t){var o=this._findItem(t);i=this._subFileItemsGetter(o)}var a=i.indexOf(n);i.splice(a,1)}},{key:"_getChildrenArray",value:function(e){if(!e)return this._data;var t=this._subFileItemsGetter(e);return Array.isArray(t)||(t=[],this._subFileItemsSetter(e,t)),t}},{key:"_getItems",value:function(e,t){if(""===e||void 0===e)return this._convertDataObjectsToFileItems(this._data,"",t);var n=this._findItem(e),i=n&&this._subFileItemsGetter(n)||[];return this._convertDataObjectsToFileItems(i,e,t)}},{key:"_findItem",value:function(e){var t=this;if(""===e)return null;for(var n=null,o=this._data,a=e.split("/"),r=function(e){var i=a[e];if(!(n=o.filter(function(e){return t._isDirGetter(e)&&t._nameGetter(e)===i})[0]))return{v:null};var r=t._subFileItemsGetter(n);if(r)o=r;else if(e!==a.length-1)return{v:null}},s=0;s<a.length;s++){var l=r(s);if("object"===(void 0===l?"undefined":i(l)))return l.v}return n}},{key:"_hasSubDirs",value:function(e){var t=(0,a.ensureDefined)(this._subFileItemsGetter(e),[]);if(!Array.isArray(t))return!0;for(var n=0;n<t.length;n++)if(!0===this._isDirGetter(t[n]))return!0;return!1}}]),t}();e.exports=d},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=i(n(131)),r=i(n(87)),s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n._diagramWidget=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),o(t,[{key:"insert",value:function(e,t){this._dataSource.store().insert(e).done(function(e){t&&t(e)})}},{key:"update",value:function(e,t,n){this._dataSource.store().update(e,t).done(function(e,t){n&&n(t,e)})}},{key:"remove",value:function(e,t){this._dataSource.store().remove(e).done(function(e){t&&t(e)})}}]),t}();s.include(r.default),e.exports=s},function(e,t,n){var i=n(0).extend,o=n(120),a=i,r=Math.round,s=Math.sqrt,l=Math.acos,u=180/Math.PI,c=Math.abs,d=n(11),h=d.normalizeAngle,p=d.getCosAndSin,f=n(1).isDefined,g=d.getVerticallyShiftedAngularCoords,_=n(119).radialLabelIndent;e.exports=a({},o,{_updateData:function(e,t){var n=this;o._updateData.call(this,e),!t&&f(n._visible)||(n._visible=!0),n.minValue=n.initialMinValue=n.originalMinValue=f(e.minValue)?e.minValue:0},animate:function(e,t,n){var i=this;i.graphic.animate({x:i.centerX,y:i.centerY,outerRadius:i.radiusOuter,innerRadius:i.radiusInner,startAngle:i.toAngle,endAngle:i.fromAngle},{delay:n,partitionDuration:t},e)},correctPosition:function(e){var t=this;t.correctRadius(e),t.correctLabelRadius(e.radiusOuter+_),t.centerX=e.centerX,t.centerY=e.centerY},correctRadius:function(e){this.radiusInner=e.radiusInner,this.radiusOuter=e.radiusOuter},correctLabelRadius:function(e){this.radiusLabels=e},correctValue:function(e,t,n){var i=this;i.value=(n||i.normalInitialValue)+e,i.minValue=e,i.percent=t,i._label.setDataField("percent",t)},_updateLabelData:function(){this._label.setData(this._getLabelFormatObject())},_getShiftLabelCoords:function(){var e=this,t=e._label.getBoundingRect(),n=e._getLabelCoords(e._label),i=e._getVisibleArea();return e._isLabelDrawingWithoutPoints?e._checkLabelPosition(n,t,i):e._getLabelExtraCoord(n,e._checkVerticalLabelPosition(n,t,i),t)},_getLabelPosition:function(e){return e.position},_getLabelCoords:function(e){var t,n,i=this,o=e.getBoundingRect(),a=e.getLayoutOptions(),s=p(i.middleAngle),l=i._getLabelPosition(a),u=i.radiusInner,c=i.radiusOuter,d=i.radiusLabels,h="columns"===l;return"inside"===l?(t=u+(c-u)/2+a.radialOffset,n=i.centerX+t*s.cos-o.width/2):(t=d+a.radialOffset,n=s.cos>.1||h&&s.cos>=0?i.centerX+t*s.cos:s.cos<-.1||h&&s.cos<0?i.centerX+t*s.cos-o.width:i.centerX+t*s.cos-o.width/2),{x:n,y:r(i.centerY-t*s.sin-o.height/2)}},_correctLabelCoord:function(e,t){var n=this,i=n._label,o=i.getBoundingRect().width,a=i.getLayoutOptions(),r=n._getVisibleArea(),s=r.maxX-o,l=r.minX,u=h(n.middleAngle),c=n.centerX,d=a.connectorOffset,p=e.x;return"columns"===a.position?(p=u<=90||u>=270?s:l,e.x=p):"inside"!==a.position&&t&&(u<=90||u>=270?p-d<c&&(p=c+d):p+o+d>c&&(p=c-o-d),e.x=p),e},drawLabel:function(){this.translate(),this._isLabelDrawingWithoutPoints=!0,this._drawLabel(),this._isLabelDrawingWithoutPoints=!1},updateLabelCoord:function(e){var t=this,n=t._label.getBoundingRect(),i=t._correctLabelCoord(n,e);i=t._checkHorizontalLabelPosition(i,n,t._getVisibleArea()),t._label.shift(r(i.x),r(n.y))},_checkVerticalLabelPosition:function(e,t,n){var i=e.x,o=e.y;return e.y+t.height>n.maxY?o=n.maxY-t.height:e.y<n.minY&&(o=n.minY),{x:i,y:o}},_getLabelExtraCoord:function(e,t,n){return e.y!==t.y?g({x:e.x,y:e.y,width:n.width,height:n.height},t.y-e.y,{x:this.centerX,y:this.centerY}):e},_checkHorizontalLabelPosition:function(e,t,n){var i=e.x,o=e.y;return e.x+t.width>n.maxX?i=n.maxX-t.width:e.x<n.minX&&(i=n.minX),{x:i,y:o}},applyWordWrap:function(e){var t=this,n=t._label,i=n.getBoundingRect(),o=t._getVisibleArea(),a=n.getLayoutOptions().position,r=i.width,s=!1;return"columns"===a&&t.series.index>0?r=o.maxX-t.centerX-t.radiusLabels:"inside"===a?r>o.maxX-o.minX&&(r=o.maxX-o.minX):e&&i.x<t.centerX&&i.width+i.x>t.centerX?r=Math.floor((o.maxX-o.minX)/2):i.x+r>o.maxX?r=o.maxX-i.x:i.x<o.minX&&(r=i.x+r-o.minX),r<i.width&&(s=n.fit(r)),s},setLabelTrackerData:function(){this._label.setTrackerData(this)},_checkLabelPosition:function(e,t,n){return e=this._checkHorizontalLabelPosition(e,t,n),this._checkVerticalLabelPosition(e,t,n)},_getLabelConnector:function(){var e=this,t=e.radiusOuter,n=e._options.styles.normal,i=n["stroke-width"]/2,o=r(e.series.getOptions().containerBackgroundColor===n.stroke?i:-i),a=p(r(e.middleAngle));return{x:r(e.centerX+(t-o)*a.cos),y:r(e.centerY-(t-o)*a.sin),angle:e.middleAngle}},_drawMarker:function(e,t,n,i){var o=this,a=o.radiusOuter,r=o.radiusInner,s=o.fromAngle,l=o.toAngle;n&&(r=a=0,i||(s=l=o.shiftedAngle)),o.graphic=e.arc(o.centerX,o.centerY,r,a,l,s).attr({"stroke-linejoin":"round"}).smartAttr(o._getStyle()).data({"chart-data-point":o}).sharp().append(t)},getTooltipParams:function(){var e=this,t=p(e.middleAngle),n=e.radiusInner,i=e.radiusOuter;return{x:e.centerX+(n+(i-n)/2)*t.cos,y:e.centerY-(n+(i-n)/2)*t.sin,offset:0}},_translate:function(){var e=this,t=e.shiftedAngle||0,n=e.value,i=e.minValue,o=e._getValTranslator();e.fromAngle=o.translate(i)+t,e.toAngle=o.translate(n)+t,e.middleAngle=o.translate((n-i)/2+i)+t,e.isVisible()||(e.middleAngle=e.toAngle=e.fromAngle=e.fromAngle||t)},getMarkerVisibility:function(){return!0},_updateMarker:function(e,t,n,i){var o=this;e||(t=a({x:o.centerX,y:o.centerY,outerRadius:o.radiusOuter,innerRadius:o.radiusInner,startAngle:o.toAngle,endAngle:o.fromAngle},t)),o.graphic.smartAttr(t).sharp(),i&&i()},getLegendStyles:function(){return this._styles.legendStyles},isInVisibleArea:function(){return!0},hide:function(){var e=this;e._visible&&(e._visible=!1,e.hideTooltip(),e._options.visibilityChanged())},show:function(){var e=this;e._visible||(e._visible=!0,e._options.visibilityChanged())},setInvisibility:function(){this._label.draw(!1)},isVisible:function(){return this._visible},_getFormatObject:function(e){var t=o._getFormatObject.call(this,e),n=this.percent;return t.percent=n,t.percentText=e.formatValue(n,"percent"),t},getColor:function(){return this._styles.normal.fill},coordsIn:function(e,t){var n,i=this,o=e-i.centerX,a=t-i.centerY,r=s(o*o+a*a),d=i.fromAngle%360,h=i.toAngle%360;return!(r<i.radiusInner||r>i.radiusOuter||0===r)&&((n=l(o/r)*u*(a>0?-1:1))<0&&(n+=360),d===h&&c(i.toAngle-i.fromAngle)>1e-4||(d>=h?n<=d&&n>=h:!(n>=d&&n<=h)))}})},function(e,t,n){var i=n(3).each,o=n(0).extend,a=n(4).noop,r=n(266),s=n(120),l=o,u=n(1).isDefined,c=Math,d=c.abs,h=c.min,p=c.max,f=c.round;e.exports=l({},s,{deleteLabel:function(){var e=this;e._topLabel.dispose(),e._topLabel=null,e._bottomLabel.dispose(),e._bottomLabel=null},hideMarker:function(e){var t=this.graphic,n=t&&t[e+"Marker"],i=this["_"+e+"Label"];n&&"hidden"!==n.attr("visibility")&&n.attr({visibility:"hidden"}),i.draw(!1)},setInvisibility:function(){this.hideMarker("top"),this.hideMarker("bottom")},clearVisibility:function(){var e=this.graphic,t=e&&e.topMarker,n=e&&e.bottomMarker;t&&t.attr("visibility")&&t.attr({visibility:null}),n&&n.attr("visibility")&&n.attr({visibility:null})},clearMarker:function(){var e=this.graphic,t=e&&e.topMarker,n=e&&e.bottomMarker,i=this._emptySettings;t&&t.attr(i),n&&n.attr(i)},_getLabelPosition:function(e){var t="inside"===this._options.label.position;return this._options.rotated?"top"===e^t?"right":"left":"top"===e^t?"top":"bottom"},_getLabelMinFormatObject:function(){var e=this;return{index:0,argument:e.initialArgument,value:e.initialMinValue,seriesName:e.series.name,originalValue:e.originalMinValue,originalArgument:e.originalArgument,point:e}},_updateLabelData:function(){var e=this._getLabelFormatObject();e.index=1,this._topLabel.setData(e),this._bottomLabel.setData(this._getLabelMinFormatObject())},_updateLabelOptions:function(){var e=this,t=this._options.label;(!e._topLabel||!e._bottomLabel)&&e._createLabel(),e._topLabel.setOptions(t),e._bottomLabel.setOptions(t)},_createLabel:function(){var e={renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this};this._topLabel=new r.Label(e),this._bottomLabel=new r.Label(e)},_getGraphicBBox:function(e){var t=this._options,n=this._getImage(t.image),i="top"===e?this._checkImage(n.top):this._checkImage(n.bottom),o=this._getPositionFromLocation(e);return t.visible?i?this._getImageBBox(o.x,o.y):this._getSymbolBBox(o.x,o.y,t.styles.normal.r):{x:o.x,y:o.y,width:0,height:0}},_getPositionFromLocation:function(e){var t,n,i="top"===e;return this._options.rotated?(t=i?p(this.x,this.minX):h(this.x,this.minX),n=this.y):(t=this.x,n=i?h(this.y,this.minY):p(this.y,this.minY)),{x:t,y:n}},_checkOverlay:function(e,t,n){return e<t+n},_getOverlayCorrections:function(e,t){var n=this._options.rotated,i=n?"x":"y",o=n?"width":"height",a=this.series.getValueAxis().getVisibleArea(),r=a[0],s=a[1],l=f((e[i]+e[o]-t[i])/2),u=e[i]-l,c=t[i]+l;return u<r?(u+=l=r-e[i],c+=l):c+t[o]>s&&(u+=l=-(t[i]+t[o]-s),c+=l),{coord1:u,coord2:c}},_checkLabelsOverlay:function(e){var t=this,n=t._topLabel.getBoundingRect(),i=t._bottomLabel.getBoundingRect(),o={};t._options.rotated?"top"===e?this._checkOverlay(n.x,i.x,i.width)&&(o=this._getOverlayCorrections(i,n),t._topLabel.shift(o.coord2,n.y),t._bottomLabel.shift(o.coord1,i.y)):this._checkOverlay(i.x,n.x,n.width)&&(o=this._getOverlayCorrections(n,i),t._topLabel.shift(o.coord1,n.y),t._bottomLabel.shift(o.coord2,i.y)):"top"===e?this._checkOverlay(i.y,n.y,n.height)&&(o=this._getOverlayCorrections(n,i),t._topLabel.shift(n.x,o.coord1),t._bottomLabel.shift(i.x,o.coord2)):this._checkOverlay(n.y,i.y,i.height)&&(o=this._getOverlayCorrections(i,n),t._topLabel.shift(n.x,o.coord2),t._bottomLabel.shift(i.x,o.coord1))},_drawLabel:function(){var e=this,t=[],n=e._options.rotated?e.x>=e.minX:e.y<e.minY,o=e._getCustomLabelVisibility(),a=e._topLabel,r=e._bottomLabel;a.pointPosition=n?"top":"bottom",r.pointPosition=n?"bottom":"top",(e.series.getLabelVisibility()||o)&&e.hasValue()&&!1!==o?(!1!==e.visibleTopMarker&&t.push(a),!1!==e.visibleBottomMarker&&t.push(r),i(t,function(e,t){t.draw(!0)}),e._checkLabelsOverlay(e._topLabel.pointPosition)):(a.draw(!1),r.draw(!1))},_getImage:function(e){var t={};return u(e)&&("string"==typeof e?t.top=t.bottom=e:(t.top={url:"string"==typeof e.url?e.url:e.url&&e.url.rangeMaxPoint,width:"number"==typeof e.width?e.width:e.width&&e.width.rangeMaxPoint,height:"number"==typeof e.height?e.height:e.height&&e.height.rangeMaxPoint},t.bottom={url:"string"==typeof e.url?e.url:e.url&&e.url.rangeMinPoint,width:"number"==typeof e.width?e.width:e.width&&e.width.rangeMinPoint,height:"number"==typeof e.height?e.height:e.height&&e.height.rangeMinPoint})),t},_checkSymbol:function(e,t){var n=this,i=e.symbol,o=t.symbol,a="circle"===i&&"circle"!==o||"circle"!==i&&"circle"===o,r=n._getImage(e.image),s=n._getImage(t.image),l=n._checkImage(r.top)!==n._checkImage(s.top),u=n._checkImage(r.bottom)!==n._checkImage(s.bottom);return a||l||u},_getSettingsForTwoMarkers:function(e){var t=this,n=t._options,i={},o=n.rotated?h(t.x,t.minX):t.x,a=n.rotated?t.y:h(t.y,t.minY),r=e.r,s=t._populatePointShape(n.symbol,r);return i.top=l({translateX:o+t.width,translateY:a,r:r},e),i.bottom=l({translateX:o,translateY:a+t.height,r:r},e),s&&(i.top.points=i.bottom.points=s),i},_hasGraphic:function(){return this.graphic&&this.graphic.topMarker&&this.graphic.bottomMarker},_drawOneMarker:function(e,t,n,i){var o=this,a=o.graphic;a[t]?o._updateOneMarker(t,i):a[t]=o._createMarker(e,a,n,i)},_drawMarker:function(e,t,n,i,o){var a=this,r=a._getSettingsForTwoMarkers(o||a._getStyle()),s=a._getImage(a._options.image);a._checkImage(s.top)&&(r.top=a._getImageSettings(r.top,s.top)),a._checkImage(s.bottom)&&(r.bottom=a._getImageSettings(r.bottom,s.bottom)),a.graphic=a.graphic||e.g().append(t),a.visibleTopMarker&&a._drawOneMarker(e,"topMarker",s.top,r.top),a.visibleBottomMarker&&a._drawOneMarker(e,"bottomMarker",s.bottom,r.bottom)},_getSettingsForTracker:function(e){var t=this,n=t._options.rotated;return{translateX:n?h(t.x,t.minX)-e:t.x-e,translateY:n?t.y-e:h(t.y,t.minY)-e,width:t.width+2*e,height:t.height+2*e}},isInVisibleArea:function(){var e,t,n,i,o,a=this,r=a._options.rotated,s=r?a.y:a.x,l=r?p(a.minX,a.x):p(a.minY,a.y),u=r?h(a.minX,a.x):h(a.minY,a.y),c=!0,d=!0,f=!0;return i=a.series.getArgumentAxis().getVisibleArea(),o=a.series.getValueAxis().getVisibleArea(),e=i[1]<s||i[0]>s,t=o[0]>u&&o[0]>l||o[1]<u&&o[1]<l,e||t?c=d=f=!1:(c=o[0]<=u&&o[1]>u,d=o[0]<l&&o[1]>=l,r&&(n=c,c=d,d=n)),a.visibleTopMarker=c,a.visibleBottomMarker=d,f},getTooltipParams:function(){var e,t,n=this,i=n._options.rotated,o=i?h(n.x,n.minX):h(n.y,n.minY),a=i?"width":"height",r=n._getVisibleArea(),s=i?r.minX:r.minY,l=i?r.maxX:r.maxY,u=p(s,o),c=h(l,o+n[a]);return i?(t=n.y,e=u+(c-u)/2):(e=n.x,t=u+(c-u)/2),{x:e,y:t,offset:0}},_translate:function(){var e=this,t=e._options.rotated;s._translate.call(e),e.height=t?0:d(e.minY-e.y),e.width=t?d(e.x-e.minX):0},hasCoords:function(){return s.hasCoords.call(this)&&!(null===this.minX||null===this.minY)},_updateData:function(e){var t=this;s._updateData.call(t,e),t.minValue=t.initialMinValue=t.originalMinValue=e.minValue},_getImageSettings:function(e,t){return{href:t.url||t.toString(),width:t.width||20,height:t.height||20,translateX:e.translateX,translateY:e.translateY}},getCrosshairData:function(e,t){var n=this,i=n._options.rotated,o=n.minX,a=n.minY,r=n.vx,s=n.vy,l=n.value,u=n.minValue,c=n.argument,h={axis:n.series.axis,x:r,y:s,yValue:l,xValue:c};return i?(h.yValue=c,d(r-e)<d(o-e)?h.xValue=l:(h.x=o,h.xValue=u)):d(s-t)>=d(a-t)&&(h.y=a,h.yValue=u),h},_updateOneMarker:function(e,t){this.graphic&&this.graphic[e]&&this.graphic[e].attr(t)},_updateMarker:function(e,t){this._drawMarker(void 0,void 0,!1,!1,t)},_getFormatObject:function(e){var t=this,n=t.initialMinValue,i=t.initialValue,o=t.initialArgument,a=e.formatValue(n),r=e.formatValue(i);return{argument:o,argumentText:e.formatValue(o,"argument"),valueText:a+" - "+r,rangeValue1Text:a,rangeValue2Text:r,rangeValue1:n,rangeValue2:i,seriesName:t.series.name,point:t,originalMinValue:t.originalMinValue,originalValue:t.originalValue,originalArgument:t.originalArgument}},getLabel:function(){return[this._topLabel,this._bottomLabel]},getLabels:function(){return[this._topLabel,this._bottomLabel]},getBoundingRect:a,coordsIn:function(e,t){var n=this._storeTrackerR(),i=e>=this.x-n&&e<=this.x+n,o=t>=this.y-n&&t<=this.y+n;return this._options.rotated?o&&(i||e>=this.minX-n&&e<=this.minX+n):i&&(o||t>=this.minY-n&&t<=this.minY+n)},getMaxValue:function(){return"discrete"!==this.series.valueAxisType&&this.minValue>this.value?this.minValue:this.value},getMinValue:function(){return"discrete"!==this.series.valueAxisType?this.minValue<this.value?this.minValue:this.value:this.minValue}})},function(e,t,n){var i=n(0).extend,o=n(120),a=n(204),r=Math,s=r.abs,l=r.min,u=r.max,c=r.round;e.exports=i({},a,{_getContinuousPoints:function(e,t){var n=this,i=n.x,o=n._options.rotated?function(e,t){return[t,e]}:function(e,t){return[e,t]},a=n.width,r=n.highY,l=s(r-e)<s(r-t)?e:t,u=l===t?e:t;return u===l?[].concat(o(i,n.highY)).concat(o(i,n.lowY)).concat(o(i,n.closeY)).concat(o(i-a/2,n.closeY)).concat(o(i+a/2,n.closeY)).concat(o(i,n.closeY)):[].concat(o(i,n.highY)).concat(o(i,l)).concat(o(i+a/2,l)).concat(o(i+a/2,u)).concat(o(i,u)).concat(o(i,n.lowY)).concat(o(i,u)).concat(o(i-a/2,u)).concat(o(i-a/2,l)).concat(o(i,l))},_getCrockPoints:function(e){var t=this,n=t.x,i=t._options.rotated?function(e,t){return[t,e]}:function(e,t){return[e,t]};return[].concat(i(n,t.highY)).concat(i(n,t.lowY)).concat(i(n,e)).concat(i(n-t.width/2,e)).concat(i(n+t.width/2,e)).concat(i(n,e))},_getPoints:function(){var e=this,t=e.closeY,n=e.openY;return null!==t&&null!==n?e._getContinuousPoints(n,t):n===t?[e.x,e.highY,e.x,e.lowY]:e._getCrockPoints(null!==n?n:t)},getColor:function(){var e=this;return e._isReduction?e._options.reduction.color:e._styles.normal.stroke||e.series.getColor()},_drawMarkerInGroup:function(e,t,n){var i=this;i.graphic=n.path(i._getPoints(),"area").attr({"stroke-linecap":"square"}).attr(t).data({"chart-data-point":i}).sharp().append(e)},_fillStyle:function(){var e=this,t=e._options.styles;e._isReduction&&e._isPositive?e._styles=t.reductionPositive:e._isReduction?e._styles=t.reduction:e._isPositive?e._styles=t.positive:e._styles=t},_getMinTrackerWidth:function(){return 2+2*this._styles.normal["stroke-width"]},correctCoordinates:function(e){var t=this._getMinTrackerWidth(),n=e.width;n=n<t?t:n>10?10:n,this.width=n+n%2,this.xCorrection=e.offset},_getMarkerGroup:function(e){var t=this;return t._isReduction&&t._isPositive?e.reductionPositiveMarkersGroup:t._isReduction?e.reductionMarkersGroup:t._isPositive?e.defaultPositiveMarkersGroup:e.defaultMarkersGroup},_drawMarker:function(e,t){this._drawMarkerInGroup(this._getMarkerGroup(t),this._getStyle(),e)},_getSettingsForTracker:function(){var e,t,n,i,o=this,a=o.highY,r=o.lowY,u=o._options.rotated;return a===r&&(a=u?a+2:a-2,r=u?r-2:r+2),u?(e=l(r,a),t=o.x-o.width/2,n=s(r-a),i=o.width):(e=o.x-o.width/2,t=l(r,a),n=o.width,i=s(r-a)),{x:e,y:t,width:n,height:i}},_getGraphicBBox:function(){var e=this,t=e._options.rotated,n=e.x,i=e.width,o=e.lowY,a=e.highY;return{x:t?o:n-c(i/2),y:t?n-c(i/2):a,width:t?a-o:i,height:t?i:o-a}},getTooltipParams:function(e){var t=this;if(t.graphic){var n,i,o=l(t.lowY,t.highY),a=u(t.lowY,t.highY),r=t._getVisibleArea(),s="edge"===e,c=t._options.rotated,d=c?r.minX:r.minY,h=c?r.maxX:r.maxY,p=u(d,o),f=l(h,a),g=p+(f-p)/2;return c?(i=t.x,n=s?f:g):(n=t.x,i=s?p:g),{x:n,y:i,offset:0}}},hasValue:function(){return null!==this.highValue&&null!==this.lowValue},hasCoords:function(){return null!==this.x&&null!==this.lowY&&null!==this.highY},_translate:function(){var e,t=this,n=t._options.rotated,i=t._getValTranslator(),o=t._getArgTranslator().translate(t.argument);t.vx=t.vy=t.x=null===o?o:o+(t.xCorrection||0),t.openY=null!==t.openValue?i.translate(t.openValue):null,t.highY=i.translate(t.highValue),t.lowY=i.translate(t.lowValue),t.closeY=null!==t.closeValue?i.translate(t.closeValue):null,e=l(t.lowY,t.highY)+s(t.lowY-t.highY)/2,t._calculateVisibility(n?e:t.x,n?t.x:e)},getCrosshairData:function(e,t){var n,i,o=this,a=o._options.rotated,r=a?e:t,l=o.argument,u="low";return s(o.lowY-r)<s(o.closeY-r)?n=o.lowY:(n=o.closeY,u="close"),s(n-r)>=s(o.openY-r)&&(n=o.openY,u="open"),s(n-r)>=s(o.highY-r)&&(n=o.highY,u="high"),(i=a?{y:o.vy,x:n,xValue:o[u+"Value"],yValue:l}:{x:o.vx,y:n,xValue:l,yValue:o[u+"Value"]}).axis=o.series.axis,i},_updateData:function(e){var t=this,n=t._label,i=this._options.reduction.color;t.value=t.initialValue=e.reductionValue,t.originalValue=e.value,t.lowValue=t.originalLowValue=e.lowValue,t.highValue=t.originalHighValue=e.highValue,t.openValue=t.originalOpenValue=e.openValue,t.closeValue=t.originalCloseValue=e.closeValue,t._isPositive=e.openValue<e.closeValue,t._isReduction=e.isReduction,t._isReduction&&n.setColor(i)},_updateMarker:function(e,t,n){var i=this,o=i.graphic;o.attr({points:i._getPoints()}).smartAttr(t).sharp(),n&&o.append(i._getMarkerGroup(n))},_getLabelFormatObject:function(){var e=this;return{openValue:e.openValue,highValue:e.highValue,lowValue:e.lowValue,closeValue:e.closeValue,reductionValue:e.initialValue,argument:e.initialArgument,value:e.initialValue,seriesName:e.series.name,originalOpenValue:e.originalOpenValue,originalCloseValue:e.originalCloseValue,originalLowValue:e.originalLowValue,originalHighValue:e.originalHighValue,originalArgument:e.originalArgument,point:e}},_getFormatObject:function(e){var t=this,n=e.formatValue(t.highValue),a=e.formatValue(t.openValue),r=e.formatValue(t.closeValue),s=e.formatValue(t.lowValue),l=o._getFormatObject.call(t,e);return i({},l,{valueText:"h: "+n+(""!==a?" o: "+a:"")+(""!==r?" c: "+r:"")+" l: "+s,highValueText:n,openValueText:a,closeValueText:r,lowValueText:s})},getMaxValue:function(){return this.highValue},getMinValue:function(){return this.lowValue}})},function(e,t,n){var i=n(4).noop,o=n(1),a=n(0).extend,r=n(261).BaseThemeManager,s=o.isString,l=o.isDefined,u=n(11).normalizeEnum,c=r.inherit(function(){var e=function(e){return e?((e=a(!0,{},e)).title=function(e){return s(e)?{text:e}:e}(e.title),("logarithmic"===e.type&&e.logarithmBase<=0||e.logarithmBase&&!o.isNumeric(e.logarithmBase))&&(e.logarithmBase=void 0,e.logarithmBaseError=!0),e.label&&e.label.alignment&&(e.label.userAlignment=!0),e):{}},t=function(t,n,i){var o=this._theme,r=i^"valueAxis"===t?"verticalAxis":"horizontalAxis",s=e(n),u=e(this._userOptions.commonAxisSettings),c=a(!0,{},o.commonAxisSettings,o[r],o[t],u,s);return c.workWeek=s.workWeek||o[t].workWeek,c.forceUserTickInterval|=l(s.tickInterval)&&!l(s.axisDivisionFactor),c},n=function(e,t){t=t||this._userOptions[e];var n=this._theme[e],i=this._mergedSettings[e];return i||(i=o.isPlainObject(n)&&o.isPlainObject(t)?a(!0,{},n,t):l(t)?t:n,this._mergedSettings[e]=i,i)},r={base:n,argumentAxis:t,valueAxisRangeSelector:function(){return n.call(this,"valueAxis")},valueAxis:t,series:function(e,t,n){var i,o,s,l=this,d=l._theme,h=l._userOptions.commonSeriesSettings||{},p=d.commonSeriesSettings,f=l._themeSection.split(".").slice(-1)[0],g=u(t.type||h.type||p.type||"pie"===f&&d.type),_=l.palette,m=~g.indexOf("bar"),v=~g.indexOf("line"),y=~g.indexOf("area"),b="bubble"===g,x=l.getOptions("resolveLabelsOverlapping"),w=l.getOptions("containerBackgroundColor"),C=r.seriesTemplate.call(this);return(m||b)&&(s=(t=a(!0,{},h,h[g],t)).visible,h={type:{}},a(!0,t,t.point),t.visible=s),(i=a(!0,{aggregation:{}},p,p[g],h,h[g],t)).aggregation.enabled="chart"===f&&c(i.aggregation,l.getOptions("useAggregation")),i.type=g,i.widgetType=f,i.containerBackgroundColor=w,o="pie"!==f?i.color||_.getNextColor(n):function(e,t,n){var i=e+"-"+t;return l._multiPieColors[i]||(l._multiPieColors[i]=_.getNextColor(n)),l._multiPieColors[i]},i.mainSeriesColor=o,i.resolveLabelsOverlapping=x,i.label&&(v||y&&"rangearea"!==g||"scatter"===g)&&(i.label.position="outside"),C&&(i.nameField=C.nameField),i},animation:function(e){var t=this._userOptions[e];return t=o.isPlainObject(t)?t:l(t)?{enabled:!!t}:{},n.call(this,e,t)},seriesTemplate:function(){var e=n.call(this,"seriesTemplate");return e&&(e.nameField=e.nameField||"series"),e},zoomAndPan:function(){function e(e){var t="pan"===(e=u(e))||"both"===e,n="zoom"===e||"both"===e;return{pan:t,zoom:n,none:!t&&!n}}var t=this._userOptions.zoomAndPan;if(!l(t)){var i=u(this.getOptions("zoomingMode")),o=u(this.getOptions("scrollingMode")),a=-1!==["all","mouse","touch"].indexOf(i),r=-1!==["all","mouse","touch"].indexOf(o);t={argumentAxis:a&&r?"both":a?"zoom":r?"pan":"none",allowMouseWheel:"all"===i||"mouse"===i,allowTouchGestures:"all"===i||"touch"===i||"all"===o||"touch"===o}}var s=n.call(this,"zoomAndPan",t);return{valueAxis:e(s.valueAxis),argumentAxis:e(s.argumentAxis),dragToZoom:!!s.dragToZoom,dragBoxStyle:{class:"dxc-shutter",fill:s.dragBoxStyle.color,opacity:s.dragBoxStyle.opacity},panKey:s.panKey,allowMouseWheel:!!s.allowMouseWheel,allowTouchGestures:!!s.allowTouchGestures}}},c=function(e,t){return!!(l(e.enabled)?e.enabled:t)};return{_themeSection:"chart",ctor:function(e){var t=this;t.callBase.apply(t,arguments);var n=e.options||{};t._userOptions=n,t._mergeAxisTitleOptions=[],t._multiPieColors={},t._callback=i},dispose:function(){var e=this;return e.palette&&e.palette.dispose(),e.palette=e._userOptions=e._mergedSettings=e._multiPieColors=null,e.callBase.apply(e,arguments)},resetPalette:function(){this.palette.reset(),this._multiPieColors={}},getOptions:function(e){return(r[e]||r.base).apply(this,arguments)},refresh:function(){return this._mergedSettings={},this.callBase.apply(this,arguments)},_initializeTheme:function(){var e=this;e.callBase.apply(e,arguments),e.updatePalette()},resetOptions:function(e){this._mergedSettings[e]=null},update:function(e){this._userOptions=e},updatePalette:function(){var e=this;e.palette=e.createPalette(e.getOptions("palette"),{useHighlight:!0,extensionMode:e.getOptions("paletteExtensionMode")})}}}());t.ThemeManager=c},function(e,t,n){function i(e,t,n){return n<e?e:t<n?t:n}function o(e){if(e._label.isVisible()&&"inside"!==e._label.getLayoutOptions().position)return e._label.getBoundingRect()}function a(e,t,n,a,r){return e.some(function(e){return e.getVisiblePoints().reduce(function(e,s){var l=o(s);if(l){var u=i(l.x,l.x+l.width,t),c=i(l.y,l.y+l.height,n);a=g(_(function(e,t,n,i){return v((e-n)*(e-n)+(t-i)*(t-i))}(u,c,t,n)-b,r),a),e=!0}return e},!1)}),a}function r(e){return e.reduce(function(e,t){var n=t.getVisiblePoints().reduce(function(e,t){var n=o(t);return n&&n.width>e&&(e=n.width),e},0),i=n;return n&&(e.outerLabelsCount++,e.outerLabelsCount>1&&(n+=y.pieLabelSpacing),i+=y.pieLabelSpacing),e.sizes.push(n),e.rSizes.push(i),e.common+=n,e},{sizes:[],rSizes:[],common:0,outerLabelsCount:0})}function s(e,t,n,i,o,a){var r,s,l=0,u=e.sizes,c=e.rSizes;for(s=0;s<n.length;s++)0!==u[s]?(r=m(r?r+c[s-1]:t),n[s].correctLabelRadius(r),l+=o||u[s],c[s]=o||c[s],n[s].setVisibleArea({left:m(a-t-l),right:m(i.width-(a+t+l)),top:i.top,bottom:i.bottom,width:i.width,height:i.height})):r&&(r+=c[s-1])}function l(e){var t;return"pie"===e.type?t=0:t=(t=(t=f(e.innerRadius)?Number(e.innerRadius):.5)<.2?.2:t)>.8?.8:t,t}function u(){}function c(e,t,n,i){return(e-t-b-n.left)/i.outerLabelsCount}function d(e,t,n,i,o,l){var u,d=r(n),h=function(e,t,n){return e-t.left-(n.outerLabelsCount>0?n.common+b:0)}(o,t,d);return h<i?u=c(o,e=i,t,d):e=g(a(n,o,l,e,i),h),s(d,e+b,n,t,u,o),e}var h=n(0).extend,p=n(262),f=n(1).isNumeric,g=Math.min,_=Math.max,m=Math.floor,v=Math.sqrt,y=n(119),b=y.radialLabelIndent,x={left:"right",right:"left",top:"bottom",bottom:"top",center:"center"};u.prototype={constructor:u,setOptions:function(e){this._options=e},applyPieChartSeriesLayout:function(e,t,n){var i,o,a=e.height-e.top-e.bottom,r=e.width-e.left-e.right,s=r/2+e.left,u=a/2+e.top,c=this._options.piePercentage;return f(c)?i=o=c*g(e.height,e.width)/2:(i=g(r,a)/2,o=this._options.minPiePercentage*i),n||(i=d(i,e,t,o,s,u)),{centerX:m(s),centerY:m(u),radiusInner:m(i*l(t[0])),radiusOuter:m(i)}},applyEqualPieChartLayout:function(e,t){var n=t.radius;return{centerX:m(t.x),centerY:m(t.y),radiusInner:m(n*l(e[0])),radiusOuter:m(n)}},correctPieLabelRadius:function(e,t,n){var i,o=r(e),a=t.radiusOuter+b,l=t.centerX-n.left-a;o.common+b>l&&(i=c(t.centerX,t.radiusOuter,n,o)),s(o,a,e,n,i,t.centerX)},needMoreSpaceForPanesCanvas:function(e,t){var n=this._options,i=n.width,o=n.height,a=n.piePercentage,r=f(a),s=0,l=0;return e.forEach(function(e){var n=e.canvas,u=r?g(n.width,n.height)*a:void 0,c=(r?u:i)-(n.width-n.left-n.right),d=(r?u:o)-(n.height-n.top-n.bottom);t?(s+=c>0?c:0,l=_(d>0?d:0,l)):(s=_(c>0?c:0,s),l+=d>0?d:0)}),(s>0||l>0)&&{width:s,height:l}},layoutElements:function(e,t,n,i,o){this._elements=e,this._probeDrawing(t),this._drawElements(t),n(),this._processAdaptiveLayout(i,o,t,n),this._positionElements(t)},_processAdaptiveLayout:function(e,t,n,i){var o=this.needMoreSpaceForPanesCanvas(e,t),a=this._elements;o&&(a.slice().reverse().forEach(function(e){var t,i,a=e.getLayoutOptions(),r=!1;if(a){if(t=h({},a),r="vertical"===a.cutSide&&o.width<0||"horizontal"===a.cutSide&&o.height<0||"vertical"===a.cutSide&&o.height>0||"horizontal"===a.cutSide&&o.width>0,i="horizontal"===a.cutSide?"width":"height",r){var s=t.width-o.width,l=t.height-o.height;"height"===i&&o.width<0&&(s=n.width-n.left-n.right),"width"===i&&o.height<0&&(l=n.height-n.top-n.bottom),e.draw(s,l)}!function(e,t,i){e.getLayoutOptions()[i]||(n[t.cutLayoutSide]-=t[i],o[i]=o[i]-t[i])}(e,a,i)}}),i(o))},_probeDrawing:function(e){var t=this;this._elements.forEach(function(n){var i,o=n.getLayoutOptions();o&&(i={width:e.width-e.left-e.right,height:e.height-e.top-e.bottom},"vertical"===o.cutSide?i.height-=t._options.height:i.width-=t._options.width,n.probeDraw(i.width,i.height),function(e,t){e[t.cutLayoutSide]+="horizontal"===t.cutSide?t.width:t.height}(e,n.getLayoutOptions()))})},_drawElements:function(e){this._elements.slice().reverse().forEach(function(t){var n,i,o=t.getLayoutOptions();o&&((n={width:e.width-e.left-e.right,height:e.height-e.top-e.bottom})[i="horizontal"===o.cutSide?"width":"height"]=o[i],t.draw(n.width,n.height))})},_positionElements:function(e){var t={left:0,right:0,top:0,bottom:0};this._elements.slice().reverse().forEach(function(n){var i,o,a,r=n.getLayoutOptions();r&&(i=r.position,o=r.cutSide,(a={horizontal:i.horizontal,vertical:i.vertical})[o]=x[a[o]],n.position({of:function(e){return new p.WrapperLayoutElement(null,{x:e.left,y:e.top,width:e.width-e.left-e.right,height:e.height-e.top-e.bottom})}(e),my:a,at:i,offset:function(e,t){var n=e.cutLayoutSide,i={horizontal:0,vertical:0};switch(n){case"top":case"left":i[e.cutSide]=-t[n];break;case"bottom":case"right":i[e.cutSide]=t[n]}return i}(r,t)}),t[r.cutLayoutSide]+=r["horizontal"===r.cutSide?"width":"height"])})}},t.LayoutManager=u},function(e,t,n){function i(e){return p(e)?0===e.length?[{}]:e:[e]}var o=n(0).extend,a=n(13).inArray,r=n(3),s=n(109),l="defaultAxisName",u=n(268),c=n(401),d=n(260).BaseChart,h=n(402),p=Array.isArray,f=n(1).isDefined,g=r.each,_=r.reverseEach,m=n(4).noop,v=o,y=n(11),b=y.map,x=y.mergeMarginOptions,w="font",C="commonAxisSettings",k=d.inherit({_setDeprecatedOptions:function(){this.callBase.apply(this,arguments),v(this._deprecatedOptions,{barWidth:{since:"18.1",message:"Use the 'commonSeriesSettings.barPadding' or 'series.barPadding' option instead"},equalBarWidth:{since:"18.1",message:"Use the 'commonSeriesSettings.ignoreEmptyPoints' or 'series.ignoreEmptyPoints' option instead"}})},_fontFields:[C+".label."+w,C+".title."+w],_dispose:function(){var e=this,t=this._disposeObjectsInArray;e.callBase(),e.panes=null,e._legend&&(e._legend.dispose(),e._legend=null),t.call(e,"panesBackground"),t.call(e,"seriesFamilies"),e._disposeAxes()},_reinitAxes:function(){this.panes=this._createPanes(),this._populateAxes(),this._axesReinitialized=!0},_getCrosshairMargins:function(){var e=this._getCrosshairOptions()||{},t=e.enabled,n=h.getMargins();return{x:t&&e.horizontalLine.visible?n.x:0,y:t&&e.verticalLine.visible?n.y:0}},_populateAxes:function(){var e,t,n=this,o=n.panes,r=n._isRotated(),s=i(n.option("argumentAxis")||{})[0],u=n.option("valueAxis"),c=i(u||{}),d=[],h=[],f=0,_=n._getCrosshairMargins();t=r?"right"===s.position?o[o.length-1].name:o[0].name:"top"===s.position?o[0].name:o[o.length-1].name,e=b(o,function(e){var i=e.name!==t;return n._populateAxesOptions("argumentAxis",s,{pane:e.name,name:null,optionPath:"argumentAxis",crosshairMargin:r?_.x:_.y},r,i)}),g(c,function(e,t){var i=[],o=t.name;return o&&-1!==a(o,h)?void n._incidentOccurred("E2102"):(o&&h.push(o),t.pane&&i.push(t.pane),t.panes&&t.panes.length&&(i=i.concat(t.panes.slice(0))),(i=y.unique(i)).length||i.push(void 0),void g(i,function(i,a){var s=p(u)?"valueAxis["+e+"]":"valueAxis";d.push(n._populateAxesOptions("valueAxis",t,{name:o||l+f++,pane:a,priority:e,optionPath:s,crosshairMargin:r?_.y:_.x},r))}))}),n._redesignAxes(e,!0,t),n._redesignAxes(d,!1)},_redesignAxes:function(e,t,n){var i=this,o=[],a=t?i._argumentAxes:i._valueAxes;g(e,function(e,t){var n=a&&a.filter(function(e){return e.name===t.name&&(!f(t.pane)&&i.panes.some(function(t){return t.name===e.pane})||e.pane===t.pane)});n&&n.length>0?g(n,function(e,n){n.updateOptions(t),o.push({axis:n})}):o.push({options:t})}),a?_(a,function(e,n){o.some(function(e){return e.axis&&e.axis===n})||i._disposeAxis(e,t)}):a=t?i._argumentAxes=[]:i._valueAxes=[],g(o,function(e,o){var r=o.axis;o.axis&&t?o.axis.isVirtual=o.axis.pane!==n:o.options&&(r=i._createAxis(t,o.options,t?o.options.pane!==n:void 0,t?e:void 0),a.push(r)),r.applyVisualRangeSetter(i._getVisualRangeSetter())})},_disposeAxis:function(e,t){var n=t?this._argumentAxes:this._valueAxes,i=n[e];i&&(i.dispose(),n.splice(e,1))},_prepareStackPoints:function(e,t){var n=e.getPoints(),i=e.getStackName();g(n,function(e,n){var o=n.argument;t[o]||(t[o]={},t[o].null=[]),i&&!p(t[o][i])&&(t[o][i]=[],g(t[o].null,function(e,n){n.stackName||t[o][i].push(n)})),i?(t[o][i].push(n),t[o].null.push(n)):g(t[o],function(e,t){t.push(n)}),n.stackPoints=t[o][i],n.stackName=i})},_resetStackPoints:function(e){g(e.getPoints(),function(e,t){t.stackPoints=null,t.stackName=null})},_disposeAxes:function(){var e=this,t=e._disposeObjectsInArray;t.call(e,"_argumentAxes"),t.call(e,"_valueAxes")},_appendAdditionalSeriesGroups:function(){this._crosshairCursorGroup.linkAppend(),this._scrollBar&&this._scrollBarGroup.linkAppend()},_getLegendTargets:function(){var e=this;return(this.series||[]).map(function(t){var n=e._getLegendOptions(t);return n.legendData.series=t,t.getOptions().showInLegend||(n.legendData.visible=!1),n})},_legendItemTextField:"name",_seriesPopulatedHandlerCore:function(){this._processSeriesFamilies(),this._processValueAxisFormat()},_renderTrackers:function(){var e;for(e=0;e<this.series.length;++e)this.series[e].drawTrackers()},_specialProcessSeries:function(){this._processSeriesFamilies()},_processSeriesFamilies:function(){var e,t=this,n=[],i=[],o=t._themeManager,r=o.getOptions("negativesAsZeroes"),s=o.getOptions("negativesAsZeros"),l={equalBarWidth:o.getOptions("equalBarWidth"),minBubbleSize:o.getOptions("minBubbleSize"),maxBubbleSize:o.getOptions("maxBubbleSize"),barWidth:o.getOptions("barWidth"),barGroupPadding:o.getOptions("barGroupPadding"),barGroupWidth:o.getOptions("barGroupWidth"),negativesAsZeroes:f(r)?r:s};return t.seriesFamilies&&t.seriesFamilies.length?void g(t.seriesFamilies,function(e,t){t.updateOptions(l),t.adjustSeriesValues()}):(g(t.series,function(e,t){-1===a(t.type,n)&&n.push(t.type)}),g(t._getLayoutTargets(),function(o,a){e=t._getSeriesForPane(a.name),g(n,function(n,o){var r=new c.SeriesFamily({type:o,pane:a.name,equalBarWidth:l.equalBarWidth,minBubbleSize:l.minBubbleSize,maxBubbleSize:l.maxBubbleSize,barWidth:l.barWidth,barGroupPadding:l.barGroupPadding,barGroupWidth:l.barGroupWidth,negativesAsZeroes:l.negativesAsZeroes,rotated:t._isRotated()});r.add(e),r.adjustSeriesValues(),i.push(r)})}),void(t.seriesFamilies=i))},_updateSeriesDimensions:function(){var e,t=this.seriesFamilies||[];for(e=0;e<t.length;e++){var n=t[e];n.updateSeriesValues(),n.adjustSeriesDimensions()}},_getLegendCallBack:function(e){return this._legend&&this._legend.getActionCallback(e)},_appendAxesGroups:function(){var e=this;e._stripsGroup.linkAppend(),e._gridGroup.linkAppend(),e._axesGroup.linkAppend(),e._constantLinesGroup.linkAppend(),e._labelAxesGroup.linkAppend(),e._scaleBreaksGroup.linkAppend()},_populateMarginOptions:function(){var e=this,t=function(e,t,n,i){var o=i?e.width/t:e.width,a=i?e.height:e.height/t;return Math.min(o,a)*n}(e.getSize(),e.panes.length,e._themeManager.getOptions("maxBubbleSize"),e._isRotated()),n={};e._valueAxes.forEach(function(i){var o=e.series.filter(function(e){return e.getValueAxis()===i}),a={};o.forEach(function(e){if(e.isVisible()){var i=function(e,t){return e.processBubbleSize&&(e.size=t),e}(e.getMarginOptions(),t);a=x(a,i),n=x(n,i)}}),i.setMarginOptions(a)}),e._argumentAxes.forEach(function(e){return e.setMarginOptions(n)})},_populateBusinessRange:function(e){var t=this,n=t._isRotated(),i=new s.Range({rotated:!!n}),o=t._getVisibleSeries();t._valueAxes.forEach(function(a){var r=new s.Range({rotated:!!n,pane:a.pane,axis:a.name}),l=o.filter(function(e){return e.getValueAxis()===a});l.forEach(function(e){var t=e.getRangeData();r.addRange(t.val),i.addRange(t.arg)}),(!e||e&&l.length&&a===e)&&(a.setGroupSeries(l),a.setBusinessRange(r,t._axesReinitialized,t._argumentAxes[0]._lastVisualRangeUpdateMode))}),(!e||e&&o.length)&&t._argumentAxes.forEach(function(e){return e.setBusinessRange(i,t._axesReinitialized)}),t._axesReinitialized=!1,t._populateMarginOptions()},getArgumentAxis:function(){return(this._argumentAxes||[]).filter(function(e){return!e.isVirtual})[0]},getValueAxis:function(e){var t=this;return(this._valueAxes||[]).filter(f(e)?function(t){return t.name===e}:function(e){return e.pane===t.defaultPane})[0]},_getGroupsData:function(){var e=this,t=[];return e._valueAxes.forEach(function(n){t.push({series:e.series.filter(function(e){return e.getValueAxis()===n}),valueAxis:n,valueOptions:n.getOptions()})}),{groups:t,argumentAxes:e._argumentAxes,argumentOptions:e._argumentAxes[0].getOptions()}},_groupSeries:function(){var e=this;e._correctValueAxes(!1),e._groupsData=e._getGroupsData()},_processValueAxisFormat:function(){var e=[];this.series.forEach(function(t){var n=t.getValueAxis();t.isFullStackedSeries()&&(n.setPercentLabelFormat(),e.push(n))}),this._valueAxes.forEach(function(t){-1===e.indexOf(t)&&t.resetAutoLabelFormat()})},_populateAxesOptions:function(e,t,n,i,o){var a=this._prepareStripsAndConstantLines(e,t,i),r=v(!0,{},a,n,this._prepareAxisOptions(e,a,i));return o&&(r.visible=r.tick.visible=r.minorTick.visible=r.label.visible=!1,r.title={}),r},_createAxis:function(e,t,n,i){var o=this,a=e?"argumentAxis":"valueAxis",r=v({renderer:o._renderer,incidentOccurred:o._incidentOccurred,eventTrigger:o._eventTrigger,axisClass:e?"arg":"val",widgetClass:"dxc",stripsGroup:o._stripsGroup,labelAxesGroup:o._labelAxesGroup,constantLinesGroup:o._constantLinesGroup,scaleBreaksGroup:o._scaleBreaksGroup,axesContainerGroup:o._axesGroup,gridGroup:o._gridGroup,isArgumentAxis:e},o._getAxisRenderingOptions(a)),s=new u.Axis(r);return s.updateOptions(t),s.isVirtual=n,s},_getVisualRangeSetter:m,_getTrackerSettings:function(){return v(this.callBase(),{argumentAxis:this.getArgumentAxis()})},_prepareStripsAndConstantLines:function(e,t,n){return(t=this._themeManager.getOptions(e,t,n)).strips&&g(t.strips,function(e){t.strips[e]=v(!0,{},t.stripStyle,t.strips[e])}),t.constantLines&&g(t.constantLines,function(e,n){t.constantLines[e]=v(!0,{},t.constantLineStyle,n)}),t},_legendDataField:"series",_adjustSeriesLabels:m,_correctValueAxes:m,refresh:function(){this._disposeAxes(),this.callBase()},_layoutAxes:function(e){var t=e(),n=this.layoutManager.needMoreSpaceForPanesCanvas(this._getLayoutTargets(),this._isRotated());if(n){var i=this._layout.backward(this._rect,this._rect,[n.width,n.height]);n.width=Math.max(0,i[0]),n.height=Math.max(0,i[1]),this._canvas=this._createCanvasFromRect(this._rect),e(n,t)}}});t.AdvancedChart=k},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,i){var o,l,u,c,d,h,p=C.length;if("week"===i?i="day":"quarter"===i?i="month":"shorttime"===i?i="hour":"longtime"===i&&(i="second"),c=C.indexOf(i),n){if(l=g.default.getDatesDifferences(t,n),o=g.default.getDatesDifferences(t,e),l[i])for(d=p-1;d>=c;d--)if(u=C[d],d===c)s(l,c+(l.millisecond?2:1));else if(l[u]){r(l,d);break}}else for(o=g.default.getDatesDifferences(e,t),d=p-1;d>=c;d--)if(o[u=C[d]]){if(d-c>1){for(h=c+1;h>=0;h--)r(o,h);break}if(a(t,u)){for(h=d-1;h>0;h--)r(o,h);break}}return n?l:o}function a(e,t){var n,i=[e.getMilliseconds(),e.getSeconds(),e.getMinutes(),e.getHours(),e.getDate(),e.getMonth()],o=C.indexOf(t);for(n=0;n<o;n++)if(4===n&&1!==i[n]||4!==n&&0!==i[n])return!1;return!0}function r(e,t){var n=C[t];e[n]&&(e[n]=!1,e.count--)}function s(e,t){var n=C[t];!1===e[n]&&(e[n]=!0,e.count++)}function l(e,t){var n,i,o,a=0;for(o=b(t-e[0]),n=1;n<e.length;n++)(i=b(t-e[n]))<o&&(o=i,a=n);return a}function u(e){return e.toString().split(".")}function c(e){var t=void 0;return(0,f.isFunction)(e)&&(t=e,e=null),{type:e,formatter:t}}function d(e,t){var n,i,a,r,s,d,h,C,k,S=t.tickInterval,I=b(e).toString(),T=0,D=0,E=0,A=-1,O=t.labelOptions.format,P=t.ticks,B="logarithmic"===t.type;return 1!==P.length||0!==P.indexOf(e)||(0,f.isDefined)(S)||(S=b(e)>=1?1:(0,_.adjust)(1-b(e),e)),(0,f.isDefined)(O)||"discrete"===t.type||!e||10!==t.logarithmBase&&B||("datetime"!==t.dataType&&(0,f.isDefined)(S)?(P.length&&-1===P.indexOf(e)&&(A=l(P,e),S=(0,_.adjust)(b(e-P[A]),e)),(s=u(S))<2&&(s=u(e)),B?(h=(0,m.getAdjustedLog10)(b(e)))>0?r=w[y(h/3)]||x:h<-4?r=x:T=void 0:s.length>1&&!(0,f.isExponential)(S)?(T=s[1].length,r=w[E]):(0,f.isExponential)(S)&&(-1!==I.indexOf(".")||(0,f.isExponential)(e))?(r=x,T=(0,f.isExponential)(e)?Math.max(b((0,_.getExponent)(e)-(0,_.getExponent)(S)),b((0,_.getPrecision)(e)-(0,_.getPrecision)(S))):b(function(e){return e.length-parseInt(e).toString().length}(I.split(".")[1])-(0,_.getExponent)(S)+1)):(n=y((0,m.getAdjustedLog10)(S)),a=i=y((0,m.getAdjustedLog10)(b(e))),i-n>=2&&(a=n),D=3*(E=y(a/3)),E<5?(n-D==2&&i>=3&&(D=3*++E),r=w[E]):r=w[w.length-1],D>0&&((s=u(S/Math.pow(10,D)))[1]&&(T=s[1].length))),void 0===r&&void 0===T||(O={type:r,precision:T})):"datetime"===t.dataType&&(r=g.default.getDateFormatByTickInterval(S),t.showTransition&&P.length&&(A=P.map(Number).indexOf(+e),1===P.length&&0===A?r=p.default.getDateFormatByTicks(P):(-1===A?C=l(P,e):(C=0===A?P.length-1:A-1,k=0===A?1:-1),d=o(P[C],e,P[k],r),r=p.default.getDateFormatByDifferences(d,r))),O=c(r))),v(e,O)}function h(e,t,n){var i=o(e,t),a=g.default.getDateFormatByTickInterval(n),r=c(p.default.getDateFormatByDifferences(i,a)),s=[];if(n in i){var l=function(e,t){var n=!1;for(var i in e)n?e[i]=!1:i===t?n=!0:e[i]=!0;return c(p.default.getDateFormatByDifferences(e))}(o(e,t),n),u=v(e,l);u&&s.push(u)}else{var d=function(e){var t=!1;for(var n in e)!0===e[n]||"hour"===n||t?(e[n]=!1,t=!0):!1===e[n]&&(e[n]=!0);return c(p.default.getDateFormatByDifferences(e))}(o(e,t)),h=v(e,d);h&&s.push(h),s.push(v(e,r)+" - "+v(t,r))}return s.join(", ")}Object.defineProperty(t,"__esModule",{value:!0}),t.smartFormatter=d,t.formatRange=function(e,t,n,i){var o=i.dataType,a=i.type,r=i.logarithmBase;if("discrete"===a)return"";if("datetime"===o)return h(e,t,function(e){if((0,f.isObject)(e)){var t=Object.keys(e);if(1===t.reduce(function(t,n){return e[n]+t},0)){var n=t.filter(function(t){return 1===e[t]})[0];return n.slice(0,n.length-1)}}return e}(n));var s={ticks:[],type:a,dataType:o,tickInterval:n,logarithmBase:r,labelOptions:{}};return d(e,s)+" - "+d(t,s)};var p=i(n(63)),f=n(1),g=i(n(22)),_=n(29),m=n(11),v=p.default.format,y=Math.floor,b=Math.abs,x="exponential",w=["fixedPoint","thousands","millions","billions","trillions",x],C=["millisecond","second","minute","hour","day","month","year"]},function(e,t,n){function i(e,t,n,i){return(0,B.isDefined)(i)?i?e:t:function(i,o,a,r){var s=e(i,o);return i-s==0||!(0,B.isDefined)(a)||n(i,s,o,a)||r?s:t(i,o)}}function o(e,t,n,i){var o=n-H(t-e),a=L.max(N(i.businessDelta/n),2),r=i.screenDelta/(a*n),s=L.round(r*o),l=(0,O.getLog)(r*n/i.axisDivisionFactor,2)+1,u=(i.isSpacedMargin?2:1)*l,c=L.round(Y*u);return i.businessDelta>i.interval&&s>=c}function a(e){return function(t,n,i,a){return o((0,O.getLog)(t,e),(0,O.getLog)(n,e),i,a)}}function r(e,t,n,i){return o(e.valueOf(),t.valueOf(),V(n),i)}function s(e,t,n,i,o){var a=i.screenDelta/i.businessDelta;return e&&a*(t*(o?1:-1)+n*(o?-1:1))<Y}function l(e,t,n,i,o){return s(e,t.valueOf(),n.valueOf(),i,o)}function u(e,t){var n=0;return t&&(n=t.reduce(function(e,t){return e+(t.to-t.from)},0)),H(e.max-e.min-n)}function c(e,t,n,i){var o=t/n-(i||0);return e/(o=o<1?1:o)}function d(e,t){return $(10,z((0,O.getLog)(e,10))+(t||0))}function h(e,t,n,i,o,a,r,s,l,u){var d=c(e,t,o,s),h=1,f=!1===r;return i&&n||((d>=1||!f&&d>0)&&(h=p(d,a,f)),(!n||!i&&n<h)&&(n=h)),!i&&u&&((u=p(u,a,f))>n&&(n=u)),n}function p(e,t,n){var i=d(e,-1),o=1;return t=t||W,e>0&&(e/=i,o=t.concat(10*t[0]).map(function(e){return 10*e}).reduce(function(t,o){return.1===i&&n&&25===o?t:t<e?o:t},0),o=(0,M.adjust)(o*i,i)),o}function f(e,t,n,i){var o=c(e,t,i);return n||U.reduce(function(t,n){var i=e/n;return i>=o?i:t},0)}function g(e){return function(t,n){var i=d(t);return!e&&i<1&&(i=1),(n=n||G).concat(10*n[0]).reduce(function(e,n){return e<t?n*i:e},0)}}function _(e,t){return function(n,i){return!n&&e<=F(t,i)&&((n={})[t+"s"]=i),n}}function m(e,t){return function(n,i){var o=t*i;return!n&&e<=F("year",o)&&2.5!==o&&(n={years:o}),n}}function v(e,t,n,i,o,a,r,s,l,u){if(!i||!n){var d=y(c(e,t,o),a,null,l);(!n||!i&&V(n)<=V(d))&&(n=d)}return!i&&u&&(u=y(u,a,null,l),V(u)>V(n)&&(n=u)),n}function y(e,t,n,i){var o=void 0;for(var a in t=t||function(e){return e&&e>2?q:j}(i))if(o=t[a].reduce(_(e,a),o))break;if(!o)for(var r=1;!(o=W.reduce(m(e,r),o));r*=10);return o}function b(e,t,n,i){return v(e,t,n,!0,i,K)}function x(e,t){return function(n){return n&&t(H((0,M.adjust)(e(n[1])-e(n[0]))))||void 0}}function w(e,t,n){return P.default.addInterval(e,t,n)}function C(e,t,n){return w(e,t,n)}function k(e,t,n){return t=t.filter(function(e){return!e.gapSize}),function(i,o,a){var r=void 0;return i=e(i,o,a),t.every(function(t){return i>=e(t.from,o)&&e(i,o)<t.to&&(r=t.to-t.from-2*(e(t.from,o)-t.from)),!r})||(i=n(e(i,r),o)),i}}function S(e,t,n,i,o){return function(a,r,s,l,u,c,d,h,p){var f=function(e,t){return function(n){var i=void 0;return t.every(function(e){return n>=e.from&&n<e.to&&(i=e.gapSize),!i})||(n=e(n,i)),n}}(e,l),g=a.min,_=a.max,m={screenDelta:d,businessDelta:c,axisDivisionFactor:h,isSpacedMargin:a.isSpacedMargin,interval:r},v=t(g,r,m),y=[];u&&u.length&&(e=k(e,u,t)),v>_&&((v=t(g,n(c/2),m))>_&&(v=t(g,r,m,s=!0))),v=f(v);for(var b=void 0;v<_&&v!==b||p&&v<=_;)y.push(v),b=v,v=f(e(v,r));return(s||v-_==0||!(0,B.isDefined)(s)&&i(_,v,r,m))&&y.push(v),y.length>0&&(y[0].valueOf()>0&&o(a.checkMinDataVisibility,g,y[0],m,!0)?(v=e(y[0],r,!0),y.unshift(v)):y[y.length-1].valueOf()<0&&o(a.checkMaxDataVisibility,_,y[y.length-1],m,!1)&&(v=e(y[y.length-1],r),y.push(v))),y}}function I(e,t,n,i,o){return function(a,r,s,l,u,c,d){var h=u/l,p=s[s.length-1],f=s[0],g=d-1;if(c&&c.length&&(t=k(t,c,n)),0===(l=e(l,f,h)))return[];for(var _=i(n(a,u,a),l),m=[];_<f&&(!g||g>0);)_>=a&&m.push(_),g--,_=t(_,l);var v=s.reduce(function(n,o){if(g=d-1,null===n.prevTick)return n.prevTick=o,n;l=e(l,o,h);for(var a=i(n.prevTick,l);a<o&&(!g||g>0);)a!==n.prevTick&&n.minors.push(a),g--,a=t(a,l);return n.prevTick=o,n},{prevTick:null,minors:[]});m=m.concat(v.minors),l=e(l,o(r,u,a),h),_=i(p,l);for(var y=void 0;_<r&&_!==y;)m.push(_),y=_,_=t(_,l);return p-r!=0&&_-r==0&&m.push(_),m}}function T(e,t){if(t.length){var n=t.reduce(function(t,n){var i=[],o=void 0;for(o=t[1];o<e.length;o++){var a=e[o];if(a<n.from&&i.push(a),a>=n.to)break}return[t[0].concat(i),o]},[[],0]);return n[0].concat(e.slice(n[1]))}return e}function D(e,t,n,i,o,a,r,s,l,u){function c(e){return{tickInterval:o(e.majors),ticks:e.majors||[],minorTickInterval:a(e.minors),minorTicks:e.minors||[]}}function d(t,n,i){return t&&n/r(t)>=i+1&&(e.incidentOccurred("W2003"),t=void 0),t}function h(t,i,o,a,r,l,c,h){if(c.majors)return t.breaks=h,t;var p=h.filter(function(e){return e.gapSize}),f=void 0;return r=e.skipCalculationLimits?r:d(r,o,a),r=n(o,a,r,l,e.axisDivisionFactor,e.numberMultipliers,e.allowDecimals,h.length,p[0]&&p[0].gapSize.days,e.minTickInterval),e.skipTickGeneration||(f=T(f=s(i,r,e.endOnTick,p,h,o,a,e.axisDivisionFactor,e.generateExtraTick),h=u(h,r,a,e.axisDivisionFactor)),t.breaks=h,t.ticks=t.ticks.concat(f)),t.tickInterval=r,t}function p(t,n,o,s,u,c,h){if(!e.calculateMinors)return t;if(h.minors)return t;var p=r(t.tickInterval),f=s*p/o,g=t.breaks;return!u&&c?u=a([p/(c+1),p/(c+1)*2]):c=void 0,u=d(u,p,f),u=i(p,f,u,e.minorAxisDivisionFactor),t.minorTicks=T(t.minorTicks.concat(l(n.min,n.max,t.ticks,u,t.tickInterval,g,c)),g),t.minorTickInterval=u,t}return function(n,i,o,a,r,s,l,u){r=r||{};var d=t(n,u),f=c(r);return isNaN(d)||(0!==d||r.majors?(f=h(f,n,d,i,o,a,r,u||[]),!e.skipTickGeneration&&d>0&&(f=p(f,n,d,i,s,l,r))):f.ticks=[n.min]),f}}function E(e,t,n){return function(i,o,a,r){var s=e(o),l=z(a/r)>i.length?s/2:s/100;return i.reduce(function(e,i){var o=n(i.from,l),a=n(i.to,-l);return t(a)-t(o)<s&&!i.gapSize?e:i.gapSize?e.concat([i]):e.concat([{from:o,to:a,cumulativeWidth:i.cumulativeWidth}])},[])}}function A(e){var t=e.logBase,n=J(t),o=Q(t),r=ee(n,z,o),l=ee(n,N,o),u=ee(Z,N,Z);return D(e,function(e){var t=Q(e);return function(e,n){var i=0;return n&&(i=n.reduce(function(e,n){return e+H(t(n.to/n.from))},0)),N(H(t(e.max/e.min))-i)}}(t),function(e){return function(t,n,i,o,a,r,s,l,u,d){var h=c(t,n,a),p=0,f=g(e);return o&&i||(h>0&&(p=f(h,r)),(!i||!o&&i<p)&&(i=p)),!o&&d&&(d=f(d,r))>i&&(i=d),i}}(e.skipCalculationLimits),f,x(o,Z),x(Z,Z),Z,S(function(e){return function(t,n,i){return J(e)(w((0,O.getLog)(t,e),n,i))}}(t),i(r,l,a(t),e.endOnTick),g(e.skipCalculationLimits),a(t),function(e){return function(t,n,i,o,a){return s(t,(0,O.getLog)(n,e),(0,O.getLog)(i,e),o,a)}}(t)),I(function(e,t,n){return t/n},w,r,u,l),E(Z,o,function(e,t){return n(o(e)+t)}))}var O=n(11),P=function(e){return e&&e.__esModule?e:{default:e}}(n(22)),B=n(1),M=n(29),R=n(0),F=P.default.convertDateUnitToMilliseconds,V=P.default.dateToMilliseconds,L=Math,H=L.abs,z=L.floor,N=L.ceil,$=L.pow,W=[1,2,2.5,5],G=[1,2,3,5],j={millisecond:[1,2,5,10,25,50,100,250,500],second:[1,2,3,5,10,15,20,30],minute:[1,2,3,5,10,15,20,30],hour:[1,2,3,4,6,8,12],day:[1,2],week:[1,2],month:[1,2,3,6]},q=(0,R.extend)({},j,{day:[1]}),K={millisecond:[1,2,5,10,25,50,100,250,500],second:[1,2,3,5,10,15,20,30],minute:[1,2,3,5,10,15,20,30],hour:[1,2,3,4,6,8,12],day:[1,2,3,7,14],month:[1,2,3,6]},U=[2,4,5,8,10],Y=3,X=6e4,Z=function(e){return e},Q=function(e){return function(t){return(0,O.getLog)(t,e)}},J=function(e){return function(t){return $(e,t)}},ee=function(e,t,n){return function(i,o){return(0,M.adjust)(e(t((0,M.adjust)(n(i)/o))*o))}};t.tickGenerator=function(e){return e.rangeIsEmpty?function(e){return function(t,n,i,o){var a=z(n/e.axisDivisionFactor),r=n/(a=a<1?1:a);return{ticks:r>0?Array.apply(null,new Array(a+1)).map(function(e,t){return r*t}):[],tickInterval:r}}}(e):"discrete"===e.axisType?function(e){return function(t,n,i,o){var a=(0,O.getCategoriesInfo)(t.categories,t.min,t.max).categories;return{ticks:a,tickInterval:N(a.length*e.axisDivisionFactor/n)}}}(e):"logarithmic"===e.axisType?A(e):"datetime"===e.dataType?function(e){function t(t,n){var i=ee(Z,z,Z),o=(0,B.isString)(n)?P.default.getDateIntervalByString(n.toLowerCase()):n,a=V(n);(o.days%7==0||n.quarters)&&(o=y(a));var r=function(t){return P.default.correctDateWithUnitBeginning(t,o,null,e.firstDayOfWeek)},s=function(e){return new Date(z((e.getTime()-e.getTimezoneOffset()*X)/a)*a+e.getTimezoneOffset()*X)};return t=r(t),"years"in o?t.setFullYear(i(t.getFullYear(),o.years,0)):"quarters"in o?t=r(s(t)):"months"in o?t.setMonth(i(t.getMonth(),o.months,0)):"weeks"in o||"days"in o?t=r(s(t)):"hours"in o?t.setHours(i(t.getHours(),o.hours,0)):"minutes"in o?t.setMinutes(i(t.getMinutes(),o.minutes,0)):"seconds"in o?t.setSeconds(i(t.getSeconds(),o.seconds,0)):"milliseconds"in o&&(t=s(t)),t}var n=x(Z,P.default.convertMillisecondsToDateUnits);return D(e,u,v,b,n,n,V,S(C,i(t,function(e,n){for(var i=t(e,n);e-i>0;)i=C(i,n);return i},r,e.endOnTick),y,r,l),I(Z,C,t,C,Z),E(V,Z,function(e,t){return new Date(e.getTime()+t)}))}(e):function(e){var t=ee(Z,z,Z),n=ee(Z,N,Z),a=x(Z,Z);return D(e,u,h,f,a,a,Z,S(w,i(t,n,o,e.endOnTick),p,o,s),I(Z,w,t,w,Z),E(Z,Z,function(e,t){return e+t}))}(e)}},function(e,t,n){function i(e){return{stroke:e.color,"stroke-width":e.width,"stroke-opacity":e.opacity,opacity:1}}var o=n(1).isDefined,a=n(0).extend;t.tick=function(e,t,n,r,s,l,u){function c(t){var n=e._textFontStyles,i=v.customizeColor;return i&&i.call&&(n=a({},e._textFontStyles,{fill:i.call(t,t)})),n}function d(t,n){var i=e.formatHint(t.value,v,n);o(i)&&""!==i&&t.label.setTitle(i)}var h=u||e._tickOffset,p=e._axisLineGroup,f=e._axisElementsGroup,g=i(n),_=i(r),m=/^\s+$/,v=e.getOptions().label,y=e._textOptions;return function(i){var a={value:i,updateValue:function(e){this.value=i=e},initCoords:function(){this.coords=e._getTranslatedValue(i,h),this.labelCoords=e._getTranslatedValue(i)},saveCoords:function(){this._storedCoords=this.coords,this._storedLabelsCoords=this.labelCoords},drawMark:function(t){n.visible&&s!==i&&(e.areCoordsOutsideAxis(this.coords)||(this.mark?(this.mark.append(p),e.sharp(this.mark,e.getSharpDirectionByCoords(this.coords)),this.updateTickPosition(t)):(this.mark=e._createPathElement([],g,e.getSharpDirectionByCoords(this.coords)).append(p),this.updateTickPosition(t))))},setSkippedCategory:function(e){s=e},_updateLine:function(t,n,i,o,a){if(t){if(null===n.points)return void t.remove();o&&i&&null!==i.points?(n.opacity=1,t.attr(i),t.animate(n)):(n.opacity=o?0:1,t.attr(n),o&&t.animate({opacity:1},{delay:.5,partitionDuration:.5})),this.coords.angle&&e._rotateTick(t,this.coords,a)}},updateTickPosition:function(t,i){this._updateLine(this.mark,{points:e._getTickMarkPoints(a.coords,n.length,t)},this._storedCoords&&{points:e._getTickMarkPoints(a._storedCoords,n.length,t)},i,!1)},drawLabel:function(n){if(v.visible&&!l&&!e.getTranslator().getBusinessRange().isEmpty()&&!e.areCoordsOutsideAxis(this.labelCoords)){var a=e.formatLabel(i,v,n);return this.label?(this.label.attr({text:a,rotate:0}).append(f),d(this,n),void this.updateLabelPosition()):void(o(a)&&""!==a&&!m.test(a)&&(this.label=t.text(a).css(c(this)).attr(y).data("chart-data-argument",this.value).append(f),this.updateLabelPosition(),d(this,n)))}this.label&&this.label.remove()},fadeOutElements:function(){var t={opacity:1},n={opacity:0},i={partitionDuration:.5};this.label&&this._fadeOutLabel(),this.grid&&this.grid.append(e._axisGridGroup).attr(t).animate(n,i),this.mark&&this.mark.append(e._axisLineGroup).attr(t).animate(n,i)},_fadeInLabel:function(){var t=e._renderer.g().attr({opacity:0}).append(e._axisElementsGroup).animate({opacity:1},{delay:.5,partitionDuration:.5});this.label.append(t)},_fadeOutLabel:function(){var t=e._renderer.g().attr({opacity:1}).animate({opacity:0},{partitionDuration:.5}).append(e._axisElementsGroup);this.label.append(t)},updateLabelPosition:function(e){this.label&&(e&&this._storedLabelsCoords?(this.label.attr({x:this._storedLabelsCoords.x,y:this._storedLabelsCoords.y}),this.label.animate({x:this.labelCoords.x,y:this.labelCoords.y})):(this.label.attr({x:this.labelCoords.x,y:this.labelCoords.y}),e&&this._fadeInLabel()))},drawGrid:function(t){r.visible&&s!==this.value&&(this.grid?(this.grid.append(e._axisGridGroup),e.sharp(this.grid,e.getSharpDirectionByCoords(this.coords)),this.updateGridPosition()):(this.grid=t(this,_),this.grid&&this.grid.append(e._axisGridGroup)))},updateGridPosition:function(t){this._updateLine(this.grid,e._getGridPoints(a.coords),this._storedCoords&&e._getGridPoints(this._storedCoords),t,!0)},removeLabel:function(){this.label.remove(),this.label=null}};return a}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return e.sort(function(e,t){return e.from-t.from})}function a(e,t,n,i){var o=i,a=t&&f.default.getDatesDifferences(t,e);return t&&"year"!==n&&(function(e,t){var n,i;if("week"===t&&(t="day"),"quarter"===t&&(t="month"),e[t])for(i=0;i<f.default.dateUnitIntervals.length&&(e[n=f.default.dateUnitIntervals[i]]&&(e[n]=!1,e.count--),n!==t);i++);}(a,n),o=(0,p.getDateFormatByDifferences)(a)),o}function r(e,t){return t.reduce(function(t,n){return k(t,e(n))},0)}function s(e,t,n){return e.some(function(e){return e.label.verticalAlignment===t})&&n||0}function l(e){return C.abs(e.x)||0}function u(e){return C.abs(e.width-C.abs(e.x))||0}function c(e,t,n,i,o,a,r,s,l){var u=l?"bezier":"line",c=e.g().append(i);return function(t,n){e.path(o(function(e,t,n,i,o){if(!o)return[e,t+i,n,t+i];var a,r=(t+=i)+P,s=t+O,l=t+B,u=[[e,s]];for(a=e;a<n+M;a+=M)u.push([a+6,r,a+6,r,a+12,s,a+18,l,a+18,l,a+24,s]);return[].concat.apply([],u)}(a,r,s,t,l)),u).attr(n).append(c)}}function d(e){var t,n=[];for(t=0;t<e.length;t+=2)n.push(e[t+1]),n.push(e[t]);return n}var h=i(n(109)),p=n(63),f=i(n(22)),g=n(0),_=n(776),m=n(4),v=i(n(11)),y=n(1),b=i(n(269)),x=f.default.getNextDateUnit,w=f.default.correctDateWithUnitBeginning,C=Math,k=C.max,S=b.default.top,I=b.default.bottom,T=b.default.left,D=b.default.right,E=b.default.center,A=.3,O=2,P=0,B=4,M=24,R={left:-1,top:-1,right:0,bottom:0,center:-.5};e.exports={linear:{_getStep:function(e,t){var n=this._options.label.minSpacing,i=r(this._isHorizontal?function(e){return e.width+n}:function(e){return e.height},e);return t&&(i=function(e,t){var n=(t=(t=C.abs(t))%180>=90?90-t%90:t%90)*(C.PI/180);return n>=C.atan(e.height/e.width)?e.height/C.abs(C.sin(n)):e.width}({width:i,height:this._getMaxLabelHeight(e,0)},t)),b.default.getTicksCountInRange(this._majorTicks,this._isHorizontal?"x":"y",i)},_getMaxLabelHeight:function(e,t){return r(function(e){return e.height},e)+t},_validateOverlappingMode:function(e,t){return this._isHorizontal&&("rotate"===t||"stagger"===t)||!this._isHorizontal?b.default.validateOverlappingMode(e):e},_validateDisplayMode:function(e){return this._isHorizontal?e:"standard"},getMarkerTrackers:function(){return this._markerTrackers},_getSharpParam:function(e){return this._isHorizontal^e?"h":"v"},_createAxisElement:function(){return this._renderer.path([],"line")},_updateAxisElementPosition:function(){if(this._axisElement){var e=this._axisPosition,t=this._getCanvasStartEnd();this._axisElement.attr({points:this._isHorizontal?[t.start,e,t.end,e]:[e,t.start,e,t.end]})}},_getTranslatedCoord:function(e,t){return this._translator.translate(e,t)},_initAxisPositions:function(){var e=this,t=e._options.position;e._axisPosition=e._orthogonalPositions["top"===t||"left"===t?"start":"end"]},_getTickMarkPoints:function(e,t,n){var i=this._isHorizontal,o=this._options,a=void 0;if((0,y.isDefined)(o.tickOrientation))a=R[o.tickOrientation]*t;else{var r=n.shift||0;"left"!==o.position&&"top"!==o.position||(r=-r),a=r+this.getTickStartPositionShift(t)}return[e.x+(i?0:a),e.y+(i?a:0),e.x+(i?0:a+t),e.y+(i?a+t:0)]},getTickStartPositionShift:function(e){var t=this._options;return e%2==1?t.width%2==0&&("left"===t.position||"top"===t.position)||t.width%2==1&&("right"===t.position||"bottom"===t.position)?Math.floor(-e/2):-Math.floor(e/2):-e/2+(t.width%2==0?0:"bottom"===t.position||"right"===t.position?-1:1)},_getTitleCoords:function(){var e=this,t=e._isHorizontal,n=e._axisPosition,i=e._axisPosition,o=e._options.title.alignment,a=e._getCanvasStartEnd(),r=t||e._options.position===T,s=r?a.start:a.end,l=r?a.end:a.start,u=o===T?s:o===D?l:a.start+(a.end-a.start)/2;return t?n=u:i=u,{x:n,y:i}},_drawTitleText:function(e,t){var n=this._options,i=n.title,o={opacity:i.opacity,align:i.alignment};if(i.text&&e){t=t||this._getTitleCoords(),this._isHorizontal||(o.rotate=n.position===T?270:90);var a=this._renderer.text(i.text,t.x,t.y).css(v.default.patchFontOptions(i.font)).attr(o).append(e);return this._checkTitleOverflow(a),a}},_updateTitleCoords:function(){this._title&&this._title.element.attr(this._getTitleCoords())},_drawTitle:function(){var e=this._drawTitleText(this._axisTitleGroup);e&&(this._title={element:e})},_measureTitle:function(){this._title&&(this._title.bBox&&!this._title.originalSize&&(this._title.originalSize=this._title.bBox),this._title.bBox=this._title.element.getBBox())},_drawDateMarker:function(e,t,n){var i,o,a=this,r=a._options.marker,s=a._translator.getBusinessRange().invert,l=r.width+r.textLeftIndent;if(null!==t.x)return t.withoutStick||(o=a._renderer.path([t.x,t.y,t.x,t.y+r.separatorHeight],"line").attr({"stroke-width":r.width,stroke:r.color,"stroke-opacity":r.opacity,sharp:"h"}).append(a._axisElementsGroup)),i=String(a.formatLabel(e,t.labelOptions,n)),{date:e,x:t.x,y:t.y,cropped:t.withoutStick,label:a._renderer.text(i,t.x,t.y).css(v.default.patchFontOptions(r.label.font)).append(a._axisElementsGroup),line:o,getEnd:function(){return this.x+(s?-1:1)*(l+this.labelBBox.width)},setTitle:function(){this.title=i},hideLabel:function(){this.label.dispose(),this.label=null,this.title=i},hide:function(){o&&(o.dispose(),o=null),this.label.dispose(),this.label=null,this.hidden=!0}}},_drawDateMarkers:function(){function e(e,t,n){return s._drawDateMarker(e,{x:u.translate(e),y:o,labelOptions:s._getLabelFormatOptions(t),withoutStick:n},c)}var t,n,i,o,r,s=this,l=s._options,u=s._translator,c=s._getViewportRange(),d=c.minVisible,h=[];return c.isEmpty()||!l.marker.visible||"datetime"!==l.argumentType||"discrete"===l.type||s._majorTicks.length<=1?[]:(o=s._axisPosition+l.marker.topIndent,t=f.default.getDateUnitInterval(this._tickInterval),n=function(e){var t=x(e);return"quarter"===t&&(t=x(t)),t}(t),((i=function(e,t,n){var i,o=e;return e=w(e,n),t=w(t,n),(i=f.default.getSequenceByInterval(e,t,n)).length&&o>i[0]&&(i=i.slice(1)),i}(d,c.maxVisible,n)).length>1||1===i.length&&d<i[0])&&(h=i.reduce(function(i,o,r,s){var l=e(o,a(o,s[r-1]||d<o&&d,t,n));return l&&i.push(l),i},[]),d<i[0]&&((r=e(d,a(d,i[0],t,n),!0))&&h.unshift(r))),h)},_adjustDateMarkers:function(e){e=e||0;var t,n=this,i=this._options.marker,o=i.width+i.textLeftIndent,a=this._translator.getBusinessRange().invert,r=n._getCanvasStartEnd(),s=this._dateMarkers;return s.length?(s[0].cropped&&(this._checkMarkersPosition(a,s[1],s[0])||s[0].hideLabel()),s.forEach(function(e,i,o){e.cropped||((a?e.getEnd()<r.end:e.getEnd()>r.end)?e.hideLabel():n._checkMarkersPosition(a,e,t)?t=e:e.hide())}),this._dateMarkers.forEach(function(t){if(t.label){var n=t.labelBBox,r=t.y+i.textTopIndent-n.y;t.label.attr({translateX:a?t.x-o-n.x-n.width:t.x+o-n.x,translateY:r+e})}t.line&&t.line.attr({translateY:e})}),n._initializeMarkersTrackers(e),e+i.topIndent+i.separatorHeight):e},_checkMarkersPosition:function(e,t,n){return void 0===n||(e?t.x<n.getEnd():t.x>n.getEnd())},_initializeMarkersTrackers:function(e){var t=this,n=t._options.marker.separatorHeight,i=t._renderer,o=this._translator.getBusinessRange(),a=t._getCanvasStartEnd(),r=t._axisElementsGroup;t._markerTrackers=this._dateMarkers.filter(function(e){return!e.hidden}).map(function(t,s,l){var u=l[s+1]||{x:a.end,date:o.max},c=t.x,d=t.y+e,h=i.path([c,d,c,d+n,u.x,d+n,u.x,d,c,d],"area").attr({"stroke-width":1,stroke:"grey",fill:"grey",opacity:1e-4}).append(r);return h.data("range",{startValue:t.date,endValue:u.date}),t.title&&h.setTitle(t.title),h})},_getLabelFormatOptions:function(e){var t=this,n=t._markerLabelOptions;return n||(t._markerLabelOptions=n=(0,g.extend)(!0,{},t._options.marker.label)),(0,y.isDefined)(t._options.marker.label.format)||(n.format=e),n},_adjustConstantLineLabels:function(e){var t=this,n=t._options.position,i=t.getCanvas(),o=i.left,a=i.width-i.right,r=i.top,s=i.height-i.bottom,l=r+(s-r)/2,u=o+(a-o)/2,c=0;return e.forEach(function(e){var i,d,h=t._isHorizontal,p=e.options,f=p.paddingTopBottom,g=p.paddingLeftRight,_=p.label,m=_.verticalAlignment,v=_.horizontalAlignment,y="inside"===_.position,b=e.label,x=e.labelBBox;if(null!==b&&!x.isEmpty){if(h)if(y)switch(i=v===T?e.coord-g-x.x-x.width:e.coord+g-x.x,m){case E:d=l-x.y-x.height/2;break;case I:d=s-f-x.y-x.height;break;default:d=r+f-x.y}else n===m&&(c=k(c,x.height+f)),i=e.coord-x.x-x.width/2,d=m===I?s+f-x.y:r-f-x.y-x.height;else if(y)switch(d=m===I?e.coord+f-x.y:e.coord-f-x.y-x.height,v){case E:i=u-x.x-x.width/2;break;case D:i=a-g-x.x-x.width;break;default:i=o+g-x.x}else n===v&&(c=k(c,x.width+g)),d=e.coord-x.y-x.height/2,i=v===D?a+g-x.x:o-g-x.x-x.width;b.attr({translateX:i,translateY:d})}}),c},_drawConstantLinesForEstimating:function(e){var t=this,n=this._renderer,i=n.g();return e.forEach(function(e){t._drawConstantLineLabelText(e.label.text,0,0,e.label,i).attr({align:"center"})}),i.append(n.root)},_estimateLabelHeight:function(e,t){var n=e.height,i=t.drawingType;if("stagger"!==this._validateDisplayMode(i)&&"stagger"!==this._validateOverlappingMode(t.overlappingBehavior,i)||(n=2*n+t.staggeringSpacing),"rotate"===this._validateDisplayMode(i)||"rotate"===this._validateOverlappingMode(t.overlappingBehavior,i)){var o=v.default.getCosAndSin(t.rotationAngle);n=n*o.cos+e.width*o.sin}return n&&(n+t.indentFromAxis||0)||0},estimateMargins:function(e){this.updateCanvas(e);var t=this,n=t._getViewportRange(),i=this._createTicksAndLabelFormat(n),o=i.ticks,a=i.tickInterval,r=this._options,c=t._outsideConstantLines.filter(function(e){return e.labelOptions.visible}).map(function(e){return e.options}),d=t._renderer.root,h=r.label.visible&&!n.isEmpty()&&o.length,p=h&&t.formatLabel(o[o.length-1],r.label,void 0,void 0,a,o),f=h&&t._renderer.text(p,0,0).css(t._textFontStyles).attr(t._textOptions).append(d),g=t._drawTitleText(d,{x:0,y:0}),_=t._drawConstantLinesForEstimating(c),m=f&&f.getBBox()||{x:0,y:0,width:0,height:0},v=g&&g.getBBox()||{x:0,y:0,width:0,height:0},y=_.getBBox(),b=v.height?v.height+r.title.margin:0,x=t._estimateLabelHeight(m,r.label),w=y.height?y.height+function(e){return e.reduce(function(e,t){return k(e,t.paddingTopBottom)},0)}(c):0,C=x+b,S={left:k(l(m),l(y)),right:k(u(m),u(y)),top:("top"===r.position?C:0)+s(c,"top",w),bottom:("top"!==r.position?C:0)+s(c,"bottom",w)};return f&&f.remove(),g&&g.remove(),_&&_.remove(),S},_checkAlignmentConstantLineLabels:function(e){var t=e.position,n=(e.verticalAlignment||"").toLowerCase(),i=(e.horizontalAlignment||"").toLowerCase();this._isHorizontal?"outside"===t?(n=n===I?I:S,i=E):(n=n===E?E:n===I?I:S,i=i===T?T:D):"outside"===t?(n=E,i=i===T?T:D):(n=n===I?I:S,i=i===D?D:i===E?E:T),e.verticalAlignment=n,e.horizontalAlignment=i},_getConstantLineLabelsCoords:function(e,t){var n=this,i=e,o=e;return n._isHorizontal?o=n._orthogonalPositions["top"===t.verticalAlignment?"start":"end"]:i=n._orthogonalPositions["right"===t.horizontalAlignment?"end":"start"],{x:i,y:o}},_getAdjustedStripLabelCoords:function(e){var t=e.options,n=t.paddingTopBottom,i=t.paddingLeftRight,o=t.label.horizontalAlignment,a=t.label.verticalAlignment,r=e.labelBBox,s=r.height,l=r.width,u=e.labelCoords,c=u.y-r.y,d=u.x-r.x;return a===S?c+=n:a===E?c-=s/2:a===I&&(c-=n+s),o===T?d+=i:o===E?d-=l/2:o===D&&(d-=i+l),{translateX:d,translateY:c}},_adjustTitle:function(e){if(e=e||0,this._title){var t=this,n=t._options,i=n.position,o=n.title.margin,a=t._title,r=a.bBox,s=r.x,l=r.y,u=r.width,c=r.height,d=t._axisPosition,h=d-o-e,p=d+o+e,f={};t._isHorizontal?f.translateY=i===S?h-(l+c):p-l:f.translateX=i===T?h-(s+u):p-s,a.element.attr(f)}},_checkTitleOverflow:function(e){if(this._title||e){var t=this._getScreenDelta(),n=e?{bBox:e.getBBox(),element:e}:this._title,i=this._options.title,o=n.bBox;if((this._isHorizontal?o.width:o.height)>t)n.element.setMaxSize(t,void 0,{wordWrap:i.wordWrap||"none",textOverflow:i.textOverflow||"ellipsis"}),this._wrapped=i.wordWrap&&"none"!==i.wordWrap;else{var a=n.originalSize&&t>(this._isHorizontal?n.originalSize.width:n.originalSize.height);!this._wrapped&&a&&n.element.restoreText()}}},coordsIn:function(e,t){var n=this.getCanvas(),i=this._options.isHorizontal,o=this._options.position,a=i?t:e;return!(i&&(e<n.left||e>n.width-n.right)||!i&&(t<n.top||t>n.height-n.bottom))&&(i&&o===b.default.top||!i&&o===b.default.left?a<n[o]:a>n[i?"height":"width"]-n[o])},_boundaryTicksVisibility:{min:!0,max:!0},_setVisualRange:function(e){var t=this.adjustRange(v.default.getVizRangeObject(e));this._viewport=t},applyVisualRangeSetter:function(e){this._visualRange=e},adjust:function(e){var t=this,n=t._seriesData,i={min:n.min,max:n.max};e||(i=t._series.filter(function(e){return e.isVisible()}).reduce(function(e,t){var n=t.getViewport();return e.min=(0,y.isDefined)(n.min)?e.min<n.min?e.min:n.min:e.min,e.max=(0,y.isDefined)(n.max)?e.max>n.max?e.max:n.max:e.max,t.showZero&&(e=new h.default.Range(e)).correctValueZeroLevel(),e},{})),(0,y.isDefined)(i.min)&&(0,y.isDefined)(i.max)&&(n.minVisible=i.min,n.maxVisible=i.max),t._translator.updateBusinessRange(t.adjustViewport(n)),t._breaks=t._getScaleBreaks(t._options,{minVisible:n.minVisible,maxVisible:n.maxVisible},t._series,t.isArgumentAxis)},hasWrap:function(){return this._wrapped},getAxisPosition:function(){return this._axisPosition},_getStick:function(){return!this._options.valueMarginsEnabled},_getStripLabelCoords:function(e,t,n){var i,o,a=this._orthogonalPositions,r=this._isHorizontal,s=n.horizontalAlignment,l=n.verticalAlignment;return r?(s===E?i=e+(t-e)/2:s===T?i=e:s===D&&(i=t),o=a[function(e){var t="start";return"center"===e&&(t="center"),"bottom"===e&&(t="end"),t}(l)]):(i=a[function(e){var t="start";return"center"===e&&(t="center"),"right"===e&&(t="end"),t}(s)],l===S?o=e:l===E?o=t+(e-t)/2:l===I&&(o=t)),{x:i,y:o}},_getTranslatedValue:function(e,t){var n=this._translator.translate(e,t,"semidiscrete"===this._options.type&&this._options.tickInterval),i=this._axisPosition,o=this._isHorizontal;return{x:o?n:i,y:o?i:n}},areCoordsOutsideAxis:function(e){var t=this._isHorizontal?e.x:e.y,n=this.getVisibleArea();return t<n[0]||t>n[1]},_getSkippedCategory:function(e){var t;return this._options.type===b.default.discrete&&this._tickOffset&&0!==e.length&&(t=e[e.length-1]),t},_getScaleBreaks:function(e,t,n,i){var a=this,r=(e.breaks||[]).map(function(e){return{from:a.parser(e.startValue),to:a.parser(e.endValue)}});return"discrete"!==e.type&&"datetime"===e.dataType&&e.workdaysOnly&&(r=r.concat((0,_.generateDateBreaks)(t.minVisible,t.maxVisible,e.workWeek,e.singleWorkdays,e.holidays))),!i&&"discrete"!==e.type&&"datetime"!==e.dataType&&e.autoBreaksEnabled&&0!==e.maxAutoBreakCount&&(r=r.concat(function(e,t,n){var i,a,r,s=[],l="logarithmic"===e.type?function(t,n){return v.default.getLog(n/t,e.logarithmBase)}:function(e,t){return t-e},u=l(n.minVisible,n.maxVisible),c=t.reduce(function(e,t){var n=t.getPointsInViewPort();return e[0]=e[0].concat(n[0]),e[1]=e[1].concat(n[1]),e},[[],[]]),d=c[0].concat(c[1]).sort(function(e,t){return t-e}),h=c[1].filter(function(e){return c[0].indexOf(e)<0}),p=u/1e10,f=A*u;for(i=function(e,t,n){var i,o,a,r,s,l=null,u=[];for(i=1,o=e.length;i<o;i++)s=n(a=e[i],r=e[i-1]),t.indexOf(a)>=0?(!l||s>l.length)&&(l={start:a,end:r,length:s}):(l&&s<l.length?u.push(l):u.push({start:a,end:r,length:s}),l=null);return l&&u.push(l),u}(d,h,l).sort(function(e,t){return t.length-e.length}),r=(0,y.isDefined)(e.maxAutoBreakCount)?Math.min(e.maxAutoBreakCount,i.length):i.length,a=0;a<r&&i[a].length>=f&&!(u<=i[a].length);a++)((u-=i[a].length)>p||u<-p)&&(s.push({from:i[a].start,to:i[a].end}),f=A*u);return o(s),s}(e,n,t))),function(e,t,n){var i=t.minVisible,o=t.maxVisible,a=n?n.width:0;return e.reduce(function(e,t){var n,r=t.from,s=t.to,l=e[e.length-1];return(0,y.isDefined)(r)&&(0,y.isDefined)(s)?(r>s&&(s=[r,r=s][0]),e.length&&r<l.to?s>l.to&&(l.to=s>o?o:s,l.gapSize&&(l.gapSize=void 0,l.cumulativeWidth+=a)):(r>=i&&r<o||s<=o&&s>i)&&s-r<o-i&&(n={from:r=r>=i?r:i,to:s=s<=o?s:o,cumulativeWidth:(l?l.cumulativeWidth:0)+a},t.gapSize&&(n.gapSize=f.default.convertMillisecondsToDateUnits(s-r),n.cumulativeWidth=l?l.cumulativeWidth:0),e.push(n)),e):e},[])}(o(r),t,e.breakStyle)},_drawBreak:function(e,t,n,i,o,a){var r=this,s=e-(r._translator.isInverted()?0:i+1),l={"stroke-width":1,stroke:o.borderColor,sharp:o.isWaved?void 0:o.isHorizontal?"h":"v"},u={stroke:o.color,"stroke-width":i},h=r._isHorizontal?d:function(e){return e},p=c(r._renderer,0,0,a,h,t,s,n,o.isWaved);p(i/2,u),p(0,l),p(i,l)},_createBreakClipRect:function(e,t){var n,i=this,o=i._canvas,a=t-e;return n=i._isHorizontal?i._renderer.clipRect(o.left,e,o.width,a):i._renderer.clipRect(e,o.top,a,o.height),i._breaksElements=i._breaksElements||[],i._breaksElements.push(n),n.id},_createBreaksGroup:function(e,t){var n=this,i=n._renderer.g().attr({class:n._axisCssPrefix+"breaks","clip-path":n._createBreakClipRect(e,t)}).append(n._scaleBreaksGroup);return n._breaksElements=n._breaksElements||[],n._breaksElements.push(i),i},_disposeBreaksGroup:function(){(this._breaksElements||[]).forEach(function(e){e.dispose()}),this._breaksElements=null},drawScaleBreaks:function(e){var t,n,i,o,a,r,s,l=this,u=l._options,c=u.breakStyle,d=u.position,h=l._translator.getBusinessRange().breaks||[];l._disposeBreaksGroup(),h&&h.length&&(s={color:l._options.containerColor,borderColor:c.color,isHorizontal:l._isHorizontal,isWaved:"straight"!==c.line.toLowerCase()},e?(t=e.start,n=e.end):(t=l._orthogonalPositions.start-(!u.visible||l._axisShift||"left"!==d&&"top"!==d?0:3),n=l._orthogonalPositions.end+(!u.visible||"right"!==d&&"bottom"!==d?0:3)),r=l._createBreaksGroup(t,n),l._axisShift&&u.visible&&(o=l._axisPosition-l._axisShift-3,a=o+6,i=l._createBreaksGroup(o,a)),h.forEach(function(e){if(!e.gapSize){var d=l._getTranslatedCoord(e.to);l._drawBreak(d,t,n,c.width,s,r),l._axisShift&&u.visible&&l._drawBreak(d,o,a,c.width,s,i)}}))},_getSpiderCategoryOption:m.noop,shift:function(e){function t(t,n){var i={},r=e[t]?e[t]+a:0;return i[o?"translateY":"translateX"]=("left"===t||"top"===t?-1:1)*r,(n[t]||n).attr(i),r}var n=this,i=n._options,o=i.isHorizontal,a=n.getMultipleAxesSpacing(),r=n._axisConstantLineGroups;n._axisShift=t(i.position,n._axisGroup),(o?["top","bottom"]:["left","right"]).forEach(function(e){t(e,r.above),t(e,r.under)})}}}},function(e,t,n){function i(e,t,n,i,o,s,l){e.forEach(function(e){var u,c=l(t.indexOf(i),t.length),d=e.getPointsByArg(n,!0),h=function(e){return e<0||e>1?void 0:e}(e.getOptions().barPadding),p=e.getOptions().barWidth,f=r(c,o),g=o.width;-1!==c&&((x(h)||x(p))&&(g=(u=a(s,t.length,1-h,p)).width,f=r(c,u)),function(e,t,n){I(e,function(e,i){i.correctCoordinates({width:t,offset:n})})}(d,g,f))})}function o(e,t,n){var o=[],r=[],s={},l=t.barWidth,u=t.barGroupWidth,c=e[0]&&e[0].getArgumentAxis().getTranslator().getInterval(),d=u?c>u?u:c:c*(1-function(e){return e<0||e>1?E:e}(t.barGroupPadding));e.forEach(function(e,t){var n,i=e.getStackName()||e.getBarOverlapGroup()||t.toString();for(n in e.pointsByArgument)-1===r.indexOf(n.valueOf())&&r.push(n.valueOf());-1===o.indexOf(i)&&(o.push(i),s[i]=[]),s[i].push(e)}),r.forEach(function(e){var r=o.reduce(function(n,i){return function(e,t,n){return e.some(function(e){return n&&!e.getOptions().ignoreEmptyPoints||e.getPointsByArg(t,!0).some(function(e){return e.hasValue()})})}(s[i],e,t.equalBarWidth)&&n.push(i),n},[]),u=a(d,r.length,l);o.forEach(function(t){i(s[t],r,e,t,u,d,n)})})}function a(e,t,n,i){var o,a;return i?(a=Math.min(i,C(e/t)),o=t>1?C((e-a*t)/(t-1)):0):x(n)?(a=C(e*n/t),o=C(t>1?(e-e*n)/(t-1):0)):(o=C(e/t*.2),a=C((e-o*(t-1))/t)),{width:a>1?a:1,spacing:o,middleIndex:t/2}}function r(e,t){return(e-t.middleIndex+.5)*t.width-(t.middleIndex-e-.5)*t.spacing}function s(e){return e.series.filter(function(e){return e.isVisible()})}function l(e,t,n){return((e.positive[t]||{})[n]||0)+(-(e.negative[t]||{})[n]||0)}function u(e){return e?function(e,t){return t-e-1}:function(e){return e}}function c(e){return e[0]&&e[0].getArgumentAxis().getTranslator().isInverted()}function d(){var e=s(this);o(e,this._options,u(c(e)))}function h(){var e=this,t=e._options.negativesAsZeroes,n=s(e),i={positive:{},negative:{}},o={left:{},right:{}},a={};n.forEach(function(e){var n=e.getStackName()||e.getBarOverlapGroup(),r=!1;e._prevSeries=a[n],a[n]=e,e.holes=y(!0,{},o),e.getPoints().forEach(function(a,s,l){var u,c=a.initialValue,d=a.argument.valueOf(),h=c>=0?i.positive:i.negative,p="bar"!==e.type;if(t&&c<0&&(h=i.positive,c=0,a.resetValue()),h[n]=h[n]||{},(u=h[n])[d]?(p&&a.correctValue(u[d]),u[d]+=c):(u[d]=c,p&&a.resetCorrection()),a.hasValue())r&&(r=!1,o.left[d]=(o.left[d]||0)+(a.value-(isFinite(a.minValue)?a.minValue:0)),a._skipSetLeftHole=!0);else{var f=l[s-1];!r&&f&&f.hasValue()&&(d=f.argument.valueOf(),f._skipSetRightHole=!0,o.right[d]=(o.right[d]||0)+(f.value-(isFinite(f.minValue)?f.minValue:0))),r=!0}})}),n.forEach(function(e){var t=e.holes;e.getPoints().forEach(function(e){var n=e.argument.valueOf();e.resetHoles(),!e._skipSetLeftHole&&e.setHole(t.left[n]||o.left[n]&&0,"left"),!e._skipSetRightHole&&e.setHole(t.right[n]||o.right[n]&&0,"right"),e._skipSetLeftHole=null,e._skipSetRightHole=null})}),e._stackKeepers=i,n.forEach(function(e){e.getPoints().forEach(function(t){var n=t.argument.valueOf(),a=e.getStackName()||e.getBarOverlapGroup(),r=l(i,a,n),s=function(e,t,n){return((e.positive[t]||{})[n]||0)+((e.negative[t]||{})[n]||0)}(i,a,n);t.setPercentValue(r,s,o.left[n],o.right[n])})})}function p(){var e=this,t=s(e),n=e._stackKeepers,i={positive:{},negative:{}};I(t,function(t,o){var a=o.getOptions().minBarSize,r=o.getValueAxis().getTranslator(),s=a&&r.getMinBarSize(a),u=o.getStackName();I(o.getPoints(),function(t,o){if(o.hasValue()){var a,c,d,h=o.initialValue,p=o.argument.valueOf();e.fullStacked&&(h=h/l(n,u,p)||0),c=function(e){return e>=0?"positive":"negative"}(a=r.checkMinBarSize(h,s,o.value)),(d=i[c][u]=i[c][u]||{})[p]?(o.minValue=d[p],d[p]+=a):d[p]=a,o.value=d[p]}})}),e.fullStacked&&function(e,t){I(e,function(e,n){var i=n.getStackName?n.getStackName():"default";I(n.getPoints(),function(e,n){var o=l(t,i,n.argument.valueOf());n.value=n.value/o,v(n.minValue)&&(n.minValue=n.minValue/o)})})}(t,i)}function f(){I(this.series,function(e,t){var n=t.getOptions().minBarSize,i=t.getValueAxis().getTranslator(),o=n&&i.getMinBarSize(n);o&&I(t.getPoints(),function(e,t){t.hasValue()&&(t.value=i.checkMinBarSize(t.initialValue,o))})})}function g(){var e=s(this);o(e,{barWidth:null,equalBarWidth:!0,barGroupPadding:.3},u(c(e)))}function _(){var e=s(this);if(e.length){var t,n,i,o,a,r=this._options,l=e[0].getArgumentAxis().getVisibleArea(),u=e[0].getValueAxis().getVisibleArea(),c=w.min(l[1]-l[0],u[1]-u[0]),d=S(r.minBubbleSize,2),h=S(c*r.maxBubbleSize,2),p=(c*r.maxBubbleSize+r.minBubbleSize)/2,f=1/0,g=-1/0;I(e,function(e,t){I(t.getPoints(),function(e,t){g=g>t.size?g:t.size,f=f<t.size?f:t.size})}),o=g-f,a=k(h-d),I(e,function(e,r){I(r.getPoints(),function(e,r){g===f?t=C(p):(i=k(r.size-f)/o,n=a*i+d,t=C(w.sqrt(n))),r.correctCoordinates(t)})})}}function m(e){var t=this;switch(t.type=A(e.type),t.pane=e.pane,t.series=[],t.updateOptions(e),t.type){case"bar":t.adjustSeriesDimensions=d,t.updateSeriesValues=f,t.adjustSeriesValues=h;break;case"rangebar":t.adjustSeriesDimensions=d;break;case"fullstackedbar":t.fullStacked=!0,t.adjustSeriesDimensions=d,t.adjustSeriesValues=h,t.updateSeriesValues=p;break;case"stackedbar":t.adjustSeriesDimensions=d,t.adjustSeriesValues=h,t.updateSeriesValues=p;break;case"fullstackedarea":case"fullstackedline":case"fullstackedspline":case"fullstackedsplinearea":t.fullStacked=!0,t.adjustSeriesValues=h;break;case"stackedarea":case"stackedsplinearea":case"stackedline":case"stackedspline":t.adjustSeriesValues=h;break;case"candlestick":case"stock":t.adjustSeriesDimensions=g;break;case"bubble":t.adjustSeriesDimensions=_}}var v=n(1).isNumeric,y=n(0).extend,b=n(3).each,x=n(1).isDefined,w=Math,C=w.round,k=w.abs,S=w.pow,I=b,T=n(4).noop,D=n(11),E=.3,A=D.normalizeEnum;t.SeriesFamily=m,m.prototype={constructor:m,adjustSeriesDimensions:T,adjustSeriesValues:T,updateSeriesValues:T,updateOptions:function(e){this._options=e},dispose:function(){this.series=null},add:function(e){var t=this.type;this.series=D.map(e,function(e){return e.type===t?e:null})}}},function(e,t,n){function i(e){return{x:e.x-p,y:e.y-f,width:e.width+2*p,height:e.height+2*f}}function o(e,t,n,o){var a=n?["x","width","y","height",t,0]:["y","height","x","width",e,1];return function(e,t,r){var s={x:r.x,y:r.y},l=i(e),u=n?r.y-e.y-e.height/2:r.y-e.y;return s.y=n||!n&&t===_?r.y+u:r.y,l[a[0]]<0?s[a[0]]-=l[a[0]]:l[a[0]]+l[a[1]]+u*a[5]>o[a[1]]&&(s[a[0]]-=l[a[0]]+l[a[1]]+u*a[5]-o[a[1]]),a[4]-l[a[3]]/2<0?s[a[2]]-=a[4]-l[a[3]]/2:a[4]+l[a[3]]/2>o[a[3]]&&(s[a[2]]-=a[4]+l[a[3]]/2-o[a[3]]),s}}function a(e,t,n,i){var o=this;o._renderer=e,o._crosshairGroup=i,o._options={},o.update(t,n)}var r=Math,s=r.abs,l=r.min,u=r.max,c=r.floor,d=n(11),h=n(0).extend,p=8,f=4,g="right",_="bottom";t.getMargins=function(){return{x:p,y:f}},a.prototype={constructor:a,update:function(e,t){var n=this,i=t.canvas;n._canvas={top:i.top,bottom:i.height-i.bottom,left:i.left,right:i.width-i.right,width:i.width,height:i.height},n._axes=t.axes,n._panes=t.panes,n._prepareOptions(e,"horizontal"),n._prepareOptions(e,"vertical")},dispose:function(){var e=this;e._renderer=e._crosshairGroup=e._options=e._axes=e._canvas=e._horizontalGroup=e._verticalGroup=e._horizontal=e._vertical=e._circle=e._panes=null},_prepareOptions:function(e,t){var n=e[t+"Line"];this._options[t]={visible:n.visible,line:{stroke:n.color||e.color,"stroke-width":n.width||e.width,dashStyle:n.dashStyle||e.dashStyle,opacity:n.opacity||e.opacity,"stroke-linecap":"butt"},label:h(!0,{},e.label,n.label)}},_createLines:function(e,t,n){for(var i=[],o=this._canvas,a=[o.left,o.top,o.left,o.top],r=0;r<2;r++)i.push(this._renderer.path(a,"line").attr(e).sharp(t).append(n));return i},render:function(){var e=this,t=e._renderer,n=e._options,i=n.vertical,o=n.horizontal,a=o.visible?o.line:i.line,r={stroke:a.stroke,"stroke-width":a["stroke-width"],dashStyle:a.dashStyle,opacity:a.opacity},s=e._canvas;e._horizontal={},e._vertical={},e._circle=t.circle(s.left,s.top,0).attr(r).append(e._crosshairGroup),e._horizontalGroup=t.g().append(e._crosshairGroup),e._verticalGroup=t.g().append(e._crosshairGroup),i.visible&&(e._vertical.lines=e._createLines(i.line,"h",e._verticalGroup),e._vertical.labels=e._createLabels(e._axes[0],i,!1,e._verticalGroup)),o.visible&&(e._horizontal.lines=e._createLines(o.line,"v",e._horizontalGroup),e._horizontal.labels=e._createLabels(e._axes[1],o,!0,e._horizontalGroup)),e.hide()},_createLabels:function(e,t,n,i){var o,a,r,s,l,u=this._canvas,c=this._renderer,h=[],p=t.label;return p.visible&&e.forEach(function(e){var f,m=e.getOptions().position;e.getTranslator().getBusinessRange().isEmpty()||(l=e.getLabelsPosition(),n?(a=u.top,o=l):(o=u.left,a=l),f="top"===m||m===_?"center":m===g?"left":g,s=c.rect(0,0,0,0).attr({fill:p.backgroundColor||t.line.stroke}).append(i),r=c.text("0",0,0).css(d.patchFontOptions(t.label.font)).attr({align:f}).append(i),h.push({text:r,background:s,axis:e,options:p,pos:{coord:l,side:m},startXY:{x:o,y:a}}))}),h},_updateText:function(e,t,n,o,a){var r=this;n.forEach(function(n){var s=n.axis,l=n.startXY,u=n.text,c=n.background,d="";s.name&&s.name!==t||(d=s.getFormattedValue(e,n.options,o)),d?(u.attr({text:d,x:l.x,y:l.y}),u.attr(a(u.getBBox(),n.pos.side,l)),r._updateLinesCanvas(n),c.attr(i(u.getBBox()))):(u.attr({text:""}),c.attr({x:0,y:0,width:0,height:0}))})},hide:function(){this._crosshairGroup.attr({visibility:"hidden"})},_updateLinesCanvas:function(e){var t=e.pos.side,n=e.pos.coord,i=this._linesCanvas,o=this._canvas;i[t]=i[t]!==o[t]&&s(i[t]-o[t])<s(n-o[t])?i[t]:n},_updateLines:function(e,t,n,i,o){for(var a=this._linesCanvas,r=this._canvas,s=o?[[l(t-i,a.left),r.top,t-i,r.top],[t+i,r.top,u(a.right,t+i),r.top]]:[[r.left,l(a.top,n-i),r.left,n-i],[r.left,n+i,r.left,u(a.bottom,n+i)]],c=0;c<2;c++)e[c].attr({points:s[c]}).sharp(o?"v":"h",o?n===r.bottom?-1:1:t===r.right?-1:1)},_resetLinesCanvas:function(){var e=this._canvas;this._linesCanvas={left:e.left,right:e.right,top:e.top,bottom:e.bottom}},_getClipRectForPane:function(e,t){var n,i,o=this._panes;for(n=0;n<o.length;n++)if((i=o[n].coords).left<=e&&i.right>=e&&i.top<=t&&i.bottom>=t)return o[n].clipRect;return{id:null}},show:function(e){var t=this,n=e.point,i=n.getCrosshairData(e.x,e.y),a=n.getPointRadius(),r=t._horizontal,s=t._vertical,l=a?a+3:0,u=t._canvas,d=c(i.x),h=c(i.y);d>=u.left&&d<=u.right&&h>=u.top&&h<=u.bottom?(t._crosshairGroup.attr({visibility:"visible"}),t._resetLinesCanvas(),t._circle.attr({cx:d,cy:h,r:l,"clip-path":t._getClipRectForPane(d,h).id}),r.lines&&(t._updateText(i.yValue,i.axis,r.labels,n,o(d,h,!0,u)),t._updateLines(r.lines,d,h,l,!0),t._horizontalGroup.attr({translateY:h-u.top})),s.lines&&(t._updateText(i.xValue,i.axis,s.labels,n,o(d,h,!1,u)),t._updateLines(s.lines,d,h,l,!1),t._verticalGroup.attr({translateX:d-u.left}))):t.hide()}},t.Crosshair=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){return{type:e.type,name:e.name,x:e.x,y:e.y,value:e.value,argument:e.argument,axis:e.axis,series:e.series,options:e,draw:function(n,i){var o=this,a=n._renderer.g().append(i);this.plaque=new d.Plaque(e,n,a,t.bind(this)),this.plaque.draw(n._getAnnotationCoords(this)),e.draggable&&a.on(y,{immediate:!0},function(e){o._dragOffsetX=o.plaque.x-e.pageX,o._dragOffsetY=o.plaque.y-e.pageY}).on(b,function(e){o.plaque.move(e.pageX+o._dragOffsetX,e.pageY+o._dragOffsetY)})},hitTest:function(e,t){return this.plaque.hitTest(e,t)},showTooltip:function(e,t){var n=t.x,i=t.y;e.annotation!==this?e.show(this.options,{x:n,y:i},{target:this.options},this.options.customizeTooltip)&&(e.annotation=this):e.move(n,i)}}}function a(e,t,n){var i=(0,u.extend)(!0,{},t,e);return n&&n.call&&(i=(0,u.extend)(!0,i,n(e))),"image"===i.type?function(e){var t=e.image||{},n=t.width,i=t.height,a=t.url,r=t.location;return o(e,function(e,t,o){var s=o.width,l=o.height,u=s>0?Math.min(n,s):n,c=l>0?Math.min(i,l):i;e._renderer.image(0,0,u,c,a,r||"center").append(t)})}(i):"text"===i.type?function(e){return o(e,function(t,n,i){var o=i.width,a=i.height,r=t._renderer.text(e.text).css((0,c.patchFontOptions)(e.font)).append(n);((0,s.isDefined)(o)||(0,s.isDefined)(a))&&r.setMaxSize(o,a,{wordWrap:e.wordWrap,textOverflow:e.textOverflow})})}(i):void 0}Object.defineProperty(t,"__esModule",{value:!0}),t.plugins=t.__test_utils=t.createAnnotations=void 0;var r=n(12),s=n(1),l=n(108),u=n(0),c=n(11),d=n(783),h=i(n(24)),p=i(n(55)),f=n(9),g=i(n(5)),_="annotations",m="."+_,v=(0,f.addNamespace)([h.default.down,h.default.move],_),y=p.default.start+m,b=p.default.move+m,x=t.createAnnotations=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];return e.reduce(function(e,i){var o=a(i,t,n);return o&&e.push(o),e},[])},w={name:"annotations_chart",init:function(){},dispose:function(){},members:{_getAnnotationCoords:function(e){var t={},n=this._options.rotated?"y":"x",i=this._options.rotated?"x":"y",o=this.getArgumentAxis(),a=o.validateUnit(e.argument),r=this.getValueAxis(e.axis),l=void 0,u=(0,s.isDefined)(r)?r.pane:void 0;e.series&&(l=this.series.filter(function(t){return t.name===e.series})[0],r=l&&l.getValueAxis(),(0,s.isDefined)(r)&&(u=r.pane)),(0,s.isDefined)(a)&&(t[n]=o.getTranslator().translate(a),!(0,s.isDefined)(u)&&(u=o.pane));var c=r&&r.validateUnit(e.value);return(0,s.isDefined)(c)&&(t[i]=r&&r.getTranslator().translate(c),!(0,s.isDefined)(u)&&(0,s.isDefined)(r)&&(u=r.pane)),t.canvas=this._getCanvasForPane(u),(0,s.isDefined)(t[n])&&!(0,s.isDefined)(c)&&((0,s.isDefined)(r)||(0,s.isDefined)(l)?(0,s.isDefined)(r)&&!(0,s.isDefined)(l)?t[i]=this._argumentAxes.filter(function(e){return e.pane===r.pane})[0].getAxisPosition():(0,s.isDefined)(l)&&l.checkSeriesViewportCoord(o,t[n])&&(t[i]=l.getSeriesPairCoord(t[n],!0)):t[i]=o.getAxisPosition()),!(0,s.isDefined)(a)&&(0,s.isDefined)(t[i])&&((0,s.isDefined)(r)&&!(0,s.isDefined)(l)?t[n]=r.getAxisPosition():(0,s.isDefined)(l)&&(l.checkSeriesViewportCoord(r,t[i])&&(t[n]=l.getSeriesPairCoord(t[i],!1)),(0,s.isDefined)(t[n])||(t[n]=r.getAxisPosition()))),t},_annotationsPointerEventHandler:function(e){var t=e.originalEvent,n=t.touches&&t.touches[0]||{},i=this._renderer.getRootOffset(),o={x:n.pageX||t.pageX||e.pageX,y:n.pageY||t.pageY||e.pageY},a=this._annotations.items.filter(function(e){return e.hitTest(o.x-i.left,o.y-i.top)})[0];return a&&a.options.tooltipEnabled?(this.hideTooltip(),this.clearHover(),a.showTooltip(this._annotations.tooltip,o),void e.stopPropagation()):void this._annotations.hideTooltip()}}},C={name:"annotations_core",init:function(){this._annotations={items:[],tooltip:new l.Tooltip({cssClass:this._rootClassPrefix+"-annotation-tooltip",eventTrigger:this._eventTrigger,widgetRoot:this.element()}),hideTooltip:function(){this.tooltip.annotation=null,this.tooltip.hide()}},this._annotations.tooltip.setRendererOptions(this._getRendererOptions());var e=(0,u.extend)({},this._themeManager.getOptions("tooltip"));e.customizeTooltip=void 0,this._annotations.tooltip.update(e)},dispose:function(){this._annotationsGroup.linkRemove().linkOff(),g.default.off((0,r.getDocument)(),m),this._annotationsGroup.off(m),this._annotations.tooltip&&this._annotations.tooltip.dispose()},extenders:{_createHtmlStructure:function(){var e=this;this._annotationsGroup=this._renderer.g().attr({class:this._rootClassPrefix+"-annotations"}).linkOn(this._renderer.root,"annotations").linkAppend(),g.default.on((0,r.getDocument)(),v,function(){return e._annotations.hideTooltip()}),this._annotationsGroup.on(v,this._annotationsPointerEventHandler.bind(this))},_renderExtraElements:function(){var e=this;this._annotationsGroup.clear(),this._annotations.items.forEach(function(t){return t.draw(e,e._annotationsGroup)})},_stopCurrentHandling:function(){this._annotations.hideTooltip()}},members:{_buildAnnotations:function(){this._annotations.items=[];var e=this._getOption("annotations");e&&e.length&&(this._annotations.items=x(e,this._getOption("commonAnnotationSettings"),this._getOption("customizeAnnotation")))},_getAnnotationCoords:function(){return{}}},customize:function(e){e.addChange({code:"ANNOTATIONITEMS",handler:function(){this._requestChange(["ANNOTATIONS"])},isOptionChange:!0,option:"annotations"}),e.addChange({code:"ANNOTATIONSSETTINGS",handler:function(){this._requestChange(["ANNOTATIONS"])},isOptionChange:!0,option:"commonAnnotationSettings"}),e.addChange({code:"ANNOTATIONS",handler:function(){this._buildAnnotations(),this._change(["FORCE_RENDER"])},isThemeDependent:!0,isOptionChange:!0})},fontFields:["commonAnnotationSettings.font"]};t.plugins={core:C,chart:w}},function(e,t,n){function i(){this.setDomain(arguments[0],arguments[1]).setCodomain(arguments[2],arguments[3])}var o=Number;i.prototype={constructor:i,setDomain:function(e,t){var n=this;return n._domain1=o(e),n._domain2=o(t),n._domainDelta=n._domain2-n._domain1,n},setCodomain:function(e,t){var n=this;return n._codomain1=o(e),n._codomain2=o(t),n._codomainDelta=n._codomain2-n._codomain1,n},getDomain:function(){return[this._domain1,this._domain2]},getCodomain:function(){return[this._codomain1,this._codomain2]},getDomainStart:function(){return this._domain1},getDomainEnd:function(){return this._domain2},getCodomainStart:function(){return this._codomain1},getCodomainEnd:function(){return this._codomain2},getDomainRange:function(){return this._domainDelta},getCodomainRange:function(){return this._codomainDelta},translate:function(e){var t=(o(e)-this._domain1)/this._domainDelta;return 0<=t&&t<=1?this._codomain1+t*this._codomainDelta:NaN},adjust:function(e){var t=(o(e)-this._domain1)/this._domainDelta,n=NaN;return t<0?n=this._domain1:t>1?n=this._domain2:0<=t&&t<=1&&(n=o(e)),n}},t.Translator1D=i},function(e,t,n){function i(e,t,n,i){var o;return n>e&&i<t?o=[{start:e,end:n},{start:i,end:t}]:n>=t||i<=e?o=[{start:e,end:t}]:n<=e&&i>=t?o=[]:n>e?o=[{start:e,end:n}]:i<t&&(o=[{start:i,end:t}]),o}function o(e,t,n,i){var o;return n<e&&i>t?o=[{start:e,end:n},{start:i,end:t}]:n<=t||i>=e?o=[{start:e,end:t}]:n>=e&&i<=t?o=[]:n<e?o=[{start:e,end:n}]:i>t&&(o=[{start:i,end:t}]),o}function a(e,t,n){return t-e>=n}function r(e,t,n){return e-t>=n}var s=n(3),l=n(271).BaseElement,u=Number,c=Math.abs,d=n(1).isString,h=Array.isArray,p=isFinite,f=s.each,g=l.inherit({_init:function(){this._root=this._renderer.g().attr({class:"dxg-range-container"}).linkOn(this._container,"range-container")},_dispose:function(){this._root.linkOff()},clean:function(){return this._root.linkRemove().clear(),this._options=this.enabled=null,this},_getRanges:function(){var e,t=this,n=t._options,s=t._translator,l=s.getDomain()[0],g=s.getDomain()[1],_=g-l,m=_>=0?a:r,v=_>=0?i:o,y=[],b=[],x=[{start:l,end:g}],w=c(_)/1e4,C=d(n.backgroundColor)?n.backgroundColor:"none",k=n.width||{},S=u(k>0?k:k.start),I=u(k>0?k:k.end),T=I-S;return(void 0===n.ranges||h(n.ranges))&&S>=0&&I>=0&&S+I>0?(y=(h(n.ranges)?n.ranges:[]).reduce(function(e,t,n){t=t||{};var i=s.adjust(t.startValue),o=s.adjust(t.endValue);return p(i)&&p(o)&&m(i,o,w)&&e.push({start:i,end:o,color:t.color,classIndex:n}),e},[]),e=t._themeManager.createPalette(n.palette,{type:"indicatingSet",extensionMode:n.paletteExtensionMode,keepLastColorInEnd:!0,count:y.length}),f(y,function(t,n){var i=e.getNextColor();n.color=d(n.color)&&n.color||i||"none",n.className="dxg-range dxg-range-"+n.classIndex,delete n.classIndex}),f(y,function(e,t){var n,i,o,a,r,s=[],l=[];for(n=0,i=b.length;n<i;++n)r=b[n],(o=(a=v(r.start,r.end,t.start,t.end))[0])&&(o.color=r.color)&&(o.className=r.className)&&s.push(o),(o=a[1])&&(o.color=r.color)&&(o.className=r.className)&&s.push(o);for(s.push(t),b=s,n=0,i=x.length;n<i;++n)r=x[n],(o=(a=v(r.start,r.end,t.start,t.end))[0])&&l.push(o),(o=a[1])&&l.push(o);x=l}),f(x,function(e,t){t.color=C,t.className="dxg-range dxg-background-range",b.push(t)}),f(b,function(e,t){t.startWidth=(t.start-l)/_*T+S,t.endWidth=(t.end-l)/_*T+S}),b):null},render:function(e){var t=this;return t._options=e,t._processOptions(),t._ranges=t._getRanges(),t._ranges&&(t.enabled=!0,t._root.linkAppend()),t},resize:function(e){var t=this;return t._root.clear(),t._isVisible(e)&&f(t._ranges,function(n,i){t._createRange(i,e).attr({fill:i.color,class:i.className}).append(t._root)}),t},_processOptions:null,_isVisible:null,_createRange:null,getColorForValue:function(e){var t=null;return f(this._ranges,function(n,i){if(i.start<=e&&e<=i.end||i.start>=e&&e>=i.end)return t=i.color,!1}),t}});e.exports=g},function(e,t,n){function i(e){return e.right-e.left}function o(e){return e.bottom-e.top}function a(e,t,n){var a,r=u({},e),s=0,l=0;return n=n||{},t>0&&(r.left+=n.left||0,r.right-=n.right||0,r.top+=n.top||0,r.bottom-=n.bottom||0,i(r)>0&&o(r)>0?((a=o(r)/i(r))>1?t<a?s=i(r):l=o(r):t>a?l=o(r):s=i(r),s>0||(s=l/t),l>0||(l=s*t),s=(i(r)-s)/2,l=(o(r)-l)/2,r.left+=s,r.right-=s,r.top+=l,r.bottom-=l):(r.left=r.right=(r.left+r.right)/2,r.top=r.bottom=(r.top+r.bottom)/2)),r}var r=isFinite,s=n(8),l=n(48),u=n(0).extend,c=n(3).each,d=n(146).dxBaseGauge,h=n(206).dxGauge,p=n(11),f=p.normalizeAngle,g=p.getCosAndSin,_=n(793),m=n(206).createIndicatorCreator,v=n(794),y=Math.abs,b=Math.max,x=Math.min,w=Math.round,C=c,k=Math.PI,S=h.inherit({_rootClass:"dxg-circular-gauge",_factoryMethods:{rangeContainer:"createCircularRangeContainer",indicator:"createCircularIndicator"},_gridSpacingFactor:17,_scaleTypes:{type:"polarAxes",drawingType:"circular"},_getThemeManagerOptions:function(){var e=this.callBase.apply(this,arguments);return e.subTheme="_circular",e},_updateScaleTickIndent:function(e){var t=e.label.indentFromTick,n=e.tick.visible?e.tick.length:0,i=this._scale.measureLabels(u({},this._canvas)),o=n;"inside"===e.orientation?o=0:"center"===e.orientation&&(o=.5*n),e.label.indentFromAxis=t>=0?t+o:t-o-b(i.width,i.height),this._scale.updateOptions(e)},_setupCodomain:function(){var e,t=this,n=t.option("geometry")||{},i=n.startAngle,o=n.endAngle;i=r(i)?f(i):225,o=r(o)?f(o):-45,y(i-o)<1?(o-=360,e={left:-1,up:-1,right:1,down:1}):(i<o&&(o-=360),e=function(e,t){var n=g(e),i=g(t),o=n.cos,a=n.sin,r=i.cos,s=i.sin;return{left:a<=0&&s>=0||a<=0&&s<=0&&o<=r||a>=0&&s>=0&&o>=r?-1:x(o,r,0),right:a>=0&&s<=0||a>=0&&s>=0&&o>=r||a<=0&&s<=0&&o<=r?1:b(o,r,0),up:o<=0&&r>=0||o<=0&&r<=0&&a>=s||o>=0&&r>=0&&a<=s?-1:-b(a,s,0),down:o>=0&&r<=0||o>=0&&r>=0&&a<=s||o<=0&&r<=0&&a>=s?1:-x(a,s,0)}}(i,o)),t._area={x:0,y:0,radius:100,startCoord:i,endCoord:o,sides:e},t._translator.setCodomain(i,o)},_shiftScale:function(e){var t,n=this._scale,i=n.getCanvas();i.width=i.height=2*e.radius,n.draw(i),t=n.getCenter(),n.shift({right:e.x-t.x,bottom:e.y-t.y})},_getScaleLayoutValue:function(){return this._area.radius},_getTicksOrientation:function(e){return e.orientation},_getTicksCoefficients:function(e){var t={inner:0,outer:1};return"inside"===e.orientation?(t.inner=1,t.outer=0):"center"===e.orientation&&(t.inner=t.outer=.5),t},_correctScaleIndents:function(e,t,n){t>=0?(e.horizontalOffset=t+n.width,e.verticalOffset=t+n.height):(e.horizontalOffset=e.verticalOffset=0,e.min-=-t+b(n.width,n.height)),e.inverseHorizontalOffset=n.width/2,e.inverseVerticalOffset=n.height/2},_measureMainElements:function(e,t){var n=this._area.radius,i=0,o=1/0,a=0,r=0,s=0,l=0,u=this._scale;return C(e.concat(u),function(e,u){var c=u.measure?u.measure({radius:n-u.getOffset()}):t;c.min>0&&(o=x(o,c.min)),c.max>0&&(i=b(i,c.max)),c.horizontalOffset>0&&(a=b(a,c.max+c.horizontalOffset)),c.verticalOffset>0&&(r=b(r,c.max+c.verticalOffset)),c.inverseHorizontalOffset>0&&(s=b(s,c.inverseHorizontalOffset)),c.inverseVerticalOffset>0&&(l=b(l,c.inverseVerticalOffset))}),a=b(a-i,0),r=b(r-i,0),{minRadius:o,maxRadius:i,horizontalMargin:a,verticalMargin:r,inverseHorizontalMargin:s,inverseVerticalMargin:l}},_applyMainLayout:function(e,t){var n,r,s=this._measureMainElements(e,t),l=this._area,u=l.sides,c={left:(u.left<-.1?s.horizontalMargin:s.inverseHorizontalMargin)||0,right:(u.right>.1?s.horizontalMargin:s.inverseHorizontalMargin)||0,top:(u.up<-.1?s.verticalMargin:s.inverseVerticalMargin)||0,bottom:(u.down>.1?s.verticalMargin:s.inverseVerticalMargin)||0},d=a(this._innerRect,(u.down-u.up)/(u.right-u.left),c),h=x(i(d)/(u.right-u.left),o(d)/(u.down-u.up));h=h-s.maxRadius+l.radius,n=d.left-i(d)*u.left/(u.right-u.left),r=d.top-o(d)*u.up/(u.down-u.up),l.x=w(n),l.y=w(r),l.radius=h,d.left-=c.left,d.right+=c.right,d.top-=c.top,d.bottom+=c.bottom,this._innerRect=d},_getElementLayout:function(e){return{x:this._area.x,y:this._area.y,radius:w(this._area.radius-e)}},_getApproximateScreenRange:function(){var e=this,t=e._area,n=x(e._canvas.width/(t.sides.right-t.sides.left),e._canvas.height/(t.sides.down-t.sides.up));return n>t.totalRadius&&(n=t.totalRadius),n*=.8,-e._translator.getCodomainRange()*n*k/180},_getDefaultSize:function(){return{width:300,height:300}},_factory:l.clone(d.prototype._factory)}),I=S.prototype._factory.indicators={};S.prototype._factory.createIndicator=m(I),I._default=_._default,I.rectangleneedle=_.rectangleneedle,I.triangleneedle=_.triangleneedle,I.twocolorneedle=_.twocolorneedle,I.trianglemarker=_.trianglemarker,I.textcloud=_.textcloud,I.rangebar=_.rangebar,S.prototype._factory.RangeContainer=v,s("dxCircularGauge",S),e.exports=S},function(e,t,n){function i(e,t){return C(e-t)<1e-8}function o(e,t){return i(e[0],t[0])&&i(e[1],t[1])}function a(e,t,n,i){var o=b(e);return isFinite(o)?x(w(o,t),n):i}function r(e,t,n,i){return[a(e[0],t[0],n[0],i[0]),a(e[1],t[1],n[1],i[1])]}function s(e){return e instanceof h&&e||_.get(e)||_.get(A)}function l(e){var t=this;t._initEvents(),t._params=e,t._engine=s(),t._center=t._engine.center(),t._adjustCenter()}function u(e,t,n,i){var o=(n+i)/2;return C(e-o)>C(t-o)?e:t}function c(e,t,n,i){var o=(n+i)/2;return C(e-o)<C(t-o)?e:t}function d(e,t,n){var i=m(t,n);e.min=g(i.min),e.max=g(i.max)}function h(e){var t=this,n=function(e){return function(t){return p(e(t))}}(e.to),i=e.from?function(e){return function(t){return e(p(t))}}(e.from):f(E);t.project=n,t.unproject=i,t.original=f(t),t.source=function(){return v({},e)},t.isInvertible=f(!!e.from),t.ar=f(e.aspectRatio>0?b(e.aspectRatio):1),t.center=g(i([0,0])),d(t,[i([-1,0])[0],i([0,1])[1]],[i([1,0])[0],i([0,-1])[1]])}function p(e){return[e[0],-e[1]]}function f(e){return function(){return e}}function g(e){return function(){return e.slice()}}function _(e){return e&&e.to?new h(e):null}function m(e,t){return{min:[x(e[0],t[0]),x(e[1],t[1])],max:[w(e[0],t[0]),w(e[1],t[1])]}}var v=n(0).extend,y=n(408),b=Number,x=Math.min,w=Math.max,C=Math.abs,k=Math.round,S=Math.log,I=Math.pow,T=2/Math.LN2,D=1/3600/180/10,E=[NaN,NaN],A="mercator";l.prototype={constructor:l,_minZoom:1,_maxZoom:256,_zoom:1,_center:E,_canvas:{},_scale:[],dispose:function(){this._disposeEvents()},setEngine:function(e){var t=this,n=s(e);t._engine!==n&&(t._engine=n,t._fire("engine"),t._changeCenter(n.center())&&t._triggerCenterChanged(),t._changeZoom(t._minZoom)&&t._triggerZoomChanged(),t._adjustCenter(),t._setupScreen())},setBounds:function(e){void 0!==e&&this.setEngine(this._engine.original().bounds(e))},_setupScreen:function(){var e=this,t=e._canvas,n=t.width,i=t.height,o=e._engine.ar();e._x0=t.left+n/2,e._y0=t.top+i/2,n/i<=o?(e._xRadius=n/2,e._yRadius=n/2/o):(e._xRadius=i/2*o,e._yRadius=i/2),e._fire("screen")},setSize:function(e){this._canvas=e,this._setupScreen()},_toScreen:function(e){return[this._x0+this._xRadius*e[0],this._y0+this._yRadius*e[1]]},_fromScreen:function(e){return[(e[0]-this._x0)/this._xRadius,(e[1]-this._y0)/this._yRadius]},_toTransformed:function(e){return[e[0]*this._zoom+this._xCenter,e[1]*this._zoom+this._yCenter]},_toTransformedFast:function(e){return[e[0]*this._zoom,e[1]*this._zoom]},_fromTransformed:function(e){return[(e[0]-this._xCenter)/this._zoom,(e[1]-this._yCenter)/this._zoom]},_adjustCenter:function(){var e=this,t=e._engine.project(e._center);e._xCenter=-t[0]*e._zoom||0,e._yCenter=-t[1]*e._zoom||0},project:function(e){return this._engine.project(e)},transform:function(e){return this._toScreen(this._toTransformedFast(e))},isInvertible:function(){return this._engine.isInvertible()},getSquareSize:function(e){return[e[0]*this._zoom*this._xRadius,e[1]*this._zoom*this._yRadius]},getZoom:function(){return this._zoom},_changeZoom:function(e){var t=this,n=!i(t._zoom,t._zoom=a(e,t._minZoom,t._maxZoom,t._minZoom));return n&&(t._adjustCenter(),t._fire("zoom")),n},setZoom:function(e){this._engine.isInvertible()&&this._changeZoom(e)&&this._triggerZoomChanged()},getScaledZoom:function(){return k((this._scale.length-1)*S(this._zoom)/S(this._maxZoom))},setScaledZoom:function(e){this.setZoom(this._scale[k(e)])},changeScaledZoom:function(e){this.setZoom(this._scale[w(x(k(this.getScaledZoom()+e),this._scale.length-1),0)])},getZoomScalePartition:function(){return this._scale.length-1},_setupScaling:function(){var e,t,n=this,i=k(T*S(n._maxZoom)),o=1;for(i=i>4?i:4,e=I(n._maxZoom,1/i),t=n._minZoom,n._scale=[t];o<=i;++o)n._scale.push(t*=e)},setMaxZoom:function(e){var t=this;t._minZoom=1,t._maxZoom=a(e,t._minZoom,b.MAX_VALUE,256),t._setupScaling(),t._zoom>t._maxZoom&&t.setZoom(t._maxZoom),t._fire("max-zoom")},getCenter:function(){return this._center.slice()},setCenter:function(e){this._engine.isInvertible()&&this._changeCenter(e||[])&&this._triggerCenterChanged()},_changeCenter:function(e){var t=this,n=t._engine,i=!o(t._center,t._center=r(e,n.min(),n.max(),n.center()));return i&&(t._adjustCenter(),t._fire("center")),i},_triggerCenterChanged:function(){this._params.centerChanged(this.getCenter())},_triggerZoomChanged:function(){this._params.zoomChanged(this.getZoom())},setCenterByPoint:function(e,t){var n=this,i=n._engine.project(e),o=n._fromScreen(t);n.setCenter(n._engine.unproject([-o[0]/n._zoom+i[0],-o[1]/n._zoom+i[1]]))},beginMoveCenter:function(){this._engine.isInvertible()&&(this._moveCenter=this._center)},endMoveCenter:function(){var e=this;e._moveCenter&&(o(e._moveCenter,e._center)||e._triggerCenterChanged(),e._moveCenter=null)},moveCenter:function(e){var t,n,i=this;i._moveCenter&&(t=i._toScreen(i._toTransformed(i._engine.project(i._center))),n=i._engine.unproject(i._fromTransformed(i._fromScreen([t[0]+e[0],t[1]+e[1]]))),i._changeCenter(n))},getViewport:function(){var e=this,t=e._engine.unproject,n=t(e._fromTransformed([-1,-1])),i=t(e._fromTransformed([-1,1])),o=t(e._fromTransformed([1,-1])),a=t(e._fromTransformed([1,1])),r=m([u(n[0],i[0],o[0],a[0]),u(n[1],o[1],i[1],a[1])],[u(o[0],a[0],n[0],i[0]),u(i[1],a[1],n[1],o[1])]);return[].concat(r.min,r.max)},setViewport:function(e){var t=this._engine,n=e?function(e,t,n){var i=e([n[0],n[3]]),o=e([n[0],n[1]]),a=e([n[2],n[3]]),r=e([n[2],n[1]]),s=c(i[0],o[0],a[0],r[0]),l=c(a[0],r[0],i[0],o[0]),u=c(i[1],a[1],o[1],r[1]),d=c(o[1],r[1],i[1],a[1]);return[2/w(C(s-l),C(u-d)),t([(s+l)/2,(u+d)/2])]}(t.project,t.unproject,e):[this._minZoom,t.center()];this.setZoom(n[0]),this.setCenter(n[1])},getTransform:function(){return{translateX:this._xCenter*this._xRadius,translateY:this._yCenter*this._yRadius}},fromScreenPoint:function(e){return this._engine.unproject(this._fromTransformed(this._fromScreen(e)))},_eventNames:["engine","screen","center","zoom","max-zoom"]},y.makeEventEmitter(l),h.prototype.aspectRatio=function(e){var t=new h(v(this.source(),{aspectRatio:e}));return t.original=this.original,t.min=this.min,t.max=this.max,t},h.prototype.bounds=function(e){e=e||[];var t,n=this.source(),i=this.min(),o=this.max(),a=r([e[0],e[1]],i,o,i),s=r([e[2],e[3]],i,o,o),l=n.to(a),u=n.to(s),c=x(C(u[0]-l[0])>D?C(u[0]-l[0]):2,C(u[1]-l[1])>D?C(u[1]-l[1]):2);return c<2&&v(n,function(e,t,n,i,o){var a=(n[0]+i[0])/2-o/2,r=(n[1]+i[1])/2-o/2,s=2/o;return{to:function(t){var n=e(t);return[(n[0]-a)*s-1,(n[1]-r)*s-1]},from:function(e){var n=[a+(e[0]+1)/s,r+(e[1]+1)/s];return t(n)}}}(n.to,n.from,l,u,c)),(t=new h(n)).original=this.original,d(t,a,s),t};var O={};_.get=function(e){return O[e]||null},_.add=function(e,t){return!O[e]&&function(e){return e instanceof h}(t)&&(O[e]=t),_},t.Projection=l,t.projection=_},function(e,t,n){var i=n(25),o={_initEvents:function(){var e,t=this._eventNames,n=t.length,o=this._events={};for(e=0;e<n;++e)o[t[e]]=i()},_disposeEvents:function(){var e,t=this._events;for(e in t)t[e].empty();this._events=null},on:function(e){var t,n=this._events;for(t in e)n[t].add(e[t]);return function(){for(t in e)n[t].remove(e[t])}},_fire:function(e,t){this._events[e].fire(t)}};t.makeEventEmitter=function(e){var t,n=e.prototype;for(t in o)n[t]=o[t]}},function(e,t,n){function i(e,t){return r(a(e,+t),-t)}var o=n(407).projection,a=Math.min,r=Math.max,s=Math.sin,l=Math.asin,u=Math.tan,c=Math.atan,d=Math.exp,h=Math.log,p=Math.PI,f=p/4,g=180,_=p/180,m=(2*c(d(p))-p/2)/_,v=(2.5*c(d(.8*p))-.625*p)/_;o.add("mercator",o({aspectRatio:1,to:function(e){return[e[0]/g,h(u(f+i(e[1],m)*_/2))/p]},from:function(e){return[e[0]*g,(2*c(d(e[1]*p))-p/2)/_]}})),o.add("equirectangular",o({aspectRatio:2,to:function(e){return[e[0]/g,e[1]/90]},from:function(e){return[e[0]*g,90*e[1]]}})),o.add("lambert",o({aspectRatio:2,to:function(e){return[e[0]/g,s(i(e[1],90)*_)]},from:function(e){return[e[0]*g,l(i(e[1],1))/_]}})),o.add("miller",o({aspectRatio:1,to:function(e){return[e[0]/g,1.25*h(u(f+i(e[1],v)*_*.4))/p]},from:function(e){return[e[0]*g,(2.5*c(d(.8*e[1]*p))-.625*p)/_]}})),t.projection=o},function(e,t,n){function i(e,t,n){var i=function(e,t){var n=e.lineSpacing,i=(null!=n?n:d)+e.size;return function(e){for(var n="",o=e.valueText,a=0;a<o.length;a+=2)n+="<tr><td>"+o[a]+"</td><td style='width: 15px'></td><td style='text-align: "+(t?"left":"right")+"'>"+o[a+1]+"</td></tr>";return{html:"<table style='border-spacing:0px; line-height: "+i+"px'>"+n+"</table>"}}}(t,n);return l(e)?function(t){var n=e.call(t,t);return"html"in n||"text"in n||g(n,i.call(t,t)),n}:i}function o(e){var t=new f.Translator2D({},{},{isHorizontal:!!e});return{getTranslator:function(){return t},update:function(e,n,i){t.update(e,n,i)},getVisibleArea:function(){var e=t.getCanvasVisibleArea();return[e.min,e.max]},visualRange:_,calculateInterval:_,getMarginOptions:function(){return{}}}}var a=n(5),r=n(12),s=n(47).add,l=n(1).isFunction,u=n(98),c=n(0).extend,d=2,h=100,p=n(9),f=n(270),g=c,_=n(4).noop,m=u.inherit({_getLayoutItems:_,_useLinks:!1,_themeDependentChanges:["OPTIONS"],_initCore:function(){var e=this;e._tooltipTracker=e._renderer.root,e._tooltipTracker.attr({"pointer-events":"visible"}),e._createHtmlElements(),e._initTooltipEvents(),e._argumentAxis=o(!0),e._valueAxis=o()},_getDefaultSize:function(){return this._defaultSize},_disposeCore:function(){this._disposeWidgetElements(),this._disposeTooltipEvents(),this._ranges=null},_optionChangesOrder:["OPTIONS"],_change_OPTIONS:function(){this._prepareOptions(),this._change(["UPDATE"])},_customChangesOrder:["UPDATE"],_change_UPDATE:function(){this._update()},_update:function(){var e=this;e._tooltipShown&&(e._tooltipShown=!1,e._tooltip.hide()),e._cleanWidgetElements(),e._updateWidgetElements(),e._drawWidgetElements()},_updateWidgetElements:function(){var e=this._getCorrectCanvas();this._updateRange(),this._argumentAxis.update(this._ranges.arg,e,this._getStick()),this._valueAxis.update(this._ranges.val,e)},_getStick:function(){},_applySize:function(e){this._allOptions.size={width:e[2]-e[0],height:e[3]-e[1]},this._change(["UPDATE"])},_setupResizeHandler:_,_prepareOptions:function(){return g(!0,{},this._themeManager.theme(),this.option())},_getTooltipCoords:function(){var e=this._canvas,t=this._renderer.getRootOffset();return{x:e.width/2+t.left,y:e.height/2+t.top}},_initTooltipEvents:function(){var e=this,t={widget:e};e._showTooltipCallback=function(){e._tooltipShown||(e._tooltipShown=!0,e._getTooltip().isEnabled()&&e._tooltip.show(e._getTooltipData(),e._getTooltipCoords(),{}))},e._hideTooltipCallback=function(){e._hideTooltipTimeout=null,e._tooltipShown&&(e._tooltipShown=!1,e._tooltip.hide())},e._disposeCallbacks=function(){e=e._showTooltipCallback=e._hideTooltipCallback=e._disposeCallbacks=null},e._tooltipTracker.on(y,t).on(I,t),e._tooltipTracker.on(v)},_stopCurrentHandling:function(){this._hideTooltip()},_disposeTooltipEvents:function(){var e=this;clearTimeout(e._hideTooltipTimeout),e._tooltipTracker.off(),e._disposeCallbacks()},_getTooltip:function(){var e=this;return e._tooltip||(T.apply(this,arguments),e._setTooltipRendererOptions(e._tooltipRendererOptions),e._tooltipRendererOptions=null,e._setTooltipOptions()),e._tooltip}}),v={"contextmenu.sparkline-tooltip":function(e){(p.isTouchEvent(e)||p.isPointerEvent(e))&&e.preventDefault()},"MSHoldVisual.sparkline-tooltip":function(e){e.preventDefault()}},y={"mouseover.sparkline-tooltip":function(e){S=!1;var t=e.data.widget;t._x=e.pageX,t._y=e.pageY,t._tooltipTracker.off(b).on(b,e.data),t._showTooltip()},"mouseout.sparkline-tooltip":function(e){if(!S){var t=e.data.widget;t._tooltipTracker.off(b),t._hideTooltip(h)}}},b={"mousemove.sparkline-tooltip":function(e){var t=e.data.widget;t._x=e.pageX,t._y=e.pageY,t._showTooltip()}},x=null,w=function(e){var t=x;t&&t!==e.data.widget&&t._hideTooltip(h),(t=x=e.data.widget)._showTooltip(),t._touch=!0},C=function(){var e=x;e&&(e._touch||(e._hideTooltip(h),x=null),e._touch=null)},k=function(){x&&(x._hideTooltip(h),x=null)},S=!1,I={"pointerdown.sparkline-tooltip":w,"touchstart.sparkline-tooltip":w};s(function(){a.subscribeGlobal(r.getDocument(),{"pointerdown.sparkline-tooltip":function(){S=!0,C()},"touchstart.sparkline-tooltip":C,"pointerup.sparkline-tooltip":k,"touchend.sparkline-tooltip":k})}),e.exports=m,m.addPlugin(n(108).plugin);var T=m.prototype._initTooltip;m.prototype._initTooltip=_;var D=m.prototype._disposeTooltip;m.prototype._disposeTooltip=function(){this._tooltip&&D.apply(this,arguments)},m.prototype._setTooltipRendererOptions=function(){var e=this._getRendererOptions();this._tooltip?this._tooltip.setRendererOptions(e):this._tooltipRendererOptions=e},m.prototype._setTooltipOptions=function(){var e=this._tooltip,t=e&&this._getOption("tooltip");e&&e.update(g({},t,{customizeTooltip:i(t.customizeTooltip,t.font,this.option("rtlEnabled")),enabled:t.enabled&&this._isTooltipEnabled()}))},m.prototype._showTooltip=function(){var e=this;clearTimeout(e._hideTooltipTimeout),e._hideTooltipTimeout=null,e._showTooltipCallback()},m.prototype._hideTooltip=function(e){var t=this;clearTimeout(t._hideTooltipTimeout),e?t._hideTooltipTimeout=setTimeout(t._hideTooltipCallback,e):t._hideTooltipCallback()};var E=c(!0,{},n(97).plugin,{init:_,dispose:_,customize:null,members:{_getExportMenuOptions:null}});m.addPlugin(E)},function(e,t,n){function i(e,t){return a(e,t)}function o(e){return r(e,i,!1)}var a=Math.max,r=n(412);n(122).addAlgorithm("squarified",o),e.exports=o},function(e,t,n){function i(e,t){return t.value-e.value}function o(e){return s(e,1/e)}function a(e,t,n){var i,a,r,s,u,c=1/0,d=0,h=e.length,p=n.areaToValue/n.staticSide;for(r=t;r<h;){for(a=d+e[r].value,u=n.staticSide/p/a,i=0,s=t;s<=r;++s)i=n.accumulate(i,o(u*e[s].value/a),s-t+1);if(!(i<c))break;c=i,d=a,++r}return{sum:d,count:r-t,side:l(p*d)}}function r(e,t,n){var i=u.buildSidesData(n.rect,n.directions,n.staticSideIndex),o=function(e){return(e[2]-e[0])*(e[3]-e[1])}(n.rect),r=o>0?a(e,t,{areaToValue:o/n.sum,accumulate:n.accumulate,staticSide:i.staticSide}):{sum:1,side:i.variedSide,count:e.length-t};return u.calculateRectangles(e,t,n.rect,i,r),n.sum-=r.sum,t+r.count}var s=Math.max,l=Math.round,u=n(122);e.exports=function(e,t,n){var o,a=e.items,s=a.length,l={sum:e.sum,rect:e.rect,directions:e.directions,accumulate:t};for(n&&(l.staticSideIndex=u.getStaticSideIndex(l.rect)),a.sort(i),o=0;o<s;)o=r(a,o,l)}},function(e,t,n){function i(e,t,n){var i=t.createPalette(e.palette,{useHighlight:!0,extensionMode:e.paletteExtensionMode,count:e.colorizeGroups?function e(t){var n,i,o=t.nodes.slice(),a=o.length,r=0;for(n=0;n<a;++n)i=o[n],i.isNode()&&(r+=e(i)+1);return r}(n):function e(t){var n,i,o=t.nodes.slice(),a=o.length,r=0;for(n=0;n<a;++n)i=o[n],i.isNode()?r=Math.max(r,e(i)):r+=1;return r}(n)});return(e.colorizeGroups?function(e,t){var n=function(e,t){var n,i,o={},a=t.nodes.slice(),r=a.length;for(n=0;n<r;++n)(i=a[n]).isNode()?(a=a.concat(i.nodes),r=a.length):o[i.parent._id]||(o[i.parent._id]=e.getNextColor());return o}(e,t);return function(e){return n[e._id]}}:function(e){var t=e.generateColors();return function(e){return t[e.index]}})(i,n)}n(123).addColorizer("discrete",i),e.exports=i},function(e,t,n){var i=n(73).prototype,o=n(170).prototype,a=n(143).expand,r=n(272),s=n(11).parseScalar,l=r.buildRectAppearance;n(147),n(415),i._eventsMap.onHoverChanged={name:"hoverChanged"},a(i._handlers,"calculateAdditionalStates",function(e,t){e[1]=t.hoverStyle?l(t.hoverStyle):{}}),n(73).addChange({code:"HOVER_ENABLED",handler:function(){var e=s(this._getOption("hoverEnabled",!0),!0);e||this.clearHover(),this._hoverEnabled=e},isThemeDependent:!0,isOptionChange:!0,option:"hoverEnabled"}),o.statesMap[1]=1,o.additionalStates.push(1),a(i,"_extendProxyType",function(e){var t=this;e.setHover=function(){t._hoverNode(this._id)},e.isHovered=function(){return t._hoverIndex===this._id}}),a(i,"_onNodesCreated",function(){this._hoverIndex=-1}),a(i,"_changeGroupSettings",function(){var e=this;e._groupHoverEnabled=s(e._getOption("group").hoverEnabled,!0),e._groupHoverEnabled||e.clearHover()}),i._applyHoverState=function(e,t){(function e(t,n,i){var o,a=t.isNode()&&t.nodes,r=a&&a.length;for(t.setState(n,i),o=0;o<r;++o)e(a[o],n,i)})(this._nodes[e],1,t),this._eventTrigger("hoverChanged",{node:this._nodes[e].proxy})},i._hoverNode=function(e){var t=this,n=t._hoverIndex;if(t._hoverEnabled&&n!==e){if(!t._groupHoverEnabled&&e>=0&&t._nodes[e].isNode())return void t.clearHover();t._context.suspend(),t._hoverIndex=-1,n>=0&&t._applyHoverState(n,!1),t._hoverIndex=e,e>=0&&t._applyHoverState(e,!0),t._context.resume()}},i.clearHover=function(){this._hoverNode(-1)}},function(e,t,n){var i=n(73).prototype,o=n(170).prototype,a=i._handlers,r=a.calculateState,s=o._buildState,l=n(0).extend;a.calculateState=function(e){var t={0:r(e)};return a.calculateAdditionalStates(t,e),t},a.calculateAdditionalStates=n(4).noop,o.code=0,o.statesMap={0:0},o.additionalStates=[],o._buildState=function(e,t){var n={0:s(e[0],t)};return this.additionalStates.length&&function(e,t,n,i){var o,a=i.length;for(o=0;o<a;++o)e[i[o]]=l({},t,n[i[o]])}(n,n[0],e,this.additionalStates),n},o._getState=function(){return this.state[this.statesMap[this.code]]},o.setState=function(e,t){t?this.code|=e:this.code&=~e,this.ctx.change(["TILES"])}},function(e,t,n){var i=n(73).prototype,o=n(143).expand;n(147),o(i,"_extendProxyType",function(e){var t=this;e.showTooltip=function(e){t._showTooltip(this._id,e)}}),o(i,"_onNodesCreated",function(){this._tooltipIndex>=0&&this._tooltip.hide(),this._tooltipIndex=-1}),o(i,"_onTilingPerformed",function(){this._tooltipIndex>=0&&this._moveTooltip(this._nodes[this._tooltipIndex])}),i._showTooltip=function(e,t){var n=this,i=n._tooltip,o=n._nodes[e],a=n._tooltipIndex===e||i.show({value:o.value,valueText:i.formatValue(o.value),node:o.proxy},{x:0,y:0,offset:0},{node:o.proxy});a?n._moveTooltip(o,t):i.hide(),n._tooltipIndex=a?e:-1},i._moveTooltip=function(e,t){var n=t||e.rect&&function(e,t){var n=t.getRootOffset();return[(e[0]+e[2])/2+n.left,(e[1]+e[3])/2+n.top]}(e.rect,this._renderer)||[-1e3,-1e3];this._tooltip.move(n[0],n[1],0)},i.hideTooltip=function(){this._tooltipIndex>=0&&(this._tooltipIndex=-1,this._tooltip.hide())},n(73).addPlugin(n(108).plugin)},function(e,t,n){var i=n(831),o=n(832),a=n(833),r=n(4).noop,s=n(834),l="NODES_CREATE";i.addAlgorithm("dynamicslope",o,!0),i.addAlgorithm("dynamicheight",a);var u=n(98).inherit({_rootClass:"dxf-funnel",_rootClassPrefix:"dxf",_proxyData:[],_optionChangesMap:{dataSource:"DATA_SOURCE",neckWidth:l,neckHeight:l,inverted:l,algorithm:l,item:l,valueField:l,argumentField:l,colorField:l,palette:l,paletteExtensionMode:l,sortData:l},_themeDependentChanges:[l],_getDefaultSize:function(){return{width:400,height:400}},_themeSection:"funnel",_fontFields:["legend.title.font","legend.title.subtitle.font","legend.font"],_optionChangesOrder:["DATA_SOURCE"],_initialChanges:["DATA_SOURCE"],_initCore:function(){this._group=this._renderer.g().append(this._renderer.root),this._items=[]},_eventsMap:{onHoverChanged:{name:"hoverChanged"},onSelectionChanged:{name:"selectionChanged"}},_disposeCore:r,_applySize:function(e){return this._rect=e.slice(),this._change(["TILING"]),this._rect},_getAlignmentRect:function(){return this._rect},_change_TILING:function(){var e=this,t=e._items,n=e._rect,i=function(e,t){var i=t%2;return n[0+i]+(n[2+i]-n[0+i])*e};this._group.clear(),t.forEach(function(t,n){var o=t.figure.map(i),a=e._renderer.path([],"area").attr({points:o}).append(e._group);t.coords=o,t.element=a}),this._requestChange(["TILES"])},_customChangesOrder:[l,"LAYOUT","TILING","TILES","DRAWN"],_dataSourceChangedHandler:function(){this._requestChange([l])},_change_DRAWN:function(){this._drawn()},_change_DATA_SOURCE:function(){this._change(["DRAWN"]),this._updateDataSource()},_change_NODES_CREATE:function(){this._buildNodes()},_change_TILES:function(){this._applyTilesAppearance()},_suspend:function(){this._applyingChanges||this._suspendChanges()},_resume:function(){this._applyingChanges||this._resumeChanges()},_applyTilesAppearance:function(){this._items.forEach(function(e){var t=e.getState();e.element.smartAttr(e.states[t])})},_hitTestTargets:function(e,t){var n,i=this;return this._proxyData.some(function(o){if(n=o.call(i,e,t))return!0}),n},clearHover:function(){this._suspend(),this._items.forEach(function(e){e.isHovered()&&e.hover(!1)}),this._resume()},clearSelection:function(){this._suspend(),this._items.forEach(function(e){e.isSelected()&&e.select(!1)}),this._resume()},_getData:function(){var e=this,t=e._dataSourceItems()||[],n=e._getOption("valueField",!0),i=e._getOption("argumentField",!0),o=e._getOption("colorField",!0),a=t.reduce(function(e,t){var a=Number(t[n]);return a>=0&&(e[0].push({value:a,color:t[o],argument:t[i],dataItem:t}),e[1]+=a),e},[[],0]),r=a[0];return a[1]||(r=r.map(function(e){return e.value+=1,e})),t.length>0&&0===r.length&&e._incidentOccurred("E2005",n),e._getOption("sortData",!0)&&r.sort(function(e,t){return t.value-e.value}),r},_buildNodes:function(){var e=this,t=e._getData(),n=i.getAlgorithm(e._getOption("algorithm",!0)),o=n.normalizeValues(t),a=e._getOption("item"),r=n.getFigures(o,e._getOption("neckWidth",!0),e._getOption("neckHeight",!0)),l=e._themeManager.createPalette(e._getOption("palette",!0),{useHighlight:!0,extensionMode:e._getOption("paletteExtensionMode",!0),count:r.length});e._items=r.map(function(n,i){var r=t[i];return new s(e,{figure:n,data:r,percent:o[i],id:i,color:r.color||l.getNextColor(),itemOptions:a})}),e._getOption("inverted",!0)&&e._items.forEach(function(e){e.figure=function(e){return e.map(function(e,t){return t%2?1-e:e})}(e.figure)}),e._renderer.initHatching(),e._change(["TILING","DRAWN"])},_showTooltip:r,hideTooltip:r,getAllItems:function(){return this._items.slice()},_getLegendData:function(){return this._items.map(function(e){return{id:e.id,visible:!0,text:e.argument,item:e,states:e.states}})},_getMinSize:function(){var e=this._getOption("adaptiveLayout");return[e.width,e.height]}});n(8)("dxFunnel",u),e.exports=u,u.addPlugin(n(145).plugin)},function(e,t,n){function i(e,t,n){var i=[],o="in"===n?"_to":"_from",a="in"===n?"_from":"_to";return e.links.map(function(e){return e[o]._name===t}).forEach(function(t,n){t&&i.push({index:n,weight:e.links[n]._weight,node:e.links[n][a]._name})}),i}var o=n(419),a=n(4).noop,r=n(839),s=n(840),l=n(841),u=n(1),c=u.isString,d=u.isNumeric,h=n(98).inherit({_rootClass:"dxs-sankey",_rootClassPrefix:"dxs",_proxyData:[],_optionChangesMap:{dataSource:"DATA_SOURCE",sortData:"DATA_SOURCE",alignment:"DATA_SOURCE",node:"BUILD_LAYOUT",link:"BUILD_LAYOUT",palette:"BUILD_LAYOUT",paletteExtensionMode:"BUILD_LAYOUT"},_themeDependentChanges:["BUILD_LAYOUT"],_getDefaultSize:function(){return{width:400,height:400}},_themeSection:"sankey",_fontFields:["label.font"],_optionChangesOrder:["DATA_SOURCE"],_initialChanges:["DATA_SOURCE"],_initCore:function(){this._groupLinks=this._renderer.g().append(this._renderer.root),this._groupNodes=this._renderer.g().append(this._renderer.root),this._groupLabels=this._renderer.g().attr({class:this._rootClassPrefix+"-labels"}).append(this._renderer.root),this._drawLabels=!0,this._nodes=[],this._links=[],this._gradients=[]},_disposeCore:a,_applySize:function(e){this._rect=e.slice();var t=this._getOption("adaptiveLayout");return t.keepLabels||this._rect[2]-this._rect[0]>t.width?this._drawLabels=!0:this._drawLabels=!1,this._change(["BUILD_LAYOUT"]),this._rect},_eventsMap:{onNodeHoverChanged:{name:"nodeHoverChanged"},onLinkHoverChanged:{name:"linkHoverChanged"}},_customChangesOrder:["BUILD_LAYOUT","NODES_DRAW","LINKS_DRAW","LABELS","DRAWN"],_dataSourceChangedHandler:function(){this._requestChange(["BUILD_LAYOUT"])},_change_DRAWN:function(){this._drawn()},_change_DATA_SOURCE:function(){this._change(["DRAWN"]),this._updateDataSource()},_change_LABELS:function(){this._applyLabelsAppearance()},_change_BUILD_LAYOUT:function(){this._groupNodes.clear(),this._groupLinks.clear(),this._groupLabels.clear(),this._buildLayout()},_change_NODES_DRAW:function(){var e=this;e._nodes.forEach(function(t,n){var i=e._renderer.rect().attr(t.rect).append(e._groupNodes);t.element=i}),this._applyNodesAppearance()},_change_LINKS_DRAW:function(){var e=this;e._links.forEach(function(t,n){var i=e._renderer.g().attr({class:"link","data-link-idx":n}).append(e._groupLinks);t.overlayElement=e._renderer.path([],"area").attr({d:t.d}).append(i),t.element=e._renderer.path([],"area").attr({d:t.d}).append(i)}),this._applyLinksAppearance()},_suspend:function(){this._applyingChanges||this._suspendChanges()},_resume:function(){this._applyingChanges||this._resumeChanges()},_showTooltip:a,hideTooltip:a,clearHover:function(){this._suspend(),this._nodes.forEach(function(e){e.isHovered()&&e.hover(!1)}),this._links.forEach(function(e){e.isHovered()&&e.hover(!1),e.isAdjacentNodeHovered()&&e.adjacentNodeHover(!1)}),this._resume()},_applyNodesAppearance:function(){this._nodes.forEach(function(e){var t=e.getState();e.element.smartAttr(e.states[t])})},_applyLinksAppearance:function(){this._links.forEach(function(e){var t=e.getState();e.element.smartAttr(e.states[t]),e.overlayElement.smartAttr(e.overlayStates[t])})},_hitTestTargets:function(e,t){var n,i=this;return this._proxyData.some(function(o){if(n=o.call(i,e,t))return!0}),n},_getData:function(){var e=this,t=e._dataSourceItems()||[],n=e._getOption("sourceField",!0),i=e._getOption("targetField",!0),o=e._getOption("weightField",!0),a=[];return t.forEach(function(t){t.hasOwnProperty(n)?t.hasOwnProperty(i)?t.hasOwnProperty(o)?c(t[n])?c(t[i])?!d(t[o])||t[o]<=0?e._incidentOccurred("E2009",o):a.push([t[n],t[i],t[o]]):e._incidentOccurred("E2008",i):e._incidentOccurred("E2008",n):e._incidentOccurred("E2007",o):e._incidentOccurred("E2007",i):e._incidentOccurred("E2007",n)}),a},_buildLayout:function(){var e=this,t=this,n=t._getData(),a=this._rect,u=t._getOption("node"),c=t._getOption("sortData"),d=t._getOption("layoutBuilder",!0)||l,h={x:a[0],y:a[1],width:a[2]-a[0],height:a[3]-a[1]},p=d.computeLayout(n,c,{availableRect:h,nodePadding:u.padding,nodeWidth:u.width,nodeAlign:t._getOption("alignment",!0)},t._incidentOccurred);if(t._layoutMap=p,!p.hasOwnProperty("error")){var f={},g=0,_=t._getOption("link"),m=p.nodes.map(function(e){return e.length}).reduce(function(e,t){return e+t},0),v=t._themeManager.createPalette(t._getOption("palette",!0),{useHighlight:!0,extensionMode:t._getOption("paletteExtensionMode",!0),count:m});t._nodes=[],t._links=[],t._gradients.forEach(function(e){e.dispose()}),t._gradients=[],t._shadowFilter&&t._shadowFilter.dispose(),p.nodes.forEach(function(e){e.forEach(function(e){var n=u.color||v.getNextColor(),o=new r(t,{id:g,color:n,rect:e,options:u,linksIn:i(p,e._name,"in"),linksOut:i(p,e._name,"out")});t._nodes.push(o),g++,f[e._name]=n})}),p.links.forEach(function(n){var i=null;_.colorMode===o.COLOR_MODE_GRADIENT&&(i=t._renderer.linearGradient([{offset:"0%","stop-color":f[n._from._name]},{offset:"100%","stop-color":f[n._to._name]}]),e._gradients.push(i));var a=_.color;_.colorMode===o.COLOR_MODE_SOURCE?a=f[n._from._name]:_.colorMode===o.COLOR_MODE_TARGET&&(a=f[n._to._name]);var r=new s(t,{d:n.d,boundingRect:n._boundingRect,color:a,options:_,connection:{source:n._from._name,target:n._to._name,weight:n._weight},gradient:i});t._links.push(r)}),t._renderer.initHatching(),t._change(["NODES_DRAW","LINKS_DRAW","LABELS"])}t._change(["DRAWN"])},_applyLabelsAppearance:function(){var e=this,t=e._getOption("label"),n=e._rect[2]-e._rect[0],i=e._getOption("node");if(e._shadowFilter=e._renderer.shadowFilter("-50%","-50%","200%","200%").attr(t.shadow),e._groupLabels.clear(),e._drawLabels&&t.visible){var o=(n-(i.width+t.horizontalOffset)-e._layoutMap.cascades.length*i.width)/(e._layoutMap.cascades.length-1)-t.horizontalOffset;e._nodes.forEach(function(n){e._createLabel(n,t,e._shadowFilter.id),function(e,t,n,i){e.label.getBBox().width>n&&e.labelText.applyEllipsis(n);var o=e.label.getBBox(),a=t.verticalOffset,r=t.horizontalOffset,s=Math.round(e.rect.y+e.rect.height/2-o.y-o.height/2)+a,l=e.rect.x+r+e.rect.width-o.x;l+o.width>=i[2]-i[0]&&(l=e.rect.x-r-o.x-o.width),s>=i[3]&&(s=i[3]),s-o.height<i[1]&&(s=e.rect.y-o.y+a),e.labelText.attr({translateX:l,translateY:s})}(n,t,o,e._rect)}),"none"!==t.overlappingBehavior&&e._nodes.forEach(function(n){var i=n.label.getBBox();e._nodes.forEach(function(e){var o=e.label.getBBox();n.id!==e.id&&l.overlap(i,o)&&("ellipsis"===t.overlappingBehavior?n.labelText.applyEllipsis(o.x-i.x):"hide"===t.overlappingBehavior&&n.labelText.remove())})})}},_createLabel:function(e,t,n){var i=t.customizeText(e),o=e.getLabelAttributes(t,n);i&&(e.label=this._renderer.g().append(this._groupLabels),e.labelText=this._renderer.text(i).attr(o.attr).css(o.css),e.labelText.append(e.label))},_getMinSize:function(){var e=this._getOption("adaptiveLayout");return[e.width,e.height]},getAllNodes:function(){return this._nodes.slice()},getAllLinks:function(){return this._links.slice()}});n(8)("dxSankey",h),e.exports=h,h.addPlugin(n(145).plugin)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.COLOR_MODE_GRADIENT="gradient",t.COLOR_MODE_SOURCE="source",t.COLOR_MODE_TARGET="target",t.COLOR_MODE_NONE="none"},function(e,t,n){var i="white",o="gray",a={maxOfArray:function(e,t){var n=0,i=function(e){return e};t&&(i=t);for(var o=0;o<e.length;o++)i(e[o])>n&&(n=i(e[o]));return n}},r=function(e){var t=[];return e.forEach(function(e){-1===t.indexOf(e[0])&&t.push(e[0]),-1===t.indexOf(e[1])&&t.push(e[1])}),t},s=function(e,t){var n=[];return e.forEach(function(e){e[0]===t&&-1===n.indexOf(e[1])&&n.push(e[1])}),n},l=function(e,t){var n=[];return e.forEach(function(e){e[1]===t&&-1===n.indexOf(e[0])&&n.push(e[0])}),n},u={_hasCycle:!1,_sortedList:[],hasCycle:function(e){var t=this;this._hasCycle=!1,this._sortedList=[];var n={},o=r(e);return o.forEach(function(e){n[e]={color:i}}),o.forEach(function(o){n[o].color===i&&t._depthFirstSearch(e,n,o)}),this._sortedList.reverse(),this._hasCycle},_depthFirstSearch:function(e,t,n){t[n].color=o;for(var a=s(e,n),r=0;r<a.length;r++)t[a[r]].color===i?this._depthFirstSearch(e,t,a[r]):t[a[r]].color===o&&(this._hasCycle=!0);this._sortedList.push({name:n,lp:null,incoming:l(e,n),outgoing:s(e,n)}),t[n].color="black"},computeLongestPaths:function(e){var t=this._sortedList;return t.forEach(function(n){var i=l(e,n.name);if(0===i.length)n.lp=0;else{var o=[];i.forEach(function(e){o.push(t.filter(function(t){return t.name===e})[0].lp)}),n.lp=a.maxOfArray(o)+1}}),this._sortedList}};e.exports={struct:u,routines:a,getVertices:r,getAdjacentVertices:s,getReverseAdjacentVertices:l}},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(14),a=n(7).getWindow(),r=n(1),s=n(0).extend,l=n(18),u=n(43),c=n(422),d=n(182),h=n(215),p=n(423),f=r.isDefined,g='<?xml version="1.0" encoding="utf-8"?>',_="http://schemas.openxmlformats.org",m="rels",v="xl",y="workbook.xml",b="sharedStrings.xml",x="styles.xml",w="sheet1.xml",C={boolean:"b",date:"d",number:"n",string:"s"},k=Date.UTC(1899,11,30),S=o.inherit({_getXMLTag:function(e,t,n){var i,o,a="<"+e,s=t.length;for(i=0;i<s;i++)void 0!==(o=t[i]).value&&(a=a+" "+o.name+'="'+o.value+'"');return r.isDefined(n)?a+">"+n+"</"+e+">":a+" />"},_convertToExcelCellRef:function(e,t){for(var n,i,o="";!i;)n=65+(t>=26?t%26:Math.ceil(t)),o=String.fromCharCode(n)+o,t>=26?t=Math.floor(t/26)-1:i=!0;return o+(e+1)},_convertToExcelCellRefAndTrackMaxIndex:function(e,t){return this._maxRowIndex<Number(e)&&(this._maxRowIndex=Number(e)),this._maxColumnIndex<Number(t)&&(this._maxColumnIndex=Number(t)),this._convertToExcelCellRef(e,t)},_getDataType:function(e){return C[e]||C.string},_tryGetExcelCellDataType:function(e){if(r.isDefined(e)){if("number"==typeof e)return isFinite(e)?C.number:C.string;if(r.isString(e))return C.string;if(r.isDate(e))return C.number;if(r.isBoolean(e))return C.boolean}},_formatObjectConverter:function(e,t){var n={format:e,precision:e&&e.precision,dataType:t};return r.isObject(e)?s(n,e,{format:e.formatter||e.type,currency:e.currency}):n},_tryConvertToExcelNumberFormat:function(e,t){var n,i=this._formatObjectConverter(e,t);return e=i.format,n=i.currency,t=i.dataType,h.convertFormat(e,i.precision,t,n)},_appendString:function(e){if(r.isDefined(e)&&(e=String(e)).length)return e=u.encodeHtml(e),void 0===this._stringHash[e]&&(this._stringHash[e]=this._stringArray.length,this._stringArray.push(e)),this._stringHash[e]},_tryGetExcelDateValue:function(e){var t;if(r.isDate(e))return(t=Math.floor((Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())-k)/864e5))<60&&t--,t+(3600*e.getHours()+60*e.getMinutes()+e.getSeconds())/86400},_prepareValue:function(e,t){var n,i=this._dataProvider,o=i.getCellData(e,t)||{},a=o.value,s=o.cellSourceData,l=this._getDataType(i.getCellType(e,t));switch(l!==C.date||r.isDate(a)||(l=C.string),l){case C.string:n=a,a=this._appendString(a);break;case C.date:n=a,a=this._tryGetExcelDateValue(a),l=C.number}return{value:a,type:l,sourceValue:n,cellSourceData:s}},_callCustomizeExcelCell:function(e){var t=e.dataProvider,n=e.value,i=e.style,o=e.sourceData,a=p.copyCellFormat(i),r={value:n,numberFormat:a.numberFormat,clearStyle:function(){this.horizontalAlignment=null,this.verticalAlignment=null,this.wrapTextEnabled=null,this.font=null,this.numberFormat=null}};f(a)&&(f(a.alignment)&&(r.horizontalAlignment=a.alignment.horizontal,r.verticalAlignment=a.alignment.vertical,r.wrapTextEnabled=a.alignment.wrapText),r.backgroundColor=a.backgroundColor,r.fillPatternType=a.fillPatternType,r.fillPatternColor=a.fillPatternColor,r.font=a.font),t.customizeExcelCell(r,o);var s=a||{};return s.font=r.font,s.alignment=s.alignment||{},s.alignment.horizontal=r.horizontalAlignment,s.alignment.vertical=r.verticalAlignment,s.alignment.wrapText=r.wrapTextEnabled,s.backgroundColor=r.backgroundColor,s.fillPatternType=r.fillPatternType,s.fillPatternColor=r.fillPatternColor,s.numberFormat=r.numberFormat,{value:r.value,style:s}},_getDataArray:function(){var e,t,n,o,a,s=this,l=[],u=s._dataProvider,c=u.getRowsCount(),d=u.getColumns();for(e=0;e<c;e++){for(n=[],a=d.length,t=0;t!==a;t++){o=s._prepareValue(e,t);var h=u.getStyleId(e,t),p=this._styleArrayIndexToCellStyleIdMap[h];if(u.hasCustomizeExcelCell&&u.hasCustomizeExcelCell()){var f=o.sourceValue||o.value,g=this._callCustomizeExcelCell({dataProvider:u,value:f,style:s._styleArray[h],sourceData:o.cellSourceData});if(g.value!==f){if(i(g.value)!==(void 0===f?"undefined":i(f))||"number"==typeof g.value&&!isFinite(g.value)){var _=this._tryGetExcelCellDataType(g.value);r.isDefined(_)&&(o.type=_)}switch(o.type){case C.string:o.value=this._appendString(g.value);break;case C.date:o.value=g.value;break;case C.number:var m=g.value,v=this._tryGetExcelDateValue(m);r.isDefined(v)&&(m=v),o.value=m;break;default:o.value=g.value}}p=this._excelFile.registerCellFormat(g.style)}n.push({style:p,value:o.value,type:o.type})}!s._needSheetPr&&u.getGroupLevel(e)>0&&(s._needSheetPr=!0),l.push(n)}return l},_calculateWidth:function(e){return(!(e=parseInt(e,10))||e<5)&&(e=100),Math.min(255,Math.floor((e-5)/7*100+.5)/100)},_prepareStyleData:function(){var e=this,t=this,n=t._dataProvider.getStyles();t._dataProvider.getColumns().forEach(function(e){t._colsArray.push(t._calculateWidth(e.width))});var i=[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor",bold:!1},{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor",bold:!0}];this._excelFile.registerFont(i[0]),this._excelFile.registerFont(i[1]),n.forEach(function(e){var n=t._tryConvertToExcelNumberFormat(e.format,e.dataType);r.isDefined(n)||(n=0),t._styleArray.push({font:i[Number(!!e.bold)],numberFormat:n,alignment:{vertical:"top",wrapText:!!e.wrapText,horizontal:e.alignment||"left"}})}),t._styleArrayIndexToCellStyleIdMap=t._styleArray.map(function(t){return e._excelFile.registerCellFormat(t)})},_prepareCellData:function(){this._cellsArray=this._getDataArray()},_createXMLRelationships:function(e){return this._getXMLTag("Relationships",[{name:"xmlns",value:_+"/package/2006/relationships"}],e)},_createXMLRelationship:function(e,t,n){return this._getXMLTag("Relationship",[{name:"Id",value:"rId"+e},{name:"Type",value:_+"/officeDocument/2006/relationships/"+t},{name:"Target",value:n}])},_getWorkbookContent:function(){return g+this._getXMLTag("workbook",[{name:"xmlns:r",value:_+"/officeDocument/2006/relationships"},{name:"xmlns",value:_+"/spreadsheetml/2006/main"}],'<bookViews><workbookView xWindow="0" yWindow="0" windowWidth="0" windowHeight="0"/></bookViews><sheets><sheet name="Sheet" sheetId="1" r:id="rId1" /></sheets><definedNames><definedName name="_xlnm.Print_Titles" localSheetId="0">Sheet!$1:$1</definedName><definedName name="_xlnm._FilterDatabase" hidden="0" localSheetId="0">Sheet!$A$1:$F$6332</definedName></definedNames>')},_getContentTypesContent:function(){return g+'<Types xmlns="'+_+'/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Default Extension="xml" ContentType="application/xml" /><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /><Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /></Types>'},_generateStylesXML:function(){var e=this,t=e._zip.folder(v),n="";n+=this._excelFile.generateNumberFormatsXml(),n+=this._excelFile.generateFontsXml(),n+=this._excelFile.generateFillsXml(),n+='<borders count="1"><border><left style="thin"><color rgb="FFD3D3D3"/></left><right style="thin"><color rgb="FFD3D3D3"/></right><top style="thin"><color rgb="FFD3D3D3"/></top><bottom style="thin"><color rgb="FFD3D3D3"/></bottom></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',n+=this._excelFile.generateCellFormatsXml(),n+=e._getXMLTag("cellStyles",[{name:"count",value:1}],e._getXMLTag("cellStyle",[{name:"name",value:"Normal"},{name:"xfId",value:0},{name:"builtinId",value:0}])),n=g+e._getXMLTag("styleSheet",[{name:"xmlns",value:_+"/spreadsheetml/2006/main"}],n),t.file(x,n),e._styleArray=[]},_generateStringsXML:function(){var e,t=this._zip.folder(v),n=this._stringArray.length,i=g;for(e=0;e<n;e++)this._stringArray[e]=this._getXMLTag("si",[],this._getXMLTag("t",[],this._stringArray[e]));i+=this._getXMLTag("sst",[{name:"xmlns",value:_+"/spreadsheetml/2006/main"},{name:"count",value:this._stringArray.length},{name:"uniqueCount",value:this._stringArray.length}],this._stringArray.join("")),t.file(b,i),this._stringArray=[]},_getPaneXML:function(){var e=[{name:"activePane",value:"bottomLeft"},{name:"state",value:"frozen"}],t=this._dataProvider.getFrozenArea();return t.x||t.y?(t.x&&e.push({name:"xSplit",value:t.x}),t.y&&e.push({name:"ySplit",value:t.y}),e.push({name:"topLeftCell",value:this._convertToExcelCellRefAndTrackMaxIndex(t.y,t.x)}),this._getXMLTag("pane",e)):""},_getAutoFilterXML:function(e){return this._options.autoFilterEnabled?'<autoFilter ref="A'+this._dataProvider.getHeaderRowCount()+":"+e+'" />':""},_getIgnoredErrorsXML:function(e){return this._options.ignoreErrors?'<ignoredErrors><ignoredError sqref="A1:'+e+'" numberStoredAsText="1" /></ignoredErrors>':""},_generateWorksheetXML:function(){var e,t,n,i,o,a,s=[],l=this._cellsArray.length,u=this._colsArray.length,c="1:"+u,d=this._dataProvider.getHeaderRowCount?this._dataProvider.getHeaderRowCount():1,h=['<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">'];for(h.push(this._needSheetPr?'<sheetPr><outlinePr summaryBelow="0"/></sheetPr>':"<sheetPr/>"),h.push('<dimension ref="A1:C1"/>'),h.push("<sheetViews><sheetView "),h.push(this._rtlEnabled?'rightToLeft="1" ':""),h.push('tabSelected="1" workbookViewId="0">'),h.push(this._getPaneXML()),h.push("</sheetView></sheetViews>"),h.push('<sheetFormatPr defaultRowHeight="15"'),h.push(' outlineLevelRow="'+(this._dataProvider.getRowsCount()>0?this._dataProvider.getGroupLevel(0):0)+'"'),h.push(' x14ac:dyDescent="0.25"/>'),e=0;e<u;e++)this._colsArray[e]=this._getXMLTag("col",[{name:"width",value:this._colsArray[e]},{name:"min",value:Number(e)+1},{name:"max",value:Number(e)+1}]);for(h.push(this._getXMLTag("cols",[],this._colsArray.join(""))+"<sheetData>"),t=0;t<l;t++){for(i=[],a=this._cellsArray[t].length,e=0;e<a;e++)t=Number(t),n=this._cellsArray[t][e],i.push(this._getXMLTag("c",[{name:"r",value:this._convertToExcelCellRefAndTrackMaxIndex(t,e)},{name:"s",value:n.style},{name:"t",value:n.type}],r.isDefined(n.value)?this._getXMLTag("v",[],n.value):null));s.push(this._getXMLTag("row",[{name:"r",value:Number(t)+1},{name:"spans",value:c},{name:"outlineLevel",value:t>=d?this._dataProvider.getGroupLevel(t):0},{name:"x14ac:dyDescent",value:"0.25"}],i.join(""))),this._cellsArray[t]=null,s.length>1e4&&(h.push(s.join("")),s=[])}h.push(s.join("")),s=[],o=this._convertToExcelCellRef(this._maxRowIndex,this._maxColumnIndex),h.push("</sheetData>"+this._getAutoFilterXML(o)+this._generateMergingXML()+this._getIgnoredErrorsXML(o)+"</worksheet>"),this._zip.folder(v).folder("worksheets").file(w,h.join("")),this._colsArray=[],this._cellsArray=[],h=[]},_generateMergingXML:function(){var e,t,n,i,o,a,s=r.isDefined(this._dataProvider.getHeaderRowCount)?this._dataProvider.getHeaderRowCount():this._dataProvider.getRowsCount(),l=this._dataProvider.getColumns().length,u=[],c=[],d="";for(i=0;i<s;i++)for(n=0;n!==l;n++)if(!r.isDefined(u[i])||!r.isDefined(u[i][n])){var h=this._dataProvider.getCellMerging(i,n);if(h.colspan||h.rowspan)for(c.push({start:this._convertToExcelCellRefAndTrackMaxIndex(i,n),end:this._convertToExcelCellRefAndTrackMaxIndex(i+(h.rowspan||0),n+(h.colspan||0))}),e=i;e<=i+h.rowspan;e++)for(t=n;t<=n+h.colspan;t++)r.isDefined(u[e])||(u[e]=[]),u[e][t]=!0}for(o=c.length,a=0;a<o;a++)d+=this._getXMLTag("mergeCell",[{name:"ref",value:c[a].start+":"+c[a].end}]);return d.length?this._getXMLTag("mergeCells",[{name:"count",value:o}],d):""},_generateCommonXML:function(){var e,t=g+this._createXMLRelationships(this._createXMLRelationship(1,"officeDocument","xl/"+y)),n=this._zip.folder(v),i=g;this._zip.folder("_"+m).file("."+m,t),e=this._createXMLRelationship(1,"worksheet","worksheets/"+w)+this._createXMLRelationship(2,"styles",x)+this._createXMLRelationship(3,"sharedStrings",b),i+=this._createXMLRelationships(e),n.folder("_"+m).file(y+".rels",i),n.file(y,this._getWorkbookContent()),this._zip.file("[Content_Types].xml",this._getContentTypesContent())},_generateContent:function(){this._prepareStyleData(),this._prepareCellData(),this._generateWorkXML(),this._generateCommonXML()},_generateWorkXML:function(){this._generateStylesXML(),this._generateStringsXML(),this._generateWorksheetXML()},ctor:function(e,t){this._rtlEnabled=t&&!!t.rtlEnabled,this._options=t,this._maxRowIndex=0,this._maxColumnIndex=0,this._stringArray=[],this._stringHash={},this._styleArray=[],this._colsArray=[],this._cellsArray=[],this._needSheetPr=!1,this._dataProvider=e,this._excelFile=new p,r.isDefined(S.JSZip)?this._zip=new S.JSZip:this._zip=null},_checkZipState:function(){if(!this._zip)throw l.Error("E1041","JSZip")},ready:function(){return this._dataProvider.ready()},getData:function(e){var t={type:e?"blob":"base64",compression:"DEFLATE",mimeType:d.MIME_TYPES.EXCEL};return this._checkZipState(),this._generateContent(),this._zip.generateAsync?this._zip.generateAsync(t):this._zip.generate(t)}});S.JSZip=c,t.ExcelCreator=S,t.getData=function(e,n,i){var o=new t.ExcelCreator(e,n);o._checkZipState(),o.ready().done(function(){o._zip.generateAsync?o.getData(r.isFunction(a.Blob)).then(i):i(o.getData(r.isFunction(a.Blob)))})}},function(e,t){e.exports=window.JSZip},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n(1),r=i(n(75)),s=i(n(424)),l=i(n(218)),u=i(n(220)),c=i(n(427)),d=function(){function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._cellFormatTags=[],this._fillTags=[],this._fontTags=[],this._numberFormatTags=[],this._fillTags.push(l.default.tryCreateTag({patternFill:{patternType:"none"}}))}return o(e,[{key:"registerCellFormat",value:function(e){var t=void 0,n=s.default.tryCreateTag(e,{registerFill:this.registerFill.bind(this),registerFont:this.registerFont.bind(this),registerNumberFormat:this.registerNumberFormat.bind(this)});if((0,a.isDefined)(n)){for(var i=0;i<this._cellFormatTags.length;i++)if(s.default.areEqual(this._cellFormatTags[i],n)){t=i;break}void 0===t&&(t=this._cellFormatTags.push(n)-1)}return t}},{key:"generateCellFormatsXml",value:function(){var e=this._cellFormatTags.map(function(e){return s.default.toXml(e)});return r.default.toXml("cellXfs",{count:e.length},e.join(""))}},{key:"registerFill",value:function(e){var t=void 0,n=l.default.tryCreateTag(e);if((0,a.isDefined)(n)){for(var i=0;i<this._fillTags.length;i++)if(l.default.areEqual(this._fillTags[i],n)){t=i;break}void 0===t&&(this._fillTags.length<2&&this._fillTags.push(l.default.tryCreateTag({patternFill:{patternType:"Gray125"}})),t=this._fillTags.push(n)-1)}return t}},{key:"generateFillsXml",value:function(){var e=this._fillTags.map(function(e){return l.default.toXml(e)});return r.default.toXml("fills",{count:e.length},e.join(""))}},{key:"registerFont",value:function(e){var t=void 0,n=u.default.tryCreateTag(e);if((0,a.isDefined)(n)){for(var i=0;i<this._fontTags.length;i++)if(u.default.areEqual(this._fontTags[i],n)){t=i;break}void 0===t&&(t=this._fontTags.push(n)-1)}return t}},{key:"generateFontsXml",value:function(){var e=this._fontTags.map(function(e){return u.default.toXml(e)});return r.default.toXml("fonts",{count:e.length},e.join(""))}},{key:"_convertNumberFormatIndexToId",value:function(e){return 165+e}},{key:"registerNumberFormat",value:function(e){var t=void 0,n=c.default.tryCreateTag(e);if((0,a.isDefined)(n)){for(var i=0;i<this._numberFormatTags.length;i++)if(c.default.areEqual(this._numberFormatTags[i],n)){t=this._numberFormatTags[i][c.default.ID_PROPERTY_NAME];break}void 0===t&&(n[c.default.ID_PROPERTY_NAME]=this._convertNumberFormatIndexToId(this._numberFormatTags.length),t=n[c.default.ID_PROPERTY_NAME],this._numberFormatTags.push(n))}return t}},{key:"generateNumberFormatsXml",value:function(){if(this._numberFormatTags.length>0){var e=this._numberFormatTags.map(function(e){return c.default.toXml(e)});return r.default.toXml("numFmts",{count:e.length},e.join(""))}return""}}],[{key:"copyCellFormat",value:function(e){return s.default.copy(e)}}]),e}();t.default=d,e.exports=d},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=i(n(75)),r=i(n(425)),s=i(n(218)),l=i(n(220)),u={tryCreateTag:function(e,t){var n=null;if((0,o.isDefined)(e)){var i;i="number"==typeof e.numberFormat?e.numberFormat:t.registerNumberFormat(e.numberFormat);var a=e.fill;(0,o.isDefined)(a)||(a=s.default.tryCreateFillFromSimpleFormat(e)),n={numberFormatId:i,alignment:r.default.tryCreateTag(e.alignment),fontId:t.registerFont(e.font),fillId:t.registerFill(a)},u.isEmpty(n)&&(n=null)}return n},copy:function(e){var t=void 0;return null===e?t=null:(0,o.isDefined)(e)&&(t={},void 0!==e.numberFormat&&(t.numberFormat=e.numberFormat),void 0!==e.fill?t.fill=s.default.copy(e.fill):s.default.copySimpleFormat(e,t),void 0!==e.alignment&&(t.alignment=r.default.copy(e.alignment)),void 0!==e.font&&(t.font=l.default.copy(e.font))),t},areEqual:function(e,t){return u.isEmpty(e)&&u.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.fontId===t.fontId&&e.numberFormatId===t.numberFormatId&&e.fillId===t.fillId&&r.default.areEqual(e.alignment,t.alignment)},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.fontId)&&!(0,o.isDefined)(e.numberFormatId)&&!(0,o.isDefined)(e.fillId)&&r.default.isEmpty(e.alignment)},toXml:function(e){var t=r.default.isEmpty(e.alignment),n=void 0;return(0,o.isDefined)(e.numberFormatId)&&(n=e.numberFormatId>0?1:0),a.default.toXml("xf",{xfId:0,applyAlignment:t?null:1,fontId:e.fontId,applyNumberFormat:n,fillId:e.fillId,numFmtId:e.numberFormatId},t?null:r.default.toXml(e.alignment))}};t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=function(e){return e&&e.__esModule?e:{default:e}}(n(75)),a={tryCreateTag:function(e){var t=null;return(0,i.isDefined)(e)&&(t={vertical:e.vertical,wrapText:e.wrapText,horizontal:e.horizontal},a.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,i.isDefined)(e)&&(t={},void 0!==e.horizontal&&(t.horizontal=e.horizontal),void 0!==e.vertical&&(t.vertical=e.vertical),void 0!==e.wrapText&&(t.wrapText=e.wrapText)),t},areEqual:function(e,t){return a.isEmpty(e)&&a.isEmpty(t)||(0,i.isDefined)(e)&&(0,i.isDefined)(t)&&e.vertical===t.vertical&&e.wrapText===t.wrapText&&e.horizontal===t.horizontal},isEmpty:function(e){return!(0,i.isDefined)(e)||!(0,i.isDefined)(e.vertical)&&!(0,i.isDefined)(e.wrapText)&&!(0,i.isDefined)(e.horizontal)},toXml:function(e){return o.default.toXml("alignment",{vertical:e.vertical,wrapText:(0,i.isDefined)(e.wrapText)?Number(e.wrapText):void 0,horizontal:e.horizontal})}};t.default=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=i(n(75)),r=i(n(219)),s={tryCreateTag:function(e){var t=null;return(0,o.isDefined)(e)&&(t={patternType:e.patternType,backgroundColor:r.default.tryCreateTag(e.backgroundColor),foregroundColor:r.default.tryCreateTag(e.foregroundColor)},s.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,o.isDefined)(e)&&(t={},void 0!==e.patternType&&(t.patternType=e.patternType),void 0!==e.backgroundColor&&(t.backgroundColor=r.default.copy(e.backgroundColor)),void 0!==e.foregroundColor&&(t.foregroundColor=r.default.copy(e.foregroundColor))),t},areEqual:function(e,t){return s.isEmpty(e)&&s.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.patternType===t.patternType&&r.default.areEqual(e.backgroundColor,t.backgroundColor)&&r.default.areEqual(e.foregroundColor,t.foregroundColor)},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.patternType)},toXml:function(e){var t=[(0,o.isDefined)(e.foregroundColor)?r.default.toXml("fgColor",e.foregroundColor):"",(0,o.isDefined)(e.backgroundColor)?r.default.toXml("bgColor",e.backgroundColor):""].join("");return a.default.toXml("patternFill",{patternType:e.patternType},t)}};t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=function(e){return e&&e.__esModule?e:{default:e}}(n(75)),a={ID_PROPERTY_NAME:"id",tryCreateTag:function(e){var t=null;return"string"==typeof e&&(t={formatCode:e},a.isEmpty(t)&&(t=null)),t},areEqual:function(e,t){return a.isEmpty(e)&&a.isEmpty(t)||(0,i.isDefined)(e)&&(0,i.isDefined)(t)&&e.formatCode===t.formatCode},isEmpty:function(e){return!(0,i.isDefined)(e)||!(0,i.isDefined)(e.formatCode)||""===e.formatCode},toXml:function(e){return o.default.toXml("numFmt",{numFmtId:e[a.ID_PROPERTY_NAME],formatCode:e.formatCode})}};t.default=a},function(e,t,n){var i=n(2),o=n(62),a=n(7).getWindow(),r=n(1).isFunction,s=n(3).each,l=n(184),u=n(6),c=u.when,d=u.Deferred;t.svgCreator={_markup:"",_imageArray:{},_imageDeferreds:[],_getBinaryFile:function(e,t){o.sendRequest({url:e,method:"GET",responseType:"arraybuffer"}).done(t).fail(function(){t(!1)})},_loadImages:function(){var e=this;s(e._imageArray,function(t){var n=new d;e._imageDeferreds.push(n),e._getBinaryFile(t,function(i){if(!i)return delete e._imageArray[t],void n.resolve();var o,r="",s=new Uint8Array(i),l=s.byteLength;for(o=0;o<l;o++)r+=String.fromCharCode(s[o]);e._imageArray[t]="data:image/png;base64,"+a.btoa(r),n.resolve()})})},_parseImages:function(e){var t,n=this;"image"===e.tagName&&(t=i(e).attr("href")||i(e).attr("xlink:href"),n._imageArray[t]||(n._imageArray[t]="")),s(e.childNodes,function(e,t){n._parseImages(t)})},_prepareImages:function(e){return this._parseImages(e),this._loadImages(),c.apply(i,this._imageDeferreds)},getData:function(e,t){var n,o=this,u=new d,c=l.getSvgElement(e),h=i(c);return n='<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>'+l.getSvgMarkup(h.get(0),t.backgroundColor),o._prepareImages(c).done(function(){s(o._imageArray,function(e,t){var i="href=['|\"]"+e+"['|\"]";n=n.replace(new RegExp(i,"gi"),'href="'+t+'"')}),u.resolve(r(a.Blob)?o._getBlob(n):o._getBase64(n))}),u},_getBlob:function(e){return new a.Blob([e],{type:"image/svg+xml"})},_getBase64:function(e){return a.btoa(e)}},t.getData=function(e,n,i){return t.svgCreator.getData(e,n).done(i)}},function(e,t,n){var i=n(7).getWindow(),o=n(52),a={getXhr:function(){return new i.XMLHttpRequest}};e.exports=o(a)},function(e,t,n){var i=n(156),o=n(7).getWindow(),a=n(221).imageCreator,r=n(1).isFunction,s=n(0).extend,l=n(6),u=l.when,c=l.Deferred,d=function e(t,n){return t.length<n?e("0"+t,n):t},h=function(e,t,n){var o=2*(t.margin||0),a=t.width+o,r=t.height+o,s=(.75*a).toFixed(2),l=(.75*r).toFixed(2),u="%PDF-1.3\r\n2 0 obj\r\n<</ProcSet[/PDF/ImageB/ImageC/ImageI]/XObject<</I0 5 0 R>>>>\r\nendobj\r\n4 0 obj\r\n<</Type/Pages/Kids[1 0 R]/Count 1>>\r\nendobj\r\n7 0 obj\r\n<</OpenAction[1 0 R /FitH null]/Type/Catalog/Pages 4 0 R/PageLayout/OneColumn>>\r\nendobj\r\n1 0 obj\r\n<</Type/Page/Resources 2 0 R/MediaBox[0 0 _width_ _height_]/Contents 3 0 R/Parent 4 0 R>>\r\nendobj\r\n".replace("_width_",s).replace("_height_",l),c="3 0 obj\r\n<</Length 52>>stream\r\n0.20 w\n0 G\nq _width_ 0 0 _height_ 0.00 0.00 cm /I0 Do Q\r\nendstream\r\nendobj\r\n".replace("_width_",s).replace("_height_",l),d="6 0 obj\r\n<</CreationDate _date_/Producer(DevExtreme _version_)>>\r\nendobj\r\n".replace("_date_",n).replace("_version_",i),h=u+c+d+("5 0 obj\r\n<</Type/XObject/Subtype/Image/Width _width_/Height _height_/ColorSpace/DeviceRGB/BitsPerComponent 8/Filter/DCTDecode/Length _length_>>stream\r\n".replace("_width_",a).replace("_height_",r).replace("_length_",e.length)+e+"\r\nendstream\r\nendobj\r\n");return h+p(u.length,c.length,d.length)+"trailer\r\n<<\r\n/Size 8\r\n/Root 7 0 R\r\n/Info 6 0 R\r\n>>\r\nstartxref\r\n_length_\r\n%%EOF".replace("_length_",h.length)},p=function(e,t,n){return"xref\r\n0 8\r\n0000000000 65535 f\r\n0000000241 00000 n\r\n0000000010 00000 n\r\n_main_ 00000 n\r\n0000000089 00000 n\r\n_image_ 00000 n\r\n_info_ 00000 n\r\n0000000143 00000 n\r\n".replace("_main_",d(e+"",10)).replace("_info_",d(e+t+"",10)).replace("_image_",d(e+t+n+"",10))};t.getData=function(e,t,n){var i=a.getImageData(e,s({},t,{format:"JPEG"})),l=new c;return l.done(n),u(i).done(function(e){var n=h(e,t,new Date),i=r(o.Blob)?function(e){for(var t=0,n=new Uint8Array(e.length);t<e.length;t++)n[t]=e.charCodeAt(t);return new o.Blob([n.buffer],{type:"application/pdf"})}(n):function(e){return o.btoa(e)}(n);l.resolve(i)})}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.exportDataGrid=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(432));t.exportDataGrid=i.default},function(e,t,n){function i(e,t,n,i,a,r){for(var s=0;s<t;s++){var l=a.getCellData(e,s,!0),u=n.getCell(i+s);u.value=l.value,o.default.isDefined(r)&&r({cell:u,gridCell:{column:l.cellSourceData.column,rowType:l.cellSourceData.rowType,data:l.cellSourceData.data,value:l.value,groupIndex:l.cellSourceData.groupIndex}})}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(o.default.isDefined(e)){var t=e.customizeCell,n=e.component,a=e.worksheet,r=e.topLeftCell,s=void 0===r?{row:1,column:1}:r,l=e.excelFilterEnabled;a.properties.outlineProperties={summaryBelow:!1,summaryRight:!1};var u={from:{row:s.row,column:s.column},to:{row:s.row,column:s.column}},c=n.getDataProvider();return new Promise(function(e){c.ready().done(function(){for(var n=c.getColumns(),o=c.getHeaderRowCount(),r=c.getRowsCount(),s=0;s<r;s++){var d=a.getRow(u.from.row+s);i(s,n.length,d,u.from.column,c,t),s>=o&&(d.outlineLevel=c.getGroupLevel(s)),s>=1&&u.to.row++}u.to.column+=n.length>0?n.length-1:0,!0===l&&(r>0&&(a.autoFilter=u),a.views=[{state:"frozen",ySplit:u.from.row+c.getFrozenArea().y-1}]),e(u)})})}};var o=function(e){return e&&e.__esModule?e:{default:e}}(n(1))},function(e,t,n){var i=n(25),o=n(1).isFunction,a=n(3).each,r=n(14);e.exports=r.inherit({ctor:function(e){this._events={},this._owner=e},hasEvent:function(e){var t=this._events[e];return!!t&&t.has()},fireEvent:function(e,t){var n=this._events[e];n&&n.fireWith(this._owner,t)},on:function(e,t){var n=this._events[e];n||(n=i(),this._events[e]=n),(n.originalAdd||n.add).call(n,t)},off:function(e,t){var n=this._events[e];n&&(o(t)?n.remove(t):n.empty())},dispose:function(){a(this._events,function(){this.empty()})}})},function(e,t,n){var i=n(2),o=n(12),a=n(7).getWindow(),r=n(5),s=n(0).extend,l=n(125),u=n(44),c=n(84),d=n(16);t.initMobileViewport=function(e){e=s({},e);var t=d.real(),n=e.allowZoom,h=e.allowPan,p="allowSelection"in e?e.allowSelection:"generic"===t.platform,f="meta[name=viewport]";i(f).length||i("<meta>").attr("name","viewport").appendTo("head");var g=["width=device-width"],_=[];n?_.push("pinch-zoom"):g.push("initial-scale=1.0","maximum-scale=1.0, user-scalable=no"),h&&_.push("pan-x","pan-y"),h||n?i("html").css("msOverflowStyle","-ms-autohiding-scrollbar"):i("html, body").css({msContentZooming:"none",msUserSelect:"none",overflow:"hidden"}),!p&&u.supportProp("userSelect")&&i(".dx-viewport").css(c.styleProp("userSelect"),"none"),i(f).attr("content",g.join()),i("html").css("msTouchAction",_.join(" ")||"none"),t=d.real(),!u.touch||"win"===t.platform&&10===t.version[0]||(r.off(o.getDocument(),".dxInitMobileViewport"),r.on(o.getDocument(),"dxpointermove.dxInitMobileViewport",function(e){var t=e.pointers.length,i="touch"===e.pointerType,o=!n&&t>1,a=!h&&1===t&&!e.isScrollingEvent;i&&(o||a)&&e.preventDefault()})),t.ios&&("file:"===o.getLocation().protocol||l.add(function(){var e=i(a).width();i("body").width(e)}));t.android&&l.add(function(){setTimeout(function(){var e=o.getActiveElement();e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded():e.scrollIntoView(!1)})})}},function(e,t,n){var i,o=n(150),a=n(225),r=n(0).extend,s={dxpointerdown:"pointerdown",dxpointermove:"pointermove",dxpointerup:"pointerup",dxpointercancel:"pointercancel",dxpointerover:"pointerover",dxpointerout:"pointerout",dxpointerenter:"pointerenter",dxpointerleave:"pointerleave"},l=!1,u=o.inherit({ctor:function(){this.callBase.apply(this,arguments),l||(i=new a(s,function(e,t){return e.pointerId===t.pointerId},function(e){e.isPrimary&&i.reset()}),l=!0)},_fireEvent:function(e){return this.callBase(r({pointers:i.pointers(),pointerId:e.originalEvent.pointerId},e))}});u.map=s,u.resetObserver=function(){i.reset()},e.exports=u},function(e,t,n){var i=n(0).extend,o=n(150),a=n(226),r=n(224),s=n(9),l=!1,u=o.inherit({EVENT_LOCK_TIMEOUT:100,ctor:function(){this.callBase.apply(this,arguments),l||(a.activate(),l=!0)},_handler:function(e){var t=s.isMouseEvent(e);if(t||(this._skipNextEvents=!0),!t||!this._mouseLocked){if(t&&this._skipNextEvents){this._skipNextEvents=!1,this._mouseLocked=!0,clearTimeout(this._unlockMouseTimer);var n=this;return void(this._unlockMouseTimer=setTimeout(function(){n._mouseLocked=!1},this.EVENT_LOCK_TIMEOUT))}return this.callBase(e)}},_fireEvent:function(e){var t=s.isMouseEvent(e.originalEvent)?a.normalize:r.normalize;return this.callBase(i(t(e.originalEvent),e))},dispose:function(){this.callBase(),this._skipNextEvents=!1,this._mouseLocked=!1,clearTimeout(this._unlockMouseTimer)}});u.map={dxpointerdown:"touchstart mousedown",dxpointermove:"touchmove mousemove",dxpointerup:"touchend mouseup",dxpointercancel:"touchcancel",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},u.resetObserver=a.resetObserver,e.exports=u},function(e,t,n){var i=n(85),o=n(15),a=n(51),r=n(33);n(148),t.locale=i.locale.bind(i),t.loadMessages=o.load.bind(o),t.formatMessage=o.format.bind(o),t.formatNumber=a.format.bind(a),t.parseNumber=a.parse.bind(a),t.formatDate=r.format.bind(r),t.parseDate=r.parse.bind(r),t.message=o,t.number=a,t.date=r},function(e,t,n){e.exports={en:{Yes:"Yes",No:"No",Cancel:"Cancel",Clear:"Clear",Done:"Done",Loading:"Loading...",Select:"Select...",Search:"Search",Back:"Back",OK:"OK","dxCollectionWidget-noDataText":"No data to display","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-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 file","dxFileUploader-dropFile":"or Drop 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-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","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-excelFormat":"Excel file","dxDataGrid-selectedRows":"Selected rows","dxDataGrid-exportSelectedRows":"Export selected rows","dxDataGrid-exportAll":"Export all data","dxDataGrid-headerFilterEmptyValue":"(Blanks)","dxDataGrid-headerFilterOK":"OK","dxDataGrid-headerFilterCancel":"Cancel","dxDataGrid-ariaColumn":"Column","dxDataGrid-ariaValue":"Value","dxDataGrid-ariaFilterCell":"Filter cell","dxDataGrid-ariaCollapse":"Collapse","dxDataGrid-ariaExpand":"Expand","dxDataGrid-ariaDataGrid":"Data grid","dxDataGrid-ariaSearchInGrid":"Search in data grid","dxDataGrid-ariaSelectAll":"Select all","dxDataGrid-ariaSelectRow":"Select row","dxDataGrid-filterBuilderPopupTitle":"Filter Builder","dxDataGrid-filterPanelCreateFilter":"Create Filter","dxDataGrid-filterPanelClearFilter":"Clear","dxDataGrid-filterPanelFilterEnabledHint":"Enable the filter","dxTreeList-ariaTreeList":"Tree list","dxTreeList-editingAddRowToNode":"Add","dxPager-infoText":"Page {0} of {1} ({2} items)","dxPager-pagesCountText":"of","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-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-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":"<enter a value>","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-heading":"Heading","dxHtmlEditor-normalText":"Normal text","dxFileManager-errorNoAccess":"Access denied. The operation cannot be completed.","dxFileManager-errorDirectoryExistsFormat":"Directory '{0}' already exists.","dxFileManager-errorFileExistsFormat":"File '{0}' already exists.","dxFileManager-errorFileNotFoundFormat":"File '{0}' not found","dxFileManager-errorDefault":"Unspecified error."}}},function(e,t,n){e.exports={"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-CA":"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-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-PH":"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","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","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":"root","az-Cyrl":"root","blt-Latn":"root","bm-Nkoo":"root","bs-Cyrl":"root","byn-Latn":"root","cu-Glag":"root","dje-Arab":"root","dyo-Arab":"root","en-Dsrt":"root","en-Shaw":"root","ff-Adlm":"root","ff-Arab":"root","ha-Arab":"root","iu-Latn":"root","kk-Arab":"root","ku-Arab":"root","ky-Arab":"root","ky-Latn":"root","ml-Arab":"root","mn-Mong":"root","ms-Arab":"root","pa-Arab":"root","sd-Deva":"root","sd-Khoj":"root","sd-Sind":"root","shi-Latn":"root","so-Arab":"root","sr-Latn":"root","sw-Arab":"root","tg-Arab":"root","ug-Cyrl":"root","uz-Arab":"root","uz-Cyrl":"root","vai-Latn":"root","wo-Arab":"root","yo-Arab":"root","yue-Hans":"root","zh-Hant":"root","zh-Hant-MO":"zh-Hant-HK"}},function(e,t,n){var i=n(53),o=n(212);n(78)()&&o.set(i)},function(e,t,n){var i=n(53),o=n(78)(),a=n(61).compare,r=n(3).each,s=n(1).isNumeric,l=n(9).setEventFixMethod,u=n(67),c=n(213);if(o)if(a(i.fn.jquery,[3])<0){var d={2:"touch",3:"pen",4:"mouse"};r(["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerCancel","MSPointerOver","MSPointerOut","mouseenter","mouseleave","pointerdown","pointermove","pointerup","pointercancel","pointerover","pointerout","pointerenter","pointerleave"],function(){i.event.fixHooks[this]={filter:function(e,t){var n=t.pointerType;return s(n)&&(e.pointerType=d[n]),e},props:i.event.mouseHooks.props.concat(["pointerId","pointerType","originalTarget","width","height","pressure","result","tiltX","charCode","tiltY","detail","isPrimary","prevValue"])}}),r(["touchstart","touchmove","touchend","touchcancel"],function(){i.event.fixHooks[this]={filter:function(e,t){return c(function(n,i){e[n]=i(t)}),e},props:i.event.mouseHooks.props.concat(["touches","changedTouches","targetTouches","detail","result","originalTarget","charCode","prevValue"])}}),i.event.fixHooks.wheel=i.event.mouseHooks;var h={props:i.event.mouseHooks.props.concat(["pointerType","pointerId","pointers"])};u.callbacks.add(function(e){i.event.fixHooks[e]=h});l(function(e,t){for(var n=i.event.fixHooks[t.type]||i.event.mouseHooks,o=n.props?i.event.props.concat(n.props):i.event.props,a=o.length;a--;){var r=o[a];e[r]=t[r]}return n.filter?n.filter(e,t):e})}else c(function(e,t){i.event.addProp(e,t)})},function(e,t,n){var i=n(53),o=n(6),a=n(78)(),r=n(61).compare;if(a){var s=i.Deferred,l={Deferred:s};l.when=r(i.fn.jquery,[3])<0?i.when:function(e){return 0===arguments.length?(new s).resolve():1===arguments.length?e&&e.then?e:(new s).resolve(e):i.when.apply(i,arguments)},o.setStrategy(l)}},function(e,t,n){var i=n(53),o=n(228),a=n(47).add;if(i&&!o.fired()){var r=i.holdReady||i.fn.holdReady;r(!0),o.add(function(){a(function(){r(!1)})})}},function(e,t,n){var i=n(53),o=n(5),a=n(78)(),r=n(113),s=n(12);a&&(r.add(function(e,t){i.event.special[e]=t}),o.forcePassiveFalseEventNames.forEach(function(e){i.event.special[e]={setup:function(t,n,i){s.listen(this,e,i,{passive:!1})}}}),o.set({on:function(e){i(e).on.apply(i(e),Array.prototype.slice.call(arguments,1))},one:function(e){i(e).one.apply(i(e),Array.prototype.slice.call(arguments,1))},off:function(e){i(e).off.apply(i(e),Array.prototype.slice.call(arguments,1))},trigger:function(e){i(e).trigger.apply(i(e),Array.prototype.slice.call(arguments,1))},triggerHandler:function(e){i(e).triggerHandler.apply(i(e),Array.prototype.slice.call(arguments,1))},Event:i.Event}))},function(e,t,n){var i=n(53),o=n(223);i&&o.setEasing(i.easing)},function(e,t,n){var i=n(53),o=n(37);n(78)()&&o.setDataStrategy(i)},function(e,t,n){var i=n(10).setPublicElementWrapper;n(78)()&&i(function(e){return e})},function(e,t,n){var i=n(53),o=n(149),a=n(21);if(i){o.add(function(e,t){i.fn[e]=function(n){var i;if("string"==typeof n){var o=n,r=[].slice.call(arguments).slice(1);this.each(function(){var n=t.getInstance(this);if(!n)throw a.Error("E0009",e);var s=n[o].apply(n,r);void 0===i&&(i=s)})}else this.each(function(){var e=t.getInstance(this);e?e.option(n):new t(this,n)}),i=this;return i}})}},function(e,t,n){var i=n(53),o=n(62);n(78)()&&o.inject({sendRequest:function(e){return e.responseType||e.upload?this.callBase.apply(this,[e]):i.ajax(e)}})},function(e,t,n){n(229)&&(n(227),n(451),n(462),n(463),n(464))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=i(n(2)),r=i(n(5)),s=i(n(27)),l=i(n(149)),u=i(n(14)),c=i(n(25)),d=i(n(1)),h=i(n(3)),p=i(n(13)),f=i(n(230)),g=i(n(17)),_=i(n(49)),m=i(n(456)),v=i(n(179)),y=i(n(54)),b=i(n(20)),x=i(n(0)),w=i(n(32)),C=i(n(21)),k=h.default.each,S=p.default.inArray,I=b.default.compileSetter,T=b.default.compileGetter,D=x.default.extendFromObject,E=["rendering"],A="value",O=function(e,t){return t.$root.$$phase?e(t):t.$apply(function(){return e(t)})},P=u.default.inherit({ctor:function(e){this._componentDisposing=(0,c.default)(),this._optionChangedCallbacks=(0,c.default)(),this._ngLocker=new f.default,this._scope=e.scope,this._$element=e.$element,this._$templates=e.$templates,this._componentClass=e.componentClass,this._parse=e.parse,this._compile=e.compile,this._itemAlias=e.itemAlias,this._transcludeFn=e.transcludeFn,this._digestCallbacks=e.dxDigestCallbacks,this._normalizeOptions(e.ngOptions),this._initComponentBindings(),this._initComponent(this._scope),e.ngOptions||this._addOptionsStringWatcher(e.ngOptionsString)},_addOptionsStringWatcher:function(e){var t=this,n=this._scope.$watch(e,function(e){e&&(n(),t._normalizeOptions(e),t._initComponentBindings(),t._component.option(t._evalOptions(t._scope)))});this._componentDisposing.add(n)},_normalizeOptions:function(e){var t=this;this._ngOptions=D({},e),e&&(!e.hasOwnProperty("bindingOptions")&&e.bindingOptions&&(this._ngOptions.bindingOptions=e.bindingOptions),e.bindingOptions&&k(e.bindingOptions,function(e,n){"string"===d.default.type(n)&&(t._ngOptions.bindingOptions[e]={dataPath:n})}))},_initComponent:function(e){this._component=new this._componentClass(this._$element,this._evalOptions(e)),this._component._isHidden=!0,this._handleDigestPhase()},_handleDigestPhase:function(){var e=this,t=function(){e._component.beginUpdate()},n=function(){e._component.endUpdate()};this._digestCallbacks.begin.add(t),this._digestCallbacks.end.add(n),this._componentDisposing.add(function(){e._digestCallbacks.begin.remove(t),e._digestCallbacks.end.remove(n)})},_initComponentBindings:function(){var e=this,t={};this._ngOptions.bindingOptions&&(k(this._ngOptions.bindingOptions,function(n,i){var o=n.search(/\[|\./),a=o>-1?n.substring(0,o):n,r=void 0,s=void 0,l=i.dataPath,u=!0,c=!1;void 0!==i.deep&&(c=u=!!i.deep),t[a]||(t[a]={}),t[a][n]=l;var d=function(t,i){e._ngLocker.locked(n)||(e._ngLocker.obtain(n),e._component.option(n,t),h(),e._component._optionValuesEqual(n,i,t)&&e._ngLocker.locked(n)&&e._ngLocker.release(n))},h=function(){var t=Array.isArray(e._scope.$eval(l))&&!c?"$watchCollection":"$watch";r!==t&&(s&&s(),s=e._scope[t](l,d,u),r=t)};h(),e._componentDisposing.add(s)}),this._optionChangedCallbacks.add(function(n){var i=n.name,o=n.fullName,a=n.component;if(e._ngLocker.locked(o))e._ngLocker.release(o);else if(t&&t[i]){var r=e._scope.$root.$$phase,s=function(){e._ngLocker.obtain(o)};r?e._digestCallbacks.begin.add(s):s(),O(function(){k(t[i],function(t,i){if(e._optionsAreLinked(o,t)){var r=a.option(t);e._parse(i).assign(e._scope,r);var s=e._parse(i)(e._scope);s!==r&&n.component.option(t,s)}})},e._scope);var l=function t(){e._ngLocker.locked(o)&&e._ngLocker.release(o),e._digestCallbacks.begin.remove(s),e._digestCallbacks.end.remove(t)};r?e._digestCallbacks.end.addPrioritized(l):l()}}))},_optionsAreNested:function(e,t){var n=e[t.length];return 0===e.indexOf(t)&&("."===n||"["===n)},_optionsAreLinked:function(e,t){return e===t||(e.length>t.length?this._optionsAreNested(e,t):this._optionsAreNested(t,e))},_compilerByTemplate:function(e){var t=this,n=this._getScopeItemsPath();return function(i){var o=(0,a.default)(e).clone(),s=i.model&&i.model.constructor===t._scope.$root.constructor?i.model:i.noModel?t._scope:t._createScopeWithData(i);n&&t._synchronizeScopes(s,n,i.index),o.appendTo(i.container),i.noModel||r.default.on(o,"$destroy",function(){!s.$parent||s.$destroy()});var l=t._compile(o,t._transcludeFn);return t._applyAsync(function(e){l(e,null,{parentBoundTranscludeFn:t._transcludeFn})},s),o}},_applyAsync:function(e,t){var n=this;e(t),t.$root.$$phase||(this._renderingTimer||(this._renderingTimer=setTimeout(function(){t.$apply(),n._renderingTimer=null})),this._componentDisposing.add(function(){clearTimeout(n._renderingTimer)}))},_getScopeItemsPath:function(){if(this._componentClass.subclassOf(y.default)&&this._ngOptions.bindingOptions&&this._ngOptions.bindingOptions.items)return this._ngOptions.bindingOptions.items.dataPath},_createScopeWithData:function(e){var t=this._scope.$new();return this._itemAlias&&(t[this._itemAlias]=e.model),d.default.isDefined(e.index)&&(t.$index=e.index),t},_synchronizeScopes:function(e,t,n){this._itemAlias&&"object"!==o(e[this._itemAlias])&&this._synchronizeScopeField({parentScope:this._scope,childScope:e,fieldPath:this._itemAlias,parentPrefix:t,itemIndex:n})},_synchronizeScopeField:function(e){var t,n=e.parentScope,i=e.childScope,o=e.fieldPath,a=e.parentPrefix,r=e.itemIndex,s=o===this._itemAlias?"":"."+o,l=void 0!==r,u=[a];if(l){if(!d.default.isNumeric(r))return;u.push("[",r,"]")}u.push(s),t=u.join("");var c=n.$watch(t,function(e,t){e!==t&&I(o)(i,e)}),h=i.$watch(o,function(e,i){if(e!==i){if(l&&!T(a)(n)[r])return void h();I(t)(n,e)}});this._componentDisposing.add([c,h])},_evalOptions:function(e){var t=this,n=D({},this._ngOptions);return delete n.bindingOptions,this._ngOptions.bindingOptions&&k(this._ngOptions.bindingOptions,function(t,i){n[t]=e.$eval(i.dataPath)}),n._optionChangedCallbacks=this._optionChangedCallbacks,n._disposingCallbacks=this._componentDisposing,n.onActionCreated=function(t,n,i){if(i&&S(i.category,E)>-1)return n;return function(){var t=this,i=arguments;return e&&e.$root&&!e.$root.$$phase?O(function(){return n.apply(t,i)},e):n.apply(this,i)}},n.beforeActionExecute=n.onActionCreated,n.nestedComponentOptions=function(e){return{templatesRenderAsynchronously:e.option("templatesRenderAsynchronously"),forceApplyBindings:e.option("forceApplyBindings"),modelByElement:e.option("modelByElement"),onActionCreated:e.option("onActionCreated"),beforeActionExecute:e.option("beforeActionExecute"),nestedComponentOptions:e.option("nestedComponentOptions")}},n.templatesRenderAsynchronously=!0,(0,s.default)().wrapActionsBeforeExecute&&(n.forceApplyBindings=function(){O(function(){},e)}),n.integrationOptions={createTemplate:function(e){return new m.default(e,t._compilerByTemplate.bind(t))},watchMethod:function(n,i,o){var a=void 0,r=(o=o||{}).skipImmediate,l=e.$watch(function(){var e=n();return e instanceof Date&&(e=e.valueOf()),e},function(e){var t=a===e;!r&&(!t||t&&o.deep)&&i(e),r=!1},o.deep);return r||(a=n(),i(a)),(0,s.default)().wrapActionsBeforeExecute&&t._applyAsync(function(){},e),l},templates:{"dx-polymorph-widget":{render:function(e){var n=e.model.widget;if(n){if("button"===n||"tabs"===n||"dropDownMenu"===n){var i=n;n=w.default.camelize("dx-"+n),C.default.log("W0001","dxToolbar - 'widget' item field",i,"16.1","Use: '"+n+"' instead")}var o=(0,a.default)("<div>").attr(w.default.dasherize(n),"options").get(0),r=t._scope.$new();r.options=e.model.options,e.container.append(o),t._compile(o)(r)}}}}},n.modelByElement=function(){return e},n}});P=P.inherit({ctor:function(e){this._componentName=e.componentName,this._ngModel=e.ngModel,this._ngModelController=e.ngModelController,this.callBase.apply(this,arguments)},_isNgModelRequired:function(){return(this._componentClass.subclassOf(_.default)||this._componentClass.prototype instanceof _.default)&&this._ngModel},_initComponentBindings:function(){this.callBase.apply(this,arguments),this._initNgModelBinding()},_initNgModelBinding:function(){var e=this;if(this._isNgModelRequired()){var t=this._scope.$watch(this._ngModel,function(t,n){e._ngLocker.locked(A)||t!==n&&e._component.option(A,t)});this._optionChangedCallbacks.add(function(t){e._ngLocker.obtain(A);try{if(t.name!==A)return;e._ngModelController.$setViewValue(t.value)}finally{e._ngLocker.locked(A)&&e._ngLocker.release(A)}}),this._componentDisposing.add(t)}},_evalOptions:function(){if(!this._isNgModelRequired())return this.callBase.apply(this,arguments);var e=this.callBase.apply(this,arguments);return e[A]=this._parse(this._ngModel)(this._scope),e}});var B={};l.default.add(function(e,t){B[e]||function(e){var t="dxValidator"!==e?1:10;v.default.directive(e,["$compile","$parse","dxDigestCallbacks",function(n,i,o){return{restrict:"A",require:"^?ngModel",priority:t,compile:function(t){var a=B[e],r=a.subclassOf(g.default)?t.contents().detach():null;return function(t,s,l,u,c){s.append(r),O(function(){new P({componentClass:a,componentName:e,compile:n,parse:i,$element:s,scope:t,ngOptionsString:l[e],ngOptions:l[e]?t.$eval(l[e]):{},ngModel:l.ngModel,ngModelController:u,transcludeFn:c,itemAlias:l.dxItemAlias,dxDigestCallbacks:o})},t)}}}}])}(e),B[e]=t})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(71)),r=n(10),s=n(185);n(453),(0,s.registerTemplateEngine)("default",{compile:function(e){return(0,r.normalizeTemplateElement)(e)},render:function(e,t,n){return e.clone()}}),(0,s.setTemplateEngine)("default");var l=a.default.inherit({ctor:function(e){this._element=e},_renderCore:function(e){var t=e.transclude;return t||this._compiledTemplate||(this._compiledTemplate=(0,s.getCurrentTemplateEngine)().compile(this._element)),(0,o.default)("<div>").append(t?this._element:(0,s.getCurrentTemplateEngine)().render(this._compiledTemplate,e.model,e.index)).contents()},source:function(){return(0,o.default)(this._element).clone()}});e.exports=l},function(e,t,n){var i=n(10),o=n(185);(0,o.registerTemplateEngine)("jquery-tmpl",{compile:function(e){return(0,i.extractTemplateMarkup)(e)},render:function(e,t){return jQuery.tmpl(e,t)}}),(0,o.registerTemplateEngine)("jsrender",{compile:function(e){return(jQuery||jsrender).templates((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e.render(t)}}),(0,o.registerTemplateEngine)("mustache",{compile:function(e){return(0,i.extractTemplateMarkup)(e)},render:function(e,t){return Mustache.render(e,t)}}),(0,o.registerTemplateEngine)("hogan",{compile:function(e){return Hogan.compile((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e.render(t)}}),(0,o.registerTemplateEngine)("underscore",{compile:function(e){return _.template((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e(t)}}),(0,o.registerTemplateEngine)("handlebars",{compile:function(e){return Handlebars.compile((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e(t)}}),(0,o.registerTemplateEngine)("doT",{compile:function(e){return doT.template((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e(t)}})},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(12),r=n(7),s=n(47).add,l=r.getWindow(),u=r.getNavigator(),c=n(5),d=n(39),h=n(26),p=n(61).compare,f=n(76),g=n(0).extend,_=n(13).inArray,m=n(10).getPublicElement,v=f.changeCallback,y=n(210).hideCallback,b=n(77),x=n(29).fitIntoRange,w=n(10),C=n(4).noop,k=n(1),S=n(3).each,I=n(16),T=n(31),D=n(8),E=n(17),A=n(159),O=n(64),P=n(55),B=n(9),M=n(24),R=n(174),F=n(111),V=n(6).Deferred,L=n(455),H=n(151),z="dx-inner-overlay",N=["onShowing","onShown","onHiding","onHidden","onPositioning","onPositioned","onResizeStart","onResize","onResizeEnd"],$=[],W={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"}},G=I.real(),j=G.version,q=T.mozilla&&"desktop"===G.deviceType,K="ios"===G.platform,U=T.safari&&"desktop"!==G.deviceType,Y=K&&p(j,[7,1])<0,X="android"===G.platform&&0===p(j,[4,0],2)&&-1===u.userAgent.indexOf("Chrome"),Z=function(e){return e&&o(e.target||e)};s(function(){c.subscribeGlobal(a.getDocument(),M.down,function(e){for(var t=$.length-1;t>=0;t--)if(!$[t]._proxiedDocumentDownHandler(e))return})});var Q=E.inherit({_supportedKeys:function(){var e=function(e,t,n){if(this.option("dragEnabled")){n.preventDefault(),n.stopPropagation();var i=this._allowedOffsets(),o={top:x(e,-i.top,i.bottom),left:x(t,-i.left,i.right)};this._changePosition(o)}};return g(this.callBase(),{escape:function(){this.hide()},upArrow:e.bind(this,-5,0),downArrow:e.bind(this,5,0),leftArrow:e.bind(this,0,-5),rightArrow:e.bind(this,0,5)})},_getDefaultOptions:function(){return g(this.callBase(),{activeStateEnabled:!1,visible:!1,deferRendering:!0,shading:!0,shadingColor:"",position:{my:"center",at:"center"},width:function(){return.8*o(l).width()},minWidth:null,maxWidth:null,height:function(){return.8*o(l).height()},minHeight:null,maxHeight:null,animation:{show:{type:"pop",duration:300,from:{scale:.55}},hide:{type:"pop",duration:300,to:{opacity:0,scale:.55},from:{opacity:1,scale:1}}},closeOnOutsideClick:!1,closeOnBackButton:!0,onShowing:null,onShown:null,onHiding:null,onHidden:null,contentTemplate:"content",dragEnabled:!1,resizeEnabled:!1,onResizeStart:null,onResize:null,onResizeEnd:null,innerOverlay:!1,target:void 0,container:void 0,hideTopOverlayHandler:void 0,closeOnTargetScroll:!1,onPositioned:null,boundaryOffset:{h:0,v:0},propagateOutsideClick:!1,ignoreChildEvents:!0,_checkParentVisibility:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var e=I.real(),t=e.platform,n=e.version;return"android"===t&&p(n,[4,2])<0},options:{animation:{show:{type:"fade",duration:400},hide:{type:"fade",duration:400,to:{opacity:0},from:{opacity:1}}}}},{device:function(){return!r.hasWindow()},options:{width:null,height:null,animation:null,_checkParentVisibility:!1}}])},_setOptionsByReference:function(){this.callBase(),g(this._optionsByReference,{animation:!0})},_getAnonymousTemplateName:function(){return"content"},_wrapper:function(){return this._$wrapper},_container:function(){return this._$content},_eventBindingTarget:function(){return this._$content},_init:function(){this.callBase(),this._initActions(),this._initCloseOnOutsideClickHandler(),this._initTabTerminatorHandler(),this._$wrapper=o("<div>").addClass("dx-overlay-wrapper"),this._$content=o("<div>").addClass("dx-overlay-content"),this._initInnerOverlayClass();var e=this.$element();this._$wrapper.addClass(e.attr("class")),e.addClass("dx-overlay"),this._$wrapper.attr("data-bind","dxControlsDescendantBindings: true"),c.on(this._$wrapper,"MSPointerDown",C),c.on(this._$wrapper,"focusin",function(e){e.stopPropagation()}),this._toggleViewPortSubscription(!0)},_initOptions:function(e){this._initTarget(e.target),this._initContainer(e.container),this._initHideTopOverlayHandler(e.hideTopOverlayHandler),this.callBase(e)},_initInnerOverlayClass:function(){this._$content.toggleClass(z,this.option("innerOverlay"))},_initTarget:function(e){if(k.isDefined(e)){var t=this.option();S(["position.of","animation.show.from.position.of","animation.show.to.position.of","animation.hide.from.position.of","animation.hide.to.position.of"],function(n,i){for(var o=i.split("."),a=t;a;){if(1===o.length){k.isPlainObject(a)&&(a[o.shift()]=e);break}a=a[o.shift()]}})}},_initContainer:function(e){e=void 0===e?f.value():e;var t=this.$element(),n=t.closest(e);n.length||(n=o(e).first()),this._$container=n.length?n:t.parent()},_initHideTopOverlayHandler:function(e){this._hideTopOverlayHandler=void 0!==e?e:this._defaultHideTopOverlayHandler.bind(this)},_defaultHideTopOverlayHandler:function(){this.hide()},_initActions:function(){this._actions={},S(N,function(e,t){this._actions[t]=this._createActionByOption(t,{excludeValidators:["disabled","readOnly"]})||C}.bind(this))},_initCloseOnOutsideClickHandler:function(){var e=this;this._proxiedDocumentDownHandler=function(){return e._documentDownHandler.apply(e,arguments)}},_documentDownHandler:function(e){this._showAnimationProcessing&&this._stopAnimation();var t=this.option("closeOnOutsideClick");k.isFunction(t)&&(t=t(e));var n=this._$content,i=o(l.document).is(e.target)||w.contains(l.document,e.target),a=o(e.target).closest("."+z).length;return i&&!a&&!(n.is(e.target)||w.contains(n.get(0),e.target))&&t&&(this.option("shading")&&e.preventDefault(),this.hide()),this.option("propagateOutsideClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.content=new F(this)},_isTopOverlay:function(){for(var e=this._overlayStack(),t=e.length-1;t>=0;t--){var n=e[t]._findTabbableBounds();if(n.first||n.last)return e[t]===this}return!1},_overlayStack:function(){return $},_zIndexInitValue:function(){return Q.baseZIndex()},_toggleViewPortSubscription:function(e){v.remove(this._viewPortChangeHandle),e&&(this._viewPortChangeHandle=this._viewPortChangeHandler.bind(this),v.add(this._viewPortChangeHandle))},_viewPortChangeHandler:function(){this._initContainer(this.option("container")),this._refresh()},_renderVisibilityAnimate:function(e){return this._stopAnimation(),e?this._show():this._hide()},_normalizePosition:function(){var e=this.option("position");this._position="function"==typeof e?e():e},_getAnimationConfig:function(){var e=this.option("animation");return k.isFunction(e)&&(e=e.call(this)),e},_show:function(){var e=this,t=new V;if(this._parentHidden=this._isParentHidden(),t.done(function(){delete e._parentHidden}),this._parentHidden)return this._isHidden=!0,t.resolve();if(this._currentVisible)return(new V).resolve().promise();this._currentVisible=!0,this._normalizePosition();var n=e._getAnimationConfig()||{},i=this._normalizeAnimation(n.show,"to"),o=i&&i.start||C,a=i&&i.complete||C;if(this._isHidingActionCanceled)delete this._isHidingActionCanceled,t.resolve();else{var r=function(){this._renderVisibility(!0),this._animate(i,function(){e.option("focusStateEnabled")&&c.trigger(e._focusTarget(),"focus"),a.apply(this,arguments),e._showAnimationProcessing=!1,e._actions.onShown(),t.resolve()},function(){o.apply(this,arguments),e._showAnimationProcessing=!0})}.bind(this);this.option("templatesRenderAsynchronously")?(this._stopShowTimer(),this._asyncShowTimeout=setTimeout(r)):r()}return t.promise()},_normalizeAnimation:function(e,t){return e&&((e=g({type:"slide"},e))[t]&&"object"===i(e[t])&&g(e[t],{position:this._position})),e},_hide:function(){if(!this._currentVisible)return(new V).resolve().promise();this._currentVisible=!1;var e=this,t=new V,n=e._getAnimationConfig()||{},i=this._normalizeAnimation(n.hide,"from"),o=i&&i.start||C,a=i&&i.complete||C,r={cancel:!1};return this._actions.onHiding(r),r.cancel?(this._isHidingActionCanceled=!0,this.option("visible",!0),t.resolve()):(this._forceFocusLost(),this._toggleShading(!1),this._toggleSubscriptions(!1),this._stopShowTimer(),this._animate(i,function(){e._$content.css("pointerEvents",""),e._renderVisibility(!1),a.apply(this,arguments),e._actions.onHidden(),t.resolve()},function(){e._$content.css("pointerEvents","none"),o.apply(this,arguments)})),t.promise()},_forceFocusLost:function(){var e=a.getActiveElement();e&&this._$content.find(e).length&&e.blur()},_animate:function(e,t,n){e?(n=n||e.start||C,d.animate(this._$content,g({},e,{start:n,complete:t}))):t()},_stopAnimation:function(){d.stop(this._$content,!0)},_renderVisibility:function(e){e&&this._isParentHidden()||(this._currentVisible=e,this._stopAnimation(),e||w.triggerHidingEvent(this._$content),this._toggleVisibility(e),this._$content.toggleClass("dx-state-invisible",!e),this._updateZIndexStackPosition(e),e?(this._renderContent(),this._actions.onShowing(),this._moveToContainer(),this._renderGeometry(),w.triggerShownEvent(this._$content),w.triggerResizeEvent(this._$content)):this._moveFromContainer(),this._toggleShading(e),this._toggleSubscriptions(e))},_updateZIndexStackPosition:function(e){var t=this._overlayStack(),n=_(this,t);e?(-1===n&&(this._zIndex=L.create(this._zIndexInitValue()),t.push(this)),this._$wrapper.css("zIndex",this._zIndex),this._$content.css("zIndex",this._zIndex)):-1!==n&&(t.splice(n,1),L.remove(this._zIndex))},_toggleShading:function(e){this._$wrapper.toggleClass("dx-overlay-modal",this.option("shading")&&!this.option("container")),this._$wrapper.toggleClass("dx-overlay-shader",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.apply(e,arguments)}},_toggleTabTerminator:function(e){var t=B.addNamespace("keydown",this.NAME);e?c.on(a.getDocument(),t,this._proxiedTabTerminatorHandler):c.off(a.getDocument(),t,this._proxiedTabTerminatorHandler)},_findTabbableBounds:function(){for(var e=this._$wrapper.find("*"),t=e.length-1,n={first:null,last:null},i=0;i<=t&&(!n.first&&e.eq(i).is(O.tabbable)&&(n.first=e.eq(i)),!n.last&&e.eq(t-i).is(O.tabbable)&&(n.last=e.eq(t-i)),!n.first||!n.last);i++);return n},_tabKeyHandler:function(e){if("tab"===B.normalizeKeyName(e)&&this._isTopOverlay()){var t=this._findTabbableBounds(),n=t.first,i=t.last,o=!e.shiftKey&&e.target===i.get(0),a=e.shiftKey&&e.target===n.get(0),r=0===t.length,s=!w.contains(this._$wrapper.get(0),e.target);if(o||a||r||s){e.preventDefault();var l=e.shiftKey?i:n;c.trigger(l,"focusin"),c.trigger(l,"focus")}}},_toggleSubscriptions:function(e){r.hasWindow()&&(this._toggleHideTopOverlayCallback(e),this._toggleParentsScrollSubscription(e))},_toggleHideTopOverlayCallback:function(e){this._hideTopOverlayHandler&&(e&&this.option("closeOnBackButton")?y.add(this._hideTopOverlayHandler):y.remove(this._hideTopOverlayHandler))},_toggleParentsScrollSubscription:function(e){if(this._position){var t=this._position.of||o(),n=this.option("closeOnTargetScroll"),i=Z(t).parents(),a=B.addNamespace("scroll",this.NAME);"generic"===I.real().platform&&(i=i.add(l)),this._proxiedTargetParentsScrollHandler=this._proxiedTargetParentsScrollHandler||function(e){this._targetParentsScrollHandler(e)}.bind(this),c.off(o().add(this._$prevTargetParents),a,this._proxiedTargetParentsScrollHandler),e&&n&&(c.on(i,a,this._proxiedTargetParentsScrollHandler),this._$prevTargetParents=i)}},_targetParentsScrollHandler:function(e){var t=!1,n=this.option("closeOnTargetScroll");k.isFunction(n)&&(t=n(e)),t||this._showAnimationProcessing||this.hide()},_render:function(){this.callBase(),this._$content.appendTo(this.$element()),this._renderVisibilityAnimate(this.option("visible"))},_renderContent:function(){var e=!this._currentVisible&&this.option("deferRendering");return this.option("visible")&&this._isParentHidden()?void(this._isHidden=!0):void(this._contentAlreadyRendered||e||(this._contentAlreadyRendered=!0,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(){if("none"===o(this).css("display"))return t=!0,!1}),t||!a.getBody().contains(e.get(0))},_renderContentImpl:function(){var e=this,t=this.$element();this._$content.appendTo(t);var n=new V,i=this.option("contentTemplate"),o=this._getTemplate(i),a=this._getAnonymousTemplateName()===i;return o&&o.render({container:m(this.$content()),noModel:!0,transclude:a,onRendered:function(){n.resolve()}}),this._renderDrag(),this._renderResize(),this._renderScrollTerminator(),n.done(function(){e.option("visible")&&e._moveToContainer()}),n.promise()},_renderDrag:function(){var e=this._getDragTarget();if(e){var t=B.addNamespace(P.start,this.NAME),n=B.addNamespace(P.move,this.NAME);c.off(e,t),c.off(e,n),this.option("dragEnabled")&&(c.on(e,t,this._dragStartHandler.bind(this)),c.on(e,n,this._dragUpdateHandler.bind(this)))}},_renderResize:function(){this._resizable=this._createComponent(this._$content,R,{handles:this.option("resizeEnabled")?"all":"none",onResizeEnd:this._resizeEndHandler.bind(this),onResize:this._actions.onResize.bind(this),onResizeStart:this._actions.onResizeStart.bind(this),minHeight:100,minWidth:100,area:this._getDragResizeContainer()})},_resizeEndHandler:function(){this._positionChangeHandled=!0;var e=this._resizable.option("width"),t=this._resizable.option("height");e&&this.option("width",e),t&&this.option("height",t),this._actions.onResizeEnd()},_renderScrollTerminator:function(){var e=this._wrapper(),t=B.addNamespace(P.move,this.NAME);c.off(e,t),c.on(e,t,{validate:function(){return!0},getDirection:function(){return"both"},_toggleGestureCover:C,_clearSelection:C,isNative:!0},function(e){var t=e.originalEvent.originalEvent;e._cancelPreventDefault=!0,t&&"mousemove"!==t.type&&e.preventDefault()})},_getDragTarget:function(){return this.$content()},_dragStartHandler:function(e){e.targetElements=[],this._prevOffset={x:0,y:0};var t=this._allowedOffsets();e.maxTopOffset=t.top,e.maxBottomOffset=t.bottom,e.maxLeftOffset=t.left,e.maxRightOffset=t.right},_getDragResizeContainer:function(){return f.originalViewPort().get(0)||this.option("container")?this._$container:o(l)},_deltaSize:function(){var e=this._$content,t=this._getDragResizeContainer(),n=e.outerWidth(),i=e.outerHeight(),r=t.outerWidth(),s=t.outerHeight();if(this._isWindow(t)){var l=a.getDocument();s=Math.max(o(l).outerHeight(),s),r=Math.max(o(l).outerWidth(),r)}return{width:r-n,height:s-i}},_dragUpdateHandler:function(e){var t=e.offset,n=this._prevOffset,i={top:t.y-n.y,left:t.x-n.x};this._changePosition(i),this._prevOffset=t},_changePosition:function(e){var t=h.locate(this._$content);h.move(this._$content,{left:t.left+e.left,top:t.top+e.top}),this._positionChangeHandled=!0},_allowedOffsets:function(){var e=h.locate(this._$content),t=this._deltaSize(),n=t.height>=0&&t.width>=0,i=!this.option("shading")||this.option("container")||this._isWindow(this._getContainer())?{top:0,left:0}:h.locate(this._$wrapper),o=this.option("boundaryOffset");return{top:n?e.top+i.top+o.v:0,bottom:n?-e.top-i.top+t.height-o.v:0,left:n?e.left+i.left+o.h:0,right:n?-e.left-i.left+t.width-o.h:0}},_moveFromContainer:function(){this._$content.appendTo(this.$element()),this._detachWrapperToContainer()},_detachWrapperToContainer:function(){this._$wrapper.detach()},_moveToContainer:function(){this._attachWrapperToContainer(),this._$content.appendTo(this._$wrapper)},_attachWrapperToContainer:function(){var e=this.$element(),t=void 0!==this.option("container")?this._$container:H.getSwatchContainer(e);t&&t[0]===e.parent()[0]&&(t=e),this._$wrapper.appendTo(t)},_fixHeightAfterSafariAddressBarResizing:function(){this._isWindow(this._getContainer())&&U&&this._$wrapper.css("minHeight",l.innerHeight)},_renderGeometry:function(){this.option("visible")&&r.hasWindow()&&this._renderGeometryImpl()},_renderGeometryImpl:function(){this._stopAnimation(),this._normalizePosition(),this._renderShading(),this._renderDimensions();var e=this._renderPosition();this._fixHeightAfterSafariAddressBarResizing(),this._actions.onPositioned({position:e})},_fixWrapperPosition:function(){var e=this._$wrapper,t=this._getContainer();e.css("position",this._isWindow(t)&&!K?"fixed":"absolute")},_renderShading:function(){this._fixWrapperPosition(),this._renderShadingDimensions(),this._renderShadingPosition()},_renderShadingPosition:function(){if(this.option("shading")){var e=this._getContainer();b.setup(this._$wrapper,{my:"top left",at:"top left",of:e})}},_renderShadingDimensions:function(){var e,t;if(this.option("shading")){var n=this._getContainer();e=this._isWindow(n)?"100%":n.outerWidth(),t=this._isWindow(n)?"100%":n.outerHeight()}else e="",t="";this._$wrapper.css({width:e,height:t})},_isWindow:function(e){return!!e&&k.isWindow(e.get(0))},_getContainer:function(){var e=this._position,t=this.option("container"),n=e?e.of||l:null;return Z(t||n)},_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)})},_renderPosition:function(){if(!this._positionChangeHandled){this._renderOverlayBoundaryOffset(),h.resetPosition(this._$content);var e=this._transformStringPosition(this._position,W),t=b.setup(this._$content,e);return function(e){if((Y||q)&&e.width(),X){var t=e.parents();t.is(".dx-scrollable-native")||(t.css("backfaceVisibility","hidden"),t.css("backfaceVisibility"),t.css("backfaceVisibility","visible"))}}(this._$content),this._actions.onPositioning(),t}var n=this._allowedOffsets();this._changePosition({top:x(0,-n.top,n.bottom),left:x(0,-n.left,n.right)})},_transformStringPosition:function(e,t){return k.isString(e)&&(e=g({},t[e])),e},_renderOverlayBoundaryOffset:function(){var e=this.option("boundaryOffset");this._$content.css("margin",e.v+"px "+e.h+"px")},_focusTarget:function(){return this._$content},_attachKeyboardEvents:function(){this._keyboardProcessor=new A({element:this._$content,handler:this._keyboardHandler,context:this})},_keyboardHandler:function(e){var t=e.originalEvent;!o(t.target).is(this._$content)&&this.option("ignoreChildEvents")||this.callBase.apply(this,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(){this._contentAlreadyRendered||this.$content().empty(),this._renderVisibility(!1),this._stopShowTimer(),this._cleanFocusState()},_stopShowTimer:function(){this._asyncShowTimeout&&clearTimeout(this._asyncShowTimeout),this._asyncShowTimeout=null},_dispose:function(){d.stop(this._$content,!1),clearTimeout(this._deferShowTimer),this._toggleViewPortSubscription(!1),this._toggleSubscriptions(!1),this._updateZIndexStackPosition(!1),this._toggleTabTerminator(!1),this._actions=null,this.callBase(),L.remove(this._zIndex),this._$wrapper.remove(),this._$content.remove()},_toggleDisabledState:function(e){this.callBase.apply(this,arguments),this._$content.toggleClass("dx-state-disabled",Boolean(e))},_toggleRTLDirection:function(e){this._$content.toggleClass("dx-rtl",e)},_optionChanged:function(e){var t=e.value;if(_(e.name,N)>-1)this._initActions();else switch(e.name){case"dragEnabled":this._renderDrag(),this._renderGeometry();break;case"resizeEnabled":this._renderResize(),this._renderGeometry();break;case"shading":case"shadingColor":this._toggleShading(this.option("visible"));break;case"width":case"height":case"minWidth":case"maxWidth":case"minHeight":case"maxHeight":case"boundaryOffset":this._renderGeometry();break;case"position":this._positionChangeHandled=!1,this._renderGeometry();break;case"visible":this._renderVisibilityAnimate(t).done(function(){this._animateDeferred&&this._animateDeferred.resolveWith(this)}.bind(this));break;case"target":this._initTarget(t),this._invalidate();break;case"container":this._initContainer(t),this._invalidate();break;case"innerOverlay":this._initInnerOverlayClass();break;case"deferRendering":case"contentTemplate":this._contentAlreadyRendered=!1,this._clean(),this._invalidate();break;case"closeOnBackButton":this._toggleHideTopOverlayCallback(this.option("visible"));break;case"closeOnTargetScroll":this._toggleParentsScrollSubscription(this.option("visible"));break;case"closeOnOutsideClick":case"animation":case"propagateOutsideClick":break;case"rtlEnabled":this._contentAlreadyRendered=!1,this.option("visible",!1),this.callBase(e);break;default:this.callBase(e)}},toggle:function(e){if((e=void 0===e?!this.option("visible"):e)===this.option("visible"))return(new V).resolve().promise();var t=new V;return this._animateDeferred=t,this.option("visible",e),t.promise().done(function(){delete this._animateDeferred}.bind(this))},$content:function(){return this._$content},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},content:function(){return m(this._$content)},repaint:function(){this._renderGeometry(),w.triggerResizeEvent(this._$content)}});Q.baseZIndex=function(e){return L.base(e)},D("dxOverlay",Q),e.exports=Q},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.clearStack=t.remove=t.create=t.base=void 0;var i=n(4),o=1500,a=[];t.base=function(e){return o=(0,i.ensureDefined)(e,o)},t.create=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=a.length,n=(t?a[t-1]:e)+1;return a.push(n),n},t.remove=function(e){var t=a.indexOf(e);t>=0&&a.splice(t,1)},t.clearStack=function(){a=[]}},function(e,t,n){var i=n(2),o=n(71),a=n(1).isFunction,r=n(10),s=o.inherit({ctor:function(e,t){this._element=e,this._compiledTemplate=t(r.normalizeTemplateElement(this._element))},_renderCore:function(e){var t=this._compiledTemplate;return a(t)?t(e):t},source:function(){return i(this._element).clone()}});e.exports=s},function(e,t,n){var i=n(2),o=n(5),a=n(4),r=n(10).getPublicElement,s=n(12),l=n(1).isPlainObject,u=n(6).when,c=n(0).extend,d=n(13).inArray,h=n(3),p=n(1).isFunction,f=n(110),g=n(42),_=n(10),m=n(20),v=n(17),y=n(9),b=n(24),x=n(87),w=n(153),C=n(64),k=n(15),S=n(89),I=n(20).compileGetter,T=n(19),D=n(160),E=n(65),A="dx-item",O="-content",P="dx-item-content-placeholder",B="dx-template-wrapper",M=/^([^.]+\[\d+\]\.)+([\w.]+)$/,R="up",F="down",V="left",L="right",H="last",z="first",N=v.inherit({_activeStateUnit:"."+A,_supportedKeys:function(){var e=function(e){var t=i(this.option("focusedElement"));t.length&&this._itemClickHandler(c({},e,{target:t,currentTarget:t}))},t=function(e,t){t.preventDefault(),t.stopPropagation(),this._moveFocus(e,t)};return c(this.callBase(),{space:function(t){t.preventDefault(),e.call(this,t)},enter:e,leftArrow:t.bind(this,V),rightArrow:t.bind(this,L),upArrow:t.bind(this,R),downArrow:t.bind(this,F),pageUp:t.bind(this,R),pageDown:t.bind(this,F),home:t.bind(this,z),end:t.bind(this,H)})},_getDefaultOptions:function(){return c(this.callBase(),{selectOnFocus:!1,loopItemFocus:!0,items:[],itemTemplate:"item",onItemRendered:null,onItemClick:null,onItemHold:null,itemHoldTimeout:750,onItemContextMenu:null,onFocusedItemChanged:null,noDataText:k.format("dxCollectionWidget-noDataText"),dataSource: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}})},_getAnonymousTemplateName:function(){return"item"},_init:function(){this._compileDisplayGetter(),this.callBase(),this._cleanRenderedItems(),this._refreshDataSource()},_compileDisplayGetter:function(){var e=this.option("displayExpr");this._displayGetter=e?I(this.option("displayExpr")):void 0},_initTemplates:function(){this._initItemsFromMarkup(),this.callBase(),this._initDefaultItemTemplate()},_initDefaultItemTemplate:function(){var e=this._getFieldsMap();this._defaultTemplates.item=new E(function(t,n){l(n)?this._prepareDefaultItemTemplate(n,t):(e&&p(e.text)&&(n=e.text(n)),t.text(String(a.ensureDefined(n,""))))}.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){e.text&&t.text(e.text),e.html&&t.html(e.html)},_initItemsFromMarkup:function(){var e=this,t=this.$element().contents().filter("[data-options*='dxItem']");if(t.length&&!this.option("items").length){var n=[].slice.call(t).map(function(t){var n=i(t),o=_.getElementOptions(t).dxItem;return n.html().trim()&&!o.template?o.template=e._prepareItemTemplate(n):n.remove(),o});this.option("items",n)}},_prepareItemTemplate:function(e){var t="tmpl-"+new g,n=e.detach().clone().removeAttr("data-options").addClass(B);return this._saveTemplate(t,n),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),-1!==d(e.target,this._focusTarget())){var t=i(this.option("focusedElement"));if(t.length)this._setFocusedItem(t);else{var n=this._getActiveItem();n.length&&this.option("focusedElement",r(n))}}},_focusOutHandler:function(){this.callBase.apply(this,arguments);var e=i(this.option("focusedElement"));e.length&&this._toggleFocusClass(!1,e)},_getActiveItem:function(e){var t=i(this.option("focusedElement"));if(t.length)return t;var n=this.option("focusOnSelectedItem")?this.option("selectedIndex"):0,o=this._getActiveElement(),a=o.length-1;return n<0&&(n=e?a:0),o.eq(n)},_renderFocusTarget:function(){this.callBase.apply(this,arguments),this._refreshActiveDescendant()},_moveFocus:function(e){var t,n=this._getAvailableItems();switch(e){case"pageup":case R:t=this._prevItem(n);break;case"pagedown":case F:t=this._nextItem(n);break;case L:t=this.option("rtlEnabled")?this._prevItem(n):this._nextItem(n);break;case V:t=this.option("rtlEnabled")?this._nextItem(n):this._prevItem(n);break;case z:t=n.first();break;case H:t=n.last();break;default:return!1}0!==t.length&&this.option("focusedElement",r(t))},_getVisibleItems:function(e){return(e=e||this._itemElements()).filter(":visible")},_getAvailableItems:function(e){return this._getVisibleItems(e).not(".dx-state-disabled")},_prevItem:function(e){var t=this._getActiveItem(),n=e.index(t),o=e.last(),a=i(e[n-1]),r=this.option("loopItemFocus");return 0===a.length&&r&&(a=o),a},_nextItem:function(e){var t=this._getActiveItem(!0),n=e.index(t),o=e.first(),a=i(e[n+1]),r=this.option("loopItemFocus");return 0===a.length&&r&&(a=o),a},_selectFocusedItem:function(e){this.selectItem(e)},_removeFocusedItem:function(e){var t=i(e);t.length&&(this._toggleFocusClass(!1,t),t.removeAttr("id"))},_refreshActiveDescendant:function(){this.setAria("activedescendant",""),this.setAria("activedescendant",this.getFocusedItemId())},_setFocusedItem:function(e){e&&e.length&&(e.attr("id",this.getFocusedItemId()),this._toggleFocusClass(!0,e),this.onFocusedItemChanged(this.getFocusedItemId()),this._refreshActiveDescendant(),this.option("selectOnFocus")&&this._selectFocusedItem(e))},_findItemElementByItem:function(e){var t=i(),n=this;return this.itemElements().each(function(){var o=i(this);if(o.data(n._itemDataKey())===e)return t=o,!1}),t},_getIndexByItem:function(e){return this.option("items").indexOf(e)},_itemOptionChanged:function(e,t,n,i){var o=this._findItemElementByItem(e);o.length&&(this.constructor.ItemClass.getInstance(o).setDataField(t,n)||this._refreshItem(o,e))},_refreshItem:function(e){var t=this._getItemData(e),n=e.data(this._itemIndexKey());this._renderItem(this._renderedItemsCount+n,t,null,e)},_optionChanged:function(e){if("items"===e.name){var t=e.fullName.match(M);if(t&&t.length){var n=t[t.length-1],o=e.fullName.replace("."+n,""),a=this.option(o);return void this._itemOptionChanged(a,n,e.value,e.previousValue)}}switch(e.name){case"items":case"_itemAttributes":case"itemTemplateProperty":this._cleanRenderedItems(),this._invalidate();break;case"dataSource":this._refreshDataSource(),this._renderEmptyMessage();break;case"noDataText":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._removeFocusedItem(e.previousValue),this._setFocusedItem(i(e.value));break;case"displayExpr":this._compileDisplayGetter(),this._initDefaultItemTemplate(),this._invalidate();break;case"visibleExpr":case"disabledExpr":this._invalidate();break;default:this.callBase(e)}},_loadNextPage:function(){var e=this._dataSource;return this._expectNextPageLoading(),e.pageIndex(1+e.pageIndex()),e.load()},_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._renderFocusTarget()):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()},_cleanItemContainer:function(){i(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 A},_itemContentClass:function(){return this._itemClass()+O},_selectedItemClass:function(){return"dx-item-selected"},_itemResponseWaitClass:function(){return"dx-item-response-wait"},_itemSelector:function(){return"."+this._itemClass()},_itemDataKey:function(){return"dxItemData"},_itemIndexKey:function(){return"dxItemIndex"},_itemElements:function(){return this._itemContainer().find(this._itemSelector())},_initMarkup:function(){this.callBase(),this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged"),this.$element().addClass("dx-collection"),this._prepareContent()},_prepareContent:a.deferRenderer(function(){this._renderContentImpl()}),_renderContent:function(){this._fireContentReadyAction()},_render:function(){this.callBase(),this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent()},_attachClickEvent:function(){var e=this._itemSelector(),t=y.addNamespace(T.name,this.NAME),n=y.addNamespace(b.down,this.NAME),a=this,r=new f(function(e){var t=e.event;a._itemPointerDownHandler(t)});o.off(this._itemContainer(),t,e),o.off(this._itemContainer(),n,e),o.on(this._itemContainer(),t,e,function(e){this._itemClickHandler(e)}.bind(this)),o.on(this._itemContainer(),n,e,function(e){r.execute({element:i(e.target),event:e})})},_itemClickHandler:function(e,t,n){this._itemDXEventHandler(e,"onItemClick",t,n)},_itemPointerDownHandler:function(e){this.option("focusStateEnabled")&&(this._itemFocusHandler=function(){if(clearTimeout(this._itemFocusTimeout),this._itemFocusHandler=null,!e.isDefaultPrevented()){var t=i(e.target),n=t.closest(this._itemElements()),o=this._closestFocusable(t);n.length&&o&&-1!==d(o.get(0),this._focusTarget())&&this.option("focusedElement",r(n))}}.bind(this),this._itemFocusTimeout=setTimeout(this._forcePointerDownFocus.bind(this)))},_closestFocusable:function(e){if(e.is(C.focusable))return e;for(e=e.parent();e.length&&!s.isDocument(e.get(0));){if(e.is(C.focusable))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(),n=y.addNamespace(S.name,this.NAME);o.off(e,n,t),o.on(e,n,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(),n=y.addNamespace(D.name,this.NAME);o.off(e,n,t),o.on(e,n,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&&h.each(e,function(e,t){this._renderItem(this._renderedItemsCount+e,t)}.bind(this)),this._renderEmptyMessage()},_renderItem:function(e,t,n,i){n=n||this._itemContainer();var o=this._renderItemFrame(e,t,n,i);this._setElementData(o,t,e),o.attr(this.option("_itemAttributes")),this._attachItemClickEvent(t,o);var a=this._getItemContent(o),s=this._renderItemContent({index:e,itemData:t,container:r(a),contentClass:this._itemContentClass(),defaultTemplateName:this.option("itemTemplate")}),l=this;return u(s).done(function(n){l._postprocessRenderItem({itemElement:o,itemContent:n,itemData:t,itemIndex:e}),l._executeItemRenderAction(e,t,r(o))}),o},_getItemContent:function(e){var t=e.find("."+P);return t.removeClass(P),t},_attachItemClickEvent:function(e,t){e&&e.onClick&&o.on(t,T.name,function(n){this._itemEventHandlerByHandler(t,e.onClick,{event:n})}.bind(this))},_renderItemContent:function(e){var t=this._getItemTemplateName(e),n=this._getTemplate(t);this._addItemContentClasses(e);var o=i(this._createItemByTemplate(n,e));return o.hasClass(B)?this._renderItemContentByNode(e,o):e.container},_renderItemContentByNode:function(e,t){return i(e.container).replaceWith(t),e.container=r(t),this._addItemContentClasses(e),t},_addItemContentClasses:function(e){var t=[A+O,e.contentClass];i(e.container).addClass(t.join(" "))},_appendItemToContainer:function(e,t,n){t.appendTo(e)},_renderItemFrame:function(e,t,n,o){var a=i("<div>");return new this.constructor.ItemClass(a,this._itemOptions(),t||{}),o&&o.length?o.replaceWith(a):this._appendItemToContainer.call(this,n,a,e),a},_itemOptions:function(){var e=this;return{watchMethod:function(){return e.option("integrationOptions.watchMethod")},fieldGetter:function(t){var n=e.option(t+"Expr");return m.compileGetter(n)}}},_postprocessRenderItem:a.noop,_executeItemRenderAction:function(e,t,n){this._getItemRenderAction()({itemElement:n,itemIndex:e,itemData:t})},_setElementData:function(e,t,n){e.addClass([A,this._itemClass()].join(" ")).data(this._itemDataKey(),t).data(this._itemIndexKey(),n)},_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,n=e.templateProperty||this.option("itemTemplateProperty");return t&&t[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"),n=!t||e&&e.length||this._isDataSourceLoading();n&&this._$noData&&(this._$noData.remove(),this._$noData=null,this.setAria("label",void 0)),n||(this._$noData=this._$noData||i("<div>").addClass("dx-empty-message"),this._$noData.appendTo(this._emptyMessageContainer()).html(t),this.setAria("label",t)),this.$element().toggleClass("dx-empty-collection",!n)},_itemDXEventHandler:function(e,t,n,i){this._itemEventHandler(e.target,t,c(n,{event:e}),i)},_itemEventHandler:function(e,t,n,i){var o=this._createActionByOption(t,c({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(e,o,n)},_itemEventHandlerByHandler:function(e,t,n,i){var o=this._createAction(t,c({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(e,o,n)},_itemEventHandlerImpl:function(e,t,n){var o=this._closestItemElement(i(e)),a=c({},n);return t(c(n,this._extendActionArgs(o),a))},_extendActionArgs:function(e){return{itemElement:r(e),itemIndex:this._itemElements().index(e),itemData:this._getItemData(e)}},_closestItemElement:function(e){return i(e).closest(this._itemSelector())},_getItemData:function(e){return i(e).data(this._itemDataKey())},_getSummaryItemsWidth:function(e,t){var n=0;return e&&h.each(e,function(e,o){n+=i(o).outerWidth(t||!1)}),n},getFocusedItemId:function(){return this._focusedItemId||(this._focusedItemId="dx-"+new g),this._focusedItemId},itemElements:function(){return this._itemElements()},itemsContainer:function(){return this._itemContainer()}}).include(x);N.ItemClass=w,e.exports=N},function(e,t,n){var i=n(180),o=n(35),a=n(3).each,r=n(1).isFunction,s=n(6).Deferred,l=n(152);e.exports=function e(t,n,u){u=u||[],n=n||{};var c=function(e,t){return{name:e,args:t}},d={};return a(["sortBy","thenBy","filter","slice","select","groupBy"],function(){var i=String(this);d[i]=function(){return e(t,n,u.concat(c(i,arguments)))}}),a(["count","min","max","sum","avg","aggregate","enumerate"],function(){var e=String(this);d[e]=function(){return function(e){function d(e){switch(e.name){case"sortBy":return _=[e.args],!0;case"thenBy":if(!_)throw o.errors.Error("E4004");return _.push(e.args),!0}return!1}var h,p,f,g,_,m=new s,v=function(e){var t=n.errorHandler;t&&t(e),o._errorHandler(e),m.reject(e)};try{h=n.adapter,r(h)||(h=i[h]),p=h(n),f=[].concat(u).concat(e);var y=p.optimize;for(y&&y(f);f.length;){if(!d(g=f[0])){if(_){f.unshift(c("multiSort",[_])),_=null;continue}if("enumerate"!==String(g.name)&&(!p[g.name]||!1===p[g.name].apply(p,g.args)))break}f.shift()}(function(){var e=f[0],t=[];e&&"multiSort"===e.name&&(f.shift(),a(e.args[0],function(){t.push(c(t.length?"thenBy":"sortBy",this))})),f=t.concat(f)})(),p.exec(t).done(function(e,t){if(f.length){var i=l(e,{errorHandler:n.errorHandler});a(f,function(){i=i[this.name].apply(i,this.args)}),i.done(m.resolve).fail(m.reject)}else m.resolve(e,t)}).fail(v)}catch(e){v(e)}return m.promise()}.call(this,c(e,arguments))}}),d}},function(e,t,n){var i=n(2),o=n(14),a=n(4),r=o.abstract,s=o.inherit({ctor:function(e){this._collectionWidget=e},getIndexByItemData:r,getItemDataByIndex:r,getKeysByItems:r,getItemsByKeys:r,itemsGetter:r,getKeyByIndex:function(e){var t=this._denormalizeItemIndex(e);return this.getKeysByItems([this.getItemDataByIndex(t)])[0]},_equalKeys:function(e,t){return this._collectionWidget._isKeySpecified()?a.equalByValue(e,t):e===t},beginCache:function(){this._cache={}},endCache:function(){this._cache=null},getIndexByKey:r,getNormalizedIndex:function(e){return this._isNormalizedItemIndex(e)?e:this._isItemIndex(e)?this._normalizeItemIndex(e):this._isDOMNode(e)?this._getNormalizedItemIndex(e):this._normalizeItemIndex(this.getIndexByItemData(e))},getIndex:function(e){return this._isNormalizedItemIndex(e)?this._denormalizeItemIndex(e):this._isItemIndex(e)?e:this._isDOMNode(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._isDOMNode(e))return i(e);var t=this._normalizeItemIndex(this.getIndexByItemData(e));return this._getItemByNormalizedIndex(t)},deleteItemAtIndex:r,itemPlacementFunc:function(e,t){return this._itemsFromSameParent(e,t)&&e<t?"after":"before"},moveItemAtIndexToIndex:r,_isNormalizedItemIndex:function(e){return"number"==typeof e&&Math.round(e)===e},_isDOMNode:function(e){var t;try{t=i(e)}catch(e){return!1}return t&&t.length&&t.get(0).nodeType},_isItemIndex:r,_getNormalizedItemIndex:r,_normalizeItemIndex:r,_denormalizeItemIndex:r,_getItemByNormalizedIndex:r,_itemsFromSameParent:r});e.exports=s},function(e,t,n){var i=n(1),o=n(231),a=n(18),r=n(41),s=n(6).Deferred;e.exports=o.inherit({getSelectedItems:function(){return this._loadFilteredData(this.options.selectionFilter)},getSelectedItemKeys:function(){var e=new s,t=this,n=this.options.key(),o=i.isString(n)?[n]:n;return this._loadFilteredData(this.options.selectionFilter,null,o).done(function(n){var i=n.map(function(e){return t.options.keyOf(e)});e.resolve(i)}).fail(e.reject),e.promise()},selectedItemKeys:function(e,t,n,i){if(i){var o=this.options.filter();o?this._addSelectionFilter(n,o,!1):this._setOption("selectionFilter",n?[]:null)}else{t||this._setOption("selectionFilter",[]);for(var a=0;a<e.length;a++)n?this.removeSelectedItem(e[a]):this.addSelectedItem(e[a])}return this.onSelectionChanged(),(new s).resolve()},setSelectedItems:function(e){this._setOption("selectionFilter",null);for(var t=0;t<e.length;t++)this.addSelectedItem(e[t])},isItemDataSelected:function(e){return this.isItemKeySelected(e)},isItemKeySelected:function(e){var t=this.options.selectionFilter;return!t||!!r([e]).filter(t).toArray().length},_processSelectedItem:function(e){var t=this.options.key(),n=[t,"=",e];if(Array.isArray(t)){n=[];for(var i=0;i<t.length;i++)n.push([t[i],"=",e[t[i]]]),i!==t.length-1&&n.push("and")}return n},addSelectedItem:function(e){var t=this._processSelectedItem(e);this._addSelectionFilter(!1,t,!0)},removeSelectedItem:function(e){var t=this._processSelectedItem(e);this._addSelectionFilter(!0,t,!0)},validate:function(){var e=this.options.key;if(e&&void 0===e())throw a.Error("E1042","Deferred selection")},_findSubFilter:function(e,t){if(!e)return-1;for(var n=JSON.stringify(t),i=0;i<e.length;i++){var o=e[i];if(o&&JSON.stringify(o)===n)return i}return-1},_isLastSubFilter:function(e,t){return!(!e||!t||this._findSubFilter(e,t)!==e.length-1&&0!==this._findSubFilter([e],t))},_addFilterOperator:function(e,t){return e.length>1&&i.isString(e[1])&&e[1]!==t&&(e=[e]),e.length&&e.push(t),e},_denormalizeFilter:function(e){return e&&i.isString(e[0])&&(e=[e]),e},_addSelectionFilter:function(e,t,n){var i=this,o=!0,a=e?["!",t]:t,r=e?"and":"or",s=i.options.selectionFilter||[];if((s=i._denormalizeFilter(s))&&s.length){i._removeSameFilter(s,t,e);var l=i._removeSameFilter(s,t,!e);l&&("or"!==l&&e||"and"!==l&&!e)&&(o=!1,s=[]),o&&(s=i._addFilterOperator(s,r))}o&&s.push(a),s=i._normalizeFilter(s),i._setOption("selectionFilter",e||s.length?s:null)},_normalizeFilter:function(e){return e&&1===e.length&&(e=e[0]),e},_removeSameFilter:function(e,t,n){t=n?["!",t]:t;var i=this._findSubFilter(e,t);if(JSON.stringify(t)===JSON.stringify(e))return e.splice(0,e.length),"undefined";if(i>=0)return i>0?e.splice(i-1,2)[0]:e.splice(i,2)[1]||"undefined";for(var o=0;o<e.length;o++){var a=Array.isArray(e[o])&&e[o].length>2&&this._removeSameFilter(e[o],t);if(a)return 1===e[o].length&&(e[o]=e[o][0]),a}},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)}})},function(e,t,n){var i=n(4),o=n(1),a=i.getKeyHash,r=n(41),s=n(6),l=n(280).SelectionFilterCreator,u=s.when,c=s.Deferred,d=n(18),h=n(231);e.exports=h.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 n,i,o,a=this.options.keyOf;if(a){var r=t&&e.length>1&&!this.options.equalByReference;for(r&&(n={}),o=0;o<e.length;o++){var s=e[o],l=a(s);t?(i=this.removeSelectedItem(l,n),n&&i>=0&&(n[i]=!0)):this.addSelectedItem(l,s)}r&&this._batchRemoveSelectedItems(n)}},_batchRemoveSelectedItems:function(e){var t=this.options.selectedItemKeys.slice(0),n=this.options.selectedItems.slice(0);this.options.selectedItemKeys.length=0,this.options.selectedItems.length=0;for(var i=0;i<t.length;i++)e[i]||(this.options.selectedItemKeys.push(t[i]),this.options.selectedItems.push(n[i]));this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_loadSelectedItemsCore:function(e,t,n){var i=new c,o=this.options.key();if(!e.length&&!n)return i.resolve([]),i;var a=this.options.filter();if(n&&t&&!a)return i.resolve(this.getSelectedItems()),i;var s=new l(e,n),u=s.getCombinedFilter(o,a),d=[];t&&(d=u?r(this.options.selectedItems).filter(u).toArray():this.options.selectedItems.slice(0));var h=d.length?d:this.options.plainItems().filter(this.options.isSelectableItem).map(this.options.getItemData),p=s.getLocalFilter(this.options.keyOf,this.equalKeys.bind(this),this.options.equalByReference,o);return h=h.filter(p),d.length||!n&&h.length===e.length?i.resolve(h):i=this._loadFilteredData(u,p),i},_replaceSelectionUpdate:function(e){var t=[],n=this.options.keyOf;if(n){for(var i=0;i<e.length;i++){var o=n(e[i]);t.push(o)}this.setSelectedItems(t,e)}},_warnOnIncorrectKeys:function(e){for(var t=0;t<e.length;t++)this.isItemKeySelected(e[t])||d.log("W1002",e[t])},_loadSelectedItems:function(e,t,n){var i=this,o=new c;return u(i._lastLoadDeferred).always(function(){i._loadSelectedItemsCore(e,t,n).done(o.resolve).fail(o.reject)}),i._lastLoadDeferred=o,o},selectedItemKeys:function(e,t,n,i){var o=this,a=o._loadSelectedItems(e,n,i);return a.done(function(e){t?o._preserveSelectionUpdate(e,n):o._replaceSelectionUpdate(e),o.onSelectionChanged()}),a},addSelectedItem:function(e,t){var n=this._getKeyHash(e);-1===this._indexOfSelectedItemKey(n)&&(!o.isObject(n)&&this.options.keyHashIndices&&(this.options.keyHashIndices[n]=[this.options.selectedItemKeys.length]),this.options.selectedItemKeys.push(e),this.options.addedItemKeys.push(e),this.options.addedItems.push(t),this.options.selectedItems.push(t))},_getSelectedIndexByKey:function(e,t){for(var n=this.options.selectedItemKeys,i=0;i<n.length;i++)if((!t||!t[i])&&this.equalKeys(n[i],e))return i;return-1},_getSelectedIndexByHash:function(e,t){var n=this.options.keyHashIndices[e];return n&&n.length>1&&t&&(n=n.filter(function(e){return!t[e]})),n&&n[0]>=0?n[0]:-1},_indexOfSelectedItemKey:function(e,t){return this.options.equalByReference?this.options.selectedItemKeys.indexOf(e):o.isObject(e)?this._getSelectedIndexByKey(e,t):this._getSelectedIndexByHash(e,t)},_shiftSelectedKeyIndices:function(e){for(var t=e;t<this.options.selectedItemKeys.length;t++){var n=this.options.selectedItemKeys[t],i=a(n),o=this.options.keyHashIndices[i];if(o)for(var r=0;r<o.length;r++)o[r]>e&&o[r]--}},removeSelectedItem:function(e,t){var n=this._getKeyHash(e),i=!!t,a=this._indexOfSelectedItemKey(n,t);if(a<0)return a;if(this.options.removedItemKeys.push(e),this.options.removedItems.push(this.options.selectedItems[a]),i)return a;if(this.options.selectedItemKeys.splice(a,1),this.options.selectedItems.splice(a,1),o.isObject(n)||!this.options.keyHashIndices)return a;var r=this.options.keyHashIndices[n];return r?(r.shift(),r.length||delete this.options.keyHashIndices[n],this._shiftSelectedKeyIndices(a),a):a},_updateAddedItemKeys:function(e,t){for(var n=0;n<e.length;n++)this.isItemKeySelected(e[n])||(this.options.addedItemKeys.push(e[n]),this.options.addedItems.push(t[n]))},_updateRemovedItemKeys:function(e,t,n){for(var i=0;i<t.length;i++)this.isItemKeySelected(t[i])||(this.options.removedItemKeys.push(t[i]),this.options.removedItems.push(n[i]))},_getKeyHash:function(e){return this.options.equalByReference?e:a(e)},setSelectedItems:function(e,t){this._updateAddedItemKeys(e,t);var n=this.options.selectedItemKeys,i=this.options.selectedItems;this.options.equalByReference||(this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(e)),this._setOption("selectedItemKeys",e),this._setOption("selectedItems",t),this._updateRemovedItemKeys(e,n,i)},isItemDataSelected:function(e){var t=this.options.keyOf(e);return this.isItemKeySelected(t)},isItemKeySelected:function(e){var t=this._getKeyHash(e);return-1!==this._indexOfSelectedItemKey(t)},getSelectAllState:function(e){return e?this._getVisibleSelectAllState():this._getFullSelectAllState()}})},function(e,t,n){var i=n(113),o=n(5),a=n(179);i.add(function(e){var t=e.slice(0,2)+e.charAt(2).toUpperCase()+e.slice(3);a.directive(t,["$parse",function(n){return function(i,a,r){var s,l=r[t].trim(),u={};"{"===l.charAt(0)?(u=i.$eval(l),s=n(u.execute)):s=n(r[t]),o.on(a,e,u,function(e){i.$apply(function(){s(i,{$event:e})})})}}])})},function(e,t,n){var i=n(25);n(179).service("dxDigestCallbacks",["$rootScope",function(e){var t=i(),n=i(),o=i(),a=!1;return e.$watch(function(){a||(a=!0,t.fire(),e.$$postDigest(function(){a=!1,n.fire(),o.fire()}))}),{begin:{add:function(e){a&&e(),t.add(e)},remove:t.remove.bind(t)},end:{add:o.add.bind(o),addPrioritized:n.add.bind(n),remove:o.remove.bind(o)}}}])},function(e,t,n){n(110).registerExecutor({ngExpression:{execute:function(e){"string"==typeof e.action&&e.context.$eval(e.action)}}})},function(e,t,n){var i=n(59);if(i){var o=n(21);if((0,n(61).compare)(i.version,[2,3])<0)throw o.Error("E0013");n(466),n(468),n(469),n(470),n(471),n(472),n(473)}},function(e,t,n){var i=n(2),o=n(59),a=n(25),r=n(21),s=n(32),l=n(1).isPlainObject,u=n(149),c=n(17),d=n(467),h=n(49),p=n(230),f=n(232).getClosestNodeWithContext,g=n(27),_="dxKoLocks",m=[];u.add(function(e,t){!function(e,t){t.subclassOf(h)&&m.push(e),o.bindingHandlers[e]={init:function(e,n){var u,h,m=i(e),v=a(),y={},b=g().knockout,x=b&&b.isBindingPropertyPredicateName,w={onInitializing:function(){y=this._getOptionsByReference(),o.computed(function(){var e=o.unwrap(n());u&&u.beginUpdate(),h=x&&e&&e[x],T(e),u&&u.endUpdate()},null,{disposeWhenNodeIsRemoved:e}),u=this},modelByElement:function(e){if(e.length){var t=f(e.get(0));return o.dataFor(t)}},nestedComponentOptions:function(e){return{modelByElement:e.option("modelByElement"),nestedComponentOptions:e.option("nestedComponentOptions")}},_optionChangedCallbacks:v,integrationOptions:{watchMethod:function(e,t,n){var i=(n=n||{}).skipImmediate,a=o.computed(function(){var n=o.unwrap(e());i||t(n),i=!1});return function(){a.dispose()}},templates:{"dx-polymorph-widget":{render:function(e){var t=o.utils.unwrapObservable(e.model.widget);if(t){if("button"===t||"tabs"===t||"dropDownMenu"===t){var n=t;t=s.camelize("dx-"+t),r.log("W0001","dxToolbar - 'widget' item field",n,"16.1","Use: '"+t+"' instead")}var a=i("<div>").attr("data-bind",t+": options").get(0);i(e.container).append(a),o.applyBindings(e.model,a)}}}},createTemplate:function(e){return new d(e)}}},C={},k=function(e,t,n){var i=m.data(_),a=n?o.unwrap(t):t;if(o.isWriteableObservable(t)&&(C[e]=t),u){if(i.locked(e))return;i.obtain(e);try{o.ignoreDependencies?o.ignoreDependencies(u.option,u,[e,a]):u.option(e,a)}finally{i.release(e)}}else w[e]=a},S=function(e){var t=e.fullName,n=e.value;if(t in C){var i=this._$element.data(_);if(!i.locked(t)){i.obtain(t);try{C[t](n)}finally{i.release(t)}}}},I=function(t,n,i){if(i!==x)if(!h||h(i,n,t)){var a;o.computed(function(){var e=t[n];k(i,e,!0),a=o.unwrap(e)},null,{disposeWhenNodeIsRemoved:e}),l(a)&&(y[i]||T(a,i))}else k(i,t[n],!1)},T=function(e,t){for(var n in e)e.hasOwnProperty(n)&&I(e,n,t?[t,n].join("."):n)};return v.add(S),m.data("dxKoCreation",!0).data(_,new p),new t(m,w),w=null,{controlsDescendantBindings:t.subclassOf(c)}}},"dxValidator"===e&&(o.bindingHandlers.dxValidator.after=m)}(e,t)})},function(e,t,n){var i=n(2),o=n(12),a=n(59),r=n(1),s=n(71),l=n(10),u=n(232).getClosestNodeWithContext,c=function(e){var t=o.createElement("div");a.applyBindingsToNode(t,null,e);var n=a.contextFor(t);return a.cleanNode(t),n},d=s.inherit({ctor:function(e){this._element=e,this._template=i("<div>").append(l.normalizeTemplateElement(e)),this._registerKoTemplate()},_registerKoTemplate:function(){var e=this._template.get(0);new a.templateSources.anonymousTemplate(e).nodes(e)},_prepareDataForContainer:function(e,t){if(t&&t.length){var n=t.get(0),i=u(n),o=a.contextFor(i);if(e=void 0!==e?e:a.dataFor(i)||{},o)return e===o.$data?o:o.createChildContext(e)}return c(e).createChildContext(e)},_renderCore:function(e){var t=this._prepareDataForContainer(e.model,i(e.container));r.isDefined(e.index)&&(t.$index=e.index);var n,o=i("<div>").appendTo(e.container);return a.renderTemplate(this._template.get(0),t,{afterRender:function(e){n=i(e)}},o.get(0),"replaceNode"),n},source:function(){return i(this._element).clone()},dispose:function(){this._template.remove()}});e.exports=d},function(e,t,n){var i=n(2),o=n(5),a=n(59),r=n(1).isPlainObject,s=n(113),l=n(9);s.add(function(e){var t=l.addNamespace(e,e+"Binding");a.bindingHandlers[e]={update:function(e,n,s,l){var u=i(e),c=a.utils.unwrapObservable(n()),d=c.execute?c.execute:c;o.off(u,t),o.on(u,t,r(c)?c:{},function(e){d.call(l,l,e)})}}})},function(e,t,n){var i=n(59),o=n(60);i.bindingHandlers.dxControlsDescendantBindings={init:function(e,t){return{controlsDescendantBindings:i.unwrap(t())}}},i.bindingHandlers.dxIcon={init:function(e,t){var n=i.utils.unwrapObservable(t())||{},a=o.getImageContainer(n);i.virtualElements.emptyNode(e),a&&i.virtualElements.prepend(e,a.get(0))},update:function(e,t){var n=i.utils.unwrapObservable(t())||{},a=o.getImageContainer(n);i.virtualElements.emptyNode(e),a&&i.virtualElements.prepend(e,a.get(0))}},i.virtualElements.allowedBindings.dxIcon=!0},function(e,t,n){var i=n(3).each,o=n(14),a=n(80),r=n(100),s=n(59),l=o.inherit({ctor:function(e,t){var n=this;n.target=e,n.validationRules=t.validationRules,n.name=t.name,n.isValid=s.observable(!0),n.validationError=s.observable(),i(this.validationRules,function(e,t){t.validator=n})},validate:function(){var e=r.validate(this.target(),this.validationRules,this.name);return this._applyValidationResult(e),e},reset:function(){this.target(null);var e={isValid:!0,brokenRule:null};return this._applyValidationResult(e),e},_applyValidationResult:function(e){e.validator=this,this.target.dxValidator.isValid(e.isValid),this.target.dxValidator.validationError(e.brokenRule),this.fireEvent("validated",[e])}}).include(a);s.extenders.dxValidator=function(e,t){return e.dxValidator=new l(e,t),e.subscribe(e.dxValidator.validate.bind(e.dxValidator)),e},r.registerModelForValidation=function(e){i(e,function(t,n){s.isObservable(n)&&n.dxValidator&&r.registerValidatorInGroup(e,n.dxValidator)})},r.unregisterModelForValidation=function(e){i(e,function(t,n){s.isObservable(n)&&n.dxValidator&&r.removeRegisteredValidator(e,n.dxValidator)})},r.validateModel=r.validateGroup},function(e,t,n){var i=n(59);n(74).inject({isWrapped:i.isObservable,isWritableWrapped:i.isWritableObservable,wrap:i.observable,unwrap:function(e){return i.isObservable(e)?i.utils.unwrapObservable(e):this.callBase(e)},assign:function(e,t){i.isObservable(e)?e(t):this.callBase(e,t)}})},function(e,t,n){var i=n(37),o=i.afterCleanData,a=i.strategyChanging,r=n(59),s=n(61).compare,l=r.utils.domNodeDisposal.cleanExternalData;o(function(e){for(var t=0;t<e.length;t++)e[t].cleanedByJquery=!0;for(t=0;t<e.length;t++)e[t].cleanedByKo||r.cleanNode(e[t]),delete e[t].cleanedByKo;for(t=0;t<e.length;t++)delete e[t].cleanedByJquery}),r.utils.domNodeDisposal.cleanExternalData=function(e){e.cleanedByKo=!0,e.cleanedByJquery||i.cleanData([e])},a.add(function(e){!!e.fn&&s(e.fn.jquery,[2,0])<0&&(o(function(){}),r.utils.domNodeDisposal.cleanExternalData=l)})},function(e,t,n){var i=n(59),o=n(61).compare,a=n(37).strategyChanging;a.add(function(e){!!e.fn&&o(e.fn.jquery,[2,0])<0&&function(e){var t=function(e,t){var n=function(){i.cleanNode(this)};t?e.each(n):e.find("*").each(n)},n=e.fn.empty;e.fn.empty=function(){return t(this,!1),n.apply(this,arguments)};var o=e.fn.remove;e.fn.remove=function(e,n){if(!n){var i=this;e&&(i=i.filter(e)),t(i,!0)}return o.call(this,e,n)};var a=e.fn.html;e.fn.html=function(e){return"string"==typeof e&&t(this,!1),a.apply(this,arguments)};var r=e.fn.replaceWith;e.fn.replaceWith=function(){var e=r.apply(this,arguments);return this.parent().length||t(this,!0),e}}(e)})},function(e,t,n){n(115);var i=n(69),o=n(15),a=n(85);if(n(69),i&&i.formatMessage){var r=i.loadMessages;i.loadMessages=function(e){o.load(e)};var s={ctor:function(){this.load(this._dictionary)},load:function(e){this.callBase(e),r(e)},getMessagesByLocales:function(){return i.cldr.get("globalize-messages")},getFormatter:function(e,t){var n=t||a.locale(),i=this._getFormatterBase(e,t);return i||(i=this._formatterByGlobalize(e,t)),i||"en"===n||(i=this.getFormatter(e,"en")),i},_formatterByGlobalize:function(e,t){var n,o=t&&t!==a.locale()?new i(t):i;return this._messageLoaded(e,t)&&(n=o.messageFormatter(e)),n},_messageLoaded:function(e,t){return!!(t?new i(t).cldr:i.locale()).get(["globalize-messages/{bundle}",e])},_loadSingle:function(e,t,n){var i={};i[n]={},i[n][e]=t,this.load(i)}};o.inject(s)}},function(e,t,n){n(115),n(181),n(69);var i=["skeleton","date","time","datetime","raw"],o=n(69),a=n(33),r=n(1).isObject,s=n(13).inArray,l=n(3);if(o&&o.formatDate){"en"===o.locale().locale&&(o.load({supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},weekData:{minDays:{"001":"1",US:"1",DE:"4"},firstDay:{"001":"mon",DE:"mon",RU:"mon",JP:"sun",US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}},{supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},timeData:{"001":{_allowed:"H h",_preferred:"H"},DE:{_allowed:"H",_preferred:"H"},JP:{_allowed:"H K h",_preferred:"H"},RU:{_allowed:"H",_preferred:"H"},US:{_allowed:"H h",_preferred:"h"}}}},{main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},dates:{calendars:{gregorian:{months:{format:{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},narrow:{1:"J",2:"F",3:"M",4:"A",5:"M",6:"J",7:"J",8:"A",9:"S",10:"O",11:"N",12:"D"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}},"stand-alone":{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},narrow:{1:"J",2:"F",3:"M",4:"A",5:"M",6:"J",7:"J",8:"A",9:"S",10:"O",11:"N",12:"D"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}}},days:{format:{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},short:{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}},"stand-alone":{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},short:{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}}},quarters:{format:{abbreviated:{1:"Q1",2:"Q2",3:"Q3",4:"Q4"},narrow:{1:"1",2:"2",3:"3",4:"4"},wide:{1:"1st quarter",2:"2nd quarter",3:"3rd quarter",4:"4th quarter"}},"stand-alone":{abbreviated:{1:"Q1",2:"Q2",3:"Q3",4:"Q4"},narrow:{1:"1",2:"2",3:"3",4:"4"},wide:{1:"1st quarter",2:"2nd quarter",3:"3rd quarter",4:"4th quarter"}}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{eraNames:{0:"Before Christ","0-alt-variant":"Before Common Era",1:"Anno Domini","1-alt-variant":"Common Era"},eraAbbr:{0:"BC","0-alt-variant":"BCE",1:"AD","1-alt-variant":"CE"},eraNarrow:{0:"B","0-alt-variant":"BCE",1:"A","1-alt-variant":"CE"}},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{d:"d",E:"ccc",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y"},appendItems:{Day:"{0} ({2}: {1})","Day-Of-Week":"{0} {1}",Era:"{0} {1}",Hour:"{0} ({2}: {1})",Minute:"{0} ({2}: {1})",Month:"{0} ({2}: {1})",Quarter:"{0} ({2}: {1})",Second:"{0} ({2}: {1})",Timezone:"{0} {1}",Week:"{0} ({2}: {1})",Year:"{0} {1}"},intervalFormats:{intervalFormatFallback:"{0} – {1}",d:{d:"d – d"},h:{a:"h a – h a",h:"h – h a"},H:{H:"HH – HH"},hm:{a:"h:mm a – h:mm a",h:"h:mm – h:mm a",m:"h:mm – h:mm a"},Hm:{H:"HH:mm – HH:mm",m:"HH:mm – HH:mm"},hmv:{a:"h:mm a – h:mm a v",h:"h:mm – h:mm a v",m:"h:mm – h:mm a v"},Hmv:{H:"HH:mm – HH:mm v",m:"HH:mm – HH:mm v"},hv:{a:"h a – h a v",h:"h – h a v"},Hv:{H:"HH – HH v"},M:{M:"M – M"},Md:{d:"M/d – M/d",M:"M/d – M/d"},MEd:{d:"E, M/d – E, M/d",M:"E, M/d – E, M/d"},MMM:{M:"MMM – MMM"},MMMd:{d:"MMM d – d",M:"MMM d – MMM d"},MMMEd:{d:"E, MMM d – E, MMM d",M:"E, MMM d – E, MMM d"},y:{y:"y – y"},yM:{M:"M/y – M/y",y:"M/y – M/y"},yMd:{d:"M/d/y – M/d/y",M:"M/d/y – M/d/y",y:"M/d/y – M/d/y"},yMEd:{d:"E, M/d/y – E, M/d/y",M:"E, M/d/y – E, M/d/y",y:"E, M/d/y – E, M/d/y"},yMMM:{M:"MMM – MMM y",y:"MMM y – MMM y"},yMMMd:{d:"MMM d – d, y",M:"MMM d – MMM d, y",y:"MMM d, y – MMM d, y"},yMMMEd:{d:"E, MMM d – E, MMM d, y",M:"E, MMM d – E, MMM d, y",y:"E, MMM d, y – E, MMM d, y"},yMMMM:{M:"MMMM – MMMM y",y:"MMMM y – MMMM y"}}}}}}}}}),o.locale("en"));var u={},c={shortdate:{path:"dateTimeFormats/availableFormats/yMd"},shorttime:{path:"timeFormats/short"},longdate:{path:"dateFormats/full"},longtime:{path:"timeFormats/medium"},monthandday:{path:"dateTimeFormats/availableFormats/MMMMd"},monthandyear:{path:"dateTimeFormats/availableFormats/yMMMM"},quarterandyear:{path:"dateTimeFormats/availableFormats/yQQQ"},day:{path:"dateTimeFormats/availableFormats/d"},year:{path:"dateTimeFormats/availableFormats/y"},shortdateshorttime:{path:"dateTimeFormats/short",parts:["shorttime","shortdate"]},mediumdatemediumtime:{path:"dateTimeFormats/medium",parts:["shorttime","monthandday"]},longdatelongtime:{path:"dateTimeFormats/medium",parts:["longtime","longdate"]},month:{pattern:"LLLL"},shortyear:{pattern:"yy"},dayofweek:{pattern:"EEEE"},quarter:{pattern:"QQQ"},millisecond:{pattern:"SSS"},hour:{pattern:"HH"},minute:{pattern:"mm"},second:{pattern:"ss"}},d={_getPatternByFormat:function(e){var t=this,n=e.toLowerCase(),i=c[n];if("datetime-local"===n)return"yyyy-MM-ddTHH':'mm':'ss";if(i){var o=i.path&&t._getFormatStringByPath(i.path)||i.pattern;return i.parts&&l.each(i.parts,function(e,n){o=o.replace("{"+e+"}",t._getPatternByFormat(n))}),o}},_getFormatStringByPath:function(e){return o.locale().main("dates/calendars/gregorian/"+e)},getPeriodNames:function(){var e=o.locale().main("dates/calendars/gregorian/dayPeriods/stand-alone/wide");return[e.am,e.pm]},getMonthNames:function(e,t){var n=o.locale().main("dates/calendars/gregorian/months/"+(t||"stand-alone")+"/"+(e||"wide"));return l.map(n,function(e){return e})},getDayNames:function(e){var t=o.locale().main("dates/calendars/gregorian/days/stand-alone/"+(e||"wide"));return l.map(t,function(e){return e})},getTimeSeparator:function(){return o.locale().main("numbers/symbols-numberSystem-latn/timeSeparator")},format:function(e,t){if(e){if(!t)return e;var n,i;if("function"==typeof t)return t(e);if(t.formatter)return t.formatter(e);if("string"==typeof(t=t.type||t))i=o.locale().locale+":"+t,(n=u[i])||(t={raw:this._getPatternByFormat(t)||t},n=u[i]=o.dateFormatter(t));else{if(!this._isAcceptableFormat(t))return;n=o.dateFormatter(t)}return n(e)}},parse:function(e,t){if(e){if(!t||"function"==typeof t||r(t)&&!this._isAcceptableFormat(t)){if(t){var n=this.callBase(e,t);if(n)return n}return o.parseDate(e)}return t.parser?t.parser(e):("string"==typeof t&&(t={raw:this._getPatternByFormat(t)||t}),o.parseDate(e,t))}},_isAcceptableFormat:function(e){if(e.parser)return!0;for(var t=0;t<i.length;t++)if(e.hasOwnProperty(i[t]))return!0},firstDayOfWeekIndex:function(){var e=o.locale().supplemental.weekData.firstDay();return s(e,this._getDayKeys())},_getDayKeys:function(){var e=o.locale().main("dates/calendars/gregorian/days/format/short");return l.map(e,function(e,t){return t})}};a.inject(d)}},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n(115),n(181),n(148),n(69);var o=n(69),a=n(27),r=n(51);if(o&&o.formatCurrency){"en"===o.locale().locale&&(o.load({main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},numbers:{currencies:{USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}}}}}},{supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},currencyData:{fractions:{DEFAULT:{_rounding:"0",_digits:"2"}}}}}),o.locale("en"));var s={},l=function(e,t){var n,a;return a="object"===(void 0===t?"undefined":i(t))?o.locale().locale+":"+e+":"+JSON.stringify(t):o.locale().locale+":"+e+":"+t,(n=s[a])||(n=s[a]=o.currencyFormatter(e,t)),n},u={_formatNumberCore:function(e,t,n){if("currency"===t){var i=n&&n.currency||a().defaultCurrency;return l(i,this._normalizeFormatConfig(t,n,e))(e)}return this.callBase.apply(this,arguments)},_normalizeFormatConfig:function(e,t,n){var i=this.callBase(e,t,n);return"currency"===e&&(i.style="accounting"),i},format:function(e,t){if("number"!=typeof e)return e;if(t=this._normalizeFormat(t)){if("default"===t.currency&&(t.currency=a().defaultCurrency),"currency"===t.type)return this._formatNumber(e,this._parseNumberFormatString("currency"),t);if(!t.type&&t.currency)return l(t.currency,t)(e)}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(e){return e||(e=a().defaultCurrency),o.cldr.main("numbers/currencies/"+e)},getOpenXmlCurrencyFormat:function(e){var t,n,i,a,r=this.getCurrencySymbol(e).symbol,s=o.cldr.main("numbers/currencyFormats-numberSystem-latn");if(s.accounting){for(a={".00":"{0}","'":"\\'","\\(":"\\(","\\)":"\\)"," ":"\\ ",'"':"&quot;","\\¤":r},n=s.accounting.split(";"),t=0;t<n.length;t++)for(i in a)a.hasOwnProperty(i)&&(n[t]=n[t].replace(new RegExp(i,"g"),a[i]));return 2===n.length?n[0]+"_);"+n[1]:n[0]}}};r.inject(u)}},function(e,t,n){e.exports=n(45).DataSource},function(e,t,n){var i=n(5),o=n(12),a=n(7).getWindow(),r=n(14),s=r.abstract,l=n(35).errors,u=n(68),c={dom:r.inherit({ctor:function(e,t){this._store=e,this._dirty=!!t.data,this.save();var n=this._immediate=t.immediate,r=Math.max(100,t.flushInterval||1e4);if(!n){var s=this.save.bind(this);setInterval(s,r),i.on(a,"beforeunload",s),a.cordova&&o.listen(o.getDocument(),"pause",s,!1)}},notifyChanged:function(){this._dirty=!0,this._immediate&&this.save()},load:function(){this._store._array=this._loadImpl(),this._dirty=!1},save:function(){this._dirty&&(this._saveImpl(this._store._array),this._dirty=!1)},_loadImpl:s,_saveImpl:s}).inherit({ctor:function(e,t){var n=t.name;if(!n)throw l.Error("E4013");this._key="dx-data-localStore-"+n,this.callBase(e,t)},_loadImpl:function(){var e=a.localStorage.getItem(this._key);return e?JSON.parse(e):[]},_saveImpl:function(e){e.length?a.localStorage.setItem(this._key,JSON.stringify(e)):a.localStorage.removeItem(this._key)}})},d=u.inherit({ctor:function(e){e="string"==typeof e?{name:e}:e||{},this.callBase(e),this._backend=new c[e.backend||"dom"](this,e),this._backend.load()},clear:function(){this.callBase(),this._backend.notifyChanged()},_insertImpl:function(e){var t=this._backend;return this.callBase(e).done(t.notifyChanged.bind(t))},_updateImpl:function(e,t){var n=this._backend;return this.callBase(e,t).done(n.notifyChanged.bind(n))},_removeImpl:function(e){var t=this._backend;return this.callBase(e).done(t.notifyChanged.bind(t))}},"local");e.exports=d},function(e,t,n){var i,o,a=n(21),r=n(7).getWindow(),s=n(234),l=function(e){this.config=e,i="ms-appx:"===r.location.protocol,o=function(e){return/^(localhost$|127\.)/i.test(e)}(r.location.hostname)};l.prototype={urlFor:function(e){var t=this.config[e];if(!t)throw a.Error("E0006");return s.isProxyUsed()?s.formatProxyUrl(t.local):t.production&&(i&&!Debug.debuggerEnabled||!i&&!o)?t.production:t.local}},e.exports=l},function(e,t,n){n(233),DevExpress.data.ODataStore=n(235),DevExpress.data.ODataContext=n(481),DevExpress.data.utils=DevExpress.data.utils||{},DevExpress.data.utils.odata={},DevExpress.data.utils.odata.keyConverters=n(101).keyConverters,DevExpress.data.EdmLiteral=n(101).EdmLiteral;var i=n(101);DevExpress.data.utils.odata.serializePropName=i.serializePropName,DevExpress.data.utils.odata.serializeValue=i.serializeValue,DevExpress.data.utils.odata.serializeKey=i.serializeKey,DevExpress.data.utils.odata.sendRequest=i.sendRequest,DevExpress.data.queryAdapters=DevExpress.data.queryAdapters||{},DevExpress.data.queryAdapters.odata=n(155).odata},function(e,t,n){var i=n(14),o=n(0).extend,a=n(1),r=n(3).each,s=n(35),l=n(235),u=n(236),c=n(6),d=c.when,h=c.Deferred;n(155);var p=i.inherit({ctor:function(e){var t=this;t._extractServiceOptions(e),t._errorHandler=e.errorHandler,r(e.entities||[],function(n,i){t[n]=new l(o({},e,{url:t._url+"/"+encodeURIComponent(i.name||n)},i))})},get:function(e,t){return this.invoke(e,t,"GET")},invoke:function(e,t,n){t=t||{},n=(n||"POST").toLowerCase();var i,o=new h,r=this._url+"/"+encodeURIComponent(e);return 4===this.version()&&("get"===n?(r=u.formatFunctionInvocationUrl(r,u.escapeServiceOperationParams(t,this.version())),t=null):"post"===n&&(i=t,t=null)),d(this._sendRequest(r,n,u.escapeServiceOperationParams(t,this.version()),i)).done(function(t){a.isPlainObject(t)&&e in t&&(t=t[e]),o.resolve(t)}).fail(this._errorHandler).fail(s._errorHandler).fail(o.reject),o.promise()},objectLink:function(e,t){var n=this[e];if(!n)throw s.errors.Error("E4015",e);return a.isDefined(t)?{__metadata:{uri:n._byKeyUrl(t,!0)}}:null}}).include(u.SharedMethods);e.exports=p},function(e,t,n){var i=n(171);n(211),n(483);var o=i.ui=n(485);o.themes=n(30),o.setTemplateEngine=n(486),o.dialog=n(237),o.notify=n(287),o.dxActionSheet=n(238),o.dxAutocomplete=n(488),o.dxBox=n(191),o.dxButton=n(34),o.dxDropDownButton=n(515),o.dxButtonGroup=n(298),o.dxCalendar=n(243),o.dxCheckBox=n(104),o.dxColorBox=n(299),o.dxDateBox=n(192),o.dxDrawer=n(303),o.dxDeferRendering=n(541),o.dxDropDownBox=n(542),o.dxDropDownMenu=n(195),o.dxFileUploader=n(543),o.dxForm=n(140),o.dxGallery=n(548),o.dxHtmlEditor=n(549),o.dxList=n(102),o.dxLoadIndicator=n(93),o.dxLoadPanel=n(189),o.dxLookup=n(572),o.dxMap=n(573),o.dxMultiView=n(308),o.dxNavBar=n(577),o.dxNumberBox=n(116),o.dxOverlay=n(58),o.dxPopover=n(138),o.dxPopup=n(46),o.dxProgressBar=n(245),o.dxRadioGroup=n(316),o.dxRangeSlider=n(580),o.dxResizable=n(174),o.dxResponsiveBox=n(306),o.dxScrollView=n(162),o.dxSelectBox=n(95),o.dxSlider=n(317),o.dxSpeedDialAction=n(582),o.dxSwitch=n(586),o.dxTabPanel=n(307),o.dxTabs=n(197),o.dxTagBox=n(320),o.dxTextArea=n(321),o.dxTextBox=n(92),o.dxTileView=n(587),o.dxToast=n(288),o.dxToolbar=n(163),o.dxTooltip=n(164),o.dxTrackBar=n(246),i.validationEngine=n(100),o.dxValidationSummary=n(247),o.dxValidationGroup=n(310),o.dxValidator=n(196),n(588),o.CollectionWidget=n(54),o.dxDropDownEditor=n(161),e.exports=o},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(171)),a=i(n(484));o.default.FileProviders=a.default,e.exports=a.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(129)),a=i(n(284)),r=i(n(285));e.exports=o.default.FileProviders=o.default.FileProviders||{},o.default.FileProviders.WebApi=a.default,o.default.FileProviders.OneDrive=r.default},function(e,t,n){n(129),e.exports=DevExpress.ui={},DevExpress.ui.templateRendered=n(71).renderedCallbacks},function(e,t,n){e.exports=n(185).setTemplateEngine},function(e,t,n){var i=function(e){return e&&e.__esModule?e:{default:e}}(n(54)),o=n(6),a=n(4),r=i.default.inherit({_initMarkup:function(){this._deferredItems=[],this.callBase()},_renderItemContent:function(e){var t=new o.Deferred,n=new o.Deferred;this._deferredItems[e.index]=n;var i=this.callBase.call(this,e);return n.done(function(){t.resolve(i)}),t.promise()},_createItemByTemplate:function(e,t){var n=this;return e.render({model:t.itemData,container:t.container,index:t.index,onRendered:function(){n._deferredItems[t.index].resolve()}})},_postProcessRenderItems:a.noop,_renderItemsAsync:function(){var e=this,t=new o.Deferred;return o.when.apply(this,this._deferredItems).done(function(){e._postProcessRenderItems(),t.resolve()}),t.promise()},_clean:function(){this.callBase(),this._deferredItems=[]}});e.exports=r},function(e,t,n){var i=n(2),o=n(4).noop,a=n(8),r=n(0).extend,s=n(239),l=n(6).Deferred,u=s.inherit({_supportedKeys:function(){var e=this._list?this._list.option("focusedElement"):null,t=this.callBase();return e=e&&i(e),r({},t,{upArrow:function(t){return t.preventDefault(),t.stopPropagation(),!(e&&!e.prev().length&&(this._clearFocusedItem(),1))},downArrow:function(t){return t.preventDefault(),t.stopPropagation(),!(e&&!e.next().length&&(this._clearFocusedItem(),1))},enter:function(){return e||this.close(),t.enter.apply(this,arguments),this.option("opened")}})},_getDefaultOptions:function(){return r(this.callBase(),{minSearchLength:1,maxItemCount:10,noDataText:"",showDropDownButton:!1,searchEnabled:!0})},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-autocomplete"),this.setAria("autocomplete","inline")},_loadValue:function(){return(new l).resolve(this.option("value"))},_displayGetterExpr:function(){return this.option("valueExpr")},_setSelectedItem:function(e){this.callBase(e),this.option("displayValue",this.option("value"))},_popupConfig:function(){return r(this.callBase(),{closeOnOutsideClick:function(e){return!i(e.target).closest(this.$element()).length}.bind(this)})},_renderDimensions:function(){this.callBase(),this._setPopupOption("width")},_popupWrapperClass:function(){return this.callBase()+" dx-autocomplete-popup-wrapper"},_listConfig:function(){return r(this.callBase(),{pageLoadMode:"none",indicateLoading:!1})},_listItemClickHandler:function(e){var t=this._displayGetter(e.itemData);this.option("value",t),this.close()},_setListDataSource:function(){this._list&&(this._list.option("selectedItems",[]),this.callBase())},_refreshSelected:o,_searchCanceled:function(){this.callBase(),this.close()},_dataSourceOptions:function(){return{paginate:!0}},_searchDataSource:function(){this._dataSource.pageSize(this.option("maxItemCount")),this.callBase(),this._clearFocusedItem()},_clearFocusedItem:function(){this._list&&(this._list.option("focusedElement",null),this._list.option("selectedIndex",-1))},_renderValueEventName:function(){return"input keyup"},_valueChangeEventHandler:function(e){var t=this._input().val()||null;return this.callBase(e,t)},_optionChanged:function(e){switch(e.name){case"maxItemCount":this._searchDataSource();break;case"valueExpr":this._compileDisplayGetter(),this._setListOption("displayExpr",this._displayGetterExpr()),this.callBase(e);break;default:this.callBase(e)}},reset:function(){this.callBase(),this.close()}});a("dxAutocomplete",u),e.exports=u},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},r=i(n(2)),s=i(n(5)),l=i(n(187)),u=i(n(34)),c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l.default),o(t,[{key:"_attachEvents",value:function(e){var t=this.editor;e.option("onClick",function(e){!t.option("openOnFieldClick")&&t._openHandler(e)}),s.default.on(e.$element(),"mousedown",function(e){e.preventDefault()})}},{key:"_create",value:function(){var e=this.editor,t=(0,r.default)("<div>"),n=this._getOptions();this._addToContainer(t);var i=e._createComponent(t,u.default,n);return this._legacyRender(e.$element(),t,n.visible),{$element:t,instance:i}}},{key:"_getOptions",value:function(){var e=this.editor,t=this._isVisible();return{focusStateEnabled:!1,hoverStateEnabled:!1,activeStateEnabled:!1,useInkRipple:!1,disabled:e.option("readOnly"),visible:t,template:e._getTemplateByOption("dropDownButtonTemplate")}}},{key:"_isVisible",value:function(){var e=this.editor;return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_isVisible",this).call(this)&&e.option("showDropDownButton")}},{key:"_legacyRender",value:function(e,t,n){e.toggleClass("dx-dropdowneditor-button-visible",n),t&&(t.removeClass("dx-button"),t.addClass("dx-dropdowneditor-button"))}},{key:"update",value:function(){if(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this)){var e=this.editor,n=this.instance,i=e.$element(),o=this._getOptions();n&&n.option(o),this._legacyRender(i,n&&n.$element(),o.visible)}}}]),t}();t.default=c},function(e,t,n){var i=n(2),o=n(7),a=o.getWindow(),r=o.getNavigator(),s=n(5),l=n(16),u=n(13).inArray,c=n(0).extend,d=n(8),h=n(289),p=n(9),f=r.userAgent,g=["backspace","tab","enter","pageUp","pageDown","end","home","leftArrow","rightArrow","downArrow","upArrow","del"],_="dx-searchbox",m=h.inherit({ctor:function(e,t){t&&(this._showClearButton=t.showClearButton),this.callBase.apply(this,arguments)},_getDefaultOptions:function(){return c(this.callBase(),{value:"",mode:"text",maxLength:null})},_initMarkup:function(){this.$element().addClass("dx-textbox"),this.callBase(),this.setAria("role","textbox")},_renderContentImpl:function(){this._renderMaxLengthHandlers(),this.callBase()},_renderInputType:function(){this.callBase(),this._renderSearchMode()},_renderMaxLengthHandlers:function(){this._isAndroid()&&(s.on(this._input(),p.addNamespace("keydown",this.NAME),this._onKeyDownAndroidHandler.bind(this)),s.on(this._input(),p.addNamespace("change",this.NAME),this._onChangeAndroidHandler.bind(this)))},_renderProps:function(){this.callBase(),this._toggleMaxLengthProp()},_toggleMaxLengthProp:function(){if(!this._isAndroid()){var e=this.option("maxLength");e>0?this._input().attr("maxLength",e):this._input().removeAttr("maxLength")}},_renderSearchMode:function(){var e=this._$element;"search"===this.option("mode")?(e.addClass(_),this._renderSearchIcon(),void 0===this._showClearButton&&(this._showClearButton=this.option("showClearButton"),this.option("showClearButton",!0))):(e.removeClass(_),this._$searchIcon&&this._$searchIcon.remove(),this.option("showClearButton",void 0===this._showClearButton?this.option("showClearButton"):this._showClearButton),delete this._showClearButton)},_renderSearchIcon:function(){var e=i("<div>").addClass("dx-icon").addClass("dx-icon-search");e.prependTo(this._input().parent()),this._$searchIcon=e},_optionChanged:function(e){switch(e.name){case"maxLength":this._toggleMaxLengthProp(),this._renderMaxLengthHandlers();break;default:this.callBase(e)}},_onKeyDownAndroidHandler:function(e){var t=this.option("maxLength");if(t){var n=i(e.target),o=p.normalizeKeyName(e);return this._cutOffExtraChar(n),n.val().length<t||-1!==u(o,g)||""!==a.getSelection().toString()}return!0},_onChangeAndroidHandler:function(e){var t=i(e.target);this.option("maxLength")&&this._cutOffExtraChar(t)},_cutOffExtraChar:function(e){var t=this.option("maxLength"),n=e.val();n.length>t&&e.val(n.substr(0,t))},_isAndroid:function(){var e=l.real(),t=e.version.join(".");return"android"===e.platform&&t&&/^(2\.|4\.1)/.test(t)&&!/chrome/i.test(f)}});d("dxTextBox",m),e.exports=m},function(e,t,n){var i=n(2),o=n(290),a=n(10),r=n(3).each,s=n(9),l=n(5),u=n(0).extend,c=n(64).focused,d=n(13).inArray,h=n(1).isDefined,p=n(15),f=n(4).noop,g=n(43),_=n(127),m=n(492),v=n(493),y=function(){return{}},b=" ",x="dx-texteditor-masked",w="dxMask",C="forward",k="backward",S={0:/[0-9]/,9:/[0-9\s]/,"#":/[-+0-9\s]/,L:function(e){return T(e)},l:function(e){return T(e)||D(e)},C:/\S/,c:/./,A:function(e){return T(e)||I(e)},a:function(e){return T(e)||I(e)||D(e)}},I=function(e){return/[0-9]/.test(e)},T=function(e){var t=e.charCodeAt();return 64<t&&t<91||96<t&&t<123||t>127},D=function(e){return" "===e},E=v.inherit({_getDefaultOptions:function(){return u(this.callBase(),{mask:"",maskChar:"_",maskRules:{},maskInvalidMessage:p.format("validation-mask"),useMaskedValue:!1,showMaskMode:"always"})},_supportedKeys:function(){var e=this,t={backspace:e._maskBackspaceHandler,del:e._maskDelHandler,enter:e._changeHandler},n=e.callBase();return r(t,function(t,i){var o=n[t];n[t]=function(t){e.option("mask")&&i.call(e,t),o&&o(t)}}),n},_getSubmitElement:function(){return this.option("mask")?this._$hiddenElement:this.callBase()},_initMarkup:function(){this._renderHiddenElement(),this.callBase()},_attachMouseWheelEventHandlers:function(){if(this._onMouseWheel!==f){var e=this._input(),t=s.addNamespace(_.name,this.NAME),n=this._createAction(function(t){if(c(e)){var n=t.event;this._onMouseWheel(n),n.preventDefault(),n.stopPropagation()}}.bind(this));l.off(e,t),l.on(e,t,function(e){n({event:e})})}},_onMouseWheel:f,_render:function(){this.callBase(),this._renderMask(),this._attachMouseWheelEventHandlers()},_renderHiddenElement:function(){this.option("mask")&&(this._$hiddenElement=i("<input>").attr("type","hidden").appendTo(this._inputWrapper()))},_removeHiddenElement:function(){this._$hiddenElement&&this._$hiddenElement.remove()},_renderMask:function(){this.$element().removeClass(x),this._maskRulesChain=null,this._detachMaskEventHandlers(),this.option("mask")&&(this.$element().addClass(x),this._attachMaskEventHandlers(),this._parseMask(),this._renderMaskedValue(),this._changedValue=this._input().val())},_attachMaskEventHandlers:function(){var e=this._input();l.on(e,s.addNamespace("focusin",w),this._maskFocusHandler.bind(this)),l.on(e,s.addNamespace("focusout",w),this._maskBlurHandler.bind(this)),l.on(e,s.addNamespace("keydown",w),this._maskKeyDownHandler.bind(this)),l.on(e,s.addNamespace("keypress",w),this._maskKeyPressHandler.bind(this)),l.on(e,s.addNamespace("input",w),this._maskInputHandler.bind(this)),l.on(e,s.addNamespace("paste",w),this._maskPasteHandler.bind(this)),l.on(e,s.addNamespace("cut",w),this._maskCutHandler.bind(this)),l.on(e,s.addNamespace("drop",w),this._maskDragHandler.bind(this)),this._attachChangeEventHandlers()},_detachMaskEventHandlers:function(){l.off(this._input(),"."+w)},_attachChangeEventHandlers:function(){-1!==d("change",this.option("valueChangeEvent").split(" "))&&l.on(this._input(),s.addNamespace("blur beforedeactivate",w),function(e){this._suppressCaretChanging(this._changeHandler,[e]),this._changeHandler(e)}.bind(this))},_suppressCaretChanging:function(e,t){var n=o;o=y;try{e.apply(this,t)}finally{o=n}},_changeHandler:function(e){var t=this._input(),n=t.val();if(n!==this._changedValue){this._changedValue=n;var i=s.createEvent(e,{type:"change"});l.trigger(t,i)}},_parseMask:function(){this._maskRules=u({},S,this.option("maskRules")),this._maskRulesChain=this._parseMaskRule(0)},_parseMaskRule:function(e){var t=this.option("mask");if(e>=t.length)return new m.EmptyMaskRule;var n=t[e],i="\\"===n,o=i?new m.StubMaskRule({maskChar:t[e+1]}):this._getMaskRule(n);return o.next(this._parseMaskRule(e+1+i)),o},_getMaskRule:function(e){var t;return r(this._maskRules,function(n,i){if(n===e)return t={pattern:n,allowedChars:i},!1}),h(t)?new m.MaskRule(u({maskChar:this.option("maskChar")},t)):new m.StubMaskRule({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,n){return void 0===n?e:e.slice(0,t.start)+n+e.slice(t.end)},_isMaskedValueMode:function(){return this.option("useMaskedValue")},_displayMask:function(e){e=e||this._caret(),this._renderValue(),this._caret(e)},_isValueEmpty:function(){return g.isEmpty(this._value)},_shouldShowMask:function(){return"onFocus"!==this.option("showMaskMode")||c(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){var e=this._maskRulesChain.text();if(this._showMaskPlaceholder(),this._$hiddenElement){var t=this._maskRulesChain.value(),n=this._isMaskedValueMode()?e:t;this._$hiddenElement.val(g.isEmpty(t)?"":n)}}return this.callBase()},_valueChangeEventHandler:function(e){return this._maskRulesChain?(this._saveValueChangeEvent(e),void this.option("value",this._convertToValue().replace(/\s+$/,""))):void this.callBase.apply(this,arguments)},_maskFocusHandler:function(){if(this._showMaskPlaceholder(),this._direction(C),!this._isValueEmpty()&&this.option("isValid"))this._adjustCaret();else{var e=this._maskRulesChain.first();this._caretTimeout=setTimeout(function(){this._caret({start:e,end:e})}.bind(this),0)}},_maskBlurHandler:function(){"onFocus"===this.option("showMaskMode")&&this._isValueEmpty()&&(this.option("text",""),this._renderDisplayText(""))},_maskKeyDownHandler:function(){this._keyPressHandled=!1},_maskKeyPressHandler:function(e){this._keyPressHandled||(this._keyPressHandled=!0,this._isControlKeyFired(e)||this._maskKeyHandler(e,function(){return this._handleKey(s.getChar(e)),!0}))},_maskInputHandler:function(e){if(this._backspaceInputHandled(e.originalEvent&&e.originalEvent.inputType)&&this._handleBackspaceInput(e),!this._keyPressHandled){this._keyPressHandled=!0;var t=this._input().val(),n=this._caret();if(n.end){n.start=n.end-1;var i=t.substring(0,n.start)+t.substring(n.end),o=t[n.start];this._input().val(i),this._inputHandlerTimer=setTimeout(function(){this._caret({start:n.start,end:n.start}),this._maskKeyHandler(e,function(){return this._handleKey(o),!0})}.bind(this))}}},_backspaceInputHandled:function(e){return"deleteContentBackward"===e&&!this._keyPressHandled},_handleBackspaceInput:function(e){var t=this._caret();this._caret({start:t.start+1,end:t.end+1}),this._maskBackspaceHandler(e)},_isControlKeyFired:function(e){return this._isControlKey(s.normalizeKeyName(e))||e.ctrlKey||e.metaKey},_maskBackspaceHandler:function(e){var t=this;t._keyPressHandled=!0;var n=function(e,n){e&&(t._direction(C),t._adjustCaret());var i=t._caret();clearTimeout(t._backspaceHandlerTimeout),t._backspaceHandlerTimeout=setTimeout(function(){n(i)})};t._maskKeyHandler(e,function(){return t._hasSelection()?void n(!0,function(e){t._displayMask(e),t._maskRulesChain.reset()}):t._tryMoveCaretBackward()?void n(!1,function(e){t._caret(e)}):(t._handleKey(b,k),void n(!0,function(e){t._displayMask(e),t._maskRulesChain.reset()}))})},_maskDelHandler:function(e){this._keyPressHandled=!0,this._maskKeyHandler(e,function(){return!this._hasSelection()&&this._handleKey(b),!0})},_maskPasteHandler:function(e){this._keyPressHandled=!0;var t=this._caret();this._maskKeyHandler(e,function(){var n=a.clipboardText(e),i=this._maskRulesChain.text().substring(t.end),o=this._handleChain({text:n,start:t.start,length:n.length}),r=t.start+o;return this._handleChain({text:i,start:r,length:i.length}),this._caret({start:r,end:r}),!0})},_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||{}).index=0,e.fullText=this._maskRulesChain.text(),e},_maskCutHandler:function(e){var t=this._caret(),n=this._input().val().substring(t.start,t.end);this._maskKeyHandler(e,function(){return a.clipboardText(e,n),!0})},_maskDragHandler:function(){this._clearDragTimer(),this._dragTimer=setTimeout(function(){this.option("value",this._convertToValue(this._input().val()))}.bind(this))},_convertToValue:function(e){return this._isMaskedValueMode()?(e||this._textValue||"").replace(new RegExp(this.option("maskChar"),"g"),b):e||this._value||""},_maskKeyHandler:function(e,t){this.option("readOnly")||(this._direction(C),e.preventDefault(),this._handleSelection(),t.call(this)&&(this._direction(C),this._adjustCaret(),this._displayMask(),this._maskRulesChain.reset()))},_handleKey:function(e,t){this._direction(t||C),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(b);this._handleKeyChain(t)}},_handleKeyChain:function(e){var t=this._caret(),n=this._isForwardDirection()?t.start:t.start-1,i=this._isForwardDirection()?t.end:t.end-1,o=n===i?1:i-n;this._handleChain({text:e,start:n,length:o})},_tryMoveCaretBackward:function(){this._direction(k);var e=this._caret().start;return this._adjustCaret(),!e||e!==this._caret().start},_adjustCaret:function(e){var t=this._maskRulesChain.adjustedCaret(this._caret().start,this._isForwardDirection(),e);this._caret({start:t,end:t})},_moveCaret:function(){var e=this._caret().start,t=e+(this._isForwardDirection()?0:-1),n=this._maskRulesChain.isAccepted(t)?e+(this._isForwardDirection()?1:-1):e;this._caret({start:n,end:n})},_caret:function(e){return arguments.length?void o(this._input(),e):o(this._input())},_hasSelection:function(){var e=this._caret();return e.start!==e.end},_direction:function(e){return arguments.length?void(this._typingDirection=e):this._typingDirection},_isForwardDirection:function(){return this._direction()===C},_clearDragTimer:function(){clearTimeout(this._dragTimer)},_clean:function(){this._clearDragTimer(),this.callBase()},_validateMask:function(){if(this._maskRulesChain){var e=this._maskRulesChain.isValid(this._normalizeChainArguments());this.option({isValid:e,validationError:e?null:{editorSpecific:!0,message:this.option("maskInvalidMessage")}})}},_dispose:function(){clearTimeout(this._inputHandlerTimer),clearTimeout(this._backspaceHandlerTimeout),clearTimeout(this._caretTimeout),this.callBase()},_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);break;case"maskInvalidMessage":break;case"showMaskMode":this.option("text",""),this._renderValue();break;default:this.callBase(e)}}});e.exports=E},function(e,t,n){var i=n(14),o=n(0).extend,a=n(13).inArray,r=n(1),s=n(4).noop,l=r.isFunction,u=" ",c=i.inherit({ctor:function(e){this._value=u,o(this,e)},next:function(e){return arguments.length?void(this._next=e):this._next},text:s,value:s,rawValue:s,handle:s,_prepareHandlingArgs:function(e,t){t=t||{};var n=e.hasOwnProperty("value")?"value":"text";return e[n]=r.isDefined(t.str)?t.str:e[n],e.start=r.isDefined(t.start)?t.start:e.start,e.length=r.isDefined(t.length)?t.length:e.length,e.index=e.index+1,e},reset:s,clear:s,first:function(e){return e=e||0,this.next().first(e+1)},isAccepted:function(){return!1},adjustedCaret:function(e,t,n){return t?this._adjustedForward(e,0,n):this._adjustedBackward(e,0,n)},_adjustedForward:s,_adjustedBackward:s,isValid:s}),d=c.inherit({next:s,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}}),h=c.inherit({text:function(){return(this._value!==u?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=e.hasOwnProperty("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 n=t[0],i=t.substring(1);return this._tryAcceptChar(n,e),this._accepted()?this.next().handle(this._prepareHandlingArgs(e,{str:i,length:e.length-1}))+1:this.handle(this._prepareHandlingArgs(e,{str:i,length:e.length-1}))},clear:function(e){this._tryAcceptChar(u,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 n=e===u?this.maskChar:e;t.fullText=t.fullText.substring(0,t.index)+n+t.fullText.substring(t.index+1),this._accepted(!0),this._value=e}},_accepted:function(e){return arguments.length?void(this._isAccepted=!!e):!!this._isAccepted},first:function(e){return this._value===u?e||0:this.callBase(e)},_isAllowed:function(e,t){return e===u||this._isValid(e,t)},_isValid:function(e,t){var n=this.allowedChars;return n instanceof RegExp?n.test(e):l(n)?n(e,t.index,t.fullText):Array.isArray(n)?a(e,n)>-1:n===e},isAccepted:function(e){return 0===e?this._accepted():this.next().isAccepted(e-1)},_adjustedForward:function(e,t,n){return t>=e?t:this.next()._adjustedForward(e,t+1,n)||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))}}),p=h.inherit({value:function(){return this.next().value()},handle:function(e){var t=e.hasOwnProperty("value"),n=t?e.value:e.text;if(!n.length||!e.length)return 0;if(e.start||t)return this.next().handle(this._prepareHandlingArgs(e,{start:e.start&&e.start-1}));var i=n[0],o=n.substring(1);this._tryAcceptChar(i);var a=this._isAllowed(i)?this._prepareHandlingArgs(e,{str:o,length:e.length-1}):e;return this.next().handle(a)+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,n){return t>=e&&n===this.maskChar?t:e===t+1&&this._accepted()?e:this.next()._adjustedForward(e,t+1,n)},_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))}});e.exports.MaskRule=h,e.exports.StubMaskRule=p,e.exports.EmptyMaskRule=d},function(e,t,n){function i(e){if(u(e)&&!Array.isArray(e))throw b.Error("E1053")}var o=n(2),a=n(12),r=n(5),s=n(10),l=n(64).focused,u=n(1).isDefined,c=n(0).extend,d=n(13).inArray,h=n(3).each,p=n(30),f=n(49),g=n(9),_=n(24),m=n(494).default,v=n(495).default,y=n(27),b=n(18),x=n(6).Deferred,w="dx-texteditor-input",C="dx-editor-",k=[C+"outlined",C+"filled",C+"underlined"],S=["KeyDown","KeyPress","KeyUp","Change","Cut","Copy","Paste","Input"],I=["tab","enter","shift","control","alt","escape","pageUp","pageDown","end","home","leftArrow","upArrow","rightArrow","downArrow"],T=f.inherit({ctor:function(e,t){t&&i(t.buttons),this._buttonCollection=new v(this,this._getDefaultButtons()),this._$beforeButtonsContainer=null,this._$afterButtonsContainer=null,this.callBase.apply(this,arguments)},_getDefaultOptions:function(){return c(this.callBase(),{buttons:void 0,value:"",spellcheck:!1,showClearButton:!1,valueChangeEvent:"change",placeholder:"",inputAttr:{},onFocusIn:null,onFocusOut:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onChange:null,onInput:null,onCut:null,onCopy:null,onPaste:null,onEnterKey:null,mode:"text",hoverStateEnabled:!0,focusStateEnabled:!0,text:void 0,valueFormat:function(e){return u(e)&&!1!==e?e:""},stylingMode:y().editorStylingMode||"outlined"})},_defaultOptionsRules:function(){var e=p.current();return this.callBase().concat([{device:function(){return p.isMaterial(e)},options:{stylingMode:y().editorStylingMode||"underlined"}}])},_getDefaultButtons:function(){return[{name:"clear",Ctor:m}]},_isClearButtonVisible:function(){return this.option("showClearButton")&&!this.option("readOnly")},_input:function(){return this.$element().find(".dx-texteditor-input").first()},_isFocused:function(){return l(this._input())||this.callBase()},_inputWrapper:function(){return this.$element()},_buttonsContainer:function(){return this._inputWrapper().find(".dx-texteditor-buttons-container").eq(0)},_isControlKey:function(e){return-1!==I.indexOf(e)},_renderStylingMode:function(){var e=this,t="stylingMode",n=this.option(t);k.forEach(function(t){return e.$element().removeClass(t)});var i=C+n;if(-1===k.indexOf(i)){var o=this._getDefaultOptions()[t],a=this._convertRulesToOptions(this._defaultOptionsRules())[t];i=C+(a||o)}this.$element().addClass(i),this._updateButtonsStyling(n)},_initMarkup:function(){this.$element().addClass("dx-texteditor"),this._renderInput(),this._renderStylingMode(),this._renderInputType(),this._renderPlaceholder(),this._renderProps(),this.callBase(),this._renderValue()},_render:function(){this._renderPlaceholder(),this._refreshValueChangeEvent(),this._renderEvents(),this._renderEnterKeyAction(),this._renderEmptinessEvent(),this.callBase()},_renderInput:function(){var e=this.option("buttons"),t=o("<div>").addClass("dx-texteditor-container").appendTo(this.$element());this._$beforeButtonsContainer=this._buttonCollection.renderBeforeButtons(e,t),this._$textEditorInputContainer=o("<div>").addClass("dx-texteditor-input-container").appendTo(t),this._$textEditorInputContainer.append(this._createInput()),this._$afterButtonsContainer=this._buttonCollection.renderAfterButtons(e,t)},_clean:function(){this._buttonCollection.clean(),this._$beforeButtonsContainer=null,this._$afterButtonsContainer=null,this.callBase()},_createInput:function(){var e=o("<input>");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){e.attr("autocomplete","off").attr(t).addClass(w).css("minHeight",this.option("height")?"0":"")},_updateButtons:function(e){this._buttonCollection.updateButtons(e)},_updateButtonsStyling:function(e){var t=this;h(this.option("buttons"),function(n,i){if(i.options&&!i.options.stylingMode){var o=t.getButton(i.name);o.option&&o.option("stylingMode","underlined"===e?"text":"contained")}})},_renderValue:function(){return this._renderInputValue().promise()},_renderInputValue:function(e){e=e||this.option("value");var t=this.option("text"),n=this.option("displayValue"),i=this.option("valueFormat");return void 0!==n&&null!==e?t=i(n):u(t)||(t=i(e)),this.option("text",t),this._input().val()!==(u(t)?t:"")?this._renderDisplayText(t):this._toggleEmptinessEventHandler(),(new x).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("dx-texteditor-empty",e),this._togglePlaceholder(e)},_togglePlaceholder:function(e){this._$placeholder&&this._$placeholder.toggleClass("dx-state-invisible",!e)},_renderProps:function(){this._toggleReadOnlyState(),this._toggleSpellcheckState(),this._toggleTabIndex()},_toggleDisabledState:function(e){this.callBase.apply(this,arguments);var t=this._input();e?t.attr("disabled",!0):t.removeAttr("disabled")},_toggleTabIndex:function(){var e=this._input(),t=this.option("disabled"),n=this.option("focusStateEnabled");t||!n?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"))},_renderPlaceholder:function(){this._renderPlaceholderMarkup(),this._attachPlaceholderEvents()},_renderPlaceholderMarkup:function(){this._$placeholder&&(this._$placeholder.remove(),this._$placeholder=null);var e=this._input(),t=this.option("placeholder"),n=this._$placeholder=o("<div>").attr("data-dx_placeholder",t);n.insertAfter(e),n.addClass("dx-placeholder")},_attachPlaceholderEvents:function(){var e=this,t=g.addNamespace(_.up,e.NAME);r.on(e._$placeholder,t,function(){r.trigger(e._input(),"focus")}),e._toggleEmptinessEventHandler()},_placeholder:function(){return this._$placeholder||o()},_clearValueHandler:function(e){var t=this._input();e.stopPropagation(),this._saveValueChangeEvent(e),this.reset(),!this._isFocused()&&r.trigger(t,"focus"),r.trigger(t,"input")},_renderEvents:function(){var e=this,t=e._input();h(S,function(n,i){if(e.hasActionSubscription("on"+i)){var o=e._createActionByOption("on"+i,{excludeValidators:["readOnly"]});r.on(t,g.addNamespace(i.toLowerCase(),e.NAME),function(t){e._disposed||o({event:t})})}})},_refreshEvents:function(){var e=this,t=this._input();h(S,function(n,i){r.off(t,g.addNamespace(i.toLowerCase(),e.NAME))}),this._renderEvents()},_keyPressHandler:function(){this.option("text",this._input().val())},_renderValueChangeEvent:function(){var e=g.addNamespace(this._renderValueEventName(),this.NAME+"TextChange"),t=g.addNamespace(this.option("valueChangeEvent"),this.NAME+"ValueChange");r.on(this._input(),e,this._keyPressHandler.bind(this)),r.on(this._input(),t,this._valueChangeEventHandler.bind(this))},_cleanValueChangeEvent:function(){var e=this.NAME+"ValueChange",t=g.addNamespace(this._renderValueEventName(),this.NAME+"TextChange");r.off(this._input(),"."+e),r.off(this._input(),t)},_refreshValueChangeEvent:function(){this._cleanValueChangeEvent(),this._renderValueChangeEvent()},_renderValueEventName:function(){return"input change keypress"},_focusTarget:function(){return this._input()},_focusClassTarget:function(){return this.$element()},_toggleFocusClass:function(e,t){this.callBase(e,this._focusClassTarget(t))},_hasFocusClass:function(e){return this.callBase(o(e||this.$element()))},_renderEmptinessEvent:function(){var e=this._input();r.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._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"]}),r.off(this._input(),"keyup.onEnterKey.dxTextEditor"),r.on(this._input(),"keyup.onEnterKey.dxTextEditor",this._enterKeyHandlerUp.bind(this))},_enterKeyHandlerUp:function(e){this._disposed||"enter"===g.normalizeKeyName(e)&&this._enterKeyAction({event:e})},_updateValue:function(){this.option("text",void 0),this._renderValue()},_dispose:function(){this._enterKeyAction=void 0,this.callBase()},_getSubmitElement:function(){return this._input()},_optionChanged:function(e){var t=e.name;if(d(t.replace("on",""),S)>-1)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"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(),e.value);break;case"stylingMode":this._renderStylingMode();break;case"buttons":e.fullName===e.name&&i(e.value),this._invalidate();break;case"valueFormat":this._invalidate();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(e){t.prop("type","text")}},getButton:function(e){return this._buttonCollection.getButton(e)},focus:function(){r.trigger(this._input(),"focus")},blur:function(){this._input().is(a.getActiveElement())&&s.resetActiveElement()},reset:function(){var e=this._getDefaultOptions();this.option("value")===e.value?(this.option("text",""),this._renderValue()):this.option("value",e.value)},on:function(e,t){var n=this.callBase(e,t),i=e.charAt(0).toUpperCase()+e.substr(1);return S.indexOf(i)>=0&&this._refreshEvents(),n}});e.exports=T},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=i(n(2)),r=i(n(5)),s=i(n(187)),l=n(9),u=n(24),c=n(19),d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),o(t,[{key:"_create",value:function(){var e=(0,a.default)("<span>").addClass("dx-clear-button-area").append((0,a.default)("<span>").addClass("dx-icon").addClass("dx-icon-clear"));return this._addToContainer(e),this.update(!0),{instance:e,$element:e}}},{key:"_isVisible",value:function(){return this.editor._isClearButtonVisible()}},{key:"_attachEvents",value:function(e,t){var n=this.editor,i=n.NAME;r.default.on(t,(0,l.addNamespace)(u.down,i),function(e){"mouse"===e.pointerType&&e.preventDefault()}),r.default.on(t,(0,l.addNamespace)(c.name,i),function(e){return n._clearValueHandler(e)})}},{key:"_legacyRender",value:function(e,t){e.toggleClass("dx-show-clear-button",t)}},{key:"update",value:function(){!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this);var e=this.editor,n=this.instance,i=e.$element(),o=this._isVisible();n&&n.toggleClass("dx-state-invisible",!o),this._legacyRender(i,o)}}]),t}();t.default=d},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e){(function(){if(!e||"object"!==(void 0===e?"undefined":s(e))||Array.isArray(e))throw h.default.Error("E1053")})(),function(){if(!("name"in e))throw h.default.Error("E1054")}(),function(){if("string"!=typeof e.name)throw h.default.Error("E1055")}(),function(){var t=e.location;"location"in e&&"after"!==t&&"before"!==t&&(e.location="after")}()}function a(e,t){if(-1!==e.indexOf(t))throw h.default.Error("E1055",t);e.push(t)}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=i(n(2)),u=i(n(496)),c=n(0),d=n(13),h=i(n(18)),p=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.buttons=[],this.defaultButtonsInfo=n,this.editor=t}return r(e,[{key:"_compileButtonInfo",value:function(e){var t=this,n=[];return e.map(function(e){var i="string"==typeof e;if(i||o(e),i||function(e,t){return!!(0,d.find)(t,function(t){return t.name===e})}(e.name,t.defaultButtonsInfo)){var r=(0,d.find)(t.defaultButtonsInfo,function(t){var n=t.name;return n===e||n===e.name});if(!r)throw h.default.Error("E1056",t.editor.NAME,e);return a(n,e),r}var s=e.name;return a(n,s),(0,c.extend)(e,{Ctor:u.default})})}},{key:"_createButton",value:function(e){var t=e.Ctor,n=e.options,i=new t(e.name,this.editor,n);return this.buttons.push(i),i}},{key:"_renderButtons",value:function(e,t,n){var i=this,o=null,a=e?this._compileButtonInfo(e):this.defaultButtonsInfo,r=function(){return o=o||(0,l.default)("<div>").addClass("dx-texteditor-buttons-container").appendTo(t)};return a.forEach(function(e){var t=e.location;(void 0===t?"after":t)===n&&i._createButton(e).render(r())}),o}},{key:"clean",value:function(){this.buttons.forEach(function(e){return e.dispose()}),this.buttons=[]}},{key:"getButton",value:function(e){var t=(0,d.find)(this.buttons,function(t){return t.name===e});return t&&t.instance}},{key:"renderAfterButtons",value:function(e,t){return this._renderButtons(e,t,"after")}},{key:"renderBeforeButtons",value:function(e,t){return this._renderButtons(e,t,"before")}},{key:"updateButtons",value:function(e){this.buttons.forEach(function(t){e&&-1===e.indexOf(t.name)||t.update()})}}]),e}();t.default=p},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=i(n(2)),r=i(n(187)),s=i(n(34)),l=n(0),u=i(n(5)),c=i(n(134)),d=i(n(19)),h="dx-custom-button-hovered",p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),o(t,[{key:"_attachEvents",value:function(e,t){var n=this.editor;u.default.on(t,c.default.start,function(){n.$element().addClass(h)}),u.default.on(t,c.default.end,function(){n.$element().removeClass(h)}),u.default.on(t,d.default.name,function(e){e.stopPropagation()})}},{key:"_create",value:function(){var e=this.editor,t=(0,a.default)("<div>");return this._addToContainer(t),{$element:t,instance:e._createComponent(t,s.default,(0,l.extend)({},this.options,{disabled:this._isDisabled()}))}}},{key:"update",value:function(){var e=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this);return this.instance&&this.instance.option("disabled",this._isDisabled()),e}},{key:"_isVisible",value:function(){return this.editor.option("visible")}},{key:"_isDisabled",value:function(){return void 0!==this.options.disabled?this.instance?this.instance.option("disabled"):this.options.disabled:this.editor.option("readOnly")}}]),t}();t.default=p},function(e,t,n){var i=n(291),o=n(241),a=i.inherit(o).inherit({_addWidgetPrefix:function(e){return"dx-list-"+e},_getCombinedFilter:function(){var e,t,n=this._dataSource;return n&&(t={filter:n.filter()},n._addSearchFilter(t),e=t.filter),e},_initDataSource:function(){var e=this.option("searchValue"),t=this.option("searchExpr"),n=this.option("searchMode");this.callBase(),this._dataSource&&(e&&e.length&&this._dataSource.searchValue(e),n.length&&this._dataSource.searchOperation(o.getOperationBySearchMode(n)),t&&this._dataSource.searchExpr(t))}});e.exports=a},function(e,t,n){var i=n(2),o=n(1).isNumeric,a=n(3).each,r=n(81).queryByOptions,s=n(41),l=n(186),u="dx-list-group",c=function(e){return(e.group<<20)+e.item},d=function(e){return{group:e>>20,item:2303&e}},h=l.inherit({_groupElements:function(){return this._collectionWidget._itemContainer().find("."+u)},_groupItemElements:function(e){return e.find(".dx-list-item")},getIndexByItemData:function(e){var t=this._collectionWidget.option("items"),n=!1;return!!e&&(e.items&&e.items.length&&(e=e.items[0]),a(t,function(t,i){return!!i.items&&(a(i.items,function(i,o){return o!==e||(n={group:t,item:i},!1)}),!n&&void 0)}),n)},getItemDataByIndex:function(e){var t=this._collectionWidget.option("items");return o(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"),n=0;n<t.length;n++)t[n]&&t[n].items?e=e.concat(t[n].items):e.push(t[n]);return e},deleteItemAtIndex:function(e){var t=d(e);this._collectionWidget.option("items")[t.group].items.splice(t.item,1)},getKeysByItems:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&e[n].items?t=t.concat(e[n].items):t.push(e[n]);var i=[];for(n=0;n<t.length;n++)i.push(this._collectionWidget.keyOf(t[n]));return i},getIndexByKey:function(e,t){var n=t||this._collectionWidget.option("items"),i=-1,o=this;return a(n,function(t,n){if(n.items){var r=o.getKeysByItems(n.items);return a(r,function(n,a){if(o._equalKeys(a,e))return i={group:t,item:n},!1}),-1===i&&void 0}}),i},_getGroups:function(e){var t=this._collectionWidget.getDataSource(),n=t&&t.group();return n?r(s(e),{group:n}).toArray():this._collectionWidget.option("items")},getItemsByKeys:function(e,t){var n=[];return a(e,function(e,i){var o=function(e){var t=this.getIndexByKey(i,e),n=t&&e[t.group];if(n)return{groupKey:n.key,item:n.items[t.item]}}.bind(this)(this._getGroups(t));if(o){var r,s=o.groupKey,l=o.item;a(n,function(e,t){if(t.key===s)return r=t,!1}),r||(r={key:s,items:[]},n.push(r)),r.items.push(l)}}.bind(this)),n},moveItemAtIndexToIndex:function(e,t){var n=this._collectionWidget.option("items"),i=d(e),o=d(t),a=n[i.group].items,r=n[o.group].items,s=a[i.item];a.splice(i.item,1),r.splice(o.item,0,s)},_isItemIndex:function(e){return e&&o(e.group)&&o(e.item)},_getNormalizedItemIndex:function(e){var t=i(e),n=t.closest("."+u);return n.length?c({group:this._groupElements().index(n),item:this._groupItemElements(n).index(t)}):-1},_normalizeItemIndex:function(e){return c(e)},_denormalizeItemIndex:function(e){return d(e)},_getItemByNormalizedIndex:function(e){var t=d(e),n=this._groupElements().eq(t.group);return this._groupItemElements(n).eq(t.item)},_itemsFromSameParent:function(e,t){return d(e).group===d(t).group}});e.exports=h},function(e,t,n){var i=n(2),o=n(4).noop,a=n(14),r=n(0).extend,s=n(3).each,l=n(18),u=n(103);n(500),n(501),n(502),n(503),n(504),n(512),n(514);var c=[],d=function(e,t,n){c.push({enabled:e,decoratorType:t,decoratorSubType:n})};d(function(){return this.option("menuItems").length},function(){return"menu"},function(){return this.option("menuMode")}),d(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"),"hold"===e&&(e="context"),e}),d(function(){return"none"!==this.option("selectionMode")&&this.option("showSelectionControls")},function(){return"selection"},function(){return"default"}),d(function(){return this.option("allowItemReordering")},function(){return"reorder"},function(){return"default"});var h=a.inherit({ctor:function(e){this._list=e,this._fetchRequiredDecorators()},dispose:function(){this._decorators&&this._decorators.length&&s(this._decorators,function(e,t){t.dispose()})},_fetchRequiredDecorators:function(){this._decorators=[],s(c,function(e,t){if(t.enabled.call(this._list)){var n=t.decoratorType.call(this._list),i=t.decoratorSubType.call(this._list),o=this._createDecorator(n,i);this._decorators.push(o)}}.bind(this))},_createDecorator:function(e,t){return new(this._findDecorator(e,t))(this._list)},_findDecorator:function(e,t){var n=u.registry[e][t];if(!n)throw l.Error("E1012",e,t);return n},modifyItemElement:function(e){var t=i(e.itemElement),n={$itemElement:t};this._prependBeforeBags(t,n),this._appendAfterBags(t,n),this._applyDecorators("modifyElement",n)},afterItemsRendered:function(){this._applyDecorators("afterRender")},_prependBeforeBags:function(e,t){var n=this._collectDecoratorsMarkup("beforeBag",t,"dx-list-item-before-bag");e.prepend(n)},_appendAfterBags:function(e,t){var n=this._collectDecoratorsMarkup("afterBag",t,"dx-list-item-after-bag");e.append(n)},_collectDecoratorsMarkup:function(e,t,n){var o=i("<div>");return s(this._decorators,function(){var a=i("<div>").addClass(n);this[e](r({$container:a},t)),a.children().length&&o.append(a)}),o.children()},_applyDecorators:function(e,t){s(this._decorators,function(){this[e](t)})},_handlerExists:function(e){if(!this._decorators)return!1;for(var t=this._decorators,n=t.length,i=0;i<n;i++)if(t[i][e]!==o)return!0;return!1},_eventHandler:function(e,t,n){if(!this._decorators)return!1;for(var i=!1,o=this._decorators,a=o.length,r=0;r<a&&!(i=o[r][e](t,n));r++);return i},handleClick:function(e,t){return this._eventHandler("handleClick",e,t)},handleKeyboardEvents:function(e,t){return this._eventHandler("handleKeyboardEvents",e,t)},handleEnterPressing:function(){return this._eventHandler("handleEnterPressing")},contextMenuHandlerExists:function(){return this._handlerExists("handleContextMenu")},handleContextMenu:function(e,t){return this._eventHandler("handleContextMenu",e,t)},getExcludedItemSelectors:function(){var e=[];return this._applyDecorators("getExcludedSelectors",e),e.join(",")}});e.exports=h},function(e,t,n){var i=n(2),o=n(34),a=n(103).register,r=n(139);a("delete","static",r.inherit({afterBag:function(e){var t=e.$itemElement,n=e.$container,a=i("<div>").addClass("dx-list-static-delete-button");this._list._createComponent(a,o,{icon:"remove",onClick:function(e){e.event.stopPropagation(),this._deleteItem(t)}.bind(this),integrationOptions:{}}),n.addClass("dx-list-static-delete-button-container").append(a)},_deleteItem:function(e){e.is(".dx-state-disabled, .dx-state-disabled *")||this._list.deleteItem(e)}}))},function(e,t,n){var i=n(2),o=n(39),a=n(34),r=n(15),s=n(103).register,l=n(292),u=l.inherit({_init:function(){this.callBase.apply(this,arguments);var e=i("<div>").addClass("dx-list-switchable-delete-button-container"),t=i("<div>").addClass("dx-list-switchable-delete-button-wrapper"),n=i("<div>").addClass("dx-list-switchable-delete-button-inner-wrapper"),o=i("<div>").addClass("dx-list-switchable-delete-button");this._list._createComponent(o,a,{text:r.format("dxListEditDecorator-delete"),type:"danger",onClick:function(e){this._deleteItem(),e.event.stopPropagation()}.bind(this),integrationOptions:{}}),e.append(t),t.append(n),n.append(o),this._$buttonContainer=e},_enablePositioning:function(e){this.callBase.apply(this,arguments),o.stop(this._$buttonContainer,!0),this._$buttonContainer.appendTo(e)},_disablePositioning:function(){this.callBase.apply(this,arguments),this._$buttonContainer.detach()},_animatePrepareDeleteReady:function(){var e=this._isRtlEnabled(),t=this._list.$element().width(),n=this._buttonWidth(),i=e?t:-n,a=e?t-n:0;return o.animate(this._$buttonContainer,{type:"custom",duration:200,from:{right:i},to:{right:a}})},_animateForgetDeleteReady:function(){var e=this._isRtlEnabled(),t=this._list.$element().width(),n=this._buttonWidth(),i=e?t-n:0,a=e?t:-n;return o.animate(this._$buttonContainer,{type:"custom",duration:200,from:{right:i},to:{right:a}})},_buttonWidth:function(){return this._buttonContainerWidth||(this._buttonContainerWidth=this._$buttonContainer.outerWidth()),this._buttonContainerWidth},dispose:function(){this._$buttonContainer&&this._$buttonContainer.remove(),this.callBase.apply(this,arguments)}});s("delete","toggle",u.inherit({beforeBag:function(e){var t=e.$itemElement,n=e.$container,o=i("<div>").addClass("dx-list-toggle-delete-switch");this._list._createComponent(o,a,{icon:"toggle-delete",onClick:function(e){this._toggleDeleteReady(t),e.event.stopPropagation()}.bind(this),integrationOptions:{}}),n.addClass("dx-list-toggle-delete-switch-container"),n.append(o)}})),s("delete","slideButton",u.inherit({_shouldHandleSwipe:!0,_swipeEndHandler:function(e,t){return 0!==t.targetOffset&&this._toggleDeleteReady(e),!0}})),e.exports=u},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(19),s=n(15),l=n(26),u=n(9),c=n(128),d=n(293),h=n(103).register,p=n(292),f=n(39),g=n(30),_=n(238),m="dxListEditDecorator",v=u.addNamespace(r.name,m),y=u.addNamespace(c.active,m),b="dx-list-slide-menu-content",x="dx-list-slide-menu-button";h("menu","slide",p.inherit({_shouldHandleSwipe:!0,_init:function(){this.callBase.apply(this,arguments),this._$buttonsContainer=i("<div>").addClass("dx-list-slide-menu-buttons-container"),o.on(this._$buttonsContainer,y,a),this._$buttons=i("<div>").addClass("dx-list-slide-menu-buttons").appendTo(this._$buttonsContainer),this._renderMenu(),this._renderDeleteButton()},_renderMenu:function(){if(this._menuEnabled()){var e=this._menuItems();if(1===e.length){var t=e[0];this._renderMenuButton(t.text,function(e){e.stopPropagation(),this._fireAction(t)}.bind(this))}else{var n=i("<div>").addClass("dx-list-slide-menu");this._menu=this._list._createComponent(n,_,{showTitle:!1,items:e,onItemClick:function(e){this._fireAction(e.itemData)}.bind(this),integrationOptions:{}}),n.appendTo(this._list.$element());var o=this._renderMenuButton(s.format("dxListEditDecorator-more"),function(e){e.stopPropagation(),this._menu.show()}.bind(this));this._menu.option("target",o)}}},_renderMenuButton:function(e,t){var n=i("<div>").addClass(x).addClass("dx-list-slide-menu-button-menu").text(e);return this._$buttons.append(n),o.on(n,v,t),n},_renderDeleteButton:function(){if(this._deleteEnabled()){var e=i("<div>").addClass(x).addClass("dx-list-slide-menu-button-delete").text(g.isMaterial()?"":s.format("dxListEditDecorator-delete"));o.on(e,v,function(e){e.stopPropagation(),this._deleteItem()}.bind(this)),this._$buttons.append(e)}},_fireAction:function(e){this._fireMenuAction(i(this._cachedNode),e.action),this._cancelDeleteReadyItem()},modifyElement:function(e){this.callBase.apply(this,arguments);var t=e.$itemElement;t.addClass("dx-list-slide-menu-wrapper");var n=i("<div>").addClass(b);t.wrapInner(n)},_getDeleteButtonContainer:function(){return this._$buttonsContainer},handleClick:function(e,t){return!!i(t.target).closest("."+b).length&&this.callBase.apply(this,arguments)},_swipeStartHandler:function(e){this._enablePositioning(e),this._cacheItemData(e),this._setPositions(this._getPositions(0))},_swipeUpdateHandler:function(e,t){var n=this._isRtlEnabled()?-1:1,i=this._isReadyToDelete(e);if(this._getCurrentPositions().content!==this._getStartPositions().content||i||!(t.offset*n>0)){var o=this._cachedItemWidth*t.offset,a=i?-this._cachedButtonWidth*n:0,r=(o+a)*n<0?Math.abs((o+a)/this._cachedButtonWidth):0;return this._setPositions(this._getPositions(r)),!0}t.cancel=!0},_getStartPositions:function(){var e=this._isRtlEnabled(),t=e?-1:1;return{content:0,buttonsContainer:e?-this._cachedButtonWidth:this._cachedItemWidth,buttons:-this._cachedButtonWidth*t}},_getPositions:function(e){var t=this._isRtlEnabled()?-1:1,n=this._getStartPositions();return{content:n.content-e*this._cachedButtonWidth*t,buttonsContainer:n.buttonsContainer-Math.min(e,1)*this._cachedButtonWidth*t,buttons:n.buttons+Math.min(e,1)*this._cachedButtonWidth*t}},_getCurrentPositions:function(){return{content:l.locate(this._$cachedContent).left,buttonsContainer:l.locate(this._$buttonsContainer).left,buttons:l.locate(this._$buttons).left}},_setPositions:function(e){l.move(this._$cachedContent,{left:e.content}),l.move(this._$buttonsContainer,{left:e.buttonsContainer}),l.move(this._$buttons,{left:e.buttons})},_cacheItemData:function(e){e[0]!==this._cachedNode&&(this._$cachedContent=e.find("."+b),this._cachedItemWidth=e.outerWidth(),this._cachedButtonWidth=this._cachedButtonWidth||this._$buttons.outerWidth(),this._$buttonsContainer.width(this._cachedButtonWidth),this._$cachedContent.length&&(this._cachedNode=e[0]))},_minButtonContainerLeftOffset:function(){return this._cachedItemWidth-this._cachedButtonWidth},_swipeEndHandler:function(e,t){this._cacheItemData(e);var n=this._isRtlEnabled()?1:-1,i=this._cachedItemWidth*t.offset,o=!this._isReadyToDelete(e)&&i*n>.2*this._cachedButtonWidth,a=t.targetOffset===n&&o;return this._toggleDeleteReady(e,a),!0},_enablePositioning:function(e){f.stop(this._$cachedContent,!0),this.callBase.apply(this,arguments),this._$buttonsContainer.appendTo(e)},_disablePositioning:function(){this.callBase.apply(this,arguments),this._$buttonsContainer.detach()},_animatePrepareDeleteReady:function(){return this._animateToPositions(this._getPositions(1))},_animateForgetDeleteReady:function(e){return this._cacheItemData(e),this._animateToPositions(this._getPositions(0))},_animateToPositions:function(e){var t=this,n=this._getCurrentPositions(),i=Math.min(Math.abs(n.content-e.content)/this._cachedButtonWidth,1);return f.animate(this._$cachedContent,{from:n,to:e,easing:"cubic-bezier(0.075, 0.82, 0.165, 1)",duration:400*i,strategy:"frame",draw:function(e){t._setPositions(e)}})},dispose:function(){this._menu&&this._menu.$element().remove(),this._$buttonsContainer&&this._$buttonsContainer.remove(),this.callBase.apply(this,arguments)}}).include(d))},function(e,t,n){var i=n(26),o=n(39),a=n(103).register,r=n(139),s=n(6).Deferred;a("delete","swipe",r.inherit({_shouldHandleSwipe:!0,_renderItemPosition:function(e,t,n){var a=new s,r=t*this._itemElementWidth;return n?o.animate(e,{to:{left:r},type:"slide",complete:function(){a.resolve(e,t)}}):(i.move(e,{left:r}),a.resolve()),a.promise()},_swipeStartHandler:function(e){return this._itemElementWidth=e.width(),!0},_swipeUpdateHandler:function(e,t){return this._renderItemPosition(e,t.offset),!0},_swipeEndHandler:function(e,t){var n=t.targetOffset;return this._renderItemPosition(e,n,!0).done(function(e,t){Math.abs(t)&&this._list.deleteItem(e).fail(function(){this._renderItemPosition(e,0,!0)}.bind(this))}.bind(this)),!0}}))},function(e,t,n){var i=n(2),o=n(293),a=n(15),r=n(103).register,s=n(139),l=n(58),u=n(240),c="dx-list-context-menu";r("menu","context",s.inherit({_init:function(){var e=i("<div>").addClass(c);this._list.$element().append(e),this._menu=this._renderOverlay(e)},_renderOverlay:function(e){return this._list._createComponent(e,l,{shading:!1,deferRendering:!0,closeOnTargetScroll:!0,closeOnOutsideClick:function(e){return!i(e.target).closest("."+c).length},animation:{show:{type:"slide",duration:300,from:{height:0,opacity:1},to:{height:function(){return this._$menuList.outerHeight()}.bind(this),opacity:1}},hide:{type:"slide",duration:0,from:{opacity:1},to:{opacity:0}}},height:function(){return this._$menuList?this._$menuList.outerHeight():0}.bind(this),width:function(){return this._list.$element().outerWidth()}.bind(this),onContentReady:this._renderMenuContent.bind(this)})},_renderMenuContent:function(e){var t=e.component.$content(),n=this._menuItems().slice();this._deleteEnabled()&&n.push({text:a.format("dxListEditDecorator-delete"),action:this._deleteItem.bind(this)}),this._$menuList=i("<div>"),this._list._createComponent(this._$menuList,u,{items:n,onItemClick:this._menuItemClickHandler.bind(this),height:"auto",integrationOptions:{}}),t.addClass("dx-list-context-menucontent"),t.append(this._$menuList)},_menuItemClickHandler:function(e){this._menu.hide(),this._fireMenuAction(this._$itemWithMenu,e.itemData.action)},_deleteItem:function(){this._list.deleteItem(this._$itemWithMenu)},handleContextMenu:function(e){return this._$itemWithMenu=e,this._menu.option({position:{my:"top",at:"bottom",of:e,collision:"flip"}}),this._menu.show(),!0},dispose:function(){this._menu&&this._menu.$element().remove(),this.callBase.apply(this,arguments)}}).include(o))},function(e,t,n){var i=n(2),o=n(153),a="dx-list-item-badge-container",r="dx-list-item-chevron-container",s=o.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this)),this._startWatcher("showChevron",this._renderShowChevron.bind(this))},_renderBadge:function(e){if(this._$element.children("."+a).remove(),e){var t=i("<div>").addClass(a).append(i("<div>").addClass("dx-list-item-badge").addClass("dx-badge").text(e)),n=this._$element.children("."+r).first();n.length>0?t.insertBefore(n):t.appendTo(this._$element)}},_renderShowChevron:function(e){if(this._$element.children("."+r).remove(),e){var t=i("<div>").addClass(r),n=i("<div>").addClass("dx-list-item-chevron");t.append(n).appendTo(this._$element)}}});e.exports=s},function(e,t,n){var i=n(2),o=n(16),a=n(7),r=n(15),s=n(8),l=n(10).getPublicElement,u=n(0).extend,c=n(4).noop,d=n(507),h=n(508),p=n(509),f=n(510),g=n(94),_=n(93),m=n(30),v=n(189),y="dx-scrollview",b=y+"-scrollbottom",x={pullDown:d,swipeDown:h,slideDown:p,simulated:f},w=!a.hasWindow(),C={finishLoading:c,release:c,refresh:c,_optionChanged:function(e){if("onUpdated"!==e.name)return this.callBase.apply(this,arguments)}},k=g.inherit(w?C:{_getDefaultOptions:function(){return u(this.callBase(),{pullingDownText:r.format("dxScrollView-pullingDownText"),pulledDownText:r.format("dxScrollView-pulledDownText"),refreshingText:r.format("dxScrollView-refreshingText"),reachBottomText:r.format("dxScrollView-reachBottomText"),onPullDown:null,onReachBottom:null,refreshStrategy:"pullDown"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"android"===o.real().platform},options:{refreshStrategy:"swipeDown"}},{device:function(){return"win"===o.real().platform},options:{refreshStrategy:"slideDown"}},{device:function(){return m.isMaterial()},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",reachBottomText:""}}])},_init:function(){this.callBase(),this._loadingIndicatorEnabled=!0},_initScrollableMarkup:function(){this.callBase(),this.$element().addClass(y),this._initContent(),this._initTopPocket(),this._initBottomPocket(),this._initLoadPanel()},_initContent:function(){var e=i("<div>").addClass("dx-scrollview-content");this._$content.wrapInner(e)},_initTopPocket:function(){var e=this._$topPocket=i("<div>").addClass("dx-scrollview-top-pocket"),t=this._$pullDown=i("<div>").addClass("dx-scrollview-pull-down");e.append(t),this._$content.prepend(e)},_initBottomPocket:function(){var e=this._$bottomPocket=i("<div>").addClass("dx-scrollview-bottom-pocket"),t=this._$reachBottom=i("<div>").addClass(b),n=i("<div>").addClass("dx-scrollview-scrollbottom-indicator"),o=new _(i("<div>")).$element(),a=this._$reachBottomText=i("<div>").addClass("dx-scrollview-scrollbottom-text");this._updateReachBottomText(),t.append(n.append(o)).append(a),e.append(t),this._$content.append(e)},_initLoadPanel:function(){var e=i("<div>").addClass("dx-scrollview-loadpanel").appendTo(this.$element()),t={shading:!1,delay:400,message:this.option("refreshingText"),position:{of:this.$element()}};this._loadPanel=this._createComponent(e,v,t)},_updateReachBottomText:function(){this._$reachBottomText.text(this.option("reachBottomText"))},_createStrategy:function(){var e=this.option("useNative")?this.option("refreshStrategy"):"simulated",t=x[e];if(!t)throw Error("E1030",this.option("refreshStrategy"));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._refreshPocketState()},_refreshPocketState: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._refreshPocketState(),t},_pullDownEnable:function(e){return 0===arguments.length?this._pullDownEnabled:(this._$pullDown.toggle(e),this._strategy.pullDownEnable(e),void(this._pullDownEnabled=e))},_reachBottomEnable:function(e){return 0===arguments.length?this._reachBottomEnabled:(this._$reachBottom.toggle(e),this._strategy.reachBottomEnable(e),void(this._reachBottomEnabled=e))},_pullDownHandler:function(){this._loadingIndicator(!1),this._pullDownLoading()},_loadingIndicator:function(e){return arguments.length<1?this._loadingIndicatorEnabled:void(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)}},isEmpty:function(){return!i(this.content()).children().length},content:function(){return l(this._$content.children().eq(1))},release:function(e){return void 0!==e&&this.toggleLoading(!e),this._strategy.release()},toggleLoading:function(e){this._reachBottomEnable(e)},isFull:function(){return i(this.content()).height()>this._$container.height()},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()}});s("dxScrollView",k),e.exports=k},function(e,t,n){var i=n(2),o=n(25),a=n(26),r=n(188),s=n(93),l=n(3).each,u=n(6).Deferred,c="dx-scrollview-pull-down-loading",d="dx-scrollview-pull-down-ready",h=r.inherit({_init:function(e){this.callBase(e),this._$topPocket=e._$topPocket,this._$pullDown=e._$pullDown,this._$bottomPocket=e._$bottomPocket,this._$refreshingText=e._$refreshingText,this._$scrollViewContent=i(e.content()),this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=o(),this.releaseCallbacks=o(),this.reachBottomCallbacks=o()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var e=i("<div>").addClass("dx-scrollview-pull-down-image"),t=i("<div>").addClass("dx-scrollview-pull-down-indicator"),n=new s(i("<div>")).$element(),o=this._$pullDownText=i("<div>").addClass("dx-scrollview-pull-down-text");this._$pullingDownText=i("<div>").text(this.option("pullingDownText")).appendTo(o),this._$pulledDownText=i("<div>").text(this.option("pulledDownText")).appendTo(o),this._$refreshingText=i("<div>").text(this.option("refreshingText")).appendTo(o),this._$pullDown.empty().append(e).append(t.append(n)).append(o)},_releaseState:function(){this._state=0,this._refreshPullDownText()},_pushBackFromBoundary:function(){this._isLocked()||this._component.isEmpty()||this.callBase()},_refreshPullDownText:function(){var e=this,t=[{element:this._$pullingDownText,visibleState:0},{element:this._$pulledDownText,visibleState:1},{element:this._$refreshingText,visibleState:2}];l(t,function(t,n){var i=e._state===n.visibleState?"addClass":"removeClass";n.element[i]("dx-scrollview-pull-down-text-visible")})},update:function(){this.callBase(),this._setTopPocketOffset()},_updateDimensions:function(){this.callBase(),this._topPocketSize=this._$topPocket.height(),this._bottomPocketSize=this._$bottomPocket.height(),this._scrollOffset=Math.round(100*(this._$container.height()-this._$content.height()))/100},_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(){1===this._state&&(this._setPullDownOffset(this._topPocketSize),clearTimeout(this._pullDownRefreshTimeout),this._pullDownRefreshTimeout=setTimeout(function(){this._pullDownRefreshing()}.bind(this),400))},_setPullDownOffset:function(e){a.move(this._$topPocket,{top:e}),a.move(this._$scrollViewContent,{top:e})},handleScroll:function(e){if(this.callBase(e),2!==this._state){var t=this.location().top,n=(this._location||0)-t;this._location=t,this._isPullDown()?this._pullDownReady():n>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()}},_isPullDown:function(){return this._pullDownEnabled&&this._location>=this._topPocketSize},_isReachBottom:function(){return this._reachBottomEnabled&&this._location-(this._scrollOffset+this._bottomPocketSize)<=.1},_reachBottom:function(){3!==this._state&&(this._state=3,this.reachBottomCallbacks.fire())},_pullDownReady:function(){1!==this._state&&(this._state=1,this._$pullDown.addClass(d),this._refreshPullDownText())},_stateReleased:function(){0!==this._state&&(this._$pullDown.removeClass(c).removeClass(d),this._releaseState())},_pullDownRefreshing:function(){2!==this._state&&(this._state=2,this._$pullDown.addClass(c).removeClass(d),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=1},release:function(){var e=new u;return this._updateDimensions(),clearTimeout(this._releaseTimeout),3===this._state&&(this._state=0),this._releaseTimeout=setTimeout(function(){this._setPullDownOffset(0),this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),e.resolve()}.bind(this),400),e.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}});e.exports=h},function(e,t,n){var i=n(2),o=n(25),a=n(26),r=n(9),s=n(188),l=n(93),u=n(6).Deferred,c="dx-scrollview-pull-down-loading",d=s.inherit({_init:function(e){this.callBase(e),this._$topPocket=e._$topPocket,this._$bottomPocket=e._$bottomPocket,this._$pullDown=e._$pullDown,this._$scrollViewContent=e.content(),this._initCallbacks(),this._location=0},_initCallbacks:function(){this.pullDownCallbacks=o(),this.releaseCallbacks=o(),this.reachBottomCallbacks=o()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var e=i("<div>").addClass("dx-scrollview-pull-down-indicator"),t=new l(i("<div>")).$element();this._$icon=i("<div>").addClass("dx-icon-pulldown"),this._$pullDown.empty().append(this._$icon).append(e.append(t))},_releaseState:function(){this._state=0,this._releasePullDown(),this._updateDimensions()},_releasePullDown:function(){this._$pullDown.css({opacity:0})},_updateDimensions:function(){this.callBase(),this._topPocketSize=this._$topPocket.height(),this._bottomPocketSize=this._$bottomPocket.height(),this._scrollOffset=this._$container.height()-this._$content.height()},_allowedDirections:function(){var e=this.callBase();return e.vertical=e.vertical||this._pullDownEnabled,e},handleInit:function(e){this.callBase(e),0===this._state&&0===this._location&&(this._startClientY=r.eventData(e.originalEvent).y,this._state=4)},handleMove:function(e){this.callBase(e),this._deltaY=r.eventData(e.originalEvent).y-this._startClientY,4===this._state&&(this._pullDownEnabled&&this._deltaY>0?this._state=5:this._complete()),5===this._state&&(e.preventDefault(),this._movePullDown())},_movePullDown:function(){var e=this._getPullDownHeight(),t=Math.min(3*e,this._deltaY+this._getPullDownStartPosition()),n=180*t/e/3;this._$pullDown.css({opacity:1}).toggleClass("dx-scrollview-pull-down-refreshing",t<e),a.move(this._$pullDown,{top:t}),this._$icon.css({transform:"rotate("+n+"deg)"})},_isPullDown:function(){return this._pullDownEnabled&&5===this._state&&this._deltaY>=this._getPullDownHeight()-this._getPullDownStartPosition()},_getPullDownHeight:function(){return Math.round(.05*this._$element.outerHeight())},_getPullDownStartPosition:function(){return-Math.round(1.5*this._$pullDown.outerHeight())},handleEnd:function(){this._isPullDown()&&this._pullDownRefreshing(),this._complete()},handleStop:function(){this._complete()},_complete:function(){4!==this._state&&5!==this._state||this._releaseState()},handleScroll:function(e){if(this.callBase(e),2!==this._state){var t=this.location().top,n=this._location-t;this._location=t,n>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()}},_isReachBottom:function(){return this._reachBottomEnabled&&this._location<=this._scrollOffset+this._bottomPocketSize},_reachBottom:function(){this.reachBottomCallbacks.fire()},_stateReleased:function(){0!==this._state&&(this._$pullDown.removeClass(c),this._releaseState())},_pullDownRefreshing:function(){this._state=2,this._pullDownRefreshHandler()},_pullDownRefreshHandler:function(){this._refreshPullDown(),this.pullDownCallbacks.fire()},_refreshPullDown:function(){this._$pullDown.addClass(c),a.move(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=1},release:function(){var e=new u;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()}});e.exports=d},function(e,t,n){var i=n(25),o=n(188),a=n(6).Deferred,r=o.inherit({_init:function(e){this.callBase(e),this._$topPocket=e._$topPocket,this._$bottomPocket=e._$bottomPocket,this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=i(),this.releaseCallbacks=i(),this.reachBottomCallbacks=i()},render:function(){this.callBase(),this._renderPullDown(),this._renderBottom(),this._releaseState(),this._updateDimensions()},_renderPullDown:function(){this._$topPocket.empty()},_renderBottom:function(){this._$bottomPocket.empty().append("<progress>")},_releaseState:function(){0!==this._state&&(this._state=0)},_updateDimensions:function(){this._scrollOffset=this._$container.prop("scrollHeight")-this._$container.prop("clientHeight"),this._containerSize={height:this._$container.prop("clientHeight"),width:this._$container.prop("clientWidth")},this._contentSize=this._componentContentSize={height:this._$container.prop("scrollHeight"),width:this._$container.prop("scrollWidth")}},handleScroll:function(e){this.callBase(e),this._isReachBottom(this._lastLocation.top)&&this._reachBottom()},_isReachBottom:function(e){return this._scrollContent=this._$container.prop("scrollHeight")-this._$container.prop("clientHeight"),this._reachBottomEnabled&&e<80-this._scrollContent},_reachBottom:function(){2!==this._state&&(this._state=2,this.reachBottomCallbacks.fire())},pullDownEnable:function(e){this._pullDownEnabled=e},reachBottomEnable:function(e){this._reachBottomEnabled=e,this._$bottomPocket.toggle(e)},pendingRelease:function(){this._state=1},release:function(){var e=new a;return this._state=0,this.releaseCallbacks.fire(),this.update(),e.resolve().promise()}});e.exports=r},function(e,t,n){var i=n(2),o=n(25),a=n(3).each,r=n(4),s=n(0).extend,l=Math,u=n(295),c=n(93),d="dx-scrollview-pull-down-loading",h="dx-scrollview-pull-down-ready",p=u.Scroller.inherit({ctor:function(){this._topPocketSize=0,this.callBase.apply(this,arguments),this._initCallbacks(),this._releaseState()},_releaseState:function(){this._state=0,this._refreshPullDownText()},_refreshPullDownText:function(){var e=this,t=[{element:this._$pullingDownText,visibleState:0},{element:this._$pulledDownText,visibleState:1},{element:this._$refreshingText,visibleState:2}];a(t,function(t,n){var i=e._state===n.visibleState?"addClass":"removeClass";n.element[i]("dx-scrollview-pull-down-text-visible")})},_initCallbacks:function(){this.pullDownCallbacks=o(),this.releaseCallbacks=o(),this.reachBottomCallbacks=o()},_updateBounds:function(){var e="horizontal"!==this._direction;this._topPocketSize=e?this._$topPocket[this._dimension]():0,this._bottomPocketSize=e?this._$bottomPocket[this._dimension]():0,this.callBase(),this._bottomBound=this._minOffset+this._bottomPocketSize},_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():0!==this._state&&this._stateReleased()},_moveScrollbar:function(){this._scrollbar.moveTo(this._topPocketSize+this._location)},_isPullDown:function(){return this._pullDownEnabled&&this._location>=0},_isReachBottom:function(){return this._reachBottomEnabled&&this._location<=this._bottomBound},_scrollComplete:function(){this._inBounds()&&1===this._state?this._pullDownRefreshing():this._inBounds()&&3===this._state?this._reachBottomLoading():this.callBase()},_reachBottomReady:function(){3!==this._state&&(this._state=3,this._minOffset=this._getMinOffset())},_getMaxOffset:function(){return-this._topPocketSize},_getMinOffset:function(){return l.min(this.callBase(),-this._topPocketSize)},_reachBottomLoading:function(){this.reachBottomCallbacks.fire()},_pullDownReady:function(){1!==this._state&&(this._state=1,this._maxOffset=0,this._$pullDown.addClass(h),this._refreshPullDownText())},_stateReleased:function(){0!==this._state&&(this._releaseState(),this._updateBounds(),this._$pullDown.removeClass(d).removeClass(h),this.releaseCallbacks.fire())},_pullDownRefreshing:function(){2!==this._state&&(this._state=2,this._$pullDown.addClass(d).removeClass(h),this._refreshPullDownText(),this.pullDownCallbacks.fire())},_releaseHandler:function(){return 0===this._state&&this._moveToBounds(),this._update(),this._releaseTask&&this._releaseTask.abort(),this._releaseTask=r.executeAsync(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-=this._$topPocket.height()||-this._topPocketSize,this._maxOffset=0,this._move()},_pendingReleaseHandler:function(){this._state=1},dispose:function(){this._releaseTask&&this._releaseTask.abort(),this.callBase()}}),f=u.SimulatedStrategy.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=o(),this.releaseCallbacks=o(),this.reachBottomCallbacks=o()},render:function(){this._renderPullDown(),this.callBase()},_renderPullDown:function(){var e=i("<div>").addClass("dx-scrollview-pull-down-image"),t=i("<div>").addClass("dx-scrollview-pull-down-indicator"),n=new c(i("<div>")).$element(),o=this._$pullDownText=i("<div>").addClass("dx-scrollview-pull-down-text");this._$pullingDownText=i("<div>").text(this.option("pullingDownText")).appendTo(o),this._$pulledDownText=i("<div>").text(this.option("pulledDownText")).appendTo(o),this._$refreshingText=i("<div>").text(this.option("refreshingText")).appendTo(o),this._$pullDown.empty().append(e).append(t.append(n)).append(o)},pullDownEnable:function(e){this._eventHandler("pullDownEnabling",e)},reachBottomEnable:function(e){this._eventHandler("reachBottomEnabling",e)},_createScroller:function(e){var t=this,n=t._scrollers[e]=new p(t._scrollerOptions(e));n.pullDownCallbacks.add(function(){t.pullDownCallbacks.fire()}),n.releaseCallbacks.add(function(){t.releaseCallbacks.fire()}),n.reachBottomCallbacks.add(function(){t.reachBottomCallbacks.fire()})},_scrollerOptions:function(e){return s(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+=this._$topPocket.height(),e},dispose:function(){a(this._scrollers,function(){this.dispose()}),this.callBase()}});e.exports=f},function(e,t,n){var i=n(5),o=n(14),a=o.abstract,r=n(9),s=n(157),l=n(88),u=n(112),c=n(16).real(),d=n(61).compare,h="dxscrollinit",p="dxscrollstart",f="dxscroll",g="dxscrollend",_="dxscrollstop",m="dxscrollcancel",v=function(e){return"dxmousewheel"===e.type},y=o.inherit(function(){var e=r.addNamespace("scroll","dxScrollEmitter");return{ctor:function(t){this._element=t,this._locked=!1;var n=this;this._proxiedScroll=function(e){n._scroll(e)},i.on(this._element,e,this._proxiedScroll)},_scroll:a,check:function(e,t){this._locked&&t()},dispose:function(){i.off(this._element,e,this._proxiedScroll)}}}()),b=y.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()}}),x=b.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(v(e)){var t=e.shiftKey||!1,n=null!==this._lastWheelDirection&&t!==this._lastWheelDirection;this._lastWheelDirection=t,this._locked=this._locked&&!n}else this._lastWheelDirection=null}}),w=b.inherit({ctor:function(e){this.callBase(e,400)}});!function(){var e=c.ios&&d(c.version,[8])>=0,t=c.android&&d(c.version,[5])>=0;(e||t)&&(w=y.inherit({_scroll:function(){this._locked=!0;var e=this;u.cancelAnimationFrame(this._scrollFrame),this._scrollFrame=u.requestAnimationFrame(function(){e._locked=!1})},check:function(e,t){u.cancelAnimationFrame(this._scrollFrame),u.cancelAnimationFrame(this._checkFrame);var n=this,i=this.callBase;this._checkFrame=u.requestAnimationFrame(function(){i.call(n,e,t),n._locked=!1})},dispose:function(){this.callBase(),u.cancelAnimationFrame(this._scrollFrame),u.cancelAnimationFrame(this._checkFrame)}}))}(),l({emitter:s.inherit(function(){var e=Math.round(1e3/60);return{ctor:function(e){this.callBase.apply(this,arguments),this.direction="both",this._pointerLocker=new w(e),this._wheelLocker=new x(e)},validate:function(){return!0},configure:function(e){e.scrollTarget&&(this._pointerLocker.dispose(),this._wheelLocker.dispose(),this._pointerLocker=new w(e.scrollTarget),this._wheelLocker=new x(e.scrollTarget)),this.callBase(e)},_init:function(e){this._wheelLocker.check(e,function(){v(e)&&this._accept(e)}.bind(this)),this._pointerLocker.check(e,function(){var t=this.isNative&&r.isMouseEvent(e);v(e)||t||this._accept(e)}.bind(this)),this._fireEvent(h,e),this._prevEventData=r.eventData(e)},move:function(e){this.callBase.apply(this,arguments),e.isScrollingEvent=this.isNative||e.isScrollingEvent},_start:function(e){this._savedEventData=r.eventData(e),this._fireEvent(p,e),this._prevEventData=r.eventData(e)},_move:function(e){var t=r.eventData(e);this._fireEvent(f,e,{delta:r.eventDelta(this._prevEventData,t)}),r.eventDelta(this._savedEventData,t).time>200&&(this._savedEventData=this._prevEventData),this._prevEventData=r.eventData(e)},_end:function(t){var n=r.eventDelta(this._prevEventData,r.eventData(t)),i={x:0,y:0};if(!v(t)&&n.time<100){var o=r.eventDelta(this._savedEventData,this._prevEventData),a=e/o.time;i={x:o.x*a,y:o.y*a}}this._fireEvent(g,t,{velocity:i})},_stop:function(e){this._fireEvent(_,e)},cancel:function(e){this.callBase.apply(this,arguments),this._fireEvent(m,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)}}}()),events:[h,p,f,g,_,m]}),e.exports={init:h,start:p,move:f,end:g,stop:_,cancel:m}},function(e,t,n){var i=n(2),o=n(5),a=n(19),r=n(0).extend,s=n(18),l=n(104),u=n(513),c=n(9),d=n(103).register,h=n(139),p="dx-list-select-decorator-enabled",f="dx-state-focused",g=c.addNamespace(a.name,"dxListEditDecorator");d("selection","default",h.inherit({_init:function(){this.callBase.apply(this,arguments);var e=this._list.option("selectionMode");this._singleStrategy="single"===e,this._containerClass=this._singleStrategy?"dx-list-select-radiobutton-container":"dx-list-select-checkbox-container",this._controlClass=this._singleStrategy?"dx-list-select-radiobutton":"dx-list-select-checkbox",this._controlWidget=this._singleStrategy?u:l,this._list.$element().addClass(p)},beforeBag:function(e){var t=e.$itemElement,n=e.$container,o=i("<div>").addClass(this._controlClass);new this._controlWidget(o,r(this._commonOptions(),{value:this._isSelected(t),focusStateEnabled:!1,hoverStateEnabled:!1,onValueChanged:function(e){this._processCheckedState(t,e.value),e.event&&e.event.stopPropagation()}.bind(this)})),n.addClass(this._containerClass),n.append(o)},modifyElement:function(e){this.callBase.apply(this,arguments);var t=e.$itemElement,n=this._controlWidget.getInstance(t.find("."+this._controlClass));o.on(t,"stateChanged",function(e,t){n.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){return this._$selectAll&&this._needMoveFocus(e,t)?(this._list.option("focusedElement",void 0),this._selectAllCheckBox.$element().addClass(f),!0):(this._$selectAll&&this._selectAllCheckBox.$element().removeClass(f),this._list.focusListItem(e),!1)},_needMoveFocus:function(e,t){return!t&&(0===e||e===this._list._getLastItemIndex())},handleEnterPressing:function(){if(this._$selectAll&&this._selectAllCheckBox.$element().hasClass(f))return this._selectAllCheckBox.option("value",!this._selectAllCheckBox.option("value")),!0},_renderSelectAll:function(){var e=this._$selectAll=i("<div>").addClass("dx-list-select-all"),t=this._list,n=t._supportedKeys().downArrow.bind(t);this._selectAllCheckBox=t._createComponent(i("<div>").addClass("dx-list-select-all-checkbox").appendTo(e),l),this._selectAllCheckBox.registerKeyHandler("downArrow",n),i("<div>").addClass("dx-list-select-all-label").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)),o.off(this._$selectAll,g),o.on(this._$selectAll,g,this._selectAllClickHandler.bind(this))},_selectAllHandler:function(e){e.event&&e.event.stopPropagation();var t=this._selectAllCheckBox.option("value");!1!==this._list._createActionByOption("onSelectAllValueChanged")({value:t})&&(!0===t?this._selectAllItems():!1===t&&this._unselectAllItems())},_checkSelectAllCapability:function(){var e=this._list,t=e.getDataSource();return!!("allPages"!==e.option("selectAllMode")||!e.option("grouped")||t&&t.group())||(s.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(){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(p),this.callBase.apply(this,arguments)},_disposeSelectAll:function(){this._$selectAll&&(this._$selectAll.remove(),this._$selectAll=null)}}))},function(e,t,n){var i=n(2),o=n(5),a=n(16),r=n(0).extend,s=n(72),l=n(8),u=n(49),c=n(9),d=n(19),h="dx-radiobutton-icon",p=u.inherit({_supportedKeys:function(){return r(this.callBase(),{space:function(e){e.preventDefault(),this._clickAction({event:e})}})},_getDefaultOptions:function(){return r(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,value:!1,useInkRipple:!1})},_canValueBeChangedByClick:function(){return!0},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.$element().addClass("dx-radiobutton")},_initMarkup:function(){this.callBase(),this._renderIcon(),this.option("useInkRipple")&&this._renderInkRipple(),this._renderCheckedState(this.option("value")),this._renderClick(),this.setAria("role","radio")},_renderInkRipple:function(){this._inkRipple=s.render({waveSizeCoefficient:3.3,useHoldAnimation:!1,wavesNumber:2,isCentered:!0})},_renderInkWave:function(e,t,n,i){if(this._inkRipple){var o={element:e,event:t,wave:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}},_updateFocusState:function(e,t){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,e,t,0)},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,n,t,1)},_renderIcon:function(){this._$icon=i("<div>").addClass(h),i("<div>").addClass("dx-radiobutton-icon-dot").appendTo(this._$icon),this.$element().append(this._$icon)},_renderCheckedState:function(e){this.$element().toggleClass("dx-radiobutton-checked",e).find("."+h).toggleClass("dx-radiobutton-icon-checked",e),this.setAria("checked",e)},_renderClick:function(){var e=c.addNamespace(d.name,this.NAME);this._clickAction=this._createAction(function(e){this._clickHandler(e.event)}.bind(this)),o.off(this.$element(),e),o.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"useInkRipple":this._invalidate();break;case"value":this._renderCheckedState(e.value),this.callBase(e);break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});l("dxRadioButton",p),e.exports=p},function(e,t,n){var i=n(2),o=n(3).each,a=n(5),r=n(26),s=n(39),l=n(55),u=n(29),c=n(296),d=n(9),h=n(103).register,p=n(139),f=c.inherit({ctor:function(e){this.callBase(),this._strategy=e},_isFinished:function(){return this._strategy.scrollFinished()},_step:function(){this._strategy.scrollByStep()}}),g="dxListEditDecorator",_=d.addNamespace(l.start,g),m=d.addNamespace(l.move,g),v=d.addNamespace(l.end,g),y="dx-list-item-reordering",b="dx-list-item-ghost-reordering";h("reorder","default",p.inherit({_init:function(){this._groupedEnabled=this._list.option("grouped"),this._initAnimator()},_initAnimator:function(){this._scrollAnimator=new f(this)},_startAnimator:function(){this._scrollAnimator.inProgress()||this._scrollAnimator.start()},_stopAnimator:function(){this._scrollAnimator.stop()},afterBag:function(e){var t=e.$itemElement,n=e.$container,o=i("<div>").addClass("dx-list-reorder-handle"),r=!1;a.on(o,"dxpointerdown",function(e){r=!d.isMouseEvent(e)}),a.on(o,"dxhold",{timeout:30},function(e){e.cancel=!0,r=!1}),a.on(o,_,{direction:"vertical",immediate:!0},function(e){return r?void(e.cancel=!0):void this._dragStartHandler(t,e)}.bind(this)),a.on(o,m,this._dragHandler.bind(this,t)),a.on(o,v,this._dragEndHandler.bind(this,t)),n.addClass("dx-list-reorder-handle-container"),n.append(o)},_dragStartHandler:function(e,t){if(e.is(".dx-state-disabled, .dx-state-disabled *"))t.cancel=!0;else{this._stopPreviousAnimation(),t.targetElements=[],this._cacheItemsPositions(),this._startPointerOffset=t.pageY-e.offset().top,this._elementHeight=e.outerHeight();var n=this._list.getFlatIndexByItemElement(e);this._startIndex=n,this._lastIndex=n,this._cacheScrollData();var i=this;this._createGhostTimeout=setTimeout(function(){i._createGhost(e),i._updateGhostPosition(),e.addClass(y)})}},_stopPreviousAnimation:function(){s.stop(this._$ghostItem,!0)},_cacheItemsPositions:function(){var e=this._itemPositions=[];o(this._list.itemElements(),function(t,n){var o=null;e.push(function(){return o=null===o?i(n).position().top:o})})},_getDraggingElementPosition:function(){return this._itemPositions[this._startIndex]()},_getLastElementPosition:function(){return this._itemPositions[this._lastIndex]()},_cacheScrollData:function(){this._list.updateDimensions(),this._startScrollTop=this._list.scrollTop(),this._scrollOffset=0,this._scrollHeight=this._list.scrollHeight(),this._clientHeight=this._list.clientHeight()},_scrollTop:function(){return this._startScrollTop+this._scrollOffset},_createGhost:function(e){this._$ghostItem=e.clone(),this._$ghostItem.addClass(b).appendTo(this._list.itemsContainer()),this._startGhostPosition=this._getDraggingElementPosition()-this._$ghostItem.position().top,r.move(this._$ghostItem,{top:this._startGhostPosition})},_dragHandler:function(e,t){this._topOffset=t.offset.y,this._updateItemPositions();var n=this._getPointerPosition();this._toggleScroll(n)},_getPointerPosition:function(){return this._getDraggingElementPosition()+this._startPointerOffset+this._scrollOffset+this._topOffset},_toggleScroll:function(e){if(!(this._scrollHeight<=this._clientHeight)){var t=.7*this._elementHeight,n=(this._clientHeight-(e-this._scrollTop()))/t,i=(e-this._scrollTop())/t;n<1?(this._stepSize=this._adjustRationIntoRange(n),this._startAnimator()):i<1?(this._stepSize=-this._adjustRationIntoRange(i),this._startAnimator()):this._stopAnimator()}},_adjustRationIntoRange:function(e){return u.fitIntoRange(Math.round(7*Math.abs(e-1)),1,7)},_updateItemPositions:function(){this._updateGhostPosition(),this._updateOthersPositions()},_updateGhostPosition:function(){this._$ghostItem&&r.move(this._$ghostItem,{top:this._startGhostPosition+this._scrollOffset+this._topOffset})},_updateOthersPositions:function(){var e=this._findItemIndexByPosition(this._getPointerPosition());if(this._lastIndex!==e&&(!this._groupedEnabled||this._sameParent(e))){for(var t=e-this._startIndex,n=u.sign(t),i=Math.min(e,this._lastIndex),o=Math.max(e,this._lastIndex),a=i;a<=o;a++)if(a!==this._startIndex){var r=this._list.getItemElementByFlatIndex(a),l=a-this._startIndex,c=u.sign(l),d=Math.abs(l)<=Math.abs(t),h=n===c,p=d&&h,f=!d||!h;s.stop(r),p&&s.animate(r,{type:"slide",to:{top:this._elementHeight*-n},duration:300}),f&&s.animate(r,{type:"slide",to:{top:0},duration:300})}this._lastIndex=e}},_sameParent:function(e){var t=this._list.getItemElementByFlatIndex(this._startIndex);return this._list.getItemElementByFlatIndex(e).parent().get(0)===t.parent().get(0)},scrollByStep:function(){this._scrollOffset+=this._stepSize,this._list.scrollBy(this._stepSize),this._updateItemPositions()},scrollFinished:function(){var e=this._scrollTop(),t=e<=0&&this._stepSize<0,n=e>=this._scrollHeight-this._clientHeight&&this._stepSize>0;return t||n},_dragEndHandler:function(e){this._scrollAnimator.stop(),s.animate(this._$ghostItem,{type:"slide",to:{top:this._startGhostPosition+this._getLastElementPosition()-this._getDraggingElementPosition()},duration:300}).done(function(){e.removeClass(y),this._resetPositions(),this._list.reorderItem(e,this._list.getItemElementByFlatIndex(this._lastIndex)),this._deleteGhost()}.bind(this))},_deleteGhost:function(){this._$ghostItem&&this._$ghostItem.remove()},_resetPositions:function(){for(var e=Math.min(this._startIndex,this._lastIndex),t=Math.max(this._startIndex,this._lastIndex),n=e;n<=t;n++){var i=this._list.getItemElementByFlatIndex(n);r.resetPosition(i)}},_findItemIndexByPosition:function(e){for(var t,n,i=0,o=this._itemPositions.length-1;i<=o;)if(t=(i+o)/2|0,(n=this._itemPositions[t]())<e)i=t+1;else{if(!(n>e))return t;o=t-1}return u.fitIntoRange(i,0,Math.max(o,0))},getExcludedSelectors:function(e){e.push("."+b)},dispose:function(){clearTimeout(this._createGhostTimeout),this.callBase.apply(this,arguments)}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(17)),r=i(n(86)),s=i(n(8)),l=i(n(298)),u=i(n(46)),c=i(n(102)),d=n(20),h=i(n(10)),p=n(60),f=i(n(87)),g=n(45),_=i(n(68)),m=n(6),v=n(0),y=n(1),b=n(4),x=n(15),w="dx-dropdownbutton",C="dx-dropdownbutton-action",k="dx-dropdownbutton-toggle",S="dx-icon-right",I=a.default.inherit({_getDefaultOptions:function(){return(0,v.extend)(this.callBase(),{itemTemplate:"item",keyExpr:"this",displayExpr:"this",selectedItem:null,selectedItemKey:null,stylingMode:"outlined",deferRendering:!0,noDataText:(0,x.format)("dxCollectionWidget-noDataText"),useSelectMode:!1,splitButton:!1,showArrowIcon:!0,text:"",icon:void 0,onButtonClick:null,onSelectionChanged:null,onItemClick:null,opened:!1,items:null,dataSource:null,focusStateEnabled:!0,hoverStateEnabled:!0,dropDownOptions:{},dropDownContentTemplate:"content",grouped:!1,groupTemplate:"group",buttonGroupOptions:{}})},_setOptionsByReference:function(){this.callBase(),(0,v.extend)(this._optionsByReference,{selectedItem:!0})},_init:function(){this.callBase(),this._createItemClickAction(),this._createActionClickAction(),this._createSelectionChangedAction(),this._compileKeyGetter(),this._compileDisplayGetter(),this._initDataSource(),this._itemsToDataSource(),this._initInnerOptionCache("buttonGroupOptions"),this._initInnerOptionCache("dropDownOptions")},_initTemplates:function(){var e=this;this.callBase(),this._defaultTemplates.content=new r.default(function(t){var n=(0,o.default)(t.container),i=(0,o.default)("<div>").appendTo(n);e._list=e._createComponent(i,c.default,e._listOptions()),e._list.registerKeyHandler("escape",e._escHandler.bind(e)),e._list.registerKeyHandler("tab",e._escHandler.bind(e)),e._list.registerKeyHandler("leftArrow",e._escHandler.bind(e)),e._list.registerKeyHandler("rightArrow",e._escHandler.bind(e))})},_itemsToDataSource:function(){this._dataSource||(this._dataSource=new g.DataSource({store:new _.default(this.option("items")),pageSize:0}))},_compileKeyGetter:function(){this._keyGetter=(0,d.compileGetter)(this.option("keyExpr"))},_compileDisplayGetter:function(){this._displayGetter=(0,d.compileGetter)(this.option("displayExpr"))},_initMarkup:function(){this.callBase(),this.$element().addClass(w),this._renderButtonGroup(),this._loadSelectedItem().done(this._updateActionButton.bind(this)),this.option("deferRendering")&&!this.option("opened")||this._renderPopup()},_loadSelectedItem:function(){var e=this,t=new m.Deferred;if(this._list)return t.resolve(this._list.option("selectedItem"));var n=this.option("selectedItemKey");return this._loadSingle(this.option("keyExpr"),n).done(t.resolve).fail(function(){t.resolve(e.option("selectedItem"))}),t.promise()},_createActionClickAction:function(){this._actionClickAction=this._createActionByOption("onButtonClick")},_createSelectionChangedAction:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")},_createItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_fireSelectionChangedAction:function(e){var t=e.previousValue,n=e.value;this._selectionChangedAction({item:n,previousItem:t})},_fireItemClickAction:function(e){var t=e.event,n=e.itemElement,i=e.itemData;return this._itemClickAction({event:t,itemElement:n,itemData:this._actionItem||i})},_actionButtonConfig:function(){return{text:this.option("text"),icon:this.option("icon"),elementAttr:{class:C}}},_getButtonGroupItems:function(){var e=[];return e.push(this._actionButtonConfig()),this.option("splitButton")&&e.push({icon:"spindown",width:26,elementAttr:{class:k}}),e},_buttonGroupItemClick:function(e){var t=e.event,n=e.itemData,i=n.elementAttr.class===C;n.elementAttr.class===k?this.toggle():i&&(this._actionClickAction({event:t,selectedItem:this.option("selectedItem")}),this.option("splitButton")||this.toggle())},_buttonGroupOptions:function(){return(0,v.extend)({items:this._getButtonGroupItems(),focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),onItemClick:this._buttonGroupItemClick.bind(this),width:this.option("width"),height:this.option("height"),stylingMode:this.option("stylingMode"),selectionMode:"none"},this._getInnerOptionsCache("buttonGroupOptions"))},_renderPopupContent:function(){var e=this._popup.$content(),t=this._getTemplateByOption("dropDownContentTemplate");return e.empty(),t.render({container:h.default.getPublicElement(e),model:this.option("items")||this._dataSource})},_popupOptions:function(){var e=this;return(0,v.extend)({dragEnabled:!1,focusStateEnabled:!1,deferRendering:this.option("deferRendering"),minWidth:function(){return e.$element().outerWidth()},closeOnOutsideClick:function(t){var n=(0,o.default)(t.target).closest("."+k);return!n.length||n.closest("."+w).get(0)!==e.$element().get(0)},showTitle:!1,animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},width:"auto",height:"auto",shading:!1,visible:this.option("opened"),position:{of:this.$element(),collision:"flipfit",my:"top left",at:"bottom left",offset:{y:-1}}},this._getInnerOptionsCache("dropDownOptions"))},_listOptions:function(){var e=this,t=this.option("selectedItemKey");return{selectionMode:"single",focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),selectedItemKeys:t?[t]:[],grouped:this.option("grouped"),keyExpr:this.option("keyExpr"),noDataText:this.option("noDataText"),displayExpr:this.option("displayExpr"),itemTemplate:this.option("itemTemplate"),items:this.option("items"),dataSource:this._dataSource,onItemClick:function(t){e.option("selectedItemKey",e._keyGetter(t.itemData)),!1!==e._fireItemClickAction(t)&&(e.toggle(!1),e._buttonGroup.focus())}}},_upDownKeyHandler:function(){this._popup&&this._popup.option("visible")&&this._list?this._list.focus():this.open()},_escHandler:function(){this.close(),this._buttonGroup.focus()},_renderPopup:function(){var e=(0,o.default)("<div>");this.$element().append(e),this._popup=this._createComponent(e,u.default,this._popupOptions()),this._popup.$content().addClass("dx-dropdownbutton-content"),this._renderPopupContent(),this._bindInnerWidgetOptions(this._popup,"dropDownOptions")},_renderAdditionalIcon:function(){if(!this.option("splitButton")&&this.option("showArrowIcon")){var e=this._buttonGroup.$element().find(".dx-button-content").eq(0);(0,p.getImageContainer)("spindown").addClass(S).appendTo(e)}},_renderButtonGroup:function(){var e=this._buttonGroup&&this._buttonGroup.$element()||(0,o.default)("<div>");this._buttonGroup||this.$element().append(e),this._buttonGroup=this._createComponent(e,l.default,this._buttonGroupOptions()),this._buttonGroup.registerKeyHandler("downArrow",this._upDownKeyHandler.bind(this)),this._buttonGroup.registerKeyHandler("tab",this.close.bind(this)),this._buttonGroup.registerKeyHandler("upArrow",this._upDownKeyHandler.bind(this)),this._buttonGroup.registerKeyHandler("escape",this._escHandler.bind(this)),this._renderAdditionalIcon(),this._bindInnerWidgetOptions(this._buttonGroup,"buttonGroupOptions")},toggle:function(e){return this._popup||this._renderPopup(),this._popup.toggle(e)},open:function(){return this.toggle(!0)},close:function(){return this.toggle(!1)},_setListOption:function(e,t){this._list&&this._list.option(e,t)},_getDisplayValue:function(e){var t=!(0,y.isPlainObject)(e)?e:this._displayGetter(e);return(0,y.isPlainObject)(t)?"":String((0,b.ensureDefined)(t,""))},_updateActionButton:function(e){this.option("useSelectMode")&&this.option({text:this._getDisplayValue(e),icon:(0,y.isPlainObject)(e)?e.icon:void 0}),this._setOptionSilent("selectedItem",e)},_clean:function(){this._list&&this._list.$element().remove(),this._popup&&this._popup.$element().remove()},_selectedItemKeyChanged:function(e){var t=this;this._setListOption("selectedItemKeys",e?[e]:[]);var n=this.option("selectedItem");this._loadSelectedItem().done(function(e){t._updateActionButton(e),t._displayGetter(n)!==t._displayGetter(e)&&t._fireSelectionChangedAction({previousValue:n,value:e})})},_optionChanged:function(e){var t=e.name,n=e.value;switch(e.name){case"useSelectMode":break;case"splitButton":this._renderButtonGroup();break;case"displayExpr":this._compileDisplayGetter();break;case"keyExpr":this._compileKeyGetter();break;case"buttonGroupOptions":this._innerOptionChanged(this._buttonGroup,e);break;case"dropDownOptions":this._innerOptionChanged(this._popup,e);break;case"opened":this.toggle(n);break;case"focusStateEnabled":case"hoverStateEnabled":this._setListOption(t,n),this._buttonGroup.option(t,n);break;case"items":this._dataSource=null,this._itemsToDataSource(),this._setListOption(t,n),this._setListOption("selectedItemKeys",[]),this._loadSelectedItem().done(this._updateActionButton.bind(this));break;case"dataSource":this._initDataSource(),this._setListOption(t,n),this._setListOption("selectedItemKeys",[]),this._loadSelectedItem().done(this._updateActionButton.bind(this));break;case"icon":this._buttonGroup.option("items[0]",(0,v.extend)({},this._actionButtonConfig(),{icon:n})),this._renderAdditionalIcon();break;case"text":this._buttonGroup.option("items[0]",(0,v.extend)({},this._actionButtonConfig(),{text:n})),this._renderAdditionalIcon();break;case"showArrowIcon":n||this._buttonGroup.$element().find("."+S).remove(),this._renderAdditionalIcon();break;case"stylingMode":case"width":case"height":this._buttonGroup.option(t,n);break;case"itemTemplate":case"grouped":case"noDataText":case"groupTemplate":this._setListOption(t,n);break;case"dropDownContentTemplate":this._popup&&this._renderPopupContent();break;case"selectedItemKey":this._selectedItemKeyChanged(n);break;case"selectedItem":break;case"onItemClick":this._createItemClickAction();break;case"onButtonClick":this._createActionClickAction();break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"deferRendering":n||this._popup||this._renderPopup();break;default:this.callBase(e)}}}).include(f.default);(0,s.default)("dxDropDownButton",I),e.exports=I},function(e,t,n){var i=n(2),o=n(42),a=n(8),r=n(4).noop,s=n(1),l=n(29).inRange,u=n(0).extend,c=n(34),d=n(49),h=n(158),p=n(517),f=n(518),g=n(26),_=n(31),m=n(22),v=n(56),y=n(16),b=n(39),x=n(7),w=n(15),C=n(86),k="dx-calendar-view",S={month:3,year:2,decade:1,century:0},I="month",T="year",D="decade",E="century",A=d.inherit({_activeStateUnit:".dx-calendar-cell",_getDefaultOptions:function(){return u(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:I,maxZoomLevel:I,minZoomLevel:E,showTodayButton:!1,cellTemplate:"cell",disabledDates:null,onCellClick:null,onContouredChanged:null,hasFocus:function(e){return e.hasClass("dx-state-focused")}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===y.real().deviceType&&!y.isSimulator()},options:{focusStateEnabled:!0}}])},_supportedKeys:function(){return u(this.callBase(),{rightArrow:function(e){e.preventDefault(),e.ctrlKey?this._waitRenderView(1):this._moveCurrentDate(1*this._getRtlCorrection())},leftArrow:function(e){e.preventDefault(),e.ctrlKey?this._waitRenderView(-1):this._moveCurrentDate(-1*this._getRtlCorrection())},upArrow:function(e){if(e.preventDefault(),e.ctrlKey)this._navigateUp();else{if(b.isAnimating(this._view.$element()))return;this._moveCurrentDate(-1*this._view.option("colCount"))}},downArrow:function(e){if(e.preventDefault(),e.ctrlKey)this._navigateDown();else{if(b.isAnimating(this._view.$element()))return;this._moveCurrentDate(1*this._view.option("colCount"))}},home:function(e){e.preventDefault();var t=this.option("zoomLevel"),n=this.option("currentDate"),i=this._dateOption("min"),o=m.sameView(t,n,i)?i:m.getViewFirstCellDate(t,n);this._moveToClosestAvailableDate(o,1)},end:function(e){e.preventDefault();var t=this.option("zoomLevel"),n=this.option("currentDate"),i=this._dateOption("max"),o=m.sameView(t,n,i)?i:m.getViewLastCellDate(t,n);this._moveToClosestAvailableDate(o,-1)},pageUp:function(e){e.preventDefault(),this._waitRenderView(-1)},pageDown:function(e){e.preventDefault(),this._waitRenderView(1)},tab:r,enter:function(e){if(this._isMaxZoomLevel()){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"):s.isNumeric(t)?"number":s.isString(t)?v.getDateSerializationFormat(t):void 0},_convertToDate:function(e,t){return v.deserializeDate(e)},_dateValue:function(e,t){t&&this._saveValueChangeEvent(t),this._dateOption("value",e)},_dateOption:function(e,t){if(1===arguments.length)return this._convertToDate(this.option(e),e);var n=this._getSerializationFormat(e);this.option(e,v.serializeDate(t,n))},_moveCurrentDate:function(e,t){for(var n=t||new Date(this.option("currentDate")),i=this._getMaxDate(),o=this._getMinDate(),a=this.option("zoomLevel"),r=l(n,o,i),s=new Date(n),u=new Date(n),c=r,d=r;!e&&(c||d)||e&&c;){var h=e||1;switch(a){case I:s.setDate(s.getDate()+h),u.setDate(u.getDate()-h);break;case T:s.setMonth(s.getMonth()+h),u.setMonth(u.getMonth()-h);break;case D:s.setFullYear(s.getFullYear()+h),u.setFullYear(u.getFullYear()-h);break;case E:s.setFullYear(s.getFullYear()+10*h),u.setFullYear(u.getFullYear()-10*h)}if(!this._view.isDateDisabled(s)){n=s;break}if(!e&&!this._view.isDateDisabled(u)){n=u;break}d=l(u,o,i),c=l(s,o,i)}this.option("currentDate",n)},_moveToClosestAvailableDate:function(e,t){this._view.isDateDisabled(e)?this._moveCurrentDate(t,e):this.option("currentDate",e)},_init:function(){this.callBase(),this._correctZoomLevel(),this._initCurrentDate(),this._initActions()},_correctZoomLevel:function(){var e=this.option("minZoomLevel"),t=this.option("maxZoomLevel"),n=this.option("zoomLevel");S[t]<S[e]||(S[n]>S[t]?this.option("zoomLevel",t):S[n]<S[e]&&this.option("zoomLevel",e))},_initCurrentDate:function(){var e=this._getNormalizedDate(this._dateOption("value"))||this._getNormalizedDate(this.option("currentDate"));this.option("currentDate",e)},_getNormalizedDate:function(e){return e=m.normalizeDate(e,this._getMinDate(),this._getMaxDate()),s.isDefined(e)?new Date(e):e},_initActions:function(){this._cellClickAction=this._createActionByOption("onCellClick"),this._onContouredChanged=this._createActionByOption("onContouredChanged")},_initTemplates:function(){this.callBase(),this._defaultTemplates.cell=new C(function(e){var t=e.model;i(e.container).append(i("<span>").text(t&&t.text||String(t)))},this)},_updateCurrentDate:function(e){if(b.isAnimating(this._$viewsWrapper)&&b.stop(this._$viewsWrapper,!0),this._getMinDate()>this._getMaxDate())this.option("currentDate",new Date);else{var t=this._getNormalizedDate(e);if(e.getTime()===t.getTime()){var n=this._getViewsOffset(this._view.option("date"),t);0!==n&&!this._isMaxZoomLevel()&&this._isOtherViewCellClicked&&(n=0),this._view&&0!==n&&!this._suppressNavigation?this._navigate(n,t):(this._renderNavigator(),this._setViewContoured(t),this._updateAriaId(t))}else this.option("currentDate",new Date(t))}},_setViewContoured:function(e){this.option("hasFocus")(this._focusTarget())&&this._view.option("contouredDate",e)},_getMinDate:function(){return this.min?this.min:(this.min=this._dateOption("min")||new Date(1e3,0),this.min)},_getMaxDate:function(){return this.max?this.max:(this.max=this._dateOption("max")||new Date(3e3,0),this.max)},_getViewsOffset:function(e,t){var n,i=this.option("zoomLevel");if(i===I)return this._getMonthsOffset(e,t);switch(i){case E:n=100;break;case D:n=10;break;default:n=1}return parseInt(t.getFullYear()/n)-parseInt(e.getFullYear()/n)},_getMonthsOffset:function(e,t){return 12*(t.getFullYear()-e.getFullYear())+(t.getMonth()-e.getMonth())},_waitRenderView:function(e){if(!this._alreadyViewRender){this._alreadyViewRender=!0;var t=this._getDateByOffset(e*this._getRtlCorrection());this._moveToClosestAvailableDate(t,e),setTimeout(function(){this._alreadyViewRender=!1}.bind(this))}},_getRtlCorrection:function(){return this.option("rtlEnabled")?-1:1},_getDateByOffset:function(e,t){var n=(t=new Date(t||this.option("currentDate"))).getDate(),i=m.getDifferenceInMonth(this.option("zoomLevel"))*e;t.setDate(1),t.setMonth(t.getMonth()+i);var o=m.getLastMonthDate(t).getDate();return t.setDate(n>o?o:n),t},_focusTarget:function(){return this.$element()},_initMarkup:function(){this._renderSubmitElement(),this.callBase();var e=this.$element();e.addClass("dx-calendar"),this._renderBody(),e.append(this.$body),this._renderViews(),this._renderNavigator(),e.append(this._navigator.$element()),this._renderSwipeable(),this._renderFooter(),this.setAria({role:"listbox",label:w.format("dxCalendar-ariaWidgetName")}),this._updateAriaSelected(),this._updateAriaId(),this._view.isDateDisabled(this.option("currentDate"))&&this._moveCurrentDate(0)},_render:function(){this.callBase(),this._setViewContoured(this.option("currentDate"))},_renderBody:function(){this._$viewsWrapper||(this.$body=i("<div>").addClass("dx-calendar-body"),this._$viewsWrapper=i("<div>").addClass("dx-calendar-views-wrapper"),this.$body.append(this._$viewsWrapper))},_renderViews:function(){this.$element().addClass(k+"-"+this.option("zoomLevel"));var e=this.option("currentDate");if(this._view=this._renderSpecificView(e),this._view.option("_keyboardProcessor",this._viewKeyboardProcessor),x.hasWindow()){var t=this._getDateByOffset(-1,e);this._beforeView=this._isViewAvailable(t)?this._renderSpecificView(t):null;var n=this._getDateByOffset(1,e);n.setDate(1),this._afterView=this._isViewAvailable(n)?this._renderSpecificView(n):null}this._translateViews()},_renderSpecificView:function(e){return new(0,f[this.option("zoomLevel")])(i("<div>").appendTo(this._$viewsWrapper),this._viewConfig(e))},_viewConfig:function(e){var t=this.option("disabledDates");return t=s.isFunction(t)?this._injectComponent(t.bind(this)):t,{date:e,min:this._getMinDate(),max:this._getMaxDate(),firstDayOfWeek:this.option("firstDayOfWeek"),value:this._dateOption("value"),rtl:this.option("rtlEnabled"),disabled:this.option("disabled"),tabIndex:void 0,focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),disabledDates:t,onCellClick:this._cellClickHandler.bind(this),cellTemplate:this._getTemplateByOption("cellTemplate"),allowValueSelection:this._isMaxZoomLevel()}},_injectComponent:function(e){var t=this;return function(n){return u(n,{component:t}),e(n)}},_isViewAvailable:function(e){var t=this.option("zoomLevel"),n=m.getViewMinBoundaryDate(t,this._getMinDate()),i=m.getViewMaxBoundaryDate(t,this._getMaxDate());return m.dateInRange(e,n,i)},_translateViews:function(){g.move(this._view.$element(),{left:0,top:0}),this._beforeView&&g.move(this._beforeView.$element(),{left:this._getViewPosition(-1),top:0}),this._afterView&&g.move(this._afterView.$element(),{left:this._getViewPosition(1),top:0})},_getViewPosition:function(e){return 100*e*(this.option("rtlEnabled")&&!_.msie?-1:1)+"%"},_cellClickHandler:function(e){var t=this.option("zoomLevel"),n=m.getViewDown(t),i=this._isMaxZoomLevel();if(n&&!i)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),n=this._dateOption("value");return n&&(t.setHours(n.getHours()),t.setMinutes(n.getMinutes()),t.setSeconds(n.getSeconds()),t.setMilliseconds(n.getMilliseconds())),t},_isMaxZoomLevel:function(){return this.option("zoomLevel")===this.option("maxZoomLevel")},_navigateDown:function(e){var t=this.option("zoomLevel");if(!this._isMaxZoomLevel()){var n=m.getViewDown(t);if(n){var o=this._view.option("contouredDate")||this._view.option("date");e&&(o=i(e).data("dxDateValueKey")),this._isOtherViewCellClicked=!0,this.option("currentDate",o),this.option("zoomLevel",n),this._isOtherViewCellClicked=!1,this._renderNavigator(),this._animateShowView(),this._setViewContoured(this._getNormalizedDate(o))}}},_renderNavigator:function(){this._navigator||(this._navigator=new p(i("<div>"),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,1*e.direction),this._updateNavigatorCaption(-e.direction*this._getRtlCorrection())},_navigateUp:function(){var e=this.option("zoomLevel"),t=m.getViewUp(e);if(t&&!this._isMinZoomLevel(e)){var n=this._view.option("contouredDate");this.option("zoomLevel",t),this.option("currentDate",n||this._view.option("date")),this._renderNavigator(),this._animateShowView().done(function(){this._setViewContoured(n)}.bind(this))}},_isMinZoomLevel:function(e){var t=this._getMinDate(),n=this._getMaxDate();return m.sameView(e,t,n)||this.option("minZoomLevel")===e},_updateButtonsVisibility:function(){this._navigator.toggleButton("next",!s.isDefined(this._getRequiredView("next"))),this._navigator.toggleButton("prev",!s.isDefined(this._getRequiredView("prev")))},_renderSwipeable:function(){this._swipeable||(this._swipeable=this._createComponent(this.$element(),h,{onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._viewWidth.bind(this)}))},_swipeStartHandler:function(e){b.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,n=this.option("rtlEnabled");return"next"===e?t=n?this._beforeView:this._afterView:"prev"===e&&(t=n?this._afterView:this._beforeView),t},_swipeUpdateHandler:function(e){var t=e.event.offset;g.move(this._$viewsWrapper,{left:t*this._viewWidth(),top:0}),this._updateNavigatorCaption(t)},_swipeEndHandler:function(e){var t=e.event.targetOffset,n=t?t/Math.abs(t):0;if(0!==n){var i=this._getDateByOffset(-n*this._getRtlCorrection());this._isDateInInvalidRange(i)&&(i=n>=0?new Date(this._getMinDate()):new Date(this._getMaxDate())),this.option("currentDate",i)}else this._animateWrapper(0,250)},_viewWidth:function(){return this._viewWidthValue||(this._viewWidthValue=this.$element().width()),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(),n=this._getMaxDate(),i=m.normalizeDate(e,t,n);return i===t||i===n}},_renderFooter:function(){var e=this.option("showTodayButton");if(e){var t=this._createComponent(i("<a>"),c,{focusStateEnabled:!1,text:w.format("dxCalendar-todayButtonText"),onClick:function(){this._toTodayView()}.bind(this),integrationOptions:{}}).$element().addClass("dx-calendar-today-button");this._$footer=i("<div>").addClass("dx-calendar-footer").append(t),this.$element().append(this._$footer)}this.$element().toggleClass("dx-calendar-with-footer",e)},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(e){var t=this._convertToDate(e);this._$submitElement.val(v.serializeDate(t,"yyyy-MM-dd"))},_getSubmitElement:function(){return this._$submitElement},_animateShowView:function(){return b.stop(this._view.$element(),!0),this._popAnimationView(this._view,.6,1,250).promise()},_popAnimationView:function(e,t,n,i){return b.animate(e.$element(),{type:"pop",from:{scale:t,opacity:t},to:{scale:n,opacity:n},duration:i})},_navigate:function(e,t){if(0!==e&&1!==Math.abs(e)&&this._isViewAvailable(t)){var n=this._renderSpecificView(t);e>0?(this._afterView&&this._afterView.$element().remove(),this._afterView=n):(this._beforeView&&this._beforeView.$element().remove(),this._beforeView=n),this._translateViews()}var i=-this._getRtlCorrection()*(e>0?1:e<0?-1:0)*this._viewWidth();this._$viewsWrapper.position().left!==i&&(this._preventViewChangeAnimation?this._wrapperAnimationEndHandler(e,t):this._animateWrapper(i,250).done(this._wrapperAnimationEndHandler.bind(this,e,t)))},_animateWrapper:function(e,t){return b.animate(this._$viewsWrapper,{type:"slide",from:{left:this._$viewsWrapper.position().left},to:{left:e},duration:t})},_toTodayView:function(){var e=new Date;return this._isMaxZoomLevel()?void this._dateOption("value",e):(this._preventViewChangeAnimation=!0,this.option("zoomLevel",this.option("maxZoomLevel")),this._dateOption("value",e),this._animateShowView(),void(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,n,i;if(0!==e&&(e<0?(t=1,n="_beforeView",i="_afterView"):(t=-1,n="_afterView",i="_beforeView"),this[n])){var o=this[n].option("date");this[i]&&this[i].$element().remove(),e===t?this[i]=this._view:(this[i]=this._renderSpecificView(this._getDateByOffset(t,o)),this._view.$element().remove()),this._view=this[n];var a=this._getDateByOffset(-t,o);this[n]=this._isViewAvailable(a)?this._renderSpecificView(a):null}},_resetLocation:function(){g.move(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},_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){e=e||this._dateOption("value");var n=this._view._getCellByDate(t),i=this._view._getCellByDate(e);this.setAria("selected",void 0,n),this.setAria("selected",!0,i),e&&this.option("currentDate").getTime()===e.getTime()&&this._updateAriaId(e)},_updateAriaId:function(e){e=e||this.option("currentDate");var t="dx-"+new o,n=this._view._getCellByDate(e);this.setAria("id",t,n),this.setAria("activedescendant",t),this._onContouredChanged(t)},_suppressingNavigation:function(e,t){this._suppressNavigation=!0,e.apply(this,t),delete this._suppressNavigation},_optionChanged:function(e){var t=e.value,n=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(n)),this._updateCurrentDate(t);break;case"zoomLevel":this.$element().removeClass(k+"-"+n),this._correctZoomLevel(),this._refreshViews(),this._renderNavigator(),this._updateAriaId();break;case"minZoomLevel":case"maxZoomLevel":this._correctZoomLevel(),this._updateButtonsVisibility();break;case"value":t=this._convertToDate(t),n=this._convertToDate(n),this._updateAriaSelected(t,n),this.option("currentDate",s.isDefined(t)?new Date(t):new Date),this._updateViewsValue(t),this._setSubmitValue(t),this.callBase(e);break;case"disabled":this._view.option("disabled",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"hasFocus":break;default:this.callBase(e)}}});a("dxCalendar",A),e.exports=A},function(e,t,n){var i=n(2),o=n(0).extend,a=n(17),r=n(34),s=a.inherit({_getDefaultOptions:function(){return o(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("dx-calendar-navigator"),this._renderButtons(),this._renderCaption()},_renderButtons:function(){var e=this,t=this.option("rtlEnabled")?-1:1;this._prevButton=this._createComponent(i("<a>"),r,{focusStateEnabled:!1,icon:"chevronleft",onClick:function(n){e._clickAction({direction:-t,event:n})},integrationOptions:{}});var n=this._prevButton.$element().addClass("dx-calendar-navigator-previous-view").addClass("dx-calendar-navigator-previous-month");this._nextButton=this._createComponent(i("<a>"),r,{focusStateEnabled:!1,icon:"chevronright",onClick:function(n){e._clickAction({direction:t,event:n})},integrationOptions:{}});var o=this._nextButton.$element().addClass("dx-calendar-navigator-next-view").addClass("dx-calendar-navigator-next-month");this._caption=this._createComponent(i("<a>").addClass("dx-calendar-caption-button"),r,{focusStateEnabled:!1,onClick:function(t){e._captionClickAction({event:t})},integrationOptions:{}});var a=this._caption.$element();this.$element().append(n,a,o)},_renderCaption:function(){this._caption.option("text",this.option("text"))},toggleButton:function(e,t){var n=this["_"+e+"Button"];n&&(n.option("disabled",t),n.$element().toggleClass("dx-calendar-disabled-navigator-link",t))},_optionChanged:function(e){switch(e.name){case"text":this._renderCaption();break;default:this.callBase(e)}}});e.exports=s},function(e,t,n){var i=n(2),o=n(4).noop,a=n(519),r=n(22),s=n(0).extend,l=n(33),u=n(56),c=n(1),d={month:a.inherit({_getViewName:function(){return"month"},_getDefaultOptions:function(){return s(this.callBase(),{firstDayOfWeek:void 0,rowCount:6,colCount:7})},_renderImpl:function(){this.callBase(),this._renderHeader()},_renderBody:function(){this.callBase(),this._$table.find(".dx-calendar-other-view").addClass("dx-calendar-other-month")},_renderFocusTarget:o,getCellAriaLabel:function(e){return l.format(e,"longdate")},_renderHeader:function(){var e=this,t=i("<thead>");this._$table.prepend(t);var n=i("<tr>");t.append(n);var o=this.option("rtl")?function(e,t){e.prepend(t)}:function(e,t){e.append(t)};this._iterateCells(this.option("colCount"),function(t){var a=i("<th>").text(e._getDayCaption(e._getFirstDayOfWeek()+t));o(n,a)})},getNavigatorCaption:function(){return l.format(this.option("date"),"monthandyear")},_isTodayCell:function(e){var t=new Date;return r.sameDate(e,t)},_isDateOutOfRange:function(e){var t=this.option("min"),n=this.option("max");return!r.dateInRange(e,t,n,"date")},_isOtherView:function(e){return e.getMonth()!==this.option("date").getMonth()},_getCellText:function(e){return l.format(e,"d")},_getDayCaption:function(e){var t=this.option("colCount");return l.getDayNames("abbreviated")[e%t]},_getFirstCellData:function(){var e=r.getFirstMonthDate(this.option("date")),t=this._getFirstDayOfWeek()-e.getDay(),n=this.option("colCount");return t>=0&&(t-=n),e.setDate(e.getDate()+t),e},_getNextCellData:function(e){return(e=new Date(e)).setDate(e.getDate()+1),e},_getFirstDayOfWeek:function(){return c.isDefined(this.option("firstDayOfWeek"))?this.option("firstDayOfWeek"):l.firstDayOfWeekIndex()},_getCellByDate:function(e){return this._$table.find("td[data-value='"+u.serializeDate(e,r.getShortDateFormat())+"']")},isBoundary:function(e){return r.sameMonthAndYear(e,this.option("min"))||r.sameMonthAndYear(e,this.option("max"))},_getDefaultDisabledDatesHandler:function(e){return function(t){if(e.some(function(e){return r.sameDate(e,t.date)}))return!0}}}),year:a.inherit({_getViewName:function(){return"year"},_isTodayCell:function(e){return r.sameMonthAndYear(e,new Date)},_isDateOutOfRange:function(e){return!r.dateInRange(e,r.getFirstMonthDate(this.option("min")),r.getLastMonthDate(this.option("max")))},_isOtherView:function(){return!1},_getCellText:function(e){return l.getMonthNames("abbreviated")[e.getMonth()]},_getFirstCellData:function(){var e=new Date(this.option("date"));return e.setDate(1),e.setMonth(0),e},_getNextCellData:function(e){return(e=new Date(e)).setMonth(e.getMonth()+1),e},_getCellByDate:function(e){var t=new Date(e);return t.setDate(1),this._$table.find("td[data-value='"+u.serializeDate(t,r.getShortDateFormat())+"']")},getCellAriaLabel:function(e){return l.format(e,"monthandyear")},getNavigatorCaption:function(){return l.format(this.option("date"),"yyyy")},isBoundary:function(e){return r.sameYear(e,this.option("min"))||r.sameYear(e,this.option("max"))}}),decade:a.inherit({_getViewName:function(){return"decade"},_isTodayCell:function(e){return r.sameYear(e,new Date)},_isDateOutOfRange:function(e){var t=this.option("min"),n=this.option("max");return!r.dateInRange(e.getFullYear(),t&&t.getFullYear(),n&&n.getFullYear())},_isOtherView:function(e){var t=new Date(e);return t.setMonth(1),!r.sameDecade(t,this.option("date"))},_getCellText:function(e){return l.format(e,"yyyy")},_getFirstCellData:function(){var e=r.getFirstYearInDecade(this.option("date"))-1;return new Date(e,0,1)},_getNextCellData:function(e){return(e=new Date(e)).setFullYear(e.getFullYear()+1),e},getNavigatorCaption:function(){var e=this.option("date"),t=r.getFirstYearInDecade(e),n=new Date(e),i=new Date(e);return n.setFullYear(t),i.setFullYear(t+9),l.format(n,"yyyy")+"-"+l.format(i,"yyyy")},_isValueOnCurrentView:function(e,t){return r.sameDecade(e,t)},_getCellByDate:function(e){var t=new Date(e);return t.setDate(1),t.setMonth(0),this._$table.find("td[data-value='"+u.serializeDate(t,r.getShortDateFormat())+"']")},isBoundary:function(e){return r.sameDecade(e,this.option("min"))||r.sameDecade(e,this.option("max"))}}),century:a.inherit({_getViewName:function(){return"century"},_isTodayCell:function(e){return r.sameDecade(e,new Date)},_isDateOutOfRange:function(e){var t=r.getFirstYearInDecade(e),n=r.getFirstYearInDecade(this.option("min")),i=r.getFirstYearInDecade(this.option("max"));return!r.dateInRange(t,n,i)},_isOtherView:function(e){var t=new Date(e);return t.setMonth(1),!r.sameCentury(t,this.option("date"))},_getCellText:function(e){var t=l.format(e,"yyyy"),n=new Date(e);return n.setFullYear(n.getFullYear()+9),t+" - "+l.format(n,"yyyy")},_getFirstCellData:function(){var e=r.getFirstDecadeInCentury(this.option("date"))-10;return new Date(e,0,1)},_getNextCellData:function(e){return(e=new Date(e)).setFullYear(e.getFullYear()+10),e},_getCellByDate:function(e){var t=new Date(e);return t.setDate(1),t.setMonth(0),t.setFullYear(r.getFirstYearInDecade(t)),this._$table.find("td[data-value='"+u.serializeDate(t,r.getShortDateFormat())+"']")},getNavigatorCaption:function(){var e=this.option("date"),t=r.getFirstDecadeInCentury(e),n=new Date(e),i=new Date(e);return n.setFullYear(t),i.setFullYear(t+99),l.format(n,"yyyy")+"-"+l.format(i,"yyyy")},isBoundary:function(e){return r.sameCentury(e,this.option("min"))||r.sameCentury(e,this.option("max"))}})};e.exports=d},function(e,t,n){var i=n(2),o=n(12),a=n(5),r=n(37),s=n(10),l=n(17),u=n(22),c=n(0).extend,d=n(4).noop,h=n(56),p=n(9),f=n(19),g=l.abstract,_="dx-calendar-other-view",m="dx-calendar-cell",v="dx-calendar-empty-cell",y="dx-calendar-today",b="dx-calendar-selected-date",x="dx-calendar-contoured-date",w=p.addNamespace(f.name,"dxCalendar"),C="dxDateValueKey",k=l.inherit({_getViewName:function(){return"base"},_getDefaultOptions:function(){return c(this.callBase(),{date:new Date,focusStateEnabled:!1,cellTemplate:null,disabledDates:null,onCellClick:null,rowCount:3,colCount:4,allowValueSelection:!0})},_init:function(){this.callBase();var e=this.option("value");this.option("value",new Date(e)),this.option("value").valueOf()||this.option("value",new Date(0,0,0,0,0,0))},_initMarkup:function(){this.callBase(),this._renderImpl()},_renderImpl:function(){this._$table=i("<table>"),this.$element().append(this._$table),this._createDisabledDatesHandler(),this._renderBody(),this._renderContouredDate(),this._renderValue(),this._renderEvents()},_renderBody:function(){function e(e){t&&u.fixTimezoneGap(t,c),t=c;var d=o.createElement("td"),p=i(d),f=m;n._isTodayCell(c)&&(f=f+" "+y),(n._isDateOutOfRange(c)||n.isDateDisabled(c))&&(f=f+" "+v),n._isOtherView(c)&&(f=f+" "+_),d.className=f,d.setAttribute("data-value",h.serializeDate(c,u.getShortDateFormat())),r.data(d,C,c),n.setAria({role:"option",label:n.getCellAriaLabel(c)},p),l(g,d),a?a.render({model:{text:n._getCellText(c),date:c,view:n._getViewName()},container:s.getPublicElement(p),index:e}):d.innerHTML=n._getCellText(c),c=n._getNextCellData(c)}this.$body=i("<tbody>").appendTo(this._$table);for(var t,n=this,a=this.option("cellTemplate"),l=this.option("rtl")?function(e,t){e.insertBefore(t,e.firstChild)}:function(e,t){e.appendChild(t)},c=this._getFirstCellData(),d=this.option("colCount"),p=0,f=this.option("rowCount");p<f;p++){var g=o.createElement("tr");this.$body.get(0).appendChild(g),this._iterateCells(d,e)}},_iterateCells:function(e,t){for(var n=0;n<e;)t(n),++n},_renderEvents:function(){this._createCellClickAction(),a.off(this._$table,w),a.on(this._$table,w,"td",function(e){i(e.currentTarget).hasClass(v)||this._cellClickAction({event:e,value:i(e.currentTarget).data(C)})}.bind(this))},_createCellClickAction:function(){this._cellClickAction=this._createActionByOption("onCellClick")},_createDisabledDatesHandler:function(){var e=this.option("disabledDates");this._disabledDatesHandler=Array.isArray(e)?this._getDefaultDisabledDatesHandler(e):e||d},_getDefaultDisabledDatesHandler:function(e){return d},_isTodayCell:g,_isDateOutOfRange:g,isDateDisabled:function(e){var t={date:e,view:this._getViewName()};return this._disabledDatesHandler(t)},_isOtherView:g,_getCellText:g,_getFirstCellData:g,_getNextCellData:g,_renderContouredDate:function(e){if(this.option("focusStateEnabled")){e=e||this.option("contouredDate");var t=this._$table.find("."+x),n=this._getCellByDate(e);t.removeClass(x),n.addClass(x)}},_dispose:function(){this._keyboardProcessor=void 0,this.callBase()},_changeValue:function(e){if(e){var t=this.option("value"),n=t?new Date(t):new Date;n.setDate(e.getDate()),n.setMonth(e.getMonth()),n.setFullYear(e.getFullYear()),n.setDate(e.getDate()),this.option("value",n)}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(b),t.addClass(b),this._selectedCell=t}},getCellAriaLabel:function(e){return this._getCellText(e)},_getFirstAvailableDate:function(){var e=this.option("date"),t=this.option("min");return e=u.getFirstDateView(this._getViewName(),e),new Date(t&&e<t?t:e)},_getCellByDate:g,isBoundary:g,_optionChanged:function(e){switch(e.name){case"value":this._renderValue();break;case"contouredDate":this._renderContouredDate(e.value);break;case"onCellClick":this._createCellClickAction();break;case"disabledDates":case"cellTemplate":this._invalidate();break;default:this.callBase(e)}}});e.exports=k},function(e,t,n){var i=n(2),o=n(5),a=n(90),r=n(300),s=n(0).extend,l=n(1).isFunction,u=n(8),c=n(161),d="dx-colorbox",h=d+"-input",p=d+"-color-is-not-defined",f=r.prototype,g={makeTransparentBackground:f._makeTransparentBackground.bind(f),makeRgba:f._makeRgba.bind(f)},_=c.inherit({_supportedKeys:function(){var e=function(e){if(e.stopPropagation(),this.option("opened"))return e.preventDefault(),!0};return s(this.callBase(),{tab:function(e){this.option("opened")&&(e.preventDefault(),this._colorView._rgbInputs[0].focus())},enter:this._enterKeyHandler,leftArrow:e,rightArrow:e,upArrow:function(e){return this.option("opened")?!e.altKey||(this.close(),!1):(e.preventDefault(),!1)},downArrow:function(e){return this.option("opened")||e.altKey?!(!this.option("opened")&&e.altKey&&(this._validatedOpening(),1)):(e.preventDefault(),!1)}})},_getDefaultOptions:function(){return s(this.callBase(),{editAlphaChannel:!1,applyValueMode:"useButtons",keyStep:1,fieldTemplate:null,onApplyButtonClick:null,onCancelButtonClick:null,buttonsLocation:"bottom after"})},_popupConfig:function(){return s(this.callBase(),{height:"auto",width:""})},_contentReadyHandler:function(){this._createColorView(),this._addPopupBottomClasses()},_addPopupBottomClasses:function(){var e=this._popup.bottomToolbar();e&&(e.addClass("dx-colorview-container-cell").addClass("dx-colorview-button-cell").find(".dx-toolbar-items-container").addClass("dx-colorview-buttons-container"),e.find(".dx-popup-done").addClass("dx-colorview-apply-button"),e.find(".dx-popup-cancel").addClass("dx-colorview-cancel-button"))},_createColorView:function(){this._popup.overlayContent().addClass("dx-colorbox-overlay");var e=i("<div>").appendTo(this._popup.$content());this._colorView=this._createComponent(e,r,this._colorViewConfig()),o.on(e,"focus",function(){this.focus()}.bind(this))},_applyNewColor:function(e){this.option("value",e),e&&g.makeTransparentBackground(this._$colorResultPreview,e),this._colorViewEnterKeyPressed&&(this.close(),this._colorViewEnterKeyPressed=!1)},_colorViewConfig:function(){var e=this;return{value:e.option("value"),matchValue:e.option("value"),editAlphaChannel:e.option("editAlphaChannel"),applyValueMode:e.option("applyValueMode"),focusStateEnabled:e.option("focusStateEnabled"),stylingMode:this.option("stylingMode"),onEnterKeyPressed:function(){e._colorViewEnterKeyPressed=!0,e._colorView.option("value")!==e.option("value")&&(e._applyNewColor(e._colorView.option("value")),e.close())},onValueChanged:function(t){g.makeRgba(t.value)!==t.previousValue&&(("instantly"===e.option("applyValueMode")||e._colorViewEnterKeyPressed)&&e._applyNewColor(t.value))},_keyboardProcessor:e._colorViewProcessor}},_enterKeyHandler:function(){var e=this._input().val(),t=this.option("value"),n=this.option("editAlphaChannel")?g.makeRgba(t):t;if(!e)return!1;if(!new a(e).colorIsInvalid){if(e!==n&&(this._applyColorFromInput(e),this.option("value",this.option("editAlphaChannel")?g.makeRgba(e):e)),this._colorView){var i=this._colorView.option("value");t!==i&&this.option("value",i)}return this.close(),!1}this._input().val(n)},_applyButtonHandler:function(){this._applyNewColor(this._colorView.option("value")),l(this.option("onApplyButtonClick"))&&this.option("onApplyButtonClick")(),this.callBase()},_cancelButtonHandler:function(){this._resetInputValue(),l(this.option("onCancelButtonClick"))&&this.option("onCancelButtonClick")(),this.callBase()},_attachChildKeyboardEvents:function(){this._colorViewProcessor=this._keyboardProcessor.attachChildProcessor(),this._colorView&&this._colorView.option("_keyboardProcessor",this._colorViewProcessor)},_init:function(){this.callBase()},_initMarkup:function(){this.$element().addClass(d),this.callBase()},_renderInput:function(){this.callBase(),this._input().addClass(h),this._renderColorPreview()},_renderColorPreview:function(){this.$element().wrapInner(i("<div>").addClass("dx-colorbox-input-container")),this._$colorBoxInputContainer=this.$element().children().eq(0),this._$colorResultPreview=i("<div>").addClass("dx-colorbox-color-result-preview").appendTo(this._$textEditorInputContainer),this.option("value")?g.makeTransparentBackground(this._$colorResultPreview,this.option("value")):this._$colorBoxInputContainer.addClass(p)},_renderValue:function(){var e=this.option("value");return this.option("text",this.option("editAlphaChannel")?g.makeRgba(e):e),this.callBase()},_resetInputValue:function(){var e=this._input(),t=this.option("value");e.val(t),this._updateColorViewValue(t)},_updateColorViewValue:function(e){this._colorView&&this._colorView.option({value:e,matchValue:e})},_valueChangeEventHandler:function(e){var t=this._input().val();t&&(t=this._applyColorFromInput(t),this._updateColorViewValue(t)),this.callBase(e,t)},_applyColorFromInput:function(e){return new a(e).colorIsInvalid&&(this._resetInputValue(),e=this.option("value")),e},_optionChanged:function(e){var t=e.value,n=e.name;switch(n){case"value":this._$colorBoxInputContainer.toggleClass(p,!t),t?g.makeTransparentBackground(this._$colorResultPreview,t):this._$colorResultPreview.removeAttr("style"),this._updateColorViewValue(t),this.callBase(e);break;case"applyButtonText":case"cancelButtonText":this.callBase(e),this._popup&&this._addPopupBottomClasses();break;case"editAlphaChannel":case"onCancelButtonClick":case"onApplyButtonClick":case"keyStep":this._colorView&&this._colorView.option(n,t);break;case"applyValueMode":this.callBase(e);break;case"rtlEnabled":this._colorView&&this._colorView.option(n,t),this.callBase(e);break;default:this.callBase(e)}}});u("dxColorBox",_),e.exports=_},function(e,t,n){var i=n(8),o=n(522);i("dxNumberBox",o),e.exports=o},function(e,t,n){var i=n(5),o=n(0).extend,a=n(1).isNumeric,r=n(31),s=n(16),l=n(29).fitIntoRange,u=n(29).inRange,c=n(4).escapeRegExp,d=n(51),h=n(523),p=n(274).getFormat,f=n(524),g=n(9),_=n(1),m="dxNumberFormatter",v="minus",y="input",b=r.msie?300:0,x=function(e,t){return void 0===e?t:e},w=f.inherit({_getDefaultOptions:function(){return o(this.callBase(),{useMaskBehavior:!0,format:null})},_isDeleteKey:function(e){return"del"===e},_supportedKeys:function(){if(!this._useMaskBehavior())return this.callBase();var e=this;return o(this.callBase(),{minus:e._revertSign.bind(e),del:e._removeHandler.bind(e),backspace:e._removeHandler.bind(e),leftArrow:e._arrowHandler.bind(e,-1),rightArrow:e._arrowHandler.bind(e,1),home:e._moveCaretToBoundaryEventHandler.bind(e,1),enter:e._updateFormattedValue.bind(e),end:e._moveCaretToBoundaryEventHandler.bind(e,-1)})},_focusInHandler:function(e){this.callBase(e),this.clearCaretTimeout(),this._caretTimeout=setTimeout(function(){this._caretTimeout=null;var t=this._caret();if(t.start===t.end&&this._useMaskBehavior()){var n=this._getInputVal(),i=d.getDecimalSeparator(),o=n.indexOf(i);o>=0?this._caret({start:o,end:o}):this._moveCaretToBoundaryEventHandler(-1,e)}}.bind(this),b)},_focusOutHandler:function(e){this._focusOutOccurs=!0,this._useMaskBehavior()&&this._updateFormattedValue(),this.callBase(e),this._focusOutOccurs=!1},_hasValueBeenChanged:function(e){var t=this._getFormatPattern(),n=this.option("value");return(this._format(n,t)||"")!==e},_updateFormattedValue:function(){var e=this._getInputVal();this._hasValueBeenChanged(e)&&(this._parsedValue=this._tryParse(e,this._caret()),this._adjustParsedValue(),this._setTextByParsedValue(),this._parsedValue!==this.option("value")&&i.trigger(this._input(),"change"))},_arrowHandler:function(e,t){if(this._useMaskBehavior()){var n=this._getInputVal(),i=this._getFormatPattern(),o=h.getCaretWithOffset(this._caret(),e);h.isCaretInBoundaries(o,n,i)||(o=1===e?o.end:o.start,t.preventDefault(),this._caret(h.getCaretInBoundaries(o,n,i)))}},_moveCaretToBoundary:function(e){var t=h.getCaretBoundaries(this._getInputVal(),this._getFormatPattern()),n=h.getCaretWithOffset(1===e?t.start:t.end,0);this._caret(n)},_moveCaretToBoundaryEventHandler:function(e,t){!this._useMaskBehavior()||t&&t.shiftKey||(this._moveCaretToBoundary(e),t&&t.preventDefault())},_shouldMoveCaret:function(e,t){var n=d.getDecimalSeparator(),i=e.charAt(t.end)===n,o="0"===e.charAt(t.end),a=(this._lastKey===n||"."===this._lastKey)&&i,r="0"===this._lastKey&&o;return a||r},_getInputVal:function(){return d.convertDigits(this._input().val(),!0)},_keyboardHandler:function(e){if(this.clearCaretTimeout(),this._lastKey=d.convertDigits(g.getChar(e),!0),this._lastKeyName=g.normalizeKeyName(e),!this._shouldHandleKey(e.originalEvent))return this.callBase(e);var t=this._getInputVal(),n=this._caret(),i=this._lastKeyName===v?"":this._lastKey,o=this._tryParse(t,n,i);return void 0===o?(this._lastKeyName!==v&&e.originalEvent.preventDefault(),this._shouldMoveCaret(t,n)&&this._moveCaret(1)):this._parsedValue=o,this.callBase(e)},_keyPressHandler:function(e){this._useMaskBehavior()||this.callBase(e)},_removeHandler:function(e){var t=this._caret(),n=this._getInputVal(),i=t.start,o=t.end;this._lastKey=g.getChar(e),this._lastKeyName=g.normalizeKeyName(e);var a=this._isDeleteKey(this._lastKeyName),r=!a;if(i===o){if(!(r&&i>0||a&&i<n.length))return void e.preventDefault();a&&o++,r&&i--}var s=n.slice(i,o);if(this._isStub(s))return this._moveCaret(a?1:-1),(this._parsedValue<0||1/this._parsedValue==-1/0)&&(this._revertSign(e),this._setTextByParsedValue()),void e.preventDefault();var l=d.getDecimalSeparator();if(s!==l){if(o-i<n.length)if(this._replaceSelectedText(n,{start:i,end:o},"").search(/[0-9]/)<0&&this._isValueInRange(0))return void(this._parsedValue=this._parsedValue<0||1/this._parsedValue==-1/0?-0:0);var u=this._tryParse(n,{start:i,end:o},"");void 0===u?e.preventDefault():this._parsedValue=u}else{var c=n.indexOf(l);this._isNonStubAfter(c+1)&&(this._moveCaret(a?1:-1),e.preventDefault())}},_isPercentFormat:function(){return-1!==this._getFormatPattern().replace(/'[^']+'/g,"").indexOf("%")},_parse:function(e,t){var n=this.option("format");return(_.isFunction(n.parser)?n.parser:d.parse)(e,t)},_format:function(e,t){var n=this.option("format");return(_.isFunction(n.formatter)?n.formatter:d.format)(e,t)},_getFormatPattern:function(){var e=this.option("format");return"string"==typeof e&&(e.indexOf("0")>=0||e.indexOf("#")>=0)?e:p(function(t){var n=this._format(t,e);return d.convertDigits(n,!0)}.bind(this))},_getFormatForSign:function(e){var t=this._getFormatPattern(),n=t.split(";"),i=d.getSign(e,t);return n[1]=n[1]||"-"+n[0],i<0?n[1]:n[0]},_removeStubs:function(e,t){var n=this._getFormatForSign(e),i=d.getThousandsSeparator(),o=n.replace(/[#0.,]/g,""),a=new RegExp("[-"+c((t?"":i)+o)+"]","g");return e.replace(a,"")},_truncateToPrecision:function(e,t){if(_.isDefined(e)){var n=e.toString(),i=n.indexOf(".");if(n&&i>-1){var o=parseFloat(n.substr(0,i+t+1));return isNaN(o)?e:o}}return e},_tryParse:function(e,t,n){var i=this._replaceSelectedText(e,t,n),o=this._getFormatPattern(),a=t.start!==t.end,r=this._parse(i,o),s=this._getPrecisionLimits(o,i).max,l=r!==this._parsedValue,u=n===d.getDecimalSeparator()&&0===s,c=!a&&!l&&"-"!==n&&!this._isValueIncomplete(i)&&this._isStub(n);if(!u&&!c&&(""===this._removeStubs(i)&&(r=0*this._parsedValue),!isNaN(r))){var h=null===r?this._parsedValue:r;return r=this._truncateToPrecision(h,s),this._isPercentFormat()?r&&r/100:r}},_isValueIncomplete:function(e){if(!this._useMaskBehavior())return this.callBase(e);var t=this._caret(),n=d.getDecimalSeparator(),i=e.indexOf(n),o=i>=0&&i<t.start,a=this._removeStubs(e,!0).split(n);if(!o||2!==a.length)return!1;var r=a[1].length,s=this._getPrecisionLimits(this._getFormatPattern(),e),l=u(r,s.min,s.max),c="0"===a[1].charAt(r-1);return l&&(c||!r)},_isValueInRange:function(e){var t=x(this.option("min"),-1/0),n=x(this.option("max"),1/0);return u(e,t,n)},_setInputText:function(e){var t=d.convertDigits(e,!0),n=h.getCaretAfterFormat(this._getInputVal(),t,this._caret(),this._getFormatPattern());this._input().val(e),this._toggleEmptinessEventHandler(),this._formattedValue=e,this._focusOutOccurs||this._caret(n)},_useMaskBehavior:function(){return!!this.option("format")&&this.option("useMaskBehavior")},_renderInputType:function(){var e="number"===this.option("mode"),t="desktop"!==s.real().deviceType;this._useMaskBehavior()&&e?this._setInputType(t?"tel":"text"):this.callBase()},_isChar:function(e){return"string"==typeof e&&1===e.length},_moveCaret:function(e){if(e){var t=h.getCaretWithOffset(this._caret(),e),n=h.getCaretInBoundaries(t,this._getInputVal(),this._getFormatPattern());this._caret(n)}},_shouldHandleKey:function(e){var t=g.normalizeKeyName(e),n=e.ctrlKey||e.shiftKey||e.altKey||!this._isChar(t),i=t===v;return this._useMaskBehavior()&&!n&&!i},_renderInput:function(){this.callBase(),this._renderFormatter()},_renderFormatter:function(){this._clearCache(),this._detachFormatterEvents(),this._useMaskBehavior()&&this._attachFormatterEvents()},_detachFormatterEvents:function(){i.off(this._input(),"."+m)},_attachFormatterEvents:function(){var e=this._input();i.on(e,g.addNamespace(y,m),this._formatValue.bind(this)),i.on(e,g.addNamespace("dxclick",m),function(){this._caretTimeout||(this._caretTimeout=setTimeout(function(){this._caret(h.getCaretInBoundaries(this._caret(),this._getInputVal(),this._getFormatPattern()))}.bind(this),b))}.bind(this)),i.on(e,"dxdblclick",function(){this.clearCaretTimeout()}.bind(this))},clearCaretTimeout:function(){clearTimeout(this._caretTimeout),this._caretTimeout=null},_forceRefreshInputValue:function(){if(!this._useMaskBehavior())return this.callBase()},_isNonStubAfter:function(e,t){return(t=(t||this._getInputVal()).slice(e))&&!this._isStub(t,!0)},_isStub:function(e,t){var n=c(d.getDecimalSeparator());return new RegExp("^[^0-9"+n+"]+$","g").test(e)&&(t||this._isChar(e))},_parseValue:function(e){return this._useMaskBehavior()?this._parsedValue:this.callBase(e)},_getPrecisionLimits:function(e){var t=(this._getFormatForSign(e).split(".")[1]||"").replace(/[^#0]/g,"");return{min:t.replace(/^(0*)#*/,"$1").length,max:t.length}},_revertSign:function(e){if(this._useMaskBehavior()){var t=this._caret();if(t.start!==t.end){if(g.normalizeKeyName(e)===v)return void this._applyRevertedSign(e,t,!0);this._caret(h.getCaretInBoundaries(0,this._getInputVal(),this._getFormatPattern()))}this._applyRevertedSign(e,t)}},_applyRevertedSign:function(e,t,n){var o=-1*x(this._parsedValue,null);if(this._isValueInRange(o)){if(this._parsedValue=o,n){var a=this._getFormatPattern(),s=this._getInputVal();this._setTextByParsedValue(),e.preventDefault();var l=this._getInputVal(),u=h.getCaretOffset(s,l,a);t=h.getCaretWithOffset(t,u);var c=h.getCaretInBoundaries(t,l,a);r.msie?(clearTimeout(this._caretTimeout),this._caretTimeout=setTimeout(this._caret.bind(this,c))):this._caret(c)}"Subtract"===e.key&&i.trigger(this._input(),y)}},_removeMinusFromText:function(e,t){return this._lastKeyName===v&&"-"===e.charAt(t.start-1)?this._replaceSelectedText(e,{start:t.start-1,end:t.start},""):e},_setTextByParsedValue:function(){var e=this._getFormatPattern(),t=this._parseValue(),n=this._format(t,e)||"";this._setInputText(n)},_formatValue:function(){var e=this._getInputVal(),t=this._caret(),n=this._removeMinusFromText(e,t),i=n!==e;if(e=n,this._isValueIncomplete(n))return this._formattedValue=e,void(i&&this._setTextByParsedValue());if(d.convertDigits(this._formattedValue,!0)!==e){var o=this._tryParse(e,t,"");_.isDefined(o)&&(this._parsedValue=o)}this._setTextByParsedValue()},_renderDisplayText:function(){this._useMaskBehavior()?this._toggleEmptinessEventHandler():this.callBase.apply(this,arguments)},_renderValue:function(){return this._useMaskBehavior()&&(this._parsedValue=this.option("value"),this._setTextByParsedValue()),this.callBase()},_adjustParsedValue:function(){if(this._useMaskBehavior()){var e=this._removeStubs(this._getInputVal())?this._parseValue():null;return a(e)?void(this._parsedValue=l(e,this.option("min"),this.option("max"))):void(this._parsedValue=e)}},_valueChangeEventHandler:function(e){return this._useMaskBehavior()?(this._saveValueChangeEvent(e),this._lastKey=null,this._lastKeyName=null,this._adjustParsedValue(),void this.option("value",this._parsedValue)):this.callBase(e)},_optionChanged:function(e){switch(e.name){case"format":case"useMaskBehavior":this._renderFormatter(),this._renderValue();break;case"min":case"max":this._adjustParsedValue(),this.callBase(e);break;default:this.callBase(e)}},_optionValuesEqual:function(e,t,n){return"value"===e&&0===t&&0===n?1/t==1/n:this.callBase.apply(this,arguments)},_clearCache:function(){delete this._formattedValue,delete this._lastKey,delete this._lastKeyName,delete this._parsedValue,delete this._focusOutOccurs,clearTimeout(this._caretTimeout),delete this._caretTimeout},_clean:function(){this._clearCache(),this.callBase()}});e.exports=w},function(e,t,n){var i=n(29).fitIntoRange,o=n(4).escapeRegExp,a=n(51),r=function(e,t){var n=t.split(";"),i=a.getSign(e,t);n[1]=n[1]||"-"+n[0];t=function(e){return e.replace(/'([^']*)'/g,function(e){return e.split("").map(function(){return" "}).join("").substr(2)})}(t=n[i<0?1:0]);var o=/^[^#0.,]*/.exec(t)[0].length,r=/[^#0.,]*$/.exec(t)[0].length;return{start:o,end:e.length-r}},s=function(e,t){var n=a.getDecimalSeparator(),i=new RegExp("[^0-9"+o(n)+"]","g");return t.slice(0,e).replace(i,"").length},l=function(e){return e.split("").reverse().join("")},u=function(e,t){if(!e)return-1;for(var n=/[0-9]/g,i=1,o=null,a=n.exec(t);a;){if(o=a.index,!e||i>=e)return o;i++,a=n.exec(t)}return null===o?t.length:o},c=function(e,t){return void 0===e.start&&(e={start:e,end:e}),{start:e.start+t,end:e.end+t}},d=function(e,t,n){e=c(e,0);var o=r(t,n);return{start:i(e.start,o.start,o.end),end:i(e.end,o.start,o.end)}};t.getCaretBoundaries=r,t.isCaretInBoundaries=function(e,t,n){e=c(e,0);var i=d(e,t,n);return e.start>=i.start&&e.end<=i.end},t.getCaretWithOffset=c,t.getCaretInBoundaries=d,t.getCaretAfterFormat=function(e,t,n,i){n=c(n,0);var o=a.getDecimalSeparator(),r=e.indexOf(o),h=t.indexOf(o),p=e.split(o),f=t.split(o);if(-1!==r&&n.start>r){var g=n.start-r-1,_=s(g,p[1]),m=f[1]?h+1+u(_,f[1])+1:t.length;return d(m,t,i)}var v=p[0].length-n.start,y=s(v,l(p[0])),b=u(y,l(f[0])),x=f[0].length-(b+1);return d(x,t,i)},t.getCaretOffset=function(e,t,n){var i=r(e,n);return r(t,n).start-i.start}},function(e,t,n){var i=n(2),o=n(12),a=n(5),r=n(4),s=n(29),l=n(0).extend,u=n(13).inArray,c=n(16),d=n(289),h=n(9),p=n(525).default,f=n(15),g=n(6).Deferred,_=Math,m=["tab","del","backspace","leftArrow","rightArrow","home","end","enter"],v=d.inherit({_supportedKeys:function(){return l(this.callBase(),{upArrow:function(e){e.preventDefault(),e.stopPropagation(),this._spinUpChangeHandler(e)},downArrow:function(e){e.preventDefault(),e.stopPropagation(),this._spinDownChangeHandler(e)},enter:function(){}})},_getDefaultOptions:function(){return l(this.callBase(),{value:0,min:void 0,max:void 0,step:1,showSpinButtons:!1,useLargeSpinButtons:!0,mode:"text",invalidValueMessage:f.format("dxNumberBox-invalidValueMessage"),buttons:void 0})},_getDefaultButtons:function(){return this.callBase().concat([{name:"spins",Ctor:p}])},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return c.real().generic&&!c.isSimulator()},options:{useLargeSpinButtons:!1}},{device:function(){return"generic"!==c.real().platform},options:{mode:"number"}}])},_initMarkup:function(){this._renderSubmitElement(),this.$element().addClass("dx-numberbox"),this.callBase()},_renderContentImpl:function(){this.option("isValid")&&this._validateValue(this.option("value")),this.setAria("role","spinbutton")},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(e){this._$submitElement.val(r.applyServerDecimalSeparator(e))},_getSubmitElement:function(){return this._$submitElement},_keyPressHandler:function(e){this.callBase(e);var t=h.getChar(e);if(!/[\d.,eE\-+]|Subtract/.test(t)){var n=h.normalizeKeyName(e);if(e.metaKey||e.ctrlKey||n&&u(n,m)>=0)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();e.length&&Number(e)===this.option("value")||(this._forceValueRender(),this._toggleEmptinessEventHandler());var t=this.option("value");return this.setAria("valuenow",t),this.option("text",this._input().val()),this._updateButtons(),(new g).resolve()},_forceValueRender:function(){var e=this.option("value"),t=Number(e),n=isNaN(t)?"":this._applyValueFormat(e);this._renderDisplayText(n)},_applyValueFormat:function(e){return this.option("valueFormat")(e)},_renderProps:function(){this.callBase(),this._input().prop({min:this.option("min"),max:this.option("max"),step:this.option("step")}),this.setAria({valuemin:this.option("min")||"undefined",valuemax:this.option("max")||"undefined"})},_spinButtonsPointerDownHandler:function(){var e=this._input();this.option("useLargeSpinButtons")||o.getActiveElement()===e[0]||a.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 n=parseFloat(this.option("step"));if(0!==n){var i=parseFloat(this._normalizeInputValue())||0;i=this._correctRounding(i,n*e);var o=this.option("min"),a=this.option("max");void 0!==o&&(i=Math.max(o,i)),void 0!==a&&(i=Math.min(a,i)),this._saveValueChangeEvent(t),this.option("value",i)}},_correctRounding:function(e,t){var n=/[,.](.*)/,i=n.test(e),o=n.test(t);if(i||o){var a=i?n.exec(e)[0].length:0,r=o?n.exec(t)[0].length:0,s=_.max(a,r);return this._round(e+t,s)}return e+t},_round:function(e,t){t=t||0;var n=Math.pow(10,t);return e*=n,Math.round(e)/n},_renderValueChangeEvent:function(){this.callBase(),a.on(this._input(),"focusout",this._forceRefreshInputValue.bind(this))},_forceRefreshInputValue:function(){if("number"!==this.option("mode")){var e=this._input(),t=this._applyValueFormat(this.option("value"));e.val(null),e.val(t)}},_valueChangeEventHandler:function(e){var t=this._input(),n=this._normalizeText(),i=this._parseValue(n),o="."!==n&&"-"!==n;return this._isValueValid()&&!this._validateValue(i)?void t.val(this._applyValueFormat(i)):(o&&this.callBase(e,isNaN(i)?null:i),this._applyValueBoundaries(n,i),void this.validationRequest.fire({value:i,editor:this}))},_applyValueBoundaries:function(e,t){var n=this._isValueIncomplete(e),i=this._isValueInRange(e);n||i||null===t||Number(e)!==t&&this._input().val(this._applyValueFormat(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 s.inRange(e,this.option("min"),this.option("max"))},_isNumber:function(e){return null!==this._parseValue(e)},_validateValue:function(e){var t=this._normalizeText(),n=this._isValueValid(),i=!0,o=this._isNumber(t);return isNaN(Number(e))&&(i=!1),!e&&n?i=!0:o||n||(i=!1),this.option({isValid:i,validationError:i?null:{editorSpecific:!0,message:this.option("invalidValueMessage")}}),i},_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:s.fitIntoRange(t,this.option("min"),this.option("max"))},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)}}});e.exports=v},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},r=i(n(2)),s=i(n(5)),l=i(n(187)),u=i(n(526)),c=n(9),d=n(24),h=n(0),p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l.default),o(t,[{key:"_attachEvents",value:function(e,t){var n=this.editor,i=(0,c.addNamespace)(d.down,n.NAME),o=t.children(),a=n._createAction(function(e){return n._spinButtonsPointerDownHandler(e)});s.default.off(t,i),s.default.on(t,i,function(e){return a({event:e})}),u.default.getInstance(o.eq(0)).option("onChange",function(e){return n._spinUpChangeHandler(e)}),u.default.getInstance(o.eq(1)).option("onChange",function(e){return n._spinDownChangeHandler(e)})}},{key:"_create",value:function(){var e=this.editor,t=(0,r.default)("<div>").addClass("dx-numberbox-spin-container"),n=(0,r.default)("<div>").appendTo(t),i=(0,r.default)("<div>").appendTo(t),o=this._getOptions();return this._addToContainer(t),e._createComponent(n,u.default,(0,h.extend)({direction:"up"},o)),e._createComponent(i,u.default,(0,h.extend)({direction:"down"},o)),this._legacyRender(e.$element(),this._isTouchFriendly(),o.visible),{instance:t,$element:t}}},{key:"_getOptions",value:function(){var e=this.editor;return{visible:this._isVisible(),disabled:e.option("disabled")}}},{key:"_isVisible",value:function(){var e=this.editor;return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_isVisible",this).call(this)&&e.option("showSpinButtons")}},{key:"_isTouchFriendly",value:function(){var e=this.editor;return e.option("showSpinButtons")&&e.option("useLargeSpinButtons")}},{key:"_legacyRender",value:function(e,t,n){e.toggleClass("dx-numberbox-spin-touch-friendly",t),e.toggleClass("dx-numberbox-spin",n)}},{key:"update",value:function(){if(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this)){var e=this.editor,n=this.instance,i=e.$element(),o=this._isVisible(),r=this._isTouchFriendly(),s=n.children(),l=u.default.getInstance(s.eq(0)),c=u.default.getInstance(s.eq(1)),d=this._getOptions();l.option(d),c.option(d),this._legacyRender(i,r,o)}}}]),t}();t.default=p},function(e,t,n){var i=n(2),o=n(12),a=n(5),r=n(17),s=n(0).extend,l=n(9),u=n(24),c=n(128),d=n(89),h=n(6).Deferred,p="dxNumberBox",f=l.addNamespace(u.up,p),g=l.addNamespace(u.cancel,p),_=r.inherit({_getDefaultOptions:function(){return s(this.callBase(),{direction:"up",onChange:null,activeStateEnabled:!0,hoverStateEnabled:!0})},_initMarkup:function(){this.callBase();var e="dx-numberbox-spin-"+this.option("direction");this.$element().addClass("dx-numberbox-spin-button").addClass(e),this._spinIcon=i("<div>").addClass(e+"-icon").appendTo(this.$element())},_render:function(){this.callBase();var e=l.addNamespace(u.down,this.NAME),t=this.$element();a.off(t,e),a.on(t,e,this._spinDownHandler.bind(this)),this._spinChangeHandler=this._createActionByOption("onChange")},_spinDownHandler:function(e){e.preventDefault(),this._clearTimer(),a.on(this.$element(),d.name,function(){this._feedBackDeferred=new h,c.lock(this._feedBackDeferred),this._spinChangeHandler({event:e}),this._holdTimer=setInterval(this._spinChangeHandler,100,{event:e})}.bind(this));var t=o.getDocument();a.on(t,f,this._clearTimer.bind(this)),a.on(t,g,this._clearTimer.bind(this)),this._spinChangeHandler({event:e})},_dispose:function(){this._clearTimer(),this.callBase()},_clearTimer:function(){a.off(this.$element(),d.name);var e=o.getDocument();a.off(e,f),a.off(e,g),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)}}});e.exports=_},function(e,t,n){var i=n(8),o=n(528);i("dxDateBox",o),e.exports=o},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(9)),a=n(1),r=n(10),s=n(0),l=n(29),u=i(n(5)),c=n(529),d=i(n(33)),h=n(209),p=n(183),f=i(n(530)),g="dateBoxMask",_=f.default.inherit({_supportedKeys:function(e){var t=this;return!this._useMaskBehavior()||this.option("opened")||e&&e.altKey?this.callBase(e):(0,s.extend)(this.callBase(e),{del:function(e){t._revertPart(1),t._isAllSelected()||e.preventDefault()},backspace:function(e){t._revertPart(-1),t._isAllSelected()||e.preventDefault()},home:function(e){t._selectFirstPart(),e.preventDefault()},end:function(e){t._selectLastPart(),e.preventDefault()},escape:this._revertChanges,enter:this._enterHandler,leftArrow:function(e){t._selectNextPart(-1),e.preventDefault()},rightArrow:function(e){t._selectNextPart(1),e.preventDefault()},upArrow:function(e){t._upDownArrowHandler(1),e.preventDefault()},downArrow:function(e){t._upDownArrowHandler(-1),e.preventDefault()}})},_upDownArrowHandler:function(e){this._setNewDateIfEmpty();var t=this._getActivePartValue(this._initialMaskValue),n=this._getActivePartValue()-t;this._loadMaskValue(this._initialMaskValue),this._partIncrease(n+e)},_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{useMaskBehavior:!1,emptyDateValue:new Date(2e3,0,1,0,0,0),advanceCaret:!0})},_isSingleCharKey:function(e){var t=e.originalEvent.key;return"string"==typeof t&&1===t.length&&!e.ctrl&&!e.alt},_keyboardHandler:function(e){var t=e.originalEvent.key,n=this.callBase(e);return this._useMaskBehavior()&&this._isSingleCharKey(e)?(this._isAllSelected()&&(this._activePartIndex=0),this._setNewDateIfEmpty(),isNaN(parseInt(t))?this._searchString(t):this._searchNumber(t),e.originalEvent.preventDefault(),n):n},_isAllSelected:function(){var e=this._caret();return e.end-e.start===this.option("text").length},_getFormatPattern:function(){if(this._formatPattern)return this._formatPattern;var e=this._strategy.getDisplayFormat(this.option("displayFormat")),t=(0,a.isString)(e)&&!d.default._getPatternByFormat(e);return this._formatPattern=t?e:(0,p.getFormat)(function(t){return d.default.format(t,e)}),this._formatPattern},_setNewDateIfEmpty:function(){this._maskValue||(this._maskValue=new Date,this._initialMaskValue=new Date,this._renderDateParts())},_searchNumber:function(e){var t=this._getActivePartLimits().max,n=String(t).length,i=this._getActivePartProp("pattern").length;if(this._searchValue=(this._searchValue+e).substr(-n),isNaN(this._searchValue)&&(this._searchValue=e),this._setActivePartValue(this._searchValue),this.option("advanceCaret")){var o=1===i?n:Math.min(i,n),a=this._searchValue.length===o,r=parseInt(this._searchValue+"0")>t;(a||r)&&this._selectNextPart(1)}},_searchString:function(e){if(isNaN(parseInt(this._getActivePartProp("text")))){for(var t=this._getActivePartProp("limits")(this._maskValue),n=this._searchValue+e.toLowerCase(),i=t.max-t.min,o=0;o<=i;o++)if(this._loadMaskValue(this._initialMaskValue),this._partIncrease(o+1),0===this._getActivePartProp("text").toLowerCase().indexOf(n))return void(this._searchValue=n);this._setNewDateIfEmpty(),this._searchValue&&(this._clearSearchValue(),this._searchString(e))}},_clearSearchValue:function(){this._searchValue=""},_revertPart:function(e){if(!this._isAllSelected()){var t=this._getActivePartValue(this.option("emptyDateValue"));this._setActivePartValue(t),this._selectNextPart(e)}this._clearSearchValue()},_useMaskBehavior:function(){return this.option("useMaskBehavior")&&"text"===this.option("mode")},_initMaskState:function(){this._activePartIndex=0,this._formatPattern=null,this._regExpInfo=(0,h.getRegExpInfo)(this._getFormatPattern(),d.default),this._loadMaskValue()},_renderMask:function(){this.callBase(),this._detachMaskEvents(),this._clearMaskState(),this._useMaskBehavior()&&(this._attachMaskEvents(),this._initMaskState(),this._renderDateParts())},_renderDateParts:function(){if(this._useMaskBehavior()){var e=this.option("text")||this._getDisplayedText(this._maskValue);e&&(this._dateParts=(0,c.renderDateParts)(e,this._regExpInfo),this._selectNextPart())}},_detachMaskEvents:function(){u.default.off(this._input(),"."+g)},_attachMaskEvents:function(){var e=this;u.default.on(this._input(),o.default.addNamespace("dxclick",g),this._maskClickHandler.bind(this)),u.default.on(this._input(),o.default.addNamespace("paste",g),this._maskPasteHandler.bind(this)),u.default.on(this._input(),o.default.addNamespace("drop",g),function(){e._renderDisplayText(e._getDisplayedText(e._maskValue)),e._selectNextPart()})},_selectLastPart:function(){this.option("text")&&(this._activePartIndex=this._dateParts.length,this._selectNextPart(-1))},_selectFirstPart:function(){this.option("text")&&(this._activePartIndex=-1,this._selectNextPart(1))},_onMouseWheel:function(e){this._useMaskBehavior()&&this._partIncrease(e.delta>0?1:-1,e)},_selectNextPart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.option("text")){e&&(this._initialMaskValue=new Date(this._maskValue));var t=(0,l.fitIntoRange)(this._activePartIndex+e,0,this._dateParts.length-1);if(this._dateParts[t].isStub){if(!(0===t&&e<0||t===this._dateParts.length-1&&e>0))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"))}},_getActivePartLimits:function(){return this._getActivePartProp("limits")(this._maskValue)},_getActivePartValue:function(e){e=e||this._maskValue;var t=this._getActivePartProp("getter");return(0,a.isFunction)(t)?t(e):e[t]()},_addLeadingZeroes:function(e){var t=this._searchValue.match(/^0+/),n=this._getActivePartLimits(),i=String(n.max).length;return((t&&t[0]||"")+String(e)).substr(-i)},_setActivePartValue:function(e,t){t=t||this._maskValue;var n=this._getActivePartProp("setter"),i=this._getActivePartLimits();e=(0,l.inRange)(e,i.min,i.max)?e:e%10,e=this._addLeadingZeroes((0,l.fitIntoRange)(e,i.min,i.max)),(0,a.isFunction)(n)?n(t,e):t[n](e),this._renderDisplayText(this._getDisplayedText(t)),this._renderDateParts()},_getActivePartProp:function(e){if(this._dateParts&&this._dateParts[this._activePartIndex])return this._dateParts[this._activePartIndex][e]},_loadMaskValue:function(){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:function(){var e=this._maskValue&&new Date(this._maskValue);this._initialMaskValue=new Date(e),this.dateOption("value",e)},_revertChanges:function(){this._loadMaskValue(),this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._renderDateParts()},_renderDisplayText:function(e){this.callBase(e),this._useMaskBehavior()&&this.option("text",e)},_partIncrease:function(e){this._setNewDateIfEmpty();var t=this._getActivePartLimits(),n=t.max,i=t.min,o=n-i;1===o&&o++;var a=e+this._getActivePartValue();a>n?a=this._applyLimits(a,{limitBase:i,limitClosest:n,limitDelta:o}):a<i&&(a=this._applyLimits(a,{limitBase:n,limitClosest:i,limitDelta:o})),this._setActivePartValue(a)},_applyLimits:function(e,t){var n=t.limitBase,i=t.limitClosest,o=(e-i)%t.limitDelta;return o?n+o-1*(0,l.sign)(o):i},_maskClickHandler:function(){this.option("text")&&(this._activePartIndex=(0,c.getDatePartIndexByPosition)(this._dateParts,this._caret().start),this._caret(this._getActivePartProp("caret")))},_maskPasteHandler:function(e){var t=this._replaceSelectedText(this.option("text"),this._caret(),(0,r.clipboardText)(e)),n=d.default.parse(t,this._getFormatPattern());n&&(this._maskValue=n,this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._renderDateParts(),this._selectNextPart()),e.preventDefault()},_isValueDirty:function(){var e=this.dateOption("value");return(this._maskValue&&this._maskValue.getTime())!==(e&&e.getTime())},_fireChangeEvent:function(){this._clearSearchValue(),this._isValueDirty()&&u.default.trigger(this._input(),"change")},_enterHandler:function(e){this._fireChangeEvent(),this._selectNextPart(1),e.preventDefault()},_focusOutHandler:function(e){this.callBase(e),this._useMaskBehavior()&&(this._fireChangeEvent(),this._selectFirstPart(e))},_valueChangeEventHandler:function(e){this._useMaskBehavior()?(this._saveValueChangeEvent(e),this.option("text")||(this._maskValue=null),this._saveMaskValue()):this.callBase(e)},_optionChanged:function(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"advanceCaret":case"emptyDateValue":break;default:this.callBase(e)}},_clearMaskState:function(){this._clearSearchValue(),delete this._dateParts,delete this._activePartIndex,delete this._maskValue},reset:function(){this.callBase(),this._clearMaskState(),this._activePartIndex=0},_clean:function(){this.callBase(),this._detachMaskEvents(),this._clearMaskState()}});e.exports=_},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.renderDateParts=t.getDatePartIndexByPosition=void 0;var i=n(209),o=n(0),a=n(29),r=n(4),s=function(e){return e.getMonth()+1},l=function(e,t){var n=e.getDate(),i=h("M",e),o=(0,a.fitIntoRange)(parseInt(t),i.min,i.max);e.setMonth(o-1,1);var r=h("dM",e),s=r.min,l=r.max,u=(0,a.fitIntoRange)(n,s,l);e.setDate(u)},u={a:function(e){return e.getHours()<12?0:1},E:"getDay",y:"getFullYear",M:s,L:s,d:"getDate",H:"getHours",h:"getHours",m:"getMinutes",s:"getSeconds",S:"getMilliseconds"},c=(0,o.extend)({},(0,i.getPatternSetters)(),{a:function(e,t){var n=e.getHours();n>=12!==!!parseInt(t)&&e.setHours((n+12)%24)},d:function(e,t){t>h("dM",e).max&&e.setMonth(e.getMonth()+1),e.setDate(t)},M:l,L:l,E:function(e,t){t<0||e.setDate(e.getDate()-e.getDay()+parseInt(t))},y:function(e,t){var n=e.getFullYear(),i=String(t).length,o=String(h("y",e).max).length,a=parseInt(String(n).substr(0,o-i)+t);e.setFullYear(a)}}),d=function(e){return u[e]||function(){return e}},h=function(e,t){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[e]||n.getAmPm};t.getDatePartIndexByPosition=function(e,t){for(var n=0;n<e.length;n++){var i=e[n].caret.end>=t;if(!e[n].isStub&&i)return n}return null},t.renderDateParts=function(e,t){for(var n=t.regexp.exec(e),i=0,o=0,a=[],s=1;s<n.length;s++){o=(i=o)+n[s].length;var l=t.patterns[s-1].replace(/^'|'$/g,""),u=d(l[0]);a.push({index:s-1,isStub:l===n[s],caret:{start:i,end:o},pattern:l,text:n[s],limits:h.bind(void 0,l[0]),setter:c[l[0]]||r.noop,getter:u})}return a}},function(e,t,n){var i=n(2),o=n(7),a=o.getWindow(),r=n(8),s=n(1),l=n(3).each,u=n(61).compare,c=n(0).extend,d=n(44),h=n(16),p=n(27),f=n(22),g=n(117),_=n(56),m=n(161),v=n(33),y=n(15),b="dx-datebox",x="dx-datebox-wrapper",w={calendar:"calendar",rollers:"rollers",list:"list",native:"native"},C={date:"date",datetime:"datetime",time:"time"},k="Calendar",S="DateView",I="Native",T="CalendarWithTime",D="List",E={Calendar:n(302),DateView:n(531),Native:n(534),CalendarWithTime:n(535),List:n(537)},A=m.inherit({_supportedKeys:function(){return c(this.callBase(),this._strategy.supportedKeys())},_setDeprecatedOptions:function(){this.callBase(),c(this._deprecatedOptions,{maxZoomLevel:{since:"18.1",alias:"calendarOptions.maxZoomLevel"},minZoomLevel:{since:"18.1",alias:"calendarOptions.minZoomLevel"}})},_getDefaultOptions:function(){return c(this.callBase(),{type:"date",showAnalogClock:!0,value:null,dateSerializationFormat:void 0,min:void 0,max:void 0,displayFormat:null,interval:30,disabledDates:null,maxZoomLevel:"month",minZoomLevel:"century",pickerType:w.calendar,invalidDateMessage:y.format("dxDateBox-validation-datetime"),dateOutOfRangeMessage:y.format("validation-range"),applyButtonText:y.format("OK"),adaptivityEnabled:!1,calendarOptions:{}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{showPopupTitle:!0}},{device:{platform:"android"},options:{buttonsLocation:"bottom after"}},{device:function(){var e=h.real().platform;return"ios"===e||"android"===e},options:{pickerType:w.native}},{device:function(e){return"win"===e.platform&&e.version&&8===e.version[0]},options:{buttonsLocation:"bottom after"}},{device:function(e){return"win"===e.platform&&e.version&&10===e.version[0]},options:{buttonsLocation:"bottom center"}},{device:function(e){var t=h.real(),n=t.platform,i=t.version,o=t.phone;return"generic"===n&&"desktop"!==e.deviceType||"win"===n&&o||"android"===n&&u(i,[4,4])<0},options:{pickerType:w.rollers}},{device:{platform:"generic",deviceType:"desktop"},options:{buttonsLocation:"bottom after"}}])},_initOptions:function(e){this._userOptions=c({},e),this.callBase(e),this._updatePickerOptions()},_updatePickerOptions:function(){var e=this.option("pickerType"),t=this.option("type");e!==w.list||t!==C.datetime&&t!==C.date||(e=w.calendar),t===C.time&&e===w.calendar&&(e=w.list),this.option("showDropDownButton","generic"!==h.real().platform||e!==w.native),this._pickerType=e},_init:function(){this._initStrategy(),this.option(c({},this._strategy.getDefaultOptions(),this._userOptions)),delete this._userOptions,this.callBase()},_toLowerCaseFirstLetter:function(e){return e.charAt(0).toLowerCase()+e.substr(1)},_initStrategy:function(){var e=this._getStrategyName(this._getFormatType()),t=E[e];this._strategy&&this._strategy.NAME===e||(this._strategy=new t(this))},_getFormatType:function(){var e=this.option("type"),t=/h|m|s/g.test(e),n="";return/d|M|Y/g.test(e)&&(n+=C.date),t&&(n+=C.time),n},_getStrategyName:function(e){var t=this._pickerType;return t===w.rollers?S:t===w.native?I:e===C.date?k:e===C.datetime?T:D},_initMarkup:function(){this.$element().addClass(b),this._renderSubmitElement(),this.callBase(),this._refreshFormatClass(),this._refreshPickerTypeClass(),this._strategy.renderInputMinMax(this._input())},_render:function(){this.callBase(),this._updateSize()},_renderDimensions:function(){this.callBase(),this.$element().toggleClass("dx-auto-width",!this.option("width"))},_refreshFormatClass:function(){var e=this.$element();l(C,function(t,n){e.removeClass(b+"-"+n)}),e.addClass(b+"-"+this.option("type"))},_refreshPickerTypeClass:function(){var e=this.$element();l(w,function(t,n){e.removeClass(b+"-"+n)}),e.addClass(b+"-"+this._pickerType)},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_updateSize:function(){var e=this.$element(),t=this.option("width"),n=s.isDefined(t)||function(e){var t=e[0].style.width;return!(!t||"auto"===t||"inherit"===t)}(e)&&!this._isSizeUpdatable,i=this._pickerType!==w.rollers&&"generic"===h.current().platform;if(o.hasWindow()&&!n&&i&&e.is(":visible")){var a=this._strategy.getDisplayFormat(this.option("displayFormat")),r=v.format(g.getLongestDate(a,v.getMonthNames(),v.getDayNames()),a);e.width(this._calculateWidth(r)),this._isSizeUpdatable=!0}},_calculateWidth:function(e){var t=this._input(),n=i("<div>").text(e).css({fontStyle:t.css("fontStyle"),fontVariant:t.css("fontVariant"),fontWeight:t.css("fontWeight"),fontSize:t.css("fontSize"),fontFamily:t.css("fontFamily"),letterSpacing:t.css("letterSpacing"),border:t.css("border"),visibility:"hidden",whiteSpace:"nowrap",position:"absolute",float:"left"});n.appendTo(this.$element());var o=parseFloat(a.getComputedStyle(n.get(0)).width)+parseFloat(a.getComputedStyle(t.get(0)).paddingRight)+parseFloat(a.getComputedStyle(t.get(0)).paddingLeft)+10+(this._$beforeButtonsContainer?parseFloat(a.getComputedStyle(this._$beforeButtonsContainer.get(0)).width):0)+(this._$afterButtonsContainer?parseFloat(a.getComputedStyle(this._$afterButtonsContainer.get(0)).width):0)+("text"!==t.prop("type")?48:0);return n.remove(),o},_attachChildKeyboardEvents:function(){this._strategy.attachKeyboardEvents(this._keyboardProcessor)},_renderPopup:function(){this.callBase(),this._popup._wrapper().addClass(x),this._renderPopupWrapper()},_popupConfig:function(){var e=this.callBase();return c(this._strategy.popupConfig(e),{title:this._getPopupTitle(),dragEnabled:!1})},_renderPopupWrapper:function(){if(this._popup){var e=this.$element(),t=c({},C,w);l(t,function(t,n){e.removeClass(x+"-"+n)}.bind(this)),this._popup._wrapper().addClass(x+"-"+this.option("type")).addClass(x+"-"+this._pickerType)}},_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()},_popupHiddenHandler:function(){this.callBase(),this._strategy.popupHiddenHandler()},_visibilityChanged:function(e){e&&this._updateSize()},_clearValueHandler:function(e){this.option("text",""),this.callBase(e)},_readOnlyPropValue:function(){return this.callBase()&&!this._isNativeType()||this._pickerType===w.rollers},_isClearButtonVisible:function(){return this.callBase()&&!this._isNativeType()},_renderValue:function(){var e=this.dateOption("value"),t=this.option("dateSerializationFormat");this.option("text",this._getDisplayedText(e));var n=g.SUBMIT_FORMATS_MAP[this.option("type")],i=t?_.serializeDate(e,t):g.toStandardDateFormat(e,n);return this._$submitElement.val(i),this._strategy.renderValue(),this.callBase()},_getDisplayedText:function(e){var t,n=this.option("mode");if("text"===n){var i=this._strategy.getDisplayFormat(this.option("displayFormat"));t=v.format(e,i)}else{var o=this._getFormatByMode(n);t=o?v.format(e,o):g.toStandardDateFormat(e,n)}return t},_getFormatByMode:function(e){return d.inputType(e)?null:g.FORMATS_MAP[e]},_valueChangeEventHandler:function(e){var t=this.option("text"),n=this.dateOption("value");if(t!==this._getDisplayedText(n)){var i=this._getParsedDate(t),o=n||this._getDateByDefault(),a=this.option("type"),r=g.mergeDates(o,i,a),s=i&&"time"===a?r:i;if(this._applyInternalValidation(s)){var l=this._getDisplayedText(r);o&&r&&o.getTime()===r.getTime()&&l!==t?this._renderValue():this.dateValue(r,e)}this._applyCustomValidation(r)}else this._validateValue(n)},_getDateByDefault:function(){return this._strategy.useCurrentDateByDefault()&&new Date},_getParsedDate:function(e){var t=this._strategy.getDisplayFormat(this.option("displayFormat")),n=this._strategy.getParsedText(e,t);return s.isDefined(n)?n:void 0},_validateValue:function(e){return this._applyInternalValidation(e)&&this._applyCustomValidation(e)},_applyInternalValidation:function(e){var t=!!this.option("text")&&null!==e,n=!!e&&s.isDate(e)&&!isNaN(e.getTime()),i=n&&f.dateInRange(e,this.dateOption("min"),this.dateOption("max"),this.option("type")),o=!t&&!e||i,a="";return n?i||(a=this.option("dateOutOfRangeMessage")):a=this.option("invalidDateMessage"),this.option({isValid:o,validationError:o?null:{editorSpecific:!0,message:a}}),o},_applyCustomValidation:function(e){return this.validationRequest.fire({editor:this,value:e}),this.option("isValid")},_isValueChanged:function(e){var t=this.dateOption("value");return(t&&t.getTime())!==(e&&e.getTime())},_isTextChanged:function(e){return this.option("text")!==(e&&this._getDisplayedText(e)||"")},_renderProps:function(){this.callBase(),this._input().attr("autocomplete","off")},_renderOpenedState:function(){this._isNativeType()||this.callBase(),this._strategy.isAdaptivityChanged()&&this._refreshStrategy(),this._strategy.renderOpenedState()},_getPopupTitle:function(){var e=this.option("placeholder");if(e)return e;var t=this.option("type");return t===C.time?y.format("dxDateBox-simulatedDataPickerTitleTime"):t===C.date||t===C.datetime?y.format("dxDateBox-simulatedDataPickerTitleDate"):""},_renderPlaceholder:function(){this._popup&&this._popup.option("title",this._getPopupTitle()),this.callBase()},_refreshStrategy:function(){this._strategy.dispose(),this._initStrategy(),this.option(this._strategy.getDefaultOptions()),this._refresh()},_applyButtonHandler:function(e){this.dateValue(this._strategy.getValue(),e.event),this.callBase()},_dispose:function(){this._strategy&&this._strategy.dispose(),this.callBase()},_isNativeType:function(){return this._pickerType===w.native},_optionChanged:function(e){switch(e.name){case"showClearButton":this.callBase.apply(this,arguments),this._updateSize();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._updateSize();break;case"placeholder":this._renderPlaceholder();break;case"min":case"max":this._validateValue(this.dateOption("value")),this._invalidate();break;case"dateSerializationFormat":case"interval":case"disabledDates":case"calendarOptions":case"minZoomLevel":case"maxZoomLevel":this._invalidate();break;case"displayFormat":this.option("text",this._getDisplayedText(this.dateOption("value"))),this._renderInputValue();break;case"formatWidthCalculator":break;case"closeOnValueChange":var t=e.value?"instantly":"useButtons";this.option("applyValueMode",t);break;case"applyValueMode":this._suppressDeprecatedWarnings(),this.option("closeOnValueChange","instantly"===e.value),this._resumeDeprecatedWarnings(),this.callBase.apply(this,arguments);break;case"text":this._strategy.textChangedHandler(e.value),this.callBase.apply(this,arguments);break;case"isValid":this.callBase.apply(this,arguments),this._updateSize();break;case"showDropDownButton":this._updateSize();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")&&p().forceIsoDateParsing?this.option("dateSerializationFormat"):s.isNumeric(e)?"number":s.isString(e)?_.getDateSerializationFormat(e):void 0},_updateValue:function(e){this.callBase(),this._validateValue(e||this.dateOption("value"))},dateValue:function(e,t){var n=this._isValueChanged(e);return n&&t&&this._saveValueChangeEvent(t),!n&&this._isTextChanged(e)&&this._updateValue(e),this.dateOption("value",e)},dateOption:function(e,t){if(1===arguments.length)return _.deserializeDate(this.option(e));var n=this._getSerializationFormat();this.option(e,_.serializeDate(t,n))},reset:function(){this.callBase(),this._updateValue(this.dateOption("value"))}});r("dxDateBox",A),e.exports=A},function(e,t,n){var i=n(2),o=n(7).getWindow(),a=n(532),r=n(193),s=n(44),l=n(0).extend,u=n(117),c=n(15),d=r.inherit({NAME:"DateView",getDefaultOptions:function(){return l(this.callBase(),{openOnFieldClick:!0,applyButtonText:c.format("OK")})},getDisplayFormat:function(e){return e||u.FORMATS_MAP[this.dateBox.option("type")]},popupConfig:function(e){return{showTitle:!0,toolbarItems:this.dateBox._popupToolbarItemsConfig(),onInitialized:e.onInitialized,defaultOptionsRules:[{device:function(e){return"win"===e.platform&&e.version&&8===e.version[0]},options:{showNames:!0}},{device:function(e){return"win"===e.platform&&e.phone&&e.version&&8===e.version[0]},options:{animation:null}},{device:{platform:"android"},options:{width:333,height:331}},{device:function(e){var t=e.platform,n=e.version;return"generic"===t||"ios"===t||"win"===t&&n&&10===n[0]},options:{width:"auto",height:"auto"}},{device:function(e){var t=e.platform,n=e.phone;return"generic"===t&&n},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:o}}}]}},_renderWidget:function(){if(s.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=i("<div>").appendTo(e.$content());this._widget=this._createWidget(t)}this._widget.$element().appendTo(this._getWidgetContainer())}},_getWidgetName:function(){return a},_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*u.ONE_YEAR),onDisposing:function(){this._widget=null}.bind(this)}}});e.exports=d},function(e,t,n){var i=n(2),o=n(49),a=n(533),r=n(22),s=n(3).each,l=n(0).extend,u=n(117),c=n(8),d=n(33),h="dx-dateview",p="date",f="year",g="month",_="day",m="hours",v=o.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")===p?new Date(e.getFullYear(),e.getMonth(),e.getDate()):e},_getDefaultOptions:function(){return l(this.callBase(),{minDate:u.MIN_DATEVIEW_DEFAULT_DATE,maxDate:u.MAX_DATEVIEW_DEFAULT_DATE,type:p,value:new Date,showNames:!1,applyCompactClass:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"win"===e.platform&&e.version&&8===e.version[0]},options:{showNames:!0}},{device:function(e){return"desktop"!==e.deviceType},options:{applyCompactClass:!0}}])},_render:function(){this.callBase(),this.$element().addClass(h),this._toggleFormatClasses(this.option("type")),this._toggleCompactClass()},_toggleFormatClasses:function(e,t){this.$element().addClass(h+"-"+e),t&&this.$element().removeClass(h+"-"+t)},_toggleCompactClass:function(){this.$element().toggleClass("dx-dateview-compact",this.option("applyCompactClass"))},_wrapper:function(){return this._$wrapper},_renderContentImpl:function(){this._$wrapper=i("<div>").addClass("dx-dateview-wrapper"),this._renderRollers(),this._$wrapper.appendTo(this.$element())},_renderRollers:function(){this._$rollersContainer||(this._$rollersContainer=i("<div>").addClass("dx-dateview-rollers")),this._$rollersContainer.empty(),this._createRollerConfigs(),this._rollers={};var e=this;s(e._rollerConfigs,function(t){var n=i("<div>").appendTo(e._$rollersContainer).addClass("dx-dateviewroller-"+e._rollerConfigs[t].type);e._rollers[e._rollerConfigs[t].type]=e._createComponent(n,a,{items:e._rollerConfigs[t].displayItems,selectedIndex:e._rollerConfigs[t].selectedIndex,showScrollbar:!1,onStart:function(n){var i=n.component;i._toggleActive(!0),e._setActiveRoller(e._rollerConfigs[t],i.option("selectedIndex"))},onEnd:function(e){e.component._toggleActive(!1)},onClick:function(n){var i=n.component;i._toggleActive(!0),e._setActiveRoller(e._rollerConfigs[t],i.option("selectedIndex")),e._setRollerState(e._rollerConfigs[t],i.option("selectedIndex")),i._toggleActive(!1)},onSelectedIndexChanged:function(n){var i=n.component;e._setRollerState(e._rollerConfigs[t],i.option("selectedIndex"))}})}),e._$rollersContainer.appendTo(e._wrapper())},_createRollerConfigs:function(e){var t=this;e=e||t.option("type"),t._rollerConfigs={},d.getFormatParts(u.FORMATS_MAP[e]).forEach(function(e){t._createRollerConfig(e)})},_createRollerConfig:function(e){for(var t=u.DATE_COMPONENTS_INFO[e],n=this._calculateRollerConfigValueRange(e),i=n.startValue,o=n.endValue,a=t.formatter,r=this.option("showNames"),s=this._getCurrentDate(),l={type:e,setValue:t.setter,valueItems:[],displayItems:[],getIndex:function(e){return e[t.getter]()-i}},c=i;c<=o;c++)l.valueItems.push(c),l.displayItems.push(a(c,r,s));l.selectedIndex=l.getIndex(s),this._rollerConfigs[e]=l},_setActiveRoller:function(e){var t=e&&this._rollers[e.type];s(this._rollers,function(){this.toggleActiveState(this===t)})},_updateRollersPosition:function(){var e=this;s(this._rollers,function(t){var n=e._rollerConfigs[t].getIndex(e._getCurrentDate());this.option("selectedIndex",n)})},_setRollerState:function(e,t){if(t!==e.selectedIndex){var n=e.valueItems[t],i=e.setValue,o=new Date(this._getCurrentDate()),a=o.getDate();e.type===g?a=Math.min(a,u.getMaxMonthDay(o.getFullYear(),n)):e.type===f&&(a=Math.min(a,u.getMaxMonthDay(n,o.getMonth()))),o.setDate(a),o[i](n),o=r.normalizeDate(o,this.option("minDate"),this.option("maxDate")),this.option("value",o),e.selectedIndex=t}e.type===f&&this._refreshRollers(),e.type===g&&(this._refreshRoller(_),this._refreshRoller(m))},_refreshRoller:function(e){var t=this._rollers[e];if(t){this._createRollerConfig(e);var n=this._rollerConfigs[e];e!==_&&n.displayItems.toString()===t.option("items").toString()||t.option({items:n.displayItems,selectedIndex:n.selectedIndex})}},_getCurrentDate:function(){var e=this._valueOption(),t=this.option("minDate"),n=this.option("maxDate");return t&&e.getTime()<=t.getTime()?e=t:n&&e.getTime()>=n.getTime()&&(e=n),e},_calculateRollerConfigValueRange:function(e){var t=this._getCurrentDate(),n=this.option("minDate"),i=this.option("maxDate"),o=r.sameYear(t,n),a=o&&t.getMonth()===n.getMonth(),s=r.sameYear(t,i),l=s&&t.getMonth()===i.getMonth(),c=a&&t.getDate()===n.getDate(),d=l&&t.getDate()===i.getDate(),h=u.DATE_COMPONENTS_INFO[e],p=h.startValue,v=h.endValue;return e===f&&(p=n.getFullYear(),v=i.getFullYear()),e===g&&(o&&(p=n.getMonth()),s&&(v=i.getMonth())),e===_&&(v=u.getMaxMonthDay(t.getFullYear(),t.getMonth()),o&&a&&(p=n.getDate()),s&&l&&(v=i.getDate())),e===m&&(p=c?n.getHours():p,v=d?i.getHours():v),{startValue:p,endValue:v}},_refreshRollers:function(){this._refreshRoller(g),this._refreshRoller(_),this._refreshRoller(m)},_optionChanged:function(e){switch(e.name){case"showNames":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},_dispose:function(){clearTimeout(this._deferredRenderDayTimeout),clearTimeout(this._deferredRenderMonthTimeout),this.callBase()}});c("dxDateView",v),e.exports=v},function(e,t,n){var i=n(2),o=n(5),a=n(8),r=n(0).extend,s=n(3).each,l=n(9),u=n(19),c=n(94),d=n(39),h=n(26),p="dx-dateview-item",f=c.inherit({_getDefaultOptions:function(){return r(this.callBase(),{showScrollbar:!1,useNative:!1,selectedIndex:0,bounceEnabled:!1,items:[],showOnClick:!1,onClick:null,onSelectedIndexChanged:null})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return"win"===e.platform&&e.version&&8===e.version[0]},options:{showOnClick:!0}},{device:{platform:"generic"},options:{scrollByContent:!0}}])},_init:function(){this.callBase(),this._renderSelectedItemFrame()},_render:function(){this.callBase(),this.$element().addClass("dx-dateviewroller"),this._renderContainerClick(),this._renderItems(),this._renderSelectedValue(),this._renderItemsClick(),this._wrapAction("_endAction",this._endActionHandler.bind(this)),this._renderSelectedIndexChanged()},_renderSelectedIndexChanged:function(){this._selectedIndexChanged=this._createActionByOption("onSelectedIndexChanged")},_renderContainerClick:function(){if(this.option("showOnClick")){var e=l.addNamespace(u.name,this.NAME),t=this._createActionByOption("onClick");o.off(this._$container,e),o.on(this._$container,e,function(e){t({event:e})})}},_wrapAction:function(e,t){var n=this._strategy,i=n[e];n[e]=function(){return t.apply(this,arguments),i.apply(this,arguments)}},_renderItems:function(){var e=this.option("items")||[],t=i();this._$content.empty(),e.forEach(function(e){t=t.add(i("<div>").addClass(p).append(e))}),this._$content.append(t),this._$items=t,this.update()},_renderSelectedItemFrame:function(){i("<div>").addClass("dx-dateview-item-selected-frame").append(i("<div>").addClass("dx-dateview-item-selected-border")).appendTo(this._$container)},_renderSelectedValue:function(e){var t=this._fitIndex(e||this.option("selectedIndex"));this._moveTo({top:this._getItemPosition(t)}),this._renderActiveStateItem()},_fitIndex:function(e){var t=(this.option("items")||[]).length;return e>=t?t-1:e<0?0:e},_getItemPosition:function(e){return Math.round(this._itemHeight()*e)},_renderItemsClick:function(){var e=this._getItemSelector(),t=l.addNamespace(u.name,this.NAME);o.off(this.$element(),t,e),o.on(this.$element(),t,e,this._itemClickHandler.bind(this))},_getItemSelector:function(){return"."+p},_itemClickHandler:function(e){this.option("selectedIndex",this._itemElementIndex(e.currentTarget))},_itemElementIndex:function(e){return this._itemElements().index(e)},_itemElements:function(){return this.$element().find(this._getItemSelector())},_renderActiveStateItem:function(){var e=this.option("selectedIndex");s(this._$items,function(t){i(this).toggleClass("dx-dateview-item-selected",e===t)})},_moveTo:function(e){e=this._normalizeLocation(e);var t=this._location(),n={x:-(t.left-e.left),y:-(t.top-e.top)};if(this._isVisible()&&(n.x||n.y))if(this._strategy._prepareDirections(!0),this._animation){var i=this;d.stop(this._$content),d.animate(this._$content,{duration:200,type:"slide",to:{top:Math.floor(n.y)},complete:function(){h.resetPosition(i._$content),i._strategy.handleMove({delta:n})}}),delete this._animation}else this._strategy.handleMove({delta:n})},_validate:function(e){return this._strategy.validate(e)},_endActionHandler:function(){var e=this.option("selectedIndex"),t=-this._location().top/this._itemHeight(),n=Math.round(t);this._animation=!0,n===e?this._renderSelectedValue(n):this.option("selectedIndex",n)},_itemHeight:function(){var e=this._$items.first();return e.get(0)&&e.get(0).getBoundingClientRect().height||0},_toggleActive:function(e){this.$element().toggleClass("dx-state-active",e)},_isVisible:function(){return this._$container.is(":visible")},_fireSelectedIndexChanged:function(e,t){this._selectedIndexChanged({value:e,previousValue:t,event:void 0})},_visibilityChanged:function(e){this.callBase(e),e&&this._renderSelectedValue(this.option("selectedIndex")),this.toggleActiveState(!1)},toggleActiveState:function(e){this.$element().toggleClass("dx-dateviewroller-current",e)},_refreshSelectedIndex:function(){var e=this.option("selectedIndex"),t=this._fitIndex(e);t===e?this._renderActiveStateItem():this.option("selectedIndex",t)},_optionChanged:function(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:this.callBase(e)}}});a("dxDateViewRoller",f),e.exports=f},function(e,t,n){var i=n(4).noop,o=n(193),a=n(44),r=n(13).inArray,s=n(117),l=n(56),u=o.inherit({NAME:"Native",popupConfig:i,getParsedText:function(e){return e?"datetime"===this.dateBox.option("type")?new Date(e.replace(/-/g,"/").replace("T"," ").split(".")[0]):s.fromStandardDateFormat(e):null},renderPopupContent:i,_getWidgetName:i,_getWidgetOptions:i,_getDateBoxType:function(){var e=this.dateBox.option("type");return-1===r(e,s.SUPPORTED_FORMATS)?e="date":"datetime"!==e||a.inputType(e)||(e="datetime-local"),e},getDefaultOptions:function(){return{mode:this._getDateBoxType()}},getDisplayFormat:function(e){var t=this._getDateBoxType();return e||s.FORMATS_MAP[t]},renderInputMinMax:function(e){e.attr({min:l.serializeDate(this.dateBox.dateOption("min"),"yyyy-MM-dd"),max:l.serializeDate(this.dateBox.dateOption("max"),"yyyy-MM-dd")})}});e.exports=u},function(e,t,n){var i=n(2),o=n(7).getWindow(),a=n(302),r=n(536),s=n(33),l=n(0).extend,u=n(191),c=n(117),d=a.inherit({NAME:"CalendarWithTime",getDefaultOptions:function(){return l(this.callBase(),{applyValueMode:"useButtons",buttonsLocation:"bottom after",showPopupTitle:!1})},getDisplayFormat:function(e){return e||"shortdateshorttime"},_is24HourFormat:function(){return s.is24HourFormat(this.getDisplayFormat(this.dateBox.option("displayFormat")))},_renderWidget:function(){this.callBase(),this._timeView=this.dateBox._createComponent(i("<div>"),r,{value:this.dateBoxValue(),_showClock:!this._isShrinkView(),use24HourFormat:this._is24HourFormat(),onValueChanged:this._valueChangedHandler.bind(this),stylingMode:this.dateBox.option("stylingMode")})},renderOpenedState:function(){this.callBase();var e=this._getPopup();e&&e._wrapper().toggleClass("dx-datebox-adaptivity-mode",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,c.normalizeTime(t)),this.callBase(),this._timeView&&(t&&this._timeView.option("value",t),this._timeView.option("use24HourFormat",this._is24HourFormat()))},_isSmallScreen:function(){return i(o).width()<=573},_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(i("<div>").appendTo(e),u,{direction:"row",crossAlign:"start",items:this._getBoxItems(),itemTemplate:function(e){var t=i("<div>");switch(e.name){case"calendar":t.append(this._widget.$element()),this._isShrinkView()&&t.append(this._timeView.$element());break;case"time":t.append(this._timeView.$element())}return t}.bind(this)}),this._attachTabHandler()},popupConfig:function(e){var t=this.callBase(e);return l(t,{onShowing:function(){if("fallback"===this._box.option("_layoutStrategy")){var e=this._getPopup().$content().find(".dx-timeview-clock").css("minWidth");this._timeView.$element().css("maxWidth",e)}}.bind(this)})},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){i(e.target).hasClass("dx-texteditor-input")||(this.callBase.apply(this,arguments),this.dateBox._hasFocusClass()||this.dateBox.focus())},getValue:function(){var e=this._widget.option("value"),t=this._timeView.option("value");return(e=e?new Date(e):new Date).setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e},dispose:function(){clearTimeout(this._removeMinWidthTimer),clearTimeout(this._repaintTimer),this.callBase()}});e.exports=d},function(e,t,n){var i=n(2),o=n(49),a=n(116),r=n(95),s=n(191),l=n(0).extend,u=n(8),c=n(33),d=n(117),h=function(e,t,n){p(e,t,n)},p=function(e,t,n){e.css("transform","rotate("+t+"deg) translate(0,"+n+"px)")},f=o.inherit({_getDefaultOptions:function(){return l(this.callBase(),{value:new Date(Date.now()),use24HourFormat:!0,_showClock:!0,_arrowOffset:0,stylingMode:void 0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"android"},options:{_arrowOffset:15}},{device:{platform:"generic"},options:{_arrowOffset:5}}])},_getValue:function(){return this.option("value")||new Date},_init:function(){this.callBase(),this.$element().addClass("dx-timeview")},_render:function(){this.callBase(),this._renderBox(),this._updateTime()},_renderBox:function(){var e=i("<div>").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:50,template:this._renderField.bind(this)}),this._createComponent(e,s,{height:"100%",width:"100%",direction:"col",items:t})},_renderClock:function(e,t,n){this._$hourArrow=i("<div>").addClass("dx-timeview-hourarrow"),this._$minuteArrow=i("<div>").addClass("dx-timeview-minutearrow");var o=i(n);o.addClass("dx-timeview-clock").append(this._$hourArrow).append(this._$minuteArrow),this.setAria("role","presentation",o)},_updateClock:function(){var e=this._getValue(),t=e.getHours()/12*360+e.getMinutes()/60*30,n=e.getMinutes()/60*360;h(this._$hourArrow,t,this.option("_arrowOffset")),h(this._$minuteArrow,n,this.option("_arrowOffset"))},_getBoxItems:function(e){var t=[{ratio:0,shrink:0,baseSize:"auto",template:function(){return this._hourBox.$element()}.bind(this)},{ratio:0,shrink:0,baseSize:"auto",template:i("<div>").addClass("dx-timeview-time-separator").text(c.getTimeSeparator())},{ratio:0,shrink:0,baseSize:"auto",template:function(){return this._minuteBox.$element()}.bind(this)}];return e&&t.push({ratio:0,shrink:0,baseSize:"auto",template:function(){return this._format12.$element()}.bind(this)}),t},_renderField:function(){var e=!this.option("use24HourFormat");return this._createHourBox(),this._createMinuteBox(),e&&this._createFormat12Box(),this._createComponent(i("<div>").addClass("dx-timeview-field"),s,{direction:"row",align:"center",crossAlign:"center",items:this._getBoxItems(e)}).$element()},_createHourBox:function(){this._hourBox=this._createComponent(i("<div>"),a,l({min:-1,max:24,value:this._getValue().getHours(),onValueChanged:this._onHourBoxValueChanged.bind(this)},this._getNumberBoxConfig())),this._hourBox.setAria("label","hours")},_onHourBoxValueChanged:function(e){var t=this._getValue(),n=this._convertMaxHourToMin(this._getCalculatedHours(t.getHours(),e.previousValue,e.value)),i=new Date(t);i.setHours(n),d.normalizeTime(i),this.option("value",i)},_getCalculatedHours:function(e,t,n){return 1===Math.abs(t-n)?e+(n-t):n},_convertMaxHourToMin:function(e){return(24+e)%24},_createMinuteBox:function(){this._minuteBox=this._createComponent(i("<div>"),a,l({min:-1,max:60,value:this._getValue().getMinutes(),onValueChanged:function(e){var t=(60+e.value)%60;this._minuteBox.option("value",t);var n=new Date(this._getValue());n.setMinutes(t),d.normalizeTime(n),this.option("value",n)}.bind(this)},this._getNumberBoxConfig())),this._minuteBox.setAria("label","minutes")},_createFormat12Box:function(){var e=c.getPeriodNames();this._format12=this._createComponent(i("<div>").addClass("dx-timeview-format12"),r,l({items:[{value:-1,text:e[0]},{value:1,text:e[1]}],valueExpr:"value",displayExpr:"text",onValueChanged:function(e){var t=this._getValue().getHours(),n=new Date(this._getValue()),i=(t+12*e.value)%24;n.setHours(i),this.option("value",n)}.bind(this),value:this._getValue().getHours()>=12?1:-1},{stylingMode:this.option("stylingMode")})),this._format12.setAria("label","type")},_refreshFormat12:function(){if(!this.option("use24HourFormat")){var e=this._getValue().getHours()>=12;this._format12._valueChangeActionSuppressed=!0,this._format12.option("value",e?1:-1),this._format12._valueChangeActionSuppressed=!1}},_getNumberBoxConfig:function(){return l({showSpinButtons:!0,disabled:this.option("disabled"),valueFormat:function(e){return(e<10?"0":"")+e}},{stylingMode:this.option("stylingMode")})},_normalizeHours:function(e){return this.option("use24HourFormat")?e:e%12||12},_updateField:function(){this._hourBox&&(this._hourBox._valueChangeActionSuppressed=!0,this._hourBox.option("value",this._normalizeHours(this._getValue().getHours())),this._hourBox._valueChangeActionSuppressed=!1),this._minuteBox&&(this._minuteBox._valueChangeActionSuppressed=!0,this._minuteBox.option("value",this._getValue().getMinutes()),this._minuteBox._valueChangeActionSuppressed=!1),this._refreshFormat12()},_updateTime:function(){this.option("_showClock")&&this._updateClock(),this._updateField()},_visibilityChanged:function(e){e&&this._updateTime()},_toggleDisabledState:function(e){this._hourBox&&this._hourBox.option("disabled",e),this._minuteBox&&this._minuteBox.option("disabled",e)},_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)}}});u("dxTimeView",f),e.exports=f},function(e,t,n){var i=n(2),o=n(7).getWindow(),a=n(102),r=n(193),s=n(4).noop,l=n(1).isDate,u=n(0).extend,c=n(117),d=n(33),h={min:new Date(0,0,0,0,0),max:new Date(0,0,0,23,59)},p=r.inherit({NAME:"List",supportedKeys:function(){return{tab:function(){this.option("opened")&&this.close()},space:s,home:s,end:s}},getDefaultOptions:function(){return u(this.callBase(),{applyValueMode:"instantly"})},getDisplayFormat:function(e){return e||"shorttime"},popupConfig:function(e){return u(e,{width:this._getPopupWidth()})},useCurrentDateByDefault:function(){return!0},_getPopupWidth:function(){return this.dateBox.$element().outerWidth()},popupShowingHandler:function(){this._dimensionChanged()},_renderWidget:function(){this.callBase(),this._refreshItems()},_getWidgetName:function(){return a},_getWidgetOptions:function(){var e=this.dateBox._keyboardProcessor;return{_keyboardProcessor:e?e.attachChildProcessor():null,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,n=0,i=this._widgetItems.length;n<i;n++)if(this._areDatesEqual(e,this._widgetItems[n])){t=n;break}return t},_areDatesEqual:function(e,t){return l(e)&&l(t)&&e.getHours()===t.getHours()&&e.getMinutes()===t.getMinutes()},_getTimeListItems:function(){var e=this.dateBox.dateOption("min")||this._getBoundaryDate("min"),t=this.dateBox.dateOption("max")||this._getBoundaryDate("max"),n=this.dateBox.dateOption("value")||null,i=t-e,o=e.getMinutes()%this.dateBox.option("interval");return i<0?[]:(i>c.ONE_DAY&&(i=c.ONE_DAY),n-e<c.ONE_DAY?this._getRangeItems(e,new Date(e),i):((e=this._getBoundaryDate("min")).setMinutes(o),n&&Math.abs(n-t)<c.ONE_DAY&&(i=(60*t.getHours()+Math.abs(t.getMinutes()-o))*c.ONE_MINUTE),this._getRangeItems(e,new Date(e),i)))},_getRangeItems:function(e,t,n){for(var i=[],o=this.dateBox.option("interval");t-e<n;)i.push(new Date(t)),t.setMinutes(t.getMinutes()+o);return i},_getBoundaryDate:function(e){var t=h[e],n=this.dateBox.dateOption("value")||new Date;return new Date(n.getFullYear(),n.getMonth(),n.getDate(),t.getHours(),t.getMinutes())},_timeListItemTemplate:function(e){var t=this.dateBox.option("displayFormat");return d.format(e,this.getDisplayFormat(t))},_listItemClickHandler:function(e){this.dateBox.option("opened",!1);var t=this.dateBox.option("value"),n=e.itemData,i=n.getHours(),o=n.getMinutes(),a=n.getSeconds(),r=n.getFullYear(),s=n.getMonth(),l=n.getDate();t?((t=new Date(t)).setHours(i),t.setMinutes(o),t.setSeconds(a),t.setFullYear(r),t.setMonth(s),t.setDate(l)):t=new Date(r,s,l,i,o,0,0),this.dateBoxValue(t)},attachKeyboardEvents:function(e){var t=e.attachChildProcessor();this._widget&&this._widget.option("_keyboardProcessor",t)},_dimensionChanged:function(){this._getPopup()&&this._updatePopupDimensions()},_updatePopupDimensions:function(){this._updatePopupWidth(),this._updatePopupHeight()},_updatePopupWidth:function(){this.dateBox._setPopupOption("width",this._getPopupWidth())},_updatePopupHeight:function(){this.dateBox._setPopupOption("height","auto");var e=this._widget.$element().outerHeight(),t=.45*i(o).height();this.dateBox._setPopupOption("height",Math.min(e,t)),this.dateBox._timeList&&this.dateBox._timeList.updateDimensions()}});e.exports=p},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n(194),r=i(a),s=i(n(2)),l=i(n(26)),u=n(0),c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),o(t,[{key:"useDefaultAnimation",value:function(){return!0}},{key:"defaultPositionRendering",value:function(e,t,n){var i=this,o=this.getDrawerInstance();if((0,s.default)(o.content()).css(o.isHorizontalDirection()?"width":"height",e.maxSize),n){var r={$element:e.$content,position:e.contentPosition,direction:o.getDrawerPosition(),duration:o.option("animationDuration"),complete:function(){i._elementsAnimationCompleteHandler()}};a.animation.moveTo(r)}else o.isHorizontalDirection()?l.default.move(e.$content,{left:e.contentPosition}):l.default.move(e.$content,{top:e.contentPosition})}},{key:"getPositionRenderingConfig",value:function(e){return(0,u.extend)(function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getPositionRenderingConfig",this).call(this,e),{contentPosition:this._getPanelSize(e)*this.getDrawerInstance()._getPositionCorrection(),maxSize:this._getPanelSize(!0)})}}]),t}();e.exports=c},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n(194),r=i(a),s=i(n(2)),l=n(0),u=n(32),c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),o(t,[{key:"slidePositionRendering",value:function(e,t,n){if(n){var i=(0,l.extend)(e.defaultAnimationConfig,{$element:e.$panel,margin:e.panelOffset,duration:this.getDrawerInstance().option("animationDuration"),direction:e.direction});a.animation.margin(i)}else e.$panel.css("margin"+(0,u.camelize)(e.direction,!0),e.panelOffset)}},{key:"expandPositionRendering",value:function(e,t,n){var i=this.getDrawerInstance();if(n){var o=(0,l.extend)(e.defaultAnimationConfig,{$element:e.$panel,size:e.size,duration:i.option("animationDuration"),direction:e.direction});a.animation.size(o)}else i.isHorizontalDirection()?(0,s.default)(e.$panel).css("width",e.size):(0,s.default)(e.$panel).css("height",e.size)}},{key:"getPositionRenderingConfig",value:function(e){return(0,l.extend)(function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getPositionRenderingConfig",this).call(this,e),{panelOffset:this._getPanelOffset(e)})}},{key:"needOrderContent",value:function(e,t){return(t?"left"===e:"right"===e)||"bottom"===e}}]),t}();e.exports=c},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n(194),r=i(a),s=i(n(2)),l=i(n(26)),u=i(n(58)),c=i(n(1)),d=n(0),h=n(32),p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),o(t,[{key:"renderPanel",value:function(e,t){var n=this;delete this._initialPosition;var i=this.getOverlayPosition(),o=this.getDrawerInstance();o._overlay=o._createComponent(o.content(),u.default,{shading:!1,container:o.getOverlayTarget(),position:i,width:"auto",height:"100%",templatesRenderAsynchronously:o.option("templatesRenderAsynchronously"),animation:{show:{duration:0}},onPositioned:function(e){this._fixOverlayPosition(e.component.$content())}.bind(this),contentTemplate:o.option("template"),onContentReady:function(e){t.resolve(),n._processOverlayZIndex(e.component.content())},visible:!0,propagateOutsideClick:!0})}},{key:"_fixOverlayPosition",value:function(e){var t=this.getDrawerInstance();c.default.isDefined(this._initialPosition)&&l.default.move(e,{left:this._initialPosition.left,top:this._initialPosition.top}),"right"===t.getDrawerPosition()&&(e.css("left","auto"),t.option("rtlEnabled")&&l.default.move(e,{left:0}))}},{key:"getOverlayPosition",value:function(){var e=this.getDrawerInstance(),t=e.getDrawerPosition(),n={};("left"===t&&(n={my:"top left",at:"top left"}),"right"===t)&&(n={my:e.option("rtlEnabled")?"top left":"top right",at:"top right"});return"top"!==t&&"bottom"!==t||(n={my:t,at:t}),n.of=e.getOverlayTarget(),n}},{key:"setPanelSize",value:function(e){var t=this.getDrawerInstance(),n=t.getOverlay();t.isHorizontalDirection()?(n.option("height","100%"),n.option("width",e?t.getRealPanelWidth():this._getPanelSize(t.option("opened")))):(n.option("width",n.option("container").width()),n.option("height",e?t.getRealPanelHeight():this._getPanelSize(t.option("opened"))))}},{key:"setupContent",value:function(e,t){var n=this.getDrawerInstance();e.css("padding"+(0,h.camelize)(t,!0),n.option("minSize")),e.css("transform","inherit")}},{key:"slidePositionRendering",value:function(e,t,n){var i=this.getDrawerInstance();this._initialPosition=i.getOverlay().$content().position();var o=i.getDrawerPosition();if(this.setupContent(e.$content,o,e.drawer),n){var r=(0,d.extend)(e.defaultAnimationConfig,{$element:e.$panel,position:e.panelOffset,duration:i.option("animationDuration"),direction:o});a.animation.moveTo(r)}else i.isHorizontalDirection()?l.default.move(e.$panel,{left:e.panelOffset}):l.default.move(e.$panel,{top:e.panelOffset})}},{key:"expandPositionRendering",value:function(e,t,n){var i=this.getDrawerInstance();this._initialPosition=i.getOverlay().$content().position();var o=i.getDrawerPosition();this.setupContent(e.$content,o),l.default.move(e.$panelOverlayContent,{left:0});var r=(0,d.extend)(e.defaultAnimationConfig,{$element:e.$panelOverlayContent,size:e.size,duration:i.option("animationDuration"),direction:o,marginTop:e.marginTop});n?a.animation.size(r):i.isHorizontalDirection()?(0,s.default)(e.$panelOverlayContent).css("width",e.size):((0,s.default)(e.$panelOverlayContent).css("height",e.size),"bottom"===o&&(0,s.default)(e.$panelOverlayContent).css("marginTop",e.marginTop))}},{key:"getPositionRenderingConfig",value:function(e){var n=this.getDrawerInstance(),i=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getPositionRenderingConfig",this).call(this,e);return(0,d.extend)(i,{panelOffset:this._getPanelOffset(e)*this.getDrawerInstance()._getPositionCorrection(),$panelOverlayContent:n.getOverlay().$content(),marginTop:n.getRealPanelHeight()-i.size})}},{key:"getPanelContent",value:function(){return(0,s.default)(this.getDrawerInstance().getOverlay().content())}},{key:"_processOverlayZIndex",value:function(e){var t=(0,s.default)(e).get(0).style.zIndex||1;this.getDrawerInstance().setZIndex(t)}},{key:"needOrderContent",value:function(e){return"right"===e||"bottom"===e}}]),t}();e.exports=p},function(e,t,n){var i=n(2),o=n(12),a=n(7),r=a.getWindow(),s=n(5),l=n(8),u=n(4),c=n(0).extend,d=n(3).each,h=n(10),p=n(277),f=n(17),g=n(93),_=n(1).isPromise,m=n(6),v=m.Deferred,y="dx-pending-rendering",b="dx-pending-rendering-manual",x="dx-pending-rendering-active",w=["onRendered","onShown"],C=f.inherit({_getDefaultOptions:function(){return c(this.callBase(),{showLoadIndicator:!1,renderWhen:void 0,animation:void 0,staggerItemSelector:void 0,onRendered:null,onShown:null})},_getAnonymousTemplateName:function(){return"content"},_init:function(){this.transitionExecutor=new p.TransitionExecutor,this._initElement(),this._initRender(),this._$initialContent=this.$element().clone().contents(),this._initActions(),this.callBase()},_initElement:function(){this.$element().addClass("dx-deferrendering")},_initRender:function(){var e=this,t=this.$element(),n=this.option("renderWhen"),i=function(){return e._renderDeferredContent()};_(n)?m.fromPromise(n).done(i):(t.data("dx-render-delegate",i),void 0===n&&t.addClass(b))},_initActions:function(){this._actions={},d(w,function(e,t){this._actions[t]=this._createActionByOption(t)||u.noop}.bind(this))},_initMarkup:function(){this.callBase(),this._initContent||(this._initContent=this._renderContent,this._renderContent=function(){}),this._initContent()},_renderContentImpl:function(){this.$element().removeClass("dx-widget"),this.$element().append(this._$initialContent),this._setLoadingState()},_renderDeferredContent:function(){var e=this,t=this.$element(),n=new v;return t.removeClass(b),t.addClass(x),this._abortRenderTask(),this._renderTask=u.executeAsync(function(){e._renderImpl().done(function(){var i={element:t};e._actions.onShown([i]),n.resolve(i)}).fail(function(){n.rejectWith(n,arguments)})}),n.promise()},_isElementInViewport:function(e){var t=e.getBoundingClientRect();return t.bottom>=0&&t.right>=0&&t.top<=(r.innerHeight||o.getDocumentElement().clientHeight)&&t.left<=(r.innerWidth||o.getDocumentElement().clientWidth)},_animate:function(){var e,t=this,n=this.$element(),o=a.hasWindow()&&this.option("animation"),r=this.option("staggerItemSelector");return t.transitionExecutor.stop(),o?(r?n.find(r).each(function(){t._isElementInViewport(this)&&t.transitionExecutor.enter(i(this),o)}):t.transitionExecutor.enter(n,o),e=t.transitionExecutor.start()):e=(new v).resolve().promise(),e},_renderImpl:function(){var e=this.$element(),t={element:e},n=this._getTemplate(this._getAnonymousTemplateName());return n&&n.render({container:e.empty(),noModel:!0}),this._setRenderedState(e),s.trigger(e,"dxcontentrendered"),this._actions.onRendered([t]),this._isRendered=!0,this._animate()},_setLoadingState:function(){var e=this.$element(),t=!!e.find(".dx-visible-while-pending-rendering").length;e.addClass(y),t||e.children().addClass("dx-invisible-while-pending-rendering"),this.option("showLoadIndicator")&&this._showLoadIndicator(e)},_showLoadIndicator:function(e){this._$loadIndicator=new g(i("<div>"),{visible:!0}).$element().addClass("dx-deferrendering-load-indicator"),i("<div>").addClass("dx-loadindicator-container").addClass("dx-deferrendering-loadindicator-container").append(this._$loadIndicator).appendTo(e)},_setRenderedState:function(){var e=this.$element();this._$loadIndicator&&this._$loadIndicator.remove(),e.removeClass(y),e.removeClass(x),h.triggerShownEvent(e.children())},_optionChanged:function(e){var t=e.value,n=e.previousValue;switch(e.name){case"renderWhen":!1===n&&!0===t?this._renderOrAnimate():!0===n&&!1===t&&(this.transitionExecutor.stop(),this._setLoadingState());break;case"showLoadIndicator":case"onRendered":case"onShown":break;default:this.callBase(e)}},_renderOrAnimate:function(){var e;return this._isRendered?(this._setRenderedState(),e=this._animate()):e=this._renderDeferredContent(),e},renderContent:function(){return this._renderOrAnimate()},_abortRenderTask:function(){this._renderTask&&(this._renderTask.abort(),this._renderTask=void 0)},_dispose:function(){this.transitionExecutor.stop(!0),this._abortRenderTask(),this._actions=void 0,this._$initialContent=void 0,this.callBase()}});l("dxDeferRendering",C),e.exports=C},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(161)),a=i(n(242)),r=n(4),s=i(r),l=n(3),u=i(n(64)),c=i(n(159)),d=n(6),h=i(n(2)),p=i(n(5)),f=n(0),g=n(244),_=i(n(8)),m=n(9),v=o.default.inherit({_supportedKeys:function(){return(0,f.extend)({},this.callBase(),{tab:function(e){if(this.option("opened")){var t=this._getTabbableElements(),n=e.shiftKey?t.last():t.first();n&&p.default.trigger(n,"focus"),e.preventDefault()}}})},_getTabbableElements:function(){return this._getElements().filter(u.default.tabbable)},_getElements:function(){return(0,h.default)(this.content()).find("*")},_getAnonymousTemplateName:function(){return"content"},_getDefaultOptions:function(){return(0,f.extend)(this.callBase(),{acceptCustomValue:!1,contentTemplate:null,openOnFieldClick:!0,valueFormat:function(e){return Array.isArray(e)?e.join(", "):e}})},_initMarkup:function(){this._initDataExpressions(),this._renderSubmitElement(),this.$element().addClass("dx-dropdownbox"),this.callBase()},_renderSubmitElement:function(){this._$submitElement=(0,h.default)("<input>").attr("type","hidden").appendTo(this.$element())},_renderValue:function(){return this._setSubmitValue(),this.callBase()},_setSubmitValue:function(){var e=this.option("value"),t="this"===this.option("valueExpr")?this._displayGetter(e):e;this._$submitElement.val(t)},_getSubmitElement:function(){return this._$submitElement},_renderInputValue:function(){var e=this.callBase.bind(this),t=[];if(!this._dataSource)return e(t),(new d.Deferred).resolve();var n=this._getCurrentValue(),i=s.default.ensureDefined(n,[]);i=Array.isArray(i)?i:[i];var o=(0,l.map)(i,function(e){return this._loadItem(e).always(function(n){var i=this._displayGetter(n);t.push(s.default.ensureDefined(i,e))}.bind(this))}.bind(this));return d.when.apply(this,o).always(function(){this.option("displayValue",t),e(t.length&&t)}.bind(this)).fail(e)},_loadItem:function(e){var t=new d.Deferred,n=this,i=(0,r.grep)(this.option("items")||[],function(t){return this._isValueEquals(this._valueGetter(t),e)}.bind(this))[0];return void 0!==i?t.resolve(i):this._loadValue(e).done(function(e){t.resolve(e)}).fail(function(i){n.option("acceptCustomValue")?t.resolve(e):t.reject()}),t.promise()},_updatePopupWidth:function(){this._setPopupOption("width",this.$element().outerWidth())},_popupElementTabHandler:function(e){if("tab"===(0,m.normalizeKeyName)(e)){var t=this._getTabbableElements().first().get(0),n=this._getTabbableElements().last().get(0),i=e.originalEvent.target,o=!(i!==t||!e.shift),a=!(i!==n||e.shift);(o||a)&&(this.close(),p.default.trigger(this._input(),"focus"),o&&e.originalEvent.preventDefault())}},_renderPopup:function(e){this.callBase(),this.option("focusStateEnabled")&&this._popup._keyboardProcessor.push(new c.default({element:this.content(),handler:this._popupElementTabHandler,context:this}))},_popupConfig:function(){return(0,f.extend)(this.callBase(),{width:function(){return this.$element().outerWidth()}.bind(this),height:"auto",tabIndex:-1,dragEnabled:!1,focusStateEnabled:this.option("focusStateEnabled"),maxHeight:function(){return(0,g.getElementMaxHeightByWindow)(this.$element())}.bind(this)})},_popupShownHandler:function(){this.callBase();var e=this._getTabbableElements().first();p.default.trigger(e,"focus")},_setCollectionWidgetOption:s.default.noop,_optionChanged:function(e){switch(this._dataExpressionOptionChanged(e),e.name){case"width":this.callBase(e),this._updatePopupWidth();break;case"dataSource":this._renderInputValue();break;case"displayValue":this.option("text",e.value);break;case"displayExpr":this._renderValue();break;default:this.callBase(e)}}}).include(a.default);(0,_.default)("dxDropDownBox",v),e.exports=v},function(e,t,n){var i=n(2),o=n(14),a=n(42),r=n(7).getWindow(),s=n(5),l=n(8),u=n(25),c=n(1).isDefined,d=n(3).each,h=n(0).extend,p=n(13).inArray,f=n(62),g=n(49),_=n(34),m=n(245),v=n(31),y=n(16),b=n(9),x=n(19),w=n(15),C=n(30),k="dx-fileuploader-dragover",S="dx-fileuploader-file-container",I="dx-fileuploader-file-name",T="dx-fileuploader-file-size",D="dx-fileuploader-button",E="dx-fileuploader-button-container",A="dx-fileuploader-upload-button",O=function(){return!!r.FormData},P=g.inherit({_uploadStrategy:null,_supportedKeys:function(){var e=function(e){e.preventDefault();var t=this._selectButton.$element();s.trigger(t,x.name)};return h(this.callBase(),{space:e,enter:e})},_setOptionsByReference:function(){this.callBase(),h(this._optionsByReference,{value:!0})},_getDefaultOptions:function(){return h(this.callBase(),{chunkSize:0,value:[],selectButtonText:w.format("dxFileUploader-selectFile"),uploadButtonText:w.format("dxFileUploader-upload"),labelText:w.format("dxFileUploader-dropFile"),name:"files[]",multiple:!1,accept:"",uploadUrl:"/",allowCanceling:!0,showFileList:!0,progress:0,readyToUploadMessage:w.format("dxFileUploader-readyToUpload"),uploadedMessage:w.format("dxFileUploader-uploaded"),uploadFailedMessage:w.format("dxFileUploader-uploadFailedMessage"),uploadMode:"instantly",uploadMethod:"POST",uploadHeaders:{},onUploadStarted:null,onUploaded:null,onProgress:null,onUploadError:null,onUploadAborted:null,allowedFileExtensions:[],maxFileSize:0,minFileSize:0,invalidFileExtensionMessage:w.format("dxFileUploader-invalidFileExtension"),invalidMaxFileSizeMessage:w.format("dxFileUploader-invalidMaxFileSize"),invalidMinFileSizeMessage:w.format("dxFileUploader-invalidMinFileSize"),extendSelection:!0,validationMessageMode:"always",validationMessageOffset:{h:0,v:0},useNativeInputClick:!1,useDragOver:!0,nativeDropSupported:!0,_uploadButtonType:"normal"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===y.real().deviceType&&!y.isSimulator()},options:{focusStateEnabled:!0}},{device:[{platform:"android"},{platform:"win"}],options:{validationMessageOffset:{v:0}}},{device:function(){return"generic"!==y.real().platform},options:{useDragOver:!1}},{device:function(){return!O()},options:{uploadMode:"useForm"}},{device:function(){return v.msie||"generic"!==y.real().platform},options:{nativeDropSupported:!1}},{device:function(){return C.isMaterial()},options:{_uploadButtonType:"default"}}])},_init:function(){this.callBase.apply(this,arguments),this._initFileInput(),this._initLabel(),this._createFiles(),this._createUploadStartedAction(),this._createUploadedAction(),this._createProgressAction(),this._createUploadErrorAction(),this._createUploadAbortedAction(),this._setUploadStrategy()},_setUploadStrategy:function(){this._uploadStrategy=this.option("chunkSize")>0?new R(this):new F(this)},_initFileInput:function(){this._isCustomClickEvent=!1,this._$fileInput||(this._$fileInput=i("<input>").attr("type","file"),s.on(this._$fileInput,"change",this._inputChangeHandler.bind(this)),s.on(this._$fileInput,"click",function(e){return e.stopPropagation(),this.option("useNativeInputClick")||this._isCustomClickEvent}.bind(this))),this._$fileInput.prop({multiple:this.option("multiple"),accept:this.option("accept"),tabIndex:-1})},_inputChangeHandler:function(){if(!this._doPreventInputChange){var e=this._$fileInput.val().replace(/^.*\\/,""),t=this._$fileInput.prop("files");if(!t||t.length){var n=t?this._getFiles(t):[{name:e}];this._changeValue(n),"instantly"===this.option("uploadMode")&&this._uploadFiles()}}},_shouldFileListBeExtended:function(){return"useForm"!==this.option("uploadMode")&&this.option("extendSelection")&&this.option("multiple")},_removeDuplicates:function(e,t){for(var n=[],i=0;i<t.length;i++)this._isFileInArray(e,t[i])||n.push(t[i]);return n},_isFileInArray:function(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(i.size===t.size&&i.name===t.name)return!0}return!1},_changeValue:function(e){var t=this._shouldFileListBeExtended()?this.option("value").slice():[];"instantly"!==this.option("uploadMode")&&(e=this._removeDuplicates(t,e)),this.option("value",t.concat(e))},_getFiles:function(e){var t=[];return d(e,function(e,n){t.push(n)}),t},_initLabel:function(){this._$inputLabel||(this._$inputLabel=i("<div>")),this._$inputLabel.text(this.option("labelText"))},_focusTarget:function(){return this.$element().find("."+D)},_getSubmitElement:function(){return this._$fileInput},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-fileuploader"),this._renderWrapper(),this._renderInputWrapper(),this._renderSelectButton(),this._renderInputContainer(),this._renderUploadButton(),this._preventRecreatingFiles=!0},_render:function(){this._preventRecreatingFiles=!1,this._renderDragEvents(),this._renderFiles(),this.callBase()},_createFileProgressBar:function(e){e.progressBar=this._createProgressBar(e.value.size),e.progressBar.$element().appendTo(e.$file),this._initStatusMessage(e),this._initCancelButton(e)},_setStatusMessage:function(e,t){setTimeout(function(){this.option("showFileList")&&(e.$statusMessage.text(this.option(t)),e.$statusMessage.css("display",""),e.progressBar.$element().remove())}.bind(this),400)},_createFiles:function(){var e=this.option("value");this._files&&0!==e.length&&this._shouldFileListBeExtended()||(this._preventFilesUploading(this._files),this._files=[]),d(e.slice(this._files.length),function(e,t){var n=this._createFile(t);this._validateFile(n),this._files.push(n)}.bind(this))},_preventFilesUploading:function(e){d(e,function(e,t){t.request&&t.request.abort()}.bind(this))},_validateFile:function(e){e.isValidFileExtension=this._validateFileExtension(e),e.isValidMinSize=this._validateMinFileSize(e),e.isValidMaxSize=this._validateMaxFileSize(e)},_validateFileExtension:function(e){var t=this.option("allowedFileExtensions"),n=e.value.name.substring(e.value.name.lastIndexOf(".")).toLowerCase();if(0===t.length)return!0;for(var i=0;i<t.length;i++)if(n===t[i].toLowerCase())return!0;return!1},_validateMaxFileSize:function(e){var t=e.value.size,n=this.option("maxFileSize");return!(n>0)||t<=n},_validateMinFileSize:function(e){var t=e.value.size,n=this.option("minFileSize");return!(n>0)||t>=n},_createUploadStartedAction:function(){this._uploadStartedAction=this._createActionByOption("onUploadStarted")},_createUploadedAction:function(){this._uploadedAction=this._createActionByOption("onUploaded")},_createProgressAction:function(){this._progressAction=this._createActionByOption("onProgress")},_createUploadAbortedAction:function(){this._uploadAbortedAction=this._createActionByOption("onUploadAborted")},_createUploadErrorAction:function(){this._uploadErrorAction=this._createActionByOption("onUploadError")},_createFile:function(e){return{value:e,loadedSize:0,onProgress:u(),onAbort:u(),onLoad:u(),onError:u(),onLoadStart:u(),isValidFileExtension:!0,isValidMaxSize:!0,isValidMinSize:!0,isValid:function(){return this.isValidFileExtension&&this.isValidMaxSize&&this.isValidMinSize}}},_renderFiles:function(){var e=this.option("value");this._$filesContainer?this._shouldFileListBeExtended()&&0!==e.length||this._$filesContainer.empty():this._$filesContainer=i("<div>").addClass("dx-fileuploader-files-container").appendTo(this._$content);var t=this.option("showFileList");if(t){var n=this;d(this._files,function(e,t){t.$file||n._renderFile(t)})}this.$element().toggleClass("dx-fileuploader-show-file-list",t),this._toggleFileUploaderEmptyClassName(),this._updateFileNameMaxWidth(),this._$validationMessage&&this._$validationMessage.dxOverlay("instance").repaint()},_renderFile:function(e){var t=e.value,n=i("<div>").addClass(S).appendTo(this._$filesContainer);this._renderFileButtons(e,n),e.$file=i("<div>").addClass("dx-fileuploader-file").appendTo(n);var o=i("<div>").addClass("dx-fileuploader-file-info").appendTo(e.$file);e.$statusMessage=i("<div>").addClass("dx-fileuploader-file-status-message").appendTo(e.$file),i("<div>").addClass(I).text(t.name).appendTo(o),c(t.size)&&i("<div>").addClass(T).text(this._getFileSize(t.size)).appendTo(o),e.isValid()?e.$statusMessage.text(this.option("readyToUploadMessage")):(e.isValidFileExtension||e.$statusMessage.append(this._createValidationElement("invalidFileExtensionMessage")),e.isValidMaxSize||e.$statusMessage.append(this._createValidationElement("invalidMaxFileSizeMessage")),e.isValidMinSize||e.$statusMessage.append(this._createValidationElement("invalidMinFileSizeMessage")),n.addClass("dx-fileuploader-invalid"))},_createValidationElement:function(e){return i("<span>").text(this.option(e))},_updateFileNameMaxWidth:function(){var e=this.option("allowCanceling")&&"useForm"!==this.option("uploadMode")?1:0,t="useButtons"===this.option("uploadMode")?1:0,n=this._$filesContainer.find("."+S).first().width()||this._$filesContainer.width(),i=this._$filesContainer.find("."+E).eq(0).width()*(e+t),o=this._$filesContainer.find("."+T).eq(0),a=o.text();o.text("1000 Mb");var r=o.width();o.text(a),this._$filesContainer.find("."+I).css("maxWidth",n-i-r)},_renderFileButtons:function(e,t){var n=this._getCancelButton(e);n&&t.append(n);var i=this._getUploadButton(e);i&&t.append(i)},_getCancelButton:function(e){return"useForm"===this.option("uploadMode")?null:(e.cancelButton=this._createComponent(i("<div>").addClass(D+" dx-fileuploader-cancel-button"),_,{onClick:function(){this._removeFile(e)}.bind(this),icon:"close",visible:this.option("allowCanceling"),integrationOptions:{}}),i("<div>").addClass(E).append(e.cancelButton.$element()))},_getUploadButton:function(e){return e.isValid()&&"useButtons"===this.option("uploadMode")?(e.uploadButton=this._createComponent(i("<div>").addClass(D+" "+A),_,{onClick:function(){this._uploadFile(e)}.bind(this),icon:"upload"}),e.onLoadStart.add(function(){e.uploadButton.$element().remove()}.bind(this)),i("<div>").addClass(E).append(e.uploadButton.$element())):null},_removeFile:function(e){e.$file.parent().remove(),this._files.splice(p(e,this._files),1);var t=this.option("value").slice();t.splice(p(e.value,t),1),this._preventRecreatingFiles=!0,this.option("value",t),this._preventRecreatingFiles=!1,this._toggleFileUploaderEmptyClassName(),this._doPreventInputChange=!0,this._$fileInput.val(""),this._doPreventInputChange=!1},_toggleFileUploaderEmptyClassName:function(){this.$element().toggleClass("dx-fileuploader-empty",!this._files.length||this._hasInvalidFile(this._files))},_hasInvalidFile:function(e){for(var t=0;t<e.length;t++)if(!e[t].isValid())return!0;return!1},_getFileSize:function(e){for(var t=0,n=[w.format("dxFileUploader-bytes"),w.format("dxFileUploader-kb"),w.format("dxFileUploader-Mb"),w.format("dxFileUploader-Gb")],i=n.length-1;t<i&&e>=1024;)e/=1024,t++;return Math.round(e)+" "+n[t]},_renderSelectButton:function(){var e=i("<div>").addClass(D).appendTo(this._$inputWrapper);this._selectButton=this._createComponent(e,_,{text:this.option("selectButtonText"),focusStateEnabled:!1,integrationOptions:{}}),"desktop"===y.real().deviceType?this._selectButton.option("onClick",this._selectButtonClickHandler.bind(this)):(s.off(e,"click"),s.on(e,"click",this._selectButtonClickHandler.bind(this)))},_selectButtonClickHandler:function(){var e=this;if(!e.option("useNativeInputClick")){if(e.option("disabled"))return!1;e._isCustomClickEvent=!0,s.trigger(e._$fileInput,"click"),e._isCustomClickEvent=!1}},_renderUploadButton:function(){if("useButtons"===this.option("uploadMode")){var e=i("<div>").addClass(D).addClass(A).appendTo(this._$content);this._uploadButton=this._createComponent(e,_,{text:this.option("uploadButtonText"),onClick:this._uploadButtonClickHandler.bind(this),type:this.option("_uploadButtonType"),integrationOptions:{}})}},_uploadButtonClickHandler:function(){this._uploadFiles()},_shouldDragOverBeRendered:function(){return"useForm"!==this.option("uploadMode")||this.option("nativeDropSupported")},_renderInputContainer:function(){this._$inputContainer=i("<div>").addClass("dx-fileuploader-input-container").appendTo(this._$inputWrapper),this._shouldDragOverBeRendered()||this._$inputContainer.css("display","none"),this._$fileInput.addClass("dx-fileuploader-input"),this._renderInput(),this._$inputLabel.addClass("dx-fileuploader-input-label").appendTo(this._$inputContainer)},_renderInput:function(){this.option("useNativeInputClick")?this._selectButton.option("template",this._selectButtonInputTemplate.bind(this)):(this._$fileInput.appendTo(this._$inputContainer),this._selectButton.option("template","content"))},_selectButtonInputTemplate:function(e,t){var n=i(t),o=i("<span>").addClass("dx-button-text").text(e.text);return n.append(o).append(this._$fileInput),n},_renderInputWrapper:function(){this._$inputWrapper=i("<div>").addClass("dx-fileuploader-input-wrapper").appendTo(this._$content)},_renderDragEvents:function(){s.off(this._$inputWrapper,"."+this.NAME),this._shouldDragOverBeRendered()&&(this._dragEventsTargets=[],s.on(this._$inputWrapper,b.addNamespace("dragenter",this.NAME),this._dragEnterHandler.bind(this)),s.on(this._$inputWrapper,b.addNamespace("dragover",this.NAME),this._dragOverHandler.bind(this)),s.on(this._$inputWrapper,b.addNamespace("dragleave",this.NAME),this._dragLeaveHandler.bind(this)),s.on(this._$inputWrapper,b.addNamespace("drop",this.NAME),this._dropHandler.bind(this)))},_useInputForDrop:function(){return this.option("nativeDropSupported")&&"useForm"===this.option("uploadMode")},_dragEnterHandler:function(e){return!this.option("disabled")&&(this._useInputForDrop()||e.preventDefault(),this._updateEventTargets(e),void this.$element().addClass(k))},_dragOverHandler:function(e){this._useInputForDrop()||e.preventDefault()},_dragLeaveHandler:function(e){this._useInputForDrop()||e.preventDefault(),this._updateEventTargets(e),this._dragEventsTargets.length||this.$element().removeClass(k)},_updateEventTargets:function(e){var t=this._dragEventsTargets.indexOf(e.target),n=-1!==t;"dragenter"===e.type?!n&&this._dragEventsTargets.push(e.target):n&&this._dragEventsTargets.splice(t,1)},_dropHandler:function(e){if(this._dragEventsTargets=[],this.$element().removeClass(k),!this._useInputForDrop()){e.preventDefault();var t=e.originalEvent.dataTransfer.files,n=this._getFiles(t);!this.option("multiple")&&n.length>1||(this._changeValue(this._filterFiles(n)),"instantly"===this.option("uploadMode")&&this._uploadFiles())}},_filterFiles:function(e){if(!e.length)return e;var t=this.option("accept");if(!t.length)return e;for(var n=[],i=this._getAllowedFileTypes(t),o=0,a=e.length;o<a;o++)this._isFileTypeAllowed(e[o],i)&&n.push(e[o]);return n},_getAllowedFileTypes:function(e){return e.length?e.split(",").map(function(e){return e.trim()}):[]},_isFileTypeAllowed:function(e,t){for(var n=0,i=t.length;n<i;n++){var o=t[n];if("."===o[0]){if(o=o.replace(".","\\."),e.name.match(new RegExp(o+"$","i")))return!0}else if(o=o.replace("*",""),e.type.match(new RegExp(o,"i")))return!0}return!1},_renderWrapper:function(){var e=i("<div>").addClass("dx-fileuploader-wrapper").appendTo(this.$element()),t=i("<div>").addClass("dx-fileuploader-container").appendTo(e);this._$content=i("<div>").addClass("dx-fileuploader-content").appendTo(t)},_clean:function(){this._$fileInput.detach(),delete this._$filesContainer,this.callBase.apply(this,arguments)},_uploadFiles:function(){O()&&d(this._files,function(e,t){this._uploadFile(t)}.bind(this))},_uploadFile:function(e){this._uploadStrategy.upload(e)},_updateProgressBar:function(e,t){e.progressBar&&e.progressBar.option({value:t.loaded,showStatus:!0}),this._progressAction({file:e.value,segmentSize:t.currentSegmentSize,bytesLoaded:t.loaded,bytesTotal:t.total,event:t.event,request:e.request})},_updateTotalProgress:function(e,t){var n=e?Math.round(t/e*100):0;this.option("progress",n),this._setLoadedSize(t)},_initStatusMessage:function(e){e.$statusMessage.css("display","none")},_initCancelButton:function(e){e.cancelButton.option("onClick",function(){this._preventFilesUploading([e]),this._removeFile(e)}.bind(this));var t=function(){setTimeout(function(){e.cancelButton.option({visible:!1})},400)};e.onLoad.add(t),e.onError.add(t)},_createProgressBar:function(e){return this._createComponent(i("<div>"),m,{value:void 0,min:0,max:e,statusFormat:function(e){return Math.round(100*e)+"%"},showStatus:!1,statusPosition:"right"})},_getTotalFilesSize:function(){return this._totalFilesSize||(this._totalFilesSize=0,d(this._files,function(e,t){this._totalFilesSize+=t.value.size}.bind(this))),this._totalFilesSize},_getTotalLoadedFilesSize:function(){return this._totalLoadedFilesSize||(this._totalLoadedFilesSize=0,d(this._files,function(e,t){this._totalLoadedFilesSize+=t.loadedSize}.bind(this))),this._totalLoadedFilesSize},_setLoadedSize:function(e){this._totalLoadedFilesSize=e},_recalculateProgress:function(){this._totalFilesSize=0,this._totalLoadedFilesSize=0,this._updateTotalProgress(this._getTotalFilesSize(),this._getTotalLoadedFilesSize())},_getValidationMessageTarget:function(){return this._$inputWrapper},_optionChanged:function(e){var t=e.value;switch(e.name){case"height":case"width":this._updateFileNameMaxWidth(),this.callBase(e);break;case"value":!t.length&&this._$fileInput.val(""),this._preventRecreatingFiles||(this._createFiles(),this._renderFiles()),this._recalculateProgress(),this.callBase(e);break;case"name":this._initFileInput(),this.callBase(e);break;case"accept":this._initFileInput();break;case"multiple":this._initFileInput(),e.value||this.reset();break;case"selectButtonText":this._selectButton.option("text",t);break;case"uploadButtonText":this._uploadButton&&this._uploadButton.option("text",t);break;case"_uploadButtonType":this._uploadButton&&this._uploadButton.option("type",t);break;case"maxFileSize":case"minFileSize":case"allowedFileExtensions":case"invalidFileExtensionMessage":case"invalidMaxFileSizeMessage":case"invalidMinFileSizeMessage":case"readyToUploadMessage":case"uploadedMessage":case"uploadFailedMessage":this._invalidate();break;case"labelText":this._$inputLabel.text(t);break;case"showFileList":this._preventRecreatingFiles||this._renderFiles();break;case"chunkSize":this._setUploadStrategy();break;case"uploadUrl":case"progress":case"uploadMethod":case"uploadHeaders":case"extendSelection":break;case"allowCanceling":case"uploadMode":this.reset(),this._invalidate();break;case"onUploadStarted":this._createUploadStartedAction();break;case"onUploaded":this._createUploadedAction();break;case"onProgress":this._createProgressAction();break;case"onUploadError":this._createUploadErrorAction();break;case"onUploadAborted":this._createUploadAbortedAction();break;case"useNativeInputClick":this._renderInput();break;case"useDragOver":this._renderDragEvents();break;case"nativeDropSupported":this._invalidate();break;default:this.callBase(e)}},reset:function(){this.option("value",[])}}),B=o.inherit({ctor:function(e,t){this.file=e,this.chunkSize=t,this.index=0},read:function(){if(!this.file)return null;var e=this.createBlobResult(this.file,this.index,this.chunkSize);return e.isCompleted&&(this.file=null),this.index++,e},createBlobResult:function(e,t,n){var i=t*n;return{blob:this.sliceFile(e,i,n),index:t,isCompleted:i+n>=e.size}},sliceFile:function(e,t,n){return e.slice?e.slice(t,t+n):e.webkitSlice?e.webkitSlice(t,t+n):null}}),M=o.inherit({ctor:function(e){this.fileUploader=e},upload:function(e){e.isValid()&&!e.uploadStarted&&(this._prepareFileBeforeUpload(e),this._uploadCore(e))},_uploadCore:function(e){},_prepareFileBeforeUpload:function(e){e.$file&&this.fileUploader._createFileProgressBar(e),e.onLoadStart.add(this._onUploadStarted.bind(this,e)),e.onLoad.add(this._onLoadedHandler.bind(this,e)),e.onError.add(this._onErrorHandler.bind(this,e)),e.onAbort.add(this._onAbortHandler.bind(this,e)),e.onProgress.add(this._onProgressHandler.bind(this,e))},_isStatusError:function(e){return 400<=e&&e<500||500<=e&&e<600},_onUploadStarted:function(e,t){e.uploadStarted=!0,this.fileUploader._uploadStartedAction({file:e.value,event:t,request:e.request})},_onAbortHandler:function(e,t){this.fileUploader._uploadAbortedAction({file:e.value,event:t,request:e.request})},_onErrorHandler:function(e,t){this.fileUploader._setStatusMessage(e,"uploadFailedMessage"),this.fileUploader._uploadErrorAction({file:e.value,event:t,request:e.request})},_onLoadedHandler:function(e,t){this.fileUploader._setStatusMessage(e,"uploadedMessage"),this.fileUploader._uploadedAction({file:e.value,event:t,request:e.request})},_onProgressHandler:function(e,t){if(e){var n=this.fileUploader._getTotalFilesSize(),i=this.fileUploader._getTotalLoadedFilesSize(),o=Math.min(t.loaded,e.value.size),a=o-e.loadedSize;e.loadedSize=o,this.fileUploader._updateTotalProgress(n,i+a),this.fileUploader._updateProgressBar(e,this._getLoadedData(o,t.total,a,t))}},_getLoadedData:function(e,t,n,i){return{loaded:e,total:t,currentSegmentSize:n}}}),R=M.inherit({ctor:function(e){this.callBase(e),this.chunkSize=this.fileUploader.option("chunkSize")},_uploadCore:function(e){var t=e.value;this._sendChunk(e,{name:t.name,loadedBytes:0,type:t.type,blobReader:new B(t,this.chunkSize),guid:new a,fileSize:t.size,count:Math.ceil(t.size/this.chunkSize)})},_sendChunk:function(e,t){var n=t.blobReader.read();n&&(t.loadedBytes+=n.blob.size,f.sendRequest({url:this.fileUploader.option("uploadUrl"),method:this.fileUploader.option("uploadMethod"),headers:this.fileUploader.option("uploadHeaders"),beforeSend:function(t){e.request=t},upload:{onloadstart:function(){e.isStartLoad||(e.isStartLoad=!0,e.onLoadStart.fire())},onabort:function(){e.onAbort.fire()}},data:this._createFormData({fileName:t.name,blobName:this.fileUploader.option("name"),blob:n.blob,index:n.index,count:t.count,type:t.type,guid:t.guid,size:t.fileSize})}).done(function(){e.onProgress.fire({loaded:t.loadedBytes,total:e.value.size}),n.isCompleted&&e.onLoad.fire(),this._sendChunk(e,t)}.bind(this)).fail(function(t){this._isStatusError(t.status)&&(e._isError=!0,e.onError.fire())}.bind(this)))},_createFormData:function(e){var t=new r.FormData;return t.append(e.blobName,e.blob),t.append("chunkMetadata",JSON.stringify({FileName:e.fileName,Index:e.index,TotalCount:e.count,FileSize:e.size,FileType:e.type,FileGuid:e.guid})),t},_getEvent:function(e){return null}}),F=M.inherit({_uploadCore:function(e){e.loadedSize=0,f.sendRequest({url:this.fileUploader.option("uploadUrl"),method:this.fileUploader.option("uploadMethod"),headers:this.fileUploader.option("uploadHeaders"),beforeSend:function(t){e.request=t},upload:{onprogress:function(t){e._isError||(e._isProgressStarted=!0,e.onProgress.fire(t))},onloadstart:function(){e.onLoadStart.fire()},onabort:function(){e.onAbort.fire()}},data:this._createFormData(this.fileUploader.option("name"),e.value)}).done(function(){e.onLoad.fire()}).fail(function(t){!this._isStatusError(t.status)&&e._isProgressStarted||(e._isError=!0,e.onError.fire())}.bind(this))},_createFormData:function(e,t){var n=new r.FormData;return n.append(e,t),n},_getLoadedData:function(e,t,n,i){var o=this.callBase(e,t,n,i);return o.event=i,o}});l("dxFileUploader",P),e.exports=P},function(e,t,n){var i=n(2),o=n(5),a=n(8),r=n(42),s=n(4),l=n(1),u=n(37),c=n(3).each,d=n(13).inArray,h=n(0).extend,p=n(43),f=n(18),g=n(31),_=n(10),m=n(15),v=n(17),y=n(7),b=n(100),x=(n(545),n(305).default),w=n(307),C=n(94),k=n(6).Deferred,S=n(30);n(247),n(310);var I="dx-form-group",T="dx-field-item-tab",D="dx-col-",E="dx-group-colcount-",A="dx-field-item-content",O="dx-form-validation-summary",P=v.inherit({_init:function(){this.callBase(),this._cachedColCountOptions=[],this._itemsRunTimeInfo=new x,this._groupsColCount=[],this._attachSyncSubscriptions()},_initOptions:function(e){"screenByWidth"in e||(e.screenByWidth=y.defaultScreenFactorFunc),this.callBase(e)},_getDefaultOptions:function(){return h(this.callBase(),{formID:"dx-"+new r,formData:{},colCount:1,screenByWidth:null,colCountByScreen:void 0,labelLocation:"left",readOnly:!1,onFieldDataChanged:null,customizeItem:null,onEditorEnterKey:null,minColWidth:200,alignItemLabels:!0,alignItemLabelsInAllGroups:!0,showColonAfterLabel:!0,showRequiredMark:!0,showOptionalMark:!1,requiredMark:"*",optionalMark:m.format("dxForm-optionalMark"),requiredMessage:m.getFormatter("dxForm-requiredMessage"),showValidationSummary:!1,items:void 0,scrollingEnabled:!1,validationGroup:void 0,stylingMode:void 0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return S.isMaterial()},options:{showColonAfterLabel:!1,labelLocation:"top"}}])},_setOptionsByReference:function(){this.callBase(),h(this._optionsByReference,{formData:!0,validationGroup:!0})},_getColCount:function(e){for(var t=0,n=!0;n;)e.find("."+D+t).length?t++:n=!1;return t},_createHiddenElement:function(e){this._$hiddenElement=i("<div>").addClass("dx-widget").addClass("dx-layout-manager-hidden-label").appendTo("body");var t=e._renderLabel({text:" ",location:this.option("labelLocation")}).appendTo(this._$hiddenElement);this._hiddenLabelText=t.find(".dx-field-item-label-text")[0]},_removeHiddenElement:function(){this._$hiddenElement.remove(),this._hiddenLabelText=null},_getLabelWidthByText:function(e){return this._hiddenLabelText.innerHTML=e,this._hiddenLabelText.offsetWidth},_getLabelsSelectorByCol:function(e,t){return"."+((t=t||{}).inOneColumn?"dx-field-item":D+e)+(t.excludeTabbed?":not(."+T+")":"")+"> .dx-field-item-label > .dx-field-item-label-content"},_getLabelText:function(e){var t,n,i=e.children.length,o="";for(n=0;n<i;n++)t=e.children[n],o+=p.isEmpty(t.innerText)?t.innerHTML:t.innerText;return o},_applyLabelsWidthByCol:function(e,t,n){var i,o,a=e.find(this._getLabelsSelectorByCol(t,n)),r=a.length,s=0;for(o=0;o<r;o++)(i=this._getLabelWidthByText(this._getLabelText(a[o])))>s&&(s=i);for(o=0;o<r;o++)a[o].style.width=s+"px"},_applyLabelsWidth:function(e,t,n,i){i=n?1:i||this._getColCount(e);var o,a={excludeTabbed:t,inOneColumn:n};for(o=0;o<i;o++)this._applyLabelsWidthByCol(e,o,a)},_getGroupElementsInColumn:function(e,t,n){var i=l.isDefined(n)?"."+E+n:"",o="."+D+t+" > ."+A+" > ."+I+i;return e.find(o)},_applyLabelsWidthWithGroups:function(e,t,n){if(this.option("alignItemLabelsInAllGroups"))this._applyLabelsWidthWithNestedGroups(e,t,n);else{var i,o=this.$element().find("."+I);for(i=0;i<o.length;i++)this._applyLabelsWidth(o.eq(i),n)}},_applyLabelsWidthWithNestedGroups:function(e,t,n){var i,o,a,r,s={excludeTabbed:n};for(i=0;i<t;i++)for(r=this._getGroupElementsInColumn(e,i),this._applyLabelsWidthByCol(r,0,s),o=0;o<this._groupsColCount.length;o++){r=this._getGroupElementsInColumn(e,i,this._groupsColCount[o]);var l=this._getColCount(r);for(a=1;a<l;a++)this._applyLabelsWidthByCol(r,a,s)}},_alignLabelsInColumn:function(e){y.hasWindow()&&(this._createHiddenElement(e.layoutManager),e.inOneColumn?this._applyLabelsWidth(e.$container,e.excludeTabbed,!0):this._checkGrouping(e.items)?this._applyLabelsWidthWithGroups(e.$container,e.layoutManager._getColCount(),e.excludeTabbed):this._applyLabelsWidth(e.$container,e.excludeTabbed,!1,e.layoutManager._getColCount()),this._removeHiddenElement())},_prepareFormData:function(){l.isDefined(this.option("formData"))||this.option("formData",{})},_initMarkup:function(){this._clearCachedInstances(),this._prepareFormData(),this.$element().addClass("dx-form"),this.callBase(),this.setAria("role","form",this.$element()),this.option("scrollingEnabled")&&this._renderScrollable(),this._renderLayout(),this._renderValidationSummary(),this._lastMarkupScreenFactor=this._targetScreenFactor||this._getCurrentScreenFactor()},_getCurrentScreenFactor:function(){return y.hasWindow()?y.getCurrentScreenFactor(this.option("screenByWidth")):"lg"},_clearCachedInstances:function(){this._itemsRunTimeInfo.clear(),this._cachedLayoutManagers=[]},_alignLabels:function(e,t){this._alignLabelsInColumn({$container:this.$element(),layoutManager:e,excludeTabbed:!0,items:this.option("items"),inOneColumn:t})},_clean:function(){this.callBase(),this._groupsColCount=[],this._cachedColCountOptions=[],this._lastMarkupScreenFactor=void 0},_renderScrollable:function(){var e=this.option("useNativeScrolling");this._scrollable=new C(this.$element(),{useNative:!!e,useSimulatedScrollbar:!e,useKeyboard:!1,direction:"both",bounceEnabled:!1})},_getContent:function(){return this.option("scrollingEnabled")?this._scrollable.$content():this.$element()},_renderValidationSummary:function(){var e=this.$element().find("."+O);e.length>0&&e.remove(),this.option("showValidationSummary")&&i("<div>").addClass(O).dxValidationSummary({validationGroup:this._getValidationGroup()}).appendTo(this._getContent())},_prepareItems:function(e,t){if(e){for(var n=[],i=0;i<e.length;i++){var o=e[i],a=this._itemsRunTimeInfo.add(o);if(l.isObject(o)){var r=h({},o);r.guid=a,this._tryPrepareGroupItem(r),this._tryPrepareTabbedItem(r),this._tryPrepareItemTemplate(r),t&&(r.cssItemClass=T),r.items&&(r.items=this._prepareItems(r.items,t)),n.push(r)}else n.push(o)}return n}},_tryPrepareGroupItem:function(e){"group"===e.itemType&&(e.alignItemLabels=s.ensureDefined(e.alignItemLabels,!0),e.template&&(e.groupContentTemplate=this._getTemplate(e.template)),e.template=this._itemGroupTemplate.bind(this,e))},_tryPrepareTabbedItem:function(e){"tabbed"===e.itemType&&(e.template=this._itemTabbedTemplate.bind(this,e),e.tabs=this._prepareItems(e.tabs,!0))},_tryPrepareItemTemplate:function(e){e.template&&(e.template=this._getTemplate(e.template))},_checkGrouping:function(e){if(e)for(var t=0;t<e.length;t++){if("group"===e[t].itemType)return!0}},_renderLayout:function(){var e=this,t=e.option("items"),n=e._getContent();t=e._prepareItems(t),e._rootLayoutManager=e._renderLayoutManager(t,n,{colCount:e.option("colCount"),alignItemLabels:e.option("alignItemLabels"),screenByWidth:this.option("screenByWidth"),colCountByScreen:this.option("colCountByScreen"),onLayoutChanged:function(t){e._alignLabels.bind(e)(e._rootLayoutManager,t)},onContentReady:function(t){e._alignLabels(t.component,t.component.isSingleColumnMode())}})},_itemTabbedTemplate:function(e,t,n){var o=this,a=i("<div>").appendTo(n),r=h({},e.tabPanelOptions,{dataSource:e.tabs,onItemRendered:function(e){_.triggerShownEvent(e.itemElement)},itemTemplate:function(e,t,n){var a,r=i(n),l=s.ensureDefined(e.alignItemLabels,!0);a=o._renderLayoutManager(e.items,r,{colCount:e.colCount,alignItemLabels:l,screenByWidth:this.option("screenByWidth"),colCountByScreen:e.colCountByScreen,cssItemClass:e.cssItemClass,onLayoutChanged:function(t){o._alignLabelsInColumn.bind(o)({$container:r,layoutManager:a,items:e.items,inOneColumn:t})}}),l&&o._alignLabelsInColumn.bind(o)({$container:r,layoutManager:a,items:e.items,inOneColumn:a.isSingleColumnMode()})}});o._createComponent(a,w,r)},_itemGroupTemplate:function(e,t,n){var o,a,r=i("<div>").toggleClass("dx-form-group-with-caption",l.isDefined(e.caption)&&e.caption.length).addClass(I).appendTo(n);if(e.caption&&i("<span>").addClass("dx-form-group-caption").text(e.caption).appendTo(r),o=i("<div>").addClass("dx-form-group-content").appendTo(r),e.groupContentTemplate){var s={formData:this.option("formData"),component:this};e.groupContentTemplate.render({model:s,container:_.getPublicElement(o)})}else a=this._renderLayoutManager(e.items,o,{colCount:e.colCount,colCountByScreen:e.colCountByScreen,alignItemLabels:e.alignItemLabels,cssItemClass:e.cssItemClass})._getColCount(),-1===d(a,this._groupsColCount)&&this._groupsColCount.push(a),r.addClass(E+a)},_renderLayoutManager:function(e,t,n){var o,a=i("<div>"),r=this,s=r._getLayoutManagerConfig(e,n),l={lg:n.colCount,md:n.colCount,sm:n.colCount,xs:1};return r._cachedColCountOptions.push({colCountByScreen:h(l,n.colCountByScreen)}),a.appendTo(t),(o=r._createComponent(a,"dxLayoutManager",s)).on("autoColCountChanged",function(){r._refresh()}),r._cachedLayoutManagers.push(o),o},_getValidationGroup:function(){return this.option("validationGroup")||this},_getLayoutManagerConfig:function(e,t){var n=this,i={form:n,validationGroup:n._getValidationGroup(),showRequiredMark:n.option("showRequiredMark"),showOptionalMark:n.option("showOptionalMark"),requiredMark:n.option("requiredMark"),optionalMark:n.option("optionalMark"),requiredMessage:n.option("requiredMessage"),screenByWidth:n.option("screenByWidth"),layoutData:n.option("formData"),labelLocation:n.option("labelLocation"),customizeItem:n.option("customizeItem"),minColWidth:n.option("minColWidth"),showColonAfterLabel:n.option("showColonAfterLabel"),onEditorEnterKey:n.option("onEditorEnterKey"),onFieldDataChanged:function(e){n._isDataUpdating||n._triggerOnFieldDataChanged(e)},validationBoundary:n.option("scrollingEnabled")?n.$element():void 0};return h(i,{items:e,onContentReady:function(e){n._itemsRunTimeInfo.addItemsOrExtendFrom(e.component._itemsRunTimeInfo),t.onContentReady&&t.onContentReady(e)},colCount:t.colCount,alignItemLabels:t.alignItemLabels,cssItemClass:t.cssItemClass,colCountByScreen:t.colCountByScreen,onLayoutChanged:t.onLayoutChanged,width:t.width})},_createComponent:function(e,t,n){var i=this;return n=n||{},i._extendConfig(n,{readOnly:i.option("readOnly")}),i.callBase(e,t,n)},_attachSyncSubscriptions:function(){var e=this;e.on("optionChanged",function(t){var n=t.fullName;"formData"===n&&(l.isDefined(t.value)||(e._options.formData=t.value={}),e._triggerOnFieldDataChangedByDataSet(t.value)),e._cachedLayoutManagers.length&&c(e._cachedLayoutManagers,function(i,o){"formData"===n&&(e._isDataUpdating=!0,o.option("layoutData",t.value),e._isDataUpdating=!1),"readOnly"!==t.name&&"disabled"!==t.name||o.option(n,t.value)})})},_optionChanged:function(e){var t=this._getRootLevelOfExpectedComplexOption(e.fullName,["formData","items"]);if(t)this._customHandlerOfComplexOption(e,t);else switch(e.name){case"formData":this.option("items")?l.isEmptyObject(e.value)&&this._resetValues():this._invalidate();break;case"items":case"colCount":case"onFieldDataChanged":case"onEditorEnterKey":case"labelLocation":case"alignItemLabels":case"showColonAfterLabel":case"customizeItem":case"alignItemLabelsInAllGroups":case"showRequiredMark":case"showOptionalMark":case"requiredMark":case"optionalMark":case"requiredMessage":case"scrollingEnabled":case"formID":case"colCountByScreen":case"screenByWidth":case"stylingMode":this._invalidate();break;case"showValidationSummary":this._renderValidationSummary();break;case"minColWidth":"auto"===this.option("colCount")&&this._invalidate();break;case"readOnly":break;case"width":this.callBase(e),this._rootLayoutManager.option(e.name,e.value),this._alignLabels(this._rootLayoutManager,this._rootLayoutManager.isSingleColumnMode());break;case"visible":this.callBase(e),e.value&&_.triggerShownEvent(this.$element());break;default:this.callBase(e)}},_getRootLevelOfExpectedComplexOption:function(e,t){var n,i=e.split(".");if(i.length>1){var o,a=i[0];for(o=0;o<t.length;o++)-1!==a.search(t[o])&&(n=t[o])}return n},_customHandlerOfComplexOption:function(e,t){var n=e.fullName.split(".");switch(t){case"items":var i=this._getItemPath(n),o=this.option(i),a=this._itemsRunTimeInfo.findWidgetInstanceByItem(o),r=this._itemsRunTimeInfo.findItemContainerByItem(o),s=e.fullName;if(a){if(-1!==s.search("buttonOptions")){a.option(o.buttonOptions);break}if(a&&-1!==s.search("editorOptions")){a.option(o.editorOptions);break}if(-1!==s.search("validationRules")){var l=u.data(a.$element()[0],"dxValidator");if(l){var c=function(e){return"required"===e.type},d=(l.option("validationRules")||[]).some(c),h=(o.validationRules||[]).some(c);if(!d&&!h||d&&h){l.option("validationRules",o.validationRules);break}}}else if(r&&"cssClass"===s.substring(s.length-8,s.length)){r.removeClass(e.previousValue).addClass(e.value);break}}if(o){var p,f=e.fullName.replace(i+".","");this._changeItemOption(o,f,e.value),p=this._generateItemsFromData(this.option("items")),this.option("items",p)}break;case"formData":var g=n.slice(1).join("."),_=this.getEditor(g);_?_.option("value",e.value):this._triggerOnFieldDataChanged({dataField:g,value:e.value})}},_getItemPath:function(e){var t,n=e[0];for(t=1;t<e.length&&-1!==e[t].search("items|tabs");t++)n+="."+e[t];return n},_triggerOnFieldDataChanged:function(e){this._createActionByOption("onFieldDataChanged")(e)},_triggerOnFieldDataChangedByDataSet:function(e){var t=this;e&&l.isObject(e)&&c(e,function(e,n){t._triggerOnFieldDataChanged({dataField:e,value:n})})},_updateFieldValue:function(e,t){if(l.isDefined(this.option("formData"))){var n=this.getEditor(e);if(this.option("formData."+e,t),n)n.option("value")!==t&&n.option("value",t)}},_generateItemsFromData:function(e){var t=this.option("formData"),n=[];return!e&&l.isDefined(t)&&c(t,function(e){n.push({dataField:e})}),e&&c(e,function(e,t){l.isObject(t)?n.push(t):n.push({dataField:t})}),n},_getItemByField:function(e,t){var n,i=this,o=l.isObject(e)?e:i._getFieldParts(e),a=o.fieldName,r=o.fieldPath;return t.length&&c(t,function(e,t){var o=t.itemType;if(r.length){var s=r.slice();t=i._getItemByFieldPath(s,a,t)}else if("group"===o&&!t.caption&&!t.name||"tabbed"===o){var l=i._getSubItemField(o);t.items=i._generateItemsFromData(t.items),t=i._getItemByField({fieldName:a,fieldPath:r},t[l])}if(i._isExpectedItem(t,a))return n=t,!1}),n},_getFieldParts:function(e){for(var t=e,n=t.indexOf("."),i=[];-1!==n;)i.push(t.substr(0,n)),n=(t=t.substr(n+1)).indexOf(".");return{fieldName:t,fieldPath:i.reverse()}},_getItemByFieldPath:function(e,t,n){var i,o=this,a=n.itemType,r=o._getSubItemField(a),s="group"===a||"tabbed"===a||n.title;do{if(!s)break;var u,c=n.name||n.caption||n.title,d=l.isDefined(c),h=o._getTextWithoutSpaces(c);if(n[r]=o._generateItemsFromData(n[r]),d&&(u=e.pop()),!e.length&&(i=o._getItemByField(t,n[r])))break;(!d||d&&h===u)&&e.length&&(i=o._searchItemInEverySubItem(e,t,n[r]))}while(e.length&&!l.isDefined(i));return i},_getSubItemField:function(e){return"tabbed"===e?"tabs":"items"},_searchItemInEverySubItem:function(e,t,n){var i,o=this;return c(n,function(n,a){if(i=o._getItemByFieldPath(e.slice(),t,a))return!1}),i||(i=!1),i},_getTextWithoutSpaces:function(e){return e?e.replace(/\s/g,""):void 0},_isExpectedItem:function(e,t){return e&&(e.dataField===t||e.name===t||this._getTextWithoutSpaces(e.title)===t||"group"===e.itemType&&this._getTextWithoutSpaces(e.caption)===t)},_changeItemOption:function(e,t,n){l.isObject(e)&&(e[t]=n)},_dimensionChanged:function(){var e=this._getCurrentScreenFactor();this._lastMarkupScreenFactor!==e&&(this._isColCountChanged(this._lastMarkupScreenFactor,e)&&(this._targetScreenFactor=e,this._refresh(),this._targetScreenFactor=void 0),this._lastMarkupScreenFactor=e)},_isColCountChanged:function(e,t){var n=!1;return c(this._cachedColCountOptions,function(i,o){if(o.colCountByScreen[e]!==o.colCountByScreen[t])return n=!0,!1}),n},_refresh:function(){o.trigger(this.$element().find(".dx-state-focused input, .dx-state-focused textarea"),"change"),this.callBase()},_resetValues:function(){var e=this._getValidationGroup(),t=b.getGroupConfig(e);t&&t.reset(),this._itemsRunTimeInfo.each(function(e,t){l.isDefined(t.widgetInstance)&&l.isDefined(t.item)&&"button"!==t.item.itemType&&(t.widgetInstance.reset(),t.widgetInstance.option("isValid",!0))})},_updateData:function(e,t,n){var i=this,o=n?t:e;l.isObject(o)?c(o,function(t,o){i._updateData(n?e+"."+t:t,o,l.isObject(o))}):l.isString(e)&&i._updateFieldValue(e,t)},registerKeyHandler:function(e,t){this.callBase(e,t),this._itemsRunTimeInfo.each(function(n,i){l.isDefined(i.widgetInstance)&&i.widgetInstance.registerKeyHandler(e,t)})},_focusTarget:function(){return this.$element().find("."+A+" [tabindex]").first()},_visibilityChanged:function(e){e&&g.msie&&this._refresh()},resetValues:function(){this._resetValues()},updateData:function(e,t){this._updateData(e,t)},getEditor:function(e){return this._itemsRunTimeInfo.findWidgetInstanceByDataField(e)||this._itemsRunTimeInfo.findWidgetInstanceByName(e)},getButton:function(e){return this._itemsRunTimeInfo.findWidgetInstanceByName(e)},updateDimensions:function(){var e=this,t=new k;return e._scrollable?e._scrollable.update().done(function(){t.resolveWith(e)}):t.resolveWith(e),t.promise()},itemOption:function(e,t,n){var i=this,o=arguments.length,a=i._generateItemsFromData(i.option("items")),r=i._getItemByField(e,a);switch(o){case 1:return r;case 3:i._changeItemOption(r,t,n);break;default:l.isObject(t)&&c(t,function(e,t){i._changeItemOption(r,e,t)})}this.option("items",a)},validate:function(){try{return b.validateGroup(this._getValidationGroup())}catch(e){f.log("E1036",e.message)}},getItemID:function(e){return"dx_"+this.option("formID")+"_"+(e||new r)},getTargetScreenFactor:function(){return this._targetScreenFactor}});a("dxForm",P),e.exports=P},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(5),r=n(42),s=n(305).default,l=n(8),u=n(1),c=n(10),d=n(74).isWrapped,h=n(74).isWritableWrapped,p=n(74).unwrap,f=n(7),g=n(43),_=n(3).each,m=n(0).extend,v=n(13).inArray,y=n(20),b=n(130),x=n(19),w=n(13).normalizeIndexes,C=n(18),k=n(15),S=n(84),I=n(32),T=n(17),D=n(196),E=n(306),A=n(30);n(92),n(116),n(104),n(192),n(34);var O="dx-field-item-content",P="dx-field-item-content-wrapper",B="dx-layout-manager-one-col",M="flex",R="simple",F=["dataSource","items"],V=["dxTagBox","dxRangeSlider"],L=T.inherit({_getDefaultOptions:function(){return m(this.callBase(),{layoutData:{},readOnly:!1,colCount:1,colCountByScreen:void 0,labelLocation:"left",onFieldDataChanged:null,onEditorEnterKey:null,customizeItem:null,alignItemLabels:!0,minColWidth:200,showRequiredMark:!0,screenByWidth:null,showOptionalMark:!1,requiredMark:"*",optionalMark:k.format("dxForm-optionalMark"),requiredMessage:k.getFormatter("dxForm-requiredMessage")})},_setOptionsByReference:function(){this.callBase(),m(this._optionsByReference,{layoutData:!0,validationGroup:!0})},_init:function(){var e=this.option("layoutData");this.callBase(),this._itemWatchers=[],this._itemsRunTimeInfo=new s,this._updateReferencedOptions(e),this._initDataAndItems(e)},_dispose:function(){this.callBase(),this._cleanItemWatchers()},_initDataAndItems:function(e){this._syncDataWithItems(),this._updateItems(e)},_syncDataWithItems:function(){var e=this,t=e.option("items");u.isDefined(t)&&_(t,function(t,n){var i;n.dataField&&void 0===e._getDataByField(n.dataField)&&(n.editorOptions&&(i=n.editorOptions.value),e._updateFieldValue(n.dataField,i))})},_getDataByField:function(e){return e?this.option("layoutData."+e):null},_updateFieldValue:function(e,t){var n=this.option("layoutData"),i=t;!d(n[e])&&u.isDefined(e)?this.option("layoutData."+e,i):h(n[e])&&(i=u.isFunction(i)?i():i,n[e](i)),this._triggerOnFieldDataChanged({dataField:e,value:i})},_triggerOnFieldDataChanged:function(e){this._createActionByOption("onFieldDataChanged")(e)},_updateItems:function(e){var t,n,i=this,o=this.option("items"),a=u.isDefined(o),r=i.option("customizeItem");t=a?o:this._generateItemsByData(e),u.isDefined(t)&&(n=[],_(t,function(e,t){i._isAcceptableItem(t)&&(t=i._processItem(t),r&&r(t),u.isObject(t)&&!1!==p(t.visible)&&n.push(t))}),i._itemWatchers.length&&a||i._updateItemWatchers(t),this._items=n,this._sortItems())},_cleanItemWatchers:function(){this._itemWatchers.forEach(function(e){e()}),this._itemWatchers=[]},_updateItemWatchers:function(e){var t=this,n=t._getWatch();e.forEach(function(e){u.isObject(e)&&u.isDefined(e.visible)&&u.isFunction(n)&&t._itemWatchers.push(n(function(){return p(e.visible)},function(){t._updateItems(t.option("layoutData")),t.repaint()},{skipImmediate:!0}))})},_generateItemsByData:function(e){var t=[];return u.isDefined(e)&&_(e,function(e){t.push({dataField:e})}),t},_isAcceptableItem:function(e){var t=e.dataField||e,n=this._getDataByField(t);return!(u.isFunction(n)&&!d(n))},_processItem:function(e){if("string"==typeof e&&(e={dataField:e}),"object"!==(void 0===e?"undefined":i(e))||e.itemType||(e.itemType=R),!u.isDefined(e.editorType)&&u.isDefined(e.dataField)){var t=this._getDataByField(e.dataField);e.editorType=u.isDefined(t)?this._getEditorTypeByDataType(u.type(t)):"dxTextBox"}return e},_getEditorTypeByDataType:function(e){switch(e){case"number":return"dxNumberBox";case"date":return"dxDateBox";case"boolean":return"dxCheckBox";default:return"dxTextBox"}},_sortItems:function(){w(this._items,"visibleIndex"),this._sortIndexes()},_sortIndexes:function(){this._items.sort(function(e,t){var n=e.visibleIndex,i=t.visibleIndex;return n>i?1:n<i?-1:0})},_initMarkup:function(){this._itemsRunTimeInfo.clear(),this.$element().addClass("dx-layout-manager"),this.callBase(),this._renderResponsiveBox()},_hasBrowserFlex:function(){return S.styleProp(M)===M},_renderResponsiveBox:function(){var e=this,t=[];if(e._items&&e._items.length){var n,i=e._getColCount(),a=o("<div>").appendTo(e.$element());e._prepareItemsWithMerging(i),n=e._generateLayoutItems(),e._extendItemsWithDefaultTemplateOptions(n,e._items),e._responsiveBox=e._createComponent(a,E,e._getResponsiveBoxConfig(n,i,t)),f.hasWindow()||e._renderTemplates(t)}},_extendItemsWithDefaultTemplateOptions:function(e,t){t.forEach(function(t){t.merged||(u.isDefined(t.disabled)&&(e[t.visibleIndex].disabled=t.disabled),u.isDefined(t.visible)&&(e[t.visibleIndex].visible=t.visible))})},_itemStateChangedHandler:function(e){this._refresh()},_renderTemplate:function(e,t){switch(t.itemType){case"empty":this._renderEmptyItem(e);break;case"button":this._renderButtonItem(t,e);break;default:this._renderFieldItem(t,e)}},_renderTemplates:function(e){var t=this;_(e,function(e,n){t._renderTemplate(n.container,n.formItem)})},_getResponsiveBoxConfig:function(e,t,n){var i=this,a=i.option("colCountByScreen"),r=a&&a.xs;return{onItemStateChanged:this._itemStateChangedHandler.bind(this),_layoutStrategy:i._hasBrowserFlex()?M:"fallback",onLayoutChanged:function(){var e=i.option("onLayoutChanged"),t=i.isSingleColumnMode();e&&(i.$element().toggleClass(B,t),e(t))},onContentReady:function(e){f.hasWindow()&&i._renderTemplates(n),i.option("onLayoutChanged")&&i.$element().toggleClass(B,i.isSingleColumnMode(e.component)),i._fireContentReadyAction()},itemTemplate:function(e,a,r){if(e.location){var s=o(r),l=e.location.row*t,u=i._items[e.location.col+l],c=o("<div>").addClass(u.cssClass).appendTo(s);n.push({container:c,formItem:u}),s.toggleClass("dx-single-column-item-content",i.isSingleColumnMode(this)),0===e.location.row&&c.addClass("dx-first-row"),0===e.location.col&&c.addClass("dx-first-col"),e.location.col!==t-1&&e.location.col+e.location.colspan!==t||c.addClass("dx-last-col")}},cols:i._generateRatio(t),rows:i._generateRatio(i._getRowsCount(),!0),dataSource:e,screenByWidth:i.option("screenByWidth"),singleColumnScreen:!r&&"xs"}},_getColCount:function(){var e=this.option("colCount"),t=this.option("colCountByScreen");if(t){var n=this.option("form").getTargetScreenFactor();n||(n=f.hasWindow()?f.getCurrentScreenFactor(this.option("screenByWidth")):"lg"),e=t[n]||e}if("auto"===e){if(this._cashedColCount)return this._cashedColCount;this._cashedColCount=e=this._getMaxColCount()}return e<1?1:e},_getMaxColCount:function(){if(!f.hasWindow())return 1;var e=this.option("minColWidth"),t=this.$element().width(),n=this._items.length,i=Math.floor(t/e)||1;return n<i?n:i},isCachedColCountObsolete:function(){return this._cashedColCount&&this._getMaxColCount()!==this._cashedColCount},_prepareItemsWithMerging:function(e){var t,n,i,o,a=this._items.slice(0),r=[];for(o=0;o<a.length;o++)if(t=a[o],r.push(t),(this.option("alignItemLabels")||t.alignItemLabels||t.colSpan)&&(t.col=this._getColByIndex(r.length-1,e)),t.colSpan>1&&t.col+t.colSpan<=e){for(n=[],i=0;i<t.colSpan-1;i++)n.push({merged:!0});r=r.concat(n)}else delete t.colSpan;this._items=r},_getColByIndex:function(e,t){return e%t},_generateLayoutItems:function(){var e,t,n=this._items,i=this._getColCount(),o=[];for(t=0;t<n.length;t++)if(!(e=n[t]).merged){var a={location:{row:parseInt(t/i),col:this._getColByIndex(t,i)}};u.isDefined(e.colSpan)&&(a.location.colspan=e.colSpan),u.isDefined(e.rowSpan)&&(a.location.rowspan=e.rowSpan),o.push(a)}return o},_renderEmptyItem:function(e){return e.addClass("dx-field-empty-item").html("&nbsp;")},_getButtonHorizontalAlignment:function(e){return u.isDefined(e.horizontalAlignment)?e.horizontalAlignment:u.isDefined(e.alignment)?(C.log("W0001","dxForm","alignment","18.1","Use the 'horizontalAlignment' option in button items instead."),e.alignment):"right"},_getButtonVerticalAlignment:function(e){switch(e.verticalAlignment){case"center":return"center";case"bottom":return"flex-end";default:return"flex-start"}},_renderButtonItem:function(e,t){var n=o("<div>").appendTo(t),i={validationGroup:this.option("validationGroup")};t.addClass("dx-field-button-item").css("textAlign",this._getButtonHorizontalAlignment(e)),t.parent().css("justifyContent",this._getButtonVerticalAlignment(e));var a=this._createComponent(n,"dxButton",m(i,e.buttonOptions));return this._itemsRunTimeInfo.add(e,a,e.guid,t),this._addItemClasses(t,e.col),n},_addItemClasses:function(e,t){e.addClass("dx-field-item").addClass(this.option("cssItemClass")).addClass(u.isDefined(t)?"dx-col-"+t:"")},_renderFieldItem:function(e,t){var n,i=this,a=i._getName(e),s=i.getItemID(a),l=u.isDefined(e.isRequired)?e.isRequired:!!i._hasRequiredRuleInSet(e.validationRules),c=i._getLabelOptions(e,s,l),d=o("<div>"),h=e.helpText?"dx-"+new r:null;this._addItemClasses(t,e.col),t.addClass(l?"dx-field-item-required":"dx-field-item-optional"),c.visible&&c.text&&(n=i._renderLabel(c).appendTo(t)),e.itemType===R&&(i._isLabelNeedBaselineAlign(e)&&"top"!==c.location&&t.addClass("dx-field-item-label-align"),i._hasBrowserFlex()&&t.addClass("dx-flex-layout")),d.data("dx-form-item",e),i._appendEditorToField({$fieldItem:t,$label:n,$editor:d,labelOptions:c});var p=i._renderEditor({$container:d,dataField:e.dataField,name:a,editorType:e.editorType,editorOptions:e.editorOptions,template:i._getTemplateByFieldItem(e),isRequired:l,helpID:h,id:s,validationBoundary:i.option("validationBoundary")});this._itemsRunTimeInfo.add(e,p,e.guid,t);var f=d.children().first();f&&f.data("dx-validation-target")&&i._renderValidator(f,e),i._renderHelpText(e,d,h),i._attachClickHandler(n,d,e.editorType)},_hasRequiredRuleInSet:function(e){var t;return e&&e.length&&_(e,function(e,n){if("required"===n.type)return t=!0,!1}),t},_getName:function(e){return e.dataField||e.name},_isLabelNeedBaselineAlign:function(e){return!!e.helpText&&!this._hasBrowserFlex()||-1!==v(e.editorType,["dxTextArea","dxRadioGroup","dxCalendar"])},_getLabelOptions:function(e,t,n){var i=m({showColon:this.option("showColonAfterLabel"),location:this.option("labelLocation"),id:t,visible:!0,isRequired:n},e?e.label:{});return!i.text&&e.dataField&&(i.text=I.captionize(e.dataField)),i.text&&(i.text+=i.showColon?":":""),i},_renderLabel:function(e){if(u.isDefined(e.text)&&e.text.length>0){var t="dx-field-item-label dx-field-item-label-location-"+e.location,n=o("<label>").addClass(t).attr("for",e.id),i=o("<span>").addClass("dx-field-item-label-content").appendTo(n);return o("<span>").addClass("dx-field-item-label-text").text(e.text).appendTo(i),e.alignment&&n.css("textAlign",e.alignment),i.append(this._renderLabelMark(e.isRequired)),n}},_renderLabelMark:function(e){var t,n=this._getRequiredMarksConfig(),i=n.showRequiredMark&&e,a=n.showOptionalMark&&!e;if(i||a){var r=i?"dx-field-item-required-mark":"dx-field-item-optional-mark",s=i?n.requiredMark:n.optionalMark;t=o("<span>").addClass(r).html("&nbsp"+s)}return t},_getRequiredMarksConfig:function(){return this._cashedRequiredConfig||(this._cashedRequiredConfig={showRequiredMark:this.option("showRequiredMark"),showOptionalMark:this.option("showOptionalMark"),requiredMark:this.option("requiredMark"),optionalMark:this.option("optionalMark")}),this._cashedRequiredConfig},_renderEditor:function(e){var t,n={value:this._getDataByField(e.dataField)};-1!==V.indexOf(e.editorType)&&(n.value=n.value||[]);var i=this.option("form");t=m(!0,n,e.editorOptions,{inputAttr:{id:e.id},validationBoundary:e.validationBoundary,stylingMode:i&&i.option("stylingMode")}),this._replaceDataOptions(e.editorOptions,t);var o={editorType:e.editorType,dataField:e.dataField,template:e.template,name:e.name,helpID:e.helpID,isRequired:e.isRequired};return this._createEditor(e.$container,o,t)},_replaceDataOptions:function(e,t){e&&F.forEach(function(n){t[n]&&(t[n]=e[n])})},_renderValidator:function(e,t){var n=this._getFieldLabelName(t),i=this._prepareValidationRules(t.validationRules,t.isRequired,t.itemType,n);Array.isArray(i)&&i.length&&this._createComponent(e,D,{validationRules:i,validationGroup:this.option("validationGroup")})},_getFieldLabelName:function(e){var t=e.label&&e.label.text,n=t?null:this._getName(e);return t?e.label.text:n&&I.captionize(n)},_prepareValidationRules:function(e,t,n,i){var o;if(n===R)if(e)o=e;else{var a=g.format(this.option("requiredMessage"),i||"");o=t?[{type:"required",message:a}]:null}return o},_addWrapperInvalidClass:function(e){var t=function(e){o(e.element).parents(".dx-field-item-content-wrapper").toggleClass("dx-invalid",e.component._isFocused()&&!1===e.component.option("isValid"))};e.on("focusIn",t).on("focusOut",t).on("enterKey",t)},_createEditor:function(e,t,n){var i,a=this,r=t.template;if(t.dataField&&!n.name&&(n.name=t.dataField),a._addItemContentClasses(e),r){var s={dataField:t.dataField,editorType:t.editorType,editorOptions:n,component:a._getComponentOwner()};r.render({model:s,container:c.getPublicElement(e)})}else{var l=o("<div>").appendTo(e);try{(i=a._createComponent(l,t.editorType,n)).setAria("describedby",t.helpID),i.setAria("required",t.isRequired),A.isMaterial()&&a._addWrapperInvalidClass(i),t.dataField&&a._bindDataField(i,t,e)}catch(e){C.log("E1035",e.message)}}return i},_getComponentOwner:function(){return this.option("form")||this},_bindDataField:function(e,t,n){var i=this._getComponentOwner();e.on("enterKey",function(e){i._createActionByOption("onEditorEnterKey")(m(e,{dataField:t.dataField}))}),this._createWatcher(e,n,t),this.linkEditorToDataField(e,t.dataField,t.editorType)},_createWatcher:function(e,t,n){var i=this,o=i._getWatch();if(u.isFunction(o)){var r=o(function(){return i._getDataByField(n.dataField)},function(){e.option("value",i._getDataByField(n.dataField))},{deep:!0,skipImmediate:!0});a.on(t,b,r)}},_getWatch:function(){if(!u.isDefined(this._watch)){var e=this.option("form");this._watch=e&&e.option("integrationOptions.watchMethod")}return this._watch},_addItemContentClasses:function(e){var t=this._getItemContentLocationSpecificClass();e.addClass([O,t].join(" "))},_getItemContentLocationSpecificClass:function(){return"dx-field-item-content-location-"+{right:"left",left:"right",top:"bottom"}[this.option("labelLocation")]},_createComponent:function(e,t,n){var i,o=this.option("readOnly");return i=this.callBase(e,t,n),o&&i.option("readOnly",o),this.on("optionChanged",function(e){"readOnly"!==e.name||u.isDefined(n.readOnly)||i.option(e.name,e.value)}),i},_getTemplateByFieldItem:function(e){return e.template?this._getTemplate(e.template):null},_appendEditorToField:function(e){if(e.$label){var t=e.labelOptions.location;"top"!==t&&"left"!==t||e.$fieldItem.append(e.$editor),"right"===t&&e.$fieldItem.prepend(e.$editor),this._addInnerItemAlignmentClass(e.$fieldItem,t)}else e.$fieldItem.append(e.$editor)},_addInnerItemAlignmentClass:function(e,t){"top"===t?e.addClass("dx-label-v-align"):e.addClass("dx-label-h-align")},_renderHelpText:function(e,t,n){var i=e.helpText,a=e.itemType===R;if(i&&a){var r=o("<div>").addClass(P);t.wrap(r),o("<div>").addClass("dx-field-item-help-text").attr("id",n).text(i).appendTo(t.parent())}},_attachClickHandler:function(e,t,n){e&&("dxCheckBox"===n||"dxSwitch"===n)&&a.on(e,x.name,function(){a.trigger(t.children(),x.name)})},_generateRatio:function(e,t){var n,i,o=[];for(i=0;i<e;i++)n={ratio:1},t&&(n.baseSize="auto"),o.push(n);return o},_getRowsCount:function(){return Math.ceil(this._items.length/this._getColCount())},_updateReferencedOptions:function(e){var t=this,n=this.option("layoutData");u.isObject(n)&&Object.getOwnPropertyNames(n).forEach(function(e){return delete t._optionsByReference["layoutData."+e]}),u.isObject(e)&&Object.getOwnPropertyNames(e).forEach(function(e){return t._optionsByReference["layoutData."+e]=!0})},_optionChanged:function(e){if(0!==e.fullName.search("layoutData."))switch(e.name){case"showRequiredMark":case"showOptionalMark":case"requiredMark":case"optionalMark":this._cashedRequiredConfig=null,this._invalidate();break;case"layoutData":this._updateReferencedOptions(e.value),this.option("items")?u.isEmptyObject(e.value)||this._itemsRunTimeInfo.each(function(t,n){if(u.isDefined(n.item)){var i=n.item.dataField;if(i&&u.isDefined(n.widgetInstance)){var o=y.compileGetter(i)(e.value);void 0===o?(n.widgetInstance.reset(),n.widgetInstance.option("isValid",!0)):n.widgetInstance.option("value",o)}}}):(this._initDataAndItems(e.value),this._invalidate());break;case"items":this._cleanItemWatchers(),this._initDataAndItems(e.value),this._invalidate();break;case"alignItemLabels":case"labelLocation":case"requiredMessage":this._invalidate();break;case"customizeItem":this._updateItems(this.option("layoutData")),this._invalidate();break;case"colCount":this._resetColCount();break;case"minColWidth":"auto"===this.option("colCount")&&this._resetColCount();break;case"readOnly":break;case"width":this.callBase(e),"auto"===this.option("colCount")&&this._resetColCount();break;case"onFieldDataChanged":break;default:this.callBase(e)}},_resetColCount:function(){this._cashedColCount=null,this._invalidate()},linkEditorToDataField:function(e,t,n){var o,a="layoutData."+t,r=this;r.on("optionChanged",function(t){t.fullName===a&&(o=!0,"object"===i(t.value)?r._managedUpdateEditorOption(e,"value",t.value):e.option("value",t.value),o=!1)}),e.on("valueChanged",function(e){var n="object"===i(e.value),a=n&&e.value===e.previousValue;o||a||(n?r._managedUpdateFieldValue(t,e.value):r._updateFieldValue(t,e.value))})},_managedUpdateEditorOption:function(e,t,n){this._isValueChangedCalled||(this._isFieldValueChanged=!0,e.option(t,n),this._isFieldValueChanged=!1)},_managedUpdateFieldValue:function(e,t){this._isValueChangedCalled=!0,this._isFieldValueChanged||this._updateFieldValue(e,t),this._isValueChangedCalled=!1},_dimensionChanged:function(){"auto"===this.option("colCount")&&this.isCachedColCountObsolete()&&this.fireEvent("autoColCountChanged")},getItemID:function(e){var t=this.option("form");return t&&t.getItemID(e)},updateData:function(e,t){var n=this;u.isObject(e)?_(e,function(e,t){n._updateFieldValue(e,t)}):"string"==typeof e&&n._updateFieldValue(e,t)},getEditor:function(e){return this._itemsRunTimeInfo.findWidgetInstanceByDataField(e)||this._itemsRunTimeInfo.findWidgetInstanceByName(e)},isSingleColumnMode:function(e){var t=this._responsiveBox||e;if(t)return t.option("currentScreenFactor")===t.option("singleColumnScreen")}});l("dxLayoutManager",L),e.exports=L},function(e,t,n){var i=n(25),o=n(14).inherit({ctor:function(e,t){var n=this;n.editor=e,n.validator=t,n.validationRequestsCallbacks=i();var o=function(){n.validationRequestsCallbacks.fire()};e.validationRequest.add(o),e.on("disposing",function(){e.validationRequest.remove(o)})},getValue:function(){return this.editor.option("value")},getCurrentValidationError:function(){return this.editor.option("validationError")},bypass:function(){return this.editor.option("disabled")},applyValidationResults:function(e){this.editor.option({isValid:e.isValid,validationError:e.brokenRule})},reset:function(){this.editor.reset()},focus:function(){this.editor.focus()}});e.exports=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function(e){return e&&e.__esModule?e:{default:e}}(n(153)),a=n(4),r=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),i(t,[{key:"_renderWatchers",value:function(){return this._startWatcher("badge",a.noop),function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_renderWatchers",this).call(this)}}]),t}();t.default=r},function(e,t,n){var i=n(2),o=n(5),a=n(8),r=n(4),s=n(1),l=n(7),u=n(0).extend,c=n(10).getPublicElement,d=n(39),h=n(19),p=n(26),f=n(16),g=n(17),_=n(9),m=n(54),v=n(158),y=n(65),b=n(6).Deferred,x="dx-gallery",w="dx-gallery-loop",C=x+"-active",k=x+"-item",S=x+"-item-invisible",I=k+"-loop",T=k+"-selected",D=x+"-indicator",E=D+"-item",A="."+E,O=E+"-selected",P=g.inherit({_supportedKeys:function(){return u(this.callBase(),{pageUp:r.noop,pageDown:r.noop})},_getDefaultOptions:function(){return u(this.callBase(),{direction:"next",onClick:null,hoverStateEnabled:!0,activeStateEnabled:!0})},_render:function(){this.callBase();var e=this,t=this.$element(),n=_.addNamespace(h.name,this.NAME);t.addClass(x+"-nav-button-"+this.option("direction")),o.off(t,n),o.on(t,n,function(t){e._createActionByOption("onClick")({event:t})})},_optionChanged:function(e){switch(e.name){case"onClick":case"direction":this._invalidate();break;default:this.callBase(e)}}}),B=m.inherit({_activeStateUnit:".dx-gallery-item",_getDefaultOptions:function(){return u(this.callBase(),{activeStateEnabled:!1,animationDuration:400,animationEnabled:!0,loop:!1,swipeEnabled:!0,indicatorEnabled:!0,showIndicator:!0,selectedIndex:0,slideshowDelay:0,showNavButtons:!1,wrapAround:!1,initialItemWidth:void 0,stretchImages:!1,_itemAttributes:{role:"option"},loopItemFocus:!1,selectOnFocus:!0,selectionMode:"single",selectionRequired:!0,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===f.real().deviceType&&!f.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.option("loopItemFocus",this.option("loop"))},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new y(function(e,t){var n=i("<img>").addClass("dx-gallery-item-image");s.isPlainObject(t)?(this._prepareDefaultItemTemplate(t,e),n.attr({src:t.imageSrc,alt:t.imageAlt}).appendTo(e)):n.attr("src",String(t)).appendTo(e)}.bind(this),["imageSrc","imageAlt","text","html"],this.option("integrationOptions.watchMethod"))},_dataSourceOptions:function(){return{paginate:!1}},_itemContainer:function(){return this._$container},_itemClass:function(){return k},_itemDataKey:function(){return"dxGalleryItemData"},_actualItemWidth:function(){var e=this.option("wrapAround");return this.option("stretchImages")?1/(e?this._itemsPerPage()+1:this._itemsPerPage()):e?this._itemPercentWidth()*this._itemsPerPage()/(this._itemsPerPage()+1):this._itemPercentWidth()},_itemPercentWidth:function(){var e=this.$element().outerWidth(),t=this.option("initialItemWidth");return t&&t<=e?t/e:1},_itemsPerPage:function(){var e=l.hasWindow()?Math.floor(1/this._itemPercentWidth()):1;return Math.min(e,this._itemsCount())},_pagesCount:function(){return Math.ceil(this._itemsCount()/this._itemsPerPage())},_itemsCount:function(){return(this.option("items")||[]).length},_offsetDirection:function(){return this.option("rtlEnabled")?-1:1},_initMarkup:function(){this._renderWrapper(),this._renderItemsContainer(),this.$element().addClass(x),this.$element().toggleClass(w,this.option("loop")),this.callBase(),this.setAria({role:"listbox",label:"gallery"})},_render:function(){this._renderDragHandler(),this._renderContainerPosition(),this._renderItemSizes(),this._renderItemPositions(),this._renderNavButtons(),this._renderIndicator(),this._renderSelectedItem(),this._renderItemVisibility(),this._renderUserInteraction(),this._setupSlideShow(),this._reviseDimensions(),this.callBase()},_dimensionChanged:function(){var e=this.option("selectedIndex")||0;this._stopItemAnimations(),this._clearCacheWidth(),this._renderDuplicateItems(),this._renderItemSizes(),this._renderItemPositions(),this._renderIndicator(),this._renderContainerPosition(this._calculateIndexOffset(e),!0),this._renderItemVisibility()},_renderDragHandler:function(){var e=_.addNamespace("dragstart",this.NAME);o.off(this.$element(),e),o.on(this.$element(),e,"img",function(){return!1})},_renderWrapper:function(){this._$wrapper||(this._$wrapper=i("<div>").addClass("dx-gallery-wrapper").appendTo(this.$element()))},_renderItems:function(e){if(!l.hasWindow()){var t=this.option("selectedIndex");e=e.length>t?e.slice(t,t+1):e.slice(0,1)}this.callBase(e),this._loadNextPageIfNeeded()},_renderItemsContainer:function(){this._$container||(this._$container=i("<div>").addClass("dx-gallery-container").appendTo(this._$wrapper))},_renderDuplicateItems:function(){if(this.option("loop")){var e,t=this.option("items")||[],n=t.length,i=n-1;if(n){this._getLoopedItems().remove();var o=Math.min(this._itemsPerPage(),n);for(e=0;e<o;e++)this._renderItem(0,t[e]).addClass(I);for(e=0;e<o;e++)this._renderItem(0,t[i-e]).addClass(I)}}},_getLoopedItems:function(){return this.$element().find("."+I)},_emptyMessageContainer:function(){return this._$wrapper},_renderItemSizes:function(e){var t=this._itemElements(),n=this._actualItemWidth();void 0!==e&&(t=t.slice(e)),t.each(function(e){i(t[e]).outerWidth(100*n+"%")})},_renderItemPositions:function(){var e=this._actualItemWidth(),t=this._itemsCount(),n=this._itemsPerPage(),o=this.$element().find("."+I).length,a=t+o-1,r=this.option("wrapAround")?.5:0,s=this._itemFreeSpace(),l=!!s,u=this.option("rtlEnabled"),c=this.option("selectedIndex"),d=u?"Right":"Left";this._itemElements().each(function(o){var u=o,c=i(this).hasClass(I);if(o>t+n-1&&(u=a-u-n),c||0===u){var h=e*(u+r)+s*(u+1-r),p=c?d.toLowerCase():"margin"+d;i(this).css(p,100*h+"%")}else l&&i(this).css("margin"+d,100*s+"%")}),this._relocateItems(c,c,!0)},_itemFreeSpace:function(){var e=this._itemsPerPage();return this.option("wrapAround")&&(e+=1),(1-this._actualItemWidth()*e)/(e+1)},_renderContainerPosition:function(e,t,n){this._releaseInvisibleItems(),e=e||0;var i,o=this,a=this._actualItemWidth(),r=e,l=this._offsetDirection()*r*(a+this._itemFreeSpace());return s.isDefined(this._animationOverride)&&(n=this._animationOverride,delete this._animationOverride),n?(o._startSwipe(),i=o._animate(l).done(o._endSwipe.bind(o))):(p.move(this._$container,{left:l*this._elementWidth(),top:0}),i=(new b).resolveWith(o)),i.done(function(){this._deferredAnimate&&o._deferredAnimate.resolveWith(o),t&&this._renderItemVisibility()}),i.promise()},_startSwipe:function(){this.$element().addClass(C)},_endSwipe:function(){this.$element().removeClass(C)},_animate:function(e,t){var n=this,i=this._$container,o=new b;return d.animate(this._$container,u({type:"slide",to:{left:e*this._elementWidth()},duration:n.option("animationDuration"),complete:function(){n._needMoveContainerForward()&&p.move(i,{left:0,top:0}),n._needMoveContainerBack()&&p.move(i,{left:n._maxContainerOffset()*n._elementWidth(),top:0}),o.resolveWith(n)}},t||{})),o},_needMoveContainerForward:function(){return this._$container.position().left*this._offsetDirection()<=-this._maxItemWidth()*this._elementWidth()*this._itemsCount()+1},_needMoveContainerBack:function(){return this._$container.position().left*this._offsetDirection()>=this._actualItemWidth()*this._elementWidth()-1},_maxContainerOffset:function(){return-this._maxItemWidth()*(this._itemsCount()-this._itemsPerPage())*this._offsetDirection()},_maxItemWidth:function(){return this._actualItemWidth()+this._itemFreeSpace()},_reviseDimensions:function(){var e=this,t=e._itemElements().first().find(".dx-item-content");t&&!t.is(":hidden")&&(e.option("height")||e.option("height",t.outerHeight()),e.option("width")||e.option("width",t.outerWidth()),this._dimensionChanged())},_renderIndicator:function(){if(this._cleanIndicators(),this.option("showIndicator")){for(var e=this._$indicator=i("<div>").addClass(D).appendTo(this._$wrapper),t=0;t<this._pagesCount();t++)i("<div>").addClass(E).appendTo(e);this._renderSelectedPageIndicator()}},_cleanIndicators:function(){this._$indicator&&this._$indicator.remove()},_renderSelectedItem:function(){var e=this.option("selectedIndex");this._itemElements().removeClass(T).eq(e).addClass(T)},_renderItemVisibility:function(){return this.option("initialItemWidth")||this.option("wrapAround")?void this._releaseInvisibleItems():(this._itemElements().each(function(e,t){this.option("selectedIndex")===e?i(t).removeClass(S):i(t).addClass(S)}.bind(this)),void this._getLoopedItems().addClass(S))},_releaseInvisibleItems:function(){this._itemElements().removeClass(S),this._getLoopedItems().removeClass(S)},_renderSelectedPageIndicator:function(){if(this._$indicator){var e=this.option("selectedIndex"),t=this._pagesCount()-1,n=Math.ceil(e/this._itemsPerPage());n=Math.min(t,n),this._$indicator.find(A).removeClass(O).eq(n).addClass(O)}},_renderUserInteraction:function(){var e=this.$element(),t=this.option("swipeEnabled")&&this._itemsCount()>1;this._createComponent(e,v,{disabled:this.option("disabled")||!t,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._elementWidth.bind(this)});var n=this._createAction(this._indicatorSelectHandler);o.off(e,_.addNamespace(h.name,this.NAME),A),o.on(e,_.addNamespace(h.name,this.NAME),A,function(e){n({event:e})})},_indicatorSelectHandler:function(e){var t=e.event,n=e.component;if(n.option("indicatorEnabled")){var o=i(t.target).index(),a=n._fitPaginatedIndex(o*n._itemsPerPage());n._needLongMove=!0,n.option("selectedIndex",a),n._loadNextPageIfNeeded(a)}},_renderNavButtons:function(){var e=this;return e.option("showNavButtons")?(e._prevNavButton=i("<div>").appendTo(this._$wrapper),e._createComponent(e._prevNavButton,P,{direction:"prev",onClick:function(){e._prevPage()}}),e._nextNavButton=i("<div>").appendTo(this._$wrapper),e._createComponent(e._nextNavButton,P,{direction:"next",onClick:function(){e._nextPage()}}),void this._renderNavButtonsVisibility()):void e._cleanNavButtons()},_prevPage:function(){var e=this._itemsPerPage(),t=this.option("selectedIndex")-e;return t===-e&&e===this._itemsCount()?this._relocateItems(t,0):this.goToItem(this._fitPaginatedIndex(t))},_nextPage:function(){var e=this._itemsPerPage(),t=this.option("selectedIndex")+e;return t===e&&e===this._itemsCount()?this._relocateItems(t,0):this.goToItem(this._fitPaginatedIndex(t)).done(this._loadNextPageIfNeeded)},_loadNextPageIfNeeded:function(e){e=void 0===e?this.option("selectedIndex"):e,this._dataSource&&this._dataSource.paginate()&&this._shouldLoadNextPage(e)&&!this._isDataSourceLoading()&&!this._isLastPage()&&this._loadNextPage().done(function(){this._renderIndicator(),this._renderItemPositions(),this._renderNavButtonsVisibility(),this._renderItemSizes(e)}.bind(this))},_shouldLoadNextPage:function(e){return e+2*this._itemsPerPage()>this.option("items").length},_allowDynamicItemsAppend:function(){return!0},_fitPaginatedIndex:function(e){var t=this._itemsPerPage(),n=e<0?t+e:this._itemsCount()-e;return e>this._itemsCount()-1?(e=0,this._goToGhostItem=!0):n<t&&n>0&&(e>0?e-=t-n:e+=t-n),e},_cleanNavButtons:function(){this._prevNavButton&&(this._prevNavButton.remove(),delete this._prevNavButton),this._nextNavButton&&(this._nextNavButton.remove(),delete this._nextNavButton)},_renderNavButtonsVisibility:function(){if(this.option("showNavButtons")&&this._prevNavButton&&this._nextNavButton){var e=this.option("selectedIndex"),t=this.option("loop"),n=this._itemsCount();if(this._prevNavButton.show(),this._nextNavButton.show(),0===n&&(this._prevNavButton.hide(),this._nextNavButton.hide()),!t){var i=e===n-this._itemsPerPage(),o=n<2||0===e;i=this._dataSource&&this._dataSource.paginate()?i&&this._isLastPage():i||n<2,o&&this._prevNavButton.hide(),i&&this._nextNavButton.hide()}}},_setupSlideShow:function(){var e=this,t=e.option("slideshowDelay");clearTimeout(e._slideshowTimer),t&&(e._slideshowTimer=setTimeout(function(){return e._userInteraction?void e._setupSlideShow():void e.nextItem(!0).done(e._setupSlideShow)},t))},_elementWidth:function(){return this._cacheElementWidth||(this._cacheElementWidth=this.$element().width()),this._cacheElementWidth},_clearCacheWidth:function(){delete this._cacheElementWidth},_swipeStartHandler:function(e){this._releaseInvisibleItems(),this._clearCacheWidth(),this._elementWidth();var t=this._itemsCount();if(t){if(this._stopItemAnimations(),this._startSwipe(),this._userInteraction=!0,!this.option("loop")){var n=this.option("selectedIndex"),i=t-n-this._itemsPerPage(),o=n,a=this.option("rtlEnabled");e.event.maxLeftOffset=a?o:i,e.event.maxRightOffset=a?i:o}}else e.event.cancel=!0},_stopItemAnimations:function(){d.stop(this._$container,!0)},_swipeUpdateHandler:function(e){var t=this.option("wrapAround")?1:0,n=this._offsetDirection()*e.event.offset*(this._itemsPerPage()+t)-this.option("selectedIndex");n<0&&this._loadNextPageIfNeeded(Math.ceil(Math.abs(n))),this._renderContainerPosition(n)},_swipeEndHandler:function(e){var t=e.event.targetOffset*this._offsetDirection()*this._itemsPerPage(),n=this.option("selectedIndex"),i=this._fitIndex(n-t),o=this._fitPaginatedIndex(i);return Math.abs(t)<this._itemsPerPage()?void this._relocateItems(n):this._itemsPerPage()===this._itemsCount()?void(t>0?this._relocateItems(-t):this._relocateItems(0)):void this.option("selectedIndex",o)},_setFocusOnSelect:function(){this._userInteraction=!0;var e=this.itemElements().filter("."+T);this.option("focusedElement",c(e)),this._userInteraction=!1},_flipIndex:function(e){var t=this._itemsCount();return(e%=t)>(t+1)/2&&(e-=t),e<-(t-1)/2&&(e+=t),e},_fitIndex:function(e){if(!this.option("loop"))return e;var t=this._itemsCount();return(e>=t||e<0)&&(this._goToGhostItem=!0),e>=t&&(e=t-e),(e%=t)<0&&(e+=t),e},_clean:function(){this.callBase(),this._cleanIndicators(),this._cleanNavButtons()},_dispose:function(){clearTimeout(this._slideshowTimer),this.callBase()},_updateSelection:function(e,t){this._stopItemAnimations(),this._renderNavButtonsVisibility(),this._renderSelectedItem(),this._relocateItems(e[0],t[0]),this._renderSelectedPageIndicator()},_relocateItems:function(e,t,n){void 0===t&&(t=e);var i=this._calculateIndexOffset(e,t);this._renderContainerPosition(i,!0,this.option("animationEnabled")&&!n).done(function(){this._setFocusOnSelect(),this._userInteraction=!1,this._setupSlideShow()})},_focusInHandler:function(){d.isAnimating(this._$container)||this._userInteraction||this.callBase.apply(this,arguments)},_focusOutHandler:function(){d.isAnimating(this._$container)||this._userInteraction||this.callBase.apply(this,arguments)},_selectFocusedItem:r.noop,_moveFocus:function(){this._stopItemAnimations(),this.callBase.apply(this,arguments);var e=this.itemElements().index(i(this.option("focusedElement")));this.goToItem(e,this.option("animationEnabled"))},_visibilityChanged:function(e){e&&this._reviseDimensions()},_calculateIndexOffset:function(e,t){void 0===t&&(t=e);var n=t-e;return this.option("loop")&&!this._needLongMove&&this._goToGhostItem&&(this._isItemOnFirstPage(e)&&this._isItemOnLastPage(t)?n=-this._itemsPerPage():this._isItemOnLastPage(e)&&this._isItemOnFirstPage(t)&&(n=this._itemsPerPage()),this._goToGhostItem=!1),this._needLongMove=!1,n-t},_isItemOnLastPage:function(e){return e>=this._itemsCount()-this._itemsPerPage()},_isItemOnFirstPage:function(e){return e<=this._itemsPerPage()},_optionChanged:function(e){switch(e.name){case"width":case"initialItemWidth":this.callBase.apply(this,arguments),this._dimensionChanged();break;case"animationDuration":this._renderNavButtonsVisibility();break;case"animationEnabled":break;case"loop":this.$element().toggleClass(w,e.value),this.option("loopItemFocus",e.value),l.hasWindow()&&(this._renderDuplicateItems(),this._renderItemPositions(),this._renderNavButtonsVisibility());break;case"showIndicator":this._renderIndicator();break;case"showNavButtons":this._renderNavButtons();break;case"slideshowDelay":this._setupSlideShow();break;case"wrapAround":case"stretchImages":l.hasWindow()&&(this._renderItemSizes(),this._renderItemPositions(),this._renderItemVisibility());break;case"swipeEnabled":case"indicatorEnabled":this._renderUserInteraction();break;default:this.callBase(e)}},goToItem:function(e,t){var n=this.option("selectedIndex"),i=this._itemsCount();return void 0!==t&&(this._animationOverride=t),e=this._fitIndex(e),this._deferredAnimate=new b,e>i-1||e<0||n===e?this._deferredAnimate.resolveWith(this).promise():(this.option("selectedIndex",e),this._deferredAnimate.promise())},prevItem:function(e){return this.goToItem(this.option("selectedIndex")-1,e)},nextItem:function(e){return this.goToItem(this.option("selectedIndex")+1,e)}});a("dxGallery",B),e.exports=B},function(e,t,n){e.exports=n(550)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=n(0),r=n(1),s=n(10),l=n(4),u=i(n(8)),c=i(n(111)),d=i(n(49)),h=i(n(18)),p=i(n(25)),f=n(6),g=i(n(551));n(569);var _=i(n(248)),m=i(n(570)),v=i(n(571)),y="markdown",b="htmlContent",x=d.default.inherit({_getDefaultOptions:function(){return(0,a.extend)(this.callBase(),{focusStateEnabled:!0,valueType:"html",placeholder:"",toolbar:null,variables:null,mediaResizing:null,mentions:null,customizeModules:null,formDialogOptions:null})},_init:function(){this.callBase(),this.cleanCallback=(0,p.default)()},_getAnonymousTemplateName:function(){return b},_initTemplates:function(){this.callBase(),this._defaultTemplates[b]=new c.default(this)},_focusTarget:function(){return this.$element().find(".dx-htmleditor-content")},_focusInHandler:function(){this._toggleFocusClass(!0,this.$element()),this.callBase.apply(this,arguments)},_focusOutHandler:function(){this._toggleFocusClass(!1,this.$element()),this.callBase.apply(this,arguments)},_initMarkup:function(){this._$htmlContainer=(0,o.default)("<div>").addClass("dx-quill-container"),this.$element().addClass("dx-htmleditor").wrapInner(this._$htmlContainer);var e=this._getTemplate(b);this._$templateResult=e&&e.render({container:(0,s.getPublicElement)(this._$htmlContainer),noModel:!0,transclude:!0}),this._renderSubmitElement(),this.callBase(),this._updateContainerMarkup()},_renderSubmitElement:function(){this._$submitElement=(0,o.default)("<textarea>").addClass("dx-htmleditor-submit-element").attr("hidden",!0).appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(e){this._getSubmitElement().val(e)},_getSubmitElement:function(){return this._$submitElement},_updateContainerMarkup:function(){var e=this.option("value");this._isMarkdownValue()&&(this._prepareMarkdownConverter(),e=this._markdownConverter.toHtml(e)),e&&this._$htmlContainer.html(e)},_prepareMarkdownConverter:function(){var e=_.default.getConverter("markdown");if(!e)throw h.default.Error("E1051","markdown");this._markdownConverter=new e},_render:function(){this._prepareConverters(),this.callBase()},_prepareQuillRegistrator:function(){this._quillRegistrator||(this._quillRegistrator=new g.default)},_getRegistrator:function(){return this._prepareQuillRegistrator(),this._quillRegistrator},_prepareConverters:function(){if(!this._deltaConverter){var e=_.default.getConverter("delta");e&&(this._deltaConverter=new e)}this.option("valueType")!==y||this._markdownConverter||this._prepareMarkdownConverter()},_renderContentImpl:function(){return this._contentRenderedDeferred=new f.Deferred,this.callBase(),this._renderHtmlEditor(),this._renderFormDialog(),this._contentRenderedDeferred.promise()},_renderHtmlEditor:function(){var e=this,t=this.option("customizeModules"),n=this._getModulesConfig();(0,r.isFunction)(t)&&t(n),this._quillInstance=this._getRegistrator().createEditor(this._$htmlContainer[0],{placeholder:this.option("placeholder"),readOnly:this.option("readOnly")||this.option("disabled"),modules:n,theme:"basic"}),this._deltaConverter.setQuillInstance(this._quillInstance),this._textChangeHandlerWithContext=this._textChangeHandler.bind(this),this._quillInstance.on("text-change",this._textChangeHandlerWithContext),this._hasTranscludedContent()&&(this._updateContentTask=(0,l.executeAsync)(function(){e._updateHtmlContent(e._deltaConverter.toHtml())}))},_hasTranscludedContent:function(){return this._$templateResult&&this._$templateResult.length},_getModulesConfig:function(){var e=(0,m.default)(this._getRegistrator().getQuill());return(0,a.extend)({toolbar:this._getModuleConfigByOption("toolbar"),variables:this._getModuleConfigByOption("variables"),dropImage:this._getBaseModuleConfig(),resizing:this._getModuleConfigByOption("mediaResizing"),mentions:this._getModuleConfigByOption("mentions"),clipboard:{matchVisual:!1,matchers:[["p.MsoListParagraphCxSpFirst",e],["p.MsoListParagraphCxSpMiddle",e],["p.MsoListParagraphCxSpLast",e]]}},this._getCustomModules())},_getModuleConfigByOption:function(e){var t=this.option(e),n={};if((0,r.isDefined)(t))return Array.isArray(t)?n[e]=t:n=t,(0,a.extend)(this._getBaseModuleConfig(),n)},_getBaseModuleConfig:function(){return{editorInstance:this}},_getCustomModules:function(){var e=this,t={};return this._getRegistrator().getRegisteredModuleNames().forEach(function(n){t[n]=e._getBaseModuleConfig()}),t},_textChangeHandler:function(e,t,n){var i=this._deltaConverter.toHtml(),o=this._isMarkdownValue()?this._updateValueByType(y,i):i;this.option("value")!==o&&(this._isEditorUpdating=!0,this.option("value",o)),this._finalizeContentRendering()},_finalizeContentRendering:function(){this._contentRenderedDeferred&&(this._contentRenderedDeferred.resolve(),this._contentRenderedDeferred=void 0)},_updateValueByType:function(e,t){var n=this._markdownConverter;if((0,r.isDefined)(n)){var i=t||this.option("value");return e===y?n.toMarkdown(i):n.toHtml(i)}},_isMarkdownValue:function(){return this.option("valueType")===y},_resetEnabledState:function(){if(this._quillInstance){var e=!(this.option("readOnly")||this.option("disabled"));this._quillInstance.enable(e)}},_renderFormDialog:function(){var e=(0,a.extend)(!0,{width:"auto",height:"auto",closeOnOutsideClick:!0},this.option("formDialogOptions"));this._formDialog=new v.default(this,e)},_getQuillContainer:function(){return this._$htmlContainer},_optionChanged:function(e){switch(e.name){case"value":if(this._quillInstance)if(this._isEditorUpdating)this._isEditorUpdating=!1;else{var t=this._isMarkdownValue()?this._updateValueByType("HTML",e.value):e.value;this._updateHtmlContent(t)}else this._$htmlContainer.html(e.value);this._setSubmitValue(e.value),this.callBase(e);break;case"placeholder":case"variables":case"toolbar":case"mentions":case"customizeModules":this._invalidate();break;case"valueType":this._prepareConverters();var n=this._updateValueByType(e.value);"html"===e.value&&this._quillInstance?this._updateHtmlContent(n):this.option("value",n);break;case"readOnly":case"disabled":this.callBase(e),this._resetEnabledState();break;case"formDialogOptions":this._renderFormDialog();break;case"mediaResizing":e.previousValue&&e.value?this._quillInstance.getModule("resizing").option(e.name,e.value):this._invalidate();break;default:this.callBase(e)}},_updateHtmlContent:function(e){var t=this._quillInstance.clipboard.convert(e);this._quillInstance.setContents(t)},_clean:function(){this._quillInstance&&(this._quillInstance.off("text-change",this._textChangeHandlerWithContext),this.cleanCallback.fire()),this._abortUpdateContentTask(),this.cleanCallback.empty(),this.callBase()},_abortUpdateContentTask:function(){this._updateContentTask&&(this._updateContentTask.abort(),this._updateContentTask=void 0)},_applyQuillMethod:function(e,t){if(this._quillInstance)return this._quillInstance[e].apply(this._quillInstance,t)},_applyQuillHistoryMethod:function(e){this._quillInstance&&this._quillInstance.history&&this._quillInstance.history[e]()},addCleanCallback:function(e){this.cleanCallback.add(e)},register:function(e){this._getRegistrator().registerModules(e),this.repaint()},get:function(e){return this._getRegistrator().getQuill().import(e)},getQuillInstance:function(){return this._quillInstance},getSelection:function(){return this._applyQuillMethod("getSelection")},setSelection:function(e,t){this._applyQuillMethod("setSelection",arguments)},format:function(e,t){this._applyQuillMethod("format",arguments)},formatText:function(e,t,n,i){this._applyQuillMethod("formatText",arguments)},formatLine:function(e,t,n,i){this._applyQuillMethod("formatLine",arguments)},getFormat:function(e,t){return this._applyQuillMethod("getFormat",arguments)},removeFormat:function(e,t){return this._applyQuillMethod("removeFormat",arguments)},clearHistory:function(){this._applyQuillHistoryMethod("clear")},undo:function(){this._applyQuillHistoryMethod("undo")},redo:function(){this._applyQuillHistoryMethod("redo")},getLength:function(){return this._applyQuillMethod("getLength")},delete:function(e,t){this._applyQuillMethod("deleteText",arguments)},insertText:function(e,t,n){this._applyQuillMethod("insertText",arguments)},insertEmbed:function(e,t,n){this._applyQuillMethod("insertEmbed",arguments)},showFormDialog:function(e){return this._formDialog.show(e)},formDialogOption:function(e,t){return this._formDialog.popupOption.apply(this._formDialog,arguments)},focus:function(){this.callBase(),this._applyQuillMethod("focus")}});(0,u.default)("dxHtmlEditor",x),e.exports=x},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(57),a=function(){function e(){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!e.initialized){var t=this.getQuill(),i=n(553).default,o=n(554).default,a=n(555).default,r=n(556).default,s=n(557).default,l=n(558).default,u=n(311).default,c=n(559).default,d=n(564).default,h=n(565).default,p=n(567).default,f=n(568).default,g=t.import("attributors/style/direction");t.register({"formats/align":l,"formats/direction":g,"formats/font":r,"formats/size":s,"formats/extendedImage":o,"formats/link":a,"formats/mention":u,"modules/toolbar":c,"modules/dropImage":d,"modules/variables":h,"modules/resizing":p,"modules/mentions":f,"themes/basic":i},!0),this._customModules=[],e._initialized=!0}}return i(e,[{key:"createEditor",value:function(e,t){return new(this.getQuill())(e,t)}},{key:"registerModules",value:function(e){var t=RegExp("modules/*"),n=this.getQuill(),i=function(e){return!!n.imports[e]};for(var o in e)t.test(o)&&!i(o)&&this._customModules.push(o.slice(8));n.register(e,!0)}},{key:"getRegisteredModuleNames",value:function(){return this._customModules}},{key:"getQuill",value:function(){return(0,o.getQuill)()}}]),e}();t.default=a},function(e,t){e.exports=window.Quill},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=(0,n(57).getQuill)().import("core/theme"),o=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.quill.root.classList.add("dx-htmleditor-content"),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i),t}();t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},a=n(57),r=n(1),s=(0,a.getQuill)().import("formats/image"),l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s),i(t,[{key:"formats",value:function(){var e=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formats",this).call(this),n=this.domNode.style.float;return n&&(e.float=n),e}},{key:"format",value:function(e,n){"float"===e?this.domNode.style[e]=n:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=e&&e.src||e,i=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);if((0,r.isObject)(e)){var a=function(t,n){e[t]&&i.setAttribute(t,n)};a("alt",e.alt),a("width",e.width),a("height",e.height)}return i}},{key:"formats",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e);return n.imageSrc=e.getAttribute("src"),n}},{key:"value",value:function(e){return{src:e.getAttribute("src"),width:e.getAttribute("width"),height:e.getAttribute("height"),alt:e.getAttribute("alt")}}}]),t}();l.blotName="extendedImage",t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},a=n(57),r=n(1),s=(0,a.getQuill)().import("formats/link"),l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s),i(t,[{key:"formats",value:function(){return{link:t.formats(this.domNode),target:this.domNode.getAttribute("target")}}},{key:"format",value:function(e,n){"link"===e&&(0,r.isObject)(n)?(n.text&&(this.domNode.innerText=n.text),n.target?this.domNode.setAttribute("target","_blank"):this.domNode.removeAttribute("target"),this.domNode.setAttribute("href",n.href)):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=e&&e.href||e,i=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return(0,r.isObject)(e)&&(e.text&&(i.innerText=e.text),e.target||i.removeAttribute("target")),i}},{key:"value",value:function(e){return{href:e.getAttribute("href"),text:e.innerText,target:!!e.getAttribute("target")}}}]),t}();t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=(0,n(57).getQuill)().import("attributors/style/font");i.whitelist=null,t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=(0,n(57).getQuill)().import("attributors/style/size");i.whitelist=null,t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=(0,n(57).getQuill)().import("attributors/style/align");i.whitelist.push("left"),t.default=i},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n(57),r=i(n(2)),s=i(n(163));n(95),n(300);var l=i(n(563)),u=n(3),c=n(1),d=n(0),h=n(15),p=n(32),f=i(n(5)),g=n(9),_=(0,a.getQuill)().import("core/module"),m="dx-htmleditor-toolbar-wrapper",v="dx-format-active",y="selection-change",b="user",x="silent",w=(0,h.format)("dxHtmlEditor-heading"),C=(0,h.format)("dxHtmlEditor-normalText"),k=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i._editorInstance=n.editorInstance,i._toolbarWidgets=new l.default,i._formatHandlers=i._getFormatHandlers(),(0,c.isDefined)(n.items)&&(i._editorInstance.addCleanCallback(i.clean.bind(i)),i._renderToolbar(),i.quill.on("editor-change",function(e){var t=e===y;i._updateToolbar(t)})),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,_),o(t,[{key:"_updateToolbar",value:function(e){this.updateFormatWidgets(e),this.updateHistoryWidgets()}},{key:"_getDefaultClickHandler",value:function(e){var t=this;return function(n){var i=t.quill.getFormat(),o=i[e],a=!((0,c.isBoolean)(o)?o:(0,c.isDefined)(o));t.quill.format(e,a,b),t._updateFormatWidget(e,a,i)}}},{key:"_updateFormatWidget",value:function(e,t,n){var i=this._toolbarWidgets.getByName(e);i&&(t?this._markActiveFormatWidget(e,i,n):(this._resetFormatWidget(e,i),n.hasOwnProperty(e)&&delete n[e]),this._toggleClearFormatting(t||!(0,c.isEmptyObject)(n)))}},{key:"_getFormatHandlers",value:function(){var e=this;return{clear:function(t){var n=e.quill.getSelection();n&&(e.quill.removeFormat(n),e.updateFormatWidgets())},link:this._prepareLinkHandler(),image:this._prepareImageHandler(),color:this._prepareColorClickHandler("color"),background:this._prepareColorClickHandler("background"),orderedList:this._prepareShortcutHandler("list","ordered"),bulletList:this._prepareShortcutHandler("list","bullet"),alignLeft:this._prepareShortcutHandler("align","left"),alignCenter:this._prepareShortcutHandler("align","center"),alignRight:this._prepareShortcutHandler("align","right"),alignJustify:this._prepareShortcutHandler("align","justify"),codeBlock:this._getDefaultClickHandler("code-block"),undo:function(){e.quill.history.undo()},redo:function(){e.quill.history.redo()},increaseIndent:function(){e.quill.format("indent","+1",b)},decreaseIndent:function(){e.quill.format("indent","-1",b)},superscript:this._prepareShortcutHandler("script","super"),subscript:this._prepareShortcutHandler("script","sub")}}},{key:"_prepareShortcutHandler",value:function(e,t){var n=this;return function(){var i=n.quill.getFormat()[e]!==t&&t;n.quill.format(e,i,b),n.updateFormatWidgets(!0)}}},{key:"_prepareLinkHandler",value:function(){var e=this;return function(){e.quill.focus();var t=e.quill.getSelection(),n=e._hasEmbedContent(t),i=t?e.quill.getFormat():{},o={href:i.link||"",text:t&&!n?e.quill.getText(t):"",target:!i.hasOwnProperty("target")||!!i.target};e._editorInstance.formDialogOption("title",(0,h.format)("dxHtmlEditor-dialogLinkCaption"));var a=e._editorInstance.showFormDialog({formData:o,items:e._getLinkFormItems(t)});a.done(function(i){if(t&&!n){var o=i.text||i.href,a=t.index,r=t.length;i.text=void 0,r&&e.quill.deleteText(a,r,x),e.quill.insertText(a,o,"link",i,b),e.quill.setSelection(a+o.length,0,b)}else i.text=t||i.text?i.text:i.href,e.quill.format("link",i,b)}),a.fail(function(){e.quill.focus()})}}},{key:"_hasEmbedContent",value:function(e){return!!e&&this.quill.getText(e).trim().length<e.length}},{key:"_getLinkFormItems",value:function(e){return[{dataField:"href",label:{text:(0,h.format)("dxHtmlEditor-dialogLinkUrlField")}},{dataField:"text",label:{text:(0,h.format)("dxHtmlEditor-dialogLinkTextField")},visible:!this._hasEmbedContent(e)},{dataField:"target",editorType:"dxCheckBox",editorOptions:{text:(0,h.format)("dxHtmlEditor-dialogLinkTargetField")},cssClass:"dx-formdialog-field-target",label:{visible:!1}}]}},{key:"_prepareImageHandler",value:function(){var e=this;return function(){var t=e.quill.getFormat(),n=t.hasOwnProperty("imageSrc"),i=e._defaultPasteIndex;if(n){var o=e.quill.getFormat(i-1,1).imageSrc;t.src=t.imageSrc,delete t.imageSrc,o&&0!==i||e.quill.setSelection(i+1,0,x)}var a=e._embedFormatIndex;e._editorInstance.formDialogOption("title",(0,h.format)("dxHtmlEditor-dialogImageCaption")),e._editorInstance.showFormDialog({formData:t,items:e._imageFormItems}).done(function(t){var o=i;n&&(o=a,e.quill.deleteText(o,1,x)),e.quill.insertEmbed(o,"extendedImage",t,b),e.quill.setSelection(o+1,0,b)}).always(function(){e.quill.focus()})}}},{key:"_renderToolbar",value:function(){var e=this,t=this.options.container||this._getContainer();this._$toolbar=(0,r.default)("<div>").addClass("dx-htmleditor-toolbar").appendTo(t),this._$toolbarContainer=(0,r.default)(t).addClass(m),f.default.on(this._$toolbar,(0,g.addNamespace)("mousedown",this._editorInstance.NAME),function(e){e.preventDefault()}),this.toolbarInstance=this._editorInstance._createComponent(this._$toolbar,s.default,this.toolbarConfig),this._editorInstance.on("optionChanged",function(t){var n=t.name;"readOnly"!==n&&"disabled"!==n||e.toolbarInstance.option("disabled",e.isInteractionDisabled)})}},{key:"clean",value:function(){this._toolbarWidgets.clear(),this._$toolbarContainer&&this._$toolbarContainer.empty().removeClass(m)}},{key:"_getContainer",value:function(){var e=(0,r.default)("<div>");return this._editorInstance.$element().prepend(e),e}},{key:"_prepareToolbarItems",value:function(){var e=this,t=[];return(0,u.each)(this.options.items,function(n,i){var o=void 0;if((0,c.isObject)(i))o=e._handleObjectItem(i);else if((0,c.isString)(i)){var a=e._prepareButtonItemConfig(i);o=e._getToolbarItem(a)}o&&t.push(o)}),t}},{key:"_handleObjectItem",value:function(e){if(e.formatName&&e.formatValues&&this._isAcceptableItem("dxSelectBox")){var t=this._prepareSelectItemConfig(e);return this._getToolbarItem(t)}if(e.formatName&&this._isAcceptableItem("dxButton")){var n=this._prepareButtonItemConfig(e.formatName),i=(0,d.extend)(!0,n,e);return this._getToolbarItem(i)}return this._getToolbarItem(e)}},{key:"_isAcceptableItem",value:function(e,t){return!e.widget||e.widget===t}},{key:"_prepareButtonItemConfig",value:function(e){var t="clear"===e?"clearformat":e,n=(0,p.titleize)(e);return{widget:"dxButton",formatName:e,options:{hint:n,text:n,icon:t.toLowerCase(),onClick:this._formatHandlers[e]||this._getDefaultClickHandler(e),stylingMode:"text"},showText:"inMenu"}}},{key:"_prepareSelectItemConfig",value:function(e){var t=this;return(0,d.extend)(!0,{widget:"dxSelectBox",formatName:e.formatName,options:{stylingMode:"filled",dataSource:e.formatValues,placeholder:(0,p.titleize)(e.formatName),onValueChanged:function(n){t._isReset||(t.quill.format(e.formatName,n.value,b),t._setValueSilent(n.component,n.value))}}},e)}},{key:"_prepareColorClickHandler",value:function(e){var t=this;return function(){var n=t.quill.getFormat(),i="color"===e?"dxHtmlEditor-dialogColorCaption":"dxHtmlEditor-dialogBackgroundCaption";t._editorInstance.formDialogOption("title",(0,h.format)(i));var o=t._editorInstance.showFormDialog({formData:n,items:[{dataField:e,editorType:"dxColorView",editorOptions:{onContentReady:function(e){(0,r.default)(e.element).closest(".dx-box-item-content").css("flexBasis","auto")},focusStateEnabled:!1},label:{visible:!1}}]});o.done(function(n){t.quill.format(e,n[e],b)}),o.fail(function(){t.quill.focus()})}}},{key:"_getToolbarItem",value:function(e){var t=this,n={options:{onInitialized:function(n){e.formatName&&(n.component.$element().addClass("dx-htmleditor-toolbar-format"),n.component.$element().toggleClass("dx-"+e.formatName.toLowerCase()+"-format",!!e.formatName),t._toolbarWidgets.add(e.formatName,n.component))}}};return(0,d.extend)(!0,{location:"before",locateInMenu:"auto"},this._getDefaultConfig(e.formatName),e,n)}},{key:"_getDefaultItemsConfig",value:function(){return{header:{options:{displayExpr:function(e){return(0,c.isDefined)(e)&&!1!==e?w+" "+e:C}}},clear:{options:{disabled:!0}},undo:{options:{disabled:!0}},redo:{options:{disabled:!0}},separator:{template:function(e,t,n){(0,r.default)(n).addClass("dx-htmleditor-toolbar-separator")},menuItemTemplate:function(e,t,n){(0,r.default)(n).addClass("dx-htmleditor-toolbar-menu-separator")}}}}},{key:"_getDefaultConfig",value:function(e){return this._getDefaultItemsConfig()[e]}},{key:"updateHistoryWidgets",value:function(){var e=this.quill.history;if(e){var t=e.stack.undo,n=e.stack.redo;this._updateHistoryWidget(this._toolbarWidgets.getByName("undo"),t),this._updateHistoryWidget(this._toolbarWidgets.getByName("redo"),n)}}},{key:"_updateHistoryWidget",value:function(e,t){e&&e.option("disabled",!t.length)}},{key:"updateFormatWidgets",value:function(e){var t=this.quill.getSelection();if(t){var n=this.quill.getFormat(t),i=!(0,c.isEmptyObject)(n);for(var o in i&&!e||this._resetFormatWidgets(),n){var a=this._getFormatWidgetName(o,n),r=this._toolbarWidgets.getByName(a)||this._toolbarWidgets.getByName(o);r&&this._markActiveFormatWidget(o,r,n)}this._toggleClearFormatting(i)}}},{key:"_markActiveFormatWidget",value:function(e,t,n){this._isColorFormat(e)&&this._updateColorWidget(e,n[e]),"value"in t.option()?this._setValueSilent(t,n[e]):t.$element().addClass(v)}},{key:"_toggleClearFormatting",value:function(e){var t=this._toolbarWidgets.getByName("clear");t&&t.option("disabled",!e)}},{key:"_isColorFormat",value:function(e){return"color"===e||"background"===e}},{key:"_updateColorWidget",value:function(e,t){var n=this._toolbarWidgets.getByName(e);n&&n.$element().find(".dx-icon").css("borderBottomColor",t||"transparent")}},{key:"_getFormatWidgetName",value:function(e,t){var n=void 0;switch(e){case"align":n=e+(0,p.titleize)(t[e]);break;case"list":n=t[e]+(0,p.titleize)(e);break;case"code-block":n="codeBlock";break;case"script":n=t[e]+e;break;case"imageSrc":n="image";break;default:n=e}return n}},{key:"_setValueSilent",value:function(e,t){this._isReset=!0,e.option("value",t),this._isReset=!1}},{key:"_resetFormatWidgets",value:function(){var e=this;this._toolbarWidgets.each(function(t,n){e._resetFormatWidget(t,n)})}},{key:"_resetFormatWidget",value:function(e,t){t.$element().removeClass(v),this._isColorFormat(e)&&this._updateColorWidget(e),"clear"===e&&t.option("disabled",!0),"dxSelectBox"===t.NAME&&this._setValueSilent(t,null)}},{key:"addClickHandler",value:function(e,t){this._formatHandlers[e]=t;var n=this._toolbarWidgets.getByName(e);n&&"dxButton"===n.NAME&&n.option("onClick",t)}},{key:"_embedFormatIndex",get:function(){var e=this.quill.getSelection();return e?e.length?e.index:e.index-1:this.quill.getLength()}},{key:"_defaultPasteIndex",get:function(){var e=this.quill.getSelection();return e&&e.index||this.quill.getLength()}},{key:"_imageFormItems",get:function(){return[{dataField:"src",label:{text:(0,h.format)("dxHtmlEditor-dialogImageUrlField")}},{dataField:"width",label:{text:(0,h.format)("dxHtmlEditor-dialogImageWidthField")}},{dataField:"height",label:{text:(0,h.format)("dxHtmlEditor-dialogImageHeightField")}},{dataField:"alt",label:{text:(0,h.format)("dxHtmlEditor-dialogImageAltField")}}]}},{key:"toolbarConfig",get:function(){return{dataSource:this._prepareToolbarItems(),disabled:this.isInteractionDisabled,menuContainer:this._$toolbar}}},{key:"isInteractionDisabled",get:function(){return this._editorInstance.option("readOnly")||this._editorInstance.option("disabled")}}]),t}();t.default=k},function(e,t,n){var i=n(312),o=n(0).extend,a=n(238),r=i.inherit({NAME:"actionSheet",_getMenuItemTemplate:function(){return this._toolbar._getTemplate("actionSheetItem")},render:function(){this._hasVisibleMenuItems()&&this.callBase()},_menuWidgetClass:function(){return a},_menuContainer:function(){return this._toolbar.$element()},_widgetOptions:function(){return o({},this.callBase(),{target:this._$button,showTitle:!1})},_menuButtonOptions:function(){return o({},this.callBase(),{icon:"overflow"})},_toggleMenu:function(){this.callBase.apply(this,arguments),this._menu.toggle(this._menuShown),this._menuShown=!1}});e.exports=r},function(e,t,n){var i=n(0).extend,o=n(312),a=n(562),r=n(195),s=o.inherit({NAME:"dropDownMenu",render:function(){this._hasVisibleMenuItems()&&(this._renderMenuButtonContainer(),this._renderWidget())},renderMenuItems:function(){this._menu||this.render(),this.callBase(),this._menu&&!this._menu.option("items").length&&this._menu.close()},_menuWidgetClass:function(){return r},_widgetOptions:function(){var e=this;return i(this.callBase(),{deferRendering:!0,container:e._toolbar.option("menuContainer"),menuWidget:a,onOptionChanged:function(t){"items"===t.name&&e._updateMenuVisibility(t.value)},popupPosition:{at:"bottom right",my:"top right"}})},_updateMenuVisibility:function(e){var t=e||this._getMenuItems(),n=t.length&&this._hasVisibleMenuItems(t);this._toggleMenuVisibility(n)},_toggleMenuVisibility:function(e){this._menuContainer()&&this._menuContainer().toggleClass("dx-state-invisible",!e)},_menuContainer:function(){return this._$menuButtonContainer}});e.exports=s},function(e,t,n){var i=n(2),o=n(8),a=n(3).each,r=n(240),s="dx-toolbar-menu-action",l="dx-toolbar-menu-section",u="dx-toolbar-menu-last-section",c=r.inherit({_activeStateUnit:"."+s,_initMarkup:function(){this._renderSections(),this.callBase()},_getSections:function(){return this._itemContainer().children()},_itemElements:function(){return this._getSections().children(this._itemSelector())},_renderSections:function(){var e=this,t=this._itemContainer();a(["before","center","after","menu"],function(){var n="_$"+this+"Section",o=e[n];o||(e[n]=o=i("<div>").addClass(l)),o.appendTo(t)})},_renderItems:function(){this.callBase.apply(this,arguments),this._updateSections()},_updateSections:function(){var e=this.$element().find("."+l);e.removeClass(u),e.not(":empty").eq(-1).addClass(u)},_renderItem:function(e,t,n,i){var o,a=t.location||"menu",r=this["_$"+a+"Section"];return o=this.callBase(e,t,r,i),this._getItemTemplateName({itemData:t})&&o.addClass("dx-toolbar-menu-custom"),("menu"===a||"dxButton"===t.widget||t.isAction)&&o.addClass(s),"dxButton"===t.widget&&o.addClass("dx-toolbar-hidden-button"),o.addClass(t.cssClass),o},_getItemTemplateName:function(e){var t=this.callBase(e),n=e.itemData;return n&&n.menuItemTemplate||t},_itemClickHandler:function(e,t,n){i(e.target).closest("."+s).length&&this.callBase(e,t,n)},_clean:function(){this._getSections().empty(),this.callBase()}});o("dxToolbarMenu",c),e.exports=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function(){function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._collection=[]}return i(e,[{key:"clear",value:function(){this._collection=[]}},{key:"add",value:function(e,t){this._collection.push({name:e,instance:t})}},{key:"getByName",value:function(e){return(this._collection.find(function(t){var n=t.name;return e===n})||{}).instance}},{key:"each",value:function(e){this._collection.forEach(function(t){var n=t.name,i=t.instance;return i&&e(n,i)})}}]),e}();t.default=o},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n(57),r=i(n(5)),s=n(9),l=n(3),u=i(n(31)),c=n(7),d=(0,a.getQuill)().import("core/module"),h=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));i.editorInstance=n.editorInstance;var o=i.editorInstance.NAME;return r.default.on(i.quill.root,(0,s.addNamespace)("dragover",o),i._dragOverHandler.bind(i)),r.default.on(i.quill.root,(0,s.addNamespace)("drop",o),i._dropHandler.bind(i)),r.default.on(i.quill.root,(0,s.addNamespace)("paste",o),i._pasteHandler.bind(i)),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,d),o(t,[{key:"_dragOverHandler",value:function(e){u.default.msie&&e.preventDefault()}},{key:"_dropHandler",value:function(e){var t=e.originalEvent.dataTransfer,n=t&&t.files&&t.files.length;e.preventDefault(),n&&this._getImage(t.files,this._addImage.bind(this))}},{key:"_pasteHandler",value:function(e){var t=this,n=e.originalEvent.clipboardData;if(n){var i=n.items&&n.items.length;!n.getData("text/html")&&i&&this._getImage(n.items,function(e){u.default.mozilla||(u.default.msie?setTimeout(function(){t._addImage(e)}):t._addImage(e))})}}},{key:"_isImage",value:function(e){return!!e.type.match(/^image\/(a?png|bmp|gif|p?jpe?g|svg|vnd\.microsoft\.icon|webp)/i)}},{key:"_getImage",value:function(e,t){var n=this,i=(0,c.getWindow)();(0,l.each)(e,function(e,o){if(n._isImage(o)){var a=new i.FileReader;a.onload=function(e){var n=e.target;t(n.result)};var r=o.getAsFile?o.getAsFile():o;r instanceof i.Blob&&a.readAsDataURL(r)}})}},{key:"_addImage",value:function(e){var t=this.quill.getSelection(),n=t?t.index:this.quill.getLength();this.quill.insertEmbed(n,"extendedImage",e,"user")}}]),t}();t.default=h},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},r=n(57),s=i(n(2)),l=i(n(313)),u=i(n(566)),c=n(0),d="dx-variable-format",h="dx-format-active";(0,r.getQuill)().register({"formats/variable":u.default},!0);var p=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),o=e.getModule("toolbar");return o&&o.addClickHandler("variable",i.showPopup.bind(i)),e.keyboard.addBinding({key:"P",altKey:!0},i.showPopup.bind(i)),i._popup.on("shown",function(e){var t=(0,s.default)(e.component.option("position").of);t.hasClass(d)&&t.addClass(h)}),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l.default),o(t,[{key:"_getDefaultOptions",value:function(){var e=a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this);return(0,c.extend)(e,{escapeChar:""})}}]),o(t,[{key:"showPopup",value:function(e){var n=this.quill.getSelection(),i=n?n.index:this.quill.getLength();this.savePosition(i),this._resetPopupPosition(e,i),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"showPopup",this).call(this)}},{key:"_resetPopupPosition",value:function(e,t){if(e&&e.element)this._popup.option("position",{of:e.element,offset:{h:0,v:0},my:"top center",at:"bottom center",collision:"fit"});else{var n=this.quill.getBounds(t),i=this.quill.root.getBoundingClientRect();this._popup.option("position",{of:this.quill.root,offset:{h:n.left,v:n.bottom-i.height},my:"top center",at:"bottom left",collision:"fit flip"})}}},{key:"insertEmbedContent",value:function(e){var t=this.getPosition(),n=e.component.option("selectedItem"),i=(0,c.extend)({},{value:n,escapeChar:this.options.escapeChar});setTimeout(function(){this.quill.insertEmbed(t,"variable",i),this.quill.setSelection(t+1)}.bind(this))}}]),t}();t.default=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(57),a=n(4),r=n(0),s=(0,o.getQuill)().import("blots/embed"),l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s),i(t,null,[{key:"create",value:function(e){var n=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0}(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this),i=void 0,o=void 0,r=e.value;return Array.isArray(e.escapeChar)?(i=(0,a.ensureDefined)(e.escapeChar[0],""),o=(0,a.ensureDefined)(e.escapeChar[1],"")):i=o=e.escapeChar,n.innerText=i+r+o,n.dataset.varStartEscChar=i,n.dataset.varEndEscChar=o,n.dataset.varValue=e.value,n}},{key:"value",value:function(e){return(0,r.extend)({},{value:e.dataset.varValue,escapeChar:[e.dataset.varStartEscChar||"",e.dataset.varEndEscChar||""]})}}]),t}();l.blotName="variable",l.tagName="span",l.className="dx-variable",t.default=l},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=i(n(2)),r=i(n(5)),s=n(19),l=n(9),u=n(26),c=i(n(16)),d=i(n(174)),h="dxHtmlResizingModule",p=(0,l.addNamespace)("keydown",h),f=(0,l.addNamespace)("scroll",h),g=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.quill=t,this.editorInstance=n.editorInstance,this.allowedTargets=n.allowedTargets||["image"],this.enabled=!!n.enabled,this.enabled&&(this._attachEvents(),this._createResizeFrame())}return o(e,[{key:"_attachEvents",value:function(){r.default.on(this.quill.root,(0,l.addNamespace)(s.name,h),this._clickHandler.bind(this)),r.default.on(this.quill.root,f,this._scrollHandler.bind(this))}},{key:"_detachEvents",value:function(){r.default.off(this.quill.root,h)}},{key:"_clickHandler",value:function(e){if(this._isAllowedTarget(e.target)){if(this._$target===e.target)return;this._$target=e.target,this.updateFramePosition(),this.showFrame()}else this._$target&&this.hideFrame()}},{key:"_scrollHandler",value:function(e){this._$target&&this.updateFramePosition()}},{key:"_isAllowedTarget",value:function(e){return this._isImage(e)}},{key:"_isImage",value:function(e){return-1!==this.allowedTargets.indexOf("image")&&"IMG"===e.tagName.toUpperCase()}},{key:"showFrame",value:function(){this._$resizeFrame.show(),r.default.on(this.quill.root,p,this.hideFrame.bind(this))}},{key:"hideFrame",value:function(){this._$target=null,this._$resizeFrame.hide(),r.default.off(this.quill.root,p)}},{key:"updateFramePosition",value:function(){var e=this._$target,t=e.height,n=e.width,i=e.offsetTop,o=e.offsetLeft,a=this.quill.root,r=a.scrollTop,s=a.scrollLeft,l=this._getBorderWidth();this._$resizeFrame.css({height:t,width:n,padding:1,top:i-l-r-1,left:o-l-s-1}),(0,u.move)(this._$resizeFrame,{left:0,top:0})}},{key:"_getBorderWidth",value:function(){return parseInt(this._$resizeFrame.css("borderTopWidth"))}},{key:"_createResizeFrame",value:function(){var e=this;if(!this._$resizeFrame){var t=c.default.current().deviceType;this._$resizeFrame=(0,a.default)("<div>").addClass("dx-resize-frame").toggleClass("dx-touch-device","desktop"!==t).appendTo(this.editorInstance._getQuillContainer()).hide(),this.editorInstance._createComponent(this._$resizeFrame,d.default,{onResize:function(t){if(e._$target){var n=2*(1+e._getBorderWidth());(0,a.default)(e._$target).attr({height:t.height-n,width:t.width-n}),e.updateFramePosition()}}})}}},{key:"option",value:function(e,t){var n=this;return"mediaResizing"===e?void Object.keys(t).forEach(function(e){return n.option(e,t[e])}):void("enabled"===e?(this.enabled=t,t?this._attachEvents():this._detachEvents()):"allowedTargets"===e&&Array.isArray(t)&&(this.allowedTargets=t))}},{key:"clean",value:function(){this._detachEvents(),this._$resizeFrame.remove(),this._$resizeFrame=void 0}}]),e}();t.default=g},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},r=i(n(2)),s=n(20),l=n(1),u=n(0),c=n(10),d=n(278),h=i(n(313)),p=i(n(311)),f="silent",g="@",_=38,m=40,v=37,y=39,b=13,x=27,w=32,C=[v,y,33,34,35,36],k=[" ","\n"],S=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i._mentions={},i.editorInstance=n.editorInstance,n.mentions.forEach(function(e){var t=e.marker,n=e.template;if(t||(e.marker=t=g),n){var o=i.editorInstance._getTemplate(n);o&&p.default.addTemplate(t,o)}i._mentions[t]=(0,u.extend)({},i._getDefaultOptions(),e)}),i._attachKeyboardHandlers(),i.editorInstance.addCleanCallback(i.clean.bind(i)),i.quill.on("text-change",i.onTextChange.bind(i)),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,h.default),o(t,[{key:"_getDefaultOptions",value:function(){var e=a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this);return(0,u.extend)(e,{itemTemplate:"item",valueExpr:"this",displayExpr:"this",template:null,searchExpr:null,searchTimeout:500,minSearchLength:0})}}]),o(t,[{key:"_attachKeyboardHandlers",value:function(){var e=this;this.quill.keyboard.addBinding({key:_},this._arrowUpKeyHandler.bind(this)),this.quill.keyboard.addBinding({key:m},this._arrowDownKeyHandler.bind(this)),this.quill.keyboard.addBinding({key:b},this._selectItemHandler.bind(this));var t=this.quill.keyboard.bindings[b];t.unshift(t.pop()),this.quill.keyboard.addBinding({key:x},this._escapeKeyHandler.bind(this)),this.quill.keyboard.addBinding({key:w},this._selectItemHandler.bind(this)),this.quill.keyboard.addBinding({key:v,shiftKey:!0},this._ignoreKeyHandler.bind(this)),this.quill.keyboard.addBinding({key:y,shiftKey:!0},this._ignoreKeyHandler.bind(this)),C.forEach(function(t){e.quill.keyboard.addBinding({key:t},e._ignoreKeyHandler.bind(e))})}},{key:"_arrowUpKeyHandler",value:function(){if(this._isMentionActive){var e=(0,r.default)(this._list.option("focusedElement")).prev();e=e.length?e:this._activeListItems.last(),this._list.option("focusedElement",(0,c.getPublicElement)(e)),this._list.scrollToItem(e)}return!this._isMentionActive}},{key:"_arrowDownKeyHandler",value:function(){if(this._isMentionActive){var e=(0,r.default)(this._list.option("focusedElement")).next();e=e.length?e:this._activeListItems.first(),this._list.option("focusedElement",(0,c.getPublicElement)(e)),this._list.scrollToItem(e)}return!this._isMentionActive}},{key:"_ignoreKeyHandler",value:function(){return!this._isMentionActive}},{key:"_fitIntoRange",value:function(e,t,n){return e>n?t:e<t?n:e}},{key:"_selectItemHandler",value:function(){return this._isMentionActive&&this._list.selectItem(this._list.option("focusedElement")),!this._isMentionActive}},{key:"_escapeKeyHandler",value:function(){return this._isMentionActive&&this._popup.hide(),!this._isMentionActive}},{key:"renderList",value:function(e,n){this.compileGetters(this.options),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"renderList",this).call(this,e,n)}},{key:"compileGetters",value:function(e){var t=e.displayExpr,n=e.valueExpr;this._valueGetter=(0,s.compileGetter)(t),this._idGetter=(0,s.compileGetter)(n)}},{key:"_getListConfig",value:function(e){var n=this,i=a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getListConfig",this).call(this,e);return(0,u.extend)(i,{itemTemplate:this.options.itemTemplate,onContentReady:function(){n._hasSearch&&(n._popup.repaint(),n._focusFirstElement(),n._hasSearch=!1)}})}},{key:"insertEmbedContent",value:function(){var e=this._activeMentionConfig.marker.length,t=e+this._searchValue.length,n=this.getPosition(),i=Math.max(0,n-e),o=this._list.option("selectedItem"),a={value:this._valueGetter(o),id:this._idGetter(o),marker:this._activeMentionConfig.marker};setTimeout(function(){this.quill.deleteText(i,t,f),this.quill.insertEmbed(i,"mention",a),this.quill.insertText(i+1," ",f),this.quill.setSelection(i+2)}.bind(this))}},{key:"onTextChange",value:function(e,t,n){if("user"===n){var i=e.ops[e.ops.length-1];this._isMentionActive?this._processSearchValue(i)&&this._filterList(this._searchValue):this.checkMentionRequest(i,e.ops)}}},{key:"_processSearchValue",value:function(e){if("insert"in e)this._searchValue+=e.insert;else{if(!this._searchValue.length)return this._popup.hide(),!1;this._searchValue=this._searchValue.slice(0,-1)}return!0}},{key:"checkMentionRequest",value:function(e,t){var n=e.insert,i=this.quill.getSelection();n&&(0,l.isString)(n)&&i&&!this._isMarkerPartOfText(t[0].retain)&&(this._activeMentionConfig=this._mentions[n],this._activeMentionConfig&&(this._updateList(this._activeMentionConfig),this.savePosition(i.index),this._popup.option("position",this._popupPosition),this._searchValue="",this._popup.show()))}},{key:"_isMarkerPartOfText",value:function(e){return!(!e||-1!==k.indexOf(this._getCharByIndex(e-1)))}},{key:"_getCharByIndex",value:function(e){return this.quill.getContents(e,1).ops[0].insert}},{key:"_updateList",value:function(e){var t=e.dataSource,n=e.displayExpr,i=e.valueExpr,o=e.itemTemplate,a=e.searchExpr;this.compileGetters({displayExpr:n,valueExpr:i}),this._list.unselectAll(),this._list.option({dataSource:t,displayExpr:n,itemTemplate:o,searchExpr:a})}},{key:"_filterList",value:function(e){var t=this;if(this._isMinSearchLengthExceeded(e)){var n=this._activeMentionConfig.searchTimeout;n?(clearTimeout(this._searchTimer),this._searchTimer=setTimeout(function(){t._search(e)},n)):this._search(e)}else this._resetFilter()}},{key:"_isMinSearchLengthExceeded",value:function(e){return e.length>=this._activeMentionConfig.minSearchLength}},{key:"_resetFilter",value:function(){clearTimeout(this._searchTimer),this._search(null)}},{key:"_search",value:function(e){this._hasSearch=!0,this._list.option("searchValue",e)}},{key:"_focusFirstElement",value:function(){if(this._list){var e=this._activeListItems.first();this._list.option("focusedElement",(0,c.getPublicElement)(e)),this._list.scrollToItem(e)}}},{key:"_getPopupConfig",value:function(){var e=this;return(0,u.extend)(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getPopupConfig",this).call(this),{closeOnTargetScroll:!1,onShown:function(){e._isMentionActive=!0,e._hasSearch=!1,e._focusFirstElement()},onHidden:function(){e._list.unselectAll(),e._list.option("focusedElement",null),e._isMentionActive=!1,e._search(null)},focusStateEnabled:!1})}},{key:"clean",value:function(){var e=this;Object.keys(this._mentions).forEach(function(t){e._mentions[t].template&&p.default.removeTemplate(t)})}},{key:"_popupPosition",get:function(){var e=this.getPosition(),t=this.quill.getBounds(e?e-1:e),n=t.left,i=t.top,o=t.height,a=(0,r.default)(this.quill.root).offset(),s=a.left,l=a.top;return{of:(0,d.Event)("positionEvent",{pageX:s+n,pageY:l+i}),offset:{v:o},my:"top left",at:"top left",collision:{y:"flip",x:"flipfit"}}}},{key:"_activeListItems",get:function(){return this._list.itemElements().filter(":not(.dx-state-disabled)")}}]),t}();t.default=S},function(e,t,n){function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,o=!1,a=void 0;try{for(var r,s=e[Symbol.iterator]();!(i=(r=s.next()).done)&&(n.push(r.value),!t||n.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function(e){return e&&e.__esModule?e:{default:e}}(n(248)),s=n(57),l=n(1),u={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},c=function(){function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.TextBlot=(0,s.getQuill)().import("blots/text"),this.BreakBlot=(0,s.getQuill)().import("blots/break")}return a(e,[{key:"setQuillInstance",value:function(e){this.quillInstance=e}},{key:"toHtml",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.quillInstance.getLength()-e;if(this.quillInstance){var n=this.quillInstance.scroll.line(e),i=o(n,2),a=i[0],r=i[1];return a.length()>=r+t?this._convertHTML(a,r,t,!0):this._convertHTML(this.quillInstance.scroll,e,t,!0)}}},{key:"_convertHTML",value:function(e,t,n){var i=this,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if((0,l.isFunction)(e.html))return e.html(t,n);if(e instanceof this.TextBlot)return this._escapeText(e.value().slice(t,t+n));if(e.children){if("list"===e.statics.blotName)return this._convertList(e,t,n);var r=[];if(e.children.forEachAt(t,n,function(e,t,n){r.push(i._convertHTML(e,t,n))}),this._handleBreakLine(e.children,r),a||"list-item"===e.statics.blotName)return r.join("");var s=e.domNode,u=s.outerHTML,c=s.innerHTML,d=u.split(">"+c+"<"),h=o(d,2),p=h[0],f=h[1];return p+">"+r.join("")+"<"+f}return e.domNode.outerHTML}},{key:"_handleBreakLine",value:function(e,t){1===e.length&&e.head instanceof this.BreakBlot&&t.push("<br>")}},{key:"_convertList",value:function(e,t,n){var i=[],o=e.formats();return e.children.forEachAt(t,n,function(e,t,n){var a=e.formats();i.push({child:e,offset:t,length:n,indent:a.indent||0,type:o.list})}),this._getListMarkup(i,-1,[])}},{key:"_getListMarkup",value:function(e,t,n){if(0===e.length){var i=this._getListType(n.pop());return t<=0?"</li></"+i+">":this._processListMarkup([[],t-1,n],i)}var o=function(e){return Array.isArray(e)?e:Array.from(e)}(e),a=o[0],r=a.child,s=a.offset,l=a.length,u=a.indent,c=a.type,d=o.slice(1),h=this._getListType(c),p=[r,s,l],f=[d,u,n];if(u>t)return n.push(c),this._correctListMultiIndent(n,c,h,u-t-1)+this._processIndentListMarkup(p,f,h);if(u===t)return this._processIndentListMarkup(p,f);var g=this._getListType(n.pop());return this._processListMarkup([e,t-1,n],g)}},{key:"_correctListMultiIndent",value:function(e,t,n,i){for(var o="";i;)o+="<"+n+">",e.push(t),i--;return o}},{key:"_processListMarkup",value:function(e,t){return"</li></"+t+">"+this._getListMarkup.apply(this,i(e))}},{key:"_processIndentListMarkup",value:function(e,t){return"<"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/li")+"><li>"+this._convertHTML.apply(this,i(e))+this._getListMarkup.apply(this,i(t))}},{key:"_getListType",value:function(e){return"ordered"===e?"ol":"ul"}},{key:"_escapeText",value:function(e){return e.replace(/[&<>"']/g,function(e){return u[e]})}}]),e}();r.default.addConverter("delta",c),t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){var t=e.import("delta");return function(e,n){var i=n.ops.slice(),o=i[0];o.insert=o.insert.replace(/^\s+/,"");var a=o.insert.match(/^(\S+)\s+/);if(!a)return n;o.insert=o.insert.substring(a[0].length,o.insert.length);var r=function(e){var t=e.getAttribute("style").replace(/\n+/g,"").match(/level(\d+)/);return t?t[1]-1:0}(e);return function(e){var t=e[e.length-1];t.insert=t.insert.trim()}(i),i.push({insert:"\n",attributes:{list:function(e){return e[1].match(/\S+\./)?"ordered":"bullet"}(a),indent:r}}),new t(i)}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=i(n(2)),r=n(0),s=i(n(46)),l=i(n(140)),u=n(12),c=n(10),d=n(6),h=n(15),p=i(n(31)),f=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._editorInstance=t,this._popupUserConfig=n,this._renderPopup()}return o(e,[{key:"_renderPopup",value:function(){var e=this._editorInstance,t=(0,a.default)("<div>").addClass("dx-formdialog").appendTo(e.$element()),n=this._getPopupConfig();return e._createComponent(t,s.default,n)}},{key:"_escKeyHandler",value:function(){this._popup.hide()}},{key:"_addEscapeHandler",value:function(e){e.component.registerKeyHandler("escape",this._escKeyHandler.bind(this))}},{key:"_getPopupConfig",value:function(){var e=this;return(0,r.extend)({onInitialized:function(t){e._popup=t.component,e._popup.on("hiding",function(){e.deferred.reject()}),e._popup.on("shown",function(){e._form.focus()})},deferRendering:!1,focusStateEnabled:!1,showCloseButton:!1,contentTemplate:function(t){var n=(0,a.default)("<div>").appendTo(t);e._renderForm(n,{onEditorEnterKey:function(t){var n=t.component,i=t.dataField;e._updateEditorValue(n,i),e.hide(n.option("formData"))},customizeItem:function(t){"simple"===t.itemType&&(t.editorOptions=(0,r.extend)(!0,{},t.editorOptions,{onInitialized:e._addEscapeHandler.bind(e)}))}})},toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:{onInitialized:this._addEscapeHandler.bind(this),text:(0,h.format)("OK"),onClick:function(){e.hide(e._form.option("formData"))}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{onInitialized:this._addEscapeHandler.bind(this),text:(0,h.format)("Cancel"),onClick:function(){e._popup.hide()}}}]},this._popupUserConfig)}},{key:"_updateEditorValue",value:function(e,t){if(p.default.msie&&parseInt(p.default.version)<=11){var n=e.getEditor(t),i=(0,u.getActiveElement)();n.$element().find(i).length&&(0,c.resetActiveElement)()}}},{key:"_renderForm",value:function(e,t){e.addClass("dx-formdialog-form"),this._form=this._editorInstance._createComponent(e,l.default,t)}},{key:"show",value:function(e){if(!this._popup.option("visible")){this.deferred=new d.Deferred;var t=(0,r.extend)({},e);return this._form.option(t),this._popup.show(),this.deferred.promise()}}},{key:"hide",value:function(e){this.deferred.resolve(e),this._popup.hide()}},{key:"popupOption",value:function(e,t){return this._popup.option.apply(this._popup,arguments)}}]),e}();t.default=f},function(e,t,n){var i=n(2),o=n(5),a=n(7).getWindow(),r=n(44),s=n(4),l=n(10),u=n(3).each,c=n(0).extend,d=n(72),h=n(15),p=n(16),f=n(8),g=n(9),_=n(239),m=n(30),v=n(19),y=n(138),b=n(92),x=n(133),w=n(26),C="dx-lookup-field-wrapper",k={popupWidth:"width",popupHeight:"height"},S=_.inherit({_supportedKeys:function(){return c(this.callBase(),{space:function(e){e.preventDefault(),this._validatedOpening()},enter:function(){this._validatedOpening()}})},_getDefaultOptions:function(){return c(this.callBase(),{title:"",titleTemplate:"title",onTitleRendered:null,placeholder:h.format("Select"),searchPlaceholder:h.format("Search"),searchEnabled:!0,cleanSearchOnOpening:!0,fullScreen:!1,showCancelButton:!0,showClearButton:!1,clearButtonText:h.format("Clear"),applyButtonText:h.format("OK"),popupWidth:function(){return.8*i(a).width()},popupHeight:function(){return.8*i(a).height()},shading:!0,closeOnOutsideClick:!1,position:void 0,animation:{},pullRefreshEnabled:!1,useNativeScrolling:!0,pullingDownText:h.format("dxList-pullingDownText"),pulledDownText:h.format("dxList-pulledDownText"),refreshingText:h.format("dxList-refreshingText"),pageLoadingText:h.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:h.format("dxList-nextButtonText"),grouped:!1,groupTemplate:"group",usePopover:!1,showDropDownButton:!1,showPopupTitle:!0,focusStateEnabled:!1,_scrollToSelectedItemEnabled:!1})},_defaultOptionsRules:function(){var e=m.current();return this.callBase().concat([{device:function(){return!r.nativeScrolling},options:{useNativeScrolling:!1}},{device:function(e){return!p.isSimulator()&&"generic"===p.real().platform&&"generic"===e.platform},options:{usePopover:!0,popupHeight:"auto"}},{device:function(e){return"win"===e.platform&&e.phone&&e.version&&8===e.version[0]},options:{showCancelButton:!1,fullScreen:!0}},{device:function(e){return"win"===e.platform&&!e.phone&&e.version&&8===e.version[0]},options:{popupWidth:function(){return i(a).width()}}},{device:{platform:"ios",phone:!0},options:{fullScreen:!0}},{device:{platform:"ios",tablet:!0},options:{popupWidth:function(){return.4*Math.min(i(a).width(),i(a).height())},popupHeight:"auto",usePopover:!0,useInkRipple:!1}},{device:function(){return"desktop"===p.real().deviceType&&!p.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return m.isMaterial(e)},options:{usePopover:!1,closeOnOutsideClick:!0,popupWidth:function(){return i(this.element()).outerWidth()}.bind(this),popupHeight:function(){return this._getPopupHeight(4)}.bind(this),searchEnabled:!1,showCancelButton:!1,showPopupTitle:!1,position:{my:"left top",at:"left top",of:this.element()},_scrollToSelectedItemEnabled:!0}}])},_initTemplates:function(){this.callBase(),this._defaultTemplates.group=new x("group",this),this._defaultTemplates.title=new x("title",this)},_initMarkup:function(){this.$element().addClass("dx-lookup").toggleClass("dx-lookup-popover-mode",this.option("usePopover")),this._renderSubmitElement(),this.callBase()},_inputWrapper:function(){return this.$element().find("."+C)},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element())},_dataSourceOptions:function(){return c(this.callBase(),{paginate:!0})},_getSubmitElement:function(){return this._$submitElement},_fireContentReadyAction:s.noop,_popupWrapperClass:function(){return""},_renderInput:function(){var e=this._createAction(function(){this._toggleOpenState()}.bind(this));this._$field=i("<div>").addClass("dx-lookup-field"),o.on(this._$field,g.addNamespace(v.name,this.NAME),function(t){e({event:t})});var t=i("<div>").addClass("dx-lookup-arrow");this._$fieldWrapper=i("<div>").addClass(C).append(this._$field).append(t).appendTo(this.$element()),this.option("useInkRipple")&&this._renderInkRipple()},_renderInkRipple:function(){this._inkRipple=d.render()},_toggleOpenState:function(){this.callBase(),!this.option("fullScreen")&&this.option("_scrollToSelectedItemEnabled")&&this._setPopupPosition()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:this._inputWrapper(),event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_renderField:function(){var e=this._getTemplateByOption("fieldTemplate");return e&&this.option("fieldTemplate")?void this._renderFieldTemplate(e):(this._$field.text(this.option("displayValue")||this.option("placeholder")),void this.$element().toggleClass("dx-lookup-empty",!this.option("selectedItem")))},_renderFieldTemplate:function(e){this._$field.empty();var t=this._fieldRenderData();e.render({model:t,container:l.getPublicElement(this._$field)})},_fieldRenderData:function(){return this.option("selectedItem")},_popupShowingHandler:function(){this.callBase.apply(this,arguments),this.option("cleanSearchOnOpening")&&(this.option("searchEnabled")&&this._searchBox.option("value")&&(this._searchBox.option("value",""),this._searchCanceled()),this._list&&this._list.option("focusedElement",null)),this.option("fullScreen")&&this.option("_scrollToSelectedItemEnabled")&&(this._popup.option("position").of=i(a))},_scrollToSelectedItem:function(){var e=this._list.option("selectedIndex"),t=this._list.option("items"),n=t.length;0!==n&&(this._list.option("grouped")?this._list.scrollToItem({group:n-1,item:t[n-1].items.length-1}):this._list.scrollToItem(n-1),this._list.scrollToItem(e))},_setPopupPosition:function(){var e=this._list.option("selectedIndex"),t=this._popup._$wrapper.hasClass("dx-popover-flipped-vertical");if(-1!==e&&!t){var n=i(this._list.element()).find(".dx-list-item-selected");n.offset().top<0&&this._scrollToSelectedItem();var o=(n.height()-i(this.element()).height())/2,a=i(this._popup.content()).parent(),r=n.offset().top-a.offset().top,s=o;i(this.element()).offset().top>r?s+=r:this._scrollToSelectedItem();var l=w.locate(a);w.move(a,{top:l.top-s})}},_getPopupHeight:function(e){return this._list&&this._list.itemElements()?this._list.itemElements().height()*e+16:"auto"},_renderPopup:function(){this.option("usePopover")&&!this.option("fullScreen")?this._renderPopover():this.callBase(),this._$popup.addClass("dx-lookup-popup"),this._popup._wrapper().addClass("dx-lookup-popup-wrapper")},_popupOptionMap:function(e){return k[e]||e},_renderPopover:function(){this._popup=this._createComponent(this._$popup,y,c(this._popupConfig(),{showEvent:null,hideEvent:null,target:this.$element(),fullScreen:!1,shading:!1,closeOnTargetScroll:!0,width:this._isInitialOptionValue("popupWidth")?function(){return this.$element().outerWidth()}.bind(this):this._popupConfig().width})),this._popup.on({showing:this._popupShowingHandler.bind(this),shown:this._popupShownHandler.bind(this),hiding:this._popupHidingHandler.bind(this),hidden:this._popupHiddenHandler.bind(this)}),this._popup.option("onContentReady",this._contentReadyHandler.bind(this)),this._contentReadyHandler()},_popupHidingHandler:function(){this.callBase(),this.option("focusStateEnabled")&&this.focus()},_popupHiddenHandler:function(){this.callBase(),this.option("_scrollToSelectedItemEnabled")&&w.resetPosition(i(this._popup.content()).parent())},_preventFocusOnPopup:s.noop,_popupConfig:function(){var e=c(this.callBase(),{showTitle:this.option("showPopupTitle"),title:this.option("title"),titleTemplate:this._getTemplateByOption("titleTemplate"),onTitleRendered:this.option("onTitleRendered"),toolbarItems:this._getPopupToolbarItems(),fullScreen:this.option("fullScreen"),shading:this.option("shading"),closeOnTargetScroll:!1,closeOnOutsideClick:this.option("closeOnOutsideClick"),onPositioned:null});return delete e.animation,delete e.position,e.maxHeight=function(){return i(a).height()},u(["position","animation","popupWidth","popupHeight"],function(t,n){void 0!==this.option(n)&&(e[this._popupOptionMap(n)]=this.option(n))}.bind(this)),e},_getPopupToolbarItems:function(){var e="useButtons"===this.option("applyValueMode")?this._popupToolbarItemsConfig():[],t=this._getCancelButtonConfig();t&&e.push(t);var n=this._getClearButtonConfig();return n&&e.push(n),this._applyButtonsLocation(e)},_popupToolbarItemsConfig:function(){return[{shortcut:"done",options:{onClick:this._applyButtonHandler.bind(this),text:this.option("applyButtonText")}}]},_getCancelButtonConfig:function(){return this.option("showCancelButton")?{shortcut:"cancel",onClick:this._cancelButtonHandler.bind(this),options:{text:this.option("cancelButtonText")}}:null},_getClearButtonConfig:function(){return this.option("showClearButton")?{shortcut:"clear",onClick:this._resetValue.bind(this),options:{text:this.option("clearButtonText")}}:null},_applyButtonHandler:function(){this.option("value",this._valueGetter(this._currentSelectedItem())),this.callBase()},_cancelButtonHandler:function(){this._refreshSelected(),this.callBase()},_refreshPopupVisibility:function(){this.option("opened")&&this._updatePopupHeight()},_dimensionChanged:function(){this.option("usePopover")&&!this.option("popupWidth")&&this.option("popupWidth",this.$element().width()),this.callBase()},_updatePopupDimensions:function(){this._updatePopupHeight()},_input:function(){return this._$searchBox||this.callBase()},_renderPopupContent:function(){this.callBase(),this._renderSearch(),this._attachSearchChildProcessor()},_attachSearchChildProcessor:function(){this.option("searchEnabled")&&this._searchBox?(this._listKeyboardProcessor=this._searchBox._keyboardProcessor.attachChildProcessor(),this._setListOption("_keyboardProcessor",this._listKeyboardProcessor)):this._setListOption("_keyboardProcessor",void 0)},_renderSearch:function(){if(this._$searchWrapper&&this._$searchWrapper.remove(),delete this._$searchWrapper,this._$searchBox&&this._$searchBox.remove(),delete this._$searchBox,delete this._searchBox,this.option("searchEnabled")){var e=this._$searchWrapper=i("<div>").addClass("dx-lookup-search-wrapper"),t=this._$searchBox=i("<div>").addClass("dx-lookup-search").appendTo(e),n=p.current(),o=n.android&&n.version[0]>=5?"text":"search";this._searchBox=this._createComponent(t,b,{mode:o,showClearButton:!0,valueChangeEvent:this.option("valueChangeEvent"),onValueChanged:this._searchHandler.bind(this)}),this._registerSearchKeyHandlers(),e.insertBefore(this._$list)}this._renderSearchVisibility(),this._setSearchPlaceholder()},_selectListItemHandler:function(e){var t=i(this._list.option("focusedElement"));t.length&&(e.preventDefault(),this._selectListItem(e.itemData,t))},_registerSearchKeyHandlers:function(){this._searchBox.registerKeyHandler("escape",this.close.bind(this)),this._searchBox.registerKeyHandler("enter",this._selectListItemHandler.bind(this)),this._searchBox.registerKeyHandler("space",this._selectListItemHandler.bind(this)),this._searchBox.registerKeyHandler("end",s.noop),this._searchBox.registerKeyHandler("home",s.noop)},_renderSearchVisibility:function(){this._popup&&this._popup._wrapper().toggleClass("dx-lookup-popup-search",this.option("searchEnabled"))},_setSearchPlaceholder:function(){if(this._$searchBox){var e=this.option("minSearchLength"),t=this.option("searchPlaceholder");e&&t===h.format("Search")&&(t=h.getFormatter("dxLookup-searchPlaceholder")(e)),this._searchBox.option("placeholder",t)}},_setAriaTargetForList:s.noop,_renderList:function(){this.callBase(),this._list.registerKeyHandler("escape",function(){this.close()}.bind(this))},_listConfig:function(){return c(this.callBase(),{tabIndex:0,grouped:this.option("grouped"),groupTemplate:this._getTemplateByOption("groupTemplate"),pullRefreshEnabled:this.option("pullRefreshEnabled"),useNativeScrolling:this.option("useNativeScrolling"),pullingDownText:this.option("pullingDownText"),pulledDownText:this.option("pulledDownText"),refreshingText:this.option("refreshingText"),pageLoadingText:this.option("pageLoadingText"),onScroll:this.option("onScroll"),onPullRefresh:this.option("onPullRefresh"),onPageLoading:this.option("onPageLoading"),pageLoadMode:this.option("pageLoadMode"),nextButtonText:this.option("nextButtonText"),_keyboardProcessor:this._listKeyboardProcessor,onFocusIn:this._onFocusInHandler.bind(this),onSelectionChanged:this._getSelectionChangedHandler()})},_getSelectionChangedHandler:function(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):s.noop},_onFocusInHandler:function(){this._setListOption("_keyboardProcessor",void 0)},_listContentReadyHandler:function(){this.callBase.apply(this,arguments),this._refreshSelected()},_setFocusPolicy:function(){this.option("focusStateEnabled")&&(this.option("searchEnabled")?this._searchBox.focus():o.trigger(this._$list,"focus"))},_attachChildKeyboardEvents:s.noop,_focusTarget:function(){return this._$field},_keyboardEventBindingTarget:function(){return this._$field},_listItemClickHandler:function(e){this._saveValueChangeEvent(e.event),this._selectListItem(e.itemData,e.event.currentTarget)},_selectListItem:function(e,t){this._list.selectItem(t),"instantly"===this.option("applyValueMode")&&this._applyButtonHandler()},_currentSelectedItem:function(){return this.option("grouped")?this._list.option("selectedItems[0]").items[0]:this._list.option("selectedItems[0]")},_resetValue:function(e){this._saveValueChangeEvent(e.event),this.option("value",null),this.option("opened",!1)},_searchValue:function(){return this.option("searchEnabled")&&this._searchBox?this._searchBox.option("value"):""},_renderInputValue:function(){return this.callBase().always(function(){this._refreshSelected(),this._setSubmitValue()}.bind(this))},_setSubmitValue:function(){var e=this.option("value"),t="this"===this.option("valueExpr")?this._displayGetter(e):e;this._$submitElement.val(t)},_renderPlaceholder:function(){0!==this.$element().find("input").length&&this.callBase()},_clean:function(){this._$fieldWrapper.remove(),this._$searchBox=null,delete this._inkRipple,this.callBase()},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"searchEnabled":this._popup&&this._renderSearch(),this._attachSearchChildProcessor();break;case"searchPlaceholder":this._setSearchPlaceholder();break;case"minSearchLength":this._setSearchPlaceholder(),this.callBase.apply(this,arguments);break;case"title":case"titleTemplate":case"onTitleRendered":case"shading":case"animation":case"position":case"closeOnOutsideClick":this._setPopupOption(t);break;case"fullScreen":case"usePopover":case"placeholder":this._invalidate();break;case"clearButtonText":case"showClearButton":case"showCancelButton":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"applyValueMode":this.callBase.apply(this,arguments);break;case"popupWidth":this._setPopupOption("popupWidth","auto"===n?this.initialOption("popupWidth"):n);break;case"popupHeight":this._setPopupOption("popupHeight","auto"===n?this.initialOption("popupHeight"):n);break;case"pullRefreshEnabled":case"useNativeScrolling":case"pullingDownText":case"pulledDownText":case"refreshingText":case"pageLoadingText":case"onScroll":case"onPullRefresh":case"onPageLoading":case"nextButtonText":case"grouped":case"groupTemplate":this._setListOption(t);break;case"pageLoadMode":this._setListOption("pageLoadMode",this.option("pageLoadMode"));break;case"cleanSearchOnOpening":case"_scrollToSelectedItemEnabled":break;default:this.callBase.apply(this,arguments)}},focus:function(){this.option("opened")?this._setFocusPolicy():o.trigger(this._focusTarget(),"focus")},field:function(){return this._$field}});f("dxLookup",S),e.exports=S},function(e,t,n){var i=n(2),o=n(5),a=n(83),r=n(6).fromPromise,s=n(8),l=n(18),u=n(16),c=n(17),d=n(32),h=n(3).each,p=n(0).extend,f=n(13).inArray,g=n(1).isNumeric,_=n(9),m=n(24),v=n(13).wrapToArray,y={googleStatic:n(574),google:n(575),bing:n(576)},b="dx-map-shield",x=c.inherit({_getDefaultOptions:function(){return p(this.callBase(),{bounds:{northEast:null,southWest:null},center:{lat:0,lng:0},zoom:1,width:300,height:300,type:"roadmap",provider:"google",autoAdjust:!0,markers:[],markerIconSrc:null,onMarkerAdded:null,onMarkerRemoved:null,routes:[],onRouteAdded:null,onRouteRemoved:null,key:{bing:"",google:"",googleStatic:""},controls:!1,onReady:null,onUpdated:null,onClick:null})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===u.real().deviceType&&!u.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.$element().addClass("dx-map").addClass("dx-native-click"),this._lastAsyncAction=a.resolve(),this._checkOption("provider"),this._checkOption("markers"),this._checkOption("routes"),this._initContainer(),this._grabEvents(),this._rendered={}},_checkOption:function(e){var t=this.option(e);if("markers"===e&&!Array.isArray(t))throw l.Error("E1022");if("routes"===e&&!Array.isArray(t))throw l.Error("E1023")},_initContainer:function(){this._$container=i("<div>").addClass("dx-map-container"),this.$element().append(this._$container)},_grabEvents:function(){var e=_.addNamespace(m.down,this.NAME);o.on(this.$element(),e,this._cancelEvent.bind(this))},_cancelEvent:function(e){this._provider&&this._provider.isEventsCanceled(e)&&!this.option("disabled")&&e.stopPropagation()},_saveRendered:function(e){var t=this.option(e);this._rendered[e]=t.slice()},_render:function(){this.callBase(),this._renderShield(),this._saveRendered("markers"),this._saveRendered("routes"),this._provider=new(y[this.option("provider")])(this,this._$container),this._queueAsyncAction("render",this._rendered.markers,this._rendered.routes)},_renderShield:function(){var e;this.option("disabled")?(e=i("<div>").addClass(b),this.$element().append(e)):(e=this.$element().find("."+b)).remove()},_clean:function(){this._cleanFocusState(),this._provider&&this._provider.clean(),this._provider=null,this._lastAsyncAction=a.resolve(),this.setOptionSilent("bounds",{northEast:null,southWest:null}),delete this._suppressAsyncAction},_optionChanged:function(e){var t=e.name,n=this._optionChangeBag;switch(this._optionChangeBag=null,t){case"disabled":this._renderShield(),this.callBase(e);break;case"width":case"height":this.callBase(e),this._dimensionChanged();break;case"provider":this._suppressAsyncAction=!0,this._invalidate();break;case"key":l.log("W1001");break;case"bounds":this._queueAsyncAction("updateBounds");break;case"center":this._queueAsyncAction("updateCenter");break;case"zoom":this._queueAsyncAction("updateZoom");break;case"type":this._queueAsyncAction("updateMapType");break;case"controls":this._queueAsyncAction("updateControls",this._rendered.markers,this._rendered.routes);break;case"autoAdjust":this._queueAsyncAction("adjustViewport");break;case"markers":case"routes":this._checkOption(t);var i=this._rendered[t];this._saveRendered(t),this._queueAsyncAction("update"+d.titleize(t),n?n.removed:i,n?n.added:this._rendered[t]).then(function(e){n&&n.resolve(e)});break;case"markerIconSrc":this._queueAsyncAction("updateMarkers",this._rendered.markers,this._rendered.markers);break;case"onReady":case"onUpdated":case"onMarkerAdded":case"onMarkerRemoved":case"onRouteAdded":case"onRouteRemoved":case"onClick":break;default:this.callBase.apply(this,arguments)}},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._queueAsyncAction("updateDimensions")},_queueAsyncAction:function(e){var t=[].slice.call(arguments).slice(1),n=this._suppressAsyncAction;return this._lastAsyncAction=this._lastAsyncAction.then(function(){return!this._provider||n?a.resolve():this._provider[e].apply(this._provider,t).then(function(e){return(e=v(e))[0]&&this._triggerReadyAction(),e[1]}.bind(this))}.bind(this)),this._lastAsyncAction},_triggerReadyAction:function(){this._createActionByOption("onReady")({originalMap:this._provider.map()})},_triggerUpdateAction:function(){this._createActionByOption("onUpdated")()},setOptionSilent:function(e,t){this._setOptionSilent(e,t)},addMarker:function(e){return this._addFunction("markers",e)},removeMarker:function(e){return this._removeFunction("markers",e)},addRoute:function(e){return this._addFunction("routes",e)},removeRoute:function(e){return this._removeFunction("routes",e)},_addFunction:function(e,t){var n=this.option(e),i=v(t);return n.push.apply(n,i),this._partialArrayOptionChange(e,n,i,[])},_removeFunction:function(e,t){var n=this.option(e),i=v(t);return h(i,function(t,o){var a=g(o)?o:f(o,n);if(-1===a)throw l.log("E1021",d.titleize(e.substring(0,e.length-1)),o);var r=n.splice(a,1)[0];i.splice(t,1,r)}),this._partialArrayOptionChange(e,n,[],i)},_partialArrayOptionChange:function(e,t,n,i){return r(new a(function(o){this._optionChangeBag={resolve:o,added:n,removed:i},this.option(e,t)}.bind(this)).then(function(e){return e&&1===e.length?e[0]:e}),this)}});s("dxMap",x),e.exports=x},function(e,t,n){var i=n(3).each,o=n(5),a=n(83),r=n(314),s=n(90),l=n(19),u=r.inherit({_locationToString:function(e){var t=this._getLatLng(e);return t?t.lat+","+t.lng:e.toString().replace(/ /g,"+")},_renderImpl:function(){return this._updateMap()},updateDimensions:function(){return this._updateMap()},updateMapType:function(){return this._updateMap()},updateBounds:function(){return a.resolve()},updateCenter:function(){return this._updateMap()},updateZoom:function(){return this._updateMap()},updateControls:function(){return a.resolve()},addMarkers:function(e){var t=this;return this._updateMap().then(function(n){return i(e,function(e,n){t._fireMarkerAddedAction({options:n})}),n})},removeMarkers:function(e){var t=this;return this._updateMap().then(function(n){return i(e,function(e,n){t._fireMarkerRemovedAction({options:n})}),n})},adjustViewport:function(){return a.resolve()},addRoutes:function(e){var t=this;return this._updateMap().then(function(n){return i(e,function(e,n){t._fireRouteAddedAction({options:n})}),n})},removeRoutes:function(e){var t=this;return this._updateMap().then(function(n){return i(e,function(e,n){t._fireRouteRemovedAction({options:n})}),n})},clean:function(){return this._$container.css("backgroundImage","none"),o.off(this._$container,this._addEventNamespace(l.name)),a.resolve()},mapRendered:function(){return!0},_updateMap:function(){var e=this._keyOption("googleStatic"),t=this._$container,n=["sensor=false","size="+Math.round(t.width())+"x"+Math.round(t.height()),"maptype="+this._option("type"),"center="+this._locationToString(this._option("center")),"zoom="+this._option("zoom"),this._markersSubstring()];n.push.apply(n,this._routeSubstrings()),e&&n.push("key="+e);var i="https://maps.google.com/maps/api/staticmap?"+n.join("&");return this._$container.css("background",'url("'+i+'") no-repeat 0 0'),this._attachClickEvent(),a.resolve(!0)},_markersSubstring:function(){var e=this,t=[],n=this._option("markerIconSrc");return n&&t.push("icon:"+n),i(this._option("markers"),function(n,i){t.push(e._locationToString(i.location))}),"markers="+t.join("|")},_routeSubstrings:function(){var e=this,t=[];return i(this._option("routes"),function(n,o){var a=new s(o.color||e._defaultRouteColor()).toHex().replace("#","0x"),r=Math.round(255*(o.opacity||e._defaultRouteOpacity())).toString(16),l=o.weight||e._defaultRouteWeight(),u=[];i(o.locations,function(t,n){u.push(e._locationToString(n))}),t.push("path=color:"+a+r+"|weight:"+l+"|"+u.join("|"))}),t},_attachClickEvent:function(){var e=this,t=this._addEventNamespace(l.name);o.off(this._$container,t),o.on(this._$container,t,function(t){e._fireClickAction({event:t})})}});e.exports=u},function(e,t,n){var i,o,a=n(2),r=n(7).getWindow(),s=n(4).noop,l=n(16),u=n(83),c=n(0).extend,d=n(3).map,h=n(315),p=n(18),f=n(90),g=n(62),_=n(1).isDefined,m="_googleScriptReady",v=function(){return r.google&&r.google.maps},y=h.inherit({_mapType:function(e){var t={hybrid:google.maps.MapTypeId.HYBRID,roadmap:google.maps.MapTypeId.ROADMAP,satellite:google.maps.MapTypeId.SATELLITE};return t[e]||t.hybrid},_movementMode:function(e){var t={driving:google.maps.TravelMode.DRIVING,walking:google.maps.TravelMode.WALKING};return t[e]||t.driving},_resolveLocation:function(e){return new u(function(t){var n=this._getLatLng(e);n?t(new google.maps.LatLng(n.lat,n.lng)):this._geocodeLocation(e).then(function(e){t(e)})}.bind(this))},_geocodedLocations:{},_geocodeLocationImpl:function(e){return new u(function(t){_(e)?(new google.maps.Geocoder).geocode({address:e},function(e,n){n===google.maps.GeocoderStatus.OK?t(e[0].geometry.location):(p.log("W1006",n),t(new google.maps.LatLng(0,0)))}):t(new google.maps.LatLng(0,0))})},_normalizeLocation:function(e){return{lat:e.lat(),lng:e.lng()}},_normalizeLocationRect:function(e){return{northEast:this._normalizeLocation(e.getNorthEast()),southWest:this._normalizeLocation(e.getSouthWest())}},_loadImpl:function(){return new u(function(e){v()?e():(o||(o=this._loadMapScript()),o.then(function(){return v()?void e():void this._loadMapScript().then(e)}.bind(this)))}.bind(this)).then(function(){(i=function(e){this._position=e.position,this._offset=e.offset,this._$overlayContainer=a("<div>").css({position:"absolute",display:"none",cursor:"pointer"}).append(e.html),this.setMap(e.map)}).prototype=new google.maps.OverlayView,i.prototype.onAdd=function(){a(this.getPanes().overlayMouseTarget).append(this._$overlayContainer),this._clickListener=google.maps.event.addDomListener(this._$overlayContainer.get(0),"click",function(e){google.maps.event.trigger(this,"click"),e.preventDefault()}.bind(this)),this.draw()},i.prototype.onRemove=function(){google.maps.event.removeListener(this._clickListener),this._$overlayContainer.remove()},i.prototype.draw=function(){var e=this.getProjection().fromLatLngToDivPixel(this._position);this._$overlayContainer.css({left:e.x+this._offset.left,top:e.y+this._offset.top,display:"block"})}})},_loadMapScript:function(){return new u(function(e){var t=this._keyOption("google");r[m]=e,g.sendRequest({url:"https://maps.googleapis.com/maps/api/js?callback=_googleScriptReady"+(t?"&key="+t:""),dataType:"script"})}.bind(this)).then(function(){try{delete r[m]}catch(e){r[m]=void 0}})},_init:function(){return new u(function(e){this._resolveLocation(this._option("center")).then(function(t){var n=this._option("controls");this._map=new google.maps.Map(this._$container[0],{zoom:this._option("zoom"),center:t,disableDefaultUI:!n});var i=google.maps.event.addListener(this._map,"idle",function(){e(i)})}.bind(this))}.bind(this)).then(function(e){google.maps.event.removeListener(e)})},_attachHandlers:function(){this._boundsChangeListener=google.maps.event.addListener(this._map,"bounds_changed",this._boundsChangeHandler.bind(this)),this._clickListener=google.maps.event.addListener(this._map,"click",this._clickActionHandler.bind(this))},_boundsChangeHandler:function(){var e=this._map.getBounds();this._option("bounds",this._normalizeLocationRect(e));var t=this._map.getCenter();this._option("center",this._normalizeLocation(t)),this._preventZoomChangeEvent||this._option("zoom",this._map.getZoom())},_clickActionHandler:function(e){this._fireClickAction({location:this._normalizeLocation(e.latLng)})},updateDimensions:function(){var e=this._option("center");return google.maps.event.trigger(this._map,"resize"),this._option("center",e),this.updateCenter()},updateMapType:function(){return this._map.setMapTypeId(this._mapType(this._option("type"))),u.resolve()},updateBounds:function(){return u.all([this._resolveLocation(this._option("bounds.northEast")),this._resolveLocation(this._option("bounds.southWest"))]).then(function(e){var t=new google.maps.LatLngBounds;t.extend(e[0]),t.extend(e[1]),this._map.fitBounds(t)}.bind(this))},updateCenter:function(){return this._resolveLocation(this._option("center")).then(function(e){this._map.setCenter(e),this._option("center",this._normalizeLocation(e))}.bind(this))},updateZoom:function(){return this._map.setZoom(this._option("zoom")),u.resolve()},updateControls:function(){var e=this._option("controls");return this._map.setOptions({disableDefaultUI:!e}),u.resolve()},isEventsCanceled:function(e){var t=this._map&&this._map.get("gestureHandling");return!(a(e.target).closest(".gm-style-iw").length>0||"desktop"!==l.real().deviceType&&"cooperative"===t)&&this.callBase()},_renderMarker:function(e){return this._resolveLocation(e.location).then(function(t){var n;n=e.html?new i({map:this._map,position:t,html:e.html,offset:c({top:0,left:0},e.htmlOffset)}):new google.maps.Marker({position:t,map:this._map,icon:e.iconSrc||this._option("markerIconSrc")});var o,a=this._renderTooltip(n,e.tooltip);if(e.onClick||e.tooltip){var r=this._mapWidget._createAction(e.onClick||s),l=this._normalizeLocation(t);o=google.maps.event.addListener(n,"click",function(){r({location:l}),a&&a.open(this._map,n)}.bind(this))}return{location:t,marker:n,listener:o}}.bind(this))},_renderTooltip:function(e,t){if(t){t=this._parseTooltipOptions(t);var n=new google.maps.InfoWindow({content:t.text});return t.visible&&n.open(this._map,e),n}},_destroyMarker:function(e){e.marker.setMap(null),e.listener&&google.maps.event.removeListener(e.listener)},_renderRoute:function(e){return u.all(d(e.locations,function(e){return this._resolveLocation(e)}.bind(this))).then(function(t){return new u(function(n){var i={origin:t.shift(),destination:t.pop(),waypoints:d(t,function(e){return{location:e,stopover:!0}}),optimizeWaypoints:!0,travelMode:this._movementMode(e.mode)};(new google.maps.DirectionsService).route(i,function(t,i){if(i===google.maps.DirectionsStatus.OK){var o=new f(e.color||this._defaultRouteColor()).toHex(),a={directions:t,map:this._map,suppressMarkers:!0,preserveViewport:!0,polylineOptions:{strokeWeight:e.weight||this._defaultRouteWeight(),strokeOpacity:e.opacity||this._defaultRouteOpacity(),strokeColor:o}},r=new google.maps.DirectionsRenderer(a),s=t.routes[0].bounds;n({instance:r,northEast:s.getNorthEast(),southWest:s.getSouthWest()})}else p.log("W1006",i),n({instance:new google.maps.DirectionsRenderer({})})}.bind(this))}.bind(this))}.bind(this))},_destroyRoute:function(e){e.instance.setMap(null)},_fitBounds:function(){if(this._updateBounds(),this._bounds&&this._option("autoAdjust")){var e=this._map.getZoom();this._preventZoomChangeEvent=!0,this._map.fitBounds(this._bounds),this._boundsChangeHandler();var t=this._map.getZoom();e<t?this._map.setZoom(e):this._option("zoom",t),delete this._preventZoomChangeEvent}return u.resolve()},_extendBounds:function(e){this._bounds?this._bounds.extend(e):(this._bounds=new google.maps.LatLngBounds,this._bounds.extend(e))},clean:function(){return this._map&&(google.maps.event.removeListener(this._boundsChangeListener),google.maps.event.removeListener(this._clickListener),this._clearMarkers(),this._clearRoutes(),delete this._map,this._$container.empty()),u.resolve()}});e.exports=y},function(e,t,n){var i,o=n(4).noop,a=n(7).getWindow(),r=n(83),s=n(0).extend,l=n(18),u=n(3),c=n(315),d=n(90),h=n(62),p=n(1).isDefined,f="_bingScriptReady",g=function(){return a.Microsoft&&a.Microsoft.Maps},_=c.inherit({_mapType:function(e){var t={roadmap:Microsoft.Maps.MapTypeId.road,hybrid:Microsoft.Maps.MapTypeId.aerial,satellite:Microsoft.Maps.MapTypeId.aerial};return t[e]||t.road},_movementMode:function(e){var t={driving:Microsoft.Maps.Directions.RouteMode.driving,walking:Microsoft.Maps.Directions.RouteMode.walking};return t[e]||t.driving},_resolveLocation:function(e){return new r(function(t){var n=this._getLatLng(e);n?t(new Microsoft.Maps.Location(n.lat,n.lng)):this._geocodeLocation(e).then(function(e){t(e)})}.bind(this))},_geocodedLocations:{},_geocodeLocationImpl:function(e){return new r(function(t){if(p(e)){var n=new Microsoft.Maps.Search.SearchManager(this._map),i={where:e,count:1,callback:function(e){if(e.results[0]){var n=e.results[0].location;t(new Microsoft.Maps.Location(n.latitude,n.longitude))}else t(new Microsoft.Maps.Location(0,0))}};n.geocode(i)}else t(new Microsoft.Maps.Location(0,0))}.bind(this))},_normalizeLocation:function(e){return{lat:e.latitude,lng:e.longitude}},_normalizeLocationRect:function(e){var t=this._normalizeLocation(e.getNorthwest()),n=this._normalizeLocation(e.getSoutheast());return{northEast:{lat:t.lat,lng:n.lng},southWest:{lat:n.lat,lng:t.lng}}},_loadImpl:function(){return new r(function(e){g()?e():(i||(i=this._loadMapScript()),i.then(function(){return g()?void e():void this._loadMapScript().then(e)}.bind(this)))}.bind(this)).then(function(){return r.all([new r(function(e){Microsoft.Maps.loadModule("Microsoft.Maps.Search",{callback:e})}),new r(function(e){Microsoft.Maps.loadModule("Microsoft.Maps.Directions",{callback:e})})])})},_loadMapScript:function(){return new r(function(e){a[f]=e,h.sendRequest({url:"https://www.bing.com/api/maps/mapcontrol?callback=_bingScriptReady",dataType:"script"})}).then(function(){try{delete a[f]}catch(e){a[f]=void 0}})},_init:function(){return this._createMap(),r.resolve()},_createMap:function(){var e=this._option("controls");this._map=new Microsoft.Maps.Map(this._$container[0],{credentials:this._keyOption("bing")||"AhuxC0dQ1DBTNo8L-H9ToVMQStmizZzBJdraTSgCzDSWPsA1Qd8uIvFSflzxdaLH",zoom:this._option("zoom"),showDashboard:e,showMapTypeSelector:e,showScalebar:e})},_attachHandlers:function(){this._providerViewChangeHandler=Microsoft.Maps.Events.addHandler(this._map,"viewchange",this._viewChangeHandler.bind(this)),this._providerClickHandler=Microsoft.Maps.Events.addHandler(this._map,"click",this._clickActionHandler.bind(this))},_viewChangeHandler:function(){var e=this._map.getBounds();this._option("bounds",this._normalizeLocationRect(e));var t=this._map.getCenter();this._option("center",this._normalizeLocation(t)),this._preventZoomChangeEvent||this._option("zoom",this._map.getZoom())},_clickActionHandler:function(e){"map"===e.targetType&&this._fireClickAction({location:this._normalizeLocation(e.location)})},updateDimensions:function(){var e=this._$container;return this._map.setOptions({width:e.width(),height:e.height()}),r.resolve()},updateMapType:function(){var e=this._option("type"),t=Microsoft.Maps.LabelOverlay;return this._map.setView({animate:!1,mapTypeId:this._mapType(e),labelOverlay:"satellite"===e?t.hidden:t.visible}),r.resolve()},updateBounds:function(){return r.all([this._resolveLocation(this._option("bounds.northEast")),this._resolveLocation(this._option("bounds.southWest"))]).then(function(e){var t=new Microsoft.Maps.LocationRect.fromLocations(e[0],e[1]);this._map.setView({animate:!1,bounds:t})}.bind(this))},updateCenter:function(){return this._resolveLocation(this._option("center")).then(function(e){this._map.setView({animate:!1,center:e})}.bind(this))},updateZoom:function(){return this._map.setView({animate:!1,zoom:this._option("zoom")}),r.resolve()},updateControls:function(){return this.clean(),this.render.apply(this,arguments)},_renderMarker:function(e){return this._resolveLocation(e.location).then(function(t){var n={icon:e.iconSrc||this._option("markerIconSrc")};if(e.html){s(n,{htmlContent:e.html,width:null,height:null});var i=e.htmlOffset;i&&(n.anchor=new Microsoft.Maps.Point(-i.left,-i.top))}var a=new Microsoft.Maps.Pushpin(t,n);this._map.entities.push(a);var r,l=this._renderTooltip(t,e.tooltip);if(e.onClick||e.tooltip){var u=this._mapWidget._createAction(e.onClick||o),c=this._normalizeLocation(t);r=Microsoft.Maps.Events.addHandler(a,"click",function(){u({location:c}),l&&l.setOptions({visible:!0})})}return{location:t,marker:a,infobox:l,handler:r}}.bind(this))},_renderTooltip:function(e,t){if(t){t=this._parseTooltipOptions(t);var n=new Microsoft.Maps.Infobox(e,{description:t.text,offset:new Microsoft.Maps.Point(0,13),visible:t.visible});return n.setMap(this._map),n}},_destroyMarker:function(e){this._map.entities.remove(e.marker),e.infobox&&e.infobox.setMap(null),e.handler&&Microsoft.Maps.Events.removeHandler(e.handler)},_renderRoute:function(e){return r.all(u.map(e.locations,function(e){return this._resolveLocation(e)}.bind(this))).then(function(t){return new r(function(n){var i=new Microsoft.Maps.Directions.DirectionsManager(this._map),o=new d(e.color||this._defaultRouteColor()).toHex(),a=new Microsoft.Maps.Color.fromHex(o);a.a=255*(e.opacity||this._defaultRouteOpacity()),i.setRenderOptions({autoUpdateMapView:!1,displayRouteSelector:!1,waypointPushpinOptions:{visible:!1},drivingPolylineOptions:{strokeColor:a,strokeThickness:e.weight||this._defaultRouteWeight()},walkingPolylineOptions:{strokeColor:a,strokeThickness:e.weight||this._defaultRouteWeight()}}),i.setRequestOptions({routeMode:this._movementMode(e.mode),routeDraggable:!1}),u.each(t,function(e,t){var n=new Microsoft.Maps.Directions.Waypoint({location:t});i.addWaypoint(n)});var r=[];r.push(Microsoft.Maps.Events.addHandler(i,"directionsUpdated",function(e){for(;r.length;)Microsoft.Maps.Events.removeHandler(r.pop());var t=e.routeSummary[0];n({instance:i,northEast:t.northEast,southWest:t.southWest})})),r.push(Microsoft.Maps.Events.addHandler(i,"directionsError",function(e){for(;r.length;)Microsoft.Maps.Events.removeHandler(r.pop());var t="RouteResponseCode: "+e.responseCode+" - "+e.message;l.log("W1006",t),n({instance:i})})),i.calculateDirections()}.bind(this))}.bind(this))},_destroyRoute:function(e){e.instance.dispose()},_fitBounds:function(){if(this._updateBounds(),this._bounds&&this._option("autoAdjust")){var e=this._map.getZoom();this._preventZoomChangeEvent=!0;var t=this._bounds.clone();t.height=1.1*t.height,t.width=1.1*t.width,this._map.setView({animate:!1,bounds:t,zoom:e});var n=this._map.getZoom();e<n?this._map.setView({animate:!1,zoom:e}):this._option("zoom",n),delete this._preventZoomChangeEvent}return r.resolve()},_extendBounds:function(e){this._bounds?this._bounds=new Microsoft.Maps.LocationRect.fromLocations(this._bounds.getNorthwest(),this._bounds.getSoutheast(),e):this._bounds=new Microsoft.Maps.LocationRect(e,1e-16,1e-16)},clean:function(){return this._map&&(Microsoft.Maps.Events.removeHandler(this._providerViewChangeHandler),Microsoft.Maps.Events.removeHandler(this._providerClickHandler),this._clearMarkers(),this._clearRoutes(),this._map.dispose()),r.resolve()}});e.exports=_},function(e,t,n){var i=n(8),o=n(0).extend,a=n(578),r=n(197),s=r.inherit({_getDefaultOptions:function(){return o(this.callBase(),{scrollingEnabled:!1})},_render:function(){this.callBase(),this.$element().addClass("dx-navbar")},_postprocessRenderItem:function(e){this.callBase(e);var t=e.itemElement,n=e.itemData;t.addClass("dx-nav-item"),t.find(".dx-item-content").addClass("dx-nav-item-content"),n.icon||t.addClass("dx-navbar-text-item")}});s.ItemClass=a,i("dxNavBar",s),e.exports=s},function(e,t,n){var i=n(309),o="dx-tabs-item-badge",a=i.inherit({_renderBadge:function(e){this.callBase(e),this._$element.children("."+o).removeClass(o).addClass("dx-navbar-item-badge")}});e.exports=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},u=i(n(2)),c=n(0),d=i(n(16)),h=i(n(72)),p=i(n(8)),f=i(n(54)),g=i(n(242)),_=i(n(49)),m="dx-radiobutton",v="dx-radiobutton-icon",y=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,f.default),s(t,[{key:"_focusTarget",value:function(){return this.$element().parent()}},{key:"_getDefaultOptions",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this);return(0,c.extend)(e,g.default._dataExpressionDefaultOptions(),{_itemAttributes:{role:"radio"}})}},{key:"_initMarkup",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this.itemElements().addClass(m)}},{key:"_keyboardEventBindingTarget",value:function(){return this._focusTarget()}},{key:"_postprocessRenderItem",value:function(e){var n=e.itemData.html,i=e.itemElement;if(!n){var o=(0,u.default)("<div>").addClass(v);(0,u.default)("<div>").addClass("dx-radiobutton-icon-dot").appendTo(o);var a=(0,u.default)("<div>").append(o).addClass("dx-radio-value-container");(0,u.default)(i).prepend(a)}l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_postprocessRenderItem",this).call(this,e)}},{key:"_processSelectableItem",value:function(e,n){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_processSelectableItem",this).call(this,e,n),e.toggleClass("dx-radiobutton-checked",n).find("."+v).first().toggleClass("dx-radiobutton-icon-checked",n),this.setAria("checked",n,e)}},{key:"_refreshContent",value:function(){this._prepareContent(),this._renderContent()}},{key:"_supportedKeys",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_supportedKeys",this).call(this);return(0,c.extend)({},e,{enter:function(t){return t.preventDefault(),e.enter.apply(this,arguments)},space:function(t){return t.preventDefault(),e.space.apply(this,arguments)}})}},{key:"itemElements",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"itemElements",this).call(this);return e.not(e.find(this._itemSelector()))}}]),t}(),b=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,_.default),s(t,[{key:"_clean",value:function(){delete this._inkRipple,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_clean",this).call(this)}},{key:"_dataSourceOptions",value:function(){return{paginate:!1}}},{key:"_defaultOptionsRules",value:function(){return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_defaultOptionsRules",this).call(this).concat([{device:{tablet:!0},options:{layout:"horizontal"}},{device:function(){return"desktop"===d.default.real().deviceType&&!d.default.isSimulator()},options:{focusStateEnabled:!0}}])}},{key:"_fireContentReadyAction",value:function(e){e&&l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_fireContentReadyAction",this).call(this)}},{key:"_focusTarget",value:function(){return this.$element()}},{key:"_getAriaTarget",value:function(){return this.$element()}},{key:"_getDefaultOptions",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this);return(0,c.extend)(e,(0,c.extend)(g.default._dataExpressionDefaultOptions(),{hoverStateEnabled:!0,activeStateEnabled:!0,layout:"vertical",useInkRipple:!1}))}},{key:"_getItemValue",value:function(e){return this._valueGetter?this._valueGetter(e):e.text}},{key:"_getSubmitElement",value:function(){return this._$submitElement}},{key:"_init",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this._activeStateUnit="."+m,this._feedbackHideTimeout=100,this._initDataExpressions()}},{key:"_initMarkup",value:function(){this.$element().addClass("dx-radiogroup"),this._renderSubmitElement(),this.setAria("role","radiogroup"),this._renderRadios(),this.option("useInkRipple")&&this._renderInkRipple(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this)}},{key:"_itemClickHandler",value:function(e){var t=e.itemElement,n=e.event,i=e.itemData;if(this.itemElements().is(t)){var o=this._getItemValue(i);o!==this.option("value")&&(this._saveValueChangeEvent(n),this.option("value",o))}}},{key:"_optionChanged",value:function(e){var n=e.name,i=e.value;switch(this._dataExpressionOptionChanged(e),n){case"useInkRipple":this._invalidate();break;case"focusStateEnabled":case"accessKey":case"tabIndex":this._setCollectionWidgetOption(n,i);break;case"disabled":l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e),this._setCollectionWidgetOption(n,i);break;case"dataSource":this._setCollectionWidgetOption("dataSource",this._dataSource);break;case"valueExpr":this._setCollectionWidgetOption("keyExpr",this._getCollectionKeyExpr());break;case"value":this._setCollectionWidgetOption("selectedItemKeys",[i]),this._setSubmitValue(i),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e);break;case"items":case"itemTemplate":case"displayExpr":break;case"layout":this._renderLayout(),this._updateItemsSize();break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_render",value:function(){this._renderLayout(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_render",this).call(this),this._updateItemsSize()}},{key:"_renderInkRipple",value:function(){this._inkRipple=h.default.render({waveSizeCoefficient:3.3,useHoldAnimation:!1,isCentered:!0})}},{key:"_renderLayout",value:function(){var e=this.option("layout"),t=this.$element();t.toggleClass("dx-radiogroup-vertical","vertical"===e),t.toggleClass("dx-radiogroup-horizontal","horizontal"===e)}},{key:"_renderRadios",value:function(){var e=this,t=(0,u.default)("<div>").appendTo(this.$element());this._radios=this._createComponent(t,y,{displayExpr:this.option("displayExpr"),accessKey:this.option("accessKey"),dataSource:this._dataSource,focusStateEnabled:this.option("focusStateEnabled"),itemTemplate:this.option("itemTemplate"),keyExpr:this._getCollectionKeyExpr(),noDataText:"",onContentReady:function(){return e._fireContentReadyAction(!0)},onItemClick:this._itemClickHandler.bind(this),scrollingEnabled:!1,selectionByClick:!1,selectionMode:"single",selectedItemKeys:[this.option("value")],tabIndex:this.option("tabIndex")})}},{key:"_renderSubmitElement",value:function(){this._$submitElement=(0,u.default)("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue()}},{key:"_setOptionsByReference",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setOptionsByReference",this).call(this),(0,c.extend)(this._optionsByReference,{value:!0})}},{key:"_setSubmitValue",value:function(e){e=e||this.option("value");var t="this"===this.option("valueExpr")?this._displayGetter(e):e;this._$submitElement.val(t)}},{key:"_setCollectionWidgetOption",value:function(){this._setWidgetOption("_radios",arguments)}},{key:"_toggleActiveState",value:function(e,n,i){if(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_toggleActiveState",this).call(this,e,n,i),this._inkRipple){var o={element:e.find("."+v),event:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}}},{key:"_updateItemsSize",value:function(){if("horizontal"===this.option("layout"))this.itemElements().css("height","auto");else{var e=this.option("items").length;this.itemElements().css("height",100/e+"%")}}},{key:"focus",value:function(){this._radios&&this._radios.focus()}},{key:"itemElements",value:function(){return this._radios.itemElements()}}]),t}();b.include(g.default),(0,p.default)("dxRadioGroup",b),e.exports=b},function(e,t,n){var i=n(2),o=n(5),a=n(317),r=n(318),s=n(8),l=n(0).extend,u=n(4).applyServerDecimalSeparator,c=n(9),d=n(15),h="dx-rangeslider",p=h+"-start-handle",f=a.inherit({_supportedKeys:function(){var e=this.option("rtlEnabled"),t=this,n=function(e,n){t.option("start")===t.option("end")&&(t._capturedHandle=n,e.target=t._capturedHandle,o.trigger(t._capturedHandle,"focus"))},a=function(n,o,a){var r=i(n.target).hasClass(p)?"start":"end",s=t.option(r);o=t._valueStep(o),s+=a*(e?-o:o),t.option(r,s)},r=function(i,o){n(i,e?t._$handleStart:t._$handleEnd),a(i,o,1)},s=function(i,o){n(i,e?t._$handleEnd:t._$handleStart),a(i,o,-1)};return l(this.callBase(),{leftArrow:function(e){e.preventDefault(),e.stopPropagation(),s(e,this.option("step"))},rightArrow:function(e){e.preventDefault(),e.stopPropagation(),r(e,this.option("step"))},pageUp:function(e){e.preventDefault(),e.stopPropagation(),r(e,this.option("step")*this.option("keyStep"))},pageDown:function(e){e.preventDefault(),e.stopPropagation(),s(e,this.option("step")*this.option("keyStep"))},home:function(e){e.preventDefault(),e.stopPropagation();var t=i(e.target).hasClass(p),n=t?"start":"end",o=t?"min":"start",a=this.option(o);this.option(n,a)},end:function(e){e.preventDefault(),e.stopPropagation();var t=i(e.target).hasClass(p),n=t?"start":"end",o=t?"end":"max",a=this.option(o);this.option(n,a)}})},_getDefaultOptions:function(){return l(this.callBase(),{start:40,end:60,value:[40,60],startName:"",endName:""})},_renderSubmitElement:function(){var e=this.$element();this._$submitStartElement=i("<input>").attr("type","hidden").attr("name",this.option("startName")).appendTo(e),this._$submitEndElement=i("<input>").attr("type","hidden").attr("name",this.option("endName")).appendTo(e)},_initOptions:function(e){this.callBase(e);var t=this.initialOption("value"),n=this.option("value");n[0]===t[0]&&n[1]===t[1]?this.option("value",[this.option("start"),this.option("end")]):this.option({start:n[0],end:n[1]})},_initMarkup:function(){this.$element().addClass(h),this.callBase()},_renderContentImpl:function(){this._callHandlerMethod("repaint"),this.callBase()},_renderHandle:function(){this._$handleStart=this._renderHandleImpl(this.option("start"),this._$handleStart).addClass(p),this._$handleEnd=this._renderHandleImpl(this.option("end"),this._$handleEnd).addClass("dx-rangeslider-end-handle"),this._updateHandleAriaLabels()},_startHandler:function(e){var t=e.event,n=this._$range,i=n.width(),o=c.eventData(t).x-this._$bar.offset().left,a=n.position().left,r=n.position().left+i,s=(this.option("rtlEnabled")?-1:1)*((a+r)/2-o)>0;this._capturedHandle=s?this._$handleStart:this._$handleEnd,this.callBase(e)},_updateHandleAriaLabels:function(){this.setAria("label",d.getFormatter("dxRangeSlider-ariaFrom")(this.option("dxRangeSlider-ariaFrom")),this._$handleStart),this.setAria("label",d.getFormatter("dxRangeSlider-ariaTill")(this.option("dxRangeSlider-ariaTill")),this._$handleEnd)},_activeHandle:function(){return this._capturedHandle},_updateHandlePosition:function(e){var t=this.option("rtlEnabled")?-1:1,n=this.option("max"),i=this.option("min"),a=this._startOffset+t*e.event.offset/this._swipePixelRatio(),s=(a=a.toPrecision(12))*(n-i)+i;this._updateSelectedRangePosition(a,a),r.getInstance(this._activeHandle()).fitTooltipPosition,this._changeValueOnSwipe(a);var l,u=this.option("start"),c=this.option("end");u===c&&(l=s<u?this._$handleStart:this._$handleEnd,o.trigger(l,"focus"),l&&l!==this._capturedHandle&&(this._updateSelectedRangePosition((u-i)/(n-i),(c-i)/(n-i)),this._toggleActiveState(this._activeHandle(),!1),this._toggleActiveState(l,!0),this._capturedHandle=l),this._updateSelectedRangePosition(a,a),this._changeValueOnSwipe(a))},_updateSelectedRangePosition:function(e,t){var n=this.option("rtlEnabled"),i=this._capturedHandle===this._$handleStart&&n||this._capturedHandle===this._$handleEnd&&!n,o=i?"right":"left";n^i?this._$range.css(o,100-100*t+"%"):this._$range.css(o,100*e+"%")},_setValueOnSwipe:function(e){var t=this._capturedHandle===this._$handleStart?"start":"end",n=this.option("start"),i=this.option("end"),o=this.option("max"),a=this.option("min");n=Math.min(Math.max(n,a),o),i=Math.min(Math.max(i,a),o),"start"===t?n=e>i?i:e:i=e<n?n:e,this.option("value",[n,i])},_renderValue:function(){var e=this.option("start"),t=this.option("end"),n=this.option("min"),i=this.option("max"),o=this.option("rtlEnabled");e=Math.max(n,Math.min(e,i)),t=Math.max(e,Math.min(t,i)),this.option("start",e),this.option("end",t),this._$submitStartElement.val(u(e)),this._$submitEndElement.val(u(t));var a=i===n?0:(t-n)/(i-n),s=parseFloat((100*(i===n?0:(e-n)/(i-n))).toPrecision(12))+"%",l=parseFloat((100*(1-a)).toPrecision(12))+"%";!this._needPreventAnimation&&this._setRangeStyles({right:o?s:l,left:o?l:s}),r.getInstance(this._$handleStart).option("value",e),r.getInstance(this._$handleEnd).option("value",t)},_callHandlerMethod:function(e,t){r.getInstance(this._$handleStart)[e](t),r.getInstance(this._$handleEnd)[e](t)},_setValueOption:function(){var e=this.option("start"),t=this.option("end");this.option("value",[e,t])},_optionChanged:function(e){switch(e.name){case"value":this.option({start:e.value[0],end:e.value[1]});break;case"start":case"end":this._setValueOption(),this._renderValue();var t=this.option("start"),n=this.option("end");this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})({start:t,end:n,value:[t,n],event:this._valueChangeEventInstance}),this._saveValueChangeEvent(void 0);break;case"startName":this._$submitStartElement.attr("name",e.value);break;case"endName":this._$submitEndElement.attr("name",e.value);break;case"name":break;default:this.callBase(e)}}});s("dxRangeSlider",f),e.exports=f},function(e,t,n){var i=n(2),o=n(5),a=n(10),r=n(51),s=n(16),l=n(0).extend,u=n(4).applyServerDecimalSeparator,c=n(8),d=n(246),h=n(9),p=n(24),f=n(128),g=n(318),_=n(72),m=n(19),v=n(158),y=n(30),b=n(6).Deferred,x="dx-slider-label",w="dx-slider-label-position-",C="dx-slider-tooltip-position-",k="Validation",S=d.inherit({_activeStateUnit:".dx-slider-handle",_supportedKeys:function(){var e=this.option("rtlEnabled"),t=this,n=function(e,n){e=t._valueStep(e);var i=t.option("step"),o=t.option("value"),a=(o-t.option("min"))%i,r=n?o-e+(a?i-a:0):o+e-a,s=t.option("min"),l=t.option("max");return r<s?r=s:r>l&&(r=l),r},i=function(i){t.option("value",n(i,e))},o=function(i){t.option("value",n(i,!e))};return l(this.callBase(),{leftArrow:function(e){e.preventDefault(),e.stopPropagation(),o(this.option("step"))},rightArrow:function(e){e.preventDefault(),e.stopPropagation(),i(this.option("step"))},pageUp:function(e){e.preventDefault(),e.stopPropagation(),i(this.option("step")*this.option("keyStep"))},pageDown:function(e){e.preventDefault(),e.stopPropagation(),o(this.option("step")*this.option("keyStep"))},home:function(e){e.preventDefault(),e.stopPropagation();var t=this.option("min");this.option("value",t)},end:function(e){e.preventDefault(),e.stopPropagation();var t=this.option("max");this.option("value",t)}})},_getDefaultOptions:function(){return l(this.callBase(),{value:50,hoverStateEnabled:!0,activeStateEnabled:!0,step:1,showRange:!0,tooltip:{enabled:!1,format:function(e){return e},position:"top",showMode:"onHover"},label:{visible:!1,position:"bottom",format:function(e){return e}},keyStep:1,useInkRipple:!1,validationMessageOffset:y.isMaterial()?{h:18,v:0}:{h:7,v:4},focusStateEnabled:!0})},_toggleValidationMessage:function(e){this.option("isValid")||this.$element().toggleClass("dx-invalid-message-visible",e)},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===s.real().deviceType&&!s.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){var e=y.current();return y.isMaterial(e)},options:{useInkRipple:!0}}])},_initMarkup:function(){this.$element().addClass("dx-slider"),this._renderSubmitElement(),this.option("useInkRipple")&&this._renderInkRipple(),this.callBase(),this._renderLabels(),this._renderStartHandler(),this._renderAriaMinAndMax()},_attachFocusEvents:function(){this.callBase();var e=this.NAME+k,t=h.addNamespace("focusin",e),n=h.addNamespace("focusout",e),i=this._focusTarget();o.on(i,t,this._toggleValidationMessage.bind(this,!0)),o.on(i,n,this._toggleValidationMessage.bind(this,!1))},_detachFocusEvents:function(){this.callBase();var e=this._focusTarget();this._toggleValidationMessage(!1),o.off(e,this.NAME+k)},_render:function(){this.callBase(),this._repaintHandle()},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=_.render({waveSizeCoefficient:.7,isCentered:!0,wavesNumber:2,useHoldAnimation:!1})},_renderInkWave:function(e,t,n,i){if(this._inkRipple){var o={element:e,event:t,wave:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}},_visibilityChanged:function(){this.repaint()},_renderWrapper:function(){this.callBase(),this._$wrapper.addClass("dx-slider-wrapper"),this._createComponent(this._$wrapper,v,{elastic:!1,immediate:!0,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._itemWidthFunc.bind(this)})},_renderContainer:function(){this.callBase(),this._$bar.addClass("dx-slider-bar")},_renderRange:function(){this.callBase(),this._$range.addClass("dx-slider-range"),this._renderHandle(),this._renderRangeVisibility()},_renderRangeVisibility:function(){this._$range.toggleClass("dx-slider-range-visible",Boolean(this.option("showRange")))},_renderHandle:function(){this._$handle=this._renderHandleImpl(this.option("value"),this._$handle)},_renderHandleImpl:function(e,t){var n=t||i("<div>").appendTo(this._$range),o=this.option("tooltip.format"),a=this.option("tooltip.enabled"),r=this.option("tooltip.position");return this.$element().toggleClass(C+"bottom",a&&"bottom"===r).toggleClass(C+"top",a&&"top"===r),this._createComponent(n,g,{value:e,tooltipEnabled:a,tooltipPosition:r,tooltipFormat:o,tooltipShowMode:this.option("tooltip.showMode"),tooltipFitIn:this.$element()}),n},_renderAriaMinAndMax:function(){this.setAria({valuemin:this.option("min"),valuemax:this.option("max")},this._$handle)},_hoverStartHandler:function(e){g.getInstance(i(e.currentTarget)).updateTooltip()},_toggleActiveState:function(e,t){this.callBase(e,t),t&&g.getInstance(e).updateTooltip(),this._renderInkWave(e,null,!!t,1)},_toggleFocusClass:function(e,t){if(this.callBase(e,t),!this._disposed){var n=i(t||this._focusTarget());this._renderInkWave(n,null,e,0)}},_renderLabels:function(){if(this.$element().removeClass(w+"bottom").removeClass(w+"top"),this.option("label.visible")){var e=this.option("min"),t=this.option("max"),n=this.option("label.position"),o=this.option("label.format");this._$minLabel||(this._$minLabel=i("<div>").addClass(x).appendTo(this._$wrapper)),this._$minLabel.html(r.format(e,o)),this._$maxLabel||(this._$maxLabel=i("<div>").addClass(x).appendTo(this._$wrapper)),this._$maxLabel.html(r.format(t,o)),this.$element().addClass(w+n)}else this._$minLabel&&(this._$minLabel.remove(),delete this._$minLabel),this._$maxLabel&&(this._$maxLabel.remove(),delete this._$maxLabel)},_renderStartHandler:function(){var e=h.addNamespace(p.down,this.NAME),t=h.addNamespace(m.name,this.NAME),n=this._createAction(this._startHandler.bind(this)),i=this.$element();o.off(i,e),o.on(i,e,function(e){h.isMouseEvent(e)&&n({event:e})}),o.off(i,t),o.on(i,t,function(e){var t=this._activeHandle();t&&(o.trigger(t,"focusin"),o.trigger(t,"focus")),n({event:e})}.bind(this))},_itemWidthFunc:function(){return this._itemWidthRatio},_swipeStartHandler:function(e){var t,n,i=this.option("rtlEnabled");h.isTouchEvent(e.event)&&this._createAction(this._startHandler.bind(this))({event:e.event}),this._feedbackDeferred=new b,f.lock(this._feedbackDeferred),this._toggleActiveState(this._activeHandle(),this.option("activeStateEnabled")),this._startOffset=this._currentRatio,t=this._startOffset*this._swipePixelRatio(),n=(1-this._startOffset)*this._swipePixelRatio(),e.event.maxLeftOffset=i?n:t,e.event.maxRightOffset=i?t:n,this._itemWidthRatio=this.$element().width()/this._swipePixelRatio(),this._needPreventAnimation=!0},_swipeEndHandler:function(e){this._feedbackDeferred.resolve(),this._toggleActiveState(this._activeHandle(),!1);var t=this.option("rtlEnabled")?-1:1;delete this._needPreventAnimation,this._changeValueOnSwipe(this._startOffset+t*e.event.targetOffset/this._swipePixelRatio()),delete this._startOffset,this._renderValue()},_activeHandle:function(){return this._$handle},_swipeUpdateHandler:function(e){this._saveValueChangeEvent(e),this._updateHandlePosition(e)},_updateHandlePosition:function(e){var t=this.option("rtlEnabled")?-1:1,n=this._startOffset+t*e.event.offset/this._swipePixelRatio();this._$range.width(100*n+"%"),g.getInstance(this._activeHandle()).fitTooltipPosition,this._changeValueOnSwipe(n)},_swipePixelRatio:function(){var e=this.option("min");return(this.option("max")-e)/this._valueStep(this.option("step"))},_valueStep:function(e){return e&&!isNaN(e)||(e=1),0===(e=parseFloat(e.toFixed(5)))&&(e=1e-5),e},_changeValueOnSwipe:function(e){var t=this.option("min"),n=this.option("max"),i=this._valueStep(this.option("step")),o=t+e*(n-t);if(!(i<0))if(o===n||o===t)this._setValueOnSwipe(o);else{var a=(i+"").split(".")[1],r=(t+"").split(".")[1],s=Math.max(a&&a.length||0,r&&r.length||0),l=Math.round((o-t)/i);o=Number((l*i+t).toFixed(s)),this._setValueOnSwipe(Math.max(Math.min(o,n),t))}},_setValueOnSwipe:function(e){this.option("value",e)},_startHandler:function(e){var t=e.event;this._currentRatio=(h.eventData(t).x-this._$bar.offset().left)/this._$bar.width(),this.option("rtlEnabled")&&(this._currentRatio=1-this._currentRatio),this._saveValueChangeEvent(t),this._changeValueOnSwipe(this._currentRatio)},_renderValue:function(){this.callBase();var e=this.option("value");this._$submitElement.val(u(e)),g.getInstance(this._activeHandle()).option("value",e)},_setRangeStyles:function(e){e&&this._$range.css(e)},_callHandlerMethod:function(e,t){g.getInstance(this._$handle)[e](t)},_repaintHandle:function(){this._callHandlerMethod("repaint")},_fitTooltip:function(){this._callHandlerMethod("fitTooltipPosition")},_optionChanged:function(e){switch(e.name){case"visible":this.callBase(e),this._renderHandle(),this._repaintHandle(),a.triggerShownEvent(this.$element());break;case"min":case"max":this._renderValue(),this.callBase(e),this._renderLabels(),this._renderAriaMinAndMax(),this._fitTooltip();break;case"step":this._renderValue();break;case"keyStep":break;case"showRange":this._renderRangeVisibility();break;case"tooltip":this._renderHandle();break;case"label":this._renderLabels();break;case"useInkRipple":this._invalidate();break;default:this.callBase(e)}},_refresh:function(){this._toggleRTLDirection(this.option("rtlEnabled")),this._renderDimensions(),this._renderValue(),this._renderHandle(),this._repaintHandle()},_clean:function(){delete this._inkRipple,this.callBase()}});c("dxSlider",S),e.exports=S},function(e,t,n){e.exports=n(583)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(8)),a=n(0),r=i(n(42)),s=i(n(47)),l=i(n(17)),u=n(584),c=n(151),d=s.default.add,h=l.default.inherit({_getDefaultOptions:function(){return(0,a.extend)(this.callBase(),{icon:"",onClick:null,visible:!1,activeStateEnabled:!0,hoverStateEnabled:!0,animation:{show:{type:"pop",duration:200,easing:"cubic-bezier(0.4, 0, 0.2, 1)",from:{scale:0,opacity:0},to:{scale:1,opacity:1}},hide:{type:"pop",duration:200,easing:"cubic-bezier(0.4, 0, 0.2, 1)",from:{scale:1,opacity:1},to:{scale:0,opacity:0}}},id:new r.default})},_optionChanged:function(e){switch(e.name){case"onClick":case"icon":(0,u.initAction)(this);break;case"animation":case"id":break;default:this.callBase(e)}},_render:function(){var e=this;(0,c.getSwatchContainer)(this.$element())?(0,u.initAction)(this):d(function(){return(0,u.initAction)(e)})},_dispose:function(){(0,u.disposeAction)(this._options.id),this.callBase()}});(0,o.default)("dxSpeedDialAction",h),e.exports=h},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(27)),r=n(0),s=i(n(5)),l=i(n(18)),u=n(151),c=i(n(585)),d=i(n(30)),h="dx-state-invisible",p=null,f=c.default.inherit({_actionItems:[],_getDefaultOptions:function(){return(0,r.extend)(this.callBase(),(0,r.extend)({icon:"add",closeIcon:"close",position:{at:"right bottom",my:"right bottom",offset:{x:-16,y:-16}},maxSpeedDialActionCount:5,hint:"",actions:[],visible:!0,activeStateEnabled:!0,hoverStateEnabled:!0,indent:56,childIndent:40,callOverlayRenderShading:!0},(0,a.default)().floatingActionButtonConfig))},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return d.default.isMaterial()},options:{indent:72,childIndent:56}}])},_render:function(){this.$element().addClass("dx-fa-button-main"),this.callBase(),this._moveToContainer(),this._renderCloseIcon(),this._renderClick()},_renderCloseIcon:function(){this._$closeIcon=this._renderButtonIcon(this._$closeIcon,this._options.closeIcon,"dx-fa-button-icon-close"),this._$closeIcon.addClass(h)},_renderClick:function(){this._clickAction=1===this.option("actions").length?this._createActionByOption("onClick"):this._createAction(this._clickHandler),this._setClickAction()},_clickHandler:function(){var e=this;this._actionItems.forEach(function(t){t.toggle(),t.option("visible")&&t._$wrapper.css("position",e._$wrapper.css("position"))}),this._$icon.toggleClass(h),this._$closeIcon.toggleClass(h)},_renderActions:function(){var e=this,t=this.option("actions"),n=t.length-1;if(this._actionItems.length&&this._actionItems.forEach(function(e){e.dispose(),e.$element().remove()}),1!==t.length)for(var i=0;i<t.length;i++){var a=t[i],r=(0,o.default)("<div>").appendTo((0,u.getSwatchContainer)(a.$element()));s.default.off(r,"click"),s.default.on(r,"click",function(){e._clickHandler()});var l=this.initialOption("indent")+this.initialOption("childIndent")*i;a._options.position={of:this.$content(),at:"center",my:"center",offset:{x:0,y:-l}},a._options.animation.show.delay=30*i,a._options.animation.hide.delay=30*(n-i),this._actionItems.push(this._createComponent(r,c.default,a._options))}},_optionChanged:function(e){switch(e.name){case"actions":this._renderIcon(),this._renderCloseIcon(),this._renderClick(),this._renderActions();break;case"maxSpeedDialActionCount":this._renderActions();break;case"closeIcon":this._renderCloseIcon();break;case"position":break;default:this.callBase(e)}}});t.initAction=function(e){delete e._options.onInitializing;var t=!1;if(p){var n=p.option("actions");if(n.forEach(function(n){if(n._options.id===e._options.id)return t=!0,e}),t)1===n.length?p.option((0,r.extend)({},e._options,{actions:n,visible:!0,position:p._getDefaultOptions().position})):p.option({actions:n});else{if(n.length>=p.option("maxSpeedDialActionCount"))return e.dispose(),void l.default.log("W1014");n.push(e),p.option((0,r.extend)(p._getDefaultOptions(),{actions:n}))}}else{var i=(0,o.default)("<div>").appendTo((0,u.getSwatchContainer)(e.$element()));p=e._createComponent(i,f,(0,r.extend)({},e._options,{actions:[e],visible:!0}))}},t.disposeAction=function(e){if(p){var t=p.option("actions");t.length!==(t=t.filter(function(t){return t._options.id!==e})).length&&(t.length?1===t.length?p.option((0,r.extend)({},t[0]._options,{actions:t,visible:!0,position:p._getDefaultOptions().position})):p.option({actions:t}):(p.dispose(),p.$element().remove(),p=null))}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=n(0),r=i(n(5)),s=n(9),l=i(n(19)),u=n(60),c=i(n(58)),d=i(n(72)),h=i(n(30)),p=c.default.inherit({_getDefaultOptions:function(){return(0,a.extend)(this.callBase(),{shading:!1,useInkRipple:!1,callOverlayRenderShading:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return h.default.isMaterial()},options:{useInkRipple:!0}}])},_render:function(){this.$element().addClass("dx-fa-button"),this.callBase(),this._renderIcon(),this.option("useInkRipple")&&this._renderInkRipple(),this._renderClick()},_renderButtonIcon:function(e,t,n){!!e&&e.remove(),e=(0,o.default)("<div>").addClass(n);var i=(0,u.getImageContainer)(t);return e.append(i).appendTo(this.$content()),e},_renderIcon:function(){this._$icon=this._renderButtonIcon(this._$icon,this._options.icon,"dx-fa-button-icon")},_renderShading:function(){this._options.callOverlayRenderShading&&this.callBase()},_fixWrapperPosition:function(){var e=this._$wrapper,t=this._getContainer();e.css("position",this._isWindow(t)?"fixed":"absolute")},_setClickAction:function(){var e=this,t=(0,s.addNamespace)(l.default.name,this.NAME),n=this.$element().find(".dx-overlay-content");r.default.off(n,t),r.default.on(n,t,function(t){e._clickAction({event:t})})},_renderClick:function(){this._clickAction=this._createActionByOption("onClick"),this._setClickAction()},_renderInkRipple:function(){this._inkRipple=d.default.render()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:this.$content(),event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_optionChanged:function(e){switch(e.name){case"icon":this._renderIcon();break;case"onClick":this._renderClick();break;case"useInkRipple":this._render();break;default:this.callBase(e)}}});e.exports=p},function(e,t,n){var i=n(2),o=n(5),a=n(16),r=n(0).extend,s=n(72),l=n(8),u=n(49),c=n(9),d=n(128),h=n(30),p=n(39),f=n(15),g=n(19),_=n(158),m=n(6).Deferred,v="dx-switch",y=v+"-on-value",b=100,x=u.inherit({_supportedKeys:function(){var e=this.option("rtlEnabled"),t=function(e){e.preventDefault(),this._clickAction({event:e})},n=function(e,t){t.preventDefault(),t.stopPropagation(),this._animateValue(e)};return r(this.callBase(),{space:t,enter:t,leftArrow:n.bind(this,!!e),rightArrow:n.bind(this,!e)})},_getDefaultOptions:function(){return r(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,switchedOnText:this._getLocalizationMessage("On"),switchedOffText:this._getLocalizationMessage("Off"),value:!1,useInkRipple:!1,_animateHandle:!0})},_defaultOptionsRules:function(){var e=h.current();return this.callBase().concat([{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}},{device:function(t){return h.isIos7(e)},options:{_animateHandle:!1}}])},_setDeprecatedOptions:function(){this.callBase(),r(this._deprecatedOptions,{onText:{since:"18.2",alias:"switchedOnText"},offText:{since:"18.2",alias:"switchedOffText"}})},_getLocalizationMessage:function(e){var t=f.format("dxSwitch-switched"+e+"Text"),n=f.format("dxSwitch-"+e.toLowerCase()+"Text");return t||n},_feedbackHideTimeout:0,_animating:!1,_initMarkup:function(){this._renderContainers(),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().addClass(v).append(this._$switchWrapper),this._renderSubmitElement(),this._renderClick(),this.setAria("role","button"),this._renderSwipeable(),this.callBase(),this._renderSwitchInner(),this._renderLabels(),this._renderValue()},_getInnerOffset:function(e,t){return 100*((t-this._offsetDirection()*Number(!e))/2)+"%"},_getHandleOffset:function(e,t){return this.option("rtlEnabled")&&(e=!e),e?100*-t-100+"%":100*-t+"%"},_renderSwitchInner:function(){this._$switchInner=i("<div>").addClass("dx-switch-inner").appendTo(this._$switchContainer),this._$handle=i("<div>").addClass("dx-switch-handle").appendTo(this._$switchInner)},_renderLabels:function(){this._$labelOn=i("<div>").addClass("dx-switch-on").prependTo(this._$switchInner),this._$labelOff=i("<div>").addClass("dx-switch-off").appendTo(this._$switchInner),this._setLabelsText()},_renderContainers:function(){this._$switchContainer=i("<div>").addClass("dx-switch-container"),this._$switchWrapper=i("<div>").addClass("dx-switch-wrapper").append(this._$switchContainer)},_renderSwipeable:function(){this._createComponent(this.$element(),_,{elastic:!1,immediate:!0,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._getItemSizeFunc.bind(this)})},_getItemSizeFunc:function(){return this._$switchContainer.outerWidth(!0)-this._$handle.get(0).getBoundingClientRect().width},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=s.render({waveSizeCoefficient:1.7,isCentered:!0,useHoldAnimation:!1,wavesNumber:2})},_renderInkWave:function(e,t,n,i){if(this._inkRipple){var o={element:e,event:t,wave:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}},_updateFocusState:function(e,t){this.callBase.apply(this,arguments),this._renderInkWave(this._$handle,e,t,0)},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments),this._renderInkWave(this._$handle,n,t,1)},_offsetDirection:function(){return this.option("rtlEnabled")?-1:1},_renderPosition:function(e,t){var n=this._getInnerOffset(e,t),i=this._getHandleOffset(e,t);this.option("_animateHandle")&&(this._$switchInner.css("transform"," translateX("+n+")"),this._$handle.css("transform"," translateX("+i+")"))},_validateValue:function(){var e=this.option("value");"boolean"!=typeof e&&(this._options.value=!!e)},_renderClick:function(){var e=c.addNamespace(g.name,this.NAME),t=this.$element();this._clickAction=this._createAction(this._clickHandler.bind(this)),o.off(t,e),o.on(t,e,function(e){this._clickAction({event:e})}.bind(this))},_clickHandler:function(e){var t=e.event;this._saveValueChangeEvent(t),this._animating||this._swiping||this._animateValue(!this.option("value"))},_animateValue:function(e){var t=this.option("value"),n=e;if(t!==n){this._animating=!0;var i=this._getInnerOffset(t,0),o=this._getInnerOffset(n,0),a=this._getHandleOffset(t,0),r=this._getHandleOffset(n,0),s=this,l={},u={},c={},d={};l.transform=" translateX("+i+")",u.transform=" translateX("+o+")",c.transform=" translateX("+a+")",d.transform=" translateX("+r+")",this.$element().toggleClass(y,n),p.animate(this._$handle,{from:c,to:d,duration:b}),p.animate(this._$switchInner,{from:l,to:u,duration:b,complete:function(){s._animating=!1,s.option("value",n)}})}},_swipeStartHandler:function(e){var t=this.option("value"),n=this.option("rtlEnabled"),i=n?0:1,o=n?1:0;e.event.maxLeftOffset=t?i:o,e.event.maxRightOffset=t?o:i,this._swiping=!0,this._feedbackDeferred=new m,d.lock(this._feedbackDeferred),this._toggleActiveState(this.$element(),this.option("activeStateEnabled"))},_swipeUpdateHandler:function(e){this._renderPosition(this.option("value"),e.event.offset)},_swipeEndHandler:function(e){var t=this,n=this._offsetDirection(),i={},o={},a=this._getInnerOffset(t.option("value"),e.event.targetOffset),r=this._getHandleOffset(t.option("value"),e.event.targetOffset);i.transform=" translateX("+a+")",o.transform=" translateX("+r+")",p.animate(this._$handle,{to:o,duration:b}),p.animate(this._$switchInner,{to:i,duration:b,complete:function(){t._swiping=!1;var i=t.option("value")+n*e.event.targetOffset;t.option("value",Boolean(i)),t._feedbackDeferred.resolve(),t._toggleActiveState(t.$element(),!1)}})},_renderValue:function(){this._validateValue();var e=this.option("value");this._renderPosition(e,0),this.$element().toggleClass(y,e),this._$submitElement.val(e),this.setAria({pressed:e,label:e?this.option("switchedOnText"):this.option("switchedOffText")})},_setLabelsText:function(){this._$labelOn&&this._$labelOn.text(this.option("switchedOnText")),this._$labelOff&&this._$labelOff.text(this.option("switchedOffText"))},_visibilityChanged:function(e){e&&this.repaint()},_optionChanged:function(e){switch(e.name){case"useInkRipple":this._invalidate();break;case"width":delete this._marginBound,this._refresh();break;case"switchedOnText":case"switchedOffText":this._setLabelsText();break;case"value":this._renderValue(),this.callBase(e);break;case"_animateHandle":break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});l("dxSwitch",x),e.exports=x},function(e,t,n){var i=n(2),o=n(16),a=n(8),r=n(32),s=n(3),l=n(1).isDefined,u=n(0).extend,c=n(7),d=n(10).getPublicElement,h=n(162),p=n(54),f="dx-tile",g={horizontal:{itemMainRatio:"widthRatio",itemCrossRatio:"heightRatio",baseItemMainDimension:"baseItemWidth",baseItemCrossDimension:"baseItemHeight",mainDimension:"width",crossDimension:"height",mainPosition:"left",crossPosition:"top"},vertical:{itemMainRatio:"heightRatio",itemCrossRatio:"widthRatio",baseItemMainDimension:"baseItemHeight",baseItemCrossDimension:"baseItemWidth",mainDimension:"height",crossDimension:"width",mainPosition:"top",crossPosition:"left"}},_=p.inherit({_activeStateUnit:".dx-tile",_getDefaultOptions:function(){return u(this.callBase(),{items:null,direction:"horizontal",hoverStateEnabled:!0,showScrollbar:!1,height:500,baseItemWidth:100,baseItemHeight:100,itemMargin:20,activeStateEnabled:!0,indicateLoading:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===o.real().deviceType&&!o.isSimulator()},options:{focusStateEnabled:!0}}])},_itemClass:function(){return f},_itemDataKey:function(){return"dxTileData"},_itemContainer:function(){return this._$container},_init:function(){this.callBase(),this.$element().addClass("dx-tileview"),this._initScrollView()},_dataSourceLoadingChangedHandler:function(e){var t=this._scrollView;t&&t.startLoading&&(e&&this.option("indicateLoading")?t.startLoading():t.finishLoading())},_hideLoadingIfLoadIndicationOff:function(){this.option("indicateLoading")||this._dataSourceLoadingChangedHandler(!1)},_initScrollView:function(){this._scrollView=this._createComponent(this.$element(),h,{direction:this.option("direction"),scrollByContent:!0,useKeyboard:!1,showScrollbar:this.option("showScrollbar")}),this._$container=i(this._scrollView.content()),this._$container.addClass("dx-tileview-wrapper"),this._scrollView.option("onUpdated",this._renderGeometry.bind(this))},_initMarkup:function(){this.callBase(),this._cellsPerDimension=1,this._renderGeometry(),this._updateScrollView(),this._fireContentReadyAction()},_updateScrollView:function(){this._scrollView.option("direction",this.option("direction")),this._scrollView.update(),this._indicateLoadingIfAlreadyStarted()},_indicateLoadingIfAlreadyStarted:function(){this._isDataSourceLoading()&&this._dataSourceLoadingChangedHandler(!0)},_renderGeometry:function(){this._config=g[this.option("direction")];var e=this.option("items")||[],t=this._config,n=this.option("itemMargin"),i=Math.max.apply(Math,s.map(e||[],function(e){return Math.round(e[t.itemCrossRatio]||1)})),o=c.hasWindow()?this.$element()[t.crossDimension]():parseInt(this.$element().get(0).style[t.crossDimension]);this._cellsPerDimension=Math.floor(o/(this.option(t.baseItemCrossDimension)+n)),this._cellsPerDimension=Math.max(this._cellsPerDimension,i),this._cells=[],this._cells.push(new Array(this._cellsPerDimension)),this._arrangeItems(e),c.hasWindow()&&this._$container[t.mainDimension](this._cells.length*this.option(t.baseItemMainDimension)+(this._cells.length+1)*n)},_arrangeItems:function(e){var t=this._config,n=t.itemMainRatio,i=t.itemCrossRatio,o=t.mainPosition;this._itemsPositions=[],s.each(e,function(e,a){var r={};r[n]=a[n]||1,r[i]=a[i]||1,r.index=e,r[n]=r[n]<=0?0:Math.round(r[t.itemMainRatio]),r[i]=r[i]<=0?0:Math.round(r[t.itemCrossRatio]);var s=this._getItemPosition(r);-1===s[o]&&(s[o]=this._cells.push(new Array(this._cellsPerDimension))-1),this._occupyCells(r,s),this._arrangeItem(r,s),this._itemsPositions.push(s)}.bind(this))},_getItemPosition:function(e){var t=this._config,n=t.mainPosition,i=t.crossPosition,o={};o[n]=-1,o[i]=0;for(var a=0;a<this._cells.length;a++){for(var r=0;r<this._cellsPerDimension;r++)if(this._itemFit(a,r,e)){o[n]=a,o[i]=r;break}if(o[n]>-1)break}return o},_itemFit:function(e,t,n){var i=!0,o=this._config,a=n[o.itemMainRatio],r=n[o.itemCrossRatio];if(t+r>this._cellsPerDimension)return!1;for(var s=e;s<e+a;s++)for(var l=t;l<t+r;l++)if(this._cells.length-1<s)this._cells.push(new Array(this._cellsPerDimension));else if(void 0!==this._cells[s][l]){i=!1;break}return i},_occupyCells:function(e,t){for(var n=this._config,i=t[n.mainPosition],o=t[n.crossPosition],a=e[n.itemMainRatio],r=e[n.itemCrossRatio],s=i;s<i+a;s++)for(var l=o;l<o+r;l++)this._cells[s][l]=e.index},_arrangeItem:function(e,t){var n=this._config,i=t[n.mainPosition],o=t[n.crossPosition],a=e[n.itemMainRatio],r=e[n.itemCrossRatio],s=this.option(n.baseItemCrossDimension),l=this.option(n.baseItemMainDimension),u=this.option("itemMargin"),c={display:a<=0||r<=0?"none":""},d=a*l+(a-1)*u,h=r*s+(r-1)*u;if(c[n.mainDimension]=d<0?0:d,c[n.crossDimension]=h<0?0:h,c[n.mainPosition]=i*l+(i+1)*u,c[n.crossPosition]=o*s+(o+1)*u,this.option("rtlEnabled")){var p=this._$container.width(),f=this.option("baseItemWidth"),g=t.left,_=g*f,m=(f+u)*e.widthRatio,v=g*u;c.left=p-(_+m+v)}this._itemElements().eq(e.index).css(c)},_moveFocus:function(e){var t=this.option("rtlEnabled")?"right":"left",n=this.option("rtlEnabled")?"left":"right",o="horizontal"===this.option("direction"),a=this._cells,r=i(this.option("focusedElement")).index(),s=this._itemsPositions[r].left,u=this._itemsPositions[r].top,c=(o?a:a[0]).length,h=(o?a[0]:a).length,p=function(e,t){return o?a[e][t]:a[t][e]};switch(e){case"pageup":case"up":for(;u>0&&r===p(s,u);)u--;u<0&&(u=0);break;case"pagedown":case"down":for(;u<h&&r===p(s,u);)u++;u===h&&(u=h-1);break;case n:for(;s<c&&r===p(s,u);)s++;s===c&&(s=c-1);break;case t:for(;s>=0&&r===p(s,u);)s--;s<0&&(s=0);break;default:return void this.callBase.apply(this,arguments)}var f=p(s,u);if(l(f)){var g=this._itemElements().eq(f);this.option("focusedElement",d(g)),this._scrollToItem(g)}},_scrollToItem:function(e){if(e.length){var t=this._config,n="outer"+r.captionize(t.mainDimension),i=this.option("itemMargin"),o=e.position()[t.mainPosition],a=e[n](),s=o+a,l=this.scrollPosition(),u=this.$element()[n]();l<=o&&s<=l+u||(l>o?this._scrollView.scrollTo(o-i):this._scrollView.scrollTo(o+a-u+i))}},_optionChanged:function(e){switch(e.name){case"items":this.callBase(e),this._renderGeometry(),this._updateScrollView();break;case"showScrollbar":this._initScrollView();break;case"disabled":this._scrollView.option("disabled",e.value),this.callBase(e);break;case"baseItemWidth":case"baseItemHeight":case"itemMargin":this._renderGeometry();break;case"width":case"height":this.callBase(e),this._renderGeometry(),this._updateScrollView();break;case"direction":this._renderGeometry(),this._updateScrollView();break;case"indicateLoading":this._hideLoadingIfLoadIndicationOff();break;default:this.callBase(e)}},scrollPosition:function(){return this._scrollView.scrollOffset()[this._config.mainPosition]}});a("dxTileView",_),e.exports=_},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=i(n(589)),r=i(n(590)),s=n(7),l=i(n(18)),u=i(n(248)),c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t=(0,s.getWindow)(),n=t&&t.TurndownService||a.default,i=t&&t.showdown||r.default;if(!n)throw l.default.Error("E1041","Turndown");if(!i)throw l.default.Error("E1041","Showdown");this._html2Markdown=new n,this._markdown2Html=new i.Converter({simpleLineBreaks:!0,strikethrough:!0})}return o(e,[{key:"toMarkdown",value:function(e){return this._html2Markdown.turndown(e)}},{key:"toHtml",value:function(e){var t=this._markdown2Html.makeHtml(e);return t&&(t=t.replace(new RegExp("\\r?\\n","g"),"")),t}}]),e}();u.default.addConverter("markdown",c),t.default=c},function(e,t){e.exports=window.TurndownService},function(e,t){e.exports=window.showdown},function(e,t,n){var i=n(211),o=n(482);o.dxAccordion=n(250),o.dxContextMenu=n(105),o.dxDataGrid=n(595),o.dxTreeList=n(639),o.dxMenu=n(352),o.dxPivotGrid=n(672),o.dxPivotGridFieldChooser=n(684),i.PivotGridDataSource=n(200),i.XmlaStore=n(685),o.dxScheduler=n(686),o.dxTreeView=n(141),o.dxFilterBuilder=n(359),o.dxFileManager=n(719),o.dxDiagram=n(734)},function(e,t,n){var i=n(14),o=n(4),a=n(3),r=n(3).each,s=n(1),l=n(0).extend,u=n(18),c=n(241).getOperationBySearchMode,d=n(13).inArray,h=n(41),p=n(81),f=n(593),g="expanded",_="selected",m=i.inherit({ctor:function(e){this.options={},l(this.options,this._defaultOptions(),e),this.options.dataConverter.setDataAccessors(this.options.dataAccessors),this._selectedNodesKeys=[],this._expandedNodesKeys=[],this._dataStructure=[],this._createInternalDataStructure(),this.getTreeNodes()},setOption:function(e,t){this.options[e]=t,"recursiveSelection"===e&&this._updateSelection()},_defaultOptions:function(){return{dataAccessors:void 0,items:[],multipleSelection:!0,recursiveSelection:!1,recursiveExpansion:!1,rootValue:0,searchValue:"",dataType:"tree",searchMode:"contains",dataConverter:new f,onNodeChanged:o.noop,sort:null}},_createInternalDataStructure:function(){this._initialDataStructure=this.options.dataConverter.createPlainStructure(this.options.items,this.options.rootValue,this.options.dataType),this._dataStructure=this.options.searchValue.length?this.search(this.options.searchValue):this._initialDataStructure,this.options.dataConverter._dataStructure=this._dataStructure,this._updateSelection(),this._updateExpansion()},_updateSelection:function(){this.options.recursiveSelection&&(this._setChildrenSelection(),this._setParentSelection()),this._selectedNodesKeys=this._updateNodesKeysArray(_)},_updateExpansion:function(e){this.options.recursiveExpansion&&(e?this._updateOneBranch(e):this._setParentExpansion()),this._expandedNodesKeys=this._updateNodesKeysArray(g)},_updateNodesKeysArray:function(e){var t=this,n=[];return r(t._getDataBySelectionMode(),function(i,o){t._isNodeVisible(o)&&o.internalFields[e]&&(e===g||t.options.multipleSelection?n.push(o.internalFields.key):(n.length&&t.toggleSelection(n[0],!1,!0),n=[o.internalFields.key]))}),n},_getDataBySelectionMode:function(){return this.options.multipleSelection?this.getData():this.getFullData()},_isNodeVisible:function(e){return!1!==e.internalFields.item.visible},_getByKey:function(e,t){return e===this._dataStructure?this.options.dataConverter._getByKey(t):this.options.dataConverter.getByKey(e,t)},_setChildrenSelection:function(){var e=this;r(this._dataStructure,function(t,n){if(n.internalFields.childrenKeys.length){var i=n.internalFields.selected;!0===i&&e._toggleChildrenSelection(n,i)}})},_setParentSelection:function(){var e=this;r(this._dataStructure,function(t,n){e.options.dataConverter.getParentNode(n)&&n.internalFields.parentKey!==e.options.rootValue&&e._iterateParents(n,function(t){var n=e._calculateSelectedState(t);e._setFieldState(t,_,n)})})},_setParentExpansion:function(){var e=this;r(this._dataStructure,function(t,n){n.internalFields.expanded&&e._updateOneBranch(n.internalFields.key)})},_updateOneBranch:function(e){var t=this,n=this.getNodeByKey(e);t._iterateParents(n,function(e){t._setFieldState(e,g,!0)})},_iterateChildren:function(e,t,n){var i=this;r(e.internalFields.childrenKeys,function(e,o){var a=i.getNodeByKey(o);s.isFunction(n)&&n(a),a.internalFields.childrenKeys.length&&t&&i._iterateChildren(a,t,n)})},_iterateParents:function(e,t){if(e.internalFields.parentKey!==this.options.rootValue){var n=this.options.dataConverter.getParentNode(e);n&&(s.isFunction(t)&&t(n),n.internalFields.parentKey!==this.options.rootValue&&this._iterateParents(n,t))}},_calculateSelectedState:function(e){for(var t=e.internalFields.childrenKeys.length,n=0,i=0,o=!1,a=0;a<=t-1;a++){var r=this.getNodeByKey(e.internalFields.childrenKeys[a]),s=!1===r.internalFields.item.visible,l=r.internalFields.selected;s?i++:l?n++:void 0===l&&(n+=.5)}return n&&(o=n===t-i||void 0),o},_toggleChildrenSelection:function(e,t){var n=this;this._iterateChildren(e,!0,function(e){n._isNodeVisible(e)&&n._setFieldState(e,_,t)})},_setFieldState:function(e,t,n){e.internalFields[t]!==n&&(e.internalFields[t]=n,e.internalFields.publicNode&&(e.internalFields.publicNode[t]=n),this.options.dataAccessors.setters[t](e.internalFields.item,n),this.options.onNodeChanged(e))},_markChildren:function(e){var t=this;r(e,function(e,n){var i=t.getIndexByKey(n),o=t.getNodeByKey(n);t._dataStructure[i]=0,o.internalFields.childrenKeys.length&&t._markChildren(o.internalFields.childrenKeys)})},_removeNode:function(e){var t=this.getNodeByKey(e);this._dataStructure[this.getIndexByKey(e)]=0,this._markChildren(t.internalFields.childrenKeys);var n=this,i=0,o=l([],this._dataStructure);r(o,function(e,t){t||(n._dataStructure.splice(e-i,1),i++)})},_addNode:function(e){var t=this.options.dataConverter,n=t._convertItemToNode(e,this.options.dataAccessors.getters.parentKey(e));this._dataStructure=this._dataStructure.concat(n),this._initialDataStructure=this._initialDataStructure.concat(n),t._dataStructure=t._dataStructure.concat(n)},_updateFields:function(){this.options.dataConverter.updateChildrenKeys(),this._updateSelection(),this._updateExpansion()},getSelectedNodesKeys:function(){return this._selectedNodesKeys},getExpandedNodesKeys:function(){return this._expandedNodesKeys},getData:function(){return this._dataStructure},getFullData:function(){return this._initialDataStructure},getNodeByItem:function(e){var t=null;return r(this._dataStructure,function(n,i){if(i.internalFields.item===e)return t=i,!1}),t},getNodesByItems:function(e){var t=this,n=[];return r(e,function(e,i){var o=t.getNodeByItem(i);o&&n.push(o)}),n},getNodeByKey:function(e,t){return this._getByKey(t||this._getDataBySelectionMode(),e)},getTreeNodes:function(){return this.options.dataConverter.convertToPublicNodes(this.getRootNodes())},getItemsCount:function(){return this.options.dataConverter.getItemsCount()},getVisibleItemsCount:function(){return this.options.dataConverter.getVisibleItemsCount()},getPublicNode:function(e){return e.internalFields.publicNode},getRootNodes:function(){return this.getChildrenNodes(this.options.rootValue)},getChildrenNodes:function(e){return h(this._dataStructure).filter(["internalFields.parentKey",e]).toArray()},getIndexByKey:function(e){return this.options.dataConverter.getIndexByKey(e)},addItem:function(e){this._addNode(e),this._updateFields()},removeItem:function(e){this._removeNode(e),this._updateFields()},toggleSelection:function(e,t,n){var i=this._isSingleModeUnselect(t),o=this._getByKey(n||i?this._initialDataStructure:this._dataStructure,e);this._setFieldState(o,_,t),this.options.recursiveSelection&&!n&&(t?this._setChildrenSelection():this._toggleChildrenSelection(o,t),this._setParentSelection()),this._selectedNodesKeys=this._updateNodesKeysArray(_)},_isSingleModeUnselect:function(e){return!this.options.multipleSelection&&!e},toggleNodeDisabledState:function(e,t){var n=this.getNodeByKey(e);this._setFieldState(n,"disabled",t)},toggleSelectAll:function(e){if(s.isDefined(e)){var t=this,n=t._selectedNodesKeys[t._selectedNodesKeys.length-1],i=t._isSingleModeUnselect(e)?this._initialDataStructure:this._dataStructure;r(i,function(n,i){t._isNodeVisible(i)&&t._setFieldState(i,_,e)}),t._selectedNodesKeys=t._updateNodesKeysArray(_),!e&&t.options.selectionRequired&&t.toggleSelection(n,!0)}},isAllSelected:function(){return!!this.getSelectedNodesKeys().length&&(this.getSelectedNodesKeys().length===this.getVisibleItemsCount()||void 0)},toggleExpansion:function(e,t){var n=this.getNodeByKey(e);this._setFieldState(n,g,t),t&&this._updateExpansion(e),this._expandedNodesKeys=this._updateNodesKeysArray(g)},isFiltered:function(e){return!this.options.searchValue.length||!!this._filterDataStructure(this.options.searchValue,[e]).length},_createCriteria:function(e,t,n){var i=[];return Array.isArray(e)?(a.each(e,function(e,o){i.push([o,n,t],"or")}),i.pop(),i):[e,n,t]},_filterDataStructure:function(e,t){var n=this.options.searchExpr||this.options.dataAccessors.getters.display,i=c(this.options.searchMode),o=this._createCriteria(n,e,i);return t=t||this._initialDataStructure,h(t).filter(o).toArray()},search:function(e){var t=this,n=this._filterDataStructure(e),i=this.options.dataConverter;return function e(n,o){for(var a=n.length;o<a;){var r=n[o];if(r.internalFields.parentKey!==t.options.rootValue){var s=i.getParentNode(r);s?(s.internalFields.expanded||t._setFieldState(s,g,!0),d(s,n)>-1?o++:(n.splice(o,0,s),e(n,o))):(u.log("W1007",r.internalFields.parentKey,r.internalFields.key),o++)}else o++}}(n,0),this.options.sort&&(n=p.queryByOptions(h(n),{sort:this.options.sort}).toArray()),i._indexByKey={},r(n,function(e,t){t.internalFields.childrenKeys=[],i._indexByKey[t.internalFields.key]=e}),i._dataStructure=n,i.setChildrenKeys(),i._dataStructure}});e.exports=m},function(e,t,n){var i=n(14),o=n(0).extend,a=n(18),r=n(3).each,s=n(1),l=i.inherit({ctor:function(){this._dataStructure=[],this._itemsCount=0,this._visibleItemsCount=0},_indexByKey:{},_convertItemsToNodes:function(e,t){var n=this;r(e,function(e,i){var o=s.isDefined(t)?t:n._getParentId(i),a=n._convertItemToNode(i,o);n._dataStructure.push(a),n._checkForDuplicateId(a.internalFields.key),n._indexByKey[a.internalFields.key]=n._dataStructure.length-1,n._itemHasChildren(i)&&n._convertItemsToNodes(n._dataAccessors.getters.items(i),a.internalFields.key)})},_checkForDuplicateId:function(e){if(s.isDefined(this._indexByKey[e]))throw a.Error("E1040",e)},_getParentId:function(e){return"plain"===this._dataType?this._dataAccessors.getters.parentKey(e):void 0},_itemHasChildren:function(e){if("plain"!==this._dataType){var t=this._dataAccessors.getters.items(e);return t&&t.length}},_getUniqueKey:function(e){var t=this._dataAccessors.getters.key,n=t(e);return t&&(n||0===n)&&s.isPrimitive(n)?n:this.getItemsCount()},_convertItemToNode:function(e,t){this._itemsCount++,!1!==e.visible&&this._visibleItemsCount++;var n=this,i={internalFields:{disabled:n._dataAccessors.getters.disabled(e,{defaultValue:!1}),expanded:n._dataAccessors.getters.expanded(e,{defaultValue:!1}),selected:n._dataAccessors.getters.selected(e,{defaultValue:!1}),key:n._getUniqueKey(e),parentKey:s.isDefined(t)?t:n._rootValue,item:n._makeObjectFromPrimitive(e),childrenKeys:[]}};return o(i,e),delete i.items,i},setChildrenKeys:function(){var e=this;r(this._dataStructure,function(t,n){if(n.internalFields.parentKey!==e._rootValue){var i=e.getParentNode(n);i&&i.internalFields.childrenKeys.push(n.internalFields.key)}})},_makeObjectFromPrimitive:function(e){if(s.isPrimitive(e)){var t=e;e={},this._dataAccessors.setters.key(e,t)}return e},_convertToPublicNode:function(e,t){if(!e)return null;var n={text:this._dataAccessors.getters.display(e),key:e.internalFields.key,selected:e.internalFields.selected,expanded:e.internalFields.expanded,disabled:e.internalFields.disabled,parent:t||null,itemData:e.internalFields.item,children:[],items:[]};return n.parent&&(n.parent.children.push(n),n.parent.items.push(n)),n},convertToPublicNodes:function(e,t){if(!e.length)return[];var n=this,i=[];return r(e,function(e,o){o=s.isPrimitive(o)?n._getByKey(o):o;var a=n._convertToPublicNode(o,t);a.children=n.convertToPublicNodes(o.internalFields.childrenKeys,a),i.push(a),o.internalFields.publicNode=a}),i},setDataAccessors:function(e){this._dataAccessors=e},_getByKey:function(e){return this._dataStructure[this.getIndexByKey(e)]||null},getParentNode:function(e){return this._getByKey(e.internalFields.parentKey)},getByKey:function(e,t){var n=null,i=this,o=function e(t,o){return r(t,function(t,a){var r=a.internalFields&&a.internalFields.key||i._dataAccessors.getters.key(a),s=i._dataAccessors.getters.items(a);return r.toString()===o.toString()?(n=a,!1):void(s&&e(s,o))}),n};return o(e,t)},getItemsCount:function(){return this._itemsCount},getVisibleItemsCount:function(){return this._visibleItemsCount},updateIndexByKey:function(){var e=this;this._indexByKey={},r(this._dataStructure,function(t,n){e._checkForDuplicateId(n.internalFields.key),e._indexByKey[n.internalFields.key]=t})},updateChildrenKeys:function(){this._indexByKey={},this.removeChildrenKeys(),this.updateIndexByKey(),this.setChildrenKeys()},removeChildrenKeys:function(){this._indexByKey={},r(this._dataStructure,function(e,t){t.internalFields.childrenKeys=[]})},getIndexByKey:function(e){return this._indexByKey[e]},createPlainStructure:function(e,t,n){return this._itemsCount=0,this._visibleItemsCount=0,this._rootValue=t,this._dataType=n,this._indexByKey={},this._convertItemsToNodes(e),this.setChildrenKeys(),this._dataStructure}});e.exports=l},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(3).map,r=n(186).inherit({_getPlainItems:function(){return a(this._collectionWidget.option("items"),function e(t){return t.items?[t].concat(a(t.items,e)):t})},_stringifyItem:function(e){var t=this;return JSON.stringify(e,function(e,n){return"template"===e?t._getTemplateString(n):n})},_getTemplateString:function(e){return"object"===(void 0===e?"undefined":i(e))?o(e).text():e.toString()}});e.exports=r},function(e,t,n){e.exports=n(325)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(8)),r=i(n(4)),s=i(n(1)),l=n(3),u=n(0),c=n(82),d=i(n(31)),h=i(n(17)),p=n(23),f=i(p),g=i(n(30));n(597),n(598),n(599),n(600),n(601),n(602),n(603),n(604),n(605);f.default.registerModulesOrder(["stateStoring","columns","selection","editorFactory","columnChooser","grouping","editing","masterDetail","validating","adaptivity","data","virtualScrolling","columnHeaders","filterRow","headerPanel","headerFilter","sorting","search","rows","pager","columnsResizingReordering","contextMenu","keyboardNavigation","errorHandling","summary","columnFixing","export","gridView"]);var _=h.default.inherit({_activeStateUnit:".dx-row",_getDefaultOptions:function(){var e=this.callBase();return(0,l.each)(f.default.modules,function(){s.default.isFunction(this.defaultOptions)&&(0,u.extend)(!0,e,this.defaultOptions())}),e},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{showRowLines:!0}},{device:function(){return g.default.isMaterial()},options:{showRowLines:!0,showColumnLines:!1,headerFilter:{height:315},editing:{useIcons:!0}}},{device:function(){return d.default.webkit},options:{loadingTimeout:30,loadPanel:{animation:{show:{easing:"cubic-bezier(1, 0, 1, 0)",duration:500,from:{opacity:0},to:{opacity:1}}}}}},{device:function(e){return"desktop"!==e.deviceType},options:{grouping:{expandMode:"rowClick"}}}])},_init:function(){var e=this;e.callBase(),f.default.processModules(e,f.default),(0,p.callModuleItemsMethod)(e,"init")},_clean:r.default.noop,_optionChanged:function(e){(0,p.callModuleItemsMethod)(this,"optionChanged",[e]),e.handled||this.callBase(e)},_dimensionChanged:function(){this.updateDimensions(!0)},_visibilityChanged:function(e){e&&this.updateDimensions()},_initMarkup:function(){this.callBase.apply(this,arguments),this.getView("gridView").render(this.$element())},_renderContentImpl:function(){this.getView("gridView").update()},_renderContent:function(){var e=this;r.default.deferRender(function(){e._renderContentImpl()})},_getTemplate:function(e){var t=e;return s.default.isString(t)&&"#"===t[0]&&(t=(0,o.default)(e),c.logger.warn("Specifying grid templates with the jQuery selector name is now deprecated. Use the DOM Node or the jQuery object that references this selector instead.")),this.callBase(t)},_dispose:function(){this.callBase(),(0,p.callModuleItemsMethod)(this,"dispose")},isReady:function(){return this.getController("data").isReady()},beginUpdate:function(){this.callBase(),(0,p.callModuleItemsMethod)(this,"beginUpdate")},endUpdate:function(){(0,p.callModuleItemsMethod)(this,"endUpdate"),this.callBase()},getController:function(e){return this._controllers[e]},getView:function(e){return this._views[e]},focus:function(e){this.getController("keyboardNavigation").focus(e)}});_.registerModule=f.default.registerModule.bind(f.default),(0,a.default)("dxDataGrid",_),e.exports=_},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(326));t.ColumnHeadersView=a.default.views.columnHeadersView,o.default.registerModule("columnHeaders",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(328)),r=n(0);o.default.registerModule("columns",{defaultOptions:function(){return(0,r.extend)(!0,{},a.default.defaultOptions(),{commonColumnSettings:{allowExporting:!0}})},controllers:a.default.controllers})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(18)),r=i(n(198)),s=i(n(330));t.DataController=s.default.controllers.data.inherit({_getDataSourceAdapter:function(){return r.default},_getSpecificDataSourceOption:function(){var e=this.option("dataSource");return e&&!Array.isArray(e)&&this.option("keyExpr")&&a.default.log("W1011"),this.callBase()}}),o.default.registerModule("data",{defaultOptions:s.default.defaultOptions,controllers:{data:t.DataController}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(331));o.default.registerModule("sorting",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(333));t.RowsView=a.default.views.rowsView,o.default.registerModule("rows",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(334));o.default.registerModule("contextMenu",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(335));o.default.registerModule("errorHandling",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(336));o.default.registerModule("gridView",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(337));t.HeaderPanel=a.default.views.headerPanel,o.default.registerModule("headerPanel",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(338));o.default.registerModule("stateStoring",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(340));o.default.registerModule("selection",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(341));t.ColumnChooserController=a.default.controllers.columnChooser,t.ColumnChooserView=a.default.views.columnChooserView,o.default.registerModule("columnChooser",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=n(12),r=n(5),s=i(n(15)),l=i(n(19)),u=i(n(4)),c=i(n(7)),d=n(1),h=n(0),p=n(3),f=n(10),g=i(n(104)),_=i(n(324)),m=n(9),v=n(24),y=i(n(154)),b=i(n(39)),x=i(n(94)),w=i(n(93)),C=n(6),k="dx-treeview",S=k+"-node",I=S+"-container",T=S+"-loadindicator",D=S+"-container-opened",E=S+"-is-leaf",A=k+"-item",O=k+"-toggle-item-visibility",P=k+"-toggle-item-visibility-opened",B=k+"-select-all-item",M="dx-state-disabled",R="dxTreeView_expand",F="data-item-id",V=_.default.inherit({_supportedKeys:function(e){var t=this,n=function(e){var n=(0,o.default)(t.option("focusedElement"));n.length&&(e.target=n,e.currentTarget=n,t._itemClickHandler(e,n.children("."+A)),t._getEventNameByOption(t.option("expandEvent"))===(0,m.addNamespace)(l.default.name,R)&&t._expandEventHandler(e))},i=function(e){e.preventDefault(),t._changeCheckBoxState((0,o.default)(t.option("focusedElement")))},a=function(e,t){if(this.option("expandAllEnabled")){t.preventDefault();var n=(0,o.default)(this.option("focusedElement"));if(n.length){var i=this._getItemData(n.find("."+A));this._toggleExpandedNestedItems([i],e)}}};return(0,h.extend)(this.callBase(),{enter:this._showCheckboxes()?i:n,space:this._showCheckboxes()?i:n,asterisk:a.bind(this,!0),minus:a.bind(this,!1)})},_changeCheckBoxState:function(e){var t=this._getCheckBoxInstance(e),n=t.option("value");t.option("disabled")||this._updateItemSelection(!n,e.find("."+A).get(0),!0,e)},_toggleExpandedNestedItems:function(e,t){if(e)for(var n=0,i=e.length;n<i;n++){var o=e[n],a=this._dataAdapter.getNodeByItem(o);this._toggleExpandedState(a,t),this._toggleExpandedNestedItems(o.items,t)}},_getNodeElement:function(e,t){var n=u.default.normalizeKey(e.internalFields.key);return t?(t.$nodeByKey||(t.$nodeByKey={},this.$element().find("."+S).each(function(){var e=(0,o.default)(this),n=e.attr(F);t.$nodeByKey[n]=e})),t.$nodeByKey[n]||(0,o.default)()):this.$element().find("["+F+"='"+n+"']")},_activeStateUnit:"."+A,_widgetClass:function(){return k},_getDefaultOptions:function(){return(0,h.extend)(this.callBase(),{animationEnabled:!0,dataStructure:"tree",deferRendering:!0,expandAllEnabled:!1,hasItemsExpr:"hasItems",selectNodesRecursive:!0,expandNodesRecursive:!0,showCheckBoxesMode:"none",selectAllText:s.default.format("dxList-selectAll"),onItemSelectionChanged:null,onItemExpanded:null,onItemCollapsed:null,scrollDirection:"vertical",virtualModeEnabled:!1,rootValue:0,focusStateEnabled:!1,selectionMode:"multiple",expandEvent:"dblclick",selectByClick:!1,createChildren:null,onSelectAllValueChanged:null})},_initSelectedItems:u.default.noop,_syncSelectionOptions:u.default.asyncNoop,_fireSelectionChanged:function(){var e=this._selectionChangePromise;(0,C.when)(e).done(function(){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})()}.bind(this))},_createSelectAllValueChangedAction:function(){this._selectAllValueChangedAction=this._createActionByOption("onSelectAllValueChanged",{excludeValidators:["disabled","readOnly"]})},_fireSelectAllValueChanged:function(e){this._selectAllValueChangedAction({value:e})},_checkBoxModeChange:function(e,t){if("none"!==t&&"none"!==e){var n=this._$selectAllItem&&this._$selectAllItem.length;switch(e){case"selectAll":!n&&this._renderSelectAllItem();break;case"normal":n&&(this._$selectAllItem.remove(),delete this._$selectAllItem)}}else this.repaint()},_removeSelection:function(){var e=this;(0,p.each)(this._dataAdapter.getFullData(),function(t,n){e._hasChildren(n)&&e._dataAdapter.toggleSelection(n.internalFields.key,!1,!0)})},_optionChanged:function(e){var t=e.name,n=e.value,i=e.previousValue;switch(t){case"selectAllText":this._$selectAllItem&&this._$selectAllItem.dxCheckBox("instance").option("text",n);break;case"showCheckBoxesMode":this._checkBoxModeChange(n,i);break;case"scrollDirection":this._scrollableContainer.option("direction",n);break;case"items":delete this._$selectAllItem,this.callBase(e);break;case"dataSource":this.callBase(e),this._initDataAdapter(),this._filter={};break;case"hasItemsExpr":this._initAccessors(),this.repaint();break;case"expandEvent":this._initExpandEvent();break;case"deferRendering":case"dataStructure":case"rootValue":case"createChildren":case"expandNodesRecursive":case"onItemSelectionChanged":case"onItemExpanded":case"onItemCollapsed":case"expandAllEnabled":case"animationEnabled":case"virtualModeEnabled":case"selectByClick":break;case"selectionMode":this._initDataAdapter(),this.callBase(e);break;case"onSelectAllValueChanged":this._createSelectAllValueChangedAction();break;case"selectNodesRecursive":this._dataAdapter.setOption("recursiveSelection",e.value),this.repaint();break;default:this.callBase(e)}},_initDataSource:function(){this._useCustomChildrenLoader()?this._loadChildrenByCustomLoader(null).done(function(e){e&&e.length&&this.option("items",e)}.bind(this)):(this.callBase(),this._isVirtualMode()&&this._initVirtualMode())},_initVirtualMode:function(){var e=this._filter;e.custom||(e.custom=this._dataSource.filter()),e.internal||(e.internal=[this.option("parentIdExpr"),this.option("rootValue")])},_useCustomChildrenLoader:function(){return(0,d.isFunction)(this.option("createChildren"))&&this._isDataStructurePlain()},_loadChildrenByCustomLoader:function(e){var t=this.option("createChildren").call(this,e);return Array.isArray(t)?(new C.Deferred).resolve(t).promise():t&&(0,d.isFunction)(t.then)?(0,C.fromPromise)(t):(new C.Deferred).resolve([]).promise()},_combineFilter:function(){return this._filter.custom&&this._filter.custom.length?[this._filter.custom,this._filter.internal]:this._filter.internal},_dataSourceLoadErrorHandler:function(){this._renderEmptyMessage()},_init:function(){this._filter={},this.callBase(),this._initStoreChangeHandlers()},_dataSourceChangedHandler:function(e){this._initialized&&this._isVirtualMode()&&this.option("items").length||this.option("items",e)},_removeTreeViewLoadIndicator:function(){this._treeViewLoadIndicator&&(this._treeViewLoadIndicator.remove(),this._treeViewLoadIndicator=null)},_createTreeViewLoadIndicator:function(){return this._treeViewLoadIndicator=(0,o.default)("<div>").addClass("dx-treeview-loadindicator"),this._createComponent(this._treeViewLoadIndicator,w.default,{}),this._treeViewLoadIndicator},_dataSourceLoadingChangedHandler:function(e){var t=void 0;if(this._isVirtualMode()&&(t=this._combineFilter(),this._dataSource.filter(t)),e&&!this._dataSource.isLoaded()){this.option("items",[]);var n=(0,o.default)("<div>").addClass("dx-treeview-loadindicator-wrapper");this._createTreeViewLoadIndicator().appendTo(n),this.itemsContainer().append(n),this._isVirtualMode()&&this._dataSource.filter()!==t&&this._dataSource.filter([])}else this._removeTreeViewLoadIndicator()},_initStoreChangeHandlers:function(){var e=this;"plain"===this.option("dataStructure")&&this._dataSource&&this._dataSource.store().on("inserted",function(t){e.option().items=e.option("items").concat(t),e._dataAdapter.addItem(t),e._dataAdapter.isFiltered(t)&&e._updateLevel(e._parentIdGetter(t))}).on("removed",function(t){var n=e._dataAdapter.getNodeByKey(t);e.option("items")[e._dataAdapter.getIndexByKey(n.internalFields.key)]=0,e._markChildrenItemsToRemove(n),e._removeItems(),e._dataAdapter.removeItem(t),e._updateLevel(e._parentIdGetter(n))})},_markChildrenItemsToRemove:function(e){var t=this,n=e.internalFields.childrenKeys;(0,p.each)(n,function(e,n){t.option("items")[t._dataAdapter.getIndexByKey(n)]=0,t._markChildrenItemsToRemove(t._dataAdapter.getNodeByKey(n))})},_removeItems:function(){var e=this,t=(0,h.extend)(!0,[],this.option("items")),n=0;(0,p.each)(t,function(t,i){i||(e.option("items").splice(t-n,1),n++)})},_updateLevel:function(e){var t=this._getContainerByParentKey(e);this._renderItems(t,this._dataAdapter.getChildrenNodes(e))},_getOldContainer:function(e){return e.length?e.children("."+I):this._scrollableContainer?this._scrollableContainer.$content().children():(0,o.default)()},_getContainerByParentKey:function(e){var t=this._dataAdapter.getNodeByKey(e),n=t?this._getNodeElement(t):[];this._getOldContainer(n).remove();var i=this._renderNodeContainer(n);return this._isRootLevel(e)&&(this._scrollableContainer||this._renderScrollableContainer(),this._scrollableContainer.$content().append(i)),i},_isRootLevel:function(e){return e===this.option("rootValue")},_getAccessors:function(){var e=this.callBase();return e.push("hasItems"),e},_getDataAdapterOptions:function(){return{rootValue:this.option("rootValue"),multipleSelection:!this._isSingleSelection(),recursiveSelection:this._isRecursiveSelection(),recursiveExpansion:this.option("expandNodesRecursive"),selectionRequired:this.option("selectionRequired"),dataType:this.option("dataStructure"),sort:this._dataSource&&this._dataSource.sort()}},_initMarkup:function(){this._renderScrollableContainer(),this._renderEmptyMessage(this._dataAdapter.getRootNodes()),this.callBase(),this.setAria("role","tree")},_renderContentImpl:function(){var e=this._renderNodeContainer();this._scrollableContainer.$content().append(e),this.option("items")&&this.option("items").length&&(this._renderItems(e,this._dataAdapter.getRootNodes()),this._initExpandEvent(),this._selectAllEnabled()&&(this._createSelectAllValueChangedAction(),this._renderSelectAllItem(e)))},_isVirtualMode:function(){return this.option("virtualModeEnabled")&&this._isDataStructurePlain()&&!!this.option("dataSource")},_isDataStructurePlain:function(){return"plain"===this.option("dataStructure")},_fireContentReadyAction:function(){this.callBase(),this._scrollableContainer&&c.default.hasWindow()&&this._scrollableContainer.update()},_renderScrollableContainer:function(){this._scrollableContainer=this._createComponent((0,o.default)("<div>").appendTo(this.$element()),x.default,{direction:this.option("scrollDirection"),useKeyboard:!1})},_renderNodeContainer:function(e){var t=(0,o.default)("<ul>").addClass(I);if(this.setAria("role","group",t),e&&e.length){var n=this._getItemData(e.children("."+A));this._expandedGetter(n)&&t.addClass(D),t.appendTo(e)}return t},_createDOMElement:function(e,t){var n=(0,o.default)("<li>").addClass(S).attr(F,u.default.normalizeKey(t.internalFields.key)).prependTo(e);return this.setAria({role:"treeitem",label:this._displayGetter(t.internalFields.item)||"",expanded:t.internalFields.expanded||!1,level:this._getLevel(e)},n),n},_getLevel:function(e){var t=e.parent();return t.hasClass("dx-scrollable-content")?1:parseInt(t.attr("aria-level"))+1},_showCheckboxes:function(){return"none"!==this.option("showCheckBoxesMode")},_selectAllEnabled:function(){return"selectAll"===this.option("showCheckBoxesMode")&&!this._isSingleSelection()},_renderItems:function(e,t){for(var n=t.length-1;n>=0;n--)this._renderItem(t[n],e);this._renderFocusTarget()},_renderItem:function(e,t){var n=this._createDOMElement(t,e),i=e.internalFields,o=this._showCheckboxes();n.addClass(o?"dx-treeview-item-with-checkbox":"dx-treeview-item-without-checkbox"),o&&this._renderCheckBox(n,e),this.setAria("selected",i.selected,n),this._toggleSelectedClass(n,i.selected),this.callBase(i.key,i.item,n),!1!==i.item.visible&&this._renderChildren(n,e)},_renderChildren:function(e,t){var n=this;return this._hasChildren(t)?(this._renderToggleItemVisibilityIcon(e,t),void(this.option("deferRendering")&&!t.internalFields.expanded||this._loadSublevel(t).done(function(i){n._renderSublevel(e,n._getActualNode(t),i)}))):void this._addLeafClass(e)},_getActualNode:function(e){return this._dataAdapter.getNodeByKey(e.internalFields.key)},_hasChildren:function(e){return this._isVirtualMode()||this._useCustomChildrenLoader()?!1!==this._hasItemsGetter(e.internalFields.item):this.callBase(e)},_loadSublevel:function(e){var t=this,n=new C.Deferred,i=this._getChildNodes(e);return i.length?n.resolve(i):this._loadNestedItems(e).done(function(e){n.resolve(t._dataAdapter.getNodesByItems(e))}),n.promise()},_renderSublevel:function(e,t,n){var i=this._renderNodeContainer(e,t);if(this._renderItems(i,n),n.length&&!t.internalFields.selected){var o=n[0];this._updateParentsState(o,this._getNodeElement(o))}this._normalizeIconState(e,n.length),t.internalFields.expanded&&i.addClass(D)},_executeItemRenderAction:function(e,t,n){var i=this._dataAdapter.getNodeByKey(e);this._getItemRenderAction()({itemElement:n,itemIndex:e,itemData:t,node:i})},_addLeafClass:function(e){e.addClass(E)},_expandEventHandler:function(e){(0,o.default)(e.currentTarget.parentNode).hasClass(E)||this._toggleExpandedState(e.currentTarget,void 0,e)},_initExpandEvent:function(){var e=this._getEventNameByOption(this.option("expandEvent")),t=this._itemContainer(),n=this._itemSelector();(0,r.off)(t,"."+R,n),(0,r.on)(t,e,n,this._expandEventHandler.bind(this))},_getEventNameByOption:function(e){var t="click"===e?l.default:y.default;return(0,m.addNamespace)(t.name,R)},_getNode:function(e){if(!(0,d.isDefined)(e))return null;if(e.internalFields)return e;if((0,d.isPrimitive)(e))return this._dataAdapter.getNodeByKey(e);var t=(0,o.default)(e).get(0);return t?(0,a.isElementNode)(t)?this._getNodeByElement(t):this._dataAdapter.getNodeByItem(t):null},_getNodeByElement:function(e){var t=(0,o.default)(e).closest("."+S),n=u.default.denormalizeKey(t.attr(F));return this._dataAdapter.getNodeByKey(n)},_toggleExpandedState:function(e,t,n){var i=this._getNode(e),o=i.internalFields.expanded;if(!i.internalFields.disabled&&o!==t){if(this._hasChildren(i)){var a=this._getNodeElement(i);if(a.find("."+T+":not(.dx-state-invisible)").length)return;this._createLoadIndicator(a)}(0,d.isDefined)(t)||(t=!o),this._dataAdapter.toggleExpansion(i.internalFields.key,t),i.internalFields.expanded=t,this._updateExpandedItemsUI(i,t,n)}},_createLoadIndicator:function(e){var t=e.children("."+O),n=e.children("."+I);t.hasClass(P)||n.not(":empty").length||(this._createComponent((0,o.default)("<div>").addClass(T),w.default,{}).$element().appendTo(e),t.hide())},_renderToggleItemVisibilityIcon:function(e,t){var n=(0,o.default)("<div>").addClass(O).appendTo(e);t.internalFields.expanded&&(n.addClass(P),e.parent().addClass(D)),t.internalFields.disabled&&n.addClass(M),this._renderToggleItemVisibilityIconClick(n,t)},_renderToggleItemVisibilityIconClick:function(e,t){var n=this,i=(0,m.addNamespace)(l.default.name,this.NAME);(0,r.off)(e,i),(0,r.on)(e,i,function(e){n._toggleExpandedState(t.internalFields.key,void 0,e)})},_updateExpandedItemsUI:function(e,t,n){var i=this._getNodeElement(e),o=!i.length||t&&i.is(":hidden");if(this.option("expandNodesRecursive")&&o){var a=this._getNode(e.internalFields.parentKey);a&&this._updateExpandedItemsUI(a,t,n)}var r=i.children("."+O),s=i.children("."+I);r.toggleClass(P,t);var l=s.length>0;return!t||l&&!s.is(":empty")?void this._updateExpandedItem(e,t,n):this._isVirtualMode()||this._useCustomChildrenLoader()?void this._loadNestedItemsWithUpdate(e,t,n):(this._renderSublevel(i,e,this._getChildNodes(e)),this._fireContentReadyAction(),void this._updateExpandedItem(e,t,n))},_loadNestedItemsWithUpdate:function(e,t,n){var i=this,o=this._getNodeElement(e);this._loadNestedItems(e).done(function(a){var r=i._getActualNode(e);i._renderSublevel(o,r,i._dataAdapter.getNodesByItems(a)),a&&a.length&&(i._fireContentReadyAction(),i._updateExpandedItem(r,t,n))})},_loadNestedItems:function(e){var t=this;if(this._useCustomChildrenLoader()){var n=this._dataAdapter.getPublicNode(e);return this._loadChildrenByCustomLoader(n).done(function(e){t._areNodesExists(e)||t._appendItems(e)})}return this._isVirtualMode()?(this._filter.internal=[this.option("parentIdExpr"),e.internalFields.key],this._dataSource.filter(this._combineFilter()),this._dataSource.load().done(function(e){t._areNodesExists(e)||t._appendItems(e)})):(new C.Deferred).resolve([]).promise()},_areNodesExists:function(e,t){var n=this.keyOf(e[0]),i=this._dataAdapter.getFullData();return!!this._dataAdapter.getNodeByKey(n,i)},_appendItems:function(e){this.option().items=this.option("items").concat(e),this._initDataAdapter()},_updateExpandedItem:function(e,t,n){this._animateNodeContainer(e,t,n)},_animateNodeContainer:function(e,t,n){var i,o=this._getNodeElement(e),a=o.children("."+I);a.addClass(D),i=a.height(),b.default.stop(a,!0),b.default.animate(a,{type:"custom",duration:this.option("animationEnabled")?400:0,from:{maxHeight:t?0:i},to:{maxHeight:t?i:0},complete:function(){a.css("maxHeight","none"),a.toggleClass(D,t),this.setAria("expanded",t,o),this._scrollableContainer.update(),this._fireExpandedStateUpdatedEvent(t,e,n)}.bind(this)})},_fireExpandedStateUpdatedEvent:function(e,t,n){if(this._hasChildren(t)){var i=e?"onItemExpanded":"onItemCollapsed";if((0,d.isDefined)(n))this._itemDXEventHandler(n,i,{node:this._dataAdapter.getPublicNode(t)});else{var o=this._getNodeElement(t);this._itemEventHandler(o,i,{event:n,node:this._dataAdapter.getPublicNode(t)})}}},_normalizeIconState:function(e,t){var n=e.find(".dx-loadindicator");(n.length&&w.default.getInstance(n).option("visible",!1),t)?e.find("."+O).show():(e.find("."+O).removeClass(O),e.addClass(E))},_emptyMessageContainer:function(){return this._scrollableContainer?this._scrollableContainer.content():this.callBase()},_renderContent:function(){var e=this.option("items");e&&e.length&&(this._contentAlreadyRendered=!0),this.callBase()},_renderSelectAllItem:function(e){e=e||this.$element().find("."+I).first(),this._$selectAllItem=(0,o.default)("<div>").addClass(B);var t=this._dataAdapter.isAllSelected();this._createComponent(this._$selectAllItem,g.default,{value:t,text:this.option("selectAllText"),onValueChanged:function(e){this._toggleSelectAll(e),this._fireSelectAllValueChanged(e.value)}.bind(this)}),this._toggleSelectedClass(this._$selectAllItem,t),e.before(this._$selectAllItem)},_toggleSelectAll:function(e){this._dataAdapter.toggleSelectAll(e.value),this._updateItemsUI(),this._fireSelectionChanged()},_renderCheckBox:function(e,t){var n=(0,o.default)("<div>").appendTo(e);this._createComponent(n,g.default,{value:t.internalFields.selected,onValueChanged:this._changeCheckboxValue.bind(this),focusStateEnabled:!1,disabled:this._disabledGetter(t)})},_toggleSelectedClass:function(e,t){e.toggleClass("dx-state-selected",!!t)},_toggleNodeDisabledState:function(e,t){var n=this._getNodeElement(e),i=n.find("."+A).eq(0);(this._dataAdapter.toggleNodeDisabledState(e.internalFields.key,t),i.toggleClass(M,!!t),this._showCheckboxes())&&this._getCheckBoxInstance(n).option("disabled",!!t)},_itemOptionChanged:function(e,t,n){var i=this._dataAdapter.getNodeByItem(e);t===this.option("disabledExpr")&&this._toggleNodeDisabledState(i,n)},_changeCheckboxValue:function(e){var t=(0,o.default)(e.element).parent("."+S).children("."+A),n=this._getItemData(t),i=this._getNodeByElement(t),a=e.value;i&&i.internalFields.selected===a||this._updateItemSelection(a,n,e.event)},_isSingleSelection:function(){return"single"===this.option("selectionMode")},_isRecursiveSelection:function(){return this.option("selectNodesRecursive")&&"single"!==this.option("selectionMode")},_isLastSelectedBranch:function(e,t,n){var i=t.indexOf(e.key);return i>=0&&t.splice(i,1),n&&(0,p.each)(e.children,function(e,n){this._isLastSelectedBranch(n,t,!0)}.bind(this)),e.parent&&this._isLastSelectedBranch(e.parent,t),0===t.length},_isLastRequired:function(e){var t=this.option("selectionRequired"),n=this._isSingleSelection(),i=this.getSelectedNodesKeys();if(t)return n?1===i.length:this._isLastSelectedBranch(e.internalFields.publicNode,i.slice(),!0)},_updateItemSelection:function(e,t,n){var i=this,o=this._getNode(t);if(o&&o.internalFields.selected!==e)if(e||!this._isLastRequired(o)){var a=this.getSelectedNodesKeys();this._isSingleSelection()&&e&&(0,p.each)(a,function(e,t){i.unselectItem(t)}),this._dataAdapter.toggleSelection(o.internalFields.key,e),this._updateItemsUI();var r=n||this._findItemElementByItem(o.internalFields.item);(n?this._itemDXEventHandler:this._itemEventHandler).call(this,r,"onItemSelectionChanged",{node:this._dataAdapter.getPublicNode(o),itemData:o.internalFields.item}),this._fireSelectionChanged()}else if(this._showCheckboxes()){var s=this._getNodeElement(o),l=this._getCheckBoxInstance(s);l&&l.option("value",!0)}},_getCheckBoxInstance:function(e){return e.children(".dx-checkbox").dxCheckBox("instance")},_updateItemsUI:function(){var e=this,t={};(0,p.each)(this._dataAdapter.getData(),function(n,i){var o=e._getNodeElement(i,t),a=i.internalFields.selected;o.length&&(e._toggleSelectedClass(o,a),e.setAria("selected",a,o),e._showCheckboxes())&&e._getCheckBoxInstance(o).option("value",a)}),this._selectAllEnabled()&&this._$selectAllItem.dxCheckBox("instance").option("value",this._dataAdapter.isAllSelected())},_updateParentsState:function(e,t){if(t){var n=this._dataAdapter.getNodeByKey(e.internalFields.parentKey),i=(0,o.default)(t.parents("."+S)[0]);if(this._showCheckboxes()){var a=n.internalFields.selected;this._getCheckBoxInstance(i).option("value",a),this._toggleSelectedClass(i,a)}n.internalFields.parentKey!==this.option("rootValue")&&this._updateParentsState(n,i)}},_itemEventHandlerImpl:function(e,t,n){var i=(0,o.default)(e).closest("."+S).children("."+A);return t((0,h.extend)(this._extendActionArgs(i),n))},_itemContextMenuHandler:function(e){this._createEventHandler("onItemContextMenu",e)},_itemHoldHandler:function(e){this._createEventHandler("onItemHold",e)},_createEventHandler:function(e,t){var n=this._getNodeByElement(t.currentTarget);this._itemDXEventHandler(t,e,{node:this._dataAdapter.getPublicNode(n)})},_itemClass:function(){return A},_itemDataKey:function(){return"dx-treeview-item-data"},_attachClickEvent:function(){var e="."+this._itemClass(),t="."+S+", ."+B,n=(0,m.addNamespace)(l.default.name,this.NAME),i=(0,m.addNamespace)(v.down,this.NAME),a=this._itemContainer(),s=this;(0,r.off)(a,n,e),(0,r.off)(a,i,t),(0,r.on)(a,n,e,function(e){s._itemClickHandler(e,(0,o.default)(this))}),(0,r.on)(a,i,t,function(e){s._itemPointerDownHandler(e)})},_itemClickHandler:function(e,t){var n=this._getItemData(t),i=this._getNodeByElement(t);this._itemDXEventHandler(e,"onItemClick",{node:this._dataAdapter.getPublicNode(i)}),this.option("selectByClick")&&!e.isDefaultPrevented()&&this._updateItemSelection(!i.internalFields.selected,n,e)},_updateSelectionToFirstItem:function(e,t){for(var n=t;n>=0;){var i=(0,o.default)(e[n]);this._updateItemSelection(!0,i.find("."+A).get(0)),n--}},_updateSelectionToLastItem:function(e,t){for(var n=e.length,i=t;i<n;){var a=(0,o.default)(e[i]);this._updateItemSelection(!0,a.find("."+A).get(0)),i++}},_focusInHandler:function(e){var t=this;if(this._updateFocusState(e,!0),this.option("focusedElement"))return clearTimeout(this._setFocusedItemTimeout),void(this._setFocusedItemTimeout=setTimeout(function(){t._setFocusedItem((0,o.default)(t.option("focusedElement")))}));var n=this._getActiveItem();this.option("focusedElement",(0,f.getPublicElement)(n.closest("."+S)))},_setFocusedItem:function(e){e&&e.length&&(e.children().hasClass(M)||this.callBase(e),this._scrollableContainer.scrollToElement(e.find("."+A).first()))},_itemPointerDownHandler:function(e){if(this.option("focusStateEnabled")){var t=(0,o.default)(e.target).closest("."+S+", ."+B);if(t.length){var n=t.hasClass(M)?null:t;this.option("focusedElement",(0,f.getPublicElement)(n))}}},_findNonDisabledNodes:function(e){return e.not(function(){return(0,o.default)(this).children("."+A).hasClass(M)})},_moveFocus:function(e,t){var n=this.option("rtlEnabled")?"right":"left",i=this.option("rtlEnabled")?"left":"right";this.$element().find("."+I).each(function(){b.default.stop(this,!0)});var o=this._findNonDisabledNodes(this._nodeElements());if(o&&o.length)switch(e){case"up":var a=this._prevItem(o);this.option("focusedElement",(0,f.getPublicElement)(a)),t.shiftKey&&this._showCheckboxes()&&this._updateItemSelection(!0,a.find("."+A).get(0));break;case"down":var r=this._nextItem(o);this.option("focusedElement",(0,f.getPublicElement)(r)),t.shiftKey&&this._showCheckboxes()&&this._updateItemSelection(!0,r.find("."+A).get(0));break;case"first":var s=o.first();t.shiftKey&&this._showCheckboxes()&&this._updateSelectionToFirstItem(o,o.index(this._prevItem(o))),this.option("focusedElement",(0,f.getPublicElement)(s));break;case"last":var l=o.last();t.shiftKey&&this._showCheckboxes()&&this._updateSelectionToLastItem(o,o.index(this._nextItem(o))),this.option("focusedElement",(0,f.getPublicElement)(l));break;case i:this._expandFocusedContainer();break;case n:this._collapseFocusedContainer();break;default:return void this.callBase.apply(this,arguments)}},_nodeElements:function(){return this.$element().find("."+S).not(":hidden")},_expandFocusedContainer:function(){var e=(0,o.default)(this.option("focusedElement"));if(e.length&&!e.hasClass(E)){if(e.find("."+I).eq(0).hasClass(D)){var t=this._nextItem(this._findNonDisabledNodes(this._nodeElements()));return void this.option("focusedElement",(0,f.getPublicElement)(t))}var n=this._getNodeByElement(e.children("."+A));this._toggleExpandedState(n,!0)}},_getClosestNonDisabledNode:function(e){do{e=e.parent().closest("."+S)}while(e.children(".dx-treeview-item.dx-state-disabled").length);return e},_collapseFocusedContainer:function(){var e=(0,o.default)(this.option("focusedElement"));if(e.length){var t=e.find("."+I).eq(0);if(!e.hasClass(E)&&t.hasClass(D)){var n=this._getNodeByElement(e.children("."+A));this._toggleExpandedState(n,!1)}else{var i=this._getClosestNonDisabledNode(e);i.length&&this.option("focusedElement",(0,f.getPublicElement)(i))}}},updateDimensions:function(){var e=this,t=new C.Deferred;return this._scrollableContainer?this._scrollableContainer.update().done(function(){t.resolveWith(e)}):t.resolveWith(this),t.promise()},selectItem:function(e){this._updateItemSelection(!0,e)},unselectItem:function(e){this._updateItemSelection(!1,e)},expandItem:function(e){this._toggleExpandedState(e,!0)},collapseItem:function(e){this._toggleExpandedState(e,!1)},getNodes:function(){return this._dataAdapter.getTreeNodes()},getSelectedNodesKeys:function(){return this._dataAdapter.getSelectedNodesKeys()},selectAll:function(){this._selectAllEnabled()?this._$selectAllItem.dxCheckBox("instance").option("value",!0):this._toggleSelectAll({value:!0})},unselectAll:function(){this._selectAllEnabled()?this._$selectAllItem.dxCheckBox("instance").option("value",!1):this._toggleSelectAll({value:!1})},expandAll:function(){(0,p.each)(this._dataAdapter.getData(),function(e,t){this._toggleExpandedState(t.internalFields.key,!0)}.bind(this))},collapseAll:function(){(0,p.each)(this._dataAdapter.getExpandedNodesKeys(),function(e,t){this._toggleExpandedState(t,!1)}.bind(this))}});e.exports=V},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(23)),r=n(611),s=n(612),l=i(n(15)),u=i(n(198)),c=n(1),d=n(3),h=i(n(16)),p=n(6),f=n(96),g="dx-datagrid-group-panel",_="dx-group-panel-item",m={init:function(){this.callBase.apply(this,arguments),this._initGroupingHelper()},_initGroupingHelper:function(e){var t=this._grouping,n=this.option("grouping.autoExpandAll"),i=this.option("focusedRowEnabled"),o=e?e.remoteOperations:this.remoteOperations();!(o.filtering&&o.sorting&&o.paging)||o.grouping||!n&&i?(!t||t instanceof r.GroupingHelper)&&(this._grouping=new s.GroupingHelper(this)):(!t||t instanceof s.GroupingHelper)&&(this._grouping=new r.GroupingHelper(this))},totalItemsCount:function(){var e=this,t=e.callBase();return t>0&&e._dataSource.group()&&e._dataSource.requireTotalCount()?t+e._grouping.totalCountCorrection():t},itemsCount:function(){return this._dataSource.group()?this._grouping.itemsCount()||0:this.callBase.apply(this,arguments)},allowCollapseAll:function(){return this._grouping.allowCollapseAll()},isGroupItemCountable:function(e){return this._grouping.isGroupItemCountable(e)},isRowExpanded:function(e){var t=this._grouping.findGroupInfo(e);return t?t.isExpanded:!this._grouping.allowCollapseAll()},collapseAll:function(e){return this._collapseExpandAll(e,!1)},expandAll:function(e){return this._collapseExpandAll(e,!0)},_collapseExpandAll:function(e,t){var n,i=this._dataSource,o=i.group(),r=a.default.normalizeSortingInfo(o||[]);if(r.length){for(n=0;n<r.length;n++)void 0===e||e===n?r[n].isExpanded=t:o&&o[n]&&(r[n].isExpanded=o[n].isExpanded);i.group(r),this._grouping.foreachGroups(function(n,i){void 0!==e&&e!==i.length-1||(n.isExpanded=t)},!1,!0)}return!0},refresh:function(){return this.callBase.apply(this,arguments),this._grouping.refresh.apply(this._grouping,arguments)},changeRowExpand:function(e){var t=this,n=t._dataSource;if(n.group())return n.beginLoading(),t._lastLoadOptions&&(t._lastLoadOptions.groupExpand=!0),t._changeRowExpandCore(e).always(function(){n.endLoading()})},_changeRowExpandCore:function(e){return this._grouping.changeRowExpand(e)},_hasGroupLevelsExpandState:function(e,t){if(e&&Array.isArray(e))for(var n=0;n<e.length;n++)if(e[n].isExpanded===t)return!0},_customizeRemoteOperations:function(e,t,n){var i=e.remoteOperations;e.storeLoadOptions.group?(i.grouping&&!e.isCustomLoading&&(i.groupPaging&&!this._hasGroupLevelsExpandState(e.storeLoadOptions.group,!0)||(i.paging=!1)),i.grouping||i.sorting&&i.filtering&&!e.isCustomLoading&&!this._hasGroupLevelsExpandState(e.storeLoadOptions.group,!1)||(i.paging=!1)):!e.isCustomLoading&&i.paging&&n.grouping&&this.resetCache(),this.callBase.apply(this,arguments)},_handleDataLoading:function(e){return this.callBase(e),this._initGroupingHelper(e),this._grouping.handleDataLoading(e)},_handleDataLoaded:function(e){return this._grouping.handleDataLoaded(e,this.callBase.bind(this))},_handleDataLoadedCore:function(e){return this._grouping.handleDataLoadedCore(e,this.callBase.bind(this))}};u.default.extend(m);var v={init:function(){var e=this;e.callBase(),e.createAction("onRowExpanding"),e.createAction("onRowExpanded"),e.createAction("onRowCollapsing"),e.createAction("onRowCollapsed")},_beforeProcessItems:function(e){var t=this._columnsController.getGroupColumns();return(e=this.callBase(e)).length&&t.length&&(e=this._processGroupItems(e,t.length)),e},_processItem:function(e,t){return(0,c.isDefined)(e.groupIndex)&&(0,c.isString)(e.rowType)&&0===e.rowType.indexOf("group")?(e=this._processGroupItem(e,t),t.dataIndex=0):e=this.callBase.apply(this,arguments),e},_processGroupItem:function(e){return e},_processGroupItems:function(e,t,n){var i,o,a,r,s=this,l=s._columnsController.getGroupColumns(),u=l[l.length-t];if(n||(n={collectContinuationItems:"virtual"!==(i=s.option("scrolling.mode"))&&"infinite"!==i,resultItems:[],path:[],values:[]}),r=n.resultItems,n.data&&(!n.collectContinuationItems&&n.data.isContinuation||r.push({rowType:"group",data:n.data,groupIndex:n.path.length-1,isExpanded:!!n.data.items,key:n.path.slice(0),values:n.values.slice(0)})),e)if(0===t)r.push.apply(r,e);else for(o=0;o<e.length;o++)(a=e[o])&&"items"in a?(n.data=a,n.path.push(a.key),n.values.push(u&&u.deserializeValue&&!u.calculateDisplayValue?u.deserializeValue(a.key):a.key),s._processGroupItems(a.items,t-1,n),n.data=void 0,n.path.pop(),n.values.pop()):r.push(a);return r},publicMethods:function(){return this.callBase().concat(["collapseAll","expandAll","isRowExpanded","expandRow","collapseRow"])},collapseAll:function(e){var t=this._dataSource;t&&t.collapseAll(e)&&(t.pageIndex(0),t.reload())},expandAll:function(e){var t=this._dataSource;t&&t.expandAll(e)&&(t.pageIndex(0),t.reload())},changeRowExpand:function(e){var t=this,n=t.isRowExpanded(e),i={key:e,expanded:n};return t.executeAction(n?"onRowCollapsing":"onRowExpanding",i),i.cancel?(new p.Deferred).resolve():(0,p.when)(t._changeRowExpandCore(e)).done(function(){i.expanded=!n,t.executeAction(n?"onRowCollapsed":"onRowExpanded",i)})},_changeRowExpandCore:function(e){var t,n=this,i=this._dataSource;if(i)return t=new p.Deferred,(0,p.when)(i.changeRowExpand(e)).done(function(){n.load().done(t.resolve).fail(t.reject)}).fail(t.reject),t},isRowExpanded:function(e){var t=this._dataSource;return t&&t.isRowExpanded(e)},expandRow:function(e){return this.isRowExpanded(e)?(new p.Deferred).resolve():this.changeRowExpand(e)},collapseRow:function(e){return this.isRowExpanded(e)?this.changeRowExpand(e):(new p.Deferred).resolve()},optionChanged:function(e){"grouping"===e.name&&(e.name="dataSource"),this.callBase(e)}},y=function(e,t){var n=this._columnsController;switch(t.itemData.value){case"group":var i=n._dataSource.group()||[];n.columnOption(e.dataField,"groupIndex",i.length);break;case"ungroup":n.columnOption(e.dataField,"groupIndex",-1);break;case"ungroupAll":this.component.clearGrouping()}},b={_getToolbarItems:function(){var e=this.callBase();return this._appendGroupingItem(e)},_appendGroupingItem:function(e){var t=this,n=!1;if(t._isGroupPanelVisible()){var i={html:"<div class='"+g+"'></div>",name:"groupPanel",onItemRendered:function(e){var i=(0,o.default)(e.itemElement).find("."+g);t._updateGroupPanelContent(i),(0,f.registerKeyboardAction)("groupPanel",t,i,void 0,t._handleActionKeyDown.bind(t)),n&&t.renderCompleted.fire(),n=!0},location:"before",locateInMenu:"never",sortIndex:1};e.push(i)}return e},_handleActionKeyDown:function(e){var t=e.event,n=(0,o.default)(t.target),i=n.closest("."+_).index(),a=this._columnsController.getGroupColumns()[i],r=a&&a.index;n.is(".dx-header-filter")?this.getController("headerFilter").showHeaderFilterMenu(r,!0):this._processGroupItemAction(r),t.preventDefault()},_isGroupPanelVisible:function(){var e,t=this.option("groupPanel");return t&&"auto"===(e=t.visible)&&(e="desktop"===h.default.current().deviceType),e},_renderGroupPanelItems:function(e,t){var n=this;e.empty(),(0,d.each)(t,function(t,i){n._createGroupPanelItem(e,i)}),(0,f.restoreFocus)(this)},_createGroupPanelItem:function(e,t){var n=(0,o.default)("<div>").addClass(t.cssClass).addClass(_).data("columnData",t).appendTo(e).text(t.caption);return(0,f.setTabIndex)(this,n),n},_columnOptionChanged:function(e){if(!this._requireReady&&!a.default.checkChanges(e.optionNames,["width","visibleWidth"])){var t=this.element(),n=t&&t.find("."+g);n&&n.length&&(this._updateGroupPanelContent(n),this.renderCompleted.fire())}this.callBase()},_updateGroupPanelContent:function(e){var t=this,n=t.getController("columns").getGroupColumns(),i=t.option("groupPanel");t._renderGroupPanelItems(e,n),i.allowColumnDragging&&!n.length&&((0,o.default)("<div>").addClass("dx-group-panel-message").text(i.emptyPanelText).appendTo(e),e.closest(".dx-toolbar-label").css("maxWidth","none"),t.updateToolbarDimensions())},allowDragging:function(e){var t=this.option("groupPanel");return this._isGroupPanelVisible()&&t.allowColumnDragging&&e&&e.allowGrouping},getColumnElements:function(){var e=this.element();return e&&e.find("."+_)},getColumns:function(){return this.getController("columns").getGroupColumns()},getBoundingRect:function(){var e,t=this.element();return t&&t.find("."+g).length?{top:(e=t.offset()).top,bottom:e.top+t.height()}:null},getName:function(){return"group"},getContextMenuItems:function(e){var t,n=this,i=n.option("grouping.contextMenuEnabled"),a=(0,o.default)(e.targetElement).closest("."+_);if(a.length&&(e.column=a.data("columnData")),i&&e.column){var r=e.column;if(!(0,c.isDefined)(r.allowGrouping)||r.allowGrouping){var s=(0,c.isDefined)(r.groupIndex)&&r.groupIndex>-1,l=n.option("grouping.texts"),u=y.bind(n,r);t=[{text:l.ungroup,value:"ungroup",disabled:!s,onItemClick:u},{text:l.ungroupAll,value:"ungroupAll",onItemClick:u}]}}return t},isVisible:function(){return this.callBase()||this._isGroupPanelVisible()},optionChanged:function(e){"groupPanel"===e.name?(this._invalidate(),e.handled=!0):this.callBase(e)}};t.GroupingHeaderPanelExtender=b;var x={getContextMenuItems:function(e){var t,n=this;if(n.option("grouping.contextMenuEnabled")&&e.row&&"group"===e.row.rowType){var i=n._columnsController.columnOption("groupIndex:"+e.row.groupIndex);if(i&&i.allowGrouping){var o=n.option("grouping.texts"),a=y.bind(n,i);(t=[]).push({text:o.ungroup,value:"ungroup",onItemClick:a},{text:o.ungroupAll,value:"ungroupAll",onItemClick:a})}}return t},_rowClick:function(e){var t=this,n=t.option("grouping.expandMode"),i="infinite"!==t.option("scrolling.mode")&&"rowClick"===n&&(0,o.default)(e.event.target).closest(".dx-group-row").length,a=(0,o.default)(e.event.target).closest(".dx-datagrid-expand").length;(i||a)&&t._changeGroupRowState(e),t.callBase(e)},_changeGroupRowState:function(e){var t=this.getController("data"),n=t.items()[e.rowIndex],i=this._columnsController.columnOption("groupIndex:"+n.groupIndex,"allowCollapsing");("data"===n.rowType||"group"===n.rowType&&!1!==i)&&(t.changeRowExpand(n.key),e.event.preventDefault(),e.handled=!0)}},w={getContextMenuItems:function(e){var t=this,n=t.option("grouping.contextMenuEnabled"),i=t.callBase(e);if(n&&e.row&&("header"===e.row.rowType||"detailAdaptive"===e.row.rowType)){var o=e.column;if(!o.command&&(!(0,c.isDefined)(o.allowGrouping)||o.allowGrouping)){var a=t.option("grouping.texts"),r=(0,c.isDefined)(o.groupIndex)&&o.groupIndex>-1,s=y.bind(t,o);(i=i||[]).push({text:a.groupByThisColumn,value:"group",beginGroup:!0,disabled:r,onItemClick:s}),o.showWhenGrouped&&i.push({text:a.ungroup,value:"ungroup",disabled:!r,onItemClick:s}),i.push({text:a.ungroupAll,value:"ungroupAll",onItemClick:s})}}return i}};a.default.registerModule("grouping",{defaultOptions:function(){return{grouping:{autoExpandAll:!0,allowCollapsing:!0,contextMenuEnabled:!1,expandMode:"buttonClick",texts:{groupContinuesMessage:l.default.format("dxDataGrid-groupContinuesMessage"),groupContinuedMessage:l.default.format("dxDataGrid-groupContinuedMessage"),groupByThisColumn:l.default.format("dxDataGrid-groupHeaderText"),ungroup:l.default.format("dxDataGrid-ungroupHeaderText"),ungroupAll:l.default.format("dxDataGrid-ungroupAllText")}},groupPanel:{visible:!1,emptyPanelText:l.default.format("dxDataGrid-groupPanelEmptyText"),allowColumnDragging:!0}}},extenders:{controllers:{data:v,columns:{_getExpandColumnOptions:function(){var e=this.callBase.apply(this,arguments);return e.cellTemplate=a.default.getExpandCellTemplate(),e}}},views:{headerPanel:b,rowsView:x,columnHeadersView:w}}})},function(e,t,n){var i=n(20),o=n(40),a=n(3),r=n(0),s=n(81),l=n(23),u=n(343),c=n(251),d=function(e){return e&&e.__esModule?e:{default:e}}(n(41)),h=n(6),p=function(e,t){var n=new h.Deferred,i=(0,r.extend)({skip:0,take:1,requireTotalCount:!0},t);return e.load(i).done(function(e,t){n.resolve(t&&t.totalCount)}).fail(n.reject.bind(n)),n};t.GroupingHelper=u.GroupingHelper.inherit(function(){var e=function(e,t,n){return e.foreachGroups(function(e){if(!e.isExpanded)return t(e)},!1,!1,n,!0)},t=function(t,n){var i=0,o=n||0;return n&&(e(t,function(e){return!(e.offset-i>=n)&&void(i+=e.count-1)}),o+=i),o},n=function(e,t){var n;if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!(0,o.keysEqual)(null,e[n],t[n]))return!1;return!0},f=function e(t,i,o,a,r){var s,l;if(i){for(s=0;s<i.length;s++)if("key"in(l=i[s])&&void 0!==l.items){o.push(l.key),r&&n(r.path,o)&&!l.isContinuation&&(r.offset=a);var u=t.findGroupInfo(o);u&&!l.isContinuation&&(u.offset=a),u&&!u.isExpanded?a+=u.count:a=e(t,l.items,o,a,r),o.pop()}else a++;return a}},g=function(e,t){var n,i;t.group&&(n=(0,l.normalizeSortingInfo)(t.group),i=(0,l.normalizeSortingInfo)(e.sort),e.sort=(0,s.arrangeSortingInfo)(n,i),delete t.group)},_=function(e,t,n){var i,o,a,r=(0,l.normalizeSortingInfo)(n||t.group),s=[];for(i=0;i<e.length;i++){for(a=[],o=0;o<=i;o++)a.push([r[o].selector,i===o?"<>":"=",e[o]]);s.push((0,l.combineFilters)(a))}return s=(0,l.combineFilters)(s,"or"),(0,l.combineFilters)([s,t.filter])},m=function e(t,n){var i,o=t.count||t.items.length;if(!t.count&&n>1)for(o=0,i=0;i<t.items.length;i++)o+=e(t.items[i],n-1);return o};return{handleDataLoading:function(n){var i,o,s=n.storeLoadOptions,l=[],u=0,c=!1,d=n.loadOptions.group,h=0;g(s,n.loadOptions),n.group=n.group||d,n.isCustomLoading||((i=(0,r.extend)({},s)).skip=t(this,s.skip),i.skip&&i.take&&d&&(i.skip--,i.take++,c=!0),i.take&&d&&(o=i.take,i.take++),e(this,function(e){return!(e.offset>=i.skip+i.take+h)&&void(e.offset>=i.skip+h&&e.count&&(h+=e.count-1,l.push(e),u+=e.count))}),(0,a.each)(l,function(){i.filter=_(this.path,i,d)}),n.storeLoadOptions=i,n.collapsedGroups=l,n.collapsedItemsCount=u,n.skip=i.skip||0,n.skipFirstItem=c,n.take=o)},handleDataLoaded:function(e,t){function n(e,t,o,a,r){if(e&&t.length&&o.length){var s,l,u=(0,i.toComparable)(t[0],!0);for(s=0;s<e.length&&(l=(0,i.toComparable)(e[s].key,!0),!(r>=a.offset||u===l));s++)r+=m(e[s],o.length);e.length&&u===l||e.splice(s,0,{key:t[0],items:[],count:1===t.length?a.count:void 0}),n(e[s].items,t.slice(1),o.slice(1),a,r)}}var o,a,r=e.data,u=e.collapsedGroups,c=(0,l.normalizeSortingInfo)(e.group),h=c.length;if(e.collapsedItemsCount&&e.extra&&e.extra.totalCount>=0&&(e.extra.totalCount+=e.collapsedItemsCount),t(e),h){if(a=(0,d.default)(r),(0,s.multiLevelGroup)(a,c).enumerate().done(function(e){r=e}),u)for(o=0;o<u.length;o++)n(r,u[o].path,c,u[o],e.skip);e.isCustomLoading||function e(t,n,i,o,a,r){var s,l,u,c=0,d=!1;for(s=0;s<n.length;s++){if(void 0!==(l=n[s]).items){i.push(l.key);var h=t.findGroupInfo(i);h&&!h.isExpanded?(l.collapsedItems=l.items,l.items=null,o+=h.count,--r<0&&c++,a&&(d=!0)):l.items&&(u=e(t,l.items,i,o,a,r),a&&(u.offset-o>1?l.isContinuation=!0:d=!0),o=u.offset,(r=u.take)<0&&(l.items.length?l.isContinuationOnNextPage=!0:c++)),i.pop()}else a&&(d=!0),o++,--r<0&&c++;a=!1}return d&&n.splice(0,1),c&&n.splice(-c,c),{offset:o,take:r}}(this,r,[],e.skip,e.skipFirstItem,e.take),e.data=r}},isGroupItemCountable:function(e){return null===e.items},updateTotalItemsCount:function(){var t=0;e(this,function(e){e.count&&(t-=e.count-1)}),this.callBase(t)},changeRowExpand:function(e){var n,i=this,o=i._dataSource,a=o.beginPageIndex?o.beginPageIndex():o.pageIndex(),r=o.items(),s=t(i,a*o.pageSize()),l=i.findGroupInfo(e);return n=l&&!l.isExpanded?(new h.Deferred).resolve(l.count):p(o,{filter:(0,c.createGroupFilter)(e,{filter:o.filter(),group:o.group()})}),(0,h.when)(n).done(function(t){t=parseInt(t.length?t[0]:t),l?(f(i,r,[],s),l.isExpanded=!l.isExpanded,l.count=t):(f(i,r,[],s,l={offset:-1,count:t,path:e,isExpanded:!1}),l.offset>=0&&i.addGroupInfo(l)),i.updateTotalItemsCount()}).fail(function(){o.fireEvent("loadError",arguments)})},allowCollapseAll:function(){return!1},refresh:function(t,n,i){var o=this,a=t.storeLoadOptions,r=o._dataSource;if(this.callBase.apply(this,arguments),n||i.reload)return e(o,function(e){var t=p(r,{filter:(0,c.createGroupFilter)(e.path,a)}),n=p(r,{filter:(0,u.createOffsetFilter)(e.path,a)});return(0,h.when)(n,t).done(function(t,n){t=parseInt(t.length?t[0]:t),n=parseInt(n.length?n[0]:n),e.offset=t,e.count!==n&&(e.count=n,o.updateTotalItemsCount())})},!0)}}}())},function(e,t,n){var i=n(0),o=n(3),a=n(23),r=n(343),s=n(251),l=function(e){return e&&e.__esModule?e:{default:e}}(n(18)),u=n(35),c=n(6);t.GroupingHelper=r.GroupingHelper.inherit(function(){function e(e,t,n,i){var o=t.items[i],a=e.skips&&e.skips[n],r=e.takes&&e.takes[n],s=i===t.items.length-1,l=0===i,u=l&&a||0,c=o.count>r+u;l&&void 0!==a&&(o.isContinuation=!0),s&&void 0!==r&&c&&(o.isContinuationOnNextPage=!0)}function t(e){return!Array.isArray(e)}function n(e){t(e.data)||(e.data=new c.Deferred)}function d(e,i,o,a,r,s){i.isCustomLoading||(g(e,s,o,a={},[]),function(e,t,n){var i=n-1,o=e.group?e.group.length:0;t.skip=e.skips&&e.skips[i],e.takes&&void 0!==e.takes[i]&&(t.take=o===n&&t.count?t.count-(t.skip||0):0,t.take+=e.takes[i])}(i,a,o));var l=i.group?i.group.length:0;a.paths.length&&l-o>0?(n(i),h(e,i,a,o,r,s)):a.paths.length&&i.storeLoadOptions.group?(n(i),p(e,i,a,s)):t(i.data)&&i.data.resolve(s)}function h(t,n,i,a,r,l){var u=n.group||[],h=u[r+1],p=[];(0,o.each)(i.paths,function(o){var a={requireTotalCount:!1,requireGroupCount:!0,group:[h],groupSummary:n.storeLoadOptions.groupSummary,filter:(0,s.createGroupFilter)(i.paths[o],{filter:n.storeLoadOptions.filter,group:u})};0===o&&(a.skip=i.skip||0),o===i.paths.length-1&&(a.take=i.take);var l=0===a.take?[]:t._dataSource.loadFromStore(a);(0,c.when)(l).done(function(t){var a=i.items[o];e(n,i,r,o),a.items=t}),p.push(l)}),c.when.apply(null,p).done(function(){m(t,n,l,a+1),d(t,n,a+1,i,r+1,l)})}function p(t,n,r,l){var u=[],d=n.group||[];(0,o.each)(r.paths,function(e,t){u.push((0,s.createGroupFilter)(t,{group:n.isCustomLoading?n.storeLoadOptions.group:d}))});var h=n.storeLoadOptions.filter;n.storeLoadOptions.isLoadingAll||(h=(0,a.combineFilters)([h,(0,a.combineFilters)(u,"or")]));var p=(0,i.extend)({},n.storeLoadOptions,{requireTotalCount:!1,requireGroupCount:!1,group:null,sort:d.concat((0,a.normalizeSortingInfo)(n.storeLoadOptions.sort||[])),filter:h}),f=t._dataSource.isLastLevelGroupItemsPagingLocal();f||(p.skip=r.skip,p.take=r.take),(0,c.when)(0===r.take?[]:t._dataSource.loadFromStore(p)).done(function(i,a){f&&(i=t._dataSource.sortLastLevelGroupItems(i,d,r.paths),i=r.skip?i.slice(r.skip):i,i=r.take?i.slice(0,r.take):i),(0,o.each)(r.items,function(t,o){var a=o.count-(0===t&&r.skip||0),s=i.splice(0,a);e(n,r,d.length-1,t),o.items=s}),n.data.resolve(l)}).fail(n.data.reject)}var f=function(e,t,n){return e.foreachGroups(function(e,n){if(e.isExpanded)return t(e,n)},!0,!1,n,n)},g=function e(t,n,i,o,a,r,s){var l,u,c,d;if(o.items=o.items||[],o.paths=o.paths||[],o.count=o.count||0,o.lastCount=o.lastCount||0,i)for(l=0;l<n.length;l++)void 0!==(u=n[l]).items&&(a.push(u.key),r?d=!0:d=(c=t.findGroupInfo(a))&&c.isExpanded,d?u.items?e(t,u.items,i-1,o,a,r,s):1!==i||!u.count||r&&!s||(o.items.push(u),o.paths.push(a.slice(0)),o.count+=o.lastCount,o.lastCount=u.count):(u.collapsedItems=u.items,u.items=null),a.pop())},_=function(e,t,n,i,o){var a,r=e.findGroupInfo(i);r?(n?r.count=t.count>0?t.count:t.items&&t.items.length||0:t.count=r.count||t.count,r.offset=o):(n&&(a=t.count>0?t.count:t.items.length),e.addGroupInfo({isExpanded:e._isGroupExpanded(i.length-1),path:i.slice(0),offset:o,count:a||0}))},m=function e(t,n,i,o,a,r,s){var l,u,c,d=(n.group?n.group.length:0)===o,h=0,p=0;if(a=a||0,r=r||[],n.remoteOperations.paging&&!s&&(h=0===a?n.skip||0:n.skips[a-1]||0),a>=o)return i.length;for(c=0;c<i.length;c++)if(l=i[c]){if(r.push(l.key),!l.count&&!l.items||void 0===l.items)return-1;if(_(t,l,d,r,h+c),(u=l.items?e(t,n,l.items,o,a+1,r,c):l.count||-1)<0)return-1;p+=u,r.pop()}return p},v=function(e,t){return e&&e.length&&e[t]&&!!e[t].isExpanded},y=function(e,t,n){var i,o,a=n;for(i=0;i<e.length;i++)o=e[i].offset+1,i>0&&(o+=e[i-1].childrenTotalCount,t&&(o+=b(a,t,o,i-1)*i)),a+=o;return a},b=function(e,t,n,i){if(i=i||0,t>1&&n>0){var o=e-Math.floor(e/t)*t||t;return(o+=n-i-2)<0&&(o+=t),Math.floor(o/(t-i-1))}return 0},x=function(e,t){var n=new c.Deferred,o=!(!t.group||!t.group.length),a=(0,i.extend)({skip:0,take:1,requireGroupCount:o,requireTotalCount:!o},t,{group:o?t.group:null});return e.load(a).done(function(e,t){var i=t&&(o?t.groupCount:t.totalCount);if(!isFinite(i))throw u.errors.Error(o?"E4022":"E4021");n.resolve(i)}).fail(n.reject.bind(n)),n};return{updateTotalItemsCount:function(e){var t=0,n=e.extra&&e.extra.totalCount||0,i=e.extra&&e.extra.groupCount||0,o=this._dataSource.pageSize(),a=this._isVirtualPaging();f(this,function(e){e.childrenTotalCount=0}),f(this,function(e,n){var i=y(n,a?0:o,t),r=e.count+e.childrenTotalCount;a||(r+=b(i,o,r,n.length-1)),n[n.length-2]?n[n.length-2].childrenTotalCount+=r:t+=r}),this.callBase(t-n+i)},_isGroupExpanded:function(e){var t=this._dataSource.group();return v(t,e)},_updatePagingOptions:function(e,t){var n=this,i=n._isVirtualPaging(),o=n._dataSource.pageSize(),a=[],r=[],s=0,l=0;e.take&&(f(this,function(e){e.childrenTotalCount=0,e.skipChildrenTotalCount=0}),f(n,function(n,u){var c,d,h=0,p=0,f=y(u,i?0:o,l),g=0,_=0,m=n.count+n.childrenTotalCount,v=m;t&&t(n,f),c=e.skip-f,f<=e.skip+e.take&&m&&(d=e.take,i||(m+=(g=b(f,o,m,u.length-1))*u.length,v+=g,o&&c>=0&&(h=u.length,p=u.length-1,_=Math.floor(c/o))),c>=0?(f+m>e.skip&&a.unshift(c-_*h-n.skipChildrenTotalCount),f+m>=e.skip+d&&r.unshift(d-h-n.childrenTotalCount+n.skipChildrenTotalCount)):f+m>=e.skip+d&&r.unshift(d+c-n.childrenTotalCount)),f<=e.skip&&(u[u.length-2]?u[u.length-2].skipChildrenTotalCount+=Math.min(v,c+1-_*p):s+=Math.min(v,c+1)),f<=e.skip+d&&(m=Math.min(v,c+d-(_+1)*p),u[u.length-2]?u[u.length-2].childrenTotalCount+=m:l+=m)}),e.skip-=s,e.take-=l-s),e.skips=a,e.takes=r},changeRowExpand:function(e){var t=this.findGroupInfo(e),n=this._dataSource,i=n.remoteOperations().groupPaging,o=(0,a.normalizeSortingInfo)(n.group());return t?(t.isExpanded=!t.isExpanded,i&&t.isExpanded&&e.length<o.length?x(n,{filter:(0,s.createGroupFilter)(e,{filter:n.filter(),group:n.group()}),group:[o[e.length]]}).done(function(e){t.count=e}):(new c.Deferred).resolve()):(new c.Deferred).reject()},handleDataLoading:function(e){var t=this,n=e.storeLoadOptions,i=(0,a.normalizeSortingInfo)(n.group||e.loadOptions.group);if(!e.isCustomLoading&&i.length){if(e.remoteOperations.grouping){var o=t._dataSource.remoteOperations().paging;n.group=(0,a.normalizeSortingInfo)(n.group),n.group.forEach(function(e,t){var i=t===n.group.length-1;e.isExpanded=!o||!i})}e.group=e.group||i,e.remoteOperations.paging?(e.skip=n.skip,e.take=n.take,n.requireGroupCount=!0,n.group=i.slice(0,1),t._updatePagingOptions(e),n.skip=e.skip,n.take=e.take):t.foreachGroups(function(e){e.count=0})}},handleDataLoadedCore:function(e,t){var n,i=this,o=(0,a.normalizeSortingInfo)(e.storeLoadOptions.group||e.loadOptions.group).length,r=e.group?e.group.length:0,s={};if(e.isCustomLoading)t(e),g(i,e.data,o,s,[],e.isCustomLoading,e.storeLoadOptions.isLoadingAll);else{if((n=m(i,e,e.data,o))<0)throw l.default.Error("E1037");if(e.remoteOperations.paging||o&&e.extra&&e.loadOptions.requireTotalCount&&(e.extra.totalCount=n,e.extra.groupCount=e.data.length),r&&e.storeLoadOptions.requireGroupCount&&!isFinite(e.extra.groupCount))throw u.errors.Error("E4022");i.updateTotalItemsCount(e),e.remoteOperations.paging||i._updatePagingOptions(e),t(e),e.remoteOperations.paging||i._processPaging(e,o)}d(i,e,o,s,0,e.data)},_processSkips:function(e,t,n){if(n){var i=e[0],o=t[0],a=i&&i.items;void 0!==o&&(i.isContinuation=!0,a&&(i.items=a.slice(o),this._processSkips(i.items,t.slice(1),n-1)))}},_processTakes:function(e,t,n,i,o){if(i&&e){o=o||[];var a=e[e.length-1],r=a&&a.items,s=n[0],l=t[0];if(a){var u=a.count-(a.isContinuation&&l||0)||r.length;void 0!==s&&u>s&&(a.isContinuationOnNextPage=!0,o.forEach(function(e){e.isContinuationOnNextPage=!0}),r&&(r=r.slice(0,s),a.items=r)),o.push(a),this._processTakes(r,t.slice(1),n.slice(1),i-1,o)}}},_processPaging:function(e,t){this._processSkips(e.data,e.skips,t),this._processTakes(e.data,e.skips,e.takes,t)},isLastLevelGroupItemsPagingLocal:function(){return!1},sortLastLevelGroupItems:function(e){return e},refresh:function(e,t,n){function i(e,t){t.length===l+1&&(e.isExpanded=o)}var o,l,u=this,d=u._dataSource,h=e.storeLoadOptions,p=e.group||e.storeLoadOptions.group,g=(0,a.normalizeSortingInfo)(u._group);for(l=0;l<g.length;l++)o=v(p,l),v(u._group,l)!==o&&u.foreachGroups(i);if(u.callBase.apply(this,arguments),p&&e.remoteOperations.paging&&(t||n.reload))return f(u,function(t){var n=x(d,{filter:(0,s.createGroupFilter)(t.path,{filter:h.filter,group:p}),group:p.slice(t.path.length)}),i=x(d,{filter:(0,r.createOffsetFilter)(t.path,{filter:h.filter,group:p}),group:p.slice(t.path.length-1,1)});return(0,c.when)(i,n).done(function(n,i){n=parseInt(n.length?n[0]:n),i=parseInt(i.length?i[0]:i),t.offset=n,t.count!==i&&(t.count=i,u.updateTotalItemsCount(e))})},!0)}}}())},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(344));o.default.registerModule("masterDetail",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}n(615);var o=i(n(23)),a=i(n(347));o.default.registerModule("editing",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(345));o.default.registerModule("editorFactory",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(348));o.default.registerModule("validating",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(198)),r=i(n(349));o.default.registerModule("virtualScrolling",r.default),a.default.extend(r.default.extenders.dataSourceAdapter)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(351));o.default.registerModule("filterRow",a.default)},function(e,t,n){var i=n(2),o=n(4).noop,a=n(10).getPublicElement,r=n(77),s=n(0).extend,l=n(105),u=l.inherit({_getDefaultOptions:function(){return s(this.callBase(),{orientation:"horizontal",tabIndex:null,onHoverStart:o})},_initDataAdapter:function(){this._dataAdapter=this.option("_dataAdapter"),this._dataAdapter||this.callBase()},_renderContentImpl:function(){this._renderContextMenuOverlay(),this.callBase();var e=this._dataAdapter.getNodeByKey(this.option("_parentKey"));e&&this._renderItems(this._getChildNodes(e)),this._renderDelimiter()},_renderDelimiter:function(){this.$contentDelimiter=i("<div>").appendTo(this._itemContainer()).addClass("dx-context-menu-content-delimiter")},_getOverlayOptions:function(){return s(this.callBase(),{onPositioned:this._overlayPositionedActionHandler.bind(this)})},_overlayPositionedActionHandler:function(e){this._showDelimiter(e)},_hoverEndHandler:function(e){this.callBase(e),this._toggleFocusClass(!1,e.currentTarget)},_isMenuHorizontal:function(){return"horizontal"===this.option("orientation")},_hoverStartHandler:function(e){this.option("onHoverStart")(e),this.callBase(e),this._toggleFocusClass(!0,e.currentTarget)},_drawSubmenu:function(e){this._actions.onShowing({rootItem:a(e),submenu:this}),this.callBase(e),this._actions.onShown({rootItem:a(e),submenu:this})},_hideSubmenu:function(e){this._actions.onHiding({cancel:!0,rootItem:a(e),submenu:this}),this.callBase(e),this._actions.onHidden({rootItem:a(e),submenu:this})},_showDelimiter:function(e){if(this.$contentDelimiter){var t=this._itemContainer().children(".dx-submenu").eq(0),n=this.option("position").of,i={of:t},o=e.position,a=o.v.location,s=o.h.location,l=n.offset(),u=Math.round(l.left),c=Math.round(l.top),d=n.width(),h=n.height(),p=t.width(),f=t.height();this.$contentDelimiter.css("display","block"),this.$contentDelimiter.width(this._isMenuHorizontal()?d<p?d-2:p:2),this.$contentDelimiter.height(this._isMenuHorizontal()?2:h<f?h-2:f),this._isMenuHorizontal()?a>c?Math.round(s)===u?(i.offset="1 -1",i.at=i.my="left top"):(i.offset="-1 -1",i.at=i.my="right top"):(this.$contentDelimiter.height(5),Math.round(s)===u?(i.offset="1 4",i.at=i.my="left bottom"):(i.offset="-1 2",i.at=i.my="right bottom")):s>u?Math.round(a)===c?(i.offset="-1 1",i.at=i.my="left top"):(i.offset="-1 -1",i.at=i.my="left bottom"):Math.round(a)===c?(i.offset="1 1",i.at=i.my="right top"):(i.offset="1 -1",i.at=i.my="right bottom"),r.setup(this.$contentDelimiter,i)}},_getContextMenuPosition:function(){return this.option("position")},isOverlayVisible:function(){return this._overlay.option("visible")},getOverlayContent:function(){return this._overlay.$content()}});e.exports=u},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(354));o.default.registerModule("headerFilter",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(356));o.default.registerModule("filterSync",a.default)},function(e,t,n){function i(e,t){var n=o("<div>").addClass(s),i=o("<div>").addClass(l),d=e.value||[],h=function(e){return e&&e.length>0?e[0]:null},p=function(e){return e&&2===e.length?e[1]:null};t.append(n),t.append(o("<span>").addClass(u).text(c)),t.append(i),t.addClass(r),this._editorFactory.createEditor.call(this,n,a({},e.field,e,{value:h(d),parentType:"filterBuilder",setValue:function(t){d=[t,p(d)],e.setValue(d)}})),this._editorFactory.createEditor.call(this,i,a({},e.field,e,{value:p(d),parentType:"filterBuilder",setValue:function(t){d=[h(d),t],e.setValue(d)}}))}var o=n(2),a=n(0).extend,r="dx-filterbuilder-range",s=r+"-start",l=r+"-end",u=r+"-separator",c="–";t.getConfig=function(e){return{name:"between",caption:e,icon:"range",valueSeparator:c,dataTypes:["number","date","datetime"],editorTemplate:i}}},function(e,t,n){var i={"=":"equal","<>":"notequal","<":"less","<=":"lessorequal",">":"greater",">=":"greaterorequal",notcontains:"doesnotcontain",contains:"contains",startswith:"startswith",endswith:"endswith",isblank:"isblank",isnotblank:"isnotblank"},o={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",isblank:"isBlank",isnotblank:"isNotBlank",between:"between"};e.exports={getIconByFilterOperation:function(e){return i[e]},getNameByFilterOperation:function(e){return o[e]}}},function(e,t,n){function i(e){var t=function(e,t){return t?t+"/"+e:e},n=function e(n,i){var o=[];return n.forEach(function(n){if(n.items){var a=e(n.items,t(n.text,i));o=o.concat(a)}n.selected&&o.push(t(n.text,i))}),o},i=e&&e.getController("headerFilter");return{dataTypes:["string","date","datetime","number","boolean","object"],calculateFilterExpression:function(e,t){var n=[],i=e.length-1;return e&&e.forEach(function(e,o){if(c.isCondition(e)||c.isGroup(e)){var a=c.getFilterExpression(e,[t],[],"headerFilter");n.push(a)}else n.push(c.getFilterExpression([t.dataField,"=",e],[t],[],"headerFilter"));o!==i&&n.push("or")}),1===n.length&&(n=n[0]),n},editorTemplate:function(t,n){var r=a("<div>").addClass("dx-filterbuilder-item-value-text").appendTo(n),l=s(!0,{},e.columnOption(t.field.dataField));(0,o.renderValueText)(r,t.text&&t.text.split("|"));return l.filterType="include",l.filterValues=t.value?t.value.slice():[],i.showHeaderFilterMenuBase({columnElement:r,column:l,apply:function(){var e;e=this.filterValues,t.setValue(e),i.hideHeaderFilterMenu()},onHidden:function(){t.closeEditor()},isFilterBuilder:!0}),n},customizeText:function(t){var o=t.value,a=e.columnOption(t.field.dataField),r=a&&a.headerFilter,c=a&&a.lookup;if(r&&r.dataSource||c&&c.dataSource){a=s({},a,{filterType:"include",filterValues:[o]});var d=i.getDataSource(a);d.paginate=!1,(!r||!r.dataSource)&&c.items&&(d.store=c.items);var h=new l.DataSource(d),p=new u.Deferred;return h.load().done(function(e){p.resolve(n(e)[0])}),p}return i.getHeaderItemText(o,a,0,e.option("headerFilter"))}}}var o=n(357),a=n(2),r=n(15),s=n(0).extend,l=n(45),u=n(6),c=n(199);t.anyOf=function(e){return s(i(e),{name:"anyof",icon:"selectall",caption:r.format("dxFilterBuilder-filterOperationAnyOf")})},t.noneOf=function(e){var t=i(e);return s({},t,{calculateFilterExpression:function(e,n){var i=t.calculateFilterExpression(e,n);return i&&0!==i.length?"!"===i[0]?i:["!",i]:null},name:"noneof",icon:"unselectall",caption:r.format("dxFilterBuilder-filterOperationNoneOf")})}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(358));o.default.registerModule("filterBuilder",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(360));o.default.registerModule("filterPanel",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(361));o.default.registerModule("search",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(362));o.default.registerModule("pager",a.default)},function(e,t,n){var i=n(2),o=n(5),a=n(14),r=n(43),s=n(8),l=n(4),u=n(3).each,c=n(1),d=n(0).extend,h=n(19),p=n(24),f=n(15),g=n(17),_=n(95),m=n(116),v=n(9),y=n(96),b="dx-page",x="."+b,w="dx-pages",C="dx-selection",k="dx-page-size",S="."+k,I="dx-prev-button",T="dx-next-button",D="dx-info",E="dx-button-disable",A=a.inherit({ctor:function(e,t){this.index=t,this._$page=i("<div>").text(e).addClass(b)},value:function(e){if(!c.isDefined(e)){var t=this._$page.text();return c.isNumeric(t)?parseInt(t):t}this._$page.text(e)},element:function(){return this._$page},select:function(e){this._$page.toggleClass(C,e)},render:function(e,t){t?this._$page.prependTo(e):this._$page.appendTo(e)}}),O=g.inherit({_getDefaultOptions:function(){return d(this.callBase(),{visible:!0,pagesNavigatorVisible:"auto",pageIndex:1,maxPagesCount:10,pageCount:10,totalCount:0,pageSize:5,showPageSizes:!0,pageSizes:[5,10],hasKnownLastPage:!0,showNavigationButtons:!1,showInfo:!1,infoText:f.getFormatter("dxPager-infoText"),pagesCountText:f.getFormatter("dxPager-pagesCountText"),rtlEnabled:!1,lightModeEnabled:!1,pageIndexChanged:l.noop,pageSizeChanged:l.noop})},_toggleVisibility:function(e){var t=this.$element();t&&t.css("display",e?"":"none")},_getPages:function(e,t){var n,i,o=[],a=!this.option("hasKnownLastPage");if(t>0||a)if(t<=this.option("maxPagesCount")){for(i=1;i<=t;i++)o.push(new A(i,i-1));a&&o.push(new A(">",i-1))}else{for(o.push(new A(1,0)),n=e?e.value()-e.index:1,i=1;i<=4;i++)o.push(new A(n+i,i));o.push(new A(t,5)),a&&o.push(new A(">",5))}return o},_getPageByValue:function(e){var t,n;for(n=0;n<this._pages.length;n++)if((t=this._pages[n]).value()===e)return t},_processSelectedPage:function(e,t,n){var i,o=this,a=!1;o._pages&&(u(o._pages,function(e,n){t===n.value()&&(a=!0)}),a||(o.selectedPage=null)),c.isDefined(o.selectedPage)?t===n&&n>e&&5!==o.selectedPage.index&&(o.selectedPage.index=5):t>4&&t<n&&(i=n-4<t?4-(n-t)+1:2,o.selectedPage=new A(t,i))},_selectPageByValue:function(e){var t,n,i,o,a=this,r=a._getPageByValue(e),s=a._pages,l=s.length;if(c.isDefined(r)){if(n=a._pages[r.index-1],(i=a._pages[r.index+1])&&">"===i.value()&&(o=i,i=void 0,l--,s.pop()),a.selectedPage&&a.selectedPage.select(!1),r.select(!0),a.selectedPage=r,i&&i.value()-e>1)if(0!==r.index)for(n.value(e+1),a._pages.splice(r.index,1),a._pages.splice(r.index-1,0,r),a._pages[r.index].index=r.index,r.index=r.index-1,t=r.index-1;t>0;t--)a._pages[t].value(a._pages[t+1].value()-1);else for(t=0;t<l-1;t++)a._pages[t].value(t+1);if(n&&e-n.value()>1)if(r.index!==l-1)for(i.value(e-1),a._pages.splice(r.index,1),a._pages.splice(r.index+1,0,r),a._pages[r.index].index=r.index,r.index=r.index+1,t=r.index+1;t<l-1;t++)a._pages[t].value(a._pages[t-1].value()+1);else for(t=1;t<=l-2;t++)a._pages[l-1-t].value(a._pages[l-1].value()-t);o&&s.push(o)}},_updatePagesTabIndices:function(){var e=this,t=this.selectedPage._$page;o.on(t,"focus",function n(){var a=i(e.element()).find("[role=button]:not(.dx-button-disable)");u(a,function(e,t){return i(t).attr("tabindex",0)}),o.off(t,"focus",n)})},_nextPage:function(e){var t=this.option("pageIndex"),n=this.option("pageCount");c.isDefined(t)&&((t="next"===e?++t:--t)>0&&t<=n&&this.option("pageIndex",t))},_renderPages:function(e){var t,n,a=this,r=e.length,s=a._createAction(function(e){var t=e.event,n=i(t.target).text(),o=">"===n?a.option("pageCount")+1:Number(n);a.option("pageIndex",o)});r>1&&(a._pageClickHandler=function(e){s({event:e})},o.on(a._$pagesChooser,v.addNamespace([p.up,h.name],a.Name+"Pages"),x,a._pageClickHandler),y.registerKeyboardAction("pager",a,a._$pagesChooser,x,s));for(var l=0;l<r;l++)(n=e[l]).render(a._$pagesChooser,a.option("rtlEnabled")),a.setAria({role:"button",label:"Page "+n.value()},n.element()),y.setTabIndex(a,n.element()),e[l+1]&&e[l+1].value()-n.value()>1&&(t=i("<div>").text(". . .").addClass("dx-separator"),a.option("rtlEnabled")?t.prependTo(a._$pagesChooser):t.appendTo(a._$pagesChooser))},_calculateLightPagesWidth:function(e,t){return Number(e.css("minWidth").replace("px",""))+10*t.toString().length},_renderLightPages:function(){var e,t,n=this,a=this.option("pageCount"),r=this.option("pageIndex"),s=n._createAction(function(){n.option("pageIndex",a)}),l=this.option("pagesCountText"),u=i("<div>").addClass("dx-light-pages").appendTo(this._$pagesChooser);t=i("<div>").addClass("dx-page-index").appendTo(u),n._pageIndexEditor=n._createComponent(t,m,{value:r,min:1,max:a,width:n._calculateLightPagesWidth(t,a),onValueChanged:function(e){n.option("pageIndex",e.value)}}),i("<span>").text(l).addClass("dx-info-text "+D).appendTo(u),e=i("<span>").addClass("dx-pages-count").text(a),o.on(e,v.addNamespace(h.name,n.Name+"PagesCount"),function(e){s({event:e})}),y.registerKeyboardAction("pager",n,e,void 0,s),e.appendTo(u),n.setAria({role:"button",label:"Navigates to the last page"},e)},_renderPagesChooser:function(){var e=this,t=e.option("lightModeEnabled"),n=e.option("pagesNavigatorVisible"),o=e.$element();if(e._$pagesChooser&&e._$pagesChooser.remove(),n){if(e._pages&&0===e._pages.length)return void(e.selectedPage=null);e._$pagesChooser=i("<div>").addClass(w).appendTo(o),"auto"===n&&e._$pagesChooser.css("visibility",1===e.option("pageCount")?"hidden":""),t||e._renderInfo(),e._renderNavigateButton("prev"),t?e._renderLightPages():e._renderPages(e._pages),e._renderNavigateButton("next"),e._updatePagesChooserWidth()}},_renderPageSizes:function(){var e,t,n,a=this,r=a.option("pageSizes"),s=r&&r.length,l=a.option("pageSize"),u=a._createAction(function(e){var n=e.event;t=parseInt(i(n.target).text()),a.option("pageSize",t)});for(o.on(a._$pagesSizeChooser,v.addNamespace(h.name,a.Name+"PageSize"),S,function(e){u({event:e})}),y.registerKeyboardAction("pager",a,a._$pagesSizeChooser,S,u),e=0;e<s;e++)n=i("<div>").text(r[e]).addClass(k),a.setAria({role:"button",label:"Display "+r[e]+" items on page"},n),y.setTabIndex(a,n),l===r[e]&&n.addClass(C),a._$pagesSizeChooser.append(n)},_calculateLightPageSizesWidth:function(e){return Number(this._$pagesSizeChooser.css("minWidth").replace("px",""))+10*Math.max.apply(Math,e).toString().length},_renderLightPageSizes:function(){var e,t=this,n=t.option("pageSizes");e=i("<div>").appendTo(t._$pagesSizeChooser),t._pageSizeEditor=t._createComponent(e,_,{dataSource:n,value:t.option("pageSize"),onSelectionChanged:function(e){t.option("pageSize",e.selectedItem)},width:t._calculateLightPageSizesWidth(n)})},_renderPagesSizeChooser:function(){var e=this,t=e.option("pageSizes"),n=e.option("showPageSizes"),o=t&&t.length,a=e.$element();e._$pagesSizeChooser&&e._$pagesSizeChooser.remove(),n&&o&&(e._$pagesSizeChooser=i("<div>").addClass("dx-page-sizes").appendTo(a),e.option("lightModeEnabled")?e._renderLightPageSizes():e._renderPageSizes(),e._pagesSizeChooserWidth=e._$pagesSizeChooser.width())},_renderInfo:function(){var e=this.option("infoText");this.option("showInfo")&&c.isDefined(e)&&(this._$info=i("<div>").css("display",this._isInfoHide?"none":"").addClass(D).text(r.format(e,this.selectedPage&&this.selectedPage.value(),this.option("pageCount"),this.option("totalCount"))).appendTo(this._$pagesChooser),this._isInfoHide||(this._infoWidth=this._$info.outerWidth(!0)))},_renderNavigateButton:function(e){var t,n=this,a=n._createAction(function(){n._nextPage(e)});if(n.option("showNavigationButtons")||n.option("lightModeEnabled")){t=i("<div>").addClass("dx-navigate-button");var r=!1;o.on(t,v.addNamespace([p.up,h.name],n.Name+"Pages"),function(e){if("dxpointerup"===e.type)r=!0;else if(r)return void(r=!1);a({event:e})}),y.registerKeyboardAction("pager",n,t,void 0,a),n.setAria({role:"button",label:"prev"===e?"Previous page":" Next page"},t),y.setTabIndex(n,t),n.option("rtlEnabled")?(t.addClass("prev"===e?T:I),t.prependTo(this._$pagesChooser)):(t.addClass("prev"===e?I:T),t.appendTo(this._$pagesChooser))}},_renderContentImpl:function(){this.$element().toggleClass("dx-light-mode",this.option("lightModeEnabled")),this._toggleVisibility(this.option("visible")),this._updatePageSizes(!0),this._updatePages(!0),y.restoreFocus(this)},_initMarkup:function(){var e=this.$element();e.addClass("dx-pager");var t=i("<div>").addClass(b);this._$pagesChooser=i("<div>").addClass(w).append(t).appendTo(e)},_render:function(){this.option().lightModeEnabled=!1,this.callBase(),this._updateLightMode()},_updatePageSizes:function(e){var t=this.option("lightModeEnabled"),n=this.option("pageSize"),i=this.option("pageSizes");t&&this._pageSizeEditor&&this._pageSizeEditor.option({value:n,dataSource:i,width:this._calculateLightPageSizesWidth(i)}),t&&!e||this._renderPagesSizeChooser()},_updatePages:function(e){var t=this.option("pageCount"),n=this.option("pageIndex"),i=this.option("lightModeEnabled");i?this._pageIndexEditor&&this._pageIndexEditor.option({value:n,width:this._calculateLightPagesWidth(this._pageIndexEditor.$element(),t)}):(this._processSelectedPage(this.option("maxPagesCount"),n,t),this._pages=this._getPages(this.selectedPage,t),this._selectPageByValue(n)),i&&!e||this._renderPagesChooser(),this._updateButtonsState(n)},_isPageIndexInvalid:function(e,t){var n="next"===e,i=this.option("rtlEnabled");return i&&n||!i&&!n?t<=1:t>=this.option("pageCount")},_updateButtonsState:function(e){var t=this.$element().find("."+T),n=this.$element().find("."+I);t.toggleClass(E,this._isPageIndexInvalid("next",e)),n.toggleClass(E,this._isPageIndexInvalid("prev",e))},_optionChanged:function(e){switch(e.name){case"visible":this._toggleVisibility(e.value);break;case"pageIndex":var t=this.option("pageIndexChanged");t&&t(e.value),this._updatePages();break;case"maxPagesCount":case"pageCount":case"totalCount":case"hasKnownLastPage":case"pagesNavigatorVisible":case"showNavigationButtons":this._updatePages();break;case"pageSize":var n=this.option("pageSizeChanged");n&&n(e.value),this._updatePageSizes();break;case"pageSizes":this._updatePageSizes();break;case"lightModeEnabled":this._renderContentImpl(),!e.value&&this._updateLightMode();break;default:this._invalidate()}},_clean:function(){this._$pagesChooser&&(o.off(this._$pagesChooser,v.addNamespace([p.up,h.name],this.Name+"Pages"),x,this._pageClickHandler),y.registerKeyboardAction("pager",this,this._$pagesChooser,x,this._pageKeyDownHandler)),this.callBase()},_getMinPagerWidth:function(){return(c.isDefined(this._pagesChooserWidth)?this._pagesChooserWidth:0)+(c.isDefined(this._pagesSizeChooserWidth)?this._pagesSizeChooserWidth:0)},_updatePagesChooserWidth:l.deferUpdater(function(){var e=this._pages&&this._pages.length>0?this._pages[this._pages.length-1]._$page.width():0;this._pagesChooserWidth=this._$pagesChooser.width()+e}),_updateLightMode:l.deferUpdater(function(){var e=this,t=this.$element().width(),n=c.isDefined(this._infoWidth)?this._infoWidth:0;l.deferRender(function(){e._isInfoHide&&t>e._getMinPagerWidth()+n&&(e._$info.show(),e._updatePagesChooserWidth(),e._isInfoHide=!1),!e._isInfoHide&&t>e._getMinPagerWidth()-n&&t<e._getMinPagerWidth()&&(e._$info.hide(),e._updatePagesChooserWidth(),e._isInfoHide=!0),l.deferUpdate(function(){l.deferRender(function(){e.option("lightModeEnabled")&&t>e._previousWidth?e.option("lightModeEnabled",!1):t<e._getMinPagerWidth()&&e.option("lightModeEnabled",!0),e._previousWidth=t})})})}),_dimensionChanged:function(){this._updateLightMode()},getHeight:function(){return this.option("visible")?this.$element().outerHeight():0}});e.exports=O,s("dxPager",O)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(363));t.DraggingHeaderView=a.default.views.draggingHeaderView,t.DraggingHeaderViewController=a.default.controllers.draggingHeader,t.ColumnsSeparatorView=a.default.views.columnsSeparatorView,t.TablePositionViewController=a.default.controllers.tablePosition,t.ColumnsResizerViewController=a.default.controllers.columnsResizer,t.TrackerView=a.default.views.trackerView,o.default.registerModule("columnsResizingReordering",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(364));o.default.registerModule("keyboardNavigation",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=n(4),r=n(1),s=n(3),l=n(0),u=n(20),c=i(n(18)),d=i(n(23)),h=i(n(15)),p=i(n(198)),f=i(n(166)),g=i(n(633)),_=i(n(41)),m=n(81),v=n(40),y="groupFooter",b=function(e,t){var n,i,a=(0,o.default)(e),r=t.column,s=t.summaryItems,l=[];if(!r.command&&s){for(n=0;n<s.length;n++)i=s[n],l.push((0,o.default)("<div>").css("textAlign",i.alignment||r.alignment).addClass("dx-datagrid-summary-item").addClass("dx-datagrid-text-content").addClass(i.cssClass).toggleClass("dx-datagrid-group-text-content","group"===t.rowType).text(d.default.getSummaryText(i,t.summaryTexts)));a.append(l)}},x=function(e,t){var n=e.option("summary.texts")||{};return{totalItem:t.row,summaryItems:t.row.summaryCells[t.columnIndex],summaryTexts:n}},w=function(e){return e.summary||e.aggregates||[]},C=function(e){return e.option("summary.recalculateWhileEditing")};t.FooterView=f.default.ColumnsView.inherit({_getRows:function(){return this._dataController.footerItems()},_getCellOptions:function(e){return(0,l.extend)(this.callBase(e),x(this,e))},_renderCellContent:function(e,t){b(e,t),this.callBase(e,t)},_renderCore:function(e){var t=this._dataController.footerItems()[0];e&&e.columnIndices||this.element().empty().addClass("dx-datagrid-total-footer").toggleClass("dx-datagrid-nowrap",!this.option("wordWrapEnabled")),t&&t.summaryCells&&t.summaryCells.length&&this._updateContent(this._renderTable({change:e}),e)},_updateContent:function(e,t){if(!t||"update"!==t.changeType||!t.columnIndices)return this.callBase.apply(this,arguments);var n=this._getTableElement().find(".dx-row"),i=e.find(".dx-row");this._updateCells(n,i,t.columnIndices[0])},_rowClick:function(e){var t=this._dataController.footerItems()[e.rowIndex]||{};this.executeAction("onRowClick",(0,l.extend)({},e,t))},_columnOptionChanged:function(e){var t=e.optionNames;e.changeTypes.grouping||(t.width||t.visibleWidth)&&this.callBase(e)},_handleDataChanged:function(e){var t=e.changeType;"update"===e.changeType&&e.repaintChangesOnly?e.totalColumnIndices?e.totalColumnIndices.length&&this.render(null,{changeType:"update",columnIndices:[e.totalColumnIndices]}):this.render():"refresh"!==t&&"append"!==t&&"prepend"!==t||this.render()},getHeight:function(){return this.getElementHeight()},isVisible:function(){return!!this._dataController.footerItems().length}});var k=function(){return{init:function(){this.callBase.apply(this,arguments),this._totalAggregates=[],this._summaryGetter=a.noop},summaryGetter:function(e){return arguments.length?void((0,r.isFunction)(e)&&(this._summaryGetter=e)):this._summaryGetter},summary:function(e){return arguments.length?void(this._summaryGetter=function(){return e}):this._summaryGetter()},totalAggregates:function(){return this._totalAggregates},isLastLevelGroupItemsPagingLocal:function(){var e=this.summary(),t=e&&e.sortByGroups();return t&&t.length},sortLastLevelGroupItems:function(e,t,n){var i=(0,m.multiLevelGroup)((0,_.default)(e),t).toArray(),o=[];return n.forEach(function(e){!function e(t,n,i,o){o=o||[];for(var a=0;a<t.length;a++)o.push(t[a].key),1===n?i(o,t[a].items):e(t[a].items,n-1,i,o),o.pop()}(i,t.length,function(t,n){e.toString()===t.toString()&&(o=o.concat(n))})}),o}}}(),S=function(){var e=function e(t,n,i){return i?t.map(function(t){var o={},a=e(t.items||[],n,i-1);return Object.defineProperty(o,"aggregates",{get:function(){return t.aggregates},set:function(e){t.aggregates=e}}),(0,l.extend)(o,t,{items:a})}):t.filter(function(e){return n.indexOf(e)<0})},t=function(t,n,i,o){var a;if(C(t)){var r=t.getController("editing");if(r){var s=r.getInsertedData();s.length&&(i=function e(t,n,i){return i?e(t,n.map(function(e){return{items:[e]}},i-1)):t.concat(n)}(i,s,o));var l=r.getRemovedData();l.length&&(i=e(i,l,o))}}return n&&(a=new g.default({totalAggregates:n.totalAggregates,groupAggregates:n.groupAggregates,data:i,groupLevel:o})).calculate(),a?a.totalAggregates():[]},n=function(e,t,n){var i=n&&n.sortByGroups&&n.sortByGroups();return i&&i.length?function e(t,n,i){if(!t||!n.length)return t;var o,a=n[0],r=i[0];return a&&r&&r.length&&(o=(0,_.default)(t),(0,s.each)(r,function(e){o=0===e?o.sortBy(this.selector,this.desc):o.thenBy(this.selector,this.desc)}),o.enumerate().done(function(e){t=e})),n=n.slice(1),i=i.slice(1),n.length&&i.length&&(0,s.each)(t,function(){this.items=e(this.items,n,i)}),t}(e,t,i):e};return{_customizeRemoteOperations:function(e){var t=this.summary();t&&(e.remoteOperations.summary?e.isCustomLoading&&!e.storeLoadOptions.isLoadingAll||(e.storeLoadOptions.group&&(e.remoteOperations.grouping?e.storeLoadOptions.groupSummary=t.groupAggregates:t.groupAggregates.length&&(e.remoteOperations.paging=!1)),e.storeLoadOptions.totalSummary=t.totalAggregates):(t.totalAggregates.length||t.groupAggregates.length&&e.storeLoadOptions.group)&&(e.remoteOperations.paging=!1)),this.callBase.apply(this,arguments);var n=e.cachedPagesData.extra;n&&n.summary&&!e.isCustomLoading&&(e.storeLoadOptions.totalSummary=void 0)},_handleDataLoadedCore:function(e){var i,o=this,a=(0,v.normalizeSortingInfo)(e.storeLoadOptions.group||e.loadOptions.group||[]),s=e.remoteOperations||{},l=o.summaryGetter()(s);e.isCustomLoading&&!e.storeLoadOptions.isLoadingAll||(s.summary?!s.paging&&a.length&&l&&(s.grouping||t(o,{groupAggregates:l.groupAggregates},e.data,a.length),e.data=n(e.data,a,l)):s.paging||(i=t(o,l,e.data,a.length),e.data=n(e.data,a,l),e.extra=(0,r.isPlainObject)(e.extra)?e.extra:{},e.extra.summary=i)),e.isCustomLoading||(o._totalAggregates=e.extra&&e.extra.summary||o._totalAggregates),o.callBase(e)}}}();p.default.extend(k),p.default.extend(S),t.renderSummaryCell=b,d.default.registerModule("summary",{defaultOptions:function(){return{summary:{groupItems:void 0,totalItems:void 0,calculateCustomSummary:void 0,skipEmptyValues:!0,recalculateWhileEditing:!1,texts:{sum:h.default.getFormatter("dxDataGrid-summarySum"),sumOtherColumn:h.default.getFormatter("dxDataGrid-summarySumOtherColumn"),min:h.default.getFormatter("dxDataGrid-summaryMin"),minOtherColumn:h.default.getFormatter("dxDataGrid-summaryMinOtherColumn"),max:h.default.getFormatter("dxDataGrid-summaryMax"),maxOtherColumn:h.default.getFormatter("dxDataGrid-summaryMaxOtherColumn"),avg:h.default.getFormatter("dxDataGrid-summaryAvg"),avgOtherColumn:h.default.getFormatter("dxDataGrid-summaryAvgOtherColumn"),count:h.default.getFormatter("dxDataGrid-summaryCount")}},sortByGroupSummaryInfo:void 0}},views:{footerView:t.FooterView},extenders:{controllers:{data:{_isDataColumn:function(e){return e&&(!(0,r.isDefined)(e.groupIndex)||e.showWhenGrouped)},_isGroupFooterVisible:function(){var e,t,n,i=this.option("summary.groupItems")||[];for(n=0;n<i.length;n++)if(e=i[n],t=this._columnsController.columnOption(e.showInColumn||e.column),e.showInGroupFooter&&this._isDataColumn(t))return!0;return!1},_processGroupItems:function(e,t,n){var i=n&&n.data,o=this.callBase.apply(this,arguments);return n&&(void 0===n.isGroupFooterVisible&&(n.isGroupFooterVisible=this._isGroupFooterVisible()),i&&i.items&&n.isGroupFooterVisible&&(n.collectContinuationItems||!i.isContinuationOnNextPage)&&o.push({rowType:y,key:n.path.slice(),data:i,groupIndex:n.path.length-1,values:[]})),o},_processGroupItem:function(e,t){var n=this;if(t.summaryGroupItems||(t.summaryGroupItems=n.option("summary.groupItems")||[]),"group"===e.rowType){var i=-1,o=-1;(0,s.each)(t.visibleColumns,function(n){var a=t.visibleColumns[n-1];e.groupIndex===this.groupIndex&&(i=this.index),n>0&&"expand"===a.command&&"expand"!==this.command&&(o=this.index)}),e.summaryCells=this._calculateSummaryCells(t.summaryGroupItems,w(e.data),t.visibleColumns,function(e,t){return e.showInGroupFooter?-1:e.alignByColumn&&t&&!(0,r.isDefined)(t.groupIndex)&&t.index!==o?t.index:i})}return e.rowType===y&&(e.summaryCells=this._calculateSummaryCells(t.summaryGroupItems,w(e.data),t.visibleColumns,function(e,t){return e.showInGroupFooter&&n._isDataColumn(t)?t.index:-1})),e},_calculateSummaryCells:function(e,t,n,i){var o=this,a=[],u={};return(0,s.each)(e,function(e,n){var a,s,c=o._columnsController.columnOption(n.column),h=n.showInColumn&&o._columnsController.columnOption(n.showInColumn)||c,p=i(n,h);p>=0&&(u[p]||(u[p]=[]),(a=t[e])==a)&&((0,r.isDefined)(n.valueFormat)?s=n.valueFormat:"count"!==n.summaryType&&(s=d.default.getFormatByDataType(c&&c.dataType)),u[p].push((0,l.extend)({},n,{value:(0,r.isString)(a)&&c&&c.deserializeValue?c.deserializeValue(a):a,valueFormat:s,columnCaption:c&&c.index!==p?c.caption:void 0})))}),(0,r.isEmptyObject)(u)||(0,s.each)(n,function(){a.push(u[this.index]||[])}),a},_getSummaryCells:function(e,t){var n=this,i=n._columnsController;return n._calculateSummaryCells(e,t,i.getVisibleColumns(),function(e,t){return n._isDataColumn(t)?t.index:-1})},_updateItemsCore:function(e){var t,n,i=this,o=i._dataSource,a=i._footerItems,r=a&&a[0]&&a[0].summaryCells,s=i.option("summary.totalItems");i._footerItems=[],o&&s&&s.length&&(n=o.totalAggregates(),t=i._getSummaryCells(s,n),e&&e.repaintChangesOnly&&r&&(e.totalColumnIndices=t.map(function(e,t){return JSON.stringify(e)!==JSON.stringify(r[t])?t:-1}).filter(function(e){return e>=0})),t.length&&i._footerItems.push({rowType:"totalFooter",summaryCells:t})),i.callBase(e)},_prepareUnsavedDataSelector:function(e){if(C(this)){var t=this.getController("editing");if(t)return function(n){return n=t.getUpdatedData(n),e(n)}}return e},_prepareAggregateSelector:function(e,t){return e=this._prepareUnsavedDataSelector(e),"avg"===t||"sum"===t?function(t){var n=e(t);return(0,r.isDefined)(n)?Number(n):n}:e},_getAggregates:function(e,t){var n=this,i=n.getController("columns"),o=n.option("summary.calculateCustomSummary"),a=n.option("summary.skipEmptyValues");return(0,s.map)(e||[],function(e){var s,l=i.columnOption(e.column),d=l&&l.calculateCellValue?l.calculateCellValue.bind(l):(0,u.compileGetter)(l?l.dataField:e.column),h=e.summaryType||"count",p=e.column,f=(0,r.isDefined)(e.skipEmptyValues)?e.skipEmptyValues:a;return t?{selector:e.column,summaryType:h}:(p=n._prepareAggregateSelector(d,h),"custom"===h&&(o||(c.default.log("E1026"),o=function(){}),s={component:n.component,name:e.name},o(s),s.summaryProcess="calculate",h={seed:function(e){return s.summaryProcess="start",s.totalValue=void 0,s.groupIndex=e,delete s.value,o(s),s.totalValue},step:function(e,t){return s.summaryProcess="calculate",s.totalValue=e,s.value=t,o(s),s.totalValue},finalize:function(e){return s.summaryProcess="finalize",s.totalValue=e,delete s.value,o(s),s.totalValue}}),{selector:p,aggregator:h,skipEmptyValues:f})})},_addSortInfo:function(e,t,n,i){var o;t&&(o=t.groupIndex,i=i||t.sortOrder,(0,r.isDefined)(o)&&(e[o]=e[o]||[],e[o].push({selector:n,desc:"desc"===i})))},_findSummaryItem:function(e,t){var n=-1;return(0,r.isDefined)(t)&&(0,s.each)(e||[],function(e){if(this.name===t||e===t||this.summaryType===t||this.column===t||function(e){var t=e.summaryType,n=e.column;return t&&n&&t+"_"+n}(this)===t)return n=e,!1}),n},_getSummarySortByGroups:function(e,t){var n=this,i=n._columnsController,o=i.getGroupColumns(),a=[];if(t&&t.length)return(0,s.each)(e||[],function(){var e=this.sortOrder,l=this.groupColumn,u=n._findSummaryItem(t,this.summaryItem);if(!(u<0)){var c=function(e){return w(e)[u]};(0,r.isDefined)(l)?(l=i.columnOption(l),n._addSortInfo(a,l,c,e)):(0,s.each)(o,function(t,i){n._addSortInfo(a,i,c,e)})}}),a},_createDataSourceAdapterCore:function(e,t){var n=this,i=this.callBase(e,t);return i.summaryGetter(function(e){return n._getSummaryOptions(e||t)}),i},_getSummaryOptions:function(e){var t=this,n=t.option("summary.groupItems"),i=t.option("summary.totalItems"),o=t.option("sortByGroupSummaryInfo"),a=t._getAggregates(n,e&&e.grouping&&e.summary),r=t._getAggregates(i,e&&e.summary);if(a.length||r.length)return{groupAggregates:a,totalAggregates:r,sortByGroups:function(){return t._getSummarySortByGroups(o,n)}}},publicMethods:function(){var e=this.callBase();return e.push("getTotalSummaryValue"),e},getTotalSummaryValue:function(e){var t=this._findSummaryItem(this.option("summary.totalItems"),e),n=this._dataSource.totalAggregates();if(n.length&&t>-1)return n[t]},optionChanged:function(e){"summary"!==e.name&&"sortByGroupSummaryInfo"!==e.name||(e.name="dataSource"),this.callBase(e)},init:function(){this._footerItems=[],this.callBase()},footerItems:function(){return this._footerItems}},editing:{_refreshSummary:function(){C(this)&&this._dataController.refresh({load:!0,changesOnly:!0})},_addEditData:function(e){var t=this.callBase.apply(this,arguments);return e.type&&this._refreshSummary(),t},_removeEditDataItem:function(){var e=this.callBase.apply(this,arguments);return this._refreshSummary(),e},cancelEditData:function(){var e=this.callBase.apply(this,arguments);return this._refreshSummary(),e}}},views:{rowsView:{_createRow:function(e){var t=this.callBase(e);return e&&t.addClass(e.rowType===y?"dx-datagrid-group-footer":""),t},_renderCells:function(e,t){this.callBase.apply(this,arguments),"group"===t.row.rowType&&t.row.summaryCells&&t.row.summaryCells.length&&this._renderGroupSummaryCells(e,t)},_hasAlignByColumnSummaryItems:function(e,t){return!(0,r.isDefined)(t.columns[e].groupIndex)&&t.row.summaryCells[e].length},_getAlignByColumnCellCount:function(e,t){for(var n,i=0,o=1;o<e;o++)n=t.row.summaryCells.length-o,i=this._hasAlignByColumnSummaryItems(n,t)?o:i;return i},_renderGroupSummaryCells:function(e,t){var n=e.children().last(),i=Number(n.attr("colSpan"))||1,o=this._getAlignByColumnCellCount(i,t);this._renderGroupSummaryCellsCore(n,t,i,o)},_renderGroupSummaryCellsCore:function(e,t,n,i){if(i>0){e.attr("colSpan",n-i);for(var o=0;o<i;o++){var a=t.columns.length-i+o;this._renderCell(e.parent(),(0,l.extend)({column:t.columns[a],columnIndex:this._getSummaryCellIndex(a,t.columns)},t))}}},_getSummaryCellIndex:function(e){return e},_getCellTemplate:function(e){return!e.column.command&&!(0,r.isDefined)(e.column.groupIndex)&&e.summaryItems&&e.summaryItems.length?b:this.callBase(e)},_getCellOptions:function(e){var t=this.callBase(e);return e.row.summaryCells?(0,l.extend)(t,x(this,e)):t}}}}})},function(e,t,n){function i(e,t,n,o){var a=0;if(e<t)for(;a<n.items.length;a++)i(e+1,t,n.items[a],o);e===t&&o(n)}function o(e,t){var n,i;if("map"in e)return e.map(t);for(n in i=new Array(e.length),e)i[n]=t(e[n],n);return i}function a(e){return e===d.aggregators.count}function r(e){var t=(0,l.compileGetter)(e.selector),n=!("skipEmptyValues"in e)||e.skipEmptyValues,i=e.aggregator;if("string"==typeof i&&!(i=d.aggregators[i]))throw c.errors.Error("E4001",e.aggregator);return{selector:t,aggregator:i,skipEmptyValues:n}}var s=function(e){return e&&e.__esModule?e:{default:e}}(n(14)),l=n(20),u=n(1),c=n(35),d=n(40);e.exports=s.default.inherit({ctor:function(e){this._data=e.data,this._groupLevel=e.groupLevel||0,this._totalAggregates=o(e.totalAggregates||[],r),this._groupAggregates=o(e.groupAggregates||[],r),this._totals=[]},calculate:function(){this._totalAggregates.length&&this._calculateTotals(0,{items:this._data}),this._groupAggregates.length&&this._groupLevel>0&&this._calculateGroups({items:this._data})},totalAggregates:function(){return this._totals},_aggregate:function(e,t,n){var i,o,r=t.items?t.items.length:0;for(i=0;i<e.length;i++)if(a(e[i].aggregator))n[i]=(n[i]||0)+r;else for(o=0;o<r;o++)this._accumulate(i,e[i],n,t.items[o])},_calculateTotals:function(e,t){var n;if(0===e&&(this._totals=this._seed(this._totalAggregates)),e===this._groupLevel)this._aggregate(this._totalAggregates,t,this._totals);else for(n=0;n<t.items.length;n++)this._calculateTotals(e+1,t.items[n]);0===e&&(this._totals=this._finalize(this._totalAggregates,this._totals))},_calculateGroups:function(e){function t(e){e.aggregates=a(o-1),o===n?r(e,e.aggregates):i(o,n,e,function(t){r(t,e.aggregates)}),e.aggregates=s(e.aggregates)}for(var n=this._groupLevel,o=n+1,a=this._seed.bind(this,this._groupAggregates),r=this._aggregate.bind(this,this._groupAggregates),s=this._finalize.bind(this,this._groupAggregates);--o>0;)i(0,o,e,t)},_seed:function(e,t){return o(e,function(e){var n=e.aggregator;return"seed"in n?(0,u.isFunction)(n.seed)?n.seed(t):n.seed:NaN})},_accumulate:function(e,t,n,i){var o=t.selector(i),a=t.aggregator;t.skipEmptyValues&&function(e){return e!=e||""===e||null==e}(o)||(n[e]!=n[e]?n[e]=o:n[e]=a.step(n[e],o))},_finalize:function(e,t){return o(e,function(e,n){var i=e.aggregator.finalize;return i?i(t[n]):t[n]})}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(365));o.default.registerModule("columnFixing",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(366));o.default.registerModule("adaptivity",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(367));o.default.registerModule("virtualColumns",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(14)),r=n(1),s=n(0),l=n(99),u=i(n(13)),c=i(n(23)),d=i(n(369)),h=n(172),p=i(n(15)),f=i(n(34)),g=i(n(102)),_=i(n(105)),m=n(6),v="exportxlsx",y="exportselected",b="dx-toolbar-item-auto-hide",x="dx-toolbar-hidden-button",w="dx-button";t.DataProvider=a.default.inherit({_getGroupValue:function(e){var t=this._options.groupColumns[e.groupIndex],n=c.default.getDisplayValue(t,e.key[e.groupIndex],e.data,e.rowType),i=t.caption+": "+c.default.formatValue(n,t),o=e.summaryCells;return o&&o[0]&&o[0].length&&(i+=" "+c.default.getGroupRowSummaryText(o[0],this._options.summaryTexts)),i},_correctCellIndex:function(e){return e},_initOptions:function(){var e=this._exportController,t=e._columnsController.getGroupColumns(),n=e.option("export.excelWrapTextEnabled");this._options={columns:e._getColumns(this._initialColumnWidthsByColumnIndex),groupColumns:t,items:e._selectionOnly?e._getSelectedItems():e._getAllItems(),getVisibleIndex:e._columnsController.getVisibleIndex.bind(e._columnsController),isHeadersVisible:e.option("showColumnHeaders"),summaryTexts:e.option("summary.texts"),customizeExportData:e.option("customizeExportData"),rtlEnabled:e.option("rtlEnabled"),wrapTextEnabled:(0,r.isDefined)(n)?n:!!e.option("wordWrapEnabled"),customizeExcelCell:e.option("export.customizeExcelCell")}},hasCustomizeExcelCell:function(){return(0,r.isDefined)(this._options.customizeExcelCell)},customizeExcelCell:function(e,t){this._options.customizeExcelCell&&(e.gridCell=t,(0,r.isDefined)(this._exportController)&&(0,r.isDefined)(this._exportController.component)&&(e.component=this._exportController.component),this._options.customizeExcelCell(e))},ctor:function(e,t){this._exportController=e,this._initialColumnWidthsByColumnIndex=t},getStyles:function(){var e=this._options.wrapTextEnabled,t=["center","left","right"].map(function(e){return{bold:!0,alignment:e,wrapText:!0}});return this.getColumns().forEach(function(n){t.push({alignment:n.alignment||"left",format:n.format,wrapText:e,dataType:n.dataType})}),t.push({bold:!0,wrapText:!1,alignment:(0,l.getDefaultAlignment)(this._options.rtlEnabled)}),t},_getTotalCellStyleId:function(e){var t=this.getColumns()[e]&&this.getColumns()[e].alignment||"right";return["center","left","right"].indexOf(t)},getStyleId:function(e,t){return e<this.getHeaderRowCount()?0:this.isTotalCell(e-this.getHeaderRowCount(),t)?this._getTotalCellStyleId(t):this.isGroupRow(e-this.getHeaderRowCount())?3+this.getColumns().length:t+3},getColumns:function(e){var t=this._options.columns;return e?t:t[t.length-1]},getRowsCount:function(){return this._options.items.length+this.getHeaderRowCount()},getHeaderRowCount:function(){return this.isHeadersVisible()?this._options.columns.length-1:0},isGroupRow:function(e){return e<this._options.items.length&&"group"===this._options.items[e].rowType},getGroupLevel:function(e){var t=this._options.items[e-this.getHeaderRowCount()],n=t&&t.groupIndex;return t&&"totalFooter"===t.rowType?0:(0,r.isDefined)(n)?n:this._options.groupColumns.length},getCellType:function(e,t){var n=this.getColumns();if(e<this.getHeaderRowCount())return"string";if(e-=this.getHeaderRowCount(),t<n.length){var i=this._options.items.length&&this._options.items[e],o=n[t];return i&&"data"===i.rowType&&isFinite(i.values[this._correctCellIndex(t)])&&!(0,r.isDefined)(o.customizeText)?(0,r.isDefined)(o.lookup)?o.lookup.dataType:o.dataType:"string"}},ready:function(){var e,t=this;return t._initOptions(),e=this._options,(0,m.when)(e.items).done(function(n){e.customizeExportData&&e.customizeExportData(t.getColumns(t.getHeaderRowCount()>1),n),e.items=n}).fail(function(){e.items=[]})},_convertFromGridGroupSummaryItems:function(e){var t=void 0;return(0,r.isDefined)(e)&&e.length>0&&(t=e.map(function(e){return{value:e.value,name:e.name}})),t},getCellData:function(e,t,n){var i,o,a,s,l,u,d={cellSourceData:{},value:o},h=this.getColumns(),p=this._correctCellIndex(t);if(e<this.getHeaderRowCount())i=this.getColumns(!0)[e][t],d.cellSourceData.rowType="header",d.cellSourceData.column=i&&i.gridColumn,d.value=i&&i.caption;else if(e-=this.getHeaderRowCount(),u=this._options.items.length&&this._options.items[e])switch(l=u.values,d.cellSourceData.rowType=u.rowType,d.cellSourceData.column=h[t]&&h[t].gridColumn,u.rowType){case"groupFooter":case"totalFooter":p<l.length&&(o=l[p],(0,r.isDefined)(o)?(d.cellSourceData.value=o.value,d.cellSourceData.totalSummaryItemName=o.name,d.value=c.default.getSummaryText(o,this._options.summaryTexts)):d.cellSourceData.value=void 0);break;case"group":if(d.cellSourceData.groupIndex=u.groupIndex,t<1)d.cellSourceData.column=this._options.groupColumns[u.groupIndex],d.cellSourceData.value=u.key[u.groupIndex],d.cellSourceData.groupSummaryItems=this._convertFromGridGroupSummaryItems(u.summaryCells[0]),d.value=this._getGroupValue(u);else if(s=u.values[p],Array.isArray(s)){for(d.cellSourceData.groupSummaryItems=this._convertFromGridGroupSummaryItems(s),o="",a=0;a<s.length;a++)o+=(a>0?n?"\n":" \n ":"")+c.default.getSummaryText(s[a],this._options.summaryTexts);d.value=o}else d.cellSourceData.value=void 0;break;default:if(i=h[t]){var f=l[p],g=c.default.getDisplayValue(i,f,u.data,u.rowType);d.value=!isFinite(g)||i.customizeText?c.default.formatValue(g,i):g,d.cellSourceData.value=f}d.cellSourceData.data=u.data}return d},isHeadersVisible:function(){return this._options.isHeadersVisible},isTotalCell:function(e,t){var n=this._options.items[e],i=this._correctCellIndex(t),o=n.summaryCells&&n.summaryCells[i]&&n.summaryCells[i].length>0&&n.summaryCells[i][0].alignByColumn;return n&&"groupFooter"===n.rowType||"totalFooter"===n.rowType||o},getCellMerging:function(e,t){var n=this._options.columns,i=n[e]&&n[e][t];return i?{colspan:(i.colspan||1)-1,rowspan:(i.rowspan||1)-1}:{colspan:0,rowspan:0}},getFrozenArea:function(){return{x:0,y:this.getHeaderRowCount()}}}),t.ExportController=c.default.ViewController.inherit({}).include(d.default).inherit({_getEmptyCell:function(){return{caption:"",colspan:1,rowspan:1}},_updateColumnWidth:function(e,t){e.width=t},_getColumns:function(e){var t,n,i,o,a=[],r=this._columnsController,l=r.getRowCount();for(t=0;t<=l;t++){a.push([]),o=r.getVisibleColumns(t,!0);var u=void 0;if(t===l)if(this._updateLockCount)u=e;else{var c=this._getColumnWidths(this._headersView,this._rowsView);if(c&&c.length){u={};for(var d=0;d<o.length;d++)u[o[d].index]=c[d]}}for(n=0;n<o.length;n++)(i=(0,s.extend)({},o[n],{dataType:"datetime"===o[n].dataType?"date":o[n].dataType,gridColumn:o[n]})).allowExporting&&!i.command&&(u&&this._updateColumnWidth(i,u[i.index]),a[t].push(i))}return o=a[l],(a=this._prepareItems(a.slice(0,-1))).push(o),a},_getFooterSummaryItems:function(e,t){var n,i,o,a,r=[],s=1,l=0;do{for(n=[],a=0;a<e.length;a++)s<(i=(o=e[a]).length)&&(s=i),n.push(o[l]);r.push({values:n,rowType:t?"totalFooter":"groupFooter"})}while(l++<s-1);return r},_hasSummaryGroupFooters:function(){var e,t=this.option("summary.groupItems");if((0,r.isDefined)(t))for(e=0;e<t.length;e++)if(t[e].showInGroupFooter)return!0;return!1},_getItemsWithSummaryGroupFooters:function(e){var t,n,i=[],o=[],a=[];for(n=0;n<e.length;n++)"groupFooter"===(t=e[n]).rowType?(a=this._getFooterSummaryItems(t.summaryCells),i=i.concat(o,a),o=[]):o.push(t);return i.length?i:o},_updateGroupValuesWithSummaryByColumn:function(e){var t,n,i,o,a,r,s,l=[];for(s=0;s<e.length;s++)if(n=(t=e[s]).summaryCells,"group"===t.rowType&&n&&n.length>1){for(o=t.values.length,r=1;r<n.length;r++)for(a=0;a<n[r].length;a++)(i=n[r][a])&&i.alignByColumn&&(Array.isArray(l[r-o])||(l[r-o]=[]),l[r-o].push(i));l.length>0&&(u.default.merge(t.values,l),l=[])}},_processUnExportedItems:function(e){var t,n,i,o,a,r,s=this._columnsController.getVisibleColumns(null,!0),l=this._columnsController.getGroupColumns();for(a=0;a<e.length;a++){for(t=e[a],i=[],o=[],r=0;r<s.length;r++)(n=s[r]).command||!n.allowExporting&&"group"!==t.rowType||(t.values&&("group"!==t.rowType||i.length?i.push(t.values[r]):i.push(t.key[t.groupIndex])),t.summaryCells&&("group"!==t.rowType||o.length?o.push(t.summaryCells[r]):o.push(t.summaryCells[r-l.length+t.groupIndex])));i.length&&(t.values=i),o.length&&(t.summaryCells=o)}},_getAllItems:function(e){var t,n,i=this,o=new m.Deferred,a=this.getController("data"),s=a.footerItems(),l=s.length&&s[0],u=i.option("summary.totalItems");return(0,m.when)(e).done(function(e){a.loadAll(e).done(function(e,s){i._updateGroupValuesWithSummaryByColumn(e),i._hasSummaryGroupFooters()&&(e=i._getItemsWithSummaryGroupFooters(e)),t=l&&l.summaryCells,(0,r.isDefined)(s)&&u&&(t=a._getSummaryCells(u,s)),(n=l&&i._getFooterSummaryItems(t,!0))&&(e=e.concat(n)),i._processUnExportedItems(e),o.resolve(e)}).fail(o.reject)}).fail(o.reject),o},_getSelectedItems:function(){var e=this.getController("selection").getSelectedRowsData();return this._getAllItems(e)},_getColumnWidths:function(e,t){return e&&e.isVisible()?e.getColumnWidths():t.getColumnWidths()},init:function(){this._columnsController=this.getController("columns"),this._rowsView=this.getView("rowsView"),this._headersView=this.getView("columnHeadersView"),this.createAction("onExporting",{excludeValidators:["disabled","readOnly"]}),this.createAction("onExported",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFileSaving",{excludeValidators:["disabled","readOnly"]})},callbackNames:function(){return["selectionOnlyChanged"]},getExportFormat:function(){return["EXCEL"]},getDataProvider:function(){var e=this._getColumnWidths(this._headersView,this._rowsView),n=void 0;if(e&&e.length){n={};for(var i=this._columnsController.getVisibleColumns(this._columnsController.getRowCount(),!0),o=0;o<i.length;o++)n[i[o].index]=e[o]}return new t.DataProvider(this,n)},exportToExcel:function(e){var t=this;t._selectionOnly=e,(0,h.export)(t.component.getDataProvider(),{fileName:t.option("export.fileName"),proxyUrl:t.option("export.proxyUrl"),format:"EXCEL",autoFilterEnabled:!!t.option("export.excelFilterEnabled"),rtlEnabled:t.option("rtlEnabled"),ignoreErrors:t.option("export.ignoreExcelErrors"),exportingAction:t.getAction("onExporting"),exportedAction:t.getAction("onExported"),fileSavingAction:t.getAction("onFileSaving")},h.excel.getData)},publicMethods:function(){return["getDataProvider","getExportFormat","exportToExcel"]},selectionOnly:function(e){return(0,r.isDefined)(e)?(this._isSelectedRows=e,void this.selectionOnlyChanged.fire()):this._isSelectedRows}}),c.default.registerModule("export",{defaultOptions:function(){return{export:{enabled:!1,fileName:"DataGrid",excelFilterEnabled:!1,excelWrapTextEnabled:void 0,proxyUrl:void 0,allowExportSelectedData:!1,ignoreExcelErrors:!0,texts:{exportTo:p.default.format("dxDataGrid-exportTo"),exportAll:p.default.format("dxDataGrid-exportAll"),exportSelectedRows:p.default.format("dxDataGrid-exportSelectedRows")}}}},controllers:{export:t.ExportController},extenders:{controllers:{editing:{callbackNames:function(){var e=this.callBase();return(0,r.isDefined)(e)?e.push("editingChanged"):["editingChanged"]},_updateEditButtons:function(){this.callBase(),this.editingChanged.fire(this.hasChanges())}}},views:{headerPanel:{_getToolbarItems:function(){var e=this.callBase();return this._appendExportItems(e)},_appendExportItems:function(e){var t=this,n=t.option("export");if(n.enabled){var i=[];n.allowExportSelectedData?i.push({template:function(e,n,i){var a=(0,o.default)(i);t._renderButton(e,a),t._renderExportMenu(a)},menuItemTemplate:function(e,n,i){t._renderList(e,(0,o.default)(i))},name:"exportButton",allowExportSelected:!0,location:"after",locateInMenu:"auto",sortIndex:30}):i.push({template:function(e,n,i){t._renderButton(e,(0,o.default)(i))},menuItemTemplate:function(e,n,i){t._renderButton(e,(0,o.default)(i),!0)},name:"exportButton",location:"after",locateInMenu:"auto",sortIndex:30}),e=e.concat(i),t._correctItemsPosition(e)}return e},_renderButton:function(e,t,n){var i=this,a=i._getButtonOptions(e.allowExportSelected),r=i._getButtonContainer().addClass("dx-datagrid-export-button").appendTo(t);if(n){var s=(0,o.default)("<div>").addClass(b);t.wrapInner(s).parent().addClass("dx-toolbar-menu-action dx-toolbar-menu-button "+x),a.text=a.hint}i._createComponent(r,f.default,a)},_renderList:function(e,t){var n=this,i=n.option("export.texts"),a=[{template:function(e,t,i){n._renderFakeButton(e,(0,o.default)(i),v)},text:i.exportAll},{template:function(e,t,i){n._renderFakeButton(e,(0,o.default)(i),y)},text:i.exportSelectedRows,exportSelected:!0}];n._createComponent(t,g.default,{items:a,onItemClick:function(e){n._exportController.exportToExcel(e.itemData.exportSelected)},scrollingEnabled:!1})},_renderFakeButton:function(e,t,n){var i=(0,o.default)("<div>").addClass("dx-icon dx-icon-"+n),a=(0,o.default)("<span>").addClass("dx-button-text").text(e.text),r=(0,o.default)("<div>").addClass("dx-button-content").append(i).append(a),s=(0,o.default)("<div>").addClass(w+" dx-button-has-text dx-button-has-icon dx-datagrid-toolbar-button").append(r),l=(0,o.default)("<div>").addClass(b).append(s);t.append(l).parent().addClass("dx-toolbar-menu-custom "+x)},_correctItemsPosition:function(e){e.sort(function(e,t){return e.sortIndex-t.sortIndex})},_renderExportMenu:function(e){var t=this,n=e.find("."+w),i=t.option("export.texts"),a=[{text:i.exportAll,icon:v},{text:i.exportSelectedRows,exportSelected:!0,icon:y}],r=(0,o.default)("<div>").appendTo(e);t._contextMenu=t._createComponent(r,_.default,{showEvent:"dxclick",items:a,cssClass:"dx-datagrid-export-menu",onItemClick:function(e){t._exportController.exportToExcel(e.itemData.exportSelected)},target:n,position:{at:"left bottom",my:"left top",offset:"0 3",collision:"fit",boundary:t._$parent,boundaryOffset:"1 1"}})},_isExportButtonVisible:function(){return this.option("export.enabled")},_getButtonOptions:function(e){var t=this,n=t.option("export.texts");return e?{hint:n.exportTo,icon:"export-to"}:{hint:n.exportAll,icon:"export-excel-button",onClick:function(){t._exportController.exportToExcel()}}},optionChanged:function(e){this.callBase(e),"export"===e.name&&(e.handled=!0,this._invalidate())},init:function(){var e=this;this.callBase(),this._exportController=this.getController("export"),this._editingController=this.getController("editing"),this._editingController.editingChanged.add(function(t){e.setToolbarItemDisabled("exportButton",t)})},isVisible:function(){return this.callBase()||this._isExportButtonVisible()}}}}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(23)),a=i(n(370)),r=n(6),s=n(1),l=n(4),u=n(251),c=n(20),d=n(0),h=Number.MAX_SAFE_INTEGER||9007199254740991;o.default.registerModule("focus",(0,d.extend)(!0,{},a.default,{extenders:{controllers:{data:{changeRowExpand:function(e){return this.option("focusedRowEnabled")&&Array.isArray(e)&&this.isRowExpanded(e)&&this._isFocusedRowInsideGroup(e)&&this.option("focusedRowKey",e),this.callBase.apply(this,arguments)},_isFocusedRowInsideGroup:function(e){var t=this.getController("columns"),n=this.option("focusedRowKey"),i=this.getRowIndexByKey(n),o=i>=0&&this.getVisibleRows()[i],a=t.getGroupDataSourceParameters(!0);if(o)for(var r=0;r<e.length;++r)if((0,c.compileGetter)(a[r]&&a[r].selector)(o.data)!==e[r])return!1;return!0},_getGroupPath:function(e){for(var t=[e.key],n=e.items;n&&n[0];){var i=n[0];void 0!==i.key&&t.push(i.key),n=i.items}return t},_expandGroupByPath:function(e,t,n){var i=new r.Deferred;return n++,e.expandRow(t.slice(0,n)).done(function(){n===t.length?i.resolve():e._expandGroupByPath(e,t,n).done(i.resolve).fail(i.reject)}).fail(i.reject),i.promise()},_calculateGlobalRowIndexByGroupedData:function(e){var t,n=this,i=n._dataSource,o=n._generateFilterByKey(e),a=new r.Deferred,l=i.group();return i._grouping._updatePagingOptions?(i.load({filter:n._concatWithCombinedFilter(o),group:l}).done(function(i){return i&&0!==i.length&&(0,s.isDefined)(i[0].key)&&-1!==i[0].key?(t=n._getGroupPath(i[0]),void n._expandGroupByPath(n,t,0).done(function(){n._calculateExpandedRowGlobalIndex(a,e,t,l)}).fail(a.reject)):a.resolve(-1).promise()}).fail(a.reject),a.promise()):(n._calculateGlobalRowIndexByFlatData(e,null,!0).done(a.resolve).fail(a.reject),a)},_calculateExpandedRowGlobalIndex:function(e,t,n,i){var o,a=(0,u.createGroupFilter)(n,{group:i}),r=this._dataSource,s=this.option("scrolling.mode"),c="virtual"===s||"infinite"===s,d=r.pageSize();r._grouping._updatePagingOptions({skip:0,take:h},function(e,t){(0,l.equalByValue)(e.path,n)&&(o=t)}),this._calculateGlobalRowIndexByFlatData(t,a).done(function(t){var i,a;return t<0?void e.resolve(-1):(i=(o%d||d)+t-n.length,a=c?0:Math.floor(i/(d-n.length))*n.length,i=o+t+a,void e.resolve(i))}).fail(e.reject)}}}}}))},function(e,t,n){e.exports=n(640)},function(e,t,n){var i=function(e){return e&&e.__esModule?e:{default:e}}(n(641));n(651),n(652),n(653),n(654),n(656),n(657),n(658),n(659),n(660),n(661),n(662),n(663),n(664),n(665),n(666),n(667),n(668),n(669),n(670),n(671),e.exports=i.default},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(8)),a=i(n(4)),r=i(n(1)),s=n(3),l=n(0),u=i(n(17)),c=i(n(28)),d=i(n(30));n(642),n(643),n(644),n(645),n(646),n(647),n(648),n(649),n(650);var h=c.default.callModuleItemsMethod;c.default.registerModulesOrder(["stateStoring","columns","selection","editorFactory","columnChooser","editing","grouping","masterDetail","validating","adaptivity","data","virtualScrolling","columnHeaders","filterRow","headerPanel","headerFilter","sorting","search","rows","pager","columnsResizingReordering","contextMenu","keyboardNavigation","errorHandling","summary","columnFixing","export","gridView"]);var p=u.default.inherit({_activeStateUnit:".dx-row",_getDefaultOptions:function(){var e=this.callBase();return(0,s.each)(c.default.modules,function(){r.default.isFunction(this.defaultOptions)&&(0,l.extend)(!0,e,this.defaultOptions())}),e},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return d.default.isMaterial()},options:{showRowLines:!0,showColumnLines:!1,headerFilter:{height:315},editing:{useIcons:!0}}}])},_init:function(){var e=this;e.callBase(),c.default.processModules(e,c.default),h(e,"init")},_clean:a.default.noop,_optionChanged:function(e){h(this,"optionChanged",[e]),e.handled||this.callBase(e)},_dimensionChanged:function(){this.updateDimensions(!0)},_visibilityChanged:function(e){e&&this.updateDimensions()},_initMarkup:function(){this.callBase.apply(this,arguments),this.$element().addClass("dx-treelist"),this.getView("gridView").render(this.$element())},_renderContentImpl:function(){this.getView("gridView").update()},_renderContent:function(){var e=this;a.default.deferRender(function(){e._renderContentImpl()})},_dispose:function(){this.callBase(),h(this,"dispose")},isReady:function(){return this.getController("data").isReady()},beginUpdate:function(){this.callBase(),h(this,"beginUpdate")},endUpdate:function(){h(this,"endUpdate"),this.callBase()},getController:function(e){return this._controllers[e]},getView:function(e){return this._views[e]},focus:function(e){this.callBase(),r.default.isDefined(e)&&this.getController("keyboardNavigation").focus(e)}});p.registerModule=c.default.registerModule.bind(c.default),(0,o.default)("dxTreeList",p),e.exports=p},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(28)),a=i(n(326));o.default.registerModule("columnHeaders",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=n(1),a=i(n(28)),r=i(n(328));t.ColumnsController=r.default.controllers.columns.inherit({_getFirstItems:function(e){return this.callBase(e).map(function(e){return e.data})},getFirstDataColumnIndex:function(){for(var e=this.getVisibleColumns(),t=e.length,n=0,i=0;i<=t-1;i++)if(!(0,o.isDefined)(e[i].command)){n=e[i].index;break}return n}}),a.default.registerModule("columns",{defaultOptions:r.default.defaultOptions,controllers:{columns:t.ColumnsController}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=n(0),a=n(6),r=i(n(28)),s=n(4),l=i(n(371)),u=i(n(330));t.DataController=u.default.controllers.data.inherit({_getDataSourceAdapter:function(){return l.default},_getNodeLevel:function(e){for(var t=-1;e.parent;)e.visible&&t++,e=e.parent;return t},_generateDataItem:function(e,t){return{rowType:"data",node:e,key:e.key,data:e.data,isExpanded:this.isRowExpanded(e.key,t),level:this._getNodeLevel(e)}},_loadOnOptionChange:function(){this._dataSource.load()},init:function(){this.createAction("onRowExpanding"),this.createAction("onRowExpanded"),this.createAction("onRowCollapsing"),this.createAction("onRowCollapsed"),this.callBase.apply(this,arguments)},keyOf:function(e){var t=this._dataSource;if(t)return t.keyOf(e)},key:function(){var e=this._dataSource;if(e)return e.getKeyExpr()},publicMethods:function(){return this.callBase().concat(["expandRow","collapseRow","isRowExpanded","getRootNode","getNodeByKey","loadDescendants","forEachNode"])},changeRowExpand:function(e){if(this._dataSource){var t=this,n={key:e},i=this.isRowExpanded(e);if(t.executeAction(i?"onRowCollapsing":"onRowExpanding",n),!n.cancel)return t._dataSource.changeRowExpand(e).done(function(){t.executeAction(i?"onRowCollapsed":"onRowExpanded",n)})}return(new a.Deferred).resolve()},isRowExpanded:function(e,t){return this._dataSource&&this._dataSource.isRowExpanded(e,t)},expandRow:function(e){return this.isRowExpanded(e)?(new a.Deferred).resolve():this.changeRowExpand(e)},collapseRow:function(e){return this.isRowExpanded(e)?this.changeRowExpand(e):(new a.Deferred).resolve()},getRootNode:function(){return this._dataSource&&this._dataSource.getRootNode()},optionChanged:function(e){switch(e.name){case"rootValue":case"parentIdExpr":case"itemsExpr":case"filterMode":case"expandNodesOnFiltering":case"autoExpandAll":case"hasItemsExpr":case"dataStructure":this._columnsController.reset(),this._items=[],this._refreshDataSource(),e.handled=!0;break;case"expandedRowKeys":case"onNodesInitialized":!this._dataSource||this._dataSource._isNodesInitializing||(0,s.equalByValue)(e.value,e.previousValue)||this._loadOnOptionChange(),e.handled=!0;break;case"maxFilterLengthInRequest":e.handled=!0;break;default:this.callBase(e)}},getNodeByKey:function(e){if(this._dataSource)return this._dataSource.getNodeByKey(e)},getChildNodeKeys:function(e){if(this._dataSource)return this._dataSource.getChildNodeKeys(e)},loadDescendants:function(e,t){if(this._dataSource)return this._dataSource.loadDescendants(e,t)},forEachNode:function(){this._dataSource.forEachNode.apply(this,arguments)}}),r.default.registerModule("data",{defaultOptions:function(){return(0,o.extend)({},u.default.defaultOptions(),{itemsExpr:"items",parentIdExpr:"parentId",rootValue:0,dataStructure:"plain",expandedRowKeys:[],filterMode:"withAncestors",expandNodesOnFiltering:!0,autoExpandAll:!1,onNodesInitialized:null,maxFilterLengthInRequest:1500,paging:{enabled:!1}})},controllers:{data:t.DataController}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(28)),a=i(n(331));o.default.registerModule("sorting",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(28)),r=i(n(333)),s="dx-treelist-text-content",l="dx-treelist-expanded",u="dx-treelist-collapsed";t.RowsView=r.default.views.rowsView.inherit(function(){var e=function(e){return(0,o.default)("<div>").addClass(s).appendTo(e)},t=function(e,t){var n=(0,o.default)("<div>").addClass("dx-treelist-empty-space");return e&&n.toggleClass(l,t).toggleClass(u,!t).append((0,o.default)("<span>")),n},n=function(e,n){for(var i=n.level,o=0;o<=i;o++)e.append(t(o===i&&n.node.hasChildren,n.isExpanded))};return{_renderExpandIcon:function(e,t){var i=(0,o.default)("<div>").addClass("dx-treelist-icon-container").appendTo(e);return n(i,t.row),t.watch&&t.watch(function(){return[t.row.level,t.row.isExpanded,t.row.node.hasChildren]},function(){i.empty(),n(i,t.row)}),e.addClass("dx-treelist-cell-expandable"),i},_renderCellCommandContent:function(e,t){return this._renderExpandIcon(e,t),!0},_processTemplate:function(t,n){var i=this,o=this.callBase(t),a=i._columnsController.getFirstDataColumnIndex();return o&&n.column.index===a?{render:function(t){var n=t.container;i._renderCellCommandContent(n,t.model)&&(t.container=e(n)),o.render(t)}}:o},_updateCell:function(e,t){e=e.hasClass(s)?e.parent():e,this.callBase(e,t)},_rowClick:function(e){var t=this._dataController,n=(0,o.default)(e.event.target),i=this.isExpandIcon(n),a=t&&t.items()[e.rowIndex];i&&a&&t.changeRowExpand(a.key),this.callBase(e)},_createRow:function(e){var t=e&&e.node,n=this.callBase.apply(this,arguments);return t&&(this.setAria("level",e.level,n),t.hasChildren&&this.setAria("expanded",e.isExpanded,n)),n},isExpandIcon:function(e){return!!e.closest("."+l+", ."+u).length}}}()),a.default.registerModule("rows",{defaultOptions:r.default.defaultOptions,views:{rowsView:t.RowsView}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(28)),a=i(n(334));o.default.registerModule("contextMenu",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(28)),a=i(n(335));o.default.registerModule("errorHandling",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(28)),a=i(n(336)),r=a.default.views.gridView.inherit({_getWidgetAriaLabel:function(){return"dxTreeList-ariaTreeList"},_getTableRoleName:function(){return"treegrid"}});o.default.registerModule("gridView",{defaultOptions:a.default.defaultOptions,controllers:a.default.controllers,views:{gridView:r},extenders:{controllers:{resizing:{_toggleBestFitMode:function(e){(this.callBase(e),this.option("legacyRendering"))||this._rowsView._getTableElement().find(".dx-treelist-cell-expandable").toggleClass(this.addWidgetPrefix("best-fit"),e)}}}}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(28)),a=i(n(337));o.default.registerModule("headerPanel",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(28)),a=n(0),r=i(n(338)),s=r.default.extenders.controllers.stateStoring.applyState;o.default.registerModule("stateStoring",(0,a.extend)(!0,{},r.default,{extenders:{controllers:{stateStoring:{applyState:function(e){s.apply(this,arguments),e.hasOwnProperty("expandedRowKeys")&&this.option("expandedRowKeys",e.expandedRowKeys)}},data:{getUserState:function(){var e=this.callBase.apply(this,arguments);return this.option("autoExpandAll")||(e.expandedRowKeys=this.option("expandedRowKeys")),e}}}}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(28)),a=i(n(341));o.default.registerModule("columnChooser",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(28)),a=i(n(344)),r=n(0);o.default.registerModule("masterDetail",(0,r.extend)(!0,{},a.default,{extenders:{controllers:{data:{isRowExpanded:function(){return this.callBase.apply(this,arguments)},_processItems:function(){return this.callBase.apply(this,arguments)},_processDataItem:function(){return this.callBase.apply(this,arguments)}}}}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}n(655);var o=i(n(2)),a=i(n(18)),r=n(1),s=n(0),l=n(6),u=i(n(15)),c=i(n(28)),d=i(n(36)),h=i(n(347)),p="dx-treelist-icon-container",f=h.default.controllers.editing.inherit({_generateNewItem:function(e){var t=this.callBase(e);return t.data={key:e},t.children=[],t.level=0,t.parentKey=this.option("rootValue"),t},_needInsertItem:function(e,t,n,i){var o=e.key.parentKey;if(void 0!==o&&o!==this.option("rootValue")){var a=d.default.getIndexByKey(o,n);return a>=0&&this._dataController.isRowExpanded(o)&&n.splice(a+1,0,i),!1}return this.callBase.apply(this,arguments)},_isEditColumnVisible:function(){var e=this.callBase.apply(this,arguments),t=this.option("editing");return e||t&&t.allowAdding},_isDefaultButtonVisible:function(e,t){var n=this.callBase.apply(this,arguments),i=t.row;return"add"===e.name?this.allowAdding(t)&&i.rowIndex!==this._getVisibleEditRowIndex()&&!(i.removed||i.inserted):n},_getEditingButtons:function(e){var t=this.callBase.apply(this,arguments);return e.column.buttons||t.unshift(this._getButtonConfig("add",e)),t},_beforeSaveEditData:function(e){var t,n,i=this._dataController,o=this.callBase.apply(this,arguments);if(e&&"insert"!==e.type&&(t=(n=i&&i.store())&&n.key(),!(0,r.isDefined)(t)))throw a.default.Error("E1045");return o},addRowByRowIndex:function(e){var t=this.getController("data").getVisibleRows()[e];return this.addRow(t?t.key:void 0)},addRow:function(e){var t=this,n=this.callBase,i=this.getController("data");if(void 0!==e&&!i.isRowExpanded(e)){var o=new l.Deferred;return i.expandRow(e).done(function(){setTimeout(function(){n.call(t,e),o.resolve()})}).fail(o.reject),o}n.call(t,e)},_initNewRow:function(e,t){var n=t.parentKey,i=this.getController("data").dataSource().createParentIdSetter();void 0===n&&(n=this.option("rootValue"),t.parentKey=n),i(e.data,n),this.callBase.apply(this,arguments)},allowAdding:function(e){return this._allowEditAction("allowAdding",e)},_needToCloseEditableCell:function(e){return this.callBase.apply(this,arguments)||e.closest("."+p).length&&this.isEditing()}}),g=h.default.extenders.views.rowsView._rowClick,_=h.default.extenders.views.rowsView._rowDblClick,m=function(e){var t=(0,o.default)(e.event.target),n="dxdblclick"===e.event.type?_:g;return!t.closest(".dx-select-checkbox").length&&!v.call(this,e,n)},v=function(e,t){return!(0,o.default)(e.event.target).closest("."+p).length&&(t.call(this,e),!0)},y=(0,s.extend)({},h.default.extenders.views.rowsView,{_renderCellCommandContent:function(e,t){var n=this._editingController,i=t.row&&n.isEditRow(t.row.rowIndex);return!(t.isEditing||i)&&this.callBase.apply(this,arguments)},_rowClick:function(e){m.call(this,e)&&this.callBase.apply(this,arguments)},_rowDblClick:function(e){m.call(this,e)&&this.callBase.apply(this,arguments)}});c.default.registerModule("editing",{defaultOptions:function(){return(0,s.extend)(!0,h.default.defaultOptions(),{editing:{texts:{addRowToNode:u.default.format("dxTreeList-editingAddRowToNode")}}})},controllers:{editing:f},extenders:{controllers:(0,s.extend)(!0,{},h.default.extenders.controllers,{data:{changeRowExpand:function(){return this._editingController.refresh(),this.callBase.apply(this,arguments)}}}),views:{rowsView:y,headerPanel:h.default.extenders.views.headerPanel}}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(28)),a=i(n(345));o.default.registerModule("editorFactory",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=n(0),a=i(n(28)),r=i(n(348)),s=(0,o.extend)({},r.default.extenders.controllers.editing);delete s.processItems,delete s.processDataItem,a.default.registerModule("validating",{defaultOptions:r.default.defaultOptions,controllers:r.default.controllers,extenders:{controllers:{editing:s,editorFactory:r.default.extenders.controllers.editorFactory},views:r.default.extenders.views}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(28)),a=i(n(371)),r=i(n(349)),s=n(0),l=r.default.defaultOptions,u=r.default.extenders.controllers.data,c=r.default.extenders.dataSourceAdapter;r.default.extenders.controllers.data=(0,s.extend)({},u,{_loadOnOptionChange:function(){var e=this._dataSource&&this._dataSource._virtualScrollController;e&&e.reset(),this.callBase()}}),r.default.extenders.dataSourceAdapter=(0,s.extend)({},c,{changeRowExpand:function(){var e=this;return this.callBase.apply(this,arguments).done(function(){var t=e.getViewportItemIndex();t>=0&&e.setViewportItemIndex(t)})}}),o.default.registerModule("virtualScrolling",(0,s.extend)({},r.default,{defaultOptions:function(){return(0,s.extend)(!0,l(),{scrolling:{mode:"virtual"}})}})),a.default.extend(r.default.extenders.dataSourceAdapter)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(28)),a=i(n(351));o.default.registerModule("filterRow",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(28)),a=i(n(354));o.default.registerModule("headerFilter",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(28)),a=i(n(356));o.default.registerModule("filterSync",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(28)),a=i(n(358));o.default.registerModule("filterBuilder",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(28)),a=i(n(360));o.default.registerModule("filterPanel",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(28)),a=i(n(362));o.default.registerModule("pager",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(28)),a=i(n(363));o.default.registerModule("columnsResizingReordering",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(28)),a=i(n(365));o.default.registerModule("columnFixing",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(28)),a=i(n(366));o.default.registerModule("adaptivity",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(28)),r=n(4),s=i(r),l=i(n(340)),u=i(n(18)),c=n(0),d=l.default.extenders.views.rowsView._rowClick,h=l.default.extenders.controllers.data._handleDataChanged,p=function(e,t){return!!e.filter(function(e){return e===t}).length};a.default.registerModule("selection",(0,c.extend)(!0,{},l.default,{defaultOptions:function(){return(0,c.extend)(!0,l.default.defaultOptions(),{selection:{showCheckBoxesMode:"always",recursive:!1}})},extenders:{controllers:{data:{_handleDataChanged:function(e){var t=this.getController("selection");!t.isRecursiveSelection()||e&&"updateSelectionState"===e.changeType||t.updateSelectionState({selectedItemKeys:this.option("selectedRowKeys")}),h.apply(this,e)},loadDescendants:function(){var e=this,t=e.callBase.apply(e,arguments),n=e.getController("selection");return n.isRecursiveSelection()&&t.done(function(){n.updateSelectionState({selectedItemKeys:e.option("selectedRowKeys")})}),t}},selection:{init:function(){this.callBase.apply(this,arguments),this._selectionStateByKey={}},_getSelectionConfig:function(){var e=this,t=this.callBase.apply(this,arguments);return t.plainItems=function(){return e._dataController.getCachedStoreData()||[]},t.isItemSelected=function(t){var n=e._dataController.keyOf(t);return e.isRowSelected(n)},t.isSelectableItem=function(){return!0},t.getItemData=function(e){return e},t},renderSelectCheckBoxContainer:function(e,t){var n=this.component.getView("rowsView");e.addClass("dx-cell-focus-disabled");var i=n._renderSelectCheckBox(e,{value:t.row.isSelected,row:t.row,column:t.column});n._attachCheckBoxClickEvent(i)},_updateSelectColumn:r.noop,_getVisibleNodeKeys:function(e){var t=this.component,n=t.getRootNode(),i={},o=[];return n&&a.default.foreachNodes(n.children,function(n){return void 0!==n.key&&(n.visible||e)&&o.push(n.key),!e&&t.isRowExpanded(n.key,i)}),o},isSelectAll:function(){var e=this.component,t=this._getVisibleNodeKeys(),n=t.filter(function(t){return e.isRowSelected(t)});return n.length?n.length===t.length||void 0:!!t.some(function(t){return void 0===e.isRowSelected(t)})&&void 0},selectAll:function(){var e=this,t=e.isRecursiveSelection(),n=e._getVisibleNodeKeys(t).filter(function(t){return!e.isRowSelected(t)});return e.selectRows(n,!0)},deselectAll:function(){var e=this.isRecursiveSelection(),t=this._getVisibleNodeKeys(e);return this.deselectRows(t)},selectedItemKeys:function(e,t,n,i){var o=this,a=o.option("selectedRowKeys"),r=this.isRecursiveSelection()&&o._normalizeSelectionArgs({keys:e||[]},!n);return r&&!s.default.equalByValue(r.selectedRowKeys,a)?(o._isSelectionNormalizing=!0,this.callBase(r.selectedRowKeys,!1,!1,!1).always(function(){o._isSelectionNormalizing=!1}).done(function(e){r.selectedRowsData=e,o._fireSelectionChanged(r)})):this.callBase(e,t,n,i)},changeItemSelection:function(e,t){if(this.isRecursiveSelection()&&!t.shift){var n=this._dataController.getKeyByRowIndex(e);return this.selectedItemKeys(n,!0,this.isRowSelected(n))}return this.callBase.apply(this,arguments)},_updateParentSelectionState:function(e,t){var n=this,i=t,o=e.parent;o&&(o.children.length>1&&(!1===t?i=!!o.children.some(function(e,t,i){return n._selectionStateByKey[e.key]})&&void 0:!0===t&&(i=!o.children.some(function(e){return!n._selectionStateByKey[e.key]})||void 0)),this._selectionStateByKey[o.key]=i,o.parent&&o.parent.level>=0&&this._updateParentSelectionState(o,i))},_updateChildrenSelectionState:function(e,t){var n=this,i=e.children;i&&i.forEach(function(e){n._selectionStateByKey[e.key]=t,e.children.length>0&&n._updateChildrenSelectionState(e,t)})},_updateSelectionStateCore:function(e,t){for(var n,i=this._dataController,o=0;o<e.length;o++)this._selectionStateByKey[e[o]]=t,(n=i.getNodeByKey(e[o]))&&(this._updateParentSelectionState(n,t),this._updateChildrenSelectionState(n,t))},_getSelectedParentKeys:function(e,t,n){for(var i,o=this._dataController.getNodeByKey(e),a=o&&o.parent,r=[];a&&a.level>=0;){if(r.unshift(a.key),n?!p(t,a.key)&&this.isRowSelected(a.key):t.indexOf(a.key)>=0){i=a,r=this._getSelectedParentKeys(i.key,t,n).concat(r);break}if(n)break;a=a.parent}return i&&r||[]},_getSelectedChildKeys:function(e,t){var n=this,i=[];return e&&a.default.foreachNodes(e.children,function(e){var o=t.indexOf(e.key);return o<0&&i.push(e.key),o>0||o<0&&void 0===n._selectionStateByKey[e.key]}),i},_normalizeParentKeys:function(e,t){var n,i,o,a=this,r=[e],s=a._getSelectedParentKeys(e,t.selectedRowKeys);s.length&&((r=r.concat(s)).forEach(function(e){(n=t.selectedRowKeys.indexOf(e))>=0&&t.selectedRowKeys.splice(n,1)}),o=a._dataController.getNodeByKey(s[0]),i=a._getSelectedChildKeys(o,r),t.selectedRowKeys=t.selectedRowKeys.concat(i))},_normalizeChildrenKeys:function(e,t){var n,i=this,o=i._dataController.getNodeByKey(e);o&&o.children.forEach(function(e){(n=t.selectedRowKeys.indexOf(e.key))>=0&&t.selectedRowKeys.splice(n,1),i._normalizeChildrenKeys(e.key,t)})},_normalizeSelectedRowKeysCore:function(e,t,n){var i,o=this;e.forEach(function(e){o.isRowSelected(e)!==n&&(o._normalizeChildrenKeys(e,t),i=t.selectedRowKeys.indexOf(e),n?(i<0&&t.selectedRowKeys.push(e),t.currentSelectedRowKeys.push(e)):(i>=0&&t.selectedRowKeys.splice(i,1),t.currentDeselectedRowKeys.push(e),o._normalizeParentKeys(e,t)))})},_normalizeSelectionArgs:function(e,t){var n,i=Array.isArray(e.keys)?e.keys:[e.keys],o=this.option("selectedRowKeys")||[];return i.length&&(n={currentSelectedRowKeys:[],currentDeselectedRowKeys:[],selectedRowKeys:o.slice(0)},this._normalizeSelectedRowKeysCore(i,n,t)),n},_updateSelectedItems:function(e){this.updateSelectionState(e),this.callBase(e)},_fireSelectionChanged:function(){this._isSelectionNormalizing||this.callBase.apply(this,arguments)},_isModeLeavesOnly:function(e){return"leavesOnly"===e||!0===e},_getAllSelectedRowKeys:function(e){var t=this,n=[];return e.forEach(function(e){var i=n.length,o=t._getSelectedParentKeys(e,n,!0),a=t._dataController.getChildNodeKeys(e);n.splice.apply(n,[i,0].concat(o)),n.push(e),n=n.concat(a)}),n},_getParentSelectedRowKeys:function(e){var t=this,n=[];return e.forEach(function(i){!t._getSelectedParentKeys(i,e).length&&n.push(i)}),n},_getLeafSelectedRowKeys:function(e){var t=[],n=this._dataController;return e.forEach(function(e){var i=n.getNodeByKey(e);i&&!i.hasChildren&&t.push(e)}),t},isRecursiveSelection:function(){var e=this.option("selection.mode"),t=this.option("selection.recursive");return"multiple"===e&&t},updateSelectionState:function(e){var t=e.removedItemKeys||[],n=e.selectedItemKeys||[];this._updateSelectionStateCore(t,!1),this._updateSelectionStateCore(n,!0)},isRowSelected:function(e){var t=this.callBase.apply(this,arguments),n=this.isRecursiveSelection();return!t&&n?e in this._selectionStateByKey&&this._selectionStateByKey[e]:t},getSelectedRowKeys:function(e){var t=this;if(!t._dataController)return[];!0===e&&u.default.log("W0002","dxTreeList","getSelectedRowKeys(leavesOnly)","18.1","Use the 'getSelectedRowKeys(mode)' method with a string parameter instead");var n=t.callBase.apply(t,arguments);return e&&(this.isRecursiveSelection()&&(n=this._getAllSelectedRowKeys(n)),"all"!==e&&("excludeRecursive"===e?n=t._getParentSelectedRowKeys(n):t._isModeLeavesOnly(e)&&(n=t._getLeafSelectedRowKeys(n)))),n},getSelectedRowsData:function(e){var t=this._dataController,n=this.getSelectedRowKeys(e)||[],i=[];return n.forEach(function(e){var n=t.getNodeByKey(e);n&&i.push(n.data)}),i},refresh:function(){return this._selectionStateByKey={},this.callBase.apply(this,arguments)}}},views:{columnHeadersView:{_processTemplate:function(e,t){var n=this,i=this.callBase(e,t),o=n._columnsController.getFirstDataColumnIndex();return i&&"header"===t.rowType&&t.column.index===o?{render:function(e){"multiple"===n.option("selection.mode")&&n.renderSelectAll(e.container,e.model),i.render(e)}}:i},renderSelectAll:function(e,t){e.addClass("dx-treelist-select-all"),this._renderSelectAllCheckBox(e)},_isSortableElement:function(e){return this.callBase(e)&&!e.closest(".dx-select-checkbox").length}},rowsView:{_renderExpandIcon:function(e,t){var n=this.callBase(e,t);return"multiple"===this.option("selection.mode")&&this.getController("selection").renderSelectCheckBoxContainer(n,t),n},_rowClick:function(e){var t=(0,o.default)(e.event.target);this.isExpandIcon(t)?this.callBase.apply(this,arguments):d.apply(this,arguments)}}}}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(28)),a=i(n(361));o.default.registerModule("search",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(28)),a=i(n(364)),r=n(0);o.default.registerModule("keyboardNavigation",(0,r.extend)(!0,{},a.default,{extenders:{controllers:{keyboardNavigation:{_leftRightKeysHandler:function(e,t){var n,i,o=this.getVisibleRowIndex(),a=this._dataController;return e.ctrl?(i=this._getDirectionCodeByKey(e.keyName),n=a.getKeyByRowIndex(o),void("nextInRow"===i?a.expandRow(n):a.collapseRow(n))):this.callBase.apply(this,arguments)}}}}}))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(28)),a=i(n(367));o.default.registerModule("virtualColumns",a.default)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(28)),a=n(0),r=n(6),s=i(n(370));o.default.registerModule("focus",(0,a.extend)(!0,{},s.default,{extenders:{controllers:{data:{changeRowExpand:function(e){return this.option("focusedRowEnabled")&&this.isRowExpanded(e)&&this._isFocusedRowInside(e)&&this.option("focusedRowKey",e),this.callBase.apply(this,arguments)},_isFocusedRowInside:function(e){for(var t=this.option("focusedRowKey"),n=this.getRowIndexByKey(t),i=n>=0&&this.getVisibleRows()[n],o=i&&i.node.parent;o;){if(o.key===e)return!0;o=o.parent}return!1},getParentKey:function(e){var t=this._dataSource,n=this.getNodeByKey(e),i=new r.Deferred;return n?i.resolve(n.parent?n.parent.key:void 0):t.load({filter:[t.getKeyExpr(),"=",e]}).done(function(e){var n=e[0];n?i.resolve(t.parentKeyOf(n)):i.reject()}).fail(i.reject),i.promise()},expandAscendants:function(e){var t=this,n=t._dataSource,i=new r.Deferred;return t.getParentKey(e).done(function(e){n&&void 0!==e&&e!==t.option("rootValue")?(n._isNodesInitializing=!0,t.expandRow(e),n._isNodesInitializing=!1,t.expandAscendants(e).done(i.resolve).fail(i.reject)):i.resolve()}).fail(i.reject),i.promise()},getPageIndexByKey:function(e){var t=this,n=t._dataSource,i=new r.Deferred;return t.expandAscendants(e).done(function(){n.load({filter:t.getCombinedFilter(),sort:t.getController("columns").getSortDataSourceParameters(!n.remoteOperations().sorting),parentIds:[]}).done(function(n){var o=function(e,t){var n=-1;return e.forEach(function(e,i){t(e)&&(n=i)}),n}(n,function(n){return t.keyOf(n.data)===e}),a=t.pageIndex();o>=0&&(a=Math.floor(o/t.pageSize())),i.resolve(a)}).fail(i.reject)}).fail(i.reject),i.promise()}}}}}))},function(e,t,n){e.exports=n(673)},function(e,t,n){function i(e){var t=0;return _(e,function(e,n){t+=n||0}),t}function o(e,t){for(var n=t/e.length,i=0;i<e.length;i++)e[i]-=n}function a(e){e.off("scroll").off("stop")}function r(e,t){var n="width"===t?["borderLeftWidth","borderRightWidth"]:["borderTopWidth","borderBottomWidth"],i=0;return _(e,function(e,t){var o=u.getComputedStyle(t.get(0));n.forEach(function(e){i+=parseFloat(o[e])||0})}),i}var s=n(2),l=n(7),u=l.getWindow(),c=n(31),d=n(5),h=n(8),p=n(10).getPublicElement,f=n(43),g=n(4),_=n(3).each,m=n(1).isDefined,v=n(0).extend,y=n(19),b=n(15),x=n(17),w=n(9),C=n(36),k=n(79),S=n(674),I=n(200),T=n(678),D=n(679),E=n(208).getSize,A=n(680),O=n(373),P=n(253),B=n(682).ExportMixin,M=n(683),R=n(46),F=n(105),V=n(6),L=V.when,H=V.Deferred,z="dx-area-data-cell",N="dx-area-row-cell",$="dx-area-column-cell",W="dx-area-description-cell",G="dx-pivotgrid-border",j="dx-pivotgrid",q="dx-bottom-border",K="dx-area-fields",U="dx-incompressible-fields",Y="dx-overflow-hidden",X="<tr>",Z="<td>",Q="<div>",J={},ee=x.inherit({_getDefaultOptions:function(){return v(this.callBase(),{scrolling:{timeout:300,renderingThreshold:150,minTimeout:10,mode:"standard",useNative:"auto",removeInvisiblePages:!0,virtualRowHeight:50,virtualColumnWidth:100},encodeHtml:!0,dataSource:null,activeStateEnabled:!1,fieldChooser:{minWidth:250,minHeight:250,enabled:!0,allowSearch:!1,searchTimeout:500,layout:0,title:b.format("dxPivotGrid-fieldChooserTitle"),width:600,height:600,applyChangesMode:"instantly"},onContextMenuPreparing:null,allowSorting:!1,allowSortingBySummary:!1,allowFiltering:!1,allowExpandAll:!1,wordWrapEnabled:!0,fieldPanel:{showColumnFields:!0,showFilterFields:!0,showDataFields:!0,showRowFields:!0,allowFieldDragging:!0,visible:!1,texts:{columnFieldArea:b.format("dxPivotGrid-columnFieldArea"),rowFieldArea:b.format("dxPivotGrid-rowFieldArea"),filterFieldArea:b.format("dxPivotGrid-filterFieldArea"),dataFieldArea:b.format("dxPivotGrid-dataFieldArea")}},dataFieldArea:"column",export:{enabled:!1,fileName:"PivotGrid",proxyUrl:void 0,ignoreExcelErrors:!0},showRowTotals:!0,showRowGrandTotals:!0,showColumnTotals:!0,showColumnGrandTotals:!0,hideEmptySummaryCells:!0,showTotalsPrior:"none",rowHeaderLayout:"standard",loadPanel:{enabled:!0,text:b.format("Loading"),width:200,height:70,showIndicator:!0,indicatorSrc:"",showPane:!0},texts:{grandTotal:b.format("dxPivotGrid-grandTotal"),total:b.getFormatter("dxPivotGrid-total"),noData:b.format("dxDataGrid-noDataText"),showFieldChooser:b.format("dxPivotGrid-showFieldChooser"),expandAll:b.format("dxPivotGrid-expandAll"),collapseAll:b.format("dxPivotGrid-collapseAll"),sortColumnBySummary:b.getFormatter("dxPivotGrid-sortColumnBySummary"),sortRowBySummary:b.getFormatter("dxPivotGrid-sortRowBySummary"),removeAllSorting:b.format("dxPivotGrid-removeAllSorting"),exportToExcel:b.format("dxDataGrid-exportToExcel"),dataNotAvailable:b.format("dxPivotGrid-dataNotAvailable")},onCellClick:null,onCellPrepared:null,showBorders:!1,stateStoring:{enabled:!1,storageKey:null,type:"localStorage",customLoad:null,customSave:null,savingTimeout:2e3},onExpandValueChanging:null,renderCellCountLimit:2e4,onExporting:null,onExported:null,onFileSaving:null,headerFilter:{width:252,height:325,allowSearch:!1,showRelevantValues:!1,searchTimeout:500,texts:{emptyValue:b.format("dxDataGrid-headerFilterEmptyValue"),ok:b.format("dxDataGrid-headerFilterOK"),cancel:b.format("dxDataGrid-headerFilterCancel")}}})},_getDataControllerOptions:function(){var e=this;return{component:e,dataSource:e.option("dataSource"),texts:e.option("texts"),showRowTotals:e.option("showRowTotals"),showRowGrandTotals:e.option("showRowGrandTotals"),showColumnTotals:e.option("showColumnTotals"),showTotalsPrior:e.option("showTotalsPrior"),showColumnGrandTotals:e.option("showColumnGrandTotals"),dataFieldArea:e.option("dataFieldArea"),rowHeaderLayout:e.option("rowHeaderLayout"),hideEmptySummaryCells:e.option("hideEmptySummaryCells"),onFieldsPrepared:function(t){_(t,function(t,n){_(["allowSorting","allowSortingBySummary","allowFiltering","allowExpandAll"],function(t,i){void 0===n[i]&&k.setFieldProperty(n,i,e.option(i))})})}}},_initDataController:function(){var e=this;e._dataController&&e._dataController.dispose(),e._dataController=new S.DataController(e._getDataControllerOptions()),l.hasWindow()&&e._dataController.changed.add(function(){e._render()}),e._dataController.scrollChanged.add(function(t){e._scrollLeft=t.left,e._scrollTop=t.top}),e._dataController.loadingChanged.add(function(t){e._updateLoading()}),e._dataController.progressChanged.add(e._updateLoading.bind(e)),e._dataController.dataSourceChanged.add(function(){e._trigger("onChanged")});var t=e.option("onExpandValueChanging");t&&e._dataController.expandValueChanging.add(function(e){t(e)})},_init:function(){var e=this;e.callBase(),e._initDataController(),e._scrollLeft=e._scrollTop=null,e._initActions()},_initActions:function(){var e=this;e._actions={onChanged:e._createActionByOption("onChanged"),onContextMenuPreparing:e._createActionByOption("onContextMenuPreparing"),onCellClick:e._createActionByOption("onCellClick"),onExporting:e._createActionByOption("onExporting"),onExported:e._createActionByOption("onExported"),onFileSaving:e._createActionByOption("onFileSaving"),onCellPrepared:e._createActionByOption("onCellPrepared")}},_trigger:function(e,t){this._actions[e](t)},_optionValuesEqual:function(e,t,n){return"dataSource"===e&&n instanceof I&&t instanceof I?n===t:this.callBase.apply(this,arguments)},_optionChanged:function(e){var t=this;switch(e.name){case"dataSource":case"allowSorting":case"allowFiltering":case"allowExpandAll":case"allowSortingBySummary":case"scrolling":case"stateStoring":t._initDataController(),t._fieldChooserPopup.hide(),t._renderFieldChooser(),t._invalidate();break;case"texts":case"showTotalsPrior":case"showRowTotals":case"showRowGrandTotals":case"showColumnTotals":case"showColumnGrandTotals":case"hideEmptySummaryCells":case"dataFieldArea":t._dataController.updateViewOptions(t._getDataControllerOptions());break;case"useNativeScrolling":case"encodeHtml":case"renderCellCountLimit":break;case"rtlEnabled":t.callBase(e),t._renderFieldChooser(),t._renderContextMenu(),l.hasWindow()&&t._renderLoadPanel(t._dataArea.groupElement(),t.$element()),t._invalidate();break;case"export":t._renderDescriptionArea();break;case"onExpandValueChanging":break;case"onCellClick":case"onContextMenuPreparing":case"onExporting":case"onExported":case"onFileSaving":case"onCellPrepared":t._actions[e.name]=t._createActionByOption(e.name);break;case"fieldChooser":t._renderFieldChooser(),t._renderDescriptionArea();break;case"loadPanel":l.hasWindow()&&(t._renderLoadPanel(t._dataArea.groupElement(),t.$element()),t._invalidate());break;case"fieldPanel":t._renderDescriptionArea(),t._invalidate();break;case"headerFilter":t._renderFieldChooser(),t._invalidate();break;case"showBorders":t._tableElement().toggleClass(G,!!e.value),t.updateDimensions();break;case"wordWrapEnabled":t._tableElement().toggleClass("dx-word-wrap",!!e.value),t.updateDimensions();break;case"rowHeaderLayout":t._tableElement().find("."+N).toggleClass("dx-area-tree-view","tree"===e.value),t._dataController.updateViewOptions(t._getDataControllerOptions());break;case"height":case"width":t._hasHeight=null,t.callBase(e),t.resize();break;default:t.callBase(e)}},_updateScrollPosition:function(e,t,n){var i,o,a=this,r=a._scrollTop||a._scrollLeft;a._scrollUpdating||(a._scrollUpdating=!0,t&&!t.hasScroll()&&a._hasHeight&&(a._scrollTop=null),e&&!e.hasScroll()&&(a._scrollLeft=null),(null!==a._scrollTop||null!==a._scrollLeft||r||a.option("rtlEnabled"))&&(i=a._scrollTop||0,o=a._scrollLeft||0,n.scrollTo({x:o,y:i}),e.scrollTo(o),t.scrollTo(i),a._dataController.updateWindowScrollPosition(a._scrollTop)),a._scrollUpdating=!1)},_subscribeToEvents:function(e,t,n){var i=this,o=function(o){var a=o.scrollOffset,r=m(a.left)?a.left:i._scrollLeft,s=m(a.top)&&i._hasHeight?a.top:i._scrollTop;(i._scrollLeft||0)===(r||0)&&(i._scrollTop||0)===(s||0)||(i._scrollLeft=r,i._scrollTop=s,i._updateScrollPosition(e,t,n),"virtual"===i.option("scrolling.mode")&&i._dataController.setViewportPosition(i._scrollLeft,i._scrollTop))};_([e,t,n],function(e,t){!function(e,t){a(e),e.on("scroll",t).on("stop",t)}(t,o)}),!i._hasHeight&&i._dataController.subscribeToWindowScrollEvents(n.groupElement())},_clean:g.noop,_needDelayResizing:function(e){return e.length*(e.length?e[0].length:0)>this.option("renderCellCountLimit")},_renderFieldChooser:function(){var e=this,t=e._pivotGridContainer,n=e.option("fieldChooser")||{},i="onDemand"===n.applyChangesMode?[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:b.format("OK"),onClick:function(t){e._fieldChooserPopup.$content().dxPivotGridFieldChooser("applyChanges"),e._fieldChooserPopup.hide()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:b.format("Cancel"),onClick:function(t){e._fieldChooserPopup.hide()}}}]:[],o={layout:n.layout,texts:n.texts||{},dataSource:e.getDataSource(),allowSearch:n.allowSearch,searchTimeout:n.searchTimeout,width:void 0,height:void 0,headerFilter:e.option("headerFilter"),encodeHtml:e.option("encodeHtml"),applyChangesMode:n.applyChangesMode},a={shading:!1,title:n.title,width:n.width,height:n.height,showCloseButton:!0,resizeEnabled:!0,minWidth:n.minWidth,minHeight:n.minHeight,toolbarItems:i,onResize:function(e){e.component.$content().dxPivotGridFieldChooser("updateDimensions")},onShown:function(t){e._createComponent(t.component.content(),O,o)},onHidden:function(e){var t=e.component.$content().dxPivotGridFieldChooser("instance");t.resetTreeView(),t.cancelChanges()}};e._fieldChooserPopup?(e._fieldChooserPopup.option(a),e._fieldChooserPopup.$content().dxPivotGridFieldChooser(o)):e._fieldChooserPopup=e._createComponent(s(Q).addClass("dx-fieldchooser-popup").appendTo(t),R,a)},_renderContextMenu:function(){var e=this,t=e._pivotGridContainer;e._contextMenu&&e._contextMenu.$element().remove(),e._contextMenu=e._createComponent(s(Q).appendTo(t),F,{onPositioning:function(t){var n,i,o,a=t.event;if(t.cancel=!0,a&&(n=a.target.cellIndex>=0?a.target:s(a.target).closest("td").get(0)))return i=e._createEventArgs(n,a),(o=e._getContextMenuItems(i))?(t.component.option("items",o),void(t.cancel=!1)):void 0},onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:j,target:e.$element()})},_getContextMenuItems:function(e){var t=this,n=[],i=t.option("texts");if("row"===e.area||"column"===e.area){var o=e[e.area+"Fields"],a=e["column"===e.area?"rowFields":"columnFields"],r=e.cell.path&&o[e.cell.path.length-1],s=t.getDataSource();if(r&&r.allowExpandAll&&e.cell.path.length<e[e.area+"Fields"].length&&!s.paginate()&&(n.push({beginGroup:!0,icon:"none",text:i.expandAll,onItemClick:function(){s.expandAll(r.index)}}),n.push({text:i.collapseAll,icon:"none",onItemClick:function(){s.collapseAll(r.index)}})),e.cell.isLast&&!s.paginate()){var l=0;_(a,function(t,o){o.allowSortingBySummary&&_(e.dataFields,function(t,a){if(!m(e.cell.dataIndex)||e.cell.dataIndex===t){var r=!m(e.cell.dataIndex)&&e.dataFields.length>1,u="column"===e.area?i.sortColumnBySummary:i.sortRowBySummary,c=k.findField(e.dataFields,o.sortBySummaryField)===t&&(e.cell.path||[]).join("/")===(o.sortBySummaryPath||[]).join("/"),d=f.format(u,r?o.caption+" - "+a.caption:o.caption);n.push({beginGroup:0===l,icon:c?"desc"===o.sortOrder?"sortdowntext":"sortuptext":"none",text:d,onItemClick:function(){s.field(o.index,{sortBySummaryField:a.name||a.caption||a.dataField,sortBySummaryPath:e.cell.path,sortOrder:"desc"===o.sortOrder?"asc":"desc"}),s.load()}}),l++}})}),_(a,function(e,t){if(t.allowSortingBySummary&&m(t.sortBySummaryField))return n.push({beginGroup:0===l,icon:"none",text:i.removeAllSorting,onItemClick:function(){_(a,function(e,t){s.field(t.index,{sortBySummaryField:void 0,sortBySummaryPath:void 0,sortOrder:void 0})}),s.load()}}),!1})}}if(t.option("fieldChooser.enabled")&&n.push({beginGroup:!0,icon:"columnchooser",text:i.showFieldChooser,onItemClick:function(){t._fieldChooserPopup.show()}}),t.option("export.enabled")&&n.push({beginGroup:!0,icon:"exportxlsx",text:i.exportToExcel,onItemClick:function(){t.exportToExcel()}}),e.items=n,t._trigger("onContextMenuPreparing",e),(n=e.items)&&n.length)return n},_createEventArgs:function(e,t){var n=this,i=n.getDataSource(),o={rowFields:i.getAreaFields("row"),columnFields:i.getAreaFields("column"),dataFields:i.getAreaFields("data"),event:t};return function(e){return e.closest("."+K).length||e.find("."+K).length}(s(e))?v(n._createFieldArgs(e),o):v(n._createCellArgs(e),o)},_createFieldArgs:function(e){var t=s(e).children().data("field"),n={field:t};return m(t)?n:{}},_createCellArgs:function(e){var t=s(e),n=e.cellIndex,i=e.parentElement.rowIndex,o=t.closest("table"),a=o.data("data"),r=a&&a[i]&&a[i][n];return{area:o.data("area"),rowIndex:i,columnIndex:n,cellElement:p(t),cell:r}},_handleCellClick:function(e){var t=this,n=t._createEventArgs(e.currentTarget,e),i=n.cell;i&&(n.area||!n.rowIndex&&!n.columnIndex)&&(t._trigger("onCellClick",n),i&&!n.cancel&&m(i.expanded)&&setTimeout(function(){t._dataController[i.expanded?"collapseHeaderItem":"expandHeaderItem"](n.area,i.path)}))},_getNoDataText:function(){return this.option("texts.noData")},_renderNoDataText:C.renderNoDataText,_renderLoadPanel:C.renderLoadPanel,_updateLoading:function(e){var t,n=this,i=n._dataController.isLoading();n._loadPanel&&((t=n._loadPanel.option("visible"))||(n._startLoadingTime=new Date),i&&(e?new Date-n._startLoadingTime>=1e3&&n._loadPanel.option("message",Math.floor(100*e)+"%"):n._loadPanel.option("message",n.option("loadPanel.text"))),clearTimeout(n._hideLoadingTimeoutID),t&&!i?n._hideLoadingTimeoutID=setTimeout(function(){n._loadPanel.option("visible",!1),n.$element().removeClass(Y)}):(n._loadPanel.option("visible",i),n.$element().toggleClass(Y,!i)))},_renderDescriptionArea:function(){var e,t=this,n=this.$element(),i=n.find("."+W),o=s(Q).addClass("dx-pivotgrid-toolbar"),a=this.option("fieldPanel"),r=n.find(".dx-filter-header"),l=n.find(".dx-column-header");if(e=a.visible&&a.showFilterFields?r:a.visible&&(a.showDataFields||a.showColumnFields)?l:i,l.toggleClass(q,!(!a.visible||!a.showDataFields&&!a.showColumnFields)),r.toggleClass(q,!(!a.visible||!a.showFilterFields)),i.toggleClass("dx-pivotgrid-background",a.visible&&(a.showDataFields||a.showColumnFields||a.showRowFields)),this.$element().find(".dx-pivotgrid-toolbar").remove(),o.prependTo(e),this.option("fieldChooser.enabled")){var u=s(Q).appendTo(o).addClass("dx-pivotgrid-field-chooser-button"),c={icon:"columnchooser",hint:this.option("texts.showFieldChooser"),onClick:function(){t.getFieldChooserPopup().show()}};this._createComponent(u,"dxButton",c)}if(this.option("export.enabled")){var d=s(Q).appendTo(o).addClass("dx-pivotgrid-export-button"),h={icon:"exportxlsx",hint:this.option("texts.exportToExcel"),onClick:function(){t.exportToExcel()}};this._createComponent(d,"dxButton",h)}},_detectHasContainerHeight:function(){var e,t=this,n=t.$element();m(t._hasHeight)||n.is(":hidden")||(t._pivotGridContainer.addClass("dx-hidden"),e=s(Q).height(66666),n.append(e),t._hasHeight=66666!==n.height(),t._pivotGridContainer.removeClass("dx-hidden"),e.remove())},_renderHeaders:function(e,t,n,i){var o=this,a=o.getDataSource(),r=A.FieldsArea;o._rowFields=o._rowFields||new r(o,"row"),o._rowFields.render(e,a.getAreaFields("row")),o._columnFields=o._columnFields||new r(o,"column"),o._columnFields.render(t,a.getAreaFields("column")),o._filterFields=o._filterFields||new r(o,"filter"),o._filterFields.render(n,a.getAreaFields("filter")),o._dataFields=o._dataFields||new r(o,"data"),o._dataFields.render(i,a.getAreaFields("data")),o.$element().dxPivotGridFieldChooserBase("instance").renderSortable()},_createTableElement:function(){var e=this,t=s("<table>").css({width:"100%"}).toggleClass(G,!!e.option("showBorders")).toggleClass("dx-word-wrap",!!e.option("wordWrapEnabled"));return d.on(t,w.addNamespace(y.name,"dxPivotGrid"),"td",e._handleCellClick.bind(e)),t},_renderDataArea:function(e){var t=this,n=t._dataArea||new T.DataArea(t);return t._dataArea=n,n.render(e,t._dataController.getCellsInfo()),n},_renderRowsArea:function(e){var t=this,n=t._rowsArea||new D.VerticalHeadersArea(t);return t._rowsArea=n,n.render(e,t._dataController.getRowsInfo()),n},_renderColumnsArea:function(e){var t=this,n=t._columnsArea||new D.HorizontalHeadersArea(t);return t._columnsArea=n,n.render(e,t._dataController.getColumnsInfo()),n},_initMarkup:function(){this.callBase.apply(this,arguments),this.$element().addClass(j)},_renderContentImpl:function(){var e,t,n,i,o,r,l,u,d,h,p,f=this,g=!f._pivotGridContainer;(i=!g&&f._tableElement())||(f.$element().addClass("dx-row-lines").addClass("dx-pivotgrid-fields-container"),f._pivotGridContainer=s(Q).addClass("dx-pivotgrid-container"),f._renderFieldChooser(),f._renderContextMenu(),e=s(Z).addClass($),t=s(Z).addClass(N),n=s(Z).addClass(z),i=f._createTableElement(),p=s(Z).addClass("dx-data-header"),h=s("<td>").attr("colspan","2").addClass("dx-filter-header"),d=s(Z).addClass("dx-column-header"),u=s(Z).addClass(W),s(X).append(h).appendTo(i),s(X).append(p).append(d).appendTo(i),s(X).toggleClass("dx-ie",!0===c.msie).append(u).append(e).appendTo(i),s(X).addClass("dx-bottom-row").append(t).append(n).appendTo(i),f._pivotGridContainer.append(i),f.$element().append(f._pivotGridContainer),"tree"===f.option("rowHeaderLayout")&&t.addClass("dx-area-tree-view")),f.$element().addClass(Y),f._createComponent(f.$element(),P,{dataSource:f.getDataSource(),encodeHtml:f.option("encodeHtml"),allowFieldDragging:f.option("fieldPanel.allowFieldDragging"),headerFilter:f.option("headerFilter"),visible:f.option("visible")}),o=f._renderDataArea(n),r=f._renderRowsArea(t),l=f._renderColumnsArea(e),o.tableElement().prepend(l.headElement()),g&&(f._renderLoadPanel(o.groupElement().parent(),f.$element()),f._renderDescriptionArea(),r.processScroll(),l.processScroll()),[o,r,l].forEach(function(e){a(e)}),f._renderHeaders(u,d,h,p),f._update(g)},_update:function(e){var t,n=this;t=function(){n.updateDimensions().done(function(){n._subscribeToEvents(n._columnsArea,n._rowsArea,n._dataArea)})},n._needDelayResizing(n._dataArea.getData())&&e?setTimeout(t):t()},_fireContentReadyAction:function(){this._dataController.isLoading()||this.callBase()},getScrollPath:function(e){var t=this;return"column"===e?t._columnsArea.getScrollPath(t._scrollLeft):t._rowsArea.getScrollPath(t._scrollTop)},getDataSource:function(){return this._dataController.getDataSource()},getFieldChooserPopup:function(){return this._fieldChooserPopup},hasScroll:function(e){return"column"===e?this._columnsArea.hasScroll():this._rowsArea.hasScroll()},_dimensionChanged:function(){this.updateDimensions()},_visibilityChanged:function(e){e&&this.updateDimensions()},_dispose:function(){var e=this;clearTimeout(e._hideLoadingTimeoutID),e.callBase.apply(e,arguments),e._dataController&&e._dataController.dispose()},_tableElement:function(){return this.$element().find("table").first()},addWidgetPrefix:function(e){return"dx-pivotgrid-"+e},resize:function(){this.updateDimensions()},isReady:function(){return this.callBase()&&!this._dataController.isLoading()},updateDimensions:function(){var e,t,n,a,c,d,h,p,f,m,v,y,b,x,w,C,S,I=this,T=I._tableElement(),D=I._rowsArea,A=I._columnsArea,O=I._dataArea,P=0,B=0,M=0,R=I.option("scrolling")||{},F=function(e){if(J[e])return J[e];var t,n,i={},o=s(Q).css({position:"absolute",visibility:"hidden",top:-1e3,left:-1e3,width:100,height:100}).appendTo("body"),a=s("<p>").css({width:"100%",height:200}).appendTo(o);return"auto"!==e&&(i.useNative=!!e,i.useSimulatedScrollbar=!e),o.dxScrollable(i),n=(t=o.dxScrollable("instance").option("useNative"))?o.width()-a.width():0,o.remove(),J[e]={scrollBarWidth:n,scrollBarUseNative:t},J[e]}(R.useNative),V=F.scrollBarWidth,G=T.find("."+z),j=T.find("."+N),K=T.find("."+$),Y=T.find("."+W),X=T.find(".dx-filter-header"),Z=T.find(".dx-column-header"),ee=I._rowFields,te=new H;if(l.hasWindow())return S=ee.isVisible()&&"tree"!==I.option("rowHeaderLayout"),I._detectHasContainerHeight(),O.headElement().length||O.tableElement().prepend(A.headElement()),S&&(D.updateColspans(ee.getColumnsCount()),D.tableElement().prepend(ee.headElement())),T.addClass(U),O.reset(),D.reset(),A.reset(),ee.reset(),g.deferUpdate(function(){return d=O.getColumnsWidth(),w=D.getRowsHeight(),a=S?w.slice(1):w,n=O.getRowsHeight(),b=E(Y[0],"height",{paddings:!0,borders:!0,margins:!0})+(S?w[0]:0),C=I._dataController.getColumnsInfo().length,c=k.mergeArraysByMaxValue(a,n.slice(C)),x=n.slice(0,C),y=i(x),h=D.getColumnsWidth(),I._hasHeight&&(p=r([K,G,T,Z,X],"height"),t=I.$element().height()-X.height()-T.find(".dx-data-header").height()-(Math.max(O.headElement().height(),K.height(),b)+p)),P=O.tableElement().width(),B=i(c),P&&B?(M=i(h),v=I.$element().width(),p=r([j,G,T],"width"),e=(e=v-M-p)>0?e:P,f=I._hasHeight&&B-t>=1,m=P-e>=1,f||(t=B+(m?V:0)),void g.deferRender(function(){if(A.tableElement().append(O.headElement()),ee.tableElement().append(D.headElement()),!m&&f&&V&&(o(d,V),P-=V),b>y&&(o(x,y-b),A.setRowsHeight(x)),T.removeClass(U),Z.children().css("maxWidth",e),A.groupWidth(e),A.processScrollBarSpacing(f?V:0),A.setColumnsWidth(d),D.groupHeight(I._hasHeight?t:"auto"),D.processScrollBarSpacing(m?V:0),D.setColumnsWidth(h),D.setRowsHeight(c),O.setColumnsWidth(d),O.setRowsHeight(c),O.groupWidth(e),O.groupHeight(I._hasHeight?t:"auto"),S&&ee.setColumnsWidth(h),G.toggleClass(q,!f),j.toggleClass(q,!f),!I._hasHeight&&v!==I.$element().width()){var n=v-I.$element().width();m||(o(d,n),A.setColumnsWidth(d),O.setColumnsWidth(d)),O.groupWidth(e-n),A.groupWidth(e-n)}if("virtual"===R.mode&&!I._dataController.isEmpty()){var i=I._dataController.calculateVirtualContentParams({virtualRowHeight:R.virtualRowHeight,virtualColumnWidth:R.virtualColumnWidth,itemWidths:d,itemHeights:c,rowCount:c.length,columnCount:d.length,viewportWidth:e,viewportHeight:I._hasHeight?t:s(u).outerHeight()});O.setVirtualContentParams({top:i.contentTop,left:i.contentLeft,width:i.width,height:i.height}),D.setVirtualContentParams({top:i.contentTop,width:M,height:i.height}),A.setVirtualContentParams({left:i.contentLeft,width:i.width,height:A.groupElement().height()})}var a=[];O.processScroll(F.scrollBarUseNative,m,f),_([A,D,O],function(e,t){a.push(t&&t.updateScrollable())}),I._updateLoading(),I._renderNoDataText(G),L.apply(s,a).done(function(){I._updateScrollPosition(A,D,O),te.resolve()})})):void te.resolve()}),te},applyPartialDataSource:function(e,t,n){this._dataController.applyPartialDataSource(e,t,n)}}).inherit(B).include(M);h("dxPivotGrid",ee),e.exports=ee},function(e,t,n){function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(25),a=n(6),r=a.when,s=a.Deferred,l=n(0).extend,u=n(13).inArray,c=n(3),d=n(14),h=n(43),p=n(4),f=n(1),g=n(350),_=n(368),m=n(339),v=n(200),y=n(79),b=y.foreachTree,x=y.foreachTreeAsync,w=y.createPath,C=y.formatValue,k=Math,S="GT",I="D",T="#N/A",D=300,E=function(e,t,n){e[t]||(e[t]=function(){var e=this._dataSource;return e?e[t].apply(e,arguments):n})};t.DataController=d.inherit(function(){function e(e,t,n){var i=e.text;return f.isDefined(e.displayText)?i=e.displayText:f.isDefined(e.caption)?i=e.caption:e.type===S&&(i=n.texts.grandTotal),e.isAdditionalTotal&&(i=h.format(n.texts.total||"",i)),i}function t(e,t){var n=[];return c.each(e,function(e,i){var o=y.findField(t,i.sortBySummaryField);o>=0&&n.push((i.sortBySummaryPath||[]).concat([o]))}),n}function n(e,t){for(var n=0,i=[],o=0;o<e.length;o++)for(var a=0;a<e[o].length;a++){var r=o+((e[o][a].rowspan||1)-1);if(i[o]&&(n-=i[o],i[o]=0),!1===t(e[o][a],r,o,a,n))break;i[o+(e[o][a].rowspan||1)]=(i[o+(e[o][a].rowspan||1)]||0)+1,n++}}function a(e,t,i,o,a,r){var s=[],l="row"===a,u=i.values;return u.length&&n(e,function(e,n){var a=s[n]=[],c=u[e.dataSourceIndex>=0?e.dataSourceIndex:i.grandTotalRowIndex]||[];e.isLast&&_.foreachColumnInfo(t,function(t,n){var s=(l?e.dataIndex:t.dataIndex)||0,u=o[s];if(t.isLast&&u){var d,h=c[t.dataSourceIndex>=0?t.dataSourceIndex:i.grandTotalColumnIndex];Array.isArray(h)||(h=[h]),d=h[s],a[n]={text:function(e,t,n){return e===T?n:C(e,t)}(d,u,r),value:d,format:u.format,dataType:u.dataType,columnType:t.type,rowType:e.type,rowPath:e.path||[],columnPath:t.path||[],dataIndex:s},u.width&&(a[n].width=u.width)}})}),s}function d(e,t){var n=0,i=[];return b(e,function(e){var o=e[0],a=w(e);if(!o.children||!1!==t.showTotals){var r=l(!0,{},o,{visibleIndex:n++,path:a});f.isDefined(r.index)?i[r.index]=r:i.push(r)}}),i}function A(e,t,n){if(t&&"virtual"===t.option("scrolling.mode"))return new g.VirtualScrollController(t,l({hasKnownLastPage:function(){return!0},pageCount:function(){return k.ceil(this.totalItemsCount()/this.pageSize())},updateLoading:function(){},itemsCount:function(){return this.pageIndex()<this.pageCount()-1?this.pageSize():this.totalItemsCount()%this.pageSize()},items:function(){return[]},viewportItems:function(){return[]},onChanged:function(){},isLoading:function(){return e.isLoading()},changingDuration:function(){return e._dataSource.paginate()?D:e._changingDuration||0}},n))}function O(e){var t=[];return c.each(e,function(e,n){!1===n.showTotals&&t.push(e)}),t}function P(e,t){var n=[];return c.each(e,function(e,t){!1===t.showGrandTotals&&n.push(e)}),0===t.length&&n.length===e.length&&(n=[]),n}var B=function(){function t(e,t,n){var i=(e[t]=e[t]||[])[n]={};if(e[t+1]){i.children=e[t+1];for(var o=t+1;o<e.length;o++)e[o]=void 0;e.length=t+1}return i}function n(e,n){var i,o=n&&n.length||0,a=[],l=new s;return r(x(e,function(e,n){var r=e[0],s=w(e);(i=t(a,s.length,n)).type=I,i.value=r.value,i.path=s,i.text=r.text,i.index=r.index,i.displayText=r.displayText,i.key=r.key,i.isEmpty=r.isEmpty,s.length<o&&(!r.children||0!==r.children.length)&&(i.expanded=!!r.children)})).done(function(){l.resolve(t(a,0,0).children||[])}),l}var i=function(e,t){var n=t.lastIndex-t.index||1;return function(e,t,n,i,o){for(var a=o?i:n;!e[a];)e.push([]);o?e[a].push(t):e[a].unshift(t)}(e,function(e,t,n,i){var o={type:e.type,text:e.text};return e.path&&(o.path=e.path),e.width&&(o.width=e.width),f.isDefined(e.wordWrapEnabled)&&(o.wordWrapEnabled=e.wordWrapEnabled),e.isLast&&(o.isLast=!0),e.sorted&&(o.sorted=!0),e.isMetric&&(o.dataIndex=e.dataIndex),f.isDefined(e.expanded)&&(o.expanded=e.expanded),t>1&&(o[n?"colspan":"rowspan"]=t),e.depthSize&&e.depthSize>1&&(o[n?"rowspan":"colspan"]=e.depthSize),e.index>=0&&(o.dataSourceIndex=e.index),i&&e.children&&e.children.length&&!e.children[0].isMetric&&(o.width=null,o.isWhiteSpace=!0),o}(t.headerItem,n,t.isHorizontal,t.isTree),t.index,t.depth,t.isHorizontal),t.headerItem.children&&0!==t.headerItem.children.length?t.lastIndex:t.lastIndex+1},o=function(t,i,o,l,p){var g=o.length,_=n(t,i),m=p.dataFields,v=new s;return r(_).done(function(t){p.notifyProgress(.5),p.showGrandTotals&&t[p.showTotalsPrior?"unshift":"push"]({type:S,isEmpty:p.isEmptyGrandTotal});var n=!1===p.showTotals||m.length>0&&m.length===p.hiddenTotals.length,s=m.length>0&&p.hiddenValues.length===m.length;s&&n&&(l=1),n&&"tree"!==p.layout||d(t,i,p.showTotalsPrior,"tree"===p.layout),r(x(t,function(e){var t=e[0];t.children&&0!==t.children.length||(t.depthSize=l-e.length+1)})).done(function(){g>1&&a(t,o,p),!p.showEmpty&&h(t),p.notifyProgress(.75),r(x(t,function(n){var a=n[0],r=a.isMetric,l=i[n.length-1]||{};if(a.type!==I||r||(a.width=l.width),!0!==s||a.type!==I)a.wordWrapEnabled=r?o[a.dataIndex].wordWrapEnabled:l.wordWrapEnabled,a.isLast=!a.children||!a.children.length,a.isLast&&c.each(p.sortBySummaryPaths,function(e,t){if(f.isDefined(a.dataIndex)||(t=t.slice(0)).pop(),function(e,t){var n,i=e[0],o=f.isString(t[0]),a=i.dataIndex>=0?e[1]:i;return n=o&&-1!==t[0].indexOf("&[")&&a.key||!a.key?w(e):c.map(e,function(e){return e.dataIndex>=0?e.value:e.text}).reverse(),i.type===S&&(n=n.slice(1)),n.join("/")===t.join("/")}(n,t))return a.sorted=!0,!1}),a.text=e(a,0,p);else{var d=(n[1]?n[1].children:t)||[];d.splice(u(a,d),1)}})).done(function(){t.length||t.push({}),p.notifyProgress(1),v.resolve(t)})})}),v},a=function(e,t,n){b(e,function(e){var i,o=e[0];if(!o.children||0===o.children.length)for(o.children=[],i=0;i<t.length;i++){var a=o.type===S,r="T"===o.type,s=o.type===I;!1===t[i].visible||a&&-1!==u(i,n.hiddenGrandTotals)||r&&-1!==u(i,n.hiddenTotals)||s&&-1!==u(i,n.hiddenValues)||o.children.push({caption:t[i].caption,path:o.path,type:o.type,value:i,index:o.index,dataIndex:i,isMetric:!0,isEmpty:o.isEmpty&&o.isEmpty[i]})}})},d=function(e,t,n,i){n=n||i,b(e,function(o,a){var r=o[0],s=(o[1]?o[1].children:e)||[],u=t[o.length-1];r.type===I&&r.expanded&&(!1!==u.showTotals||i)&&(-1!==a&&s.splice(n?a:a+1,0,l({},r,{children:null,type:"T",expanded:!!n||null,isAdditionalTotal:!0})),n&&(r.expanded=null))})},h=function(e){b([{children:e}],function(t,n){var i=t[0],o=(t[1]?t[1].children:e)||[],a=i.isEmpty;a&&a.length&&(a=i.isEmpty.filter(function(e){return e}).length===a.length),i&&!i.children&&a&&(o.splice(n,1),function e(t,n){var i=t[n+1];!t[n].children.length&&i&&i.children&&(i.children.splice(u(t[n],i.children),1),e(t,n+1))}(t,1))})},p=function(e,t,n,o,a){var r,s,l=0,u=[0];b(t,function(t){var c=t[0];for(s=c.isMetric?n:t.length-1;u.length-1<s;)u.push(u[u.length-1]);r=u[s]||0,l=i(e,{headerItem:c,index:r,lastIndex:l,depth:s,isHorizontal:o,isTree:a}),u.length=s,u.push(l)})};return function(e,t,n,i,a){var r=[],l=function(e){var t=0;return b(e,function(e){t=k.max(t,e.length)}),t}(e)||1,u=new s;return o(e,t,n,l,a).done(function(e){p(r,e,l,i,"tree"===a.layout),a.notifyProgress(1),u.resolve(r)}),u}}(),M={ctor:function(e){var t=this,n=t._fireChanged.bind(t);e=t._options=e||{},t.dataSourceChanged=o(),t._dataSource=t._createDataSource(e),t._rowsScrollController=A(t,e.component,{totalItemsCount:function(){return t.totalRowCount()},pageIndex:function(e){return t.rowPageIndex(e)},pageSize:function(){return t.rowPageSize()},load:function(){return t._rowsScrollController.pageIndex()>=this.pageCount()&&t._rowsScrollController.pageIndex(this.pageCount()-1),t._rowsScrollController.handleDataChanged(function(){t._dataSource.paginate()?t._dataSource.load():n.apply(this,arguments)})}}),t._columnsScrollController=A(t,e.component,{totalItemsCount:function(){return t.totalColumnCount()},pageIndex:function(e){return t.columnPageIndex(e)},pageSize:function(){return t.columnPageSize()},load:function(){return t._columnsScrollController.pageIndex()>=this.pageCount()&&t._columnsScrollController.pageIndex(this.pageCount()-1),t._columnsScrollController.handleDataChanged(function(){t._dataSource.paginate()?t._dataSource.load():n.apply(this,arguments)})}}),t._stateStoringController=new m.StateStoringController(e.component).init(),t._columnsInfo=[],t._rowsInfo=[],t._cellsInfo=[],t.expandValueChanging=o(),t.loadingChanged=o(),t.progressChanged=o(),t.scrollChanged=o(),t.load(),t._update(),t.changed=o()},_fireChanged:function(){var e=this,t=new Date;e.changed&&!e._lockChanged&&e.changed.fire(),e._changingDuration=new Date-t},_correctSkipsTakes:function(e,t,n,i,o,a){var r=n?e+n-1:e;o[i.length]=o[i.length]||0,a[i.length]=a[i.length]||0,r<t?o[i.length]++:a[i.length]++},_calculatePagingForRowExpandedPaths:function(e,t,n,i,o){var a,r,s,l=this._rowsInfo,u=Math.min(e.rowSkip+e.rowTake,l.length),c=e.rowExpandedPaths,d=[],h={};for(c.forEach(function(e,t){h[e]=t}),a=0;a<u;a++){for(n.length=t.length=d.length+1,r=0;r<l[a].length;r++){var p=l[a][r];if("D"===p.type){this._correctSkipsTakes(a,e.rowSkip,p.rowspan,d,t,n);var f=(s=p.path||s)&&s.length>1?h[s.slice(0,-1)]:-1;f>=0&&(i[f]=t[d.length]||0,o[f]=n[d.length]||0),p.rowspan&&d.push(p.rowspan)}}d=d.map(function(e){return e-1}).filter(function(e){return e>0})}},_calculatePagingForColumnExpandedPaths:function(e,t,n,i,o){var a={},r={};_.foreachColumnInfo(this._columnsInfo,function(t,n){if("D"===t.type&&t.path&&void 0===t.dataIndex){var i=t.colspan||1,o=t.path.slice(0,-1).toString();a[o]=a[o]||0,r[o]=r[o]||0,n+i<=e.columnSkip?a[o]++:n<e.columnSkip+e.columnTake&&r[o]++}}),t[0]=a[[]],n[0]=r[[]],e.columnExpandedPaths.forEach(function(e,t){var n=a[e],s=r[e];void 0!==n&&(i[t]=n),void 0!==s&&(o[t]=s)})},_processPagingForExpandedPaths:function(e,t,n,i){var o=e[t+"ExpandedPaths"],a=o.map(function(){return 0}),r=o.map(function(){return i?e.pageSize:0}),s=[],l=[];i||("row"===t?this._calculatePagingForRowExpandedPaths(e,s,l,a,r):this._calculatePagingForColumnExpandedPaths(e,s,l,a,r)),this._savePagingForExpandedPaths(e,t,n,s[0],l[0],a,r)},_savePagingForExpandedPaths:function(e,t,n,o,a,r,s){var u=e[t+"ExpandedPaths"];e[t+"ExpandedPaths"]=[],e[t+"Skip"]=void 0!==o?o:e[t+"Skip"],e[t+"Take"]=void 0!==a?a:e[t+"Take"];for(var c=0;c<u.length;c++)if(s[c]){var d,h=e.area&&e.area!==t;n.push(l({area:t,headerName:t+"s"},e,(i(d={},t+"Skip",r[c]),i(d,t+"Take",s[c]),i(d,h?"oppositePath":"path",u[c]),d)))}},_handleCustomizeStoreLoadOptions:function(e,t){var n=this,i=e[0],o=this._rowsScrollController;if(this._dataSource.paginate()&&o){var a=o._dataSource.pageSize();"rows"===i.headerName?(i.rowSkip=0,i.rowTake=a,i.rowExpandedPaths=[]):(i.rowSkip=o.beginPageIndex()*a,i.rowTake=(o.endPageIndex()-o.beginPageIndex()+1)*a,this._processPagingForExpandedPaths(i,"row",e,t))}var r=this._columnsScrollController;if(this._dataSource.paginate()&&r){var s=r._dataSource.pageSize();e.forEach(function(i,o){"columns"===i.headerName?(i.columnSkip=0,i.columnTake=s,i.columnExpandedPaths=[]):(i.columnSkip=r.beginPageIndex()*s,i.columnTake=(r.endPageIndex()-r.beginPageIndex()+1)*s,n._processPagingForExpandedPaths(i,"column",e,t))})}},load:function(){var e=this,t=this._stateStoringController;t.isEnabled()&&!t.isLoaded()?t.load().always(function(t){t?e._dataSource.state(t):e._dataSource.load()}):e._dataSource.load()},calculateVirtualContentParams:function(e){var t=this,n=t._rowsScrollController,i=t._columnsScrollController;if(n&&i)return n.viewportItemSize(e.virtualRowHeight),n.viewportSize(e.viewportHeight/n.viewportItemSize()),n.setContentSize(e.itemHeights),i.viewportItemSize(e.virtualColumnWidth),i.viewportSize(e.viewportWidth/i.viewportItemSize()),i.setContentSize(e.itemWidths),p.deferUpdate(function(){i.loadIfNeed(),n.loadIfNeed()}),t.scrollChanged.fire({left:i.getViewportPosition(),top:n.getViewportPosition()}),{contentTop:n.getContentOffset(),contentLeft:i.getContentOffset(),width:i.getVirtualContentSize(),height:n.getVirtualContentSize()}},setViewportPosition:function(e,t){this._rowsScrollController.setViewportPosition(t||0),this._columnsScrollController.setViewportPosition(e||0)},subscribeToWindowScrollEvents:function(e){this._rowsScrollController&&this._rowsScrollController.subscribeToWindowScrollEvents(e)},updateWindowScrollPosition:function(e){this._rowsScrollController&&this._rowsScrollController.scrollTo(e)},updateViewOptions:function(e){l(this._options,e),this._update()},_handleExpandValueChanging:function(e){this.expandValueChanging.fire(e)},_handleLoadingChanged:function(e){this.loadingChanged.fire(e)},_handleProgressChanged:function(e){this.progressChanged.fire(e)},_handleFieldsPrepared:function(e){this._options.onFieldsPrepared&&this._options.onFieldsPrepared(e)},_createDataSource:function(e){var t,n=this,i=e.dataSource;return n._isSharedDataSource=i instanceof v,t=n._isSharedDataSource?i:new v(i),n._expandValueChangingHandler=n._handleExpandValueChanging.bind(n),n._loadingChangedHandler=n._handleLoadingChanged.bind(n),n._fieldsPreparedHandler=n._handleFieldsPrepared.bind(n),n._customizeStoreLoadOptionsHandler=n._handleCustomizeStoreLoadOptions.bind(n),n._changedHandler=function(){n._update(),n.dataSourceChanged.fire()},n._progressChangedHandler=function(e){n._handleProgressChanged(.8*e)},t.on("changed",n._changedHandler),t.on("expandValueChanging",n._expandValueChangingHandler),t.on("loadingChanged",n._loadingChangedHandler),t.on("progressChanged",n._progressChangedHandler),t.on("fieldsPrepared",n._fieldsPreparedHandler),t.on("customizeStoreLoadOptions",n._customizeStoreLoadOptionsHandler),t},getDataSource:function(){return this._dataSource},isLoading:function(){return this._dataSource.isLoading()},beginLoading:function(){this._dataSource.beginLoading()},endLoading:function(){this._dataSource.endLoading()},_update:function(){var e=this,n=e._dataSource,i=e._options,o=n.getAreaFields("column"),a=n.getAreaFields("row"),s=n.getAreaFields("data"),l="row"===i.dataFieldArea?s:[],u="row"!==i.dataFieldArea?s:[],c=n.getData(),h=O(s),p=function(e){var t=[];return e.forEach(function(e,n){(void 0===e.showValues&&!1===e.showTotals||!1===e.showValues)&&t.push(n)}),t}(s),g=P(s,o),_=!(s.length>0)||g.length!==s.length,m=function(t){this.progress=t,e._handleProgressChanged(.8+.1*v.progress+.1*y.progress)},v={isEmptyGrandTotal:c.isEmptyGrandTotalRow,texts:i.texts||{},hiddenTotals:h,hiddenValues:p,hiddenGrandTotals:[],showTotals:i.showRowTotals,showGrandTotals:!1!==i.showRowGrandTotals&&_,sortBySummaryPaths:t(o,s),showTotalsPrior:"rows"===i.showTotalsPrior||"both"===i.showTotalsPrior,showEmpty:!i.hideEmptySummaryCells,layout:i.rowHeaderLayout,fields:a,dataFields:s,progress:0,notifyProgress:m},y={isEmptyGrandTotal:c.isEmptyGrandTotalColumn,texts:i.texts||{},hiddenTotals:h,hiddenValues:p,hiddenGrandTotals:g,showTotals:i.showColumnTotals,showTotalsPrior:"columns"===i.showTotalsPrior||"both"===i.showTotalsPrior,showGrandTotals:!1!==i.showColumnGrandTotals&&_,sortBySummaryPaths:t(a,s),showEmpty:!i.hideEmptySummaryCells,fields:o,dataFields:s,progress:0,notifyProgress:m};f.isDefined(c.grandTotalRowIndex)||(c.grandTotalRowIndex=d(c.rows,v).length),f.isDefined(c.grandTotalColumnIndex)||(c.grandTotalColumnIndex=d(c.columns,y).length),n._changeLoadingCount(1),r(B(c.columns,o,u,!0,y),B(c.rows,a,l,!1,v)).always(function(){n._changeLoadingCount(-1)}).done(function(t,n){e._columnsInfo=t,e._rowsInfo=n,e._rowsScrollController&&e._columnsScrollController&&e.changed&&!e._dataSource.paginate()&&(e._rowsScrollController.reset(),e._columnsScrollController.reset(),e._lockChanged=!0,e._rowsScrollController.load(),e._columnsScrollController.load(),e._lockChanged=!1)}).done(function(){e._fireChanged(),e._stateStoringController.isEnabled()&&!e._dataSource.isLoading()&&(e._stateStoringController.state(e._dataSource.state()),e._stateStoringController.save())})},getRowsInfo:function(e){var t,i=this,o=i._rowsInfo,a=i._rowsScrollController;if(a&&!e){var r=a.beginPageIndex()*i.rowPageSize(),s=a.endPageIndex()*i.rowPageSize()+i.rowPageSize(),u=[],c=1;return n(o,function(e,n,i,o,a){var d=i<r?0:i-r,h=e;if(n>=r&&i<s)u[d]=u[d]||[],t=i<r?e.rowspan-(r-i)||1:e.rowspan,r+d+t>s&&(t=s-(d+r)||1),t!==e.rowspan&&(h=l({},h,{rowspan:t})),u[d].push(h),c=k.max(c,a+1);else if(void 0>s)return!1}),n(u,function(e,t,n,i,o){o+(e.colspan||1)>c&&(u[n][i]=l({},e,{colspan:c-o||1}))}),u}return o},getColumnsInfo:function(e){var t=this,n=t._columnsInfo,i=t._columnsScrollController;if(i&&!e){var o=i.beginPageIndex()*t.columnPageSize(),a=i.endPageIndex()*t.columnPageSize()+t.columnPageSize();n=_.createColumnsInfo(n,o,a)}return n},totalRowCount:function(){return this._rowsInfo.length},rowPageIndex:function(e){return void 0!==e&&(this._rowPageIndex=e),this._rowPageIndex||0},totalColumnCount:function(){var e=0;if(this._columnsInfo&&this._columnsInfo.length)for(var t=0;t<this._columnsInfo[0].length;t++)e+=this._columnsInfo[0][t].colspan||1;return e},rowPageSize:function(e){return void 0!==e&&(this._rowPageSize=e),this._rowPageSize||20},columnPageSize:function(e){return void 0!==e&&(this._columnPageSize=e),this._columnPageSize||20},columnPageIndex:function(e){return void 0!==e&&(this._columnPageIndex=e),this._columnPageIndex||0},getCellsInfo:function(e){var t=this.getRowsInfo(e),n=this.getColumnsInfo(e),i=this._dataSource.getData(),o=this._options.texts||{};return a(t,n,i,this._dataSource.getAreaFields("data"),this._options.dataFieldArea,o.dataNotAvailable)},dispose:function(){var e=this;e._isSharedDataSource?(e._dataSource.off("changed",e._changedHandler),e._dataSource.off("expandValueChanging",e._expandValueChangingHandler),e._dataSource.off("loadingChanged",e._loadingChangedHandler),e._dataSource.off("progressChanged",e._progressChangedHandler),e._dataSource.off("fieldsPrepared",e._fieldsPreparedHandler),e._dataSource.off("customizeStoreLoadOptions",e._customizeStoreLoadOptionsHandler)):e._dataSource.dispose(),e._columnsScrollController&&e._columnsScrollController.dispose(),e._rowsScrollController&&e._rowsScrollController.dispose(),e._stateStoringController.dispose(),e.expandValueChanging.empty(),e.changed.empty(),e.loadingChanged.empty(),e.progressChanged.empty(),e.scrollChanged.empty(),e.dataSourceChanged.empty()}};return E(M,"applyPartialDataSource"),E(M,"collapseHeaderItem"),E(M,"expandHeaderItem"),E(M,"getData"),E(M,"isEmpty"),M}())},function(e,t,n){var i=n(6),o=i.when,a=i.Deferred,r=n(40),s=n(41),l=n(56),u=n(45),c=n(135),d=n(20),h=n(14),p=n(4),f=n(1),g=n(3).each,_=n(79),m=_.getFiltersByPath,v=_.setFieldProperty,y=n(68),b="/./";t.LocalStore=h.inherit(function(){function e(e){return-1!==e.indexOf(".")?d.compileGetter(e):function(t){return t[e]}}function t(e){return function(t){var n=e(t);return!n||n instanceof Date||(n=l.deserializeDate(n)),n}}function n(i){g(i||[],function(i,o){var a,r,s,l,u=o.dataField,c=o.levels;if(!o.selector){if(l=u?e(u):function(e){return e},c&&n(c),"date"===o.dataType){r=M[o.groupInterval];var d=t(l);a=function(e){var t=d(e);return r?r(t):t}}else"number"===o.dataType?(s=f.isNumeric(o.groupInterval)&&o.groupInterval>0&&o.groupInterval,a=function(e){var t=l(e);return f.isString(t)&&(t=Number(t)),s?Math.floor(t/s)*s:t}):a=l;_.setDefaultFieldValueFormatting(o),v(o,"selector",a)}})}function i(e,t,n,i){var o=[0],a=t.headerName===i?t.path.length:0,r="rows"===i?t.rowExpandedPaths:t.columnExpandedPaths;return function e(t,n,i,o,a){var r,s,l=n.dimensions[o],u=n.expandedPathsHash;l&&(r=l.selector(n.data),s=R(r,i,a=void 0!==a?a+b+r:r+"",n.childrenHash),t.push(s.index),(u&&u[a]||l.expanded)&&(s.children||(s.children=[]),e(t,n,s.children,o+1,a)))}(o,{data:e,childrenHash:n[i+"Hash"],dimensions:t[i],expandedPathsHash:t.headerName!==i&&r&&r.hash},n[i],a),o}function h(e,t,n,o){var a,r,s,l,u=[],c=i(e,o,n,"rows"),d=i(e,o,n,"columns");for(r=0;r<c.length;r++)for(t[s=c[r]]=t[s]||[],a=0;a<d.length;a++)l=d[a],u.push(t[s][l]=t[s][l]||[]);return u}function x(e){if(e){var t=e.hash={};e.forEach(function(e){var n=e.map(function(e){return e+""}).join(b);t[n]=!0})}}function w(e){e.rows=e.rows||[],e.columns=e.columns||[],e.filters=e.filters||[],x(e.columnExpandedPaths),x(e.rowExpandedPaths),n(e.columns),n(e.rows),n(e.values),n(e.filters)}function C(e){return"custom"===e.summaryType?(e.calculateCustomSummary=e.calculateCustomSummary||p.noop,{seed:function(){var t={summaryProcess:"start",totalValue:void 0};return e.calculateCustomSummary(t),t},step:function(t,n){return t.summaryProcess="calculate",t.value=n,e.calculateCustomSummary(t),t},finalize:function(t){return t.summaryProcess="finalize",delete t.value,e.calculateCustomSummary(t),t.totalValue}}):r.aggregators[e.summaryType]||r.aggregators.count}function k(e,t,n){for(var i=0;i<e.length;i++)for(var o=e[i],a=o.selector(n),r=C(o),s="function"==typeof r.seed,l=0;l<t.length;l++){var u=t[l];u.length<=i&&(u[i]=s?r.seed():r.seed),void 0===u[i]?u[i]=a:f.isDefined(a)&&(u[i]=r.step(u[i],a))}}function S(e,t){var n=e&&e.valueOf(),i=t&&t.valueOf();if(Array.isArray(e)){t=t||[];for(var o=0;o<e.length;o++)if((n=e[o]&&e[o].valueOf())!==(i=t[o]&&t[o].valueOf()))return!1;return!0}return n===i}function I(e){var t=[];return g(e,function(e,n){var i,o=n.filterValues||[];n.groupName&&f.isNumeric(n.groupIndex)||(i=function(e){for(var t=n.levels?function(e,t){var n=[];return g(e,function(e,i){n.push(i.selector(t))}),n}(n.levels,e):n.selector(e),i=!1,a=0;a<o.length;a++)if(S(o[a],t)){i=!0;break}return"exclude"===n.filterType?!i:i},o.length&&t.push(i))}),t}function T(e){var t=I(e.rows).concat(I(e.columns)).concat(I(e.filters)),n=e[e.headerName],i=e.path;return n&&t.push(function(e){for(var t,o=0;o<i.length;o++)if(t=n[o].selector(e),d.toComparable(t,!0)!==d.toComparable(i[o],!0))return!1;return!0}),function(e){for(var n=0;n<t.length;n++)if(!t[n](e))return!1;return!0}}function D(e,t,n){var i,o,r,s={columns:[],rows:[],columnsHash:{length:1},rowsHash:{length:1}},l=[],u=new a,c=0;return o=T(t),function a(){for(var d=new Date,p=c;c<e.length;c++){if(c>p&&c%1e4==0&&new Date-d>=300)return n(c/e.length),void setTimeout(a,0);r=e[c],o(r)&&(i=h(r,l,s,t),k(t.values,i,r))}(function(e,t){g(e,function(e,n){var i=C(n);i.finalize&&g(t,function(t,n){g(n,function(t,n){n&&void 0!==n[e]&&(n[e]=i.finalize(n[e]))})})})})(t.values,l),n(1),u.resolve({rows:s.rows,columns:s.columns,values:l,grandTotalRowIndex:0,grandTotalColumnIndex:0})}(),u}function E(e,t){var n=e.filter();return e.store()instanceof c&&n?(n=B(n,t),s(e.items()).filter(n).toArray()):e.items()}function A(e,t,n){var i=new a,r=function(n){e.store()instanceof y&&(n.storeLoadOptions.filter=B(n.storeLoadOptions.filter,t))};if(e.on("customizeStoreLoadOptions",r),!e.isLoaded()||n){var s=n?e.load():e.reload();o(s).done(function(){A(e,t).done(function(){i.resolve(E(e,t))}).fail(i.reject)}).fail(i.reject)}else i.resolve(E(e,t));return i.always(function(){e.off("customizeStoreLoadOptions",r)})}function O(n,i){i.forEach(function(i){if(i.dataField&&"date"===i.dataType){var o=t(e(i.dataField));n[i.dataField]=function(e){return o(e)}}})}function P(e){var t={};return Array.isArray(e)?O(t,e):e&&["rows","columns","filters"].forEach(function(n){e[n]&&O(t,e[n])}),t}function B(e,t){if(!Array.isArray(e))return e;e=e.slice(0),f.isString(e[0])&&(e[1]instanceof Date||e[2]instanceof Date)&&(e[0]=t[e[0]]);for(var n=0;n<e.length;n++)e[n]=B(e[n],t);return e}var M={year:function(e){return e&&e.getFullYear()},quarter:function(e){return e&&Math.floor(e.getMonth()/3)+1},month:function(e){return e&&e.getMonth()+1},day:function(e){return e&&e.getDate()},dayOfWeek:function(e){return e&&e.getDay()}},R=function(e,t,n,i){var o=i[n];return o||(o={value:e,index:i.length++},i[n]=o,t.push(o)),o};return{ctor:function(e){this._progressChanged=e.onProgressChanged||p.noop,this._dataSource=new u.DataSource(e),this._dataSource.paginate(!1)},getFields:function(e){var t=this._dataSource,n=new a;return A(t,P(e)).done(function(t){n.resolve(_.discoverObjectFields(t,e))}).fail(n.reject),n},key:function(){return this._dataSource.key()},load:function(e){var t=this,n=t._dataSource,i=new a;return w(e),A(n,P(e),e.reload).done(function(n){o(D(n,e,t._progressChanged)).done(i.resolve)}).fail(i.reject),i},filter:function(){var e=this._dataSource;return e.filter.apply(e,arguments)},supportPaging:function(){return!1},getDrillDownItems:function(e,t){t=t||{},w(e=e||{});for(var n,i=[],o=this._dataSource.items(),a=t.maxRowCount,r=t.customColumns,s=T(e),l=T({rows:m(e.rows,t.rowPath),columns:m(e.columns,t.columnPath),filters:[]}),u=0;u<o.length;u++){if(l(o[u])&&s(o[u])){if(r){n={};for(var c=0;c<r.length;c++)n[r[c]]=o[u][r[c]]}else n=o[u];i.push(n)}if(a>0&&i.length===a)break}return i}}}()).include(_.storeDrillDownMixin)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n=[];return(0,w.each)(e,function(i,o){n.push({selector:o.dataField,groupInterval:o.groupInterval,desc:t&&"desc"===o.sortOrder,isExpanded:i<e.length-1})}),n}function a(e,t,n,i){return[[e,i?"<":">=",n],i?"or":"and",[e,i?">=":"<",n+t]]}function r(e,t){var n=function(e){var t=e.dataField,n=e.groupInterval;return"date"===e.dataType&&"string"==typeof n&&("quarter"===n.toLowerCase()&&(n="Month"),t=t+"."+I.default.capitalizeFirstLetter(n)),t}(e),i="exclude"===e.filterType,o=[n,i?"<>":"=",t];return(0,y.isDefined)(e.groupInterval)&&("string"==typeof e.groupInterval&&"quarter"===e.groupInterval.toLowerCase()?o=a(n,3,3*(t-1)+1,i):"number"==typeof e.groupInterval&&"date"!==e.dataType&&(o=a(n,e.groupInterval,t,i))),o}function s(e){var t=[];return(0,w.each)(e,function(e,n){var i=function e(t,n){var i=[];return t.searchValue?[t.dataField,"contains",t.searchValue]:(n="exclude"===t.filterType?n||"and":n||"or",(0,w.each)(t.filterValues,function(o,a){var s=[],l=t.levels?t.levels[o]:t;Array.isArray(a)?t.levels&&t.levels.length&&(s=e({filterValues:a,filterType:l.filterType,levels:t.levels},"and")):s=r(l,a),s.length&&(i.length&&i.push(n),i.push(s))}),i)}(n);return i.length?(t.length&&t.push("and"),void t.push(i)):[]}),1===t.length&&(t=t[0]),t}function l(e,t){var n=function(e){return e&&e.length};return n(e)&&n(t)?[e,"and",t]:n(e)?e:t}function u(e,t,n){var i=s(e.filters),a=o(e.rows,e.rowTake).concat(o(e.columns,e.columnTake)),r={groupSummary:[],totalSummary:[],group:a.length?a:void 0,take:a.length?void 0:1};return e.rows.length&&e.rowTake?(r.skip=e.rowSkip,r.take=e.rowTake,r.requireGroupCount=!0):e.columns.length&&e.columnTake&&!n&&(r.skip=e.columnSkip,r.take=e.columnTake,r.requireGroupCount=!0),t&&(i=l(i,t)),i.length&&(r.filter=i),(0,w.each)(e.values,function(t,n){var i={selector:n.dataField,summaryType:n.summaryType||"count"};r.groupSummary.push(i),e.includeTotalSummary&&r.totalSummary.push(i)}),r}function c(e,t,n,i,o){e[n]=e[n]||[],e[n][i]=e[n][i]||[],(0,y.isDefined)(e[n][i][o])||(e[n][i][o]=t)}function d(e,t,n,i){function o(e,t,n,o,a){var r,s,l,u,c=i[t+"Hash"],d=n.slice(0,o+1).join("/");return void 0!==c[d]?l=c[d]:(l={value:function(e,t){return t&&"number"===t.dataType&&(0,y.isString)(e)?Number(e):!t||"date"!==t.dataType||t.groupInterval||e instanceof Date?e:(0,T.deserializeDate)(e)}(e.key,a),index:i[t+"Index"]++},u=n.slice(0,o).join("/"),o>0&&void 0!==c[u]?s=(r=c[u]).children=r.children||[]:s=i[t+"s"],s.push(l),c[d]=l),l}var a=[],r=[],s=i.rowHash,l=i.columnHash;if(t&&t.summary&&(0,w.each)(t.summary,function(e,t){c(i.values,t,i.grandTotalRowIndex,i.grandTotalColumnIndex,e)}),t&&t.groupCount>=0){var u=n.rows.length?n.rowSkip:n.columnSkip;(e=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Array(u))).concat(e)).length=t.groupCount}return function e(t,n,i){t=t||[],i=i||0;for(var o=0;o<t.length;o++){var a=t[o];n(a,i),a&&a.items&&a.items.length&&e(a.items,n,i+1)}}(e,function(e,t){var u,d,h=t>=n.rows.length?n.rows.length:t,p=t>=n.rows.length?t-n.rows.length:0;if(!(t>=n.rows.length&&p>=n.columns.length)){t<n.rows.length&&(r=[]),t>=n.rows.length?e?(r[p]=e.key+"",u=o(e,"column",r,p,n.columns[r.length-1]),d=s[a.slice(0,h+1).join("/")]):i.columns.push({}):e?(a[h]=e.key+"",d=o(e,"row",a,h),u=l[r.slice(0,p+1).join("/")]):i.rows.push({});var f=d&&d.index||i.grandTotalRowIndex,g=u&&u.index||i.grandTotalColumnIndex;(0,w.each)(e&&e.summary||[],function(e,t){c(i.values,t,f,g,e)})}}),i}function h(e){return(e||[]).filter(function(e){return e.filterValues&&e.filterValues.length||e.searchValue})}function p(e,t){if(e.headerName){if(t===e.headerName)return e.path.length;if(e.oppositePath)return e.oppositePath.length}return 0}function f(e,t,n,i){var o=[],a=n>i?0:i,r=e.headerName!==t?e[t].slice(a,n):[],s="rows"===t?e.rowExpandedPaths:e.columnExpandedPaths;return(0,w.each)(r,function(e,t){var i=[];(0,w.each)(s,function(t,o){o=o.slice(a,n),e<o.length&&i.push(o[e])}),i.length&&o.push((0,x.extend)({},t,{filterType:"include",filterValues:i}))}),o}function g(e,t,n,i,o,a){var r,s=("columns"===t?e.columnExpandedPaths:e.rowExpandedPaths)||[],l="columns"===t?"rows":"columns",u=e[t],c=[];if(s.length)for(var d=n;d<i+1;d++)(r={filters:o.concat(f(e,t,d,a))})[t]=u.slice(n,d+1),r[l]=[],d===i&&(r.includeTotalSummary=!0),c.push((0,x.extend)({},e,r));else(r={filters:o,includeTotalSummary:!0})[t]=u.slice(n,i+1),r[l]=[],c.push((0,x.extend)({},e,r));return c}function _(e){var t=0;return(0,w.each)(e,function(e,n){if(!n.expanded)return t=e,!1}),t}function m(e){var t,n=I.default.getExpandedLevel(e,"rows"),i=I.default.getExpandedLevel(e,"columns"),o=e.filters||[],a=p(e,"columns"),r=_(e.columns),s=_(e.rows),l=p(e,"rows"),u=[];if(t=g(e,"columns",a,i,o=o.concat(h(e.rows)).concat(h(e.columns)).concat(function(e){return(0,S.getFiltersByPath)(e[e.headerName],e.path).concat((0,S.getFiltersByPath)(e["rows"===e.headerName?"columns":"rows"],e.oppositePath||[]))}(e)),r),e.rows.length&&e.columns.length){e.headerName||(u=u.concat(t));for(var c=l;c<n+1;c++)for(var d=e.rows.slice(l,c+1),m=f(e,"rows",c,s),v=a;v<i+1;v++){var y=(0,x.extend)({},e,{columns:e.columns.slice(a,v+1),rows:d,filters:o.concat(f(e,"columns",v,r)).concat(m)});u.push(y)}}else u=e.columns.length?t:g(e,"rows",l,n,o,s);return u}function v(e){(0,w.each)(e||[],function(e,t){var n=t.levels;n&&v(n),I.default.setDefaultFieldValueFormatting(t)})}var y=n(1),b=i(n(14)),x=n(0),w=n(3),C=i(n(45)),k=n(6),S=n(79),I=i(S),T=n(56);e.exports=b.default.inherit({ctor:function(e){this._dataSource=new C.default.DataSource(e),this._store=this._dataSource.store()},getFields:function(e){var t=new k.Deferred;return this._store.load({skip:0,take:20}).done(function(n){t.resolve(I.default.discoverObjectFields(n,e))}).fail(t.reject),t},key:function(){return this._store.key()},load:function(e){var t=this,n=new k.Deferred,i={rows:[],columns:[],values:[[[]]],grandTotalRowIndex:0,grandTotalColumnIndex:0,rowHash:{},columnHash:{},rowIndex:1,columnIndex:1},o=m(e),a=[];return v(e.rows),v(e.columns),v(e.filters),(0,w.each)(o,function(n,i){a.push(t._store.load(u(i,t.filter(),e.rows.length)))}),k.when.apply(null,a).done(function(){var e=a.length>1?arguments:[arguments];(0,w.each)(e,function(e,t){d(t[0],t[1],o[e],i)}),n.resolve({rows:i.rows,columns:i.columns,values:i.values,grandTotalRowIndex:i.grandTotalRowIndex,grandTotalColumnIndex:i.grandTotalColumnIndex})}).fail(n.reject),n},filter:function(){return this._dataSource.filter.apply(this._dataSource,arguments)},supportPaging:function(){return!1},createDrillDownDataSource:function(e,t){e=e||{},t=t||{};var n=this._store,i=s((0,S.getFiltersByPath)(e.rows,t.rowPath).concat((0,S.getFiltersByPath)(e.columns,t.columnPath)).concat(h(e.rows)).concat(e.filters||[]).concat(h(e.columns)));return new C.default.DataSource({load:function(e){return n.load((0,x.extend)({},e,{filter:l(i,e.filter),select:t.customColumns}))}})}})},function(e,t,n){function i(e,t,n){var i,o,a={index:-1};if(s.isObject(t)||(n.fields[t]?t=n[t]:(o=e.columns.concat(e.rows).concat(e.values),i=h(o,t),t=n[t]=o[i])),t){var r=t.area||"data";a=n.positions[t.index]=n.positions[t.index]||{area:r,index:u(t,e["data"===r?"values":r+"s"])}}return a}function o(e){return e===g?"_rowPath":"_columnPath"}function a(e){var t=e.summaryDisplayMode,n=e.allowCrossGroupCalculation,i=_;return s.isFunction(e.calculateSummaryValue)?i=e.calculateSummaryValue:t&&((i="absoluteVariation"===t?b(n):"percentVariation"===t?x(n):w[t])&&!e.format&&-1!==t.indexOf("percent")&&d.setFieldProperty(e,"format","percent")),i}function r(e,t,n,i){var o=e.values[t][n]=e.values[t][n]||[],a=o.originalCell;a&&(!o.allowResetting&&i||(e.values[t][n]=a.slice()),e.values[t][n].allowResetting=i)}var s=n(1),l=n(0).extend,u=n(13).inArray,c=s.isDefined,d=n(79),h=d.findField,p=d.foreachTree,f="column",g="row",_=null,m=function(e,t){var n=e/t;return c(e)&&!isNaN(n)||(n=_),n},v=function(e,t){return m(e.value(),e.grandTotal(t).value())},y=function(e,t){var n=e.parent(t),i=n?n.value():e.value();return m(e.value(),i)},b=function(e){return function(t){var n=t.prev(f,e),i=n&&n.value();return c(i)&&c(t.value())?t.value()-i:_}},x=function(e){var t=b(e);return function(n){var i=t(n),o=n.prev(f,e),a=o&&o.value();return i!==_&&a?i/a:_}},w={percentOfColumnTotal:function(e){return y(e,g)},percentOfRowTotal:function(e){return y(e,f)},percentOfColumnGrandTotal:function(e){return v(e,g)},percentOfRowGrandTotal:function(e){return v(e,f)},percentOfGrandTotal:function(e){return v(e)}},C=function(e){if(e.runningTotal){var t=e.runningTotal===f?g:f;return function(n){var i=e.allowCrossGroupCalculation?function e(t,n){if(t&&t.parent(n)){var i=t.prev(n);return i||(i=e(t.parent(n),n)),i}}(n,t):n.prev(t,!1),o=n.value(!0),a=i&&i.value(!0);return c(a)&&c(o)?o=a+o:c(a)&&(o=a),o}}},k=function(e,t,n,i,o,a){this._columnPath=e,this._rowPath=t,this._fieldIndex=o,this._fieldsCache=a||{fields:{},positions:{}},this._data=n,this._descriptions=i;var r=n.values&&n.values[t[0].index]&&n.values[t[0].index][e[0].index];r&&(r.originalCell=r.originalCell||r.slice(),this._cell=r)};k.prototype=l(k.prototype,{_getPath:function(e){return this[o(e)]},_getDimension:function(e){return e=e===g?"rows":"columns",this._descriptions[e]},_createCell:function(e){var t=this;return new k(e._columnPath||t._columnPath,e._rowPath||t._rowPath,t._data,t._descriptions,t._fieldIndex)},parent:function(e){var t=this._getPath(e).slice(),n={};return t.shift(),t.length?(n[o(e)]=t,this._createCell(n)):_},children:function(e){var t=this._getPath(e).slice(),n=t[0],i=[],a={};if(n.children)for(var r=0;r<n.children.length;r++)a[o(e)]=[n.children[r]].concat(t.slice()),i.push(this._createCell(a));return i},grandTotal:function(e){var t={},n=this._rowPath,i=this._columnPath,a=this._getPath(e),r=o(e);return e?t[r]=[a[a.length-1]]:(t._rowPath=[n[n.length-1]],t._columnPath=[i[i.length-1]]),this._createCell(t)},next:function(e,t){var n,i,o=this._getPath(e),a=o[0],r=this.parent(e);if(r&&(i=u(a,o[1].children),(n=r.children(e))[i+1]))return n[i+1];if(t&&r){do{n=(r=r.next(e,t))?r.children(e):[]}while(r&&!n.length);return n[0]||_}return _},prev:function(e,t){var n,i,o=this._getPath(e),a=o[0],r=this.parent(e);if(r&&(i=u(a,o[1].children),(n=r.children(e))[i-1]))return n[i-1];if(t&&r){do{n=(r=r.prev(e,t))?r.children(e):[]}while(r&&!n.length);return n[n.length-1]||_}return _},cell:function(){return this._cell},field:function(e){if("data"===e)return this._descriptions.values[this._fieldIndex];var t=this._getPath(e),n=this._getDimension(e)[t.length-2];return n||_},child:function(e,t){for(var n,i=this.children(e),o=0;o<i.length;o++)if(n=n||i[o].field(e),i[o].value(n)===t)return i[o];return _},slice:function(e,t){var n,a,r,s,l={},u=i(this._descriptions,e,this._fieldsCache),c=u.area,d=u.index,h=_;if((c===g||c===f)&&(a=this._getPath(c).slice())[s=-1!==d&&a.length-2-d]){[][a.length-1]=a[a.length-1];for(var p=s;p>=0;p--){if(a[p+1]){n=a[p+1].children||[],r=p===s?t:a[p].value,a[p]=void 0;for(var m=0;m<n.length;m++)if(n[m].value===r){a[p]=n[m];break}}if(void 0===a[p])return h}l[o(c)]=a,h=this._createCell(l)}return h},value:function(e,t){var n,o,a=this._cell,r=this._fieldIndex,s=!0===e||!1===e,l=s?_:e,u=s&&e||t;if(c(l)){var d=i(this._descriptions,l,this._fieldsCache);if(r=d.index,"data"!==d.area)return(n=this._getPath(d.area))[o=-1!==r&&n.length-2-r]&&n[o].value}return a&&a.originalCell?u?a[r]:a.originalCell[r]:_}}),t.applyDisplaySummaryMode=function(e,t){var n=[],i=[{index:t.grandTotalColumnIndex,children:t.columns}],o=[{index:t.grandTotalRowIndex,children:t.rows}],s=e.values,l={fields:{},positions:{}};t.values=t.values||[],p(o,function(o){var u=o[0];u.isEmpty=[],t.values[u.index]=t.values[u.index]||[],p(i,function(i){var c,d,h,p,f=i[0];f.isEmpty=f.isEmpty||[],r(t,u.index,f.index,!1);for(var g=0;g<s.length;g++)h=s[g],p=!1,(c=n[g]=void 0===n[g]?a(h):n[g])&&(p=null==((d=new k(i,o,t,e,g,l)).cell()[g]=c(d))),void 0===f.isEmpty[g]&&(f.isEmpty[g]=!0),void 0===u.isEmpty[g]&&(u.isEmpty[g]=!0),p||(u.isEmpty[g]=f.isEmpty[g]=!1)},!1)},!1),t.isEmptyGrandTotalRow=o[0].isEmpty,t.isEmptyGrandTotalColumn=i[0].isEmpty},t.applyRunningTotal=function(e,t){var n=[],i=[{index:t.grandTotalColumnIndex,children:t.columns}],o=[{index:t.grandTotalRowIndex,children:t.rows}],a=e.values,s={fields:{},positions:{}};t.values=t.values||[],p(o,function(o){var l=o[0];t.values[l.index]=t.values[l.index]||[],p(i,function(i){var u,c,d,h=i[0];r(t,l.index,h.index,!0);for(var p=0;p<a.length;p++)d=a[p],(u=n[p]=void 0===n[p]?C(d):n[p])&&((c=new k(i,o,t,e,p,s)).cell()[p]=u(c))},!1)},!1)},t.createMockSummaryCell=function(e,t,n){var i=new k([],[],{},e,0);return i.value=function(i){if(c(i)){var o=h(t,i),a=t[o];n[o]||!a||c(a.area)||(e.values.push(a),n[o]=!0)}},i.grandTotal=function(){return this},i.children=function(){return[]},i}},function(e,t,n){var i=n(2),o=n(252);t.DataArea=o.AreaItem.inherit({_getAreaName:function(){return"data"},_createGroupElement:function(){return i("<div>").addClass("dx-pivotgrid-area").addClass("dx-pivotgrid-area-data")},_applyCustomStyles:function(e){var t=e.cell,n=e.classArray;"T"!==t.rowType&&"T"!==t.columnType||n.push("dx-total"),"GT"!==t.rowType&&"GT"!==t.columnType||n.push("dx-grandtotal"),"T"!==t.rowType&&"GT"!==t.rowType||n.push("dx-row-total"),e.rowIndex===e.rowsCount-1&&e.cssArray.push("border-bottom: 0px"),this.callBase(e)},_moveFakeTable:function(e){this._moveFakeTableHorizontally(e.x),this._moveFakeTableTop(e.y),this.callBase()},processScroll:function(e,t,n){var i="both";t&&!n?i="horizontal":!t&&n&&(i="vertical"),this._groupElement.css("borderTopWidth",0).dxScrollable({useNative:!!e,useSimulatedScrollbar:!e,direction:i,bounceEnabled:!1,updateManually:!0})},reset:function(){this.callBase(),this._virtualContent&&this._virtualContent.parent().css("height","auto")},setVirtualContentParams:function(e){this.callBase(e),this._virtualContent.parent().css("height",e.height),this._setTableCss({top:e.top,left:e.left})}})},function(e,t,n){function i(e,t){if(t){var n=e.data().data,i=t.parentNode.rowIndex,o=t.cellIndex;return n[i]&&n[i][o]&&n[i][o].path}}var o=n(2),a=n(1).isDefined,r=n(13).inArray,s=n(3).each,l=n(252),u="dx-expand-border";t.HorizontalHeadersArea=l.AreaItem.inherit({_getAreaName:function(){return"column"},_getAreaClassName:function(){return"dx-pivotgrid-horizontal-headers"},_createGroupElement:function(){return o("<div>").addClass(this._getAreaClassName()).addClass("dx-pivotgrid-area")},_applyCustomStyles:function(e){var t=e.cssArray,n=e.cell,i=e.rowsCount,o=e.classArray;e.cellIndex===e.cellsCount-1&&t.push((e.rtlEnabled?"border-left:":"border-right:")+"0px"),n.rowspan!==i-e.rowIndex&&e.rowIndex+1!==i||t.push("border-bottom-width:0px"),"T"!==n.type&&"GT"!==n.type||o.push("dx-row-total"),"T"===e.cell.type&&o.push("dx-total"),"GT"===e.cell.type&&o.push("dx-grandtotal"),a(n.expanded)&&o.push(n.expanded?"dx-pivotgrid-expanded":"dx-pivotgrid-collapsed"),this.callBase(e)},_getMainElementMarkup:function(){return"<thead class='"+this._getAreaClassName()+"'>"},_getCloseMainElementMarkup:function(){return"</thead>"},setVirtualContentParams:function(e){this.callBase(e),this._setTableCss({left:e.left,top:0}),this._virtualContentWidth=e.width},hasScroll:function(){var e=this._virtualContent?this._virtualContentWidth:this._tableWidth;return!(!this._groupWidth||!e)&&e-this._groupWidth>=1},processScroll:function(){this._getScrollable()||this._groupElement.dxScrollable({useNative:!1,useSimulatedScrollbar:!1,showScrollbar:!1,bounceEnabled:!1,direction:"horizontal",updateManually:!0})},processScrollBarSpacing:function(e){var t=this,n=t.option("rtlEnabled")?"right":"left";t._groupWidth&&t.groupWidth(t._groupWidth-e),t._scrollBarWidth&&t._groupElement.next().remove(),t._groupElement.toggleClass("dx-vertical-scroll",e>0),t._groupElement.css("float",n).width(t._groupHeight),t._scrollBarWidth=e},ctor:function(e){this.callBase(e),this._scrollBarWidth=0},getScrollPath:function(e){var t,n=this.tableElement();return e-=parseInt(n[0].style.left,10)||0,s(n.find("td"),function(n,i){if(1===i.colSpan&&i.offsetLeft<=e&&i.offsetWidth+i.offsetLeft>e)return t=i,!1}),i(n,t)},_moveFakeTable:function(e){this._moveFakeTableHorizontally(e),this.callBase()}}),t.VerticalHeadersArea=t.HorizontalHeadersArea.inherit({_getAreaClassName:function(){return"dx-pivotgrid-vertical-headers"},_applyCustomStyles:function(e){this.callBase(e),e.cellIndex===e.cellsCount-1&&e.classArray.push("dx-last-cell"),e.rowIndex===e.rowsCount-1&&e.cssArray.push("border-bottom: 0px"),e.cell.isWhiteSpace&&e.classArray.push("dx-white-space-column")},_getAreaName:function(){return"row"},setVirtualContentParams:function(e){this.callBase(e),this._setTableCss({top:e.top,left:0}),this._virtualContentHeight=e.height},hasScroll:function(){var e=this._virtualContent?this._virtualContentHeight:this._tableHeight;return!(!this._groupHeight||!e)&&e-this._groupHeight>=1},processScroll:function(){this._getScrollable()||this._groupElement.dxScrollable({useNative:!1,useSimulatedScrollbar:!1,showScrollbar:!1,bounceEnabled:!1,direction:"vertical",updateManually:!0})},processScrollBarSpacing:function(e){var t=this;t._groupHeight&&t.groupHeight(t._groupHeight-e),t._scrollBarWidth&&t._groupElement.next().remove(),e&&t._groupElement.after(o("<div>").width("100%").height(e-1)),t._scrollBarWidth=e},getScrollPath:function(e){var t,n=this.tableElement();return e-=parseInt(n[0].style.top,10)||0,s(n.find("tr"),function(n,i){var o=i.childNodes[i.childNodes.length-1];if(o&&1===o.rowSpan&&o.offsetTop<=e&&o.offsetHeight+o.offsetTop>e)return t=o,!1}),i(n,t)},_moveFakeTable:function(e){this._moveFakeTableTop(e),this.callBase()},_getRowClassNames:function(e,t,n){0!==e&t.expanded&&-1===r(u,n)&&n.push(u)},_getMainElementMarkup:function(){return"<tbody class='"+this._getAreaClassName()+"'>"},_getCloseMainElementMarkup:function(){return"</tbody>"},updateColspans:function(e){var t,n,i,o=this.tableElement()[0].rows,a=0,r=[];if(!(this.getColumnsCount()-e>0))for(n=0;n<o.length;n++)for(i=0;i<o[n].cells.length;i++){var s=o[n].cells[i],l=s.rowSpan;r[n]&&(a-=r[n],r[n]=0),t=e-(a+s.colSpan),i===o[n].cells.length-1&&t>0&&(s.colSpan=s.colSpan+t),r[n+l]=(r[n+l]||0)+s.colSpan,a+=s.colSpan}}})},function(e,t,n){var i=n(2),o=n(4).noop,a=n(3).each,r=n(252),s=n(79),l=n(46),u=n(34),c="<div>";n(253);t.FieldsArea=r.AreaItem.inherit({ctor:function(e,t){this.callBase(e),this._area=t},_getAreaName:function(){return"fields"},_createGroupElement:function(){return i(c).addClass("dx-pivotgrid-fields-area").addClass("dx-area-fields").addClass("dx-pivotgrid-drag-action").attr("group",this._area)},isVisible:function(){return!!this.option("fieldPanel.visible")&&this.option("fieldPanel.show"+s.capitalizeFirstLetter(this._area)+"Fields")},_renderButton:function(e){var t=this,n=i("<td>").appendTo(i("<tr>").appendTo(e));t.component._createComponent(i(c).appendTo(n),u,{text:"Fields",icon:"menu",width:"auto",onClick:function(){var e=t.tableElement().find(".dx-fields-area-popup").dxPopup("instance");e.option("visible")||e.show()}}).$element().addClass("dx-pivotgrid-fields-area-hamburger")},_getPopupOptions:function(e,t){return{contentTemplate:function(){return i("<table>").addClass("dx-area-field-container").append(i("<thead>").addClass("dx-pivotgrid-fields-area-head").append(e))},height:"auto",width:"auto",position:{at:"left",my:"left",of:t},dragEnabled:!1,animation:{show:{type:"pop",duration:200}},shading:!1,showTitle:!1,closeOnOutsideClick:!0,container:t.parent()}},_renderPopup:function(e,t){var n=this,o=e.find(".dx-button"),a=n._getPopupOptions(t,o),r=n.component.$element().dxPivotGridFieldChooserBase("instance");n._rowPopup&&n._rowPopup.$element().remove(),n._rowPopup=n.component._createComponent(i(c).appendTo(e),l,a),n._rowPopup.$element().addClass("dx-fields-area-popup"),n._rowPopup.content().addClass("dx-pivotgrid-fields-container"),n._rowPopup.content().parent().attr("group","row"),r.subscribeToEvents(n._rowPopup.content()),r.renderSortable(n._rowPopup.content())},_shouldCreateButton:function(){return!1},_renderTableContent:function(e,t){var n=this,o=this.groupElement(),r=this.isVisible(),s=n.component.$element().dxPivotGridFieldChooserBase("instance"),l=i("<thead>").addClass("dx-pivotgrid-fields-area-head").appendTo(e),u=n._area,d=i("<tr>");o.toggleClass("dx-hidden",!r),e.addClass("dx-area-field-container"),r&&(a(t,function(e,o){if(o.area===u&&!1!==o.visible){var a=i("<td>").append(s.renderField(o,"row"===o.area)),r=a.find(".dx-column-indicators");r.length&&n._shouldCreateButton()&&r.insertAfter(r.next()),a.appendTo(d),function(e,t,n,o){n&&n.groupName&&n.groupName===e.groupName&&i(c).addClass("dx-group-connector").addClass("dx-group-connector-prev").appendTo(o),t&&t.groupName&&t.groupName===e.groupName&&i(c).addClass("dx-group-connector").addClass("dx-group-connector-next").appendTo(o)}(o,t[e+1],t[e-1],a)}}),d.children().length||i("<td>").append(i(c).addClass("dx-empty-area-text").text(this.option("fieldPanel.texts."+u+"FieldArea"))).appendTo(d),n._shouldCreateButton()?(n._renderButton(l),n._renderPopup(e,d)):l.append(d))},reset:function(){this.callBase(),this.groupElement().css("marginTop",0)},_renderVirtualContent:o})},function(e,t,n){function i(e,t,n){return!l(t.posHorizontal)||(n?e>t.posHorizontal:e<t.posHorizontal)}function o(e,t){var n;return c(t,function(){(function(e,t,n){var i=r(e),o=i.offset();if(t>=o.left&&t<=o.left+i.outerWidth(!0)&&n>=o.top&&n<=o.top+i.outerHeight(!0))return!0})(this,e.pageX,e.pageY)&&(n=r(this))}),n}function a(e){function t(e){a=e.scrollOffset.top}function n(){i(),e.scrollTo(a+=u),o=setTimeout(n,b)}function i(){clearTimeout(o)}var o=null,a=e.scrollTop(),r=e.$element(),s=r.offset().top,l=r.height(),u=0;return e.on("scroll",t),{moveIfNeed:function(e){if(e.pageY<=s+y)u=-v;else{if(!(e.pageY>=s+l-y))return u=0,void i();u=v}n()},element:function(){return r},dispose:function(){i(),e.off("scroll",t)}}}var r=n(2),s=n(5),l=n(1).isDefined,u=n(0).extend,c=n(3).each,d=n(9).addNamespace,h=n(8),p=n(66),f=n(55),g=n(151).getSwatchContainer,_="dxSortable",m="dx-sortable",v=2,y=20,b=10,x=p.inherit({_getDefaultOptions:function(){return u(this.callBase(),{onChanged:null,onDragging:null,itemRender:null,groupSelector:null,itemSelector:".dx-sort-item",itemContainerSelector:".dx-sortable",sourceClass:"dx-drag-source",dragClass:"dx-drag",targetClass:"dx-drag-target",direction:"vertical",allowDragging:!0,groupFilter:null,useIndicator:!1})},_renderItem:function(e,t){var n,i=this.option("itemRender");return i?n=i(e,t):(n=e.clone()).css({width:e.width(),height:e.height()}),n},_renderIndicator:function(e,t,n,i){var o=e.outerHeight(!0),a=e.outerWidth(!0),r=e.offset().top-n.offset().top,s=e.offset().left-n.offset().left;this._indicator.css({position:"absolute",top:i&&t?r+o:r,left:i&&!t?s+a:s}).toggleClass("dx-position-indicator-horizontal",!t).toggleClass("dx-position-indicator-vertical",!!t).toggleClass("dx-position-indicator-last",!!i).height("").width("").appendTo(n),t?this._indicator.width(a):this._indicator.height(o)},_renderDraggable:function(e){this._$draggable&&this._$draggable.remove(),this._$draggable=this._renderItem(e,"drag").addClass(this.option("dragClass")).appendTo(g(e)).css({zIndex:1e6,position:"absolute"})},_detachEventHandlers:function(){var e=[f.move,f.start,f.end,f.enter,f.leave,f.drop].join(" ");s.off(this._getEventListener(),d(e,_))},_getItemOffset:function(e,t,n){for(var o=0;o<t.length;o++){var a,r=n.pageY<t[o].posVertical;if(e?a=r:r&&(!(a=i(n.pageX,t[o],this.option("rtlEnabled")))&&t[o+1]&&t[o+1].posVertical>t[o].posVertical&&(a=!0)),a)return t[o]}},_getEventListener:function(){var e=this.option("groupSelector"),t=this.$element();return e?t.find(e):t},_attachEventHandlers:function(){var e,t,n,i,l,u,h,p=this,g=p.option("itemSelector"),v=p.option("itemContainerSelector"),y=p.option("groupSelector"),b=p.option("sourceClass"),x=p.option("targetClass"),w=p.option("onDragging"),C=p.option("groupFilter"),k=p.$element(),S=null,I=-1,T=function(){l=[],c(e,function(e,t){l.push(r(t).offset())})},D=function(){S&&S.dispose(),S=null},E=function(){var o={sourceGroup:u,sourceIndex:t,sourceElement:e,targetGroup:i.attr("group"),targetIndex:i.find(g).index(n)};w&&w(o),o.cancel&&(i=void 0)};if(p._detachEventHandlers(),p.option("allowDragging")){var A=p._getEventListener();s.on(A,d(f.start,_),g,function(i){var o=(e=r(i.currentTarget)).closest(y);u=o.attr("group"),t=function(e,t){var n=-1,i=t.get(0);return c(e,function(t,o){var a=r(o);if(a.attr("item-group")&&a.attr("item-group")===e.eq(t-1).attr("item-group")||n++,o===i)return!1}),n===e.length?-1:n}((y?o:k).find(g),e),e.attr("item-group")&&(e=o.find("[item-group='"+e.attr("item-group")+"']")),p._renderDraggable(e),n=p._renderItem(e,"target").addClass(x),e.addClass(b),T(),h=y?C?r(y).filter(C):k.find(y):k,p._indicator=r("<div>").addClass("dx-position-indicator")}),s.on(A,d(f.move,_),function(s){var d,f,_,y,w,C,k,T=[];if(e){if(I=-1,p._indicator.detach(),c(p._$draggable,function(e,t){r(t).css({top:l[e].top+s.offset.y,left:l[e].left+s.offset.x})}),i&&i.removeClass(x),(i=o(s,h))&&E(),i&&S&&i.get(0)!==S.element().get(0)&&D(),S&&S.moveIfNeed(s),!i)return void n.detach();!S&&i.attr("allow-scrolling")&&(S=a(i.dxScrollable("instance"))),i.addClass(x),_=(f=i.find(v)).find(g);var A=i.closest("."+m).data("dxSortable"),O=A.option("useIndicator");if(T=function(e,t,n){for(var i=[],o=[],a=0;a<e.length;a+=o.length)if((o=e.eq(a)).attr("item-group")&&(o=n.find("[item-group='"+o.attr("item-group")+"']")),o.is(":visible")){var r={item:o,index:i.length,posHorizontal:t?void 0:(o.last().outerWidth(!0)+o.last().offset().left+o.offset().left)/2};r.posVertical=t?(o.last().offset().top+o.offset().top+o.last().outerHeight(!0))/2:o.last().outerHeight(!0)+o.last().offset().top,i.push(r)}return i}(_,w="vertical"===(A||p).option("direction"),f),C=p._getItemOffset(w,T,s)){if(d=C.item,k=T[C.index-1]&&T[C.index-1].item,d.hasClass(b)||k&&k.hasClass(b)&&k.is(":visible"))return void n.detach();if(I=C.index,!O)return void n.insertBefore(d);var P=i.attr("group")!==u,B=I===t,M=I===t+1;if(P)return void p._renderIndicator(d,w,i,p.option("rtlEnabled")&&!w);B||M||p._renderIndicator(d,w,i,p.option("rtlEnabled")&&!w)}else{if((y=_.last()).is(":visible")&&y.hasClass(b))return;f.length&&(I=T.length?T[T.length-1].index+1:0),O?_.length&&p._renderIndicator(y,w,i,!p.option("rtlEnabled")||w):n.appendTo(f)}}}),s.on(A,d(f.end,_),function(){if(D(),e){var o=p.option("onChanged"),a={sourceIndex:t,sourceElement:e,sourceGroup:u,targetIndex:I,removeSourceElement:!0,removeTargetElement:!1,removeSourceClass:!0};i&&(i.removeClass(x),a.targetGroup=i.attr("group"),(u!==a.targetGroup||I>-1)&&(o&&o(a),a.removeSourceElement&&e.remove())),p._indicator.detach(),a.removeSourceClass&&e.removeClass(b),e=null,p._$draggable.remove(),p._$draggable=null,a.removeTargetElement&&n.remove(),n.removeClass(x),n=null}})}},_init:function(){this.callBase(),this._attachEventHandlers()},_render:function(){this.callBase(),this.$element().addClass(m)},_dispose:function(){var e=this;e.callBase.apply(e,arguments),e._$draggable&&e._$draggable.detach(),e._indicator&&e._indicator.detach()},_optionChanged:function(e){switch(e.name){case"onDragging":case"onChanged":case"itemRender":case"groupSelector":case"itemSelector":case"itemContainerSelector":case"sourceClass":case"targetClass":case"dragClass":case"allowDragging":case"groupFilter":case"useIndicator":this._attachEventHandlers();break;case"direction":break;default:this.callBase(e)}}});h("dxSortable",x),e.exports=x},function(e,t,n){function i(e){if(e&&e.customizeText)return"string";if(e.dataType)return e.dataType;if(e.format){if(1===u.parse(l.format(1,e.format)))return"number";if(l.format(new Date,e.format))return"date"}return h}var o=n(14),a=n(1).isDefined,r=n(0).extend,s=n(3).each,l=n(63),u=n(51),c=n(172),d=c.excel,h="string",p=n(369),f=n(6),g=f.when,_=f.Deferred;t.ExportMixin=r({},p,{exportToExcel:function(){var e=this;c.export(e.getDataProvider(),{fileName:e.option("export.fileName"),proxyUrl:e.option("export.proxyUrl"),format:"EXCEL",rtlEnabled:e.option("rtlEnabled"),ignoreErrors:e.option("export.ignoreExcelErrors"),exportingAction:e._actions.onExporting,exportedAction:e._actions.onExported,fileSavingAction:e._actions.onFileSaving},d.getData)},_getLength:function(e){var t,n=e[0].length,i=0;for(t=0;t<n;t++)i+=e[0][t].colspan||1;return i},_correctCellsInfoItemLengths:function(e,t){for(var n=0;n<e.length;n++)for(;e[n].length<t;)e[n].push({});return e},_calculateCellInfoItemLength:function(e){for(var t=0,n=0;n<e.length;n++)t+=a(e[n].colspan)?e[n].colspan:1;return t},_getAllItems:function(e,t,n){var i,o,s,l=n,u=this._getLength(t),c=e.length;if(e.length>0&&e[0].length>0&&n.length>0&&0===n[0].length){var d=this._calculateCellInfoItemLength(e[0]);d>0&&(l=this._correctCellsInfoItemLengths(n,d))}for(s=e.concat(l),o=0;o<t.length;o++)for(i=t[o].length-1;i>=0;i--)a(s[o+c])||(s[o+c]=[]),s[o+c].splice(0,0,r({},t[o][i]));return s[0].splice(0,0,r({},this._getEmptyCell(),{alignment:this._options.rtlEnabled?"right":"left",colspan:u,rowspan:c})),this._prepareItems(s)},getDataProvider:function(){var e=this,n=this._dataController,i=new _;return n.beginLoading(),setTimeout(function(){var t=r(!0,[],n.getColumnsInfo(!0)),o=r(!0,[],n.getRowsInfo(!0)),a=n.getCellsInfo(!0);i.resolve(e._getAllItems(t,o,a)),n.endLoading()}),new t.DataProvider({items:i,rtlEnabled:this.option("rtlEnabled"),dataFields:this.getDataSource().getAreaFields("data"),customizeExcelCell:this.option("export.customizeExcelCell")})}}),t.DataProvider=o.inherit({ctor:function(e){this._options=e,this._styles=[]},ready:function(){var e=this,t=e._options,n=t.dataFields;return g(t.items).done(function(o){var a=o[o[0][0].rowspan-1],l={alignment:t.rtlEnabled?"left":"right"};e._styles=[{alignment:"center",dataType:"string"},{alignment:t.rtlEnabled?"right":"left",dataType:"string"}],n.length?n.forEach(function(t){e._styles.push(r({},l,{format:t.format,dataType:i(t)}))}):e._styles.push(l),s(a,function(e,t){t.width=100}),t.columns=a,t.items=o})},getColumns:function(){return this._options.columns},getRowsCount:function(){return this._options.items.length},getGroupLevel:function(){return 0},getCellMerging:function(e,t){var n=this._options.items,i=n[e]&&n[e][t];return i?{colspan:i.colspan-1,rowspan:i.rowspan-1}:{colspan:0,rowspan:0}},getFrozenArea:function(){var e=this._options.items;return{x:e[0][0].colspan,y:e[0][0].rowspan}},getCellType:function(e,t){var n=this._styles[this.getStyleId(e,t)];return n&&n.dataType||"string"},getCellData:function(e,t){var n={},i=this._options.items,o=i[e]&&i[e][t]||{};return"string"===this.getCellType(e,t)?n.value=o.text:n.value=o.value,n},getStyles:function(){return this._styles},getStyleId:function(e,t){var n=this._options.items,i=n[0][0].rowspan,o=n[0][0].colspan,a=n[e]&&n[e][t]||{};return 0===t&&0===e?0:t>=o&&e<i?0:e>=i&&t<o?1:2+(a.dataIndex||0)},hasCustomizeExcelCell:function(){return a(this._options.customizeExcelCell)},customizeExcelCell:function(e){this._options.customizeExcelCell&&this._options.customizeExcelCell(e)}})},function(e,t,n){function i(e,t){var n=[],i=t.length-1;return d(e,function(e,o){n.push(o.text||c.formatValue(o.value,t[i-e]))}),n.reverse()}function o(e){var t=0;return h(e,function(e){t=Math.max(t,e.length-1)}),t}function a(e,t){var n=e.chartDataItem,i=t&&t(e);return i?(n=u({},n,i.chartDataItem),i=u({},e,i,{chartDataItem:n})):e}function r(e,t,n){function r(){var e,i=(w.values[f]||[])[v]||[],o=i[u],r={rowPath:m,maxRowLevel:E,rowPathFormatted:_,rowFields:S,columnPathFormatted:x,maxColumnLevel:A,columnPath:b,columnFields:I,dataFields:k,dataIndex:u,dataValues:i,visible:y&&g},s=(t.inverted?x:_).join(" - "),l=(t.inverted?_:x).join("/");k.length>1&&("args"!==t.putDataFieldsInto&&"both"!==t.putDataFieldsInto||(l+=" | "+p.caption),"args"!==t.putDataFieldsInto&&(s+=" | "+p.caption,"singleAxis"!==t.dataFieldsDisplayMode&&(e=p.caption))),r.chartDataItem={val:void 0===o?null:o,series:s,arg:l},(r=a(r,t.processCell)).visible&&(n[r.chartDataItem.series]=n[r.chartDataItem.series]||e,C.push(r.chartDataItem))}function s(e){h(D,function(n){f=n[0].index,n=n.slice(0,n.length-1),g=E===n.length,m=c.createPath(n),_=i(n,S),0===m.length&&(_=[t.grandTotalText]),h(T,function(n){v=n[0].index,n=n.slice(0,n.length-1),y=A===n.length,b=c.createPath(n),x=i(n,I),0===b.length&&(x=[t.grandTotalText]),e()})})}function l(e){d(k,function(t,n){p=n,u=t,e()})}var u,p,f,g,_,m,v,y,b,x,w=e.getData(),C=[],k=e.getAreaFields("data"),S=e.getAreaFields("row"),I=e.getAreaFields("column"),T=[{index:w.grandTotalColumnIndex,children:w.columns}],D=[{index:w.grandTotalRowIndex,children:w.rows}],E=o(D),A=o(T);return!1===t.alternateDataFields?l(function(){s(r)}):s(function(){l(r)}),C}function s(e,t){var n=t.customizeSeries,i=t.customizeChart,o={valueAxis:function(e,t){var n=e.getAreaFields("data");if("args"!==t.putDataFieldsInto&&"singleAxis"!==t.dataFieldsDisplayMode||1===n.length){var i=[];return d(n,function(e,n){var o={name:n.caption,title:n.caption,valueType:p[n.dataType]||n.dataType,label:{format:n.format}};n.customizeText&&(o.label.customizeText=function(e){return n.customizeText.call(n,e)}),"splitPanes"===t.dataFieldsDisplayMode&&(o.pane=n.caption),i.push(o)}),i}return[{}]}(e,t),panes:function(e,t){var n=[],i=e.getAreaFields("data");return i.length>1&&"splitPanes"===t.dataFieldsDisplayMode&&"args"!==t.putDataFieldsInto&&d(i,function(e,t){n.push({name:t.caption})}),n.length||n.push({}),n}(e,t)},a={};return i&&(o=u(!0,{},o,i(o))),o.dataSource=r(e,t,a),o.seriesTemplate={nameField:"series",customizeSeries:function(e){var i={};return"splitPanes"===t.dataFieldsDisplayMode?i.pane=a[e]:"singleAxis"!==t.dataFieldsDisplayMode&&(i.axis=a[e]),n&&(i=u(i,n(e,i))),i}},o}var l=n(2),u=n(0).extend,c=n(79),d=n(3).each,h=c.foreachTree,p={number:"numeric",date:"datetime"},f="dxPivotGridUnbinding";e.exports={bindChart:function(e,t){t=u({},t);var n,i=this,o=function(){t.grandTotalText=i.option("texts.grandTotal");var n=s(i.getDataSource(),t);e.option(n)};return(e=function(e){if(!e)return!1;if(e.NAME)return"dxChart"===e.NAME&&e;var t=l(e);return t.data("dxChart")&&t.dxChart("instance")}(e))?(function(e){var t=e.$element().data(f);t&&t()}(e),i.on("changed",o),o(),n=function(){e.$element().removeData(f),i.off("changed",o)},e.on("disposing",n),this.on("disposing",n),e.$element().data(f,n),n):null}}},function(e,t,n){e.exports=n(373)},function(e,t,n){e.exports=n(372).XmlaStore},function(e,t,n){e.exports=n(687)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(25)),r=i(n(26)),s=i(n(18)),l=i(n(7)),u=i(n(237)),c=i(n(142)),d=i(n(10)),h=i(n(22)),p=i(n(48)),f=n(3),g=n(0),_=n(13),m=n(4),v=i(n(1)),y=i(n(16)),b=i(n(27)),x=i(n(8)),w=i(n(15)),C=i(n(56)),k=i(n(17)),S=i(n(688)),I=i(n(86)),T=n(690),D=n(691),E=i(n(692)),A=i(n(694)),O=i(n(379)),P=i(n(698)),B=i(n(699)),M=i(n(700)),R=i(n(380)),F=i(n(702)),V=i(n(703)),L=i(n(704)),H=i(n(705)),z=i(n(706)),N=i(n(707)),$=i(n(709)),W=n(714),G=i(n(374)),j=i(n(282)),q=i(n(87)),K=i(n(715)),U=i(n(716)),Y=i(n(46)),X=i(n(6)),Z=i(n(111)),Q=i(n(65)),J=i(n(30)),ee=X.default.when,te=X.default.Deferred,ne=h.default.dateToMilliseconds,ie="yyyyMMddTHHmmss",oe={day:{workSpace:A.default,renderingStrategy:"vertical"},week:{workSpace:O.default,renderingStrategy:"vertical"},workWeek:{workSpace:P.default,renderingStrategy:"vertical"},month:{workSpace:B.default,renderingStrategy:"horizontalMonth"},timelineDay:{workSpace:M.default,renderingStrategy:"horizontal"},timelineWeek:{workSpace:R.default,renderingStrategy:"horizontal"},timelineWorkWeek:{workSpace:F.default,renderingStrategy:"horizontal"},timelineMonth:{workSpace:V.default,renderingStrategy:"horizontalMonthLine"},agenda:{workSpace:L.default,renderingStrategy:"agenda"}},ae=k.default.inherit({_getDefaultOptions:function(){return(0,g.extend)(this.callBase(),{views:["day","week"],currentView:"day",currentDate:h.default.trimTime(new Date),min:void 0,max:void 0,dateSerializationFormat:void 0,firstDayOfWeek:void 0,groups:[],resources:[],dataSource:null,customizeDateNavigatorText:void 0,appointmentTemplate:"item",dropDownAppointmentTemplate:"dropDownAppointment",appointmentCollectorTemplate:"appointmentCollector",dataCellTemplate:null,timeCellTemplate:null,resourceCellTemplate:null,dateCellTemplate:null,startDayHour:0,endDayHour:24,editing:{allowAdding:!0,allowDeleting:!0,allowDragging:!0,allowResizing:!0,allowUpdating:!0},showAllDayPanel:!0,showCurrentTimeIndicator:!0,shadeUntilCurrentTime:!1,indicatorUpdateInterval:3e5,indicatorTime:void 0,recurrenceEditMode:"dialog",cellDuration:30,maxAppointmentsPerCell:"auto",selectedCellData:[],groupByDate:!1,onAppointmentRendered:null,onAppointmentClick:null,onAppointmentDblClick:null,onAppointmentContextMenu:null,onCellClick:null,onCellContextMenu:null,onAppointmentAdding:null,onAppointmentAdded:null,onAppointmentUpdating:null,onAppointmentUpdated:null,onAppointmentDeleting:null,onAppointmentDeleted:null,onAppointmentFormOpening:null,appointmentTooltipTemplate:"appointmentTooltip",appointmentPopupTemplate:"appointmentPopup",crossScrollingEnabled:!1,useDropDownViewSwitcher:!1,startDateExpr:"startDate",endDateExpr:"endDate",textExpr:"text",descriptionExpr:"description",allDayExpr:"allDay",recurrenceRuleExpr:"recurrenceRule",recurrenceExceptionExpr:"recurrenceException",remoteFiltering:!1,timeZone:"",startDateTimeZoneExpr:"startDateTimeZone",endDateTimeZoneExpr:"endDateTimeZone",noDataText:w.default.format("dxCollectionWidget-noDataText"),adaptivityEnabled:!1,allowMultipleCellSelection:!0,_appointmentTooltipOffset:{x:0,y:0},_appointmentTooltipButtonsPosition:"bottom",_appointmentTooltipOpenButtonText:w.default.format("dxScheduler-openAppointment"),_dropDownButtonIcon:"overflow",_appointmentCountPerCell:2,_collectorOffset:0,_appointmentOffset:26})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===y.default.real().deviceType&&!y.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return!y.default.current().generic},options:{useDropDownViewSwitcher:!0,editing:{allowDragging:!1,allowResizing:!1}}},{device:function(){return J.default.isMaterial()},options:{useDropDownViewSwitcher:!0,dateCellTemplate:function(e,t,n){e.text.split(" ").forEach(function(e,t){var i=(0,o.default)("<span>").text(e).addClass("dx-scheduler-header-panel-cell-date");(0,o.default)(n).append(i),t||(0,o.default)(n).append(" ")})},_appointmentTooltipOffset:{x:0,y:11},_appointmentTooltipButtonsPosition:"top",_appointmentTooltipOpenButtonText:null,_dropDownButtonIcon:"chevrondown",_appointmentCountPerCell:1,_collectorOffset:20,_appointmentOffset:30}}])},_setDeprecatedOptions:function(){this.callBase(),(0,g.extend)(this._deprecatedOptions,{onAppointmentFormCreated:{since:"18.2",alias:"onAppointmentFormOpening"}})},_postponeDataSourceLoading:function(e){this.postponedOperations.add("_reloadDataSource",this._reloadDataSource.bind(this),e)},_postponeResourceLoading:function(){var e=this,t=this.postponedOperations.add("_loadResources",function(){return e._loadResources()}),n=new te;return t.done(function(e){n.resolve(e)}),this._postponeDataSourceLoading(t),n.promise()},_optionChanged:function(e){var t=this,n=e.value,i=e.name;switch(e.name){case"customizeDateNavigatorText":this._updateOption("header",i,n);break;case"firstDayOfWeek":this._updateOption("workSpace",i,n),this._updateOption("header",i,n);break;case"currentDate":n=this._dateOption(i),n=h.default.trimTime(new Date(n)),this.option("selectedCellData",[]),this._workSpace.option(i,new Date(n)),this._header.option(i,new Date(n)),this._header.option("displayedDate",this._workSpace._getViewStartByOptions()),this._appointments.option("items",[]),this._filterAppointmentsByDate(),this._postponeDataSourceLoading();break;case"dataSource":this._initDataSource(),this._customizeStoreLoadOptions(),this._appointmentModel.setDataSource(this._dataSource),this._postponeResourceLoading().done(function(e){t._filterAppointmentsByDate(),t._updateOption("workSpace","showAllDayPanel",t.option("showAllDayPanel"))});break;case"min":case"max":n=this._dateOption(i),this._updateOption("header",i,new Date(n)),this._updateOption("workSpace",i,new Date(n));break;case"views":this._processCurrentView(),this._getCurrentViewOptions()?this.repaint():this._header.option(i,n);break;case"useDropDownViewSwitcher":this._header.option(i,n);break;case"currentView":this._processCurrentView(),this._appointments.option({items:[],allowDrag:this._allowDragging(),allowResize:this._allowResizing(),itemTemplate:this._getAppointmentTemplate("appointmentTemplate")}),this._postponeResourceLoading().done(function(e){t.getLayoutManager().initRenderingStrategy(t._getAppointmentsRenderingStrategy()),t._refreshWorkSpace(e),t._updateHeader(),t._filterAppointmentsByDate(),t._appointments.option("allowAllDayResize","day"!==n)});break;case"appointmentTemplate":this._appointments.option("itemTemplate",n);break;case"dateCellTemplate":case"resourceCellTemplate":case"dataCellTemplate":case"timeCellTemplate":this._updateOption("workSpace",i,n),this.repaint();break;case"groups":this._postponeResourceLoading().done(function(e){t._refreshWorkSpace(e),t._filterAppointmentsByDate()});break;case"resources":this._resourcesManager.setResources(this.option("resources")),this._appointmentModel.setDataAccessors(this._combineDataAccessors()),this._postponeResourceLoading().done(function(e){t._appointments.option("items",[]),t._refreshWorkSpace(e),t._filterAppointmentsByDate()});break;case"startDayHour":case"endDayHour":this._appointments.option("items",[]),this._updateOption("workSpace",i,n),this._appointments.repaint(),this._filterAppointmentsByDate(),this._postponeDataSourceLoading();break;case"onAppointmentAdding":case"onAppointmentAdded":case"onAppointmentUpdating":case"onAppointmentUpdated":case"onAppointmentDeleting":case"onAppointmentDeleted":case"onAppointmentFormOpening":this._actions[i]=this._createActionByOption(i);break;case"onAppointmentRendered":this._appointments.option("onItemRendered",this._getAppointmentRenderedAction());break;case"onAppointmentClick":this._appointments.option("onItemClick",this._createActionByOption(i));break;case"onAppointmentDblClick":this._appointments.option(i,this._createActionByOption(i));break;case"onAppointmentContextMenu":this._appointments.option("onItemContextMenu",this._createActionByOption(i));break;case"noDataText":case"allowMultipleCellSelection":case"selectedCellData":case"accessKey":case"onCellClick":case"onCellContextMenu":this._workSpace.option(i,n);break;case"crossScrollingEnabled":this._postponeResourceLoading().done(function(e){t._appointments.option("items",[]),t._refreshWorkSpace(e),t._readyToRenderAppointments&&t._appointments.option("items",t._getAppointmentsToRepaint())});break;case"cellDuration":this._appointments.option("items",[]),this._readyToRenderAppointments&&(this._updateOption("workSpace","hoursInterval",n/60),this._appointments.option("items",this._getAppointmentsToRepaint()));break;case"tabIndex":case"focusStateEnabled":this._updateOption("header",i,n),this._updateOption("workSpace",i,n),this._appointments.option(i,n),this.callBase(e);break;case"width":this._updateOption("header",i,n),this.option("crossScrollingEnabled")&&this._updateOption("workSpace","width",n),this.callBase(e),this._dimensionChanged();break;case"height":this.callBase(e),this._dimensionChanged();break;case"editing":this._initEditing();var o=this._editing;this._bringEditingModeToAppointments(o),this.hideAppointmentTooltip(),this._cleanPopup();break;case"showAllDayPanel":this._postponeResourceLoading().done(function(e){t._filterAppointmentsByDate(),t._updateOption("workSpace","allDayExpanded",n),t._updateOption("workSpace",i,n)});break;case"showCurrentTimeIndicator":case"indicatorTime":case"indicatorUpdateInterval":case"shadeUntilCurrentTime":case"groupByDate":this._updateOption("workSpace",i,n),this.repaint();break;case"appointmentTooltipTemplate":case"appointmentPopupTemplate":case"recurrenceEditMode":case"remoteFiltering":case"timeZone":case"dropDownAppointmentTemplate":case"appointmentCollectorTemplate":case"_appointmentTooltipOffset":case"_appointmentTooltipButtonsPosition":case"_appointmentTooltipOpenButtonText":case"_dropDownButtonIcon":case"_appointmentCountPerCell":case"_collectorOffset":case"_appointmentOffset":this.repaint();break;case"dateSerializationFormat":case"maxAppointmentsPerCell":break;case"startDateExpr":case"endDateExpr":case"startDateTimeZoneExpr":case"endDateTimeZoneExpr":case"textExpr":case"descriptionExpr":case"allDayExpr":case"recurrenceRuleExpr":case"recurrenceExceptionExpr":this._updateExpression(i,n),this._appointmentModel.setDataAccessors(this._combineDataAccessors()),this._initAppointmentTemplate(),this.repaint();break;case"adaptivityEnabled":this._toggleAdaptiveClass(),this.repaint();break;default:this.callBase(e)}},_updateHeader:function(){var e=this._getViewCountConfig();this._header.option("intervalCount",e.intervalCount),this._header.option("displayedDate",this._workSpace._getViewStartByOptions()),this._header.option("min",this._dateOption("min")),this._header.option("max",this._dateOption("max")),this._header.option("currentDate",this._dateOption("currentDate")),this._header.option("firstDayOfWeek",this._getCurrentViewOption("firstDayOfWeek")),this._header.option("currentView",this._currentView)},_dateOption:function(e){var t=this._getCurrentViewOption(e);return C.default.deserializeDate(t)},_getSerializationFormat:function(e){var t=this._getCurrentViewOption(e);return"number"==typeof t?"number":v.default.isString(t)?C.default.getDateSerializationFormat(t):void 0},_bringEditingModeToAppointments:function(e){var t={allowDelete:e.allowUpdating&&e.allowDeleting};this._isAgenda()||(t.allowDrag=e.allowDragging,t.allowResize=e.allowResizing,t.allowAllDayResize=e.allowResizing&&this._supportAllDayResizing()),this._appointments.option(t)},_isAgenda:function(){return"agenda"===this._getAppointmentsRenderingStrategy()},_allowDragging:function(){return this._editing.allowDragging&&!this._isAgenda()},_allowResizing:function(){return this._editing.allowResizing&&!this._isAgenda()},_allowAllDayResizing:function(){return this._editing.allowResizing&&this._supportAllDayResizing()},_supportAllDayResizing:function(){return"day"!==this._getCurrentViewType()||this._currentView.intervalCount>1},_isAllDayExpanded:function(e){return this.option("showAllDayPanel")&&this._appointmentModel.hasAllDayAppointments(e,this._getCurrentViewOption("startDayHour"),this._getCurrentViewOption("endDayHour"))},_getTimezoneOffsetByOption:function(e){return this._calculateTimezoneByValue(this.option("timeZone"),e)},_calculateTimezoneByValue:function(e,t){var n=e;if("string"==typeof e){t=t||new Date;var i=Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes());n=G.default.getTimezoneOffsetById(e,i)}return n},_filterAppointmentsByDate:function(){var e=this._workSpace.getDateRange();this._appointmentModel.filterByDate(e[0],e[1],this.option("remoteFiltering"),this.option("dateSerializationFormat"))},_loadResources:function(){var e=this._getCurrentViewOption("groups"),t=new te;return this._resourcesManager.loadResources(e).done(function(e){this._loadedResources=e,t.resolve(e)}.bind(this)),t.promise()},_dataSourceLoadedCallback:(0,a.default)(),_reloadDataSource:function(){var e=new te;return this._dataSource?(this._dataSource.load().done(function(){K.default.hide(),this._fireContentReadyAction(e)}.bind(this)).fail(function(){K.default.hide(),e.reject()}),this._dataSource.isLoading()&&K.default.show({container:this.$element(),position:{of:this.$element()}})):this._fireContentReadyAction(e),e.promise()},_fireContentReadyAction:function(e){this.callBase(),e&&e.resolve()},_dimensionChanged:function(){var e=this.getFilteredItems();if(this._toggleSmallClass(),!this._isAgenda()&&e&&this._isVisible()){this._workSpace._cleanAllowedPositions(),this._workSpace.option("allDayExpanded",this._isAllDayExpanded(e)),this._workSpace._dimensionChanged();var t=this._layoutManager.createAppointmentsMap(e);this._appointments.option("items",t)}this.hideAppointmentTooltip(),this.resizePopup(),this._updatePopupFullScreenMode()},_clean:function(){this._cleanPopup(),this.callBase()},_toggleSmallClass:function(){var e=this.$element().get(0).getBoundingClientRect().width;this.$element().toggleClass("dx-scheduler-small",e<400)},_toggleAdaptiveClass:function(){this.$element().toggleClass("dx-scheduler-adaptive",this.option("adaptivityEnabled"))},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dataSourceOptions:function(){return{paginate:!1}},_init:function(){this._initExpressions({startDate:this.option("startDateExpr"),endDate:this.option("endDateExpr"),startDateTimeZone:this.option("startDateTimeZoneExpr"),endDateTimeZone:this.option("endDateTimeZoneExpr"),allDay:this.option("allDayExpr"),text:this.option("textExpr"),description:this.option("descriptionExpr"),recurrenceRule:this.option("recurrenceRuleExpr"),recurrenceException:this.option("recurrenceExceptionExpr")}),this.callBase(),this._initDataSource(),this._loadedResources=[],this._proxiedCustomizeStoreLoadOptionsHandler=this._customizeStoreLoadOptionsHandler.bind(this),this._customizeStoreLoadOptions(),this.$element().addClass("dx-scheduler"),this._initEditing(),this._resourcesManager=new H.default(this.option("resources"));var e=this._combineDataAccessors();this._appointmentModel=new z.default(this._dataSource,e,this.getAppointmentDurationInMinutes()),this._initActions(),this._compactAppointmentsHelper=new W.CompactAppointmentsHelper(this),this._subscribes=S.default},_initTemplates:function(){this.callBase(),this._initAppointmentTemplate(),this._defaultTemplates.appointmentTooltip=new Z.default(this),this._defaultTemplates.appointmentPopup=new Z.default(this),this._defaultTemplates.dropDownAppointment=new Z.default(this)},_initAppointmentTemplate:function(){var e=this;this._defaultTemplates.item=new Q.default(function(t,n,i){var o=e.getAppointmentsInstance();o._renderAppointmentTemplate.call(o,t,n,i)},["html","text","startDate","endDate","allDay","description","recurrenceRule","recurrenceException","startDateTimeZone","endDateTimeZone"],this.option("integrationOptions.watchMethod"),{text:this._dataAccessors.getter.text,startDate:this._dataAccessors.getter.startDate,endDate:this._dataAccessors.getter.endDate,startDateTimeZone:this._dataAccessors.getter.startDateTimeZone,endDateTimeZone:this._dataAccessors.getter.endDateTimeZone,allDay:this._dataAccessors.getter.allDay,recurrenceRule:this._dataAccessors.getter.recurrenceRule})},_combineDataAccessors:function(){var e=this._resourcesManager._dataAccessors,t=(0,g.extend)(!0,{},this._dataAccessors);return(0,f.each)(e,function(e,n){t[e].resources=n}.bind(this)),t},_renderContent:function(){this._renderContentImpl()},_dataSourceChangedHandler:function(e){this._readyToRenderAppointments&&this._workSpaceRecalculation.done(function(){this._filteredItems=this.fire("prerenderFilter"),this._workSpace.option("allDayExpanded",this._isAllDayExpanded(this._filteredItems)),this._isAgenda()&&this.getRenderingStrategyInstance().calculateRows(this._filteredItems,7,this.option("currentDate"),!0),this._filteredItems.length&&this._isVisible()?(this._appointments.option("items",this._getAppointmentsToRepaint()),this._appointmentModel.cleanModelState()):this._appointments.option("items",[]),this._isAgenda()&&(this._workSpace._renderView(),this._dataSourceLoadedCallback.fireWith(this,[e]))}.bind(this))},_getAppointmentsToRepaint:function(){var e=this._layoutManager.createAppointmentsMap(this._filteredItems);return this._layoutManager.getRepaintedAppointments(e,this.getAppointmentsInstance().option("items"))},_initExpressions:function(e){var t=n(20);this._dataAccessors||(this._dataAccessors={getter:{},setter:{},expr:{}}),(0,f.each)(e,function(e,n){if(n){var i,o,a=t.compileGetter(n),r=t.compileSetter(n);if(function(e){return"startDate"===e||"endDate"===e}(e)){var s=this;i=function(){var e=a.apply(this,arguments);if((0,b.default)().forceIsoDateParsing){if(!s.option("dateSerializationFormat")){var t=C.default.getDateSerializationFormat(e);t&&s.option("dateSerializationFormat",t)}e=C.default.deserializeDate(e)}return e},o=function(e,t){((0,b.default)().forceIsoDateParsing||s.option("dateSerializationFormat"))&&(t=C.default.serializeDate(t,s.option("dateSerializationFormat"))),r.call(this,e,t)}}this._dataAccessors.getter[e]=i||a,this._dataAccessors.setter[e]=o||r,this._dataAccessors.expr[e+"Expr"]=n}else delete this._dataAccessors.getter[e],delete this._dataAccessors.setter[e],delete this._dataAccessors.expr[e+"Expr"]}.bind(this))},_updateExpression:function(e,t){var n={};n[e.replace("Expr","")]=t,this._initExpressions(n)},_initEditing:function(){var e=this.option("editing");this._editing={allowAdding:!!e,allowUpdating:!!e,allowDeleting:!!e,allowResizing:!!e,allowDragging:!!e},v.default.isObject(e)&&(this._editing=(0,g.extend)(this._editing,e)),this._editing.allowDragging=this._editing.allowDragging&&this._editing.allowUpdating,this._editing.allowResizing=this._editing.allowResizing&&this._editing.allowUpdating,this.$element().toggleClass("dx-scheduler-readonly",this._isReadOnly())},_isReadOnly:function(){var e=!0,t=this._editing;for(var n in t)t.hasOwnProperty(n)&&(e=e&&!t[n]);return e},_customizeStoreLoadOptions:function(){this._dataSource&&this._dataSource.on("customizeStoreLoadOptions",this._proxiedCustomizeStoreLoadOptionsHandler)},_dispose:function(){this.hideAppointmentPopup(),this.hideAppointmentTooltip(),this._cleanAsyncTemplatesTimer(),this._dataSource&&this._dataSource.off("customizeStoreLoadOptions",this._proxiedCustomizeStoreLoadOptionsHandler),this.callBase()},_customizeStoreLoadOptionsHandler:function(e){e.storeLoadOptions.dxScheduler={startDate:this.getStartViewDate(),endDate:this.getEndViewDate(),resources:this.option("resources")}},_initActions:function(){this._actions={onAppointmentAdding:this._createActionByOption("onAppointmentAdding"),onAppointmentAdded:this._createActionByOption("onAppointmentAdded"),onAppointmentUpdating:this._createActionByOption("onAppointmentUpdating"),onAppointmentUpdated:this._createActionByOption("onAppointmentUpdated"),onAppointmentDeleting:this._createActionByOption("onAppointmentDeleting"),onAppointmentDeleted:this._createActionByOption("onAppointmentDeleted"),onAppointmentFormOpening:this._createActionByOption("onAppointmentFormOpening")}},_getAppointmentRenderedAction:function(){return this._createActionByOption("onAppointmentRendered",{excludeValidators:["disabled","readOnly"]})},_renderFocusTarget:m.noop,_initMarkup:function(){this.callBase(),this._processCurrentView(),this._renderHeader(),this._layoutManager=new $.default(this,this._getAppointmentsRenderingStrategy()),this._appointments=this._createComponent("<div>",N.default,this._appointmentsConfig()),this._appointments.option("itemTemplate",this._getAppointmentTemplate("appointmentTemplate")),this._appointmentTooltip=this.option("adaptivityEnabled")?new D.MobileTooltipStrategy(this):new T.DesktopTooltipStrategy(this),this._isLoaded()?(this._initMarkupCore(this._loadedResources),this._dataSourceChangedHandler(this._dataSource.items())):this._loadResources().done(function(e){this._initMarkupCore(e),this._reloadDataSource()}.bind(this))},_initMarkupCore:function(e){var t=this;this._readyToRenderAppointments=l.default.hasWindow(),this._workSpace&&this._cleanWorkspace(),this._renderWorkSpace(e),this._appointments.option({fixedContainer:this._workSpace.getFixedContainer(),allDayContainer:this._workSpace.getAllDayContainer()}),this._waitAsyncTemplates(function(){t._workSpaceRecalculation&&t._workSpaceRecalculation.resolve()}),this._filterAppointmentsByDate()},_isLoaded:function(){return this._isResourcesLoaded()&&this._isDataSourceLoaded()},_isResourcesLoaded:function(){return v.default.isDefined(this._loadedResources)},_isDataSourceLoaded:function(){return this._dataSource&&this._dataSource.isLoaded()},_render:function(){this._toggleSmallClass(),this._toggleAdaptiveClass(),this.callBase()},_renderHeader:function(){var e=(0,o.default)("<div>").appendTo(this.$element());this._header=this._createComponent(e,E.default,this._headerConfig())},_headerConfig:function(){var e,t=this._getCurrentViewOptions(),n=this._getViewCountConfig();return(e=(0,g.extend)({firstDayOfWeek:this.option("firstDayOfWeek"),currentView:this._currentView,tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled"),width:this.option("width"),rtlEnabled:this.option("rtlEnabled"),useDropDownViewSwitcher:this.option("useDropDownViewSwitcher"),_dropDownButtonIcon:this.option("_dropDownButtonIcon"),customizeDateNavigatorText:this.option("customizeDateNavigatorText")},t)).observer=this,e.intervalCount=n.intervalCount,e.views=this.option("views"),e.min=new Date(this._dateOption("min")),e.max=new Date(this._dateOption("max")),e.currentDate=h.default.trimTime(new Date(this._dateOption("currentDate"))),e},_appointmentsConfig:function(){var e=this;return{observer:this,onItemRendered:this._getAppointmentRenderedAction(),onItemClick:this._createActionByOption("onAppointmentClick"),onItemContextMenu:this._createActionByOption("onAppointmentContextMenu"),onAppointmentDblClick:this._createActionByOption("onAppointmentDblClick"),tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled"),allowDrag:this._allowDragging(),allowDelete:this._editing.allowUpdating&&this._editing.allowDeleting,allowResize:this._allowResizing(),allowAllDayResize:this._allowAllDayResizing(),rtlEnabled:this.option("rtlEnabled"),onContentReady:function(){e._workSpace&&e._workSpace.option("allDayExpanded",e._isAllDayExpanded(e.getFilteredItems()))}}},getCollectorOffset:function(){return this._workSpace.needApplyCollectorOffset()&&!this.option("adaptivityEnabled")?this.option("_collectorOffset"):0},getAppointmentDurationInMinutes:function(){return this._getCurrentViewOption("cellDuration")},_processCurrentView:function(){var e=this.option("views"),t=this.option("currentView"),n=this;this._currentView=t,(0,f.each)(e,function(e,i){var o=v.default.isObject(i)?i.name:i,a=i.type;if(t===o||t===a)return n._currentView=i,!1})},_getCurrentViewType:function(){return this._currentView.type||this._currentView},_getAppointmentsRenderingStrategy:function(){return oe[this._getCurrentViewType()].renderingStrategy},_renderWorkSpace:function(e){this._readyToRenderAppointments&&this._toggleSmallClass();var t=(0,o.default)("<div>").appendTo(this.$element()),n=this._getViewCountConfig();this._workSpace=this._createComponent(t,oe[this._getCurrentViewType()].workSpace,this._workSpaceConfig(e,n)),this._workSpace.getWorkArea().append(this._appointments.$element()),this._recalculateWorkspace(),n.startDate&&this._header&&this._header.option("currentDate",this._workSpace._getHeaderDate()),this._appointments.option("_collectorOffset",this.getCollectorOffset())},_getViewCountConfig:function(){var e=this.option("currentView"),t=this._getViewByName(e);return{intervalCount:t&&t.intervalCount||1,startDate:t&&t.startDate||null}},_getViewByName:function(e){for(var t=this.option("views"),n=0;n<t.length;n++)if(t[n].name===e||t[n].type===e||t[n]===e)return t[n]},_recalculateWorkspace:function(){var e=this;this._workSpaceRecalculation=new te,this._waitAsyncTemplates(function(){d.default.triggerResizeEvent(e._workSpace.$element()),e._workSpace._refreshDateTimeIndication()})},_workSpaceConfig:function(e,t){var n,i=this,o=this._getCurrentViewOptions();return(n=(0,g.extend)({noDataText:this.option("noDataText"),firstDayOfWeek:this.option("firstDayOfWeek"),startDayHour:this.option("startDayHour"),endDayHour:this.option("endDayHour"),tabIndex:this.option("tabIndex"),accessKey:this.option("accessKey"),focusStateEnabled:this.option("focusStateEnabled"),cellDuration:this.option("cellDuration"),showAllDayPanel:this.option("showAllDayPanel"),showCurrentTimeIndicator:this.option("showCurrentTimeIndicator"),indicatorTime:this.option("indicatorTime"),indicatorUpdateInterval:this.option("indicatorUpdateInterval"),shadeUntilCurrentTime:this.option("shadeUntilCurrentTime"),allDayExpanded:this._appointments.option("items"),crossScrollingEnabled:this.option("crossScrollingEnabled"),dataCellTemplate:this.option("dataCellTemplate"),timeCellTemplate:this.option("timeCellTemplate"),resourceCellTemplate:this.option("resourceCellTemplate"),dateCellTemplate:this.option("dateCellTemplate"),allowMultipleCellSelection:this.option("allowMultipleCellSelection"),selectedCellData:this.option("selectedCellData"),onSelectionChanged:function(e){i.option("selectedCellData",e.selectedCellData)},groupByDate:this._getCurrentViewOption("groupByDate")},o)).observer=this,n.intervalCount=t.intervalCount,n.startDate=t.startDate,n.groups=e,n.onCellClick=this._createActionByOption("onCellClick"),n.onCellContextMenu=this._createActionByOption("onCellContextMenu"),n.min=new Date(this._dateOption("min")),n.max=new Date(this._dateOption("max")),n.currentDate=h.default.trimTime(new Date(this._dateOption("currentDate"))),n.hoursInterval=n.cellDuration/60,n.allDayExpanded=this._isAllDayExpanded(this.getFilteredItems()),n.dataCellTemplate=n.dataCellTemplate?this._getTemplate(n.dataCellTemplate):null,n.timeCellTemplate=n.timeCellTemplate?this._getTemplate(n.timeCellTemplate):null,n.resourceCellTemplate=n.resourceCellTemplate?this._getTemplate(n.resourceCellTemplate):null,n.dateCellTemplate=n.dateCellTemplate?this._getTemplate(n.dateCellTemplate):null,n},_getCurrentViewOptions:function(){return this._currentView},_getCurrentViewOption:function(e){var t=this._getCurrentViewOptions();return t&&void 0!==t[e]?t[e]:this.option(e)},_getAppointmentTemplate:function(e){var t=this._getCurrentViewOptions();return t&&t[e]?this._getTemplate(t[e]):this._getTemplateByOption(e)},_updateOption:function(e,t,n){var i=this._getCurrentViewOptions();i&&v.default.isDefined(i[t])||this["_"+e].option(t,n)},_refreshWorkSpace:function(e){var t=this;this._cleanWorkspace(),delete this._workSpace,this._renderWorkSpace(e),this._readyToRenderAppointments&&(this._appointments.option({fixedContainer:this._workSpace.getFixedContainer(),allDayContainer:this._workSpace.getAllDayContainer()}),this._waitAsyncTemplates(function(){t._workSpaceRecalculation.resolve()}))},_cleanWorkspace:function(){this._appointments.$element().detach(),this._workSpace._dispose(),this._workSpace.$element().remove(),this.option("selectedCellData",[])},getWorkSpaceScrollable:function(){return this._workSpace.getScrollable()},getWorkSpaceScrollableScrollTop:function(e){return this._workSpace.getGroupedScrollableScrollTop(e)},getWorkSpaceScrollableScrollLeft:function(){return this._workSpace.getScrollableScrollLeft()},getWorkSpaceScrollableContainer:function(){return this._workSpace.getScrollableContainer()},getWorkSpaceAllDayHeight:function(){return this._workSpace.getAllDayHeight()},getWorkSpaceAllDayOffset:function(){return this._workSpace.getAllDayOffset()},getWorkSpaceHeaderPanelHeight:function(){return this._workSpace.getHeaderPanelHeight()},getWorkSpaceDateTableOffset:function(){return!this.option("crossScrollingEnabled")||this.option("rtlEnabled")?this._workSpace.getWorkSpaceLeftOffset():0},getWorkSpace:function(){return this._workSpace},getAppointmentModel:function(){return this._appointmentModel},getHeader:function(){return this._header},getMaxAppointmentsPerCell:function(){return this._getCurrentViewOption("maxAppointmentsPerCell")},_createPopup:function(e,t){this._$popup=(0,o.default)("<div>").addClass("dx-scheduler-appointment-popup").appendTo(this.$element()),this._initDynamicPopupTemplate(e,t),this._popup=this._createComponent(this._$popup,Y.default,this._popupConfig(e))},_popupContent:function(e,t){var n=this._popup.$content(),i=(0,o.default)("<div>").appendTo(n);return this._createOrUpdateForm(e,t,i),n},_createAppointmentForm:function(e,t){var n=this.fire("getField","allDay",e),i=this.option("resources");U.default.prepareAppointmentFormEditors(n,{textExpr:this._dataAccessors.expr.textExpr,allDayExpr:this._dataAccessors.expr.allDayExpr,startDateExpr:this._dataAccessors.expr.startDateExpr,endDateExpr:this._dataAccessors.expr.endDateExpr,descriptionExpr:this._dataAccessors.expr.descriptionExpr,recurrenceRuleExpr:this._dataAccessors.expr.recurrenceRuleExpr,startDateTimeZoneExpr:this._dataAccessors.expr.startDateTimeZoneExpr,endDateTimeZoneExpr:this._dataAccessors.expr.endDateTimeZoneExpr},this),i&&i.length&&(this._resourcesManager.setResources(this.option("resources")),U.default.concatResources(this._resourcesManager.getEditors())),this._appointmentForm=U.default.create(this._createComponent.bind(this),t,!!this._editAppointmentData&&!this._editing.allowUpdating,e)},_createOrUpdateForm:function(e,t,n){var i=this.fire("getField","allDay",e),o=this.fire("getField","startDate",e),a=this.fire("getField","endDate",e);(0,f.each)(this._resourcesManager.getResourcesFromItem(e,!0)||{},function(t,n){e[t]=n});var r=(0,g.extend)(!0,{},e);if(t&&(o=this.fire("convertDateByTimezone",o),a=this.fire("convertDateByTimezone",a),this.fire("setField","startDate",r,o),this.fire("setField","endDate",r,a)),this._appointmentForm){var s=this._dataAccessors.expr.startDateExpr,l=this._dataAccessors.expr.endDateExpr;U.default.updateFormData(this._appointmentForm,r),this._appointmentForm.option("readOnly",!!this._editAppointmentData&&!this._editing.allowUpdating),U.default.checkEditorsType(this._appointmentForm,s,l,i)}else this._createAppointmentForm(r,n);var u=this._dataAccessors.expr.recurrenceRuleExpr,c=u?this._appointmentForm.itemOption(u):null;if(c){var d=c.editorOptions||{};d.startDate=o,this._appointmentForm.itemOption(u,"editorOptions",d)}this._actions.onAppointmentFormOpening({form:this._appointmentForm,appointmentData:e})},_initDynamicPopupTemplate:function(e,t){var n=this;this._defaultTemplates.appointmentPopup=new I.default(function(i){var a=n._popupContent(e,t);return(0,o.default)(i.container).append(a),(0,o.default)(i.container)})},_isPopupFullScreenNeeded:function(){if(l.default.hasWindow()){var e=l.default.getWindow();return(0,o.default)(e).width()<768}return!1},_updatePopupFullScreenMode:function(){if(this._popup&&this._popup.option("visible")){var e=this._isPopupFullScreenNeeded();this._popup.option({maxWidth:e?"100%":610,fullScreen:e})}},_popupConfig:function(e){var t=this,n=this._getTemplateByOption("appointmentPopupTemplate");return{height:"auto",maxHeight:"100%",onHiding:function(){return t.focus()},contentTemplate:new I.default(function(t){return n.render({model:e,container:t.container})}),onShowing:function(){return t._updatePopupFullScreenMode()},defaultOptionsRules:[{device:function(){return y.default.current().android},options:{showTitle:!1}}]}},_getPopupToolbarItems:function(){var e="ios"===y.default.current().platform;return[{shortcut:"done",location:"after",onClick:this._doneButtonClickHandler.bind(this)},{shortcut:"cancel",location:e?"before":"after"}]},_cleanPopup:function(){this._$popup&&(this._popup.$element().remove(),delete this._$popup,delete this._popup,delete this._appointmentForm)},_doneButtonClickHandler:function(e){if(e.cancel=!0,this._saveChanges(!0),this._lastEditData){var t=this.fire("getField","startDate",this._lastEditData);this._workSpace.updateScrollPosition(t),delete this._lastEditData}},_saveChanges:function(e){function t(e,t){var n=new Date(this.fire("getField",t,e)),i=this._getTimezoneOffsetByOption()*ne("hour")+this.fire("getClientTimezoneOffset",n);return new Date(n.getTime()+i)}var n=this._appointmentForm.validate();if(n&&!n.isValid)return!1;e&&this._disableDoneButton();var i=p.default.deepExtendArraySafe({},this._getFormData(),!0),o=this._editAppointmentData,a=this._updatedRecAppointment;return o&&this._convertDatesByTimezoneBack(!1,i),o&&!a?this.updateAppointment(o,i):(a&&(this.updateAppointment(o,a),delete this._updatedRecAppointment,"number"==typeof this._getTimezoneOffsetByOption()&&(this.fire("setField","startDate",i,t.call(this,i,"startDate")),this.fire("setField","endDate",i,t.call(this,i,"endDate")))),this.addAppointment(i)),this._enableDoneButton(),this._lastEditData=i,!0},_getFormData:function(){var e=this._appointmentForm.option("formData"),t=this.fire("getField","startDate",e),n=this.fire("getField","endDate",e);return this.fire("setField","startDate",e,t),this.fire("setField","endDate",e,n),e},_convertDatesByTimezoneBack:function(e,t,n){n=n||t;var i=this.fire("convertDateByTimezoneBack",this.fire("getField","startDate",t),e&&this.fire("getField","startDateTimeZone",t)),o=this.fire("convertDateByTimezoneBack",this.fire("getField","endDate",t),e&&this.fire("getField","endDateTimeZone",t));this.fire("setField","startDate",n,i),this.fire("setField","endDate",n,o)},_disableDoneButton:function(){var e=this._popup.option("toolbarItems");e[0].options=(0,g.extend)(e[0].options,{disabled:!0}),this._popup.option("toolbarItems",e)},_enableDoneButton:function(){var e=this._popup.option("toolbarItems");e[0].options=(0,g.extend)(e[0].options,{disabled:!1}),this._popup.option("toolbarItems",e)},_checkRecurringAppointment:function(e,t,n,i,o,a){delete this._updatedRecAppointment;var r=this.fire("getField","recurrenceRule",e);if(c.default.getRecurrenceRule(r).isValid&&this._editing.allowUpdating)switch(this.option("recurrenceEditMode")){case"series":i();break;case"occurrence":this._singleAppointmentChangesHandler(e,t,n,o,a);break;default:this._showRecurrenceChangeConfirm(o).done(function(r){r&&i(),!r&&this._singleAppointmentChangesHandler(e,t,n,o,a)}.bind(this)).fail(function(){this._appointments.moveAppointmentBack()}.bind(this))}else i()},_singleAppointmentChangesHandler:function(e,t,n,i,o){function a(e,t){var n=this.fire("getField","startDate",e),i=this.fire("convertDateByTimezoneBack",n,this.fire("getField","startDateTimeZone",e)),o=this.fire("getField","endDate",e),a=this.fire("convertDateByTimezoneBack",o,this.fire("getField","endDateTimeZone",e));if("number"==typeof t&&!isNaN(t)){var r=-this._subscribes.getClientTimezoneOffset(n)/ne("hour"),s=-this._subscribes.getClientTimezoneOffset(o)/ne("hour"),l=i.getTime()-r*ne("hour"),u=a.getTime()-s*ne("hour");i=new Date(l+t*ne("hour")),a=new Date(u+t*ne("hour"))}this.fire("setField","startDate",e,i),this.fire("setField","endDate",e,a)}n=new Date(n),this.fire("setField","recurrenceRule",t,""),this.fire("setField","recurrenceException",t,""),i||o||(a.call(this,t,this._getTimezoneOffsetByOption()),this.addAppointment(t));var r=this._makeDateAsRecurrenceException(n,e),s=(0,g.extend)({},e);this.fire("setField","recurrenceException",s,r),o?(this._updatedRecAppointment=s,a.call(this,t),this._showAppointmentPopup(t,!0,!0),this._editAppointmentData=e):this._updateAppointment(e,s)},_makeDateAsRecurrenceException:function(e,t){var n=this._getStartDate(t,!0),i=this.fire("getField","startDateTimeZone",t),o=this._getRecurrenceExceptionDate(e,n,i),a=this.fire("getField","recurrenceException",t);return a?a+","+o:o},_getRecurrenceExceptionDate:function(e,t,n){e=this.fire("convertDateByTimezoneBack",e,n);var i=this.fire("convertDateByTimezoneBack",t,n);e.setHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds());var o=t.getTimezoneOffset()-e.getTimezoneOffset();return e=new Date(e.getTime()-o*ne("minute")),C.default.serializeDate(e,"yyyyMMddTHHmmssZ")},_showRecurrenceChangeConfirm:function(e){var t=w.default.format(e?"dxScheduler-confirmRecurrenceDeleteMessage":"dxScheduler-confirmRecurrenceEditMessage"),n=w.default.format(e?"dxScheduler-confirmRecurrenceDeleteSeries":"dxScheduler-confirmRecurrenceEditSeries"),i=w.default.format(e?"dxScheduler-confirmRecurrenceDeleteOccurrence":"dxScheduler-confirmRecurrenceEditOccurrence");return u.default.custom({message:t,showCloseButton:!0,showTitle:!0,buttons:[{text:n,onClick:function(){return!0}},{text:i,onClick:function(){return!1}}]}).show()},_getUpdatedData:function(e){var t=e.data||e,n=this.getTargetCellData(),i=this.fire("getField","allDay",t),o=new Date(this.fire("getField","startDate",t)),a=new Date(this.fire("getField","endDate",t)),r=n.date||o,s=a.getTime()-o.getTime();if(this._workSpace.keepOriginalHours()){var l=o.getTime()-h.default.trimTime(o).getTime();r=new Date(h.default.trimTime(r).getTime()+l)}var u={},c=n.allDay;this.fire("setField","allDay",u,c),this.fire("setField","startDate",u,r);var d=new Date(r.getTime()+s);if(this.appointmentTakesAllDay(t)&&!u.allDay&&this._workSpace.supportAllDayRow()&&(d=this._workSpace.calculateEndDate(r)),i&&!this._workSpace.supportAllDayRow()&&!this._workSpace.keepOriginalHours()){var p=new Date(r);p.setHours(0),0!==(d=new Date(p.getTime()+s)).getHours()&&d.setHours(this._getCurrentViewOption("endDayHour"))}return this.fire("setField","endDate",u,d),this._resourcesManager.setResourcesToItem(u,n.groups),u},_getCoordinates:function(e,t,n,i){for(var o=[],a=0;a<t.length;a++){for(var r=this._workSpace.getCoordinatesByDateInGroup(t[a],n,i),s=0;s<r.length;s++)(0,g.extend)(r[s],{startDate:t[a],initialStartDate:e[a]});o=o.concat(r)}return o},_isAppointmentRecurrence:function(e){var t=this.fire("getField","recurrenceRule",e);return t&&c.default.getRecurrenceRule(t).isValid},_getSingleAppointmentData:function(e,t){var n,i,o=(t=t||{}).$appointment,a=t.skipDateCalculation?{}:this._getUpdatedData(t),s=(0,g.extend)({},e,a),l=this.fire("getField","allDay",e),u=this._workSpace.supportAllDayRow()&&l,c=new Date(this.fire("getField","startDate",s)),d=new Date(this.fire("getField","endDate",s)).getTime()-c.getTime();if(v.default.isDefined(o)&&this._needUpdateAppointmentData(o)){var h=this.getRenderingStrategyInstance().getAppointmentDataCalculator();if(v.default.isFunction(h))n=h(o,c).startDate;else{var p=r.default.locate(o);n=new Date(this._workSpace.getCellDataByCoordinates(p,u).startDate),o.hasClass("dx-scheduler-appointment-reduced")&&((i=o.data("dxAppointmentStartDate"))&&(n=i)),this._isAppointmentRecurrence(e)&&((i=o.data("dxAppointmentSettings")&&o.data("dxAppointmentSettings").startDate)&&(n=i)),t.skipHoursProcessing||n.setHours(c.getHours(),c.getMinutes(),c.getSeconds(),c.getMilliseconds())}}return!n&&t.startDate&&(n=t.startDate),n&&(this.fire("setField","startDate",s,n),this.fire("setField","endDate",s,new Date(n.getTime()+d))),s},_needUpdateAppointmentData:function(e){return e.hasClass("dx-scheduler-appointment-compact")||e.hasClass("dx-scheduler-appointment-recurrence")},_getNormalizedTemplateArgs:function(e){var t=this.callBase(e);return"targetedAppointmentData"in e&&t.push(e.targetedAppointmentData),"currentIndex"in e&&t.push(e.currentIndex),t},subscribe:function(e,t){this._subscribes[e]=S.default[e]=t},fire:function(e){var t=this._subscribes[e],n=Array.prototype.slice.call(arguments);if(!v.default.isFunction(t))throw s.default.Error("E1031",e);return t.apply(this,n.slice(1))},getTargetCellData:function(){return this._workSpace.getDataByDroppableCell()},_updateAppointment:function(e,t,n){var i={newData:t,oldData:(0,g.extend)({},e),cancel:!1},o=function(e){if(v.default.isFunction(n)&&n.call(this),e&&"Error"===e.name)throw e}.bind(this);this._actions.onAppointmentUpdating(i),this._processActionResult(i,function(n){if(n)o();else{this._expandAllDayPanel(t);try{this._appointmentModel.update(e,t).always(function(e){this._executeActionWhenOperationIsCompleted(this._actions.onAppointmentUpdated,t,e)}.bind(this)).fail(function(){o()})}catch(e){o(e)}}})},_processActionResult:function(e,t){var n=this;v.default.isPromise(e.cancel)?ee(X.default.fromPromise(e.cancel)).always(function(i){v.default.isDefined(i)||(i="rejected"===e.cancel.state()),t.call(n,i)}):t.call(this,e.cancel)},_expandAllDayPanel:function(e){!this._isAllDayExpanded(this.getFilteredItems())&&this.appointmentTakesAllDay(e)&&this._workSpace.option("allDayExpanded",!0)},_executeActionWhenOperationIsCompleted:function(e,t,n){var i={appointmentData:t};n&&"Error"===n.name?i.error=n:this._popup&&this._popup.option("visible")&&this._popup.hide(),e(i),this._fireContentReadyAction()},_showAppointmentPopup:function(e,t,n){this._popup||this._createPopup(e,n);var i=[],o=!0;v.default.isDefined(t)&&!t||(i=this._getPopupToolbarItems(),o=this._popup.initialOption("showCloseButton")),this._popup.option({toolbarItems:i,showCloseButton:o}),this._appointmentForm?this._createOrUpdateForm(e,n):(this._initDynamicPopupTemplate(e,n),this._popup.option(this._popupConfig(e))),this._popup.show()},getAppointmentPopup:function(){return this._popup},getAppointmentDetailsForm:function(){return this._appointmentForm},getUpdatedAppointment:function(){return this._appointmentModel.getUpdatedAppointment()},getUpdatedAppointmentKeys:function(){return this._appointmentModel.getUpdatedAppointmentKeys()},getAppointmentsInstance:function(){return this._appointments},getResourceManager:function(){return this._resourcesManager},getLayoutManager:function(){return this._layoutManager},getRenderingStrategyInstance:function(){return this._layoutManager.getRenderingStrategyInstance()},getFilteredItems:function(){return this._filteredItems},getActions:function(){return this._actions},appointmentTakesAllDay:function(e){return this._appointmentModel.appointmentTakesAllDay(e,this._getCurrentViewOption("startDayHour"),this._getCurrentViewOption("endDayHour"))},_getStartDate:function(e,t){var n=this.fire("getField","startDate",e),i=this.fire("getField","startDateTimeZone",e);return n=h.default.makeDate(n),n=this.fire("convertDateByTimezone",n,i),!t&&this.fire("updateAppointmentStartDate",{startDate:n,appointment:e,callback:function(e){n=e}}),n},_getEndDate:function(e){var t=this.fire("getField","endDate",e);if(t){var n=this.fire("getField","endDateTimeZone",e);t=h.default.makeDate(t),t=this.fire("convertDateByTimezone",t,n),this.fire("updateAppointmentEndDate",{endDate:t,callback:function(e){t=e}})}return t},_getRecurrenceException:function(e){var t=this.fire("getField","recurrenceException",e);if(t){for(var n=this.fire("getField","startDate",e),i=t.split(","),o=this.fire("getField","startDateTimeZone",e),a=this.fire("convertDateByTimezone",n,o),r=0;r<i.length;r++)i[r]=this._convertRecurrenceException(i[r],a,o);t=i.join()}return t},_convertRecurrenceException:function(e,t,n){return e=e.replace(/\s/g,""),e=C.default.deserializeDate(e),(e=this.fire("convertDateByTimezone",e,n)).setHours(t.getHours()),C.default.serializeDate(e,ie)},recurrenceEditorVisibilityChanged:function(e){this._appointmentForm&&this._appointmentForm.$element().find(".dx-scheduler-recurrence-rule-item").toggleClass("dx-scheduler-recurrence-rule-item-opened",e)},resizePopup:function(){this.getAppointmentPopup()&&d.default.triggerResizeEvent(this.getAppointmentPopup().$element())},dayHasAppointment:function(e,t,n){var i=new Date(this.fire("getField","startDate",t)),o=new Date(this.fire("getField","endDate",t)),a=this.fire("getField","startDateTimeZone",t),r=this.fire("getField","endDateTimeZone",t);if(i=this.fire("convertDateByTimezone",i,a),o=this.fire("convertDateByTimezone",o,r),e.getTime()===o.getTime())return i.getTime()===o.getTime();n&&(e=h.default.trimTime(e),i=h.default.trimTime(i),o=h.default.trimTime(o));var s=e.getTime(),l=i.getTime(),u=o.getTime();return(0,_.inArray)(s,[l,u])>-1||l<s&&u>s},setTargetedAppointmentResources:function(e,t,n){var i=this._getCurrentViewOption("groups");if(i&&i.length){var a,r,s=this._resourcesManager._dataAccessors.setter,l=this._workSpace;this._isAgenda()?(a=function(){var e=this.getLayoutManager()._positionMap[n];return l._getCellGroups(e[0].groupIndex)},r=function(t,n){s[n.name](e,n.id)}):(a=function(){var e=(0,o.default)(t).data("dxAppointmentSettings")||{};return l.getCellDataByCoordinates({left:e.left,top:e.top}).groups},r=function(t,n){s[t](e,n)}),(0,f.each)(a.call(this),r)}},getStartViewDate:function(){return this._workSpace.getStartViewDate()},getEndViewDate:function(){return this._workSpace.getEndViewDate()},showAppointmentPopup:function(e,t,n){var i=n||this._getSingleAppointmentData(e,{skipDateCalculation:!0}),o=this.fire("getField","startDate",n||e);this._checkRecurringAppointment(e,i,o,function(){t||v.default.isEmptyObject(e)?(delete this._editAppointmentData,this._editing.allowAdding&&this._showAppointmentPopup(e,!0,!1)):(this._editAppointmentData=e,this._showAppointmentPopup(e,this._editing.allowUpdating,!0))}.bind(this),!1,!0)},hideAppointmentPopup:function(e){this._popup&&this._popup.option("visible")&&(e&&this._saveChanges(),this._popup.hide())},showAppointmentTooltip:function(e,t,n){e&&this.showAppointmentTooltipCore(t,[{data:e,currentData:n}],!0)},showAppointmentTooltipCore:function(e,t,n){this._appointmentTooltip.show(e,t,n)},hideAppointmentTooltip:function(){this._appointmentTooltip.hide()},scrollToTime:function(e,t,n){this._workSpace.scrollToTime(e,t,n)},addAppointment:function(e){this.fire("getField","text",e)||this.fire("setField","text",e,""),this._convertDatesByTimezoneBack(!0,e);var t={appointmentData:e,cancel:!1};this._actions.onAppointmentAdding(t),this._processActionResult(t,function(t){t||(this._expandAllDayPanel(e),this._appointmentModel.add(e,{value:this._getTimezoneOffsetByOption(),clientOffset:this.fire("getClientTimezoneOffset")}).always(function(t){this._executeActionWhenOperationIsCompleted(this._actions.onAppointmentAdded,e,t)}.bind(this)))})},updateAppointment:function(e,t){this._updateAppointment(e,t)},deleteAppointment:function(e){var t={appointmentData:e,cancel:!1};this._actions.onAppointmentDeleting(t),this._processActionResult(t,function(t){t||this._appointmentModel.remove(e).always(function(t){this._executeActionWhenOperationIsCompleted(this._actions.onAppointmentDeleted,e,t)}.bind(this))})},focus:function(){this._editAppointmentData?this._appointments.focus():this._workSpace.focus()}}).include(j.default,q.default);(0,x.default)("dxScheduler",ae),e.exports=ae},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=n(13),r=i(a),s=i(n(142)),l=i(n(1)),u=i(n(22)),c=n(3),d=i(n(26)),h=n(4),p=n(0),f=i(n(33)),g=i(n(374)),_=n(6),m=u.default.dateToMilliseconds,v={isCurrentViewAgenda:function(){return"agenda"===this.option("currentView")},currentViewUpdated:function(e){this.option("currentView",e)},currentDateUpdated:function(e){this.option("currentDate",e)},setCellDataCacheAlias:function(e,t){this._workSpace.setCellDataCacheAlias(e,t)},needCoordinates:function(e){var t=this,n=e.appointmentData,i=e.startDate,o=this._getEndDate(n),a=this.fire("getField","recurrenceRule",n),r=this._getRecurrenceException(n),l=this._workSpace.getDateRange(),c=this.appointmentTakesAllDay(n),d=this.appointmentTakesAllDay(n)?u.default.trimTime(new Date(l[0])):l[0],h=e.originalStartDate||i,p=this.getLayoutManager().getRenderingStrategyInstance(),f=this.option("firstDayOfWeek"),g={rule:a,exception:r,start:h,end:o,min:d,max:l[1],firstDayOfWeek:f},_=s.default.getDatesByRecurrence(g),m=void 0;if(_.length?(m=_,_=_.map(function(e){return u.default.roundDateByStartDayHour(e,t._getCurrentViewOption("startDayHour"))})):(_.push(i),m=_),p.needSeparateAppointment(c)){for(var v=_.length,y=[],b=[],x=function(e){var i=p.endDate(n,{startDate:_[e]},!!a);y=u.default.getDatesOfInterval(_[e],i,{milliseconds:t.getWorkSpace().getIntervalDuration(c)});var o=new Date(l[1]);b=b.concat(y.filter(function(e){return new Date(e)<o}))},w=0;w<v;w++)x(w);_=b}var C=this._resourcesManager.getResourcesFromItem(n);c=this.appointmentTakesAllDay(n)&&this._workSpace.supportAllDayRow(),e.callback(this._getCoordinates(m,_,C,c))},isGroupedByDate:function(){return this.getWorkSpace().isGroupedByDate()},showAppointmentTooltip:function(e){e.skipDateCalculation=!0,e.$appointment=(0,o.default)(e.target);var t=e.data,n=this._getSingleAppointmentData(t,e);this.showAppointmentTooltip(t,e.target,n)},hideAppointmentTooltip:function(){this.hideAppointmentTooltip()},showAddAppointmentPopup:function(e){var t={};(0,c.each)(["startDate","endDate","allDay"],function(n,i){void 0!==e[i]&&(this.fire("setField",i,t,e[i]),delete e[i])}.bind(this)),this.showAppointmentPopup((0,p.extend)(t,e),!0)},showEditAppointmentPopup:function(e){var t=e.data;e.$appointment=(0,o.default)(e.target),e.skipHoursProcessing=!0;var n=this._getSingleAppointmentData(t,e),i=this.fire("getField","startDate",n);this.showAppointmentPopup(t,!1,n,i)},updateAppointmentAfterResize:function(e){var t=e.target,n=this._getSingleAppointmentData(t,e),i=this.fire("getField","startDate",n),o=(0,p.extend)(!0,{},e.data);this._convertDatesByTimezoneBack(!0,o),this._checkRecurringAppointment(t,n,i,function(){this._updateAppointment(t,o,function(){this._appointments.moveAppointmentBack()})}.bind(this))},updateAppointmentAfterDrag:function(e){var t=e.data,n=this._getUpdatedData(e),i=this._workSpace.getDroppableCellIndex(),o=this._workSpace.getCellIndexByCoordinates(e.coordinates),a=this.fire("getField","allDay",n),r=this.fire("getField","allDay",t),s=(0,p.extend)({},t,n),l=this._workSpace.supportAllDayRow()&&a,u=this._workSpace.getCellDataByCoordinates(e.coordinates,l),c=this._workSpace.supportAllDayRow()&&(r&&!a||!r&&a);i!==o||c?this._checkRecurringAppointment(t,s,u.startDate,function(){this._convertDatesByTimezoneBack(!0,n,s),this._updateAppointment(t,s,function(){this._appointments.moveAppointmentBack()})}.bind(this)):this._appointments.moveAppointmentBack()},deleteAppointment:function(e){e.$appointment=(0,o.default)(e.target);var t=e.data,n=this._getSingleAppointmentData(t,e),i=this.fire("getField","startDate",n);this._checkRecurringAppointment(t,n,i,function(){this.deleteAppointment(t)}.bind(this),!0)},getResourceForPainting:function(){return this._resourcesManager.getResourceForPainting(this._getCurrentViewOption("groups"))},getAppointmentColor:function(e){var t=this._resourcesManager,n=t.getResourceForPainting(this._getCurrentViewOption("groups")),i=(new _.Deferred).resolve().promise();if(n){for(var o=t.getField(n),a=e.groupIndex,s=this._workSpace._getCellGroups(a),l=r.default.wrapToArray(t.getDataAccessors(o,"getter")(e.itemData)),u=l.length?l[0]:void 0,c=0;c<s.length;c++)if(s[c].name===o){u=s[c].id;break}i=t.getResourceColor(o,u)}e.callback(i)},getHeaderHeight:function(){return this._header._$element&&parseInt(this._header._$element.outerHeight(),10)},getResourcesFromItem:function(e){e.callback(this._resourcesManager.getResourcesFromItem(e.itemData))},getBoundOffset:function(e){e.callback({top:-this.getWorkSpaceAllDayHeight()})},appointmentTakesAllDay:function(e){e.callback(this.appointmentTakesAllDay(e.appointment))},appointmentTakesSeveralDays:function(e){return this._appointmentModel.appointmentTakesSeveralDays(e)},appointmentFocused:function(){this._workSpace.restoreScrollTop()},getResizableAppointmentArea:function(e){var t=void 0,n=e.allDay,i=this._getCurrentViewOption("groups");if(i&&i.length){if(n||this.getLayoutManager().getRenderingStrategyInstance()._needHorizontalGroupBounds()){var o=this._workSpace.getGroupBounds(e.coordinates);t={left:o.left,right:o.right,top:0,bottom:0}}if(this.getLayoutManager().getRenderingStrategyInstance()._needVerticalGroupBounds(n)&&this._workSpace._isVerticalGroupedWorkSpace()){var a=this._workSpace.getGroupBounds(e.coordinates);t={left:0,right:0,top:a.top,bottom:a.bottom}}}e.callback(t)},needRecalculateResizableArea:function(){return this.getWorkSpace().needRecalculateResizableArea()},getDraggableAppointmentArea:function(e){e.callback(this.getWorkSpaceScrollableContainer())},getAppointmentGeometry:function(e){return this.getLayoutManager().getRenderingStrategyInstance().getAppointmentGeometry(e)},isAllDay:function(e){return this.getLayoutManager().getRenderingStrategyInstance().isAllDay(e)},getDeltaTime:function(e,t,n){return this.getLayoutManager().getRenderingStrategyInstance().getDeltaTime(e,t,n)},getDropDownAppointmentWidth:function(e){return this.getLayoutManager().getRenderingStrategyInstance().getDropDownAppointmentWidth(this._getViewCountConfig().intervalCount,e)},getDropDownAppointmentHeight:function(){return this.getLayoutManager().getRenderingStrategyInstance().getDropDownAppointmentHeight()},getStartDate:function(e,t){return this._getStartDate(e,t)},getCellWidth:function(){return this._cellWidth},getCellHeight:function(){return this._cellHeight},getResizableStep:function(){var e=this._cellWidth,t=this.getWorkSpace();return t.isGroupedByDate()?t._getGroupCount()*e:e},getEndDate:function(e){return this._getEndDate(e)},getRenderingStrategy:function(){return this._getAppointmentsRenderingStrategy()},needCorrectAppointmentDates:function(){return this.getRenderingStrategyInstance().needCorrectAppointmentDates()},getRenderingStrategyDirection:function(){return this.getRenderingStrategyInstance().getDirection()},getWorkSpaceDateTableOffset:function(){return this.getWorkSpaceDateTableOffset()},correctAppointmentCoordinates:function(e){var t=e.allDay,n=e.isFixedContainer?-1:1,i=-this.getWorkSpaceScrollableScrollTop(t)+(t?0:this.getWorkSpaceAllDayOffset())+this.getWorkSpaceHeaderPanelHeight(),o=-this.getWorkSpaceScrollableScrollLeft()-this.getWorkSpaceDateTableOffset();e.callback({top:e.coordinates.top+n*i,left:e.coordinates.left+n*o})},allDayPanelToggled:function(){this._appointments.updateDraggablesBoundOffsets()},formatDates:function(e){var t=e.startDate,n=e.endDate,i=e.formatType,o={DATETIME:function(){var e="mediumdatemediumtime";return f.default.format(t,e)+" - "+(t.getDate()===n.getDate()?f.default.format(n,"shorttime"):f.default.format(n,e))},TIME:function(){return f.default.format(t,"shorttime")+" - "+f.default.format(n,"shorttime")},DATE:function(){var e="monthAndDay";return f.default.format(t,e)+(n.getTime()-t.getTime()>m("day")||n.getDate()!==t.getDate()?" - "+f.default.format(n,e):"")}};e.callback(o[i]())},getFullWeekAppointmentWidth:function(e){var t=e.groupIndex,n=this._workSpace.getGroupWidth(t);e.callback(n)},getMaxAppointmentWidth:function(e){var t=this._workSpace.getCellCountToLastViewDate(e.date);e.callback(t*this._workSpace.getCellWidth())},updateAppointmentStartDate:function(e){var t=e.appointment,n=this._workSpace.getStartViewDate(),i=new Date(e.startDate),o=this._getCurrentViewOption("startDayHour"),a=void 0;this.appointmentTakesAllDay(t)?a=u.default.normalizeDate(i,n):(i<n&&(i=n),a=u.default.normalizeDate(e.startDate,new Date(i))),a=u.default.roundDateByStartDayHour(a,o),e.callback(a)},updateAppointmentEndDate:function(e){var t=new Date(e.endDate),n=this._getCurrentViewOption("endDayHour"),i=t;t.getHours()>=n&&i.setHours(n,0,0,0),e.callback(i)},renderCompactAppointments:function(e){this._compactAppointmentsHelper.render(e)},clearCompactAppointments:function(){this._compactAppointmentsHelper.clear()},supportCompactDropDownAppointments:function(){return this._workSpace._supportCompactDropDownAppointments()},getGroupCount:function(){return this._workSpace._getGroupCount()},mapAppointmentFields:function(e){var t={appointmentData:e.itemData,appointmentElement:e.itemElement};return e.itemData&&(t.targetedAppointmentData=this.fire("getTargetedAppointmentData",e.itemData,e.itemElement)),t},getOffsetByAllDayPanel:function(e){return this._workSpace._getOffsetByAllDayPanel(e)},getGroupTop:function(e){return this._workSpace._getGroupTop(e)},updateResizableArea:function(){var e=this.$element().find(".dx-scheduler-appointment.dx-resizable"),t=(0,h.grep)(e,function(e){var t=(0,o.default)(e).dxResizable("instance"),n=t.option("area");return(0,a.inArray)(t.option("handles"),["right left","left right"])>-1&&l.default.isPlainObject(n)});(0,c.each)(t,function(e,t){var n=(0,o.default)(t),i=d.default.locate(n),a=this._appointments._getItemData(n),r=this._appointments._calculateResizableArea({left:i.left},a);n.dxResizable("instance").option("area",r)}.bind(this))},recurrenceEditorVisibilityChanged:function(e){this.recurrenceEditorVisibilityChanged(e)},resizePopup:function(){this.resizePopup()},getField:function(e,t){if(l.default.isDefined(this._dataAccessors.getter[e]))return this._dataAccessors.getter[e](t)},setField:function(e,t,n){if(l.default.isDefined(this._dataAccessors.setter[e])){var i=this.option(e+"Expr").split("."),o=i[0];if(void 0===t[o]&&i.length>1){var a=function(e){for(var t={},n=t,i=e.length-1,o=1;o<i;o++)n=n[e[o]]={};return t}(i);t[o]=a}return this._dataAccessors.setter[e](t,n),t}},prerenderFilter:function(){var e=this.getWorkSpace().getDateRange(),t=this._resourcesManager.getResourcesData(),n=void 0;return!this.option("showAllDayPanel")&&this._workSpace.supportAllDayRow()&&(n=!1),this._appointmentModel.filterLoadedAppointments({startDayHour:this._getCurrentViewOption("startDayHour"),endDayHour:this._getCurrentViewOption("endDayHour"),min:e[0],max:e[1],resources:t,allDay:n,firstDayOfWeek:this.option("firstDayOfWeek")},this._subscribes.convertDateByTimezone.bind(this))},dayHasAppointment:function(e,t,n){return this.dayHasAppointment(e,t,n)},createResourcesTree:function(){return this._resourcesManager.createResourcesTree(this._loadedResources)},getResourceTreeLeaves:function(e,t){return this._resourcesManager.getResourceTreeLeaves(e,t)},createReducedResourcesTree:function(){var e=this._resourcesManager.createResourcesTree(this._loadedResources);return this._resourcesManager.reduceResourcesTree(e,this.getFilteredItems())},groupAppointmentsByResources:function(e){var t={0:e},n=this._getCurrentViewOption("groups");n&&n.length&&this._resourcesManager.getResourcesData().length&&(t=this._resourcesManager.groupAppointmentsByResources(e,this._loadedResources));var i=0;(0,c.each)(this._loadedResources,function(e,t){e?i*=t.items.length:i=t.items.length});for(var o=0;o<i;o++){var a=o.toString();t[a]||(t[a]=[])}return t},getAgendaRows:function(e){var t=this._layoutManager.getRenderingStrategyInstance(),n=t.calculateRows.bind(t),i=new _.Deferred;return this._dataSourceLoadedCallback.add(function t(o){var a=n(o,e.agendaDuration,e.currentDate);this._dataSourceLoadedCallback.remove(t),i.resolve(a)}),i.promise()},getAgendaVerticalStepHeight:function(){return this.getWorkSpace().getAgendaVerticalStepHeight()},getAgendaDuration:function(){return this._getCurrentViewOption("agendaDuration")},getStartViewDate:function(){return this.getStartViewDate()},getEndViewDate:function(){return this.getEndViewDate()},getMaxAppointmentsPerCell:function(){return this.getMaxAppointmentsPerCell()},forceMaxAppointmentPerCell:function(){return this.forceMaxAppointmentPerCell()},agendaIsReady:function(e,t,n){var i=this.getAppointmentsInstance()._itemElements(),o=0;i.css("marginBottom",t);for(var a=function(e,t){var a=t+o-1;i.eq(a).css("marginBottom",n),o+=t},r=0;r<e.length;r++)(0,c.each)(e[r],a)},getTimezone:function(){return this._getTimezoneOffsetByOption()},getClientTimezoneOffset:function(e){return e=e||new Date,g.default.getClientTimezoneOffset(e)},convertDateByTimezone:function(e,t){e=new Date(e);var n=this._subscribes.getComplexOffsets(this,e,t);return e=this._subscribes.translateDateToAppointmentTimeZone(e,n),this._subscribes.translateDateToCommonTimeZone(e,n)},convertDateByTimezoneBack:function(e,t){e=new Date(e);var n=this._subscribes.getComplexOffsets(this,e,t);return e=this._subscribes.translateDateToAppointmentTimeZone(e,n,!0),this._subscribes.translateDateToCommonTimeZone(e,n,!0)},translateDateToAppointmentTimeZone:function(e,t,n){var i=n?-1:1,o=e.getTime()-i*t.client*m("hour");return new Date(o+i*t.appointment*m("hour"))},translateDateToCommonTimeZone:function(e,t,n){var i=n?-1:1;if("number"==typeof t.common){var o=t.common-t.appointment,a=(o<0?-1:1)*Math.floor(Math.abs(o)),r=o%1;e.setHours(e.getHours()+i*a),e.setMinutes(e.getMinutes()+i*r*60)}return e},getComplexOffsets:function(e,t,n){var i=-this.getClientTimezoneOffset(t)/m("hour"),o=e._getTimezoneOffsetByOption(t),a=e._calculateTimezoneByValue(n,t);return"number"!=typeof a&&(a=i),{client:i,common:o,appointment:a}},getDaylightOffset:function(e,t){return e.getTimezoneOffset()-t.getTimezoneOffset()},getTimezonesDisplayName:function(){return g.default.getTimezonesDisplayName()},getTimezoneDisplayNameById:function(e){return g.default.getTimezoneDisplayNameById(e)},getSimilarTimezones:function(e){return g.default.getSimilarTimezones(e)},getTimezonesIdsByDisplayName:function(e){return g.default.getTimezonesIdsByDisplayName(e)},getTargetedAppointmentData:function(e,t){var n=(0,o.default)(t),i=n.data(this._appointments._itemIndexKey()),a=this._getSingleAppointmentData(e,{skipDateCalculation:!0,$appointment:n,skipHoursProcessing:!0}),r={};return(0,p.extend)(!0,r,e,a),this._convertDatesByTimezoneBack(!1,r),t&&this.setTargetedAppointmentResources(r,t,i),r},getAppointmentDurationInMs:function(e){var t=e.startDate,n=e.endDate,i=e.allDay,o=n.getTime()-t.getTime(),a=m("day"),r=this._workSpace.getVisibleDayDuration(),s=0;if(i){s=Math.ceil(o/a)*r}else{var l=!u.default.sameDate(t,new Date(n.getTime()-1)),c=Math.floor(o/a),d=void 0;if(l){var h=a-r;d=o-(c?c*a:h);var p=this.option("startDayHour")*m("hour"),f=n-u.default.trimTime(n);f<p&&(c&&(d-=h),d+=p-f)}else d=o%a;d>r&&(d=r),s=c*r+d}e.callback(s)},fixWrongEndDate:function(e,t,n){return this._appointmentModel.fixWrongEndDate(e,t,n)},getEndDayHour:function(){return this.option("endDayHour")},getStartDayHour:function(){return this.option("startDayHour")},isAdaptive:function(){return this.option("adaptivityEnabled")}};e.exports=v},function(e,t,n){e.exports={displayNames:["(UTC) Monrovia, Reykjavik","(UTC+03:00) Nairobi","(UTC+02:00) Harare, Pretoria","(UTC+01:00) West Central Africa","(UTC+02:00) Athens, Bucharest","(UTC+03:00) Kuwait, Riyadh","(UTC+07:00) Bangkok, Hanoi, Jakarta","(UTC+04:00) Abu Dhabi, Muscat","(UTC+12:00) Auckland, Wellington","(UTC-03:00) City of Buenos Aires","(UTC-05:00) Bogota, Lima, Quito, Rio Branco","(UTC-08:00) Pacific Time (US & Canada)","(UTC-05:00) Indiana (East)","(UTC-06:00) Central Time (US & Canada)","(UTC-05:00) Eastern Time (US & Canada)","(UTC-07:00) Mountain Time (US & Canada)","(UTC-04:00) Georgetown, La Paz, Manaus, San Juan","(UTC+05:00) Ashgabat, Tashkent","(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi","(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi","(UTC+06:00) Dhaka","(UTC+06:00) Astana","(UTC+05:45) Kathmandu","(UTC+02:00) Jerusalem","(UTC+08:00) Kuala Lumpur, Singapore","(UTC+08:00) Ulaanbaatar","(UTC) Dublin, Edinburgh, Lisbon, London","(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna","(UTC+10:00) Canberra, Melbourne, Sydney","(UTC+09:30) Darwin","(UTC+10:00) Brisbane","(UTC+09:30) Adelaide","(UTC+10:00) Hobart","(UTC+08:00) Perth","(UTC-02:00) Coordinated Universal Time-02","(UTC-03:00) Brasilia","(UTC-04:00) Atlantic Time (Canada)","(UTC-06:00) Saskatchewan","(UTC-03:30) Newfoundland","(UTC-03:00) Santiago","(UTC+02:00) Cairo","UTC","(UTC+03:30) Tehran","(UTC+09:00) Osaka, Sapporo, Tokyo","(UTC+12:00) Coordinated Universal Time+12","(UTC+02:00) Tripoli","(UTC-07:00) Chihuahua, La Paz, Mazatlan","(UTC-06:00) Guadalajara, Mexico City, Monterrey","(UTC+11:00) Solomon Is., New Caledonia","(UTC-11:00) Coordinated Universal Time-11","(UTC+10:00) Guam, Port Moresby","(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb","(UTC+08:00) Taipei","(UTC+09:00) Seoul","(UTC+02:00) Istanbul","(UTC-09:00) Alaska","(UTC-07:00) Arizona","(UTC-10:00) Hawaii","(UTC+03:00) Moscow, St. Petersburg, Volgograd","(UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius","(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague","(UTC) Casablanca","(UTC+01:00) Brussels, Copenhagen, Madrid, Paris","(UTC+01:00) Windhoek","(UTC-03:00) Cayenne, Fortaleza","(UTC-04:00) Asuncion","(UTC-03:00) Salvador","(UTC-06:00) Central America","(UTC-04:00) Cuiaba","(UTC-04:30) Caracas","(UTC-03:00) Greenland","(UTC-03:00) Montevideo","(UTC-08:00) Baja California","(UTC-01:00) Azores","(UTC+02:00) Amman","(UTC+10:00) Magadan","(UTC+03:00) Baghdad","(UTC+04:00) Baku","(UTC+02:00) Beirut","(UTC+09:00) Yakutsk","(UTC+05:30) Sri Jayawardenepura","(UTC+02:00) Damascus","(UTC+08:00) Irkutsk","(UTC+04:30) Kabul","(UTC+05:00) Islamabad, Karachi","(UTC+07:00) Krasnoyarsk","(UTC+06:00) Novosibirsk","(UTC+06:30) Yangon (Rangoon)","(UTC+10:00) Vladivostok","(UTC+04:00) Tbilisi","(UTC+05:00) Ekaterinburg","(UTC+04:00) Yerevan","(UTC-01:00) Cabo Verde Is.","(UTC-12:00) International Date Line West","(UTC+13:00) Nuku'alofa","(UTC+14:00) Kiritimati Island","(UTC+02:00) Kaliningrad","(UTC+04:00) Port Louis","(UTC+13:00) Samoa","(UTC+12:00) Fiji","(UTC+8:45) Eucla","(UTC+10:30) Lord Howe Island"],timezones:[{id:"Africa/Bamako",title:"Bamako",winIndex:0,link:185},{id:"Africa/Banjul",title:"Banjul",winIndex:0,link:185},{id:"Africa/Conakry",title:"Conakry",winIndex:0,link:185},{id:"Africa/Dakar",title:"Dakar",winIndex:0,link:185},{id:"Africa/Freetown",title:"Freetown",winIndex:0,link:185},{id:"Africa/Lome",title:"Lome",winIndex:0,link:185},{id:"Africa/Nouakchott",title:"Nouakchott",winIndex:0,link:185},{id:"Africa/Ouagadougou",title:"Ouagadougou",winIndex:0,link:185},{id:"Africa/Sao_Tome",title:"Sao Tome",winIndex:0,link:185},{id:"Atlantic/St_Helena",title:"St Helena",winIndex:0,link:185},{id:"Africa/Addis_Ababa",title:"Addis Ababa",winIndex:1,link:198},{id:"Africa/Asmara",title:"Asmara",winIndex:1,link:198},{id:"Africa/Dar_es_Salaam",title:"Dar es Salaam",winIndex:1,link:198},{id:"Africa/Djibouti",title:"Djibouti",winIndex:1,link:198},{id:"Africa/Kampala",title:"Kampala",winIndex:1,link:198},{id:"Africa/Mogadishu",title:"Mogadishu",winIndex:1,link:198},{id:"Indian/Antananarivo",title:"Antananarivo",winIndex:1,link:198},{id:"Indian/Comoro",title:"Comoro",winIndex:1,link:198},{id:"Indian/Mayotte",title:"Mayotte",winIndex:1,link:198},{id:"Africa/Blantyre",title:"Blantyre",winIndex:2,link:196},{id:"Africa/Bujumbura",title:"Bujumbura",winIndex:2,link:196},{id:"Africa/Gaborone",title:"Gaborone",winIndex:2,link:196},{id:"Africa/Harare",title:"Harare",winIndex:2,link:196},{id:"Africa/Kigali",title:"Kigali",winIndex:2,link:196},{id:"Africa/Lubumbashi",title:"Lubumbashi",winIndex:2,link:196},{id:"Africa/Lusaka",title:"Lusaka",winIndex:2,link:196},{id:"Africa/Bangui",title:"Bangui",winIndex:3,link:195},{id:"Africa/Brazzaville",title:"Brazzaville",winIndex:3,link:195},{id:"Africa/Douala",title:"Douala",winIndex:3,link:195},{id:"Africa/Kinshasa",title:"Kinshasa",winIndex:3,link:195},{id:"Africa/Libreville",title:"Libreville",winIndex:3,link:195},{id:"Africa/Luanda",title:"Luanda",winIndex:3,link:195},{id:"Africa/Malabo",title:"Malabo",winIndex:3,link:195},{id:"Africa/Niamey",title:"Niamey",winIndex:3,link:195},{id:"Africa/Porto-Novo",title:"Porto-Novo",winIndex:3,link:195},{id:"Africa/Maseru",title:"Maseru",winIndex:2,link:193},{id:"Africa/Mbabane",title:"Mbabane",winIndex:2,link:193},{id:"Africa/Juba",title:"Juba",winIndex:1,link:194},{id:"Europe/Nicosia",title:"Nicosia",winIndex:4,link:381},{id:"Asia/Bahrain",title:"Bahrain",winIndex:5,link:388},{id:"Asia/Aden",title:"Aden",winIndex:5,link:391},{id:"Asia/Kuwait",title:"Kuwait",winIndex:5,link:391},{id:"Asia/Phnom_Penh",title:"Phnom Penh",winIndex:6,link:349},{id:"Asia/Vientiane",title:"Vientiane",winIndex:6,link:349},{id:"Asia/Muscat",title:"Muscat",winIndex:7,link:359},{id:"Antarctica/McMurdo",title:"McMurdo",winIndex:8,link:511},{id:"Africa/Asmera",title:"Asmera",winIndex:1,link:198},{id:"Africa/Timbuktu",title:"Timbuktu",winIndex:0,link:185},{id:"America/Buenos_Aires",title:"Buenos Aires",winIndex:9,link:206},{id:"America/Catamarca",title:"Catamarca",winIndex:9,link:207},{id:"America/Coral_Harbour",title:"Coral Harbour",winIndex:10,link:219},{id:"America/Cordoba",title:"Cordoba",winIndex:9,link:208},{id:"America/Ensenada",title:"Ensenada",winIndex:11,link:325},{id:"America/Indianapolis",title:"Indianapolis",winIndex:12},{id:"America/Jujuy",title:"Jujuy",winIndex:9,link:209},{id:"America/Knox_IN",title:"Knox IN",winIndex:13,link:261},{id:"America/Louisville",title:"Louisville",winIndex:14,link:272},{id:"America/Mendoza",title:"Mendoza",winIndex:9,link:211},{id:"America/Porto_Acre",title:"Porto Acre",winIndex:10,link:312},{id:"America/Shiprock",title:"Shiprock",winIndex:15,link:244},{id:"America/Virgin",title:"Virgin",winIndex:16,link:303},{id:"Antarctica/South_Pole",title:"South Pole",winIndex:8,link:511},{id:"Asia/Ashkhabad",title:"Ashkhabad",winIndex:17,link:346},{id:"Asia/Calcutta",title:"Calcutta",winIndex:18,link:373},{id:"Asia/Chongqing",title:"Chongqing",winIndex:19,link:395},{id:"Asia/Chungking",title:"Chungking",winIndex:19,link:395},{id:"Asia/Dacca",title:"Dacca",winIndex:20,link:357},{id:"Asia/Harbin",title:"Harbin",winIndex:19,link:395},{id:"Asia/Kashgar",title:"Kashgar",winIndex:21,link:405},{id:"Asia/Katmandu",title:"Katmandu",winIndex:22,link:371},{id:"Asia/Macao",title:"Macao",winIndex:19,link:377},{id:"Asia/Saigon",title:"Saigon",winIndex:6,link:361},{id:"Asia/Tel_Aviv",title:"Tel Aviv",winIndex:23,link:367},{id:"Asia/Thimbu",title:"Thimbu",winIndex:20,link:402},{id:"Asia/Ujung_Pandang",title:"Ujung Pandang",winIndex:24,link:379},{id:"Asia/Ulan_Bator",title:"Ulan Bator",winIndex:25,link:404},{id:"Atlantic/Faeroe",title:"Faeroe",winIndex:26,link:415},{id:"Atlantic/Jan_Mayen",title:"Jan Mayen",winIndex:27,link:483},{id:"Australia/ACT",title:"ACT",winIndex:28,link:429},{id:"Australia/Canberra",title:"Canberra",winIndex:28,link:429},{id:"Australia/NSW",title:"NSW",winIndex:28,link:429},{id:"Australia/North",title:"North",winIndex:29,link:424},{id:"Australia/Queensland",title:"Queensland",winIndex:30,link:421},{id:"Australia/South",title:"South",winIndex:31,link:420},{id:"Australia/Tasmania",title:"Tasmania",winIndex:32,link:425},{id:"Australia/Victoria",title:"Victoria",winIndex:28,link:427},{id:"Australia/West",title:"West",winIndex:33,link:428},{id:"Australia/Yancowinna",title:"Yancowinna",winIndex:31,link:422},{id:"Brazil/Acre",title:"Acre",winIndex:10,link:312},{id:"Brazil/DeNoronha",title:"DeNoronha",winIndex:34,link:294},{id:"Brazil/East",title:"East",winIndex:35,link:317},{id:"Brazil/West",title:"West",winIndex:16,link:279},{id:"Canada/Atlantic",title:"Atlantic",winIndex:36,link:257},{id:"Canada/Central",title:"Central",winIndex:13,link:329},{id:"Canada/East-Saskatchewan",title:"East-Saskatchewan",winIndex:37,link:310},{id:"Canada/Eastern",title:"Eastern",winIndex:14,link:326},{id:"Canada/Mountain",title:"Mountain",winIndex:15,link:246},{id:"Canada/Newfoundland",title:"Newfoundland",winIndex:38,link:320},{id:"Canada/Pacific",title:"Pacific",winIndex:11,link:327},{id:"Canada/Saskatchewan",title:"Saskatchewan",winIndex:37,link:310},{id:"Canada/Yukon",title:"Yukon",winIndex:11,link:328},{id:"Chile/Continental",title:"Continental",winIndex:39,link:315},{id:"Cuba",title:"Cuba",winIndex:14,link:258},{id:"Egypt",title:"Egypt",winIndex:40,link:189},{id:"Eire",title:"Eire",winIndex:26,link:469},{id:"Europe/Belfast",title:"Belfast",winIndex:26,link:476},{id:"Europe/Tiraspol",title:"Tiraspol",winIndex:4,link:467},{id:"GB",title:"GB",winIndex:26,link:476},{id:"GB-Eire",title:"GB-Eire",winIndex:26,link:476},{id:"GMT+0",title:"GMT+0",winIndex:41,link:150},{id:"GMT-0",title:"GMT-0",winIndex:41,link:150},{id:"GMT0",title:"GMT0",winIndex:41,link:150},{id:"Greenwich",title:"Greenwich",winIndex:41,link:150},{id:"Hongkong",title:"Hongkong",winIndex:19,link:362},{id:"Iceland",title:"Iceland",winIndex:0,link:417},{id:"Iran",title:"Iran",winIndex:42,link:401},{id:"Israel",title:"Israel",winIndex:23,link:367},{id:"Jamaica",title:"Jamaica",winIndex:10,link:270},{id:"Japan",title:"Japan",winIndex:43,link:403},{id:"Kwajalein",title:"Kwajalein",winIndex:44,link:524},{id:"Libya",title:"Libya",winIndex:45,link:200},{id:"Mexico/BajaNorte",title:"BajaNorte",winIndex:11,link:325},{id:"Mexico/BajaSur",title:"BajaSur",winIndex:46,link:282},{id:"Mexico/General",title:"General",winIndex:47,link:285},{id:"NZ",title:"NZ",winIndex:8,link:511},{id:"Navajo",title:"Navajo",winIndex:15,link:244},{id:"PRC",title:"PRC",winIndex:19,link:395},{id:"Pacific/Ponape",title:"Ponape",winIndex:48,link:532},{id:"Pacific/Samoa",title:"Samoa",winIndex:49,link:530},{id:"Pacific/Truk",title:"Truk",winIndex:50,link:512},{id:"Poland",title:"Poland",winIndex:51,link:498},{id:"Portugal",title:"Portugal",winIndex:26,link:475},{id:"ROC",title:"ROC",winIndex:52,link:398},{id:"ROK",title:"ROK",winIndex:53,link:394},{id:"Singapore",title:"Singapore",winIndex:24,link:396},{id:"Turkey",title:"Turkey",winIndex:54,link:472},{id:"US/Alaska",title:"Alaska",winIndex:55,link:203},{id:"US/Arizona",title:"Arizona",winIndex:56,link:302},{id:"US/Central",title:"Central",winIndex:13,link:235},{id:"US/Eastern",title:"Eastern",winIndex:14,link:291},{id:"US/Hawaii",title:"Hawaii",winIndex:57,link:521},{id:"US/Indiana-Starke",title:"Indiana-Starke",winIndex:13,link:261},{id:"US/Michigan",title:"Michigan",winIndex:14,link:245},{id:"US/Mountain",title:"Mountain",winIndex:15,link:244},{id:"US/Pacific",title:"Pacific",winIndex:11,link:276},{id:"US/Samoa",title:"Samoa",winIndex:49,link:530},{id:"W-SU",title:"W-SU",winIndex:58,link:482},{id:"GMT",title:"GMT",winIndex:41,link:150},{id:"Etc/Greenwich",title:"Greenwich",winIndex:41,link:150},{id:"Etc/GMT-0",title:"GMT-0",winIndex:41,link:150},{id:"Etc/GMT+0",title:"GMT+0",winIndex:41,offsets:[0],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT0",title:"GMT0",winIndex:41,link:150},{id:"Europe/Jersey",title:"Jersey",winIndex:26,link:476},{id:"Europe/Guernsey",title:"Guernsey",winIndex:26,link:476},{id:"Europe/Isle_of_Man",title:"Isle of Man",winIndex:26,link:476},{id:"Europe/Mariehamn",title:"Mariehamn",winIndex:59,link:471},{id:"Europe/Busingen",title:"Busingen",winIndex:27,link:500},{id:"Europe/Vatican",title:"Vatican",winIndex:27,link:487},{id:"Europe/San_Marino",title:"San Marino",winIndex:27,link:487},{id:"Europe/Vaduz",title:"Vaduz",winIndex:27,link:500},{id:"Arctic/Longyearbyen",title:"Longyearbyen",winIndex:27,link:483},{id:"Europe/Ljubljana",title:"Ljubljana",winIndex:60,link:462},{id:"Europe/Podgorica",title:"Podgorica",winIndex:60,link:462},{id:"Europe/Sarajevo",title:"Sarajevo",winIndex:60,link:462},{id:"Europe/Skopje",title:"Skopje",winIndex:60,link:462},{id:"Europe/Zagreb",title:"Zagreb",winIndex:60,link:462},{id:"Europe/Bratislava",title:"Bratislava",winIndex:60,link:485},{id:"Asia/Istanbul",title:"Istanbul",winIndex:54,link:472},{id:"Pacific/Johnston",title:"Johnston",winIndex:57,link:521},{id:"US/Pacific-New",title:"Pacific-New",winIndex:11,link:276},{id:"America/Aruba",title:"Aruba",winIndex:16,link:240},{id:"America/Lower_Princes",title:"Lower Princes",winIndex:16,link:240},{id:"America/Kralendijk",title:"Kralendijk",winIndex:16,link:240},{id:"America/Anguilla",title:"Anguilla",winIndex:16,link:303},{id:"America/Dominica",title:"Dominica",winIndex:16,link:303},{id:"America/Grenada",title:"Grenada",winIndex:16,link:303},{id:"America/Guadeloupe",title:"Guadeloupe",winIndex:16,link:303},{id:"America/Marigot",title:"Marigot",winIndex:16,link:303},{id:"America/Montserrat",title:"Montserrat",winIndex:16,link:303},{id:"America/St_Barthelemy",title:"St Barthelemy",winIndex:16,link:303},{id:"America/St_Kitts",title:"St Kitts",winIndex:16,link:303},{id:"America/St_Lucia",title:"St Lucia",winIndex:16,link:303},{id:"America/St_Thomas",title:"St Thomas",winIndex:16,link:303},{id:"America/St_Vincent",title:"St Vincent",winIndex:16,link:303},{id:"America/Tortola",title:"Tortola",winIndex:16,link:303},{id:"Africa/Abidjan",title:"Abidjan",winIndex:0,offsets:[-.2688888888888889,0],offsetIndices:"01",untils:"-u9rgl4|Infinity"},{id:"Africa/Accra",title:"Accra",winIndex:0,offsets:[-.014444444444444446,0,.3333333333333333],offsetIndices:"012121212121212121212121212121212121212121212121",untils:"-r507yk|1e3pak|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|Infinity"},{id:"Africa/Algiers",title:"Algiers",winIndex:3,offsets:[.15583333333333332,0,1,2],offsetIndices:"0121212121212121232321212122321212",untils:"-uozn3l|2qx1nl|5luo0|8y800|a4tc0|7vc00|auqo0|7idc0|b7pc0|6sg00|cyo00|7ayo0|53c00|9idxc0|3i040|51mw0|253uk0|9o2k0|92040|8l3s0|jutc0|4uy840|3rdzw0|46xc00|7x6o0|2xco40|8n180|7x9g0|9d440|kiqg0|9d440|9q2s0|9cyk0|Infinity"},{id:"Africa/Bissau",title:"Bissau",winIndex:0,offsets:[-1.038888888888889,-1,0],offsetIndices:"012",untils:"-u9reg4|wvoyk4|Infinity"},{id:"Africa/Cairo",title:"Cairo",winIndex:40,offsets:[2,3],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-fdls80|40d80|a31g0|7x3w0|a4w40|aqyk0|80ys0|b07w0|7tk40|b07w0|8jhg0|a8fw0|60go40|7el80|awo40|7v980|awqw0|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7tk40|ayd80|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|f9x80|3i040|eluk0|462s0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|b5rw0|7m5g0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|aqvs0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7k580|b5xg0|6u7w0|bvus0|6h980|c8tg0|64ak0|cyqs0|5anw0|1jms0|12t80|1w22s0|25p80|1sw40|2vmk0|Infinity"},{id:"Africa/Casablanca",title:"Casablanca",winIndex:61,offsets:[-.5055555555555555,0,1],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-tblt9g|di7nxg|3huk0|51k40|2znuk0|2dp9g0|776k0|8nt2s0|657w0|3ifxg0|3jp80|va040|4qak0|e1ms0|7pp80|cnms0|3afw0|2xi840|xqqk0|bp56s0|4qak0|e1ms0|45x80|d2g40|51ek0|c8tg0|64ak0|e1sc0|47uo0|1leo0|23xc0|asw00|3lmo0|1qyo0|40g00|7x6o0|4mo00|1stc0|4deo0|7x6o0|3ylc0|1stc0|51hc0|7x6o0|3lmo0|1stc0|5reo0|7k800|2vpc0|25s00|64dc0|7k800|2iqo0|1stc0|6uao0|7x6o0|1stc0|1stc0|779c0|7x6o0|12w00|1stc0|7x6o0|7x6o0|pxc0|1stc0|8n400|9q000|902o0|902o0|9q000|8n400|a2yo0|8a5c0|afxc0|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|afxc0|8a5c0|9q000|Infinity"},{id:"Africa/Ceuta",title:"Ceuta",winIndex:62,offsets:[0,1,2],offsetIndices:"010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-qyiys0|7x3w0|2vt440|8so00|st1c0|8n400|9q000|902o0|a2yo0|902o0|k69g40|657w0|3ifxg0|3jp80|va040|4qak0|e1ms0|7pp80|cnms0|3afw0|2xi840|129us0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Africa/El_Aaiun",title:"El Aaiun",winIndex:61,offsets:[-.88,-1,0,1],offsetIndices:"01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-isdxk0|m2g0c0|vek0|4qak0|e1ms0|7pp80|cnms0|3afw0|fke5g0|4qak0|e1ms0|45x80|d2g40|51ek0|c8tg0|64ak0|e1sc0|47uo0|1leo0|23xc0|asw00|3lmo0|1qyo0|40g00|7x6o0|4mo00|1stc0|4deo0|7x6o0|3ylc0|1stc0|51hc0|7x6o0|3lmo0|1stc0|5reo0|7k800|2vpc0|25s00|64dc0|7k800|2iqo0|1stc0|6uao0|7x6o0|1stc0|1stc0|779c0|7x6o0|12w00|1stc0|7x6o0|7x6o0|pxc0|1stc0|8n400|9q000|902o0|902o0|9q000|8n400|a2yo0|8a5c0|afxc0|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|afxc0|8a5c0|9q000|Infinity"},{id:"Africa/Johannesburg",title:"Johannesburg",winIndex:2,offsets:[1.5,2,3],offsetIndices:"012121",untils:"-yvtdi0|kn7o60|9cyk0|9d440|9cyk0|Infinity"},{id:"Africa/Khartoum",title:"Khartoum",winIndex:1,offsets:[2.1688888888888886,2,3],offsetIndices:"01212121212121212121212121212121212",untils:"-kcrsow|kixv4w|8l6k0|a4w40|8n180|a6qs0|8n180|a31g0|8ovw0|a16s0|8qqk0|9zc40|8sl80|9xhg0|8wak0|9ts40|8y580|a4w40|8n180|a31g0|8ovw0|a16s0|8sl80|9xhg0|8ufw0|9vms0|8wak0|9ts40|8y580|a4w40|8ovw0|a16s0|8qqk0|7frw40|Infinity"},{id:"Africa/Lagos",title:"Lagos",winIndex:3,offsets:[.22666666666666666,1],offsetIndices:"01",untils:"-q9qbao|Infinity"},{id:"Africa/Maputo",title:"Maputo",winIndex:2,offsets:[2.1722222222222225,2],offsetIndices:"01",untils:"-yvtfd8|Infinity"},{id:"Africa/Monrovia",title:"Monrovia",winIndex:0,offsets:[-.7188888888888889,-.7416666666666667,0],offsetIndices:"012",untils:"-qj6zc4|rqyyqa|Infinity"},{id:"Africa/Nairobi",title:"Nairobi",winIndex:1,offsets:[2.454444444444445,3,2.5,2.75],offsetIndices:"01231",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity"},{id:"Africa/Ndjamena",title:"Ndjamena",winIndex:3,offsets:[1.0033333333333334,1,2],offsetIndices:"0121",untils:"-u9rk4c|zdk5cc|7iak0|Infinity"},{id:"Africa/Tripoli",title:"Tripoli",winIndex:45,offsets:[.8788888888888889,1,2],offsetIndices:"012121212121212121212121212122122",untils:"-q3gfrw|gl6ajw|422c0|xado0|4bbo0|wrpg0|4s580|1kdpg0|c05bw0|4mqs0|9et80|9d440|9et80|9eys0|9et80|9mdg0|95jw0|9io40|9cyk0|99es0|9et80|9eys0|9et80|9d440|9et80|b2840|3cf3w0|9kis0|9et80|7vqyw0|75eo0|asw00|Infinity"},{id:"Africa/Tunis",title:"Tunis",winIndex:3,offsets:[.15583333333333332,1,2],offsetIndices:"0121212121212121212121212121212121",untils:"-uozn3l|enxevl|b5uo0|53c00|u8w00|7x9g0|c8w80|7k800|z3w0|ew40|8bx80|9d440|9nx00|925o0|8l100|gi3440|7k800|b9k00|7vc00|51mw00|5ytc0|9d1c0|9d1c0|b9k00|7thc0|7m0tc0|7tk40|93us0|b5uo0|7k800|b5uo0|7x6o0|asw00|Infinity"},{id:"Africa/Windhoek",title:"Windhoek",winIndex:63,offsets:[1.5,2,3,1],offsetIndices:"012113131313131313131313131313131313131313131313131313131313131313131313131313131313131313131",untils:"-yvtdi0|kn7o60|9cyk0|oj2nw0|23tmo0|7xf00|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|Infinity"},{id:"America/Anchorage",title:"Anchorage",winIndex:55,offsets:[-10,-9,-8],offsetIndices:"011001010101010101010101010101010111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-ek1qo0|1tyx80|2e400|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l940|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Antigua",title:"Antigua",winIndex:16,link:303},{id:"America/Araguaina",title:"Araguaina",winIndex:64,offsets:[-3.2133333333333334,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212121212121",untils:"-t85j2o|99k8mo|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|2yl440|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|51udg0|64ak0|Infinity"},{id:"America/Argentina/Buenos_Aires",title:"Buenos Aires",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323232323232223232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|3fidg0|7thc0|430lc0|3yik0|b5xg0|7k580|Infinity"},{id:"America/Argentina/Catamarca",title:"Catamarca",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323232313232221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|3fidg0|7thc0|27s800|z9g0|1u93w0|3yik0|Infinity"},{id:"America/Argentina/Cordoba",title:"Cordoba",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323232313232223232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|3fidg0|7thc0|430lc0|3yik0|b5xg0|7k580|Infinity"},{id:"America/Argentina/Jujuy",title:"Jujuy",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"01212121212121212121212121212121212121212123232312132322232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|c8w80|776k0|ag040|7k2g0|bvus0|776k0|3fidg0|7thc0|430lc0|3yik0|Infinity"},{id:"America/Argentina/La_Rioja",title:"La Rioja",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"01212121212121212121212121212121212121212123232323123232221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6qik0|3g880|8jbw0|6u7w0|bvus0|776k0|3fidg0|7thc0|27s800|z9g0|1u93w0|3yik0|Infinity"},{id:"America/Argentina/Mendoza",title:"Mendoza",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323231212132221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bktk0|71mk0|bqas0|73h80|bvus0|773s0|3fidg0|7thc0|27bk00|6hes0|1p7mk0|3yik0|Infinity"},{id:"America/Argentina/Rio_Gallegos",title:"Rio Gallegos",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323232323232221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|3fidg0|7thc0|27s800|z9g0|1u93w0|3yik0|Infinity"},{id:"America/Argentina/Salta",title:"Salta",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"01212121212121212121212121212121212121212123232323132322232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|3fidg0|7thc0|430lc0|3yik0|Infinity"},{id:"America/Argentina/San_Juan",title:"San Juan",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"01212121212121212121212121212121212121212123232323123232221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6qik0|3g880|8jbw0|6u7w0|bvus0|776k0|3fidg0|7thc0|27qdc0|2txg0|1sgak0|3yik0|Infinity"},{id:"America/Argentina/San_Luis",title:"San Luis",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"01212121212121212121212121212121212121212123232312122212321212",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|7pp80|b2aw0|71mk0|4qg40|4conw0|7thc0|27qdc0|2txg0|1sgak0|14nw0|2gys0|b5xg0|7k580|b5xg0|Infinity"},{id:"America/Argentina/Tucuman",title:"Tucuman",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"012121212121212121212121212121212121212121232323231323222123232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|3fidg0|7thc0|27s800|mas0|1um2k0|3yik0|b5xg0|7k580|Infinity"},{id:"America/Argentina/Ushuaia",title:"Ushuaia",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323232323232221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|3fidg0|7thc0|27oio0|12ys0|1u93w0|3yik0|Infinity"},{id:"America/Asuncion",title:"Asuncion",winIndex:65,offsets:[-3.844444444444444,-4,-3],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-jy93zk|ldwofk|s4vw0|s6w40|7tek0|b0dg0|7rjw0|b0dg0|7rjw0|b0dg0|9cyk0|9eys0|9et80|9eys0|9cyk0|9eys0|9cyk0|9eys0|9cyk0|9eys0|9et80|9eys0|9cyk0|9eys0|9cyk0|9eys0|9cyk0|9eys0|9et80|9eys0|9cyk0|ahus0|8a2k0|9eys0|9cyk0|9o840|7k580|b7s40|93p80|9gtg0|7nuk0|b42s0|7lzw0|b5xg0|7tek0|b9ms0|776k0|biw40|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|7kas0|b5rw0|7x9g0|ast80|a31g0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|776k0|biw40|8zzw0|905g0|9px80|905g0|9px80|9d440|8n180|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|Infinity"},{id:"America/Atikokan",title:"Atikokan",winIndex:10,offsets:[-6,-5],offsetIndices:"0101111",untils:"-qzov40|a2vw0|bfxjw0|pmdk0|1tz8c0|2dsw0|Infinity"},{id:"America/Bahia",title:"Bahia",winIndex:66,offsets:[-2.5677777777777777,-3,-2],offsetIndices:"01212121212121212121212121212121212121212121212121212121212121",untils:"-t85kv8|99kaf8|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|4irc40|6u7w0|Infinity"},{id:"America/Bahia_Banderas",title:"Bahia Banderas",winIndex:47,offsets:[-7.016666666666667,-7,-6,-8,-5],offsetIndices:"0121212131212121212121212121212121212142424242424242424242424242424242424242424242424242424242",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|asqg0|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Barbados",title:"Barbados",winIndex:16,offsets:[-3.974722222222222,-4,-3],offsetIndices:"00121212121",untils:"-o0aiaj|46b400|npv1mj|5rbw0|a31g0|8n180|a31g0|8n180|ag040|84ik0|Infinity"},{id:"America/Belem",title:"Belem",winIndex:64,offsets:[-3.232222222222222,-3,-2],offsetIndices:"012121212121212121212121212121",untils:"-t85j0s|99k8ks|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|Infinity"},{id:"America/Belize",title:"Belize",winIndex:67,offsets:[-5.88,-6,-5.5,-5],offsetIndices:"01212121212121212121212121212121212121212121212121213131",untils:"-u52ic0|3edkc0|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|g2t2q0|3e580|4mcys0|2vmk0|Infinity"},{id:"America/Blanc-Sablon",title:"Blanc-Sablon",winIndex:16,offsets:[-4,-3],offsetIndices:"010110",untils:"-qzp0o0|a2vw0|c5jxg0|1tzdw0|2dnc0|Infinity"},{id:"America/Boa_Vista",title:"Boa Vista",winIndex:16,offsets:[-4.044444444444444,-4,-3],offsetIndices:"0121212121212121212121212121212121",untils:"-t85grk|99k93k|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|62xk40|7k580|biw40|cvw0|Infinity"},{id:"America/Bogota",title:"Bogota",winIndex:10,offsets:[-4.937777777777778,-5,-4],offsetIndices:"0121",untils:"-srdoy8|14f1hi8|ha580|Infinity"},{id:"America/Boise",title:"Boise",winIndex:15,offsets:[-8,-7,-6],offsetIndices:"0101012212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0emw0|ast80|7x9g0|ast80|1um840|9s7jw0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|51k40|doik0|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Cambridge_Bay",title:"Cambridge Bay",winIndex:15,offsets:[0,-7,-6,-5],offsetIndices:"0122131212121212121212121212121212121212121212233221212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-q3gdc0|bjeec0|1tz5k0|2dvo0|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x6o0|ast80|ct40|7kj40|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Campo_Grande",title:"Campo Grande",winIndex:68,offsets:[-3.641111111111111,-4,-3],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-t85hvw|99ka7w|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|cls40|64ak0|dfes0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|Infinity"},{id:"America/Cancun",title:"Cancun",winIndex:47,offsets:[-5.7844444444444445,-6,-5,-4],offsetIndices:"0123232321212121212121212121212121212121212",untils:"-p1u7c0|vauo00|7ggw40|afuk0|8a840|afuk0|8a840|64ak0|4bms0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|51k40|Infinity"},{id:"America/Caracas",title:"Caracas",winIndex:69,offsets:[-4.461111111111111,-4.5,-4],offsetIndices:"01212",untils:"-u7lcxw|rlo83w|meoxm0|4dps00|Infinity"},{id:"America/Cayenne",title:"Cayenne",winIndex:64,offsets:[-3.488888888888889,-4,-3],offsetIndices:"012",untils:"-uj7yb4|tcw6r4|Infinity"},{id:"America/Cayman",title:"Cayman",winIndex:10,link:299},{id:"America/Chicago",title:"Chicago",winIndex:13,offsets:[-6,-5],offsetIndices:"01010101010101010101010101010101010101010101010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0esg0|ast80|7x9g0|ast80|bvus0|776k0|7kas0|b5rw0|9d440|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|7x9g0|dbjw0|8a840|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Chihuahua",title:"Chihuahua",winIndex:46,offsets:[-7.072222222222222,-7,-6,-5],offsetIndices:"0121212323221212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|xes2s0|afuk0|8a840|afuk0|8aaw0|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Costa_Rica",title:"Costa Rica",winIndex:67,offsets:[-5.60361111111111,-6,-5],offsetIndices:"0121212121",untils:"-pjw8fn|ubtl3n|51ek0|doo40|51ek0|5jso40|8drw0|acas0|2xh80|Infinity"},{id:"America/Creston",title:"Creston",winIndex:56,offsets:[-7,-8],offsetIndices:"010",untils:"-rshz80|vbus0|Infinity"},{id:"America/Cuiaba",title:"Cuiaba",winIndex:68,offsets:[-3.738888888888889,-4,-3],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-t85hm4|99k9y4|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|w5hg0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|Infinity"},{id:"America/Curacao",title:"Curacao",winIndex:16,offsets:[-4.59638888888889,-4.5,-4],offsetIndices:"012",untils:"-u7lckd|rlo7qd|Infinity"},{id:"America/Danmarkshavn",title:"Danmarkshavn",winIndex:41,offsets:[-1.2444444444444445,-3,-2,0],offsetIndices:"01212121212121212121212121212121213",untils:"-rvusjk|x8nx3k|8zrk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|53hk0|Infinity"},{id:"America/Dawson",title:"Dawson",winIndex:11,offsets:[-9,-8,-7],offsetIndices:"0101011020121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-qzoms0|a2vw0|asys0|882c0|bmiwc0|1tz000|2e180|a7n3w0|9q000|465k00|3e2is0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Dawson_Creek",title:"Dawson Creek",winIndex:56,offsets:[-8,-7],offsetIndices:"0101101010101010101010101010101010101010101010101010101011",untils:"-qzopk0|a2vw0|c5jxg0|1tz2s0|2dyg0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|69uk0|Infinity"},{id:"America/Denver",title:"Denver",winIndex:15,offsets:[-7,-6],offsetIndices:"01010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0epo0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|2vmk0|ataw40|1tz5k0|2dvo0|a7n9g0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Detroit",title:"Detroit",winIndex:14,offsets:[-5.536388888888889,-6,-5,-4],offsetIndices:"01233232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-xx8dyd|5eraud|dyeyk0|1tzb40|2dq40|1c9440|7x3w0|9rlhg0|71mk0|2vcg40|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Edmonton",title:"Edmonton",winIndex:15,offsets:[-7.564444444444445,-7,-6],offsetIndices:"01212121212121221212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-x1yazk|629ink|a2vw0|8n6s0|29ek0|h6lg0|9px80|905g0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|9l0g40|1tz5k0|2dvo0|tj1g0|7x3w0|a80840|9cyk0|s36s0|9cyk0|1b6840|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Eirunepe",title:"Eirunepe",winIndex:10,offsets:[-4.657777777777778,-5,-4],offsetIndices:"0121212121212121212121212121212121",untils:"-t85f28|99ka68|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|2yy2s0|6h980|7hg2s0|2t2t80|Infinity"},{id:"America/El_Salvador",title:"El Salvador",winIndex:67,offsets:[-5.946666666666667,-6,-5],offsetIndices:"012121",untils:"-pkm4tc|ymao5c|7k580|b5xg0|7k580|Infinity"},{id:"America/Fortaleza",title:"Fortaleza",winIndex:64,offsets:[-2.566666666666667,-3,-2],offsetIndices:"0121212121212121212121212121212121212121",untils:"-t85kvc|99kafc|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|puk0|id6s0|6h980|Infinity"},{id:"America/Glace_Bay",title:"Glace Bay",winIndex:36,offsets:[-3.996666666666667,-4,-3],offsetIndices:"012122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-z94kwc|89fk8c|a2vw0|c5jxg0|1tzdw0|2dnc0|3y8g40|7x3w0|9pa5g0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Godthab",title:"Godthab",winIndex:70,offsets:[-3.448888888888889,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-rvumf4|x8nqz4|8zrk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"America/Goose_Bay",title:"Goose Bay",winIndex:36,offsets:[-3.5144444444444445,-2.5144444444444445,-3.5,-2.5,-4,-3,-2],offsetIndices:"010232323232323233232323232323232323232323232323232323232324545454545454545454545454545454545454545454546454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454",untils:"-qzp20k|a2vw0|8kjbw0|kzjyk|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|7k580|b5xg0|7k580|b5xg0|1pb260|2dly0|biw40|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|7k580|ag040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|6y2s0|22420|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a2lo|afuk0|8a840|asqg0|7xc80|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8tec|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Grand_Turk",title:"Grand Turk",winIndex:16,offsets:[-5.119722222222222,-5,-4],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212122",untils:"-u85og1|z3brw1|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Guatemala",title:"Guatemala",winIndex:67,offsets:[-6.0344444444444445,-6,-5],offsetIndices:"0121212121",untils:"-qqqskk|ss0akk|4ofw0|4tidg0|6djw0|3wwas0|8n180|7n5ms0|7x3w0|Infinity"},{id:"America/Guayaquil",title:"Guayaquil",winIndex:10,offsets:[-5.233333333333333,-5],offsetIndices:"01",untils:"-kcr84o|Infinity"},{id:"America/Guyana",title:"Guyana",winIndex:16,offsets:[-3.8777777777777778,-3.75,-3,-4],offsetIndices:"01123",untils:"-smcak8|qqnjn8|4sh9c0|81rf90|Infinity"},{id:"America/Halifax",title:"Halifax",winIndex:36,offsets:[-4.24,-4,-3],offsetIndices:"0121212121212121212121212121212121212121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-z94k80|777go0|9et80|st9o0|a2vw0|ssyk0|5rbw0|cv1g0|69uk0|c6ys0|6kyk0|ci2s0|67zw0|ci2s0|6w2k0|bu040|7lzw0|bu040|66580|bu040|7lzw0|bu040|64ak0|cls40|5v180|cv1g0|6j3w0|c6ys0|79180|b42s0|7lzw0|b42s0|7yyk0|bu040|64ak0|dbpg0|66580|cls40|5ed80|bu040|7lzw0|b42s0|7lzw0|cjxg0|66580|bh1g0|7lzw0|b42s0|7lzw0|6uj00|1tzdw0|2dnc0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|tw040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|tw040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|1cm2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Havana",title:"Havana",winIndex:14,offsets:[-5.493333333333334,-5,-4],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-n7762o|1icfyo|69uk0|62s040|4ofw0|e1ms0|51ek0|e1ms0|4ofw0|1fhs40|4ofw0|e1ms0|4ofw0|9s9k40|67zw0|cedg0|6h980|9o840|7yyk0|b5xg0|7k580|bvus0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|8a2k0|ag040|8bx80|ae5g0|8drw0|acas0|9cyk0|9d440|9px80|905g0|9px80|9q2s0|7x3w0|8a840|ast80|7x9g0|ast80|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|8a2k0|ag040|8a2k0|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|905g0|a2vw0|905g0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|8n400|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|7x6o0|1cm000|6uao0|bvs00|779c0|bitc0|6uao0|bvs00|779c0|bvs00|779c0|c8qo0|779c0|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|Infinity"},{id:"America/Hermosillo",title:"Hermosillo",winIndex:56,offsets:[-7.397777777777778,-7,-6,-8],offsetIndices:"0121212131212121",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Indiana/Indianapolis",title:"Indianapolis",winIndex:12},{id:"America/Indiana/Knox",title:"Knox",winIndex:13,offsets:[-6,-5],offsetIndices:"0101011010101010101010101010101010101010101010101010101010101010101010101010101010101010111010101010101010101010101010101010101010101010101010101010101010",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|9px80|9d440|9cyk0|9d440|s3180|1twas0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|7j5400|asw00|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Marengo",title:"Marengo",winIndex:12,offsets:[-6,-5,-4],offsetIndices:"0101011010101010101010101212121212111212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|2wsas0|7x3w0|1c9440|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|465h80|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4g00|64dc0|clmk0|fvt9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Petersburg",title:"Petersburg",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"01010110101010101010101010101010101010101010101010111011212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|501ek0|7kas0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|sfzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|eu02o0|asw00|6udg0|c8nw0|6hc00|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Tell_City",title:"Tell City",winIndex:13,offsets:[-6,-5,-4],offsetIndices:"01010110101010101010101010101010121211010101010101010101010101010101010101010101010101010101010101010",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|3fidg0|7x3w0|asys0|7x3w0|b5rw0|7kas0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|2lz980|9cyk0|9d440|9cyk0|ihslg0|asw00|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Vevay",title:"Vevay",winIndex:12,offsets:[-6,-5,-4],offsetIndices:"010101101212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|4gyis0|7txx80|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|hfzhg0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Vincennes",title:"Vincennes",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"01010110101010101010101010101010121211011212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|3fidg0|7x3w0|asys0|7x3w0|b5rw0|7kas0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|2lz980|9cyk0|9d440|9cyk0|ihslg0|asw00|6udg0|c8nw0|6hc00|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Winamac",title:"Winamac",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"01010110101010101010101010101010101010121211021212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|465h80|9cyk0|9d440|9cyk0|ihslg0|asw00|6udg0|c8l40|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Inuvik",title:"Inuvik",winIndex:15,offsets:[0,-8,-6,-7],offsetIndices:"0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323",untils:"-8ve5c0|6fce80|9q000|71i2w0|ipzw0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Iqaluit",title:"Iqaluit",winIndex:14,offsets:[0,-4,-5,-3,-6],offsetIndices:"01123212121212121212121212121212121212121212142212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-eb6ao0|1l3h80|2dq40|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7xc80|ast80|7x6o0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Jamaica",title:"Jamaica",winIndex:10,offsets:[-5.119722222222222,-5,-4],offsetIndices:"0121212121212121212121",untils:"-u85og1|wbl181|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|Infinity"},{id:"America/Juneau",title:"Juneau",winIndex:55,offsets:[-8,-7,-9],offsetIndices:"01101010101010101010101010001010122020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202",untils:"-ek1w80|1tz2s0|2dyg0|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9d1c0|9d1c0|9cyk0|9d440|9px80|905g0|9px80|1leo0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Kentucky/Louisville",title:"Louisville",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"0101010101101010101010101010101010101121212121212111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|sg5g0|6bp80|a98o40|7x3w0|6w840|1tz8c0|2dsw0|4s580|7tk40|gxc40|1s3bw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|4bh80|3j3xc0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4g00|64dc0|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Kentucky/Monticello",title:"Monticello",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"0101011010101010101010101010101010101010101010101010101010101010101010101121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|bs6g40|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x6o0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/La_Paz",title:"La Paz",winIndex:16,offsets:[-4.543333333333334,-3.5433333333333334,-4],offsetIndices:"012",untils:"-jxzspo|84ik0|Infinity"},{id:"America/Lima",title:"Lima",winIndex:10,offsets:[-5.1433333333333335,-5,-4],offsetIndices:"0121212121212121",untils:"-w25lpo|fcxjlo|4ml80|93us0|9cyk0|9d440|9cyk0|nw16s0|4ml80|e5c40|4ml80|1fr1g0|4ml80|1yiys0|4ml80|Infinity"},{id:"America/Los_Angeles",title:"Los Angeles",winIndex:11,offsets:[-8,-7],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0emw0|ast80|7x9g0|ast80|bmtus0|1tz2s0|2dyg0|1a3c40|f2ik0|owdg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Maceio",title:"Maceio",winIndex:64,offsets:[-2.381111111111111,-3,-2],offsetIndices:"012121212121212121212121212121212121212121",untils:"-t85ldw|99kaxw|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|2yl440|64ak0|1wf1g0|7k580|biw40|puk0|id6s0|6h980|Infinity"},{id:"America/Managua",title:"Managua",winIndex:67,offsets:[-5.753333333333333,-6,-5],offsetIndices:"0121212121212121",untils:"-ijh6oo|ka1i0o|xqqk0|24p6s0|53980|dmtg0|53980|60itw0|dq240|53es0|235h80|4beis0|8zzw0|at4c0|7x140|Infinity"},{id:"America/Manaus",title:"Manaus",winIndex:16,offsets:[-4.001111111111111,-4,-3],offsetIndices:"01212121212121212121212121212121",untils:"-t85gvw|99k97w|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|2yy2s0|6h980|Infinity"},{id:"America/Martinique",title:"Martinique",winIndex:16,offsets:[-4.072222222222222,-4,-3],offsetIndices:"0121",untils:"-umcvcs|zz5x4s|8zzw0|Infinity"},{id:"America/Matamoros",title:"Matamoros",winIndex:13,offsets:[-6.666666666666667,-6,-5],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u7c0|ykt480|ast80|3vppg0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Mazatlan",title:"Mazatlan",winIndex:46,offsets:[-7.094444444444445,-7,-6,-8],offsetIndices:"0121212131212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Menominee",title:"Menominee",winIndex:13,offsets:[-6,-5],offsetIndices:"01010110101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|a7n9g0|9px80|1at9g0|2396k0|9d1c0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Merida",title:"Merida",winIndex:47,offsets:[-5.974444444444444,-6,-5],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u7c0|vauo00|hoyk0|6ys0c0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Mexico_City",title:"Mexico City",winIndex:47,offsets:[-6.61,-7,-6,-5],offsetIndices:"012121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|3knek0|776k0|rf440|5t6k0|1evk40|71mk0|30p1g0|8n180|nufxo0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Moncton",title:"Moncton",winIndex:36,offsets:[-5,-4,-3],offsetIndices:"012121212121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-z94i40|89fhg0|a2vw0|7mqqo0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|dmtg0|64ak0|cao40|6fek0|bkqs0|7iak0|6y5k0|1tzdw0|2dnc0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|s36s0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a2lo|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6uiyc|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Monterrey",title:"Monterrey",winIndex:47,offsets:[-6.687777777777778,-6,-5],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u7c0|ykt480|ast80|3vppg0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Montevideo",title:"Montevideo",winIndex:71,offsets:[-3.7455555555555553,-3.5,-3,-2,-2.5],offsetIndices:"012121212121212121212121213232323232324242423243232323232323232323232323232323232323232",untils:"-px809g|1s8xzg|9czy0|9exe0|9czy0|9exe0|9czy0|3ydyq0|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|b5w20|7k6m0|b5w20|7k6m0|b5w20|7x5a0|asxe0|7x5a0|6do20|7vam0|humq0|4mju0|8g9s40|8zzw0|38qs0|2inw0|2nf9g0|8zzw0|9q2s0|aunw0|7ves0|awik0|ar440|9pym0|91yq0|9pym0|91yq0|9pym0|q6mq0|5t6k0|tfc40|erfy0|xdta0|m2is0|62fw0|s6w40|ayd80|3z5s40|4ofw0|dzs40|4ofw0|bvus0|6h980|bvus0|6u7w0|c8tg0|6h980|bvus0|6u7w0|614qs0|9q2s0|a31g0|7x3w0|ag040|8a2k0|asys0|7x3w0|asys0|7x3w0|asys0|8a2k0|ag040|8a2k0|ag040|8a2k0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity"},{id:"America/Montreal",title:"Montreal",winIndex:14,link:326},{id:"America/Nassau",title:"Nassau",winIndex:14,offsets:[-5.158333333333333,-5,-4],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-u6m4c6|r7u7s6|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/New_York",title:"New York",winIndex:14,offsets:[-5,-4],offsetIndices:"01010101010101010101010101010101010101010101010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0ev80|ast80|7x9g0|ast80|7x9g0|b5rw0|905g0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|6w840|1tzb40|2dq40|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Nipigon",title:"Nipigon",winIndex:14,offsets:[-5,-4],offsetIndices:"010111010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-qzoxw0|a2vw0|bfxjw0|pmdk0|1tzb40|2dq40|ewvus0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Nome",title:"Nome",winIndex:55,offsets:[-11,-10,-9,-8],offsetIndices:"011001010101010101010101010101010122323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-ek1nw0|1tyug0|2e6s0|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l6c0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Noronha",title:"Noronha",winIndex:34,offsets:[-2.161111111111111,-2,-1],offsetIndices:"0121212121212121212121212121212121212121",untils:"-t85lzw|99k8rw|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|cvw0|iq5g0|6h980|Infinity"},{id:"America/North_Dakota/Beulah",title:"Beulah",winIndex:13,offsets:[-7,-6,-5],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101011212121212121212121212121212121212121212121212121212121",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hc00|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/North_Dakota/Center",title:"Center",winIndex:13,offsets:[-7,-6,-5],offsetIndices:"010101101010101010101010101010101010101010101010101010101011212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a5c0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/North_Dakota/New_Salem",title:"New Salem",winIndex:13,offsets:[-7,-6,-5],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a5c0|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Ojinaga",title:"Ojinaga",winIndex:15,offsets:[-6.961111111111111,-7,-6,-5],offsetIndices:"0121212323221212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|xes2s0|afuk0|8a840|afuk0|8aaw0|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Panama",title:"Panama",winIndex:10,offsets:[-5.326666666666667,-5],offsetIndices:"01",untils:"-w757vc|Infinity"},{id:"America/Pangnirtung",title:"Pangnirtung",winIndex:14,offsets:[0,-4,-3,-2,-5,-6],offsetIndices:"012213121212121212121212121212121212114141414154414141414141414141414141414141414141414141414141414141414141414141414141414",untils:"-pkmlc0|b0ke00|1tzdw0|2dnc0|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|asw00|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7xc80|ast80|7x6o0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Paramaribo",title:"Paramaribo",winIndex:64,offsets:[-3.6777777777777776,-3.6811111111111114,-3.6766666666666667,-3.5,-3],offsetIndices:"012334",untils:"-usj4g8|cixc0c|5lydbk|fq7bic|4mkao0|Infinity"},{id:"America/Phoenix",title:"Phoenix",winIndex:56,offsets:[-7,-6],offsetIndices:"01010101010",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|zjedo|4olg0|9et80|bs6lmc|9cyk0|Infinity"},{id:"America/Port_of_Spain",title:"Port of Spain",winIndex:16,offsets:[-4.101111111111111,-4],offsetIndices:"01",untils:"-u6m79w|Infinity"},{id:"America/Port-au-Prince",title:"Port-au-Prince",winIndex:14,offsets:[-4.816666666666666,-5,-4],offsetIndices:"01212121212121212121212121212121212121212121",untils:"-rmk9ac|ylcf6c|8zzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8aaw0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|3vpjw0|ast80|7x9g0|ast80|2stv00|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Porto_Velho",title:"Porto Velho",winIndex:16,offsets:[-4.26,-4,-3],offsetIndices:"012121212121212121212121212121",untils:"-t85g60|99k8i0|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|Infinity"},{id:"America/Puerto_Rico",title:"Puerto Rico",winIndex:16,offsets:[-4,-3],offsetIndices:"0110",untils:"-efsnk0|1ppu40|2dnc0|Infinity"},{id:"America/Rainy_River",title:"Rainy River",winIndex:13,offsets:[-6,-5],offsetIndices:"010111010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-qzov40|a2vw0|bfxjw0|pmdk0|1tz8c0|2dsw0|ewvus0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Rankin_Inlet",title:"Rankin Inlet",winIndex:13,offsets:[0,-6,-4,-5],offsetIndices:"012131313131313131313131313131313131313131313331313131313131313131313131313131313131313131313131313131313131313131313131",untils:"-6s8lc0|4c6oo0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Recife",title:"Recife",winIndex:64,offsets:[-2.3266666666666667,-3,-2],offsetIndices:"0121212121212121212121212121212121212121",untils:"-t85ljc|99kb3c|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|cvw0|iq5g0|6h980|Infinity"},{id:"America/Regina",title:"Regina",winIndex:37,offsets:[-6.9766666666666675,-7,-6],offsetIndices:"012121212121212121212121221212121212121212121212121212",untils:"-xkq9yc|6l1hmc|a2vw0|60enw0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|1b6840|9cyk0|9d440|8zzw0|9q2s0|9cyk0|9q2s0|9cyk0|9d440|9cyk0|66gc0|1tz5k0|2dvo0|a31g0|9cyk0|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|tj1g0|9cyk0|9d440|Infinity"},{id:"America/Resolute",title:"Resolute",winIndex:13,offsets:[0,-6,-4,-5],offsetIndices:"012131313131313131313131313131313131313131313331313131313331313131313131313131313131313131313131313131313131313131313131",untils:"-bnp9c0|97nco0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Rio_Branco",title:"Rio Branco",winIndex:10,offsets:[-4.52,-5,-4],offsetIndices:"01212121212121212121212121212121",untils:"-t85fg0|99kak0|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|amves0|2t2t80|Infinity"},{id:"America/Santa_Isabel",title:"Santa Isabel",winIndex:72,link:325},{id:"America/Santarem",title:"Santarem",winIndex:64,offsets:[-3.646666666666667,-4,-3],offsetIndices:"0121212121212121212121212121212",untils:"-t85hvc|99ka7c|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|amves0|Infinity"},{id:"America/Santiago",title:"Santiago",winIndex:39,offsets:[-4.712777777777777,-5,-4,-3],offsetIndices:"010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323",untils:"-vauawq|3dlssq|157b7a|f4e0q|49hzba|aye0q|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|534ik0|351g0|229zw0|2gt80|awo40|2mg00|b73400|7k580|c8tg0|6h980|a31g0|7x3w0|asys0|7x3w0|b5xg0|7k580|ag040|8a2k0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|Infinity"},{id:"America/Santo_Domingo",title:"Santo Domingo",winIndex:16,offsets:[-4.666666666666667,-5,-4,-4.5],offsetIndices:"01213131313131212",untils:"-j6hz1c|hiw29c|67zw0|1dy840|62ha0|cnle0|4h2m0|elyq0|47ta0|ei9e0|4bim0|eek20|4dda0|ecpe0|dkmtg0|1stc0|Infinity"},{id:"America/Sao_Paulo",title:"Sao Paulo",winIndex:35,offsets:[-3.1077777777777778,-3,-2],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-t85jd8|99k8x8|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5k02s0|6onw0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|cls40|64ak0|dfes0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|Infinity"},{id:"America/Scoresbysund",title:"Scoresbysund",winIndex:73,offsets:[-1.4644444444444444,-2,-1,0],offsetIndices:"0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-rvurxk|x8ntpk|902o0|9cvs0|9cyk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"America/Sitka",title:"Sitka",winIndex:55,offsets:[-8,-7,-9],offsetIndices:"01101010101010101010101010101010122020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202",untils:"-ek1w80|1tz2s0|2dyg0|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1leo0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/St_Johns",title:"St Johns",winIndex:38,offsets:[-3.5144444444444445,-2.5144444444444445,-3.5,-2.5,-1.5],offsetIndices:"01010101010101010101010101010101010102323232323232323323232323232323232323232323232323232323232323232323232323232323232323232323232323232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-ris3ck|8bx80|ar440|a2vw0|9tjs0|53980|dkys0|9cyk0|9d440|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|9cyk0|9d440|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|7tmw0|1wfuk|8zzw0|a3480|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|7k580|b5xg0|7k580|b5xg0|1pb260|2dly0|biw40|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|7k580|ag040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a2lo|afuk0|8a840|asqg0|7xc80|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8tec|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Swift_Current",title:"Swift Current",winIndex:37,offsets:[-7.188888888888888,-7,-6],offsetIndices:"012122121212121212121212",untils:"-xkq9d4|6l1h14|a2vw0|c5jxg0|1tz5k0|2dvo0|asys0|8n180|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|3yles0|9cyk0|s36s0|9cyk0|9d440|7x3w0|b5xg0|7k580|5j4lg0|Infinity"},{id:"America/Tegucigalpa",title:"Tegucigalpa",winIndex:67,offsets:[-5.814444444444445,-6,-5],offsetIndices:"01212121",untils:"-pfzh6k|yho0ik|7k580|b5xg0|7k580|96x1g0|4qak0|Infinity"},{id:"America/Thule",title:"Thule",winIndex:36,offsets:[-4.585555555555556,-4,-3],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-rvuj9g|12yzilg|9cyk0|9d440|9cyk0|9q2s0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Thunder_Bay",title:"Thunder Bay",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"0122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-vbavc0|gr8qs0|1tzb40|2dq40|ctmlg0|9cyk0|9d440|9px80|9d440|9cyk0|s36s0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Tijuana",title:"Tijuana",winIndex:11,offsets:[-7.801111111111111,-7,-8],offsetIndices:"012121211212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-p1u1s0|11jrw0|1sns00|1sgdc0|71s40|9cyk0|5iidg0|1q6700|4lfk0|190g40|eluk0|2r4r00|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|84qys0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Toronto",title:"Toronto",winIndex:14,offsets:[-5,-4],offsetIndices:"01010101010101010101010101010101010101010101011101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-qzoxw0|a2vw0|7yx60|aqzy0|9q8c0|7jzo0|bw0c0|6bp80|cedg0|6h980|c8tg0|6h980|bvus0|776k0|biw40|776k0|biw40|776k0|biw40|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|xjeo0|1tzb40|2dq40|asys0|7x3w0|ast80|7x3w0|asys0|7x3w0|asys0|b5rw0|7xf00|ast80|7x9g0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Vancouver",title:"Vancouver",winIndex:11,offsets:[-8,-7],offsetIndices:"0101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-qzopk0|a2vw0|c5jxg0|1tz2s0|2dyg0|asys0|8n180|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Whitehorse",title:"Whitehorse",winIndex:11,offsets:[-9,-8,-7],offsetIndices:"0101011020121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-qzoms0|a2vw0|asys0|882c0|bmiwc0|1tz000|2e180|a7n3w0|9q000|tiyo0|6qp440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Winnipeg",title:"Winnipeg",winIndex:13,offsets:[-6,-5],offsetIndices:"010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-s0s7c0|7k580|tj700|a2vw0|9ok840|6u7w0|2a5hg0|1tz8c0|2dsw0|biw40|7x3w0|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b7s40|7tek0|autg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|7x3w0|1cm2s0|7k580|1cm2s0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Yakutat",title:"Yakutat",winIndex:55,offsets:[-9,-8],offsetIndices:"01101010101010101010101010101010100101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-ek1tg0|1tz000|2e180|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1lbw0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Yellowknife",title:"Yellowknife",winIndex:15,offsets:[0,-7,-6,-5],offsetIndices:"012213121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-i9m2o0|3pk3o0|1tz5k0|2dvo0|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"Antarctica/Casey",title:"Casey",winIndex:33,offsets:[0,8,11],offsetIndices:"012121",untils:"-irxc0|lag4o0|73bo0|uz1o0|60l80|Infinity"},{id:"Antarctica/Davis",title:"Davis",winIndex:6,offsets:[0,7,5],offsetIndices:"01012121",untils:"-6rmdc0|42jdw0|27wgs0|l8uss0|7eqs0|unmk0|60qs0|Infinity"},{id:"Antarctica/DumontDUrville",title:"DumontDUrville",winIndex:50,offsets:[0,10],offsetIndices:"0101",untils:"-c05eo0|2mks80|2i72g0|Infinity"},{id:"Antarctica/Macquarie",title:"Macquarie",winIndex:48,offsets:[10,11,0],offsetIndices:"0102010101010101010101010101010101010101010101010101010101010101010101010101010101010101011",untils:"-rsj4w0|8zzw0|11wqk0|f4kh40|a6p8g0|9d1c0|asw00|6uao0|bvs00|6uao0|bvs00|779c0|bvs00|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Antarctica/Mawson",title:"Mawson",winIndex:17,offsets:[0,6,5],offsetIndices:"012",untils:"-8aelc0|t22y80|Infinity"},{id:"Antarctica/Palmer",title:"Palmer",winIndex:39,offsets:[0,-3,-4,-2],offsetIndices:"0121212121213121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-2lxhc0|31ho0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|46b6s0|8c2s0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|Infinity"},{id:"Antarctica/Rothera",title:"Rothera",winIndex:64,offsets:[0,-3],offsetIndices:"01",untils:"3lxs00|Infinity"},{id:"Antarctica/Syowa",title:"Syowa",winIndex:1,offsets:[0,3],offsetIndices:"01",untils:"-6qsqo0|Infinity"},{id:"Antarctica/Vostok",title:"Vostok",winIndex:21,offsets:[0,6],offsetIndices:"01",untils:"-6aaao0|Infinity"},{id:"Asia/Almaty",title:"Almaty",winIndex:21,offsets:[5.13,5,6,7],offsetIndices:"012323232323232323232321232323232323232323232323232",untils:"-nu1a90|37a0d0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|Infinity"},{id:"Asia/Amman",title:"Amman",winIndex:74,offsets:[2.395555555555555,2,3],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-kcrtbk|m566fk|60l80|awo40|7v980|awo40|7v980|ayis0|9gnw0|9b9g0|7v980|autg0|7v980|3e6840|9et80|9io40|9cyk0|9d440|9cyk0|9d440|9px80|ayis0|7rjw0|ag040|8a2k0|9zc40|8drw0|a31g0|8zzw0|9d440|9cyk0|9d440|8n180|ag040|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|epmo0|4deo0|9o5c0|9ew00|9b6o0|9ew00|9d1c0|9d1c0|9d1c0|asw00|7x6o0|afxc0|8n400|9d1c0|9d1c0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|wel80|51k40|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|Infinity"},{id:"Asia/Anadyr",title:"Anadyr",winIndex:75,offsets:[11.83222222222222,12,13,14,11],offsetIndices:"01232212121212121212121141212121212121212121212121212121212121141",untils:"-nu1sv8|379zj8|qi27w0|9et80|9d440|9ew00|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5xg0|7k800|Infinity"},{id:"Asia/Aqtau",title:"Aqtau",winIndex:17,offsets:[3.351111111111111,4,5,6],offsetIndices:"012323232323232323232123232312121212121212121212",untils:"-nu15b4|379y74|qrh3w0|iruk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity"},{id:"Asia/Aqtobe",title:"Aqtobe",winIndex:17,offsets:[3.811111111111111,4,5,6],offsetIndices:"0123232323232323232321232323232323232323232323232",untils:"-nu16l4|379zh4|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|Infinity"},{id:"Asia/Ashgabat",title:"Ashgabat",winIndex:17,offsets:[3.8922222222222222,4,5,6],offsetIndices:"012323232323232323232322112",untils:"-nu16t8|379zp8|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|1fp40|4bpk0|Infinity"},{id:"Asia/Baghdad",title:"Baghdad",winIndex:76,offsets:[2.96,3,4],offsetIndices:"012121212121212121212121212121212121212121212121212121",untils:"-r50g80|xkn3w0|7v980|9b9g0|9gnw0|9eys0|9et80|9d440|9b9g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9f1k0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|Infinity"},{id:"Asia/Baku",title:"Baku",winIndex:77,offsets:[3.3233333333333333,3,4,5],offsetIndices:"01232323232323232323232221223232323232323232323232323232323232323232",untils:"-nu158c|h4tkwc|ckinw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|7tbs0|1jsc0|9d1c0|9cq80|1twoo0|asw00|7x3w0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Asia/Bangkok",title:"Bangkok",winIndex:6,offsets:[6.7011111111111115,7],offsetIndices:"01",untils:"-pysda4|Infinity"},{id:"Asia/Beirut",title:"Beirut",winIndex:78,offsets:[2,3],offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-pyzew0|aunw0|88dg0|9et80|8yas0|a2vw0|a31g0|7k580|hjqo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|7v980|5lhs40|56yk0|awo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|7v980|autg0|7v980|2wxus0|8n180|a4w40|8n180|a4w40|8n180|a4w40|8n180|bs5g0|71mk0|alk40|86d80|a4w40|8n180|a4w40|8n180|a6qs0|80t80|905g0|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|Infinity"},{id:"Asia/Bishkek",title:"Bishkek",winIndex:21,offsets:[4.973333333333333,5,6,7],offsetIndices:"01232323232323232323232212121212121212121212121212122",untils:"-nu19tc|379zxc|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|7vc00|bkl80|8n180|a31g0|8n180|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9db20|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|73aa0|Infinity"},{id:"Asia/Brunei",title:"Brunei",winIndex:24,offsets:[7.661111111111111,7.5,8],offsetIndices:"012",untils:"-mvofy4|3khxs4|Infinity"},{id:"Asia/Chita",title:"Chita",winIndex:79,offsets:[7.564444444444445,8,9,10],offsetIndices:"0123232323232323232323221232323232323232323232323232323232323232312",untils:"-q4cfog|5hkxgg|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnew0|Infinity"},{id:"Asia/Choibalsan",title:"Choibalsan",winIndex:25,offsets:[7.633333333333334,7,8,10,9],offsetIndices:"0123434343434343434343434343434343434343434343424242424242424242424242424242424242424242424242",untils:"-xmct7c|11sndrc|2qk2k0|9eqg0|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|s6qk0|3nc0c0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|Infinity"},{id:"Asia/Colombo",title:"Colombo",winIndex:80,offsets:[5.325555555555556,5.5,6,6.5],offsetIndices:"01231321",untils:"-xehask|isle6k|cajy0|1mp2u0|qetjw0|7x5a0|4xvqq0|Infinity"},{id:"Asia/Damascus",title:"Damascus",winIndex:81,offsets:[2.42,2,3],offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-q3gk20|5k6q0|8n180|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|k4hk40|7yyk0|awo40|7tek0|b0dg0|7v980|awo40|7tek0|alk40|887w0|awo40|7v980|ayis0|7v980|awo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|6bp80|cg840|6bp80|2eh1g0|8zzw0|9ts40|8zzw0|pvk40|c33w0|7cw40|cjrw0|6zxg0|btuk0|7rpg0|9gnw0|9d440|9cyk0|9et80|9et80|9rxg0|91uk0|92040|9et80|9o840|9et80|9d440|9et80|9eys0|9et80|9b9g0|9gnw0|99es0|9iik0|9d440|9et80|9eys0|9et80|9d440|9et80|9d440|9et80|9d440|9et80|9eys0|9et80|9d440|9et80|9d440|8y580|9q2s0|b5rw0|7x9g0|aunw0|7ig40|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|Infinity"},{id:"Asia/Dhaka",title:"Dhaka",winIndex:20,offsets:[5.888888888888888,6.5,5.5,6,7],offsetIndices:"01213343",untils:"-eqtpow|bmgyw|5lxg0|4qknw0|a63o20|jyevw0|a1400|Infinity"},{id:"Asia/Dili",title:"Dili",winIndex:43,offsets:[8.372222222222222,8,9],offsetIndices:"012212",untils:"-u9s4l8|fqcu98|1vc2o0|fz3pc0|cpz440|Infinity"},{id:"Asia/Dubai",title:"Dubai",winIndex:7,offsets:[3.6866666666666665,4],offsetIndices:"01",untils:"-q3gnko|Infinity"},{id:"Asia/Dushanbe",title:"Dushanbe",winIndex:17,offsets:[4.586666666666667,5,6,7],offsetIndices:"0123232323232323232323221",untils:"-nu18qo|379yuo|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|8c2s0|Infinity"},{id:"Asia/Ho_Chi_Minh",title:"Ho Chi Minh",winIndex:6,offsets:[7.111111111111112,7.108333333333333,7,8,9],offsetIndices:"0123423232",untils:"-x56934|2isioa|gj25iu|15ct80|8so00|tmtk0|4azjw0|2cmao0|8285c0|Infinity"},{id:"Asia/Hong_Kong",title:"Hong Kong",winIndex:19,offsets:[7.611666666666666,8,9],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121",untils:"-y0i2h6|j09kn6|9cyk0|4f2e0|1xyfw0|b6760|bkl80|6udg0|df980|6dpg0|9cyk0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|adzw0|8c2s0|ast80|77c40|biqk0|77c40|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|6udg0|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|8n6s0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9cyk0|1c9440|8a2k0|Infinity"},{id:"Asia/Hovd",title:"Hovd",winIndex:6,offsets:[6.11,6,7,8],offsetIndices:"012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-xmcoz0|11sncb0|2qk2k0|9et80|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|4fio40|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|Infinity"},{id:"Asia/Irkutsk",title:"Irkutsk",winIndex:82,offsets:[6.951388888888888,7,8,9],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-q28gn5|5fh175|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Jakarta",title:"Jakarta",winIndex:6,offsets:[7.12,7.333333333333333,7.5,9,8,7],offsetIndices:"01232425",untils:"-o0bdpc|4lzxc0|4wdzjc|1tu960|1cx860|11jta0|74uc20|Infinity"},{id:"Asia/Jayapura",title:"Jayapura",winIndex:43,offsets:[9.379999999999999,9,9.5],offsetIndices:"0121",untils:"-jebm20|66bqe0|a37vy0|Infinity"},{id:"Asia/Jerusalem",title:"Jerusalem",winIndex:23,offsets:[2.344444444444444,2,3,4],offsetIndices:"01212121212132121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r50eig|bp54yg|19f3w0|7rv00|b02c0|7tk40|b07w0|8jhg0|a8lg0|8jhg0|a8ac0|t9s40|56vs0|35700|9b3w0|9gtg0|8jbw0|7tmw0|a6ig0|biyw0|8a5c0|9d1c0|902o0|7x6o0|e1eg0|4ofw0|dzxo0|4q500|doo40|64iw0|auqo0|7i500|8rfms0|51ek0|9q2s0|6u7w0|50rhg0|7x3w0|cls40|5rbw0|bbhg0|7rjw0|asys0|7k580|c8tg0|6h980|ag040|7x3w0|asys0|8a2k0|asys0|8a2k0|ap9g0|80t80|ap9g0|7nuk0|b2840|80t80|9zc40|9iik0|9kis0|93p80|9mdg0|8qqk0|apf00|7x3w0|biw40|8zx40|9io40|8n180|9kis0|9vh80|8ulg0|9px80|9mdg0|8n180|9tuw0|9tmk0|8wg40|9gnw0|99es0|8qqk0|9zc40|9tmk0|8wg40|9gnw0|99es0|8qqk0|acas0|9gnw0|99es0|93p80|9mdg0|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|Infinity"},{id:"Asia/Kabul",title:"Kabul",winIndex:83,offsets:[4,4.5],offsetIndices:"01",untils:"-d1pkg0|Infinity"},{id:"Asia/Kamchatka",title:"Kamchatka",winIndex:75,offsets:[10.576666666666666,11,12,13],offsetIndices:"01232323232323232323232212323232323232323232323232323232323232212",untils:"-olrupo|3z045o|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5xg0|7k800|Infinity"},{id:"Asia/Karachi",title:"Karachi",winIndex:84,offsets:[4.47,5.5,6.5,5,6],offsetIndices:"012133434343",untils:"-wvpb30|im3zt0|1mn180|33xpg0|a63o20|g72qo0|9cyk0|2y85g0|7v980|8hms0|aaak0|Infinity"},{id:"Asia/Kathmandu",title:"Kathmandu",winIndex:22,offsets:[5.687777777777778,5.5,5.75],offsetIndices:"012",untils:"-q3gt4s|yg2lus|Infinity"},{id:"Asia/Khandyga",title:"Khandyga",winIndex:79,offsets:[9.036944444444446,8,9,10,11],offsetIndices:"01232323232323232323232212323232323232323232323232343434343434343432",untils:"-q4cjrp|5hl1jp|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|3fx40|4h6s0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|8ql00|1mlho0|Infinity"},{id:"Asia/Kolkata",title:"Kolkata",winIndex:18,offsets:[5.888888888888888,6.5,5.5],offsetIndices:"01212",untils:"-eqtpow|bmgyw|5lxg0|1mn180|Infinity"},{id:"Asia/Krasnoyarsk",title:"Krasnoyarsk",winIndex:85,offsets:[6.190555555555556,6,7,8],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-q37l72|5gg8j2|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Kuala_Lumpur",title:"Kuala Lumpur",winIndex:24,offsets:[6.923611111111112,7,7.333333333333333,7.5,9,8],offsetIndices:"01223435",untils:"-xphpwd|eeb94d|1kbr2o|2yhc00|8n3jc|1v2p60|iy3o60|Infinity"},{id:"Asia/Kuching",title:"Kuching",winIndex:24,offsets:[7.355555555555555,7.5,8,8.333333333333334,9],offsetIndices:"01232323232323232422",untils:"-mvof3k|3khwxk|1epvy0|4ohqo|e5a9c|4ohqo|e3flc|4ohqo|e3flc|4ohqo|e3flc|4ohqo|e5a9c|4ohqo|e3flc|4ohqo|3ajlc|1v2qk0|iy3ms0|Infinity"},{id:"Asia/Macau",title:"Macau",winIndex:19,offsets:[7.572222222222222,8,9],offsetIndices:"0121212121212121212121212121212121212121211",untils:"-u9s2d8|pon9v8|bvp80|6udg0|bvp80|6u3q0|bvyy0|77c40|biqk0|772e0|biqk0|8ngi0|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9cue0|9cyk0|9d440|9px80|9d440|9d8a0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9cue0|9cyk0|9d440|9px80|9d440|9cyk0|a04w40|Infinity"},{id:"Asia/Magadan",title:"Magadan",winIndex:75,offsets:[10.053333333333335,10,11,12],offsetIndices:"0123232323232323232323221232323232323232323232323232323232323232312",untils:"-nu1nxc|37a05c|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|s39k0|Infinity"},{id:"Asia/Makassar",title:"Makassar",winIndex:24,offsets:[7.96,8,9],offsetIndices:"00121",untils:"-q3gzg0|6p5hc0|4u87w0|1w02k0|Infinity"},{id:"Asia/Manila",title:"Manila",winIndex:24,offsets:[8,9],offsetIndices:"010101010",untils:"-hb5y80|4qak0|2qidg0|1b2d80|4xf440|442k0|cdqdg0|9et80|Infinity"},{id:"Asia/Nicosia",title:"Nicosia",winIndex:4,offsets:[2.2244444444444444,2,3],offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p4bq6g|rvhxyg|9cyk0|b42s0|7nuk0|8yas0|8zzw0|9q2s0|9et80|9b9g0|9cyk0|9q2s0|8zzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|at4c0|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Asia/Novokuznetsk",title:"Novokuznetsk",winIndex:86,offsets:[5.8133333333333335,6,7,8],offsetIndices:"012323232323232323232322123232323232323232323232323232323232322122",untils:"-nu36tc|37bu5c|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5xg0|7k800|1vbzw0|Infinity"},{id:"Asia/Novosibirsk",title:"Novosibirsk",winIndex:86,offsets:[5.527777777777778,6,7,8],offsetIndices:"0123232323232323232323221232321212121212121212121212121212121212121",untils:"-q4do0s|5hmbcs|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|2vh00|6hn40|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Omsk",title:"Omsk",winIndex:86,offsets:[4.891666666666667,5,6,7],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-q5xmx6|5j6d16|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Oral",title:"Oral",winIndex:17,offsets:[3.4233333333333333,4,5,6],offsetIndices:"01232323232323232121212121212121212121212121212",untils:"-nu15ic|379yec|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9q000|9d1c0|9d1c0|5reo0|cyo00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity"},{id:"Asia/Pontianak",title:"Pontianak",winIndex:6,offsets:[7.288888888888889,7.5,9,8,7],offsetIndices:"001213134",untils:"-w6piww|cse2o0|4tnu2w|1wkei0|1cx860|11jta0|74uc20|cixam0|Infinity"},{id:"Asia/Pyongyang",title:"Pyongyang",winIndex:53,offsets:[8.383333333333333,8.5,9],offsetIndices:"012221",untils:"-w895yc|1yh10c|dfsmm0|44cqo0|10ipmo0|Infinity"},{id:"Asia/Qatar",title:"Qatar",winIndex:5,offsets:[3.4355555555555553,4,3],offsetIndices:"012",untils:"-q3gmvk|rctnrk|Infinity"},{id:"Asia/Qyzylorda",title:"Qyzylorda",winIndex:21,offsets:[4.364444444444445,4,5,6],offsetIndices:"0123232323232323232323232323232323232323232323",untils:"-nu184g|37a10g|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|ohhc0|cyo00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity"},{id:"Asia/Rangoon",title:"Rangoon",winIndex:87,offsets:[6.411111111111111,6.5,9],offsetIndices:"0121",untils:"-q3gv54|bnjp34|1kh520|Infinity"},{id:"Asia/Riyadh",title:"Riyadh",winIndex:5,offsets:[3.1144444444444446,3],offsetIndices:"01",untils:"-bwgbbg|Infinity"},{id:"Asia/Sakhalin",title:"Sakhalin",winIndex:88,offsets:[9.513333333333332,9,11,12,10],offsetIndices:"01123232323232323232323224232323232322424242424242424242424242424242",untils:"-xl87rc|gr8pfc|44elc0|ikvh40|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asys0|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnc40|Infinity"},{id:"Asia/Samarkand",title:"Samarkand",winIndex:17,offsets:[4.464722222222222,4,5,6],offsetIndices:"01233323232323232323232332",untils:"-nu18eh|37a1ah|qi27w0|9et80|9d1c0|9ew00|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|7wyc0|1g300|Infinity"},{id:"Asia/Seoul",title:"Seoul",winIndex:53,offsets:[8.464444444444444,8.5,9,9.5,10],offsetIndices:"01222131313131313124242",untils:"-w8966g|1yh18g|dfsmm0|454io0|4gadc0|l3aq0|6j3w0|d2g40|6u7w0|b5xg0|776k0|biw40|776k0|biw40|776k0|biw40|776k0|grs40|dfqxi0|7x6o0|asw00|7x6o0|Infinity"},{id:"Asia/Shanghai",title:"Shanghai",winIndex:19,offsets:[8,9],offsetIndices:"01010101010101010",untils:"-ffs0w0|66580|8jhg0|a8fw0|n9rc40|6u7w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity"},{id:"Asia/Singapore",title:"Singapore",winIndex:24,offsets:[6.923611111111112,7,7.333333333333333,7.5,9,8],offsetIndices:"012234335",untils:"-xphpwd|eeb94d|1kbr2o|2yhc00|8n3jc|1v2p60|ae0xi0|8k2qo0|Infinity"},{id:"Asia/Srednekolymsk",title:"Srednekolymsk",winIndex:75,offsets:[10.247777777777777,10,11,12],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-nu1ogs|37a0os|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Taipei",title:"Taipei",winIndex:52,offsets:[8,9],offsetIndices:"01010101010101010101010101010101010101010",untils:"-gtzfk0|45slc0|c51c0|75bw0|a31g0|aaak0|9d440|7v980|awo40|7v980|awo40|7v980|awo40|7v980|7tk40|clmk0|7rpg0|b07w0|7rpg0|b07w0|7rpg0|9et80|9eys0|9et80|9d440|9et80|9d440|9et80|9d440|9et80|cjxg0|69uk0|ci2s0|69uk0|6its40|9et80|9d440|9et80|1yf9g0|4qak0|Infinity"},{id:"Asia/Tashkent",title:"Tashkent",winIndex:17,offsets:[4.619722222222222,5,6,7],offsetIndices:"01232323232323232323232221",untils:"-nu18tz|379yxz|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|7x140|1g300|Infinity"},{id:"Asia/Tbilisi",title:"Tbilisi",winIndex:89,offsets:[2.986388888888889,3,4,5],offsetIndices:"0123232323232323232323222121212232323232323232323212",untils:"-nu14an|h4tjyn|ckinw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|gig0|8wlo0|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d1c0|9cyk0|9q2s0|tivw0|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|4ofw0|6hn40|7k800|Infinity"},{id:"Asia/Tehran",title:"Tehran",winIndex:42,offsets:[3.428888888888889,3.5,4,5,4.5],offsetIndices:"00123214141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141",untils:"-s6m6uw|fnolc0|gm3h4w|777y0|b07w0|3pes0|42c20|9cyk0|9gtg0|9kd80|5ja5g0|7avw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|1av440|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|Infinity"},{id:"Asia/Thimphu",title:"Thimphu",winIndex:20,offsets:[5.9766666666666675,5.5,6],offsetIndices:"012",untils:"-bojclo|kxymno|Infinity"},{id:"Asia/Tokyo",title:"Tokyo",winIndex:43,offsets:[9,10],offsetIndices:"0010101010",untils:"-gtzic0|5ivew0|6sd80|ahus0|887w0|cao40|6fek0|cao40|6fek0|Infinity"},{id:"Asia/Ulaanbaatar",title:"Ulaanbaatar",winIndex:25,offsets:[7.125555555555556,7,8,9],offsetIndices:"012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-xmcrsk|11sncck|2qk2k0|9et80|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|4fio40|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|Infinity"},{id:"Asia/Urumqi",title:"Urumqi",winIndex:21,offsets:[5.838888888888889,6],offsetIndices:"01",untils:"-lx5pjw|Infinity"},{id:"Asia/Ust-Nera",title:"Ust-Nera",winIndex:88,offsets:[9.548333333333334,8,9,12,11,10],offsetIndices:"0123434343434343434343445434343434343434343434343434343434343434345",untils:"-q4cl6u|5hl2yu|qi27w0|9eno0|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|8ql00|1mlho0|Infinity"},{id:"Asia/Vladivostok",title:"Vladivostok",winIndex:88,offsets:[8.791944444444445,9,10,11],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-oligf7|3yqvf7|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Yakutsk",title:"Yakutsk",winIndex:79,offsets:[8.649444444444445,8,9,10],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-q4cioy|5hl0gy|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Yekaterinburg",title:"Yekaterinburg",winIndex:90,offsets:[4.0425,3.751388888888889,4,5,6],offsetIndices:"0123434343434343434343433234343434343434343434343434343434343434343",untils:"-rx5hw9|1kybx4|5pfyv5|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Yerevan",title:"Yerevan",winIndex:91,offsets:[2.966666666666667,3,4,5],offsetIndices:"0123232323232323232323222121212122323232323232323232323232323232",untils:"-nu148o|h4tjwo|ckinw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|91rs0|bcc0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|sfzw0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|Infinity"},{id:"Atlantic/Azores",title:"Azores",winIndex:73,offsets:[-1.9088888888888889,-2,-1,0],offsetIndices:"01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323233323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-u9rc14|2bug54|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5qbjo0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9cyk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Atlantic/Bermuda",title:"Bermuda",winIndex:36,offsets:[-4.321666666666667,-4,-3],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-kvj2fu|n4pr3u|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"Atlantic/Canary",title:"Canary",winIndex:26,offsets:[-1.0266666666666666,-1,0,1],offsetIndices:"01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-oytbtc|ctvupc|hhq7s0|905g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Atlantic/Cape_Verde",title:"Cape Verde",winIndex:92,offsets:[-1.5677777777777777,-2,-1],offsetIndices:"01212",untils:"-wvoub8|im43v8|1mn180|fpqwc0|Infinity"},{id:"Atlantic/Faroe",title:"Faroe",winIndex:26,offsets:[-.45111111111111113,0,1],offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-wcehew|127keuw|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Atlantic/Madeira",title:"Madeira",winIndex:26,offsets:[-1.1266666666666665,-1,0,1],offsetIndices:"01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-u9re7c|2bufjc|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5qbjo0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Atlantic/Reykjavik",title:"Reykjavik",winIndex:0,offsets:[-1.4666666666666666,-1,0],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212",untils:"-wcwx9c|4rpd9c|ci2s0|69uk0|du840|4xp80|du840|p7bw0|4w040|9bdzw0|9d6w0|64g40|cyl80|64dc0|clpc0|6hc00|bvs00|6uao0|bvs00|6uao0|bvs00|6uao0|c8qo0|6hc00|c8qo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|Infinity"},{id:"Atlantic/South_Georgia",title:"South Georgia",winIndex:34,offsets:[-2],offsetIndices:"0",untils:"Infinity"},{id:"Atlantic/Stanley",title:"Stanley",winIndex:64,offsets:[-3.856666666666667,-4,-3,-2],offsetIndices:"0121212121212123232212121212121212121212121212121212121212121212121212",untils:"-u63pac|dbvxqc|8zzw0|9q2s0|8zzw0|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|4xp80|l1pus0|7k580|b5rw0|77c40|biqk0|77c40|b5uo0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|biqk0|77c40|biqk0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|biqk0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5xg0|77c40|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|77c40|biqk0|77c40|biqk0|77c40|Infinity"},{id:"Australia/Adelaide",title:"Adelaide",winIndex:31,offsets:[9.5,10.5],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|6hc00|c8qo0|7k800|b5uo0|6uao0|c8qo0|779c0|bitc0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Australia/Brisbane",title:"Brisbane",winIndex:30,offsets:[10,11],offsetIndices:"01010101010101010",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|97zuo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|Infinity"},{id:"Australia/Broken_Hill",title:"Broken Hill",winIndex:31,offsets:[9.5,10.5],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Australia/Currie",title:"Currie",winIndex:32,offsets:[10,11],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rsj4w0|8zzw0|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Australia/Darwin",title:"Darwin",winIndex:29,offsets:[9.5,10.5],offsetIndices:"010101010",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|Infinity"},{id:"Australia/Hobart",title:"Hobart",winIndex:32,offsets:[10,11],offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rsj4w0|8zzw0|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|c9tms0|9d1c0|asw00|6uao0|bvs00|6uao0|bvs00|779c0|bvs00|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Australia/Lindeman",title:"Lindeman",winIndex:30,offsets:[10,11],offsetIndices:"010101010101010101010",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|97zuo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|Infinity"},{id:"Australia/Melbourne",title:"Melbourne",winIndex:28,offsets:[10,11],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|b5uo0|7x6o0|bitc0|779c0|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Australia/Perth",title:"Perth",winIndex:33,offsets:[8,9],offsetIndices:"0101010101010101010",untils:"-rnsric|49s2c|cxfms0|4h180|9d440|9cyk0|ghf1g0|6hc00|4ir9c0|6hc00|40r400|5eg00|7p9hc0|5reo0|b5uo0|7x6o0|asw00|7x6o0|Infinity"},{id:"Australia/Sydney",title:"Sydney",winIndex:28,offsets:[10,11],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"CST6CDT",title:"CST6CDT",winIndex:13,offsets:[-6,-5],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"EST5EDT",title:"EST5EDT",winIndex:14,offsets:[-5,-4],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0ev80|ast80|7x9g0|ast80|bmtus0|1tzb40|2dq40|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"Etc/GMT",title:"GMT",winIndex:41,link:150},{id:"Etc/GMT+1",title:"GMT+1",winIndex:92,offsets:[-1],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+10",title:"GMT+10",winIndex:57,offsets:[-10],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+11",title:"GMT+11",winIndex:49,offsets:[-11],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+12",title:"GMT+12",winIndex:93,offsets:[-12],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+2",title:"GMT+2",winIndex:34,offsets:[-2],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+3",title:"GMT+3",winIndex:64,offsets:[-3],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+4",title:"GMT+4",winIndex:16,offsets:[-4],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+5",title:"GMT+5",winIndex:10,offsets:[-5],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+6",title:"GMT+6",winIndex:67,offsets:[-6],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+7",title:"GMT+7",winIndex:56,offsets:[-7],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-1",title:"GMT-1",winIndex:3,offsets:[1],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-10",title:"GMT-10",winIndex:50,offsets:[10],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-11",title:"GMT-11",winIndex:48,offsets:[11],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-12",title:"GMT-12",winIndex:44,offsets:[12],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-13",title:"GMT-13",winIndex:94,offsets:[13],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-14",title:"GMT-14",winIndex:95,offsets:[14],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-2",title:"GMT-2",winIndex:2,offsets:[2],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-3",title:"GMT-3",winIndex:1,offsets:[3],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-4",title:"GMT-4",winIndex:7,offsets:[4],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-5",title:"GMT-5",winIndex:17,offsets:[5],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-6",title:"GMT-6",winIndex:21,offsets:[6],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-7",title:"GMT-7",winIndex:6,offsets:[7],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-8",title:"GMT-8",winIndex:24,offsets:[8],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-9",title:"GMT-9",winIndex:43,offsets:[9],offsetIndices:"0",untils:"Infinity"},{id:"Etc/UCT",title:"UCT",winIndex:41,offsets:[0],offsetIndices:"0",untils:"Infinity"},{id:"Etc/UTC",title:"UTC",winIndex:41,offsets:[0],offsetIndices:"0",untils:"Infinity"},{id:"Europe/Amsterdam",title:"Amsterdam",winIndex:27,offsets:[.3255555555555556,1.3255555555555556,1.3333333333333333,.3333333333333333,2,1],offsetIndices:"010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545",untils:"-s0dvkk|7v980|a51o0|7x6o0|a2yo0|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9b6o0|a2yo0|c51c0|6l1c0|902o0|9q000|ci000|682o0|bgyo0|79400|bitc0|779c0|bmio0|7gio0|bbeo0|7eo00|bd9c0|7ctc0|bf400|7ayo0|bvs00|6uao0|bko00|7idc0|b9k00|7gio0|bbeo0|7eo00|bf400|7ayo0|btxc0|21uc0|4uaz8|bitc0|779c0|bko00|7idc0|bd3s0|1aarpc|7k800|9q000|9d1c0|9d1c0|9d1c0|8l9c0|ggp1c0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Andorra",title:"Andorra",winIndex:27,offsets:[0,1,2],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-c4xmo0|k3ctg0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Athens",title:"Athens",winIndex:4,offsets:[1.581111111111111,2,3,1],offsetIndices:"012121313121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-rvv0cg|8bjasg|2vmk0|4hiw40|16ik0|scog0|7lx40|9o2k0|9eys0|4atzw0|6djw0|bplus0|bq800|71uw0|9d1c0|902o0|91xc0|9o5c0|905g0|9qgo0|9akg0|9iik0|99980|9dcg0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Belgrade",title:"Belgrade",winIndex:60,offsets:[1,2],offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Berlin",title:"Berlin",winIndex:27,offsets:[1,2,3],offsetIndices:"01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|2o7w0|6bs00|2txg0|7k800|91xc0|9b9g0|1sqk0|2inw0|51k40|a2yo0|8n400|9q000|902o0|fx91c0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Brussels",title:"Brussels",winIndex:62,offsets:[0,1,2],offsetIndices:"0121212101010101010101010101010101010101010101010101212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-ss5uo0|rrx80|7vc00|a4yw0|7x6o0|asw00|7x6o0|2wh40|5omo0|b5uo0|6uao0|cyo00|7ayo0|bko00|7rmo0|a2yo0|a2yo0|8n400|902o0|9q000|9d1c0|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|90b00|a2yo0|8n400|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|4deo0|1a36k0|7k800|9q000|9d1c0|8l9c0|a4tc0|8l9c0|clpc0|79400|fwu800|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Bucharest",title:"Bucharest",winIndex:4,offsets:[1.74,2,3],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-k29zi0|fj8m0|6w5c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|kp0dc0|6h980|9q000|905g0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9cvs0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9cyk0|9d440|9cyk0|9q2s0|ast80|7xhs0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Budapest",title:"Budapest",winIndex:60,offsets:[1,2],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-s0e080|7ves0|a4yw0|7x6o0|a31g0|8n180|autg0|bgvw0|b5jeg0|th9k0|7k800|9q000|9d1c0|9d1c0|awd00|9ew00|7q0c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|a4tc0|9q000|1va2g0|6u7w0|bxpg0|6u7w0|cjxg0|64ak0|cluw0|64g40|br3ek0|905g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Chisinau",title:"Chisinau",winIndex:4,offsets:[1.9166666666666667,1.74,2,3,1,4],offsetIndices:"012323232323232323232424235353535353535353535323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-r2p1bo|70f1to|fj8m0|6w5c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|geqo0|ha580|oc8g0|7k800|9q000|9d1c0|7cl00|j3pbw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|25p80|7kdk0|9d1c0|9d1c0|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|ast80|7xf00|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Copenhagen",title:"Copenhagen",winIndex:62,offsets:[1,2],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-rzo2w0|75bw0|cbs2w0|1aco80|7k800|9q000|9d1c0|9d1c0|9d1c0|6y000|dbmo0|6bs00|clpc0|51hc0|e1k00|4oio0|giutc0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Dublin",title:"Dublin",winIndex:26,offsets:[-.42250000000000004,.5775,0,1],offsetIndices:"01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-rzcmlr|6uao0|9pytr|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|3g8580|8a840|bvp80|8n6s0|a2yo0|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Gibraltar",title:"Gibraltar",winIndex:27,offsets:[0,1,2],offsetIndices:"010101010101010101010101010101010101010101010101012121212121010121010101010101010101012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|d0tp80|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Helsinki",title:"Helsinki",winIndex:59,offsets:[1.6636111111111112,2,3],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-peghyd|ax3tqd|9gqo0|k31s80|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Istanbul",title:"Istanbul",winIndex:54,offsets:[1.948888888888889,2,3,4],offsetIndices:"012121212121212121212121212121212121212121212121212121232323232322121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-ux9xew|2wvx6w|7v980|1tjc40|aunw0|88dg0|9et80|8yas0|a2vw0|tzpg0|79180|awo40|7v980|7p25g0|4zjw0|2xms0|f4d80|9vms0|b07w0|19f9g0|9px80|c5440|69uk0|acas0|8n180|a31g0|8n180|9q2s0|8zzw0|a8lg0|8ufw0|a31g0|8ovw0|5mbes0|4dbw0|u3es0|75bw0|2wxus0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|c8w80|7x9g0|7k800|b6080|7jww0|ast80|b9ms0|7tek0|7x9g0|a2vw0|8n6s0|a2vw0|iruk0|8yj40|9rjk0|8lkg0|a4i80|8lkg0|a4i80|f2o40|38l80|t4840|8a5c0|9f4c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9cyk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7kdk0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7m2o0|b4000|7k800|b5uo0|7x6o0|asw00|7z1c0|ar1c0|7x6o0|bitc0|779c0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Kaliningrad",title:"Kaliningrad",winIndex:96,offsets:[1,2,3,4],offsetIndices:"0101010101010121232323232323232322121212121212121212121212121212121212121212121",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|4od40|62fw0|9kd80|351g0|ie8nw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Europe/Kiev",title:"Kiev",winIndex:59,offsets:[2.0344444444444445,2,3,1,4],offsetIndices:"0121313242424242424242424242121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-nu11ng|37a03g|5vd6k0|kzv40|7k800|9q000|1oyg0|jipzs0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|51ek0|neqw0|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9dcg0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Lisbon",title:"Lisbon",winIndex:26,offsets:[-.6125,0,1,2],offsetIndices:"012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121212121212121212121212121212121212122323232212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-u9rfmr|2bue6r|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5gyl40|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/London",title:"London",winIndex:26,offsets:[0,1,2],offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Luxembourg",title:"Luxembourg",winIndex:27,offsets:[.41000000000000003,1,2,0],offsetIndices:"0121212131313131313131313131313131313131313131313131212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-y89550|68l290|75hg0|ast80|796s0|at1k0|7x6o0|3lh40|4zmo0|b6300|6u2c0|cytk0|7at40|bktk0|7rh40|a31g0|a2vw0|8n9k0|8zx40|9q2s0|9et80|9b9g0|a2vw0|8n6s0|9px80|905g0|a2vw0|905g0|a2vw0|8ncc0|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|42ao0|1aeak0|7k800|9q000|9d1c0|8n400|a2yo0|8l9c0|clpc0|79400|fwu800|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Madrid",title:"Madrid",winIndex:62,offsets:[0,1,2],offsetIndices:"01010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-rhcqs0|7x6o0|9tpc0|8y800|9b6o0|9gqo0|2d2yo0|8so00|st1c0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|3zb9c0|6uao0|8so00|9xeo0|a2yo0|902o0|8a5c0|13yt80|69xc0|bq800|8oyo0|a1400|95mo0|9kg00|8n6s0|a2vw0|8oyo0|1ck5c0|7tk40|ct07w0|905g0|a2vw0|8n6s0|8zzw0|9d440|9px80|905g0|9rrw0|9b9g0|9d6w0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Malta",title:"Malta",winIndex:27,offsets:[1,2],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-ryotg0|66800|9d1c0|9d1c0|8a5c0|asw00|7k800|b5uo0|8n400|9d1c0|aau000|18r9k0|7k800|9q000|9d1c0|9d1c0|9d1c0|8j940|9f1k0|afxc0|89zs0|afxc0|7kdk0|b5uo0|979rs0|6h980|cls40|64ak0|cls40|64ak0|cyqs0|64ak0|cls40|64ak0|c8tg0|6hc00|clpc0|6h980|9b9g0|9d1c0|ahs00|7m2o0|b45k0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|a4w40|8y580|9q2s0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Minsk",title:"Minsk",winIndex:96,offsets:[1.8333333333333333,2,3,1,4],offsetIndices:"012131312424242424242424242212121212121212121212121212121212121212122",untils:"-nu113c|379zjc|5r1mk0|pbf40|7k800|9q000|9d1c0|4oac0|j6dmk0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|sg2o0|9d440|9cvs0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbx40|Infinity"},{id:"Europe/Monaco",title:"Monaco",winIndex:27,offsets:[.15583333333333332,0,1,2],offsetIndices:"01212121212121212121212121212121212121212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-uozn3l|2qx1nl|5luo0|8y800|a4tc0|7vc00|auqo0|7idc0|b7pc0|6sg00|cyo00|7ayo0|bko00|7rmo0|a2yo0|bvs00|6uao0|902o0|9q000|9d1c0|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51po0|mdbo0|7x3w0|7x9g0|c8w80|7k800|9q000|9d1c0|9nzs0|922w0|8l9c0|fxlx80|9cyk0|9q5k0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Moscow",title:"Moscow",winIndex:58,offsets:[2.504722222222222,2.5219444444444443,3.5219444444444443,4.521944444444444,4,3,5,2],offsetIndices:"012132345464575454545454545454545455754545454545454545454545454545454545454545",untils:"-rx5dmh|ipzua|97hc0|7yyk0|5i840|d9p80|1jpk0|2d2k7|s8o00|1qvw0|8fpc0|1jms0|is040|412as0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Europe/Oslo",title:"Oslo",winIndex:27,offsets:[1,2],offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-rzayo0|6qfs0|cgcqo0|15tsc0|7k800|9q000|9d1c0|9d1c0|9d1c0|9d1c0|70q5c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|b5uo0|7k800|7law00|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Paris",title:"Paris",winIndex:62,offsets:[.15583333333333332,0,1,2],offsetIndices:"0121212121212121212121212121212121212121212121212123232332323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-uozn1x|2qx1lx|5luo0|8y800|a4tc0|7vc00|auqo0|7idc0|b7pc0|6sg00|cyo00|7ayo0|bko00|7rmo0|a2yo0|bvs00|6uao0|902o0|9q000|9d1c0|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51po0|5p8w0|18rcc0|7k800|9q000|9d1c0|7efo0|29k40|922w0|8l9c0|fxlx80|9cyk0|9q5k0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Prague",title:"Prague",winIndex:60,offsets:[1,2],offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|8l9c0|afxc0|bitc0|8oyo0|7vc00|a2yo0|8n400|a2yo0|8n400|9o5c0|91xc0|fe6000|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Riga",title:"Riga",winIndex:59,offsets:[1.6094444444444445,2.6094444444444442,2,3,1,4],offsetIndices:"010102324242435353535353535353323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-qznlky|7x6o0|a4tc0|2mg00|3myns0|7fhlky|gz180|p5v40|7k800|9q000|9d1c0|9d1c0|k7s0|j14ns0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|asw00|7x6o0|asw00|7x6o0|b5uo0|qaao0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Rome",title:"Rome",winIndex:27,offsets:[1,2],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-ryotg0|66800|9d1c0|9d1c0|8a5c0|asw00|7k800|b5uo0|8n400|9d1c0|aau000|18r9k0|7k800|9q000|9d1c0|8l3s0|a4yw0|8j940|9f1k0|afxc0|89zs0|afxc0|7kdk0|b5uo0|979rs0|6h980|cls40|64ak0|cls40|64ak0|cyqs0|64ak0|cls40|64ak0|c8tg0|6hc00|clpc0|6h980|cls40|64ak0|c8tg0|6h980|cls40|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|c8qo0|6hc00|9q5k0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Samara",title:"Samara",winIndex:58,offsets:[3.338888888888889,3,4,5],offsetIndices:"012232323232323232322121112323232323232323232323232323232323232212",untils:"-qcx7pw|5q63dw|2egvw0|o3lc00|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d440|12w00|89zs0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5xg0|7k800|Infinity"},{id:"Europe/Simferopol",title:"Simferopol",winIndex:58,offsets:[2.2666666666666666,2,3,1,4],offsetIndices:"012131312424242424242424242121212424242212121212121212121212121212121212142",untils:"-nu12ao|37a0qo|5xiyk0|iu340|7k800|9q000|9d1c0|iac0|jajmk0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|eeio0|wrjw0|9cyk0|9d440|9cyk0|9d440|1sqk0|7k580|9d440|9cyk0|9q2s0|at4c0|7x9g0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x3w0|asqg0|Infinity"},{id:"Europe/Sofia",title:"Sofia",winIndex:59,offsets:[2,1,3],offsetIndices:"01010102020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020",untils:"-e6dzw0|7k800|9q000|9d1c0|9d1c0|9d440|hqq240|9eys0|9o2k0|92040|9o2k0|90880|9pug0|90b00|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|ast80|7xhs0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Stockholm",title:"Stockholm",winIndex:27,offsets:[1,2],offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-rzo2w0|75hg0|x5bew0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Tallinn",title:"Tallinn",winIndex:59,offsets:[1.65,1,2,3,4],offsetIndices:"012102321212343434343434343433232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-r3exx0|3re10|7x6o0|et6g0|ygov0|a1zgd0|ktx80|l94g0|7k800|9q000|9d1c0|8uac0|j27mk0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asys0|7x6o0|b5uo0|19dc00|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Tirane",title:"Tirane",winIndex:60,offsets:[1.3222222222222222,1,2],offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-t85vo8|dt2gw8|18pew0|7k800|m800|g7ot40|7rjw0|autg0|7x3w0|ayis0|7x3w0|b5xg0|7k580|b42s0|7lzw0|b42s0|7lzw0|b42s0|7x3w0|ahus0|7x3w0|b5xg0|7x3w0|a4w40|8jbw0|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Uzhgorod",title:"Uzhgorod",winIndex:59,offsets:[1,2,3,4],offsetIndices:"010101023232323232323232320121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-fizzw0|1cm000|7k800|9q000|9d1c0|al900|cnms0|int140|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|eeio0|e1sc0|iprk0|9cyk0|9d440|9cyk0|9d440|9cyk0|9dcg0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Vienna",title:"Vienna",winIndex:27,offsets:[1,2],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|t6000|8a5c0|a7a800|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|iio0|ivmo0|902o0|9d1c0|9d1c0|a2yo0|8n400|gfyyg0|8zzw0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Vilnius",title:"Vilnius",winIndex:59,offsets:[1.4,1.5933333333333333,1,2,3,4],offsetIndices:"012324323234545454545454545443434343434343434332334343434343434343434343434343434343434343434343434343434343434343434343",untils:"-rns980|1g224o|e75nc|4kqk0|acbs40|gpp40|pits0|7k800|9q000|9d1c0|65zo0|j4vx80|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x9g0|asw00|7x6o0|b5uo0|1s3eo0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Volgograd",title:"Volgograd",winIndex:58,offsets:[2.961111111111111,3,4,5],offsetIndices:"011223232323232323221212122121212121212121212121212121212121212121",untils:"-q3cw84|2qrjw4|2pu800|gdt980|a48yo0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9d1c0|9q000|9d1c0|ipzw0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Europe/Warsaw",title:"Warsaw",winIndex:51,offsets:[1.4,1,2,3],offsetIndices:"012121223212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-se9yk0|dvyc0|7ves0|a4yw0|7x6o0|asw00|7x6o0|aunw0|7x6o0|1evbs0|9fcwc0|18cao0|7k800|9q000|9d1c0|9gnw0|an980|9kd80|8fs40|922w0|ar1c0|7x6o0|a2yo0|8n400|9q000|902o0|4013w0|64dc0|9d1c0|9d1c0|clpc0|6hc00|9d1c0|9d1c0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|clpc0|64dc0|6j4tc0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Zaporozhye",title:"Zaporozhye",winIndex:59,offsets:[2.3333333333333335,2,3,1,4],offsetIndices:"01213132424242424242424242422121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-nu12hc|37a0xc|5u1180|mc0g0|7k800|9q000|12qg0|jjc7s0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9cvs0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9dcg0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Zurich",title:"Zurich",winIndex:27,offsets:[1,2],offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-eyh6o0|7x6o0|asw00|7x6o0|k2zus0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Indian/Chagos",title:"Chagos",winIndex:21,offsets:[4.827777777777778,5,6],offsetIndices:"012",untils:"-wvpc2s|1ag64us|Infinity"},{id:"Indian/Christmas",title:"Christmas",winIndex:6,offsets:[7],offsetIndices:"0",untils:"Infinity"},{id:"Indian/Cocos",title:"Cocos",winIndex:87,offsets:[6.5],offsetIndices:"0",untils:"Infinity"},{id:"Indian/Kerguelen",title:"Kerguelen",winIndex:17,offsets:[0,5],offsetIndices:"01",untils:"-afrs00|Infinity"},{id:"Indian/Mahe",title:"Mahe",winIndex:97,offsets:[3.6966666666666668,4],offsetIndices:"01",untils:"-x6pjlo|Infinity"},{id:"Indian/Maldives",title:"Maldives",winIndex:17,offsets:[4.9,5],offsetIndices:"01",untils:"-57x6y0|Infinity"},{id:"Indian/Mauritius",title:"Mauritius",winIndex:97,offsets:[3.8333333333333335,4,5],offsetIndices:"012121",untils:"-wvp9bc|13jnu7c|8bx80|dd0wc0|7x3w0|Infinity"},{id:"Indian/Reunion",title:"Reunion",winIndex:97,offsets:[3.697777777777778,4],offsetIndices:"01",untils:"-uks29s|Infinity"},{id:"MST7MDT",title:"MST7MDT",winIndex:15,offsets:[-7,-6],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"Pacific/Apia",title:"Apia",winIndex:98,offsets:[-11.448888888888888,-11.5,-11,-10,14,13],offsetIndices:"01232345454545454545454545454545454545454545454545454545454",untils:"-usiiv4|kcrmt4|vp3la0|9odo0|902o0|4zbk0|4qog0|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity"},{id:"Pacific/Auckland",title:"Auckland",winIndex:8,offsets:[11.5,12.5,12,13],offsetIndices:"01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323",untils:"-m01p20|64ak0|biw40|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|8a3y0|afyq0|8a3y0|afyq0|afvy0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|b5ta0|7k9e0|b5ta0|7x820|hsl2m0|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity"},{id:"Pacific/Chuuk",title:"Chuuk",winIndex:50,offsets:[10],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Efate",title:"Efate",winIndex:48,offsets:[11.22111111111111,11,12],offsetIndices:"0121212121212121212121",untils:"-u964i4|11f4ba4|9cyk0|awo40|7tek0|9q2s0|8zzw0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|64ak0|e1ms0|4ofw0|Infinity"},{id:"Pacific/Enderbury",title:"Enderbury",winIndex:94,offsets:[-12,-11,13],offsetIndices:"012",untils:"535io0|7ykl80|Infinity"},{id:"Pacific/Fakaofo",title:"Fakaofo",winIndex:94,offsets:[-11,13],offsetIndices:"01",untils:"lx0jw0|Infinity"},{id:"Pacific/Fiji",title:"Fiji",winIndex:99,offsets:[11.928888888888888,12,13],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121",untils:"-sa2x4w|17bs00w|64dc0|cyo00|5reo0|53a5c0|64dc0|asw00|6uao0|bvs00|4oio0|e1k00|4oio0|eeio0|4bh80|erk40|3ylc0|erhc0|3ylc0|f4g00|3lmo0|f4g00|3ylc0|erhc0|3ylc0|erhc0|3ylc0|erhc0|3ylc0|f4g00|3lmo0|f4g00|3lmo0|f4g00|3ylc0|erhc0|3ylc0|erhc0|3ylc0|erhc0|3ylc0|f4g00|3lmo0|f4g00|3ylc0|erhc0|3ylc0|erhc0|3ylc0|erhc0|3ylc0|f4g00|3lmo0|f4g00|3lmo0|f4g00|3ylc0|erhc0|3ylc0|erhc0|3ylc0|erhc0|3ylc0|Infinity"},{id:"Pacific/Funafuti",title:"Funafuti",winIndex:44,offsets:[12],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Galapagos",title:"Galapagos",winIndex:67,offsets:[-5.973333333333333,-5,-6],offsetIndices:"012",untils:"-kcr62o|spdryo|Infinity"},{id:"Pacific/Guadalcanal",title:"Guadalcanal",winIndex:48,offsets:[10.663333333333332,11],offsetIndices:"01",untils:"-tvowac|Infinity"},{id:"Pacific/Guam",title:"Guam",winIndex:50,offsets:[10],offsetIndices:"00",untils:"g5z2w0|Infinity"},{id:"Pacific/Honolulu",title:"Honolulu",winIndex:57,offsets:[-10.5,-9.5,-10],offsetIndices:"010102",untils:"-j50la0|13l00|4jvb00|1wd180|votg0|Infinity"},{id:"Pacific/Kiritimati",title:"Kiritimati",winIndex:95,offsets:[-10.666666666666666,-10,14],offsetIndices:"012",untils:"535eyo|7ykm5c|Infinity"},{id:"Pacific/Kosrae",title:"Kosrae",winIndex:48,offsets:[11,12],offsetIndices:"010",untils:"-4r7w0|f9l3w0|Infinity"},{id:"Pacific/Kwajalein",title:"Kwajalein",winIndex:44,offsets:[11,-12,12],offsetIndices:"012",untils:"-4r7w0|cgtbw0|Infinity"},{id:"Pacific/Majuro",title:"Majuro",winIndex:44,offsets:[11,12],offsetIndices:"01",untils:"-4r7w0|Infinity"},{id:"Pacific/Midway",title:"Midway",winIndex:49,link:530},{id:"Pacific/Nauru",title:"Nauru",winIndex:44,offsets:[11.127777777777776,11.5,9,12],offsetIndices:"01213",untils:"-pjxiws|b1kxms|19h8a0|i43qe0|Infinity"},{id:"Pacific/Niue",title:"Niue",winIndex:49,offsets:[-11.333333333333334,-11.5,-11],offsetIndices:"012",untils:"-9wyz6o|ehcj4o|Infinity"},{id:"Pacific/Noumea",title:"Noumea",winIndex:48,offsets:[11.096666666666666,11,12],offsetIndices:"01212121",untils:"-u9645o|ye0ixo|4dbw0|ecqs0|4f6k0|99p700|4oio0|Infinity"},{id:"Pacific/Pago_Pago",title:"Pago Pago",winIndex:49,offsets:[-11.379999999999999,-11],offsetIndices:"0111",untils:"-usij20|tcsey0|8p4800|Infinity"},{id:"Pacific/Palau",title:"Palau",winIndex:43,offsets:[9],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Pohnpei",title:"Pohnpei",winIndex:48,offsets:[11],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Port_Moresby",title:"Port Moresby",winIndex:50,offsets:[10],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Rarotonga",title:"Rarotonga",winIndex:57,offsets:[-10.5,-9.5,-10],offsetIndices:"012121212121212121212121212",untils:"4mj960|5rbw0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|Infinity"},{id:"Pacific/Saipan",title:"Saipan",winIndex:50,link:520},{id:"Pacific/Tahiti",title:"Tahiti",winIndex:57,offsets:[-9.97111111111111,-10],offsetIndices:"01",untils:"-tvnayw|Infinity"},{id:"Pacific/Tarawa",title:"Tarawa",winIndex:44,offsets:[12],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Tongatapu",title:"Tongatapu",winIndex:94,offsets:[12.333333333333334,13,14],offsetIndices:"01212121",untils:"-f4vrlc|uo2edc|8fpc0|bvs00|4bh80|eelg0|4bh80|Infinity"},{id:"Pacific/Wake",title:"Wake",winIndex:44,offsets:[12],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Wallis",title:"Wallis",winIndex:44,offsets:[12],offsetIndices:"0",untils:"Infinity"},{id:"PST8PDT",title:"PST8PDT",winIndex:11,offsets:[-8,-7],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0emw0|ast80|7x9g0|ast80|bmtus0|1tz2s0|2dyg0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"Australia/Eucla",title:"Eucla",winIndex:100,offsets:[8.591111111111111,8.75,9.75],offsetIndices:"01212121212121212121",untils:"-12nxx74|b053ls|49s2c|cxfms0|4h180|9d440|9cyk0|ghf1g0|6hc00|4ir9c0|6hc00|40r400|5eg00|7p9hc0|5reo0|b5uo0|7x6o0|asw00|7x6o0|Infinity"},{id:"Australia/Lord_Howe",title:"Eucla",winIndex:101,offsets:[10.605555555555556,10,10.5,11.5,11],offsetIndices:"01232323232424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424",untils:"-133j6sk|18x8f0k|c8uu0|6u7w0|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|777y0|b5w20|7k6m0|biuq0|7k6m0|biuq0|777y0|biuq0|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|7x820|asum0|b5w20|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|b5w20|7x5a0|asxe0|7k6m0|b5w20|8a3y0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9pym0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|Infinity"}]}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.DesktopTooltipStrategy=void 0;var s=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=i(n(2)),c=n(375),d=i(n(164)),h=i(n(26)),p=i(n(55)),f=i(n(5)),g=i(n(86)),_=function(){function e(t,n){r(this,e),this.scheduler=t,this.target=n}return l(e,[{key:"onListItemRendered",value:function(e){}},{key:"onListItemClick",value:function(e){}},{key:"getItemListTemplateName",value:function(){return"appointmentTooltipTemplate"}},{key:"getItemListDefaultTemplateName",value:function(){return"appointmentTooltip"}},{key:"createFunctionTemplate",value:function(e,t,n,i){return(0,c.createDefaultTooltipTemplate)(e,t,n,i)}}]),e}(),m=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,_),l(t,[{key:"onListItemClick",value:function(e){this.scheduler.showAppointmentPopup(e.itemData.data,!1,e.itemData.currentData)}},{key:"canRaiseClickEvent",value:function(){return!1}}]),t}(),v=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,_),l(t,[{key:"onListItemRendered",value:function(e){var t=this;if(this.scheduler._allowDragging()){var n=e.itemData.data;f.default.on(e.itemElement,p.default.start,function(e){return t._onAppointmentDragStart(n,n.settings,e)}),f.default.on(e.itemElement,p.default.move,function(e){return t._onAppointmentDragMove(e,n.allDay)}),f.default.on(e.itemElement,p.default.end,function(){return t._onAppointmentDragEnd(n)})}}},{key:"canRaiseClickEvent",value:function(){return!0}},{key:"createFunctionTemplate",value:function(e,n,i,o){return this._isEmptyDropDownAppointmentTemplate()?s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createFunctionTemplate",this).call(this,e,n,i,o):new g.default(function(t){return e.render({model:n,index:o,container:t.container})})}},{key:"getItemListTemplateName",value:function(){return this._isEmptyDropDownAppointmentTemplate()?"appointmentTooltipTemplate":"dropDownAppointmentTemplate"}},{key:"getItemListDefaultTemplateName",value:function(){return this._isEmptyDropDownAppointmentTemplate()?"appointmentTooltip":"dropDownAppointment"}},{key:"_isEmptyDropDownAppointmentTemplate",value:function(){return"dropDownAppointment"===this.scheduler.option("dropDownAppointmentTemplate")}},{key:"_onAppointmentDragStart",value:function(e,t,n){var i=this.scheduler.getAppointmentsInstance(),o=i.option("items").length;t[0].isCompact=!1,t[0].virtual=!1,i._currentAppointmentSettings=t,i._renderItem(o,{itemData:e,settings:t});var a=i._findItemElementByItem(e);a.length>0&&this._prepareDragItem(a,t,n),this.scheduler.hideAppointmentTooltip()}},{key:"_onAppointmentDragMove",value:function(e,t){var n={left:this._startPosition.left+e.offset.x,top:this._startPosition.top+e.offset.y};this.scheduler.getAppointmentsInstance().notifyObserver("correctAppointmentCoordinates",{coordinates:n,allDay:t,isFixedContainer:!1,callback:function(e){e&&(n=e)}}),h.default.move(this._$draggedItem,n)}},{key:"_onAppointmentDragEnd",value:function(e){f.default.trigger(this._$draggedItem,p.default.end),this._removeFakeAppointmentIfDragEndOnCurrentCell(e)}},{key:"_removeFakeAppointmentIfDragEndOnCurrentCell",value:function(e){var t=this.scheduler.getAppointmentsInstance();this.scheduler._workSpace.getDroppableCellIndex()===this.scheduler._workSpace.getCellIndexByCoordinates(this._startPosition)&&t._clearItem({itemData:e})}},{key:"_prepareDragItem",value:function(e,t,n){var i=this._getDragContainerOffset();this._$draggedItem=e.length>1?this._getRecurrencePart(e,t[0].startDate):e[0];var o=this._$draggedItem.hasClass("dx-scheduler-all-day-appointment")?this.scheduler._workSpace.getAllDayHeight():this.scheduler._workSpace.getScrollableScrollTop();this._startPosition={top:n.pageY-i.top-this._$draggedItem.height()/2+o,left:n.pageX-i.left-this._$draggedItem.width()/2},h.default.move(this._$draggedItem,this._startPosition),f.default.trigger(this._$draggedItem,p.default.start)}},{key:"_getDragContainerOffset",value:function(){return this.scheduler._$element.find(".dx-scheduler-date-table-scrollable .dx-scrollable-wrapper").offset()}},{key:"_getRecurrencePart",value:function(e,t){for(var n=void 0,i=0;i<e.length;i++){var o=e[i];o.data("dxAppointmentStartDate").getTime()===t.getTime()&&(n=o)}return n}}]),t}();t.DesktopTooltipStrategy=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,c.TooltipStrategyBase),l(t,[{key:"_showCore",value:function(e,n,i){this.behavior=this._createBehavior(i,e),s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_showCore",this).call(this,e,n,i),this.tooltip.option("position",this._getTooltipPosition(n)),this.list.focus(),this.list.option("focusedElement",null)}},{key:"_createBehavior",value:function(e,t){return e?new m(this.scheduler,t):new v(this.scheduler,t)}},{key:"_getTooltipPosition",value:function(e){return{my:"bottom",at:"top",of:this.target,collision:"fit flipfit",boundary:this._getBoundary(e),offset:this.scheduler.option("_appointmentTooltipOffset")}}},{key:"_getBoundary",value:function(e){return this._isAppointmentInAllDayPanel(e[0].data)?this.scheduler.$element():this.scheduler.getWorkSpaceScrollableContainer()}},{key:"_isAppointmentInAllDayPanel",value:function(e){var t=this.scheduler._workSpace;return this.scheduler.appointmentTakesAllDay(e)&&t.supportAllDayRow()&&t.option("showAllDayPanel")}},{key:"_createFunctionTemplate",value:function(e,t,n,i){return this.behavior.createFunctionTemplate(e,t,n,i)}},{key:"_getItemListTemplateName",value:function(){return this.behavior.getItemListTemplateName()}},{key:"_getItemListDefaultTemplateName",value:function(){return this.behavior.getItemListDefaultTemplateName()}},{key:"_createTooltip",value:function(e,t){return this.$tooltip=this._createTooltipElement(),this.scheduler._createComponent(this.$tooltip,d.default,{target:e,maxHeight:200,rtlEnabled:this.scheduler.option("rtlEnabled"),contentTemplate:function(){return t.$element()}})}},{key:"_createTooltipElement",value:function(){return(0,u.default)("<div>").appendTo(this.scheduler.$element()).addClass("dx-scheduler-appointment-tooltip-wrapper")}},{key:"_onListItemRendered",value:function(e){this.behavior.onListItemRendered(e)}},{key:"_canRaiseClickEvent",value:function(){return this.behavior.canRaiseClickEvent()}}]),t}()},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.MobileTooltipStrategy=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=i(n(58)),r=n(375),s=i(n(2)),l=n(7),u={show:{type:"slide",duration:300,from:{position:{my:"top",at:"bottom",of:(0,l.getWindow)()}},to:{position:{my:"center",at:"center",of:(0,l.getWindow)()}}},hide:{type:"slide",duration:300,to:{position:{my:"top",at:"bottom",of:(0,l.getWindow)()}},from:{position:{my:"center",at:"center",of:(0,l.getWindow)()}}}},c={my:"bottom",at:"bottom",of:(0,l.getWindow)()};t.MobileTooltipStrategy=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.TooltipStrategyBase),o(t,[{key:"_onListItemClick",value:function(e){(function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_onListItemClick",this).call(this,e),this.scheduler.showAppointmentPopup(e.itemData.data,!1,e.itemData.currentData)}},{key:"_shouldUseTarget",value:function(){return!1}},{key:"_onShowing",value:function(){this.tooltip.option("height","auto");var e=this.list.$element().outerHeight();this.tooltip.option("height",e>250?250:"auto")}},{key:"_createTooltip",value:function(e,t){var n=this,i=(0,s.default)("<div>").addClass("dx-scheduler-overlay-panel").appendTo(this.scheduler.$element());return this.scheduler._createComponent(i,a.default,{shading:!1,position:c,animation:u,target:this.scheduler.$element(),container:this.scheduler.$element(),closeOnOutsideClick:!0,width:"100%",height:"auto",onShowing:function(){return n._onShowing()},contentTemplate:function(){return t.$element()}})}}]),t}()},function(e,t,n){var i=n(2),o=n(1),a=n(4).noop,r=n(1).isDefined,s=n(0).extend,l=n(3).each,u=n(13).inArray,c=n(32).camelize,d=n(8),h=n(17),p=n(118),f=n(693),g=n(195),_=n(197),m=n(21),v=n(15),y={day:"day",week:"week",workWeek:"workWeek",month:"month",timelineDay:"day",timelineWeek:"week",timelineWorkWeek:"workWeek",timelineMonth:"month",agenda:"agenda"},b=["day","week","workWeek","month","timelineDay","timelineWeek","timelineWorkWeek","timelineMonth","agenda"],x=h.inherit({_getDefaultOptions:function(){return s(this.callBase(),{views:[],intervalCount:1,currentView:"day",firstDayOfWeek:void 0,currentDate:new Date,min:void 0,max:void 0,useDropDownViewSwitcher:!1,_dropDownButtonIcon:"overlay"})},_setOptionsByReference:function(){this.callBase(),s(this._optionsByReference,{currentView:!0})},_optionChanged:function(e){var t=e.value;switch(e.name){case"views":this._validateViews(),this._viewSwitcher.option({items:t,selectedItem:this.option("currentView")});break;case"customizeDateNavigatorText":this._navigator.option(e.name,t);break;case"currentView":this._viewSwitcher.option("selectedItem",t),this._navigator.option("step",y[this._getCurrentViewType()]),this._changeViewSwitcherLabelText();break;case"currentDate":this._navigator.option("date",t);break;case"displayedDate":this._navigator.option("displayedDate",t);break;case"min":case"max":case"firstDayOfWeek":case"intervalCount":this._navigator.option(e.name,t);break;case"tabIndex":case"focusStateEnabled":this._viewSwitcher.option(e.name,t),this._navigator.option(e.name,t),this.callBase(e);break;case"useDropDownViewSwitcher":this._refreshViewSwitcher();break;default:this.callBase(e)}},_init:function(){this.callBase(),this.$element().addClass("dx-scheduler-header")},_initMarkup:function(){this.callBase(),this._renderNavigator(),this._renderViewSwitcher()},_renderNavigator:function(){this._navigator=this._createComponent("<div>",f,{min:this.option("min"),max:this.option("max"),intervalCount:this.option("intervalCount"),date:this.option("currentDate"),step:y[this._getCurrentViewType()],firstDayOfWeek:this.option("firstDayOfWeek"),tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled"),observer:this.option("observer"),customizeDateNavigatorText:this.option("customizeDateNavigatorText")}),this._navigator.$element().appendTo(this.$element())},_renderViewSwitcher:function(){this._validateViews();var e=i("<div>").addClass("dx-scheduler-view-switcher").appendTo(this.$element());this.option("useDropDownViewSwitcher")?this._renderViewSwitcherDropDownMenu(e):this._renderViewSwitcherTabs(e)},_validateViews:function(){var e=this.option("views");l(e,function(e,t){var n=o.isObject(t)&&t.type?t.type:t;-1===u(n,b)&&m.log("W0008",n)})},_getCurrentViewType:function(){var e=this.option("currentView");return e.type||e},_renderViewSwitcherTabs:function(e){var t=this;e.addClass(_.getTabsExpandedClass),this._viewSwitcher=this._createComponent(e,_,{selectionRequired:!0,scrollingEnabled:!0,onSelectionChanged:this._updateCurrentView.bind(this),items:this.option("views"),itemTemplate:function(e){return i("<span>").addClass("dx-tab-text").text(t._getItemText(e))},selectedItem:this.option("currentView"),tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled")})},_getItemText:function(e){return e.name||v.format("dxScheduler-switcher"+c(e.type||e,!0))},_refreshViewSwitcher:function(){this._viewSwitcher._dispose(),this._viewSwitcher.$element().remove(),delete this._viewSwitcher,this._removeViewSwitcherLabel(),this._renderViewSwitcher()},_removeViewSwitcherLabel:function(){r(this._$viewSwitcherLabel)&&(this._$viewSwitcherLabel.detach(),this._$viewSwitcherLabel.remove(),delete this._$viewSwitcherLabel)},_renderViewSwitcherDropDownMenu:function(e){var t=this;this._$viewSwitcherLabel=i("<div>").addClass("dx-scheduler-view-switcher-label").appendTo(this.$element()),this._changeViewSwitcherLabelText(),this._viewSwitcher=this._createComponent(e,g,{onItemClick:this._updateCurrentView.bind(this),buttonIcon:this.option("_dropDownButtonIcon"),items:this.option("views"),itemTemplate:function(e){return i("<span>").addClass("dx-dropdownmenu-item-text").text(t._getItemText(e))}})},_changeViewSwitcherLabelText:function(){if(r(this._$viewSwitcherLabel)){var e=this.option("currentView"),t=this._getItemText(e);this._$viewSwitcherLabel.text(t)}},_getCurrentViewName:function(e){return o.isObject(e)?e.name||e.type:e},_updateCurrentView:function(e){var t=e.itemData||e.component.option("selectedItem"),n=this._getCurrentViewName(t);this.notifyObserver("currentViewUpdated",n)},_renderFocusTarget:a}).include(p);d("dxSchedulerHeader",x),e.exports=x},function(e,t,n){var i=n(2),o=n(4).noop,a=n(1).isNumeric,r=n(18),s=n(22),l=n(1),u=n(0).extend,c=n(8),d=n(16),h=n(17),p=n(34),f=n(243),g=n(138),_=n(46),m=n(118),v=n(33),y=n(1).isDefined,b=function(e){return function(t){var n=v.getMonthNames(e?"abbreviated":"wide")[t.getMonth()];return[v.format(t,"day"),n].join(" ")}},x=function(e){return v.getMonthNames("abbreviated")[e.getMonth()]+" "+v.format(e,"year")},w=function e(t,n,i){var o=b(t);return function(a){if(n>1){var r=new Date(a),s=i;r.setDate(a.getDate()+s-1);var l=a.getMonth()!==r.getMonth(),u=l||t;return v.format(a,l?b(u):"d")+"-"+v.format(r,e(u))}return[o(a),v.format(a,"year")].join(" ")}},C=function(e,t,n){var i=this.option("firstDayOfWeek"),o=y(i)?i:function(e){return e?1:v.firstDayOfWeekIndex()}(t);0===o&&n&&(o=1);var a=s.getFirstWeekDate(e,o);n&&(a=s.normalizeDateByWeek(a,e)),i>=6&&n&&a.setDate(a.getDate()+(7-i+1));var r=new Date(a),l=this.option("intervalCount");return t=t||6,(r=new Date(r.setDate(r.getDate()+(l>1?7*(l-1)+t:t)))).getDay()%6==0&&n&&r.setDate(r.getDate()+2),{text:k.call(this,r,a),startDate:a,endDate:r}},k=function(e,t){var n,i,o=t.getMonth()!==e.getMonth(),a=t.getFullYear()!==e.getFullYear(),r=o||this.option("_useShortDateFormat");return a?(i=v.format(t,w(!0)),n=v.format(e,w(!0))):(i=v.format(t,o?b(r):"d"),n=v.format(e,w(r))),i+"-"+n},S=function(e){var t,n=new Date(e),i=new Date(n);if(this.option("intervalCount")>1){i.setMonth(i.getMonth()+this.option("intervalCount")-1);var o=n.getYear()===i.getYear(),a=x(i);t=(o?v.getMonthNames("abbreviated")[n.getMonth()]:x(n))+"-"+a}else t=v.format(e,"monthandyear");return{text:t,startDate:n,endDate:i}},I=function(e,t){return new Date(e[this.setter](e[this.getter]()+t))},T=h.inherit({_getDefaultOptions:function(){return u(this.callBase(),{date:new Date,displayedDate:void 0,step:"day",intervalCount:1,min:void 0,max:void 0,firstDayOfWeek:void 0,_useShortDateFormat:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return!d.real().generic||d.isSimulator()},options:{_useShortDateFormat:!0}}])},_optionChanged:function(e){switch(e.name){case"step":case"date":case"intervalCount":case"displayedDate":this._updateButtonsState(),this._renderCaption(),this._setCalendarOption("value",this.option("date"));break;case"min":case"max":this._updateButtonsState(),this._setCalendarOption(e.name,e.value);break;case"firstDayOfWeek":this._setCalendarOption(e.name,e.value);break;case"customizeDateNavigatorText":this._renderCaption();break;case"tabIndex":case"focusStateEnabled":this._next.option(e.name,e.value),this._caption.option(e.name,e.value),this._prev.option(e.name,e.value),this._setCalendarOption(e.name,e.value),this.callBase(e);break;case"_useShortDateFormat":break;default:this.callBase(e)}},_init:function(){this.callBase(),this.$element().addClass("dx-scheduler-navigator"),this._initButtons()},_initButtons:function(){var e=i("<div>").addClass("dx-scheduler-navigator-next");this._next=this._createComponent(e,p,{icon:"chevronnext",onClick:this._updateCurrentDate.bind(this,1),focusStateEnabled:this.option("focusStateEnabled"),tabIndex:this.option("tabIndex"),integrationOptions:{}});var t=i("<div>").addClass("dx-scheduler-navigator-caption");this._caption=this._createComponent(t,p,{focusStateEnabled:this.option("focusStateEnabled"),tabIndex:this.option("tabIndex"),integrationOptions:{}});var n=i("<div>").addClass("dx-scheduler-navigator-previous");this._prev=this._createComponent(n,p,{icon:"chevronprev",onClick:this._updateCurrentDate.bind(this,-1),focusStateEnabled:this.option("focusStateEnabled"),tabIndex:this.option("tabIndex"),integrationOptions:{}}),this.setAria("label","Next period",e),this.setAria("label","Previous period",n),this._updateButtonsState(),this.$element().append(n,t,e)},_updateButtonsState:function(){var e=this.option("min"),t=this.option("max");e=e?s.trimTime(e):e,t=t?s.trimTime(t):t,this._prev.option("disabled",e&&!isNaN(e.getTime())&&this._getNextDate(-1)<e),this._next.option("disabled",t&&!isNaN(t.getTime())&&this._getNextDate(1)>t)},_updateCurrentDate:function(e){var t=this._getNextDate(e);s.normalizeDate(t,this.option("min"),this.option("max")),this.notifyObserver("currentDateUpdated",t)},_getNextDate:function(e){var t=this._getConfig(),n=t.duration*e;return t.getDate(new Date(this.option("date")),n)},_renderFocusTarget:o,_initMarkup:function(){this.callBase(),this._renderCaption()},_render:function(){this.callBase(),this._renderPopover(),this._renderCaptionKeys()},_renderPopover:function(){var e=d.current().generic?g:_,t=i("<div>").addClass("dx-scheduler-navigator-calendar-popover");this._popover=this._createComponent(t,e,{onContentReady:this._popoverContentReadyHandler.bind(this),defaultOptionsRules:[{device:function(){return!d.current().generic},options:{fullScreen:!0,showCloseButton:!1,toolbarItems:[{shortcut:"cancel"}]}},{device:function(){return d.current().generic},options:{target:this._caption.$element()}}]}),this._popover.$element().appendTo(this.$element())},_popoverContentReadyHandler:function(){this._calendar=this._createComponent(i("<div>"),f,this._calendarOptions()),this._calendar.$element().addClass("dx-scheduler-navigator-calendar"),this._popover.$content().append(this._calendar.$element())},_calendarOptions:function(){return{min:this.option("min"),max:this.option("max"),firstDayOfWeek:this.option("firstDayOfWeek"),value:this.option("date"),focusStateEnabled:this.option("focusStateEnabled"),onValueChanged:function(e){this.option("visible")&&(this.notifyObserver("currentDateUpdated",e.value),this._popover.hide())}.bind(this),hasFocus:function(){return!0},tabIndex:null,_keyboardProcessor:this._calendarKeyboardProcessor}},_renderCaption:function(){var e=this.option("displayedDate")||this.option("date"),t=this._getConfig().getCaption.call(this,e),n=this.option("customizeDateNavigatorText"),i=l.isFunction(n)?n(t):t.text;this._caption.option({text:i,onClick:function(){this._popover.toggle()}.bind(this)})},_renderCaptionKeys:function(){if(this.option("focusStateEnabled")&&!this.option("disabled")){this._calendarKeyboardProcessor=this._caption._keyboardProcessor.attachChildProcessor(),this._setCalendarOption("_keyboardProcessor",this._calendarKeyboardProcessor);var e=this,t=function(){return!e._popover.$content().is(":hidden")||void e._popover.show()};this._caption.registerKeyHandler("enter",t),this._caption.registerKeyHandler("space",t),this._caption.registerKeyHandler("tab",function(){e._popover.hide()})}},_setCalendarOption:function(e,t){this._calendar&&this._calendar.option(e,t)},_getConfig:function(){var e=this.option("step"),t=function(e){var t;switch(e){case"day":return{duration:1*this.option("intervalCount"),setter:"setDate",getter:"getDate",getDate:I,getCaption:function(e){var t=w(!1,this.option("intervalCount"),this._getConfig().duration);return{text:v.format(e,t),startDate:e,endDate:e}}};case"week":return{duration:7*this.option("intervalCount"),setter:"setDate",getter:"getDate",getDate:I,getCaption:C};case"workWeek":return{duration:7*this.option("intervalCount"),setter:"setDate",getter:"getDate",getDate:I,getCaption:function(e){return C.call(this,e,4,!0)}};case"month":return{duration:1*this.option("intervalCount"),setter:"setMonth",getter:"getMonth",getDate:function(e,t){var n=e.getDate();e.setDate(1),e=I.call(this,e,t);var i=s.getLastMonthDay(e);return e.setDate(n<i?n:i),e},getCaption:S};case"agenda":return t=this.invoke("getAgendaDuration"),{duration:t=a(t)&&t>0?t:7,setter:"setDate",getter:"getDate",getDate:I,getCaption:function(e){var n,i=w(this.option("_useShortDateFormat")),o=new Date(e),a=new Date(e);return t>1?(a.setDate(a.getDate()+t-1),n=k.call(this,a,e)):n=v.format(e,i),{text:n,startDate:o,endDate:a}}}}}.call(this,e);if(!t)throw r.Error("E1033",e);return t}}).include(m);c("dxSchedulerNavigator",T),e.exports=T},function(e,t,n){var i=n(8),o=n(201),a=o.inherit({_getElementClass:function(){return"dx-scheduler-work-space-day"},_getRowCount:function(){return this._getCellCountInDay()},_getCellCount:function(){return this.option("intervalCount")},_setFirstViewDate:function(){this._firstViewDate=this._getViewStartByOptions(),this._setStartDayHour(this._firstViewDate)},_getDateByIndex:function(e){if(1===this.option("intervalCount"))return this._firstViewDate;var t=new Date(this._firstViewDate);return t.setDate(this._firstViewDate.getDate()+e),t},_getFormat:function(){return this._formatWeekdayAndDay},_renderDateHeader:function(){if(1!==this.option("intervalCount"))return this.callBase()},_getRightCell:function(e){return e?this._$focusedCell:this.callBase(e)},_getLeftCell:function(e){return e?this._$focusedCell:this.callBase(e)}});i("dxSchedulerWorkSpaceDay",a),e.exports=a},function(e,t,n){var i=n(377),o=i.inherit({prepareCellIndexes:function(e,t,n){return this._workSpace.isGroupedByDate()?{rowIndex:e.rowIndex,cellIndex:e.cellIndex*this._workSpace._getGroupCount()+t}:{rowIndex:e.rowIndex,cellIndex:e.cellIndex+t*this._workSpace._getCellCount()}},calculateCellIndex:function(e,t){return t%=this._workSpace._getCellCount(),this._workSpace._getRowCount()*t+e},getGroupIndex:function(e,t){var n=this._workSpace.isGroupedByDate(),i=this._workSpace._getGroupCount();return n?t%i:Math.floor(t/this._workSpace._getCellCount())},calculateHeaderCellRepeatCount:function(){return this._workSpace._getGroupCount()||1},insertAllDayRowsIntoDateTable:function(){return!1},getTotalCellCount:function(e){return e=e||1,this._workSpace._getCellCount()*e},getTotalRowCount:function(){return this._workSpace._getRowCount()},addAdditionalGroupCellClasses:function(e,t){return e=this._addLastGroupCellClass(e,t),this._addFirstGroupCellClass(e,t)},_addLastGroupCellClass:function(e,t){if(this._workSpace.option("groupByDate")){if(t%this._workSpace._getGroupCount()==0)return e+" "+this.getLastGroupCellClass()}else if(t%this._workSpace._getCellCount()==0)return e+" "+this.getLastGroupCellClass();return e},_addFirstGroupCellClass:function(e,t){return(t-1)%this._workSpace._getCellCount()==0?e+" "+this.getFirstGroupCellClass():e},getHorizontalMax:function(e){return this._workSpace.getMaxAllowedPosition()[e]},getVerticalMax:function(e){return this._workSpace.getMaxAllowedVerticalPosition()[0]},calculateTimeCellRepeatCount:function(){return 1},getWorkSpaceMinWidth:function(){return this._workSpace.$element().get(0).getBoundingClientRect().width-this._workSpace.getTimePanelWidth()},getAllDayOffset:function(){return this._workSpace.getAllDayHeight()},getAllDayTableHeight:function(){return this._workSpace._$allDayTable.get(0).getBoundingClientRect().height||0},getGroupCountAttr:function(e,t){return{attr:"dx-group-row-count",count:t&&t.elements.length}},getLeftOffset:function(){return this._workSpace.getTimePanelWidth()},getGroupBoundsOffset:function(e,t,n,i){var o,a,r,s;return this._workSpace.isGroupedByDate()?(a=0,r=t.eq(a).offset().left-n/2,s=t.eq(e*this._workSpace._getGroupCount()-1).offset().left+n+n/2):(o=this._workSpace.getCellIndexByCoordinates(i),a=(i.groupIndex||Math.floor(o/e))*e,r=t.eq(a).offset().left-n/2,s=t.eq(a+e-1).offset().left+n+n/2),{left:r,right:s,top:0,bottom:0}},shiftIndicator:function(e,t,n,i){var o=this._workSpace._getCellCount()*this._workSpace.getRoundedCellWidth(i-1,0)*i+this._workSpace.getIndicatorOffset(i)+i,a=n?n-o:o;e.css("left",a),e.css("top",t)},getShaderOffset:function(e,t){var n=this._workSpace._getCellCount()*this._workSpace.getRoundedCellWidth(e-1)*e;return this._workSpace.option("rtlEnabled")?this._workSpace._dateTableScrollable.$content().get(0).getBoundingClientRect().width-n-this._workSpace.getTimePanelWidth()-t:n},getShaderTopOffset:function(e){return-this.getShaderMaxHeight()*(e>0?1:0)},getShaderHeight:function(){return this._workSpace.getIndicationHeight()},getShaderMaxHeight:function(){return this._workSpace._dateTableScrollable.$content().get(0).getBoundingClientRect().height},getShaderWidth:function(e){return this._workSpace.getIndicationWidth(e)},getScrollableScrollTop:function(e){return e?0:this._workSpace.getScrollable().scrollTop()}});e.exports=o},function(e,t,n){var i=n(377),o=i.inherit({prepareCellIndexes:function(e,t,n){var i=e.rowIndex+t*this._workSpace._getRowCount();return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(i+=t,n||(i+=1)),{rowIndex:i,cellIndex:e.cellIndex}},calculateCellIndex:function(e,t){return e%=this._workSpace._getRowCount(),this._workSpace._getRowCount()*t+e},getGroupIndex:function(e,t){return Math.floor(e/this._workSpace._getRowCount())},calculateHeaderCellRepeatCount:function(){return 1},insertAllDayRowsIntoDateTable:function(){return this._workSpace.option("showAllDayPanel")},getTotalCellCount:function(e){return this._workSpace._getCellCount()},getTotalRowCount:function(){return this._workSpace._getRowCount()*this._workSpace._getGroupCount()},addAdditionalGroupCellClasses:function(e,t,n,i){return e=this._addLastGroupCellClass(e,n+1),this._addFirstGroupCellClass(e,n+1)},_addLastGroupCellClass:function(e,t){return t%this._workSpace._getRowCount()==0?e+" "+this.getLastGroupCellClass():e},_addFirstGroupCellClass:function(e,t){return(t-1)%this._workSpace._getRowCount()==0?e+" "+this.getFirstGroupCellClass():e},getHorizontalMax:function(e){return this._workSpace.getMaxAllowedPosition()[0]},getVerticalMax:function(e){return this._workSpace.getMaxAllowedVerticalPosition()[e]+this._getOffsetByAllDayPanel(e)},_getOffsetByAllDayPanel:function(e){var t=0;return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(t=this._workSpace.getCellHeight()*(e+1)),t},_getGroupTop:function(e){return this._workSpace.getMaxAllowedVerticalPosition()[e]-this._workSpace.getCellHeight()*this._workSpace._getRowCount()},calculateTimeCellRepeatCount:function(){return this._workSpace._getGroupCount()||1},getWorkSpaceMinWidth:function(){var e=this._workSpace._getWorkSpaceWidth(),t=this._workSpace.$element().get(0).getBoundingClientRect().width-this._workSpace.getTimePanelWidth()-this._workSpace.getGroupTableWidth();return e<t&&(e=t),e},getAllDayOffset:function(){return 0},getAllDayTableHeight:function(){return 0},getGroupCountAttr:function(){return{attr:"dx-group-column-count",count:this._workSpace.option("groups")&&this._workSpace.option("groups").length}},getLeftOffset:function(){return this._workSpace.getTimePanelWidth()+this._workSpace.getGroupTableWidth()},getGroupBoundsOffset:function(e,t,n,i){var o=i.groupIndex,a=t.eq(0).offset().left,r=t.eq(e-1).offset().left+n,s=this._workSpace._calculateDayDuration()/this._workSpace.option("hoursInterval")*this._workSpace.getCellHeight(),l=this.getScrollableScrollTop(),u=o*s+this._workSpace._$thead.get(0).getBoundingClientRect().height+this._workSpace.invoke("getHeaderHeight")+10-l;return this._workSpace.option("showAllDayPanel")&&this._workSpace.supportAllDayRow()&&(u+=this._workSpace.getCellHeight()*(o+1)),{left:a,right:r,top:u,bottom:u+s}},shiftIndicator:function(e,t,n,i){var o=this._workSpace.getIndicatorOffset(0),a=this._workSpace.option("crossScrollingEnabled")?0:this._workSpace.getGroupTableWidth(),r=n?n-o:o,s=this._workSpace._getRowCount()*this._workSpace.getCellHeight()*i;this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(s+=this._workSpace.getAllDayHeight()*(i+1)),e.css("left",r+a),e.css("top",t+s)},getShaderOffset:function(e,t){var n=this._workSpace.option("crossScrollingEnabled")?0:this._workSpace.getGroupTableWidth();return this._workSpace.option("rtlEnabled")?this._$container.get(0).getBoundingClientRect().width-n-this._workSpace.getWorkSpaceLeftOffset()-t:n},getShaderTopOffset:function(e){return 0},getShaderHeight:function(){var e=this._workSpace.getIndicationHeight();return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(e+=this._workSpace.getCellHeight()),e},getShaderMaxHeight:function(){var e=this._workSpace._getRowCount()*this._workSpace.getCellHeight();return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(e+=this._workSpace.getCellHeight()),e},getShaderWidth:function(e){return this._workSpace.getIndicationWidth(0)},getScrollableScrollTop:function(e){return this._workSpace.getScrollable().scrollTop()}});e.exports=o},function(e,t,n){var i=n(2),o=n(378),a="dx-scheduler-date-time-shader-all-day",r=o.inherit({_renderShader:function(){var e=this._getShaderHeight(),t=this._getShaderMaxHeight(),n=!1;if(e>t&&(e=t,n=!0),e>=0){this._$shader.height(e);var i=this._workspace._getGroupCount()||1;if(n)this._renderTopShader(this._$shader,e,this._$container.get(0).getBoundingClientRect().width,0),this._renderAllDayShader(this._$container.get(0).getBoundingClientRect().width,0);else for(var o=0;o<i;o++){var a=this._getShaderWidth(o);this._renderTopShader(this._$shader,e,a,o),this._renderBottomShader(this._$shader,t-e,a,o),this._renderAllDayShader(a,o)}}},_renderTopShader:function(e,t,n,o){this._$topShader=i("<div>").addClass("dx-scheduler-date-time-shader-top"),n&&this._$topShader.width(n)&&this._$topShader.height(t),this._$topShader.css("marginTop",this._getShaderTopOffset(o)),this._$topShader.css("left",this._getShaderOffset(o,n)),e.append(this._$topShader)},_renderBottomShader:function(e,t,n,o){this._$bottomShader=i("<div>").addClass("dx-scheduler-date-time-shader-bottom"),this._$bottomShader.width(n-this._workspace.getCellWidth())&&this._$bottomShader.height(t),this._$bottomShader.css("left",this._getShaderOffset(o,n-this._workspace.getCellWidth())),e.append(this._$bottomShader)},_renderAllDayShader:function(e,t){this._workspace.option("showAllDayPanel")&&(this._$allDayIndicator=i("<div>").addClass(a),this._$allDayIndicator.height(this._workspace.getAllDayHeight()),this._$allDayIndicator.width(e),this._$allDayIndicator.css("left",this._getShaderOffset(t,e)),this._workspace._$allDayPanel.prepend(this._$allDayIndicator))},_getShaderOffset:function(e,t){return this._workspace.getGroupedStrategy().getShaderOffset(e,t)},_getShaderTopOffset:function(e){return this._workspace.getGroupedStrategy().getShaderTopOffset(e)},_getShaderHeight:function(e,t){return this._workspace.getGroupedStrategy().getShaderHeight()},_getShaderMaxHeight:function(e,t){return this._workspace.getGroupedStrategy().getShaderMaxHeight()},_getShaderWidth:function(e){return this._workspace.getGroupedStrategy().getShaderWidth(e)},clean:function(){this.callBase(),this._workspace&&this._workspace._$allDayPanel&&this._workspace._$allDayPanel.find("."+a).remove()}});e.exports=r},function(e,t,n){var i=n(8),o=n(22),a=o.dateToMilliseconds,r=n(379),s=n(33),l=[1,2,3,4,5],u=0,c=r.inherit({_getElementClass:function(){return"dx-scheduler-work-space-work-week"},_getCellCount:function(){return 5*this.option("intervalCount")},_firstDayOfWeek:function(){return this.option("firstDayOfWeek")||1},_getDateByIndex:function(e){var t=new Date(this._firstViewDate);e%this._getCellCount()==0&&(u=0),t.setDate(this._firstViewDate.getDate()+e+u);for(var n=t.getDay();-1===l.indexOf(n);)t.setDate(t.getDate()+1),n=t.getDay(),u++;return t},_renderView:function(){u=0,this.callBase()},_getWeekendsCount:function(e){return 2*Math.floor(e/7)},_setFirstViewDate:function(){this._firstViewDate=o.getFirstWeekDate(this._getViewStartByOptions(),this._firstDayOfWeek()||s.firstDayOfWeekIndex()),this._firstViewDate=o.normalizeDateByWeek(this._firstViewDate,this._getViewStartByOptions()),this._setStartDayHour(this._firstViewDate)},_getOffsetByCount:function(e){var t=this._getCellCount();e-=t*Math.floor(e/t);var n=Math.floor(e/5);return a("day")*n*2}});i("dxSchedulerWorkSpaceWorkWeek",c),e.exports=c},function(e,t,n){var i=n(2),o=n(4).noop,a=n(8),r=n(201),s=n(22),l=n(33),u=s.dateToMilliseconds,c=r.inherit({_toggleFixedScrollableClass:function(){this._dateTableScrollable.$content().toggleClass("dx-scheduler-scrollable-fixed-content",!this._isWorkSpaceWithCount()&&!this._isVerticalGroupedWorkSpace())},_getElementClass:function(){return"dx-scheduler-work-space-month"},_getRowCount:function(){return this._isWorkSpaceWithCount()?4*this.option("intervalCount")+2:6},_getCellCount:function(){return 7},_getDateByIndex:function(e){var t=new Date(this._firstViewDate);return t.setDate(this._firstViewDate.getDate()+e),t},_getFormat:function(){return this._formatWeekday},_calculateCellIndex:function(e,t){return this._isVerticalGroupedWorkSpace()?e%=this._getRowCount():t%=this._getCellCount(),e*this._getCellCount()+t},_getInterval:function(){return 864e5},_getIntervalBetween:function(e){var t=this.getStartViewDate(),n=s.getTimezonesDifference(t,e);return e.getTime()-(t.getTime()-36e5*this.option("startDayHour"))-n},_getDateByCellIndexes:function(e,t){var n=this.callBase(e,t);return this._setStartDayHour(n),n},_calculateHiddenInterval:function(){return 0},_insertAllDayRowsIntoDateTable:function(){return!1},_getCellCoordinatesByIndex:function(e){var t=Math.floor(e/this._getCellCount());return{rowIndex:t,cellIndex:e-this._getCellCount()*t}},_createWorkSpaceElements:function(){this._isVerticalGroupedWorkSpace()?this._createWorkSpaceScrollableElements():this.callBase()},_needCreateCrossScrolling:function(){return this.option("crossScrollingEnabled")||this._isVerticalGroupedWorkSpace()},_renderTimePanel:o,_renderAllDayPanel:o,_getTableAllDay:o,_toggleAllDayVisibility:o,_changeAllDayVisibility:o,_setFirstViewDate:function(){var e=s.getFirstMonthDate(this._getViewStartByOptions());this._firstViewDate=s.getFirstWeekDate(e,this.option("firstDayOfWeek")||l.firstDayOfWeekIndex()),this._setStartDayHour(this._firstViewDate);var t=this._getViewStartByOptions();this._minVisibleDate=new Date(t.setDate(1)),this._maxVisibleDate=new Date(new Date(t.setMonth(t.getMonth()+this.option("intervalCount"))).setDate(0))},_getViewStartByOptions:function(){if(this.option("startDate")){var e=this._getStartViewDate(),t=this.option("currentDate"),n=e.getTime()<=t.getTime()?1:-1,i=new Date(new Date(this._getStartViewDate().setMonth(this._getStartViewDate().getMonth()+n*this.option("intervalCount"))));for(n>0&&i.setDate(0);!this._dateInRange(t,e,i,n);)e=new Date(i),n>0&&(e.setDate(1),e.setMonth(e.getMonth()+1)),i=new Date(new Date(i.setMonth(i.getMonth()+n*this.option("intervalCount"))));return n>0?e:i}return new Date(this.option("currentDate").getTime())},_getStartViewDate:function(){return s.getFirstMonthDate(this.option("startDate"))},_renderTableBody:function(e){e.getCellText=this._getCellText.bind(this),this.callBase(e)},_getCellText:function(e,t){this.option("groupByDate")?t=Math.floor(t/this._getGroupCount()):t%=this._getCellCount();var n=this._getDate(e,t);return this._isWorkSpaceWithCount()&&this._isFirstDayOfMonth(n)?this._formatMonthAndDay(n):l.format(n,"dd")},_formatMonthAndDay:function(e){return[l.getMonthNames("abbreviated")[e.getMonth()],l.format(e,"day")].join(" ")},_getDate:function(e,t){var n=new Date(this._firstViewDate),i=this._getRowCount();return n.setDate(n.getDate()+e%i*7+t),n},_updateIndex:function(e){return e},_prepareCellData:function(e,t,n){var o=this.callBase(e,t,n);return i(n).toggleClass("dx-scheduler-date-table-current-date",this._isCurrentDate(o.startDate)).toggleClass("dx-scheduler-date-table-first-of-month",this._isFirstDayOfMonth(o.startDate)).toggleClass("dx-scheduler-date-table-other-month",this._isOtherMonth(o.startDate)),o},_isCurrentDate:function(e){var t=new Date;return s.sameDate(e,t)},_isFirstDayOfMonth:function(e){return this._isWorkSpaceWithCount()&&1===e.getDate()},_isOtherMonth:function(e){return!s.dateInRange(e,this._minVisibleDate,this._maxVisibleDate,"date")},needRenderDateTimeIndication:function(){return!1},getCellDuration:function(){return 36e5*this._calculateDayDuration()},getIntervalDuration:function(){return u("day")},getTimePanelWidth:function(){return 0},getPositionShift:function(e){return{cellPosition:e*this.getCellWidth(),top:0,left:0}},getCellCountToLastViewDate:function(e){var t=e.getTime(),n=this.getEndViewDate().getTime(),i=this.getCellDuration();return Math.ceil((n-t)/i)},supportAllDayRow:function(){return!1},keepOriginalHours:function(){return!0},calculateEndDate:function(e){var t=new Date(e);return new Date(t.setHours(this.option("endDayHour")))},getWorkSpaceLeftOffset:function(){return 0},needApplyCollectorOffset:function(){return!0},_getDateTableBorderOffset:function(){return this._getDateTableBorder()},_getCellPositionByIndex:function(e,t){var n,i=this.callBase(e,t),o=this._getCellCoordinatesByIndex(e).rowIndex;return(n=this._isVerticalGroupedWorkSpace()?this.getCellHeight()*(o+t*this._getRowCount()):this.getCellHeight()*o)&&(i.top=n),i},_getHeaderDate:function(){return this._getViewStartByOptions()},_supportCompactDropDownAppointments:function(){return!1},scrollToTime:o});a("dxSchedulerWorkSpaceMonth",c),e.exports=c},function(e,t,n){var i=n(8),o=n(255),a=o.inherit({_getElementClass:function(){return"dx-scheduler-timeline-day"},_setFirstViewDate:function(){this._firstViewDate=this.option("currentDate"),this._setStartDayHour(this._firstViewDate)},_needRenderWeekHeader:function(){return this._isWorkSpaceWithCount()}});i("dxSchedulerTimelineDay",a),e.exports=a},function(e,t,n){var i=n(378).inherit({_renderShader:function(){var e="horizontal"===this._workspace.option("groupOrientation")?this._workspace._getGroupCount():1;if(this._customizeShader(this._$shader,0),e>1)for(var t=1;t<e;t++){var n=this._createShader();this._customizeShader(n,1),this._shader.push(n)}},_customizeShader:function(e,t){var n=this._workspace.getIndicationWidth(),i=this._$container.get(0).getBoundingClientRect().width;n>i&&(n=i),n>0&&e.width(n),e.css("left",this._workspace._getCellCount()*this._workspace.getCellWidth()*t)}});e.exports=i},function(e,t,n){var i=n(8),o=n(380),a=n(22),r=a.dateToMilliseconds,s=o.inherit({_getElementClass:function(){return"dx-scheduler-timeline-work-week"},_getWeekDuration:function(){return 5},_firstDayOfWeek:function(){return this.option("firstDayOfWeek")||1},_incrementDate:function(e){5===e.getDay()&&e.setDate(e.getDate()+2),this.callBase(e)},_getOffsetByCount:function(e,t){var n=Math.floor(e/(5*this._getCellCountInDay()));return n>0?r("day")*n*2:0},_getWeekendsCount:function(e){return 2*Math.floor(e/7)},_setFirstViewDate:function(){this._firstViewDate=a.getFirstWeekDate(this.option("currentDate"),this._firstDayOfWeek()),this._firstViewDate=a.normalizeDateByWeek(this._firstViewDate,this.option("currentDate")),this._setStartDayHour(this._firstViewDate)}});i("dxSchedulerTimelineWorkWeek",s),e.exports=s},function(e,t,n){var i=n(8),o=n(255),a=n(22),r=a.dateToMilliseconds,s=o.inherit({_renderView:function(){this.callBase(),this._updateScrollable()},_getElementClass:function(){return"dx-scheduler-timeline-month"},_getDateHeaderTemplate:function(){return this.option("dateCellTemplate")},_getHiddenInterval:function(){return 0},_getIndicationFirstViewDate:function(){return a.trimTime(new Date(this._firstViewDate))},getCellDuration:function(){return r("day")},calculateEndViewDate:function(e){return new Date(e.getTime()+this._calculateDayDuration()*r("hour"))},_getCellCount:function(){var e=this.option("currentDate"),t=0;if(this._isWorkSpaceWithCount())for(var n=this.option("intervalCount"),i=1;i<=n;i++)t+=new Date(e.getFullYear(),e.getMonth()+i,0).getDate();else t=new Date(e.getFullYear(),e.getMonth()+1,0).getDate();return t},_setFirstViewDate:function(){this._firstViewDate=a.getFirstMonthDate(this.option("currentDate")),this._setStartDayHour(this._firstViewDate)},_getFormat:function(){return this._formatWeekdayAndDay},_getDateByIndex:function(e){var t=new Date(this._firstViewDate);return t.setDate(this._firstViewDate.getDate()+e),t},_getInterval:function(){return 864e5},_getIntervalBetween:function(e){var t=this.getStartViewDate(),n=a.getTimezonesDifference(t,e);return e.getTime()-(t.getTime()-36e5*this.option("startDayHour"))-n},calculateEndDate:function(e){var t=new Date(e);return new Date(t.setHours(this.option("endDayHour")))},_calculateHiddenInterval:function(){return 0},_getDateByCellIndexes:function(e,t){var n=this.callBase(e,t);return this._setStartDayHour(n),n},needUpdateScrollPosition:function(e,t,n,i){return this._dateWithinBounds(n,i)},getPositionShift:function(){return{top:0,left:0,cellPosition:0}}});i("dxSchedulerTimelineMonth",s),e.exports=s},function(e,t,n){var i=n(2),o=n(12),a=n(4).noop,r=n(3).each,s=n(10).getPublicElement,l=n(8),u=n(376),c=n(0).extend,d=n(33),h=n(254),p="dx-scheduler-group-table",f="dx-group-column-count",g=u.inherit({_activeStateUnit:void 0,_getDefaultOptions:function(){return c(this.callBase(),{agendaDuration:7,rowHeight:60,noDataText:""})},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"agendaDuration":break;case"noDataText":case"rowHeight":this._recalculateAgenda(this._rows);break;case"groups":n&&n.length?this._$groupTable||(this._initGroupTable(),this._dateTableScrollable.$content().prepend(this._$groupTable)):this._$groupTable&&(this._$groupTable.remove(),this._$groupTable=null,this._detachGroupCountAttr()),this.callBase(e);break;default:this.callBase(e)}},_renderFocusState:a,_renderFocusTarget:a,_cleanFocusState:a,supportAllDayRow:function(){return!1},_isVerticalGroupedWorkSpace:function(){return!1},_getElementClass:function(){return"dx-scheduler-agenda"},_setFirstViewDate:function(){this._firstViewDate=new Date(this.option("currentDate")),this._setStartDayHour(this._firstViewDate)},_getRowCount:function(){return this.option("agendaDuration")},_getCellCount:function(){return 1},_getTimePanelRowCount:function(){return this.option("agendaDuration")},_getDateByIndex:a,_getFormat:function(){return"d ddd"},_renderAllDayPanel:a,_toggleAllDayVisibility:a,_initWorkSpaceUnits:function(){this._initGroupTable(),this._$timePanel=i("<table>").addClass(this._getTimePanelClass()),this._$dateTable=i("<table>").addClass(this._getDateTableClass())},_initGroupTable:function(){var e=this.option("groups");e&&e.length&&(this._$groupTable=i("<table>").addClass(p))},_renderView:function(){this._setFirstViewDate(),this._rows=[],this.invoke("getAgendaRows",{agendaDuration:this.option("agendaDuration"),currentDate:new Date(this.option("currentDate"))}).done(function(e){this._recalculateAgenda(e)}.bind(this))},_recalculateAgenda:function(e){var t=[];return this._cleanView(),this._rowsIsEmpty(e)?void this._renderNoData():(this._rows=e,this._$groupTable&&(t=this._renderGroupHeader(),this._setGroupHeaderCellsHeight()),this._renderTimePanel(),this._renderDateTable(),this.invoke("agendaIsReady",e,5,20),this._applyCellTemplates(t),void this._dateTableScrollable.update())},_renderNoData:function(){this._$noDataContainer=i("<div>").addClass("dx-scheduler-agenda-nodata").html(this.option("noDataText")),this._dateTableScrollable.$content().append(this._$noDataContainer)},_setTableSizes:a,_toggleHorizontalScrollClass:a,_createCrossScrollingConfig:a,_setGroupHeaderCellsHeight:function(){var e=this._getGroupHeaderCells().filter(function(e,t){return!t.getAttribute("rowSpan")}),t=this._removeEmptyRows(this._rows);if(t.length)for(var n=0;n<e.length;n++){e.eq(n).find(".dx-scheduler-group-header-content").outerHeight(this._getGroupRowHeight(t[n]))}},_rowsIsEmpty:function(e){for(var t=!0,n=0;n<e.length;n++)for(var i=e[n],o=0;o<i.length;o++)if(i[o]){t=!1;break}return t},_detachGroupCountAttr:function(){this.$element().removeAttr(f)},_attachGroupCountAttr:function(){this.$element().attr(f,this.option("groups").length)},_removeEmptyRows:function(e){for(var t=[],n=function(e){return!e.some(function(e){return e>0})},i=0;i<e.length;i++)e[i].length&&!n(e[i])&&t.push(e[i]);return t},_getGroupHeaderContainer:function(){return this._$groupTable},_makeGroupRows:function(){var e=this.invoke("createReducedResourcesTree"),t=this.option("resourceCellTemplate"),n=this._getGroupHeaderContentClass(),a=[],r=h.makeGroupedTableFromJSON(h.VERTICAL,e,{cellTag:"th",groupTableClass:p,groupRowClass:this._getGroupRowClass(),groupCellClass:this._getGroupHeaderClass(),groupCellCustomContent:function(e,r,l,u){var c=o.createElement("div"),d=o.createElement("div");c.className=n,d.appendChild(r),c.appendChild(d),c.className=n,t&&t.render?a.push(t.render.bind(t,{model:{data:u.data,id:u.value,color:u.color,text:r.textContent},container:s(i(c)),index:l})):(d.appendChild(r),c.appendChild(d)),e.appendChild(c)},cellTemplate:t});return{elements:i(r).find("."+this._getGroupRowClass()),cellTemplates:a}},_cleanView:function(){this._$dateTable.empty(),this._$timePanel.empty(),this._$groupTable&&this._$groupTable.empty(),this._$noDataContainer&&(this._$noDataContainer.empty(),this._$noDataContainer.remove(),delete this._$noDataContainer)},_createWorkSpaceElements:function(){this._createWorkSpaceStaticElements()},_createWorkSpaceStaticElements:function(){this._$groupTable&&this._dateTableScrollable.$content().prepend(this._$groupTable),this._dateTableScrollable.$content().append(this._$timePanel,this._$dateTable),this.$element().append(this._dateTableScrollable.$element())},_renderDateTable:function(){this._renderTableBody({container:s(this._$dateTable),rowClass:this._getDateTableRowClass(),cellClass:this._getDateTableCellClass()})},_attachTablesEvents:a,_attachEvents:a,_cleanCellDataCache:a,needRenderDateTimeIndication:function(){return!1},_prepareCellTemplateOptions:function(e,t,n,i){var o=this.option("groups"),a={};return(o.length&&this._getPathToLeaf(n)||[]).forEach(function(e,t){var n=o[t].name;a[n]=e}),{model:{text:e,date:t,groups:a},container:s(i),index:n}},_renderTableBody:function(e){var t=[],n=e.cellTemplate;this._$rows=[];for(var o=function(o,r){if(r){var s,l,u,c=i("<tr>"),h=i("<td>").height(this._getRowHeight(r));if(e.getStartDate&&(s=e.getStartDate&&e.getStartDate(o),l=d.format(s,"d"),u=d.format(s,this._formatWeekday)),n&&n.render){var p=this._prepareCellTemplateOptions(l+" "+u,s,a,h);t.push(n.render.bind(n,p))}else l&&u&&h.addClass("dx-scheduler-agenda-date").text(l+" "+u);e.rowClass&&c.addClass(e.rowClass),e.cellClass&&h.addClass(e.cellClass),c.append(h),this._$rows.push(c)}}.bind(this),a=0;a<this._rows.length;a++)r(this._rows[a],o),this._setLastRowClass();i(e.container).append(i("<tbody>").append(this._$rows)),this._applyCellTemplates(t)},_setLastRowClass:function(){this._rows.length>1&&this._$rows.length&&this._$rows[this._$rows.length-1].addClass("dx-scheduler-date-table-last-row")},_renderTimePanel:function(){this._renderTableBody({container:s(this._$timePanel),rowCount:this._getTimePanelRowCount(),cellCount:1,rowClass:"dx-scheduler-time-panel-row",cellClass:"dx-scheduler-time-panel-cell",cellTemplate:this.option("dateCellTemplate"),getStartDate:this._getTimePanelStartDate.bind(this)})},_getTimePanelStartDate:function(e){var t=new Date(this.option("currentDate"));return new Date(t.setDate(t.getDate()+e))},_getRowHeight:function(e){var t=this.option("rowHeight");return e?t*e+5*(e-1)+20:0},_getGroupRowHeight:function(e){if(e){for(var t=0,n=0;n<e.length;n++)t+=this._getRowHeight(e[n]);return t}},getAgendaVerticalStepHeight:function(){return this.option("rowHeight")},getEndViewDate:function(){var e=new Date(this.option("currentDate")),t=this.option("agendaDuration");e.setHours(this.option("endDayHour"));var n=e.setDate(e.getDate()+t-1)-6e4;return new Date(n)},getCoordinatesByDate:function(){return{top:0,left:0,max:0,groupIndex:0}},getCellDataByCoordinates:function(){return{startDate:null,endDate:null}}});l("dxSchedulerAgenda",g),e.exports=g},function(e,t,n){var i=n(14),o=n(13),a=n(4).grep,r=n(1).isDefined,s=n(48),l=n(3),u=n(0).extend,c=n(13).inArray,d=n(41),h=n(20),p=n(45),f=n(6),g=f.when,_=f.Deferred,m=function(e){return e.valueExpr||"id"},v=function(e){return e.displayExpr||"text"},y=i.inherit({_wrapDataSource:function(e){return e instanceof p.DataSource?e:new p.DataSource({store:p.normalizeDataSourceOptions(e).store,pageSize:0})},_mapResourceData:function(e,t){var n=h.compileGetter(m(e)),i=h.compileGetter(v(e));return l.map(t,function(e){var t={id:n(e),text:i(e)};return e.color&&(t.color=e.color),t})},_isMultipleResource:function(e){var t=!1;return l.each(this.getResources(),function(n,i){if(this.getField(i)===e)return t=i.allowMultiple,!1}.bind(this)),t},ctor:function(e){this.setResources(e)},getDataAccessors:function(e,t){var n=null;return l.each(this._dataAccessors[t],function(t,i){if(e===t)return n=i,!1}),n},getField:function(e){return e.fieldExpr||e.field},setResources:function(e){this._resources=e,this._dataAccessors={getter:{},setter:{}},this._resourceFields=l.map(e||[],function(e){var t=this.getField(e);return this._dataAccessors.getter[t]=h.compileGetter(t),this._dataAccessors.setter[t]=h.compileSetter(t),t}.bind(this))},getResources:function(){return this._resources||[]},getResourcesData:function(){return this._resourcesData||[]},getEditors:function(){var e=[],t=this;return l.each(this.getResources(),function(n,i){var o=t.getField(i),a=t._getResourceDataByField(o);e.push({editorOptions:{dataSource:a.length?a:t._wrapDataSource(i.dataSource),displayExpr:v(i),valueExpr:m(i)},dataField:o,editorType:i.allowMultiple?"dxTagBox":"dxSelectBox",label:{text:i.label||o}})}),e},_resourceLoader:{},getResourceDataByValue:function(e,t){var n=this,i=new _;return l.each(this.getResources(),function(o,a){if(n.getField(a)===e){var r=n._wrapDataSource(a.dataSource),s=m(a);return n._resourceLoader[e]||(n._resourceLoader[e]=r.load()),n._resourceLoader[e].done(function(o){var a=d(o).filter(s,t).toArray();delete n._resourceLoader[e],i.resolve(a[0])}).fail(function(){delete n._resourceLoader[e],i.reject()}),!1}}),i.promise()},setResourcesToItem:function(e,t){var n=this._dataAccessors.setter;for(var i in t)if(t.hasOwnProperty(i)){var a=t[i];n[i](e,this._isMultipleResource(i)?o.wrapToArray(a):a)}},getResourcesFromItem:function(e,t){var n=this,i=null;return r(t)||(t=!1),l.each(n._resourceFields,function(a,r){l.each(e,function(e,a){var s={};s[e]=a;var l=n.getDataAccessors(r,"getter")(s);if(l)return i||(i={}),1===l.length&&(l=l[0]),!t||t&&n._isMultipleResource(r)?n.getDataAccessors(r,"setter")(s,o.wrapToArray(l)):n.getDataAccessors(r,"setter")(s,l),u(i,s),!0})}),i},loadResources:function(e){var t=new _,n=this,i=[];return l.each(this.getResourcesByFields(e),function(e,t){var o=new _,a=n.getField(t);i.push(o),n._wrapDataSource(t.dataSource).load().done(function(e){o.resolve({name:a,items:n._mapResourceData(t,e),data:e})}).fail(function(){o.reject()})}),i.length?(g.apply(null,i).done(function(){var e=Array.prototype.slice.call(arguments);n._resourcesData=e,t.resolve(e.map(function(e){return{name:e.name,items:e.items,data:e.data}}))}).fail(function(){t.reject()}),t.promise()):(n._resourcesData=[],t.resolve([]))},getResourcesByFields:function(e){return a(this.getResources(),function(t){var n=this.getField(t);return c(n,e)>-1}.bind(this))},getResourceByField:function(e){return this.getResourcesByFields([e])[0]||{}},getResourceColor:function(e,t){var n,i=this.getResourceByField(e).valueExpr||"id",o=h.compileGetter(i),a=this.getResourceByField(e).colorExpr||"color",r=h.compileGetter(a),s=new _,l=this._getResourceDataByField(e),u=l.length;if(u){for(var c=0;c<u;c++)if(o(l[c])===t){n=r(l[c]);break}s.resolve(n)}else this.getResourceDataByValue(e,t).done(function(e){e&&(n=r(e)),s.resolve(n)}).fail(function(){s.reject()});return s.promise()},getResourceForPainting:function(e){var t,n=this.getResources();return l.each(n,function(e,n){if(n.useColorAsDefault)return t=n,!1}),t||(Array.isArray(e)&&e.length&&(n=this.getResourcesByFields(e)),t=n[n.length-1]),t},createResourcesTree:function(e){var t=0;return function n(i,o,a,r){a=a||[];for(var s=0;s<i.items.length;s++){var l=i.items[s],u={name:i.name,value:l.id,title:l.text,data:i.data&&i.data[s],children:[],parent:r||null};a.push(u);var c=o+1;e[c]&&n.call(this,e[c],c,u.children,u),u.children.length||(u.leafIndex=t,t++)}return a}.call(this,e[0],0)},_hasGroupItem:function(e,t,n){var i=this.getDataAccessors(t,"getter")(e);return!!(i&&c(n,i)>-1)},_getResourceDataByField:function(e){for(var t=this.getResourcesData(),n=[],i=0,o=t.length;i<o;i++)if(t[i].name===e){n=t[i].data;break}return n},getResourceTreeLeaves:function(e,t,n){n=n||[];for(var i=0;i<e.length;i++)this._hasGroupItem(t,e[i].name,e[i].value)&&(r(e[i].leafIndex)&&n.push(e[i].leafIndex),e[i].children&&this.getResourceTreeLeaves(e[i].children,t,n));return n},groupAppointmentsByResources:function(e,t){var n=this.createResourcesTree(t),i={};return l.each(e,function(e,t){for(var o=this.getResourcesFromItem(t),a=this.getResourceTreeLeaves(n,o),r=0;r<a.length;r++)i[a[r]]||(i[a[r]]=[]),i[a[r]].push(s.deepExtendArraySafe({},t,!0))}.bind(this)),i},reduceResourcesTree:function(e,t,n){n=n?n.children:[];var i=this;return e.forEach(function(e,o){var a=!1,r=e.name,s=e.value,l=e.title,u=e.data,c=i.getDataAccessors(r,"getter");t.forEach(function(e){if(!a){var t=c(e);Array.isArray(t)?t.indexOf(s)>-1&&(n.push({name:r,value:s,title:l,data:u,children:[]}),a=!0):t===s&&(n.push({name:r,value:s,title:l,data:u,children:[]}),a=!0)}}),a&&e.children&&e.children.length&&i.reduceResourcesTree(e.children,t,n[o])}),n}});e.exports=y},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=i(n(27)),s=i(n(3)),l=i(n(56)),u=i(n(142)),c=i(n(22)),d=i(n(4)),h=i(n(1)),p=n(13),f=i(p),g=n(0),_=i(n(41)),m=c.default.dateToMilliseconds,v=function(){function e(t){o(this,e),this._filterRegistry=null,this._dataAccessors=t}return a(e,[{key:"isRegistered",value:function(){return!!this._filterRegistry}},{key:"clearRegistry",value:function(){delete this._filterRegistry}},{key:"make",value:function(e,t){this._filterRegistry||(this._filterRegistry={}),this._make(e).apply(this,t)}},{key:"_make",value:function(e){var t=this;switch(e){case"date":return function(e,n,i){var o=i?t._dataAccessors.getter.startDate:t._dataAccessors.expr.startDateExpr,a=i?t._dataAccessors.getter.endDate:t._dataAccessors.expr.endDateExpr,r=t._dataAccessors.expr.recurrenceRuleExpr;t._filterRegistry.date=[[[a,">",e],[o,"<",n]],"or",[r,"startswith","freq"],"or",[[a,e],[o,e]]],r||t._filterRegistry.date.splice(1,2)};case"user":return function(e){t._filterRegistry.user=e}}}},{key:"combine",value:function(){var e=[];return this._filterRegistry.date&&e.push(this._filterRegistry.date),this._filterRegistry.user&&e.push(this._filterRegistry.user),e}},{key:"dateFilter",value:function(){return this._filterRegistry.date}}]),e}(),y=function(e,t,n,i,o){var a=c.default.dateTimeFromDecimal(n);return e.getHours()>=a.hours&&e.getMinutes()>=a.minutes||t.getHours()===a.hours&&t.getMinutes()>a.minutes||t.getHours()>a.hours||o||i},b=function(e,t,n,i,o,a){var r,s=(24-i+n)*m("hour"),l=t.getTime()-e.getTime(),u=(s-l)/m("hour"),d=e.getHours(),h=e.getMinutes(),p=c.default.dateTimeFromDecimal(i);return r=d<p.hours||d===p.hours&&h<p.minutes||o&&e<=a,l<s&&d>p.hours&&h>p.minutes&&u<=d-i&&(r=!1),r},x=function(){function e(t,n,i){o(this,e),this.setDataAccessors(n),this.setDataSource(t),this._updatedAppointmentKeys=[],this._filterMaker=new v(n),this._baseAppointmentDuration=i}return a(e,[{key:"_createFilter",value:function(e,t,n,i){this._filterMaker.make("date",[e,t]);var o=this._excessFiltering()?this._dataSource.filter()[1]:this._dataSource.filter();this._filterMaker.make("user",[o]),n&&this._dataSource.filter(this._combineRemoteFilter(i))}},{key:"_excessFiltering",value:function(){var e=this._filterMaker.dateFilter(),t=this._dataSource.filter();return t&&(d.default.equalByValue(t,e)||t.length&&d.default.equalByValue(t[0],e))}},{key:"_combineFilter",value:function(){return this._filterMaker.combine()}},{key:"_getStoreKey",value:function(e){return this._dataSource.store().keyOf(e)}},{key:"_filterAppointmentByResources",value:function(e,t){for(var n=this,i=!1,o=function(){var i,o=n._dataAccessors.getter.resources[l];h.default.isFunction(o)&&(i=o(e));for(var r=f.default.wrapToArray(i),u=s.default.map(t[a].items,function(e){return e.id}),c=0,d=r.length;c<d;c++)if((0,p.inArray)(r[c],u)>-1)return!0;return!1},a=0,r=t.length;a<r;a++){var l=t[a].name;if(!(i=o.call(this)))return!1}return i}},{key:"_filterAppointmentByRRule",value:function(e,t,n,i,o,a){var r=e.recurrenceRule,s=e.recurrenceException,l=e.allDay,c=!0,d=e.startDate,h=e.endDate;if(l||this._appointmentPartInInterval(d,h,i,o)){var p=this._trimDates(t,n);t=p.min,n=new Date(p.max.getTime()-m("minute"))}return r&&!u.default.getRecurrenceRule(r).isValid&&(c=h>t&&d<=n),c&&u.default.getRecurrenceRule(r).isValid&&(c=u.default.dateInRecurrenceRange({rule:r,exception:s,start:d,end:h,min:t,max:n,firstDayOfWeek:a})),c}},{key:"_appointmentPartInInterval",value:function(e,t,n,i){var o=e.getHours(),a=t.getHours();return o<=n&&a<=i&&a>=n||a>=i&&o<=i&&o>=n}},{key:"_createCombinedFilter",value:function(e,t){var n=this._dataAccessors,i=e.startDayHour,o=e.endDayHour,a=new Date(e.min),r=new Date(e.max),s=e.resources,l=this;return[[function(u){var c,d=!0,p=new Date(n.getter.startDate(u)),f=new Date(n.getter.endDate(u)),g=l.appointmentTakesAllDay(u,i,o),_=l.appointmentTakesSeveralDays(u),m=n.getter.allDay(u),v=_||g,x=h.default.isDefined(n.getter.recurrenceRule);x&&(c=n.getter.recurrenceRule(u)),s&&s.length&&(d=l._filterAppointmentByResources(u,s)),g&&!1===e.allDay&&(d=!1),d&&x&&(d=l._filterAppointmentByRRule({startDate:p,endDate:f,recurrenceRule:c,recurrenceException:n.getter.recurrenceException(u),allDay:g},a,r,i,o,e.firstDayOfWeek));var w=n.getter.startDateTimeZone(u),C=n.getter.endDateTimeZone(u),k=t(p,w),S=t(f,C);return d&&S<a&&v&&!m&&(!x||x&&!c)&&(d=!1),d&&void 0!==i&&(d=y(k,S,i,g,_)),d&&void 0!==o&&(d=b(k,S,i,o,g,r)),d&&x&&!c&&S<a&&!m&&(d=!1),d}]]}},{key:"setDataSource",value:function(e){this._dataSource=e,this.cleanModelState(),this._initStoreChangeHandlers(),this._filterMaker&&this._filterMaker.clearRegistry()}},{key:"_initStoreChangeHandlers",value:function(){var e=this;this._dataSource&&this._dataSource.store().on("updating",function(t){e._updatedAppointment=t}.bind(this)),this._dataSource&&this._dataSource.store().on("push",function(t){t.forEach(function(t){e._updatedAppointmentKeys.push({key:e._dataSource.store().key(),value:t.key})}.bind(e))}.bind(this))}},{key:"getUpdatedAppointment",value:function(){return this._updatedAppointment}},{key:"getUpdatedAppointmentKeys",value:function(){return this._updatedAppointmentKeys}},{key:"cleanModelState",value:function(){this._updatedAppointment=null,this._updatedAppointmentKeys=[]}},{key:"setDataAccessors",value:function(e){this._dataAccessors=e,this._filterMaker=new v(e)}},{key:"filterByDate",value:function(e,t,n,i){if(this._dataSource){var o=this._trimDates(e,t);this._filterMaker.isRegistered()?(this._filterMaker.make("date",[o.min,o.max]),this._dataSource.filter()&&this._dataSource.filter().length>1&&this._filterMaker.make("user",[this._dataSource.filter()[1]]),n&&this._dataSource.filter(this._combineRemoteFilter(i))):this._createFilter(o.min,o.max,n,i)}}},{key:"_combineRemoteFilter",value:function(e){var t=this._filterMaker.combine();return this._serializeRemoteFilter(t,e)}},{key:"_serializeRemoteFilter",value:function(e,t){var n=this;if(!Array.isArray(e))return e;e=(0,g.extend)([],e);var i=n._dataAccessors.expr.startDateExpr,o=n._dataAccessors.expr.endDateExpr;h.default.isString(e[0])&&(0,r.default)().forceIsoDateParsing&&e.length>1&&(e[0]!==i&&e[0]!==o||(e[e.length-1]=l.default.serializeDate(e[e.length-1],t)));for(var a=0;a<e.length;a++)e[a]=n._serializeRemoteFilter(e[a],t);return e}},{key:"filterLoadedAppointments",value:function(e,t){h.default.isFunction(t)||(t=function(e){return e});var n=this._createCombinedFilter(e,t);if(this._filterMaker.isRegistered()){var i=this._trimDates(e.min,e.max);this._filterMaker.make("date",[i.min,i.max,!0]);var o=this.customizeDateFilter(this._filterMaker.combine(),t);n.push([o])}return(0,_.default)(this._dataSource.items()).filter(n).toArray()}},{key:"_trimDates",value:function(e,t){var n=c.default.trimTime(new Date(e)),i=c.default.trimTime(new Date(t));return i.setDate(i.getDate()+1),{min:n,max:i}}},{key:"hasAllDayAppointments",value:function(e,t,n){if(!e)return!1;var i=this,o=!1;return s.default.each(e,function(e,a){if(i.appointmentTakesAllDay(a,t,n))return o=!0,!1}),o}},{key:"appointmentTakesAllDay",value:function(e,t,n){var i=this._dataAccessors,o=i.getter.startDate(e),a=i.getter.endDate(e);return i.getter.allDay(e)||this._appointmentHasAllDayDuration(o,a,t,n)}},{key:"_appointmentHasAllDayDuration",value:function(e,t,n,i){e=new Date(e),t=new Date(t);return this._getAppointmentDurationInHours(e,t)>=24||this._appointmentHasShortDayDuration(e,t,n,i)}},{key:"_appointmentHasShortDayDuration",value:function(e,t,n,i){return this._getAppointmentDurationInHours(e,t)>=i-n&&e.getHours()===n&&t.getHours()===i}},{key:"_getAppointmentDurationInHours",value:function(e,t){return(t.getTime()-e.getTime())/m("hour")}},{key:"appointmentTakesSeveralDays",value:function(e){var t=this._dataAccessors,n=t.getter.startDate(e),i=t.getter.endDate(e),o=c.default.trimTime(new Date(n)),a=c.default.trimTime(new Date(i));return o.getTime()!==a.getTime()}},{key:"customizeDateFilter",value:function(e,t){var n=this,i=(0,g.extend)(!0,[],e);return function(e){var o=new Date(n._dataAccessors.getter.startDate(e)),a=new Date(n._dataAccessors.getter.endDate(e));a=n.fixWrongEndDate(e,o,a),e=(0,g.extend)(!0,{},e);var r=n._dataAccessors.getter.startDateTimeZone(e),s=n._dataAccessors.getter.endDateTimeZone(e),l=t(o,r),u=t(a,s);return n._dataAccessors.setter.startDate(e,l),n._dataAccessors.setter.endDate(e,u),(0,_.default)([e]).filter(i).toArray().length>0}.bind(this)}},{key:"fixWrongEndDate",value:function(e,t,n){return this._isEndDateWrong(e,t,n)&&(n=this._dataAccessors.getter.allDay(e)?c.default.setToDayEnd(new Date(t)):new Date(t.getTime()+this._baseAppointmentDuration*m("minute")),this._dataAccessors.setter.endDate(e,n)),n}},{key:"_isEndDateWrong",value:function(e,t,n){return!n||isNaN(n.getTime())||t.getTime()>=n.getTime()}},{key:"add",value:function(e,t){var n=this;return this._dataSource.store().insert(e).done(function(){n._dataSource.load()}.bind(this))}},{key:"update",value:function(e,t){var n=this,i=this._getStoreKey(e);return this._dataSource.store().update(i,t).done(function(){n._dataSource.load()}.bind(this))}},{key:"remove",value:function(e){var t=this,n=this._getStoreKey(e);return this._dataSource.store().remove(n).done(function(){t._dataSource.load()}.bind(this))}}]),e}();e.exports=x},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(12)),r=i(n(5)),s=i(n(37)),l=i(n(26)),u=i(n(22)),c=i(n(4)),d=i(n(1)),h=n(3),p=i(n(48)),f=i(n(13)),g=n(0),_=n(10),m=i(n(142)),v=i(n(8)),y=i(n(118)),b=i(n(708)),x=i(n(9)),w=i(n(154)),C=i(n(33)),k=i(n(15)),S=i(n(54)),I=i(n(301)),T=n(6),D="dxAppointmentSettings",E="dx-scheduler-appointment",A="dx-scheduler-appointment-content-date",O=x.default.addNamespace(w.default.name,"dxSchedulerAppointment"),P=u.default.dateToMilliseconds,B=S.default.inherit({_supportedKeys:function(){var e=this.callBase();return(0,g.extend)(e,{escape:function(){this.moveAppointmentBack(),this._escPressed=!0}.bind(this),del:function(e){if(this.option("allowDelete")){e.preventDefault();var t=this._getItemData(e.target);this.notifyObserver("deleteAppointment",{data:t,target:e.target}),this.notifyObserver("hideAppointmentTooltip")}}.bind(this),tab:function(e){var t=this._getAccessAppointments(),n=t.filter(".dx-state-focused").data("dxAppointmentSettings").sortedIndex,i=t.length-1;if(n>0&&e.shiftKey||n<i&&!e.shiftKey){e.preventDefault(),e.shiftKey?n--:n++;var o=this._getAppointmentByIndex(n);this._resetTabIndex(o),r.default.trigger(o,"focus")}}})},_getAppointmentByIndex:function(e){return this._getAccessAppointments().filter(function(t,n){return s.default.data(n,"dxAppointmentSettings").sortedIndex===e}).eq(0)},_getAccessAppointments:function(){return this._itemElements().filter(":visible").not(".dx-state-disabled")},_resetTabIndex:function(e){this._focusTarget().attr("tabIndex",-1),e.attr("tabIndex",this.option("tabIndex"))},_moveFocus:c.default.noop,_focusTarget:function(){return this._itemElements()},_renderFocusTarget:function(){var e=this._getAppointmentByIndex(0);this._resetTabIndex(e)},_focusInHandler:function(e){if(this._targetIsDisabled(e))e.stopPropagation();else{clearTimeout(this._appointmentFocusedTimeout),this.callBase.apply(this,arguments),this._$currentAppointment=(0,o.default)(e.target),this.option("focusedElement",(0,_.getPublicElement)((0,o.default)(e.target)));var t=this;this._appointmentFocusedTimeout=setTimeout(function(){t.notifyObserver("appointmentFocused")})}},_targetIsDisabled:function(e){return(0,o.default)(e.currentTarget).is(".dx-state-disabled, .dx-state-disabled *")},_focusOutHandler:function(){var e=this._getAppointmentByIndex(0);this.option("focusedElement",(0,_.getPublicElement)(e)),this.callBase.apply(this,arguments)},_eventBindingTarget:function(){return this._itemContainer()},_getDefaultOptions:function(){return(0,g.extend)(this.callBase(),{noDataText:null,activeStateEnabled:!0,hoverStateEnabled:!0,tabIndex:0,fixedContainer:null,allDayContainer:null,allowDrag:!0,allowResize:!0,allowAllDayResize:!0,onAppointmentDblClick:null,_collectorOffset:0})},_optionChanged:function(e){switch(e.name){case"items":this._cleanFocusState(),this._clearDropDownItems(),this._clearDropDownItemsElements(),this._repaintAppointments(e.value),this._renderDropDownAppointments(),this._attachAppointmentsEvents();break;case"fixedContainer":case"allDayContainer":case"onAppointmentDblClick":break;case"allowDrag":case"allowResize":case"allowAllDayResize":this._invalidate();break;case"focusedElement":this._resetTabIndex((0,o.default)(e.value)),this.callBase(e);break;case"allowDelete":break;case"focusStateEnabled":this._clearDropDownItemsElements(),this._renderDropDownAppointments(),this.callBase(e);break;default:this.callBase(e)}},_isAllDayAppointment:function(e){return e.settings.length&&e.settings[0].allDay||!1},_isRepaintAppointment:function(e){return!d.default.isDefined(e.needRepaint)||!0===e.needRepaint},_isRepaintAll:function(e){if(this.invoke("isCurrentViewAgenda"))return!0;for(var t=0;t<e.length;t++){var n=e[t];if(!this._isRepaintAppointment(n))return!1}return!0},_applyFragment:function(e,t){e.children().length>0&&this._getAppointmentContainer(t).append(e)},_onEachAppointment:function(e,t,n,i){return e&&!0===e.needRemove?void this._clearItem(e):(!1===e.needRepaint&&this._processRenderedAppointment(e),void(this._isRepaintAppointment(e)&&(e.needRepaint=!1,!i&&this._clearItem(e),this._renderItem(t,e,n))))},_repaintAppointments:function(e){var t=this,n=this._isRepaintAll(e),i=(0,o.default)(a.default.createDocumentFragment()),r=(0,o.default)(a.default.createDocumentFragment());n&&(this._getAppointmentContainer(!0).html(""),this._getAppointmentContainer(!1).html("")),!e.length&&this._cleanItemContainer(),e.forEach(function(e,o){var a=t._isAllDayAppointment(e)?i:r;t._onEachAppointment(e,o,a,n)}),this._applyFragment(i,!0),this._applyFragment(r,!1)},_attachAppointmentsEvents:function(){this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent(),this._attachAppointmentDblClick(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents()},_processRenderedAppointment:function(e){if(this.invoke("getResourceForPainting")){var t=this._findItemElementByItem(e.itemData);t.length&&(0,h.each)(t,function(t,n){this._getAppointmentColor(n,e.settings[t].groupIndex).done(function(e){e&&n.css("backgroundColor",e)})}.bind(this))}},_clearItem:function(e){var t=this._findItemElementByItem(e.itemData);t.length&&(0,h.each)(t,function(e,t){t.detach(),t.remove()})},_clearDropDownItems:function(){this._virtualAppointments={}},_clearDropDownItemsElements:function(){this.invoke("clearCompactAppointments")},_findItemElementByItem:function(e){var t=[],n=this;return this.itemElements().each(function(){var i=(0,o.default)(this);i.data(n._itemDataKey())===e&&t.push(i)}),t},_itemClass:function(){return E},_itemContainer:function(){var e=this.callBase(),t=e,n=this.option("allDayContainer");return n&&(t=e.add(n)),t},_cleanItemContainer:function(){this.callBase();var e=this.option("allDayContainer");e&&e.empty(),this._virtualAppointments={}},_clean:function(){this.callBase(),delete this._$currentAppointment,delete this._initialSize,delete this._initialCoordinates},_init:function(){this.callBase(),this.$element().addClass("dx-scheduler-scrollable-appointments"),this._preventSingleAppointmentClick=!1},_renderAppointmentTemplate:function(e,t,n){var i=n.settings?new Date(this.invoke("getField","startDate",n.settings)):t.startDate,a=n.settings?new Date(this.invoke("getField","endDate",n.settings)):t.endDate;(isNaN(i)||isNaN(a))&&(i=t.startDate,a=t.endDate),(0,o.default)("<div>").text(this._createAppointmentTitle(t)).addClass("dx-scheduler-appointment-title").appendTo(e),d.default.isPlainObject(t)&&t.html&&e.html(t.html);var r=t.recurrenceRule,s=t.allDay,l=(0,o.default)("<div>").addClass("dx-scheduler-appointment-content-details"),u=t.startDateTimeZone,c=t.endDateTimeZone;i=this.invoke("convertDateByTimezone",i,u),a=this.invoke("convertDateByTimezone",a,c),(0,o.default)("<div>").addClass(A).text(C.default.format(i,"shorttime")).appendTo(l),(0,o.default)("<div>").addClass(A).text(" - ").appendTo(l),(0,o.default)("<div>").addClass(A).text(C.default.format(a,"shorttime")).appendTo(l),l.appendTo(e),r&&(0,o.default)("<span>").addClass("dx-scheduler-appointment-recurrence-icon dx-icon-repeat").appendTo(e),s&&(0,o.default)("<div>").text(" "+k.default.format("dxScheduler-allDay")+": ").addClass("dx-scheduler-appointment-content-allday").prependTo(l)},_createAppointmentTitle:function(e){return d.default.isPlainObject(e)?e.text:String(e)},_executeItemRenderAction:function(e,t,n){var i=this._getItemRenderAction();i&&i({appointmentElement:n,appointmentData:t,targetedAppointmentData:this.invoke("getTargetedAppointmentData",t,n,e)}),delete this._currentAppointmentSettings},_itemClickHandler:function(e){this.callBase(e,{},{afterExecute:function(e){this._processItemClick(e.args[0].event)}.bind(this)})},_processItemClick:function(e){var t=(0,o.default)(e.currentTarget),n=this._getItemData(t);return this._targetIsDisabled(e)?void e.stopPropagation():"keydown"===e.type||x.default.isFakeClickEvent(e)?void this.notifyObserver("showEditAppointmentPopup",{data:n,target:t}):void(this._appointmentClickTimeout=setTimeout(function(){!this._preventSingleAppointmentClick&&a.default.getBody().contains(t[0])&&this.notifyObserver("showAppointmentTooltip",{data:n,target:t}),this._preventSingleAppointmentClick=!1}.bind(this),300))},_extendActionArgs:function(){var e=this.callBase.apply(this,arguments);return this.invoke("mapAppointmentFields",e)},_render:function(){this.callBase.apply(this,arguments),this._attachAppointmentDblClick()},_attachAppointmentDblClick:function(){var e=this,t=e._itemSelector(),n=this._itemContainer();r.default.off(n,O,t),r.default.on(n,O,t,function(t){e._itemDXEventHandler(t,"onAppointmentDblClick",{},{afterExecute:function(t){e._dblClickHandler(t.args[0].event)}})})},_dblClickHandler:function(e){var t=(0,o.default)(e.currentTarget),n=this._getItemData(t);clearTimeout(this._appointmentClickTimeout),this._preventSingleAppointmentClick=!0,this.notifyObserver("showEditAppointmentPopup",{data:n,target:t})},_renderItem:function(e,t,n){for(var i=t.itemData,o=0;o<t.settings.length;o++){var a=t.settings[o];this._currentAppointmentSettings=a,this.callBase(e,i,n).data(D,a)}},_getItemContent:function(e){return e.data(D,this._currentAppointmentSettings),this.callBase(e)},_createItemByTemplate:function(e,t){return e.render({model:t.itemData,container:t.container,index:t.index})},_getAppointmentContainer:function(e){var t=this.option("allDayContainer"),n=this.itemsContainer().not(t);return e&&t&&(n=t),n},_postprocessRenderItem:function(e){this._renderAppointment(e.itemElement,this._currentAppointmentSettings)},_renderAppointment:function(e,t){e.data(D,t),this._applyResourceDataAttr(e);var n=this._getItemData(e),i=this.invoke("getAppointmentGeometry",t),o=!t.isCompact&&this.option("allowResize")&&(!d.default.isDefined(t.skipResizing)||d.default.isString(t.skipResizing)),a=this.option("allowDrag"),r=t.allDay;this.invoke("setCellDataCacheAlias",this._currentAppointmentSettings,i);var s=this._getAppointmentColor(e,t.groupIndex);t.virtual?this._processVirtualAppointment(t,e,n,s):(this._createComponent(e,b.default,{observer:this.option("observer"),data:n,geometry:i,direction:t.direction||"vertical",allowResize:o,allowDrag:a,allDay:r,reduced:t.appointmentReduced,isCompact:t.isCompact,startDate:new Date(t.startDate),cellWidth:this.invoke("getCellWidth"),cellHeight:this.invoke("getCellHeight"),resizableConfig:this._resizableConfig(n,t)}),s.done(function(t){t&&e.css("backgroundColor",t)}),this._renderDraggable(e,r))},_applyResourceDataAttr:function(e){this.notifyObserver("getResourcesFromItem",{itemData:this._getItemData(e),callback:function(t){t&&(0,h.each)(t,function(t,n){for(var i="data-"+c.default.normalizeKey(t.toLowerCase())+"-",o=0;o<n.length;o++)e.attr(i+c.default.normalizeKey(n[o]),!0)})}})},_resizableConfig:function(e,t){return{area:this._calculateResizableArea(t,e),onResizeStart:function(e){if(this._$currentAppointment=(0,o.default)(e.element),this.invoke("needRecalculateResizableArea")){var t=this._calculateResizableArea(this._$currentAppointment.data("dxAppointmentSettings"),this._$currentAppointment.data("dxItemData"));e.component.option("area",t),e.component._renderDragOffsets(e.event)}this._initialSize={width:e.width,height:e.height},this._initialCoordinates=l.default.locate(this._$currentAppointment)}.bind(this),onResizeEnd:function(e){return this._escPressed?void(e.event.cancel=!0):void this._resizeEndHandler(e)}.bind(this)}},_calculateResizableArea:function(e,t){var n=this.$element().closest(".dx-scrollable-content");return this.notifyObserver("getResizableAppointmentArea",{coordinates:{left:e.left,top:0,groupIndex:e.groupIndex},allDay:e.allDay,callback:function(e){e&&(n=e)}}),n},_resizeEndHandler:function(e){var t=(0,o.default)(e.element),n=this._getItemData(t),i=this.invoke("getStartDate",n,!0),a=this.invoke("getEndDate",n),r=this._getDateRange(e,i,a),s={};this.invoke("setField","startDate",s,new Date(r[0])),this.invoke("setField","endDate",s,new Date(r[1]));var l=(0,g.extend)({},n,s);this.notifyObserver("updateAppointmentAfterResize",{target:n,data:l,$appointment:t})},_getDateRange:function(e,t,n){var i,o,a=this._getItemData(e.element),r=this.invoke("getDeltaTime",e,this._initialSize,a),s=this.invoke("getRenderingStrategyDirection"),l=this.invoke("isAllDay",a),u=this.invoke("needCorrectAppointmentDates")&&!l;return("vertical"!==s||l?this.option("rtlEnabled")?e.handles.right:e.handles.left:e.handles.top)?(i=u?this._correctStartDateByDelta(t,r):t.getTime()-r,o=n.getTime()):(i=t.getTime(),o=u?this._correctEndDateByDelta(n,r):n.getTime()+r),[i,o]},_correctEndDateByDelta:function(e,t){var n=this.invoke("getEndDayHour"),i=this.invoke("getStartDayHour"),o=e.getTime()+t,a=(n-i)*P("hour"),r=Math.ceil(t/a),s=new Date(e);if(s.setHours(n,0,0,0),o>s.getTime()){var l=t-(s.getTime()-e.getTime()),u=new Date(e.setDate(e.getDate()+r));u.setHours(i),o=u.getTime()+l-a*(r-1)}return o},_correctStartDateByDelta:function(e,t){var n=this.invoke("getEndDayHour"),i=this.invoke("getStartDayHour"),o=e.getTime()-t,a=(n-i)*P("hour"),r=Math.ceil(t/a),s=new Date(e);if(s.setHours(i,0,0,0),o<s.getTime()){var l=t-(e.getTime()-s.getTime()),u=new Date(e.setDate(e.getDate()-r));u.setHours(n),o=u.getTime()-l+a*(r-1)}return o},_getAppointmentColor:function(e,t){var n=new T.Deferred;return this.notifyObserver("getAppointmentColor",{itemData:this._getItemData(e),groupIndex:t,callback:function(e){e.done(function(e){n.resolve(e)})}}),n.promise()},_renderDraggable:function(e,t){if(this.option("allowDrag")){var n,i=this,a=this.option("fixedContainer"),r=function(n,a){var r=l.default.locate((0,o.default)(n));i.notifyObserver("correctAppointmentCoordinates",{coordinates:r,allDay:t,isFixedContainer:a,callback:function(e){e&&(r=e)}}),l.default.move(e,r)};this.notifyObserver("getDraggableAppointmentArea",{callback:function(e){e&&(n=e)}}),this._createComponent(e,I.default,{area:n,boundOffset:i._calculateBoundOffset(),immediate:!1,onDragStart:function(t){var n=t.event;i._skipDraggableRestriction(n),i.notifyObserver("hideAppointmentTooltip"),a.append(e),i._$currentAppointment=(0,o.default)(t.element),i._initialSize={width:t.width,height:t.height},i._initialCoordinates=l.default.locate(i._$currentAppointment)},onDrag:function(e){r(e.element)},onDragEnd:function(n){return r(n.element,!0),i._getAppointmentContainer(t).append(e),this._escPressed?void(n.event.cancel=!0):void i._dragEndHandler(n)}})}},_calculateBoundOffset:function(){var e={top:0};return this.notifyObserver("getBoundOffset",{callback:function(t){e=t}}),e},_skipDraggableRestriction:function(e){this.option("rtlEnabled")?e.maxLeftOffset=null:e.maxRightOffset=null,e.maxBottomOffset=null},_dragEndHandler:function(e){var t=(0,o.default)(e.element),n=this._getItemData(t),i=this._initialCoordinates;this.notifyObserver("updateAppointmentAfterDrag",{data:n,$appointment:t,coordinates:i})},_virtualAppointments:{},_processVirtualAppointment:function(e,t,n,i){var o=e.virtual,a=o.index;d.default.isDefined(this._virtualAppointments[a])||(this._virtualAppointments[a]={coordinates:{top:o.top,left:o.left},items:{data:[],colors:[]},isAllDay:!!o.isAllDay,buttonColor:i}),n.settings=[e],this._virtualAppointments[a].items.data.push(n),this._virtualAppointments[a].items.colors.push(i),t.remove()},_renderContentImpl:function(){this.callBase(),this._renderDropDownAppointments()},_renderDropDownAppointments:function(){(0,h.each)(this._virtualAppointments,function(e){var t=this._virtualAppointments[e],n=t.items,i=t.coordinates,o=t.isAllDay?this.option("allDayContainer"):this.$element(),a=i.left,r=this.invoke("getDropDownAppointmentWidth",t.isAllDay),s=this.invoke("getDropDownAppointmentHeight"),l=0;this.option("rtlEnabled")&&(l=r),this.notifyObserver("renderCompactAppointments",{$container:o,coordinates:{top:i.top,left:a+l},items:n,buttonColor:t.buttonColor,itemTemplate:this.option("itemTemplate"),width:r-this.option("_collectorOffset"),height:s,onAppointmentClick:this.option("onItemClick"),isCompact:this.invoke("isAdaptive")||this._isGroupCompact(t),applyOffset:this._isGroupCompact(t)})}.bind(this))},_isGroupCompact:function(e){return!e.isAllDay&&this.invoke("supportCompactDropDownAppointments")},_sortAppointmentsByStartDate:function(e){e.sort(function(e,t){var n=0,i=new Date(this.invoke("getField","startDate",e.settings||e)).getTime(),o=new Date(this.invoke("getField","startDate",t.settings||t)).getTime();return i<o&&(n=-1),i>o&&(n=1),n}.bind(this))},_processRecurrenceAppointment:function(e,t,n){var i=this.invoke("getField","recurrenceRule",e),o={parts:[],indexes:[]};if(i){for(var a=e.settings||e,r=new Date(this.invoke("getField","startDate",a)),s=new Date(this.invoke("getField","endDate",a)),l=s.getTime()-r.getTime(),u=this.invoke("getField","recurrenceException",e),c=this.invoke("getStartViewDate"),d=this.invoke("getEndViewDate"),h=m.default.getDatesByRecurrence({rule:i,exception:u,start:r,end:s,min:c,max:d}),p=e.settings?1:h.length,f=0;f<p;f++){var _=(0,g.extend)({},e,!0);if(h[f]){var v=this._applyStartDateToObj(h[f],{});this._applyEndDateToObj(new Date(h[f].getTime()+l),v),_.settings=v}else _.settings=a;o.parts.push(_),n||this._processLongAppointment(_,o)}o.indexes.push(t)}return o},_processLongAppointment:function(e,t){var n=this.splitAppointmentByDay(e),i=n.length,o=this.invoke("getEndViewDate").getTime(),a=this.invoke("getStartViewDate").getTime(),r=this.invoke("getField","startDateTimeZone",e);if(t=t||{parts:[]},i>1){(0,g.extend)(e,n[0]);for(var s=1;s<i;s++){var l=this.invoke("getField","startDate",n[s].settings).getTime();(l=this.invoke("convertDateByTimezone",l,r))<o&&l>a&&t.parts.push(n[s])}}return t},_reduceRecurrenceAppointments:function(e,t){(0,h.each)(e,function(e,n){t.splice(n-e,1)})},_combineAppointments:function(e,t){t.length&&f.default.merge(e,t),this._sortAppointmentsByStartDate(e)},_applyStartDateToObj:function(e,t){return this.invoke("setField","startDate",t,e),t},_applyEndDateToObj:function(e,t){return this.invoke("setField","endDate",t,e),t},updateDraggablesBoundOffsets:function(){this.option("allowDrag")&&this.$element().find("."+E).each(function(e,t){var n=(0,o.default)(t),i=this._getItemData(n);this.invoke("isAllDay",i)||I.default.getInstance(n).option("boundOffset",this._calculateBoundOffset())}.bind(this))},moveAppointmentBack:function(){var e=this._$currentAppointment,t=this._initialSize,n=this._initialCoordinates;e&&(n&&(l.default.move(e,n),delete this._initialSize),t&&(e.outerWidth(t.width),e.outerHeight(t.height),delete this._initialCoordinates))},focus:function(){var e=this._$currentAppointment;e&&(this.option("focusedElement",(0,_.getPublicElement)(e)),r.default.trigger(this.option("focusedElement"),"focus"))},splitAppointmentByDay:function(e){var t=e.settings||e,n=new Date(this.invoke("getField","startDate",t)),i=u.default.makeDate(n),o=u.default.makeDate(this.invoke("getField","endDate",t)),a=this.invoke("getField","startDateTimeZone",e),r=this.invoke("getField","endDateTimeZone",e),s=this.invoke("getEndViewDate"),l=this.invoke("getStartDayHour"),c=this.invoke("getEndDayHour"),d=this.invoke("appointmentTakesSeveralDays",e),h=[];for(i=this.invoke("convertDateByTimezone",i,a),o=this.invoke("convertDateByTimezone",o,r),i.getHours()<=c&&i.getHours()>=l&&!d&&(h.push(this._applyStartDateToObj(new Date(i),{appointmentData:e})),i.setDate(i.getDate()+1));d&&i.getTime()<o.getTime()-1&&i<s;){var f=new Date(i),g=new Date(i);this._checkStartDate(f,n,l),this._checkEndDate(g,o,c);var _=p.default.deepExtendArraySafe({},e,!0),m={};this._applyStartDateToObj(f,m),this._applyEndDateToObj(g,m),_.settings=m,h.push(_),i.setDate(i.getDate()+1),i.setHours(l)}return h},_checkStartDate:function(e,t,n){!u.default.sameDate(e,t)||e.getHours()<=n?e.setHours(n,0,0,0):e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())},_checkEndDate:function(e,t,n){!u.default.sameDate(e,t)||e.getHours()>n?e.setHours(n,0,0,0):e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}}).include(y.default);(0,v.default)("dxSchedulerAppointments",B),e.exports=B},function(e,t,n){var i=n(2),o=n(5),a=n(26),r=n(142),s=n(0).extend,l=n(8),u=n(249),c=n(118),d=n(9),h=n(24),p=n(66),f=n(174),g=n(15),_=n(33),m=d.addNamespace(h.enter,"dxSchedulerAppointment"),v=d.addNamespace(h.leave,"dxSchedulerAppointment"),y={horizontal:"dx-scheduler-appointment-horizontal",vertical:"dx-scheduler-appointment-vertical"},b={head:"dx-scheduler-appointment-head",body:"dx-scheduler-appointment-body",tail:"dx-scheduler-appointment-tail"},x=p.inherit({_getDefaultOptions:function(){return s(this.callBase(),{data:{},geometry:{top:0,left:0,width:0,height:0},allowDrag:!0,allowResize:!0,reduced:null,isCompact:!1,direction:"vertical",resizableConfig:{},cellHeight:0,cellWidth:0})},_optionChanged:function(e){switch(e.name){case"data":case"geometry":case"allowDrag":case"allowResize":case"reduced":case"sortedIndex":case"isCompact":case"direction":case"resizableConfig":case"cellHeight":case"cellWidth":this._invalidate();break;default:this.callBase(e)}},_resizingRules:{horizontal:function(){var e=this.invoke("getCellWidth"),t=this.invoke("getResizableStep"),n=this.option("rtlEnabled"),i={head:n?"right":"left",body:"",tail:n?"left":"right"},o="left right",a=this.option("reduced");return a&&(o=i[a]),{handles:o,minHeight:0,minWidth:e,step:t}},vertical:function(){var e=this.invoke("getCellHeight");return{handles:"top bottom",minWidth:0,minHeight:e,step:e}}},_render:function(){this.callBase(),this._renderAppointmentGeometry(),this._renderEmptyClass(),this._renderCompactClass(),this._renderReducedAppointment(),this._renderAllDayClass(),this._renderDirection(),this.$element().data("dxAppointmentStartDate",this.option("startDate")),this.$element().attr("title",this.invoke("getField","text",this.option("data"))),this.$element().attr("role","button"),this._renderRecurrenceClass(),this._renderResizable()},_renderAppointmentGeometry:function(){var e=this.option("geometry"),t=this.$element();a.move(t,{top:e.top,left:e.left}),t.css({width:e.width<0?0:e.width,height:e.height<0?0:e.height})},_renderEmptyClass:function(){(this.option("geometry").empty||this.option("isCompact"))&&this.$element().addClass("dx-scheduler-appointment-empty")},_renderReducedAppointment:function(){var e=this.option("reduced");e&&(this.$element().toggleClass("dx-scheduler-appointment-reduced",!0).toggleClass(b[e],!0),this._renderAppointmentReducedIcon())},_renderAppointmentReducedIcon:function(){var e=i("<div>").addClass("dx-scheduler-appointment-reduced-icon").appendTo(this.$element()),t=this._getEndDate(),n=[g.format("dxScheduler-editorLabelEndDate"),": ",_.format(t,"monthAndDay"),", ",_.format(t,"year")].join("");o.off(e,m),o.on(e,m,function(){u.show({target:e,content:n})}),o.off(e,v),o.on(e,v,function(){u.hide()})},_getEndDate:function(){var e=this.invoke("getField","endDate",this.option("data"));return e?new Date(e):e},_renderAllDayClass:function(){this.$element().toggleClass("dx-scheduler-all-day-appointment",!!this.option("allDay"))},_renderRecurrenceClass:function(){var e=this.invoke("getField","recurrenceRule",this.option("data"));r.getRecurrenceRule(e).isValid&&this.$element().addClass("dx-scheduler-appointment-recurrence")},_renderCompactClass:function(){this.$element().toggleClass("dx-scheduler-appointment-compact",!!this.option("isCompact"))},_renderDirection:function(){this.$element().addClass(y[this.option("direction")])},_renderResizable:function(){if(this.option("allowResize")&&!this.option("isCompact")){var e=this._resizingRules[this.option("direction")].apply(this);this.invoke("isGroupedByDate")||(e.stepPrecision="strict"),this._createComponent(this.$element(),f,s(e,this.option("resizableConfig")))}}}).include(c);l("dxSchedulerAppointment",x),e.exports=x},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=i(n(4)),r=i(n(710)),s=i(n(382)),l=i(n(383)),u=i(n(712)),c=i(n(713)),d={horizontal:s.default,horizontalMonth:u.default,horizontalMonthLine:l.default,vertical:r.default,agenda:c.default},h=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.instance=t,n&&this.initRenderingStrategy(n)}return o(e,[{key:"getCellDimensions",value:function(e){this.instance._workSpace&&e.callback(this.instance._workSpace.getCellWidth(),this.instance._workSpace.getCellHeight(),this.instance._workSpace.getAllDayHeight())}},{key:"getGroupOrientation",value:function(e){this.instance._workSpace&&e.callback(this.instance._workSpace._getRealGroupOrientation())}},{key:"initRenderingStrategy",value:function(e){var t=d[e];this._renderingStrategyInstance=new t(this.instance),this.renderingStrategy=e}},{key:"createAppointmentsMap",value:function(e){var t=this;return this.getCellDimensions({callback:function(e,n,i){t.instance._cellWidth=e,t.instance._cellHeight=n,t.instance._allDayCellHeight=i}}),this.getGroupOrientation({callback:function(e){return t.instance._groupOrientation=e}}),this._positionMap=this._renderingStrategyInstance.createTaskPositionMap(e),this._createAppointmentsMapCore(e||[],this._positionMap)}},{key:"_createAppointmentsMapCore",value:function(e,t){var n=this;return e.map(function(e,i){n._renderingStrategyInstance.keepAppointmentSettings()||delete e.settings;var o=t[i];return o.forEach(function(e){e.direction="vertical"!==n.renderingStrategy||e.allDay?"horizontal":"vertical"}),{itemData:e,settings:o,needRepaint:!0,needRemove:!1}})}},{key:"_hasChangesInData",value:function(e){return this.instance.getUpdatedAppointment()===e||this.instance.getUpdatedAppointmentKeys().some(function(t){return e[t.key]===t.value})}},{key:"_hasChangesInSettings",value:function(e,t){if(e.length!==t.length)return!0;for(var n=0;n<e.length;n++){var i=e[n],o=t[n];if(o&&(o.sortedIndex=i.sortedIndex),!a.default.equalByValue(i,o))return!0}return!1}},{key:"_getEqualAppointmentFromList",value:function(e,t){for(var n=0;n<t.length;n++){var i=t[n];if(i.itemData===e.itemData)return i}return null}},{key:"_getDeletedAppointments",value:function(e,t){for(var n=[],i=0;i<t.length;i++){var o=t[i];this._getEqualAppointmentFromList(o,e)||(o.needRemove=!0,n.push(o))}return n}},{key:"getRepaintedAppointments",value:function(e,t){if(0===t.length||"agenda"===this.renderingStrategy)return e;for(var n=0;n<e.length;n++){var i=e[n],o=this._getEqualAppointmentFromList(i,t);o&&(i.needRepaint=this._hasChangesInData(i.itemData)||this._hasChangesInSettings(i.settings,o.settings))}return e.concat(this._getDeletedAppointments(e,t))}},{key:"getRenderingStrategyInstance",value:function(){return this._renderingStrategyInstance}}]),e}();e.exports=h},function(e,t,n){var i=n(256),o=n(0).extend,a=n(1).isNumeric,r=n(16),s=n(22),l=s.dateToMilliseconds,u=i.inherit({getDeltaTime:function(e,t,n){var i=0;if(this.isAllDay(n))i=this._getDeltaWidth(e,t)*l("day");else{var o=e.height-t.height;o<0&&(o=this._correctOnePxGap(o)),i=l("minute")*Math.round(o/this.getDefaultCellHeight()*this.instance.getAppointmentDurationInMinutes())}return i},getAppointmentGeometry:function(e){var t;return t=e.allDay?this._getAllDayAppointmentGeometry(e):this._getVerticalAppointmentGeometry(e),this.callBase(t)},_getItemPosition:function(e){var t=this.isAllDay(e),n=!!this.instance.fire("getField","recurrenceRule",e);if(t)return this.callBase(e);for(var i=this._getAppointmentCoordinates(e),a=[],r=0;r<i.length;r++){var s=this.calculateAppointmentHeight(e,i[r],n),l=this.calculateAppointmentWidth(e,i[r],n),u=s,c=null,d=[],h=i[r].vMax;this._isMultiDayAppointment(i[r],s)&&(c="head",u=this._reduceMultiDayAppointment(s,{top:i[r].top,bottom:h}),d=this._getAppointmentParts({sourceAppointmentHeight:s,reducedHeight:u,width:l},i[r])),o(i[r],{height:u,width:l,allDay:t,appointmentReduced:c}),a=this._getAppointmentPartsPosition(d,i[r],a)}return a},_isMultiDayAppointment:function(e,t){return t>e.vMax-e.top},_reduceMultiDayAppointment:function(e,t){return t.bottom-Math.floor(t.top)},_getAppointmentParts:function(e,t){var n=e.sourceAppointmentHeight-e.reducedHeight,i=e.width,a=[],r=this.instance.fire("getGroupTop",t.groupIndex),s=this.instance.fire("isGroupedByDate")?this.getDefaultCellWidth()*this.instance.fire("getGroupCount"):this.getDefaultCellWidth(),l=t.left+s;if(n){var u=this.getAppointmentMinSize();n<u&&(n=u),r+=this.instance.fire("getOffsetByAllDayPanel",t.groupIndex),a.push(o(!0,{},t,{top:r,left:l,height:n,width:i,appointmentReduced:"tail",rowIndex:++t.rowIndex}))}return a},_correctOnePxGap:function(e){return Math.abs(e)%this.getDefaultCellHeight()&&e--,e},_getMinuteHeight:function(){return this.getDefaultCellHeight()/this.instance.getAppointmentDurationInMinutes()},_getCompactLeftCoordinate:function(e,t){return e+(1+(this.getDefaultCellWidth()||this.getAppointmentMinSize()))*t},_checkLongCompactAppointment:function(e,t){return this._splitLongCompactAppointment(e,t),t},_getVerticalAppointmentGeometry:function(e){if(this.instance.fire("getMaxAppointmentsPerCell")){var t=this._calculateVerticalGeometryConfig(e);return this._customizeVerticalCoordinates(e,t.width,t.appointmentCountPerCell,t.offset)}var n=this._getAppointmentMaxWidth()/e.count,i=e.height,o=e.top,a=e.left+e.index*n;return n<5&&(n=5),{height:i,width:n,top:o,left:a,empty:this._isAppointmentEmpty(i,n)}},_customizeVerticalCoordinates:function(e,t,n,i,o){var a,r,s=e.index,l=Math.max(t/n,t/e.count),u=e.height,c=e.left+e.index*l,d=e.top;return e.isCompact&&(a=this.getCompactAppointmentDefaultWidth(),r=this.getCompactAppointmentLeftOffset(),d=e.top+r,c=e.left+(s-n)*(a+r)+r,l=a,t=a,this._markAppointmentAsVirtual(e,o)),{height:u,width:l,top:d,left:c,empty:this._isAppointmentEmpty(u,t)}},_calculateVerticalGeometryConfig:function(e){var t=this.instance.fire("getMaxAppointmentsPerCell"),n=this._getOffsets(),i=this._getAppointmentDefaultOffset(),o=this._getAppointmentCount(t,e),r=this._getDefaultRatio(e,o),s=this._getMaxWidth();o||(o=e.count,r=(s-n.unlimited)/s);var l=(1-r)*s;return("auto"===t||a(t))&&(r=1,s-=i,l=0),{width:r*s,appointmentCountPerCell:o,offset:l}},_getMaxWidth:function(){return this.getDefaultCellWidth()||this.invoke("getCellWidth")},isAllDay:function(e){return!!this.instance.fire("getField","allDay",e)||this.instance.appointmentTakesAllDay(e)},_getAppointmentMaxWidth:function(){var e="desktop"!==r.current().deviceType||this.instance.fire("isAdaptive")?50:25,t=this.getDefaultCellWidth()-e;return t>0?t:this.getAppointmentMinSize()},calculateAppointmentWidth:function(e,t,n){if(!this.isAllDay(e))return 0;var i=new Date(this.startDate(e,!1,t)),o=this.endDate(e,t,n),a=this.getDefaultCellWidth()||this.getAppointmentMinSize();i=s.trimTime(i);var r=(o.getTime()-i.getTime())/l("hour"),u=Math.ceil(r/24)*a;return this.cropAppointmentWidth(u,a)},calculateAppointmentHeight:function(e,t,n){var i=this.endDate(e,t,n),o=this.startDate(e,!1,t),a=this.instance.fire("getField","allDay",e);if(this.isAllDay(e))return 0;var r=this._getAppointmentDurationInMs(o,i,a);return this._adjustDurationByDaylightDiff(r,o,i)/l("minute")*this._getMinuteHeight()},getDirection:function(){return"vertical"},_sortCondition:function(e,t){var n=e.allDay-t.allDay,i=e.allDay&&t.allDay,o="vertical"===this.instance._groupOrientation&&i?this._columnCondition(e,t):this._rowCondition(e,t),a=n||o;return this._fixUnstableSorting(a,e,t)},hasAllDayAppointments:function(){return!0},_getAllDayAppointmentGeometry:function(e){var t=this._calculateGeometryConfig(e);return this._customizeCoordinates(e,t.height,t.appointmentCountPerCell,t.offset,!0)},_calculateGeometryConfig:function(e){this.instance._allowResizing()&&this.instance._allowAllDayResizing()||(e.skipResizing=!0);var t=this.callBase(e);return e.count<=this._getDynamicAppointmentCountPerCell().allDay&&(t.offset=0),t},_getAppointmentCount:function(e,t){return"auto"===e||1!==t.count||a(e)?this._getMaxAppointmentCountPerCellByType(t.allDay):t.count},_getDefaultRatio:function(e,t){return e.count>this.instance.option("_appointmentCountPerCell")?.65:1},_getOffsets:function(){return{unlimited:5,auto:20}},_getMaxHeight:function(){return this.getDefaultAllDayCellHeight()||this.getAppointmentMinSize()},_needVerticalGroupBounds:function(e){return!e},_needHorizontalGroupBounds:function(){return!1}});e.exports=u},function(e,t,n){var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function(e){return e&&e.__esModule?e:{default:e}}(n(381)),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),i(t,[{key:"getDropDownAppointmentWidth",value:function(e,t){return this.getDropDownButtonAdaptiveSize()}},{key:"getDropDownButtonAdaptiveSize",value:function(){return 28}},{key:"getCompactAppointmentTopOffset",value:function(e){var t=this.getRenderingStrategy();return t.hasAllDayAppointments()&&e?(t.getDefaultAllDayCellHeight()-t.getDropDownButtonAdaptiveSize())/2:this.getRenderingStrategy().getDefaultCellHeight()-40}},{key:"getCompactAppointmentLeftOffset",value:function(){return(this.getRenderingStrategy().getDefaultCellWidth()-28)/2}},{key:"getAppointmentDefaultOffset",value:function(){return 35}},{key:"getDynamicAppointmentCountPerCell",value:function(){return this.getRenderingStrategy().hasAllDayAppointments()?{allDay:0,simple:this._calculateDynamicAppointmentCountPerCell()||this._getAppointmentMinCount()}:0}},{key:"getDropDownAppointmentHeight",value:function(){return 28}},{key:"_getAppointmentMinCount",value:function(){return 0}},{key:"_getAppointmentDefaultWidth",value:function(){return this.getRenderingStrategy().hasAllDayAppointments()?30:function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getAppointmentDefaultWidth",this).call(this)}},{key:"_calculateDynamicAppointmentCountPerCell",value:function(){return Math.floor(this.getRenderingStrategy()._getAppointmentMaxWidth()/this.getRenderingStrategy()._getAppointmentDefaultWidth())}}]),t}();e.exports=a},function(e,t,n){var i=n(4).noop,o=n(0).extend,a=n(383),r=a.inherit({_getAppointmentParts:function(e,t,n){var i=e.sourceAppointmentWidth-e.reducedWidth,a=e.height,r=this._getFullWeekAppointmentWidth(t.groupIndex),s=this._getMaxAppointmentWidth(n),l=Math.ceil(i/r)-1,u=Math.floor(i%r)||r,c=[],d=e.reducedWidth+u,h=t.top+this.getDefaultCellHeight(),p=this._calculateMultiWeekAppointmentLeftOffset(t.hMax,r);"vertical"===this.instance._groupOrientation&&(p+=this.instance.fire("getWorkSpaceDateTableOffset"));for(var f=0;f<l&&!(d>s);f++)c.push(o(!0,{},t,{top:h,left:p,height:a,width:r,appointmentReduced:"body",rowIndex:++t.rowIndex,cellIndex:0})),h+=this.getDefaultCellHeight(),d+=r;return u&&(this._isRtl()&&(p+=r-u),c.push(o(!0,{},t,{top:h,left:p,height:a,width:u,appointmentReduced:"tail",rowIndex:++t.rowIndex,cellIndex:0}))),c},_calculateMultiWeekAppointmentLeftOffset:function(e,t){return this._isRtl()?e:e-t},_correctRtlCoordinatesParts:i,_getFullWeekAppointmentWidth:function(e){return this.instance.fire("getFullWeekAppointmentWidth",{groupIndex:e,callback:function(e){this._maxFullWeekAppointmentWidth=e}.bind(this)}),this._maxFullWeekAppointmentWidth},_getAppointmentDefaultHeight:function(){return this._getAppointmentHeightByTheme()},_getAppointmentMinHeight:function(){return this._getAppointmentDefaultHeight()},_checkLongCompactAppointment:function(e,t){return this._splitLongCompactAppointment(e,t),t},_columnCondition:function(e,t){var n=this._isSomeEdge(e,t),i=this._normalizeCondition(e.left,t.left,n),o=this._normalizeCondition(e.top,t.top,n),a=this._normalizeCondition(e.cellPosition,t.cellPosition,n);return o||(i||(a||e.isStart-t.isStart))},createTaskPositionMap:function(e){return this.callBase(e,!0)},_getSortedPositions:function(e){return this.callBase(e,!0)},_customizeAppointmentGeometry:function(e){var t=this._calculateGeometryConfig(e);return this._customizeCoordinates(e,t.height,t.appointmentCountPerCell,t.offset)},_getDefaultRatio:function(){return.6},_getOffsets:function(){return{unlimited:26,auto:30}},getDropDownAppointmentWidth:function(e){if(this.instance.fire("isAdaptive"))return this.getDropDownButtonAdaptiveSize();var t=e>1?60:36;return this.getDefaultCellWidth()-t},needCorrectAppointmentDates:function(){return!1},_needVerticalGroupBounds:function(){return!1},_needHorizontalGroupBounds:function(){return!0}});e.exports=r},function(e,t,n){var i=n(4).noop,o=n(22),a=n(3).each,r=n(13),s=n(256).inherit({ctor:function(e){this.instance=e},getAppointmentMinSize:i,getDeltaTime:i,keepAppointmentSettings:function(){return!0},getAppointmentGeometry:function(e){return e},createTaskPositionMap:function(e){if(e.length){var t=this.instance.fire("getAgendaVerticalStepHeight"),n=this.instance.fire("groupAppointmentsByResources",e),i=[];a(n,function(e,t){var n=[],o=[];a(t,function(e,t){var i=this.instance.getAppointmentsInstance()._processRecurrenceAppointment(t,e),a=null;i.indexes.length||(a={parts:[]},a=this.instance.getAppointmentsInstance()._processLongAppointment(t),n=n.concat(a.parts)),n=n.concat(i.parts),o=o.concat(i.indexes)}.bind(this)),this.instance.getAppointmentsInstance()._reduceRecurrenceAppointments(o,t),this.instance.getAppointmentsInstance()._combineAppointments(t,n),i=i.concat(t)}.bind(this)),Array.prototype.splice.apply(e,[0,e.length].concat(i))}var o=[],r=0;return e.forEach(function(e,i){o.push([{height:t,width:"100%",sortedIndex:r++,groupIndex:this._calculateGroupIndex(i,n)}])}.bind(this)),o},_calculateGroupIndex:function(e,t){var n,i=0;for(var o in t){var a=t[o].length;if(e>=i&&e<i+a){n=Number(o);break}i+=a}return n},_getDeltaWidth:i,_correctRtlCoordinatesParts:i,_getAppointmentMaxWidth:function(){return this.getDefaultCellWidth()},_needVerifyItemSize:function(){return!1},_isRtl:function(){return this.instance.option("rtlEnabled")},_getAppointmentParts:i,_reduceMultiWeekAppointment:i,calculateAppointmentHeight:function(){return 0},calculateAppointmentWidth:function(){return 0},isAppointmentGreaterThan:i,isAllDay:function(){return!1},_sortCondition:i,_rowCondition:i,_columnCondition:i,_findIndexByKey:i,_getMaxNeighborAppointmentCount:i,_markAppointmentAsVirtual:i,getDropDownAppointmentWidth:i,getDefaultCellWidth:function(){return this._defaultWidth},getCompactAppointmentDefaultWidth:i,getCompactAppointmentLeftOffset:i,getCompactAppointmentTopOffset:i,calculateRows:function(e,t,n,i){this._rows=[];var s={indexes:[],parts:[]},l=this.instance.fire("groupAppointmentsByResources",e);return n=o.trimTime(new Date(n)),a(l,function(e,o){var l=[];if(!o.length)return this._rows.push([]),!0;a(o,function(e,t){var n=this.instance.fire("getField","startDate",t),o=this.instance.fire("getField","endDate",t);this.instance.fire("fixWrongEndDate",t,n,o),i&&delete t.settings;var a=this.instance.getAppointmentsInstance()._processRecurrenceAppointment(t,e,!1);s.parts=s.parts.concat(a.parts),s.indexes=s.indexes.concat(a.indexes)}.bind(this)),this.instance.getAppointmentsInstance()._reduceRecurrenceAppointments(s.indexes,o),r.merge(o,s.parts);for(var u=o.length,c=0;c<t;c++){var d=new Date(n);d.setMilliseconds(d.getMilliseconds()+864e5*c),void 0===l[c]&&(l[c]=0);for(var h=0;h<u;h++){var p=o[h].settings||o[h],f=this.instance.fire("appointmentTakesSeveralDays",o[h]),g=this.instance.fire("getField","recurrenceRule",o[h]);(this.instance.fire("dayHasAppointment",d,p,!0)||!g&&f&&this.instance.fire("dayHasAppointment",d,o[h],!0))&&(l[c]+=1)}}this._rows.push(l)}.bind(this)),this._rows},_iterateRow:function(e,t,n){for(var i=0;i<e.length;i++)if(t.counter=t.counter+e[i],t.counter>=n){t.indexInRow=i;break}},getDateByIndex:function(e,t,n){var i={counter:0,indexInRow:0};e++;for(var o=0;o<t.length&&(this._iterateRow(t[o],i,e),!i.indexInRow);o++);return new Date(new Date(n).setDate(n.getDate()+i.indexInRow))},getAppointmentDataCalculator:function(){return function(e,t){var n=e.index(),i=this.instance.getStartViewDate(),o=this.getDateByIndex(n,this._rows,i),a=new Date(t);return{startDate:new Date(o.setHours(a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()))}}.bind(this)}});e.exports=s},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.CompactAppointmentsHelper=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=i(n(2)),r=i(n(34)),s=i(n(26)),l=i(n(15)),u=i(n(86)),c=i(n(6)),d="dx-scheduler-appointment-collector";t.CompactAppointmentsHelper=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.instance=t,this.elements=[]}return o(e,[{key:"render",value:function(e){var t=e.$container,n=e.width,i=e.height,o=e.items,a=e.isCompact,r=e.applyOffset,s=e.coordinates,l=e.buttonColor,u=this._createTemplate(o.data.length,a),c=this._createCompactButton(t,n,i,u,o,a,r,s).$element();return this._makeBackgroundColor(c,o.colors,l),this._makeBackgroundDarker(c),this.elements.push(c),c.data("items",this._createAppointmentsData(o)),c}},{key:"clear",value:function(){this.elements.forEach(function(e){e.detach(),e.remove()}),this.elements=[]}},{key:"_createAppointmentsData",value:function(e){return e.data.map(function(t,n){return{data:t,color:e.colors[n]}})}},{key:"_onButtonClick",value:function(e){var t=(0,a.default)(e.element);this.instance.showAppointmentTooltipCore(t,t.data("items"))}},{key:"_getCollectorOffset",value:function(e){return this.instance.fire("getCellWidth")-e-this._getCollectorRightOffset()}},{key:"_getCollectorRightOffset",value:function(){return this.instance.getRenderingStrategyInstance()._isCompactTheme()?1:5}},{key:"_makeBackgroundDarker",value:function(e){e.css("boxShadow","inset "+e.get(0).getBoundingClientRect().width+"px 0 0 0 rgba(0, 0, 0, 0.3)")}},{key:"_makeBackgroundColor",value:function(e,t,n){c.default.when.apply(null,t).done(function(){this._makeBackgroundColorCore(e,n,arguments)}.bind(this))}},{key:"_makeBackgroundColorCore",value:function(e,t,n){var i=!0,o=void 0;t&&t.done(function(t){if(n.length){o=n[0];for(var a=1;a<n.length;a++){if(o!==n[a]){i=!1;break}o=t}}t&&i&&e.css("backgroundColor",t)}.bind(this))}},{key:"_setPosition",value:function(e,t){s.default.move(e,{top:t.top,left:t.left})}},{key:"_createCompactButton",value:function(e,t,n,i,o,a,s,l){var u=this,c=this._createCompactButtonElement(e,t,a,s,l);return this.instance._createComponent(c,r.default,{type:"default",width:t,height:n,onClick:function(e){return u._onButtonClick(e)},template:this._renderTemplate(i,o,a)})}},{key:"_createCompactButtonElement",value:function(e,t,n,i,o){var r=(0,a.default)("<div>").addClass(d).toggleClass("dx-scheduler-appointment-collector-compact",n).appendTo(e),s=i?this._getCollectorOffset(t):0;return this._setPosition(r,{top:o.top,left:o.left+s}),r}},{key:"_renderTemplate",value:function(e,t,n){return new u.default(function(i){return e.render({model:{appointmentCount:t.data.length,isCompact:n},container:i.container})})}},{key:"_createTemplate",value:function(e,t){return this._initButtonTemplate(e,t),this.instance._getAppointmentTemplate("appointmentCollectorTemplate")}},{key:"_initButtonTemplate",value:function(e,t){var n=this;this.instance._defaultTemplates.appointmentCollector=new u.default(function(i){return n._createButtonTemplate(e,(0,a.default)(i.container),t)})}},{key:"_createButtonTemplate",value:function(e,t,n){var i=n?e:l.default.getFormatter("dxScheduler-moreAppointments")(e);return t.append((0,a.default)("<span>").text(i)).addClass("dx-scheduler-appointment-collector-content")}}]),e}()},function(e,t,n){var i=n(2),o=n(76),a=n(189),r=n(6).Deferred,s=null,l=function(){s&&(s.$element().remove(),s=null)};t.show=function(e){return l(),(s=function(e){return new a(i("<div>").appendTo(e&&e.container||o.value()),e)}(e)).show()},t.hide=function(){return s?s.hide().done(l).promise():(new r).resolve()}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(2)),a=i(n(140)),r=i(n(56)),s=i(n(15)),l=i(n(19)),u=i(n(1)),c=i(n(5));n(717),n(718),n(321),n(320);var d={_appointmentForm:{},_lockDateShiftFlag:!1,_validateAppointmentFormDate:function(e,t,n){!(null===t||!!t)&&(null===n||!!n)&&e.option("value",n)},_getAllDayStartDate:function(e){return e.setHours(0,0,0,0)},_getAllDayEndDate:function(e){var t=new Date(e);return t.setDate(e.getDate()+1),t},_updateLabelLocation:function(e){var t=this._appointmentForm;t._initialized&&t.isReady()&&t.option("labelLocation",e<608?"top":"left")},create:function(e,t,n,i){var o=this;return this._appointmentForm=e(t,a.default,{items:this._editors,readOnly:n,showValidationSummary:!0,scrollingEnabled:!0,formData:i,colCount:2,showColonAfterLabel:!1,screenByWidth:function(){var e=t.parent().outerWidth();return o._updateLabelLocation(e),e<460?"xs":"lg"}}),this._appointmentForm},prepareAppointmentFormEditors:function(e,t,n){var i=this;return this._editors=[{dataField:t.textExpr,editorType:"dxTextBox",colSpan:2,label:{text:s.default.format("dxScheduler-editorLabelTitle")}},{dataField:t.startDateExpr,editorType:"dxDateBox",label:{text:s.default.format("dxScheduler-editorLabelStartDate")},validationRules:[{type:"required"}],editorOptions:{type:e?"date":"datetime",width:"100%",calendarOptions:{firstDayOfWeek:n.option("firstDayOfWeek")},onValueChanged:function(e){i._validateAppointmentFormDate(e.component,e.value,e.previousValue);var n=r.default.deserializeDate(e.value),o=r.default.deserializeDate(e.previousValue),a=i._appointmentForm.getEditor(t.endDateExpr),s=r.default.deserializeDate(a.option("value"));if(!i._appointmentForm._lockDateShiftFlag&&s&&s<n){var l=s.getTime()-o.getTime();a.option("value",new Date(n.getTime()+l))}}}},{dataField:t.startDateTimeZoneExpr,editorType:"dxSchedulerTimezoneEditor",colSpan:2,label:{text:" ",showColon:!1},editorOptions:{observer:n},visible:!1},{dataField:t.endDateExpr,editorType:"dxDateBox",label:{text:s.default.format("dxScheduler-editorLabelEndDate")},validationRules:[{type:"required"}],editorOptions:{type:e?"date":"datetime",width:"100%",calendarOptions:{firstDayOfWeek:n.option("firstDayOfWeek")},onValueChanged:function(e){i._validateAppointmentFormDate(e.component,e.value,e.previousValue);var n=r.default.deserializeDate(e.value),o=r.default.deserializeDate(e.previousValue),a=i._appointmentForm.getEditor(t.startDateExpr),s=r.default.deserializeDate(a.option("value"));if(!i._appointmentForm._lockDateShiftFlag&&n&&s>n){var l=o?o.getTime()-s.getTime():0;a.option("value",new Date(n.getTime()-l))}}}},{dataField:t.endDateTimeZoneExpr,editorType:"dxSchedulerTimezoneEditor",colSpan:2,label:{text:" ",showColon:!1},editorOptions:{observer:n},visible:!1},{dataField:t.allDayExpr,editorType:"dxSwitch",colSpan:2,label:{text:s.default.format("dxScheduler-allDay")},editorOptions:{onValueChanged:function(e){var o=e.value,a=i._appointmentForm.getEditor(t.startDateExpr),s=i._appointmentForm.getEditor(t.endDateExpr);if(a&&s){if(a.option("type",o?"date":"datetime"),s.option("type",o?"date":"datetime"),!a.option("value"))return;var l=r.default.deserializeDate(a.option("value"));o?(a.option("value",i._getAllDayStartDate(l)),s.option("value",i._getAllDayEndDate(l))):(l.setHours(n.option("startDayHour")),a.option("value",l),s.option("value",n._workSpace.calculateEndDate(r.default.deserializeDate(a.option("value")))))}}}},{itemType:"empty",colSpan:2},{dataField:t.descriptionExpr,editorType:"dxTextArea",colSpan:2,label:{text:s.default.format("dxScheduler-editorLabelDescription")}},{itemType:"empty",colSpan:2},{dataField:t.recurrenceRuleExpr,editorType:"dxRecurrenceEditor",colSpan:2,editorOptions:{observer:n,firstDayOfWeek:n.option("firstDayOfWeek"),onValueChanged:function(e){var t=i._getRecurrenceRule(n,i._appointmentForm);n.fire("recurrenceEditorVisibilityChanged",t)},onContentReady:function(e){var t=(0,o.default)(e.element).closest(".dx-field-item").find(".dx-field-item-label");c.default.off(t,l.default.name),c.default.on(t,l.default.name,function(){e.component.toggle()})}},cssClass:"dx-scheduler-recurrence-rule-item",label:{text:s.default.format("dxScheduler-editorLabelRecurrence")}}],t.recurrenceRuleExpr||this._editors.splice(9,2),this._editors},_getRecurrenceRule:function(e,t){return!u.default.isEmptyObject(t)&&!!e.fire("getField","recurrenceRule",t.option("formData"))},concatResources:function(e){this._editors=this._editors.concat(e)},checkEditorsType:function(e,t,n,i){var o=e.itemOption(t),a=e.itemOption(n);if(o&&a){var r=o.editorOptions,s=a.editorOptions;r.type=s.type=i?"date":"datetime",e.itemOption(t,"editorOptions",r),e.itemOption(n,"editorOptions",s)}},updateFormData:function(e,t){e._lockDateShiftFlag=!0,e.option("formData",t),e._lockDateShiftFlag=!1}};e.exports=d},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=i(n(2)),r=i(n(42)),s=i(n(8)),l=i(n(142)),u=i(n(10)),c=n(1),d=n(0),h=n(13),p=n(3),f=i(n(49)),g=i(n(104)),_=i(n(316)),m=i(n(116)),v=i(n(95)),y=i(n(192)),b=i(n(15)),x=i(n(33)),w=i(n(22)),C=i(n(118)),k="-label",S="-wrapper",I="dx-recurrence-numberbox-interval",T="dx-recurrence-repeat-end",D="dx-recurrence-repeat-end-container",E="dx-recurrence-radiogroup-repeat-type",A="dx-recurrence-repeat-on",O="dx-field",P="dx-field-label",B="dx-field-value",M=[{text:function(){return b.default.format("dxScheduler-recurrenceNever")},value:"never"},{text:function(){return b.default.format("dxScheduler-recurrenceDaily")},value:"daily"},{text:function(){return b.default.format("dxScheduler-recurrenceWeekly")},value:"weekly"},{text:function(){return b.default.format("dxScheduler-recurrenceMonthly")},value:"monthly"},{text:function(){return b.default.format("dxScheduler-recurrenceYearly")},value:"yearly"}],R=[{text:function(){return b.default.format("dxScheduler-recurrenceNever")},value:"never"},{text:function(){return b.default.format("dxScheduler-recurrenceRepeatOnDate")},value:"until"},{text:function(){return b.default.format("dxScheduler-recurrenceRepeatCount")},value:"count"}],F=["SU","MO","TU","WE","TH","FR","SA"],V=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._recurrenceRule=l.default.getRecurrenceRule(t).rule}return o(e,[{key:"makeRules",value:function(e){this._recurrenceRule=l.default.getRecurrenceRule(e).rule}},{key:"makeRule",value:function(e,t){return t?void((0,c.isDefined)(e)&&("until"===e&&delete this._recurrenceRule.count,"count"===e&&delete this._recurrenceRule.until,this._recurrenceRule[e]=t)):void delete this._recurrenceRule[e]}},{key:"repeatableRule",value:function(){var e=this._recurrenceRule;return"count"in e?"count":"until"in e?"until":null}},{key:"recurrenceString",value:function(){return l.default.getRecurrenceString(this._recurrenceRule)}},{key:"rules",value:function(){return this._recurrenceRule}},{key:"daysFromByDayRule",value:function(){return l.default.daysFromByDayRule(this._recurrenceRule)}}]),e}(),L=f.default.inherit({_getDefaultOptions:function(){return(0,d.extend)(this.callBase(),{value:null,startDate:new Date,firstDayOfWeek:void 0})},_getFirstDayOfWeek:function(){return(0,c.isDefined)(this.option("firstDayOfWeek"))?this.option("firstDayOfWeek"):x.default.firstDayOfWeekIndex()},_createComponent:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._extendConfig(n,{readOnly:this.option("readOnly")}),this.callBase(e,t,n)},_init:function(){this.callBase(),this._recurrenceRule=new V(this.option("value"))},_render:function(){this.callBase(),this.$element().addClass("dx-recurrence-editor"),this._$container=(0,a.default)("<div>").addClass("dx-recurrence-editor-container").appendTo(this.$element()),this._renderEditors(),this._renderContainerVisibility(this.option("value"))},_renderContainerVisibility:function(e){e?(this._$container.show(),u.default.triggerShownEvent(this._$container)):this._$container.hide()},_changeValueByVisibility:function(e){this._renderContainerVisibility(e),e?this.option("value")||this._handleDefaults():(this._recurrenceRule.makeRules(""),this.option("value",""))},_handleDefaults:function(){this._recurrenceRule.makeRule("freq","daily"),this._changeEditorValue()},_changeEditorValue:function(){this.option("value",this._recurrenceRule.recurrenceString()||"")},_renderEditors:function(){this._renderFreqEditor(),this._renderIntervalEditor(),this._renderRepeatOnEditor(),this._renderRepeatEndEditor()},_renderFreqEditor:function(){var e=this,t=(this._recurrenceRule.rules().freq||"never").toLowerCase(),n=(0,a.default)("<div>").addClass("dx-recurrence-selectbox-freq").addClass(B);this._freqEditor=this._createComponent(n,v.default,{field:"freq",items:M,value:t,valueExpr:"value",displayExpr:"text",layout:"horizontal",onValueChanged:function(t){e._valueChangedHandler(t),e.invoke("resizePopup")}});var i=(0,a.default)("<div>").addClass(O).addClass("dx-recurrence-freq-field").append(n);this.$element().prepend(i)},_renderIntervalEditor:function(){var e=this._recurrenceRule.rules().freq||"daily",t=(0,a.default)("<div>").addClass(I).addClass(B),n=(0,a.default)("<div>").text(b.default.format("dxScheduler-recurrenceRepeatEvery")).addClass(I+k).addClass(P);this._$intervalTypeLabel=(0,a.default)("<div>").text(b.default.format("dxScheduler-recurrenceRepeat"+e.charAt(0).toUpperCase()+e.substr(1).toLowerCase())).addClass(E+k);var i=this._recurrenceRule.rules().interval||1;this._intervalEditor=this._createComponent(t,m.default,{field:"interval",min:1,value:i,showSpinButtons:!0,useLargeSpinButtons:!1,onValueChanged:this._valueChangedHandler.bind(this)});var o=(0,a.default)("<div>").addClass(O).addClass("dx-recurrence-interval-field").append(n,t,this._$intervalTypeLabel);this._$container.append(o),this._setAriaDescribedBy(this._intervalEditor,n)},_renderRepeatOnEditor:function(){var e=(this._recurrenceRule.rules().freq||"").toLowerCase();return(0,c.isDefined)(this._$repeatOnEditor)||(this._$repeatOnEditor=(0,a.default)("<div>").addClass(A).addClass(O).appendTo(this._$container)),e&&"daily"!==e?((0,c.isDefined)(this._$repeatOnLabel)||this._renderRepeatOnLabel(this._$repeatOnEditor),"weekly"!==e||this._$repeatOnWeek?"monthly"!==e||this._$repeatOnMonth?"yearly"!==e||this._$repeatOnYear?void 0:void this._renderRepeatOnYearEditor():void this._renderRepeatOnMonthEditor():void this._renderRepeatOnWeekEditor()):(this._clearRepeatOnEditor(),void this._clearRepeatOnLabel())},_renderRepeatOnLabel:function(e){this._$repeatOnLabel=(0,a.default)("<div>").text(b.default.format("dxScheduler-recurrenceRepeatOn")).addClass(A+k).addClass(P),e.append(this._$repeatOnLabel)},_clearRepeatOnEditor:function(){(0,c.isDefined)(this._$repeatOnWeek)&&(this._$repeatOnWeek.detach(),this._$repeatOnWeek.remove(),delete this._$repeatOnWeek),(0,c.isDefined)(this._$repeatOnMonth)&&(this._$repeatOnMonth.detach(),this._$repeatOnMonth.remove(),delete this._$repeatOnMonth),(0,c.isDefined)(this._$repeatOnYear)&&(this._$repeatOnYear.detach(),this._$repeatOnYear.remove(),delete this._$repeatOnYear)},_clearRepeatOnLabel:function(){(0,c.isDefined)(this._$repeatOnLabel)&&(this._$repeatOnLabel.detach(),this._$repeatOnLabel.remove(),delete this._$repeatOnLabel)},_renderRepeatOnWeekEditor:function(){this._clearRepeatOnEditor(),this._$repeatOnWeek=(0,a.default)("<div>").addClass("dx-recurrence-repeat-on-week").addClass(B).appendTo(this._$repeatOnEditor);var e=x.default.getDayNames("short"),t=this._daysOfWeekByRules();this._daysOfWeek=[];for(var n=0;n<7;n++){var i=(this._getFirstDayOfWeek()+n)%7,o=e[i].toUpperCase(),r=F[i],s=(0,a.default)("<div>").addClass("dx-recurrence-checkbox-day-of-week"),l=this._createComponent(s,g.default,{text:o,value:(0,h.inArray)(r,t)>-1,onValueChanged:this._repeatByDayValueChangeHandler.bind(this)});this._daysOfWeek[i]=l,this._$repeatOnWeek.append(s)}},_daysOfWeekByRules:function(){var e=this._recurrenceRule.daysFromByDayRule();return e.length||(e=[F[this.option("startDate").getDay()]]),e},_repeatByDayValueChangeHandler:function(){var e="";(0,p.each)(this._daysOfWeek,function(t,n){if(n.option("value")){var i=F[t];e=e?e+","+i:i}}),this._recurrenceRule.makeRule("byday",e),this._changeEditorValue()},_renderRepeatOnMonthEditor:function(){this._clearRepeatOnEditor(),this._$repeatOnMonth=(0,a.default)("<div>").addClass("dx-recurrence-repeat-on-month").addClass(B).appendTo(this._$repeatOnEditor),this._renderDayOfMonthEditor(this._$repeatOnMonth)},_renderRepeatOnYearEditor:function(){this._clearRepeatOnEditor(),this._$repeatOnYear=(0,a.default)("<div>").addClass("dx-recurrence-repeat-on-year").addClass(B).appendTo(this._$repeatOnEditor);for(var e=[],t=x.default.getMonthNames("wide"),n=0;n<12;n++)e[n]={value:String(n+1),text:t[n]};var i=this._monthOfYearByRules(),o=(0,a.default)("<div>").addClass("dx-recurrence-selectbox-month-of-year").appendTo(this._$repeatOnYear);this._monthEditor=this._createComponent(o,v.default,{field:"bymonth",items:e,value:i,displayExpr:"text",valueExpr:"value",onValueChanged:function(e){this._valueChangedHandler.call(this,e);var t=parseInt(e.component.option("value"));if(this._dayEditor&&t){var n=new Date((new Date).getFullYear(),parseInt(t),0).getDate();2===t&&(n=29),this._dayEditor.option("max",n)}}.bind(this)}),this._renderDayOfMonthEditor(this._$repeatOnYear)},_monthOfYearByRules:function(){var e=this._recurrenceRule.rules().bymonth;return e||(e=this.option("startDate").getMonth()+1),e},_renderDayOfMonthEditor:function(e){var t=this._dayOfMonthByRules(),n=(0,a.default)("<div>").addClass("dx-recurrence-numberbox-day-of-month");this._dayEditor=this._createComponent(n,m.default,{field:"bymonthday",min:1,max:31,showSpinButtons:!0,useLargeSpinButtons:!1,value:t,onValueChanged:this._valueChangedHandler.bind(this)}),e.append(n)},_dayOfMonthByRules:function(){var e=this._recurrenceRule.rules().bymonthday;return e||(e=this.option("startDate").getDate()),e},_setAriaDescribedBy:function(e,t){var n="label-"+new r.default;e.setAria("describedby",n),e.setAria("id",n,t)},_repeatEndSwitchValueChangeHandler:function(e){var t=e.value;this._renderRepeatEndVisibility(t),this._recurrenceRule.rules().count||this._recurrenceRule.rules().until||!t?t||(this._recurrenceRule.makeRule("count",""),this._recurrenceRule.makeRule("until",""),this._changeEditorValue()):this._handleRepeatEndDefaults()},_renderRepeatEndVisibility:function(e){e?this._$repeatEndEditor.show():this._$repeatEndEditor.hide()},_handleRepeatEndDefaults:function(){this._recurrenceRule.makeRule("count",1),this._changeEditorValue()},_renderRepeatEndEditor:function(e){(e=(0,c.isDefined)(e)?e:this._recurrenceRule.repeatableRule())||(e="count"),(0,c.isDefined)(this._$repeatEndEditor)||((0,a.default)("<div>").text(b.default.format("dxScheduler-recurrenceEnd")).addClass(D+k).addClass(P).appendTo(this._$container),this._$repeatEndEditor=(0,a.default)("<div>").addClass(D).addClass(O).appendTo(this._$container),this._renderRepeatEndTypeEditor())},_renderRepeatEndTypeEditor:function(){var e=this,t=this._recurrenceRule.repeatableRule()||"never";this._$repeatTypeEditor=(0,a.default)("<div>").addClass(E).addClass(B).appendTo(this._$repeatEndEditor),this._repeatTypeEditor=this._createComponent(this._$repeatTypeEditor,_.default,{items:R,value:t,displayExpr:"text",valueExpr:"value",itemTemplate:function(t){return"count"===t.value?e._renderRepeatCountEditor():"until"===t.value?e._renderRepeatUntilEditor():e._renderDefaultRepeatEnd()},layout:"vertical",onValueChanged:this._repeatTypeValueChangedHandler.bind(this)}),this._disableRepeatEndParts(t)},_renderDefaultRepeatEnd:function(){var e=(0,a.default)("<div>").addClass(T+S);return(0,a.default)("<div>").text(b.default.format("dxScheduler-recurrenceNever")).addClass(T+k).appendTo(e),e},_repeatTypeValueChangedHandler:function(e){var t=e.value;this._disableRepeatEndParts(t),"until"===t&&this._recurrenceRule.makeRule(t,this._getUntilValue()),"count"===t&&this._recurrenceRule.makeRule(t,this._repeatCountEditor.option("value")),"never"===t&&(this._recurrenceRule.makeRule("count",""),this._recurrenceRule.makeRule("until","")),this._changeEditorValue()},_disableRepeatEndParts:function(e){"until"===e&&(this._repeatCountEditor.option("disabled",!0),this._repeatUntilDate.option("disabled",!1)),"count"===e&&(this._repeatCountEditor.option("disabled",!1),this._repeatUntilDate.option("disabled",!0)),"never"===e&&(this._repeatCountEditor.option("disabled",!0),this._repeatUntilDate.option("disabled",!0))},_renderRepeatCountEditor:function(){var e=this._recurrenceRule.rules().count||1,t=(0,a.default)("<div>").addClass(T+S);return(0,a.default)("<div>").text(b.default.format("dxScheduler-recurrenceAfter")).addClass(T+k).appendTo(t),this._$repeatCountEditor=(0,a.default)("<div>").addClass("dx-recurrence-numberbox-repeat-count").addClass(B).appendTo(t),(0,a.default)("<div>").text(b.default.format("dxScheduler-recurrenceRepeatCount")).addClass(T+k).appendTo(t),this._repeatCountEditor=this._createComponent(this._$repeatCountEditor,m.default,{field:"count",min:1,showSpinButtons:!0,useLargeSpinButtons:!1,value:e,onValueChanged:this._repeatCountValueChangeHandler.bind(this)}),t},_repeatCountValueChangeHandler:function(e){if("count"===this._recurrenceRule.repeatableRule()){var t=e.value;this._recurrenceRule.makeRule("count",t),this._changeEditorValue()}},_formatUntilDate:function(e){return this._recurrenceRule.rules().until&&w.default.sameDate(this._recurrenceRule.rules().until,e)?e:w.default.setToDayEnd(e)},_renderRepeatUntilEditor:function(){var e=this._recurrenceRule.rules().until||this._formatUntilDate(new Date),t=(0,a.default)("<div>").addClass(T+S);return(0,a.default)("<div>").text(b.default.format("dxScheduler-recurrenceOn")).addClass(T+k).appendTo(t),this._$repeatDateEditor=(0,a.default)("<div>").addClass("dx-recurrence-datebox-until-date").addClass(B).appendTo(t),this._repeatUntilDate=this._createComponent(this._$repeatDateEditor,y.default,{field:"until",value:e,type:"date",onValueChanged:this._repeatUntilValueChangeHandler.bind(this),calendarOptions:{firstDayOfWeek:this._getFirstDayOfWeek()}}),t},_repeatUntilValueChangeHandler:function(e){if("until"===this._recurrenceRule.repeatableRule()){var t=this._formatUntilDate(new Date(e.value));this._repeatUntilDate.option("value",t),this._recurrenceRule.makeRule("until",t),this._changeEditorValue()}},_valueChangedHandler:function(e){var t=e.component.option("value"),n=e.component.option("field"),i=!0;"freq"===n&&"never"===t?(i=!1,this.option("value","")):(this._recurrenceRule.makeRule(n,t),this._makeRepeatOnRule(n,t),this._changeEditorValue()),this._renderContainerVisibility(i)},_makeRepeatOnRule:function(e,t){"freq"===e&&("daily"===t&&(this._recurrenceRule.makeRule("byday",""),this._recurrenceRule.makeRule("bymonth",""),this._recurrenceRule.makeRule("bymonthday","")),"weekly"===t&&(this._recurrenceRule.makeRule("byday",this._daysOfWeekByRules()),this._recurrenceRule.makeRule("bymonth",""),this._recurrenceRule.makeRule("bymonthday","")),"monthly"===t&&(this._recurrenceRule.makeRule("bymonthday",this._dayOfMonthByRules()),this._recurrenceRule.makeRule("bymonth",""),this._recurrenceRule.makeRule("byday","")),"yearly"===t&&(this._recurrenceRule.makeRule("bymonthday",this._dayOfMonthByRules()),this._recurrenceRule.makeRule("bymonth",this._monthOfYearByRules()),this._recurrenceRule.makeRule("byday","")))},_optionChanged:function(e){switch(e.name){case"value":this._recurrenceRule.makeRules(e.value),this._repeatTypeEditor.option("value",this._recurrenceRule.repeatableRule()||"never"),this._renderRepeatEndEditor(),this._renderRepeatOnEditor(),this._changeEditorsValues(this._recurrenceRule.rules()),this.callBase(e);break;case"startDate":this._clearRepeatOnEditor(),this._renderRepeatOnEditor(),this._makeRepeatOnRule("freq",this._recurrenceRule.rules().freq),(0,c.isDefined)(this._recurrenceRule.recurrenceString())&&this._changeEditorValue();break;case"firstDayOfWeek":this._clearRepeatOnEditor(),this._renderRepeatOnEditor(),this._$repeatDateEditor&&this._repeatUntilDate.option("calendarOptions.firstDayOfWeek",this._getFirstDayOfWeek());break;case"visible":this._changeValueByVisibility(e.value),this.callBase(e);break;default:this.callBase(e)}},_changeEditorsValues:function(e){this._changeCheckBoxesValue(!!e.byday),this._freqEditor.option("value",(e.freq||"never").toLowerCase()),this._changeRepeatTypeLabel(),this._intervalEditor.option("value",e.interval),this._changeRepeatCountValue(),this._changeRepeatUntilValue(),this._changeDayOfMonthValue(),this._changeMonthOfYearValue()},_changeRepeatTypeLabel:function(){var e=this.$element().find("."+E+k);if(e.length){var t=this._recurrenceRule.rules().freq||"daily";(0,p.each)(e,function(e,n){(0,a.default)(n).text(b.default.format("dxScheduler-recurrenceRepeat"+t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()))})}},_changeRepeatCountValue:function(){if(this._$repeatCountEditor){var e=this._recurrenceRule.rules().count||1;this._repeatCountEditor.option("value",e)}},_changeRepeatUntilValue:function(){this._$repeatDateEditor&&this._repeatUntilDate.option("value",this._getUntilValue())},_getUntilValue:function(){return this._recurrenceRule.rules().until||this._formatUntilDate(new Date)},_changeCheckBoxesValue:function(e){if(this._$repeatOnWeek&&e){var t=this._daysOfWeekByRules();(0,p.each)(this._daysOfWeek,function(e,n){var i=F[e];n.option("value",(0,h.inArray)(i,t)>-1)})}},_changeDayOfMonthValue:function(){if(this._$repeatOnMonth||this._$repeatOnYear){var e=this._dayOfMonthByRules()||1;this._dayEditor.option("value",e)}},_changeMonthOfYearValue:function(){if(this._$repeatOnYear){var e=this._monthOfYearByRules()||1;this._monthEditor.option("value",e)}},toggle:function(){this._freqEditor.focus()},setAria:function(){this._switchEditor&&this._switchEditor.setAria(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1])}}).include(C.default);(0,s.default)("dxRecurrenceEditor",L),e.exports=L},function(e,t,n){var i=n(2),o=n(8),a=n(0).extend,r=n(118),s=n(15),l=n(49),u=n(95),c=l.inherit({_getDefaultOptions:function(){return a(this.callBase(),{value:null})},_createComponent:function(e,t,n){return n=n||{},this._extendConfig(n,{readOnly:this.option("readOnly")}),this.callBase(e,t,n)},_init:function(){this.callBase(),this.$element().addClass("dx-timezone-editor")},_render:function(){this._renderDisplayNameEditor(),this._renderIanaIdEditor(),this.callBase()},_renderDisplayNameEditor:function(){var e=s.format("dxScheduler-noTimezoneTitle"),t=this.invoke("getTimezoneDisplayNameById",this.option("value"))||e;this._displayNameEditor=this._renderSelectBox("dx-timezone-display-name",{items:[e].concat(this.invoke("getTimezonesDisplayName")),value:t,onOptionChanged:function(e){"value"===e.name&&this._processDisplayNameChanging(e.value)}.bind(this)})},_renderIanaIdEditor:function(){this._ianaIdEditor=this._renderSelectBox("dx-timezone-iana-id",{items:this._idsDataSource(),value:this.option("value"),onOptionChanged:function(e){"value"===e.name&&this.option("value",e.value)}.bind(this),valueExpr:"id",displayExpr:"displayName",disabled:this._calculateIanaIdEditorDisabledState()})},_renderSelectBox:function(e,t){t=t||{};var n=i("<div>").addClass(e),o=this._createComponent(n,u,t);return this.$element().append(n),o},_idsDataSource:function(){return this.invoke("getSimilarTimezones",this.option("value"))},_calculateIanaIdEditorDisabledState:function(){return!this.option("value")},_processDisplayNameChanging:function(e){var t=this.invoke("getTimezonesIdsByDisplayName",e),n=t.length?t[0].id:null;this.option("value",n),this._ianaIdEditor.option({value:n,items:this._idsDataSource(t),disabled:this._calculateIanaIdEditorDisabledState()})},_optionChanged:function(e){var t=e.value;switch(e.name){case"value":this._ianaIdEditor.option({value:t,items:this._idsDataSource()}),t?this._displayNameEditor.option("value",this.invoke("getTimezoneDisplayNameById",t)):this._displayNameEditor.option("value",s.format("dxScheduler-noTimezoneTitle")),this.callBase(e);break;case"readOnly":this._displayNameEditor&&this._displayNameEditor.option("readOnly",t),this._ianaIdEditor&&this._ianaIdEditor.option("readOnly",t);break;default:this.callBase(e)}}}).include(r);o("dxSchedulerTimezoneEditor",{},c),e.exports=c},function(e,t,n){e.exports=n(720)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},r=i(n(2)),s=i(n(5)),l=n(0),u=i(n(1)),c=n(6),d=i(n(8)),h=i(n(17)),p=i(n(287)),f=n(721),g=i(n(722)),_=i(n(384)),m=i(n(723)),v=i(n(724)),y=i(n(725)),b=i(n(726)),x=i(n(731)),w=i(n(732)),C=n(137),k=n(136),S=i(n(389)),I=i(n(733)),T=i(n(285)),D=i(n(284)),E="dx-filemanager",A=E+"-inactive-area",O=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,h.default),o(t,[{key:"_initTemplates",value:function(){}},{key:"_initMarkup",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this._onSelectedFileOpenedAction=this._createActionByOption("onSelectedFileOpened"),this._provider=this._getFileProvider(),this._currentFolder=null,this._commandManager=new f.FileManagerCommandManager(this.option("permissions")),this.$element().addClass(E);var e=(0,r.default)("<div>").appendTo(this.$element());this._toolbar=this._createComponent(e,y.default,{commandManager:this._commandManager,itemViewMode:this.option("itemView").mode}),this._createAdaptivityControl(),this._createEditing(),this._initCommandManager(),this._setItemsViewAreaActive(!1)}},{key:"_createAdaptivityControl",value:function(){var e=this,t=(0,r.default)("<div>").addClass("dx-filemanager-container").appendTo(this.$element());this._adaptivityControl=this._createComponent(t,w.default,{drawerTemplate:function(t){return e._createFilesTreeView(t)},contentTemplate:function(t){return e._createItemsPanel(t)},onAdaptiveStateChanged:function(t){return e._onAdaptiveStateChanged(t)}})}},{key:"_createEditing",value:function(){var e=this,t=(0,r.default)("<div>").addClass("dx-filemanager-editing-container").appendTo(this.$element());this._editing=this._createComponent(t,b.default,{model:{provider:this._provider,getFolders:this._getFilesTreeViewItems.bind(this),getCurrentFolder:this.getCurrentFolder.bind(this),getMultipleSelectedItems:this._getMultipleSelectedItems.bind(this)},onSuccess:function(t){var n=t.message,i=t.updatedOnlyFiles;e._showSuccess(n),e._refreshData(i)},onError:function(t){var n=t.message;return e._showError(n)},onCreating:function(){return e._setItemsViewAreaActive(!1)}})}},{key:"_createItemsPanel",value:function(e){this._$itemsPanel=(0,r.default)("<div>").addClass("dx-filemanager-items-panel").appendTo(e),this._createBreadcrumbs(this._$itemsPanel),this._createItemView(this._$itemsPanel)}},{key:"_createFilesTreeView",value:function(e){var t=this,n=(0,r.default)("<div>").addClass("dx-filemanager-dirs-panel").appendTo(e);this._filesTreeView=this._createComponent(n,_.default,{contextMenu:this._createContextMenu(),getItems:this._getFilesTreeViewItems.bind(this),onCurrentFolderChanged:this._onFilesTreeViewCurrentFolderChanged.bind(this),onClick:function(){return t._setItemsViewAreaActive(!1)}})}},{key:"_createItemView",value:function(e,t){var n=this,i=this.option("itemView"),o={selectionMode:this.option("selectionMode"),contextMenu:this._createContextMenu(),getItems:this._getItemViewItems.bind(this),onError:function(e){var t=e.error;return n._showError(t)},onSelectionChanged:this._onItemViewSelectionChanged.bind(this),onSelectedItemOpened:this._onSelectedItemOpened.bind(this),onSelectedFileOpened:this._createActionByOption("onSelectedFileOpened"),getItemThumbnail:this._getItemThumbnailInfo.bind(this),customizeDetailColumns:this.option("customizeDetailColumns")},a=(0,r.default)("<div>").appendTo(e),l="thumbnails"===(t=t||i.mode)?v.default:m.default;this._itemView=this._createComponent(a,l,o),s.default.on(a,"click",this._onItemViewClick.bind(this))}},{key:"_createBreadcrumbs",value:function(e){var t=this,n=(0,r.default)("<div>").appendTo(e);this._breadcrumbs=this._createComponent(n,x.default,{path:"",onPathChanged:function(e){return t.setCurrentFolderPath(e.newPath)},onOutsideClick:function(){return t._clearSelection()}})}},{key:"_createContextMenu",value:function(){var e=(0,r.default)("<div>").appendTo(this.$element());return this._createComponent(e,g.default,{commandManager:this._commandManager})}},{key:"_initCommandManager",value:function(){var e=this,t=(0,l.extend)(this._editing.getCommandActions(),{refresh:function(){return e._refreshData()},thumbnails:function(){return e._switchView("thumbnails")},details:function(){return e._switchView("details")},clear:function(){return e._clearSelection()},showDirsPanel:function(){return e._adaptivityControl.toggleDrawer()}});this._commandManager.registerActions(t)}},{key:"_onFilesTreeViewCurrentFolderChanged",value:function(e){this.setCurrentFolder(this._filesTreeView.getCurrentFolder())}},{key:"_onItemViewSelectionChanged",value:function(){this._updateToolbar()}},{key:"_onAdaptiveStateChanged",value:function(e){var t=e.enabled;this._commandManager.setCommandEnabled("showDirsPanel",t),this._updateToolbar()}},{key:"_updateToolbar",value:function(){var e=this.getSelectedItems();this._toolbar.update(e)}},{key:"_setItemsViewAreaActive",value:function(e){if(this._itemsViewAreaActive!==e){this._itemsViewAreaActive=e;var t=null,n=null;e?(t=this._itemView.$element(),n=this._filesTreeView.$element()):(t=this._filesTreeView.$element(),n=this._itemView.$element()),t.removeClass(A),n.addClass(A),e||this._clearSelection()}}},{key:"_tryOpen",value:function(e){if(!e){var t=this.getSelectedItems();t.length>0&&(e=t[0])}if(e&&e.isDirectory){var n=e.createClone();e.isParentFolder&&(n.name=(0,C.getName)(e.relativeName),n.relativeName=e.relativeName),this.setCurrentFolder(n)}}},{key:"_switchView",value:function(e){this._disposeWidget(this._itemView.option("contextMenu")),this._disposeWidget(this._itemView),this._createItemView(this._$itemsPanel,e)}},{key:"_disposeWidget",value:function(e){e.dispose(),e.$element().remove()}},{key:"_clearSelection",value:function(){this._itemView.clearSelection()}},{key:"_getMultipleSelectedItems",value:function(){return this._itemsViewAreaActive?this.getSelectedItems():[this.getCurrentFolder()]}},{key:"_showSuccess",value:function(e){this._showNotification(e,!0)}},{key:"_showError",value:function(e){this._showNotification(e,!1)}},{key:"_showNotification",value:function(e,t){(0,p.default)({message:e,width:450},t?"success":"error",5e3)}},{key:"_loadItemViewData",value:function(){this._itemView.refreshData()}},{key:"_refreshData",value:function(e){e||this._filesTreeView.refreshData(),this._loadItemViewData()}},{key:"_getFilesTreeViewItems",value:function(e){var t=e?e.relativeName:"";return this._provider.getFolders(t)}},{key:"_getItemViewItems",value:function(){var e=this.getCurrentFolderPath();if(null===e)return(new c.Deferred).promise();var t=this.option("itemView"),n=t.showFolders?"":"file",i=this._provider.getItems(e,n);if(t.showParentFolder&&e){var o=(0,C.getParentPath)(e),a=this._createFolderItemByPath(o);a.isParentFolder=!0,a.name="..",i=(0,c.when)(i).done(function(e){return e.unshift(a)})}return i}},{key:"_onItemViewClick",value:function(){this._setItemsViewAreaActive(!0)}},{key:"_getFileProvider",value:function(){var e=this.option("fileProvider");if(e||(e=[]),Array.isArray(e))return new S.default({data:e});if("string"==typeof e)return new I.default({url:e});if(e instanceof k.FileProvider)return e;if(e.type)switch(e.type){case"webapi":return new D.default(e);case"onedrive":return new T.default(e)}return new S.default(e)}},{key:"_getItemThumbnailInfo",value:function(e){var t=this.option("customizeThumbnail"),n=u.default.isFunction(t)?t(e):e.thumbnail;return n?{thumbnail:n,cssClass:"dx-filemanager-item-custom-thumbnail"}:{thumbnail:this._getPredefinedThumbnail(e)}}},{key:"_getPredefinedThumbnail",value:function(e){if(e.isDirectory)return"folder";switch(e.getExtension()){case".txt":return"doc";case".rtf":case".doc":case".docx":case".odt":return"doc";case".xls":case".xlsx":case".ods":return"exportxlsx";case".ppt":case".pptx":case".odp":return"doc";case".pdf":return"exportpdf";case".png":case".gif":case".jpg":case".jpeg":case".ico":case".bmp":return"image";default:return"doc"}}},{key:"_createFolderItemByPath",value:function(e){var t=(0,C.getParentPath)(e),n=(0,C.getName)(e);return new k.FileManagerItem(t,n,!0)}},{key:"_getDefaultOptions",value:function(){return(0,l.extend)(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{fileProvider:null,selectionMode:"multiple",itemView:{mode:"details",showFolders:!0,showParentFolder:!0},customizeThumbnail:null,customizeDetailColumns:null,onSelectedFileOpened:null,permissions:{create:!1,copy:!1,move:!1,remove:!1,rename:!1,upload:!1}})}},{key:"_optionChanged",value:function(e){switch(e.name){case"fileProvider":case"selectionMode":case"itemView":case"customizeThumbnail":case"customizeDetailColumns":case"permissions":this.repaint();break;case"onSelectedFileOpened":this._onSelectedFileOpenedAction=this._createActionByOption("onSelectedFileOpened");break;default:a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"executeCommand",value:function(e){this._commandManager.executeCommand(e)}},{key:"setCurrentFolderPath",value:function(e){var t=this._createFolderItemByPath(e);this.setCurrentFolder(t)}},{key:"getCurrentFolderPath",value:function(){return this.getCurrentFolder()?this.getCurrentFolder().relativeName:null}},{key:"setCurrentFolder",value:function(e){var t=e?e.relativeName:null;t!==this.getCurrentFolderPath()&&(this._currentFolder=e,this._filesTreeView.setCurrentFolderPath(t),this._loadItemViewData(),this._breadcrumbs.option("path",t||""))}},{key:"getCurrentFolder",value:function(){return this._currentFolder}},{key:"getSelectedItems",value:function(){return this._itemView.getSelectedItems()}},{key:"_onSelectedItemOpened",value:function(e){var t=e.item;t.isDirectory||this._onSelectedFileOpenedAction({fileItem:t}),this._tryOpen(t)}}]),t}();(0,d.default)("dxFileManager",O),e.exports=O},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FileManagerCommandManager=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(0),a=n(1);t.FileManagerCommandManager=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._actions={},this._permissions=t||{},this._initCommands()}return i(e,[{key:"_initCommands",value:function(){var e=this;this._commands=[{name:"create",text:"New folder",icon:"plus",enabled:this._permissions.create,noFileItemRequired:!0},{name:"rename",text:"Rename",enabled:this._permissions.rename,isSingleFileItemCommand:!0},{name:"move",text:"Move",enabled:this._permissions.move},{name:"copy",text:"Copy",enabled:this._permissions.copy},{name:"delete",text:"Delete",icon:"trash",enabled:this._permissions.remove},{name:"download",text:"Download",icon:"download",enabled:!1},{name:"upload",text:"Upload files",icon:"upload",enabled:this._permissions.upload,noFileItemRequired:!0},{name:"refresh",text:"Refresh",icon:"refresh",enabled:!0,noFileItemRequired:!0},{name:"thumbnails",text:"Thumbnails View",enabled:!0,noFileItemRequired:!0},{name:"details",text:"Details View",enabled:!0,noFileItemRequired:!0},{name:"clear",text:"Clear selection",icon:"remove",enabled:!0},{name:"showDirsPanel",icon:"menu",enabled:!1,noFileItemRequired:!0}],this._commandMap={},this._commands.forEach(function(t){e._commandMap[t.name]=t})}},{key:"registerActions",value:function(e){this._actions=(0,o.extend)(this._actions,e)}},{key:"executeCommand",value:function(e,t){var n=(0,a.isString)(e)?e:e.name,i=this._actions[n];i&&i(t)}},{key:"setCommandEnabled",value:function(e,t){var n=this.getCommandByName(e);n&&(n.enabled=t)}},{key:"getCommandByName",value:function(e){return this._commandMap[e]}},{key:"isCommandAvailable",value:function(e,t){var n=this.getCommandByName(e);if(!n||!n.enabled)return!1;if(n.noFileItemRequired)return!0;var i=t&&t.length||0;return!(0===i||t.some(function(e){return e.isRoot()||e.isParentFolder})||n.isSingleFileItemCommand&&1!==i)}}]),e}()},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},r=i(n(2)),s=n(0),l=n(1),u=i(n(17)),c=i(n(322)),d=["create","upload","rename","move","copy","delete",{commandName:"refresh",beginGroup:!0}],h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,u.default),o(t,[{key:"_initMarkup",value:function(){var e=this;this._createContextMenuHiddenAction(),this._isVisible=!1;var n=(0,r.default)("<div>").appendTo(this.$element());this._contextMenu=this._createComponent(n,c.default,{cssClass:"dx-filemanager-context-menu",showEvent:"",onItemClick:function(t){var n=t.itemData.commandName;return e._onContextMenuItemClick(n)},onHidden:function(){return e._onContextMenuHidden()}}),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this)}},{key:"showAt",value:function(e,t,n){this._isVisible&&this._raiseContextMenuHidden(),this._isVisible=!0;var i=this.createContextMenuItems(e),o={of:t,at:"top left",my:"top left",offset:""};n?o.offset=n.offsetX+" "+n.offsetY:(o.my="left top",o.at="left bottom"),this._contextMenu.option({dataSource:i,target:t,position:o}),this._contextMenu.show()}},{key:"createContextMenuItems",value:function(e){var t=this;this._targetFileItems=e;var n=[];return d.forEach(function(i){var o=(0,l.isString)(i)?i:i.commandName;if(t._commandManager.isCommandAvailable(o,e)){var a=t._createMenuItemByCommandName(o);(0,l.isObject)(i)&&(a=(0,s.extend)(!0,a,i)),n.push(a)}}),n}},{key:"_createMenuItemByCommandName",value:function(e){var t=this,n=this._commandManager.getCommandByName(e),i=n.text,o=n.icon;return{commandName:e,text:i,icon:o,onItemClick:function(){return t._onContextMenuItemClick(e)}}}},{key:"_onContextMenuItemClick",value:function(e){this._commandManager.executeCommand(e,this._targetFileItems)}},{key:"_createContextMenuHiddenAction",value:function(){this._contextMenuHiddenAction=this._createActionByOption("onContextMenuHidden")}},{key:"_onContextMenuHidden",value:function(){this._isVisible=!1,this._raiseContextMenuHidden()}},{key:"_raiseContextMenuHidden",value:function(){this._contextMenuHiddenAction()}},{key:"_getDefaultOptions",value:function(){return(0,s.extend)(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{commandManager:null,onContextMenuHidden:null})}},{key:"_optionChanged",value:function(e){switch(e.name){case"commandManager":this.repaint();break;case"onContextMenuHidden":this._createContextMenuHiddenAction();break;default:a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_commandManager",get:function(){return this.option("commandManager")}}]),t}();e.exports=h},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=i(n(2)),r=i(n(1)),s=i(n(325)),l=i(n(135)),u=i(n(387)),c=i(n(386)),d=n(137),h=["name","isDirectory","size","thumbnail","dateModified"],p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,u.default),o(t,[{key:"_initMarkup",value:function(){var e=this;this._createFilesView(),this._contextMenu.option("onContextMenuHidden",function(){return e._onContextMenuHidden()}),function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this)}},{key:"_createFilesView",value:function(){var e=this.option("selectionMode");this._filesView=this._createComponent("<div>",s.default,{hoverStateEnabled:!0,selection:{mode:e},allowColumnResizing:!0,scrolling:{mode:"virtual"},showColumnLines:!1,showRowLines:!1,columnHidingEnabled:!0,columns:this._createColumns(),onRowPrepared:this._onRowPrepared.bind(this),onContextMenuPreparing:this._onContextMenuPreparing.bind(this),onSelectionChanged:this._raiseSelectionChanged.bind(this)}),this.$element().addClass("dx-filemanager-details").append(this._filesView.$element()),this._loadFilesViewData()}},{key:"_createFilesViewStore",value:function(){return new l.default({key:"relativeName",load:this._getItems.bind(this)})}},{key:"_loadFilesViewData",value:function(){this._filesView.option("dataSource",{store:this._createFilesViewStore()})}},{key:"_createColumns",value:function(){var e=[{dataField:"thumbnail",caption:"",width:64,alignment:"center",cellTemplate:this._createThumbnailColumnCell.bind(this)},{dataField:"name",cellTemplate:this._createNameColumnCell.bind(this)},{dataField:"dateModified",caption:"Date Modified",width:110,hidingPriority:1},{dataField:"size",caption:"File Size",width:90,alignment:"right",hidingPriority:0,calculateCellValue:this._calculateSizeColumnCellValue.bind(this)}],t=this.option("customizeDetailColumns");if(r.default.isFunction(t)){e=t(e);for(var n=0;n<e.length;n++)h.indexOf(e[n].dataField)<0&&(e[n].dataField="dataItem."+e[n].dataField)}return e}},{key:"_onFileItemActionButtonClick",value:function(e){var t=e.component,n=e.element;e.event.stopPropagation();var i=t.$element().closest(this._getItemSelector()).data("item");this._ensureItemSelected(i),this._showContextMenu(this.getSelectedItems(),n),this._activeFileActionsButton=t,this._activeFileActionsButton.setActive(!0)}},{key:"_onContextMenuHidden",value:function(){this._activeFileActionsButton&&this._activeFileActionsButton.setActive(!1)}},{key:"_getItemThumbnailCssClass",value:function(){return"dx-filemanager-details-item-thumbnail"}},{key:"_getItemSelector",value:function(){return".dx-data-row"}},{key:"_onItemDblClick",value:function(e){var t=(0,a.default)(e.currentTarget).data("item");this._raiseSelectedItemOpened(t)}},{key:"_onRowPrepared",value:function(e){"data"===e.rowType&&(0,a.default)(e.rowElement).data("item",e.data)}},{key:"_onContextMenuPreparing",value:function(e){var t=null;if(e.row&&"data"===e.row.rowType){var n=e.row.data;this._ensureItemSelected(n),t=this.getSelectedItems()}e.items=this._contextMenu.createContextMenuItems(t)}},{key:"_createThumbnailColumnCell",value:function(e,t){this._getItemThumbnailContainer(t.data).appendTo(e)}},{key:"_createNameColumnCell",value:function(e,t){var n=this,i=(0,a.default)("<div>");(0,a.default)(e).append(t.data.name,i),this._createComponent(i,c.default,{onClick:function(e){return n._onFileItemActionButtonClick(e)}})}},{key:"_calculateSizeColumnCellValue",value:function(e){return e.isDirectory?"":(0,d.getDisplayFileSize)(e.size)}},{key:"_ensureItemSelected",value:function(e){if(!this._filesView.isRowSelected(e.relativeName)){var t=this._filesView.getController("selection").isSelectionWithCheckboxes();this._filesView.selectRows([e.relativeName],t)}}},{key:"refreshData",value:function(){this._loadFilesViewData()}},{key:"clearSelection",value:function(){this._filesView.clearSelection()}},{key:"getSelectedItems",value:function(){return this._filesView.getSelectedRowsData()}}]),t}();e.exports=p},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},u=i(n(2)),c=n(0),d=n(6),h=i(n(5)),p=n(9),f=n(160),g=n(137),_=i(n(387)),m="dx-filemanager-thumbnails-item",v="dx-filemanager-item-focused",y="dxFileManager_thumbnails",b=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,_.default),s(t,[{key:"_init",value:function(){this._items=[],this._currentLoadOperationId=0,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this)}},{key:"_initMarkup",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this);var e="multiple"===this.option("selectionMode"),n={onSelectionChanged:this._raiseSelectionChanged.bind(this)},i=e?w:x;this._selectionController=new i(n),this._$itemViewContainer=(0,u.default)("<div>").addClass("dx-filemanager-thumbnails-container"),this._$viewPort=(0,u.default)("<div>").addClass("dx-filemanager-thumbnails-view-port"),this._$viewPort.append(this._$itemViewContainer),this.$element().addClass("dx-filemanager-thumbnails"),this.$element().append(this._$viewPort);var o=(0,p.addNamespace)(f.name,y),a=(0,p.addNamespace)("click",y);h.default.on(this.$element(),o,this._onContextMenu.bind(this)),h.default.on(this.$element(),a,this._onClick.bind(this)),this._loadItems()}},{key:"_supportedKeys",value:function(){return(0,c.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_supportedKeys",this).call(this),{rightArrow:function(e){this._beforeKeyProcessing(e),this._processMoveArrow(1,!0,e)},leftArrow:function(e){this._beforeKeyProcessing(e),this._processMoveArrow(-1,!0,e)},upArrow:function(e){this._beforeKeyProcessing(e),this._processMoveArrow(-1,!1,e)},downArrow:function(e){this._beforeKeyProcessing(e),this._processMoveArrow(1,!1,e)},home:function(e){this._beforeKeyProcessing(e),this._selectItemByIndex(0,!0,e)},end:function(e){this._beforeKeyProcessing(e),this._selectItemByIndex(this._items.length-1,!0,e)},pageUp:function(e){this._beforeKeyProcessing(e),this._processPageChange(!0,e)},pageDown:function(e){this._beforeKeyProcessing(e),this._processPageChange(!1,e)},space:function(e){this._beforeKeyProcessing(e),this._selectionController.invertFocusedItemSelection()},enter:function(e){this._beforeKeyProcessing(e),this.tryOpen()},A:function(e){this._beforeKeyProcessing(e),e.ctrlKey&&this._selectAll()}})}},{key:"_beforeKeyProcessing",value:function(e){e.preventDefault(),this._resetLayoutModel()}},{key:"_processMoveArrow",value:function(e,t,n){var i=this._getFocusedItem();if(i){if(!t){var o=this._getLayoutModel();if(!o)return;e*=o.itemPerRowCount}var a=i._state.index+e;this._selectItemByIndex(a,!0,n)}}},{key:"_processPageChange",value:function(e,t){var n=this._getFocusedItem();if(n){var i=this._getLayoutModel();if(i){var o=this._createItemLayoutModel(n._state.index),a=e?i.rowPerPageRate:-i.rowPerPageRate,r=o.itemRowIndex-a,s=(e?Math.ceil:Math.floor)(r)*i.itemPerRowCount+o.itemColumnIndex;s<0?s=0:s>=this._items.length&&(s=this._items.length-1),this._selectItemByIndex(s,!0,t)}}}},{key:"_onClick",value:function(e){var t=(0,u.default)(e.target).closest(this._getItemSelector());t.length>0?this._selectItemByItemElement(t,e):this.clearSelection()}},{key:"_onContextMenu",value:function(e){e.preventDefault(),this._onClick(e);var t=this.getSelectedItems();this._showContextMenu(t,e.target,e)}},{key:"_selectItemByItemElement",value:function(e,t){var n=e.data("index");this._selectItemByIndex(n,!1,t)}},{key:"_getItemThumbnailCssClass",value:function(){return"dx-filemanager-thumbnails-item-thumbnail"}},{key:"_getItemSelector",value:function(){return"."+m}},{key:"_onItemDblClick",value:function(e){var t=(0,u.default)(e.currentTarget).data("index"),n=this._items[t];this._raiseSelectedItemOpened(n)}},{key:"_scrollToItem",value:function(e){var t=this._getLayoutModel();if(t){var n=Math.floor(e._state.index/t.itemPerRowCount)*t.itemHeight,i=n+t.itemHeight,o=t.viewPortScrollTop;n<t.viewPortScrollTop?o=n:i>t.viewPortScrollBottom&&(o=i-t.viewPortHeight),this._$viewPort.scrollTop(o)}}},{key:"_resetLayoutModel",value:function(){this._layoutModel=null}},{key:"_getLayoutModel",value:function(){return this._layoutModel||(this._layoutModel=this._createLayoutModel()),this._layoutModel}},{key:"_createLayoutModel",value:function(){if(0===this._items.length)return null;var e=this._items[0]._state.$element,t=e.outerWidth(!0);if(0===t)return null;var n=e.outerHeight(!0),i=this._$itemViewContainer.innerWidth(),o=this._$viewPort.innerHeight(),a=this._$viewPort.scrollTop();return{itemWidth:t,itemHeight:n,viewPortWidth:i,viewPortHeight:o,viewPortScrollTop:a,viewPortScrollBottom:a+o,itemPerRowCount:Math.floor(i/t),rowPerPageRate:o/n}}},{key:"_createItemLayoutModel",value:function(e){var t=this._getLayoutModel();if(!t)return null;var n=Math.floor(e/t.itemPerRowCount),i=e%t.itemPerRowCount,o=n*t.itemHeight;return{itemRowIndex:n,itemColumnIndex:i,itemTop:o,itemBottom:o+t.itemHeight}}},{key:"_selectAll",value:function(){this._selectionController.selectAll()}},{key:"_selectItem",value:function(e,t,n){this._selectionController.selectItem(e,n),t&&this._scrollToItem(e)}},{key:"_selectItemByIndex",value:function(e,t,n){if(e>=0&&e<this._items.length){var i=this._items[e];this._selectItem(i,t,n)}}},{key:"_getFocusedItem",value:function(){return this._selectionController.getFocusedItem()}},{key:"_loadItems",value:function(){var e=this,t=this._getUniqueId();this._currentLoadOperationId=t,(0,d.when)(this._getItems()).then(function(n){e._currentLoadOperationId===t&&e._applyItems(n||[])},function(n){e._currentLoadOperationId===t&&e._raiseOnError(n)})}},{key:"_applyItems",value:function(e){this._items=e,this._selectionController.setItems(e),this._renderItems(e)}},{key:"_renderItems",value:function(e){this._$itemViewContainer.empty();for(var t=0;t<e.length;t++){var n=e[t];n._state={index:t,selected:!1,$element:null},this._renderItem(n)}}},{key:"_renderItem",value:function(e){var t=(0,u.default)("<div>").addClass(m).attr("title",this._getTooltipText(e)).data("index",e._state.index),n=(0,u.default)("<div>").addClass("dx-filemanager-thumbnails-item-content"),i=this._getItemThumbnailContainer(e);h.default.on(i,"dragstart",this._disableDragging);var o=(0,u.default)("<div>").addClass("dx-filemanager-thumbnails-item-spacer"),a=(0,u.default)("<div>").addClass("dx-filemanager-thumbnails-item-name").text(e.name);t.append(n),n.append(i,o,a),this._$itemViewContainer.append(t),e._state.$element=t}},{key:"_getTooltipText",value:function(e){if(e.tooltipText)return e.tooltipText;var t=e.name+"\r\n";return e.isDirectory||(t+="Size: "+(0,g.getDisplayFileSize)(e.size)+"\r\n"),t+"Date Modified: "+e.dateModified}},{key:"_getUniqueId",value:function(){return Date.now()+"_"+Math.round(1e5*Math.random())}},{key:"_disableDragging",value:function(){return!1}},{key:"_getDefaultOptions",value:function(){return(0,c.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{focusStateEnabled:!0})}},{key:"refreshData",value:function(){this.clearSelection(),this._loadItems()}},{key:"tryOpen",value:function(){var e=this._getFocusedItem();e&&this._raiseSelectedItemOpened(e)}},{key:"clearSelection",value:function(){this._selectionController.clearSelection()}},{key:"getSelectedItems",value:function(){return this._selectionController.getSelectedItems()}}]),t}(),x=function(){function e(t){o(this,e),this._items=[],this._selectionChangedHandler=t.onSelectionChanged,this._selectionChanged=!1}return s(e,[{key:"selectAll",value:function(){}},{key:"clearSelection",value:function(){this._beginUpdate(),this._setAllItemsSelectedState(!1),this._endUpdate()}},{key:"selectItem",value:function(e,t){this._beginUpdate(),this._setAllItemsSelectedState(!1,[e]),this._setItemSelectedState(e,!0),this._endUpdate()}},{key:"invertFocusedItemSelection",value:function(e){}},{key:"getFocusedItem",value:function(){var e=this.getSelectedItems();return e.length>0?e[0]:null}},{key:"getSelectedItems",value:function(){return this._items.filter(function(e){return e._state.selected})}},{key:"setItems",value:function(e){this._items=e}},{key:"_setItemSelectedState",value:function(e,t){e._state.selected!==t&&(e._state.selected=t,e._state.$element.toggleClass("dx-filemanager-item-selected",t),this._selectionChanged=!0)}},{key:"_setAllItemsSelectedState",value:function(e,t){for(var n=0;n<this._items.length;n++){var i=this._items[n];t&&-1!==t.indexOf(i)||this._setItemSelectedState(i,e)}}},{key:"_beginUpdate",value:function(){this._selectionChanged=!1}},{key:"_endUpdate",value:function(){this._selectionChanged&&(this._selectionChangedHandler(),this._selectionChanged=!1)}}]),e}(),w=function(e){function t(e){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._focusedItem=null,n}return r(t,x),s(t,[{key:"selectAll",value:function(){this._beginUpdate(),this._setAllItemsSelectedState(!0),this._endUpdate()}},{key:"selectItem",value:function(e,t){if(this._beginUpdate(),t.shiftKey)this._setItemsRangeSelectedState(this._focusedItem._state.index,e._state.index,t.ctrlKey,!0);else if(t.ctrlKey){var n=1===this._items.length&&this._focusedItem===e||!e._state.selected;this._setItemSelectedState(e,n)}else this._setAllItemsSelectedState(!1,[e]),this._setItemSelectedState(e,!0);this._setFocusedItem(e),this._endUpdate()}},{key:"_setItemsRangeSelectedState",value:function(e,t,n,i){if(e>t){var o=t;t=e,e=o}for(var a=e;a<=t;a++){var r=this._items[a],s=n?!r._state.selected:i;this._setItemSelectedState(r,s)}}},{key:"_setFocusedItem",value:function(e){this._focusedItem!==e&&(this._focusedItem&&this._focusedItem._state.$element.removeClass(v),e._state.$element.addClass(v),this._focusedItem=e)}},{key:"invertFocusedItemSelection",value:function(){this._focusedItem&&(this._beginUpdate(),this._setItemSelectedState(this._focusedItem,!this._focusedItem._state.selected),this._endUpdate())}},{key:"getFocusedItem",value:function(){return this._focusedItem}},{key:"setItems",value:function(e){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setItems",this).call(this,e),this._focusedItem=e.length>0?e[0]:null}}]),t}();e.exports=b},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},r=i(n(2)),s=n(0),l=n(1),u=n(4),c=i(n(17)),d=i(n(163)),h="dx-filemanager-toolbar",p="dx-filemanager-general-toolbar",f=[{commandName:"download",location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},{commandName:"separator",location:"before"},{commandName:"move",location:"before",compactMode:{locateInMenu:"auto"}},{commandName:"copy",location:"before",compactMode:{locateInMenu:"auto"}},{commandName:"rename",location:"before",compactMode:{locateInMenu:"auto"}},{commandName:"separator",location:"before"},{commandName:"delete",location:"before",compactMode:{showText:"inMenu"}},{commandName:"clear",location:"after",locateInMenu:"never",compactMode:{showText:"inMenu"}}],g=[{commandName:"showDirsPanel",location:"before"},{commandName:"create",location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},{commandName:"upload",location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},{commandName:"refresh",location:"after",showText:"inMenu",compactMode:{showText:"inMenu",locateInMenu:"auto"}},{commandName:"separator",location:"after"},{commandName:"viewMode",location:"after"}],_=["separator","viewMode"],m=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.default),o(t,[{key:"_initMarkup",value:function(){this._commandManager=this.option("commandManager"),this._generalToolbarVisible=!0,this._generalToolbar=this._createToolbar(g),this._fileToolbar=this._createToolbar(f,!0),this.$element().addClass(h+" "+p)}},{key:"_render",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_render",this).call(this);var e=this._getVisibleToolbar();this._checkCompactMode(e)}},{key:"_dimensionChanged",value:function(e){if(!e||"height"!==e){var t=this._getVisibleToolbar();this._checkCompactMode(t)}}},{key:"_getVisibleToolbar",value:function(){return this._generalToolbarVisible?this._generalToolbar:this._fileToolbar}},{key:"_createToolbar",value:function(e,t){var n=this._getToolbarItems(e),i=(0,r.default)("<div>").appendTo(this.$element()),o=this._createComponent(i,d.default,{items:n,visible:!t});return o.compactMode=!1,o}},{key:"_getToolbarItems",value:function(e){var t=this,n=!1;return e.map(function(e){var i=(0,l.isString)(e)?e:e.commandName,o=t._getItemConfigByCommandName(i);(0,l.isObject)(e)||(e={commandName:i});var a=(0,s.extend)(!0,o,e);if("separator"===i)a.visible=n,n=!1;else{a.available=t._isCommandAvailable(i);var r=a.available&&(0,u.ensureDefined)(a.visible,!0);a.visible=r,n=n||r}return a})}},{key:"_getItemConfigByCommandName",value:function(e){var t=this._commandManager.getCommandByName(e);if(t)return this._createCommandItem(t);switch(e){case"separator":return this._createSeparatorItem();case"viewMode":return this._createViewModeItem()}return{}}},{key:"_createCommandItem",value:function(e){var t=this;return{widget:"dxButton",options:{text:e.text,commandText:e.text,icon:e.icon,stylingMode:"text",onClick:function(n){return t._executeCommand(e)}}}}},{key:"_createSeparatorItem",value:function(){return{template:function(e,t,n){(0,r.default)(n).addClass("dx-filemanager-toolbar-separator-item")}}}},{key:"_createViewModeItem",value:function(){var e=this,t=["thumbnails","details"].map(function(t){return{name:t,text:e._commandManager.getCommandByName(t).text}});return{cssClass:"dx-filemanager-toolbar-viewmode-item",widget:"dxSelectBox",options:{items:t,value:t["thumbnails"===this.option("itemViewMode")?0:1],displayExpr:"text",stylingMode:"filled",onValueChanged:function(t){return e._executeCommand(t.value.name)}}}}},{key:"_checkCompactMode",value:function(e){e.compactMode&&this._toggleCompactMode(e,!1);var t=e.$element().width()<e._getItemsWidth();e.compactMode!==t?(e.compactMode||this._toggleCompactMode(e,t),e.compactMode=t):e.compactMode&&this._toggleCompactMode(e,!0)}},{key:"_toggleCompactMode",value:function(e,t){var n=this;e.beginUpdate(),e.option("items").forEach(function(i,o){if(i.compactMode){var a=null;t?(i.saved=n._getCompactModeOptions(i,i.available),a=i.compactMode):a=i.saved;var r=n._getCompactModeOptions(a,i.available);e.option("items["+o+"]",r)}}),e.endUpdate()}},{key:"_getCompactModeOptions",value:function(e,t){var n=e.visible,i=e.showText,o=e.locateInMenu;return{visible:t&&(0,u.ensureDefined)(n,!0),showText:(0,u.ensureDefined)(i,"always"),locateInMenu:(0,u.ensureDefined)(o,"never")}}},{key:"_ensureAvailableCommandsVisible",value:function(e,t){var n=this;e.beginUpdate();var i=!1;e.option("items").forEach(function(o,a){var r=o.available,s=!1;if("separator"===o.commandName?(s=i,i=!1):(o.available=n._isCommandAvailable(o.commandName,t),s=o.available,i=i||s),s!==r){var l="items["+a+"].visible";e.option(l,s)}}),e.endUpdate()}},{key:"_fileToolbarHasEffectiveItems",value:function(e){var t=this;return this._fileToolbar.option("items").some(function(n){var i=n.commandName;return"clear"!==i&&t._commandManager.isCommandAvailable(i,e)})}},{key:"_executeCommand",value:function(e){this._commandManager.executeCommand(e)}},{key:"_isCommandAvailable",value:function(e,t){return _.indexOf(e)>-1||this._commandManager.isCommandAvailable(e,t)}},{key:"_getDefaultOptions",value:function(){return(0,s.extend)(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{commandManager:null,itemViewMode:"details"})}},{key:"_optionChanged",value:function(e){switch(e.name){case"commandManager":case"itemViewMode":this.repaint();break;default:a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"update",value:function(e){var t=0===(e=(0,u.ensureDefined)(e,[])).length||!this._fileToolbarHasEffectiveItems(e);this._generalToolbarVisible!==t&&(this._generalToolbar.option("visible",t),this._fileToolbar.option("visible",!t),this._generalToolbarVisible=t,this.$element().toggleClass(p,t),this.$element().toggleClass("dx-filemanager-file-toolbar",!t));var n=this._getVisibleToolbar();this._ensureAvailableCommandsVisible(n,e),this._checkCompactMode(n)}}]),t}();e.exports=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,o=!1,a=void 0;try{for(var r,s=e[Symbol.iterator]();!(i=(r=s.next()).done)&&(n.push(r.value),!t||n.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},s=i(n(2)),l=n(0),u=n(6),c=n(1),d=n(4),h=n(3),p=i(n(17)),f=i(n(385)),g=i(n(727)),_=i(n(728)),m=i(n(729)),v=n(730),y=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,p.default),a(t,[{key:"_initMarkup",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this._model=this.option("model"),this._provider=this._model.provider,this._initActions(),this._renameItemDialog=this._createEnterNameDialog("Rename","Save"),this._createFolderDialog=this._createEnterNameDialog("Folder","Create");var e=(0,s.default)("<div>").appendTo(this.$element());this._chooseFolderDialog=this._createComponent(e,_.default,{provider:this._provider,getItems:this._model.getFolders,onClosed:this._onDialogClosed.bind(this)}),this._confirmationDialog=this._createConfirmationDialog(),this._fileUploader=this._createFileUploader(),this._createEditActions()}},{key:"_createFileUploader",value:function(){var e=this,t=(0,s.default)("<div>").appendTo(this.$element());return this._createComponent(t,m.default,{getController:this._getFileUploaderController.bind(this),onFilesUploaded:function(t){return e._raiseOnSuccess("Files uploaded",!0)},onErrorOccurred:function(t){var n=t.info,i="Upload failed for the '"+n.fileName+"' file";e._raiseOnError(i,n.error)}})}},{key:"_getFileUploaderController",value:function(){var e=this._uploadFolder,t=this;return{chunkSize:this._provider.getFileUploadChunkSize(),initiateUpload:function(n){return n.destinationFolder=e,(0,u.when)(t._provider.initiateFileUpload(n))},uploadChunk:function(e,n){return(0,u.when)(t._provider.uploadFileChunk(e,n))},finalizeUpload:function(e){return(0,u.when)(t._provider.finalizeFileUpload(e))},abortUpload:function(e){return(0,u.when)(t._provider.abortFileUpload(e))}}}},{key:"_createEnterNameDialog",value:function(e,t){var n=(0,s.default)("<div>").appendTo(this.$element());return this._createComponent(n,g.default,{title:e,buttonText:t,onClosed:this._onDialogClosed.bind(this)})}},{key:"_createConfirmationDialog",value:function(){var e=this;return{show:function(){setTimeout(function(){e._onDialogClosed({dialogResult:{}})})}}}},{key:"_createEditActions",value:function(){var e=this;this._editActions={create:{useCurrentFolder:!0,affectsAllItems:!0,dialog:this._createFolderDialog,action:function(t,n){var i=o(t,1)[0],a=n.name;return e._provider.createFolder(i,a)},getSuccessMessage:function(e){return"Folder created"},getErrorMessage:function(e,t){return"Create folder operation failed for the "+o(e,1)[0].name+" parent folder"}},rename:{dialog:this._renameItemDialog,getDialogArgument:function(e){return o(e,1)[0].name},action:function(t,n){var i=o(t,1)[0],a=n.name;return e._provider.renameItem(i,a)},getSuccessMessage:function(e){return"Item renamed"},getErrorMessage:function(e,t){return"Rename operation failed for the "+o(e,1)[0].name+" item"}},delete:{dialog:this._confirmationDialog,getDialogArgument:function(e){return o(e,1)[0].name},action:function(t,n){return e._provider.deleteItems(t)},getSuccessMessage:function(e){return"Items deleted"},getErrorMessage:function(e,t){return"Delete operation failed for the "+e[t.index].name+" item"}},move:{dialog:this._chooseFolderDialog,action:function(t,n){return e._provider.moveItems(t,n.folder)},getSuccessMessage:function(e){return"Items moved"},getErrorMessage:function(e,t){return"Move operation failed for the "+e[t.index].name+" item"}},copy:{dialog:this._chooseFolderDialog,action:function(t,n){return e._provider.copyItems(t,n.folder)},getSuccessMessage:function(e){return"Items copied"},getErrorMessage:function(e,t){return"Copy operation failed for the "+e[t.index].name+" item"}},upload:this._tryUpload.bind(this),download:function(){}}}},{key:"getCommandActions",value:function(){var e=this,t={};return(0,h.each)(this._editActions,function(n,i){e._editActions.hasOwnProperty(n)&&(t[n]=function(t){return e._executeAction(n,t)})}),t}},{key:"_executeAction",value:function(e,t){var n=this._editActions[e];n&&((0,c.isFunction)(n)?n(t):this._tryEditAction(n,t))}},{key:"_tryEditAction",value:function(e,t){var n=this,i=t;i||(i=e.useCurrentFolder?[this._model.getCurrentFolder()]:this._model.getMultipleSelectedItems());var o=!e.affectsAllItems&&i.every(function(e){return!e.isDirectory}),a=e.getDialogArgument||d.noop;this._showDialog(e.dialog,a(i)).then(function(t){return e.action(i,t)}).then(function(t){(0,f.default)(t,function(){return n._raiseOnSuccess(e.getSuccessMessage(i),o)},function(e){var t=i[e.index];n._raiseOnError(e.errorId,t)})})}},{key:"_tryUpload",value:function(e){this._uploadFolder=e&&e[0]||this._model.getCurrentFolder(),this._fileUploader.tryUpload()}},{key:"_showDialog",value:function(e,t){return this._dialogDeferred=new u.Deferred,e.show(t),this._dialogDeferred.promise()}},{key:"_onDialogClosed",value:function(e){var t=e.dialogResult;t?this._dialogDeferred.resolve(t):this._dialogDeferred.reject()}},{key:"_initActions",value:function(){this._actions={onSuccess:this._createActionByOption("onSuccess"),onError:this._createActionByOption("onError"),onCreating:this._createActionByOption("onCreating")}}},{key:"_getDefaultOptions",value:function(){return(0,l.extend)(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{model:{provider:null,getFolders:null,getCurrentFolder:null,getMultipleSelectedItems:null},onSuccess:null,onError:null,onCreating:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"model":this.repaint();break;case"onSuccess":case"onError":case"onCreating":this._actions[n]=this._createActionByOption(n);break;default:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_raiseOnSuccess",value:function(e,t){this._actions.onSuccess({message:e,updatedOnlyFiles:t})}},{key:"_raiseOnError",value:function(e,t){var n=t?t.name:null,i=v.FileManagerMessages.get(e,n);this._actions.onError({message:i})}}]),t}();e.exports=y},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},r=i(n(2)),s=n(0),l=i(n(92)),u=i(n(388)),c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,u.default),o(t,[{key:"show",value:function(e){e=e||"",this._nameTextBox?this._nameTextBox.option("value",e):this._initialNameValue=e,a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this)}},{key:"_getDialogOptions",value:function(){return(0,s.extend)(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDialogOptions",this).call(this),{title:this.option("title"),buttonText:this.option("buttonText"),contentCssClass:"dx-filemanager-dialog-name-editor",popupCssClass:"dx-filemanager-dialog-name-editor-popup"})}},{key:"_createContentTemplate",value:function(e){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_createContentTemplate",this).call(this,e),this._nameTextBox=this._createComponent((0,r.default)("<div>"),l.default,{value:this._initialNameValue,placeholder:"Enter your new name"}),this._$contentElement.append(this._nameTextBox.$element())}},{key:"_getDialogResult",value:function(){var e=this._nameTextBox.option("value");return e?{name:e}:null}},{key:"_getDefaultOptions",value:function(){return(0,s.extend)(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{title:"",buttonText:""})}}]),t}();e.exports=c},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},r=i(n(2)),s=n(0),l=i(n(388)),u=i(n(384)),c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l.default),o(t,[{key:"show",value:function(){this._filesTreeView&&this._filesTreeView.refreshData(),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this)}},{key:"_getDialogOptions",value:function(){return(0,s.extend)(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDialogOptions",this).call(this),{title:"Select Destination Folder",buttonText:"Select",contentCssClass:"dx-filemanager-dialog-folder-chooser",popupCssClass:"dx-filemanager-dialog-folder-chooser-popup"})}},{key:"_createContentTemplate",value:function(e){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_createContentTemplate",this).call(this,e),this._filesTreeView=this._createComponent((0,r.default)("<div>"),u.default,{getItems:this.option("getItems")}),this._$contentElement.append(this._filesTreeView.$element())}},{key:"_getDialogResult",value:function(){return{folder:this._filesTreeView.getCurrentFolder()}}},{key:"_getDefaultOptions",value:function(){return(0,s.extend)(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{getItems:null})}}]),t}();e.exports=c},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},u=i(n(2)),c=n(0),d=i(n(5)),h=n(6),p=i(n(17)),f=i(n(34)),g=i(n(245)),_=i(n(46)),m="dx-filemanager-fileuploader",v="dx-filemanager-progressbox",y=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,p.default),s(t,[{key:"_initMarkup",value:function(){this._initActions(),this._progressPanel=this._createComponent((0,u.default)("<div>"),x,{}),this.$element().addClass(m).append(this._progressPanel.$element()),this._renderFileInput(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this)}},{key:"_renderFileInput",value:function(){this._$fileInput=(0,u.default)("<input>").attr("type","file").prop({multiple:"multiple",tabIndex:-1}).addClass("dx-filemanager-fileuploader-fileinput"),d.default.on(this._$fileInput,"change",this._onFileInputChange.bind(this)),d.default.on(this._$fileInput,"click",function(e){return e.stopPropagation(),!0}),this.$element().append(this._$fileInput)}},{key:"_onFileInputChange",value:function(){var e=this._$fileInput.prop("files");if(0!==e.length){d.default.off(this._$fileInput,"change"),d.default.off(this._$fileInput,"click");var t=this._$fileInput;this._uploadFiles(e).always(function(){setTimeout(function(){t.remove()})}),this._renderFileInput()}}},{key:"_uploadFiles",value:function(e){var t=this;if(0!==e.length){var n="Uploading "+e.length+" files",i=this._progressPanel.addProgressBox(n,null),o=this.option("getController"),a=new b({controller:o(),onProgress:function(e){return i.updateProgress(100*e)},onError:function(e){return t._raiseOnErrorOccurred(e)}});i.option("onCancel",function(){return a.cancelUpload()});var r=a.uploadFiles(e);return h.when.apply(null,r).then(function(){this._progressPanel.removeProgressBox(i),[].slice.call(arguments).some(function(e){return e.success})&&this._onFilesUploaded()}.bind(this))}}},{key:"tryUpload",value:function(){this._$fileInput.click()}},{key:"_onFilesUploaded",value:function(){this._actions.onFilesUploaded()}},{key:"_raiseOnErrorOccurred",value:function(e){this._actions.onErrorOccurred({info:e})}},{key:"_initActions",value:function(){this._actions={onFilesUploaded:this._createActionByOption("onFilesUploaded"),onErrorOccurred:this._createActionByOption("onErrorOccurred")}}},{key:"_getDefaultOptions",value:function(){return(0,c.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{getController:null,onFilesUploaded:null,onErrorOccurred:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"getController":this.repaint();break;case"onFilesUploaded":case"onErrorOccurred":this._actions[n]=this._createActionByOption(n);break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}}]),t}(),b=function(){function e(t){o(this,e),this._controller=t.controller,this._onProgressHandler=t.onProgress,this._onErrorHandler=t.onError,this._canceled=!1}return s(e,[{key:"uploadFiles",value:function(e){for(var t={uploadedBytesCount:0,totalBytesCount:0},n=0;n<e.length;n++)t.totalBytesCount+=e[n].size;for(var i=[],o=0;o<e.length;o++){var a=this._uploadFile(e[o],t);i.push(a)}return i}},{key:"cancelUpload",value:function(){this._canceled=!0}},{key:"_uploadFile",value:function(e,t){var n=this,i=this._createUploadingState(e);return this._controller.initiateUpload(i).then(function(){return n._uploadChunks(i,t)}).then(function(){return n._finalizeUpload(i)},function(t){return t&&t.canceled?n._abortUpload(i):n._handleError(t,e)}).catch(function(t){return n._handleError(t,e)})}},{key:"_uploadChunks",value:function(e,t){var n=this;if(this._canceled){var i=this._createResultInfo(e.file.name,!1,!0);return(new h.Deferred).reject(i).promise()}var o=this._getChunk(e);return o?this._controller.uploadChunk(e,o).done(function(){e.uploadedBytesCount+=o.size,e.uploadedChunksCount++,t.uploadedBytesCount+=o.size,n._raiseOnProgress(t)}).then(function(){return n._uploadChunks(e,t)}):(new h.Deferred).resolve().promise()}},{key:"_getChunk",value:function(e){var t=e.file.size-e.uploadedBytesCount;if(0===t)return null;var n=Math.min(t,this._controller.chunkSize),i=e.file.slice(e.uploadedBytesCount,e.uploadedBytesCount+n);return{index:e.uploadedChunksCount,size:n,blob:i}}},{key:"_finalizeUpload",value:function(e){var t=this;return this._controller.finalizeUpload(e).then(function(){return t._createResultInfo(e.file.name,!0)})}},{key:"_abortUpload",value:function(e){var t=this;return this._controller.abortUpload(e).then(function(){return t._createResultInfo(e.file.name,!1,!0)})}},{key:"_handleError",value:function(e,t){var n=this._createResultInfo(t.name,!1,!1,e);return this._onErrorHandler(n),n}},{key:"_raiseOnProgress",value:function(e){var t=0!==e.totalBytesCount?e.uploadedBytesCount/e.totalBytesCount:1;this._onProgressHandler(t)}},{key:"_createUploadingState",value:function(e){return{file:e,uploadedBytesCount:0,uploadedChunksCount:0,totalChunkCount:Math.ceil(e.size/this._controller.chunkSize),customData:{}}}},{key:"_createResultInfo",value:function(e,t,n,i){return{fileName:e,success:t||!1,canceled:n||!1,error:i||null}}}]),e}(),x=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,p.default),s(t,[{key:"_init",value:function(){this._progressBoxCount=0,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this)}},{key:"_initMarkup",value:function(){this._popup=this._createComponent(this.$element(),_.default,{width:200,height:145,position:"right bottom",showTitle:!1,visible:!1,shading:!1,deferRendering:!1,closeOnOutsideClick:!1,contentTemplate:this._getPopupContentTemplate.bind(this)}),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this)}},{key:"addProgressBox",value:function(e,t){var n=this._createComponent((0,u.default)("<div>"),w,{title:e,onCancel:t});return this._$container.append(n.$element()),0===this._progressBoxCount&&this._popup.show(),this._progressBoxCount++,n}},{key:"removeProgressBox",value:function(e){1===this._progressBoxCount&&this._popup.hide(),this._progressBoxCount--,e.dispose(),e.$element().remove()}},{key:"_getPopupContentTemplate",value:function(){return this._$container=(0,u.default)("<div>").addClass("dx-filemanager-progresspanel"),this._$container}}]),t}(),w=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,p.default),s(t,[{key:"_initMarkup",value:function(){this._createOnCancelAction();var e=this.option("title"),n=(0,u.default)("<span>").text(e).addClass("dx-filemanager-progressbox-title");this._cancelButton=this._createComponent((0,u.default)("<div>"),f.default,{text:"Cancel",onClick:this._onCancelButtonClick.bind(this)}),this._cancelButton.$element().addClass("dx-filemanager-progressbox-cancel-button"),this._progressBar=this._createComponent((0,u.default)("<div>"),g.default,{min:0,max:100,width:"100%",showStatus:!1}),this._progressBar.$element().addClass("dx-filemanager-progressbox-progressbar"),this.$element().addClass(v),this.$element().append(n,this._progressBar.$element(),this._cancelButton.$element()),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this)}},{key:"updateProgress",value:function(e){this._progressBar.option("value",e)}},{key:"_onCancelButtonClick",value:function(){this._cancelButton.option({disabled:!0,text:"Canceling..."}),this._onCancelAction()}},{key:"_createOnCancelAction",value:function(){this._onCancelAction=this._createActionByOption("onCancel")}},{key:"_getDefaultOptions",value:function(){return(0,c.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{title:"",onCancel:null})}},{key:"_optionChanged",value:function(e){switch(e.name){case"title":this.repaint();break;case"onCancel":this._createOnCancelAction();break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}}]),t}();e.exports=y},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FileManagerMessages=void 0;var i=function(e){return e&&e.__esModule?e:{default:e}}(n(15)),o=0,a=1,r=2,s=3;t.FileManagerMessages={get:function(e,t){switch(e){case o:return i.default.format("dxFileManager-errorNoAccess");case a:return i.default.format("dxFileManager-errorFileExistsFormat",t);case r:return i.default.format("dxFileManager-errorFileNotFoundFormat",t);case s:return i.default.format("dxFileManager-errorDirectoryExistsFormat",t)}return i.default.format("dxFileManager-errorDefault")}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},r=i(n(2)),s=n(0),l=i(n(5)),u=n(9),c=i(n(17)),d=i(n(353)),h=n(137),p="dx-filemanager-breadcrumbs",f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.default),o(t,[{key:"_initMarkup",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this._initActions();var e=(0,r.default)("<div>").appendTo(this.$element());this._menu=this._createComponent(e,d.default,{dataSource:this._getMenuItems(),onItemClick:this._onItemClick.bind(this),onItemRendered:this._onItemRendered.bind(this)});var n=(0,u.addNamespace)("click","dxFileManager_breadcrubms");l.default.on(e,n,this._onClick.bind(this)),this.$element().addClass(p)}},{key:"_getMenuItems",value:function(){var e=this.option("path"),t=e?(0,h.getPathParts)(e,!0):[],n=this.option("rootFolderDisplayName");n&&t.unshift(n);for(var i=[{icon:"arrowup",path:(0,h.getParentPath)(e),isPathItem:!0,cssClass:"dx-filemanager-breadcrumbs-parent-folder-item"},{cssClass:"dx-filemanager-breadcrumbs-separator-item"}],o=0;o<t.length;o++){var a=t[o];i.push({text:(0,h.getName)(a),path:0===o?"":a,isPathItem:!0}),o!==t.length-1&&i.push({icon:"spinnext",cssClass:"dx-filemanager-breadcrumbs-path-separator-item"})}return i}},{key:"_onItemClick",value:function(e){var t=e.itemData;if(t.isPathItem){var n=this.option("path"),i=t.path;i!==n&&this._raisePathChanged(i)}}},{key:"_onClick",value:function(e){var t=e.target;0===(0,r.default)(t).closest(".dx-menu-items-container").length&&this._raiseOutsideClick()}},{key:"_onItemRendered",value:function(e){var t=e.itemElement,n=e.itemData;n.cssClass&&(0,r.default)(t).addClass(n.cssClass)}},{key:"_initActions",value:function(){this._actions={onPathChanged:this._createActionByOption("onPathChanged"),onOutsideClick:this._createActionByOption("onOutsideClick")}}},{key:"_raisePathChanged",value:function(e){this._actions.onPathChanged({newPath:e})}},{key:"_raiseOutsideClick",value:function(){this._actions.onOutsideClick()}},{key:"_getDefaultOptions",value:function(){return(0,s.extend)(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{rootFolderDisplayName:"Files",path:"",onPathChanged:null,onOutsideClick:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"rootFolderDisplayName":case"path":this.repaint();break;case"onPathChanged":case"onOutsideClick":this._actions[n]=this._createActionByOption(n);break;default:a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}}]),t}();e.exports=f},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},r=i(n(2)),s=n(0),l=n(1),u=n(7),c=i(n(17)),d=i(n(304)),h=(0,u.getWindow)(),p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.default),o(t,[{key:"_initMarkup",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this._initActions(),this._isInAdaptiveState=!1;var e=(0,r.default)("<div>").appendTo(this.$element()),n=this.option("contentTemplate");(0,l.isFunction)(n)&&n(e),this._drawer=this._createComponent(e,d.default,{opened:!0,template:this.option("drawerTemplate")})}},{key:"_render",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_render",this).call(this),this._checkAdaptiveState()}},{key:"_dimensionChanged",value:function(e){e&&"height"===e||this._checkAdaptiveState()}},{key:"_checkAdaptiveState",value:function(){var e=this._isInAdaptiveState;this._isInAdaptiveState=this._isSmallScreen(),e!==this._isInAdaptiveState&&(this.toggleDrawer(!this._isInAdaptiveState,!0),this._raiseAdaptiveStateChanged(this._isInAdaptiveState))}},{key:"_isSmallScreen",value:function(){return(0,r.default)(h).width()<=573}},{key:"_initActions",value:function(){this._actions={onAdaptiveStateChanged:this._createActionByOption("onAdaptiveStateChanged")}}},{key:"_raiseAdaptiveStateChanged",value:function(e){this._actions.onAdaptiveStateChanged({enabled:e})}},{key:"_getDefaultOptions",value:function(){return(0,s.extend)(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{drawerTemplate:null,contentTemplate:null,onAdaptiveStateChanged:null})}},{key:"_optionChanged",value:function(e){var n=e.name;switch(n){case"drawerTemplate":case"contentTemplate":this.repaint();break;case"onAdaptiveStateChanged":this._actions[n]=this._createActionByOption(n);break;default:a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"isInAdaptiveState",value:function(){return this._isInAdaptiveState}},{key:"toggleDrawer",value:function(e,t){this._drawer.option("animationEnabled",!t),this._drawer.toggle(e)}}]),t}();e.exports=p},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=i(n(62)),r=n(4),s=n(6),l=n(0),u=n(136),c=i(n(389)),d=function(e){function t(e){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),e=(0,r.ensureDefined)(e,{});var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._options=e,n._provider=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,u.FileProvider),o(t,[{key:"getItems",value:function(e,t){var n=this;return this._doActionAfterDataAcquired(function(){return n._provider.getItems(e,t)})}},{key:"renameItem",value:function(e,t){var n=this;return this._doActionAfterDataAcquired(function(){return n._provider.renameItem(e,t)})}},{key:"createFolder",value:function(e,t){var n=this;return this._doActionAfterDataAcquired(function(){return n._provider.createFolder(e,t)})}},{key:"deleteItems",value:function(e){var t=this;return this._doActionAfterDataAcquired(function(){return t._provider.deleteItems(e)})}},{key:"moveItems",value:function(e,t){var n=this;return this._doActionAfterDataAcquired(function(){return n._provider.moveItems(e,t)})}},{key:"copyItems",value:function(e,t){var n=this;return this._doActionAfterDataAcquired(function(){return n._provider.copyItems(e,t)})}},{key:"initiateFileUpload",value:function(e){var t=this;return this._doActionAfterDataAcquired(function(){return t._provider.initiateFileUpload(e)})}},{key:"uploadFileChunk",value:function(e,t){var n=this;return this._doActionAfterDataAcquired(function(){return n._provider.uploadFileChunk(e,t)})}},{key:"finalizeFileUpload",value:function(e){var t=this;return this._doActionAfterDataAcquired(function(){return t._provider.finalizeFileUpload(e)})}},{key:"abortFileUpload",value:function(e){var t=this;return this._doActionAfterDataAcquired(function(){return t._provider.abortFileUpload(e)})}},{key:"_doActionAfterDataAcquired",value:function(e){return this._ensureDataAcquired().then(e.bind(this))}},{key:"_ensureDataAcquired",value:function(){var e=this;return this._provider?(new s.Deferred).resolve().promise():this._getData().done(function(t){var n=(0,l.extend)(e._options,{data:t});e._provider=new c.default(n)})}},{key:"_getData",value:function(){return a.default.sendRequest({url:this._options.url,dataType:"json",cache:!1})}}]),t}();e.exports=d},function(e,t,n){e.exports=n(735)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},r=i(n(2)),s=i(n(17)),l=i(n(303)),u=i(n(8)),c=n(0),d=i(n(1)),h=i(n(20)),p=i(n(736)),f=i(n(738)),g=i(n(740)),_=i(n(741)),m=i(n(742)),v=i(n(743)),y=i(n(164)),b=n(202),x=n(7),w="dx-diagram",C="id",k="text",S="type",I="parentId",T="items",D="from",E="to",A=["north","east","south","west"],O=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),o(t,[{key:"_init",value:function(){this._updateDiagramLockCount=0,a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this._initDiagram()}},{key:"_initMarkup",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this);var e=!(0,x.hasWindow)();this.$element().addClass(w),this._renderToolbar();var n=(0,r.default)("<div>").addClass("dx-diagram-content-wrapper").appendTo(this.$element());this._renderLeftPanel(n);var i=(0,r.default)("<div>").addClass("dx-diagram-drawer-wrapper").appendTo(n),o=(0,r.default)("<div>").appendTo(i),s=(0,r.default)("<div>").addClass("dx-diagram-content").appendTo(o);this._renderRightPanel(o),this._renderContextMenu(s),!e&&this._diagramInstance.createDocument(s[0])}},{key:"_renderToolbar",value:function(){var e=this,t=(0,r.default)("<div>").addClass("dx-diagram-toolbar-wrapper").appendTo(this.$element());this._toolbarInstance=this._createComponent(t,p.default,{onContentReady:function(t){return e._diagramInstance.barManager.registerBar(t.component.bar)},export:this.option("export")})}},{key:"_renderLeftPanel",value:function(e){var t=this,n=!(0,x.hasWindow)(),i=(0,r.default)("<div>").appendTo(e);this._leftPanel=this._createComponent(i,f.default,{dataSources:this._getDataSources(),customShapes:this._getCustomShapes(),onShapeCategoryRendered:function(i){if(!n){var o=(0,r.default)(i.$element);t._diagramInstance.createToolbox(o[0],40,8,{"data-toggle":"shape-toolbox-tooltip"},i.category),t._createTooltips(e,o.find('[data-toggle="shape-toolbox-tooltip"]'))}},onDataToolboxRendered:function(e){return!n&&t._diagramInstance.createDataSourceToolbox(e.key,e.$element[0])}})}},{key:"_createTooltips",value:function(e,t){var n=this;t.each(function(t,i){var o=(0,r.default)(i),a=(0,r.default)("<div>").html(o.attr("title")).appendTo(e);n._tooltipInstance=n._createComponent(a,y.default,{target:o,showEvent:"mouseenter",hideEvent:"mouseleave",position:"top",animation:{show:{type:"fade",from:0,to:1,delay:500},hide:{type:"fade",from:1,to:0,delay:100}}})})}},{key:"_invalidateLeftPanel",value:function(){this._leftPanel&&this._leftPanel.option({dataSources:this._getDataSources(),customShapes:this._getCustomShapes()})}},{key:"_renderRightPanel",value:function(e){var t=this,n=this._createComponent(e,l.default,{closeOnOutsideClick:!0,openedStateMode:"overlap",position:"right",template:function(e){t._createComponent(e,g.default,{onContentReady:function(e){return t._diagramInstance.barManager.registerBar(e.component.bar)}})}});this._toolbarInstance.option("onWidgetCommand",function(e){"options"===e.name&&n.toggle()})}},{key:"_renderContextMenu",value:function(e){var t=this,n=(0,r.default)("<div>").appendTo(this.$element());this._createComponent(n,_.default,{container:e,onContentReady:function(e){var n=e.component;return t._diagramInstance.barManager.registerBar(n.bar)},onVisibleChanged:function(e){var n=e.component;return t._diagramInstance.barManager.updateBarItemsState(n.bar)}})}},{key:"_initDiagram",value:function(){var e=(0,b.getDiagram)().DiagramControl;this._diagramInstance=new e,this._diagramInstance.onChanged=this._raiseDataChangeAction.bind(this),this._diagramInstance.onEdgeInserted=this._raiseEdgeInsertedAction.bind(this),this._diagramInstance.onEdgeUpdated=this._raiseEdgeUpdatedAction.bind(this),this._diagramInstance.onEdgeRemoved=this._raiseEdgeRemovedAction.bind(this),this._diagramInstance.onNodeInserted=this._raiseNodeInsertedAction.bind(this),this._diagramInstance.onNodeUpdated=this._raiseNodeUpdatedAction.bind(this),this._diagramInstance.onNodeRemoved=this._raiseNodeRemovedAction.bind(this),this._diagramInstance.onToolboxDragStart=this._raiseToolboxDragStart.bind(this),this._diagramInstance.onToolboxDragEnd=this._raiseToolboxDragEnd.bind(this),this._updateCustomShapes(this._getCustomShapes()),this._refreshDataSources()}},{key:"_refreshDataSources",value:function(){this._beginUpdateDiagram(),this._refreshNodesDataSource(),this._refreshEdgesDataSource(),this._endUpdateDiagram()}},{key:"_refreshNodesDataSource",value:function(){this._nodesOption&&(this._nodesOption._disposeDataSource(),delete this._nodesOption,delete this._nodes),this.option("nodes.dataSource")&&(this._nodesOption=new m.default(this),this._nodesOption.option("dataSource",this.option("nodes.dataSource")),this._nodesOption._refreshDataSource())}},{key:"_refreshEdgesDataSource",value:function(){this._edgesOption&&(this._edgesOption._disposeDataSource(),delete this._edgesOption,delete this._edges),this.option("edges.dataSource")&&(this._edgesOption=new v.default(this),this._edgesOption.option("dataSource",this.option("edges.dataSource")),this._edgesOption._refreshDataSource())}},{key:"_getDiagramData",value:function(){var e=void 0,t=(0,b.getDiagram)().DiagramCommand;return this._diagramInstance.commandManager.getCommand(t.Export).execute(function(t){e=t}),e}},{key:"_setDiagramData",value:function(e,t){var n=(0,b.getDiagram)().DiagramCommand;this._diagramInstance.commandManager.getCommand(n.Import).execute({data:e,keepExistingItems:t})}},{key:"_getDataSources",value:function(){return this.option("dataSources")||{}}},{key:"_createDiagramDataSource",value:function(e){var t=e.key||"0",n=e.title||"Data Source",i=e.nodes||{},o=e.edges||{},a={key:t,title:n,nodeDataSource:i.dataSource,edgeDataSource:o.dataSource,nodeDataImporter:{getKey:this._createGetter(i.keyExpr||C),setKey:this._createSetter(i.keyExpr||C),getText:this._createGetter(i.textExpr||k),setText:this._createSetter(i.textExpr||k),getType:this._createGetter(i.typeExpr||S),setType:this._createSetter(i.typeExpr||S),getParentKey:this._createGetter(i.parentKeyExpr||I),setParentKey:this._createSetter(i.parentKeyExpr||I),getItems:this._createGetter(i.itemsExpr||T),setItems:this._createSetter(i.itemsExpr||T)},edgeDataImporter:{getKey:this._createGetter(o.keyExpr||C),setKey:this._createSetter(o.keyExpr||C),getFrom:this._createGetter(o.fromExpr||D),setFrom:this._createSetter(o.fromExpr||D),getTo:this._createGetter(o.toExpr||E),setTo:this._createSetter(o.toExpr||E)},layoutType:this._getDataSourceLayoutType(e.layout)},r=(0,b.getDiagram)().DiagramCommand;this._diagramInstance.commandManager.getCommand(r.ImportDataSource).execute(a);var s=this._getDataSources();s[t]=a,this.option("dataSources",s)}},{key:"_getDataSourceLayoutType",value:function(e){var t=(0,b.getDiagram)().DataLayoutType;switch(e){case"tree":return t.Tree;case"sugiyama":return t.Sugiyama}}},{key:"_deleteDiagramDataSource",value:function(e){var t=this._getDataSources();if(t[e]){var n=(0,b.getDiagram)().DiagramCommand;this._diagramInstance.commandManager.getCommand(n.CloseDataSource).execute(e),delete t[e],this.option("dataSources",t)}}},{key:"_nodesDataSourceChanged",value:function(e){this._nodes=e,this._bindDiagramData()}},{key:"_edgesDataSourceChanged",value:function(e){this._edges=e,this._bindDiagramData()}},{key:"_createGetter",value:function(e){return h.default.compileGetter(e)}},{key:"_createSetter",value:function(e){return d.default.isFunction(e)?e:h.default.compileSetter(e)}},{key:"_createOptionGetter",value:function(e){var t=this.option(e);return this._createGetter(t)}},{key:"_createOptionSetter",value:function(e){var t=this.option(e);return this._createSetter(t)}},{key:"_bindDiagramData",value:function(){if(!this._updateDiagramLockCount&&this._isBindingMode()){var e=(0,b.getDiagram)().DiagramCommand,t={nodeDataSource:this._nodes,edgeDataSource:this._edges,nodeDataImporter:{getKey:this._createOptionGetter("nodes.keyExpr"),setKey:this._createOptionSetter("nodes.keyExpr"),getText:this._createOptionGetter("nodes.textExpr"),setText:this._createOptionSetter("nodes.textExpr"),getType:this._createOptionGetter("nodes.typeExpr"),setType:this._createOptionSetter("nodes.typeExpr"),getParentKey:this._createOptionGetter("nodes.parentKeyExpr"),setParentKey:this._createOptionSetter("nodes.parentKeyExpr"),getItems:this._createOptionGetter("nodes.itemsExpr"),setItems:this._createOptionSetter("nodes.itemsExpr")},edgeDataImporter:{getKey:this._createOptionGetter("edges.keyExpr"),setKey:this._createOptionSetter("edges.keyExpr"),getFrom:this._createOptionGetter("edges.fromExpr"),setFrom:this._createOptionSetter("edges.fromExpr"),getTo:this._createOptionGetter("edges.toExpr"),setTo:this._createOptionSetter("edges.toExpr")},layoutType:this._getDataBindingLayoutType()};this._diagramInstance.commandManager.getCommand(e.BindDocument).execute(t)}}},{key:"_getDataBindingLayoutType",value:function(){var e=(0,b.getDiagram)().DataLayoutType;switch(this.option("layout")){case"sugiyama":return e.Sugiyama;default:return e.Tree}}},{key:"_isBindingMode",value:function(){return this._nodes||this._edges}},{key:"_beginUpdateDiagram",value:function(){this._updateDiagramLockCount++}},{key:"_endUpdateDiagram",value:function(){this._updateDiagramLockCount=Math.max(this._updateDiagramLockCount-1,0),this._updateDiagramLockCount||this._bindDiagramData()}},{key:"_getCustomShapes",value:function(){return this.option("customShapes")||[]}},{key:"_updateCustomShapes",value:function(e,t){Array.isArray(t)&&this._diagramInstance.removeCustomShapes(e.map(function(e){return e.id})),Array.isArray(e)&&this._diagramInstance.addCustomShapes(e.map(function(e){return{id:e.id,title:e.title,svgUrl:e.svgUrl,svgLeft:e.svgLeft,svgTop:e.svgTop,svgWidth:e.svgWidth,svgHeight:e.svgHeight,defaultWidth:e.defaultWidth,defaultHeight:e.defaultHeight,defaultText:e.defaultText,allowHasText:e.allowHasText,textLeft:e.textLeft,textTop:e.textTop,textWidth:e.textWidth,textHeight:e.textHeight,connectionPoints:e.connectionPoints&&e.connectionPoints.map(function(e){return{x:e.x,y:e.y,side:A.indexOf(e.side)}})}}))}},{key:"getData",value:function(){return this._getDiagramData()}},{key:"setData",value:function(e,t){this._setDiagramData(e,t),this._raiseDataChangeAction()}},{key:"createDataSource",value:function(e){this._createDiagramDataSource(e)}},{key:"deleteDataSource",value:function(e){this._deleteDiagramDataSource(e)}},{key:"_getDefaultOptions",value:function(){return(0,c.extend)(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{onDataChanged:null,nodes:{dataSource:null,keyExpr:C,textExpr:k,typeExpr:S,parentKeyExpr:I,itemsExpr:T},edges:{dataSource:null,keyExpr:C,fromExpr:D,toExpr:E},layout:"tree",customShapes:[],export:{fileName:"Diagram",proxyUrl:void 0}})}},{key:"_createDataChangeAction",value:function(){this._dataChangeAction=this._createActionByOption("onDataChanged")}},{key:"_raiseDataChangeAction",value:function(){this.option("onDataChanged")&&(this._dataChangeAction||this._createDataChangeAction(),this._dataChangeAction({data:this.getData()}))}},{key:"_raiseEdgeInsertedAction",value:function(e,t){this._edgesOption&&this._edgesOption.insert(e,t)}},{key:"_raiseEdgeUpdatedAction",value:function(e,t,n){this._edgesOption&&this._edgesOption.update(e,t,n)}},{key:"_raiseEdgeRemovedAction",value:function(e,t){this._edgesOption&&this._edgesOption.remove(e,t)}},{key:"_raiseNodeInsertedAction",value:function(e,t){this._nodesOption&&this._nodesOption.insert(e,t)}},{key:"_raiseNodeUpdatedAction",value:function(e,t,n){this._nodesOption&&this._nodesOption.update(e,t,n)}},{key:"_raiseNodeRemovedAction",value:function(e,t){this._nodesOption&&this._nodesOption.remove(e,t)}},{key:"_raiseToolboxDragStart",value:function(){this._leftPanel&&this._leftPanel.$element().addClass("dx-skip-gesture-event")}},{key:"_raiseToolboxDragEnd",value:function(){this._leftPanel&&this._leftPanel.$element().removeClass("dx-skip-gesture-event")}},{key:"_optionChanged",value:function(e){switch(e.name){case"nodes":this._refreshNodesDataSource();break;case"edges":this._refreshEdgesDataSource();break;case"layout":this._refreshDataSources();break;case"customShapes":this._updateCustomShapes(e.value,e.previousValue),this._invalidateLeftPanel();break;case"onDataChanged":this._createDataChangeAction();break;case"dataSources":this._invalidateLeftPanel();break;case"export":this._toolbarInstance.option("export",this.option("export"));break;default:a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}}]),t}();(0,u.default)("dxDiagram",O),e.exports=O},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},u=i(n(2)),c=i(n(17)),d=i(n(163)),h=i(n(105)),p=i(n(257)),f=i(n(258)),g=n(0);n(95),n(299),n(104);var _=[{command:"options",icon:"preferences",hint:"Show Properties",text:"Properties"}],m=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,c.default),s(t,[{key:"_init",value:function(){this.bar=new v(this),this._itemHelpers={},this._contextMenus=[],this._createOnWidgetCommand(),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this)}},{key:"_initMarkup",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this);var e=(0,u.default)("<div>").addClass("dx-diagram-toolbar").appendTo(this._$element);this._renderToolbar(e)}},{key:"_renderToolbar",value:function(e){var t=this._prepareToolbarItems(p.default.getToolbar(),"before",this._execDiagramCommand);t=t.concat(this._prepareToolbarItems(_,"after",this._execWidgetCommand)),this._toolbarInstance=this._createComponent(e,d.default,{dataSource:t})}},{key:"_prepareToolbarItems",value:function(e,t,n){var i=this;return e.map(function(e){return(0,g.extend)(!0,{location:t,locateInMenu:"auto"},i._createItem(e,t,n),i._createItemOptions(e),i._createItemActionOptions(e,n))})}},{key:"_createItem",value:function(e,t,n){var i=this;return"separator"===e.widget?{template:function(e,t,n){(0,u.default)(n).addClass("dx-diagram-toolbar-separator")},menuItemTemplate:function(e,t,n){(0,u.default)(n).addClass("dx-diagram-toolbar-menu-separator")}}:{widget:e.widget||"dxButton",cssClass:e.cssClass,options:{stylingMode:"text",text:e.text,hint:e.hint,icon:e.icon,onInitialized:function(t){return i._onItemInitialized(t.component,e)},onContentReady:function(t){return i._onItemContentReady(t.component,e,n)}}}}},{key:"_createItemOptions",value:function(e){var t=e.widget,n=e.items,i=e.valueExpr,o=e.displayExpr,a=e.showText,r=e.hint,s=e.icon;return"dxSelectBox"===t?this._createSelectBoxItemOptions(r,n,i,o):"dxColorBox"===t?this._createColorBoxItemOptions(r,s):t&&"dxButton"!==t?void 0:{showText:a||"inMenu"}}},{key:"_createSelectBoxItemOptions",value:function(e,t,n,i){var o=this._createSelectBoxBaseItemOptions(e);return o=(0,g.extend)(!0,o,{options:{items:t,valueExpr:n,displayExpr:i}}),t.every(function(e){return void 0!==e.icon})&&(o=(0,g.extend)(!0,o,{options:{fieldTemplate:function(e,t){(0,u.default)("<i>").addClass(e&&e.icon).appendTo(t),(0,u.default)("<div>").dxTextBox({readOnly:!0,stylingMode:"outlined"}).appendTo(t)},itemTemplate:function(e){return'<i class="'+e.icon+'"'+(e.hint&&' title="'+e.hint)+'"}></i>'}}})),o}},{key:"_createColorBoxItemOptions",value:function(e,t){var n=this._createSelectBoxBaseItemOptions(e);return t&&(n=(0,g.extend)(!0,n,{options:{openOnFieldClick:!0,fieldTemplate:function(e,n){(0,u.default)("<i>").addClass(t).css("borderBottomColor",e).appendTo(n),(0,u.default)("<div>").dxTextBox({readOnly:!0,stylingMode:"outlined"}).appendTo(n)}}})),n}},{key:"_createSelectBoxBaseItemOptions",value:function(e){return{options:{stylingMode:"filled",hint:e}}}},{key:"_createItemActionOptions",value:function(e,t){var n=this;switch(e.widget){case"dxSelectBox":case"dxColorBox":return{options:{onValueChanged:function(i){var o=n._getExecCommandParameter(e,i.component.option("value"));t.call(n,e.command,o)}}};default:if(!e.items)return{options:{onClick:function(i){var o=n._getExecCommandParameter(e);t.call(n,e.command,o)}}}}}},{key:"_getExecCommandParameter",value:function(e,t){return e.getParameter?e.getParameter(this,t):t}},{key:"_onItemInitialized",value:function(e,t){void 0!==t.command&&(this._itemHelpers[t.command]=new y(e))}},{key:"_onItemContentReady",value:function(e,t,n){var i=this;if("dxButton"===e.NAME&&t.items){var o=(0,u.default)("<div>").appendTo(this.$element());this._createComponent(o,h.default,{dataSource:t.items,displayExpr:"text",valueExpr:"command",target:e.$element(),showEvent:"dxclick",position:{at:"left bottom"},onItemClick:function(e){var t=e.itemData,o=i._getExecCommandParameter(t);n.call(i,t.command,o)},onInitialized:function(e){var n=e.component;return i._onContextMenuInitialized(n,t)},onDisposing:function(e){var n=e.component;return i._onContextMenuDisposing(n,t)}})}}},{key:"_onContextMenuInitialized",value:function(e,t){var n=this;this._contextMenus.push(e),t.items.forEach(function(t,i){n._itemHelpers[t.command]=new b(e,i)})}},{key:"_onContextMenuDisposing",value:function(e,t){this._contextMenus=this._contextMenus.filter(function(t){return t!==e})}},{key:"_execDiagramCommand",value:function(e,t){this._updateLocked||this.bar.raiseBarCommandExecuted(e,t)}},{key:"_execWidgetCommand",value:function(e){this._updateLocked||this._onWidgetCommandAction({name:e})}},{key:"_createOnWidgetCommand",value:function(){this._onWidgetCommandAction=this._createActionByOption("onWidgetCommand")}},{key:"_setItemEnabled",value:function(e,t){e in this._itemHelpers&&this._itemHelpers[e].setEnabled(t)}},{key:"_setEnabled",value:function(e){this._toolbarInstance.option("disabled",!e),this._contextMenus.forEach(function(t){return t.option("disabled",!e)})}},{key:"_setItemValue",value:function(e,t){try{this._updateLocked=!0,e in this._itemHelpers&&this._itemHelpers[e].setValue(t)}finally{this._updateLocked=!1}}},{key:"_optionChanged",value:function(e){switch(e.name){case"onWidgetCommand":this._createOnWidgetCommand();break;case"export":break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_getDefaultOptions",value:function(){return(0,g.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{export:{fileName:"Diagram",proxyUrl:void 0}})}}]),t}(),v=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,f.default),s(t,[{key:"getCommandKeys",value:function(){return p.default.getToolbar().reduce(function(e,t){return void 0!==t.command&&e.push(t.command),t.items?e.concat(t.items.filter(function(e){return void 0!==e.command}).map(function(e){return e.command})):e},[])}},{key:"setItemValue",value:function(e,t){this._owner._setItemValue(e,t)}},{key:"setItemEnabled",value:function(e,t){this._owner._setItemEnabled(e,t)}},{key:"setEnabled",value:function(e){this._owner._setEnabled(e)}}]),t}(),y=function(){function e(t){o(this,e),this._widget=t}return s(e,[{key:"setEnabled",value:function(e){this._widget.option("disabled",!e)}},{key:"setValue",value:function(e){"value"in this._widget.option()?this._widget.option("value",e):void 0!==e&&this._widget.$element().toggleClass("dx-format-active",e)}}]),e}(),b=function(e){function t(e,n){o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i._index=n,i}return r(t,y),s(t,[{key:"setEnabled",value:function(e){this._widget.option("items["+this._index+"].disabled",!e)}},{key:"setValue",value:function(e){}}]),t}();e.exports=m},function(e,t){e.exports=window.DevExpress.diagram},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},r=i(n(2)),s=i(n(17)),l=i(n(250)),u=i(n(162)),c=i(n(739)),d=n(6),h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),o(t,[{key:"_init",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this._dataSources=this.option("dataSources")||{},this._customShapes=this.option("customShapes")||[],this._onShapeCategoryRenderedAction=this._createActionByOption("onShapeCategoryRendered"),this._onDataToolboxRenderedAction=this._createActionByOption("onDataToolboxRendered")}},{key:"_initMarkup",value:function(){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this.$element().addClass("dx-diagram-left-panel");var e=(0,r.default)("<div>").appendTo(this.$element());this._scrollView=this._createComponent(e,u.default);var n=(0,r.default)("<div>").appendTo(this._scrollView.content());this._renderAccordion(n)}},{key:"_getAccordionDataSource",value:function(){for(var e=this,t=[],n=c.default.load(this._customShapes.length>0),i=0;i<n.length;i++)t.push({category:n[i].category,title:n[i].title,onTemplate:function(t,n,i){e._onShapeCategoryRenderedAction({category:i.category,$element:n})}});for(var o in this._dataSources)this._dataSources.hasOwnProperty(o)&&(t.push({key:o,title:this._dataSources[o].title,onTemplate:function(t,n,i){e._onDataToolboxRenderedAction({key:i.key,$element:n})}}),this._hasDataSources=!0);return t}},{key:"_renderAccordion",value:function(e){var t=this,n=this._getAccordionDataSource();this._accordionInstance=this._createComponent(e,l.default,{multiple:!0,collapsible:!0,displayExpr:"title",dataSource:n,itemTemplate:function(e,n,i){return e.onTemplate(t,i,e)},onContentReady:function(e){t._updateScrollAnimateSubscription(e.component)}}),(this._customShapes.length>0||this._hasDataSources)&&(this._accordionInstance.collapseItem(0),this._accordionInstance.expandItem(n.length-1))}},{key:"_updateScrollAnimateSubscription",value:function(e){var t=this;e._deferredAnimate=new d.Deferred,e._deferredAnimate.done(function(){t._scrollView.update(),t._updateScrollAnimateSubscription(e)})}},{key:"_optionChanged",value:function(e){switch(e.name){case"customShapes":this._customShapes=e.value||[],this._invalidate();break;case"dataSources":this._dataSources=e.value||{},this._invalidate();break;default:a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}}]),t}();e.exports=h},function(e,t,n){var i=n(202),o={load:function(e){var t=(0,i.getDiagram)().ShapeCategory,n=[{category:t.General,title:"General"},{category:t.Flowchart,title:"Flow Chart"}];return e&&n.push({category:t.Custom,title:"Custom"}),n}};e.exports=o},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),u=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},c=i(n(2)),d=i(n(17)),h=i(n(250)),p=i(n(140)),f=i(n(257)),g=n(0),_=i(n(258)),m=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,d.default),l(t,[{key:"_init",value:function(){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this.bar=new v(this),this._valueConverters={}}},{key:"_initMarkup",value:function(){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this.$element().addClass("dx-diagram-right-panel");var e=(0,c.default)("<div>").appendTo(this.$element());this._renderAccordion(e)}},{key:"_getAccordionDataSource",value:function(){return[{title:"Page Properties",onTemplate:function(e,t){return e._renderOptions(t)}}]}},{key:"_renderAccordion",value:function(e){var t=this;this._accordionInstance=this._createComponent(e,h.default,{multiple:!0,collapsible:!0,displayExpr:"title",dataSource:this._getAccordionDataSource(),itemTemplate:function(e,n,i){return e.onTemplate(t,i)}})}},{key:"_renderOptions",value:function(e){var t=this;this._formInstance=this._createComponent(e,p.default,{items:f.default.getOptions().map(function(e){return(0,g.extend)(!0,{editorType:e.widget,dataField:e.command.toString(),cssClass:e.beginGroup&&"dx-diagram-right-panel-begin-group",label:{text:e.text},options:{text:e.text,hint:e.hint,icon:e.icon,onInitialized:function(n){return t._onToolbarItemInitialized(n.component,e.command)}}},t._createWidgetOptions(e))}),onFieldDataChanged:function(e){return t._onDiagramOptionChanged(e.dataField,e.value)}})}},{key:"_createWidgetOptions",value:function(e){if(e.getValue&&e.setValue&&(this._valueConverters[e.command]={getValue:e.getValue,setValue:e.setValue}),"dxSelectBox"===e.widget)return{editorOptions:{dataSource:e.items,displayExpr:"title",valueExpr:"value"}}}},{key:"_onDiagramOptionChanged",value:function(e,t){if(!this._updateLocked&&void 0!==t){var n=this._valueConverters[e];n&&(t=n.getValue(t)),this.bar.raiseBarCommandExecuted(parseInt(e),t)}}},{key:"_setItemValue",value:function(e,t){var n=this._valueConverters[e];n&&(t=n.setValue(t)),this._updateLocked=!0,this._formInstance.updateData(e.toString(),t),this._updateLocked=!1}},{key:"_setItemSubItems",value:function(e,t){this._updateLocked=!0,this._formInstance.getEditor(e.toString()).option("items",t.map(function(e){return{value:"object"===s(e.value)?JSON.stringify(e.value):e.value,title:e.text}})),this._updateLocked=!1}},{key:"_setEnabled",value:function(e){this._formInstance.option("disabled",!e)}},{key:"_getDefaultOptions",value:function(){return(0,g.extend)(u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{container:null})}}]),t}(),v=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,_.default),l(t,[{key:"getCommandKeys",value:function(){return f.default.getOptions().map(function(e){return e.command})}},{key:"setItemValue",value:function(e,t){this._owner._setItemValue(e,t)}},{key:"setEnabled",value:function(e){this._owner._setEnabled(e)}},{key:"setItemSubItems",value:function(e,t){this._owner._setItemSubItems(e,t)}}]),t}();e.exports=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;return void 0!==r?r.call(i):void 0},u=i(n(2)),c=i(n(17)),d=i(n(105)),h=i(n(257)),p=i(n(258)),f=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,c.default),s(t,[{key:"_init",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this._createOnVisibleChangedAction(),this.bar=new g(this),this._tempState=void 0,this._commandToIndexMap={}}},{key:"_initMarkup",value:function(){var e=this;l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this);var n=h.default.getContextMenu(),i=(0,u.default)("<div>").appendTo(this.$element());this._contextMenuInstance=this._createComponent(i,d.default,{target:this.option("container"),dataSource:n,displayExpr:"text",onItemClick:function(t){var n=t.itemData;return e._onItemClick(n.command)},onShowing:function(t){e._tempState=!0,e._onVisibleChangedAction({visible:!0,component:e}),delete e._tempState},onHiding:function(t){e._tempState=!1,e._onVisibleChangedAction({visible:!1,component:e}),delete e._tempState}}),n.forEach(function(t,n){return e._commandToIndexMap[t.command]=n})}},{key:"_onItemClick",value:function(e){this.bar.raiseBarCommandExecuted(e),this._contextMenuInstance.hide()}},{key:"_setItemEnabled",value:function(e,t){e in this._commandToIndexMap&&this._contextMenuInstance.option("items["+this._commandToIndexMap[e]+"].disabled",!t)}},{key:"_setEnabled",value:function(e){this._contextMenuInstance.option("disabled",!e)}},{key:"isVisible",value:function(){return void 0!==this._tempState?this._tempState:!!this._contextMenuInstance.option("visible")}},{key:"_createOnVisibleChangedAction",value:function(){this._onVisibleChangedAction=this._createActionByOption("onVisibleChanged")}},{key:"_optionChanged",value:function(e){switch(e.name){case"onVisibleChanged":this._createOnVisibleChangedAction();break;default:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}}]),t}(),g=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,p.default),s(t,[{key:"getCommandKeys",value:function(){return h.default.getContextMenu().map(function(e){return e.command})}},{key:"setItemEnabled",value:function(e,t){this._owner._setItemEnabled(e,t)}},{key:"setEnabled",value:function(e){this._owner._setEnabled(e)}},{key:"isVisible",value:function(){return this._owner.isVisible()}}]),t}();e.exports=f},function(e,t,n){var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function(e){return e&&e.__esModule?e:{default:e}}(n(390)),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),i(t,[{key:"_dataSourceChangedHandler",value:function(e,t){this._diagramWidget._nodesDataSourceChanged(e)}}]),t}();e.exports=a},function(e,t,n){var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function(e){return e&&e.__esModule?e:{default:e}}(n(390)),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),i(t,[{key:"_dataSourceChangedHandler",value:function(e,t){this._diagramWidget._edgesDataSourceChanged(e)}}]),t}();e.exports=a},function(e,t,n){var i=n(171);n(211);var o=i.viz=n(745);o.currentTheme=n(50).currentTheme,o.registerTheme=n(50).registerTheme,o.exportFromMarkup=n(259).exportFromMarkup,o.getMarkup=n(259).getMarkup,o.exportWidgets=n(259).exportWidgets,o.currentPalette=n(167).currentPalette,o.getPalette=n(167).getPalette,o.generateColors=n(167).generateColors,o.registerPalette=n(167).registerPalette,o.refreshTheme=n(50).refreshTheme,o.dxChart=n(746),o.dxPieChart=n(784),o.dxPolarChart=n(785),o.dxLinearGauge=n(786),o.dxCircularGauge=n(792),o.dxBarGauge=n(795),o.dxRangeSelector=n(797),o.dxVectorMap=n(805),o.map={},o.map.sources={},o.map.projection=n(409).projection,o.dxSparkline=n(815),o.dxBullet=n(817),o.dxTreeMap=n(819),o.dxFunnel=n(830),o.dxSankey=n(838),o.BaseWidget=n(98),o.getTheme=n(50).getTheme,o.findTheme=n(50).getTheme,o.refreshAll=n(50).refreshTheme,o.refreshPaths=n(845).refreshPaths,o.gauges={__internals:{}},o._dashboard={},o._dashboard.Renderer=n(168).Renderer,o._dashboard.SvgElement=n(168).SvgElement,o._dashboard.patchFontOptions=n(11).patchFontOptions,e.exports=o},function(e,t,n){n(129),e.exports=DevExpress.viz=DevExpress.viz||{}},function(e,t,n){function i(e,t,n){var i=e.getOptions().grid,o=e.getOptions().minorGrid;i.visible=t,o&&(o.visible=n)}function o(e){var t=!1,n=[],o=e.some(function(e){var t=e.getOptions().minorGrid;return t&&t.visible}),a=e.some(function(e){var t=e.getOptions().grid;return t&&t.visible});e.length>1&&(e.forEach(function(e){var r=e.getOptions().grid;t?i(e,!1,!1):r&&r.visible&&(e.getTranslator().getBusinessRange().isEmpty()?(i(e,!1,!1),n.push(e)):(t=!0,i(e,a,o)))}),!t&&n.length&&i(n[0],a,o))}function a(e,t){return e.priority-t.priority}function r(e,t){var n=!1;return L(e,function(e,i){if(i.name===t)return n=!0,!1}),n}function s(e,t,n,i){var o=t[e]||0,a=n[e]||0;return o+a+(o&&a?i:0)}function l(e,t,n){return u(t[e],n[e])}function u(e,t){return Math.max(e||0,t||0)}function c(e){return e.getMargins()}function d(e,t){return e.reduce(function(e,n){var i=t(n),o=e.panes[n.pane]=e.panes[n.pane]||{},a=n.getMultipleAxesSpacing();return o.top=s("top",o,i,a),o.bottom=s("bottom",o,i,a),o.left=l("left",o,i),o.right=l("right",o,i),e.top=l("top",o,e),e.bottom=l("bottom",o,e),e.left=l("left",o,e),e.right=l("right",o,e),e},{panes:{}})}function h(e){return e.reduce(function(e,t){var n=t.getMargins(),i=e.panes[t.pane]=e.panes[t.pane]||{},o=t.getMultipleAxesSpacing();return i.top=l("top",i,n),i.bottom=l("bottom",i,n),i.left=s("left",i,n,o),i.right=s("right",i,n,o),e.top=l("top",i,e),e.bottom=l("bottom",i,e),e.left=l("left",i,e),e.right=l("right",i,e),e},{panes:{}})}function p(e,t,n,i,o){e.forEach(function(e){e[t](n&&n[e.pane],i&&i[e.pane]||i,o)})}function f(e,t,n,i){function o(t,n,i){return(-1===(e?["left","right"]:["top","bottom"]).indexOf(t)?n:n.panes[i]||{})[t]}function a(e,t,n,i){return u(o(e,t,i),o(e,n,i))}for(var r in t)t[r].top=t[r].originalTop+a("top",n,i,r),t[r].bottom=t[r].originalBottom+a("bottom",n,i,r),t[r].left=t[r].originalLeft+a("left",n,i,r),t[r].right=t[r].originalRight+a("right",n,i,r);return t}function g(e,t,n,i){t&&(p(e,"createTicks",n),E.synchronize(e)),p(e,"draw",!t&&n,i)}function _(e,t){var n={};return function(i){var o=n[i.pane]=n[i.pane]||{top:0,left:0,bottom:0,right:0},a=i.getMultipleAxesSpacing(),r=i.getMargins();i.shift(o),o[e]=s(e,o,r,a),o[t]=s(t,o,r,a)}}function m(e,t){var n,i,o=0;for(n in t.panes)i=t.panes[n],o+="height"===e?i.top+i.bottom:i.left+i.right;return o}function v(e,t,n,i){var o=0;e[t]>0&&(o=m(t,i(n,c)),p(n,"hideTitle"),e[t]-=o-m(t,i(n,c))),e[t]>0&&p(n,"hideOuterElements")}var y=n(4).noop,b=n(0).extend,x=n(13).inArray,w=n(3).each,C=n(8),k=n(11),S=n(1),I=n(29),T=n(260).overlapping,D=n(395),E=n(771),A=n(396).AdvancedChart,O=n(780),P=n(402),B=n(267),M=n(109),R="default",F=[{name:R,border:{}}],V=k.map,L=w,H=Array.isArray,z=n(1).isDefined,N=A.inherit({_themeSection:"chart",_fontFields:["crosshair.label.font"],_setDeprecatedOptions:function(){this.callBase.apply(this,arguments),b(this._deprecatedOptions,{useAggregation:{since:"18.1",message:"Use the 'commonSeriesSettings.aggregation.enabled' or 'series.aggregation.enabled' option instead"},"argumentAxis.min":{since:"18.2",message:"Use the 'argumentAxis.visualRange' option instead"},"argumentAxis.max":{since:"18.2",message:"Use the 'argumentAxis.visualRange' option instead"},"valueAxis.min":{since:"18.2",message:"Use the 'valueAxis.visualRange' option instead"},"valueAxis.max":{since:"18.2",message:"Use the 'valueAxis.visualRange' option instead"},zoomingMode:{since:"18.2",message:"Use the 'zoomAndPan' option instead"},scrollingMode:{since:"18.2",message:"Use the 'zoomAndPan' option instead"}})},_partialOptionChangesMap:{visualRange:"VISUAL_RANGE"},_initCore:function(){this.paneAxis={},this._panesClipRects={},this.callBase()},_disposeCore:function(){var e=this,t=this._disposeObjectsInArray,n=e._panesClipRects;e.callBase(),t.call(n,"fixed"),t.call(n,"base"),t.call(n,"wide"),e._panesClipRects=null},_correctAxes:function(){this._correctValueAxes(!0)},_getExtraOptions:y,_cleanPanesClipRects:function(e){var t=this._panesClipRects[e];L(t||[],function(e,t){t&&t.dispose()}),this._panesClipRects[e]=[]},_createPanes:function(){var e,t=this,n=t.option("panes"),i=0;return(!n||H(n)&&!n.length)&&(n=F),t._cleanPanesClipRects("fixed"),t._cleanPanesClipRects("base"),t._cleanPanesClipRects("wide"),e=t.option("defaultPane"),n=b(!0,[],H(n)?n:[n]),L(n,function(e,t){t.name=z(t.name)?t.name:R+i++}),z(e)?r(n,e)||(t._incidentOccurred("W2101",[e]),e=n[n.length-1].name):e=n[n.length-1].name,t.defaultPane=e,t._isRotated()?n.reverse():n},_getAxisRenderingOptions:function(){return{axisType:"xyAxes",drawingType:"linear"}},_prepareAxisOptions:function(e,t,n){return{isHorizontal:"argumentAxis"===e!==n,containerColor:this._themeManager.getOptions("containerBackgroundColor")}},_checkPaneName:function(e){var t=V(this.panes,function(e){return e.name});return e.pane=e.pane||this.defaultPane,-1!==x(e.pane,t)},_getValueAxis:function(e,t){var n,i,o=this,a=o._valueAxes,r=o.option("valueAxis")||{},s=H(r)?r:[r],l=o._isRotated(),u=o._getCrosshairMargins();return t=t||function(e,t,n){for(var i,o=0;o<e.length;o++)if(e[o].pane===t||void 0===e[o].pane&&t===n){i=e[o].name;break}return i||(i=e[0].name),i}(a,e,o.defaultPane),(i=function e(t,n,i){var o,a;for(a=0;a<i.length;a++)if((o=i[a]).name===n&&o.pane===t)return o;if(t)return e(void 0,n,i)}(e,t,a))||((n=function(e,t,n){var i,o;for(o=0;o<t.length;o++)if(t[o].name===n){(i=t[o]).priority=o;break}if(!i)for(o=0;o<e.length;o++)if(e[o].name===n){(i=e[o].getOptions()).priority=e[o].priority;break}return i}(a,s,t))||(o._incidentOccurred("W2102",[t]),n={name:t,priority:a.length}),(i=o._createAxis(!1,o._populateAxesOptions("valueAxis",n,{pane:e,name:t,optionPath:H(r)?"valueAxis["+n.priority+"]":"valueAxis",crosshairMargin:l?u.y:u.x},l))).applyVisualRangeSetter(o._getVisualRangeSetter()),a.push(i)),i.setPane(e),i},_correctValueAxes:function(e){var t=this,n=t._themeManager.getOptions("synchronizeMultiAxes"),i=t._valueAxes,s={};t.series.forEach(function(e){var t=e.getValueAxis();s[t.pane]=!0}),t.panes.forEach(function(a){var r=a.name;s[r]||t._getValueAxis(r),e&&n&&o(i.filter(function(e){return e.pane===r}))}),t._valueAxes=i.filter(function(e){return e.pane||e.setPane(t.defaultPane),r(t.panes,e.pane)}).sort(a);var l=this.getValueAxis();t._valueAxes.forEach(function(e){var n=e.getOptions().optionPath;if(n){var i=t._valueAxes.filter(function(e){return e.getOptions().optionPath===n});i.length>1&&(i.some(function(e){return e===l})?i.forEach(function(e){e!==l&&(e.getOptions().optionPath=null)}):i.forEach(function(e,t){0!==t&&(e.getOptions().optionPath=null)}))}})},_getSeriesForPane:function(e){var t=[];return L(this.series,function(n,i){i.pane===e&&t.push(i)}),t},_createPanesBorderOptions:function(){var e=this._themeManager.getOptions("commonPaneSettings").border,t={};return this.panes.forEach(function(n){return t[n.name]=b(!0,{},e,n.border)}),t},_createScrollBar:function(){var e=this,t=e._themeManager.getOptions("scrollBar")||{},n=e._scrollBarGroup;t.visible?(t.rotated=e._isRotated(),e._scrollBar=(e._scrollBar||new O.ScrollBar(e._renderer,n)).update(t)):(n.linkRemove(),e._scrollBar&&e._scrollBar.dispose(),e._scrollBar=null)},_prepareToRender:function(e){var t=this._createPanesBorderOptions();return this._createPanesBackground(),this._appendAxesGroups(),this._adjustViewport(),t},_adjustViewport:function(){var e=this,t=e._getVisibleSeries(),n=e.getArgumentAxis(),i=t.some(function(e){return e.useAggregation()}),o=e._themeManager.getOptions("adjustOnZoom"),a=!n.dataVisualRangeIsReduced();(i||o)&&e._valueAxes.forEach(function(e){return e.adjust(a)})},_recreateSizeDependentObjects:function(e){var t=this,n=t._getVisibleSeries(),i=n.some(function(e){return e.useAggregation()}),o=t._isZooming();i&&(t._argumentAxes.forEach(function(e){e.updateCanvas(t._canvas)}),n.forEach(function(t){t.useAggregation()&&(e||o||!t._useAllAggregatedPoints)&&t.createPoints()}),t._processSeriesFamilies())},_isZooming:function(){var e=this,t=e.getArgumentAxis();if(!t||!t.getTranslator())return!1;var n=t.getTranslator().getBusinessRange(),i=t.getViewport(),o=i?i.min:0,a=i?i.max:0;"logarithmic"===n.axisType&&(o=k.getLog(o,n.base),a=k.getLog(a,n.base));var r="discrete"===n.axisType?k.getCategoriesInfo(n.categories,o,a).categories.length:Math.abs(a-o),s=I.getPrecision(r);s=s>1?Math.pow(10,s-2):1;var l=Math.round((e._zoomLength-r)*s)/s!=0;return e._zoomLength=r,l},_handleSeriesDataUpdated:function(){var e=this,t=new M.Range;e.series.forEach(function(e){t.addRange(e.getArgumentRange())}),e._argumentAxes.forEach(function(n){n.updateCanvas(e._canvas),n.setBusinessRange(t,e._axesReinitialized)}),e.callBase()},_isLegendInside:function(){return this._legend&&"inside"===this._legend.getPosition()},_isRotated:function(){return this._themeManager.getOptions("rotated")},_getLayoutTargets:function(){return this.panes},_applyClipRects:function(e){var t,n=this,i=n._getCanvasClipRectID();for(n._drawPanesBorders(e),n._createClipRectsForPanes(),t=0;t<n._argumentAxes.length;t++)n._argumentAxes[t].applyClipRects(n._getElementsClipRectID(n._argumentAxes[t].pane),i);for(t=0;t<n._valueAxes.length;t++)n._valueAxes[t].applyClipRects(n._getElementsClipRectID(n._valueAxes[t].pane),i);n._fillPanesBackground()},_updateLegendPosition:function(e,t){var n=this;if(e.drawLegend&&n._legend&&t){var i=n.panes,o=b({},i[0].canvas),a=new D.LayoutManager;o.right=i[i.length-1].canvas.right,o.bottom=i[i.length-1].canvas.bottom,a.setOptions({width:0,height:0}),a.layoutElements([n._legend],o,y,[{canvas:o}],void 0)}},_allowLegendInsidePosition:function(){return!0},_applyExtraSettings:function(e){var t=this,n=t._getPaneIndex(e.pane),i=t._panesClipRects,o=i.wide[n];e.setClippingParams(i.base[n].id,o&&o.id,t._getPaneBorderVisibility(n))},_updatePanesCanvases:function(e){e.recreateCanvas&&k.updatePanesCanvases(this.panes,this._canvas,this._isRotated())},_renderScaleBreaks:function(){this._valueAxes.concat(this._argumentAxes).forEach(function(e){e.drawScaleBreaks()})},_applyPointMarkersAutoHiding:function(){var e=this;return e._themeManager.getOptions("autoHidePointMarkers")?void e.panes.forEach(function(t){var n=e.series.filter(function(e){return e.pane===t.name&&e.usePointsToDefineAutoHiding()}),i=e.getArgumentAxis(),o=i.visualRange(),a=i.getTranslator(),r=i.getOptions().type,s=B.getViewPortFilter(o||{}),l=[],u={};n.forEach(function(t){var i=t.getValueAxis(),o=i.visualRange(),r=i.getTranslator(),c=e.series.indexOf(t),d=B.getViewPortFilter(o||{});u[c]={},n.forEach(function(t){return u[c][e.series.indexOf(t)]=0});var h=[];t.getPoints().filter(function(e){return e.getOptions().visible&&s(e.argument)&&(d(e.getMinValue(!0))||d(e.getMaxValue(!0)))}).forEach(function(e){var t={seriesIndex:c,argument:e.argument,value:e.getMaxValue(!0),size:e.bubbleSize||e.getOptions().size};if(e.getMinValue(!0)!==e.getMaxValue(!0)){var n=b({},t);n.value=e.getMinValue(!0),n.x=a.to(n.argument,1),n.y=r.to(n.value,1),h.push(n)}t.x=a.to(t.argument,1),t.y=r.to(t.value,1),h.push(t)}),u[c].pointsCount=h.length,u[c].total=0,l=l.concat(h)});var c="discrete"===r?function(e,t){return o.categories.indexOf(e.argument)-o.categories.indexOf(t.argument)}:function(e,t){return e.argument-t.argument};l.sort(c);for(var d=0;d<l.length;d++){var h=l[d],p=h.size,f=d+1>l.length-d-1?d+1:l.length-d;if(z(h.x)&&z(h.y))for(var g=1;g<f;g++){var _=l[d-g],m=l[d+g],v=z(_)?_.x:null,y=z(_)?_.y:null,x=z(m)?m.x:null,w=z(m)?m.y:null;if((!z(v)||Math.abs(h.x-v)>=p)&&(!z(x)||Math.abs(h.x-x)>=p))break;z(v)&&z(y)&&Math.sqrt(Math.pow(h.x-v,2)+Math.pow(h.y-y,2))<p&&(u[h.seriesIndex][_.seriesIndex]++,u[h.seriesIndex].total++),z(x)&&z(w)&&Math.sqrt(Math.pow(h.x-x,2)+Math.pow(h.y-w,2))<p&&(u[h.seriesIndex][m.seriesIndex]++,u[h.seriesIndex].total++)}}n.forEach(function(t){var n=e.series.indexOf(t);if(t.autoHidePointMarkers=!1,t.autoHidePointMarkersEnabled()&&("discrete"===r||u[n].pointsCount>i.getTicksValues().majorTicksValues.length))for(var o in u[n]){var a=parseInt(o);if(!isNaN(a))if(a===n){if(u[a][a]>=u[a].pointsCount){t.autoHidePointMarkers=!0;break}}else if(u[n].total>=2*u[n].pointsCount){t.autoHidePointMarkers=!0;break}}})}):void e.series.forEach(function(e){return e.autoHidePointMarkers=!1})},_renderAxes:function(e,t){function n(e){return e.map(function(e){if(!e.getTitle)return 0;var t=e.getTitle();return t?t.bBox.width:0})}var i=this,o=i._isRotated(),a=i._themeManager.getOptions("synchronizeMultiAxes"),r=(i._scrollBar?[i._scrollBar]:[]).concat(i._argumentAxes),s=o?r:i._valueAxes,l=o?i._valueAxes:r,u=s.concat(l);i._updatePanesCanvases(e);var m=i.panes.reduce(function(e,t){return e[t.name]=b({},t.canvas),e},{}),v=b(!0,{},m);if(!e.adjustAxes)return g(s,!o&&a,m,t),g(l,o&&a,m,t),p(u,"prepareAnimation"),i._renderScaleBreaks(),!1;i._scrollBar&&i._scrollBar.setPane(i.panes);var y={panes:{}},x=d(l,function(e){return e.estimateMargins(m[e.pane])});m=f(o,m,y,x),g(s,!o&&a,m,t),y=h(s),m=f(o,m,y,x),g(l,o&&a,m,t),x=d(l,c),m=f(o,m,y,x);var w=n(s);return p(u,"updateSize",m,function(e,t){var n=t.reduce(function(e,t){return e+t.getPoints().length},0)/t.length;return e.animate&&n<=e.animationPointsLimit}(e,i._getVisibleSeries())),l.forEach(_("top","bottom")),s.forEach(_("left","right")),i._renderScaleBreaks(),i.panes.forEach(function(e){b(e.canvas,m[e.name])}),i._valueAxes.forEach(function(e){e.setInitRange()}),s.forEach(function(e,t){if(e.hasWrap&&e.hasWrap()){var a=e.getTitle(),r=(a?a.bBox.width:0)-w[t];"right"===e.getOptions().position?y.right+=r:(y.left+=r,i.panes.forEach(function(e){var t=e.name;return y.panes[t].left+=r})),m=f(o,m,y,x),p(u,"updateSize",m,!1,!1),w=n(s)}}),v},_shrinkAxes:function(e,t){if(e&&t){this._renderer.stopAllAnimations();var n=this,i=n._isRotated(),o=(n._scrollBar?[n._scrollBar]:[]).concat(n._argumentAxes),a=i?o:n._valueAxes,r=i?n._valueAxes:o,s=a.concat(r);(e.width||e.height)&&(v(e,"height",r,d),v(e,"width",a,h),p(s,"updateSize",t),p(s,"updateSize",t=f(i,t,h(a),d(r,c))),r.forEach(_("top","bottom")),a.forEach(_("left","right")),n.panes.forEach(function(e){b(e.canvas,t[e.name])}))}},_getPanesParameters:function(){var e,t=this,n=t.panes,i=[];for(e=0;e<n.length;e++)t._getPaneBorderVisibility(e)&&i.push({coords:n[e].borderCoords,clipRect:t._panesClipRects.fixed[e]});return i},_createCrosshairCursor:function(){var e=this,t=e._themeManager.getOptions("crosshair")||{},n=e.getArgumentAxis(),i=e._isRotated()?[e._valueAxes,[n]]:[[n],e._valueAxes],o={canvas:e._getCommonCanvas(),panes:e._getPanesParameters(),axes:i};t&&t.enabled&&(e._crosshair?e._crosshair.update(t,o):e._crosshair=new P.Crosshair(e._renderer,t,o,e._crosshairCursorGroup),e._crosshair.render())},_getCommonCanvas:function(){var e,t,n,i=this.panes;for(e=0;e<i.length;e++)t=i[e].canvas,n?(n.right=t.right,n.bottom=t.bottom):n=b({},t);return n},_createPanesBackground:function(){var e,t,n,i=this,o=i._themeManager.getOptions("commonPaneSettings").backgroundColor,a=i._renderer,r=[];for(i._panesBackgroundGroup.clear(),n=0;n<i.panes.length;n++)(e=i.panes[n].backgroundColor||o)&&"none"!==e?(t=a.rect(0,0,0,0).attr({fill:e,"stroke-width":0}).append(i._panesBackgroundGroup),r.push(t)):r.push(null);i.panesBackground=r},_fillPanesBackground:function(){var e,t=this;L(t.panes,function(n,i){e=i.borderCoords,null!==t.panesBackground[n]&&t.panesBackground[n].attr({x:e.left,y:e.top,width:e.width,height:e.height})})},_calcPaneBorderCoords:function(e){var t=e.canvas,n=e.borderCoords=e.borderCoords||{};n.left=t.left,n.top=t.top,n.right=t.width-t.right,n.bottom=t.height-t.bottom,n.width=Math.max(n.right-n.left,0),n.height=Math.max(n.bottom-n.top,0)},_drawPanesBorders:function(e){var t=this,n=t._isRotated();t._panesBorderGroup.linkRemove().clear(),L(t.panes,function(i,o){var a,r,s=e[o.name],l={fill:"none",stroke:s.color,"stroke-opacity":s.opacity,"stroke-width":s.width,dashStyle:s.dashStyle,"stroke-linecap":"square"};t._calcPaneBorderCoords(o,n),s.visible&&(r=function(e,t,n,i,o){var a,r=~~((n<i?n:i)/2),s=o.width||0,l=s<r?s:r,u=(e+=l/2)+(n-=l),c=(t+=l/2)+(i-=l),d=[],h=[],p=0,f=0,g={top:[[e,t],[u,t]],right:[[u,t],[u,c]],bottom:[[u,c],[e,c]],left:[[e,c],[e,t]]};switch(L(g,function(e){var t=!!o[e];p=2*p+~~t}),p){case 13:case 9:a=["left","top","right","bottom"];break;case 11:a=["bottom","left","top","right"];break;default:a=["top","right","bottom","left"]}return L(a,function(e,t){var n=!!o[t];!f&&h.length&&(d.push(h),h=[]),n&&L(g[t].slice(f),function(e,t){h=h.concat(t)}),f=~~n}),h.length&&d.push(h),1===d.length&&(d=d[0]),{points:d,pathType:15===p?"area":"line"}}((a=o.borderCoords).left,a.top,a.width,a.height,s),t._renderer.path(r.points,r.pathType).attr(l).append(t._panesBorderGroup))}),t._panesBorderGroup.linkAppend()},_createClipRect:function(e,t,n,i,o,a){var r=e[t];r?r.attr({x:n,y:i,width:o,height:a}):(r=this._renderer.clipRect(n,i,o,a),e[t]=r)},_createClipRectsForPanes:function(){var e=this,t=e._canvas;L(e.panes,function(n,i){var o=!1,a=i.borderCoords,r=a.left,s=a.top,l=a.width,u=a.height,c=e._panesClipRects;e._createClipRect(c.fixed,n,r,s,l,u),e._createClipRect(c.base,n,r,s,l,u),L(e.series,function(e,t){t.pane===i.name&&(t.isFinancialSeries()||t.areErrorBarsVisible())&&(o=!0)}),o?(e._isRotated()?(s=0,u=t.height):(r=0,l=t.width),e._createClipRect(c.wide,n,r,s,l,u)):c.wide[n]=null})},_getPaneIndex:function(e){var t;return L(this.panes,function(n,i){if(i.name===e)return t=n,!1}),t},_getPaneBorderVisibility:function(e){var t=this._themeManager.getOptions("commonPaneSettings").border.visible,n=(this.panes[e]||{}).border||{};return"visible"in n?n.visible:t},_getElementsClipRectID:function(e){return this._panesClipRects.fixed[this._getPaneIndex(e)].id},_getCanvasForPane:function(e){var t,n=this.panes,i=n.length;for(t=0;t<i;t++)if(n[t].name===e)return n[t].canvas},_getTrackerSettings:function(){var e=this,t=e._themeManager;return b(this.callBase(),{chart:e,rotated:e._isRotated(),crosshair:e._getCrosshairOptions().enabled?e._crosshair:null,stickyHovering:t.getOptions("stickyHovering")})},_resolveLabelOverlappingStack:function(){var e=this,t=e._isRotated(),n=t?function(e,t){return{x:e.x-t,y:e.y}}:function(e,t){return{x:e.x,y:e.y-t}};L(e._getStackPoints(),function(i,o){L(o,function(i,o){T.resolveLabelOverlappingInOneDirection(o,e._getCommonCanvas(),t,n,function(e,n){var i=t?1:0;return e.labels[0].getFigureCenter()[i]-n.labels[0].getFigureCenter()[i]==0?(e.value()-n.value())*(e.labels[0].getPoint().series.getValueAxis().getTranslator().isInverted()?-1:1):0})})})},_getStackPoints:function(){var e={},t=this._getVisibleSeries();return L(t,function(t,n){var i=n.getPoints(),o=n.getStackName()||null;L(i,function(t,n){var i=n.argument;e[i]||(e[i]={}),e[i][o]||(e[i][o]=[]),e[i][o].push(n)})}),e},_getCrosshairOptions:function(){return this._getOption("crosshair")},_parseVisualRangeOption:function(e,t){var n=this,i=e.split(/[.[]/)[0],o=e.match(/\d+/g);e.indexOf("visualRange")>0?n._setCustomVisualRange("argumentAxis"===i,z(o)?parseInt(o[0]):o,t):("object"===S.type(t)||"array"===S.type(t))&&i.indexOf("Axis")>0&&JSON.stringify(t).indexOf("visualRange")>0&&(z(t.visualRange)?n._setCustomVisualRange("argumentAxis"===i,z(o)?parseInt(o[0]):o,t.visualRange):H(t)&&t.forEach(function(e,t){return n._setCustomVisualRange("argumentAxis"===i,t,e.visualRange)}))},_setCustomVisualRange:function(e,t,n){var i=e?"argumentAxis":"valueAxis",o=this._options[i];o&&(e||!z(t)?o._customVisualRange=n:o[t]._customVisualRange=n)},zoomArgument:function(e,t){this._initialized&&(z(e)||z(t))&&this.getArgumentAxis().visualRange([e,t])},resetVisualRange:function(){var e=this;e._argumentAxes.forEach(function(t){t.resetVisualRange(e.getArgumentAxis()!==t)}),e._valueAxes.forEach(function(e){return e.resetVisualRange(!1)}),e._requestChange(["VISUAL_RANGE"])},_getVisualRangeSetter:function(){var e=this;return function(t,n){if(t.getOptions().optionPath&&(e._parseVisualRangeOption(t.getOptions().optionPath+".visualRange",n),t.setCustomVisualRange(n)),t.isArgumentAxis){if(t!==e.getArgumentAxis())return;e._argumentAxes.filter(function(e){return e!==t}).forEach(function(e){return e.visualRange(n,{start:!0,end:!0})})}e._applyingChanges?e._change_VISUAL_RANGE():e._requestChange(["VISUAL_RANGE"])}},getVisibleArgumentBounds:function(){var e=this._argumentAxes[0].getTranslator().getBusinessRange(),t="discrete"===e.axisType,n=e.categories;return{minVisible:t?e.minVisible||n[0]:e.minVisible,maxVisible:t?e.maxVisible||n[n.length-1]:e.maxVisible}},_change_VISUAL_RANGE:function(){var e=this;e._recreateSizeDependentObjects(!1),e._doRender({force:!0,drawTitle:!1,drawLegend:!1,adjustAxes:this.option("adjustAxesOnZoom")||!1,animate:!1}),e._argumentAxes.forEach(function(e){return e.handleZoomEnd()}),e._valueAxes.forEach(function(e){return e.handleZoomEnd()})},_notifyOptionChanged:function(e,t,n){this.callBase.apply(this,arguments),this._optionChangedLocker||this._parseVisualRangeOption(e,t)},_setOptionsByReference:function(){this.callBase(),b(this._optionsByReference,{"argumentAxis.visualRange":!0,"valueAxis.visualRange":!0})},option:function(){var e=this.callBase.apply(this,arguments);if("array"===S.type(this._options.valueAxis))for(var t=0;t<this._options.valueAxis.length;t++){var n="valueAxis["+t+"].visualRange";this._optionsByReference[n]=!0}return e},_optionChanged:function(e){if(!this._optionChangedLocker&&e.fullName.indexOf("visualRange")>0){var t=void 0;if(e.fullName&&(t=e.fullName.slice(0,e.fullName.indexOf("."))),"argumentAxis"===t)return void this.getArgumentAxis().visualRange(e.value);var n=this._valueAxes.filter(function(e){return e.getOptions().optionPath===t})[0];n&&n.visualRange(e.value)}this.callBase(e)},_notify:function(){var e=this;if(!0!==e.option("disableTwoWayBinding")){var t=k.convertVisualRangeObject(this._argumentAxes[0].visualRange(),!H(e.option("argumentAxis.visualRange")));e.option("argumentAxis.visualRange",t),e._valueAxes.forEach(function(t){if(t.getOptions().optionPath){var n=t.getOptions().optionPath+".visualRange",i=k.convertVisualRangeObject(t.visualRange(),!H(e.option(n)));e.option(n,i)}})}}});N.addPlugin(n(781)),N.addPlugin(n(782)),N.addPlugin(n(403).plugins.core),N.addPlugin(n(403).plugins.chart),C("dxChart",N),e.exports=N},function(e,t,n){var i="#ffffff",o="#000000",a="#d3d3d3",r="#303030",s="#ff0000",l="#232323",u="#767676",c="none",d="solid",h="top",p="right",f="bottom",g="left",_="center",m="inside",v="outside";(0,n(50).registerTheme)({name:"generic.light",isDefault:!0,font:{color:u,family:"'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana, sans-serif",weight:400,size:12,cursor:"default"},redrawOnResize:!0,backgroundColor:i,primaryTitleColor:l,secondaryTitleColor:u,gridColor:a,axisColor:u,title:{backgroundColor:i,font:{size:28,family:"'Segoe UI Light', 'Helvetica Neue Light', 'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana, sans-serif",weight:200},subtitle:{font:{size:16},offset:0,wordWrap:"normal",textOverflow:"ellipsis"},wordWrap:"normal",textOverflow:"ellipsis"},loadingIndicator:{text:"Loading..."},export:{backgroundColor:i,margin:10,font:{size:14,color:l,weight:400},button:{margin:{top:8,left:10,right:10,bottom:8},default:{color:"#333",borderColor:"#ddd",backgroundColor:i},hover:{color:"#333",borderColor:"#bebebe",backgroundColor:"#e6e6e6"},focus:{color:o,borderColor:"#9d9d9d",backgroundColor:"#e6e6e6"},active:{color:"#333",borderColor:"#9d9d9d",backgroundColor:"#d4d4d4"}},shadowColor:a},tooltip:{enabled:!1,border:{width:1,color:a,dashStyle:d,visible:!0},font:{color:l},color:i,arrowLength:10,paddingLeftRight:18,paddingTopBottom:15,shared:!1,location:_,shadow:{opacity:.4,offsetX:0,offsetY:4,blur:2,color:o}},legend:{hoverMode:"includePoints",verticalAlignment:h,horizontalAlignment:p,position:v,visible:!0,margin:10,markerSize:12,border:{visible:!1,width:1,cornerRadius:0,dashStyle:d},paddingLeftRight:20,paddingTopBottom:15,columnCount:0,rowCount:0,columnItemSpacing:20,rowItemSpacing:8,title:{backgroundColor:i,margin:{left:0,bottom:9,right:0,top:0},font:{size:18,weight:200},subtitle:{offset:0,font:{size:14},wordWrap:"none",textOverflow:"ellipsis"},wordWrap:"none",textOverflow:"ellipsis"}},"chart:common":{animation:{enabled:!0,duration:1e3,easing:"easeOutCubic",maxPointCountSupported:300},commonSeriesSettings:{border:{visible:!1,width:2},showInLegend:!0,visible:!0,hoverMode:"nearestPoint",selectionMode:"includePoints",hoverStyle:{hatching:{direction:p,width:2,step:6,opacity:.75},border:{visible:!1,width:3}},selectionStyle:{hatching:{direction:p,width:2,step:6,opacity:.5},border:{visible:!1,width:3}},valueErrorBar:{displayMode:"auto",value:1,color:o,lineWidth:2,edgeLength:8},label:{visible:!1,alignment:_,rotationAngle:0,horizontalOffset:0,verticalOffset:0,radialOffset:0,showForZeroValues:!0,customizeText:void 0,maxLabelCount:void 0,position:v,font:{color:i},border:{visible:!1,width:1,color:a,dashStyle:d},connector:{visible:!1,width:1}}},seriesSelectionMode:"single",pointSelectionMode:"single",equalRowHeight:!0,dataPrepareSettings:{checkTypeForAllData:!1,convertToAxisDataType:!0,sortingMethod:!0},title:{margin:10},adaptiveLayout:{width:80,height:80,keepLabels:!0},_rtl:{legend:{itemTextPosition:g}},resolveLabelOverlapping:c},"chart:common:axis":{visible:!0,valueMarginsEnabled:!0,placeholderSize:null,logarithmBase:10,discreteAxisDivisionMode:"betweenLabels",width:1,label:{visible:!0},grid:{visible:!1,width:1},minorGrid:{visible:!1,width:1,opacity:.3},tick:{visible:!0,width:1,length:7,shift:3},minorTick:{visible:!1,width:1,opacity:.3,length:7,shift:3},stripStyle:{paddingLeftRight:10,paddingTopBottom:5},constantLineStyle:{width:1,color:o,dashStyle:d,label:{visible:!0,position:m}},marker:{label:{}}},chart:{commonSeriesSettings:{type:"line",stack:"default",aggregation:{enabled:void 0},point:{visible:!0,symbol:"circle",size:12,border:{visible:!1,width:1},hoverMode:"onlyPoint",selectionMode:"onlyPoint",hoverStyle:{border:{visible:!0,width:4}},selectionStyle:{border:{visible:!0,width:4}}},scatter:{},line:{width:2,dashStyle:d,hoverStyle:{width:3,hatching:{direction:c}},selectionStyle:{width:3}},stackedline:{width:2,dashStyle:d,hoverStyle:{width:3,hatching:{direction:c}},selectionStyle:{width:3}},stackedspline:{width:2,dashStyle:d,hoverStyle:{width:3,hatching:{direction:c}},selectionStyle:{width:3}},fullstackedline:{width:2,dashStyle:d,hoverStyle:{width:3,hatching:{direction:c}},selectionStyle:{width:3}},fullstackedspline:{width:2,dashStyle:d,hoverStyle:{width:3,hatching:{direction:c}},selectionStyle:{width:3}},stepline:{width:2,dashStyle:d,hoverStyle:{width:3,hatching:{direction:c}},selectionStyle:{width:3}},area:{point:{visible:!1},opacity:.5},stackedarea:{point:{visible:!1},opacity:.5},fullstackedarea:{point:{visible:!1},opacity:.5},fullstackedsplinearea:{point:{visible:!1},opacity:.5},steparea:{border:{visible:!0,width:2},point:{visible:!1},hoverStyle:{border:{visible:!0,width:3}},selectionStyle:{border:{visible:!0,width:3}},opacity:.5},spline:{width:2,hoverStyle:{width:3,hatching:{direction:c}},selectionStyle:{width:3}},splinearea:{point:{visible:!1},opacity:.5},stackedsplinearea:{point:{visible:!1},opacity:.5},bar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},stackedbar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}},label:{position:m}},fullstackedbar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}},label:{position:m}},rangebar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},rangearea:{point:{visible:!1},opacity:.5},rangesplinearea:{point:{visible:!1},opacity:.5},bubble:{opacity:.5,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},candlestick:{width:1,reduction:{color:s},hoverStyle:{width:3,hatching:{direction:c}},selectionStyle:{width:3},point:{border:{visible:!0}}},stock:{width:1,reduction:{color:s},hoverStyle:{width:3,hatching:{direction:c}},selectionStyle:{width:3},point:{border:{visible:!0}}}},crosshair:{enabled:!1,color:"#f05b41",width:1,dashStyle:d,label:{visible:!1,font:{color:i,size:12}},verticalLine:{visible:!0},horizontalLine:{visible:!0}},commonAxisSettings:{multipleAxesSpacing:5,forceUserTickInterval:!1,breakStyle:{width:5,color:"#ababab",line:"waved"},label:{displayMode:"standard",overlappingBehavior:"hide",indentFromAxis:10,wordWrap:"normal",textOverflow:"none"},title:{font:{size:16},margin:6,alignment:_},constantLineStyle:{paddingLeftRight:10,paddingTopBottom:10}},horizontalAxis:{position:f,axisDivisionFactor:70,label:{rotationAngle:90,staggeringSpacing:5,alignment:_},stripStyle:{label:{horizontalAlignment:_,verticalAlignment:h}},constantLineStyle:{label:{horizontalAlignment:p,verticalAlignment:h}},constantLines:[]},verticalAxis:{position:g,axisDivisionFactor:40,label:{alignment:p},stripStyle:{label:{horizontalAlignment:g,verticalAlignment:_}},constantLineStyle:{label:{horizontalAlignment:g,verticalAlignment:h}},constantLines:[]},argumentAxis:{endOnTick:!1,workWeek:[1,2,3,4,5]},valueAxis:{grid:{visible:!0},autoBreaksEnabled:!1,maxAutoBreakCount:4},commonPaneSettings:{backgroundColor:c,border:{color:a,width:1,visible:!1,top:!0,bottom:!0,left:!0,right:!0,dashStyle:d}},scrollBar:{visible:!1,offset:5,color:"gray",width:10},adjustOnZoom:!0,autoHidePointMarkers:!0,rotated:!1,zoomingMode:c,scrollingMode:c,synchronizeMultiAxes:!0,stickyHovering:!0,equalBarWidth:!0,barGroupPadding:.3,minBubbleSize:12,maxBubbleSize:.2,zoomAndPan:{dragBoxStyle:{color:"#2a2a2a",opacity:.2},panKey:"shift",allowMouseWheel:!0,allowTouchGestures:!0},commonAnnotationSettings:{font:{color:"#333333"},tooltipEnabled:!0,border:{width:1,color:"#dddddd",dashStyle:d,visible:!0},color:i,opacity:.9,arrowLength:14,arrowWidth:14,paddingLeftRight:10,paddingTopBottom:10,shadow:{opacity:.15,offsetX:0,offsetY:1,blur:4,color:o},image:{width:30,height:30},wordWrap:"normal",textOverflow:"ellipsis"}},pie:{innerRadius:.5,minDiameter:.5,type:"pie",dataPrepareSettings:{_skipArgumentSorting:!0},commonSeriesSettings:{pie:{border:{visible:!1,width:2,color:i},hoverStyle:{hatching:{direction:p,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:p,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},doughnut:{border:{visible:!1,width:2,color:i},hoverStyle:{hatching:{direction:p,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:p,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},donut:{border:{visible:!1,width:2,color:i},hoverStyle:{hatching:{direction:p,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:p,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},label:{textOverflow:"ellipsis",wordWrap:"normal"}},legend:{hoverMode:"allArgumentPoints",backgroundColor:c},adaptiveLayout:{keepLabels:!1}},gauge:{scale:{tick:{visible:!0,length:5,width:2,opacity:1},minorTick:{visible:!1,length:3,width:1,opacity:1},label:{visible:!0,alignment:_,hideFirstOrLast:"last",overlappingBehavior:"hide"},position:h,endOnTick:!1},rangeContainer:{offset:0,width:5,backgroundColor:"#808080"},valueIndicators:{_default:{color:"#c2c2c2"},rangebar:{space:2,size:10,color:"#cbc5cf",backgroundColor:c,text:{indent:0,font:{size:14,color:null}}},twocolorneedle:{secondColor:"#e18e92"},trianglemarker:{space:2,length:14,width:13,color:"#8798a5"},textcloud:{arrowLength:5,horizontalOffset:6,verticalOffset:3,color:"#679ec5",text:{font:{color:i,size:18}}}},indicator:{hasPositiveMeaning:!0,layout:{horizontalAlignment:_,verticalAlignment:f},text:{font:{size:18}}},_circular:{scale:{scaleDivisionFactor:17,orientation:v,label:{indentFromTick:10}},rangeContainer:{orientation:v},valueIndicatorType:"rectangleneedle",subvalueIndicatorType:"trianglemarker",valueIndicators:{_type:"rectangleneedle",_default:{offset:20,indentFromCenter:0,width:2,spindleSize:14,spindleGapSize:10,beginAdaptingAtRadius:50},triangleneedle:{width:4},twocolorneedle:{space:2,secondFraction:.4},rangebar:{offset:30},trianglemarker:{offset:6},textcloud:{offset:-6}}},_linear:{scale:{scaleDivisionFactor:25,horizontalOrientation:p,verticalOrientation:f,label:{indentFromTick:-10}},rangeContainer:{horizontalOrientation:p,verticalOrientation:f},valueIndicatorType:"rangebar",subvalueIndicatorType:"trianglemarker",valueIndicators:{_type:"rectangle",_default:{offset:2.5,length:15,width:15},rectangle:{width:10},rangebar:{offset:10,horizontalOrientation:p,verticalOrientation:f},trianglemarker:{offset:10,horizontalOrientation:g,verticalOrientation:h},textcloud:{offset:-1,horizontalOrientation:g,verticalOrientation:h}}}},barGauge:{backgroundColor:"#e0e0e0",relativeInnerRadius:.3,barSpacing:4,resolveLabelOverlapping:"hide",label:{indent:20,connectorWidth:2,font:{size:16}},legend:{visible:!1},indicator:{hasPositiveMeaning:!0,layout:{horizontalAlignment:_,verticalAlignment:f},text:{font:{size:18}}}},rangeSelector:{scale:{valueMarginsEnabled:!0,width:1,color:o,opacity:.1,showCustomBoundaryTicks:!0,label:{overlappingBehavior:"hide",alignment:_,visible:!0,topIndent:7,font:{size:11}},tick:{width:1,color:o,opacity:.17,visible:!0,length:12},minorTick:{width:1,color:o,opacity:.05,visible:!0,length:12},marker:{width:1,color:"#000000",opacity:.1,visible:!0,separatorHeight:33,topIndent:10,textLeftIndent:7,textTopIndent:11,label:{}},logarithmBase:10,workWeek:[1,2,3,4,5],breakStyle:{width:5,color:"#ababab",line:"waved"},endOnTick:!1},selectedRangeColor:"#606060",sliderMarker:{visible:!0,paddingTopBottom:2,paddingLeftRight:4,color:"#606060",invalidRangeColor:s,font:{color:i,size:11}},sliderHandle:{width:1,color:o,opacity:.2},shutter:{opacity:.75},background:{color:"#c0bae1",visible:!0,image:{location:"full"}},behavior:{snapToTicks:!0,animationEnabled:!0,moveSelectedRangeByClick:!0,manualRangeSelectionEnabled:!0,allowSlidersSwap:!0,callValueChanged:"onMovingComplete"},redrawOnResize:!0,chart:{equalBarWidth:!0,barGroupPadding:.3,minBubbleSize:12,maxBubbleSize:.2,topIndent:.1,bottomIndent:0,valueAxis:{inverted:!1,logarithmBase:10},commonSeriesSettings:{type:"area",aggregation:{enabled:void 0},point:{visible:!1},scatter:{point:{visible:!0}}}}},map:{title:{margin:10},background:{borderWidth:1,borderColor:"#cacaca"},layer:{label:{enabled:!1,stroke:i,"stroke-width":1,"stroke-opacity":.7,font:{color:"#2b2b2b",size:12}}},"layer:area":{borderWidth:1,borderColor:i,color:"#d2d2d2",hoveredBorderColor:r,selectedBorderWidth:2,selectedBorderColor:r,label:{"stroke-width":2,font:{size:16}}},"layer:line":{borderWidth:2,color:"#ba8365",hoveredColor:"#a94813",selectedBorderWidth:3,selectedColor:"#e55100",label:{"stroke-width":2,font:{size:16}}},"layer:marker":{label:{enabled:!0,"stroke-width":1,font:{size:12}}},"layer:marker:dot":{borderWidth:2,borderColor:i,size:8,selectedStep:2,backStep:18,backColor:i,backOpacity:.32,shadow:!0},"layer:marker:bubble":{minSize:20,maxSize:50,hoveredBorderWidth:1,hoveredBorderColor:r,selectedBorderWidth:2,selectedBorderColor:r},"layer:marker:pie":{size:50,hoveredBorderWidth:1,hoveredBorderColor:r,selectedBorderWidth:2,selectedBorderColor:r},"layer:marker:image":{size:20},legend:{verticalAlignment:f,horizontalAlignment:p,position:m,backgroundOpacity:.65,border:{visible:!0},paddingLeftRight:16,paddingTopBottom:12},controlBar:{borderColor:"#5d5d5d",borderWidth:3,color:i,margin:20,opacity:.3},_rtl:{legend:{itemTextPosition:g}}},treeMap:{tile:{border:{width:1,opacity:.2,color:"#000000"},color:"#5f8b95",hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:"right"},border:{}},selectionStyle:{hatching:{opacity:.5,step:6,width:2,direction:"right"},border:{opacity:1}},label:{visible:!0,paddingLeftRight:5,paddingTopBottom:4,stroke:"#000000","stroke-width":1,"stroke-opacity":.3,font:{color:"#ffffff",weight:300},shadow:{opacity:.8,offsetX:0,offsetY:1,blur:1,color:"#000000"},wordWrap:"normal",textOverflow:"ellipsis"}},group:{padding:4,border:{width:1},color:"#eeeeee",hoverStyle:{hatching:{opacity:0,step:6,width:2,direction:"right"},border:{}},selectionStyle:{hatching:{opacity:0,step:6,width:2,direction:"right"},border:{}},label:{visible:!0,paddingLeftRight:5,paddingTopBottom:4,font:{color:u,weight:600},textOverflow:"ellipsis"}},title:{subtitle:{}},tooltip:{},loadingIndicator:{}},sparkline:{lineColor:"#666666",lineWidth:2,areaOpacity:.2,minColor:"#e8c267",maxColor:"#e55253",barPositiveColor:"#a9a9a9",barNegativeColor:"#d7d7d7",winColor:"#a9a9a9",lossColor:"#d7d7d7",firstLastColor:"#666666",pointSymbol:"circle",pointColor:i,pointSize:4,type:"line",argumentField:"arg",valueField:"val",winlossThreshold:0,showFirstLast:!0,showMinMax:!1,tooltip:{enabled:!0}},bullet:{color:"#e8c267",targetColor:"#666666",targetWidth:4,showTarget:!0,showZeroLevel:!0,tooltip:{enabled:!0}},polar:{commonSeriesSettings:{type:"scatter",closed:!0,point:{visible:!0,symbol:"circle",size:12,border:{visible:!1,width:1},hoverMode:"onlyPoint",selectionMode:"onlyPoint",hoverStyle:{border:{visible:!0,width:4},size:12},selectionStyle:{border:{visible:!0,width:4},size:12}},scatter:{},line:{width:2,dashStyle:d,hoverStyle:{width:3,hatching:{direction:c}},selectionStyle:{width:3}},area:{point:{visible:!1},opacity:.5},stackedline:{width:2},bar:{opacity:.8},stackedbar:{opacity:.8}},adaptiveLayout:{width:170,height:170,keepLabels:!0},equalBarWidth:!0,barGroupPadding:.3,commonAxisSettings:{visible:!0,forceUserTickInterval:!1,label:{overlappingBehavior:"hide",indentFromAxis:5},grid:{visible:!0},minorGrid:{visible:!0},tick:{visible:!0},title:{font:{size:16},margin:10}},argumentAxis:{startAngle:0,firstPointOnStartAngle:!1,period:void 0},valueAxis:{endOnTick:!1,tick:{visible:!1}},horizontalAxis:{position:h,axisDivisionFactor:50,label:{alignment:_}},verticalAxis:{position:h,axisDivisionFactor:30,label:{alignment:p}}},funnel:{sortData:!0,valueField:"val",colorField:"color",argumentField:"arg",hoverEnabled:!0,selectionMode:"single",item:{border:{visible:!1,width:2,color:i},hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:p},border:{}},selectionStyle:{hatching:{opacity:.5,step:6,width:2,direction:p},border:{}}},title:{margin:10},adaptiveLayout:{width:80,height:80,keepLabels:!0},legend:{visible:!1},_rtl:{legend:{itemTextPosition:g}},tooltip:{customizeTooltip:function(e){return{text:e.item.argument+" "+e.valueText}}},inverted:!1,algorithm:"dynamicSlope",neckWidth:0,neckHeight:0,resolveLabelOverlapping:"shift",label:{textOverflow:"ellipsis",wordWrap:"normal",visible:!0,horizontalAlignment:p,horizontalOffset:0,verticalOffset:0,showForZeroValues:!1,customizeText:function(e){return e.item.argument+" "+e.valueText},position:"columns",font:{color:i},border:{visible:!1,width:1,color:a,dashStyle:d},connector:{visible:!0,width:1,opacity:.5}}},sankey:{sourceField:"source",targetField:"target",weightField:"weight",hoverEnabled:!0,alignment:_,adaptiveLayout:{width:80,height:80,keepLabels:!0},label:{visible:!0,horizontalOffset:8,verticalOffset:0,overlappingBehavior:"ellipsis",useNodeColors:!1,font:{color:o,weight:500},border:{visible:!1,width:2,color:i},customizeText:function(e){return e.title},shadow:{opacity:.2,offsetX:0,offsetY:1,blur:1,color:i}},title:{margin:10,font:{size:28,weight:200},subtitle:{font:{size:16}}},tooltip:{enabled:!0},node:{padding:30,width:8,opacity:1,border:{color:i,width:1,visible:!1},hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:p},border:{}}},link:{color:"#888888",colorMode:"none",opacity:.3,border:{color:i,width:1,visible:!1},hoverStyle:{opacity:.5,hatching:{opacity:.75,step:6,width:2,direction:p},border:{}}}}})},function(e,t,n){var i="#ffffff",o="#2b2b2b",a="#b5b5b5",r="#303030",s="#c7c7c7",l="#8e8e8e",u="#b8b8b8",c="#494949";(0,n(50).registerTheme)({name:"generic.dark",font:{color:"#808080"},backgroundColor:"#2a2a2a",primaryTitleColor:"#dedede",secondaryTitleColor:"#a3a3a3",gridColor:"#555555",axisColor:"#a3a3a3",export:{backgroundColor:"#2a2a2a",font:{color:"#dbdbdb"},button:{default:{color:"#dedede",borderColor:"#4d4d4d",backgroundColor:"#2e2e2e"},hover:{color:"#dedede",borderColor:"#6c6c6c",backgroundColor:"#444"},focus:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#444444"},active:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#555555"}},shadowColor:"#292929"},tooltip:{color:o,border:{color:c},font:{color:"#929292"}},"chart:common":{commonSeriesSettings:{label:{border:{color:c}},valueErrorBar:{color:i}}},"chart:common:axis":{constantLineStyle:{color:i}},chart:{commonPaneSettings:{border:{color:c}},commonAxisSettings:{breakStyle:{color:"#818181"}},zoomAndPan:{dragBoxStyle:{color:i}},commonAnnotationSettings:{font:{color:"#929292"},border:{color:c},color:o,shadow:{opacity:.008,offsetY:4,blur:8}}},gauge:{rangeContainer:{backgroundColor:a},valueIndicators:{_default:{color:a},rangebar:{color:"#84788b"},twocolorneedle:{secondColor:"#ba544d"},trianglemarker:{color:"#b7918f"},textcloud:{color:"#ba544d"}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:i,opacity:.32},minorTick:{color:i,opacity:.1},breakStyle:{color:"#818181"}},selectedRangeColor:a,sliderMarker:{color:a,font:{color:r}},sliderHandle:{color:i,opacity:.2},shutter:{color:o,opacity:.9}},map:{background:{borderColor:"#3f3f3f"},layer:{label:{stroke:"#000000",font:{color:i}}},"layer:area":{borderColor:r,color:"#686868",hoveredBorderColor:i,selectedBorderColor:i},"layer:line":{color:"#c77244",hoveredColor:"#ff5d04",selectedColor:"#ff784f"},"layer:marker:bubble":{hoveredBorderColor:i,selectedBorderColor:i},"layer:marker:pie":{hoveredBorderColor:i,selectedBorderColor:i},legend:{border:{color:"#3f3f3f"},font:{color:i}},controlBar:{borderColor:s,color:r}},treeMap:{group:{color:"#4c4c4c",label:{font:{color:"#a3a3a3"}}}},sparkline:{lineColor:s,firstLastColor:s,barPositiveColor:u,barNegativeColor:l,winColor:u,lossColor:l,pointColor:r},bullet:{targetColor:l},funnel:{item:{border:{color:"#2a2a2a"}}},sankey:{label:{font:{color:i},shadow:{opacity:0}},node:{border:{color:"#2a2a2a"}},link:{color:"#888888",border:{color:"#2a2a2a"},hoverStyle:{color:"#bbbbbb"}}}},"generic.light")},function(e,t,n){var i="#ffffff",o="#000000",a="#cf00da",r="#f8ca00";(0,n(50).registerTheme)({name:"generic.contrast",defaultPalette:"Bright",font:{color:i},backgroundColor:o,primaryTitleColor:i,secondaryTitleColor:i,gridColor:i,axisColor:i,export:{backgroundColor:o,font:{color:i},button:{default:{color:i,borderColor:i,backgroundColor:o},hover:{color:i,borderColor:i,backgroundColor:"#cf00d7"},focus:{color:i,borderColor:"#cf00d7",backgroundColor:o},active:{color:o,borderColor:i,backgroundColor:i}},borderColor:i,menuButtonColor:o,activeBackgroundColor:i,activeColor:o,selectedBorderColor:a,selectedColor:a,shadowColor:"none"},tooltip:{border:{color:i},font:{color:i},color:o},"chart:common":{commonSeriesSettings:{valueErrorBar:{color:i},hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}},label:{font:{color:i},border:{color:i}}}},"chart:common:axis":{constantLineStyle:{color:i}},chart:{commonSeriesSettings:{},crosshair:{color:"#cf00d7"},commonPaneSettings:{backgroundColor:o,border:{color:i}},scrollBar:{color:i},commonAxisSettings:{breakStyle:{color:"#cf00d7"}},zoomAndPan:{dragBoxStyle:{color:i,opacity:.7}},commonAnnotationSettings:{font:{color:i},border:{color:i},color:o}},pie:{commonSeriesSettings:{pie:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}},doughnut:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}},donut:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}}}},gauge:{rangeContainer:{backgroundColor:i},valueIndicators:{_default:{color:i},rangebar:{color:i,backgroundColor:o},twocolorneedle:{secondColor:i},trianglemarker:{color:i},textcloud:{color:i,text:{font:{color:o}}}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:i,opacity:.4},minorTick:{color:i,opacity:.12},breakStyle:{color:"#cf00d7"}},selectedRangeColor:a,sliderMarker:{color:a},sliderHandle:{color:a,opacity:1},shutter:{opacity:.75},background:{color:o}},map:{background:{borderColor:i},layer:{label:{stroke:o,font:{color:i}}},"layer:area":{borderColor:o,color:"#686868",hoveredBorderColor:i,selectedBorderColor:i,label:{font:{opacity:1}}},"layer:line":{color:"#267cff",hoveredColor:"#f613ff",selectedColor:i},"layer:marker:dot":{borderColor:o,color:r,backColor:o,backOpacity:.32},"layer:marker:bubble":{color:r,hoveredBorderColor:i,selectedBorderColor:i},"layer:marker:pie":{hoveredBorderColor:i,selectedBorderColor:i},controlBar:{borderColor:i,color:o,opacity:.3}},treeMap:{tile:{color:"#70c92f"},group:{color:"#797979",label:{font:{color:i}}}},sparkline:{pointColor:o},bullet:{},polar:{commonSeriesSettings:{}},funnel:{label:{connector:{opacity:1}}},sankey:{label:{font:{color:i},shadow:{opacity:0}},node:{border:{visible:!0,width:1,color:i}},link:{opacity:.5,border:{visible:!0,width:1,color:i},hoverStyle:{opacity:.9}}}},"generic.light")},function(e,t,n){var i="#f05b41",o="#fff",a="#333",r="#8899a8",s="#707070",l="#dee1e3";(0,n(50).registerTheme)({name:"generic.carmine",defaultPalette:"Carmine",backgroundColor:o,primaryTitleColor:a,secondaryTitleColor:r,gridColor:l,axisColor:s,export:{backgroundColor:o,font:{color:a},button:{default:{color:a,borderColor:"#b1b7bd",backgroundColor:o},hover:{color:a,borderColor:"#b1b7bd",backgroundColor:"#faf2f0"},focus:{color:a,borderColor:"#6d7781",backgroundColor:"#faf2f0"},active:{color:a,borderColor:"#6d7781",backgroundColor:"#f5e7e4"}}},legend:{font:{color:s}},tooltip:{color:o,border:{color:l},font:{color:a}},"chart:common":{commonSeriesSettings:{label:{border:{color:l}}}},chart:{commonPaneSettings:{border:{color:l}},commonAxisSettings:{breakStyle:{color:"#c1c5c7"}},commonAnnotationSettings:{font:{color:a},border:{color:l},color:o}},rangeSelector:{scale:{breakStyle:{color:"#c1c5c7"},tick:{opacity:.12}},selectedRangeColor:i,sliderMarker:{color:i},sliderHandle:{color:i,opacity:.5}},sparkline:{pointColor:o,minColor:"#f0ad4e",maxColor:"#f74d61"},treeMap:{group:{color:l,label:{font:{color:r}}}},bullet:{color:i},gauge:{valueIndicators:{rangebar:{color:i},textcloud:{color:i}}}},"generic.light")},function(e,t,n){var i="#3debd3",o="#465672",a="#fff",r="#c7ccd4",s="#596980";(0,n(50).registerTheme)({name:"generic.darkmoon",defaultPalette:"Dark Moon",backgroundColor:o,primaryTitleColor:a,secondaryTitleColor:"#919bac",gridColor:s,axisColor:r,export:{backgroundColor:o,font:{color:a},button:{default:{color:a,borderColor:"#7a889e",backgroundColor:o},hover:{color:a,borderColor:"#9da8b8",backgroundColor:"#596e92"},focus:{color:a,borderColor:"#c4cad4",backgroundColor:"#596e92"},active:{color:a,borderColor:"#c4cad4",backgroundColor:"#6b80a4"}}},legend:{font:{color:r}},tooltip:{color:"#62789e",border:{color:s},font:{color:a}},"chart:common":{commonSeriesSettings:{label:{border:{color:s}}}},chart:{commonPaneSettings:{border:{color:s}},commonAxisSettings:{breakStyle:{color:"#73869e"}},commonAnnotationSettings:{font:{color:a},border:{color:s},color:"#62789e"}},gauge:{valueIndicators:{rangebar:{color:i},textcloud:{color:i,text:{font:{color:o}}}}},barGauge:{backgroundColor:"#526280"},funnel:{item:{border:{color:o}}},sparkline:{pointColor:o,minColor:"#f0ad4e",maxColor:"#f9517e"},treeMap:{group:{color:s,label:{font:{color:a}}}},map:{background:{borderColor:s},"layer:area":{color:"#97a3b6",borderColor:o}},rangeSelector:{shutter:{color:o},scale:{breakStyle:{color:"#73869e"},tick:{opacity:.2}},selectedRangeColor:i,sliderMarker:{color:i,font:{color:"#000"}},sliderHandle:{color:i,opacity:.5}},bullet:{color:i},sankey:{link:{border:{color:o}},node:{border:{color:o}}}},"generic.dark")},function(e,t,n){var i="#7ab8eb",o="#fff",a="#333",r="#99a1a8",s="#707070",l="#e8eaeb";(0,n(50).registerTheme)({name:"generic.softblue",defaultPalette:"Soft Blue",backgroundColor:o,primaryTitleColor:a,secondaryTitleColor:r,gridColor:l,axisColor:s,export:{backgroundColor:o,font:{color:a},button:{default:{color:a,borderColor:"#c9d0d4",backgroundColor:o},hover:{color:a,borderColor:"#a7b2b9",backgroundColor:"#e6e6e6"},focus:{color:a,borderColor:"#82929b",backgroundColor:"#e6e6e6"},active:{color:a,borderColor:"#82929b",backgroundColor:"#d4d4d4"}}},legend:{font:{color:s}},tooltip:{color:o,border:{color:l},font:{color:a}},"chart:common":{commonSeriesSettings:{label:{border:{color:l}}}},chart:{commonPaneSettings:{border:{color:l}},commonAxisSettings:{breakStyle:{color:"#cfd2d3"}},commonAnnotationSettings:{color:o,border:{color:l},font:{color:a}}},rangeSelector:{scale:{breakStyle:{color:"#cfd2d3"},tick:{opacity:.12}},selectedRangeColor:i,sliderMarker:{color:i},sliderHandle:{color:i,opacity:.5}},sparkline:{pointColor:o,minColor:"#f0ad4e",maxColor:"#d9534f"},treeMap:{group:{color:l,label:{font:{color:r}}}},bullet:{color:i},gauge:{valueIndicators:{rangebar:{color:i},textcloud:{color:i}}}},"generic.light")},function(e,t,n){var i="#9c63ff",o="#17171f",a="#f5f6f7",r="#fff",s="#b2b2b6",l="#343840";(0,n(50).registerTheme)({name:"generic.darkviolet",defaultPalette:"Dark Violet",backgroundColor:o,primaryTitleColor:a,secondaryTitleColor:r,gridColor:l,axisColor:s,export:{backgroundColor:o,font:{color:a},button:{default:{color:a,borderColor:"#414152",backgroundColor:o},hover:{color:a,borderColor:"#5c5c74",backgroundColor:"#2d2d3c"},focus:{color:a,borderColor:"#7c7c97",backgroundColor:"#2d2d3c"},active:{color:a,borderColor:"#7c7c97",backgroundColor:"#3c3c51"}}},legend:{font:{color:s}},tooltip:{color:o,border:{color:"#414152"},font:{color:a}},"chart:common":{commonSeriesSettings:{label:{border:{color:l}}}},chart:{commonPaneSettings:{border:{color:l}},commonAxisSettings:{breakStyle:{color:"#575e6b"}},commonAnnotationSettings:{font:{color:a},border:{color:"#414152"},color:o}},funnel:{item:{border:{color:o}}},sparkline:{pointColor:o,minColor:"#f0ad4e",maxColor:"#d9534f"},treeMap:{group:{color:l,label:{font:{color:r}}}},rangeSelector:{shutter:{color:o},scale:{breakStyle:{color:"#575e6b"},tick:{opacity:.2}},selectedRangeColor:i,sliderMarker:{color:i,font:{color:"#fff"}},sliderHandle:{color:i,opacity:.5}},bullet:{color:i},gauge:{valueIndicators:{rangebar:{color:i},textcloud:{color:i}}},sankey:{link:{border:{color:o}},node:{border:{color:o}}}},"generic.dark")},function(e,t,n){var i="#3cbab2",o="#f5f5f5",a="#28484f",r="#7eb2be",s="#657c80",l="#dedede";(0,n(50).registerTheme)({name:"generic.greenmist",defaultPalette:"Green Mist",backgroundColor:o,primaryTitleColor:a,secondaryTitleColor:r,gridColor:l,axisColor:s,export:{backgroundColor:o,font:{color:a},button:{default:{color:a,borderColor:"#a2b4b8",backgroundColor:o},hover:{color:a,borderColor:"#7f989e",backgroundColor:"rgba(222, 222, 222, 0.4)"},focus:{color:a,borderColor:"#5f777c",backgroundColor:"rgba(222, 222, 222, 0.4)"},active:{color:a,borderColor:"#5f777c",backgroundColor:"rgba(222, 222, 222, 0.8)"}}},legend:{font:{color:s}},tooltip:{color:"#fff",border:{color:l},font:{color:a}},"chart:common":{commonSeriesSettings:{label:{border:{color:l}}}},chart:{commonPaneSettings:{border:{color:l}},commonAxisSettings:{breakStyle:{color:"#c1c1c1"}},commonAnnotationSettings:{color:"#fff",border:{color:l},font:{color:a}}},funnel:{item:{border:{color:o}}},sparkline:{pointColor:o,minColor:"#ffc852",maxColor:"#f74a5e"},treeMap:{group:{color:l,label:{font:{color:r}}}},rangeSelector:{shutter:{color:o},scale:{breakStyle:{color:"#c1c1c1"},tick:{opacity:.12}},selectedRangeColor:i,sliderMarker:{color:i},sliderHandle:{color:i,opacity:.5}},bullet:{color:i},gauge:{valueIndicators:{rangebar:{color:i},textcloud:{color:i}}}},"generic.light")},function(e,t,n){function i(e,t,n){a({name:"material."+e+"."+t,rangeSelector:{selectedRangeColor:n,sliderMarker:{color:n},sliderHandle:{color:n}},map:{"layer:marker:dot":{color:n},"layer:marker:bubble":{color:n},legend:{markerColor:n}},bullet:{color:n},gauge:{valueIndicators:{rangebar:{color:n},textcloud:{color:n}}}},"material."+t)}var o=n(50),a=o.registerTheme,r=o.registerThemeAlias,s="'Roboto', 'RobotoFallback', 'Helvetica', 'Arial', sans-serif",l="rgba(0,0,0,0.54)",u="rgba(255,255,255,0.87)",c="rgba(255,255,255,0.54)",d="#363640",h="#ffffff",p="#b5b5b5",f="#c7c7c7",g="#8e8e8e",_="#b8b8b8",m="#494949",v="#818181";a({name:"material",defaultPalette:"Material",font:{family:s},title:{margin:{top:20,bottom:20,left:0,right:0},font:{size:20,family:s,weight:500},horizontalAlignment:"left",subtitle:{font:{size:14},horizontalAlignment:"left"}},tooltip:{shadow:{opacity:0},border:{visible:!1},paddingLeftRight:8,paddingTopBottom:6,arrowLength:0,location:"edge",color:"#616161",font:{color:h}},chart:{commonAxisSettings:{minorTick:{opacity:.5},label:{font:{size:11}}},commonAnnotationSettings:{font:{color:h},border:{color:"#616161"},color:"#616161",arrowLength:14,arrowWidth:0,shadow:{opacity:.08,offsetY:4,blur:8}}},pie:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},polar:{commonAxisSettings:{minorTick:{opacity:.5}},title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},funnel:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},gauge:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},barGauge:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},rangeSelector:{sliderHandle:{opacity:.5}},treeMap:{group:{label:{font:{weight:500}}}}},"generic.light"),a({name:"material.light",gridColor:"#e0e0e0",axisColor:l,primaryTitleColor:"rgba(0,0,0,0.87)",legend:{font:{color:l}},chart:{scrollBar:{color:"#bfbfbf",opacity:.7}},gauge:{rangeContainer:{backgroundColor:"rgba(0,0,0,0.2)"}},barGauge:{backgroundColor:"#efefef"}},"material"),a({name:"material.dark",gridColor:"#515159",backgroundColor:d,axisColor:c,font:{color:c},primaryTitleColor:u,secondaryTitleColor:u,tooltip:{color:"#000"},export:{backgroundColor:d,font:{color:"#dbdbdb"},button:{default:{color:"#dedede",borderColor:"#4d4d4d",backgroundColor:d},hover:{color:"#dedede",borderColor:"#6c6c6c",backgroundColor:"#3f3f4b"},focus:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#494956"},active:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#494956"}},shadowColor:"#292929"},"chart:common":{commonSeriesSettings:{label:{border:{color:m}},valueErrorBar:{color:h}}},"chart:common:axis":{constantLineStyle:{color:h}},chart:{commonPaneSettings:{border:{color:m}},commonAxisSettings:{breakStyle:{color:v}},zoomAndPan:{dragBoxStyle:{color:h}},commonAnnotationSettings:{border:{color:"#000"},color:"#000"}},gauge:{rangeContainer:{backgroundColor:p},valueIndicators:{_default:{color:p},rangebar:{color:"#84788b"},twocolorneedle:{secondColor:"#ba544d"},trianglemarker:{color:"#b7918f"},textcloud:{color:"#ba544d"}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:h,opacity:.32},minorTick:{color:h,opacity:.1},breakStyle:{color:v}},selectedRangeColor:p,sliderMarker:{color:p,font:{color:d}},sliderHandle:{color:h,opacity:.2},shutter:{color:h,opacity:.1}},map:{background:{borderColor:"#3f3f3f"},layer:{label:{stroke:"#000000",font:{color:h}}},"layer:area":{borderColor:d,color:"#686868",hoveredBorderColor:h,selectedBorderColor:h},"layer:line":{color:"#c77244",hoveredColor:"#ff5d04",selectedColor:"#ff784f"},"layer:marker:bubble":{hoveredBorderColor:h,selectedBorderColor:h},"layer:marker:pie":{hoveredBorderColor:h,selectedBorderColor:h},legend:{border:{color:"#3f3f3f"},font:{color:h}},controlBar:{borderColor:f,color:d}},treeMap:{group:{color:"#4c4c4c",label:{font:{color:"#a3a3a3"}}}},sparkline:{lineColor:f,firstLastColor:f,barPositiveColor:_,barNegativeColor:g,winColor:_,lossColor:g,pointColor:d},bullet:{targetColor:g},funnel:{item:{border:{color:d}}},sankey:{label:{font:{color:h}}}},"material");var y={blue:"#03a9f4",lime:"#cddc39",orange:"#ff5722",purple:"#9c27b0",teal:"#009688"};for(var b in y)if(y.hasOwnProperty(b)){var x=y[b];i(b,"light",x),i(b,"dark",x),r("material."+b+".light.compact","material."+b+".light"),r("material."+b+".dark.compact","material."+b+".dark")}},function(e,t,n){var i="#767676",o="#d3d3d3",a="#000000";n(50).registerTheme({name:"ios7.default",backgroundColor:"#ffffff",primaryTitleColor:a,secondaryTitleColor:i,gridColor:"#ececec",axisColor:i,legend:{font:{color:a}},tooltip:{font:{color:i}},"chart:common":{commonSeriesSettings:{label:{border:{color:o}}}},chart:{commonPaneSettings:{border:{color:o}}},rangeSelector:{scale:{tick:{color:a,opacity:.1},minorTick:{color:a,opacity:.03}}},treeMap:{group:{label:{font:{color:i}}}}},"generic.light")},function(e,t,n){var i=n(124),o=n(21);e.exports=i(o.ERROR_MESSAGES,{E2001:"Invalid data source",E2002:"Axis type and data type are incompatible",E2003:'The "{0}" data source field contains data of unsupported type',E2004:'The "{0}" data source field is inconsistent',E2005:'The value field "{0}" is absent in the data source or all its values are negative',E2006:"A cycle is detected in provided data",E2007:'The value field "{0}" is absent in the data source',E2008:'The value field "{0}" must be a string',E2009:'The value field "{0}" must be a positive numeric value',E2101:"Unknown series type: {0}",E2102:"Ambiguity occurred between two value axes with the same name",E2103:'The "{0}" option is given an invalid value. Assign a function instead',E2104:"Invalid logarithm base",E2105:'Invalid value of a "{0}"',E2106:"Invalid visible range",E2202:"Invalid {0} scale value",E2203:"The range you are trying to set is invalid",W2002:"The {0} series cannot be drawn because the {1} data field is missing",W2003:"Tick interval is too small",W2101:'The "{0}" pane does not exist; the last pane is used by default',W2102:'A value axis with the "{0}" name was created automatically',W2103:"The chart title was hidden due to the container size",W2104:"The legend was hidden due to the container size",W2105:'The title of the "{0}" axis was hidden due to the container size',W2106:'The labels of the "{0}" axis were hidden due to the container size',W2107:"The export menu was hidden due to the container size",W2108:"The browser does not support exporting images to {0} format.",W2301:"Invalid value range"})},function(e,t,n){function i(e){var t,n=this,i=n._animateStep;for(t in n._progress=n._calcProgress(e),n.params){(i[t]||i.base)(n.element,n.params[t],n._progress,n._easing,n._currentParams,t)}return n.options.step&&n.options.step(n._easing(n._progress,0,1),n._progress),1!==n._progress||n.stop()}function o(e){return e-this._startTime>=this.delay&&(this.tick=i),!0}function a(e){return this._startTime=e,this.tick=this.delay?o:i,!0}function r(e,t,n){var i=this;i._progress=0,i.element=e,i.params=t,i.options=n,i.duration=n.partitionDuration?n.duration*n.partitionDuration:n.duration,i.delay=n.delay&&n.duration*n.delay||0,i._animateStep=n.animateStep||d,i._easing=c[n.easing]||c.easeOutCubic,i._currentParams={},i.tick=a}function s(e){var t=this;t._animationCount=0,t._timerId=null,t._animations={},t.element=e}var l=n(112),u=function(){},c={easeOutCubic:function(e,t,n){return 1===e?n:(1-Math.pow(1-e,3))*(n-t)+ +t},linear:function(e,t,n){return 1===e?n:e*(n-t)+ +t}};t.easingFunctions=c;var d={segments:function(e,t,n,i,o){var a,r,s,l,u=t.from,c=t.to,d=[];for(s=0;s<u.length;s++){if(r=[(a=u[s])[0]],a.length>1)for(l=1;l<a.length;l++)r.push(i(n,a[l],c[s][l]));d.push(r)}o.segments=t.end&&1===n?t.end:d,e.attr({segments:d})},arc:function(e,t,n,i){var o=t.from,a=t.to,r={};for(var s in o)r[s]=i(n,o[s],a[s]);e.attr(r)},transform:function(e,t,n,i,o){var a=t.from,r=t.to,s={};for(var l in a)s[l]=o[l]=i(n,a[l],r[l]);e.attr(s)},base:function(e,t,n,i,o,a){var r={};r[a]=o[a]=i(n,t.from,t.to),e.attr(r)},_:u,complete:function(e,t){e.attr(t)}};r.prototype={_calcProgress:function(e){return Math.min(1,(e-this.delay-this._startTime)/this.duration)},stop:function(e){var t=this,n=t.options,i=t._animateStep;t.stop=t.tick=u,i.complete&&i.complete(t.element,t._currentParams),n.complete&&!e&&n.complete()}},t.AnimationController=s,s.prototype={_loop:function(){var e,t=this,n=t._animations,i=0,o=(new Date).getTime(),a=t._endAnimation;for(e in n)n[e].tick(o)||delete n[e],i++;return 0===i?(t.stop(),void(t._endAnimationTimer=a&&setTimeout(function(){0===t._animationCount&&(a(),t._endAnimation=null)}))):void(t._timerId=l.requestAnimationFrame.call(null,function(){t._loop()},t.element))},addAnimation:function(e){var t=this;t._animations[t._animationCount++]=e,clearTimeout(t._endAnimationTimer),t._timerId||(clearTimeout(t._startDelay),t._startDelay=setTimeout(function(){t._timerId=1,t._loop()},0))},animateElement:function(e,t,n){e&&t&&n&&(e.animation&&e.animation.stop(),this.addAnimation(e.animation=new r(e,t,n)))},onEndAnimation:function(e){this._animationCount?this._endAnimation=e:e()},dispose:function(){this.stop(),this.element=null},stop:function(){var e=this;e._animations={},e._animationCount=0,l.cancelAnimationFrame(e._timerId),clearTimeout(e._startDelay),clearTimeout(e._endAnimationTimer),e._timerId=null},lock:function(){var e,t,n,i=this._animations;for(e in i)t=i[e].options.unstoppable,n=n||t,t||(i[e].stop(!0),delete i[e]);!n&&this.stop()}},t.animationSvgStep=d},function(e,t,n){function i(e,t,n){var i=h(e);return i in t?t[i]:n}function o(e){var t=i(e.side,b,1),n=[i(e.horizontalAlignment,v,m),i(e.verticalAlignment,y,_)];return{side:t,primary:function(e){return e<2?0:2}(n[t]),secondary:n[1-t],weak:e.weak,priority:e.priority||0,header:e.header,position:e.position}}function a(e,t){return(e>0?-1:1)*t}function r(e,t,n){var i=e.side,o=e.element.measure([t[2]-t[0],t[3]-t[1]]),r="indside"===e.position?0:n[i],s=o[i]<t[2+i]-t[i]-r;return s&&("inside"!==e.position&&(t[e.primary+i]+=a(e.primary,o[i])),e.size=o),s}function s(e,t,n){var i=e.side,o=function(e){return 1-e}(i),r=[],s=function(e,t,n,i){return x[e](t,n,i)}(e.secondary,n[o],n[2+o],e.size[o]);return r[i]=g(r[2+i]=t[e.primary+i]+("inside"===e.position?a(e.primary,e.size[i]):0)),r[e.primary+i]=g(t[e.primary+i]-a(e.primary,e.size[i])),"inside"!==e.position&&(t[e.primary+i]=r[e.primary+i]),r[o]=g(s[0]),r[2+o]=g(s[1]),r}function l(e,t,n,i,o,a){var r=s(e,t,n),l=s(e,i,i);o[e.side]>0?(o[e.side]-=e.size[e.side],a[e.primary+e.side]=r[e.primary+e.side],e.element.freeSpace()):e.element.move(r,l)}function u(){this._targets=[]}function c(e){var t,n,i=e.length,a=[];for(t=0;t<i;++t)(n=e[t].layoutOptions())&&((n=o(n)).element=e[t],a.push(n));return a.sort(function(e,t){return t.side-e.side||e.priority-t.priority}),function(e){var t,n=e.filter(function(e){return!0===e.weak})[0];return n&&(t=e.filter(function(e){return n.primary===e.primary&&e.side===n.side&&e!==n})[0]),n&&t?[function(e,t){var n=e.side,i=e.primary,o=e.secondary;return{side:n,primary:i,secondary:o,priority:0,element:{measure:function(o){var a=o.slice(),r=t.element.measure(o.slice());o[i]-=r[i];var s=e.element.measure(o.slice());return a[n]=r[n]=s[n]=Math.max(s[n],r[n]),t.size=r,e.size=s,a},move:function(n,i){if(i[2]-i[0]<e.size[0]+t.size[0]-w)this.freeSpace();else{var o=d(t,i);i[2+t.primary]=o[t.primary];var a=d(e,i);i[2+t.primary]<n[2+t.primary]&&e.size[e.primary]>n[2+e.primary]-n[e.primary]&&(n[2+t.primary]=i[2+t.primary]);var r=d(e,n);r[2+t.primary]>i[2+t.primary]&&(n[2+t.primary]=i[2+t.primary],r=d(e,n)),t.element.move(o),e.element.move(r,a)}},freeSpace:function(){e.element.freeSpace(),t.element.freeSpace()}}}}(t,n)].concat(e.filter(function(e){return!(e===t||e===n)})):e}(a)}function d(e,t){var n=t.slice(),i=s(e,n,n);return i[e.side]=t[e.side],i[2+e.side]=t[2+e.side],i}var h=n(11).normalizeEnum,p=Math.min,f=Math.max,g=Math.round,_=0,m=1,v={left:_,center:m,right:2},y={top:_,center:m,bottom:2},b={horizontal:0,vertical:1},x={},w=2;x[_]=function(e,t,n){return[e,p(t,e+n)]},x[m]=function(e,t,n){return[f(e,(e+t-n)/2),p(t,(e+t+n)/2)]},x[2]=function(e,t,n){return[f(e,t-n),t]},u.prototype={constructor:u,dispose:function(){this._targets=null},add:function(e){this._targets.push(e)},forward:function(e,t){var n,i=e.slice(),o=c(this._targets),a=o.length,s=[];for(n=0;n<a;++n)r(o[n],i,t)?s.push(o[n]):o[n].element.freeSpace();return this._cache=s.reverse(),i},backward:function(e,t){var n,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0],a=e.slice(),r=e.slice(),s=this._cache,u=0,c=s.length;for(i=0;i<c;++i)(n=s[i]).side!==u&&(a=e.slice()),l(n,a,t,r,o,e),u=n.side;return o}},e.exports=u},function(e,t,n){function i(e){return"none"===_(e)}function o(e,t,n){this.fullState=E,this.series=e,this.update(t,n),this._viewCounters={hover:0,selection:0},this._emptySettings={fill:null,stroke:null,dashStyle:null}}var a={},r=n(119).states,s=n(120),l=n(204),u=n(761),c=n(391),d=n(392),h=n(762),p=n(393),f=n(763),g=n(764),_=n(11).normalizeEnum,m=n(0).extend,v=n(3).each,y=m,b=n(1).isDefined,x=n(4).noop,w="symbolPoint",C="polarSymbolPoint",k="barPoint",S="polarBarPoint",I="piePoint",T=r.selectedMark,D=r.hoverMark,E=r.normalMark,A=r.hover,O=r.normal,P=r.selection,B={chart:{scatter:w,line:w,spline:w,stepline:w,stackedline:w,fullstackedline:w,stackedspline:w,fullstackedspline:w,stackedsplinearea:w,fullstackedsplinearea:w,area:w,splinearea:w,steparea:w,stackedarea:w,fullstackedarea:w,rangearea:"rangeSymbolPoint",bar:k,stackedbar:k,fullstackedbar:k,rangebar:"rangeBarPoint",bubble:"bubblePoint",stock:"stockPoint",candlestick:"candlestickPoint"},pie:{pie:I,doughnut:I,donut:I},polar:{scatter:C,line:C,area:C,bar:S,stackedbar:S}};t.Point=o,a.symbolPoint=s,a.barPoint=l,a.bubblePoint=u,a.piePoint=c,a.rangeSymbolPoint=d,a.rangeBarPoint=h,a.candlestickPoint=p,a.stockPoint=f,a.polarSymbolPoint=g.polarSymbolPoint,a.polarBarPoint=g.polarBarPoint,o.prototype={constructor:o,getColor:function(){return this.hasValue()||this._styles.usePointCustomOptions||this.series.customizePoint(this,this._dataItem),this._styles.normal.fill||this.series.getColor()},_getStyle:function(){return this._styles[this._currentStyle||"normal"]},update:function(e,t){this.updateOptions(t),this.updateData(e)},updateData:function(e){var t=this,n=t.argument!==e.argument;t.argument=t.initialArgument=t.originalArgument=e.argument,t.tag=e.tag,t.index=e.index,t._dataItem=e,t.data=e.data,t.lowError=e.lowError,t.highError=e.highError,t.aggregationInfo=e.aggregationInfo,t._updateData(e,n),!t.hasValue()&&t.setInvisibility(),t._fillStyle(),t._updateLabelData()},deleteMarker:function(){var e=this;e.graphic&&e.graphic.dispose(),e.graphic=null},draw:function(e,t,n,i){var o=this;return(o._needDeletingOnDraw||o.series.autoHidePointMarkers&&!o.isSelected())&&(o.deleteMarker(),o._needDeletingOnDraw=!1),o._needClearingOnDraw&&(o.clearMarker(),o._needClearingOnDraw=!1),o._hasGraphic()?o._updateMarker(n,this._getStyle(),t.markers):o.getMarkerVisibility()&&!o.series.autoHidePointMarkers&&o._drawMarker(e,t.markers,n,i),o._drawLabel(),o._drawErrorBar(e,t.errorBars,n),o},_getViewStyle:function(){var e=E,t=this.fullState,n=[O,A,P,P];return this._viewCounters.hover&&(e|=D),this._viewCounters.selection&&(e|=T),i(this.getOptions().selectionMode)&&(t&=~T),i(this.getOptions().hoverMode)&&(t&=~D),n[e|=t]},applyView:function(e){var t=this._getViewStyle(),n=this;n._currentStyle=t,n.graphic||!n.series.autoHidePointMarkers||t!==P&&t!==A||n._drawMarker(n.series.getRenderer(),n.series.getMarkersGroup()),n.graphic&&(n.series.autoHidePointMarkers&&t!==P&&t!==A?n.deleteMarker():("normal"===t?n.clearMarker():n.graphic.toForeground(),n._updateMarker(!0,n._styles[t],void 0,e)))},setView:function(e){this._viewCounters[e]++,this.applyView()},resetView:function(e){var t=this._viewCounters;--t[e],t[e]<0&&(t[e]=0),this.applyView()},releaseHoverState:function(){var e=this;e.graphic&&!e.isSelected()&&e.graphic.toBackground()},select:function(){this.series.selectPoint(this)},clearSelection:function(){this.series.deselectPoint(this)},hover:function(){this.series.hoverPoint(this)},clearHover:function(){this.series.clearPointHover()},showTooltip:function(){this.series.showPointTooltip(this)},hideTooltip:function(){this.series.hidePointTooltip(this)},_checkLabelsChanging:function(e,t){var n=~t.indexOf("range"),i=~e.indexOf("range");return i&&!n||!i&&n},updateOptions:function(e){if(e){var t=this,n=t._options,i=e.widgetType,o=n&&n.type,r=e.type,s=B[i][r];o!==r?(t._needDeletingOnDraw=!0,t._needClearingOnDraw=!1,o&&(t._checkLabelsChanging(o,r)&&t.deleteLabel(),t._resetType(a[B[o]])),t._setType(a[s])):(t._needDeletingOnDraw=t._checkSymbol(n,e),t._needClearingOnDraw=t._checkCustomize(n,e)),t._options=e,t._fillStyle(),t._updateLabelOptions(s)}},translate:function(){this.hasValue()&&(this._translate(),this.translated=!0)},_checkCustomize:function(e,t){return e.styles.usePointCustomOptions&&!t.styles.usePointCustomOptions},_getCustomLabelVisibility:function(){return this._styles.useLabelCustomOptions?!!this._options.label.visible:null},getBoundingRect:function(){return this._getGraphicBBox()},_resetType:function(e){for(var t in e)delete this[t]},_setType:function(e){for(var t in e)this[t]=e[t]},isInVisibleArea:function(){return this.inVisibleArea},isSelected:function(){return!!(this.fullState&T)},isHovered:function(){return!!(this.fullState&D)},getOptions:function(){return this._options},animate:function(e,t,n){return this.graphic?void this.graphic.animate(t,{partitionDuration:n},e):void(e&&e())},getCoords:function(e){var t=this;return e?t._options.rotated?{x:t.minX-(t.x-t.minX?0:1),y:t.y}:{x:t.x,y:t.minY+(t.y-t.minY?0:1)}:{x:t.x,y:t.y}},getDefaultCoords:function(){var e=this;return e._options.rotated?{x:e.defaultX,y:e.y}:{x:e.x,y:e.defaultY}},setDefaultCoords:function(){var e=this.getDefaultCoords();this.x=e.x,this.y=e.y},_getVisibleArea:function(){return this.series.getVisibleArea()},_getArgTranslator:function(){return this.series.getArgumentAxis().getTranslator()},_getValTranslator:function(){return this.series.getValueAxis().getTranslator()},_calculateVisibility:function(e,t,n,i){var o=this,a=o._getVisibleArea(),r=o._options.rotated;a.minX>e+(n||0)||a.maxX<e||a.minY>t+(i||0)||a.maxY<t||r&&b(n)&&0!==n&&(a.minX===e+n||a.maxX===e)||!r&&b(i)&&0!==i&&(a.minY===t+i||a.maxY===t)?o.inVisibleArea=!1:o.inVisibleArea=!0},hasValue:function(){return null!==this.value&&null!==this.minValue},hasCoords:x,correctPosition:x,correctRadius:x,correctLabelRadius:x,getCrosshairData:x,getPointRadius:x,_populatePointShape:x,_checkSymbol:x,getMarkerCoords:x,hide:x,show:x,hideMarker:x,setInvisibility:x,clearVisibility:x,isVisible:x,resetCorrection:x,correctValue:x,resetValue:x,setPercentValue:x,correctCoordinates:x,coordsIn:x,getTooltipParams:x,applyWordWrap:x,setLabelTrackerData:x,updateLabelCoord:x,drawLabel:x,correctLabelPosition:x,getMinValue:x,getMaxValue:x,_drawErrorBar:x,getMarkerVisibility:x,dispose:function(){var e=this;e.deleteMarker(),e.deleteLabel(),e._errorBar&&this._errorBar.dispose(),e._options=e._styles=e.series=e._errorBar=null},getTooltipFormatObject:function(e){var t=this,n=t._getFormatObject(e),i=[],o=[];t.stackPoints&&(v(t.stackPoints,function(t,n){if(n.isVisible()){var a=n._getFormatObject(e);o.push(a),i.push(a.seriesName+": "+a.valueText)}}),y(n,{points:o,valueText:i.join("\n"),stackName:t.stackPoints.stackName}));var a=t.aggregationInfo;if(a){var r=t.series.getArgumentAxis().formatRange(a.intervalStart,a.intervalEnd,a.aggregationInterval);r&&(n.valueText+="\n"+r)}return n},setHole:function(e,t){var n=this,i=isFinite(n.minValue)?n.minValue:0;b(e)&&("left"===t?(n.leftHole=n.value-e,n.minLeftHole=i-e):(n.rightHole=n.value-e,n.minRightHole=i-e))},resetHoles:function(){this.leftHole=null,this.minLeftHole=null,this.rightHole=null,this.minRightHole=null},getLabel:function(){return this._label},getLabels:function(){return[this._label]}}},function(e,t,n){var i=n(0).extend,o=n(120),a=i;e.exports=a({},o,{correctCoordinates:function(e){this.bubbleSize=e/2},_drawMarker:function(e,t,n){var i=this,o=a({translateX:i.x,translateY:i.y},i._getStyle());i.graphic=e.circle(0,0,n?0:i.bubbleSize).smartAttr(o).data({"chart-data-point":i}).append(t)},getTooltipParams:function(e){var t,n=this,i=n.graphic;if(i)return t=i.getBBox().height,{x:n.x,y:n.y,offset:t<20||"edge"===e?t/2:0}},_getLabelFormatObject:function(){var e=o._getLabelFormatObject.call(this);return e.size=this.initialSize,e},_updateData:function(e){o._updateData.call(this,e),this.size=this.initialSize=e.size},_getGraphicBBox:function(){var e=this;return e._getSymbolBBox(e.x,e.y,e.bubbleSize)},_updateMarker:function(e,t){var n=this;e||(t=a({r:n.bubbleSize,translateX:n.x,translateY:n.y},t)),n.graphic.smartAttr(t)},_getFormatObject:function(e){var t=o._getFormatObject.call(this,e);return t.sizeText=e.formatValue(this.initialSize),t},_storeTrackerR:function(){return this.bubbleSize},_getLabelCoords:function(e){return"inside"===e.getLayoutOptions().position?this._getLabelCoordOfPosition(e,"inside"):o._getLabelCoords.call(this,e)}})},function(e,t,n){var i=n(4).noop,o=n(0).extend,a=n(204),r=n(392),s=o;e.exports=s({},a,{deleteLabel:r.deleteLabel,_getFormatObject:r._getFormatObject,clearVisibility:function(){var e=this.graphic;e&&e.attr("visibility")&&e.attr({visibility:null})},setInvisibility:function(){var e=this.graphic;e&&"hidden"!==e.attr("visibility")&&e.attr({visibility:"hidden"}),this._topLabel.draw(!1),this._bottomLabel.draw(!1)},getTooltipParams:function(e){var t,n,i=this,o="edge"===e;return i._options.rotated?(t=o?i.x+i.width:i.x+i.width/2,n=i.y+i.height/2):(t=i.x+i.width/2,n=o?i.y:i.y+i.height/2),{x:t,y:n,offset:0}},_translate:function(){var e=this;a._translate.call(e),e._options.rotated?e.width=e.width||1:e.height=e.height||1},hasCoords:r.hasCoords,_updateData:r._updateData,_getLabelPosition:r._getLabelPosition,_getLabelMinFormatObject:r._getLabelMinFormatObject,_updateLabelData:r._updateLabelData,_updateLabelOptions:r._updateLabelOptions,getCrosshairData:r.getCrosshairData,_createLabel:r._createLabel,_checkOverlay:r._checkOverlay,_checkLabelsOverlay:r._checkLabelsOverlay,_getOverlayCorrections:r._getOverlayCorrections,_drawLabel:r._drawLabel,_getLabelCoords:r._getLabelCoords,_getGraphicBBox:function(e){var t="top"===e,n=a._getGraphicBBox.call(this);return this._options.rotated?(n.x=t?n.x+n.width:n.x,n.width=0):(n.y=t?n.y:n.y+n.height,n.height=0),n},getLabel:r.getLabel,getLabels:r.getLabels,getBoundingRect:i,getMinValue:r.getMinValue,getMaxValue:r.getMaxValue})},function(e,t,n){var i=n(0).extend,o=n(1).isNumeric,a=n(393),r=i,s=o;e.exports=r({},a,{_getPoints:function(){var e,t=this,n=t._options.rotated?function(e,t){return[t,e]}:function(e,t){return[e,t]},i=s(t.openY),o=s(t.closeY),a=t.x,r=t.width;return e=[].concat(n(a,t.highY)),i&&(e=e.concat(n(a,t.openY))),i&&(e=e.concat(n(a-r/2,t.openY))),i&&(e=e.concat(n(a,t.openY))),o&&(e=e.concat(n(a,t.closeY))),o&&(e=e.concat(n(a+r/2,t.closeY))),o&&(e=e.concat(n(a,t.closeY))),e.concat(n(a,t.lowY))},_drawMarkerInGroup:function(e,t,n){this.graphic=n.path(this._getPoints(),"line").attr({"stroke-linecap":"square"}).attr(t).data({"chart-data-point":this}).sharp().append(e)},_getMinTrackerWidth:function(){var e=2+this._styles.normal["stroke-width"];return e+e%2}})},function(e,t,n){var i=n(0).extend,o=n(120),a=n(204),r=n(391),s=n(1).isDefined,l=n(11),u=l.normalizeAngle,c=Math,d=c.max,h=n(119).radialLabelIndent,p="canvas_position_default";t.polarSymbolPoint=i({},o,{_getLabelCoords:r._getLabelCoords,_moveLabelOnCanvas:a._moveLabelOnCanvas,_getLabelPosition:function(){return"outside"},_getCoords:function(e,t){var n=this.series.getValueAxis(),i=n.getAngles()[0],o=this._getArgTranslator().translate(e),a=this._getValTranslator().translate(t),r=l.convertPolarToXY(n.getCenter(),n.getAngles()[0],o,a);return r.angle=o+i-90,r.radius=a,r},_translate:function(){var e=this,t=e.series.getValueAxis().getCenter(),n=e._getCoords(e.argument,e.value);e.vx=u(n.angle),e.vy=e.radiusOuter=e.radiusLabels=n.radius,e.radiusLabels+=h,e.radius=n.radius,e.middleAngle=-n.angle,e.angle=-n.angle,e.x=n.x,e.y=n.y,e.defaultX=e.centerX=t.x,e.defaultY=e.centerY=t.y,e._translateErrorBars(),e.inVisibleArea=!0},_translateErrorBars:function(){var e=this,t=e._options.errorBars,n=e._getValTranslator();t&&(s(e.lowError)&&(e._lowErrorCoord=e.centerY-n.translate(e.lowError)),s(e.highError)&&(e._highErrorCoord=e.centerY-n.translate(e.highError)),e._errorBarPos=e.centerX,e._baseErrorBarPos="stdDeviation"===t.type?e._lowErrorCoord+(e._highErrorCoord-e._lowErrorCoord)/2:e.centerY-e.radius)},_getTranslates:function(e){return e?this.getDefaultCoords():{x:this.x,y:this.y}},getDefaultCoords:function(){var e=l.getCosAndSin(-this.angle),t=this._getValTranslator().translate(p);return{x:this.defaultX+t*e.cos,y:this.defaultY+t*e.sin}},_addLabelAlignmentAndOffset:function(e,t){return t},_checkLabelPosition:function(e,t){var n=this,i=n._getVisibleArea(),o=n._getGraphicBBox();return n._isPointInVisibleArea(i,o)&&(t=n._moveLabelOnCanvas(t,i,e.getBoundingRect())),t},_getErrorBarSettings:function(e,t){var n=o._getErrorBarSettings.call(this,e,t);return n.rotate=90-this.angle,n.rotateX=this.centerX,n.rotateY=this.centerY,n},getCoords:function(e){return e?this.getDefaultCoords():{x:this.x,y:this.y}}}),t.polarBarPoint=i({},a,{_translateErrorBars:t.polarSymbolPoint._translateErrorBars,_getErrorBarSettings:t.polarSymbolPoint._getErrorBarSettings,_moveLabelOnCanvas:a._moveLabelOnCanvas,_getLabelCoords:r._getLabelCoords,_getLabelConnector:r._getLabelConnector,getTooltipParams:r.getTooltipParams,_getLabelPosition:r._getLabelPosition,_getCoords:t.polarSymbolPoint._getCoords,_translate:function(){var e=this,n=e._getValTranslator(),i=n.translate("canvas_position_end");e.radiusInner=n.translate(e.minValue),t.polarSymbolPoint._translate.call(e),null===e.radiusInner?e.radiusInner=e.radius=i:null===e.radius&&(this.radius=this.value>=0?i:0),e.radiusOuter=e.radiusLabels=d(e.radiusInner,e.radius),e.radiusLabels+=h,e.radiusInner=e.defaultRadius=c.min(e.radiusInner,e.radius),e.middleAngle=e.angle=-u(e.middleAngleCorrection-e.angle)},_getErrorBarBaseEdgeLength:function(){var e=this.getMarkerCoords();return c.PI*e.outerRadius*c.abs(e.startAngle-e.endAngle)/180},getMarkerCoords:function(){return{x:this.centerX,y:this.centerY,outerRadius:this.radiusOuter,innerRadius:this.defaultRadius,startAngle:this.middleAngle-this.interval/2,endAngle:this.middleAngle+this.interval/2}},_drawMarker:function(e,t,n){var i=this,o=i._getStyle(),a=i.getMarkerCoords(),r=a.innerRadius,s=a.outerRadius,l=i._getCoords(i.argument,p),u=a.x,c=a.y;n&&(r=0,s=0,u=l.x,c=l.y),i.graphic=e.arc(u,c,r,s,a.startAngle,a.endAngle).attr(o).data({"chart-data-point":i}).append(t)},_checkLabelPosition:function(e,t){var n=this,i=n._getVisibleArea(),o=l.getCosAndSin(n.middleAngle),a=n.centerX+n.defaultRadius*o.cos,r=n.centerY-n.defaultRadius*o.sin;return a>i.minX&&a<i.maxX&&r>i.minY&&r<i.maxY&&(t=n._moveLabelOnCanvas(t,i,e.getBoundingRect())),t},_addLabelAlignmentAndOffset:function(e,t){return t},correctCoordinates:function(e){this.middleAngleCorrection=e.offset,this.interval=e.width},coordsIn:function(e,t){var n=l.convertXYToPolar(this.series.getValueAxis().getCenter(),e,t),i=this.getMarkerCoords(),o=i.startAngle<i.endAngle?-n.phi>=i.startAngle&&-n.phi<=i.endAngle:-n.phi<=i.startAngle&&-n.phi>=i.endAngle;return n.r>=i.innerRadius&&n.r<=i.outerRadius&&o}})},function(e,t,n){function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(0).extend,a=n(1).isDefined,r=n(11).map,s=n(4).noop,l=n(107).chart,u=n(144).chart.bar,c=n(169).chart.area;t.chart={};var d={areErrorBarsVisible:s,_createErrorBarGroup:s,_checkData:function(e,t){var n=this.getValueFields();return l._checkData.call(this,e,t,{minValue:n[0],value:n[1]})&&e.minValue==e.minValue},getValueRangeInitialValue:l.getValueRangeInitialValue,_getPointDataSelector:function(e){var t=this.getValueFields(),n=t[0],i=t[1],o=this.getTagField(),a=this.getArgumentField();return function(e){return{tag:e[o],minValue:e[n],value:e[i],argument:e[a],data:e}}},_defaultAggregator:"range",_aggregators:{range:function(e,t){var n,o=e.intervalStart,r=e.data;if(r.length){var s=t.getValueFields(),l=s[0],u=s[1],c=r.reduce(function(e,t){var n=t[l],i=t[u];return a(n)&&a(i)?(e[l]=Math.min(e[l],Math.min(n,i)),e[u]=Math.max(e[u],Math.max(n,i)),e):e},(i(n={},l,1/0),i(n,u,-1/0),i(n,t.getArgumentField(),o),n));if(!isFinite(c[l])||!isFinite(c[u])){if(r.filter(function(e){return null===e[l]&&null===e[u]}).length!==r.length)return;c[l]=c[u]=null}return c}}},getValueFields:function(){return[this._options.rangeValue1Field||"val1",this._options.rangeValue2Field||"val2"]}};t.chart.rangebar=o({},u,d),t.chart.rangearea=o({},c,{_drawPoint:function(e){var t=e.point;t.isInVisibleArea()?(t.clearVisibility(),t.draw(this._renderer,e.groups),this._drawnPoints.push(t),t.visibleTopMarker||t.hideMarker("top"),t.visibleBottomMarker||t.hideMarker("bottom")):t.setInvisibility()},_prepareSegment:function(e,t){var n=this._processSinglePointsAreaSegment(e,t),i=r(n,function(e){return e.getCoords(!0)});return{line:n,bottomLine:i,area:r(n,function(e){return e.getCoords()}).concat(i.slice().reverse()),singlePointSegment:n!==e}},_getDefaultSegment:function(e){var t=c._getDefaultSegment.call(this,e);return t.bottomLine=t.line,t},_removeElement:function(e){c._removeElement.call(this,e),e.bottomLine&&e.bottomLine.remove()},_drawElement:function(e,t){var n=this,i=c._drawElement.call(n,e,t);return i.bottomLine=n._bordersGroup&&n._createBorderElement(e.bottomLine,{"stroke-width":n._styles.normal.border["stroke-width"]}).append(n._bordersGroup),i},_applyStyle:function(e){var t=this,n=t._elementsGroup,i=t._bordersGroup;n&&n.smartAttr(e.elements),i&&i.attr(e.border),(t._graphics||[]).forEach(function(t){t.line&&t.line.attr({"stroke-width":e.border["stroke-width"]}),t.bottomLine&&t.bottomLine.attr({"stroke-width":e.border["stroke-width"]})})},_updateElement:function(e,t,n,i){var o={points:t.bottomLine},a=e.bottomLine;c._updateElement.apply(this,arguments),a&&(n?a.animate(o):a.attr(o))}},d)},function(e,t,n){function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(205).chart.line,a=n(107).chart,r=n(169).chart.area,s=n(144),l=s.chart.bar,u=s.polar.bar,c=n(0).extend,d=n(3).each,h=n(4).noop;t.chart={},t.chart.bubble=c({},a,{getErrorBarRangeCorrector:h,_calculateErrorBars:h,_getMainColor:l._getMainColor,_createPointStyles:l._createPointStyles,_updatePointsVisibility:l._updatePointsVisibility,_getOptionsForPoint:l._getOptionsForPoint,_applyMarkerClipRect:o._applyElementsClipRect,_parsePointStyle:u._parsePointStyle,_createLegendState:r._createLegendState,_setMarkerGroupSettings:u._setMarkerGroupSettings,areErrorBarsVisible:h,_createErrorBarGroup:h,_checkData:function(e,t){return a._checkData.call(this,e,t,{value:this.getValueFields()[0],size:this.getSizeField()})},_getPointDataSelector:function(e,t){var n=this.getSizeField(),i=a._getPointDataSelector.call(this);return function(e){var t=i(e);return t.size=e[n],t}},_aggregators:{avg:function(e,t){var n,o=e.data,a=e.intervalStart;if(o.length){var r=t.getValueFields()[0],s=t.getSizeField(),l=o.reduce(function(e,t){return e[0]+=t[r],e[1]+=t[s],e[2]++,e},[0,0,0]);return i(n={},r,l[0]/l[2]),i(n,s,l[1]/l[2]),i(n,t.getArgumentField(),a),n}}},getSeriesPairCoord:function(e,t){return this.getShapePairCoord(e,t,function(e){return e.bubbleSize})},getValueFields:function(){return[this._options.valueField||"val"]},getSizeField:function(){return this._options.sizeField||"size"},_animate:function(){var e=this,t=e._drawnPoints.length-1,n=e._labelsGroup,i=function(){n&&n.animate({opacity:1},{duration:e._defaultDuration})};d(e._drawnPoints||[],function(e,n){n.animate(e===t?i:void 0,{r:n.bubbleSize,translateX:n.x,translateY:n.y})})},_patchMarginOptions:function(e){return e.processBubbleSize=!0,e}})},function(e,t,n){var i=n(4).noop,o=n(3).each,a=n(107),r=n(11),s=n(0).extend,l=a.chart,u=n(144).chart.bar,c=s,d=o,h=i,p=r.map,f=isFinite,g=Math.max;t.pie=c({},u,{_setGroupsSettings:l._setGroupsSettings,_createErrorBarGroup:h,_drawPoint:function(e){var t=e.point,n=this._legendCallback;l._drawPoint.call(this,e),!t.isVisible()&&t.setInvisibility(),t.isSelected()&&n()},_getOldPoint:function(e,t,n){var i=(this._points||[])[n];return i&&(t[i.argument]=t[i.argument].filter(function(e){return e!==i})),i},adjustLabels:function(e){return(this._points||[]).reduce(function(t,n){if(n._label.isVisible())return n.setLabelTrackerData(),t=n.applyWordWrap(e)||t,n.updateLabelCoord(e),t},!1)},_applyElementsClipRect:h,getColor:h,areErrorBarsVisible:h,drawLabelsWOPoints:function(){var e=this;return"inside"!==e._options.label.position&&(e._labelsGroup.append(e._extGroups.labelsGroup),(e._points||[]).forEach(function(e){e.drawLabel()}),!0)},getPointsCount:function(){var e=this;return this._data.filter(function(t){return e._checkData(t)}).length},setMaxPointsCount:function(e){this._pointsCount=e},_getCreatingPointOptions:function(e,t){return this._getPointOptions(e,t)},_updateOptions:function(e){this.labelSpace=0,this.innerRadius="pie"===this.type?0:e.innerRadius},_checkData:function(e,t){var n=u._checkData.call(this,e,t,{value:this.getValueFields()[0]});return this._options.paintNullPoints?n:n&&null!==e.value},_createGroups:l._createGroups,_setMarkerGroupSettings:function(){this._markersGroup.attr({class:"dxc-markers"})},_getMainColor:function(e,t){var n=this.getPointsByArg(e.argument),i=t?n.indexOf(t):n.length;return this._options.mainSeriesColor(e.argument,i,this._pointsCount)},_getPointOptions:function(e){return this._parsePointOptions(this._preparePointOptions(),this._options.label,e)},_getRangeData:function(){return this._rangeData},_createPointStyles:function(e,t,n){var i=this,o=e.color||i._getMainColor(t,n);return{normal:i._parsePointStyle(e,o,o),hover:i._parsePointStyle(e.hoverStyle,o,o),selection:i._parsePointStyle(e.selectionStyle,o,o),legendStyles:{normal:i._createLegendState(e,o),hover:i._createLegendState(e.hoverStyle,o),selection:i._createLegendState(e.selectionStyle,o)}}},_getArrangeMinShownValue:function(e,t){var n=this._options.minSegmentSize,i=0,o=0;return t=t||e.length,d(e,function(e,a){a.isVisible()&&(a.normalInitialValue<n*t/360?i+=n:o+=a.normalInitialValue)}),i<360?n*o/(360-i):0},_applyArrangeCorrection:function(e,t,n){var i,o=this._options,a="anticlockwise"!==o.segmentsDirection,s=f(o.startAngle)?r.normalizeAngle(o.startAngle):0,l=o.minSegmentSize,u=0,c=0;0===n&&(n=e.filter(function(e){return e.isVisible()}).length,c=1),d(a?e:e.concat([]).reverse(),function(e,o){var a,r=o.isVisible()?c||o.normalInitialValue:0;l&&o.isVisible()&&r<t&&(a=t),i=r/n,o.correctValue(u,i,c+(a||0)),o.shiftedAngle=s,u+=a||r}),this._rangeData={val:{min:0,max:u}}},_removePoint:function(e){var t=this.getPointsByArg(e.argument);t.splice(t.indexOf(e),1),e.dispose()},arrangePoints:function(){for(var e,t,n,i,o=this,a=o._points||[],r=o._options.minSegmentSize,s=!0,l=0,u=a.length;l<u&&s;)s=a[l].value<=0,l++;n=o._points=p(a,function(e){return null===e.value||!s&&e.value<0?(o._removePoint(e),null):e}),i=n.reduce(function(e,t){return g(e,Math.abs(t.initialValue))},0),n.forEach(function(e){e.normalInitialValue=e.initialValue/(0!==i?i:1)}),t=n.reduce(function(e,t){return e+(t.isVisible()?t.normalInitialValue:0)},0),r&&(e=this._getArrangeMinShownValue(n,t)),o._applyArrangeCorrection(n,e,t)},correctPosition:function(e,t){d(this._points,function(t,n){n.correctPosition(e)}),this.setVisibleArea(t)},correctRadius:function(e){this._points.forEach(function(t){t.correctRadius(e)})},correctLabelRadius:function(e){this._points.forEach(function(t){t.correctLabelRadius(e)})},setVisibleArea:function(e){this._visibleArea={minX:e.left,maxX:e.width-e.right,minY:e.top,maxY:e.height-e.bottom}},_applyVisibleArea:h,_animate:function(e){var t,n=this,i=n._points,o=i&&i.length,a=function(){n._animateComplete()};t=e?function(e,t){e.animate(t===o-1?a:void 0,.7,(1-.7)*t/(o-1))}:function(e,t){e.animate(t===o-1?a:void 0)},i.forEach(t)},getVisiblePoints:function(){return p(this._points,function(e){return e.isVisible()?e:null})},getPointsByKeys:function(e,t){var n=this.getPointsByArg(e);return n[t]&&[n[t]]||[]}}),t.doughnut=t.donut=t.pie},function(e,t,n){var i=n(107).chart,o=n(144).chart.bar,a=n(0).extend,r=n(1).isDefined,s=n(11).normalizeEnum,l=n(4).noop;t.stock=a({},i,{_animate:l,_applyMarkerClipRect:function(e){e["clip-path"]=this._forceClipping?this._paneClipRectID:this._widePaneClipRectID},_updatePointsVisibility:o._updatePointsVisibility,_getOptionsForPoint:o._getOptionsForPoint,getErrorBarRangeCorrector:l,_createErrorBarGroup:l,areErrorBarsVisible:l,_createGroups:i._createGroups,_setMarkerGroupSettings:function(){var e=this,t=e._markersGroup,n=e._createPointStyles(e._getMarkerGroupOptions()),i=a(n.normal,{class:"default-markers"}),o=a(n.positive.normal,{class:"default-positive-markers"}),r=a(n.reduction.normal,{class:"reduction-markers"}),s=a(n.reductionPositive.normal,{class:"reduction-positive-markers"}),l={class:"dxc-markers"};e._applyMarkerClipRect(l),t.attr(l),e._createGroup("defaultMarkersGroup",t,t,i),e._createGroup("reductionMarkersGroup",t,t,r),e._createGroup("defaultPositiveMarkersGroup",t,t,o),e._createGroup("reductionPositiveMarkersGroup",t,t,s)},_setGroupsSettings:function(){i._setGroupsSettings.call(this,!1)},_getCreatingPointOptions:function(){var e,t=this._predefinedPointOptions;return t||(e=this._getPointOptions(),this._predefinedPointOptions=t=a(!0,{styles:{}},e),t.styles.normal=t.styles.positive.normal=t.styles.reduction.normal=t.styles.reductionPositive.normal={"stroke-width":e.styles&&e.styles.normal&&e.styles.normal["stroke-width"]}),t},_checkData:function(e,t){var n=this.getValueFields();return i._checkData.call(this,e,t,{openValue:n[0],highValue:n[1],lowValue:n[2],closeValue:n[3]})&&e.highValue==e.highValue&&e.lowValue==e.lowValue},_getPointDataSelector:function(e,t){var n,i=this,o=i.getValueFields(),a=i.getArgumentField(),l=o[0],u=o[1],c=o[2],d=o[3];switch(i.level=i._options.reduction.level,s(i.level)){case"open":n=l;break;case"high":n=u;break;case"low":n=c;break;default:n=d,i.level="close"}var h=void 0;return function(e){var t=e[n],o=!1;return r(t)&&(r(h)&&(o=t<h),h=t),{argument:e[a],highValue:e[u],lowValue:e[c],closeValue:e[d],openValue:e[l],reductionValue:t,tag:e[i.getTagField()],isReduction:o,data:e}}},_parsePointStyle:function(e,t,n){return{stroke:e.color||t,"stroke-width":e.width,fill:e.color||n}},_getDefaultStyle:function(e){var t=this,n=e.color||t._options.mainSeriesColor;return{normal:t._parsePointStyle(e,n,n),hover:t._parsePointStyle(e.hoverStyle,n,n),selection:t._parsePointStyle(e.selectionStyle,n,n)}},_getReductionStyle:function(e){var t=this,n=e.reduction.color;return{normal:t._parsePointStyle({color:n,width:e.width,hatching:e.hatching},n,n),hover:t._parsePointStyle(e.hoverStyle,n,n),selection:t._parsePointStyle(e.selectionStyle,n,n)}},_createPointStyles:function(e){var t,n,i,o=this,r=o._options.innerColor,s=o._getDefaultStyle(e);return t=a(!0,{},s),n=o._getReductionStyle(e),i=a(!0,{},n),t.normal.fill=t.hover.fill=t.selection.fill=r,i.normal.fill=i.hover.fill=i.selection.fill=r,s.positive=t,s.reduction=n,s.reductionPositive=i,s},_endUpdateData:function(){delete this._predefinedPointOptions},_defaultAggregator:"ohlc",_aggregators:{ohlc:function(e,t){var n=e.intervalStart,i=e.data;if(i.length){var o={},a=t.getValueFields(),r=a[1],s=a[2];return o[r]=-1/0,o[s]=1/0,(o=i.reduce(function(e,t){return null!==t[r]&&(e[r]=Math.max(e[r],t[r])),null!==t[s]&&(e[s]=Math.min(e[s],t[s])),e},o))[a[0]]=i[0][a[0]],o[a[3]]=i[i.length-1][a[3]],isFinite(o[r])||(o[r]=null),isFinite(o[s])||(o[s]=null),o[t.getArgumentField()]=n,o}}},getValueFields:function(){var e=this._options;return[e.openValueField||"open",e.highValueField||"high",e.lowValueField||"low",e.closeValueField||"close"]},getArgumentField:function(){return this._options.argumentField||"date"},_patchMarginOptions:function(e){var t=this._getCreatingPointOptions().styles,n=[t.normal,t.hover,t.selection].reduce(function(e,t){return Math.max(e,t["stroke-width"])},0);return e.size=10+n,e.sizePointNormalState=10,e},getSeriesPairCoord:function(e,t){for(var n=null,i=this.getVisiblePoints(),o=0;o<i.length;o++){var a=i[o],r=void 0;if(t)r=Math.abs(a.vx-e)<=a.width/2?(a.openY+a.closeY)/2:void 0;else{var s=[Math.min(a.lowY,a.highY),Math.max(a.lowY,a.highY)];r=e>=s[0]&&e<=s[1]?a.vx:void 0}if(this.checkAxisVisibleAreaCoord(!t,r)){n=r;break}}return n},usePointsToDefineAutoHiding:function(){return!1}}),t.candlestick=a({},t.stock,{_parsePointStyle:function(e,n,i){var o=e.color||i,a=t.stock._parsePointStyle.call(this,e,n,o);return a.fill=o,a.hatching=e.hatching,a}})},function(e,t,n){function i(e,t,n,i){return(e=f.clone(e)).value=t,e.minValue=n,e.translate(),e.argument=e.argument+i,e}function o(e){for(var t,n,o=0,a=[],r=e.length;o<r;)n=[t=e[o]],t.leftHole&&(n=[i(t,t.leftHole,t.minLeftHole,"left"),t]),t.rightHole&&n.push(i(t,t.rightHole,t.minRightHole,"right")),a.push(n),o++;return[].concat.apply([],a)}var a=n(4).noop,r=n(0).extend,s=n(3).each,l=n(169).chart,u=l.area,c=n(144),d=c.chart.bar,h=n(205).chart,p=n(11),f=n(48),g={getErrorBarRangeCorrector:a,_calculateErrorBars:a,_updateOptions:function(e){this._stackName="axis_"+(e.axis||"default")}};t.chart={},t.polar={},t.chart.stackedline=r({},h.line,g,{}),t.chart.stackedspline=r({},h.spline,g,{}),t.chart.fullstackedline=r({},h.line,g,{getValueRangeInitialValue:l.area.getValueRangeInitialValue}),t.chart.fullstackedspline=r({},h.spline,g,{getValueRangeInitialValue:l.area.getValueRangeInitialValue});var _=t.chart.stackedbar=r({},d,g,{_updateOptions:function(e){g._updateOptions.call(this,e),this._stackName=this._stackName+"_stack_"+(e.stack||"default")}});t.chart.fullstackedbar=r({},d,g,{_updateOptions:_._updateOptions}),t.chart.stackedarea=r({},u,g,{_prepareSegment:function(e,t){return u._prepareSegment.call(this,o(e),t)},_appendInGroup:function(){this._group.append(this._extGroups.seriesGroup).toBackground()}}),t.chart.stackedsplinearea=r({},l.splinearea,g,{_prepareSegment:function(e,t){var n,i=this;if(e=o(e),this._prevSeries&&1!==e.length){for(var a=h.spline._calculateBezierPoints(e,t),r=p.map(e,function(e){var t=e.getCoords(!0);return t.argument=e.argument,t}),u=[],c={},d=0,f=i._prevSeries._segments.length;d<f;)u=u.concat(i._prevSeries._segments[d].line),d++;s(u,function(e,t){if(null!==t.argument){var n=t.argument.valueOf();c[n]?c[n].push(t):c[n]=[t]}}),i._prevSeries._segmentByArg=c,r=h.spline._calculateBezierPoints(r,t),s(r,function(e,t){var n,o=t.argument.valueOf();e%3==0&&((n=c[o]||function(e,t){for(var n;!n&&e;)n=e._segmentByArg&&e._segmentByArg[t],e=e._prevSeries;return n}(i._prevSeries,o))&&(r[e-1]&&n[0]&&(r[e-1]=n[0]),r[e+1]&&(r[e+1]=n[2]||t)))}),n={line:a,area:a.concat(r.reverse())},i._areaPointsToSplineAreaPoints(n.area)}else n=l.splinearea._prepareSegment.call(this,e,t);return n},_appendInGroup:t.chart.stackedarea._appendInGroup}),t.chart.fullstackedarea=r({},u,g,{_prepareSegment:t.chart.stackedarea._prepareSegment,_appendInGroup:t.chart.stackedarea._appendInGroup}),t.chart.fullstackedsplinearea=r({},l.splinearea,g,{_prepareSegment:t.chart.stackedsplinearea._prepareSegment,_appendInGroup:t.chart.stackedarea._appendInGroup}),t.polar.stackedbar=r({},c.polar.bar,g,{})},function(e,t,n){function i(e,t){var n=e.target;return("tspan"===n.tagName?n.parentNode:n)[t]}function o(e,t){return e.cancel||!t.getOptions()}function a(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom}function r(e){var t=e.getOptions().hoverMode;return t===M?t:R}var s=n(12),l=n(5),u=n(19),c=n(0).extend,d=n(3).each,h=n(119),p=h.events,f=n(11),g=n(24),_=n(89),m=n(9).addNamespace,v=n(1).isDefined,y=n(11).normalizeEnum,b=Math.floor,x=d,w=n(4).noop,C=h.states.hoverMark,k=h.states.normalMark,S="dxChartTracker",I="."+S,T=m([g.down,g.move],S),D="legendClick",E="seriesClick",A="pointClick",O="chart-data-point",P="chart-data-series",B="chart-data-argument",M="none",R="allargumentpoints",F="includepoints",V=[F,"excludepoints",M],L={ctor:function(e){var t=this,n={tracker:t};t._renderer=e.renderer,t._legend=e.legend,t._tooltip=e.tooltip,t._eventTrigger=e.eventTrigger,t._seriesGroup=e.seriesGroup,e.seriesGroup.off(I).on(m(p.showPointTooltip,S),n,t._showPointTooltip).on(m(p.hidePointTooltip,S),n,t._hidePointTooltip),t._renderer.root.off(I).on(T,n,t._pointerHandler).on(m(u.name,S),n,t._clickHandler).on(m(_.name,S),{timeout:300},w)},update:function(){},updateSeries:function(e,t){var n=this,i=!(e&&e.some(function(e){return e===n.hoveredSeries})||n._hoveredPoint&&n._hoveredPoint.series);n._storedSeries!==e&&(n._storedSeries=e||[]),i&&(n._clean(),n._renderer.initHatching()),t&&(n.clearSelection(),i||(n._hideTooltip(n.pointAtShownTooltip),n.clearHover()))},setCanvases:function(e,t){this._mainCanvas=e,this._canvases=t},repairTooltip:function(){var e=this.pointAtShownTooltip;e&&e.series&&e.isVisible()?this._showTooltip(e):this._hideTooltip(e,!0)},_setHoveredPoint:function(e){e!==this._hoveredPoint&&(this._releaseHoveredPoint(),e.hover(),this._hoveredPoint=e)},_releaseHoveredPoint:function(){this._hoveredPoint&&this._hoveredPoint.getOptions()&&(this._hoveredPoint.clearHover(),this._hoveredPoint=null,this._tooltip.isEnabled()&&this._hideTooltip(this._hoveredPoint))},_setHoveredSeries:function(e,t){this._releaseHoveredSeries(),this._releaseHoveredPoint(),e.hover(t),this.hoveredSeries=e},_releaseHoveredSeries:function(e,t){this.hoveredSeries&&(this.hoveredSeries.clearHover(),this.hoveredSeries=null)},clearSelection:function(){this._storedSeries.forEach(function(e){e&&(e.clearSelection(),e.getPoints().forEach(function(e){e.clearSelection()}))})},_clean:function(){var e=this;e.hoveredPoint=e.hoveredSeries=e._hoveredArgumentPoints=null,e._hideTooltip(e.pointAtShownTooltip)},clearHover:function(){this._resetHoveredArgument(),this._releaseHoveredSeries(),this._releaseHoveredPoint()},_hideTooltip:function(e,t){var n=this;!n._tooltip||e&&n.pointAtShownTooltip!==e||(!t&&n.pointAtShownTooltip&&(n.pointAtShownTooltip=null),n._tooltip.hide())},_showTooltip:function(e){var t,n,i=this;if(e&&e.getOptions()){if(t=e.getTooltipFormatObject(i._tooltip),!v(t.valueText)&&!t.points||!e.isVisible())return;i.pointAtShownTooltip&&i.pointAtShownTooltip===e||(n={target:e});var o=e.getTooltipParams(i._tooltip.getLocation()),a=i._renderer.getRootOffset();if(o.x+=a.left,o.y+=a.top,!i._tooltip.show(t,o,n))return;i.pointAtShownTooltip=e}},_showPointTooltip:function(e,t){var n=e.data.tracker,i=n.pointAtShownTooltip;i&&i!==t&&n._hideTooltip(i),n._showTooltip(t)},_hidePointTooltip:function(e,t){e.data.tracker._hideTooltip(t)},_enableOutHandler:function(){if(!this._outHandler){var e=this,t=function(t){var n=e._renderer.getRootOffset(),i=b(t.pageX-n.left),o=b(t.pageY-n.top);a(e._mainCanvas,i,o)||(e._pointerOut(),e._disableOutHandler())};l.on(s.getDocument(),T,t),this._outHandler=t}},_disableOutHandler:function(){this._outHandler&&l.off(s.getDocument(),T,this._outHandler),this._outHandler=null},stopCurrentHandling:function(){this._pointerOut(!0)},_pointerOut:function(e){this.clearHover(),(e||this._tooltip.isEnabled())&&this._hideTooltip(this.pointAtShownTooltip)},_triggerLegendClick:function(e,t){var n=this._eventTrigger;n(D,e,function(){!o(e.event,e.target)&&n(t,e)})},_hoverLegendItem:function(e,t){var n,i=this,o=i._legend.getItemByCoord(e,t),a=function(e){return V.indexOf(e)>-1?e:F}(i._legend.getOptions().hoverMode);o?((n=i._storedSeries[o.id]).isHovered()&&n.lastHoverMode===a||i._setHoveredSeries(n,a),i._tooltip.isEnabled()&&i._hideTooltip(i.pointAtShownTooltip)):i.clearHover()},_hoverArgument:function(e,t){var n=this,i=n._getArgumentHoverMode();v(e)&&(n._releaseHoveredPoint(),n._hoveredArgument=e,n._argumentIndex=t,n._notifySeries({action:"pointHover",notifyLegend:n._notifyLegendOnHoverArgument,target:{argument:e,fullState:C,argumentIndex:t,getOptions:function(){return{hoverMode:i}}}}))},_resetHoveredArgument:function(){var e,t=this;v(t._hoveredArgument)&&(e=t._getArgumentHoverMode(),t._notifySeries({action:"clearPointHover",notifyLegend:t._notifyLegendOnHoverArgument,target:{fullState:k,argumentIndex:t._argumentIndex,argument:t._hoveredArgument,getOptions:function(){return{hoverMode:e}}}}),t._hoveredArgument=null)},_notifySeries:function(e){this._storedSeries.forEach(function(t){t.notify(e)})},_pointerHandler:function(e){var t=e.data.tracker,n=t._renderer.getRootOffset(),o=b(e.pageX-n.left),a=b(e.pageY-n.top),r=t._getCanvas(o,a),s=i(e,P),l=i(e,O)||s&&s.getPointByCoord(o,a);if(l&&!l.getMarkerVisibility()&&(l=void 0),t._enableOutHandler(),t._legend.coordsIn(o,a))t._hoverLegendItem(o,a);else if(t.hoveredSeries&&t.hoveredSeries!==t._stuckSeries&&t._releaseHoveredSeries(),!t._hoverArgumentAxis(o,a,e)&&(t._isPointerOut(r,l)&&t._pointerOut(),r||l)){if(s&&!l){if(l=s.getNeighborPoint(o,a),t._stickyHovering||!l||l.coordsIn(o,a)||(l=null),s!==t.hoveredSeries)return void t._setTimeout(function(){t._setHoveredSeries(s),t._setStuckSeries(e,s,o,a),t._pointerComplete(l,o,a)},s)}else{if(l){if(e.type!==g.move&&"touch"!==e.pointerType)return;return void(t.hoveredSeries?t._setTimeout(function(){t._pointerOnPoint(l,o,a,e)},l):t._pointerOnPoint(l,o,a,e))}t._setStuckSeries(e,void 0,o,a)&&t._stickyHovering?(s=t._stuckSeries,l=s.getNeighborPoint(o,a),t._releaseHoveredSeries(),l&&l.getMarkerVisibility()&&t._setHoveredPoint(l)):t._stickyHovering||t._pointerOut()}t._pointerComplete(l,o,a)}},_pointerOnPoint:function(e,t,n){this._resetHoveredArgument(),this._setHoveredPoint(e),this._pointerComplete(e,t,n)},_pointerComplete:function(e){this.pointAtShownTooltip!==e&&this._tooltip.isEnabled()&&this._showTooltip(e)},_clickHandler:function(e){var t=e.data.tracker,n=t._renderer.getRootOffset(),o=b(e.pageX-n.left),a=b(e.pageY-n.top),r=i(e,O),s=t._stuckSeries||i(e,P)||r&&r.series,l=t._argumentAxis;if(t._legend.coordsIn(o,a)){var u=t._legend.getItemByCoord(o,a);u&&t._legendClick(u,e)}else if(l&&l.coordsIn(o,a)){var c=i(e,B);v(c)&&t._eventTrigger("argumentAxisClick",{argument:c,event:e})}else s&&((r=r||s.getPointByCoord(o,a))&&r.getMarkerVisibility()?t._pointClick(r,e):i(e,P)&&t._eventTrigger(E,{target:s,event:e}))},dispose:function(){var e=this;e._disableOutHandler(),e._renderer.root.off(I),e._seriesGroup.off(I)}},H=function(e){this.ctor(e)};c(H.prototype,L,{_pointClick:function(e,t){var n=this._eventTrigger,i=e.series;n(A,{target:e,event:t},function(){!o(t,i)&&n(E,{target:i,event:t})})},update:function(e){var t=this;L.update.call(this,e),t._argumentAxis=e.argumentAxis||{},t._axisHoverEnabled=t._argumentAxis&&y(t._argumentAxis.getOptions().hoverMode)===R,t._chart=e.chart,t._rotated=e.rotated,t._crosshair=e.crosshair,t._stickyHovering=e.stickyHovering},_getCanvas:function(e,t){for(var n=this._canvases||[],i=0;i<n.length;i++){var o=n[i];if(a(o,e,t))return o}return null},_isPointerOut:function(e){return!e&&this._stuckSeries},_hideCrosshair:function(){this._crosshair&&this._crosshair.hide()},_moveCrosshair:function(e,t,n){e&&this._crosshair&&e.isVisible()&&this._crosshair.show({point:e,x:t,y:n})},_clean:function(){var e=this;L._clean.call(e),e._resetTimer(),e._stuckSeries=null},_getSeriesForShared:function(e,t){var n=this,i=[],o=null,a=1/0;return n._tooltip.isShared()&&!n.hoveredSeries&&(x(n._storedSeries,function(n,o){var a=o.getNeighborPoint(e,t);a&&i.push(a)}),x(i,function(n,i){var r=i.getCrosshairData(e,t),s=f.getDistance(e,t,r.x,r.y);s<a&&(o=i,a=s)})),o&&o.series},_setTimeout:function(e,t){var n=this;n._timeoutKeeper!==t&&(n._resetTimer(),n._hoverTimeout=setTimeout(function(){e(),n._timeoutKeeper=null},100),n._timeoutKeeper=t)},_resetTimer:function(){clearTimeout(this._hoverTimeout),this._timeoutKeeper=this._hoverTimeout=null},_stopEvent:function(e){v(e.cancelable)&&!e.cancelable||(e.preventDefault(),e.stopPropagation())},_setStuckSeries:function(e,t,n,i){return"mouse"!==e.pointerType?this._stuckSeries=null:this._stuckSeries=t||this._stuckSeries||this._getSeriesForShared(n,i),!!this._stuckSeries},_pointerOut:function(){var e=this;e._stuckSeries=null,e._hideCrosshair(),e._resetTimer(),L._pointerOut.apply(e,arguments)},_hoverArgumentAxis:function(e,t,n){var o=this;if(o._resetHoveredArgument(),o._axisHoverEnabled&&o._argumentAxis.coordsIn(e,t))return o._hoverArgument(i(n,B)),!0},_pointerComplete:function(e,t,n){var i=this;i.hoveredSeries&&i.hoveredSeries.updateHover(t,n),i._resetTimer(),i._moveCrosshair(e,t,n),L._pointerComplete.call(i,e)},_legendClick:function(e,t){var n=this._storedSeries[e.id];this._triggerLegendClick({target:n,event:t},E)},_hoverLegendItem:function(e,t){this._stuckSeries=null,this._hideCrosshair(),L._hoverLegendItem.call(this,e,t)},_pointerOnPoint:function(e,t,n,i){this._setStuckSeries(i,e.series,t,n),this._releaseHoveredSeries(),L._pointerOnPoint.call(this,e,t,n,i)},_notifyLegendOnHoverArgument:!1,_getArgumentHoverMode:function(){return r(this._argumentAxis)},dispose:function(){this._resetTimer(),L.dispose.call(this)}});var z=function(e){this.ctor(e)};c(z.prototype,L,{_isPointerOut:function(e,t){return!t},_legendClick:function(e,t){var n=[];this._storedSeries.forEach(function(t){return n.push.apply(n,t.getPointsByKeys(e.argument,e.argumentIndex))}),this._eventTrigger(D,{target:e.argument,points:n,event:t})},_pointClick:function(e,t){this._eventTrigger(A,{target:e,event:t})},_hoverLegendItem:function(e,t){var n=this,i=n._legend.getItemByCoord(e,t);n._resetHoveredArgument(),i?n._hoverArgument(i.argument,i.argumentIndex):n.clearHover()},_getArgumentHoverMode:function(){return r(this._legend)},_hoverArgumentAxis:w,_setStuckSeries:w,_getCanvas:w,_notifyLegendOnHoverArgument:!0}),t.ChartTracker=H,t.PieTracker=z},function(e,t,n){function i(e,t){if(e.isLogarithmic){var n,i,o=e.logarithmicBase,a=e.tickValues,r=[];for(e.minValue=t.transform(e.minValue,o),e.oldMinValue=t.transform(e.oldMinValue,o),e.maxValue=t.transform(e.maxValue,o),e.oldMaxValue=t.transform(e.oldMaxValue,o),e.tickInterval=c.round(e.tickInterval),e.tickInterval<1&&(e.tickInterval=1),i=t.getInterval(o,e.tickInterval),n=t.transform(a[0],o);r.length<a.length;)r.push(n),n=t.addInterval(n,i);r.tickInterval=e.tickInterval,e.tickValues=r}}function o(e){return e.maxValue-e.minValue||1}function a(e){for(var t=0;t<e.length;t++)if(!e[t].stubData)return e[t];return null}var r=(n(82),n(1)),s=n(3),l=n(11),u=n(29),c=Math,d=c.floor,h=c.max,p=c.abs,f={transform:function(e,t){return(0,u.adjust)((0,l.getLog)(e,t))},addInterval:function(e,t){return(0,u.adjust)(e+t)},getInterval:function(e,t){return t}},g={transform:function(e,t){return(0,u.adjust)((0,l.raiseTo)(e,t))},addInterval:function(e,t){return(0,u.adjust)(e*t)},getInterval:function(e,t){return c.pow(e,t)}},_={synchronize:function(e){(0,s.each)(function(e){var t={};return e.forEach(function(e){var n=e.pane;t[n]||(t[n]=[]),t[n].push(e)}),t}(e),function(e,t){var n,s;if(t.length>1){if((n=function(e){return e.reduce(function(e,t){var n,o=t.getTicksValues(),a=o.majorTicksValues,s=t.getOptions(),l=t.getTranslator().getBusinessRange(),u=t.getVisibleArea(),c=t._tickInterval,d=s.synchronizedValue;if(a&&a.length>0&&(0,r.isNumeric)(a[0])&&"discrete"!==s.type&&!l.isEmpty()&&(!l.breaks||!l.breaks.length)&&"zoom"!==t.getViewport().action){t.applyMargins();var h=t.getTranslator().from(u[0]),g=t.getTranslator().from(u[1]),_=h<g?h:g,m=h<g?g:h;_===m&&(0,r.isDefined)(d)&&(c=p(a[0]-d)||1,_=a[0]-c,m=a[0]+c),i(n={axis:t,isLogarithmic:"logarithmic"===s.type,logarithmicBase:l.base,tickValues:a,minorValues:o.minorTicksValues,minorTickInterval:t._minorTickInterval,minValue:_,oldMinValue:_,maxValue:m,oldMaxValue:m,inverted:l.invert,tickInterval:c,synchronizedValue:d},f),e.push(n)}return e},[])}(t)).length<2||!a(n))return;(function(e){var t=e.reduce(function(e,t){return h(e,t.tickValues.length)},0);e.forEach(function(e){var n,i,o=0,a=e.synchronizedValue,s=e.tickValues,l=e.tickInterval;if((0,r.isDefined)(a))e.baseTickValue=e.invertedBaseTickValue=a,e.tickValues=[e.baseTickValue];else{if(s.length>1&&l){for(i=(n=d((t+1)/s.length))>1?d((t+1)/n):t,o=d((i-s.length)/2);o>0&&0!==s[0];)s.unshift((0,u.adjust)(s[0]-l)),o--;for(;s.length<i;)s.push((0,u.adjust)(s[s.length-1]+l));e.tickInterval=l/n}e.baseTickValue=s[0],e.invertedBaseTickValue=s[s.length-1]}})})(n),function(e){var t=a(e),n=t.tickInterval;e.forEach(function(e){var i,a,s,l;e!==t&&(n&&e.tickInterval&&(e.stubData&&(0,r.isDefined)(e.synchronizedValue)&&(e.oldMinValue=e.minValue=e.baseTickValue-(t.baseTickValue-t.minValue)/n*e.tickInterval,e.oldMaxValue=e.maxValue=e.baseTickValue-(t.baseTickValue-t.maxValue)/n*e.tickInterval),i=n/o(t)/e.tickInterval*o(e),e.maxValue=e.minValue+o(e)/i),s=t.inverted&&!e.inverted||!t.inverted&&e.inverted?t.maxValue-t.invertedBaseTickValue:t.baseTickValue-t.minValue,l=o(e),a=(s/o(t)-(e.baseTickValue-e.minValue)/l)*l,e.minValue-=a,e.maxValue-=a)})}(n),s=function(e){var t,n,i=0,a=0;return e.forEach(function(e){var r=e.inverted;t=e.minValue>e.oldMinValue?(e.minValue-e.oldMinValue)/o(e):0,n=e.maxValue<e.oldMaxValue?(e.oldMaxValue-e.maxValue)/o(e):0,i=h(i,r?n:t),a=h(a,r?t:n)}),{start:i,end:a}}(n),function(e,t){e.forEach(function(e){var n=o(e),i=e.inverted;e.minValue=(0,u.adjust)(e.minValue-t[i?"end":"start"]*n),e.maxValue=(0,u.adjust)(e.maxValue+t[i?"start":"end"]*n)})}(n,s),function(e){var t,n=[];e.forEach(function(e){e.oldMaxValue-e.oldMinValue==0?n.push(e):(0,r.isDefined)(t)||(0,r.isDefined)(e.synchronizedValue)||(t=p((e.maxValue-e.minValue)/(e.tickValues[d(e.tickValues.length/2)]-e.minValue||e.maxValue)))}),(0,r.isDefined)(t)&&n.forEach(function(e){var n=e.tickValues[0],i=n*t;n>0?(e.maxValue=i,e.minValue=0):n<0&&(e.minValue=i,e.maxValue=0)})}(n),function(e){var t=!1;e.forEach(function(e){t=t||(0,r.isDefined)(e.synchronizedValue)}),e.forEach(function(e){var n,i=e.tickInterval,o=e.tickValues,a=e.maxValue,r=e.minValue;if(t&&i){for(;(n=(0,u.adjust)(o[0]-i))>=r;)o.unshift(n);for(n=o[o.length-1];(n=(0,u.adjust)(n+i))<=a;)o.push(n)}for(;o[0]+i/10<r;)o.shift();for(;o[o.length-1]-i/10>a;)o.pop()})}(n),function(e){e.forEach(function(e){if(e.minorTickInterval){for(var t=[],n=e.minorTickInterval,i=e.tickInterval/n-1,o=1;o<e.tickValues.length;o++)for(var a=e.tickValues[o-1],r=0;r<i;r++)a+=n,t.push(a);e.minorValues=t}})}(n),n.forEach(function(e){i(e,g)}),function(e){e.forEach(function(e){var t=e.axis,n=t.getTranslator().getBusinessRange();n.min===n.minVisible&&(n.min=e.minValue),n.max===n.maxVisible&&(n.max=e.maxValue),n.minVisible=e.minValue,n.maxVisible=e.maxValue,n.min>n.minVisible&&(n.min=n.minVisible),n.max<n.maxVisible&&(n.max=n.maxVisible),t.getTranslator().updateBusinessRange(n),t.setTicks({majorTicks:e.tickValues,minorTicks:e.minorValues})})}(n)}})}};e.exports=_},function(e,t,n){function i(e){return e}var o=n(1).isDefined,a=n(29).adjust,r=Math.round;e.exports={translate:function(e,t){var n,i=this,a=i._canvasOptions,s=i._categoriesToPoints[e.valueOf()],l=i.translateSpecialCase(e),u=a.startPointIndex||0,c=i._options.stick?0:.5;return o(l)?r(l):s||0===s?(n=s+c-u+.5*(t=t||0),r(i._calculateProjection(a.interval*n))):null},getInterval:function(){return this._canvasOptions.interval},getEventScale:function(e){return 1-(1-(e.deltaScale||1))/(.75+this.visibleCategories.length/this._categories.length)},zoom:function(e,t){var n,i,o,r=this,s=r._categories,l=r._canvasOptions,u=r._options.stick,c=l.invert,d=l.interval*t,h=e/d,p=(r.visibleCategories||[]).length,f=parseInt((l.startPointIndex||0)+h+.5),g=parseInt(a(l.canvasLength/d)+(u?1:0))||1;return c&&(f=parseInt((l.startPointIndex||0)+p-h+.5)-g),f<0&&(f=0),(n=f+g)>s.length&&((f=(n=s.length)-g)<0&&(f=0)),i=s.slice(parseInt(f),parseInt(n)),t=(o=r._getDiscreteInterval(i.length,l))/l.interval,e=r.translate(c?i[i.length-1]:i[0])*t-(l.startPoint+(u?0:o/2)),{min:i[0],max:i[i.length-1],translate:e,scale:t}},getMinScale:function(e){var t=this,n=t._canvasOptions,i=(t.visibleCategories||t._categories).length;return i+=(parseInt(.1*i)||1)*(e?-2:2),n.canvasLength/(Math.max(i,1)*n.interval)},getScale:function(e,t){var n=this,i=n._canvasOptions,a=n.getCanvasVisibleArea(),r=!n._options.stick&&1,s=o(e)?n.translate(e,-r):null,l=o(t)?n.translate(t,+r):null;return null===s&&(s=i.invert?a.max:a.min),null===l&&(l=i.invert?a.min:a.max),n.canvasLength/Math.abs(l-s)},isValid:function(e){return!!o(e)&&this._categoriesToPoints[e.valueOf()]>=0},getCorrectValue:i,to:function(e,t){var n=this._canvasOptions,i=this._categoriesToPoints[e.valueOf()],o=n.startPointIndex||0,a=i+(this._options.stick?0:.5)-o+(this._businessRange.invert?-1:1)*t*.5;return r(this._calculateProjection(n.interval*a))},from:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._canvasOptions,i=n.startPoint,o=this.visibleCategories||this._categories,a=o.length,s=this._options.stick?.5:0,l=r((e-i)/n.interval+s-.5-.5*t);return l>=a&&(l=a-1),l<0&&(l=0),n.invert&&(l=a-l-1),o[l]},_add:function(){return NaN},_toValue:i,isValueProlonged:!0}},function(e,t,n){var i=n(1),o=i.isNumeric,a=i.isDefined,r=n(22),s=r.addInterval,l=r.dateToMilliseconds,u=Math.floor,c=n(29).adjust;e.exports={_intervalize:function(e,t){if(a(e))return"datetime"===this._businessRange.dataType?(e=o(e)?new Date(e):new Date(e.getTime()),e=r.correctDateWithUnitBeginning(e,t)):e=c(u(c(e/t))*t,t),e},translate:function(e,t,n){var i=this,o=i.translateSpecialCase(e);return a(o)?Math.round(o):(n=n||i._options.interval,i.isValid(e,n)?i.to(e,t,n):null)},getInterval:function(){return Math.round(this._canvasOptions.ratioOfCanvasRange*(this._businessRange.interval||Math.abs(this._canvasOptions.rangeMax-this._canvasOptions.rangeMin)))},zoom:function(){},getMinScale:function(){},getScale:function(){},_parse:function(e){return"datetime"===this._businessRange.dataType?new Date(e):Number(e)},_fromValue:function(e){return this._parse(e)},_toValue:function(e){return this._parse(e)},isValid:function(e,t){var n=this,i=n._canvasOptions,a=i.rangeMin,r=i.rangeMax;return t=t||n._options.interval,!(null===e||isNaN(e)||(e="datetime"===n._businessRange.dataType&&o(e)?new Date(e):e,t!==n._options.interval&&(a=n._intervalize(a,t),r=n._intervalize(r,t)),e.valueOf()<a||e.valueOf()>=s(r,t)))},to:function(e,t,n){var i=this;n=n||i._options.interval;var o=i._intervalize(e,n),a=s(o,n),r=i._to(o),l=i._to(a);return t?t>0&&(r=l):r=u((r+l)/2),r},_to:function(e){var t=this._canvasOptions,n=t.rangeMinVisible,i=t.rangeMaxVisible,o=e-n;return e<n?o=0:e>i&&(o=s(i,this._options.interval)-n),this._conversionValue(this._calculateProjection(o*this._canvasOptions.ratioOfCanvasRange))},from:function(e,t){var n,i=this,o=i._options.interval,a=o,r=i._canvasOptions,u=r.rangeMinVisible,c=r.rangeMaxVisible;return"datetime"===i._businessRange.dataType&&(a=l(o)),n=i._calculateUnProjection((e-i._canvasOptions.startPoint)/i._canvasOptions.ratioOfCanvasRange),(n=i._intervalize(s(n,a/2,t>0),o))<u?n=u:n>c&&(n=c),n},_add:function(){return NaN},isValueProlonged:!0}},function(e,t,n){function i(e){return null!==e?new Date(e):e}e.exports={_fromValue:i,_toValue:i,_add:n(22).addDateInterval}},function(e,t,n){var i=n(11),o=n(1).isDefined,a=i.raiseTo,r=i.getLog;e.exports={_fromValue:function(e){return null!==e?r(e,this._canvasOptions.base):e},_toValue:function(e){return null!==e?a(e,this._canvasOptions.base):e},getMinBarSize:function(e){var t=this.getCanvasVisibleArea(),n=this.from(t.min+e),i=this._canvasOptions;return Math.pow(i.base,i.rangeMinVisible+this._fromValue(this.from(t.min))-this._fromValue(o(n)?n:this.from(t.max)))},checkMinBarSize:function(e,t,n){var i,a,r=this._canvasOptions,s=n-e,l=this.constructor.prototype.checkMinBarSize;return o(t)&&s>0?(i=l(this._fromValue(n/s),this._fromValue(t)-r.rangeMinVisible),a=Math.pow(r.base,this._fromValue(s)+i)-s):a=l(e,t),a}}},function(e,t,n){function i(e){return(e+1)%7}function o(e,t){for(var n=e.start,o=e.end;n!==o;){if(n===t)return!0;n=i(n)}return!1}function a(e,t){for(var n=0;e!==t;)e=i(e),n++;return n}function r(e){var t=function(e){return c.filter(function(t){return!e.some(function(e){return e===t})})}(e);if(t.length<7)for(;i(t[t.length-1])===t[0];)t.unshift(t.pop());return t}function s(e,t,n){var r=e.getDate(),s=[];return n.reduce(function(e,t){var n=e[1];return void 0===n.start?(n={start:t,end:i(t)},e[0].push(n),[e[0],n]):n.end===t?(n.end=i(t),e):(n={start:t,end:i(t)},e[0].push(n),[e[0],n])},[[],{}])[0].forEach(function(n){var i=new Date(e);for(i=u.trimTime(i);i<t;){r=i.getDay();var l=i.getDate();if(o(n,r)){var c,d=new Date(i);i.setDate(l+a(r,n.end)),c=new Date(i),s.push({from:d,to:c})}i.setDate(i.getDate()+1)}}),s}function l(e,t){var n,i=e.slice(),o=function(e){if(e=u.trimTime(new Date(e)),i[n].from<=e&&i[n].to>e){var t=function(e,t){var n=[],i=new Date(t);return i.setDate(t.getDate()+1),t>e.from&&n.push({from:e.from,to:t}),i<e.to&&n.push({from:i,to:e.to}),n}(i[n],e);2===t.length?i.splice(n,1,t[0],t[1]):1===t.length?i.splice(n,1,t[0]):i.splice(n,1)}};for(n=0;n<i.length;n++)t.forEach(o);return i}var u=n(22),c=[0,1,2,3,4,5,6];t.generateDateBreaks=function(e,t,n,i,o){var a=r(n),c=s(e,t,a);return c.push.apply(c,function(e,t,n,i){var o,a=function(e){return e===o},r=u.trimTime(e),s=u.trimTime(t);return s.setDate(t.getDate()+1),n.reduce(function(e,t){var n,l;return t=new Date(t),o=t.getDay(),!i.some(a)&&t>=r&&t<=s&&(n=u.trimTime(t),(l=new Date(n)).setDate(n.getDate()+1),e.push({from:n,to:l})),e},[])}(e,t,o||[],a)),function(e){return e.map(function(e){return{from:e.from,to:e.to,gapSize:u.convertMillisecondsToDateUnits(e.to-e.from)}})}(l(c,i||[]))}},function(e,t,n){function i(e){var t;return(e=r.normalizeAngle(e))>=315&&e<=360||e<45&&e>=0?t=1:e>=45&&e<135?t=2:e>=135&&e<225?t=3:e>=225&&e<315&&(t=4),t}var o,a,r=n(11),s=n(1).isDefined,l=n(0).extend,u=n(269),c=n(400).linear,d=n(399).tick,h=r.map,p=Math,f=p.abs,g=p.round,_=r.convertPolarToXY,m=l,v=n(4).noop,y=90;o=(a=t).circular={_calculateValueMargins:function(e){var t=this._getViewportRange(),n=t.minVisible,i=t.maxVisible;return e&&e.length>1&&(i=(n=n<e[0].value?n:e[0].value)>e[e.length-1].value?i:e[e.length-1].value),{minValue:n,maxValue:i}},applyMargins:function(){var e=this._calculateValueMargins(this._majorTicks),t=this._translator.getBusinessRange();t.addRange({minVisible:e.minValue,maxVisible:e.maxValue,interval:this._calculateRangeInterval(t.interval)}),this._translator.updateBusinessRange(t)},_getTranslatorOptions:function(){return{isHorizontal:!0,conversionValue:!0,addSpiderCategory:this._getSpiderCategoryOption(),stick:this._getStick()}},getCenter:function(){return this._center},getRadius:function(){return this._radius},getAngles:function(){var e=this._options;return[e.startAngle,e.endAngle]},_updateRadius:function(e){var t=Math.min(e.width-e.left-e.right,e.height-e.top-e.bottom)/2;this._radius=t<0?0:t},_updateCenter:function(e){this._center={x:e.left+(e.width-e.right-e.left)/2,y:e.top+(e.height-e.top-e.bottom)/2}},_processCanvas:function(e){return this._updateRadius(e),this._updateCenter(e),{left:0,right:0,width:this._getScreenDelta()}},_createAxisElement:function(){return this._renderer.circle()},_updateAxisElementPosition:function(){var e=this.getCenter();this._axisElement.attr({cx:e.x,cy:e.y,r:this.getRadius()})},_boundaryTicksVisibility:{min:!0},_getSpiderCategoryOption:function(){return this._options.firstPointOnStartAngle},_validateOptions:function(e){var t=e.originValue,n=e.wholeRange={},i=e.period;s(t)&&(t=this.validateUnit(t)),i>0&&e.argumentType===u.numeric&&(t=t||0,n.endValue=t+i,this._viewport=r.getVizRangeObject([t,n.endValue])),s(t)&&(n.startValue=t)},_setVisualRange:v,allowToExtendVisualRange:function(e){return!0},_getStick:function(){return this._options.firstPointOnStartAngle||this._options.type!==u.discrete},_getTranslatedCoord:function(e,t){return this._translator.translate(e,t)-y},_getCanvasStartEnd:function(){return{start:-90,end:270}},_getStripGraphicAttributes:function(e,t){var n=this.getCenter(),i=this.getAngles()[0],o=this.getRadius();return{x:n.x,y:n.y,innerRadius:0,outerRadius:o,startAngle:-t-i,endAngle:-e-i}},_createStrip:function(e){return this._renderer.arc(e.x,e.y,e.innerRadius,e.outerRadius,e.startAngle,e.endAngle)},_getStripLabelCoords:function(e,t){var n=this,i=n._getStripGraphicAttributes(e,t),o=i.startAngle+(i.endAngle-i.startAngle)/2,a=r.getCosAndSin(o),s=n.getRadius()/2,l=n.getCenter();return{x:g(l.x+s*a.cos),y:g(l.y-s*a.sin),align:u.center}},_getConstantLineGraphicAttributes:function(e){var t=this.getCenter(),n=this.getRadius();return{points:[t.x,t.y,t.x+n,t.y]}},_createConstantLine:function(e,t){var n=this.getCenter();return this._createPathElement(this._getConstantLineGraphicAttributes(e).points,t).rotate(e+this.getAngles()[0],n.x,n.y)},_getConstantLineLabelsCoords:function(e){var t=this,n=r.getCosAndSin(-e-t.getAngles()[0]),i=t.getRadius()/2,o=t.getCenter();return{x:g(o.x+i*n.cos),y:g(o.y-i*n.sin)}},_checkAlignmentConstantLineLabels:v,_adjustDivisionFactor:function(e){return 180*e/(this.getRadius()*Math.PI)},_getScreenDelta:function(){var e=this.getAngles();return p.abs(e[0]-e[1])},_getTickMarkPoints:function(e,t,n){var i=n.shift,o=void 0===i?0:i,a=this.getCenter(),r=this.getRadius()+t*{inside:-1,center:-.5,outside:0}[this._options.tickOrientation||"center"];return[a.x+r+o,a.y,a.x+r+t+o,a.y]},_getLabelAdjustedCoord:function(e){var t=e.labelCoords,n=t.y,o=t.angle,a=r.getCosAndSin(o),s=a.cos,l=a.sin,u=e.labelBBox,c=u.width/2,d=u.height/2,h=this._options.label.indentFromAxis||0,p=t.x+h*s,f=n+(n-u.y-d)+h*l;switch(i(o)){case 1:p+=c,f+=d*l;break;case 2:p+=c*s,f+=d;break;case 3:p+=-c,f+=d*l;break;case 4:p+=c*s,f+=-d}return{x:p,y:f}},_getGridLineDrawer:function(){var e=this;return function(t,n){var i=e.getCenter();return e._createPathElement(e._getGridPoints().points,n).rotate(t.coords.angle,i.x,i.y)}},_getGridPoints:function(){var e=this.getRadius(),t=this.getCenter();return{points:[t.x,t.y,t.x+e,t.y]}},_getTranslatedValue:function(e,t){var n=this.getAngles()[0],i=this._translator.translate(e,-t),o=_(this.getCenter(),n,i,this.getRadius());return{x:o.x,y:o.y,angle:i+n-y}},_getAdjustedStripLabelCoords:function(e){var t=e.labelBBox;return{translateY:e.label.attr("y")-t.y-t.height/2}},coordsIn:function(e,t){return r.convertXYToPolar(this.getCenter(),e,t).r>this.getRadius()},_rotateTick:function(e,t){var n=this.getCenter();e.rotate(t.angle,n.x,n.y)},_validateOverlappingMode:function(e){return u.validateOverlappingMode(e)},_validateDisplayMode:function(){return"standard"},_getStep:function(e){var t=this,n=t.getRadius()+(t._options.label.indentFromAxis||0),i=e.reduce(function(e,t){var n=e;return e.width<t.width&&(n.width=t.width),e.height<t.height&&(n.height=t.height),n},{width:0,height:0}),o=f(2*p.atan(i.height/(2*n-i.width))*180/p.PI),a=f(2*p.atan(i.width/(2*n-i.height))*180/p.PI);return u.getTicksCountInRange(t._majorTicks,"angle",p.max(o,a))},_checkBoundedLabelsOverlapping:function(e,t,n){var i=p.floor((n.length-1)/e)*e,o=this._options.label;i&&u.areLabelsOverlap(n[0],n[i],o.minSpacing,u.center)&&("first"===o.hideFirstOrLast?t[0].label.remove():t[i].label.remove())},shift:function(e){this._axisGroup.attr({translateX:e.right,translateY:e.bottom})}},a.circularSpider=m({},o,{_createAxisElement:function(){return this._renderer.path([],"area")},_updateAxisElementPosition:function(){this._axisElement.attr({points:h(this.getSpiderTicks(),function(e){return{x:e.coords.x,y:e.coords.y}})})},_getStick:function(){return!0},_getSpiderCategoryOption:function(){return!0},getSpiderTicks:function(){var e=this,t=e.getFullTicks();return e._spiderTicks=t.map(d(e,e.renderer,{},{},e._getSkippedCategory(t),!0)),e._spiderTicks.forEach(function(e){e.initCoords()}),e._spiderTicks},_getStripGraphicAttributes:function(e,t){for(var n,i,o,a,r=this.getCenter(),s=this.getSpiderTicks(),l=[],u=0,c=s.length;u<c;)(a=s[u].coords).angle>=e&&a.angle<=t&&(n||(n=(s[u-1]||s[s.length-1]).coords,l.push((a.x+n.x)/2,(a.y+n.y)/2)),l.push(a.x,a.y),o=(s[u+1]||s[0]).coords,i={x:(a.x+o.x)/2,y:(a.y+o.y)/2}),u++;return l.push(i.x,i.y),l.push(r.x,r.y),{points:l}},_createStrip:function(e){var t=e.points;return this._renderer.path(t,"area")},_getTranslatedCoord:function(e,t){return this._translator.translate(e,t)-y},_setTickOffset:function(){this._tickOffset=!1}}),a.linear={applyMargins:o.applyMargins,_resetMargins:function(){this._reinitTranslator(this._getViewportRange())},_setVisualRange:v,_getStick:c._getStick,_getSpiderCategoryOption:v,_getTranslatorOptions:function(){return{isHorizontal:!0,stick:this._getStick()}},_updateRadius:o._updateRadius,getRadius:o.getRadius,getCenter:o.getCenter,getAngles:o.getAngles,_updateCenter:o._updateCenter,_processCanvas:function(e){return this._updateRadius(e),this._updateCenter(e),{left:0,right:0,width:this.getRadius()}},_createAxisElement:c._createAxisElement,_updateAxisElementPosition:function(){var e=this.getCenter();this._axisElement.attr({points:[e.x,e.y,e.x+this.getRadius(),e.y]}).rotate(this.getAngles()[0]-y,e.x,e.y)},_getScreenDelta:function(){return this.getRadius()},_getTickMarkPoints:function(e,t){return[e.x-t/2,e.y,e.x+t/2,e.y]},_getLabelAdjustedCoord:function(e){var t=e.labelCoords,n=t.y,i=r.getCosAndSin(t.angle),o=this._options.label.indentFromAxis||0,a=e.labelBBox;return{x:t.x-f(o*i.sin)+f(a.width/2*i.cos)-a.width/2,y:n+(n-a.y)-f(a.height/2*i.sin)+f(o*i.cos)}},_getGridLineDrawer:function(){var e=this;return function(t,n){var i=e._getGridPoints(t.coords);return e._renderer.circle(i.cx,i.cy,i.r).attr(n).sharp()}},_getGridPoints:function(e){var t=this.getCenter();return{cx:t.x,cy:t.y,r:r.getDistance(t.x,t.y,e.x,e.y)}},_getTranslatedValue:function(e,t){var n=this.getAngles()[0],i=_(this.getCenter(),n,0,this._translator.translate(e,t));return{x:i.x,y:i.y,angle:n-y}},_getTranslatedCoord:function(e,t){return this._translator.translate(e,t)},_getCanvasStartEnd:function(){return{start:0,end:this.getRadius()}},_getStripGraphicAttributes:function(e,t){var n=this.getCenter();return{x:n.x,y:n.y,innerRadius:e,outerRadius:t}},_createStrip:function(e){return this._renderer.arc(e.x,e.y,e.innerRadius,e.outerRadius,0,360)},_getAdjustedStripLabelCoords:o._getAdjustedStripLabelCoords,_getStripLabelCoords:function(e,t){var n=e+(t-e)/2,i=this.getCenter(),o=g(i.y-n);return{x:i.x,y:o,align:u.center}},_getConstantLineGraphicAttributes:function(e){var t=this.getCenter();return{cx:t.x,cy:t.y,r:e}},_createConstantLine:function(e,t){var n=this._getConstantLineGraphicAttributes(e);return this._renderer.circle(n.cx,n.cy,n.r).attr(t).sharp()},_getConstantLineLabelsCoords:function(e){var t=this.getCenter(),n=g(t.y-e);return{x:t.x,y:n}},_checkAlignmentConstantLineLabels:v,_rotateTick:function(e,t,n){!n&&e.rotate(t.angle+y,t.x,t.y)},_validateOverlappingMode:o._validateOverlappingMode,_validateDisplayMode:o._validateDisplayMode,_getStep:function(e){var t=i(this.getAngles()[0]),n=this._options.label.minSpacing,o=2===t||4===t?function(e){return e.width+n}:function(e){return e.height},a=e.reduce(function(e,t){return p.max(e,o(t))},0);return u.getTicksCountInRange(this._majorTicks,2===t||4===t?"x":"y",a)}},a.linearSpider=m({},a.linear,{_createPathElement:function(e,t){return this._renderer.path(e,"area").attr(t).sharp()},setSpiderTicks:function(e){this._spiderTicks=e},_getGridLineDrawer:function(){var e=this;return function(t,n,i){return e._createPathElement(e._getGridPoints(t.coords).points,n)}},_getGridPoints:function(e){var t=this.getCenter(),n=r.getDistance(t.x,t.y,e.x,e.y);return this._getGridPointsByRadius(n)},_getGridPointsByRadius:function(e){var t=this.getCenter();return{points:h(this._spiderTicks,function(n){var i=r.getCosAndSin(n.coords.angle);return{x:g(t.x+e*i.cos),y:g(t.y+e*i.sin)}})}},_getStripGraphicAttributes:function(e,t){var n=this._getGridPointsByRadius(t).points;return{points:[this._getGridPointsByRadius(e).points,n.reverse()]}},_createStrip:a.circularSpider._createStrip,_getConstantLineGraphicAttributes:function(e){return this._getGridPointsByRadius(e)},_createConstantLine:function(e,t){return this._createPathElement(this._getConstantLineGraphicAttributes(e).points,t)}})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=t.label||{},o=n.position||"inside",a=void 0,r=!1;e._checkAlignmentConstantLineLabels(n);var s=void 0;return{options:t,labelOptions:n,labelPosition:o,label:null,line:null,getParsedValue:function(){return r?a:(a=e.validateUnit(t.value,"E2105","constantLine"),r=!0,a)},draw:function(){if(!(0,i.isDefined)(t.value)||e._translator.getBusinessRange().isEmpty())return this;var a=e._getCanvasStartEnd(),r=this.getParsedValue();this.coord=e._getConstantLinePos(r,a.start,a.end);var s=t.displayBehindSeries?e._axisConstantLineGroups.under:e._axisConstantLineGroups.above,l=s[o];if(l||(l=s[e._isHorizontal?n.verticalAlignment:n.horizontalAlignment]),!(0,i.isDefined)(this.coord))return this;var u=e._createConstantLine(this.coord,{stroke:t.color,"stroke-width":t.width,dashStyle:t.dashStyle});return this.line=u.append(s.inside),this.label=n.visible?e._drawConstantLineLabels(r,n,this.coord,l):null,this.updatePosition(),this},removeLabel:function(){this.label&&this.label.remove()},updatePosition:function(t){var n=e._getCanvasStartEnd(),o=e._getConstantLinePos(this.getParsedValue(),n.start,n.end);(0,i.isDefined)(o)&&(this.coord=o,t&&s?(this.label&&this.label.attr(e._getConstantLineLabelsCoords(s,this.labelOptions)),this.line&&this.line.attr(e._getConstantLineGraphicAttributes(s)),this.label&&this.label.animate(e._getConstantLineLabelsCoords(this.coord,this.labelOptions)),this.line&&this.line.animate(e._getConstantLineGraphicAttributes(this.coord))):(this.label&&this.label.attr(e._getConstantLineLabelsCoords(this.coord,this.labelOptions)),this.line&&this.line.attr(e._getConstantLineGraphicAttributes(this.coord))))},saveCoords:function(){s=this.coord}}};var i=n(1)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=void 0,r=t.label||{};return{options:t,label:null,rect:null,_getCoord:function(){var n=e._getCanvasStartEnd(),i=e._translator.getBusinessRange();return e._getStripPos(t.startValue,t.endValue,n.start,n.end,i)},_drawLabel:function(t){return e._renderer.text(r.text,t.x,t.y).css((0,o.patchFontOptions)((0,a.extend)({},e.getOptions().label.font,r.font))).attr({align:"center"}).append(e._axisStripLabelGroup)},draw:function(){if(!e._translator.getBusinessRange().isEmpty()&&((0,i.isDefined)(t.startValue)||(0,i.isDefined)(t.endValue))&&(0,i.isDefined)(t.color)){var n=this._getCoord();if(this.labelCoords=r.text?e._getStripLabelCoords(n.from,n.to,r):null,n.to-n.from==0||!(0,i.isDefined)(n.to)||!(0,i.isDefined)(n.from))return;this.rect=e._createStrip(e._getStripGraphicAttributes(n.from,n.to)).attr({fill:t.color}).append(e._axisStripGroup),this.label=r.text?this._drawLabel(this.labelCoords):null}},removeLabel:function(){},updatePosition:function(i){var o=this._getCoord();i&&n?(this.label&&this.label.attr(e._getStripLabelCoords(n.from,n.to,t.label)),this.rect&&this.rect.attr(e._getStripGraphicAttributes(n.from,n.to)),this.label&&this.label.animate(e._getStripLabelCoords(o.from,o.to,t.label)),this.rect&&this.rect.animate(e._getStripGraphicAttributes(o.from,o.to))):(this.label&&this.label.attr(e._getStripLabelCoords(o.from,o.to,t.label)),this.rect&&this.rect.attr(e._getStripGraphicAttributes(o.from,o.to)))},saveCoords:function(){n=this._getCoord()}}};var i=n(1),o=n(11),a=n(0)},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var o=i(n(5)),a=i(n(9)),r=n(0),s=i(n(270)),l=n(1),u=n(4),c=i(n(55)),d=Math.min,h=Math.max,p=function(e,t){this._translator=new s.default.Translator2D({},{},{}),this._scroll=e.rect().append(t),this._addEvents()};p.prototype={_addEvents:function(){var e=this,t=this._scroll.element;o.default.on(t,c.default.start,function(e){a.default.fireEvent({type:"dxc-scroll-start",originalEvent:e,target:t})}),o.default.on(t,c.default.move,function(n){var i=-n.offset.x*e._scale,o=-n.offset.y*e._scale,r=e._offset-(e._layoutOptions.vertical?o:i)/e._scale;e._applyPosition(r,r+e._translator.canvasLength/e._scale),a.default.fireEvent({type:"dxc-scroll-move",originalEvent:n,target:t,offset:{x:i,y:o}})}),o.default.on(t,c.default.end,function(n){a.default.fireEvent({type:"dxc-scroll-end",originalEvent:n,target:t,offset:{x:-n.offset.x*e._scale,y:-n.offset.y*e._scale}})})},update:function(e){var t=this,n=e.position,i=e.rotated,o=i?"right":"top";return n!==o&&n!==(i?"left":"bottom")&&(n=o),t._scroll.attr({rotate:e.rotated?0:-90,rotateX:0,rotateY:0,fill:e.color,width:e.width,opacity:e.opacity}),t._layoutOptions={width:e.width,offset:e.offset,vertical:i,position:n},t},init:function(e,t){var n=this,i="discrete"===e.axisType;return n._translateWithOffset=i&&!t?1:0,n._translator.update((0,r.extend)({},e,{minVisible:null,maxVisible:null,visibleCategories:null},i&&{min:null,max:null}||{}),n._canvas,{isHorizontal:!n._layoutOptions.vertical,stick:t}),n},getOptions:function(){return this._layoutOptions},setPane:function(e){var t,n=this._layoutOptions.position;return t="left"===n||"top"===n?e[0]:e[e.length-1],this.pane=t.name,this},updateSize:function(e){this._canvas=(0,r.extend)({},e);var t=this._layoutOptions,n=t.position,i=t.offset,o=t.width;this._scroll.attr({translateX:function(e,t,n,i){var o=0;return"right"===t?o=e.width-e.right+n:"left"===t&&(o=e.left-n-i),o}(e,n,i,o),translateY:function(e,t,n,i){var o=0;return"top"===t?o=e.top-n:"bottom"===t&&(o=e.height-e.bottom+i+n),o}(e,n,i,o)})},getMultipleAxesSpacing:function(){return 0},estimateMargins:function(){return this.getMargins()},getMargins:function(){var e=this._layoutOptions,t={left:0,top:0,right:0,bottom:0};return t[e.position]=e.width+e.offset,t},draw:u.noop,shift:u.noop,hideTitle:u.noop,hideOuterElements:u.noop,prepareAnimation:u.noop,setPosition:function(e,t){var n=this,i=n._translator,o=(0,l.isDefined)(e)?i.translate(e,-n._translateWithOffset):i.translate("canvas_position_start"),a=(0,l.isDefined)(t)?i.translate(t,n._translateWithOffset):i.translate("canvas_position_end");n._offset=d(o,a),n._scale=i.getScale(e,t),n._applyPosition(d(o,a),h(o,a))},dispose:function(){this._scroll.dispose(),this._scroll=this._translator=null},_applyPosition:function(e,t){var n,i=this._translator.getCanvasVisibleArea();e=h(e,i.min),e=d(e,i.max),t=d(t,i.max),t=h(t,i.min),n=Math.abs(t-e),this._scroll.attr({y:e,height:n<2?2:n})}},t.ScrollBar=p},function(e,t,n){function i(e,t,n,i){var o=Math.floor(n?i.pageY-e.top:i.pageX-e.left),a=n?t.y1:t.x1,r=n?t.y2:t.x2;return o<a?o=a:o>r&&(o=r),o}function o(e){return function(t){var n=e.getRootOffset(),o=e.getCanvas();return function(e,t,n){var i=n.pageX-e.left,o=n.pageY-e.top;return i>=t.x1&&i<=t.x2&&o>=t.y1&&o<=t.y2}(n,o,t)?(e.rootOffset=n,e.canvas=o,e.startCoord=i(n,o,e.rotated,t),e.triggerStart(),void e.rect.attr({x:o.x1,y:o.y1,width:o.width,height:o.height}).append(e.root)):void(t.cancel=!0)}}function a(e){return function(t){var n=i(e.rootOffset,e.canvas,e.rotated,t),o={};e.curCoord=n,o[e.rotated?"y":"x"]=Math.min(e.startCoord,n),o[e.rotated?"height":"width"]=Math.abs(e.startCoord-n),e.rect.attr(o)}}var r=n(55),s=".shutter-zoom",l=r.start+s,u=r.move+s,c=r.end+s;e.exports={name:"shutter_zoom",init:function(){var e=this.option("shutterZoom")||{};e.enabled&&(this._shutterZoom=function(e){var t=e.chart,n=e.renderer,i=e.rotated,r=n.rect(0,0,0,0).attr(e.shutterOptions),d={rect:r,root:n.root,rotated:i,triggerStart:function(){t._eventTrigger("zoomStart")},triggerEnd:function(){var e=t._argumentAxes[0].getTranslator(),n=Math.min(this.startCoord,this.curCoord),i=Math.max(this.startCoord,this.curCoord);t._eventTrigger("zoomEnd",{rangeStart:e.from(n),rangeEnd:e.from(i)})},dispose:function(){n.root.off(s),r.dispose()},getRootOffset:function(){return n.getRootOffset()},getCanvas:function(){var e=t._canvas,n=t.panes,i=n[0].canvas,o=n[n.length-1].canvas;return{x1:i.left,y1:i.top,x2:e.width-o.right,y2:e.height-o.bottom,width:e.width-i.left-o.right,height:e.height-i.top-o.bottom}}};return n.root.off(s).on(l,{direction:i?"vertical":"horizontal",immediate:!0},o(d)).on(u,a(d)).on(c,function(e){return function(t){e.triggerEnd(),e.rect.remove()}}(d)),d}({chart:this,renderer:this._renderer,rotated:this.option("rotated"),shutterOptions:e}))},dispose:function(){this._shutterZoom&&this._shutterZoom.dispose()}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return{x:e.left,y:e.top,width:e.width-e.left-e.right,height:e.height-e.top-e.bottom}}function a(e,t){var n=t.x,i=t.y;return n>=e.x&&n<=e.width+e.x&&i>=e.y&&i<=e.height+e.y}function r(e,t){return t&&(e=e.sort(function(e,n){return e===t?-1:n===t?1:0})),e}function s(e){return!e.getTranslator().getBusinessRange().isEmpty()}var l=n(1),u=n(0),c=n(11),d=n(127),h=i(n(281)),p=i(n(55)),f=".zoomAndPanNS",g=p.default.start+f,_=p.default.move+f,m=p.default.end+f,v=h.default.pinchstart+f,y=h.default.pinch+f,b=h.default.pinchend+f,x="dxc-scroll-start"+f,w=300,C=Math.min,k=Math.max,S=Math.abs;e.exports={name:"zoom_and_pan",init:function(){function e(t){t.originalEvent&&e(t.originalEvent);try{t.cancel=!0}catch(e){return}}function t(t,n,i){var o=t.options,a=t.actionData,r=[];o.argumentAxis[n]&&r.push(A.getArgumentAxis()),o.valueAxis[n]&&(r=r.concat(a.valueAxes)),r.reduce(function(e,t){return e||(s(t)?t.handleZooming(null,{end:!0},i,n).isPrevented:e)},!1)&&e(i)}function n(e,t,n,i,o){function a(e,n,o,a,r){var d={zoomed:!1};return n&&e.filter(s).forEach(function(e){var n=e.getOptions(),s=e.visualRange(),h=e.getTranslator().getEventScale(a),p=-i(a,r,o,h);d=(0,u.extend)(!0,d,e.getTranslator().zoom(p,h,e.getZoomBounds()));var f=e.adjustRange((0,c.getVizRangeObject)([d.min,d.max])),g=e.isZoomingLowerLimitOvercome(t,h,f);if((0,l.isDefined)(s)&&s.startValue.valueOf()===f.startValue.valueOf()&&s.endValue.valueOf()===f.endValue.valueOf()){if("touch"===a.pointerType&&"discrete"===n.type){var _=e.isExtremePosition(!1),m=e.isExtremePosition(!0),v=h>1&&!g,y=h<1&&(!_||!m),b=1===h&&!(_&&(p<0&&!n.inverted||p>0&&n.inverted)||m&&(p>0&&!n.inverted||p<0&&n.inverted));d.enabled=v||y||b}}else e.handleZooming(g?null:f,{start:!0,end:!0},a,t),g||(d.zoomed=!0,d.deltaTranslate=p-d.translate)}),d}function r(e,t,n,i){n.zoomed&&(t.offset[i]=(e.offset?e.offset[i]:t.offset[i])+n.deltaTranslate)}function d(e,t,n,i){n.zoomed&&(t.center[i]=e[i]+n.deltaTranslate)}var h=A.option("rotated"),p=e.actionData,f=e.options,g={},_={};p.fallback||(g=a(A._argumentAxes,f.argumentAxis[t],h?"y":"x",n,p),_=a(p.valueAxes,f.valueAxis[t],h?"x":"y",n,p),A._requestChange(["VISUAL_RANGE"]),r(n,p,g,h?"y":"x"),r(n,p,_,h?"x":"y"));var m=o(n);return d(m,p,g,h?"y":"x"),d(m,p,_,h?"x":"y"),g.zoomed||_.zoomed||(p.center=m),g.zoomed||_.zoomed||p.fallback||g.enabled||_.enabled}function i(e,t,n,i){function o(e,n,o,a,r,s){var l=!1;return n&&e.forEach(function(e){var n=s&&e!==s,u=a.scale||1,c=e.getTranslator().zoom(-i(a,r,o,u),u,e.getZoomBounds()),d={startValue:c.min,endValue:c.max},h=e.isZoomingLowerLimitOvercome(t,u,d);e.handleZooming(h?null:d,{start:!0,end:n},a,t),h?e.handleZoomEnd():l=!0}),l}var a=A.option("rotated"),r=e.actionData,l=e.options,u=!0;if(r.fallback)u&=o(A._argumentAxes,l.argumentAxis[t],a?"y":"x",n,r,A.getArgumentAxis()),u|=o(r.valueAxes,l.valueAxis[t],a?"x":"y",n,r);else{var c=[];l.argumentAxis[t]&&c.push(A.getArgumentAxis()),l.valueAxis[t]&&(c=c.concat(r.valueAxes)),c.filter(s).forEach(function(e){e.handleZooming(null,{start:!0},n,t)}),u=u&&c.length}u&&A._requestChange(["VISUAL_RANGE"])}function h(e,t){var n=A._argumentAxes.filter(function(t){return a(o(t.getCanvas()),e)});return{fallback:A._lastRenderingTime>w,cancel:!n.length||!(0,l.isDefined)(t),action:t,curAxisRect:n.length&&o(n[0].getCanvas()),valueAxes:n.length&&A._valueAxes.filter(function(t){return a(o(t.getCanvas()),e)}),offset:{x:0,y:0},center:e,startCenter:e}}function p(e,t){var n=O.getRootOffset();return{x:C(k(t.pageX-n.left,e.x),e.width+e.x),y:C(k(t.pageY-n.top,e.y),e.height+e.y)}}function I(e){var t=O.getRootOffset(),n=e.pointers[0].pageX,i=e.pointers[1].pageX,o=e.pointers[0].pageY,a=e.pointers[1].pageY;return{x:C(n,i)+S(i-n)/2-t.left,y:C(o,a)+S(a-o)/2-t.top}}function T(e){var t=O.getRootOffset();return{x:e.pageX-t.left,y:e.pageY-t.top}}function D(e,t,n){return e.offset[n]-t.offset[n]}function E(e){e.preventDefault(),e.stopPropagation(),A._stopCurrentHandling()}var A=this,O=this._renderer,P={dragStartHandler:function(e){var n=P.options,i="touch"===e.pointerType,o=n.argumentAxis.pan||n.valueAxis.pan,a=n.argumentAxis.zoom||n.valueAxis.zoom,r=(0,l.isDefined)(n.panKey)&&e[(0,c.normalizeEnum)(n.panKey)+"Key"],s=n.dragToZoom,u=void 0;i?n.allowTouchGestures&&o&&(u=!P.panningVisualRangeEnabled()||P.skipEvent?null:"pan"):s&&o&&r?u="pan":!s&&o?u="pan":s&&a&&(u="zoom");var d=h(T(e),u);return d.cancel?(P.skipEvent=!1,void(e.cancel=!0)):(P.actionData=d,E(e),void("zoom"===u?(d.startCoords=p(d.curAxisRect,e),d.rect=O.rect(0,0,0,0).attr(n.dragBoxStyle).append(O.root)):t(P,"pan",e)))},dragHandler:function(t){var i=A.option("rotated"),o=P.options,a=P.actionData,r="touch"===t.pointerType;if(a&&(!r||P.panningVisualRangeEnabled()))if("zoom"===a.action){E(t);var s=a.curAxisRect,l=a.startCoords,u=p(s,t),c=o.argumentAxis.zoom,d=o.valueAxis.zoom,h={x:C(l.x,u.x),y:C(l.y,u.y),width:S(l.x-u.x),height:S(l.y-u.y)};c&&d||(!c&&!i||!d&&i?(h.x=s.x,h.width=s.width):(h.y=s.y,h.height=s.height)),a.rect.attr(h)}else if("pan"===a.action){var f=n(P,"pan",t,D,function(e){return e.offset});r?(P.defineTouchBehavior(!f,t),!f&&P.panningVisualRangeEnabled()&&(e(t),P.skipEvent=!0,P.actionData=null)):E(t)}},dragEndHandler:function(e){var t=A.option("rotated"),n=P.options,o=P.actionData,a="touch"===e.pointerType;if(o&&(!a||P.panningVisualRangeEnabled())){if((!a||!P.actionData.isNative)&&E(e),"zoom"===o.action){var s=function(t,n,i,a,s,l){t=r(t,l);var u=s[i],c=a[i],d=!1;return n&&S(u-c)>5&&t.some(function(t){var n=t.getTranslator();if(!n.getBusinessRange().isEmpty()){var i=l&&t!==l,a=[n.from(c),n.from(u)],r=t.isZoomingLowerLimitOvercome(o.action,n.getMinScale(!0),a),s=t.handleZooming(r?null:a,{start:!!i,end:!!i},e,o.action);return r?t.handleZoomEnd():d=!0,l&&s.isPrevented}}),d},l=p(o.curAxisRect,e),u=s(A._argumentAxes,n.argumentAxis.zoom,t?"y":"x",o.startCoords,l,A.getArgumentAxis());(s(o.valueAxes,n.valueAxis.zoom,t?"x":"y",o.startCoords,l)||u)&&A._requestChange(["VISUAL_RANGE"]),o.rect.dispose()}else"pan"===o.action&&i(P,"pan",e,D);P.actionData=null}},pinchStartHandler:function(n){E(n);var i=h(I(n),"zoom");return i.isNative=!P.panningVisualRangeEnabled(),i.cancel?void e(n):(P.actionData=i,void t(P,"zoom",n))},pinchHandler:function(e){if(P.actionData&&P.actionData.isNative&&e.deltaScale<=1&&(P.defineTouchBehavior(!0,e),P.actionData=null),P.actionData){var t=n(P,"zoom",e,function(e,t,n,i){return I(e)[n]-t.center[n]+(t.center[n]-t.center[n]*i)},I);P.defineTouchBehavior(!t,e)}},pinchEndHandler:function(e){P.actionData&&(!P.actionData.isNative&&E(e),i(P,"zoom",e,function(e,t,n,i){return t.center[n]-t.startCenter[n]+(t.startCenter[n]-t.startCenter[n]*i)}),P.actionData=null)},cleanup:function(){O.root.off(f),P.actionData&&P.actionData.rect&&P.actionData.rect.dispose(),P.actionData=null,O.root.css({"touch-action":"","-ms-touch-action":""})},setup:function(s){if(P.cleanup(),s.argumentAxis.pan||O.root.on(x,e),!s.argumentAxis.none||!s.valueAxis.none){P.options=s;var l=A.option("rotated");(s.argumentAxis.zoom||s.valueAxis.zoom)&&s.allowMouseWheel&&O.root.on(d.name+f,function(e){function t(t,n,i,o){t=r(t,o);var a=!1;return t.some(function(t){var r=t.getTranslator();if(!r.getBusinessRange().isEmpty()){var s=o&&t!==o,l=r.getMinScale(i>0),u=r.zoom(-(n-n*l),l,t.getZoomBounds()),c={startValue:u.min,endValue:u.max},d=t.isZoomingLowerLimitOvercome("zoom",l,c),h=t.handleZooming(d?null:c,{start:!!s,end:!!s},e,"zoom");return d?t.handleZoomEnd():a=!0,o&&h.isPrevented}}),!!a}var n=T(e),i=!1,u=void 0;if(s.valueAxis.zoom){if(0===(u=A._valueAxes.filter(function(e){return a(o(e.getCanvas()),n)})).length){var c=A._valueAxes.reduce(function(e,t){return!e&&t.coordsIn(n.x,n.y)&&(e=t.getCanvas()),e},null);c&&(u=A._valueAxes.filter(function(e){return a(o(e.getCanvas()),{x:c.left,y:c.top})}))}i|=t(u,l?n.x:n.y,e.delta)}s.argumentAxis.zoom&&(i|=A._argumentAxes.some(function(e){return!(!a(o(e.getCanvas()),n)&&!e.coordsIn(n.x,n.y))})&&t(A._argumentAxes,l?n.y:n.x,e.delta,A.getArgumentAxis()));i&&(A._requestChange(["VISUAL_RANGE"]),P.panningVisualRangeEnabled(u)&&E(e))}),s.allowTouchGestures&&((s.argumentAxis.zoom||s.valueAxis.zoom)&&O.root.on(v,{immediate:!0},P.pinchStartHandler).on(y,P.pinchHandler).on(b,P.pinchEndHandler),P.setTouchAction(!1)),O.root.on(g,{immediate:!0},P.dragStartHandler).on(_,P.dragHandler).on(m,P.dragEndHandler),s.argumentAxis.pan&&O.root.on(x,function(e){P.actionData={valueAxes:[],offset:{x:0,y:0},center:{x:0,y:0}},E(e),t(P,"pan",e)}).on("dxc-scroll-move.zoomAndPanNS",function(e){E(e),n(P,"pan",e,D,function(e){return e.offset})}).on("dxc-scroll-end.zoomAndPanNS",function(e){E(e),i(P,"pan",e,D),P.actionData=null})}},defineTouchBehavior:function(e,t){P.setTouchAction(e),P.actionData&&(P.actionData.isNative=e),e||E(t)},setTouchAction:function(e){var t=P.options;if(t.allowTouchGestures){var n=e?"":"none";e||(t.argumentAxis.zoom||t.valueAxis.zoom||(n="pinch-zoom"),t.argumentAxis.pan||t.valueAxis.pan||(n="pan-x pan-y")),O.root.css({"touch-action":n,"-ms-touch-action":n})}},panningVisualRangeEnabled:function(e){if(e&&e.length)return e.some(function(e){return!e.isExtremePosition(!1)||!e.isExtremePosition(!0)});var t=A._valueAxes.some(function(e){return!e.isExtremePosition(!1)||!e.isExtremePosition(!0)}),n=A._argumentAxes.some(function(e){return!e.isExtremePosition(!1)||!e.isExtremePosition(!0)});return t||n}};this._zoomAndPan=P},members:{_setupZoomAndPan:function(){this._zoomAndPan.setup(this._themeManager.getOptions("zoomAndPan"))}},dispose:function(){this._zoomAndPan.cleanup()},customize:function(e){e.addChange({code:"ZOOM_AND_PAN",handler:function(){this._setupZoomAndPan()},isThemeDependent:!0,isOptionChange:!0,option:"zoomAndPan"})}}},function(e,t,n){function i(e,t,n){return"a "+e+" "+e+" 0 0 1 "+t*e+" "+n*e}function o(e,t,n){return"A "+e+" "+e+" 0 0 1 "+t+" "+n}Object.defineProperty(t,"__esModule",{value:!0}),t.Plaque=void 0;var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(0),s=n(1),l=Math,u=l.round,c=l.max,d=l.min,h=l.sin,p=l.cos,f=l.asin,g=l.PI,_=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.join("")};t.Plaque=function(){function e(t,n,i,o){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.widget=n,this.options=t,this.root=i,this.renderContent=o}return a(e,[{key:"draw",value:function(e){var t=e.x,n=e.y,i=e.canvas,o=void 0===i?{}:i,a=this.widget._renderer,l=this.options,h=l.x,p=l.y,f=o.left,g=o.width-o.right,_=o.width-o.right-o.left,m=o.top,v=o.height-o.bottom,y=o.height-o.bottom-o.top;if(((0,s.isDefined)(t)&&(0,s.isDefined)(n)||(0,s.isDefined)(h)&&(0,s.isDefined)(p))&&(!(0,s.isDefined)(t)||!(t<f||g<t||n<m||v<n))){var b=(0,r.extend)({x:"-50%",y:"-50%",width:"200%",height:"200%"},l.shadow),x=a.shadowFilter().attr(b),w={opacity:l.opacity,"stroke-width":0,fill:l.color},C=l.border||{};C.visible&&(0,r.extend)(w,{"stroke-width":C.width,stroke:C.color,"stroke-opacity":C.opacity,dashStyle:C.dashStyle});var k=a.g().attr({class:"dxc-"+l.type+"-annotation"}).append(this.root),S=a.g().attr({filter:x.id}).append(k);this._cloud=a.path([],"area").attr(w).sharp().append(S),this._contentGroup=a.g().append(k);var I=l.width>0?l.width:null,T=l.height>0?l.height:null;this.renderContent(this.widget,this._contentGroup,{width:I,height:T});var D=this._contentBBox=this._contentGroup.getBBox(),E=this._size={width:c(I,D.width)+2*l.paddingLeftRight,height:c(T,D.height)+2*l.paddingTopBottom},A=b.offsetX,O=b.offsetY,P=b.blur+1,B=c(P-A,0),M=c(P+A,0),R=c(P-O,0),F=c(P+O,0);if((0,s.isDefined)(h)?(0,s.isDefined)(t)||(t=h):h=_<E.width?u(f+_/2):d(c(t,Math.ceil(f+E.width/2+B)),Math.floor(g-E.width/2-M)),(0,s.isDefined)(p))(0,s.isDefined)(n)||(n=p+E.height/2);else{var V=n-l.arrowLength-E.height/2,L=n+l.arrowLength+E.height/2;p=y<E.height+l.arrowLength?u(m+E.height/2):V-E.height/2-R<m?L+E.height/2+F<v?L:u(m+E.height/2):V}this.anchorX=t,this.anchorY=n,this.move(h,p)}}},{key:"move",value:function(e,t){e=u(e),t=u(t),this.x=e,this.y=t;var n=function(e,t,n,i,o){var a=e.width/2,r=e.height/2,s=Math.ceil(t+a),l=Math.floor(t-a),u=Math.floor(n-r),c=Math.ceil(n+r);return i<l&&o<u||i>=l&&i<=s&&o<u?270:i>s&&o>c||i>=l&&i<=s&&o>c?90:i<l&&o>c||i<l&&o>=u&&o<=c?180:0}(this._size,e,t,this.anchorX,this.anchorY),a=n*g/180;this._cloud.attr({d:function(e,t,n,a,r,s){var l=e.width,u=e.height,m=s.arrowWidth,v=s.cornerRadius,y=void 0===v?0:v,b=m/2,x=l/2,w=u/2,C=Math.ceil(t+x),k=Math.floor(t-x),S=Math.floor(n-w),I=Math.ceil(n+w),T=[k,S],D=[C,S],E=[C,I],A=[k,I],O=a<=k?k:C<=a?C:a,P=r<=S?S:I<=r?I:r,B=d(P+b,I),M=c(P-b,S),R=c(O-b,k);y=Math.min(l/2,u/2,y);var F=void 0;if(T[1]+=y,D[0]-=y,E[1]-=y,A[0]+=y,k<=a&&a<=C&&S<=r&&r<=I)F=_(T,i(y,1,-1),"L",D,i(y,1,1),"L",E,i(y,-1,1),"L",A,i(y,-1,-1));else if(a>C&&r<S){var V=m/y||0,L=g/4+V/2,H=g/4-V/2,z=D[0]+p(H)*y,N=D[1]+(1-h(H))*y,$=_("L",D,i(y,p(L),1-h(L)),"L",[a,r,z,N],o(y,D[0]+y,D[1]+y));Math.abs(L)>g/2&&($=_("L",[R,S,a,r,C,B])),F=_(T,i(y,1,-1),$,"L",E,i(y,-1,1),"L",A,i(y,-1,-1))}else if(a>C&&r>=S&&r<=I){var W=void 0;if(M>=D[1]+y&&B<=E[1])W=_(i(y,1,1),"L",[C,M,a,r,C,B],"L",E,i(y,-1,1));else if(M<D[1]+y&&B>=D[1]+y&&B<=E[1]){var G=(D[1]+y-M)/y,j=D[0]+p(G)*y,q=D[1]+(1-h(G))*y;W=_(i(y,p(G),1-h(G)),"L",[j,q,a,r,C,B],"L",E,i(y,-1,1))}else if(M<D[1]+y&&B<D[1]+y){var K=(D[1]+y-M)/y,U=D[0]+p(K)*y,Y=D[1]+(1-h(K))*y,X=Math.sin((D[1]+y-B)/y),Z=D[0]+y*p(X),Q=D[1]+y*(1-h(X));W=_(i(y,p(K),1-h(K)),"L",[U,Y,a,r,Z,Q],o(y,D[0]+y,D[1]+y),"L",E,i(y,-1,1))}else if(M<=D[1]+y&&B>=E[1]){var J=f((D[1]+y-M)/y),ee=D[0]+y*p(J),te=D[1]+y*(1-h(J)),ne=f((B-E[1])/y),ie=E[0]+y*(p(ne)-1),oe=E[1]+y*h(ne);W=_(i(y,p(J),1-h(J)),"L",[ee,te,a,r,ie,oe],o(y,E[0]-y,E[1]+y))}else if(M>D[1]+y&&M<=E[1]&&B>E[1]){var ae=f((B-E[1])/y),re=E[0]+y*(p(ae)-1),se=E[1]+y*h(ae);W=_(i(y,1,1),"L",[C,M,a,r,re,se],o(y,E[0]-y,E[1]+y))}else if(M>D[1]+y&&B>E[1]){var le=f((B-E[1])/y),ue=E[0]+y*(p(le)-1),ce=E[1]+y*h(le),de=f((M-E[1])/y),he=E[0]+y*(p(de)-1),pe=E[1]+y*h(de);W=_(i(y,1,1),"L",E,i(y,p(de)-1,h(de)),"L",[he,pe,a,r,ue,ce],o(y,E[0]-y,E[1]+y))}F=_(T,i(y,1,-1),"L",D,W,"L",A,i(y,-1,-1))}return _("M",F,"Z")}(function(e,t){return t%90==0&&t%180!=0?{width:e.height,height:e.width}:e}(this._size,n),e,t,function(e,t,n,i,o){return(e-i)*u(p(n))+(t-o)*u(h(n))+i}(this.anchorX,this.anchorY,a,e,t),function(e,t,n,i,o){return-(e-i)*u(h(n))+(t-o)*u(p(n))+o}(this.anchorX,this.anchorY,a,e,t),this.options)}).rotate(n,e,t),this._contentGroup.move(e-this._contentBBox.x-this._contentBBox.width/2,t-this._contentBBox.y-this._contentBBox.height/2)}},{key:"hitTest",value:function(e,t){var n=this._size||{},i=n.width,o=n.height;return Math.abs(e-this.x)<=i/2&&Math.abs(t-this.y)<=o/2}}]),e}()},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return(0,l.isNumeric)(e)?e>1?e=1:e<0&&(e=0):e=void 0,e}var a=n(119),r=n(11),s=n(0),l=n(1),u=n(3),c=i(n(109)),d=i(n(8)),h=n(260),p=n(4),f=i(n(404)),g=a.states.normalMark,_=[a.states.resetItem,a.states.applyHover,a.states.applySelected,a.states.applySelected],m=h.BaseChart.inherit({_themeSection:"pie",_layoutManagerOptions:function(){return(0,s.extend)(!0,{},this.callBase(),{piePercentage:o(this._themeManager.getOptions("diameter")),minPiePercentage:o(this._themeManager.getOptions("minDiameter"))})},_optionChangesMap:{diameter:"REINIT",minDiameter:"REINIT",sizeGroup:"REINIT"},_disposeCore:function(){v.remove(this),this.callBase()},_groupSeries:function(){var e=this.series;this._groupsData={groups:[{series:e,valueOptions:{valueType:"numeric"}}],argumentOptions:e[0]&&e[0].getOptions()}},getArgumentAxis:function(){return null},_getValueAxis:function(){var e=(new f.default.Translator1D).setCodomain(360,0);return{getTranslator:function(){return e},setBusinessRange:function(t){e.setDomain(t.min,t.max)}}},_populateBusinessRange:function(){this.series.map(function(e){var t=new c.default.Range;return t.addRange(e.getRangeData().val),e.getValueAxis().setBusinessRange(t),t})},_specialProcessSeries:function(){(0,u.each)(this.series,function(e,t){t.arrangePoints()})},_checkPaneName:function(){return!0},_processSingleSeries:function(e){this.callBase(e),e.arrangePoints()},_handleSeriesDataUpdated:function(){var e=0;this.series.forEach(function(t){e=Math.max(t.getPointsCount(),e)}),this.series.forEach(function(t){t.setMaxPointsCount(e)}),this.callBase()},_getLegendOptions:function(e){var t=this.callBase(e),n=t.legendData;return n.argument=e.argument,n.argumentIndex=e.argumentIndex,n.points=[e],t},_getLegendTargets:function(){var e=this,t={};(e.series||[]).forEach(function(e){e.getPoints().forEach(function(n){var i=n.argument.valueOf(),o=e.getPointsByArg(i).indexOf(n),a=i.valueOf().toString()+o;t[a]=t[a]||[];var r=t[a].push(n);n.index=t[a][r-2]?t[a][r-2].index:Object.keys(t).length-1,n.argumentIndex=o})});var n=[];return(0,u.each)(t,function(t,i){i.forEach(function(t,i){if(0!==i){var o=n[n.length-1];o.legendData.points.push(t),o.visible||(o.visible=t.isVisible())}else n.push(e._getLegendOptions(t))})}),n},_getLayoutTargets:function(){return[{canvas:this._canvas}]},_getLayoutSeries:function(e,t){var n,i=this,o=i._canvas,a=!1;return n=i.layoutManager.applyPieChartSeriesLayout(o,e,!0),e.forEach(function(e){e.correctPosition(n,o),a=e.drawLabelsWOPoints()||a}),a&&(n=i.layoutManager.applyPieChartSeriesLayout(o,e,t.hideLayoutLabels)),e.forEach(function(e){e.hideLabels()}),i._sizeGroupLayout={x:n.centerX,y:n.centerY,radius:n.radiusOuter,drawOptions:t},n},_getLayoutSeriesForEqualPies:function(e,t){var n=this._canvas,i=this.layoutManager.applyEqualPieChartLayout(e,t);return e.forEach(function(e){e.correctPosition(i,n),e.drawLabelsWOPoints()}),this.layoutManager.correctPieLabelRadius(e,i,n),i},_updateSeriesDimensions:function(e){var t,n,i,o=this,r=o._getVisibleSeries(),s=r.length,l=e.sizeGroupLayout;s&&(i=l?o._getLayoutSeriesForEqualPies(r,l):o._getLayoutSeries(r,e),n=(i.radiusOuter-i.radiusInner-a.pieSeriesSpacing*(s-1))/s,t=i.radiusInner,o._setCenter({x:i.centerX,y:i.centerY}),r.forEach(function(e){e.correctRadius({radiusInner:t,radiusOuter:t+n}),t+=n+a.pieSeriesSpacing}))},_renderSeries:function(e,t,n){return this._calculateSeriesLayout(e,t),!e.sizeGroupLayout&&this.getSizeGroup()?(v.queue(this),void this._clearCanvas()):void this._renderSeriesElements(e,t,n)},_getLegendCallBack:function(){var e=this,t=this._legend,n=this._getLegendTargets().map(function(e){return e.legendData});return function(i){n.forEach(function(n){var o=[],a=t.getActionCallback({index:n.id});e.series.forEach(function(e){var t=e.getPointsByKeys(n.argument,n.argumentIndex);o.push.apply(o,t)}),i&&i.argument===n.argument&&i.argumentIndex===n.argumentIndex&&o.push(i),a(function(e){var t=g;return e.forEach(function(e){t|=e.fullState}),_[t]}(o))})}},_locateLabels:function(e){var t=0,n=void 0,i=void 0;do{n=this._resolveLabelOverlapping(e),i=this._adjustSeriesLabels("shift"===e)}while((n||i)&&++t<5)},_adjustSeriesLabels:function(e){return this.series.reduce(function(t,n){return n.adjustLabels(e)||t},!1)},_prepareStackPoints:p.noop,_resetStackPoints:p.noop,_applyExtraSettings:p.noop,_resolveLabelOverlappingShift:function(){function e(e,t){return e.getVisiblePoints().reduce(function(e,t){var n=(0,r.normalizeAngle)(t.middleAngle);return(n<=90||n>=270?e.right:e.left).push(t),e},t||{left:[],right:[]})}function t(e,t){var n;return o&&(e.left.reverse(),e.right.reverse()),n=h.overlapping.resolveLabelOverlappingInOneDirection(e.left,i._canvas,!1,t),h.overlapping.resolveLabelOverlappingInOneDirection(e.right,i._canvas,!1,t)||n}function n(e,t){return{x:e.x,y:e.y-t}}var i=this,o="anticlockwise"===i.option("segmentsDirection"),a=i.series.reduce(function(e,t){return(e[t.getOptions().label.position]||e.outside).push(t),e},{inside:[],columns:[],outside:[]}),s=!1;return a.inside.length>0&&(s=t(a.inside.reduce(function(e,t){return t.getVisiblePoints().reduce(function(e,t){return e.left.push(t),e},e)},{left:[],right:[]}),n)||s),s=a.columns.reduce(function(i,o){return t(e(o),n)||i},s),a.outside.length>0&&(s=t(a.outside.reduce(function(t,n){return e(n,t)},null),function(e,t){return(0,r.getVerticallyShiftedAngularCoords)(e,-t,i._center)})||s),s},_setCenter:function(e){this._center=e},_disposeSeries:function(e){this.callBase.apply(this,arguments),this._abstractSeries=null},_legendDataField:"point",_legendItemTextField:"argument",_applyPointMarkersAutoHiding:p.noop,_renderTrackers:p.noop,_trackerType:"PieTracker",_createScrollBar:p.noop,_updateAxesLayout:p.noop,_applyClipRects:p.noop,_appendAdditionalSeriesGroups:p.noop,_prepareToRender:p.noop,_isLegendInside:p.noop,_renderAxes:p.noop,_shrinkAxes:p.noop,_isRotated:p.noop,_seriesPopulatedHandlerCore:p.noop,_reinitAxes:p.noop,_correctAxes:p.noop,_getExtraOptions:function(){var e=this;return{startAngle:e.option("startAngle"),innerRadius:e.option("innerRadius"),segmentsDirection:e.option("segmentsDirection"),type:e.option("type")}},getSizeGroup:function(){return this._themeManager.getOptions("sizeGroup")},getSizeGroupLayout:function(){return this._sizeGroupLayout||{}}});(0,u.each)(["startAngle","innerRadius","segmentsDirection","type"],function(e,t){m.prototype._optionChangesMap[t]="REFRESH_SERIES_DATA_INIT"}),(0,d.default)("dxPieChart",m),e.exports=m;var v=function(){function e(e,t){return e.filter(function(e){return e!==t})}function t(t,n){return e(t,n).concat(n)}var n=[],i={};return{queue:function(e){var o=e.getSizeGroup();n=t(n,e),clearTimeout(i[o]),i[o]=setTimeout(function(){!function(e,t){var n=t.filter(function(t){return t._isVisible()&&t.getSizeGroup()===e}),i=Math.min.apply(null,n.map(function(e){return e.getSizeGroupLayout().radius})),o=n.filter(function(e){return e.getSizeGroupLayout().radius===i});n.forEach(function(e){return e.render({force:!0,sizeGroupLayout:o.length?o[0].getSizeGroupLayout():{}})})}(o,n)})},remove:function(t){(n=e(n,t)).length||(i={})}}}()},function(e,t,n){var i=n(4).noop,o=n(8),a=n(0).extend,r=n(11),s=n(396).AdvancedChart,l=s.inherit({_themeSection:"polar",_createPanes:function(){return[{name:"default"}]},_checkPaneName:function(){return!0},_getAxisRenderingOptions:function(e){var t="argumentAxis"===e?"circular":"linear";return this.option("useSpiderWeb")&&(t+="Spider"),{axisType:"polarAxes",drawingType:t}},_prepareAxisOptions:function(e,t){var n="argumentAxis"===e,i=this._themeManager,o=this.option("argumentAxis"),a=i.getOptions("argumentAxis",o)||{},s=isFinite(a.startAngle)?r.normalizeAngle(a.startAngle):0;return{type:this.option("useSpiderWeb")&&n?"discrete":t.type,isHorizontal:!0,showCustomBoundaryTicks:n,startAngle:s,endAngle:s+360}},_optionChangesMap:{useSpiderWeb:"AXES_AND_PANES"},_getExtraOptions:function(){return{spiderWidget:this.option("useSpiderWeb")}},_prepareToRender:function(){return this._appendAxesGroups(),{}},_renderAxes:function(e){var t=this,n=t._getValueAxis(),i=t.getArgumentAxis(),o=t._calcCanvas(i.measureLabels(a({},t._canvas),!0));i.draw(o),n.setSpiderTicks(i.getSpiderTicks()),n.draw(o)},_getValueAxis:function(){return this._valueAxes[0]},_shrinkAxes:function(e){var t=this._getValueAxis(),n=this.getArgumentAxis();e&&(e.width||e.height)&&(n.hideOuterElements(),n.updateSize(this._canvas),t.updateSize(this._canvas))},_calcCanvas:function(e){var t=a({},this._canvas);return t.left+=e.width,t.right+=e.width,t.top+=e.height,t.bottom+=e.height,t},_getLayoutTargets:function(){return[{canvas:this._canvas}]},_getSeriesForPane:function(){return this.series},_applyExtraSettings:i,_applyPointMarkersAutoHiding:i,_createScrollBar:i,_applyClipRects:i,_isRotated:i,_getCrosshairOptions:i,_isLegendInside:i});o("dxPolarChart",l),e.exports=l},function(e,t,n){e.exports=n(787)},function(e,t,n){function i(e,t,n){var i,o=u({},e);return n=n||{},t&&(o.left+=n.left||0,o.right-=n.right||0,o.top+=n.top||0,o.bottom-=n.bottom||0,t.width>0&&((i=(o.right-o.left-t.width)/2)>0&&(o.left+=i,o.right-=i)),t.height>0&&((i=(o.bottom-o.top-t.height)/2)>0&&(o.top+=i,o.bottom-=i))),o}var o=n(3).each,a=Math.max,r=Math.min,s=Math.round,l=n(8),u=n(0).extend,c=n(48),d=n(146).dxBaseGauge,h=n(206).dxGauge,p=n(11).normalizeEnum,f=n(790),g=n(206).createIndicatorCreator,_=n(791),m=h.inherit({_rootClass:"dxg-linear-gauge",_factoryMethods:{rangeContainer:"createLinearRangeContainer",indicator:"createLinearIndicator"},_gridSpacingFactor:25,_scaleTypes:{type:"xyAxes",drawingType:"linear"},_getTicksOrientation:function(e){return e.isHorizontal?e.verticalOrientation:e.horizontalOrientation},_getThemeManagerOptions:function(){var e=this.callBase.apply(this,arguments);return e.subTheme="_linear",e},_updateScaleTickIndent:function(e){var t,n,i=e.label.indentFromTick,o=e.tick.length,a=this._scale.measureLabels(u({},this._canvas)),r=e.isHorizontal?a.height+a.y:0,s=i>0;e.isHorizontal?(n=o*(s?{center:.5,top:0,bottom:1}:{center:.5,top:1,bottom:0})[e.verticalOrientation],t=a.y):(n=o*(s?{center:.5,left:0,right:1}:{center:.5,left:1,right:0})[e.horizontalOrientation],t=-a.width),e.label.indentFromAxis=-i+(s?-n+t:n-r),this._scale.updateOptions(e)},_shiftScale:function(e,t){var n=this,i=u({},n._canvas),o=t.isHorizontal,a=n._scale;i[o?"left":"top"]=n._area[o?"startCoord":"endCoord"],i[o?"right":"bottom"]=i[o?"width":"height"]-n._area[o?"endCoord":"startCoord"],a.draw(i),a.shift({left:-e.x,top:-e.y})},_setupCodomain:function(){var e=this,t=e.option("geometry")||{},n="vertical"===p(t.orientation);e._area={vertical:n,x:0,y:0,startCoord:-100,endCoord:100},e._rangeContainer.vertical=n,e._translator.setCodomain(-100,100)},_getScaleLayoutValue:function(){return this._area[this._area.vertical?"x":"y"]},_getTicksCoefficients:function(e){var t={inner:0,outer:1};return this._area.vertical?"left"===e.horizontalOrientation?(t.inner=1,t.outer=0):"center"===e.horizontalOrientation&&(t.inner=t.outer=.5):"top"===e.verticalOrientation?(t.inner=1,t.outer=0):"center"===e.verticalOrientation&&(t.inner=t.outer=.5),t},_correctScaleIndents:function(e,t,n){var i=this._area.vertical;t>=0?e.max+=t+n[i?"width":"height"]:e.min-=-t+n[i?"width":"height"],e.indent=n[i?"height":"width"]/2},_measureMainElements:function(e,t){var n=this,i=n._area.x,s=n._area.y,l=1e3,u=0,c=0,d=n._scale;return o(e.concat(d),function(e,n){var o=n.measure?n.measure({x:i+n.getOffset(),y:s+n.getOffset()}):t;void 0!==o.max&&(u=a(u,o.max)),void 0!==o.min&&(l=r(l,o.min)),o.indent>0&&(c=a(c,o.indent))}),{minBound:l,maxBound:u,indent:c}},_applyMainLayout:function(e,t){var n,o,a=this,r=a._measureMainElements(e,t),l=a._area;l.vertical?(o=((n=i(a._innerRect,{width:r.maxBound-r.minBound})).left+n.right)/2-(r.minBound+r.maxBound)/2,l.startCoord=n.bottom-r.indent,l.endCoord=n.top+r.indent,l.x=s(l.x+o)):(o=((n=i(a._innerRect,{height:r.maxBound-r.minBound})).top+n.bottom)/2-(r.minBound+r.maxBound)/2,l.startCoord=n.left+r.indent,l.endCoord=n.right-r.indent,l.y=s(l.y+o)),a._translator.setCodomain(l.startCoord,l.endCoord),a._innerRect=n},_getElementLayout:function(e){return{x:s(this._area.x+e),y:s(this._area.y+e)}},_getApproximateScreenRange:function(){var e=this,t=e._area,n=t.vertical?e._canvas.height:e._canvas.width;return n>t.totalSize&&(n=t.totalSize),.8*n},_getDefaultSize:function(){return"vertical"===(this.option("geometry")||{}).orientation?{width:100,height:300}:{width:300,height:100}},_factory:c.clone(d.prototype._factory)}),v=m.prototype._factory.indicators={};m.prototype._factory.createIndicator=g(v),v._default=f._default,v.rectangle=f.rectangle,v.rhombus=f.rhombus,v.circle=f.circle,v.trianglemarker=f.trianglemarker,v.textcloud=f.textcloud,v.rangebar=f.rangebar,m.prototype._factory.RangeContainer=_,l("dxLinearGauge",m),e.exports=m},function(e,t,n){var i=n(0).extend,o=n(261).BaseThemeManager.inherit({ctor:function(e){this.callBase.apply(this,arguments),this._subTheme=e.subTheme},_initializeTheme:function(){var e,t=this;t._subTheme&&(e=i(!0,{},t._theme[t._subTheme],t._theme),i(!0,t._theme,e)),t.callBase.apply(t,arguments)}});e.exports={ThemeManager:o}},function(e,t,n){function i(){var e=_;e&&(e._touch||(e._hideTooltip(c),_=null),e._touch=null)}function o(){_&&(_._hideTooltip(c),_=null)}var a=n(5),r=n(14),s=n(12),l=n(47).add,u=n(127),c=100,d=r.inherit({ctor:function(e){var t=this;t._element=e.renderer.g().attr({class:"dxg-tracker",stroke:"none","stroke-width":0,fill:"#000000",opacity:1e-4}).linkOn(e.container,{name:"tracker",after:"peripheral"}),t._showTooltipCallback=function(){var e=t._tooltipEvent.target,n=e["gauge-data-target"],i=e["gauge-data-info"];t._targetEvent=null,t._tooltipTarget!==e&&t._callbacks["tooltip-show"](n,i)&&(t._tooltipTarget=e)},t._hideTooltipCallback=function(){t._hideTooltipTimeout=null,t._targetEvent=null,t._tooltipTarget&&(t._callbacks["tooltip-hide"](),t._tooltipTarget=null)},t._dispose=function(){clearTimeout(t._hideTooltipTimeout),t._showTooltipCallback=t._hideTooltipCallback=t._dispose=null}},dispose:function(){var e=this;return e._dispose(),e.deactivate(),e._element.linkOff(),e._element=e._context=e._callbacks=null,e},activate:function(){return this._element.linkAppend(),this},deactivate:function(){return this._element.linkRemove().clear(),this},attach:function(e,t,n){return e.data({"gauge-data-target":t,"gauge-data-info":n}).append(this._element),this},detach:function(e){return e.remove(),this},setTooltipState:function(e){var t,n=this;return n._element.off(h).off(g).off(f),e&&(t={tracker:n},n._element.on(h,t).on(g,t).on(f,t)),n},setCallbacks:function(e){return this._callbacks=e,this},_showTooltip:function(e){var t=this;clearTimeout(t._hideTooltipTimeout),t._hideTooltipTimeout=null,t._tooltipTarget!==e.target&&(t._tooltipEvent=e,t._showTooltipCallback())},_hideTooltip:function(e){var t=this;clearTimeout(t._hideTooltipTimeout),e?t._hideTooltipTimeout=setTimeout(t._hideTooltipCallback,e):t._hideTooltipCallback()}}),h={"mouseover.gauge-tooltip":function(e){var t=e.data.tracker;t._x=e.pageX,t._y=e.pageY,t._element.off(p).on(p,e.data),t._showTooltip(e)},"mouseout.gauge-tooltip":function(e){var t=e.data.tracker;t._element.off(p),t._hideTooltip(c)}},p={"mousemove.gauge-tooltip":function(e){var t=e.data.tracker;t._x=e.pageX,t._y=e.pageY,t._showTooltip(e)}},f={};f[u.name+".gauge-tooltip"]=function(e){e.data.tracker._hideTooltip()};var g={"touchstart.gauge-tooltip":function(e){e.preventDefault();var t=_;t&&t!==e.data.tracker&&t._hideTooltip(c),(t=_=e.data.tracker)._showTooltip(e),t._touch=!0}},_=null;l(function(){a.subscribeGlobal(s.getDocument(),{"touchstart.gauge-tooltip":i,"touchend.gauge-tooltip":o})}),e.exports=d},function(e,t,n){var i=n(271),o=i.BaseIndicator,a=i.BaseTextCloudMarker,r=i.BaseRangeBar,s=Number,l=n(11).normalizeEnum,u=o.inherit({_move:function(){var e=this,t=e._actualPosition-e._zeroPosition;e._rootElement.move(e.vertical?0:t,e.vertical?t:0),e._trackerElement&&e._trackerElement.move(e.vertical?0:t,e.vertical?t:0)},_isEnabled:function(){return this.vertical=this._options.vertical,this._options.length>0&&this._options.width>0},_isVisible:function(){return!0},_getTrackerSettings:function(){var e,t,n,i,o=this._options,a=o.width/2,r=o.length/2,s=this._zeroPosition;return a>10||(a=10),r>10||(r=10),this.vertical?(e=o.x-r,t=o.x+r,n=s+a,i=s-a):(e=s-a,t=s+a,n=o.y+r,i=o.y-r),{points:[e,n,e,i,t,i,t,n]}},_render:function(){this._zeroPosition=this._translator.getCodomainStart()},_clear:function(){delete this._element},measure:function(e){var t=this.vertical?e.x:e.y;return{min:t-this._options.length/2,max:t+this._options.length/2}},getTooltipParameters:function(){var e=this,t=e._options,n=e._actualPosition,i={x:n,y:n,value:e._currentValue,color:t.color,offset:t.width/2};return e.vertical?i.x=t.x:i.y=t.y,i}}),c=u.inherit({_render:function(){var e,t,n,i,o,a=this,r=a._options;a.callBase(),e=a._zeroPosition,a.vertical?(t=r.x-r.length/2,n=r.x+r.length/2,i=e+r.width/2,o=e-r.width/2):(t=e-r.width/2,n=e+r.width/2,i=r.y+r.length/2,o=r.y-r.length/2),a._element=a._element||a._renderer.path([],"area").append(a._rootElement),a._element.attr({points:[t,i,t,o,n,o,n,i]})}}),d=u.inherit({_render:function(){var e,t,n,i,o=this,a=o._options;o.callBase(),o.vertical?(e=a.x,t=o._zeroPosition,n=a.length/2||0,i=a.width/2||0):(e=o._zeroPosition,t=a.y,n=a.width/2||0,i=a.length/2||0),o._element=o._element||o._renderer.path([],"area").append(o._rootElement),o._element.attr({points:[e-n,t,e,t-i,e+n,t,e,t+i]})}}),h=u.inherit({_render:function(){var e,t,n,i=this,o=i._options;i.callBase(),i.vertical?(e=o.x,t=i._zeroPosition):(e=i._zeroPosition,t=o.y),n=o.length/2||0,i._element=i._element||i._renderer.circle().append(i._rootElement),i._element.attr({cx:e,cy:t,r:n})}}),p=u.inherit({_isEnabled:function(){var e=this;return e.vertical=e._options.vertical,e._inverted=e.vertical?"right"===l(e._options.horizontalOrientation):"bottom"===l(e._options.verticalOrientation),e._options.length>0&&e._options.width>0},_isVisible:function(){return!0},_render:function(){var e,t,n,i,o=this,a=o._options,r={stroke:"none","stroke-width":0,"stroke-linecap":"square"};o.callBase(),o.vertical?(e=a.x,n=o._zeroPosition,t=e+s(o._inverted?a.length:-a.length),r.points=[e,n,t,n-a.width/2,t,n+a.width/2]):(n=a.y,e=o._zeroPosition,i=n+s(o._inverted?a.length:-a.length),r.points=[e,n,e-a.width/2,i,e+a.width/2,i]),a.space>0&&(r["stroke-width"]=Math.min(a.space,a.width/4)||0,r.stroke=r["stroke-width"]>0&&a.containerBackgroundColor||"none"),o._element=o._element||o._renderer.path([],"area").append(o._rootElement),o._element.attr(r).sharp()},_getTrackerSettings:function(){var e,t,n,i,o,a=this,r=a._options,l=r.width/2,u=s(r.length);return l>10||(l=10),u>20||(u=20),a.vertical?(e=t=r.x,t=e+(a._inverted?u:-u),o=[e,n=a._zeroPosition+l,t,n,t,i=a._zeroPosition-l,e,i]):(i=(n=r.y)+(a._inverted?u:-u),o=[e=a._zeroPosition-l,n,e,i,t=a._zeroPosition+l,i,t,n]),{points:o}},measure:function(e){var t,n,i=this,o=s(i._options.length);return i.vertical?(t=n=e.x,i._inverted?n=t+o:t=n-o):(t=n=e.y,i._inverted?n=t+o:t=n-o),{min:t,max:n,indent:i._options.width/2}},getTooltipParameters:function(){var e=this,t=e._options,n=(e._inverted?t.length:-t.length)/2,i=e.callBase();return e.vertical?i.x+=n:i.y+=n,i.offset=t.length/2,i}}),f=a.inherit({_isEnabled:function(){var e=this;return e.vertical=e._options.vertical,e._inverted=e.vertical?"right"===l(e._options.horizontalOrientation):"bottom"===l(e._options.verticalOrientation),!0},_isVisible:function(){return!0},_getTextCloudOptions:function(){var e,t=this,n=t._actualPosition,i=t._actualPosition;return t.vertical?(n=t._options.x,e=t._inverted?"top-left":"top-right"):(i=t._options.y,e=t._inverted?"right-top":"right-bottom"),{x:n,y:i,type:e}},measure:function(e){var t,n,i,o=this,a=s(o._options.arrowLength)||0;return o._measureText(),o.vertical?(i=o._textFullHeight,o._inverted?(t=e.x,n=e.x+a+o._textFullWidth):(t=e.x-a-o._textFullWidth,n=e.x)):(i=o._textFullWidth,o._inverted?(t=e.y,n=e.y+a+o._textFullHeight):(t=e.y-a-o._textFullHeight,n=e.y)),{min:t,max:n,indent:i}}}),g=r.inherit({_isEnabled:function(){var e=this;return e.vertical=e._options.vertical,e._inverted=e.vertical?"right"===l(e._options.horizontalOrientation):"bottom"===l(e._options.verticalOrientation),e._options.size>0},_isVisible:function(){return!0},_createBarItem:function(){return this._renderer.path([],"area").append(this._rootElement)},_createTracker:function(){return this._renderer.path([],"area")},_setBarSides:function(){var e,t,n=this,i=n._options,o=s(i.size);n.vertical?n._inverted?(e=i.x,t=i.x+o):(e=i.x-o,t=i.x):n._inverted?(e=i.y,t=i.y+o):(e=i.y-o,t=i.y),n._minSide=e,n._maxSide=t,n._minBound=e,n._maxBound=t},_getSpace:function(){var e=this._options;return e.space>0?s(e.space):0},_isTextVisible:function(){var e=this._options.text||{};return e.indent>0||e.indent<0},_getTextAlign:function(){return this.vertical?this._options.text.indent>0?"left":"right":"center"},_setTextItemsSides:function(){var e=this,t=s(e._options.text.indent);t>0?(e._lineStart=e._maxSide,e._lineEnd=e._maxSide+t,e._textPosition=e._lineEnd+(e.vertical?2:e._textHeight/2),e._maxBound=e._textPosition+(e.vertical?e._textWidth:e._textHeight/2)):t<0&&(e._lineStart=e._minSide,e._lineEnd=e._minSide+t,e._textPosition=e._lineEnd-(e.vertical?2:e._textHeight/2),e._minBound=e._textPosition-(e.vertical?e._textWidth:e._textHeight/2))},_getPositions:function(){var e,t,n,i,o=this,a=o._startPosition,r=o._endPosition,s=o._space,l=o._basePosition,u=o._actualPosition;return a<r?(l<u?(e=l,t=u):(e=u,t=l),n=e-s,i=t+s):(l>u?(e=l,t=u):(e=u,t=l),n=e+s,i=t-s),{start:a,end:r,main1:e,main2:t,back1:n,back2:i}},_buildItemSettings:function(e,t){var n=this,i=n._minSide,o=n._maxSide;return{points:n.vertical?[i,e,i,t,o,t,o,e]:[e,i,e,o,t,o,t,i]}},_updateTextPosition:function(){var e=this;e._text.attr(e.vertical?{x:e._textPosition,y:e._actualPosition+e._textVerticalOffset}:{x:e._actualPosition,y:e._textPosition+e._textVerticalOffset})},_updateLinePosition:function(){var e,t,n,i=this,o=i._actualPosition;i.vertical?(i._basePosition>=o?(e=o,t=o+2):(e=o-2,t=o),n=[i._lineStart,e,i._lineStart,t,i._lineEnd,t,i._lineEnd,e]):(i._basePosition<=o?(e=o-2,t=o):(e=o,t=o+2),n=[e,i._lineStart,e,i._lineEnd,t,i._lineEnd,t,i._lineStart]),i._line.attr({points:n}).sharp()},_getTooltipPosition:function(){var e=this,t=(e._minSide+e._maxSide)/2,n=(e._basePosition+e._actualPosition)/2;return e.vertical?{x:t,y:n}:{x:n,y:t}},measure:function(e){var t,n,i,o=this,a=s(o._options.size),r=s(o._options.text.indent);return o._measureText(),o.vertical?(t=n=e.x,o._inverted?n+=a:t-=a,o._hasText&&(i=o._textHeight/2,r>0&&(n+=r+o._textWidth),r<0&&(t+=r-o._textWidth))):(t=n=e.y,o._inverted?n+=a:t-=a,o._hasText&&(i=o._textWidth/2,r>0&&(n+=r+o._textHeight),r<0&&(t+=r-o._textHeight))),{min:t,max:n,indent:i}}});t._default=g,t.rectangle=c,t.rhombus=d,t.circle=h,t.trianglemarker=p,t.textcloud=f,t.rangebar=g},function(e,t,n){var i=n(405),o=Number,a=Math.max,r=n(11).normalizeEnum,s=i.inherit({_processOptions:function(){var e=this;if(e.vertical=e._options.vertical,e._inner=e._outer=0,e.vertical)switch(r(e._options.horizontalOrientation)){case"left":e._inner=1;break;case"center":e._inner=e._outer=.5;break;default:e._outer=1}else switch(r(e._options.verticalOrientation)){case"top":e._inner=1;break;case"center":e._inner=e._outer=.5;break;default:e._outer=1}},_isVisible:function(){return!0},_createRange:function(e,t){var n,i=this,o=i._inner,a=i._outer,r=i._translator.translate(e.start),s=i._translator.translate(e.end),l=t.x,u=t.y,c=e.startWidth,d=e.endWidth;return n=i.vertical?[l-c*o,r,l-d*o,s,l+d*a,s,l+c*a,r]:[r,u+c*a,r,u-c*o,s,u-d*o,s,u+d*a],i._renderer.path(n,"area")},measure:function(e){var t,n={};return n.min=n.max=e[this.vertical?"x":"y"],t=this._options.width,t=o(t)||a(o(t.start),o(t.end)),n.min-=this._inner*t,n.max+=this._outer*t,n}});e.exports=s},function(e,t,n){e.exports=n(406)},function(e,t,n){var i=n(271),o=i.BaseIndicator,a=i.BaseTextCloudMarker,r=i.BaseRangeBar,s=n(11),l=Number,u=s.getCosAndSin,c=s.convertAngleToRendererSpace,d=o.inherit({_move:function(){var e=this,t=e._options,n=c(e._actualPosition);e._rootElement.rotate(n,t.x,t.y),e._trackerElement&&e._trackerElement.rotate(n,t.x,t.y)},_isEnabled:function(){return this._options.width>0},_isVisible:function(e){return e.radius-l(this._options.indentFromCenter)>0},_getTrackerSettings:function(){var e=this._options,t=this._getRadius(),n=this._getIndentFromCenter(),i=e.x,o=e.y-(t+n)/2,a=e.width/2,r=(t-n)/2;return a>10||(a=10),r>10||(r=10),{points:[i-a,o-r,i-a,o+r,i+a,o+r,i+a,o-r]}},_render:function(){this._renderPointer()},_clearPointer:function(){delete this._element},_clear:function(){this._clearPointer()},_getIndentFromCenter:function(e){return Number(this._options.indentFromCenter)||0},_getRadius:function(){return 0},measure:function(e){var t={max:e.radius};return this._options.indentFromCenter<0&&(t.inverseHorizontalOffset=t.inverseVerticalOffset=-l(this._options.indentFromCenter)),t},getTooltipParameters:function(){var e=this._options,t=u(this._actualPosition),n=(this._getRadius()+this._getIndentFromCenter())/2;return{x:e.x+t.cos*n,y:e.y-t.sin*n,value:this._currentValue,color:e.color,offset:e.width/2}}}),h=d.inherit({_isVisible:function(e){var t=this._adjustOffset(Number(this._options.indentFromCenter),e.radius),n=this._adjustOffset(Number(this._options.offset),e.radius);return e.radius-t-n>0},getOffset:function(){return 0},_adjustOffset:function(e,t){var n=t/Number(this._options.beginAdaptingAtRadius);return n<1&&(e=Math.floor(e*n)),e||0},_getIndentFromCenter:function(e){return this._adjustOffset(Number(this._options.indentFromCenter),this._options.radius)},_getRadius:function(){var e=this._options;return e.radius-this._adjustOffset(Number(e.offset),e.radius)},_renderSpindle:function(){var e,t=this,n=t._options,i=n.radius,o=2*this._adjustOffset(l(n.spindleSize)/2,i);(e=2*this._adjustOffset(l(n.spindleGapSize)/2,i)||0)>0&&(e=e<=o?e:o),o>0&&(t._spindleOuter=t._spindleOuter||t._renderer.circle().append(t._rootElement),t._spindleInner=t._spindleInner||t._renderer.circle().append(t._rootElement),t._spindleOuter.attr({class:"dxg-spindle-border",cx:n.x,cy:n.y,r:o/2}),t._spindleInner.attr({class:"dxg-spindle-hole",cx:n.x,cy:n.y,r:e/2,fill:n.containerBackgroundColor}))},_render:function(){this.callBase(),this._renderSpindle()},_clear:function(){this.callBase(),delete this._spindleOuter,delete this._spindleInner}}),p=h.inherit({_renderPointer:function(){var e=this,t=e._options,n=t.y-this._getRadius(),i=t.y-this._getIndentFromCenter(),o=t.x-t.width/2,a=o+l(t.width);e._element=e._element||e._renderer.path([],"area").append(e._rootElement),e._element.attr({points:[o,i,o,n,a,n,a,i]})}}),f=h.inherit({_renderPointer:function(){var e=this,t=e._options,n=t.y-this._getRadius(),i=t.y-this._getIndentFromCenter(),o=t.x-t.width/2,a=t.x+t.width/2;e._element=e._element||e._renderer.path([],"area").append(e._rootElement),e._element.attr({points:[o,i,t.x,n,a,i]})}}),g=h.inherit({_renderPointer:function(){var e,t,n=this,i=n._options,o=i.x-i.width/2,a=i.x+i.width/2,r=i.y-this._getRadius(),s=i.y-this._getIndentFromCenter(),u=l(i.secondFraction)||0;u>=1?e=t=s:u<=0?e=t=r:e=(t=r+(s-r)*u)+l(i.space),n._firstElement=n._firstElement||n._renderer.path([],"area").append(n._rootElement),n._spaceElement=n._spaceElement||n._renderer.path([],"area").append(n._rootElement),n._secondElement=n._secondElement||n._renderer.path([],"area").append(n._rootElement),n._firstElement.attr({points:[o,s,o,e,a,e,a,s]}),n._spaceElement.attr({points:[o,e,o,t,a,t,a,e],class:"dxg-hole",fill:i.containerBackgroundColor}),n._secondElement.attr({points:[o,t,o,r,a,r,a,t],class:"dxg-part",fill:i.secondColor})},_clearPointer:function(){delete this._firstElement,delete this._secondElement,delete this._spaceElement}}),_=d.inherit({_isEnabled:function(){return this._options.length>0&&this._options.width>0},_isVisible:function(e){return e.radius>0},_render:function(){var e,t=this,n=t._options,i=n.x,o=n.y-n.radius,a=n.width/2||0,r=o-l(n.length);t._element=t._element||t._renderer.path([],"area").append(t._rootElement),e={points:[i,o,i-a,r,i+a,r],stroke:"none","stroke-width":0,"stroke-linecap":"square"},n.space>0&&(e["stroke-width"]=Math.min(n.space,n.width/4)||0,e.stroke=e["stroke-width"]>0&&n.containerBackgroundColor||"none"),t._element.attr(e).sharp()},_clear:function(){delete this._element},_getTrackerSettings:function(){var e=this._options,t=e.x,n=e.y-e.radius-e.length/2,i=e.width/2,o=e.length/2;return i>10||(i=10),o>10||(o=10),{points:[t-i,n-o,t-i,n+o,t+i,n+o,t+i,n-o]}},measure:function(e){return{min:e.radius,max:e.radius+l(this._options.length)}},getTooltipParameters:function(){var e=this._options,t=u(this._actualPosition),n=e.radius+e.length/2,i=this.callBase();return i.x=e.x+t.cos*n,i.y=e.y-t.sin*n,i.offset=e.length/2,i}}),m=a.inherit({_isEnabled:function(){return!0},_isVisible:function(e){return e.radius>0},_getTextCloudOptions:function(){var e=this,t=u(e._actualPosition),n=s.normalizeAngle(e._actualPosition);return{x:e._options.x+t.cos*e._options.radius,y:e._options.y-t.sin*e._options.radius,type:n>270?"left-top":n>180?"top-right":n>90?"right-bottom":"bottom-left"}},measure:function(e){var t,n,i=this,o=l(i._options.arrowLength)||0;return i._measureText(),t=i._textFullHeight+o,n=i._textFullWidth+o,{min:e.radius,max:e.radius,horizontalOffset:n,verticalOffset:t,inverseHorizontalOffset:n,inverseVerticalOffset:t}}}),v=r.inherit({_isEnabled:function(){return this._options.size>0},_isVisible:function(e){return e.radius-l(this._options.size)>0},_createBarItem:function(){return this._renderer.arc().attr({"stroke-linejoin":"round"}).append(this._rootElement)},_createTracker:function(){return this._renderer.arc().attr({"stroke-linejoin":"round"})},_setBarSides:function(){var e=this;e._maxSide=e._options.radius,e._minSide=e._maxSide-l(e._options.size)},_getSpace:function(){var e=this._options;return e.space>0?180*e.space/e.radius/Math.PI:0},_isTextVisible:function(){return(this._options.text||{}).indent>0},_setTextItemsSides:function(){var e=this,t=e._options,n=l(t.text.indent);e._lineFrom=t.y-t.radius,e._lineTo=e._lineFrom-n,e._textRadius=t.radius+n},_getPositions:function(){var e,t,n=this,i=n._basePosition,o=n._actualPosition;return i>=o?(e=i,t=o):(e=o,t=i),{start:n._startPosition,end:n._endPosition,main1:e,main2:t,back1:Math.min(e+n._space,n._startPosition),back2:Math.max(t-n._space,n._endPosition)}},_buildItemSettings:function(e,t){var n=this;return{x:n._options.x,y:n._options.y,innerRadius:n._minSide,outerRadius:n._maxSide,startAngle:t,endAngle:e}},_updateTextPosition:function(){var e=this,t=u(e._actualPosition),n=e._options.x+e._textRadius*t.cos,i=e._options.y-e._textRadius*t.sin;n+=t.cos*e._textWidth*.6,i-=t.sin*e._textHeight*.6,e._text.attr({x:n,y:i+e._textVerticalOffset})},_updateLinePosition:function(){var e,t,n=this,i=n._options.x;n._basePosition>n._actualPosition?(e=i-2,t=i):n._basePosition<n._actualPosition?(e=i,t=i+2):(e=i-1,t=i+1),n._line.attr({points:[e,n._lineFrom,e,n._lineTo,t,n._lineTo,t,n._lineFrom]}).rotate(c(n._actualPosition),i,n._options.y).sharp()},_getTooltipPosition:function(){var e=this,t=u((e._basePosition+e._actualPosition)/2),n=(e._minSide+e._maxSide)/2;return{x:e._options.x+t.cos*n,y:e._options.y-t.sin*n}},measure:function(e){var t=this,n={min:e.radius-l(t._options.size),max:e.radius};return t._measureText(),t._hasText&&(n.max+=l(t._options.text.indent),n.horizontalOffset=t._textWidth,n.verticalOffset=t._textHeight),n}});t._default=p,t.rectangleneedle=p,t.triangleneedle=f,t.twocolorneedle=g,t.trianglemarker=_,t.textcloud=m,t.rangebar=v},function(e,t,n){var i=n(405),o=Number,a=Math.max,r=n(11).normalizeEnum,s=i.inherit({_processOptions:function(){var e=this;switch(e._inner=e._outer=0,r(e._options.orientation)){case"inside":e._inner=1;break;case"center":e._inner=e._outer=.5;break;default:e._outer=1}},_isVisible:function(e){var t=this._options.width;return t=o(t)||a(o(t.start),o(t.end)),e.radius-this._inner*t>0},_createRange:function(e,t){var n=this,i=(e.startWidth+e.endWidth)/2;return n._renderer.arc(t.x,t.y,t.radius-n._inner*i,t.radius+n._outer*i,n._translator.translate(e.end),n._translator.translate(e.start)).attr({"stroke-linejoin":"round"})},measure:function(e){var t=this._options.width;return t=o(t)||a(o(t.start),o(t.end)),{min:e.radius-this._inner*t,max:e.radius+this._outer*t}}});e.exports=s},function(e,t,n){e.exports=n(796).dxBarGauge},function(e,t,n){function i(e,t,n){e.startAngle=t<n?t:n,e.endAngle=t<n?n:t}function o(e,t){return r(e-t)<1e-4}var a=Math.PI/180,r=Math.abs,s=Math.round,l=Math.floor,u=Math.min,c=Math.max,d=n(8),h=n(48),p=n(4),f=n(0).extend,g=n(11).normalizeEnum,_=n(146),m=_.dxBaseGauge,v=_.getSampleText,y=_.formatValue,b=_.compareArrays,x=n(406),w=Array.isArray,C=n(11),k=C.convertAngleToRendererSpace,S=C.getCosAndSin,I=C.patchFontOptions,T=Number,D=isFinite,E=p.noop,A=f,O="values",P=m.inherit({_rootClass:"dxbg-bar-gauge",_themeSection:"barGauge",_fontFields:["label.font","legend.font","legend.title.font","legend.title.subtitle.font"],_initCore:function(){var e=this;e.callBase.apply(e,arguments),e._barsGroup=e._renderer.g().attr({class:"dxbg-bars"}).linkOn(e._renderer.root,"bars"),e._values=[],e._context={renderer:e._renderer,translator:e._translator,tracker:e._tracker,group:e._barsGroup},e._animateStep=function(t){var n,i,o=e._bars;for(n=0,i=o.length;n<i;++n)o[n].animate(t)},e._animateComplete=function(){e._bars.forEach(function(e){return e.endAnimation()}),e._checkOverlap()}},_disposeCore:function(){var e=this;e._barsGroup.linkOff(),e._barsGroup=e._values=e._context=e._animateStep=e._animateComplete=null,e.callBase.apply(e,arguments)},_setupDomainCore:function(){var e=this,t=e.option("startValue"),n=e.option("endValue");D(t)||(t=0),D(n)||(n=100),e._translator.setDomain(t,n),e._baseValue=e._translator.adjust(e.option("baseValue")),D(e._baseValue)||(e._baseValue=t<n?t:n)},_getDefaultSize:function(){return{width:300,height:300}},_setupCodomain:x.prototype._setupCodomain,_getApproximateScreenRange:function(){var e=this,t=e._area.sides,n=e._canvas.width/(t.right-t.left),i=e._canvas.height/(t.down-t.up),o=n<i?n:i;return-e._translator.getCodomainRange()*o*a},_setupAnimationSettings:function(){var e=this;e.callBase.apply(e,arguments),e._animationSettings&&(e._animationSettings.step=e._animateStep,e._animationSettings.complete=e._animateComplete)},_cleanContent:function(){var e=this;e._barsGroup.linkRemove(),e._animationSettings&&e._barsGroup.stopAnimation(),e._barsGroup.clear()},_renderContent:function(){var e,t,n=this,i=n.option("label"),o=n._context;n._barsGroup.linkAppend(),o.textEnabled=void 0===i||i&&(!("visible"in i)||i.visible),o.textEnabled&&(o.textColor=i&&i.font&&i.font.color||null,i=A(!0,{},n._themeManager.theme().label,i),o.formatOptions={format:void 0!==i.format?i.format:n._defaultFormatOptions,customizeText:i.customizeText},o.textOptions={align:"center"},o.fontStyles=I(A({},n._themeManager.theme().label.font,i.font,{color:null})),n._textIndent=i.indent>0?T(i.indent):0,o.lineWidth=i.connectorWidth>0?T(i.connectorWidth):0,o.lineColor=i.connectorColor||null,t=(e=n._renderer.text(v(n._translator,o.formatOptions),0,0).attr(o.textOptions).css(o.fontStyles).append(n._barsGroup)).getBBox(),e.remove(),o.textY=t.y,o.textWidth=t.width,o.textHeight=t.height),x.prototype._applyMainLayout.call(n),n._renderBars()},_measureMainElements:function(){var e={maxRadius:this._area.radius};return this._context.textEnabled&&(e.horizontalMargin=this._context.textWidth,e.verticalMargin=this._context.textHeight,e.inverseHorizontalMargin=this._context.textWidth/2,e.inverseVerticalMargin=this._context.textHeight/2),e},_renderBars:function(){var e,t,n=this,i=A({},n._themeManager.theme(),n.option()),o=n._area;e=i.relativeInnerRadius>0&&i.relativeInnerRadius<1?T(i.relativeInnerRadius):.1,t=o.radius,n._context.textEnabled&&(n._textIndent=s(u(n._textIndent,t/2)),t-=n._textIndent),n._outerRadius=l(t),n._innerRadius=l(t*e),n._barSpacing=i.barSpacing>0?T(i.barSpacing):0,A(n._context,{backgroundColor:i.backgroundColor,x:o.x,y:o.y,startAngle:o.startCoord,endAngle:o.endCoord,baseAngle:n._translator.translate(n._baseValue)}),n._arrangeBars()},_arrangeBars:function(){var e,t,n,i,o=this,a=o._outerRadius-o._innerRadius,r=o._context,s=o._bars.length;o._beginValueChanging(),r.barSize=s>0?c((a-(s-1)*o._barSpacing)/s,1):0,e=s>1?c(u((a-s*r.barSize)/(s-1),o._barSpacing),0):0;var d=u(l((a+e)/r.barSize),s);for(o._setBarsCount(s),a=o._outerRadius,r.textRadius=a,r.textIndent=o._textIndent,o._palette.reset(),n=r.barSize+e,t=o._palette.generateColors(d),i=0;i<d;++i,a-=n)o._bars[i].arrange({radius:a,color:t[i]});for(var h=d;h<s;h++)o._bars[h].hide();o._animationSettings&&!o._noAnimation?o._animateBars():o._updateBars(),o._endValueChanging()},_setBarsCount:function(){var e=this;e._bars.length>0?e._dummyBackground&&(e._dummyBackground.dispose(),e._dummyBackground=null):(e._dummyBackground||(e._dummyBackground=e._renderer.arc().attr({"stroke-linejoin":"round"})),e._dummyBackground.attr({x:e._context.x,y:e._context.y,outerRadius:e._outerRadius,innerRadius:e._innerRadius,startAngle:e._context.endAngle,endAngle:e._context.startAngle,fill:e._context.backgroundColor}).append(e._barsGroup))},_updateBars:function(){this._bars.forEach(function(e){return e.applyValue()}),this._checkOverlap()},_checkOverlap:function(){var e=this._bars;if("none"!==g(this._getOption("resolveLabelOverlapping",!0)))for(var t=e.concat().sort(function(e,t){return e.getValue()-t.getValue()}),n=0,i=1;n<t.length&&i<t.length;){var o=t[n],a=t[i];o.checkIntersect(a)?(a.hideLabel(),i++):i=(n=i)+1}},_animateBars:function(){var e,t=this,n=t._bars.length;if(n>0){for(e=0;e<n;++e)t._bars[e].beginAnimation();t._barsGroup.animate({_:0},t._animationSettings)}},_buildNodes:function(){var e=this,t=e._options;e._palette=e._themeManager.createPalette(t.palette,{useHighlight:!0,extensionMode:t.paletteExtensionMode}),e._palette.reset(),e._bars=e._bars||[],e._animationSettings&&e._barsGroup.stopAnimation();var n=e._values.filter(D),i=n.length;if(e._bars.length>i){for(var o=e._bars.length,a=i;a<o;++a)e._bars[a].dispose();e._bars.splice(i,o-i)}else if(e._bars.length<i)for(var r=e._bars.length;r<i;++r)e._bars.push(new B(r,e._context));e._bars.forEach(function(t,o){t.update({color:e._palette.getNextColor(i),value:n[o]})})},_updateValues:function(e){var t,n,i=this,o=w(e)&&e||D(e)&&[e]||[],a=o.length;for(i._values.length=a,t=0;t<a;++t)n=o[t],i._values[t]=n=T(D(n)?n:i._values[t]);i._resizing||b(i._values,i.option(O))||i.option(O,i._values),this._change(["NODES"])},values:function(e){return void 0!==e?(this._updateValues(e),this):this._values.slice(0)},_optionChangesMap:{backgroundColor:"MOSTLY_TOTAL",relativeInnerRadius:"MOSTLY_TOTAL",barSpacing:"MOSTLY_TOTAL",label:"MOSTLY_TOTAL",resolveLabelOverlapping:"MOSTLY_TOTAL",palette:"MOSTLY_TOTAL",paletteExtensionMode:"MOSTLY_TOTAL",values:"VALUES"},_change_VALUES:function(){this._updateValues(this.option(O))},_factory:h.clone(m.prototype._factory),_optionChangesOrder:["VALUES","NODES"],_initialChanges:["VALUES"],_change_NODES:function(){this._buildNodes()},_change_MOSTLY_TOTAL:function(){this._change(["NODES"]),this.callBase()},_proxyData:[],_getLegendData:function(){var e={},t=this._options,n=(t.label||{}).format,i=(t.legend||{}).itemTextFormat;return e.format=i||(n||this._defaultFormatOptions),(this._bars||[]).map(function(t){return{id:t.index,item:{value:t.getValue(),color:t.getColor(),index:t.index},text:y(t.getValue(),e),visible:!0,states:{normal:{fill:t.getColor()}}}})}}),B=function(e,t){var n=this;n._context=t,n._tracker=t.renderer.arc().attr({"stroke-linejoin":"round"}),n.index=e};A(B.prototype,{dispose:function(){var e=this;return e._background.dispose(),e._bar.dispose(),e._context.textEnabled&&(e._line.dispose(),e._text.dispose()),e._context.tracker.detach(e._tracker),e._context=e._settings=e._background=e._bar=e._line=e._text=e._tracker=null,e},arrange:function(e){var t=this,n=t._context;return this._visible=!0,n.tracker.attach(t._tracker,t,{index:t.index}),t._background=n.renderer.arc().attr({"stroke-linejoin":"round",fill:n.backgroundColor}).append(n.group),t._settings=t._settings||{x:n.x,y:n.y,startAngle:n.baseAngle,endAngle:n.baseAngle},t._bar=n.renderer.arc().attr(A({"stroke-linejoin":"round"},t._settings)).append(n.group),n.textEnabled&&(t._line=n.renderer.path([],"line").attr({"stroke-width":n.lineWidth}).append(n.group),t._text=n.renderer.text().css(n.fontStyles).attr(n.textOptions).append(n.group)),t._angle=isFinite(t._angle)?t._angle:n.baseAngle,t._settings.outerRadius=e.radius,t._settings.innerRadius=e.radius-n.barSize,t._settings.x=n.x,t._settings.y=n.y,t._background.attr(A({},t._settings,{startAngle:n.endAngle,endAngle:n.startAngle,fill:t._context.backgroundColor})),t._bar.attr({x:n.x,y:n.y,outerRadius:t._settings.outerRadius,innerRadius:t._settings.innerRadius,fill:t._color}),t._tracker.attr(t._settings),n.textEnabled&&(t._line.attr({points:[n.x,n.y-t._settings.innerRadius,n.x,n.y-n.textRadius-n.textIndent],stroke:n.lineColor||t._color}).sharp(),t._text.css({fill:n.textColor||t._color})),t},getTooltipParameters:function(){var e=this,t=S((e._angle+e._context.baseAngle)/2);return{x:s(e._context.x+(e._settings.outerRadius+e._settings.innerRadius)/2*t.cos),y:s(e._context.y-(e._settings.outerRadius+e._settings.innerRadius)/2*t.sin),offset:0,color:e._color,value:e._value}},setAngle:function(e){var t,n=this,o=n._context,a=n._settings;if(n._angle=e,i(a,o.baseAngle,e),n._bar.attr(a),n._tracker.attr(a),o.textEnabled){t=S(e);var s=o.textIndent,l=o.textRadius+s,u=o.x+l*t.cos,c=o.y-l*t.sin,d=.5*o.textWidth,h=o.textHeight,p=o.textY;r(u-o.x)>s&&(u+=u<o.x?-d:d),c-=r(c-o.y)<=s?p+.5*h:c<o.y?p+h:p;var f=y(n._value,o.formatOptions,{index:n.index}),g=""===f?"hidden":null;n._text.attr({text:f,x:u,y:c,visibility:g}),n._line.attr({visibility:g}),n._line.rotate(k(e),o.x,o.y)}return n},hideLabel:function(){this._text.attr({visibility:"hidden"}),this._line.attr({visibility:"hidden"})},checkIntersect:function(e){var t=this.calculateLabelCoords(),n=e.calculateLabelCoords();return!(!t||!n)&&Math.max(0,Math.min(t.bottomRight.x,n.bottomRight.x)-Math.max(t.topLeft.x,n.topLeft.x))*Math.max(0,Math.min(t.bottomRight.y,n.bottomRight.y)-Math.max(t.topLeft.y,n.topLeft.y))!=0},calculateLabelCoords:function(){if(this._text){var e=this._text.getBBox();return{topLeft:{x:e.x,y:e.y},bottomRight:{x:e.x+e.width,y:e.y+e.height}}}},_processValue:function(e){return this._context.translator.translate(this._context.translator.adjust(e))},applyValue:function(){return this._visible?this.setAngle(this._processValue(this.getValue())):this},update:function(e){var t=e.color,n=e.value;this._color=t,this._value=n},hide:function(){this._visible=!1},getColor:function(){return this._color},getValue:function(){return this._value},beginAnimation:function(){if(!this._visible)return this;var e=this,t=this._processValue(this.getValue());o(e._angle,t)?(e.animate=E,e.setAngle(e._angle)):(e._start=e._angle,e._delta=t-e._angle,e._tracker.attr({visibility:"hidden"}),e._context.textEnabled&&(e._line.attr({visibility:"hidden"}),e._text.attr({visibility:"hidden"})))},animate:function(e){if(!this._visible)return this;var t=this;t._angle=t._start+t._delta*e,i(t._settings,t._context.baseAngle,t._angle),t._bar.attr(t._settings)},endAnimation:function(){var e=this;void 0!==e._delta?o(e._angle,e._start+e._delta)&&(e._tracker.attr({visibility:null}),e.setAngle(e._angle)):delete e.animate,delete e._start,delete e._delta}}),d("dxBarGauge",P),t.dxBarGauge=P,P.addPlugin(n(203).plugin)},function(e,t,n){e.exports=n(798)},function(e,t,n){function i(e,t,n){var i=h(e,void 0===t?R.consts.emptySliderMarkerText:R.formatValue(t,n),n.font);return K(i.height)+2*n.paddingTopBottom+R.consts.pointerSize}function o(e,t,n,i){var o=h(e,R.formatValue(t,n.label,i,n.valueType,n.type,n.logarithmBase),n.label.font);return K(o.width/2)}function a(e,t,n,a,r){var s,l,u,c,d,h,p,f=0,g=0,_="semidiscrete"===t.type?t.customTicks:r.ticks;return u=(a=a||{}).left,c=a.right,d=n.placeholderHeight,n.visible&&(s=i(e,t.startValue,n),l=i(e,t.endValue,n),void 0===d&&(d=q(s,l))),t.label.visible&&(h=W(t.startValue)?_[0]:void 0,p=W(t.endValue)?_[_.length-1]:void 0,f=o(e,h,t,r),g=o(e,p,t,r)),{left:u=void 0!==u?u:f,right:c=(void 0!==c?c:g)||1,top:d||0,bottom:0}}function r(e,t){var n=b.type(e),i=b.type(t),o=function(e){return n===e||i===e};return o("date")?Z:o("number")?"numeric":o(te)?te:""}function s(e,t,n){var i;e&&(i=e.logarithmBase,e.type===oe&&i<=0||i&&!G(i)?(e.logarithmBase=t,n("E2104")):e.type!==oe&&(e.logarithmBase=void 0))}function l(e,t,n,i){var o=t.label,a=t.marker,r=t.placeholderHeight,s="semidiscrete"===t.type?t.customTicks:i.ticks,l=R.formatValue(s[0],o);return r||(o.visible?o.topIndent+h(e,l,o.font).height:0)+(n?a.topIndent+a.separatorHeight:0)}function u(e,t,n){return e?n?e=k.getNextDateUnit(e):e+=t:e=t,e}function c(e,t,n,i){var o,a,r,s=W(i.minVisible)?i.minVisible:i.min,l=W(i.maxVisible)?i.maxVisible:i.max,c=e._categoriesInfo,d={};return e.type===ee?o=function(e,t,n,i){var o,a,r,s=e.minorTickInterval,l=e.tickInterval,c="datetime"===e.valueType,d=e.axisDivisionFactor||{};if(!l)do{if(l===(o=u(l,s,c)))break;l=o,c&&(o=T(l)),a=K((n-t)/o),r=U(i/(d[l]||se))||1}while(o&&a>r);return{tickInterval:l,minorTickInterval:s,bounds:{minVisible:t,maxVisible:n},ticks:[]}}(e,s,l,t):(r=(a=z.tickGenerator({axisType:e.type,dataType:e.valueType,logBase:e.logarithmBase,axisDivisionFactor:e.axisDivisionFactor,minorAxisDivisionFactor:e.minorAxisDivisionFactor,calculateMinors:!0,allowDecimals:e.allowDecimals,endOnTick:e.endOnTick,incidentOccurred:n,rangeIsEmpty:i.isEmpty()})({min:s,max:l,categories:W(c)?c.categories:[]},t,e.tickInterval,e.forceUserTickInterval,void 0,e.minorTickInterval,e.minorTickCount)).ticks.length,d.minVisible=a.ticks[0]<s?a.ticks[0]:s,d.maxVisible=a.ticks[r-1]>l?a.ticks[r-1]:l,o={tickInterval:a.tickInterval,minorTickInterval:0===e.minorTickInterval?0:a.minorTickInterval,bounds:d,ticks:a.ticks}),o}function d(e,t){var n,i,o,a,r,s=!1,l=t.startValue,u=t.endValue,c=e?e.getBoundRange().arg:new E.Range,d="datetime"===t.valueType,h=t.minRange;return t.type===J&&((r=new E.Range({minVisible:l,maxVisible:u})).addRange(c),c=r,o=(o=e?e.argCategories:t.categories||!e&&l&&u&&[l,u])||[],t._categoriesInfo=a=C.getCategoriesInfo(o,l,u)),t.type===ee&&(l=t.startValue=g(t.startValue,d,h),u=t.endValue=g(t.endValue,d,h),c.minVisible=g(c.minVisible,d,h),c.maxVisible=g(c.maxVisible,d,h),c.min=g(c.min,d,h),c.max=g(c.max,d,h)),W(l)&&W(u)?(s=a?a.inverted:l>u,n=a?a.start:s?u:l,i=a?a.end:s?l:u):W(l)||W(u)?(n=l,i=u):a&&(n=a.start,i=a.end),c.addRange({invert:s,min:n,max:i,minVisible:n,maxVisible:i,dataType:t.valueType}),c.addRange({categories:e?void 0:o,base:t.logarithmBase,axisType:t.type,dataType:t.valueType}),e&&c.sortCategories(o),c}function h(e,t,n){var i=e.text(t,re,re).css(O(n)).append(e.root),o=i.getBBox();return i.remove(),o}function p(e,t,n,i,o){var a,r,s,l=e._categoriesInfo,u=e.valueType===Z;!t||t.isEmpty()||n.isEmpty()||(a=i.bounds,n.addRange(a),e.startValue=n.invert?a.maxVisible:a.minVisible,e.endValue=n.invert?a.minVisible:a.maxVisible),e.marker.visible=o(u&&-1===e.type.indexOf(J),e.marker.visible,e.startValue,e.endValue,i.tickInterval),l&&(e.startValue=l.start,e.endValue=l.end),-1===e.type.indexOf(J)&&(r=j(e.startValue)&&j(e.endValue)&&e.startValue.getTime()===e.endValue.getTime()||e.startValue===e.endValue),e.isEmpty=function(e,t){return!W(e)||!W(t)}(e.startValue,e.endValue)||r,e.isEmpty?e.startValue=e.endValue=void 0:(e.minorTickInterval=i.minorTickInterval,e.tickInterval=i.tickInterval,u&&(!W(e.label.format)||e.type===ee&&e.minorTickInterval!==e.tickInterval)&&(e.type===J?e.label.format=M.getDateFormatByTicks(i.ticks):e.marker.visible?e.label.format=k.getDateFormatByTickInterval(e.tickInterval):e.label.format=M.getDateFormatByTickInterval(e.startValue,e.endValue,e.tickInterval))),e.type===ee&&(s=function(e){var t=e.startValue,n=e.endValue,i="datetime"===e.valueType,o=e.tickInterval,a={intervals:[]};return W(t)&&W(n)?(a.intervals=D(t,n,e.minorTickInterval),o!==e.minorTickInterval&&(a.altIntervals=a.intervals,t=g(t,i,o),n=g(n,i,o),a.intervals=D(t,n,o),a.intervals[0]=a.altIntervals[0]),a):a}(e),e.customMinorTicks=s.altIntervals,e.customTicks=s.intervals,e.customBoundTicks=[e.customTicks[0]])}function f(e,t,n,i){var o,a=0,l=P.correctValueType(B(e.valueType)),u=function(t,i){var o=t===Y?"start":"end";W(e[t])&&(a=i(e[t]),W(a)?e[t]=a:(e[t]=void 0,n("E2202",[o])))};return(l=t||l)||(l=r(e.startValue,e.endValue)||"numeric"),(l===te||e.categories)&&(e.type=J,l=te),e.containerColor=i,e.valueType=l,e.dataType=l,o=P.getParser(l),u(Y,o),u(X,o),s(e,ce,n),e.type||(e.type="continuous"),e.parser=o,e.type===ee&&(e.minorTick.visible=!1,e.minorTickInterval=e.minRange,e.marker.visible=!1,e.maxRange=void 0),e.forceUserTickInterval|=W(e.tickInterval)&&!W(e.axisDivisionFactor),e.axisDivisionFactor=W(e.axisDivisionFactor)?e.axisDivisionFactor:le,e.minorAxisDivisionFactor=W(e.minorAxisDivisionFactor)?e.minorAxisDivisionFactor:ue,e}function g(e,t,n){return W(e)&&(e=t?k.correctDateWithUnitBeginning(new Date(e),n):S(U(S(e/n))*n)),e}function _(){return 1}function m(e){return e%2==1?-Math.floor(e/2):-e/2}function v(e){var t=this;t._axis=new A.Axis({renderer:e.renderer,axesContainerGroup:e.root,scaleBreaksGroup:e.scaleBreaksGroup,incidentOccurred:e.incidentOccurred,axisType:"xyAxes",drawingType:"linear",widgetClass:"dxrs",axisClass:"range-selector",isArgumentAxis:!0}),t._updateSelectedRangeCallback=e.updateSelectedRange,t._axis.getAxisSharpDirection=t._axis.getSharpDirectionByCoords=_,t._axis.getTickStartPositionShift=m}var y=n(8),b=n(1),x=n(0).extend,w=n(3).each,C=n(11),k=n(22),S=n(29).adjust,I=k.addInterval,T=k.dateToMilliseconds,D=k.getSequenceByInterval,E=n(109),A=n(268),O=C.patchFontOptions,P=n(264),B=C.normalizeEnum,M=n(63),R=n(207),F=n(799),V=n(802),L=n(803),H=n(804),z=n(398),N=C.getVizRangeObject,$=C.convertVisualRangeObject,W=b.isDefined,G=b.isNumeric,j=b.isDate,q=Math.max,K=Math.ceil,U=Math.floor,Y="startValue",X="endValue",Z="datetime",Q="value",J="discrete",ee="semidiscrete",te="string",ne=Q+"Changed",ie="containerBackgroundColor",oe="logarithmic",ae="reset",re=-1e3,se=50,le=30,ue=15,ce=10,de=n(98).inherit({_toggleParentsScrollSubscription:function(){},_eventsMap:{onValueChanged:{name:ne}},_setDeprecatedOptions:function(){this.callBase.apply(this,arguments),x(this._deprecatedOptions,{"chart.barWidth":{since:"18.1",message:"Use the 'chart.commonSeriesSettings.barPadding' or 'chart.series.barPadding' option instead"},"chart.equalBarWidth":{since:"18.1",message:"Use the 'chart.commonSeriesSettings.ignoreEmptyPoints' or 'chart.series.ignoreEmptyPoints' option instead"},"chart.useAggregation":{since:"18.1",message:"Use the 'chart.commonSeriesSettings.aggregation.enabled' or 'chart.series.aggregation.enabled' option instead"}})},_rootClassPrefix:"dxrs",_rootClass:"dxrs-range-selector",_dataIsReady:function(){return this._dataIsLoaded()},_initialChanges:["DATA_SOURCE","VALUE"],_themeDependentChanges:["MOSTLY_TOTAL"],_themeSection:"rangeSelector",_fontFields:["scale.label.font","sliderMarker.font"],_initCore:function(){var e,t,n,i,o,a=this,r=a._renderer,s=r.root;s.css({"touch-action":"pan-y"}),a._clipRect=r.clipRect(),e=r.g().attr({class:"dxrs-view"}).append(s),t=r.g().attr({class:"dxrs-slidersContainer","clip-path":a._clipRect.id}).append(s),n=r.g().attr({class:"dxrs-scale","clip-path":a._clipRect.id}).append(s),i=r.g().attr({class:"dxrs-scale-breaks"}).append(s),o=r.g().attr({class:"dxrs-trackers"}).append(s),a._axis=new v({renderer:r,root:n,scaleBreaksGroup:i,updateSelectedRange:function(e){a.setValue($(e))},incidentOccurred:a._incidentOccurred}),a._rangeView=new L.RangeView({renderer:r,root:e,translator:a._axis.getTranslator()}),a._slidersController=new F.SlidersController({renderer:r,root:t,trackersGroup:o,updateSelectedRange:function(e,t){a._rangeOption||a.option(Q,$(e,b.isPlainObject(a._options[Q]))),a._eventTrigger(ne,{value:$(e),previousValue:$(t)})},axis:a._axis,translator:a._axis.getTranslator()}),a._tracker=new V.Tracker({renderer:r,controller:a._slidersController})},_getDefaultSize:function(){return{width:400,height:160}},_disposeCore:function(){this._axis.dispose(),this._slidersController.dispose(),this._tracker.dispose()},_applySize:function(e){this._clientRect=e.slice(),this._change(["MOSTLY_TOTAL"])},_optionChangesMap:{scale:"SCALE",value:"VALUE",dataSource:"DATA_SOURCE"},_optionChangesOrder:["SCALE","DATA_SOURCE"],_change_SCALE:function(){this._change(["MOSTLY_TOTAL"])},_setValueByDataSource:function(){var e=this,t=e._options,n=e._axis;if(t.dataSource){var i=e.option("selectedRangeUpdateMode"),o=e.getValue(),a=W(o[0])&&W(o[1]);if(W(i)?(i=B(i),e.__skipAnimation=!0):a&&(i=ae),"auto"===i&&a){var r=n.allScaleSelected(o);i=r.startValue&&r.endValue?ae:r.endValue?"shift":"keep"}if(i===ae)t[Q]=null;else if("shift"===i&&a){var s=e.getValue();e.__skipAnimation=!0,t[Q]={length:n.getVisualRangeLength({minVisible:s[0],maxVisible:s[1]})}}else"keep"===i&&(e.__skipAnimation=!0)}},_change_DATA_SOURCE:function(){this._options.dataSource&&this._updateDataSource()},_customChangesOrder:["MOSTLY_TOTAL","VALUE","SLIDER_SELECTION"],_change_MOSTLY_TOTAL:function(){this._applyMostlyTotalChange()},_change_SLIDER_SELECTION:function(){var e=this._options[Q];this._slidersController.setSelectedRange(e&&N(e))},_change_VALUE:function(){var e=this,t=e._rangeOption;t&&(e._options[Q]=t,e.setValue(t))},_validateRange:function(e,t){var n=this._axis.getTranslator();(W(e)&&!n.isValid(e)||W(t)&&!n.isValid(t))&&this._incidentOccurred("E2203")},_applyChanges:function(){var e=this,t=e._options[Q];e._changes.has("VALUE")&&t&&(e._rangeOption=t),e.callBase.apply(e,arguments),e._rangeOption=null,e.__isResizing=e.__skipAnimation=!1},_applyMostlyTotalChange:function(){var e,t=this,n=t._renderer,i=t._clientRect,o={left:i[0],top:i[1],width:i[2]-i[0],height:i[3]-i[1]};(t.__isResizing||t.__skipAnimation)&&(e=n.animationEnabled(),n.updateAnimationOptions({enabled:!1})),t._clipRect.attr({x:i[0],y:i[1],width:i[2]-i[0],height:i[3]-i[1]}),t._axis.getTranslator().update(new E.Range,o,{isHorizontal:!0}),t._updateContent({left:i[0],top:i[1],width:i[2]-i[0],height:i[3]-i[1]}),(t.__isResizing||t.__skipAnimation)&&n.updateAnimationOptions({enabled:e}),t._drawn()},_dataSourceChangedHandler:function(){this._setValueByDataSource(),this._requestChange(["MOSTLY_TOTAL"])},_completeSeriesDataSourceCreation:function(e,t){var n=this._clientRect,i={left:n[0],top:n[1],width:n[2]-n[0],height:n[3]-n[1]};this._axis.updateOptions(x({},e,{isHorizontal:!0,label:{}})),t.isShowChart()&&this._axis.setMarginOptions(t.getMarginOptions(i)),this._axis.updateCanvas(i),t.createPoints()},_updateContent:function(e){var t=this,n=t.option("chart"),i=t._createSeriesDataSource(n),o=!(i&&i.isShowChart()||t.option("background.image.url")),r=f(t._getOption("scale"),i&&i.getCalculatedValueType(),t._incidentOccurred,this._getOption("containerBackgroundColor",!0));i&&t._completeSeriesDataSourceCreation(r,i);var u,h,g,_=d(i,r),m=c(r,e.width,t._incidentOccurred,_),v=i&&i.isShowChart()&&i.getThemeManager();v&&s(n&&n.valueAxis,v.getOptions("valueAxis").logarithmBase,t._incidentOccurred),p(r,i,_,m,function(e){return function(t,n,i,o,a){return n&&t&&(!W(a)||a.years||a.months>=6||e/se<K((o-i)/T("year"))+1)&&(n=!1),n}}(e.width)),function(e,t){var n=t.minorTickInterval||t.tickInterval;"datetime"===t.valueType&&(n=k.dateToMilliseconds(n)),e.addRange({interval:n})}(_,r),u=t._prepareSliderMarkersOptions(r,e.width,m,_),h=a(t._renderer,r,u,t.option("indent"),m),g={left:e.left+h.left,top:e.top+h.top,width:e.left+h.left+q(e.width-h.left-h.right,1),height:q(o?R.HEIGHT_COMPACT_MODE:e.height-h.top-h.bottom-l(t._renderer,r,function(e){return e.valueType===Z&&e.marker.visible}(r),m),0),right:0,bottom:0},t._axis.update(r,o,g,_,i),r.minorTickInterval=r.isEmpty?0:r.minorTickInterval,t._updateElements(r,u,o,g,i),v&&v.dispose()},_updateElements:function(e,t,n,i,o){var a=this,r=a._getOption("behavior"),s=a._getOption("shutter"),l=e.type!==ee;s.color=s.color||a._getOption(ie,!0),a._rangeView.update(a.option("background"),a._themeManager.theme("background"),i,n,r.animationEnabled&&a._renderer.animationEnabled(),o),a._isUpdating=!0,a._slidersController.update([i.top,i.top+i.height],r,n,a._getOption("sliderHandle"),t,s,{minRange:l?a.option("scale.minRange"):void 0,maxRange:l?a.option("scale.maxRange"):void 0},a._axis.getFullTicks(),a._getOption("selectedRangeColor",!0)),a._requestChange(["SLIDER_SELECTION"]),a._isUpdating=!1,a._tracker.update(!a._axis.getTranslator().getBusinessRange().isEmpty(),r)},_createSeriesDataSource:function(e){var t,n=this,i=n._dataSourceItems(),o=n._getOption("scale"),a=o.valueType||r(o.startValue,o.endValue),s=new A.Axis({renderer:n._renderer,axisType:"xyAxes",drawingType:"linear"});return s.updateOptions({isHorizontal:!1,label:{},categoriesSortingMethod:n._getOption("chart").valueAxis.categoriesSortingMethod}),(i||e&&e.series)&&(e=x({},e,{theme:n.option("theme")}),t=new H.SeriesDataSource({renderer:n._renderer,dataSource:i,valueType:B(a),axisType:o.type,chart:e,dataSourceField:n.option("dataSourceField"),incidentOccurred:n._incidentOccurred,categories:o.categories,argumentAxis:n._axis,valueAxis:s})),t},_prepareSliderMarkersOptions:function(e,t,n,i){var o=this,a=n.minorTickInterval,r=n.tickInterval,s=r,l=e.endValue,u=e.startValue,c=o._getOption("sliderMarker"),d=!o._getOption("behavior").snapToTicks,h=e.type===J,p=e.valueType===Z;return c.borderColor=o._getOption(ie,!0),c.format||i.isEmpty()||(d&&G(e.startValue)&&(c.format={type:"fixedPoint",precision:function(e,t,n){var i=Math.abs(t-e)/n,o=i-Math.floor(i);return o>0?Math.ceil(Math.abs(S(C.getLog(o,10)))):0}(u,l,t)}),p&&!h&&(W(a)&&0!==a&&(s=function(e,t,n){var i=k.getDateUnitInterval(t),o=k.getDateUnitInterval(e),a=k.dateUnitIntervals.indexOf(i);return n&&i===o&&a>0&&(i=k.dateUnitIntervals[a-1]),i}(r,a,d)),e.marker.visible?c.format=k.getDateFormatByTickInterval(s):W(u)&&W(l)&&(c.format=M.getDateFormatByTickInterval(u,l,s))),p&&h&&n.ticks.length&&(c.format=M.getDateFormatByTicks(n.ticks))),c},getValue:function(){return $(this._slidersController.getSelectedRange())},setValue:function(e){var t,n=N(e);!this._isUpdating&&e&&(this._validateRange(n.startValue,n.endValue),(t=this._slidersController.getSelectedRange())&&t.startValue===n.startValue&&t.endValue===n.endValue||this._slidersController.setSelectedRange(N(e)))},_setContentSize:function(){this.__isResizing=2===this._changes.count(),this.callBase.apply(this,arguments)}});w(["selectedRangeColor","containerBackgroundColor","sliderMarker","sliderHandle","shutter","background","behavior","chart","indent"],function(e,t){de.prototype._optionChangesMap[t]="MOSTLY_TOTAL"}),v.prototype={constructor:v,dispose:function(){this._axis.dispose()},calculateInterval:function(e,t){return this._axis.calculateInterval(e,t)},update:function(e,t,n,i,o){var a=this._axis;a.updateOptions(function(e,t,n,i){return e.marker.label.font=e.label.font,e.color=e.marker.color=e.tick.color,e.opacity=e.marker.opacity=e.tick.opacity,e.width=e.marker.width=e.tick.width,e.placeholderSize=(e.placeholderHeight||0)+i,e.argumentType=e.valueType,e.visible=t,e.isHorizontal=!0,e.calculateMinors=!0,e.semiDiscreteInterval=e.minRange,t||(e.minorTick.length=e.tick.length=n),e.label.indentFromAxis=e.label.topIndent+i,e}(e,t,n.height,n.height/2-Math.ceil(e.width/2))),a.validate(),a.setBusinessRange(i,!0),void 0!==o&&o.isShowChart()&&a.setMarginOptions(o.getMarginOptions(n)),a.draw(n),a.shift({left:0,bottom:-n.height/2+n.top}),a.getMarkerTrackers()&&function(e,t,n){function i(t){var i=t.target.range,o=e.minRange?I(i.startValue,e.minRange):void 0,a=e.maxRange?I(i.startValue,e.maxRange):void 0;o&&o>i.endValue||a&&a<i.endValue||n(i)}w(t,function(e,t){t.on("dxpointerdown",i)})}(e,a.getMarkerTrackers(),this._updateSelectedRangeCallback),a.drawScaleBreaks({start:n.top,end:n.top+n.height})},visualRange:function(){},getViewport:function(){return{}},allScaleSelected:function(e){var t=this._axis.visualRange(),n=t.startValue,i=t.endValue;return{startValue:e[0].valueOf()===n.valueOf(),endValue:e[1].valueOf()===i.valueOf()}}},["setMarginOptions","getFullTicks","updateCanvas","updateOptions","getAggregationInfo","getTranslator","getVisualRangeLength","getVisibleArea","getMarginOptions"].forEach(function(e){v.prototype[e]=function(){var t=this._axis;return t[e].apply(t,arguments)}}),y("dxRangeSelector",de),e.exports=de,de.addPlugin(n(97).plugin),de.addPlugin(n(106).plugin),de.addPlugin(n(121).plugin),de.addPlugin(n(145).plugin)},function(e,t,n){function i(e,t,n,i){return[e,t,n,t,n,i,e,i]}function o(e){return e&&e.valueOf()}function a(e,t){return e<t}function r(e,t){return e>t}function s(e,t){for(var n,i=0,o=t?t.length-1:0,a=e;o-i>1;){if((a=t[n=i+o>>1])===e)return e;e<a?o=n:i=n}return t&&(a=t[e-t[i]<=t[o]-e?i:o]),a}function l(){this._lastSelectedRange=this.getSelectedRange(),delete this._processSelectionChanged}function u(e){var t=this,n={renderer:e.renderer,root:e.root,trackersGroup:e.trackersGroup,translator:e.translator};t._params=e,t._areaTracker=e.renderer.path(null,"area").attr({class:"area-tracker",fill:"#000000",opacity:1e-4}).append(e.trackersGroup),t._selectedAreaTracker=e.renderer.path(null,"area").attr({class:"selected-area-tracker",fill:"#000000",opacity:1e-4}).append(e.trackersGroup),t._shutter=e.renderer.path(null,"area").append(e.root),t._sliders=[new f(n,0),new f(n,1)],t._processSelectionChanged=l}var c=n(4).noop,d=n(207),h=d.utils.animationSettings,p=d.consts.emptySliderMarkerText,f=n(800),g=n(11).normalizeEnum,_=n(1).isNumeric,m=n(11),v=n(29).adjust;u.prototype={constructor:u,dispose:function(){this._sliders[0].dispose(),this._sliders[1].dispose()},getTrackerTargets:function(){return{area:this._areaTracker,selectedArea:this._selectedAreaTracker,sliders:this._sliders}},_processSelectionChanged:function(){var e=this,t=e.getSelectedRange();o(t.startValue)===o(e._lastSelectedRange.startValue)&&o(t.endValue)===o(e._lastSelectedRange.endValue)||(e._params.updateSelectedRange(t,e._lastSelectedRange),e._lastSelectedRange=t)},update:function(e,t,n,o,a,r,s,l,u){var c=this,d=c._params.translator.getScreenRange();c._verticalRange=e,c._minRange=s.minRange,c._maxRange=s.maxRange,c._animationEnabled=t.animationEnabled&&c._params.renderer.animationEnabled(),c._allowSlidersSwap=t.allowSlidersSwap,c._sliders[0].update(e,o,a),c._sliders[1].update(e,o,a),c._sliders[0]._position=c._sliders[1]._position=d[0],c._values=!c._params.translator.isValueProlonged&&t.snapToTicks?l:null,c._areaTracker.attr({points:i(d[0],e[0],d[1],e[1])}),c._isCompactMode=n,c._shutterOffset=o.width/2,c._updateSelectedView(r,u),c._isOnMoving="onmoving"===g(t.callValueChanged),c._updateSelectedRange(),c._applyTotalPosition(!1)},_updateSelectedView:function(e,t){var n={fill:null,"fill-opacity":null,stroke:null,"stroke-width":null};this._isCompactMode?(n.stroke=t,n["stroke-width"]=3,n.sharp="v"):(n.fill=e.color,n["fill-opacity"]=e.opacity),this._shutter.attr(n)},_updateSelectedRange:function(){var e=this,t=e._sliders;t[0].cancelAnimation(),t[1].cancelAnimation(),e._shutter.stopAnimation(),e._params.translator.getBusinessRange().isEmpty()?(t[0]._setText(p),t[1]._setText(p),t[0]._value=t[1]._value=void 0,t[0]._position=e._params.translator.getScreenRange()[0],t[1]._position=e._params.translator.getScreenRange()[1],e._applyTotalPosition(!1),function(e){e.setSelectedRange=c,e._processSelectionChanged===l&&e._processSelectionChanged()}(e)):function(e){delete e.setSelectedRange}(e)},_applyTotalPosition:function(e){var t,n=this._sliders;e=this._animationEnabled&&e,n[0].applyPosition(e),n[1].applyPosition(e),t=n[0].getCloudBorder()>n[1].getCloudBorder(),n[0].setOverlapped(t),n[1].setOverlapped(t),this._applyAreaTrackersPosition(),this._applySelectedRangePosition(e)},_applyAreaTrackersPosition:function(){var e=this,t=e._sliders[0].getPosition(),n=e._sliders[1].getPosition();e._selectedAreaTracker.attr({points:i(t,e._verticalRange[0],n,e._verticalRange[1])}).css({cursor:Math.abs(e._params.translator.getScreenRange()[1]-e._params.translator.getScreenRange()[0]-n+t)<.001?"default":"pointer"})},_applySelectedRangePosition:function(e){var t,n,o=this,a=o._verticalRange,r=o._sliders[0].getPosition(),s=o._sliders[1].getPosition();o._isCompactMode?n=[r+Math.ceil(o._shutterOffset),(a[0]+a[1])/2,s-Math.floor(o._shutterOffset),(a[0]+a[1])/2]:n=[i((t=o._params.axis.getVisibleArea())[0],a[0],Math.max(r-Math.floor(o._shutterOffset),t[0]),a[1]),i(t[1],a[0],Math.min(s+Math.ceil(o._shutterOffset),t[1]),a[1])],e?o._shutter.animate({points:n},h):o._shutter.attr({points:n})},getSelectedRange:function(){return{startValue:this._sliders[0].getValue(),endValue:this._sliders[1].getValue()}},setSelectedRange:function(e){e=e||{};var t=this,n=t._params.translator,i=n.getBusinessRange(),o="discrete"===i.axisType?function(e,t){return e<t}:function(e,t){return e<=t},a=m.adjustVisualRange({dataType:i.dataType,axisType:i.axisType,base:i.base},{startValue:n.isValid(e.startValue)?n.getCorrectValue(e.startValue,1):void 0,endValue:n.isValid(e.endValue)?n.getCorrectValue(e.endValue,-1):void 0,length:e.length},{min:i.minVisible,max:i.maxVisible,categories:i.categories}),r=a.startValue,s=a.endValue;r=_(r)?v(r):r,s=_(s)?v(s):s;var l=o(n.to(r,-1),n.to(s,1))?[r,s]:[s,r];t._sliders[0].setDisplayValue(l[0]),t._sliders[1].setDisplayValue(l[1]),t._sliders[0]._position=n.to(l[0],-1),t._sliders[1]._position=n.to(l[1],1),t._applyTotalPosition(!0),t._processSelectionChanged()},beginSelectedAreaMoving:function(e){function t(e){e!==a&&e>a==e>(i[0].getPosition()+i[1].getPosition())/2-o&&n._moveSelectedArea(e+o,!1),a=e}var n=this,i=n._sliders,o=(i[0].getPosition()+i[1].getPosition())/2-e,a=e;return t.complete=function(){n._dockSelectedArea()},t},_dockSelectedArea:function(){var e=this._params.translator,t=this._sliders;t[0]._position=e.to(t[0].getValue(),-1),t[1]._position=e.to(t[1].getValue(),1),this._applyTotalPosition(!0),this._processSelectionChanged()},moveSelectedArea:function(e){this._moveSelectedArea(e,!0),this._dockSelectedArea()},_moveSelectedArea:function(e,t){var n,i=this,o=i._params.translator,a=i._sliders,r=a[1].getPosition()-a[0].getPosition(),l=e-r/2,u=e+r/2;l<o.getScreenRange()[0]&&(u=(l=o.getScreenRange()[0])+r),u>o.getScreenRange()[1]&&(l=(u=o.getScreenRange()[1])-r),n=s(o.from(l,-1),i._values),a[0].setDisplayValue(n),a[1].setDisplayValue(s(o.from(o.to(n,-1)+r,1),i._values)),a[0]._position=l,a[1]._position=u,i._applyTotalPosition(t),i._isOnMoving&&i._processSelectionChanged()},placeSliderAndBeginMoving:function(e,t){var n,i=this,o=i._params.translator,l=i._sliders,u=e<t?0:1,c=u>0?1:-1,d=u>0?r:a,h=u>0?a:r,p=[],f=[];return f[u]=o.from(e,c),f[1-u]=o.from(t,-c),p[1-u]=t,o.isValueProlonged&&(d(e,o.to(f[u],c))&&(f[u]=o.from(e,-c)),d(t,o.to(f[u],-c))&&(f[1-u]=f[u])),i._minRange&&(d(t,o.to(o.add(s(f[u],i._values),i._minRange,-c),-c))&&(f[1-u]=o.add(f[u],i._minRange,-c)),h(e,o.to(o.add(o.getRange()[1-u],i._minRange,c),-c))&&(f[1-u]=o.getRange()[1-u],f[u]=o.add(f[1-u],i._minRange,c),p[1-u]=e)),f[0]=s(f[0],i._values),f[1]=s(f[1],i._values),p[u]=o.to(f[u],c),l[0].setDisplayValue(f[0]),l[1].setDisplayValue(f[1]),l[0]._position=p[0],l[1]._position=p[1],i._applyTotalPosition(!0),i._isOnMoving&&i._processSelectionChanged(),n=i.beginSliderMoving(1-u,t),l[1-u]._sliderGroup.stopAnimation(),i._shutter.stopAnimation(),n(t),n},beginSliderMoving:function(e,t){function n(e){var t,n,a,r,y;e!==p&&(g(e+v,h)&&((t=i._allowSlidersSwap)&&!o.isValueProlonged&&i._minRange&&(t=o.isValid(o.add(l[1-d].getValue(),i._minRange,-f))),t&&(i._changeMovingSlider(d),d=1-d,n=g,g=_,_=n,m=-(f=-f)*Math.abs(m),v=-m)),_(e+m,h)&&(t=!0,r=l[d],y=l[1-d].getValue(),a=Math.max(Math.min(e+m,c),u),t&&o.isValueProlonged&&(t=!g(a,o.to(y,f))),t&&i._minRange&&(t=!g(a,o.to(o.add(y,i._minRange,f),f))),t&&i._maxRange&&(t=!_(a,o.to(o.add(y,i._maxRange,f),f))),r._setValid(t),r.setDisplayValue(t?s(o.from(a,f),i._values):r.getValue()),r._position=a,i._applyTotalPosition(!1),r.toForeground(),i._isOnMoving&&i._processSelectionChanged())),p=e}var i=this,o=i._params.translator,l=i._sliders,u=o.getScreenRange()[0],c=o.getScreenRange()[1],d=e,h=l[1-d].getPosition(),p=t,f=d>0?1:-1,g=d>0?a:r,_=d>0?r:a,m=l[d].getPosition()-t,v=g(l[d].getPosition(),t)?-m:m;return n.complete=function(){l[d]._setValid(!0),i._dockSelectedArea()},n},_changeMovingSlider:function(e){var t,n=this,i=n._params.translator,o=n._sliders,a=o[1-e].getPosition(),r=e>0?1:-1;o[e].setDisplayValue(s(i.from(a,r),n._values)),t=i.from(a,-r),i.isValueProlonged?t=i.from(a,r):n._minRange&&(t=i.add(t,n._minRange,-r)),o[1-e].setDisplayValue(s(t,n._values)),o[e]._setValid(!0),o[e]._marker._update(),o[0]._position=o[1]._position=a},foregroundSlider:function(e){this._sliders[e].toForeground()}},t.SlidersController=u},function(e,t,n){function i(e,t){var n=this;n._translator=e.translator,n._sliderGroup=e.renderer.g().attr({class:"slider"}).append(e.root),n._line=e.renderer.path(null,"line").append(n._sliderGroup),n._marker=new s(e.renderer,n._sliderGroup,1===t),n._tracker=e.renderer.rect().attr({class:"slider-tracker",fill:"#000000",opacity:1e-4}).css({cursor:"w-resize"}).append(e.trackersGroup)}var o=n(207),a=o.utils.animationSettings,r=o.formatValue,s=n(801),l=n(44),u=8,c=20;i.prototype={constructor:i,cancelAnimation:function(){this._sliderGroup.stopAnimation(),this._tracker.stopAnimation()},applyPosition:function(e){var t=this,n=t._sliderGroup,i=t._tracker,o={translateX:t._position};t._marker.setPosition(t._position),e?(n.animate(o,a),i.animate(o,a)):(n.attr(o),i.attr(o))},_setValid:function(e){this._marker.setValid(e),this._line.attr({stroke:this._colors[Number(e)]})},_setText:function(e){this._marker.setText(e)},update:function(e,t,n){var i=this;i._formatOptions={format:n.format,customizeText:n.customizeText},i._marker.applyOptions(n,i._translator.getScreenRange()),i._colors=[n.invalidRangeColor,t.color],i._sliderGroup.attr({translateY:e[0]}),i._line.attr({"stroke-width":t.width,stroke:t.color,"stroke-opacity":t.opacity,sharp:"h",points:[0,0,0,e[1]-e[0]]});var o=function(e){return l.touchEvents||l.pointer?c:u<e?e:u}(t.width);i._tracker.attr({x:-o/2,y:0,width:o,height:e[1]-e[0],translateY:e[0]})},toForeground:function(){this._sliderGroup.toForeground()},getSliderTracker:function(){return this._tracker},getPosition:function(){return this._position},setDisplayValue:function(e){this._value=e,this._setText(r(e,this._formatOptions))},setOverlapped:function(e){this._marker.setOverlapped(e)},getValue:function(){return this._value},on:function(e,t){this._tracker.on(e,t),this._marker.getTracker().on(e,t)},getCloudBorder:function(){return this._marker.getBorderPosition()},dispose:function(){this._marker.dispose()}},e.exports=i},function(e,t,n){function i(e,t,n){var i=this;i._isLeftPointer=n,i._isOverlapped=!1,i._group=e.g().attr({class:"slider-marker"}).append(t),i._area=e.path(null,"area").append(i._group),i._label=e.text().attr({align:"left"}).append(i._group),i._tracker=e.rect().attr({class:"slider-marker-tracker",fill:"#000000",opacity:1e-4}).css({cursor:"pointer"}).append(i._group),i._border=e.rect(0,0,1,0)}var o=n(11).patchFontOptions,a=n(207).consts.pointerSize;i.prototype={constructor:i,_getRectSize:function(e){return{width:Math.round(2*this._paddingLeftRight+e.width),height:Math.round(2*this._paddingTopBottom+e.height)}},_getTextSize:function(){var e=this._label.getBBox();return!this._textHeight&&isFinite(e.height)&&(this._textHeight=e.height),{width:e.width,height:this._textHeight,y:e.y}},_getAreaPointsInfo:function(e){var t=this,n=t._getRectSize(e),i=n.width,o=n.height,r=-i,s=0,l=a,u=0,c=-a,d=t._position,h=t._isLeftPointer,p=function(){r++,s++,l++,u++,c++},f=function(){l>s?l=s:c<r&&(c=r),h&&p()},g=d;return h?d>t._range[1]-i?(s=-d+t._range[1],r=s-i,f(),g+=r):(r=c=0,s=i):d-t._range[0]<i?(r=-(d-t._range[0]),s=r+i,f(),g+=s):(l=0,p()),t._borderPosition=g,{offset:r,isCut:(!h||u!==c)&&(h||u!==l),points:[r,0,s,0,s,o,l,o,u,o+a,c,o,r,o]}},_update:function(){function e(e,t){var n,i,r;t=t||o._getRectSize(e),o._group.attr({translateY:-(t.height+a)}),n=(i=o._getAreaPointsInfo(e)).points,r=i.offset,o._area.attr({points:n}),o._border.attr({x:o._isLeftPointer?n[0]-1:n[2],height:i.isCut?t.height:t.height+a}),o._tracker.attr({translateX:r,width:t.width,height:t.height+a}),o._label.attr({translateX:o._paddingLeftRight+r,translateY:t.height/2-(e.y+e.height/2)})}var t,n,i,o=this;clearTimeout(o._timeout),o._label.attr({text:o._text||""}),n=o._getTextSize(),i=o._getRectSize(n),t=o._textSize||n,t=o._textSize=n.width>t.width||n.height>t.height?n:t,o._timeout=setTimeout(function(){e(n,i),o._textSize=n},75),e(t)},setText:function(e){this._text=e},setPosition:function(e){this._position=e,this._update()},applyOptions:function(e,t){var n=this;n._range=t,n._paddingLeftRight=e.paddingLeftRight,n._paddingTopBottom=e.paddingTopBottom,n._textHeight=null,n._colors=[e.invalidRangeColor,e.color],n._area.attr({fill:e.color}),n._border.attr({fill:e.borderColor}),n._label.css(o(e.font)),n._update()},getTracker:function(){return this._tracker},setValid:function(e){this._area.attr({fill:this._colors[Number(e)]})},setColor:function(e){this._area.attr({fill:e})},dispose:function(){clearTimeout(this._timeout)},setOverlapped:function(e){var t=this;t._isOverlapped!==e&&(e?t._border.append(t._group):t._isOverlapped&&t._border.remove(),t._isOverlapped=e)},getBorderPosition:function(){return this._borderPosition}},e.exports=i},function(e,t,n){function i(e){var t=e||g.event,n=t.originalEvent,i=t.touches,o=!!n&&n.pointerType,a=!!n&&n.touches,r=n&&void 0!==o&&(o===(n.MSPOINTER_TYPE_TOUCH||"touch")||o===(n.MSPOINTER_TYPE_MOUSE||"mouse")&&1===n.buttons),s=i&&i.length>0||a&&a.length>0;return 1===t.which||r||s}function o(e){var t=e.originalEvent,n=e.touches,i=t&&t.touches;return n&&n.length>1||i&&i.length>1||null}function a(e){o(e)||e.preventDefault()}function r(e){o(e)||(e.stopPropagation(),e.preventDefault())}function s(e){return e&&e.type&&0===e.type.indexOf("touch")}function l(e){var t=e.originalEvent,n=0;return e.pageX?n=e.pageX:t&&t.pageX&&(n=t.pageX),t&&t.touches&&(t.touches.length>0?n=t.touches[0].pageX:t.changedTouches.length>0&&(n=t.changedTouches[0].pageX)),n}function u(e,t,n,o){function a(){c&&(c=!1,d&&(d.complete(),d=null))}var r,u,c=!1,d=null,h={};return h[f.move]=function(t){var h,p;r===s(t)&&(i(t)||a(),c&&(h=l(t),p=o(),d?d(h-p):n.manualRangeSelectionEnabled&&Math.abs(u-h)>=y&&(d=e.placeSliderAndBeginMoving(u-p,h-p))))},h[f.up]=function(t){var i;c&&(i=l(t),!d&&n.moveSelectedRangeByClick&&Math.abs(u-i)<y&&e.moveSelectedArea(i-o()),a())},t.on(f.down,function(e){n.enabled&&i(e)&&!c&&(c=!0,r=s(e),u=l(e))}),h}function c(e,t,n,o){function u(){d&&(d=!1,h.complete(),h=null)}var c,d=!1,h=null,p={};return p[f.move]=function(e){c===s(e)&&(i(e)||u(),d&&(a(e),h(l(e)-o())))},p[f.up]=u,t.on(f.down,function(t){n.enabled&&i(t)&&!d&&(d=!0,c=s(t),h=e.beginSelectedAreaMoving(l(t)-o()),r(t))}),p}function d(e,t,n,o){function u(){d&&(d=!1,h.complete(),h=null)}var c,d=!1,h=null,p={};return p[f.move]=function(e){c===s(e)&&(i(e)||u(),d&&(a(e),h(l(e)-o())))},p[f.up]=u,m(t,function(t,a){var u={};u[f.down]=function(a){n.enabled&&i(a)&&!d&&(d=!0,c=s(a),h=e.beginSliderMoving(t,l(a)-o()),r(a))},u[f.move]=function(){h||e.foregroundSlider(t)},a.on(u)}),p}function h(e){function t(){return e.renderer.getRootOffset().left}var n=this._state={},i=e.controller.getTrackerTargets();v&&e.renderer.root.css({msTouchAction:"pinch-zoom"}),this._docEvents=[c(e.controller,i.selectedArea,n,t),u(e.controller,i.area,n,t),d(e.controller,i.sliders,n,t)],m(this._docEvents,function(e,t){p.on(_.getDocument(),t)})}var p=n(5),f=n(24),g=n(7).getWindow(),_=n(12),m=n(3).each,v=n(44).pointer,y=10;h.prototype={constructor:h,dispose:function(){m(this._docEvents,function(e,t){p.off(_.getDocument(),t)})},update:function(e,t){var n=this._state;n.enabled=e,n.moveSelectedRangeByClick=t.moveSelectedRangeByClick,n.manualRangeSelectionEnabled=t.manualRangeSelectionEnabled}},t.Tracker=h},function(e,t,n){function i(e,t){return void 0!==e?e:t}function o(e){this._params=e,this._clipRect=e.renderer.clipRect(),e.root.attr({"clip-path":this._clipRect.id})}o.prototype={constructor:o,update:function(e,t,n,o,a,r){var s=this._params.renderer,l=this._params.root,u=n.width-n.left;e=e||{},l.clear(),this._clipRect.attr({x:n.left,y:n.top,width:u,height:n.height}),o||(i(e.visible,t.visible)&&(e.color&&s.rect(n.left,n.top,u+1,n.height).attr({fill:i(e.color,t.color),class:"dx-range-selector-background"}).append(l),e.image&&e.image.url&&s.image(n.left,n.top,u+1,n.height,e.image.url,i(e.image.location,t.image.location)).append(l)),r&&r.isShowChart()&&function(e,t,n,i){var o=t.getSeries();if(o.length){var a=o[0].getValueAxis();a.updateCanvas({top:n.top,bottom:0,height:n.height+n.top}),t.adjustSeriesDimensions();var r=t.getBoundRange().val;r.sortCategories(a.getCategoriesSorter()),a.setBusinessRange(r),o.forEach(function(t){t._extGroups.seriesGroup=t._extGroups.labelsGroup=e,t.draw(i)})}}(s.g().attr({class:"dxrs-series-group"}).append(l),r,n,a))}},t.RangeView=o},function(e,t,n){var i,o=n(265),a=n(401),r=n(1),s=n(0).extend,l=n(13).inArray,u=n(3).each,c=n(11),d=n(109),h=n(263),p=n(394).ThemeManager,f=function(e,t,n,i,o,r){var s=[],c=[];return u(e,function(e,t){-1===l(t.type,c)&&c.push(t.type)}),u(c,function(l,u){var c=new a.SeriesFamily({type:u,equalBarWidth:t,minBubbleSize:n,maxBubbleSize:i,barWidth:o.barWidth,barGroupPadding:o.barGroupPadding,barGroupWidth:o.barGroupWidth,negativesAsZeroes:r});c.add(e),c.adjustSeriesValues(),s.push(c)}),s};(i=function(e){var t,n,i=this,o=i._themeManager=function(e){return new p({options:e,themeSection:"rangeSelector.chart",fontFields:["commonSeriesSettings.label.font"]})}(e.chart);o.setTheme(e.chart.theme),t=o.getOptions("topIndent"),n=o.getOptions("bottomIndent"),i._indent={top:t>=0&&t<1?t:0,bottom:n>=0&&n<1?n:0},i._valueAxis=o.getOptions("valueAxisRangeSelector")||{},i._hideChart=!1,i._series=i._calculateSeries(e),i._seriesFamilies=[]}).prototype={constructor:i,_calculateSeries:function(e){var t,n,i,a,r,l,u,d=this,p=[],f=e.dataSource||[],g=d._themeManager,_=g.getOptions("seriesTemplate"),m=_?c.processSeriesTemplate(_,f):e.chart.series,v=d._valueAxis;for(e.dataSource&&!m&&(m={argumentField:a=e.dataSourceField||"arg",valueField:a},d._hideChart=!0),m=Array.isArray(m)?m:m?[m]:[],r=0;r<m.length;r++)(t=s(!0,{},m[r])).rotated=!1,(n=g.getOptions("series",t,m.length)).argumentField=n.argumentField||e.dataSourceField,n.name||(n.name="Series "+(r+1).toString()),f&&f.length>0&&(l=new o.Series({renderer:e.renderer,argumentAxis:e.argumentAxis,valueAxis:e.valueAxis,incidentOccurred:e.incidentOccurred},n),p.push(l));if(p.length)for(u={groups:[{series:p,valueOptions:{type:v.type,valueType:a?e.valueType:v.valueType}}],argumentOptions:{categories:e.categories,argumentType:e.valueType,type:e.axisType}},i=h.validateData(f,u,e.incidentOccurred,g.getOptions("dataPrepareSettings")),d.argCategories=u.categories,r=0;r<p.length;r++)p[r].updateData(i[p[r].getArgumentField()]);return p},createPoints:function(){if(0!==this._series.length){var e=this._series,t=new d.Range,n=e[0].getArgumentAxis(),i=this._themeManager,o=i.getOptions("negativesAsZeroes"),a=i.getOptions("negativesAsZeros");e.forEach(function(e){t.addRange(e.getArgumentRange())}),n.getTranslator().updateBusinessRange(t),e.forEach(function(e){e.createPoints()}),this._seriesFamilies=f(e,i.getOptions("equalBarWidth"),i.getOptions("minBubbleSize"),i.getOptions("maxBubbleSize"),{barWidth:i.getOptions("barWidth"),barGroupPadding:i.getOptions("barGroupPadding"),barGroupWidth:i.getOptions("barGroupWidth")},r.isDefined(o)?o:a)}},adjustSeriesDimensions:function(){u(this._seriesFamilies,function(e,t){t.adjustSeriesDimensions()})},getBoundRange:function(){var e,t,n,i,o,a=this,s=a._valueAxis,l=new d.Range({min:s.min,minVisible:s.min,max:s.max,maxVisible:s.max,axisType:s.type,base:s.logarithmBase}),c=new d.Range({});return u(a._series,function(t,n){e=n.getRangeData(),l.addRange(e.val),c.addRange(e.arg)}),l.isEmpty()||c.isEmpty()||(i=s.inverted?a._indent.top:a._indent.bottom,o=s.inverted?a._indent.bottom:a._indent.top,t=l.max-l.min,n=(r.isNumeric(l.maxVisible)?l.maxVisible:l.max)-(r.isNumeric(l.minVisible)?l.minVisible:l.min),r.isDate(l.min)?l.min=new Date(l.min.valueOf()-t*i):l.min-=t*i,r.isDate(l.max)?l.max=new Date(l.max.valueOf()+t*o):l.max+=t*o,r.isNumeric(n)&&(l.maxVisible=l.maxVisible?l.maxVisible+n*o:void 0,l.minVisible=l.minVisible?l.minVisible-n*i:void 0),l.invert=s.inverted),{arg:c,val:l}},getMarginOptions:function(e){var t=Math.min(e.width,e.height)*this._themeManager.getOptions("maxBubbleSize");return this._series.reduce(function(e,n){var i=n.getMarginOptions();return!0===i.processBubbleSize&&(i.size=t),c.mergeMarginOptions(e,i)},{})},getSeries:function(){return this._series},isEmpty:function(){return 0===this.getSeries().length},isShowChart:function(){return!this._hideChart},getCalculatedValueType:function(){var e=this._series[0];return e&&e.argumentType},getThemeManager:function(){return this._themeManager}},t.SeriesDataSource=i},function(e,t,n){e.exports=n(806)},function(e,t,n){var i=n(11).parseScalar,o=n(407),a=n(807),r=n(808),s=n(809),l=n(810),u=n(811),c=n(812),d=n(813),h=n(814),p=1,f=/^layers/,g=/\.dataSource$/;n(409);var _=n(98).inherit({_eventsMap:{onClick:{name:"click"},onCenterChanged:{name:"centerChanged"},onZoomFactorChanged:{name:"zoomFactorChanged"},onHoverChanged:{name:"hoverChanged"},onSelectionChanged:{name:"selectionChanged"}},_rootClassPrefix:"dxm",_rootClass:"dxm-vector-map",_themeSection:"map",_fontFields:["layer:area.label.font","layer:marker:dot.label.font","layer:marker:bubble.label.font","layer:marker:pie.label.font","layer:marker:image.label.font","legend.font","legend.title.font","legend.title.subtitle.font"],_initLayerCollection:function(e){var t=this;t._layerCollection=new d.MapLayerCollection({renderer:t._renderer,projection:t._projection,themeManager:t._themeManager,tracker:t._tracker,dataKey:e,eventTrigger:t._eventTrigger,dataExchanger:t._dataExchanger,tooltip:t._tooltip,notifyDirty:t._notifyDirty,notifyReady:t._notifyReady})},_initLegendsControl:function(){var e=this;e._legendsControl=new u.LegendsControl({renderer:e._renderer,container:e._root,layoutControl:e._layoutControl,themeManager:e._themeManager,dataExchanger:e._dataExchanger,notifyDirty:e._notifyDirty,notifyReady:e._notifyReady})},_initControlBar:function(e){var t=this;t._controlBar=new a.ControlBar({renderer:t._renderer,container:t._root,layoutControl:t._layoutControl,projection:t._projection,tracker:t._tracker,dataKey:e})},_initElements:function(){var e=this,t="vectormap-data-"+p++,n=0,i=!0;e._notifyDirty=function(){e._resetIsReady(),++n},e._notifyReady=function(){i=!1,0==--n&&e._drawn()},e._dataExchanger=new l.DataExchanger,e._projection=new o.Projection({centerChanged:function(t){i||e._eventTrigger("centerChanged",{center:t})},zoomChanged:function(t){i||e._eventTrigger("zoomFactorChanged",{zoomFactor:t})}}),e._tracker=new s.Tracker({root:e._root,projection:e._projection,dataKey:t}),e._gestureHandler=new r.GestureHandler({projection:e._projection,renderer:e._renderer,tracker:e._tracker}),e._layoutControl=new c.LayoutControl,e._layoutControl.suspend(),e._initLayerCollection(t),e._initControlBar(t),e._initLegendsControl(),e._tooltipViewer=new h.TooltipViewer({tracker:e._tracker,tooltip:e._tooltip,layerCollection:e._layerCollection})},_change_RESUME_LAYOUT:function(){this._layoutControl.resume()},_initialChanges:["PROJECTION","RESUME_LAYOUT","LAYOUT_INIT","BOUNDS","MAX_ZOOM_FACTOR","ZOOM_FACTOR","CENTER"],_layoutChangesOrder:["RESUME_LAYOUT","LAYERS"],_initCore:function(){this._root=this._renderer.root.attr({align:"center",cursor:"default"}),this._initElements()},_disposeCore:function(){var e=this;e._controlBar.dispose(),e._gestureHandler.dispose(),e._tracker.dispose(),e._legendsControl.dispose(),e._layerCollection.dispose(),e._layoutControl.dispose(),e._tooltipViewer.dispose(),e._dataExchanger.dispose(),e._projection.dispose(),e._dataExchanger=e._gestureHandler=e._projection=e._tracker=e._layoutControl=e._root=e._layerCollection=e._controlBar=e._legendsControl=null},_setupInteraction:function(){var e={centeringEnabled:!!i(this._getOption("panningEnabled",!0),!0),zoomingEnabled:!!i(this._getOption("zoomingEnabled",!0),!0)};this._gestureHandler.setInteraction(e),this._controlBar.setInteraction(e)},_getDefaultSize:function(){return{width:800,height:400}},_applySize:function(e){var t={left:e[0],top:e[1],width:e[2]-e[0],height:e[3]-e[1],right:0,bottom:0};this._projection.setSize(t),this._layoutControl.setSize(t),this._layerCollection.setRect([t.left,t.top,t.width,t.height])},_optionChanging:function(e,t,n){t&&n&&f.test(e)&&(t.dataSource&&n.dataSource&&t!==n?t.dataSource=null:g.test(e)&&this.option(e,null))},_applyChanges:function(){this._notifyDirty(),this.callBase.apply(this,arguments),this._notifyReady()},_optionChangesMap:{background:"BACKGROUND",layers:"LAYERS",controlBar:"CONTROL_BAR",legends:"LEGENDS",touchEnabled:"TRACKER",wheelEnabled:"TRACKER",panningEnabled:"INTERACTION",zoomingEnabled:"INTERACTION",projection:"PROJECTION",bounds:"BOUNDS",maxZoomFactor:"MAX_ZOOM_FACTOR",zoomFactor:"ZOOM_FACTOR",center:"CENTER"},_optionChangesOrder:["PROJECTION","BOUNDS","MAX_ZOOM_FACTOR","ZOOM_FACTOR","CENTER","BACKGROUND","CONTROL_BAR","LEGENDS","TRACKER","INTERACTION"],_change_PROJECTION:function(){this._setProjection()},_change_BOUNDS:function(){this._setBounds()},_change_MAX_ZOOM_FACTOR:function(){this._setMaxZoom()},_change_ZOOM_FACTOR:function(){this._setZoom()},_change_CENTER:function(){this._setCenter()},_change_BACKGROUND:function(){this._setBackgroundOptions()},_change_LAYERS:function(){this._setLayerCollectionOptions()},_change_CONTROL_BAR:function(){this._setControlBarOptions()},_change_LEGENDS:function(){this._setLegendsOptions()},_change_TRACKER:function(){this._setTrackerOptions()},_change_INTERACTION:function(){this._setupInteraction()},_themeDependentChanges:["BACKGROUND","LAYERS","CONTROL_BAR","LEGENDS","TRACKER","INTERACTION"],_setProjection:function(){this._projection.setEngine(this.option("projection"))},_setBounds:function(){this._projection.setBounds(this.option("bounds"))},_setMaxZoom:function(){this._projection.setMaxZoom(this.option("maxZoomFactor"))},_setZoom:function(){this._projection.setZoom(this.option("zoomFactor"))},_setCenter:function(){this._projection.setCenter(this.option("center"))},_setBackgroundOptions:function(){this._layerCollection.setBackgroundOptions(this._getOption("background"))},_setLayerCollectionOptions:function(){this._layerCollection.setOptions(this.option("layers"))},_setControlBarOptions:function(){this._controlBar.setOptions(this._getOption("controlBar"))},_setLegendsOptions:function(){this._legendsControl.setOptions(this.option("legends"))},_setTrackerOptions:function(){this._tracker.setOptions({touchEnabled:this._getOption("touchEnabled",!0),wheelEnabled:this._getOption("wheelEnabled",!0)})},getLayers:function(){var e,t=this._layerCollection.items(),n=[],i=n.length=t.length;for(e=0;e<i;++e)n[e]=t[e].proxy;return n},getLayerByIndex:function(e){var t=this._layerCollection.byIndex(e);return t?t.proxy:null},getLayerByName:function(e){var t=this._layerCollection.byName(e);return t?t.proxy:null},clearSelection:function(e){var t,n=this._layerCollection.items(),i=n.length;for(t=0;t<i;++t)n[t].clearSelection(e);return this},center:function(e){var t=this;return void 0===e?t._projection.getCenter():(t._projection.setCenter(e),t)},zoomFactor:function(e){var t=this;return void 0===e?t._projection.getZoom():(t._projection.setZoom(e),t)},viewport:function(e){var t=this;return void 0===e?t._projection.getViewport():(t._projection.setViewport(e),t)},convertCoordinates:function(e){return e=e&&e.length?e:[e,arguments[1]],this._projection.fromScreenPoint(e)}});n(8)("dxVectorMap",_),e.exports=_,_.addPlugin(n(97).plugin),_.addPlugin(n(106).plugin),_.addPlugin(n(108).plugin),_.addPlugin(n(121).plugin)},function(e,t,n){function i(e){var t=this;t._params=e,t._createElements(e.renderer,e.container,e.dataKey),e.layoutControl.addItem(t),t._subscribeToProjection(e.projection),t._subscribeToTracker(e.tracker),t._createCallbacks(e.projection)}function o(e){delete e._owner,e.update=function(){},e.finish=function(){}}function a(e,t){this._owner=e,this._command=t}function r(e,t,n){this._command=t;var i=null,o=100,a=0,r=0;switch(this._command){case b:r=-10;break;case x:a=10;break;case w:r=10;break;case C:a=-10}this._stop=function(){return clearTimeout(i),e._callbacks.endMove(),this._stop=e=null,this},e._callbacks.beginMove(),function t(){e._callbacks.move([a,r]),i=setTimeout(t,o)}()}function s(e,t){this._owner=e,this._command=t;var n=null,i=150,o=this._command===k?1:-1;this._stop=function(){return clearTimeout(n),this._stop=e=null,this},function t(){e._adjustZoom(e._zoomFactor+o),n=setTimeout(t,i)}()}function l(e,t,n){this._owner=e,this._zoomFactor=e._zoomFactor,this._pos=n.y}var u=Math,c=u.min,d=u.max,h=u.round,p=u.floor,f=u.sqrt,g=n(11),_=g.parseScalar,m=g.enumParser(["left","center","right"]),v=g.enumParser(["top","bottom"]),y="command-reset",b="command-move-up",x="command-move-right",w="command-move-down",C="command-move-left",k="command-zoom-in",S="command-zoom-out",I="command-zoom-drag",T="control-bar",D={bigCircleSize:58,smallCircleSize:28,buttonSize:10,arrowButtonOffset:20,incDecButtonSize:11,incButtonOffset:66,decButtonOffset:227,sliderLineStartOffset:88.5,sliderLineEndOffset:205.5,sliderLength:20,sliderWidth:8,trackerGap:4},E={};E[y]=a,E[b]=E[x]=E[w]=E[C]=r,E[k]=E[S]=s,E[I]=l,i.prototype={constructor:i,_flags:0,dispose:function(){var e=this;e._params.layoutControl.removeItem(e),e._root.linkRemove().linkOff(),e._offProjection(),e._offTracker(),e._params=e._root=e._offProjection=e._offTracker=e._callbacks=null},_subscribeToProjection:function(e){function t(){n._adjustZoom(e.getScaledZoom())}var n=this;n._offProjection=e.on({engine:function(){n._update()},zoom:t,"max-zoom":function(){n._zoomPartition=e.getZoomScalePartition(),n._sliderUnitLength=n._sliderLineLength/n._zoomPartition,t()}})},_subscribeToTracker:function(e){var t=this,n=!1;t._offTracker=e.on({start:function(e){(n=e.data.name===T)&&t._processStart(e.data.index,e)},move:function(e){n&&t._processMove(e.data.index,e)},end:function(){n&&(t._processEnd(),n=!1)}})},_createCallbacks:function(e){this._callbacks={reset:function(t,n){t&&e.setCenter(null),n&&e.setZoom(null)},beginMove:function(){e.beginMoveCenter()},endMove:function(){e.endMoveCenter()},move:function(t){e.moveCenter(t)},zoom:function(t){e.setScaledZoom(t)}}},_createElements:function(e,t,n){var i,o,a=this;a._root=e.g().attr({class:"dxm-control-bar"}).linkOn(t,"control-bar"),i=a._buttonsGroup=e.g().attr({class:"dxm-control-buttons"}).append(a._root),o=e.g().attr({stroke:"none","stroke-width":0,fill:"#000000",opacity:1e-4}).css({cursor:"pointer"}).append(a._root),a._createButtons(e,n,i),a._createTrackers(e,n,o)},_createButtons:function(e,t,n){var i=this,o=D,a=o.buttonSize/2,r=o.arrowButtonOffset-a,s=o.arrowButtonOffset,l=o.incDecButtonSize/2,u={"stroke-linecap":"square",fill:"none"},c="line";e.circle(0,0,o.bigCircleSize/2).append(n),e.circle(0,0,a).attr({fill:"none"}).append(n),e.path([-a,-r,0,-s,a,-r],c).attr(u).append(n),e.path([r,-a,s,0,r,a],c).attr(u).append(n),e.path([a,r,0,s,-a,r],c).attr(u).append(n),e.path([-r,a,-s,0,-r,-a],c).attr(u).append(n),e.circle(0,o.incButtonOffset,o.smallCircleSize/2).append(n),e.path([[-l,o.incButtonOffset,l,o.incButtonOffset],[0,o.incButtonOffset-l,0,o.incButtonOffset+l]],"area").append(n),e.circle(0,o.decButtonOffset,o.smallCircleSize/2).append(n),e.path([-l,o.decButtonOffset,l,o.decButtonOffset],"area").append(n),i._zoomLine=e.path([],"line").append(n),i._zoomDrag=e.rect(p(-o.sliderLength/2),p(o.sliderLineEndOffset-o.sliderWidth/2),o.sliderLength,o.sliderWidth).append(n),i._sliderLineLength=o.sliderLineEndOffset-o.sliderLineStartOffset},_createTrackers:function(e,t,n){var i=D,o=h((i.arrowButtonOffset-i.trackerGap)/2),a=i.arrowButtonOffset-o,r=h(f(i.bigCircleSize*i.bigCircleSize/4-o*o)),s=r-a;e.rect(-o,-o,2*o,2*o).data(t,{index:y,name:T}).append(n),e.rect(-o,-r,2*o,s).data(t,{index:b,name:T}).append(n),e.rect(a,-o,s,2*o).data(t,{index:x,name:T}).append(n),e.rect(-o,a,2*o,s).data(t,{index:w,name:T}).append(n),e.rect(-r,-o,s,2*o).data(t,{index:C,name:T}).append(n),e.circle(0,i.incButtonOffset,i.smallCircleSize/2).data(t,{index:k,name:T}).append(n),e.circle(0,i.decButtonOffset,i.smallCircleSize/2).data(t,{index:S,name:T}).append(n),e.rect(-2,i.sliderLineStartOffset-2,4,i.sliderLineEndOffset-i.sliderLineStartOffset+4).css({cursor:"default"}).data(t,{index:"command-zoom-drag-line",name:T}).append(n),this._zoomDragTracker=e.rect(-i.sliderLength/2,i.sliderLineEndOffset-i.sliderWidth/2,i.sliderLength,i.sliderWidth).data(t,{index:I,name:T}).append(n)},resize:function(e){this._isActive&&this._root.attr({visibility:null!==e?null:"hidden"})},getLayoutOptions:function(){return this._isActive?this._layoutOptions:null},locate:function(e,t){this._root.attr({translateX:e+this._margin+30.5,translateY:t+this._margin+30.5})},_update:function(){var e=this;e._isActive=e._isEnabled&&e._flags&&e._params.projection.isInvertible(),e._isActive?e._root.linkAppend():e._root.linkRemove(),e._processEnd(),e.updateLayout()},setInteraction:function(e){var t=this;_(e.centeringEnabled,!0)?t._flags|=1:t._flags&=-2,_(e.zoomingEnabled,!0)?t._flags|=2:t._flags&=-3,t._update()},setOptions:function(e){var t=this;t._isEnabled=!!_(e.enabled,!0),t._margin=e.margin||0,t._layoutOptions={width:2*t._margin+61,height:2*t._margin+274,horizontalAlignment:m(e.horizontalAlignment,"left"),verticalAlignment:v(e.verticalAlignment,"top")},t._buttonsGroup.attr({"stroke-width":e.borderWidth,stroke:e.borderColor,fill:e.color,"fill-opacity":e.opacity}),t._update()},_adjustZoom:function(e){var t,n,i=this,o=D.sliderLineStartOffset,a=D.sliderLineEndOffset,r=D.sliderWidth;i._zoomFactor=d(c(h(e),i._zoomPartition),0),n=a-r/2+(t={translateY:-h(i._zoomFactor*i._sliderUnitLength)}).translateY,i._zoomLine.attr({points:[[0,o,0,d(o,n)],[0,c(a,n+r),0,a]]}),i._zoomDrag.attr(t),i._zoomDragTracker.attr(t)},_applyZoom:function(){this._callbacks.zoom(this._zoomFactor)},_processStart:function(e,t){var n;this._isActive&&(n=E[e],this._command=n&&n.flags&this._flags?new n(this,e,t):null)},_processMove:function(e,t){this._command&&this._command.update(e,t)},_processEnd:function(){this._command&&this._command.finish(),this._command=null}},a.flags=3,a.prototype.update=function(e){e!==this._command&&o(this)},a.prototype.finish=function(){var e=this._owner._flags;this._owner._callbacks.reset(!!(1&e),!!(2&e)),o(this)},r.flags=1,r.prototype.update=function(e){this._command!==e&&this.finish()},r.prototype.finish=function(){o(this._stop())},s.flags=2,s.prototype.update=function(e){this._command!==e&&this.finish()},s.prototype.finish=function(){this._owner._applyZoom(),o(this._stop())},l.flags=2,l.prototype.update=function(e,t){var n=this._owner;n._adjustZoom(this._zoomFactor+n._zoomPartition*(this._pos-t.y)/n._sliderLineLength)},l.prototype.finish=function(){this._owner._applyZoom(),o(this)},t.ControlBar=i},function(e,t,n){function i(e){var t=this;t._projection=e.projection,t._renderer=e.renderer,t._x=t._y=0,t._subscribeToTracker(e.tracker)}var o=Math.log,a=Math.LN2;i.prototype={constructor:i,dispose:function(){this._offTracker(),this._offTracker=null},_subscribeToTracker:function(e){var t=this,n=!1;t._offTracker=e.on({start:function(e){(n="control-bar"!==e.data.name)&&t._processStart(e)},move:function(e){n&&t._processMove(e)},end:function(){n&&t._processEnd()},zoom:function(e){t._processZoom(e)}})},setInteraction:function(e){this._processEnd(),this._centeringEnabled=e.centeringEnabled,this._zoomingEnabled=e.zoomingEnabled},_processStart:function(e){this._centeringEnabled&&(this._x=e.x,this._y=e.y,this._projection.beginMoveCenter())},_processMove:function(e){var t=this;t._centeringEnabled&&(t._renderer.root.attr({cursor:"move"}),t._projection.moveCenter([t._x-e.x,t._y-e.y]),t._x=e.x,t._y=e.y)},_processEnd:function(){this._centeringEnabled&&(this._renderer.root.attr({cursor:"default"}),this._projection.endMoveCenter())},_processZoom:function(e){var t,n,i,r=this;r._zoomingEnabled&&(e.delta?t=e.delta:e.ratio&&(t=o(e.ratio)/a),r._centeringEnabled&&(n=r._renderer.getRootOffset(),n=[e.x-n.left,e.y-n.top],i=r._projection.fromScreenPoint(n)),r._projection.changeScaledZoom(t),r._centeringEnabled&&r._projection.setCenterByPoint(i,n))}},t.GestureHandler=i},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=this;t._root=e.root,t._createEventHandlers(e.dataKey),t._createProjectionHandlers(e.projection),t._initEvents(),t._focus=new F(function(e,n){t._fire(e,n)}),t._attachHandlers()}function a(e,t,n,i){return x((e-n)*(e-n)+(t-i)*(t-i))}function r(e){var t=e.originalEvent.type,n=e.originalEvent.pointerType;return/^touch/.test(t)||/^MSPointer/.test(t)&&4!==n||/^pointer/.test(t)&&"mouse"!==n}function s(e,t){for(var n,i=0,o=e.length;i<o;++i)if(e[i]){n=t[i];break}return C(n||t[i],S)}function l(e){var t=e.originalEvent,n=t.touches&&t.touches[0]||{};return{x:n.pageX||t.pageX||e.pageX,y:n.pageY||t.pageY||e.pageY}}function u(e){return e.originalEvent.pointerId}function c(e,t){var n=e.originalEvent;return(n=void 0!==n.pointerId?n.pointerId===t?n:null:n.touches[t])?{x:n.pageX||e.pageX,y:n.pageY||e.pageY}:null}var d=i(n(5)),h=i(n(7)),p=i(n(12)),f=i(n(408)),g=i(n(9)),_=n(127),m=n(11),v=h.default.getNavigator(),y=Math,b=y.abs,x=y.sqrt,w=y.round,C=g.default.addNamespace,k=Date.now,S="dxVectorMap",I="start",T="move",D="zoom",E="hover-on",A="hover-off",O="click",P="focus-on",B="focus-move",M="focus-off",R=void 0;(function(){var e=[v.pointerEnabled,v.msPointerEnabled,h.default.hasProperty("ontouchstart")];R={start:s(e,["pointerdown","MSPointerDown","touchstart mousedown","mousedown"]),move:s(e,["pointermove","MSPointerMove","touchmove mousemove","mousemove"]),end:s(e,["pointerup","MSPointerUp","touchend mouseup","mouseup"]),wheel:C(_.name,S)}})(),o.prototype={constructor:o,dispose:function(){var e=this;e._detachHandlers(),e._disposeEvents(),e._focus.dispose(),e._root=e._focus=e._docHandlers=e._rootHandlers=null},_eventNames:[I,T,"end",D,O,E,A,P,M,B],_startClick:function(e,t){if(t){var n=l(e);this._clickState={x:n.x,y:n.y,threshold:r(e)?20:5,time:k()}}},_endClick:function(e,t){var n,i,o=this._clickState;o&&(t&&k()-o.time<=500&&(n=o.threshold,i=l(e),b(i.x-o.x)<=n&&b(i.y-o.y)<=n&&this._fire(O,{data:t,x:i.x,y:i.y,$event:e})),this._clickState=null)},_startDrag:function(e,t){if(t){var n=l(e),i=this._dragState={x:n.x,y:n.y,data:t};this._fire(I,{x:i.x,y:i.y,data:i.data})}},_moveDrag:function(e,t){var n,i,o=this._dragState;o&&(n=l(e),i=r(e)?10:5,(o.active||b(n.x-o.x)>i||b(n.y-o.y)>i)&&(o.x=n.x,o.y=n.y,o.active=!0,o.data=t||{},this._fire(T,{x:o.x,y:o.y,data:o.data})))},_endDrag:function(){var e=this._dragState;e&&(this._dragState=null,this._fire("end",{x:e.x,y:e.y,data:e.data}))},_wheelZoom:function(e,t){if(t){var n,i,o=this._wheelLock,a=k();a-o.time<=50||(a-o.dirTime>300&&(o.dir=0),0!==(n=function(e,t){if(0===e)return 0;var n=b(e),i=w(e/n);return t.dir&&i!==t.dir?0:(t.dir=i,i*(n=n<.1?0:n<1?1:n>4?4:w(n)))}(e.delta/120||0,o))&&(i=l(e),this._fire(D,{delta:n,x:i.x,y:i.y}),o.time=o.dirTime=a))}},_startZoom:function(e,t){if(r(e)&&t){var n,i,o=this._zoomState=this._zoomState||{};o.pointer1&&o.pointer2||(void 0===o.pointer1&&(o.pointer1=u(e)||0,n=c(e,o.pointer1),o.x1=o.x1_0=n.x,o.y1=o.y1_0=n.y),void 0===o.pointer2&&((i=u(e)||1)!==o.pointer1&&((n=c(e,i))&&(o.x2=o.x2_0=n.x,o.y2=o.y2_0=n.y,o.pointer2=i,o.ready=!0,this._endDrag()))))}},_moveZoom:function(e){var t,n=this._zoomState;n&&r(e)&&(void 0!==n.pointer1&&((t=c(e,n.pointer1))&&(n.x1=t.x,n.y1=t.y)),void 0!==n.pointer2&&((t=c(e,n.pointer2))&&(n.x2=t.x,n.y2=t.y)))},_endZoom:function(e){var t,n,i=this._zoomState;i&&r(e)&&(i.ready&&(t=a(i.x1_0,i.y1_0,i.x2_0,i.y2_0),n=a(i.x1,i.y1,i.x2,i.y2),this._fire(D,{ratio:n/t,x:(i.x1_0+i.x2_0)/2,y:(i.y1_0+i.y2_0)/2})),this._zoomState=null)},_startHover:function(e,t){this._doHover(e,t,!0)},_moveHover:function(e,t){this._doHover(e,t,!1)},_doHover:function(e,t,n){var i=this;return i._dragState&&i._dragState.active||i._zoomState&&i._zoomState.ready?void i._cancelHover():void(r(e)!==n||i._hoverTarget===e.target||i._hoverState&&i._hoverState.data===t||(i._cancelHover(),t&&(i._hoverState={data:t},i._fire(E,{data:t})),i._hoverTarget=e.target))},_cancelHover:function(){var e=this._hoverState;this._hoverState=this._hoverTarget=null,e&&this._fire(A,{data:e.data})},_startFocus:function(e,t){this._doFocus(e,t,!0)},_moveFocus:function(e,t){this._doFocus(e,t,!1)},_doFocus:function(e,t,n){var i=this;return i._dragState&&i._dragState.active||i._zoomState&&i._zoomState.ready?void i._cancelFocus():void(r(e)===n&&(i._focus.turnOff(),t&&i._focus.turnOn(t,l(e))))},_cancelFocus:function(){this._focus.cancel()},_createEventHandlers:function(e){function t(t){var n=t.target;return("tspan"===n.tagName?n.parentNode:n)[e]}var n=this;n._docHandlers={},n._rootHandlers={},n._rootHandlers[R.start]=n._docHandlers[R.start]=function(e){var i=r(e),o=t(e);i&&!n._isTouchEnabled||(o&&(e.preventDefault(),e.stopPropagation()),n._startClick(e,o),n._startDrag(e,o),n._startZoom(e,o),n._startHover(e,o),n._startFocus(e,o))},n._docHandlers[R.move]=function(e){var i=r(e),o=t(e);i&&!n._isTouchEnabled||(n._moveDrag(e,o),n._moveZoom(e,o),n._moveHover(e,o),n._moveFocus(e,o))},n._docHandlers[R.end]=function(e){var i=r(e),o=t(e);i&&!n._isTouchEnabled||(n._endClick(e,o),n._endDrag(e,o),n._endZoom(e,o))},n._rootHandlers[R.wheel]=function(e){if(n._cancelFocus(),n._isWheelEnabled){var i=t(e);i&&(e.preventDefault(),e.stopPropagation(),n._wheelZoom(e,i))}},n._wheelLock={dir:0}},_createProjectionHandlers:function(e){function t(){n._cancelFocus()}var n=this;e.on({center:t,zoom:t})},reset:function(){var e=this;e._clickState=null,e._endDrag(),e._cancelHover(),e._cancelFocus()},setOptions:function(e){var t=this;t.reset(),t._detachHandlers(),t._isTouchEnabled=!!(0,m.parseScalar)(e.touchEnabled,!0),t._isWheelEnabled=!!(0,m.parseScalar)(e.wheelEnabled,!0),t._attachHandlers()},_detachHandlers:function(){var e=this;e._isTouchEnabled&&e._root.css({"touch-action":"","-webkit-user-select":""}).off(C("MSHoldVisual",S)).off(C("contextmenu",S)),d.default.off(p.default.getDocument(),e._docHandlers),e._root.off(e._rootHandlers)},_attachHandlers:function(){var e=this;e._isTouchEnabled&&e._root.css({"touch-action":"none","-webkit-user-select":"none"}).on(C("MSHoldVisual",S),function(e){e.preventDefault()}).on(C("contextmenu",S),function(e){r(e)&&e.preventDefault()}),d.default.on(p.default.getDocument(),e._docHandlers),e._root.on(e._rootHandlers)}};var F=function(e){var t,n,i=this,o=null,a=null,r=!1,s=null;i.dispose=function(){clearTimeout(s),i.turnOn=i.turnOff=i.cancel=i.dispose=i=e=o=a=s=null},i.turnOn=function(i,l){function u(e){r=!e,e&&(o=a,clearTimeout(s),s=null)}i===a&&r||(r=!1,a=i,o?(t=l.x,n=l.y,a===o?(e(B,{data:a,x:t,y:n}),u(!0)):e(P,{data:a,x:t,y:n,done:u})):(t=l.x,n=l.y,e(P,{data:a,x:t,y:n,done:u})))},i.turnOff=function(){a=null,o&&!r&&(s=s||setTimeout(function(){s=null,e(M,{data:o}),o=null},100))},i.cancel=function(){clearTimeout(s),o&&e(M,{data:o}),o=a=s=null}};f.default.makeEventEmitter(o),t.Tracker=o},function(e,t,n){function i(){this._store={}}var o=n(25);i.prototype={constructor:i,dispose:function(){return this._store=null,this},_get:function(e,t){var n=this._store[e]||(this._store[e]={});return n[t]||(n[t]={callbacks:o()})},set:function(e,t,n){var i=this._get(e,t);return i.data=n,i.callbacks.fire(n),this},bind:function(e,t,n){var i=this._get(e,t);return i.callbacks.add(n),i.data&&n(i.data),this},unbind:function(e,t,n){return this._get(e,t).callbacks.remove(n),this}},t.DataExchanger=i},function(e,t,n){function i(e){this._params=e,this._items=[],e.container.virtualLink("legend-base")}var o=n(0).extend,a=n(3).each,r=o,s=a,l=n(203).Legend,u={category:"UNKNOWN",name:"UNKNOWN"},c=function(e){var t=this;t._params=e,t._root=e.renderer.g().attr({class:"dxm-legend"}).linkOn(e.container,{name:"legend",after:"legend-base"}).enableLinks().linkAppend(),e.layoutControl.addItem(t),l.call(t,{renderer:e.renderer,group:t._root,backgroundClass:null,itemsGroupClass:null,textField:"text",getFormatObject:function(e){return e}}),t._onDataChanged=function(e){t._updateData(e)}};c.prototype=r(n(48).clone(l.prototype),{constructor:c,dispose:function(){var e=this;return e._params.layoutControl.removeItem(e),e._unbindData(),e._root.linkRemove().linkOff(),e._params=e._root=e._onDataChanged=null,l.prototype.dispose.apply(e,arguments)},resize:function(e){this._params.notifyDirty(),null===e?this.erase():this.draw(e.width,e.height),this._params.notifyReady()},locate:l.prototype.shift,_updateData:function(e){this._options.defaultColor=e&&e.defaultColor,this.update(e?function(e,t,n){var i,o,a=t.length,r=[];for(i=0;i<a;++i)r[i]=o={start:e[i],end:e[i+1],index:i},o[n]=t[i],o.states={normal:{fill:o.color}},o.visible=!0;return r}(e.partition,e.values,this._dataName):[],this._options,this._params.themeManager.theme("legend").title),this.updateLayout()},_unbindData:function(){this._dataCategory&&this._params.dataExchanger.unbind(this._dataCategory,this._dataName,this._onDataChanged)},_bindData:function(e){this._params.dataExchanger.bind(this._dataCategory=e.category,this._dataName=e.name,this._onDataChanged)},setOptions:function(e){var t=this;t.update(t._data,e,this._params.themeManager.theme("legend").title),t._unbindData();var n=e.source;return t._bindData(n?{category:n.layer,name:n.grouping}:u),t.updateLayout(),t}}),i.prototype={constructor:i,dispose:function(){s(this._items,function(e,t){t.dispose()}),this._params=this._items=null},setOptions:function(e){var t,n=e&&e.length?e:[],i=this._items,o=n.length,a=this._params,s=a.themeManager.theme("legend");for(t=i.length;t<o;++t)i[t]=new c(a);for(t=i.length-1;t>=o;--t)i[t].dispose(),i.splice(t,1);for(a.layoutControl.suspend(),t=0;t<o;++t)i[t].setOptions(r(!0,{},s,n[t]));a.layoutControl.resume()}},t.LegendsControl=i},function(e,t,n){function i(e,t){var n=(e.right-e.left)/3,i=(e.bottom-e.top)/2,o=e.left,a=l(o+n),r=l(o+n+n),s=e.right,u=e.top,c=l(u+i),h=e.bottom,g=[{rect:[o,u,a,c]},{rect:[a,u,r,c],center:!0},{rect:[r,u,s,c],horInversion:!0},{rect:[o,c,a,h],verInversion:!0},{rect:[a,c,r,h],center:!0,verInversion:!0},{rect:[r,c,s,h],horInversion:!0,verInversion:!0}],_=[[],[],[],[],[],[]];return d(t,function(e,t){var n=t.getLayoutOptions();n&&_[function(e){return 3*f[e.verticalAlignment]+p[e.horizontalAlignment]}(n)].push({item:t,width:n.width,height:n.height})}),d(g,function(e,t){_[e].length?t.items=_[e]:(t.center?t.rect[0]=t.rect[2]=(t.rect[0]+t.rect[2])/2:t.rect[t.horInversion?0:2]=t.rect[t.horInversion?2:0],t.rect[t.verInversion?1:3]=t.rect[t.verInversion?3:1])}),g}function o(e,t){var n=!1;return function(e){d([0,1,2,3,4,5],function(t,n){var i=e[n],o=e[(n+3)%6];i.items&&(o.items||(i.rect[1]=u(i.rect[1],o.rect[3]),i.rect[3]=c(i.rect[3],o.rect[1])))}),d([1,4],function(t,n){var i,o,a=e[n],r=e[n-1],s=e[n+1];a.items?r.items||s.items||((i=a.rect[0]-r.rect[2])>(o=s.rect[0]-a.rect[2])?i/o>=2?(a.rect[0]-=i,a.right=!0):(a.rect[0]-=o,a.rect[2]+=o):o/i>=2?(a.rect[2]+=o,a.center=null):(a.rect[0]-=i,a.rect[2]+=i)):(r.items&&(r.rect[2]=(a.rect[0]+a.rect[2])/2),s.items&&(s.rect[0]=(a.rect[0]+a.rect[2])/2))})}(e),d(e,function(e,i){i.items&&(n=function(e,t){var n=e.rect,i=n[2]-n[0],o=n[3]-n[1],a=0,r=0,s=0,h=n[2],p=n[3],f=n[0],g=n[1],_=[],m=!1;return d(e.items,function(l,d){if(d.width>i||d.height>o)return _.push(null),m=!0,t||!1;if(a+d.width>i&&(r+=s,a=s=0),r+d.height>o)return _.push(null),m=!0,t||!1;s=c(s,d.height);var v=e.horInversion?n[2]-d.width-a:n[0]+a,y=e.verInversion?n[3]-d.height-r:n[1]+r;a+=d.width,h=u(h,v),p=u(p,y),f=c(f,v+d.width),g=c(g,y+d.height),_.push([v,y])}),!t&&m||(a=0,e.right?a=n[2]-n[0]-f+h:e.center&&(a=l((n[2]-n[0]-f+h)/2)),d(e.items,function(e,t){var n=_[e];n?t.item.locate(n[0]+a,n[1]):t.item.resize(null)}),e.rect=[h,p,f,g],e.items=null),m}(i,t)||n)}),n}function a(){var e=this;e._items=[],e._suspended=0,e._updateLayout=function(){e._update()}}var r=n(13).inArray,s=n(3).each,l=Math.round,u=Math.min,c=Math.max,d=s,h=r,p={left:0,center:1,right:2},f={top:0,bottom:1};a.prototype={constructor:a,dispose:function(){this._items=this._updateLayout=null},setSize:function(e){this._canvas=e,this._update()},suspend:function(){++this._suspended},resume:function(){0==--this._suspended&&this._update()},addItem:function(e){this._items.push(e),e.updateLayout=this._updateLayout},removeItem:function(e){this._items.splice(h(e,this._items),1),e.updateLayout=null},_update:function(){var e;0===this._suspended&&(e=this._canvas,d(this._items,function(t,n){n.resize(e)}),function(e,t){var n=i(e,t);o(n)&&o(n,!0)}({left:e.left,top:e.top,right:e.width+e.left,bottom:e.height+e.top},this._items))}},t.LayoutControl=a},function(e,t,n){function i(e,t){return(e[t]||{}).name}function o(){}function a(e){this.raw=e}function r(e){this.raw=e}function s(e){return W(e.features)}function l(e){e.text.attr({visibility:e.size[0]/e.spaceSize[0]<ne&&e.size[1]/e.spaceSize[1]<ne?null:"hidden"})}function u(e){e.text.attr({visibility:e.size[0]/e.spaceSize[0]<ne||e.size[1]/e.spaceSize[1]<ne?null:"hidden"})}function c(e,t){return e.attribute(t)}function d(e,t){return void 0!==e?e:t}function h(e,t,n,i){e[i].attr(t[i][n])}function p(e,t){var n,i=[],o=i.length=t.length;for(n=0;n<o;++n)i[n]=e.project(t[n]);return i}function f(e,t){return[p(e,t)]}function g(e,t){var n,i=[],o=i.length=t.length;for(n=0;n<o;++n)i[n]=p(e,t[n]);return i}function _(e,t){var n,i=[],o=i.length=t.length;for(n=0;n<o;++n)i[n]=g(e,t[n]);return Z.apply([],i)}function m(e,t){var n,i,o=[],a=t.length,r=0;for(o.length=2*a,n=0;n<a;++n)i=e.transform(t[n]),o[r++]=i[0],o[r++]=i[1];return o}function v(e,t,n){var i,o=[],a=o.length=n.length;for(i=0;i<a;++i)o[i]=m(t,n[i]);e.root.attr({points:o})}function y(e,t,n){var i=w(e.settings,n);return function(e,t,n){X(e,function(e,i){var o=b(i.callback(t,i.field),i.partition);o>=0&&(n[e]=i.values[o])})}(e.grouping,t,i),void 0===n.color&&n.paletteIndex>=0&&(i.color=i._colors[n.paletteIndex]),i}function b(e,t){var n,i=0,o=t.length-1,a=-1;if(t[i]<=e&&e<=t[o])if(e===t[o])a=o-1;else{for(;o-i>1;)e<t[n=i+o>>1]?o=n:i=n;a=i}return a}function x(e,t,n,i){e.params.eventTrigger(i,{target:t.proxy,state:n})}function w(e,t){var n=Y({},e,t);return n.label=Y({},e.label,n.label),n.label.font=Y({},e.label.font,n.label.font),n}function C(e,t){return e.attribute(t)}function k(e){var t=e.name,n=e.params.dataExchanger;X(e.grouping,function(e){n.set(t,e,null)}),e.grouping={}}function S(e,t,n){return n?e|=t:e&=~t,e}function I(e,t){return!!(e&t)}function T(e){var t,n,i,o=e.length,a=e[o-1],r=0,s=0,l=0,u=1/0,c=-1/0,d=1/0,h=-1/0;for(t=0;t<o;++t)n=a,a=e[t],l+=i=n[0]*a[1]-a[0]*n[1],r+=(n[0]+a[0])*i,s+=(n[1]+a[1])*i,u=V(u,a[0]),c=L(c,a[0]),d=V(d,a[1]),h=L(h,a[1]);return{area:R(l)/2,center:[2*r/3/l-(u+c)/2,2*s/3/l-(d+h)/2]}}function D(e){var t,n,i,o=e.length,a=e[0]||[],r=0,s=[0],l=a[0],u=a[0],c=a[1],d=a[1];for(t=1;t<o;++t)n=a,a=e[t],r+=H((n[0]-a[0])*(n[0]-a[0])+(n[1]-a[1])*(n[1]-a[1])),s[t]=r,l=V(l,a[0]),u=L(u,a[0]),c=V(c,a[1]),d=L(d,a[1]);return n=e[t=b(r/2,s)],a=e[t+1],i=(r/2-s[t])/(s[t+1]-s[t]),o?[[n[0]*(1-i)+a[0]*i,n[1]*(1-i)+a[1]*i],[u-l,d-c],r]:[]}function E(e){var t=this,n=e.renderer;t._params=e,t._layers=[],t._layerByName={},t._rect=[0,0,0,0],t._clip=n.clipRect(),t._background=n.rect().attr({class:"dxm-background"}).data(e.dataKey,{name:"background"}).append(n.root),t._container=n.g().attr({class:"dxm-layers","clip-path":t._clip.id}).append(n.root).enableLinks(),t._subscribeToTracker(e.tracker,n,e.eventTrigger)}var A=n(4).noop,O=n(0).extend,P=n(3).each,B=Number,M=String,R=Math.abs,F=Math.round,V=Math.min,L=Math.max,H=Math.sqrt,z=n(87),N=n(1).isFunction,$=n(1).isDefined,W=Array.isArray,G=n(11),j=G.parseScalar,q=G.patchFontOptions,K=G.normalizeEnum,U=A,Y=O,X=P,Z=Array.prototype.concat,Q="area",J="line",ee="marker",te=[0,1,2,2],ne=1,ie={none:null,single:-1,multiple:NaN};o.prototype.count=function(){return 0},a.prototype={constructor:a,count:function(){return this.raw.length},item:function(e){return this.raw[e]},geometry:function(e){return{coordinates:e.coordinates}},attributes:function(e){return e.attributes}},r.prototype={constructor:r,count:function(){return this.raw.features.length},item:function(e){return this.raw.features[e]},geometry:function(e){return e.geometry},attributes:function(e){return e.properties}};var oe={Point:ee,MultiPoint:J,LineString:J,MultiLineString:J,Polygon:Q,MultiPolygon:Q},ae=function(e,t){var n,i=K(e.type),o=K(e.elementType),a=Y({},re);return t.count()>0&&(n=t.geometry(t.item(0)),i=se[i]?i:function(e){var t=oe[e.type],n=e.coordinates;return t||(t="number"==typeof n[0]?ee:"number"==typeof n[0][0]?J:Q),t}(n),Y(a,se[i]),a.fullType=a.type=i,le[i]&&Y(a,le[i](n)),ue[i]&&(o=ue[i][o]?o:ue[i]._default,Y(a,ue[i][o]),a.elementType=o,a.fullType+=":"+o)),a},re={setup:U,reset:U,arrange:U,updateGrouping:U,getDefaultColor:U},se={};se[Q]={projectLabel:function(e){var t,n,i,o=e.length,a=0;for(t=0;t<o;++t)(n=T(e[t])).area>a&&(a=n.area,i=n);return i?[i.center,[H(i.area),H(i.area)]]:[[],[]]},transform:v,transformLabel:function(e,t,n){var i=t.transform(n[0]);e.spaceSize=t.getSquareSize(n[1]),e.text.attr({translateX:i[0],translateY:i[1]}),l(e)},draw:function(e,t,n){t.root=e.renderer.path([],"area").data(e.dataKey,n)},refresh:U,getLabelOffset:function(e){return l(e),[0,0]},getStyles:function(e){var t=e.color||null,n=e.borderColor||null,i=d(e.borderWidth,null),o=d(e.opacity,null);return{root:[{class:"dxm-area",stroke:n,"stroke-width":i,fill:t,opacity:o},{class:"dxm-area dxm-area-hovered",stroke:e.hoveredBorderColor||n,"stroke-width":d(e.hoveredBorderWidth,i),fill:e.hoveredColor||t,opacity:d(e.hoveredOpacity,o)},{class:"dxm-area dxm-area-selected",stroke:e.selectedBorderColor||n,"stroke-width":d(e.selectedBorderWidth,i),fill:e.selectedColor||t,opacity:d(e.selectedOpacity,o)}]}},setState:function(e,t,n){h(e,t,n,"root")},hasLabelsGroup:!0,updateGrouping:function(e){de(e)},getDefaultColor:U},se[J]={projectLabel:function(e){var t,n,i,o=e.length,a=0;for(t=0;t<o;++t)(n=D(e[t]))[2]>a&&(a=n[2],i=n);return i||[[],[]]},transform:v,transformLabel:function(e,t,n){var i=t.transform(n[0]);e.spaceSize=t.getSquareSize(n[1]),e.text.attr({translateX:i[0],translateY:i[1]}),u(e)},draw:function(e,t,n){t.root=e.renderer.path([],"line").data(e.dataKey,n)},refresh:U,getLabelOffset:function(e){return u(e),[0,0]},getStyles:function(e){var t=e.color||e.borderColor||null,n=d(e.borderWidth,null),i=d(e.opacity,null);return{root:[{class:"dxm-line",stroke:t,"stroke-width":n,opacity:i},{class:"dxm-line dxm-line-hovered",stroke:e.hoveredColor||e.hoveredBorderColor||t,"stroke-width":d(e.hoveredBorderWidth,n),opacity:d(e.hoveredOpacity,i)},{class:"dxm-line dxm-line-selected",stroke:e.selectedColor||e.selectedBorderColor||t,"stroke-width":d(e.selectedBorderWidth,n),opacity:d(e.selectedOpacity,i)}]}},setState:function(e,t,n){h(e,t,n,"root")},hasLabelsGroup:!0,updateGrouping:function(e){de(e)},getDefaultColor:U},se[ee]={project:function(e,t){return e.project(t)},transform:function(e,t,n){var i=t.transform(n);e.root.attr({translateX:i[0],translateY:i[1]})},draw:function(e,t,n){t.root=e.renderer.g(),this._draw(e,t,n)},refresh:U,hasLabelsGroup:!1,getLabelOffset:function(e,t){return[F((e.size[0]+L(t.size||0,0))/2)+2,0]},getStyles:function(e){var t={root:[{class:"dxm-marker"},{class:"dxm-marker dxm-marker-hovered"},{class:"dxm-marker dxm-marker-selected"}]};return this._getStyles(t,e),t},setState:function(e,t,n){h(e,t,n,"root"),this._setState(e,t,n)},updateGrouping:function(e){de(e),he(e)},getDefaultColor:function(e,t){return e.params.themeManager.getAccentColor(t)}};var le={};le[Q]=function(e){var t=e.coordinates;return{project:t[0]&&t[0][0]&&t[0][0][0]&&"number"==typeof t[0][0][0][0]?_:g}},le[J]=function(e){var t=e.coordinates;return{project:t[0]&&t[0][0]&&"number"==typeof t[0][0][0]?g:f}};var ue={};ue[ee]={_default:"dot",dot:{setup:function(e){e.filter=e.renderer.shadowFilter("-40%","-40%","180%","200%",0,1,1,"#000000",.2)},reset:function(e){e.filter.dispose(),e.filter=null},_draw:function(e,t,n){t.back=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root),t.dot=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root)},refresh:function(e,t,n,i,o){t.dot.attr({filter:o.shadow?e.filter.id:null})},_getStyles:function(e,t){var n=t.size>0?B(t.size):0,i=n,o=n+(t.selectedStep>0?B(t.selectedStep):0),a=i+(t.backStep>0?B(t.backStep):0),r=o+(t.backStep>0?B(t.backStep):0),s=t.color||null,l=t.borderColor||null,u=d(t.borderWidth,null),c=d(t.opacity,null),h=t.backColor||null,p=d(t.backOpacity,null);e.dot=[{r:n/2,stroke:l,"stroke-width":u,fill:s,opacity:c},{r:i/2,stroke:t.hoveredBorderColor||l,"stroke-width":d(t.hoveredBorderWidth,u),fill:t.hoveredColor||s,opacity:d(t.hoveredOpacity,c)},{r:o/2,stroke:t.selectedBorderColor||l,"stroke-width":d(t.selectedBorderWidth,u),fill:t.selectedColor||s,opacity:d(t.selectedOpacity,c)}],e.back=[{r:n/2,stroke:"none","stroke-width":0,fill:h,opacity:p},{r:a/2,stroke:"none","stroke-width":0,fill:h,opacity:p},{r:r/2,stroke:"none","stroke-width":0,fill:h,opacity:p}]},_setState:function(e,t,n){h(e,t,n,"dot"),h(e,t,n,"back")}},bubble:{_draw:function(e,t,n){t.bubble=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root)},refresh:function(e,t,n,i,o){t.bubble.attr({r:o.size/2})},_getStyles:function(e,t){var n=t.color||null,i=t.borderColor||null,o=d(t.borderWidth,null),a=d(t.opacity,null);e.bubble=[{stroke:i,"stroke-width":o,fill:n,opacity:a},{stroke:t.hoveredBorderColor||i,"stroke-width":d(t.hoveredBorderWidth,o),fill:t.hoveredColor||t.color,opacity:d(t.hoveredOpacity,a)},{stroke:t.selectedBorderColor||i,"stroke-width":d(t.selectedBorderWidth,o),fill:t.selectedColor||t.color,opacity:d(t.selectedOpacity,a)}]},_setState:function(e,t,n){h(e,t,n,"bubble")},arrange:function(e,t){var n,i,o,a,r=[],s=r.length=t.length,l=e.settings,u=l.dataField,d=l.minSize>0?B(l.minSize):0,h=l.maxSize>d?B(l.maxSize):d;if(!l.sizeGroups){for(n=0;n<s;++n)r[n]=L(c(t[n].proxy,u)||0,0);for(i=V.apply(null,r),o=L.apply(null,r)-i||1,a=h-d,n=0;n<s;++n)t[n]._settings.size=d+a*(r[n]-i)/o}},updateGrouping:function(e){var t=e.settings.dataField;se[ee].updateGrouping(e),he(e,function(e){return c(e,t)})}},pie:{_draw:function(e,t,n){t.pie=e.renderer.g().append(t.root),t.border=e.renderer.circle().sharp().data(e.dataKey,n).append(t.root)},refresh:function(e,t,n,i,o){var a=c(i,e.settings.dataField)||[],r=o._colors,s=0,l=t.pie,u=e.renderer,d=e.dataKey,h=(o.size>0?B(o.size):0)/2,p=90,f=p,g=!1;0===(s=a.reduce(function(e,t){return e+(t||0)},0))&&(g=!0,s=360/a.length),a.forEach(function(e,t){p=f,f+=g?s:(e||0)/s*360,u.arc(0,0,0,h,p,f).attr({"stroke-linejoin":"round",fill:r[t]}).data(d,n).append(l)}),t.border.attr({r:h})},_getStyles:function(e,t){var n=d(t.opacity,null),i=t.borderColor||null,o=d(t.borderWidth,null);e.pie=[{opacity:n},{opacity:d(t.hoveredOpacity,n)},{opacity:d(t.selectedOpacity,n)}],e.border=[{stroke:i,"stroke-width":o},{stroke:t.hoveredBorderColor||i,"stroke-width":d(t.hoveredBorderWidth,o)},{stroke:t.selectedBorderColor||i,"stroke-width":d(t.selectedBorderWidth,o)}]},_setState:function(e,t,n){h(e,t,n,"pie"),h(e,t,n,"border")},arrange:function(e,t){var n,i,o=t.length,a=e.settings.dataField,r=0;for(n=0;n<o;++n)(i=c(t[n].proxy,a))&&i.length>r&&(r=i.length);r>0&&(i=e.params.themeManager.createPalette(e.settings.palette,{useHighlight:!0,extensionMode:"alternate"}).generateColors(r),e.settings._colors=i,e.grouping.color={callback:U,field:"",partition:[],values:[]},e.params.dataExchanger.set(e.name,"color",{partition:[],values:i}))}},image:{_draw:function(e,t,n){t.image=e.renderer.image(null,null,null,null,null,"center").attr({"pointer-events":"visible"}).data(e.dataKey,n).append(t.root)},refresh:function(e,t,n,i){t.image.attr({href:c(i,e.settings.dataField)})},_getStyles:function(e,t){var n=t.size>0?B(t.size):0,i=n+(t.hoveredStep>0?B(t.hoveredStep):0),o=n+(t.selectedStep>0?B(t.selectedStep):0),a=d(t.opacity,null);e.image=[{x:-n/2,y:-n/2,width:n,height:n,opacity:a},{x:-i/2,y:-i/2,width:i,height:i,opacity:d(t.hoveredOpacity,a)},{x:-o/2,y:-o/2,width:o,height:o,opacity:d(t.selectedOpacity,a)}]},_setState:function(e,t,n){h(e,t,n,"image")}}};var ce=function(e,t,n,i,o){var a;i&&t&&t.length>1&&(a=o(t.length-1),e.grouping[n]={callback:N(i)?i:C,field:i,partition:t,values:a},e.params.dataExchanger.set(e.name,n,{partition:t,values:a,defaultColor:e.settings.color}))},de=function(e){ce(e,e.settings.colorGroups,"color",e.settings.colorGroupingField,function(t){var n,i=e.params.themeManager.createDiscretePalette(e.settings.palette,t),o=[];for(n=0;n<t;++n)o.push(i.getColor(n));return o})},he=function(e,t){var n=e.settings;ce(e,n.sizeGroups,"size",t||n.sizeGroupingField,function(e){var t=n.minSize>0?B(n.minSize):0,i=n.maxSize>=t?B(n.maxSize):0,o=0,a=[];if(e>1)for(o=0;o<e;++o)a.push((t*(e-o-1)+i*o)/(e-1));else 1===e&&a.push((t+i)/2);return a})},pe=function(e,t,n,i){var a=this;a._params=e,a._onProjection(),a.proxy=function(e,t,n){var i={index:n,name:t,getElements:function(){return e.getProxies()},clearSelection:function(t){return e.clearSelection(t),i},getDataSource:function(){return e.getDataSource()}};return i}(a,n,i),a._context={name:n,layer:a.proxy,renderer:e.renderer,projection:e.projection,params:e,dataKey:e.dataKey,str:re,hover:!1,selection:null,grouping:{},root:e.renderer.g().attr({class:"dxm-layer"}).linkOn(t,n).linkAppend()},a._container=t,a._options={},a._handles=[],a._data=new o};pe.prototype=Y({constructor:pe,_onProjection:function(){var e=this;e._removeHandlers=e._params.projection.on({engine:function(){e._project()},screen:function(){e._transform()},center:function(){e._transformCore()},zoom:function(){e._transform()}})},_dataSourceLoadErrorHandler:function(){this._dataSourceChangedHandler()},_dataSourceChangedHandler:function(){var e=this;e._data=function(e){var t;return e&&(s(e)?t=r:1===e.length&&e[0]&&s(e[0])?(t=r,e=e[0]):W(e)&&(t=a)),new(t=t||o)(e)}(e._dataSource&&e._dataSource.items()),e._update(!0)},_dataSourceOptions:function(){return{paginate:!1}},_getSpecificDataSourceOption:function(){return this._specificDataSourceOption},_offProjection:function(){this._removeHandlers(),this._removeHandlers=null},dispose:function(){var e=this;return e._disposeDataSource(),e._destroyHandles(),k(e._context),e._context.root.linkRemove().linkOff(),e._context.labelRoot&&e._context.labelRoot.linkRemove().linkOff(),e._context.str.reset(e._context),e._offProjection(),e._params=e._container=e._context=e.proxy=null,e},setOptions:function(e){var t=this;"dataSource"in(e=t._options=e||{})&&e.dataSource!==t._options_dataSource?(t._options_dataSource=e.dataSource,t._params.notifyDirty(),t._specificDataSourceOption=function(e){return e?s(e)?[e]:e:[]}(e.dataSource),t._refreshDataSource()):t._data.count()>0&&(t._params.notifyDirty(),t._update(void 0!==e.type&&e.type!==t._context.str.type||void 0!==e.elementType&&e.elementType!==t._context.str.elementType)),t._transformCore()},_update:function(e){var t=this,n=t._context;e&&(n.str.reset(n),n.root.clear(),n.labelRoot&&n.labelRoot.clear(),t._params.tracker.reset(),t._destroyHandles(),n.str=ae(t._options,t._data),n.str.setup(n),t.proxy.type=n.str.type,t.proxy.elementType=n.str.elementType),n.settings=function(e,t){var n,i,o,a=e.params.themeManager,r=e.str,s=w(Y({label:{},color:r.getDefaultColor(e,t.palette)},a.theme("layer:"+r.fullType)),t);if(s.paletteSize>0){for(o=a.createDiscretePalette(s.palette,s.paletteSize),i=0,n=[];i<s.paletteSize;++i)n.push(o.getColor(i));s._colors=n}return s}(n,t._options),n.hasSeparateLabel=!(!n.settings.label.enabled||!n.str.hasLabelsGroup),n.hover=!!j(n.settings.hoverEnabled,!0),n.selection&&X(n.selection.state,function(e,t){t&&t.resetSelected()}),n.selection=function(e){var t=K(e);return null!==(t=t in ie?ie[t]:ie.single)&&(t={state:{},single:t}),t}(n.settings.selectionMode),n.hasSeparateLabel?n.labelRoot||(n.labelRoot=n.renderer.g().attr({class:"dxm-layer-labels"}).linkOn(t._container,{name:n.name+"-labels",after:n.name}).linkAppend(),t._transformCore()):n.labelRoot&&(n.labelRoot.linkRemove().linkOff(),n.labelRoot=null),e&&t._createHandles(),k(n),n.str.arrange(n,t._handles),n.str.updateGrouping(n),t._updateHandles(),t._params.notifyReady()},_destroyHandles:function(){var e,t=this._handles,n=t.length;for(e=0;e<n;++e)t[e].dispose();this._context.selection&&(this._context.selection.state={}),this._handles=[]},_createHandles:function(){var e,t,n,i=this,o=i._handles=[],a=i._data,r=o.length=a.count(),s=i._context,l=a.geometry,u=a.attributes;for(e=0;e<r;++e)n=a.item(e),o[e]=new fe(s,e,l(n),u(n));for(N(i._options.customize)&&function(e,t,n){t.call(n,e)}(i.getProxies(),i._options.customize,i._params.widget),e=0;e<r;++e)(t=o[e]).project(),t.draw(),t.transform();s.selection&&X(s.selection.state,function(e,t){t&&t.restoreSelected()})},_updateHandles:function(){var e,t=this._handles,n=t.length;for(e=0;e<n;++e)t[e].refresh();if(this._context.settings.label.enabled){for(e=0;e<n;++e)t[e].measureLabel();for(e=0;e<n;++e)t[e].adjustLabel()}},_transformCore:function(){var e=this._params.projection.getTransform();this._context.root.attr(e),this._context.labelRoot&&this._context.labelRoot.attr(e)},_project:function(){var e,t=this._handles,n=t.length;for(e=0;e<n;++e)t[e].project()},_transform:function(){var e,t=this._handles,n=t.length;for(this._transformCore(),e=0;e<n;++e)t[e].transform()},getProxies:function(){var e,t=this._handles,n=[],i=n.length=t.length;for(e=0;e<i;++e)n[e]=t[e].proxy;return n},getProxy:function(e){return this._handles[e].proxy},raiseClick:function(e,t){this._params.eventTrigger("click",{target:this._handles[e].proxy,event:t})},hoverItem:function(e,t){this._handles[e].setHovered(t)},selectItem:function(e,t,n){this._handles[e].setSelected(t,n)},clearSelection:function(){var e=this._context.selection;e&&(X(e.state,function(e,t){t&&t.setSelected(!1)}),e.state={})}},z);var fe=function(e,t,n,i){var o=this,a=o.proxy=function(e,t,n){var i={coordinates:function(){return t},attribute:function(e,t){return arguments.length>1?(n[e]=t,i):arguments.length>0?n[e]:n},selected:function(t,n){return arguments.length>0?(e.setSelected(t,n),i):e.isSelected()},applySettings:function(t){return e.update(t),i}};return i}(o,n.coordinates,Y({},i));o._ctx=e,o._index=t,o._fig=o._label=null,o._state=0,o._coordinates=n.coordinates,o._settings={label:{}},a.index=t,a.layer=e.layer,o._data={name:e.name,index:t}};fe.prototype={constructor:fe,dispose:function(){var e=this;return e._ctx=e.proxy=e._settings=e._fig=e._label=e.data=null,e},project:function(){var e=this._ctx;this._projection=e.str.project(e.projection,this._coordinates),e.hasSeparateLabel&&this._label&&this._projectLabel()},_projectLabel:function(){this._labelProjection=this._ctx.str.projectLabel(this._projection)},draw:function(){var e=this,t=this._ctx;t.str.draw(t,e._fig={},e._data),e._fig.root.append(t.root)},transform:function(){var e=this,t=e._ctx;t.str.transform(e._fig,t.projection,e._projection),t.hasSeparateLabel&&e._label&&e._transformLabel()},_transformLabel:function(){this._ctx.str.transformLabel(this._label,this._ctx.projection,this._labelProjection)},refresh:function(){var e=this,t=e._ctx.str,n=y(e._ctx,e.proxy,e._settings);e._styles=t.getStyles(n),t.refresh(e._ctx,e._fig,e._data,e.proxy,n),e._refreshLabel(n),e._setState()},_refreshLabel:function(e){var t=this,n=t._ctx,i=e.label,o=t._label;n.settings.label.enabled?(o||(o=t._label={root:n.labelRoot||t._fig.root,text:n.renderer.text().attr({class:"dxm-label"}),size:[0,0]},n.hasSeparateLabel&&(t._projectLabel(),t._transformLabel())),o.value=M(t.proxy.text||t.proxy.attribute(i.dataField)||""),o.value&&(o.text.attr({text:o.value,x:0,y:0}).css(q(i.font)).attr({align:"center",stroke:i.stroke,"stroke-width":i["stroke-width"],"stroke-opacity":i["stroke-opacity"]}).data(n.dataKey,t._data).append(o.root),o.settings=e)):o&&(o.text.remove(),t._label=null)},measureLabel:function(){var e,t=this._label;t.value&&(e=t.text.getBBox(),t.size=[e.width,e.height,-e.y-e.height/2])},adjustLabel:function(){var e,t=this._label;t.value&&(e=this._ctx.str.getLabelOffset(t,t.settings),t.settings=null,t.text.attr({x:e[0],y:e[1]+t.size[2]}))},update:function(e){var t=this;t._settings=w(t._settings,e),t._fig&&(t.refresh(),t._label&&t._label.value&&(t.measureLabel(),t.adjustLabel()))},_setState:function(){this._ctx.str.setState(this._fig,this._styles,te[this._state])},_setForeground:function(){var e=this._fig.root;this._state?e.toForeground():e.toBackground()},setHovered:function(e){var t=this,n=I(t._state,1),i=!!e;return t._ctx.hover&&n!==i&&(t._state=S(t._state,1,i),t._setState(),t._setForeground(),x(t._ctx,t,i,"hoverChanged")),t},setSelected:function(e,t){var n,i=this,o=I(i._state,2),a=!!e,r=i._ctx.selection;r&&o!==a&&(i._state=S(i._state,2,a),n=r.state[r.single],r.state[r.single]=null,n&&n.setSelected(!1),r.state[r.single||i._index]=e?i:null,i._fig&&(i._setState(),i._setForeground(),t||x(i._ctx,i,a,"selectionChanged")))},isSelected:function(){return I(this._state,2)},resetSelected:function(){this._state=S(this._state,2,!1)},restoreSelected:function(){this._fig.root.toForeground()}},E.prototype={constructor:E,dispose:function(){var e=this;e._clip.dispose(),e._layers.forEach(function(e){return e.dispose()}),e._offTracker(),e._params=e._offTracker=e._layers=e._layerByName=e._clip=e._background=e._container=null},_subscribeToTracker:function(e,t,n){var i=this;i._offTracker=e.on({click:function(e){var o=t.getRootOffset(),a=i.byName(e.data.name);e.$event.x=e.x-o.left,e.$event.y=e.y-o.top,a?a.raiseClick(e.data.index,e.$event):"background"===e.data.name&&n("click",{event:e.$event})},"hover-on":function(e){var t=i.byName(e.data.name);t&&t.hoverItem(e.data.index,!0)},"hover-off":function(e){var t=i.byName(e.data.name);t&&t.hoverItem(e.data.index,!1)}})},setOptions:function(e){var t=this,n=e?W(e)?e:[e]:[],o=t._layerByName,a=t._layers;if(n.length!==a.length||a.some(function(e,t){var o=i(n,t);return $(o)&&o!==e.proxy.name})){t._params.tracker.reset(),t._layers.forEach(function(e){return e.dispose()}),t._layerByName=o={},t._layers=a=[];for(var r=0,s=n.length;r<s;++r){var l=i(n,r)||"map-layer-"+r,u=a[r]=new pe(t._params,t._container,l,r);o[l]=u}}a.forEach(function(e,t){e.setOptions(n[t])})},_updateClip:function(){var e=this._rect,t=this._borderWidth;this._clip.attr({x:e[0]+t,y:e[1]+t,width:L(e[2]-2*t,0),height:L(e[3]-2*t,0)})},setBackgroundOptions:function(e){this._background.attr({stroke:e.borderColor,"stroke-width":e.borderWidth,fill:e.color}),this._borderWidth=L(e.borderWidth,0),this._updateClip()},setRect:function(e){this._rect=e,this._background.attr({x:e[0],y:e[1],width:e[2],height:e[3]}),this._updateClip()},byIndex:function(e){return this._layers[e]},byName:function(e){return this._layerByName[e]},items:function(){return this._layers}},t.MapLayerCollection=E},function(e,t,n){function i(e){this._subscribeToTracker(e.tracker,e.tooltip,e.layerCollection)}i.prototype={constructor:i,dispose:function(){this._offTracker(),this._offTracker=null},_subscribeToTracker:function(e,t,n){this._offTracker=e.on({"focus-on":function(e){var i,o,a=!1;t.isEnabled()&&((o=(i=n.byName(e.data.name))&&i.getProxy(e.data.index))&&t.show(o,{x:0,y:0,offset:0},{target:o})&&(t.move(e.x,e.y,12),a=!0)),e.done(a)},"focus-move":function(e){t.move(e.x,e.y,12)},"focus-off":function(){t.hide()}})}},t.TooltipViewer=i},function(e,t,n){e.exports=n(816)},function(e,t,n){function i(e,t,n,i){return n!==i.first&&n!==i.last||(e=t.firstLastColor),(i.min||[]).indexOf(n)>=0&&(e=t.minColor),(i.max||[]).indexOf(n)>=0&&(e=t.maxColor),e}var o=n(410),a=n(263),r=n(265),s={line:!0,spline:!0,stepline:!0,area:!0,steparea:!0,splinearea:!0,bar:!0,winloss:!0},l=Math,u=l.abs,c=l.round,d=l.max,h=l.min,p=isFinite,f=n(11),g=f.map,_=f.normalizeEnum,m=n(1).isDefined,v=Number,y=String,b=o.inherit({_rootClassPrefix:"dxsl",_rootClass:"dxsl-sparkline",_themeSection:"sparkline",_defaultSize:{width:250,height:30},_initCore:function(){this.callBase(),this._createSeries()},_initialChanges:["DATA_SOURCE"],_dataSourceChangedHandler:function(){this._requestChange(["UPDATE"])},_updateWidgetElements:function(){this._updateSeries(),this.callBase()},_disposeWidgetElements:function(){var e=this;e._series&&e._series.dispose(),e._series=e._seriesGroup=e._seriesLabelGroup=null},_cleanWidgetElements:function(){this._seriesGroup.remove(),this._seriesLabelGroup.remove(),this._seriesGroup.clear(),this._seriesLabelGroup.clear()},_drawWidgetElements:function(){this._dataIsLoaded()&&(this._drawSeries(),this._drawn())},_getCorrectCanvas:function(){var e=this._allOptions,t=this._canvas,n=e.pointSize&&Math.ceil(e.pointSize/2)+2,i=e.type;return"bar"!==i&&"winloss"!==i&&(e.showFirstLast||e.showMinMax)?{width:t.width,height:t.height,left:t.left+n,right:t.right+n,top:t.top+n,bottom:t.bottom+n}:t},_prepareOptions:function(){var e=this;e._allOptions=e.callBase(),e._allOptions.type=_(e._allOptions.type),s[e._allOptions.type]||(e._allOptions.type="line")},_createHtmlElements:function(){this._seriesGroup=this._renderer.g().attr({class:"dxsl-series"}),this._seriesLabelGroup=this._renderer.g().attr({class:"dxsl-series-labels"})},_createSeries:function(){this._series=new r.Series({renderer:this._renderer,seriesGroup:this._seriesGroup,labelsGroup:this._seriesLabelGroup,argumentAxis:this._argumentAxis,valueAxis:this._valueAxis},{widgetType:"chart",type:"line"})},_updateSeries:function(){var e,t,n=this,i=n._series;n._prepareDataSource(),t=n._prepareSeriesOptions(),i.updateOptions(t),(e={groups:[{series:[i]}]}).argumentOptions={type:"bar"===t.type?"discrete":void 0},n._simpleDataSource=a.validateData(n._simpleDataSource,e,n._incidentOccurred,{checkTypeForAllData:!1,convertToAxisDataType:!0,sortingMethod:!0})[i.getArgumentField()],t.customizePoint=n._getCustomizeFunction(),i.updateData(n._simpleDataSource),i.createPoints(),n._groupsDataCategories=e.categories},_optionChangesMap:{dataSource:"DATA_SOURCE"},_optionChangesOrder:["DATA_SOURCE"],_change_DATA_SOURCE:function(){this._updateDataSource()},_prepareDataSource:function(){var e=this,t=e._allOptions,n=t.argumentField,i=t.valueField,o=function(e,t,n,i){return g(e,function(e,o){var a,r,s=null;return void 0!==e&&(s={},a=p(e),s[t]=a?y(o):e[t],r=a?e:e[n],s[n]=null===r?i?void 0:r:v(r),s=void 0!==s[t]&&void 0!==s[n]?s:null),s})}(e._dataSourceItems()||[],n,i,e.option("ignoreEmptyPoints"));"winloss"===t.type?(e._winlossDataSource=o,e._simpleDataSource=function(e,t,n,i){return g(e,function(e){var o={};return o[t]=e[t],u(e[n]-i)<1e-4?o[n]=0:e[n]>i?o[n]=1:o[n]=-1,o})}(o,n,i,t.winlossThreshold)):e._simpleDataSource=o},_prepareSeriesOptions:function(){var e=this._allOptions,t="winloss"===e.type?"bar":e.type;return{visible:!0,argumentField:e.argumentField,valueField:e.valueField,color:e.lineColor,width:e.lineWidth,widgetType:"chart",type:t,opacity:-1!==t.indexOf("area")?this._allOptions.areaOpacity:void 0,point:{size:e.pointSize,symbol:e.pointSymbol,border:{visible:!0,width:2},color:e.pointColor,visible:!1,hoverStyle:{border:{}},selectionStyle:{border:{}}},border:{color:e.lineColor,width:e.lineWidth,visible:"bar"!==t}}},_getCustomizeFunction:function(){var e=this,t=e._allOptions,n=e._winlossDataSource||e._simpleDataSource,o=e._getExtremumPointsIndexes(n);return"winloss"===t.type||"bar"===t.type?function(e,t,n){return function(){var o=this.index,a="winloss"===t.type,r=a?t.winlossThreshold:0,s=a?n[o][t.valueField]:this.value,l=a?t.winColor:t.barPositiveColor,u=a?t.lossColor:t.barNegativeColor;return{color:i(s>=r?l:u,t,o,e)}}}(o,t,e._winlossDataSource):function(e,t){return function(){var n=i(void 0,t,this.index,e);return n?{visible:!0,border:{color:n}}:{}}}(o,t)},_getExtremumPointsIndexes:function(e){var t=this,n=t._allOptions,i=e.length-1,o={};return t._minMaxIndexes=function(e,t){var n,i,o=(e[0]||{})[t]||0,a=o,r=o,s=[0],l=[0],u=e.length;for(i=1;i<u;i++)(n=e[i][t])<a?(a=n,s=[i]):n===a&&s.push(i),n>r?(r=n,l=[i]):n===r&&l.push(i);return r===a&&(s=l=[]),{minIndexes:s,maxIndexes:l}}(e,n.valueField),n.showFirstLast&&(o.first=0,o.last=i),n.showMinMax&&(o.min=t._minMaxIndexes.minIndexes,o.max=t._minMaxIndexes.maxIndexes),o},_getStick:function(){return{stick:"bar"!==this._series.type}},_updateRange:function(){var e,t,n=this,i=n._series,o=i.type,a="bar"===o,r="winloss"===o,s=i.getRangeData(),l=n._allOptions.minValue,u=m(l)&&p(l),c=n._allOptions.maxValue,f=m(c)&&p(c);e=.15*(s.val.max-s.val.min),a||r||"area"===o?(0!==s.val.min&&(s.val.min-=e),0!==s.val.max&&(s.val.max+=e)):(s.val.min-=e,s.val.max+=e),(u||f)&&(u&&f?(s.val.minVisible=h(l,c),s.val.maxVisible=d(l,c)):(s.val.minVisible=u?v(l):void 0,s.val.maxVisible=f?v(c):void 0),r&&(s.val.minVisible=u?d(s.val.minVisible,-1):void 0,s.val.maxVisible=f?h(s.val.maxVisible,1):void 0)),i.getPoints().length>1&&a&&(t=.1*(s.arg.max-s.arg.min),s.arg.min=s.arg.min-t,s.arg.max=s.arg.max+t),s.arg.categories=n._groupsDataCategories,n._ranges=s},_getBarWidth:function(e){var t=this._canvas,n=4*e,i=t.width-t.left-t.right-n,o=c(i/e);return o<1&&(o=1),o>50&&(o=50),o},_correctPoints:function(){var e,t,n=this,i=n._allOptions.type,o=n._series.getPoints(),a=o.length;if("bar"===i||"winloss"===i)for(e=n._getBarWidth(a),t=0;t<a;t++)o[t].correctCoordinates({width:e,offset:0})},_drawSeries:function(){var e=this;e._simpleDataSource.length>0&&(e._correctPoints(),e._series.draw(),e._seriesGroup.append(e._renderer.root))},_isTooltipEnabled:function(){return!!this._simpleDataSource.length},_getTooltipData:function(){var e=this,t=e._allOptions,n=e._winlossDataSource||e._simpleDataSource,i=e._tooltip;if(0===n.length)return{};var o=e._minMaxIndexes,a=t.valueField,r=n[0][a],s=n[n.length-1][a],l=m(o.minIndexes[0])?n[o.minIndexes[0]][a]:r,u=m(o.maxIndexes[0])?n[o.maxIndexes[0]][a]:r,c=i.formatValue(r),d=i.formatValue(s),h=i.formatValue(l),p=i.formatValue(u),f={firstValue:c,lastValue:d,minValue:h,maxValue:p,originalFirstValue:r,originalLastValue:s,originalMinValue:l,originalMaxValue:u,valueText:["Start:",c,"End:",d,"Min:",h,"Max:",p]};return"winloss"===t.type&&(f.originalThresholdValue=t.winlossThreshold,f.thresholdValue=i.formatValue(t.winlossThreshold)),f}});g(["lineColor","lineWidth","areaOpacity","minColor","maxColor","barPositiveColor","barNegativeColor","winColor","lessColor","firstLastColor","pointSymbol","pointColor","pointSize","type","argumentField","valueField","winlossThreshold","showFirstLast","showMinMax","ignoreEmptyPoints","minValue","maxValue"],function(e){b.prototype._optionChangesMap[e]="OPTIONS"}),n(8)("dxSparkline",b),e.exports=b,b.addPlugin(n(145).plugin)},function(e,t,n){e.exports=n(818)},function(e,t,n){var i=n(3).each,o=n(410),a=Number,r=isFinite,s=o.inherit({_rootClassPrefix:"dxb",_rootClass:"dxb-bullet",_themeSection:"bullet",_defaultSize:{width:300,height:30,left:1,right:1,top:2,bottom:2},_disposeWidgetElements:function(){delete this._zeroLevelPath,delete this._targetPath,delete this._barValuePath},_cleanWidgetElements:function(){this._zeroLevelPath.remove(),this._targetPath.remove(),this._barValuePath.remove()},_drawWidgetElements:function(){this._drawBullet(),this._drawn()},_createHtmlElements:function(){var e=this._renderer;this._zeroLevelPath=e.path(void 0,"line").attr({class:"dxb-zero-level","stroke-linecap":"square"}),this._targetPath=e.path(void 0,"line").attr({class:"dxb-target","stroke-linecap":"square"}),this._barValuePath=e.path(void 0,"line").attr({class:"dxb-bar-value","stroke-linecap":"square"})},_prepareOptions:function(){var e,t,n,i,o,r,s,l,u=this;u._allOptions=e=u.callBase(),s=void 0===u._allOptions.value,l=void 0===u._allOptions.target,u._tooltipEnabled=!(s&&l),s&&(u._allOptions.value=0),l&&(u._allOptions.target=0),e.value=o=a(e.value),e.target=r=a(e.target),void 0===u._allOptions.startScaleValue&&(u._allOptions.startScaleValue=r<o?r:o,u._allOptions.startScaleValue=u._allOptions.startScaleValue<0?u._allOptions.startScaleValue:0),void 0===u._allOptions.endScaleValue&&(u._allOptions.endScaleValue=r>o?r:o),e.startScaleValue=t=a(e.startScaleValue),e.endScaleValue=n=a(e.endScaleValue),n<t&&(i=n,u._allOptions.endScaleValue=t,u._allOptions.startScaleValue=i,u._allOptions.inverted=!0)},_updateRange:function(){var e=this._allOptions;this._ranges={arg:{invert:e.inverted,min:e.startScaleValue,max:e.endScaleValue,axisType:"continuous",dataType:"numeric"},val:{min:0,max:1,axisType:"continuous",dataType:"numeric"}}},_drawBullet:function(){var e=this._allOptions,t=e.startScaleValue!==e.endScaleValue,n=r(e.startScaleValue),i=r(e.endScaleValue),o=r(e.value),a=r(e.target);t&&i&&n&&a&&o&&(this._drawBarValue(),this._drawTarget(),this._drawZeroLevel())},_getTargetParams:function(){var e=this,t=e._allOptions,n=e._valueAxis.getTranslator(),i=e._argumentAxis.getTranslator().translate(t.target);return{points:[i,n.translate(.02),i,n.translate(.98)],stroke:t.targetColor,"stroke-width":t.targetWidth}},_getBarValueParams:function(){var e,t,n=this,i=n._allOptions,o=n._argumentAxis.getTranslator(),a=n._valueAxis.getTranslator(),r=i.startScaleValue,s=i.endScaleValue,l=i.value,u=a.translate(.1),c=a.translate(.9);return l>0?(e=r<=0?0:r,t=l>=s?s:l<e?e:l):(e=s>=0?0:s,t=l<r?r:l>e?e:l),{points:[e=o.translate(e),c,t=o.translate(t),c,t,u,e,u],fill:i.color}},_getCorrectCanvas:function(){return this._canvas},_getZeroLevelParams:function(){var e=this,t=e._valueAxis.getTranslator(),n=e._argumentAxis.getTranslator().translate(0);return{points:[n,t.translate(.02),n,t.translate(.98)],stroke:e._allOptions.targetColor,"stroke-width":1}},_drawZeroLevel:function(){var e=this,t=e._allOptions;0>t.endScaleValue||0<t.startScaleValue||!t.showZeroLevel||e._zeroLevelPath.attr(e._getZeroLevelParams()).sharp().append(e._renderer.root)},_drawTarget:function(){var e=this,t=e._allOptions,n=t.target;n>t.endScaleValue||n<t.startScaleValue||!t.showTarget||e._targetPath.attr(e._getTargetParams()).sharp().append(e._renderer.root)},_drawBarValue:function(){this._barValuePath.attr(this._getBarValueParams()).append(this._renderer.root)},_getTooltipCoords:function(){var e=this._canvas,t=this._renderer.getRootOffset(),n=this._barValuePath.getBBox();return{x:n.x+n.width/2+t.left,y:e.height/2+t.top}},_getTooltipData:function(){var e=this._tooltip,t=this._allOptions,n=t.value,i=t.target,o=e.formatValue(n),a=e.formatValue(i);return{originalValue:n,originalTarget:i,value:o,target:a,valueText:["Actual Value:",o,"Target Value:",a]}},_isTooltipEnabled:function(){return this._tooltipEnabled}});i(["color","targetColor","targetWidth","showTarget","showZeroLevel","value","target","startScaleValue","endScaleValue"],function(e,t){s.prototype._optionChangesMap[t]="OPTIONS"}),n(8)("dxBullet",s),e.exports=s},function(e,t,n){e.exports=n(820)},function(e,t,n){var i=e.exports=n(73);n(411),n(821),n(822),n(823),n(413),n(824),n(825),n(147),n(414),n(826),n(416),n(827),n(828),n(829),i.addPlugin(n(97).plugin),i.addPlugin(n(106).plugin),i.addPlugin(n(121).plugin)},function(e,t,n){function i(e,t,n){return((n-1)*e+t)/n}function o(e){return a(e,i,!0)}var a=n(412);n(122).addAlgorithm("strip",o),e.exports=o},function(e,t,n){function i(e){var t=e.items,n=o.buildSidesData(e.rect,e.directions,e.isRotated?1:0);o.calculateRectangles(t,0,e.rect,n,{sum:e.sum,count:t.length,side:n.variedSide})}var o=n(122);o.addAlgorithm("sliceanddice",i),e.exports=i},function(e,t,n){var i=n(122),o=i.getAlgorithm("sliceanddice");i.addAlgorithm("rotatedsliceanddice",function(e){return e.isRotated=!e.isRotated,o.call(this,e)})},function(e,t,n){function i(e){return[Number(e[0])||0,e[1]-e[0]||1]}function o(e,t){var n,o,a=e.length,r=[];for(n=0;n<a;++n)o=t(e[n]),isFinite(o)&&r.push(o);return i([l.apply(null,r),u.apply(null,r)])}function a(e,t){var n={};return function(i){var a=i.parent;return e(i,n[a._id]||(n[a._id]=o(a.nodes,t)))}}function r(e,t){function n(e,t){return o.getColor((r(e)-t[0])/t[1])}var o=t.createGradientPalette(e.palette),r=s(e);return"range"in e?function(e,t){return function(n){return e(n,t)}}(n,i(e.range||[])):a(n,r)}var s=n(123).createColorCodeGetter,l=Math.min,u=Math.max;n(123).addColorizer("gradient",r),e.exports=r},function(e,t,n){function i(e,t){var n=e.range||[],i=t.createDiscretePalette(e.palette,n.length-1),a=o(e);return function(e){return i.getColor(function(e,t){var n,i=0,o=t.length-1,a=-1;if(t[i]<=e&&e<=t[o])if(e===t[o])a=o-1;else{for(;o-i>1;)e<t[n=i+o>>1]?o=n:i=n;a=i}return a}(a(e),n))}}var o=n(123).createColorCodeGetter;n(123).addColorizer("range",i),e.exports=i},function(e,t,n){var i=n(73).prototype,o=n(170).prototype,a=n(143).expand,r=n(272).buildRectAppearance,s=n(11).normalizeEnum,l=n(13).inArray;n(147),n(415),i._eventsMap.onSelectionChanged={name:"selectionChanged"},a(i._handlers,"calculateAdditionalStates",function(e,t){e[2]=t.selectionStyle?r(t.selectionStyle):{}}),o.statesMap[2]=o.statesMap[3]=2,o.additionalStates.push(2),a(i,"_onNodesCreated",function(){this._selectionList.length=0}),a(i,"_extendProxyType",function(e){var t=this;e.select=function(e){t._selectNode(this._id,!!e)},e.isSelected=function(){return l(this._id,t._selectionList)>=0},t._selectionList=[]}),n(73).addChange({code:"SELECTION_MODE",handler:function(){var e,t,n=this,i=s(n._getOption("selectionMode",!0)),o=n._selectionList;1===(e="none"===i?0:"multiple"===i?2:1)&&o.length>1?(t=o.pop(),n.clearSelection(),o.push(t)):0===e&&n.clearSelection(),n._selectionMode=e},isThemeDependent:!0,isOptionChange:!0,option:"selectionMode"}),a(i,"_applyTilesAppearance",function(){this._selectionList.length&&function(e,t){var n,i,o=t.length;for(n=0;n<o;++n)i=e[t[n]],u[Number(i.isNode())](i.tile)}(this._nodes,this._selectionList)});var u=[function(e){e.toForeground()},function(e){e.outer.toForeground(),e.inner.toForeground()}];i._applySelectionState=function(e,t){var n=this._nodes[e];n.setState(2,t),this._eventTrigger("selectionChanged",{node:n.proxy})},i._selectNode=function(e,t){var n,i,o,a=this;0!==a._selectionMode&&(a._context.suspend(),n=a._selectionList,i=l(e,n),t&&-1===i?(1===a._selectionMode&&n.length&&(o=n.pop(),a._applySelectionState(o,!1)),n.push(e),a._applySelectionState(e,!0)):!t&&i>=0&&(n.splice(i,1),a._applySelectionState(e,!1)),a._context.resume())},i.clearSelection=function(){var e,t=this,n=t._selectionList,i=n.length;if(0!==t._selectionMode){for(t._context.suspend(),e=0;e<i;++e)t._applySelectionState(n[e],!1);n.length=0,t._context.resume()}}},function(e,t,n){var i=n(73).prototype,o=n(273).Tracker,a=n(143).expand,r=n(11).parseScalar,s=0;n(147),n(414),n(416),i._eventsMap.onClick={name:"click"},a(i,"_initCore",function(){var e=this,t="__treemap_data_"+s++,n=function(t){return e._nodes[t].proxy};e._tracker=new o({widget:e,root:e._renderer.root,getNode:function(t){var i=n(t);return r(e._getOption("interactWithGroup",!0))&&i.isLeaf()&&i.getParent().isActive()?i.getParent():i},getData:function(e){var n=e.target;return("tspan"===n.tagName?n.parentNode:n)[t]},getProxy:n,click:function(t){e._eventTrigger("click",t)}}),e._handlers.setTrackerData=function(e,n){n.data(t,e._id)}}),a(i,"_disposeCore",function(){this._tracker.dispose()})},function(e,t,n){var i=n(73).prototype,o=n(143).expand;n(147),i._eventsMap.onDrill={name:"drill"},o(i,"_extendProxyType",function(e){var t=this;e.drillDown=function(){t._drillToNode(this._id)}}),o(i,"_onNodesCreated",function(){this._drilldownIndex=-1}),i._drillToNode=function(e){var t,n=this;n._drilldownIndex!==e&&((t=n._nodes[e]||n._root).nodes&&(n._drilldownIndex=e,n._topNode=t,n._context.suspend(),n._context.change(["MAX_DEPTH","NODES_RESET"]),n._context.resume(),n._eventTrigger("drill",{node:t.proxy})))},i.resetDrillDown=function(){return this._drillToNode(-1),this},i.drillUp=function(){return this._drillToNode(this._topNode.parent._id||-1),this},i.getCurrentNode=function(){return this._topNode.proxy}},function(e,t,n){var i=n(73).prototype;i._optionChangesMap.idField=i._optionChangesMap.parentField="NODES_CREATE",i._processDataSourceItems=function(e){var t,n,i,o,a,r={},s=this._getOption("idField",!0),l=this._getOption("parentField",!0),u=[];if(!s||!l||0===e.length)return{items:e,isPlain:!0};for(t=0;t<e.length;t++)(i=(n=e[t])[l])?(r[i]=r[i]||{items:[]},o=r[i].items):o=u,o.push(n);for(a in function e(t,n){var i,o,a,r=t.struct;for(o=0;o<n.length;o++)r[a=(i=n[o])[t.idField]]&&(i.items=r[a].items,r[a]=null,e(t,i.items))}({struct:r,idField:s},u),r)r[a]&&u.push(r[a]);return{items:u,isPlain:!0}}},function(e,t,n){var i=n(417);i.addPlugin(n(835).plugin),i.addPlugin(n(97).plugin),i.addPlugin(n(106).plugin),i.addPlugin(n(203).plugin),i.addPlugin(n(836).plugin),i.addPlugin(n(837).plugin),i.addPlugin(n(121).plugin),e.exports=i},function(e,t,n){var i,o=n(11).normalizeEnum,a={};t.getAlgorithm=function(e){return a[o(e)]||i},t.addAlgorithm=function(e,t,n){a[e]=t,n&&(i=a[e])}},function(e,t,n){e.exports={getFigures:function(e){var t=1/e.length;return e.map(function(e,n,i){var o=i[n+1]?i[n+1]:i[n];return[.5-e/2,t*n,.5+e/2,t*n,.5+o/2,t*(n+1),.5-o/2,t*(n+1)]})},normalizeValues:function(e){var t=e.reduce(function(e,t){return Math.max(t.value,e)},e[0]&&e[0].value||0);return e.map(function(e){return e.value/t})}}},function(e,t,n){e.exports={getFigures:function(e,t,n){var i=0,o=0,a=0,r=0,s=t/2,l=.5-s,u=1-n,c=.5-s,d=.5+s;return e.map(function(e){return a=r,o=i,r=l*(i+=e)/u,o<=u&&i<=u?[a,o,1-a,o,1-r,i,0+r,i]:o<=u&&i>u?[a,o,1-a,o,d,u,d,i,c,i,c,u]:[c,o,d,o,d,i,c,i]})},normalizeValues:function(e){var t=e.reduce(function(e,t){return e+t.value},0);return e.map(function(e){return e.value/t})}}},function(e,t,n){function i(e,t,n){var i=t.border,o=n.border,a=r(i.visible)?i.visible:o.visible,s=r(i.width)?i.width:o.width;return{fill:e,hatching:t.hatching,stroke:i.color||o.color,"stroke-width":a?s:0}}function o(e,t){var n=this,o=t.data;n.code=0,n.widget=e,n.figure=t.figure,n.argument=o.argument,n.value=o.value,n.data=o.dataItem,n.percent=t.percent,n.id=t.id,n.color=t.color,n.states={normal:i(t.color,t.itemOptions,t.itemOptions),hover:i(t.color,t.itemOptions.hoverStyle,t.itemOptions),selection:i(t.color,t.itemOptions.selectionStyle,t.itemOptions)}}var a=["normal","hover","selection","selection"],r=n(1).isDefined;o.prototype={getState:function(){return a[this.code]},getNormalStyle:function(){return this.states.normal},setHover:function(){this.hover(!0)},hover:function(e){this.widget._getOption("hoverEnabled",!0)&&e!==this.isHovered()&&(this.widget._suspend(),e&&this.widget.clearHover(),this.setState(1,e),this.widget._eventTrigger("hoverChanged",{item:this}),this.widget._resume())},setState:function(e,t){t?this.code|=e:this.code&=~e,this.widget._applyTilesAppearance()},select:function(e){var t=this.widget._getOption("selectionMode",!0);"none"!==t&&e!==this.isSelected()&&(this.widget._suspend(),e&&"multiple"!==t&&this.widget.clearSelection(),this.setState(2,e),this.widget._eventTrigger("selectionChanged",{item:this}),this.widget._resume())},showTooltip:function(e){this.widget._showTooltip(this.id,e)},getColor:function(){return this.color},isHovered:function(){return!!(1&this.code)},isSelected:function(){return!!(2&this.code)}},e.exports=o},function(e,t,n){function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){return(e=(0,d.normalizeEnum)(e))===f||e!==g}function a(e,t,n){return n?e-t.height:e}function r(e,t,n,i){return{x:e[2]+n.horizontalOffset+_,y:a(e[3]+n.verticalOffset,t,i)}}function s(e,t,n,i){return{x:e[0]-t.width-n.horizontalOffset-_,y:a(e[1]+n.verticalOffset,t,i)}}function l(e,t,n){var i=e[2]-e[0],o=e[7]-e[1];return{x:e[0]+i/2+n.horizontalOffset-t.width/2,y:e[1]+n.verticalOffset+o/2-t.height/2}}var u=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,o=!1,a=void 0;try{for(var r,s=e[Symbol.iterator]();!(i=(r=s.next()).done)&&(n.push(r.value),!t||n.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(e){return e&&e.__esModule?e:{default:e}}(n(266)),d=n(11),h=n(0),p=n(4),f="outside",g="inside",_=5,m=20,v=4,y=1;t.plugin={name:"lables",init:p.noop,dispose:p.noop,extenders:{_initCore:function(){this._labelsGroup=this._renderer.g().attr({class:this._rootClassPrefix+"-labels"}).append(this._renderer.root),this._labels=[]},_applySize:function(){var e=this._getOption("label"),t=this._getOption("adaptiveLayout"),n=this._rect,i=0,a=n[2]-n[0];return this._labelRect=n.slice(),this._labels.length&&o(e.position)?(i=this._labels.map(function(e){return e.resetEllipsis(),e.getBoundingRect().width}).reduce(function(e,t){return Math.max(e,t)},0)+e.horizontalOffset+function(e){return(e=(0,d.normalizeEnum)(e))===f?_:e===g?0:m}(e.position),!t.keepLabels&&a-i<t.width?void this._labels.forEach(function(e){e.draw(!1)}):(a-i<t.width&&(i=(i=a-t.width)>0?i:0),this._labels.forEach(function(e){e.draw(!0)}),void("left"===e.horizontalAlignment?n[0]+=i:n[2]-=i))):void((0,d.normalizeEnum)("none"!==this._getOption("resolveLabelOverlapping",!0))&&this._labels.forEach(function(e){return!e.isVisible()&&e.draw(!0)}))},_buildNodes:function(){this._createLabels()},_change_TILING:function(){var e,t=this,n=t._getOption("label"),i=l,u=t._getOption("inverted",!0);o(n.position)&&((0,d.normalizeEnum)(n.position)===f?i="left"===n.horizontalAlignment?s:r:(e=this._defaultLabelTextAlignment(),i="left"===n.horizontalAlignment?function(e,t,n){return function(i,o,r,s){return{x:"left"===n?e[0]:t[0]-o.width-r.horizontalOffset-m,y:a(i[3]+r.verticalOffset,o,s)}}}(this._labelRect,this._rect,e):function(e,t,n){return function(i,o,r,s){return{x:"left"===n?t[2]+r.horizontalOffset+m:e[2]-o.width,y:a(i[3]+r.verticalOffset,o,s)}}}(this._labelRect,this._rect,e))),t._labels.forEach(function(e,a){var r,s,l=t._items[a],c=l.getNormalStyle()["stroke-width"],d=u?c/2:-c/2,h=d?l.coords.map(function(e,t){return 1===t||3===t?e-d:2===t?e-c:0===t?e+c:e}):l.coords;return n.showForZeroValues||0!==l.value?(o(n.position)&&t._correctLabelWidth(e,l.coords,n),r=e.getBoundingRect(),s=function(e,t,n){return e.x<n[0]&&(e.x=n[0]),e.x+t.width>n[2]&&(e.x=n[2]-t.width),e.y<n[1]&&(e.y=n[1]),e.y+t.height>n[3]&&(e.y=n[3]-t.height),e}(i(h,r,n,u),r,t._labelRect),e.setFigureToDrawConnector(h),void e.shift(s.x,s.y)):void e.draw(!1)}),t._resolveLabelOverlapping()}},members:{_resolveLabelOverlapping:function(){var e=this,t=(0,d.normalizeEnum)(e._getOption("resolveLabelOverlapping",!0)),n=this._getOption("inverted",!0)?e._labels.slice().reverse():e._labels;if("hide"===t)n.reduce(function(e,t){return t.getBoundingRect().y<e?t.hide():e=t.getBoundingRect().y+t.getBoundingRect().height,e},0);else if("shift"===t){var i=this._labelRect[3];n.reduce(function(t,n,o,a){var r=u(t,2),s=r[0],l=r[1],c=n.getBoundingRect(),d=c.y;return c.y<s&&(n.shift(c.x,s),d=s),d-s>0&&(l+=d-s),d+c.height>i?l&&l>d+c.height-i?(function(e,t,n){e.reduce(function(e,t,i,o){var a=o[i+1];if(e>0){var r=t.getBoundingRect(),s=a?a.getBoundingRect().y+a.getBoundingRect().height:n,l=r.y-s,u=Math.min(l,e);o.slice(0,i+1).forEach(function(e){var t=e.getBoundingRect();e.shift(t.x,t.y-u)}),e-=u}return e},t)}(a.slice(0,o).reverse(),d+c.height-i,e._labelRect[1]),l-=d+c.height-i,n.shift(c.x,d-(d+c.height-i)),s=d-(d+c.height-i)+c.height):n.hide():s=d+c.height,[s,l]},[this._labelRect[1],0])}},_defaultLabelTextAlignment:function(){return this._getOption("rtlEnabled",!0)?"right":"left"},_correctLabelWidth:function(e,t,n){var i="left"===n.horizontalAlignment,o=i?this._labelRect[0]:t[2],a=(i?t[0]:this._labelRect[2])-o;e.getBoundingRect().width>a&&e.fit(a)},_createLabels:function(){var e=this,t=e._getOption("label"),n=function(e,t){function n(e){return a?[e[0]+y,e[1]+s]:[e[2]-y,e[3]+s]}var a="left"===e.horizontalAlignment,r=a?v:-v,s=t?-y:0;return{isLabelInside:function(){return!o(e.position)},getFigureCenter:n,prepareLabelPoints:function(e){var t=e.x+r,n=e.y,o=t+e.width;return[].concat(i(Array(e.height+1))).map(function(e,i){return[t,n+i]}).concat([].concat(i(Array(e.height+1))).map(function(e,t){return[o,n+t]}))},isHorizontal:function(){return!0},findFigurePoint:function(e){return n(e)},adjustPoints:function(e){return e.map(Math.round)}}}(t,e._getOption("inverted",!0));this._labelsGroup.clear(),t.visible&&(this._labels=e._items.map(function(i){var a=new c.default.Label({renderer:e._renderer,labelsGroup:e._labelsGroup,strategy:n});return a.setOptions(function(e,t,n){var i=e||{},a=(0,h.extend)({},i.font)||{},r=i.border||{},s=i.connector||{},l={fill:i.backgroundColor||t,"stroke-width":r.visible&&r.width||0,stroke:r.visible&&r.width?r.color:"none",dashStyle:r.dashStyle},u={stroke:s.visible&&s.width?s.color||t:"none","stroke-width":s.visible&&s.width||0,opacity:s.opacity};return a.color="none"===i.backgroundColor&&"#ffffff"===(0,d.normalizeEnum)(a.color)&&"inside"!==i.position?t:a.color,{format:i.format,textAlignment:i.textAlignment||(o(i.position)?n:"center"),customizeText:i.customizeText,attributes:{font:a},visible:0!==a.size&&i.visible,showForZeroValues:i.showForZeroValues,horizontalOffset:i.horizontalOffset,verticalOffset:i.verticalOffset,background:l,connector:u,wordWrap:e.wordWrap,textOverflow:e.textOverflow}}(t,i.color,e._defaultLabelTextAlignment())),a.setData({item:i,value:i.value,percent:i.percent}),a.draw(!0),a}),this._labels.length&&o(t.position)&&this._requestChange(["LAYOUT"]))}},customize:function(e){e.prototype._proxyData.push(function(e,t){var n,i=this;return i._labels.forEach(function(a,r){var s=a.getBoundingRect();if(e>=s.x&&e<=s.x+s.width&&t>=s.y&&t<=s.y+s.height){var l=o(i._getOption("label").position)?"outside":"inside";return n={id:r,type:l+"-label"},!0}}),n}),["label","resolveLabelOverlapping"].forEach(function(t){e.addChange({code:t.toUpperCase(),handler:function(){this._createLabels(),this._requestChange(["LAYOUT"])},isThemeDependent:!0,isOptionChange:!0,option:t})})},fontFields:["label.font"]}},function(e,t,n){var i=n(417).prototype,o=n(273).Tracker,a=n(1).isDefined,r=0;i._eventsMap.onItemClick={name:"itemClick"},i._eventsMap.onLegendClick={name:"legendClick"},t.plugin={name:"tracker",init:function(){var e=this,t="__funnel_data_"+r++,n=function(t){var n=e._renderer.getRootOffset(),i=Math.floor(t.pageX-n.left),o=Math.floor(t.pageY-n.top);return e._hitTestTargets(i,o)};e._tracker=new o({widget:e,root:e._renderer.root,getData:function(e,i){var o,r=e.target[t];return a(r)?r:(o=n(e),i&&o&&"inside-label"!==o.type?void 0:o&&o.id)},getNode:function(t){return e._items[t]},click:function(t){var i=n(t.event),o="legend"===(i&&i.type)?"legendClick":"itemClick";e._eventTrigger(o,{item:t.node,event:t.event})}}),this._dataKey=t},dispose:function(){this._tracker.dispose()},extenders:{_change_TILING:function(){var e=this._dataKey;this._items.forEach(function(t,n){t.element.data(e,n)})}}}},function(e,t,n){var i=n(4).noop;t.plugin={name:"funnel-tooltip",init:i,dispose:i,extenders:{_buildNodes:function(){this.hideTooltip()},_change_TILING:function(){this._tooltipIndex>=0&&this._moveTooltip(this._items[this._tooltipIndex])}},members:{hideTooltip:function(){this._tooltipIndex>=0&&(this._tooltipIndex=-1,this._tooltip.hide())},_moveTooltip:function(e,t){var n=t||e.coords&&function(e,t){var n=t.getRootOffset();return[(e[0]+e[2])/2+n.left,(e[1]+e[5])/2+n.top]}(e.coords,this._renderer)||[-1e3,-1e3];this._tooltip.move(n[0],n[1],0)},_showTooltip:function(e,t){var n=this,i=n._tooltip,o=n._items[e],a=n._tooltipIndex===e||i.show({value:o.value,valueText:i.formatValue(o.value),percentText:i.formatValue(o.percent,"percent"),percent:o.percent,item:o},{x:0,y:0,offset:0},{item:o});a?n._moveTooltip(o,t):i.hide(),n._tooltipIndex=a?e:-1}},customize:function(e){e.addPlugin(n(108).plugin)}}},function(e,t,n){var i=n(418),o=n(843).setTooltipCustomOptions;i.addPlugin(n(97).plugin),i.addPlugin(n(106).plugin),i.addPlugin(n(844).plugin),i.addPlugin(n(121).plugin),i.addPlugin(n(108).plugin),o(i),e.exports=i},function(e,t,n){function i(e,t,n){var i=t.border,o=n.border,a=r(i.visible)?i.visible:o.visible,s=r(i.width)?i.width:o.width,l=r(i.opacity)?i.opacity:r(o.opacity)?o.opacity:1,u=r(t.opacity)?t.opacity:r(n.opacity)?n.opacity:1;return{fill:t.color||e,"stroke-width":a?s:0,stroke:t.border.color||n.border.color,"stroke-opacity":l,opacity:u,hatching:t.hatching}}function o(e,t){var n=this,o=e._renderer.getRootOffset();n.code=0,n.widget=e,n.color=t.color,n.options=t.options,n.rect=t.rect,n.title=t.rect._name,n.coords={x:t.rect.x+t.rect.width/2+o.left,y:t.rect.y+t.rect.height/2+o.top},n.id=t.id,n.linksIn=t.linksIn,n.linksOut=t.linksOut,this.states={normal:i(this.color,n.options,n.options),hover:i(this.color,n.options.hoverStyle,n.options)}}var a=["normal","hover"],r=n(1).isDefined;o.prototype={compileAttrs:function(){return i(this.color,this.options)},getState:function(){return a[this.code]},isHovered:function(){return!!(1&this.code)},setState:function(e,t){var n=this;t?this.code|=e:this.code&=~e,t?this.linksIn.concat(this.linksOut).forEach(function(e){n.widget._links[e.index].setAdjacentNodeHover(!0)}):(this.widget._links.forEach(function(e){e.isAdjacentNodeHovered()&&e.adjacentNodeHover(!1)}),this.hideTooltip()),this.widget._applyNodesAppearance(),this.widget._applyLinksAppearance()},hover:function(e){this.widget._getOption("hoverEnabled",!0)&&e!==this.isHovered()&&(this.widget._suspend(),e&&this.widget.clearHover(),this.setState(1,e),this.widget._eventTrigger("nodeHoverChanged",{target:this}),this.widget._resume())},setHover:function(){this.hover(!0)},showTooltip:function(e){this.widget._getOption("hoverEnabled",!0)&&this.widget._tooltip&&this.widget._tooltip.show({type:"node",info:{title:this.title,weightIn:this.linksIn.reduce(function(e,t){return e+t.weight},0),weightOut:this.linksOut.reduce(function(e,t){return e+t.weight},0)}},void 0!==e?{x:e[0],y:e[1]}:this.coords)},hideTooltip:function(){this.widget._tooltip&&this.widget._tooltip.hide()},getLabelAttributes:function(e,t){return function(e,t,i){var o=n(11).patchFontOptions;e.useNodeColors&&(e.font.color=i.color);var a=!!r(e.border.visible)&&e.border.visible,s=r(e.border.width)?e.border.width:0,l=r(e.border.color)?e.border.color:e.font.color,u=r(e.border.opacity)?e.border.opacity:1,c={filter:t};return a&&s&&(c.stroke=l,c["stroke-width"]=a?s:0,c["stroke-opacity"]=u),{attr:c,css:o(e.font)}}(e,t,this)}},e.exports=o},function(e,t,n){function i(e,t,n,i){var o=t.border,r=n.border,l=s(o.visible)?o.visible:r.visible,u=s(o.width)?o.width:r.width,c=s(o.opacity)?o.opacity:s(r.opacity)?r.opacity:1,d=s(t.opacity)?t.opacity:s(n.opacity)?n.opacity:1,h=t.color||e;return n.colorMode===a.COLOR_MODE_TARGET||n.colorMode===a.COLOR_MODE_SOURCE?h=e:n.colorMode===a.COLOR_MODE_GRADIENT&&i&&s(i.id)&&(h=i.id),{fill:h,"stroke-width":l?u:0,stroke:t.border.color||n.border.color,"stroke-opacity":c,opacity:d,hatching:t.hatching}}function o(e,t){var n=this,o=e._renderer.getRootOffset();n.code=0,n.widget=e,n.color=t.color,n.connection=t.connection,n.d=t.d,n.options=t.options,n.boundingRect=t.boundingRect,n.coords={x:t.boundingRect.x+t.boundingRect.width/2+o.left,y:t.boundingRect.y+t.boundingRect.height/2+o.top},n.states={normal:i(n.color,n.options,n.options,t.gradient),adjacentNodeHover:i(n.color,{opacity:0,border:{}},n.options,t.gradient),hover:i(n.color,{opacity:0,border:{}},n.options,t.gradient)},n.overlayStates={normal:i(n.color,{opacity:0,border:{}},n.options),adjacentNodeHover:i(n.color,n.options.hoverStyle,n.options),hover:i(n.color,n.options.hoverStyle,n.options)}}var a=n(419),r=["normal","adjacentNodeHover","hover"],s=n(1).isDefined;o.prototype={getState:function(){return r[this.code]},isHovered:function(){return 2===this.code},isAdjacentNodeHovered:function(){return 1===this.code},setState:function(e,t){t?this.code=e:(this.code=0,this.hideTooltip()),this.widget._applyLinksAppearance()},setHover:function(){this.hover(!0)},hover:function(e){this.widget._getOption("hoverEnabled",!0)&&e!==this.isHovered()&&(this.widget._suspend(),e&&this.widget.clearHover(),this.setState(2,e),this.widget._eventTrigger("linkHoverChanged",{target:this}),this.widget._resume())},adjacentNodeHover:function(e){this.widget._getOption("hoverEnabled",!0)&&e!==this.isAdjacentNodeHovered()&&(this.widget._suspend(),this.setState(1,e),this.widget._resume())},setAdjacentNodeHover:function(){this.adjacentNodeHover(!0)},showTooltip:function(e){this.widget._getOption("hoverEnabled",!0)&&this.widget._tooltip&&this.widget._tooltip.show({type:"link",info:{source:this.connection.source,target:this.connection.target,weight:this.connection.weight}},void 0!==e?{x:e[0],y:e[1]}:this.coords)},hideTooltip:function(){this.widget._tooltip&&this.widget._tooltip.hide()}},e.exports=o},function(e,t,n){var i="center",o=i,a=n(420),r=n(842),s={_weightPerPixel:null,_getCascadeIdx:function(e,t){var n=t.filter(function(t){return t.name===e})[0];return n.outgoing.length>0?n.lp:a.routines.maxOfArray(t.map(function(e){return e.lp}))},_getInWeightForNode:function(e,t){var n=0;return t.forEach(function(t){t[1]===e&&(n+=t[2])}),n},_getOutWeightForNode:function(e,t){var n=0;return t.forEach(function(t){t[0]===e&&(n+=t[2])}),n},_computeCascades:function(e){for(var t=this,n=a.struct.computeLongestPaths(e),i=a.routines.maxOfArray(n.map(function(e){return e.lp})),o=[],r=0;r<i+1;r++)o.push({});return e.forEach(function(e){var i=o[t._getCascadeIdx(e[0],n)];i[e[0]]||(i[e[0]]={nodeTitle:e[0]}),(i=o[t._getCascadeIdx(e[1],n)])[e[1]]||(i[e[1]]={nodeTitle:e[1]})}),o.forEach(function(n){Object.keys(n).forEach(function(i){var o=n[i];o.inWeight=t._getInWeightForNode(o.nodeTitle,e),o.outWeight=t._getOutWeightForNode(o.nodeTitle,e),o.maxWeight=Math.max(o.inWeight,o.outWeight)})}),o},_getWeightForCascade:function(e,t){var n=0,i=e[t];return Object.keys(i).forEach(function(e){n+=Math.max(i[e].inWeight,i[e].outWeight)}),n},_getMaxWeightThroughCascades:function(e){var t=[];return e.forEach(function(e){var n=0;Object.keys(e).forEach(function(t){var i=e[t];n+=Math.max(i.inWeight,i.outWeight)}),t.push(n)}),a.routines.maxOfArray(t)},_computeNodes:function(e,t){var n=this,r=[],s=this._getMaxWeightThroughCascades(e),l=a.routines.maxOfArray(e.map(function(e){return Object.keys(e).length})),u=t.nodePadding,c=t.height-u*(l-1);c<0&&(u=0,c=t.height-u*(l-1)),this._weightPerPixel=s/c;var d=0;return e.forEach(function(a){var l,h=[],p=0,f=Object.keys(a).length,g=n._getWeightForCascade(e,d)/n._weightPerPixel+u*(f-1);"bottom"===(l=Array.isArray(t.nodeAlign)?d<t.nodeAlign.length?t.nodeAlign[d]:o:t.nodeAlign)?p=t.height-g:l===i&&(p=.5*(t.height-g)),p=Math.round(p),Object.keys(a).forEach(function(e){a[e].sort=n._sort&&n._sort.hasOwnProperty(e)?n._sort[e]:1}),Object.keys(a).sort(function(e,t){return a[e].sort-a[t].sort}).forEach(function(n){var i=a[n],o=Math.floor(c*i.maxWeight/s),r=Math.round(d*t.width/(e.length-1))-(0===d?0:t.nodeWidth),l={};l._name=n,l.width=t.nodeWidth,l.height=o,l.x=r+t.x,l.y=p+t.y,p+=o+u,h.push(l)}),d++,r.push(h)}),r},_findRectByName:function(e,t){for(var n=0;n<e.length;n++)for(var i=0;i<e[n].length;i++)if(t===e[n][i]._name)return e[n][i];return null},_findIndexByName:function(e,t){for(var n=0,i=0;i<e.length;i++)for(var o=0;o<e[i].length;o++){if(t===e[i][o]._name)return n;n++}return null},_computeLinks:function(e,t,n){var i=this,o={},a=[],r=[];return n.forEach(function(e){Object.keys(e).forEach(function(e){o[e]={in:0,out:0}})}),t.forEach(function(n){n.forEach(function(n){var r=n._name,s=i._findRectByName(t,r),l=e.filter(function(e){return e[0]===r});l.forEach(function(e){e.sort=i._findIndexByName(t,e[1])}),l.sort(function(e,t){return e.sort-t.sort}).forEach(function(e){var n=i._findRectByName(t,e[1]),r=Math.round(e[2]/i._weightPerPixel),l=o[e[0]].out,u=o[e[1]].in,c=o[e[0]].out+r>s.height?s.height-o[e[0]].out:r,d=o[e[1]].in+r>n.height?n.height-o[e[1]].in:r;a.push({from:{x:s.x,y:s.y+l,width:s.width,height:c,node:s,weight:e[2]},to:{x:n.x,y:n.y+u,width:n.width,height:d,node:n}}),o[e[0]].out+=r,o[e[1]].in+=r})})}),a.forEach(function(e){var t={d:i._spline(e.from,e.to),_boundingRect:{x:e.from.x+e.from.width,y:Math.min(e.from.y,e.to.y),width:e.to.x-(e.from.x+e.from.width),height:Math.max(e.from.x+e.from.height,e.to.y+e.to.height)-Math.min(e.from.y,e.to.y)},_weight:e.from.weight,_from:e.from.node,_to:e.to.node};r.push(t)}),this._fitAllNodesHeight(t,a),r},_fitNodeHeight:function(e,t,n){var i=this._findRectByName(t,e),o=0,a=0;n.forEach(function(t){t.from.node._name===e&&(a+=t.from.height),t.to.node._name===e&&(o+=t.to.height)}),i.height=Math.max(o,a)},_fitAllNodesHeight:function(e,t){for(var n=0;n<e.length;n++)for(var i=0;i<e[n].length;i++)this._fitNodeHeight(e[n][i]._name,e,t)},_spline:function(e,t){var n=e.x+e.width,i=e.y,o=e.x+e.width,a=e.y+e.height,r=t.x,s=t.y,l=t.x,u=t.y+t.height,c=.3*(r-n);return"M "+n+" "+i+" C "+(n+c)+" "+i+" "+(r-c)+" "+s+" "+r+" "+s+" L "+l+" "+u+" C "+(l-c)+" "+u+" "+(o+c)+" "+a+" "+o+" "+a+" Z"},computeLayout:function(e,t,n,i){this._sort=t;var o={},a=r.validate(e,i);return a?o.error=a:(o.cascades=this._computeCascades(e),o.nodes=this._computeNodes(o.cascades,{width:n.availableRect.width,height:n.availableRect.height,x:n.availableRect.x,y:n.availableRect.y,nodePadding:n.nodePadding,nodeWidth:n.nodeWidth,nodeAlign:n.nodeAlign}),o.links=this._computeLinks(e,o.nodes,o.cascades)),o},overlap:function(e,t){return!(t.x>e.x+e.width||t.x+t.width<e.x||t.y>=e.y+e.height||t.y+t.height<=e.y)}};e.exports=s},function(e,t,n){var i=n(420),o={validate:function(e,t){var n=null;return this._hasCycle(e)&&(n="E2006",t("E2006")),n},_hasCycle:function(e){return i.struct.hasCycle(e)}};e.exports=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.setTooltipCustomOptions=function(e){e.prototype._setTooltipOptions=function(){var e=this._tooltip,t=e&&this._getOption("tooltip");e&&e.update(i({},t,{customizeTooltip:function(e){return"node"===e.type?s(t.customizeNodeTooltip,r)(e.info):"link"===e.type?s(t.customizeLinkTooltip,a)(e.info):{}},enabled:t.enabled}))},e.prototype.hideTooltip=function(){this._tooltip&&this._tooltip.hide()}};var i=n(0).extend,o=n(1).isFunction,a=function(e){return{html:"<strong>"+e.source+" > "+e.target+"</strong><br/>Weight: "+e.weight}},r=function(e){return{html:"<strong>"+e.title+"</strong><br/>Incoming weight: "+e.weightIn+"<br/>Outgoing weight: "+e.weightOut}},s=function(e,t){return function(n){var a=o(e)?e.call(n,n):{};return a.hasOwnProperty("html")||a.hasOwnProperty("text")||(a=i(a,t.call(n,n))),a}}},function(e,t,n){var i=n(418).prototype,o=n(273).Tracker,a=0;i._eventsMap.onNodeClick={name:"nodeClick"},i._eventsMap.onLinkClick={name:"linkClick"},t.plugin={name:"tracker",init:function(){var e=this,t="__sankey_data_"+a++;e._tracker=new o({widget:e,root:e._renderer.root,getData:function(e){return e.target[t]},getNode:function(t){return t<e._nodes.length?e._nodes[t]:e._links[t-e._nodes.length]},click:function(t){var n=this.getData(t.event)<e._nodes.length?"nodeClick":"linkClick";e._eventTrigger(n,{target:t.node,event:t.event})}}),this._dataKey=t},dispose:function(){this._tracker.dispose()},extenders:{_change_LINKS_DRAW:function(){var e=this._dataKey;this._nodes.concat(this._links).forEach(function(t,n){t.element.data(e,n)})}}}},function(e,t,n){t.refreshPaths=n(168).refreshPaths},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(39),s=n(19),l=n(26),u=n(10).getPublicElement,c=n(210).hideCallback,d=n(8),h=n(0).extend,p=n(282),f=n(17),g=n(158),_=n(111),m=n(6).Deferred,v=n(7),y="dx-slideoutview",b=function(e,t,n){r.animate(e,{type:"slide",to:{left:t},duration:400,complete:n})},x=function(e){r.stop(e,!0)},w=f.inherit({_getDefaultOptions:function(){return h(this.callBase(),{menuPosition:"normal",menuVisible:!1,swipeEnabled:!0,menuTemplate:"menu",contentTemplate:"content",contentOffset:45})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{android:!0},options:{contentOffset:54}},{device:function(e){return"generic"===e.platform&&"desktop"!==e.deviceType},options:{contentOffset:56}},{device:{win:!0,phone:!1},options:{contentOffset:76}}])},_getAnonymousTemplateName:function(){return"content"},_init:function(){this.callBase(),this.$element().addClass(y),this._whenAnimationComplete=void 0,this._whenMenuRendered=void 0,this._initHideTopOverlayHandler()},_initHideTopOverlayHandler:function(){this._hideMenuHandler=this.hideMenu.bind(this)},_initTemplates:function(){this.callBase(),this._defaultTemplates.menu=new _(this),this._defaultTemplates.content=new _(this)},_initMarkup:function(){var e=this;this.callBase(),this._renderMarkup(),this._whenMenuRendered=new m;var t=this._getTemplate(this.option("menuTemplate"));t&&t.render({container:this.menuContent(),onRendered:function(){e._whenMenuRendered.resolve()}});var n=this.option("contentTemplate"),i=this._getTemplate(n),o=this._getAnonymousTemplateName()===n;i&&i.render({container:this.content(),noModel:!0,transclude:o}),this._renderShield(),this._toggleMenuPositionClass()},_render:function(){var e=this;this.callBase(),this._whenMenuRendered.always(function(){e._initSwipeHandlers(),e._dimensionChanged()})},_renderMarkup:function(){var e=i("<div>").addClass("dx-slideoutview-wrapper");this._$menu=i("<div>").addClass("dx-slideoutview-menu-content"),this._$container=i("<div>").addClass("dx-slideoutview-content"),e.append(this._$menu),e.append(this._$container),this.$element().append(e),o.on(this._$container,"MSPointerDown",a)},_renderShield:function(){this._$shield=this._$shield||i("<div>").addClass("dx-slideoutview-shield"),this._$shield.appendTo(this.content()),o.off(this._$shield,s.name),o.on(this._$shield,s.name,this.hideMenu.bind(this)),this._toggleShieldVisibility(this.option("menuVisible"))},_initSwipeHandlers:function(){this._createComponent(i(this.content()),g,{disabled:!this.option("swipeEnabled"),elastic:!1,itemSizeFunc:this._getMenuWidth.bind(this),onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this)})},_isRightMenuPosition:function(){var e="inverted"===this.option("menuPosition"),t=this.option("rtlEnabled");return t&&!e||!t&&e},_swipeStartHandler:function(e){x(i(this.content()));var t=e.event,n=this.option("menuVisible"),o=this._isRightMenuPosition();t.maxLeftOffset=+(o?!n:n),t.maxRightOffset=+(o?n:!n),this._toggleShieldVisibility(!0)},_swipeUpdateHandler:function(e){var t=e.event,n=this.option("menuVisible")?t.offset+1*this._getRTLSignCorrection():t.offset;n*=this._getRTLSignCorrection(),this._renderPosition(n,!1)},_swipeEndHandler:function(e){var t=0!==e.event.targetOffset*this._getRTLSignCorrection()+this.option("menuVisible");this.option("menuVisible")===t?this._renderPosition(this.option("menuVisible"),!0):this.option("menuVisible",t)},_toggleMenuPositionClass:function(){var e=this._isRightMenuPosition()?"right":"left";this._$menu.removeClass("dx-slideoutview-left dx-slideoutview-right"),this._$menu.addClass(y+"-"+e)},_renderPosition:function(e,t){if(v.hasWindow()){var n=this._calculatePixelOffset(e)*this._getRTLSignCorrection();this._toggleHideMenuCallback(e),t?(this._toggleShieldVisibility(!0),b(i(this.content()),n,this._animationCompleteHandler.bind(this))):l.move(i(this.content()),{left:n})}},_calculatePixelOffset:function(e){return(e=e||0)*this._getMenuWidth()},_getMenuWidth:function(){if(!this._menuWidth){var e=this.$element().width()-this.option("contentOffset"),t=i(this.menuContent());t.css("maxWidth",e<0?0:e);var n=t.width();this._menuWidth=Math.min(n,e)}return this._menuWidth},_animationCompleteHandler:function(){this._toggleShieldVisibility(this.option("menuVisible")),this._whenAnimationComplete&&this._whenAnimationComplete.resolveWith(this)},_toggleHideMenuCallback:function(e){e?c.add(this._hideMenuHandler):c.remove(this._hideMenuHandler)},_getRTLSignCorrection:function(){return this._isRightMenuPosition()?-1:1},_dispose:function(){x(i(this.content())),this._toggleHideMenuCallback(!1),this.callBase()},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){delete this._menuWidth,this._renderPosition(this.option("menuVisible"),!1)},_toggleShieldVisibility:function(e){this._$shield.toggleClass("dx-state-invisible",!e)},_optionChanged:function(e){switch(e.name){case"width":this.callBase(e),this._dimensionChanged();break;case"contentOffset":this._dimensionChanged();break;case"menuVisible":this._renderPosition(e.value,!0);break;case"menuPosition":this._renderPosition(this.option("menuVisible"),!0),this._toggleMenuPositionClass();break;case"swipeEnabled":this._initSwipeHandlers();break;case"contentTemplate":case"menuTemplate":this._invalidate();break;default:this.callBase(e)}},menuContent:function(){return u(this._$menu)},content:function(){return u(this._$container)},showMenu:function(){return this.toggleMenuVisibility(!0)},hideMenu:function(){return this.toggleMenuVisibility(!1)},toggleMenuVisibility:function(e){return e=void 0===e?!this.option("menuVisible"):e,this._whenAnimationComplete=new m,this.option("menuVisible",e),this._whenAnimationComplete.promise()}}).include(p);d("dxSlideOutView",w),e.exports=w},function(e,t,n){e.exports=n(848)},function(e,t,n){n(849),n(744),e.exports=n(129)},function(e,t,n){n(850),n(591)},function(e,t,n){var i=n(482);i.dxSlideOut=n(851),i.dxSlideOutView=n(846)},function(e,t,n){var i=n(2),o=n(10).getPublicElement,a=n(4).noop,r=n(1).isDefined,s=n(8),l=n(0).extend,u=n(186),c=n(846),d=n(54),h=n(102),p=n(133),f=n(111),g=n(283).default,_="dx-slideout-item",m=d.inherit({_getDefaultOptions:function(){return l(this.callBase(),{activeStateEnabled:!1,menuItemTemplate:"menuItem",swipeEnabled:!0,menuVisible:!1,menuPosition:"normal",menuGrouped:!1,menuGroupTemplate:"menuGroup",onMenuItemRendered:null,onMenuGroupRendered:null,contentTemplate:"content",selectionMode:"single",selectedIndex:0,selectionRequired:!0})},_itemClass:function(){return _},_itemDataKey:function(){return"dxSlideoutItemData"},_itemContainer:function(){return i(this._slideOutView.content())},_init:function(){this._selectedItemContentRendered=!1,this.callBase(),this.$element().addClass("dx-slideout"),this._initSlideOutView()},_initTemplates:function(){this.callBase(),this._defaultTemplates.menuItem=new p("item",this),this._defaultTemplates.menuGroup=new p("group",this),this._defaultTemplates.content=new f(this)},_initEditStrategy:function(){if(this.option("menuGrouped")){var e=u.inherit({_getPlainItems:function(){return this.callBase().reduce(function(e,t){return e.push.apply(e,t.items),e},[])}});this._editStrategy=new e(this)}else this.callBase()},_initSlideOutView:function(){this._slideOutView=this._createComponent(this.$element(),c,{integrationOptions:{},menuVisible:this.option("menuVisible"),swipeEnabled:this.option("swipeEnabled"),menuPosition:this.option("menuPosition"),onOptionChanged:this._slideOutViewOptionChanged.bind(this)}),this._itemContainer().addClass("dx-slideout-item-container")},_slideOutViewOptionChanged:function(e){"menuVisible"===e.name&&this.option(e.name,e.value)},_initMarkup:function(){this._renderList(),this._renderContentTemplate(),this.callBase()},_render:function(){this._slideOutView._renderShield(),this.callBase()},_renderList:function(){var e=this._list&&this._list.$element()||i("<div>").addClass("dx-slideout-menu").appendTo(i(this._slideOutView.menuContent()));this._renderItemClickAction(),this._list=this._createComponent(e,h,{itemTemplateProperty:"menuTemplate",selectionMode:this.option("selectionMode"),selectionRequired:this.option("selectionRequired"),indicateLoading:!1,onItemClick:this._listItemClickHandler.bind(this),items:this.option("items"),dataSource:this._dataSource,itemTemplate:this._getTemplateByOption("menuItemTemplate"),grouped:this.option("menuGrouped"),groupTemplate:this._getTemplateByOption("menuGroupTemplate"),onItemRendered:this.option("onMenuItemRendered"),onGroupRendered:this.option("onMenuGroupRendered"),onContentReady:this._updateSlideOutView.bind(this)}),this._list.option("selectedIndex",this.option("selectedIndex"))},_getGroupedOption:function(){return this.option("menuGrouped")},_updateSlideOutView:function(){this._slideOutView._dimensionChanged()},_renderItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_listItemClickHandler:function(e){var t=this._list.$element().find(".dx-list-item").index(e.itemElement);this.option("selectedIndex",t),this._itemClickAction(e)},_renderContentTemplate:function(){if(!r(this._singleContent)){var e=this._itemContainer().html().length;this._getTemplateByOption("contentTemplate").render({container:o(this._itemContainer())}),this._singleContent=this._itemContainer().html().length!==e}},_itemClickHandler:a,_renderContentImpl:function(){if(!this._singleContent){var e=this.option("items"),t=this.option("selectedIndex");if(e.length&&t>-1){this._selectedItemContentRendered=!0;var n=this._list.getItemByIndex(t);this._renderItems([n])}}},_renderItem:function(e,t){this._itemContainer().find("."+_).remove(),this.callBase(e,t)},_selectedItemElement:function(){return this._itemElements().eq(0)},_renderSelection:function(){this._prepareContent(),this._renderContent()},_getListWidth:function(){return this._slideOutView._getMenuWidth()},_changeMenuOption:function(e,t){this._list.option(e,t),this._updateSlideOutView()},_cleanItemContainer:function(){this._singleContent||this.callBase()},beginUpdate:function(){this.callBase(),this._list&&this._list.beginUpdate()},endUpdate:function(){this._list&&this._list.endUpdate(),this.callBase()},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"menuVisible":case"swipeEnabled":case"rtlEnabled":case"menuPosition":this._slideOutView.option(t,n);break;case"width":this.callBase(e),this._updateSlideOutView();break;case"menuItemTemplate":this._changeMenuOption("itemTemplate",this._getTemplate(n));break;case"items":this._changeMenuOption("items",this.option("items")),this._selectedItemContentRendered||this._renderSelection();break;case"dataSource":case"selectedIndex":case"selectedItem":this._changeMenuOption(t,n),this.callBase(e);break;case"menuGrouped":this._initEditStrategy(),this._changeMenuOption("grouped",n);break;case"menuGroupTemplate":this._changeMenuOption("groupTemplate",this._getTemplate(n));break;case"onMenuItemRendered":this._changeMenuOption("onItemRendered",n);break;case"onMenuGroupRendered":this._changeMenuOption("onGroupRendered",n);break;case"onItemClick":this._renderItemClickAction();break;case"contentTemplate":this._singleContent=null,this._invalidate();break;default:this.callBase(e)}},showMenu:function(){return this._slideOutView.toggleMenuVisibility(!0)},hideMenu:function(){return this._slideOutView.toggleMenuVisibility(!1)},toggleMenuVisibility:function(e){return this._slideOutView.toggleMenuVisibility(e)}}).include(g);s("dxSlideOut",m),e.exports=m}]),function(e,t){"function"==typeof define&&define.amd?define(function(e){t(e("devextreme/localization"))}):"object"==typeof module&&module.exports?t(require("devextreme/localization")):t(DevExpress.localization)}(0,function(e){e.loadMessages({ko:{Yes:"확인",No:"아니오",Cancel:"취소",Clear:"초기화",Done:"완료",Loading:"불러오는중...",Select:"선택...",Search:"검색",Back:"뒤로가기",OK:"확인","dxCollectionWidget-noDataText":"No data to display","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-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":"시간을 선택하세요","dxDateBox-simulatedDataPickerTitleDate":"날짜를 선택하세요","dxDateBox-simulatedDataPickerTitleDateTime":"날짜와 시간을 선택하세요.","dxDateBox-validation-datetime":"올바른 형식의 날짜나 시간 형식이 아닙니다.","dxFileUploader-selectFile":"Select file","dxFileUploader-dropFile":"or Drop 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-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","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-excelFormat":"Excel file","dxDataGrid-selectedRows":"Selected rows","dxDataGrid-exportSelectedRows":"Export selected rows","dxDataGrid-exportAll":"Export all data","dxDataGrid-headerFilterEmptyValue":"(Blanks)","dxDataGrid-headerFilterOK":"OK","dxDataGrid-headerFilterCancel":"Cancel","dxDataGrid-ariaColumn":"Column","dxDataGrid-ariaValue":"Value","dxDataGrid-ariaFilterCell":"Filter cell","dxDataGrid-ariaCollapse":"Collapse","dxDataGrid-ariaExpand":"Expand","dxDataGrid-ariaDataGrid":"Data grid","dxDataGrid-ariaSearchInGrid":"Search in data grid","dxDataGrid-ariaSelectAll":"Select all","dxDataGrid-ariaSelectRow":"Select row","dxDataGrid-filterBuilderPopupTitle":"Filter Builder","dxDataGrid-filterPanelCreateFilter":"Create Filter","dxDataGrid-filterPanelClearFilter":"Clear","dxDataGrid-filterPanelFilterEnabledHint":"Enable the filter","dxTreeList-ariaTreeList":"Tree list","dxTreeList-editingAddRowToNode":"Add","dxPager-infoText":"Page {0} of {1} ({2} items)","dxPager-pagesCountText":"of","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-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-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":"오늘","dxCalendar-ariaWidgetName":"달력","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":"<enter a value>","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-heading":"Heading","dxHtmlEditor-normalText":"Normal text","dxFileManager-errorNoAccess":"Access denied. The operation cannot be completed.","dxFileManager-errorDirectoryExistsFormat":"Directory '{0}' already exists.","dxFileManager-errorFileExistsFormat":"File '{0}' already exists.","dxFileManager-errorFileNotFoundFormat":"File '{0}' not found","dxFileManager-errorDefault":"Unspecified error."}})}),function(e,t){var n,i=e.fn.domManip,o="_tmplitem",a=/^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /,r={},s={},l={key:0,data:{}},u=0,c=0,d=[];function h(t,n,i,o){var a={data:o||0===o||!1===o?o:n?n.data:{},_wrap:n?n._wrap:null,tmpl:null,parent:n||null,nodes:[],calls:y,nest:b,wrap:x,html:w,update:C};return t&&e.extend(a,t,{nodes:[],parent:n}),i&&(a.tmpl=i,a._ctnt=a._ctnt||a.tmpl(e,a),a.key=++u,(d.length?s:r)[u]=a),a}function p(t,n,i){var a,r=i?e.map(i,function(e){return"string"==typeof e?t.key?e.replace(/(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g,"$1 "+o+'="'+t.key+'" $2'):e:p(e,t,e._ctnt)}):t;return n?r:((r=r.join("")).replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/,function(t,n,i,o){v(a=e(i).get()),n&&(a=f(n).concat(a)),o&&(a=a.concat(f(o)))}),a||f(r))}function f(t){var n=document.createElement("div");return n.innerHTML=t,e.makeArray(n.childNodes)}function g(t){return new Function("jQuery","$item","var $=jQuery,call,__=[],$data=$item.data;with($data){__.push('"+e.trim(t).replace(/([\\'])/g,"\\$1").replace(/[\r\t\n]/g," ").replace(/\$\{([^\}]*)\}/g,"{{= $1}}").replace(/\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g,function(t,n,i,o,a,r,s){var l,u,c,d=e.tmpl.tag[i];if(!d)throw"Unknown template tag: "+i;return l=d._default||[],r&&!/\w$/.test(a)&&(a+=r,r=""),a?(a=m(a),s=s?","+m(s)+")":r?")":"",u=r?a.indexOf(".")>-1?a+m(r):"("+a+").call($item"+s:a,c=r?u:"(typeof("+a+")==='function'?("+a+").call($item):("+a+"))"):c=u=l.$1||"null",o=m(o),"');"+d[n?"close":"open"].split("$notnull_1").join(a?"typeof("+a+")!=='undefined' && ("+a+")!=null":"true").split("$1a").join(c).split("$1").join(u).split("$2").join(o||l.$2||"")+"__.push('"})+"');}return __;")}function _(t,n){t._wrap=p(t,!0,e.isArray(n)?n:[a.test(n)?n:e(n).html()]).join("")}function m(e){return e?e.replace(/\\'/g,"'").replace(/\\\\/g,"\\"):null}function v(t){var n,i,a,l,d,p="_"+c,f={};for(a=0,l=t.length;a<l;a++)if(1===(n=t[a]).nodeType){for(d=(i=n.getElementsByTagName("*")).length-1;d>=0;d--)g(i[d]);g(n)}function g(t){var n,i,a,l,d=t;if(l=t.getAttribute(o)){for(;d.parentNode&&1===(d=d.parentNode).nodeType&&!(n=d.getAttribute(o)););n!==l&&(d=d.parentNode?11===d.nodeType?0:d.getAttribute(o)||0:0,(a=r[l])||((a=h(a=s[l],r[d]||s[d])).key=++u,r[u]=a),c&&g(l)),t.removeAttribute(o)}else c&&(a=e.data(t,"tmplItem"))&&(g(a.key),r[a.key]=a,d=(d=e.data(t.parentNode,"tmplItem"))?d.key:0);if(a){for(i=a;i&&i.key!=d;)i.nodes.push(t),i=i.parent;delete a._ctnt,delete a._wrap,e.data(t,"tmplItem",a)}function g(e){a=f[e+=p]=f[e]||h(a,r[a.parent.key+p]||a.parent)}}}function y(e,t,n,i){if(!e)return d.pop();d.push({_:e,tmpl:t,item:this,data:n,options:i})}function b(t,n,i){return e.tmpl(e.template(t),n,i,this)}function x(t,n){var i=t.options||{};return i.wrapped=n,e.tmpl(e.template(t.tmpl),t.data,i,t.item)}function w(t,n){var i=this._wrap;return e.map(e(e.isArray(i)?i.join(""):i).filter(t||"*"),function(e){return n?e.innerText||e.textContent:e.outerHTML||(t=e,(i=document.createElement("div")).appendChild(t.cloneNode(!0)),i.innerHTML);var t,i})}function C(){var t=this.nodes;e.tmpl(null,null,null,this).insertBefore(t[0]),e(t).remove()}e.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,i){e.fn[t]=function(o){var a,s,l,u,d=[],h=e(o),p=1===this.length&&this[0].parentNode;if(n=r||{},p&&11===p.nodeType&&1===p.childNodes.length&&1===h.length)h[i](this[0]),d=this;else{for(s=0,l=h.length;s<l;s++)c=s,a=(s>0?this.clone(!0):this).get(),e(h[s])[i](a),d=d.concat(a);c=0,d=this.pushStack(d,t,h.selector)}return u=n,n=null,e.tmpl.complete(u),d}}),e.fn.extend({tmpl:function(t,n,i){return e.tmpl(this[0],t,n,i)},tmplItem:function(){return e.tmplItem(this[0])},template:function(t){return e.template(t,this[0])},domManip:function(t,o,a,s){if(t[0]&&e.isArray(t[0])){for(var l,u=e.makeArray(arguments),d=t[0],h=d.length,p=0;p<h&&!(l=e.data(d[p++],"tmplItem")););l&&c&&(u[2]=function(t){e.tmpl.afterManip(this,t,a)}),i.apply(this,u)}else i.apply(this,arguments);return c=0,n||e.tmpl.complete(r),this}}),e.extend({tmpl:function(t,n,i,o){var a,u=!o;if(u)o=l,t=e.template[t]||e.template(null,t),s={};else if(!t)return t=o.tmpl,r[o.key]=o,o.nodes=[],o.wrapped&&_(o,o.wrapped),e(p(o,null,o.tmpl(e,o)));return t?("function"==typeof n&&(n=n.call(o||{})),i&&i.wrapped&&_(i,i.wrapped),a=e.isArray(n)?e.map(n,function(e){return e?h(i,o,t,e):null}):[h(i,o,t,n)],u?e(p(o,null,a)):a):[]},tmplItem:function(t){var n;for(t instanceof e&&(t=t[0]);t&&1===t.nodeType&&!(n=e.data(t,"tmplItem"))&&(t=t.parentNode););return n||l},template:function(t,n){return n?("string"==typeof n?n=g(n):n instanceof e&&(n=n[0]||{}),n.nodeType&&(n=e.data(n,"tmpl")||e.data(n,"tmpl",g(n.innerHTML))),"string"==typeof t?e.template[t]=n:n):t?"string"!=typeof t?e.template(null,t):e.template[t]||e.template(null,a.test(t)?t:e(t)):null},encode:function(e){return(""+e).split("<").join("&lt;").split(">").join("&gt;").split('"').join("&#34;").split("'").join("&#39;")}}),e.extend(e.tmpl,{tag:{tmpl:{_default:{$2:"null"},open:"if($notnull_1){__=__.concat($item.nest($1,$2));}"},wrap:{_default:{$2:"null"},open:"$item.calls(__,$1,$2);__=[];",close:"call=$item.calls();__=call._.concat($item.wrap(call,__));"},each:{_default:{$2:"$index, $value"},open:"if($notnull_1){$.each($1a,function($2){with(this){",close:"}});}"},if:{open:"if(($notnull_1) && $1a){",close:"}"},else:{_default:{$1:"true"},open:"}else if(($notnull_1) && $1a){"},html:{open:"if($notnull_1){__.push($1a);}"},"=":{_default:{$1:"$data"},open:"if($notnull_1){__.push($.encode($1a));}"},"!":{open:""}},complete:function(e){r={}},afterManip:function(t,n,i){var o=11===n.nodeType?e.makeArray(n.childNodes):1===n.nodeType?[n]:[];i.call(t,n),v(o),c++}})}(jQuery),APP.init=function(){APP.initMenu(),APP.initAx5(),APP.initPlugins(),APP.initFitHeight(),DevExpress.localization.locale("ko")},APP.initMenu=function(){$("#nav .main-navigation li").each(function(){$(this).data("active")==menuActive&&($(this).addClass("active"),$(this).parents("li").addClass("active"))})},APP.initPlugins=function(){$.datepicker._updateDatepicker_original=$.datepicker._updateDatepicker,$.datepicker._updateDatepicker=function(e){$.datepicker._updateDatepicker_original(e);var t=this._get(e,"afterShow");t&&t.apply(e.input?e.input[0]:null)},$.datepicker.regional.ko={closeText:"닫기",prevText:"이전달",nextText:"다음달",currentText:"오늘",monthNames:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],monthNamesShort:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayNames:["일","월","화","수","목","금","토"],dayNamesShort:["일","월","화","수","목","금","토"],dayNamesMin:["일","월","화","수","목","금","토"],weekHeader:"Wk",dateFormat:"yy-mm-dd",firstDay:0,isRTL:!1,showMonthAfterYear:!0,changeMonth:!0,changeYear:!0,yearSuffix:""},$.datepicker.setDefaults($.datepicker.regional.ko),$('[data-toggle="datepicker"]').each(function(){if($(this).datepicker(),void 0!==$(this).data("chained-datepicker")&&$(this).data("chained-datepicker")){var e=$(this).data("chained-datepicker"),t=$(e);t.length>0&&$(this).change(function(){t.hasClass("hasDatepicker")&&t.datepicker("option","minDate",$(this).val())})}}),$("body").on("click",'[data-toggle="datepicker"]',function(){$(this).hasClass("hasDatepicker")||($(this).datepicker(),$(this).datepicker("show"))})},APP.initAx5=function(){APP.MASK=new ax5.ui.mask({zIndex:1e3}),APP.MASK2=new ax5.ui.mask({zIndex:2e3}),APP.modal=new ax5.ui.modal({absolute:!0,iframeLoadingMsg:'<i class="far fa-spinner"></i>'}),APP.modal2=new ax5.ui.modal({absolute:!0,iframeLoadingMsg:'<i class="far fa-spinner"></i>'})},APP.initFitHeight=function(){$(window).resize(function(){if($("[data-fit-content]").length>0){var e=$("#contents").height();$("[data-fit-aside]").each(function(){e-=$(this).height()}),$("[data-fit-content]").height(e)}}).resize()},$(function(){APP.init()}),APP.MODAL=function(){var e={width:400,height:400,position:{left:"center",top:"middle"}},t=$.extend(!0,{},e,{iframeLoadingMsg:"",iframe:{method:"get",url:"#"},closeToEsc:!0,onStateChanged:function(){"open"===this.state?APP.MASK.open():"close"===this.state&&APP.MASK.close()},animateTime:100,zIndex:1001,absolute:!0,fullScreen:!1,header:{title:"새로운 윈도우",btns:{close:{label:'<i class="far fa-times"></i>',onClick:function(){APP.MODAL.callback()}}}}});return{open:function(e){e=$.extend(!0,{},t,e),$(document.body).addClass("modalOpened"),this.modalCallback=e.callback,this.modalSendData=e.sendData,APP.modal.open(e)},css:function(t){t=$.extend(!0,{},e,t),APP.modal.css(t)},align:function(e){APP.modal.align(e)},close:function(e){APP.modal.close(),setTimeout(function(){$(document.body).removeClass("modalOpened")},500)},minimize:function(){APP.modal.minimize()},maximize:function(){APP.modal.maximize()},callback:function(e){this.modalCallback&&this.modalCallback(e),this.close(e)},modalCallback:{},getData:function(){if(this.modalSendData)return this.modalSendData()}}}(),APP.MODAL2=function(){var e={width:400,height:400,position:{left:"center",top:"middle"}},t=$.extend(!0,{},e,{iframeLoadingMsg:"",iframe:{method:"get",url:"#"},closeToEsc:!0,onStateChanged:function(){"open"===this.state?APP.MASK2.open():"close"===this.state&&APP.MASK2.close()},animateTime:100,zIndex:2001,absolute:!0,fullScreen:!1,header:{title:"새로운 윈도우",btns:{close:{label:'<i class="far fa-times"></i>',onClick:function(){APP.MODAL2.callback()}}}}});return{open:function(e){e=$.extend(!0,{},t,e),$(document.body).addClass("modalOpened"),this.modalCallback=e.callback,this.modalSendData=e.sendData,APP.modal2.open(e)},css:function(t){t=$.extend(!0,{},e,t),APP.modal2.css(t)},align:function(e){APP.modal2.align(e)},close:function(e){APP.modal2.close(),setTimeout(function(){$(document.body).removeClass("modalOpened")},500)},minimize:function(){APP.modal2.minimize()},maximize:function(){APP.modal2.maximize()},callback:function(e){this.modalCallback&&this.modalCallback(e),this.close(e)},modalCallback:{},getData:function(){if(this.modalSendData)return this.modalSendData()}}}(),APP.BOARD.keyCheck=function(e){return""==e?"게시판 고유키를 입력하세요":e.regex("uniqid")?!APP.BOARD.existCheck(e)||"이미 존재하는 키 입니다.":"게시판 고유키는 영어 소문자로 시작하는 3~20 글자로 영어와 숫자만 사용가능합니다."},APP.BOARD.existCheck=function(e){var t=null;return $.ajax({url:base_url+"/ajax/board/info",type:"get",async:!1,cache:!1,data:{brd_key:e,is_raw:!0},success:function(e){t=e}}),t},APP.BOARD.CATEGORY.form=function(e,t,n){t=void 0!==t&&t>=0?t:null,n=void 0!==n&&n?n:null;return(e=void 0!==e&&e?e:null)?parseInt(t)<0?(alert("부모 카테고리가 선택되지 않았습니다."),!1):void APP.MODAL.open({width:400,height:200,header:{title:n?"카테고리 정보 수정":"카테고리 추가"},callback:function(){parent.location.reload()},iframe:{method:"get",url:"/admin/board/category_form",param:{brd_key:e,bca_parent:t,bca_idx:n}}}):(alert("게시판이 지정되지 않았습니다."),!1)},APP.BOARD.CATEGORY.remove=function(e){if(APP.BOARD.CATEGORY.count(e)>0)return alert("해당 카테고리의 하위 카테고리가 존재합니다. 하위 카테고리를 먼저 삭제해주세요"),!1;var t=APP.BOARD.CATEGORY.postCount(e);return!(t>0&&!confirm("해당 카테고리에 등록된 글이 "+t+"건이 있습니다. 삭제를 진행하시겠습니까?"))&&(!!confirm("해당 카테고리를 삭제하시겠습니까?")&&void $.ajax({url:base_url+"/ajax/board/category",type:"DELETE",cache:!1,async:!1,data:{bca_idx:e},success:function(e){e.result?(alert("카테고리 삭제에 성공하였습니다."),location.reload()):(alert("카테고리 삭제에 실패하였습니다."),location.reload())}}))},APP.BOARD.EXTRA.form=function(e,t){if(t=void 0!==t&&t?t:null,!(e=void 0!==e&&e?e:null))return alert("게시판이 지정되지 않았습니다."),!1;APP.MODAL.open({width:400,height:200,header:{title:t?"입력필드 수정":"입력필드 추가"},callback:function(){parent.location.reload()},iframe:{method:"get",url:"/admin/board/extra_form",param:{brd_key:e,bmt_idx:t}}})},APP.BOARD.EXTRA.remove=function(e,t){return e=void 0!==e&&e?e:null,(t=void 0!==t&&t?t:null)?!!confirm("해당 필드로 등록된 글이 있을경우, 해당 필드값도 같이 사라집니다. 계속 진행 하시겠습니까?")&&void $.ajax({url:base_url+"/ajax/board/extra",type:"DELETE",cache:!1,async:!1,data:{brd_key:e,bmt_idx:t},success:function(e){e.result?(alert("입력필드 삭제에 성공하였습니다."),location.reload()):(alert("입력필드 삭제에 실패하였습니다."),location.reload())}}):(alert("잘못된 접근입니다."),!1)};var faq={};function GRID(e,t){this.element=e;var n=this;this.defaultOptions={key:null,cacheEnabled:!1,statusField:{key:"",values:[]},colorField:[],loadPanel:{enabled:!0},remoteOperations:{groupPaging:!0,sorting:!0,paging:!0},paging:{pageSize:30,showNavigationButtons:!0},selection:{mode:"single",selectAllMode:"page"},scrolling:{showScrollbar:"onHover"},focusedRowEnabled:!0,columns:null,dataSource:null,showRowLines:!0,showColumnLines:!0,allowColumnResizing:!0,noDataText:"검색된 데이타가 없습니다.",allowColumnReordering:!0,columnResizingMode:"widget",editing:{allowUpdating:!1,allowAdding:!1,allowDeleting:!1},onRowClick:function(e){n.OnRowSingleClick(e.data)},onRowDblClick:function(e){n.OnRowDoubleClick(e.data)},onRowPrepared:function(e){if("data"==e.rowType){var t=n.options.statusField.key,i=n.options.statusField.values,o=typeof i;t&&("string"==o&&i||"object"==o&&i.length>0)&&("string"==o&&e.data[t]==i||"object"==o&&$.inArray(e.data[t],i)>-1)&&e.rowElement.addClass("unused"),n.OnRowPrepared(e)}},onContextMenuPreparing:function(e){"data"==e.rowType&&n.OnContextMenuPreparing(e)},onSelectionChanged:function(e){n.OnSelectionChanged(e)},onCellPrepared:function(e){if("data"==e.rowType){if("object"==typeof n.options.colorField&&n.options.colorField.length>0)for(var t in n.options.colorField)n.options.colorField[t].key&&n.options.colorField[t].color&&e.column.dataField==n.options.colorField[t].key&&e.cellElement.css("background-color",n.options.colorField[t].color);n.OnCellPrepared(e)}}},this.options=$.extend({},this.defaultOptions,t)}faq.form=function(e,t){t="string"==typeof t||"number"==typeof t?t:null;if(!(e="string"==typeof e||"number"==typeof e?e:null))return alert("FAQ 분류 정보가 없습니다."),!1;APP.MODAL.open({width:800,height:650,header:{title:t?"FAQ 정보 수정":"FAQ 추가"},callback:function(){location.reload()},iframe:{method:"get",url:"/admin/management/faq_form",param:{fac_idx:e,faq_idx:t}}})},faq.remove=function(e){if(void 0!==e&&e&&""!=e.trim()||alert("잘못된 접근입니다."),!confirm("해당 FAQ를 삭제하시겠습니까?"))return!1;$.ajax({url:"/ajax/faq/info",type:"delete",async:!1,cache:!1,data:{faq_idx:e},success:function(e){alert("FAQ가 삭제되었습니다."),location.reload()}})},faq.category={},faq.category.form=function(e){e="string"==typeof e||"number"==typeof e?e:null;APP.MODAL.open({width:$(window).width()>600?600:$(window).width(),height:250,header:{title:e?"FAQ 분류 정보 수정":"FAQ 분류 추가"},callback:function(){location.reload()},iframe:{method:"get",url:"/admin/management/faq_category_form",param:{fac_idx:e}}})},faq.category.exist=function(e){if(void 0===e||!e||""==e.trim())return!1;var t=!1;return $.ajax({url:"/ajax/faq/category",type:"get",async:!1,cache:!1,data:{fac_idx:e},success:function(e){t=!(e&&void 0!==e.fac_idx&&e.fac_idx)}}),t},faq.category.remove=function(e){void 0!==e&&e&&""!=e.trim()||alert("잘못된 접근입니다.");var t=0;if($.ajax({url:"/ajax/faq/lists",type:"get",async:!1,cache:!1,data:{fac_idx:e},success:function(e){t=e.total_count}}),!confirm(t>0?"해당 FAQ 분류에 "+t+"개의 FAQ 목록이 등록되어 있습니다.\nFAQ 분류을 삭제할시 등록된 FAQ 목록도 같이 삭제됩니다.\n\n계속 하시겠습니까?":"FAQ 분류을 삭제하시겠습니까?"))return!1;$.ajax({url:"/ajax/faq/category",type:"delete",async:!1,cache:!1,data:{fac_idx:e},success:function(e){alert("FAQ 분류가 삭제되었습니다."),location.href=base_url+"/admin/management/faq"}})},APP.MEMBER.POP_INFO_ADMIN=function(e){if(void 0===e||!e)return alert("잘못된 접근입니다."),!1;APP.MODAL.open({width:800,height:600,header:{title:"회원 정보"},callback:function(){location.reload()},iframe:{method:"get",url:"/admin/members/info/"+e,param:{}}})},APP.MEMBER.POP_PASSWORD_ADMIN=function(e){if(void 0===e||!e)return alert("잘못된 접근입니다."),!1;APP.MODAL.open({width:800,height:600,header:{title:"비밀번호 변경"},callback:function(){location.reload()},iframe:{method:"get",url:"/admin/members/password/"+e,param:{}}})},APP.MEMBER.POP_MODIFY_ADMIN=function(e){if(void 0===e||!e)return alert("잘못된 접근입니다."),!1;APP.MODAL.open({width:800,height:600,header:{title:"회원 정보 수정"},callback:function(){location.reload()},iframe:{method:"get",url:"/admin/members/modify/"+e,param:{}}})},APP.MEMBER.POP_POINT_ADMIN=function(e){if(void 0===e||!e)return alert("잘못된 접근입니다."),!1;APP.MODAL.open({width:800,height:600,header:{title:"회원 포인트 관리"},callback:function(){location.reload()},iframe:{method:"get",url:"/admin/members/point/"+e,param:{}}})},APP.MEMBER.POP_POINT_FORM_ADMIN=function(e){(e=void 0!==e&&e?e:null)?(APP.MODAL2.callback=function(){location.reload()},APP.MODAL2.open({width:410,height:200,header:{title:"회원 포인트 추가"},callback:function(){location.reload()},iframe:{method:"get",url:"/admin/members/point_form/"+e}})):alert("잘못된 접근입니다.")},APP.MEMBER.STATUS_CHANGE=function(e,t,n){if(void 0===e||!e||void 0===t||!t||void 0===n||!n)return alert(LANG.common_msg_invalid_access),!1;var i="";if("Y"==n)i=LANG.member_status_y;else if("N"==n)i=LANG.member_status_n;else if("D"==n)i=LANG.member_status_d;else{if("H"!=n)return alert(LANG.common_msg_invalid_access),!1;i=LANG.member_status_h}confirm("해당 회원의 상태를 ["+i+"] 상태로 변경합니까?")&&$.ajax({url:"/ajax/members/status",type:"POST",async:!1,cache:!1,data:{mem_idx:e,current_status:t,change_status:n},success:function(){alert("지정한 회원의 상태를 ["+i+"] 상태로 변경하였습니다."),location.reload()}})},$(function(){}),GRID.prototype.instance=function(){return $(this.element).dxDataGrid("instance")},GRID.prototype.init=function(){$(this.element).dxDataGrid(this.options);var e=this;$("[data-column]").length>0&&$("[data-column]").change(function(t){var n=$(this).data("column"),i=$(this).prop("checked");$(e.element).dxDataGrid("columnOption",n,"visible",i)}).change()},GRID.prototype.SetPage=function(e){$(this.element).dxDataGrid("instance").pageIndex(e-1)},GRID.prototype.getSearchParam=function(e){var t={};if(["skip","take","requireTotalCount","requireGroupCount","sort","filter","totalSummary","group","groupSummary"].forEach(function(n){n in e&&void 0!==e[n]&&null!==e[n]&&""!==e[n]&&(t[n]=JSON.stringify(e[n]))}),$("[data-grid-search]").length>0){var n=$("[data-grid-search]");$("input",n).not('[type="checkbox"]').not('[type="radio"]').each(function(){var e=$(this).attr("name"),n=$(this).val();t[e]=n}),$('input[type="checkbox"]',n).each(function(){if($(this).prop("checked")){var e=$(this).attr("name"),n=$(this).val();t[e]=n}}),$('input[type="radio"]:checked',n).each(function(){var e=$(this).attr("name"),n=$(this).val();t[e]=n}),$("select",n).each(function(){var e=$(this).attr("name"),n=$(this).find("option:selected").val();t[e]=n})}return t},GRID.prototype.refresh=function(e){(e="number"==typeof e&&e>0?e:null)&&$(this.element).dxDataGrid("instance").pageIndex(e-1),$(this.element).dxDataGrid("instance").refresh()},GRID.prototype.SetColumnVisible=function(e,t){},GRID.prototype.OnRowSingleClick=function(e){},GRID.prototype.OnRowDoubleClick=function(e){},GRID.prototype.OnRowPrepared=function(e){},GRID.prototype.OnContextMenuPreparing=function(e){},GRID.prototype.OnSelectionChanged=function(e){},GRID.prototype.OnCellPrepared=function(e){};
//# sourceMappingURL=admin.min.js.map