devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
10 lines • 3.91 MB
JavaScript
/*!
* DevExtreme (dx.all.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 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=889)}([function(e,t,n){var i=n(1).isPlainObject,o=function(e,t,n){e=e||{};for(var i in t)if(Object.prototype.hasOwnProperty.call(t,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++);n<arguments.length;n++){var a=arguments[n];if(null!=a)for(var r in a){var s,l=t[r],u=a[r],c=!1;"__proto__"!==r&&t!==u&&(o&&u&&(i(u)||(c=Array.isArray(u)))?(s=c?l&&Array.isArray(l)?l:[]:l&&i(l)?l:{},t[r]=e(o,s,u)):void 0!==u&&(t[r]=u))}}return t};t.extend=a,t.extendFromObject=o},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 o={"[object Array]":"array","[object Date]":"date","[object Object]":"object","[object String]":"string","[object Null]":"null"},a=function(e){var t=Object.prototype.toString.call(e);return"object"===i(e)?o[t]||"object":i(e)},r=function(e){return"boolean"==typeof e},s=function(e){return h(e)&&e.toString().indexOf("e")!==-1},l=function(e){return"date"===a(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))},p=function(e){return"object"===a(e)},f=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(a(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=r,t.isExponential=s,t.isDate=l,t.isDefined=u,t.isFunction=c,t.isString=d,t.isNumeric=h,t.isObject=p,t.isEmptyObject=f,t.isPlainObject=g,t.isPrimitive=_,t.isWindow=m,t.isRenderer=v,t.isPromise=y,t.isDeferred=b,t.type=a},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},o=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}},a=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=o,t.reverseEach=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a,r=n(27),s=i(r),l=n(34),u=i(l),c=n(6),d=n(19),h=n(3),p=n(1),f=function(e,t){return(0,p.isDefined)(e)?e:t},g=function(e,t){var n,i=new c.Deferred,o=t||this,a={promise:i.promise(),abort:function(){clearTimeout(n),i.rejectWith(o)}},r=function(){var t=e.call(o);t&&t.done&&(0,p.isFunction)(t.done)?t.done(function(){i.resolveWith(o)}):i.resolveWith(o)};return n=(arguments[2]||setTimeout)(r,"number"==typeof t?t:0),a},_=[],m=[],v=[],y=function(e,t,n){if(a&&a!==e)return _.push(t),m.push(e),n=n||new c.Deferred,v.push(n),n;var i=a,o=v.length;a=e;var r=t();return r||(v.length>o?r=c.when.apply(this,v.slice(o)):n&&n.resolve()),a=i,n&&r&&r.done&&r.done(n.resolve).fail(n.reject),!a&&_.length&&("render"===m.shift()?b:x)(_.shift(),v.shift()),r||(0,c.when)()},b=function(e,t){return y("render",e,t)},x=function(e,t){return y("update",e,t)},w=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)})}},k=function(e,t,n){var i=[],o=0;return(0,h.each)(t,function(t,a){var r=0,s=n?n(a):a;(0,h.each)(e,function(e,t){var n=s[e];if(void 0!==n)return S(n,t)?void r++:(r=-1,!1)}),r<o||(r>o&&(i.length=0,o=r),i.push(a))}),i},S=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},I=function(e){switch(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}},T=function(e){var t=(0,p.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},D=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},E=function(e,t){var n=I(e),i=t?parseFloat(n&&n[0]):parseInt(n&&n[0],10),o=t?parseFloat(n&&n[1]):parseInt(n&&n[1],10);return isFinite(i)||(i=0),isFinite(o)||(o=i),{h:i,v:o}},A=function(e){if(e instanceof u.default)return e.toString();if((0,p.isObject)(e)||Array.isArray(e))try{var t=JSON.stringify(e);return"{}"===t?e:t}catch(t){return e}return e},O=function(e){return e.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},P=function(e){var t=(0,s.default)().serverDecimalSeparator;return(0,p.isDefined)(e)&&(e=e.toString().replace(".",t)),e},B=function(){},M=function(){return(new c.Deferred).resolve().promise()},R=function(e,t,n){for(var i,o=[],a=!n,r=0;r<e.length;r++)i=!!t(e[r],r),i===a&&o.push(e[r]);return o},V=function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!H(e[i],t[i],n+1))return!1;return!0},F=function(e,t,n,i){for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&!H(e[o],t[o],n+1,i))return!1;for(var a in t)if(!(a in e))return!1;return!0},L=3,H=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 o=i?e===t:e==t;return!!(o||n>=L)||((0,p.isObject)(e)&&(0,p.isObject)(t)?F(e,t,n,i):!(!Array.isArray(e)||!Array.isArray(t))&&V(e,t,n))};t.ensureDefined=f,t.executeAsync=g,t.deferRender=b,t.deferRenderer=w,t.deferUpdate=x,t.deferUpdater=C,t.pairToObject=E,t.splitPair=I,t.findBestMatches=k,t.normalizeKey=T,t.denormalizeKey=D,t.getKeyHash=A,t.escapeRegExp=O,t.applyServerDecimalSeparator=P,t.noop=B,t.asyncNoop=M,t.grep=R,t.equalByValue=H},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 o,a=n(114),r=n(0).extend,s=n(11),l=n(7),u=l.getWindow(),c=n(53),d=n(1),h=n(26),p=d.isWindow,f=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"},w={focusin:"focus",focusout:"blur"},C=["blur","focus","load"],k=["touchmove","wheel","mousewheel","touchstart"],S=function(e,t){return!p(e)&&"#document"!==e.nodeName&&s.elementMatches(e,t)},I=new m,T=0,D=function(){var e={};return a.add(function(t,n){e[t]=n}),{getField:function(t,n){return e[t]&&e[t][n]},callMethod:function(t,n,i,o){return e[t]&&e[t][n]&&e[t][n].apply(i,o)}}}(),E=function e(t,n){var i=t[0];if(i)if(s.isNode(i)||p(i))n.apply(W,t);else{if(g(i)||!("length"in i))throw _.Error("E0025");var o=Array.prototype.slice.call(t,0);Array.prototype.forEach.call(i,function(t){o[0]=t,e(o,n)})}},A=function(e){return function(){E(arguments,e)}},O=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},P=y(O),B=function(e,t){var n=I.get(e);t=t||"";var i=t.split("."),a=i.slice(1),r=!!i[0];t=i[0]||b,n||(n={},I.set(e,n)),n[t]||(n[t]={handleObjects:[],nativeHandler:null});var l=n[t];return{addHandler:function(n,i,u){var c=function(i,o){var a,r,s=[i],l=i.currentTarget,c=i.relatedTarget;t in x&&(a=c&&l&&(c===l||l.contains(c))),void 0!==o&&s.push(o),D.callMethod(t,"handle",e,[i,u]),a||(r=n.apply(l,s)),r===!1&&(i.preventDefault(),i.stopPropagation())},d=function(t,n){if(!o||t.type!==o)if(t.data=u,t.delegateTarget=e,i)for(var a=t.target;a&&a!==e;)S(a,i)&&(t.currentTarget=a,c(t,n)),a=a.parentNode;else t.currentTarget=t.delegateTarget||t.target,c(t,n)},h={handler:n,wrappedHandler:d,selector:i,type:t,data:u,namespace:a.join("."),namespaces:a,guid:++T};l.handleObjects.push(h);var p,f=1===l.handleObjects.length,g=f&&r;g&&(g=!D.callMethod(t,"setup",e,[u,a,n])),g&&(l.nativeHandler=M(t),P()&&k.indexOf(t)>-1&&(p={passive:!1}),l.removeListener=s.listen(e,x[t]||t,l.nativeHandler,p)),D.callMethod(t,"add",e,[h])},removeHandler:function(i,o){var s=function(t){var r=n[t];if(!r.handleObjects.length)return void delete n[t];var s;r.handleObjects=r.handleObjects.filter(function(n){var r=a.length&&!R(n.namespaces,a)||i&&n.handler!==i||o&&n.selector!==o;return r||(s=n.handler,D.callMethod(t,"remove",e,[n])),r});var l=!r.handleObjects.length,u=l&&t!==b;u&&(D.callMethod(t,"teardown",e,[a,s]),r.nativeHandler&&r.removeListener(),delete n[t])};if(r)s(t);else for(var l in n)s(l);var u=0===Object.keys(n).length;u&&I.delete(e)},callHandlers:function(e,t){var i=!1,o=function(n){i||a.length&&!R(n.namespaces,a)||(n.wrappedHandler(e,t),i=e.isImmediatePropagationStopped())};l.handleObjects.forEach(o),a.length&&n[b]&&n[b].handleObjects.forEach(o)}}},M=function(e){return function(t,n){var i=B(this,e);t=W.Event(t),i.callHandlers(t,n)}},R=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,o,a){a||(a=o,o=void 0),"string"!=typeof i&&(o=i,i=void 0),a||"string"!=typeof n||(a=o||i,i=void 0,o=void 0),e(t,n,i,o,a)}},F=function(e){return function(t,n,i,o){"function"==typeof i&&(o=i,i=void 0),e(t,n,i,o)}},L=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 W.Event?n:W.Event(n),i)}},H=function(e){return function(t,n){return this instanceof W.Event?(t||(t={}),"string"==typeof t&&(t={type:t}),n||(n={}),void e.call(this,t,n)):new W.Event(t,n)}},z=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 o=Array.prototype.slice.call(arguments,0);for(var a in n)o[1]=a,o[o.length-1]=n[a],t.apply(this,o)}else t.apply(this,arguments)}},N=function(e,t){var n=w[e]||e,i=function(e,t){return"click"===e&&"a"===t.localName};i(e,t)||f(t[n])&&(o=e,t[n](),o=void 0)},$=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},W=c({on:A(V(z(function(e,t,n,i,o){var a=B(e,t);a.addHandler(o,n,i)}))),one:A(V(function(e,t,n,i,o){var a=function i(){W.off(e,t,n,i),o.apply(this,arguments)};W.on(e,t,n,i,a)})),off:A(F(z(function(e,t,n,i){var o=B(e,t);o.removeHandler(i,n)}))),trigger:A(L(function(e,t,n){var i=t.type,o=B(e,t.type);D.callMethod(i,"trigger",e,[t,n]),o.callHandlers(t,n);var a=D.getField(i,"noBubble")||t.isPropagationStopped()||C.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(u);for(var c=0;s[c]&&!t.isPropagationStopped();){var d=B(s[c],t.type);d.callHandlers(r(t,{currentTarget:s[c]}),n),c++}}(e.nodeType||p(e))&&(D.callMethod(i,"_default",e,[t,n]),N(i,e))})),triggerHandler:A(L(function(e,t,n){var i=B(e,t.type);i.callHandlers(t,n)}))}),G=function(e){e&&(W.Event=e,W.Event.prototype=e.prototype)};G(H(function(e,t){var n=this,i=!1,o=!1,a=!1;r(n,e),(e instanceof W.Event||l.hasWindow()&&e instanceof u.Event)&&(n.originalEvent=e,n.currentTarget=void 0),e instanceof W.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()}}),j("which",$,n),0===e.type.indexOf("touch")&&(delete t.pageX,delete t.pageY),r(n,t),n.guid=++T}));var j=function(e,t,n){Object.defineProperty(n||W.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(j);var q=h(),K=h();W.set=function(e){q.fire(),W.inject(e),G(e.Event),K.fire()},W.subscribeGlobal=function(){E(arguments,V(function(){var e=arguments;W.on.apply(this,e),q.add(function(){var t=Array.prototype.slice.call(e,0);t.splice(3,1),W.off.apply(this,t)}),K.add(function(){W.on.apply(this,e)})}))},W.forcePassiveFalseEventNames=k,W.passiveEventHandlersSupported=P,e.exports=W},function(e,t,n){var i=n(1),o=i.isPromise,a=i.isDeferred,r=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(r){var s="done"===r?e:t;this[r](function(){if(!s)return void n["done"===r?"resolve":"reject"].apply(this,arguments);var e=s&&s.apply(this,arguments);a(e)?e.done(n.resolve).fail(n.reject):o(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?r(t,e._promise):e._promise},this._promise.promise(this)};l.forEach(function(e){var t=e.method,n=e.state;u.prototype[t+"With"]=function(e,i){var o=this[t+"Callbacks"];return"pending"===this.state()&&(this[t+"Args"]=i,this[t+"Context"]=e,n&&(this._state=n),o.fire(e,i)),this}}),t.fromPromise=function(e,t){if(a(e))return e;if(o(e)){var n=new u;return e.then(function(){n.resolveWith.apply(n,[t].concat([[].slice.call(arguments)]))},function(){n.rejectWith.apply(n,[t].concat([[].slice.call(arguments)]))}),n}return(new u).resolveWith(t,[e])};var c=function(){if(1===arguments.length)return t.fromPromise(arguments[0]);for(var e=[].slice.call(arguments),n=[],i=0,o=new u,r=function(t){return function(a){n[t]=this,e[t]=arguments.length>1?[].slice.call(arguments):a,i++,i===e.length&&o.resolveWith(n,e)}},s=0;s<e.length;s++)a(e[s])?e[s].promise().done(r(s)).fail(o.reject):i++;return i===e.length&&o.resolveWith(n,e),o.promise()};t.setStrategy=function(e){u=e.Deferred,c=e.when},t.Deferred=function(){return new u},t.when=function(){return c.apply(this,arguments)}},function(e,t,n){var i=n(11),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)},getNavigator:function(){return this.hasWindow()?a.navigator:{userAgent:""}}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(5),s=i(r),l=n(21),u=i(l),c=n(65),d=n(0),h=n(3),p={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"},f={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},w=function(e){return v(e)||(y(e)||_(e))&&"touch"===e.pointerType},C=function(e){return"keyboard"===g(e)},k=function(e){return 0===e.screenX&&!e.offsetX&&0===e.pageX},S=function(e){return{x:e.pageX,y:e.pageY,time:e.timeStamp}},I=function(e,t){return{x:t.x-e.x,y:t.y-e.y,time:t.time-e.time||1}},T=function(e){return v(e)?(e.originalEvent.touches||[]).length:_(e)?(e.pointers||[]).length:0},D=function(e){var t=e.target,n=(0,a.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 o=n.is("textarea")&&n.hasClass("dx-texteditor-input");if(o)return!1;var r=t.isContentEditable||t.hasAttribute("contenteditable");if(r)return!1;var s=n.is("input[type='number'], textarea, select")&&n.is(":focus");return s}return b(e)?i||e.which>1:w(e)?i&&(0,c.focused)(n):void 0},E=function(e){return e},A=function(e){E=e},O=function(e){return E(s.default.Event(e,e),e)},P=function(e,t){var n=O(e);return t&&(0,d.extend)(n,t),n},B=function(e){var t=P(e.originalEvent,e);return s.default.trigger(e.delegateTarget||t.target,t),t},M=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(" "))},R=function(e){var t=!!e.key,n=t?e.key:e.which;if(n)return n=t?p[n.toLowerCase()]||n:f[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:w,isKeyboardEvent:C,isFakeClickEvent:k,hasTouches:T,eventData:S,eventDelta:I,needSkipEvent:D,createEvent:P,fireEvent:B,addNamespace:M,setEventFixMethod:A,normalizeKeyName:R,getChar:V}},function(e,t,n){var i=n(2),o=n(153),a=n(21),r=n(131),s=function(e,t,n){n?t[e]=n:n=t,r.name(n,e),o.fire(e,n)},l=function(e,t){i.fn[e]=function(n){var i,o="string"==typeof n;if(o){var r=n,s=[].slice.call(arguments).slice(1);this.each(function(){var n=t.getInstance(this);if(!n)throw a.Error("E0009",e);var o=n[r],l=o.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}};o.add(l),e.exports=s},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(53),s=i(r),l=n(0),u=n(3),c=n(45),d=n(32),h=n(76),p=i(h),f=n(459),g=i(f),_=(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,o,a){var r,s=t._localizablePrefix+a;return o!==i&&(r=t.format(a)),r||(v[a]=(0,d.humanize)(a)),n+(r||s)})},localizeNode:function(e){var t=this;(0,a.default)(e).each(function(e,n){n.nodeType&&(3===n.nodeType?n.nodeValue=t.localizeString(n.nodeValue):(0,a.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,a.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()[p.default.locale()])},getFormatter:function(e){return this._getFormatterBase(e)||this._getFormatterBase(e,"en")},_getFormatterBase:function(e,t){var n=this,i=p.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 o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=n(53),r=i(a),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 o=n.querySelectorAll(i,t),a=0;a<o.length;a++)if(o[a]===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"===o(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,o="string"==typeof e.className,a=o?e.className:this.getAttribute(e,"class")||"",r=a.split(" "),s=r.indexOf(t);n&&s<0&&(i=a?a+" "+t:t),!n&&s>=0&&(r.splice(s,1),i=r.join(" ")),void 0!==i&&(o?e.className=i:this.setAttribute(e,"class",i))}},setStyle:function(e,t,n){e.style[t]=n||""},_document:"undefined"==typeof document?void 0:document,getDocument:function(){return this._document},getActiveElement:function(){return this._document.activeElement},getBody:function(){return this._document.body},createDocumentFragment:function(){return this._document.createDocumentFragment()},getDocumentElement:function(){return this._document.documentElement},getLocation:function(){return this._document.location},getSelection:function(){return this._document.selection},getReadyState:function(){return this._document.readyState},getHead:function(){return this._document.head},hasDocumentProperty:function(e){return e in this._document},listen:function(e,t,n,i){return e&&"addEventListener"in e?(e.addEventListener(t,n,i),function(){e.removeEventListener(t,n)}):s.noop}};e.exports=(0,r.default)(d)},function(e,t,n){var i,o=n(2),a=n(27),r=n(11),s=n(7),l=s.getWindow(),u=n(5),c=n(14).inArray,d=n(1),h=d.isDefined,p=d.isRenderer,f=n(218),g=function(){var e=r.getActiveElement(),t=r.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=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<a.length;r++)u.triggerHandler(a[r],e)}},y=function(){var e=0;return function(t){return(t||"")+e++}}(),b="data-options",x=function(e){var t=o(e).attr(b)||"";return a().optionsParser(t)},w=function(e,t){var n=[],i="["+b+"]",a=e.find(i).add(e.filter(i));return a.each(function(e,i){var a=o(i),r=x(i);for(var s in r)(!t||c(s,t)>-1)&&a[s]&&(a[s](r[s]),n.push(a[s]("instance")))}),n},C=function(e){if(!l.WinJS)return o(f.parseHTML(e));var t=o("<div>");return l.WinJS.Utilities.setInnerHTMLUnsafe(t.get(0),e),t.contents()},k=function(e){e=o(e);var t=e.length&&e.filter(function(){var e=o(this);return e.is("script[type]")&&e.attr("type").indexOf("script")<0});return t.length?t.eq(0).html():(e=o("<div>").append(e),e.html())},S=function e(t){var n=h(t)&&(t.nodeType||p(t))?o(t):o("<div>").html(t).contents();return 1===n.length&&(n.is("script")?n=e(n.html().trim()):n.is("table")&&(n=n.children("tbody").contents())),n},I=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))},T=function(e,t){return!!t&&(t=r.isTextNode(t)?t.parentNode:t,r.isDocument(e)?e.documentElement.contains(t):e.contains(t))},D=function(e){return i(e)},E=function(e){i=e};E(function(e){return e&&e.get(0)});var A=function(e,t,n){var i=l.getComputedStyle(o(e).get(0)),a=n&&n.includePaddings;return o("<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:a?i.paddingTop:"",paddingRight:a?i.paddingRight:"",paddingBottom:a?i.paddingBottom:"",paddingLeft:a?i.paddingLeft:"",visibility:"hidden",whiteSpace:"nowrap",position:"absolute","float":"left"})};t.setPublicElementWrapper=E,t.resetActiveElement=g,t.createMarkupFromString=C,t.triggerShownEvent=v("dxshown"),t.triggerHidingEvent=v("dxhiding"),t.triggerResizeEvent=v("dxresize"),t.getElementOptions=x,t.createComponents=w,t.extractTemplateMarkup=k,t.normalizeTemplateElement=S,t.clearSelection=_,t.uniqueId=y,t.closestCommonParent=m,t.clipboardText=I,t.contains=T,t.getPublicElement=D,t.createTextElementHiddenCopy=A},function(e,t,n){function i(e,t){for(var n,i=0,o=e.length,a=[];i<o;)n=t(e[i],i),null!==n&&a.push(n),i++;return a}function o(e,t){return i(t,function(t){return e[t]?e[t]:null})}function a(e,t,n,i){var o=i;return x(t,function(t,i){e[i]&&(e[i]-=n,o-=n)}),o}function r(e){return String(e).toLowerCase()}function s(e){return e&&(e.originalTop=e.top,e.originalBottom=e.bottom,e.originalLeft=e.left,e.originalRight=e.right),e}function l(e){return-B<e&&e<+B?e:0}function u(e){var t=l(z(e.x)),n=l(z(e.y)),i=l(N(e.width+e.x)),o=l(N(e.height+e.y)),a={x:t,y:n,width:i-t,height:o-n};return a.isEmpty=!(a.x||a.y||a.width||a.height),a}function c(e,t,n){var i=G(V(n*M).toFixed(3)),o=G(F(n*M).toFixed(3)),a=e.width/2,r=e.height/2,s=e.x+a,l=e.y+r,c=L(a*i)+L(r*o),d=L(a*o)+L(r*i),h=t[0]+(s-t[0])*i+(l-t[1])*o,p=t[1]-(s-t[0])*o+(l-t[1])*i;return u({x:h-c,y:p-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 p(e,t){return"datetime"===e.dataType?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return new Date(e.getTime()+n*t)}:"logarithmic"===e.axisType?function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=g(t,e.base)+i*n;return _(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 f(e,n,i,o){var a=y.isDefined(n.startValue),r=y.isDefined(n.endValue),s="discrete"!==e.axisType;o=o||i;var l=p(e,!1),u=a?n.startValue:o.min,c=r?n.endValue:o.max,d=n.length,h=o.categories;if(s&&!y.isDefined(u)&&!y.isDefined(c))return{startValue:u,endValue:c};if(I(d))if(s)"datetime"!==e.dataType||T(d)||(d=C(d)),r&&!a||!r&&!a?(I(i.max)&&(c=c>i.max?i.max:c),u=l(c,d,-1)):a&&!r&&(I(i.min)&&(u=u<i.min?i.min:u),c=l(u,d));else if(d=parseInt(d),!isNaN(d)&&isFinite(d))if(d--,r||a){if(a&&!r){var f=t.getCategoriesInfo(h,u,void 0);c=f.categories[d]}else if(!a&&r){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&&(I(i.max)&&c>i.max&&(c=i.max),I(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 Y(e,t);if(0===e)return 0;var o=Y(Math.abs(e),t)-(i-1);return o<0?0:q(K(e)*o,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 o=Z(Math.abs(e)+(i-1),t);return o<0?0:q(K(e)*o,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,w=n(30),C=n(22).dateToMilliseconds,k=n(11),S=n(86),I=y.isDefined,T=y.isNumeric,D=y.isExponential,E=Math,A=E.round,O=Math.sqrt,P=Math.PI,B=1e10,M=P/180,R=Math.LN10,V=Math.cos,F=Math.sin,L=Math.abs,H=Math.log,z=Math.floor,N=Math.ceil,$=Math.max,W=isNaN,G=Number,j=NaN,q=w.adjust,K=w.sign,U=10,Y=function(e,t){return e?Math.log(e)/Math.log(t):j},X=function(e){return q(Y(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 P*e/180},te=function(e){var t=ee(e);return{cos:V(t),sin:F(t)}},ne=1e-14,ie=function(e,t,n,i){var o=n-e,a=i-t;return Math.sqrt(a*a+o*o)},oe=function(e){var t,n=L(e);return W(n)?j:n>0?(n=H(n)/R,t=N(n),t-n<ne?t:z(n)):0},ae=function(e,t,n){var i,o=$(oe(e),oe(t)),a=-oe(L(t-e)/n);return W(o)||W(a)?null:(L(o)<=4?(i="fixedPoint",a<0&&(a=0),a>4&&(a=4)):(i="exponential",a+=o-1,a>3&&(a=3)),{type:i,precision:a})},re=function(e,t){if(t>20&&(t=20),T(e))return G(D(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=o(e,t),i.push(E.ceil(n/i.length)),n=a(e,t,E.min.apply(null,i),n);while(n>0&&i.length>1);return n},normalizeEnum:r,parseScalar:function(e,t){return void 0!==e?e:t},enumParser:function(e){var t,n,i={};for(t=0,n=e.length;t<n;++t)i[r(e[t])]=1;return function(e,t){var n=r(e);return i[n]?n:t}},patchFontOptions:function(e){var t={};return 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 o=new S(i);i="rgba(".concat(o.r,",").concat(o.g,",").concat(o.b,",").concat(e.opacity,")")}}else n="font-"+n;t[n]=i}),t},checkElementHasPropertyFromStyleSheet:function(e,t){var n=Array.prototype.slice,i=n.call(k.getDocument().styleSheets).reduce(function(e,t){return e.concat(n.call(t.cssRules||t.rules))},[]),o=i.filter(function(t){try{return k.elementMatches(e,t.selectorText)}catch(e){return!1}});return o.some(function(e){return!!e.style[t]})},convertPolarToXY:function(e,t,n,i){var o=90,a=i>0?i:0;n=I(n)?n+t-o:0;var r=te(n);return{x:A(e.x+a*r.cos),y:A(e.y+a*r.sin)}},convertXYToPolar:function(e,t,n){var i=ie(e.x,e.y,t,n),o=E.atan2(n-e.y,t-e.x);return{phi:A(Q(180*o/E.PI)),r:A(i)}},processSeriesTemplate:function(e,t){var n,o,a,r=y.isFunction(e.customizeSeries)?e.customizeSeries:v,s=e.nameField,l={},u=[],c=0;for(t=t||[],o=t.length;c<o;c++)a=t[c],s in a&&(n=l[a[s]],n||(n=l[a[s]]={name:a[s],nameFieldValue:a[s]},u.push(n.name)));return i(u,function(e){var t=l[e];return b(t,r.call(null,t.name))})},getCategoriesInfo:function(e,t,n){if(0===e.length)return{categories:[]};t=I(t)?t:e[0],n=I(n)?n:e[e.length-1];var o,a,r,s=i(e,function(e){return I(e)?e.valueOf():null}),l=s.indexOf(t.valueOf()),u=s.indexOf(n.valueOf()),c=!1;return l<0&&(l=0),u<0&&(u=e.length-1),u<l&&(a=u,u=l,l=a,c=!0),o=e.slice(l,u+1),r=o.length-1,{categories:o,start:o[c?r:0],end:o[c?0:r],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=A(i),n=1),!n&&i&&(y.isString(t)&&t.indexOf("%")>-1?i/=100:i<0&&(i=i<-1?1:E.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 o=t/n,a=i*o;e.filter(function(e){return!e.unit&&e.height}).forEach(function(e){return e.height*=(t-a)/t}),e.filter(function(e){return!e.unit&&!e.height}).forEach(function(e){return e.height=o})}e.forEach(function(e){return!e.unit&&(e.height*=1/t)})}},updatePanesCanvases:function(e,t,n){var i=0,o=U,a=n?t.width-t.left-t.right:t.height-t.top-t.bottom,r=a-o*(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);r-=c,e.forEach(function(e){var n=e.unit?e.height:A(e.height*r);e.canvas=e.canvas||{},b(e.canvas,t),e.canvas[l]=t[l]+i,e.canvas[u]=t[u]+(a-n-i),i=i+n+o,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,o=(i?e.x:e.x+e.width)-n.x,a=e.y-n.y,r=a+t,s=A(O(o*o+a*a-r*r)),l=(i?+s:-s)||o;return{x:n.x+(i?l:l-e.width),y:e.y+t}},mergeMarginOptions:function(e,t){return{checkInterval:e.checkInterval||t.checkInterval,size:Math.max(e.size||0,t.size||0),percentStick:e.percentStick||t.percentStick,sizePointNormalState:Math.max(e.sizePointNormalState||0,t.sizePointNormalState||0)}}}),t.getVizRangeObject=d,t.convertVisualRangeObject=h,t.adjustVisualRange=f,t.getAddFunction=p,t.getLog=Y,t.getLogExt=g,t.getAdjustedLog10=X,t.raiseTo=Z,t.raiseToExt=_,t.normalizeAngle=Q,t.convertAngleToRendererSpace=J,t.degreesToRadians=ee,t.getCosAndSin=te,t.getDecimalOrder=oe,t.getAppropriateFormat=ae,t.getDistance=ie,t.roundValue=re,t.getPower=se,t.rotateBBox=c,t.normalizeBBox=u,t.PANE_PADDING=U,t.rangesAreEqual=m},function(e,t,n){var i=n(1).isDefined,o=n(3).each,a=n(47),r=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 o(e,function(e,i){var o=h(i,t);o!==-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 o(e,function(e,i){var o=h(i,t);o===-1&&n.push(i)}),n},d=function(e,t,n,s){var l={},u=0,c=r().useLegacyVisibleIndex;return o(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||o(e,function(){if(!i(this[t])&&(!s||s(this))){for(;l[u];)u++;l[u]=[this],u++}}),u=0,a.orderEach(l,function(e,n){o(n,function(){e>=0&&(this[t]=u++)})}),c&&o(e,function(){i(this[t])||s&&!s(this)||(this[t]=u++)}),u},h=function(e,t){if(!t)return-1;var n=Array.isArray(t)?t:t.toArray();return n.indexOf(e)},p=function(e,t){for(var n=0;n<t.length;n++)e[e.length]=t[n];return e},f=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=p,t.find=f},function(e,t,n){var i=n(21),o=n(1),a=function(e,t,n){return function(){var i=this.callBase;this.callBase=e[t];try{return n.apply(this,arguments)}finally{this.callBase=i}}},r=function(e){var t=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,o=Object.prototype.hasOwnProperty.bind(i),a=!o("_includedCtors")&&!o("_includedPostCtors");for(a&&(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||o.isWindow(this)||"function"!=typeof this.constructor)throw i.Error("E0003");var e,t=this,n=t.ctor,a=t.constructor._includedCtors,r=t.constructor._includedPostCtors;for(e=0;e<a.length;e++)a[e].call(t);for(n&&n.apply(t,arguments),e=0;e<r.length;e++)r[e].call(t)};return t.prototype=r(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),o=n(7),a=o.getNavigator(),r=o.getWindow(),s=n(0).extend,l=n(1).isPlainObject,u=n(3).each,c=n(15),d=n(21),h=n(26),p=n(130),f=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),o=/((intel|ppc) mac os x)/.test(e.toLowerCase());if(t||n||i||o)return{deviceType:t?"phone":n?"tablet":"desktop",platform:"generic",version:[],grade:"A",mac:o}},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]||0,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}}}},x=c.inherit({ctor:function(e){this._window=e&&e.window||r,this._realDevice=this._getDevice(),this._currentDevice=void 0,this._currentOrientation=void 0,this.changed=h(),o.hasWindow()&&(this._recalculateOrientation(),p.add(this._recalculateOrientation.bind(this)))},current:function(e){if(e)return this._currentDevice=this._getDevice(e),this._forced=!0,void this.changed.fire();if(!this._currentDevice){e=void 0;try{e=this._getDeviceOrNameFromWindowScope()}catch(t){e=this._getDeviceNameFromSessionStorage()}finally{e||(e=this._getDeviceNameFromSessionStorage()),e&&(this._forced=!0)}this._currentDevice=this._getDevice(e)}return this._currentDevice},real:function(){return s({},this._realDevice)},orientation:function(){return this._currentOrientation},isForced:function(){return this._forced},isRippleEmulator:function(){return!!this._window.tinyHippos},_getCssClasses:function(e){var t=[],n=this._realDevice;return e=e||this.current(),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]),w.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 d.Error("E0005")}else t=a.userAgent;return this._fromUA(t)},_getDeviceOrNameFromWindowScope:function(){var e;return o.hasWindow()&&(this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"])&&(e=this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"]),e},_getDeviceNameFromSessionStorage:function(){var e=g();if(e){var t=e.getItem("dx-force-device");try{return JSON.parse(t)}catch(e){return t}}},_fromConfig:function(e){var t=s({},y,this._currentDevice,e),n={phone:"phone"===t.deviceType,tablet:"tablet"===t.deviceType,android:"android"===t.platform,ios:"ios"===t.platform,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(f),w=new x;_.changeCallback.add(function(e,t){w.detachCssClasses(t),w.attachCssClasses(e)}),e.exports=w},function(e,t,n){var i=n(2),o=n(5),a=n(110),r=n(0).extend,s=n(14).inArray,l=n(3).each,u=n(4),c=n(1),d=n(11),h=n(161),p=n(162),f=n(65),g=n(8),_=n(140),m=n(133),v=n(20),y="UIFeedback",b="dx-widget",x="dx-state-active",w="dx-state-disabled",C="dx-state-invisible",k="dx-state-hover",S="dx-state-focused",I=30,T=400,D="Focus",E=h.inherit({_supportedKeys:function(){return{}},_getDefaultOptions:function(){return r(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:I,_feedbackHideTimeout:T,_init:function(){this.callBase(),this._initContentReadyAction()},_clearInnerOptionCache:function(e){this[e+"Cache"]={}},_cacheInnerOptions:function(e,t){var n=e+"Cache";this[n]=r(this[n],t)},_getOptionsFromContainer:function(e){var t=e.name,n=e.fullName,i=e.value,o={};if(t===n)o=i;else{var a=n.split(".").pop();o[a]=i}return o},_innerOptionChanged:function(e,t){var n=this._getOptionsFromContainer(t);e&&e.option(n),this._cacheInnerOptions(t.name,n)},_getInnerOptionsCache:function(e){return this[e+"Cache"]},_initInnerOptionCache:function(e){this._clearInnerOptionCache(e),this._cacheInnerOptions(e,this.option(e))},_bindInnerWidgetOptions:function(e,t){this._options[t]=r({},e.option()),e.on("optionChanged",function(e){this._options[t]=r({},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);o.off(e,t),this.option("accessKey")&&o.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("."+w)),e},_renderFocusTarget:function(){this._focusTarget().attr("tabIndex",this.option("tabIndex"))},_keyboardEventBindingTarget:function(){return this._eventBindingTarget()},_detachFocusEvents:function(){var e=this._focusEventTarget(),t=this.NAME+D,n=g.addNamespace("focusin",t);n=n+" "+g.addNamespace("focusout",t),d.hasDocumentProperty("onbeforeactivate")&&(n=n+" "+g.addNamespace("beforeactivate",t)),o.off(e,n)},_attachFocusEvents:function(){var e=this.NAME+D,t=g.addNamespace("focusin",e),n=g.addNamespace("focusout",e),a=this._focusEventTarget();if(o.on(a,t,this._focusInHandler.bind(this)),o.on(a,n,this._focusOutHandler.bind(this)),d.hasDocumentProperty("onbeforeactivate")){var r=g.addNamespace("beforeactivate",e);o.on(this._focusEventTarget(),r,function(e){i(e.target).is(f.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(S,e)},_hasFocusClass:function(e){var t=i(e||this._focusTarget());return t.hasClass(S)},_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 p({element:this._keyboardEventBindingTarget(),handler:this._keyboardHandler,focusTarget:this._focusTarget(),context:this}))},_keyboardHandler:function(e){var t=e.originalEvent,n=e.keyName,i=e.which,o=this._supportedKeys(t),a=o[n]||o[i];if(void 0!==a){var r=a.bind(this);return r(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),r=g.addNamespace(_.end,y);if(o.off(e._eventBindingTarget(),n,t),o.off(e._eventBindingTarget(),r,t),e.option("hoverStateEnabled")){var s=new a(function(t){e._hoverStartHandler(t.event),e._refreshHover