/*! * DevExtreme (dx.all.js) * Version: 18.1.5 * Build date: Fri Jul 27 2018 * * Copyright (c) 2012 - 2018 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict";!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={};return 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=747)}([function(e,t,n){var i=n(1).isPlainObject,o=function(e,t,n){e=e||{};for(var i in t)if(t.hasOwnProperty(i)){var o=t[i];i in e&&!n||(e[i]=o)}return e},a=function e(t){t=t||{};var n=1,o=!1;for("boolean"==typeof t&&(o=t,t=arguments[1]||{},n++);na?r=s.apply(this,g.slice(a)):n&&n.resolve()),i=o,n&&r&&r.done&&r.done(n.resolve).fail(n.reject),!i&&p.length&&("render"===f.shift()?m:v)(p.shift(),g.shift()),r},m=function(e,t){return _("render",e,t)},v=function(e,t){return _("update",e,t)},x=function(e){return function(){var t=this;return _("render",function(){return e.call(t)})}},w=function(e){return function(){var t=this;return _("update",function(){return e.call(t)})}},b=function(e,t,n){var i=[],o=0;return c(t,function(t,a){var r=0,s=n?n(a):a;c(e,function(e,t){var n=s[e];if(void 0!==n)return y(n,t)?void r++:(r=-1,!1)}),ro&&(i.length=0,o=r),i.push(a))}),i},y=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){var n=!1;return c(e,function(e,i){if(i!==t[e])return n=!0,!1}),!n}return e===t},C=function(e){switch("undefined"==typeof 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}},k=function(e){switch("undefined"==typeof e?"undefined":o(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){var t=d.isString(e)?e:e.toString(),n=t.match(/[^a-zA-Z0-9_]/g);return n&&c(n,function(e,n){t=t.replace(n,"__"+n.charCodeAt()+"__")}),t},I=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=function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i=i||(d.isObject(e)&&d.isObject(t)?D(e,t,n):Array.isArray(e)&&Array.isArray(t)?T(e,t,n):!(!d.isDate(e)||!d.isDate(t))&&e.getTime()===t.getTime())},A=function(e){if(d.isObject(e)||Array.isArray(e))try{var t=JSON.stringify(e);return"{}"===t?e:t}catch(t){return e}return e},B=function(e){return e.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},O=function(e){var t=a().serverDecimalSeparator;return d.isDefined(e)&&(e=e.toString().replace(".",t)),e},M=function(){},P=function(e,t,n){for(var i,o=[],a=!n,r=0;r-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"===("undefined"==typeof 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)}},L=function(e,t){var n=b[e]||e,o=function(e,t){return"click"===e&&"a"===t.localName};o(e,t)||f(t[n])&&(i=e,t[n](),i=void 0)},H=function(e){var t=function(e){var t=/^(?:mouse|pointer|contextmenu|drag|drop)|click/;return!e.which&&void 0!==e.button&&t.test(e.type)},n=function(e){return null==e.which&&0===e.type.indexOf("key")};if(n(e))return null!=e.charCode?e.charCode:e.keyCode;if(t(e)){var i={1:1,2:3,3:1,4:2};return i[e.button]}return e.which},z=d({on:E(M(F(function(e,t,n,i,o){var a=A(e,t);a.addHandler(o,n,i)}))),one:E(M(function(e,t,n,i,o){var a=function i(){z.off(e,t,n,i),o.apply(this,arguments)};z.on(e,t,n,i,a)})),off:E(P(F(function(e,t,n,i){var o=A(e,t);o.removeHandler(i,n)}))),trigger:E(R(function(e,t,n){var i=t.type,o=A(e,t.type);T.callMethod(i,"trigger",e,[t,n]),o.callHandlers(t,n);var a=T.getField(i,"noBubble")||t.isPropagationStopped()||y.indexOf(i)!==-1;if(!a){var s=[],l=function e(t){var n=t.parentNode;n&&(s.push(n),e(n))};l(e),s.push(c);for(var d=0;s[d]&&!t.isPropagationStopped();){var u=A(s[d],t.type);u.callHandlers(r(t,{currentTarget:s[d]}),n),d++}}(e.nodeType||p(e))&&(T.callMethod(i,"_default",e,[t,n]),L(i,e))})),triggerHandler:E(R(function(e,t,n){var i=A(e,t.type);i.callHandlers(t,n)}))}),N=function(e){e&&(z.Event=e,z.Event.prototype=e.prototype)};N(V(function(e,t){var n=this,i=!1,o=!1,a=!1;r(n,e),(e instanceof z.Event||l.hasWindow()&&e instanceof c.Event)&&(n.originalEvent=e,n.currentTarget=void 0),e instanceof z.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()}}),$("which",H,n),0===e.type.indexOf("touch")&&(delete t.pageX,delete t.pageY),r(n,t),n.guid=++I}));var $=function(e,t,n){Object.defineProperty(n||z.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($);var W=h(),G=h();z.set=function(e){W.fire(),z.inject(e),N(e.Event),G.fire()},z.subscribeGlobal=function(){D(arguments,M(function(){var e=arguments;z.on.apply(this,e),W.add(function(){var t=Array.prototype.slice.call(e,0);t.splice(3,1),z.off.apply(this,t)}),G.add(function(){z.on.apply(this,e)})}))},z.passiveListenerEvents=C,e.exports=z},function(e,t,n){var i=n(12),o="undefined"!=typeof window,a=o&&window;a||(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){var t=e||this.defaultScreenFactorFunc,n=i.getDocumentElement().clientWidth;return t(n)},openWindow:function(){return this.hasProperty("open")?a.open():null},getNavigator:function(){return this.hasWindow()?a.navigator:{userAgent:""}}}},function(e,t,n){var i=n(1),o=i.isPromise,a=i.isDeferred,r=n(0).extend,s=n(19),l=[{method:"resolve",handler:"done",state:"resolved"},{method:"reject",handler:"fail",state:"rejected"},{method:"notify",handler:"progress"}],c=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 c;return["done","fail"].forEach(function(i){var r="done"===i?e:t;this[i](function(){if(!r)return void n["done"===i?"resolve":"reject"].apply(this,arguments);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)})}.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;c.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 c;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 c).resolveWith(t,[e])};var d=function(){if(1===arguments.length)return t.fromPromise(arguments[0]);for(var e=[].slice.call(arguments),n=[],i=0,o=new c,r=function(t){return function(a){n[t]=this,e[t]=arguments.length>1?[].slice.call(arguments):a,i++,i===e.length&&o.resolveWith(n,e)}},s=0;s1:g(e)?n&&r(t):void 0)},y=function(e){return e},C=function(e){y=e},k=function(e){return y(o.Event(e,e),e)},S=function(e,t){var n=k(e);return t&&s(n,t),n},I=function(e){var t=S(e.originalEvent,e);return o.trigger(e.delegateTarget||t.target,t),t},T=function e(t,n){if(!n)throw a.Error("E0017");return"string"==typeof t?t.indexOf(" ")===-1?t+"."+n:e(t.split(/\s+/g),n):(l(t,function(e,i){t[e]=i+"."+n}),t.join(" "))};e.exports={eventSource:c,isPointerEvent:p,isMouseEvent:f,isTouchEvent:g,isKeyboardEvent:_,isFakeClickEvent:m,hasTouches:w,eventData:v,eventDelta:x,needSkipEvent:b,createEvent:S,fireEvent:I,addNamespace:T,setEventFixMethod:C}},function(e,t,n){var i=n(17),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=function(){};return t.prototype=e.prototype,new t},s=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},l=function(){var e,t,n,i=this;for(n=0;n=0&&(this[t]=l++)})}),o(e,function(){i(this[t])||r&&!r(this)||(this[t]=l++)}),l},u=function(e,t){if(!t)return-1;var n=Array.isArray(t)?t:t.toArray();return n.indexOf(e)},h=function(e,t){for(var n=0;n=0&&(i.splice(o,1),e.className=i.join(" "))}},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,o=n(2),a=n(12),r=n(6),s=r.getWindow(),l=n(5),c=n(17),d=n(11).inArray,u=n(1),h=u.isDefined,p=u.isRenderer,f=n(217),g=function(){var e=a.getActiveElement();e&&e!==a.getBody()&&e.blur&&e.blur()},_=function(){var e=s.getSelection();if(e&&"Caret"!==e.type)if(e.empty)e.empty();else if(e.removeAllRanges)try{e.removeAllRanges()}catch(e){}},m=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),l=-s;l<0;l++)if(a.get(l)===r.get(l))return a.get(l)},v=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-1)&&a[s]&&(a[s](r[s]),n.push(a[s]("instance")))}),n},C=function(e){if(!s.WinJS)return o(f.parseHTML(e));var t=o("
");return s.WinJS.Utilities.setInnerHTMLUnsafe(t.get(0),e),t.contents()},k=function e(t){var n=h(t)&&(t.nodeType||p(t))?o(t):o("
").html(t).contents();return 1===n.length&&(n.is("script")?n=e(n.html().trim()):n.is("table")&&(n=n.children("tbody").contents())),n},S=function(e,t,n){n?e.attr(t,n):e.removeAttr(t)},I=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=function(e,t){return!!t&&(t=a.isTextNode(t)?t.parentNode:t,a.isDocument(e)?e.body.contains(t):e.contains(t))},D=function(e){return i(e)},E=function(e){i=e};E(function(e){return e&&e.get(0)}),t.setPublicElementWrapper=E,t.resetActiveElement=g,t.createMarkupFromString=C,t.triggerShownEvent=v("dxshown"),t.triggerHidingEvent=v("dxhiding"),t.triggerResizeEvent=v("dxresize"),t.getElementOptions=b,t.createComponents=y,t.normalizeTemplateElement=k,t.clearSelection=_,t.uniqueId=x,t.closestCommonParent=m,t.clipboardText=I,t.toggleAttr=S,t.contains=T,t.getPublicElement=D},function(e,t,n){var i=n(2),o=n(6),a=o.getNavigator(),r=o.getWindow(),s=n(0).extend,l=n(1).isPlainObject,c=n(3).each,d=n(10),u=n(17),h=n(19),p=n(121),f=n(52),g=n(154).sessionStorage,_=n(73),m=n(29),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"},x={deviceType:"desktop",platform:"generic",version:[],phone:!1,tablet:!1,android:!1,ios:!1,win:!1,generic:!0,grade:"A",mac:!1},w={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),o&&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),i=n?[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3]||0,10)]:[],o=480===r.screen.height,a=o?"B":"A";return{deviceType:t?"phone":"tablet",platform:"ios",version:i,grade: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)]:[],o=i.length>1&&(i[0]<4||4===i[0]&&i[1]<4),a=o?"B":"A";return{deviceType:t?"phone":"tablet",platform:"android",version:i,grade:a}}}},b=d.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(),e.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]),y.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],!t)throw u.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({},x,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(c(w,function(n,i){return t=i(e),!t}),t)return this._fromConfig(t);var n=/(mac os)/.test(e.toLowerCase()),i=x;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),y=new b;_.changeCallback.add(function(e,t){y.detachCssClasses(t),y.attachCssClasses(e)}),y.isForced()||"win"!==y.current().platform||y.current({version:[10]}),e.exports=y},function(e,t,n){var i=n(2),o=n(55),a=n(0).extend,r=n(3).each,s=n(39).format,l=n(36).humanize,c=n(81);n(81);var d="-",u=a(!0,{},n(320)),h=n(321),p=function(e){var t=h[e];return t?"root"!==t&&t:e.substr(0,e.lastIndexOf(d))},f=function(e,t){return e[t]||{}},g=function(e,t,n){for(var i,o=f(e,t)[n];!o&&!i;)t=p(t),t?o=f(e,t)[n]:i=!0;return o},_={},m=o({_dictionary:u,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||(_[a]=l(a)),n+(r||s)})},_messageLoaded:function(e,t){return void 0!==g(this._dictionary,t||c.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?_:a({},_,this.getMessagesByLocales()[c.locale()]); },getFormatter:function(e){return this._getFormatterBase(e)||this._getFormatterBase(e,"en")},_getFormatterBase:function(e,t){var n=g(this._dictionary,t||c.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=m},function(e,t,n){function i(e,t){for(var n,i=0,o=e.length,a=[];i0?(n=E(n)/S,t=B(n),t-n4&&(a=4)):(i="exponential",a+=o-1,a>3&&(a=3)),{type:i,precision:a})},K=function(e,t){if(t>20&&(t=20),m(e))return P(v(e)?e.toExponential(t):e.toFixed(t))},U=function(e){return e.toExponential().split("e")[1]};p(t,{decreaseGaps:function(e,t,n){var i;do i=o(e,t),i.push(x.ceil(n/i.length)),n=a(e,t,x.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.x,o=(i?e.x:e.x+e.width)-n.x,a=e.y-n.y,r=a+t,s=w(b(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.getLog=V,t.getAdjustedLog10=F,t.raiseTo=L,t.normalizeAngle=H,t.convertAngleToRendererSpace=z,t.degreesToRadians=N,t.getCosAndSin=$,t.getDecimalOrder=q,t.getAppropriateFormat=j,t.getDistance=G,t.roundValue=K,t.getPower=U,t.rotateBBox=d,t.normalizeBBox=c},function(e,t,n){var i=n(102);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){var i=n(2),o=n(5),a=n(14),r=n(12),s=n(13),l=n(105),c=n(9),d=n(25),u=n(108),h=n(84),p=n(59).compare,f="dxclick",g=10,_=Math.abs,m=function(e){return i(e).is("input, textarea, select, button ,:focus, :focus *")},v={requestAnimationFrame:l.requestAnimationFrame,cancelAnimationFrame:l.cancelAnimationFrame},x=u.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=c.eventData(e)},end:function(e){return this._eventOutOfElement(e,this.getElement().get(0))||e.type===d.cancel?void this._cancel(e):(m(e.target)||this._blurPrevented||s.resetActiveElement(),this._accept(e),void(this._clickAnimationFrame=v.requestAnimationFrame(function(){this._fireClickEvent(e)}.bind(this))))},_eventOutOfElement:function(e,t){var n=e.target,i=!s.contains(t,n)&&t!==n,o=c.eventDelta(c.eventData(e),this._startEventData),a=_(o.x)>g||_(o.y)>g;return i||a},_fireClickEvent:function(e){this._fireEvent(f,e,{target:s.closestCommonParent(this._startTarget,e.target)})},dispose:function(){v.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,d=function(e){var t=e.originalEvent,n=l!==t,i=!e.which||1===e.which;i&&!s&&r(e.target)&&n&&(l=t,c.fireEvent({type:f,originalEvent:e}))};x=x.inherit({_makeElementClickable:function(e){r(e)||this.callBase(e),o.on(e,"click",d)},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",d)}})}(),function(){var e=a.real().generic;if(!e){var t=null,n=!1,l=function(e){t=e.target,n=e.isDefaultPrevented()},u=function(e){var o=i(e.target);n||!t||o.is(t)||i(t).is("label")||!m(o)||s.resetActiveElement(),t=null,n=!1},h="NATIVE_CLICK_FIXER",p=r.getDocument();o.subscribeGlobal(p,c.addNamespace(d.down,h),l),o.subscribeGlobal(p,c.addNamespace("click",h),u)}}(),h({emitter:x,bubble:!0,events:[f]}),t.name=f},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]-1&&(t.splice(i,1),this._firing&&n.length))for(var o=0;o-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=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};var o=function(e){return new i(e)};e.exports=o},function(e,t,n){function i(){if(!H.hasWindow())return null;var e,t=F("
",k).addClass("dx-theme-marker").appendTo(k.documentElement);try{return(e=t.css("fontFamily"))?(e=e.replace(/["']/g,""),e.substr(0,ne.length)!==ne?null:e.substr(ne.length)):null}finally{t.remove()}}function o(e){function t(){D=null,Y.fire(),Y.empty()}var n;D=e,a()?t():(n=Date.now(),R=setInterval(function(){var e=a(),i=!e&&Date.now()-n>15e3;i&&$.log("W0004",D),(e||i)&&(clearInterval(R),R=void 0,t())},10))}function a(){return!D||i()===D}function r(){var e=F(Q,k);e.length&&(I={},S=F(W.createMarkupFromString(""),k),e.each(function(){var e=F(this,k),t=e.attr(J),n=e.attr("href"),i="true"===e.attr(ee);I[t]={url:n,isActive:i}}),e.last().after(S),e.remove())}function s(e){var t=e.split("."),n=null;if(I){if(e in I)return e;j(I,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}function l(e){try{e!==k&&(I=null)}catch(e){I=null}k=e}function c(e){e=e||{},l(e.context||L.getDocument()),k&&(r(),T=void 0,E=void 0,A=void 0,O=void 0,B=void 0,M=void 0,P=void 0,d(e))}function d(e){if(!arguments.length)return T=T||i();f(X()),e=e||{},"string"==typeof e&&(e={theme:e});var t,n=e._autoInit,a=e.loadCallback;if(T=e.theme||T,n&&!T&&(T=u(K.current())),T=s(T),T&&(t=I[T]),a&&Y.add(a),t)S.attr("href",I[T].url),!Y.has()&&!e._forceTimeout||R?D&&(D=T):o(T);else{if(!n)throw $.Error("E0021",T);Y.fire(),Y.empty()}E=/material/.test(T||i()),A=/android5/.test(T||i()),B=/ios7/.test(T||i()),O=/generic/.test(T||i()),M=/win8/.test(T||i()),P=/win10/.test(T||i()),y(),p(U.originalViewPort(),T)}function u(e){var t=e.platform,n=e.version&&e.version[0];switch(t){case"ios":t+="7";break;case"android":t+="5";break;case"win":t+=n&&8===n?"8":"10"}return t}function h(e){e=e||d();var t=[],n=e&&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]+(_()?"-"+n[2]:""))),t}function p(e,t){V=h(t).join(" "),F(e).addClass(V);var n=function(){var t=H.hasWindow()&&z.devicePixelRatio;if(t&&!(t<2)){var n=F("
");n.css("border",".5px solid transparent"),F("body").append(n),1===n.outerHeight()&&(F(e).addClass(te),V+=" "+te),n.remove()}};n()}function f(e){F(e).removeClass(V)}function g(e){Y.add(e)}function _(){return E}function m(){return A}function v(){return B}function x(){return O}function w(){return M}function b(){return P}function y(){w()&&$.log("W0010","The 'win8' theme","16.1","Use the 'generic' theme instead."),b()&&$.log("W0010","The 'win10' theme","17.2","Use the 'generic' theme instead."),m()&&$.log("W0010","The 'android5' theme","18.1","Use the 'material' theme instead.")}function C(){if(c({_autoInit:!0,_forceTimeout:!0}),F(Q,k).length)throw $.Error("E0022");ie.resolve()}var k,S,I,T,D,E,A,B,O,M,P,R,V,F=n(2),L=n(12),H=n(6),z=H.getWindow(),N=n(7).Deferred,$=n(21),W=n(13),G=n(50),q=G.add,j=n(3).each,K=n(14),U=n(73),Y=n(231),X=U.value,Z=U.changeCallback,Q="link[rel=dx-theme]",J="data-theme",ee="data-active",te="dx-hairlines",ne="dx.",ie=new N;H.hasWindow()?C():q(C),Z.add(function(e,t){ie.done(function(){f(t),p(e)})}),K.changed.add(function(){c({_autoInit:!0})}),t.current=d,t.ready=g,t.init=c,t.attachCssClasses=p,t.detachCssClasses=f,t.themeNameFromDevice=u,t.waitForThemeLoad=o,t.isMaterial=_,t.isAndroid5=m,t.isIos7=v,t.isGeneric=x,t.isWin8=w,t.isWin10=b,t.resetTheme=function(){S&&S.attr("href","about:blank"),T=null,D=null,E=!1,A=!1,B=!1,O=!1,M=!1,P=!1}},function(e,t,n){var i=n(102),o=n(17);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 JSZip script is referenced after the DevExtreme scripts or not referenced at all",E1042:'Deferred selection cannot be performed. Set the "key" field for the data store',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:"Сolumn '{0}': filtering is allowed but the 'dataField' or 'name' option is not specified",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 '{0}' error",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"})},function(e,t,n){var i=n(17),o=n(10),a=n(53),r=n(1),s=n(3).each,l=n(71),c=l.unwrap,d=l.isWrapped,u=l.assign,h=function(e){return e.replace(/\[/g,".").replace(/\]/g,"")},p=function(e,t,n){return n=n||{},"this"===t?_(e,n):_(e[t],n)},f=function(e,t,n,o){if("this"===t)throw new i.Error("E4016");var a=e[t];o.unwrapObservables&&d(a)?u(a,n):e[t]=n},g=function(e){return e=e||{},e.unwrapObservables=void 0===e.unwrapObservables||e.unwrapObservables,e},_=function(e,t){return t.unwrapObservables?c(e):e},m=function(e){if(arguments.length>1&&(e=[].slice.call(arguments)),!e||"this"===e)return function(e){return e};if("string"==typeof e){e=h(e);var t=e.split(".");return function(e,n){n=g(n);for(var i=n.functionsAsIs,o=_(e,n),a=0;a=0;t--)i=o[t],n=Math.floor(e/f(i)),n>0&&(a[i+"s"]=n,e-=x(i,n));return a},v=function(e){var t=0;return c(e)&&s(e,function(e,n){t+=x(e.substr(0,e.length-1),n)}),d(e)&&(t=x(e,1)),t},x=function(e,t){return f(e)*t},w=function(e){var t,n=-1;return d(e)?e:c(e)?(s(e,function(e,i){for(t=0;t=6&&(i=new Date(i.setDate(i.getDate()+7))),i},Q=function(e,t,n,i){return"date"===i&&(t=t&&oe.correctDateWithUnitBeginning(t,"day"),n=n&&oe.correctDateWithUnitBeginning(n,"day"),e=e&&oe.correctDateWithUnitBeginning(e,"day")),J(e,t,n)===e},J=function(e,t,n){var i=e;return h(e)?(h(t)&&en&&(i=n),i):e},ee=function(e,t){if(h(e)){var n,i,o=t.getHours()-e.getHours();0!==o&&(n=1===o||o===-23?-1:1,i=new Date(t.getTime()+36e5*n),(n>0||i.getDate()===t.getDate())&&t.setTime(i.getTime()))}},te=function(e){return e.setHours(e.getHours()+1),e.setMinutes(0),e},ne=function(e,t){return 60*(t.getTimezoneOffset()-e.getTimezoneOffset())*1e3},ie=function(e){return new Date(e)},oe={dateUnitIntervals:p,convertMillisecondsToDateUnits:m,dateToMilliseconds:v,getNextDateUnit:_,convertDateUnitToMilliseconds:x,getDateUnitInterval:w,getDateFormatByTickInterval:i,getDatesDifferences:I,correctDateWithUnitBeginning:k,trimTime:S,addDateInterval:o,addInterval:T,getSequenceByInterval:D,getDateIntervalByString:H,sameDate:z,sameMonthAndYear:N,sameMonth:N,sameYear:$,sameDecade:W,sameCentury:G,sameView:P,getDifferenceInMonth:F,getDifferenceInMonthForCells:L,getFirstYearInDecade:j,getFirstDecadeInCentury:q,getShortDateFormat:K,getViewFirstCellDate:E,getViewLastCellDate:A,getViewDown:V,getViewUp:R,getLastMonthDay:M,getLastMonthDate:Y,getFirstMonthDate:U,getFirstWeekDate:X,normalizeDateByWeek:Z,getQuarter:y,getFirstQuarterMonth:C,dateInRange:Q,roundToHour:te,normalizeDate:J,getViewMinBoundaryDate:B,getViewMaxBoundaryDate:O,fixTimezoneGap:ee,getTimezonesDifference:ne,makeDate:ie,getDatesInterval:g};e.exports=oe},function(e,t,n){var i=n(37),o=n(1).type,a="dxTranslator",r=/matrix(3d)?\((.+?)\)/,s=/translate(?:3d)?\((.+?)\)/,l=function(e){var t=u(e);return{left:t.x,top:t.y}},c=function(e,t){var n,i=t.left,o=t.top;void 0===i?(n=u(e),n.y=o||0):void 0===o?(n=u(e),n.x=i||0):(n={x:i||0,y:o||0,z:0},h(e,n)),e.css({transform:_(n)}),(d(i)||d(o))&&p(e)},d=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")||_({x:0,y:0}),o=n.match(r),s=o&&o[1];o?(o=o[2].split(","),"3d"===s?o=o.slice(12,15):(o.push(0),o=o.slice(4,7))):o=[0,0,0],t={x:parseFloat(o[0]),y:parseFloat(o[1]),z:parseFloat(o[2])},h(e,t)}return t},h=function(e,t){e.length&&i.data(e.get(0),a,t)},p=function(e){e.length&&i.removeData(e.get(0),a)},f=function(e){e.css({left:0,top:0,transform:"none"}),p(e)},g=function(e){var t=e.match(s);if(t&&t[1])return t=t[1].split(","),t={x:parseFloat(t[0]),y:parseFloat(t[1]),z:parseFloat(t[2])}},_=function(e){e.x=e.x||0,e.y=e.y||0;var t=d(e.x)?e.x:e.x+"px",n=d(e.y)?e.y:e.y+"px";return"translate("+t+", "+n+")"};t.move=c,t.locate=l,t.clearCache=p,t.parseTranslate=g,t.getTranslate=u,t.getTranslateCss=_,t.resetPosition=f},function(e,t,n){var i=n(42),o=n(3).each,a=n(14),r=n(12),s=n(61),l=n(226),c=n(317),d=n(228),u=n(5),h=n(318),p=function(){if(i.pointerEvents)return c;var e=a.real();return!i.touch||e.tablet||e.phone?i.touch?l:d:h}();o(p.map,function(e,t){var n=new p(e,t);e===u.passiveListenerEvents.eventName&&(n.setup=function(e,t,n,i){return r.listen(e,u.passiveListenerEvents.nativeEventName,i,{passive:!1}),!0}),s(e,n)}),e.exports={down:"dxpointerdown",up:"dxpointerup",move:"dxpointermove",cancel:"dxpointercancel",enter:"dxpointerenter",leave:"dxpointerleave",over:"dxpointerover",out:"dxpointerout"}},function(e,t){e.exports=window.jQuery},function(e,t,n){var i=n(0).extend,o=n(48),a=n(45);i(t,a,o,{modules:[]})},function(e,t,n){var i=n(2),o=n(5),a=n(21),r=n(76),s=n(0).extend,l=n(11).inArray,c=n(3).each,d=n(4),u=n(1),h=n(13),p=n(12),f=n(14),g=n(58),_=n(258),m=n(95),v=n(122),x=n(101),w=n(155),b=n(56),y=n(9),C=n(157),k=n(96),S=n(18),I=n(36),T="UIFeedback",D="dx-widget",E="dx-state-active",A="dx-state-disabled",B="dx-state-invisible",O="dx-state-hover",M="dx-state-focused",P=30,R=400,V="Focus",F="template",L=3,H="[data-options*='dxTemplate']",z="dx-template-wrapper",N=new m(function(e){var t=e.model.widget;if(t){var n=i("
"),o=e.model.options||{};if("button"===t||"tabs"===t||"dropDownMenu"===t){var r=t;t=I.camelize("dx-"+t),a.log("W0001","dxToolbar - 'widget' item field",r,"16.1","Use: '"+t+"' instead")}return n[t](o),n}return i()}),$=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||{},n.skipImmediate||t(e()),d.noop},templates:{"dx-polymorph-widget":N},createTemplate:function(e){return new _(e)}},_keyboardProcessor:void 0})},_feedbackShowTimeout:P,_feedbackHideTimeout:R,_init:function(){this.callBase(),this._tempTemplates=[],this._defaultTemplates={},this._initTemplates(),this._initContentReadyAction()},_initTemplates:function(){this._extractTemplates(),this._extractAnonymousTemplate()},_extractTemplates:function(){var e=this.option("integrationOptions.templates"),t=this.$element().contents().filter(H),n={};t.each(function(e,t){var o=h.getElementOptions(t).dxTemplate;if(o){if(!o.name)throw a.Error("E0023");i(t).addClass(z).detach(),n[o.name]=n[o.name]||[],n[o.name].push(t)}}),c(n,function(t,n){var i=this._findTemplateByDevice(n);i&&(e[t]=this._createTemplate(i))}.bind(this))},_findTemplateByDevice:function(e){var t=d.findBestMatches(f.current(),e,function(e){return h.getElementOptions(e).dxTemplate})[0];return c(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=t.nodeType===L,o=i(t).text().trim().length<1;return!(n&&o)}),a=o.length<1;e[t]||a||(e[t]=this._createTemplate(n)); },_getAriaTarget:function(){return this._focusTarget()},_getAnonymousTemplateName:function(){return F},_getTemplateByOption:function(e){return this._getTemplate(this.option(e))},_getTemplate:function(e){return u.isFunction(e)?new m(function(t){var n=e.apply(this,this._getNormalizedTemplateArgs(t));if(!u.isDefined(n))return new v;var o=!1,a=this._acquireTemplate(n,function(e){return e.nodeType||u.isRenderer(e)&&!i(e).is("script")?new m(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){if(null==e)return new v;if(e instanceof x)return this._defaultTemplates[e.name];if(u.isFunction(e.render)&&!u.isRenderer(e))return e;if(e.nodeType||u.isRenderer(e))return e=i(e),t(e);if("string"==typeof e){var n=this.option("integrationOptions.templates")[e];if(n)return n;var o=this._defaultTemplates[e];return o?o:t(e)}return this._acquireTemplate(e.toString(),t)},_createTemplateIfNeeded:function(e){var t=function(e){return u.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:["designMode","disabled","readOnly"]})},_initMarkup:function(){this.$element().addClass(D),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;d.deferRender(function(){e._renderContentImpl()}),e._fireContentReadyAction()},_renderContentImpl:d.noop,_fireContentReadyAction:d.deferRenderer(function(){this._contentReadyAction()}),_dispose:function(){this._cleanTemplates(),this._contentReadyAction=null,this.callBase()},_clean:function(){this._cleanFocusState(),this.callBase(),this.$element().empty()},_toggleVisibility:function(e){this.$element().toggleClass(B,!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=y.addNamespace(S.name,T);o.off(e,t),this.option("accessKey")&&o.on(e,t,function(e){y.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("."+A)),e},_renderFocusTarget:function(){this._focusTarget().attr("tabIndex",this.option("tabIndex"))},_keyboardEventBindingTarget:function(){return this._eventBindingTarget()},_detachFocusEvents:function(){var e=this._focusTarget(),t=this.NAME+V,n=y.addNamespace("focusin",t);n=n+" "+y.addNamespace("focusout",t),p.hasDocumentProperty("onbeforeactivate")&&(n=n+" "+y.addNamespace("beforeactivate",t)),o.off(e,n)},_attachFocusEvents:function(){var e=this.NAME+V,t=y.addNamespace("focusin",e),n=y.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=y.addNamespace("beforeactivate",e);o.on(this._focusTarget(),r,function(e){i(e.target).is(b.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;l(n,this._focusTarget())!==-1&&this._toggleFocusClass(t,i(n))},_toggleFocusClass:function(e,t){var n=t&&t.length?t:this._focusTarget();n.toggleClass(M,e)},_hasFocusClass:function(e){var t=i(e||this._focusTarget());return t.hasClass(M)},_attachKeyboardEvents:function(){var e=this.option("_keyboardProcessor");e?this._keyboardProcessor=e.reinitialize(this._keyboardHandler,this):this.option("focusStateEnabled")&&(this._keyboardProcessor=new w({element:this._keyboardEventBindingTarget(),handler:this._keyboardHandler,focusTarget:this._focusTarget(),context:this}))},_keyboardHandler:function(e){var t=e.originalEvent,n=e.key,i=this._supportedKeys(),o=i[n];if(void 0!==o){var a=o.bind(this);return a(t)||!1}return!0},_refreshFocusState:function(){this._cleanFocusState(),this._renderFocusState()},_cleanFocusState:function(){var e=this._focusTarget();this._detachFocusEvents(),this._toggleFocusClass(!1),e.removeAttr("tabIndex"),this._keyboardProcessor&&(this._keyboardProcessor.dispose(),delete this._keyboardProcessor)},_attachHoverEvents:function(){var e=this,t=e._activeStateUnit,n=y.addNamespace(C.start,T),a=y.addNamespace(C.end,T);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:d.noop,_hoverEndHandler:d.noop,_attachFeedbackEvents:function(){var e,t,n=this,a=n._activeStateUnit,s=y.addNamespace(k.active,T),l=y.addNamespace(k.inactive,T);if(o.off(n._eventBindingTarget(),s,a),o.off(n._eventBindingTarget(),l,a),n.option("activeStateEnabled")){var c=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(c),e.execute({element:i(t.currentTarget),value:!0,event:t})}),o.on(n._eventBindingTarget(),l,a,{timeout:n._feedbackHideTimeout},function(e){t=t||new r(c,{excludeValidators:["disabled","readOnly"]}),t.execute({element:i(e.currentTarget),value:!1,event:e})})}},_toggleActiveState:function(e,t){this._toggleHoverClass(!t),e.toggleClass(E,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(O,e&&this.option("hoverStateEnabled"))},_toggleDisabledState:function(e){this.$element().toggleClass(A,Boolean(e)),this._toggleHoverClass(!e),this.setAria("disabled",e||void 0)},_setWidgetOption:function(e,t){if(this[e]){if(u.isPlainObject(t[0]))return void c(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?void 0:n.toString(),h.toggleAttr(e.target,t,n)};if(u.isPlainObject(arguments[0])){var t=arguments[1]||this._getAriaTarget();c(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=$},function(e,t,n){var i=n(0),o={rtlEnabled:!1,defaultCurrency:"USD",designMode:!1,serverDecimalSeparator:".",decimalSeparator:".",thousandsSeparator:",",forceIsoDateParsing:!0,wrapActionsBeforeExecute:!0,useJQuery:void 0},a=function(){return arguments.length?void i.extend(o,arguments[0]):o};"undefined"!=typeof DevExpress&&DevExpress.config&&a(DevExpress.config),e.exports=a},function(e,t,n){var i=n(0).extend,o=n(6),a=o.getNavigator(),r=/(webkit)[ \/]([\w.]+)/,s=/(msie) (\d{1,2}\.\d)/,l=/(trident).*rv:(\d{1,2}\.\d)/,c=/(edge)\/((\d+)?[\w\.]+)/,d=/(safari)/i,u=/(mozilla)(?:.*? rv:([\w.]+))/,h=function(e){e=e.toLowerCase();var t={},n=s.exec(e)||l.exec(e)||c.exec(e)||e.indexOf("compatible")<0&&u.exec(e)||r.exec(e)||[],i=n[1],o=n[2];return"webkit"===i&&e.indexOf("chrome")<0&&d.exec(e)&&(i="safari",t.webkit=!0,o=/Version\/([0-9.]+)/i.exec(e),o=o&&o[1]),"trident"!==i&&"edge"!==i||(i="msie"),i&&(t[i]=!0,t.version=o),t};e.exports=i({_fromUA:h},h(a.userAgent))},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(6).getWindow(),r=n(5),s=n(17),l=n(13).getPublicElement,c=n(0).extend,d=n(1),u=n(3),h=n(24),p=n(225),f=n(105),g=n(42),_=n(77),m=n(128),v=n(9),x=n(7),w=x.when,b=x.Deferred,y=v.addNamespace(m,"dxFX"),C=d.isFunction,k=d.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):ce(e,t.from);var n=this,i=new b,o=t.cleanupWhen;t.transitionAnimation={deferred:i,finish:function(){n._finishTransition(e),o?w(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 b,l=new b,c=new b,d=g.transitionEndEventName()+".dxFX";return t.transitionAnimation.cleanup=function(){clearTimeout(n),clearTimeout(i),r.off(e,d),r.off(e,y)},r.one(e,d,function(){Date.now()-a>=t.duration&&l.reject()}),r.off(e,y),r.on(e,y,function(){o.stop(e,t),s.reject()}),i=setTimeout(function(){n=setTimeout(function(){c.reject()},t.duration+t.delay+ue._simulatedTransitionEndDelay),w(l,c).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&&ce(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)&&u.each(t.to,function(t){e.css(t,e.css(t))}),this._finishTransition(e),this._cleanup(e,t)))}},B={initAnimation:function(e,t){ce(e,t.from)},animate:function(e,t){var n=new b,i=this;return t?(u.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)return void t.draw(this.currentValue);var n=c({},this.currentValue);n[E]&&(n[E]=u.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,y),r.on(e,y,function(){t.frameAnimation&&f.cancelAnimationFrame(t.frameAnimation.animationFrameId)}),this._animationStep(e,t)},_parseTransform:function(e){var t={};return u.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){var n=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],c=e.duration;return p.getEasing(e.easing)(i,r,s,l,c)};return u.each(a,function(e,t){return"string"==typeof t&&parseFloat(t,10)===!1||void(r[e]="object"===("undefined"==typeof t?"undefined":i(t))?n(o[e],t):s(e))}),r};return n(e.from,e.to)},_normalizeValue:function(e){var t=parseFloat(e,10);return t===!1?e:t}},O={initAnimation:function(){},animate:function(){return(new b).resolve().promise()},stop:S,isSynchronous:!0},M=function(e){e=e||{};var t={transition:g.transition()?A:B,frame:B,noAnimation:O},n=e.strategy||"transition";return"css"!==e.type||g.transition()||(n="noAnimation"),t[n]},P=function(e,t,n,i){u.each(["from","to"],function(){if(!n(e[this]))throw s.Error("E0010",t,this,i)})},R=function(e,t){return P(e,t,function(e){return k(e)},"a plain object")},V=function(e,t){return P(e,t,function(e){return"string"==typeof e},"a string")},F={setup:function(){}},L={validateConfig:function(e){V(e,"css")},setup:function(){}},H={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"}},z={validateConfig:function(e){R(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=c({of:a},H[t.direction]),le(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,i=this._getRelativeValue(n.top),void 0!==i?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]}},N={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}}},$={validateConfig:function(e){R(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+")"}},W={custom:F,slide:z,slideIn:z,slideOut:z,fade:N,fadeIn:N,fadeOut:N,pop:$,css:L},G=function(e){var t=W[e.type];if(!t)throw s.Error("E0011",e.type);return t},q={type:"custom",from:{},to:{},duration:400,start:S,complete:S,easing:"ease",delay:0},j={duration:400,easing:"ease",delay:0},K=function(){var e=this,t=e.element,n=e.config;if(le(t,n.from),le(t,n.to),e.configurator.setup(t,n),t.data(T,e),ue.off&&(n.duration=0,n.delay=0),e.strategy.initAnimation(t,n),n.start){var i=l(t);n.start.apply(this,[i,n])}},U=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])},Y=function(){var e=this,t=e.element,n=e.config;return e.isStarted=!0,e.strategy.animate(t,n).done(function(){U(e)}).fail(function(){e.deferred.rejectWith(this,[t,n])})},X=function(e){var t=this,n=t.element,i=t.config;clearTimeout(t.startTimeout),t.isStarted||t.start(),t.strategy.stop(n,i,e)},Z=v.addNamespace(m,"dxFXStartAnimation"),Q=function(e){r.off(e.element,Z),r.on(e.element,Z,function(){ue.stop(e.element)}),e.deferred.always(function(){r.off(e.element,Z)})},J=function(e,t){var n="css"===t.type?j:q,i=c(!0,{},n,t),a=G(i),r=M(i),s={element:o(e),config:i,configurator:a,strategy:r,isSynchronous:r.isSynchronous,setup:K,start:Y,stop:X,deferred:new b};return C(a.validateConfig)&&a.validateConfig(i),Q(s),s},ee=function(e,t){var n=o(e);if(!n.length)return(new b).resolve().promise();var i=J(n,t);return te(n,i),i.deferred.promise()},te=function(e,t){var n=ne(e);ie(e,n),n.push(t),ae(e)||re(e,n)},ne=function(e){return e.data(D)||[]},ie=function(e,t){e.data(D,t)},oe=function(e){e.removeData(D)},ae=function(e){return!!e.data(T)},re=function e(t,n){if(n=ne(t),n.length){var i=n.shift();0===n.length&&oe(t),se(i).done(function(){ae(t)||e(t)})}},se=function(e){return e.setup(),ue.off||e.isSynchronous?e.start():e.startTimeout=setTimeout(function(){e.start()}),e.deferred.promise()},le=function(e,t){var n=o(a),i=n.scrollLeft(),r=n.scrollTop();if(t&&t.position){var s=_.calculate(e,t.position),l=e.offset(),d=e.position();c(t,{left:s.h.location-l.left+d.left-i,top:s.v.location-l.top+d.top-r}),delete t.position}},ce=function(e,t){u.each(t,function(t,n){try{e.css(t,d.isFunction(n)?n():n)}catch(e){}})},de=function(e,t){var n=o(e),i=ne(n);u.each(i,function(e,t){t.config.delay=0,t.config.duration=0,t.isSynchronous=!0}),ae(n)||re(n,i);var a=n.data(T);a&&a.stop(t),n.removeData(T),oe(n)},ue={off:!1,animationTypes:W,animate:ee,createAnimation:J,isAnimating:ae,stop:de,_simulatedTransitionEndDelay:100};e.exports=ue},function(e,t,n){var i=n(55),o=n(1).isString,a=n(3),r=n(11).inArray,s=n(219).getFormatter,l=n(220).getFormat,c=n(312).getParser,d=n(221),u=n(47),h=n(17);n(81);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 this._expandPattern(e).indexOf("MMMM")!==-1},formatUsesDayName:function(e){return this._expandPattern(e).indexOf("EEEE")!==-1},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 d.getMonthNames(e)},getDayNames:function(e){return d.getDayNames(e)},getQuarterNames:function(e){return d.getQuarterNames(e)},getPeriodNames:function(e){return d.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;a1?10:0;return 1===l.length?e:(u||(s(t)&&(a=l[0].length+i(t)),e=d,e=e-Math.floor(e)+h),a=o()&&i(e)>6||a>7?15:7,u||(n=parseFloat(e.toPrecision(a)).toString().split("."),n[0]!==h.toString())?parseFloat(c.toPrecision(a)):parseFloat(l[0]+"."+n[1]))}function r(e){var t,n,i=e.toString();return i.indexOf(".")<0?0:(t=i.split("."),n=t[1].indexOf("e"),n>=0?n:t[1].length)}var s=n(1).isExponential,l=function(e){return 0===e?0:e/Math.abs(e)},c=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)},d=function(e,t,n){return e>=t&&e<=n};t.sign=l,t.fitIntoRange=c,t.inRange=d,t.adjust=a,t.getPrecision=r,t.getExponent=i},function(e,t,n){var i=n(102),o=n(17),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}"}),s=null,l=function(e){a.errorHandler&&a.errorHandler(e)};a={errors:r,errorHandler:s,_errorHandler:l},e.exports=a},function(e,t,n){var i=n(3).map,o=function(e){return void 0===e||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=function(e){return s(e).replace(/-/g,"_")},c=function(e,t){return i(r(e),function(e,n){return e=e.toLowerCase(),(t||n>0)&&(e=a(e)),e}).join("")},d=function(e){return a(s(e).replace(/-/g," "))},u=function(e){return i(r(e),function(e){return a(e.toLowerCase())}).join(" ")},h=["0","1","2","3","4","5","6","7","8","9"],p=function(e){var t,n,i=[],o=!1,a=!1;for(t=0;t0&&i.push(" "),i.push(n),o=a;return i.join("")};t.dasherize=s,t.camelize=c,t.humanize=d,t.titleize=u,t.underscore=l,t.captionize=p},function(e,t,n){var i,o=n(171),a=n(12),r=n(5),s=n(172),l=new o,c=new s,d=function(){},u=function(){},h=t.setDataStrategy=function(e){c.fire(e),i=e;var t=i.cleanData;i.cleanData=function(e){d(e);var n=t.call(this,e);return u(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").text(t.text).addClass(C):void 0;i(e.container).append(n).append(o)},this)},_initMarkup:function(){this.$element().addClass(v),this._renderType(),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"),t={};e&&c(t,{waveSizeCoefficient:1,useHoldAnimation:!1,isCentered:!0}),this._inkRipple=p.render(t)},_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("
").addClass(x).appendTo(e),e.toggleClass(b,!!t.icon).toggleClass(w,!!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(y)&&(this._$content.replaceWith(a),this._$content=a,this._$content.addClass(x)),this.option("useSubmitBehavior")&&this._renderSubmitInput()},_renderSubmitInput:function(){var e=this._createAction(function(e){var t=e.event,n=u.getGroupConfig(e.component._findGroup());n&&!n.validate().isValid&&t.preventDefault(),t.stopPropagation()});this._$submitInput=i("").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"),n="back"===this.option("type");return n&&!e&&(e="back"),{icon:e,text:t}},_renderClick:function(){var e=this,t=f.addNamespace(_.name,this.NAME),n={};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:u.getGroupConfig(this._findGroup())})},_updateAriaLabel:function(){var e=this.option("icon"),t=this.option("text");"image"===a.getImageSourceType(e)&&(e=e.indexOf("base64")===-1?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)},_refreshType:function(e){var t=this.option("type");e&&this.$element().removeClass("dx-button-"+e).addClass("dx-button-"+t),this.$element().hasClass(b)||"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":this._updateContent();break;case"useInkRipple":this._invalidate();break;case"useSubmitBehavior":this._invalidate();break;default:this.callBase(e)}},_clean:function(){this.callBase(),delete this._$content,delete this._inkRipple}}).include(d);l("dxButton",I),e.exports=I},function(e,t,n){var i=n(1),o=n(4),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],"&").replace(e[1],""").replace(e[2],"'").replace(e[3],"<").replace(e[4],">"); }}(),r=function(e){var t=o.splitPair(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}},s=function(e){var t=o.splitQuad(e),n=parseInt(t&&t[0],10),i=parseInt(t&&t[1],10),a=parseInt(t&&t[2],10),r=parseInt(t&&t[3],10);return isFinite(n)||(n=0),isFinite(i)||(i=n),isFinite(a)||(a=n),isFinite(r)||(r=i),{top:i,right:a,bottom:r,left:n}},l=function(){var e,t,n,o=arguments[0],a=[].slice.call(arguments).slice(1);if(i.isFunction(o))return o.apply(this,a);for(var r=0;r=0&&(e="$".replace("$","$$").length,n=n.replace("$",1===e?"$$$$":"$$")),o=o.replace(t,n);return o},c=function(){var e=function(e){return(e+"").replace(/([\+\*\?\\\.\[\^\]\$\(\)\{\}\><\|\=\!\:])/g,"\\$1")};return function(t,n,i){return t.replace(new RegExp("("+e(n)+")","gi"),i)}}(),d=function(){var e=/\s/g;return function(t){return!t||!t.replace(e,"")}}();t.encodeHtml=a,t.pairToObject=r,t.quadToObject=s,t.format=l,t.replaceAll=c,t.isEmpty=d},function(e,t,n){function i(e){return/^(or|\|\||\|)$/i.test(e)}function o(e){return/^(and|\&\&|\&)$/i.test(e)}var a=n(1).isFunction,r=n(12),s=n(50).add,l=n(6),c=l.getWindow(),d=n(3).map,u=n(22).toComparable,h=n(7).Deferred,p="DEVEXTREME_XHR_ERROR_UNLOAD",f=function(e){return[e[0],e.length<3?"=":String(e[1]).toLowerCase(),e.length<2||e[e.length-1]]},g=function(e){return Array.isArray(e)||(e=[e]),d(e,function(e){var t={selector:a(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})},_=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?n:e};return s(function(){r.listen(c,"beforeunload",function(){e=!0})}),function(t,i){return e?p:t.status<400?n(i):t.statusText}}(),m={count:{seed:0,step:function(e){return 1+e}},sum:{seed:0,step:function(e,t){return e+t}},min:{step:function(e,t){return te?t:e}},avg:{seed:[0,0],step:function(e,t){return[e[0]+t,e[1]+1]},finalize:function(e){return e[1]?e[0]/e[1]:NaN}}},v=function(){var e,t=0,n=function(){0===t&&(e=new h),t++},i=function(){t--,t<1&&e.resolve()},o=function(){var n=0===t?(new h).resolve():e;return n.promise()},a=function(){t=0,e&&e.resolve()};return{obtain:n,release:i,promise:o,reset:a}}(),x=function(e,t,n){if(Array.isArray(e)){for(var i,o=d(t,function(e,t){return t}),a=0;a>2,(3&o)<<4|a>>4,isNaN(a)?64:(15&a)<<2|r>>6,isNaN(r)?64:63&r],t).join("")}return n},y=function(e){var t,n,i=[];for(n=0;n>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},C=function(e){return"!"===e[0]&&Array.isArray(e[1])},k={XHR_ERROR_UNLOAD:p,normalizeBinaryCriterion:f,normalizeSortingInfo:g,errorMessageFromXhr:_,aggregators:m,keysEqual:x,isDisjunctiveOperator:i,isConjunctiveOperator:o,processRequestResultLock:v,isUnaryOperation:C,base64_encode:b};e.exports=k},function(e,t,n){var i=n(143),o=n(344),a={array:i,remote:o},r=function(){var e=Array.isArray(arguments[0])?"array":"remote";return a[e].apply(this,arguments)};e.exports=r,e.exports.queryImpl=a},function(e,t,n){var i=n(11).inArray,o=n(12),a=n(66),r=n(6),s=r.getNavigator(),l=n(14),c=n(83),d={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MsTransitionEnd",transition:"transitionend"},u=function(e){return!!c.styleProp(e)},h=function(){var e=l.real(),t=e.platform,n=e.version,o=n&&n[0]<4&&"android"===t,a=!o&&i(t,["ios","android","win"])>-1||e.mac;return a},p=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}},f=r.hasProperty("ontouchstart")&&!r.hasProperty("callPhantom"),g=!!s.pointerEnabled||!!s.msPointerEnabled,_=!!s.maxTouchPoints||!!s.msMaxTouchPoints;t.touchEvents=f,t.pointerEvents=g,t.touch=f||g&&_,t.transition=a(function(){return u("transition")}),t.transitionEndEventName=a(function(){return d[c.styleProp("transition")]}),t.animation=a(function(){return u("animation")}),t.nativeScrolling=h(),t.styleProp=c.styleProp,t.stylePropPrefix=c.stylePropPrefix,t.supportProp=u,t.inputType=p},function(e,t,n){var i=n(26),o=n(59).compare,a=n(102),r=n(74)();if(r&&o(i.fn.jquery,[1,10])<0)throw a.Error("E0012");n(330),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(338),n(339)},function(e,t,n){var i=n(2),o=n(5),a=n(343),r=n(21),s=n(0).extend,l=n(3).each,c=n(4).noop,d=n(1).isDefined,u=n(190),h=n(22).compileGetter,p=n(51).DataSource,f=n(264),g=n(7),_=g.when,m=g.Deferred,v="dxItemDeleting",x=-1,w=function(e){return e!==x},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:x,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()},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:function(){return e.option("keyExpr")?e.option("keyExpr"):e._dataSource&&e._dataSource.key()},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=u;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);w(o)&&n.push(o)}),t._editStrategy.endCache(),n},_initMarkup:function(){this._rendering=!0,this._dataSource&&this._dataSource.isLoading()||(this._syncSelectionOptions(),this._normalizeSelectedItems()),this.callBase();var e=this._getSelectedItemIndices();this._renderSelection(e,[])},_render:function(){this.callBase(),this._rendering=!1},_fireContentReadyAction:function(){this._rendering=!1,this._rendered=!0,this.callBase.apply(this,arguments)},_syncSelectionOptions:function(e){e=e||this._chooseSelectOption();var t,n,i;switch(e){case"selectedIndex":t=this._editStrategy.getItemDataByIndex(this.option("selectedIndex")),d(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":if(n=this.option("selectedItems")||[],i=this._editStrategy.getIndexByItemData(n[0]),this.option("selectionRequired")&&!w(i))return void this._syncSelectionOptions("selectedIndex");this._setOptionSilent("selectedItem",n[0]),this._setOptionSilent("selectedIndex",i),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems(n));break;case"selectedItem":if(t=this.option("selectedItem"),i=this._editStrategy.getIndexByItemData(t),this.option("selectionRequired")&&!w(i))return void this._syncSelectionOptions("selectedIndex");d(t)?(this._setOptionSilent("selectedItems",[t]),this._setOptionSilent("selectedIndex",i),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionSilent("selectedItems",[]),this._setOptionSilent("selectedItemKeys",[]),this._setOptionSilent("selectedIndex",x));break;case"selectedItemKeys":var o=this.option("selectedItemKeys");if(this.option("selectionRequired")&&!w(this._getIndexByKey(o[0])))return void this._syncSelectionOptions("selectedIndex");this._selection.setSelection(o)}},_chooseSelectOption:function(){var e="selectedIndex",t=function(e){var t=this.option(e),n=d(t)&&t.length;return n||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;n1||!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];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")}else 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)}},_renderSelection:c,_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);this._isItemSelected(this._editStrategy.getNormalizedIndex(t))?(t.addClass(this._selectedItemClass()),this._setAriaSelected(t,"true")):this._setAriaSelected(t,"false")}},_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;r0&&(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]=h.format(e)),t[e]):h.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 l(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;d(e.callbackNames()||[],function(){e[this].empty()})},addWidgetPrefix:function(e){var t=this.component.NAME;return"dx-"+t.slice(2).toLowerCase()+(e?"-"+e:"")},getWidgetContainerClass:function(){var e=this.component.NAME===f?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=p&&(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=r(),this.resizeCompleted=r()},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,i=e.get(0).offsetHeight;return i+t+n},isVisible:function(){return!0},getTemplate:function(e){return this.component._getTemplate(e)},render:function(e,t){var n=this._$element,o=this.isVisible();(n||e)&&(this._requireReady=!1,n||(n=this._$element=i("
").appendTo(e),this._$parent=e),n.toggleClass("dx-hidden",!o),o&&(this.component._optionCache={},this._renderCore(t),this.component._optionCache=void 0,this._afterRender(e),this.renderCompleted.fire()))},resize:function(){this.isResizing=!0,this._resizeCore(),this.resizeCompleted.fire(),this.isResizing=!1},focus:function(){o.trigger(this.element(),"focus")}}),x=1e6,w=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=c(e.name,i),o=c(t.name,i);return n<0&&(n=x),o<0&&(o=x),n-o}),d(n,function(){var e=this.controllers,t=this.name,n=this.views;e&&d(e,function(e,n){if(o[e])throw u.Error("E1001",t,e);if(!(n&&n.subclassOf&&n.subclassOf(_)))throw n.subclassOf(_),u.Error("E1002",t,e);o[e]=n}),n&&d(n,function(e,n){if(a[e])throw u.Error("E1003",t,e);if(!(n&&n.subclassOf&&n.subclassOf(v)))throw u.Error("E1004",t,e);a[e]=n})}),d(n,function(){var e=this.extenders;e&&(e.controllers&&d(e.controllers,function(e,t){o[e]&&(o[e]=o[e].inherit(t))}),e.views&&d(e.views,function(e,t){a[e]&&(a[e]=a[e].inherit(t))}))}),t.controllerTypes=o,t.viewTypes=a);var r=function(e,t,n){var i=n.publicMethods();i&&d(i,function(i,o){if(!n[o])throw u.Error("E1006",t,o);if(e[o])throw u.Error("E1005",o);e[o]=function(){return n[o].apply(n,arguments)}})},s=function(t){var n={};return d(t,function(t,i){var o=new i(e);o.name=t,r(e,t,o),n[t]=o}),n};e._controllers=s(o),e._views=s(a)},b=function(e,t,n){n=n||[],e._controllers&&d(e._controllers,function(){this[t]&&this[t].apply(this,n)}),e._views&&d(e._views,function(){this[t]&&this[t].apply(this,n)})};e.exports={modules:[],View:v,ViewController:m,Controller:_,registerModule:function(e,t){var n,i=this.modules;for(n=0;n").addClass(g).html(t.message).appendTo(o),this._validationMessage=this._createComponent(this._$validationMessage,h,{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._$validationMessage.toggleClass(_,"auto"===n).toggleClass(m,"always"===n),this._setValidationMessageMaxWidth()))},_setValidationMessageMaxWidth:function(){if(this._validationMessage){if(0===this._getValidationMessageTarget().outerWidth())return void this._validationMessage.option("maxWidth","100%");var e=Math.max(x,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(p,!!this.option("readOnly")),this.setAria("readonly",this.option("readOnly")||void 0)},_dispose:function(){var e=this.$element()[0];o.data(e,v,null),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"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(){this.option("value",null)}}).include(u);e.exports=w},function(e,t,n){var i=n(55),o=n(11).inArray,a=n(4).escapeRegExp,r=n(3).each,s=n(1).isPlainObject,l=n(257),c=n(29),d=n(17),u=4,h=10,p=["currency","fixedpoint","exponential","percent","decimal"],f={1:"K",2:"M",3:"B",4:"T"},g={largenumber:"auto",thousands:1,millions:2,billions:3,trillions:4},_=i({numericFormats:p,defaultLargeNumberFormatPostfixes:f,_parseNumberFormatString:function(e){var t,n={};if(e&&"string"==typeof e)return t=e.toLowerCase().split(" "),r(t,function(e,t){o(t,p)>-1?n.formatType=t:t in g&&(n.power=g[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||a0&&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,o;return"auto"===t.power&&(t.power=this._calculateNumberPower(e,1e3,0,u)),t.power&&(e=this._getNumberByPower(e,t.power,1e3)),i=this.defaultLargeNumberFormatPostfixes[t.power]||"",o=this._formatNumberCore(e,t.formatType,n),o=o.replace(/(\d|.$)(\D*)$/,"$1"+i+"$2")},_formatNumberExponential:function(e,t){var n,i=this._calculateNumberPower(e,h),o=this._getNumberByPower(e,i,h);return void 0===t.precision&&(t.precision=1),o.toFixed(t.precision||0)>=h&&(i++,o/=h),n=(i>=0?"+":"")+i.toString(),this._formatNumberCore(o,"fixedpoint",t)+"E"+n},_addZeroes:function(e,t){var n=Math.pow(10,t),i=e<0?"-":"";e=(Math.abs(e)*n>>>0)/n;for(var o=e.toString();o.length15?NaN:""===o?null:r*this.getSign(e,t)}}});e.exports=_},function(e,t,n){var i=n(2),o=n(4),a=n(1),r=n(198),s=n(39),l=n(3),c=n(0).extend,d=n(0).extendFromObject,u=n(22).toComparable,h=n(194),p=n(40),f=n(88),g=n(53),_=n(6).getWindow(),m="dx-selection-disabled",v="dx-datagrid-group-opened",x="dx-datagrid-group-closed",w="dx-datagrid-expand",b="nodata",y={ 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],i=this.calculateCellValue(n);return a.isDefined(i)?C(this.dataType)?(t=arguments[0],y[t](i)):"number"===this.dataType?(e=arguments[0],Math.floor(Number(i)/e)*e):void 0:null},n=function(e,t){return a.isFunction(e)&&a.isFunction(t)&&e.originalCallback&&t.originalCallback?e.originalCallback===t.originalCallback:e===t},C=function(e){return"date"===e||"datetime"===e};return{renderNoDataText:function(e){var t=this;if(e=e||this.element()){var n=t.addWidgetPrefix(b),o=e.find("."+n).last(),a=this._dataController.isEmpty(),r=this._dataController.isLoading();o.length||(o=i("").addClass(n).appendTo(e)),a&&!r?o.removeClass("dx-hidden").text(t._getNoDataText()):o.addClass("dx-hidden")}},renderLoadPanel:function(e,t,n){var o,a=this;a._loadPanel&&a._loadPanel.$element().remove(),o=a.option("loadPanel"),o&&("auto"===o.enabled?!n:o.enabled)?(o=c({shading:!1,message:o.text,position:function(){return e.height()>i(_).height()?{of:i(_),boundary:e,collision:"fit"}:{of:e}},container:t},o),a._loadPanel=a._createComponent(i("
").appendTo(t),h,o)):a._loadPanel=null},getIndexByKey:function(e,t,n){var i,r=-1;if(void 0!==e&&Array.isArray(t)){n=arguments.length<=2?"key":n;for(var s=0;s=0&&a.isFunction(n)&&n.columnIndex>=0?t.columnIndex===n.columnIndex:u(t)==u(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.format(e,t.format,t.precision)||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,precision:e.precision,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;i0?", ":"")+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,precision:e.precision,getDisplayFormat:function(t){return n?s.format(n,t,e.columnCaption):t},customizeText:e.customizeText})},normalizeSortingInfo:function(e){e=e||[];var t,n;for(t=p.normalizeSortingInfo(e),n=0;n0&&(l=e.eq(a-1).offset(),l.top").addClass(t.value?v:x).appendTo(o),n.setAria("label",t.value?n.localize("dxDataGrid-ariaCollapse"):n.localize("dxDataGrid-ariaExpand"),o))}}},isDateType:C}}()},function(e,t,n){function i(e){var t=A(e);return S[t]||S[I[t]||r()]}function o(e,t){return I[e+"."+t]||T[e+"."+t]||I[e]}function a(e,t,n){return o(e+t,n)||o(e,n)}function r(e,t){if(!arguments.length)return B||o(k.current())||w;var n=A(t);return B=(e&&e.platform?a(A(e.platform),e.version,n):o(A(e),n))||B,this}function s(e,t){var n=e.indexOf(t);return n>0?{name:e.substring(0,n),scheme:e.substring(n+1)}:null}function l(e,t){var n=s(e,".")||s(e,"-")||{name:e},i=n.name,o=n.scheme;o?(I[i]=I[i]||t,I[i+"."+o]=I[i+"-"+o]=t):I[i]=t}function c(e,t){var n=A(e&&e.name);n&&(e.isDefault&&(w=n),l(n,n),S[n]=D(!0,{},i(t),f(e)))}function d(e,t){l(A(e),A(t))}function u(e,t){T[e]=t}function h(e,t,n,i){var o=n?n[t]:i;void 0!==o&&void 0===e[t]&&(e[t]=o)}function p(e,t,n,i){var o=n?n[t]:i;void 0!==o&&(e[t]=D(!0,{},o,e[t]))}function f(e){return e=D(!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:{},map:{background:{}},treeMap:{tile:{selectionStyle:{border:{}}},group:{border:{},selectionStyle:{border:{}},label:{font:{}}}},rangeSelector:{scale:{tick:{},minorTick:{},label:{font:{}}},chart:{}},sparkline:{},bullet:{}},e),h(e.loadingIndicator,"backgroundColor",e),h(e.chart.commonSeriesSettings.candlestick,"innerColor",null,e.backgroundColor),h(e.map.background,"color",null,e.backgroundColor),h(e.title.font,"color",null,e.primaryTitleColor),p(e.title,"subtitle",null,e.title),h(e.legend.font,"color",null,e.secondaryTitleColor),h(e.legend.border,"color",null,e.axisColor),g(e),E(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector","sparkline","bullet"],function(t,n){h(e[n],"redrawOnResize",e),h(e[n],"containerBackgroundColor",null,e.backgroundColor),p(e[n],"tooltip",e)}),E(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector"],function(t,n){p(e[n],"loadingIndicator",e),p(e[n],"export",e),p(e[n],"legend",e),p(e[n],"title",e)}),E(["chart","pie","polar"],function(t,n){p(e,n,null,e["chart:common"])}),E(["chart","polar"],function(t,n){e[n]=e[n]||{},p(e[n],"commonAxisSettings",null,e["chart:common:axis"])}),p(e.rangeSelector.chart,"commonSeriesSettings",e.chart),p(e.rangeSelector.chart,"dataPrepareSettings",e.chart),h(e.treeMap.group.border,"color",null,e.axisColor),h(e.treeMap.tile.selectionStyle.border,"color",null,e.primaryTitleColor),h(e.treeMap.group.selectionStyle.border,"color",null,e.primaryTitleColor),h(e.map.legend,"backgroundColor",e),_(e),e}function g(e){var t=e["chart:common:axis"],n="color";E([t,t.grid,t.minorGrid,t.tick,t.minorTick],function(t,i){h(i,n,null,e.axisColor)}),h(t.title.font,n,null,e.secondaryTitleColor),h(t.label.font,n,null,e.axisLabelColor),h(e.gauge.scale.label.font,n,null,e.axisLabelColor),h(e.gauge.scale.tick,n,null,e.backgroundColor),h(e.gauge.scale.minorTick,n,null,e.backgroundColor),h(e.rangeSelector.scale.label.font,n,null,e.axisLabelColor)}function _(e){var t=e.map;E(["area","line","marker"],function(e,n){p(t,"layer:"+n,null,t.layer)}),E(["dot","bubble","pie","image"],function(e,n){p(t,"layer:marker:"+n,null,t["layer:marker"])})}function m(e){var t=++O;e._cache=t,M[t]=e}function v(e){delete M[e._cache]}function x(){return E(M,function(){this.refresh()}),this}var w,b=n(0).extend,y=n(3).each,C=n(16),k=n(20),S={},I={},T={},D=b,E=y,A=C.normalizeEnum,B=null,O=0,M={};D(t,{currentTheme:r,registerTheme:c,getTheme:i,registerThemeAlias:d,registerThemeSchemeAlias:u,refreshTheme:x,addCacheItem:m,removeCacheItem:v})},function(e,t,n){var i=n(12),o=n(55),a=n(6),r=n(66),s=[],l=function(){return"complete"===i.getReadyState()||"loading"!==i.getReadyState()&&!i.getDocumentElement().doScroll},c=r(function(){var e=i.listen(i.getDocument(),"DOMContentLoaded",function(){d.fire(),e()})}),d={add:function(e){var t=a.hasWindow();t&&l()?e():(s.push(e),t&&c())},fire:function(){s.forEach(function(e){e()})}};e.exports=o(d)},function(e,t,n){function i(){this._counter=-1,this._deferreds={}}function o(e){return"pending"===e.state()}function a(e,t){function n(){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 v(t)}function i(e){var t=e.type;return delete e.type,_.create(t,e)}function o(e){return new v({load:function(){return p.sendRequest({url:e,dataType:"json"})},loadMode:t&&t.fromUrlLoadMode})}var a;return"string"==typeof e&&(e={paginate:!1,store:o(e)}),void 0===e&&(e=[]),e=Array.isArray(e)||e instanceof _?{store:e}:d({},e),void 0===e.store&&(e.store=[]),a=e.store,"load"in e?a=n():Array.isArray(a)?a=new m(a):f.isPlainObject(a)&&(a=i(d({},a))),e.store=a,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?o(e,n):h.map(e,t):e}function o(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})}return i(e,n?g.normalizeSortingInfo(n).length:0)}var c=n(10),d=n(0).extend,u=n(4),h=n(3),p=n(72),f=n(1),g=n(40),_=n(91),m=n(79),v=n(158),x=n(52),w=n(35).errors,b=n(11),y=n(175),C=n(7),k=C.when,S=C.Deferred,I=f.isString,T=f.isNumeric,D=f.isBoolean,E=f.isDefined,A="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(A),!0)},i.prototype.cancelAll=function(){for(;this._counter>-1;)this.cancel(this._counter),this._counter--};var B=c.inherit({ctor:function(e){var t=this;e=a(e),this._store=e.store,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,h.each(["onChanged","onLoadError","onLoadingChanged","onCustomizeLoadResult","onCustomizeStoreLoadOptions"],function(n,i){i in e&&t.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,E(this._paginate)||(this._paginate=!this.group()),this._isLastPage=!this._paginate},dispose:function(){this._disposeEvents(),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 T(e)?(this._pageIndex=e,void(this._isLastPage=!this._paginate)):this._pageIndex},paginate:function(e){return D(e)?void(this._paginate!==e&&(this._paginate=e,this.pageIndex(0))):this._paginate},pageSize:function(e){return T(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 D(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 I(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 y.create()},_changeLoadingCount:function(e){var t,n=this.isLoading();this._loadingCount+=e,t=this.isLoading(),n^t&&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]!==A&&t.fireEvent("loadError",arguments)})},_scheduleChangedCallbacks:function(e){var t=this;e.done(function(){t.fireEvent("changed")})},loadSingle:function(e,t){function n(){return r instanceof v&&!r._byKeyViaLoad()}var i=this,o=new S,a=this.key(),r=this._store,s=this._createStoreLoadOptions(),l=function(e){!E(e)||b.isEmpty(e)?o.reject(new w.Error("E4009")):(Array.isArray(e)||(e=[e]),o.resolve(i._applyMapFunction(e)[0]))};return this._scheduleFailCallbacks(o),arguments.length<2&&(t=e,e=a),delete s.skip,delete s.group,delete s.refresh,delete s.pageIndex,delete s.searchString,function(){return e===a||n()?r.byKey(t,s):(s.take=1,s.filter=s.filter?[s.filter,[e,t]]:[e,t],r.load(s))}().fail(o.reject).done(l),o.promise()},load:function(){function e(){if(!n._disposed&&o(i))return n._loadFromStore(t,i)}var t,n=this,i=new S;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=u.executeAsync(e,t.delay):e(),i.promise()}),i.promise({operationId:t.operationId})},_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 v&&e.clearRawDataCache(),this._init(),this.load()},cancel:function(e){return this._operationManager.cancel(e)},_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=d({},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){function r(){var o;n&&!Array.isArray(n)&&n.data&&(a=n,n=n.data),Array.isArray(n)||(n=[n]),o=d({data:n,extra:a},e),i.fireEvent("customizeLoadResult",[o]),k(o.data).done(function(e){o.data=e,i._processStoreLoadResult(o,t)}).fail(t.reject)}i._disposed||o(t)&&r()}var i=this;return e.data?(new S).resolve(e.data).done(n):this.store().load(e.storeLoadOptions).done(n).fail(t.reject)},_processStoreLoadResult:function(e,t){function n(){return o._isLoaded=!0,o._totalCount=isFinite(r.totalCount)?r.totalCount:-1,t.resolve(a,r)}function i(){o.store().totalCount(s).done(function(e){r.totalCount=e,n()}).fail(t.reject)}var o=this,a=e.data,r=e.extra,s=e.storeLoadOptions;o._disposed||(a=o._applyPostProcessFunction(o._applyMapFunction(a)),f.isPlainObject(r)||(r={}),o._items=a,(!a.length||!o._paginate||o._pageSize&&a.lengtht?1:0}),o=0;o=0)&&a(t,n)},focused:function(e){var t=i(e).get(0);return o.getActiveElement()===t}}},function(e,t){e.exports=window.ko},function(e,t,n){var i=n(2),o=n(5),a=n(6),r=n(0).extend,s=n(29),l=n(17),c=n(13).getPublicElement,d=n(121),u=n(4),h=n(3).each,p=n(1),f=n(11).inArray,g=n(100),_=n(37),m=n(115),v=m.abstract,x="dx-rtl",w="dx-visibility-change-handler",b="VisibilityChange",y=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){var t=this.constructor._classCustomRules&&this._convertRulesToOptions(this.constructor._classCustomRules).hasOwnProperty(e);return!t&&this.callBase(e)},_attachWindowResizeCallback:function(){if(this._isDimensionChangeSupported()){var e=this._windowResizeCallBack=this._dimensionChanged.bind(this);d.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(w)},_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+b;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+b,n="dxshown."+this.NAME+b;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:u.noop,_modelByElement:function(){var e=this.option("modelByElement")||u.noop;return e(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()&&d.remove(this._windowResizeCallBack)},_toggleRTLDirection:function(e){this.$element().toggleClass(x,e)},_createComponent:function(e,t,n){var o=this;n=n||{};var a=u.grep(["rtlEnabled","disabled"],function(e){return!(e in n)}),s=o.option("nestedComponentOptions")||u.noop;o._extendConfig(n,r({integrationOptions:this.option("integrationOptions"),rtlEnabled:this.option("rtlEnabled"),disabled:this.option("disabled")},s(this)));var l;if(p.isString(t)){var c=i(e)[t](n);l=c[t]("instance")}else e&&(l=t.getInstance(e),l?l.option(n):l=new t(e,n));if(l){var d=function(e){f(e.name,a)>=0&&l.option(e.name,e.value)};o.on("optionChanged",d),l.on("disposing",function(){o.off("optionChanged",d)})}return l},_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":case"elementAttr":this._invalidate();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-")&&i.indexOf("dx-")===-1&&"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 c(this.$element())},dispose:function(){var e=this.$element().get(0);_.cleanDataRecursive(e,!0),e.textContent="",this._removeAttributes(e),this._removeClasses(e)}});y.getInstance=function(e){return g.getInstanceByElement(i(e),this)},y.defaultOptions=function(e){this._classCustomRules=this._classCustomRules||[],this._classCustomRules.push(e)},e.exports=y},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;as)return 1}return 0}},function(e,t,n){var i=n(2),o=n(6).getWindow(),a=n(24),r=n(36).camelize,s=n(4).noop,l=n(13).getPublicElement,c=n(3).each,d=n(1).isDefined,u=n(11).inArray,h=n(0).extend,p=n(15),f=n(14),g=n(8),_=n(38),m=n(20),v=n(70),x=n(122),w=n(13),b=n(6);n(265);var y="dx-popup",C="dx-popup-wrapper",k="dx-popup-fullscreen",S="dx-popup-fullscreen-width",I="dx-popup-normal",T="dx-popup-content",D="dx-popup-draggable",E="dx-popup-title",A="dx-closebutton",B="dx-popup-bottom",O="dx-template-wrapper",M=["cancel","clear","done"],P="default",R="normal",V="dx-button-flat",F=function(e){var t=f.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}},L=v.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})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return e.phone&&m.isWin8()},options:{position:{my:"top center",at:"top center",offset:"0 0"}}},{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"===f.real().platform&&"generic"===e.platform},options:{dragEnabled:!0}},{device:function(){return"desktop"===f.real().deviceType&&!f.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return m.isMaterial()},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(){var e={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}}},t={show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}};return this.option("fullScreen")?e:t},_init:function(){this.callBase(),this.$element().addClass(y),this._wrapper().addClass(C),this._$popupContent=this._$content.wrapInner(i("
").addClass(T)).children().eq(0)},_render:function(){var e=this.option("fullScreen");this._toggleFullScreenClass(e),this.callBase()},_toggleFullScreenClass:function(e){this._$content.toggleClass(k,e).toggleClass(I,!e)},_initTemplates:function(){this.callBase(),this._defaultTemplates.title=new x(this),this._defaultTemplates.bottom=new x(this)},_renderContentImpl:function(){this.callBase(),this._renderTitle(),this._renderBottom()},_renderTitle:function(){var e=this._getToolbarItems("top"),t=this.option("title"),n=this.option("showTitle");if(n&&t&&e.unshift({location:f.current().ios?"center":"before",text:t}),n||e.length>0){this._$title&&this._$title.remove();var o=i("
").addClass(E).insertBefore(this.$content());this._$title=this._renderTemplateByType("titleTemplate",e,o).addClass(E),this._renderDrag(),this._executeTitleRenderAction(this._$title)}else this._$title&&this._$title.detach()},_renderTemplateByType:function(e,t,n){var o=this._getTemplateByOption(e),a=o instanceof x;if(a){var r={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 c=i(o.render({container:l(n)}));return c.hasClass(O)&&(n.replaceWith(c),n=c),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:["designMode","disabled","readOnly"]})},_getCloseButton:function(){return{toolbar:"top",location:"after",template:this._getCloseButtonRenderer()}},_getCloseButtonRenderer:function(){return function(e,t,n){var o=i("
").addClass(A);this._createComponent(o,_,{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=f.current().platform,o=0;return c(t,function(t,a){var r=d(a.shortcut),s=r?F(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},_getToolbarItemByAlias:function(e){var t=this,n=e.shortcut;if(u(n,M)<0)return!1;var o=h({text:p.format(r(n,!0)),onClick:this._createToolbarItemAction(e.onClick),integrationOptions:{},type:t.option("useDefaultToolbarButtons")?P:R},e.options||{}),a=y+"-"+n;return t.option("useFlatToolbarButtons")&&(a+=" "+V),this._toolbarItemClasses.push(a),{template:function(e,n,r){var s=i("
").addClass(a).appendTo(r);t._createComponent(s,_,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("
").addClass(B).insertAfter(this.$content());this._$bottom=this._renderTemplateByType("bottomTemplate",e,t).addClass(B),this._toggleClasses()}else this._$bottom&&this._$bottom.detach()},_toggleClasses:function(){var e=M;c(e,function(e,t){var n=y+"-"+t;u(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._$title},_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(D,this.option("dragEnabled"))},_renderResize:function(){this.callBase(),this._resizable.option("onResize",function(){this._setContentHeight(),this._actions.onResize(arguments)}.bind(this))},_setContentHeight:function(){if((this.option("forceApplyBindings")||s)(),!this._disallowUpdateContentHeight()){var e=this._$content.outerHeight()-this._$content.height(),t=this._$content.get(0).getBoundingClientRect().height-e;this._$title&&this._$title.is(":visible")&&(t-=this._$title.get(0).getBoundingClientRect().height||0),this._$bottom&&this._$bottom.is(":visible")&&(t-=this._$bottom.get(0).getBoundingClientRect().height||0),this._$popupContent.css("height",t<0?0:t)}},_disallowUpdateContentHeight:function(){var e="auto"===this._$content.get(0).style.height,t="none"!==this._$content.css("maxHeight"),n=parseInt(this._$content.css("minHeight"))>0;return e&&!(t||n)},_renderDimensions:function(){this.option("fullScreen")?this._$content.css({width:"100%",height:"100%"}):this.callBase.apply(this,arguments),b.hasWindow()&&this._renderFullscreenWidthClass()},_renderFullscreenWidthClass:function(){this.overlayContent().toggleClass(S,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=e.fullName.search(".options")!==-1;this._renderTitle(),this._renderBottom(),t||this._renderGeometry();break;case"dragEnabled":this._renderDrag();break;case"fullScreen":this._toggleFullScreenClass(e.value),this._renderGeometry(),w.triggerResizeEvent(this._$content);break;case"showCloseButton":this._renderTitle();break;default:this.callBase(e)}},bottomToolbar:function(){return this._$bottom},$content:function(){return this._$popupContent},content:function(){return l(this._$popupContent)},overlayContent:function(){return this._$content}});g("dxPopup",L),e.exports=L},function(e,t,n){var i=n(3).each,o=n(107),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){var i=n(102),o=n(17);e.exports=i(o.ERROR_MESSAGES,{E3001:"Routing rule is not found for the '{0}' URI.",E3002:"The passed object cannot be formatted into a URI string by the application's router. An appropriate route should be registered.",E3003:"Unable to navigate. Application is being initialized.",E3004:"Cannot execute the command: {0}.",E3005:"The '{0}' command {1} is not registered in the application's command mapping. Go to http://dxpr.es/1bTjfj1 for more details.",E3006:"Unknown navigation target: '{0}'. Use the 'current', 'back' or 'blank' values.",E3007:"Error while restoring the application state. The state has been cleared. Refresh the page.",E3008:"Unable to go back.",E3009:"Unable to go forward.",E3010:"The command's 'id' option should be specified.\r\nProcessed markup: {0}\n",E3011:"Layout controller cannot be resolved. There are no appropriate layout controllers for the current context. Check browser console for details.",E3012:"Layout controller cannot be resolved. Two or more layout controllers suit the current context. Check browser console for details.",E3013:"The '{0}' template with the '{1}' name is not found. Make sure the case is correct in the specified view name and the template fits the current context.",E3014:"All the children of the dxView element should be either of the dxCommand or dxContent type.\r\nProcessed markup: {0}",E3015:"The 'exec' method should be called before the 'finalize' method.",E3016:"Unknown transition type '{0}'.",E3018:"Unable to parse options.\nMessage: {0};\nOptions value: {1}.",E3019:"View templates should be updated according to the 13.1 changes. Go to http://dxpr.es/15ikrJA for more details.",E3020:"Concurrent templates are found:\r\n{0}Target device:\r\n{1}.",E3021:"Remote template cannot be loaded.\r\nUrl:{0}\r\nError:{1}.",E3022:"Cannot initialize the HtmlApplication component.",E3023:"Navigation item is not found",E3024:"Layout controller is not initialized",W3001:"A view with the '{0}' key doesn't exist.",W3002:"A view with the '{0}' key has already been released.",W3003:"Layout resolving context:\n{0}\nAvailable layout controller registrations:\n{1}\n",W3004:"Layout resolving context:\n{0}\nConcurent layout controller registrations for the context:\n{1}\n",W3005:'Direct hash-based navigation is detected in a mobile application. Use data-bind="dxAction: url" instead of href="#url" to avoid navigation issues.\nFound markup:\n{0}\n'})},function(e,t,n){var i=n(62),o=n(13),a=n(8),r=n(179).MarkupComponent;n(109);var s=r.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null,title:null})},ctor:function(){this._id=o.uniqueId(),this.callBase.apply(this,arguments)},_render:function(){this.callBase(),this.element().addClass("dx-view"),this.element().attr("dx-data-template-id",this._id)},getId:function(){return this._id}}),l=r.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null})},_render:function(){this.callBase(),this.element().addClass("dx-layout")}}),c=r.inherit({_setDefaultOptions:function(){this.callBase(),this.option({viewName:null})},_render:function(){this.callBase(),this.element().addClass("dx-view-placeholder")}}),d=function(e,t,n,i){"absolute"===i?e.addClass("dx-transition-absolute"):e.addClass("dx-transition-static"),e.addClass("dx-transition").addClass("dx-transition-"+n).addClass("dx-transition-"+t).attr("data-dx-transition-type",t).attr("data-dx-transition-name",n)},u=function(e){e.addClass("dx-transition-inner-wrapper")},h=r.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null,type:void 0,animation:"slide"})},_render:function(){this.callBase();var e=this.element();d(e,this.option("type")||this.option("animation"),this.option("name"),"absolute"),e.wrapInner("
"),u(e.children()),this.option("type")&&i.log("W0003","dxTransition","type","15.1","Use the 'animation' property instead")},_clean:function(){this.callBase(),this.element().empty()}}),p=r.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null,transition:void 0,animation:"none",contentCssPosition:"absolute"})},_render:function(){this.callBase();var e=this.element();e.addClass("dx-content-placeholder").addClass("dx-content-placeholder-"+this.option("name")),e.attr("data-dx-content-placeholder-name",this.option("name")),d(e,this.option("transition")||this.option("animation"),this.option("name"),this.option("contentCssPosition")),this.option("transition")&&i.log("W0003","dxContentPlaceholder","transition","15.1","Use the 'animation' property instead")}}),f=r.inherit({_setDefaultOptions:function(){this.callBase(),this.option({targetPlaceholder:null})},_optionChanged:function(){this._refresh()},_clean:function(){this.callBase(),this.element().removeClass(this._currentClass)},_render:function(){this.callBase();var e=this.element();e.addClass("dx-content"),this._currentClass="dx-content-"+this.option("targetPlaceholder"),e.attr("data-dx-target-placeholder-id",this.option("targetPlaceholder")),e.addClass(this._currentClass),u(e)}});a("dxView",s),a("dxLayout",l),a("dxViewPlaceholder",c),a("dxContentPlaceholder",p),a("dxTransition",h),a("dxContent",f),t.dxView=s,t.dxLayout=l,t.dxViewPlaceholder=c,t.dxContentPlaceholder=p,t.dxTransition=h,t.dxContent=f},function(e,t){e.exports=window.Globalize},function(e,t,n){var i=n(2),o=n(75),a=n(5),r=n(128),s=n(3),l=n(1).isPrimitive,c=function(){var e=function(e,i,o,a,r){var s,c;return s=t(e,i,function(e){return c&&c(),l(e)?void r(e):void(c=n(e,i,o,a,function(e){r(e)}))}),function(){c&&c(),s&&s()}},t=function(e,t,n){return t(function(){return e},n)},n=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 e}();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=c(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=function(e){var t,n=function(){return t=e.apply(this,arguments),n=function(){return t},t};return function(){return n.apply(this,arguments)}};e.exports=i},function(e,t,n){var i=n(2),o="dx-inkripple",a="dx-inkripple-wave",r="dx-inkripple-showing",s="dx-inkripple-hiding",l=2,c=4e3,d=300,u=1e3,h=0,p=function(e){e=e||{},void 0===e.useHoldAnimation&&(e.useHoldAnimation=!0);var t={waveSizeCoefficient:e.waveSizeCoefficient||l,isCentered:e.isCentered||!1,wavesNumber:e.wavesNumber||1,durations:x(e.useHoldAnimation)};return{showWave:m.bind(this,t),hideWave:b.bind(this,t)}},f=function(e){var t=e.children("."+o);return 0===t.length&&(t=i("
").addClass(o).appendTo(e)),t},g=function(e,t){for(var n=f(e),o=n.children("."+a).toArray(),r=o.length;r").appendTo(n).addClass(a);o.push(s[0])}return i(o)},_=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(c,parseInt(s*e.waveSizeCoefficient));if(e.isCentered)n=(a-l)/2,i=(r-l)/2;else{var d=t.event,u=t.element.offset(),h=d.pageX-u.left,p=d.pageY-u.top;n=h-l/2,i=p-l/2}return{left:n,top:i,height:l,width:l}},m=function(e,t){var n=g(t.element,e.wavesNumber).eq(t.wave||h);e.hidingTimeout&&clearTimeout(e.hidingTimeout),w(n),n.css(_(e,t)),e.showingTimeout=setTimeout(v.bind(this,e,n),0)},v=function(e,t){var n=e.durations.showingScale+"ms";t.addClass(r).css("transitionDuration",n)},x=function(e){return{showingScale:e?u:d,hidingScale:d,hidingOpacity:d}},w=function(e){e.removeClass(s).css("transitionDuration","")},b=function(e,t){e.showingTimeout&&clearTimeout(e.showingTimeout);var n=g(t.element,t.wavesNumber).eq(t.wave||h),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(w.bind(this,n),a)};e.exports={render:p}},function(e,t,n){var i=n(29),o=n(219).getFormatter,a=n(221),r=n(1),s=r.isString,l=r.isDate,c=r.isNumeric,d="number",u="yyyy/MM/dd",h="yyyy/MM/dd HH:mm:ss",p=/^(\d{4,})(-)?(\d{2})(-)?(\d{2})(?:T(\d{2})(:)?(\d{2})?(:)?(\d{2}(?:\.(\d{1,3})\d*)?)?)?(Z|([\+\-])(\d{2})(:)?(\d{2})?)?$/,f=/^(\d{2}):(\d{2})(:(\d{2}))?$/,g=["","yyyy","","MM","","dd","THH","","mm","","ss",".SSS"],_=3,m=function(e,t){var n,i;return s(e)&&!t&&(n=v(e)),n||(i=!l(e)&&Date.parse(e),n=c(i)?new Date(i):e),n},v=function(e){var t=e.match(p),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,c=n(t[8])-s,d=n(t[10]),u=function(e){return e=e||"",n(e)*Math.pow(10,_-e.length)},h=u(t[11]);return t[12]?new Date(Date.UTC(i,o,a,l,c,d,h)):new Date(i,o,a,l,c,d,h)}if(t=e.match(f))return new Date(0,0,0,n(t[1]),n(t[2]),n(t[4]))},x=function(e,t){var n=e.match(p),i="";{if(n){for(var o=1;o=0?h:u}return e?null:void 0};e.exports={dateParser:m,deserializeDate:w,serializeDate:b,getDateSerializationFormat:y}},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)}function t(t,n){e(null!==t&&void 0!==t,n)}return{assert:e,assertParam:t}}();t.logger=r,t.debug=s},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(6),s=n(50).add,l=r.getWindow(),c=r.getNavigator(),d=n(5),u=n(31),h=n(24),p=n(59).compare,f=n(73),g=n(0).extend,_=n(11).inArray,m=n(13).getPublicElement,v=f.changeCallback,x=n(135).hideCallback,w=n(77),b=n(34).fitIntoRange,y=n(13),C=n(4).noop,k=n(1),S=n(3).each,I=n(14),T=n(30),D=n(8),E=n(28),A=n(155),B=n(56),O=n(78),M=n(9),P=n(25),R=n(205),V=n(122),F=n(7).Deferred,L="dx-overlay",H="dx-overlay-wrapper",z="dx-overlay-content",N="dx-overlay-shader",$="dx-overlay-modal",W="dx-state-invisible",G="content",q="dx-rtl",j=["onShowing","onShown","onHiding","onHidden","onPositioning","onPositioned","onResizeStart","onResize","onResizeEnd"],K=1500,U=[],Y="dx-state-disabled",X=9,Z={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"}},Q=I.real(),J=Q.version,ee=T.mozilla&&"desktop"===Q.deviceType,te="ios"===Q.platform,ne=te&&p(J,[7,1])<0,ie="android"===Q.platform&&0===p(J,[4,0],2)&&c.userAgent.indexOf("Chrome")===-1,oe=function(e){if((ne||ee)&&e.width(),ie){var t=e.parents(),n=t.is(".dx-scrollable-native");n||(t.css("backfaceVisibility","hidden"),t.css("backfaceVisibility"),t.css("backfaceVisibility","visible"))}},ae=function(e){return e&&o(e.target||e)};s(function(){d.subscribeGlobal(a.getDocument(),P.down,function(e){for(var t=U.length-1;t>=0;t--)if(!U[t]._proxiedDocumentDownHandler(e))return})});var re=E.inherit({_supportedKeys:function(){var e=5,t=function(e,t,n){if(this.option("dragEnabled")){n.preventDefault(),n.stopPropagation();var i=this._allowedOffsets(),o={top:b(e,-i.top,i.bottom),left:b(t,-i.left,i.right)};this._changePosition(o)}};return g(this.callBase(),{escape:function(){this.hide()},upArrow:t.bind(this,-e,0),downArrow:t.bind(this,e,0),leftArrow:t.bind(this,0,-e),rightArrow:t.bind(this,0,e)})},_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,target:void 0,container:void 0,hideTopOverlayHandler:void 0,closeOnTargetScroll:!1,onPositioned:null,boundaryOffset:{h:0,v:0},propagateOutsideClick:!1,_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 G},_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("
").addClass(H),this._$content=o("
").addClass(z);var e=this.$element();this._$wrapper.addClass(e.attr("class")),e.addClass(L),this._$wrapper.attr("data-bind","dxControlsDescendantBindings: true"),d.on(this._$wrapper,"MSPointerDown",C),d.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)},_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(j,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");if(k.isFunction(t)&&(t=t(e)),t){var n=this._$content,i=!n.is(e.target)&&!y.contains(n.get(0),e.target)&&o(e.target).closest(l.document).length;i&&(this.option("shading")&&e.preventDefault(),this.hide())}return this.option("propagateOutsideClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.content=new V(this)},_isTopOverlay:function(){for(var e=this._overlayStack(),t=e.length-1;t>=0;t--){var n=e[t]._findTabbableElements();if(n.length)return e[t]===this}return!1},_overlayStack:function(){return U},_zIndexInitValue:function(){return K},_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 F;if(this._parentHidden=this._isParentHidden(),t.done(function(){delete e._parentHidden}),this._parentHidden)return t.resolve();if(this._currentVisible)return(new F).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")&&d.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._asyncShowTimeout=setTimeout(r):r()}return t.promise()},_normalizeAnimation:function(e,t){return e&&(e=g({type:"slide"},e),e[t]&&"object"===i(e[t])&&g(e[t],{position:this._position})),e},_hide:function(){if(!this._currentVisible)return(new F).resolve().promise();this._currentVisible=!1;var e=this,t=new F,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._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,u.animate(this._$content,g({},e,{start:n,complete:t}))):t()},_stopAnimation:function(){u.stop(this._$content,!0)},_renderVisibility:function(e){e&&this._isParentHidden()||(this._currentVisible=e,this._stopAnimation(),clearTimeout(this._asyncShowTimeout),e||y.triggerHidingEvent(this._$content),this._toggleVisibility(e),this._$content.toggleClass(W,!e),this._updateZIndexStackPosition(e),e?(this._renderContent(),this._actions.onShowing(),this._moveToContainer(),this._renderGeometry(),y.triggerShownEvent(this._$content),y.triggerResizeEvent(this._$content)):this._moveFromContainer(),this._toggleShading(e),this._toggleSubscriptions(e))},_updateZIndexStackPosition:function(e){var t=this._overlayStack(),n=_(this,t);if(e){if(n===-1){var i=t.length;this._zIndex=(i?t[i-1]._zIndex:this._zIndexInitValue())+1,t.push(this)}this._$wrapper.css("zIndex",this._zIndex),this._$content.css("zIndex",this._zIndex)}else n!==-1&&t.splice(n,1)},_toggleShading:function(e){this._$wrapper.toggleClass($,this.option("shading")&&!this.option("container")),this._$wrapper.toggleClass(N,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=M.addNamespace("keydown",this.NAME);e?d.on(a.getDocument(),t,this._proxiedTabTerminatorHandler):d.off(a.getDocument(),t,this._proxiedTabTerminatorHandler)},_findTabbableElements:function(){return this._$wrapper.find("*").filter(B.tabbable)},_tabKeyHandler:function(e){if(e.keyCode===X&&this._isTopOverlay()){var t=this._findTabbableElements(),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=_(e.target,t)===-1;if(o||a||r||s){e.preventDefault();var l=e.shiftKey?i:n;d.trigger(l,"focusin"),d.trigger(l,"focus")}}},_toggleSubscriptions:function(e){r.hasWindow()&&(this._toggleHideTopOverlayCallback(e),this._toggleParentsScrollSubscription(e))},_toggleHideTopOverlayCallback:function(e){this._hideTopOverlayHandler&&(e&&this.option("closeOnBackButton")?x.add(this._hideTopOverlayHandler):x.remove(this._hideTopOverlayHandler))},_toggleParentsScrollSubscription:function(e){if(this._position){var t=this._position.of||o(),n=this.option("closeOnTargetScroll"),i=ae(t).parents(),a=M.addNamespace("scroll",this.NAME);"generic"===I.real().platform&&(i=i.add(l)),this._proxiedTargetParentsScrollHandler=this._proxiedTargetParentsScrollHandler||function(e){this._targetParentsScrollHandler(e)}.bind(this),d.off(o().add(this._$prevTargetParents),a,this._proxiedTargetParentsScrollHandler),e&&n&&(d.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"),t=this.option("visible")&&this._isParentHidden();return t?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(){var e=o(this);if("none"===e.css("display"))return t=!0,!1}),t||!a.getBody().contains(e.get(0))},_renderContentImpl:function(){var e=this.$element();this._$content.appendTo(e);var t=this.option("contentTemplate"),n=this._getTemplate(t),i=this._getAnonymousTemplateName()===t;n&&n.render({container:m(this.$content()),noModel:!0,transclude:i}),this._renderDrag(),this._renderResize(),this._renderScrollTerminator()},_renderDrag:function(){var e=this._getDragTarget();if(e){var t=M.addNamespace(O.start,this.NAME),n=M.addNamespace(O.move,this.NAME);d.off(e,t),d.off(e,n),this.option("dragEnabled")&&(d.on(e,t,this._dragStartHandler.bind(this)),d.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=M.addNamespace(O.move,this.NAME);d.off(e,t),d.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(){var e=f.originalViewPort().get(0)||this.option("container"),t=e?this._$container:o(l);return t},_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(),c=Math.max(o(l).outerHeight(),s),d=Math.max(o(l).outerWidth(),r);s=c,r=d}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}},_fireContentReadyAction:function(){this.option("visible")&&this._moveToContainer(),this.callBase.apply(this,arguments)},_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();this._$container&&this._$container[0]!==e.parent()[0]?this._$wrapper.appendTo(this._$container):this._$wrapper.appendTo(e)},_renderGeometry:function(){this.option("visible")&&r.hasWindow()&&this._renderGeometryImpl()},_renderGeometryImpl:function(){this._stopAnimation(),this._normalizePosition(),this._renderShading(),this._renderDimensions();var e=this._renderPosition();this._actions.onPositioned({position:e})},_renderShading:function(){var e=this._$wrapper,t=this._getContainer();e.css("position",this._isWindow(t)&&!te?"fixed":"absolute"),this._renderShadingDimensions(),this._renderShadingPosition()},_renderShadingPosition:function(){if(this.option("shading")){var e=this._getContainer();w.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 ae(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,Z),t=w.setup(this._$content,e);return oe(this._$content),this._actions.onPositioning(),t}var n=this._allowedOffsets();this._changePosition({ top:b(0,-n.top,n.bottom),left:b(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,n=o(t.target);n.is(this._$content)&&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._cleanFocusState()},_dispose:function(){u.stop(this._$content,!1),clearTimeout(this._deferShowTimer),this._toggleViewPortSubscription(!1),this._toggleSubscriptions(!1),this._updateZIndexStackPosition(!1),this._toggleTabTerminator(!1),this._actions=null,this.callBase(),this._$wrapper.remove(),this._$content.remove()},_toggleDisabledState:function(e){this.callBase.apply(this,arguments),this._$content.toggleClass(Y,Boolean(e))},_toggleRTLDirection:function(e){this._$content.toggleClass(q,e)},_optionChanged:function(e){var t=e.value;if(_(e.name,j)>-1)return void this._initActions();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"position":case"boundaryOffset":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"deferRendering":case"contentTemplate":this._contentAlreadyRendered=!1,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,e===this.option("visible"))return(new F).resolve().promise();var t=new F;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()}});re.baseZIndex=function(e){K=e},D("dxOverlay",re),e.exports=re},function(e,t,n){var i=n(69).logger,o=n(55);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){var i=n(7).Deferred,o=n(12),a=n(314),r=n(6),s=r.getWindow(),l=n(0).extendFromObject,c=n(1).isDefined,d=n(99),u=n(55),h="success",p="error",f="timeout",g="nocontent",_="parsererror",m=function(e){return 200<=e&&e<300},v=function(e){return 204!==e},x=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("&")},w=function(e){var t=o.createElement("script");for(var n in e)t[n]=e[n];return t},b=function(e){e.parentNode.removeChild(e)},y=function(e){return o.getHead().appendChild(e)},C=function(e){var t=w({text:e});y(t),b(t)},k=function(e){var t=w({src:e});return new d(function(e,n){var i={load:e,error:n},a=function(e){i[e.type](),b(t)};for(var r in i)o.listen(t,r,a);y(t)})},S=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["*"]},I=function(e){var t;return e.data&&!e.upload&&"GET"!==M(e)&&(t="application/x-www-form-urlencoded;charset=utf-8"),e.contentType||t},T=function(e){return e.responseType&&"text"!==e.responseType||"string"!=typeof e.responseText?e.response:e.responseText},D=function(e,t,n){var i=T(t);switch(n){case"jsonp":C(i);break;case"script":C(i),e.resolve(i,h,t);break;case"json":try{e.resolve(JSON.parse(i),h,t)}catch(n){e.reject(t,_,n)}break;default:e.resolve(i,h,t)}},E=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},A=function(e,t){return e&&setTimeout(function(){t.customStatus=f,t.abort()},e)},B=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}},O=function(e,t){var n=e.data,i="string"==typeof n,o=e.url||s.location.href;return i||e.cache||(n=n||{},n._=Date.now()),n&&!e.upload&&(i||(n=x(n)),"GET"===M(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}},M=function(e){return(e.method||"GET").toUpperCase()},P=function(e){var t=e.headers||{};return t["Content-Type"]=t["Content-Type"]||I(e),t.Accept=t.Accept||S(e),e.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t},R=function(e){var t,n=a.getXhr(),o=new i,r=o.promise(),l=!c(e.async)||e.async,d=e.dataType,u=e.timeout||0;e.crossDomain=E(e.url);var f="jsonp"===d||"script"===d;void 0===e.cache&&(e.cache=!f);var _=B(e),x=P(e),w=O(e,x),b=w.url,y=w.parameters;if(_&&(s[_]=function(e){o.resolve(e,h,n)}),e.crossDomain&&f){var C=function(){o.reject(n,p)},S=function(){"jsonp"!==d&&o.resolve(null,h,n)};return k(b).then(S,C),r}if(e.crossDomain&&!("withCredentials"in n))return o.reject(n,p),r;if(n.open(M(e),b,l,e.username,e.password),l&&(n.timeout=u,t=A(u,n,o)),n.onreadystatechange=function(e){4===n.readyState&&(clearTimeout(t),m(n.status)?v(n.status)?D(o,n,d):o.resolve(null,g,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];"arraybuffer"===e.responseType&&(n.responseType=e.responseType);for(var T in x)x.hasOwnProperty(T)&&c(x[T])&&n.setRequestHeader(T,x[T]);return e.beforeSend&&e.beforeSend(n),n.send(y),r.abort=function(){n.abort()},r};e.exports=u({sendRequest:R})},function(e,t,n){var i=n(2),o=n(50),a=o.add,r=n(19)(),s=i(),l=function(){var e;return function(t){if(!arguments.length)return e;var n=i(t);s=n;var o=!!n.length,a=l();e=o?n:i("body"),r.fire(o?l():i(),a)}}();a(function(){l(".dx-viewport")}),t.value=l,t.changeCallback=r,t.originalViewPort=function(){return s}},function(e,t,n){var i=n(26),o=n(29),a=o().useJQuery;i&&a!==!1&&o({useJQuery:!0}),e.exports=function(){return i&&o().useJQuery}},function(e,t,n){var i=n(2),o=n(12),a=n(19),r=n(13),s=n(10),l=s.abstract,c=a(),d=s.inherit({render:function(e){e=e||{};var t=this._renderCore(e);return this._ensureResultInContainer(t,e.container),c.fire(t,e.container),t},_ensureResultInContainer:function(e,t){if(t){var n=i(t),a=r.contains(n.get(0),e.get(0));if(n.append(e),!a){var s=o.getBody().contains(n.get(0));s&&r.triggerShownEvent(e)}}},_renderCore:l});e.exports=d,e.exports.renderedCallbacks=c},function(e,t,n){var i=n(2),o=n(29),a=n(6).getWindow(),r=n(1),s=n(3).each,l=n(10),c=n(17),d=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;it.max&&(n+=e.myLocation-t.max),n},k=function(e,t,n){return t.myLocationn.max?"h"===e?"right":"bottom":"none"},S=function(e){e.myLocation=e.atLocation+b(e.atAlign)*e.atSize-b(e.myAlign)*e.mySize+e.offset},I={fit:function(e,t){var n=!1;e.myLocation>t.max&&(e.myLocation=t.max,n=!0),e.myLocationt.max)){var n=h({},e,{myAlign:y(e.myAlign),atAlign:y(e.atAlign),offset:-e.offset});S(n),n.oversize=C(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}},T=function(){var e=o("
").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},D={h:{location:0,flip:!1,fit:!1,oversize:0},v:{location:0,flip:!1,fit:!1,oversize:0}},E=function(e,t){var n=o(e),a=n.offset(),r=h(!0,{},D,{h:{location:a.left},v:{location:a.top}});if(!t)return r;var s=v(t.my),u=v(t.at),p=o(t.of).length&&t.of||l,g=x(t.offset),_=w(t.collision),m=t.boundary,b=x(t.boundaryOffset),y={mySize:n.outerWidth(),myAlign:s.h,atAlign:u.h,offset:g.h,collision:_.h,boundaryOffset:b.h},E={mySize:n.outerHeight(),myAlign:s.v,atAlign:u.v,offset:g.v,collision:_.v,boundaryOffset:b.v};if(p.preventDefault)y.atLocation=p.pageX,E.atLocation=p.pageY,y.atSize=0,E.atSize=0;else if(p=o(p),d(p[0]))y.atLocation=p.scrollLeft(),E.atLocation=p.scrollTop(),y.atSize=p[0].innerWidth>p[0].outerWidth?p[0].innerWidth:p.width(),E.atSize=p[0].innerHeight>p[0].outerHeight?p[0].innerHeight:p.height();else if(9===p[0].nodeType)y.atLocation=0,E.atLocation=0,y.atSize=p.width(),E.atSize=p.height();else{var A=p.offset();y.atLocation=A.left,E.atLocation=A.top,y.atSize=p.outerWidth(),E.atSize=p.outerHeight()}S(y),S(E);var B=function(){var e=o(l),t=e.width(),n=e.height(),a=e.scrollLeft(),r=e.scrollTop(),s=c.getDocumentElement(),d=f.touch?s.clientWidth/t:1,u=f.touch?s.clientHeight/n:1;void 0===i&&T();var h=t,p=n;if(m){var g=o(m),_=g.offset();a=_.left,r=_.top,h=g.width(),p=g.height()}return{h:{min:a+y.boundaryOffset,max:a+h/d-y.mySize-y.boundaryOffset},v:{min:r+E.boundaryOffset,max:r+p/u-E.mySize-E.boundaryOffset}}}();y.oversize=C(y,B.h),E.oversize=C(E,B.v),y.collisionSide=k("h",y,B.h),E.collisionSide=k("v",E,B.v),I[y.collision]&&I[y.collision](y,B.h),I[E.collision]&&I[E.collision](E,B.v);var O=function(e){return t.precise?e:Math.round(e)};return h(!0,r,{h:{location:O(y.myLocation),oversize:O(y.oversize),fit:y.fit,flip:y.flip,collisionSide:y.collisionSide},v:{location:O(E.myLocation),oversize:O(E.oversize),fit:E.fit,flip:E.flip,collisionSide:E.collisionSide},precise:t.precise}),r},A=function(e,t){var n=o(e);if(!t)return n.offset();p.resetPosition(n);var i=n.offset(),a=t.h&&t.v?t:E(n,t),r=function(e){return t.precise?e:Math.round(e)};return p.move(n,{left:a.h.location-r(i.left),top:a.v.location-r(i.top)}),a},B=function(e){return e=o(e).get(0),d(e)?null:e&&"pageY"in e&&"pageX"in e?{top:e.pageY,left:e.pageX}:o(e).offset()};A.inverseAlign||(A.inverseAlign=y),A.normalizeAlign||(A.normalizeAlign=v),e.exports={calculateScrollbarWidth:T,calculate:E,setup:A,offset:B}},function(e,t,n){var i=n(2),o=n(37),a=n(11).wrapToArray,r=n(11).inArray,s=n(3),l=n(13).contains,c=n(61),d=n(9),u=n(145),h=n(84),p="dxdragstart",f="dxdrag",g="dxdragend",_="dxdragenter",m="dxdragleave",v="dxdrop",x="dxDragEventsCount",w=[],b=[],y=[],C={setup:function(e,t){var n=r(e,w)!==-1;n||(w.push(e),b.push([]),y.push(t||{}))},add:function(e,t){var n=r(e,w);this.updateEventsCounter(e,t.type,1);var i=t.selector;r(i,b[n])===-1&&b[n].push(i)},updateEventsCounter:function(e,t,n){if([_,m,v].indexOf(t)>-1){var i=o.data(e,x)||0;o.data(e,x,Math.max(0,i+n))}},remove:function(e,t){this.updateEventsCounter(e,t.type,-1)},teardown:function(e){var t=o.data(e,x);if(!t){var n=r(e,w);w.splice(n,1),b.splice(n,1),y.splice(n,1),o.removeData(e,x)}}};c(_,C),c(m,C),c(v,C);var k=function(e){var t=r(e.get(0),w),n=b[t],i=e.find(n.join(", "));return r(void 0,n)!==-1&&(i=i.add(e)),i},S=function(e){var t=r(e.get(0),w);return y[t]},I=function(e,t){return e.itemPositionFunc?e.itemPositionFunc(t):t.offset()},T=function(e,t){return e.itemSizeFunc?e.itemSizeFunc(t):{width:t.get(0).getBoundingClientRect().width,height:t.get(0).getBoundingClientRect().height}},D=u.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?[]:w));this._dropTargets=s.map(t,function(e){return i(e).get(0)})},_move:function(e){var t=d.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),n=t===this._currentDropTarget;n||(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};d.fireEvent(n)}},_findDropTarget:function(e){var t,n=this;return s.each(w,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}),t},_checkDropTarget:function(e,t,n){var i=t.get(0)===this._$element.get(0);if(i)return!1;var o=I(e,t);if(n.pageXo.left+a.width)&&(!(n.pageY>o.top+a.height)&&t)},_end:function(e){var t=d.eventData(e);this._fireEvent(g,e,{offset:this._calculateOffset(t)}),this._fireDropTargetEvent(e,v),delete this._currentDropTarget}});h({emitter:D,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="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(0).extend,a=n(1),r=n(54),s=n(53),l=n(40).keysEqual,c=n(41),d=n(35).errors,u=n(91),h=n(7).Deferred,p=function(e,t){for(var n,i="string"==typeof t?t.split():t.slice();i.length;)if(n=i.shift(),n in e)return!0;return!1},f=function(){var e=new h;return e.resolve.apply(e,arguments).promise()},g=function(){var e=new h;return e.reject.apply(e,arguments).promise()},_=u.inherit({ctor:function(e){e=Array.isArray(e)?{data:e}:e||{},this.callBase(e);var t=e.data;if(t&&!Array.isArray(t))throw d.Error("E4006");this._array=t||[]},createQuery:function(){return c(this._array,{errorHandler:this._errorHandler})},_byKeyImpl:function(e){var t=this._indexByKey(e);return t===-1?g(d.Error("E4009")):f(this._array[t])},_insertImpl:function(e){var t,n,s=this.key();if(n=a.isPlainObject(e)?o({},e):e,s){if(t=this.keyOf(n),void 0===t||"object"===("undefined"==typeof t?"undefined":i(t))&&a.isEmptyObject(t)){if(Array.isArray(s))throw d.Error("E4007");t=n[s]=String(new r)}else if(void 0!==this._array[this._indexByKey(t)])return g(d.Error("E4008"))}else t=n;return this._array.push(n),f(e,t)},_updateImpl:function(e,t){var n,i,o=this.key(),a=!0;if(o){if(p(t,o)&&!l(o,e,this.keyOf(t)))return g(d.Error("E4017"));if(n=this._indexByKey(e),n<0)return g(d.Error("E4009"));i=this._array[n]}else i=e;return s.deepExtendArraySafe(i,t,a),f(e,t)},_removeImpl:function(e){var t=this._indexByKey(e);return t>-1&&this._array.splice(t,1),f(e)},_indexByKey:function(e){for(var t=0,n=this._array.length;t1&&(e=e.select(function(e){return s({},e,{items:i(c(e.items),t.slice(1)).toArray()})})),e}function o(e,t){var n=[];return l(e,function(e,i){var o=r(t,function(e){return i.selector===e.selector});o.length<1&&n.push(i)}),n.concat(t)}function a(e,t,n){t=t||{};var a=t.filter,r=t.sort,s=t.select,c=t.group,u=t.skip,h=t.take;return a&&(e=e.filter(a)),c&&(c=d(c)),n||((r||c)&&(r=d(r||[]),c&&(r=o(c,r)),l(r,function(t){e=e[t?"thenBy":"sortBy"](this.selector,this.desc,this.compare)})),s&&(e=e.select(s))),c&&(e=i(e,c)),n||(h||u)&&(e=e.slice(u||0,h)),e}var r=n(4).grep,s=n(0).extend,l=n(3).each,c=n(143),d=n(40).normalizeSortingInfo;e.exports={multiLevelGroup:i,arrangeSortingInfo:o,queryByOptions:a}},function(e,t,n){var i=n(55);e.exports=i({locale:function(){var e="en";return function(t){return t?void(e=t):e}}()})},function(e,t,n){function i(e,t,n){t.on(e,function(){n.fireEvent(e,arguments)})}var o=n(11).inArray,a=n(3).each,r=n(10),s=n(52),l=r.inherit({ctor:function(){this._cache={}},setView:function(e,t){this._cache[e]=t},getView:function(e){return this._cache[e]},removeView:function(e){var t=this._cache[e];return t&&(delete this._cache[e],this.fireEvent("viewRemoved",[{viewInfo:t}])),t},clear:function(){var e=this;a(this._cache,function(t){e.removeView(t)})},hasView:function(e){return e in this._cache}}).include(s),c=l.inherit({setView:function(e,t){this.callBase(e,t),this.removeView(e)}}),d=r.inherit({ctor:function(e){this._filter=e.filter,this._viewCache=e.viewCache,this.viewRemoved=this._viewCache.viewRemoved,i("viewRemoved",this._viewCache,this)},setView:function(e,t){this._viewCache.setView(e,t),this._filter(e,t)||this._viewCache.removeView(e)},getView:function(e){return this._viewCache.getView(e)},removeView:function(e){return this._viewCache.removeView(e)},clear:function(){return this._viewCache.clear()},hasView:function(e){return this._viewCache.hasView(e)}}).include(s),u=5,h=r.inherit({ctor:function(e){this._keys=[],this._size=e.size||u,this._viewCache=e.viewCache,this.viewRemoved=this._viewCache.viewRemoved,i("viewRemoved",this._viewCache,this)},setView:function(e,t){this.hasView(e)||(this._keys.length===this._size&&this.removeView(this._keys[0]),this._keys.push(e)),this._viewCache.setView(e,t)},getView:function(e){var t=o(e,this._keys);return t<0?null:(this._keys.push(e),this._keys.splice(t,1),this._viewCache.getView(e))},removeView:function(e){var t=o(e,this._keys);return t>-1&&this._keys.splice(t,1),this._viewCache.removeView(e)},clear:function(){return this._keys=[],this._viewCache.clear()},hasView:function(e){return this._viewCache.hasView(e)}}).include(s),p=r.inherit({ctor:function(e){this._viewCache=e.viewCache||new l,this._navigationManager=e.navigationManager,this._navigationManager.on("itemRemoved",this._onNavigationItemRemoved.bind(this)),this.viewRemoved=this._viewCache.viewRemoved,i("viewRemoved",this._viewCache,this)},_onNavigationItemRemoved:function(e){this.removeView(e.key)},setView:function(e,t){this._viewCache.setView(e,t)},getView:function(e){return this._viewCache.getView(e)},removeView:function(e){return this._viewCache.removeView(e)},clear:function(){return this._viewCache.clear()},hasView:function(e){return this._viewCache.hasView(e)}}).include(s);e.exports=l,e.exports.NullViewCache=c,e.exports.ConditionalViewCacheDecorator=d,e.exports.CapacityViewCacheDecorator=h,e.exports.HistoryDependentViewCacheDecorator=p},function(e,t,n){var i=n(36).camelize,o=n(66),a=n(1),r=n(12),s=["","Webkit","Moz","O","Ms"],l={"":"",Webkit:"-webkit-",Moz:"-moz-",O:"-o-",ms:"-ms-"},c=o(function(){return r.createElement("dx").style}),d=function(e,t){e=i(e,!0);for(var n,o=0,a=s.length;on;){var i=t[n];if(e(i)===!1)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 u(t,function(e,t){return i=i||n[e]!==t,!i}),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)||[];u(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=d(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,o=i?"pageY":"pageX";e[o]+=e.delta}},isActive:function(e){var t=!1;return this._eachEmitter(function(n){t=t||n.getElement().is(e)}),t}}),x=new v,w="dxEmitterSubscription",b=function(e){var t=e.emitter,n=e.events[0],i=e.events;u(i,function(o,a){h(a,{noBubble:!e.bubble,setup:function(e){var i=s.data(e,w)||{},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,w,i)},add:function(e,t){var i=s.data(e,m),o=i[n];o.configure(c({delegateSelector:t.selector},t.data),t.type)},teardown:function(e){var t=s.data(e,w),o=s.data(e,m),r=o[n];delete t[a];var l=!0;u(i,function(e,n){return l=l&&!t[n]}),l&&(x.isActive(e)&&x.resetEmitter(r),r&&r.dispose(),delete o[n])}})})};e.exports=b},function(e,t,n){function i(e){return e>0?Math.round(e):0}function o(e,t,n,i){var a,r,s,l,c=[],d=i.nodes,u=t.length,h=0;for(r=0;r0&&(a.value=Number(s[i.valueField])),h+=a.value;e.nodes=c,e.value=h}function a(e,t,n){var i,o,r=t.nodes,s=r.length;for(o=0;o0&&e.algorithm({items:o.slice(),sum:r,rect:t.innerRect.slice(),isRotated:1&i[0].level,directions:e.directions}),n=0;n=0?i(t.headerHeight):d.labelParams.height+2*i(n.paddingTopBottom),e._headerHeight!==l&&(e._headerHeight=l,e._change(["TILING"])),e._groupPadding!==c&&(e._groupPadding=c,e._change(["TILING"])),o.headerEdge===r&&o.headerInner===s||(o.headerEdge=r,o.headerInner=s,e._change(["TILING"]))},_calculateLabelSettings:function(e,t,n){var o=this._getTextBBox(t.font),a=i(t.paddingLeftRight),r=i(t.paddingTopBottom);e.labelState=k(t,n),e.labelState.visible=!("visible"in t&&!t.visible),e.labelParams={height:o.height,rtlEnabled:this._getOption("rtlEnabled",!0),paddingTopBottom:r,paddingLeftRight:a,resolveLabelOverflow:this._getOption("resolveLabelOverflow",!0)}},_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){a(e,this._topNode,t)},_applyTilesAppearance:function(){var e=this,t=b(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},r)},_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"},c),e._change(["LABELS_LAYOUT"])},_performTiling:function(){var e=this,t={algorithm:w(e._getOption("layoutAlgorithm",!0)),directions:T[String(e._getOption("layoutDirection",!0)).toLowerCase()]||T.lefttoprightbottom,headerHeight:e._headerHeight,groupPadding:e._groupPadding,rectOffsets:e._rectOffsets};e._topNode.innerRect=e._tilingRect,u(t,e._topNode),e._processNodes(t,h),e._change(["LABELS_LAYOUT"]),e._onTilingPerformed()},_onTilingPerformed:S,_performLabelsLayout:function(){this._processNodes(null,_)},_getTextBBox:function(e){var t,n=this._renderer,i=this._textForCalculations||n.text("0",0,0);return this._textForCalculations=i,i.css(y(e)).append(n.root),t=i.getBBox(),i.remove(),t}}),E=[s,l],A=[0,0,0,0],B=n(133).BaseThemeManager.inherit({_themeSection:"treeMap",_fontFields:["tile.label.font","group.label.font","loadingIndicator.font","title.font","title.subtitle.font","tooltip.font","export.font"]});n(8)("dxTreeMap",D),e.exports=D,D.addPlugin(n(202).plugin)},function(e,t,n){function i(e){this.baseColor=e;var t;e&&(t=String(e).toLowerCase().replace(/ /g,""),t=m[t]?"#"+m[t]:t,t=o(t)),t||(this.colorIsInvalid=!0),t=t||{},this.r=a(t[0]),this.g=a(t[1]),this.b=a(t[2]),this.a=a(t[3],1,1),t[4]?this.hsv={h:t[4][0],s:t[4][1],v:t[4][2]}:this.hsv=s(this.r,this.g,this.b),t[5]?this.hsl={h:t[5][0],s:t[5][1],l:t[5][2]}:this.hsl=d(this.r,this.g,this.b)}function o(e){if("transparent"===e)return[0,0,0,0];for(var t,n=0,i=v.length;nn?n:e}function r(e,t,n){return"#"+(16777216|e<<16|t<<8|n).toString(16).slice(1)}function s(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=60*((t-n)/l),t.5?d/(2-s):d/s,i=c(e,t,n,d),i/=6}return{h:x(360*i),s:x(100*o),l:x(100*l)}}function u(e,t){var n=t;return"r"===e&&(n=t+1/3),"b"===e&&(n=t-1/3),n}function h(e){return e<0&&(e+=1),e>1&&(e-=1),e}function p(e,t,n){return n=h(n),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function f(e,t,n){var i,o,a;if(e=g(e,360),t=g(t,100),n=g(n,100),0===t)i=o=a=n;else{var r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=p(s,r,u("r",e)),o=p(s,r,u("g",e)),a=p(s,r,u("b",e))}return[x(255*i),x(255*o),x(255*a)]}function g(e,t){return e=Math.min(t,Math.max(0,parseFloat(e))),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function _(e,t,n){return t=t||0,n=n||255,!(e%1!==0||en||"number"!=typeof e||isNaN(e))}var m={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"},v=[{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=l(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=f(t,n,i);return[o[0],o[1],o[2],1,null,[t,n,i]]}}],x=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=a(this.r+e),t.g=a(this.g+e),t.b=a(this.b+e),t},blend:function(e,t){var n=e instanceof i?e:new i(e),o=new i;return o.r=a(x(this.r*(1-t)+n.r*t)),o.g=a(x(this.g*(1-t)+n.g*t)),o.b=a(x(this.b*(1-t)+n.b*t)),o},toHex:function(){return r(this.r,this.g,this.b)},getPureColor:function(){var e=l(this.hsv.h,100,100);return new i("rgb("+e.join(",")+")")},isValidHex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},isValidRGB:function(e,t,n){return!!(_(e)&&_(t)&&_(n))},isValidAlpha:function(e){return!(isNaN(e)||e<0||e>1||"number"!=typeof e)},colorIsInvalid:!1,fromHSL:function(e){var t=new i,n=f(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(2),o=n(6),a=o.getNavigator(),r=n(42),s=n(20),l=n(30),c=n(0).extend,d=n(14),u=n(8),h=n(28),p="dx-loadindicator",f="dx-loadindicator-wrapper",g="dx-loadindicator-content",_="dx-loadindicator-icon",m="dx-loadindicator-segment",v="dx-loadindicator-segment-inner",x="dx-loadindicator-image",w=h.inherit({_getDefaultOptions:function(){return c(this.callBase(),{indicatorSrc:"",activeStateEnabled:!1,hoverStateEnabled:!1,_animatingSegmentCount:1,_animatingSegmentInner:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var e=d.real(),t="android"===e.platform&&!/chrome/i.test(a.userAgent);return l.msie&&l.version<10||t},options:{viaImage:!0}},{device:function(){return s.isWin8()||s.isWin10()},options:{_animatingSegmentCount:5}},{device:function(){return s.isIos7()},options:{_animatingSegmentCount:11}},{device:function(){return s.isMaterial()||s.isAndroid5()},options:{_animatingSegmentCount:2,_animatingSegmentInner:!0}},{device:function(){return s.isGeneric()},options:{_animatingSegmentCount:7}}])},_init:function(){this.callBase(),this.$element().addClass(p)},_initMarkup:function(){this.callBase(),this._renderWrapper(),this._renderIndicatorContent(),this._renderMarkup()},_renderWrapper:function(){this._$wrapper=i("
").addClass(f),this.$element().append(this._$wrapper)},_renderIndicatorContent:function(){this._$content=i("
").addClass(g),this._$wrapper.append(this._$content)},_renderMarkup:function(){!r.animation()||this.option("viaImage")||this.option("indicatorSrc")?this._renderMarkupForImage():this._renderMarkupForAnimation()},_renderMarkupForAnimation:function(){var e=this.option("_animatingSegmentInner");this._$indicator=i("
").addClass(_),this._$content.append(this._$indicator);for(var t=this.option("_animatingSegmentCount");t>=0;--t){var n=i("
").addClass(m).addClass(m+t);e&&n.append(i("
").addClass(v)),this._$indicator.append(n)}},_renderMarkupForImage:function(){var e=this.option("indicatorSrc");this._$wrapper.addClass(x),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",w),e.exports=w},function(e,t,n){var i=n(1),o=n(23),a=n(47),r=n(32),s=n(55),l=n(69).logger;n(136),e.exports=s({format:function(e,t,n){var o=i.isString(t)&&""!==t||i.isPlainObject(t)||i.isFunction(t),s=i.isNumeric(e)||i.isDate(e);return o&&s?i.isFunction(t)?t(e):(void 0!==n&&l.warn("Option 'precision' is deprecated. Use field 'precision' of a format object instead."),i.isString(t)&&(t={type:t,precision:n}),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){var o=function(e){return e.getSeconds()+e.getMilliseconds()/1e3+"s"};n.push(o)}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){var a=function(e){return r.getMonthNames("abbreviated")[e.getMonth()]+" "+r.format(e,"day")};n.unshift(a)}else n.unshift("monthandday");return this._normalizeFormat(n)}if(e.month)return"month";if(e.day){if(t)n.unshift("day");else{var s=function(e){return r.format(e,"dayofweek")+", "+r.format(e,"day")};n.unshift(s)}return this._normalizeFormat(n)}return this._normalizeFormat(n)},getDateFormatByTicks:function(e){var t,n,i,a;if(e.length>1)for(n=o.getDatesDifferences(e[0],e[1]),a=1;a0,minute:e[0].getMinutes()>0,second:e[0].getSeconds()>0,millisecond:e[0].getMilliseconds()>0};return t=this.getDateFormatByDifferences(n)},getDateFormatByTickInterval:function(e,t,n){var a,r,s,l={week:"day"},c=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}},d=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)};return n=i.isString(n)?n.toLowerCase():n,r=o.getDatesDifferences(e,t),e!==t&&d(r,e>t?t:e,e>t?e:t),s=o.getDateUnitInterval(r),c(r,s,!0),s=o.getDateUnitInterval(n||"second"),c(r,s,!1),r[l[s]||s]=!0,a=this.getDateFormatByDifferences(r)}})},function(e,t,n){var i=n(10),o=n(0).extend,a=n(11).inArray,r=n(3).each,s=n(52),l=n(17),c=n(4),d=n(1),u=n(47),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)},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!!d.isDefined(e)&&(e!==!1&&(e=String(e),!t.trim&&d.isDefined(t.trim)||(e=e.trim()),""!==e))}}),g=p.inherit({NAME:"numeric",_validate:function(e,t){return!y.required.validate(e,{})||(t.useCultureSettings&&d.isString(e)?!isNaN(u.parse(e)):d.isNumeric(e))}}),_=p.inherit({NAME:"range",_validate:function(e,t){if(!y.required.validate(e,{}))return!0;var n=y.numeric.validate(e,t),i=d.isDefined(e),o=n?parseFloat(e):i&&e.valueOf(),a=t.min,r=t.max;if(!n&&!d.isDate(e)&&!i)return!1;if(d.isDefined(a))return d.isDefined(r)?o>=a&&o<=r:o>=a;if(d.isDefined(r))return o<=r;throw l.Error("E0101")}}),m=p.inherit({NAME:"stringLength",_validate:function(e,t){return e=d.isDefined(e)?String(e):"",!t.trim&&d.isDefined(t.trim)||(e=e.trim()),y.range.validate(e.length,o({},t))}}),v=p.inherit({NAME:"custom",validate:function(e,t){var n=t.validator,i=n&&d.isFunction(n.option)&&n.option("dataGetter"),o=d.isFunction(i)&&i(),a={value:e,validator:n,rule:t};return o&&(a.data=o),t.validationCallback(a)}}),x=p.inherit({NAME:"compare",_validate:function(e,t){if(!t.comparisonTarget)throw l.Error("E0102");o(t,{reevaluate:!0});var n=t.comparisonTarget(),i=t.comparisonType||"==";switch(i){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-1&&this.groups.splice(n,1),t},_setDefaultMessage:function(e,t,n){d.isDefined(e.message)||(t.defaultFormattedMessage&&d.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=y[a.type];if(!s)throw l.Error("E0100");return d.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){var i=n(9),o=n(108),a=n(84),r=Math.abs,s="dxhold",l=750,c=5,d=o.inherit({start:function(e){this._startEventData=i.eventData(e),this._startTimer(e)},_startTimer:function(e){var t="timeout"in this?this.timeout:l;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)>c||r(t.y)>c},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}});a({emitter:d,bubble:!0,events:[s]}),e.exports={name:s}},function(e,t,n){var i=n(10),o=i.abstract,a=n(52),r=n(3).each,s=n(35),l=n(40),c=n(22).compileGetter,d=n(80),u=d.queryByOptions,h=n(7).Deferred,p={},f=i.inherit({ctor:function(e){var t=this;e=e||{},r(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","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=c(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 u(this.createQuery(e),e).enumerate()},_withLock:function(e){var t=new h;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 u(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(e,t){n.fireEvent("updated",[e,t]),n.fireEvent("modified")}))},_updateImpl:o,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.inherit=function(e){return function(t,n){var i=e.apply(this,[t]);return n&&(p[n]=i),i}}(f.inherit),e.exports=f},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="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(68),r=n(1).isDate,s=n(3).each,l=n(32),c=function(){return["year","day","month","day"]},d=6e4,u=60*d*24,h=365*u,p=function(e){var t="undefined"==typeof e?"undefined":i(e);return"string"===t?"format":"object"===t&&void 0!==e.type?e.type:null},f={SUPPORTED_FORMATS:["date","time","datetime"],DATE_COMPONENT_TEXT_FORMATTER:function(e,t){var n=o("
").addClass("dx-dateview-formatter-container");return o("").text(e).addClass("dx-dateview-value-formatter").appendTo(n),o("").text(t).addClass("dx-dateview-name-formatter").appendTo(n),n},ONE_MINUTE:d,ONE_DAY:u,ONE_YEAR:h,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:c()},time:{getStandardPattern:function(){return"HH:mm"},components:["hours","minutes","seconds","milliseconds"]},datetime:{getStandardPattern:function(){var e;return function(){var t="yyyy-MM-ddTHH:mmZ",n="2000-01-01T01:01Z",i=o("").attr("type","datetime");i.val(n),i.val()&&(e=t)}(),e||(e="yyyy-MM-ddTHH:mm:ssZ"),f.FORMATS_INFO.datetime.getStandardPattern=function(){return e},e},components:c().concat(["hours","minutes","seconds","milliseconds"])},"datetime-local":{getStandardPattern:function(){return"yyyy-MM-ddTHH:mm:ss"},components:c().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=f.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=f.FORMATS_INFO[n];return s(a.components,function(){var e=f.DATE_COMPONENTS_INFO[this];o[e.setter](t[e.getter]())}),o},getLongestCaptionIndex:function(e){var t,n=0,i=0;for(t=0;ti&&(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=p(e),o=9;i&&!f.formatUsesMonthName(i)||(o=f.getLongestCaptionIndex(t));var a=new Date(1888,o,21,23,59,59,999);if(!i||f.formatUsesDayName(i)){var r=a.getDate()-a.getDay()+f.getLongestCaptionIndex(n);a.setDate(r)}return a},normalizeTime:function(e){e.setSeconds(0),e.setMilliseconds(0)}};f.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?f.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?f.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=f},function(e,t,n){function i(e){var t=function t(n,i,o,a,r,s){function l(e,r,s){m(t(n,i,o,a,r,s)).done(e.resolve)}a=a||[],n=n||[];var c,d,u,h;for(r=r||0,d=r;dr&&d%1e4===0&&new Date-w>=300)return w=new Date,u=new v,setTimeout(l(u,d,!1),0),u;if(c=n[d],!s){if(a.unshift(c),o&&i(a,d)===!1)return;if(c.children&&(h=t(c.children,i,o,a),e&&h))return u=new v,h.done(l(u,d,!0)),u}if(s=!1,!o&&i(a,d)===!1)return;a.shift(),n[d]!==c&&d--}};return t}function o(e){return c.map(["year","quarter","month"],function(t,n){return d({},e,{groupInterval:t,groupIndex:n})})}function a(e,t,n,i){var s=[];return c.each(t||[],function(t,c){for(var d,u=1,h=n.length?n+"."+t:t,p=i[h],f=l.compileGetter(h);!r.isDefined(c)&&e[u];)c=f(e[u]),u++;!p&&r.isDefined(c)&&(p=r.type(c)),d=[{dataField:h,dataType:p,groupName:"date"===p?t:void 0,groupInterval:void 0,displayFolder:n}],"date"===p?d=d.concat(o(d[0])):"object"===p&&(d=a(e,c,h,i)),s.push.apply(s,d)}),s}var r=n(1),s=n(72),l=n(22),c=n(3),d=n(0).extend,u=n(1).isDefined,h=n(32),p=n(88),f=n(51),g=n(79),_=n(7),m=_.when,v=_.Deferred,x=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 s.sendRequest(e)};var w=new Date;t.foreachTree=i(!1),t.foreachTreeAsync=i(!0),t.findField=function(e,t){var n,i;if(e&&r.isDefined(t))for(n=0;na?i=1:o=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;r0&&e.groupInterval;t&&!e.customizeText&&x(e,"customizeText",function(n){var i=n.value+t,o=p.format(i,e.format,e.precision);return n.valueText&&o?n.valueText+" - "+o:""})}},t.getFiltersByPath=function(e,t){var n=[];t=t||[];for(var i=0;i-1?e.substr(0,t):e}var i,o=n(e).split("/"),a=t.split("/");for(o.pop();a.length;)i=a.shift(),".."===i?o.pop():o.push(i);return o.join("/")}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=n(10),c=n(0).extend,d=n(1),u=n(3).each,h=n(72),p=n(54),f=d.isDefined,g=n(7).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})$/,x=/^\/Date\((-?\d+)((\+|-)?(\d+)?)\)\/$/,w=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[-+]{1}\d{2}(:?)(\d{2})?)?$/,b="application/json;odata=verbose",y=function(e){var t=[];for(var n in e)t.push(n+"="+e[n]);return t.join("&")},C=function(e,t,n){function o(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=c({async:!0,method:"get",url:"",params:{},payload:null,headers:{},timeout:3e4},t),n=n||{};var a=n.beforeSend;a&&a(t);var r=(t.method||"get").toLowerCase(),s="get"===r,l=s&&n.jsonp,d=c({},t.params),u=s?d:o(t.payload),h=!s&&y(d),p=t.url,f=!s&&b;return h&&(p+=(p.indexOf("?")>-1?"&":"?")+h),l&&(u.$format="json"),{url:p,data:u,dataType:l?"jsonp":"json",jsonp:l&&"$callback",method:r,async:t.async,timeout:t.timeout,headers:t.headers,contentType:f,accepts:{json:[b,"text/plain"].join()},xhrFields:{withCredentials:n.withCredentials}}},k=function e(t,n,i){var o=new g,s=C(t,n,i);return h.sendRequest(s).always(function(n,l){var c,d={deserializeDates:i.deserializeDates,fieldTypes:i.fieldTypes},u=T(n,l,d),h=u.error,p=u.data,f=u.nextUrl;h?h.message!==m.XHR_ERROR_UNLOAD&&o.reject(h):i.countOnly?isFinite(u.count)?o.resolve(u.count):o.reject(new _.Error("E4018")):f&&!i.isPaged?(a(f)||(f=r(s.url,f)),e(t,{url:f},i).fail(o.reject).done(function(e){o.resolve(p.concat(e))})):(isFinite(u.count)&&(c={totalCount:u.count}),o.resolve(p,c))}),o.promise()},S=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||t.indexOf("inner exception")!==-1););return t},I=function(e,t){if("nocontent"===t)return null;var n=200,i="Unknown error",o=e;if("success"!==t){n=e.status,i=m.errorMessageFromXhr(e,t);try{o=JSON.parse(e.responseText)}catch(e){}}var a=o&&(o.then&&o||o.error||o["odata.error"]||o["@odata.error"]);return a?(i=S(a)||i,200===n&&(n=500),a.code&&(n=Number(a.code)),c(Error(i),{httpStatus:n,errorDetails:a})):200!==n?c(Error(i),{httpStatus:n}):void 0},T=function(e,t,n){var i,o=I(e,t);return o?{error:o}:d.isPlainObject(e)?(i="d"in e&&(Array.isArray(e.d)||d.isObject(e.d))?D(e,t):E(e,t),B(i,n),i):{data:e}},D=function(e){var t=e.d;return f(t)?(t=t,f(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")}},E=function(e){var t=e;return f(t.value)&&(t=t.value),{data:t,nextUrl:e["@odata.nextLink"],count:parseInt(e["@odata.count"],10)}},A=l.inherit({ctor:function(e){this._value=e},valueOf:function(){return this._value}}),B=function e(t,n){n=n||{},u(t,function(i,a){if(null!==a&&"object"===("undefined"==typeof a?"undefined":s(a)))"results"in a&&(t[i]=a.results),e(t[i],n);else if("string"==typeof a){var r=n.fieldTypes,l=!r||"String"!==r[i];if(l&&v.test(a)&&(t[i]=new p(a)),n.deserializeDates!==!1)if(a.match(x)){var c=new Date(Number(RegExp.$1)+60*RegExp.$2*1e3);t[i]=new Date(c.valueOf()+60*c.getTimezoneOffset()*1e3)}else w.test(a)&&(t[i]=new Date(o(t[i]).valueOf()))}})},O=function(e){return"datetime'"+i(e,!0,!0)+"'"},M=function(e){return"'"+e.replace(/'/g,"''")+"'"},P=function(e){return e instanceof A?e.valueOf():e.replace(/\./g,"/")},R=function e(t){return t instanceof Date?i(t,!1,!1):t instanceof p?t.valueOf():Array.isArray(t)?"["+t.map(function(t){return e(t)}).join(",")+"]":V(t)},V=function(e){return e instanceof Date?O(e):e instanceof p?"guid'"+e+"'":e instanceof A?e.valueOf():"string"==typeof e?M(e):String(e)},F=function(e,t){switch(t){case 2:case 3:return V(e);case 4:return R(e);default:throw _.Error("E4002")}},L=function(e,t){if(d.isPlainObject(e)){var n=[];return u(e,function(e,i){n.push(P(e)+"="+F(i,t))}),n.join()}return F(e,t)},H={String:function(e){return e+""},Int32:function(e){return Math.floor(e)},Int64:function(e){return e instanceof A?e:new A(e+"L")},Guid:function(e){return e instanceof p?e:new p(e)},Boolean:function(e){return!!e},Single:function(e){return e instanceof A?e:new A(e+"f")},Decimal:function(e){return e instanceof A?e:new A(e+"m")}},z=function(e,t){if(null===t)return null;var n=H[e];if(!n)throw _.Error("E4014",e);return n(t)};t.sendRequest=k,t.serializePropName=P,t.serializeValue=F,t.serializeKey=L,t.keyConverters=H,t.convertPrimitiveValue=z,t.EdmLiteral=A},function(e,t,n){e.exports=n(450)},function(e,t,n){var i=n(7),o=n(6),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()},s.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(37),o=n(5),a=n(171),r=n(1).isDefined,s=n(128),l="dxComponents",c="dxPrivateComponent",d=new a,u=0,h=t.name=function(e,t){if(r(t))return void d.set(e,t);if(!d.has(e)){var n=c+u++;return d.set(e,n),n}return d.get(e)};t.attachInstanceToElement=function(e,t,n){var a=i.data(e.get(0)),r=h(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=h(t);return i.data(e.get(0),n)}},function(e,t,n){var i=n(75);e.exports=i.inherit({ctor:function(e){this.name=e}})},function(e,t,n){var i=n(0).extend,o=n(69),a=n(39),r=n(120),s="http://js.devexpress.com/error/"+r.split(".").slice(0,2).join("_")+"/";e.exports=function(e,t){var n={ERROR_MESSAGES:i(t,e),Error:function(){return d([].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:r([].slice.call(arguments)))}},r=function(e){var t=e[0];return e=e.slice(1),c(t,l(t,e))},l=function(e,t){return t=[n.ERROR_MESSAGES[e]].concat(t),a.format.apply(this,t).replace(/\.*\s*?$/,"")},c=function(e,t){return a.format.apply(this,["{0} - {1}. See:\n{2}",e,t,s+e])},d=function(e){var t,n,o;return t=e[0],e=e.slice(1),n=l(t,e),o=c(t,n),i(new Error(o),{__id:t,__details:n})};return n}},function(e,t,n){var i=n(2),o=n(5),a=n(42),r=n(30),s=n(4),l=n(1),c=n(0).extend,d=n(13).getPublicElement,u=n(6),h=u.getNavigator(),p=n(12),f=n(14),g=n(8),_=n(58),m=n(56),v=n(9),x=n(469),w=n(272),b=n(186),y=n(7).when,C="dxScrollable",k="dxScrollableStrategy",S="dx-scrollable",I="dx-scrollable-disabled",T="dx-scrollable-container",D="dx-scrollable-wrapper",E="dx-scrollable-content",A="vertical",B="horizontal",O="both",M=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"}}]},P=_.inherit({_getDefaultOptions:function(){return c(this.callBase(),{disabled:!1,onScroll:null,direction:A,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(M(),[{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.option("rtlEnabled")),this._savedScrollOffset&&this.scrollTo(this._savedScrollOffset),delete this._savedScrollOffset):this._savedScrollOffset=this.scrollOffset()},_initScrollableMarkup:function(){var e=this.$element().addClass(S),t=this._$container=i("
").addClass(T),n=this._$wrapper=i("
").addClass(D),a=this._$content=i("
").addClass(E);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(this.option("rtlEnabled"))},_updateRtlPosition:function(e){var t=this;this._updateBounds(),e&&this.option("direction")!==A&&s.deferUpdate(function(){var e=t.scrollWidth()-t.clientWidth();s.deferRender(function(){t.scrollTo({left:e})})})},_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(x.init,C),t,this._initHandler.bind(this)),o.on(this._$wrapper,v.addNamespace(x.start,C),e.handleStart.bind(e)),o.on(this._$wrapper,v.addNamespace(x.move,C),e.handleMove.bind(e)),o.on(this._$wrapper,v.addNamespace(x.end,C),e.handleEnd.bind(e)),o.on(this._$wrapper,v.addNamespace(x.cancel,C),e.handleCancel.bind(e)),o.on(this._$wrapper,v.addNamespace(x.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(I,this.option("disabled")),this.option("disabled")?this._lock():this._unlock()},_renderDirection:function(){this.$element().removeClass("dx-scrollable-"+B).removeClass("dx-scrollable-"+A).removeClass("dx-scrollable-"+O).addClass("dx-scrollable-"+this.option("direction"))},_renderStrategy:function(){this._createStrategy(),this._strategy.render(),this.$element().data(k,this._strategy)},_createStrategy:function(){this._strategy=this.option("useNative")?new b(this):new w.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;default:this.callBase(e)}},_resetInactiveDirection:function(){var e=this._getInactiveProp();if(e&&u.hasWindow()){var t=this.scrollOffset();t[e]=0,this.scrollTo(t)}},_getInactiveProp:function(){var e=this.option("direction");return e===A?"left":e===B?"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!==A?-e:void 0,top:i!==B?-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===A?t!==B:e===B?t!==A:t===e},_updateAllowedDirection:function(){var e=this._strategy._allowedDirections();this._isDirection(O)&&e.vertical&&e.horizontal?this._allowedDirectionValue=O:this._isDirection(B)&&e.horizontal?this._allowedDirectionValue=B:this._isDirection(A)&&e.vertical?this._allowedDirectionValue=A:this._allowedDirectionValue=null},_allowedDirection:function(){return this._allowedDirectionValue},_container:function(){return this._$container},$content:function(){return this._$content},content:function(){return d(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 y(this._strategy.update()).done(function(){this._updateAllowedDirection()}.bind(this))},scrollBy:function(e){e=this._normalizeLocation(e),(e.top||e.left)&&(this._updateIfNeed(),this._strategy.scrollBy(e))},scrollTo:function(e){e=this._normalizeLocation(e),this._updateIfNeed();var t=this._location(),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("."+S).length-n.parents("."+E).length===0;if(o&&a){var r={top:0,left:0},s=this.option("direction");s!==A&&(r.left=this._scrollToElementPosition(n,B,t)),s!==B&&(r.top=this._scrollToElementPosition(n,A,t)),this.scrollTo(r)}},_scrollToElementPosition:function(e,t,n){var i=t===A,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"),l=s-r,c=e[i?"outerHeight":"outerWidth"](),d=i?this.scrollTop():this.scrollLeft(),u=i?this.clientHeight():this.clientWidth(),h=d-l+o,p=d-l-c+u-a;return h<=0&&p>=0?d:d-(Math.abs(h)>Math.abs(p)?p:h)},_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,P),e.exports=P,e.exports.deviceDependentOptions=M},function(e,t,n){var i=n(29),o=function(e){var t=e||i().rtlEnabled;return t?"right":"left"};t.getDefaultAlignment=o},function(e,t,n){var i=n(6),o=i.hasWindow()?i.getWindow():{},a=n(66),r=1e3/60,s=function(e){return setTimeout(e,r)},l=function(e){clearTimeout(e)},c=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&&(s=e,l=t),e&&!t){var n={};s=function(t){var i=e.call(o,function(){try{if(i in n)return;t.apply(this,arguments)}finally{delete n[i]}});return i},l=function(e){n[e]=!0}}});t.requestAnimationFrame=function(){return c(),s.apply(o,arguments)},t.cancelAnimationFrame=function(){c(),l.apply(o,arguments)}},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")},a=function(e){var t=o(e),n="dx-icon";switch(t){case"image":return i("").attr("src",e).addClass(n);case"fontIcon":return i("").addClass(n+" "+e);case"dxIcon":return i("").addClass(n+" "+n+"-"+e);default:return null}};t.getImageSourceType=o,t.getImageContainer=a},function(e,t,n){var i=n(172);e.exports=new i},function(e,t,n){var i=n(2),o=n(4).noop,a=n(10),r=n(19),s=n(0).extend,l=n(9),c=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),t.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=c},function(e,t,n){var i=n(57);if(i){var o=n(17),a=n(59).compare;if(a(i.version,[2,3])<0)throw o.Error("E0013");n(323),n(324),n(325),n(326),n(327),n(328),n(329)}},function(e,t,n){var i=n(57),o=n(3).each,a=n(229),r=function(e,t,n){for(var i=[],o=0,a=e.length;o0))return this._currentItem;if(!e)throw h.Error("E3023");this._setCurrentItem(e)},rootUri:function(){return this._currentItem&&this._currentItem.uri},canBack:function(){return!0},saveState:r.noop,restoreState:r.noop,removeState:r.noop}).include(u),x=v.inherit({ctor:function(e){e=e||{},this.callBase(e),this._createNavigationStacks(e),p.add(this._deviceBackInitiated.bind(this)),this._stateStorageKey=e.stateStorageKey||m},init:function(){return this._navigationDevice.init()},_createNavigationDevice:function(e){e.navigationDevice||(e.navigationDevice=new d.StackBasedNavigationDevice),this.callBase(e),this._navigationDevice.backInitiated.add(this._deviceBackInitiated.bind(this))},_uriChangedHandler:function(e){this.navigate(e)},_createNavigationStacks:function(e){this.navigationStacks={},this._keepPositionInStack=e.keepPositionInStack,this.currentStack=new w},_deviceBackInitiated:function(){f()?this._syncUriWithCurrentNavigationItem():this.back({isHardwareButton:!0})},_getDefaultOptions:function(){return{target:_.blank}},_createNavigationStack:function(){var e=new w;return e.itemsRemoved.add(this._removeItems.bind(this)),e},_setCurrentItem:function(e){this._setCurrentStack(e.stack),this.currentStack.currentItem(e),this.callBase(e),this._syncUriWithCurrentNavigationItem()},_setCurrentStack:function(e){var t,n;"string"==typeof e?(n=e,n in this.navigationStacks||(this.navigationStacks[n]=this._createNavigationStack()),t=this.navigationStacks[n]):(t=e,n=s.map(this.navigationStacks,function(t,n){return t===e?n:null})[0]),this.currentStack=t,this.currentStackKey=n},_getViewTargetStackKey:function(e,t){var n;if(t)if(void 0!==this.navigationStacks[e])n=e;else{for(var i in this.navigationStacks)if(this.navigationStacks[i].items[0].uri===e){n=i;break}n=n||e}else n=this.currentStackKey||e;return n},_updateHistory:function(e,t){var n=t.root,i=n,o=!1,a=this.currentStack,r=void 0!==t.keepPositionInStack?t.keepPositionInStack:this._keepPositionInStack;if(t.stack=t.stack||this._getViewTargetStackKey(e,n),this._setCurrentStack(t.stack),!n&&this.currentStack.items.length||(o=this.currentStack===a,i=!0),n&&this.currentStack.items.length)r&&!o||(this.currentStack.currentIndex=0,this.currentItem().uri!==e&&this.currentStack.navigate(e,!0)),t.direction=t.direction||"none";else{var s=this.currentStack.currentIndex,l=this.currentItem()||{};switch(t.target){case _.blank:this.currentStack.navigate(e);break;case _.current:this.currentStack.navigate(e,!0);break;case _.back:this.currentStack.currentIndex>0?this.currentStack.back(e):this.currentStack.navigate(e,!0);break;default:throw h.Error("E3006",t.target)}if(void 0===t.direction){var c=this.currentStack.currentIndex-s;c<0?t.direction=this.currentStack.currentItem().backDirection||"backward":c>0&&this.currentStack.currentIndex>0?t.direction="forward":t.direction="none"}l.backDirection="forward"===t.direction?"backward":"none"}t.root=i,this._currentItem=this.currentStack.currentItem(),this._syncUriWithCurrentNavigationItem()},_removeItems:function(e){var t=this;s.each(e,function(e,n){t.fireEvent("itemRemoved",[n])})},back:function(e){e=e||{};var t=c({cancel:!1},e);if(this.fireEvent("navigatingBack",[t]),t.cancel)return void this._syncUriWithCurrentNavigationItem();var n=this.previousItem(t.stack);n?this.navigate(n.uri,{stack:t.stack,target:_.back,item:n}):this.callBase()},rootUri:function(){return this.currentStack.items.length?this.currentStack.items[0].uri:this.callBase()},canBack:function(e){var t=e?this.navigationStacks[e]:this.currentStack;return!!t&&t.canBack()},saveState:function(e){if(this.currentStack.items.length){var t={navigationStacks:{},currentStackKey:this.currentStackKey};s.each(this.navigationStacks,function(e,n){var i={};t.navigationStacks[e]=i,i.currentIndex=n.currentIndex,i.items=s.map(n.items,function(e){return{key:e.key,uri:e.uri}})});var n=JSON.stringify(t);e.setItem(this._stateStorageKey,n)}else this.removeState(e)},restoreState:function(e){if(!this.disableRestoreState){var t=e.getItem(this._stateStorageKey);if(t)try{var n=this,i=JSON.parse(t);s.each(i.navigationStacks,function(e,t){var i=n._createNavigationStack();n.navigationStacks[e]=i,i.currentIndex=t.currentIndex,i.items=s.map(t.items,function(e){return e.stack=i,e})}),this.currentStackKey=i.currentStackKey,this.currentStack=this.navigationStacks[this.currentStackKey],this._currentItem=this.currentStack.currentItem(),this._navigationDevice.setUri(this.currentItem().uri),this._forceNavigate=!0}catch(t){throw this.removeState(e),h.Error("E3007")}}},removeState:function(e){e.removeItem(this._stateStorageKey)},currentIndex:function(){return this.currentStack.currentIndex},previousItem:function(e){var t=this.navigationStacks[e]||this.currentStack;return t.previousItem()},getItemByIndex:function(e){return this.currentStack.items[e]},clearHistory:function(){this._createNavigationStacks({keepPositionInStack:this._keepPositionInStack})},itemByKey:function(e){var t;return s.each(this.navigationStacks,function(n,i){var o=i.itemByKey(e);if(o)return t=o,!1}),t},currentItem:function(e){var t;return arguments.length>0?("string"==typeof e?t=this.itemByKey(e):l(e)&&(t=e),void this.callBase(t)):this.callBase()}}),w=o.inherit({ctor:function(e){e=e||{},this.itemsRemoved=a(),this.clear()},currentItem:function(e){if(!e)return this.items[this.currentIndex];for(var t=0;t1?this.items[this.currentIndex-1]:void 0},canBack:function(){return this.currentIndex>0},clear:function(){this._deleteItems(this.items),this.items=[],this.currentIndex=-1},back:function(e){if(this.currentIndex--,this.currentIndex<0)throw h.Error("E3008");var t=this.currentItem();t.uri!==e&&this._updateItem(this.currentIndex,e)},forward:function(){ if(this.currentIndex++,this.currentIndex>=this.items.length)throw h.Error("E3009")},navigate:function(e,t){if(!(this.currentIndex-1&&this.items[this.currentIndex].uri===e)){if(t&&this.currentIndex>-1&&this.currentIndex--,this.currentIndex+10},o=0;o1&&!!e._getOptionsByReference()[i[0]]})},c=function(e,t,n){var o=i(e._options,t,!1);e._optionValuesEqual(t,o,n)||(e._initialized&&e._optionChanging(t,o,n),l(e,t,n),e._notifyOptionChanged(t,n,o))};return function(t,n){var o=this,a=t;if(arguments.length<2&&"object"!==h.type(a))return a=e(o,a),i(o._options,a);"string"==typeof a&&(t={},t[a]=n),o.beginUpdate();try{var r;for(r in t)s(o,t,r,t[r]);for(r in t)c(o,r,t[r])}finally{o.endUpdate()}}}(),_getOptionValue:function(e,t){var n=this.option(e);return v(n)?n.bind(t)():n}}).include(g);e.exports=y},function(e,t,n){var i=n(2),o=n(10),a=n(0).extend,r=n(4),s=n(1),l=n(3),c=n(31),d=n(138),u=n(7),h=u.when,p=u.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),a&&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=d.presets.getPreset(o)}if(e)if(s.isFunction(e[n]))i=e[n];else{if(i=a({skipElementInitialStyles:!0,cleanupWhen:this._completePromise},e,t),!i.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=c.createAnimation(e,t):s.isFunction(t)&&(i=t(e,n)),i},_startAnimations:function(){for(var e=this._animations,t=0;t=t.time-this._tickData.time}},d={defaultItemSizeFunc:function(){return this.getElement().height()},getBounds:function(){return[this._maxTopOffset,this._maxBottomOffset]},calcOffsetRatio:function(e){var t=i.eventData(e);return(t.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}},u={horizontal:c,vertical:d},h=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),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(),i=n.getBounds.call(this);return e<-i[0]?t?(-2*i[0]+e)/3:-i[0]:e>i[1]?t?(2*i[1]+e)/3:i[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:h,events:[r,s,l]}),t.swipe=s,t.start=r,t.end=l},function(e,t,n){var i=n(454),o=n(8);o("dxList",i),e.exports=i},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(10),s=n(123),l=n(9),c="dxListEditDecorator",d=l.addNamespace(s.start,c),u=l.addNamespace(s.swipe,c),h=l.addNamespace(s.end,c),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,d,t,this._itemSwipeStartHandler.bind(this)),o.on(e.$itemElement,u,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){var i=n(2),o=n(5),a=n(14),r=n(0).extend,s=n(67),l=n(46),c=n(8),d=n(9),u=n(20),h=n(18),p="dx-checkbox",f="dx-checkbox-icon",g="dx-checkbox-checked",_="dx-checkbox-container",m="dx-checkbox-text",v="dx-checkbox-has-text",x="dx-checkbox-indeterminate",w=100,b=l.inherit({_supportedKeys:function(){var e=function(e){e.preventDefault(),this._clickAction({event:e})};return r(this.callBase(),{space: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}},{device:function(){return u.isAndroid5()},options:{useInkRipple:!0}}])},_feedbackHideTimeout:w,_initMarkup:function(){this._renderSubmitElement(),this._$container=i("
").addClass(_),this.setAria("role","checkbox"),this.$element().addClass(p),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("").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("").addClass(f).prependTo(this._$container)},_renderText:function(){var e=this.option("text");return e?(this._$text||(this._$text=i("").addClass(m)),this._$text.text(e),this._$container.append(this._$text),void this.$element().addClass(v)):void(this._$text&&(this._$text.remove(),this.$element().removeClass(v)))},_renderClick:function(){var e=this,t=d.addNamespace(h.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(g,Boolean(t)),e.toggleClass(x,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)}}});c("dxCheckBox",b),e.exports=b},function(e,t,n){var i=n(2),o=n(5),a=n(4),r=n(1),s=r.isDefined,l=r.isPromise,c=n(0).extend,d=n(11).inArray,u=n(3).each,h=n(7),p=n(13).getPublicElement,f=h.Deferred,g=n(17),_=n(67),m=n(15),v=n(8),x=n(9),w=n(41),b=n(209),y=n(20),C=n(18),k=".dx-state-disabled",S="dx-selectbox",I="dx-selectbox-popup",T="dx-selectbox-container",D="dx-selectbox-popup-wrapper",E=b.inherit({_supportedKeys:function(){var e=this,t=this.callBase(),n=function(e){var t=this._isEditable();t?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 c({},t,{tab:function(){this.option("opened")&&"instantly"===this.option("applyValueMode")&&this._cleanInputSelection(),this._wasSearch()&&this._clearFilter(),t.tab.apply(this,arguments)},upArrow:function(){if(t.upArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(-1),!0},downArrow:function(){if(t.downArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(1),!0},leftArrow:function(){i(),t.leftArrow.apply(this,arguments)},rightArrow:function(){i(),t.rightArrow.apply(this,arguments)},home:function(){i(),t.home.apply(this,arguments)},end:function(){i(),t.end.apply(this,arguments)},escape:function(){t.escape.apply(this,arguments),this._cancelEditing()},enter:function(e){if(""===this._input().val()&&this.option("value")&&this.option("allowClearing"))this.option({selectedItem:null,value:null}),this.close();else{if(this.option("acceptCustomValue"))return e.preventDefault(),this.option("opened");if(t.enter.apply(this,arguments))return this.option("opened")}},backspace:n,del:n})},_getDefaultOptions:function(){return c(this.callBase(),{placeholder:m.format("Select"),fieldTemplate:null,valueChangeEvent:"change",acceptCustomValue:!1,onCustomItemCreating:function(e){s(e.customItem)||(e.customItem=e.text)},showSelectionControls:!1,autocompletionEnabled:!0,allowClearing:!0,tooltipEnabled:!1,openOnFieldClick:!0,showDropDownButton:!0,displayCustomValue:!1,_isAdaptablePopupPosition:!1,useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return y.isWin8()},options:{_isAdaptablePopupPosition:!0,popupPosition:{at:"left top",offset:{h:0,v:0}}}},{device:function(){return y.isAndroid5()},options:{_isAdaptablePopupPosition:!0,popupPosition:{offset:{h:-16,v:-8}},useInkRipple:!0}}])},_init:function(){this.callBase(),this._initCustomItemCreatingAction()},_initMarkup:function(){this._renderSubmitElement(),this.$element().addClass(S),this._renderTooltip(),this.option("useInkRipple")&&this._renderInkRipple(),this.callBase(),this._$container.addClass(T)},_renderSubmitElement:function(){this._$submitElement=i("").attr("type","hidden").appendTo(this.$element())},_renderInkRipple:function(){this._inkRipple=_.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(I)},_popupWrapperClass:function(){return this.callBase()+" "+D},_cancelEditing:function(){!this.option("searchEnabled")&&this._list&&(this._focusListElement(null),this._updateField(this.option("selectedItem")))},_closeOutsideDropDownHandler:function(e){return this._cancelEditing(),this.callBase(e)},_renderOpenedState:function(){this.callBase(),this.option("opened")&&(this._scrollToSelectedItem(),this._focusSelectedElement())},_focusSelectedElement:function(){var e=this._searchValue();if(!e)return void this._focusListElement(null);var t=this._list._itemElements(),n=d(this.option("selectedItem"),this.option("items")),i=n>=0&&!this._isCustomItemSelected()?t.eq(n):null;this._focusListElement(i)},_renderFocusedElement:function(){if(this._list){var e=this._searchValue();if(!e||this.option("acceptCustomValue"))return void this._focusListElement(null);var t=this._list._itemElements(),n=t.not(k).eq(0);this._focusListElement(n)}},_focusListElement:function(e){this._preventInputValueRender=!0,this._list.option("focusedElement",p(e)),delete this._preventInputValueRender},_scrollToSelectedItem:function(){this._list.scrollToItem(this._list.option("selectedItem"))},_listContentReadyHandler:function(){this.callBase();var e=this._dataSource&&this._dataSource.paginate();e&&this._needPopupRepaint()||this._scrollToSelectedItem()},_renderValue:function(){this._renderInputValue(),this._setSubmitValue()},_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(),this._refreshSelected()},_renderInputValueImpl:function(){this._renderInputAddons()},_fitIntoRange:function(e,t,n){return e>n?t:e",!0).toArray();return t},_getSelectedIndex:function(){var e=this._items(),t=this.option("selectedItem"),n=-1;return u(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=!s(e)&&this._isCustomValueAllowed()?this.option("value"):e,this.callBase(e)},_listConfig:function(){var e=c(this.callBase(),{pageLoadMode:"scrollBottom",onSelectionChanged:this._getSelectionChangeHandler(),selectedItem:this.option("selectedItem"), onFocusedItemChanged:this._listFocusedItemChangeHandler.bind(this)});return this.option("showSelectionControls")&&c(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){var t=this._getTemplateByOption("fieldTemplate");return t&&this.option("fieldTemplate")?void this._renderInputAddons():void this._renderDisplayText(this._displayGetter(e))},_getSelectionChangeHandler:function(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):a.noop},_selectionChangeHandler:function(e){u(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"),e||this._restoreInputText(),this._wasSearch()&&e)if(this._wasSearch(!1),this.option("showDataBeforeSearch")||0===this.option("minSearchLength")){if(this._searchTimer)return;var t=this._getActualSearchValue();t&&this._wasSearch(!0),this._filterDataSource(t||null)}else this._setListOption("items",[]);this.callBase(e)}},_renderTooltip:function(){this.option("tooltipEnabled")&&this.$element().attr("title",this.option("displayValue"))},_renderDimensions:function(){this.callBase(),this._setPopupOption("width")},_restoreInputText:function(){this._loadItemDeferred&&this._loadItemDeferred.always(function(){if(!this.option("acceptCustomValue")){if(this.option("searchEnabled")&&!this._searchValue()&&this.option("allowClearing"))return void this._clearTextValue();var e=this.option("selectedItem");(this._displayGetter(e)||"").toString()!==this._searchValue()&&this._renderInputValue().always(function(t){var n=a.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)},_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._saveValueChangeEvent(e.event),this._wasSearch()&&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)},_completeSelection:function(e){this._setValue(e)},_clearValueHandler:function(e){this._saveValueChangeEvent(e),this.reset()},_loadItem:function(e,t){var n=this,i=new f;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=a.ensureDefined(n,t.customItem);return s(n)&&g.log("W0015","onCustomItemCreating","customItem"),i},_customItemAddedHandler:function(){var e=this._searchValue(),t=this._createCustomItem(e);if(void 0===t)throw this._renderValue(),g.Error("E0121");l(t)?h.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._setValue(this._valueGetter(e)),this._renderDisplayText(this._displayGetter(e)),null===e&&this._wasSearch()&&this._filterDataSource(null))},_createClearButton:function(){var e=x.addNamespace(C.name,this.NAME),t=this.callBase();return o.on(t,e,function(){return!1}),t},_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())return void delete this._preventSubstitution;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})}}},_cleanInputSelection:function(){var e=this._input().get(0),t=e.value.length;e.selectionStart=t,e.selectionEnd=t},_dispose:function(){this._renderInputValueAsync=a.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)}}});v("dxSelectBox",E),e.exports=E},function(e,t,n){var i=n(2),o=n(37).beforeCleanData,a=n(5),r=n(61),s="dxremove",l="dxRemoveEvent";o(function(e){e=[].slice.call(e);for(var t=0;t").addClass(b).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)&&u(e.to,{position:this._getContainerPosition()}),this.callBase.apply(this,arguments)},_stopAnimation:function(){this.callBase.apply(this,arguments)},_renderTitle:function(){this._wrapper().toggleClass(y,!this.option("showTitle")),this.callBase()},_renderPosition:function(){this.callBase(),this._renderOverlayPosition()},_renderOverlayBoundaryOffset:f,_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._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=d.pairToObject(this._position.offset||""),t=e.h,n=e.v,i=this._isPopoverInside(),o=(i?-1:1)*k[this._positionSide],a=this._getContentBorderWidth(this._positionSide);return this._isVerticalSide()?n+=o*(this._$arrow.height()-a):this._isHorizontalSide()&&(t+=o*(this._$arrow.width()-a)),u({},this._position,{offset:t+" "+n})},_getContentBorderWidth:function(e){var t=this._$content.css(I[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()?C[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(C[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](),c=s[n],d=this._$content[i](),u=r[n],h=a.get(0).preventDefault?0:a[i](),f=Math.max(c,u),g=Math.min(c+d,u+h);t="start"===this.option("arrowPosition")?f-c:"end"===this.option("arrowPosition")?g-c-l:(f+g)/2-c-l/2;var m=this._getContentBorderWidth(e),v=_.fitIntoRange(t-m+this.option("arrowOffset"),m,d-l-2*m);this._$arrow.css(n,v)},_isPopoverInside:function(){var e=this._transformStringPosition(this.option("position"),S),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=u({},this._transformStringPosition(this.option("position"),S));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=k[t.h]===k[n.h]&&k[t.v]===k[n.v]?-1:1,o=Math.abs(k[t.h]-i*k[n.h]),a=Math.abs(k[t.v]-i*k[n.v]);return o>a?n.h:n.v},_isVerticalSide:function(e){return e=e||this._positionSide,"top"===e||"bottom"===e},_isHorizontalSide:function(e){return e=e||this._positionSide,"left"===e||"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=D(e.previousValue);this.hide(),B(this,this.option("target"),t,n),A(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()}});c("dxPopover",O),e.exports=O},function(e,t,n){function i(e){var t=String(e).toUpperCase();if(h(t,V)!==-1)return t}function o(e){return"SVG"===e?x.getData:"PDF"===e?w.getData:v.getData}function a(e,t,n){e&&e.hide(),_.export(t(),n,o(n.format)),e&&e.show()}function r(e,t){var n,i=p.openWindow();i&&(i.document.open(),i.document.write(e),i.document.close(),n=i.document.body.getElementsByTagName("svg")[0],n&&(n.style.backgroundColor=t),i.print(),i.close())}function s(e,t,n){var i,o={},a=S-D,r=S+T+O+n*B;return o.rect={width:D-2*O,height:B,x:a+O,y:r},o.text={x:a+(e.rtl?D-A:A),y:r+B-E},"printing"===t&&(i="M "+a+" "+(r+B-O)+" L "+(a+D)+" "+(r+B-O),o.separator={stroke:e.button.default.borderColor,"stroke-width":O,cursor:"pointer",sharp:"v",d:i}),o}function l(e,t,n){var i,o={},a=n.type,r=n.format,l=s(t,a,n.itemIndex),c=f(t.font),d=e.rect(),u=e.text(n.text);return c["pointer-events"]="none",i=e.g().attr({"class":F+"-list-item"}),o[L]=a,r&&(o[H]=r),d.attr(l.rect).css({cursor:"pointer","pointer-events":"all"}).data(o),d.on(y.start+".export",function(){d.attr({fill:t.button.hover.backgroundColor})}).on(y.end+".export",function(){d.attr({fill:null})}),d.append(i),u.css(c).attr(l.text).append(i),"printing"===a&&e.path(null,"line").attr(l.separator).append(i),{g:i,rect:d,resetState:function(){d.attr({fill:null})},fixPosition:function(){var e=u.getBBox(),n=l.text.x-e.x;t.rtl&&(n-=e.width),u.move(n)}}}function c(e,t){var n=t.formats,o=[];return t.printingEnabled&&o.push(l(e,t,{type:"printing",text:m.format("vizExport-printingButtonText"),itemIndex:o.length})),o=n.reduce(function(n,o){return o=i(o),o&&n.push(l(e,t,{type:"exporting",text:m.getFormatter("vizExport-exportButtonText")(o),format:o,itemIndex:n.length})),n},o)}function d(e,t,n,o){return{format:i(o||t.format)||"PNG",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")}}var u=n(0).extend,h=n(11).inArray,p=n(6),f=n(16).patchFontOptions,g=u,_=n(189),m=n(15),v=_.image,x=_.svg,w=_.pdf,b=n(1).isDefined,y=n(157),C=n(25),k=[C.down,C.move].join(" "),S=35,I=[[9,12,26,12,26,14,9,14],[9,17,26,17,26,19,9,19],[9,22,26,22,26,24,9,24]],T=4,D=120,E=8,A=15,B=30,O=1,M=10,P=2,R=3,V=["PNG","PDF","JPEG","SVG","GIF"],F="dx-export-menu",L="export-element-type",H="export-element-format";t.exportFromMarkup=function(e,t){t.format=i(t.format)||"PNG",t.fileName=t.fileName||"file",t.exportingAction=t.onExporting,t.exportedAction=t.onExported,t.fileSavingAction=t.onFileSaving,t.margin=b(t.margin)?t.margin:M,_.export(e,t,o(t.format))},t.getMarkup=function(e){var t=[],n=0,i=0;return e.forEach(function(e){var o=e.getSize();t.push(e.svg().replace("","")),n+=o.height,i=Math.max(i,o.width)}),''+t.join("")+""},t.ExportMenu=function(e){var t=this,n=t._renderer=e.renderer;t._incidentOccurred=e.incidentOccurred,t._svgMethod=e.svgMethod,t._shadow=n.shadowFilter("-50%","-50%","200%","200%",P,6,R),t._shadow.attr({opacity:.8}),t._group=n.g().attr({"class":F}).linkOn(n.root,{name:"export-menu",after:"peripheral"}),t._buttonGroup=n.g().attr({"class":F+"-button"}).append(t._group),t._listGroup=n.g().attr({"class":F+"-list"}).append(t._group),t._overlay=n.rect(-D+S,S+T,D,0),t._overlay.attr({"stroke-width":O,cursor:"pointer",rx:4,ry:4,filter:t._shadow.id}),t._overlay.data({"export-element-type":"list"}),t._subscribeEvents()},g(t.ExportMenu.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+=M,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){var i;return this._options.exportOptions.width=n.width,this._options.exportOptions.height=n.height,this._group.move(e-S-P-R+n.left,Math.floor(t/2-S/2)),i=this.getLayoutOptions(),(i.width>e||i.height>t)&&this.freeSpace(),this},show:function(){this._group.linkAppend()},hide:function(){this._group.linkRemove()},setOptions:function(e){this._options=e,e.formats=e.formats||V,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(){var e=this;e._unsubscribeEvents(),e._group.linkRemove().linkOff(),e._group.dispose(),e._shadow.dispose(),e._shadow=e._group=e._listGroup=e._buttonGroup=e._button=null,e._options=null},layoutOptions:function(){var e=this._options;return e.enabled&&{horizontalAlignment:"right",verticalAlignment:"top",weak:!0}},measure:function(){return this._fillSpace(),[S+P,S]},move:function(e){this._group.attr({translateX:Math.round(e[0]),translateY:Math.round(e[1])})},_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){e.resetState()})},_showList:function(){this._listGroup.append(this._group),this._listShown=!0,this._menuItems.forEach(function(e){e.fixPosition()})},_setButtonState:function(e){var t=this,n=t._options.button[e];this._button.attr({stroke:n.borderColor,fill:n.backgroundColor}),this._icon.attr({fill:n.color})},_subscribeEvents:function(){var e=this;e._renderer.root.on(C.up+".export",function(t){var n,i=t.target[L],o=e._options;return i?void("button"===i?e._listShown?(e._setButtonState("default"),e._hideList()):(e._setButtonState("focus"),e._showList()):"printing"===i?(e.hide(),r(e._svgMethod(),o.backgroundColor),e.show(),e._hideList()):"exporting"===i&&(n=g({},o.exportOptions,{format:t.target[H]}),a(e,function(){return e._svgMethod()},n),e._hideList())):void(e._button&&e._hideList())}),e._listGroup.on(k,function(e){e.stopPropagation()}),e._buttonGroup.on(C.enter,function(){e._setButtonState("hover")}),e._buttonGroup.on(C.leave,function(){e._setButtonState(e._listShown?"focus":"default")}),e._buttonGroup.on(C.down+".export",function(){e._setButtonState("active")})},_unsubscribeEvents:function(){this._renderer.root.off(".export"),this._listGroup.off(),this._buttonGroup.off()},_updateButton:function(){var e=this,t=e._renderer,n=e._options,i={fill:n.button.default.color,cursor:"pointer"},o={"export-element-type":"button"};e._button||(e._button=t.rect(0,0,S,S).append(e._buttonGroup),e._button.attr({rx:4,ry:4,fill:n.button.default.backgroundColor,stroke:n.button.default.borderColor,"stroke-width":1,cursor:"pointer"}),e._button.data(o),e._icon=t.path(I).append(e._buttonGroup),e._icon.attr(i),e._icon.data(o),e._buttonGroup.setTitle(m.format("vizExport-titleMenuText")))},_updateList:function(){var e=this,t=e._options,n=t.button.default,i=e._listGroup,o=c(e._renderer,t);e._shadow.attr({color:t.shadowColor}),e._overlay.attr({height:o.length*B+2*O,fill:n.backgroundColor,stroke:n.borderColor}),i.clear(),e._overlay.append(i),o.forEach(function(e){e.g.append(i)}),e._menuItems=o}}),t.plugin={name:"export",init:function(){var e=this;e._exportMenu=new t.ExportMenu({renderer:e._renderer,svgMethod:function(){return e.svg()},incidentOccurred:e._incidentOccurred}),e._layout.add(e._exportMenu)},dispose:function(){this._exportMenu.dispose(),this._exportMenu=null},extenders:{_change_LAYOUT:function(){this._exportMenu&&this._exportMenu.setOptions(this._getExportMenuOptions())}},members:{_getExportMenuOptions:function(){var e=this._getOption("export")||{},t=d(this,e);return g({},e,{exportOptions:t,rtl:this._getOption("rtlEnabled",!0)})},exportTo:function(e,t){var n=this,i=d(n,n._getOption("export")||{},e,t);a(n._exportMenu,function(){return n.svg()},i)},print:function(){r(this.svg(),this._getOption("export").backgroundColor)}},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"}}},function(e,t,n){function i(){return!0}function o(){return!1}function a(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)}function r(e){var t,n=function(){clearTimeout(t),t=setTimeout(e,100)};return n.dispose=function(){return clearTimeout(t),this},n}function s(e){e.component.hasEvent("incidentOccurred")||S.apply(null,[e.target.id].concat(e.target.args||[]))}function l(e){return e.reduce(function(e,t){return t>0&&!e?t:e},0)}function c(e,t){function n(n){var i=e[n];o[i.name]=t(n)}function i(e,t,n){o[e](t),n&&n()}var o={};f(e,function(e,t){t.name&&n(e)});var a;return i.change=function(t){var n=e[t];return n&&((a=a||{})[t]=n),!!n},i.applyChanges=function(){a&&(f(a,function(e,t){n(t.newName||e)}),a=null)},i.dispose=function(){e=t=o=null},i}var d=n(4).noop,u=n(6),h=n(12),p=n(1),f=n(3).each,g=n(120),_=n(121),m=n(39).format,v=n(1).isObject,x=n(0).extend,w=Math.floor,b=n(58),y=n(164),C=n(16).parseScalar,k=n(649),S=k.log,I=n(200),T=n(651),D="rtlEnabled",E="dx-sized-element",A=b.prototype.option,B=function(e,t){function n(n,i){t("incidentOccurred",{target:{id:n,type:"E"===n[0]?"error":"warning",args:i,text:m.apply(null,[k.ERROR_MESSAGES[n]].concat(i||[])),widget:e,version:g}})}return n},O=function(){var e={};e.ctor=function(e,t){this.callBase(e,t);var n=h.createElement("div"),i=t&&p.isNumeric(t.width)?t.width+"px":"100%",o=t&&p.isNumeric(t.height)?t.height+"px":this._getDefaultSize().height+"px";h.setStyle(n,"width",i),h.setStyle(n,"height",o),h.setClass(n,E),h.insertElement(e,n)};var t=b.inherit(e),n=t.inherit;return t.inherit=function(e){for(var t in e)(p.isFunction(e[t])&&"_"!==t.substr(0,1)||"_dispose"===t||"_optionChanged"===t)&&(e[t]=d);return n.call(this,e)},t},M=!u.hasWindow();e.exports=M?O():b.inherit({_eventsMap:{onIncidentOccurred:{name:"incidentOccurred"},onDrawn:{name:"drawn"}},_getDefaultOptions:function(){return x(this.callBase(),{onIncidentOccurred:s})},_useLinks:!0,_init:function(){var e,t=this;t._$element.children("."+E).remove(),t.callBase.apply(t,arguments),t._changesLocker=0,t._changes=y.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&&e.enableLinks().virtualLink("core").virtualLink("peripheral"),t._renderVisibilityChange(),t._attachVisibilityChangeHandlers(),t._initEventTrigger(),t._incidentOccurred=B(t.NAME,t._eventTrigger),t._layout=new T,e&&e.linkAfter("core"),t._initPlugins(),t._initCore(),e&&e.linkAfter(),t._change(t._initialChanges)},_initialChanges:["LAYOUT","RESIZE_HANDLER","THEME"],_initPlugins:function(){var e=this;f(e._plugins,function(t,n){n.init.call(e)})},_disposePlugins:function(){var e=this;f(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())},_applyQueuedOptions:function(){var e=this,t=e._optionsQueue;e._optionsQueue=null,e.beginUpdate(),f(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;e0&&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:x(!0,{},n,i)},_setupResizeHandler:function(){var e=this,t=C(this._getOption("redrawOnResize",!0),!0);e._resizeHandler&&e._removeResizeHandler(),e._resizeHandler=r(function(){t?e._requestChange(["CONTAINER_SIZE"]):e._renderer.fixPlacement()}),_.add(e._resizeHandler)},_removeResizeHandler:function(){this._resizeHandler&&(_.remove(this._resizeHandler),this._resizeHandler.dispose(),this._resizeHandler=null)},_onBeginUpdate:d,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||v(e))?(t._optionsQueue=t._optionsQueue||[],void t._optionsQueue.push(t._getActionForUpdating(arguments))):A.apply(t,arguments)},_getActionForUpdating:function(e){var t=this;return t._deprecatedOptionsSuppressed?function(){t._suppressDeprecatedWarnings(),A.apply(t,e),t._resumeDeprecatedWarnings()}:function(){A.apply(t,e)}},_clean:d,_render:d,_optionChanged:function(e){var t=this;t._eventTrigger.change(e.name)?t._change(["EVENTS"]):t._optionChangesMap[e.name]?t._change([t._optionChangesMap[e.name]]):t.callBase.apply(t,arguments)},_optionChangesMap:{size:"CONTAINER_SIZE",margin:"CONTAINER_SIZE",redrawOnResize:"RESIZE_HANDLER",theme:"THEME",rtlEnabled:"THEME",encodeHtml:"THEME",elementAttr:"ELEMENT_ATTR"},_visibilityChanged:function(){this.render()},_setThemeAndRtl:function(){this._themeManager.setTheme(this.option("theme"),this.option(D))},_getRendererOptions:function(){return{rtl:this.option(D),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",{})}}),y.replaceInherit(e.exports)},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 h(e,function(e,n){t+=n}),t}function a(e){return u(e,[M,O,E,A,B])!==-1}function r(e,t){return o(x(e,function(e){return(e-t)*(e-t)}))/e.length}function s(e,t,n){var i=n.getOptions().valueErrorBar,o=n.getValueFields()[0],a=i.lowValueField||D,r=i.highValueField||T;if(n.areErrorBarsVisible()&&void 0===i.type){var s=t.reduce(function(e,t){return m(t[a])&&(e[0]+=t[o]-t[a],e[1]++),m(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}function l(e,t,n){var i=n.getOptions().valueErrorBar,o=i.lowValueField||D,a=i.highValueField||T;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}function c(e){return function(t,n){var o=t.intervalStart,a=t.data,r=n.getValueFields()[0],s=a[0];return s=a.reduce(function(t,n){var i=n[r];return null===t[r]&&(t=n),null!==i&&e(i,t[r])?n:t},s),d({},s,i({},n.getArgumentField(),o))}}var d=n(0).extend,u=n(11).inArray,h=n(3).each,p=n(420),f=n(1),g=n(16),_=n(4).noop,m=f.isDefined,v=f.isString,x=g.map,w=g.normalizeEnum,b=Math,y=b.abs,C=b.sqrt,k=b.max,S=12,I=400,T="highError",D="lowError",E="variance",A="stddeviation",B="stderror",O="percent",M="fixed",P="undefined",R="discrete",V="logarithmic",F="datetime";t.chart={},t.polar={};var L={_defaultDuration:I,_defaultTrackerWidth:S,_applyStyle:_,_updateOptions:_,_parseStyle:_,_prepareSegment:_,_drawSegment:_,_appendInGroup:function(){this._group.append(this._extGroups.seriesGroup)},_createLegendState:function(e,t){return{fill:e.color||t,hatching:e.hatching?d({},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&&(a(w(e.type))||m(e.lowValueField)||m(e.highValueField))},_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=d(!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: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){return m(e.argument)&&void 0!==e.value&&e.value===e.value},getErrorBarRangeCorrector:function(){var e,t;return this.areErrorBarsVisible()&&(e=w(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 p.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||D,a=r.highValueField||T}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 this.valueAxisType!==R&&this.valueAxisType!==V&&this.valueType!==F},_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;h(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],l=o.reduce(function(e,t){var n=t[r];return m(n)?(e[0]+=n,e[1]++):null===n&&e[2]++,e},[0,0,0]);return s((n={},i(n,r,l[2]===o.length?null:l[0]/l[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]),c=s[0];if(s[1]===a.length&&(c=null),s[2]!==a.length)return l((n={},i(n,r,c),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 n={},i(n,t.getArgumentField(),a),i(n,r,o.filter(function(e){return void 0!==e[r]}).length),n},min:c(function(e,t){return et})},_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,v(e)&&o.push(e),v(t)&&o.push(t)),o},_calculateErrorBars:function(e){if(this.areErrorBarsVisible()){var t,n,i,a,s,l=this,c=l._options,d=c.valueErrorBar,u=w(d.type),p=parseFloat(d.value),f=l.getValueFields()[0],g=d.lowValueField||D,_=d.highValueField||T,v=function(e,n){t=n.value,n.lowError=t-p,n.highError=t+p};switch(u){case M:s=v;break;case O:s=function(e,n){t=n.value;var i=t*p/100;n.lowError=t-i,n.highError=t+i};break;case P:s=function(e,t){t.lowError=t.data[g],t.highError=t.data[_]};break;default:switch(n=x(e,function(e){return m(e.data[f])?e.data[f]:null}),i=n.length,p=p||1,u){case E:p=r(n,o(n)/i)*p,s=v;break;case A:a=o(n)/i,p=C(r(n,a))*p,s=function(e,t){t.lowError=a-p,t.highError=a+p};break;case B:p=C(r(n,o(n)/i)/i)*p,s=v}}s&&h(e,s)}},_patchMarginOptions:function(e){var t=this._getCreatingPointOptions(),n=t.styles,i=[n.normal,n.hover,n.selection].reduce(function(e,t){return k(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}};t.chart=d({},L,{drawTrackers:function(){var e,t,n=this,i=n._segments||[],o=n._options.rotated,a=[];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),h(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=a,h(n.getVisiblePoints(),function(e,t){var n=parseInt(o?t.vy:t.vx);a[n]?Array.isArray(a[n])?a[n].push(t):a[n]=[a[n],t]:a[n]=t}))},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=i&&(n=i,r=t)}))}return r},_applyVisibleArea:function(){var e=this,t=e._options.rotated,n=(t?e.getValueAxis():e.getArgumentAxis()).getTranslator().getCanvasVisibleArea(),i=(t?e.getArgumentAxis():e.getValueAxis()).getTranslator().getCanvasVisibleArea();e._visibleArea={minX:n.min,maxX:n.max,minY:i.min,maxY:i.max}}}),t.polar=d({},L,{drawTrackers:function(){t.chart.drawTrackers.call(this);var e,n=this._trackersTranslator;this.isVisible()&&(h(n,function(t,n){if(n)return e=t,!1}),n[e+360]=n[e])},getNeighborPoint:function(e,n){var i=g.convertXYToPolar(this.getValueAxis().getCenter(),e,n);return t.chart.getNeighborPoint.call(this,i.phi,i.r)},_applyVisibleArea:function(){var e=this,t=e.getValueAxis().getCanvas();e._visibleArea={minX:t.left,maxX:t.width-t.right,minY:t.top,maxY:t.height-t.bottom}}})},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(10),a=n(0).extend,r=n(1),s=n(3).each,l=n(149),c=r.isString,d=n(16).parseScalar,u=n(49),h=u.getTheme,p=u.addCacheItem,f=u.removeCacheItem,g=a,_=s;n(662),n(663),n(664),n(665),n(666),n(667),n(668),n(669),n(670),n(671),n(672),n(673),t.BaseThemeManager=o.inherit({ctor:function(){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,c(t)?{}:t),e._initializeTheme(),d(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 new l.Palette(e,t,this._defaultPalette)},createDiscretePalette:function(e,t){return new l.DiscretePalette(e,t,this._defaultPalette)},createGradientPalette:function(e){return new l.GradientPalette(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,t){return te}function a(e,t,n,i){var o=c(t);c(e)?o&&i(e,t)&&n(t):o&&n(t)}var r,s=n(1),l=n(0).extend,c=s.isDefined,d=s.isDate,u=s.isFunction,h=n(16).unique,p="min",f="max",g="minVisible",_="maxVisible",m="base",v="axisType";r=t.Range=function(e){e&&l(this,e)},r.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){c(t[e])&&(t[e]=n)},i)},d=function(n){t[n]=t[n]||e[n]};return d("invert"),d(v),d("dataType"),d("isSpacedMargin"),d("checkMinDataVisibility"),d("checkMaxDataVisibility"),"logarithmic"===t[v]?d(m):t[m]=void 0,s(p,i),s(f,o),"discrete"===t[v]?(d(g),d(_)):(s(g,i),s(_,o)),s("interval",i),l(p,g,i),l(p,_,i),l(f,_,o),l(f,g,o),void 0===n?t.categories=r:t.categories=r?h(n.concat(r)):n,t},isDefined:function(){return c(this[p])&&c(this[f])||this.categories&&this.categories.length},setStubData:function(e){var t=this,n=(new Date).getFullYear()-1,i="datetime"===e,o=t[v],a="logarithmic"===o?1:0;return"discrete"===o?t.categories=i?[new Date(n,0,1),new Date(n,3,1),new Date(n,6,1),new Date(n,9,1)]:["0","1","2"]:(t[p]=i?new Date(n,0,1):a,t[f]=i?new Date(n,11,31):10),t.stubData=!0,t},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]||d(t[f])||d(t[p])?t:(e(p,f),e(g,_),t)},sortCategories:function(e){if(e!==!1&&this.categories)if(Array.isArray(e)){var t=this.categories.map(function(e){return e&&e.valueOf()});this.categories=e.filter(function(e){return t.indexOf(e&&e.valueOf())!==-1})}else{var n=!u(e);n&&"string"!==this.dataType?e=function(e,t){return e.valueOf()-t.valueOf()}:n&&(e=!1),e&&this.categories.sort(e)}}}},function(e,t,n){var i=n(11).inArray,o=function(){var e=[];return{add:function(t){var n=i(t,e);n===-1&&e.push(t)},remove:function(t){var n=i(t,e);n!==-1&&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(0).extend,o=n(47);o.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=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(172);e.exports=new i},function(e,t,n){var i=n(115),o=n(3).each,a=n(0).extend,r=n(14),s=n(31),l={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},c="preset_",d=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 c+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},"forward"===r?l.from={left:a,opacity:e}:"backward"===r?l.from={left:-a,opacity:e}:l.from={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},"forward"===r?l.to={left:-a,opacity:e}:"backward"===r?l.to={left:a,opacity:e}:l.to={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=d;var u=new d;t.presets=u},function(e,t,n){var i=n(5),o=n(30),a=n(12),r=n(10),s=n(9),l="dxPointerEvents",c=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=c},function(e,t,n){var i=n(0).extend,o=n(1),a=n(3),r=n(11).inArray,s=n(10),l=encodeURIComponent("json:"),c=s.inherit({_trimSeparators:function(e){return e.replace(/^[\/.]+|\/+$/g,"")},_escapeRe:function(e){return e.replace(/[^-\w]/g,"\\$1")},_checkConstraint:function(e,t){e=String(e),"string"==typeof t&&(t=new RegExp(t));var n=t.exec(e);return!(!n||n[0]!==e)},_ensureReady:function(){var e=this;return!this._patternRe&&(this._pattern=this._trimSeparators(this._pattern),this._patternRe="",this._params=[],this._segments=[],this._separators=[],this._pattern.replace(/[^\/]+/g,function(t,n){e._segments.push(t),n&&e._separators.push(e._pattern.substr(n-1,1))}),a.each(this._segments,function(t){var n=this,i=t?e._separators[t-1]:"";":"===n.charAt(0)?(n=n.substr(1),e._params.push(n),e._patternRe+="(?:"+i+"([^/]*))",n in e._defaults&&(e._patternRe+="?")):e._patternRe+=i+e._escapeRe(n)}),void(this._patternRe=new RegExp("^"+this._patternRe+"$")))},ctor:function(e,t,n){this._pattern=e||"",this._defaults=t||{},this._constraints=n||{}},parse:function(e){var t=this;this._ensureReady();var n=this._patternRe.exec(e);if(!n)return!1;var o=i({},this._defaults);return a.each(this._params,function(e){var i=e+1;n.length>=i&&n[i]&&(o[this]=t.parseSegment(n[i]))}),a.each(this._constraints,function(e){if(!t._checkConstraint(o[e],t._constraints[e]))return o=!1,!1}),o},format:function(e){var t=this,n="";this._ensureReady();var s=i({},this._defaults),l=0,c=[],d=[],u={};a.each(e,function(n,i){e[n]=t.formatSegment(i),n in s||(u[n]=!0)}),a.each(this._segments,function(n,i){if(c[n]=n?t._separators[n-1]:"",":"===i.charAt(0)){var o=i.substr(1);if(!(o in e||o in t._defaults))return c=null,!1;if(o in t._constraints&&!t._checkConstraint(e[o],t._constraints[o]))return c=null,!1;o in e?(void 0!==e[o]&&(s[o]=e[o],c[n]+=e[o],l=n),delete u[o]):o in s&&(c[n]+=s[o],d.push(n))}else c[n]+=i,l=n}),a.each(s,function(n,i){if(i&&r(":"+n,t._segments)===-1&&e[n]!==i)return c=null,!1});var h=0;if(o.isEmptyObject(u)||(n="?",a.each(u,function(t){n+=t+"="+e[t]+"&",h++}),n=n.substr(0,n.length-1)),null===c)return!1;d.length&&a.map(d,function(e){e>=l&&(c[e]="")});var p=c.join("");return p=p.replace(/\/+$/,""),{uri:p+n,unusedCount:h}},formatSegment:function(e){return Array.isArray(e)||o.isPlainObject(e)?l+encodeURIComponent(JSON.stringify(e)):encodeURIComponent(e)},parseSegment:function(e){if(e.substr(0,l.length)===l)try{return JSON.parse(decodeURIComponent(e.substr(l.length)))}catch(e){}return decodeURIComponent(e)}}),d=s.inherit({ctor:function(){this._registry=[]},_trimSeparators:function(e){return e.replace(/^[\/.]+|\/+$/g,"")},_createRoute:function(e,t,n){return new c(e,t,n)},register:function(e,t,n){this._registry.push(this._createRoute(e,t,n))},_parseQuery:function(e){var t={},n=e.split("&");return a.each(n,function(e,n){var i=n.split("=");t[i[0]]=decodeURIComponent(i[1])}),t},parse:function(e){var t,n=this;e=this._trimSeparators(e);var o=e.split("?",2),r=o[0],s=o[1];return a.each(this._registry,function(){var e=this.parse(r);if(e!==!1)return t=e,s&&(t=i(t,n._parseQuery(s))),!1}),!!t&&t},format:function(e){var t=!1,n=99999;return e=e||{},a.each(this._registry,function(){var o=i(!0,{},e),a=this.format(o);a!==!1&&n>a.unusedCount&&(n=a.unusedCount,t=a.uri)}),t}});e.exports=d,e.exports.Route=c},function(e,t,n){n(43);var i=n(26),o=n(4).noop,a=n(6).getWindow(),r=n(10),s=n(19),l=n(235),c=n(154).sessionStorage,d=n(14),u="dxPhoneJSApplication",h=r.inherit({ctor:function(e){e=e||{},this._browserAdapter=e.browserAdapter||this._createBrowserAdapter(e),this.uriChanged=s(),this._browserAdapter.popState.add(this._onPopState.bind(this))},init:o,getUri:function(){return this._browserAdapter.getHash()},setUri:function(e,t){return t?this._browserAdapter.replaceState(e):e!==this.getUri()?this._browserAdapter.pushState(e):i.Deferred().resolve().promise()},back:function(){return this._browserAdapter.back()},_onPopState:function(){this.uriChanged.fire(this.getUri())},_isBuggyAndroid2:function(){var e=d.real(),t=e.version;return"android"===e.platform&&t.length>1&&(2===t[0]&&t[1]<4||t[0]<2)},_isBuggyAndroid4:function(){var e=d.real(),t=e.version;return"android"===e.platform&&t.length>1&&4===t[0]&&0===t[1]},_isWindowsPhone8:function(){var e=d.real();return"win"===e.platform&&e.phone},_createBrowserAdapter:function(e){var t,n=e.window||a,i=n.history.replaceState&&n.history.pushState;return t=this._isWindowsPhone8()?new l.BuggyCordovaWP81BrowserAdapter(e):n!==n.top?new l.HistorylessBrowserAdapter(e):this._isBuggyAndroid4()?new l.BuggyAndroidBrowserAdapter(e):this._isBuggyAndroid2()||!i?new l.OldBrowserAdapter(e):new l.DefaultBrowserAdapter(e)}}),p=h.inherit({ctor:function(e){this.callBase(e),this.backInitiated=s(),this._rootStateHandler=null,i(a).on("unload",this._saveBrowserState)},init:function(){var e=this;return e._browserAdapter.canWorkInPureBrowser?e._initRootPage().done(function(){e._browserAdapter.isRootPage()&&e._browserAdapter.pushState("")}):i.Deferred().resolve().promise()},setUri:function(e){return this.callBase(e,!this._browserAdapter.isRootPage())},_saveBrowserState:function(){var e=c();e&&e.setItem(u,!0)},_initRootPage:function(){var e=this.getUri(),t=c();return!t||t.getItem(u)?i.Deferred().resolve().promise():(t.removeItem(u),this._browserAdapter.createRootPage(),this._browserAdapter.pushState(e))},_onPopState:function(){this._browserAdapter.isRootPage()?this._rootStateHandler?this._rootStateHandler():this.backInitiated.fire():(this._rootStateHandler||this._createRootStateHandler(),this.back())},_createRootStateHandler:function(){var e=this.getUri();this._rootStateHandler=function(){this.uriChanged.fire(e),this._rootStateHandler=null}}});t.HistoryBasedNavigationDevice=h,t.StackBasedNavigationDevice=p},function(e,t,n){t.layoutSets={},t.animationSets={"native":{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"none",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"none",device:{grade:"C"}}]},"default":{"layout-change":[{animation:"none"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"pop",device:{platform:"android"}},{animation:"openDoor",device:{deviceType:"phone",platform:"win",version:[8]}},{animation:"win-pop",device:{deviceType:"phone",platform:"win"}}],"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-drop"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}},{animation:"none",device:{platform:"win",version:[10]}}],"command-rendered-bottom":[{animation:"stagger-fade-rise"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}},{animation:"none",device:{platform:"win",version:[10]}}],"list-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]},slide:{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-drop"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-bottom":[{animation:"stagger-fade-rise"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"list-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]},zoom:{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-zoom"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-bottom":[{animation:"stagger-fade-zoom" },{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"list-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]}}},function(e,t,n){var i=n(10),o=n(1),a=n(3),r=n(22).compileGetter,s=n(22).toComparable,l=n(7).Deferred,c=n(35),d=n(40),u=i.inherit({toArray:function(){var e=[];for(this.reset();this.next();)e.push(this.current());return e},countable:function(){return!1}}),h=u.inherit({ctor:function(e){this.array=e,this.index=-1},next:function(){return this.index+1t?1:0},_=u.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,e===t)return n-i;for(var o=0,a=this.rules.length;o1&&n!==i)throw new c.errors.Error("E4019");t.push(m(this)),n=i,i=!0}else i=d.isConjunctiveOperator(this)}),function(e){for(var i=n,o=0;o":return e(n,o,!0);case">":return function(e){return s(n(e))>o};case"<":return function(e){return s(n(e))=":return function(e){return s(n(e))>=o};case"<=":return function(e){return s(n(e))<=o};case"startswith":return function(e){return 0===s(l(n(e))).indexOf(o)};case"endswith":return function(e){var t=s(l(n(e))),i=l(o);return!(t.length-1};case"notcontains":return function(e){return s(l(n(e))).indexOf(o)===-1}}throw c.errors.Error("E4003",i)};return function(e){return o.isFunction(e)?e:Array.isArray(e[0])?i(e):d.isUnaryOperation(e)?n(e):u(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}}),x=u.inherit({ctor:function(e,t){this.iter=e,this.getter=t},next:function(){return this._ensureGrouped(),this.groupedIter.next()},current:function(){return this._ensureGrouped(),this.groupedIter.current()},reset:function(){delete this.groupedIter},countable:function(){return!!this.groupedIter},count:function(){return this.groupedIter.count()},_ensureGrouped:function(){if(!this.groupedIter){var e={},t=[],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]}}))}}}),w=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()}}),b=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":n("ne"),">":n("gt"),">=":n("ge"),"<":n("lt"),"<=":n("le"),startswith:i("startswith",{forceLowerCase:!0}),endswith:i("endswith",{forceLowerCase:!0})},u=a({},r,{contains:i("substringof",{reverse:!0,forceLowerCase:!0}),notcontains:i("not substringof",{reverse:!0,forceLowerCase:!0})}),h=a({},r,{contains:i("contains",{forceLowerCase:!0}),notcontains:i("not contains",{forceLowerCase:!0})}),p=function(n){n=d.normalizeBinaryCriterion(n);var i=n[1],o=4===e?h:u,a=o[i.toLowerCase()];if(!a)throw c.Error("E4003",i);var r=n[0],p=n[2];return t&&t[r]&&(p=s.convertPrimitiveValue(t[r],p)),a(l(r),s.serializeValue(p,e))},f=function(e){var t=e[0],n=_(e[1]);if("!"===t)return"not ("+n+")";throw c.Error("E4003",t)},g=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("("+_(o)+")"),t=n,n="and"}else n=d.isConjunctiveOperator(this)?"and":"or"}),i.join(" "+t+" ")},_=function(e){return Array.isArray(e[0])?g(e):d.isUnaryOperation(e)?f(e):p(e)};return function(n,i,o){return t=o,e=i,_(n)}}(),m=function(e){function t(e){for(var t=-1,n=0;n").addClass(e).css("pointerEvents","none");return o.subscribeGlobal(n,"dxmousewheel",function(e){e.preventDefault()}),u(function(){n.appendTo("body")}),function(e,t){n.css("pointerEvents",e?"all":"none"),e&&n.css("cursor",t)}}),D=function(e,t){var n=T();n(e,t)},E=_.inherit({gesture:!0,configure:function(e){this.getElement().css("msTouchAction",e.immediate?"pinch-zoom":""),this.callBase(e)},allowInterruptionByMouseWheel:function(){return this._stage!==b},getDirection:function(){return this.direction},_cancel:function(){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=x},start:function(e){return g.needSkipEvent(e)?void this._cancel(e):(this._startEvent=g.createEvent(e),this._startEventData=g.eventData(e),this._stage=w,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),k))},move:function(e){if(this._stage===w&&this._directionConfirmed(e)){if(this._stage=b,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(e),this._adjustStartEvent(e),this._start(this._startEvent),this._stage===x)return;this._requestAccept(e),this._move(e),this._forgetAccept()}else this._stage===b&&(this._clearSelection(e),this._move(e))},_directionConfirmed:function(e){var t=this._getTouchBoundary(e),n=g.eventDelta(this._startEventData,g.eventData(e)),i=v(n.x),o=v(n.y),a=this._validateMove(t,i,o),r=this._validateMove(t,o,i),s=this.getDirection(e),l="both"===s&&(a||r),c="horizontal"===s&&a,d="vertical"===s&&r;return l||c||d||this._immediateAccepted},_validateMove:function(e,t,n){return t&&t>=e&&(!this.immediate||t>=n)},_getTouchBoundary:function(e){return this.immediate||S(e)?C:y},_adjustStartEvent:function(e){var t=this._getTouchBoundary(e),n=g.eventDelta(this._startEventData,g.eventData(e));this._startEvent.pageX+=m(n.x)*t,this._startEvent.pageY+=m(n.y)*t},_resetActiveElement:function(){"ios"===a.real().platform&&this.getElement().find(":focus").length&&c.resetActiveElement()},_toggleGestureCover:function(e){var t=this._stage===b;t&&D(e,this.getElement().css("cursor"))},_clearSelection:function(e){S(e)||g.isTouchEvent(e)||c.clearSelection()},end:function(e){this._toggleGestureCover(!1),this._stage===b?this._end(e):this._stage===w&&this._stop(e),this._stage=x},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:p,_start:p,_move:p,_stop:p,_end:p});E.initialTouchBoundary=y,E.touchBoundary=function(e){return f(e)?void(y=e):y},e.exports=E},function(e,t,n){var i=n(2),o=n(10),a=n(3).each,r=n(100),s="dx-state-invisible",l="dx-state-disabled",c="dx-item-content-placeholder",d=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())}}},u=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("
").addClass(c);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=d(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(l,!!e)},_renderVisible:function(e,t){this._$element.toggleClass(s,void 0!==e&&!e)},_dispose:function(){a(this._watchers,function(e,t){t.dispose()})}});u.getInstance=function(e){return r.getInstanceByElement(e,this)},e.exports=u},function(e,t,n){var i=n(2),o=n(5),a=n(54),r=n(8),s=n(4),l=n(13),c=n(56).focused,d=n(3).each,u=n(1).isDefined,h=n(0).extend,p=n(13).getPublicElement,f=n(21),g=n(77),_=n(104).getDefaultAlignment,m=n(15),v=n(38),x=n(9),w=n(98),b=n(18),y=n(95),C=n(60),k="dx-dropdowneditor",S="dx-dropdowneditor-input-wrapper",I="dx-dropdowneditor-button",T="dx-dropdowneditor-icon",D="dx-dropdowneditor-overlay",E="dx-dropdowneditor-overlay-flipped",A="dx-dropdowneditor-active",B="dx-dropdowneditor-button-visible",O="dx-dropdowneditor-field-clickable",M=w.inherit({_supportedKeys:function(){var e=function(e){return!!this.option("opened")&&(e.preventDefault(),!0)};return h({},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&&o.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})},_getDefaultOptions:function(){return h(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,popupPosition:this._getDefaultPopupPosition(),onPopupInitialized:null,applyButtonText:m.format("OK"),cancelButtonText:m.format("Cancel"),buttonsLocation:"default",showPopupTitle:!1})},_getDefaultPopupPosition:function(){var e=_(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){var t="generic"===e.platform,n="win"===e.platform&&e.version&&10===e.version[0];return t||n},options:{popupPosition:{offset:{v:0}}}}])},_inputWrapper:function(){return this.$element().find("."+S)},_init:function(){this.callBase(),this._initVisibilityActions(),this._initPopupInitializedAction()},_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","designMode"]})},_initMarkup:function(){this.callBase(),this.$element().addClass(k),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("
").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")&&o.off(this._input(),"focusin focusout beforeactivate")},_renderField:function(){var e=this._getTemplateByOption("fieldTemplate");e&&this.option("fieldTemplate")&&this._renderTemplatedField(e,this._fieldRenderData())},_renderTemplatedField:function(e,t){var n=c(this._input());this._resetFocus(n);var i=this._$container;if(i.empty(),this._$dropDownButton=null,this._$clearButton=null,e.render({model:t,container:l.getPublicElement(i)}),!this._input().length)throw f.Error("E1010");this._refreshEvents(),this._refreshValueChangeEvent(),this._renderFocusState(),n&&o.trigger(this._input(),"focus")},_resetFocus:function(e){this._cleanFocusState(),e&&o.trigger(this._input(),"focusout")},_fieldRenderData:function(){return this.option("value")},_renderInputAddons:function(){this._renderField(),this.callBase(),this._renderDropDownButton()},_renderDropDownButton:function(){this._$dropDownButton&&(this._$dropDownButton.remove(),this._$dropDownButton=null);var e=this.option("showDropDownButton");this.$element().toggleClass(B,e),e&&(this._$dropDownButton=this._createDropDownButton(),this._attachDropDownButtonClickHandler())},_attachDropDownButtonClickHandler:function(){this.option("showDropDownButton")&&!this.option("openOnFieldClick")&&this._$dropDownButton.dxButton("option","onClick",this._openHandler.bind(this))},_initTemplates:function(){this.callBase(),this._defaultTemplates.dropDownButton=new y(function(e){var t=i("
").addClass(T);i(e.container).append(t)},this)},_createDropDownButton:function(){var e=i("
").addClass(I).prependTo(this._buttonsContainer());return this._createComponent(e,v,{focusStateEnabled:!1,hoverStateEnabled:!1,activeStateEnabled:!1,disabled:this.option("readOnly"),useInkRipple:!1,template:this._getTemplateByOption("dropDownButtonTemplate")}),e.removeClass("dx-button"),o.on(e,"mousedown",function(e){e.preventDefault()}),e},_renderOpenHandler:function(){var e=this,t=e._inputWrapper(),n=x.addNamespace(b.name,e.NAME),i=e.option("openOnFieldClick");o.off(t,n),o.on(t,n,e._getInputClickHandler(i)),e.$element().toggleClass(O,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")&&(c(this._input())||o.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(A,e),this._setPopupOption("visible",e),this.setAria({expanded:e,owns:(e||void 0)&&this._popupContentId})},_createPopup:function(){this._$popup||(this._$popup=i("
").addClass(D).addClass(this.option("customOverlayCssClass")).appendTo(this.$element()),this._renderPopup(),this._renderPopupContent())},_renderPopup:function(){this._popup=this._createComponent(this._$popup,C,this._popupConfig()),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 a,this.setAria("id",this._popupContentId,this._popup.$content())},_contentReadyHandler:s.noop,_popupConfig:function(){return{onInitialized:this._popupInitializedHandler(),position:h(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(E,e.position.v.flip)},_popupShowingHandler:s.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=g.setup(this.$element()).top,n=g.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:l.getPublicElement(t),model:n})}},_closeOutsideDropDownHandler:function(e){var t=i(e.target),n=!!t.closest(this.$element()).length,o=!!t.closest(this._$dropDownButton).length,a=!n&&!o;return a},_clean:function(){delete this._$dropDownButton,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()))&&(o.trigger(this._input(),"focus"),e.preventDefault())},_popupElementEscHandler:function(){o.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=s.splitPair(t);d(n,function(e,t){h(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()},_toggleReadOnlyState:function(){this.callBase(),this._$dropDownButton&&this._$dropDownButton.dxButton("option","disabled",this.option("readOnly"))},_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":u(e.value)?this._renderInputAddons():this._invalidate();break;case"showDropDownButton":case"contentTemplate":case"acceptCustomValue":case"openOnFieldClick":this._invalidate();break;case"dropDownButtonTemplate":this._renderDropDownButton();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)},reset:function(){this.option("value",null),this._input().val("")},field:function(){return p(this._input())},content:function(){return this._popup?this._popup.content():null}});r("dxDropDownEditor",M),e.exports=M},function(e,t,n){var i={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)}};e.exports=i},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){return void 0===e?R||O:(e=(0,y.normalizeEnum)(e),void(R=e in P?e:void 0))}function r(e,t){t=t||{},e=w(e,t.themeDefault);var n,i=t.type;return E(e)?e.slice(0):(A(e)&&(n=P[(0,y.normalizeEnum)(e)]),n||(n=P[a()]),n=n||null,i&&n?n[i].slice(0):n)}function s(e,t){var n,i={};E(t)?i.simpleSet=t.slice(0):t&&(i.simpleSet=E(t.simpleSet)?t.simpleSet.slice(0):void 0,i.indicatingSet=E(t.indicatingSet)?t.indicatingSet.slice(0):void 0,i.gradientSet=E(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,y.normalizeEnum)(e),(0,C.extend)(P[n]=P[n]||{},i))}function l(e,t){return e=r(e,{themeDefault:t}),e.accentColor||e[0]}function c(e){var t=0;this.next=function(){var n=e[t++];return t===e.length&&this.reset(),n},this.reset=function(){t=0}}function d(e,t){function n(){var t=o.next();a=t?f(e,t):e.slice(0)}var i=t.useHighlight?B:0,o=new c([0,i,-i]),a=[];return{getColor:function(t){var i=a[t%e.length];return t%e.length===e.length-1&&n(),i},reset:function(){o.reset(),n()}}}function u(e){function t(e,t,n){var i=new D(e).hsl,o=i.l/100,a=n-1/n,r=o-.5*a,s=o+.5*a,l=(n-1)/2,c=t-l;return rMath.max(.8,o+.15*(1-o))&&(s=Math.max(.8,o+.15*(1-o))),c<0?o-=(r-o)*c/l:o+=(s-o)*(c/l),i.l=100*o,D.prototype.fromHSL(i).toHex()}return{getColor:function(n,i){var o=e.length,a=I((i-1)/o+1),r=e[n%o];return a>1?t(r,I(n/o),a):r},reset:function(){}}}function h(e,t){function n(e,t,n,i){for(var o,a,r=Math.floor(e/t),s=e-t*r,l=n;l0&&(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){t=(n+t)%n;for(var i=0,o=t;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-1&&(a[d]=e[l++]);return a=o(a,i)}var r=e.length,s=[];return{getColor:function(e,t){return t=t||r,s.length!==t&&(s=a(t)),s[e%t]},reset:function(){}}}function p(e,t,n){t=t||{};var i=(t.extensionMode||"").toLowerCase(),o=r(e,{type:t.type||"simpleSet",themeDefault:n});"alternate"===i?this._extensionStrategy=d(o,t):"extrapolate"===i?this._extensionStrategy=u(o):this._extensionStrategy=h(o,t),this.reset()}function f(e,t){var n,i=[],o=e.length;for(n=0;n200||i<55)&&(n=new D(e).alter(-t/2)),n.toHex()}function _(e){return.3*e.r+.59*e.g+.11*e.b}function m(e,t,n){var i=t>0?v(r(e,{type:"gradientSet",themeDefault:n}),t):[];this.getColor=function(e){return i[e]||null}}function v(e,t){function n(e){var t=a*e,n=I(t),i=T(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 D(e[i]));if(o>0)for(i=0;i<=o;++i)n(i/o);else n(.5);return s}function x(e,t){var n=r(e,{type:"gradientSet",themeDefault:t}),i=new D(n[0]),o=new D(n[1]);this.getColor=function(e){return 0<=e&&e<=1?i.blend(o,e).toHex():null}}function w(e,t){var n=e||(void 0===R?t:a());return"default"===n&&S.default.log("W0016",'"palette"',"Default","18.1",'Use the "Office" value instead.'),n}Object.defineProperty(t,"__esModule",{value:!0}),t._DEBUG_palettes=void 0;var b;t.currentPalette=a,t.getPalette=r,t.registerPalette=s,t.getAccentColor=l,t.Palette=p,t.DiscretePalette=m,t.GradientPalette=x;var y=n(16),C=n(0),k=n(17),S=i(k),I=Math.floor,T=Math.ceil,D=n(86),E=Array.isArray,A=n(1).isString,B=50,O="material",M={ simpleSet:["#5f8b95","#ba4d51","#af8a53","#955f71","#859666","#7e688c"],indicatingSet:["#a3b97c","#e1b676","#ec7f83"],gradientSet:["#5f8b95","#ba4d51"],accentColor:"#ba4d51"},P=(b={},o(b,O,{simpleSet:["#1db2f5","#f5564a","#97c95c","#ffc720","#eb3573","#a63db8"],indicatingSet:["#97c95c","#ffc720","#f5564a"],gradientSet:["#1db2f5","#97c95c"],accentColor:"#1db2f5"}),o(b,"default",M),o(b,"office",M),o(b,"harmony light",{simpleSet:["#fcb65e","#679ec5","#ad79ce","#7abd5c","#e18e92","#b6d623","#b7abea","#85dbd5"],indicatingSet:["#b6d623","#fcb65e","#e18e92"],gradientSet:["#7abd5c","#fcb65e"],accentColor:"#679ec5"}),o(b,"soft pastel",{simpleSet:["#60a69f","#78b6d9","#6682bb","#a37182","#eeba69","#90ba58","#456c68","#7565a4"],indicatingSet:["#90ba58","#eeba69","#a37182"],gradientSet:["#78b6d9","#eeba69"],accentColor:"#60a69f"}),o(b,"pastel",{simpleSet:["#bb7862","#70b3a1","#bb626a","#057d85","#ab394b","#dac599","#153459","#b1d2c6"],indicatingSet:["#70b3a1","#dac599","#bb626a"],gradientSet:["#bb7862","#70b3a1"],accentColor:"#bb7862"}),o(b,"bright",{simpleSet:["#70c92f","#f8ca00","#bd1550","#e97f02","#9d419c","#7e4452","#9ab57e","#36a3a6"],indicatingSet:["#70c92f","#f8ca00","#bd1550"],gradientSet:["#e97f02","#f8ca00"],accentColor:"#e97f02"}),o(b,"soft",{simpleSet:["#cbc87b","#9ab57e","#e55253","#7e4452","#e8c267","#565077","#6babac","#ad6082"],indicatingSet:["#9ab57e","#e8c267","#e55253"],gradientSet:["#9ab57e","#e8c267"],accentColor:"#565077"}),o(b,"ocean",{simpleSet:["#75c099","#acc371","#378a8a","#5fa26a","#064970","#38c5d2","#00a7c6","#6f84bb"],indicatingSet:["#c8e394","#7bc59d","#397c8b"],gradientSet:["#acc371","#38c5d2"],accentColor:"#378a8a"}),o(b,"vintage",{simpleSet:["#dea484","#efc59c","#cb715e","#eb9692","#a85c4c","#f2c0b5","#c96374","#dd956c"],indicatingSet:["#ffe5c6","#f4bb9d","#e57660"],gradientSet:["#efc59c","#cb715e"],accentColor:"#cb715e"}),o(b,"violet",{simpleSet:["#d1a1d1","#eeacc5","#7b5685","#7e7cad","#a13d73","#5b41ab","#e287e2","#689cc1"],indicatingSet:["#d8e2f6","#d0b2da","#d56a8a"],gradientSet:["#eeacc5","#7b5685"],accentColor:"#7b5685"}),o(b,"carmine",{simpleSet:["#fb7764","#73d47f","#fed85e","#d47683","#dde392","#757ab2"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#fb7764","#73d47f"],accentColor:"#f05b41"}),o(b,"dark moon",{simpleSet:["#4ddac1","#f4c99a","#80dd9b","#f998b3","#4aaaa0","#a5aef1"],indicatingSet:["#59d8a4","#f0ad4e","#f9517e"],gradientSet:["#4ddac1","#f4c99a"],accentColor:"#3debd3"}),o(b,"soft blue",{simpleSet:["#7ab8eb","#97da97","#facb86","#e78683","#839bda","#4db7be"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#7ab8eb","#97da97"],accentColor:"#7ab8eb"}),o(b,"dark violet",{simpleSet:["#9c63ff","#64c064","#eead51","#d2504b","#4b6bbf","#2da7b0"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#9c63ff","#64c064"],accentColor:"#9c63ff"}),o(b,"green mist",{simpleSet:["#3cbab2","#8ed962","#5b9d95","#efcc7c","#f1929f","#4d8dab"],indicatingSet:["#72d63c","#ffc852","#f74a5e"],gradientSet:["#3cbab2","#8ed962"],accentColor:"#3cbab2"}),b),R=void 0;p.prototype={constructor:p,dispose:function(){this._extensionStrategy=null},getNextColor:function(e){return this._extensionStrategy.getColor(this._currentColor++,e)},reset:function(){return this._currentColor=0,this._extensionStrategy.reset(),this}}},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){function i(e){return[-e,-e,e,-e,e,e,-e,e,-e,-e]}function o(e){var t=w(e);return[-t,0,0,-t,t,0,0,t,-t,0]}function a(e){var t=w(e),n=x(t/2),i=w(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]}function r(e){return[-e,-e,e,-e,0,e,-e,-e]}function s(e){return[-e,e,e,e,0,-e,-e,e]}var l=n(0).extend,c=n(3).each,d=n(4).noop,u=n(6),h=u.getWindow(),p=n(297),f=l,g=n(1).isDefined,_=n(16).normalizeEnum,m=Math,v=m.round,x=m.floor,w=m.ceil,b=20,y=20,C=10,k="canvas_position_default";e.exports={deleteLabel:function(){this._label.dispose(),this._label=null},_hasGraphic:function(){return this.graphic},clearVisibility:function(){var e=this,t=e.graphic;t&&t.attr("visibility")&&t.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 p.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 g(e)&&("string"==typeof e||g(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 i(t);case"polygon":return o(t);case"triangle":case"triangleDown":return r(t);case"triangleUp":return s(t);case"cross":return a(t)}},hasCoords:function(){return null!==this.x&&null!==this.y},correctValue:function(e){var t=this;t.hasValue()&&(t.value=t.initialValue+e,t.minValue=e)},resetCorrection:function(){this.value=this.initialValue,this.minValue=k},resetValue:function(){var e=this;e.hasValue()&&(e.value=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||b,o=n.height||y;return e.image(-v(.5*i),-v(.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||b,o=n.height||y;return{x:e-v(i/2),y:t-v(o/2),width:i,height:o}},_getGraphicBBox:function(){var e,t=this,n=t._options,i=t.x,o=t.y;return e=n.visible?t._checkImage(n.image)?t._getImageBBox(i,o):t._getSymbolBBox(i,o,n.styles.normal.r):{x:i,y:o,width:0,height:0}},hideInsideLabel:d,_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()&&t!==!1&&(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(v(n.x),v(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),r=C;return n._isPointInVisibleArea(i,a)&&(n._options.rotated?(i.minX>t.x&&(t.x=a.x+a.width+r),i.maxXt.y&&(t.y=i.minY),i.maxYt.x&&(t.x=i.minX),i.maxXt.y&&(t.y=a.y+a.height+r),i.maxY0?e?"right":"top":e?"left":"bottom"},_getFormatObject:function(e){var t=this,n=t._label.getData();return f({},n,{argumentText:e.formatValue(t.initialArgument,"argument"),valueText:e.formatValue(t.initialValue)},g(n.percent)?{percentText:e.formatValue(n.percent,"percent")}:{},g(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(){var e=this._options.errorBars;if(e){var t=e.displayMode,n="high"===t?this.value:this.lowError,i="low"===t?this.value:this.highError;return ni?n:i}return this.value}}},function(e,t,n){var i,o=n(1).isFunction,a=n(16).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={};l[-1]=[2,0],l[1]=[0,2];var c=function(e){return e[2]-e[0]").appendTo(this.$element()),t=this._popupOptions();this._popup=this._createComponent(e,d,t)}},_popupOptions:function(){var e=!this.option("usePopover");return{onInitialized:function(t){t.component._wrapper().addClass(m).toggleClass(_,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")}},_renderList:function(e){var t=i(e),n=this._listOptions();t.addClass(v),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._getTemplateByOption("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(b[t],n),this._renderPopup();break;case"popupWidth":case"popupHeight":case"popupMaxHeight":this._popup.option(w[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;default:this.callBase(e)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)}}).include(u);r("dxDropDownMenu",y),e.exports=y},function(e,t,n){e.exports=n(519)},function(e,t,n){e.exports=n(538)},function(e,t,n){var i=n(17),o=n(0).extend,a=n(3).each,r=n(11).inArray,s=n(23),l=s.dateToMilliseconds,c=4,d={secondly:"seconds",minutely:"minutes",hourly:"hours",daily:"days",weekly:"weeks",monthly:"months",yearly:"years"},u={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);h(n,1,-1);var i=n.getDate();i>=Math.abs(t)?h(e,1,t):h(e,2,t)}else e.setDate(t),T(e,t)},byday:function(e,t,n,i){var o=t;"DAILY"!==i&&"WEEKLY"!==i||0!==t||(o=7),t+=_[n]>o?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()-_[n],r=o.getTime()-a*l("day"),s=a+1;s>c?e.setTime(r+7*t*l("day")):e.setTime(r+7*(t-1)*l("day"));var d=(e.getTimezoneOffset()-o.getTimezoneOffset())*l("minute");d&&e.setTime(e.getTime()+d)},byyearday:function(e,t){e.setMonth(0,1),e.setDate(t)}},h=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)},p={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=c-i.getDay()+_[t]-1,a=l("day");return e.getDay()<_[t]&&(o-=7),i.setHours(0,0,0),i.setDate(i.getDate()+o),n=1+(i-new Date(i.getFullYear(),0,1))/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)}},f=["freq","interval","byday","byweekno","byyearday","bymonth","bymonthday","count","until","byhour","byminute","bysecond","bysetpos","wkst"],g=["DAILY","WEEKLY","MONTHLY","YEARLY","SECONDLY","MINUTELY","HOURLY"],_={SU:0,MO:1,TU:2,WE:3,TH:4,FR:5,SA:6},m=function(){return(new Date).getTimezoneOffset()},v=function(e){var t=[];return e.rule&&(t=C(e)),!!t.length},x=function(e){var t=e.interval,n=e.freq,i={},o=d[n.toLowerCase()];return"MONTHLY"===n&&e.byday&&(o=d.daily),i[o]=t,i},w=function(e){for(var t=[],n=0,i=e.length;n=n.recurrenceStartDate.getTime()&&e.getTime()+o>n.min.getTime())return i||Q(e,[n.dateRules[t]],n.rule.wkst)}return!1},I=function(e,t){var n=[];return t.split(",").forEach(function(t){t=Number(t);var i=t>0?t-1:e.length+t;e[i]&&n.push(e[i])}),n},T=function(e,t){e.getDate()!==t&&e.setDate(t)},D=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]),r<0&&(o.setMonth(o.getMonth()+1,1),u.bymonthday(o,r),e=o,a=!1)),a&&T(e,r)}if("YEARLY"===n.freq){if(n.byyearday){var l=Number(n.byyearday.split(",")[i]);u.byyearday(e,l)}var c=j(n);for(var d in c[i])u[d]&&u[d](e,c[i][d],n.wkst)}return e},E=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()}},A=function(e){var t={rule:{},isValid:!1};return e&&(t.rule=N(e),t.isValid=O(t.rule,e)),t},B=[],O=function(e,t){return!(H(e)||r(e.freq,g)===-1||P(e)||F(e)||L(e)||R(e)||V(e)||M(e))||(z(t),!1)},M=function(e){var t=!1,n=e.until;return void 0===n||n instanceof Date||(t=!0),t},P=function(e){var t=!1,n=e.count;return n&&"string"==typeof n&&(t=!0),t},R=function(e){var t=!1,n=e.bymonthday;return n&&isNaN(parseInt(n))&&(t=!0),t},V=function e(t){var e=!1,n=t.bymonth;return n&&isNaN(parseInt(n))&&(e=!0),e},F=function(e){var t=!1,n=e.interval;return n&&"string"==typeof n&&(t=!0),t},L=function(e){var t=G(e),n=!1;return a(t,function(e,t){if(!_.hasOwnProperty(t))return n=!0,!1}),n},H=function(e){var t=!1;return a(e,function(e){if(r(e,f)===-1)return t=!0,!1}),t},z=function(e){r(e,B)===-1&&(i.log("W0006",e),B.push(e))},N=function(e){for(var t={},n=e.split(";"),i=0,o=n.length;i=n.getTime()&&d.push(c[u]);var h=d.length;r+=h;var p=r-a;for(r>a&&d.splice(h-p,p),u=0;u0},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._eventsMap,s=e._initialChanges,l=e._themeDependentChanges,c=e._optionChangesMap,u=e._optionChangesOrder,h=e._layoutChangesOrder,p=e._customChangesOrder,f=t.apply(this,arguments);return e=f.prototype,e._plugins=a(n,e._plugins),e._eventsMap=o(i,e._eventsMap),e._initialChanges=a(s,e._initialChanges),e._themeDependentChanges=a(l,e._themeDependentChanges),e._optionChangesMap=o(c,e._optionChangesMap),e._optionChangesOrder=a(u,e._optionChangesOrder),e._layoutChangesOrder=a(h,e._layoutChangesOrder),e._customChangesOrder=a(p,e._customChangesOrder),r(e),f.addPlugin=d,f},e.prototype._plugins=[],e.addChange=s,e.addPlugin=d},t.changes=function(){return new i},t.expand=c},function(e,t,n){var i=n(0).extend,o=n(3).each,a=n(132),r=n(201).chart.area,s=a.chart,l=a.polar,c=i,d=o;t.chart={},t.polar={};var u={_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=this,i={};s._setGroupsSettings.apply(n,arguments),e&&t?i=this._getAffineCoordOptions():e||(i={scaleX:1,scaleY:1,translateX:0,translateY:0}),n._markersGroup.attr(i)},_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,n=function(){t._animateComplete()},i=function(e,t){var n=e.length-1;d(e||[],function(e,i){i.animate(e===n?t:void 0,i.getMarkerCoords())})};t._animatePoints(e,n,i)},getValueRangeInitialValue:r.getValueRangeInitialValue,_patchMarginOptions:function(e){return e.checkInterval=!0,e},_defaultAggregator:"sum"};t.chart.bar=c({},s,u,{_getAffineCoordOptions:function(){var e=this._options.rotated,t=e?"X":"Y",n={scaleX:e?.001:1,scaleY:e?1:.001};return n["translate"+t]=this.getValueAxis().getTranslator().translate("canvas_position_default"),n},_animatePoints:function(e,t,n){var i=this;i._markersGroup.animate({scaleX:1,scaleY:1,translateY:0,translateX:0},void 0,t),e||n(i._drawnPoints,t)}}),t.polar.bar=c({},l,u,{_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=u._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),e=c({},n),delete e.opacity,t._markersGroup.attr(e)},_createLegendState:r._createLegendState})},function(e,t,n){function i(e){return!!(e&&String(e).length>0)}function o(e,t,n){e.attr({text:t}).applyEllipsis(n)&&e.setTitle(t)}function a(e){return e>=0?c(e):g}function r(e){var t;return e>=0?t={left:c(e),top:c(e),right:c(e),bottom:c(e)}:(e=e||{},t={left:a(e.left),top:a(e.top),right:a(e.right),bottom:a(e.bottom)}),t}function s(e){this._params=e,this._group=e.renderer.g().attr({"class":e.cssClass}).linkOn(e.renderer.root,{name:"title",after:"peripheral"}),this._hasText=!1}function l(e){var t=d(e)?{text:e}:e||{};return t.subtitle=d(t.subtitle)?{text:t.subtitle}:t.subtitle||{},t}var c=Number,d=n(1).isString,u=n(0).extend,h=n(16).patchFontOptions,p=n(16).enumParser(["left","center","right"]),f=n(16).enumParser(["top","bottom"]),g=10,_=3;u(s.prototype,n(251).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=p(e.horizontalAlignment,"center"),this._options.verticalAlignment=f(e.verticalAlignment,"top"),this._options.margin=r(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().attr(o).append(n),e._subtitleElement=t.text().attr(o),e._clipRect=t.clipRect(),n.attr({"clip-path":e._clipRect.id})),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,l="A";r.attr({text:l,y:0}).css(h(o.font)),e=r.getBBox(),n._titleTextY=e.height+e.y,r.attr({text:o.text}),e=r.getBBox(),t=-e.y,r.attr({y:t}),i(a.text)&&(t+=e.height+e.y,s.attr({text:a.text,y:0}).css(h(a.font)),t+=-s.getBBox().y-n._titleTextY+_,s.attr({y:t}))},_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}},update:function(e){var t=this,n=i(e.text),o=n||n!==t._hasText;return n?(t._updateOptions(e),t._updateStructure(),t._updateTexts(),t._boundingRect={},t._updateBoundingRect(),t._updateBoundingRectAlignment()):(t._group.linkRemove(),t._boundingRect=null),t._hasText=n,o},draw:function(e,t){var n,i=this;return i._group.linkAppend(),i._correctTitleLength(e),n=i.getLayoutOptions(),n.height>t&&this.freeSpace(),i},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;o(t._titleElement,n.text,a),t._subtitleElement&&o(t._subtitleElement,n.subtitle.text,a),t._updateBoundingRect()},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._setClipRectSettings(),n},_setClipRectSettings:function(){var e=this.getLayoutOptions();this._clipRect.attr({x:e.x,y:e.y,width:e.width,height:e.height})},_updateBoundingRect:function(){var e,t=this,n=t._options,i=n.margin,o=t._boundingRect;e=t._group.getBBox(),e.height+=i.top+i.bottom-t._titleTextY,e.width+=i.left+i.right,e.x-=i.left,e.y+=t._titleTextY-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},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){var t=this._boundingRect;(e[2]-e[0]").css({position:"absolute",overflow:"visible",height:"1px",pointerEvents:"none"}).addClass(e.cssClass),i._renderer=t=new u.Renderer({pathModified:e.pathModified,container:i._wrapper[0]}),n=t.root,n.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=d("
").css({position:"absolute",width:0,padding:0,margin:0,border:"0px solid transparent"}).appendTo(i._wrapper),i._textHtml=d("
").css({position:"relative",display:"inline-block",padding:0,margin:0,border:"0px solid transparent"}).appendTo(i._textGroupHtml)}var r=n(12),s=n(6),l=n(36),c=s.getWindow(),d=n(2),u=n(200),h=n(1),p=n(0).extend,f=10,g=n(16),_=n(252),m=Math.ceil,v=Math.max,x=Math.min;a.prototype={constructor:a,dispose:function(){this._wrapper.remove(),this._renderer.dispose(),this._options=this._widgetRoot=null},_getContainer:function(){var e=this._options,t=d(this._widgetRoot).closest(e.container);return 0===t.length&&(t=d(e.container)),(t.length?t:d("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=p({x:"-50%",y:"-50%",width:"200%",height:"200%"},e.shadow),t._options=e,i.visible&&p(n,{"stroke-width":i.width,stroke:i.color,"stroke-opacity":i.opacity,dashStyle:i.dashStyle}),t._textFontStyles=g.patchFontOptions(e.font),t._textFontStyles.color=e.font.color,t._wrapper.css({zIndex:e.zIndex}),t._customizeTooltip=h.isFunction(e.customizeTooltip)?e.customizeTooltip:null,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[l.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=this._options,i={};return this._customizeTooltip&&(i=this._customizeTooltip.call(e,e),i=h.isPlainObject(i)?i:{},"text"in i&&(t.text=h.isDefined(i.text)?String(i.text):""),"html"in i&&(t.html=h.isDefined(i.html)?String(i.html):"")),"text"in t||"html"in t||(t.text=e.valueText||""),t.color=i.color||n.color,t.borderColor=i.borderColor||(n.border||{}).color,t.textColor=i.fontColor||(n.font||{}).color,!!t.text||!!t.html},show:function(e,t,n){var i,o,a=this,r={},s=a._options,l=s.paddingLeftRight,d=s.paddingTopBottom,u=a._textGroupHtml,h=a._textHtml,p=a._shadowSettings,f=p.offsetX,g=p.offsetY,_=2*p.blur+1,v=c.getComputedStyle;return!!a._prepare(e,r)&&(a._state=r,r.tc={},a._wrapper.appendTo(a._getContainer()),a._cloud.attr({fill:r.color,stroke:r.borderColor}),r.html?(a._text.attr({text:""}),u.css({color:r.textColor,width:a._getCanvas().width}),h.html(r.html),v?(i=v(h.get(0)),i={x:0,y:0,width:m(parseFloat(i.width)),height:m(parseFloat(i.height))}):(i=h.get(0).getBoundingClientRect(),i={x:0,y:0,width:m(i.width?i.width:i.right-i.left),height:m(i.height?i.height:i.bottom-i.top)}),u.width(i.width),u.height(i.height)):(h.html(""),a._text.css({fill:r.textColor}).attr({text:r.text}),i=a._textGroup.css({fill:r.textColor}).getBBox()),o=r.contentSize={x:i.x-l,y:i.y-d,width:i.width+2*l,height:i.height+2*d,lm:_-f>0?_-f:0,rm:_+f>0?_+f:0,tm:_-g>0?_-g:0,bm:_+g>0?_+g:0},o.fullWidth=o.width+o.lm+o.rm,o.fullHeight=o.height+o.tm+o.bm+s.arrowLength,a.move(t.x,t.y,t.offset),a._eventData&&a._eventTrigger("tooltipHidden",a._eventData),a._eventData=n,a._eventTrigger("tooltipShown",a._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?o(this._options,t):this._options;return _(e,n)},getLocation:function(){return g.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,l=this,c=l._options,d=c.arrowLength,u=l._state,h=u.tc,p=u.contentSize,g=p.width,_=g/2,m=p.height,v=t-i.top,x=i.top+i.height-t,w=e-i.left,b=i.width+i.left-e,y=m+d+n+p.tm,C=m+d+n+p.bm,k=g+p.lm,S=g+p.rm,I=_+p.lm,T=_+p.rm,D=0,E=[6,0],A=_+f,B=_,O=_-f,M=m+d,P="center",R="bottom";switch(a=r=m,c.verticalAlignment){case"top":R="bottom",s=!0;break;case"bottom":R="top",s=!0}switch(s||(y>v&&C>x?R="out":y>v&&(R="top")),s=!1,c.horizontalAlignment){case"left":P="right",s=!0;break;case"center":P="center",s=!0;break;case"right":P="left",s=!0}return s||(k>w&&S>b?P="out":I>w&&Sb&&k0?0:t.left)),s.height=x(s.height+s.top-a,t.height+(t.top>0?0:t.top)),s.fullWidth=s.width,s.fullHeight=s.height,s.left=o,s.top=a),s}},t.Tooltip=a,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},_hideTooltip:function(){this._tooltip.hide()},_onRender:function(){this._$element.is(":visible")||this._hideTooltip()},_setTooltipRendererOptions:function(){this._tooltip.setRendererOptions(this._getRendererOptions())},_setTooltipOptions:function(){this._tooltip.update(this._getOption("tooltip"))}},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"})}}},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(16).patchFontOptions,a=0,r=1,s="linear",l=400,c="loadingIndicatorReady";i.prototype={constructor:i,_createStates:function(e,t,n,i){var o=this;o._states=[{opacity:0,start:function(){i(!1)},complete:function(){t.linkRemove(),n.css({"pointer-events":""}),e(c)}},{opacity:.85,start:function(){t.linkAppend(),n.css({"pointer-events":"none"}),i(!0)},complete:function(){e(c)}}],o._state=a},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:s,duration:l,unstoppable:!0}),n._noHiding=!0,t.start(),n._noHiding=!1)},show:function(){this._transit(r)},hide:function(){this._transit(a)},scheduleHiding:function(){this._noHiding||(this._isHiding=!0)},fulfillHiding:function(){this._isHiding&&this.hide()}},t.LoadingIndicator=i,t.plugin={name:"loading_indicator",init:function(){function e(e){n._skipLoadingIndicatorOptions=!0,n.option("loadingIndicator",{show:e}),n._skipLoadingIndicatorOptions=!1,e&&n._hideTooltip&&n._hideTooltip()}var n=this;n._loadingIndicator=new t.LoadingIndicator({eventTrigger:n._eventTrigger,renderer:n._renderer,notify:e}),n._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._scheduleLoadingIndicatorHiding()}},customize:function(e){var t=e.prototype;if(t._dataSourceChangedHandler){var n=t._dataSourceChangedHandler;t._dataSourceChangedHandler=function(){this._scheduleLoadingIndicatorHiding(),n.apply(this,arguments)}}var i=t._setContentSize;t._setContentSize=function(){i.apply(this,arguments),this._loadingIndicator.setSize(this._canvas)},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 o=t._drawn;t._drawn=function(){o.apply(this,arguments),this._dataIsReady()&&this._fulfillLoadingIndicatorHiding()}}}},function(e,t,n){function i(e,t){var n,i,o,a=e.length;for(n=0;n0&&(e._animationSettings={duration:a(t.duration),easing:t.easing})),e._containerBackgroundColor=e.option("containerBackgroundColor")||e._themeManager.theme().containerBackgroundColor},_setupDefaultFormat:function(){var e=this._translator.getDomain();this._defaultFormatOptions=r(e[0],e[1],this._getApproximateScreenRange())},_setupDomainCore:null,_calculateSize:null,_cleanContent:null,_renderContent:null,_setupCodomain:null,_getApproximateScreenRange:null,_factory:{createTranslator:function(){return new l.Translator1D},createTracker:function(e){return new h(e)}}});t.dxBaseGauge=f;var g=n(252),_=function(e,t,n){t=t||{};var i,o=g(e,t);return"function"==typeof t.customizeText?(i=c({value:e,valueText:o},n),String(t.customizeText.call(i,i))):o},m=function(e,t){var n=_(e.getDomainStart(),t),i=_(e.getDomainEnd(),t);return n.length>=i.length?n:i};t.formatValue=_,t.getSampleText=m,t.compareArrays=function(e,t){return e&&t&&e.length===t.length&&i(e,t)},f.addPlugin(n(130).plugin),f.addPlugin(n(166).plugin),f.addPlugin(n(167).plugin),f.addPlugin(n(168).plugin);var v=f.prototype._setTooltipOptions;f.prototype._setTooltipOptions=function(){v.apply(this,arguments),this._tracker&&this._tracker.setTooltipState(this._tooltip.isEnabled())},f.prototype._getTitleOptions=function(){var e,t,n=this,i=o(n.option("title"));return n._suppressDeprecatedWarnings(),i.subtitle=s(o(i.subtitle),o(n.option("subtitle"))),n._resumeDeprecatedWarnings(),e=c(!0,{},n._themeManager.theme("title"),i),e.position&&(t=u(e.position).split("-"),e.verticalAlignment=t[0],e.horizontalAlignment=t[1]),e}},function(e,t,n){function i(e,t){var n=e.ctx;n.suspend(),n.change(t),n.resume()}function o(e,t){var n,i=e.nodes,a=i&&i.length;for(n=0;n0?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||{},c(!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})}},s._extendProxyType=n(4).noop;var d=s._resetNodes;s._resetNodes=function(){d.call(this),this._eventTrigger("nodesRendering",{node:this._topNode.proxy})};var u=l.updateStyles;l.updateStyles=function(){var e=this;u.call(e),e._custom&&(e._partialState=!e.ctx.forceReset&&e._partialState||e.ctx.calculateState(e._custom),c(!0,e.state,e._partialState))};var h=l.updateLabelStyle;l.updateLabelStyle=function(){var e=this,t=e._custom;h.call(e),t&&t.label&&(e._partialLabelState=!e.ctx.forceReset&&e._partialLabelState||r(e,t.label),e.labelState=c(!0,{},e.labelState,e._partialLabelState))},s.getRootNode=function(){return this._root.proxy},s.resetNodes=function(){var e=this._context;return e.suspend(),e.change(["NODES_CREATE"]),e.resume(),this}},function(e,t,n){var i=n(11).inArray,o=n(6),a=o.hasWindow()?o.getWindow().WeakMap:WeakMap;a||(a=function(){var e=[],t=[];this.set=function(n,o){var a=i(n,e);a===-1?(e.push(n),t.push(o)):t[a]=o},this.get=function(n){var o=i(n,e);if(o!==-1)return t[o]},this.has=function(t){var n=i(t,e);return n!==-1},this.delete=function(n){var o=i(n,e);o!==-1&&(e.splice(o,1),t.splice(o,1))}}),e.exports=a},function(e,t,n){var i=n(3).each,o=n(19),a=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)}};e.exports=a},function(e,t,n){var i=n(10),o=n(6).getWindow(),a=n(1),r=n(0).extend,s=n(11).inArray,l=n(21),c=n(39),d=n(311),u=n(214),h=n(218),p='',f='',g="",_='',m="http://schemas.openxmlformats.org",v="rels",x="xl",w="workbook.xml",b="[Content_Types].xml",y="sharedStrings.xml",C="styles.xml",k="worksheets",S="sheet1.xml",I={"boolean":"b",date:"d",number:"n",string:"s"},T=Date.UTC(1899,11,30),D=60,E=4,A=7,B=165;t.ExcelCreator=i.inherit({_getXMLTag:function(e,t,n){var i,o,r="<"+e,s=t.length;for(i=0;i"+n+"":r+" />"},_getCellIndex:function(e,t){var n,i="",o=26;for(this._maxIndex[0]=o?t%o:Math.ceil(t)),i=String.fromCharCode(n)+i,!(t>=o))break;t=Math.floor(t/o)-1}return i+e},_getDataType:function(e){return I[e]||"s"},_formatObjectConverter:function(e,t,n){var i={format:e,precision:t,dataType:n};return a.isObject(e)?r(i,e,{format:e.formatter||e.type,currency:e.currency}):i},_appendFormat:function(e,t,n){var i,o=this._formatObjectConverter(e,t,n);if(e=o.format,t=o.precision,i=o.currency,n=o.dataType,e=h.convertFormat(e,t,n,i))return s(e,this._styleFormat)===-1&&this._styleFormat.push(e),s(e,this._styleFormat)+1},_appendString:function(e){if(a.isDefined(e)&&(e=String(e),e.length))return e=c.encodeHtml(e),void 0===this._stringHash[e]&&(this._stringHash[e]=this._stringArray.length,this._stringArray.push(e)),this._stringHash[e]},_getExcelDateValue:function(e){var t,n;if(a.isDate(e))return t=Math.floor((Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())-T)/864e5),t0&&(a._needSheetPr=!0),r.push(n)}return r},_getBoldStyleID:function(e){for(var t=0;t'},_generateStylesXML:function(){var e,t=this,n=t._zip.folder(x),i=[],o="";for(e=0;e':""},_getIgnoredErrorsXML:function(e){return this._options.ignoreErrors?'':""},_generateWorksheetXML:function(){var e,t,n,i,o,r,s=0,l=[],c=this._cellsArray.length,d=this._colsArray.length,u="1:"+d,h=this._dataProvider.getHeaderRowCount?this._dataProvider.getHeaderRowCount():1,p=[['',this._needSheetPr?f:g,''+this._getPaneXML()+''].join("")];for(e=0;e"),t=0;t=h?this._dataProvider.getGroupLevel(t):0},{name:"x14ac:dyDescent",value:"0.25"}],i.join(""))),this._cellsArray[t]=null,s++>1e4&&(p.push(l.join("")),l=[],s=0)}p.push(l.join("")),l=[],o=this._getCellIndex(this._maxIndex[0],this._maxIndex[1]),p.push(""+this._getAutoFilterXML(o)+this._generateMergingXML()+this._getIgnoredErrorsXML(o)+""),this._zip.folder(x).folder(k).file(S,p.join("")),this._colsArray=[],this._cellsArray=[],p=[]},_generateMergingXML:function(){var e,t,n,i,o,r,s=a.isDefined(this._dataProvider.getHeaderRowCount)?this._dataProvider.getHeaderRowCount():this._dataProvider.getRowsCount(),l=this._dataProvider.getColumns().length,c=[],d=[],u="";for(i=0;i")[0];return i.width=e+2*n,i.height=t+2*n,i}function o(e,t){var n=e.toDataURL(t,le),i=q.atob(n.substring(("data:"+t+";base64,").length));return i}function a(e,t,n,i,o,a,r,s){var l,c,d,u,h,p,f=(e+n)/2,g=(t+i)/2,_=ne(t-i,e-n),m=a?1:-1;_+=90*(Z/180)*(r?1:-1),l=ee(te(n-e,2)+te(i-t,2))/2,c=ee(J(te(o,2)-te(l,2))),d=f+m*(c*ie(_)),u=g+m*(c*oe(_)),h=ne(t-u,e-d),p=ne(i-u,n-d),s.arc(d,u,o,h,p,!r)}function r(e){var t,n=pe(e.attributes||{}),i=e.style||{},o=re({},n,{text:e.textContent.replace(/\s+/g," "),textAlign:"middle"===n["text-anchor"]?"center":n["text-anchor"]}),a=n.transform;return a&&(t=a.match(/translate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/),t&&(t=t[0].match(/-*\d+([.]\d+)*/g),o.translateX=se(t[0]),o.translateY=t[1]?se(t[1]):0),t=a.match(/rotate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*,*\s*-*\d+([.]\d+)*)*/),t&&(t=t[0].match(/-*\d+([.]\d+)*/g),o.rotationAngle=se(t[0]),o.rotationX=t[1]&&se(t[1]),o.rotationY=t[2]&&se(t[2]))),d(i,o),o}function s(e,t){var n=t.x,i=t.y,o=t.width,a=t.height,r=t.rx;r?(r=Q(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)}function l(e,t){var n=new Y,i=new q.Image;i.onload=function(){e.save(),e.globalAlpha=t.globalAlpha,y(e,t),C(e,t),e.drawImage(i,t.x,t.y,t.width,t.height),e.restore(),n.resolve()},i.onerror=function(){n.resolve()},R.push(n),i.setAttribute("crossOrigin","anonymous"),i.src=t["xlink:href"]}function c(e,t){var n,i,o=t.split(" "),r=0;do switch(n=se(o[r+1]),i=se(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,se(o[r+3]),se(o[r+4]),se(o[r+5]),se(o[r+6])),r+=7;break;case"A":a(se(o[r-2]),se(o[r-1]),se(o[r+6]),se(o[r+7]),n,se(o[r+4]),se(o[r+5]),e),r+=8;break;case"Z":e.closePath(),r+=1}while(r")),this.callBase(e,t)},_setDeprecatedOptions:function(){this.callBase(),a(this._deprecatedOptions,{iconSrc:{since:"15.1",alias:"icon"}})},_getDefaultOptions:function(){return a(this.callBase(),{onExecute:null,id:null,title:"",icon:"",visible:!0,disabled:!1,renderStage:"onViewShown"})},execute:function(){var e=this._options.disabled;if(c(e)&&(e=!!e.apply(this,arguments)),e)throw o.Error("E3004",this._options.id);this.fireEvent("beforeExecute",arguments),this._createActionByOption("onExecute").apply(this,arguments),this.fireEvent("afterExecute",arguments)},_render:function(){this.callBase(),this.$element().addClass("dx-command")},_renderDisabledState:u,_dispose:function(){this.callBase(),this.$element().removeData(this.NAME)}});s("dxCommand",h),e.exports=h},function(e,t,n){var i=n(10),o=n(11).inArray,a=n(3).each,r=i.inherit({ctor:function(){this.storage={}},getItem:function(e){return this.storage[e]},setItem:function(e,t){this.storage[e]=t},removeItem:function(e){delete this.storage[e]}}),s=i.inherit({ctor:function(e){e=e||{},this.storage=e.storage||new r,this.stateSources=e.stateSources||[]},addStateSource:function(e){this.stateSources.push(e)},removeStateSource:function(e){var t=o(e,this.stateSources);t>-1&&(this.stateSources.splice(t,1),e.removeState(this.storage))},saveState:function(){var e=this;a(this.stateSources,function(t,n){n.saveState(e.storage)})},restoreState:function(){var e=this;a(this.stateSources,function(t,n){n.restoreState(e.storage)})},clearState:function(){var e=this;a(this.stateSources,function(t,n){n.removeState(e.storage)})}});e.exports=s,e.exports.MemoryKeyValueStorage=r},function(e,t,n){n(43);var i=n(26),o=n(179).MarkupComponent,a=n(1).isPlainObject,r=n(8);n(109);var s=o.inherit({ctor:function(e,t){a(e)&&(t=e,e=i("
")),this.callBase(e,t)},_setDefaultOptions:function(){this.callBase(),this.option({id:null})},_render:function(){this.callBase(),this.element().addClass("dx-command-container")}});r("dxCommandContainer",s),e.exports=s},function(e,t,n){n(43);var i=n(26),o=n(10),a=n(0).extend,r=n(4).noop,s=n(100),l=o.inherit({ctor:function(e,t){this.NAME=s.name(this.constructor),t=t||{},this._$element=i(e),s.attachInstanceToElement(this._$element,this,this._dispose),t.fromCache?this._options=t:(this._options={},this._setDefaultOptions(),t&&this.option(t),this._render())},_setDefaultOptions:r,_render:r,_dispose:r,element:function(){return this._$element},option:function(e,t){if(0===arguments.length)return this._options;if(1===arguments.length){if("string"==typeof e)return this._options[e];t=e,a(this._options,t)}else this._options[e]=t},instance:function(){return this}});l.getInstance=function(e){return s.getInstanceByElement(i(e),this)},t.MarkupComponent=l},function(e,t,n){var i=n(10),o=n(4).grep,a=n(0).extend,r=n(3).each,s=n(11).inArray,l=n(62),c=i.inherit({ctor:function(){this._commandMappings={},this._containerDefaults={}},setDefaults:function(e,t){return this._containerDefaults[e]=t,this},mapCommands:function(e,t){var n=this;return r(t,function(t,i){"string"==typeof i&&(i={id:i});var o=i.id,r=n._commandMappings[e]||{};r[o]=a({showIcon:!0,showText:!0},n._containerDefaults[e]||{},i),n._commandMappings[e]=r}),this._initExistingCommands(),this},unmapCommands:function(e,t){var n=this;r(t,function(t,i){var o=n._commandMappings[e]||{};o&&delete o[i]}),this._initExistingCommands()},getCommandMappingForContainer:function(e,t){return(this._commandMappings[t]||{})[e]},checkCommandsExist:function(e){var t=this,n=o(e,function(n,i){return s(n,t._existingCommands)<0&&s(n,e)===i});if(0!==n.length)throw l.Error("E3005",n.join("', '"),1===n.length?" is":"s are")},load:function(e){if(e){var t=this;return r(e,function(e,n){t.setDefaults(e,n.defaults),t.mapCommands(e,n.commands)}),this}},_initExistingCommands:function(){var e=this;this._existingCommands=[],r(e._commandMappings,function(t,n){r(n,function(t,n){s(n.id,e._existingCommands)<0&&e._existingCommands.push(n.id)})})}});c.defaultMapping={"global-navigation":{defaults:{showIcon:!0,showText:!0},commands:[]},"ios-header-toolbar":{defaults:{showIcon:!1,showText:!0,location:"after"},commands:["edit","save",{id:"back",location:"before"},{id:"cancel",location:"before"},{id:"create",showIcon:!0,showText:!1}]},"ios-action-sheet":{defaults:{showIcon:!1,showText:!0},commands:[]},"ios-view-footer":{defaults:{showIcon:!1,showText:!0},commands:[{id:"delete",type:"danger"}]},"android-header-toolbar":{defaults:{showIcon:!0,showText:!1,location:"after"},commands:[{id:"back",showIcon:!1,location:"before"},"create",{id:"save",showText:!0,showIcon:!1,location:"after"},{id:"edit",showText:!1,location:"after"},{id:"cancel",showText:!1,location:"before"},{id:"delete",showText:!1,location:"after"}]},"android-simple-toolbar":{defaults:{showIcon:!0,showText:!1,location:"after"},commands:[{id:"back",showIcon:!1,location:"before"},{id:"create"},{id:"save",showText:!0,showIcon:!1,location:"after"},{id:"edit",showText:!1,location:"after"},{id:"cancel",showText:!1,location:"before"},{id:"delete",showText:!1,location:"after"}]},"android-footer-toolbar":{defaults:{location:"after"},commands:[{id:"create",showText:!1,location:"center"},{id:"edit",showText:!1,location:"before"},{id:"delete",locateInMenu:"always"},{id:"save",showIcon:!1,location:"before"}]},"generic-header-toolbar":{defaults:{showIcon:!1,showText:!0,location:"after"},commands:["edit","save",{id:"back",location:"before"},{id:"cancel",location:"before"},{id:"create",showIcon:!0,showText:!1}]},"generic-view-footer":{defaults:{showIcon:!1,showText:!0},commands:[{id:"delete",type:"danger"}]},"win8-appbar":{defaults:{location:"after"},commands:["edit","cancel","save","delete",{id:"create",location:"before"},{id:"refresh",location:"before"}]},"win8-toolbar":{defaults:{showText:!1,location:"before"},commands:[{id:"previousPage"}]},"win8-phone-appbar":{defaults:{location:"center"},commands:["create","edit","cancel","save","refresh",{id:"delete",locateInMenu:"always"}]},"win8-split-toolbar":{defaults:{showIcon:!0,showText:!1,location:"after"},commands:[{id:"back",showIcon:!1,location:"before"},{id:"create"},{id:"save",showText:!0,location:"before"},{id:"edit",showText:!0,locateInMenu:"always"},{id:"cancel",showText:!0,locateInMenu:"always"},{id:"delete",showText:!0,locateInMenu:"always"}]},"win8-master-detail-toolbar":{defaults:{showText:!1,location:"before"},commands:["back"]},"win10-appbar":{defaults:{showText:!1,location:"after"},commands:[{id:"back",location:"before"},"edit","cancel","save","delete","create","refresh"]},"win10-phone-appbar":{defaults:{location:"after"},commands:["create","edit","cancel","save","refresh",{id:"delete",locateInMenu:"always"}]},"desktop-toolbar":{defaults:{showIcon:!1,showText:!0,location:"after"},commands:["cancel","create","edit","save",{id:"delete",type:"danger"}]}},e.exports=c},function(e,t,n){n(43);var i=n(26),o=n(12),a=n(5),r=n(10),s=n(4),l=n(3),c=n(110),d=n(142).layoutSets,u=n(52),h=n(62),p=n(13),f=n(7).when,g="__hidden-bag",_=".dx-transition",m=".dx-content",v="onViewShown",x="dxcontentrendered.layoutController",w=".dx-pending-rendering",b=".dx-pending-rendering-manual",y=n(116);n(178),n(63);var C=function(e){return".dx-transition-"+e},k=r.inherit({ctor:function(e){e=e||{},this.name=e.name||"",this._layoutModel=e.layoutModel||{},this._defaultPaneName=e.defaultPaneName||"content",this._transitionDuration=void 0===e.transitionDuration?400:e.transitionDuration,this._showViewFired=!1},init:function(e){e=e||{},this._visibleViews={},this._$viewPort=e.$viewPort||i("body"),this._commandManager=e.commandManager,this._viewEngine=e.viewEngine,this.transitionExecutor=new y.TransitionExecutor,this._prepareTemplates(),this._$viewPort.append(this.element()),this._hideElements(this.element()),e.templateContext&&(this._templateContext=e.templateContext,this._proxiedTemplateContextChangedHandler=this._templateContextChangedHandler.bind(this))},ensureActive:function(e){return this._disabledState?this.enable():this.activate(e)},activate:function(){this._showViewFired=!1;var e=this.element();return this._showElements(e),this._attachRefreshViewRequiredHandler(),i.Deferred().resolve().promise()},deactivate:function(){return this._disabledState=!1,this._showViewFired=!1,this._releaseVisibleViews(), this._hideElements(this.element()),this._detachRefreshViewRequiredHandler(),i.Deferred().resolve().promise()},enable:function(){return this._disabledState=!1,this._showViewFired||this._notifyShowing(),this._showViewFired=!1,i.Deferred().resolve().promise()},disable:function(){this._disabledState=!0,this._showViewFired=!1,this._notifyHidden()},activeViewInfo:function(){return this._visibleViews[this._defaultPaneName]},_fireViewEvents:function(e,t){var n=this;t=t||this._visibleViews,l.each(t,function(t,i){n.fireEvent(e,[i])})},_notifyShowing:function(e){this._fireViewEvents("viewShowing",e)},_notifyShown:function(e){this._fireViewEvents("viewShown",e)},_notifyHidden:function(e){this._fireViewEvents("viewHidden",e)},_applyTemplate:function(e,t){e.each(function(e,n){c.templateProvider.applyTemplate(n,t)})},_releaseVisibleViews:function(){var e=this;l.each(this._visibleViews,function(t,n){e._hideView(n),e._releaseView(n)}),this._visibleViews={}},_templateContextChangedHandler:function(){var e=this,t=[];l.each(e._visibleViews,function(n,i){i.currentViewTemplateId!==e._getViewTemplateId(i)&&t.push(i)}),f.apply(i,l.map(t,function(t){return e.showView(t)})).done(function(){e._notifyShown(t)})},_attachRefreshViewRequiredHandler:function(){this._templateContext&&this._templateContext.on("optionChanged",this._proxiedTemplateContextChangedHandler)},_detachRefreshViewRequiredHandler:function(){this._templateContextChanged&&this._templateContext.off("optionChanged",this._proxiedTemplateContextChangedHandler)},_getPreviousViewInfo:function(e){return this._visibleViews[this._getViewPaneName(e.viewTemplateInfo)]},_prepareTemplates:function(){var e=this,t=e._viewEngine.getLayoutTemplate(this._getLayoutTemplateName());e._$layoutTemplate=t,e._$mainLayout=e._createEmptyLayout(),e._showElements(e._$mainLayout),e._applyTemplate(e._$mainLayout,e._layoutModel),e._$navigationWidget=e._createNavigationWidget()},renderNavigation:function(e){this._clearNavigationWidget(),this._renderNavigationImpl(e)},_renderNavigationImpl:function(e){this._renderCommands(this._$mainLayout,e)},_createNavigationWidget:function(){var e,t=this._findCommandContainers(this._$mainLayout);return l.each(t,function(t,n){if("global-navigation"===n.option("id"))return e=n.element(),!1}),e},_clearNavigationWidget:function(){this._$navigationWidget&&this._commandManager.clearContainer(this._$navigationWidget.dxCommandContainer("instance"))},element:function(){return this._$mainLayout},_getViewFrame:function(e){return this._$mainLayout},_getLayoutTemplateName:function(){return this.name},_applyModelToTransitionElements:function(e,t){var n=this;this._getTransitionElements(e).each(function(e,o){n._applyTemplate(i(o).children(),t)})},_createViewLayoutTemplate:function(){var e=this,t=e._$layoutTemplate.clone();return this._hideElements(t),t},_createEmptyLayout:function(){var e=this,t=e._$layoutTemplate.clone();return this._hideElements(t),this._getTransitionElements(t).empty(),t.children(m).remove(),t},_getTransitionElements:function(e){for(var t=e.find(_).add(e.filter(_)),n=[],o=0;o"),e.children().dxContent({targetPlaceholder:t}))},_appendViewToLayout:function(e){var t=this,n=t._getViewFrame(e),o=e.renderResult.$markup,a=i(),r=[];l.each(o.find(".dx-content-placeholder"),function(e,n){t._prepareTransition(i(n),i(n).attr("data-dx-content-placeholder-name"))}),l.each(t._getTransitionElements(n),function(e,n){var s=i(n),l=o.find(C(s.attr("data-dx-transition-name"))).children(),c={$element:l,animation:s.attr("data-dx-transition-type")};r.push(c),s.append(l),t._showViewElements(l),p.triggerShownEvent(l),a=a.add(l)}),t._$mainLayout.append(e.renderResult.$viewItems.filter(".dx-command")),o.remove(),e.renderResult.$markup=a,e.renderResult.animationItems=r},_onRenderComplete:function(e){},_onViewShown:function(e){a.trigger(o.getDocument(),"dx.viewchanged")},_enter:function(e,t){var n=this.transitionExecutor;l.each(e,function(e,i){n.enter(i.$element,i.animation,t)})},_leave:function(e,t){var n=this.transitionExecutor;l.each(e,function(e,i){n.leave(i.$element,i.animation,t)})},_doTransition:function(e,t,n){return e&&this._leave(e.renderResult.animationItems,n),this._enter(t.renderResult.animationItems,n),this._showView(t),this.transitionExecutor.start()},_showViewImpl:function(e,t,n){var o=this,a=this._getPreviousViewInfo(e),r={direction:t};a===e&&(a=void 0),a||(r.duration=0,r.delay=0);var s=i.Deferred();return o._doTransition(a,e,r).done(function(){o._changeView(e,n).done(function(e){s.resolve(e)})}),s.promise()},_releaseView:function(e){this.fireEvent("viewReleased",[e])},_getReadyForRenderDeferredItems:function(e){return i.Deferred().resolve().promise()},_changeView:function(e,t){var n=this;if(t)n._hideView(e,t);else{var o=n._getPreviousViewInfo(e);o&&o!==e&&(n._hideView(o),n._releaseView(o)),this._visibleViews[this._getViewPaneName(e.viewTemplateInfo)]=e}this._subscribeToDeferredItems(e);var a=i.Deferred();return this._getReadyForRenderDeferredItems(e).done(function(){n._applyViewCommands(e).done(function(){n._renderDeferredItems(e.renderResult.$markup).done(function(){a.resolve()})})}),a.promise()},_subscribeToDeferredItems:function(e){var t=this,n=e.renderResult.$markup;n.find(w).add(n.filter(w)).each(function(){var n={viewInfo:e,context:t};i(this).on(x,n,t._onDeferredContentRendered)})},_onDeferredContentRendered:function(e){var t=i(e.target),n=e.data.viewInfo,o=e.data.context;t.off(x,o._onDeferredContentRendered),o._renderCommands(t,n.commands)},_renderDeferredItems:function(e){var t=this,n=i.Deferred(),o=e.find(b).add(e.filter(b)).first();if(o.length){var a=o.data("dx-render-delegate");s.executeAsync(function(){a().done(function(){t._renderDeferredItems(e).done(function(){n.resolve()})})})}else n.resolve();return n.promise()},_getViewPaneName:function(e){return this._defaultPaneName},_hideElements:function(e){e.addClass("dx-fast-hidden")},_showElements:function(e){e.removeClass("dx-fast-hidden")},_hideViewElements:function(e){this._patchIds(e),this._disableInputs(e),e.removeClass("dx-active-view").addClass("dx-inactive-view")},_hideView:function(e,t){if(e.renderResult){var n=void 0===t?e.renderResult.$markup:e.renderResult.markupCache[t];this._hideViewElements(n),this.fireEvent("viewHidden",[e])}},_showViewElements:function(e){this._unPatchIds(e),this._enableInputs(e),e.removeClass("dx-inactive-view").addClass("dx-active-view"),this._skipAnimation(e)},_showView:function(e){e.renderResult&&this._showViewElements(e.renderResult.$markup)},_skipAnimation:function(e){e.addClass("dx-skip-animation");for(var t=0;tn,r&&(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:g.format("dxList-pullingDownText"),pulledDownText:g.format("dxList-pulledDownText"),refreshingText:g.format("dxList-refreshingText"),pageLoadingText:g.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:g.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(){return this.callBase().concat(k(),[{device:function(){return!f.nativeScrolling},options:{useNativeScrolling:!1}},{device:function(e){return!f.nativeScrolling&&!m.isSimulator()&&"generic"===m.real().platform&&"generic"===e.platform},options:{showScrollbar:"onHover",pageLoadMode:"nextButton"}},{device:function(){return"desktop"===m.real().deviceType&&!m.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return b.isAndroid5()},options:{useInkRipple:!0}},{device:function(){return"win"===m.current().platform&&m.isSimulator()},options:{bounceEnabled:!1}},{device:function(){return b.isMaterial()},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",pageLoadingText:"",useInkRipple:!0}}])},_visibilityChanged:function(e){e&&this._updateLoadingState(!0)},_itemClass:function(){return E},_itemDataKey:function(){return z},_itemContainer:function(){return this._$container},_refreshItemElements:function(){this.option("grouped")?this._itemElementsCache=this._itemContainer().children("."+B).children("."+M).children(this._itemSelector()):this._itemElementsCache=this._itemContainer().children(this._itemSelector())},reorderItem:function(e,t){var n=this.callBase(e,t);return n.done(function(){this._refreshItemElements()})},deleteItem:function(e){var t=this.callBase(e);return t.done(function(){this._refreshItemElements()})},_itemElements:function(){return this._itemElementsCache},_itemSelectHandler:function(e){"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=N,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)})},_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(),C,{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 I(function(e,t){r.isPlainObject(t)?t.key&&e.text(t.key):e.text(String(t))},["key"],this.option("integrationOptions.watchMethod"))},_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()&&y.hasWindow()&&this._scrollView&&this._scrollView.scrollTo(0),this.callBase(e)},_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(){var e=this.$element().is(":visible");!e||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")?(l(e,this._renderGroup.bind(this)),this._attachGroupCollapseEvent(),this._renderEmptyMessage(),b.isMaterial()&&this.attachGroupHeaderInkRippleEvents()):this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},_attachGroupCollapseEvent:function(){var e=w.addNamespace(h.name,this.NAME),t="."+O,n=this.$element(),a=this.option("collapsibleGroups");n.toggleClass(P,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",s(t.find("."+E).eq(0)))}.bind(this),{validatingTargetName:"element"})({event:e})}.bind(this))},_collapseGroupHandler:function(e,t){var n=new T;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),u.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(D),this.callBase(),this.option("useInkRipple")&&this._renderInkRipple()},_renderInkRipple:function(){this._inkRipple=_.render()},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments);var i=this;if(this._inkRipple){var o={element:e,event:n};t?b.isMaterial()?this._inkRippleTimer=setTimeout(function(){i._inkRipple.showWave(o)},N/2):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=w.addNamespace(p.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("
").addClass(B).appendTo(this._itemContainer()),o=i("
").addClass(O).appendTo(n),a=this.option("groupTemplate"),r=this._getTemplate(t.template||a,t,e,o),c={index:e,itemData:t,container:s(o)};this._createItemByTemplate(r,c),b.isMaterial()&&i("
").addClass(V).prependTo(o),this._renderingGroupIndex=e;var d=i("
").addClass(M).appendTo(n);l($(t)||[],function(e,t){this._renderItem(e,t,d)}.bind(this)),this._groupRenderAction({groupElement:s(n),groupIndex:e,groupData:t})},attachGroupHeaderInkRippleEvents:function(){var e=this,t="."+O,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(F,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("
").addClass(L),t=i("
").appendTo(e);return this._createComponent(t,x,{text:this.option("nextButtonText"),onClick:this._nextButtonHandler.bind(this),type:b.isMaterial()?"default":void 0,integrationOptions:{}}),e},_moveFocus:function(){this.callBase.apply(this,arguments),this.scrollToItem(this.option("focusedElement"))},_refresh:function(){if(y.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("."+B),n=t.find("."+E);return d(this.callBase(e),{itemIndex:{group:t.index(),item:n.index(e)}})},expandGroup:function(e){var t=new T,n=this._itemContainer().find("."+B).eq(e);return this._collapseGroupHandler(n,!1).done(function(){t.resolveWith(this)}.bind(this)),t.promise()},collapseGroup:function(e){var t=new T,n=this._itemContainer().find("."+B).eq(e);return this._collapseGroupHandler(n,!0).done(function(){t.resolveWith(this)}.bind(this)),t},updateDimensions:function(){var e=this,t=new T;return e._scrollView?e._scrollView.update().done(function(){!e._scrollViewIsFull()&&e._updateLoadingState(!0),t.resolveWith(e)}):t.resolveWith(e),t.promise()},reload:function(){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)}});W.ItemClass=v,e.exports=W},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(3).each,s=n(14),l=n(10),c=n(271),d="dxNativeScrollable",u="dx-scrollable-native",h="dx-scrollable-scrollbar-simulated",p="dx-scrollable-scrollbars-hidden",f="vertical",g="horizontal",_=500,m=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(),t=e.platform;this._$element.addClass(u).addClass(u+"-"+t).toggleClass(p,!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(h),this._renderScrollbar(f),this._renderScrollbar(g)},_renderScrollbar:function(e){this._isDirection(e)&&(this._scrollbars[e]=new c(i("
").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(g)?e.left>=0:void 0,reachedRight:this._isDirection(g)?e.left<=this._containerSize.width-this._componentContentSize.width:void 0,reachedTop:this._isDirection(f)?e.top>=0:void 0,reachedBottom:this._isDirection(f)?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(),i=t+n-2*e;n?i||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),_)},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===f?"height":"width";e.option({containerSize:this._containerSize[n],contentSize:this._componentContentSize[n]}),e.update()})},_allowedDirections:function(){return{vertical:this._isDirection(f)&&this._contentSize.height>this._containerSize.height,horizontal:this._isDirection(g)&&this._contentSize.width>this._containerSize.width}},dispose:function(){var e=this._$element.get(0).className,t=new RegExp(u+"\\S*","g");t.test(e)&&this._$element.removeClass(e.match(t).join(" ")),o.off(this._$element,"."+d),o.off(this._$container,"."+d),this._removeScrollbars(),clearTimeout(this._gestureEndTimer),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=m},function(e,t,n){var i=n(2),o=n(5),a=n(10),r=n(8),s=n(0).extend,l=n(4).noop,c=n(6),d=n(36),u=n(1).isDefined,h=n(83),p=n(3).each,f=n(30),g=n(146),_=n(14),m=n(44),v="dx-box",x=".dx-box",w="dx-box-item",b="dxBoxItemData",y={row:"minWidth",col:"minHeight"},C={row:"maxWidth",col:"maxHeight"},k=1,S={start:"flex-start",end:"flex-end",center:"center","space-between":"space-between","space-around":"space-around"},I={start:"flex-start",end:"flex-end",center:"center",stretch:"stretch"},T={row:"row",col:"column"},D=g.inherit({_renderVisible:function(e,t){this.callBase(e),u(t)&&this._options.fireItemStateChangedAction({name:"visible",state:e,oldState:t})}}),E=function(e,t,n){if(n=h.normalizeStyleProp(t,n),e.style[h.styleProp(t)]=n,!c.hasWindow()){if(""===n||!u(n))return;var i=d.dasherize(t),o=i+": "+n+";";e.attributes.style?e.attributes.style.value.indexOf(o)<0&&(e.attributes.style.value+=" "+o):e.setAttribute("style",o)}},A=a.inherit({ctor:function(e,t){this._$element=e,this._option=t},renderBox:function(){this._$element.css({display:h.stylePropPrefix("flexDirection")+"flex"}),E(this._$element.get(0),"flexDirection",T[this._option("direction")])},renderAlign:function(){this._$element.css({justifyContent:this._normalizedAlign()})},_normalizedAlign:function(){var e=this._option("align");return e in S?S[e]:e},renderCrossAlign:function(){this._$element.css({alignItems:this._normalizedCrossAlign()})},_normalizedCrossAlign:function(){var e=this._option("crossAlign");return e in I?I[e]:e},renderItems:function(e){var t=h.stylePropPrefix("flexDirection"),n=this._option("direction");p(e,function(){var e=i(this),o=e.data(b);e.css({display:t+"flex"}).css(C[n],o.maxSize||"none").css(y[n],o.minSize||"0"),E(e.get(0),"flexBasis",o.baseSize||0),E(e.get(0),"flexGrow",o.ratio),E(e.get(0),"flexShrink",u(o.shrink)?o.shrink:k),e.children().each(function(e,t){i(t).css({width:"auto",height:"auto",display:h.stylePropPrefix("flexDirection")+"flex",flexBasis:0}),E(t,"flexGrow",1),E(t,"flexDirection",i(t)[0].style.flexDirection||"column")})})},initSize:l,update:l}),B="dxBox",O="dxupdate."+B,M="dx-box-fallback-item",P={row:"nowrap",col:"normal"},R={row:"width",col:"height"},V={row:"height",col:"width"},F={row:"marginLeft",col:"marginTop"},L={row:"marginRight",col:"marginBottom"},H={row:"marginTop",col:"marginLeft"},z={row:"marginBottom",col:"marginRight"},N={marginLeft:"marginRight",marginRight:"marginLeft"},$=a.inherit({ctor:function(e,t){this._$element=e,this._option=t},renderBox:function(){this._$element.css({fontSize:0,whiteSpace:P[this._option("direction")],verticalAlign:"top"}),o.off(this._$element,O),o.on(this._$element,O,this.update.bind(this))},renderAlign:function(){var e=this._$items;if(e){var t=this._option("align"),n=0,i=this.totalItemSize,o=this._option("direction"),a=this._$element[R[o]](),r=a-i;switch(this._setItemsMargins(e,o,0),t){case"start":break;case"end":n=r,e.first().css(this._chooseMarginSide(F[o]),n);break;case"center":n=.5*r,e.first().css(this._chooseMarginSide(F[o]),n),e.last().css(this._chooseMarginSide(L[o]),n);break;case"space-between":n=.5*r/(e.length-1),this._setItemsMargins(e,o,n),e.first().css(this._chooseMarginSide(F[o]),0),e.last().css(this._chooseMarginSide(L[o]),0);break;case"space-around":n=.5*r/e.length,this._setItemsMargins(e,o,n)}}},_setItemsMargins:function(e,t,n){e.css(this._chooseMarginSide(F[t]),n).css(this._chooseMarginSide(L[t]),n)},renderCrossAlign:function(){var e=this._$items;if(e){var t=this._option("crossAlign"),n=this._option("direction"),o=this._$element[V[n]](),a=this;switch(t){case"start":break;case"end":p(e,function(){var e=i(this),t=e[V[n]](),r=o-t;e.css(a._chooseMarginSide(H[n]),r)});break;case"center":p(e,function(){var e=i(this),t=e[V[n]](),r=.5*(o-t);e.css(a._chooseMarginSide(H[n]),r).css(a._chooseMarginSide(z[n]),r)});break;case"stretch":e.css(a._chooseMarginSide(H[n]),0).css(a._chooseMarginSide(z[n]),0).css(V[n],"100%")}}},_chooseMarginSide:function(e){return this._option("rtlEnabled")?N[e]||e:e},renderItems:function(e){this._$items=e;var t=this._option("direction"),n=0,o=0,a=0;p(e,function(e,r){var s=i(r);s.css({display:"inline-block",verticalAlign:"top"}),s[R[t]]("auto"),s.removeClass(M);var l=s.data(b),c=l.ratio||0,d=this._baseSize(s),h=u(l.shrink)?l.shrink:k;n+=c,o+=h*d,a+=d}.bind(this));var r=this._boxSize()-a,s=function(e){var t=e.data(b),i=this._baseSize(e),a=r>=0?t.ratio||0:(u(t.shrink)?t.shrink:k)*i,s=r>=0?n:o,l=s?Math.round(r*a/s):0;return i+l}.bind(this),l=0;p(e,function(e,n){var o=i(n),a=i(n).data(b),r=s(o);l+=r,o.css(C[t],a.maxSize||"none").css(y[t],a.minSize||"0").css(R[t],r),o.addClass(M)}),this.totalItemSize=l},_baseSize:function(e){var t=i(e).data(b);return null==t.baseSize?0:"auto"===t.baseSize?this._contentSize(e):this._parseSize(t.baseSize)},_contentSize:function(e){return i(e)[R[this._option("direction")]]()},_parseSize:function(e){return String(e).match(/.+%$/)?.01*parseFloat(e)*this._boxSizeValue:e},_boxSize:function(e){return arguments.length?void(this._boxSizeValue=e):(this._boxSizeValue=this._boxSizeValue||this._totalBaseSize(),this._boxSizeValue)},_totalBaseSize:function(){var e=0;return p(this._$items,function(t,n){e+=this._baseSize(n)}.bind(this)),e},initSize:function(){this._boxSize(this._$element[R[this._option("direction")]]())},update: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(x).each(function(){e===i(this).parent().closest(x).get(0)&&o.triggerHandler(this,O)})}}}),W=m.inherit({_getDefaultOptions:function(){return s(this.callBase(),{direction:"row",align:"start",crossAlign:"stretch",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,_layoutStrategy:"flex",_queue:void 0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function e(){var e=_.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||f.msie||t||n},options:{_layoutStrategy:"fallback"}}])},_itemClass:function(){return w},_itemDataKey:function(){return b},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_init:function(){this.callBase(),this.$element().addClass(v+"-"+this.option("_layoutStrategy")),this._initLayout(),this._initBoxQueue()},_initLayout:function(){this._layout="fallback"===this.option("_layoutStrategy")?new $(this.$element(),this.option.bind(this)):new A(this.$element(),this.option.bind(this))},_initBoxQueue:function(){this._queue=this.option("_queue")||[]},_queueIsNotEmpty:function(){return!this.option("_queue")&&!!this._queue.length},_pushItemToQueue:function(e,t){this._queue.push({$item:e,config:t})},_shiftItemFromQueue:function(){return this._queue.shift()},_initMarkup:function(){this.$element().addClass(v),this._layout.renderBox(),this.callBase(),this._renderAlign(),this._renderActions()},_renderActions:function(){this._onItemStateChanged=this._createActionByOption("onItemStateChanged")},_renderAlign:function(){this._layout.renderAlign(),this._layout.renderCrossAlign()},_renderItems:function(e){for(this._layout.initSize(),this.callBase(e);this._queueIsNotEmpty();){var t=this._shiftItemFromQueue();this._createComponent(t.$item,W,s({_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},t.config))}this._layout.renderItems(this._itemElements()),clearTimeout(this._updateTimer),this._updateTimer=setTimeout(function(){this._isUpdated||this._layout.update(),this._isUpdated=!1,this._updateTimer=null}.bind(this))},_renderItemContent:function(e){var t=e.itemData&&e.itemData.node;return t?this._renderItemContentByNode(e,t):this.callBase(e)},_postprocessRenderItem:function(e){var t=e.itemData.box;t&&this._pushItemToQueue(e.itemContent,t)},_createItemByTemplate:function(e,t){return t.itemData.box?e.source?e.source():i():this.callBase(e,t)},_visibilityChanged:function(e){e&&this._dimensionChanged()},_dimensionChanged:function(){this._updateTimer||(this._isUpdated=!0,this._layout.update())},_dispose:function(){clearTimeout(this._updateTimer),this.callBase.apply(this,arguments)},_itemOptionChanged:function(e,t,n,i){"visible"===t&&this._onItemStateChanged({name:t,state:n,oldState:i!==!1}),this.callBase(e,t,n)},_optionChanged: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:this.callBase(e)}},_itemOptions:function(){var e=this,t=this.callBase();return t.fireItemStateChangedAction=function(t){e._onItemStateChanged(t)},t},repaint:function(){this._dimensionChanged()}});W.ItemClass=D,r("dxBox",W),e.exports=W},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(10),s=n(32),l=r.abstract,c=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("
"),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?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=c},function(e,t,n){var i=n(214).fileSaver,o=n(1).isFunction;t.export=function(e,t,n){if(e){var a=t.exportingAction,r=t.exportedAction,s=t.fileSavingAction,l={fileName:t.fileName,format:t.format,cancel:!1};o(a)&&a(l),l.cancel||n(e,t,function(e){o(r)&&r(),o(s)&&(l.data=e,s(l)),l.cancel||i.saveAs(l.fileName,t.format,e,t.proxyUrl,void 0,t.forceProxy)})}},t.fileSaver=i,t.excel={creator:n(173).ExcelCreator,getData:n(173).getData,formatConverter:n(218)},t.image={creator:n(174).imageCreator,getData:n(174).getData},t.pdf={getData:n(313).getData},t.svg={creator:n(222).svgCreator,getData:n(222).getData}},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(11).inArray,a=n(345),r=a.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-1?this._collectionWidget._itemElements().eq(e):null},_itemsFromSameParent:function(){return!0}});e.exports=r},function(e,t,n){e.exports=n(464)},function(e,t,n){var i=n(37),o=n(19),a=n(21),r=n(58),s=n(0).extend,l=n(3).map,c=n(156),d=n(89),u=n(498),h=n(8),p="dx-validator",f=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){d.removeRegisteredValidator(e.component._validationGroup,e.component)}),this._groupWasInit&&this._validationGroup===e||(d.removeRegisteredValidator(this._validationGroup,this),this._groupWasInit=!0,this._validationGroup=e,d.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 u(n,this),o.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(p),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,n=t.option("adapter"),i=t.option("name"),o=n.bypass&&n.bypass(),a=n.getValue(),r=n.getCurrentValidationError&&n.getCurrentValidationError(),s=this._getValidationRules();return o?e={isValid:!0}:r&&r.editorSpecific?(r.validator=this,e={isValid:!1,brokenRule:r}):e=d.validate(a,s,i),this._applyValidationResult(e,n),e},reset:function(){var e=this,t=e.option("adapter"),n={isValid:!0,brokenRule:null};t.reset(),this._resetValidationRules(),this._applyValidationResult(n,t)},_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(c);h("dxValidator",f),e.exports=f},function(e,t,n){var i=n(2),o=n(5),a=n(14),r=n(8),s=n(38),l=n(67),c=n(9),d=n(0).extend,u=n(1).isPlainObject,h=n(25),p=n(279),f=n(20),g=n(90),_=n(103),m=n(44),v=n(106),x=n(65),w="dx-tabs",b="dx-tabs-wrapper",y="dx-tabs-expanded",C="dx-tabs-scrollable",k="dx-tabs-nav-buttons",S="dx-overflow-hidden",I="dx-tab",T="dx-tab-selected",D="dx-tabs-nav-button",E="dx-tabs-nav-button-left",A="dx-tabs-nav-button-right",B="dx-tab-text",O="dxTabData",M="chevronnext",P="chevronprev",R=100,V=5,F=300,L=30,H=m.inherit({_activeStateUnit:"."+I,_getDefaultOptions:function(){return d(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(){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 f.isAndroid5()},options:{useInkRipple:!0}},{device:function(){return f.isMaterial()},options:{useInkRipple:!0,selectOnFocus:!1}}])},_init:function(){this.callBase(),this.setAria("role","tablist"),this.$element().addClass(w),this._renderMultiple(),this._feedbackHideTimeout=R},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new x(function(e,t){u(t)?this._prepareDefaultItemTemplate(t,e):e.text(String(t));var n=v.getImageContainer(t.icon);e.wrapInner(i("").addClass(B)),n&&n.prependTo(e)}.bind(this),["text","html","icon"],this.option("integrationOptions.watchMethod"))},_itemClass:function(){return I},_selectedItemClass:function(){return T},_itemDataKey:function(){return O},_initMarkup:function(){this.callBase(),this._renderWrapper(),this.setAria("role","tab",this.itemElements()),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().addClass(S)},_render:function(){this.callBase(),this._renderScrolling()},_renderScrolling:function(){this.$element().removeClass(y),this.$element().removeClass(S),this._allowScrolling()&&(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._allowScrolling()||(this._cleanScrolling(),this.$element().removeClass(k).addClass(y))},_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._scrollable.$content().children("."+b).appendTo(this._itemContainer()),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.$element().wrapInner(i("
").addClass(b))},_renderScrollable:function(){var e=this.$element().wrapInner(i("
").addClass(C)).children();this._scrollable=this._createComponent(e,_,{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)}},_allowScrolling:function(){if(!this.option("scrollingEnabled"))return!1;var e=0;return this._getAvailableItems().each(function(t,n){e+=i(n).outerWidth(!0)}),e-1>this.$element().width()},_renderNavButtons:function(){if(this.$element().toggleClass(k,this.option("showNavButtons")),this.option("showNavButtons")){var e=this.option("rtlEnabled");this._leftButton=this._createNavButton(-L,e?M:P);var t=this._leftButton.$element();t.addClass(E),this.$element().prepend(t),this._rightButton=this._createNavButton(L,e?P:M);var n=this._rightButton.$element();n.addClass(A),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,V)},V)}),r=c.addNamespace(g.name,"dxNavButton"),l=c.addNamespace(h.up,"dxNavButton"),d=c.addNamespace(h.out,"dxNavButton"),u=this._createComponent(i("
").addClass(D),s,{focusStateEnabled:!1,icon:t,onClick:function(){n._updateScrollPosition(e,1)},integrationOptions:{}}),p=u.$element();return o.on(p,r,{timeout:F},function(e){a({event:e})}.bind(this)),o.on(p,l,function(){n._clearInterval()}),o.on(p,d,function(){n._clearInterval()}),u},_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.option("scrollingEnabled")&&this._renderScrolling()},_itemSelectHandler:function(e){"single"===this.option("selectionMode")&&this.isItemSelected(e.currentTarget)||this.callBase(e)},_clean:function(){this._scrollable=null,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"selectionMode":this._renderMultiple(),this.callBase(e);break;case"badgeExpr":this._invalidate();break;default:this.callBase(e)}}});H.ItemClass=p,r("dxTabs",H),e.exports=H,e.exports.getTabsExpandedClass=y},function(e,t,n){var i=n(2),o=n(4).noop,a=n(15),r=n(8),s=n(0).extend,l=n(87),c=n(70),d=n(7).Deferred,u=n(20),h="dx-loadpanel",p="dx-loadpanel-wrapper",f="dx-loadpanel-indicator",g="dx-loadpanel-message",_="dx-loadpanel-content",m="dx-loadpanel-content-wrapper",v="dx-loadpanel-pane-hidden",x=c.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 u.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(h),this._wrapper().addClass(p)},_renderContentImpl:function(){this.callBase(),this.$content().addClass(_),this._$contentWrapper=i("
").addClass(m),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 d,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("
").addClass(g).text(e);this._$contentWrapper.append(t)}}},_renderLoadIndicator:function(){this._$contentWrapper&&this.option("showIndicator")&&(this._$indicator=i("
").addClass(f).appendTo(this._$contentWrapper),this._createComponent(this._$indicator,l,{indicatorSrc:this.option("indicatorSrc")}))},_cleanPreviousContent:function(){this.$content().find("."+g).remove(),this.$content().find("."+f).remove()},_togglePaneVisible:function(){this.$content().toggleClass(v,!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",x),e.exports=x},function(e,t,n){e.exports=n(485)},function(e,t,n){e.exports=n(285),e.exports.show=n(197).show,e.exports.hide=n(197).hide},function(e,t,n){var i=n(2),o=n(285),a=n(0).extend,r=n(7).Deferred,s=n(73),l=null,c=null,d=function(e){e=a({position:"top"},e);var t=e.content;delete e.content;var n=i("
").html(t).appendTo(s.value());c=function(){n.remove()},l=new o(n,e)},u=function(){l&&(c(),l=null)};t.show=function(e){return u(),d(e),l.show()},t.hide=function(){return l?l.hide().done(u).promise():(new r).resolve()}},function(e,t,n){var i=n(1),o=n(11).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 e.getHours()+e.getMinutes()+e.getSeconds()+e.getMilliseconds()<1},l=function(e){return"date"===e||"datetime"===e},c=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)})},d=function(e){var t,o,a,r=this,s=r.dataField;if(Array.isArray(e)&&i.isDefined(e[0])&&i.isDefined(e[1]))return o=[s,">=",e[0]],a=[s,"<=",e[1]],l(r.dataType)&&n(e[1])&&(t=new Date(e[1].getTime()),t.setDate(e[1].getDate()+1),a=[s,"<",t]),[o,"and",a]},u=function(n,i,o){var a,r,s,l=this,d=c(n),u=t(l,o);switch("headerFilter"===o?s=e.exports.getGroupInterval(l)[d.length-1]:"datetime"===l.dataType&&(s="minute"),s){case"year":a=new Date(d[0],0,1),r=new Date(d[0]+1,0,1);break;case"month":a=new Date(d[0],d[1],1),r=new Date(d[0],d[1]+1,1);break;case"quarter":a=new Date(d[0],3*d[1],1),r=new Date(d[0],3*d[1]+3,1);break;case"hour":a=new Date(d[0],d[1],d[2],d[3]),r=new Date(d[0],d[1],d[2],d[3]+1);break;case"minute":a=new Date(d[0],d[1],d[2],d[3],d[4]),r=new Date(d[0],d[1],d[2],d[3],d[4]+1);break;case"second":a=new Date(d[0],d[1],d[2],d[3],d[4],d[5]),r=new Date(d[0],d[1],d[2],d[3],d[4],d[5]+1);break;default:a=new Date(d[0],d[1],d[2]),r=new Date(d[0],d[1],d[2]+1)}switch(i){case"<":return[u,"<",a];case"<=":return[u,"<",r];case">":return[u,">=",r];case">=":return[u,">=",a];case"<>":return[[u,"<",a],"or",[u,">=",r]];default:return[[u,">=",a],"and",[u,"<",r]]}},h=function(n,o,a){var r=this,s=t(r,a),l=e.exports.getGroupInterval(r);if("headerFilter"===a&&l&&i.isDefined(n)){var c,d,u,h=(""+n).split("/"),p=Number(h[h.length-1]);c=l[h.length-1],d=[s,">=",p],u=[s,"<",p+c];var f=[d,"and",u];return f}return[s,o||"=",n]};return{defaultCalculateFilterExpression:function(e,n,o){var a=this,r=t(a,o),s=a.calculateDisplayValue&&"search"===o,c=s&&a.lookup&&a.lookup.dataType||a.dataType,p=null;if("headerFilter"===o&&null===e)p=[r,n||"=",null],"string"===c&&(p=[p,"="===n?"or":"and",[r,n||"=",""]]);else if("string"!==c||a.lookup&&!s){if("between"===n)return d.apply(a,arguments);if(l(c)&&i.isDefined(e))return u.apply(a,arguments);if("number"===c)return h.apply(a,arguments);"object"!==c&&(p=[r,n||"=",e])}else p=[r,n||"contains",e];return p},getGroupInterval:function(e){var t,n=[],a=["year","month","day","hour","minute","second"],c=e.headerFilter&&e.headerFilter.groupInterval,d="quarter"===c?"month":c;return l(e.dataType)&&null!==c?(n="datetime"===e.dataType?s:r,t=o(d,a),t>=0?(n=a.slice(0,t),n.push(c),n):n):i.isDefined(c)?Array.isArray(c)?c:[c]:void 0; }}}()},function(e,t,n){var i=n(2),o=n(12),a=n(5),r=n(37),s=n(18),l=n(30),c=n(4),d=n(83),u=n(13).getPublicElement,h=n(1),p=n(3),f=n(0).extend,g=n(104).getDefaultAlignment,_=n(14),m=n(45),v=n(48),x=n(364),w=c.noop,b="scroll-container",y="group-space",C="content",k="table",S="table-fixed",I="content-fixed",T="dx-row",D="dx-group-row",E="dx-master-detail-row",A="filter-row",B="0.0001px",O="dxCellHintVisible",M="dx-field-item-content",P={render:function(e){e.container.append(e.content)}},R=function(e,t){function n(e){return setTimeout(function(){o=r=null},e)}var o,r,s;a.on(t,"touchstart touchend",".dx-row",function(e){clearTimeout(s),"touchstart"===e.type?(o=e.target,r=e.currentTarget,s=n(1e3)):s=n()}),a.on(t,"dxclick",".dx-row",{useNative:e._isNativeClick()},e.createAction(function(t){var n=t.event;o&&(n.target=o,n.currentTarget=r),i(n.target).closest("a").length||(t.rowIndex=e.getRowIndex(n.currentTarget),t.rowIndex>=0&&(t.rowElement=u(i(n.currentTarget)),t.columns=e.getColumns(),e._rowClick(t)))}))},V=function(e){return"auto"===e?"":"number"==typeof e?e+"px":e};t.ColumnsView=m.View.inherit(x).inherit({_createScrollableOptions:function(){var e=this,t=e.option("scrolling"),n=e.option("scrolling.useNative"),i=f({},t,{direction:"both",updateManually:!0,bounceEnabled:!1,useKeyboard:!1});return void 0===n&&(n=!0),"auto"===n?(delete i.useNative,delete i.useSimulatedScrollbar):(i.useNative=!!n,i.useSimulatedScrollbar=!n),i},_updateCell:function(e,t){t.rowType&&this._cellPrepared(e,t)},_createCell:function(e){var t=e.column,n=t.alignment||g(this.option("rtlEnabled")),a=o.createElement("td");a.style.textAlign=n;var r=i(a);return!h.isDefined(t.groupIndex)&&t.cssClass&&r.addClass(t.cssClass),"expand"===t.command&&(r.addClass(t.cssClass),r.addClass(this.addWidgetPrefix(y))),t.colspan>1?r.attr("colSpan",t.colspan):t.isBand||"auto"===t.visibleWidth||this.option("legacyRendering")||!this.option("columnAutoWidth")||((t.width||t.minWidth)&&(a.style.minWidth=V(t.minWidth||t.width)),t.width&&(a.style.width=a.style.maxWidth=V(t.width))),r},_createRow:function(e){var t=i("").addClass(T);return this.setAria("role","row",t),t},_createTable:function(e,t){var n=this,o=i("").addClass(n.addWidgetPrefix(k)).addClass(n.addWidgetPrefix(S));if(e&&!t?(o.append(n._createColGroup(e)),_.real().ios&&o.append(i("").append("")),n.setAria("role","presentation",o)):n.setAria("hidden",!0,o),o.append(i("")),t)return o;l.mozilla&&a.on(o,"mousedown","td",function(e){e.ctrlKey&&e.preventDefault()}),n.option("cellHintEnabled")&&a.on(o,"mousemove",".dx-row > td",this.createAction(function(e){var t,o=e.event,a=i(o.target),r=i(o.currentTarget),s=r.parent(),c=s.hasClass("dx-data-row"),d=s.hasClass("dx-header-row"),u=s.hasClass(D),p=s.hasClass(E),f=s.hasClass(n.addWidgetPrefix(A)),g=n._columnsController.getVisibleColumns(),_=s.data("options"),m=r.index(),v=_&&_.cells&&_.cells[m],x=v?v.column:g[m],w=l.msie?1:0;p||f||c&&(!c||!x||x.cellTemplate)||d&&(!d||!x||x.headerCellTemplate)||u&&(!u||!x||void 0!==x.groupIndex&&x.groupCellTemplate)||(a.data(O)&&(a.removeAttr("title"),a.data(O,!1)),t=a[0].scrollWidth-a[0].clientWidth-w,t>0&&!h.isDefined(a.attr("title"))&&(a.attr("title",a.text()),a.data(O,!0)))}));var r=function(e){var t,o,a=i(e.currentTarget),r=i(e.target).closest("."+M),s=a.parent().data("options"),l=s&&s.cells&&s.cells[a.index()];if(a.closest("table").is(e.delegateTarget))return o=f({},l,{cellElement:u(a),event:e,eventType:e.type}),r.length&&(t=r.data("dx-form-item"),t.column&&(o.column=t.column,o.columnIndex=n._columnsController.getVisibleIndex(o.column.index))),o};return a.on(o,"mouseover",".dx-row > td",function(e){var t=r(e);t&&n.executeAction("onCellHoverChanged",t)}),a.on(o,"mouseout",".dx-row > td",function(e){var t=r(e);t&&n.executeAction("onCellHoverChanged",t)}),a.on(o,s.name,".dx-row > td",function(e){var t=r(e);t&&n.executeAction("onCellClick",t)}),R(n,o),o},_isNativeClick:c.noop,_rowClick:c.noop,_createColGroup:function(e){var t,n,o,a=i("");for(t=0;t");return d.setWidth(n,t),n},renderDelayedTemplates:function(){for(var e,t=this._delayedTemplates;t.length;)e=t.shift(),e.template.render(e.options),e.options.model&&e.options.model.column&&this._updateCell(e.options.container,e.options.model)},_processTemplate:function(e){var t,n,o=this;return e&&e.render&&!h.isRenderer(e)?n={allowRenderToDetachedContainer:e.allowRenderToDetachedContainer,render:function(t){e.render(t.container,t.model)}}:h.isFunction(e)?n={render:function(t){var n=e(u(t.container),t.model);n&&(n.nodeType||h.isRenderer(n))&&t.container.append(n)}}:(t=h.isString(e)?e:i(e).attr("id"),t?(o._templatesCache[t]||(o._templatesCache[t]=o.getTemplate(e)),n=o._templatesCache[t]):n=o.getTemplate(e)),n},renderTemplate:function(e,t,n,i){var o=this,a=o._processTemplate(t,n);if(a){if(n.component=o.component,a.allowRenderToDetachedContainer||i)return a.render({container:e,model:n}),!0;o._delayedTemplates.push({template:a,options:{container:e,model:n}})}return!1},_appendRow:function(e,t,n){n=n||P,n.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){e=e||{};var t,n=this;e.columns=n._columnsController.getVisibleColumns();var i=e.change&&e.change.changeType;return t=n._createTable(e.columns,"append"===i||"prepend"===i),n._renderRows(t,e),t},_renderRows:function(e,t){var n,i=this,o=i._getRows(t.change);for(n=0;n1?o+=r[n].colspan:o++},_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.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){return{column:e.column,columnIndex:e.columnIndex,rowType:e.row.rowType}},_cellPrepared:function(e,t){t.cellElement=u(i(e)),this.executeAction("onCellPrepared",t)},_rowPrepared:function(e,t){r.data(e.get(0),"options",t),t.rowElement=u(e),this.executeAction("onRowPrepared",t)},_columnOptionChanged:function(e){var t=e.optionNames;if(v.checkChanges(t,["width","visibleWidth"])){var n=this._columnsController.getVisibleColumns(),i=p.map(n,function(e){return e.visibleWidth||e.width||"auto"});return void this.setColumnWidths(i)}this._requireReady||this.render()},getTableElements:function(){return this._tableElement||i()},_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("onCellHoverChanged",{excludeValidators:["disabled","readOnly"]}),e.createAction("onCellPrepared",{excludeValidators:["designMode","disabled","readOnly"],category:"rendering"}),e.createAction("onRowPrepared",{excludeValidators:["designMode","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:c.noop,_handleDataChanged:function(){},callbackNames:function(){return["scrollChanged"]},scrollTo:function(e){var t=this,n=t.element(),i=n&&n.children("."+t.addWidgetPrefix(b)).not("."+t.addWidgetPrefix(I));t._skipScrollChanged=!1,h.isDefined(e)&&h.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=i("
"),a.on(t,"scroll",function(){!n._skipScrollChanged&&n.scrollChanged.fire({left:t.scrollLeft()},n.name),n._skipScrollChanged=!1}),t.addClass(n.addWidgetPrefix(C)).addClass(n.addWidgetPrefix(b)).append(e).appendTo(n.element()),n.setAria("role","presentation",t),t},_updateContent:function(e){this._setTableElement(e),this._wrapTableInScrollContainer(e)},_findContentElement:c.noop,_getWidths:function(e){var t,n,i=[],o=this.option("legacyRendering");return e&&p.each(e,function(e,a){t=a.offsetWidth,a.getBoundingClientRect&&(n=a.getBoundingClientRect(),n.width>t-1&&(t=o?Math.ceil(n.width):n.width)),i.push(t)}),i},getColumnWidths:function(e){var t,n=this,i=[];if((this.option("forceApplyBindings")||w)(),e=e||n._getTableElement()){t=e.children("tbody").children();for(var o=0;o=0&&(n=o.eq(a)),n&&n.length)return n},_getRowElement:function(e){var t=this,n=i(),o=t.getTableElements();if(p.each(o,function(o,a){n=n.add(t._getRowElements(i(a)).eq(e))}),n.length)return n},getCellElement:function(e,t){return u(this._getCellElement(e,t))},getRowElement:function(e){var t=this._getRowElement(e),n=[];if(t&&!u(t).get)for(var i=0;i0&&e.rowIndex>=0&&("virtual"!==this.option("scrolling.mode")&&(e.rowIndex=e.rowIndex0))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){return e=e||this._getTableElement(),e&&e.find("> tbody > ."+T+", > tbody."+T)||i()},getRowIndex:function(e){return this._getRowElements().index(e)},getBoundingRect:function(){},getName:function(){},setScrollerSpacing:function(e){var t=this,n=t.element(),i=t.option("rtlEnabled");n&&n.css(i?{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){0===Xe().backupCounter&&de.getBody().appendChild(Xe().backupContainer),++Xe().backupCounter,e.append({element:Xe().backupContainer})}function o(e,t){e.append({element:t}),--Xe().backupCounter,0===Xe().backupCounter&&de.getBody().removeChild(Xe().backupContainer)}function a(e){return e&&"string"!=typeof e}function r(e){return de.createElementNS("http://www.w3.org/2000/svg",e)}function s(e,t){return null!==e?"url("+(t?pe.location.href.split("#")[0]:"")+"#"+e+")":e}function l(e,t){var n;for(n in t)e[n]=t[n];return e}function c(e,t){return e=e.toString().split("e"),e=ye(+(e[0]+"e"+(e[1]?+e[1]+t:t))),e=e.toString().split("e"),+(e[0]+"e"+(e[1]?+e[1]-t:-t))}function d(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t||{left:0,top:0}}function u(e,t,n,i,o,a){var r,s=!0,l=c(a,3)-c(o,3);return l&&(Se(l)%360===0&&(o=0,a=360,r=!0,a-=.01),o>360&&(o%=360),a>360&&(a%=360),o>a&&(o-=360),s=!1),o*=Oe,a*=Oe,[e,t,xe(i,n),we(i,n),ke(o),Ce(o),ke(a),Ce(a),r,be(Se(a-o)/Ie)%2?"1":"0",s]}function h(e,t){var n=[["M",0,0]];switch(t){case"line":n=p(e);break;case"area":n=p(e,!0);break;case"bezier":n=f(e);break;case"bezierarea":n=f(e,!0)}return n}function p(e,t){return g(e,_,t)}function f(e,t){return g(e,m,t)}function g(e,t,n){var i,o,a=[];if(e[0]&&e[0].length)for(i=0,o=e.length;ir&&(o=t.slice(0),s(t,e,n));return o}function w(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 b(e,t,n){var i=e[e.length-1].slice(),o=e.length;for(w(i,n);o|\/>)/gi,n=/(style|class)\s*=\s*(["'])(?:(?!\2).)*\2\s?/gi;return e.replace(t,function(e,t,i,o){return i=(i&&i.match(n)||[]).map(function(e){return e}).join(" "),t+i+o})}function P(e){var t=[],n=de.createElement("div");return n.innerHTML=e.replace(/\r/g,"").replace(/\n/g,"
"),B(t,0,n,{},""),O(t),t}function R(e){for(var t=e.replace(/\r/g,"").split(/\n/g),n=0,i=[];ne)for(e-c<0?e=0:e-=c,t=z(d.element,d._texts,e),n=0,i=t.length;ne&&$(s);return l.remove(),d._hasEllipsis=u,u}function H(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 z(e,t,n){var i,o,a,r,s,l=[];if(t)for(i=0,o=t.length;i/i.test(t)&&t.indexOf("&")===-1?/\n/g.test(t)?i=R(t):n&&(i=[{value:t.trim(),height:0}]):(o=M(t),i=P(o)),i?i.length&&(e._texts=i,n&&V(i,e.element,He),V(i,e.element,"tspan")):e.element.appendChild(de.createTextNode(t)))}function G(e,t,n){e.tspan.setAttribute(t,n),e.stroke&&e.stroke.setAttribute(t,n)}function q(e){if(e._texts){var t,n,i=e._texts,o=e._settings.x,a=isNaN(Pe(e._styles[$e]))?Ke:e._styles[$e],r=i[0];for(G(r,"x",o),G(r,"y",e._settings.y),t=1,n=i.length;t=0&&(G(r,"x",o),G(r,"dy",r.inherits?j(r.height,a):r.height||a))}}function j(e,t){var n=Pe(e),i=Pe(t),o=n||Ke,a=i||Ke;return o>a?isNaN(n)?o:e:isNaN(i)?a:t}function K(e){if(e._texts){var t,n,i,o=e._texts,a=e._settings[He],r=e._settings[ze],s=e._settings[Ne]||1;for(n=0,i=o.length;n=0&&t>=0&&this.root.attr({width:e,height:t}),this},dispose:function(){var e,t=this;t.root.dispose(),t._defs.dispose(),t._animationController.dispose(),et.removeByRenderer(t);for(e in t)t[e]=null;return t},animationEnabled:function(){ return!!this._animation.enabled},updateAnimationOptions:function(e){return l(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){var a=new t.RectSvgElement(this);return a.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,r){var e=this._createElement("image",{x:t||0,y:n||0,width:i||0,height:o||0,preserveAspectRatio:Qe[Ee(r)]||je});return e.element.setAttributeNS("http://www.w3.org/1999/xlink","href",a||""),e},path:function(e,n){var i=new t.PathSvgElement(this,n);return i.attr({points:e||[]})},arc:function(e,n,i,o,a,r){var s=new t.ArcSvgElement(this);return s.attr({x:e||0,y:n||0,innerRadius:i||0,outerRadius:o||0,startAngle:a||0,endAngle:r||0})},text:function(e,n,i){var o=new t.TextSvgElement(this);return o.attr({text:e,x:n||0,y:i||0})},pattern:function e(n,i,o){i=i||{};var a,r,e,s,l,c=this,d=i.step||6,u=d/2,h=1.5*d;return a=o||Ze(),r="right"===Ee(i.direction)?"M "+u+" "+-u+" L "+-u+" "+u+" M 0 "+d+" L "+d+" 0 M "+h+" "+u+" L "+u+" "+h:"M 0 0 L "+d+" "+d+" M "+-u+" "+u+" L "+u+" "+h+" M "+u+" "+-u+" L "+h+" "+u,e=c._createElement("pattern",{id:a,width:d,height:d,patternUnits:"userSpaceOnUse"}).append(c._defs),e.id=a,s=c.rect(0,0,d,d).attr({fill:n,opacity:i.opacity}).append(e),l=new t.PathSvgElement(this).attr({d:r,"stroke-width":i.width||1,stroke:n}).append(e),e},_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=Ze(),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 c=this,d=Ze(),u=c._createElement("filter",{id:d,x:e||0,y:t||0,width:n||0,height:i||0}).append(c._defs),h=c._createElement("feGaussianBlur",{"in":"SourceGraphic",result:"gaussianBlurResult",stdDeviation:r||0}).append(u),p=c._createElement("feOffset",{"in":"gaussianBlurResult",result:"offsetResult",dx:o||0,dy:a||0}).append(u),f=c._createElement("feFlood",{result:"floodResult","flood-color":s||"","flood-opacity":l}).append(u),g=c._createElement("feComposite",{"in":"floodResult",in2:"offsetResult",operator:"in",result:"compositeResult"}).append(u),_=c._createElement("feComposite",{"in":"SourceGraphic",in2:"compositeResult",operator:"over"}).append(u);return u.id=d,u.gaussianBlur=h,u.offset=p,u.flood=f,u.composite=g,u.finalComposite=_,u.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),S(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},u},brightFilter:function(e,t){var n=this,i=Ze(),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=Ze(),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:Ze()},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=le(e,t);return a.refToHash[n]!==r&&(n&&this.releaseHatching(n),i=a.byHash[r],i||(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];0===--i.count&&(i.pattern.dispose(),delete t.byHash[n],delete t.refToHash[e])}};var et=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(){et.fire()}},function(e,t,n){function i(e){return d(e,function(e){return e.getCoords()}).concat(d(e.slice().reverse(),function(e){return e.getCoords(!0)}))}var o=n(53),a=n(0).extend,r=n(132).chart,s=n(254),l=s.chart.line,c=s.polar.line,d=n(16).map,u=a,h=s.chart.spline._calculateBezierPoints;t.chart={},t.polar={};var p={_createBorderElement:l._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&&this.showZero!==!1?0:r.getValueRangeInitialValue.call(this)},_getDefaultSegment:function(e){var t=l._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=l._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}},f=t.chart.area=u({},l,p,{_prepareSegment:function(e,t){var n=this._processSinglePointsAreaSegment(e,t);return{line:n,area:i(n),singlePointSegment:n!==e}},_processSinglePointsAreaSegment:function(e,t){if(e&&1===e.length){var n=e[0],i=o.clone(n);return i[t?"y":"x"]+=1,i.argument=null,[n,i]}return e}});t.polar.area=u({},c,p,{_prepareSegment:function(e,t,n){return n&&c._closeSegment.call(this,e),f._prepareSegment.call(this,e)},_processSinglePointsAreaSegment:function(e){return s.polar.line._prepareSegment.call(this,e).line}}),t.chart.steparea=u({},f,{_prepareSegment:function(e,t){var n=s.chart.stepline;return e=f._processSinglePointsAreaSegment(e,t),f._prepareSegment.call(this,n._calculateStepLinePoints(e))}}),t.chart.splinearea=u({},f,{_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=f._processSinglePointsAreaSegment(e,t),i=f._prepareSegment.call(this,h(n,t));return this._areaPointsToSplineAreaPoints(i.area),i.singlePointSegment=n!==e,i},_getDefaultSegment:function(e){var t=f._getDefaultSegment(e);return this._areaPointsToSplineAreaPoints(t.area),t},_createMainElement:function(e,t){return this._renderer.path(e,"bezierarea").attr(t)},_createBorderElement:s.chart.spline._createMainElement})},function(e,t,n){var i,o=n(4).noop,a=n(112),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){function i(){}function o(e,t){e.smartAttr(t)}function a(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})}var r=n(0).extend;r(i.prototype,{value:0,isNode:function(){return!!(this.nodes&&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=r({},e);return t?r(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(){s[Number(this.isNode())](this.tile,this._getState())}});var s=[o,a];e.exports=i},function(e,t,n){var i=n(119);i.framework=n(322),n(43),n(340),n(109),n(113),n(351),n(184),n(352),n(353),n(18),n(159),n(207),n(78),n(90),n(157),n(25),n(123),n(354),e.exports=i},function(e,t,n){var i=n(2),o=n(5),a=n(8),r=n(39),s=n(0).extend,l=n(11).inArray,c=n(3).each,d=n(1),u=n(6),h=n(24),p=n(34).fitIntoRange,f=n(58),g=n(9),_=n(78),m=d.isPlainObject,v=d.isFunction,x=n(13),w="dxResizable",b="dx-resizable",y="dx-resizable-resizing",C="dx-resizable-handle",k="dx-resizable-handle-top",S="dx-resizable-handle-bottom",I="dx-resizable-handle-left",T="dx-resizable-handle-right",D="dx-resizable-handle-corner",E=g.addNamespace(_.start,w),A=g.addNamespace(_.move,w),B=g.addNamespace(_.end,w),O={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},M=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(b)},_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(" ");c(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("
");n.addClass(C).addClass(C+"-"+e).appendTo(t),this._attachEventHandlers(n)},_attachEventHandlers:function(e){if(!this.option("disabled")){var t={};t[E]=this._dragStartHandler.bind(this),t[A]=this._dragHandler.bind(this),t[B]=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 *"))return void(e.cancel=!0);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(y,e)},_renderDragOffsets:function(e){var t=this._getArea();if(t){var n=i(e.target).closest("."+C),o=n.outerWidth(),a=n.outerHeight(),r=n.offset(),s=t.offset;e.maxLeftOffset=r.left-s.left,e.maxRightOffset=s.left+t.width-r.left-o,e.maxTopOffset=r.top-s.top,e.maxBottomOffset=s.top+t.height-r.top-a}},_getBorderWidth:function(e,t){if(d.isWindow(e.get(0)))return 0;var n=e.css(O[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(),c=a.y-((l.height||s)-s),d=a.x-((l.width||r)-r);h.move(t,{top:i.top+(n.top?c:0),left:i.left+(n.left?d:0)}),this._resizeAction({event:e,width:this.option("width")||r,height:this.option("height")||s,handles:this._movingSides}),x.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,c=Math.sign||function(e){return e=+e,0===e||isNaN(e)?e:e>0?1:-1},d=function(e,t){return(1+.2*c(t))%1*e},u=function(e,t){return Math.abs(e)<.2*t},h=e.x-s,p=e.y-l;return s>d(t.h,e.x)&&(h+=t.h),l>d(t.v,e.y)&&(p+=t.v),{x:!n.left&&!n.right||u(e.x,t.h)?0:h,y:!n.top&&!n.bottom||u(e.y,t.v)?0:p}},_getMovingSides:function(e){var t=i(e.target),n=t.hasClass(D+"-top-left"),o=t.hasClass(D+"-top-right"),a=t.hasClass(D+"-bottom-left"),r=t.hasClass(D+"-bottom-right");return{top:t.hasClass(k)||n||o,left:t.hasClass(I)||n||a,bottom:t.hasClass(S)||a||r,right:t.hasClass(T)||o||r}},_getArea:function(){var e=this.option("area");return v(e)&&(e=e.call(this)),m(e)?this._getAreaFromObject(e):this._getAreaFromElement(e)},_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},d.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":u.hasWindow()&&this._renderWidth(this.$element().outerWidth());break;case"minHeight":case"maxHeight":u.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("."+C).remove()}});a(w,M),e.exports=M},function(e,t,n){e.exports=n(496)},function(e,t,n){var i=n(5),o=n(13),a=n(12),r=n(10),s=n(61),l=n(18),c=n(9),d="dxdblclick",u="dxDblClick",h=c.addNamespace(l.name,u),p=300,f=r.inherit({ctor:function(){this._handlerCount=0,this._forgetLastClick()},_forgetLastClick:function(){this._firstClickTarget=null,this._lastClickTimeStamp=-p},add:function(){this._handlerCount<=0&&i.on(a.getDocument(),h,this._clickHandler.bind(this)),this._handlerCount++},_clickHandler:function(e){var t=e.timeStamp||Date.now();t-this._lastClickTimeStamp"),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 w},_itemDataKey:function(){return b},_toggleVisibility:a,_renderDimensions:a,_initMarkup:function(){this.callBase(),this.$element().addClass(g),this._createItemContainer()},_render:function(){this._renderPopup()},_createItemContainer:function(){this._$itemContainer=i("
").addClass(_),this._renderDisabled()},_renderDisabled:function(){this._$itemContainer.toggleClass("dx-state-disabled",this.option("disabled"))},_renderPopup:function(){this._$popup=i("
").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(y,!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(v)},_createPopup:function(){this._createComponent(this._$popup,u,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(m)},_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("
").addClass(x).appendTo(this._popup&&this._popup.$content()),this._createComponent(this._$cancelButton,c,{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",C),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=n(2),a=n(6).getWindow(),r=n(5),s=n(54),l=n(8),c=n(4),d=n(1),u=n(0).extend,h=n(11).inArray,p=n(147),f=n(124),g=n(21),_=n(9),m=n(14),v=n(210),x=n(15),w=n(20),b=n(101),y=n(7).Deferred,C=".dx-list-item",k="dxListItemData",S="dx-dropdownlist-popup-wrapper",I="dx-skip-gesture-event",T="input",D=["startswith","contains","endwith","notcontains"],E=p.inherit({_supportedKeys:function(){var e=this.callBase();return u({},e,{tab:function(t){if(this.option("opened")&&"instantly"===this.option("applyValueMode")){this._saveValueChangeEvent(t);var n=o(this._list.option("focusedElement"));n.length&&this._setSelectedElement(n)}e.tab.apply(this,arguments)},space:c.noop,home:c.noop,end:c.noop})},_setSelectedElement:function(e){var t=this._valueGetter(this._list._getItemData(e));this._setValue(t)},_setValue:function(e){this.option("value",e)},_getDefaultOptions:function(){return u(this.callBase(),u(v._dataExpressionDefaultOptions(),{displayValue:void 0,searchEnabled:!1,searchMode:"contains",searchTimeout:500,minSearchLength:0,searchExpr:null,valueChangeEvent:"input change keyup",selectedItem:null,noDataText:x.format("dxCollectionWidget-noDataText"),onSelectionChanged:null,onItemClick:c.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:function(){return w.isAndroid5()},options:{popupWidthExtension:32}},{device:{platform:"ios"},options:{popupPosition:{offset:{v:-1}}}},{device:{platform:"generic"},options:{buttonsLocation:"bottom center"}}])},_setOptionsByReference:function(){this.callBase(),u(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 S},_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"!==("undefined"==typeof e?"undefined":i(e))&&(t.itemByValue||(t.itemByValue={},n=this._getPlainItems(),n.forEach(function(e){t.itemByValue[this._valueGetter(e)]=e},this)),o=t.itemByValue[e]),o||(n=this._getPlainItems(),o=c.grep(n,function(t){return this._isValueEquals(this._valueGetter(t),e)}.bind(this))[0]),void 0!==o?(new y).resolve(o).promise():this._loadValue(e)},_getPlainItems:function(e){var t=[];e=e||this.option("items")||[];for(var n=0;n").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(){var e=!!this._list.option("dataSource");return e!==this._needPassDataSourceToList()},_isDesktopDevice:function(){return"desktop"===m.real().deviceType},_getListKeyExpr:function(){var e=this.option("valueExpr"),t=d.isString(e)&&"this"!==e;return t?e:null},_listConfig:function(){var e={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._getTemplateByOption("itemTemplate"),indicateLoading:!1,keyExpr:this._getListKeyExpr(),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")};return e},_getDataSource:function(){return this._needPassDataSourceToList()?this._dataSource:null},_dataSourceOptions:function(){return{paginate:!1}},_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:c.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(T,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())return void this._searchCanceled();var e=this.option("searchTimeout");e?(this._clearSearchTimer(),this._searchTimer=setTimeout(this._searchDataSource.bind(this),e)):this._searchDataSource()},_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()},_refreshPopupVisibility:function(){this.option("readOnly")||(this.option("opened",this._hasItemsToShow()),this.option("opened")&&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()||[],t=e.length,n=this._needPassDataSourceToList();return n&&t&&this._hasFocusClass()},_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=d.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._getListKeyExpr());break;case"displayExpr":this._renderValue();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);l("dxDropDownList",E),e.exports=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=n(2),a=n(71),r=n(22),s=n(4),l=n(1),c=n(0).extend,d=n(95),u=n(112),h=n(51),p=n(79),f=n(7).Deferred,g=c(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 h.DataSource({store:new p(this.option("items")),pageSize:0}))},_compileDisplayGetter:function(){this._displayGetter=r.compileGetter(this._displayGetterExpr())},_displayGetterExpr:function(){return this.option("displayExpr")},_compileValueGetter:function(){this._valueGetter=r.compileGetter(this._valueGetterExpr())},_valueGetterExpr:function(){return this.option("valueExpr")||"this"},_loadValue:function(e){var t=new f;return e=this._unwrappedValue(e),l.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=l.isDefined(e)?e:this._getCurrentValue(),e&&this._dataSource&&"this"===this._valueGetterExpr()&&(e=this._getItemKey(e)),a.unwrap(e)},_getItemKey:function(e){var t=this._dataSource.key();if(Array.isArray(t)){for(var n={},o=0,a=t.length;o").text(this._displayGetter(e.model)).html()}.bind(this))):this._originalItemTemplate&&(this._defaultTemplates.item=this._originalItemTemplate)},_setCollectionWidgetItemTemplate:function(){this._initDynamicTemplates(),this._setCollectionWidgetOption("itemTemplate",this._getTemplateByOption("itemTemplate"))},_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._setCollectionWidgetItemTemplate()}}});e.exports=g},function(e,t,n){var i=n(2),o=n(46),a=n(8),r=n(0).extend,s=n(6),l=n(31),c="dx-trackbar",d="dx-trackbar-container",u="dx-trackbar-range",h="dx-trackbar-wrapper",p=o.inherit({_getDefaultOptions:function(){return r(this.callBase(),{min:0,max:100,value:0})},_initMarkup:function(){this.$element().addClass(c),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("
").addClass(h).appendTo(this.$element())},_renderContainer:function(){this._$bar=i("
").addClass(d).appendTo(this._$wrapper)},_renderRange:function(){this._$range=i("
").addClass(u).appendTo(this._$bar)},_renderValue:function(){var e=this.option("value"),t=this.option("min"),n=this.option("max");if(!(t>n)){if(en)return this.option("value",n),void(this._currentRatio=1);var i=t===n?0:(e-t)/(n-t);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._setRangeStyles(this._rangeStylesConfig()),this.callBase(e);break;case"max":case"min":this._renderValue(),this._setRangeStyles(this._rangeStylesConfig());break;default:this.callBase(e)}},_dispose:function(){l.stop(this._$range),this.callBase()}});a("dxTrackBar",p),e.exports=p},function(e,t,n){var i=n(8),o=n(5),a=n(4).grep,r=n(0).extend,s=n(3),l=n(156),c=n(89),d=n(44),u="dx-validationsummary",h=u+"-item",p=u+"-item-data",f=d.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=c.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=c.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),o=function(){n.off("validated",i),n._validationSummary=null,i=null};n.on("validated",i),n.on("disposing",o),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(u),this.callBase()},_optionChanged:function(e){switch(e.name){case"validationGroup":this._initGroupRegistration();break;default:this.callBase(e)}},_itemClass:function(){return h},_itemDataKey:function(){return p},_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",f),e.exports=f},function(e,t,n){var i=n(2),o=n(4).noop,a=n(3).each,r=n(17),s=n(22).compileGetter,l=n(10),c=n(38),d=l.abstract,u="dx-toolbar-menu-container",h="dx-toolbar-menu-button",p=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("
").appendTo(this._menuContainer());this._menu=this._toolbar._createComponent(e,this._menuWidgetClass(),this._widgetOptions()),this.renderMenuItems()},_menuContainer:d,_menuWidgetClass:d,_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),a===!1||"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("
").appendTo(this._$menuButtonContainer).addClass(h),this._toolbar._createComponent(this._$button,c,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("
").appendTo(e).addClass(this._toolbar._buttonClass()).addClass(u)},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=p},function(e,t,n){var i=n(2),o=n(12),a=n(6),r=a.getWindow(),s=a.getNavigator(),l=n(5),c=n(21),d=n(30),u=n(1),h={EXCEL:"xlsx",CSS:"css",PNG:"png",JPEG:"jpeg",GIF:"gif",SVG:"svg",PDF:"pdf"},p=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={_getDataUri:function(e,t){return"data:"+p[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("
").css({display:"none"}).attr(a);r.append(''),r.append(''),r.append(''),r.appendTo("body"),l.trigger(r,"submit"),l.trigger(r,"submit")&&r.remove()},_saveByProxy:function(e,t,n,i){return this._formDownloader(e,t,p[n],i)},_winJSBlobSave:function(e,t,n){var i=new Windows.Storage.Pickers.FileSavePicker;i.suggestedStartLocation=Windows.Storage.Pickers.PickerLocationId.documentsLibrary,i.fileTypeChoices.insert(p[n],["."+h[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,u.isDefined(s.msSaveOrOpenBlob))s.msSaveOrOpenBlob(n,e),o._blobSaved=!0;else if(u.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(u.isDefined(a)){var l=a.createObjectURL(n),c=function(e){setTimeout(function(){a.revokeObjectURL(l)})};return o._linkDownloader(e,l,c)}}},saveAs:function(e,t,n,i,o,a){if(e+="."+h[t],a)this._saveByProxy(i,e,t,n);else if(u.isFunction(r.Blob))this._saveBlobAs(e,t,n);else if(u.isDefined(i)&&!u.isDefined(s.userAgent.match(/iPad/i)))this._saveByProxy(i,e,t,n);else{if(u.isDefined(s.userAgent.match(/iPad/i))||c.log("E1034"),d.msie&&parseInt(d.version)<10)return;this._linkDownloader(e,this._getDataUri(t,n),o)}}}},function(e,t,n){var i=n(37),o=n(12),a=n(6),r=a.getWindow(),s=n(1),l=n(83),c=n(310),d=n(217),u=function(e,t){return new h(e,t)},h=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)||s.isWindow(e)?(this[0]=e,this.length=1,this):Array.isArray(e)?([].push.apply(this,e),this):u(e.toArray?e.toArray():[e]):(this.length=0,this)};u.fn={dxRenderer:!0},h.prototype=u.fn;var p=function(e,t){for(var n=0;n1&&arguments.length>1)return p.call(this,"attr",arguments);if(!this[0])return s.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(s.isPlainObject(e))for(var i in e)this.attr(i,e[i]);else f(this[0],e,t);return this},h.prototype.removeAttr=function(e){return this[0]&&o.removeAttribute(this[0],e),this},h.prototype.prop=function(e,t){if(!this[0])return this;if("string"==typeof e&&1===arguments.length)return this[0][e];if(s.isPlainObject(e))for(var n in e)this.prop(n,e[n]);else o.setProperty(this[0],e,t);return this},h.prototype.addClass=function(e){return this.toggleClass(e,!0)},h.prototype.removeClass=function(e){return this.toggleClass(e,!1)},h.prototype.hasClass=function(e){if(!this[0]||void 0===this[0].className)return!1;for(var t=e.split(" "),n=0;n=0)return!0;return!1},h.prototype.toggleClass=function(e,t){if(this.length>1)return p.call(this,"toggleClass",arguments);if(!this[0]||!e)return this;t=void 0===t?!this.hasClass(e):t;for(var n=e.split(" "),i=0;i=0?"Width":"Height",n=t.toLowerCase(),i=0===e.indexOf("outer"),a=0===e.indexOf("inner");h.prototype[e]=function(l){if(this.length>1&&arguments.length>0)return p.call(this,e,arguments);var d=this[0];if(d){if(s.isWindow(d))return i?d["inner"+t]:o.getDocumentElement()["client"+t];if(o.isDocument(d)){var u=o.getDocumentElement(),h=o.getBody();return Math.max(h["scroll"+t],h["offset"+t],u["scroll"+t],u["offset"+t],u["client"+t])}if(0===arguments.length||"boolean"==typeof l){var f={paddings:a||i,borders:i,margins:l};return c.getSize(d,n,f)}if(void 0===l||null===l)return this;if(s.isNumeric(l)){var g=r.getComputedStyle(d),_=c.getElementBoxParams(n,g),m="border-box"===g.boxSizing;i?l-=m?0:_.border+_.padding:a?l+=m?_.border:-_.padding:m&&(l+=_.border+_.padding)}return l+=s.isNumeric(l)?"px":"",o.setStyle(d,n,l),this}}}),h.prototype.html=function(e){return arguments.length?(this.empty(),"string"==typeof e&&!d.isTablePart(e)||"number"==typeof e?(this[0].innerHTML=e,this):this.append(d.parseHTML(e))):this[0].innerHTML};var g=function(e,t){if(this[0]&&e){"string"==typeof e?e=d.parseHTML(e):e.nodeType?e=[e]:s.isNumeric(e)&&(e=[o.createTextNode(e)]);for(var n=0;n1){for(var t=0;t1){for(var t=0;t1?p.call(this,"appendTo",arguments):(o.insertElement(u(e)[0],this[0]),this)},h.prototype.insertBefore=function(e){return e&&e[0]&&o.insertElement(e[0].parentNode,this[0],e[0]),this},h.prototype.insertAfter=function(e){return e&&e[0]&&o.insertElement(e[0].parentNode,this[0],e[0].nextSibling),this},h.prototype.before=function(e){return this[0]&&o.insertElement(this[0].parentNode,e[0],this[0]),this},h.prototype.after=function(e){return this[0]&&o.insertElement(this[0].parentNode,e[0],this[0].nextSibling),this},h.prototype.wrap=function(e){if(this[0]){var t=u(e);t.insertBefore(this),t.append(this)}return this},h.prototype.wrapInner=function(e){var t=this.contents();return t.length?t.wrap(e):this.append(e),this},h.prototype.replaceWith=function(e){if(e&&e[0])return e.insertBefore(this),this.remove(),e},h.prototype.remove=function(){return this.length>1?p.call(this,"remove",arguments):(i.cleanDataRecursive(this[0],!0),o.removeElement(this[0]),this)},h.prototype.detach=function(){return this.length>1?p.call(this,"detach",arguments):(o.removeElement(this[0]),this)},h.prototype.empty=function(){return this.length>1?p.call(this,"empty",arguments):(i.cleanDataRecursive(this[0]),o.setText(this[0],""),this)},h.prototype.clone=function(){for(var e=[],t=0;t\x20\t\r\n\f]+)/i,r={"default":{tagsCount:0,startTags:"",endTags:""},thead:{tagsCount:1,startTags:"
",endTags:"
"},td:{tagsCount:3,startTags:"",endTags:"
"},col:{tagsCount:2,startTags:"",endTags:"
"},tr:{tagsCount:2,startTags:"",endTags:"
"}};r.tbody=r.colgroup=r.caption=r.tfoot=r.thead,r.th=r.td;var s=function(e){if("string"!=typeof e)return null;var t=o.createDocumentFragment(),n=t.appendChild(o.createElement("div")),s=a.exec(e),l=s&&s[1].toLowerCase(),c=r[l]||r.default;n.innerHTML=c.startTags+e+c.endTags;for(var d=0;d0){for(n="decimal"!==e?".":"",i=0;i=d&&t0?"-":"+",r=Math.abs(o),s=Math.floor(r/60),l=r%60,c=i(s.toString(),2),d=i(l.toString(),2);return a+c+(t>=3?":":"")+(t>1||l?d:"")},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)}},r=function(e,t){return function(n){var i,o,r,s,l=0,c="'",d=!1,u="";if(!n)return null;if(!e)return n;var h="Z"===e[e.length-1]||"'Z'"===e.slice(-3);for(i=0;i="0"&&e<="9"||t>=a&&t0&&!r(e[t-1])&&("."===e[t-1]||o.indexOf(e[t-1])<0);)t--;return t},c=function(e,t,n,i){var o=0,a=[],c=function(t){return e[o]!==t[o]&&(void 0===i||r(e[o])===i); };for(Array.isArray(t)||(t=[t]),o=0;o1?n[i]:n)+e.substr(a+i+1)}),1===t.length&&(e=e.replace("0"+n,n+n),e=e.replace("٠"+n,n+n)),e},u=function(e,t,n,i){var o,a,s;if(!r(e[t[0]]||"0")){for(var l=Math.max(t.length<=3?3:4,n.length);t.length>l;){for(a=t.pop(),s=i[a],i[a]=-1,o=a+1;o=0,a=t>0&&o.indexOf(t-1)>=0,r=o.indexOf(t+1)>=0;return i&&(a||(n="'"+n),r||(n+="'")),n}).join("")},g=function(e){var t=[],n=h(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 s=c(n,h(r.date,e),t,r.isDigit),l="M"!==r.pattern||a.d?r.pattern:"L";o=u(o,s,l,i),a[l]=s.length}),o=f(o,n,t,i),t.length?o:void 0};t.getFormat=g},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){var i=n(2),o=n(72),a=n(6).getWindow(),r=n(1).isFunction,s=n(3).each,l=n(263).getSvgMarkup,c=n(7),d=c.when,u=c.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 u;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',d=new u,h=new a.DOMParser,p=h.parseFromString(e,"image/svg+xml"),f=p.childNodes[0],g=i(f);return g.css("backgroundColor",t.backgroundColor),n=c+l(g.get(0)),o._prepareImages(f).done(function(){s(o._imageArray,function(e,t){n=n.split(e).join(t)}),d.resolve(r(a.Blob)?o._getBlob(n):o._getBase64(n))}),d},_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){t.svgCreator.getData(e,n).done(i)}},function(e,t,n){var i=n(2),o=n(12),a=n(6),r=a.getWindow(),s=n(5),l=n(0).extend,c=n(121),d=n(42),u=n(83),h=n(14),p=function(e){e=l({},e);var t=h.real(),n=e.allowZoom,a=e.allowPan,p="allowSelection"in e?e.allowSelection:"generic"===t.platform,f="meta[name=viewport]";i(f).length||i("").attr("name","viewport").appendTo("head");var g=["width=device-width"],_=[];if(n?_.push("pinch-zoom"):g.push("initial-scale=1.0","maximum-scale=1.0, user-scalable=no"),a&&_.push("pan-x","pan-y"),a||n?i("html").css("msOverflowStyle","-ms-autohiding-scrollbar"):i("html, body").css({msContentZooming:"none",msUserSelect:"none",overflow:"hidden"}),!p&&d.supportProp("userSelect")&&i(".dx-viewport").css(u.styleProp("userSelect"),"none"),i(f).attr("content",g.join()),i("html").css("msTouchAction",_.join(" ")||"none"),t=h.real(),!d.touch||"win"===t.platform&&10===t.version[0]||(s.off(o.getDocument(),".dxInitMobileViewport"),s.on(o.getDocument(),"dxpointermove.dxInitMobileViewport",function(e){var t=e.pointers.length,i="touch"===e.pointerType,o=!n&&t>1,r=!a&&1===t&&!e.isScrollingEvent;i&&(o||r)&&e.preventDefault()})),t.ios){var m="file:"===o.getLocation().protocol;m||c.add(function(){var e=i(r).width();i("body").width(e)})}t.android&&c.add(function(){setTimeout(function(){var e=o.getActiveElement();e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded():e.scrollIntoView(!1)})})};t.initMobileViewport=p},function(e,t,n){var i=n(19)();e.exports=function(){i.fire()},e.exports.processCallback=i},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,c=1-s-l,d=function(e){return e*(o+e*(a+e*r))},u=function(e){return e*(s+e*(l+e*c))},h=function(e){for(var t,n=e,i=0;i<14&&(t=d(n)-e,!(Math.abs(t)<.001));)n-=t/p(n),i++;return n},p=function(e){return o+e*(2*a+3*e*r)};return function(e){return u(h(e))}},s={},l=function(e){e=a[e]||e;var t,n=e.match(o);n||(t="linear",n=a[t].match(o)),n=n.slice(1,5);for(var l=0;l-1&&o.splice(t,1)},c=function(e){o[a(e)]=e};r(e.dxpointerdown,s),r(e.dxpointermove,c),r(e.dxpointerup,l),r(e.dxpointercancel,l),this.pointers=function(){return o},this.reset=function(){o=[]}};e.exports=s},function(e,t,n){var i,o=n(0).extend,a=n(139),r=n(227),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}},c=!1,d=function(){c||(i=new r(s,function(){return!0}),c=!0)},u=a.inherit({ctor:function(){this.callBase.apply(this,arguments),d()},_fireEvent:function(e){return this.callBase(o(l(e.originalEvent),e))}});u.map=s,u.normalize=l,u.activate=d,u.resetObserver=function(){i.reset()},e.exports=u},function(e,t,n){var i=n(2),o=n(12),a=n(57),r=n(1),s=n(75),l=n(13),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("
").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=a.contextFor(n);if(e=void 0!==e?e:a.dataFor(n)||{},i)return e===i.$data?i:i.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("
").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(17),o=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}}};e.exports=o},function(e,t,n){var i=n(19);e.exports=new i},function(e,t,n){n(43);var i=n(26),o=n(4),a=n(6).getWindow(),r=n(12),s=n(115),l=n(0),c=n(3).each,d=n(62),u=n(233).Application,h=n(82).ConditionalViewCacheDecorator,p=n(142),f=n(236),g=n(238).ViewEngine,_=n(15),m=n(73).value,v=n(223),x=n(14),w=n(96),b=n(116),y=n(138),C=n(7).when;n(181),n(20);var k="dx-viewport",S="layout-change",I=u.inherit({ctor:function(e){e=e||{},this.callBase(e),this._$root=i(e.rootNode||r.getBody()),this._initViewport(e.viewPort),"mobileApp"===this._applicationMode&&v.initMobileViewport(e.viewPort),this.device=e.device||x.current(),this.commandManager=e.commandManager||new f({commandMapping:this.commandMapping}),this._initTemplateContext(),this.viewEngine=e.viewEngine||new g({$root:this._$root,device:this.device,templateCacheStorage:e.templateCacheStorage||a.localStorage,templatesVersion:e.templatesVersion,templateContext:this._templateContext}),this.components.push(this.viewEngine),this._initMarkupFilters(this.viewEngine),this._layoutSet=e.layoutSet||p.layoutSets.default,this._animationSet=e.animationSet||p.animationSets.default,this._availableLayoutControllers=[],this._activeLayoutControllersStack=[],this.transitionExecutor=new b.TransitionExecutor,this._initAnimations(this._animationSet)},_initAnimations:function(e){e&&(c(e,function(e,t){c(t,function(t,n){y.presets.registerPreset(e,n)})}),y.presets.applyChanges())},_localizeMarkup:function(e){_.localizeNode(e)},_notifyIfBadMarkup:function(e){e.each(function(){var e=i(this).html();/href="#/.test(e)&&d.log("W3005",e)})},_initMarkupFilters:function(e){var t=[];t.push(this._localizeMarkup),e.markupLoaded&&e.markupLoaded.add(function(e){c(t,function(t,n){n(e.markup)})})},_createViewCache:function(e){var t=this.callBase(e);return e.viewCache||(t=new h({filter:function(e,t){return!t.viewTemplateInfo.disableCache},viewCache:t})),t},_initViewport:function(){this._$viewPort=this._getViewPort(),m(this._$viewPort)},_getViewPort:function(){var e=i("."+k);return e.length||(e=i("
").addClass(k).appendTo(this._$root)),e},_initTemplateContext:function(){this._templateContext=new s({orientation:x.orientation()}),x.on("orientationChanged",function(e){this._templateContext.option("orientation",e.orientation)}.bind(this))},_showViewImpl:function(e,t){var n=this,o=i.Deferred(),a=o.promise(),r=e.layoutController;return n._obtainViewLink(e),r.showView(e,t).done(function(){n._activateLayoutController(r,n._getTargetNode(e),t).done(function(){o.resolve()})}),w.lock(a),a},_resolveLayoutController:function(e){var t={viewInfo:e,layoutController:null,availableLayoutControllers:this._availableLayoutControllers};return this._processEvent("resolveLayoutController",t,e.model),t.layoutController||this._resolveLayoutControllerImpl(e)},_checkLayoutControllerIsInitialized:function(e){if(e){var t=!1;if(c(this._layoutSet,function(n,i){if(i.controller===e)return t=!0,!1}),!t)throw d.Error("E3024")}},_ensureOneLayoutControllerFound:function(e,t){var n=function(e,t){return"controller"===e?"[controller]: { name:"+t.name+" }":t};if(!t.length)throw d.log("W3003",JSON.stringify(e,null,4),JSON.stringify(this._availableLayoutControllers,n,4)),d.Error("E3011");if(t.length>1)throw d.log("W3004",JSON.stringify(e,null,4),JSON.stringify(t,n,4)),d.Error("E3012")},_resolveLayoutControllerImpl:function(e){var t=e.viewTemplateInfo||{},n=e.navigateOptions||{},i=l.extend({root:!e.canBack,customResolveRequired:!1,pane:t.pane,modal:void 0!==n.modal?n.modal:t.modal||!1},x.current()),a=o.findBestMatches(i,this._availableLayoutControllers);return this._ensureOneLayoutControllerFound(i,a),a[0].controller},_onNavigatingBack:function(e){if(this.callBase.apply(this,arguments),!e.cancel&&!this.canBack()&&this._activeLayoutControllersStack.length>1){var t=this._activeLayoutControllersStack[this._activeLayoutControllersStack.length-2],n=t.activeViewInfo();e.cancel=!0,this._activateLayoutController(t,void 0,"backward"),this.navigationManager.currentItem(n.key)}},_activeLayoutController:function(){return this._activeLayoutControllersStack.length?this._activeLayoutControllersStack[this._activeLayoutControllersStack.length-1]:void 0},_getTargetNode:function(e){var t=(e.navigateOptions||{}).event;return t?i(t.target):void 0},_activateLayoutController:function(e,t,n){var o=this,a=o._activeLayoutController();if(a===e)return i.Deferred().resolve().promise();var r=i.Deferred();return e.ensureActive(t).done(function(t){o._deactivatePreviousLayoutControllers(e,n,t).done(function(){o._activeLayoutControllersStack.push(e),r.resolve()})}),r.promise()},_deactivatePreviousLayoutControllers:function(e,t){var n=this,o=[],a=n._activeLayoutControllersStack.pop();if(!a)return i.Deferred().resolve().promise();if(e.isOverlay)n._activeLayoutControllersStack.push(a),o.push(a.disable());else{for(var r=i.Deferred(),s=!1,l=function(e,t){return function(){e.deactivate().done(function(){t.resolve()})}};a&&a!==e;){var c=i.Deferred();a.isOverlay?s=!0:s||n.transitionExecutor.leave(a.element(),S,{direction:t}),r.promise().done(l(a,c)),o.push(c.promise()),a=n._activeLayoutControllersStack.pop()}s?r.resolve():(n.transitionExecutor.enter(e.element(),S,{direction:t}),n.transitionExecutor.start().done(function(){r.resolve()}))}return C.apply(i,o)},init:function(){var e=this,t=this.callBase();return t.done(function(){e._initLayoutControllers(),e.renderNavigation()}),t},_disposeView:function(e){e.layoutController.disposeView&&e.layoutController.disposeView(e),this.callBase(e)},viewPort:function(){return this._$viewPort},_createViewInfo:function(){var e=this.callBase.apply(this,arguments),t=this.getViewTemplateInfo(e.viewName);if(!t)throw d.Error("E3013","dxView",e.viewName);return e.viewTemplateInfo=t,e.layoutController=this._resolveLayoutController(e),e},_createViewModel:function(e){this.callBase(e),l.extendFromObject(e.model,e.viewTemplateInfo)},_initLayoutControllers:function(){var e=this;c(e._layoutSet,function(t,n){var i=n.controller,a=x.current();o.findBestMatches(a,[n]).length&&(e._availableLayoutControllers.push(n),i.init&&i.init({app:e,$viewPort:e._$viewPort,navigationManager:e.navigationManager,viewEngine:e.viewEngine,templateContext:e._templateContext,commandManager:e.commandManager}),i.on&&(i.on("viewReleased",function(t){e._onViewReleased(t)}),i.on("viewHidden",function(t){e._onViewHidden(t)}),i.on("viewRendered",function(t){e._processEvent("viewRendered",{viewInfo:t},t.model)}),i.on("viewShowing",function(t,n){e._processEvent("viewShowing",{viewInfo:t,direction:n,params:t.routeData},t.model)}),i.on("viewShown",function(t,n){e._processEvent("viewShown",{viewInfo:t,direction:n,params:t.routeData},t.model)})))})},_onViewReleased:function(e){this._releaseViewLink(e)},renderNavigation:function(){var e=this;c(e._availableLayoutControllers,function(t,n){var i=n.controller;i.renderNavigation&&i.renderNavigation(e.navigation)})},getViewTemplate:function(e){return this.viewEngine.getViewTemplate(e)},getViewTemplateInfo:function(e){var t=this.viewEngine.getViewTemplateInfo(e);return t&&t.option()},loadTemplates:function(e){return this.viewEngine.loadTemplates(e)},templateContext:function(){return this._templateContext}});e.exports=I},function(e,t,n){n(43);var i,o=n(26),a=n(10),r=n(6).getWindow(),s=a.abstract,l=n(76),c=n(4),d=n(1),u=n(3),h=n(0).extend,p=n(110).utils.mergeCommands,f=n(234).createActionExecutors,g=n(140),_=n(111),m=n(177),v=n(176),x=n(15),w=n(180),b=n(82),y=n(52),C=n(154).sessionStorage,k=n(40),S=n(62),I=n(7).when,T="InProgress",D="Inited",E=a.inherit({ctor:function(e){e=e||{},this._options=e,this.namespace=e.namespace||r,this._applicationMode=e.mode?e.mode:"mobileApp",this.components=[],i=x.localizeString("@Back"),this.router=e.router||new g;var t={mobileApp:_.StackBasedNavigationManager,webSite:_.HistoryBasedNavigationManager};this.navigationManager=e.navigationManager||new t[this._applicationMode]({keepPositionInStack:"keepHistory"===e.navigateToRootViewMode}),this.navigationManager.on("navigating",this._onNavigating.bind(this)),this.navigationManager.on("navigatingBack",this._onNavigatingBack.bind(this)),this.navigationManager.on("navigated",this._onNavigated.bind(this)),this.navigationManager.on("navigationCanceled",this._onNavigationCanceled.bind(this)),this.stateManager=e.stateManager||new m({storage:e.stateStorage||C()}),this.stateManager.addStateSource(this.navigationManager),this.viewCache=this._createViewCache(e),this.commandMapping=this._createCommandMapping(e.commandMapping),this.createNavigation(e.navigation),this._isNavigating=!1,this._viewLinksHash={},this._removedViewInfos=[],l.registerExecutor(f(this)),this.components.push(this.router),this.components.push(this.navigationManager)},_createViewCache:function(e){var t;return t=e.viewCache?e.viewCache:e.disableViewCache?new b.NullViewCache:new b.CapacityViewCacheDecorator({size:e.viewCacheSize,viewCache:new b}),t.on("viewRemoved",function(e){this._releaseViewLink(e.viewInfo)}.bind(this)),t},_createCommandMapping:function(e){var t=e;return e instanceof w||(t=new w,t.load(w.defaultMapping||{}).load(e||{})),t},createNavigation:function(e){this.navigation=this._createNavigationCommands(e),this._mapNavigationCommands(this.navigation,this.commandMapping)},_createNavigationCommands:function(e){if(!e)return[];var t=0;return u.map(e,function(e){var n;return n=e instanceof v?e:new v(h({root:!0},e)),n.option("id")||n.option("id","navigation_"+t++),n})},_mapNavigationCommands:function(e,t){var n=u.map(e,function(e){return e.option("id")});t.mapCommands("global-navigation",n)},_callComponentMethod:function(e,t){var n=[];return u.each(this.components,function(i,o){if(o[e]&&d.isFunction(o[e])){var a=o[e](t);a&&a.done&&n.push(a)}}),I.apply(o,n)},init:function(){var e=this;return e._initState=T,e._callComponentMethod("init").done(function(){e._initState=D,e._processEvent("initialized")}).fail(function(e){throw e||S.Error("E3022")})},_onNavigatingBack:function(e){this._processEvent("navigatingBack",e)},_onNavigating:function(e){var t=this;if(t._isNavigating)return t._pendingNavigationArgs=e,void(e.cancel=!0);t._isNavigating=!0,delete t._pendingNavigationArgs;var n=this.router.parse(e.uri);if(!n)throw S.Error("E3001",e.uri);var i=this.router.format(n);e.uri!==i&&i?(e.cancel=!0,e.cancelReason="redirect",c.executeAsync(function(){t.navigate(i,e.options)})):t._processEvent("navigating",e)},_onNavigated:function(e){var t,n=this,i=e.options.direction,o=n._acquireViewInfo(e.item,e.options);return o.model||(this._processEvent("beforeViewSetup",{viewInfo:o}),n._createViewModel(o),n._createViewCommands(o),this._processEvent("afterViewSetup",{viewInfo:o})),n._highlightCurrentNavigationCommand(o),t=n._showView(o,i).always(function(){n._isNavigating=!1;var e=n._pendingNavigationArgs;e&&c.executeAsync(function(){n.navigate(e.uri,e.options)})})},_isViewReadyToShow:function(e){return!!e.model},_onNavigationCanceled:function(e){var t=this;if(!t._pendingNavigationArgs||t._pendingNavigationArgs.uri!==e.uri){var n=t.navigationManager.currentItem();n&&c.executeAsync(function(){var i=t._acquireViewInfo(n,e.options);t._highlightCurrentNavigationCommand(i,!0)}),t._isNavigating=!1}},_disposeRemovedViews:function(){var e=this;u.each(e._viewLinksHash,function(t,n){n.linkCount||(e._disposeRemovedView(n.viewInfo),delete e._viewLinksHash[t])}),this._removedViewInfos.forEach(function(t){e._disposeRemovedView(t)}),this._removedViewInfos=[]},_disposeRemovedView:function(e){var t={viewInfo:e};this._processEvent("viewDisposing",t,e.model),this._disposeView(e),this._processEvent("viewDisposed",t,e.model)},_onViewHidden:function(e){var t={viewInfo:e};this._processEvent("viewHidden",t,t.viewInfo.model)},_disposeView:function(e){var t=e.commands||[];u.each(t,function(e,t){t._dispose()})},_acquireViewInfo:function(e,t){var n=this.router.parse(e.uri),i=this._getViewInfoKey(e,n),o=this.viewCache.getView(i);return o?this._updateViewInfo(o,e,t):(o=this._createViewInfo(e,t),this._obtainViewLink(o),this.viewCache.setView(i,o)),o},_getViewInfoKey:function(e,t){var n={key:e.key,navigationItem:e,routeData:t};return this._processEvent("resolveViewCacheKey",n),n.key},_processEvent:function(e,t,n){this._callComponentMethod(e,t),this.fireEvent(e,t&&[t]);var i=(n||{})[e];i&&i.call(n,t)},_updateViewInfo:function(e,t,n){var i=t.uri,o=this.router.parse(i);e.viewName=o.view,e.routeData=o,e.uri=i,e.navigateOptions=n,e.canBack=this.canBack(n.stack),e.previousViewInfo=this._getPreviousViewInfo(n)},_createViewInfo:function(e,t){var n=e.uri,i=this.router.parse(n),o={key:this._getViewInfoKey(e,i)};return this._updateViewInfo(o,e,t),o},_createViewModel:function(e){e.model=e.model||this._callViewCodeBehind(e)},_createViewCommands:function(e){e.commands=e.model.commands||[],e.canBack&&"webSite"!==this._applicationMode&&this._appendBackCommand(e)},_callViewCodeBehind:function(e){var t=c.noop,n=e.routeData;return n.view in this.namespace&&(t=this.namespace[n.view]),t.call(this.namespace,n,e)||{}},_appendBackCommand:function(e){var t=e.commands,n=this,o=i;n._options.useViewTitleAsBackText&&(o=((e.previousViewInfo||{}).model||{}).title||o);var a=[new v({id:"back",title:o,behavior:"back",onExecute:function(){n.back({stack:e.navigateOptions.stack})},icon:"arrowleft",type:"back",renderStage:n._options.useViewTitleAsBackText?"onViewRendering":"onViewShown"})],r=p(a,t);t.length=0,t.push.apply(t,r)},_showView:function(e,t){var n=this,i={viewInfo:e,direction:t,params:e.routeData};return k.processRequestResultLock.obtain(),n._showViewImpl(i.viewInfo,i.direction).done(function(){c.executeAsync(function(){k.processRequestResultLock.release(),n._processEvent("viewShown",i,e.model),n._disposeRemovedViews()})})},_highlightCurrentNavigationCommand:function(e,t){var n,i=this,o=e.model&&e.model.currentNavigationItemId;void 0!==o&&u.each(this.navigation,function(e,t){if(t.option("id")===o)return n=t,!1}),n||u.each(this.navigation,function(e,t){var o=t.option("onExecute");if(d.isString(o)&&(o=o.replace(/^#+/,""),o===i.navigationManager.rootUri()))return n=t,!1}),u.each(this.navigation,function(e,i){t&&i===n&&i.option("highlighted")&&i.fireEvent("optionChanged",[{name:"highlighted",value:!0,previousValue:!0}]),i.option("highlighted",i===n)})},_showViewImpl:s,_obtainViewLink:function(e){var t=e.key,n=this._viewLinksHash[t];n?(n.viewInfo!==e&&(this._removedViewInfos.push(n.viewInfo),n.viewInfo=e),this._viewLinksHash[t].linkCount++):this._viewLinksHash[t]={viewInfo:e,linkCount:1}},_releaseViewLink:function(e){void 0===this._viewLinksHash[e.key]&&S.log("W3001",e.key),0===this._viewLinksHash[e.key].linkCount&&S.log("W3002",e.key),this._viewLinksHash[e.key].linkCount--},navigate:function(e,t){var n=this;if(d.isPlainObject(e)&&(e=n.router.format(e),e===!1))throw S.Error("E3002");if(n._initState){if(n._initState!==D)throw S.Error("E3003");n._isNavigating&&!e||n.navigationManager.navigate(e,t)}else n.init().done(function(){n.restoreState(),n.navigate(e,t)})},canBack:function(e){return this.navigationManager.canBack(e)},_getPreviousViewInfo:function(e){var t,n=this.navigationManager.previousItem(e.stack);if(n){var i=this.router.parse(n.uri);t=this.viewCache.getView(this._getViewInfoKey(n,i))}return t},back:function(e){this.navigationManager.back(e)},saveState:function(){this.stateManager.saveState()},restoreState:function(){this.stateManager.restoreState()},clearState:function(){this.stateManager.clearState()}}).include(y);t.Application=E},function(e,t,n){function i(e,t){if(t.args){var n=t.args[0];e.event=n.event}"dxCommand"===(t.component||{}).NAME&&l(e,t.component.option())}function o(e){if(e){var t=a(e.target);t.attr("href")&&e.preventDefault()}}n(43);var a=n(26),r=n(12).getLocation(),s=n(22),l=n(0).extend,c=n(1).isPlainObject,d=n(3).map,u=n(140).Route,h=function(e){return{routing:{execute:function(t){var n,a,r=t.action,s={};c(r)&&(n=r.routeValues,n&&c(n)?s=r.options:n=r,a=e.router.format(n),i(s,t),o(s.event),e.navigate(a,s),t.handled=!0)}},hash:{execute:function(t){if("string"==typeof t.action&&"#"===t.action.charAt(0)){var n=t.action.substr(1),a=t.args[0],r=n,l=function(e){var n=s.compileGetter(e),i=t.args[0].model;return n(i)},c=a.evaluate||l;r=n.replace(/\{([^}]+)\}/g,function(e,t){t=t.trim(),t.indexOf(",")>-1&&(t=d(t.split(","),function(e){return e.trim()}));var n=c(t);return void 0===n&&(n=""),n=u.prototype.formatSegment(n)});var h={};i(h,t),o(h.event),e.navigate(r,h),t.handled=!0}}},url:{execute:function(e){"string"==typeof e.action&&"#"!==e.action.charAt(0)&&(r.href=e.action)}}}};t.createActionExecutors=h},function(e,t,n){n(43);var i=n(26),o=n(10),a=n(19),r=n(6).getWindow(),s=n(175),l="__root__",c="__buffer__",d=o.inherit({ctor:function(e){e=e||{},this._window=e.window||r,this.popState=a(),i(this._window).on("hashchange",this._onHashChange.bind(this)),this._tasks=s.create(),this.canWorkInPureBrowser=!0},replaceState:function(e){var t=this;return this._addTask(function(){e=t._normalizeUri(e),t._window.history.replaceState(null,null,"#"+e),t._currentTask.resolve()})},pushState:function(e){var t=this;return this._addTask(function(){e=t._normalizeUri(e),t._window.history.pushState(null,null,"#"+e),t._currentTask.resolve()})},createRootPage:function(){return this.replaceState(l)},_onHashChange:function(){this._currentTask&&this._currentTask.resolve(),this.popState.fire()},back:function(){var e=this;return this._addTask(function(){e._window.history.back()})},getHash:function(){return this._normalizeUri(this._window.location.hash)},isRootPage:function(){return this.getHash()===l},_normalizeUri:function(e){return(e||"").replace(/^#+/,"")},_addTask:function(e){var t=this,n=i.Deferred();return this._tasks.add(function(){return t._currentTask=n,e(),n}),n.promise()}}),u=d.inherit({ctor:function(){this._innerEventCount=0,this.callBase.apply(this,arguments),this._skipNextEvent=!1},replaceState:function(e){var t=this;return e=t._normalizeUri(e),t.getHash()!==e?(t._addTask(function(){t._skipNextEvent=!0,t._window.history.back()}),t._addTask(function(){t._skipNextEvent=!0,t._window.location.hash=e})):i.Deferred().resolve().promise()},pushState:function(e){var t=this;return e=this._normalizeUri(e),this.getHash()!==e?t._addTask(function(){t._skipNextEvent=!0,t._window.location.hash=e}):i.Deferred().resolve().promise()},createRootPage:function(){return this.pushState(l)},_onHashChange:function(){var e=this._currentTask;this._currentTask=null,this._skipNextEvent?this._skipNextEvent=!1:this.popState.fire(),e&&e.resolve()}}),h=u.inherit({createRootPage:function(){return this.pushState(c),this.callBase()}}),p=d.inherit({ctor:function(e){e=e||{},this._window=e.window||r,this.popState=a(),i(this._window).on("dxback",this._onHashChange.bind(this)),this._currentHash=this._window.location.hash},replaceState:function(e){return this._currentHash=this._normalizeUri(e),i.Deferred().resolve().promise()},pushState:function(e){return this.replaceState(e)},createRootPage:function(){return this.replaceState(l)},getHash:function(){return this._normalizeUri(this._currentHash)},back:function(){return this.replaceState(l)},_onHashChange:function(){var e=this.back();return this.popState.fire(),e}}),f=d.inherit({ctor:function(e){this.callBase(e),this.canWorkInPureBrowser=!1}});t.DefaultBrowserAdapter=d,t.OldBrowserAdapter=u,t.BuggyAndroidBrowserAdapter=h,t.HistorylessBrowserAdapter=p,t.BuggyCordovaWP81BrowserAdapter=f},function(e,t,n){n(43);var i=n(26),o=n(10),a=n(4).noop,r=n(3),s=n(62),l=n(180),c=n(237),d=n(7).when;n(176),n(178);var u=o.inherit({ctor:function(e){e=e||{},this.defaultWidgetAdapter=e.defaultWidgetAdapter||this._getDefaultWidgetAdapter(),this.commandMapping=e.commandMapping||new l},_getDefaultWidgetAdapter:function(){return{addCommand:a,clearContainer:a}},_getContainerAdapter:function(e){var t=e.data("dxComponents"),n=c;if(t)for(var i in t){var o=t[i];if(o in n)return n[o]}return this.defaultWidgetAdapter},findCommands:function(e){var t=e.find(".dx-command").add(e.filter(".dx-command")),n=r.map(t,function(e){return i(e).dxCommand("instance")});return n},findCommandContainers:function(e){var t=r.map(e.find(".dx-command-container"),function(e){return i(e).dxCommandContainer("instance")});return t},_checkCommandId:function(e,t){if(null===e)throw s.Error("E3010",t.$element().get(0).outerHTML)},renderCommandsToContainers:function(e,t){var n=this,o={},a=[],s=[];return r.each(e,function(e,t){var i=t.option("id");n._checkCommandId(i,t),a.push(i),o[i]=t}),n.commandMapping.checkCommandsExist(a),r.each(t,function(e,t){var i=[];if(r.each(o,function(e,o){var a=e,r=n.commandMapping.getCommandMappingForContainer(a,t.option("id"));r&&i.push({command:o,options:r})}),i.length){var a=n._attachCommandsToContainer(t.element(),i);a&&s.push(a)}}),d.apply(i,s)},clearContainer:function(e){var t=e.element(),n=this._getContainerAdapter(t);n.clearContainer(t)},_arrangeCommandsToContainers:function(e,t){s.log("W0002","CommandManager","_arrangeCommandsToContainers","14.1","Use the 'renderCommandsToContainers' method instead."),this.renderCommandsToContainers(e,t)},_attachCommandsToContainer:function(e,t){var n,i=this._getContainerAdapter(e);return i.beginUpdate&&i.beginUpdate(e),r.each(t,function(t,n){i.addCommand(e,n.command,n.options)}),i.endUpdate&&(n=i.endUpdate(e)),n}});e.exports=u},function(e,t,n){var i=n(10),o=n(0).extend,a=n(11).inArray,r=n(3),s=n(110).utils.commandToContainer,l=n(31),c=n(116),d="dxCommandToWidgetAdapter",u=i.inherit({ctor:function(e,t){this.command=e,this.widgetItem=this._createWidgetItem(e,t)},_createWidgetItem:function(e,t){var n,i=o({},t,e.option()),a=function(t){e.execute(t)};return i.text=s.resolveTextValue(e,t),i.icon=s.resolveIconValue(e,t),i.type=s.resolvePropertyValue(e,t,"type"),i.location=s.resolvePropertyValue(e,t,"location"),i.locateInMenu=s.resolvePropertyValue(e,t,"locateInMenu"),i.showText=s.resolvePropertyValue(e,t,"showText"),n=this._createWidgetItemCore(i,a),n.command=e,n},_createWidgetItemCore:function(e,t){return e},dispose:function(){delete this.command,delete this.widgetItem; }}),h=i.inherit({ctor:function(e){this._commandToWidgetItemOptionNames={},this.$widgetElement=e,this.$widgetElement.data(d,this),this.widget=this._getWidgetByElement(e),this._widgetWidgetContentReadyHandler=this._onWidgetContentReady.bind(this),this._widgetWidgetItemRenderedHandler=this._onWidgetItemRendered.bind(this),this._widgetDisposingHandler=this._onWidgetDisposing.bind(this),this.widget.on("itemRendered",this._widgetWidgetItemRenderedHandler),this.widget.on("contentReady",this._widgetWidgetContentReadyHandler),this.widget.on("disposing",this._widgetDisposingHandler),this.itemWrappers=[],this._transitionExecutor=new c.TransitionExecutor},addCommand:function(e,t){var n=this._createItemWrapper(e,t);this.itemWrappers.push(n),this._addItemToWidget(n),this._commandChangedHandler=this._onCommandChanged.bind(this),n.command.on("optionChanged",this._commandChangedHandler)},beginUpdate:function(){this.widget.beginUpdate()},endUpdate:function(){return this.widget.endUpdate(),this.animationDeferred},_onWidgetItemRendered:function(e){e.itemData.isJustAdded&&e.itemData.command&&e.itemData.command.option("visible")&&this._commandRenderedAnimation&&this._transitionExecutor.enter(e.itemElement,this._commandRenderedAnimation),delete e.itemData.isJustAdded},_onWidgetContentReady:function(e){this.animationDeferred=this._transitionExecutor.start()},_onWidgetDisposing:function(){this.dispose(!0)},_setWidgetItemOption:function(e,t,n){var i=this.widget.option("items"),o=a(n,r.map(i,function(e){return e.command||{}}));if(o>-1){var s="items["+o+"].";!this._requireWidgetRefresh(e)&&this.widget.option("items["+o+"]").options&&(s+="options."),s+=this._commandToWidgetItemOptionNames[e]||e,this.widget.option(s,t)}},_requireWidgetRefresh:function(e){return"visible"===e||"locateInMenu"===e||"location"===e},_onCommandChanged:function(e){"highlighted"===e.name||e.component.isOptionDeprecated(e.name)||this._setWidgetItemOption(e.name,e.value,e.component)},_addItemToWidget:function(e){var t=this.widget.option("items");t.push(e.widgetItem),this.widget.$element().is(":visible")&&(e.widgetItem.isJustAdded=!0),this.widget.option("items",t)},refresh:function(){var e=this.widget.option("items");this.widget.option("items",e)},clear:function(e){var t=this;r.each(t.itemWrappers,function(e,n){n.command.off("optionChanged",t._commandChangedHandler),n.dispose()}),this.itemWrappers.length=0,e||this._clearWidgetItems()},_clearWidgetItems:function(){this.widget.option("items",[])},dispose:function(e){this.clear(e),this.widget&&(this.widget.off("itemRendered",this._widgetWidgetItemRenderedHandler),this.widget.off("contentReady",this._widgetContentReadyHandler),this.widget.off("disposing",this._widgetDisposingHandler),this.$widgetElement.removeData(d),delete this.widget,delete this.$widgetElement)}}),p=i.inherit({ctor:function(e){this.createAdapter=e},_getWidgetAdapter:function(e){var t=e.data(d);return t||(t=this.createAdapter(e)),t},addCommand:function(e,t,n){var i=this._getWidgetAdapter(e);i.addCommand(t,n)},clearContainer:function(e){var t=this._getWidgetAdapter(e);t.clear()},beginUpdate:function(e){var t=this._getWidgetAdapter(e);t.beginUpdate()},endUpdate:function(e){var t=this._getWidgetAdapter(e);return t.endUpdate()}}),f=u.inherit({_createWidgetItemCore:function(e,t){var n;return e.onClick=t,"menu"===e.location||"always"===e.locateInMenu?(n=e,n.isAction=!0):(n={locateInMenu:e.locateInMenu,location:e.location,visible:e.visible,options:e,widget:"dxButton"},"inMenu"===e.showText&&(n.showText=e.showText),e.visible=!0,delete e.location),n}}),g=h.inherit({ctor:function(e){this.callBase(e),this._commandToWidgetItemOptionNames={title:"text"},"topToolbar"===this.widget.option("renderAs")?this._commandRenderedAnimation="command-rendered-top":this._commandRenderedAnimation="command-rendered-bottom"},_getWidgetByElement:function(e){return e.dxToolbar("instance")},_createItemWrapper:function(e,t){return new f(e,t)},addCommand:function(e,t){this.widget.option("visible",!0),this.callBase(e,t)}}),_=u.inherit({_createWidgetItemCore:function(e,t){return e.title=e.text,e.onClick=t,e}}),m=h.inherit({_createItemWrapper:function(e,t){return new _(e,t)},_getWidgetByElement:function(e){return e.dxList("instance")}}),v=u.inherit({}),x=h.inherit({ctor:function(e){this.callBase(e),this._commandToWidgetItemOptionNames={title:"text"},this.widget.option("onItemClick",this._onNavBarItemClick.bind(this))},_onNavBarItemClick:function(e){for(var t=this.widget.option("items"),n=t.length;--n;)t[n].command.option("highlighted",!1);e.itemData.command.execute(e)},_getWidgetByElement:function(e){return e.dxNavBar("instance")},_createItemWrapper:function(e,t){return new v(e,t)},addCommand:function(e,t){this.callBase(e,t),this._updateSelectedIndex()},_onCommandChanged:function(e){var t=e.name,n=e.value;"highlighted"===t&&n&&this._updateSelectedIndex(),this.callBase(e)},_updateSelectedIndex:function(){for(var e=this.widget.option("items"),t=0,n=e.length;t=0?a.location.protocol+"www/":""},_loadExternalTemplates:function(){var e=[],t=this;return i("head").find("link[rel='dx-template']").each(function(n,o){var a=t._loadTemplatesFromURL(i(o).attr("href"));e.push(a)}),p.apply(i,e)},_processTemplates:function(){var e=this;c(e._templateMap,function(t,n){c(n,function(t,n){e._filterTemplatesByDevice(n)})}),e._enumerateTemplates(function(t){e._applyPartialViews(t.element())})},_filterTemplatesByDevice:function(e){var t=this._filterTemplates(this.device,e);c(e,function(e,n){d(n,t)<0&&n.element().remove()}),e.length=0,e.push.apply(e,t)},_filterTemplates:function(e,t){return l.findBestMatches(e,t,function(e){return e.option()})},_checkMatchedTemplates:function(e){if(e.length>1){var t="";throw c(e,function(e,n){t+=n.element().attr("data-options")+"\r\n"}),u.Error("E3020",t,JSON.stringify(this.device))}},_wrapViewDefaultContent:function(e){e.wrapInner('
'),e.children().eq(0).dxContent({targetPlaceholder:"content"})},_initDefaultLayout:function(){this._$defaultLayoutTemplate=i('
\n
\n
'),h.createComponents(this._$defaultLayoutTemplate)},_getDefaultLayoutTemplate:function(){return this._$defaultLayoutTemplate.clone()},applyLayout:function(e,t){void 0!==t&&0!==t.length||(t=this._getDefaultLayoutTemplate()),0===e.children(".dx-content").length&&this._wrapViewDefaultContent(e);var n=i().add(t).add(e),o=n.find(".dx-content");c(o,function(){var e=i(this),t=e.attr("data-dx-target-placeholder-id"),o=n.find(".dx-content-placeholder-"+t);o.empty(),o.append(e)});for(var a=o.length;a>=0;a--){var r=o.eq(a);r.is(".dx-content-placeholder .dx-content")||r.remove()}return t},_loadTemplatesFromCache:function(){if(this._templateCacheEnabled){var e,t=function(e,t){if("string"==typeof t&&0===t.indexOf(m)){var n=JSON.parse(t.substr(m.length)),o=n.type,a=n.options,r=h.createMarkupFromString(n.markup);return a.fromCache=!0,r[o](a)[o]("instance")}return"skippedMarkup"===e?i("
").append(h.createMarkupFromString(t)).contents():t},n=this._templateCacheStorage.getItem(this._templateCacheKey);if(n)try{var o=JSON.parse(n,t);e=o[this._templatesVersion]}catch(e){this._clearCache()}if(e)return this._templateMap=e.templates,this.$root.append(e.skippedMarkup),!0}},_putTemplatesToCache:function(){if(this._templateCacheEnabled){var e=function(e,t){return t&&t.element?m+JSON.stringify({markup:t.element().prop("outerHTML"),options:t.option(),type:t.NAME}):"skippedMarkup"===e?i("
").append(t.clone()).html():t},t={};t[this._templatesVersion]={templates:this._templateMap,skippedMarkup:this._$skippedMarkup},this._templateCacheStorage.setItem(this._templateCacheKey,JSON.stringify(t,e,4))}},init:function(){var e=this;return this._initDefaultLayout(),this._loadTemplatesFromCache()?i.Deferred().resolve().promise():(e._loadTemplatesFromMarkupCore(e.$root.children()),this._loadExternalTemplates().done(function(){e._processTemplates(),e._putTemplatesToCache()}))},getViewTemplate:function(e){return this._findTemplate(e,g)},getViewTemplateInfo:function(e){return this._findComponent(e,g)},getLayoutTemplate:function(e){return e?this._findTemplate(e,_):this._getDefaultLayoutTemplate()},getLayoutTemplateInfo:function(e){return this._findComponent(e,_)},loadTemplates:function(e){var t;return"string"==typeof e?t=this._loadTemplatesFromURL(e):(this._loadTemplatesFromMarkupCore(e),t=i.Deferred().resolve().promise()),t.done(this._processTemplates.bind(this))}});t.ViewEngine=v},function(e,t){e.exports=window.angular},function(e,t,n){var i=n(41),o=n(4),a=n(1),r=o.getKeyHash,s=n(10),l=n(7).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 e(){var t=this.options.addedItemKeys,n=this.options.removedItemKeys,i=this.options.addedItems,a=this.options.removedItems,r=this.options.selectedItems,s=this.options.selectedItemKeys,e=this.options.onSelectionChanged||o.noop;this._clearItemKeys(),e({selectedItems:r,selectedItemKeys:s,addedItemKeys:t,removedItemKeys:n,addedItems:i,removedItems:a})},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,c={filter:r?void 0:e,select:r?this.options.dataFields():n||this.options.dataFields()};return e&&0===e.length?s.resolve([]):this.options.load(c).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=this.options.totalCount()||void 0:this._isAnyItemSelected(e)},_getVisibleSelectAllState:function(){for(var e=this.options.plainItems(),t=!1,n=!1,i=0;i=0){t=e.replace(n,l[n]);break}return t}}},function(e,t,n){function i(e,t){var n={};return n[e]=t,n}function o(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]&&c.log("W4001",o):n[o]=t[o];return n}var a=n(1).isDefined,r=n(3).map,s=n(97),l=n(243),c=n(35).errors,d=n(41),u=n(91),h=n(245),p=n(7),f=p.when,g=p.Deferred;n(144);var _="5d46402c-7899-4ea9-bd81-8b73c47c7683",m=u.inherit({ctor:function(e){this.callBase(e),this._extractServiceOptions(e);var t=this.key(),n=e.fieldTypes,a=e.keyType;if(a){var r="string"==typeof a;t||(t=r?_:Object.keys(a),this._legacyAnonymousKey=t),r&&(a=i(t,a)),n=o(n,a)}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&&t.expand&&(n.$expand=r([].slice.call(t.expand),s.serializePropName).join()),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=a(e.urlOverride)?e.urlOverride:this._url,e.customQueryParams){var i=h.escapeServiceOperationParams(e.customQueryParams,this.version());4===this.version()?t=h.formatFunctionInvocationUrl(t,i):n.params=i}return d(t,n)},_insertImpl:function(e){this._requireKey();var t=this,n=new g;return f(this._sendRequest(this._url,"POST",null,e)).done(function(i){n.resolve(e,t.keyOf(i))}).fail(n.reject),n.promise()},_updateImpl:function(e,t){var n=new g;return f(this._sendRequest(this._byKeyUrl(e),this._updateMethod,null,t)).done(function(){n.resolve(e,t)}).fail(n.reject),n.promise()},_removeImpl:function(e){var t=new g;return f(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 in i){var a=i[o];t[a]=s.convertPrimitiveValue(n[a],e[a])}}else n[i]&&(t=s.convertPrimitiveValue(n[i],e));return t},_byKeyUrl:function(e,t){var n=t?l.formatLocalUrl(this._url):this._url,i=this._convertKey(e);return n+"("+encodeURIComponent(s.serializeKey(i,this._version))+")"}},"odata").include(h.SharedMethods);e.exports=m},function(e,t,n){var i=n(39),o=n(3),a=n(97);n(144);var r=2,s=function(e,t){return i.format("{0}({1})",e,o.map(t||{},function(e,t){return i.format("{0}={1}",t,e)}).join(","))},l=function(e,t){if(!e)return e;var n={};return o.each(e,function(e,i){n[e]=a.serializeValue(i,t)}),n},c={_extractServiceOptions:function(e){e=e||{},this._url=String(e.url).replace(/\/+$/,""),this._beforeSend=e.beforeSend,this._jsonp=e.jsonp,this._version=e.version||r,this._withCredentials=e.withCredentials,this._deserializeDates=e.deserializeDates},_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=c,t.escapeServiceOperationParams=l,t.formatFunctionInvocationUrl=s},function(e,t,n){e.exports=n(473)},function(e,t,n){var i=n(366);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,t){var n=e.format||Ee[e.dataType];return he.default.format(t,n)}function a(e){return e&&e.length>1&&"!"===e[0]&&!D(e)}function r(e){return a(e)?e[1]:e}function s(e,t){return a(e)?e[1]=t:e=t,e}function l(e,t){var n=function(e){return e.indexOf("!")!==-1},i=function(e){var t=e.slice(0);e.length=0,e.push("!",t)},o=function(e){var t=r(e);e.length=0,[].push.apply(e,t)};n(t)?a(e)||i(e):a(e)&&o(e)}function c(e,t){l(e,t);var n,i=r(e),o=function(e){return e.indexOf("!")===-1?e:e.substring(1)},a=function(e,t){for(n=0;n=0&&i.push(t.name)}}),i.map(function(e){var i=v(n,e);return i?{icon:i.icon||ke,text:i.caption||ge.default.captionize(i.name),value:i.name,isCustom:!0}:{icon:ye.default.getIconByFilterOperation(e)||ke,text:_(e,t),value:e}})}function w(e){return e.defaultFilterOperation||g(e)[0]}function b(e,t){var n=[e.dataField,"",""],i=w(e);return Y(n,i,t),n}function y(e,t){var n=r(e),i=n.indexOf(t);return n.splice(i,1),1!==n.length&&n.splice(i,1),e}function C(e){return e.indexOf("not")!==-1?["!",[e.substring(3).toLowerCase()]]:[e]}function k(e){var t=r(e);if(D(t))return!1;var n=t.some(function(e){return D(e)});return!n}function S(e,t){var n=r(t),i=h(n);return 1===n.length?n.unshift(e):n.push(e,i),t}function I(e,t){for(var n=0;n0)return i[0];throw new le.default.Error("E1047",e)}function T(e){return!!Array.isArray(e)&&(e.length<2||Array.isArray(e[0])||Array.isArray(e[1]))}function D(e){return!!Array.isArray(e)&&(e.length>1&&!Array.isArray(e[0])&&!Array.isArray(e[1]))}function E(e,t){for(var n=u(e).toLowerCase()||Se,i=[],o=0;o-1&&(n[i]=t[i]);n.defaultCalculateFilterExpression=de.default.defaultCalculateFilterExpression,e.push(n)}return e},[])}function P(e,t,n,i){var o=I(e[0],t),a=B(e,n),r=n.length&&v(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 R(e,t,n,i){if(null===e)return null;var o=r(e);if(D(o))return P(o,t,n,i)||null;for(var a,s=[],l=h(o),c=0;c3&&void 0!==arguments[3]?arguments[3]:"filterBuilder";if(z(t))return"";if(Array.isArray(t)){var o=new ae.Deferred;return ae.when.apply(this,H(e,t,n,i)).done(function(){for(var e=arguments.length,t=Array(e),n=0;n2&&!ye.default.getNameByFilterOperation(e[1]);return!(t.dataType&&"string"!==t.dataType||n)||""!==e[2]}function Q(e,t){var n=(0,pe.extend)(!0,[],e),i=-1;return n.some(function(e,t){if("between"===e.name)return i=t,!0}),i!==-1?n[i]=(0,pe.extend)(me.default.getConfig(t),n[i]):n.unshift(me.default.getConfig(t)),n}function J(e,t){return e[0]===t}function ee(e,t){if(!e||0===e.length)return null;if(D(e)){var n=J(e,t);return n?null:e}return te(e,[t],!1)}function te(e,t,n){var i=[];return e.forEach(function(e){D(e)?J(e,t[0])?n?(i.push(t),n=!1):i.splice(i.length-1,1):i.push(e):(i.length||T(e))&&i.push(e)}),0===i.length?null:(n&&(i.push(Se),i.push(t)),1===i.length?i[0]:i)}function ne(e,t){if(null===e||0===e.length)return t;if(D(e))return J(e,t[0])?t:[e,Se,t];var n=h(e);return n!==Se?[t,"and",e]:te(e,t,!0)}function ie(e,t){if(null===e||0===e.length)return[];if(D(e))return J(e,t)?[e]:[];var n=h(e);if(n!==Se)return[];var i=e.filter(function(e){return D(e)&&J(e,t)});return i}function oe(e,t){return null!==e&&0!==e.length&&(D(e)?e[0]===t:e.some(function(e){return(D(e)||T(e))&&oe(e,t)}))}var ae=n(7),re=n(35),se=n(21),le=i(se),ce=n(198),de=i(ce),ue=n(88),he=i(ue),pe=n(0),fe=n(36),ge=i(fe),_e=n(553),me=i(_e),ve=n(15),xe=i(ve),we=n(51),be=n(554),ye=i(be),Ce="string",ke="icon-none",Se="and",Ie="=",Te="<>",De={number:["=","<>","<",">","<=",">=","isblank","isnotblank"],string:["contains","notcontains","startswith","endswith","=","<>","isblank","isnotblank"],date:["=","<>","<",">","<=",">=","isblank","isnotblank"],datetime:["=","<>","<",">","<=",">=","isblank","isnotblank"],"boolean":["=","<>","isblank","isnotblank"],object:["isblank","isnotblank"]},Ee={date:"shortDate",datetime:"shortDateShortTime"},Ae=["=","<>","isblank","isnotblank"],Be=["caption","customizeText","dataField","dataType","editorTemplate","falseText","editorOptions","filterOperations","format","lookup","trueText","calculateFilterExpression"];t.isValidCondition=Z,t.isEmptyGroup=k,t.getOperationFromAvailable=m,t.updateConditionByOperation=Y,t.getCaptionWithParents=U,t.getItems=q,t.setGroupValue=c,t.getGroupMenuItem=d,t.getGroupValue=h,t.getAvailableOperations=x,t.removeItem=y,t.createCondition=b,t.createEmptyGroup=C,t.addItem=S,t.getField=I,t.isGroup=T,t.isCondition=D,t.getNormalizedFields=M,t.getNormalizedFilter=V,t.getGroupCriteria=r,t.convertToInnerStructure=O,t.getDefaultOperation=w,t.getCurrentValueText=N,t.getCurrentLookupValueText=F,t.getFilterOperations=g,t.getCaptionByOperation=_,t.getOperationValue=X,t.getFilterExpression=R,t.getCustomOperation=v,t.getMergedOperations=Q,t.syncFilters=ne,t.getMatchedConditions=ie,t.filterHasField=oe,t.removeFieldConditionsFromFilter=ee},function(e,t,n){function i(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="",y.titleize(t)+n}function o(e,t){var n=e._initProperties||{};f.each(t,function(t,i){n.hasOwnProperty(i)&&(e[i]=n[i])})}function a(e,t){o(e,t),g(e.caption)||V(e,"caption",i(e))}function r(e){return e.some(function(e){return e.summaryDisplayMode||e.calculateSummaryValue})}function s(e){return e.some(function(e){return!!e.runningTotal})}var l=n(51),c=n(91),d=n(4),u=n(1),h=n(0).extend,p=n(11).inArray,f=n(3),g=u.isDefined,_=f.each,m=n(7),v=m.when,x=m.Deferred,w=n(10),b=n(52),y=n(36),C=n(11).normalizeIndexes,k=n(604),S=n(605),I=n(406),T=n(606),D=n(94),E=D.foreachTree,A=D.foreachTreeAsync,B=D.findField,O=D.formatValue,M=D.getCompareFunction,P=D.createPath,R=D.foreachDataLevel,V=D.setFieldProperty,F={ row:"rows",column:"columns",data:"values",filter:"filters"},L=["area","areaIndex","sortOrder","filterType","filterValues","sortBy","sortBySummaryField","sortBySummaryPath","expanded","summaryType","summaryDisplayMode"],H=["format","selector","customizeText","caption"],z=H.concat(["allowSorting","allowSortingBySummary","allowFiltering","allowExpandAll"]);e.exports=w.inherit(function(){function e(e,t){var n=e.remoteOperations?S:k.LocalStore;return new n(h(l.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}),o=t.store,"xmla"===o.type?i=new I.XmlaStore(o):u.isPlainObject(o)&&o.type||o instanceof c||Array.isArray(o)?i=e(t,n):o instanceof w&&(i=o)),i}function n(e,t,n){for(var i=0;i=0&&g(d))return function(e){var t=r?e.index:d,n=r?d:e.index,i=((o[t]||[[]])[n]||[])[a];return g(i)?i:null}}function Q(e,t){var n="text";return"none"===e?n="index":(t||"displayText"!==e)&&(n="value"),n}function J(e,t,n,i,o){var a=o?"asc":e.sortOrder,r=Q(e.sortBy,o),s=e.sortingMethod?function(t,n){return e.sortingMethod(t,n)}:M(function(e){return e[r]}),l=!o&&Z(e,t,n,i),c=l&&M(l),d=function(e,t){var n=c&&c(e,t)||s(e,t);return"desc"===a?-n:n};return d}function ee(e,t,n,i){var o=t[n]||[],a=t.headerName===n?t.path.length:0,r=[];R(e[n],function(a,s){var l=o[s]||{},c=r[s]=r[s]||J(l,e,t,n,i);a.sort(c)},a)}function te(e,t,n){ee(t,e,"rows",n),ee(t,e,"columns",n)}function ne(e,t,n){return A(e[n],function(e){var i=e[0];i.text=i.text||O(i.value,t[n][P(e).length-1])})}function ie(e,t){return v(ne(t,e,"columns"),ne(t,e,"rows"))}function oe(e){var t=new x,n={};return v(A(e,function(e){var t=P(e).join(".");n[t]=e[0]})).done(t.resolve),e._cacheByPath=n,t}function ae(e,t){var n=[];return _(e,function(){j(this,t)&&n.push(this)}),n}var re=function(e,t){if(e._cacheByPath)return e._cacheByPath[t.join(".")]||null},se=function e(t,n){var i,o,a=-1;if(t)for(i=0;i0},state:function(e,t){var n=this;return arguments.length?(e=h({rowExpandedPaths:[],columnExpandedPaths:[]},e),void(n._descriptions?(n._fields=W(e.fields,n._fields),n._descriptions=n._createDescriptions(),!t&&n.load(e)):(n.beginLoading(),v(Y(n)).done(function(i){n._fields=W(e.fields,i),n._fieldsPrepared(i),!t&&n.load(e)}).always(function(){n.endLoading()})))):{fields:b(n._fields,L),columnExpandedPaths:i(n._data,n._descriptions,"columns"),rowExpandedPaths:i(n._data,n._descriptions,"rows")}},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_changeLoadingCount:function(e){var t,n=this.isLoading();this._loadingCount+=e,t=this.isLoading(),n^t&&this.fireEvent("loadingChanged",[t])},_loadCore:function(e,t){var n=this,o=this._store,a=this._descriptions,r=F[e.area];e=e||{},o?(h(e,a),e.columnExpandedPaths=e.columnExpandedPaths||i(this._data,e,"columns",n._lastLoadOptions),e.rowExpandedPaths=e.rowExpandedPaths||i(this._data,e,"rows",n._lastLoadOptions),r&&(e.headerName=r),n.beginLoading(),t.always(function(){n.endLoading()}),v(o.load(e)).done(function(i){e.path?n.applyPartialDataSource(e.area,e.path,i,t):(h(n._data,i),n._lastLoadOptions=e,n._update(t))}).fail(t.reject)):n._update(t)},_sort:function(e,t,n){var i=this._store;i&&te(e,t,n)},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=r(o);return v(ie(n,i),oe(i.rows),oe(i.columns)).done(function(){a&&(t._sort(n,i,a),!t.isEmpty()&&T.applyDisplaySummaryMode(n,i)),t._sort(n,i),!t.isEmpty()&&s(o)&&T.applyRunningTotal(n,i),t._data=i,v(e).done(function(){t.fireEvent("changed"),g(t._data.grandTotalRowIndex)&&(i.grandTotalRowIndex=t._data.grandTotalRowIndex),g(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=re(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(),!0)},collapseAll:function(e){var t=!1,n=this.field(e)||{},i=p(n,this.getAreaFields(n.area));n.expanded=!1,E(this._data[n.area+"s"],function(e){var n=e[0],o=P(e);n&&n.children&&i===o.length-1&&(n.collapsedChildren=n.children,delete n.children,t=!0)},!0),t&&this._update()},expandAll:function(e){var t=this.field(e);t&&t.area&&(t.expanded=!0,this.load())},expandHeaderItem:function(e,t){var n,i,o=this,a="column"===e?o._data.columns:o._data.rows,r=re(a,t);return!(!r||r.children)&&(n=!!r.collapsedChildren,i={area:e,path:t,expanded:!0,needExpandData:!n},o.fireEvent("expandValueChanging",[i]),n?(r.children=r.collapsedChildren,delete r.collapsedChildren,o._update()):o.load(i),n)},applyPartialDataSource:function(e,t,n,i){var o,a,r,s=this,l=s._data,c="column"===e?l.columns:l.rows;n&&n.values&&(n.rows=n.rows||[],n.columns=n.columns||[],o=re(c,t),o&&("column"===e?(r=le(c,o,n.columns,l.grandTotalColumnIndex),a=ce(l.rows,n.rows)):(a=le(c,o,n.rows,l.grandTotalRowIndex),r=ce(l.columns,n.columns)),v(a,r).done(function(t,o){("row"===e&&t.length||"column"===e&&o.length)&&de(l,n.values,t,o),s._update(i)})))},dispose:function(){var e=this,t=e._delayedLoadTask;this._disposeEvents(),t&&t.abort(),this._isDisposed=!0},isDisposed:function(){return!!this._isDisposed}}}()).include(b)},function(e,t,n){var i=n(2),o=n(409),a=n(8),r=n(23),s=n(0).extend,l=n(6),c=r.dateToMilliseconds,d="dx-scheduler-date-time-indicator",u="dx-scheduler-time-panel-current-time-cell",h="dx-scheduler-header-panel-current-time-cell",p=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()+c("day")))},needRenderDateTimeIndication:function(){if(!l.hasWindow())return!1;var e=this._getToday();return e>=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").addClass(d);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=0&&!i||n<0&&i)||o&&!i||a;return e=t._options.rotated?r?h:p:r?f:g},_getLabelCoords:function(e){var t,n=this;return t=0===n.initialValue&&n.series.isFullStackedSeries()?this._options.rotated?n._getLabelCoordOfPosition(e,h):n._getLabelCoordOfPosition(e,f):"inside"===e.getLayoutOptions().position?n._getLabelCoordOfPosition(e,"inside"):l._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.heightn.x+n.width||t.x+i.widthi&&(i=t.minX),t.maxXo&&(o=t.minY),t.maxY=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:en?n:e},_translateErrorBars:function(e){l._translateErrorBars.call(this),(this._errorBarPose.max)&&(this._errorBarPos=void 0)},_translate:function(){var e,t,n,i=this,o=i._options.rotated,a=o?"x":"y",r=o?"y":"x",l=o?"width":"height",d=o?"height":"width",u=i._getArgTranslator(),h=i._getValTranslator(),p=u.getCanvasVisibleArea(),f=h.getCanvasVisibleArea();e=u.translate(i.argument),i[r]=e=null===e?e:e+(i[r+"Correction"]||0),t=h.translate(i.value),n=h.translate(i.minValue),i["v"+a]=t,i["v"+r]=e+i[d]/2,t=i._truncateCoord(t,f.min,f.max),n=i._truncateCoord(n,f.min,f.max),i[l]=s(t-n),t=tp.max&&(i[d]=p.max-i[r]))},_updateMarker:function(e,t){this.graphic.smartAttr(o({},t,e?{}:this.getMarkerCoords()))},getMarkerCoords:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},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=l.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=u.getCosAndSin(r),l=n.x+(e.radius+o*a)*s.cos,c=n.y-(e.radius+o*a)*s.sin;return i(t,l,c,r)}var a=n(132),r=a.chart,s=a.polar,l=n(53),c=n(0).extend,d=n(3).each,u=n(16),h=u.normalizeAngle,p="discrete",f=u.map,g=c,_=d;t.chart={},t.polar={};var m={_applyGroupSettings:function(e,t,n){var i=this;t=g(t,e),i._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),r._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),r._createGroups.call(e)},_areBordersVisible:function(){return!1},_getDefaultSegment:function(e){return{line:f(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),_(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;r._animateComplete.call(e),e._markersGroup&&e._markersGroup.animate({opacity:1},{duration:e._defaultDuration})},_animate:function(){var e=this,t=e._graphics.length-1;_(e._graphics||[],function(n,i){var o;n===t&&(o=function(){e._animateComplete()}),e._updateElement(i,e._segments[n],!0,o)})},_drawPoint:function(e){r._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=!1,s=o._prepareSegment(e,a,i);o._segments.push(s),o._graphics[n]?t?r&&o._updateElement(o._graphics[n],o._getDefaultSegment(s)):o._updateElement(o._graphics[n],s):o._graphics[n]=o._drawElement(t?o._getDefaultSegment(s):s,o._elementsGroup)},_getTrackerSettings:function(){var e=this,t=e._defaultTrackerWidth,n=e._styles.normal.elements["stroke-width"];return{"stroke-width":n>t?n:t,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)}},v=t.chart.line=g({},r,m);t.chart.stepline=g({},v,{_calculateStepLinePoints:function(e){var t=[];return _(e,function(e,n){var i,o;return e?(i=t[t.length-1].y,i!==n.y&&(o=l.clone(n),o.y=i,t.push(o)),void t.push(n)):void t.push(n)}),t},_prepareSegment:function(e){return v._prepareSegment(this._calculateStepLinePoints(e))}}),t.chart.spline=g({},v,{_calculateBezierPoints:function(e,t){var n=[],o=e,a=function(e,t,n){return e>t&&n>e||e=I.y&&h>=T.y)||t&&(u<=I.x&&u<=T.x||u>=I.x&&u>=T.x)))t?(c=s=u,d=(h+T.y)/2,l=(h+I.y)/2):(d=l=h,c=(u+T.x)/2,s=(u+I.x)/2);else{if(w=_-g,b=p-f,y=g*f-p*_,t){if(!w)return void n.push(e,e,e);k=h,C=-1*(b*k+y)/w,S=C-u,p-=S,f-=S}else{if(!b)return void n.push(e,e,e);C=u,k=-1*(w*C+y)/b,S=k-h,g-=S,_-=S}c=(u+D*f)/(1+D),d=(h+D*_)/(1+D),s=(u+D*p)/(1+D),l=(h+D*g)/(1+D)}t?(s=a(I.x,u,s),c=a(T.x,u,c)):(l=a(I.y,h,l),d=a(T.y,h,d)),v=i(e,s,l),x=i(e,c,d),n.push(v,e,x)}):n.push(o[0]),n},_prepareSegment:function(e,t){return v._prepareSegment(this._calculateBezierPoints(e,t))},_createMainElement:function(e,t){return this._renderer.path(e,"bezier").attr(t).sharp()}}),t.polar.line=g({},s,m,{_sortPoints:function(e){return e},_prepareSegment:function(e,t,n){var i,o=[],a=this.getValueAxis().getCenter();if(n&&this._closeSegment(e),this.argumentAxisType===p||this.valueAxisType===p)return v._prepareSegment.call(this,e);for(i=1;i=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&&(h(Math.round(e[e.length-1].angle))===h(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:A(e)?B(e):t}function o(e){return C(e)?e:k(e)?[e]:null}function a(e){return e?e.value:null}function r(e,t,n){for(var o=e[t],r=C(n)?T(n,a):[],s=0,l=r.length,c=[];s0&&l.width>0,d=e.minorTick,u=d.visible&&d.length>0&&d.width>0,h=e.label,p=Number(h.indentFromTick);return c||u||h.visible?(t=s._scale.measureLabels(w({},s._canvas)),n=s._getScaleLayoutValue(),i={min:n,max:n},o=s._getTicksCoefficients(e),a=o.inner,r=o.outer,c&&(i.min=O(i.min,n-a*l.length),i.max=M(i.max,n+r*l.length)),u&&(i.min=O(i.min,n-a*d.length),i.max=M(i.max,n+r*d.length)),h.visible&&s._correctScaleIndents(i,p,t),i):{}},_renderContent:function(){var e,t=this,n=t._prepareScaleSettings();t._rangeContainer.render(P(t._getOption("rangeContainer"),{vertical:t._area.vertical})),t._renderScale(n),e=T([t._rangeContainer].concat(t._prepareValueIndicators()),function(e){return e&&e.enabled?e:null}),t._applyMainLayout(e,t._measureScale(n)), R(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=w(!0,{},e._themeManager.theme("scale"),e.option("scale")),n=t.majorTick,i=t.minorTick,o=t.label.overlappingBehavior,a=o.useAutoArrangement;return y(o)&&(o={mode:o}),n&&(t.tick=P(t.tick,n),a=b(n.useTickAutoArrangement)?n.useTickAutoArrangement:a,void 0!==n.tickInterval&&(t.tickInterval=n.tickInterval),void 0!==n.customTickValues&&(t.customTicks=n.customTickValues),t.customTicks?t.tick.showCalculatedTicks=void 0===n.showCalculatedTicks||n.showCalculatedTicks:t.tick.showCalculatedTicks=!1),o.hideFirstTick=t.hideFirstTick,o.hideFirstLabel=t.hideFirstLabel,o.hideLastTick=t.hideLastTick,o.hideLastLabel=t.hideLastLabel,b(o.hideFirstOrLast)||(o.hideFirstOrLast=t.label.hideFirstOrLast),b(a)&&(o.mode=a?"hide":"none"),void 0!==i.customTickValues&&(t.customMinorTicks=t.minorTick.customTickValues),void 0!==i.tickInterval&&(t.minorTickInterval=t.minorTick.tickInterval),t.customMinorTicks?i.showCalculatedTicks=void 0===i.showCalculatedTicks||i.showCalculatedTicks:i.showCalculatedTicks=!1,t.label.indentFromAxis=0,t.isHorizontal=!e._area.vertical,t.axisDivisionFactor=e._gridSpacingFactor,t.minorAxisDivisionFactor=z,t.numberMultipliers=N,t.tickOrientation=e._getTicksOrientation(t),t.label.useRangeColors&&(t.label.customizeColor=function(){return e._rangeContainer.getColorForValue(this.value)}),t.label.overlappingBehavior=o,t},_renderScale:function(e){var t=this,n=t._translator.getDomain(),i=n[0],o=n[1],a=t._translator.getCodomain(),r=i>o,s=O(i,o),l=M(i,o);e.min=s,e.max=l,e.startAngle=F-a[0],e.endAngle=F-a[1],e.skipViewportExtending=!0,t._scale.updateOptions(e),t._scale.setBusinessRange(new S.Range({axisType:"continuous",dataType:"numeric",minVisible:s,maxVisible:l,invert:r})),t._updateScaleTickIndent(e),t._scaleGroup.linkAppend(),t._scale.draw(w({},t._canvas))},_updateIndicatorSettings:function(e){var t=this;e.currentValue=e.baseValue=A(t._translator.translate(e.baseValue))?B(e.baseValue):t._baseValue,e.vertical=t._area.vertical,!e.text||e.text.format||e.text.precision||(e.text.format=t._defaultFormatOptions)},_prepareIndicatorSettings:function(e,t){var n=this,i=n._themeManager.theme("valueIndicators"),o=D(e.type||n._themeManager.theme(t)),a=P(!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 _({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&&(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=[];te){for(t=e,n=r;tn&&(e=e.substr(0,n));e.length>t&&"0"===e.slice(-1);)e=e.substr(0,e.length-1);for(;e.length0||f,_=p[g?0:1];r(_)&&(n=100*n),g||(n=-n);var m=h(_),x=[_.substr(0,m),_.substr(m+1)],w=l(x[1]),y=w+s(x[1]),C=l(x[0]),k=s(x[0])?void 0:C,S=Math.floor(n).toString().length,I=v(y,0,b-S),T=i(x[0]).reverse(),D=n.toFixed(I<0?0:I).split("."),E=c(a(D[0]),C,k),A=c(D[1],w,y);E=d(E,T,t.thousandsSeparator);var B=a(u(a(x[0]),E)),O=y?u(x[1],A):"",M=B+(O.match(/\d/)?t.decimalSeparator:"")+O;return M}}function f(e,t,n){var i=(t?.01:1)*parseFloat(e)||0;return n?-i:i}function g(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(f(s,n)),s=i?"1"+s:s+"1",r=t(f(s,n));while(a!==r&&(i?a.length===r.length:a.length<=r.length));if(i&&r.length>a.length){var l=t(12345).indexOf("12345")===-1;do e="1"+e;while(l&&f(e,n)<1e5)}return e}function _(e,t,n,i){var o=t(f(e,n,i)),a=e.split("."),r=a[0]+".3"+a[1].slice(1),s=f(r,n,i),l=t(s).indexOf("3")-1;return o=o.replace(/(\d)\D(\d)/g,"$1,$2"),l>=0&&(o=o.slice(0,l)+"."+o.slice(l+1)),o=o.replace(/1+/,"1").replace(/1/g,"#"),n||(o=o.replace("%","'%'")),o}function m(e){var t=".",n=e(1).indexOf("100")>=0;t=g(t,e,n,!0),t=g(t,e,n,!1);var i=_(t,e,n,!1),o=_(t,e,n,!0);return o==="-"+i?i:i+";"+o}var v=n(34).fitIntoRange,x={thousandsSeparator:",",decimalSeparator:"."},w="'",b=15;t.getFormatter=p,t.getFormat=m},function(e,t,n){var i=n(2),o=n(17),a=n(1),r=n(75),s=n(13),l={},c=function(e,t){l[e]=t},d=function(e){e=i(e);var t=e.length&&e[0].nodeName.toLowerCase();return"script"===t?e.html():(e=i("
").append(e),e.html())};c("default",{compile:function(e){return s.normalizeTemplateElement(e)},render:function(e,t,n,i){return i?e:e.clone()}}),c("jquery-tmpl",{compile:function(e){return d(e)},render:function(e,t){return jQuery.tmpl(e,t)}}),c("jsrender",{compile:function(e){return(jQuery?jQuery:jsrender).templates(d(e))},render:function(e,t){return e.render(t)}}),c("mustache",{compile:function(e){return d(e)},render:function(e,t){return Mustache.render(e,t)}}),c("hogan",{compile:function(e){return Hogan.compile(d(e))},render:function(e,t){return e.render(t)}}),c("underscore",{compile:function(e){return _.template(d(e))},render:function(e,t){return e(t)}}),c("handlebars",{compile:function(e){return Handlebars.compile(d(e))},render:function(e,t){return e(t)}}),c("doT",{compile:function(e){return doT.template(d(e))},render:function(e,t){return e(t)}});var u,h=function(e){if(a.isString(e)){if(u=l[e],!u)throw o.Error("E0020",e)}else u=e};h("default");var p=r.inherit({ctor:function(e){this._element=e,this._compiledTemplate=u.compile(e)},_renderCore:function(e){return i("
").append(u.render(this._compiledTemplate,e.model,e.index,e.transclude)).contents()},source:function(){return i(this._element).clone()}});e.exports=p,e.exports.setTemplateEngine=h},function(e,t,n){var i=n(4).getKeyHash,o=n(4).equalByValue,a=n(1),r=function(e,t){this.getLocalFilter=function(e,t,n){return t=void 0===t?o:t,s.bind(this,t,e,n)},this.getExpr=function(n){if(n){var i;return e.forEach(function(e,o){i=i||[];var r;o>0&&i.push(t?"and":"or"),r=a.isString(n)?l(n,e):c(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=[],o.push(i),o.push(n)):o=n),o};var n,r=function(e){if(!n){n={};for(var t=0;t":"=",n]},c=function(e,n){for(var i=[],o=0,a=e.length;o0&&i.push(t?"or":"and"),i.push(c)}return i}};t.SelectionFilterCreator=r},function(e,t,n){var i=n(2),o=n(6).getWindow(),a=n(5),r=n(115),s=n(1).isFunction,l=n(76),c=n(13),d=n(3).each,u=n(73),h=n(0).extend,p=n(1).isPlainObject,f=n(14),g=n(20),_=n(21),m=n(15),v=n(60),x=n(29),w=n(7).Deferred,b={text:"OK",onClick:function(){return!0}},y="dx-dialog",C=y+"-wrapper",k=y+"-root",S=y+"-content",I=y+"-message",T=y+"-buttons",D=y+"-button",E=r.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%"}},{device:function(e){return!e.phone&&g.isWin8()},options:{width:function(){return i(o).width()}}},{device:function(e){return e.phone&&g.isWin8()},options:{position:{my:"top center",at:"top center",of:o,offset:"0 0"}}}])}});t.FakeDialogComponent=E,t.title="",t.custom=function(e){function n(){return M.show(),p.promise()}function r(e){p.resolve(e),M.hide().done(function(){M.$element().remove()})}var p=new w,g=(new E).option();e=h(g,e);var m=i("
").addClass(y).appendTo(u.value()),A=i("
").addClass(I).html(String(e.message)),B=[],O=e.toolbarItems;O?_.log("W0001","DevExpress.ui.dialog","toolbarItems","16.2","Use the 'buttons' option instead"):O=e.buttons,d(O||[b],function(){var e=new l(this.onClick,{context:M});B.push({toolbar:"bottom",location:f.current().android?"after":"center",widget:"dxButton",options:h({},this,{onClick:function(){var t=e.execute(arguments);r(t)}})})});var M=new v(m,{title:e.title||t.title,showTitle:function(){var t=void 0===e.showTitle||e.showTitle;return t}(),height:"auto",width:function(){var t=i(o).height()>i(o).width(),n=(t?"p":"l")+"Width",a=e.hasOwnProperty(n)?e[n]:e.width;return s(a)?a():a},showCloseButton:e.showCloseButton||!1,focusStateEnabled:!1,onContentReady:function(e){e.component.$content().addClass(S).append(A)},onShowing:function(e){e.component.bottomToolbar().addClass(T).find(".dx-button").addClass(D),c.resetActiveElement()},onShown:function(e){var t=e.component.bottomToolbar().find(".dx-button").first();a.trigger(t,"focus")},onHiding:function(){p.reject()},toolbarItems:B,animation:{show:{type:"pop",duration:400},hide:{type:"pop",duration:400,to:{opacity:0,scale:0},from:{opacity:1,scale:1}}},rtlEnabled:x().rtlEnabled,boundaryOffset:{h:10,v:0}});return M._wrapper().addClass(C),e.position&&M.option("position",e.position),M._wrapper().addClass(k),{show:n,hide:r}},t.alert=function(e,n,i){var o=p(e)?e:{title:n,message:e,showTitle:i};return t.custom(o).show()},t.confirm=function(e,n,i){var o=p(e)?e:{title:n,message:e,showTitle:i,buttons:[{text:m.format("Yes"),onClick:function(){return!0}},{text:m.format("No"),onClick:function(){return!1}}]};return t.custom(o).show()}},function(e,t,n){var i=n(2),o=n(0).extend,a=n(15),r=n(98),s=n(21);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("
").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");clearTimeout(e._valueChangeTimeout),t.event&&"input"===t.event.type&&n?e._valueChangeTimeout=setTimeout(function(){e.option("searchValue",t.value)},n):e.option("searchValue",t.value)}},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()}}},function(e,t,n){var i=n(81).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){function i(e){var t=r.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}function o(e){var t=!0;return e=e.replace(/xmlns="[\s\S]*?"/gi,function(e){return t?(t=!1,e):""}),e.replace(/xmlns:NS1="[\s\S]*?"/gi,"").replace(/NS1:xmlns:xlink="([\s\S]*?)"/gi,'xmlns:xlink="$1"')}function a(e){return e.replace(/"/gi,""").replace(/&/gi,"&").replace(/'/gi,"'").replace(/</gi,"<").replace(/>/gi,">").replace(/ /gi," ").replace(/­/gi,"­")}var r=n(12);t.getSvgMarkup=function(e){return o(a(i(e)))}},function(e,t,n){var i=n(10),o=n(346),a=n(347),r=n(0).extend,s=n(4).noop,l=n(1).isDefined,c=n(7).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 c).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){var o=this;return e=e||[],e=Array.isArray(e)?e:[e],o.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||{},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},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=!1,a=this.options.keyOf,r=t[this._focusedItemIndex],s=this.options.getItemData(r),c=a(s),d=r&&this.isItemSelected(c);l(this._shiftFocusedItemIndex)||(this._shiftFocusedItemIndex=this._focusedItemIndex);var u,h;if(this._shiftFocusedItemIndex!==this._focusedItemIndex)for(n=this._focusedItemIndex"),t.html&&e.html(t.html),"dxButton"===t.widget){if(t.options){var i=this.option("useFlatButtons")?S:"";if(t.options.elementAttr){var o=t.options.elementAttr.class;o&&(o=o.replace(S,""),i+=" "+o)}var a=c(t.options.elementAttr||{},{"class":i});t.options=c(t.options,{elementAttr:a})}this.option("useDefaultButtons")&&(t.options=t.options||{},t.options.type=t.options.type||I)}}else e.text(String(t));this._getTemplate("dx-polymorph-widget").render({container:e,model:n})}.bind(this),["text","html","widget","options"],this.option("integrationOptions.watchMethod"));this._defaultTemplates.item=e,this._defaultTemplates.menuItem=e},_getDefaultOptions:function(){return c(this.callBase(),{renderAs:"topToolbar",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,"."+g,"."+_].join(","))},_itemClass:function(){return x},_itemDataKey:function(){return T},_buttonClass:function(){return b},_dimensionChanged:function(){this._arrangeItems()},_initMarkup:function(){this._renderToolbar(),this._renderSections(),this.callBase(),this.setAria("role","toolbar")},_render:function(){this.callBase(),this._arrangeItems()},_renderToolbar:function(){this.$element().addClass(p).toggleClass(m,"bottomToolbar"===this.option("renderAs")),this._$toolbarItemsContainer=i("
").addClass(y).appendTo(this.$element())},_renderSections:function(){var e=this._$toolbarItemsContainer,t=this;d(["before","center","after"],function(){var n="dx-toolbar-"+this,o=e.find("."+n);o.length||(t["_$"+this+"Section"]=o=i("
").addClass(n).appendTo(e))})},_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(k).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(_)?0:n.width,c=0;a.children().not(k).each(function(){c+=i(this).outerWidth()});var d=e-c,u=Math.max(d-s-l,0);if(a.hasClass(f))this._alignSection(this._$beforeSection,u);else{var h=o.outerWidth()-o.width();o.css("maxWidth",u-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(k),i=n.toArray();t-=this._getCurrentLabelsPaddings(i);var o=this._getCurrentLabelsWidth(i),a=Math.abs(o-t);t").addClass(C),r=n.location||"center";o.length&&(d(o,function(t,n){e._renderItem(t,n,a,null)}),e._$toolbarItemsContainer.find(".dx-toolbar-"+r).append(a))})},_renderItems:function(e){var t=e.length&&e[0].items;t?this._renderGroupedItems():this.callBase(e)},_getToolbarItems:function(){return this.option("items")||[]; },_renderContentImpl:function(){var e=this._getToolbarItems();this.$element().toggleClass(v,0===e.length),this._renderedItemsCount?this._renderItems(e.slice(this._renderedItemsCount)):this._renderItems(e)},_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){var t=e.name;switch(t){case"width":this.callBase.apply(this,arguments),this._dimensionChanged();break;case"renderAs":case"useFlatButtons":case"useDefaultButtons":this._invalidate();break;default:this.callBase.apply(this,arguments)}}});s("dxToolbarBase",D),e.exports=D},function(e,t,n){var i=n(2),o=n(6).getWindow(),a=n(12),r=n(5),s=n(50).add,l=n(4),c=n(1),d=n(0).extend,u=n(11).inArray,h=n(25),p=n(8),f=n(70),g=n(20),_="dx-toast",m=_+"-",v=m+"wrapper",x=m+"content",w=m+"message",b=m+"icon",y="dxToast",C=["info","warning","error","success"],k=[],S=8e3,I=null,T={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=k.length-1;t>=0;t--)if(!k[t]._proxiedDocumentDownHandler(e))return})});var D=f.inherit({_getDefaultOptions:function(){return d(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("
").addClass(w).text(this.option("message")).appendTo(this.$content())),this.setAria("role","alert",this._message),u(this.option("type").toLowerCase(),C)>-1&&this.$content().prepend(i("
").addClass(b)),this.callBase()},_render:function(){this.callBase(),this.$element().addClass(_),this._wrapper().addClass(v),this._$content.addClass(m+String(this.option("type")).toLowerCase()),this.$content().addClass(x),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(c.isString(this.option("position"))){var e=this.option("position").split(" ")[0],t=this.option("position").split(" ")[1];switch(this.option("position",d({},T[e])),t){case"center":case"left":case"right":this.option("position").at+=" "+t,this.option("position").my+=" "+t}}},_show:function(){return I&&I!==this&&(clearTimeout(I._hideTimeout),I.hide()),I=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 I=null,this.callBase.apply(this,arguments)},_overlayStack:function(){return k},_zIndexInitValue:function(){return this.callBase()+S},_dispose:function(){clearTimeout(this._hideTimeout),I=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(y,D),e.exports=D},function(e,t,n){var i=n(8),o=n(451);i("dxTextEditor",o),e.exports=o},function(e,t,n){var i=n(2),o=n(1).isDefined,a=n(30),r=n(12),s=a.msie||a.safari,l=function(e){return d(e)?u(e):{start:e.selectionStart,end:e.selectionEnd}},c=function(e,t){return d(e)?void h(e,t):void(r.getBody().contains(e)&&(e.selectionStart=t.start,e.selectionEnd=t.end))},d=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}},h=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()}},p=function(e,t){return e=i(e).get(0),o(t)?void(s&&r.getActiveElement()!==e||c(e,t)):l(e)};e.exports=p},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(125),s=r.abstract,l=n(9),c=n(25),d=n(96),u="dxListEditDecorator",h=l.addNamespace(c.down,u),p=l.addNamespace(d.active,u),f="dx-list-item-content",g="dx-list-switchable-delete-ready",_="dx-list-switchable-menu-shield-positioning",m="dx-list-switchable-delete-top-shield",v="dx-list-switchable-delete-bottom-shield",x="dx-list-switchable-menu-item-shield-positioning",w="dx-list-switchable-delete-item-content-shield",b=r.inherit({_init:function(){this._$topShield=i("
").addClass(m),this._$bottomShield=i("
").addClass(v),this._$itemContentShield=i("
").addClass(w),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(g)},_toggleShields:function(e,t){this._list.$element().toggleClass(_,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,a=e.outerHeight(),r=o-n,s=i-a-r;this._$topShield.height(Math.max(r,0)),this._$bottomShield.height(Math.max(s,0))},_toggleContentShield:function(e,t){t?e.find("."+f).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,c.up)):(this._forgetDeleteReady(e),this._animateForgetDeleteReady(e).done(this._disablePositioning.bind(this,e)))},_enablePositioning:function(e){e.addClass(x),o.on(e,p,a),o.one(e,c.up,this._disablePositioning.bind(this,e))},_disablePositioning:function(e){e.removeClass(x),o.off(e,p)},_prepareDeleteReady:function(e){e.addClass(g)},_forgetDeleteReady:function(e){e.removeClass(g)},_animatePrepareDeleteReady:s,_animateForgetDeleteReady:s,_deleteItem:function(e){e=e||this._$readyToDeleteItem,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=b},function(e,t,n){var i={_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"]})}};e.exports=i},function(e,t,n){var i=n(2),o=n(12),a=n(5),r=n(50).add,s=n(24),l=n(28),c=n(9),d=n(4),u=n(1).isPlainObject,h=n(0).extend,p=n(25),f="dxScrollbar",g="dx-scrollable-scrollbar",_=g+"-active",m="dx-scrollable-scroll",v="dx-scrollable-scroll-content",x="dx-scrollbar-hoverable",w="horizontal",b=15,y={onScroll:"onScroll",onHover:"onHover",always:"always",never:"never"},C=l.inherit({_getDefaultOptions:function(){return h(this.callBase(),{direction:null,visible:!1,activeStateEnabled:!1,visibilityMode:y.onScroll,containerSize:0,contentSize:0,expandable:!0,scaleRatio:1})},_init:function(){this.callBase(),this._isHovered=!1},_initMarkup:function(){this._renderThumb(),this.callBase()},_render:function(){this.callBase(),this._renderDirection(),this._update(),this._attachPointerDownHandler(),this.option("hoverStateEnabled",this._isHoverMode()),this.$element().toggleClass(x,this.option("hoverStateEnabled"))},_renderThumb:function(){this._$thumb=i("
").addClass(m),i("
").addClass(v).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.onHover||e===y.always)&&this.option("expandable")},_renderDirection:function(){var e=this.option("direction");this.$element().addClass("dx-scrollbar-"+e),this._dimension=e===w?"width":"height",this._prop=e===w?"left":"top"},_attachPointerDownHandler:function(){a.on(this._$thumb,c.addNamespace(p.down,f),this.feedbackOn.bind(this))},feedbackOn:function(){this.$element().addClass(_),k=this},feedbackOff:function(){this.$element().removeClass(_),k=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")===y.onScroll&&this._$thumb.css("opacity"),e=this._adjustVisibility(e),this.option().visible=e,this._$thumb.toggleClass("dx-state-invisible",!e)},_adjustVisibility:function(e){if(this.containerToContentRatio()&&!this._needScrollbar())return!1;switch(this.option("visibilityMode")){case y.onScroll:break;case y.onHover:e=e||!!this._isHovered;break;case y.never:e=!1;break;case y.always:e=!0}return e},moveTo:function(e){if(!this._isHidden()){u(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),b));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")===y.never},_needScrollbar:function(){return!this._isHidden()&&this._containerToContentRatio<1},containerToContentRatio:function(){return this._containerToContentRatio},_normalizeSize:function(e){return u(e)?e[this._dimension]||0:e},_clean:function(){this.callBase(),this===k&&(k=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:d.deferRenderer(function(){this._adjustVisibility()&&this.option("visible",!0)})}),k=null;r(function(){a.subscribeGlobal(o.getDocument(),c.addNamespace(p.up,f),function(){k&&k.feedbackOff()})}),e.exports=C},function(e,t,n){var i,o,a=n(2),r=n(12),s=n(5),l=Math,c=n(36).titleize,d=n(0).extend,u=n(6),h=n(3),p=n(24),f=n(10),g=n(273),_=n(14),m=n(9),v=n(4),x=n(271),w=n(7),b=w.when,y=w.Deferred,C=_.real,k="win"===C.platform||"android"===C.platform,S="dxSimulatedScrollable",I="dxScrollableStrategy",T=S+"Cursor",D=S+"Keyboard",E="dx-scrollable-simulated",A="dx-scrollable-scrollbars-hidden",B="dx-scrollable-scrollbars-alwaysvisible",O="dx-scrollable-scrollbar",M="vertical",P="horizontal",R=k?.95:.92,V=.5,F=1,L=l.round(1e3/60),H=20,z=F/5,N=k?300:400,$=N/L,W=(1-l.pow(R,$))/(1-R),G={PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40},q=g.inherit({ctor:function(e){this.callBase(),this.scroller=e},VELOCITY_LIMIT:F,_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()?R:V},_complete:function(){this.scroller._scrollComplete()},_stop:function(){this.scroller._stopComplete()}}),j=q.inherit({VELOCITY_LIMIT:z,_isFinished:function(){return this.scroller._crossBoundOnNextStep()||this.callBase()},_acceleration:function(){return R},_complete:function(){this.scroller._move(this.scroller._bounceLocation),this.callBase()}}),K=function(e){return"dxmousewheel"===e.type},U=f.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===P?"x":"y",this._prop=e.direction===P?"left":"top",this._dimension=e.direction===P?"width":"height",this._scrollProp=e.direction===P?"scrollLeft":"scrollTop",h.each(e,function(e,t){this["_"+e]=t}.bind(this))},_initAnimators:function(){this._inertiaAnimator=new q(this),this._bounceAnimator=new j(this)},_initScrollbar:function(){this._scrollbar=new x(a("
").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 e===!0?"onScroll":e===!1?"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(u.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){var n="offset"+c(t);return e[n]},_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 p.resetPosition(this._$content):void p.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(),t=e-this._location;this._velocity=t/W},_inBounds:function(e){return e=void 0!==e?e:this._location,this._boundLocation(e)===e},_crossBoundOnNextStep:function(){var e=this._location,t=e+this._velocity;return e=this._minOffset||e>this._maxOffset&&t<=this._maxOffset},_initHandler:function(e){return this._stopDeferred=new y,this._stopScrolling(),this._prepareThumbScrolling(e),this._stopDeferred.promise()},_stopScrolling:v.deferRenderer(function(){this._hideScrollbar(),this._inertiaAnimator.stop(),this._bounceAnimator.stop()}),_prepareThumbScrolling:function(e){if(!K(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*=V),this._scrollStep(e)},_scrollByHandler:function(e){this._scrollBy(e),this._scrollComplete()},_containerToContentRatio:function(){return this._scrollbar.containerToContentRatio()},_endHandler:function(e){return this._completeDeferred=new y,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(),v.deferUpdate(function(){e._resetScaleRatio(),e._updateLocation(),e._updateBounds(),e._updateScrollbar(),v.deferRender(function(){e._moveScrollbar(),e._scrollbar.update()})})},_resetScaleRatio:function(){this._scaleRatio=null},_updateLocation:function(){this._location=(p.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:v.deferUpdater(function(){var e=this,t=e._containerSize(),n=e._contentSize();v.deferRender(function(){e._scrollbar.option({containerSize:t,contentSize:n,scaleRatio:e._getScaleRatio()})})}),_moveToBounds:v.deferRenderer(v.deferUpdater(v.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"+c(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:v.noop}),Y=f.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(P)&&this._createScroller(P),this._isDirection(M)&&this._createScroller(M),this._$element.toggleClass(B,"always"===this.option("showScrollbar")),this._$element.toggleClass(A,!this.option("showScrollbar"))},_createScroller:function(e){this._scrollers[e]=new U(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)}},_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 K(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[P]=e,this._validDirections[M]=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[P],e.y*=this._validDirections[M]},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,m.addNamespace("keydown",D),this._keyDownHandler.bind(this))},_keyDownHandler:function(e){if(this._$container.is(r.getActiveElement())){var t=!0;switch(e.keyCode){case G.DOWN:this._scrollByLine({y:1});break;case G.UP:this._scrollByLine({y:-1});break;case G.RIGHT:this._scrollByLine({x:1});break;case G.LEFT:this._scrollByLine({x:-1});break;case G.PAGE_DOWN:this._scrollByPage(1);break;case G.PAGE_UP:this._scrollByPage(-1);break;case G.HOME:this._scrollToHome();break;case G.END:this._scrollToEnd();break;default:t=!1}t&&(e.stopPropagation(),e.preventDefault())}},_scrollByLine:function(e){this.scrollBy({top:(e.y||0)*-H,left:(e.x||0)*-H})},_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"},_scrollToHome:function(){var e=this._wheelProp(),t={};t[e]=0,this._component.scrollTo(t)},_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(d(t._createActionArgs(),arguments))}},_createActionArgs:function(){var e=this._scrollers[P],t=this._scrollers[M],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 b.apply(a,n).promise()},location:function e(){var e=p.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,m.addNamespace("mouseenter",T),this._cursorEnterHandler.bind(this)),s.on(this._$element,m.addNamespace("mouseleave",T),this._cursorLeaveHandler.bind(this)))},_isHoverMode:function(){return"onHover"===this.option("showScrollbar")},_cursorEnterHandler:function(e){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),n=t.closest("."+E+":not(.dx-state-disabled)"),r=n.length&&n.data(I);i&&i!==r&&i._cursorLeaveHandler(),r&&r._cursorEnterHandler()}},update:function(){var e=this,t=this._eventHandler("update").done(this._updateAction);return b(t,v.deferUpdate(function(){var t=e._allowedDirections();return v.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)}),b().promise()}))},_allowedDirections:function(){var e=this.option("bounceEnabled"),t=this._scrollers[M],n=this._scrollers[P];return{vertical:t&&(t._minOffset<0||e),horizontal:n&&(n._minOffset<0||e)}},updateBounds:function(){this._scrollers[P]&&this._scrollers[P]._updateBounds()},scrollBy:function(e){var t=this._scrollers[M],n=this._scrollers[P];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")||(K(e)?this._validateWheel(e):this._validateMove(e)))},_validateWheel:function(e){var t=this._scrollers[this._wheelDirection(e)],n=t._reachedMin(),i=t._reachedMax(),o=!n||!i,a=!n&&!i,r=n&&e.delta>0,s=i&&e.delta<0;return o&&(a||r||s)},_validateMove:function(e){return!(!this.option("scrollByContent")&&!a(e.target).closest("."+O).length)&&this._allowedDirection()},getDirection:function(e){return K(e)?this._wheelDirection(e):this._allowedDirection()},_wheelProp:function(){return this._wheelDirection()===P?"left":"top"},_wheelDirection:function(e){switch(this.option("direction")){case P:return P;case M:return M;default:return e&&e.shiftKey?P:M}},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._gestureEndTimer)},_detachEventHandlers:function(){s.off(this._$element,"."+T),s.off(this._$container,"."+D)}});t.SimulatedStrategy=Y,t.Scroller=U},function(e,t,n){var i=n(4).noop,o=n(10),a=o.abstract,r=n(105),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){var i=n(246),o=n(188),a=n(23),r=n(4),s=n(1).isFunction,l=n(0).extend,c=n(15),d=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=e.toolbarItems,n=this.dateBox.option("buttonsLocation"),i=[];return i="default"!==n?r.splitPair(n):["bottom","center"],"useButtons"===this.dateBox.option("applyValueMode")&&t.unshift({widget:"dxButton",toolbar:i[0],location:"after"===i[1]?"before":i[1],options:{onClick:function(){this._widget._toTodayView()}.bind(this),text:c.format("dxCalendar-todayButtonText"),type:"today"}}),l(!0,e,{toolbarItems:t,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=d},function(e,t,n){var i=n(2),o=n(211),a=n(0).extend,r=n(1).isFunction,s=n(8),l="dx-progressbar",c="dx-progressbar-container",d="dx-progressbar-range-container",u="dx-progressbar-range",h="dx-progressbar-wrapper",p="dx-progressbar-status",f="dx-progressbar-animating-container",g="dx-progressbar-animating-segment",_=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(l),this._$wrapper.addClass(h),this._$bar.addClass(c),this.setAria("role","progressbar"),i("
").addClass(d).appendTo(this._$wrapper).append(this._$bar),this._$range.addClass(u),this._toggleStatus(this.option("showStatus"))},_createCompleteAction:function(){this._completeAction=this._createActionByOption("onComplete")},_renderStatus:function(){this._$status=i("
").addClass(p)},_renderIndeterminateState:function(){this._$segmentContainer=i("
").addClass(f);for(var e=this.option("_animatingSegmentCount"),t=0;t").addClass(g).addClass(g+"-"+(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"),t=e.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 n="dx-position-"+t[0];t[1]&&(n+="-"+t[1]),this._$wrapper.addClass(n)},_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");e=r(e)?e.bind(this):function(e){return e};var t=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",_),e.exports=_},function(e,t,n){var i=n(2),o=n(5),a=n(4),r=n(1),s=n(21),l=n(6),c=l.getWindow(),d=n(3),u=n(0).extend,h=n(8),p=n(187),f=n(44),g="dx-responsivebox",_=g+"-screen-",m="dx-box-item",v="dxBoxItemData",x=1920,w=f.inherit({_getDefaultOptions:function(){return u(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 m},_itemDataKey:function(){return v},_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(),d.each(this._rows,function(){var t=[];e.push(t),d.each(this._cols,function(){t.push(this._createEmptyCell())}.bind(this))}.bind(this))},_prepareRowsAndCols:function(){this._isSingleColumnScreen()?(this._prepareSingleColumnScreenItems(),this._rows=this._defaultSizeConfig(this._screenItems.length),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}),d.each(this._screenItems,function(e,t){u(t.location,{row:e,col:0,rowspan:1,colspan:1})})},_sizesByScreen:function(e){return d.map(this._filterByScreen(e),function(e){return u(this._defaultSizeConfig(),e)}.bind(this))},_defaultSizeConfig:function(e){var t={ratio:1,baseSize:0,minSize:0,maxSize:0};if(!arguments.length)return t;for(var n=[],i=0;i").appendTo(this._itemContainer()),this._createComponent(this._$root,p,o)}},_rootBoxConfig:function(e){var t=d.each(e,function(e,t){this._needApplyAutoBaseSize(t)&&u(t,{baseSize:"auto"})}.bind(this));return u({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 u(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&&(u(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;sh&&(r+=u-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={ratio:0,baseSize:0,minSize:0,maxSize: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}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._cleanUnusedRoots(),this.callBase.apply(this,arguments)},_cleanUnusedRoots:function(){this._assistantRoots&&d.each(this._assistantRoots,function(e,t){i(t).remove()})},_clearItemNodeTemplates:function(){d.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",w),e.exports=w},function(e,t,n){var i=n(2),o=n(42),a=n(0).extend,r=n(14),s=n(8),l=n(278),c=n(193),d=n(106),u=n(13).getPublicElement,h=n(65),p=n(6),f="dx-tabpanel",g="dx-tabpanel-tabs",_="dx-tabpanel-container",m="dx-tab-text",v=l.inherit({_getDefaultOptions:function(){return a(this.callBase(),{itemTitleTemplate:"title",hoverStateEnabled:!0,showNavButtons:!1,scrollByContent:!0,scrollingEnabled:!0,onTitleClick:null,onTitleHold:null,onTitleRendered:null})},_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(f),this.setAria("role","tabpanel")},_initMarkup:function(){this.callBase(),this._createTitleActions(),this._renderLayout()},_initTemplates:function(){this.callBase(),this._defaultTemplates.title=new h(function(e,t){e.text(t.title||String(t));var n=d.getImageContainer(t.icon);e.wrapInner(i("").addClass(m)),n&&n.prependTo(e)},["title","html","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("
").addClass(g).appendTo(e);var t=i("
").appendTo(this._$tabContainer);this._tabs=this._createComponent(t,c,this._tabConfig()),this._$container=i("
").addClass(_).appendTo(e),this._$container.append(this._$wrapper),this._updateLayout()}},_updateLayout:function(){if(p.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"),tabIndex:this.option("tabIndex"),selectedIndex:this.option("selectedIndex"),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",u(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())},_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._tabs.repaint(),this.callBase(e);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",u(r)),this.callBase(e),this._tabs.focus();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;default:this.callBase(e)}},_clean:function(){clearTimeout(this._resizeEventTimer),this.callBase()}});s("dxTabPanel",v),e.exports=v},function(e,t,n){var i=n(2),o=n(31),a=n(24),r=n(34),s=n(0).extend,l=n(4).noop,c=n(1).isDefined,d=n(14),u=n(13).getPublicElement,h=n(8),p=n(44),f=n(114),g=n(7).Deferred,_="dx-multiview",m="dx-multiview-wrapper",v="dx-multiview-item-container",x="dx-multiview-item",w="dx-multiview-item-hidden",b="dxMultiViewItemData",y=200,C=function(e){return+e},k=function(e){return a.locate(e).left},S=function(e,t){a.move(e,{left:t})},I={moveTo:function(e,t,n,i){o.animate(e,{type:"slide",to:{left:t},duration:n,complete:i})},complete:function(e){o.stop(e,!0)}},T=p.inherit({_activeStateUnit:"."+x,_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 x},_itemDataKey:function(){return b},_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(_),this._$wrapper=i("
").addClass(m),this._$wrapper.appendTo(e),this._$itemContainer=i("
").addClass(v),this._$itemContainer.appendTo(this._$wrapper),this.option("loopItemFocus",this.option("loop")),this._initSwipeable()},_initMarkup:function(){this._deferredItems=[],this.callBase()},_renderItemContent:function(e){var t=new g,n=this,i=this.callBase,o=new g;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=-this._animationDirection(t,e),o=n.eq(e);S(o,0),S(n.eq(t),100*i+"%")},_updateItemsVisibility:function(e,t){var n=this._itemElements();n.each(function(n,o){var a=i(o),r=n!==e&&n!==t;r||this._renderSpecificItem(n),a.toggleClass(w,r),this.setAria("hidden",r||void 0,a)}.bind(this))},_renderSpecificItem:function(e){var t=this._itemElements().eq(e).find(this._itemContentClass()).length>0;c(e)&&!t&&this._deferredItems[e].resolve()},_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];I.complete(this._$itemContainer),this._updateItems(i,n);var o=this._animationDirection(n,i);this._animateItemContainer(o*this._itemWidth(),function(){S(this._$itemContainer,0),this._updateItems(n),this._$itemContainer.width()}.bind(this))},_animateItemContainer:function(e,t){var n=this.option("animationEnabled")?y:0;I.moveTo(this._$itemContainer,e,n,t)},_animationDirection:function(e,t){var n=k(this._$itemContainer),i=(t-e)*this._getRTLSignCorrection()*this._getItemFocusLoopSignCorrection(),o=0!==n,a=o?n:i;return r.sign(a)},_initSwipeable:function(){this._createComponent(this.$element(),f,{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){I.complete(this._$itemContainer);var t=this.option("selectedIndex"),n=this.option("loop"),i=this._itemsCount()-1,o=this.option("rtlEnabled");e.maxLeftOffset=C(n||(o?t>0:t0)),this._swipeDirection=null},_swipeUpdateHandler:function(e){var t=e.offset,n=r.sign(t)*this._getRTLSignCorrection();if(S(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",u(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":f.getInstance(this.$element()).option("disabled",!t);break;case"deferRendering":this._invalidate();break;default:this.callBase(e)}}});h("dxMultiView",T),e.exports=T},function(e,t,n){var i=n(2),o=n(146),a="dx-tabs-item-badge",r="dx-badge",s=o.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this))},_renderBadge:function(e){if(this._$element.children("."+r).remove(),e){var t=i("
").addClass(a).addClass(r).text(e);this._$element.append(t)}}});e.exports=s},function(e,t,n){var i=n(2),o=n(8),a=n(58),r=n(212),s=n(89),l=n(192),c="dx-validationgroup",d=a.inherit({_getDefaultOptions:function(){return this.callBase()},_init:function(){this.callBase()},_initMarkup:function(){var e=this.$element();e.addClass(c),e.find(".dx-validator").each(function(e,t){l.getInstance(i(t))._initGroupRegistration()}),e.find(".dx-validationsummary").each(function(e,t){r.getInstance(i(t))._initGroupRegistration()}),this.callBase()},validate:function(){return s.validateGroup(this)},reset:function(){return s.resetGroup(this)},_optionChanged:function(e){switch(e.name){default:this.callBase(e)}},_dispose:function(){s.removeGroup(this),this.$element().removeClass(c),this.callBase()}});o("dxValidationGroup",d),e.exports=d},function(e,t,n){var i=n(99),o=n(10),a=n(3).map,r=n(1),s=n(9),l=r.isPlainObject,c=r.isNumeric,d=o.abstract,u=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:d,updateDimensions:d,updateMapType:d,updateBounds:d,updateCenter:d,updateZoom:d,updateControls:d,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?t:e)})}.bind(this))}.bind(this))},addMarkers:d,removeMarkers:d,adjustViewport:d,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?t:e)})}.bind(this))}.bind(this))},addRoutes:d,removeRoutes:d,clean:d,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)&&c(e.lat)&&c(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=u},function(e,t,n){var i=n(99),o=n(0).extend,a=n(3),r=n(281),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(509)},function(e,t,n){var i=n(2),o=n(28),a=n(196),r=n(24),s=n(77),l=n(34),c=n(1),d=n(0).extend,u=n(47),h="dx-slider",p="dx-slider-handle",f={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"}},g=o.inherit({_getDefaultOptions:function(){return d(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(p),this.setAria({role:"slider",valuenow:this.option("value")})},_render:function(){this._renderTooltip(),this.callBase(); },_renderTooltip:function(){this.option("tooltipEnabled")?(this._$tooltip||(this._$tooltip=i("
").appendTo(this.$element())),this._$slider=this.$element().closest("."+h),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"===c.type(e)&&(e=d({boundary:this._$slider,boundaryOffset:{h:1,v:1}},f[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"===c.type(e)&&(e=d({of:this.$element(),boundary:this._$slider,boundaryOffset:{h:2,v:1}},f[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 u.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){c.isDefined(e)&&c.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=g},function(e,t,n){var i=n(2),o=n(54),a=n(8),r=n(0).extend,s=n(129),l="dx-tooltip",c="dx-tooltip-wrapper",d=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(l),this._wrapper().addClass(c),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",d),e.exports=d},function(e,t,n){var i=n(2),o=n(0).extend,a=n(7).Deferred,r=n(213),s=n(24),l=n(135).hideCallback,c=n(31),d=n(70),u=n(185),h="dx-toolbar-list-visible",p="easeOutCubic",f=200,g=400,_=r.inherit({render:function(){this._renderListOverlay(),this.callBase(),this._changeListVisible(this._toolbar.option("visible"))},_renderWidget:function(){this._hasVisibleMenuItems()&&this.callBase()},_menuWidgetClass:function(){return u},_menuContainer:function(){return this._listOverlay.$content()},_menuButtonOptions:function(){return o({},this.callBase(),{activeStateEnabled:!1,text:"..."})},_widgetOptions:function(){return o({},this.callBase(),{width:"100%",indicateLoading:!1})},_renderListOverlay:function(){var e=i("
").appendTo(this._toolbar.$element());this._listOverlay=this._toolbar._createComponent(e,d,this._listOverlayConfig())},_listOverlayConfig:function(){return{container:!1,deferRendering:!1,shading:!1,height:"auto",width:"100%",showTitle:!1,closeOnOutsideClick:this._listOutsideClickHandler.bind(this),position:null,animation:null,closeOnBackButton:!1}},_listOutsideClickHandler:function(e){i(e.target).closest(this._listOverlay.$content()).length||this._toggleMenu(!1,!0)},_getListHeight:function(){var e=this._listOverlay.$content().find(".dx-list").height(),t=this._toolbar._$toolbarItemsContainer.height()-this._toolbar.$element().height();return e+t},_hideTopOverlayHandler:function(){this._toggleMenu(!1,!0)},_toggleHideTopOverlayCallback:function(){this._closeCallback&&l.remove(this._closeCallback),this._menuShown&&(this._closeCallback=this._hideTopOverlayHandler.bind(this),l.add(this._closeCallback))},_calculatePixelOffset:function(e){e=(e||0)-1;var t=this._getListHeight();return e*t},_renderMenuPosition:function(e,t){var n=this._calculatePixelOffset(e),i=this._listOverlay.$content();return t?this._animateMenuToggling(i,n,this._menuShown):(s.move(i,{top:n}),(new a).resolve().promise())},_animateMenuToggling:function(e,t,n){var i=n?g:f;return c.animate(e,{type:"slide",to:{top:t},easing:p,duration:i})},_toggleMenu:function(e,t){this.callBase.apply(this,arguments),this._toggleHideTopOverlayCallback(),this._renderMenuPosition(this._menuShown?0:1,t).done(function(){this._toolbar.$element().toggleClass(h,e)}.bind(this))},_changeListVisible:function(e){this._listOverlay&&(this._listOverlay.option("visible",e),this._toggleMenu(!1,!1))},handleToolbarVisibilityChange:function(e){this._changeListVisible(e)}});e.exports=_},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):e0?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("
")},_createTableElement:function(){return o("")},_getCellText:function(e,t){var n=e.isWhiteSpace?" ":e.text||" ";return!t||n.indexOf("<")===-1&&n.indexOf(">")===-1||(n=o("
").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"
"},_getCloseMainElementMarkup:function(){return""},_renderTableContent:function(e,t){var n,i,o,a,r,s,d,u,h=this,p=t.length,f=h.option("rtlEnabled"),g=[],_=h.option("encodeHtml"),m="colspan='",v="rowspan='";for(e.data("area",h._getAreaName()),e.data("data",t),e.css("width",""),g.push(h._getMainElementMarkup()),o=0;o"),l(i.expanded)&&x.push("
"),d=this._getCellText(i,_)}else d="";x.push(""+d+""),i.sorted&&x.push(""),x.push("")}u.length&&(g.push("class='"),g.push(u.join(" ")),g.push("'")),g.push(">"),g.push(x.join("")),g.push("")}g.push(this._getCloseMainElementMarkup()),e.append(g.join("")),this._triggerOnCellPrepared(e,t)},_triggerOnCellPrepared:function(e,t){var n,i,o,a,l,c,d,u=this,h=e.find("tr"),p=u._getAreaName(),f=u.option("onCellPrepared"),g=u.component.hasEvent("cellPrepared"),_=this.component._defaultActionArgs();if(f||g)for(c=0;c0?i:n.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=this,n=[],i=t.getRowsLength();for(e=0;e';this._colgroupElement.html(o),this._tableWidth=n,i.style.width=n+"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("
").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").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){e=n.cells;for(var i=0,o=e.length;i",I=m.HeaderFilterView.inherit({_getSearchExpr:function(e){return e.useDefaultSearchExpr=!0,this.callBase(e)}}),T=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())}),w.foreachTree(e,function(e){var t,a=e[0],r=w.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&&u(s,n)>-1||u(t,n)>-1,o)})},D=_.inherit(v).inherit(x).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 I(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;o(this._dataSource.state())===o(e.value)?(this._clean(!0),this._renderComponent()):this._dataSource.state(e.value);break;case"headerFilter":case"allowFieldDragging":this._invalidate();break;default:this.callBase(e)}},renderField:function(e,t){var n=this,o=a(S).addClass("dx-area-field-content").text(e.caption||e.dataField),r=a(S).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(),b,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)+k)})):n=a(S).addClass("dx-area-field").addClass("dx-area-box").text(e.text()),"drag"===t){var i=a(S);return C(n,function(e,t){var n=a("
").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,t.isMeasure===!0?"column"!==n&&"row"!==n&&"filter"!==n||(e.cancel=!0):t.isMeasure===!1&&"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()))},_applyChanges:function(e,t){var n=this,i=this._dataSource;"instantly"===this.option("applyChangesMode")?(e.forEach(function(e){var n=e.index;i.field(n,t)}),i.load()):e.forEach(function(e){var i=e.index;n._changeState(i,t)})},_changeState:function(e,t){var n=this,i=n._dataSource,o=i.state(),a=n.option("state")||o;i.state(a,!0),i.field(e,t),n.option("state",i.state()),n._clean(!0),n._renderComponent(),i.state(o,!0)},_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;r?t._headerFilterView.showHeaderFilterMenu(a(e.currentTarget),h(o,{type:o.groupName?"tree":"list",encodeHtml:t.option("encodeHtml"),dataSource:{useDefaultSearch:!0,load:function(e){var t=e.userData;if(t.store)return t.store.load(e);var n=new y;return l.getFieldValues(o.index).done(function(i){t.store=new s(i),t.store.load(e).done(n.resolve).fail(n.reject)}).fail(n.reject),n},postProcess:function(e){return T(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:c,addWidgetPrefix:function(e){return"dx-pivotgrid-"+e}});g("dxPivotGridFieldChooserBase",D),e.exports=D},function(e,t,n){var i=n(2),o=n(12),a=n(37),r=n(1),s=n(13).getPublicElement,l="tr",c={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)),a.append(e[n].get(0))),t.appendChild(a.get?a.get(0):a)}},makeTable:function(e){var t,n=o.createElement("tbody"),c=[],d=e.groupCount?e.rowCount/e.groupCount:e.rowCount,u=0,h=e.allDayElements,p=e.groupIndex;i(e.container).append(n),h&&(this.insertAllDayRow(h,n,0),u++);for(var f=0;f")}h&&g&&(this.insertAllDayRow(h,n,u),u++)}return c},makeGroupedTable:function(e,t,n,i,o,a){var r=[];return r=e===this.VERTICAL?this._makeVerticalGroupedRows(t,n,o,a):this._makeHorizontalGroupedRows(t,n,i,o)},makeGroupedTableFromJSON:function(e,t,n){function i(){d=o.createElement("table"),_&&(d.className=_)}function a(e){return e[f]?e[f].length:0}function r(e,t,n,i){var a={element:o.createElement(p),childCount:t};v&&(a.element.className=v);var r=o.createTextNode(e);return"function"==typeof x?x(a.element,r,n,i):a.element.appendChild(r),a}function s(e){for(var t=0;t=0;i--){var a=e[i+1],r=e[i].childCount;a&&a.childCount&&(r*=a.childCount),n.push(r)}n.reverse(),e.forEach(function(e,i){n[i]&&e.element.setAttribute("rowSpan",n[i]),t.appendChild(e.element)}),d.appendChild(t)})}var d,u=[],h=0;n=n||{};var p=n.cellTag||"td",f=n.childrenField||"children",g=n.titleField||"title",_=n.groupTableClass,m=n.groupRowClass,v=n.groupCellClass,x=n.groupCellCustomContent;return i(),s(t),c(),d},_makeVerticalGroupedRows:function(e,t,n,o){var a,r=[],s=1,l=[],c=function(e){e.template&&r.push(e.template)};for(a=0;a0&&(s=e[a-1].items.length*s);var d=this._makeGroupedRowCells(e[a],s,t,n);d.forEach(c),l.push(d)}var u=[],h=l.length,p=l[h-1].length;for(a=0;a").addClass(t.groupHeaderRowClass));for(a=h-1;a>=0;a--)for(var f=l[a].length,g=p/f,_=0;_0&&(a=e[d-1].items.length*a);var u=this._makeGroupedRowCells(e[d],a,t,o);s.push(i("
").addClass(t.groupRowClass).append(u.map(c)))}for(var h=s[r-1].find("th").length,p=0;p1&&f.attr("colSpan",g)}return{elements:s,cellTemplates:l}},_makeGroupedRowCells:function(e,t,n,o){for(var a=[],r=e.items,l=r.length,c=0;c"),h={};if(o&&o.render){var p={model:r[d],container:s(u),index:c*l+d};e.data&&(p.model.data=e.data[d]),h.template=o.render.bind(o,p)}else u.text(r[d].text),u=i("
").append(u);u.addClass(n.groupHeaderContentClass),h.element=i("
").addClass(n.groupHeaderClass).append(u),a.push(h)}return a}};e.exports=c},function(e,t,n){var i=n(2),o=n(4).noop,a=n(0).extend,r=n(8),s=n(250),l=n(23),c=n(289),d=n(629),u="dx-scheduler-timeline",h="dx-scheduler-group-table",p="dx-scheduler-work-space-horizontal-grouped",f="horizontal",g=75,_=1,m=l.dateToMilliseconds,v=s.inherit({_init:function(){this.callBase(),this.$element().addClass(u),this._$sidebarTable=i("").addClass(h)},_getCellFromNextRow:function(e,t){return t?this._$focusedCell:this.callBase(e,t)},_getDefaultGroupStrategy:function(){return"vertical"},_toggleGroupingDirectionClass:function(){this.$element().toggleClass(p,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")},_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){var n=Math.floor(t/this._getCellCountInDay());return n*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:f,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)},_renderTimePanel:o,_renderAllDayPanel:o,_getTableAllDay:function(){return!1},_getDateHeaderTemplate:function(){return this.option("timeCellTemplate")},_toggleAllDayVisibility:o,_changeAllDayVisibility:o,supportAllDayRow:function(){return!1},_isHorizontalGroupedWorkSpace:function(){return!!this.option("groups").length&&"horizontal"===this.option("groupOrientation")},_getGroupHeaderContainer:function(){return this._isHorizontalGroupedWorkSpace()?this._$thead:this._$sidebarTable},_insertAllDayRowsIntoDateTable:function(){return!1},_createAllDayPanelElements:o,_renderView:function(){this._setFirstViewDate();var e=this._renderGroupHeader();this._renderDateHeader(),this._renderAllDayPanel(),this._renderTimePanel(),this._renderDateTable(),this._shader=new d,this._updateGroupTableHeight(),this._$sidebarTable.appendTo(this._sidebarScrollable.$content()),this._applyCellTemplates(e)},_setHorizontalGroupHeaderCellsHeight:function(){var e=this._$dateTable.get(0).getBoundingClientRect().height;this._$sidebarTable.outerHeight(e)},getIndicationWidth:function(){var e=this._getToday(),t=this.getCellWidth(),n=this._getIndicationFirstViewDate(),i=this._getHiddenInterval(),o=e.getTime()-n.getTime(),a=Math.ceil(o/m("day"))-1,r=o-a*i,s=r/this.getCellDuration();return s*t},_renderIndicator:function(e,t,n,i){var o,a=this.getIndicationWidth();if("vertical"===this.option("groupOrientation"))o=this._createIndicator(n),o.height(n.get(0).getBoundingClientRect().height),o.css("left",t?t-a:a);else for(var r=0;r=n&&e.getHours()=n&&e.getHours()>=i?p=h-(g-i*m("hour")):u||(_=d),_+=p),_},_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),n+=t.left,{top:0,left:n,cellShift:n}},getVisibleBounds:function(){var e=this.option("rtlEnabled"),t={},n=this.getScrollable().$element(),i=this.getCellWidth(),o=e?this.getScrollableOuterWidth()-this.getScrollableScrollLeft():this.getScrollableScrollLeft(),a=o/i,r=n.width()/i,s=e?a-r:a+r,c=this._getDateByIndex(a),d=this._getDateByIndex(s);return e&&(c=this._getDateByIndex(s),d=this._getDateByIndex(a)),t.left={hours:c.getHours(),minutes:c.getMinutes()>=30?30:0,date:l.trimTime(c)},t.right={hours:d.getHours(),minutes:d.getMinutes()>=30?30:0,date:l.trimTime(d)},t},needUpdateScrollPosition:function(e,t,n,i){var o=!1;return o=this._dateWithinBounds(n,i),(en.right.hours)&&(o=!0),e===n.left.hours&&tn.right.minutes&&(o=!0),o},_dateWithinBounds:function(e,t){var n=l.trimTime(new Date(t)),i=!1;return(ne.right.date)&&(i=!0),i},_supportCompactDropDownAppointments:function(){return!1},getCellMinWidth: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",v),e.exports=v},function(e,t,n){var i=n(4).noop,o=n(10),a=n(0).extend,r=n(21),s=n(23),l=n(1).isNumeric,c=n(1),d=n(20),u=s.dateToMilliseconds,h=o.abstract,p=2,f=15,g=20,_=40,m=18,v=22,x=3,w=24,b=o.inherit({ctor:function(e){this.instance=e},getAppointmentMinSize:function(){return p},keepAppointmentSettings:function(){return!1},getDeltaTime:h,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;ithis._defaultWidth/2},isAllDay:function(){return!1},_getSortedPositions:function(e){for(var t=[],n=0,i=0,o=e.length;in.__tmpIndex)return 1}return e},_sortCondition:h,_rowCondition:function(e,t){var n=this._normalizeCondition(e.left,t.left),i=this._normalizeCondition(e.top,t.top);return n?n:i?i:e.isStart-t.isStart},_columnCondition:function(e,t){var n=this._normalizeCondition(e.left,t.left),i=this._normalizeCondition(e.top,t.top);return i?i:n?n:e.isStart-t.isStart},_normalizeCondition:function(e,t){var n=e-t;return Math.abs(n)>1.001?n:0},_getResultPositions:function(e){for(var t,n=[],i=[],o=[],a=[],r=0,s=0,l=0;lthis._getMaxAppointmentCountPerCell()-1},_findIndexByKey:function(e,t,n,i,o){for(var a=0,r=0,s=e.length;rn-1){e.isCompact=!0,i=this._getCompactAppointmentParts(e.width);for(var o=1;oi||!i)&&(i=o),isNaN(i.getTime()))throw r.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(i=this._checkWrongEndDate(e,o,i),a.getTime()>=i.getTime()||n){var r=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())+l),!s.sameDate(o,i)&&r.getTime()u&&(i=u)}return i},_adjustDurationByDaylightDiff:function(e,t,n){var i=this.instance.fire("getDaylightOffset",t,n);return 0!==i&&(e+=i*u("minute")),e},_checkWrongEndDate:function(e,t,n){return(!n||t.getTime()>=n.getTime())&&(n=new Date(t.getTime()+6e4*this.instance.getAppointmentDurationInMinutes()),this.instance.fire("setField","endDate",e,n)),n},_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(){var e=this.instance.fire("getMaxAppointmentsPerCell");if(e)return 0;var t=this.getCompactAppointmentDefaultSize()+this.getCompactAppointmentDefaultOffset();return Math.floor(this.getCompactAppointmentGroupMaxWidth()/t)},_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 c.isObject(t)?e?this._getMaxAppointmentCountPerCell().allDay:this._getMaxAppointmentCountPerCell().simple:t},getCompactAppointmentGroupMaxWidth:function(e,t){if(t||!c.isDefined(t)){var n=75;return n*this.getDefaultCellWidth()/100}return w},getDefaultCellWidth:function(){return this._defaultWidth},getCompactAppointmentDefaultSize:function(){return f},getCompactAppointmentDefaultOffset:function(){return x},getAppointmentDataCalculator:i,_customizeCoordinates:function(e,t,n,i,o){var a,r,s=e.index,l=t/n,c=e.top+s*l,d=c+i,u=e.width,h=e.left;return e.isCompact&&(a=this.getCompactAppointmentDefaultSize(),r=this.getCompactAppointmentDefaultOffset(),d=e.top+r,h=e.left+(s-n)*(a+r)+r,l=a,u=a,this._markAppointmentAsVirtual(e,o)),{height:l,width:u,top:d,left:h,empty:this._isAppointmentEmpty(t,u)}},_isAppointmentEmpty:function(e,t){return eo.oppositeStart||o.oppositeStart<=i.oppositeStart&&o.oppositeEnd>i.oppositeStart);return i.end>o.start&&a}}function l(e){var t,n,i;for(t=0;tr.start-(r.end-t.end))){a.toChain(o),e[n]=o=null;break}o&&o.setRollingStockInCanvas(t)}}function d(e,t){return e&&e.getBoundingRect().end>t.end}function u(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 h(e){return{nameField:e+"Name",colorField:e+"Color",indexField:e+"Index"}}function p(e){var t=h(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}}function f(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)}function g(e){e.forward=function(e){return e},e.backward=m}var _=n(4),m=_.noop,v=n(5),x=n(1),w=n(3).each,b=n(0).extend,y=n(11).inArray,C=n(9),k=n(131),S=n(293),I=n(294),T=n(296),D=n(421),E=n(422),A=n(674),B=n(675),O="_reinit",M="_updateDataSource",P="_dataInit",R="_forceRender",V="_resize",F=[O,M,P,R,V],L=n(16),H=L.map,z=w,N=b,$=Array.isArray,W=x.isDefined,G=L.setCanvasValues,q=.3,j=["series","commonSeriesSettings","dataPrepareSettings","seriesSelectionMode","pointSelectionMode","synchronizeMultiAxes","resolveLabelsOverlapping"],K=["equalBarWidth","minBubbleSize","maxBubbleSize","barWidth","barGroupPadding","barGroupWidth","negativesAsZeroes","negativesAsZeros"],U=["adaptiveLayout","crosshair","resolveLabelOverlapping","adjustOnZoom","zoomingMode","scrollingMode"];u.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;z(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},getInitialPosition:function(){return this._initialPosition},_changeBoxWidth:function(e){this._bBox.end+=e,this._bBox.width+=e}};var Y={resolveLabelOverlappingInOneDirection:r},X=k.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"}},_rootClassPrefix:"dxc",_rootClass:"dxc-chart",_initialChanges:["REINIT"],_themeDependentChanges:["REFRESH_SERIES_REINIT"],_createThemeManager:function(){var e=this.option(),t=new D.ThemeManager(e,this._chartType);return t.setTheme(e.theme,e.rtlEnabled),t},_initCore:function(){var e=this;g(e._layout),e._canvasClipRect=e._renderer.clipRect(),e._createHtmlStructure(),e._headerBlock=new B.HeaderBlock,e._createLegend(),e._createTracker(),e._needHandleRenderComplete=!0,e.layoutManager=new E.LayoutManager,e._createScrollBar(),v.on(e._$element,"contextmenu",function(e){(C.isTouchEvent(e)||C.isPointerEvent(e))&&e.preventDefault()}),v.on(e._$element,"MSHoldVisual",function(e){e.preventDefault()})},_getLayoutItems:m,_layoutManagerOptions:function(){return this._themeManager.getOptions("adaptiveLayout")},_reinit:function(){var e=this;G(e._canvas),e._reinitAxes(),e._skipRender=!0,e._updateDataSource(),e.series||e._dataSpecificInit(!1),e._skipRender=!1,e._correctAxes(),e._forceRender()},_correctAxes:m,_createHtmlStructure:function(){var e=this,t=e._renderer,n=t.root;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._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._panesBorderGroup=t.g().attr({"class":"dxc-border"}).linkOn(n,"border"),e._seriesGroup=t.g().attr({"class":"dxc-series-group"}).linkOn(n,"series"),e._constantLinesGroup=t.g().attr({"class":"dxc-constant-lines-group"}).linkOn(n,"constant-lines"),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"),e._scrollBarGroup=t.g().attr({"class":"dxc-scroll-bar"}).linkOn(n,"scroll-bar")},_disposeObjectsInArray:function(e,t){z(this[e]||[],function(e,n){t&&n?z(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(),e.businessRanges=null,i.call(e,"series"),t("_headerBlock"),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(){this._processRefreshData(V)},_resize:function(){this._doRender(this.__renderOptions||{animate:!1,isResize:!0})},_trackerType:"ChartTracker",_createTracker:function(){var e=this;e._tracker=new A[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)},_doRender:function(e){var t,n,i=this;i._skipRender||0===i._canvas.width&&0===i._canvas.height||(i._resetIsReady(),t=i._prepareDrawOptions(e),n=t.recreateCanvas,i.__originalCanvas=i._canvas,i._canvas=b({},i._canvas),n?i.__currentCanvas=i._canvas:i._canvas=i.__currentCanvas,n&&i._updateCanvasClipRect(i._canvas),i._renderer.stopAllAnimations(!0),G(i._canvas),i._cleanGroups(),i._renderElements(t))},_renderElements:function(e){var t,n,i,o=this,a=o._prepareToRender(e),r=o._isRotated(),s=o._isLegendInside(),l=[],c=o._getLayoutTargets(),d=b({},o._canvas),u=[],h=e.drawTitle&&e.drawLegend&&e.adjustAxes;h&&(u=o._getDrawElements(e,s)),o._renderer.lock(),o.layoutManager.setOptions(o._layoutManagerOptions()),o.layoutManager.layoutElements(u,o._canvas,function(t){var n=o._renderAxes(e,a,r);o._shrinkAxes(e,t,n)},c,r),h&&o._updateCanvasClipRect(d),o._applyClipRects(a),o._appendSeriesGroups(),o._createCrosshairCursor(),z(c,function(){var e=this.canvas;l.push({left:e.left,right:e.width-e.right,top:e.top,bottom:e.height-e.bottom})}),o._scrollBar&&(t=o._argumentAxes[0].getTranslator().getBusinessRange(),"discrete"===t.axisType&&t.categories&&t.categories.length<=1?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._renderSeries(e,r,s),o._renderer.unlock()},_createCrosshairCursor:m,_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=0&&nq)&&(i=q),t.textOpacity=q),t.states={hover:n.hover,selection:n.selection,normal:N({},n.normal,{opacity:i})},t})},_getLegendOptions:function(e){return{legendData:{text:e[this._legendItemTextField],argument:e.argument,id:e.index,argumentIndex:e.argumentIndex},getLegendStyles:e.getLegendStyles(),visible:e.isVisible()}},_disposeSeries:function(){var e=this;z(e.series||[],function(e,t){t.dispose()}),e.series=null,z(e.seriesFamilies||[],function(e,t){t.dispose()}),e.seriesFamilies=null,e._needHandleRenderComplete=!0},_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),e._doRefresh()},_optionChangesMap:{animation:"ANIMATION",dataSource:"DATA_SOURCE",palette:"PALETTE",paletteExtensionMode:"PALETTE",legend:"DATA_INIT",seriesTemplate:"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",customizePoint:"REFRESH_SERIES_REINIT",customizeLabel:"REFRESH_SERIES_REINIT",scrollBar:"SCROLL_BAR"},_customChangesOrder:["ANIMATION","REFRESH_SERIES_FAMILIES","DATA_SOURCE","PALETTE","REFRESH_SERIES_DATA_INIT","DATA_INIT","FORCE_RENDER","AXES_AND_PANES","ROTATED","REFRESH_SERIES_REINIT","SCROLL_BAR","CHART_TOOLTIP","REINIT"],_change_ANIMATION:function(){this._renderer.updateAnimationOptions(this._getAnimationOptions())},_change_DATA_SOURCE:function(){this._needHandleRenderComplete=!0,this._processRefreshData(M)},_change_PALETTE:function(){this._themeManager.updatePalette(),this._refreshSeries(P)},_change_REFRESH_SERIES_DATA_INIT:function(){this._refreshSeries(P)},_change_DATA_INIT:function(){this._processRefreshData(P)},_change_REFRESH_SERIES_FAMILIES:function(){this._processSeriesFamilies(),this._populateBusinessRange(!0),this._processRefreshData(R)},_change_FORCE_RENDER:function(){this._processRefreshData(R)},_change_AXES_AND_PANES:function(){this._refreshSeries(O)},_change_ROTATED:function(){this._createScrollBar(),this._refreshSeries(O)},_change_REFRESH_SERIES_REINIT:function(){this._refreshSeries(O)},_change_SCROLL_BAR:function(){this._createScrollBar(),this._processRefreshData(R)},_change_CHART_TOOLTIP:function(){this._organizeStackPoints()},_change_REINIT:function(){this._processRefreshData(O)},_refreshSeries:function(e){this._disposeSeries(),this._processRefreshData(e)},_doRefresh:function(){var e=this._currentRefreshData;e&&(this._currentRefreshData=null,this._renderer.stopAllAnimations(!0),this[e]())},_updateCanvasClipRect:function(e){var t,n,i=this;t=Math.max(e.width-e.left-e.right,0),n=Math.max(e.height-e.top-e.bottom,0),i._canvasClipRect.attr({x:e.left,y:e.top,width:t,height:n}),i._backgroundRect.attr({x:e.left,y:e.top,width:t,height:n})},_getCanvasClipRectID:function(){return this._canvasClipRect.id},_dataSourceChangedHandler:function(){this._resetZoom(),this._dataInit()},_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.series||t._populateSeries(),t._repopulateSeries(),t._seriesPopulatedHandlerCore(),t._populateBusinessRange(!0),t._tracker.updateSeries(t.series),t._updateLegend(),e&&t._forceRender()},_forceRender:function(){this._doRender({force:!0})},_repopulateSeries:function(){var e,t=this,n=t._themeManager,i=t._dataSourceItems(),o=n.getOptions("dataPrepareSettings"),a=n.getOptions("seriesTemplate");a&&t._populateSeries(i),t._groupSeries(),e=I.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,n=t.getOptions("tooltip").shared,i={};z(e.series||[],function(t,o){e._resetStackPoints(o),n&&e._prepareStackPoints(o,i)})},_renderCompleteHandler:function(){var e=this,t=!0;e._needHandleRenderComplete&&(z(e.series,function(e,n){t=t&&n.canRenderCompleteHandle()}),t&&(e._needHandleRenderComplete=!1,e._eventTrigger("done",{target:e})))},_getDrawElements:function(e,t){var n,i=this,o=[],a=i._themeManager.getOptions("export"),r=i._title.getLayoutOptions()||{},s=[];return i._exportMenu&&a.enabled&&(s.push(i._exportMenu),o.push(i._headerBlock)),e.drawTitle&&("bottom"!==r.verticalAlignment&&s.length?s.push(i._title):o.push(i._title)),e.drawLegend&&i._legend&&(i._legendGroup.linkAppend(),t||(n=i._legend.getLayoutOptions(),1===s.length&&"bottom"!==n.verticalAlignment&&"vertical"===n.cutSide?s.push(i._legend):o.push(i._legend))),s.length&&i._headerBlock.update(s,i._canvas),o},_resetZoom:m,_dataIsReady:function(){return W(this.option("dataSource"))&&this._dataIsLoaded()},_populateSeries:function(e){var t,n,i,o,a,r=this,s=r._themeManager,l=s.getOptions("seriesTemplate"),c=l?L.processSeriesTemplate(l,e||[]):r.option("series"),d=$(c)?c:c?[c]:[],u=r._getExtraOptions(),h=function(){r._specialProcessSeries(),r._populateBusinessRange(!1),r._renderer.stopAllAnimations(!0),r._updateLegend(),r._doRender({force:!0})};for(r._disposeSeries(),r.series=[],s.resetPalette(),a=function(e){r.series.forEach(function(t){t.notify(e)})},o=0;o=0?(t=D(e.margin),t={top:t,bottom:t,left:t,right:t}):t={top:t.top>=0?D(t.top):N,bottom:t.bottom>=0?D(t.bottom):N,left:t.left>=0?D(t.left):N,right:t.right>=0?D(t.right):N },e.margin=t}function a(e,t,n){var i,o,a=7,r=4;switch(e.itemTextPosition){case j:case q:i=t+a+n.width,o=B(t,n.height);break;case K:case U:i=B(t,n.width),o=t+r+n.height}return{width:i,height:o}}function r(e,t){var n={};return n.left=O(e.x,t.x),n.top=O(e.y,t.y),n.right=B(e.x+e.width,t.x+t.width),n.bottom=B(e.y+e.height,t.y+t.height),n}function s(e,t,n,i){var o=t&&n[t[e]];o&&o.marker.smartAttr(o.states[i])}function l(e,t){return e?(o(e),e.horizontalAlignment=ne(e.horizontalAlignment,q),e.verticalAlignment=ie(e.verticalAlignment,e.horizontalAlignment===G?U:K),e.orientation=oe(e.orientation,e.horizontalAlignment===G?Y:X),e.itemTextPosition=ae(e.itemTextPosition,e.orientation===Y?U:q),e.position=re(e.position,Q),e.itemsAlignment=se(e.itemsAlignment,null),e.hoverMode=H(e.hoverMode),e.customizeText=F(e.customizeText)?e.customizeText:function(){return this[t]},e.customizeHint=F(e.customizeHint)?e.customizeHint:R,e._incidentOccurred=e._incidentOccurred||R,e):null}function c(e,t){return e.rect(0,0,t,t)}function d(e,t){return e.circle(t/2,t/2,t/2)}function u(e){return"circle"===H(e)}function h(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom}function p(e,t,n,i){var o={x:0,y:0},a=0,r=0,s=0;if(s="y"===t.direction?i.top+i.bottom:i.left+i.right,e.forEach(function(e,n){var i=e[0],s=e.length;e.forEach(function(e,n){var i=e.offset||t.spacing;o[t.direction]+=e[t.measure]+(n!==s-1?i:0),a=B(a,o[t.direction])}),o[t.direction]=0,o[t.altDirection]+=i[t.altMeasure]+i.altOffset||t.altSpacing,r=B(r,o[t.altDirection])}),a+s>t.length)return t.countItem=f(t,n),!0}function f(e,t){return e.altCountItem++,M(t/e.altCountItem)}function g(e,t){var n=0;return S(e,function(e,i){var o=i.offset||t.spacing;n+=i[t.measure]+o}),n}function _(e,t){var n=0;return S(e,function(e,i){n=B(n,g(i,t))}),n}function m(e,t,n){var i,o=g(e,t);switch(t.itemsAlignment){case q:i=n-o;break;case G:i=(n-o)/2;break;default:i=0}return i}function v(e){switch(e.itemTextPosition){case U:return{horizontal:G,vertical:K};case K:return{horizontal:G,vertical:U};case j:return{horizontal:q,vertical:G};case q:return{horizontal:j,vertical:G}}}function x(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}function w(e,t){var n=0;S(e,function(e,i){i&&(n=B(n,i[t]))}),S(e,function(e,i){i&&(i[t]=n)})}function b(e){var t,n,i=e.length,o=e[0].length,a=[];for(t=0;te||n.getLayoutOptions().height>t)&&this.freeSpace(),n):n},probeDraw:function(e,t){return this.draw(e,t)},_createItems:function(e){var t,n=this,o=n._options,r=o.markerSize,s=n._renderer,l=0,c=le(o.markerShape||o.markerType);n._markersId={},n._items=C.map(e,function(e,d){var u=n._insideLegendGroup,h=D(e.size>0?e.size:r),p=e.states,f=p.normal,g=f.fill,_=c(s,h).attr({fill:g||o.markerColor||o.defaultColor,opacity:f.opacity}).append(u),m=n._createLabel(e,u),v={normal:{fill:g},hovered:i(p.hover,g),selected:i(p.selection,g)},x=m.getBBox();return void 0!==e.id&&(n._markersId[e.id]=d),t=a(o,h,x),l=B(l,t.height),n._createHint(e,m),{label:m,labelBBox:x,group:u,bBox:t,marker:_,markerSize:h,tracker:{id:e.id,argument:e.argument,argumentIndex:e.argumentIndex},states:v,itemTextPosition:o.itemTextPosition,markerOffset:0,bBoxes:[]}}),o.equalRowHeight&&S(n._items,function(e,t){t.bBox.height=l})},_getItemData:function(){var e=this._data;return this._options.inverted&&(e=e.slice().reverse()),e},_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._x1=e._x2=e._y2=e._y2=null,e},_locateElements:function(e){this._moveInInitialValues(),this._locateRowsColumns(e)},_moveInInitialValues:function(){var e=this;e._legendGroup&&e._legendGroup.move(0,0),e._background&&e._background.attr({x:0,y:0,width:0,height:0})},applySelected:function(e){return s(e,this._markersId,this._items,"selected"),this},applyHover:function(e){return s(e,this._markersId,this._items,"hovered"),this},resetItem:function(e){return s(e,this._markersId,this._items,"normal"),this},_createLabel:function(e,t){var n=this._getCustomizeObject(e),i=y(this._options.itemTextPosition),o=this._options.customizeText.call(n,n),a=V(e.textOpacity)?z({},this._options.font,{opacity:e.textOpacity}):this._options.font;return this._renderer.text(o,0,0).css(C.patchFontOptions(a)).attr({align:i}).append(t)},_createHint:function(e,t){var n=this._getCustomizeObject(e),i=this._options.customizeHint.call(n,n);V(i)&&""!==i&&t.setTitle(i)},_createBackground:function(){var e=this,t=e._options.position===Z,n=e._options.backgroundColor,i=n||(t?e._options.containerBackgroundColor:J);(e._options.border.visible||(t||n)&&n!==J)&&(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(p(t,o,a,e.margin)&&i=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=0&&e.slice(i).forEach(function(e){Y(e[n])&&(t[n]+=e[n],e[n]=void 0)})}function o(e){e.forEach(function(e){e.valueType=e.valueAxisType=null,e.series.forEach(function(e){e.updateDataType({})}),e.valueAxis&&e.valueAxis.resetTypes(G)})}function a(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=Y(o)?1:0,s=Y(a)?1:0;return r&&s?i(o,a):i(r,s)}),e}function r(e){e&&e.forEach(function(e){e.resetTypes(q)})}function s(e,t){var n=[];return e.forEach(function(e){var i=t(e);void 0!==i&&n.push(i)}),n}function l(e,t){var n=e.argumentOptions&&e.argumentOptions.categories,i=t[1];e.groups.forEach(function(e){var t=e.valueOptions&&e.valueOptions.categories;t&&(e.valueOptions.categories=s(t,i))}),n&&(e.argumentOptions.categories=s(n,t[0]))}function c(e,t,n){return e<=0&&null!==e&&(n("E2004",[t]),e=null),e}function d(e){return e}function u(e,t){var n=t;return t===F||Q(e)?n=F:t===H||J(e)?n=H:ee(e)&&(n=L),n}function h(e,t,n,i){return e!==F||t!==$&&t!==W&&t!==N||i("E2002"),t===W?W:n||t===z||e===F?z:t===N?N:$}function p(e,t,n){e&&n(ee(e)||J(e)||Q(e)?"E2004":"E2003",[t])}function f(e,t,n,i,o){var a=e?U(e):d,r=t===W?c:d,s=t!==z?function(e){return isFinite(e)||void 0===e?e:null}:d,l=n?function(e){return null===e?void 0:e}:d;return function(e,t){var n=function(e){return r(e,t,o)},c=l(n(s(a(e))));return void 0===c&&(i[t]=(i[t]||0)+1,p(e,t,o)),c}}function g(e,t,n){var i,o,a,r=f(e.argumentType,e.argumentAxisType,!1,t,n),s=[r],c={},d=[];e.groups.forEach(function(e){e.series.forEach(function(l){a=l.getOptions().ignoreEmptyPoints,o=f(e.valueType,e.valueAxisType,a,t,n),i=f(L,$,a,t,n),c[l.getArgumentField()]=r,l.getValueFields().forEach(function(e){!s[1]&&(s[1]=o),c[e]=o}),l.getSizeField()&&(c[l.getSizeField()]=i)})});for(var u in c)d.push([u,c[u]]);return d.length&&l(e,s),d}function _(e,t){var n,i,o,a=t.length,r=j({},e);for(n=0;no));++i);return i}function x(e,t,n,o){o=o||{};var r,s=o.mode,l={};s&&"none"!==s&&(l[t]=String(o.groupName||"others"),l[n]=0,r=a(e.slice(),!1,function(e){return e[n]}),i(r,l,n,"smallValueThreshold"===s?v(r,n,o.threshold):o.topCount),l[n]&&e.push(l))}function w(e,t){var n=t.groups[0]&&t.groups[0].series[0],i=n&&("pie"===n.type||"doughnut"===n.type||"donut"===n.type);i&&t.groups.forEach(function(t){t.series.forEach(function(t){x(e,t.getArgumentField(),t.getValueFields()[0],t.getOptions().smallValuesGrouping)})})}function b(e,t,n){n[e]||(t.push(e),n[e]=!0)}function y(e){var t=[],n={};return e.groups.forEach(function(e){e.series.forEach(function(e){b(e.getArgumentField(),t,n)})}),t}function C(e,t){var n=e-t;return isNaN(n)?Y(e)?Y(t)?0:-1:1:n}function k(e,t){return e.slice().sort(function(e,n){return C(e[t],n[t])})}function S(e,t){return e.slice().sort(t)}function I(e,t){return e.series.forEach(function(n){n.getValueFields().forEach(function(n){e.valueType=u(t[n],e.valueType)})}),e.valueType}function T(e){var t={};return e.forEach(function(e,n){t[e]=n}),function(e,n){return a(e.slice(),!0,function(e){return t[e[n]]})}}function D(e,t,n,i){var o,a={},r=t.argumentAxisType===z,s=r&&t.argumentOptions&&t.argumentOptions.categories,l=function(e){return e},c=n.sortingMethod;return!s&&X(c)&&(e=S(e,c)),r&&(t.categories=A(e,i,s)),s||!X(c)&&t.argumentType===F&&!n._skipArgumentSorting?l=T(t.categories):c===!0&&t.argumentType!==F&&(l=k,o=r),i.forEach(function(t){a[t]=l(e,t)}),o&&(t.categories=t.categories.sort(C)),a}function E(e,t){return e.map(function(e){return e.valueOf()}).indexOf(t.valueOf())===-1}function A(e,t,n){var i=n?n.slice():[];return t.forEach(function(t){e.forEach(function(e){var n=e[t];Y(n)&&E(i,n)&&i.push(n)})}),i}function B(e,t,n){return e.forEach(function(e){n.argumentType=u(t[e.getArgumentField()],n.argumentType)}),n.argumentType}function O(e,t,n){var i,o=[],a=[],r=t.argumentOptions&&K(t.argumentOptions.argumentType);t.groups.forEach(function(e){if(e.series.length){var n=e.valueOptions&&K(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){I(t,e)&&i.indexOf(n)>=0&&i.splice(n,1)}),r||a.forEach(function(n){r=B(n.series,e,t)}),!n&&r&&0===i.length)return!0}))}function M(e,t){var n=e.argumentOptions||{},i=n&&n.categories||[],o=h(e.argumentType,n.type,!!i.length,t);e.groups.forEach(function(n){var i=n.valueOptions||{},a=i.categories||[],r=h(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,G),n.valueAxis.validate())}),e.argumentAxisType=e.argumentAxisType||o,e.argumentAxes&&e.argumentAxes.forEach(function(t){t.setTypes(e.argumentAxisType,e.argumentType,q),t.validate()})}function P(e,t){var n,i,o,a,r=[],s=Y(e),l=s&&!Z(e);if(s&&!l)for(n=0,i=e.length,o=0;n1&&!!e)},_createPoints:function(){var e,t=this,n=t.pointsByArgument||{},i=t._getData();t.pointsByArgument={},t._calculateErrorBars(i),e=i.reduce(function(e,i){if(t._checkData(i)){var o=e.length,a=t._getOldPoint(i,n,o),r=t._createPoint(i,o,a);e.push(r)}return e},[]),Object.keys(n).forEach(function(e){return t._disposePoints(n[e])}),t._points=e},_removeOldSegments:function(){var e=this,t=e._segments.length;m(e._graphics.splice(t,e._graphics.length)||[],function(t,n){e._removeElement(n)}),e._trackers&&m(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];a.translated&&!n||(a.translate(),!n&&a.setDefaultCoords());var l=a.hasCoords();return a.hasValue()&&l?(n&&o._drawPoint({point:a,groups:s,hasAnimation:e,firstDrawing:t}),r.push(a)):a.hasValue()?a.setInvisibility():r.length&&i.push([]),i},[[]]),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!!f.mixins[e][this.type]},_checkPolarBarType:function(e,t){return"polar"===e&&t.spiderWidget&&this.type.indexOf("bar")!==-1},_resetType:function(e,t){var n,i;if(e){i=f.mixins[t][e];for(n in i)delete this[n]}},_setType:function(e,t){var n,i=f.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&&e._nearestPoint.resetView(L),e._nearestPoint=null},_setSelectedState:function(e){var t=this;t.lastSelectionMode=y(e||t._options.selectionMode),t.fullState=t.fullState|V,t._resetNearestPoint(),t._changeStyle(t.lastSelectionMode),t.lastSelectionMode!==G&&t.isHovered()&&o(t.lastHoverMode)&&t._resetPointsView(L)},_releaseSelectedState:function(){var e=this;e.fullState=e.fullState&~V,e._changeStyle(e.lastSelectionMode,z),e.lastSelectionMode!==G&&e.isHovered()&&o(e.lastHoverMode)&&e._setPointsView(L)},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()&&y(this._options.hoverMode)!==G},_changeStyle:function(e,t,n){var i=this,a=i.fullState,r=[H,L,z,z];"none"===i.lastHoverMode&&(a&=~F),"none"===i.lastSelectionMode&&(a&=~V),o(e)&&!n&&(t?i._resetPointsView(t):i._setPointsView(r[a])),i._legendCallback([W,$,N,N][a]),i._applyStyle(i._styles[r[a]])},updateHover:function(e,t){var n=this,i=n._nearestPoint,o=n.isHovered()&&n.lastHoverMode===j&&n.getNeighborPoint(e,t);o===i||n.isSelected()&&n.lastSelectionMode!==G||(n._resetNearestPoint(),o&&(o.setView(L),n._nearestPoint=o))},_getMainAxisName:function(){return this._options.rotated?"X":"Y"},areLabelsVisible:function(){return!x(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,n){var i,o,a,r,s,l,c=this,d=c._options,e=d.customizePoint,u=d.customizeLabel;u&&u.call&&(i=_({seriesName:c.name},n),i.series=c,a=u.call(i,i),s=a&&!b(a),a=s?_(!0,{},d.label,a):null),e&&e.call&&(i=i||_({seriesName:c.name},n),i.series=c,r=e.call(i,i),l=r&&!b(r)),(s||l)&&(o=c._parsePointOptions(c._preparePointOptions(r),a||d.label,n,t),o.styles.useLabelCustomOptions=s,o.styles.usePointCustomOptions=l,t.updateOptions(o))},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()},_updatePointsVisibility:C,hideLabels:function(){m(this._points,function(e,t){t._label.draw(!1)})},_parsePointOptions:function(e,t,n,i){var o=this,r=o._options,s=o._createPointStyles(e,n,i),l=_({},e,{type:r.type,rotated:r.rotated,styles:s,widgetType:r.widgetType,visibilityChanged:r.visibilityChanged});return l.label=a(t,s.normal.fill),o.areErrorBarsVisible()&&(l.errorBars=r.valueErrorBar),l},_preparePointOptions:function(e){var t=this._getOptionsForPoint();return e?u(t,e):t},_getMarkerGroupOptions:function(){return _(!1,{},this._getOptionsForPoint(),{hoverStyle:{},selectionStyle:{}})},_getAggregationMethod:function(e){var t=this.getOptions().aggregation,n=y(t.method),i="custom"===n&&t.calculate,o=void 0;return o=e?function(e){var t=e.data;return t[0]}:this._aggregators[n]||this._aggregators[this._defaultAggregator],i||o},_resample:function(e,t){var n=e.interval,i=e.ticks,o=this,a=o.argumentAxisType===R||o.valueAxisType===R,r=0,s=this._getPointDataSelector(),l=o.getOptions(),c=function(e,t,n){if(t){var i=function(t){var i=t&&s(t,l);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],s={aggregationInterval:n,data:r.map(p)};c(e[0],d(s,o)),e[1]=[]}return e},[[],[]])[0];for(var u=[],h=1;h=g&&_.push(t[r]),r++;var m={intervalStart:g,intervalEnd:f,aggregationInterval:n,data:_.map(p)};c(u,d(m,o),m)}return o._endUpdateData(),u},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()||(l(e,this._legendCallback),this._eventPipe({action:ne,target:e}),this._eventTrigger(U,{target:e}))},deselectPoint:function(e){e.isSelected()&&(c(e,this._legendCallback), this._eventPipe({action:ie,target:e}),this._eventTrigger(U,{target:e}))},hover:function(e){var t=this,n=t._eventTrigger;t.isHovered()||(t.lastHoverMode=y(e||t._options.hoverMode),t.fullState=t.fullState|F,t._changeStyle(t.lastHoverMode,void 0,t.isSelected()&&t.lastSelectionMode!==G),n(Y,{target:t}))},clearHover:function(){var e=this,t=e._eventTrigger;e.isHovered()&&(e._resetNearestPoint(),e.fullState=e.fullState&~F,e._changeStyle(e.lastHoverMode,L,e.isSelected()&&e.lastSelectionMode!==G),t(Y,{target:e}))},hoverPoint:function(e){var t=this;e.isHovered()||(e.clearHover(),r(e,t._legendCallback),t._canChangeView()&&t._applyStyle(t._styles.hover),t._eventPipe({action:J,target:e}),t._eventTrigger(X,{target:e}))},clearPointHover:function(){var e=this;e.getPoints().some(function(t){return!!t.isHovered()&&(s(t,e._legendCallback),e._canChangeView()&&e._applyStyle(e._styles.normal),e._eventPipe({action:ee,target:t}),e._eventTrigger(X,{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:te,target:e}),e._group.toForeground(),e._eventTrigger(K,{target:e}))},clearSelection:function(){var e=this;e.isSelected()&&(e._releaseSelectedState(),e._eventTrigger(K,{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=y(a.hoverMode),s=y(a.selectionMode);n===J?t._hoverPointHandler(o,r,e.notifyLegend):n===ee?t._clearPointHoverHandler(o,r,e.notifyLegend):n===te?o!==t&&"single"===i.seriesSelectionMode&&t.clearSelection():n===ne?("single"===i.pointSelectionMode&&t.getPoints().some(function(e){return!(e===o||!e.isSelected())&&(t.deselectPoint(e),!0)}),t._selectPointHandler(o,s)):n===ie&&t._deselectPointHandler(o,s)},_selectPointHandler:function(e,t){var n=this;t===Z?e.series===n&&n._setPointsView(z,e):t===Q&&n.getPointsByKeys(e.argument,e.argumentIndex).forEach(function(t){t!==e&&t.setView(z)})},_deselectPointHandler:function(e,t){t===Z?e.series===this&&this._resetPointsView(z,e):t===Q&&this.getPointsByKeys(e.argument,e.argumentIndex).forEach(function(t){t!==e&&t.resetView(z)})},_hoverPointHandler:function(e,t,n){var i=this;e.series!==i&&t===Q?(i.getPointsByKeys(e.argument,e.argumentIndex).forEach(function(e){e.setView(L)}),n&&i._legendCallback(e)):t===Z&&e.series===i&&i._setPointsView(L,e)},_clearPointHoverHandler:function(e,t,n){var i=this;t===Q?(e.series!==i&&i.getPointsByKeys(e.argument,e.argumentIndex).forEach(function(e){e.resetView(L)}),n&&i._legendCallback(e)):t===Z&&e.series===i&&i._resetPointsView(L,e)},_deletePoints:function(){var e=this;e._disposePoints(e._points),e._points=e._drawnPoints=null},_deleteTrackers:function(){var e=this;m(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:C,drawTrackers:C,getNeighborPoint:C,areErrorBarsVisible:C,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},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}}},function(e,t,n){function i(e,t){var n,i=1/0;return h(t,function(t,o){var a=e[0]-o[0],r=e[1]-o[1],s=a*a+r*r;s0&&e.stroke&&"none"!==e.stroke)}function s(e){return e&&e["stroke-width"]>0&&e.stroke&&"none"!==e.stroke}function l(e,t){return e.valueText=d(e.value,t),e.argumentText=d(e.argument,{format:t.argumentFormat,precision:t.argumentPrecision}),void 0!==e.percent&&(e.percentText=d(e.percent,{format:{type:"percent",precision:t.format&&t.format.percentPrecision||t.percentPrecision}})),void 0!==e.total&&(e.totalText=d(e.total,t)),void 0!==e.openValue&&(e.openValueText=d(e.openValue,t)),void 0!==e.closeValue&&(e.closeValueText=d(e.closeValue,t)),void 0!==e.lowValue&&(e.lowValueText=d(e.lowValue,t)),void 0!==e.highValue&&(e.highValueText=d(e.highValue,t)),void 0!==e.reductionValue&&(e.reductionValueText=d(e.reductionValue,t)),t.customizeText?t.customizeText.call(e,e):e.valueText}function c(e){this._renderer=e.renderer,this._container=e.labelsGroup,this._point=e.point,this._strategy=e.strategy}var d=n(252),u=n(16),h=n(3).each,p=n(0).extend,f=u.degreesToRadians,g=u.patchFontOptions,_=Math,m=_.round,v=_.floor,x=_.abs,w=u.getCosAndSin,b=u.rotateBBox,y=12,C=8,k=4,S={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){var o=t.x,a=o+t.width/2,r=o+t.width-1,s=t.y,l=s+t.height/2,c=s+t.height-1;return x(i)%90===0?[[o,s],[n?o:a,n?l:s],[r,s],[o,c],[n?r:a,n?l:c],[r,c]]:[[a,l]]},isHorizontal:function(e,t){return e.x>t.x+t.width||e.x+e.widtht.x+t.r||e.x+e.width=c&&c>=s||o<=c&&c<=s)&&e.push([(c-o)*(a-i)/(s-o)+i,c]):(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:I.getFigureCenter,findFigurePoint:function(e,t,n){if(!n)return[e.x,e.y];var i=t[0],o=m(e.x+(e.y-t[1])/Math.tan(f(e.angle))),a=[e.x,e.y,o,t[1]];return e.x<=o&&o<=i||i<=o&&o<=e.x||(x(e.x-i)=0&&_(e,t);t--);for(t=0;t2&&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=I.default.getLog(t,e.base)+i*n;return I.default.raiseTo(o,e.base)}:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=e+i*n;return t&&o*e<=0?0:o}}function v(e){var t=e.label,n=e.position,i=e.isHorizontal?ae:re,o=e.isHorizontal?oe:se;n!==i&&n!==o&&(n=i),n!==se||t.userAlignment||(t.alignment=re),e.position=n,e.hoverMode=e.hoverMode?e.hoverMode.toLowerCase():"none",t.minSpacing=(0,T.isDefined)(t.minSpacing)?t.minSpacing:ne}function x(e,t){var n=180*Q.asin((e[0].height+t.minSpacing)/(e[1].x-e[0].x))/Q.PI;return n<45?-45:-90}function w(e,t,n){e.forEach(function(e,i){e.label&&(i%t!==0?e.label.remove():n&&n(e,i))})}function b(e){return e.valueOf()}function y(e,t,n,i){var o,a,r;return(0,T.isNumeric)(e)&&0!==e?t.size||t.checkInterval?(o=Q.floor(I.default.getAdjustedLog10(J(e))),a=Q.floor(I.default.getAdjustedLog10(J(n))),o=(o>=a?a:o)-2,0===o&&(o=-1),r=I.default.raiseTo(o,10),(0,W.adjust)(i((0,W.adjust)(e/r))*r)):(0,W.adjust)(e):e}function C(e,t,n,i,a){var r=(0,A.extend)({},e,{endOnTick:!0,axisDivisionFactor:t,skipCalculationLimits:!0,generateExtraTick:!0,minTickInterval:a});return function(e,t,a,s,l){return o(r,q.noop,t)({min:a,max:s,categories:n.categories,isSpacedMargin:n.isSpacedMargin,checkMinDataVisibility:n.checkMinDataVisibility,checkMaxDataVisibility:n.checkMaxDataVisibility},i,e,(0,T.isDefined)(e),void 0,void 0,void 0,l)}}var k=n(424),S=n(16),I=i(S),T=n(1),D=n(299),E=i(D),A=n(0),B=n(11),O=n(88),M=i(O),P=n(295),R=i(P),V=n(425),F=i(V),L=n(300),H=i(L),z=n(134),N=i(z),$=n(426),W=n(34),G=n(23),q=n(4),j=n(427),K=i(j),U=n(682),Y=i(U),X=E.default.convertTicksToValues,Z=I.default.patchFontOptions,Q=Math,J=Q.abs,ee=Q.max,te=Q.min,ne=5,ie=4,oe=E.default.top,ae=E.default.bottom,re=E.default.left,se=E.default.right,le=E.default.center,ce=50,de=15,ue={day:864e5,week:6048e5},he=t.Axis=function(e){var t=this;t._renderer=e.renderer,t._incidentOccurred=e.incidentOccurred,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};he.prototype={constructor:he,_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)).append(this._axisLineGroup))},_createPathElement:function(e,t){return this._renderer.path(e,"line").attr(t).sharp(this._getSharpParam())},_getGridLineDrawer:function(e){var t=this,n=t._isHorizontal;return function(i,o){t.borderOptions=e;var a,r=n?re:oe,s=n?se:ae,l=t.getCanvas(),c={left:l.left,right:l.width-l.right,top:l.top,bottom:l.height-l.bottom},d=e.visible&&e[r]?c[r]:void 0,u=e.visible&&e[s]?c[s]:void 0,h=n?"x":"y",p=ie+d,f=u-ie;if(!(void 0===i.coords[h]||i.coords[h]f)){var g=t._getGridPoints(i.coords);return g.points&&(a=t._createPathElement(g.points,o)),a}}},_getGridPoints:function(e){var t=this._isHorizontal,n=t?"x":"y",i=this._orthogonalPositions,o=i.start,a=i.end;return{points:t?null!==e[n]?[e[n],o,e[n],a]:null:null!==e[n]?[o,e[n],a,e[n]]:null}},_getConstantLinePos:function(e,t,n){var i=this._validateUnit(e,"E2105","constantLine"),o=this._getTranslatedCoord(i);return!(0,T.isDefined)(o)||oee(t,n)?{}:{value:o,parsedValue: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)},_drawConstantLinesAndLabels:function(e,t,n,i){if(!(0,T.isDefined)(t.value))return{line:null,label:null,options:t};var o,a=this,r=a._getConstantLinePos(t.value,n,i),s=t.label||{},l=r.value,c={stroke:t.color,"stroke-width":t.width,dashStyle:t.dashStyle},d=a._axisConstantLineGroups[e];return d||(o=a._isHorizontal?s.verticalAlignment:s.horizontalAlignment,d=a._axisConstantLineGroups[o]),(0,T.isDefined)(l)?{line:a._createConstantLine(l,c).append(a._axisConstantLineGroups.inside),label:s.visible?a._drawConstantLineLabels(r.parsedValue,s,l,d):null,options:t,labelOptions:s,coord:l}:{line:null,label:null,options:t}},_drawConstantLines:function(e){var t=this,n=t._getCanvasStartEnd();return t._translator.getBusinessRange().stubData?[]:(t._options.constantLines||[]).reduce(function(i,o){var a=o.label.position;return(a===e||!a&&"inside"===e)&&i.push(t._drawConstantLinesAndLabels(e,o,n.start,n.end)),i},[])},_drawConstantLineLabelText:function(e,t,n,i,o){var a=this,r=a._options,s=r.label;return a._renderer.text(e,t,n).css(Z((0,A.extend)({},s.font,i.font))).attr({align:"center"}).append(o)},_drawConstantLineLabels:function(e,t,n,i){var o,a=this,r=t.text,s=a._options,l=s.label;return a._checkAlignmentConstantLineLabels(t),r=(0,T.isDefined)(r)?r:a.formatLabel(e,l),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,c,d=!(!o.minVisible&&!o.maxVisible),u=(o.categories||[]).reduce(function(e,t){return e.push(t.valueOf()),e},[]),h=o.minVisible;if(!d&&(0,T.isDefined)(e)&&(0,T.isDefined)(t)){if(l=(0,B.inArray)(e.valueOf(),u),c=(0,B.inArray)(t.valueOf(),u),l===-1||c===-1)return{from:0,to:0};l>c&&(s=t,t=e,e=s)}return(0,T.isDefined)(e)?(e=this._validateUnit(e,"E2105","strip"),a=this._getTranslatedCoord(e,-1),!(0,T.isDefined)(a)&&d&&(a=eh?i:n)):r=i,ar)&&c.push(r),l.max&&(0===i||e[i-1]a.max?a.max:w;var y=n._getScaleBreaks(i,{minVisible:x,maxVisible:w},n._series,n.isArgumentAxis);c=p(f,!1,x,w,y).ticks}}return n._aggregationInterval=f,{interval:f,ticks:c}},createTicks:function(e){var t,n,i,o=this,l=o._renderer,c=o._options;if(e){o._isSynchronized=!1,o.updateCanvas(e),o._estimatedTickInterval=o._getTicks(new N.default.Range(this._seriesData),q.noop,!0).tickInterval,i=o._getViewportRange(),t=o._createTicksAndLabelFormat(i),n=o._getBoundaryTicks(t.ticks,i),c.showCustomBoundaryTicks&&n.length?(o._boundaryTicks=[n[0]].map(s(o,l,!0)),n.length>1&&(o._boundaryTicks=o._boundaryTicks.concat([n[1]].map(s(o,l,!1))))):o._boundaryTicks=[];var d=(t.minorTicks||[]).filter(function(e){return!n.some(function(t){return b(t)===b(e)})});o._tickInterval=t.tickInterval,o._minorTickInterval=t.minorTickInterval,o._majorTicks=t.ticks.map(a(o,l,o._getSkippedCategory(t.ticks))),o._minorTicks=d.map(r(o,l)),o._correctedBreaks=t.breaks,o.correctTicksOnDeprecated(),o._reinitTranslator(i)}},_reinitTranslator:function(e){var t=this,n=e.min,i=e.max,o=e.minVisible,a=e.maxVisible,r=e.interval,s=t._majorTicks,l=s.length,c=t._translator; t._isSynchronized||(t._options.type!==E.default.discrete&&(!l||t._options.skipViewportExtending||(0,T.isDefined)(t._zoomArgs)&&t.isArgumentAxis||(s[0].value1&&s[l-1].value>e.maxVisible&&(a=s[l-1].value)),r=t._calculateRangeInterval(t.calculateInterval(a,o),r),e.addRange({minVisible:o,maxVisible:a,interval:r}),(0,T.isDefined)(n)&&(0,T.isDefined)(i)&&n.valueOf()===i.valueOf()&&(e.min=e.max=n)),e.breaks=t._correctedBreaks,c.updateBusinessRange(e))},_getViewportRange:function(){var e=new N.default.Range(this._seriesData),t=this._zoomArgs;return e=this._applyMargins(e),(0,T.isDefined)(t)&&((0,T.isDefined)(t.min)||(0,T.isDefined)(t.max))&&((0,T.isDefined)(t.min)&&(e.minVisible=t.min),(0,T.isDefined)(t.max)&&(e.maxVisible=t.max),this.isArgumentAxis||(e=this._applyMargins(e))),e},setMarginOptions:function(e){this._marginOptions=e},_calculateRangeInterval:function(e,t){var n="datetime"===this._options.dataType,i=[],o=function(e){(0,T.isDefined)(e)&&i.push(n?(0,G.dateToMilliseconds)(e):e)};return o(this._tickInterval),o(this._estimatedTickInterval),(0,T.isDefined)(t)&&i.push(t),o(this._aggregationInterval),this._calculateWorkWeekInterval(te.apply(this,i))},_calculateWorkWeekInterval:function(e){var t=this._options;if("datetime"===t.dataType&&t.workdaysOnly&&e){var n=t.workWeek.length*ue.day,i=ue.week-n;if(n!==e&&i=e?ue.day:e-i*o}else i>=e&&e>ue.day&&(e=ue.day)}return e},_applyMargins:function(e){function t(e,t,n){return(0,T.isDefined)(n)||a.percentStick&&1===J(e)&&!v||(e=h(e,t)),e}var n,i=this,o=i._options,a=(0,T.isDefined)(i._marginOptions)?i._marginOptions:{},r=a.size,s=0,l=o.type,c=o.valueMarginsEnabled&&l!==E.default.discrete&&"semidiscrete"!==l,d=o.minValueMargin,u=o.maxValueMargin,h=m(e,!i.isArgumentAxis),p=e.minVisible,f=e.maxVisible,g=e.interval,_=i.calculateInterval(f,p)-(i._breaks||[]).reduce(function(e,t){return e+=i.calculateInterval(t.to,t.from)},0),v=this.isArgumentAxis,x=!v&&a.checkInterval;return c&&((0,T.isDefined)(d)&&(p=h(p,-_*d)),(0,T.isDefined)(u)&&(f=h(f,_*u)),(0,T.isDefined)(d)&&(0,T.isDefined)(u)||(v&&a.checkInterval&&(0===_?g=0:(g=i._calculateRangeInterval(_,e.interval),s=g/2)),r&&(n=1/(i._getScreenDelta()/r-1)/2,s=ee(s,_*(n>1?n/10:n))),0!==_&&(p=t(p,-s,d),f=t(f,s,u),_=f-p,p=y(p,a,_,Q.floor),f=y(f,a,_,Q.ceil))),e.addRange({minVisible:p,maxVisible:f,interval:g,isSpacedMargin:0!==s,checkMinDataVisibility:x&&!(0,T.isDefined)(o.min)&&p.valueOf()>0,checkMaxDataVisibility:x&&!(0,T.isDefined)(o.max)&&f.valueOf()<0})),e},correctTicksOnDeprecated:function(){var e=this._options.label.overlappingBehavior,t=this._majorTicks,n=t.length;n&&(t[0].withoutLabel=e.hideFirstLabel,t[n-1].withoutLabel=e.hideLastLabel,t[0].withoutPath=e.hideFirstTick,t[n-1].withoutPath=e.hideLastTick)},draw:function(e,t){var n=this,i=n._getGridLineDrawer(t||{visible:!1});n.createTicks(e),n._clearAxisGroups(),c(n._majorTicks),c(n._minorTicks),c(n._boundaryTicks),n._drawAxis(),n._drawTitle(),d(n._majorTicks),d(n._minorTicks),d(n._boundaryTicks),u(n._majorTicks,i),u(n._minorTicks,i),l(n._majorTicks,"drawLabel",n._getViewportRange()),n._outsideConstantLines=n._drawConstantLines("outside"),n._insideConstantLines=n._drawConstantLines("inside"),n._strips=n._drawStrips(),n._dateMarkers=n._drawDateMarkers()||[],n._axisGroup.append(n._axesContainerGroup),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.inside.append(n._constantLinesGroup),n._axisConstantLineGroups.outside1.append(n._constantLinesGroup),n._axisConstantLineGroups.outside2.append(n._constantLinesGroup)),n._measureTitle(),f(n._majorTicks),f(n._outsideConstantLines),f(n._insideConstantLines),f(n._strips),f(n._dateMarkers),n._adjustConstantLineLabels(n._insideConstantLines),n._adjustStripLabels();var o=n._constantLabelOffset=n._adjustConstantLineLabels(n._outsideConstantLines);n._translator.getBusinessRange().stubData||(n._setLabelsPlacement(),o=n._adjustLabels(o)),o=n._adjustDateMarkers(o),n._adjustTitle(o)},_measureTitle:q.noop,updateSize:function(e){var t=this;t.updateCanvas(e),t._reinitTranslator(t._getViewportRange());var n=t._getCanvasStartEnd();c(t._majorTicks),c(t._minorTicks),c(t._boundaryTicks),g(t._majorTicks),g(t._minorTicks),g(t._boundaryTicks),t._updateAxisElementPosition(),h(t._majorTicks),h(t._minorTicks),h(t._boundaryTicks),l(t._majorTicks,"updateLabelPosition"),t._outsideConstantLines.concat(t._insideConstantLines||[]).forEach(function(e){var i=t._getConstantLinePos(e.options.value,n.start,n.end).value;e.label&&e.label.attr(t._getConstantLineLabelsCoords(i,e.labelOptions)),e.line&&e.line.attr(t._getConstantLineGraphicAttributes(i))}),(t._strips||[]).forEach(function(e){var i=t._translator.getBusinessRange(),o=t._getStripPos(e.options.startValue,e.options.endValue,n.start,n.end,i);e.label&&e.label.attr(t._getStripLabelCoords(o.from,o.to,e.options.label)),e.rect&&e.rect.attr(t._getStripGraphicAttributes(o.from,o.to))}),t._updateTitleCoords(),t._checkTitleOverflow(),p(t._majorTicks),p(t._minorTicks)},applyClipRects:function(e,t){this._axisGroup.attr({"clip-path":t}),this._axisStripGroup.attr({"clip-path":e})},validate:function(){var e=this,t=e._options,n=e.isArgumentAxis?t.argumentType:t.valueType,i=n?R.default.getParser(n):function(e){return e};e.parser=i,t.dataType=n,void 0!==t.min&&(t.min=e._validateUnit(t.min,"E2106")),void 0!==t.max&&(t.max=e._validateUnit(t.max,"E2106"))},zoom:function(e,t,n){var i=this,o=i._options,a=o.min,r=o.max,s=o.type===E.default.discrete,l=i.getTranslator();return n=n||s,e=i._validateUnit(e),t=i._validateUnit(t),!s&&(0,T.isDefined)(e)&&(0,T.isDefined)(t)&&e>t&&(t=[e,e=t][0]),n||(void 0!==a&&(e=a>e?a:e,t=a>t?a:t),void 0!==r&&(t=rs?l:s),u=(0,T.isDefined)(i.min)&&e?i.min:c,h=(0,T.isDefined)(i.max)&&e?i.max:d,(0,T.isDefined)(r)&&(c=(0,T.isDefined)(c)&&cr?d:r)):(u=(0,T.isDefined)(i.min)&&e?i.min:s,h=(0,T.isDefined)(i.max)&&e?i.max:l),{categories:o.categories,dataType:o.dataType,axisType:a,base:o.logarithmBase,invert:o.inverted,min:c,max:d,minVisible:u,maxVisible:h}},getFullTicks:function(){var e=this._majorTicks||[];return this._options.type===E.default.discrete?X(e):X(e.concat(this._minorTicks,this._boundaryTicks)).sort(function(e,t){return b(e)-b(t)})},measureLabels:function(e,t){var n,i,o,a,r,s,l=this,c=l._options,d=c.visible?c.width:0,u=t?c.label.indentFromAxis+.5*c.tick.length:0;return c.label.visible&&l._axisElementsGroup?(l._majorTicks?n=X(l._majorTicks):(this.updateCanvas(e),n=l._createTicksAndLabelFormat(this._getViewportRange(),q.noop),r=n.tickInterval,n=n.ticks),s=l._getViewportRange(),i=n.reduce(function(e,t,i){var o=l.formatLabel(t,c.label,s,void 0,r,n);return e.length1&&e.some(s)&&o._applyLabelMode(t,n,e,i),"hide"===t&&o._checkBoundedLabelsOverlapping(n,r,e)}},_applyLabelMode:function(e,t,n,i,o){var a,r,s,l=this,c=l._majorTicks,d=l._options.label,u=i.rotationAngle;switch(e){case"rotate":d.userAlignment||(r=u<0?se:re,u%90===0&&(r=le)),t=o?t:l._getStep(n,u),s=function(e){e.label.rotate(u),e.labelRotationAngle=u,r&&(e.labelAlignment=r)},w(c,t,s);break;case"stagger":a=l._getMaxLabelHeight(n,i.staggeringSpacing),s=function(e,n){n/(t-1)%2!==0&&(e.labelOffset=a)},w(c,t-1,s);break;case"auto":case"_auto":2===t?l._applyLabelMode("stagger",t,n,i):l._applyLabelMode("rotate",t,n,{rotationAngle:x(n,d)});break;default:w(c,t)}},getMarkerTrackers:q.noop,_drawDateMarkers:q.noop,_adjustDateMarkers:q.noop,coordsIn:q.noop,areCoordsOutsideAxis:q.noop,_getSkippedCategory:q.noop,_initAxisPositions:q.noop,_drawTitle:q.noop,_updateTitleCoords:q.noop,_adjustConstantLineLabels:q.noop,_createTranslator:function(){return new H.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}},_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,t=e._getCanvasStartEnd(),n=e._breaks,i=n?n.length:0,o=Q.abs(t.start-t.end);return o-(i?n[i-1].cumulativeWidth:0)},_getScaleBreaks:function(){return[]},_adjustTitle:q.noop,_checkTitleOverflow:q.noop,getSpiderTicks:q.noop,setSpiderTicks:q.noop,_checkBoundedLabelsOverlapping:q.noop,drawScaleBreaks:q.noop,getCategoriesSorter:function(){return this._options.categoriesSortingMethod}}},function(e,t,n){var i=n(16).map;e.exports={logarithmic:"logarithmic",discrete:"discrete",numeric:"numeric",left:"left",right:"right",top:"top",bottom:"bottom",center:"center",canvasPositionPrefix:"canvas_position_",canvasPositionTop:"canvas_position_top",canvasPositionBottom:"canvas_position_bottom",canvasPositionLeft:"canvas_position_left",canvasPositionRight:"canvas_position_right",canvasPositionStart:"canvas_position_start",canvasPositionEnd:"canvas_position_end",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=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,c=t.x,d=e.width,u=t.width;return"left"===i?(l+=d/2,c+=u/2):"right"===i&&(l-=d/2,c-=u/2),o=r?c+u+n>l:l+d+n>c,a=s?t.y+t.height>e.y:e.y+e.height>t.y,o&&a}}},function(e,t,n){function i(e,t){return I(e)&&I(t)&&e.valueOf()===t.valueOf()}function o(e,t){var n,i,o,a,r="logarithmic"===t.axisType?function(e){return k(e,t.base)}:function(e){return e},s=[],l=e.length,c=0;for(a=0;aa.valueOf()?a:new Date(n)):((0!==r||u)&&(r=ta?a:n)),{base:l,rangeMin:o,rangeMax:a,rangeMinVisible:r,rangeMaxVisible:s}}function r(e){var t=y.isDate(e.min)||y.isDate(e.max);return t?A:E}function s(e){var t=this.getBusinessRange();return i(t.min,t.max)&&this.isEqualRange(e)}function l(e){var t=this,n=t.getBusinessRange(),i=a(n),o=r(n)/100,s=new C.Range(e);return"discrete"!==n.axisType&&(e&&"logarithmic"===n.axisType&&(s.min=s.min&&k(s.min,n.base),s.max=s.max&&k(s.max,n.base)),e&&(!I(s.min)||T(s.min-i.rangeMin)<=o)&&(!I(s.max)||T(s.max-i.rangeMax)<=o))}function c(e,t,n,i,o){var a=this,r=a.getBusinessRange(),s="discrete"===r.axisType,l=a.scrollHasExtremePosition(e,!1),c=a.scrollHasExtremePosition(e,!0),d=a.checkScrollForOriginalScale(e),u=l&&((r.rotated?n>0:n<0)||1!==t),h=c&&((r.rotated?n<0:n>0)||1!==t);return 2===i&&1===t||(o||s||!this.isEqualRange({min:r.minVisible,max:r.maxVisible}))&&!l&&!c||!d&&(u||h)||d&&t>1}function d(e){return this.scrollHasExtremePosition(e,!1)&&this.scrollHasExtremePosition(e,!0)}function u(e,t){var n,i,o=this,a=o.getBusinessRange(),s="discrete"===a.axisType,l=s?a.categories[0]:a.min,c=s?a.categories[a.categories.length-1]:a.max,d=l===c,u=!a.invert&&t||a.invert&&!t,h=u?c:l,p=u?a.maxVisible:a.minVisible;return s?!I(p)||h.valueOf()===p.valueOf():("logarithmic"===a.axisType&&(h=b.getLog(h,a.base),p=b.getLog(p,a.base)),n=h.valueOf()===p.valueOf()?0:r(a),i=d?Math.abs(h+(u?1:-1)*n-p):Math.abs(h-p),i*o._canvasOptions.ratioOfCanvasRanget[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[o]&&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 p,f=n(0).extend,g=n(3).each,_=n(301),m=n(677),v=n(678),x=n(679),w=n(680),b=n(16),y=n(1),C=n(134),k=b.getLog,S=b.getPower,I=y.isDefined,T=Math.abs,D=["width","height","left","top","bottom","right"],E=1,A=6e4,B=n(4).noop,O=n(23).addInterval,M=function(e){return g(D,function(t,n){e[n]=parseInt(e[n])||0}),e},P=function(e){var t={};return e.forEach(function(e,n){t[e.valueOf()]=n}),t},R=function(e){function t(t,n){!I(e[t])&&I(e[n])&&(e[t]=e[n])}return t("minVisible","min"),t("maxVisible","max"),e};t.Translator2D=p=function(e,t,n){this.update(e,t,n)},p.prototype={constructor:p,reinit:function(){var e=this,t=e._options,n=e._businessRange,i=n.categories||[],o={},a=e._prepareCanvasOptions(),r=b.getCategoriesInfo(i,n.minVisible,n.maxVisible).categories,s=r.length;switch(n.axisType){case"logarithmic":o=w;break;case"semidiscrete":o=v,a.ratioOfCanvasRange=a.canvasLength/(O(a.rangeMaxVisible,t.interval)-a.rangeMinVisible);break;case"discrete":o=m,e._categories=i,a.interval=e._getDiscreteInterval(t.addSpiderCategory?s+1:s,a),e._categoriesToPoints=P(i,a.invert),s&&(a.startPointIndex=e._categoriesToPoints[r[0].valueOf()],e.visibleCategories=r);break;default:o="datetime"===n.dataType?x:_}f(e,o),e._conversionValue=t.conversionValue?function(e){return e}:function(e){return Math.round(e)},e._calculateSpecialValues(),e._checkingMethodsAboutBreaks=[h(!1),h(e.isInverted())],e._translateBreaks()},_translateBreaks:function(){var e,t,n,i,o=this._breaks,a=this._options.breaksSize;if(void 0!==o)for(e=0,i=o.length;e0?t.canvasLength/n:t.canvasLength},_prepareCanvasOptions:function(){var e,t=this,n=t._businessRange,i=t._canvasOptions=a(n),o=t._canvas,r=t._breaks;return t._options.isHorizontal?(i.startPoint=o.left,e=o.width,i.endPoint=o.width-o.right,i.invert=n.invert):(i.startPoint=o.top,e=o.height,i.endPoint=o.height-o.bottom,i.invert=!n.invert),t.canvasLength=i.canvasLength=i.endPoint-i.startPoint,i.rangeDoubleError=Math.pow(10,S(i.rangeMax-i.rangeMin)-S(e)-2),i.ratioOfCanvasRange=i.canvasLength/(i.rangeMaxVisible-i.rangeMinVisible),void 0!==r&&(i.ratioOfCanvasRange=(i.canvasLength-r[r.length-1].cumulativeWidth)/(i.rangeMaxVisible-i.rangeMinVisible-r[r.length-1].length)),i},updateCanvas:function(e){this._canvas=M(e),this.reinit()},updateBusinessRange:function(e){var t=this,n=e.breaks||[];t._businessRange=R(e),t._breaks=n.length?o(n,t._businessRange):void 0,t.reinit()},update:function(e,t,n){var i=this;i._options=f(i._options||{},n),i._canvas=M(t),i.updateBusinessRange(e)},getBusinessRange:function(){return this._businessRange},getCanvasVisibleArea:function(){return{min:this._canvasOptions.startPoint,max:this._canvasOptions.endPoint}},_calculateSpecialValues:function(){var e,t,n,i=this,o=i._canvasOptions,a=o.startPoint,r=o.endPoint,s=i._businessRange,l=s.minVisible,c=s.maxVisible;l<=0&&c>=0?(i.sc={},t=i.translate(0)):(e=s.invert^(l<=0&&c<=0),t=i._options.isHorizontal?e?r:a:e?a:r),n=a+o.canvasLength/2,i.sc={canvas_position_default:t,canvas_position_left:a,canvas_position_top:a,canvas_position_center:n,canvas_position_middle:n,canvas_position_right:r,canvas_position_bottom:r,canvas_position_start:o.invert?r:a,canvas_position_end:o.invert?a:r}},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.untranslate(t.min+e);return T(this.untranslate(t.min)-(I(n)?n:this.untranslate(t.max)))},checkMinBarSize:function(e,t,n){return T(e)=0?t:-t:e},translate:B,untranslate:B,getInterval:B,zoom:B,getMinScale:B,zoomArgsIsEqualCanvas:s,isEqualRange:l,checkScrollForOriginalScale:d,scrollHasExtremePosition:u,checkGestureEventsForScaleEdges:c,getRange:function(){return[this.untranslate(this._canvasOptions.startPoint,-1),this.untranslate(this._canvasOptions.endPoint,1)]},isEmptyValueRange:function(){return this._businessRange.stubData},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)}}},function(e,t,n){var i=n(1).isDefined,o=Math.round;e.exports={translate:function(e,t){var n=this,o=n.translateSpecialCase(e);return i(o)?o:isNaN(e)?null:n.to(e,t)},untranslate:function(e,t,n,o){var a=this,r=a._canvasOptions,s=r.startPoint;return!n&&(er.endPoint)||!i(r.rangeMin)||!i(r.rangeMax)?null:a.from(e,o)},getInterval:function(){return o(this._canvasOptions.ratioOfCanvasRange*(this._businessRange.interval||Math.abs(this._canvasOptions.rangeMax-this._canvasOptions.rangeMin)))},_getValue:function(e){return e},zoom:function(e,t){var n=this,i=n._canvasOptions,o=i.startPoint,a=i.endPoint,r=(o+e)/t,s=(a+e)/t,l=[n.translate(n._getValue(i.rangeMin)),n.translate(n._getValue(i.rangeMax))],c=Math.min(l[0],l[1]),d=Math.max(l[0],l[1]);return c>r&&(s-=r-c,r=c),d=n.rangeMin&&e.valueOf()-n.rangeDoubleError<=n.rangeMax},getCorrectValue:function(e,t){var n,i=this,o=i._breaks;return e=i._parse(e),i._breaks&&(n=i._checkValueAboutBreaks(o,e,"trFrom","trTo",i._checkingMethodsAboutBreaks[0]),n.inBreak===!0)?t>0?n.break.trTo:n.break.trFrom:e},_parse:function(e){return Number(e)},to:function(e,t){var n=this,o=n._canvasOptions,a=n._breaks,r={length:0},s=0;return void 0!==a&&(r=n._checkValueAboutBreaks(a,e,"trFrom","trTo",n._checkingMethodsAboutBreaks[0]),s=i(r.breaksSize)?r.breaksSize:0),r.inBreak===!0?t>0?r.break.start:t<0?r.break.end:null:n._conversionValue(n._calculateProjection((e-o.rangeMinVisible-r.length)*o.ratioOfCanvasRange+s))},from:function(e,t){var n=this,o=n._breaks,a={length:0},r=n._canvasOptions,s=r.startPoint,l=0;return void 0!==o&&(a=n._checkValueAboutBreaks(o,e,"start","end",n._checkingMethodsAboutBreaks[1]),l=i(a.breaksSize)?a.breaksSize:0),a.inBreak===!0?t>0?a.break.trTo:t<0?a.break.trFrom:null:this._calculateUnProjection((e-s-l)/r.ratioOfCanvasRange+a.length)},_add:function(e,t,n){return e+t*n},isValueProlonged:!1}},function(e,t,n){function i(e){var t,n,i=e.x,o=e.y,a=m[e.type],r=e.textWidth+2*e.horMargin,s=e.textHeight+2*e.verMargin,c=i,d=o;return t=n=e.tailLength,1&a[0]?n=Math.min(n,s/3):t=Math.min(t,r/3),{cx:l(c+a[0]*t+(a[0]+a[2])*r/2),cy:l(d+a[1]*n+(a[1]+a[3])*s/2),points:[l(i),l(o),l(i+=a[0]*(r+t)),l(o+=a[1]*(s+n)),l(i+=a[2]*r),l(o+=a[3]*s),l(i+=a[4]*r),l(o+=a[5]*s),l(i+=a[6]*(r-t)),l(o+=a[7]*(s-n))]}}var o=n(4).noop,a=n(3).each,r=isFinite,s=Number,l=Math.round,c=n(169),d=c.formatValue,u=c.getSampleText,h=n(16).patchFontOptions,p=n(0).extend,f=n(10),g=f.inherit({ctor:function(e){var t=this;a(e,function(e,n){t["_"+e]=n}),t._init()},dispose:function(){var e=this;return e._dispose(),a(e,function(t){e[t]=null}),e},getOffset:function(){return s(this._options.offset)||0}}),_=g.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?s(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:o,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&&(p(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,a=null;return void 0===e?i._currentValue:(null===e?(a="hidden",i._currentValue=e):(n=i._translator.adjust(e),i._currentValue!==n&&r(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:a}),i)},_isEnabled:null,_isVisible:null,_render:null,_clear:null,_move:null}),m={};m["right-bottom"]=m.rb=[0,-1,-1,0,0,1,1,0],m["bottom-right"]=m.br=[-1,0,0,-1,1,0,0,1],m["left-bottom"]=m.lb=[0,-1,1,0,0,1,-1,0],m["bottom-left"]=m.bl=[1,0,0,-1,-1,0,0,1],m["left-top"]=m.lt=[0,1,1,0,0,-1,-1,0],m["top-left"]=m.tl=[1,0,0,1,-1,0,0,-1],m["right-top"]=m.rt=[0,1,-1,0,0,-1,1,0],m["top-right"]=m.tr=[-1,0,0,1,1,0,0,-1];var v=_.inherit({_move:function(){var e,t,n=this,o=n._getTextCloudOptions(),a=d(n._actualValue,n._options.text);n._text.attr({text:a}),e=n._text.getBBox(),t=i({x:o.x,y:o.y,textWidth:e.width||a.length*n._textUnitWidth,textHeight:e.height||n._textHeight,horMargin:n._options.horizontalOffset,verMargin:n._options.verticalOffset,tailLength:n._options.arrowLength,type:o.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,o=this;o._textVerticalOffset||(e=o._createRoot().append(o._owner),i=u(o._translator,o._options.text),t=o._renderer.text(i,0,0).attr({align:"center"}).css(h(o._options.text.font)).append(e),n=t.getBBox(),e.remove(),o._textVerticalOffset=-n.y-n.height/2,o._textWidth=n.width,o._textHeight=n.height,o._textUnitWidth=o._textWidth/i.length,o._textFullWidth=o._textWidth+2*o._options.horizontalOffset,o._textFullHeight=o._textHeight+2*o._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(h(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}}}),x=_.inherit({_measureText:function(){var e,t,n,i=this;i._hasText=i._isTextVisible(),i._hasText&&!i._textVerticalOffset&&(e=i._createRoot().append(i._owner),t=i._renderer.text(u(i._translator,i._options.text),0,0).attr({"class":"dxg-text",align:"center"}).css(h(i._options.text.font)).append(e),n=t.getBBox(),e.remove(),i._textVerticalOffset=-n.y-n.height/2,i._textWidth=n.width,i._textHeight=n.height)},_move:function(){var e=this;e._updateBarItemsPositions(),e._hasText&&(e._text.attr({text:d(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(),e=i.backgroundColor||"none","none"!==e&&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=p({},t,{color:e.color})),h(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=g,t.BaseIndicator=_,t.BaseTextCloudMarker=v,t.BaseRangeBar=x},function(e,t,n){var i=n(16).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){var i=n(2),o=n(6).getWindow(),a=n(5),r=n(39),s=n(8),l=n(24),c=n(36).dasherize,d=n(0).extend,u=n(58),h=n(9),p=n(25),f=n(78),g=n(77),_=n(1).isFunction,m=n(4).noop,v="dxDraggable",x=h.addNamespace(f.start,v),w=h.addNamespace(f.move,v),b=h.addNamespace(f.end,v),y=h.addNamespace(p.down,v),C=c(v),k=C+"-dragging",S=u.inherit({_getDefaultOptions:function(){return d(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[x]=this._dragStartHandler.bind(this),t[w]=this._dragHandler.bind(this),t[b]=this._dragEndHandler.bind(this),n&&(t[y]=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 *"))return void(e.cancel=!0);var n=this._getArea(),i=this._getAreaOffset(n),o=this._getBoundOffset(),a=n.outerWidth(),r=n.outerHeight(),s=t.width(),c=t.height();this._toggleDraggingClass(!0);var d={left:t.offset().left-i.left,top:t.offset().top-i.top};this._startPosition=l.locate(t),e.maxLeftOffset=d.left-o.left,e.maxRightOffset=a-d.left-s-o.right,e.maxTopOffset=d.top-o.top,e.maxBottomOffset=r-d.top-c-o.bottom, this._getAction("onDragStart")({event:e})},_getAreaOffset:function(e){var t=e&&g.offset(e);return t?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){e.exports=n(507)},function(e,t,n){var i=n(2),o=n(5),a=n(14),r=n(0).extend,s=n(67),l=n(8),c=n(46),d=n(9),u=n(96),h=n(20),p=n(31),f=n(15),g=n(18),_=n(114),m=n(7).Deferred,v="dx-switch",x=v+"-wrapper",w=v+"-container",b=v+"-inner",y=v+"-handle",C=v+"-on-value",k=v+"-on",S=v+"-off",I=100,T=c.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,onText:f.format("dxSwitch-onText"),offText:f.format("dxSwitch-offText"),value:!1,useInkRipple:!1,_animateHandle:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return h.isAndroid5()},options:{useInkRipple:!0}},{device:function(e){return h.isIos7()},options:{_animateHandle:!1}}])},_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){var n=(t-this._offsetDirection()*Number(!e))/2;return 100*n+"%"},_getHandleOffset:function(e,t){if(this.option("rtlEnabled")&&(e=!e),e){var n=-100+100*-t;return n+"%"}return 100*-t+"%"},_renderSwitchInner:function(){this._$switchInner=i("
").addClass(b).appendTo(this._$switchContainer),this._$handle=i("
").addClass(y).appendTo(this._$switchInner)},_renderLabels:function(){this._$labelOn=i("
").addClass(k).prependTo(this._$switchInner),this._$labelOff=i("
").addClass(S).appendTo(this._$switchInner),this._setLabelsText()},_renderContainers:function(){this._$switchContainer=i("
").addClass(w),this._$switchWrapper=i("
").addClass(x).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("").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=d.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={},c={},d={},u={};l.transform=" translateX("+i+")",c.transform=" translateX("+o+")",d.transform=" translateX("+a+")",u.transform=" translateX("+r+")",this.$element().toggleClass(C,n),p.animate(this._$handle,{from:d,to:u,duration:I}),p.animate(this._$switchInner,{from:l,to:c,duration:I,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,u.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:I}),p.animate(this._$switchInner,{to:i,duration:I,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(C,e),this._$submitElement.val(e),this.setAria({pressed:e,label:e?this.option("onText"):this.option("offText")})},_setLabelsText:function(){this._$labelOn&&this._$labelOn.text(this.option("onText")),this._$labelOff&&this._$labelOff.text(this.option("offText"))},_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"onText":case"offText":this._setLabelsText();break;case"value":this._renderValue(),this.callBase(e);break;case"_animateHandle":break;default:this.callBase(e)}}});l("dxSwitch",T),e.exports=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(14),r=n(37),s=n(5),l=n(8),c=n(30),d=n(4),u=d.noop,h=n(259).SelectionFilterCreator,p=n(7),f=p.when,g=p.Deferred,_=n(13).getPublicElement,m=n(1),v=m.isDefined,x=n(6),w=n(0).extend,b=n(11).inArray,y=n(3).each,C=n(15),k=n(9),S=n(18),I=n(127),T=n(268),D=n(65),E="dxTagData",A="dx-tagbox",B="dx-tag-container",O="dx-tag",M="dx-tagbox-multi-tag",P="dx-tag-custom",R="dx-tag-remove-button",V="dx-tagbox-only-select",F="dx-tagbox-single-line",L="dx-tagbox-popup-wrapper",H="dx-list-select-all-checkbox",z="dx-tag-content",N="dx-tagbox-default-template",$="dx-tagbox-custom-template",W="dx-native-click",G="dx-texteditor-container",q=-.3,j=I.inherit({_supportedKeys:function(){var e=this.callBase();return w(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"),n=this.option("acceptCustomValue")&&!t;return n?(e.preventDefault(),void(""!==this._searchValue()&&this._customItemAddedHandler())):void(this.option("opened")&&(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)}}}})},_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]("."+O);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")&&x.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&&!c.webkit,o=!t||c.webkit||c.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();if(n&&(i+=this._$focusedTag.outerWidth(!0)-this._$tagsContainer.outerWidth()),n^i<0){var a=t&&c.msie?-1:1;o+=i*a}return o},_setNextValue:u,_getDefaultOptions:function(){return w(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)})},_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("
").addClass(z);o("").text(t.text||t).appendTo(n),o("
").addClass(R).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("