devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
10 lines • 1.33 MB
JavaScript
/*!
* DevExtreme (dx.viz.js)
* Version: 19.2.6
* Build date: Thu Jan 30 2020
*
* Copyright (c) 2012 - 2020 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 r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.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=896)}([function(e,t,n){var i=n(1).isPlainObject,r=function(e,t,n){e=e||{};for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var r=t[i];i in e&&!n||(e[i]=r)}return e},o=function e(t){t=t||{};var n=1,r=!1;for("boolean"==typeof t&&(r=t,t=arguments[1]||{},n++);n<arguments.length;n++){var o=arguments[n];if(null!=o)for(var a in o){var s,l=t[a],u=o[a],c=!1;"__proto__"!==a&&t!==u&&(r&&u&&(i(u)||(c=Array.isArray(u)))?(s=c?l&&Array.isArray(l)?l:[]:l&&i(l)?l:{},t[a]=e(r,s,u)):void 0!==u&&(t[a]=u))}}return t};t.extend=o,t.extendFromObject=r},function(e,t,n){function i(e){return(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})(e)}var r={"[object Array]":"array","[object Date]":"date","[object Object]":"object","[object String]":"string","[object Null]":"null"},o=function(e){var t=Object.prototype.toString.call(e);return"object"===i(e)?r[t]||"object":i(e)},a=function(e){return"boolean"==typeof e},s=function(e){return h(e)&&e.toString().indexOf("e")!==-1},l=function(e){return"date"===o(e)},u=function(e){return null!==e&&void 0!==e},c=function(e){return"function"==typeof e},d=function(e){return"string"==typeof e},h=function(e){return"number"==typeof e&&isFinite(e)||!isNaN(e-parseFloat(e))},f=function(e){return"object"===o(e)},p=function(e){var t;for(t in e)return!1;return!0},g=function(e){if(!e||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e),n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&Object.toString.call(n)===Object.toString.call(Object)},_=function(e){return["object","array","function"].indexOf(o(e))===-1},m=function(e){return null!=e&&e===e.window},v=function(e){return!(!e.jquery&&!e.dxRenderer)},y=function(e){return e&&c(e.then)},b=function(e){return e&&c(e.done)&&c(e.fail)};t.isBoolean=a,t.isExponential=s,t.isDate=l,t.isDefined=u,t.isFunction=c,t.isString=d,t.isNumeric=h,t.isObject=f,t.isEmptyObject=p,t.isPlainObject=g,t.isPrimitive=_,t.isWindow=m,t.isRenderer=v,t.isPromise=y,t.isDeferred=b,t.type=o},function(e,t,n){var i=n(216);e.exports=i.get()},function(e,t,n){var i=function(e,t){if(Array.isArray(e))return e.map(t);var n=[];for(var i in e)n.push(t(e[i],i));return n},r=function(e,t){if(e){if("length"in e)for(var n=0;n<e.length&&t.call(e[n],n,e[n])!==!1;n++);else for(var i in e)if(t.call(e[i],i,e[i])===!1)break;return e}},o=function(e,t){if(e&&"length"in e&&0!==e.length)for(var n=e.length-1;n>=0&&t.call(e[n],n,e[n])!==!1;n--);};t.map=i,t.each=r,t.reverseEach=o},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){return(r="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})(e)}var o,a=n(27),s=i(a),l=n(34),u=i(l),c=n(6),d=n(19),h=n(3),f=n(1),p=function(e,t){return(0,f.isDefined)(e)?e:t},g=function(e,t){var n,i=new c.Deferred,r=t||this,o={promise:i.promise(),abort:function(){clearTimeout(n),i.rejectWith(r)}},a=function(){var t=e.call(r);t&&t.done&&(0,f.isFunction)(t.done)?t.done(function(){i.resolveWith(r)}):i.resolveWith(r)};return n=(arguments[2]||setTimeout)(a,"number"==typeof t?t:0),o},_=[],m=[],v=[],y=function(e,t,n){if(o&&o!==e)return _.push(t),m.push(e),n=n||new c.Deferred,v.push(n),n;var i=o,r=v.length;o=e;var a=t();return a||(v.length>r?a=c.when.apply(this,v.slice(r)):n&&n.resolve()),o=i,n&&a&&a.done&&a.done(n.resolve).fail(n.reject),!o&&_.length&&("render"===m.shift()?b:x)(_.shift(),v.shift()),a||(0,c.when)()},b=function(e,t){return y("render",e,t)},x=function(e,t){return y("update",e,t)},S=function(e){return function(){var t=this;return y("render",function(){return e.call(t)})}},C=function(e){return function(){var t=this;return y("update",function(){return e.call(t)})}},w=function(e,t,n){var i=[],r=0;return(0,h.each)(t,function(t,o){var a=0,s=n?n(o):o;(0,h.each)(e,function(e,t){var n=s[e];if(void 0!==n)return k(n,t)?void a++:(a=-1,!1)}),a<r||(a>r&&(i.length=0,r=a),i.push(o))}),i},k=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){var n=!1;return(0,h.each)(e,function(e,i){if(i!==t[e])return n=!0,!1}),!n}return e===t},T=function(e){switch(r(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}},E=function(e){var t=(0,f.isString)(e)?e:e.toString(),n=t.match(/[^a-zA-Z0-9_]/g);return n&&(0,h.each)(n,function(e,n){t=t.replace(n,"__"+n.charCodeAt()+"__")}),t},O=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},A=function(e,t){var n=T(e),i=t?parseFloat(n&&n[0]):parseInt(n&&n[0],10),r=t?parseFloat(n&&n[1]):parseInt(n&&n[1],10);return isFinite(i)||(i=0),isFinite(r)||(r=i),{h:i,v:r}},D=function(e){if(e instanceof u.default)return e.toString();if((0,f.isObject)(e)||Array.isArray(e))try{var t=JSON.stringify(e);return"{}"===t?e:t}catch(t){return e}return e},M=function(e){return e.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},I=function(e){var t=(0,s.default)().serverDecimalSeparator;return(0,f.isDefined)(e)&&(e=e.toString().replace(".",t)),e},P=function(){},R=function(){return(new c.Deferred).resolve().promise()},L=function(e,t,n){for(var i,r=[],o=!n,a=0;a<e.length;a++)i=!!t(e[a],a),i===o&&r.push(e[a]);return r},V=function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!z(e[i],t[i],n+1))return!1;return!0},B=function(e,t,n,i){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&!z(e[r],t[r],n+1,i))return!1;for(var o in t)if(!(o in e))return!1;return!0},F=3,z=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];e=(0,d.toComparable)(e,!0),t=(0,d.toComparable)(t,!0);var r=i?e===t:e==t;return!!(r||n>=F)||((0,f.isObject)(e)&&(0,f.isObject)(t)?B(e,t,n,i):!(!Array.isArray(e)||!Array.isArray(t))&&V(e,t,n))};t.ensureDefined=p,t.executeAsync=g,t.deferRender=b,t.deferRenderer=S,t.deferUpdate=x,t.deferUpdater=C,t.pairToObject=A,t.splitPair=T,t.findBestMatches=w,t.normalizeKey=E,t.denormalizeKey=O,t.getKeyHash=D,t.escapeRegExp=M,t.applyServerDecimalSeparator=I,t.noop=P,t.asyncNoop=R,t.grep=L,t.equalByValue=z},function(e,t,n){function i(e){return(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})(e)}var r,o=n(114),a=n(0).extend,s=n(11),l=n(7),u=l.getWindow(),c=n(53),d=n(1),h=n(26),f=d.isWindow,p=d.isFunction,g=d.isString,_=n(21),m=n(180),v=n(217),y=n(61),b="dxEmptyEventType",x={mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},S={focusin:"focus",focusout:"blur"},C=["blur","focus","load"],w=["touchmove","wheel","mousewheel","touchstart"],k=function(e,t){return!f(e)&&"#document"!==e.nodeName&&s.elementMatches(e,t)},T=new m,E=0,O=function(){var e={};return o.add(function(t,n){e[t]=n}),{getField:function(t,n){return e[t]&&e[t][n]},callMethod:function(t,n,i,r){return e[t]&&e[t][n]&&e[t][n].apply(i,r)}}}(),A=function e(t,n){var i=t[0];if(i)if(s.isNode(i)||f(i))n.apply(j,t);else{if(g(i)||!("length"in i))throw _.Error("E0025");var r=Array.prototype.slice.call(t,0);Array.prototype.forEach.call(i,function(t){r[0]=t,e(r,n)})}},D=function(e){return function(){A(arguments,e)}},M=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0,!0}});u.addEventListener("test",null,t)}catch(e){}return e},I=y(M),P=function(e,t){var n=T.get(e);t=t||"";var i=t.split("."),o=i.slice(1),a=!!i[0];t=i[0]||b,n||(n={},T.set(e,n)),n[t]||(n[t]={handleObjects:[],nativeHandler:null});var l=n[t];return{addHandler:function(n,i,u){var c=function(i,r){var o,a,s=[i],l=i.currentTarget,c=i.relatedTarget;t in x&&(o=c&&l&&(c===l||l.contains(c))),void 0!==r&&s.push(r),O.callMethod(t,"handle",e,[i,u]),o||(a=n.apply(l,s)),a===!1&&(i.preventDefault(),i.stopPropagation())},d=function(t,n){if(!r||t.type!==r)if(t.data=u,t.delegateTarget=e,i)for(var o=t.target;o&&o!==e;)k(o,i)&&(t.currentTarget=o,c(t,n)),o=o.parentNode;else t.currentTarget=t.delegateTarget||t.target,c(t,n)},h={handler:n,wrappedHandler:d,selector:i,type:t,data:u,namespace:o.join("."),namespaces:o,guid:++E};l.handleObjects.push(h);var f,p=1===l.handleObjects.length,g=p&&a;g&&(g=!O.callMethod(t,"setup",e,[u,o,n])),g&&(l.nativeHandler=R(t),I()&&w.indexOf(t)>-1&&(f={passive:!1}),l.removeListener=s.listen(e,x[t]||t,l.nativeHandler,f)),O.callMethod(t,"add",e,[h])},removeHandler:function(i,r){var s=function(t){var a=n[t];if(!a.handleObjects.length)return void delete n[t];var s;a.handleObjects=a.handleObjects.filter(function(n){var a=o.length&&!L(n.namespaces,o)||i&&n.handler!==i||r&&n.selector!==r;return a||(s=n.handler,O.callMethod(t,"remove",e,[n])),a});var l=!a.handleObjects.length,u=l&&t!==b;u&&(O.callMethod(t,"teardown",e,[o,s]),a.nativeHandler&&a.removeListener(),delete n[t])};if(a)s(t);else for(var l in n)s(l);var u=0===Object.keys(n).length;u&&T.delete(e)},callHandlers:function(e,t){var i=!1,r=function(n){i||o.length&&!L(n.namespaces,o)||(n.wrappedHandler(e,t),i=e.isImmediatePropagationStopped())};l.handleObjects.forEach(r),o.length&&n[b]&&n[b].handleObjects.forEach(r)}}},R=function(e){return function(t,n){var i=P(this,e);t=j.Event(t),i.callHandlers(t,n)}},L=function(e,t){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])<0)return!1;return!0},V=function(e){return function(t,n,i,r,o){o||(o=r,r=void 0),"string"!=typeof i&&(r=i,i=void 0),o||"string"!=typeof n||(o=r||i,i=void 0,r=void 0),e(t,n,i,r,o)}},B=function(e){return function(t,n,i,r){"function"==typeof i&&(r=i,i=void 0),e(t,n,i,r)}},F=function(e){return function(t,n,i){"string"==typeof n&&(n={type:n}),n.target||(n.target=t),n.currentTarget=t,n.delegateTarget||(n.delegateTarget=t),!n.type&&n.originalEvent&&(n.type=n.originalEvent.type),e(t,n instanceof j.Event?n:j.Event(n),i)}},z=function(e){return function(t,n){return this instanceof j.Event?(t||(t={}),"string"==typeof t&&(t={type:t}),n||(n={}),void e.call(this,t,n)):new j.Event(t,n)}},N=function(e){var t=function(t,n){if(n&&n.indexOf(" ")>-1){var i=Array.prototype.slice.call(arguments,0);n.split(" ").forEach(function(t){i[1]=t,e.apply(this,i)})}else e.apply(this,arguments)};return function(e,n){if("object"===i(n)){var r=Array.prototype.slice.call(arguments,0);for(var o in n)r[1]=o,r[r.length-1]=n[o],t.apply(this,r)}else t.apply(this,arguments)}},H=function(e,t){var n=S[e]||e,i=function(e,t){return"click"===e&&"a"===t.localName};i(e,t)||p(t[n])&&(r=e,t[n](),r=void 0)},G=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},j=c({on:D(V(N(function(e,t,n,i,r){var o=P(e,t);o.addHandler(r,n,i)}))),one:D(V(function(e,t,n,i,r){var o=function i(){j.off(e,t,n,i),r.apply(this,arguments)};j.on(e,t,n,i,o)})),off:D(B(N(function(e,t,n,i){var r=P(e,t);r.removeHandler(i,n)}))),trigger:D(F(function(e,t,n){var i=t.type,r=P(e,t.type);O.callMethod(i,"trigger",e,[t,n]),r.callHandlers(t,n);var o=O.getField(i,"noBubble")||t.isPropagationStopped()||C.indexOf(i)!==-1;if(!o){var s=[],l=function e(t){var n=t.parentNode;n&&(s.push(n),e(n))};l(e),s.push(u);for(var c=0;s[c]&&!t.isPropagationStopped();){var d=P(s[c],t.type);d.callHandlers(a(t,{currentTarget:s[c]}),n),c++}}(e.nodeType||f(e))&&(O.callMethod(i,"_default",e,[t,n]),H(i,e))})),triggerHandler:D(F(function(e,t,n){var i=P(e,t.type);i.callHandlers(t,n)}))}),W=function(e){e&&(j.Event=e,j.Event.prototype=e.prototype)};W(z(function(e,t){var n=this,i=!1,r=!1,o=!1;a(n,e),(e instanceof j.Event||l.hasWindow()&&e instanceof u.Event)&&(n.originalEvent=e,n.currentTarget=void 0),e instanceof j.Event||a(n,{isPropagationStopped:function(){return!!(i||n.originalEvent&&n.originalEvent.propagationStopped)},stopPropagation:function(){i=!0,n.originalEvent&&n.originalEvent.stopPropagation()},isImmediatePropagationStopped:function(){return r},stopImmediatePropagation:function(){this.stopPropagation(),r=!0,n.originalEvent&&n.originalEvent.stopImmediatePropagation()},isDefaultPrevented:function(){return!!(o||n.originalEvent&&n.originalEvent.defaultPrevented)},preventDefault:function(){o=!0,n.originalEvent&&n.originalEvent.preventDefault()}}),U("which",G,n),0===e.type.indexOf("touch")&&(delete t.pageX,delete t.pageY),a(n,t),n.guid=++E}));var U=function(e,t,n){Object.defineProperty(n||j.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(U);var Y=h(),X=h();j.set=function(e){Y.fire(),j.inject(e),W(e.Event),X.fire()},j.subscribeGlobal=function(){A(arguments,V(function(){var e=arguments;j.on.apply(this,e),Y.add(function(){var t=Array.prototype.slice.call(e,0);t.splice(3,1),j.off.apply(this,t)}),X.add(function(){j.on.apply(this,e)})}))},j.forcePassiveFalseEventNames=w,j.passiveEventHandlersSupported=I,e.exports=j},function(e,t,n){var i=n(1),r=i.isPromise,o=i.isDeferred,a=n(0).extend,s=n(26),l=[{method:"resolve",handler:"done",state:"resolved"},{method:"reject",handler:"fail",state:"rejected"},{method:"notify",handler:"progress"}],u=function(){var e=this;this._state="pending",this._promise={},l.forEach(function(t){var n=t.method;this[n+"Callbacks"]=new s,this[n]=function(){return this[n+"With"](this._promise,arguments)}.bind(this),this._promise[t.handler]=function(t){if(!t)return this;var i=e[n+"Callbacks"];return i.fired()?t.apply(e[n+"Context"],e[n+"Args"]):i.add(function(e,n){t.apply(e,n)}.bind(this)),this}}.bind(this)),this._promise.always=function(e){return this.done(e).fail(e)},this._promise.catch=function(e){return this.then(null,e)},this._promise.then=function(e,t){var n=new u;return["done","fail"].forEach(function(a){var s="done"===a?e:t;this[a](function(){if(!s)return void n["done"===a?"resolve":"reject"].apply(this,arguments);var e=s&&s.apply(this,arguments);o(e)?e.done(n.resolve).fail(n.reject):r(e)?e.then(n.resolve,n.reject):n.resolve.apply(this,i.isDefined(e)?[e]:arguments)})}.bind(this)),n.promise()},this._promise.state=function(){return e._state},this._promise.promise=function(t){return t?a(t,e._promise):e._promise},this._promise.promise(this)};l.forEach(function(e){var t=e.method,n=e.state;u.prototype[t+"With"]=function(e,i){var r=this[t+"Callbacks"];return"pending"===this.state()&&(this[t+"Args"]=i,this[t+"Context"]=e,n&&(this._state=n),r.fire(e,i)),this}}),t.fromPromise=function(e,t){if(o(e))return e;if(r(e)){var n=new u;return e.then(function(){n.resolveWith.apply(n,[t].concat([[].slice.call(arguments)]))},function(){n.rejectWith.apply(n,[t].concat([[].slice.call(arguments)]))}),n}return(new u).resolveWith(t,[e])};var c=function(){if(1===arguments.length)return t.fromPromise(arguments[0]);for(var e=[].slice.call(arguments),n=[],i=0,r=new u,a=function(t){return function(o){n[t]=this,e[t]=arguments.length>1?[].slice.call(arguments):o,i++,i===e.length&&r.resolveWith(n,e)}},s=0;s<e.length;s++)o(e[s])?e[s].promise().done(a(s)).fail(r.reject):i++;return i===e.length&&r.resolveWith(n,e),r.promise()};t.setStrategy=function(e){u=e.Deferred,c=e.when},t.Deferred=function(){return new u},t.when=function(){return c.apply(this,arguments)}},function(e,t,n){var i=n(11),r="undefined"!=typeof window,o=r&&window;o||(o={},o.window=o),e.exports={hasWindow:function(){return r},getWindow:function(){return o},hasProperty:function(e){return this.hasWindow()&&e in o},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)},getNavigator:function(){return this.hasWindow()?o.navigator:{userAgent:""}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(2),o=i(r),a=n(5),s=i(a),l=n(21),u=i(l),c=n(65),d=n(0),h=n(3),f={backspace:"backspace",tab:"tab",enter:"enter",escape:"escape",pageup:"pageUp",pagedown:"pageDown",end:"end",home:"home",arrowleft:"leftArrow",arrowup:"upArrow",arrowright:"rightArrow",arrowdown:"downArrow","delete":"del"," ":"space",f:"F",a:"A","*":"asterisk","-":"minus",alt:"alt",control:"control",shift:"shift",left:"leftArrow",up:"upArrow",right:"rightArrow",down:"downArrow",multiply:"asterisk",spacebar:"space",del:"del",subtract:"minus",esc:"escape"},p={8:"backspace",9:"tab",13:"enter",27:"escape",33:"pageUp",34:"pageDown",35:"end",36:"home",37:"leftArrow",38:"upArrow",39:"rightArrow",40:"downArrow",46:"del",32:"space",70:"F",65:"A",106:"asterisk",109:"minus",189:"minus",173:"minus",16:"shift",17:"control",18:"alt"},g=function(){var e={dx:/^dx/i,mouse:/(mouse|wheel)/i,touch:/^touch/i,keyboard:/^key/i,pointer:/^(ms)?pointer/i};return function(t){var n="other";return(0,h.each)(e,function(e){if(this.test(t.type))return n=e,!1}),n}}(),_=function(e){return"dx"===g(e)},m=function(e){return"mouse"===g(e)},v=function(e){return"touch"===g(e)},y=function(e){return"pointer"===g(e)},b=function(e){return m(e)||(y(e)||_(e))&&"mouse"===e.pointerType},x=function(e){return e&&"dxmousewheel"===e.type},S=function(e){return v(e)||(y(e)||_(e))&&"touch"===e.pointerType},C=function(e){return"keyboard"===g(e)},w=function(e){return 0===e.screenX&&!e.offsetX&&0===e.pageX},k=function(e){return{x:e.pageX,y:e.pageY,time:e.timeStamp}},T=function(e,t){return{x:t.x-e.x,y:t.y-e.y,time:t.time-e.time||1}},E=function(e){return v(e)?(e.originalEvent.touches||[]).length:_(e)?(e.pointers||[]).length:0},O=function(e){var t=e.target,n=(0,o.default)(t),i=n.is("input, textarea, select");if(n.is(".dx-skip-gesture-event *, .dx-skip-gesture-event"))return!0;if(x(e)){var r=n.is("textarea")&&n.hasClass("dx-texteditor-input");if(r)return!1;var a=t.isContentEditable||t.hasAttribute("contenteditable");if(a)return!1;var s=n.is("input[type='number'], textarea, select")&&n.is(":focus");return s}return b(e)?i||e.which>1:S(e)?i&&(0,c.focused)(n):void 0},A=function(e){return e},D=function(e){A=e},M=function(e){return A(s.default.Event(e,e),e)},I=function(e,t){var n=M(e);return t&&(0,d.extend)(n,t),n},P=function(e){var t=I(e.originalEvent,e);return s.default.trigger(e.delegateTarget||t.target,t),t},R=function e(t,n){if(!n)throw u.default.Error("E0017");return"string"==typeof t?t.indexOf(" ")===-1?t+"."+n:e(t.split(/\s+/g),n):((0,h.each)(t,function(e,i){t[e]=i+"."+n}),t.join(" "))},L=function(e){var t=!!e.key,n=t?e.key:e.which;if(n)return n=t?f[n.toLowerCase()]||n:p[n]||String.fromCharCode(n)},V=function(e){return e.key||String.fromCharCode(e.which)};e.exports={eventSource:g,isPointerEvent:y,isMouseEvent:b,isDxMouseWheelEvent:x,isTouchEvent:S,isKeyboardEvent:C,isFakeClickEvent:w,hasTouches:E,eventData:k,eventDelta:T,needSkipEvent:O,createEvent:I,fireEvent:P,addNamespace:R,setEventFixMethod:D,normalizeKeyName:L,getChar:V}},function(e,t,n){var i=n(2),r=n(153),o=n(21),a=n(131),s=function(e,t,n){n?t[e]=n:n=t,a.name(n,e),r.fire(e,n)},l=function(e,t){i.fn[e]=function(n){var i,r="string"==typeof n;if(r){var a=n,s=[].slice.call(arguments).slice(1);this.each(function(){var n=t.getInstance(this);if(!n)throw o.Error("E0009",e);var r=n[a],l=r.apply(n,s);void 0===i&&(i=l)})}else this.each(function(){var e=t.getInstance(this);e?e.option(n):new t(this,n)}),i=this;return i}};r.add(l),e.exports=s},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(2),o=i(r),a=n(53),s=i(a),l=n(0),u=n(3),c=n(45),d=n(32),h=n(76),f=i(h),p=n(459),g=i(p),_=(0,l.extend)(!0,{},g.default),m=function(e,t){return e[t]||{}},v={},y=(0,s.default)({engine:function(){return"base"},_dictionary:_,load:function(e){(0,l.extend)(!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,r,o){var a,s=t._localizablePrefix+o;return r!==i&&(a=t.format(o)),a||(v[o]=(0,d.humanize)(o)),n+(a||s)})},localizeNode:function(e){var t=this;(0,o.default)(e).each(function(e,n){n.nodeType&&(3===n.nodeType?n.nodeValue=t.localizeString(n.nodeValue):(0,o.default)(n).is("iframe")||((0,u.each)(n.attributes||[],function(e,n){if("string"==typeof n.value){var i=t.localizeString(n.value);n.value!==i&&(n.value=i)}}),(0,o.default)(n).contents().each(function(e,n){t.localizeNode(n)})))})},getMessagesByLocales:function(){return this._dictionary},getDictionary:function(e){return e?v:(0,l.extend)({},v,this.getMessagesByLocales()[f.default.locale()])},getFormatter:function(e){return this._getFormatterBase(e)||this._getFormatterBase(e,"en")},_getFormatterBase:function(e,t){var n=this,i=f.default.getValueByClosestLocale(function(t){return m(n._dictionary,t)[e]});if(i)return function(){var e=1===arguments.length&&Array.isArray(arguments[0])?arguments[0].slice(0):Array.prototype.slice.call(arguments,0);return e.unshift(i),c.format.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=y},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){return(r="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})(e)}var o=n(53),a=i(o),s=n(4),l=1,u=3,c=9,d={querySelectorAll:function(e,t){return e.querySelectorAll(t)},elementMatches:function(e,t){var n=this,i=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(t){var i=e.document||e.ownerDocument;if(!i)return!1;for(var r=n.querySelectorAll(i,t),o=0;o<r.length;o++)if(r[o]===e)return!0};return i.call(e,t)},createElement:function(e,t){return t=t||this._document,t.createElement(e)},createElementNS:function(e,t,n){return n=n||this._document,n.createElementNS(e,t)},createTextNode:function(e,t){return t=t||this._document,t.createTextNode(e)},isNode:function(e){return"object"===r(e)&&"nodeType"in e},isElementNode:function(e){return e&&e.nodeType===l},isTextNode:function(e){return e&&e.nodeType===u},isDocument:function(e){return e&&e.nodeType===c},removeElement:function(e){var t=e&&e.parentNode;t&&t.removeChild(e)},insertElement:function(e,t,n){e&&t&&e!==t&&(n?e.insertBefore(t,n):e.appendChild(t))},getAttribute:function(e,t){return e.getAttribute(t)},setAttribute:function(e,t,n){e.setAttribute(t,n)},removeAttribute:function(e,t){e.removeAttribute(t)},setProperty:function(e,t,n){e[t]=n},setText:function(e,t){e&&(e.textContent=t)},setClass:function(e,t,n){if(1===e.nodeType&&t)if(e.classList)n?e.classList.add(t):e.classList.remove(t);else{var i,r="string"==typeof e.className,o=r?e.className:this.getAttribute(e,"class")||"",a=o.split(" "),s=a.indexOf(t);n&&s<0&&(i=o?o+" "+t:t),!n&&s>=0&&(a.splice(s,1),i=a.join(" ")),void 0!==i&&(r?e.className=i:this.setAttribute(e,"class",i))}},setStyle:function(e,t,n){e.style[t]=n||""},_document:"undefined"==typeof document?void 0:document,getDocument:function(){return this._document},getActiveElement:function(){return this._document.activeElement},getBody:function(){return this._document.body},createDocumentFragment:function(){return this._document.createDocumentFragment()},getDocumentElement:function(){return this._document.documentElement},getLocation:function(){return this._document.location},getSelection:function(){return this._document.selection},getReadyState:function(){return this._document.readyState},getHead:function(){return this._document.head},hasDocumentProperty:function(e){return e in this._document},listen:function(e,t,n,i){return e&&"addEventListener"in e?(e.addEventListener(t,n,i),function(){e.removeEventListener(t,n)}):s.noop}};e.exports=(0,a.default)(d)},function(e,t,n){var i,r=n(2),o=n(27),a=n(11),s=n(7),l=s.getWindow(),u=n(5),c=n(14).inArray,d=n(1),h=d.isDefined,f=d.isRenderer,p=n(218),g=function(){var e=a.getActiveElement(),t=a.getBody();if(e&&e!==t&&e.blur)try{e.blur()}catch(e){t.blur()}},_=function(){var e=l.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=r(e),i=r(t);if(n[0]===i[0])return n[0];for(var o=n.parents(),a=i.parents(),s=Math.min(o.length,a.length),l=-s;l<0;l++)if(o.get(l)===a.get(l))return o.get(l)},v=function(e){var t=".dx-visibility-change-handler";return function(n){for(var i=r(n||"body"),o=i.filter(t).add(i.find(t)),a=0;a<o.length;a++)u.triggerHandler(o[a],e)}},y=function(){var e=0;return function(t){return(t||"")+e++}}(),b="data-options",x=function(e){var t=r(e).attr(b)||"";return o().optionsParser(t)},S=function(e,t){var n=[],i="["+b+"]",o=e.find(i).add(e.filter(i));return o.each(function(e,i){var o=r(i),a=x(i);for(var s in a)(!t||c(s,t)>-1)&&o[s]&&(o[s](a[s]),n.push(o[s]("instance")))}),n},C=function(e){if(!l.WinJS)return r(p.parseHTML(e));var t=r("<div>");return l.WinJS.Utilities.setInnerHTMLUnsafe(t.get(0),e),t.contents()},w=function(e){e=r(e);var t=e.length&&e.filter(function(){var e=r(this);return e.is("script[type]")&&e.attr("type").indexOf("script")<0});return t.length?t.eq(0).html():(e=r("<div>").append(e),e.html())},k=function e(t){var n=h(t)&&(t.nodeType||f(t))?r(t):r("<div>").html(t).contents();return 1===n.length&&(n.is("script")?n=e(n.html().trim()):n.is("table")&&(n=n.children("tbody").contents())),n},T=function(e,t){var n=e.originalEvent&&e.originalEvent.clipboardData||l.clipboardData;return 1===arguments.length?n&&n.getData("Text"):void(n&&n.setData("Text",t))},E=function(e,t){return!!t&&(t=a.isTextNode(t)?t.parentNode:t,a.isDocument(e)?e.documentElement.contains(t):e.contains(t))},O=function(e){return i(e)},A=function(e){i=e};A(function(e){return e&&e.get(0)});var D=function(e,t,n){var i=l.getComputedStyle(r(e).get(0)),o=n&&n.includePaddings;return r("<div>").text(t).css({fontStyle:i.fontStyle,fontVariant:i.fontVariant,fontWeight:i.fontWeight,fontSize:i.fontSize,fontFamily:i.fontFamily,letterSpacing:i.letterSpacing,border:i.border,paddingTop:o?i.paddingTop:"",paddingRight:o?i.paddingRight:"",paddingBottom:o?i.paddingBottom:"",paddingLeft:o?i.paddingLeft:"",visibility:"hidden",whiteSpace:"nowrap",position:"absolute","float":"left"})};t.setPublicElementWrapper=A,t.resetActiveElement=g,t.createMarkupFromString=C,t.triggerShownEvent=v("dxshown"),t.triggerHidingEvent=v("dxhiding"),t.triggerResizeEvent=v("dxresize"),t.getElementOptions=x,t.createComponents=S,t.extractTemplateMarkup=w,t.normalizeTemplateElement=k,t.clearSelection=_,t.uniqueId=y,t.closestCommonParent=m,t.clipboardText=T,t.contains=E,t.getPublicElement=O,t.createTextElementHiddenCopy=D},function(e,t,n){function i(e,t){for(var n,i=0,r=e.length,o=[];i<r;)n=t(e[i],i),null!==n&&o.push(n),i++;return o}function r(e,t){return i(t,function(t){return e[t]?e[t]:null})}function o(e,t,n,i){var r=i;return x(t,function(t,i){e[i]&&(e[i]-=n,r-=n)}),r}function a(e){return String(e).toLowerCase()}function s(e){return e&&(e.originalTop=e.top,e.originalBottom=e.bottom,e.originalLeft=e.left,e.originalRight=e.right),e}function l(e){return-P<e&&e<+P?e:0}function u(e){var t=l(N(e.x)),n=l(N(e.y)),i=l(H(e.width+e.x)),r=l(H(e.height+e.y)),o={x:t,y:n,width:i-t,height:r-n};return o.isEmpty=!(o.x||o.y||o.width||o.height),o}function c(e,t,n){var i=W(V(n*R).toFixed(3)),r=W(B(n*R).toFixed(3)),o=e.width/2,a=e.height/2,s=e.x+o,l=e.y+a,c=F(o*i)+F(a*r),d=F(o*r)+F(a*i),h=t[0]+(s-t[0])*i+(l-t[1])*r,f=t[1]-(s-t[0])*r+(l-t[1])*i;return u({x:h-c,y:f-d,width:2*c,height:2*d})}function d(e){return Array.isArray(e)?{startValue:e[0],endValue:e[1]}:e||{}}function h(e,t){return t?e:[e.startValue,e.endValue]}function f(e,t){return"datetime"===e.dataType?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return new Date(e.getTime()+n*t)}:"logarithmic"===e.axisType?function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=g(t,e.base)+i*n;return _(r,e.base)}:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=e+i*n;return t&&r*e<=0?0:r}}function p(e,n,i,r){var o=y.isDefined(n.startValue),a=y.isDefined(n.endValue),s="discrete"!==e.axisType;r=r||i;var l=f(e,!1),u=o?n.startValue:r.min,c=a?n.endValue:r.max,d=n.length,h=r.categories;if(s&&!y.isDefined(u)&&!y.isDefined(c))return{startValue:u,endValue:c};if(T(d))if(s)"datetime"!==e.dataType||E(d)||(d=C(d)),a&&!o||!a&&!o?(T(i.max)&&(c=c>i.max?i.max:c),u=l(c,d,-1)):o&&!a&&(T(i.min)&&(u=u<i.min?i.min:u),c=l(u,d));else if(d=parseInt(d),!isNaN(d)&&isFinite(d))if(d--,a||o){if(o&&!a){var p=t.getCategoriesInfo(h,u,void 0);c=p.categories[d]}else if(!o&&a){var g=t.getCategoriesInfo(h,void 0,c);u=g.categories[g.categories.length-1-d]}}else c=h[h.length-1],u=h[h.length-1-d];return s&&(T(i.max)&&c>i.max&&(c=i.max),T(i.min)&&u<i.min&&(u=i.min)),{startValue:u,endValue:c}}function g(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;if(!n)return K(e,t);if(0===e)return 0;var r=K(Math.abs(e),t)-(i-1);return r<0?0:Y(X(e)*r,Number(Math.pow(t,i-1).toFixed(Math.abs(i))))}function _(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;if(!n)return Z(e,t);if(0===e)return 0;var r=Z(Math.abs(e)+(i-1),t);return r<0?0:Y(X(e)*r,Number(Math.pow(t,i).toFixed(Math.abs(i))))}function m(e,t){return Array.isArray(t)?e.length===t.length&&e.every(function(e,n){return e===t[n]}):e.startValue===t.startValue&&e.endValue===t.endValue}var v=n(4).noop,y=n(1),b=n(0).extend,x=n(3).each,S=n(30),C=n(22).dateToMilliseconds,w=n(11),k=n(86),T=y.isDefined,E=y.isNumeric,O=y.isExponential,A=Math,D=A.round,M=Math.sqrt,I=Math.PI,P=1e10,R=I/180,L=Math.LN10,V=Math.cos,B=Math.sin,F=Math.abs,z=Math.log,N=Math.floor,H=Math.ceil,G=Math.max,j=isNaN,W=Number,U=NaN,Y=S.adjust,X=S.sign,q=10,K=function(e,t){return e?Math.log(e)/Math.log(t):U},$=function(e){return Y(K(e,10))},Z=function(e,t){return Math.pow(t,e)},Q=function(e){return(e%360+360)%360},J=function(e){return 90-e},ee=function(e){return I*e/180},te=function(e){var t=ee(e);return{cos:V(t),sin:B(t)}},ne=1e-14,ie=function(e,t,n,i){var r=n-e,o=i-t;return Math.sqrt(o*o+r*r)},re=function(e){var t,n=F(e);return j(n)?U:n>0?(n=z(n)/L,t=H(n),t-n<ne?t:N(n)):0},oe=function(e,t,n){var i,r=G(re(e),re(t)),o=-re(F(t-e)/n);return j(r)||j(o)?null:(F(r)<=4?(i="fixedPoint",o<0&&(o=0),o>4&&(o=4)):(i="exponential",o+=r-1,o>3&&(o=3)),{type:i,precision:o})},ae=function(e,t){if(t>20&&(t=20),E(e))return W(O(e)?e.toExponential(t):e.toFixed(t))},se=function(e){return e.toExponential().split("e")[1]};b(t,{decreaseGaps:function(e,t,n){var i;do i=r(e,t),i.push(A.ceil(n/i.length)),n=o(e,t,A.min.apply(null,i),n);while(n>0&&i.length>1);return n},normalizeEnum:a,parseScalar:function(e,t){return void 0!==e?e:t},enumParser:function(e){var t,n,i={};for(t=0,n=e.length;t<n;++t)i[a(e[t])]=1;return function(e,t){var n=a(e);return i[n]?n:t}},patchFontOptions:function(e){var t={};return x(e||{},function(n,i){if(/^(cursor)$/i.test(n));else if("opacity"===n)i=null;else if("color"===n){
if(n="fill","opacity"in e){var r=new k(i);i="rgba(".concat(r.r,",").concat(r.g,",").concat(r.b,",").concat(e.opacity,")")}}else n="font-"+n;t[n]=i}),t},checkElementHasPropertyFromStyleSheet:function(e,t){var n=Array.prototype.slice,i=n.call(w.getDocument().styleSheets).reduce(function(e,t){return e.concat(n.call(t.cssRules||t.rules))},[]),r=i.filter(function(t){try{return w.elementMatches(e,t.selectorText)}catch(e){return!1}});return r.some(function(e){return!!e.style[t]})},convertPolarToXY:function(e,t,n,i){var r=90,o=i>0?i:0;n=T(n)?n+t-r:0;var a=te(n);return{x:D(e.x+o*a.cos),y:D(e.y+o*a.sin)}},convertXYToPolar:function(e,t,n){var i=ie(e.x,e.y,t,n),r=A.atan2(n-e.y,t-e.x);return{phi:D(Q(180*r/A.PI)),r:D(i)}},processSeriesTemplate:function(e,t){var n,r,o,a=y.isFunction(e.customizeSeries)?e.customizeSeries:v,s=e.nameField,l={},u=[],c=0;for(t=t||[],r=t.length;c<r;c++)o=t[c],s in o&&(n=l[o[s]],n||(n=l[o[s]]={name:o[s],nameFieldValue:o[s]},u.push(n.name)));return i(u,function(e){var t=l[e];return b(t,a.call(null,t.name))})},getCategoriesInfo:function(e,t,n){if(0===e.length)return{categories:[]};t=T(t)?t:e[0],n=T(n)?n:e[e.length-1];var r,o,a,s=i(e,function(e){return T(e)?e.valueOf():null}),l=s.indexOf(t.valueOf()),u=s.indexOf(n.valueOf()),c=!1;return l<0&&(l=0),u<0&&(u=e.length-1),u<l&&(o=u,u=l,l=o,c=!0),r=e.slice(l,u+1),a=r.length-1,{categories:r,start:r[c?a:0],end:r[c?0:a],inverted:c}},setCanvasValues:s,normalizePanesHeight:function(e){e.forEach(function(e){var t=e.height,n=0,i=parseFloat(t)||void 0;(y.isString(t)&&t.indexOf("px")>-1||y.isNumeric(t)&&t>1)&&(i=D(i),n=1),!n&&i&&(y.isString(t)&&t.indexOf("%")>-1?i/=100:i<0&&(i=i<-1?1:A.abs(i))),e.height=i,e.unit=n});var t=e.filter(function(e){return!e.unit}).reduce(function(e,t){return e+(t.height||0)},0),n=e.filter(function(e){return!e.unit}).length,i=e.filter(function(e){return!e.unit&&!e.height}).length;if(t<1&&i)e.filter(function(e){return!e.unit&&!e.height}).forEach(function(e){return e.height=(1-t)/i});else if(t>1||t<1&&!i||1===t&&i){if(i){var r=t/n,o=i*r;e.filter(function(e){return!e.unit&&e.height}).forEach(function(e){return e.height*=(t-o)/t}),e.filter(function(e){return!e.unit&&!e.height}).forEach(function(e){return e.height=r})}e.forEach(function(e){return!e.unit&&(e.height*=1/t)})}},updatePanesCanvases:function(e,t,n){var i=0,r=q,o=n?t.width-t.left-t.right:t.height-t.top-t.bottom,a=o-r*(e.length-1),l=n?"left":"top",u=n?"right":"bottom",c=e.reduce(function(e,t){return e+(t.unit?t.height:0)},0);a-=c,e.forEach(function(e){var n=e.unit?e.height:D(e.height*a);e.canvas=e.canvas||{},b(e.canvas,t),e.canvas[l]=t[l]+i,e.canvas[u]=t[u]+(o-n-i),i=i+n+r,s(e.canvas)})},unique:function(e){var t={};return i(e,function(e){var n=t[e]?null:e;return t[e]=!0,n})},map:i,getVerticallyShiftedAngularCoords:function(e,t,n){var i=e.x+e.width/2>=n.x,r=(i?e.x:e.x+e.width)-n.x,o=e.y-n.y,a=o+t,s=D(M(r*r+o*o-a*a)),l=(i?+s:-s)||r;return{x:n.x+(i?l:l-e.width),y:e.y+t}},mergeMarginOptions:function(e,t){return{checkInterval:e.checkInterval||t.checkInterval,size:Math.max(e.size||0,t.size||0),percentStick:e.percentStick||t.percentStick,sizePointNormalState:Math.max(e.sizePointNormalState||0,t.sizePointNormalState||0)}}}),t.getVizRangeObject=d,t.convertVisualRangeObject=h,t.adjustVisualRange=p,t.getAddFunction=f,t.getLog=K,t.getLogExt=g,t.getAdjustedLog10=$,t.raiseTo=Z,t.raiseToExt=_,t.normalizeAngle=Q,t.convertAngleToRendererSpace=J,t.degreesToRadians=ee,t.getCosAndSin=te,t.getDecimalOrder=re,t.getAppropriateFormat=oe,t.getDistance=ie,t.roundValue=ae,t.getPower=se,t.rotateBBox=c,t.normalizeBBox=u,t.PANE_PADDING=q,t.rangesAreEqual=m},function(e,t,n){var i=n(1).isDefined,r=n(3).each,o=n(47),a=n(27),s=function(e){return Array.isArray(e)&&!e.length},l=function(e){return Array.isArray(e)?e:[e]},u=function(e,t){if(!Array.isArray(e)||0===e.length||!Array.isArray(t)||0===t.length)return[];var n=[];return r(e,function(e,i){var r=h(i,t);r!==-1&&n.push(i)}),n},c=function(e,t){if(!Array.isArray(e)||0===e.length)return[];if(!Array.isArray(t)||0===t.length)return e.slice();var n=[];return r(e,function(e,i){var r=h(i,t);r===-1&&n.push(i)}),n},d=function(e,t,n,s){var l={},u=0,c=a().useLegacyVisibleIndex;return r(e,function(e,i){e=i[t],e>=0?(l[e]=l[e]||[],i===n?l[e].unshift(i):l[e].push(i)):i[t]=void 0}),c||r(e,function(){if(!i(this[t])&&(!s||s(this))){for(;l[u];)u++;l[u]=[this],u++}}),u=0,o.orderEach(l,function(e,n){r(n,function(){e>=0&&(this[t]=u++)})}),c&&r(e,function(){i(this[t])||s&&!s(this)||(this[t]=u++)}),u},h=function(e,t){if(!t)return-1;var n=Array.isArray(t)?t:t.toArray();return n.indexOf(e)},f=function(e,t){for(var n=0;n<t.length;n++)e[e.length]=t[n];return e},p=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]};t.isEmpty=s,t.wrapToArray=l,t.intersection=u,t.removeDuplicates=c,t.normalizeIndexes=d,t.inArray=h,t.merge=f,t.find=p},function(e,t,n){var i=n(21),r=n(1),o=function(e,t,n){return function(){var i=this.callBase;this.callBase=e[t];try{return n.apply(this,arguments)}finally{this.callBase=i}}},a=function(e){var t=function(){};return t.prototype=e.prototype,new t},s=function(e){var t,n,i,r=this;if(!e)return r;for(n in e)i=e[n],t="function"==typeof r.prototype[n]&&"function"==typeof i,r.prototype[n]=t?o(r.parent.prototype,n,i):i;return r},l=function(){var e,t,n,i=this,r=Object.prototype.hasOwnProperty.bind(i),o=!r("_includedCtors")&&!r("_includedPostCtors");for(o&&(i._includedCtors=i._includedCtors.slice(0),i._includedPostCtors=i._includedPostCtors.slice(0)),n=0;n<arguments.length;n++){e=arguments[n],e.ctor&&i._includedCtors.push(e.ctor),e.postCtor&&i._includedPostCtors.push(e.postCtor);for(t in e)"ctor"!==t&&"postCtor"!==t&&(i.prototype[t]=e[t])}return i},u=function(e){var t=Object.prototype.hasOwnProperty.bind(this)("parent"),n=!t&&this.parent;if(n){var i=Object.getPrototypeOf(this);return i===e||i.subclassOf(e)}return this.parent===e||!(!this.parent||!this.parent.subclassOf)&&this.parent.subclassOf(e)},c=function(){throw i.Error("E0001")},d=function(){var e=Object.prototype.hasOwnProperty;return function(t,n){for(var i in t){if(!e.call(t,i))return;n[i]=t[i]}}}(),h=function(){};h.inherit=function(e){var t=function(){if(!this||r.isWindow(this)||"function"!=typeof this.constructor)throw i.Error("E0003");var e,t=this,n=t.ctor,o=t.constructor._includedCtors,a=t.constructor._includedPostCtors;for(e=0;e<o.length;e++)o[e].call(t);for(n&&n.apply(t,arguments),e=0;e<a.length;e++)a[e].call(t)};return t.prototype=a(this),d(this,t),t.inherit=this.inherit,t.abstract=c,t.redefine=s,t.include=l,t.subclassOf=u,t.parent=this,t._includedCtors=this._includedCtors?this._includedCtors.slice(0):[],t._includedPostCtors=this._includedPostCtors?this._includedPostCtors.slice(0):[],t.prototype.constructor=t,t.redefine(e),t},h.abstract=c,e.exports=h},function(e,t,n){var i=n(2),r=n(7),o=r.getNavigator(),a=r.getWindow(),s=n(0).extend,l=n(1).isPlainObject,u=n(3).each,c=n(15),d=n(21),h=n(26),f=n(130),p=n(82),g=n(289).sessionStorage,_=n(73),m=n(27),v={iPhone:"iPhone",iPhone5:"iPhone",iPhone6:"iPhone",iPhone6plus:"iPhone",iPad:"iPad",iPadMini:"iPad Mini",androidPhone:"Android Mobile",androidTablet:"Android",msSurface:"Windows ARM Tablet PC",desktop:"desktop"},y={deviceType:"desktop",platform:"generic",version:[],phone:!1,tablet:!1,android:!1,ios:!1,generic:!0,grade:"A",mac:!1},b={generic: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),r=/((intel|ppc) mac os x)/.test(e.toLowerCase());if(t||n||i||r)return{deviceType:t?"phone":n?"tablet":"desktop",platform:"generic",version:[],grade:"A",mac:r}},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)]:[],r=480===a.screen.height,o=r?"B":"A";return{deviceType:t?"phone":"tablet",platform:"ios",version:i,grade:o}}},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]||0,10),parseInt(n[3]||0,10)]:[],r=i.length>1&&(i[0]<4||4===i[0]&&i[1]<4),o=r?"B":"A";return{deviceType:t?"phone":"tablet",platform:"android",version:i,grade:o}}}},x=c.inherit({ctor:function(e){this._window=e&&e.window||a,this._realDevice=this._getDevice(),this._currentDevice=void 0,this._currentOrientation=void 0,this.changed=h(),r.hasWindow()&&(this._recalculateOrientation(),f.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]),S.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||r.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 d.Error("E0005")}else t=o.userAgent;return this._fromUA(t)},_getDeviceOrNameFromWindowScope:function(){var e;return r.hasWindow()&&(this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"])&&(e=this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"]),e},_getDeviceNameFromSessionStorage:function(){var e=g();if(e){var t=e.getItem("dx-force-device");try{return JSON.parse(t)}catch(e){return t}}},_fromConfig:function(e){var t=s({},y,this._currentDevice,e),n={phone:"phone"===t.deviceType,tablet:"tablet"===t.deviceType,android:"android"===t.platform,ios:"ios"===t.platform,generic:"generic"===t.platform};return s(t,n)},_fromUA:function(e){var t;return u(b,function(n,i){return t=i(e),!t}),t?this._fromConfig(t):y},_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(p),S=new x;_.changeCallback.add(function(e,t){S.detachCssClasses(t),S.attachCssClasses(e)}),e.exports=S},function(e,t,n){var i=n(2),r=n(5),o=n(110),a=n(0).extend,s=n(14).inArray,l=n(3).each,u=n(4),c=n(1),d=n(11),h=n(161),f=n(162),p=n(65),g=n(8),_=n(140),m=n(133),v=n(20),y="UIFeedback",b="dx-widget",x="dx-state-active",S="dx-state-disabled",C="dx-state-invisible",w="dx-state-hover",k="dx-state-focused",T=30,E=400,O="Focus",A=h.inherit({_supportedKeys:function(){return{}},_getDefaultOptions:function(){return a(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,_keyboardProcessor:void 0})},_feedbackShowTimeout:T,_feedbackHideTimeout:E,_init:function(){this.callBase(),this._initContentReadyAction()},_clearInnerOptionCache:function(e){this[e+"Cache"]={}},_cacheInnerOptions:function(e,t){var n=e+"Cache";this[n]=a(this[n],t)},_getOptionsFromContainer:function(e){var t=e.name,n=e.fullName,i=e.value,r={};if(t===n)r=i;else{var o=n.split(".").pop();r[o]=i}return r},_innerOptionChanged:function(e,t){var n=this._getOptionsFromContainer(t);e&&e.option(n),this._cacheInnerOptions(t.name,n)},_getInnerOptionsCache:function(e){return this[e+"Cache"]},_initInnerOptionCache:function(e){this._clearInnerOptionCache(e),this._cacheInnerOptions(e,this.option(e))},_bindInnerWidgetOptions:function(e,t){this._options[t]=a({},e.option()),e.on("optionChanged",function(e){this._options[t]=a({},e.component.option())}.bind(this))},_getAriaTarget:function(){return this._focusTarget()},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initMarkup:function(){this.$element().addClass(b),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(){var e=this.option("hint");this.$element().attr("title",e?e:null)},_renderContent:function(){var e=this;u.deferRender(function(){if(!e._disposed)return e._renderContentImpl()}).done(function(){e._disposed||e._fireContentReadyAction()})},_renderContentImpl:u.noop,_fireContentReadyAction:u.deferRenderer(function(){this._contentReadyAction()}),_dispose:function(){this._contentReadyAction=null,this.callBase()},_resetActiveState:function(){this._toggleActiveState(this._eventBindingTarget(),!1)},_clean:function(){this._cleanFocusState(),this._resetActiveState(),this.callBase(),this.$element().empty()},_toggleVisibility:function(e){this.$element().toggleClass(C,!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=g.addNamespace(v.name,y);r.off(e,t),this.option("accessKey")&&r.on(e,t,function(e){g.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("."+S)),e},_renderFocusTarget:function(){this._focusTarget().attr("tabIndex",this.option("tabIndex"))},_keyboardEventBindingTarget:function(){return this._eventBindingTarget()},_detachFocusEvents:function(){var e=this._focusEventTarget(),t=this.NAME+O,n=g.addNamespace("focusin",t);n=n+" "+g.addNamespace("focusout",t),d.hasDocumentProperty("onbeforeactivate")&&(n=n+" "+g.addNamespace("beforeactivate",t)),r.off(e,n)},_attachFocusEvents:function(){var e=this.NAME+O,t=g.addNamespace("focusin",e),n=g.addNamespace("focusout",e),o=this._focusEventTarget();if(r.on(o,t,this._focusInHandler.bind(this)),r.on(o,n,this._focusOutHandler.bind(this)),d.hasDocumentProperty("onbeforeactivate")){var a=g.addNamespace("beforeactivate",e);r.on(this._focusEventTarget(),a,function(e){i(e.target).is(p.focusable)||e.preventDefault()})}},_refreshFocusEvent:function(){this._detachFocusEvents(),this._attachFocusEvents()},_focusEventTarget:function(){return this._focusTarget()},_focusInHandler:function(e){if(!e.isDefaultPrevented()){var t=this;t._createActionByOption("onFocusIn",{beforeExecute:function(){t._updateFocusState(e,!0)},excludeValidators:["readOnly"]})({event:e})}},_focusOutHandler:function(e){if(!e.isDefaultPrevented()){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;s(n,this._focusTarget())!==-1&&this._toggleFocusClass(t,i(n))},_toggleFocusClass:function(e,t){var n=t&&t.length?t:this._focusTarget();n.toggleClass(k,e)},_hasFocusClass:function(e){var t=i(e||this._focusTarget());return t.hasClass(k)},_isFocused:function(){return this._hasFocusClass()},_attachKeyboardEvents:function(){var e=this.option("_keyboardProcessor");e?this._keyboardProcessor=e.reinitialize(this._keyboardHandler,this):this.option("focusStateEnabled")&&(this._disposeKeyboardProcessor(),this._keyboardProcessor=new f({element:this._keyboardEventBindingTarget(),handler:this._keyboardHandler,focusTarget:this._focusTarget(),context:this}))},_keyboardHandler:function(e){var t=e.originalEvent,n=e.keyName,i=e.which,r=this._supportedKeys(t),o=r[n]||r[i];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._disposeKeyboardProcessor()},_disposeKeyboardProcessor:function(){this._keyboardProcessor&&(this._keyboardProcessor.dispose(),delete this._keyboardProcessor)},_attachHoverEvents:function(){var e=this,t=e._activeStateUnit,n=g.addNamespace(_.start,y),a=g.addNamespace(_.end,y);if(r.off(e._eventBindingTarget(),n,t),r.off(e._eventBindingTarget(),a,t),e.option("hoverStateEnabled")){var s=new o(function(t){e._hoverStartHandler(t.event),e._refreshHover