devextreme 18.1.13 → 18.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (945) hide show
  1. package/animation/easing.js +3 -3
  2. package/animation/frame.d.ts +3 -3
  3. package/animation/frame.js +3 -3
  4. package/animation/fx.d.ts +3 -3
  5. package/animation/fx.js +4 -4
  6. package/animation/position.js +3 -3
  7. package/animation/presets/presets.js +3 -3
  8. package/animation/presets.d.ts +3 -3
  9. package/animation/presets.js +3 -3
  10. package/animation/transition_executor/transition_executor.js +3 -3
  11. package/animation/transition_executor.d.ts +3 -3
  12. package/animation/transition_executor.js +3 -3
  13. package/animation/translator.js +3 -3
  14. package/aspnet.js +3 -3
  15. package/bundles/dx.all.d.ts +3 -3
  16. package/bundles/modules/core.js +3 -3
  17. package/bundles/modules/data.js +3 -3
  18. package/bundles/modules/data.odata.js +3 -3
  19. package/bundles/modules/framework.js +3 -3
  20. package/bundles/modules/ui.js +3 -3
  21. package/bundles/modules/viz.js +3 -3
  22. package/client_exporter/excel_creator.js +3 -3
  23. package/client_exporter/excel_format_converter.js +3 -3
  24. package/client_exporter/file_saver.js +3 -3
  25. package/client_exporter/image_creator.js +3 -3
  26. package/client_exporter/pdf_creator.js +3 -3
  27. package/client_exporter/svg_creator.js +3 -3
  28. package/client_exporter.js +3 -3
  29. package/color.js +3 -3
  30. package/core/action.js +3 -3
  31. package/core/class.js +3 -3
  32. package/core/component.js +3 -3
  33. package/core/component_registrator.js +3 -3
  34. package/core/component_registrator_callbacks.js +3 -3
  35. package/core/config.d.ts +3 -3
  36. package/core/config.js +3 -3
  37. package/core/devices.d.ts +3 -3
  38. package/core/devices.js +3 -3
  39. package/core/dom_adapter.js +3 -3
  40. package/core/dom_component.js +3 -3
  41. package/core/element_data.js +3 -3
  42. package/core/errors.js +3 -3
  43. package/core/events_mixin.js +3 -3
  44. package/core/events_strategy.js +3 -3
  45. package/core/guid.d.ts +3 -3
  46. package/core/guid.js +3 -3
  47. package/core/http_request.js +3 -3
  48. package/core/memorized_callbacks.js +3 -3
  49. package/core/polyfills/promise.js +3 -3
  50. package/core/polyfills/weak_map.js +3 -3
  51. package/core/remove_event.js +3 -3
  52. package/core/renderer.js +3 -3
  53. package/core/renderer_base.js +3 -3
  54. package/core/utils/ajax.js +3 -3
  55. package/core/utils/array.js +3 -3
  56. package/core/utils/browser.js +3 -3
  57. package/core/utils/call_once.js +3 -3
  58. package/core/utils/callbacks.js +3 -3
  59. package/core/utils/common.js +3 -3
  60. package/core/utils/console.js +3 -3
  61. package/core/utils/data.js +3 -3
  62. package/core/utils/date.js +3 -3
  63. package/core/utils/date_serialization.js +3 -3
  64. package/core/utils/deferred.js +3 -3
  65. package/core/utils/dependency_injector.js +3 -3
  66. package/core/utils/dom.js +3 -3
  67. package/core/utils/error.js +3 -3
  68. package/core/utils/extend.js +3 -3
  69. package/core/utils/html_parser.js +3 -3
  70. package/core/utils/icon.js +3 -3
  71. package/core/utils/inflector.js +3 -3
  72. package/core/utils/iterator.js +3 -3
  73. package/core/utils/locker.js +3 -3
  74. package/core/utils/math.js +3 -3
  75. package/core/utils/object.js +3 -3
  76. package/core/utils/position.js +3 -3
  77. package/core/utils/public_component.js +3 -3
  78. package/core/utils/queue.js +3 -3
  79. package/core/utils/ready_callbacks.js +3 -3
  80. package/core/utils/resize_callbacks.js +3 -3
  81. package/core/utils/selection_filter.js +3 -3
  82. package/core/utils/size.js +3 -3
  83. package/core/utils/storage.js +3 -3
  84. package/core/utils/string.js +3 -3
  85. package/core/utils/style.js +3 -3
  86. package/core/utils/support.js +3 -3
  87. package/core/utils/svg.js +3 -3
  88. package/core/utils/type.js +3 -3
  89. package/core/utils/variable_wrapper.js +3 -3
  90. package/core/utils/version.js +3 -3
  91. package/core/utils/view_port.js +3 -3
  92. package/core/utils/window.js +3 -3
  93. package/core/version.js +4 -4
  94. package/data/abstract_store.js +3 -3
  95. package/data/array_query.js +5 -4
  96. package/data/array_store.d.ts +3 -3
  97. package/data/array_store.js +3 -3
  98. package/data/custom_store.d.ts +3 -3
  99. package/data/custom_store.js +3 -3
  100. package/data/data_source/data_source.js +3 -3
  101. package/data/data_source.d.ts +3 -3
  102. package/data/data_source.js +3 -3
  103. package/data/endpoint_selector.d.ts +3 -3
  104. package/data/endpoint_selector.js +3 -3
  105. package/data/errors.d.ts +3 -3
  106. package/data/errors.js +3 -3
  107. package/data/local_store.d.ts +3 -3
  108. package/data/local_store.js +3 -3
  109. package/data/odata/context.d.ts +3 -3
  110. package/data/odata/context.js +3 -3
  111. package/data/odata/mixins.js +3 -3
  112. package/data/odata/query_adapter.js +3 -3
  113. package/data/odata/store.d.ts +3 -3
  114. package/data/odata/store.js +3 -3
  115. package/data/odata/utils.d.ts +3 -3
  116. package/data/odata/utils.js +3 -3
  117. package/data/proxy_url_formatter.js +3 -3
  118. package/data/query.d.ts +3 -3
  119. package/data/query.js +3 -3
  120. package/data/query_adapters.js +3 -3
  121. package/data/remote_query.js +3 -3
  122. package/data/store_helper.js +3 -3
  123. package/data/utils.d.ts +3 -3
  124. package/data/utils.js +3 -3
  125. package/data_helper.js +3 -3
  126. package/dist/css/dx.android5.light.css +3 -3
  127. package/dist/css/dx.carmine.compact.css +3 -3
  128. package/dist/css/dx.carmine.css +3 -3
  129. package/dist/css/dx.common.css +3 -3
  130. package/dist/css/dx.contrast.compact.css +3 -3
  131. package/dist/css/dx.contrast.css +3 -3
  132. package/dist/css/dx.dark.compact.css +3 -3
  133. package/dist/css/dx.dark.css +3 -3
  134. package/dist/css/dx.darkmoon.compact.css +3 -3
  135. package/dist/css/dx.darkmoon.css +3 -3
  136. package/dist/css/dx.darkviolet.compact.css +3 -3
  137. package/dist/css/dx.darkviolet.css +3 -3
  138. package/dist/css/dx.greenmist.compact.css +3 -3
  139. package/dist/css/dx.greenmist.css +3 -3
  140. package/dist/css/dx.ios7.default.css +3 -3
  141. package/dist/css/dx.light.compact.css +3 -3
  142. package/dist/css/dx.light.css +3 -3
  143. package/dist/css/dx.material.blue.dark.css +3 -3
  144. package/dist/css/dx.material.blue.light.css +3 -3
  145. package/dist/css/dx.material.lime.dark.css +3 -3
  146. package/dist/css/dx.material.lime.light.css +3 -3
  147. package/dist/css/dx.material.orange.dark.css +3 -3
  148. package/dist/css/dx.material.orange.light.css +3 -3
  149. package/dist/css/dx.material.purple.dark.css +3 -3
  150. package/dist/css/dx.material.purple.light.css +3 -3
  151. package/dist/css/dx.material.teal.dark.css +3 -3
  152. package/dist/css/dx.material.teal.light.css +3 -3
  153. package/dist/css/dx.softblue.compact.css +3 -3
  154. package/dist/css/dx.softblue.css +3 -3
  155. package/dist/css/dx.spa.css +3 -3
  156. package/dist/css/dx.win10.black.css +3 -3
  157. package/dist/css/dx.win10.white.css +3 -3
  158. package/dist/css/dx.win8.black.css +3 -3
  159. package/dist/css/dx.win8.white.css +3 -3
  160. package/dist/js/dx.all.debug.js +54 -48
  161. package/dist/js/dx.all.js +8 -8
  162. package/dist/js/dx.aspnet.mvc.js +3 -3
  163. package/dist/js/dx.mobile.debug.js +54 -48
  164. package/dist/js/dx.mobile.js +41 -41
  165. package/dist/js/dx.viz-web.debug.js +54 -48
  166. package/dist/js/dx.viz-web.js +8 -8
  167. package/dist/js/dx.viz.debug.js +54 -48
  168. package/dist/js/dx.viz.js +9 -9
  169. package/dist/js/dx.web.debug.js +54 -48
  170. package/dist/js/dx.web.js +23 -23
  171. package/dist/js/localization/dx.messages.cs.js +3 -3
  172. package/dist/js/localization/dx.messages.de.js +3 -3
  173. package/dist/js/localization/dx.messages.el.js +3 -3
  174. package/dist/js/localization/dx.messages.en.js +3 -3
  175. package/dist/js/localization/dx.messages.es.js +3 -3
  176. package/dist/js/localization/dx.messages.fi.js +3 -3
  177. package/dist/js/localization/dx.messages.fr.js +3 -3
  178. package/dist/js/localization/dx.messages.it.js +3 -3
  179. package/dist/js/localization/dx.messages.ja.js +3 -3
  180. package/dist/js/localization/dx.messages.nl.js +3 -3
  181. package/dist/js/localization/dx.messages.pt.js +3 -3
  182. package/dist/js/localization/dx.messages.ru.js +3 -3
  183. package/dist/js/localization/dx.messages.sv.js +3 -3
  184. package/dist/js/localization/dx.messages.zh.js +3 -3
  185. package/dist/js/vectormap-utils/dx.vectormaputils.debug.js +3 -3
  186. package/dist/js/vectormap-utils/dx.vectormaputils.js +3 -3
  187. package/dist/js/vectormap-utils/dx.vectormaputils.node.js +3 -3
  188. package/dist/ts/dx.all.d.ts +3 -3
  189. package/dist/ts/dx.all.legacy.d.ts +3 -3
  190. package/docEnums.js +3 -3
  191. package/events/click.d.ts +3 -3
  192. package/events/click.js +3 -3
  193. package/events/contextmenu.d.ts +3 -3
  194. package/events/contextmenu.js +3 -3
  195. package/events/core/emitter.feedback.js +3 -3
  196. package/events/core/emitter.js +3 -3
  197. package/events/core/emitter_registrator.js +3 -3
  198. package/events/core/event_registrator.js +3 -3
  199. package/events/core/event_registrator_callbacks.js +3 -3
  200. package/events/core/events_engine.js +3 -3
  201. package/events/core/hook_touch_props.js +3 -3
  202. package/events/core/wheel.js +3 -3
  203. package/events/core.js +3 -3
  204. package/events/dblclick.d.ts +3 -3
  205. package/events/dblclick.js +3 -3
  206. package/events/double_click.js +3 -3
  207. package/events/drag.d.ts +3 -3
  208. package/events/drag.js +3 -3
  209. package/events/gesture/emitter.gesture.js +3 -3
  210. package/events/gesture/swipeable.js +3 -3
  211. package/events/hold.d.ts +3 -3
  212. package/events/hold.js +3 -3
  213. package/events/hover.d.ts +3 -3
  214. package/events/hover.js +3 -3
  215. package/events/pointer/base.js +3 -3
  216. package/events/pointer/mouse.js +3 -3
  217. package/events/pointer/mouse_and_touch.js +3 -3
  218. package/events/pointer/mspointer.js +3 -3
  219. package/events/pointer/observer.js +3 -3
  220. package/events/pointer/touch.js +3 -3
  221. package/events/pointer.d.ts +3 -3
  222. package/events/pointer.js +3 -3
  223. package/events/swipe.d.ts +3 -3
  224. package/events/swipe.js +3 -3
  225. package/events/transform.d.ts +3 -3
  226. package/events/transform.js +3 -3
  227. package/events/utils.js +3 -3
  228. package/events.d.ts +3 -3
  229. package/events.js +3 -3
  230. package/exporter.js +3 -3
  231. package/format_helper.js +3 -3
  232. package/framework/action_executors.js +3 -3
  233. package/framework/application.js +3 -3
  234. package/framework/browser_adapters.js +3 -3
  235. package/framework/command.d.ts +3 -3
  236. package/framework/command.js +3 -3
  237. package/framework/command_mapping.js +3 -3
  238. package/framework/errors.js +3 -3
  239. package/framework/html/command_container.d.ts +3 -3
  240. package/framework/html/command_container.js +3 -3
  241. package/framework/html/command_manager.js +3 -3
  242. package/framework/html/html_application.d.ts +3 -3
  243. package/framework/html/html_application.js +3 -3
  244. package/framework/html/layout_controller.js +3 -3
  245. package/framework/html/markup_component.js +3 -3
  246. package/framework/html/presets.js +3 -3
  247. package/framework/html/view_engine.js +3 -3
  248. package/framework/html/view_engine_components.d.ts +3 -3
  249. package/framework/html/view_engine_components.js +3 -3
  250. package/framework/html/widget_command_adapters.js +3 -3
  251. package/framework/navigation_devices.js +3 -3
  252. package/framework/navigation_manager.js +3 -3
  253. package/framework/router.d.ts +3 -3
  254. package/framework/router.js +3 -3
  255. package/framework/state_manager.d.ts +3 -3
  256. package/framework/state_manager.js +3 -3
  257. package/framework/utils.js +3 -3
  258. package/framework/view_cache.d.ts +3 -3
  259. package/framework/view_cache.js +3 -3
  260. package/integration/angular/action_executors.js +3 -3
  261. package/integration/angular/component_registrator.js +3 -3
  262. package/integration/angular/components.js +3 -3
  263. package/integration/angular/event_registrator.js +3 -3
  264. package/integration/angular/module.js +3 -3
  265. package/integration/angular/template.js +3 -3
  266. package/integration/angular.js +3 -3
  267. package/integration/jquery/ajax.js +3 -3
  268. package/integration/jquery/component_registrator.js +3 -3
  269. package/integration/jquery/deferred.js +3 -3
  270. package/integration/jquery/easing.js +3 -3
  271. package/integration/jquery/element.js +3 -3
  272. package/integration/jquery/element_data.js +3 -3
  273. package/integration/jquery/events.js +3 -3
  274. package/integration/jquery/hold_ready.js +3 -3
  275. package/integration/jquery/hooks.js +3 -3
  276. package/integration/jquery/renderer.js +3 -3
  277. package/integration/jquery/use_jquery.js +3 -3
  278. package/integration/jquery.d.ts +3 -3
  279. package/integration/jquery.js +3 -3
  280. package/integration/knockout/clean_node.js +3 -3
  281. package/integration/knockout/clean_node_old.js +3 -3
  282. package/integration/knockout/component_registrator.js +3 -3
  283. package/integration/knockout/components.js +3 -3
  284. package/integration/knockout/event_registrator.js +3 -3
  285. package/integration/knockout/template.js +3 -3
  286. package/integration/knockout/utils.js +3 -3
  287. package/integration/knockout/validation.js +3 -3
  288. package/integration/knockout/variable_wrapper_utils.js +3 -3
  289. package/integration/knockout.js +3 -3
  290. package/localization/cldr-data/parentLocales.js +49 -44
  291. package/localization/core.js +3 -3
  292. package/localization/currency.js +3 -3
  293. package/localization/date.js +3 -3
  294. package/localization/default_date_names.js +3 -3
  295. package/localization/default_messages.js +3 -3
  296. package/localization/globalize/core.js +3 -3
  297. package/localization/globalize/currency.js +3 -3
  298. package/localization/globalize/date.js +3 -3
  299. package/localization/globalize/message.js +3 -3
  300. package/localization/globalize/number.js +3 -3
  301. package/localization/language_codes.js +3 -3
  302. package/localization/ldml/date.format.js +3 -3
  303. package/localization/ldml/date.formatter.js +3 -3
  304. package/localization/ldml/date.parser.js +3 -3
  305. package/localization/ldml/number.js +3 -3
  306. package/localization/message.js +3 -3
  307. package/localization/number.js +3 -3
  308. package/localization.d.ts +3 -3
  309. package/localization.js +3 -3
  310. package/mobile/hide_top_overlay.d.ts +3 -3
  311. package/mobile/hide_top_overlay.js +3 -3
  312. package/mobile/init_mobile_viewport/init_mobile_viewport.js +3 -3
  313. package/mobile/init_mobile_viewport.d.ts +3 -3
  314. package/mobile/init_mobile_viewport.js +3 -3
  315. package/mobile/process_hardware_back_button.d.ts +3 -3
  316. package/mobile/process_hardware_back_button.js +3 -3
  317. package/package.json +2 -2
  318. package/ui/accordion.d.ts +3 -3
  319. package/ui/accordion.js +3 -3
  320. package/ui/action_sheet.d.ts +3 -3
  321. package/ui/action_sheet.js +3 -3
  322. package/ui/autocomplete.d.ts +3 -3
  323. package/ui/autocomplete.js +3 -3
  324. package/ui/box.d.ts +3 -3
  325. package/ui/box.js +3 -3
  326. package/ui/button.d.ts +3 -3
  327. package/ui/button.js +3 -3
  328. package/ui/calendar/ui.calendar.base_view.js +3 -3
  329. package/ui/calendar/ui.calendar.js +3 -3
  330. package/ui/calendar/ui.calendar.navigator.js +3 -3
  331. package/ui/calendar/ui.calendar.views.js +3 -3
  332. package/ui/calendar.d.ts +3 -3
  333. package/ui/calendar.js +3 -3
  334. package/ui/check_box.d.ts +3 -3
  335. package/ui/check_box.js +3 -3
  336. package/ui/collection/item.js +3 -3
  337. package/ui/collection/ui.collection_widget.async.js +3 -3
  338. package/ui/collection/ui.collection_widget.base.js +3 -3
  339. package/ui/collection/ui.collection_widget.edit.js +3 -3
  340. package/ui/collection/ui.collection_widget.edit.strategy.js +3 -3
  341. package/ui/collection/ui.collection_widget.edit.strategy.plain.js +3 -3
  342. package/ui/color_box/color_box.js +3 -3
  343. package/ui/color_box/color_view.js +3 -3
  344. package/ui/color_box.d.ts +3 -3
  345. package/ui/color_box.js +3 -3
  346. package/ui/context_menu/ui.context_menu.js +3 -3
  347. package/ui/context_menu/ui.menu_base.edit.strategy.js +3 -3
  348. package/ui/context_menu/ui.menu_base.js +3 -3
  349. package/ui/context_menu.d.ts +3 -3
  350. package/ui/context_menu.js +3 -3
  351. package/ui/data_grid/aggregate_calculator.js +3 -3
  352. package/ui/data_grid/ui.data_grid.adaptivity.js +3 -3
  353. package/ui/data_grid/ui.data_grid.base.js +3 -3
  354. package/ui/data_grid/ui.data_grid.column_chooser.js +3 -3
  355. package/ui/data_grid/ui.data_grid.column_fixing.js +3 -3
  356. package/ui/data_grid/ui.data_grid.column_headers.js +3 -3
  357. package/ui/data_grid/ui.data_grid.columns_controller.js +3 -3
  358. package/ui/data_grid/ui.data_grid.columns_resizing_reordering.js +3 -3
  359. package/ui/data_grid/ui.data_grid.context_menu.js +3 -3
  360. package/ui/data_grid/ui.data_grid.core.js +3 -3
  361. package/ui/data_grid/ui.data_grid.data_controller.js +3 -3
  362. package/ui/data_grid/ui.data_grid.data_source_adapter.js +3 -3
  363. package/ui/data_grid/ui.data_grid.editing.js +3 -3
  364. package/ui/data_grid/ui.data_grid.editor_factory.js +3 -3
  365. package/ui/data_grid/ui.data_grid.error_handling.js +3 -3
  366. package/ui/data_grid/ui.data_grid.export.js +3 -3
  367. package/ui/data_grid/ui.data_grid.filter_builder.js +3 -3
  368. package/ui/data_grid/ui.data_grid.filter_panel.js +3 -3
  369. package/ui/data_grid/ui.data_grid.filter_row.js +3 -3
  370. package/ui/data_grid/ui.data_grid.filter_sync.js +3 -3
  371. package/ui/data_grid/ui.data_grid.grid_view.js +3 -3
  372. package/ui/data_grid/ui.data_grid.grouping.collapsed.js +3 -3
  373. package/ui/data_grid/ui.data_grid.grouping.core.js +3 -3
  374. package/ui/data_grid/ui.data_grid.grouping.expanded.js +3 -3
  375. package/ui/data_grid/ui.data_grid.grouping.js +3 -3
  376. package/ui/data_grid/ui.data_grid.header_filter.js +3 -3
  377. package/ui/data_grid/ui.data_grid.header_panel.js +3 -3
  378. package/ui/data_grid/ui.data_grid.js +3 -3
  379. package/ui/data_grid/ui.data_grid.keyboard_navigation.js +3 -3
  380. package/ui/data_grid/ui.data_grid.master_detail.js +3 -3
  381. package/ui/data_grid/ui.data_grid.pager.js +3 -3
  382. package/ui/data_grid/ui.data_grid.rows.js +3 -3
  383. package/ui/data_grid/ui.data_grid.search.js +3 -3
  384. package/ui/data_grid/ui.data_grid.selection.js +3 -3
  385. package/ui/data_grid/ui.data_grid.sorting.js +3 -3
  386. package/ui/data_grid/ui.data_grid.state_storing.js +3 -3
  387. package/ui/data_grid/ui.data_grid.summary.js +3 -3
  388. package/ui/data_grid/ui.data_grid.validating.js +3 -3
  389. package/ui/data_grid/ui.data_grid.virtual_columns.js +3 -3
  390. package/ui/data_grid/ui.data_grid.virtual_scrolling.js +3 -3
  391. package/ui/data_grid.d.ts +3 -3
  392. package/ui/data_grid.js +3 -3
  393. package/ui/date_box/ui.date_box.js +3 -3
  394. package/ui/date_box/ui.date_box.strategy.calendar.js +3 -3
  395. package/ui/date_box/ui.date_box.strategy.calendar_with_time.js +3 -3
  396. package/ui/date_box/ui.date_box.strategy.date_view.js +3 -3
  397. package/ui/date_box/ui.date_box.strategy.js +3 -3
  398. package/ui/date_box/ui.date_box.strategy.list.js +3 -3
  399. package/ui/date_box/ui.date_box.strategy.native.js +3 -3
  400. package/ui/date_box/ui.date_utils.js +3 -3
  401. package/ui/date_box/ui.date_view.js +3 -3
  402. package/ui/date_box/ui.date_view_roller.js +3 -3
  403. package/ui/date_box/ui.time_view.js +3 -3
  404. package/ui/date_box.d.ts +3 -3
  405. package/ui/date_box.js +3 -3
  406. package/ui/defer_rendering.d.ts +3 -3
  407. package/ui/defer_rendering.js +3 -3
  408. package/ui/dialog.d.ts +3 -3
  409. package/ui/dialog.js +3 -3
  410. package/ui/draggable.js +3 -3
  411. package/ui/drop_down_box.d.ts +3 -3
  412. package/ui/drop_down_box.js +3 -3
  413. package/ui/drop_down_editor/ui.drop_down_editor.js +3 -3
  414. package/ui/drop_down_editor/ui.drop_down_list.js +3 -3
  415. package/ui/drop_down_menu.js +3 -3
  416. package/ui/editor/editor.js +3 -3
  417. package/ui/editor/ui.data_expression.js +3 -3
  418. package/ui/file_uploader.d.ts +3 -3
  419. package/ui/file_uploader.js +3 -3
  420. package/ui/filter_builder/between.js +3 -3
  421. package/ui/filter_builder/filter_builder.js +3 -3
  422. package/ui/filter_builder/ui.filter_operations_dictionary.js +3 -3
  423. package/ui/filter_builder/utils.js +3 -3
  424. package/ui/filter_builder.d.ts +3 -3
  425. package/ui/filter_builder.js +3 -3
  426. package/ui/form/instance_storage.js +3 -3
  427. package/ui/form/ui.form.js +3 -3
  428. package/ui/form/ui.form.layout_manager.js +3 -3
  429. package/ui/form.d.ts +3 -3
  430. package/ui/form.js +3 -3
  431. package/ui/gallery.d.ts +3 -3
  432. package/ui/gallery.js +3 -3
  433. package/ui/grid_core/ui.grid_core.adaptivity.js +3 -3
  434. package/ui/grid_core/ui.grid_core.column_chooser.js +3 -3
  435. package/ui/grid_core/ui.grid_core.column_fixing.js +3 -3
  436. package/ui/grid_core/ui.grid_core.column_headers.js +3 -3
  437. package/ui/grid_core/ui.grid_core.column_state_mixin.js +3 -3
  438. package/ui/grid_core/ui.grid_core.columns_controller.js +3 -3
  439. package/ui/grid_core/ui.grid_core.columns_resizing_reordering.js +3 -3
  440. package/ui/grid_core/ui.grid_core.columns_view.js +3 -3
  441. package/ui/grid_core/ui.grid_core.context_menu.js +3 -3
  442. package/ui/grid_core/ui.grid_core.data_controller.js +3 -3
  443. package/ui/grid_core/ui.grid_core.data_source_adapter.js +3 -3
  444. package/ui/grid_core/ui.grid_core.editing.js +3 -3
  445. package/ui/grid_core/ui.grid_core.editor_factory.js +3 -3
  446. package/ui/grid_core/ui.grid_core.error_handling.js +3 -3
  447. package/ui/grid_core/ui.grid_core.export_mixin.js +3 -3
  448. package/ui/grid_core/ui.grid_core.filter_builder.js +3 -3
  449. package/ui/grid_core/ui.grid_core.filter_custom_operations.js +3 -3
  450. package/ui/grid_core/ui.grid_core.filter_panel.js +3 -3
  451. package/ui/grid_core/ui.grid_core.filter_row.js +3 -3
  452. package/ui/grid_core/ui.grid_core.filter_sync.js +3 -3
  453. package/ui/grid_core/ui.grid_core.grid_view.js +3 -3
  454. package/ui/grid_core/ui.grid_core.header_filter.js +3 -3
  455. package/ui/grid_core/ui.grid_core.header_filter_core.js +3 -3
  456. package/ui/grid_core/ui.grid_core.header_panel.js +3 -3
  457. package/ui/grid_core/ui.grid_core.keyboard_navigation.js +3 -3
  458. package/ui/grid_core/ui.grid_core.master_detail.js +3 -3
  459. package/ui/grid_core/ui.grid_core.modules.js +3 -3
  460. package/ui/grid_core/ui.grid_core.pager.js +3 -3
  461. package/ui/grid_core/ui.grid_core.rows.js +3 -3
  462. package/ui/grid_core/ui.grid_core.search.js +3 -3
  463. package/ui/grid_core/ui.grid_core.selection.js +3 -3
  464. package/ui/grid_core/ui.grid_core.sorting.js +3 -3
  465. package/ui/grid_core/ui.grid_core.sorting_mixin.js +3 -3
  466. package/ui/grid_core/ui.grid_core.state_storing.js +3 -3
  467. package/ui/grid_core/ui.grid_core.state_storing_core.js +3 -3
  468. package/ui/grid_core/ui.grid_core.utils.js +3 -3
  469. package/ui/grid_core/ui.grid_core.validating.js +3 -3
  470. package/ui/grid_core/ui.grid_core.virtual_columns.js +3 -3
  471. package/ui/grid_core/ui.grid_core.virtual_columns_core.js +3 -3
  472. package/ui/grid_core/ui.grid_core.virtual_scrolling.js +3 -3
  473. package/ui/grid_core/ui.grid_core.virtual_scrolling_core.js +3 -3
  474. package/ui/hierarchical_collection/ui.data_adapter.js +3 -3
  475. package/ui/hierarchical_collection/ui.data_converter.js +3 -3
  476. package/ui/hierarchical_collection/ui.hierarchical_collection_widget.js +3 -3
  477. package/ui/list/item.js +3 -3
  478. package/ui/list/ui.list.base.js +3 -3
  479. package/ui/list/ui.list.edit.decorator.context.js +3 -3
  480. package/ui/list/ui.list.edit.decorator.js +3 -3
  481. package/ui/list/ui.list.edit.decorator.reorder.js +3 -3
  482. package/ui/list/ui.list.edit.decorator.selection.js +3 -3
  483. package/ui/list/ui.list.edit.decorator.static.js +3 -3
  484. package/ui/list/ui.list.edit.decorator.swipe.js +3 -3
  485. package/ui/list/ui.list.edit.decorator.switchable.button.js +3 -3
  486. package/ui/list/ui.list.edit.decorator.switchable.js +3 -3
  487. package/ui/list/ui.list.edit.decorator.switchable.slide.js +3 -3
  488. package/ui/list/ui.list.edit.decorator_menu_helper.js +3 -3
  489. package/ui/list/ui.list.edit.decorator_registry.js +3 -3
  490. package/ui/list/ui.list.edit.js +3 -3
  491. package/ui/list/ui.list.edit.provider.js +3 -3
  492. package/ui/list/ui.list.edit.search.js +3 -3
  493. package/ui/list/ui.list.edit.strategy.grouped.js +3 -3
  494. package/ui/list.d.ts +3 -3
  495. package/ui/list.js +3 -3
  496. package/ui/load_indicator.d.ts +3 -3
  497. package/ui/load_indicator.js +3 -3
  498. package/ui/load_panel.d.ts +3 -3
  499. package/ui/load_panel.js +3 -3
  500. package/ui/lookup.d.ts +3 -3
  501. package/ui/lookup.js +3 -3
  502. package/ui/map/provider.dynamic.bing.js +3 -3
  503. package/ui/map/provider.dynamic.google.js +3 -3
  504. package/ui/map/provider.dynamic.js +3 -3
  505. package/ui/map/provider.google_static.js +3 -3
  506. package/ui/map/provider.js +3 -3
  507. package/ui/map.d.ts +3 -3
  508. package/ui/map.js +3 -3
  509. package/ui/menu/ui.menu.js +3 -3
  510. package/ui/menu/ui.submenu.js +3 -3
  511. package/ui/menu.d.ts +3 -3
  512. package/ui/menu.js +3 -3
  513. package/ui/multi_view.d.ts +3 -3
  514. package/ui/multi_view.js +3 -3
  515. package/ui/nav_bar/item.js +3 -3
  516. package/ui/nav_bar.d.ts +3 -3
  517. package/ui/nav_bar.js +3 -3
  518. package/ui/notify.d.ts +3 -3
  519. package/ui/notify.js +3 -3
  520. package/ui/number_box/number_box.base.js +3 -3
  521. package/ui/number_box/number_box.caret.js +3 -3
  522. package/ui/number_box/number_box.js +3 -3
  523. package/ui/number_box/number_box.mask.js +3 -3
  524. package/ui/number_box/number_box.spin.js +3 -3
  525. package/ui/number_box.d.ts +3 -3
  526. package/ui/number_box.js +3 -3
  527. package/ui/overlay/ui.overlay.js +3 -3
  528. package/ui/overlay/utils.js +3 -3
  529. package/ui/overlay.d.ts +3 -3
  530. package/ui/overlay.js +3 -3
  531. package/ui/pager.js +3 -3
  532. package/ui/panorama/item.js +3 -3
  533. package/ui/panorama.d.ts +3 -3
  534. package/ui/panorama.js +3 -3
  535. package/ui/pivot/ui.pivot_tabs.js +3 -3
  536. package/ui/pivot.d.ts +3 -3
  537. package/ui/pivot.js +3 -3
  538. package/ui/pivot_grid/data_source.d.ts +3 -3
  539. package/ui/pivot_grid/data_source.js +3 -3
  540. package/ui/pivot_grid/local_store.js +3 -3
  541. package/ui/pivot_grid/remote_store.js +3 -3
  542. package/ui/pivot_grid/ui.pivot_grid.area_item.js +3 -3
  543. package/ui/pivot_grid/ui.pivot_grid.chart_integration.js +3 -3
  544. package/ui/pivot_grid/ui.pivot_grid.data_area.js +3 -3
  545. package/ui/pivot_grid/ui.pivot_grid.data_controller.js +3 -3
  546. package/ui/pivot_grid/ui.pivot_grid.export.js +3 -3
  547. package/ui/pivot_grid/ui.pivot_grid.field_chooser.js +3 -3
  548. package/ui/pivot_grid/ui.pivot_grid.field_chooser_base.js +3 -3
  549. package/ui/pivot_grid/ui.pivot_grid.fields_area.js +3 -3
  550. package/ui/pivot_grid/ui.pivot_grid.headers_area.js +3 -3
  551. package/ui/pivot_grid/ui.pivot_grid.js +3 -3
  552. package/ui/pivot_grid/ui.pivot_grid.summary_display_modes.js +3 -3
  553. package/ui/pivot_grid/ui.pivot_grid.utils.js +3 -3
  554. package/ui/pivot_grid/ui.sortable.js +3 -3
  555. package/ui/pivot_grid/xmla_store/xmla_store.js +3 -3
  556. package/ui/pivot_grid/xmla_store.d.ts +3 -3
  557. package/ui/pivot_grid/xmla_store.js +3 -3
  558. package/ui/pivot_grid.d.ts +3 -3
  559. package/ui/pivot_grid.js +3 -3
  560. package/ui/pivot_grid_field_chooser.d.ts +3 -3
  561. package/ui/pivot_grid_field_chooser.js +3 -3
  562. package/ui/popover.d.ts +3 -3
  563. package/ui/popover.js +3 -3
  564. package/ui/popup.d.ts +3 -3
  565. package/ui/popup.js +3 -3
  566. package/ui/progress_bar.d.ts +3 -3
  567. package/ui/progress_bar.js +3 -3
  568. package/ui/radio_group/radio_button.js +3 -3
  569. package/ui/radio_group/radio_group.js +3 -3
  570. package/ui/radio_group.d.ts +3 -3
  571. package/ui/radio_group.js +3 -3
  572. package/ui/range_slider.d.ts +3 -3
  573. package/ui/range_slider.js +3 -3
  574. package/ui/resizable.d.ts +3 -3
  575. package/ui/resizable.js +3 -3
  576. package/ui/responsive_box.d.ts +3 -3
  577. package/ui/responsive_box.js +3 -3
  578. package/ui/scheduler/ui.loading.js +3 -3
  579. package/ui/scheduler/ui.scheduler.agenda.js +3 -3
  580. package/ui/scheduler/ui.scheduler.appointment.js +3 -3
  581. package/ui/scheduler/ui.scheduler.appointment_form.js +3 -3
  582. package/ui/scheduler/ui.scheduler.appointment_model.js +3 -3
  583. package/ui/scheduler/ui.scheduler.appointment_tooltip.js +3 -3
  584. package/ui/scheduler/ui.scheduler.appointments.drop_down.js +3 -3
  585. package/ui/scheduler/ui.scheduler.appointments.js +3 -3
  586. package/ui/scheduler/ui.scheduler.appointments.layout_manager.js +3 -3
  587. package/ui/scheduler/ui.scheduler.appointments.strategy.agenda.js +3 -3
  588. package/ui/scheduler/ui.scheduler.appointments.strategy.base.js +3 -3
  589. package/ui/scheduler/ui.scheduler.appointments.strategy.horizontal.js +3 -3
  590. package/ui/scheduler/ui.scheduler.appointments.strategy.horizontal_month.js +3 -3
  591. package/ui/scheduler/ui.scheduler.appointments.strategy.horizontal_month_line.js +3 -3
  592. package/ui/scheduler/ui.scheduler.appointments.strategy.vertical.js +3 -3
  593. package/ui/scheduler/ui.scheduler.current_time_shader.horizontal.js +3 -3
  594. package/ui/scheduler/ui.scheduler.current_time_shader.js +3 -3
  595. package/ui/scheduler/ui.scheduler.current_time_shader.vertical.js +3 -3
  596. package/ui/scheduler/ui.scheduler.header.js +3 -3
  597. package/ui/scheduler/ui.scheduler.js +3 -3
  598. package/ui/scheduler/ui.scheduler.navigator.js +3 -3
  599. package/ui/scheduler/ui.scheduler.publisher_mixin.js +3 -3
  600. package/ui/scheduler/ui.scheduler.recurrence_editor.js +3 -3
  601. package/ui/scheduler/ui.scheduler.resource_manager.js +3 -3
  602. package/ui/scheduler/ui.scheduler.subscribes.js +3 -3
  603. package/ui/scheduler/ui.scheduler.table_creator.js +3 -3
  604. package/ui/scheduler/ui.scheduler.timeline.js +3 -3
  605. package/ui/scheduler/ui.scheduler.timeline_day.js +3 -3
  606. package/ui/scheduler/ui.scheduler.timeline_month.js +3 -3
  607. package/ui/scheduler/ui.scheduler.timeline_week.js +3 -3
  608. package/ui/scheduler/ui.scheduler.timeline_work_week.js +3 -3
  609. package/ui/scheduler/ui.scheduler.timezone_editor.js +3 -3
  610. package/ui/scheduler/ui.scheduler.timezones.js +3 -3
  611. package/ui/scheduler/ui.scheduler.timezones_data.js +3 -3
  612. package/ui/scheduler/ui.scheduler.work_space.grouped.strategy.horizontal.js +3 -3
  613. package/ui/scheduler/ui.scheduler.work_space.grouped.strategy.js +3 -3
  614. package/ui/scheduler/ui.scheduler.work_space.grouped.strategy.vertical.js +3 -3
  615. package/ui/scheduler/ui.scheduler.work_space.indicator.js +3 -3
  616. package/ui/scheduler/ui.scheduler.work_space.js +3 -3
  617. package/ui/scheduler/ui.scheduler.work_space_day.js +3 -3
  618. package/ui/scheduler/ui.scheduler.work_space_month.js +3 -3
  619. package/ui/scheduler/ui.scheduler.work_space_week.js +3 -3
  620. package/ui/scheduler/ui.scheduler.work_space_work_week.js +3 -3
  621. package/ui/scheduler/utils.recurrence.js +3 -3
  622. package/ui/scheduler.d.ts +3 -3
  623. package/ui/scheduler.js +3 -3
  624. package/ui/scroll_view/animator.js +3 -3
  625. package/ui/scroll_view/ui.events.emitter.gesture.scroll.js +3 -3
  626. package/ui/scroll_view/ui.scroll_view.js +3 -3
  627. package/ui/scroll_view/ui.scroll_view.native.pull_down.js +3 -3
  628. package/ui/scroll_view/ui.scroll_view.native.slide_down.js +3 -3
  629. package/ui/scroll_view/ui.scroll_view.native.swipe_down.js +3 -3
  630. package/ui/scroll_view/ui.scroll_view.simulated.js +3 -3
  631. package/ui/scroll_view/ui.scrollable.js +3 -3
  632. package/ui/scroll_view/ui.scrollable.native.js +3 -3
  633. package/ui/scroll_view/ui.scrollable.simulated.js +3 -3
  634. package/ui/scroll_view/ui.scrollbar.js +3 -3
  635. package/ui/scroll_view.d.ts +3 -3
  636. package/ui/scroll_view.js +3 -3
  637. package/ui/select_box.d.ts +3 -3
  638. package/ui/select_box.js +3 -3
  639. package/ui/selection/selection.js +3 -3
  640. package/ui/selection/selection.strategy.deferred.js +3 -3
  641. package/ui/selection/selection.strategy.js +3 -3
  642. package/ui/selection/selection.strategy.standard.js +3 -3
  643. package/ui/set_template_engine.d.ts +3 -3
  644. package/ui/set_template_engine.js +3 -3
  645. package/ui/shared/async_template_mixin.js +3 -3
  646. package/ui/shared/filtering.js +3 -3
  647. package/ui/shared/ui.editor_factory_mixin.js +3 -3
  648. package/ui/slide_out.d.ts +3 -3
  649. package/ui/slide_out.js +3 -3
  650. package/ui/slide_out_view.d.ts +3 -3
  651. package/ui/slide_out_view.js +3 -3
  652. package/ui/slider/ui.slider.js +3 -3
  653. package/ui/slider/ui.slider_handle.js +3 -3
  654. package/ui/slider.d.ts +3 -3
  655. package/ui/slider.js +3 -3
  656. package/ui/switch.d.ts +3 -3
  657. package/ui/switch.js +3 -3
  658. package/ui/tab_panel/item.js +3 -3
  659. package/ui/tab_panel.d.ts +3 -3
  660. package/ui/tab_panel.js +3 -3
  661. package/ui/tabs/item.js +3 -3
  662. package/ui/tabs.d.ts +3 -3
  663. package/ui/tabs.js +3 -3
  664. package/ui/tag_box.d.ts +3 -3
  665. package/ui/tag_box.js +3 -3
  666. package/ui/text_area.d.ts +3 -3
  667. package/ui/text_area.js +3 -3
  668. package/ui/text_box/text_box.js +3 -3
  669. package/ui/text_box/ui.text_editor.base.js +3 -3
  670. package/ui/text_box/ui.text_editor.js +3 -3
  671. package/ui/text_box/ui.text_editor.mask.js +3 -3
  672. package/ui/text_box/ui.text_editor.mask.rule.js +3 -3
  673. package/ui/text_box/utils.caret.js +3 -3
  674. package/ui/text_box.d.ts +3 -3
  675. package/ui/text_box.js +3 -3
  676. package/ui/themes.d.ts +3 -3
  677. package/ui/themes.js +3 -3
  678. package/ui/themes_callback.js +3 -3
  679. package/ui/tile_view.d.ts +3 -3
  680. package/ui/tile_view.js +3 -3
  681. package/ui/toast.d.ts +3 -3
  682. package/ui/toast.js +3 -3
  683. package/ui/toolbar/ui.toolbar.base.js +3 -3
  684. package/ui/toolbar/ui.toolbar.menu.js +3 -3
  685. package/ui/toolbar/ui.toolbar.strategy.action_sheet.js +3 -3
  686. package/ui/toolbar/ui.toolbar.strategy.drop_down_menu.js +3 -3
  687. package/ui/toolbar/ui.toolbar.strategy.js +3 -3
  688. package/ui/toolbar/ui.toolbar.strategy.list_base.js +3 -3
  689. package/ui/toolbar/ui.toolbar.strategy.list_bottom.js +3 -3
  690. package/ui/toolbar/ui.toolbar.strategy.list_top.js +3 -3
  691. package/ui/toolbar.d.ts +3 -3
  692. package/ui/toolbar.js +3 -3
  693. package/ui/tooltip/tooltip.js +3 -3
  694. package/ui/tooltip/ui.tooltip.js +3 -3
  695. package/ui/tooltip.d.ts +3 -3
  696. package/ui/tooltip.js +3 -3
  697. package/ui/track_bar.js +3 -3
  698. package/ui/tree_list/ui.tree_list.adaptivity.js +3 -3
  699. package/ui/tree_list/ui.tree_list.base.js +3 -3
  700. package/ui/tree_list/ui.tree_list.column_chooser.js +3 -3
  701. package/ui/tree_list/ui.tree_list.column_fixing.js +3 -3
  702. package/ui/tree_list/ui.tree_list.column_headers.js +3 -3
  703. package/ui/tree_list/ui.tree_list.columns_controller.js +3 -3
  704. package/ui/tree_list/ui.tree_list.columns_resizing_reordering.js +3 -3
  705. package/ui/tree_list/ui.tree_list.context_menu.js +3 -3
  706. package/ui/tree_list/ui.tree_list.core.js +3 -3
  707. package/ui/tree_list/ui.tree_list.data_controller.js +3 -3
  708. package/ui/tree_list/ui.tree_list.data_source_adapter.js +3 -3
  709. package/ui/tree_list/ui.tree_list.editing.js +3 -3
  710. package/ui/tree_list/ui.tree_list.editor_factory.js +3 -3
  711. package/ui/tree_list/ui.tree_list.error_handling.js +3 -3
  712. package/ui/tree_list/ui.tree_list.filter_builder.js +3 -3
  713. package/ui/tree_list/ui.tree_list.filter_panel.js +3 -3
  714. package/ui/tree_list/ui.tree_list.filter_row.js +3 -3
  715. package/ui/tree_list/ui.tree_list.filter_sync.js +3 -3
  716. package/ui/tree_list/ui.tree_list.grid_view.js +3 -3
  717. package/ui/tree_list/ui.tree_list.header_filter.js +3 -3
  718. package/ui/tree_list/ui.tree_list.header_panel.js +3 -3
  719. package/ui/tree_list/ui.tree_list.js +3 -3
  720. package/ui/tree_list/ui.tree_list.keyboard_navigation.js +3 -3
  721. package/ui/tree_list/ui.tree_list.master_detail.js +3 -3
  722. package/ui/tree_list/ui.tree_list.pager.js +3 -3
  723. package/ui/tree_list/ui.tree_list.rows.js +3 -3
  724. package/ui/tree_list/ui.tree_list.search.js +3 -3
  725. package/ui/tree_list/ui.tree_list.selection.js +3 -3
  726. package/ui/tree_list/ui.tree_list.sorting.js +3 -3
  727. package/ui/tree_list/ui.tree_list.state_storing.js +3 -3
  728. package/ui/tree_list/ui.tree_list.validating.js +3 -3
  729. package/ui/tree_list/ui.tree_list.virtual_columns.js +3 -3
  730. package/ui/tree_list/ui.tree_list.virtual_scrolling.js +3 -3
  731. package/ui/tree_list.d.ts +3 -3
  732. package/ui/tree_list.js +3 -3
  733. package/ui/tree_view/ui.tree_view.base.js +3 -3
  734. package/ui/tree_view/ui.tree_view.search.js +3 -3
  735. package/ui/tree_view.d.ts +3 -3
  736. package/ui/tree_view.js +3 -3
  737. package/ui/validation/default_adapter.js +3 -3
  738. package/ui/validation/validation_mixin.js +3 -3
  739. package/ui/validation_engine.d.ts +3 -3
  740. package/ui/validation_engine.js +4 -4
  741. package/ui/validation_group.d.ts +3 -3
  742. package/ui/validation_group.js +3 -3
  743. package/ui/validation_summary.d.ts +3 -3
  744. package/ui/validation_summary.js +3 -3
  745. package/ui/validator.d.ts +3 -3
  746. package/ui/validator.js +3 -3
  747. package/ui/widget/bindable_template.js +3 -3
  748. package/ui/widget/child_default_template.js +3 -3
  749. package/ui/widget/empty_template.js +3 -3
  750. package/ui/widget/function_template.js +3 -3
  751. package/ui/widget/jquery.template.js +3 -3
  752. package/ui/widget/selectors.js +3 -3
  753. package/ui/widget/ui.errors.js +3 -3
  754. package/ui/widget/ui.keyboard_processor.js +3 -3
  755. package/ui/widget/ui.search_box_mixin.js +3 -3
  756. package/ui/widget/ui.template_base.js +3 -3
  757. package/ui/widget/ui.widget.js +3 -3
  758. package/ui/widget/utils.ink_ripple.js +3 -3
  759. package/utils.d.ts +3 -3
  760. package/utils.js +3 -3
  761. package/viz/axes/axes_constants.js +3 -3
  762. package/viz/axes/base_axis.js +3 -3
  763. package/viz/axes/datetime_breaks.js +3 -3
  764. package/viz/axes/polar_axes.js +3 -3
  765. package/viz/axes/smart_formatter.js +3 -3
  766. package/viz/axes/tick.js +3 -3
  767. package/viz/axes/tick_generator.js +3 -3
  768. package/viz/axes/xy_axes.js +3 -3
  769. package/viz/bar_gauge.d.ts +3 -3
  770. package/viz/bar_gauge.js +3 -3
  771. package/viz/bullet.d.ts +3 -3
  772. package/viz/bullet.js +3 -3
  773. package/viz/chart.d.ts +3 -3
  774. package/viz/chart.js +3 -3
  775. package/viz/chart_components/advanced_chart.js +3 -3
  776. package/viz/chart_components/base_chart.js +3 -3
  777. package/viz/chart_components/crosshair.js +3 -3
  778. package/viz/chart_components/header_block.js +3 -3
  779. package/viz/chart_components/layout_manager.js +3 -3
  780. package/viz/chart_components/multi_axes_synchronizer.js +3 -3
  781. package/viz/chart_components/scroll_bar.js +3 -3
  782. package/viz/chart_components/shutter_zoom.js +3 -3
  783. package/viz/chart_components/tracker.js +3 -3
  784. package/viz/circular_gauge.d.ts +3 -3
  785. package/viz/circular_gauge.js +3 -3
  786. package/viz/components/chart_theme_manager.js +3 -3
  787. package/viz/components/consts.js +3 -3
  788. package/viz/components/data_validator.js +3 -3
  789. package/viz/components/legend.js +3 -3
  790. package/viz/components/parse_utils.js +3 -3
  791. package/viz/components/tracker.js +3 -3
  792. package/viz/core/base_theme_manager.js +3 -3
  793. package/viz/core/base_widget.js +3 -3
  794. package/viz/core/data_source.js +3 -3
  795. package/viz/core/errors_warnings.js +3 -3
  796. package/viz/core/export.js +3 -3
  797. package/viz/core/format.js +3 -3
  798. package/viz/core/helpers.js +3 -3
  799. package/viz/core/layout.js +3 -3
  800. package/viz/core/layout_element.js +3 -3
  801. package/viz/core/loading_indicator.js +3 -3
  802. package/viz/core/renderers/animation.js +3 -3
  803. package/viz/core/renderers/renderer.js +3 -3
  804. package/viz/core/series_family.js +3 -3
  805. package/viz/core/themes/android.js +3 -3
  806. package/viz/core/themes/generic.carmine.js +3 -3
  807. package/viz/core/themes/generic.contrast.compact.js +3 -3
  808. package/viz/core/themes/generic.contrast.js +3 -3
  809. package/viz/core/themes/generic.dark.compact.js +3 -3
  810. package/viz/core/themes/generic.dark.js +3 -3
  811. package/viz/core/themes/generic.darkmoon.js +3 -3
  812. package/viz/core/themes/generic.darkviolet.js +3 -3
  813. package/viz/core/themes/generic.greenmist.js +3 -3
  814. package/viz/core/themes/generic.light.compact.js +3 -3
  815. package/viz/core/themes/generic.light.js +3 -3
  816. package/viz/core/themes/generic.softblue.js +3 -3
  817. package/viz/core/themes/ios.js +3 -3
  818. package/viz/core/themes/material.js +3 -3
  819. package/viz/core/themes/win.js +3 -3
  820. package/viz/core/title.js +3 -3
  821. package/viz/core/tooltip.js +3 -3
  822. package/viz/core/utils.js +3 -3
  823. package/viz/export.d.ts +3 -3
  824. package/viz/export.js +3 -3
  825. package/viz/funnel/funnel.js +3 -3
  826. package/viz/funnel/item.js +3 -3
  827. package/viz/funnel/label.js +3 -3
  828. package/viz/funnel/tiling.funnel.js +3 -3
  829. package/viz/funnel/tiling.js +3 -3
  830. package/viz/funnel/tiling.pyramid.js +3 -3
  831. package/viz/funnel/tooltip.js +3 -3
  832. package/viz/funnel/tracker.js +3 -3
  833. package/viz/funnel.d.ts +3 -3
  834. package/viz/funnel.js +3 -3
  835. package/viz/gauges/bar_gauge.js +3 -3
  836. package/viz/gauges/base_gauge.js +3 -3
  837. package/viz/gauges/base_indicators.js +3 -3
  838. package/viz/gauges/base_range_container.js +3 -3
  839. package/viz/gauges/circular_gauge.js +3 -3
  840. package/viz/gauges/circular_indicators.js +3 -3
  841. package/viz/gauges/circular_range_container.js +3 -3
  842. package/viz/gauges/common.js +3 -3
  843. package/viz/gauges/linear_gauge.js +3 -3
  844. package/viz/gauges/linear_indicators.js +3 -3
  845. package/viz/gauges/linear_range_container.js +3 -3
  846. package/viz/gauges/theme_manager.js +3 -3
  847. package/viz/gauges/tracker.js +3 -3
  848. package/viz/linear_gauge.d.ts +3 -3
  849. package/viz/linear_gauge.js +3 -3
  850. package/viz/palette.d.ts +3 -3
  851. package/viz/palette.js +3 -3
  852. package/viz/pie_chart.d.ts +3 -3
  853. package/viz/pie_chart.js +3 -3
  854. package/viz/polar_chart.d.ts +3 -3
  855. package/viz/polar_chart.js +3 -3
  856. package/viz/range_selector/common.js +3 -3
  857. package/viz/range_selector/range_selector.js +3 -3
  858. package/viz/range_selector/range_view.js +3 -3
  859. package/viz/range_selector/series_data_source.js +3 -3
  860. package/viz/range_selector/slider.js +3 -3
  861. package/viz/range_selector/slider_marker.js +3 -3
  862. package/viz/range_selector/sliders_controller.js +3 -3
  863. package/viz/range_selector/theme_manager.js +3 -3
  864. package/viz/range_selector/tracker.js +3 -3
  865. package/viz/range_selector.d.ts +3 -3
  866. package/viz/range_selector.js +3 -3
  867. package/viz/series/area_series.js +3 -3
  868. package/viz/series/bar_series.js +3 -3
  869. package/viz/series/base_series.js +3 -3
  870. package/viz/series/bubble_series.js +3 -3
  871. package/viz/series/financial_series.js +3 -3
  872. package/viz/series/helpers/range_data_calculator.js +3 -3
  873. package/viz/series/line_series.js +3 -3
  874. package/viz/series/pie_series.js +3 -3
  875. package/viz/series/points/bar_point.js +3 -3
  876. package/viz/series/points/base_point.js +3 -3
  877. package/viz/series/points/bubble_point.js +3 -3
  878. package/viz/series/points/candlestick_point.js +3 -3
  879. package/viz/series/points/label.js +3 -3
  880. package/viz/series/points/pie_point.js +3 -3
  881. package/viz/series/points/polar_point.js +3 -3
  882. package/viz/series/points/range_bar_point.js +3 -3
  883. package/viz/series/points/range_symbol_point.js +3 -3
  884. package/viz/series/points/stock_point.js +3 -3
  885. package/viz/series/points/symbol_point.js +3 -3
  886. package/viz/series/range_series.js +3 -3
  887. package/viz/series/scatter_series.js +3 -3
  888. package/viz/series/stacked_series.js +3 -3
  889. package/viz/sparkline.d.ts +3 -3
  890. package/viz/sparkline.js +3 -3
  891. package/viz/sparklines/base_sparkline.js +3 -3
  892. package/viz/sparklines/bullet.js +3 -3
  893. package/viz/sparklines/sparkline.js +3 -3
  894. package/viz/themes.d.ts +3 -3
  895. package/viz/themes.js +3 -3
  896. package/viz/translators/category_translator.js +3 -3
  897. package/viz/translators/datetime_translator.js +3 -3
  898. package/viz/translators/interval_translator.js +3 -3
  899. package/viz/translators/logarithmic_translator.js +3 -3
  900. package/viz/translators/numeric_translator.js +3 -3
  901. package/viz/translators/range.js +3 -3
  902. package/viz/translators/translator1d.js +3 -3
  903. package/viz/translators/translator2d.js +3 -3
  904. package/viz/tree_map/api.js +3 -3
  905. package/viz/tree_map/colorizing.discrete.js +3 -3
  906. package/viz/tree_map/colorizing.gradient.js +3 -3
  907. package/viz/tree_map/colorizing.js +3 -3
  908. package/viz/tree_map/colorizing.range.js +3 -3
  909. package/viz/tree_map/common.js +3 -3
  910. package/viz/tree_map/drilldown.js +3 -3
  911. package/viz/tree_map/hover.js +3 -3
  912. package/viz/tree_map/node.js +3 -3
  913. package/viz/tree_map/plain_data_source.js +3 -3
  914. package/viz/tree_map/selection.js +3 -3
  915. package/viz/tree_map/states.js +3 -3
  916. package/viz/tree_map/tiling.js +3 -3
  917. package/viz/tree_map/tiling.rotated_slice_and_dice.js +3 -3
  918. package/viz/tree_map/tiling.slice_and_dice.js +3 -3
  919. package/viz/tree_map/tiling.squarified.base.js +3 -3
  920. package/viz/tree_map/tiling.squarified.js +3 -3
  921. package/viz/tree_map/tiling.strip.js +3 -3
  922. package/viz/tree_map/tooltip.js +3 -3
  923. package/viz/tree_map/tracker.js +3 -3
  924. package/viz/tree_map/tree_map.base.js +3 -3
  925. package/viz/tree_map/tree_map.js +3 -3
  926. package/viz/tree_map.d.ts +3 -3
  927. package/viz/tree_map.js +3 -3
  928. package/viz/utils.d.ts +3 -3
  929. package/viz/utils.js +3 -3
  930. package/viz/vector_map/control_bar.js +3 -3
  931. package/viz/vector_map/data_exchanger.js +3 -3
  932. package/viz/vector_map/event_emitter.js +3 -3
  933. package/viz/vector_map/gesture_handler.js +3 -3
  934. package/viz/vector_map/layout.js +3 -3
  935. package/viz/vector_map/legend.js +3 -3
  936. package/viz/vector_map/map_layer.js +3 -3
  937. package/viz/vector_map/projection.d.ts +3 -3
  938. package/viz/vector_map/projection.js +3 -3
  939. package/viz/vector_map/projection.main.js +3 -3
  940. package/viz/vector_map/theme_manager.js +3 -3
  941. package/viz/vector_map/tooltip_viewer.js +3 -3
  942. package/viz/vector_map/tracker.js +3 -3
  943. package/viz/vector_map/vector_map.js +3 -3
  944. package/viz/vector_map.d.ts +3 -3
  945. package/viz/vector_map.js +3 -3
package/dist/js/dx.viz.js CHANGED
@@ -1,22 +1,22 @@
1
1
  /*!
2
2
  * DevExtreme (dx.viz.js)
3
- * Version: 18.1.13
4
- * Build date: Tue Mar 24 2020
3
+ * Version: 18.1.17
4
+ * Build date: Fri Dec 03 2021
5
5
  *
6
- * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED
6
+ * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
8
8
  */
9
9
  "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=761)}([function(e,t,n){var i=n(1).isPlainObject,r=function(e,t,n){e=e||{};for(var i in t)if(t.hasOwnProperty(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],c=o[a],u=!1;"__proto__"!==a&&t!==c&&(r&&c&&(i(c)||(u=Array.isArray(c)))?(s=u?l&&Array.isArray(l)?l:[]:l&&i(l)?l:{},t[a]=e(r,s,c)):void 0!==c&&(t[a]=c))}}return t};t.extend=o,t.extendFromObject=r},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},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"===("undefined"==typeof e?"undefined":i(e))?r[t]||"object":"undefined"==typeof e?"undefined":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)},c=function(e){return null!==e&&void 0!==e},u=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"===o(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(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&&u(e.then)},b=function(e){return e&&u(e.done)&&u(e.fail)};t.isBoolean=a,t.isExponential=s,t.isDate=l,t.isDefined=c,t.isFunction=u,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=o},function(e,t,n){var i=n(214);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}};t.map=i,t.each=r},function(e,t,n){var i,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},o=n(30),a=n(7),s=a.when,l=a.Deferred,c=n(3).each,u=n(1),d=function(e,t){return u.isDefined(e)?e:t},h=function(e,t){var n,i=new l,r=t||this,o={promise:i.promise(),abort:function(){clearTimeout(n),i.rejectWith(r)}},a=function(){var t=e.call(r);t&&t.done&&u.isFunction(t.done)?t.done(function(){i.resolveWith(r)}):i.resolveWith(r)};return n=(arguments[2]||setTimeout)(a,"number"==typeof t?t:0),o},p=[],f=[],g=[],_=function(e,t,n){if(i&&i!==e)return p.push(t),f.push(e),n=n||new l,g.push(n),n;var r=i,o=g.length;i=e;var a=t();return a||(g.length>o?a=s.apply(this,g.slice(o)):n&&n.resolve()),i=r,n&&a&&a.done&&a.done(n.resolve).fail(n.reject),!i&&p.length&&("render"===f.shift()?m:v)(p.shift(),g.shift()),a||s()},m=function(e,t){return _("render",e,t)},v=function(e,t){return _("update",e,t)},y=function(e){return function(){var t=this;return _("render",function(){return e.call(t)})}},b=function(e){return function(){var t=this;return _("update",function(){return e.call(t)})}},x=function(e,t,n){var i=[],r=0;return c(t,function(t,o){var a=0,s=n?n(o):o;c(e,function(e,t){var n=s[e];if(void 0!==n)return S(n,t)?void a++:(a=-1,!1)}),a<r||(a>r&&(i.length=0,r=a),i.push(o))}),i},S=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){var n=!1;return c(e,function(e,i){if(i!==t[e])return n=!0,!1}),!n}return e===t},w=function(e){switch("undefined"==typeof e?"undefined":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}},C=function(e){switch("undefined"==typeof e?"undefined":r(e)){case"string":return e.split(/\s+/,4);case"object":return[e.x||e.h||e.left,e.y||e.v||e.top,e.x||e.h||e.right,e.y||e.v||e.bottom];case"number":return[e];default:return e}},k=function(e){var t=u.isString(e)?e:e.toString(),n=t.match(/[^a-zA-Z0-9_]/g);return n&&c(n,function(e,n){t=t.replace(n,"__"+n.charCodeAt()+"__")}),t},T=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,n){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!O(e[i],t[i],n+1))return!1;return!0},A=function(e,t,n){for(var i in e)if(e.hasOwnProperty(i)&&!O(e[i],t[i],n+1))return!1;for(i in t)if(!(i in e))return!1;return!0},O=function(e,t,n){if(e===t)return!0;var i=3;return n=n||0,n>=i||(u.isObject(e)&&u.isObject(t)?A(e,t,n):Array.isArray(e)&&Array.isArray(t)?E(e,t,n):!(!u.isDate(e)||!u.isDate(t))&&e.getTime()===t.getTime())},I=function(e){if(u.isObject(e)||Array.isArray(e))try{var t=JSON.stringify(e);return"{}"===t?e:t}catch(t){return e}return e},D=function(e){return e.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},M=function(e){var t=o().serverDecimalSeparator;return u.isDefined(e)&&(e=e.toString().replace(".",t)),e},P=function(){},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};t.ensureDefined=d,t.executeAsync=h,t.deferRender=m,t.deferRenderer=y,t.deferUpdate=v,t.deferUpdater=b,t.splitPair=w,t.splitQuad=C,t.findBestMatches=x,t.normalizeKey=k,t.denormalizeKey=T,t.equalByValue=O,t.getKeyHash=I,t.escapeRegExp=D,t.applyServerDecimalSeparator=M,t.noop=P,t.grep=L},function(e,t,n){var i,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},o=n(107),a=n(0).extend,s=n(12),l=n(6),c=l.getWindow(),u=n(55),d=n(1),h=n(19),p=d.isWindow,f=d.isFunction,g=d.isString,_=n(17),m=n(171),v=n(215),y="dxEmptyEventType",b={mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},x={focusin:"focus",focusout:"blur"},S=["blur","focusout","focus","focusin","load"],w=["touchmove","wheel","mousewheel"],C=function(e,t){return!p(e)&&"#document"!==e.nodeName&&s.elementMatches(e,t)},k=new m,T=0,E=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)||p(i))n.apply(N,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)})}},O=function(e){return function(){A(arguments,e)}},I=function(e,t){var n=k.get(e);t=t||"";var r=t.split("."),o=r.slice(1),a=!!r[0];t=r[0]||y,n||(n={},k.set(e,n)),n[t]||(n[t]={handleObjects:[],nativeHandler:null});var l=n[t];return{addHandler:function(n,r,c){var u=function(i,r){var o,a,s=[i],l=i.currentTarget,u=i.relatedTarget;t in b&&(o=u&&l&&(u===l||l.contains(u))),void 0!==r&&s.push(r),E.callMethod(t,"handle",e,[i,c]),o||(a=n.apply(l,s)),a===!1&&(i.preventDefault(),i.stopPropagation())},d=function(t,n){if(!i||t.type!==i)if(t.data=c,t.delegateTarget=e,r)for(var o=t.target;o&&o!==e;)C(o,r)&&(t.currentTarget=o,u(t,n)),o=o.parentNode;else u(t,n)},h={handler:n,wrappedHandler:d,selector:r,type:t,data:c,namespace:o.join("."),namespaces:o,guid:++T};l.handleObjects.push(h);var p,f=1===l.handleObjects.length,g=f&&a;g&&(g=!E.callMethod(t,"setup",e,[c,o,n])),g&&(l.nativeHandler=D(t),w.indexOf(t)>-1&&(p={passive:!1}),l.removeListener=s.listen(e,b[t]||t,l.nativeHandler,p)),E.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&&!M(n.namespaces,o)||i&&n.handler!==i||r&&n.selector!==r;return a||(s=n.handler,E.callMethod(t,"remove",e,[n])),a});var l=!a.handleObjects.length,c=l&&t!==y;c&&(E.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 c=0===Object.keys(n).length;c&&k.delete(e)},callHandlers:function(e,t){var i=!1,r=function(n){i||o.length&&!M(n.namespaces,o)||(n.wrappedHandler(e,t),i=e.isImmediatePropagationStopped())};l.handleObjects.forEach(r),o.length&&n[y]&&n[y].handleObjects.forEach(r)}}},D=function(e){return function(t,n){var i=I(this,e);t=N.Event(t),i.callHandlers(t,n)}},M=function(e,t){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])<0)return!1;return!0},P=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)}},L=function(e){return function(t,n,i,r){"function"==typeof i&&(r=i,i=void 0),e(t,n,i,r)}},B=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 N.Event?n:N.Event(n),i)}},R=function(e){return function(t,n){return this instanceof N.Event?(t||(t={}),"string"==typeof t&&(t={type:t}),n||(n={}),void e.call(this,t,n)):new N.Event(t,n)}},V=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"===("undefined"==typeof n?"undefined":r(n))){var i=Array.prototype.slice.call(arguments,0);for(var o in n)i[1]=o,i[i.length-1]=n[o],t.apply(this,i)}else t.apply(this,arguments)}},F=function(e,t){var n=x[e]||e,r=function(e,t){return"click"===e&&"a"===t.localName};r(e,t)||f(t[n])&&(i=e,t[n](),i=void 0)},z=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},N=u({on:O(P(V(function(e,t,n,i,r){var o=I(e,t);o.addHandler(r,n,i)}))),one:O(P(function(e,t,n,i,r){var o=function i(){N.off(e,t,n,i),r.apply(this,arguments)};N.on(e,t,n,i,o)})),off:O(L(V(function(e,t,n,i){var r=I(e,t);r.removeHandler(i,n)}))),trigger:O(B(function(e,t,n){var i=t.type,r=I(e,t.type);E.callMethod(i,"trigger",e,[t,n]),r.callHandlers(t,n);var o=E.getField(i,"noBubble")||t.isPropagationStopped()||S.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(c);for(var u=0;s[u]&&!t.isPropagationStopped();){var d=I(s[u],t.type);d.callHandlers(a(t,{currentTarget:s[u]}),n),u++}}(e.nodeType||p(e))&&(E.callMethod(i,"_default",e,[t,n]),F(i,e))})),triggerHandler:O(B(function(e,t,n){var i=I(e,t.type);i.callHandlers(t,n)}))}),H=function(e){e&&(N.Event=e,N.Event.prototype=e.prototype)};H(R(function(e,t){var n=this,i=!1,r=!1,o=!1;a(n,e),(e instanceof N.Event||l.hasWindow()&&e instanceof c.Event)&&(n.originalEvent=e,n.currentTarget=void 0),e instanceof N.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()}}),G("which",z,n),0===e.type.indexOf("touch")&&(delete t.pageX,delete t.pageY),a(n,t),n.guid=++T}));var G=function(e,t,n){Object.defineProperty(n||N.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(G);var W=h(),j=h();N.set=function(e){W.fire(),N.inject(e),H(e.Event),j.fire()},N.subscribeGlobal=function(){A(arguments,P(function(){var e=arguments;N.on.apply(this,e),W.add(function(){var t=Array.prototype.slice.call(e,0);t.splice(3,1),N.off.apply(this,t)}),j.add(function(){N.on.apply(this,e)})}))},N.forcePassiveFalseEventNames=w,e.exports=N},function(e,t,n){var i=n(12),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)},openWindow:function(){return this.hasProperty("open")?o.open():null},getNavigator:function(){return this.hasWindow()?o.navigator:{userAgent:""}}}},function(e,t,n){var i=n(1),r=i.isPromise,o=i.isDeferred,a=n(0).extend,s=n(19),l=[{method:"resolve",handler:"done",state:"resolved"},{method:"reject",handler:"fail",state:"rejected"},{method:"notify",handler:"progress"}],c=function(){var e=this;this._state="pending",this._promise={},l.forEach(function(t){var n=t.method;this[n+"Callbacks"]=new s,this[n]=function(){return this[n+"With"](this._promise,arguments)}.bind(this),this._promise[t.handler]=function(t){if(!t)return this;var i=e[n+"Callbacks"];return i.fired()?t.apply(e[n+"Context"],e[n+"Args"]):i.add(function(e,n){t.apply(e,n)}.bind(this)),this}}.bind(this)),this._promise.always=function(e){return this.done(e).fail(e)},this._promise.catch=function(e){return this.then(null,e)},this._promise.then=function(e,t){var n=new c;return["done","fail"].forEach(function(i){var a="done"===i?e:t;this[i](function(){if(!a)return void n["done"===i?"resolve":"reject"].apply(this,arguments);var e=a&&a.apply(this,arguments);o(e)?e.done(n.resolve).fail(n.reject):r(e)?e.then(n.resolve,n.reject):n.resolve.apply(this,e?[e]:arguments)})}.bind(this)),n.promise()},this._promise.state=function(){return e._state},this._promise.promise=function(t){return t?a(t,e._promise):e._promise},this._promise.promise(this)};l.forEach(function(e){var t=e.method,n=e.state;c.prototype[t+"With"]=function(e,i){var 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 c;return e.then(function(){n.resolveWith.apply(n,[t].concat([[].slice.call(arguments)]))},function(){n.rejectWith.apply(n,[t].concat([[].slice.call(arguments)]))}),n}return(new c).resolveWith(t,[e])};var u=function(){if(1===arguments.length)return t.fromPromise(arguments[0]);for(var e=[].slice.call(arguments),n=[],i=0,r=new c,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){c=e.Deferred,u=e.when},t.Deferred=function(){return new c},t.when=function(){return u.apply(this,arguments)}},function(e,t,n){var i=n(2),r=n(138),o=n(17),a=n(100),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){var i=n(2),r=n(5),o=n(17),a=n(57).focused,s=n(0).extend,l=n(3).each,c=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 l(e,function(e){if(this.test(t.type))return n=e,!1}),n}}(),u=function(e){return"dx"===c(e)},d=function(e){return"mouse"===c(e)},h=function(e){return"touch"===c(e)},p=function(e){return"pointer"===c(e)},f=function(e){return d(e)||(p(e)||u(e))&&"mouse"===e.pointerType},g=function(e){return h(e)||(p(e)||u(e))&&"touch"===e.pointerType},_=function(e){return"keyboard"===c(e)},m=function(e){return 0===e.screenX&&!e.offsetX&&0===e.pageX},v=function(e){return{x:e.pageX,y:e.pageY,time:e.timeStamp}},y=function(e,t){return{x:t.x-e.x,y:t.y-e.y,time:t.time-e.time||1}},b=function(e){return h(e)?(e.originalEvent.touches||[]).length:u(e)?(e.pointers||[]).length:0},x=function(e){var t=i(e.target),n=t.is("input, textarea, select");return!!t.is(".dx-skip-gesture-event *, .dx-skip-gesture-event")||("dxmousewheel"===e.type?t.is("input[type='number'], textarea, select")&&t.is(":focus"):f(e)?n||e.which>1:g(e)?n&&a(t):void 0)},S=function(e){return e},w=function(e){S=e},C=function(e){return S(r.Event(e,e),e)},k=function(e,t){var n=C(e);return t&&s(n,t),n},T=function(e){var t=k(e.originalEvent,e);return r.trigger(e.delegateTarget||t.target,t),t},E=function e(t,n){if(!n)throw o.Error("E0017");return"string"==typeof t?t.indexOf(" ")===-1?t+"."+n:e(t.split(/\s+/g),n):(l(t,function(e,i){t[e]=i+"."+n}),t.join(" "))};e.exports={eventSource:c,isPointerEvent:p,isMouseEvent:f,isTouchEvent:g,isKeyboardEvent:_,isFakeClickEvent:m,hasTouches:b,eventData:v,eventDelta:y,needSkipEvent:x,createEvent:k,fireEvent:T,addNamespace:E,setEventFixMethod:w}},function(e,t,n){var i=n(17),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;for(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},c=function(e){return this.parent===e||!(!this.parent||!this.parent.subclassOf)&&this.parent.subclassOf(e)},u=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=u,t.redefine=s,t.include=l,t.subclassOf=c,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=u,e.exports=h},function(e,t,n){var i=n(1).isDefined,r=n(3).each,o=n(54),a=function(e){return Array.isArray(e)&&!e.length},s=function(e){return Array.isArray(e)?e:[e]},l=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=d(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=d(i,t);r===-1&&n.push(i)}),n},u=function(e,t,n,a){var s={},l=0;return r(e,function(e,r){e=r[t],i(e)&&(s[e]=s[e]||[],r===n?s[e].unshift(r):s[e].push(r),delete r[t])}),o.orderEach(s,function(e,n){r(n,function(){e>=0&&(this[t]=l++)})}),r(e,function(){i(this[t])||a&&!a(this)||(this[t]=l++)}),l},d=function(e,t){if(!t)return-1;var n=Array.isArray(t)?t:t.toArray();return n.indexOf(e)},h=function(e,t){for(var n=0;n<t.length;n++)e[e.length]=t[n];return e};t.isEmpty=a,t.wrapToArray=s,t.intersection=l,t.removeDuplicates=c,t.normalizeIndexes=u,t.inArray=d,t.merge=h},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(55),o=n(4).noop,a={querySelectorAll:function(e,t){return e.querySelectorAll(t)},elementMatches:function(e,t){var n=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(t){var n=e.document||e.ownerDocument;if(!n)return!1;for(var i=this.querySelectorAll(n,t),r=0;r<i.length;r++)if(i[r]===e)return!0}.bind(this);return n.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"===("undefined"==typeof e?"undefined":i(e))&&"nodeType"in e},isElementNode:function(e){return e&&e.nodeType===Node.ELEMENT_NODE},isTextNode:function(e){return e&&e.nodeType===Node.TEXT_NODE},isDocument:function(e){return e&&e.nodeType===Node.DOCUMENT_NODE},removeElement:function(e){var t=e&&e.parentNode;t&&t.removeChild(e)},insertElement:function(e,t,n){e&&t&&e!==t&&(n?e.insertBefore(t,n):e.appendChild(t))},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=e.className.split(" "),r=i.indexOf(t);n&&r<0&&(e.className=e.className?e.className+" "+t:t),!n&&r>=0&&(i.splice(r,1),e.className=i.join(" "))}},setStyle:function(e,t,n){e.style[t]=n||""},_document:"undefined"==typeof document?void 0:document,getDocument:function(){return this._document},getActiveElement:function(){return this._document.activeElement},getBody:function(){return this._document.body},createDocumentFragment:function(){return this._document.createDocumentFragment()},getDocumentElement:function(){return this._document.documentElement},getLocation:function(){return this._document.location},getSelection:function(){return this._document.selection},getReadyState:function(){return this._document.readyState},getHead:function(){return this._document.head},hasDocumentProperty:function(e){return e in this._document},listen:function(e,t,n,i){return e&&"addEventListener"in e?(e.addEventListener(t,n,i),function(){e.removeEventListener(t,n)}):o}};e.exports=r(a)},function(e,t,n){var i,r=n(2),o=n(12),a=n(6),s=a.getWindow(),l=n(5),c=n(17),u=n(11).inArray,d=n(1),h=d.isDefined,p=d.isRenderer,f=n(216),g=function(){var e=o.getActiveElement();e&&e!==o.getBody()&&e.blur&&e.blur()},_=function(){var e=s.getSelection();if(e&&"Caret"!==e.type)if(e.empty)e.empty();else if(e.removeAllRanges)try{e.removeAllRanges()}catch(e){}},m=function(e,t){var n=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++)l.triggerHandler(o[a],e)}},y=function(){var e=0;return function(t){return(t||"")+e++}}(),b="data-options",x=function(e){var t,n=r(e).attr(b)||"";"{"!==n.trim().charAt(0)&&(n="{"+n+"}");try{t=new Function("return "+n)()}catch(e){throw c.Error("E3018",e,n)}return 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||u(s,t)>-1)&&o[s]&&(o[s](a[s]),n.push(o[s]("instance")))}),n},w=function(e){if(!s.WinJS)return r(f.parseHTML(e));var t=r("<div>");return s.WinJS.Utilities.setInnerHTMLUnsafe(t.get(0),e),t.contents()},C=function e(t){var n=h(t)&&(t.nodeType||p(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},k=function(e,t,n){n?e.attr(t,n):e.removeAttr(t)},T=function(e,t){var n=e.originalEvent&&e.originalEvent.clipboardData||s.clipboardData;return 1===arguments.length?n&&n.getData("Text"):void(n&&n.setData("Text",t))},E=function(e,t){return!!t&&(t=o.isTextNode(t)?t.parentNode:t,o.isDocument(e)?e.documentElement.contains(t):e.contains(t))},A=function(e){return i(e)},O=function(e){i=e};O(function(e){return e&&e.get(0)}),t.setPublicElementWrapper=O,t.resetActiveElement=g,t.createMarkupFromString=w,t.triggerShownEvent=v("dxshown"),t.triggerHidingEvent=v("dxhiding"),t.triggerResizeEvent=v("dxresize"),t.getElementOptions=x,t.createComponents=S,t.normalizeTemplateElement=C,t.clearSelection=_,t.uniqueId=y,t.closestCommonParent=m,t.clipboardText=T,t.toggleAttr=k,t.contains=E,t.getPublicElement=A},function(e,t,n){var i=n(2),r=n(6),o=r.getNavigator(),a=r.getWindow(),s=n(0).extend,l=n(1).isPlainObject,c=n(3).each,u=n(10),d=n(17),h=n(19),p=n(121),f=n(53),g=n(154).sessionStorage,_=n(73),m=n(30),v={iPhone:"iPhone",iPhone5:"iPhone",iPhone6:"iPhone",iPhone6plus:"iPhone",iPad:"iPad",iPadMini:"iPad Mini",androidPhone:"Android Mobile",androidTablet:"Android",win8:"MSAppHost",win8Phone:"Windows Phone 8.0",msSurface:"Windows ARM Tablet PC",desktop:"desktop",win10Phone:"Windows Phone 10.0",win10:"MSAppHost/3.0"},y={deviceType:"desktop",platform:"generic",version:[],phone:!1,tablet:!1,android:!1,ios:!1,win:!1,generic:!0,grade:"A",mac:!1},b={win:function(e){var t=/windows phone/i.test(e)||e.match(/WPDesktop/),n=!t&&/Windows(.*)arm(.*)Tablet PC/i.test(e),i=!t&&!n&&/msapphost/i.test(e);if(t||n||i){var r=e.match(/windows phone (\d+).(\d+)/i)||e.match(/windows nt (\d+).(\d+)/i),o=[];return r?o.push(parseInt(r[1],10),parseInt(r[2],10)):(r=e.match(/msapphost(\/(\d+).(\d+))?/i),r&&o.push(3===parseInt(r[2],10)?10:8)),{deviceType:t?"phone":n?"tablet":"desktop",platform:"win",version:o,grade:"A"}}},ios:function(e){if(/ip(hone|od|ad)/i.test(e)){var t=/ip(hone|od)/i.test(e),n=e.match(/os (\d+)_(\d+)_?(\d+)?/i),i=n?[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3]||0,10)]:[],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],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=u.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(),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]),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,win:"win"===t.platform,generic:"generic"===t.platform};return s(t,n)},_fromUA:function(e){var t;if(c(b,function(n,i){return t=i(e),!t}),t)return this._fromConfig(t);var n=/(mac os)/.test(e.toLowerCase()),i=y;return i.mac=n,i},_changeOrientation:function(){var e=i(this._window),t=e.height()>e.width()?"portrait":"landscape";this._currentOrientation!==t&&(this._currentOrientation=t,this.fireEvent("orientationChanged",[{orientation:t}]))},_recalculateOrientation:function(){var e=i(this._window).width();this._currentWidth!==e&&(this._currentWidth=e,this._changeOrientation())}}).include(f),S=new x;_.changeCallback.add(function(e,t){S.detachCssClasses(t),S.attachCssClasses(e)}),S.isForced()||"win"!==S.current().platform||S.current({version:[10]}),e.exports=S},function(e,t,n){var i=n(2),r=n(55),o=n(0).extend,a=n(3).each,s=n(39).format,l=n(37).humanize,c=n(81);n(81);var u="-",d=o(!0,{},n(323)),h=n(324),p=function(e){var t=h[e];return t?"root"!==t&&t:e.substr(0,e.lastIndexOf(u))},f=function(e,t){return e[t]||{}},g=function(e,t,n){for(var i,r=f(e,t)[n];!r&&!i;)t=p(t),t?r=f(e,t)[n]:i=!0;return r},_={},m=r({_dictionary:d,load:function(e){o(!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||(_[o]=l(o)),n+(a||s)})},_messageLoaded:function(e,t){return void 0!==g(this._dictionary,t||c.locale(),e)},localizeNode:function(e){var t=this;i(e).each(function(e,n){n.nodeType&&(3===n.nodeType?n.nodeValue=t.localizeString(n.nodeValue):i(n).is("iframe")||(a(n.attributes||[],function(e,n){if("string"==typeof n.value){var i=t.localizeString(n.value);n.value!==i&&(n.value=i)}}),i(n).contents().each(function(e,n){t.localizeNode(n)})))})},getMessagesByLocales:function(){return this._dictionary},getDictionary:function(e){return e?_:o({},_,this.getMessagesByLocales()[c.locale()])},getFormatter:function(e){
10
10
  return this._getFormatterBase(e)||this._getFormatterBase(e,"en")},_getFormatterBase:function(e,t){var n=g(this._dictionary,t||c.locale(),e);if(n)return function(){var e=1===arguments.length&&Array.isArray(arguments[0])?arguments[0].slice(0):Array.prototype.slice.call(arguments,0);return e.unshift(n),s.apply(this,e)}},format:function(e){var t=this.getFormatter(e),n=Array.prototype.slice.call(arguments,1);return t&&t.apply(this,n)||""}});e.exports=m},function(e,t,n){function i(e,t){for(var n,i=0,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 f(t,function(t,i){e[i]&&(e[i]-=n,r-=n)}),r}function a(e){return String(e).toLowerCase()}function s(e){e&&(e.originalTop=e.top,e.originalBottom=e.bottom,e.originalLeft=e.left,e.originalRight=e.right)}function l(e){return-w<e&&e<+w?e:0}function c(e){var t=l(I(e.x)),n=l(I(e.y)),i=l(D(e.width+e.x)),r=l(D(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 u(e,t,n){var i=L(T(n*C).toFixed(3)),r=L(E(n*C).toFixed(3)),o=e.width/2,a=e.height/2,s=e.x+o,l=e.y+a,u=A(o*i)+A(a*r),d=A(o*r)+A(a*i),h=t[0]+(s-t[0])*i+(l-t[1])*r,p=t[1]-(s-t[0])*r+(l-t[1])*i;return c({x:h-u,y:p-d,width:2*u,height:2*d})}var d=n(4).noop,h=n(1),p=n(0).extend,f=n(3).each,g=n(31).adjust,_=h.isDefined,m=h.isNumeric,v=h.isExponential,y=Math,b=y.round,x=Math.sqrt,S=Math.PI,w=1e10,C=S/180,k=Math.LN10,T=Math.cos,E=Math.sin,A=Math.abs,O=Math.log,I=Math.floor,D=Math.ceil,M=Math.max,P=isNaN,L=Number,B=NaN,R=function(e,t){return e?Math.log(e)/Math.log(t):B},V=function(e){return g(R(e,10))},F=function(e,t){return Math.pow(t,e)},z=function(e){return(e%360+360)%360},N=function(e){return 90-e},H=function(e){return S*e/180},G=function(e){var t=H(e);return{cos:T(t),sin:E(t)}},W=1e-14,j=function(e,t,n,i){var r=n-e,o=i-t;return Math.sqrt(o*o+r*r)},U=function(e){var t,n=A(e);return P(n)?B:n>0?(n=O(n)/k,t=D(n),t-n<W?t:I(n)):0},Y=function(e,t,n){var i,r=M(U(e),U(t)),o=-U(A(t-e)/n);return P(r)||P(o)?null:(A(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})},$=function(e,t){if(t>20&&(t=20),m(e))return L(v(e)?e.toExponential(t):e.toFixed(t))},K=function(e){return e.toExponential().split("e")[1]};p(t,{decreaseGaps:function(e,t,n){var i;do i=r(e,t),i.push(y.ceil(n/i.length)),n=o(e,t,y.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 f(e||{},function(e,n){/^(cursor|opacity)$/i.test(e)||(e="color"===e?"fill":"font-"+e),t[e]=n}),t},convertPolarToXY:function(e,t,n,i){var r,o=90;return n=_(n)?n+t-o:0,r=G(n),{x:b(e.x+i*r.cos),y:b(e.y+i*r.sin)}},convertXYToPolar:function(e,t,n){var i=j(e.x,e.y,t,n),r=y.atan2(n-e.y,t-e.x);return{phi:b(z(180*r/y.PI)),r:b(i)}},processSeriesTemplate:function(e,t){var n,r,o,a=h.isFunction(e.customizeSeries)?e.customizeSeries:d,s=e.nameField,l={},c=[],u=0;for(t=t||[],r=t.length;u<r;u++)o=t[u],s in o&&(n=l[o[s]],n||(n=l[o[s]]={name:o[s],nameFieldValue:o[s]},c.push(n.name)));return i(c,function(e){var t=l[e];return p(t,a.call(null,t.name))})},getCategoriesInfo:function(e,t,n){if(0===e.length)return{categories:[]};t=_(t)?t:e[0],n=_(n)?n:e[e.length-1];var r,o,a,s=i(e,function(e){return _(e)?e.valueOf():null}),l=s.indexOf(t.valueOf()),c=s.indexOf(n.valueOf()),u=!1;return l<0&&(l=0),c<0&&(c=e.length-1),c<l&&(o=c,c=l,l=o,u=!0),r=e.slice(l,c+1),a=r.length-1,{categories:r,start:r[u?a:0],end:r[u?0:a],inverted:u}},setCanvasValues:s,updatePanesCanvases:function(e,t,n){var i=0;f(e,function(e,t){t.weight=t.weight||1,i+=t.weight});var r=0,o=e.padding||10,a=n?t.width-t.left-t.right:t.height-t.top-t.bottom,l=(a-o*(e.length-1))/i,c=n?"left":"top",u=n?"right":"bottom";f(e,function(e,n){var i=b(n.weight*l);n.canvas=n.canvas||{},p(n.canvas,t),n.canvas[c]=t[c]+r,n.canvas[u]=t[u]+(a-i-r),r=r+i+o,s(n.canvas)})},unique:function(e){var t={};return i(e,function(e){var n=t[e]?null:e;return t[e]=!0,n})},map:i,getVerticallyShiftedAngularCoords:function(e,t,n){var i=e.x+e.width/2>=n.x,r=(i?e.x:e.x+e.width)-n.x,o=e.y-n.y,a=o+t,s=b(x(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.getLog=R,t.getAdjustedLog10=V,t.raiseTo=F,t.normalizeAngle=z,t.convertAngleToRendererSpace=N,t.degreesToRadians=H,t.getCosAndSin=G,t.getDecimalOrder=U,t.getAppropriateFormat=Y,t.getDistance=j,t.roundValue=$,t.getPower=K,t.rotateBBox=u,t.normalizeBBox=c},function(e,t,n){var i=n(102);e.exports=i({E0001:"Method is not implemented",E0002:"Member name collision: {0}",E0003:"A class must be instantiated using the 'new' keyword",E0004:"The NAME property of the component is not specified",E0005:"Unknown device",E0006:"Unknown endpoint key is requested",E0007:"'Invalidate' method is called outside the update transaction",E0008:"Type of the option name is not appropriate to create an action",E0009:"Component '{0}' has not been initialized for an element",E0010:"Animation configuration with the '{0}' type requires '{1}' configuration as {2}",E0011:"Unknown animation type '{0}'",E0012:"jQuery version is too old. Please upgrade jQuery to 1.10.0 or later",E0013:"KnockoutJS version is too old. Please upgrade KnockoutJS to 2.3.0 or later",E0014:"The 'release' method shouldn't be called for an unlocked Lock object",E0015:"Queued task returned an unexpected result",E0017:"Event namespace is not defined",E0018:"DevExpress.ui.DevExpressPopup widget is required",E0020:"Template engine '{0}' is not supported",E0021:"Unknown theme is set: {0}",E0022:"LINK[rel=DevExpress-theme] tags must go before DevExpress included scripts",E0023:"Template name is not specified",E0024:"DevExtreme bundle already included",E0025:"Unexpected argument type",E0100:"Unknown validation type is detected",E0101:"Misconfigured range validation rule is detected",E0102:"Misconfigured comparison validation rule is detected",E0110:"Unknown validation group is detected",E0120:"Adapter for a DevExpressValidator component cannot be configured",E0121:"The 'customItem' field of the 'onCustomItemCreating' function's parameter should contain a custom item or Promise that is resolved after the item is created.",W0000:"'{0}' is deprecated in {1}. {2}",W0001:"{0} - '{1}' option is deprecated in {2}. {3}",W0002:"{0} - '{1}' method is deprecated in {2}. {3}",W0003:"{0} - '{1}' property is deprecated in {2}. {3}",W0004:"Timeout for theme loading is over: {0}",W0005:"'{0}' event is deprecated in {1}. {2}",W0006:"Invalid recurrence rule: '{0}'",W0007:"'{0}' Globalize culture is not defined",W0008:"Invalid view name: '{0}'",W0009:"Invalid time zone name: '{0}'",W0010:"{0} is deprecated in {1}. {2}",W0011:"Number parsing is invoked while the parser is not defined",W0012:"Date parsing is invoked while the parser is not defined",W0013:"'{0}' file is deprecated in {1}. {2}",W0014:"{0} - '{1}' type is deprecated in {2}. {3}",W0015:"Instead of returning a value from the '{0}' function, write it into the '{1}' field of the function's parameter.",W0016:'The "{0}" option does not accept the "{1}" value since v.{2}. {3}.'})},function(e,t,n){var i=n(2),r=n(5),o=n(14),a=n(12),s=n(13),l=n(105),c=n(9),u=n(25),d=n(108),h=n(84),p=n(59).compare,f="dxclick",g=10,_=Math.abs,m=function(e){return i(e).is("input, textarea, select, button ,:focus, :focus *")},v={requestAnimationFrame:l.requestAnimationFrame,cancelAnimationFrame:l.cancelAnimationFrame},y=d.inherit({ctor:function(e){this.callBase(e),this._makeElementClickable(i(e))},_makeElementClickable:function(e){e.attr("onclick")||e.attr("onclick","void(0)")},start:function(e){this._blurPrevented=e.isDefaultPrevented(),this._startTarget=e.target,this._startEventData=c.eventData(e)},end:function(e){return this._eventOutOfElement(e,this.getElement().get(0))||e.type===u.cancel?void this._cancel(e):(m(e.target)||this._blurPrevented||s.resetActiveElement(),this._accept(e),void(this._clickAnimationFrame=v.requestAnimationFrame(function(){this._fireClickEvent(e)}.bind(this))))},_eventOutOfElement:function(e,t){var n=e.target,i=!s.contains(t,n)&&t!==n,r=c.eventDelta(c.eventData(e),this._startEventData),o=_(r.x)>g||_(r.y)>g;return i||o},_fireClickEvent:function(e){this._fireEvent(f,e,{target:s.closestCommonParent(this._startTarget,e.target)})},dispose:function(){v.cancelAnimationFrame(this._clickAnimationFrame)}});!function(){var e="dx-native-click",t=o.real(),n=t.generic||t.ios&&p(t.version,[9,3])>=0||t.android&&p(t.version,[5])>=0,a=function(t){return n||i(t).closest("."+e).length},s=null,l=null,u=function(e){var t=e.originalEvent,n=l!==t,i=!e.which||1===e.which;i&&!s&&a(e.target)&&n&&(l=t,c.fireEvent({type:f,originalEvent:e}))};y=y.inherit({_makeElementClickable:function(e){a(e)||this.callBase(e),r.on(e,"click",u)},configure:function(t){this.callBase(t),t.useNative&&this.getElement().addClass(e)},start:function(e){s=null,a(e.target)||this.callBase(e)},end:function(e){a(e.target)||this.callBase(e)},cancel:function(){s=!0},dispose:function(){this.callBase(),r.off(this.getElement(),"click",u)}})}(),function(){var e=o.real().generic;if(!e){var t=null,n=!1,l=function(e){t=e.target,n=e.isDefaultPrevented()},d=function(e){var r=i(e.target);n||!t||r.is(t)||i(t).is("label")||!m(r)||s.resetActiveElement(),t=null,n=!1},h="NATIVE_CLICK_FIXER",p=a.getDocument();r.subscribeGlobal(p,c.addNamespace(u.down,h),l),r.subscribeGlobal(p,c.addNamespace("click",h),d)}}(),h({emitter:y,bubble:!0,events:[f]}),t.name=f},function(e,t,n){var i=function(e){this._options=e||{},this._list=[],this._queue=[],this._firing=!1,this._fired=!1,this._firingIndexes=[]};i.prototype._fireCore=function(e,t){var n=this._firingIndexes,i=this._list,r=this._options.stopOnFalse,o=n.length;for(n[o]=0;n[o]<i.length;n[o]++){var a=i[n[o]].apply(e,t);if(a===!1&&r)break}n.pop()},i.prototype.add=function(e){return"function"!=typeof e||this._options.unique&&this.has(e)||this._list.push(e),this},i.prototype.remove=function(e){var t=this._list,n=this._firingIndexes,i=t.indexOf(e);if(i>-1&&(t.splice(i,1),this._firing&&n.length))for(var r=0;r<n.length;r++)i<=n[r]&&n[r]--;return this},i.prototype.has=function(e){var t=this._list;return e?t.indexOf(e)>-1:!!t.length},i.prototype.empty=function(e){return this._list=[],this},i.prototype.fireWith=function(e,t){var n=this._queue;if(t=t||[],t=t.slice?t.slice():t,this._options.syncStrategy)this._firing=!0,this._fireCore(e,t);else{if(n.push([e,t]),this._firing)return;for(this._firing=!0;n.length;){var i=n.shift();this._fireCore(i[0],i[1])}}return this._firing=!1,this._fired=!0,this},i.prototype.fire=function(){this.fireWith(this,arguments)},i.prototype.fired=function(){return this._fired};var r=function(e){return new i(e)};e.exports=r},function(e,t,n){function i(){if(!L.hasWindow())return null;var e,t=M("<div>",k).addClass("dx-theme-marker").appendTo(k.documentElement);try{return(e=t.css("fontFamily"))?(e=e.replace(/["']/g,""),e.substr(0,Z.length)!==Z?null:e.substr(Z.length)):null}finally{t.remove()}}function r(e){function t(){O=null,j.fire(),j.empty()}var n;O=e,o()?t():(n=Date.now(),I=setInterval(function(){var e=o(),i=!e&&Date.now()-n>15e3;i&&V.log("W0004",O),(e||i)&&(clearInterval(I),I=void 0,t())},10))}function o(){return!O||i()===O}function a(){var e=M($,k);e.length&&(E={},T=M(F.createMarkupFromString("<link rel=stylesheet>"),k),e.each(function(){var e=M(this,k),t=e.attr(K),n=e.attr("href"),i="true"===e.attr(X);E[t]={url:n,isActive:i}}),e.last().after(T),e.remove())}function s(e){var t=e.split("."),n=null;if(E){if(e in E)return e;H(E,function(e,i){var r=e.split(".");if(r[0]===t[0]&&!(t[1]&&t[1]!==r[1]||t[2]&&t[2]!==r[2]))return n&&!i.isActive||(n=e),!i.isActive&&void 0})}return n}function l(e){try{e!==k&&(E=null)}catch(e){E=null}k=e}function c(e){e=e||{},l(e.context||P.getDocument()),k&&(a(),A=void 0,u(e))}function u(e){if(!arguments.length)return A=A||i();f(U()),e=e||{},"string"==typeof e&&(e={theme:e});var t,n=e._autoInit,o=e.loadCallback;if(A=e.theme||A,n&&!A&&(A=d(G.current())),A=s(A),A&&(t=E[A]),o&&j.add(o),t)T.attr("href",E[A].url),!j.has()&&!e._forceTimeout||I?O&&(O=A):r(A);else{if(!n)throw V.Error("E0021",A);j.fire(),j.empty()}w(),p(W.originalViewPort(),A)}function d(e){var t=e.platform,n=e.version&&e.version[0];switch(t){case"ios":t+="7";break;case"android":t+="5";break;case"win":t+=n&&8===n?"8":"10"}return t}function h(e){e=e||u();var t=[],n=e&&e.split(".");return n&&(t.push("dx-theme-"+n[0],"dx-theme-"+n[0]+"-typography"),n.length>1&&t.push("dx-color-scheme-"+n[1]+(m(e)?"-"+n[2]:""))),t}function p(e,t){D=h(t).join(" "),M(e).addClass(D);var n=function(){var t=L.hasWindow()&&B.devicePixelRatio;if(t&&!(t<2)){var n=M("<div>");n.css("border",".5px solid transparent"),M("body").append(n),1===n.outerHeight()&&(M(e).addClass(q),D+=" "+q),n.remove()}};n()}function f(e){M(e).removeClass(D)}function g(e){j.add(e)}function _(e,t){return t||(t=A||i()),new RegExp(e).test(t)}function m(e){return _("material",e)}function v(e){return _("android5",e)}function y(e){return _("ios7",e)}function b(e){return _("generic",e)}function x(e){return _("win8",e)}function S(e){return _("win10",e)}function w(){x()&&V.log("W0010","The 'win8' theme","16.1","Use the 'generic' theme instead."),S()&&V.log("W0010","The 'win10' theme","17.2","Use the 'generic' theme instead."),v()&&V.log("W0010","The 'android5' theme","18.1","Use the 'material' theme instead.")}function C(){if(c({_autoInit:!0,_forceTimeout:!0}),M($,k).length)throw V.Error("E0022");Q.resolve()}var k,T,E,A,O,I,D,M=n(2),P=n(12),L=n(6),B=L.getWindow(),R=n(7).Deferred,V=n(21),F=n(13),z=n(51),N=z.add,H=n(3).each,G=n(14),W=n(73),j=n(230),U=W.value,Y=W.changeCallback,$="link[rel=dx-theme]",K="data-theme",X="data-active",q="dx-hairlines",Z="dx.",Q=new R;L.hasWindow()?C():N(C),Y.add(function(e,t){Q.done(function(){f(t),p(e)})}),G.changed.add(function(){c({_autoInit:!0})}),t.current=u,t.ready=g,t.init=c,t.attachCssClasses=p,t.detachCssClasses=f,t.themeNameFromDevice=d,t.waitForThemeLoad=r,t.isMaterial=m,t.isAndroid5=v,t.isIos7=y,t.isGeneric=b,t.isWin8=x,t.isWin10=S,t.resetTheme=function(){T&&T.attr("href","about:blank"),A=null,O=null}},function(e,t,n){var i=n(102),r=n(17);e.exports=i(r.ERROR_MESSAGES,{E1001:"Module '{0}'. Controller '{1}' is already registered",E1002:"Module '{0}'. Controller '{1}' does not inherit from DevExpress.ui.dxDataGrid.Controller",E1003:"Module '{0}'. View '{1}' is already registered",E1004:"Module '{0}'. View '{1}' does not inherit from DevExpress.ui.dxDataGrid.View",E1005:"Public method '{0}' is already registered",E1006:"Public method '{0}.{1}' does not exist",E1007:"State storing cannot be provided due to the restrictions of the browser",E1010:"The template does not contain the TextBox widget",E1011:'Items cannot be deleted from the List. Implement the "remove" function in the data store',E1012:"Editing type '{0}' with the name '{1}' is unsupported",E1016:"Unexpected type of data source is provided for a lookup column",E1018:"The 'collapseAll' method cannot be called if you use a remote data source",E1019:"Search mode '{0}' is unavailable",E1020:"The type cannot be changed after initialization",E1021:"{0} '{1}' you are trying to remove does not exist",E1022:'The "markers" option is given an invalid value. Assign an array instead',E1023:'The "routes" option is given an invalid value. Assign an array instead',E1025:"This layout is too complex to render",E1026:'The "calculateCustomSummary" function is missing from a field whose "summaryType" option is set to "custom"',E1030:"Unknown ScrollView refresh strategy: '{0}'",E1031:"Unknown subscription in the Scheduler widget: '{0}'",E1032:"Unknown start date in an appointment: '{0}'",E1033:"Unknown step in the date navigator: '{0}'",E1034:"The browser does not implement an API for saving files",E1035:"The editor cannot be created because of an internal error: {0}",E1036:"Validation rules are not defined for any form item",E1037:"Invalid structure of grouped data",E1038:"The browser does not support local storages for local web pages",E1039:"A cell's position cannot be calculated",E1040:"The '{0}' key value is not unique within the data array",E1041:"The JSZip script is referenced after the DevExtreme scripts or not referenced at all",E1042:'Deferred selection cannot be performed. Set the "key" field for the data store',E1043:"Changes cannot be processed due to the incorrectly set key",E1044:"The key field specified by the keyExpr option does not match the key field specified in the data store",E1045:"Editing requires the key field to be specified in the data store",E1046:"The '{0}' key field is not found in data objects",E1047:'The "{0}" field is not found in the fields array',E1048:'The "{0}" operation is not found in the filterOperations array',E1049:"\u0421olumn '{0}': filtering is allowed but the 'dataField' or 'name' option is not specified",E1050:"The validationRules option does not apply to third-party editors defined in the editCellTemplate",W1001:'The "key" option cannot be modified after initialization',W1002:"An item with the key '{0}' does not exist",W1003:"A group with the key '{0}' in which you are trying to select items does not exist",W1004:"The item '{0}' you are trying to select in the group '{1}' does not exist",W1005:"Due to column data types being unspecified, data has been loaded twice in order to apply initial filter settings. To resolve this issue, specify data types for all grid columns.",W1006:"The map service returned the following error: '{0}'",W1007:"No item with key {0} was found in the data source, but this key was used as the parent key for item {1}",W1008:"Cannot scroll to the '{0}' date because it does not exist on the current view",W1009:"Searching works only if data is specified using the dataSource option",W1010:"The capability to select all items works with source data of plain structure only",W1011:'The "keyExpr" option is not applied when dataSource is not an array',W1012:"The '{0}' key field is not found in data objects"})},function(e,t,n){var i=n(17),r=n(10),o=n(54),a=n(1),s=n(3).each,l=n(71),c=l.unwrap,u=l.isWrapped,d=l.assign,h=function(e){return e.replace(/\[/g,".").replace(/\]/g,"")},p=function(e,t,n){return n=n||{},"this"===t?_(e,n):_(e[t],n)},f=function(e,t,n,r){if("this"===t)throw new i.Error("E4016");var o=e[t];r.unwrapObservables&&u(o)?d(o,n):e[t]=n},g=function(e){return e=e||{},e.unwrapObservables=void 0===e.unwrapObservables||e.unwrapObservables,e},_=function(e,t){return t.unwrapObservables?c(e):e},m=function(e){if(arguments.length>1&&(e=[].slice.call(arguments)),!e||"this"===e)return function(e){return e};if("string"==typeof e){e=h(e);var t=e.split(".");return function(e,n){n=g(n);for(var i=n.functionsAsIs,r=("defaultValue"in n),o=_(e,n),s=0;s<t.length;s++){if(!o){if(null==o&&r)return n.defaultValue;break}var l=t[s];if(r&&a.isObject(o)&&!(l in o))return n.defaultValue;var c=_(o[l],n);!i&&a.isFunction(c)&&(c=c.call(o)),o=c}return o}}return Array.isArray(e)?v(e):a.isFunction(e)?e:void 0},v=function(e){for(var t={},n=0,i=e.length;n<i;n++){var r=e[n];t[r]=m(r)}return function(e,n){var i;return s(t,function(t){var r,o,a,s,l=this(e,n);if(void 0!==l){for(r=i||(i={}),o=t.split("."),a=o.length-1,s=0;s<a;s++)r=r[o[s]]={};r[o[s]]=l}}),i}},y=function(e,t,n,i){if(a.isDefined(n))return n;var r={};return f(e,t,r,i),r},b=function(e){e=h(e||"this").split(".");var t=e.length-1;return function(n,i,r){r=g(r);var s=_(n,r);e.forEach(function(e,n){var l=p(s,e,r),c=!r.functionsAsIs&&a.isFunction(l)&&!u(l);n===t?r.merge&&a.isPlainObject(i)&&(!a.isDefined(l)||a.isPlainObject(l))?(l=y(s,e,l,r),o.deepExtendArraySafe(l,i,!1,!0)):c?s[e](i):f(s,e,i,r):(l=y(s,e,l,r),c&&(l=l.call(s)),s=l)})}},x=function(e,t){return e instanceof Date?e.getTime():e&&e instanceof r&&e.valueOf?e.valueOf():t||"string"!=typeof e?e:e.toLowerCase()};t.compileGetter=m,t.compileSetter=b,t.toComparable=x},function(e,t,n){function i(e){return x[b(e)]||""}function r(e,t,n){var i=new Date(e.getTime()),r=u(t)?z(t.toLowerCase()):o.isNumeric(t)?m(t):t;return r.years&&i.setFullYear(i.getFullYear()+r.years*n),r.quarters&&i.setMonth(i.getMonth()+3*r.quarters*n),r.months&&i.setMonth(i.getMonth()+r.months*n),r.weeks&&i.setDate(i.getDate()+7*r.weeks*n),r.days&&i.setDate(i.getDate()+r.days*n),r.hours&&i.setTime(i.getTime()+36e5*r.hours*n),r.minutes&&i.setTime(i.getTime()+6e4*r.minutes*n),r.seconds&&i.setTime(i.getTime()+1e3*r.seconds*n),r.milliseconds&&i.setTime(i.getTime()+r.milliseconds*n),i}var o=n(1),a=n(31).adjust,s=n(3).each,l=n(37).camelize,c=o.isObject,u=o.isString,d=o.isDate,h=o.isDefined,p=["millisecond","second","minute","hour","day","week","month","quarter","year"],f=function e(t){switch(t){case"millisecond":return 1;case"second":return 1e3*e("millisecond");case"minute":return 60*e("second");case"hour":return 60*e("minute");case"day":return 24*e("hour");case"week":return 7*e("day");case"month":return 30*e("day");case"quarter":return 3*e("month");case"year":return 365*e("day");default:return 0}},g=function(e,t,n){var i=t.getTime()-e.getTime(),r=f(n)||1;return Math.floor(i/r)},_=function(e,t){var n=b(e);switch(n){case"millisecond":return"second";case"second":return"minute";case"minute":return"hour";case"hour":return"day";case"day":return t?"week":"month";case"week":return"month";case"month":return"quarter";case"quarter":return"year";case"year":return"year";default:return 0}},m=function(e){var t,n,i,r=["millisecond","second","minute","hour","day","month","year"],o={};for(t=r.length-1;t>=0;t--)i=r[t],n=Math.floor(e/f(i)),n>0&&(o[i+"s"]=n,e-=y(i,n));return o},v=function(e){var t=0;return c(e)&&s(e,function(e,n){t+=y(e.substr(0,e.length-1),n)}),u(e)&&(t=y(e,1)),t},y=function(e,t){return f(e)*t},b=function(e){var t,n=-1;return u(e)?e:c(e)?(s(e,function(e,i){for(t=0;t<p.length;t++)i&&(e===p[t]+"s"||e===p[t])&&n<t&&(n=t)}),p[n]):""},x={millisecond:"millisecond",second:"longtime",minute:"shorttime",hour:"shorttime",day:"day",week:"day",month:"month",quarter:"quarter",year:"year"},S=function(e){return Math.floor(e/3)},w=function(e){return 3*S(e)},C=function(e,t,n,i){e=new Date(e.getTime());var r,o,a=new Date(e.getTime()),s=b(t);switch(s){case"second":e=new Date(1e3*Math.floor(a.getTime()/1e3));break;case"minute":e=new Date(6e4*Math.floor(a.getTime()/6e4));break;case"hour":e=new Date(36e5*Math.floor(a.getTime()/36e5));break;case"year":e.setMonth(0);case"month":e.setDate(1);case"day":e.setHours(0,0,0,0);break;case"week":e=q(e,i||0),e.setHours(0,0,0,0);break;case"quarter":r=w(e.getMonth()),o=e.getMonth(),e.setDate(1),e.setHours(0,0,0,0),o!==r&&e.setMonth(r)}return n&&"hour"!==s&&"minute"!==s&&"second"!==s&&te(a,e),e},k=function(e){return oe.correctDateWithUnitBeginning(e,"day")},T=function(e,t){var n,i=0;return n={year:e.getFullYear()!==t.getFullYear(),month:e.getMonth()!==t.getMonth(),day:e.getDate()!==t.getDate(),hour:e.getHours()!==t.getHours(),minute:e.getMinutes()!==t.getMinutes(),second:e.getSeconds()!==t.getSeconds(),millisecond:e.getMilliseconds()!==t.getMilliseconds()},s(n,function(e,t){t&&i++}),0===i&&0!==ie(e,t)&&(n.hour=!0,i++),n.count=i,n},E=function(e,t,n){var i=n?-1:1;return d(e)?r(e,t,i):a(e+t*i,t)},A=function(e,t,n){var i,r=[];for(r.push(d(e)?new Date(e.getTime()):e),i=e;i<t;)i=E(i,n),r.push(i);return r},O=function(e,t){return"month"===e?new Date(t.getFullYear(),t.getMonth(),1):"year"===e?new Date(t.getFullYear(),0,t.getDate()):"decade"===e?new Date(Y(t),t.getMonth(),t.getDate()):"century"===e?new Date(U(t),t.getMonth(),t.getDate()):void 0},I=function(e,t){return"month"===e?new Date(t.getFullYear(),t.getMonth(),P(t)):"year"===e?new Date(t.getFullYear(),11,t.getDate()):"decade"===e?new Date(Y(t)+9,t.getMonth(),t.getDate()):"century"===e?new Date(U(t)+90,t.getMonth(),t.getDate()):void 0},D=function(e,t){var n=new Date(t.getFullYear(),t.getMonth(),1);return"month"===e?n:(n.setMonth(0),"year"===e?n:("decade"===e&&n.setFullYear(Y(t)),"century"===e&&n.setFullYear(U(t)),n))},M=function(e,t){var n=new Date(t);return n.setDate(P(t)),"month"===e?n:(n.setMonth(11),n.setDate(P(n)),"year"===e?n:("decade"===e&&n.setFullYear(Y(t)+9),"century"===e&&n.setFullYear(U(t)+99),n))},P=function(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0);return t.getDate()},L=function(e,t,n){return oe[l("same "+e)](t,n)},B=function(e){switch(e){case"month":return"year";case"year":return"decade";case"decade":return"century"}},R=function(e){switch(e){case"century":return"decade";case"decade":return"year";case"year":return"month"}},V=function(e){var t=1;return"year"===e&&(t=12),"decade"===e&&(t=120),"century"===e&&(t=1200),t},F=function(e){var t=1;return"decade"===e&&(t=12),"century"===e&&(t=120),t},z=function(e){var t={};switch(e){case"year":t.years=1;break;case"month":t.months=1;break;case"quarter":t.months=3;break;case"week":t.weeks=1;break;case"day":t.days=1;break;case"hour":t.hours=1;break;case"minute":t.minutes=1;break;case"second":t.seconds=1;break;case"millisecond":t.milliseconds=1}return t},N=function(e,t){return H(e,t)&&e.getDate()===t.getDate()},H=function(e,t){return G(e,t)&&e.getMonth()===t.getMonth()},G=function(e,t){return e&&t&&e.getFullYear()===t.getFullYear()},W=function(e,t){if(h(e)&&h(t)){var n=e.getFullYear()-e.getFullYear()%10,i=t.getFullYear()-t.getFullYear()%10;return e&&t&&n===i}},j=function(e,t){if(h(e)&&h(t)){var n=e.getFullYear()-e.getFullYear()%100,i=t.getFullYear()-t.getFullYear()%100;return e&&t&&n===i}},U=function(e){return e&&e.getFullYear()-e.getFullYear()%100},Y=function(e){return e&&e.getFullYear()-e.getFullYear()%10},$=function(){return"yyyy/MM/dd"},K=function(e){if(h(e)){var t=new Date(e.getFullYear(),e.getMonth(),1);return t}},X=function(e){if(h(e)){var t=new Date(e.getFullYear(),e.getMonth()+1,0);return t}},q=function(e,t){var n=(e.getDay()-t+7)%7,i=new Date(e);return i.setDate(e.getDate()-n),i},Z=function(e,t){var n=oe.getDatesInterval(e,t,"day"),i=new Date(e);return n>=6&&(i=new Date(i.setDate(i.getDate()+7))),i},Q=function(e,t,n,i){return"date"===i&&(t=t&&oe.correctDateWithUnitBeginning(t,"day"),n=n&&oe.correctDateWithUnitBeginning(n,"day"),e=e&&oe.correctDateWithUnitBeginning(e,"day")),ee(e,t,n)===e},J=function(e){var t=Math.floor(e),n=e%1*60;return{hours:t,minutes:n}},ee=function(e,t,n){var i=e;return h(e)?(h(t)&&e<t&&(i=t),h(n)&&e>n&&(i=n),i):e},te=function(e,t){if(h(e)){var n,i,r=t.getHours()-e.getHours();0!==r&&(n=1===r||r===-23?-1:1,i=new Date(t.getTime()+36e5*n),(n>0||i.getDate()===t.getDate())&&t.setTime(i.getTime()))}},ne=function(e){return e.setHours(e.getHours()+1),e.setMinutes(0),e},ie=function(e,t){return 60*(t.getTimezoneOffset()-e.getTimezoneOffset())*1e3},re=function(e){return new Date(e)},oe={dateUnitIntervals:p,convertMillisecondsToDateUnits:m,dateToMilliseconds:v,getNextDateUnit:_,convertDateUnitToMilliseconds:y,getDateUnitInterval:b,getDateFormatByTickInterval:i,getDatesDifferences:T,correctDateWithUnitBeginning:C,trimTime:k,dateTimeFromDecimal:J,addDateInterval:r,addInterval:E,getSequenceByInterval:A,getDateIntervalByString:z,sameDate:N,sameMonthAndYear:H,sameMonth:H,sameYear:G,sameDecade:W,sameCentury:j,sameView:L,getDifferenceInMonth:V,getDifferenceInMonthForCells:F,getFirstYearInDecade:Y,getFirstDecadeInCentury:U,getShortDateFormat:$,getViewFirstCellDate:O,getViewLastCellDate:I,getViewDown:R,getViewUp:B,getLastMonthDay:P,getLastMonthDate:X,getFirstMonthDate:K,getFirstWeekDate:q,normalizeDateByWeek:Z,getQuarter:S,getFirstQuarterMonth:w,dateInRange:Q,roundToHour:ne,normalizeDate:ee,getViewMinBoundaryDate:D,getViewMaxBoundaryDate:M,fixTimezoneGap:te,getTimezonesDifference:ie,makeDate:re,getDatesInterval:g};e.exports=oe},function(e,t,n){var i=n(35),r=n(1).type,o="dxTranslator",a=/matrix(3d)?\((.+?)\)/,s=/translate(?:3d)?\((.+?)\)/,l=function(e){var t=d(e);return{left:t.x,top:t.y}},c=function(e,t){var n,i=t.left,r=t.top;void 0===i?(n=d(e),n.y=r||0):void 0===r?(n=d(e),n.x=i||0):(n={x:i||0,y:r||0,z:0},h(e,n)),e.css({transform:_(n)}),(u(i)||u(r))&&p(e)},u=function(e){return"string"===r(e)&&"%"===e[e.length-1]},d=function(e){var t=e.length?i.data(e.get(0),o):null;if(!t){var n=e.css("transform")||_({x:0,y:0}),r=n.match(a),s=r&&r[1];r?(r=r[2].split(","),"3d"===s?r=r.slice(12,15):(r.push(0),r=r.slice(4,7))):r=[0,0,0],t={x:parseFloat(r[0]),y:parseFloat(r[1]),z:parseFloat(r[2])},h(e,t)}return t},h=function(e,t){e.length&&i.data(e.get(0),o,t)},p=function(e){e.length&&i.removeData(e.get(0),o)},f=function(e,t){var n,i={left:0,top:0,transform:"none"};t&&(n=e.css("transition"),i.transition="none"),e.css(i),p(e),t&&(e.get(0).offsetHeight,e.css("transition",n))},g=function(e){var t=e.match(s);if(t&&t[1])return t=t[1].split(","),t={x:parseFloat(t[0]),y:parseFloat(t[1]),z:parseFloat(t[2])}},_=function(e){e.x=e.x||0,e.y=e.y||0;var t=u(e.x)?e.x:e.x+"px",n=u(e.y)?e.y:e.y+"px";return"translate("+t+", "+n+")"};t.move=c,t.locate=l,t.clearCache=p,t.parseTranslate=g,t.getTranslate=d,t.getTranslateCss=_,t.resetPosition=f},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var r=n(40),o=i(r),a=n(3),s=n(29),l=i(s),c=n(14),u=i(c),d=n(61),h=i(d),p=n(225),f=i(p),g=n(320),_=i(g),m=n(227),v=i(m),y=n(321),b=i(y),x=function(e,t,n){if(e.pointerEvents&&n.msie)return _.default;var i=t.tablet,r=t.phone;return!e.touch||i||r?e.touch?f.default:v.default:b.default},S=x(o.default,u.default.real(),l.default);(0,a.each)(S.map,function(e,t){(0,h.default)(e,new S(e,t))});var w={down:"dxpointerdown",up:"dxpointerup",move:"dxpointermove",cancel:"dxpointercancel",enter:"dxpointerenter",leave:"dxpointerleave",over:"dxpointerover",out:"dxpointerout"};e.exports=w},function(e,t){e.exports=window.jQuery},,function(e,t,n){var i=n(2),r=n(5),o=n(21),a=n(76),s=n(0).extend,l=n(11).inArray,c=n(3).each,u=n(4),d=n(1),h=n(13),p=n(12),f=n(14),g=n(58),_=n(257),m=n(66),v=n(95),y=n(122),b=n(101),x=n(155),S=n(57),w=n(9),C=n(157),k=n(96),T=n(18),E=n(37),A="UIFeedback",O="dx-widget",I="dx-state-active",D="dx-state-disabled",M="dx-state-invisible",P="dx-state-hover",L="dx-state-focused",B=30,R=400,V="Focus",F="template",z=3,N="[data-options*='dxTemplate']",H="dx-template-wrapper",G=new v(function(e){var t=e.model.widget;if(t){var n=i("<div>"),r=e.model.options||{};if("button"===t||"tabs"===t||"dropDownMenu"===t){var a=t;t=E.camelize("dx-"+t),o.log("W0001","dxToolbar - 'widget' item field",a,"16.1","Use: '"+t+"' instead")}return n[t](r),n}return i()}),W=g.inherit({_supportedKeys:function(){return{}},_getDefaultOptions:function(){return s(this.callBase(),{disabled:!1,visible:!0,hint:void 0,activeStateEnabled:!1,onContentReady:null,hoverStateEnabled:!1,focusStateEnabled:!1,tabIndex:0,accessKey:null,onFocusIn:null,onFocusOut:null,integrationOptions:{watchMethod:function(e,t,n){return n=n||{},n.skipImmediate||t(e()),u.noop},templates:{"dx-polymorph-widget":G},createTemplate:function(e){return new _(e)}},_keyboardProcessor:void 0})},_feedbackShowTimeout:B,_feedbackHideTimeout:R,_init:function(){this.callBase(),this._tempTemplates=[],this._defaultTemplates={},this._initTemplates(),this._initContentReadyAction()},_initTemplates:function(){this._extractTemplates(),this._extractAnonymousTemplate()},_extractTemplates:function(){var e=this.option("integrationOptions.templates"),t=this.$element().contents().filter(N),n={};t.each(function(e,t){var r=h.getElementOptions(t).dxTemplate;if(r){if(!r.name)throw o.Error("E0023");i(t).addClass(H).detach(),n[r.name]=n[r.name]||[],n[r.name].push(t)}}),c(n,function(t,n){var i=this._findTemplateByDevice(n);i&&(e[t]=this._createTemplate(i))}.bind(this))},_findTemplateByDevice:function(e){var t=u.findBestMatches(f.current(),e,function(e){return h.getElementOptions(e).dxTemplate})[0];return c(e,function(e,n){
11
- n!==t&&i(n).remove()}),t},_extractAnonymousTemplate:function(){var e=this.option("integrationOptions.templates"),t=this._getAnonymousTemplateName(),n=this.$element().contents().detach(),r=n.filter(function(e,t){var n=t.nodeType===z,r=i(t).text().trim().length<1;return!(n&&r)}),o=r.length<1;e[t]||o||(e[t]=this._createTemplate(n))},_getAriaTarget:function(){return this._focusTarget()},_getAnonymousTemplateName:function(){return F},_getTemplateByOption:function(e){return this._getTemplate(this.option(e))},_getTemplate:function(e){return d.isFunction(e)?new v(function(t){var n=e.apply(this,this._getNormalizedTemplateArgs(t));if(!d.isDefined(n))return new y;var r=!1,o=this._acquireTemplate(n,function(e){return e.nodeType||d.isRenderer(e)&&!i(e).is("script")?new v(function(){return e}):(r=!0,this._createTemplate(e))}.bind(this)),a=o.render(t);return r&&o.dispose&&o.dispose(),a}.bind(this)):this._acquireTemplate(e,this._createTemplateIfNeeded.bind(this))},_acquireTemplate:function(e,t){return null==e?new y:e instanceof b?this._defaultTemplates[e.name]:e instanceof m?e:d.isFunction(e.render)&&!d.isRenderer(e)?this._addOneRenderedCall(e):e.nodeType||d.isRenderer(e)?t(i(e)):"string"==typeof e?this._renderIntegrationTemplate(e)||this._defaultTemplates[e]||t(e):this._acquireTemplate(e.toString(),t)},_addOneRenderedCall:function(e){var t=e.render.bind(e);return s({},e,{render:function(e){var n=t(e);return e&&e.onRendered&&e.onRendered(),n}})},_renderIntegrationTemplate:function(e){var t=this.option("integrationOptions.templates")[e];if(t&&!(t instanceof m)){var n=this.option("templatesRenderAsynchronously");if(!n)return this._addOneRenderedCall(t)}return t},_createTemplateIfNeeded:function(e){var t=function(e){return d.isRenderer(e)&&e[0]||e},n=this._tempTemplates.filter(function(n){return e=t(e),n.source===e})[0];if(n)return n.template;var i=this._createTemplate(e);return this._tempTemplates.push({template:i,source:t(e)}),i},_createTemplate:function(e){return e="string"==typeof e?h.normalizeTemplateElement(e):e,this.option("integrationOptions.createTemplate")(e)},_getNormalizedTemplateArgs:function(e){var t=[];return"model"in e&&t.push(e.model),"index"in e&&t.push(e.index),t.push(e.container),t},_cleanTemplates:function(){this._tempTemplates.forEach(function(e){e.template.dispose&&e.template.dispose()}),this._tempTemplates=[]},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["designMode","disabled","readOnly"]})},_initMarkup:function(){this.$element().addClass(O),this._toggleDisabledState(this.option("disabled")),this._toggleVisibility(this.option("visible")),this._renderHint(),this._isFocusable()&&this._renderFocusTarget(),this.callBase()},_render:function(){this.callBase(),this._renderContent(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents()},_renderHint:function(){h.toggleAttr(this.$element(),"title",this.option("hint"))},_renderContent:function(){var e=this;u.deferRender(function(){e._renderContentImpl()}),e._fireContentReadyAction()},_renderContentImpl:u.noop,_fireContentReadyAction:u.deferRenderer(function(){this._contentReadyAction()}),_dispose:function(){this._cleanTemplates(),this._contentReadyAction=null,this.callBase()},_resetActiveState:function(){this._toggleActiveState(this._eventBindingTarget(),!1)},_clean:function(){this._cleanFocusState(),this._resetActiveState(),this.callBase(),this.$element().empty()},_toggleVisibility:function(e){this.$element().toggleClass(M,!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=w.addNamespace(T.name,A);r.off(e,t),this.option("accessKey")&&r.on(e,t,function(e){w.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("."+D)),e},_renderFocusTarget:function(){this._focusTarget().attr("tabIndex",this.option("tabIndex"))},_keyboardEventBindingTarget:function(){return this._eventBindingTarget()},_detachFocusEvents:function(){var e=this._focusTarget(),t=this.NAME+V,n=w.addNamespace("focusin",t);n=n+" "+w.addNamespace("focusout",t),p.hasDocumentProperty("onbeforeactivate")&&(n=n+" "+w.addNamespace("beforeactivate",t)),r.off(e,n)},_attachFocusEvents:function(){var e=this.NAME+V,t=w.addNamespace("focusin",e),n=w.addNamespace("focusout",e),o=this._focusTarget();if(r.on(o,t,this._focusInHandler.bind(this)),r.on(o,n,this._focusOutHandler.bind(this)),p.hasDocumentProperty("onbeforeactivate")){var a=w.addNamespace("beforeactivate",e);r.on(this._focusTarget(),a,function(e){i(e.target).is(S.focusable)||e.preventDefault()})}},_refreshFocusEvent:function(){this._detachFocusEvents(),this._attachFocusEvents()},_focusInHandler:function(e){var t=this;t._createActionByOption("onFocusIn",{beforeExecute:function(){t._updateFocusState(e,!0)},excludeValidators:["readOnly"]})({event:e})},_focusOutHandler:function(e){var t=this;t._createActionByOption("onFocusOut",{beforeExecute:function(){t._updateFocusState(e,!1)},excludeValidators:["readOnly","disabled"]})({event:e})},_updateFocusState:function(e,t){var n=e.target;l(n,this._focusTarget())!==-1&&this._toggleFocusClass(t,i(n))},_toggleFocusClass:function(e,t){var n=t&&t.length?t:this._focusTarget();n.toggleClass(L,e)},_hasFocusClass:function(e){var t=i(e||this._focusTarget());return t.hasClass(L)},_attachKeyboardEvents:function(){var e=this.option("_keyboardProcessor");e?this._keyboardProcessor=e.reinitialize(this._keyboardHandler,this):this.option("focusStateEnabled")&&(this._keyboardProcessor=new x({element:this._keyboardEventBindingTarget(),handler:this._keyboardHandler,focusTarget:this._focusTarget(),context:this}))},_keyboardHandler:function(e){var t=e.originalEvent,n=e.key,i=this._supportedKeys(),r=i[n];if(void 0!==r){var o=r.bind(this);return o(t)||!1}return!0},_refreshFocusState:function(){this._cleanFocusState(),this._renderFocusState()},_cleanFocusState:function(){var e=this._focusTarget();this._detachFocusEvents(),this._toggleFocusClass(!1),e.removeAttr("tabIndex"),this._keyboardProcessor&&(this._keyboardProcessor.dispose(),delete this._keyboardProcessor)},_attachHoverEvents:function(){var e=this,t=e._activeStateUnit,n=w.addNamespace(C.start,A),o=w.addNamespace(C.end,A);if(r.off(e._eventBindingTarget(),n,t),r.off(e._eventBindingTarget(),o,t),e.option("hoverStateEnabled")){var s=new a(function(t){e._hoverStartHandler(t.event),e._refreshHoveredElement(i(t.element))},{excludeValidators:["readOnly"]}),l=e._eventBindingTarget();r.on(l,n,t,function(e){s.execute({element:i(e.target),event:e})}),r.on(l,o,t,function(t){e._hoverEndHandler(t),e._forgetHoveredElement()})}else e._toggleHoverClass(!1)},_hoverStartHandler:u.noop,_hoverEndHandler:u.noop,_attachFeedbackEvents:function(){var e,t,n=this,o=n._activeStateUnit,s=w.addNamespace(k.active,A),l=w.addNamespace(k.inactive,A);if(r.off(n._eventBindingTarget(),s,o),r.off(n._eventBindingTarget(),l,o),n.option("activeStateEnabled")){var c=function(e){var t=i(e.element),r=e.value,o=e.event;n._toggleActiveState(t,r,o)};r.on(n._eventBindingTarget(),s,o,{timeout:n._feedbackShowTimeout},function(t){e=e||new a(c),e.execute({element:i(t.currentTarget),value:!0,event:t})}),r.on(n._eventBindingTarget(),l,o,{timeout:n._feedbackHideTimeout},function(e){t=t||new a(c,{excludeValidators:["disabled","readOnly"]}),t.execute({element:i(e.currentTarget),value:!1,event:e})})}},_toggleActiveState:function(e,t){this._toggleHoverClass(!t),e.toggleClass(I,t)},_refreshHoveredElement:function(e){var t=this._activeStateUnit||this._eventBindingTarget();this._forgetHoveredElement(),this._hoveredElement=e.closest(t),this._toggleHoverClass(!0)},_forgetHoveredElement:function(){this._toggleHoverClass(!1),delete this._hoveredElement},_toggleHoverClass:function(e){this._hoveredElement&&this._hoveredElement.toggleClass(P,e&&this.option("hoverStateEnabled"))},_toggleDisabledState:function(e){this.$element().toggleClass(D,Boolean(e)),this._toggleHoverClass(!e),this.setAria("disabled",e||void 0)},_setWidgetOption:function(e,t){if(this[e]){if(d.isPlainObject(t[0]))return void c(t[0],function(t,n){this._setWidgetOption(e,[t,n])}.bind(this));var n=t[0],i=t[1];1===t.length&&(i=this.option(n));var r=this[e+"OptionMap"];this[e].option(r?r(n):n,i)}},_optionChanged:function(e){switch(e.name){case"disabled":this._toggleDisabledState(e.value),this._refreshFocusState();break;case"hint":this._renderHint();break;case"activeStateEnabled":this._attachFeedbackEvents();break;case"hoverStateEnabled":this._attachHoverEvents();break;case"tabIndex":case"_keyboardProcessor":case"focusStateEnabled":this._refreshFocusState();break;case"onFocusIn":case"onFocusOut":break;case"accessKey":this._renderAccessKey();break;case"visible":var t=e.value;this._toggleVisibility(t),this._isVisibilityChangeSupported()&&this._checkVisibilityChanged(e.value?"shown":"hiding");break;case"onContentReady":this._initContentReadyAction();break;default:this.callBase(e)}},_isVisible:function(){return this.callBase()&&this.option("visible")},beginUpdate:function(){this._ready(!1),this.callBase()},endUpdate:function(){this.callBase(),this._initialized&&this._ready(!0)},_ready:function(e){return 0===arguments.length?this._isReady:void(this._isReady=e)},setAria:function(){var e=function(e){var t="role"===e.name||"id"===e.name?e.name:"aria-"+e.name,n=e.value;n=null===n||void 0===n?void 0:n.toString(),h.toggleAttr(e.target,t,n)};if(d.isPlainObject(arguments[0])){var t=arguments[1]||this._getAriaTarget();c(arguments[0],function(n,i){e({name:n,value:i,target:t})})}else e({name:arguments[0],value:arguments[1],target:arguments[2]||this._getAriaTarget()})},isReady:function(){return this._ready()},repaint:function(){this._refresh()},focus:function(){r.trigger(this._focusTarget(),"focus")},registerKeyHandler:function(e,t){var n=this._supportedKeys(),i={};i[e]=t,this._supportedKeys=function(){return s(n,i)}}});e.exports=W},function(e,t,n){var i=n(0).extend,r=n(6),o=r.getNavigator(),a=/(webkit)[ \/]([\w.]+)/,s=/(msie) (\d{1,2}\.\d)/,l=/(trident).*rv:(\d{1,2}\.\d)/,c=/(edge)\/((\d+)?[\w.]+)/,u=/(safari)/i,d=/(mozilla)(?:.*? rv:([\w.]+))/,h=function(e){e=e.toLowerCase();var t={},n=s.exec(e)||l.exec(e)||c.exec(e)||e.indexOf("compatible")<0&&d.exec(e)||a.exec(e)||[],i=n[1],r=n[2];return"webkit"===i&&e.indexOf("chrome")<0&&u.exec(e)&&(i="safari",t.webkit=!0,r=/Version\/([0-9.]+)/i.exec(e),r=r&&r[1]),"trident"!==i&&"edge"!==i||(i="msie"),i&&(t[i]=!0,t.version=r),t};e.exports=i({_fromUA:h},h(o.userAgent))},function(e,t,n){var i=n(0),r={rtlEnabled:!1,defaultCurrency:"USD",designMode:!1,serverDecimalSeparator:".",decimalSeparator:".",thousandsSeparator:",",forceIsoDateParsing:!0,wrapActionsBeforeExecute:!0,useJQuery:void 0},o=function(){return arguments.length?void i.extend(r,arguments[0]):r};"undefined"!=typeof DevExpress&&DevExpress.config&&o(DevExpress.config),e.exports=o},function(e,t,n){function i(e){return Math.abs(parseInt(e.toExponential().split("e")[1]))}function r(){var e=3e-4,t="0.000300",n=3;return t!==e.toPrecision(n)}function o(e,t){var n,o=a(t||0)+2,l=e.toString().split("."),c=e,u=Math.abs(e),d=s(e),h=u>1?10:0;return 1===l.length?e:(d||(s(t)&&(o=l[0].length+i(t)),e=u,e=e-Math.floor(e)+h),o=r()&&i(e)>6||o>7?15:7,d||(n=parseFloat(e.toPrecision(o)).toString().split("."),n[0]!==h.toString())?parseFloat(c.toPrecision(o)):parseFloat(l[0]+"."+n[1]))}function a(e){var t,n,i=e.toString();return i.indexOf(".")<0?0:(t=i.split("."),n=t[1].indexOf("e"),n>=0?n:t[1].length)}var s=n(1).isExponential,l=function(e){return 0===e?0:e/Math.abs(e)},c=function(e,t,n){var i=!t&&0!==t,r=!n&&0!==n;return i&&(t=r?e:Math.min(e,n)),r&&(n=i?e:Math.max(e,t)),Math.min(Math.max(e,t),n)},u=function(e,t,n){return e>=t&&e<=n};t.sign=l,t.fitIntoRange=c,t.inRange=u,t.adjust=o,t.getPrecision=a,t.getExponent=i},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(2),o=n(6).getWindow(),a=n(5),s=n(17),l=n(13).getPublicElement,c=n(0).extend,u=n(1),d=n(3),h=n(24),p=n(224),f=n(105),g=n(40),_=n(77),m=n(129),v=n(9),y=n(7),b=y.when,x=y.Deferred,S=v.addNamespace(m,"dxFX"),w=u.isFunction,C=u.isPlainObject,k=n(4).noop,T=/^([+-])=(.*)/i,E="dxAnimData",A="dxAnimQueue",O="transform",I={initAnimation:function(e,t){e.css({transitionProperty:"none"}),"string"==typeof t.from?e.addClass(t.from):ce(e,t.from);var n=this,i=new x,r=t.cleanupWhen;t.transitionAnimation={deferred:i,finish:function(){n._finishTransition(e),r?b(i,r).always(function(){n._cleanup(e,t)}):n._cleanup(e,t),i.resolveWith(e,[t,e])}},this._completeAnimationCallback(e,t).done(function(){t.transitionAnimation.finish()}).fail(function(){i.rejectWith(e,[t,e])}),t.duration||t.transitionAnimation.finish(),e.css("transform")},animate:function(e,t){return this._startAnimation(e,t),t.transitionAnimation.deferred.promise()},_completeAnimationCallback:function(e,t){var n,i,r=this,o=Date.now()+t.delay,s=new x,l=new x,c=new x,u=g.transitionEndEventName()+".dxFX";return t.transitionAnimation.cleanup=function(){clearTimeout(n),clearTimeout(i),a.off(e,u),a.off(e,S)},a.one(e,u,function(){Date.now()-o>=t.duration&&l.reject()}),a.off(e,S),a.on(e,S,function(){r.stop(e,t),s.reject()}),i=setTimeout(function(){n=setTimeout(function(){c.reject()},t.duration+t.delay+de._simulatedTransitionEndDelay),b(l,c).fail(function(){s.resolve()}.bind(this))}),s.promise()},_startAnimation:function(e,t){e.css({transitionProperty:"all",transitionDelay:t.delay+"ms",transitionDuration:t.duration+"ms",transitionTimingFunction:t.easing}),"string"==typeof t.to?e[0].className+=" "+t.to:t.to&&ce(e,t.to)},_finishTransition:function(e){e.css("transition","none")},_cleanup:function(e,t){t.transitionAnimation.cleanup(),"string"==typeof t.from&&(e.removeClass(t.from),e.removeClass(t.to))},stop:function(e,t,n){t&&(n?t.transitionAnimation.finish():(C(t.to)&&d.each(t.to,function(t){e.css(t,e.css(t))}),this._finishTransition(e),this._cleanup(e,t)))}},D={initAnimation:function(e,t){ce(e,t.from)},animate:function(e,t){var n=new x,i=this;return t?(d.each(t.to,function(n){void 0===t.from[n]&&(t.from[n]=i._normalizeValue(e.css(n)))}),t.to[O]&&(t.from[O]=i._parseTransform(t.from[O]),t.to[O]=i._parseTransform(t.to[O])),t.frameAnimation={to:t.to,from:t.from,currentValue:t.from,easing:p.convertTransitionTimingFuncToEasing(t.easing),duration:t.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),f.cancelAnimationFrame(t.frameAnimation.animationFrameId),n.resolve()},draw:function(){if(t.draw)return void t.draw(this.currentValue);var n=c({},this.currentValue);n[O]&&(n[O]=d.map(n[O],function(e,t){return"translate"===t?h.getTranslateCss(e):"scale"===t?"scale("+e+")":"rotate"===t.substr(0,t.length-1)?t+"("+e+"deg)":void 0}).join(" ")),e.css(n)}},t.delay?(t.frameAnimation.startTime+=t.delay,t.frameAnimation.delayTimeout=setTimeout(function(){i._startAnimation(e,t)},t.delay)):i._startAnimation(e,t),n.promise()):n.reject().promise()},_startAnimation:function(e,t){a.off(e,S),a.on(e,S,function(){t.frameAnimation&&f.cancelAnimationFrame(t.frameAnimation.animationFrameId)}),this._animationStep(e,t)},_parseTransform:function(e){var t={};return d.each(e.match(/(\w|\d)+\([^)]*\)\s*/g),function(e,n){var i=h.parseTranslate(n),r=n.match(/scale\((.+?)\)/),o=n.match(/(rotate.)\((.+)deg\)/);i&&(t.translate=i),r&&r[1]&&(t.scale=parseFloat(r[1])),o&&o[1]&&(t[o[1]]=parseFloat(o[2]))}),t},stop:function(e,t,n){var i=t&&t.frameAnimation;i&&(f.cancelAnimationFrame(i.animationFrameId),clearTimeout(i.delayTimeout),n&&i.finish(),delete t.frameAnimation)},_animationStep:function(e,t){var n=t&&t.frameAnimation;if(n){var i=(new Date).valueOf();if(i>=n.startTime+n.duration)return void n.finish();n.currentValue=this._calcStepValue(n,i-n.startTime),n.draw();var r=this;n.animationFrameId=f.requestAnimationFrame(function(){r._animationStep(e,t)})}},_calcStepValue:function(e,t){var n=function n(r,o){var a=Array.isArray(o)?[]:{},s=function(n){var i=t/e.duration,a=t,s=1*r[n],l=o[n]-r[n],c=e.duration;return p.getEasing(e.easing)(i,a,s,l,c)};return d.each(o,function(e,t){return"string"==typeof t&&parseFloat(t,10)===!1||void(a[e]="object"===("undefined"==typeof t?"undefined":i(t))?n(r[e],t):s(e))}),a};return n(e.from,e.to)},_normalizeValue:function(e){var t=parseFloat(e,10);return t===!1?e:t}},M={initAnimation:function(){},animate:function(){return(new x).resolve().promise()},stop:k,isSynchronous:!0},P=function(e){e=e||{};var t={transition:g.transition()?I:D,frame:D,noAnimation:M},n=e.strategy||"transition";return"css"!==e.type||g.transition()||(n="noAnimation"),t[n]},L=function(e,t,n,i){d.each(["from","to"],function(){if(!n(e[this]))throw s.Error("E0010",t,this,i)})},B=function(e,t){return L(e,t,function(e){return C(e)},"a plain object")},R=function(e,t){return L(e,t,function(e){return"string"==typeof e},"a string")},V={setup:function(){}},F={validateConfig:function(e){R(e,"css")},setup:function(){}},z={top:{my:"bottom center",at:"top center"},bottom:{my:"top center",at:"bottom center"},right:{my:"left center",at:"right center"},left:{my:"right center",at:"left center"}},N={validateConfig:function(e){B(e,"slide")},setup:function(e,t){var n=h.locate(e);if("slide"!==t.type){var i="slideIn"===t.type?t.from:t.to;i.position=c({of:o},z[t.direction]),le(e,i)}this._setUpConfig(n,t.from),this._setUpConfig(n,t.to),h.clearCache(e)},_setUpConfig:function(e,t){t.left="left"in t?t.left:"+=0",t.top="top"in t?t.top:"+=0",this._initNewPosition(e,t)},_initNewPosition:function(e,t){var n={left:t.left,top:t.top};delete t.left,delete t.top;var i=this._getRelativeValue(n.left);void 0!==i?n.left=i+e.left:t.left=0,i=this._getRelativeValue(n.top),void 0!==i?n.top=i+e.top:t.top=0,t[O]=h.getTranslateCss({x:n.left,y:n.top})},_getRelativeValue:function(e){var t;if("string"==typeof e&&(t=T.exec(e)))return parseInt(t[1]+"1")*t[2]}},H={setup:function(e,t){var n,i=t.from,r=C(i)?t.skipElementInitialStyles?0:e.css("opacity"):String(i);switch(t.type){case"fadeIn":n=1;break;case"fadeOut":n=0;break;default:n=String(t.to)}t.from={visibility:"visible",opacity:r},t.to={opacity:n}}},G={validateConfig:function(e){B(e,"pop")},setup:function(e,t){var n=t.from,i=t.to,r="opacity"in n?n.opacity:e.css("opacity"),o="opacity"in i?i.opacity:1,a="scale"in n?n.scale:0,s="scale"in i?i.scale:1;t.from={opacity:r};var l=h.getTranslate(e);t.from[O]=this._getCssTransform(l,a),t.to={opacity:o},t.to[O]=this._getCssTransform(l,s)},_getCssTransform:function(e,t){return h.getTranslateCss(e)+"scale("+t+")"}},W={custom:V,slide:N,slideIn:N,slideOut:N,fade:H,fadeIn:H,fadeOut:H,pop:G,css:F},j=function(e){var t=W[e.type];if(!t)throw s.Error("E0011",e.type);return t},U={type:"custom",from:{},to:{},duration:400,start:k,complete:k,easing:"ease",delay:0},Y={duration:400,easing:"ease",delay:0},$=function(){var e=this,t=e.element,n=e.config;if(le(t,n.from),le(t,n.to),e.configurator.setup(t,n),t.data(E,e),de.off&&(n.duration=0,n.delay=0),e.strategy.initAnimation(t,n),n.start){var i=l(t);n.start.apply(this,[i,n])}},K=function(e){var t=e.element,n=e.config;if(t.removeData(E),n.complete){var i=l(t);n.complete.apply(this,[i,n])}e.deferred.resolveWith(this,[t,n])},X=function(){var e=this,t=e.element,n=e.config;return e.isStarted=!0,e.strategy.animate(t,n).done(function(){K(e)}).fail(function(){e.deferred.rejectWith(this,[t,n])})},q=function(e){var t=this,n=t.element,i=t.config;clearTimeout(t.startTimeout),t.isStarted||t.start(),t.strategy.stop(n,i,e)},Z=v.addNamespace(m,"dxFXStartAnimation"),Q=function(e){a.off(e.element,Z),a.on(e.element,Z,function(){de.stop(e.element)}),e.deferred.always(function(){a.off(e.element,Z)})},J=function(e,t){var n="css"===t.type?Y:U,i=c(!0,{},n,t),o=j(i),a=P(i),s={element:r(e),config:i,configurator:o,strategy:a,isSynchronous:a.isSynchronous,setup:$,start:X,stop:q,deferred:new x};return w(o.validateConfig)&&o.validateConfig(i),Q(s),s},ee=function(e,t){var n=r(e);if(!n.length)return(new x).resolve().promise();var i=J(n,t);return te(n,i),i.deferred.promise()},te=function(e,t){var n=ne(e);ie(e,n),n.push(t),oe(e)||ae(e,n)},ne=function(e){return e.data(A)||[]},ie=function(e,t){e.data(A,t)},re=function(e){e.removeData(A)},oe=function(e){return!!e.data(E)},ae=function e(t,n){if(n=ne(t),n.length){var i=n.shift();0===n.length&&re(t),se(i).done(function(){oe(t)||e(t)})}},se=function(e){return e.setup(),de.off||e.isSynchronous?e.start():e.startTimeout=setTimeout(function(){e.start()}),e.deferred.promise()},le=function(e,t){if(t&&t.position){var n=r(o),i=0,a=0,s=_.calculate(e,t.position),l=e.offset(),u=e.position();u.top>l.top&&(a=n.scrollTop()),u.left>l.left&&(i=n.scrollLeft()),c(t,{left:s.h.location-l.left+u.left-i,top:s.v.location-l.top+u.top-a}),delete t.position}},ce=function(e,t){d.each(t,function(t,n){try{e.css(t,u.isFunction(n)?n():n)}catch(e){}})},ue=function(e,t){var n=r(e),i=ne(n);d.each(i,function(e,t){t.config.delay=0,t.config.duration=0,t.isSynchronous=!0}),oe(n)||ae(n,i);var o=n.data(E);o&&o.stop(t),n.removeData(E),re(n)},de={off:!1,animationTypes:W,animate:ee,createAnimation:J,isAnimating:oe,stop:ue,_simulatedTransitionEndDelay:100};e.exports=de},function(e,t,n){var i=n(55),r=n(1).isString,o=n(3),a=n(11).inArray,s=n(218).getFormatter,l=n(219).getFormat,c=n(314).getParser,u=n(220),d=n(49),h=n(17);n(81);var p={shortdate:"M/d/y",shorttime:"h:mm a",longdate:"EEEE, MMMM d, y",longtime:"h:mm:ss a",monthandday:"MMMM d",monthandyear:"MMMM y",quarterandyear:"QQQ y",day:"d",year:"y",shortdateshorttime:"M/d/y, h:mm a",mediumdatemediumtime:"MMMM d, h:mm a",longdatelongtime:"EEEE, MMMM d, y, h:mm:ss a",month:"LLLL",shortyear:"yy",dayofweek:"EEEE",quarter:"QQQ",hour:"HH",minute:"mm",second:"ss",millisecond:"SSS","datetime-local":"yyyy-MM-ddTHH':'mm':'ss"},f={year:["y","yy","yyyy"],day:["d","dd"],month:["M","MM","MMM","MMMM"],hours:["H","HH","h","hh","ah"],minutes:["m","mm"],seconds:["s","ss"],milliseconds:["S","SS","SSS"]},g=i({_getPatternByFormat:function(e){return p[e.toLowerCase()]},_expandPattern:function(e){return this._getPatternByFormat(e)||e},formatUsesMonthName:function(e){return this._expandPattern(e).indexOf("MMMM")!==-1},formatUsesDayName:function(e){return this._expandPattern(e).indexOf("EEEE")!==-1},getFormatParts:function(e){var t=this._getPatternByFormat(e)||e,n=[];return o.each(t.split(/\W+/),function(e,t){o.each(f,function(e,i){a(t,i)>-1&&n.push(e)})}),n},getMonthNames:function(e){return u.getMonthNames(e)},getDayNames:function(e){return u.getDayNames(e)},getQuarterNames:function(e){return u.getQuarterNames(e)},getPeriodNames:function(e){return u.getPeriodNames(e)},getTimeSeparator:function(){return":"},is24HourFormat:function(e){for(var t=new Date(2017,0,20,11,0,0,0),n=new Date(2017,0,20,23,0,0,0),i=this.format(t,e),r=this.format(n,e),o=0;o<i.length;o++)if(i[o]!==r[o])return!isNaN(parseInt(i[o]))},format:function(e,t){if(e){if(!t)return e;var n;if("function"==typeof t)n=t;else if(t.formatter)n=t.formatter;else if(t=t.type||t,r(t))return t=p[t.toLowerCase()]||t,d.convertDigits(s(t,this)(e));if(n)return n(e)}},parse:function(e,t){var n,i,r,o=this;if(e){if(!t)return this.parse(e,"shortdate");if(t.parser)return t.parser(e);if("string"!=typeof t||p[t.toLowerCase()]){r=function(e){var n=o.format(e,t);return d.convertDigits(n,!0)};try{i=l(r)}catch(e){}}else i=t;if(i)return e=d.convertDigits(e,!0),c(i,this)(e);if(h.log("W0012"),n=new Date(e),n&&!isNaN(n.getTime()))return n}},firstDayOfWeekIndex:function(){return 0}});e.exports=g},,function(e,t,n){var i,r=n(171),o=n(12),a=n(5),s=n(172),l=new r,c=new s,u=function(){},d=function(){},h=t.setDataStrategy=function(e){c.fire(e),i=e;var t=i.cleanData;i.cleanData=function(e){u(e);var n=t.call(this,e);return d(e),n}};h({data:function(){var e=arguments[0],t=arguments[1],n=arguments[2];if(e){var i=l.get(e);return i||(i={},l.set(e,i)),void 0===t?i:2===arguments.length?i[t]:(i[t]=n,n)}},removeData:function(e,t){if(e)if(void 0===t)l.delete(e);else{var n=l.get(e);n&&delete n[t]}},cleanData:function(e){for(var t=0;t<e.length;t++)a.off(e[t]),l.delete(e[t])}}),t.setDataStrategy=h,t.getDataStrategy=function(){return i},t.data=function(){return i.data.apply(this,arguments)},t.strategyChanging=c,t.beforeCleanData=function(e){u=e},t.afterCleanData=function(e){d=e},t.cleanData=function(e){return i.cleanData.call(this,e)},t.removeData=function(e,t){return i.removeData.call(this,e,t)},t.cleanDataRecursive=function(e,t){if(o.isElementNode(e)){var n=e.getElementsByTagName("*");i.cleanData(n),t&&i.cleanData([e])}}},function(e,t,n){var i=n(102),r=n(17),o={},a=i(r.ERROR_MESSAGES,{E4000:"[DevExpress.data]: {0}",E4001:"Unknown aggregating function is detected: '{0}'",E4002:"Unsupported OData protocol version is used",E4003:"Unknown filter operation is used: {0}",E4004:"The thenby() method is called before the sortby() method",E4005:"Store requires a key expression for this operation",E4006:"ArrayStore 'data' option must be an array",E4007:"Compound keys cannot be auto-generated",E4008:"Attempt to insert an item with the a duplicated key",E4009:"Data item cannot be found",E4010:"CustomStore does not support creating queries",E4011:"Custom Store method is not implemented or is not a function: {0}",E4012:"Custom Store method returns an invalid value: {0}",E4013:"Local Store requires the 'name' configuration option is specified",E4014:"Unknown data type is specified for ODataStore: {0}",E4015:"Unknown entity name or alias is used: {0}",E4016:"The compileSetter(expr) method is called with 'self' passed as a parameter",E4017:"Keys cannot be modified",E4018:"The server has returned a non-numeric value in a response to an item count request",E4019:"Mixing of group operators inside a single group of filter expression is not allowed",E4020:"Unknown store type is detected: {0}",E4021:"The server response does not provide the totalCount value",E4022:"The server response does not provide the groupCount value",E4023:"Could not parse the following XML: {0}",W4000:"Data returned from the server has an incorrect structure",W4001:'The {0} field is listed in both "keyType" and "fieldTypes". The value of "fieldTypes" is used.',W4002:"Data loading has failed for some cells due to the following error: {0}"}),s=null,l=function(e){o.errorHandler&&o.errorHandler(e)};o={errors:a,errorHandler:s,_errorHandler:l},e.exports=o},function(e,t,n){var i=n(3).map,r=function(e){return void 0===e||null===e?"":String(e)},o=function(e){return r(e).charAt(0).toUpperCase()+e.substr(1)},a=function(e){return r(e).replace(/([a-z\d])([A-Z])/g,"$1 $2").split(/[\s_-]+/)},s=function(e){return i(a(e),function(e){return e.toLowerCase()}).join("-")},l=function(e){return s(e).replace(/-/g,"_")},c=function(e,t){return i(a(e),function(e,n){return e=e.toLowerCase(),(t||n>0)&&(e=o(e)),e}).join("")},u=function(e){return o(s(e).replace(/-/g," "))},d=function(e){return i(a(e),function(e){return o(e.toLowerCase())}).join(" ")},h=["0","1","2","3","4","5","6","7","8","9"],p=function(e){var t,n,i=[],r=!1,o=!1;for(t=0;t<e.length;t++)n=e.charAt(t),o=n===n.toUpperCase()&&"-"!==n&&")"!==n||n in h,"_"===n||"."===n?(n=" ",o=!0):0===t?(n=n.toUpperCase(),o=!0):!r&&o&&i.length>0&&i.push(" "),i.push(n),r=o;return i.join("")};t.dasherize=s,t.camelize=c,t.humanize=u,t.titleize=d,t.underscore=l,t.captionize=p},,function(e,t,n){var i=n(1),r=n(4),o=function(){var e=[new RegExp("&","g"),new RegExp('"',"g"),new RegExp("'","g"),new RegExp("<","g"),new RegExp(">","g")];return function(t){return String(t).replace(e[0],"&amp;").replace(e[1],"&quot;").replace(e[2],"&#39;").replace(e[3],"&lt;").replace(e[4],"&gt;")}}(),a=function(e){var t=r.splitPair(e),n=parseInt(t&&t[0],10),i=parseInt(t&&t[1],10);return isFinite(n)||(n=0),isFinite(i)||(i=n),{h:n,v:i}},s=function(e){var t=r.splitQuad(e),n=parseInt(t&&t[0],10),i=parseInt(t&&t[1],10),o=parseInt(t&&t[2],10),a=parseInt(t&&t[3],10);return isFinite(n)||(n=0),isFinite(i)||(i=n),isFinite(o)||(o=n),isFinite(a)||(a=i),{top:i,right:o,bottom:a,left:n}},l=function(){var e,t,n,r=arguments[0],o=[].slice.call(arguments).slice(1);if(i.isFunction(r))return r.apply(this,o);for(var a=0;a<o.length;a++)t=new RegExp("\\{"+a+"\\}","gm"),n=o[a],"string"===i.type(n)&&n.indexOf("$")>=0&&(e="$".replace("$","$$").length,n=n.replace("$",1===e?"$$$$":"$$")),r=r.replace(t,n);return r},c=function(){var e=function(e){return(e+"").replace(/([+*?.[^\]$(){}><|=!:])/g,"\\$1")};return function(t,n,i){return t.replace(new RegExp("("+e(n)+")","gi"),i)}}(),u=function(){var e=/\s/g;return function(t){return!t||!t.replace(e,"")}}();t.encodeHtml=o,t.pairToObject=a,t.quadToObject=s,t.format=l,t.replaceAll=c,t.isEmpty=u},function(e,t,n){var i=n(11).inArray,r=n(12),o=n(68),a=n(6),s=a.getNavigator(),l=n(14),c=n(83),u={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MsTransitionEnd",transition:"transitionend"},d=function(e){return!!c.styleProp(e)},h=function(){var e=l.real(),t=e.platform,n=e.version,r=n&&n[0]<4&&"android"===t,o=!r&&i(t,["ios","android","win"])>-1||e.mac;return o},p=function(e){if("text"===e)return!0;var t=r.createElement("input");try{return t.setAttribute("type",e),t.value="wrongValue",!t.value}catch(e){return!1}},f=function(e,t){return(e.hasProperty("ontouchstart")||!!t)&&!e.hasProperty("callPhantom")},g=function(e,t){return e.hasProperty("PointerEvent")||!!t.pointerEnabled},_=f(a,s.maxTouchPoints),m=g(a,s),v=!!s.maxTouchPoints||!!s.msMaxTouchPoints;t.touchEvents=_,t.pointerEvents=m,t.touch=_||m&&v,t.transition=o(function(){return d("transition")}),t.transitionEndEventName=o(function(){return u[c.styleProp("transition")]}),t.animation=o(function(){return d("animation")}),t.nativeScrolling=h(),t.styleProp=c.styleProp,t.stylePropPrefix=c.stylePropPrefix,t.supportProp=d,t.inputType=p},function(e,t,n){function i(e){return/^(or|\|\||\|)$/i.test(e)}function r(e){return/^(and|&&|&)$/i.test(e)}var o=n(1).isFunction,a=n(12),s=n(51).add,l=n(6),c=l.getWindow(),u=n(3).map,d=n(22).toComparable,h=n(7).Deferred,p=n(1),f="DEVEXTREME_XHR_ERROR_UNLOAD",g=function(e){return[e[0],e.length<3?"=":String(e[1]).toLowerCase(),e.length<2||e[e.length-1]]},_=function(e){return Array.isArray(e)||(e=[e]),u(e,function(e){var t={selector:o(e)||"string"==typeof e?e:e.getter||e.field||e.selector,desc:!(!e.desc&&"d"!==String(e.dir).charAt(0).toLowerCase())};return e.compare&&(t.compare=e.compare),t})},m=function(){var e,t={timeout:"Network connection timeout",error:"Unspecified network error",parsererror:"Unexpected server response"},n=function(e){var n=t[e];return n?n:e};return s(function(){a.listen(c,"beforeunload",function(){e=!0})}),function(t,i){return e?f:t.status<400?n(i):t.statusText}}(),v={count:{seed:0,step:function(e){return 1+e}},sum:{seed:0,step:function(e,t){return e+t}},min:{step:function(e,t){return t<e?t:e}},max:{step:function(e,t){return t>e?t:e}},avg:{seed:[0,0],step:function(e,t){return[e[0]+t,e[1]+1]},finalize:function(e){return e[1]?e[0]/e[1]:NaN}}},y=function(){var e,t=0,n=function(){0===t&&(e=new h),t++},i=function(){t--,t<1&&e.resolve()},r=function(){var n=0===t?(new h).resolve():e;return n.promise()},o=function(){t=0,e&&e.resolve()};return{obtain:n,release:i,promise:r,reset:o}}(),b=function(e,t,n){if(Array.isArray(e)){for(var i,r=u(t,function(e,t){return t}),o=0;o<r.length;o++)if(i=r[o],d(t[i],!0)!=d(n[i],!0))return!1;return!0}return d(t,!0)==d(n,!0)},x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",S=function(e){
11
+ n!==t&&i(n).remove()}),t},_extractAnonymousTemplate:function(){var e=this.option("integrationOptions.templates"),t=this._getAnonymousTemplateName(),n=this.$element().contents().detach(),r=n.filter(function(e,t){var n=t.nodeType===z,r=i(t).text().trim().length<1;return!(n&&r)}),o=r.length<1;e[t]||o||(e[t]=this._createTemplate(n))},_getAriaTarget:function(){return this._focusTarget()},_getAnonymousTemplateName:function(){return F},_getTemplateByOption:function(e){return this._getTemplate(this.option(e))},_getTemplate:function(e){return d.isFunction(e)?new v(function(t){var n=e.apply(this,this._getNormalizedTemplateArgs(t));if(!d.isDefined(n))return new y;var r=!1,o=this._acquireTemplate(n,function(e){return e.nodeType||d.isRenderer(e)&&!i(e).is("script")?new v(function(){return e}):(r=!0,this._createTemplate(e))}.bind(this)),a=o.render(t);return r&&o.dispose&&o.dispose(),a}.bind(this)):this._acquireTemplate(e,this._createTemplateIfNeeded.bind(this))},_acquireTemplate:function(e,t){return null==e?new y:e instanceof b?this._defaultTemplates[e.name]:e instanceof m?e:d.isFunction(e.render)&&!d.isRenderer(e)?this._addOneRenderedCall(e):e.nodeType||d.isRenderer(e)?t(i(e)):"string"==typeof e?this._renderIntegrationTemplate(e)||this._defaultTemplates[e]||t(e):this._acquireTemplate(e.toString(),t)},_addOneRenderedCall:function(e){var t=e.render.bind(e);return s({},e,{render:function(e){var n=t(e);return e&&e.onRendered&&e.onRendered(),n}})},_renderIntegrationTemplate:function(e){var t=this.option("integrationOptions.templates")[e];if(t&&!(t instanceof m)){var n=this.option("templatesRenderAsynchronously");if(!n)return this._addOneRenderedCall(t)}return t},_createTemplateIfNeeded:function(e){var t=function(e){return d.isRenderer(e)&&e[0]||e},n=this._tempTemplates.filter(function(n){return e=t(e),n.source===e})[0];if(n)return n.template;var i=this._createTemplate(e);return this._tempTemplates.push({template:i,source:t(e)}),i},_createTemplate:function(e){return e="string"==typeof e?h.normalizeTemplateElement(e):e,this.option("integrationOptions.createTemplate")(e)},_getNormalizedTemplateArgs:function(e){var t=[];return"model"in e&&t.push(e.model),"index"in e&&t.push(e.index),t.push(e.container),t},_cleanTemplates:function(){this._tempTemplates.forEach(function(e){e.template.dispose&&e.template.dispose()}),this._tempTemplates=[]},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["designMode","disabled","readOnly"]})},_initMarkup:function(){this.$element().addClass(O),this._toggleDisabledState(this.option("disabled")),this._toggleVisibility(this.option("visible")),this._renderHint(),this._isFocusable()&&this._renderFocusTarget(),this.callBase()},_render:function(){this.callBase(),this._renderContent(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents()},_renderHint:function(){h.toggleAttr(this.$element(),"title",this.option("hint"))},_renderContent:function(){var e=this;u.deferRender(function(){e._renderContentImpl()}),e._fireContentReadyAction()},_renderContentImpl:u.noop,_fireContentReadyAction:u.deferRenderer(function(){this._contentReadyAction()}),_dispose:function(){this._cleanTemplates(),this._contentReadyAction=null,this.callBase()},_resetActiveState:function(){this._toggleActiveState(this._eventBindingTarget(),!1)},_clean:function(){this._cleanFocusState(),this._resetActiveState(),this.callBase(),this.$element().empty()},_toggleVisibility:function(e){this.$element().toggleClass(M,!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=w.addNamespace(T.name,A);r.off(e,t),this.option("accessKey")&&r.on(e,t,function(e){w.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("."+D)),e},_renderFocusTarget:function(){this._focusTarget().attr("tabIndex",this.option("tabIndex"))},_keyboardEventBindingTarget:function(){return this._eventBindingTarget()},_detachFocusEvents:function(){var e=this._focusTarget(),t=this.NAME+V,n=w.addNamespace("focusin",t);n=n+" "+w.addNamespace("focusout",t),p.hasDocumentProperty("onbeforeactivate")&&(n=n+" "+w.addNamespace("beforeactivate",t)),r.off(e,n)},_attachFocusEvents:function(){var e=this.NAME+V,t=w.addNamespace("focusin",e),n=w.addNamespace("focusout",e),o=this._focusTarget();if(r.on(o,t,this._focusInHandler.bind(this)),r.on(o,n,this._focusOutHandler.bind(this)),p.hasDocumentProperty("onbeforeactivate")){var a=w.addNamespace("beforeactivate",e);r.on(this._focusTarget(),a,function(e){i(e.target).is(S.focusable)||e.preventDefault()})}},_refreshFocusEvent:function(){this._detachFocusEvents(),this._attachFocusEvents()},_focusInHandler:function(e){var t=this;t._createActionByOption("onFocusIn",{beforeExecute:function(){t._updateFocusState(e,!0)},excludeValidators:["readOnly"]})({event:e})},_focusOutHandler:function(e){var t=this;t._createActionByOption("onFocusOut",{beforeExecute:function(){t._updateFocusState(e,!1)},excludeValidators:["readOnly","disabled"]})({event:e})},_updateFocusState:function(e,t){var n=e.target;l(n,this._focusTarget())!==-1&&this._toggleFocusClass(t,i(n))},_toggleFocusClass:function(e,t){var n=t&&t.length?t:this._focusTarget();n.toggleClass(L,e)},_hasFocusClass:function(e){var t=i(e||this._focusTarget());return t.hasClass(L)},_attachKeyboardEvents:function(){var e=this.option("_keyboardProcessor");e?this._keyboardProcessor=e.reinitialize(this._keyboardHandler,this):this.option("focusStateEnabled")&&(this._keyboardProcessor=new x({element:this._keyboardEventBindingTarget(),handler:this._keyboardHandler,focusTarget:this._focusTarget(),context:this}))},_keyboardHandler:function(e){var t=e.originalEvent,n=e.key,i=this._supportedKeys(),r=i[n];if(void 0!==r){var o=r.bind(this);return o(t)||!1}return!0},_refreshFocusState:function(){this._cleanFocusState(),this._renderFocusState()},_cleanFocusState:function(){var e=this._focusTarget();this._detachFocusEvents(),this._toggleFocusClass(!1),e.removeAttr("tabIndex"),this._keyboardProcessor&&(this._keyboardProcessor.dispose(),delete this._keyboardProcessor)},_attachHoverEvents:function(){var e=this,t=e._activeStateUnit,n=w.addNamespace(C.start,A),o=w.addNamespace(C.end,A);if(r.off(e._eventBindingTarget(),n,t),r.off(e._eventBindingTarget(),o,t),e.option("hoverStateEnabled")){var s=new a(function(t){e._hoverStartHandler(t.event),e._refreshHoveredElement(i(t.element))},{excludeValidators:["readOnly"]}),l=e._eventBindingTarget();r.on(l,n,t,function(e){s.execute({element:i(e.target),event:e})}),r.on(l,o,t,function(t){e._hoverEndHandler(t),e._forgetHoveredElement()})}else e._toggleHoverClass(!1)},_hoverStartHandler:u.noop,_hoverEndHandler:u.noop,_attachFeedbackEvents:function(){var e,t,n=this,o=n._activeStateUnit,s=w.addNamespace(k.active,A),l=w.addNamespace(k.inactive,A);if(r.off(n._eventBindingTarget(),s,o),r.off(n._eventBindingTarget(),l,o),n.option("activeStateEnabled")){var c=function(e){var t=i(e.element),r=e.value,o=e.event;n._toggleActiveState(t,r,o)};r.on(n._eventBindingTarget(),s,o,{timeout:n._feedbackShowTimeout},function(t){e=e||new a(c),e.execute({element:i(t.currentTarget),value:!0,event:t})}),r.on(n._eventBindingTarget(),l,o,{timeout:n._feedbackHideTimeout},function(e){t=t||new a(c,{excludeValidators:["disabled","readOnly"]}),t.execute({element:i(e.currentTarget),value:!1,event:e})})}},_toggleActiveState:function(e,t){this._toggleHoverClass(!t),e.toggleClass(I,t)},_refreshHoveredElement:function(e){var t=this._activeStateUnit||this._eventBindingTarget();this._forgetHoveredElement(),this._hoveredElement=e.closest(t),this._toggleHoverClass(!0)},_forgetHoveredElement:function(){this._toggleHoverClass(!1),delete this._hoveredElement},_toggleHoverClass:function(e){this._hoveredElement&&this._hoveredElement.toggleClass(P,e&&this.option("hoverStateEnabled"))},_toggleDisabledState:function(e){this.$element().toggleClass(D,Boolean(e)),this._toggleHoverClass(!e),this.setAria("disabled",e||void 0)},_setWidgetOption:function(e,t){if(this[e]){if(d.isPlainObject(t[0]))return void c(t[0],function(t,n){this._setWidgetOption(e,[t,n])}.bind(this));var n=t[0],i=t[1];1===t.length&&(i=this.option(n));var r=this[e+"OptionMap"];this[e].option(r?r(n):n,i)}},_optionChanged:function(e){switch(e.name){case"disabled":this._toggleDisabledState(e.value),this._refreshFocusState();break;case"hint":this._renderHint();break;case"activeStateEnabled":this._attachFeedbackEvents();break;case"hoverStateEnabled":this._attachHoverEvents();break;case"tabIndex":case"_keyboardProcessor":case"focusStateEnabled":this._refreshFocusState();break;case"onFocusIn":case"onFocusOut":break;case"accessKey":this._renderAccessKey();break;case"visible":var t=e.value;this._toggleVisibility(t),this._isVisibilityChangeSupported()&&this._checkVisibilityChanged(e.value?"shown":"hiding");break;case"onContentReady":this._initContentReadyAction();break;default:this.callBase(e)}},_isVisible:function(){return this.callBase()&&this.option("visible")},beginUpdate:function(){this._ready(!1),this.callBase()},endUpdate:function(){this.callBase(),this._initialized&&this._ready(!0)},_ready:function(e){return 0===arguments.length?this._isReady:void(this._isReady=e)},setAria:function(){var e=function(e){var t="role"===e.name||"id"===e.name?e.name:"aria-"+e.name,n=e.value;n=null===n||void 0===n?void 0:n.toString(),h.toggleAttr(e.target,t,n)};if(d.isPlainObject(arguments[0])){var t=arguments[1]||this._getAriaTarget();c(arguments[0],function(n,i){e({name:n,value:i,target:t})})}else e({name:arguments[0],value:arguments[1],target:arguments[2]||this._getAriaTarget()})},isReady:function(){return this._ready()},repaint:function(){this._refresh()},focus:function(){r.trigger(this._focusTarget(),"focus")},registerKeyHandler:function(e,t){var n=this._supportedKeys(),i={};i[e]=t,this._supportedKeys=function(){return s(n,i)}}});e.exports=W},function(e,t,n){var i=n(0).extend,r=n(6),o=r.getNavigator(),a=/(webkit)[ \/]([\w.]+)/,s=/(msie) (\d{1,2}\.\d)/,l=/(trident).*rv:(\d{1,2}\.\d)/,c=/(edge)\/((\d+)?[\w.]+)/,u=/(safari)/i,d=/(mozilla)(?:.*? rv:([\w.]+))/,h=function(e){e=e.toLowerCase();var t={},n=s.exec(e)||l.exec(e)||c.exec(e)||e.indexOf("compatible")<0&&d.exec(e)||a.exec(e)||[],i=n[1],r=n[2];return"webkit"===i&&e.indexOf("chrome")<0&&u.exec(e)&&(i="safari",t.webkit=!0,r=/Version\/([0-9.]+)/i.exec(e),r=r&&r[1]),"trident"!==i&&"edge"!==i||(i="msie"),i&&(t[i]=!0,t.version=r),t};e.exports=i({_fromUA:h},h(o.userAgent))},function(e,t,n){var i=n(0),r={rtlEnabled:!1,defaultCurrency:"USD",designMode:!1,serverDecimalSeparator:".",decimalSeparator:".",thousandsSeparator:",",forceIsoDateParsing:!0,wrapActionsBeforeExecute:!0,useJQuery:void 0},o=function(){return arguments.length?void i.extend(r,arguments[0]):r};"undefined"!=typeof DevExpress&&DevExpress.config&&o(DevExpress.config),e.exports=o},function(e,t,n){function i(e){return Math.abs(parseInt(e.toExponential().split("e")[1]))}function r(){var e=3e-4,t="0.000300",n=3;return t!==e.toPrecision(n)}function o(e,t){var n,o=a(t||0)+2,l=e.toString().split("."),c=e,u=Math.abs(e),d=s(e),h=u>1?10:0;return 1===l.length?e:(d||(s(t)&&(o=l[0].length+i(t)),e=u,e=e-Math.floor(e)+h),o=r()&&i(e)>6||o>7?15:7,d||(n=parseFloat(e.toPrecision(o)).toString().split("."),n[0]!==h.toString())?parseFloat(c.toPrecision(o)):parseFloat(l[0]+"."+n[1]))}function a(e){var t,n,i=e.toString();return i.indexOf(".")<0?0:(t=i.split("."),n=t[1].indexOf("e"),n>=0?n:t[1].length)}var s=n(1).isExponential,l=function(e){return 0===e?0:e/Math.abs(e)},c=function(e,t,n){var i=!t&&0!==t,r=!n&&0!==n;return i&&(t=r?e:Math.min(e,n)),r&&(n=i?e:Math.max(e,t)),Math.min(Math.max(e,t),n)},u=function(e,t,n){return e>=t&&e<=n};t.sign=l,t.fitIntoRange=c,t.inRange=u,t.adjust=o,t.getPrecision=a,t.getExponent=i},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(2),o=n(6).getWindow(),a=n(5),s=n(17),l=n(13).getPublicElement,c=n(0).extend,u=n(1),d=n(3),h=n(24),p=n(224),f=n(105),g=n(40),_=n(77),m=n(129),v=n(9),y=n(7),b=y.when,x=y.Deferred,S=v.addNamespace(m,"dxFX"),w=u.isFunction,C=u.isPlainObject,k=n(4).noop,T=/^([+-])=(.*)/i,E="dxAnimData",A="dxAnimQueue",O="transform",I={initAnimation:function(e,t){e.css({transitionProperty:"none"}),"string"==typeof t.from?e.addClass(t.from):ce(e,t.from);var n=this,i=new x,r=t.cleanupWhen;t.transitionAnimation={deferred:i,finish:function(){n._finishTransition(e),r?b(i,r).always(function(){n._cleanup(e,t)}):n._cleanup(e,t),i.resolveWith(e,[t,e])}},this._completeAnimationCallback(e,t).done(function(){t.transitionAnimation.finish()}).fail(function(){i.rejectWith(e,[t,e])}),t.duration||t.transitionAnimation.finish(),e.css("transform")},animate:function(e,t){return this._startAnimation(e,t),t.transitionAnimation.deferred.promise()},_completeAnimationCallback:function(e,t){var n,i,r=this,o=Date.now()+t.delay,s=new x,l=new x,c=new x,u=g.transitionEndEventName()+".dxFX";return t.transitionAnimation.cleanup=function(){clearTimeout(n),clearTimeout(i),a.off(e,u),a.off(e,S)},a.one(e,u,function(){Date.now()-o>=t.duration&&l.reject()}),a.off(e,S),a.on(e,S,function(){r.stop(e,t),s.reject()}),i=setTimeout(function(){n=setTimeout(function(){c.reject()},t.duration+t.delay+de._simulatedTransitionEndDelay),b(l,c).fail(function(){s.resolve()}.bind(this))}),s.promise()},_startAnimation:function(e,t){e.css({transitionProperty:"all",transitionDelay:t.delay+"ms",transitionDuration:t.duration+"ms",transitionTimingFunction:t.easing}),"string"==typeof t.to?e[0].className+=" "+t.to:t.to&&ce(e,t.to)},_finishTransition:function(e){e.css("transition","none")},_cleanup:function(e,t){t.transitionAnimation.cleanup(),"string"==typeof t.from&&(e.removeClass(t.from),e.removeClass(t.to))},stop:function(e,t,n){t&&(n?t.transitionAnimation.finish():(C(t.to)&&d.each(t.to,function(t){e.css(t,e.css(t))}),this._finishTransition(e),this._cleanup(e,t)))}},D={initAnimation:function(e,t){ce(e,t.from)},animate:function(e,t){var n=new x,i=this;return t?(d.each(t.to,function(n){void 0===t.from[n]&&(t.from[n]=i._normalizeValue(e.css(n)))}),t.to[O]&&(t.from[O]=i._parseTransform(t.from[O]),t.to[O]=i._parseTransform(t.to[O])),t.frameAnimation={to:t.to,from:t.from,currentValue:t.from,easing:p.convertTransitionTimingFuncToEasing(t.easing),duration:t.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),f.cancelAnimationFrame(t.frameAnimation.animationFrameId),n.resolve()},draw:function(){if(t.draw)return void t.draw(this.currentValue);var n=c({},this.currentValue);n[O]&&(n[O]=d.map(n[O],function(e,t){return"translate"===t?h.getTranslateCss(e):"scale"===t?"scale("+e+")":"rotate"===t.substr(0,t.length-1)?t+"("+e+"deg)":void 0}).join(" ")),e.css(n)}},t.delay?(t.frameAnimation.startTime+=t.delay,t.frameAnimation.delayTimeout=setTimeout(function(){i._startAnimation(e,t)},t.delay)):i._startAnimation(e,t),n.promise()):n.reject().promise()},_startAnimation:function(e,t){a.off(e,S),a.on(e,S,function(){t.frameAnimation&&f.cancelAnimationFrame(t.frameAnimation.animationFrameId)}),this._animationStep(e,t)},_parseTransform:function(e){var t={};return d.each(e.match(/\w+\d*\w*\([^)]*\)\s*/g),function(e,n){var i=h.parseTranslate(n),r=n.match(/scale\((.+?)\)/),o=n.match(/(rotate.)\((.+)deg\)/);i&&(t.translate=i),r&&r[1]&&(t.scale=parseFloat(r[1])),o&&o[1]&&(t[o[1]]=parseFloat(o[2]))}),t},stop:function(e,t,n){var i=t&&t.frameAnimation;i&&(f.cancelAnimationFrame(i.animationFrameId),clearTimeout(i.delayTimeout),n&&i.finish(),delete t.frameAnimation)},_animationStep:function(e,t){var n=t&&t.frameAnimation;if(n){var i=(new Date).valueOf();if(i>=n.startTime+n.duration)return void n.finish();n.currentValue=this._calcStepValue(n,i-n.startTime),n.draw();var r=this;n.animationFrameId=f.requestAnimationFrame(function(){r._animationStep(e,t)})}},_calcStepValue:function(e,t){var n=function n(r,o){var a=Array.isArray(o)?[]:{},s=function(n){var i=t/e.duration,a=t,s=1*r[n],l=o[n]-r[n],c=e.duration;return p.getEasing(e.easing)(i,a,s,l,c)};return d.each(o,function(e,t){return"string"==typeof t&&parseFloat(t,10)===!1||void(a[e]="object"===("undefined"==typeof t?"undefined":i(t))?n(r[e],t):s(e))}),a};return n(e.from,e.to)},_normalizeValue:function(e){var t=parseFloat(e,10);return t===!1?e:t}},M={initAnimation:function(){},animate:function(){return(new x).resolve().promise()},stop:k,isSynchronous:!0},P=function(e){e=e||{};var t={transition:g.transition()?I:D,frame:D,noAnimation:M},n=e.strategy||"transition";return"css"!==e.type||g.transition()||(n="noAnimation"),t[n]},L=function(e,t,n,i){d.each(["from","to"],function(){if(!n(e[this]))throw s.Error("E0010",t,this,i)})},B=function(e,t){return L(e,t,function(e){return C(e)},"a plain object")},R=function(e,t){return L(e,t,function(e){return"string"==typeof e},"a string")},V={setup:function(){}},F={validateConfig:function(e){R(e,"css")},setup:function(){}},z={top:{my:"bottom center",at:"top center"},bottom:{my:"top center",at:"bottom center"},right:{my:"left center",at:"right center"},left:{my:"right center",at:"left center"}},N={validateConfig:function(e){B(e,"slide")},setup:function(e,t){var n=h.locate(e);if("slide"!==t.type){var i="slideIn"===t.type?t.from:t.to;i.position=c({of:o},z[t.direction]),le(e,i)}this._setUpConfig(n,t.from),this._setUpConfig(n,t.to),h.clearCache(e)},_setUpConfig:function(e,t){t.left="left"in t?t.left:"+=0",t.top="top"in t?t.top:"+=0",this._initNewPosition(e,t)},_initNewPosition:function(e,t){var n={left:t.left,top:t.top};delete t.left,delete t.top;var i=this._getRelativeValue(n.left);void 0!==i?n.left=i+e.left:t.left=0,i=this._getRelativeValue(n.top),void 0!==i?n.top=i+e.top:t.top=0,t[O]=h.getTranslateCss({x:n.left,y:n.top})},_getRelativeValue:function(e){var t;if("string"==typeof e&&(t=T.exec(e)))return parseInt(t[1]+"1")*t[2]}},H={setup:function(e,t){var n,i=t.from,r=C(i)?t.skipElementInitialStyles?0:e.css("opacity"):String(i);switch(t.type){case"fadeIn":n=1;break;case"fadeOut":n=0;break;default:n=String(t.to)}t.from={visibility:"visible",opacity:r},t.to={opacity:n}}},G={validateConfig:function(e){B(e,"pop")},setup:function(e,t){var n=t.from,i=t.to,r="opacity"in n?n.opacity:e.css("opacity"),o="opacity"in i?i.opacity:1,a="scale"in n?n.scale:0,s="scale"in i?i.scale:1;t.from={opacity:r};var l=h.getTranslate(e);t.from[O]=this._getCssTransform(l,a),t.to={opacity:o},t.to[O]=this._getCssTransform(l,s)},_getCssTransform:function(e,t){return h.getTranslateCss(e)+"scale("+t+")"}},W={custom:V,slide:N,slideIn:N,slideOut:N,fade:H,fadeIn:H,fadeOut:H,pop:G,css:F},j=function(e){var t=W[e.type];if(!t)throw s.Error("E0011",e.type);return t},U={type:"custom",from:{},to:{},duration:400,start:k,complete:k,easing:"ease",delay:0},Y={duration:400,easing:"ease",delay:0},$=function(){var e=this,t=e.element,n=e.config;if(le(t,n.from),le(t,n.to),e.configurator.setup(t,n),t.data(E,e),de.off&&(n.duration=0,n.delay=0),e.strategy.initAnimation(t,n),n.start){var i=l(t);n.start.apply(this,[i,n])}},K=function(e){var t=e.element,n=e.config;if(t.removeData(E),n.complete){var i=l(t);n.complete.apply(this,[i,n])}e.deferred.resolveWith(this,[t,n])},X=function(){var e=this,t=e.element,n=e.config;return e.isStarted=!0,e.strategy.animate(t,n).done(function(){K(e)}).fail(function(){e.deferred.rejectWith(this,[t,n])})},q=function(e){var t=this,n=t.element,i=t.config;clearTimeout(t.startTimeout),t.isStarted||t.start(),t.strategy.stop(n,i,e)},Z=v.addNamespace(m,"dxFXStartAnimation"),Q=function(e){a.off(e.element,Z),a.on(e.element,Z,function(){de.stop(e.element)}),e.deferred.always(function(){a.off(e.element,Z)})},J=function(e,t){var n="css"===t.type?Y:U,i=c(!0,{},n,t),o=j(i),a=P(i),s={element:r(e),config:i,configurator:o,strategy:a,isSynchronous:a.isSynchronous,setup:$,start:X,stop:q,deferred:new x};return w(o.validateConfig)&&o.validateConfig(i),Q(s),s},ee=function(e,t){var n=r(e);if(!n.length)return(new x).resolve().promise();var i=J(n,t);return te(n,i),i.deferred.promise()},te=function(e,t){var n=ne(e);ie(e,n),n.push(t),oe(e)||ae(e,n)},ne=function(e){return e.data(A)||[]},ie=function(e,t){e.data(A,t)},re=function(e){e.removeData(A)},oe=function(e){return!!e.data(E)},ae=function e(t,n){if(n=ne(t),n.length){var i=n.shift();0===n.length&&re(t),se(i).done(function(){oe(t)||e(t)})}},se=function(e){return e.setup(),de.off||e.isSynchronous?e.start():e.startTimeout=setTimeout(function(){e.start()}),e.deferred.promise()},le=function(e,t){if(t&&t.position){var n=r(o),i=0,a=0,s=_.calculate(e,t.position),l=e.offset(),u=e.position();u.top>l.top&&(a=n.scrollTop()),u.left>l.left&&(i=n.scrollLeft()),c(t,{left:s.h.location-l.left+u.left-i,top:s.v.location-l.top+u.top-a}),delete t.position}},ce=function(e,t){d.each(t,function(t,n){try{e.css(t,u.isFunction(n)?n():n)}catch(e){}})},ue=function(e,t){var n=r(e),i=ne(n);d.each(i,function(e,t){t.config.delay=0,t.config.duration=0,t.isSynchronous=!0}),oe(n)||ae(n,i);var o=n.data(E);o&&o.stop(t),n.removeData(E),re(n)},de={off:!1,animationTypes:W,animate:ee,createAnimation:J,isAnimating:oe,stop:ue,_simulatedTransitionEndDelay:100};e.exports=de},function(e,t,n){var i=n(55),r=n(1).isString,o=n(3),a=n(11).inArray,s=n(218).getFormatter,l=n(219).getFormat,c=n(314).getParser,u=n(220),d=n(49),h=n(17);n(81);var p={shortdate:"M/d/y",shorttime:"h:mm a",longdate:"EEEE, MMMM d, y",longtime:"h:mm:ss a",monthandday:"MMMM d",monthandyear:"MMMM y",quarterandyear:"QQQ y",day:"d",year:"y",shortdateshorttime:"M/d/y, h:mm a",mediumdatemediumtime:"MMMM d, h:mm a",longdatelongtime:"EEEE, MMMM d, y, h:mm:ss a",month:"LLLL",shortyear:"yy",dayofweek:"EEEE",quarter:"QQQ",hour:"HH",minute:"mm",second:"ss",millisecond:"SSS","datetime-local":"yyyy-MM-ddTHH':'mm':'ss"},f={year:["y","yy","yyyy"],day:["d","dd"],month:["M","MM","MMM","MMMM"],hours:["H","HH","h","hh","ah"],minutes:["m","mm"],seconds:["s","ss"],milliseconds:["S","SS","SSS"]},g=i({_getPatternByFormat:function(e){return p[e.toLowerCase()]},_expandPattern:function(e){return this._getPatternByFormat(e)||e},formatUsesMonthName:function(e){return this._expandPattern(e).indexOf("MMMM")!==-1},formatUsesDayName:function(e){return this._expandPattern(e).indexOf("EEEE")!==-1},getFormatParts:function(e){var t=this._getPatternByFormat(e)||e,n=[];return o.each(t.split(/\W+/),function(e,t){o.each(f,function(e,i){a(t,i)>-1&&n.push(e)})}),n},getMonthNames:function(e){return u.getMonthNames(e)},getDayNames:function(e){return u.getDayNames(e)},getQuarterNames:function(e){return u.getQuarterNames(e)},getPeriodNames:function(e){return u.getPeriodNames(e)},getTimeSeparator:function(){return":"},is24HourFormat:function(e){for(var t=new Date(2017,0,20,11,0,0,0),n=new Date(2017,0,20,23,0,0,0),i=this.format(t,e),r=this.format(n,e),o=0;o<i.length;o++)if(i[o]!==r[o])return!isNaN(parseInt(i[o]))},format:function(e,t){if(e){if(!t)return e;var n;if("function"==typeof t)n=t;else if(t.formatter)n=t.formatter;else if(t=t.type||t,r(t))return t=p[t.toLowerCase()]||t,d.convertDigits(s(t,this)(e));if(n)return n(e)}},parse:function(e,t){var n,i,r,o=this;if(e){if(!t)return this.parse(e,"shortdate");if(t.parser)return t.parser(e);if("string"!=typeof t||p[t.toLowerCase()]){r=function(e){var n=o.format(e,t);return d.convertDigits(n,!0)};try{i=l(r)}catch(e){}}else i=t;if(i)return e=d.convertDigits(e,!0),c(i,this)(e);if(h.log("W0012"),n=new Date(e),n&&!isNaN(n.getTime()))return n}},firstDayOfWeekIndex:function(){return 0}});e.exports=g},,function(e,t,n){var i,r=n(171),o=n(12),a=n(5),s=n(172),l=new r,c=new s,u=function(){},d=function(){},h=t.setDataStrategy=function(e){c.fire(e),i=e;var t=i.cleanData;i.cleanData=function(e){u(e);var n=t.call(this,e);return d(e),n}};h({data:function(){var e=arguments[0],t=arguments[1],n=arguments[2];if(e){var i=l.get(e);return i||(i={},l.set(e,i)),void 0===t?i:2===arguments.length?i[t]:(i[t]=n,n)}},removeData:function(e,t){if(e)if(void 0===t)l.delete(e);else{var n=l.get(e);n&&delete n[t]}},cleanData:function(e){for(var t=0;t<e.length;t++)a.off(e[t]),l.delete(e[t])}}),t.setDataStrategy=h,t.getDataStrategy=function(){return i},t.data=function(){return i.data.apply(this,arguments)},t.strategyChanging=c,t.beforeCleanData=function(e){u=e},t.afterCleanData=function(e){d=e},t.cleanData=function(e){return i.cleanData.call(this,e)},t.removeData=function(e,t){return i.removeData.call(this,e,t)},t.cleanDataRecursive=function(e,t){if(o.isElementNode(e)){var n=e.getElementsByTagName("*");i.cleanData(n),t&&i.cleanData([e])}}},function(e,t,n){var i=n(102),r=n(17),o={},a=i(r.ERROR_MESSAGES,{E4000:"[DevExpress.data]: {0}",E4001:"Unknown aggregating function is detected: '{0}'",E4002:"Unsupported OData protocol version is used",E4003:"Unknown filter operation is used: {0}",E4004:"The thenby() method is called before the sortby() method",E4005:"Store requires a key expression for this operation",E4006:"ArrayStore 'data' option must be an array",E4007:"Compound keys cannot be auto-generated",E4008:"Attempt to insert an item with the a duplicated key",E4009:"Data item cannot be found",E4010:"CustomStore does not support creating queries",E4011:"Custom Store method is not implemented or is not a function: {0}",E4012:"Custom Store method returns an invalid value: {0}",E4013:"Local Store requires the 'name' configuration option is specified",E4014:"Unknown data type is specified for ODataStore: {0}",E4015:"Unknown entity name or alias is used: {0}",E4016:"The compileSetter(expr) method is called with 'self' passed as a parameter",E4017:"Keys cannot be modified",E4018:"The server has returned a non-numeric value in a response to an item count request",E4019:"Mixing of group operators inside a single group of filter expression is not allowed",E4020:"Unknown store type is detected: {0}",E4021:"The server response does not provide the totalCount value",E4022:"The server response does not provide the groupCount value",E4023:"Could not parse the following XML: {0}",W4000:"Data returned from the server has an incorrect structure",W4001:'The {0} field is listed in both "keyType" and "fieldTypes". The value of "fieldTypes" is used.',W4002:"Data loading has failed for some cells due to the following error: {0}"}),s=null,l=function(e){o.errorHandler&&o.errorHandler(e)};o={errors:a,errorHandler:s,_errorHandler:l},e.exports=o},function(e,t,n){var i=n(3).map,r=function(e){return void 0===e||null===e?"":String(e)},o=function(e){return r(e).charAt(0).toUpperCase()+e.substr(1)},a=function(e){return r(e).replace(/([a-z\d])([A-Z])/g,"$1 $2").split(/[\s_-]+/)},s=function(e){return i(a(e),function(e){return e.toLowerCase()}).join("-")},l=function(e){return s(e).replace(/-/g,"_")},c=function(e,t){return i(a(e),function(e,n){return e=e.toLowerCase(),(t||n>0)&&(e=o(e)),e}).join("")},u=function(e){return o(s(e).replace(/-/g," "))},d=function(e){return i(a(e),function(e){return o(e.toLowerCase())}).join(" ")},h=["0","1","2","3","4","5","6","7","8","9"],p=function(e){var t,n,i=[],r=!1,o=!1;for(t=0;t<e.length;t++)n=e.charAt(t),o=n===n.toUpperCase()&&"-"!==n&&")"!==n||n in h,"_"===n||"."===n?(n=" ",o=!0):0===t?(n=n.toUpperCase(),o=!0):!r&&o&&i.length>0&&i.push(" "),i.push(n),r=o;return i.join("")};t.dasherize=s,t.camelize=c,t.humanize=u,t.titleize=d,t.underscore=l,t.captionize=p},,function(e,t,n){var i=n(1),r=n(4),o=function(){var e=[new RegExp("&","g"),new RegExp('"',"g"),new RegExp("'","g"),new RegExp("<","g"),new RegExp(">","g")];return function(t){return String(t).replace(e[0],"&amp;").replace(e[1],"&quot;").replace(e[2],"&#39;").replace(e[3],"&lt;").replace(e[4],"&gt;")}}(),a=function(e){var t=r.splitPair(e),n=parseInt(t&&t[0],10),i=parseInt(t&&t[1],10);return isFinite(n)||(n=0),isFinite(i)||(i=n),{h:n,v:i}},s=function(e){var t=r.splitQuad(e),n=parseInt(t&&t[0],10),i=parseInt(t&&t[1],10),o=parseInt(t&&t[2],10),a=parseInt(t&&t[3],10);return isFinite(n)||(n=0),isFinite(i)||(i=n),isFinite(o)||(o=n),isFinite(a)||(a=i),{top:i,right:o,bottom:a,left:n}},l=function(){var e,t,n,r=arguments[0],o=[].slice.call(arguments).slice(1);if(i.isFunction(r))return r.apply(this,o);for(var a=0;a<o.length;a++)t=new RegExp("\\{"+a+"\\}","gm"),n=o[a],"string"===i.type(n)&&n.indexOf("$")>=0&&(e="$".replace("$","$$").length,n=n.replace("$",1===e?"$$$$":"$$")),r=r.replace(t,n);return r},c=function(){var e=function(e){return(e+"").replace(/([+*?.[^\]$(){}><|=!:])/g,"\\$1")};return function(t,n,i){return t.replace(new RegExp("("+e(n)+")","gi"),i)}}(),u=function(){var e=/\s/g;return function(t){return!t||!t.replace(e,"")}}();t.encodeHtml=o,t.pairToObject=a,t.quadToObject=s,t.format=l,t.replaceAll=c,t.isEmpty=u},function(e,t,n){var i=n(11).inArray,r=n(12),o=n(68),a=n(6),s=a.getNavigator(),l=n(14),c=n(83),u={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MsTransitionEnd",transition:"transitionend"},d=function(e){return!!c.styleProp(e)},h=function(){var e=l.real(),t=e.platform,n=e.version,r=n&&n[0]<4&&"android"===t,o=!r&&i(t,["ios","android","win"])>-1||e.mac;return o},p=function(e){if("text"===e)return!0;var t=r.createElement("input");try{return t.setAttribute("type",e),t.value="wrongValue",!t.value}catch(e){return!1}},f=function(e,t){return(e.hasProperty("ontouchstart")||!!t)&&!e.hasProperty("callPhantom")},g=function(e,t){return e.hasProperty("PointerEvent")||!!t.pointerEnabled},_=f(a,s.maxTouchPoints),m=g(a,s),v=!!s.maxTouchPoints||!!s.msMaxTouchPoints;t.touchEvents=_,t.pointerEvents=m,t.touch=_||m&&v,t.transition=o(function(){return d("transition")}),t.transitionEndEventName=o(function(){return u[c.styleProp("transition")]}),t.animation=o(function(){return d("animation")}),t.nativeScrolling=h(),t.styleProp=c.styleProp,t.stylePropPrefix=c.stylePropPrefix,t.supportProp=d,t.inputType=p},function(e,t,n){function i(e){return/^(or|\|\||\|)$/i.test(e)}function r(e){return/^(and|&&|&)$/i.test(e)}var o=n(1).isFunction,a=n(12),s=n(51).add,l=n(6),c=l.getWindow(),u=n(3).map,d=n(22).toComparable,h=n(7).Deferred,p=n(1),f="DEVEXTREME_XHR_ERROR_UNLOAD",g=function(e){return[e[0],e.length<3?"=":String(e[1]).toLowerCase(),e.length<2||e[e.length-1]]},_=function(e){return Array.isArray(e)||(e=[e]),u(e,function(e){var t={selector:o(e)||"string"==typeof e?e:e.getter||e.field||e.selector,desc:!(!e.desc&&"d"!==String(e.dir).charAt(0).toLowerCase())};return e.compare&&(t.compare=e.compare),t})},m=function(){var e,t={timeout:"Network connection timeout",error:"Unspecified network error",parsererror:"Unexpected server response"},n=function(e){var n=t[e];return n?n:e};return s(function(){a.listen(c,"beforeunload",function(){e=!0})}),function(t,i){return e?f:t.status<400?n(i):t.statusText}}(),v={count:{seed:0,step:function(e){return 1+e}},sum:{seed:0,step:function(e,t){return e+t}},min:{step:function(e,t){return t<e?t:e}},max:{step:function(e,t){return t>e?t:e}},avg:{seed:[0,0],step:function(e,t){return[e[0]+t,e[1]+1]},finalize:function(e){return e[1]?e[0]/e[1]:NaN}}},y=function(){var e,t=0,n=function(){0===t&&(e=new h),t++},i=function(){t--,t<1&&e.resolve()},r=function(){var n=0===t?(new h).resolve():e;return n.promise()},o=function(){t=0,e&&e.resolve()};return{obtain:n,release:i,promise:r,reset:o}}(),b=function(e,t,n){if(Array.isArray(e)){for(var i,r=u(t,function(e,t){return t}),o=0;o<r.length;o++)if(i=r[o],d(t[i],!0)!=d(n[i],!0))return!1;return!0}return d(t,!0)==d(n,!0)},x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",S=function(e){
12
12
  function t(e){return x.charAt(e)}Array.isArray(e)||(e=w(String(e)));for(var n="",i=0;i<e.length;i+=3){var r=e[i],o=e[i+1],a=e[i+2];n+=u([r>>2,(3&r)<<4|o>>4,isNaN(o)?64:(15&o)<<2|a>>6,isNaN(a)?64:63&a],t).join("")}return n},w=function(e){var t,n,i=[];for(n=0;n<e.length;n++)t=e.charCodeAt(n),t<128?i.push(t):t<2048?i.push(192+(t>>6),128+(63&t)):t<65536?i.push(224+(t>>12),128+(t>>6&63),128+(63&t)):t<2097152&&i.push(240+(t>>18),128+(t>>12&63),128+(t>>6&63),128+(63&t));return i},C=function(e){return"!"===e[0]&&Array.isArray(e[1])},k=function(e){return"and"===e||"or"===e},T=function(e){var t=e[0],n=e[1];return!!Array.isArray(t)||!(!p.isFunction(t)||!(Array.isArray(n)||p.isFunction(n)||k(n)))},E={XHR_ERROR_UNLOAD:f,normalizeBinaryCriterion:g,normalizeSortingInfo:_,errorMessageFromXhr:m,aggregators:v,keysEqual:b,isDisjunctiveOperator:i,isConjunctiveOperator:r,processRequestResultLock:y,isUnaryOperation:C,isGroupCriterion:T,base64_encode:S};e.exports=E},function(e,t,n){var i=n(144),r=n(349),o={array:i,remote:r},a=function(){var e=Array.isArray(arguments[0])?"array":"remote";return o[e].apply(this,arguments)};e.exports=a,e.exports.queryImpl=o},function(e,t,n){var i=n(26),r=n(59).compare,o=n(102),a=n(74)();if(a&&r(i.fn.jquery,[1,10])<0)throw o.Error("E0012");n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(342),n(343),n(344)},function(e,t,n){var i=n(2),r=n(5),o=n(348),a=n(21),s=n(0).extend,l=n(3).each,c=n(4).noop,u=n(1).isDefined,d=n(188),h=n(22).compileGetter,p=n(52).DataSource,f=n(263),g=n(7),_=g.when,m=g.Deferred,v="dxItemDeleting",y=-1,b=function(e){return e!==y},x=o.inherit({_setOptionsByReference:function(){this.callBase(),s(this._optionsByReference,{selectedItem:!0})},_getDefaultOptions:function(){return s(this.callBase(),{selectionMode:"none",selectionRequired:!1,selectionByClick:!0,selectedItems:[],selectedItemKeys:[],maxFilterLengthInRequest:1500,keyExpr:null,selectedIndex:y,selectedItem:null,onSelectionChanged:null,onItemReordered:null,onItemDeleting:null,onItemDeleted:null})},ctor:function(e,t){this._userOptions=t||{},this.callBase(e,t)},_init:function(){this._initEditStrategy(),this.callBase(),this._initKeyGetter(),this._initSelectionModule(),"multi"===this.option("selectionMode")&&this._showDeprecatedSelectionMode()},_initKeyGetter:function(){this._keyGetter=h(this.option("keyExpr"))},_getKeysByItems:function(e){return this._editStrategy.getKeysByItems(e)},_getItemsByKeys:function(e,t){return this._editStrategy.getItemsByKeys(e,t)},_getKeyByIndex:function(e){return this._editStrategy.getKeyByIndex(e)},_getIndexByKey:function(e){return this._editStrategy.getIndexByKey(e)},_getIndexByItemData:function(e){return this._editStrategy.getIndexByItemData(e)},_isKeySpecified:function(){return!(!this._dataSource||!this._dataSource.key())},_getCombinedFilter:function(){return this._dataSource&&this._dataSource.filter()},keyOf:function(e){var t=e,n=this._dataSource&&this._dataSource.store();return this.option("keyExpr")?t=this._keyGetter(e):n&&(t=n.keyOf(e)),t},_initSelectionModule:function(){var e=this,t=e._editStrategy.itemsGetter;this._selection=new f({mode:this.option("selectionMode"),maxFilterLengthInRequest:this.option("maxFilterLengthInRequest"),equalByReference:!this._isKeySpecified(),onSelectionChanged:function(t){(t.addedItemKeys.length||t.removedItemKeys.length)&&(e.option("selectedItems",e._getItemsByKeys(t.selectedItemKeys,t.selectedItems)),e._updateSelectedItems(t))},filter:e._getCombinedFilter.bind(e),totalCount:function(){var t=e.option("items"),n=e._dataSource;return n&&n.totalCount()>=0?n.totalCount():t.length},key:function(){return e.option("keyExpr")?e.option("keyExpr"):e._dataSource&&e._dataSource.key()},keyOf:e.keyOf.bind(e),load:function(t){if(e._dataSource){var n=e._dataSource.loadOptions();t.customQueryParams=n.customQueryParams,t.userData=e._dataSource._userData}var i=e._dataSource&&e._dataSource.store();return i?i.load(t).done(function(t){e._dataSource._applyMapFunction(t)}):(new m).resolve([])},dataFields:function(){return e._dataSource&&e._dataSource.select()},plainItems:t.bind(e._editStrategy)})},_initEditStrategy:function(){var e=d;this._editStrategy=new e(this)},_getSelectedItemIndices:function(e){var t=this,n=[];return e=e||this._selection.getSelectedItemKeys(),t._editStrategy.beginCache(),l(e,function(e,i){var r=t._getIndexByKey(i);b(r)&&n.push(r)}),t._editStrategy.endCache(),n},_initMarkup:function(){this._rendering=!0,this._dataSource&&this._dataSource.isLoading()||(this._syncSelectionOptions(),this._normalizeSelectedItems()),this.callBase();var e=this._getSelectedItemIndices();this._renderSelection(e,[])},_render:function(){this.callBase(),this._rendering=!1},_fireContentReadyAction:function(){this._rendering=!1,this._rendered=!0,this.callBase.apply(this,arguments)},_syncSelectionOptions:function(e){e=e||this._chooseSelectOption();var t,n,i;switch(e){case"selectedIndex":t=this._editStrategy.getItemDataByIndex(this.option("selectedIndex")),u(t)?(this._setOptionSilent("selectedItems",[t]),this._setOptionSilent("selectedItem",t),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionSilent("selectedItems",[]),this._setOptionSilent("selectedItemKeys",[]),this._setOptionSilent("selectedItem",null));break;case"selectedItems":if(n=this.option("selectedItems")||[],i=this._editStrategy.getIndexByItemData(n[0]),this.option("selectionRequired")&&!b(i))return void this._syncSelectionOptions("selectedIndex");this._setOptionSilent("selectedItem",n[0]),this._setOptionSilent("selectedIndex",i),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems(n));break;case"selectedItem":if(t=this.option("selectedItem"),i=this._editStrategy.getIndexByItemData(t),this.option("selectionRequired")&&!b(i))return void this._syncSelectionOptions("selectedIndex");u(t)?(this._setOptionSilent("selectedItems",[t]),this._setOptionSilent("selectedIndex",i),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionSilent("selectedItems",[]),this._setOptionSilent("selectedItemKeys",[]),this._setOptionSilent("selectedIndex",y));break;case"selectedItemKeys":var r=this.option("selectedItemKeys");if(this.option("selectionRequired")&&!b(this._getIndexByKey(r[0])))return void this._syncSelectionOptions("selectedIndex");this._selection.setSelection(r)}},_chooseSelectOption:function(){var e="selectedIndex",t=function(e){var t=this.option(e),n=u(t)&&t.length;return n||e in this._userOptions}.bind(this);return t("selectedItems")?e="selectedItems":t("selectedItem")?e="selectedItem":t("selectedItemKeys")&&(e="selectedItemKeys"),e},_compareKeys:function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0},_normalizeSelectedItems:function(){if("none"===this.option("selectionMode"))this._setOptionSilent("selectedItems",[]),this._syncSelectionOptions("selectedItems");else if("single"===this.option("selectionMode")){var e=this.option("selectedItems");if(e.length>1||!e.length&&this.option("selectionRequired")&&this.option("items")&&this.option("items").length){var t=this._selection.getSelectedItems(),n=void 0===e[0]?t[0]:e[0];void 0===n&&(n=this._editStrategy.itemsGetter()[0]),this.option("grouped")&&n&&n.items&&(n.items=[n.items[0]]),this._selection.setSelection(this._getKeysByItems([n])),this._setOptionSilent("selectedItems",[n]),this._syncSelectionOptions("selectedItems")}else this._selection.setSelection(this._getKeysByItems(e))}else{var i=this._getKeysByItems(this.option("selectedItems")),r=this._selection.getSelectedItemKeys();this._compareKeys(r,i)||this._selection.setSelection(i)}},_renderSelection:c,_itemClickHandler:function(e){this._createAction(function(e){this._itemSelectHandler(e.event)}.bind(this),{validatingTargetName:"itemElement"})({itemElement:i(e.currentTarget),event:e}),this.callBase.apply(this,arguments)},_itemSelectHandler:function(e){if(this.option("selectionByClick")){var t=e.currentTarget;this.isItemSelected(t)?this.unselectItem(e.currentTarget):this.selectItem(e.currentTarget)}},_selectedItemElement:function(e){return this._itemElements().eq(e)},_postprocessRenderItem:function(e){if("none"!==this.option("selectionMode")){var t=i(e.itemElement);this._isItemSelected(this._editStrategy.getNormalizedIndex(t))?(t.addClass(this._selectedItemClass()),this._setAriaSelected(t,"true")):this._setAriaSelected(t,"false")}},_updateSelectedItems:function(e){var t=this,n=e.addedItemKeys,i=e.removedItemKeys;if(t._rendered&&(n.length||i.length)){var r=t._selectionChangePromise;if(!t._rendering){var o,a,s=[],l=[];for(t._editStrategy.beginCache(),a=0;a<n.length;a++)o=t._getIndexByKey(n[a]),s.push(o),t._addSelection(o);for(a=0;a<i.length;a++)o=t._getIndexByKey(i[a]),l.push(o),t._removeSelection(o);t._editStrategy.endCache(),t._updateSelection(s,l)}_(r).done(function(){t._fireSelectionChangeEvent(e.addedItems,e.removedItems)})}},_fireSelectionChangeEvent:function(e,t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:e,removedItems:t})},_updateSelection:function(){this._renderSelection.apply(this,arguments)},_setAriaSelected:function(e,t){this.setAria("selected",t,e)},_removeSelection:function(e){var t=this._editStrategy.getItemElement(e);b(e)&&(t.removeClass(this._selectedItemClass()),this._setAriaSelected(t,"false"),r.triggerHandler(t,"stateChanged",!1))},_showDeprecatedSelectionMode:function(){a.log("W0001",this.NAME,"selectionMode: 'multi'","16.1","Use selectionMode: 'multiple' instead"),this.option("selectionMode","multiple")},_addSelection:function(e){var t=this._editStrategy.getItemElement(e);b(e)&&(t.addClass(this._selectedItemClass()),this._setAriaSelected(t,"true"),r.triggerHandler(t,"stateChanged",!0))},_isItemSelected:function(e){var t=this._getKeyByIndex(e);return this._selection.isItemSelected(t)},_optionChanged:function(e){if(this._cancelOptionChange!==e.name)switch(e.name){case"selectionMode":"multi"===e.value?this._showDeprecatedSelectionMode():this._invalidate();break;case"dataSource":(!e.value||Array.isArray(e.value)&&!e.value.length)&&this.option("selectedItemKeys",[]),this.callBase(e);break;case"selectedIndex":case"selectedItem":case"selectedItems":case"selectedItemKeys":this._syncSelectionOptions(e.name),this._normalizeSelectedItems();break;case"keyExpr":this._initKeyGetter();break;case"selectionRequired":this._normalizeSelectedItems();break;case"selectionByClick":case"onSelectionChanged":case"onItemDeleting":case"onItemDeleted":case"onItemReordered":case"maxFilterLengthInRequest":break;default:this.callBase(e)}},_clearSelectedItems:function(){this._setOptionSilent("selectedItems",[]),this._syncSelectionOptions("selectedItems")},_setOptionSilent:function(e,t){this._cancelOptionChange=e,this.option(e,t),this._cancelOptionChange=!1},_waitDeletingPrepare:function(e){if(e.data(v))return(new m).resolve().promise();e.data(v,!0);var t=new m,n={cancel:!1},i=this._itemEventHandler(e,"onItemDeleting",n,{excludeValidators:["disabled","readOnly"]});return _(i).always(function(r){var o=!i,a=!o&&"resolved"===i.state(),s=!!arguments.length,l=o||a&&!s||a&&r;_(g.fromPromise(n.cancel)).always(function(){e.data(v,!1)}).done(function(e){l&&!e?t.resolve():t.reject()}).fail(t.reject)}.bind(this)),t.promise()},_deleteItemFromDS:function(e){if(!this._dataSource)return(new m).resolve().promise();var t=new m,n=this.option("disabled"),i=this._dataSource.store();if(this.option("disabled",!0),!i.remove)throw a.Error("E1011");return i.remove(i.keyOf(this._getItemData(e))).done(function(e){void 0!==e?t.resolve():t.reject()}).fail(function(){t.reject()}),t.always(function(){this.option("disabled",n)}.bind(this)),t},_tryRefreshLastPage:function(){var e=new m;return this._isLastPage()||this.option("grouped")?e.resolve():this._refreshLastPage().done(function(){e.resolve()}),e.promise()},_refreshLastPage:function(){return this._expectLastItemLoading(),this._dataSource.load()},_updateSelectionAfterDelete:function(e){var t=this._getKeyByIndex(e);this._selection.deselect([t])},_updateIndicesAfterIndex:function(e){for(var t=this._itemElements(),n=e+1;n<t.length;n++)i(t[n]).data(this._itemIndexKey(),n-1)},_simulateOptionChange:function(e){var t=this.option(e);t instanceof p||this._optionChangedAction({name:e,fullName:e,value:t})},isItemSelected:function(e){return this._isItemSelected(this._editStrategy.getNormalizedIndex(e))},selectItem:function(e){if("none"!==this.option("selectionMode")){var t=this._editStrategy.getNormalizedIndex(e);if(b(t)){var n=this._getKeyByIndex(t);if(!this._selection.isItemSelected(n))if("single"===this.option("selectionMode"))this._selection.setSelection([n]);else{var i=this.option("selectedItemKeys");i.push(n),this._selection.setSelection(i)}}}},unselectItem:function(e){var t=this._editStrategy.getNormalizedIndex(e);if(b(t)){var n=this._selection.getSelectedItemKeys();if(!(this.option("selectionRequired")&&n.length<=1)){var i=this._getKeyByIndex(t);this._selection.isItemSelected(i)&&this._selection.deselect([i])}}},deleteItem:function(e){var t=this,n=new m,i=this._editStrategy.getItemElement(e),r=this._editStrategy.getNormalizedIndex(e),o=this._dataSource?"dataSource":"items",a=this._itemResponseWaitClass();return b(r)?this._waitDeletingPrepare(i).done(function(){i.addClass(a);var e=t._extendActionArgs(i);t._deleteItemFromDS(i).done(function(){t._updateSelectionAfterDelete(r),t._updateIndicesAfterIndex(r),t._editStrategy.deleteItemAtIndex(r),t._simulateOptionChange(o),t._itemEventHandler(i,"onItemDeleted",e,{beforeExecute:function(){i.detach()},excludeValidators:["disabled","readOnly"]}),t._renderEmptyMessage(),t._tryRefreshLastPage().done(function(){n.resolveWith(t)})}).fail(function(){i.removeClass(a),n.rejectWith(t)})}).fail(function(){n.rejectWith(t)}):n.rejectWith(t),n.promise()},reorderItem:function(e,t){var n=new m,i=this,r=this._editStrategy,o=r.getItemElement(e),a=r.getItemElement(t),s=r.getNormalizedIndex(e),l=r.getNormalizedIndex(t),c=this._dataSource?"dataSource":"items",u=b(s)&&b(l)&&s!==l;return u?n.resolveWith(this):n.rejectWith(this),n.promise().done(function(){a[r.itemPlacementFunc(s,l)](o),r.moveItemAtIndexToIndex(s,l),this._updateIndicesAfterIndex(s),i.option("selectedItems",i._getItemsByKeys(i._selection.getSelectedItemKeys(),i._selection.getSelectedItems())),"items"===c&&i._simulateOptionChange(c),i._itemEventHandler(o,"onItemReordered",{fromIndex:r.getIndex(s),toIndex:r.getIndex(l)},{excludeValidators:["disabled","readOnly"]})})}});e.exports=x},,,function(e,t,n){function i(e){var t=I(e);return k[t]||k[T[t]||a()]}function r(e,t){return T[e+"."+t]||E[e+"."+t]||T[e]}function o(e,t,n){return r(e+t,n)||r(e,n)}function a(e,t){if(!arguments.length)return D||r(C.current())||b;var n=I(t);return D=(e&&e.platform?o(I(e.platform),e.version,n):r(I(e),n))||D,this}function s(e,t){var n=e.indexOf(t);return n>0?{name:e.substring(0,n),scheme:e.substring(n+1)}:null}function l(e,t){var n=s(e,".")||s(e,"-")||{name:e},i=n.name,r=n.scheme;r?(T[i]=T[i]||t,T[i+"."+r]=T[i+"-"+r]=t):T[i]=t}function c(e,t){var n=I(e&&e.name);n&&(e.isDefault&&(b=n),l(n,n),k[n]=A(!0,{},i(t),f(e)))}function u(e,t){l(I(e),I(t))}function d(e,t){E[e]=t}function h(e,t,n,i){var r=n?n[t]:i;void 0!==r&&void 0===e[t]&&(e[t]=r)}function p(e,t,n,i){var r=n?n[t]:i;void 0!==r&&(e[t]=A(!0,{},r,e[t]))}function f(e){return e=A(!0,{loadingIndicator:{font:{}},"export":{font:{}},legend:{font:{},border:{}},title:{font:{}},tooltip:{font:{}},"chart:common":{},"chart:common:axis":{grid:{},minorGrid:{},tick:{},minorTick:{},title:{font:{}},label:{font:{}}},chart:{commonSeriesSettings:{candlestick:{}}},pie:{},polar:{},gauge:{scale:{tick:{},minorTick:{},label:{font:{}}}},barGauge:{},funnel:{},map:{background:{}},treeMap:{tile:{selectionStyle:{border:{}}},group:{border:{},selectionStyle:{border:{}},label:{font:{}}}},rangeSelector:{scale:{tick:{},minorTick:{},label:{font:{}}},chart:{}},sparkline:{},bullet:{}},e),h(e.loadingIndicator,"backgroundColor",e),h(e.chart.commonSeriesSettings.candlestick,"innerColor",null,e.backgroundColor),h(e.map.background,"color",null,e.backgroundColor),h(e.title.font,"color",null,e.primaryTitleColor),p(e.title,"subtitle",null,e.title),h(e.legend.font,"color",null,e.secondaryTitleColor),h(e.legend.border,"color",null,e.axisColor),g(e),O(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector","sparkline","bullet"],function(t,n){h(e[n],"redrawOnResize",e),h(e[n],"containerBackgroundColor",null,e.backgroundColor),p(e[n],"tooltip",e),p(e[n],"export",e)}),O(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector"],function(t,n){p(e[n],"loadingIndicator",e),p(e[n],"legend",e),p(e[n],"title",e)}),O(["chart","pie","polar"],function(t,n){p(e,n,null,e["chart:common"])}),O(["chart","polar"],function(t,n){e[n]=e[n]||{},p(e[n],"commonAxisSettings",null,e["chart:common:axis"])}),p(e.rangeSelector.chart,"commonSeriesSettings",e.chart),p(e.rangeSelector.chart,"dataPrepareSettings",e.chart),h(e.treeMap.group.border,"color",null,e.axisColor),h(e.treeMap.tile.selectionStyle.border,"color",null,e.primaryTitleColor),h(e.treeMap.group.selectionStyle.border,"color",null,e.primaryTitleColor),h(e.map.legend,"backgroundColor",e),_(e),e}function g(e){var t=e["chart:common:axis"],n="color";O([t,t.grid,t.minorGrid,t.tick,t.minorTick],function(t,i){h(i,n,null,e.axisColor)}),h(t.title.font,n,null,e.secondaryTitleColor),h(t.label.font,n,null,e.axisLabelColor),h(e.gauge.scale.label.font,n,null,e.axisLabelColor),h(e.gauge.scale.tick,n,null,e.backgroundColor),h(e.gauge.scale.minorTick,n,null,e.backgroundColor),h(e.rangeSelector.scale.label.font,n,null,e.axisLabelColor)}function _(e){var t=e.map;O(["area","line","marker"],function(e,n){p(t,"layer:"+n,null,t.layer)}),O(["dot","bubble","pie","image"],function(e,n){p(t,"layer:marker:"+n,null,t["layer:marker"])})}function m(e){var t=++M;e._cache=t,P[t]=e}function v(e){delete P[e._cache]}function y(){return O(P,function(){this.refresh()}),this}var b,x=n(0).extend,S=n(3).each,w=n(16),C=n(20),k={},T={},E={},A=x,O=S,I=w.normalizeEnum,D=null,M=0,P={};A(t,{currentTheme:a,registerTheme:c,getTheme:i,registerThemeAlias:u,registerThemeSchemeAlias:d,refreshTheme:y,addCacheItem:m,removeCacheItem:v})},function(e,t,n){var i=n(2),r=n(35),o=n(19),a=n(4),s=n(6),l=n(103).getDefaultAlignment,c=n(0).extend,u=n(28),d=n(156),h=n(70),p="dx-state-readonly",f="dx-invalid",g="dx-invalid-message",_="dx-invalid-message-auto",m="dx-invalid-message-always",v="dx-validation-target",y=100,b=u.inherit({_init:function(){this.callBase(),this.validationRequest=o();var e=this.$element();e&&r.data(e[0],v,this)},_getDefaultOptions:function(){return c(this.callBase(),{value:null,name:"",onValueChanged:null,readOnly:!1,isValid:!0,validationError:null,validationMessageMode:"auto",validationBoundary:void 0,validationMessageOffset:{h:0,v:0}})},_attachKeyboardEvents:function(){this.option("readOnly")||(this.callBase(),this._keyboardProcessor&&this._attachChildKeyboardEvents())},_attachChildKeyboardEvents:a.noop,_setOptionsByReference:function(){this.callBase(),c(this._optionsByReference,{validationError:!0})},_createValueChangeAction:function(){this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})},_suppressValueChangeAction:function(){this._valueChangeActionSuppressed=!0},_resumeValueChangeAction:function(){this._valueChangeActionSuppressed=!1},_initMarkup:function(){this._toggleReadOnlyState(),this._setSubmitElementName(this.option("name")),this.callBase(),this._renderValidationState()},_raiseValueChangeAction:function(e,t){this._valueChangeAction||this._createValueChangeAction(),this._valueChangeAction(this._valueChangeArgs(e,t))},_valueChangeArgs:function(e,t){return{value:e,previousValue:t,event:this._valueChangeEventInstance}},_saveValueChangeEvent:function(e){this._valueChangeEventInstance=e},_renderValidationState:function(){var e=this.option("isValid"),t=this.option("validationError"),n=this.option("validationMessageMode"),r=this.$element();r.toggleClass(f,!e),this.setAria("invalid",!e||void 0),s.hasWindow()&&(this._$validationMessage&&(this._$validationMessage.remove(),this._$validationMessage=null),!e&&t&&t.message&&(this._$validationMessage=i("<div>").addClass(g).html(t.message).appendTo(r),this._validationMessage=this._createComponent(this._$validationMessage,h,{integrationOptions:{},templatesRenderAsynchronously:!1,target:this._getValidationMessageTarget(),shading:!1,width:"auto",height:"auto",container:r,position:this._getValidationMessagePosition("below"),closeOnOutsideClick:!1,closeOnTargetScroll:!1,animation:null,visible:!0,propagateOutsideClick:!0,_checkParentVisibility:!1}),this._$validationMessage.toggleClass(_,"auto"===n).toggleClass(m,"always"===n),this._setValidationMessageMaxWidth()))},_setValidationMessageMaxWidth:function(){if(this._validationMessage){if(0===this._getValidationMessageTarget().outerWidth())return void this._validationMessage.option("maxWidth","100%");var e=Math.max(y,this._getValidationMessageTarget().outerWidth());this._validationMessage.option("maxWidth",e)}},_getValidationMessageTarget:function(){return this.$element()},_getValidationMessagePosition:function(e){var t=this.option("rtlEnabled"),n=l(t),i=this.option("validationMessageOffset"),r={h:i.h,v:i.v},o="below"===e?[" top"," bottom"]:[" bottom"," top"];return t&&(r.h=-r.h),"below"!==e&&(r.v=-r.v),{offset:r,boundary:this.option("validationBoundary"),my:n+o[0],at:n+o[1],collision:"none flip"}},_toggleReadOnlyState:function(){this.$element().toggleClass(p,!!this.option("readOnly")),this.setAria("readonly",this.option("readOnly")||void 0)},_dispose:function(){var e=this.$element()[0];r.data(e,v,null),this.callBase()},_setSubmitElementName:function(e){var t=this._getSubmitElement();t&&(e.length>0?t.attr("name",e):t.removeAttr("name"))},_getSubmitElement:function(){return null},_optionChanged:function(e){switch(e.name){case"onValueChanged":this._createValueChangeAction();break;case"isValid":case"validationError":case"validationBoundary":case"validationMessageMode":this._renderValidationState();break;case"readOnly":this._toggleReadOnlyState(),this._refreshFocusState();break;case"value":this._valueChangeActionSuppressed||(this._raiseValueChangeAction(e.value,e.previousValue),this._saveValueChangeEvent(void 0)),e.value!=e.previousValue&&this.validationRequest.fire({value:e.value,editor:this});break;case"width":this.callBase(e),this._setValidationMessageMaxWidth();break;case"name":this._setSubmitElementName(e.value);break;default:this.callBase(e)}},reset:function(){var e=this._getDefaultOptions();this.option("value",e.value)}}).include(d);e.exports=b},function(e,t,n){var i=n(55),r=n(11).inArray,o=n(4).escapeRegExp,a=n(3).each,s=n(1).isPlainObject,l=n(256),c=n(30),u=n(17),d=4,h=10,p=["currency","fixedpoint","exponential","percent","decimal"],f={1:"K",2:"M",3:"B",4:"T"},g={largenumber:"auto",thousands:1,millions:2,billions:3,trillions:4},_=i({numericFormats:p,defaultLargeNumberFormatPostfixes:f,_parseNumberFormatString:function(e){var t,n={};if(e&&"string"==typeof e)return t=e.toLowerCase().split(" "),a(t,function(e,t){r(t,p)>-1?n.formatType=t:t in g&&(n.power=g[t])}),n.power&&!n.formatType&&(n.formatType="fixedpoint"),n.formatType?n:void 0},_calculateNumberPower:function(e,t,n,i){var r=Math.abs(e),o=0;if(r>1)for(;r&&r>=t&&(void 0===i||o<i);)o++,r/=t;else if(r>0&&r<1)for(;r<1&&(void 0===n||o>n);)o--,r*=t;return o},_getNumberByPower:function(e,t,n){for(var i=e;t>0;)i/=n,t--;for(;t<0;)i*=n,t++;return i},_formatNumber:function(e,t,n){var i,r;return"auto"===t.power&&(t.power=this._calculateNumberPower(e,1e3,0,d)),t.power&&(e=this._getNumberByPower(e,t.power,1e3)),i=this.defaultLargeNumberFormatPostfixes[t.power]||"",r=this._formatNumberCore(e,t.formatType,n),r=r.replace(/(\d|.$)(\D*)$/,"$1"+i+"$2")},_formatNumberExponential:function(e,t){var n,i=this._calculateNumberPower(e,h),r=this._getNumberByPower(e,i,h);return void 0===t.precision&&(t.precision=1),r.toFixed(t.precision||0)>=h&&(i++,r/=h),n=(i>=0?"+":"")+i.toString(),this._formatNumberCore(r,"fixedpoint",t)+"E"+n},_addZeroes:function(e,t){var n=Math.pow(10,t),i=e<0?"-":"";e=(Math.abs(e)*n>>>0)/n;for(var r=e.toString();r.length<t;)r="0"+r;return i+r},_addGroupSeparators:function(e){var t=e.toString().split(".");return t[0].replace(/\B(?=(\d{3})+(?!\d))/g,c().thousandsSeparator)+(t[1]?c().decimalSeparator+t[1]:"")},_formatNumberCore:function(e,t,n){return"exponential"===t?this._formatNumberExponential(e,n):("decimal"!==t&&null!==n.precision&&(n.precision=n.precision||0),"percent"===t&&(e=100*e),void 0!==n.precision&&(e="decimal"===t?this._addZeroes(e,n.precision):null===n.precision?e.toPrecision():e.toFixed(n.precision)),e="decimal"!==t?this._addGroupSeparators(e):e.toString().replace(".",c().decimalSeparator),"percent"===t&&(e+="%"),e)},_normalizeFormat:function(e){return e?"function"==typeof e?e:(s(e)||(e={type:e}),e):{}},_getSeparators:function(){return{decimalSeparator:this.getDecimalSeparator(),thousandsSeparator:this.getThousandsSeparator()}},getThousandsSeparator:function(){return this.format(1e3,"fixedPoint")[1]},getDecimalSeparator:function(){return this.format(1.2,{type:"fixedPoint",precision:1})[1]},convertDigits:function(e,t){var n=this.format(90,"decimal");if("string"!=typeof e||"0"===n[1])return e;var i=t?n[1]:"0",r=t?"0":n[1],o=t?n[0]:"9",a=new RegExp("["+i+"-"+o+"]","g");return e.replace(a,function(e){return String.fromCharCode(e.charCodeAt(0)+(r.charCodeAt(0)-i.charCodeAt(0)))})},getSign:function(e,t){if("-"===e.replace(/[^0-9-]/g,"").charAt(0))return-1;if(!t)return 1;var n=this._getSeparators(),i=new RegExp("[0-9"+o(n.decimalSeparator+n.thousandsSeparator)+"]+","g"),r=this.format(-1,t).replace(i,"1"),a=e.replace(i,"1");return a===r?-1:1},format:function(e,t){if("number"!=typeof e)return e;if("number"==typeof t)return e;if(t=t&&t.formatter||t,"function"==typeof t)return t(e);t=this._normalizeFormat(t),t.type||(t.type="decimal");var n=this._parseNumberFormatString(t.type);return n?this._formatNumber(e,n,t):this.convertDigits(l.getFormatter(t.type,this._getSeparators())(e))},parse:function(e,t){if(e){if(t&&t.parser)return t.parser(e);e=this.convertDigits(e,!0),t&&"string"!=typeof t&&u.log("W0011");var n=this.getDecimalSeparator(),i=new RegExp("[^0-9"+o(n)+"]","g"),r=e.replace(i,"").replace(n,".").replace(/\.$/g,""),a=+r;return r=r.replace(/^\./g,""),r.length>15?NaN:""===r?null:a*this.getSign(e,t)}}});e.exports=_},function(e,t,n){var i=n(10),r=i.inherit({ctor:function(e){e&&(e=String(e)),this._value=this._normalize(e||this._generate())},_normalize:function(e){for(e=e.replace(/[^a-f0-9]/gi,"").toLowerCase();e.length<32;)e+="0";return[e.substr(0,8),e.substr(8,4),e.substr(12,4),e.substr(16,4),e.substr(20,12)].join("-")},_generate:function(){for(var e="",t=0;t<32;t++)e+=Math.round(15*Math.random()).toString(16);return e},toString:function(){return this._value},valueOf:function(){return this._value},toJSON:function(){return this._value}});e.exports=r},function(e,t,n){var i=n(12),r=n(55),o=n(6),a=n(68),s=[],l=function(){return"complete"===i.getReadyState()||"loading"!==i.getReadyState()&&!i.getDocumentElement().doScroll},c=a(function(){var e=i.listen(i.getDocument(),"DOMContentLoaded",function(){u.fire(),e()})}),u={add:function(e){var t=o.hasWindow();t&&l()?e():(s.push(e),t&&c())},fire:function(){s.forEach(function(e){return e()}),s=[]}};e.exports=r(u)},function(e,t,n){function i(){this._counter=-1,this._deferreds={}}function r(e){return"pending"===e.state()}function o(e,t){function n(){var t={};return h.each(["useDefaultSearch","key","load","loadMode","cacheRawData","byKey","lookup","totalCount","insert","update","remove"],function(){t[this]=e[this],delete e[this]}),new v(t)}function i(e){var t=e.type;return delete e.type,_.create(t,e)}function r(e){return new v({load:function(){return p.sendRequest({url:e,dataType:"json"})},loadMode:t&&t.fromUrlLoadMode})}var o;return"string"==typeof e&&(e={paginate:!1,store:r(e)}),void 0===e&&(e=[]),e=Array.isArray(e)||e instanceof _?{store:e}:u({},e),void 0===e.store&&(e.store=[]),o=e.store,"load"in e?o=n():Array.isArray(o)?o=new m(o):f.isPlainObject(o)&&(o=i(u({},o))),e.store=o,e}function a(e){switch(e.length){case 0:return;case 1:return e[0]}return[].slice.call(e)}function s(e){return function(){var t=a(arguments);return void 0===t?this._storeLoadOptions[e]:void(this._storeLoadOptions[e]=t)}}function l(e,t,n){function i(e,n){return Array.isArray(e)?n?r(e,n):h.map(e,t):e}function r(e,t){return h.map(e,function(e){var n={key:e.key,items:i(e.items,t-1)};return"aggregates"in e&&(n.aggregates=e.aggregates),n})}return i(e,n?g.normalizeSortingInfo(n).length:0)}var c=n(10),u=n(0).extend,d=n(4),h=n(3),p=n(72),f=n(1),g=n(41),_=n(91),m=n(79),v=n(158),y=n(53),b=n(36).errors,x=n(11),S=n(173),w=n(7),C=w.when,k=w.Deferred,T=f.isString,E=f.isNumeric,A=f.isBoolean,O=f.isDefined,I="canceled";i.prototype.constructor=i,i.prototype.add=function(e){return this._counter+=1,this._deferreds[this._counter]=e,this._counter},i.prototype.remove=function(e){return delete this._deferreds[e]},i.prototype.cancel=function(e){return e in this._deferreds&&(this._deferreds[e].reject(I),!0)},i.prototype.cancelAll=function(){for(;this._counter>-1;)this.cancel(this._counter),this._counter--};var D=c.inherit({ctor:function(e){var t=this;e=o(e),this._store=e.store,this._storeLoadOptions=this._extractLoadOptions(e),this._mapFunc=e.map,this._postProcessFunc=e.postProcess,this._pageIndex=void 0!==e.pageIndex?e.pageIndex:0,this._pageSize=void 0!==e.pageSize?e.pageSize:20,this._loadingCount=0,this._loadQueue=this._createLoadQueue(),this._searchValue="searchValue"in e?e.searchValue:null,this._searchOperation=e.searchOperation||"contains",this._searchExpr=e.searchExpr,this._paginate=e.paginate,h.each(["onChanged","onLoadError","onLoadingChanged","onCustomizeLoadResult","onCustomizeStoreLoadOptions"],function(n,i){i in e&&t.on(i.substr(2,1).toLowerCase()+i.substr(3),e[i])}),this._operationManager=new i,this._init()},_init:function(){this._items=[],this._userData={},this._totalCount=-1,this._isLoaded=!1,O(this._paginate)||(this._paginate=!this.group()),this._isLastPage=!this._paginate},dispose:function(){this._disposeEvents(),delete this._store,this._delayedLoadTask&&this._delayedLoadTask.abort(),this._operationManager.cancelAll(),this._disposed=!0},_extractLoadOptions:function(e){var t={},n=["sort","filter","select","group","requireTotalCount"],i=this._store._customLoadOptions();return i&&(n=n.concat(i)),h.each(n,function(){t[this]=e[this]}),t},loadOptions:function(){return this._storeLoadOptions},items:function(){return this._items},pageIndex:function(e){return E(e)?(this._pageIndex=e,void(this._isLastPage=!this._paginate)):this._pageIndex},paginate:function(e){return A(e)?void(this._paginate!==e&&(this._paginate=e,this.pageIndex(0))):this._paginate},pageSize:function(e){return E(e)?void(this._pageSize=e):this._pageSize},isLastPage:function(){return this._isLastPage},sort:s("sort"),filter:function(){var e=a(arguments);return void 0===e?this._storeLoadOptions.filter:(this._storeLoadOptions.filter=e,void this.pageIndex(0))},group:s("group"),select:s("select"),requireTotalCount:function(e){return A(e)?void(this._storeLoadOptions.requireTotalCount=e):this._storeLoadOptions.requireTotalCount},searchValue:function(e){return arguments.length<1?this._searchValue:(this._searchValue=e,void this.pageIndex(0))},searchOperation:function(e){return T(e)?(this._searchOperation=e,void this.pageIndex(0)):this._searchOperation},searchExpr:function(e){var t=arguments.length;return 0===t?this._searchExpr:(t>1&&(e=[].slice.call(arguments)),this._searchExpr=e,void this.pageIndex(0))},store:function(){return this._store},key:function(){return this._store&&this._store.key()},totalCount:function(){return this._totalCount},isLoaded:function(){return this._isLoaded},isLoading:function(){return this._loadingCount>0},beginLoading:function(){
13
13
  this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_createLoadQueue:function(){return S.create()},_changeLoadingCount:function(e){var t,n=this.isLoading();this._loadingCount+=e,t=this.isLoading(),n^t&&this.fireEvent("loadingChanged",[t])},_scheduleLoadCallbacks:function(e){var t=this;t.beginLoading(),e.always(function(){t.endLoading()})},_scheduleFailCallbacks:function(e){var t=this;e.fail(function(){arguments[0]!==I&&t.fireEvent("loadError",arguments)})},_scheduleChangedCallbacks:function(e){var t=this;e.done(function(){t.fireEvent("changed")})},loadSingle:function(e,t){function n(){return a instanceof v&&!a._byKeyViaLoad()}var i=this,r=new k,o=this.key(),a=this._store,s=this._createStoreLoadOptions(),l=function(e){!O(e)||x.isEmpty(e)?r.reject(new b.Error("E4009")):(Array.isArray(e)||(e=[e]),r.resolve(i._applyMapFunction(e)[0]))};return this._scheduleFailCallbacks(r),arguments.length<2&&(t=e,e=o),delete s.skip,delete s.group,delete s.refresh,delete s.pageIndex,delete s.searchString,function(){return e===o||n()?a.byKey(t,s):(s.take=1,s.filter=s.filter?[s.filter,[e,t]]:[e,t],a.load(s))}().fail(r.reject).done(l),r.promise()},load:function(){function e(){if(!n._disposed&&r(i))return n._loadFromStore(t,i)}var t,n=this,i=new k;return this._scheduleLoadCallbacks(i),this._scheduleFailCallbacks(i),this._scheduleChangedCallbacks(i),t=this._createLoadOperation(i),this.fireEvent("customizeStoreLoadOptions",[t]),this._loadQueue.add(function(){return"number"==typeof t.delay?n._delayedLoadTask=d.executeAsync(e,t.delay):e(),i.promise()}),i.promise({operationId:t.operationId})},_createLoadOperation:function(e){var t=this._operationManager.add(e),n=this._createStoreLoadOptions();return e.always(function(){this._operationManager.remove(t)}.bind(this)),{operationId:t,storeLoadOptions:n}},reload:function(){var e=this.store();return e instanceof v&&e.clearRawDataCache(),this._init(),this.load()},cancel:function(e){return this._operationManager.cancel(e)},_addSearchOptions:function(e){this._disposed||(this.store()._useDefaultSearch?this._addSearchFilter(e):(e.searchOperation=this._searchOperation,e.searchValue=this._searchValue,e.searchExpr=this._searchExpr))},_createStoreLoadOptions:function(){var e=u({},this._storeLoadOptions);return this._addSearchOptions(e),this._paginate&&this._pageSize&&(e.skip=this._pageIndex*this._pageSize,e.take=this._pageSize),e.userData=this._userData,e},_addSearchFilter:function(e){var t=this._searchValue,n=this._searchOperation,i=this._searchExpr,r=[];t&&(i||(i="this"),Array.isArray(i)||(i=[i]),h.each(i,function(e,i){r.length&&r.push("or"),r.push([i,n,t])}),e.filter?e.filter=[r,e.filter]:e.filter=r)},_loadFromStore:function(e,t){function n(n,o){function a(){var r;n&&!Array.isArray(n)&&n.data&&(o=n,n=n.data),Array.isArray(n)||(n=[n]),r=u({data:n,extra:o},e),i.fireEvent("customizeLoadResult",[r]),C(r.data).done(function(e){r.data=e,i._processStoreLoadResult(r,t)}).fail(t.reject)}i._disposed||r(t)&&a()}var i=this;return e.data?(new k).resolve(e.data).done(n):this.store().load(e.storeLoadOptions).done(n).fail(t.reject)},_processStoreLoadResult:function(e,t){function n(){return r._isLoaded=!0,r._totalCount=isFinite(a.totalCount)?a.totalCount:-1,t.resolve(o,a)}function i(){r.store().totalCount(s).done(function(e){a.totalCount=e,n()}).fail(t.reject)}var r=this,o=e.data,a=e.extra,s=e.storeLoadOptions;r._disposed||(o=r._applyPostProcessFunction(r._applyMapFunction(o)),f.isPlainObject(a)||(a={}),r._items=o,(!o.length||!r._paginate||r._pageSize&&o.length<r._pageSize)&&(r._isLastPage=!0),s.requireTotalCount&&!isFinite(a.totalCount)?i():n())},_applyMapFunction:function(e){return this._mapFunc?l(e,this._mapFunc,this.group()):e},_applyPostProcessFunction:function(e){return this._postProcessFunc?this._postProcessFunc(e):e}}).include(y);t.DataSource=D,t.normalizeDataSourceOptions=o},function(e,t,n){var i=n(318),r=n(3).each,o=n(1).isPlainObject;e.exports={ctor:function(){this._events={},this.setEventsStrategy(new i(this))},setEventsStrategy:function(e){"function"==typeof e&&(e=e(this)),this._eventsStrategy=e},hasEvent:function(e){return this._eventsStrategy.hasEvent(e)},fireEvent:function(e,t){return this._eventsStrategy.fireEvent(e,t),this},on:function(e,t){return o(e)?r(e,function(e,t){this.on(e,t)}.bind(this)):this._eventsStrategy.on(e,t),this},off:function(e,t){return this._eventsStrategy.off(e,t),this},_disposeEvents:function(){this._eventsStrategy.dispose()}}},function(e,t,n){var i=n(1),r=n(71),o=function(){function e(){}return function(t){return e.prototype=t,new e}}(),a=function(e,t){var n,r,o=[];for(n in e)e.hasOwnProperty(n)&&o.push(n);for(o.sort(function(e,t){var n=i.isNumeric(e),r=i.isNumeric(t);return n&&r?e-t:n&&!r?-1:!n&&r?1:e<t?-1:e>t?1:0}),r=0;r<o.length;r++)n=o[r],t(n,e[n])},s=function(e,t,n,i){!i&&r.isWrapped(e[t])?r.assign(e[t],n):e[t]=n},l=function e(t,n,r,o){var a,l;for(var c in n)if(a=t[c],l=n[c],"__proto__"!==c&&t!==l){if(i.isPlainObject(l)){var u=r?i.isObject(a):i.isPlainObject(a);l=e(u?a:{},l,r,o)}void 0!==l&&a!==l&&s(t,c,l,o)}return t};t.clone=o,t.orderEach=a,t.deepExtendArraySafe=l},function(e,t,n){e.exports=function(e){var t=n(0).extend,i=n(1).isFunction,r=n(3).each,o=n(10),a=o.inherit(e),s=a,l=new s(e),c={},u=function(t,n){r(t,function(t){i(l[t])?!n&&e[t]||(e[t]=function(){return l[t].apply(e,arguments)}):(n&&(c[t]=e[t]),e[t]=l[t])})};return u(e,!0),e.inject=function(e){s=s.inherit(e),l=new s,u(e)},e.resetInjection=function(){t(e,c),s=a,l=new a},e}},function(e,t){e.exports=window.ko},function(e,t,n){var i=n(2),r=n(12),o=function(e,t){if(!a(e))return!1;var n=e.nodeName.toLowerCase(),i=!isNaN(t),r=e.disabled,o=/^(input|select|textarea|button|object|iframe)$/.test(n),s="a"===n,l=!0,c=e.isContentEditable;return l=o||c?!r:s?e.href||i:i},a=function(e){var t=i(e);return t.is(":visible")&&"hidden"!==t.css("visibility")&&"hidden"!==t.parents().css("visibility")};e.exports={focusable:function(e,t){return o(t,i(t).attr("tabIndex"))},tabbable:function(e,t){var n=i(t).attr("tabIndex");return(isNaN(n)||n>=0)&&o(t,n)},focused:function(e){var t=i(e).get(0);return r.getActiveElement()===t}}},function(e,t,n){var i=n(2),r=n(5),o=n(6),a=n(0).extend,s=n(30),l=n(17),c=n(13).getPublicElement,u=n(121),d=n(4),h=n(3).each,p=n(1),f=n(11).inArray,g=n(100),_=n(35),m=n(115),v=m.abstract,y="dx-rtl",b="dx-visibility-change-handler",x="VisibilityChange",S=m.inherit({_getDefaultOptions:function(){return a(this.callBase(),{width:void 0,height:void 0,rtlEnabled:s().rtlEnabled,elementAttr:{},disabled:!1,integrationOptions:{}})},ctor:function(e,t){this._$element=i(e),g.attachInstanceToElement(this._$element,this,this._dispose),this.callBase(t)},_visibilityChanged:v,_dimensionChanged:v,_init:function(){this.callBase(),this._attachWindowResizeCallback()},_setOptionsByDevice:function(e){this.callBase([].concat(this.constructor._classCustomRules||[],e||[]))},_isInitialOptionValue:function(e){var t=this.constructor._classCustomRules&&this._convertRulesToOptions(this.constructor._classCustomRules).hasOwnProperty(e);return!t&&this.callBase(e)},_attachWindowResizeCallback:function(){if(this._isDimensionChangeSupported()){var e=this._windowResizeCallBack=this._dimensionChanged.bind(this);u.add(e)}},_isDimensionChangeSupported:function(){return this._dimensionChanged!==v},_renderComponent:function(){this._initMarkup(),o.hasWindow()&&this._render()},_initMarkup:function(){this._renderElementAttributes(),this._toggleRTLDirection(this.option("rtlEnabled")),this._renderVisibilityChange(),this._renderDimensions()},_render:function(){this._attachVisibilityChangeHandlers()},_renderElementAttributes:function(){var e=a({},this.option("elementAttr")),t=e.class;delete e.class,this.$element().attr(e).addClass(t)},_renderVisibilityChange:function(){this._isDimensionChangeSupported()&&this._attachDimensionChangeHandlers(),this._isVisibilityChangeSupported()&&this.$element().addClass(b)},_renderDimensions:function(){var e=this.$element(),t=e.get(0),n=this._getOptionValue("width",t),i=this._getOptionValue("height",t);this._isCssUpdateRequired(t,i,n)&&e.css({width:n,height:i})},_isCssUpdateRequired:function(e,t,n){return!!(n||t||e.style.width||e.style.height)},_attachDimensionChangeHandlers:function(){var e=this,t="dxresize."+this.NAME+x;r.off(e.$element(),t),r.on(e.$element(),t,function(){e._dimensionChanged()})},_attachVisibilityChangeHandlers:function(){if(this._isVisibilityChangeSupported()){var e=this,t="dxhiding."+this.NAME+x,n="dxshown."+this.NAME+x;e._isHidden=!e._isVisible(),r.off(e.$element(),t),r.on(e.$element(),t,function(){e._checkVisibilityChanged("hiding")}),r.off(e.$element(),n),r.on(e.$element(),n,function(){e._checkVisibilityChanged("shown")})}},_isVisible:function(){return this.$element().is(":visible")},_checkVisibilityChanged:function(e){"hiding"===e&&this._isVisible()&&!this._isHidden?(this._visibilityChanged(!1),this._isHidden=!0):"shown"===e&&this._isVisible()&&this._isHidden&&(this._isHidden=!1,this._visibilityChanged(!0))},_isVisibilityChangeSupported:function(){return this._visibilityChanged!==v&&o.hasWindow()},_clean:d.noop,_modelByElement:function(){var e=this.option("modelByElement")||d.noop;return e(this.$element())},_invalidate:function(){if(!this._updateLockCount)throw l.Error("E0007");this._requireRefresh=!0},_refresh:function(){this._clean(),this._renderComponent()},_dispose:function(){this.callBase(),this._clean(),this._detachWindowResizeCallback()},_detachWindowResizeCallback:function(){this._isDimensionChangeSupported()&&u.remove(this._windowResizeCallBack)},_toggleRTLDirection:function(e){this.$element().toggleClass(y,e)},_createComponent:function(e,t,n){var r=this;n=n||{};var o=d.grep(["rtlEnabled","disabled"],function(e){return!(e in n)}),s=r.option("nestedComponentOptions")||d.noop;r._extendConfig(n,a({integrationOptions:this.option("integrationOptions"),rtlEnabled:this.option("rtlEnabled"),disabled:this.option("disabled")},s(this)));var l;if(p.isString(t)){var c=i(e)[t](n);l=c[t]("instance")}else e&&(l=t.getInstance(e),l?l.option(n):l=new t(e,n));if(l){var u=function(e){f(e.name,o)>=0&&l.option(e.name,e.value)};r.on("optionChanged",u),l.on("disposing",function(){r.off("optionChanged",u)})}return l},_extendConfig:function(e,t){h(t,function(t,n){e[t]=e.hasOwnProperty(t)?e[t]:n})},_defaultActionConfig:function(){return a(this.callBase(),{context:this._modelByElement(this.$element())})},_defaultActionArgs:function(){var e=this._modelByElement(this.$element());return a(this.callBase(),{element:this.element(),model:e})},_optionChanged:function(e){switch(e.name){case"width":case"height":this._renderDimensions();break;case"rtlEnabled":this._invalidate();break;case"elementAttr":this._renderElementAttributes();break;case"disabled":case"integrationOptions":break;default:this.callBase(e)}},_removeAttributes:function(e){for(var t=e.attributes.length-1;t>=0;t--){var n=e.attributes[t];if(!n)return;var i=n.name;0!==i.indexOf("aria-")&&i.indexOf("dx-")===-1&&"role"!==i&&"style"!==i&&"tabindex"!==i||e.removeAttribute(i)}},_removeClasses:function(e){var t=e.className.split(" ").filter(function(e){return 0!==e.lastIndexOf("dx-",0)});e.className=t.join(" ")},endUpdate:function(){var e=!this._initializing&&!this._initialized;this.callBase.apply(this,arguments),this._updateLockCount||(e?this._renderComponent():this._requireRefresh&&(this._requireRefresh=!1,this._refresh()))},$element:function(){return this._$element},element:function(){return c(this.$element())},dispose:function(){var e=this.$element().get(0);_.cleanDataRecursive(e,!0),e.textContent="",this._removeAttributes(e),this._removeClasses(e)}});S.getInstance=function(e){return g.getInstanceByElement(i(e),this)},S.defaultOptions=function(e){this._classCustomRules=this._classCustomRules||[],this._classCustomRules.push(e)},e.exports=S},function(e,t,n){t.compare=function(e,t,n){function i(e){return"string"==typeof e?e.split("."):"number"==typeof e?[e]:e}e=i(e),t=i(t);var r=Math.max(e.length,t.length);isFinite(n)&&(r=Math.min(r,n));for(var o=0;o<r;o++){var a=parseInt(e[o]||0,10),s=parseInt(t[o]||0,10);if(a<s)return-1;if(a>s)return 1}return 0}},,function(e,t,n){var i=n(3).each,r=n(107),o=function(e,t){var n={};"noBubble"in t&&(n.noBubble=t.noBubble),"bindType"in t&&(n.bindType=t.bindType),"delegateType"in t&&(n.delegateType=t.delegateType),i(["setup","teardown","add","remove","trigger","handle","_default","dispose"],function(e,i){t[i]&&(n[i]=function(){var e=[].slice.call(arguments);return e.unshift(this),t[i].apply(t,e)})}),r.fire(e,n)};o.callbacks=r,e.exports=o},function(e,t,n){var i=n(102),r=n(17);e.exports=i(r.ERROR_MESSAGES,{E3001:"Routing rule is not found for the '{0}' URI.",E3002:"The passed object cannot be formatted into a URI string by the application's router. An appropriate route should be registered.",E3003:"Unable to navigate. Application is being initialized.",E3004:"Cannot execute the command: {0}.",E3005:"The '{0}' command {1} is not registered in the application's command mapping. Go to http://dxpr.es/1bTjfj1 for more details.",E3006:"Unknown navigation target: '{0}'. Use the 'current', 'back' or 'blank' values.",E3007:"Error while restoring the application state. The state has been cleared. Refresh the page.",E3008:"Unable to go back.",E3009:"Unable to go forward.",E3010:"The command's 'id' option should be specified.\r\nProcessed markup: {0}\n",E3011:"Layout controller cannot be resolved. There are no appropriate layout controllers for the current context. Check browser console for details.",E3012:"Layout controller cannot be resolved. Two or more layout controllers suit the current context. Check browser console for details.",E3013:"The '{0}' template with the '{1}' name is not found. Make sure the case is correct in the specified view name and the template fits the current context.",E3014:"All the children of the dxView element should be either of the dxCommand or dxContent type.\r\nProcessed markup: {0}",E3015:"The 'exec' method should be called before the 'finalize' method.",E3016:"Unknown transition type '{0}'.",E3018:"Unable to parse options.\nMessage: {0};\nOptions value: {1}.",E3019:"View templates should be updated according to the 13.1 changes. Go to http://dxpr.es/15ikrJA for more details.",E3020:"Concurrent templates are found:\r\n{0}Target device:\r\n{1}.",E3021:"Remote template cannot be loaded.\r\nUrl:{0}\r\nError:{1}.",E3022:"Cannot initialize the HtmlApplication component.",E3023:"Navigation item is not found",E3024:"Layout controller is not initialized",W3001:"A view with the '{0}' key doesn't exist.",W3002:"A view with the '{0}' key has already been released.",W3003:"Layout resolving context:\n{0}\nAvailable layout controller registrations:\n{1}\n",W3004:"Layout resolving context:\n{0}\nConcurent layout controller registrations for the context:\n{1}\n",W3005:'Direct hash-based navigation is detected in a mobile application. Use data-bind="dxAction: url" instead of href="#url" to avoid navigation issues.\nFound markup:\n{0}\n'})},function(e,t,n){var i=n(62),r=n(13),o=n(8),a=n(177).MarkupComponent;n(109);var s=a.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null,title:null})},ctor:function(){this._id=r.uniqueId(),this.callBase.apply(this,arguments)},_render:function(){this.callBase(),this.element().addClass("dx-view"),this.element().attr("dx-data-template-id",this._id)},getId:function(){return this._id}}),l=a.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null})},_render:function(){this.callBase(),this.element().addClass("dx-layout")}}),c=a.inherit({_setDefaultOptions:function(){this.callBase(),this.option({viewName:null})},_render:function(){this.callBase(),this.element().addClass("dx-view-placeholder")}}),u=function(e,t,n,i){"absolute"===i?e.addClass("dx-transition-absolute"):e.addClass("dx-transition-static"),e.addClass("dx-transition").addClass("dx-transition-"+n).addClass("dx-transition-"+t).attr("data-dx-transition-type",t).attr("data-dx-transition-name",n)},d=function(e){e.addClass("dx-transition-inner-wrapper")},h=a.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null,type:void 0,animation:"slide"})},_render:function(){this.callBase();var e=this.element();u(e,this.option("type")||this.option("animation"),this.option("name"),"absolute"),e.wrapInner("<div>"),d(e.children()),this.option("type")&&i.log("W0003","dxTransition","type","15.1","Use the 'animation' property instead")},_clean:function(){this.callBase(),this.element().empty()}}),p=a.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null,transition:void 0,animation:"none",contentCssPosition:"absolute"})},_render:function(){this.callBase();var e=this.element();e.addClass("dx-content-placeholder").addClass("dx-content-placeholder-"+this.option("name")),e.attr("data-dx-content-placeholder-name",this.option("name")),u(e,this.option("transition")||this.option("animation"),this.option("name"),this.option("contentCssPosition")),this.option("transition")&&i.log("W0003","dxContentPlaceholder","transition","15.1","Use the 'animation' property instead")}}),f=a.inherit({_setDefaultOptions:function(){this.callBase(),this.option({targetPlaceholder:null})},_optionChanged:function(){this._refresh()},_clean:function(){this.callBase(),this.element().removeClass(this._currentClass)},_render:function(){this.callBase();var e=this.element();e.addClass("dx-content"),this._currentClass="dx-content-"+this.option("targetPlaceholder"),e.attr("data-dx-target-placeholder-id",this.option("targetPlaceholder")),e.addClass(this._currentClass),d(e)}});o("dxView",s),o("dxLayout",l),o("dxViewPlaceholder",c),o("dxContentPlaceholder",p),o("dxTransition",h),o("dxContent",f),t.dxView=s,t.dxLayout=l,t.dxViewPlaceholder=c,t.dxContentPlaceholder=p,t.dxTransition=h,t.dxContent=f},function(e,t){e.exports=window.Globalize},function(e,t,n){var i=n(30),r=n(218).getFormatter,o=n(220),a=n(1),s=a.isString,l=a.isDate,c=a.isNumeric,u="number",d="yyyy/MM/dd",h="yyyy/MM/dd HH:mm:ss",p=/^(\d{4,})(-)?(\d{2})(-)?(\d{2})(?:T(\d{2})(:)?(\d{2})?(:)?(\d{2}(?:\.(\d{1,3})\d*)?)?)?(Z|([+-])(\d{2})(:)?(\d{2})?)?$/,f=/^(\d{2}):(\d{2})(:(\d{2}))?$/,g=["","yyyy","","MM","","dd","THH","","mm","","ss",".SSS"],_=3,m=function(e,t){var n,i;return s(e)&&!t&&(n=v(e)),n||(i=!l(e)&&Date.parse(e),n=c(i)?new Date(i):e),n},v=function(e){var t=e.match(p),n=function(e){return+e||0};if(t){var i=t[1],r=--t[3],o=t[5],a=0,s=0;a=n(t[14]),s=n(t[16]),"-"===t[13]&&(a=-a,s=-s);var l=n(t[6])-a,c=n(t[8])-s,u=n(t[10]),d=function(e){return e=e||"",n(e)*Math.pow(10,_-e.length)},h=d(t[11]);return t[12]?new Date(Date.UTC(i,r,o,l,c,u,h)):new Date(i,r,o,l,c,u,h)}if(t=e.match(f))return new Date(0,0,0,n(t[1]),n(t[2]),n(t[4]))},y=function(e,t){var n=e.match(p),i="";{if(n){for(var r=1;r<g.length;r++)n[r]&&(i+=g[r]||n[r]);return"Z"===n[12]&&(i+="'Z'"),n[14]&&(i+=n[15]?"xxx":n[16]?"xx":"x"),i}if(n=e.match(f))return n[3]?"HH:mm:ss":"HH:mm"}},b=function(e){return"number"==typeof e?new Date(e):m(e,!i().forceIsoDateParsing)},x=function(e,t){return t?l(e)?t===u?e&&e.valueOf?e.valueOf():null:r(t,o)(e):null:e},S=function(e){if("number"==typeof e)return u;if(s(e)){var t;return i().forceIsoDateParsing&&(t=y(e)),t?t:e.indexOf(":")>=0?h:d}return e?null:void 0};e.exports={dateParser:m,deserializeDate:b,serializeDate:x,getDateSerializationFormat:S}},function(e,t,n){var i=n(2),r=n(12),o=n(19),a=n(13),s=n(10),l=s.abstract,c=o(),u=s.inherit({render:function(e){e=e||{};var t=e.onRendered;delete e.onRendered;var n=this._renderCore(e);return this._ensureResultInContainer(n,e.container),c.fire(n,e.container),t&&t(),n},_ensureResultInContainer:function(e,t){if(t){var n=i(t),o=a.contains(n.get(0),e.get(0));if(n.append(e),!o){var s=r.getBody().contains(n.get(0));s&&a.triggerShownEvent(e)}}},_renderCore:l});e.exports=u,e.exports.renderedCallbacks=c},function(e,t,n){var i=n(2),r=n(66),o=n(5),a=n(129),s=n(3),l=n(1).isPrimitive,c=function(){var e=function(e,i,r,o,a){var s,c;return s=t(e,i,function(e){return c&&c(),l(e)?void a(e):void(c=n(e,i,r,o,function(e){a(e)}))}),function(){c&&c(),s&&s()}},t=function(e,t,n){return t(function(){return e},n)},n=function(e,t,n,i,r){var o={},a=n.slice(),l=s.map(n,function(n){var s=i[n];return t(s?function(){return s(e)}:function(){return e[n]},function(e){if(o[n]=e,a.length){var t=a.indexOf(n);t>=0&&a.splice(t,1)}a.length||r(o)})});return function(){s.each(l,function(e,t){t()})}};return e}();e.exports=r.inherit({ctor:function(e,t,n,i){this._render=e,this._fields=t,this._fieldsMap=i||{},this._watchMethod=n},_renderCore:function(e){var t=i(e.container),n=c(e.model,this._watchMethod,this._fields,this._fieldsMap,function(n){t.empty(),this._render(t,n,e.model)}.bind(this));return o.on(t,a,n),t.contents()}})},function(e,t,n){var i=function(e){var t,n=function(){return t=e.apply(this,arguments),n=function(){return t},t};return function(){return n.apply(this,arguments)}};e.exports=i},,function(e,t,n){e.exports=n(328)},function(e,t,n){var i=n(75).logger,r=n(55);e.exports=r({isWrapped:function(){return!1},isWritableWrapped:function(){return!1},wrap:function(e){return e},unwrap:function(e){return e},assign:function(){i.error("Method 'assign' should not be used for not wrapped variables. Use 'isWrapped' method for ensuring.")}})},function(e,t,n){var i=n(7).Deferred,r=n(12),o=n(316),a=n(6),s=a.getWindow(),l=n(0).extendFromObject,c=n(1).isDefined,u=n(99),d=n(55),h="success",p="error",f="timeout",g="nocontent",_="parsererror",m=function(e){return 200<=e&&e<300},v=function(e){return 204!==e},y=function(e){var t=[];for(var n in e){var i=e[n];void 0!==i&&(null===i&&(i=""),t.push(encodeURIComponent(n)+"="+encodeURIComponent(i)))}return t.join("&")},b=function(e){var t=r.createElement("script");for(var n in e)t[n]=e[n];return t},x=function(e){e.parentNode.removeChild(e)},S=function(e){return r.getHead().appendChild(e)},w=function(e){var t=b({text:e});S(t),x(t)},C=function(e){var t=b({src:e});return new u(function(e,n){var i={load:e,error:n},o=function(e){i[e.type](),x(t)};for(var a in i)r.listen(t,a,o);S(t)})},k=function(e){var t=e.dataType||"*",n="text/javascript, application/javascript, application/ecmascript, application/x-ecmascript",i={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",jsonp:n,script:n};return l(i,e.accepts,!0),i[t]?i[t]+("*"!==t?", */*; q=0.01":""):i["*"]},T=function(e){var t;return e.data&&!e.upload&&"GET"!==P(e)&&(t="application/x-www-form-urlencoded;charset=utf-8"),e.contentType||t},E=function(e){return e.responseType&&"text"!==e.responseType||"string"!=typeof e.responseText?e.response:e.responseText},A=function(e,t,n){var i=E(t);switch(n){case"jsonp":w(i);break;case"script":w(i),e.resolve(i,h,t);break;case"json":try{e.resolve(JSON.parse(i),h,t)}catch(n){e.reject(t,_,n)}break;default:e.resolve(i,h,t)}},O=function(e){if(!a.hasWindow())return!0;var t=!1,n=r.createElement("a"),i=r.createElement("a");n.href=s.location.href;try{i.href=e,i.href=i.href,t=n.protocol+"//"+n.host!=i.protocol+"//"+i.host}catch(e){t=!0}return t},I=function(e,t){return e&&setTimeout(function(){t.customStatus=f,t.abort()},e)},D=function(e){if("jsonp"===e.dataType){var t=Math.random().toString().replace(/\D/g,""),n=e.jsonpCallback||"dxCallback"+Date.now()+"_"+t,i=e.jsonp||"callback";return e.data=e.data||{},e.data[i]=n,n}},M=function(e,t){var n=e.data,i="string"==typeof n,r=e.url||s.location.href;return i||e.cache||(n=n||{},n._=Date.now()),n&&!e.upload&&(i||(n=y(n)),"GET"===P(e)?(""!==n&&(r+=(r.indexOf("?")>-1?"&":"?")+n),n=null):t["Content-Type"]&&t["Content-Type"].indexOf("application/x-www-form-urlencoded")>-1&&(n=n.replace(/%20/g,"+"))),{url:r,parameters:n}},P=function(e){return(e.method||"GET").toUpperCase()},L=function(e){var t=e.headers||{};return t["Content-Type"]=t["Content-Type"]||T(e),t.Accept=t.Accept||k(e),e.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t},B=function(e){var t,n=o.getXhr(),r=new i,a=r.promise(),l=!c(e.async)||e.async,u=e.dataType,d=e.timeout||0;e.crossDomain=O(e.url);var f="jsonp"===u||"script"===u;void 0===e.cache&&(e.cache=!f);var _=D(e),y=L(e),b=M(e,y),x=b.url,S=b.parameters;if(_&&(s[_]=function(e){r.resolve(e,h,n)}),e.crossDomain&&f){var w=function(){r.reject(n,p)},k=function(){"jsonp"!==u&&r.resolve(null,h,n)};return C(x).then(k,w),a}if(e.crossDomain&&!("withCredentials"in n))return r.reject(n,p),a;if(n.open(P(e),x,l,e.username,e.password),l&&(n.timeout=d,t=I(d,n,r)),n.onreadystatechange=function(e){4===n.readyState&&(clearTimeout(t),m(n.status)?v(n.status)?A(r,n,u):r.resolve(null,g,n):r.reject(n,n.customStatus||p))},e.upload&&(n.upload.onprogress=e.upload.onprogress,n.upload.onloadstart=e.upload.onloadstart,n.upload.onabort=e.upload.onabort),e.xhrFields)for(var T in e.xhrFields)n[T]=e.xhrFields[T];"arraybuffer"===e.responseType&&(n.responseType=e.responseType);for(var E in y)y.hasOwnProperty(E)&&c(y[E])&&n.setRequestHeader(E,y[E]);return e.beforeSend&&e.beforeSend(n),n.send(S),a.abort=function(){n.abort()},a};e.exports=d({sendRequest:B})},function(e,t,n){var i=n(2),r=n(51),o=r.add,a=n(19)(),s=i(),l=function(){var e;return function(t){if(!arguments.length)return e;var n=i(t);s=n;var r=!!n.length,o=l();e=r?n:i("body"),a.fire(r?l():i(),o)}}();o(function(){l(".dx-viewport")}),t.value=l,t.changeCallback=a,t.originalViewPort=function(){return s}},function(e,t,n){var i=n(26),r=n(30),o=r().useJQuery;i&&o!==!1&&r({useJQuery:!0}),e.exports=function(){return i&&r().useJQuery}},function(e,t,n){var i=n(1).isFunction,r=function(){},o=function(e){return"undefined"!=typeof console&&i(console[e])?console[e].bind(console):r},a={info:o("info"),warn:o("warn"),error:o("error")},s=function(){function e(e,t){if(!e)throw new Error(t)}function t(t,n){e(null!==t&&void 0!==t,n)}return{assert:e,assertParam:t}}();t.logger=a,t.debug=s},function(e,t,n){var i=n(2),r=n(30),o=n(6).getWindow(),a=n(1),s=n(3).each,l=n(10),c=n(17),u=l.inherit({ctor:function(e,t){t=t||{},this._action=e,this._context=t.context||o,this._beforeExecute=t.beforeExecute,this._afterExecute=t.afterExecute,this._component=t.component,this._validatingTargetName=t.validatingTargetName;var n=this._excludeValidators={};if(t.excludeValidators)for(var i=0;i<t.excludeValidators.length;i++)n[t.excludeValidators[i]]=!0},execute:function(){var e={action:this._action,args:Array.prototype.slice.call(arguments),context:this._context,component:this._component,validatingTargetName:this._validatingTargetName,cancel:!1,handled:!1},t=this._beforeExecute,n=this._afterExecute,i=e.args[0]||{};if("jQueryEvent"in i||!i.event||!r().useJQuery||Object.defineProperty(i,"jQueryEvent",{get:function(){return c.log("W0003","Handler argument","jQueryEvent","17.2","Use the 'event' field instead"),i.event},set:function(e){c.log("W0003","Handler argument","jQueryEvent","17.2","Use the 'event' field instead"),i.event=e}}),this._validateAction(e)&&(t&&t.call(this._context,e),!e.cancel)){var o=this._executeAction(e);if(!i.cancel)return n&&n.call(this._context,e),o}},_validateAction:function(e){var t=this._excludeValidators,n=u.executors;for(var i in n)if(!t[i]){var r=n[i];if(r.validate&&r.validate(e),e.cancel)return!1}return!0},_executeAction:function(e){var t,n=u.executors;for(var i in n){var r=n[i];if(r.execute&&r.execute(e),e.handled){t=e.result;break}}return t}});u.executors={},u.registerExecutor=function(e,t){return a.isPlainObject(e)?void s(e,u.registerExecutor):void(u.executors[e]=t)},u.unregisterExecutor=function(){var e=[].slice.call(arguments);s(e,function(){delete u.executors[this]})},u.registerExecutor({undefined:{execute:function(e){e.action||(e.result=void 0,e.handled=!0)}},func:{execute:function(e){a.isFunction(e.action)&&(e.result=e.action.call(e.context,e.args[0]),e.handled=!0)}}});var d=function(e){return function(t){if(t.args.length){var n=t.args[0],r=n[t.validatingTargetName]||n.element;r&&e(i(r))&&(t.cancel=!0)}}};u.registerExecutor({designMode:{validate:function(e){r().designMode&&(e.cancel=!0)}},disabled:{validate:d(function(e){return e.is(".dx-state-disabled, .dx-state-disabled *")})},readOnly:{validate:d(function(e){return e.is(".dx-state-readonly, .dx-state-readonly *")})}}),e.exports=u},function(e,t,n){var i,r=n(2),o=n(4),a=n(3).each,s=n(6),l=s.getWindow(),c=n(12),u=n(1).isWindow,d=n(39),h=n(0).extend,p=n(24),f=n(40),g=/left|right/,_=/top|bottom/,m=/fit|flip|none/,v=function(e){var t={h:"center",v:"center"},n=o.splitPair(e);return n&&a(n,function(){var e=String(this).toLowerCase();g.test(e)?t.h=e:_.test(e)&&(t.v=e)}),t},y=function(e){return d.pairToObject(e)},b=function(e){var t=o.splitPair(e),n=String(t&&t[0]).toLowerCase(),i=String(t&&t[1]).toLowerCase();return m.test(n)||(n="none"),m.test(i)||(i=n),{h:n,v:i}},x=function(e){switch(e){case"center":return.5;case"right":case"bottom":return 1;default:return 0}},S=function(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return e}},w=function(e,t){var n=0;return e.myLocation<t.min&&(n+=t.min-e.myLocation),e.myLocation>t.max&&(n+=e.myLocation-t.max),n},C=function(e,t,n){return t.myLocation<n.min?"h"===e?"left":"top":t.myLocation>n.max?"h"===e?"right":"bottom":"none"},k=function(e){e.myLocation=e.atLocation+x(e.atAlign)*e.atSize-x(e.myAlign)*e.mySize+e.offset},T={fit:function(e,t){var n=!1;e.myLocation>t.max&&(e.myLocation=t.max,n=!0),e.myLocation<t.min&&(e.myLocation=t.min,n=!0),e.fit=n},flip:function(e,t){if(e.flip=!1,("center"!==e.myAlign||"center"!==e.atAlign)&&(e.myLocation<t.min||e.myLocation>t.max)){var n=h({},e,{myAlign:S(e.myAlign),atAlign:S(e.atAlign),offset:-e.offset});k(n),n.oversize=w(n,t),(n.myLocation>=t.min&&n.myLocation<=t.max||e.oversize>n.oversize)&&(e.myLocation=n.myLocation,e.oversize=n.oversize,e.flip=!0)}},flipfit:function(e,t){this.flip(e,t),this.fit(e,t)},none:function(e){e.oversize=0}},E=function(){var e=r("<div>").css({width:100,height:100,overflow:"scroll",position:"absolute",top:-9999}).appendTo(r("body")),t=e.get(0).offsetWidth-e.get(0).clientWidth;e.remove(),i=t},A={h:{location:0,flip:!1,fit:!1,oversize:0},v:{location:0,flip:!1,fit:!1,oversize:0}},O=function(e,t){var n=r(e),o=n.offset(),a=h(!0,{},A,{h:{location:o.left},v:{location:o.top}});if(!t)return a;var s=v(t.my),d=v(t.at),p=r(t.of).length&&t.of||l,g=y(t.offset),_=b(t.collision),m=t.boundary,x=y(t.boundaryOffset),S={mySize:n.outerWidth(),myAlign:s.h,atAlign:d.h,offset:g.h,collision:_.h,boundaryOffset:x.h},O={mySize:n.outerHeight(),myAlign:s.v,atAlign:d.v,offset:g.v,collision:_.v,boundaryOffset:x.v};if(p.preventDefault)S.atLocation=p.pageX,O.atLocation=p.pageY,S.atSize=0,O.atSize=0;else if(p=r(p),u(p[0]))S.atLocation=p.scrollLeft(),O.atLocation=p.scrollTop(),S.atSize=p[0].innerWidth>p[0].outerWidth?p[0].innerWidth:p.width(),O.atSize=p[0].innerHeight>p[0].outerHeight?p[0].innerHeight:p.height();else if(9===p[0].nodeType)S.atLocation=0,O.atLocation=0,S.atSize=p.width(),O.atSize=p.height();else{var I=p.offset();S.atLocation=I.left,O.atLocation=I.top,S.atSize=p.outerWidth(),O.atSize=p.outerHeight()}k(S),k(O);var D=function(){var e=r(l),t=e.width(),n=e.height(),o=e.scrollLeft(),a=e.scrollTop(),s=c.getDocumentElement(),u=f.touch?s.clientWidth/t:1,d=f.touch?s.clientHeight/n:1;void 0===i&&E();var h=t,p=n;if(m){var g=r(m),_=g.offset();o=_.left,a=_.top,h=g.width(),p=g.height()}return{h:{min:o+S.boundaryOffset,max:o+h/u-S.mySize-S.boundaryOffset},v:{min:a+O.boundaryOffset,max:a+p/d-O.mySize-O.boundaryOffset}}}();S.oversize=w(S,D.h),O.oversize=w(O,D.v),S.collisionSide=C("h",S,D.h),O.collisionSide=C("v",O,D.v),T[S.collision]&&T[S.collision](S,D.h),T[O.collision]&&T[O.collision](O,D.v);var M=function(e){return t.precise?e:Math.round(e)};return h(!0,a,{h:{location:M(S.myLocation),oversize:M(S.oversize),fit:S.fit,flip:S.flip,collisionSide:S.collisionSide},v:{location:M(O.myLocation),oversize:M(O.oversize),fit:O.fit,flip:O.flip,collisionSide:O.collisionSide},precise:t.precise}),a},I=function(e,t){var n=r(e);
14
14
  if(!t)return n.offset();p.resetPosition(n,!0);var i=n.offset(),o=t.h&&t.v?t:O(n,t),a=function(e){return t.precise?e:Math.round(e)};return p.move(n,{left:o.h.location-a(i.left),top:o.v.location-a(i.top)}),o},D=function(e){return e=r(e).get(0),u(e)?null:e&&"pageY"in e&&"pageX"in e?{top:e.pageY,left:e.pageX}:r(e).offset()};I.inverseAlign||(I.inverseAlign=S),I.normalizeAlign||(I.normalizeAlign=v),e.exports={calculateScrollbarWidth:E,calculate:O,setup:I,offset:D}},function(e,t,n){var i=n(2),r=n(35),o=n(11).wrapToArray,a=n(11).inArray,s=n(3),l=n(13).contains,c=n(61),u=n(9),d=n(146),h=n(84),p="dxdragstart",f="dxdrag",g="dxdragend",_="dxdragenter",m="dxdragleave",v="dxdrop",y="dxDragEventsCount",b=[],x=[],S=[],w={setup:function(e,t){var n=a(e,b)!==-1;n||(b.push(e),x.push([]),S.push(t||{}))},add:function(e,t){var n=a(e,b);this.updateEventsCounter(e,t.type,1);var i=t.selector;a(i,x[n])===-1&&x[n].push(i)},updateEventsCounter:function(e,t,n){if([_,m,v].indexOf(t)>-1){var i=r.data(e,y)||0;r.data(e,y,Math.max(0,i+n))}},remove:function(e,t){this.updateEventsCounter(e,t.type,-1)},teardown:function(e){var t=r.data(e,y);if(!t){var n=a(e,b);b.splice(n,1),x.splice(n,1),S.splice(n,1),r.removeData(e,y)}}};c(_,w),c(m,w),c(v,w);var C=function(e){var t=a(e.get(0),b),n=x[t],i=e.find(n.join(", "));return a(void 0,n)!==-1&&(i=i.add(e)),i},k=function(e){var t=a(e.get(0),b);return S[t]},T=function(e,t){return e.itemPositionFunc?e.itemPositionFunc(t):t.offset()},E=function(e,t){return e.itemSizeFunc?e.itemSizeFunc(t):{width:t.get(0).getBoundingClientRect().width,height:t.get(0).getBoundingClientRect().height}},A=d.inherit({ctor:function(e){this.callBase(e),this.direction="both"},_init:function(e){this._initEvent=e},_start:function(e){e=this._fireEvent(p,this._initEvent),this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset;var t=o(e.targetElements||(null===e.targetElements?[]:b));this._dropTargets=s.map(t,function(e){return i(e).get(0)})},_move:function(e){var t=u.eventData(e),n=this._calculateOffset(t);e=this._fireEvent(f,e,{offset:n}),this._processDropTargets(e),e._cancelPreventDefault||e.preventDefault()},_calculateOffset:function(e){return{x:this._calculateXOffset(e),y:this._calculateYOffset(e)}},_calculateXOffset:function(e){if("vertical"!==this.direction){var t=e.x-this._startEventData.x;return this._fitOffset(t,this._maxLeftOffset,this._maxRightOffset)}return 0},_calculateYOffset:function(e){if("horizontal"!==this.direction){var t=e.y-this._startEventData.y;return this._fitOffset(t,this._maxTopOffset,this._maxBottomOffset)}return 0},_fitOffset:function(e,t,n){return null!=t&&(e=Math.max(e,-t)),null!=n&&(e=Math.min(e,n)),e},_processDropTargets:function(e){var t=this._findDropTarget(e),n=t===this._currentDropTarget;n||(this._fireDropTargetEvent(e,m),this._currentDropTarget=t,this._fireDropTargetEvent(e,_))},_fireDropTargetEvent:function(e,t){if(this._currentDropTarget){var n={type:t,originalEvent:e,draggingElement:this._$element.get(0),target:this._currentDropTarget};u.fireEvent(n)}},_findDropTarget:function(e){var t,n=this;return s.each(b,function(r,o){if(n._checkDropTargetActive(o)){var a=i(o);s.each(C(a),function(r,o){var s=i(o);n._checkDropTarget(k(a),s,e)&&(t=o)})}}),t},_checkDropTargetActive:function(e){var t=!1;return s.each(this._dropTargets,function(n,i){return t=t||i===e||l(i,e),!t}),t},_checkDropTarget:function(e,t,n){var i=t.get(0)===this._$element.get(0);if(i)return!1;var r=T(e,t);if(n.pageX<r.left)return!1;if(n.pageY<r.top)return!1;var o=E(e,t);return!(n.pageX>r.left+o.width)&&(!(n.pageY>r.top+o.height)&&t)},_end:function(e){var t=u.eventData(e);this._fireEvent(g,e,{offset:this._calculateOffset(t)}),this._fireDropTargetEvent(e,v),delete this._currentDropTarget}});h({emitter:A,events:[p,f,g]}),t.move=f,t.start=p,t.end=g,t.enter=_,t.leave=m,t.drop=v},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(0).extend,o=n(1),a=n(50),s=n(54),l=n(41).keysEqual,c=n(42),u=n(36).errors,d=n(91),h=n(7).Deferred,p=function(e,t){for(var n,i="string"==typeof t?t.split():t.slice();i.length;)if(n=i.shift(),n in e)return!0;return!1},f=function(){var e=new h;return e.resolve.apply(e,arguments).promise()},g=function(){var e=new h;return e.reject.apply(e,arguments).promise()},_=d.inherit({ctor:function(e){e=Array.isArray(e)?{data:e}:e||{},this.callBase(e);var t=e.data;if(t&&!Array.isArray(t))throw u.Error("E4006");this._array=t||[]},createQuery:function(){return c(this._array,{errorHandler:this._errorHandler})},_byKeyImpl:function(e){var t=this._indexByKey(e);return t===-1?g(u.Error("E4009")):f(this._array[t])},_insertImpl:function(e){var t,n,s=this.key();if(n=o.isPlainObject(e)?r({},e):e,s){if(t=this.keyOf(n),void 0===t||"object"===("undefined"==typeof t?"undefined":i(t))&&o.isEmptyObject(t)){if(Array.isArray(s))throw u.Error("E4007");t=n[s]=String(new a)}else if(void 0!==this._array[this._indexByKey(t)])return g(u.Error("E4008"))}else t=n;return this._array.push(n),f(e,t)},_updateImpl:function(e,t){var n,i,r=this.key(),o=!0;if(r){if(p(t,r)&&!l(r,e,this.keyOf(t)))return g(u.Error("E4017"));if(n=this._indexByKey(e),n<0)return g(u.Error("E4009"));i=this._array[n]}else i=e;return s.deepExtendArraySafe(i,t,o),f(e,t)},_removeImpl:function(e){var t=this._indexByKey(e);return t>-1&&this._array.splice(t,1),f(e)},_indexByKey:function(e){for(var t=0,n=this._array.length;t<n;t++)if(l(this.key(),this.keyOf(this._array[t]),e))return t;return-1},clear:function(){this.fireEvent("modifying"),this._array=[],this.fireEvent("modified")}},"array");e.exports=_},function(e,t,n){function i(e,t){return e=e.groupBy(t[0].selector),t.length>1&&(e=e.select(function(e){return s({},e,{items:i(c(e.items),t.slice(1)).toArray()})})),e}function r(e,t){var n=[];return l(e,function(e,i){var r=a(t,function(e){return i.selector===e.selector});r.length<1&&n.push(i)}),n.concat(t)}function o(e,t,n){t=t||{};var o=t.filter,a=t.sort,s=t.select,c=t.group,d=t.skip,h=t.take;return o&&(e=e.filter(o)),c&&(c=u(c)),n||((a||c)&&(a=u(a||[]),c&&(a=r(c,a)),l(a,function(t){e=e[t?"thenBy":"sortBy"](this.selector,this.desc,this.compare)})),s&&(e=e.select(s))),c&&(e=i(e,c)),n||(h||d)&&(e=e.slice(d||0,h)),e}var a=n(4).grep,s=n(0).extend,l=n(3).each,c=n(144),u=n(41).normalizeSortingInfo;e.exports={multiLevelGroup:i,arrangeSortingInfo:r,queryByOptions:o}},function(e,t,n){var i=n(55);e.exports=i({locale:function(){var e="en";return function(t){return t?void(e=t):e}}()})},function(e,t,n){function i(e,t,n){t.on(e,function(){n.fireEvent(e,arguments)})}var r=n(11).inArray,o=n(3).each,a=n(10),s=n(53),l=a.inherit({ctor:function(){this._cache={}},setView:function(e,t){this._cache[e]=t},getView:function(e){return this._cache[e]},removeView:function(e){var t=this._cache[e];return t&&(delete this._cache[e],this.fireEvent("viewRemoved",[{viewInfo:t}])),t},clear:function(){var e=this;o(this._cache,function(t){e.removeView(t)})},hasView:function(e){return e in this._cache}}).include(s),c=l.inherit({setView:function(e,t){this.callBase(e,t),this.removeView(e)}}),u=a.inherit({ctor:function(e){this._filter=e.filter,this._viewCache=e.viewCache,this.viewRemoved=this._viewCache.viewRemoved,i("viewRemoved",this._viewCache,this)},setView:function(e,t){this._viewCache.setView(e,t),this._filter(e,t)||this._viewCache.removeView(e)},getView:function(e){return this._viewCache.getView(e)},removeView:function(e){return this._viewCache.removeView(e)},clear:function(){return this._viewCache.clear()},hasView:function(e){return this._viewCache.hasView(e)}}).include(s),d=5,h=a.inherit({ctor:function(e){this._keys=[],this._size=e.size||d,this._viewCache=e.viewCache,this.viewRemoved=this._viewCache.viewRemoved,i("viewRemoved",this._viewCache,this)},setView:function(e,t){this.hasView(e)||(this._keys.length===this._size&&this.removeView(this._keys[0]),this._keys.push(e)),this._viewCache.setView(e,t)},getView:function(e){var t=r(e,this._keys);return t<0?null:(this._keys.push(e),this._keys.splice(t,1),this._viewCache.getView(e))},removeView:function(e){var t=r(e,this._keys);return t>-1&&this._keys.splice(t,1),this._viewCache.removeView(e)},clear:function(){return this._keys=[],this._viewCache.clear()},hasView:function(e){return this._viewCache.hasView(e)}}).include(s),p=a.inherit({ctor:function(e){this._viewCache=e.viewCache||new l,this._navigationManager=e.navigationManager,this._navigationManager.on("itemRemoved",this._onNavigationItemRemoved.bind(this)),this.viewRemoved=this._viewCache.viewRemoved,i("viewRemoved",this._viewCache,this)},_onNavigationItemRemoved:function(e){this.removeView(e.key)},setView:function(e,t){this._viewCache.setView(e,t)},getView:function(e){return this._viewCache.getView(e)},removeView:function(e){return this._viewCache.removeView(e)},clear:function(){return this._viewCache.clear()},hasView:function(e){return this._viewCache.hasView(e)}}).include(s);e.exports=l,e.exports.NullViewCache=c,e.exports.ConditionalViewCacheDecorator=u,e.exports.CapacityViewCacheDecorator=h,e.exports.HistoryDependentViewCacheDecorator=p},function(e,t,n){var i=n(37).camelize,r=n(68),o=n(1),a=n(12),s=["","Webkit","Moz","O","Ms"],l={"":"",Webkit:"-webkit-",Moz:"-moz-",O:"-o-",ms:"-ms-"},c=r(function(){return a.createElement("dx").style}),u=function(e,t){e=i(e,!0);for(var n,r=0,o=s.length;r<o;r++){var a=s[r],l=a+e,c=i(l);if(n=t(c,a),void 0===n&&(n=t(l,a)),void 0!==n)break}return n||""},d=function(e){if(e in c())return e;var t=e;e=e.charAt(0).toUpperCase()+e.substr(1);for(var n=1;n<s.length;n++){var i=s[n].toLowerCase()+e;if(i in c())return i}return t},h=function(e){return u(e,function(e,t){if(e in c())return l[t]})},p=["fillOpacity","columnCount","flexGrow","flexShrink","fontWeight","lineHeight","opacity","zIndex","zoom"],f=function(e,t){return o.isNumeric(t)&&p.indexOf(e)===-1&&(t+="px"),t},g=function(e,t,n){if(e){n=o.isNumeric(n)?n+="px":n;for(var i=0;i<e.length;++i)e[i].style[t]=n}},_=function(e,t){g(e,"width",t)},m=function(e,t){g(e,"height",t)};t.styleProp=d,t.stylePropPrefix=h,t.normalizeStyleProp=f,t.setWidth=_,t.setHeight=m},function(e,t,n){var i=n(2),r=n(51),o=n(12),a=n(5),s=n(35),l=n(10),c=n(0).extend,u=n(11).inArray,d=n(3).each,h=n(61),p=n(9),f=n(25),g=n(117),_="dxEventManager",m="dxEmitter",v=l.inherit({ctor:function(){this._attachHandlers(),this.reset(),this._proxiedCancelHandler=this._cancelHandler.bind(this),this._proxiedAcceptHandler=this._acceptHandler.bind(this)},_attachHandlers:function(){r.add(function(){var e=o.getDocument();a.subscribeGlobal(e,p.addNamespace(f.down,_),this._pointerDownHandler.bind(this)),a.subscribeGlobal(e,p.addNamespace(f.move,_),this._pointerMoveHandler.bind(this)),a.subscribeGlobal(e,p.addNamespace([f.up,f.cancel].join(" "),_),this._pointerUpHandler.bind(this)),a.subscribeGlobal(e,p.addNamespace(g.name,_),this._mouseWheelHandler.bind(this))}.bind(this))},_eachEmitter:function(e){for(var t=this._activeEmitters||[],n=0;t.length>n;){var i=t[n];if(e(i)===!1)break;t[n]===i&&n++}},_applyToEmitters:function(e,t){this._eachEmitter(function(n){n[e].call(n,t)})},reset:function(){this._eachEmitter(this._proxiedCancelHandler),this._activeEmitters=[]},resetEmitter:function(e){this._proxiedCancelHandler(e)},_pointerDownHandler:function(e){p.isMouseEvent(e)&&e.which>1||this._updateEmitters(e)},_updateEmitters:function(e){this._isSetChanged(e)&&(this._cleanEmitters(e),this._fetchEmitters(e))},_isSetChanged:function(e){var t=this._closestEmitter(e),n=this._emittersSet||[],i=t.length!==n.length;return d(t,function(e,t){return i=i||n[e]!==t,!i}),this._emittersSet=t,i},_closestEmitter:function(e){function t(t,i){i&&i.validatePointers(e)&&i.validate(e)&&(i.addCancelCallback(n._proxiedCancelHandler),i.addAcceptCallback(n._proxiedAcceptHandler),r.push(i))}for(var n=this,r=[],o=i(e.target);o.length;){var a=s.data(o.get(0),m)||[];d(a,t),o=o.parent()}return r},_acceptHandler:function(e,t){var n=this;this._eachEmitter(function(i){i!==e&&n._cancelEmitter(i,t)})},_cancelHandler:function(e,t){this._cancelEmitter(e,t)},_cancelEmitter:function(e,t){var n=this._activeEmitters;t?e.cancel(t):e.reset(),e.removeCancelCallback(),e.removeAcceptCallback();var i=u(e,n);i>-1&&n.splice(i,1)},_cleanEmitters:function(e){this._applyToEmitters("end",e),this.reset(e)},_fetchEmitters:function(e){this._activeEmitters=this._emittersSet.slice(),this._applyToEmitters("start",e)},_pointerMoveHandler:function(e){this._applyToEmitters("move",e)},_pointerUpHandler:function(e){this._updateEmitters(e)},_mouseWheelHandler:function(e){this._allowInterruptionByMouseWheel()&&(e.pointers=[null],this._pointerDownHandler(e),this._adjustWheelEvent(e),this._pointerMoveHandler(e),e.pointers=[],this._pointerUpHandler(e))},_allowInterruptionByMouseWheel:function(){var e=!0;return this._eachEmitter(function(t){return e=t.allowInterruptionByMouseWheel()&&e}),e},_adjustWheelEvent:function(e){var t=null;if(this._eachEmitter(function(n){if(n.gesture){var i=n.getDirection(e);return"horizontal"!==i&&!e.shiftKey||"vertical"!==i&&e.shiftKey?(t=n,!1):void 0}}),t){var n=t.getDirection(e),i="both"===n&&!e.shiftKey||"vertical"===n,r=i?"pageY":"pageX";e[r]+=e.delta}},isActive:function(e){var t=!1;return this._eachEmitter(function(n){t=t||n.getElement().is(e)}),t}}),y=new v,b="dxEmitterSubscription",x=function(e){var t=e.emitter,n=e.events[0],i=e.events;d(i,function(r,o){h(o,{noBubble:!e.bubble,setup:function(e){var i=s.data(e,b)||{},r=s.data(e,m)||{},a=r[n]||new t(e);i[o]=!0,r[n]=a,s.data(e,m,r),s.data(e,b,i)},add:function(e,t){var i=s.data(e,m),r=i[n];r.configure(c({delegateSelector:t.selector},t.data),t.type)},teardown:function(e){var t=s.data(e,b),r=s.data(e,m),a=r[n];delete t[o];var l=!0;d(i,function(e,n){return l=l&&!t[n]}),l&&(y.isActive(e)&&y.resetEmitter(a),a&&a.dispose(),delete r[n])}})})};e.exports=x},function(e,t,n){function i(e){return e>0?Math.round(e):0}function r(e,t,n,i){var o,a,s,l,c=[],u=i.nodes,d=t.length,h=0;for(a=0;a<d;++a)s=t[a],o=new y,o._id=u.length,o.ctx=i.ctx,o.parent=e,o.level=n,o.index=c.length,o.data=s,i.buildNode(o),u.push(o),c.push(o),l=s[i.itemsField],l&&l.length&&r(o,l,n+1,i),s[i.valueField]>0&&(o.value=Number(s[i.valueField])),h+=o.value;e.nodes=c,e.value=h}function o(e,t,n){var i,r,a=t.nodes,s=a.length;for(r=0;r<s;++r)i=a[r],n(e,i),i.isNode()&&o(e,i,n)}function a(e,t){t.color=t.data[e.colorField]||e.getColor(t)||t.parent.color,t.updateStyles(),t.tile=!t.ctx.forceReset&&t.tile||O[Number(t.isNode())](e,t),t.applyState()}function s(e,t){var n=e.renderer.simpleRect().append(e.group);return e.setTrackerData(t,n),n}function l(e,t){var n=e.renderer.simpleRect().append(e.group),i=e.renderer.simpleRect().append(e.group);return e.setTrackerData(t,i),{outer:n,inner:i}}function c(e,t){t.updateLabelStyle(),t.labelState.visible&&u(e,t,t.labelState,t.labelParams)}function u(e,t,n,i){var r=t.data[e.labelField];t.label=r?String(r):null,r=t.customLabel||t.label,r&&(t.text=e.renderer.text(r).attr(n.attr).css(n.css).append(e.group),e.setTrackerData(t,t.text))}function d(e,t){var n,i=t.nodes,r=[],o=[],a=0,s=r.length=o.length=i.length;for(n=0;n<s;++n)a+=i[n].value,r[n]={value:i[n].value,i:n};for(a>0&&e.algorithm({items:r.slice(),sum:a,rect:t.innerRect.slice(),isRotated:1&i[0].level,directions:e.directions}),n=0;n<s;++n)o[n]=r[n].rect||I;t.rects=o}function h(e,t){var n,i=t.parent.rects[t.index],r=e.rectOffsets;t.isNode()?(g(t.tile.outer,f(i,t.parent.innerRect,r.headerEdge,r.headerInner)),i=p(i,e.groupPadding),n=Math.min(e.headerHeight,i[3]-i[1]),t.rect=[i[0],i[1],i[2],i[1]+n],g(t.tile.inner,p(t.rect,r.headerEdge)),i[1]+=n,t.innerRect=i,d(e,t)):(t.rect=i,g(t.tile,f(i,t.parent.innerRect,r.tileEdge,r.tileInner)))}function p(e,t){return[e[0]+t,e[1]+t,e[2]-t,e[3]-t]}function f(e,t,n,i){return[e[0]+(e[0]===t[0]?n:+i),e[1]+(e[1]===t[1]?n:+i),e[2]-(e[2]===t[2]?n:-i),e[3]-(e[3]===t[3]?n:-i)]}function g(e,t){e.attr({x:t[0],y:t[1],width:T(t[2]-t[0],0),height:T(t[3]-t[1],0)})}function _(e,t){t.text&&t.labelState.visible&&m(t,t.labelParams)}function m(e,t){var n=e.rect,i=e.text,r=i.getBBox(),o=t.paddingLeftRight,a=t.paddingTopBottom,s=n[2]-n[0]-o,l=r.height+a<=n[3]-n[1],c=r.width<=s;"ellipsis"===t.resolveLabelOverflow&&l&&(i.applyEllipsis(s),c||(r=i.getBBox(),c=r.width<=s)),i.attr({visibility:l&&c?"visible":"hidden"}),l&&c&&i.move(t.rtlEnabled?n[2]-o-r.x-r.width:n[0]+o-r.x,n[1]+a-r.y)}var v=n(304),y=n(201),b=n(152).getAlgorithm,x=n(153).getColorizer,S=n(16).patchFontOptions,w=v.buildRectAppearance,C=v.buildTextAppearance,k=n(4).noop,T=Math.max,E={lefttoprightbottom:[1,1],leftbottomrighttop:[1,-1],righttopleftbottom:[-1,1],rightbottomlefttop:[-1,-1]};n(443),n(152).setDefaultAlgorithm("squarified"),n(445),n(153).setDefaultColorizer("discrete");var A=n(132).inherit({_handlers:{beginBuildNodes:k,buildNode:k,endBuildNodes:k,setTrackerData:k,calculateState:function(e){return w(e)}},_rootClass:"dxtm-tree-map",_rootClassPrefix:"dxtm",_getDefaultSize:function(){return{width:400,height:400}},_createThemeManager:function(){return new D},_init:function(){var e=this;e._rectOffsets={},e._handlers=Object.create(e._handlers),e._context={suspend:function(){e._applyingChanges||e._suspendChanges()},resume:function(){e._applyingChanges||e._resumeChanges()},change:function(t){e._change(t)},settings:[{},{}],calculateState:e._handlers.calculateState,calculateLabelState:C},e._root=e._topNode={nodes:[]},e.callBase.apply(e,arguments)},_initialChanges:["DATA_SOURCE"],_initCore:function(){var e=this,t=e._renderer;e._createProxyType(),e._tilesGroup=t.g().linkOn(t.root,"tiles").linkAppend(),e._labelsGroup=t.g().linkOn(t.root,"labels").linkAppend()},_createProxyType:k,_disposeCore:function(){var e=this;e._filter&&e._filter.dispose(),e._labelsGroup.linkOff(),e._tilesGroup.linkOff()},_applySize:function(e){this._tilingRect=e.slice(),this._change(["TILING"])},_optionChangesMap:{dataSource:"DATA_SOURCE",valueField:"NODES_CREATE",childrenField:"NODES_CREATE",colorField:"TILES",colorizer:"TILES",labelField:"LABELS",tile:"TILE_SETTINGS",group:"GROUP_SETTINGS",maxDepth:"MAX_DEPTH",layoutAlgorithm:"TILING",layoutDirection:"TILING",resolveLabelOverflow:"LABEL_OVERFLOW"},_themeDependentChanges:["TILE_SETTINGS","GROUP_SETTINGS","MAX_DEPTH"],_changeDataSource:function(){var e=this;e._isDataExpected=e._isSyncData=!0,e._updateDataSource(),e._isSyncData=!1,e._isDataExpected&&e._suspendChanges()},_dataSourceChangedHandler:function(){var e=this;e._isDataExpected?(e._isDataExpected=!1,e._change(["NODES_CREATE"]),e._isSyncData||e._resumeChanges()):e._requestChange(["NODES_CREATE"])},_optionChangesOrder:["DATA_SOURCE","TILE_SETTINGS","GROUP_SETTINGS","MAX_DEPTH","LABEL_OVERFLOW"],_change_DATA_SOURCE:function(){this._changeDataSource()},_change_TILE_SETTINGS:function(){this._changeTileSettings()},_change_GROUP_SETTINGS:function(){this._changeGroupSettings()},_change_LABEL_OVERFLOW:function(){this._changeTileSettings(),this._changeGroupSettings()},_change_MAX_DEPTH:function(){this._changeMaxDepth()},_customChangesOrder:["NODES_CREATE","NODES_RESET","TILES","LABELS","TILING","LABELS_LAYOUT"],_change_NODES_CREATE:function(){this._buildNodes()},_change_NODES_RESET:function(){this._resetNodes()},_change_TILES:function(){this._applyTilesAppearance()},_change_LABELS:function(){this._applyLabelsAppearance()},_change_TILING:function(){this._performTiling()},_change_LABELS_LAYOUT:function(){this._performLabelsLayout()},_applyChanges:function(){var e=this;e.callBase.apply(e,arguments),e._isDataExpected||e._drawn(),e._context.forceReset=!1},_buildNodes:function(){var e,t=this,n=t._root=t._topNode=new y;n._id=0,n.parent={},n.data={},n.level=n.index=-1,n.ctx=t._context,n.label=null,t._nodes=[n],t._handlers.beginBuildNodes(),e=t._processDataSourceItems(t._dataSourceItems()||[]),r(n,e.items,0,{itemsField:!e.isPlain&&t._getOption("childrenField",!0)||"items",valueField:t._getOption("valueField",!0)||"value",buildNode:t._handlers.buildNode,ctx:t._context,nodes:t._nodes}),t._onNodesCreated(),t._handlers.endBuildNodes(),t._change(["NODES_RESET"])},_onNodesCreated:k,_processDataSourceItems:function(e){return{items:e,isPlain:!1}},_changeTileSettings:function(){var e=this,t=e._getOption("tile"),n=e._rectOffsets,r=i(t.border.width),o=r/2,a=1&r?.5:0,s=t.label,l=e._context.settings[0];e._change(["TILES","LABELS"]),l.state=e._handlers.calculateState(t),e._filter=e._filter||e._renderer.shadowFilter("-50%","-50%","200%","200%"),e._filter.attr(s.shadow),e._calculateLabelSettings(l,s,e._filter.id),n.tileEdge===o&&n.tileInner===a||(n.tileEdge=o,n.tileInner=a,e._change(["TILING"]))},_changeGroupSettings:function(){var e=this,t=e._getOption("group"),n=t.label,r=e._rectOffsets,o=i(t.border.width),a=o/2,s=1&o?.5:0,l=0,c=i(t.padding),u=e._context.settings[1];e._change(["TILES","LABELS"]),u.state=e._handlers.calculateState(t),e._calculateLabelSettings(u,n),l=t.headerHeight>=0?i(t.headerHeight):u.labelParams.height+2*i(n.paddingTopBottom),e._headerHeight!==l&&(e._headerHeight=l,e._change(["TILING"])),e._groupPadding!==c&&(e._groupPadding=c,e._change(["TILING"])),r.headerEdge===a&&r.headerInner===s||(r.headerEdge=a,r.headerInner=s,e._change(["TILING"]))},_calculateLabelSettings:function(e,t,n){var r=this._getTextBBox(t.font),o=i(t.paddingLeftRight),a=i(t.paddingTopBottom);e.labelState=C(t,n),e.labelState.visible=!("visible"in t&&!t.visible),e.labelParams={height:r.height,rtlEnabled:this._getOption("rtlEnabled",!0),paddingTopBottom:a,paddingLeftRight:o,resolveLabelOverflow:this._getOption("resolveLabelOverflow",!0)}},_changeMaxDepth:function(){var e=this._getOption("maxDepth",!0);e=e>=1?Math.round(e):1/0,this._maxDepth!==e&&(this._maxDepth=e,this._change(["NODES_RESET"]))},_resetNodes:function(){var e=this;e._tilesGroup.clear(),e._renderer.initHatching(),e._context.forceReset=!0,e._context.minLevel=e._topNode.level+1,e._context.maxLevel=e._context.minLevel+e._maxDepth-1,e._change(["TILES","LABELS","TILING"])},_processNodes:function(e,t){o(e,this._topNode,t)},_applyTilesAppearance:function(){var e=this,t=x(e._getOption("colorizer"),e._themeManager,e._topNode);e._processNodes({renderer:e._renderer,group:e._tilesGroup,setTrackerData:e._handlers.setTrackerData,colorField:e._getOption("colorField",!0)||"color",getColor:t},a)},_applyLabelsAppearance:function(){var e=this;e._labelsGroup.clear(),e._processNodes({renderer:e._renderer,group:e._labelsGroup,setTrackerData:e._handlers.setTrackerData,labelField:e._getOption("labelField",!0)||"name"},c),e._change(["LABELS_LAYOUT"])},_performTiling:function(){var e=this,t={algorithm:b(e._getOption("layoutAlgorithm",!0)),directions:E[String(e._getOption("layoutDirection",!0)).toLowerCase()]||E.lefttoprightbottom,headerHeight:e._headerHeight,groupPadding:e._groupPadding,rectOffsets:e._rectOffsets};e._topNode.innerRect=e._tilingRect,d(t,e._topNode),e._processNodes(t,h),e._change(["LABELS_LAYOUT"]),e._onTilingPerformed()},_onTilingPerformed:k,_performLabelsLayout:function(){this._processNodes(null,_)},_getTextBBox:function(e){var t,n=this._renderer,i=this._textForCalculations||n.text("0",0,0);return this._textForCalculations=i,i.css(S(e)).append(n.root),t=i.getBBox(),i.remove(),t}}),O=[s,l],I=[0,0,0,0],D=n(134).BaseThemeManager.inherit({_themeSection:"treeMap",_fontFields:["tile.label.font","group.label.font","loadingIndicator.font","title.font","title.subtitle.font","tooltip.font","export.font"]});n(8)("dxTreeMap",A),e.exports=A,A.addPlugin(n(200).plugin)},function(e,t,n){function i(e){this.baseColor=e;var t;e&&(t=String(e).toLowerCase().replace(/ /g,""),t=m[t]?"#"+m[t]:t,t=r(t)),t||(this.colorIsInvalid=!0),t=t||{},this.r=o(t[0]),this.g=o(t[1]),this.b=o(t[2]),this.a=o(t[3],1,1),t[4]?this.hsv={h:t[4][0],s:t[4][1],v:t[4][2]}:this.hsv=s(this.r,this.g,this.b),t[5]?this.hsl={h:t[5][0],s:t[5][1],l:t[5][2]}:this.hsl=u(this.r,this.g,this.b)}function r(e){if("transparent"===e)return[0,0,0,0];for(var t,n=0,i=v.length;n<i;++n)if(t=v[n].re.exec(e))return v[n].process(t);return null}function o(e,t,n){return t=t||0,n=n||255,e<0||isNaN(e)?t:e>n?n:e}function a(e,t,n){return"#"+(16777216|e<<16|t<<8|n).toString(16).slice(1)}function s(e,t,n){var i,r,o,a=Math.max(e,t,n),s=Math.min(e,t,n),l=a-s;if(o=a,r=0===a?0:1-s/a,a===s)i=0;else switch(a){case e:i=60*((t-n)/l),t<n&&(i+=360);break;case t:i=60*((n-e)/l)+120;break;case n:i=60*((e-t)/l)+240}return r*=100,o*=100/255,{h:Math.round(i),s:Math.round(r),v:Math.round(o)}}function l(e,t,n){var i,r,o,a,s,l,c,u;switch(a=Math.floor(e%360/60),o=(100-t)*n/100,s=(n-o)*(e%60/60),r=o+s,i=n-s,a){case 0:l=n,c=r,u=o;break;case 1:l=i,c=n,u=o;break;case 2:l=o,c=n,u=r;break;case 3:l=o,c=i,u=n;break;case 4:l=r,c=o,u=n;break;case 5:l=n,c=o,u=i}return[Math.round(2.55*l),Math.round(2.55*c),Math.round(2.55*u)]}function c(e,t,n,i){var r=Math.max(e,t,n);switch(r){case e:return(t-n)/i+(t<n?6:0);case t:return(n-e)/i+2;case n:return(e-t)/i+4}}function u(e,t,n){e=g(e,255),t=g(t,255),n=g(n,255);var i,r,o=Math.max(e,t,n),a=Math.min(e,t,n),s=o+a,l=s/2;if(o===a)i=r=0;else{var u=o-a;r=l>.5?u/(2-s):u/s,i=c(e,t,n,u),i/=6}return{h:y(360*i),s:y(100*r),l:y(100*l)}}function d(e,t){var n=t;return"r"===e&&(n=t+1/3),"b"===e&&(n=t-1/3),n}function h(e){return e<0&&(e+=1),e>1&&(e-=1),e}function p(e,t,n){return n=h(n),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function f(e,t,n){var i,r,o;if(e=g(e,360),t=g(t,100),n=g(n,100),0===t)i=r=o=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;i=p(s,a,d("r",e)),r=p(s,a,d("g",e)),o=p(s,a,d("b",e))}return[y(255*i),y(255*r),y(255*o)]}function g(e,t){return e=Math.min(t,Math.max(0,parseFloat(e))),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function _(e,t,n){return t=t||0,n=n||255,!(e%1!==0||e<t||e>n||"number"!=typeof e||isNaN(e))}var m={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},v=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10)]}},{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*\.*\d+)\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10),parseFloat(e[4])]}},{re:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/,process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^#([a-f0-9]{1})([a-f0-9]{1})([a-f0-9]{1})$/,process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/^hsv\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){var t=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[3],10),r=l(t,n,i);return[r[0],r[1],r[2],1,[t,n,i]]}},{re:/^hsl\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){var t=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[3],10),r=f(t,n,i);return[r[0],r[1],r[2],1,null,[t,n,i]]}}],y=Math.round;i.prototype={constructor:i,highlight:function(e){return e=e||10,this.alter(e).toHex()},darken:function(e){return e=e||10,this.alter(-e).toHex()},alter:function(e){var t=new i;return t.r=o(this.r+e),t.g=o(this.g+e),t.b=o(this.b+e),t},blend:function(e,t){var n=e instanceof i?e:new i(e),r=new i;return r.r=o(y(this.r*(1-t)+n.r*t)),r.g=o(y(this.g*(1-t)+n.g*t)),r.b=o(y(this.b*(1-t)+n.b*t)),r},toHex:function(){return a(this.r,this.g,this.b)},getPureColor:function(){var e=l(this.hsv.h,100,100);return new i("rgb("+e.join(",")+")")},isValidHex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},isValidRGB:function(e,t,n){return!!(_(e)&&_(t)&&_(n))},isValidAlpha:function(e){return!(isNaN(e)||e<0||e>1||"number"!=typeof e)},colorIsInvalid:!1,fromHSL:function(e){var t=new i,n=f(e.h,e.s,e.l);return t.r=n[0],t.g=n[1],t.b=n[2],t}},e.exports=i},,function(e,t,n){var i=n(1),r=n(23),o=n(49),a=n(33),s=n(55),l=n(75).logger;n(137),e.exports=s({format:function(e,t,n){var r=i.isString(t)&&""!==t||i.isPlainObject(t)||i.isFunction(t),s=i.isNumeric(e)||i.isDate(e);return r&&s?i.isFunction(t)?t(e):(void 0!==n&&l.warn("Option 'precision' is deprecated. Use field 'precision' of a format object instead."),i.isString(t)&&(t={type:t,precision:n}),i.isNumeric(e)?o.format(e,t):i.isDate(e)?a.format(e,t):void 0):i.isDefined(e)?e.toString():""},getTimeFormat:function(e){return e?"longtime":"shorttime"},_normalizeFormat:function(e){return Array.isArray(e)?1===e.length?e[0]:function(t){return e.map(function(e){return a.format(t,e)}).join(" ")}:e},getDateFormatByDifferences:function(e,t){var n=[],i=t&&e.millisecond&&!(e.year||e.month||e.day);if(i){var r=function(e){return e.getSeconds()+e.getMilliseconds()/1e3+"s"};n.push(r)}else e.millisecond&&n.push("millisecond");if((e.hour||e.minute||!i&&e.second)&&n.unshift(this.getTimeFormat(e.second)),e.year&&e.month&&e.day)return t&&"month"===t?"monthandyear":(n.unshift("shortdate"),this._normalizeFormat(n));if(e.year&&e.month)return"monthandyear";if(e.year&&e.quarter)return"quarterandyear";if(e.year)return"year";if(e.quarter)return"quarter";if(e.month&&e.day){if(t){var o=function(e){return a.getMonthNames("abbreviated")[e.getMonth()]+" "+a.format(e,"day")};n.unshift(o)}else n.unshift("monthandday");return this._normalizeFormat(n)}if(e.month)return"month";if(e.day){if(t)n.unshift("day");else{var s=function(e){return a.format(e,"dayofweek")+", "+a.format(e,"day")};n.unshift(s)}return this._normalizeFormat(n)}return this._normalizeFormat(n)},getDateFormatByTicks:function(e){
15
- var t,n,i,o;if(e.length>1)for(n=r.getDatesDifferences(e[0],e[1]),o=1;o<e.length-1;o++)i=r.getDatesDifferences(e[o],e[o+1]),n.count<i.count&&(n=i);else n={year:!0,month:!0,day:!0,hour:e[0].getHours()>0,minute:e[0].getMinutes()>0,second:e[0].getSeconds()>0,millisecond:e[0].getMilliseconds()>0};return t=this.getDateFormatByDifferences(n)},getDateFormatByTickInterval:function(e,t,n){var o,a,s,l={week:"day"},c=function(e,t,n){switch(t){case"year":case"quarter":e.month=n;case"month":e.day=n;case"week":case"day":e.hour=n;case"hour":e.minute=n;case"minute":e.second=n;case"second":e.millisecond=n}},u=function(e,t,n){!n.getMilliseconds()&&n.getSeconds()?n.getSeconds()-t.getSeconds()===1&&(e.millisecond=!0,e.second=!1):!n.getSeconds()&&n.getMinutes()?n.getMinutes()-t.getMinutes()===1&&(e.second=!0,e.minute=!1):!n.getMinutes()&&n.getHours()?n.getHours()-t.getHours()===1&&(e.minute=!0,e.hour=!1):!n.getHours()&&n.getDate()>1?n.getDate()-t.getDate()===1&&(e.hour=!0,e.day=!1):1===n.getDate()&&n.getMonth()?n.getMonth()-t.getMonth()===1&&(e.day=!0,e.month=!1):!n.getMonth()&&n.getFullYear()&&n.getFullYear()-t.getFullYear()===1&&(e.month=!0,e.year=!1)};return n=i.isString(n)?n.toLowerCase():n,a=r.getDatesDifferences(e,t),e!==t&&u(a,e>t?t:e,e>t?e:t),s=r.getDateUnitInterval(a),c(a,s,!0),s=r.getDateUnitInterval(n||"second"),c(a,s,!1),a[l[s]||s]=!0,o=this.getDateFormatByDifferences(a)}})},function(e,t,n){var i=n(10),r=n(0).extend,o=n(11).inArray,a=n(3).each,s=n(53),l=n(17),c=n(4),u=n(1),d=n(49),h=n(15),p=i.inherit({NAME:"base",defaultMessage:function(e){return h.getFormatter("validation-"+this.NAME)(e)},defaultFormattedMessage:function(e){return h.getFormatter("validation-"+this.NAME+"-formatted")(e)},validate:function(e,t){var n=Array.isArray(e)?e:[e],i=!0;return n.length?n.every(function(e){return i=this._validate(e,t)},this):i=this._validate(null,t),i}}),f=p.inherit({NAME:"required",_validate:function(e,t){return!!u.isDefined(e)&&(e!==!1&&(e=String(e),!t.trim&&u.isDefined(t.trim)||(e=e.trim()),""!==e))}}),g=p.inherit({NAME:"numeric",_validate:function(e,t){return!S.required.validate(e,{})||(t.useCultureSettings&&u.isString(e)?!isNaN(d.parse(e)):u.isNumeric(e))}}),_=p.inherit({NAME:"range",_validate:function(e,t){if(!S.required.validate(e,{}))return!0;var n=S.numeric.validate(e,t),i=u.isDefined(e),r=n?parseFloat(e):i&&e.valueOf(),o=t.min,a=t.max;if(!n&&!u.isDate(e)&&!i)return!1;if(u.isDefined(o))return u.isDefined(a)?r>=o&&r<=a:r>=o;if(u.isDefined(a))return r<=a;throw l.Error("E0101")}}),m=p.inherit({NAME:"stringLength",_validate:function(e,t){return e=u.isDefined(e)?String(e):"",!t.trim&&u.isDefined(t.trim)||(e=e.trim()),S.range.validate(e.length,r({},t))}}),v=p.inherit({NAME:"custom",validate:function(e,t){var n=t.validator,i=n&&u.isFunction(n.option)&&n.option("dataGetter"),r=u.isFunction(i)&&i(),o={value:e,validator:n,rule:t};return r&&(o.data=r),t.validationCallback(o)}}),y=p.inherit({NAME:"compare",_validate:function(e,t){if(!t.comparisonTarget)throw l.Error("E0102");r(t,{reevaluate:!0});var n=t.comparisonTarget(),i=t.comparisonType||"==";switch(i){case"==":return e==n;case"!=":return e!=n;case"===":return e===n;case"!==":return e!==n;case">":return e>n;case">=":return e>=n;case"<":return e<n;case"<=":return e<=n}}}),b=p.inherit({NAME:"pattern",_validate:function(e,t){if(!S.required.validate(e,{}))return!0;var n=t.pattern;return u.isString(n)&&(n=new RegExp(n)),n.test(e)}}),x=p.inherit({NAME:"email",_validate:function(e,t){return!S.required.validate(e,{})||S.pattern.validate(e,r({},t,{pattern:/^[\d\w._-]+@([\d\w._-]+\.)+[\w]+$/i}))}}),S={required:new f,numeric:new g,range:new _,stringLength:new m,custom:new v,compare:new y,pattern:new b,email:new x},w=i.inherit({ctor:function(e){this.group=e,this.validators=[]},validate:function(){var e={isValid:!0,brokenRules:[],validators:[]};return a(this.validators,function(t,n){var i=n.validate();e.isValid=e.isValid&&i.isValid,i.brokenRule&&e.brokenRules.push(i.brokenRule),e.validators.push(n)}),this.fireEvent("validated",[{validators:e.validators,brokenRules:e.brokenRules,isValid:e.isValid}]),e},reset:function(){a(this.validators,function(e,t){t.reset()})}}).include(s),C={groups:[],getGroupConfig:function(e){var t=c.grep(this.groups,function(t){return t.group===e});if(t.length)return t[0]},initGroups:function(){this.groups=[],this.addGroup()},addGroup:function(e){var t=this.getGroupConfig(e);return t||(t=new w(e),this.groups.push(t)),t},removeGroup:function(e){var t=this.getGroupConfig(e),n=o(t,this.groups);return n>-1&&this.groups.splice(n,1),t},_setDefaultMessage:function(e,t,n){u.isDefined(e.message)||(t.defaultFormattedMessage&&u.isDefined(n)?e.message=t.defaultFormattedMessage(n):e.message=t.defaultMessage())},validate:function(e,t,n){var i={name:n,value:e,brokenRule:null,isValid:!0,validationRules:t},r=this;return a(t||[],function(t,o){var a,s=S[o.type];if(!s)throw l.Error("E0100");return u.isDefined(o.isValid)&&o.value===e&&!o.reevaluate?!!o.isValid||(i.isValid=!1,i.brokenRule=o,!1):(o.value=e,a=s.validate(e,o),o.isValid=a,a||(i.isValid=!1,r._setDefaultMessage(o,s,n),i.brokenRule=o),!!o.isValid&&void 0)}),i},registerValidatorInGroup:function(e,t){var n=C.addGroup(e);o(t,n.validators)<0&&n.validators.push(t)},_shouldRemoveGroup:function(e,t){var n=void 0===e,i=e&&"dxValidationGroup"===e.NAME;return!n&&!i&&!t.length},removeRegisteredValidator:function(e,t){var n=C.getGroupConfig(e),i=n&&n.validators,r=o(t,i);r>-1&&(i.splice(r,1),this._shouldRemoveGroup(e,i)&&this.removeGroup(e))},validateGroup:function(e){var t=C.getGroupConfig(e);if(!t)throw l.Error("E0110");return t.validate()},resetGroup:function(e){var t=C.getGroupConfig(e);if(!t)throw l.Error("E0110");return t.reset()}};C.initGroups(),e.exports=C},function(e,t,n){var i=n(9),r=n(108),o=n(84),a=Math.abs,s="dxhold",l=750,c=5,u=r.inherit({start:function(e){this._startEventData=i.eventData(e),this._startTimer(e)},_startTimer:function(e){var t="timeout"in this?this.timeout:l;this._holdTimer=setTimeout(function(){this._requestAccept(e),this._fireEvent(s,e,{target:e.target}),this._forgetAccept()}.bind(this),t)},move:function(e){this._touchWasMoved(e)&&this._cancel(e)},_touchWasMoved:function(e){var t=i.eventDelta(this._startEventData,i.eventData(e));return a(t.x)>c||a(t.y)>c},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}});o({emitter:u,bubble:!0,events:[s]}),e.exports={name:s}},function(e,t,n){var i=n(10),r=i.abstract,o=n(53),a=n(3).each,s=n(36),l=n(41),c=n(22).compileGetter,u=n(80),d=u.queryByOptions,h=n(7).Deferred,p={},f=i.inherit({ctor:function(e){var t=this;e=e||{},a(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","onRemoved","onRemoving","onModified","onModifying"],function(n,i){i in e&&t.on(i.slice(2).toLowerCase(),e[i])}),this._key=e.key,this._errorHandler=e.errorHandler,this._useDefaultSearch=!0},_customLoadOptions:function(){return null},key:function(){return this._key},keyOf:function(e){return this._keyGetter||(this._keyGetter=c(this.key())),this._keyGetter(e)},_requireKey:function(){if(!this.key())throw s.errors.Error("E4005")},load:function(e){var t=this;return e=e||{},this.fireEvent("loading",[e]),this._withLock(this._loadImpl(e)).done(function(n){t.fireEvent("loaded",[n,e])})},_loadImpl:function(e){return d(this.createQuery(e),e).enumerate()},_withLock:function(e){var t=new h;return e.done(function(){var e=this,n=arguments;l.processRequestResultLock.promise().done(function(){t.resolveWith(e,n)})}).fail(function(){t.rejectWith(this,arguments)}),t},createQuery:r,totalCount:function(e){return this._totalCountImpl(e)},_totalCountImpl:function(e){return d(this.createQuery(e),e,!0).count()},byKey:function(e,t){return this._addFailHandlers(this._withLock(this._byKeyImpl(e,t)))},_byKeyImpl:r,insert:function(e){var t=this;return t.fireEvent("modifying"),t.fireEvent("inserting",[e]),t._addFailHandlers(t._insertImpl(e).done(function(e,n){t.fireEvent("inserted",[e,n]),t.fireEvent("modified")}))},_insertImpl:r,update:function(e,t){var n=this;return n.fireEvent("modifying"),n.fireEvent("updating",[e,t]),n._addFailHandlers(n._updateImpl(e,t).done(function(e,t){n.fireEvent("updated",[e,t]),n.fireEvent("modified")}))},_updateImpl:r,remove:function(e){var t=this;return t.fireEvent("modifying"),t.fireEvent("removing",[e]),t._addFailHandlers(t._removeImpl(e).done(function(e){t.fireEvent("removed",[e]),t.fireEvent("modified")}))},_removeImpl:r,_addFailHandlers:function(e){return e.fail(this._errorHandler).fail(s._errorHandler)}}).include(o);f.create=function(e,t){if(!(e in p))throw s.errors.Error("E4020",e);return new p[e](t)},f.inherit=function(e){return function(t,n){var i=e.apply(this,[t]);return n&&(p[n]=i),i}}(f.inherit),e.exports=f},,,,function(e,t,n){var i=n(66),r=n(13),o=i.inherit({ctor:function(e){this._render=e},_renderCore:function(e){return r.normalizeTemplateElement(this._render(e))}});e.exports=o},function(e,t,n){var i,r=n(10),o=n(4),a=n(13).contains,s=n(14),l=n(9),c=n(25),u=n(108),d=n(84),h="dxactive",p="dxinactive",f=30,g=400,_=r.inherit({ctor:function(e,t){this._timeout=e,this._fire=t},start:function(){var e=this;this._schedule(function(){e.force()})},_schedule:function(e){this.stop(),this._timer=setTimeout(e,this._timeout)},stop:function(){clearTimeout(this._timer)},force:function(){this._fired||(this.stop(),this._fire(),this._fired=!0)},fired:function(){return this._fired}}),m=u.inherit({ctor:function(){this.callBase.apply(this,arguments),this._active=new _(0,o.noop),this._inactive=new _(0,o.noop)},configure:function(e,t){switch(t){case h:e.activeTimeout=e.timeout;break;case p:e.inactiveTimeout=e.timeout}this.callBase(e)},start:function(e){if(i){var t=a(this.getElement().get(0),i.getElement().get(0)),n=!i._active.fired();if(t&&n)return void this._cancel();i._inactive.force()}i=this,this._initEvents(e),this._active.start()},_initEvents:function(e){var t=this,n=this._getEmitterTarget(e),r=l.isMouseEvent(e),a=s.isSimulator(),c=a||!r,u=o.ensureDefined(this.activeTimeout,f),d=o.ensureDefined(this.inactiveTimeout,g);this._active=new _(c?u:0,function(){t._fireEvent(h,e,{target:n})}),this._inactive=new _(c?d:0,function(){t._fireEvent(p,e,{target:n}),i=null})},cancel:function(e){this.end(e)},end:function(e){var t=e.type!==c.up;t?this._active.stop():this._active.force(),this._inactive.start(),t&&this._inactive.force()},dispose:function(){this._active.stop(),this._inactive.stop(),this.callBase()},lockInactive:function(){return this._active.force(),this._inactive.stop(),i=null,this._cancel(),this._inactive.force.bind(this._inactive)}});m.lock=function(e){var t=i?i.lockInactive():o.noop;e.done(t)},d({emitter:m,events:[h,p]}),t.lock=m.lock,t.active=h,t.inactive=p},function(e,t,n){function i(e,t,n){var i=[],r=function(e){return e<10?"0".concat(e):String(e)},o=function(){return e.getHours()+e.getMinutes()+e.getSeconds()+e.getMilliseconds()<1};return i.push(e.getFullYear()),i.push("-"),i.push(r(e.getMonth()+1)),i.push("-"),i.push(r(e.getDate())),t&&o()||(i.push("T"),i.push(r(e.getHours())),i.push(":"),i.push(r(e.getMinutes())),i.push(":"),i.push(r(e.getSeconds())),e.getMilliseconds()&&(i.push("."),i.push(e.getMilliseconds())),n||i.push("Z")),i.join("")}function r(e){var t=new Date(60*new Date(0).getTimezoneOffset()*1e3),n=e.replace("Z","").split("T"),i=/(\d{4})-(\d{2})-(\d{2})/.exec(n[0]),r=/(\d{2}):(\d{2}):(\d{2})\.?(\d{0,7})?/.exec(n[1]);return t.setFullYear(Number(i[1])),t.setMonth(Number(i[2])-1),t.setDate(Number(i[3])),Array.isArray(r)&&r.length&&(t.setHours(Number(r[1])),t.setMinutes(Number(r[2])),t.setSeconds(Number(r[3])),t.setMilliseconds(Number(String(r[4]).substr(0,3))||0)),t}function o(e){return/^(?:[a-z]+:)?\/\//i.test(e)}function a(e,t){function n(e){var t=e.indexOf("?");return t>-1?e.substr(0,t):e}var i,r=n(e).split("/"),o=t.split("/");for(r.pop();o.length;)i=o.shift(),".."===i?r.pop():r.push(i);return r.join("/")}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=n(10),c=n(0).extend,u=n(1),d=n(3),h=n(3).each,p=n(72),f=n(50),g=u.isDefined,_=u.isPlainObject,m=n(4).grep,v=n(7).Deferred,y=n(36).errors,b=n(41),x=/^(\{{0,1}([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}\}{0,1})$/,S=/^\/Date\((-?\d+)((\+|-)?(\d+)?)\)\/$/,w=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[-+]{1}\d{2}(:?)(\d{2})?)?$/,C="application/json;odata=verbose",k=function(e){return"string"===u.type(e)?e.split():e},T=function(e){return/\./.test(e)},E=function(e){var t=[];for(var n in e)t.push(n+"="+e[n]);return t.join("&")},A=function(e,t,n){function r(t){return JSON.stringify(t,function(t,n){if(!(this[t]instanceof Date))return n;switch(n=i(this[t]),e){case 2:return n.substr(0,n.length-1);case 3:case 4:return n;default:throw y.Error("E4002")}})}t=c({async:!0,method:"get",url:"",params:{},payload:null,headers:{},timeout:3e4},t),n=n||{};var o=n.beforeSend;o&&o(t);var a=(t.method||"get").toLowerCase(),s="get"===a,l=s&&n.jsonp,u=c({},t.params),d=s?u:r(t.payload),h=!s&&E(u),p=t.url,f=!s&&C;return h&&(p+=(p.indexOf("?")>-1?"&":"?")+h),l&&(d.$format="json"),{url:p,data:d,dataType:l?"jsonp":"json",jsonp:l&&"$callback",method:a,async:t.async,timeout:t.timeout,headers:t.headers,contentType:f,accepts:{json:[C,"text/plain"].join()},xhrFields:{withCredentials:n.withCredentials}}},O=function e(t,n,i){var r=new v,s=A(t,n,i);return p.sendRequest(s).always(function(n,l){var c,u={deserializeDates:i.deserializeDates,fieldTypes:i.fieldTypes},d=M(n,l,u),h=d.error,p=d.data,f=d.nextUrl;h?h.message!==b.XHR_ERROR_UNLOAD&&r.reject(h):i.countOnly?isFinite(d.count)?r.resolve(d.count):r.reject(new y.Error("E4018")):f&&!i.isPaged?(o(f)||(f=a(s.url,f)),e(t,{url:f},i).fail(r.reject).done(function(e){r.resolve(p.concat(e))})):(isFinite(d.count)&&(c={totalCount:d.count}),r.resolve(p,c))}),r.promise()},I=function(e){var t,n=e;"message"in e&&(t=e.message.value?e.message.value:e.message);for(;(n=n.innererror||n.internalexception)&&(t=n.message,!n.internalexception||t.indexOf("inner exception")!==-1););return t},D=function(e,t){if("nocontent"===t)return null;var n=200,i="Unknown error",r=e;if("success"!==t){n=e.status,i=b.errorMessageFromXhr(e,t);try{r=JSON.parse(e.responseText)}catch(e){}}var o=r&&(r.then&&r||r.error||r["odata.error"]||r["@odata.error"]);return o?(i=I(o)||i,200===n&&(n=500),o.code&&(n=Number(o.code)),c(Error(i),{httpStatus:n,errorDetails:o})):200!==n?c(Error(i),{httpStatus:n}):void 0},M=function(e,t,n){var i,r=D(e,t);return r?{error:r}:_(e)?(i="d"in e&&(Array.isArray(e.d)||u.isObject(e.d))?P(e,t):L(e,t),R(i,n),i):{data:e}},P=function(e){var t=e.d;return g(t)?(g(t.results)&&(t=t.results),{data:t,nextUrl:e.d.__next,count:parseInt(e.d.__count,10)}):{error:Error("Malformed or unsupported JSON response received")}},L=function(e){var t=e;return g(t.value)&&(t=t.value),{data:t,nextUrl:e["@odata.nextLink"],count:parseInt(e["@odata.count"],10)}},B=l.inherit({ctor:function(e){this._value=e},valueOf:function(){return this._value}}),R=function e(t,n){n=n||{},h(t,function(i,o){if(null!==o&&"object"===("undefined"==typeof o?"undefined":s(o)))"results"in o&&(t[i]=o.results),e(t[i],n);else if("string"==typeof o){var a=n.fieldTypes,l=!a||"String"!==a[i];if(l&&x.test(o)&&(t[i]=new f(o)),n.deserializeDates!==!1)if(o.match(S)){var c=new Date(Number(RegExp.$1)+60*RegExp.$2*1e3);t[i]=new Date(c.valueOf()+60*c.getTimezoneOffset()*1e3)}else w.test(o)&&(t[i]=new Date(r(t[i]).valueOf()))}})},V=function(e){return"datetime'"+i(e,!0,!0)+"'"},F=function(e){return"'"+e.replace(/'/g,"''")+"'"},z=function(e){return e instanceof B?e.valueOf():e.replace(/\./g,"/")},N=function e(t){return t instanceof Date?i(t,!1,!1):t instanceof f?t.valueOf():Array.isArray(t)?"["+t.map(function(t){return e(t)}).join(",")+"]":H(t)},H=function(e){return e instanceof Date?V(e):e instanceof f?"guid'"+e+"'":e instanceof B?e.valueOf():"string"==typeof e?F(e):String(e)},G=function(e,t){switch(t){case 2:case 3:return H(e);case 4:return N(e);default:throw y.Error("E4002")}},W=function(e,t){if(_(e)){var n=[];return h(e,function(e,i){n.push(z(e)+"="+G(i,t))}),n.join()}return G(e,t)},j={String:function(e){return e+""},Int32:function(e){return Math.floor(e)},Int64:function(e){return e instanceof B?e:new B(e+"L")},Guid:function(e){return e instanceof f?e:new f(e)},Boolean:function(e){return!!e},Single:function(e){return e instanceof B?e:new B(e+"f")},Decimal:function(e){return e instanceof B?e:new B(e+"m")}},U=function(e,t){if(null===t)return null;var n=j[e];if(!n)throw y.Error("E4014",e);return n(t)},Y=function(e,t){if(t)return e<4?z(t.join()):m(t,T,!0).join()},$=function(e,t,n){var i=function(){var e={};return t&&d.each(k(t),function(){e[z(this)]=1}),n&&d.each(k(n),function(){var t=this.split(".");t.length<2||(t.pop(),e[z(t.join("."))]=1)}),d.map(e,function(e,t){return t}).join()},r=function(){var e=function(e){var t=function e(t){var n="",i=[],r=[];return d.each(t,function(t,n){Array.isArray(n)&&[].push.apply(i,n),_(n)&&r.push(t+e(n))}),(i.length||r.length)&&(n+="(",i.length&&(n+="$select="+d.map(i,z).join()),r.length&&(i.length&&(n+=";"),n+="$expand="+d.map(r,z).join()),n+=")"),n},n=[];return d.each(e,function(e,i){n.push(e+t(i))}),n.join()},i=function(e,t,n){var i=function e(t,n,i){var r=i(n,t.shift(),t);r!==!1&&e(t,r,i)};d.each(e,function(e,r){i(r.split("."),t,n)})},r={};if(t||n)return t&&i(k(t),r,function(e,t,n){return e[t]=e[t]||{},!!n.length&&e[t]}),n&&i(m(k(n),T),r,function(e,t,n){return n.length?e[t]=e[t]||{}:(e[t]=e[t]||[],e[t].push(t),!1)}),e(r)};return e<4?i():r()};t.sendRequest=O,t.serializePropName=z,t.serializeValue=G,t.serializeKey=W,t.keyConverters=j,t.convertPrimitiveValue=U,t.generateExpand=$,t.generateSelect=Y,t.EdmLiteral=B},,function(e,t,n){var i=n(7),r=n(6),o=i.Deferred,a=i.when,s=r.hasWindow()?r.getWindow().Promise:Promise;s||(s=function(e){var t=new o;return e(t.resolve.bind(this),t.reject.bind(this)),t.promise()},s.resolve=function(e){return(new o).resolve(e).promise()},s.reject=function(e){return(new o).reject(e).promise()},s.all=function(e){return a.apply(this,e).then(function(){return[].slice.call(arguments)})}),e.exports=s},function(e,t,n){var i=n(35),r=n(5),o=n(171),a=n(1).isDefined,s=n(129),l="dxComponents",c="dxPrivateComponent",u=new o,d=0,h=t.name=function(e,t){if(a(t))return void u.set(e,t);if(!u.has(e)){var n=c+d++;return u.set(e,n),n}return u.get(e)};t.attachInstanceToElement=function(e,t,n){var o=i.data(e.get(0)),a=h(t.constructor);o[a]=t,n&&r.one(e,s,function(){n.call(t)}),o[l]||(o[l]=[]),o[l].push(a)},t.getInstanceByElement=function(e,t){var n=h(t);return i.data(e.get(0),n)}},function(e,t,n){var i=n(66);e.exports=i.inherit({ctor:function(e){this.name=e}})},function(e,t,n){var i=n(0).extend,r=n(75),o=n(39),a=n(120),s="http://js.devexpress.com/error/"+a.split(".").slice(0,2).join("_")+"/";e.exports=function(e,t){var n={ERROR_MESSAGES:i(t,e),Error:function(){return u([].slice.call(arguments))},log:function(e){var t="log";/^E\d+$/.test(e)?t="error":/^W\d+$/.test(e)&&(t="warn"),r.logger[t]("log"===t?e:a([].slice.call(arguments)))}},a=function(e){var t=e[0];return e=e.slice(1),c(t,l(t,e))},l=function(e,t){return t=[n.ERROR_MESSAGES[e]].concat(t),o.format.apply(this,t).replace(/\.*\s*?$/,"")},c=function(e,t){return o.format.apply(this,["{0} - {1}. See:\n{2}",e,t,s+e])},u=function(e){var t,n,r;return t=e[0],e=e.slice(1),n=l(t,e),r=c(t,n),i(new Error(r),{__id:t,__details:n})};return n}},function(e,t,n){var i=n(30),r=function(e){var t=e||i().rtlEnabled;return t?"right":"left"};t.getDefaultAlignment=r},,function(e,t,n){var i=n(6),r=i.hasWindow()?i.getWindow():{},o=n(68),a=1e3/60,s=function(e){return setTimeout(e,a)},l=function(e){clearTimeout(e)},c=o(function(){var e=r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||r.oRequestAnimationFrame||r.msRequestAnimationFrame,t=r.cancelAnimationFrame||r.webkitCancelAnimationFrame||r.mozCancelAnimationFrame||r.oCancelAnimationFrame||r.msCancelAnimationFrame;if(e&&t&&(s=e,l=t),e&&!t){var n={};s=function(t){var i=e.call(r,function(){try{if(i in n)return;t.apply(this,arguments)}finally{delete n[i]}});return i},l=function(e){n[e]=!0}}});t.requestAnimationFrame=function(){return c(),s.apply(r,arguments)},t.cancelAnimationFrame=function(){c(),l.apply(r,arguments)}},function(e,t,n){var i=n(2),r=function(e){return!(!e||"string"!=typeof e)&&(/data:.*base64|\.|\//.test(e)?"image":/^[\w-_]+$/.test(e)?"dxIcon":"fontIcon")},o=function(e){var t=r(e),n="dx-icon";switch(t){case"image":return i("<img>").attr("src",e).addClass(n);case"fontIcon":return i("<i>").addClass(n+" "+e);case"dxIcon":return i("<i>").addClass(n+" "+n+"-"+e);default:return null}};t.getImageSourceType=r,t.getImageContainer=o},function(e,t,n){var i=n(172);e.exports=new i},function(e,t,n){var i=n(2),r=n(4).noop,o=n(10),a=n(19),s=n(0).extend,l=n(9),c=o.inherit({ctor:function(e){this._$element=i(e),this._cancelCallback=a(),this._acceptCallback=a()},getElement:function(){return this._$element},validate:function(e){return"dxmousewheel"!==e.type},validatePointers:function(e){return 1===l.hasTouches(e)},allowInterruptionByMouseWheel:function(){return!0},configure:function(e){s(this,e)},addCancelCallback:function(e){this._cancelCallback.add(e)},removeCancelCallback:function(){this._cancelCallback.empty()},_cancel:function(e){this._cancelCallback.fire(this,e)},addAcceptCallback:function(e){this._acceptCallback.add(e)},removeAcceptCallback:function(){this._acceptCallback.empty()},_accept:function(e){this._acceptCallback.fire(this,e)},_requestAccept:function(e){this._acceptRequestEvent=e},_forgetAccept:function(){this._accept(this._acceptRequestEvent),this._acceptRequestEvent=null},start:r,move:r,end:r,cancel:r,reset:function(){this._acceptRequestEvent&&this._accept(this._acceptRequestEvent)},_fireEvent:function(e,t,n){var i=s({type:e,originalEvent:t,target:this._getEmitterTarget(t),delegateTarget:this.getElement().get(0)},n);return t=l.fireEvent(i),t.cancel&&this._cancel(t),t},_getEmitterTarget:function(e){return(this.delegateSelector?i(e.target).closest(this.delegateSelector):this.getElement()).get(0)},dispose:r});e.exports=c},function(e,t,n){var i=n(56);if(i){var r=n(17),o=n(59).compare;if(o(i.version,[2,3])<0)throw r.Error("E0013");n(326),n(329),n(330),n(331),n(332),n(333),n(334)}},function(e,t,n){var i=n(56),r=n(3).each,o=n(228),a=function(e,t,n){for(var i=[],r=0,o=e.length;r<o;r++)n(e[r],t)||i.push(e[r]);return i.push.apply(i,t),i},s=function(e,t){var n=!1;return r(t,function(t,i){var r=e.option("id")===i.option("id")&&i.option("id"),o=e.option("behavior")===i.option("behavior")&&e.option("behavior");if(n=r||o,o&&null===i.option("onExecute")&&i.option("onExecute",e.option("onExecute")),n)return e.$element().remove(),!1}),n},l=function(e,t){return a(e,t,s)},c=function(e,t,n,i){var r=t?t[n]:void 0,o=void 0===r?i:r,a=e.option(n);return void 0===a||a===i?o:a},u=function(e,t){var n=c(e,t,"showText"),i=!!e.option("icon"),r=c(e,t,"title","");return n||!i?r:""},d=function(e,t){var n=c(e,t,"showIcon"),i=!!e.option("title"),r=c(e,t,"icon","");return n||!i?r:""};t.utils={mergeCommands:l,commandToContainer:{resolveIconValue:d,resolveTextValue:u,resolvePropertyValue:c}},t.templateProvider={createTemplate:function(e){return new o(e)},applyTemplate:function(e,t){i.applyBindings(t,e)}}},function(e,t,n){n(43);var i=n(26),r=n(10),o=n(19),a=n(4),s=n(3),l=n(1).isPlainObject,c=n(0).extend,u=n(142),d=n(53),h=n(62),p=n(223).processCallback,f=n(136),g=n(7).when,_={current:"current",blank:"blank",back:"back"},m="__history",v=r.inherit({ctor:function(e){e=e||{},this._currentItem=void 0,this._previousItem=void 0,this._createNavigationDevice(e)},_createNavigationDevice:function(e){this._navigationDevice=e.navigationDevice||new u.HistoryBasedNavigationDevice,this._navigationDevice.uriChanged.add(this._uriChangedHandler.bind(this))},_uriChangedHandler:function(e){for(;f(););this.navigate(e)},_syncUriWithCurrentNavigationItem:function(){var e=this._currentItem&&this._currentItem.uri;this._navigationDevice.setUri(e,!0)},_cancelNavigation:function(e){this._syncUriWithCurrentNavigationItem(),this.fireEvent("navigationCanceled",[e])},_getDefaultOptions:function(){return{direction:"none",target:_.blank}},_updateHistory:function(e,t){this._previousItem=this._currentItem,this._currentItem={uri:e,key:e},this._navigationDevice.setUri(e,t.target===_.current)},_setCurrentItem:function(e){this._currentItem=e},navigate:function(e,t){t=t||{};var n,r=this,o=!r._currentItem,s=r._currentItem||{},l=t.item||{},u=s.uri,d=s.key,h=l.key;return void 0===e&&(e=r._navigationDevice.getUri()),/^_back$/.test(e)?void r.back():(t=c(r._getDefaultOptions(),t||{}),o&&(t.target=_.current),n={currentUri:u,uri:e,cancel:!1,navigateWhen:[],options:t},r.fireEvent("navigating",[n]),e=n.uri,void(n.cancel||u===e&&(void 0===h||h===d)&&!r._forceNavigate?r._cancelNavigation(n):(r._forceNavigate=!1,g.apply(i,n.navigateWhen).done(function(){a.executeAsync(function(){r._updateHistory(e,t),r.fireEvent("navigated",[{uri:e,previousUri:u,options:t,item:r._currentItem}])})}))))},back:function(){return this._navigationDevice.back()},previousItem:function(){return this._previousItem},currentItem:function(e){if(!(arguments.length>0))return this._currentItem;if(!e)throw h.Error("E3023");this._setCurrentItem(e)},rootUri:function(){return this._currentItem&&this._currentItem.uri},canBack:function(){return!0},saveState:a.noop,restoreState:a.noop,removeState:a.noop}).include(d),y=v.inherit({ctor:function(e){e=e||{},this.callBase(e),this._createNavigationStacks(e),p.add(this._deviceBackInitiated.bind(this)),this._stateStorageKey=e.stateStorageKey||m},init:function(){return this._navigationDevice.init()},_createNavigationDevice:function(e){e.navigationDevice||(e.navigationDevice=new u.StackBasedNavigationDevice),this.callBase(e),this._navigationDevice.backInitiated.add(this._deviceBackInitiated.bind(this))},_uriChangedHandler:function(e){this.navigate(e)},_createNavigationStacks:function(e){this.navigationStacks={},this._keepPositionInStack=e.keepPositionInStack,this.currentStack=new b},_deviceBackInitiated:function(){f()?this._syncUriWithCurrentNavigationItem():this.back({isHardwareButton:!0})},_getDefaultOptions:function(){return{target:_.blank}},_createNavigationStack:function(){var e=new b;return e.itemsRemoved.add(this._removeItems.bind(this)),e},_setCurrentItem:function(e){this._setCurrentStack(e.stack),this.currentStack.currentItem(e),this.callBase(e),this._syncUriWithCurrentNavigationItem()},_setCurrentStack:function(e){var t,n;"string"==typeof e?(n=e,n in this.navigationStacks||(this.navigationStacks[n]=this._createNavigationStack()),t=this.navigationStacks[n]):(t=e,n=s.map(this.navigationStacks,function(t,n){return t===e?n:null})[0]),this.currentStack=t,this.currentStackKey=n},_getViewTargetStackKey:function(e,t){var n;if(t)if(void 0!==this.navigationStacks[e])n=e;else{for(var i in this.navigationStacks)if(this.navigationStacks[i].items[0].uri===e){n=i;break}n=n||e}else n=this.currentStackKey||e;return n},_updateHistory:function(e,t){var n=t.root,i=n,r=!1,o=this.currentStack,a=void 0!==t.keepPositionInStack?t.keepPositionInStack:this._keepPositionInStack;if(t.stack=t.stack||this._getViewTargetStackKey(e,n),this._setCurrentStack(t.stack),!n&&this.currentStack.items.length||(r=this.currentStack===o,i=!0),n&&this.currentStack.items.length)a&&!r||(this.currentStack.currentIndex=0,this.currentItem().uri!==e&&this.currentStack.navigate(e,!0)),t.direction=t.direction||"none";else{var s=this.currentStack.currentIndex,l=this.currentItem()||{};switch(t.target){case _.blank:this.currentStack.navigate(e);break;case _.current:this.currentStack.navigate(e,!0);break;case _.back:this.currentStack.currentIndex>0?this.currentStack.back(e):this.currentStack.navigate(e,!0);break;default:throw h.Error("E3006",t.target)}if(void 0===t.direction){var c=this.currentStack.currentIndex-s;c<0?t.direction=this.currentStack.currentItem().backDirection||"backward":c>0&&this.currentStack.currentIndex>0?t.direction="forward":t.direction="none"}l.backDirection="forward"===t.direction?"backward":"none"}t.root=i,this._currentItem=this.currentStack.currentItem(),this._syncUriWithCurrentNavigationItem()},_removeItems:function(e){var t=this;s.each(e,function(e,n){t.fireEvent("itemRemoved",[n])})},back:function(e){e=e||{};var t=c({cancel:!1},e);if(this.fireEvent("navigatingBack",[t]),t.cancel)return void this._syncUriWithCurrentNavigationItem();var n=this.previousItem(t.stack);n?this.navigate(n.uri,{stack:t.stack,target:_.back,item:n}):this.callBase()},rootUri:function(){return this.currentStack.items.length?this.currentStack.items[0].uri:this.callBase()},canBack:function(e){var t=e?this.navigationStacks[e]:this.currentStack;return!!t&&t.canBack()},saveState:function(e){if(this.currentStack.items.length){var t={navigationStacks:{},currentStackKey:this.currentStackKey};s.each(this.navigationStacks,function(e,n){var i={};t.navigationStacks[e]=i,i.currentIndex=n.currentIndex,i.items=s.map(n.items,function(e){return{key:e.key,uri:e.uri}})});var n=JSON.stringify(t);e.setItem(this._stateStorageKey,n)}else this.removeState(e)},restoreState:function(e){if(!this.disableRestoreState){var t=e.getItem(this._stateStorageKey);if(t)try{var n=this,i=JSON.parse(t);s.each(i.navigationStacks,function(e,t){var i=n._createNavigationStack();n.navigationStacks[e]=i,i.currentIndex=t.currentIndex,i.items=s.map(t.items,function(e){return e.stack=i,e})}),this.currentStackKey=i.currentStackKey,this.currentStack=this.navigationStacks[this.currentStackKey],this._currentItem=this.currentStack.currentItem(),this._navigationDevice.setUri(this.currentItem().uri),this._forceNavigate=!0}catch(t){throw this.removeState(e),h.Error("E3007")}}},removeState:function(e){e.removeItem(this._stateStorageKey)},currentIndex:function(){return this.currentStack.currentIndex},previousItem:function(e){var t=this.navigationStacks[e]||this.currentStack;return t.previousItem()},getItemByIndex:function(e){return this.currentStack.items[e]},clearHistory:function(){this._createNavigationStacks({keepPositionInStack:this._keepPositionInStack})},itemByKey:function(e){var t;return s.each(this.navigationStacks,function(n,i){var r=i.itemByKey(e);if(r)return t=r,!1}),t},currentItem:function(e){var t;return arguments.length>0?("string"==typeof e?t=this.itemByKey(e):l(e)&&(t=e),void this.callBase(t)):this.callBase()}}),b=r.inherit({ctor:function(e){e=e||{},this.itemsRemoved=o(),this.clear()},currentItem:function(e){if(!e)return this.items[this.currentIndex];for(var t=0;t<this.items.length;t++)if(e===this.items[t]){this.currentIndex=t;break}},previousItem:function(){return this.items.length>1?this.items[this.currentIndex-1]:void 0},canBack:function(){return this.currentIndex>0},clear:function(){this._deleteItems(this.items),this.items=[],this.currentIndex=-1},back:function(e){if(this.currentIndex--,this.currentIndex<0)throw h.Error("E3008");var t=this.currentItem();t.uri!==e&&this._updateItem(this.currentIndex,e)},forward:function(){if(this.currentIndex++,this.currentIndex>=this.items.length)throw h.Error("E3009")},navigate:function(e,t){if(!(this.currentIndex<this.items.length&&this.currentIndex>-1&&this.items[this.currentIndex].uri===e)){if(t&&this.currentIndex>-1&&this.currentIndex--,this.currentIndex+1<this.items.length&&this.items[this.currentIndex+1].uri===e)this.currentIndex++;else{var n=this.items.splice(this.currentIndex+1,this.items.length-this.currentIndex-1);this.items.push({stack:this}),this.currentIndex++,this._updateItem(this.currentIndex,e),this._deleteItems(n)}return this.currentItem()}},itemByKey:function(e){for(var t=0;t<this.items.length;t++){var n=this.items[t];if(n.key===e)return n}},_updateItem:function(e,t){var n=this.items[e];n.uri=t,n.key=this.items[0].uri+"_"+e+"_"+t},_deleteItems:function(e){
16
- e&&this.itemsRemoved.fire(e)}});t.HistoryBasedNavigationManager=v,t.StackBasedNavigationManager=y,t.NavigationStack=b},function(e,t,n){var i=n(52).DataSource,r=n(0).extend,o=n(52).normalizeDataSourceOptions,a="_dataSourceOptions",s="_dataSourceChangedHandler",l="_dataSourceLoadErrorHandler",c="_dataSourceLoadingChangedHandler",u="_dataSourceFromUrlLoadMode",d="_getSpecificDataSourceOption",h={postCtor:function(){this.on("disposing",function(){this._disposeDataSource()}.bind(this))},_refreshDataSource:function(){this._initDataSource(),this._loadDataSource()},_initDataSource:function(){var e,t,n=d in this?this[d]():this.option("dataSource");this._disposeDataSource(),n&&(n instanceof i?(this._isSharedDataSource=!0,this._dataSource=n):(e=a in this?this[a]():{},t=this._dataSourceType?this._dataSourceType():i,n=o(n,{fromUrlLoadMode:u in this&&this[u]()}),this._dataSource=new t(r(!0,{},e,n))),this._addDataSourceHandlers())},_addDataSourceHandlers:function(){s in this&&this._addDataSourceChangeHandler(),l in this&&this._addDataSourceLoadErrorHandler(),c in this&&this._addDataSourceLoadingChangedHandler(),this._addReadyWatcher()},_addReadyWatcher:function(){this._dataSource.on("loadingChanged",function(e){this._ready&&this._ready(!e)}.bind(this))},_addDataSourceChangeHandler:function(){var e=this._dataSource;this._proxiedDataSourceChangedHandler=function(){this[s](e.items())}.bind(this),e.on("changed",this._proxiedDataSourceChangedHandler)},_addDataSourceLoadErrorHandler:function(){this._proxiedDataSourceLoadErrorHandler=this[l].bind(this),this._dataSource.on("loadError",this._proxiedDataSourceLoadErrorHandler)},_addDataSourceLoadingChangedHandler:function(){this._proxiedDataSourceLoadingChangedHandler=this[c].bind(this),this._dataSource.on("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)},_loadDataSource:function(){if(this._dataSource){var e=this._dataSource;e.isLoaded()?this._proxiedDataSourceChangedHandler&&this._proxiedDataSourceChangedHandler():e.load()}},_loadSingle:function(e,t){return e="this"===e?this._dataSource.key()||"this":e,this._dataSource.loadSingle(e,t)},_isLastPage:function(){return!this._dataSource||this._dataSource.isLastPage()||!this._dataSource._pageSize},_isDataSourceLoading:function(){return this._dataSource&&this._dataSource.isLoading()},_disposeDataSource:function(){this._dataSource&&(this._isSharedDataSource?(delete this._isSharedDataSource,this._proxiedDataSourceChangedHandler&&this._dataSource.off("changed",this._proxiedDataSourceChangedHandler),this._proxiedDataSourceLoadErrorHandler&&this._dataSource.off("loadError",this._proxiedDataSourceLoadErrorHandler),this._proxiedDataSourceLoadingChangedHandler&&this._dataSource.off("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)):this._dataSource.dispose(),delete this._dataSource,delete this._proxiedDataSourceChangedHandler,delete this._proxiedDataSourceLoadErrorHandler,delete this._proxiedDataSourceLoadingChangedHandler)},getDataSource:function(){return this._dataSource||null}};e.exports=h},function(e,t,n){var i=n(64),r=n(81);if(i&&i.load){var o={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11965 $"},likelySubtags:{en:"en-Latn-US",de:"de-Latn-DE",ru:"ru-Cyrl-RU",ja:"ja-Jpan-JP"}}};i.locale()||(i.load(o),i.locale("en")),r.inject({locale:function(e){return e?void i.locale(e):i.locale().locale}})}},,function(e,t,n){function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=n(30),l=n(12),c=n(0).extend,u=n(10),d=n(76),h=n(17),p=n(22),f=n(4),g=n(1),_=n(7),m=_.Deferred,v=_.when,y=n(19),b=n(53),x=n(100),S=n(14),w=g.isFunction,C=f.noop,k={},T={},E=function(){function e(){r(this,e),this._postponedOperations={}}return a(e,[{key:"add",value:function(e,t,n){if(e in this._postponedOperations)n&&this._postponedOperations[e].promises.push(n);else{var i=new m;this._postponedOperations[e]={fn:t,completePromise:i,promises:n?[n]:[]}}return this._postponedOperations[e].completePromise.promise()}},{key:"callPostponedOperations",value:function(){for(var e in this._postponedOperations){var t=this._postponedOperations[e];t.promises&&t.promises.length?v.apply(void 0,i(t.promises)).done(t.fn).then(t.completePromise.resolve):t.fn().done(t.completePromise.resolve)}this._postponedOperations={}}}]),e}(),A=u.inherit({_setDeprecatedOptions:function(){this._deprecatedOptions={}},_getDeprecatedOptions:function(){return this._deprecatedOptions},_getOptionAliasesByName:function(e){var t=this;return Object.keys(this._deprecatedOptions).filter(function(n){return e===t._deprecatedOptions[n].alias})},_getDefaultOptions:function(){return{onInitialized:null,onOptionChanged:null,onDisposing:null,defaultOptionsRules:null}},_setDefaultOptions:function(){this._options=this._getDefaultOptions()},_defaultOptionsRules:function(){return[]},_setOptionsByDevice:function(e){var t=this._defaultOptionsRules();Array.isArray(e)&&(t=t.concat(e));var n=this._convertRulesToOptions(t);c(!0,this._options,n);for(var i in this._optionsByReference)n.hasOwnProperty(i)&&(this._options[i]=n[i])},_convertRulesToOptions:function(e){for(var t={},n=S.current(),i=function(e,t){var n=[];return Array.prototype.push.call(n,t),1===n.length&&g.isEmptyObject(n[0])||f.findBestMatches(e,n).length>0},r=0;r<e.length;r++){var o,a=e[r],s=a.device||{};o=w(s)?s(n):i(n,s),o&&c(t,a.options)}return t},_isInitialOptionValue:function(e){var t=this.option(e),n=this.initialOption(e),i=w(t)&&w(n)?t.toString()===n.toString():f.equalByValue(t,n);return i},_setOptionsByReference:function(){this._optionsByReference={}},_getOptionsByReference:function(){return this._optionsByReference},ctor:function(e){this.NAME=x.name(this.constructor),e=e||{},e.eventsStrategy&&this.setEventsStrategy(e.eventsStrategy),this._options={},this._updateLockCount=0,this._optionChangedCallbacks=e._optionChangedCallbacks||y(),this._disposingCallbacks=e._disposingCallbacks||y(),this.postponedOperations=new E,this.beginUpdate();try{this._suppressDeprecatedWarnings(),this._setOptionsByReference(),this._setDeprecatedOptions(),this._setDefaultOptions(),e&&e.onInitializing&&e.onInitializing.apply(this,[e]),this._setOptionsByDevice(e.defaultOptionsRules),this._resumeDeprecatedWarnings(),this._initOptions(e)}finally{this.endUpdate()}},_initOptions:function(e){this.option(e)},_optionValuesEqual:function(e,t,n){if(t=p.toComparable(t,!0),n=p.toComparable(n,!0),t&&n&&g.isRenderer(t)&&g.isRenderer(n))return n.is(t);var i=t!==t,r=n!==n;return!(!i||!r)||!(null!==t&&"object"===("undefined"==typeof t?"undefined":o(t))&&!l.isElementNode(t))&&t===n},_init:function(){this._createOptionChangedAction(),this.on("disposing",function(e){this._disposingCallbacks.fireWith(this,[e])}.bind(this))},_createOptionChangedAction:function(){this._optionChangedAction=this._createActionByOption("onOptionChanged",{excludeValidators:["disabled","readOnly","designMode"]})},_createDisposingAction:function(){this._disposingAction=this._createActionByOption("onDisposing",{excludeValidators:["disabled","readOnly","designMode"]})},_optionChanged:function(e){switch(e.name){case"onDisposing":case"onInitialized":break;case"onOptionChanged":this._createOptionChangedAction();break;case"defaultOptionsRules":}},_dispose:function(){this._optionChangedCallbacks.empty(),this._createDisposingAction(),this._disposingAction(),this._disposeEvents(),this._disposed=!0},instance:function(){return this},beginUpdate:function(){this._updateLockCount++},endUpdate:function(){if(this._updateLockCount=Math.max(this._updateLockCount-1,0),!this._updateLockCount&&(this.postponedOperations.callPostponedOperations(),!this._initializing&&!this._initialized)){this._initializing=!0;try{this._init()}finally{this._initializing=!1,this._updateLockCount++,this._createActionByOption("onInitialized",{excludeValidators:["disabled","readOnly","designMode"]})(),this._updateLockCount--,this._initialized=!0}}},_logWarningIfDeprecated:function(e){var t=this._deprecatedOptions[e];t&&!this._deprecatedOptionsSuppressed&&this._logDeprecatedWarning(e,t)},_logDeprecatedWarningCount:0,_logDeprecatedWarning:function(e,t){var n=t.message||"Use the '"+t.alias+"' option instead";h.log("W0001",this.NAME,e,t.since,n),++this._logDeprecatedWarningCount},_suppressDeprecatedWarnings:function(){this._deprecatedOptionsSuppressed=!0},_resumeDeprecatedWarnings:function(){this._deprecatedOptionsSuppressed=!1},_optionChanging:C,_notifyOptionChanged:function(e,t,n){var i=this;if(this._initialized)for(var r=[e].concat(i._getOptionAliasesByName(e)),o=0;o<r.length;o++){var a=r[o],s={name:a.split(/[.[]/)[0],fullName:a,value:t,previousValue:n};i._optionChangedCallbacks.fireWith(i,[c(i._defaultActionArgs(),s)]),i._optionChangedAction(c({},s)),i._disposed||i._optionChanged(s)}},initialOption:function(e){var t,n=this._initialized;return this._initialOptions||(t=this._options,this._options={},this._initialized=!1,this._setDefaultOptions(),this._setOptionsByDevice(t.defaultOptionsRules),this._initialOptions=this._options,this._options=t,this._initialized=n),this._initialOptions[e]},_defaultActionConfig:function(){return{context:this,component:this}},_defaultActionArgs:function(){return{component:this}},_createAction:function(e,t){var n,i=this;return function(r){return arguments.length||(r={}),g.isPlainObject(r)||(r={actionValue:r}),n=n||new d(e,c(t,i._defaultActionConfig())),n.execute.call(n,c(r,i._defaultActionArgs()))}},_createActionByOption:function(e,t){var n,i,r,o=this,a=function(){if(!i){if(t=t||{},"string"!=typeof e)throw h.Error("E0008");0===e.indexOf("on")&&(i=o._getEventName(e)),r=o.option(e)}if(n||r||t.beforeExecute||t.afterExecute||o.hasEvent(i)){if(!n){var a=t.beforeExecute;t.beforeExecute=function(e){a&&a.apply(o,arguments),o.fireEvent(i,e.args)},o._suppressDeprecatedWarnings(),n=o._createAction(r,t),o._resumeDeprecatedWarnings()}if(s().wrapActionsBeforeExecute){var l=o.option("beforeActionExecute")||C,c=l(o,n,t)||n;return c.apply(o,arguments)}return n.apply(o,arguments)}};if(!s().wrapActionsBeforeExecute){var l=o.option("onActionCreated")||C;a=l(o,a,t)||a}return a},_getEventName:function(e){return e.charAt(2).toLowerCase()+e.substr(3)},hasActionSubscription:function(e){return!!this.option(e)||this.hasEvent(this._getEventName(e))},isOptionDeprecated:function(e){var t=this._getDeprecatedOptions();return t.hasOwnProperty(e)},option:function(){var e=function(e,t){var n;if(t){if(!e._cachedDeprecateNames){e._cachedDeprecateNames=[];for(var i in e._deprecatedOptions)e._cachedDeprecateNames.push(i)}for(var r=0;r<e._cachedDeprecateNames.length;r++)if(e._cachedDeprecateNames[r]===t){n=e._deprecatedOptions[t];break}if(n){e._logWarningIfDeprecated(t);var o=n.alias;o&&(t=o)}}return t},t=function(e){var t=e.split(".");return t.pop(),t.join(".")},n=function(e){var t=e.split(".");return t[t.length-1]},i=function(e,t,n){var i=k[t];return i||(i=k[t]=p.compileGetter(t)),i(e,{functionsAsIs:!0,unwrapObservables:n})},r=function(e,r){delete e[r];var o=t(r),a=n(r),s=o?i(e,o,!1):e;s&&delete s[a]},o=function(e,r,o){var a,s="";do s&&(s="."+s),s=n(r)+s,r=t(r),a=r?i(e,r,!1):e;while(!a);a[s]=o},a=function(t,n,i,a){if(i){var s=e(t,i);s&&s!==i&&(o(n,s,a),r(n,i))}},s=function e(t,n,i,r){if(g.isPlainObject(r))for(var o in r)e(t,n,i+"."+o,r[o]);a(t,n,i,r)},l=function(e,t,n){T[t]||(T[t]=p.compileSetter(t));var i=t.split(/[.[]/);T[t](e._options,n,{functionsAsIs:!0,merge:!e._getOptionsByReference()[t],unwrapObservables:i.length>1&&!!e._getOptionsByReference()[i[0]]})},c=function(e,t,n){var r=i(e._options,t,!1);e._optionValuesEqual(t,r,n)||(e._initialized&&e._optionChanging(t,r,n),l(e,t,n),e._notifyOptionChanged(t,n,r))};return function(t,n){var r=this,o=t;if(arguments.length<2&&"object"!==g.type(o))return o=e(r,o),i(r._options,o);"string"==typeof o&&(t={},t[o]=n),r.beginUpdate();try{var a;for(a in t)s(r,t,a,t[a]);for(a in t)c(r,a,t[a])}finally{r.endUpdate()}}}(),_getOptionValue:function(e,t){var n=this.option(e);return w(n)?n.bind(t)():n}}).include(b);e.exports=A,e.exports.PostponedOperations=E},function(e,t,n){var i=n(2),r=n(10),o=n(0).extend,a=n(4),s=n(1),l=n(3),c=n(32),u=n(139),d=n(7),h=d.when,p=d.Deferred,f={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},g="dx-animating",_=r.inherit({ctor:function(){this._accumulatedDelays={enter:0,leave:0},this._animations=[],this.reset()},_createAnimations:function(e,t,n,r){var o,a=this,s=[];return n=n||{},o=this._prepareElementAnimationConfig(t,n,r),o&&e.each(function(){var e=a._createAnimation(i(this),o,n);e&&(e.element.addClass(g),e.setup(),s.push(e))}),s},_prepareElementAnimationConfig:function(e,t,n){var i;if("string"==typeof e){var r=e;e=u.presets.getPreset(r)}if(e)if(s.isFunction(e[n]))i=e[n];else{if(i=o({skipElementInitialStyles:!0,cleanupWhen:this._completePromise},e,t),!i.type||"css"===i.type){var a="dx-"+n,l=(i.extraCssClasses?" "+i.extraCssClasses:"")+f[i.direction];i.type="css",i.from=(i.from||a)+l,i.to=i.to||a+"-active"}i.staggerDelay=i.staggerDelay||0,i.delay=i.delay||0,i.staggerDelay&&(i.delay+=this._accumulatedDelays[n],this._accumulatedDelays[n]+=i.staggerDelay)}else i=void 0;return i},_createAnimation:function(e,t,n){var i;return s.isPlainObject(t)?i=c.createAnimation(e,t):s.isFunction(t)&&(i=t(e,n)),i},_startAnimations:function(){for(var e=this._animations,t=0;t<e.length;t++)e[t].start()},_stopAnimations:function(e){for(var t=this._animations,n=0;n<t.length;n++)t[n].stop(e)},_clearAnimations:function(){for(var e=this._animations,t=0;t<e.length;t++)e[t].element.removeClass(g);this._animations.length=0},reset:function(){this._accumulatedDelays.enter=0,this._accumulatedDelays.leave=0,this._clearAnimations(),this._completeDeferred=new p,this._completePromise=this._completeDeferred.promise()},enter:function(e,t,n){var i=this._createAnimations(e,t,n,"enter");this._animations.push.apply(this._animations,i)},leave:function(e,t,n){var i=this._createAnimations(e,t,n,"leave");this._animations.push.apply(this._animations,i)},start:function(){var e,t=this;if(this._animations.length){var n=l.map(this._animations,function(e){var t=new p;return e.deferred.always(function(){t.resolve()}),t.promise()});e=h.apply(i,n).always(function(){t._completeDeferred.resolve(),t.reset()}),a.executeAsync(function(){t._startAnimations()})}else t.reset(),e=(new p).resolve().promise();return e},stop:function(e){this._stopAnimations(e)}});t.TransitionExecutor=_},function(e,t,n){var i=n(2),r=n(5),o=n(12),a=n(68),s=n(61),l=n(9),c="dxmousewheel",u="dxWheel",d=a(function(){return o.hasDocumentProperty("onwheel")?"wheel":"mousewheel"}),h={setup:function(e){var t=i(e);r.on(t,l.addNamespace(d(),u),h._wheelHandler.bind(h))},teardown:function(e){r.off(e,"."+u)},_wheelHandler:function(e){var t=this._getWheelDelta(e.originalEvent);l.fireEvent({type:c,originalEvent:e,delta:t,pointerType:"mouse"}),e.stopPropagation()},_getWheelDelta:function(e){return e.wheelDelta?e.wheelDelta:30*-e.deltaY}};s(c,h),t.name=c},,function(e,t,n){var i=n(6),r=i.getWindow(),o=r.DevExpress=r.DevExpress||{},a=o.errors=n(17);if(o._DEVEXTREME_BUNDLE_INITIALIZED)throw a.Error("E0024");o._DEVEXTREME_BUNDLE_INITIALIZED=!0,o.clientExporter=n(187),o.VERSION=n(120),o.Class=n(10),o.DOMComponent=n(58),o.registerComponent=n(8),o.devices=n(14),o.Color=n(86);var s=n(105);o.EventsMixin=n(53),o.utils={},o.utils.requestAnimationFrame=s.requestAnimationFrame,o.utils.cancelAnimationFrame=s.cancelAnimationFrame,o.utils.initMobileViewport=n(222).initMobileViewport,o.utils.extendFromObject=n(0).extendFromObject,o.utils.createComponents=n(13).createComponents,o.utils.triggerShownEvent=n(13).triggerShownEvent,o.utils.triggerHidingEvent=n(13).triggerHidingEvent,o.utils.resetActiveElement=n(13).resetActiveElement,o.utils.findBestMatches=n(4).findBestMatches,o.createQueue=n(173).create,o.utils.dom=n(13),o.utils.common=n(4),o.utils.date=n(23),o.utils.browser=n(29),o.utils.inflector=n(37),o.utils.iterator=n(3),o.utils.resizeCallbacks=n(121),o.utils.console=n(75),o.utils.string=n(39),o.utils.support=n(40),o.processHardwareBackButton=n(223),o.viewPort=n(73).value,o.hideTopOverlay=n(136),o.formatHelper=n(88),o.config=n(30),o.animationPresets=n(139).presets,o.fx=n(32),o.TransitionExecutor=n(116).TransitionExecutor,o.AnimationPresetCollection=n(139).PresetCollection,o.events=n(319),o.events.click=n(18),o.events.utils=n(9),o.events.GestureEmitter=n(146),o.localization=n(322),e.exports=o},function(e,t,n){e.exports="18.1.13"},function(e,t,n){var i=n(6),r=n(12),o=n(19),a=n(51),s=n(68),l=function(){var e,t=o(),n=t.add,l=t.remove;if(!i.hasWindow())return t;var c,u=function(){var e=r.getDocumentElement();return{width:e.clientWidth,height:e.clientHeight}},d=function(){var n=u();if(n.width!==e.width||n.height!==e.height){var i;n.width===e.width&&(i="height"),n.height===e.height&&(i="width"),e=n,t.fire(i)}},h=s(function(){e=u()});return t.add=function(){var e=n.apply(t,arguments);return h(),a.add(function(){!c&&t.has()&&(c=r.listen(i.getWindow(),"resize",d))}),e},t.remove=function(){var e=l.apply(t,arguments);return!t.has()&&c&&(c(),c=void 0),e},t}();e.exports=l},function(e,t,n){var i=n(2),r=n(66),o=r.inherit({_renderCore:function(){return i()}});e.exports=o},function(e,t,n){var i=n(2),r=n(10),o=n(3).each,a=n(100),s="dx-state-invisible",l="dx-state-disabled",c="dx-item-content-placeholder",u=function(e,t,n){var i=function(){var e;return function(t){e!==t&&(n(t,e),e=t)}}();return{dispose:e(t,i),force:function(){i(t())}}},d=r.inherit({ctor:function(e,t,n){this._$element=e,this._options=t,this._rawData=n,a.attachInstanceToElement(e,this,this._dispose),this._render()},_render:function(){var e=i("<div>").addClass(c);this._$element.append(e),this._watchers=[],this._renderWatchers()},_renderWatchers:function(){this._startWatcher("disabled",this._renderDisabled.bind(this)),this._startWatcher("visible",this._renderVisible.bind(this))},_startWatcher:function(e,t){var n=this._rawData,i=this._options.fieldGetter(e),r=u(this._options.watchMethod(),function(){return i(n)},function(e,n){this._dirty=!0,t(e,n)}.bind(this));this._watchers.push(r)},setDataField:function(){if(this._dirty=!1,o(this._watchers,function(e,t){t.force()}),this._dirty)return!0},_renderDisabled:function(e,t){this._$element.toggleClass(l,!!e)},_renderVisible:function(e,t){this._$element.toggleClass(s,void 0!==e&&!e)},_dispose:function(){o(this._watchers,function(e,t){t.dispose()})}});d.getInstance=function(e){return a.getInstanceByElement(e,this)},e.exports=d},function(e,t,n){var i=n(9),r=n(146),o=n(84),a="dxswipestart",s="dxswipe",l="dxswipeend",c={defaultItemSizeFunc:function(){return this.getElement().width()},getBounds:function(){return[this._maxLeftOffset,this._maxRightOffset]},calcOffsetRatio:function(e){var t=i.eventData(e);return(t.x-(this._savedEventData&&this._savedEventData.x||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=i.eventData(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.x-this._tickData.x)>=t.time-this._tickData.time}},u={defaultItemSizeFunc:function(){return this.getElement().height()},getBounds:function(){return[this._maxTopOffset,this._maxBottomOffset]},calcOffsetRatio:function(e){var t=i.eventData(e);return(t.y-(this._savedEventData&&this._savedEventData.y||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=i.eventData(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.y-this._tickData.y)>=t.time-this._tickData.time}},d={horizontal:c,vertical:u},h=r.inherit({TICK_INTERVAL:300,FAST_SWIPE_SPEED_LIMIT:10,ctor:function(e){this.callBase(e),this.direction="horizontal",this.elastic=!0},_getStrategy:function(){return d[this.direction]},_defaultItemSizeFunc:function(){return this._getStrategy().defaultItemSizeFunc.call(this)},_itemSizeFunc:function(){return this.itemSizeFunc||this._defaultItemSizeFunc},_init:function(e){this._tickData=i.eventData(e)},_start:function(e){this._savedEventData=i.eventData(e),e=this._fireEvent(a,e),e.cancel||(this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset)},_move:function(e){var t=this._getStrategy(),n=i.eventData(e),r=t.calcOffsetRatio.call(this,e);r=this._fitOffset(r,this.elastic),n.time-this._tickData.time>this.TICK_INTERVAL&&(this._tickData=n),this._fireEvent(s,e,{offset:r}),e.preventDefault()},_end:function(e){var t=this._getStrategy(),n=t.calcOffsetRatio.call(this,e),i=t.isFastSwipe.call(this,e),r=n,o=this._calcTargetOffset(n,i);r=this._fitOffset(r,this.elastic),o=this._fitOffset(o,!1),this._fireEvent(l,e,{offset:r,targetOffset:o})},_fitOffset:function(e,t){var n=this._getStrategy(),i=n.getBounds.call(this);return e<-i[0]?t?(-2*i[0]+e)/3:-i[0]:e>i[1]?t?(2*i[1]+e)/3:i[1]:e},_calcTargetOffset:function(e,t){var n;return t?(n=Math.ceil(Math.abs(e)),e<0&&(n=-n)):n=Math.round(e),n}});o({emitter:h,events:[a,s,l]}),t.swipe=s,t.start=a,t.end=l},,,,,function(e,t,n){var i=n(2),r=n(35).beforeCleanData,o=n(5),a=n(61),s="dxremove",l="dxRemoveEvent";r(function(e){e=[].slice.call(e);for(var t=0;t<e.length;t++){var n=i(e[t]);n.prop(l)&&(n[0][l]=null,o.triggerHandler(n,s))}}),a(s,{noBubble:!0,setup:function(e){i(e).prop(l,!0)}}),e.exports=s},,function(e,t,n){function i(){var e=v.testFormats(F);return{unsupported:e.unsupported,supported:e.supported.concat(z)}}function r(e,t,n){return n=n||i(),e=String(e).toUpperCase(),n.supported.indexOf(e)!==-1?e:void(n.unsupported.indexOf(e)!==-1&&t&&t("W2108",[e]))}function o(e){return"SVG"===e?y.getData:"PDF"===e?b.getData:v.getData}function a(e,t,n){e&&e.hide(),_.export(t(),n,o(n.format)),e&&e.show()}function s(e,t){var n,i=f.openWindow();i&&(i.document.open(),i.document.write(e),i.document.close(),n=i.document.body.getElementsByTagName("svg")[0],n&&(n.style.backgroundColor=t),i.print(),i.close())}function l(e,t,n){var i,r={},o=T-O,a=T+A+P+n*M;return r.rect={width:O-2*P,height:M,x:o+P,y:a},r.text={x:o+(e.rtl?O-D:D),y:a+M-I},"printing"===t&&(i="M "+o+" "+(a+M-P)+" L "+(o+O)+" "+(a+M-P),r.separator={stroke:e.button.default.borderColor,"stroke-width":P,cursor:"pointer",sharp:"v",d:i}),r}function c(e,t,n){var i,r={},o=n.type,a=n.format,s=l(t,o,n.itemIndex),c=g(t.font),u=e.rect(),d=e.text(n.text);return c["pointer-events"]="none",i=e.g().attr({"class":N+"-list-item"}),r[H]=o,a&&(r[G]=a),u.attr(s.rect).css({cursor:"pointer","pointer-events":"all"}).data(r),u.on(w.start+".export",function(){u.attr({fill:t.button.hover.backgroundColor})}).on(w.end+".export",function(){u.attr({fill:null})}),u.append(i),d.css(c).attr(s.text).append(i),"printing"===o&&e.path(null,"line").attr(s.separator).append(i),{g:i,rect:u,resetState:function(){u.attr({fill:null})},fixPosition:function(){var e=d.getBBox(),n=s.text.x-e.x;t.rtl&&(n-=e.width),d.move(n)}}}function u(e,t){var n=t.formats,i=[];return t.printingEnabled&&i.push(c(e,t,{type:"printing",text:m.format("vizExport-printingButtonText"),itemIndex:i.length})),i=n.reduce(function(n,i){return n.push(c(e,t,{type:"exporting",text:m.getFormatter("vizExport-exportButtonText")(i),format:i,itemIndex:n.length})),n},i)}function d(e){var t=W.exec(e);return t?t[1]:void 0}function h(e,t,n,i){return(i||t.format)&&(i=r(i||t.format,e._incidentOccurred)),{format:i||V,fileName:n||t.fileName||"file",proxyUrl:t.proxyUrl,backgroundColor:t.backgroundColor,width:e._canvas.width,height:e._canvas.height,margin:t.margin,forceProxy:t.forceProxy,exportingAction:e._createActionByOption("onExporting"),exportedAction:e._createActionByOption("onExported"),fileSavingAction:e._createActionByOption("onFileSaving")}}var p=n(0).extend,f=n(6),g=n(16).patchFontOptions,_=n(187),m=n(15),v=_.image,y=_.svg,b=_.pdf,x=n(1).isDefined,S=n(47),w=n(157),C=n(25),k=[C.down,C.move].join(" "),T=35,E=[[9,12,26,12,26,14,9,14],[9,17,26,17,26,19,9,19],[9,22,26,22,26,24,9,24]],A=4,O=120,I=8,D=15,M=30,P=1,L=10,B=2,R=3,V="PNG",F=[V,"JPEG","GIF"],z=["PDF","SVG"],N="dx-export-menu",H="export-element-type",G="export-element-format",W=/data-backgroundcolor="([^"]*)"/;t.exportFromMarkup=function(e,t){t.format=r(t.format)||V,t.fileName=t.fileName||"file",t.exportingAction=t.onExporting,t.exportedAction=t.onExported,t.fileSavingAction=t.onFileSaving,t.margin=x(t.margin)?t.margin:L,t.backgroundColor=x(t.backgroundColor)?t.backgroundColor:d(e),_.export(e,t,o(t.format))},t.getMarkup=function(e){var t=[],n=0,i=0,r=[],o="";return e.forEach(function(e){var o=e.getSize(),a=e.option("backgroundColor")||S.getTheme(e.option("theme")).backgroundColor;a&&r.indexOf(a)===-1&&r.push(a),t.push(e.svg().replace("<svg",'<g transform="translate(0,'+n+')" ').replace("</svg>","</g>")),n+=o.height,i=Math.max(i,o.width)}),1===r.length&&(o='data-backgroundcolor="'+r[0]+'" '),"<svg "+o+'height="'+n+'" width="'+i+'" version="1.1" xmlns="http://www.w3.org/2000/svg">'+t.join("")+"</svg>"},t.ExportMenu=function(e){var t=this,n=t._renderer=e.renderer;t._incidentOccurred=e.incidentOccurred,t._svgMethod=e.svgMethod,t._shadow=n.shadowFilter("-50%","-50%","200%","200%",B,6,R),t._shadow.attr({opacity:.8}),t._group=n.g().attr({"class":N}).linkOn(n.root,{name:"export-menu",after:"peripheral"}),t._buttonGroup=n.g().attr({"class":N+"-button"}).append(t._group),t._listGroup=n.g().attr({"class":N+"-list"}).append(t._group),t._overlay=n.rect(-O+T,T+A,O,0),t._overlay.attr({"stroke-width":P,cursor:"pointer",rx:4,ry:4,filter:t._shadow.id}),t._overlay.data({"export-element-type":"list"}),t.validFormats=i(),t._subscribeEvents()},p(t.ExportMenu.prototype,{getLayoutOptions:function(){if(this._hiddenDueToLayout)return{width:0,height:0,cutSide:"vertical",cutLayoutSide:"top"};var e=this._buttonGroup.getBBox();return e.cutSide="vertical",e.cutLayoutSide="top",e.height+=L,e.position={vertical:"top",horizontal:"right"},e.verticalAlignment="top",e.horizontalAlignment="right",e},probeDraw:function(){this._fillSpace(),this.show()},shift:function(e,t){this._group.attr({translateY:this._group.attr("translateY")+t})},draw:function(e,t,n){var i;return this.updateCanvasSize(n),this._group.move(e-T-B-R+n.left,Math.floor(t/2-T/2)),i=this.getLayoutOptions(),(i.width>e||i.height>t)&&this.freeSpace(),this},show:function(){this._group.linkAppend()},hide:function(){this._group.linkRemove()},setOptions:function(e){var t=this;t._options=e,e.formats?e.formats=e.formats.reduce(function(e,n){return n=r(n,t._incidentOccurred,t.validFormats),n&&e.push(n),e},[]):e.formats=t.validFormats.supported.slice(),e.printingEnabled=void 0===e.printingEnabled||e.printingEnabled,e.enabled&&(e.formats.length||e.printingEnabled)?(t.show(),t._updateButton(),t._updateList(),t._hideList()):t.hide()},updateCanvasSize:function(e){if(this._options&&this._options.exportOptions){var t=this._options.exportOptions;t.width=e.width,t.height=e.height}},dispose:function(){var e=this;e._unsubscribeEvents(),e._group.linkRemove().linkOff(),e._group.dispose(),e._shadow.dispose(),e._shadow=e._group=e._listGroup=e._buttonGroup=e._button=null,e._options=null},layoutOptions:function(){var e=this._options;return e.enabled&&{horizontalAlignment:"right",verticalAlignment:"top",weak:!0}},measure:function(){return this._fillSpace(),[T+B,T]},move:function(e){this._group.attr({translateX:Math.round(e[0]),translateY:Math.round(e[1])})},_fillSpace:function(){this._hiddenDueToLayout=!1,this.show()},freeSpace:function(){this._incidentOccurred("W2107"),this._hiddenDueToLayout=!0,this.hide()},_hideList:function(){this._listGroup.remove(),this._listShown=!1,this._setButtonState("default"),this._menuItems.forEach(function(e){e.resetState()})},_showList:function(){this._listGroup.append(this._group),this._listShown=!0,this._menuItems.forEach(function(e){e.fixPosition()})},_setButtonState:function(e){var t=this,n=t._options.button[e];this._button.attr({stroke:n.borderColor,fill:n.backgroundColor}),this._icon.attr({fill:n.color})},_subscribeEvents:function(){var e=this;e._renderer.root.on(C.up+".export",function(t){var n,i=t.target[H],r=e._options;return i?void("button"===i?e._listShown?(e._setButtonState("default"),e._hideList()):(e._setButtonState("focus"),e._showList()):"printing"===i?(e.hide(),s(e._svgMethod(),r.backgroundColor),e.show(),e._hideList()):"exporting"===i&&(n=p({},r.exportOptions,{format:t.target[G]}),a(e,function(){return e._svgMethod()},n),e._hideList())):void(e._button&&e._hideList())}),e._listGroup.on(k,function(e){e.stopPropagation()}),e._buttonGroup.on(C.enter,function(){e._setButtonState("hover")}),e._buttonGroup.on(C.leave,function(){e._setButtonState(e._listShown?"focus":"default")}),e._buttonGroup.on(C.down+".export",function(){e._setButtonState("active")})},_unsubscribeEvents:function(){this._renderer.root.off(".export"),this._listGroup.off(),this._buttonGroup.off()},_updateButton:function(){var e=this,t=e._renderer,n=e._options,i={fill:n.button.default.color,cursor:"pointer"},r={"export-element-type":"button"};e._button||(e._button=t.rect(0,0,T,T).append(e._buttonGroup),e._button.attr({rx:4,ry:4,fill:n.button.default.backgroundColor,stroke:n.button.default.borderColor,"stroke-width":1,cursor:"pointer"}),e._button.data(r),e._icon=t.path(E).append(e._buttonGroup),e._icon.attr(i),e._icon.data(r),e._buttonGroup.setTitle(m.format("vizExport-titleMenuText")))},_updateList:function(){var e=this,t=e._options,n=t.button.default,i=e._listGroup,r=u(e._renderer,t);e._shadow.attr({color:t.shadowColor}),e._overlay.attr({height:r.length*M+2*P,fill:n.backgroundColor,stroke:n.borderColor}),i.clear(),e._overlay.append(i),r.forEach(function(e){e.g.append(i)}),e._menuItems=r}}),t.plugin={name:"export",init:function(){var e=this;e._exportMenu=new t.ExportMenu({renderer:e._renderer,svgMethod:function(){return e.svg()},incidentOccurred:e._incidentOccurred}),e._layout.add(e._exportMenu)},dispose:function(){this._exportMenu.dispose(),this._exportMenu=null},extenders:{_change_LAYOUT:function(){this._exportMenu&&this._exportMenu.updateCanvasSize(this._canvas)}},members:{_getExportMenuOptions:function(){var e=this._getOption("export")||{},t=h(this,e);return p({},e,{exportOptions:t,rtl:this._getOption("rtlEnabled",!0)})},exportTo:function(e,t){var n=this,i=h(n,n._getOption("export")||{},e,t);a(n._exportMenu,function(){return n.svg()},i)},print:function(){s(this.svg(),this._getOption("export").backgroundColor)}},customize:function(e){var t=e.prototype;e.addChange({code:"EXPORT",handler:function(){this._exportMenu.setOptions(this._getExportMenuOptions()),this._change(["LAYOUT"])},isThemeDependent:!0,isOptionChange:!0,option:"export"}),t._optionChangesMap.onExporting="EXPORT",t._optionChangesMap.onExported="EXPORT",t._optionChangesMap.onFileSaving="EXPORT"}}},function(e,t,n){function i(){return!0}function r(){return!1}function o(e,t){return!(e.width===t.width&&e.height===t.height&&e.left===t.left&&e.top===t.top&&e.right===t.right&&e.bottom===t.bottom)}function a(e){var t,n=function(){clearTimeout(t),t=setTimeout(e,100)};return n.dispose=function(){return clearTimeout(t),this},n}function s(e){e.component.hasEvent("incidentOccurred")||T.apply(null,[e.target.id].concat(e.target.args||[]))}function l(e){return e.reduce(function(e,t){return t>0&&!e?t:e},0)}function c(e){return f.isDefined(e)&&e>0}function u(e,t){function n(n){var i=e[n];r[i.name]=t(n)}function i(e,t,n){r[e](t),n&&n()}var r={};g(e,function(e,t){t.name&&n(e)});var o;return i.change=function(t){var n=e[t];return n&&((o=o||{})[t]=n),!!n},i.applyChanges=function(){o&&(g(o,function(e,t){n(t.newName||e)}),o=null)},i.dispose=function(){e=t=r=null},i}var d=n(4).noop,h=n(6),p=n(12),f=n(1),g=n(3).each,_=n(120),m=n(121),v=n(39).format,y=n(1).isObject,b=n(0).extend,x=Math.floor,S=n(58),w=n(164),C=n(16).parseScalar,k=n(656),T=k.log,E=n(198),A=n(658),O="rtlEnabled",I="dx-sized-element",D=S.prototype.option,M=function(e,t){
15
+ var t,n,i,o;if(e.length>1)for(n=r.getDatesDifferences(e[0],e[1]),o=1;o<e.length-1;o++)i=r.getDatesDifferences(e[o],e[o+1]),n.count<i.count&&(n=i);else n={year:!0,month:!0,day:!0,hour:e[0].getHours()>0,minute:e[0].getMinutes()>0,second:e[0].getSeconds()>0,millisecond:e[0].getMilliseconds()>0};return t=this.getDateFormatByDifferences(n)},getDateFormatByTickInterval:function(e,t,n){var o,a,s,l={week:"day"},c=function(e,t,n){switch(t){case"year":case"quarter":e.month=n;case"month":e.day=n;case"week":case"day":e.hour=n;case"hour":e.minute=n;case"minute":e.second=n;case"second":e.millisecond=n}},u=function(e,t,n){!n.getMilliseconds()&&n.getSeconds()?n.getSeconds()-t.getSeconds()===1&&(e.millisecond=!0,e.second=!1):!n.getSeconds()&&n.getMinutes()?n.getMinutes()-t.getMinutes()===1&&(e.second=!0,e.minute=!1):!n.getMinutes()&&n.getHours()?n.getHours()-t.getHours()===1&&(e.minute=!0,e.hour=!1):!n.getHours()&&n.getDate()>1?n.getDate()-t.getDate()===1&&(e.hour=!0,e.day=!1):1===n.getDate()&&n.getMonth()?n.getMonth()-t.getMonth()===1&&(e.day=!0,e.month=!1):!n.getMonth()&&n.getFullYear()&&n.getFullYear()-t.getFullYear()===1&&(e.month=!0,e.year=!1)};return n=i.isString(n)?n.toLowerCase():n,a=r.getDatesDifferences(e,t),e!==t&&u(a,e>t?t:e,e>t?e:t),s=r.getDateUnitInterval(a),c(a,s,!0),s=r.getDateUnitInterval(n||"second"),c(a,s,!1),a[l[s]||s]=!0,o=this.getDateFormatByDifferences(a)}})},function(e,t,n){var i=n(10),r=n(0).extend,o=n(11).inArray,a=n(3).each,s=n(53),l=n(17),c=n(4),u=n(1),d=n(49),h=n(15),p=i.inherit({NAME:"base",defaultMessage:function(e){return h.getFormatter("validation-"+this.NAME)(e)},defaultFormattedMessage:function(e){return h.getFormatter("validation-"+this.NAME+"-formatted")(e)},validate:function(e,t){var n=Array.isArray(e)?e:[e],i=!0;return n.length?n.every(function(e){return i=this._validate(e,t)},this):i=this._validate(null,t),i}}),f=p.inherit({NAME:"required",_validate:function(e,t){return!!u.isDefined(e)&&(e!==!1&&(e=String(e),!t.trim&&u.isDefined(t.trim)||(e=e.trim()),""!==e))}}),g=p.inherit({NAME:"numeric",_validate:function(e,t){return!S.required.validate(e,{})||(t.useCultureSettings&&u.isString(e)?!isNaN(d.parse(e)):u.isNumeric(e))}}),_=p.inherit({NAME:"range",_validate:function(e,t){if(!S.required.validate(e,{}))return!0;var n=S.numeric.validate(e,t),i=u.isDefined(e),r=n?parseFloat(e):i&&e.valueOf(),o=t.min,a=t.max;if(!n&&!u.isDate(e)&&!i)return!1;if(u.isDefined(o))return u.isDefined(a)?r>=o&&r<=a:r>=o;if(u.isDefined(a))return r<=a;throw l.Error("E0101")}}),m=p.inherit({NAME:"stringLength",_validate:function(e,t){return e=u.isDefined(e)?String(e):"",!t.trim&&u.isDefined(t.trim)||(e=e.trim()),S.range.validate(e.length,r({},t))}}),v=p.inherit({NAME:"custom",validate:function(e,t){var n=t.validator,i=n&&u.isFunction(n.option)&&n.option("dataGetter"),r=u.isFunction(i)&&i(),o={value:e,validator:n,rule:t};return r&&(o.data=r),t.validationCallback(o)}}),y=p.inherit({NAME:"compare",_validate:function(e,t){if(!t.comparisonTarget)throw l.Error("E0102");r(t,{reevaluate:!0});var n=t.comparisonTarget(),i=t.comparisonType||"==";switch(i){case"==":return e==n;case"!=":return e!=n;case"===":return e===n;case"!==":return e!==n;case">":return e>n;case">=":return e>=n;case"<":return e<n;case"<=":return e<=n}}}),b=p.inherit({NAME:"pattern",_validate:function(e,t){if(!S.required.validate(e,{}))return!0;var n=t.pattern;return u.isString(n)&&(n=new RegExp(n)),n.test(e)}}),x=p.inherit({NAME:"email",_validate:function(e,t){return!S.required.validate(e,{})||S.pattern.validate(e,r({},t,{pattern:/^[\d\w._-]+@[\d\w._-]+\.[\w]+$/i}))}}),S={required:new f,numeric:new g,range:new _,stringLength:new m,custom:new v,compare:new y,pattern:new b,email:new x},w=i.inherit({ctor:function(e){this.group=e,this.validators=[]},validate:function(){var e={isValid:!0,brokenRules:[],validators:[]};return a(this.validators,function(t,n){var i=n.validate();e.isValid=e.isValid&&i.isValid,i.brokenRule&&e.brokenRules.push(i.brokenRule),e.validators.push(n)}),this.fireEvent("validated",[{validators:e.validators,brokenRules:e.brokenRules,isValid:e.isValid}]),e},reset:function(){a(this.validators,function(e,t){t.reset()})}}).include(s),C={groups:[],getGroupConfig:function(e){var t=c.grep(this.groups,function(t){return t.group===e});if(t.length)return t[0]},initGroups:function(){this.groups=[],this.addGroup()},addGroup:function(e){var t=this.getGroupConfig(e);return t||(t=new w(e),this.groups.push(t)),t},removeGroup:function(e){var t=this.getGroupConfig(e),n=o(t,this.groups);return n>-1&&this.groups.splice(n,1),t},_setDefaultMessage:function(e,t,n){u.isDefined(e.message)||(t.defaultFormattedMessage&&u.isDefined(n)?e.message=t.defaultFormattedMessage(n):e.message=t.defaultMessage())},validate:function(e,t,n){var i={name:n,value:e,brokenRule:null,isValid:!0,validationRules:t},r=this;return a(t||[],function(t,o){var a,s=S[o.type];if(!s)throw l.Error("E0100");return u.isDefined(o.isValid)&&o.value===e&&!o.reevaluate?!!o.isValid||(i.isValid=!1,i.brokenRule=o,!1):(o.value=e,a=s.validate(e,o),o.isValid=a,a||(i.isValid=!1,r._setDefaultMessage(o,s,n),i.brokenRule=o),!!o.isValid&&void 0)}),i},registerValidatorInGroup:function(e,t){var n=C.addGroup(e);o(t,n.validators)<0&&n.validators.push(t)},_shouldRemoveGroup:function(e,t){var n=void 0===e,i=e&&"dxValidationGroup"===e.NAME;return!n&&!i&&!t.length},removeRegisteredValidator:function(e,t){var n=C.getGroupConfig(e),i=n&&n.validators,r=o(t,i);r>-1&&(i.splice(r,1),this._shouldRemoveGroup(e,i)&&this.removeGroup(e))},validateGroup:function(e){var t=C.getGroupConfig(e);if(!t)throw l.Error("E0110");return t.validate()},resetGroup:function(e){var t=C.getGroupConfig(e);if(!t)throw l.Error("E0110");return t.reset()}};C.initGroups(),e.exports=C},function(e,t,n){var i=n(9),r=n(108),o=n(84),a=Math.abs,s="dxhold",l=750,c=5,u=r.inherit({start:function(e){this._startEventData=i.eventData(e),this._startTimer(e)},_startTimer:function(e){var t="timeout"in this?this.timeout:l;this._holdTimer=setTimeout(function(){this._requestAccept(e),this._fireEvent(s,e,{target:e.target}),this._forgetAccept()}.bind(this),t)},move:function(e){this._touchWasMoved(e)&&this._cancel(e)},_touchWasMoved:function(e){var t=i.eventDelta(this._startEventData,i.eventData(e));return a(t.x)>c||a(t.y)>c},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}});o({emitter:u,bubble:!0,events:[s]}),e.exports={name:s}},function(e,t,n){var i=n(10),r=i.abstract,o=n(53),a=n(3).each,s=n(36),l=n(41),c=n(22).compileGetter,u=n(80),d=u.queryByOptions,h=n(7).Deferred,p={},f=i.inherit({ctor:function(e){var t=this;e=e||{},a(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","onRemoved","onRemoving","onModified","onModifying"],function(n,i){i in e&&t.on(i.slice(2).toLowerCase(),e[i])}),this._key=e.key,this._errorHandler=e.errorHandler,this._useDefaultSearch=!0},_customLoadOptions:function(){return null},key:function(){return this._key},keyOf:function(e){return this._keyGetter||(this._keyGetter=c(this.key())),this._keyGetter(e)},_requireKey:function(){if(!this.key())throw s.errors.Error("E4005")},load:function(e){var t=this;return e=e||{},this.fireEvent("loading",[e]),this._withLock(this._loadImpl(e)).done(function(n){t.fireEvent("loaded",[n,e])})},_loadImpl:function(e){return d(this.createQuery(e),e).enumerate()},_withLock:function(e){var t=new h;return e.done(function(){var e=this,n=arguments;l.processRequestResultLock.promise().done(function(){t.resolveWith(e,n)})}).fail(function(){t.rejectWith(this,arguments)}),t},createQuery:r,totalCount:function(e){return this._totalCountImpl(e)},_totalCountImpl:function(e){return d(this.createQuery(e),e,!0).count()},byKey:function(e,t){return this._addFailHandlers(this._withLock(this._byKeyImpl(e,t)))},_byKeyImpl:r,insert:function(e){var t=this;return t.fireEvent("modifying"),t.fireEvent("inserting",[e]),t._addFailHandlers(t._insertImpl(e).done(function(e,n){t.fireEvent("inserted",[e,n]),t.fireEvent("modified")}))},_insertImpl:r,update:function(e,t){var n=this;return n.fireEvent("modifying"),n.fireEvent("updating",[e,t]),n._addFailHandlers(n._updateImpl(e,t).done(function(e,t){n.fireEvent("updated",[e,t]),n.fireEvent("modified")}))},_updateImpl:r,remove:function(e){var t=this;return t.fireEvent("modifying"),t.fireEvent("removing",[e]),t._addFailHandlers(t._removeImpl(e).done(function(e){t.fireEvent("removed",[e]),t.fireEvent("modified")}))},_removeImpl:r,_addFailHandlers:function(e){return e.fail(this._errorHandler).fail(s._errorHandler)}}).include(o);f.create=function(e,t){if(!(e in p))throw s.errors.Error("E4020",e);return new p[e](t)},f.inherit=function(e){return function(t,n){var i=e.apply(this,[t]);return n&&(p[n]=i),i}}(f.inherit),e.exports=f},,,,function(e,t,n){var i=n(66),r=n(13),o=i.inherit({ctor:function(e){this._render=e},_renderCore:function(e){return r.normalizeTemplateElement(this._render(e))}});e.exports=o},function(e,t,n){var i,r=n(10),o=n(4),a=n(13).contains,s=n(14),l=n(9),c=n(25),u=n(108),d=n(84),h="dxactive",p="dxinactive",f=30,g=400,_=r.inherit({ctor:function(e,t){this._timeout=e,this._fire=t},start:function(){var e=this;this._schedule(function(){e.force()})},_schedule:function(e){this.stop(),this._timer=setTimeout(e,this._timeout)},stop:function(){clearTimeout(this._timer)},force:function(){this._fired||(this.stop(),this._fire(),this._fired=!0)},fired:function(){return this._fired}}),m=u.inherit({ctor:function(){this.callBase.apply(this,arguments),this._active=new _(0,o.noop),this._inactive=new _(0,o.noop)},configure:function(e,t){switch(t){case h:e.activeTimeout=e.timeout;break;case p:e.inactiveTimeout=e.timeout}this.callBase(e)},start:function(e){if(i){var t=a(this.getElement().get(0),i.getElement().get(0)),n=!i._active.fired();if(t&&n)return void this._cancel();i._inactive.force()}i=this,this._initEvents(e),this._active.start()},_initEvents:function(e){var t=this,n=this._getEmitterTarget(e),r=l.isMouseEvent(e),a=s.isSimulator(),c=a||!r,u=o.ensureDefined(this.activeTimeout,f),d=o.ensureDefined(this.inactiveTimeout,g);this._active=new _(c?u:0,function(){t._fireEvent(h,e,{target:n})}),this._inactive=new _(c?d:0,function(){t._fireEvent(p,e,{target:n}),i=null})},cancel:function(e){this.end(e)},end:function(e){var t=e.type!==c.up;t?this._active.stop():this._active.force(),this._inactive.start(),t&&this._inactive.force()},dispose:function(){this._active.stop(),this._inactive.stop(),this.callBase()},lockInactive:function(){return this._active.force(),this._inactive.stop(),i=null,this._cancel(),this._inactive.force.bind(this._inactive)}});m.lock=function(e){var t=i?i.lockInactive():o.noop;e.done(t)},d({emitter:m,events:[h,p]}),t.lock=m.lock,t.active=h,t.inactive=p},function(e,t,n){function i(e,t,n){var i=[],r=function(e){return e<10?"0".concat(e):String(e)},o=function(){return e.getHours()+e.getMinutes()+e.getSeconds()+e.getMilliseconds()<1};return i.push(e.getFullYear()),i.push("-"),i.push(r(e.getMonth()+1)),i.push("-"),i.push(r(e.getDate())),t&&o()||(i.push("T"),i.push(r(e.getHours())),i.push(":"),i.push(r(e.getMinutes())),i.push(":"),i.push(r(e.getSeconds())),e.getMilliseconds()&&(i.push("."),i.push(e.getMilliseconds())),n||i.push("Z")),i.join("")}function r(e){var t=new Date(60*new Date(0).getTimezoneOffset()*1e3),n=e.replace("Z","").split("T"),i=/(\d{4})-(\d{2})-(\d{2})/.exec(n[0]),r=/(\d{2}):(\d{2}):(\d{2})\.?(\d{0,7})?/.exec(n[1]);return t.setFullYear(Number(i[1])),t.setMonth(Number(i[2])-1),t.setDate(Number(i[3])),Array.isArray(r)&&r.length&&(t.setHours(Number(r[1])),t.setMinutes(Number(r[2])),t.setSeconds(Number(r[3])),t.setMilliseconds(Number(String(r[4]).substr(0,3))||0)),t}function o(e){return/^(?:[a-z]+:)?\/\//i.test(e)}function a(e,t){function n(e){var t=e.indexOf("?");return t>-1?e.substr(0,t):e}var i,r=n(e).split("/"),o=t.split("/");for(r.pop();o.length;)i=o.shift(),".."===i?r.pop():r.push(i);return r.join("/")}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=n(10),c=n(0).extend,u=n(1),d=n(3),h=n(3).each,p=n(72),f=n(50),g=u.isDefined,_=u.isPlainObject,m=n(4).grep,v=n(7).Deferred,y=n(36).errors,b=n(41),x=/^(\{{0,1}([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}\}{0,1})$/,S=/^\/Date\((-?\d+)((\+|-)?(\d+)?)\)\/$/,w=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[-+]{1}\d{2}(:?)(\d{2})?)?$/,C="application/json;odata=verbose",k=function(e){return"string"===u.type(e)?e.split():e},T=function(e){return/\./.test(e)},E=function(e){var t=[];for(var n in e)t.push(n+"="+e[n]);return t.join("&")},A=function(e,t,n){function r(t){return JSON.stringify(t,function(t,n){if(!(this[t]instanceof Date))return n;switch(n=i(this[t]),e){case 2:return n.substr(0,n.length-1);case 3:case 4:return n;default:throw y.Error("E4002")}})}t=c({async:!0,method:"get",url:"",params:{},payload:null,headers:{},timeout:3e4},t),n=n||{};var o=n.beforeSend;o&&o(t);var a=(t.method||"get").toLowerCase(),s="get"===a,l=s&&n.jsonp,u=c({},t.params),d=s?u:r(t.payload),h=!s&&E(u),p=t.url,f=!s&&C;return h&&(p+=(p.indexOf("?")>-1?"&":"?")+h),l&&(d.$format="json"),{url:p,data:d,dataType:l?"jsonp":"json",jsonp:l&&"$callback",method:a,async:t.async,timeout:t.timeout,headers:t.headers,contentType:f,accepts:{json:[C,"text/plain"].join()},xhrFields:{withCredentials:n.withCredentials}}},O=function e(t,n,i){var r=new v,s=A(t,n,i);return p.sendRequest(s).always(function(n,l){var c,u={deserializeDates:i.deserializeDates,fieldTypes:i.fieldTypes},d=M(n,l,u),h=d.error,p=d.data,f=d.nextUrl;h?h.message!==b.XHR_ERROR_UNLOAD&&r.reject(h):i.countOnly?isFinite(d.count)?r.resolve(d.count):r.reject(new y.Error("E4018")):f&&!i.isPaged?(o(f)||(f=a(s.url,f)),e(t,{url:f},i).fail(r.reject).done(function(e){r.resolve(p.concat(e))})):(isFinite(d.count)&&(c={totalCount:d.count}),r.resolve(p,c))}),r.promise()},I=function(e){var t,n=e;"message"in e&&(t=e.message.value?e.message.value:e.message);for(;(n=n.innererror||n.internalexception)&&(t=n.message,!n.internalexception||t.indexOf("inner exception")!==-1););return t},D=function(e,t){if("nocontent"===t)return null;var n=200,i="Unknown error",r=e;if("success"!==t){n=e.status,i=b.errorMessageFromXhr(e,t);try{r=JSON.parse(e.responseText)}catch(e){}}var o=r&&(r.then&&r||r.error||r["odata.error"]||r["@odata.error"]);return o?(i=I(o)||i,200===n&&(n=500),o.code&&(n=Number(o.code)),c(Error(i),{httpStatus:n,errorDetails:o})):200!==n?c(Error(i),{httpStatus:n}):void 0},M=function(e,t,n){var i,r=D(e,t);return r?{error:r}:_(e)?(i="d"in e&&(Array.isArray(e.d)||u.isObject(e.d))?P(e,t):L(e,t),R(i,n),i):{data:e}},P=function(e){var t=e.d;return g(t)?(g(t.results)&&(t=t.results),{data:t,nextUrl:e.d.__next,count:parseInt(e.d.__count,10)}):{error:Error("Malformed or unsupported JSON response received")}},L=function(e){var t=e;return g(t.value)&&(t=t.value),{data:t,nextUrl:e["@odata.nextLink"],count:parseInt(e["@odata.count"],10)}},B=l.inherit({ctor:function(e){this._value=e},valueOf:function(){return this._value}}),R=function e(t,n){n=n||{},h(t,function(i,o){if(null!==o&&"object"===("undefined"==typeof o?"undefined":s(o)))"results"in o&&(t[i]=o.results),e(t[i],n);else if("string"==typeof o){var a=n.fieldTypes,l=!a||"String"!==a[i];if(l&&x.test(o)&&(t[i]=new f(o)),n.deserializeDates!==!1)if(o.match(S)){var c=new Date(Number(RegExp.$1)+60*RegExp.$2*1e3);t[i]=new Date(c.valueOf()+60*c.getTimezoneOffset()*1e3)}else w.test(o)&&(t[i]=new Date(r(t[i]).valueOf()))}})},V=function(e){return"datetime'"+i(e,!0,!0)+"'"},F=function(e){return"'"+e.replace(/'/g,"''")+"'"},z=function(e){return e instanceof B?e.valueOf():e.replace(/\./g,"/")},N=function e(t){return t instanceof Date?i(t,!1,!1):t instanceof f?t.valueOf():Array.isArray(t)?"["+t.map(function(t){return e(t)}).join(",")+"]":H(t)},H=function(e){return e instanceof Date?V(e):e instanceof f?"guid'"+e+"'":e instanceof B?e.valueOf():"string"==typeof e?F(e):String(e)},G=function(e,t){switch(t){case 2:case 3:return H(e);case 4:return N(e);default:throw y.Error("E4002")}},W=function(e,t){if(_(e)){var n=[];return h(e,function(e,i){n.push(z(e)+"="+G(i,t))}),n.join()}return G(e,t)},j={String:function(e){return e+""},Int32:function(e){return Math.floor(e)},Int64:function(e){return e instanceof B?e:new B(e+"L")},Guid:function(e){return e instanceof f?e:new f(e)},Boolean:function(e){return!!e},Single:function(e){return e instanceof B?e:new B(e+"f")},Decimal:function(e){return e instanceof B?e:new B(e+"m")}},U=function(e,t){if(null===t)return null;var n=j[e];if(!n)throw y.Error("E4014",e);return n(t)},Y=function(e,t){if(t)return e<4?z(t.join()):m(t,T,!0).join()},$=function(e,t,n){var i=function(){var e={};return t&&d.each(k(t),function(){e[z(this)]=1}),n&&d.each(k(n),function(){var t=this.split(".");t.length<2||(t.pop(),e[z(t.join("."))]=1)}),d.map(e,function(e,t){return t}).join()},r=function(){var e=function(e){var t=function e(t){var n="",i=[],r=[];return d.each(t,function(t,n){Array.isArray(n)&&[].push.apply(i,n),_(n)&&r.push(t+e(n))}),(i.length||r.length)&&(n+="(",i.length&&(n+="$select="+d.map(i,z).join()),r.length&&(i.length&&(n+=";"),n+="$expand="+d.map(r,z).join()),n+=")"),n},n=[];return d.each(e,function(e,i){n.push(e+t(i))}),n.join()},i=function(e,t,n){var i=function e(t,n,i){var r=i(n,t.shift(),t);r!==!1&&e(t,r,i)};d.each(e,function(e,r){i(r.split("."),t,n)})},r={};if(t||n)return t&&i(k(t),r,function(e,t,n){return e[t]=e[t]||{},!!n.length&&e[t]}),n&&i(m(k(n),T),r,function(e,t,n){return n.length?e[t]=e[t]||{}:(e[t]=e[t]||[],e[t].push(t),!1)}),e(r)};return e<4?i():r()};t.sendRequest=O,t.serializePropName=z,t.serializeValue=G,t.serializeKey=W,t.keyConverters=j,t.convertPrimitiveValue=U,t.generateExpand=$,t.generateSelect=Y,t.EdmLiteral=B},,function(e,t,n){var i=n(7),r=n(6),o=i.Deferred,a=i.when,s=r.hasWindow()?r.getWindow().Promise:Promise;s||(s=function(e){var t=new o;return e(t.resolve.bind(this),t.reject.bind(this)),t.promise()},s.resolve=function(e){return(new o).resolve(e).promise()},s.reject=function(e){return(new o).reject(e).promise()},s.all=function(e){return a.apply(this,e).then(function(){return[].slice.call(arguments)})}),e.exports=s},function(e,t,n){var i=n(35),r=n(5),o=n(171),a=n(1).isDefined,s=n(129),l="dxComponents",c="dxPrivateComponent",u=new o,d=0,h=t.name=function(e,t){if(a(t))return void u.set(e,t);if(!u.has(e)){var n=c+d++;return u.set(e,n),n}return u.get(e)};t.attachInstanceToElement=function(e,t,n){var o=i.data(e.get(0)),a=h(t.constructor);o[a]=t,n&&r.one(e,s,function(){n.call(t)}),o[l]||(o[l]=[]),o[l].push(a)},t.getInstanceByElement=function(e,t){var n=h(t);return i.data(e.get(0),n)}},function(e,t,n){var i=n(66);e.exports=i.inherit({ctor:function(e){this.name=e}})},function(e,t,n){var i=n(0).extend,r=n(75),o=n(39),a=n(120),s="http://js.devexpress.com/error/"+a.split(".").slice(0,2).join("_")+"/";e.exports=function(e,t){var n={ERROR_MESSAGES:i(t,e),Error:function(){return u([].slice.call(arguments))},log:function(e){var t="log";/^E\d+$/.test(e)?t="error":/^W\d+$/.test(e)&&(t="warn"),r.logger[t]("log"===t?e:a([].slice.call(arguments)))}},a=function(e){var t=e[0];return e=e.slice(1),c(t,l(t,e))},l=function(e,t){return t=[n.ERROR_MESSAGES[e]].concat(t),o.format.apply(this,t).replace(/\.*\s*?$/,"")},c=function(e,t){return o.format.apply(this,["{0} - {1}. See:\n{2}",e,t,s+e])},u=function(e){var t,n,r;return t=e[0],e=e.slice(1),n=l(t,e),r=c(t,n),i(new Error(r),{__id:t,__details:n})};return n}},function(e,t,n){var i=n(30),r=function(e){var t=e||i().rtlEnabled;return t?"right":"left"};t.getDefaultAlignment=r},,function(e,t,n){var i=n(6),r=i.hasWindow()?i.getWindow():{},o=n(68),a=1e3/60,s=function(e){return setTimeout(e,a)},l=function(e){clearTimeout(e)},c=o(function(){var e=r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||r.oRequestAnimationFrame||r.msRequestAnimationFrame,t=r.cancelAnimationFrame||r.webkitCancelAnimationFrame||r.mozCancelAnimationFrame||r.oCancelAnimationFrame||r.msCancelAnimationFrame;if(e&&t&&(s=e,l=t),e&&!t){var n={};s=function(t){var i=e.call(r,function(){try{if(i in n)return;t.apply(this,arguments)}finally{delete n[i]}});return i},l=function(e){n[e]=!0}}});t.requestAnimationFrame=function(){return c(),s.apply(r,arguments)},t.cancelAnimationFrame=function(){c(),l.apply(r,arguments)}},function(e,t,n){var i=n(2),r=function(e){return!(!e||"string"!=typeof e)&&(/data:.*base64|\.|\//.test(e)?"image":/^[\w-_]+$/.test(e)?"dxIcon":"fontIcon")},o=function(e){var t=r(e),n="dx-icon";switch(t){case"image":return i("<img>").attr("src",e).addClass(n);case"fontIcon":return i("<i>").addClass(n+" "+e);case"dxIcon":return i("<i>").addClass(n+" "+n+"-"+e);default:return null}};t.getImageSourceType=r,t.getImageContainer=o},function(e,t,n){var i=n(172);e.exports=new i},function(e,t,n){var i=n(2),r=n(4).noop,o=n(10),a=n(19),s=n(0).extend,l=n(9),c=o.inherit({ctor:function(e){this._$element=i(e),this._cancelCallback=a(),this._acceptCallback=a()},getElement:function(){return this._$element},validate:function(e){return"dxmousewheel"!==e.type},validatePointers:function(e){return 1===l.hasTouches(e)},allowInterruptionByMouseWheel:function(){return!0},configure:function(e){s(this,e)},addCancelCallback:function(e){this._cancelCallback.add(e)},removeCancelCallback:function(){this._cancelCallback.empty()},_cancel:function(e){this._cancelCallback.fire(this,e)},addAcceptCallback:function(e){this._acceptCallback.add(e)},removeAcceptCallback:function(){this._acceptCallback.empty()},_accept:function(e){this._acceptCallback.fire(this,e)},_requestAccept:function(e){this._acceptRequestEvent=e},_forgetAccept:function(){this._accept(this._acceptRequestEvent),this._acceptRequestEvent=null},start:r,move:r,end:r,cancel:r,reset:function(){this._acceptRequestEvent&&this._accept(this._acceptRequestEvent)},_fireEvent:function(e,t,n){var i=s({type:e,originalEvent:t,target:this._getEmitterTarget(t),delegateTarget:this.getElement().get(0)},n);return t=l.fireEvent(i),t.cancel&&this._cancel(t),t},_getEmitterTarget:function(e){return(this.delegateSelector?i(e.target).closest(this.delegateSelector):this.getElement()).get(0)},dispose:r});e.exports=c},function(e,t,n){var i=n(56);if(i){var r=n(17),o=n(59).compare;if(o(i.version,[2,3])<0)throw r.Error("E0013");n(326),n(329),n(330),n(331),n(332),n(333),n(334)}},function(e,t,n){var i=n(56),r=n(3).each,o=n(228),a=function(e,t,n){for(var i=[],r=0,o=e.length;r<o;r++)n(e[r],t)||i.push(e[r]);return i.push.apply(i,t),i},s=function(e,t){var n=!1;return r(t,function(t,i){var r=e.option("id")===i.option("id")&&i.option("id"),o=e.option("behavior")===i.option("behavior")&&e.option("behavior");if(n=r||o,o&&null===i.option("onExecute")&&i.option("onExecute",e.option("onExecute")),n)return e.$element().remove(),!1}),n},l=function(e,t){return a(e,t,s)},c=function(e,t,n,i){var r=t?t[n]:void 0,o=void 0===r?i:r,a=e.option(n);return void 0===a||a===i?o:a},u=function(e,t){var n=c(e,t,"showText"),i=!!e.option("icon"),r=c(e,t,"title","");return n||!i?r:""},d=function(e,t){var n=c(e,t,"showIcon"),i=!!e.option("title"),r=c(e,t,"icon","");return n||!i?r:""};t.utils={mergeCommands:l,commandToContainer:{resolveIconValue:d,resolveTextValue:u,resolvePropertyValue:c}},t.templateProvider={createTemplate:function(e){return new o(e)},applyTemplate:function(e,t){i.applyBindings(t,e)}}},function(e,t,n){n(43);var i=n(26),r=n(10),o=n(19),a=n(4),s=n(3),l=n(1).isPlainObject,c=n(0).extend,u=n(142),d=n(53),h=n(62),p=n(223).processCallback,f=n(136),g=n(7).when,_={current:"current",blank:"blank",back:"back"},m="__history",v=r.inherit({ctor:function(e){e=e||{},this._currentItem=void 0,this._previousItem=void 0,this._createNavigationDevice(e)},_createNavigationDevice:function(e){this._navigationDevice=e.navigationDevice||new u.HistoryBasedNavigationDevice,this._navigationDevice.uriChanged.add(this._uriChangedHandler.bind(this))},_uriChangedHandler:function(e){for(;f(););this.navigate(e)},_syncUriWithCurrentNavigationItem:function(){var e=this._currentItem&&this._currentItem.uri;this._navigationDevice.setUri(e,!0)},_cancelNavigation:function(e){this._syncUriWithCurrentNavigationItem(),this.fireEvent("navigationCanceled",[e])},_getDefaultOptions:function(){return{direction:"none",target:_.blank}},_updateHistory:function(e,t){this._previousItem=this._currentItem,this._currentItem={uri:e,key:e},this._navigationDevice.setUri(e,t.target===_.current)},_setCurrentItem:function(e){this._currentItem=e},navigate:function(e,t){t=t||{};var n,r=this,o=!r._currentItem,s=r._currentItem||{},l=t.item||{},u=s.uri,d=s.key,h=l.key;return void 0===e&&(e=r._navigationDevice.getUri()),/^_back$/.test(e)?void r.back():(t=c(r._getDefaultOptions(),t||{}),o&&(t.target=_.current),n={currentUri:u,uri:e,cancel:!1,navigateWhen:[],options:t},r.fireEvent("navigating",[n]),e=n.uri,void(n.cancel||u===e&&(void 0===h||h===d)&&!r._forceNavigate?r._cancelNavigation(n):(r._forceNavigate=!1,g.apply(i,n.navigateWhen).done(function(){a.executeAsync(function(){r._updateHistory(e,t),r.fireEvent("navigated",[{uri:e,previousUri:u,options:t,item:r._currentItem}])})}))))},back:function(){return this._navigationDevice.back()},previousItem:function(){return this._previousItem},currentItem:function(e){if(!(arguments.length>0))return this._currentItem;if(!e)throw h.Error("E3023");this._setCurrentItem(e)},rootUri:function(){return this._currentItem&&this._currentItem.uri},canBack:function(){return!0},saveState:a.noop,restoreState:a.noop,removeState:a.noop}).include(d),y=v.inherit({ctor:function(e){e=e||{},this.callBase(e),this._createNavigationStacks(e),p.add(this._deviceBackInitiated.bind(this)),this._stateStorageKey=e.stateStorageKey||m},init:function(){return this._navigationDevice.init()},_createNavigationDevice:function(e){e.navigationDevice||(e.navigationDevice=new u.StackBasedNavigationDevice),this.callBase(e),this._navigationDevice.backInitiated.add(this._deviceBackInitiated.bind(this))},_uriChangedHandler:function(e){this.navigate(e)},_createNavigationStacks:function(e){this.navigationStacks={},this._keepPositionInStack=e.keepPositionInStack,this.currentStack=new b},_deviceBackInitiated:function(){f()?this._syncUriWithCurrentNavigationItem():this.back({isHardwareButton:!0})},_getDefaultOptions:function(){return{target:_.blank}},_createNavigationStack:function(){var e=new b;return e.itemsRemoved.add(this._removeItems.bind(this)),e},_setCurrentItem:function(e){this._setCurrentStack(e.stack),this.currentStack.currentItem(e),this.callBase(e),this._syncUriWithCurrentNavigationItem()},_setCurrentStack:function(e){var t,n;"string"==typeof e?(n=e,n in this.navigationStacks||(this.navigationStacks[n]=this._createNavigationStack()),t=this.navigationStacks[n]):(t=e,n=s.map(this.navigationStacks,function(t,n){return t===e?n:null})[0]),this.currentStack=t,this.currentStackKey=n},_getViewTargetStackKey:function(e,t){var n;if(t)if(void 0!==this.navigationStacks[e])n=e;else{for(var i in this.navigationStacks)if(this.navigationStacks[i].items[0].uri===e){n=i;break}n=n||e}else n=this.currentStackKey||e;return n},_updateHistory:function(e,t){var n=t.root,i=n,r=!1,o=this.currentStack,a=void 0!==t.keepPositionInStack?t.keepPositionInStack:this._keepPositionInStack;if(t.stack=t.stack||this._getViewTargetStackKey(e,n),this._setCurrentStack(t.stack),!n&&this.currentStack.items.length||(r=this.currentStack===o,i=!0),n&&this.currentStack.items.length)a&&!r||(this.currentStack.currentIndex=0,this.currentItem().uri!==e&&this.currentStack.navigate(e,!0)),t.direction=t.direction||"none";else{var s=this.currentStack.currentIndex,l=this.currentItem()||{};switch(t.target){case _.blank:this.currentStack.navigate(e);break;case _.current:this.currentStack.navigate(e,!0);break;case _.back:this.currentStack.currentIndex>0?this.currentStack.back(e):this.currentStack.navigate(e,!0);break;default:throw h.Error("E3006",t.target)}if(void 0===t.direction){var c=this.currentStack.currentIndex-s;c<0?t.direction=this.currentStack.currentItem().backDirection||"backward":c>0&&this.currentStack.currentIndex>0?t.direction="forward":t.direction="none"}l.backDirection="forward"===t.direction?"backward":"none"}t.root=i,this._currentItem=this.currentStack.currentItem(),this._syncUriWithCurrentNavigationItem()},_removeItems:function(e){var t=this;s.each(e,function(e,n){t.fireEvent("itemRemoved",[n])})},back:function(e){e=e||{};var t=c({cancel:!1},e);if(this.fireEvent("navigatingBack",[t]),t.cancel)return void this._syncUriWithCurrentNavigationItem();var n=this.previousItem(t.stack);n?this.navigate(n.uri,{stack:t.stack,target:_.back,item:n}):this.callBase()},rootUri:function(){return this.currentStack.items.length?this.currentStack.items[0].uri:this.callBase()},canBack:function(e){var t=e?this.navigationStacks[e]:this.currentStack;return!!t&&t.canBack()},saveState:function(e){if(this.currentStack.items.length){var t={navigationStacks:{},currentStackKey:this.currentStackKey};s.each(this.navigationStacks,function(e,n){var i={};t.navigationStacks[e]=i,i.currentIndex=n.currentIndex,i.items=s.map(n.items,function(e){return{key:e.key,uri:e.uri}})});var n=JSON.stringify(t);e.setItem(this._stateStorageKey,n)}else this.removeState(e)},restoreState:function(e){if(!this.disableRestoreState){var t=e.getItem(this._stateStorageKey);if(t)try{var n=this,i=JSON.parse(t);s.each(i.navigationStacks,function(e,t){var i=n._createNavigationStack();n.navigationStacks[e]=i,i.currentIndex=t.currentIndex,i.items=s.map(t.items,function(e){return e.stack=i,e})}),this.currentStackKey=i.currentStackKey,this.currentStack=this.navigationStacks[this.currentStackKey],this._currentItem=this.currentStack.currentItem(),this._navigationDevice.setUri(this.currentItem().uri),this._forceNavigate=!0}catch(t){throw this.removeState(e),h.Error("E3007")}}},removeState:function(e){e.removeItem(this._stateStorageKey)},currentIndex:function(){return this.currentStack.currentIndex},previousItem:function(e){var t=this.navigationStacks[e]||this.currentStack;return t.previousItem()},getItemByIndex:function(e){return this.currentStack.items[e]},clearHistory:function(){this._createNavigationStacks({keepPositionInStack:this._keepPositionInStack})},itemByKey:function(e){var t;return s.each(this.navigationStacks,function(n,i){var r=i.itemByKey(e);if(r)return t=r,!1}),t},currentItem:function(e){var t;return arguments.length>0?("string"==typeof e?t=this.itemByKey(e):l(e)&&(t=e),void this.callBase(t)):this.callBase()}}),b=r.inherit({ctor:function(e){e=e||{},this.itemsRemoved=o(),this.clear()},currentItem:function(e){if(!e)return this.items[this.currentIndex];for(var t=0;t<this.items.length;t++)if(e===this.items[t]){this.currentIndex=t;break}},previousItem:function(){return this.items.length>1?this.items[this.currentIndex-1]:void 0},canBack:function(){return this.currentIndex>0},clear:function(){this._deleteItems(this.items),this.items=[],this.currentIndex=-1},back:function(e){if(this.currentIndex--,this.currentIndex<0)throw h.Error("E3008");var t=this.currentItem();t.uri!==e&&this._updateItem(this.currentIndex,e)},forward:function(){if(this.currentIndex++,this.currentIndex>=this.items.length)throw h.Error("E3009")},navigate:function(e,t){if(!(this.currentIndex<this.items.length&&this.currentIndex>-1&&this.items[this.currentIndex].uri===e)){if(t&&this.currentIndex>-1&&this.currentIndex--,this.currentIndex+1<this.items.length&&this.items[this.currentIndex+1].uri===e)this.currentIndex++;else{var n=this.items.splice(this.currentIndex+1,this.items.length-this.currentIndex-1);this.items.push({stack:this}),this.currentIndex++,this._updateItem(this.currentIndex,e),this._deleteItems(n)}return this.currentItem()}},itemByKey:function(e){for(var t=0;t<this.items.length;t++){var n=this.items[t];if(n.key===e)return n}},_updateItem:function(e,t){var n=this.items[e];n.uri=t,n.key=this.items[0].uri+"_"+e+"_"+t},_deleteItems:function(e){
16
+ e&&this.itemsRemoved.fire(e)}});t.HistoryBasedNavigationManager=v,t.StackBasedNavigationManager=y,t.NavigationStack=b},function(e,t,n){var i=n(52).DataSource,r=n(0).extend,o=n(52).normalizeDataSourceOptions,a="_dataSourceOptions",s="_dataSourceChangedHandler",l="_dataSourceLoadErrorHandler",c="_dataSourceLoadingChangedHandler",u="_dataSourceFromUrlLoadMode",d="_getSpecificDataSourceOption",h={postCtor:function(){this.on("disposing",function(){this._disposeDataSource()}.bind(this))},_refreshDataSource:function(){this._initDataSource(),this._loadDataSource()},_initDataSource:function(){var e,t,n=d in this?this[d]():this.option("dataSource");this._disposeDataSource(),n&&(n instanceof i?(this._isSharedDataSource=!0,this._dataSource=n):(e=a in this?this[a]():{},t=this._dataSourceType?this._dataSourceType():i,n=o(n,{fromUrlLoadMode:u in this&&this[u]()}),this._dataSource=new t(r(!0,{},e,n))),this._addDataSourceHandlers())},_addDataSourceHandlers:function(){s in this&&this._addDataSourceChangeHandler(),l in this&&this._addDataSourceLoadErrorHandler(),c in this&&this._addDataSourceLoadingChangedHandler(),this._addReadyWatcher()},_addReadyWatcher:function(){this._dataSource.on("loadingChanged",function(e){this._ready&&this._ready(!e)}.bind(this))},_addDataSourceChangeHandler:function(){var e=this._dataSource;this._proxiedDataSourceChangedHandler=function(){this[s](e.items())}.bind(this),e.on("changed",this._proxiedDataSourceChangedHandler)},_addDataSourceLoadErrorHandler:function(){this._proxiedDataSourceLoadErrorHandler=this[l].bind(this),this._dataSource.on("loadError",this._proxiedDataSourceLoadErrorHandler)},_addDataSourceLoadingChangedHandler:function(){this._proxiedDataSourceLoadingChangedHandler=this[c].bind(this),this._dataSource.on("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)},_loadDataSource:function(){if(this._dataSource){var e=this._dataSource;e.isLoaded()?this._proxiedDataSourceChangedHandler&&this._proxiedDataSourceChangedHandler():e.load()}},_loadSingle:function(e,t){return e="this"===e?this._dataSource.key()||"this":e,this._dataSource.loadSingle(e,t)},_isLastPage:function(){return!this._dataSource||this._dataSource.isLastPage()||!this._dataSource._pageSize},_isDataSourceLoading:function(){return this._dataSource&&this._dataSource.isLoading()},_disposeDataSource:function(){this._dataSource&&(this._isSharedDataSource?(delete this._isSharedDataSource,this._proxiedDataSourceChangedHandler&&this._dataSource.off("changed",this._proxiedDataSourceChangedHandler),this._proxiedDataSourceLoadErrorHandler&&this._dataSource.off("loadError",this._proxiedDataSourceLoadErrorHandler),this._proxiedDataSourceLoadingChangedHandler&&this._dataSource.off("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)):this._dataSource.dispose(),delete this._dataSource,delete this._proxiedDataSourceChangedHandler,delete this._proxiedDataSourceLoadErrorHandler,delete this._proxiedDataSourceLoadingChangedHandler)},getDataSource:function(){return this._dataSource||null}};e.exports=h},function(e,t,n){var i=n(64),r=n(81);if(i&&i.load){var o={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11965 $"},likelySubtags:{en:"en-Latn-US",de:"de-Latn-DE",ru:"ru-Cyrl-RU",ja:"ja-Jpan-JP"}}};i.locale()||(i.load(o),i.locale("en")),r.inject({locale:function(e){return e?void i.locale(e):i.locale().locale}})}},,function(e,t,n){function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=n(30),l=n(12),c=n(0).extend,u=n(10),d=n(76),h=n(17),p=n(22),f=n(4),g=n(1),_=n(7),m=_.Deferred,v=_.when,y=n(19),b=n(53),x=n(100),S=n(14),w=g.isFunction,C=f.noop,k={},T={},E=function(){function e(){r(this,e),this._postponedOperations={}}return a(e,[{key:"add",value:function(e,t,n){if(e in this._postponedOperations)n&&this._postponedOperations[e].promises.push(n);else{var i=new m;this._postponedOperations[e]={fn:t,completePromise:i,promises:n?[n]:[]}}return this._postponedOperations[e].completePromise.promise()}},{key:"callPostponedOperations",value:function(){for(var e in this._postponedOperations){var t=this._postponedOperations[e];t.promises&&t.promises.length?v.apply(void 0,i(t.promises)).done(t.fn).then(t.completePromise.resolve):t.fn().done(t.completePromise.resolve)}this._postponedOperations={}}}]),e}(),A=u.inherit({_setDeprecatedOptions:function(){this._deprecatedOptions={}},_getDeprecatedOptions:function(){return this._deprecatedOptions},_getOptionAliasesByName:function(e){var t=this;return Object.keys(this._deprecatedOptions).filter(function(n){return e===t._deprecatedOptions[n].alias})},_getDefaultOptions:function(){return{onInitialized:null,onOptionChanged:null,onDisposing:null,defaultOptionsRules:null}},_setDefaultOptions:function(){this._options=this._getDefaultOptions()},_defaultOptionsRules:function(){return[]},_setOptionsByDevice:function(e){var t=this._defaultOptionsRules();Array.isArray(e)&&(t=t.concat(e));var n=this._convertRulesToOptions(t);c(!0,this._options,n);for(var i in this._optionsByReference)n.hasOwnProperty(i)&&(this._options[i]=n[i])},_convertRulesToOptions:function(e){for(var t={},n=S.current(),i=function(e,t){var n=[];return Array.prototype.push.call(n,t),1===n.length&&g.isEmptyObject(n[0])||f.findBestMatches(e,n).length>0},r=0;r<e.length;r++){var o,a=e[r],s=a.device||{};o=w(s)?s(n):i(n,s),o&&c(t,a.options)}return t},_isInitialOptionValue:function(e){var t=this.option(e),n=this.initialOption(e),i=w(t)&&w(n)?t.toString()===n.toString():f.equalByValue(t,n);return i},_setOptionsByReference:function(){this._optionsByReference={}},_getOptionsByReference:function(){return this._optionsByReference},ctor:function(e){this.NAME=x.name(this.constructor),e=e||{},e.eventsStrategy&&this.setEventsStrategy(e.eventsStrategy),this._options={},this._updateLockCount=0,this._optionChangedCallbacks=e._optionChangedCallbacks||y(),this._disposingCallbacks=e._disposingCallbacks||y(),this.postponedOperations=new E,this.beginUpdate();try{this._suppressDeprecatedWarnings(),this._setOptionsByReference(),this._setDeprecatedOptions(),this._setDefaultOptions(),e&&e.onInitializing&&e.onInitializing.apply(this,[e]),this._setOptionsByDevice(e.defaultOptionsRules),this._resumeDeprecatedWarnings(),this._initOptions(e)}finally{this.endUpdate()}},_initOptions:function(e){this.option(e)},_optionValuesEqual:function(e,t,n){if(t=p.toComparable(t,!0),n=p.toComparable(n,!0),t&&n&&g.isRenderer(t)&&g.isRenderer(n))return n.is(t);var i=t!==t,r=n!==n;return!(!i||!r)||!(null!==t&&"object"===("undefined"==typeof t?"undefined":o(t))&&!l.isElementNode(t))&&t===n},_init:function(){this._createOptionChangedAction(),this.on("disposing",function(e){this._disposingCallbacks.fireWith(this,[e])}.bind(this))},_createOptionChangedAction:function(){this._optionChangedAction=this._createActionByOption("onOptionChanged",{excludeValidators:["disabled","readOnly","designMode"]})},_createDisposingAction:function(){this._disposingAction=this._createActionByOption("onDisposing",{excludeValidators:["disabled","readOnly","designMode"]})},_optionChanged:function(e){switch(e.name){case"onDisposing":case"onInitialized":break;case"onOptionChanged":this._createOptionChangedAction();break;case"defaultOptionsRules":}},_dispose:function(){this._optionChangedCallbacks.empty(),this._createDisposingAction(),this._disposingAction(),this._disposeEvents(),this._disposed=!0},instance:function(){return this},beginUpdate:function(){this._updateLockCount++},endUpdate:function(){if(this._updateLockCount=Math.max(this._updateLockCount-1,0),!this._updateLockCount&&(this.postponedOperations.callPostponedOperations(),!this._initializing&&!this._initialized)){this._initializing=!0;try{this._init()}finally{this._initializing=!1,this._updateLockCount++,this._createActionByOption("onInitialized",{excludeValidators:["disabled","readOnly","designMode"]})(),this._updateLockCount--,this._initialized=!0}}},_logWarningIfDeprecated:function(e){var t=this._deprecatedOptions[e];t&&!this._deprecatedOptionsSuppressed&&this._logDeprecatedWarning(e,t)},_logDeprecatedWarningCount:0,_logDeprecatedWarning:function(e,t){var n=t.message||"Use the '"+t.alias+"' option instead";h.log("W0001",this.NAME,e,t.since,n),++this._logDeprecatedWarningCount},_suppressDeprecatedWarnings:function(){this._deprecatedOptionsSuppressed=!0},_resumeDeprecatedWarnings:function(){this._deprecatedOptionsSuppressed=!1},_optionChanging:C,_notifyOptionChanged:function(e,t,n){var i=this;if(this._initialized)for(var r=[e].concat(i._getOptionAliasesByName(e)),o=0;o<r.length;o++){var a=r[o],s={name:a.split(/[.[]/)[0],fullName:a,value:t,previousValue:n};i._optionChangedCallbacks.fireWith(i,[c(i._defaultActionArgs(),s)]),i._optionChangedAction(c({},s)),i._disposed||i._optionChanged(s)}},initialOption:function(e){var t,n=this._initialized;return this._initialOptions||(t=this._options,this._options={},this._initialized=!1,this._setDefaultOptions(),this._setOptionsByDevice(t.defaultOptionsRules),this._initialOptions=this._options,this._options=t,this._initialized=n),this._initialOptions[e]},_defaultActionConfig:function(){return{context:this,component:this}},_defaultActionArgs:function(){return{component:this}},_createAction:function(e,t){var n,i=this;return function(r){return arguments.length||(r={}),g.isPlainObject(r)||(r={actionValue:r}),n=n||new d(e,c(t,i._defaultActionConfig())),n.execute.call(n,c(r,i._defaultActionArgs()))}},_createActionByOption:function(e,t){var n,i,r,o=this,a=function(){if(!i){if(t=t||{},"string"!=typeof e)throw h.Error("E0008");0===e.indexOf("on")&&(i=o._getEventName(e)),r=o.option(e)}if(n||r||t.beforeExecute||t.afterExecute||o.hasEvent(i)){if(!n){var a=t.beforeExecute;t.beforeExecute=function(e){a&&a.apply(o,arguments),o.fireEvent(i,e.args)},o._suppressDeprecatedWarnings(),n=o._createAction(r,t),o._resumeDeprecatedWarnings()}if(s().wrapActionsBeforeExecute){var l=o.option("beforeActionExecute")||C,c=l(o,n,t)||n;return c.apply(o,arguments)}return n.apply(o,arguments)}};if(!s().wrapActionsBeforeExecute){var l=o.option("onActionCreated")||C;a=l(o,a,t)||a}return a},_getEventName:function(e){return e.charAt(2).toLowerCase()+e.substr(3)},hasActionSubscription:function(e){return!!this.option(e)||this.hasEvent(this._getEventName(e))},isOptionDeprecated:function(e){var t=this._getDeprecatedOptions();return t.hasOwnProperty(e)},option:function(){var e=function(e,t){var n;if(t){if(!e._cachedDeprecateNames){e._cachedDeprecateNames=[];for(var i in e._deprecatedOptions)e._cachedDeprecateNames.push(i)}for(var r=0;r<e._cachedDeprecateNames.length;r++)if(e._cachedDeprecateNames[r]===t){n=e._deprecatedOptions[t];break}if(n){e._logWarningIfDeprecated(t);var o=n.alias;o&&(t=o)}}return t},t=function(e){var t=e.split(".");return t.pop(),t.join(".")},n=function(e){var t=e.split(".");return t[t.length-1]},i=function(e,t,n){var i=k[t];return i||(i=k[t]=p.compileGetter(t)),i(e,{functionsAsIs:!0,unwrapObservables:n})},r=function(e,r){delete e[r];var o=t(r),a=n(r),s=o?i(e,o,!1):e;s&&delete s[a]},o=function(e,r,o){var a,s="";do s&&(s="."+s),s=n(r)+s,r=t(r),a=r?i(e,r,!1):e;while(!a);a[s]=o},a=function(t,n,i,a){if(i){var s=e(t,i);s&&s!==i&&(o(n,s,a),r(n,i))}},s=function e(t,n,i,r){if(g.isPlainObject(r))for(var o in r)e(t,n,i+"."+o,r[o]);a(t,n,i,r)},l=function(e,t,n){T[t]||(T[t]=p.compileSetter(t));var i=t.split(/[.[]/);T[t](e._options,n,{functionsAsIs:!0,merge:!e._getOptionsByReference()[t],unwrapObservables:i.length>1&&!!e._getOptionsByReference()[i[0]]})},c=function(e,t,n){var r=i(e._options,t,!1);e._optionValuesEqual(t,r,n)||(e._initialized&&e._optionChanging(t,r,n),l(e,t,n),e._notifyOptionChanged(t,n,r))};return function(t,n){var r=this,o=t;if(arguments.length<2&&"object"!==g.type(o))return o=e(r,o),i(r._options,o);"string"==typeof o&&(t={},t[o]=n),r.beginUpdate();try{var a;for(a in t)s(r,t,a,t[a]);for(a in t)c(r,a,t[a])}finally{r.endUpdate()}}}(),_getOptionValue:function(e,t){var n=this.option(e);return w(n)?n.bind(t)():n}}).include(b);e.exports=A,e.exports.PostponedOperations=E},function(e,t,n){var i=n(2),r=n(10),o=n(0).extend,a=n(4),s=n(1),l=n(3),c=n(32),u=n(139),d=n(7),h=d.when,p=d.Deferred,f={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},g="dx-animating",_=r.inherit({ctor:function(){this._accumulatedDelays={enter:0,leave:0},this._animations=[],this.reset()},_createAnimations:function(e,t,n,r){var o,a=this,s=[];return n=n||{},o=this._prepareElementAnimationConfig(t,n,r),o&&e.each(function(){var e=a._createAnimation(i(this),o,n);e&&(e.element.addClass(g),e.setup(),s.push(e))}),s},_prepareElementAnimationConfig:function(e,t,n){var i;if("string"==typeof e){var r=e;e=u.presets.getPreset(r)}if(e)if(s.isFunction(e[n]))i=e[n];else{if(i=o({skipElementInitialStyles:!0,cleanupWhen:this._completePromise},e,t),!i.type||"css"===i.type){var a="dx-"+n,l=(i.extraCssClasses?" "+i.extraCssClasses:"")+f[i.direction];i.type="css",i.from=(i.from||a)+l,i.to=i.to||a+"-active"}i.staggerDelay=i.staggerDelay||0,i.delay=i.delay||0,i.staggerDelay&&(i.delay+=this._accumulatedDelays[n],this._accumulatedDelays[n]+=i.staggerDelay)}else i=void 0;return i},_createAnimation:function(e,t,n){var i;return s.isPlainObject(t)?i=c.createAnimation(e,t):s.isFunction(t)&&(i=t(e,n)),i},_startAnimations:function(){for(var e=this._animations,t=0;t<e.length;t++)e[t].start()},_stopAnimations:function(e){for(var t=this._animations,n=0;n<t.length;n++)t[n].stop(e)},_clearAnimations:function(){for(var e=this._animations,t=0;t<e.length;t++)e[t].element.removeClass(g);this._animations.length=0},reset:function(){this._accumulatedDelays.enter=0,this._accumulatedDelays.leave=0,this._clearAnimations(),this._completeDeferred=new p,this._completePromise=this._completeDeferred.promise()},enter:function(e,t,n){var i=this._createAnimations(e,t,n,"enter");this._animations.push.apply(this._animations,i)},leave:function(e,t,n){var i=this._createAnimations(e,t,n,"leave");this._animations.push.apply(this._animations,i)},start:function(){var e,t=this;if(this._animations.length){var n=l.map(this._animations,function(e){var t=new p;return e.deferred.always(function(){t.resolve()}),t.promise()});e=h.apply(i,n).always(function(){t._completeDeferred.resolve(),t.reset()}),a.executeAsync(function(){t._startAnimations()})}else t.reset(),e=(new p).resolve().promise();return e},stop:function(e){this._stopAnimations(e)}});t.TransitionExecutor=_},function(e,t,n){var i=n(2),r=n(5),o=n(12),a=n(68),s=n(61),l=n(9),c="dxmousewheel",u="dxWheel",d=a(function(){return o.hasDocumentProperty("onwheel")?"wheel":"mousewheel"}),h={setup:function(e){var t=i(e);r.on(t,l.addNamespace(d(),u),h._wheelHandler.bind(h))},teardown:function(e){r.off(e,"."+u)},_wheelHandler:function(e){var t=this._getWheelDelta(e.originalEvent);l.fireEvent({type:c,originalEvent:e,delta:t,pointerType:"mouse"}),e.stopPropagation()},_getWheelDelta:function(e){return e.wheelDelta?e.wheelDelta:30*-e.deltaY}};s(c,h),t.name=c},,function(e,t,n){var i=n(6),r=i.getWindow(),o=r.DevExpress=r.DevExpress||{},a=o.errors=n(17);if(o._DEVEXTREME_BUNDLE_INITIALIZED)throw a.Error("E0024");o._DEVEXTREME_BUNDLE_INITIALIZED=!0,o.clientExporter=n(187),o.VERSION=n(120),o.Class=n(10),o.DOMComponent=n(58),o.registerComponent=n(8),o.devices=n(14),o.Color=n(86);var s=n(105);o.EventsMixin=n(53),o.utils={},o.utils.requestAnimationFrame=s.requestAnimationFrame,o.utils.cancelAnimationFrame=s.cancelAnimationFrame,o.utils.initMobileViewport=n(222).initMobileViewport,o.utils.extendFromObject=n(0).extendFromObject,o.utils.createComponents=n(13).createComponents,o.utils.triggerShownEvent=n(13).triggerShownEvent,o.utils.triggerHidingEvent=n(13).triggerHidingEvent,o.utils.resetActiveElement=n(13).resetActiveElement,o.utils.findBestMatches=n(4).findBestMatches,o.createQueue=n(173).create,o.utils.dom=n(13),o.utils.common=n(4),o.utils.date=n(23),o.utils.browser=n(29),o.utils.inflector=n(37),o.utils.iterator=n(3),o.utils.resizeCallbacks=n(121),o.utils.console=n(75),o.utils.string=n(39),o.utils.support=n(40),o.processHardwareBackButton=n(223),o.viewPort=n(73).value,o.hideTopOverlay=n(136),o.formatHelper=n(88),o.config=n(30),o.animationPresets=n(139).presets,o.fx=n(32),o.TransitionExecutor=n(116).TransitionExecutor,o.AnimationPresetCollection=n(139).PresetCollection,o.events=n(319),o.events.click=n(18),o.events.utils=n(9),o.events.GestureEmitter=n(146),o.localization=n(322),e.exports=o},function(e,t,n){e.exports="18.1.17"},function(e,t,n){var i=n(6),r=n(12),o=n(19),a=n(51),s=n(68),l=function(){var e,t=o(),n=t.add,l=t.remove;if(!i.hasWindow())return t;var c,u=function(){var e=r.getDocumentElement();return{width:e.clientWidth,height:e.clientHeight}},d=function(){var n=u();if(n.width!==e.width||n.height!==e.height){var i;n.width===e.width&&(i="height"),n.height===e.height&&(i="width"),e=n,t.fire(i)}},h=s(function(){e=u()});return t.add=function(){var e=n.apply(t,arguments);return h(),a.add(function(){!c&&t.has()&&(c=r.listen(i.getWindow(),"resize",d))}),e},t.remove=function(){var e=l.apply(t,arguments);return!t.has()&&c&&(c(),c=void 0),e},t}();e.exports=l},function(e,t,n){var i=n(2),r=n(66),o=r.inherit({_renderCore:function(){return i()}});e.exports=o},function(e,t,n){var i=n(2),r=n(10),o=n(3).each,a=n(100),s="dx-state-invisible",l="dx-state-disabled",c="dx-item-content-placeholder",u=function(e,t,n){var i=function(){var e;return function(t){e!==t&&(n(t,e),e=t)}}();return{dispose:e(t,i),force:function(){i(t())}}},d=r.inherit({ctor:function(e,t,n){this._$element=e,this._options=t,this._rawData=n,a.attachInstanceToElement(e,this,this._dispose),this._render()},_render:function(){var e=i("<div>").addClass(c);this._$element.append(e),this._watchers=[],this._renderWatchers()},_renderWatchers:function(){this._startWatcher("disabled",this._renderDisabled.bind(this)),this._startWatcher("visible",this._renderVisible.bind(this))},_startWatcher:function(e,t){var n=this._rawData,i=this._options.fieldGetter(e),r=u(this._options.watchMethod(),function(){return i(n)},function(e,n){this._dirty=!0,t(e,n)}.bind(this));this._watchers.push(r)},setDataField:function(){if(this._dirty=!1,o(this._watchers,function(e,t){t.force()}),this._dirty)return!0},_renderDisabled:function(e,t){this._$element.toggleClass(l,!!e)},_renderVisible:function(e,t){this._$element.toggleClass(s,void 0!==e&&!e)},_dispose:function(){o(this._watchers,function(e,t){t.dispose()})}});d.getInstance=function(e){return a.getInstanceByElement(e,this)},e.exports=d},function(e,t,n){var i=n(9),r=n(146),o=n(84),a="dxswipestart",s="dxswipe",l="dxswipeend",c={defaultItemSizeFunc:function(){return this.getElement().width()},getBounds:function(){return[this._maxLeftOffset,this._maxRightOffset]},calcOffsetRatio:function(e){var t=i.eventData(e);return(t.x-(this._savedEventData&&this._savedEventData.x||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=i.eventData(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.x-this._tickData.x)>=t.time-this._tickData.time}},u={defaultItemSizeFunc:function(){return this.getElement().height()},getBounds:function(){return[this._maxTopOffset,this._maxBottomOffset]},calcOffsetRatio:function(e){var t=i.eventData(e);return(t.y-(this._savedEventData&&this._savedEventData.y||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=i.eventData(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.y-this._tickData.y)>=t.time-this._tickData.time}},d={horizontal:c,vertical:u},h=r.inherit({TICK_INTERVAL:300,FAST_SWIPE_SPEED_LIMIT:10,ctor:function(e){this.callBase(e),this.direction="horizontal",this.elastic=!0},_getStrategy:function(){return d[this.direction]},_defaultItemSizeFunc:function(){return this._getStrategy().defaultItemSizeFunc.call(this)},_itemSizeFunc:function(){return this.itemSizeFunc||this._defaultItemSizeFunc},_init:function(e){this._tickData=i.eventData(e)},_start:function(e){this._savedEventData=i.eventData(e),e=this._fireEvent(a,e),e.cancel||(this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset)},_move:function(e){var t=this._getStrategy(),n=i.eventData(e),r=t.calcOffsetRatio.call(this,e);r=this._fitOffset(r,this.elastic),n.time-this._tickData.time>this.TICK_INTERVAL&&(this._tickData=n),this._fireEvent(s,e,{offset:r}),e.preventDefault()},_end:function(e){var t=this._getStrategy(),n=t.calcOffsetRatio.call(this,e),i=t.isFastSwipe.call(this,e),r=n,o=this._calcTargetOffset(n,i);r=this._fitOffset(r,this.elastic),o=this._fitOffset(o,!1),this._fireEvent(l,e,{offset:r,targetOffset:o})},_fitOffset:function(e,t){var n=this._getStrategy(),i=n.getBounds.call(this);return e<-i[0]?t?(-2*i[0]+e)/3:-i[0]:e>i[1]?t?(2*i[1]+e)/3:i[1]:e},_calcTargetOffset:function(e,t){var n;return t?(n=Math.ceil(Math.abs(e)),e<0&&(n=-n)):n=Math.round(e),n}});o({emitter:h,events:[a,s,l]}),t.swipe=s,t.start=a,t.end=l},,,,,function(e,t,n){var i=n(2),r=n(35).beforeCleanData,o=n(5),a=n(61),s="dxremove",l="dxRemoveEvent";r(function(e){e=[].slice.call(e);for(var t=0;t<e.length;t++){var n=i(e[t]);n.prop(l)&&(n[0][l]=null,o.triggerHandler(n,s))}}),a(s,{noBubble:!0,setup:function(e){i(e).prop(l,!0)}}),e.exports=s},,function(e,t,n){function i(){var e=v.testFormats(F);return{unsupported:e.unsupported,supported:e.supported.concat(z)}}function r(e,t,n){return n=n||i(),e=String(e).toUpperCase(),n.supported.indexOf(e)!==-1?e:void(n.unsupported.indexOf(e)!==-1&&t&&t("W2108",[e]))}function o(e){return"SVG"===e?y.getData:"PDF"===e?b.getData:v.getData}function a(e,t,n){e&&e.hide(),_.export(t(),n,o(n.format)),e&&e.show()}function s(e,t){var n,i=f.openWindow();i&&(i.document.open(),i.document.write(e),i.document.close(),n=i.document.body.getElementsByTagName("svg")[0],n&&(n.style.backgroundColor=t),i.print(),i.close())}function l(e,t,n){var i,r={},o=T-O,a=T+A+P+n*M;return r.rect={width:O-2*P,height:M,x:o+P,y:a},r.text={x:o+(e.rtl?O-D:D),y:a+M-I},"printing"===t&&(i="M "+o+" "+(a+M-P)+" L "+(o+O)+" "+(a+M-P),r.separator={stroke:e.button.default.borderColor,"stroke-width":P,cursor:"pointer",sharp:"v",d:i}),r}function c(e,t,n){var i,r={},o=n.type,a=n.format,s=l(t,o,n.itemIndex),c=g(t.font),u=e.rect(),d=e.text(n.text);return c["pointer-events"]="none",i=e.g().attr({"class":N+"-list-item"}),r[H]=o,a&&(r[G]=a),u.attr(s.rect).css({cursor:"pointer","pointer-events":"all"}).data(r),u.on(w.start+".export",function(){u.attr({fill:t.button.hover.backgroundColor})}).on(w.end+".export",function(){u.attr({fill:null})}),u.append(i),d.css(c).attr(s.text).append(i),"printing"===o&&e.path(null,"line").attr(s.separator).append(i),{g:i,rect:u,resetState:function(){u.attr({fill:null})},fixPosition:function(){var e=d.getBBox(),n=s.text.x-e.x;t.rtl&&(n-=e.width),d.move(n)}}}function u(e,t){var n=t.formats,i=[];return t.printingEnabled&&i.push(c(e,t,{type:"printing",text:m.format("vizExport-printingButtonText"),itemIndex:i.length})),i=n.reduce(function(n,i){return n.push(c(e,t,{type:"exporting",text:m.getFormatter("vizExport-exportButtonText")(i),format:i,itemIndex:n.length})),n},i)}function d(e){var t=W.exec(e);return t?t[1]:void 0}function h(e,t,n,i){return(i||t.format)&&(i=r(i||t.format,e._incidentOccurred)),{format:i||V,fileName:n||t.fileName||"file",proxyUrl:t.proxyUrl,backgroundColor:t.backgroundColor,width:e._canvas.width,height:e._canvas.height,margin:t.margin,forceProxy:t.forceProxy,exportingAction:e._createActionByOption("onExporting"),exportedAction:e._createActionByOption("onExported"),fileSavingAction:e._createActionByOption("onFileSaving")}}var p=n(0).extend,f=n(6),g=n(16).patchFontOptions,_=n(187),m=n(15),v=_.image,y=_.svg,b=_.pdf,x=n(1).isDefined,S=n(47),w=n(157),C=n(25),k=[C.down,C.move].join(" "),T=35,E=[[9,12,26,12,26,14,9,14],[9,17,26,17,26,19,9,19],[9,22,26,22,26,24,9,24]],A=4,O=120,I=8,D=15,M=30,P=1,L=10,B=2,R=3,V="PNG",F=[V,"JPEG","GIF"],z=["PDF","SVG"],N="dx-export-menu",H="export-element-type",G="export-element-format",W=/data-backgroundcolor="([^"]*)"/;t.exportFromMarkup=function(e,t){t.format=r(t.format)||V,t.fileName=t.fileName||"file",t.exportingAction=t.onExporting,t.exportedAction=t.onExported,t.fileSavingAction=t.onFileSaving,t.margin=x(t.margin)?t.margin:L,t.backgroundColor=x(t.backgroundColor)?t.backgroundColor:d(e),_.export(e,t,o(t.format))},t.getMarkup=function(e){var t=[],n=0,i=0,r=[],o="";return e.forEach(function(e){var o=e.getSize(),a=e.option("backgroundColor")||S.getTheme(e.option("theme")).backgroundColor;a&&r.indexOf(a)===-1&&r.push(a),t.push(e.svg().replace("<svg",'<g transform="translate(0,'+n+')" ').replace("</svg>","</g>")),n+=o.height,i=Math.max(i,o.width)}),1===r.length&&(o='data-backgroundcolor="'+r[0]+'" '),"<svg "+o+'height="'+n+'" width="'+i+'" version="1.1" xmlns="http://www.w3.org/2000/svg">'+t.join("")+"</svg>"},t.ExportMenu=function(e){var t=this,n=t._renderer=e.renderer;t._incidentOccurred=e.incidentOccurred,t._svgMethod=e.svgMethod,t._shadow=n.shadowFilter("-50%","-50%","200%","200%",B,6,R),t._shadow.attr({opacity:.8}),t._group=n.g().attr({"class":N}).linkOn(n.root,{name:"export-menu",after:"peripheral"}),t._buttonGroup=n.g().attr({"class":N+"-button"}).append(t._group),t._listGroup=n.g().attr({"class":N+"-list"}).append(t._group),t._overlay=n.rect(-O+T,T+A,O,0),t._overlay.attr({"stroke-width":P,cursor:"pointer",rx:4,ry:4,filter:t._shadow.id}),t._overlay.data({"export-element-type":"list"}),t.validFormats=i(),t._subscribeEvents()},p(t.ExportMenu.prototype,{getLayoutOptions:function(){if(this._hiddenDueToLayout)return{width:0,height:0,cutSide:"vertical",cutLayoutSide:"top"};var e=this._buttonGroup.getBBox();return e.cutSide="vertical",e.cutLayoutSide="top",e.height+=L,e.position={vertical:"top",horizontal:"right"},e.verticalAlignment="top",e.horizontalAlignment="right",e},probeDraw:function(){this._fillSpace(),this.show()},shift:function(e,t){this._group.attr({translateY:this._group.attr("translateY")+t})},draw:function(e,t,n){var i;return this.updateCanvasSize(n),this._group.move(e-T-B-R+n.left,Math.floor(t/2-T/2)),i=this.getLayoutOptions(),(i.width>e||i.height>t)&&this.freeSpace(),this},show:function(){this._group.linkAppend()},hide:function(){this._group.linkRemove()},setOptions:function(e){var t=this;t._options=e,e.formats?e.formats=e.formats.reduce(function(e,n){return n=r(n,t._incidentOccurred,t.validFormats),n&&e.push(n),e},[]):e.formats=t.validFormats.supported.slice(),e.printingEnabled=void 0===e.printingEnabled||e.printingEnabled,e.enabled&&(e.formats.length||e.printingEnabled)?(t.show(),t._updateButton(),t._updateList(),t._hideList()):t.hide()},updateCanvasSize:function(e){if(this._options&&this._options.exportOptions){var t=this._options.exportOptions;t.width=e.width,t.height=e.height}},dispose:function(){var e=this;e._unsubscribeEvents(),e._group.linkRemove().linkOff(),e._group.dispose(),e._shadow.dispose(),e._shadow=e._group=e._listGroup=e._buttonGroup=e._button=null,e._options=null},layoutOptions:function(){var e=this._options;return e.enabled&&{horizontalAlignment:"right",verticalAlignment:"top",weak:!0}},measure:function(){return this._fillSpace(),[T+B,T]},move:function(e){this._group.attr({translateX:Math.round(e[0]),translateY:Math.round(e[1])})},_fillSpace:function(){this._hiddenDueToLayout=!1,this.show()},freeSpace:function(){this._incidentOccurred("W2107"),this._hiddenDueToLayout=!0,this.hide()},_hideList:function(){this._listGroup.remove(),this._listShown=!1,this._setButtonState("default"),this._menuItems.forEach(function(e){e.resetState()})},_showList:function(){this._listGroup.append(this._group),this._listShown=!0,this._menuItems.forEach(function(e){e.fixPosition()})},_setButtonState:function(e){var t=this,n=t._options.button[e];this._button.attr({stroke:n.borderColor,fill:n.backgroundColor}),this._icon.attr({fill:n.color})},_subscribeEvents:function(){var e=this;e._renderer.root.on(C.up+".export",function(t){var n,i=t.target[H],r=e._options;return i?void("button"===i?e._listShown?(e._setButtonState("default"),e._hideList()):(e._setButtonState("focus"),e._showList()):"printing"===i?(e.hide(),s(e._svgMethod(),r.backgroundColor),e.show(),e._hideList()):"exporting"===i&&(n=p({},r.exportOptions,{format:t.target[G]}),a(e,function(){return e._svgMethod()},n),e._hideList())):void(e._button&&e._hideList())}),e._listGroup.on(k,function(e){e.stopPropagation()}),e._buttonGroup.on(C.enter,function(){e._setButtonState("hover")}),e._buttonGroup.on(C.leave,function(){e._setButtonState(e._listShown?"focus":"default")}),e._buttonGroup.on(C.down+".export",function(){e._setButtonState("active")})},_unsubscribeEvents:function(){this._renderer.root.off(".export"),this._listGroup.off(),this._buttonGroup.off()},_updateButton:function(){var e=this,t=e._renderer,n=e._options,i={fill:n.button.default.color,cursor:"pointer"},r={"export-element-type":"button"};e._button||(e._button=t.rect(0,0,T,T).append(e._buttonGroup),e._button.attr({rx:4,ry:4,fill:n.button.default.backgroundColor,stroke:n.button.default.borderColor,"stroke-width":1,cursor:"pointer"}),e._button.data(r),e._icon=t.path(E).append(e._buttonGroup),e._icon.attr(i),e._icon.data(r),e._buttonGroup.setTitle(m.format("vizExport-titleMenuText")))},_updateList:function(){var e=this,t=e._options,n=t.button.default,i=e._listGroup,r=u(e._renderer,t);e._shadow.attr({color:t.shadowColor}),e._overlay.attr({height:r.length*M+2*P,fill:n.backgroundColor,stroke:n.borderColor}),i.clear(),e._overlay.append(i),r.forEach(function(e){e.g.append(i)}),e._menuItems=r}}),t.plugin={name:"export",init:function(){var e=this;e._exportMenu=new t.ExportMenu({renderer:e._renderer,svgMethod:function(){return e.svg()},incidentOccurred:e._incidentOccurred}),e._layout.add(e._exportMenu)},dispose:function(){this._exportMenu.dispose(),this._exportMenu=null},extenders:{_change_LAYOUT:function(){this._exportMenu&&this._exportMenu.updateCanvasSize(this._canvas)}},members:{_getExportMenuOptions:function(){var e=this._getOption("export")||{},t=h(this,e);return p({},e,{exportOptions:t,rtl:this._getOption("rtlEnabled",!0)})},exportTo:function(e,t){var n=this,i=h(n,n._getOption("export")||{},e,t);a(n._exportMenu,function(){return n.svg()},i)},print:function(){s(this.svg(),this._getOption("export").backgroundColor)}},customize:function(e){var t=e.prototype;e.addChange({code:"EXPORT",handler:function(){this._exportMenu.setOptions(this._getExportMenuOptions()),this._change(["LAYOUT"])},isThemeDependent:!0,isOptionChange:!0,option:"export"}),t._optionChangesMap.onExporting="EXPORT",t._optionChangesMap.onExported="EXPORT",t._optionChangesMap.onFileSaving="EXPORT"}}},function(e,t,n){function i(){return!0}function r(){return!1}function o(e,t){return!(e.width===t.width&&e.height===t.height&&e.left===t.left&&e.top===t.top&&e.right===t.right&&e.bottom===t.bottom)}function a(e){var t,n=function(){clearTimeout(t),t=setTimeout(e,100)};return n.dispose=function(){return clearTimeout(t),this},n}function s(e){e.component.hasEvent("incidentOccurred")||T.apply(null,[e.target.id].concat(e.target.args||[]))}function l(e){return e.reduce(function(e,t){return t>0&&!e?t:e},0)}function c(e){return f.isDefined(e)&&e>0}function u(e,t){function n(n){var i=e[n];r[i.name]=t(n)}function i(e,t,n){r[e](t),n&&n()}var r={};g(e,function(e,t){t.name&&n(e)});var o;return i.change=function(t){var n=e[t];return n&&((o=o||{})[t]=n),!!n},i.applyChanges=function(){o&&(g(o,function(e,t){n(t.newName||e)}),o=null)},i.dispose=function(){e=t=r=null},i}var d=n(4).noop,h=n(6),p=n(12),f=n(1),g=n(3).each,_=n(120),m=n(121),v=n(39).format,y=n(1).isObject,b=n(0).extend,x=Math.floor,S=n(58),w=n(164),C=n(16).parseScalar,k=n(656),T=k.log,E=n(198),A=n(658),O="rtlEnabled",I="dx-sized-element",D=S.prototype.option,M=function(e,t){
17
17
  return function(n,i){t("incidentOccurred",{target:{id:n,type:"E"===n[0]?"error":"warning",args:i,text:v.apply(null,[k.ERROR_MESSAGES[n]].concat(i||[])),widget:e,version:_}})}},P=function(){var e={};e.ctor=function(e,t){this.callBase(e,t);var n=p.createElement("div"),i=t&&f.isNumeric(t.width)?t.width+"px":"100%",r=t&&f.isNumeric(t.height)?t.height+"px":this._getDefaultSize().height+"px";p.setStyle(n,"width",i),p.setStyle(n,"height",r),p.setClass(n,I),p.insertElement(e,n)};var t=S.inherit(e),n=t.inherit;return t.inherit=function(e){for(var t in e)(f.isFunction(e[t])&&"_"!==t.substr(0,1)||"_dispose"===t||"_optionChanged"===t)&&(e[t]=d);return n.call(this,e)},t},L=!h.hasWindow();e.exports=L?P():S.inherit({_eventsMap:{onIncidentOccurred:{name:"incidentOccurred"},onDrawn:{name:"drawn"}},_getDefaultOptions:function(){return b(this.callBase(),{onIncidentOccurred:s})},_useLinks:!0,_init:function(){var e,t=this;t._$element.children("."+I).remove(),t.callBase.apply(t,arguments),t._changesLocker=0,t._changes=w.changes(),t._suspendChanges(),t._themeManager=t._createThemeManager(),t._themeManager.setCallback(function(){t._requestChange(t._themeDependentChanges)}),t._renderElementAttributes(),t._initRenderer(),e=t._useLinks&&t._renderer.root,e&&e.enableLinks().virtualLink("core").virtualLink("peripheral"),t._renderVisibilityChange(),t._attachVisibilityChangeHandlers(),t._initEventTrigger(),t._incidentOccurred=M(t.NAME,t._eventTrigger),t._layout=new A,e&&e.linkAfter("core"),t._initPlugins(),t._initCore(),e&&e.linkAfter(),t._change(t._initialChanges)},_initialChanges:["LAYOUT","RESIZE_HANDLER","THEME","DISABLED"],_initPlugins:function(){var e=this;g(e._plugins,function(t,n){n.init.call(e)})},_disposePlugins:function(){var e=this;g(e._plugins.slice().reverse(),function(t,n){n.dispose.call(e)})},_change:function(e){this._changes.add(e)},_suspendChanges:function(){++this._changesLocker},_resumeChanges:function(){var e=this;0===--e._changesLocker&&e._changes.count()>0&&!e._applyingChanges&&(e._renderer.lock(),e._applyingChanges=!0,e._applyChanges(),e._changes.reset(),e._applyingChanges=!1,e._renderer.unlock(),e._optionsQueue&&e._applyQueuedOptions())},_applyQueuedOptions:function(){var e=this,t=e._optionsQueue;e._optionsQueue=null,e.beginUpdate(),g(t,function(e,t){t()}),e.endUpdate()},_requestChange:function(e){this._suspendChanges(),this._change(e),this._resumeChanges()},_applyChanges:function(){var e,t=this,n=t._changes,i=t._totalChangesOrder,r=i.length;for(e=0;e<r;++e)n.has(i[e])&&t["_change_"+i[e]]()},_optionChangesOrder:["EVENTS","THEME","RENDERER","RESIZE_HANDLER"],_layoutChangesOrder:["ELEMENT_ATTR","CONTAINER_SIZE","LAYOUT"],_customChangesOrder:["DISABLED"],_change_EVENTS:function(){this._eventTrigger.applyChanges()},_change_THEME:function(){this._setThemeAndRtl()},_change_RENDERER:function(){this._setRendererOptions()},_change_RESIZE_HANDLER:function(){this._setupResizeHandler()},_change_ELEMENT_ATTR:function(){this._renderElementAttributes(),this._change(["CONTAINER_SIZE"])},_change_CONTAINER_SIZE:function(){this._updateSize()},_change_LAYOUT:function(){this._setContentSize()},_change_DISABLED:function(){var e=this._renderer,t=e.root;this.option("disabled")?(this._initDisabledState=t.attr("pointer-events"),t.attr({"pointer-events":"none",filter:e.getGrayScaleFilter().id})):"none"===t.attr("pointer-events")&&t.attr({"pointer-events":f.isDefined(this._initDisabledState)?this._initDisabledState:null,filter:null})},_themeDependentChanges:["RENDERER"],_initRenderer:function(){var e=this;e._canvas=e._calculateCanvas(),e._renderer=new E.Renderer({cssClass:e._rootClassPrefix+" "+e._rootClass,pathModified:e.option("pathModified"),container:e._$element[0]}),e._renderer.resize(e._canvas.width,e._canvas.height)},_disposeRenderer:function(){this._renderer.dispose()},_getAnimationOptions:d,render:function(){this._requestChange(["CONTAINER_SIZE"]),this._onRender()},_onRender:d,_dispose:function(){var e=this;e.callBase.apply(e,arguments),e._removeResizeHandler(),e._layout.dispose(),e._eventTrigger.dispose(),e._disposeCore(),e._disposePlugins(),e._disposeRenderer(),e._themeManager.dispose(),e._themeManager=e._renderer=e._eventTrigger=null},_initEventTrigger:function(){var e=this;e._eventTrigger=u(e._eventsMap,function(t){return e._createActionByOption(t)})},_calculateCanvas:function(){var e=this,t=e.option("size")||{},n=e.option("margin")||{},i=e._getDefaultSize()||{},r=!c(t.width)&&h.hasWindow()?e._$element.width():0,o=!c(t.height)&&h.hasWindow()?e._$element.height():0,a={width:t.width<=0?0:x(l([t.width,r,i.width])),height:t.height<=0?0:x(l([t.height,o,i.height])),left:l([n.left,i.left]),top:l([n.top,i.top]),right:l([n.right,i.right]),bottom:l([n.bottom,i.bottom])};return(a.width-a.left-a.right<=0||a.height-a.top-a.bottom<=0)&&(a={width:0,height:0}),a},_updateSize:function(){var e=this,t=e._calculateCanvas();e._renderer.fixPlacement(),(o(e._canvas,t)||e.__forceRender)&&(e._canvas=t,e._recreateSizeDependentObjects(!0),e._renderer.resize(t.width,t.height),e._change(["LAYOUT"]))},_recreateSizeDependentObjects:d,_getMinSize:function(){return[0,0]},_getAlignmentRect:d,_setContentSize:function(){var e,t=this._canvas,n=this._layout,i=t.width>0&&t.height>0?[t.left,t.top,t.width-t.right,t.height-t.bottom]:[0,0,0,0];i=n.forward(i,this._getMinSize()),e=this._applySize(i)||i,n.backward(e,this._getAlignmentRect()||e)},_getOption:function(e,t){var n=this._themeManager.theme(e),i=this.option(e);return t?void 0!==i?i:n:b(!0,{},n,i)},_setupResizeHandler:function(){var e=this,t=C(this._getOption("redrawOnResize",!0),!0);e._resizeHandler&&e._removeResizeHandler(),e._resizeHandler=a(function(){t?e._requestChange(["CONTAINER_SIZE"]):e._renderer.fixPlacement()}),m.add(e._resizeHandler)},_removeResizeHandler:function(){this._resizeHandler&&(m.remove(this._resizeHandler),this._resizeHandler.dispose(),this._resizeHandler=null)},_onBeginUpdate:d,beginUpdate:function(){var e=this;return e._initialized&&0===e._updateLockCount&&(e._onBeginUpdate(),e._suspendChanges()),e.callBase.apply(e,arguments),e},endUpdate:function(){var e=this;return e.callBase.apply(e,arguments),0===e._updateLockCount&&e._resumeChanges(),e},option:function(e){var t=this;return t._initialized&&t._applyingChanges&&(arguments.length>1||y(e))?(t._optionsQueue=t._optionsQueue||[],void t._optionsQueue.push(t._getActionForUpdating(arguments))):D.apply(t,arguments)},_getActionForUpdating:function(e){var t=this;return t._deprecatedOptionsSuppressed?function(){t._suppressDeprecatedWarnings(),D.apply(t,e),t._resumeDeprecatedWarnings()}:function(){D.apply(t,e)}},_clean:d,_render:d,_optionChanged:function(e){var t=this;t._eventTrigger.change(e.name)?t._change(["EVENTS"]):t._optionChangesMap[e.name]?t._change([t._optionChangesMap[e.name]]):t.callBase.apply(t,arguments)},_optionChangesMap:{size:"CONTAINER_SIZE",margin:"CONTAINER_SIZE",redrawOnResize:"RESIZE_HANDLER",theme:"THEME",rtlEnabled:"THEME",encodeHtml:"THEME",elementAttr:"ELEMENT_ATTR",disabled:"DISABLED"},_visibilityChanged:function(){this.render()},_setThemeAndRtl:function(){this._themeManager.setTheme(this.option("theme"),this.option(O))},_getRendererOptions:function(){return{rtl:this.option(O),encodeHtml:this.option("encodeHtml"),animation:this._getAnimationOptions()}},_setRendererOptions:function(){this._renderer.setOptions(this._getRendererOptions())},svg:function(){return this._renderer.svg()},getSize:function(){var e=this._canvas||{};return{width:e.width,height:e.height}},isReady:r,_dataIsReady:i,_resetIsReady:function(){this.isReady=r},_drawn:function(){var e=this;e.isReady=r,e._dataIsReady()&&e._renderer.onEndAnimation(function(){e.isReady=i}),e._eventTrigger("drawn",{})}}),w.replaceInherit(e.exports)},function(e,t,n){function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){var t=0;return p(e,function(e,n){t+=n}),t}function o(e){return h(e,[L,P,I,D,M])!==-1}function a(e,t){return r(b(e,function(e){return(e-t)*(e-t)}))/e.length}function s(e,t,n){var i=n.getOptions().valueErrorBar,r=n.getValueFields()[0],o=i.lowValueField||O,a=i.highValueField||A;if(n.areErrorBarsVisible()&&void 0===i.type){var s=t.reduce(function(e,t){return v(t[o])&&(e[0]+=t[r]-t[o],e[1]++),v(t[a])&&(e[2]+=t[a]-t[r],e[3]++),e},[0,0,0,0]);s[1]&&(e[o]=e[r]-s[0]/s[1]),s[2]&&(e[a]=e[r]+s[2]/s[3])}return e}function l(e,t,n){var i=n.getOptions().valueErrorBar,r=i.lowValueField||O,o=i.highValueField||A;return n.areErrorBarsVisible()&&void 0===i.type&&(e[r]=0,e[o]=0,e=t.reduce(function(e,t){return e[r]+=t[r],e[o]+=t[o],e},e)),e}function c(e){return function(t,n){var r=t.intervalStart,o=t.data,a=n.getValueFields()[0],s=o[0];return s=o.reduce(function(t,n){var i=n[a];return null===t[a]&&(t=n),null!==i&&e(i,t[a])?n:t},s),d({},s,i({},n.getArgumentField(),r))}}function u(e,t,n){var i=!0;for(var r in t){var o="argument"===r;if(o||"size"===r?!v(e[r]):void 0===e[r]){var a=t[r];o||(n[a]=(n[a]||0)+1),i=!1}}return i}var d=n(0).extend,h=n(11).inArray,p=n(3).each,f=n(425),g=n(1),_=n(16),m=n(4).noop,v=g.isDefined,y=g.isString,b=_.map,x=_.normalizeEnum,S=Math,w=S.abs,C=S.sqrt,k=S.max,T=12,E=400,A="highError",O="lowError",I="variance",D="stddeviation",M="stderror",P="percent",L="fixed",B="undefined",R="discrete",V="logarithmic",F="datetime";t.chart={},t.polar={};var z={_defaultDuration:E,_defaultTrackerWidth:T,_applyStyle:m,_updateOptions:m,_parseStyle:m,_prepareSegment:m,_drawSegment:m,_appendInGroup:function(){this._group.append(this._extGroups.seriesGroup)},_createLegendState:function(e,t){return{fill:e.color||t,hatching:e.hatching?d({},e.hatching,{direction:"right"}):void 0}},_applyElementsClipRect:function(e){e["clip-path"]=this._paneClipRectID},_applyMarkerClipRect:function(e){e["clip-path"]=this._forceClipping?this._paneClipRectID:null},_createGroup:function(e,t,n,i){var r=t[e]=t[e]||this._renderer.g();n&&r.append(n),i&&r.attr(i)},_applyClearingSettings:function(e){e.opacity=null,e.scale=null,this._options.rotated?e.translateX=null:e.translateY=null},_createGroups:function(){var e=this;e._createGroup("_markersGroup",e,e._group),e._createGroup("_labelsGroup",e)},_setMarkerGroupSettings:function(){var e=this,t=e._createPointStyles(e._getMarkerGroupOptions()).normal;t.class="dxc-markers",t.opacity=1,e._applyMarkerClipRect(t),e._markersGroup.attr(t)},getVisibleArea:function(){return this._visibleArea},areErrorBarsVisible:function(){var e=this._options.valueErrorBar;return e&&this._errorBarsEnabled()&&"none"!==e.displayMode&&(o(x(e.type))||v(e.lowValueField)||v(e.highValueField))},_createErrorBarGroup:function(e){var t,n=this,i=n._options.valueErrorBar;n.areErrorBarsVisible()&&(t={"class":"dxc-error-bars",stroke:i.color,"stroke-width":i.lineWidth,opacity:e?.001:i.opacity||1,"stroke-linecap":"square",sharp:!0,"clip-path":n._forceClipping?n._paneClipRectID:n._widePaneClipRectID},n._createGroup("_errorBarGroup",n,n._group,t))},_setGroupsSettings:function(e){var t=this;t._setMarkerGroupSettings(),t._setLabelGroupSettings(e),t._createErrorBarGroup(e)},_getCreatingPointOptions:function(){var e,t,n=this,i=n._predefinedPointOptions;return i||(e=n._getPointOptions(),n._predefinedPointOptions=i=d(!0,{styles:{}},e),t=e.styles&&e.styles.normal||{},i.styles=i.styles||{},i.styles.normal={"stroke-width":t["stroke-width"],r:t.r,opacity:t.opacity}),i},_getPointOptions:function(){return this._parsePointOptions(this._preparePointOptions(),this._options.label)},_getOptionsForPoint:function(){return this._options.point},_parsePointStyle:function(e,t,n,i){var r=e.border||{},o=void 0!==e.size?e.size:i;return{fill:e.color||t,stroke:r.color||n,"stroke-width":r.visible?r.width:0,r:o/2+(r.visible&&0!==o?~~(r.width/2)||0:0)}},_createPointStyles:function(e){var t=this,n=e.color||t._options.mainSeriesColor,i=t._options.containerBackgroundColor,r=t._parsePointStyle(e,n,n);return r.visibility=e.visible?"visible":"hidden",{normal:r,hover:t._parsePointStyle(e.hoverStyle,i,n,e.size),selection:t._parsePointStyle(e.selectionStyle,i,n,e.size)}},_checkData:function(e,t,n){return n=n||{value:this.getValueFields()[0]},n.argument=this.getArgumentField(),u(e,n,t||{})&&e.value===e.value},getErrorBarRangeCorrector:function(){var e,t;return this.areErrorBarsVisible()&&(e=x(this._options.valueErrorBar.displayMode),t=function(t){var n=t.lowError,i=t.highError;switch(e){case"low":return[n];case"high":return[i];case"none":return[];default:return[n,i]}}),t},getValueRangeInitialValue:function(){},_getRangeData:function(){return f.getRangeData(this)},_getPointDataSelector:function(){var e=this.getValueFields()[0],t=this.getArgumentField(),n=this.getTagField(),i=this.areErrorBarsVisible(),r=void 0,o=void 0;if(i){var a=this._options.valueErrorBar;r=a.lowValueField||O,o=a.highValueField||A}return function(a){var s={value:a[e],argument:a[t],tag:a[n],data:a};return i&&(s.lowError=a[r],s.highError=a[o]),s}},_errorBarsEnabled:function(){return this.valueAxisType!==R&&this.valueAxisType!==V&&this.valueType!==F},_drawPoint:function(e){var t=e.point;t.isInVisibleArea()?(t.clearVisibility(),t.draw(this._renderer,e.groups,e.hasAnimation,e.firstDrawing),this._drawnPoints.push(t)):t.setInvisibility()},_animateComplete:function(){var e=this,t={duration:e._defaultDuration};e._labelsGroup&&e._labelsGroup.animate({opacity:1},t),e._errorBarGroup&&e._errorBarGroup.animate({opacity:e._options.valueErrorBar.opacity||1},t)},_animate:function(){var e=this,t=e._drawnPoints.length-1;p(e._drawnPoints||[],function(n,i){i.animate(n===t?function(){e._animateComplete()}:void 0,{translateX:i.x,translateY:i.y})})},_defaultAggregator:"avg",_aggregators:{avg:function(e,t){var n,r=e.data,o=e.intervalStart;if(r.length){var a=t.getValueFields()[0],l=r.reduce(function(e,t){var n=t[a];return v(n)?(e[0]+=n,e[1]++):null===n&&e[2]++,e},[0,0,0]);return s((n={},i(n,a,l[2]===r.length?null:l[0]/l[1]),i(n,t.getArgumentField(),o),n),r,t)}},sum:function(e,t){var n,r=e.intervalStart,o=e.data;if(o.length){var a=t.getValueFields()[0],s=o.reduce(function(e,t){var n=t[a];return void 0!==n&&(e[0]+=n),null===n?e[1]++:void 0===n&&e[2]++,e},[0,0,0]),c=s[0];if(s[1]===o.length&&(c=null),s[2]!==o.length)return l((n={},i(n,a,c),i(n,t.getArgumentField(),r),n),o,t)}},count:function(e,t){var n,r=e.data,o=e.intervalStart,a=t.getValueFields()[0];return n={},i(n,t.getArgumentField(),o),i(n,a,r.filter(function(e){return void 0!==e[a]}).length),n},min:c(function(e,t){return e<t}),max:c(function(e,t){return e>t})},_endUpdateData:function(){delete this._predefinedPointOptions},getArgumentField:function(){return this._options.argumentField||"arg"},getValueFields:function(){var e,t,n=this._options,i=n.valueErrorBar,r=[n.valueField||"val"];return i&&(e=i.lowValueField,t=i.highValueField,y(e)&&r.push(e),y(t)&&r.push(t)),r},_calculateErrorBars:function(e){if(this.areErrorBarsVisible()){var t,n,i,o,s,l=this,c=l._options,u=c.valueErrorBar,d=x(u.type),h=parseFloat(u.value),f=l.getValueFields()[0],g=u.lowValueField||O,_=u.highValueField||A,m=function(e,n){t=n.value,n.lowError=t-h,n.highError=t+h};switch(d){case L:s=m;break;case P:s=function(e,n){t=n.value;var i=t*h/100;n.lowError=t-i,n.highError=t+i};break;case B:s=function(e,t){t.lowError=t.data[g],t.highError=t.data[_]};break;default:switch(n=b(e,function(e){return v(e.data[f])?e.data[f]:null}),i=n.length,h=h||1,d){case I:h=a(n,r(n)/i)*h,s=m;break;case D:o=r(n)/i,h=C(a(n,o))*h,s=function(e,t){t.lowError=o-h,t.highError=o+h};break;case M:h=C(a(n,r(n)/i)/i)*h,s=m}}s&&p(e,s)}},_patchMarginOptions:function(e){var t=this._getCreatingPointOptions(),n=t.styles,i=[n.normal,n.hover,n.selection].reduce(function(e,t){return k(e,2*t.r+t["stroke-width"])},0);return e.size=t.visible?i:0,e.sizePointNormalState=t.visible?2*n.normal.r+n.normal["stroke-width"]:2,e}};t.chart=d({},z,{drawTrackers:function(){var e,t,n=this,i=n._segments||[],r=n._options.rotated,o=[];n.isVisible()&&(i.length&&(e=n._trackers=n._trackers||[],t=n._trackersGroup=(n._trackersGroup||n._renderer.g().attr({fill:"gray",opacity:.001,stroke:"gray","class":"dxc-trackers"})).attr({"clip-path":this._paneClipRectID||null}).append(n._group),p(i,function(i,r){e[i]?n._updateTrackerElement(r,e[i]):e[i]=n._drawTrackerElement(r).data({"chart-data-series":n}).append(t)})),n._trackersTranslator=o,p(n.getVisiblePoints(),function(e,t){var n=parseInt(r?t.vy:t.vx);o[n]?Array.isArray(o[n])?o[n].push(t):o[n]=[o[n],t]:o[n]=t}))},getNeighborPoint:function(e,t){var n,i=this._options.rotated?t:e,r=i,o=this._trackersTranslator,a=null,s=this._options.rotated?e:t,l=this._options.rotated?"vx":"vy";if(this.isVisible()&&o){a=o[i];do a=o[r]||o[i],i--,r++;while((i>=0||r<o.length)&&!a);Array.isArray(a)&&(n=w(a[0][l]-s),p(a,function(e,t){var i=w(t[l]-s);n>=i&&(n=i,a=t)}))}return a},_applyVisibleArea:function(){var e=this,t=e._options.rotated,n=(t?e.getValueAxis():e.getArgumentAxis()).getTranslator().getCanvasVisibleArea(),i=(t?e.getArgumentAxis():e.getValueAxis()).getTranslator().getCanvasVisibleArea();e._visibleArea={minX:n.min,maxX:n.max,minY:i.min,maxY:i.max}}}),t.polar=d({},z,{drawTrackers:function(){t.chart.drawTrackers.call(this);var e,n=this._trackersTranslator;this.isVisible()&&(p(n,function(t,n){if(n)return e=t,!1}),n[e+360]=n[e])},getNeighborPoint:function(e,n){var i=_.convertXYToPolar(this.getValueAxis().getCenter(),e,n);return t.chart.getNeighborPoint.call(this,i.phi,i.r)},_applyVisibleArea:function(){var e=this,t=e.getValueAxis().getCanvas();e._visibleArea={minX:t.left,maxX:t.width-t.right,minY:t.top,maxY:t.height-t.bottom}}})},function(e,t,n){function i(e,t){var n=e;return t&&_(t.split("."),function(e,t){return n=n[t]}),n}var r=n(10),o=n(0).extend,a=n(1),s=n(3).each,l=n(149),c=a.isString,u=n(16).parseScalar,d=n(47),h=d.getTheme,p=d.addCacheItem,f=d.removeCacheItem,g=o,_=s;n(669),n(670),n(671),n(672),n(673),n(674),n(675),n(676),n(677),n(678),n(679),n(680),t.BaseThemeManager=r.inherit({ctor:function(){p(this)},dispose:function(){var e=this;return f(e),e._callback=e._theme=e._font=null,e},setCallback:function(e){return this._callback=e,this},setTheme:function(e,t){return this._current=e,this._rtl=t,this.refresh()},refresh:function(){var e=this,t=e._current||{},n=h(t.name||t);return e._themeName=n.name,e._defaultPalette=n.defaultPalette,e._font=g({},n.font,t.font),e._themeSection&&_(e._themeSection.split("."),function(e,t){n=g(!0,{},n[t])}),e._theme=g(!0,{},n,c(t)?{}:t),e._initializeTheme(),u(e._rtl,e._theme.rtlEnabled)&&g(!0,e._theme,e._theme._rtl),e._callback(),e},theme:function(e){return i(this._theme,e)},themeName:function(){return this._themeName},createPalette:function(e,t){return new l.Palette(e,t,this._defaultPalette)},createDiscretePalette:function(e,t){return new l.DiscretePalette(e,t,this._defaultPalette)},createGradientPalette:function(e){return new l.GradientPalette(e,this._defaultPalette)},getAccentColor:function(e){return l.getAccentColor(e,this._defaultPalette)},_initializeTheme:function(){var e=this;_(e._fontFields||[],function(t,n){e._initializeFont(i(e._theme,n))})},_initializeFont:function(e){g(e,this._font,g({},e))}})},function(e,t,n){function i(e,t){return t<e}function r(e,t){return t>e}function o(e,t,n,i){var r=c(t);c(e)?r&&i(e,t)&&n(t):r&&n(t)}var a,s=n(1),l=n(0).extend,c=s.isDefined,u=s.isDate,d=s.isFunction,h=n(16).unique,p="min",f="max",g="minVisible",_="maxVisible",m="base",v="axisType";a=t.Range=function(e){e&&l(this,e)},a.prototype={constructor:a,addRange:function(e){var t=this,n=t.categories,a=e.categories,s=function(n,i){o(t[n],e[n],function(e){t[n]=e},i)},l=function(e,n,i){o(t[e],t[n],function(n){c(t[e])&&(t[e]=n)},i)},u=function(n){t[n]=t[n]||e[n]};return u("invert"),u(v),u("dataType"),u("isSpacedMargin"),u("checkMinDataVisibility"),u("checkMaxDataVisibility"),"logarithmic"===t[v]?u(m):t[m]=void 0,s(p,i),s(f,r),"discrete"===t[v]?(u(g),u(_)):(s(g,i),s(_,r)),s("interval",i),l(p,g,i),l(p,_,i),l(f,_,r),l(f,g,r),void 0===n?t.categories=a:t.categories=a?h(n.concat(a)):n,t},isDefined:function(){return c(this[p])&&c(this[f])||this.categories&&this.categories.length},setStubData:function(e){var t=this,n=(new Date).getFullYear()-1,i="datetime"===e,r=t[v],o="logarithmic"===r?1:0;return"discrete"===r?t.categories=i?[new Date(n,0,1),new Date(n,3,1),new Date(n,6,1),new Date(n,9,1)]:["0","1","2"]:(t[p]=i?new Date(n,0,1):o,t[f]=i?new Date(n,11,31):10),t.stubData=!0,t},correctValueZeroLevel:function(){function e(e,n){t[e]<0&&t[n]<0&&(t[n]=0),t[e]>0&&t[n]>0&&(t[e]=0)}var t=this;return"logarithmic"===t[v]||u(t[f])||u(t[p])?t:(e(p,f),e(g,_),t)},sortCategories:function(e){if(e!==!1&&this.categories)if(Array.isArray(e)){var t=this.categories.map(function(e){return e&&e.valueOf()});this.categories=e.filter(function(e){return t.indexOf(e&&e.valueOf())!==-1})}else{var n=!d(e);n&&"string"!==this.dataType?e=function(e,t){return e.valueOf()-t.valueOf()}:n&&(e=!1),e&&this.categories.sort(e)}}}},function(e,t,n){var i=n(11).inArray,r=function(){var e=[];return{add:function(t){var n=i(t,e);n===-1&&e.push(t)},remove:function(t){var n=i(t,e);n!==-1&&e.splice(n,1)},fire:function(){var t=e.pop(),n=!!t;return n&&t(),n},hasCallback:function(){return e.length>0}}}();e.exports=function(){return r.fire()},e.exports.hideCallback=r},function(e,t,n){var i=n(0).extend,r=n(49);r.inject({_formatNumberCore:function(e,t,n){if("currency"===t){n.precision=n.precision||0;var r=this.format(e,i({},n,{type:"fixedpoint"})),o=this.getCurrencySymbol().symbol.replace("$","$$$$");return r=r.replace(/^(\D*)(\d.*)/,"$1"+o+"$2")}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(){return{symbol:"$"}},getOpenXmlCurrencyFormat:function(){return"$#,##0{0}_);\\($#,##0{0}\\)"}})},function(e,t,n){var i=n(172);e.exports=new i},function(e,t,n){var i=n(115),r=n(3).each,o=n(0).extend,a=n(14),s=n(32),l={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},c="preset_",u=i.inherit({ctor:function(){this.callBase.apply(this,arguments),this._registeredPresets=[],this.resetToDefaults()},_getDefaultOptions:function(){return o(this.callBase(),{defaultAnimationDuration:400,defaultAnimationDelay:0,defaultStaggerAnimationDuration:300,defaultStaggerAnimationDelay:40,defaultStaggerAnimationStartDelay:500})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return e.phone},options:{defaultStaggerAnimationDuration:350,defaultStaggerAnimationDelay:50,defaultStaggerAnimationStartDelay:0}},{device:function(){return a.current().android||a.real.android},options:{defaultAnimationDelay:100}}])},_getPresetOptionName:function(e){return c+e},_createAndroidSlideAnimationConfig:function(e,t){var n=this,i=function(e){return{type:"slide",delay:void 0===e.delay?n.option("defaultAnimationDelay"):e.delay,duration:void 0===e.duration?n.option("defaultAnimationDuration"):e.duration}};return{enter:function(n,r){var o=n.parent().width()*t,a=r.direction,l=i(r);return l.to={left:0,opacity:1},"forward"===a?l.from={left:o,opacity:e}:"backward"===a?l.from={left:-o,opacity:e}:l.from={left:0,opacity:0},s.createAnimation(n,l)},leave:function(n,r){var o=n.parent().width()*t,a=r.direction,l=i(r);return l.from={left:0,opacity:1},"forward"===a?l.to={left:-o,opacity:e}:"backward"===a?l.to={left:o,opacity:e}:l.to={left:0,opacity:0},s.createAnimation(n,l)}}},_createOpenDoorConfig:function(){var e=this,t=function(t){return{type:"css",extraCssClasses:"dx-opendoor-animation",delay:void 0===t.delay?e.option("defaultAnimationDelay"):t.delay,duration:void 0===t.duration?e.option("defaultAnimationDuration"):t.duration}};return{enter:function(e,n){var i=n.direction,r=t(n);return r.delay="none"===i?r.delay:r.duration,r.from="dx-enter dx-opendoor-animation"+l[i],r.to="dx-enter-active",s.createAnimation(e,r)},leave:function(e,n){var i=n.direction,r=t(n);return r.from="dx-leave dx-opendoor-animation"+l[i],r.to="dx-leave-active",s.createAnimation(e,r)}}},_createWinPopConfig:function(){var e=this,t={type:"css",extraCssClasses:"dx-win-pop-animation",duration:e.option("defaultAnimationDuration")};return{enter:function(n,i){var r=t,o=i.direction;return r.delay="none"===o?e.option("defaultAnimationDelay"):e.option("defaultAnimationDuration")/2,r.from="dx-enter dx-win-pop-animation"+l[o],r.to="dx-enter-active",s.createAnimation(n,r)},leave:function(n,i){var r=t,o=i.direction;return r.delay=e.option("defaultAnimationDelay"),r.from="dx-leave dx-win-pop-animation"+l[o],r.to="dx-leave-active",s.createAnimation(n,r)}}},resetToDefaults:function(){this.clear(),this.registerDefaultPresets(),this.applyChanges()},clear:function(e){var t=this,n=[];r(this._registeredPresets,function(i,r){e&&e!==r.name?n.push(r):t.option(t._getPresetOptionName(r.name),void 0)}),this._registeredPresets=n,this.applyChanges()},registerPreset:function(e,t){this._registeredPresets.push({name:e,config:t})},applyChanges:function(){var e=this,t=[];r(this._registeredPresets,function(n,i){var r={device:i.config.device,options:{}};r.options[e._getPresetOptionName(i.name)]=i.config.animation,t.push(r)}),this._setOptionsByDevice(t)},getPreset:function(e){for(var t=e;"string"==typeof t;)t=this.option(this._getPresetOptionName(t));return t},registerDefaultPresets:function(){this.registerPreset("pop",{animation:{extraCssClasses:"dx-android-pop-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("openDoor",{animation:this._createOpenDoorConfig()}),this.registerPreset("win-pop",{animation:this._createWinPopConfig()}),this.registerPreset("fade",{animation:{extraCssClasses:"dx-fade-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("slide",{device:function(){return a.current().android||a.real.android},animation:this._createAndroidSlideAnimationConfig(1,1)}),this.registerPreset("slide",{device:function(){return!a.current().android&&!a.real.android},animation:{extraCssClasses:"dx-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-slide",{animation:{extraCssClasses:"dx-ios7-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("overflow",{animation:{extraCssClasses:"dx-overflow-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return!a.current().android&&!a.real.android},animation:{extraCssClasses:"dx-ios7-toolbar-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return a.current().android||a.real.android},animation:this._createAndroidSlideAnimationConfig(0,.4)}),this.registerPreset("stagger-fade",{animation:{extraCssClasses:"dx-fade-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-slide",{animation:{extraCssClasses:"dx-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-slide",{animation:{extraCssClasses:"dx-fade-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-drop",{animation:{extraCssClasses:"dx-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-drop",{animation:{extraCssClasses:"dx-fade-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-rise",{animation:{extraCssClasses:"dx-fade-rise-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-3d-drop",{animation:{extraCssClasses:"dx-3d-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-zoom",{animation:{extraCssClasses:"dx-fade-zoom-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}})}});t.PresetCollection=u;var d=new u;t.presets=d},function(e,t,n){var i=n(5),r=n(29),o=n(12),a=n(10),s=n(9),l="dxPointerEvents",c=a.inherit({ctor:function(e,t){this._eventName=e,this._originalEvents=s.addNamespace(t,l),this._handlerCount=0,this.noBubble=this._isNoBubble()},_isNoBubble:function(){var e=this._eventName;return"dxpointerenter"===e||"dxpointerleave"===e},_handler:function(e){var t=this._getDelegateTarget(e);return this._fireEvent({type:this._eventName,pointerType:e.pointerType||s.eventSource(e),originalEvent:e,delegateTarget:t,timeStamp:r.mozilla?(new Date).getTime():e.timeStamp})},_getDelegateTarget:function(e){var t;return this.noBubble&&(t=e.delegateTarget),t},_fireEvent:function(e){return s.fireEvent(e)},_setSelector:function(e){this._selector=this.noBubble&&e?e.selector:null},_getSelector:function(){return this._selector},setup:function(){return!0},add:function(e,t){if(this._handlerCount<=0||this.noBubble){e=this.noBubble?e:o.getDocument(),this._setSelector(t);var n=this;i.on(e,this._originalEvents,this._getSelector(),function(e){n._handler(e)})}this.noBubble||this._handlerCount++},remove:function(e){this._setSelector(e),this.noBubble||this._handlerCount--},teardown:function(e){this._handlerCount&&!this.noBubble||(e=this.noBubble?e:o.getDocument(),this._originalEvents!=="."+l&&i.off(e,this._originalEvents,this._getSelector()))},dispose:function(e){e=this.noBubble?e:o.getDocument(),i.off(e,this._originalEvents)}});e.exports=c},function(e,t,n){var i=n(0).extend,r=n(1),o=n(3),a=n(11).inArray,s=n(10),l=encodeURIComponent("json:"),c=s.inherit({_trimSeparators:function(e){return e.replace(/^[\/.]+|\/+$/g,"")},_escapeRe:function(e){return e.replace(/[^-\w]/g,"\\$1")},_checkConstraint:function(e,t){e=String(e),"string"==typeof t&&(t=new RegExp(t));var n=t.exec(e);return!(!n||n[0]!==e)},_ensureReady:function(){var e=this;return!this._patternRe&&(this._pattern=this._trimSeparators(this._pattern),this._patternRe="",this._params=[],this._segments=[],this._separators=[],this._pattern.replace(/[^\/]+/g,function(t,n){e._segments.push(t),n&&e._separators.push(e._pattern.substr(n-1,1))}),o.each(this._segments,function(t){var n=this,i=t?e._separators[t-1]:"";":"===n.charAt(0)?(n=n.substr(1),e._params.push(n),e._patternRe+="(?:"+i+"([^/]*))",n in e._defaults&&(e._patternRe+="?")):e._patternRe+=i+e._escapeRe(n)}),void(this._patternRe=new RegExp("^"+this._patternRe+"$")))},ctor:function(e,t,n){this._pattern=e||"",this._defaults=t||{},this._constraints=n||{}},parse:function(e){var t=this;this._ensureReady();var n=this._patternRe.exec(e);if(!n)return!1;var r=i({},this._defaults);return o.each(this._params,function(e){var i=e+1;n.length>=i&&n[i]&&(r[this]=t.parseSegment(n[i]))}),o.each(this._constraints,function(e){if(!t._checkConstraint(r[e],t._constraints[e]))return r=!1,!1}),r},format:function(e){var t=this,n="";this._ensureReady();var s=i({},this._defaults),l=0,c=[],u=[],d={};o.each(e,function(n,i){e[n]=t.formatSegment(i),n in s||(d[n]=!0)}),o.each(this._segments,function(n,i){if(c[n]=n?t._separators[n-1]:"",":"===i.charAt(0)){var r=i.substr(1);if(!(r in e||r in t._defaults))return c=null,
18
- !1;if(r in t._constraints&&!t._checkConstraint(e[r],t._constraints[r]))return c=null,!1;r in e?(void 0!==e[r]&&(s[r]=e[r],c[n]+=e[r],l=n),delete d[r]):r in s&&(c[n]+=s[r],u.push(n))}else c[n]+=i,l=n}),o.each(s,function(n,i){if(i&&a(":"+n,t._segments)===-1&&e[n]!==i)return c=null,!1});var h=0;if(r.isEmptyObject(d)||(n="?",o.each(d,function(t){n+=t+"="+e[t]+"&",h++}),n=n.substr(0,n.length-1)),null===c)return!1;u.length&&o.map(u,function(e){e>=l&&(c[e]="")});var p=c.join("");return p=p.replace(/\/+$/,""),{uri:p+n,unusedCount:h}},formatSegment:function(e){return Array.isArray(e)||r.isPlainObject(e)?l+encodeURIComponent(JSON.stringify(e)):encodeURIComponent(e)},parseSegment:function(e){if(e.substr(0,l.length)===l)try{return JSON.parse(decodeURIComponent(e.substr(l.length)))}catch(e){}return decodeURIComponent(e)}}),u=s.inherit({ctor:function(){this._registry=[]},_trimSeparators:function(e){return e.replace(/^[\/.]+|\/+$/g,"")},_createRoute:function(e,t,n){return new c(e,t,n)},register:function(e,t,n){this._registry.push(this._createRoute(e,t,n))},_parseQuery:function(e){var t={},n=e.split("&");return o.each(n,function(e,n){var i=n.split("=");t[i[0]]=decodeURIComponent(i[1])}),t},parse:function(e){var t,n=this;e=this._trimSeparators(e);var r=e.split("?",2),a=r[0],s=r[1];return o.each(this._registry,function(){var e=this.parse(a);if(e!==!1)return t=e,s&&(t=i(t,n._parseQuery(s))),!1}),!!t&&t},format:function(e){var t=!1,n=99999;return e=e||{},o.each(this._registry,function(){var r=i(!0,{},e),o=this.format(r);o!==!1&&n>o.unusedCount&&(n=o.unusedCount,t=o.uri)}),t}});e.exports=u,e.exports.Route=c},function(e,t,n){n(43);var i=n(26),r=n(4).noop,o=n(6).getWindow(),a=n(10),s=n(19),l=n(234),c=n(154).sessionStorage,u=n(14),d="dxPhoneJSApplication",h=a.inherit({ctor:function(e){e=e||{},this._browserAdapter=e.browserAdapter||this._createBrowserAdapter(e),this.uriChanged=s(),this._browserAdapter.popState.add(this._onPopState.bind(this))},init:r,getUri:function(){return this._browserAdapter.getHash()},setUri:function(e,t){return t?this._browserAdapter.replaceState(e):e!==this.getUri()?this._browserAdapter.pushState(e):i.Deferred().resolve().promise()},back:function(){return this._browserAdapter.back()},_onPopState:function(){this.uriChanged.fire(this.getUri())},_isBuggyAndroid2:function(){var e=u.real(),t=e.version;return"android"===e.platform&&t.length>1&&(2===t[0]&&t[1]<4||t[0]<2)},_isBuggyAndroid4:function(){var e=u.real(),t=e.version;return"android"===e.platform&&t.length>1&&4===t[0]&&0===t[1]},_isWindowsPhone8:function(){var e=u.real();return"win"===e.platform&&e.phone},_createBrowserAdapter:function(e){var t,n=e.window||o,i=n.history.replaceState&&n.history.pushState;return t=this._isWindowsPhone8()?new l.BuggyCordovaWP81BrowserAdapter(e):n!==n.top?new l.HistorylessBrowserAdapter(e):this._isBuggyAndroid4()?new l.BuggyAndroidBrowserAdapter(e):this._isBuggyAndroid2()||!i?new l.OldBrowserAdapter(e):new l.DefaultBrowserAdapter(e)}}),p=h.inherit({ctor:function(e){this.callBase(e),this.backInitiated=s(),this._rootStateHandler=null,i(o).on("unload",this._saveBrowserState)},init:function(){var e=this;return e._browserAdapter.canWorkInPureBrowser?e._initRootPage().done(function(){e._browserAdapter.isRootPage()&&e._browserAdapter.pushState("")}):i.Deferred().resolve().promise()},setUri:function(e){return this.callBase(e,!this._browserAdapter.isRootPage())},_saveBrowserState:function(){var e=c();e&&e.setItem(d,!0)},_initRootPage:function(){var e=this.getUri(),t=c();return!t||t.getItem(d)?i.Deferred().resolve().promise():(t.removeItem(d),this._browserAdapter.createRootPage(),this._browserAdapter.pushState(e))},_onPopState:function(){this._browserAdapter.isRootPage()?this._rootStateHandler?this._rootStateHandler():this.backInitiated.fire():(this._rootStateHandler||this._createRootStateHandler(),this.back())},_createRootStateHandler:function(){var e=this.getUri();this._rootStateHandler=function(){this.uriChanged.fire(e),this._rootStateHandler=null}}});t.HistoryBasedNavigationDevice=h,t.StackBasedNavigationDevice=p},function(e,t,n){t.layoutSets={},t.animationSets={"native":{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"none",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"none",device:{grade:"C"}}]},"default":{"layout-change":[{animation:"none"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"pop",device:{platform:"android"}},{animation:"openDoor",device:{deviceType:"phone",platform:"win",version:[8]}},{animation:"win-pop",device:{deviceType:"phone",platform:"win"}}],"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-drop"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}},{animation:"none",device:{platform:"win",version:[10]}}],"command-rendered-bottom":[{animation:"stagger-fade-rise"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}},{animation:"none",device:{platform:"win",version:[10]}}],"list-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]},slide:{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-drop"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-bottom":[{animation:"stagger-fade-rise"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"list-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]},zoom:{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-zoom"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-bottom":[{animation:"stagger-fade-zoom"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"list-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]}}},function(e,t,n){var i=n(10),r=n(1),o=n(3),a=n(22).compileGetter,s=n(22).toComparable,l=n(7).Deferred,c=n(36),u=n(41),d=i.inherit({toArray:function(){var e=[];for(this.reset();this.next();)e.push(this.current());return e},countable:function(){return!1}}),h=d.inherit({ctor:function(e){this.array=e,this.index=-1},next:function(){return this.index+1<this.array.length&&(this.index++,!0)},current:function(){return this.array[this.index]},reset:function(){this.index=-1},toArray:function(){return this.array.slice(0)},countable:function(){return!0},count:function(){return this.array.length}}),p=d.inherit({ctor:function(e){this.iter=e},next:function(){return this.iter.next()},current:function(){return this.iter.current()},reset:function(){return this.iter.reset()}}),f=p.inherit({ctor:function(e,t){this.callBase(e),this.index=-1,this.mapper=t},current:function(){return this.mapper(this.callBase(),this.index)},next:function(){var e=this.callBase();return e&&this.index++,e}}),g=function(e,t){return e=s(e),t=s(t),null===e&&null!==t?-1:null!==e&&null===t?1:void 0===e&&void 0!==t?1:void 0!==e&&void 0===t?-1:e<t?-1:e>t?1:0},_=d.inherit({ctor:function(e,t,n,i){e instanceof f||(e=new f(e,this._wrap)),this.iter=e,this.rules=[{getter:t,desc:n,compare:i}]},thenBy:function(e,t,n){var i=new _(this.sortedIter||this.iter,e,t,n);return this.sortedIter||(i.rules=this.rules.concat(i.rules)),i},next:function(){return this._ensureSorted(),this.sortedIter.next()},current:function(){return this._ensureSorted(),this.sortedIter.current()},reset:function(){delete this.sortedIter},countable:function(){return this.sortedIter||this.iter.countable()},count:function(){return this.sortedIter?this.sortedIter.count():this.iter.count()},_ensureSorted:function(){var e=this;e.sortedIter||(o.each(e.rules,function(){this.getter=a(this.getter)}),e.sortedIter=new f(new h(this.iter.toArray().sort(function(t,n){return e._compare(t,n)})),e._unwrap))},_wrap:function(e,t){return{index:t,value:e}},_unwrap:function(e){return e.value},_compare:function(e,t){var n=e.index,i=t.index;if(e=e.value,t=t.value,e===t)return n-i;for(var r=0,o=this.rules.length;r<o;r++){var a=this.rules[r],s=a.getter(e),l=a.getter(t),c=a.compare||g,u=c(s,l);if(u)return a.desc?-u:u}return n-i}}),m=function(){function e(e,n,i){return function(r){r=s(e(r));var o=t(n)?r===n:r==n;return i&&(o=!o),o}}function t(e){return""===e||0===e||e===!1}function n(e){var t=e[0],n=m(e[1]);if("!"===t)return function(e){return!n(e)};throw c.errors.Error("E4003",t)}var i=function(e){var t=[],n=!1,i=!1;return o.each(e,function(){if(Array.isArray(this)||r.isFunction(this)){if(t.length>1&&n!==i)throw new c.errors.Error("E4019");t.push(m(this)),n=i,i=!0}else i=u.isConjunctiveOperator(this)}),function(e){for(var i=n,r=0;r<t.length;r++)if(t[r](e)!==n){i=!n;break}return i}},l=function(e){return r.isDefined(e)?e.toString():""},d=function(t){t=u.normalizeBinaryCriterion(t);var n=a(t[0]),i=t[1],r=t[2];switch(r=s(r),i.toLowerCase()){case"=":return e(n,r);case"<>":return e(n,r,!0);case">":return function(e){return s(n(e))>r};case"<":return function(e){return s(n(e))<r};case">=":return function(e){return s(n(e))>=r};case"<=":return function(e){return s(n(e))<=r};case"startswith":return function(e){return 0===s(l(n(e))).indexOf(r)};case"endswith":return function(e){var t=s(l(n(e))),i=l(r);return!(t.length<i.length)&&t.lastIndexOf(r)===t.length-r.length};case"contains":return function(e){return s(l(n(e))).indexOf(r)>-1};case"notcontains":return function(e){return s(l(n(e))).indexOf(r)===-1}}throw c.errors.Error("E4003",i)};return function(e){return r.isFunction(e)?e:u.isGroupCriterion(e)?i(e):u.isUnaryOperation(e)?n(e):d(e)}}(),v=p.inherit({ctor:function(e,t){this.callBase(e),this.criteria=m(t)},next:function(){for(;this.iter.next();)if(this.criteria(this.current()))return!0;return!1}}),y=d.inherit({ctor:function(e,t){this.iter=e,this.getter=t},next:function(){return this._ensureGrouped(),this.groupedIter.next()},current:function(){return this._ensureGrouped(),this.groupedIter.current()},reset:function(){delete this.groupedIter},countable:function(){return!!this.groupedIter},count:function(){return this.groupedIter.count()},_ensureGrouped:function(){if(!this.groupedIter){var e={},t=[],n=this.iter,i=a(this.getter);for(n.reset();n.next();){var r=n.current(),s=i(r);s in e?e[s].push(r):(e[s]=[r],t.push(s))}this.groupedIter=new h(o.map(t,function(t){return{key:t,items:e[t]}}))}}}),b=p.inherit({ctor:function(e,t){this.callBase(e),this.getter=a(t)},current:function(){return this.getter(this.callBase())},countable:function(){return this.iter.countable()},count:function(){return this.iter.count()}}),x=p.inherit({ctor:function(e,t,n){this.callBase(e),this.skip=Math.max(0,t),this.take=Math.max(0,n),this.pos=0},next:function(){if(this.pos>=this.skip+this.take)return!1;for(;this.pos<this.skip&&this.iter.next();)this.pos++;return this.pos++,this.iter.next()},reset:function(){this.callBase(),this.pos=0},countable:function(){return this.iter.countable()},count:function(){return Math.min(this.iter.count()-this.skip,this.take)}}),S=function e(t,n){n=n||{},t instanceof d||(t=new h(t));var i=function(e){var t=n.errorHandler;t&&t(e),c._errorHandler(e)},o=function(e){var n,r=(new l).fail(i),o=e.step,a=e.finalize;try{t.reset(),n="seed"in e?e.seed:t.next()?t.current():NaN;for(var s=n;t.next();)s=o(s,t.current());r.resolve(a?a(s):s)}catch(e){r.reject(e)}return r.promise()},s=function(e,t,n){return o(arguments.length<2?{step:arguments[0]}:{seed:e,step:t,finalize:n})},p=function(e){return o(u.aggregators[e])},f=function(e){return r.isFunction(e)||Array.isArray(e)||(e=[].slice.call(arguments)),m(new b(t,e))},g=function(e){return f(a(e))},m=function(t){return e(t,n)};return{toArray:function(){return t.toArray()},enumerate:function(){var e=(new l).fail(i);try{e.resolve(t.toArray())}catch(t){e.reject(t)}return e.promise()},sortBy:function(e,n,i){return m(new _(t,e,n,i))},thenBy:function(e,n,i){if(t instanceof _)return m(t.thenBy(e,n,i));throw c.errors.Error("E4004")},filter:function(e){return Array.isArray(e)||(e=[].slice.call(arguments)),m(new v(t,e))},slice:function(e,n){return void 0===n&&(n=Number.MAX_VALUE),m(new x(t,e,n))},select:f,groupBy:function(e){return m(new y(t,e))},aggregate:s,count:function(){if(t.countable()){var e=(new l).fail(i);try{e.resolve(t.count())}catch(t){e.reject(t)}return e.promise()}return p("count")},sum:function(e){return e?g(e).sum():p("sum")},min:function(e){return e?g(e).min():p("min")},max:function(e){return e?g(e).max():p("max")},avg:function(e){return e?g(e).avg():p("avg")}}};e.exports=S},function(e,t,n){var i=n(1),r=n(3),o=n(0).extend,a=n(181),s=n(97),l=s.serializePropName,c=n(36).errors,u=n(41),d=i.isFunction,h=2,p=function(){var e,t,n=function(e){return function(t,n){return t+" "+e+" "+n}},i=function(e,t){return t=t||{},function(n,i){var r=[e,"("];return t.forceLowerCase&&(n=n.indexOf("tolower(")===-1?"tolower("+n+")":n,i=i.toLowerCase()),t.reverse?r.push(i,",",n):r.push(n,",",i),r.push(")"),r.join("")}},a={"=":n("eq"),"<>":n("ne"),">":n("gt"),">=":n("ge"),"<":n("lt"),"<=":n("le"),startswith:i("startswith",{forceLowerCase:!0}),endswith:i("endswith",{forceLowerCase:!0})},d=o({},a,{contains:i("substringof",{reverse:!0,forceLowerCase:!0}),notcontains:i("not substringof",{reverse:!0,forceLowerCase:!0})}),h=o({},a,{contains:i("contains",{forceLowerCase:!0}),notcontains:i("not contains",{forceLowerCase:!0})}),p=function(n){n=u.normalizeBinaryCriterion(n);var i=n[1],r=4===e?h:d,o=r[i.toLowerCase()];if(!o)throw c.Error("E4003",i);var a=n[0],p=n[2];return t&&t[a]&&(p=s.convertPrimitiveValue(t[a],p)),o(l(a),s.serializeValue(p,e))},f=function(e){var t=e[0],n=_(e[1]);if("!"===t)return"not ("+n+")";throw c.Error("E4003",t)},g=function(e){var t,n,i=[];return r.each(e,function(e,r){if(Array.isArray(r)){if(i.length>1&&t!==n)throw new c.Error("E4019");i.push("("+_(r)+")"),t=n,n="and"}else n=u.isConjunctiveOperator(this)?"and":"or"}),i.join(" "+t+" ")},_=function(e){return Array.isArray(e[0])?g(e):u.isUnaryOperation(e)?f(e):p(e)};return function(n,i,r){return t=r,e=i,_(n)}}(),f=function(e){function t(e){for(var t=-1,n=0;n<e.length;n++)if("select"===e[n].name){t=n;break}if(!(t<0)&&d(e[t].args[0])){var i=e[1+t];i&&"slice"===i.name&&(e[1+t]=e[t],e[t]=i)}}var n,i,r,a,c=[],u=[],f=e.expand,g=e.version||h,_=function(){return i||void 0!==r},m=function e(t){for(var n=0;n<t.length;n++){if(d(t[n]))return!0;if(Array.isArray(t[n])&&e(t[n]))return!0}return!1},v=function(){var t={};if(a||(c.length&&(t.$orderby=c.join(",")),i&&(t.$skip=i),void 0!==r&&(t.$top=r),t.$select=s.generateSelect(g,n)||void 0,t.$expand=s.generateExpand(g,f,n)||void 0),u.length){var o=u.length<2?u[0]:u,l=e&&e.fieldTypes;t.$filter=p(o,g,l)}return a&&(t.$top=0),(e.requireTotalCount||a)&&(4!==g?t.$inlinecount="allpages":t.$count="true"),t};return{optimize:function(e){t(e)},exec:function(t){return s.sendRequest(g,{url:t,params:o(v(),e&&e.params)},{beforeSend:e.beforeSend,jsonp:e.jsonp,withCredentials:e.withCredentials,countOnly:a,deserializeDates:e.deserializeDates,fieldTypes:e.fieldTypes,isPaged:isFinite(r)})},multiSort:function(e){var t;if(_())return!1;for(var n=0;n<e.length;n++){var i,r=e[n][0],o=!!e[n][1];if("string"!=typeof r)return!1;i=l(r),o&&(i+=" desc"),t=t||[],t.push(i)}c=t},slice:function(e,t){return!_()&&(i=e,void(r=t))},filter:function(e){return!_()&&(Array.isArray(e)||(e=[].slice.call(arguments)),!m(e)&&(u.length&&u.push("and"),void u.push(e)))},select:function(e){return!n&&!d(e)&&(Array.isArray(e)||(e=[].slice.call(arguments)),void(n=e))},count:function(){a=!0}}};a.odata=f,t.odata=f},function(e,t,n){var i=n(2),r=n(5),o=n(14),a=n(83),s=n(68),l=n(29),c=n(13),u=n(51),d=u.add,h=n(31),p=n(4).noop,f=n(1).isDefined,g=n(9),_=n(108),m=h.sign,v=Math.abs,y=0,b=1,x=2,S=10,w=0,C=180,k=function(e){return e&&"dxmousewheel"===e.type},T=function(){var e=a.styleProp("pointer-events"),t=l.msie&&parseInt(l.version,10)<11;return e&&!t},E=s(function(){var e="dx-gesture-cover",t="generic"===o.real().platform;if(!T()||!t)return p;var n=i("<div>").addClass(e).css("pointerEvents","none");return r.subscribeGlobal(n,"dxmousewheel",function(e){e.preventDefault()}),d(function(){n.appendTo("body")}),function(e,t){n.css("pointerEvents",e?"all":"none"),e&&n.css("cursor",t)}}),A=function(e,t){var n=E();n(e,t)},O=_.inherit({gesture:!0,configure:function(e){this.getElement().css("msTouchAction",e.immediate?"pinch-zoom":""),this.callBase(e)},allowInterruptionByMouseWheel:function(){return this._stage!==x},getDirection:function(){return this.direction},_cancel:function(){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=y},start:function(e){return g.needSkipEvent(e)?void this._cancel(e):(this._startEvent=g.createEvent(e),this._startEventData=g.eventData(e),this._stage=b,this._init(e),void this._setupImmediateTimer())},_setupImmediateTimer:function(){clearTimeout(this._immediateTimer),this._immediateAccepted=!1,this.immediate&&(this._immediateTimer=setTimeout(function(){this._immediateAccepted=!0}.bind(this),C))},move:function(e){if(this._stage===b&&this._directionConfirmed(e)){if(this._stage=x,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(e),this._adjustStartEvent(e),this._start(this._startEvent),this._stage===y)return;this._requestAccept(e),this._move(e),this._forgetAccept()}else this._stage===x&&(this._clearSelection(e),this._move(e))},_directionConfirmed:function(e){var t=this._getTouchBoundary(e),n=g.eventDelta(this._startEventData,g.eventData(e)),i=v(n.x),r=v(n.y),o=this._validateMove(t,i,r),a=this._validateMove(t,r,i),s=this.getDirection(e),l="both"===s&&(o||a),c="horizontal"===s&&o,u="vertical"===s&&a;return l||c||u||this._immediateAccepted},_validateMove:function(e,t,n){return t&&t>=e&&(!this.immediate||t>=n)},_getTouchBoundary:function(e){return this.immediate||k(e)?w:S},_adjustStartEvent:function(e){var t=this._getTouchBoundary(e),n=g.eventDelta(this._startEventData,g.eventData(e));this._startEvent.pageX+=m(n.x)*t,this._startEvent.pageY+=m(n.y)*t},_resetActiveElement:function(){"ios"===o.real().platform&&this.getElement().find(":focus").length&&c.resetActiveElement()},_toggleGestureCover:function(e){var t=this._stage===x;t&&A(e,this.getElement().css("cursor"))},_clearSelection:function(e){k(e)||g.isTouchEvent(e)||c.clearSelection()},end:function(e){this._toggleGestureCover(!1),this._stage===x?this._end(e):this._stage===b&&this._stop(e),this._stage=y},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:p,_start:p,_move:p,_stop:p,_end:p});O.initialTouchBoundary=S,O.touchBoundary=function(e){return f(e)?void(S=e):S},e.exports=O},,,function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){return void 0===e?B||M:(e=(0,S.normalizeEnum)(e),void(B=e in L?e:void 0))}function a(e,t){t=t||{},e=b(e,t.themeDefault);var n,i=t.type;return O(e)?e.slice(0):(I(e)&&(n=L[(0,S.normalizeEnum)(e)]),n||(n=L[o()]),n=n||null,i&&n?n[i].slice(0):n)}function s(e,t){var n,i={};O(t)?i.simpleSet=t.slice(0):t&&(i.simpleSet=O(t.simpleSet)?t.simpleSet.slice(0):void 0,i.indicatingSet=O(t.indicatingSet)?t.indicatingSet.slice(0):void 0,i.gradientSet=O(t.gradientSet)?t.gradientSet.slice(0):void 0,i.accentColor=t.accentColor),i.accentColor||(i.accentColor=i.simpleSet&&i.simpleSet[0]),(i.simpleSet||i.indicatingSet||i.gradientSet)&&(n=(0,S.normalizeEnum)(e),(0,w.extend)(L[n]=L[n]||{},i))}function l(e,t){return e=a(e,{themeDefault:t}),e.accentColor||e[0]}function c(e){var t=0;this.next=function(){var n=e[t++];return t===e.length&&this.reset(),n},this.reset=function(){t=0}}function u(e,t){function n(){var t=r.next();o=t?f(e,t):e.slice(0)}var i=t.useHighlight?D:0,r=new c([0,i,-i]),o=[];return{getColor:function(t){var i=o[t%e.length];return t%e.length===e.length-1&&n(),i},reset:function(){r.reset(),n()}}}function d(e){function t(e,t,n){var i=new A(e).hsl,r=i.l/100,o=n-1/n,a=r-.5*o,s=r+.5*o,l=(n-1)/2,c=t-l;return a<Math.min(.5,.9*r)&&(a=Math.min(.5,.9*r)),s>Math.max(.8,r+.15*(1-r))&&(s=Math.max(.8,r+.15*(1-r))),c<0?r-=(a-r)*c/l:r+=(s-r)*(c/l),i.l=100*r,A.prototype.fromHSL(i).toHex()}return{getColor:function(n,i){var r=e.length,o=T((i-1)/r+1),a=e[n%r];return o>1?t(a,T(n/r),o):a},reset:function(){}}}function h(e,t){function n(e,t,n,i){for(var r,o,a=Math.floor(e/t),s=e-t*a,l=n;l<n+e;)o=a,s>0&&(o+=1,s--),r=o>2?Math.floor(o/2):0,i.push(l+r),l+=o;return i.sort(function(e,t){return e-t})}function i(e,t,n){t=(n+t)%n;for(var i=0,r=t;r<2*n;r+=1){var o=(n+r)%n;if(e[o])return[e[o],i];i++}}function r(e,t){for(var n=0;n<t;n++){var r=e[n];if(!r){var o=e[n-1];if(!o)continue;var a=i(e,n,t),s=new A(a[0]);o=new A(o);for(var l=0;l<a[1];l++,n++)e[n]=o.blend(s,(l+1)/(a[1]+1)).toHex()}}return e}function o(i){if(i<=a)return e;var o=[],s=a-2,l=0,c=[];c=t.keepLastColorInEnd?n(i-2,s,1,[0,i-1]):n(i-1,a-1,1,[0]);for(var u=0;u<i;u++)c.indexOf(u)>-1&&(o[u]=e[l++]);return o=r(o,i)}var a=e.length,s=[];return{getColor:function(e,t){return t=t||a,s.length!==t&&(s=o(t)),s[e%t]},reset:function(){}}}function p(e,t,n){t=t||{};var i=(t.extensionMode||"").toLowerCase(),r=a(e,{type:t.type||"simpleSet",themeDefault:n});"alternate"===i?this._extensionStrategy=u(r,t):"extrapolate"===i?this._extensionStrategy=d(r):this._extensionStrategy=h(r,t),this.reset()}function f(e,t){var n,i=[],r=e.length;for(n=0;n<r;++n)i.push(g(e[n],t));return i}function g(e,t){var n=new A(e).alter(t),i=_(n);return(i>200||i<55)&&(n=new A(e).alter(-t/2)),n.toHex()}function _(e){return.3*e.r+.59*e.g+.11*e.b}function m(e,t,n){var i=t>0?v(a(e,{type:"gradientSet",themeDefault:n}),t):[];this.getColor=function(e){return i[e]||null}}function v(e,t){function n(e){var t=o*e,n=T(t),i=E(t);s.push(a[n].blend(a[i],t-n).toHex())}var i,r=t-1,o=e.length-1,a=[],s=[];for(i=0;i<=o;++i)a.push(new A(e[i]));if(r>0)for(i=0;i<=r;++i)n(i/r);else n(.5);return s}function y(e,t){var n=a(e,{type:"gradientSet",themeDefault:t}),i=new A(n[0]),r=new A(n[1]);this.getColor=function(e){return 0<=e&&e<=1?i.blend(r,e).toHex():null}}function b(e,t){var n=e||(void 0===B?t:o());return"default"===n&&k.default.log("W0016",'"palette"',"Default","18.1",'Use the "Office" value instead.'),n}Object.defineProperty(t,"__esModule",{value:!0}),t._DEBUG_palettes=void 0;var x;t.currentPalette=o,t.getPalette=a,t.registerPalette=s,t.getAccentColor=l,t.Palette=p,t.DiscretePalette=m,t.GradientPalette=y;var S=n(16),w=n(0),C=n(17),k=i(C),T=Math.floor,E=Math.ceil,A=n(86),O=Array.isArray,I=n(1).isString,D=50,M="material",P={simpleSet:["#5f8b95","#ba4d51","#af8a53","#955f71","#859666","#7e688c"],indicatingSet:["#a3b97c","#e1b676","#ec7f83"],gradientSet:["#5f8b95","#ba4d51"],accentColor:"#ba4d51"},L=(x={},r(x,M,{simpleSet:["#1db2f5","#f5564a","#97c95c","#ffc720","#eb3573","#a63db8"],indicatingSet:["#97c95c","#ffc720","#f5564a"],gradientSet:["#1db2f5","#97c95c"],accentColor:"#1db2f5"}),r(x,"default",P),r(x,"office",P),r(x,"harmony light",{simpleSet:["#fcb65e","#679ec5","#ad79ce","#7abd5c","#e18e92","#b6d623","#b7abea","#85dbd5"],indicatingSet:["#b6d623","#fcb65e","#e18e92"],gradientSet:["#7abd5c","#fcb65e"],accentColor:"#679ec5"}),r(x,"soft pastel",{simpleSet:["#60a69f","#78b6d9","#6682bb","#a37182","#eeba69","#90ba58","#456c68","#7565a4"],indicatingSet:["#90ba58","#eeba69","#a37182"],gradientSet:["#78b6d9","#eeba69"],accentColor:"#60a69f"}),r(x,"pastel",{simpleSet:["#bb7862","#70b3a1","#bb626a","#057d85","#ab394b","#dac599","#153459","#b1d2c6"],indicatingSet:["#70b3a1","#dac599","#bb626a"],gradientSet:["#bb7862","#70b3a1"],accentColor:"#bb7862"}),r(x,"bright",{simpleSet:["#70c92f","#f8ca00","#bd1550","#e97f02","#9d419c","#7e4452","#9ab57e","#36a3a6"],indicatingSet:["#70c92f","#f8ca00","#bd1550"],gradientSet:["#e97f02","#f8ca00"],accentColor:"#e97f02"}),r(x,"soft",{simpleSet:["#cbc87b","#9ab57e","#e55253","#7e4452","#e8c267","#565077","#6babac","#ad6082"],indicatingSet:["#9ab57e","#e8c267","#e55253"],gradientSet:["#9ab57e","#e8c267"],accentColor:"#565077"}),r(x,"ocean",{simpleSet:["#75c099","#acc371","#378a8a","#5fa26a","#064970","#38c5d2","#00a7c6","#6f84bb"],indicatingSet:["#c8e394","#7bc59d","#397c8b"],gradientSet:["#acc371","#38c5d2"],accentColor:"#378a8a"}),r(x,"vintage",{simpleSet:["#dea484","#efc59c","#cb715e","#eb9692","#a85c4c","#f2c0b5","#c96374","#dd956c"],indicatingSet:["#ffe5c6","#f4bb9d","#e57660"],gradientSet:["#efc59c","#cb715e"],accentColor:"#cb715e"}),r(x,"violet",{simpleSet:["#d1a1d1","#eeacc5","#7b5685","#7e7cad","#a13d73","#5b41ab","#e287e2","#689cc1"],indicatingSet:["#d8e2f6","#d0b2da","#d56a8a"],gradientSet:["#eeacc5","#7b5685"],accentColor:"#7b5685"}),r(x,"carmine",{simpleSet:["#fb7764","#73d47f","#fed85e","#d47683","#dde392","#757ab2"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#fb7764","#73d47f"],accentColor:"#f05b41"}),r(x,"dark moon",{simpleSet:["#4ddac1","#f4c99a","#80dd9b","#f998b3","#4aaaa0","#a5aef1"],indicatingSet:["#59d8a4","#f0ad4e","#f9517e"],gradientSet:["#4ddac1","#f4c99a"],accentColor:"#3debd3"}),r(x,"soft blue",{simpleSet:["#7ab8eb","#97da97","#facb86","#e78683","#839bda","#4db7be"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#7ab8eb","#97da97"],accentColor:"#7ab8eb"}),r(x,"dark violet",{simpleSet:["#9c63ff","#64c064","#eead51","#d2504b","#4b6bbf","#2da7b0"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#9c63ff","#64c064"],accentColor:"#9c63ff"}),r(x,"green mist",{simpleSet:["#3cbab2","#8ed962","#5b9d95","#efcc7c","#f1929f","#4d8dab"],indicatingSet:["#72d63c","#ffc852","#f74a5e"],gradientSet:["#3cbab2","#8ed962"],accentColor:"#3cbab2"}),x),B=void 0;p.prototype={constructor:p,dispose:function(){this._extensionStrategy=null},getNextColor:function(e){return this._extensionStrategy.getColor(this._currentColor++,e)},reset:function(){return this._currentColor=0,this._extensionStrategy.reset(),this}}},function(e,t,n){e.exports={events:{mouseover:"mouseover",mouseout:"mouseout",mousemove:"mousemove",touchstart:"touchstart",touchmove:"touchmove",touchend:"touchend",mousedown:"mousedown",mouseup:"mouseup",click:"click",selectSeries:"selectseries",deselectSeries:"deselectseries",selectPoint:"selectpoint",deselectPoint:"deselectpoint",showPointTooltip:"showpointtooltip",hidePointTooltip:"hidepointtooltip"},states:{hover:"hover",normal:"normal",selection:"selection",normalMark:0,hoverMark:1,selectedMark:2,applyHover:"applyHover",applySelected:"applySelected",resetItem:"resetItem"},radialLabelIndent:30,pieLabelSpacing:10,pieSeriesSpacing:4}},function(e,t,n){function i(e){return[-e,-e,e,-e,e,e,-e,e,-e,-e]}function r(e){var t=b(e);return[-t,0,0,-t,t,0,0,t,-t,0]}function o(e){var t=b(e),n=y(t/2),i=b(t/2);return[-t,-n,-n,-t,0,-i,n,-t,t,-n,i,0,t,n,n,t,0,i,-n,t,-t,n,-i,0]}function a(e){return[-e,-e,e,-e,0,e,-e,-e]}function s(e){return[-e,e,e,e,0,-e,-e,e]}var l=n(0).extend,c=n(3).each,u=n(4).noop,d=n(6),h=d.getWindow(),p=n(298),f=l,g=n(1).isDefined,_=n(16).normalizeEnum,m=Math,v=m.round,y=m.floor,b=m.ceil,x=20,S=20,w=10,C="canvas_position_default";e.exports={deleteLabel:function(){this._label.dispose(),this._label=null},_hasGraphic:function(){return this.graphic},clearVisibility:function(){var e=this,t=e.graphic;t&&t.attr("visibility")&&t.attr({visibility:null})},isVisible:function(){return this.inVisibleArea&&this.series.isVisible()},setInvisibility:function(){var e=this,t=e.graphic;t&&"hidden"!==t.attr("visibility")&&t.attr({visibility:"hidden"}),e._errorBar&&e._errorBar.attr({visibility:"hidden"}),e._label.draw(!1)},clearMarker:function(){var e=this.graphic;e&&e.attr(this._emptySettings)},_createLabel:function(){this._label=new p.Label({renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this})},_updateLabelData:function(){this._label.setData(this._getLabelFormatObject())},_updateLabelOptions:function(){!this._label&&this._createLabel(),this._label.setOptions(this._options.label)},_checkImage:function(e){return g(e)&&("string"==typeof e||g(e.url))},_fillStyle:function(){this._styles=this._options.styles},_checkSymbol:function(e,t){var n=e.symbol,i=t.symbol,r="circle"===n&&"circle"!==i||"circle"!==n&&"circle"===i,o=this._checkImage(e.image)!==this._checkImage(t.image);return!(!r&&!o)},_populatePointShape:function(e,t){switch(e){case"square":return i(t);case"polygon":return r(t);case"triangle":case"triangleDown":return a(t);case"triangleUp":return s(t);case"cross":return o(t)}},hasCoords:function(){return null!==this.x&&null!==this.y},correctValue:function(e){var t=this;t.hasValue()&&(t.value=t.properValue=t.initialValue+e,t.minValue=e)},resetCorrection:function(){this.value=this.properValue=this.initialValue,this.minValue=C},resetValue:function(){var e=this;e.hasValue()&&(e.value=e.properValue=e.initialValue=0,e.minValue=0,e._label.setDataField("value",e.value))},_getTranslates:function(e){var t=this.x,n=this.y;return e&&(this._options.rotated?t=this.defaultX:n=this.defaultY),{x:t,y:n}},_createImageMarker:function(e,t,n){var i=n.width||x,r=n.height||S;return e.image(-v(.5*i),-v(.5*r),i,r,n.url?n.url.toString():n.toString(),"center").attr({translateX:t.translateX,translateY:t.translateY,visibility:t.visibility})},_createSymbolMarker:function(e,t){var n,i=this._options.symbol;
19
- return"circle"===i?(delete t.points,n=e.circle().attr(t)):"square"!==i&&"polygon"!==i&&"triangle"!==i&&"triangleDown"!==i&&"triangleUp"!==i&&"cross"!==i||(n=e.path([],"area").attr(t).sharp()),n},_createMarker:function(e,t,n,i){var r=this,o=r._checkImage(n)?r._createImageMarker(e,i,n):r._createSymbolMarker(e,i);return o&&o.data({"chart-data-point":r}).append(t),o},_getSymbolBBox:function(e,t,n){return{x:e-n,y:t-n,width:2*n,height:2*n}},_getImageBBox:function(e,t){var n=this._options.image,i=n.width||x,r=n.height||S;return{x:e-v(i/2),y:t-v(r/2),width:i,height:r}},_getGraphicBBox:function(){var e,t=this,n=t._options,i=t.x,r=t.y;return e=n.visible?t._checkImage(n.image)?t._getImageBBox(i,r):t._getSymbolBBox(i,r,n.styles.normal.r):{x:i,y:r,width:0,height:0}},hideInsideLabel:u,_getShiftLabelCoords:function(e){var t=this._addLabelAlignmentAndOffset(e,this._getLabelCoords(e));return this._checkLabelPosition(e,t)},_drawLabel:function(){var e=this,t=e._getCustomLabelVisibility(),n=e._label,i=e._showForZeroValues()&&e.hasValue()&&t!==!1&&(e.series.getLabelVisibility()||t);n.draw(!!i)},correctLabelPosition:function(e){var t=this,n=t._getShiftLabelCoords(e);t.hideInsideLabel(e,n)||(e.setFigureToDrawConnector(t._getLabelConnector(e.pointPosition)),e.shift(v(n.x),v(n.y)))},_showForZeroValues:function(){return!0},_getLabelConnector:function(e){var t=this._getGraphicBBox(e),n=t.width/2,i=t.height/2;return{x:t.x+n,y:t.y+i,r:this._options.visible?Math.max(n,i):0}},_getPositionFromLocation:function(){return{x:this.x,y:this.y}},_isPointInVisibleArea:function(e,t){return e.minX<=t.x+t.width&&e.maxX>=t.x&&e.minY<=t.y+t.height&&e.maxY>=t.y},_checkLabelPosition:function(e,t){var n=this,i=n._getVisibleArea(),r=e.getBoundingRect(),o=n._getGraphicBBox(e.pointPosition),a=w;return n._isPointInVisibleArea(i,o)&&(n._options.rotated?(i.minX>t.x&&(t.x=o.x+o.width+a),i.maxX<t.x+r.width&&(t.x=o.x-a-r.width),i.minY>t.y&&(t.y=i.minY),i.maxY<t.y+r.height&&(t.y=i.maxY-r.height)):(i.minX>t.x&&(t.x=i.minX),i.maxX<t.x+r.width&&(t.x=i.maxX-r.width),i.minY>t.y&&(t.y=o.y+o.height+a),i.maxY<t.y+r.height&&(t.y=o.y-r.height-a))),t},_addLabelAlignmentAndOffset:function(e,t){var n=e.getBoundingRect(),i=e.getLayoutOptions();return this._options.rotated||("left"===i.alignment?t.x+=n.width/2:"right"===i.alignment&&(t.x-=n.width/2)),t.x+=i.horizontalOffset,t.y+=i.verticalOffset,t},_getLabelCoords:function(e){return this._getLabelCoordOfPosition(e,this._getLabelPosition(e.pointPosition))},_getLabelCoordOfPosition:function(e,t){var n=this,i=e.getBoundingRect(),r=n._getGraphicBBox(e.pointPosition),o=w,a=r.height/2-i.height/2,s=r.width/2-i.width/2,l=r.x,c=r.y;switch(t){case"left":l-=i.width+o,c+=a;break;case"right":l+=r.width+o,c+=a;break;case"top":l+=s,c-=i.height+o;break;case"bottom":l+=s,c+=r.height+o;break;case"inside":l+=s,c+=a}return{x:l,y:c}},_drawMarker:function(e,t,n){var i=this,r=i._options,o=i._getTranslates(n),a=i._getStyle();i.graphic=i._createMarker(e,t,r.image,f({translateX:o.x,translateY:o.y,points:i._populatePointShape(r.symbol,a.r)},a))},_getErrorBarSettings:function(){return{visibility:"visible"}},_drawErrorBar:function(e,t){if(this._options.errorBars){var n,i=this,r=i._options,o=r.errorBars,a=[],s=i._errorBarPos,l=i._highErrorCoord,u=i._lowErrorCoord,d=_(o.displayMode),h="high"===d,p="low"===d,f=y(parseInt(o.edgeLength)/2),m=(h||!g(u))&&g(l)&&!p,v=(p||!g(l))&&g(u)&&!h;m&&(u=i._baseErrorBarPos),v&&(l=i._baseErrorBarPos),"none"!==d&&g(l)&&g(u)&&g(s)?(!v&&a.push([s-f,l,s+f,l]),a.push([s,l,s,u]),!m&&a.push([s+f,u,s-f,u]),r.rotated&&c(a,function(e,t){t.reverse()}),n=i._getErrorBarSettings(o),i._errorBar?(n.points=a,i._errorBar.attr(n)):i._errorBar=e.path(a,"line").attr(n).append(t)):i._errorBar&&i._errorBar.attr({visibility:"hidden"})}},getTooltipParams:function(){var e=this,t=e.graphic;return{x:e.x,y:e.y,offset:t?t.getBBox().height/2:0}},setPercentValue:function(e,t,n,i){var r=this,o=r.value/e||0,a=r.minValue/e||0,s=o-a;r._label.setDataField("percent",s),r._label.setDataField("total",t),r.series.isFullStackedSeries()&&r.hasValue()&&(r.leftHole&&(r.leftHole/=e-n,r.minLeftHole/=e-n),r.rightHole&&(r.rightHole/=e-i,r.minRightHole/=e-i),r.value=r.properValue=o,r.minValue=a?a:r.minValue)},_storeTrackerR:function(){var e,t=this,n=h.navigator,i=t._options.styles.normal.r;return e=d.hasProperty("ontouchstart")||n.msPointerEnabled&&n.msMaxTouchPoints||n.pointerEnabled&&n.maxTouchPoints?20:6,t._options.trackerR=i<e?e:i,t._options.trackerR},_translateErrorBars:function(){var e=this,t=e._options,n=t.rotated,i=t.errorBars,r=e._getValTranslator();i&&(g(e.lowError)&&(e._lowErrorCoord=r.translate(e.lowError)),g(e.highError)&&(e._highErrorCoord=r.translate(e.highError)),e._errorBarPos=y(n?e.vy:e.vx),e._baseErrorBarPos="stdDeviation"===i.type?e._lowErrorCoord+(e._highErrorCoord-e._lowErrorCoord)/2:n?e.vx:e.vy)},_translate:function(){var e=this,t=e._getValTranslator(),n=e._getArgTranslator();e._options.rotated?(e.vx=e.x=t.translate(e.value),e.vy=e.y=n.translate(e.argument),e.minX=t.translate(e.minValue),e.defaultX=t.translate(C)):(e.vy=e.y=t.translate(e.value),e.vx=e.x=n.translate(e.argument),e.minY=t.translate(e.minValue),e.defaultY=t.translate(C)),e._translateErrorBars(),e._calculateVisibility(e.x,e.y)},_updateData:function(e){var t=this;t.value=t.properValue=t.initialValue=t.originalValue=e.value,t.minValue=t.initialMinValue=t.originalMinValue=g(e.minValue)?e.minValue:C},_getImageSettings:function(e){return{href:e.url||e.toString(),width:e.width||x,height:e.height||S}},getCrosshairData:function(){var e=this,t=e._options.rotated,n=e.properValue,i=e.argument;return{x:e.vx,y:e.vy,xValue:t?n:i,yValue:t?i:n,axis:e.series.axis}},getPointRadius:function(){var e,t=this._getStyle(),n=this._options,i=t.r,r=n.symbol,o="square"===r,a="triangle"===r||"triangleDown"===r||"triangleUp"===r;return n.visible&&!n.image&&i?(e=t["stroke-width"]/2,(o||a?1.4*i:i)+e):0},_updateMarker:function(e,t){var n,i=this,r=i._options,o=r.image,a=i.isVisible()?{}:{visibility:"hidden"};n=i._checkImage(o)?f({},{visibility:t.visibility},a,i._getImageSettings(o)):f({},t,a,{points:i._populatePointShape(r.symbol,t.r)}),e||(n.translateX=i.x,n.translateY=i.y),i.graphic.attr(n).sharp()},_getLabelFormatObject:function(){var e=this;return{argument:e.initialArgument,value:e.initialValue,originalArgument:e.originalArgument,originalValue:e.originalValue,seriesName:e.series.name,lowErrorValue:e.lowError,highErrorValue:e.highError,point:e}},_getLabelPosition:function(){var e=this._options.rotated;return this.initialValue>0?e?"right":"top":e?"left":"bottom"},_getFormatObject:function(e){var t=this,n=t._label.getData();return f({},n,{argumentText:e.formatValue(t.initialArgument,"argument"),valueText:e.formatValue(t.initialValue)},g(n.percent)?{percentText:e.formatValue(n.percent,"percent")}:{},g(n.total)?{totalText:e.formatValue(n.total)}:{})},getMarkerVisibility:function(){return this._options.visible},coordsIn:function(e,t){var n=this._storeTrackerR();return e>=this.x-n&&e<=this.x+n&&t>=this.y-n&&t<=this.y+n},getMinValue:function(){var e=this._options.errorBars;if(e){var t=e.displayMode,n="high"===t?this.value:this.lowError,i="low"===t?this.value:this.highError;return n<i?n:i}return this.value},getMaxValue:function(){var e=this._options.errorBars;if(e){var t=e.displayMode,n="high"===t?this.value:this.lowError,i="low"===t?this.value:this.highError;return n>i?n:i}return this.value}}},function(e,t,n){var i,r=n(1).isFunction,o=n(16).normalizeEnum,a=Math.round,s={};t.getAlgorithm=function(e){return s[o(e)]||r(e)&&e||i},t.addAlgorithm=function(e,t){s[e]=t},t.setDefaultAlgorithm=function(e){i=s[e]};var l={};l[-1]=[2,0],l[1]=[0,2];var c=function(e){return e[2]-e[0]<e[3]-e[1]?0:1};t.getStaticSideIndex=c,t.buildSidesData=function(e,t,n){var i=void 0!==n?n:c(e),r=1-i,o=t[i],a=t[r],s=l[o],u=l[a];return{staticSide:e[2+i]-e[i],variedSide:e[2+r]-e[r],static1:i+s[0],static2:i+s[1],varied1:r+u[0],varied2:r+u[1],staticDir:o,variedDir:a}},t.calculateRectangles=function(e,t,n,i,r){var o,s,l,c,u=[0,0,0,0],d=i.static1,h=i.static2,p=n[d],f=i.staticDir,g=i.staticSide,_=r.sum;for(u[i.varied1]=n[i.varied1],u[i.varied2]=n[i.varied1]+i.variedDir*r.side,o=t,s=t+r.count;o<s;++o)l=u.slice(),l[d]=p,c=a(g*e[o].value/_)||0,_-=e[o].value,g-=c,p+=f*c,l[h]=p,e[o].rect=l;n[i.varied1]=u[i.varied2]}},function(e,t,n){function i(e){return function(t){return t.isNode()?void 0:e(t)}}function r(e){return function(t){var n=!t.isNode()&&t.parent;return n?n._groupColor=n._groupColor||e(n):void 0}}function o(e){return e.value}function a(e){return function(t){return Number(t.data[e])}}var s,l=n(16).normalizeEnum,c=n(4).noop,u={};t.getColorizer=function(e,t,n){var o=l(e.type||s),a=u[o]&&u[o](e,t,n);return a?(e.colorizeGroups?r:i)(a):c},t.addColorizer=function(e,t){u[e]=t},t.setDefaultColorizer=function(e){s=e},t.createColorCodeGetter=function(e){return e.colorCodeField?a(e.colorCodeField):o}},function(e,t,n){var i=n(6).getWindow(),r=function(){var e;try{e=i.sessionStorage}catch(e){}return e};t.sessionStorage=r},function(e,t,n){var i=n(2),r=n(5),o=n(10),a=n(11).inArray,s=n(3).each,l=n(9),c=o.inherit({_keydown:l.addNamespace("keydown","KeyboardProcessor"),codes:{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"},ctor:function(e){var t=this;e=e||{},e.element&&(this._element=i(e.element)),e.focusTarget&&(this._focusTarget=e.focusTarget),this._handler=e.handler,this._context=e.context,this._childProcessors=[],this._element&&(this._processFunction=function(e){t.process(e)},r.on(this._element,this._keydown,this._processFunction))},dispose:function(){this._element&&r.off(this._element,this._keydown,this._processFunction),this._element=void 0,this._handler=void 0,this._context=void 0,this._childProcessors=void 0},clearChildren:function(){this._childProcessors=[]},push:function(e){return this._childProcessors||this.clearChildren(),this._childProcessors.push(e),e},attachChildProcessor:function(){var e=new c;return this._childProcessors.push(e),e},reinitialize:function(e,t){return this._context=t,this._handler=e,this},process:function(e){if(this._focusTarget&&this._focusTarget!==e.target&&a(e.target,this._focusTarget)<0)return!1;var t={key:this.codes[e.which]||e.which,ctrl:e.ctrlKey,shift:e.shiftKey,alt:e.altKey,originalEvent:e},n=this._handler&&this._handler.call(this._context,t);n&&this._childProcessors&&s(this._childProcessors,function(t,n){n.process(e)})}});e.exports=c},function(e,t,n){var i={_findGroup:function(){var e,t=this.option("validationGroup");return t||(e=this.$element().parents(".dx-validationgroup").first(),t=e.length?e.dxValidationGroup("instance"):this._modelByElement(this.$element())),t}};e.exports=i},function(e,t,n){var i=n(5),r=n(35),o=n(10),a=n(14),s=n(61),l=n(9),c=n(25),u="dxHoverStart",d="dxhoverstart",h=l.addNamespace(c.enter,u),p="dxHoverEnd",f="dxhoverend",g=l.addNamespace(c.leave,p),_=o.inherit({noBubble:!0,ctor:function(){this._handlerArrayKeyPath=this._eventNamespace+"_HandlerStore"},setup:function(e){r.data(e,this._handlerArrayKeyPath,{})},add:function(e,t){var n=this,o=function(e){n._handler(e)};i.on(e,this._originalEventName,t.selector,o),r.data(e,this._handlerArrayKeyPath)[t.guid]=o},_handler:function(e){l.isTouchEvent(e)||a.isSimulator()||l.fireEvent({type:this._eventName,originalEvent:e,delegateTarget:e.delegateTarget})},remove:function(e,t){var n=r.data(e,this._handlerArrayKeyPath)[t.guid];i.off(e,this._originalEventName,t.selector,n)},teardown:function(e){r.removeData(e,this._handlerArrayKeyPath)}}),m=_.inherit({ctor:function(){this._eventNamespace=u,this._eventName=d,this._originalEventName=h,this.callBase()},_handler:function(e){var t=e.pointers||[];t.length||this.callBase(e)}}),v=_.inherit({ctor:function(){this._eventNamespace=p,this._eventName=f,this._originalEventName=g,this.callBase()}});s(d,new m),s(f,new v),t.start=d,t.end=f},function(e,t,n){function i(e){return e&&_(e.then)}function r(e){return(new S).resolve(e).promise()}function o(e,t){if(!_(t))throw m.Error("E4011",e)}function a(e){throw m.Error("E4012",e)}function s(e){function t(e){var t=e[0],n=e[1];return t&&t.getResponseHeader?g.errorMessageFromXhr(t,n):null}return function(n){var i;i=n instanceof Error?n:new Error(t(arguments)||n&&String(n)||"Unknown error"),i.message!==g.XHR_ERROR_UNLOAD&&e.reject(i)}}function l(e,t){var n,s=e._loadFunc;return o(T,s),n=s.apply(e,[t]),Array.isArray(n)?n=r(n):null===n||void 0===n?n=r([]):i(n)||a(T),C(n)}function c(e,t){var n,o=e._totalCountFunc;if(!_(o))throw m.Error("E4021");return n=o.apply(e,[t]),i(n)||(n=Number(n),isFinite(n)||a(k),n=r(n)),C(n)}function u(e,t,n){var a,s=e._byKeyFunc;return o(E,s),a=s.apply(e,[t,n]),i(a)||(a=r(a)),C(a)}function d(e,t,n,i){t.__rawData?i(t.__rawData):l(t,n).done(function(e){t._cacheRawData&&(t.__rawData=e),i(e)}).fail(s(e))}function h(e,t,n,i){n=n||{};var r={};"userData"in n&&(r.userData=n.userData),d(e,t,r,function(r){var o,a,s,l,c=y(r,{errorHandler:t._errorHandler}),u=[];i||(o=b(c,n),o===c?s=r.slice(0):u.push(o.enumerate().done(function(e){s=e}))),(n.requireTotalCount||i)&&(a=b(c,n,!0),a===c?l=r.length:u.push(a.count().done(function(e){l=e}))),w.apply(f,u).done(function(){i?e.resolve(l):n.requireTotalCount?e.resolve(s,{totalCount:l}):e.resolve(s)}).fail(function(t){e.reject(t)})})}function p(e,t,n){d(e,t,{},function(i){for(var r,o=t.key(),a=0,s=i.length;a<s;a++)if(r=i[a],g.keysEqual(o,t.keyOf(i[a]),n))return void e.resolve(r);e.reject(m.Error("E4009"))})}var f=n(2),g=n(41),_=n(1).isFunction,m=n(36).errors,v=n(91),y=n(144),b=n(80).queryByOptions,x=n(7),S=x.Deferred,w=x.when,C=x.fromPromise,k="totalCount",T="load",E="byKey",A="insert",O="update",I="remove",D=v.inherit({ctor:function(e){e=e||{},this.callBase(e),this._useDefaultSearch=!!e.useDefaultSearch||"raw"===e.loadMode,this._loadMode=e.loadMode,this._cacheRawData=e.cacheRawData!==!1,this._loadFunc=e[T],this._totalCountFunc=e[k],this._byKeyFunc=e[E],this._insertFunc=e[A],this._updateFunc=e[O],this._removeFunc=e[I]},createQuery:function(){throw m.Error("E4010")},clearRawDataCache:function(){delete this.__rawData},_totalCountImpl:function(e){var t=new S;return"raw"!==this._loadMode||this._totalCountFunc?(c(this,e).done(function(e){t.resolve(Number(e))}).fail(s(t)),t=this._addFailHandlers(t)):h(t,this,e,!0),t.promise()},_loadImpl:function(e){var t=new S;return"raw"===this._loadMode?h(t,this,e,!1):(l(this,e).done(function(e,n){t.resolve(e,n)}).fail(s(t)),t=this._addFailHandlers(t)),t.promise()},_byKeyImpl:function(e,t){var n=new S;return this._byKeyViaLoad()?(this._requireKey(),p(n,this,e)):u(this,e,t).done(function(e){n.resolve(e)}).fail(s(n)),n.promise()},_byKeyViaLoad:function(){return"raw"===this._loadMode&&!this._byKeyFunc},_insertImpl:function(e){var t,n=this._insertFunc,a=new S;return o(A,n),t=n.apply(this,[e]),i(t)||(t=r(t)),C(t).done(function(t){a.resolve(e,t)}).fail(s(a)),a.promise()},_updateImpl:function(e,t){var n,a=this._updateFunc,l=new S;return o(O,a),n=a.apply(this,[e,t]),i(n)||(n=r()),C(n).done(function(){l.resolve(e,t)}).fail(s(l)),l.promise()},_removeImpl:function(e){var t,n=this._removeFunc,a=new S;return o(I,n),t=n.apply(this,[e]),i(t)||(t=r()),C(t).done(function(){a.resolve(e)}).fail(s(a)),a.promise()}});e.exports=D},function(e,t,n){var i=n(2),r=n(5),o=n(40),a=n(14),s=n(10),l=n(61),c=n(9),u=n(90),d="dxContexMenu",h=c.addNamespace("contextmenu",d),p=c.addNamespace(u.name,d),f="dxcontextmenu",g=s.inherit({setup:function(e){var t=i(e);r.on(t,h,this._contextMenuHandler.bind(this)),(o.touch||a.isSimulator())&&r.on(t,p,this._holdHandler.bind(this))},_holdHandler:function(e){c.isMouseEvent(e)&&!a.isSimulator()||this._fireContextMenu(e)},_contextMenuHandler:function(e){this._fireContextMenu(e)},_fireContextMenu:function(e){return c.fireEvent({type:f,originalEvent:e})},teardown:function(e){r.off(e,"."+d)}});l(f,new g),t.name=f},,,,,function(e,t,n){function i(){this.reset()}function r(e,t){return e!==t?d({},e,t):d({},e)}function o(e,t){return e!==t?e.concat(t):e.slice()}function a(e){e._totalChangesOrder=e._optionChangesOrder.concat(e._layoutChangesOrder,e._customChangesOrder)}function s(e){var t=this.prototype,n=e.code;t["_change_"+n]=e.handler,e.isThemeDependent&&t._themeDependentChanges.push(n),e.option&&(t._optionChangesMap[e.option]=n),(e.isOptionChange?t._optionChangesOrder:t._customChangesOrder).push(n),a(t)}function l(){function e(){var e,n,i=t.length;for(e=0;e<i;++e)n=t[e].apply(this,arguments);return n}var t=[];return e.add=function(e){t.push(e)},e}function c(e,t,n){var i=e[t];i.add?i.add(n):(i=l(),i.add(e[t]),i.add(n)),e[t]=i}function u(e){var t=this.prototype;t._plugins.push(e),e.members&&d(this.prototype,e.members),e.customize&&e.customize(this),e.extenders&&Object.keys(e.extenders).forEach(function(n){var i=e.extenders[n];c(t,n,i)},this)}var d=n(0).extend,h=n(6),p=n(4).noop,f=!h.hasWindow();i.prototype={constructor:i,add:function(e){var t,n=e.length,i=this._flags;for(t=0;t<n;++t)i[e[t]]=1;this._k+=n},has:function(e){return this._flags[e]>0},count:function(){return this._k},reset:function(){this._flags={},this._k=0}},t.replaceInherit=f?function(e){var t=e.inherit;e.inherit=function(){var e=t.apply(this,arguments),n=e.prototype;return["_plugins","_eventsMap","_initialChanges","_themeDependentChanges","_optionChangesMap","_optionChangesOrder","_layoutChangesOrder","_customChangesOrder","_totalChangesOrder"].forEach(function(e){n[e]={}}),e.addPlugin=p,e},e.addChange=p,e.addPlugin=p}:function(e){var t=e.inherit;e.inherit=function(){var e=this.prototype,n=e._plugins,i=e._eventsMap,s=e._initialChanges,l=e._themeDependentChanges,c=e._optionChangesMap,d=e._optionChangesOrder,h=e._layoutChangesOrder,p=e._customChangesOrder,f=t.apply(this,arguments);return e=f.prototype,e._plugins=o(n,e._plugins),e._eventsMap=r(i,e._eventsMap),e._initialChanges=o(s,e._initialChanges),e._themeDependentChanges=o(l,e._themeDependentChanges),e._optionChangesMap=r(c,e._optionChangesMap),e._optionChangesOrder=o(d,e._optionChangesOrder),e._layoutChangesOrder=o(h,e._layoutChangesOrder),e._customChangesOrder=o(p,e._customChangesOrder),a(e),f.addPlugin=u,f},e.prototype._plugins=[],e.addChange=s,e.addPlugin=u},t.changes=function(){return new i},t.expand=c},function(e,t,n){var i=n(0).extend,r=n(3).each,o=n(133),a=n(199).chart.area,s=o.chart,l=o.polar,c=i,u=r;t.chart={},t.polar={};var d={_createLegendState:function(e,t){return{fill:e.color||t,hatching:e.hatching}},_parsePointStyle:function(e,t,n){var i=e.color||t,r=s._parsePointStyle.call(this,e,i,n);return r.fill=i,r.hatching=e.hatching,r.dashStyle=e.border&&e.border.dashStyle||"solid",delete r.r,r},_applyMarkerClipRect:function(e){e["clip-path"]=null},_setGroupsSettings:function(e,t){var n=this,i={};s._setGroupsSettings.apply(n,arguments),e&&t?i=this._getAffineCoordOptions():e||(i={scaleX:1,scaleY:1,translateX:0,translateY:0}),n._markersGroup.attr(i)},_drawPoint:function(e){e.hasAnimation=e.hasAnimation&&!e.firstDrawing,e.firstDrawing=!1,s._drawPoint.call(this,e)},_getMainColor:function(){return this._options.mainSeriesColor},_createPointStyles:function(e){var t=this,n=e.color||t._getMainColor();return{normal:t._parsePointStyle(e,n,n),hover:t._parsePointStyle(e.hoverStyle||{},n,n),selection:t._parsePointStyle(e.selectionStyle||{},n,n)}},_updatePointsVisibility:function(){var e=this._options.visible;r(this._points,function(t,n){n._options.visible=e})},_getOptionsForPoint:function(){return this._options},_animate:function(e){var t=this,n=function(){t._animateComplete()},i=function(e,t){var n=e.length-1;u(e||[],function(e,i){i.animate(e===n?t:void 0,i.getMarkerCoords())})};t._animatePoints(e,n,i)},getValueRangeInitialValue:a.getValueRangeInitialValue,_patchMarginOptions:function(e){return e.checkInterval=!0,e},_defaultAggregator:"sum"};t.chart.bar=c({},s,d,{_getAffineCoordOptions:function(){var e=this._options.rotated,t=e?"X":"Y",n={scaleX:e?.001:1,scaleY:e?1:.001};return n["translate"+t]=this.getValueAxis().getTranslator().translate("canvas_position_default"),n},_animatePoints:function(e,t,n){var i=this;i._markersGroup.animate({scaleX:1,scaleY:1,translateY:0,translateX:0},void 0,t),e||n(i._drawnPoints,t)}}),t.polar.bar=c({},l,d,{_animatePoints:function(e,t,n){n(this._drawnPoints,t)},_setGroupsSettings:s._setGroupsSettings,_drawPoint:function(e,t,n){s._drawPoint.call(this,e,t,n)},_parsePointStyle:function(e){var t=d._parsePointStyle.apply(this,arguments);return t.opacity=e.opacity,t},_createGroups:s._createGroups,_setMarkerGroupSettings:function(){var e,t=this,n=t._createPointStyles(t._getMarkerGroupOptions()).normal;n.class="dxc-markers",t._applyMarkerClipRect(n),e=c({},n),delete e.opacity,t._markersGroup.attr(e)},_createLegendState:a._createLegendState})},function(e,t,n){function i(e){return!!(e&&String(e).length>0)}function r(e,t,n){e.attr({text:t}).applyEllipsis(n)&&e.setTitle(t)}function o(e){return e>=0?c(e):g}function a(e){var t;return e>=0?t={left:c(e),top:c(e),right:c(e),bottom:c(e)}:(e=e||{},t={left:o(e.left),top:o(e.top),right:o(e.right),bottom:o(e.bottom)}),t}function s(e){this._params=e,this._group=e.renderer.g().attr({"class":e.cssClass}).linkOn(e.renderer.root,{name:"title",after:"peripheral"}),this._hasText=!1}function l(e){var t=u(e)?{text:e}:e||{};return t.subtitle=u(t.subtitle)?{text:t.subtitle}:t.subtitle||{},t}var c=Number,u=n(1).isString,d=n(0).extend,h=n(16).patchFontOptions,p=n(16).enumParser(["left","center","right"]),f=n(16).enumParser(["top","bottom"]),g=10,_=3;d(s.prototype,n(250).LayoutElement.prototype,{dispose:function(){var e=this;e._group.linkRemove(),e._group.linkOff(),e._titleElement&&(e._clipRect.dispose(),e._titleElement=e._subtitleElement=e._clipRect=null),e._params=e._group=e._options=null},_updateOptions:function(e){this._options=e,this._options.horizontalAlignment=p(e.horizontalAlignment,"center"),this._options.verticalAlignment=f(e.verticalAlignment,"top"),this._options.margin=a(e.margin)},_updateStructure:function(){var e=this,t=e._params.renderer,n=e._group,r={align:e._options.horizontalAlignment};e._titleElement||(e._titleElement=t.text().attr(r).append(n),e._subtitleElement=t.text().attr(r),e._clipRect=t.clipRect(),n.attr({"clip-path":e._clipRect.id})),n.linkAppend(),i(e._options.subtitle.text)?e._subtitleElement.append(n):e._subtitleElement.remove()},_updateTexts:function(){var e,t,n=this,r=n._options,o=r.subtitle,a=n._titleElement,s=n._subtitleElement,l="A";a.attr({text:l,y:0}).css(h(r.font)),e=a.getBBox(),n._titleTextY=e.height+e.y,a.attr({text:r.text}),e=a.getBBox(),t=-e.y,a.attr({y:t}),i(o.text)&&(t+=e.height+e.y,s.attr({text:o.text,y:0}).css(h(o.font)),t+=-s.getBBox().y-n._titleTextY+_,s.attr({y:t}))},_updateBoundingRectAlignment:function(){var e=this._boundingRect,t=this._options;e.verticalAlignment=t.verticalAlignment,e.horizontalAlignment=t.horizontalAlignment,e.cutLayoutSide=t.verticalAlignment,e.cutSide="vertical",e.position={horizontal:t.horizontalAlignment,vertical:t.verticalAlignment}},update:function(e){var t=this,n=i(e.text),r=n||n!==t._hasText;return n?(t._updateOptions(e),t._updateStructure(),t._updateTexts(),t._boundingRect={},t._updateBoundingRect(),t._updateBoundingRectAlignment()):(t._group.linkRemove(),t._boundingRect=null),t._hasText=n,r},draw:function(e,t){var n,i=this;return i._group.linkAppend(),i._correctTitleLength(e),n=i.getLayoutOptions(),n.height>t&&this.freeSpace(),i},probeDraw:function(e,t){return this.draw(e,t),this},_correctTitleLength:function(e){var t=this,n=t._options,i=n.margin,o=e-i.left-i.right;r(t._titleElement,n.text,o),t._subtitleElement&&r(t._subtitleElement,n.subtitle.text,o),t._updateBoundingRect()},getLayoutOptions:function(){return this._boundingRect||null},shift:function(e,t){var n=this,i=n.getLayoutOptions();return n._group.move(e-i.x,t-i.y),n._setClipRectSettings(),n},_setClipRectSettings:function(){var e=this.getLayoutOptions();this._clipRect.attr({x:e.x,y:e.y,width:e.width,height:e.height})},_updateBoundingRect:function(){var e,t=this,n=t._options,i=n.margin,r=t._boundingRect;e=t._group.getBBox(),e.height+=i.top+i.bottom-t._titleTextY,e.width+=i.left+i.right,e.x-=i.left,e.y+=t._titleTextY-i.top,n.placeholderSize>0&&(e.height=n.placeholderSize),r.height=e.height,r.width=e.width,r.x=e.x,r.y=e.y},layoutOptions:function(){return this._boundingRect&&{horizontalAlignment:this._boundingRect.horizontalAlignment,verticalAlignment:this._boundingRect.verticalAlignment,priority:0}},measure:function(e){return this.draw(e[0],e[1]),[this._boundingRect.width,this._boundingRect.height]},move:function(e){var t=this._boundingRect;(e[2]-e[0]<t.width||e[3]-e[1]<t.height)&&this.draw(e[2]-e[0],e[3]-e[1]),this.shift(Math.round(e[0]),Math.round(e[1]))},freeSpace:function(){var e=this;e._params.incidentOccurred("W2103"),e._group.linkRemove(),e._boundingRect.width=e._boundingRect.height=0}}),t.Title=s,t.plugin={name:"title",init:function(){var e=this;e._title=new t.Title({renderer:e._renderer,cssClass:e._rootClassPrefix+"-title",incidentOccurred:e._incidentOccurred}),e._layout.add(e._title)},dispose:function(){this._title.dispose(),this._title=null},members:{_getTitleOptions:function(){return d(!0,{},this._themeManager.theme("title"),l(this.option("title")))}},customize:function(e){e.addChange({code:"TITLE",handler:function(){this._title.update(this._getTitleOptions())&&this._change(["LAYOUT"])},isThemeDependent:!0,option:"title",isOptionChange:!0})}}},function(e,t,n){function i(e){e.css({left:"-9999px"}).detach()}function r(e,t){var n=e;switch(t){case"argument":n={format:e.argumentFormat,precision:e.argumentPrecision};break;case"percent":n={format:{type:"percent",precision:e.format&&e.format.percentPrecision||e.percentPrecision}}}return n}function o(e){var t,n,i=this;i._eventTrigger=e.eventTrigger,i._widgetRoot=e.widgetRoot,i._wrapper=u("<div>").css({position:"absolute",overflow:"visible",height:"1px",pointerEvents:"none"}).addClass(e.cssClass),i._renderer=t=new d.Renderer({pathModified:e.pathModified,container:i._wrapper[0]}),n=t.root,n.attr({"pointer-events":"none"}),i._cloud=t.path([],"area").sharp().append(n),i._shadow=t.shadowFilter(),i._textGroup=t.g().attr({align:"center"}).append(n),i._text=t.text(void 0,0,0).append(i._textGroup),i._textGroupHtml=u("<div>").css({position:"absolute",width:0,padding:0,margin:0,border:"0px solid transparent"}).appendTo(i._wrapper),i._textHtml=u("<div>").css({position:"relative",display:"inline-block",padding:0,margin:0,border:"0px solid transparent"}).appendTo(i._textGroupHtml)}var a=n(12),s=n(6),l=n(37),c=s.getWindow(),u=n(2),d=n(198),h=n(1),p=n(0).extend,f=10,g=n(16),_=n(251),m=Math.ceil,v=Math.max,y=Math.min;o.prototype={constructor:o,dispose:function(){this._wrapper.remove(),this._renderer.dispose(),this._options=this._widgetRoot=null},_getContainer:function(){var e=this._options,t=u(this._widgetRoot).closest(e.container);return 0===t.length&&(t=u(e.container)),(t.length?t:u("body")).get(0)},setOptions:function(e){e=e||{};var t=this,n=t._cloudSettings={opacity:e.opacity,filter:t._shadow.id,"stroke-width":null,stroke:null},i=e.border||{};return t._shadowSettings=p({x:"-50%",y:"-50%",width:"200%",height:"200%"},e.shadow),t._options=e,i.visible&&p(n,{"stroke-width":i.width,stroke:i.color,"stroke-opacity":i.opacity,dashStyle:i.dashStyle}),t._textFontStyles=g.patchFontOptions(e.font),t._textFontStyles.color=e.font.color,t._wrapper.css({zIndex:e.zIndex}),t._customizeTooltip=h.isFunction(e.customizeTooltip)?e.customizeTooltip:null,t},setRendererOptions:function(e){return this._renderer.setOptions(e),this._textGroupHtml.css({direction:e.rtl?"rtl":"ltr"}),this},render:function(){var e=this;i(e._wrapper),e._cloud.attr(e._cloudSettings),e._shadow.attr(e._shadowSettings);var t={};for(var n in e._textFontStyles)t[l.camelize(n)]=e._textFontStyles[n];return e._textGroupHtml.css(t),e._textGroup.css(e._textFontStyles),e._text.css(e._textFontStyles),e._eventData=null,e},update:function(e){return this.setOptions(e).render()},_prepare:function(e,t){var n=this._options,i={};return this._customizeTooltip&&(i=this._customizeTooltip.call(e,e),i=h.isPlainObject(i)?i:{},"text"in i&&(t.text=h.isDefined(i.text)?String(i.text):""),"html"in i&&(t.html=h.isDefined(i.html)?String(i.html):"")),"text"in t||"html"in t||(t.text=e.valueText||""),t.color=i.color||n.color,t.borderColor=i.borderColor||(n.border||{}).color,t.textColor=i.fontColor||(n.font||{}).color,!!t.text||!!t.html},show:function(e,t,n){var i,r,o=this,a={},s=o._options,l=s.paddingLeftRight,u=s.paddingTopBottom,d=o._textGroupHtml,h=o._textHtml,p=o._shadowSettings,f=p.offsetX,g=p.offsetY,_=2*p.blur+1,v=c.getComputedStyle;return!!o._prepare(e,a)&&(o._state=a,a.tc={},o._wrapper.appendTo(o._getContainer()),o._cloud.attr({fill:a.color,stroke:a.borderColor}),a.html?(o._text.attr({text:""}),d.css({color:a.textColor,width:o._getCanvas().width}),h.html(a.html),v?(i=v(h.get(0)),i={x:0,y:0,width:m(parseFloat(i.width)),height:m(parseFloat(i.height))}):(i=h.get(0).getBoundingClientRect(),i={x:0,y:0,width:m(i.width?i.width:i.right-i.left),height:m(i.height?i.height:i.bottom-i.top)}),d.width(i.width),d.height(i.height)):(h.html(""),o._text.css({fill:a.textColor}).attr({text:a.text}),i=o._textGroup.css({fill:a.textColor}).getBBox()),r=a.contentSize={x:i.x-l,y:i.y-u,width:i.width+2*l,height:i.height+2*u,lm:_-f>0?_-f:0,rm:_+f>0?_+f:0,tm:_-g>0?_-g:0,bm:_+g>0?_+g:0},r.fullWidth=r.width+r.lm+r.rm,r.fullHeight=r.height+r.tm+r.bm+s.arrowLength,o.move(t.x,t.y,t.offset),o._eventData&&o._eventTrigger("tooltipHidden",o._eventData),o._eventData=n,o._eventTrigger("tooltipShown",o._eventData),!0)},hide:function(){var e=this;i(e._wrapper),e._eventData&&e._eventTrigger("tooltipHidden",e._eventData),e._eventData=null},move:function(e,t,n){n=n||0;var i=this,r=i._getCanvas(),o=i._state,a=o.tc,s=o.contentSize;i._calculatePosition(e,t,n,r)&&(i._cloud.attr({points:a.cloudPoints}).move(s.lm,s.tm),o.html?i._textGroupHtml.css({left:-s.x+s.lm,top:-s.y+s.tm+a.correction}):i._textGroup.move(-s.x+s.lm,-s.y+s.tm+a.correction),i._renderer.resize("out"===a.hp?r.fullWidth+s.lm:s.fullWidth,"out"===a.vp?r.fullHeight:s.fullHeight)),n=i._wrapper.css({left:0,top:0}).offset(),i._wrapper.css({left:a.x-n.left,top:a.y-n.top,width:"out"===a.hp?r.fullWidth+s.lm:s.fullWidth})},formatValue:function(e,t){var n=t?r(this._options,t):this._options;return _(e,n)},getLocation:function(){return g.normalizeEnum(this._options.location)},isEnabled:function(){return!!this._options.enabled},isShared:function(){return!!this._options.shared},_calculatePosition:function(e,t,n,i){var r,o,a,s,l=this,c=l._options,u=c.arrowLength,d=l._state,h=d.tc,p=d.contentSize,g=p.width,_=g/2,m=p.height,v=t-i.top,y=i.top+i.height-t,b=e-i.left,x=i.width+i.left-e,S=m+u+n+p.tm,w=m+u+n+p.bm,C=g+p.lm,k=g+p.rm,T=_+p.lm,E=_+p.rm,A=0,O=[6,0],I=_+f,D=_,M=_-f,P=m+u,L="center",B="bottom";switch(o=a=m,c.verticalAlignment){case"top":B="bottom",s=!0;break;case"bottom":B="top",s=!0}switch(s||(S>v&&w>y?B="out":S>v&&(B="top")),s=!1,c.horizontalAlignment){case"left":L="right",s=!0;break;case"center":L="center",s=!0;break;case"right":L="left",s=!0}return s||(C>b&&k>x?L="out":T>b&&k<x?L="left":E>x&&C<b&&(L="right")),"out"===L?e=i.left:"left"===L?(I=f,D=M=0):"right"===L?(I=D=g,M=g-f,e-=g):"center"===L&&(e-=_),"out"===B?t=i.top:"top"===B?("out"!==L&&(A=u),O[0]=2,o=a=u,P=I,I=M,M=P,P=0,t+=n):t-=m+u+n,h.x=e-p.lm,h.y=t-p.tm,h.correction=A,(L!==h.hp||B!==h.vp)&&(h.hp=L,h.vp=B,r=[0,0+A,g,0+A,g,m+A,0,m+A],"out"!==L&&"out"!==B&&(O.splice(2,0,I,o,D,P,M,a),r.splice.apply(r,O)),h.cloudPoints=r,!0)},_getCanvas:function(){var e=this._getContainer(),t=e.getBoundingClientRect(),n=a.getDocumentElement(),i=a.getBody(),r=c.pageXOffset||n.scrollLeft||0,o=c.pageYOffset||n.scrollTop||0,s={left:r,top:o,width:n.clientWidth||0,height:n.clientHeight||0,fullWidth:v(i.scrollWidth,n.scrollWidth,i.offsetWidth,n.offsetWidth,i.clientWidth,n.clientWidth)-r,fullHeight:v(i.scrollHeight,n.scrollHeight,i.offsetHeight,n.offsetHeight,i.clientHeight,n.clientHeight)-o
18
+ !1;if(r in t._constraints&&!t._checkConstraint(e[r],t._constraints[r]))return c=null,!1;r in e?(void 0!==e[r]&&(s[r]=e[r],c[n]+=e[r],l=n),delete d[r]):r in s&&(c[n]+=s[r],u.push(n))}else c[n]+=i,l=n}),o.each(s,function(n,i){if(i&&a(":"+n,t._segments)===-1&&e[n]!==i)return c=null,!1});var h=0;if(r.isEmptyObject(d)||(n="?",o.each(d,function(t){n+=t+"="+e[t]+"&",h++}),n=n.substr(0,n.length-1)),null===c)return!1;u.length&&o.map(u,function(e){e>=l&&(c[e]="")});var p=c.join("");return p=p.replace(/\/+$/,""),{uri:p+n,unusedCount:h}},formatSegment:function(e){return Array.isArray(e)||r.isPlainObject(e)?l+encodeURIComponent(JSON.stringify(e)):encodeURIComponent(e)},parseSegment:function(e){if(e.substr(0,l.length)===l)try{return JSON.parse(decodeURIComponent(e.substr(l.length)))}catch(e){}return decodeURIComponent(e)}}),u=s.inherit({ctor:function(){this._registry=[]},_trimSeparators:function(e){return e.replace(/^[\/.]+|\/+$/g,"")},_createRoute:function(e,t,n){return new c(e,t,n)},register:function(e,t,n){this._registry.push(this._createRoute(e,t,n))},_parseQuery:function(e){var t={},n=e.split("&");return o.each(n,function(e,n){var i=n.split("=");t[i[0]]=decodeURIComponent(i[1])}),t},parse:function(e){var t,n=this;e=this._trimSeparators(e);var r=e.split("?",2),a=r[0],s=r[1];return o.each(this._registry,function(){var e=this.parse(a);if(e!==!1)return t=e,s&&(t=i(t,n._parseQuery(s))),!1}),!!t&&t},format:function(e){var t=!1,n=99999;return e=e||{},o.each(this._registry,function(){var r=i(!0,{},e),o=this.format(r);o!==!1&&n>o.unusedCount&&(n=o.unusedCount,t=o.uri)}),t}});e.exports=u,e.exports.Route=c},function(e,t,n){n(43);var i=n(26),r=n(4).noop,o=n(6).getWindow(),a=n(10),s=n(19),l=n(234),c=n(154).sessionStorage,u=n(14),d="dxPhoneJSApplication",h=a.inherit({ctor:function(e){e=e||{},this._browserAdapter=e.browserAdapter||this._createBrowserAdapter(e),this.uriChanged=s(),this._browserAdapter.popState.add(this._onPopState.bind(this))},init:r,getUri:function(){return this._browserAdapter.getHash()},setUri:function(e,t){return t?this._browserAdapter.replaceState(e):e!==this.getUri()?this._browserAdapter.pushState(e):i.Deferred().resolve().promise()},back:function(){return this._browserAdapter.back()},_onPopState:function(){this.uriChanged.fire(this.getUri())},_isBuggyAndroid2:function(){var e=u.real(),t=e.version;return"android"===e.platform&&t.length>1&&(2===t[0]&&t[1]<4||t[0]<2)},_isBuggyAndroid4:function(){var e=u.real(),t=e.version;return"android"===e.platform&&t.length>1&&4===t[0]&&0===t[1]},_isWindowsPhone8:function(){var e=u.real();return"win"===e.platform&&e.phone},_createBrowserAdapter:function(e){var t,n=e.window||o,i=n.history.replaceState&&n.history.pushState;return t=this._isWindowsPhone8()?new l.BuggyCordovaWP81BrowserAdapter(e):n!==n.top?new l.HistorylessBrowserAdapter(e):this._isBuggyAndroid4()?new l.BuggyAndroidBrowserAdapter(e):this._isBuggyAndroid2()||!i?new l.OldBrowserAdapter(e):new l.DefaultBrowserAdapter(e)}}),p=h.inherit({ctor:function(e){this.callBase(e),this.backInitiated=s(),this._rootStateHandler=null,i(o).on("unload",this._saveBrowserState)},init:function(){var e=this;return e._browserAdapter.canWorkInPureBrowser?e._initRootPage().done(function(){e._browserAdapter.isRootPage()&&e._browserAdapter.pushState("")}):i.Deferred().resolve().promise()},setUri:function(e){return this.callBase(e,!this._browserAdapter.isRootPage())},_saveBrowserState:function(){var e=c();e&&e.setItem(d,!0)},_initRootPage:function(){var e=this.getUri(),t=c();return!t||t.getItem(d)?i.Deferred().resolve().promise():(t.removeItem(d),this._browserAdapter.createRootPage(),this._browserAdapter.pushState(e))},_onPopState:function(){this._browserAdapter.isRootPage()?this._rootStateHandler?this._rootStateHandler():this.backInitiated.fire():(this._rootStateHandler||this._createRootStateHandler(),this.back())},_createRootStateHandler:function(){var e=this.getUri();this._rootStateHandler=function(){this.uriChanged.fire(e),this._rootStateHandler=null}}});t.HistoryBasedNavigationDevice=h,t.StackBasedNavigationDevice=p},function(e,t,n){t.layoutSets={},t.animationSets={"native":{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"none",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"none",device:{grade:"C"}}]},"default":{"layout-change":[{animation:"none"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"pop",device:{platform:"android"}},{animation:"openDoor",device:{deviceType:"phone",platform:"win",version:[8]}},{animation:"win-pop",device:{deviceType:"phone",platform:"win"}}],"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-drop"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}},{animation:"none",device:{platform:"win",version:[10]}}],"command-rendered-bottom":[{animation:"stagger-fade-rise"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}},{animation:"none",device:{platform:"win",version:[10]}}],"list-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]},slide:{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-drop"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-bottom":[{animation:"stagger-fade-rise"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"list-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]},zoom:{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-zoom"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-bottom":[{animation:"stagger-fade-zoom"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"list-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]}}},function(e,t,n){var i=n(10),r=n(1),o=n(3),a=n(22).compileGetter,s=n(22).toComparable,l=n(7).Deferred,c=n(36),u=n(41),d=i.inherit({toArray:function(){var e=[];for(this.reset();this.next();)e.push(this.current());return e},countable:function(){return!1}}),h=d.inherit({ctor:function(e){this.array=e,this.index=-1},next:function(){return this.index+1<this.array.length&&(this.index++,!0)},current:function(){return this.array[this.index]},reset:function(){this.index=-1},toArray:function(){return this.array.slice(0)},countable:function(){return!0},count:function(){return this.array.length}}),p=d.inherit({ctor:function(e){this.iter=e},next:function(){return this.iter.next()},current:function(){return this.iter.current()},reset:function(){return this.iter.reset()}}),f=p.inherit({ctor:function(e,t){this.callBase(e),this.index=-1,this.mapper=t},current:function(){return this.mapper(this.callBase(),this.index)},next:function(){var e=this.callBase();return e&&this.index++,e}}),g=function(e,t){return e=s(e),t=s(t),null===e&&null!==t?-1:null!==e&&null===t?1:void 0===e&&void 0!==t?1:void 0!==e&&void 0===t?-1:e<t?-1:e>t?1:0},_=d.inherit({ctor:function(e,t,n,i){e instanceof f||(e=new f(e,this._wrap)),this.iter=e,this.rules=[{getter:t,desc:n,compare:i}]},thenBy:function(e,t,n){var i=new _(this.sortedIter||this.iter,e,t,n);return this.sortedIter||(i.rules=this.rules.concat(i.rules)),i},next:function(){return this._ensureSorted(),this.sortedIter.next()},current:function(){return this._ensureSorted(),this.sortedIter.current()},reset:function(){delete this.sortedIter},countable:function(){return this.sortedIter||this.iter.countable()},count:function(){return this.sortedIter?this.sortedIter.count():this.iter.count()},_ensureSorted:function(){var e=this;e.sortedIter||(o.each(e.rules,function(){this.getter=a(this.getter)}),e.sortedIter=new f(new h(this.iter.toArray().sort(function(t,n){return e._compare(t,n)})),e._unwrap))},_wrap:function(e,t){return{index:t,value:e}},_unwrap:function(e){return e.value},_compare:function(e,t){var n=e.index,i=t.index;if(e=e.value,t=t.value,e===t)return n-i;for(var r=0,o=this.rules.length;r<o;r++){var a=this.rules[r],s=a.getter(e),l=a.getter(t),c=a.compare||g,u=c(s,l);if(u)return a.desc?-u:u}return n-i}}),m=function(){function e(e,n,i){return function(r){r=s(e(r));var o=t(n)?r===n:r==n;return i&&(o=!o),o}}function t(e){return""===e||0===e||e===!1}function n(e){var t=e[0],n=m(e[1]);if("!"===t)return function(e){return!n(e)};throw c.errors.Error("E4003",t)}var i=function(e){var t=[],n=!1,i=!1;return o.each(e,function(){if(Array.isArray(this)||r.isFunction(this)){if(t.length>1&&n!==i)throw new c.errors.Error("E4019");t.push(m(this)),n=i,i=!0}else i=u.isConjunctiveOperator(this)}),function(e){for(var i=n,r=0;r<t.length;r++)if(t[r](e)!==n){i=!n;break}return i}},l=function(e){return r.isDefined(e)?e.toString():""},d=function(t){t=u.normalizeBinaryCriterion(t);var n=a(t[0]),i=t[1],r=t[2];switch(r=s(r),i.toLowerCase()){case"=":return e(n,r);case"<>":return e(n,r,!0);case">":return function(e){return s(n(e))>r};case"<":return function(e){return s(n(e))<r};case">=":return function(e){return s(n(e))>=r};case"<=":return function(e){return s(n(e))<=r};case"startswith":return function(e){return 0===s(l(n(e))).indexOf(r)};case"endswith":return function(e){var t=s(l(n(e))),i=l(r);if(t.length<i.length)return!1;var o=t.lastIndexOf(r);return o!==-1&&o===t.length-r.length};case"contains":return function(e){return s(l(n(e))).indexOf(r)>-1};case"notcontains":return function(e){return s(l(n(e))).indexOf(r)===-1}}throw c.errors.Error("E4003",i)};return function(e){return r.isFunction(e)?e:u.isGroupCriterion(e)?i(e):u.isUnaryOperation(e)?n(e):d(e)}}(),v=p.inherit({ctor:function(e,t){this.callBase(e),this.criteria=m(t)},next:function(){for(;this.iter.next();)if(this.criteria(this.current()))return!0;return!1}}),y=d.inherit({ctor:function(e,t){this.iter=e,this.getter=t},next:function(){return this._ensureGrouped(),this.groupedIter.next()},current:function(){return this._ensureGrouped(),this.groupedIter.current()},reset:function(){delete this.groupedIter},countable:function(){return!!this.groupedIter},count:function(){return this.groupedIter.count()},_ensureGrouped:function(){if(!this.groupedIter){var e={},t=[],n=this.iter,i=a(this.getter);for(n.reset();n.next();){var r=n.current(),s=i(r);s in e?e[s].push(r):(e[s]=[r],t.push(s))}this.groupedIter=new h(o.map(t,function(t){return{key:t,items:e[t]}}))}}}),b=p.inherit({ctor:function(e,t){this.callBase(e),this.getter=a(t)},current:function(){return this.getter(this.callBase())},countable:function(){return this.iter.countable()},count:function(){return this.iter.count()}}),x=p.inherit({ctor:function(e,t,n){this.callBase(e),this.skip=Math.max(0,t),this.take=Math.max(0,n),this.pos=0},next:function(){if(this.pos>=this.skip+this.take)return!1;for(;this.pos<this.skip&&this.iter.next();)this.pos++;return this.pos++,this.iter.next()},reset:function(){this.callBase(),this.pos=0},countable:function(){return this.iter.countable()},count:function(){return Math.min(this.iter.count()-this.skip,this.take)}}),S=function e(t,n){n=n||{},t instanceof d||(t=new h(t));var i=function(e){var t=n.errorHandler;t&&t(e),c._errorHandler(e)},o=function(e){var n,r=(new l).fail(i),o=e.step,a=e.finalize;try{t.reset(),n="seed"in e?e.seed:t.next()?t.current():NaN;for(var s=n;t.next();)s=o(s,t.current());r.resolve(a?a(s):s)}catch(e){r.reject(e)}return r.promise()},s=function(e,t,n){return o(arguments.length<2?{step:arguments[0]}:{seed:e,step:t,finalize:n})},p=function(e){return o(u.aggregators[e])},f=function(e){return r.isFunction(e)||Array.isArray(e)||(e=[].slice.call(arguments)),m(new b(t,e))},g=function(e){return f(a(e))},m=function(t){return e(t,n)};return{toArray:function(){return t.toArray()},enumerate:function(){var e=(new l).fail(i);try{e.resolve(t.toArray())}catch(t){e.reject(t)}return e.promise()},sortBy:function(e,n,i){return m(new _(t,e,n,i))},thenBy:function(e,n,i){if(t instanceof _)return m(t.thenBy(e,n,i));throw c.errors.Error("E4004")},filter:function(e){return Array.isArray(e)||(e=[].slice.call(arguments)),m(new v(t,e))},slice:function(e,n){return void 0===n&&(n=Number.MAX_VALUE),m(new x(t,e,n))},select:f,groupBy:function(e){return m(new y(t,e))},aggregate:s,count:function(){if(t.countable()){var e=(new l).fail(i);try{e.resolve(t.count())}catch(t){e.reject(t)}return e.promise()}return p("count")},sum:function(e){return e?g(e).sum():p("sum")},min:function(e){return e?g(e).min():p("min")},max:function(e){return e?g(e).max():p("max")},avg:function(e){return e?g(e).avg():p("avg")}}};e.exports=S},function(e,t,n){var i=n(1),r=n(3),o=n(0).extend,a=n(181),s=n(97),l=s.serializePropName,c=n(36).errors,u=n(41),d=i.isFunction,h=2,p=function(){var e,t,n=function(e){return function(t,n){return t+" "+e+" "+n}},i=function(e,t){return t=t||{},function(n,i){var r=[e,"("];return t.forceLowerCase&&(n=n.indexOf("tolower(")===-1?"tolower("+n+")":n,i=i.toLowerCase()),t.reverse?r.push(i,",",n):r.push(n,",",i),r.push(")"),r.join("")}},a={"=":n("eq"),"<>":n("ne"),">":n("gt"),">=":n("ge"),"<":n("lt"),"<=":n("le"),startswith:i("startswith",{forceLowerCase:!0}),endswith:i("endswith",{forceLowerCase:!0})},d=o({},a,{contains:i("substringof",{reverse:!0,forceLowerCase:!0}),notcontains:i("not substringof",{reverse:!0,forceLowerCase:!0})}),h=o({},a,{contains:i("contains",{forceLowerCase:!0}),notcontains:i("not contains",{forceLowerCase:!0})}),p=function(n){n=u.normalizeBinaryCriterion(n);var i=n[1],r=4===e?h:d,o=r[i.toLowerCase()];if(!o)throw c.Error("E4003",i);var a=n[0],p=n[2];return t&&t[a]&&(p=s.convertPrimitiveValue(t[a],p)),o(l(a),s.serializeValue(p,e))},f=function(e){var t=e[0],n=_(e[1]);if("!"===t)return"not ("+n+")";throw c.Error("E4003",t)},g=function(e){var t,n,i=[];return r.each(e,function(e,r){if(Array.isArray(r)){if(i.length>1&&t!==n)throw new c.Error("E4019");i.push("("+_(r)+")"),t=n,n="and"}else n=u.isConjunctiveOperator(this)?"and":"or"}),i.join(" "+t+" ")},_=function(e){return Array.isArray(e[0])?g(e):u.isUnaryOperation(e)?f(e):p(e)};return function(n,i,r){return t=r,e=i,_(n)}}(),f=function(e){function t(e){for(var t=-1,n=0;n<e.length;n++)if("select"===e[n].name){t=n;break}if(!(t<0)&&d(e[t].args[0])){var i=e[1+t];i&&"slice"===i.name&&(e[1+t]=e[t],e[t]=i)}}var n,i,r,a,c=[],u=[],f=e.expand,g=e.version||h,_=function(){return i||void 0!==r},m=function e(t){for(var n=0;n<t.length;n++){if(d(t[n]))return!0;if(Array.isArray(t[n])&&e(t[n]))return!0}return!1},v=function(){var t={};if(a||(c.length&&(t.$orderby=c.join(",")),i&&(t.$skip=i),void 0!==r&&(t.$top=r),t.$select=s.generateSelect(g,n)||void 0,t.$expand=s.generateExpand(g,f,n)||void 0),u.length){var o=u.length<2?u[0]:u,l=e&&e.fieldTypes;t.$filter=p(o,g,l)}return a&&(t.$top=0),(e.requireTotalCount||a)&&(4!==g?t.$inlinecount="allpages":t.$count="true"),t};return{optimize:function(e){t(e)},exec:function(t){return s.sendRequest(g,{url:t,params:o(v(),e&&e.params)},{beforeSend:e.beforeSend,jsonp:e.jsonp,withCredentials:e.withCredentials,countOnly:a,deserializeDates:e.deserializeDates,fieldTypes:e.fieldTypes,isPaged:isFinite(r)})},multiSort:function(e){var t;if(_())return!1;for(var n=0;n<e.length;n++){var i,r=e[n][0],o=!!e[n][1];if("string"!=typeof r)return!1;i=l(r),o&&(i+=" desc"),t=t||[],t.push(i)}c=t},slice:function(e,t){return!_()&&(i=e,void(r=t))},filter:function(e){return!_()&&(Array.isArray(e)||(e=[].slice.call(arguments)),!m(e)&&(u.length&&u.push("and"),void u.push(e)))},select:function(e){return!n&&!d(e)&&(Array.isArray(e)||(e=[].slice.call(arguments)),void(n=e))},count:function(){a=!0}}};a.odata=f,t.odata=f},function(e,t,n){var i=n(2),r=n(5),o=n(14),a=n(83),s=n(68),l=n(29),c=n(13),u=n(51),d=u.add,h=n(31),p=n(4).noop,f=n(1).isDefined,g=n(9),_=n(108),m=h.sign,v=Math.abs,y=0,b=1,x=2,S=10,w=0,C=180,k=function(e){return e&&"dxmousewheel"===e.type},T=function(){var e=a.styleProp("pointer-events"),t=l.msie&&parseInt(l.version,10)<11;return e&&!t},E=s(function(){var e="dx-gesture-cover",t="generic"===o.real().platform;if(!T()||!t)return p;var n=i("<div>").addClass(e).css("pointerEvents","none");return r.subscribeGlobal(n,"dxmousewheel",function(e){e.preventDefault()}),d(function(){n.appendTo("body")}),function(e,t){n.css("pointerEvents",e?"all":"none"),e&&n.css("cursor",t)}}),A=function(e,t){var n=E();n(e,t)},O=_.inherit({gesture:!0,configure:function(e){this.getElement().css("msTouchAction",e.immediate?"pinch-zoom":""),this.callBase(e)},allowInterruptionByMouseWheel:function(){return this._stage!==x},getDirection:function(){return this.direction},_cancel:function(){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=y},start:function(e){return g.needSkipEvent(e)?void this._cancel(e):(this._startEvent=g.createEvent(e),this._startEventData=g.eventData(e),this._stage=b,this._init(e),void this._setupImmediateTimer())},_setupImmediateTimer:function(){clearTimeout(this._immediateTimer),this._immediateAccepted=!1,this.immediate&&(this._immediateTimer=setTimeout(function(){this._immediateAccepted=!0}.bind(this),C))},move:function(e){if(this._stage===b&&this._directionConfirmed(e)){if(this._stage=x,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(e),this._adjustStartEvent(e),this._start(this._startEvent),this._stage===y)return;this._requestAccept(e),this._move(e),this._forgetAccept()}else this._stage===x&&(this._clearSelection(e),this._move(e))},_directionConfirmed:function(e){var t=this._getTouchBoundary(e),n=g.eventDelta(this._startEventData,g.eventData(e)),i=v(n.x),r=v(n.y),o=this._validateMove(t,i,r),a=this._validateMove(t,r,i),s=this.getDirection(e),l="both"===s&&(o||a),c="horizontal"===s&&o,u="vertical"===s&&a;return l||c||u||this._immediateAccepted},_validateMove:function(e,t,n){return t&&t>=e&&(!this.immediate||t>=n)},_getTouchBoundary:function(e){return this.immediate||k(e)?w:S},_adjustStartEvent:function(e){var t=this._getTouchBoundary(e),n=g.eventDelta(this._startEventData,g.eventData(e));this._startEvent.pageX+=m(n.x)*t,this._startEvent.pageY+=m(n.y)*t},_resetActiveElement:function(){"ios"===o.real().platform&&this.getElement().find(":focus").length&&c.resetActiveElement()},_toggleGestureCover:function(e){var t=this._stage===x;t&&A(e,this.getElement().css("cursor"))},_clearSelection:function(e){k(e)||g.isTouchEvent(e)||c.clearSelection()},end:function(e){this._toggleGestureCover(!1),this._stage===x?this._end(e):this._stage===b&&this._stop(e),this._stage=y},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:p,_start:p,_move:p,_stop:p,_end:p});O.initialTouchBoundary=S,O.touchBoundary=function(e){return f(e)?void(S=e):S},e.exports=O},,,function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){return void 0===e?B||M:(e=(0,S.normalizeEnum)(e),void(B=e in L?e:void 0))}function a(e,t){t=t||{},e=b(e,t.themeDefault);var n,i=t.type;return O(e)?e.slice(0):(I(e)&&(n=L[(0,S.normalizeEnum)(e)]),n||(n=L[o()]),n=n||null,i&&n?n[i].slice(0):n)}function s(e,t){var n,i={};O(t)?i.simpleSet=t.slice(0):t&&(i.simpleSet=O(t.simpleSet)?t.simpleSet.slice(0):void 0,i.indicatingSet=O(t.indicatingSet)?t.indicatingSet.slice(0):void 0,i.gradientSet=O(t.gradientSet)?t.gradientSet.slice(0):void 0,i.accentColor=t.accentColor),i.accentColor||(i.accentColor=i.simpleSet&&i.simpleSet[0]),(i.simpleSet||i.indicatingSet||i.gradientSet)&&(n=(0,S.normalizeEnum)(e),(0,w.extend)(L[n]=L[n]||{},i))}function l(e,t){return e=a(e,{themeDefault:t}),e.accentColor||e[0]}function c(e){var t=0;this.next=function(){var n=e[t++];return t===e.length&&this.reset(),n},this.reset=function(){t=0}}function u(e,t){function n(){var t=r.next();o=t?f(e,t):e.slice(0)}var i=t.useHighlight?D:0,r=new c([0,i,-i]),o=[];return{getColor:function(t){var i=o[t%e.length];return t%e.length===e.length-1&&n(),i},reset:function(){r.reset(),n()}}}function d(e){function t(e,t,n){var i=new A(e).hsl,r=i.l/100,o=n-1/n,a=r-.5*o,s=r+.5*o,l=(n-1)/2,c=t-l;return a<Math.min(.5,.9*r)&&(a=Math.min(.5,.9*r)),s>Math.max(.8,r+.15*(1-r))&&(s=Math.max(.8,r+.15*(1-r))),c<0?r-=(a-r)*c/l:r+=(s-r)*(c/l),i.l=100*r,A.prototype.fromHSL(i).toHex()}return{getColor:function(n,i){var r=e.length,o=T((i-1)/r+1),a=e[n%r];return o>1?t(a,T(n/r),o):a},reset:function(){}}}function h(e,t){function n(e,t,n,i){for(var r,o,a=Math.floor(e/t),s=e-t*a,l=n;l<n+e;)o=a,s>0&&(o+=1,s--),r=o>2?Math.floor(o/2):0,i.push(l+r),l+=o;return i.sort(function(e,t){return e-t})}function i(e,t,n){t=(n+t)%n;for(var i=0,r=t;r<2*n;r+=1){var o=(n+r)%n;if(e[o])return[e[o],i];i++}}function r(e,t){for(var n=0;n<t;n++){var r=e[n];if(!r){var o=e[n-1];if(!o)continue;var a=i(e,n,t),s=new A(a[0]);o=new A(o);for(var l=0;l<a[1];l++,n++)e[n]=o.blend(s,(l+1)/(a[1]+1)).toHex()}}return e}function o(i){if(i<=a)return e;var o=[],s=a-2,l=0,c=[];c=t.keepLastColorInEnd?n(i-2,s,1,[0,i-1]):n(i-1,a-1,1,[0]);for(var u=0;u<i;u++)c.indexOf(u)>-1&&(o[u]=e[l++]);return o=r(o,i)}var a=e.length,s=[];return{getColor:function(e,t){return t=t||a,s.length!==t&&(s=o(t)),s[e%t]},reset:function(){}}}function p(e,t,n){t=t||{};var i=(t.extensionMode||"").toLowerCase(),r=a(e,{type:t.type||"simpleSet",themeDefault:n});"alternate"===i?this._extensionStrategy=u(r,t):"extrapolate"===i?this._extensionStrategy=d(r):this._extensionStrategy=h(r,t),this.reset()}function f(e,t){var n,i=[],r=e.length;for(n=0;n<r;++n)i.push(g(e[n],t));return i}function g(e,t){var n=new A(e).alter(t),i=_(n);return(i>200||i<55)&&(n=new A(e).alter(-t/2)),n.toHex()}function _(e){return.3*e.r+.59*e.g+.11*e.b}function m(e,t,n){var i=t>0?v(a(e,{type:"gradientSet",themeDefault:n}),t):[];this.getColor=function(e){return i[e]||null}}function v(e,t){function n(e){var t=o*e,n=T(t),i=E(t);s.push(a[n].blend(a[i],t-n).toHex())}var i,r=t-1,o=e.length-1,a=[],s=[];for(i=0;i<=o;++i)a.push(new A(e[i]));if(r>0)for(i=0;i<=r;++i)n(i/r);else n(.5);return s}function y(e,t){var n=a(e,{type:"gradientSet",themeDefault:t}),i=new A(n[0]),r=new A(n[1]);this.getColor=function(e){return 0<=e&&e<=1?i.blend(r,e).toHex():null}}function b(e,t){var n=e||(void 0===B?t:o());return"default"===n&&k.default.log("W0016",'"palette"',"Default","18.1",'Use the "Office" value instead.'),n}Object.defineProperty(t,"__esModule",{value:!0}),t._DEBUG_palettes=void 0;var x;t.currentPalette=o,t.getPalette=a,t.registerPalette=s,t.getAccentColor=l,t.Palette=p,t.DiscretePalette=m,t.GradientPalette=y;var S=n(16),w=n(0),C=n(17),k=i(C),T=Math.floor,E=Math.ceil,A=n(86),O=Array.isArray,I=n(1).isString,D=50,M="material",P={simpleSet:["#5f8b95","#ba4d51","#af8a53","#955f71","#859666","#7e688c"],indicatingSet:["#a3b97c","#e1b676","#ec7f83"],gradientSet:["#5f8b95","#ba4d51"],accentColor:"#ba4d51"},L=(x={},r(x,M,{simpleSet:["#1db2f5","#f5564a","#97c95c","#ffc720","#eb3573","#a63db8"],indicatingSet:["#97c95c","#ffc720","#f5564a"],gradientSet:["#1db2f5","#97c95c"],accentColor:"#1db2f5"}),r(x,"default",P),r(x,"office",P),r(x,"harmony light",{simpleSet:["#fcb65e","#679ec5","#ad79ce","#7abd5c","#e18e92","#b6d623","#b7abea","#85dbd5"],indicatingSet:["#b6d623","#fcb65e","#e18e92"],gradientSet:["#7abd5c","#fcb65e"],accentColor:"#679ec5"}),r(x,"soft pastel",{simpleSet:["#60a69f","#78b6d9","#6682bb","#a37182","#eeba69","#90ba58","#456c68","#7565a4"],indicatingSet:["#90ba58","#eeba69","#a37182"],gradientSet:["#78b6d9","#eeba69"],accentColor:"#60a69f"}),r(x,"pastel",{simpleSet:["#bb7862","#70b3a1","#bb626a","#057d85","#ab394b","#dac599","#153459","#b1d2c6"],indicatingSet:["#70b3a1","#dac599","#bb626a"],gradientSet:["#bb7862","#70b3a1"],accentColor:"#bb7862"}),r(x,"bright",{simpleSet:["#70c92f","#f8ca00","#bd1550","#e97f02","#9d419c","#7e4452","#9ab57e","#36a3a6"],indicatingSet:["#70c92f","#f8ca00","#bd1550"],gradientSet:["#e97f02","#f8ca00"],accentColor:"#e97f02"}),r(x,"soft",{simpleSet:["#cbc87b","#9ab57e","#e55253","#7e4452","#e8c267","#565077","#6babac","#ad6082"],indicatingSet:["#9ab57e","#e8c267","#e55253"],gradientSet:["#9ab57e","#e8c267"],accentColor:"#565077"}),r(x,"ocean",{simpleSet:["#75c099","#acc371","#378a8a","#5fa26a","#064970","#38c5d2","#00a7c6","#6f84bb"],indicatingSet:["#c8e394","#7bc59d","#397c8b"],gradientSet:["#acc371","#38c5d2"],accentColor:"#378a8a"}),r(x,"vintage",{simpleSet:["#dea484","#efc59c","#cb715e","#eb9692","#a85c4c","#f2c0b5","#c96374","#dd956c"],indicatingSet:["#ffe5c6","#f4bb9d","#e57660"],gradientSet:["#efc59c","#cb715e"],accentColor:"#cb715e"}),r(x,"violet",{simpleSet:["#d1a1d1","#eeacc5","#7b5685","#7e7cad","#a13d73","#5b41ab","#e287e2","#689cc1"],indicatingSet:["#d8e2f6","#d0b2da","#d56a8a"],gradientSet:["#eeacc5","#7b5685"],accentColor:"#7b5685"}),r(x,"carmine",{simpleSet:["#fb7764","#73d47f","#fed85e","#d47683","#dde392","#757ab2"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#fb7764","#73d47f"],accentColor:"#f05b41"}),r(x,"dark moon",{simpleSet:["#4ddac1","#f4c99a","#80dd9b","#f998b3","#4aaaa0","#a5aef1"],indicatingSet:["#59d8a4","#f0ad4e","#f9517e"],gradientSet:["#4ddac1","#f4c99a"],accentColor:"#3debd3"}),r(x,"soft blue",{simpleSet:["#7ab8eb","#97da97","#facb86","#e78683","#839bda","#4db7be"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#7ab8eb","#97da97"],accentColor:"#7ab8eb"}),r(x,"dark violet",{simpleSet:["#9c63ff","#64c064","#eead51","#d2504b","#4b6bbf","#2da7b0"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#9c63ff","#64c064"],accentColor:"#9c63ff"}),r(x,"green mist",{simpleSet:["#3cbab2","#8ed962","#5b9d95","#efcc7c","#f1929f","#4d8dab"],indicatingSet:["#72d63c","#ffc852","#f74a5e"],gradientSet:["#3cbab2","#8ed962"],accentColor:"#3cbab2"}),x),B=void 0;p.prototype={constructor:p,dispose:function(){this._extensionStrategy=null},getNextColor:function(e){return this._extensionStrategy.getColor(this._currentColor++,e)},reset:function(){return this._currentColor=0,this._extensionStrategy.reset(),this}}},function(e,t,n){e.exports={events:{mouseover:"mouseover",mouseout:"mouseout",mousemove:"mousemove",touchstart:"touchstart",touchmove:"touchmove",touchend:"touchend",mousedown:"mousedown",mouseup:"mouseup",click:"click",selectSeries:"selectseries",deselectSeries:"deselectseries",selectPoint:"selectpoint",deselectPoint:"deselectpoint",showPointTooltip:"showpointtooltip",hidePointTooltip:"hidepointtooltip"},states:{hover:"hover",normal:"normal",selection:"selection",normalMark:0,hoverMark:1,selectedMark:2,applyHover:"applyHover",applySelected:"applySelected",resetItem:"resetItem"},radialLabelIndent:30,pieLabelSpacing:10,pieSeriesSpacing:4}},function(e,t,n){function i(e){return[-e,-e,e,-e,e,e,-e,e,-e,-e]}function r(e){var t=b(e);return[-t,0,0,-t,t,0,0,t,-t,0]}function o(e){var t=b(e),n=y(t/2),i=b(t/2);return[-t,-n,-n,-t,0,-i,n,-t,t,-n,i,0,t,n,n,t,0,i,-n,t,-t,n,-i,0]}function a(e){return[-e,-e,e,-e,0,e,-e,-e]}function s(e){return[-e,e,e,e,0,-e,-e,e]}var l=n(0).extend,c=n(3).each,u=n(4).noop,d=n(6),h=d.getWindow(),p=n(298),f=l,g=n(1).isDefined,_=n(16).normalizeEnum,m=Math,v=m.round,y=m.floor,b=m.ceil,x=20,S=20,w=10,C="canvas_position_default";e.exports={deleteLabel:function(){this._label.dispose(),this._label=null},_hasGraphic:function(){return this.graphic},clearVisibility:function(){var e=this,t=e.graphic;t&&t.attr("visibility")&&t.attr({visibility:null})},isVisible:function(){return this.inVisibleArea&&this.series.isVisible()},setInvisibility:function(){var e=this,t=e.graphic;t&&"hidden"!==t.attr("visibility")&&t.attr({visibility:"hidden"}),e._errorBar&&e._errorBar.attr({visibility:"hidden"}),e._label.draw(!1)},clearMarker:function(){var e=this.graphic;e&&e.attr(this._emptySettings)},_createLabel:function(){this._label=new p.Label({renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this})},_updateLabelData:function(){this._label.setData(this._getLabelFormatObject())},_updateLabelOptions:function(){!this._label&&this._createLabel(),this._label.setOptions(this._options.label)},_checkImage:function(e){return g(e)&&("string"==typeof e||g(e.url))},_fillStyle:function(){this._styles=this._options.styles},_checkSymbol:function(e,t){var n=e.symbol,i=t.symbol,r="circle"===n&&"circle"!==i||"circle"!==n&&"circle"===i,o=this._checkImage(e.image)!==this._checkImage(t.image);return!(!r&&!o)},_populatePointShape:function(e,t){switch(e){case"square":return i(t);case"polygon":return r(t);case"triangle":case"triangleDown":return a(t);case"triangleUp":return s(t);case"cross":return o(t)}},hasCoords:function(){return null!==this.x&&null!==this.y},correctValue:function(e){var t=this;t.hasValue()&&(t.value=t.properValue=t.initialValue+e,t.minValue=e)},resetCorrection:function(){this.value=this.properValue=this.initialValue,this.minValue=C},resetValue:function(){var e=this;e.hasValue()&&(e.value=e.properValue=e.initialValue=0,e.minValue=0,e._label.setDataField("value",e.value))},_getTranslates:function(e){var t=this.x,n=this.y;return e&&(this._options.rotated?t=this.defaultX:n=this.defaultY),{x:t,y:n}},_createImageMarker:function(e,t,n){var i=n.width||x,r=n.height||S;return e.image(-v(.5*i),-v(.5*r),i,r,n.url?n.url.toString():n.toString(),"center").attr({translateX:t.translateX,translateY:t.translateY,visibility:t.visibility})},_createSymbolMarker:function(e,t){
19
+ var n,i=this._options.symbol;return"circle"===i?(delete t.points,n=e.circle().attr(t)):"square"!==i&&"polygon"!==i&&"triangle"!==i&&"triangleDown"!==i&&"triangleUp"!==i&&"cross"!==i||(n=e.path([],"area").attr(t).sharp()),n},_createMarker:function(e,t,n,i){var r=this,o=r._checkImage(n)?r._createImageMarker(e,i,n):r._createSymbolMarker(e,i);return o&&o.data({"chart-data-point":r}).append(t),o},_getSymbolBBox:function(e,t,n){return{x:e-n,y:t-n,width:2*n,height:2*n}},_getImageBBox:function(e,t){var n=this._options.image,i=n.width||x,r=n.height||S;return{x:e-v(i/2),y:t-v(r/2),width:i,height:r}},_getGraphicBBox:function(){var e,t=this,n=t._options,i=t.x,r=t.y;return e=n.visible?t._checkImage(n.image)?t._getImageBBox(i,r):t._getSymbolBBox(i,r,n.styles.normal.r):{x:i,y:r,width:0,height:0}},hideInsideLabel:u,_getShiftLabelCoords:function(e){var t=this._addLabelAlignmentAndOffset(e,this._getLabelCoords(e));return this._checkLabelPosition(e,t)},_drawLabel:function(){var e=this,t=e._getCustomLabelVisibility(),n=e._label,i=e._showForZeroValues()&&e.hasValue()&&t!==!1&&(e.series.getLabelVisibility()||t);n.draw(!!i)},correctLabelPosition:function(e){var t=this,n=t._getShiftLabelCoords(e);t.hideInsideLabel(e,n)||(e.setFigureToDrawConnector(t._getLabelConnector(e.pointPosition)),e.shift(v(n.x),v(n.y)))},_showForZeroValues:function(){return!0},_getLabelConnector:function(e){var t=this._getGraphicBBox(e),n=t.width/2,i=t.height/2;return{x:t.x+n,y:t.y+i,r:this._options.visible?Math.max(n,i):0}},_getPositionFromLocation:function(){return{x:this.x,y:this.y}},_isPointInVisibleArea:function(e,t){return e.minX<=t.x+t.width&&e.maxX>=t.x&&e.minY<=t.y+t.height&&e.maxY>=t.y},_checkLabelPosition:function(e,t){var n=this,i=n._getVisibleArea(),r=e.getBoundingRect(),o=n._getGraphicBBox(e.pointPosition),a=w;return n._isPointInVisibleArea(i,o)&&(n._options.rotated?(i.minX>t.x&&(t.x=o.x+o.width+a),i.maxX<t.x+r.width&&(t.x=o.x-a-r.width),i.minY>t.y&&(t.y=i.minY),i.maxY<t.y+r.height&&(t.y=i.maxY-r.height)):(i.minX>t.x&&(t.x=i.minX),i.maxX<t.x+r.width&&(t.x=i.maxX-r.width),i.minY>t.y&&(t.y=o.y+o.height+a),i.maxY<t.y+r.height&&(t.y=o.y-r.height-a))),t},_addLabelAlignmentAndOffset:function(e,t){var n=e.getBoundingRect(),i=e.getLayoutOptions();return this._options.rotated||("left"===i.alignment?t.x+=n.width/2:"right"===i.alignment&&(t.x-=n.width/2)),t.x+=i.horizontalOffset,t.y+=i.verticalOffset,t},_getLabelCoords:function(e){return this._getLabelCoordOfPosition(e,this._getLabelPosition(e.pointPosition))},_getLabelCoordOfPosition:function(e,t){var n=this,i=e.getBoundingRect(),r=n._getGraphicBBox(e.pointPosition),o=w,a=r.height/2-i.height/2,s=r.width/2-i.width/2,l=r.x,c=r.y;switch(t){case"left":l-=i.width+o,c+=a;break;case"right":l+=r.width+o,c+=a;break;case"top":l+=s,c-=i.height+o;break;case"bottom":l+=s,c+=r.height+o;break;case"inside":l+=s,c+=a}return{x:l,y:c}},_drawMarker:function(e,t,n){var i=this,r=i._options,o=i._getTranslates(n),a=i._getStyle();i.graphic=i._createMarker(e,t,r.image,f({translateX:o.x,translateY:o.y,points:i._populatePointShape(r.symbol,a.r)},a))},_getErrorBarSettings:function(){return{visibility:"visible"}},_drawErrorBar:function(e,t){if(this._options.errorBars){var n,i=this,r=i._options,o=r.errorBars,a=[],s=i._errorBarPos,l=i._highErrorCoord,u=i._lowErrorCoord,d=_(o.displayMode),h="high"===d,p="low"===d,f=y(parseInt(o.edgeLength)/2),m=(h||!g(u))&&g(l)&&!p,v=(p||!g(l))&&g(u)&&!h;m&&(u=i._baseErrorBarPos),v&&(l=i._baseErrorBarPos),"none"!==d&&g(l)&&g(u)&&g(s)?(!v&&a.push([s-f,l,s+f,l]),a.push([s,l,s,u]),!m&&a.push([s+f,u,s-f,u]),r.rotated&&c(a,function(e,t){t.reverse()}),n=i._getErrorBarSettings(o),i._errorBar?(n.points=a,i._errorBar.attr(n)):i._errorBar=e.path(a,"line").attr(n).append(t)):i._errorBar&&i._errorBar.attr({visibility:"hidden"})}},getTooltipParams:function(){var e=this,t=e.graphic;return{x:e.x,y:e.y,offset:t?t.getBBox().height/2:0}},setPercentValue:function(e,t,n,i){var r=this,o=r.value/e||0,a=r.minValue/e||0,s=o-a;r._label.setDataField("percent",s),r._label.setDataField("total",t),r.series.isFullStackedSeries()&&r.hasValue()&&(r.leftHole&&(r.leftHole/=e-n,r.minLeftHole/=e-n),r.rightHole&&(r.rightHole/=e-i,r.minRightHole/=e-i),r.value=r.properValue=o,r.minValue=a?a:r.minValue)},_storeTrackerR:function(){var e,t=this,n=h.navigator,i=t._options.styles.normal.r;return e=d.hasProperty("ontouchstart")||n.msPointerEnabled&&n.msMaxTouchPoints||n.pointerEnabled&&n.maxTouchPoints?20:6,t._options.trackerR=i<e?e:i,t._options.trackerR},_translateErrorBars:function(){var e=this,t=e._options,n=t.rotated,i=t.errorBars,r=e._getValTranslator();i&&(g(e.lowError)&&(e._lowErrorCoord=r.translate(e.lowError)),g(e.highError)&&(e._highErrorCoord=r.translate(e.highError)),e._errorBarPos=y(n?e.vy:e.vx),e._baseErrorBarPos="stdDeviation"===i.type?e._lowErrorCoord+(e._highErrorCoord-e._lowErrorCoord)/2:n?e.vx:e.vy)},_translate:function(){var e=this,t=e._getValTranslator(),n=e._getArgTranslator();e._options.rotated?(e.vx=e.x=t.translate(e.value),e.vy=e.y=n.translate(e.argument),e.minX=t.translate(e.minValue),e.defaultX=t.translate(C)):(e.vy=e.y=t.translate(e.value),e.vx=e.x=n.translate(e.argument),e.minY=t.translate(e.minValue),e.defaultY=t.translate(C)),e._translateErrorBars(),e._calculateVisibility(e.x,e.y)},_updateData:function(e){var t=this;t.value=t.properValue=t.initialValue=t.originalValue=e.value,t.minValue=t.initialMinValue=t.originalMinValue=g(e.minValue)?e.minValue:C},_getImageSettings:function(e){return{href:e.url||e.toString(),width:e.width||x,height:e.height||S}},getCrosshairData:function(){var e=this,t=e._options.rotated,n=e.properValue,i=e.argument;return{x:e.vx,y:e.vy,xValue:t?n:i,yValue:t?i:n,axis:e.series.axis}},getPointRadius:function(){var e,t=this._getStyle(),n=this._options,i=t.r,r=n.symbol,o="square"===r,a="triangle"===r||"triangleDown"===r||"triangleUp"===r;return n.visible&&!n.image&&i?(e=t["stroke-width"]/2,(o||a?1.4*i:i)+e):0},_updateMarker:function(e,t){var n,i=this,r=i._options,o=r.image,a=i.isVisible()?{}:{visibility:"hidden"};n=i._checkImage(o)?f({},{visibility:t.visibility},a,i._getImageSettings(o)):f({},t,a,{points:i._populatePointShape(r.symbol,t.r)}),e||(n.translateX=i.x,n.translateY=i.y),i.graphic.attr(n).sharp()},_getLabelFormatObject:function(){var e=this;return{argument:e.initialArgument,value:e.initialValue,originalArgument:e.originalArgument,originalValue:e.originalValue,seriesName:e.series.name,lowErrorValue:e.lowError,highErrorValue:e.highError,point:e}},_getLabelPosition:function(){var e=this._options.rotated;return this.initialValue>0?e?"right":"top":e?"left":"bottom"},_getFormatObject:function(e){var t=this,n=t._label.getData();return f({},n,{argumentText:e.formatValue(t.initialArgument,"argument"),valueText:e.formatValue(t.initialValue)},g(n.percent)?{percentText:e.formatValue(n.percent,"percent")}:{},g(n.total)?{totalText:e.formatValue(n.total)}:{})},getMarkerVisibility:function(){return this._options.visible},coordsIn:function(e,t){var n=this._storeTrackerR();return e>=this.x-n&&e<=this.x+n&&t>=this.y-n&&t<=this.y+n},getMinValue:function(){var e=this._options.errorBars;if(e){var t=e.displayMode,n="high"===t?this.value:this.lowError,i="low"===t?this.value:this.highError;return n<i?n:i}return this.value},getMaxValue:function(){var e=this._options.errorBars;if(e){var t=e.displayMode,n="high"===t?this.value:this.lowError,i="low"===t?this.value:this.highError;return n>i?n:i}return this.value}}},function(e,t,n){var i,r=n(1).isFunction,o=n(16).normalizeEnum,a=Math.round,s={};t.getAlgorithm=function(e){return s[o(e)]||r(e)&&e||i},t.addAlgorithm=function(e,t){s[e]=t},t.setDefaultAlgorithm=function(e){i=s[e]};var l={};l[-1]=[2,0],l[1]=[0,2];var c=function(e){return e[2]-e[0]<e[3]-e[1]?0:1};t.getStaticSideIndex=c,t.buildSidesData=function(e,t,n){var i=void 0!==n?n:c(e),r=1-i,o=t[i],a=t[r],s=l[o],u=l[a];return{staticSide:e[2+i]-e[i],variedSide:e[2+r]-e[r],static1:i+s[0],static2:i+s[1],varied1:r+u[0],varied2:r+u[1],staticDir:o,variedDir:a}},t.calculateRectangles=function(e,t,n,i,r){var o,s,l,c,u=[0,0,0,0],d=i.static1,h=i.static2,p=n[d],f=i.staticDir,g=i.staticSide,_=r.sum;for(u[i.varied1]=n[i.varied1],u[i.varied2]=n[i.varied1]+i.variedDir*r.side,o=t,s=t+r.count;o<s;++o)l=u.slice(),l[d]=p,c=a(g*e[o].value/_)||0,_-=e[o].value,g-=c,p+=f*c,l[h]=p,e[o].rect=l;n[i.varied1]=u[i.varied2]}},function(e,t,n){function i(e){return function(t){return t.isNode()?void 0:e(t)}}function r(e){return function(t){var n=!t.isNode()&&t.parent;return n?n._groupColor=n._groupColor||e(n):void 0}}function o(e){return e.value}function a(e){return function(t){return Number(t.data[e])}}var s,l=n(16).normalizeEnum,c=n(4).noop,u={};t.getColorizer=function(e,t,n){var o=l(e.type||s),a=u[o]&&u[o](e,t,n);return a?(e.colorizeGroups?r:i)(a):c},t.addColorizer=function(e,t){u[e]=t},t.setDefaultColorizer=function(e){s=e},t.createColorCodeGetter=function(e){return e.colorCodeField?a(e.colorCodeField):o}},function(e,t,n){var i=n(6).getWindow(),r=function(){var e;try{e=i.sessionStorage}catch(e){}return e};t.sessionStorage=r},function(e,t,n){var i=n(2),r=n(5),o=n(10),a=n(11).inArray,s=n(3).each,l=n(9),c=o.inherit({_keydown:l.addNamespace("keydown","KeyboardProcessor"),codes:{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"},ctor:function(e){var t=this;e=e||{},e.element&&(this._element=i(e.element)),e.focusTarget&&(this._focusTarget=e.focusTarget),this._handler=e.handler,this._context=e.context,this._childProcessors=[],this._element&&(this._processFunction=function(e){t.process(e)},r.on(this._element,this._keydown,this._processFunction))},dispose:function(){this._element&&r.off(this._element,this._keydown,this._processFunction),this._element=void 0,this._handler=void 0,this._context=void 0,this._childProcessors=void 0},clearChildren:function(){this._childProcessors=[]},push:function(e){return this._childProcessors||this.clearChildren(),this._childProcessors.push(e),e},attachChildProcessor:function(){var e=new c;return this._childProcessors.push(e),e},reinitialize:function(e,t){return this._context=t,this._handler=e,this},process:function(e){if(this._focusTarget&&this._focusTarget!==e.target&&a(e.target,this._focusTarget)<0)return!1;var t={key:this.codes[e.which]||e.which,ctrl:e.ctrlKey,shift:e.shiftKey,alt:e.altKey,originalEvent:e},n=this._handler&&this._handler.call(this._context,t);n&&this._childProcessors&&s(this._childProcessors,function(t,n){n.process(e)})}});e.exports=c},function(e,t,n){var i={_findGroup:function(){var e,t=this.option("validationGroup");return t||(e=this.$element().parents(".dx-validationgroup").first(),t=e.length?e.dxValidationGroup("instance"):this._modelByElement(this.$element())),t}};e.exports=i},function(e,t,n){var i=n(5),r=n(35),o=n(10),a=n(14),s=n(61),l=n(9),c=n(25),u="dxHoverStart",d="dxhoverstart",h=l.addNamespace(c.enter,u),p="dxHoverEnd",f="dxhoverend",g=l.addNamespace(c.leave,p),_=o.inherit({noBubble:!0,ctor:function(){this._handlerArrayKeyPath=this._eventNamespace+"_HandlerStore"},setup:function(e){r.data(e,this._handlerArrayKeyPath,{})},add:function(e,t){var n=this,o=function(e){n._handler(e)};i.on(e,this._originalEventName,t.selector,o),r.data(e,this._handlerArrayKeyPath)[t.guid]=o},_handler:function(e){l.isTouchEvent(e)||a.isSimulator()||l.fireEvent({type:this._eventName,originalEvent:e,delegateTarget:e.delegateTarget})},remove:function(e,t){var n=r.data(e,this._handlerArrayKeyPath)[t.guid];i.off(e,this._originalEventName,t.selector,n)},teardown:function(e){r.removeData(e,this._handlerArrayKeyPath)}}),m=_.inherit({ctor:function(){this._eventNamespace=u,this._eventName=d,this._originalEventName=h,this.callBase()},_handler:function(e){var t=e.pointers||[];t.length||this.callBase(e)}}),v=_.inherit({ctor:function(){this._eventNamespace=p,this._eventName=f,this._originalEventName=g,this.callBase()}});s(d,new m),s(f,new v),t.start=d,t.end=f},function(e,t,n){function i(e){return e&&_(e.then)}function r(e){return(new S).resolve(e).promise()}function o(e,t){if(!_(t))throw m.Error("E4011",e)}function a(e){throw m.Error("E4012",e)}function s(e){function t(e){var t=e[0],n=e[1];return t&&t.getResponseHeader?g.errorMessageFromXhr(t,n):null}return function(n){var i;i=n instanceof Error?n:new Error(t(arguments)||n&&String(n)||"Unknown error"),i.message!==g.XHR_ERROR_UNLOAD&&e.reject(i)}}function l(e,t){var n,s=e._loadFunc;return o(T,s),n=s.apply(e,[t]),Array.isArray(n)?n=r(n):null===n||void 0===n?n=r([]):i(n)||a(T),C(n)}function c(e,t){var n,o=e._totalCountFunc;if(!_(o))throw m.Error("E4021");return n=o.apply(e,[t]),i(n)||(n=Number(n),isFinite(n)||a(k),n=r(n)),C(n)}function u(e,t,n){var a,s=e._byKeyFunc;return o(E,s),a=s.apply(e,[t,n]),i(a)||(a=r(a)),C(a)}function d(e,t,n,i){t.__rawData?i(t.__rawData):l(t,n).done(function(e){t._cacheRawData&&(t.__rawData=e),i(e)}).fail(s(e))}function h(e,t,n,i){n=n||{};var r={};"userData"in n&&(r.userData=n.userData),d(e,t,r,function(r){var o,a,s,l,c=y(r,{errorHandler:t._errorHandler}),u=[];i||(o=b(c,n),o===c?s=r.slice(0):u.push(o.enumerate().done(function(e){s=e}))),(n.requireTotalCount||i)&&(a=b(c,n,!0),a===c?l=r.length:u.push(a.count().done(function(e){l=e}))),w.apply(f,u).done(function(){i?e.resolve(l):n.requireTotalCount?e.resolve(s,{totalCount:l}):e.resolve(s)}).fail(function(t){e.reject(t)})})}function p(e,t,n){d(e,t,{},function(i){for(var r,o=t.key(),a=0,s=i.length;a<s;a++)if(r=i[a],g.keysEqual(o,t.keyOf(i[a]),n))return void e.resolve(r);e.reject(m.Error("E4009"))})}var f=n(2),g=n(41),_=n(1).isFunction,m=n(36).errors,v=n(91),y=n(144),b=n(80).queryByOptions,x=n(7),S=x.Deferred,w=x.when,C=x.fromPromise,k="totalCount",T="load",E="byKey",A="insert",O="update",I="remove",D=v.inherit({ctor:function(e){e=e||{},this.callBase(e),this._useDefaultSearch=!!e.useDefaultSearch||"raw"===e.loadMode,this._loadMode=e.loadMode,this._cacheRawData=e.cacheRawData!==!1,this._loadFunc=e[T],this._totalCountFunc=e[k],this._byKeyFunc=e[E],this._insertFunc=e[A],this._updateFunc=e[O],this._removeFunc=e[I]},createQuery:function(){throw m.Error("E4010")},clearRawDataCache:function(){delete this.__rawData},_totalCountImpl:function(e){var t=new S;return"raw"!==this._loadMode||this._totalCountFunc?(c(this,e).done(function(e){t.resolve(Number(e))}).fail(s(t)),t=this._addFailHandlers(t)):h(t,this,e,!0),t.promise()},_loadImpl:function(e){var t=new S;return"raw"===this._loadMode?h(t,this,e,!1):(l(this,e).done(function(e,n){t.resolve(e,n)}).fail(s(t)),t=this._addFailHandlers(t)),t.promise()},_byKeyImpl:function(e,t){var n=new S;return this._byKeyViaLoad()?(this._requireKey(),p(n,this,e)):u(this,e,t).done(function(e){n.resolve(e)}).fail(s(n)),n.promise()},_byKeyViaLoad:function(){return"raw"===this._loadMode&&!this._byKeyFunc},_insertImpl:function(e){var t,n=this._insertFunc,a=new S;return o(A,n),t=n.apply(this,[e]),i(t)||(t=r(t)),C(t).done(function(t){a.resolve(e,t)}).fail(s(a)),a.promise()},_updateImpl:function(e,t){var n,a=this._updateFunc,l=new S;return o(O,a),n=a.apply(this,[e,t]),i(n)||(n=r()),C(n).done(function(){l.resolve(e,t)}).fail(s(l)),l.promise()},_removeImpl:function(e){var t,n=this._removeFunc,a=new S;return o(I,n),t=n.apply(this,[e]),i(t)||(t=r()),C(t).done(function(){a.resolve(e)}).fail(s(a)),a.promise()}});e.exports=D},function(e,t,n){var i=n(2),r=n(5),o=n(40),a=n(14),s=n(10),l=n(61),c=n(9),u=n(90),d="dxContexMenu",h=c.addNamespace("contextmenu",d),p=c.addNamespace(u.name,d),f="dxcontextmenu",g=s.inherit({setup:function(e){var t=i(e);r.on(t,h,this._contextMenuHandler.bind(this)),(o.touch||a.isSimulator())&&r.on(t,p,this._holdHandler.bind(this))},_holdHandler:function(e){c.isMouseEvent(e)&&!a.isSimulator()||this._fireContextMenu(e)},_contextMenuHandler:function(e){this._fireContextMenu(e)},_fireContextMenu:function(e){return c.fireEvent({type:f,originalEvent:e})},teardown:function(e){r.off(e,"."+d)}});l(f,new g),t.name=f},,,,,function(e,t,n){function i(){this.reset()}function r(e,t){return e!==t?d({},e,t):d({},e)}function o(e,t){return e!==t?e.concat(t):e.slice()}function a(e){e._totalChangesOrder=e._optionChangesOrder.concat(e._layoutChangesOrder,e._customChangesOrder)}function s(e){var t=this.prototype,n=e.code;t["_change_"+n]=e.handler,e.isThemeDependent&&t._themeDependentChanges.push(n),e.option&&(t._optionChangesMap[e.option]=n),(e.isOptionChange?t._optionChangesOrder:t._customChangesOrder).push(n),a(t)}function l(){function e(){var e,n,i=t.length;for(e=0;e<i;++e)n=t[e].apply(this,arguments);return n}var t=[];return e.add=function(e){t.push(e)},e}function c(e,t,n){var i=e[t];i.add?i.add(n):(i=l(),i.add(e[t]),i.add(n)),e[t]=i}function u(e){var t=this.prototype;t._plugins.push(e),e.members&&d(this.prototype,e.members),e.customize&&e.customize(this),e.extenders&&Object.keys(e.extenders).forEach(function(n){var i=e.extenders[n];c(t,n,i)},this)}var d=n(0).extend,h=n(6),p=n(4).noop,f=!h.hasWindow();i.prototype={constructor:i,add:function(e){var t,n=e.length,i=this._flags;for(t=0;t<n;++t)i[e[t]]=1;this._k+=n},has:function(e){return this._flags[e]>0},count:function(){return this._k},reset:function(){this._flags={},this._k=0}},t.replaceInherit=f?function(e){var t=e.inherit;e.inherit=function(){var e=t.apply(this,arguments),n=e.prototype;return["_plugins","_eventsMap","_initialChanges","_themeDependentChanges","_optionChangesMap","_optionChangesOrder","_layoutChangesOrder","_customChangesOrder","_totalChangesOrder"].forEach(function(e){n[e]={}}),e.addPlugin=p,e},e.addChange=p,e.addPlugin=p}:function(e){var t=e.inherit;e.inherit=function(){var e=this.prototype,n=e._plugins,i=e._eventsMap,s=e._initialChanges,l=e._themeDependentChanges,c=e._optionChangesMap,d=e._optionChangesOrder,h=e._layoutChangesOrder,p=e._customChangesOrder,f=t.apply(this,arguments);return e=f.prototype,e._plugins=o(n,e._plugins),e._eventsMap=r(i,e._eventsMap),e._initialChanges=o(s,e._initialChanges),e._themeDependentChanges=o(l,e._themeDependentChanges),e._optionChangesMap=r(c,e._optionChangesMap),e._optionChangesOrder=o(d,e._optionChangesOrder),e._layoutChangesOrder=o(h,e._layoutChangesOrder),e._customChangesOrder=o(p,e._customChangesOrder),a(e),f.addPlugin=u,f},e.prototype._plugins=[],e.addChange=s,e.addPlugin=u},t.changes=function(){return new i},t.expand=c},function(e,t,n){var i=n(0).extend,r=n(3).each,o=n(133),a=n(199).chart.area,s=o.chart,l=o.polar,c=i,u=r;t.chart={},t.polar={};var d={_createLegendState:function(e,t){return{fill:e.color||t,hatching:e.hatching}},_parsePointStyle:function(e,t,n){var i=e.color||t,r=s._parsePointStyle.call(this,e,i,n);return r.fill=i,r.hatching=e.hatching,r.dashStyle=e.border&&e.border.dashStyle||"solid",delete r.r,r},_applyMarkerClipRect:function(e){e["clip-path"]=null},_setGroupsSettings:function(e,t){var n=this,i={};s._setGroupsSettings.apply(n,arguments),e&&t?i=this._getAffineCoordOptions():e||(i={scaleX:1,scaleY:1,translateX:0,translateY:0}),n._markersGroup.attr(i)},_drawPoint:function(e){e.hasAnimation=e.hasAnimation&&!e.firstDrawing,e.firstDrawing=!1,s._drawPoint.call(this,e)},_getMainColor:function(){return this._options.mainSeriesColor},_createPointStyles:function(e){var t=this,n=e.color||t._getMainColor();return{normal:t._parsePointStyle(e,n,n),hover:t._parsePointStyle(e.hoverStyle||{},n,n),selection:t._parsePointStyle(e.selectionStyle||{},n,n)}},_updatePointsVisibility:function(){var e=this._options.visible;r(this._points,function(t,n){n._options.visible=e})},_getOptionsForPoint:function(){return this._options},_animate:function(e){var t=this,n=function(){t._animateComplete()},i=function(e,t){var n=e.length-1;u(e||[],function(e,i){i.animate(e===n?t:void 0,i.getMarkerCoords())})};t._animatePoints(e,n,i)},getValueRangeInitialValue:a.getValueRangeInitialValue,_patchMarginOptions:function(e){return e.checkInterval=!0,e},_defaultAggregator:"sum"};t.chart.bar=c({},s,d,{_getAffineCoordOptions:function(){var e=this._options.rotated,t=e?"X":"Y",n={scaleX:e?.001:1,scaleY:e?1:.001};return n["translate"+t]=this.getValueAxis().getTranslator().translate("canvas_position_default"),n},_animatePoints:function(e,t,n){var i=this;i._markersGroup.animate({scaleX:1,scaleY:1,translateY:0,translateX:0},void 0,t),e||n(i._drawnPoints,t)}}),t.polar.bar=c({},l,d,{_animatePoints:function(e,t,n){n(this._drawnPoints,t)},_setGroupsSettings:s._setGroupsSettings,_drawPoint:function(e,t,n){s._drawPoint.call(this,e,t,n)},_parsePointStyle:function(e){var t=d._parsePointStyle.apply(this,arguments);return t.opacity=e.opacity,t},_createGroups:s._createGroups,_setMarkerGroupSettings:function(){var e,t=this,n=t._createPointStyles(t._getMarkerGroupOptions()).normal;n.class="dxc-markers",t._applyMarkerClipRect(n),e=c({},n),delete e.opacity,t._markersGroup.attr(e)},_createLegendState:a._createLegendState})},function(e,t,n){function i(e){return!!(e&&String(e).length>0)}function r(e,t,n){e.attr({text:t}).applyEllipsis(n)&&e.setTitle(t)}function o(e){return e>=0?c(e):g}function a(e){var t;return e>=0?t={left:c(e),top:c(e),right:c(e),bottom:c(e)}:(e=e||{},t={left:o(e.left),top:o(e.top),right:o(e.right),bottom:o(e.bottom)}),t}function s(e){this._params=e,this._group=e.renderer.g().attr({"class":e.cssClass}).linkOn(e.renderer.root,{name:"title",after:"peripheral"}),this._hasText=!1}function l(e){var t=u(e)?{text:e}:e||{};return t.subtitle=u(t.subtitle)?{text:t.subtitle}:t.subtitle||{},t}var c=Number,u=n(1).isString,d=n(0).extend,h=n(16).patchFontOptions,p=n(16).enumParser(["left","center","right"]),f=n(16).enumParser(["top","bottom"]),g=10,_=3;d(s.prototype,n(250).LayoutElement.prototype,{dispose:function(){var e=this;e._group.linkRemove(),e._group.linkOff(),e._titleElement&&(e._clipRect.dispose(),e._titleElement=e._subtitleElement=e._clipRect=null),e._params=e._group=e._options=null},_updateOptions:function(e){this._options=e,this._options.horizontalAlignment=p(e.horizontalAlignment,"center"),this._options.verticalAlignment=f(e.verticalAlignment,"top"),this._options.margin=a(e.margin)},_updateStructure:function(){var e=this,t=e._params.renderer,n=e._group,r={align:e._options.horizontalAlignment};e._titleElement||(e._titleElement=t.text().attr(r).append(n),e._subtitleElement=t.text().attr(r),e._clipRect=t.clipRect(),n.attr({"clip-path":e._clipRect.id})),n.linkAppend(),i(e._options.subtitle.text)?e._subtitleElement.append(n):e._subtitleElement.remove()},_updateTexts:function(){var e,t,n=this,r=n._options,o=r.subtitle,a=n._titleElement,s=n._subtitleElement,l="A";a.attr({text:l,y:0}).css(h(r.font)),e=a.getBBox(),n._titleTextY=e.height+e.y,a.attr({text:r.text}),e=a.getBBox(),t=-e.y,a.attr({y:t}),i(o.text)&&(t+=e.height+e.y,s.attr({text:o.text,y:0}).css(h(o.font)),t+=-s.getBBox().y-n._titleTextY+_,s.attr({y:t}))},_updateBoundingRectAlignment:function(){var e=this._boundingRect,t=this._options;e.verticalAlignment=t.verticalAlignment,e.horizontalAlignment=t.horizontalAlignment,e.cutLayoutSide=t.verticalAlignment,e.cutSide="vertical",e.position={horizontal:t.horizontalAlignment,vertical:t.verticalAlignment}},update:function(e){var t=this,n=i(e.text),r=n||n!==t._hasText;return n?(t._updateOptions(e),t._updateStructure(),t._updateTexts(),t._boundingRect={},t._updateBoundingRect(),t._updateBoundingRectAlignment()):(t._group.linkRemove(),t._boundingRect=null),t._hasText=n,r},draw:function(e,t){var n,i=this;return i._group.linkAppend(),i._correctTitleLength(e),n=i.getLayoutOptions(),n.height>t&&this.freeSpace(),i},probeDraw:function(e,t){return this.draw(e,t),this},_correctTitleLength:function(e){var t=this,n=t._options,i=n.margin,o=e-i.left-i.right;r(t._titleElement,n.text,o),t._subtitleElement&&r(t._subtitleElement,n.subtitle.text,o),t._updateBoundingRect()},getLayoutOptions:function(){return this._boundingRect||null},shift:function(e,t){var n=this,i=n.getLayoutOptions();return n._group.move(e-i.x,t-i.y),n._setClipRectSettings(),n},_setClipRectSettings:function(){var e=this.getLayoutOptions();this._clipRect.attr({x:e.x,y:e.y,width:e.width,height:e.height})},_updateBoundingRect:function(){var e,t=this,n=t._options,i=n.margin,r=t._boundingRect;e=t._group.getBBox(),e.height+=i.top+i.bottom-t._titleTextY,e.width+=i.left+i.right,e.x-=i.left,e.y+=t._titleTextY-i.top,n.placeholderSize>0&&(e.height=n.placeholderSize),r.height=e.height,r.width=e.width,r.x=e.x,r.y=e.y},layoutOptions:function(){return this._boundingRect&&{horizontalAlignment:this._boundingRect.horizontalAlignment,verticalAlignment:this._boundingRect.verticalAlignment,priority:0}},measure:function(e){return this.draw(e[0],e[1]),[this._boundingRect.width,this._boundingRect.height]},move:function(e){var t=this._boundingRect;(e[2]-e[0]<t.width||e[3]-e[1]<t.height)&&this.draw(e[2]-e[0],e[3]-e[1]),this.shift(Math.round(e[0]),Math.round(e[1]))},freeSpace:function(){var e=this;e._params.incidentOccurred("W2103"),e._group.linkRemove(),e._boundingRect.width=e._boundingRect.height=0}}),t.Title=s,t.plugin={name:"title",init:function(){var e=this;e._title=new t.Title({renderer:e._renderer,cssClass:e._rootClassPrefix+"-title",incidentOccurred:e._incidentOccurred}),e._layout.add(e._title)},dispose:function(){this._title.dispose(),this._title=null},members:{_getTitleOptions:function(){return d(!0,{},this._themeManager.theme("title"),l(this.option("title")))}},customize:function(e){e.addChange({code:"TITLE",handler:function(){this._title.update(this._getTitleOptions())&&this._change(["LAYOUT"])},isThemeDependent:!0,option:"title",isOptionChange:!0})}}},function(e,t,n){function i(e){e.css({left:"-9999px"}).detach()}function r(e,t){var n=e;switch(t){case"argument":n={format:e.argumentFormat,precision:e.argumentPrecision};break;case"percent":n={format:{type:"percent",precision:e.format&&e.format.percentPrecision||e.percentPrecision}}}return n}function o(e){var t,n,i=this;i._eventTrigger=e.eventTrigger,i._widgetRoot=e.widgetRoot,i._wrapper=u("<div>").css({position:"absolute",overflow:"visible",height:"1px",pointerEvents:"none"}).addClass(e.cssClass),i._renderer=t=new d.Renderer({pathModified:e.pathModified,container:i._wrapper[0]}),n=t.root,n.attr({"pointer-events":"none"}),i._cloud=t.path([],"area").sharp().append(n),i._shadow=t.shadowFilter(),i._textGroup=t.g().attr({align:"center"}).append(n),i._text=t.text(void 0,0,0).append(i._textGroup),i._textGroupHtml=u("<div>").css({position:"absolute",width:0,padding:0,margin:0,border:"0px solid transparent"}).appendTo(i._wrapper),i._textHtml=u("<div>").css({position:"relative",display:"inline-block",padding:0,margin:0,border:"0px solid transparent"}).appendTo(i._textGroupHtml)}var a=n(12),s=n(6),l=n(37),c=s.getWindow(),u=n(2),d=n(198),h=n(1),p=n(0).extend,f=10,g=n(16),_=n(251),m=Math.ceil,v=Math.max,y=Math.min;o.prototype={constructor:o,dispose:function(){this._wrapper.remove(),this._renderer.dispose(),this._options=this._widgetRoot=null},_getContainer:function(){var e=this._options,t=u(this._widgetRoot).closest(e.container);return 0===t.length&&(t=u(e.container)),(t.length?t:u("body")).get(0)},setOptions:function(e){e=e||{};var t=this,n=t._cloudSettings={opacity:e.opacity,filter:t._shadow.id,"stroke-width":null,stroke:null},i=e.border||{};return t._shadowSettings=p({x:"-50%",y:"-50%",width:"200%",height:"200%"},e.shadow),t._options=e,i.visible&&p(n,{"stroke-width":i.width,stroke:i.color,"stroke-opacity":i.opacity,dashStyle:i.dashStyle}),t._textFontStyles=g.patchFontOptions(e.font),t._textFontStyles.color=e.font.color,t._wrapper.css({zIndex:e.zIndex}),t._customizeTooltip=h.isFunction(e.customizeTooltip)?e.customizeTooltip:null,t},setRendererOptions:function(e){return this._renderer.setOptions(e),this._textGroupHtml.css({direction:e.rtl?"rtl":"ltr"}),this},render:function(){var e=this;i(e._wrapper),e._cloud.attr(e._cloudSettings),e._shadow.attr(e._shadowSettings);var t={};for(var n in e._textFontStyles)t[l.camelize(n)]=e._textFontStyles[n];return e._textGroupHtml.css(t),e._textGroup.css(e._textFontStyles),e._text.css(e._textFontStyles),e._eventData=null,e},update:function(e){return this.setOptions(e).render()},_prepare:function(e,t){var n=this._options,i={};return this._customizeTooltip&&(i=this._customizeTooltip.call(e,e),i=h.isPlainObject(i)?i:{},"text"in i&&(t.text=h.isDefined(i.text)?String(i.text):""),"html"in i&&(t.html=h.isDefined(i.html)?String(i.html):"")),"text"in t||"html"in t||(t.text=e.valueText||""),t.color=i.color||n.color,t.borderColor=i.borderColor||(n.border||{}).color,t.textColor=i.fontColor||(n.font||{}).color,!!t.text||!!t.html},show:function(e,t,n){var i,r,o=this,a={},s=o._options,l=s.paddingLeftRight,u=s.paddingTopBottom,d=o._textGroupHtml,h=o._textHtml,p=o._shadowSettings,f=p.offsetX,g=p.offsetY,_=2*p.blur+1,v=c.getComputedStyle;return!!o._prepare(e,a)&&(o._state=a,a.tc={},o._wrapper.appendTo(o._getContainer()),o._cloud.attr({fill:a.color,stroke:a.borderColor}),a.html?(o._text.attr({text:""}),d.css({color:a.textColor,width:o._getCanvas().width}),h.html(a.html),v?(i=v(h.get(0)),i={x:0,y:0,width:m(parseFloat(i.width)),height:m(parseFloat(i.height))}):(i=h.get(0).getBoundingClientRect(),i={x:0,y:0,width:m(i.width?i.width:i.right-i.left),height:m(i.height?i.height:i.bottom-i.top)}),d.width(i.width),d.height(i.height)):(h.html(""),o._text.css({fill:a.textColor}).attr({text:a.text}),i=o._textGroup.css({fill:a.textColor}).getBBox()),r=a.contentSize={x:i.x-l,y:i.y-u,width:i.width+2*l,height:i.height+2*u,lm:_-f>0?_-f:0,rm:_+f>0?_+f:0,tm:_-g>0?_-g:0,bm:_+g>0?_+g:0},r.fullWidth=r.width+r.lm+r.rm,r.fullHeight=r.height+r.tm+r.bm+s.arrowLength,o.move(t.x,t.y,t.offset),o._eventData&&o._eventTrigger("tooltipHidden",o._eventData),o._eventData=n,o._eventTrigger("tooltipShown",o._eventData),!0)},hide:function(){var e=this;i(e._wrapper),e._eventData&&e._eventTrigger("tooltipHidden",e._eventData),e._eventData=null},move:function(e,t,n){n=n||0;var i=this,r=i._getCanvas(),o=i._state,a=o.tc,s=o.contentSize;i._calculatePosition(e,t,n,r)&&(i._cloud.attr({points:a.cloudPoints}).move(s.lm,s.tm),o.html?i._textGroupHtml.css({left:-s.x+s.lm,top:-s.y+s.tm+a.correction}):i._textGroup.move(-s.x+s.lm,-s.y+s.tm+a.correction),i._renderer.resize("out"===a.hp?r.fullWidth+s.lm:s.fullWidth,"out"===a.vp?r.fullHeight:s.fullHeight)),n=i._wrapper.css({left:0,top:0}).offset(),i._wrapper.css({left:a.x-n.left,top:a.y-n.top,width:"out"===a.hp?r.fullWidth+s.lm:s.fullWidth})},formatValue:function(e,t){var n=t?r(this._options,t):this._options;return _(e,n)},getLocation:function(){return g.normalizeEnum(this._options.location)},isEnabled:function(){return!!this._options.enabled},isShared:function(){return!!this._options.shared},_calculatePosition:function(e,t,n,i){var r,o,a,s,l=this,c=l._options,u=c.arrowLength,d=l._state,h=d.tc,p=d.contentSize,g=p.width,_=g/2,m=p.height,v=t-i.top,y=i.top+i.height-t,b=e-i.left,x=i.width+i.left-e,S=m+u+n+p.tm,w=m+u+n+p.bm,C=g+p.lm,k=g+p.rm,T=_+p.lm,E=_+p.rm,A=0,O=[6,0],I=_+f,D=_,M=_-f,P=m+u,L="center",B="bottom";switch(o=a=m,c.verticalAlignment){case"top":B="bottom",s=!0;break;case"bottom":B="top",s=!0}switch(s||(S>v&&w>y?B="out":S>v&&(B="top")),s=!1,c.horizontalAlignment){case"left":L="right",s=!0;break;case"center":L="center",s=!0;break;case"right":L="left",s=!0}return s||(C>b&&k>x?L="out":T>b&&k<x?L="left":E>x&&C<b&&(L="right")),"out"===L?e=i.left:"left"===L?(I=f,D=M=0):"right"===L?(I=D=g,M=g-f,e-=g):"center"===L&&(e-=_),"out"===B?t=i.top:"top"===B?("out"!==L&&(A=u),O[0]=2,o=a=u,P=I,I=M,M=P,P=0,t+=n):t-=m+u+n,h.x=e-p.lm,h.y=t-p.tm,h.correction=A,(L!==h.hp||B!==h.vp)&&(h.hp=L,h.vp=B,r=[0,0+A,g,0+A,g,m+A,0,m+A],"out"!==L&&"out"!==B&&(O.splice(2,0,I,o,D,P,M,a),r.splice.apply(r,O)),h.cloudPoints=r,!0)},_getCanvas:function(){var e=this._getContainer(),t=e.getBoundingClientRect(),n=a.getDocumentElement(),i=a.getBody(),r=c.pageXOffset||n.scrollLeft||0,o=c.pageYOffset||n.scrollTop||0,s={left:r,top:o,width:n.clientWidth||0,height:n.clientHeight||0,fullWidth:v(i.scrollWidth,n.scrollWidth,i.offsetWidth,n.offsetWidth,i.clientWidth,n.clientWidth)-r,fullHeight:v(i.scrollHeight,n.scrollHeight,i.offsetHeight,n.offsetHeight,i.clientHeight,n.clientHeight)-o
20
20
  };return e!==i&&(r=v(s.left,s.left+t.left),o=v(s.top,s.top+t.top),s.width=y(s.width+s.left-r,t.width+(t.left>0?0:t.left)),s.height=y(s.height+s.top-o,t.height+(t.top>0?0:t.top)),s.fullWidth=s.width,s.fullHeight=s.height,s.left=r,s.top=o),s}},t.Tooltip=o,t.plugin={name:"tooltip",init:function(){this._initTooltip()},dispose:function(){this._disposeTooltip()},members:{_initTooltip:function(){this._tooltip=new t.Tooltip({cssClass:this._rootClassPrefix+"-tooltip",eventTrigger:this._eventTrigger,pathModified:this.option("pathModified"),widgetRoot:this.element()})},_disposeTooltip:function(){this._tooltip.dispose(),this._tooltip=null},_hideTooltip:function(){this._tooltip.hide()},_onRender:function(){this._$element.is(":visible")||this._hideTooltip()},_setTooltipRendererOptions:function(){this._tooltip.setRendererOptions(this._getRendererOptions())},_setTooltipOptions:function(){this._tooltip.update(this._getOption("tooltip"))}},customize:function(e){var t=e.prototype;t._eventsMap.onTooltipShown={name:"tooltipShown"},t._eventsMap.onTooltipHidden={name:"tooltipHidden"},e.addChange({code:"TOOLTIP_RENDERER",handler:function(){this._setTooltipRendererOptions()},isThemeDependent:!0,isOptionChange:!0}),e.addChange({code:"TOOLTIP",handler:function(){this._setTooltipOptions()},isThemeDependent:!0,isOptionChange:!0,option:"tooltip"})}}},function(e,t,n){function i(e){var t=this,n=e.renderer;t._group=n.g().attr({"class":"dx-loading-indicator"}).linkOn(n.root,{name:"loading-indicator",after:"peripheral"}),t._rect=n.rect().attr({opacity:0}).append(t._group),t._text=n.text().attr({align:"center"}).append(t._group),t._createStates(e.eventTrigger,t._group,n.root,e.notify)}var r=n(16).patchFontOptions,o=0,a=1,s="linear",l=400,c="loadingIndicatorReady";i.prototype={constructor:i,_createStates:function(e,t,n,i){var r=this;r._states=[{opacity:0,start:function(){i(!1)},complete:function(){t.linkRemove(),n.css({"pointer-events":""}),e(c)}},{opacity:.85,start:function(){t.linkAppend(),n.css({"pointer-events":"none"}),i(!0)},complete:function(){e(c)}}],r._state=o},setSize:function(e){var t=e.width,n=e.height;this._rect.attr({width:t,height:n}),this._text.attr({x:t/2,y:n/2})},setOptions:function(e){this._rect.attr({fill:e.backgroundColor}),this._text.css(r(e.font)).attr({text:e.text}),this[e.show?"show":"hide"]()},dispose:function(){var e=this;e._group.linkRemove().linkOff(),e._group=e._rect=e._text=e._states=null},_transit:function(e){var t,n=this;n._state!==e&&(n._state=e,n._isHiding=!1,t=n._states[e],n._rect.stopAnimation().animate({opacity:t.opacity},{complete:t.complete,easing:s,duration:l,unstoppable:!0}),n._noHiding=!0,t.start(),n._noHiding=!1)},show:function(){this._transit(a)},hide:function(){this._transit(o)},scheduleHiding:function(){this._noHiding||(this._isHiding=!0)},fulfillHiding:function(){this._isHiding&&this.hide()}},t.LoadingIndicator=i,t.plugin={name:"loading_indicator",init:function(){function e(e){n._skipLoadingIndicatorOptions=!0,n.option("loadingIndicator",{show:e}),n._skipLoadingIndicatorOptions=!1,e&&n._hideTooltip&&n._hideTooltip()}var n=this;n._loadingIndicator=new t.LoadingIndicator({eventTrigger:n._eventTrigger,renderer:n._renderer,notify:e}),n._scheduleLoadingIndicatorHiding()},dispose:function(){this._loadingIndicator.dispose(),this._loadingIndicator=null},members:{_scheduleLoadingIndicatorHiding:function(){this._loadingIndicator.scheduleHiding()},_fulfillLoadingIndicatorHiding:function(){this._loadingIndicator.fulfillHiding()},showLoadingIndicator:function(){this._loadingIndicator.show()},hideLoadingIndicator:function(){this._loadingIndicator.hide()},_onBeginUpdate:function(){this._scheduleLoadingIndicatorHiding()}},customize:function(e){var t=e.prototype;if(t._dataSourceChangedHandler){var n=t._dataSourceChangedHandler;t._dataSourceChangedHandler=function(){this._scheduleLoadingIndicatorHiding(),n.apply(this,arguments)}}var i=t._setContentSize;t._setContentSize=function(){i.apply(this,arguments),this._loadingIndicator.setSize(this._canvas)},e.addChange({code:"LOADING_INDICATOR",handler:function(){this._skipLoadingIndicatorOptions||this._loadingIndicator.setOptions(this._getOption("loadingIndicator")),this._scheduleLoadingIndicatorHiding()},isThemeDependent:!0,option:"loadingIndicator",isOptionChange:!0}),t._eventsMap.onLoadingIndicatorReady={name:"loadingIndicatorReady"};var r=t._drawn;t._drawn=function(){r.apply(this,arguments),this._dataIsReady()&&this._fulfillLoadingIndicatorHiding()}}}},function(e,t,n){function i(e,t){var n,i,r,o=e.length;for(n=0;n<o;++n)if(i=e[n]!==e[n],r=t[n]!==t[n],!(i&&r||e[n]===t[n]))return!1;return!0}function r(e){return p(e)?{text:e}:e||{}}var o=Number,a=n(16).getAppropriateFormat,s=n(0).extend,l=n(435),c=s,u=n(132),d=n(16).normalizeEnum,h=n(696),p=n(1).isString,f=u.inherit({_rootClassPrefix:"dxg",_createThemeManager:function(){return new this._factory.ThemeManager},_setDeprecatedOptions:function(){this.callBase(),c(this._deprecatedOptions,{subtitle:{since:"15.2",message:"Use the 'title.subtitle' option instead"},"title.position":{since:"15.2",message:"Use the 'verticalAlignment' and 'horizontalAlignment' options instead"},"scale.hideFirstTick":{since:"15.2",message:"The functionality is not more available"},"scale.hideLastTick":{since:"15.2",message:"The functionality is not more available"},"scale.hideFirstLabel":{since:"15.2",message:"The functionality is not more available"},"scale.hideLastLabel":{since:"15.2",message:"The functionality is not more available"},"scale.majorTick":{since:"15.2",message:"Use the 'tick' option instead"},"scale.minorTick.showCalculatedTicks":{since:"15.2",message:"The functionality is not more available"},"scale.minorTick.customTickValues":{since:"15.2",message:"Use the 'customMinorTicks' option instead"},"scale.minorTick.tickInterval":{since:"15.2",message:"Use the 'minorTickInterval' option instead"},"scale.label.overlappingBehavior.useAutoArrangement":{since:"17.1",message:"Use the 'scale.label.overlappingBehavior' option instead"},"scale.label.overlappingBehavior.hideFirstOrLast":{since:"17.1",message:"Use the 'scale.label.hideFirstOrLast' option instead"}})},_initCore:function(){var e=this,t=e._renderer.root;e._valueChangingLocker=0,e._translator=e._factory.createTranslator(),e._tracker=e._factory.createTracker({renderer:e._renderer,container:t}),e._setTrackerCallbacks()},_beginValueChanging:function(){this._resetIsReady(),++this._valueChangingLocker},_endValueChanging:function(){0===--this._valueChangingLocker&&this._drawn()},_setTrackerCallbacks:function(){var e=this,t=e._renderer,n=e._tooltip;e._tracker.setCallbacks({"tooltip-show":function(e,i){var r=e.getTooltipParameters(),o=t.getRootOffset(),a=c({value:r.value,valueText:n.formatValue(r.value),color:r.color},i);return n.show(a,{x:r.x+o.left,y:r.y+o.top,offset:r.offset},{target:i})},"tooltip-hide":function(){return n.hide()}})},_dispose:function(){this._cleanCore(),this.callBase.apply(this,arguments)},_disposeCore:function(){var e=this;e._themeManager.dispose(),e._tracker.dispose(),e._translator=e._tracker=null},_cleanCore:function(){var e=this;e._tracker.deactivate(),e._cleanContent()},_renderCore:function(){var e=this;e._isValidDomain&&(e._renderContent(),e._tracker.setTooltipState(e._tooltip.isEnabled()),e._tracker.activate(),e._noAnimation=!1)},_applyChanges:function(){this.callBase.apply(this,arguments),this._resizing=this._noAnimation=!1},_setContentSize:function(){var e=this;e._resizing=e._noAnimation=2===e._changes.count(),e.callBase.apply(e,arguments)},_applySize:function(e){var t=this;t._innerRect={left:e[0],top:e[1],right:e[2],bottom:e[3]};var n=t._layout._cache;return t._cleanCore(),t._renderCore(),t._layout._cache=t._layout._cache||n,[e[0],t._innerRect.top,e[2],t._innerRect.bottom]},_initialChanges:["DOMAIN"],_themeDependentChanges:["DOMAIN"],_optionChangesMap:{subtitle:"MOSTLY_TOTAL",indicator:"MOSTLY_TOTAL",geometry:"MOSTLY_TOTAL",animation:"MOSTLY_TOTAL",startValue:"DOMAIN",endValue:"DOMAIN"},_optionChangesOrder:["DOMAIN","MOSTLY_TOTAL"],_change_DOMAIN:function(){this._setupDomain()},_change_MOSTLY_TOTAL:function(){this._applyMostlyTotalChange()},_setupDomain:function(){var e=this;e._setupDomainCore(),e._isValidDomain=isFinite(1/(e._translator.getDomain()[1]-e._translator.getDomain()[0])),e._isValidDomain||e._incidentOccurred("W2301"),e._change(["MOSTLY_TOTAL"])},_applyMostlyTotalChange:function(){var e=this;e._setupCodomain(),e._setupAnimationSettings(),e._setupDefaultFormat(),e._change(["LAYOUT"])},_setupAnimationSettings:function(){var e=this,t=e.option("animation");e._animationSettings=null,(void 0===t||t)&&(t=c({enabled:!0,duration:1e3,easing:"easeOutCubic"},t),t.enabled&&t.duration>0&&(e._animationSettings={duration:o(t.duration),easing:t.easing})),e._containerBackgroundColor=e.option("containerBackgroundColor")||e._themeManager.theme().containerBackgroundColor},_setupDefaultFormat:function(){var e=this._translator.getDomain();this._defaultFormatOptions=a(e[0],e[1],this._getApproximateScreenRange())},_setupDomainCore:null,_calculateSize:null,_cleanContent:null,_renderContent:null,_setupCodomain:null,_getApproximateScreenRange:null,_factory:{createTranslator:function(){return new l.Translator1D},createTracker:function(e){return new h(e)}}});t.dxBaseGauge=f;var g=n(251),_=function(e,t,n){t=t||{};var i,r=g(e,t);return"function"==typeof t.customizeText?(i=c({value:e,valueText:r},n),String(t.customizeText.call(i,i))):r},m=function(e,t){var n=_(e.getDomainStart(),t),i=_(e.getDomainEnd(),t);return n.length>=i.length?n:i};t.formatValue=_,t.getSampleText=m,t.compareArrays=function(e,t){return e&&t&&e.length===t.length&&i(e,t)},f.addPlugin(n(131).plugin),f.addPlugin(n(166).plugin),f.addPlugin(n(167).plugin),f.addPlugin(n(168).plugin);var v=f.prototype._setTooltipOptions;f.prototype._setTooltipOptions=function(){v.apply(this,arguments),this._tracker&&this._tracker.setTooltipState(this._tooltip.isEnabled())},f.prototype._getTitleOptions=function(){var e,t,n=this,i=r(n.option("title"));return n._suppressDeprecatedWarnings(),i.subtitle=s(r(i.subtitle),r(n.option("subtitle"))),n._resumeDeprecatedWarnings(),e=c(!0,{},n._themeManager.theme("title"),i),e.position&&(t=d(e.position).split("-"),e.verticalAlignment=t[0],e.horizontalAlignment=t[1]),e}},function(e,t,n){function i(e,t){var n=e.ctx;n.suspend(),n.change(t),n.resume()}function r(e,t){var n,i=e.nodes,o=i&&i.length;for(n=0;n<o;++n)t.push(i[n].proxy),r(i[n],t)}function o(e,t){for(var n=t-e.value;e;)e.value+=n,e=e.parent}function a(e,t){var n=e.ctx.calculateLabelState(t);return"visible"in t&&(n.visible=!!t.visible),n}var s=n(85).prototype,l=n(201).prototype,c=n(0).extend;s._eventsMap.onNodesInitialized={name:"nodesInitialized"},s._eventsMap.onNodesRendering={name:"nodesRendering"},s._createProxyType=function(){function e(e){var t=this;e.proxy=t,t._id=e._id,t.level=e.level,t.index=e.index,t.data=e.data}var t,n=this;e.prototype={constructor:e,getParent:function(){return t[this._id].parent.proxy||null},getChild:function(e){var n=t[this._id].nodes;return n?n[e].proxy:null},getChildrenCount:function(){var e=t[this._id].nodes;return e?e.length:0},getAllChildren:function(){var e,n=t[this._id].nodes,i=n&&n.length,r=[];for(e=0;e<i;++e)r.push(n[e].proxy);return r},getAllNodes:function(){var e=[];return r(t[this._id],e),e},isLeaf:function(){return!t[this._id].isNode()},isActive:function(){return t[this._id].isActive()},value:function(e){var n,r=t[this._id];return void 0!==e?(o(r,e>0?Number(e):0),i(r,["TILING"]),n=this):n=r.value,n},label:function(e){var n,r=t[this._id];return void 0!==e?(r.customLabel=e?String(e):null,i(r,["LABELS"]),n=this):n=r.customLabel||r.label,n},customize:function(e){var n=t[this._id];return e&&(n._custom=n._custom||{},c(!0,n._custom,e),n._partialState=n._partialLabelState=null),i(n,["TILES","LABELS"]),this},resetCustomization:function(){var e=t[this._id];return e._custom=e._partialState=e._partialLabelState=null,i(e,["TILES","LABELS"]),this}},n._extendProxyType(e.prototype),n._handlers.beginBuildNodes=function(){t=n._nodes,new e(n._root)},n._handlers.buildNode=function(t){new e(t)},n._handlers.endBuildNodes=function(){n._eventTrigger("nodesInitialized",{root:n._root.proxy})}},s._extendProxyType=n(4).noop;var u=s._resetNodes;s._resetNodes=function(){u.call(this),this._eventTrigger("nodesRendering",{node:this._topNode.proxy})};var d=l.updateStyles;l.updateStyles=function(){var e=this;d.call(e),e._custom&&(e._partialState=!e.ctx.forceReset&&e._partialState||e.ctx.calculateState(e._custom),c(!0,e.state,e._partialState))};var h=l.updateLabelStyle;l.updateLabelStyle=function(){var e=this,t=e._custom;h.call(e),t&&t.label&&(e._partialLabelState=!e.ctx.forceReset&&e._partialLabelState||a(e,t.label),e.labelState=c(!0,{},e.labelState,e._partialLabelState))},s.getRootNode=function(){return this._root.proxy},s.resetNodes=function(){var e=this._context;return e.suspend(),e.change(["NODES_CREATE"]),e.resume(),this}},function(e,t,n){var i=n(11).inArray,r=n(6),o=r.hasWindow()?r.getWindow().WeakMap:WeakMap;o||(o=function(){var e=[],t=[];this.set=function(n,r){var o=i(n,e);o===-1?(e.push(n),t.push(r)):t[o]=r},this.get=function(n){var r=i(n,e);if(r!==-1)return t[r]},this.has=function(t){var n=i(t,e);return n!==-1},this.delete=function(n){var r=i(n,e);r!==-1&&(e.splice(r,1),t.splice(r,1))}}),e.exports=o},function(e,t,n){var i=n(3).each,r=n(19),o=function(){var e=[],t=r();this.add=function(n){i(e,function(e,t){n.apply(n,t)}),t.add(n)},this.remove=function(e){t.remove(e)},this.fire=function(){e.push(arguments),t.fire.apply(t,arguments)}};e.exports=o},function(e,t,n){function i(e){function t(){for(;a.length;){s=!0;var e=a.shift(),n=e();if(void 0!==n){if(n.then)return void o(n).always(t);throw r.Error("E0015")}}s=!1}function n(n,i){e?(a[0]&&i&&i(a[0]),a=[n]):a.push(n),s||t()}function i(){return s}var a=[],s=!1;return{add:n,busy:i}}var r=n(17),o=n(7).when;t.create=i,t.enqueue=i().add},function(e,t,n){n(43);var i=n(26),r=n(62),o=n(0).extend,a=n(1),s=n(8),l=n(58),c=a.isFunction,u=a.isPlainObject,d=n(4).noop;n(109);var h=l.inherit({ctor:function(e,t){u(e)&&(t=e,e=i("<div>")),this.callBase(e,t)},_setDeprecatedOptions:function(){this.callBase(),o(this._deprecatedOptions,{iconSrc:{since:"15.1",alias:"icon"}})},_getDefaultOptions:function(){return o(this.callBase(),{onExecute:null,id:null,title:"",icon:"",visible:!0,disabled:!1,renderStage:"onViewShown"})},execute:function(){var e=this._options.disabled;if(c(e)&&(e=!!e.apply(this,arguments)),e)throw r.Error("E3004",this._options.id);this.fireEvent("beforeExecute",arguments),this._createActionByOption("onExecute").apply(this,arguments),this.fireEvent("afterExecute",arguments)},_render:function(){this.callBase(),this.$element().addClass("dx-command")},_renderDisabledState:d,_dispose:function(){this.callBase(),this.$element().removeData(this.NAME)}});s("dxCommand",h),e.exports=h},function(e,t,n){var i=n(10),r=n(11).inArray,o=n(3).each,a=i.inherit({ctor:function(){this.storage={}},getItem:function(e){return this.storage[e]},setItem:function(e,t){this.storage[e]=t},removeItem:function(e){delete this.storage[e]}}),s=i.inherit({ctor:function(e){e=e||{},this.storage=e.storage||new a,this.stateSources=e.stateSources||[]},addStateSource:function(e){this.stateSources.push(e)},removeStateSource:function(e){var t=r(e,this.stateSources);t>-1&&(this.stateSources.splice(t,1),e.removeState(this.storage))},saveState:function(){var e=this;o(this.stateSources,function(t,n){n.saveState(e.storage)})},restoreState:function(){var e=this;o(this.stateSources,function(t,n){n.restoreState(e.storage)})},clearState:function(){var e=this;o(this.stateSources,function(t,n){n.removeState(e.storage)})}});e.exports=s,e.exports.MemoryKeyValueStorage=a},function(e,t,n){n(43);var i=n(26),r=n(177).MarkupComponent,o=n(1).isPlainObject,a=n(8);n(109);var s=r.inherit({ctor:function(e,t){o(e)&&(t=e,e=i("<div>")),this.callBase(e,t)},_setDefaultOptions:function(){this.callBase(),this.option({id:null})},_render:function(){this.callBase(),this.element().addClass("dx-command-container")}});a("dxCommandContainer",s),e.exports=s},function(e,t,n){n(43);var i=n(26),r=n(10),o=n(0).extend,a=n(4).noop,s=n(100),l=r.inherit({ctor:function(e,t){this.NAME=s.name(this.constructor),t=t||{},this._$element=i(e),s.attachInstanceToElement(this._$element,this,this._dispose),t.fromCache?this._options=t:(this._options={},this._setDefaultOptions(),t&&this.option(t),this._render())},_setDefaultOptions:a,_render:a,_dispose:a,element:function(){return this._$element},option:function(e,t){if(0===arguments.length)return this._options;if(1===arguments.length){if("string"==typeof e)return this._options[e];t=e,o(this._options,t)}else this._options[e]=t},instance:function(){return this}});l.getInstance=function(e){return s.getInstanceByElement(i(e),this)},t.MarkupComponent=l},function(e,t,n){var i=n(10),r=n(4).grep,o=n(0).extend,a=n(3).each,s=n(11).inArray,l=n(62),c=i.inherit({ctor:function(){this._commandMappings={},this._containerDefaults={}},setDefaults:function(e,t){return this._containerDefaults[e]=t,this},mapCommands:function(e,t){var n=this;return a(t,function(t,i){"string"==typeof i&&(i={id:i});var r=i.id,a=n._commandMappings[e]||{};a[r]=o({showIcon:!0,showText:!0},n._containerDefaults[e]||{},i),n._commandMappings[e]=a}),this._initExistingCommands(),this},unmapCommands:function(e,t){var n=this;a(t,function(t,i){var r=n._commandMappings[e]||{};r&&delete r[i]}),this._initExistingCommands()},getCommandMappingForContainer:function(e,t){return(this._commandMappings[t]||{})[e]},checkCommandsExist:function(e){var t=this,n=r(e,function(n,i){return s(n,t._existingCommands)<0&&s(n,e)===i});if(0!==n.length)throw l.Error("E3005",n.join("', '"),1===n.length?" is":"s are")},load:function(e){if(e){var t=this;return a(e,function(e,n){t.setDefaults(e,n.defaults),t.mapCommands(e,n.commands)}),this}},_initExistingCommands:function(){var e=this;this._existingCommands=[],a(e._commandMappings,function(t,n){a(n,function(t,n){s(n.id,e._existingCommands)<0&&e._existingCommands.push(n.id)})})}});c.defaultMapping={"global-navigation":{defaults:{showIcon:!0,showText:!0},commands:[]},"ios-header-toolbar":{defaults:{showIcon:!1,showText:!0,location:"after"},commands:["edit","save",{id:"back",location:"before"},{id:"cancel",location:"before"},{id:"create",showIcon:!0,showText:!1}]},"ios-action-sheet":{defaults:{showIcon:!1,showText:!0},commands:[]},"ios-view-footer":{defaults:{showIcon:!1,showText:!0},commands:[{id:"delete",type:"danger"}]},"android-header-toolbar":{defaults:{showIcon:!0,showText:!1,location:"after"},commands:[{id:"back",showIcon:!1,location:"before"},"create",{id:"save",showText:!0,showIcon:!1,location:"after"},{id:"edit",showText:!1,location:"after"},{id:"cancel",showText:!1,location:"before"},{id:"delete",showText:!1,location:"after"}]},"android-simple-toolbar":{defaults:{showIcon:!0,showText:!1,location:"after"},commands:[{id:"back",showIcon:!1,location:"before"},{id:"create"},{id:"save",showText:!0,showIcon:!1,location:"after"},{id:"edit",showText:!1,location:"after"},{id:"cancel",showText:!1,location:"before"},{id:"delete",showText:!1,location:"after"}]},"android-footer-toolbar":{defaults:{location:"after"},commands:[{id:"create",showText:!1,location:"center"},{id:"edit",showText:!1,location:"before"},{id:"delete",locateInMenu:"always"},{id:"save",showIcon:!1,location:"before"}]},"generic-header-toolbar":{defaults:{showIcon:!1,showText:!0,location:"after"},commands:["edit","save",{id:"back",location:"before"},{id:"cancel",location:"before"},{id:"create",showIcon:!0,showText:!1}]},"generic-view-footer":{defaults:{showIcon:!1,showText:!0},commands:[{id:"delete",type:"danger"}]},"win8-appbar":{defaults:{location:"after"},commands:["edit","cancel","save","delete",{id:"create",location:"before"},{id:"refresh",location:"before"}]},"win8-toolbar":{defaults:{showText:!1,location:"before"},commands:[{id:"previousPage"}]},"win8-phone-appbar":{defaults:{location:"center"},commands:["create","edit","cancel","save","refresh",{id:"delete",locateInMenu:"always"}]},"win8-split-toolbar":{defaults:{showIcon:!0,showText:!1,location:"after"},commands:[{id:"back",showIcon:!1,location:"before"},{id:"create"},{id:"save",showText:!0,location:"before"},{id:"edit",showText:!0,locateInMenu:"always"},{id:"cancel",showText:!0,locateInMenu:"always"},{id:"delete",showText:!0,locateInMenu:"always"}]},"win8-master-detail-toolbar":{defaults:{showText:!1,location:"before"},commands:["back"]},"win10-appbar":{defaults:{showText:!1,location:"after"},commands:[{id:"back",location:"before"},"edit","cancel","save","delete","create","refresh"]},"win10-phone-appbar":{defaults:{location:"after"},commands:["create","edit","cancel","save","refresh",{id:"delete",locateInMenu:"always"}]},"desktop-toolbar":{defaults:{showIcon:!1,showText:!0,location:"after"},commands:["cancel","create","edit","save",{id:"delete",type:"danger"}]}},e.exports=c},function(e,t,n){n(43);var i=n(26),r=n(12),o=n(5),a=n(10),s=n(4),l=n(3),c=n(110),u=n(143).layoutSets,d=n(53),h=n(62),p=n(13),f=n(7).when,g="__hidden-bag",_=".dx-transition",m=".dx-content",v="onViewShown",y="dxcontentrendered.layoutController",b=".dx-pending-rendering",x=".dx-pending-rendering-manual",S=n(116);n(176),n(63);var w=function(e){return".dx-transition-"+e},C=a.inherit({ctor:function(e){e=e||{},this.name=e.name||"",this._layoutModel=e.layoutModel||{},this._defaultPaneName=e.defaultPaneName||"content",this._transitionDuration=void 0===e.transitionDuration?400:e.transitionDuration,this._showViewFired=!1},init:function(e){e=e||{},this._visibleViews={},this._$viewPort=e.$viewPort||i("body"),this._commandManager=e.commandManager,this._viewEngine=e.viewEngine,this.transitionExecutor=new S.TransitionExecutor,this._prepareTemplates(),this._$viewPort.append(this.element()),this._hideElements(this.element()),e.templateContext&&(this._templateContext=e.templateContext,this._proxiedTemplateContextChangedHandler=this._templateContextChangedHandler.bind(this))},ensureActive:function(e){return this._disabledState?this.enable():this.activate(e)},activate:function(){this._showViewFired=!1;var e=this.element();return this._showElements(e),this._attachRefreshViewRequiredHandler(),i.Deferred().resolve().promise()},deactivate:function(){return this._disabledState=!1,this._showViewFired=!1,this._releaseVisibleViews(),this._hideElements(this.element()),this._detachRefreshViewRequiredHandler(),i.Deferred().resolve().promise()},enable:function(){return this._disabledState=!1,this._showViewFired||this._notifyShowing(),this._showViewFired=!1,i.Deferred().resolve().promise()},disable:function(){this._disabledState=!0,this._showViewFired=!1,this._notifyHidden()},activeViewInfo:function(){return this._visibleViews[this._defaultPaneName]},_fireViewEvents:function(e,t){var n=this;t=t||this._visibleViews,l.each(t,function(t,i){n.fireEvent(e,[i])})},_notifyShowing:function(e){this._fireViewEvents("viewShowing",e)},_notifyShown:function(e){this._fireViewEvents("viewShown",e)},_notifyHidden:function(e){this._fireViewEvents("viewHidden",e)},_applyTemplate:function(e,t){e.each(function(e,n){c.templateProvider.applyTemplate(n,t)})},_releaseVisibleViews:function(){var e=this;l.each(this._visibleViews,function(t,n){e._hideView(n),e._releaseView(n)}),this._visibleViews={}},_templateContextChangedHandler:function(){var e=this,t=[];l.each(e._visibleViews,function(n,i){i.currentViewTemplateId!==e._getViewTemplateId(i)&&t.push(i)}),f.apply(i,l.map(t,function(t){return e.showView(t)})).done(function(){e._notifyShown(t)})},_attachRefreshViewRequiredHandler:function(){this._templateContext&&this._templateContext.on("optionChanged",this._proxiedTemplateContextChangedHandler)},_detachRefreshViewRequiredHandler:function(){this._templateContextChanged&&this._templateContext.off("optionChanged",this._proxiedTemplateContextChangedHandler)},_getPreviousViewInfo:function(e){return this._visibleViews[this._getViewPaneName(e.viewTemplateInfo)]},_prepareTemplates:function(){var e=this,t=e._viewEngine.getLayoutTemplate(this._getLayoutTemplateName());e._$layoutTemplate=t,e._$mainLayout=e._createEmptyLayout(),e._showElements(e._$mainLayout),e._applyTemplate(e._$mainLayout,e._layoutModel),e._$navigationWidget=e._createNavigationWidget()},renderNavigation:function(e){this._clearNavigationWidget(),this._renderNavigationImpl(e)},_renderNavigationImpl:function(e){this._renderCommands(this._$mainLayout,e)},_createNavigationWidget:function(){var e,t=this._findCommandContainers(this._$mainLayout);return l.each(t,function(t,n){if("global-navigation"===n.option("id"))return e=n.element(),!1}),e},_clearNavigationWidget:function(){this._$navigationWidget&&this._commandManager.clearContainer(this._$navigationWidget.dxCommandContainer("instance"))},element:function(){return this._$mainLayout},_getViewFrame:function(e){return this._$mainLayout},_getLayoutTemplateName:function(){return this.name},_applyModelToTransitionElements:function(e,t){var n=this;this._getTransitionElements(e).each(function(e,r){n._applyTemplate(i(r).children(),t)})},_createViewLayoutTemplate:function(){var e=this,t=e._$layoutTemplate.clone();return this._hideElements(t),t},_createEmptyLayout:function(){var e=this,t=e._$layoutTemplate.clone();return this._hideElements(t),this._getTransitionElements(t).empty(),t.children(m).remove(),t},_getTransitionElements:function(e){for(var t=e.find(_).add(e.filter(_)),n=[],r=0;r<t.length;r++){var o=t.eq(r);0===o.parents(_).length&&n.push(o.get(0))}return i(n)},showView:function(e,t){t=t||"forward";var n,r=this,o=r._getPreviousViewInfo(e),a=o===e?o.currentViewTemplateId:void 0;return this._showViewFired=!0,this._updateCurrentViewTemplateId(e),a&&a===e.currentViewTemplateId&&e===o?(r.fireEvent("viewShowing",[e,t]),n=i.Deferred().resolve().promise()):(r._ensureViewRendered(e),r.fireEvent("viewShowing",[e,t]),n=this._showViewImpl(e,t,a).done(function(){r._onViewShown(e)})),n},disposeView:function(e){this._clearRenderResult(e)},_clearRenderResult:function(e){e.renderResult&&(e.renderResult.$markup.remove(),e.renderResult.$viewItems.remove(),delete e.renderResult)},_renderViewImpl:function(e,t){var n,r=this,o=".dx-command,.dx-content,script",a=this._createViewLayoutTemplate(),s=!0,l=i();if(0===e.children(o).length&&this._viewEngine._wrapViewDefaultContent(e),n=e.children(),this._applyModelToTransitionElements(a,t.model),this._viewEngine.applyLayout(e,a),n.each(function(e,n){var a=i(n);r._applyTemplate(a,t.model),a.is(o)?s=!1:l=l.add(a)}),l.length&&!s)throw h.Error("E3014",l[0].outerHTML);t.renderResult=t.renderResult||{},t.renderResult.$viewItems=n,t.renderResult.$markup=a},_renderCommands:function(e,t){var n=this._findCommandContainers(e);return this._commandManager.renderCommandsToContainers(t,n)},_prepareViewCommands:function(e){var t=e.renderResult.$viewItems,n=this._commandManager.findCommands(t),i={};e.commands=c.utils.mergeCommands(e.commands||[],n),e.commandsToRenderMap=i,l.each(e.commands,function(e,t){var n=t.option("renderStage")||v,r=i[n]=i[n]||[];r.push(t)})},_applyViewCommands:function(e,t){t=t||v;var n,r=e.commandsToRenderMap[t],o=e.renderResult.$markup;return r?(n=this._renderCommands(o,r),delete e.commandsToRenderMap[t]):n=i.Deferred().resolve().promise(),n},_findCommandContainers:function(e){return p.createComponents(e,["dxCommandContainer"])},_getViewTemplateId:function(e){var t=e.$viewTemplate?e.$viewTemplate.dxView("instance"):this._viewEngine.getViewTemplateInfo(e.viewName);return t.getId()},_updateCurrentViewTemplateId:function(e){e.currentViewTemplateId=this._getViewTemplateId(e)},_ensureViewRendered:function(e){var t=e.renderResult&&e.renderResult.markupCache[e.currentViewTemplateId];t?e.renderResult.$markup=t:(this._renderView(e),e.renderResult.markupCache=e.renderResult.markupCache||{},e.renderResult.markupCache[e.currentViewTemplateId]=e.renderResult.$markup)},_renderView:function(e){var t=e.$viewTemplate||this._viewEngine.getViewTemplate(e.viewName);this._renderViewImpl(t,e),this._prepareViewCommands(e),this._applyViewCommands(e,"onViewRendering"),this._appendViewToLayout(e),t.remove(),this._onRenderComplete(e),this.fireEvent("viewRendered",[e])},_prepareTransition:function(e,t){0===e.children(".dx-content").length&&(e.wrapInner("<div>"),e.children().dxContent({targetPlaceholder:t}))},_appendViewToLayout:function(e){var t=this,n=t._getViewFrame(e),r=e.renderResult.$markup,o=i(),a=[];l.each(r.find(".dx-content-placeholder"),function(e,n){t._prepareTransition(i(n),i(n).attr("data-dx-content-placeholder-name"))}),l.each(t._getTransitionElements(n),function(e,n){var s=i(n),l=r.find(w(s.attr("data-dx-transition-name"))).children(),c={$element:l,animation:s.attr("data-dx-transition-type")};a.push(c),s.append(l),t._showViewElements(l),p.triggerShownEvent(l),o=o.add(l)}),t._$mainLayout.append(e.renderResult.$viewItems.filter(".dx-command")),r.remove(),e.renderResult.$markup=o,e.renderResult.animationItems=a},_onRenderComplete:function(e){},_onViewShown:function(e){o.trigger(r.getDocument(),"dx.viewchanged")},_enter:function(e,t){var n=this.transitionExecutor;l.each(e,function(e,i){n.enter(i.$element,i.animation,t)})},_leave:function(e,t){var n=this.transitionExecutor;l.each(e,function(e,i){n.leave(i.$element,i.animation,t)})},_doTransition:function(e,t,n){return e&&this._leave(e.renderResult.animationItems,n),this._enter(t.renderResult.animationItems,n),this._showView(t),this.transitionExecutor.start()},_showViewImpl:function(e,t,n){var r=this,o=this._getPreviousViewInfo(e),a={direction:t};o===e&&(o=void 0),o||(a.duration=0,a.delay=0);var s=i.Deferred();return r._doTransition(o,e,a).done(function(){r._changeView(e,n).done(function(e){s.resolve(e)})}),s.promise()},_releaseView:function(e){this.fireEvent("viewReleased",[e])},_getReadyForRenderDeferredItems:function(e){return i.Deferred().resolve().promise()},_changeView:function(e,t){var n=this;if(t)n._hideView(e,t);else{var r=n._getPreviousViewInfo(e);r&&r!==e&&(n._hideView(r),n._releaseView(r)),this._visibleViews[this._getViewPaneName(e.viewTemplateInfo)]=e}this._subscribeToDeferredItems(e);var o=i.Deferred();return this._getReadyForRenderDeferredItems(e).done(function(){n._applyViewCommands(e).done(function(){n._renderDeferredItems(e.renderResult.$markup).done(function(){o.resolve()})})}),o.promise()},_subscribeToDeferredItems:function(e){var t=this,n=e.renderResult.$markup;n.find(b).add(n.filter(b)).each(function(){var n={viewInfo:e,context:t};i(this).on(y,n,t._onDeferredContentRendered)})},_onDeferredContentRendered:function(e){var t=i(e.target),n=e.data.viewInfo,r=e.data.context;t.off(y,r._onDeferredContentRendered),r._renderCommands(t,n.commands)},_renderDeferredItems:function(e){var t=this,n=i.Deferred(),r=e.find(x).add(e.filter(x)).first();if(r.length){var o=r.data("dx-render-delegate");s.executeAsync(function(){o().done(function(){t._renderDeferredItems(e).done(function(){n.resolve()})})})}else n.resolve();return n.promise()},_getViewPaneName:function(e){return this._defaultPaneName},_hideElements:function(e){e.addClass("dx-fast-hidden")},_showElements:function(e){e.removeClass("dx-fast-hidden")},_hideViewElements:function(e){this._patchIds(e),this._disableInputs(e),e.removeClass("dx-active-view").addClass("dx-inactive-view")},_hideView:function(e,t){if(e.renderResult){var n=void 0===t?e.renderResult.$markup:e.renderResult.markupCache[t];this._hideViewElements(n),this.fireEvent("viewHidden",[e])}},_showViewElements:function(e){this._unPatchIds(e),this._enableInputs(e),e.removeClass("dx-inactive-view").addClass("dx-active-view"),this._skipAnimation(e)},_showView:function(e){e.renderResult&&this._showViewElements(e.renderResult.$markup)},_skipAnimation:function(e){e.addClass("dx-skip-animation");for(var t=0;t<e.length;t++)e.eq(t).css("transform");e.removeClass("dx-skip-animation")},_patchIds:function(e){this._processIds(e,function(e){var t=e;return e.indexOf(g)===-1&&(t=g+"-"+e),t})},_unPatchIds:function(e){this._processIds(e,function(e){var t=e;return 0===e.indexOf(g)&&(t=e.substr(g.length+1)),
21
21
  t})},_processIds:function(e,t){var n=e.find("[id]");l.each(n,function(e,n){var r=i(n),o=r.attr("id");r.attr("id",t(o))})},_enableInputs:function(e){var t=this._getInputs(e).filter("[data-disabled='true']");l.each(t,function(e,t){i(t).removeAttr("disabled").removeAttr("data-disabled")})},_disableInputs:function(e){var t=this._getInputs(e);t=t.filter(":not([disabled])").add(t.filter("[disabled=true]")),l.each(t,function(e,t){i(t).attr({disabled:!0,"data-disabled":!0})})},_getInputs:function(e){return e.find("input, button, select, textarea")}}).include(d);u.default=u.default||[],u.default.push({controller:new C}),t.DefaultLayoutController=C,t.layoutSets=u},function(e,t,n){var i=n(238);e.exports=i.module("dx",[])},function(e,t,n){e.exports={}},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n(113);var r=n(64),o=n(49),a=n(17);if(n(64),r&&r.formatNumber){var s={main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},numbers:{defaultNumberingSystem:"latn",otherNumberingSystems:{"native":"latn"},minimumGroupingDigits:"1","symbols-numberSystem-latn":{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"\xd7",perMille:"\u2030",infinity:"\u221e",nan:"NaN",timeSeparator:":"},"decimalFormats-numberSystem-latn":{standard:"#,##0.###","long":{decimalFormat:{"1000-count-one":"0 thousand","1000-count-other":"0 thousand","10000-count-one":"00 thousand","10000-count-other":"00 thousand","100000-count-one":"000 thousand","100000-count-other":"000 thousand","1000000-count-one":"0 million","1000000-count-other":"0 million","10000000-count-one":"00 million","10000000-count-other":"00 million","100000000-count-one":"000 million","100000000-count-other":"000 million","1000000000-count-one":"0 billion","1000000000-count-other":"0 billion","10000000000-count-one":"00 billion","10000000000-count-other":"00 billion","100000000000-count-one":"000 billion","100000000000-count-other":"000 billion","1000000000000-count-one":"0 trillion","1000000000000-count-other":"0 trillion","10000000000000-count-one":"00 trillion","10000000000000-count-other":"00 trillion","100000000000000-count-one":"000 trillion","100000000000000-count-other":"000 trillion"}},"short":{decimalFormat:{"1000-count-one":"0K","1000-count-other":"0K","10000-count-one":"00K","10000-count-other":"00K","100000-count-one":"000K","100000-count-other":"000K","1000000-count-one":"0M","1000000-count-other":"0M","10000000-count-one":"00M","10000000-count-other":"00M","100000000-count-one":"000M","100000000-count-other":"000M","1000000000-count-one":"0B","1000000000-count-other":"0B","10000000000-count-one":"00B","10000000000-count-other":"00B","100000000000-count-one":"000B","100000000000-count-other":"000B","1000000000000-count-one":"0T","1000000000000-count-other":"0T","10000000000000-count-one":"00T","10000000000000-count-other":"00T","100000000000000-count-one":"000T","100000000000000-count-other":"000T"}}},"scientificFormats-numberSystem-latn":{standard:"#E0"},"percentFormats-numberSystem-latn":{standard:"#,##0%"},"currencyFormats-numberSystem-latn":{currencySpacing:{beforeCurrency:{currencyMatch:"[:^S:]",surroundingMatch:"[:digit:]",insertBetween:"\xa0"},afterCurrency:{currencyMatch:"[:^S:]",surroundingMatch:"[:digit:]",insertBetween:"\xa0"}},standard:"\xa4#,##0.00",accounting:"\xa4#,##0.00;(\xa4#,##0.00)","short":{standard:{"1000-count-one":"\xa40K","1000-count-other":"\xa40K","10000-count-one":"\xa400K","10000-count-other":"\xa400K","100000-count-one":"\xa4000K","100000-count-other":"\xa4000K","1000000-count-one":"\xa40M","1000000-count-other":"\xa40M","10000000-count-one":"\xa400M","10000000-count-other":"\xa400M","100000000-count-one":"\xa4000M","100000000-count-other":"\xa4000M","1000000000-count-one":"\xa40B","1000000000-count-other":"\xa40B","10000000000-count-one":"\xa400B","10000000000-count-other":"\xa400B","100000000000-count-one":"\xa4000B","100000000000-count-other":"\xa4000B","1000000000000-count-one":"\xa40T","1000000000000-count-other":"\xa40T","10000000000000-count-one":"\xa400T","10000000000000-count-other":"\xa400T","100000000000000-count-one":"\xa4000T","100000000000000-count-other":"\xa4000T"}},"unitPattern-count-one":"{0} {1}","unitPattern-count-other":"{0} {1}"},"miscPatterns-numberSystem-latn":{atLeast:"{0}+",range:"{0}\u2013{1}"}}}}};"en"===r.locale().locale&&(r.load(s),r.locale("en"));var l={},c=function(e){var t,n;return n="object"===("undefined"==typeof e?"undefined":i(e))?r.locale().locale+":"+JSON.stringify(e):r.locale().locale+":"+e,t=l[n],t||(t=l[n]=r.numberFormatter(e)),t},u={_formatNumberCore:function(e,t,n){return"exponential"===t?this.callBase.apply(this,arguments):c(this._normalizeFormatConfig(t,n,e))(e)},_normalizeFormatConfig:function(e,t,n){var i;return i="decimal"===e?{minimumIntegerDigits:t.precision||1,useGrouping:!1,minimumFractionDigits:0,maximumFractionDigits:20,round:n<0?"ceil":"floor"}:this._getPrecisionConfig(t.precision),"percent"===e&&(i.style="percent"),i},_getPrecisionConfig:function(e){var t;return t=null===e?{minimumFractionDigits:0,maximumFractionDigits:20}:{minimumFractionDigits:e||0,maximumFractionDigits:e||0}},format:function(e,t){return"number"!=typeof e?e:(t=this._normalizeFormat(t),t&&("function"==typeof t||t.type||t.formatter)?this.callBase.apply(this,arguments):c(t)(e))},parse:function(e,t){if(e){if(t&&(t.parser||"string"==typeof t))return this.callBase.apply(this,arguments);t&&a.log("W0011");var n=r.parseNumber(e);return isNaN(n)&&(n=this.callBase.apply(this,arguments)),n}}};o.inject(u)}},,,,,function(e,t,n){var i=n(213).fileSaver,r=n(312),o=n(221),a=n(315),s=n(1).isFunction;t.export=function(e,t,n){if(e){var r=t.exportingAction,o=t.exportedAction,a=t.fileSavingAction,l={fileName:t.fileName,format:t.format,cancel:!1};s(r)&&r(l),l.cancel||n(e,t,function(e){s(o)&&o(),s(a)&&(l.data=e,a(l)),l.cancel||i.saveAs(l.fileName,t.format,e,t.proxyUrl,void 0,t.forceProxy)})}},t.fileSaver=i,t.excel={creator:r.ExcelCreator,getData:r.getData,formatConverter:n(217)},t.image={creator:o.imageCreator,getData:o.getData,testFormats:o.testFormats},t.pdf={getData:n(317).getData},t.svg={creator:a.svgCreator,getData:a.getData}},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(11).inArray,o=n(350),a=o.inherit({_getPlainItems:function(){return this._collectionWidget.option("items")||[]},getIndexByItemData:function(e){var t=this._collectionWidget.keyOf.bind(this._collectionWidget);return t?this.getIndexByKey(t(e)):r(e,this._getPlainItems())},getItemDataByIndex:function(e){return this._getPlainItems()[e]},deleteItemAtIndex:function(e){this._getPlainItems().splice(e,1)},itemsGetter:function(){return this._getPlainItems()},getKeysByItems:function(e){var t=this._collectionWidget.keyOf.bind(this._collectionWidget),n=e;if(t){n=[];for(var i=0;i<e.length;i++)n.push(t(e[i]))}return n},getIndexByKey:function(e){var t=this._cache,n=t&&t.keys||this.getKeysByItems(this._getPlainItems());if(t&&!t.keys&&(t.keys=n),"object"!==("undefined"==typeof e?"undefined":i(e)))return n.indexOf(e);for(var r=0,o=n.length;r<o;r++)if(this._equalKeys(e,n[r]))return r;return-1},getItemsByKeys:function(e,t){return(t||e).slice()},moveItemAtIndexToIndex:function(e,t){var n=this._getPlainItems(),i=n[e];n.splice(e,1),n.splice(t,0,i)},_isItemIndex:function(e){return"number"==typeof e&&Math.round(e)===e},_getNormalizedItemIndex:function(e){return this._collectionWidget._itemElements().index(e)},_normalizeItemIndex:function(e){return e},_denormalizeItemIndex:function(e){return e},_getItemByNormalizedIndex:function(e){return e>-1?this._collectionWidget._itemElements().eq(e):null},_itemsFromSameParent:function(){return!0}});e.exports=a},,,,,,,,,,function(e,t,n){function i(e){0===qe().backupCounter&&ue.getBody().appendChild(qe().backupContainer),++qe().backupCounter,e.append({element:qe().backupContainer})}function r(e,t){e.append({element:t}),--qe().backupCounter,0===qe().backupCounter&&ue.getBody().removeChild(qe().backupContainer)}function o(e){return e&&"string"!=typeof e}function a(e){return ue.createElementNS("http://www.w3.org/2000/svg",e)}function s(e,t){return null!==e?"url("+(t?pe.location.href.split("#")[0]:"")+"#"+e+")":e}function l(e,t){var n;for(n in t)e[n]=t[n];return e}function c(e,t){return e=e.toString().split("e"),e=Se(+(e[0]+"e"+(e[1]?+e[1]+t:t))),e=e.toString().split("e"),+(e[0]+"e"+(e[1]?+e[1]-t:-t))}function u(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t||{left:0,top:0}}function d(e,t,n,i,r,o){var a,s=!0,l=c(o,3)-c(r,3);return l&&(ke(l)%360===0&&(r=0,o=360,a=!0,o-=.01),r>360&&(r%=360),o>360&&(o%=360),r>o&&(r-=360),s=!1),r*=Me,o*=Me,[e,t,ye(i,n),be(i,n),Ce(r),we(r),Ce(o),we(o),a,xe(ke(o-r)/Te)%2?"1":"0",s]}function h(e,t){var n=[["M",0,0]];switch(t){case"line":n=p(e);break;case"area":n=p(e,!0);break;case"bezier":n=f(e);break;case"bezierarea":n=f(e,!0)}return n}function p(e,t){return g(e,_,t)}function f(e,t){return g(e,m,t)}function g(e,t,n){var i,r,o=[];if(e[0]&&e[0].length)for(i=0,r=e.length;i<r;++i)t(e[i],n,o);else t(e,n,o);return o}function _(e,t,n){var i=0,r=n.length,o=r,a=(e||[]).length;if(a){if(void 0!==e[0].x)for(;i<a;)n[o++]=["L",e[i].x,e[i++].y];else for(;i<a;)n[o++]=["L",e[i++],e[i++]];n[r][0]="M"}else n[o]=["M",0,0];return t&&n.push(["Z"]),n}function m(e,t,n){var i,r=n.length,o=(e||[]).length;if(o)if(void 0!==e[0].x)for(n[r++]=["M",e[0].x,e[0].y],i=1;i<o;)n[r++]=["C",e[i].x,e[i++].y,e[i].x,e[i++].y,e[i].x,e[i++].y];else for(n[r++]=["M",e[0],e[1]],i=2;i<o;)n[r++]=["C",e[i++],e[i++],e[i++],e[i++],e[i++],e[i++]];else n[r]=["M",0,0];return t&&n.push(["Z"]),n}function v(e){var t,n,i,r,o=[],a=0,s=e.length;for(t=0;t<s;++t)for(n=e[t],i=0,r=n.length;i<r;++i)o[a++]=n[i];return o.join(" ")}function y(e,t,n){var i,r,o=e.length,a=t.length,s=n.indexOf("area")!==-1?S:x;if(0===o)for(i=0;i<a;i++)e.push(t[i].slice(0));else o<a?s(e,t,n):o>a&&(r=t.slice(0),s(t,e,n));return r}function b(e,t){var n=e[e.length-2],i=e[e.length-1];switch(t){case"line":case"area":e[0]="L";break;case"bezier":case"bezierarea":e[0]="C",e[1]=e[3]=e[5]=n,e[2]=e[4]=e[6]=i}}function x(e,t,n){var i=e[e.length-1].slice(),r=e.length;for(b(i,n);r<t.length;r++)e[r]=i.slice(0)}function S(e,t,n){var i,r,o,a,s=e.length,l=t.length;if((s-1)%2===0&&(l-1)%2===0){i=(s-1)/2-1,r=e.slice(0,i+1),o=r[r.length-1].slice(0),a=e.slice(i+1)[0].slice(0),b(o,n),b(a,n);for(var c=i;c<(l-1)/2-1;c++)e.splice(c+1,0,o),e.splice(c+3,0,a)}}function w(e,t){var n,i,r=e._styles,o="";t=t||{};for(n in t)i=t[n],Ee(i)&&(i+="number"!=typeof i||Ve[n]?"":"px",r[n]=""!==i?i:null);for(n in r)i=r[n],i&&(o+=n+":"+i+";");return o&&e.element.setAttribute("style",o),e}function C(e,t){var n=e.element,i=e.attr(t);i&&i.indexOf("DevExpress")!==-1&&(n.removeAttribute(t),n.setAttribute(t,s(i,e.renderer.pathModified)))}function k(e,t){t=t||{};var n,i,r,a,c,u,d=e._settings,h={},p=e.element,f=e.renderer,g=f.rtl;if(!o(t))return t in d?d[t]:t in Xe?Xe[t]:0;l(h,t);for(n in h)if(i=h[n],void 0!==i){if(d[n]=i,"align"===n)n="text-anchor",i={left:g?"end":"start",center:"middle",right:g?"start":"end"}[i]||null;else{if("dashStyle"===n){a=!0;continue}if(n===Ne)a=!0;else if(!i||"fill"!==n&&"clip-path"!==n&&"filter"!==n||i.indexOf("DevExpress")===-1){if(/^(translate(X|Y)|rotate[XY]?|scale(X|Y)|sharp)$/i.test(n)){r=!0;continue}/^(x|y|d)$/i.test(n)&&(r=!0)}else e._addFixIRICallback(),i=s(i,f.pathModified)}null===i?p.removeAttribute(n):p.setAttribute(n,i)}if(a&&"dashStyle"in d)if(i=d.dashStyle,c=("_originalSW"in e?e._originalSW:d[Ne])||1,n="stroke-dasharray",i=null===i?"":Oe(i),""===i||"solid"===i||i===Ye)e.element.removeAttribute(n);else{for(i=i.replace(/longdash/g,"8,3,").replace(/dash/g,"4,3,").replace(/dot/g,"1,3,").replace(/,$/,"").split(","),u=i.length;u--;)i[u]=Pe(i[u])*c;e.element.setAttribute(n,i.join(","))}return r&&e._applyTransformation(),e}function T(e){var t,n=this;return o(e)&&(e=l({},e),t=e.segments,"points"in e&&(t=h(e.points,n.type),delete e.points),t&&(e.d=v(t),n.segments=t,delete e.segments)),k(n,e)}function E(e){var t,n,i,r,a,s,c=this._settings;return o(e)&&(e=l({},e),("x"in e||"y"in e||"innerRadius"in e||"outerRadius"in e||"startAngle"in e||"endAngle"in e)&&(c.x=t="x"in e?e.x:c.x,delete e.x,c.y=n="y"in e?e.y:c.y,delete e.y,c.innerRadius=i="innerRadius"in e?e.innerRadius:c.innerRadius,delete e.innerRadius,c.outerRadius=r="outerRadius"in e?e.outerRadius:c.outerRadius,delete e.outerRadius,c.startAngle=a="startAngle"in e?e.startAngle:c.startAngle,delete e.startAngle,c.endAngle=s="endAngle"in e?e.endAngle:c.endAngle,delete e.endAngle,e.d=Je.apply(null,d(t,n,i,r,a,s)))),k(this,e)}function A(e){var t,n,i,r,a,s,c,u=this;return o(e)&&(e=l({},e),void 0===e.x&&void 0===e.y&&void 0===e.width&&void 0===e.height&&void 0===e[Ne]||(t=void 0!==e.x?u._originalX=e.x:u._originalX||0,n=void 0!==e.y?u._originalY=e.y:u._originalY||0,i=void 0!==e.width?u._originalWidth=e.width:u._originalWidth||0,r=void 0!==e.height?u._originalHeight=e.height:u._originalHeight||0,a=void 0!==e[Ne]?u._originalSW=e[Ne]:u._originalSW,s=~~((i<r?i:r)/2),c=(a||0)<s?a||0:s,e.x=t+c/2,e.y=n+c/2,e.width=i-c,e.height=r-c,((a||0)!==c||!(0===c&&void 0===a))&&(e[Ne]=c)),"sharp"in e&&delete e.sharp),k(u,e)}function O(e){var t,n,i,r,a=this;return o(e)?(e=l({},e),t=a._settings,i=Ee(t[ze])&&Ee(t[Ne]),void 0!==e[Fe]&&(t[Fe]=e[Fe],delete e[Fe],n=!0),void 0!==e[ze]&&(t[ze]=e[ze],delete e[ze]),void 0!==e[Ne]&&(t[Ne]=e[Ne],delete e[Ne]),void 0!==e[He]&&(t[He]=e[He],delete e[He]),r=Ee(t[ze])&&Ee(t[Ne]),k(a,e),n=n||r!==i&&t[Fe],n&&(W(a,t.text,r),a._hasEllipsis=!1),(n||void 0!==e.x||void 0!==e.y)&&U(a),r&&$(a),a):k(a,e)}function I(e){return e=e||{},w(this,e),Ge in e&&U(this),this}function D(e,t,n,i,r){var o,a,s,c,u;if(void 0!==n.wholeText)e.push({value:n.wholeText,style:i,className:r,line:t,height:i[Ge]||0});else if("BR"===n.tagName)++t;else if(ue.isElementNode(n)){switch(l(o={},i),n.tagName){case"B":case"STRONG":o[je]="bold";break;case"I":case"EM":o[We]="italic";break;case"U":o[Ue]="underline"}for(a=n.style,a.color&&(o.fill=a.color),a.fontSize&&(o[Ge]=a.fontSize),a.fontStyle&&(o[We]=a.fontStyle),a.fontWeight&&(o[je]=a.fontWeight),a.textDecoration&&(o[Ue]=a.textDecoration),s=0,u=n.childNodes,c=u.length;s<c;++s)t=D(e,t,u[s],o,n.className||r)}return t}function M(e){var t,n,i,r=e[0];for(t=1,n=e.length;t<n;++t)i=e[t],i.line===r.line?(r.height=Y(r.height,i.height),r.inherits=r.inherits||0===Le(i.height),i.height=NaN):r=i}function P(e){var t=/(?:(<[a-z0-9]+\s*))([\s\S]*?)(>|\/>)/gi,n=/(style|class)\s*=\s*(["'])(?:(?!\2).)*\2\s?/gi;return e.replace(t,function(e,t,i,r){return i=(i&&i.match(n)||[]).map(function(e){return e}).join(" "),t+i+r})}function L(e){var t=[],n=ue.createElement("div");return n.innerHTML=e.replace(/\r/g,"").replace(/\n/g,"<br/>"),D(t,0,n,{},""),M(t),t}function B(e){for(var t=e.replace(/\r/g,"").split(/\n/g),n=0,i=[];n<t.length;n++)i.push({value:t[n].trim(),height:0});return i}function R(e,t,n){var i,r,o;for(i=0,r=e.length;i<r;++i)o=e[i],o[n]=a("tspan"),o[n].appendChild(ue.createTextNode(o.value)),o.style&&w({element:o[n],_styles:{}},o.style),o.className&&o[n].setAttribute("class",o.className),t.appendChild(o[n])}function V(){this._hasEllipsis&&this.attr({text:this._settings.text})}function F(e){var t,n,i,r,o,a,s,l,c,u=this,d=!1;if(V.call(u),l=u.renderer.text("...").attr(u._styles).append(u.renderer.root),c=l.getBBox().width,u._getElementBBox().width>e)for(e-c<0?e=0:e-=c,t=N(u.element,u._texts,e),n=0,i=t.length;n<i;++n)if(r=t[n].parts,1!==t[n].commonLength)for(o=0,a=r.length;o<a;++o)s=r[o],Ee(s.endIndex)?(H(s,s.endIndex),d=!0):s.startBox>e&&G(s);return l.remove(),u._hasEllipsis=d,d}function z(e,t,n,i){var r,o;if(n<=t&&i>t)for(r=1,o=e.value.length;r<=o;++r)if(n+e.tspan.getSubStringLength(0,r)>t)return r-1}function N(e,t,n){var i,r,o,a,s,l=[];if(t)for(i=0,r=t.length;i<r;++i)o=t[i],l[o.line]?(o.startBox=a,l[o.line].parts.push(o),l[o.line].commonLength+=o.value.length):(o.startBox=a=0,l.push({commonLength:o.value.length,parts:[o]})),s=a+o.tspan.getSubStringLength(0,o.value.length),o.endIndex=z(o,n,a,s),a=s;else o={value:e.textContent,tspan:e},o.startBox=a=0,s=o.value.length?a+o.tspan.getSubStringLength(0,o.value.length):0,o.endIndex=z(o,n,a,s),l=[{commonLength:e.textContent.length,parts:[o]}];return l}function H(e,t){var n=e.value.substr(0,t)+"...";e.tspan.textContent=n,e.stroke&&(e.stroke.textContent=n)}function G(e){e.tspan.parentNode.removeChild(e.tspan),e.stroke&&e.stroke.parentNode.removeChild(e.stroke)}function W(e,t,n){var i,r;e._texts=null,e.clear(),null!==t&&(t=""+t,e.renderer.encodeHtml||!/<[a-z][\s\S]*>/i.test(t)&&t.indexOf("&")===-1?/\n/g.test(t)?i=B(t):n&&(i=[{value:t.trim(),height:0}]):(r=P(t),i=L(r)),i?i.length&&(e._texts=i,n&&R(i,e.element,ze),R(i,e.element,"tspan")):e.element.appendChild(ue.createTextNode(t)))}function j(e,t,n){e.tspan.setAttribute(t,n),e.stroke&&e.stroke.setAttribute(t,n)}function U(e){if(e._texts){var t,n,i=e._texts,r=e._settings.x,o=isNaN(Le(e._styles[Ge]))?$e:e._styles[Ge],a=i[0];for(j(a,"x",r),j(a,"y",e._settings.y),t=1,n=i.length;t<n;++t)a=i[t],Le(a.height)>=0&&(j(a,"x",r),j(a,"dy",a.inherits?Y(a.height,o):a.height||o))}}function Y(e,t){var n=Le(e),i=Le(t),r=n||$e,o=i||$e;return r>o?isNaN(n)?r:e:isNaN(i)?o:t}function $(e){if(e._texts){var t,n,i,r=e._texts,o=e._settings[ze],a=e._settings[Ne],s=e._settings[He]||1;for(n=0,i=r.length;n<i;++n)t=r[n].stroke,t.setAttribute(ze,o),t.setAttribute(Ne,a),t.setAttribute(He,s),t.setAttribute("stroke-linejoin","round")}}function K(e,t,n,i){n=n||{};var r,o,a=e.renderer,s=e._settings,c={},u={translateX:0,translateY:0,scaleX:1,scaleY:1,rotate:0,rotateX:0,rotateY:0};if(i&&(n.complete=i),a.animationEnabled()){for(r in t)o=t[r],/^(translate(X|Y)|rotate[XY]?|scale(X|Y))$/i.test(r)?(c.transform=c.transform||{from:{},to:{}},c.transform.from[r]=r in s?Number(s[r].toFixed(3)):u[r],c.transform.to[r]=o):"arc"===r||"segments"===r?c[r]=o:c[r]={from:r in s?s[r]:parseFloat(e.element.getAttribute(r)||0),to:o};a.animateElement(e,c,l(l({},a._animation),n))}else n.step&&n.step.call(e,1,1),n.complete&&n.complete.call(e),e.attr(t);return e}function X(e,t,n){var i,r,o=this,a=o.segments||[];return o.renderer.animationEnabled()&&"points"in e&&(i=h(e.points,o.type),r=y(a,i,o.type),e.segments={from:a,to:i,end:r},delete e.points),K(o,e,t,n)}function q(e,t,n){var i=this,r=i._settings,o={from:{},to:{}};return i.renderer.animationEnabled()&&("x"in e||"y"in e||"innerRadius"in e||"outerRadius"in e||"startAngle"in e||"endAngle"in e)&&(o.from.x=r.x||0,o.from.y=r.y||0,o.from.innerRadius=r.innerRadius||0,o.from.outerRadius=r.outerRadius||0,o.from.startAngle=r.startAngle||0,o.from.endAngle=r.endAngle||0,o.to.x="x"in e?e.x:r.x,delete e.x,o.to.y="y"in e?e.y:r.y,delete e.y,o.to.innerRadius="innerRadius"in e?e.innerRadius:r.innerRadius,delete e.innerRadius,o.to.outerRadius="outerRadius"in e?e.outerRadius:r.outerRadius,delete e.outerRadius,o.to.startAngle="startAngle"in e?e.startAngle:r.startAngle,delete e.startAngle,o.to.endAngle="endAngle"in e?e.endAngle:r.endAngle,delete e.endAngle,e.arc=o),K(i,e,t,n)}function Z(e,t){var n={is:!1,name:t.name||t,after:t.after};return e?n.to=e:n.virtual=!0,n}function Q(e,t,n){var i=this;i.renderer=e,i.element=a(t),i._settings={},i._styles={},"path"===t&&(i.type=n||"line")}function J(e){et.remove(e)}function ee(e,t){Q.call(this,e,"path",t)}function te(e){Q.call(this,e,"path","arc")}function ne(e){Q.call(this,e,"rect")}function ie(e){Q.call(this,e,"text"),this.css({"white-space":"pre"})}function re(e,t){var n,i;for(n=t;i=e[n];++n)i._link.i=n}function oe(e,t){var n,i,r=t._links,o=e._link.after=e._link.after||t._linkAfter;if(o){for(n=0;(i=r[n])&&i._link.name!==o;++n);if(i)for(++n;(i=r[n])&&i._link.after===o;++n);}else n=r.length;r.splice(n,0,e),re(r,n)}function ae(e){var t,n=e._link.to._links;for(t=0;n[t]!==e;++t);n.splice(t,1),re(n,t)}function se(e){var t=this;t.root=t._createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",fill:Ye,stroke:Ye,"stroke-width":0}).attr({"class":e.cssClass}).css({"line-height":"normal","-ms-user-select":Ye,"-moz-user-select":Ye,"-webkit-user-select":Ye,"-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)",display:"block",overflow:"hidden"}),t._init(),t.pathModified=!!e.pathModified,t._$container=ce(e.container),t.root.append({element:e.container}),t.fixPlacement(),t._locker=0,t._backed=!1}function le(e,t){return"@"+e+"::"+t.step+":"+t.width+":"+t.opacity+":"+t.direction}var ce=n(2),ue=n(12),de=n(6),he=n(68),pe=de.getWindow(),fe=n(5),ge=n(29),_e=n(262).getSvgMarkup,me=n(657),ve=Math,ye=ve.min,be=ve.max,xe=ve.floor,Se=ve.round,we=ve.sin,Ce=ve.cos,ke=ve.abs,Te=ve.PI,Ee=n(1).isDefined,Ae=n(16),Oe=Ae.normalizeEnum,Ie=Ae.normalizeBBox,De=Ae.rotateBBox,Me=Te/180,Pe=parseInt,Le=parseFloat,Be=.5,Re=5,Ve={"column-count":!0,"fill-opacity":!0,"flex-grow":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,widows:!0,"z-index":!0,zoom:!0},Fe="text",ze="stroke",Ne="stroke-width",He="stroke-opacity",Ge="font-size",We="font-style",je="font-weight",Ue="text-decoration",Ye="none",$e=12,Ke=function(){return Object.create?function(e){return Object.create(e)}:function(e){var t=function(){};return t.prototype=e,new t}}(),Xe={scaleX:1,scaleY:1,"pointer-events":""},qe=he(function(){var e=ue.createElement("div"),t=0;return e.style.left="-9999px",e.style.position="absolute",{backupContainer:e,backupCounter:t}}),Ze=function(){var e=1;return function(){return"DevExpress_"+e++}}(),Qe={full:Ye,lefttop:"xMinYMin",leftcenter:"xMinYMid",leftbottom:"xMinYMax",centertop:"xMidYMin",center:"xMidYMid",centerbottom:"xMidYMax",righttop:"xMaxYMin",rightcenter:"xMaxYMid",rightbottom:"xMaxYMax"},Je=function(e,t,n,i,r,o,a,s,l,c){return["M",(e+i*r).toFixed(Re),(t-i*o).toFixed(Re),"A",i.toFixed(Re),i.toFixed(Re),0,c,0,(e+i*a).toFixed(Re),(t-i*s).toFixed(Re),l?"M":"L",(e+n*a).toFixed(5),(t-n*s).toFixed(Re),"A",n.toFixed(Re),n.toFixed(Re),0,c,1,(e+n*r).toFixed(Re),(t-n*o).toFixed(Re),"Z"].join(" ")};t.SvgElement=Q,Q.prototype={constructor:Q,_getJQElement:function(){return this._$element||(this._$element=ce(this.element))},_addFixIRICallback:function(){var e=this,t=function(){C(e,"fill"),C(e,"clip-path"),C(e,"filter")};e.element._fixFuncIri=t,t.renderer=e.renderer,et.add(t),e._addFixIRICallback=function(){}},_clearChildrenFuncIri:function(){var e=function e(t){var n;for(n=0;n<t.childNodes.length;n++)J(t.childNodes[n]._fixFuncIri),e(t.childNodes[n])};e(this.element)},dispose:function(){return J(this.element._fixFuncIri),this._clearChildrenFuncIri(),this._getJQElement().remove(),this},append:function(e){return(e||this.renderer.root).element.appendChild(this.element),this},remove:function(){var e=this.element;return e.parentNode&&e.parentNode.removeChild(e),this},enableLinks:function(){return this._links=[],this},virtualLink:function(e){return oe({_link:Z(null,e)},this),this},linkAfter:function(e){return this._linkAfter=e,this},linkOn:function(e,t){return this._link=Z(e,t),oe(this,e),this},linkOff:function(){return ae(this),this._link=null,this},linkAppend:function(){var e,t,n=this._link,i=n.to._links;for(e=n.i+1;(t=i[e])&&!t._link.is;++e);return this._insert(n.to,t),n.is=!0,this},_insert:function(e,t){e.element.insertBefore(this.element,t?t.element:null)},linkRemove:function(){return this.remove(),this._link.is=!1,this},clear:function(){return this._clearChildrenFuncIri(),this._getJQElement().empty(),this},toBackground:function(){var e=this.element,t=e.parentNode;return t&&t.insertBefore(e,t.firstChild),this},toForeground:function(){var e=this.element,t=e.parentNode;return t&&t.appendChild(e),this},attr:function(e){return k(this,e)},smartAttr:function(e){var t=this;return e.hatching&&"none"!==Oe(e.hatching.direction)?(e=l({},e),e.fill=t._hatching=t.renderer.lockHatching(e.fill,e.hatching,t._hatching),delete e.hatching):t._hatching&&(t.renderer.releaseHatching(t._hatching),t._hatching=null),t.attr(e)},css:function(e){return w(this,e)},animate:function(e,t,n){return K(this,e,t,n)},sharp:function(e){return this.attr({sharp:e||!0})},_applyTransformation:function(){var e,t,n,i,r=this._settings,o=[],a=r.sharp,s=r[Ne]%2,l=!s||"h"!==a&&a!==!0?0:Be,c=!s||"v"!==a&&a!==!0?0:Be;o.push("translate("+((r.translateX||0)+l)+","+((r.translateY||0)+c)+")"),r.rotate&&(n="rotateX"in r?r.rotateX:r.x,i="rotateY"in r?r.rotateY:r.y,o.push("rotate("+r.rotate+","+(n||0)+","+(i||0)+")")),e=Ee(r.scaleX),t=Ee(r.scaleY),(e||t)&&o.push("scale("+(e?r.scaleX:1)+","+(t?r.scaleY:1)+")"),o.length&&this.element.setAttribute("transform",o.join(" "))},move:function(e,t,n,i){var r={};return Ee(e)&&(r.translateX=e),Ee(t)&&(r.translateY=t),n?this.animate(r,i):this.attr(r),this},rotate:function(e,t,n,i,r){var o={rotate:e||0};return Ee(t)&&(o.rotateX=t),Ee(n)&&(o.rotateY=n),i?this.animate(o,r):this.attr(o),this},_getElementBBox:function(){var e,t=this.element;try{e=t.getBBox&&t.getBBox()}catch(e){}return e||{x:0,y:0,width:t.offsetWidth||0,height:t.offsetHeight||0}},getBBox:function(){var e=this._settings,t=this._getElementBBox();return t=e.rotate?De(t,[("rotateX"in e?e.rotateX:e.x)||0,("rotateY"in e?e.rotateY:e.y)||0],-e.rotate):Ie(t)},markup:function(){return _e(this.element)},getOffset:function(){return this._getJQElement().offset()},stopAnimation:function(e){var t=this.animation;return t&&t.stop(e),this},setTitle:function(e){var t=a("title");t.textContent=e||"",this.element.appendChild(t)},data:function(e,t){var n,i=this.element;if(void 0!==t)i[e]=t;else for(n in e)i[n]=e[n];return this},on:function(){var e=[this._getJQElement()];return e.push.apply(e,arguments),fe.on.apply(fe,e),this},off:function(){var e=[this._getJQElement()];return e.push.apply(e,arguments),fe.off.apply(fe,e),this},trigger:function(){var e=[this._getJQElement()];return e.push.apply(e,arguments),fe.trigger.apply(fe,e),this}},t.PathSvgElement=ee,ee.prototype=Ke(Q.prototype),l(ee.prototype,{constructor:ee,attr:T,animate:X}),t.ArcSvgElement=te,te.prototype=Ke(Q.prototype),l(te.prototype,{constructor:te,attr:E,animate:q}),t.RectSvgElement=ne,ne.prototype=Ke(Q.prototype),l(ne.prototype,{constructor:ne,attr:A}),t.TextSvgElement=ie,ie.prototype=Ke(Q.prototype),l(ie.prototype,{constructor:ie,attr:O,css:I,applyEllipsis:F,restoreText:V}),t.Renderer=se,se.prototype={constructor:se,_init:function(){var e=this;e._defs=e._createElement("defs").append(e.root),e._animationController=new me.AnimationController(e.root.element),e._animation={enabled:!0,duration:1e3,easing:"easeOutCubic"}},fixPlacement:function(){if(ge.mozilla||ge.msie){var e=u(this._$container.get(0)),t=c(e.left%1,2),n=c(e.top%1,2);ge.msie?this.root.css({transform:"translate("+-t+"px,"+-n+"px)"}):ge.mozilla&&this.root.move(-t,-n)}},removePlacementFix:function(){(ge.mozilla||ge.msie)&&(ge.msie?this.root.css({transform:""}):ge.mozilla&&this.root.attr({transform:null}))},setOptions:function(e){var t=this;return t.rtl=!!e.rtl,t.encodeHtml=!!e.encodeHtml,t.updateAnimationOptions(e.animation||{}),t.root.attr({direction:t.rtl?"rtl":"ltr"}),t},_createElement:function(e,n,i){var r=new t.SvgElement(this,e,i);return n&&r.attr(n),r},lock:function(){var e=this;return 0===e._locker&&(e._backed=!e._$container.is(":visible"),e._backed&&i(e.root)),++e._locker,e},unlock:function(){var e=this;return--e._locker,0===e._locker&&(e._backed&&(r(e.root,e._$container[0]),e.fixPlacement()),e._backed=!1),e},resize:function(e,t){return e>=0&&t>=0&&this.root.attr({width:e,height:t}),this},dispose:function(){var e,t=this;t.root.dispose(),t._defs.dispose(),t._animationController.dispose(),et.removeByRenderer(t);for(e in t)t[e]=null;return t},animationEnabled:function(){return!!this._animation.enabled},updateAnimationOptions:function(e){return l(this._animation,e),this},stopAllAnimations:function(e){return this._animationController[e?"lock":"stop"](),this},animateElement:function(e,t,n){return this._animationController.animateElement(e,t,n),this},svg:function(){this.removePlacementFix();var e=this.root.markup();return this.fixPlacement(),e},getRootOffset:function(){return this.root.getOffset()},onEndAnimation:function(e){this._animationController.onEndAnimation(e)},rect:function(e,n,i,r){var o=new t.RectSvgElement(this);return o.attr({x:e||0,y:n||0,width:i||0,height:r||0})},simpleRect:function(){return this._createElement("rect")},circle:function(e,t,n){return this._createElement("circle",{cx:e||0,cy:t||0,r:n||0})},g:function(){return this._createElement("g")},image:function e(t,n,i,r,o,a){var e=this._createElement("image",{x:t||0,y:n||0,width:i||0,height:r||0,preserveAspectRatio:Qe[Oe(a)]||Ye});return e.element.setAttributeNS("http://www.w3.org/1999/xlink","href",o||""),e},path:function(e,n){var i=new t.PathSvgElement(this,n);return i.attr({points:e||[]})},arc:function(e,n,i,r,o,a){var s=new t.ArcSvgElement(this);return s.attr({x:e||0,y:n||0,innerRadius:i||0,outerRadius:r||0,startAngle:o||0,endAngle:a||0})},text:function(e,n,i){var r=new t.TextSvgElement(this);return r.attr({text:e,x:n||0,y:i||0})},pattern:function e(n,i,r){i=i||{};var o,a,e,s,l,c=this,u=i.step||6,d=u/2,h=1.5*u;return o=r||Ze(),a="right"===Oe(i.direction)?"M "+d+" "+-d+" L "+-d+" "+d+" M 0 "+u+" L "+u+" 0 M "+h+" "+d+" L "+d+" "+h:"M 0 0 L "+u+" "+u+" M "+-d+" "+d+" L "+d+" "+h+" M "+d+" "+-d+" L "+h+" "+d,e=c._createElement("pattern",{id:o,width:u,height:u,patternUnits:"userSpaceOnUse"}).append(c._defs),e.id=o,s=c.rect(0,0,u,u).attr({fill:n,opacity:i.opacity}).append(e),l=new t.PathSvgElement(this).attr({d:a,"stroke-width":i.width||1,stroke:n}).append(e),e},_getPointsWithYOffset:function(e,t){return e.map(function(e,n){return n%2!==0?e+t:e})},clipRect:function(e,t,n,i){var r=this,o=Ze(),a=r._createElement("clipPath",{id:o}).append(r._defs),s=r.rect(e,t,n,i).append(a);return s.id=o,s.remove=function(){throw"Not implemented"},s.dispose=function(){return a.dispose(),a=null,this},s},shadowFilter:function(e,t,n,i,r,o,a,s,l){var c=this,u=Ze(),d=c._createElement("filter",{id:u,x:e||0,y:t||0,width:n||0,height:i||0}).append(c._defs),h=c._createElement("feGaussianBlur",{"in":"SourceGraphic",result:"gaussianBlurResult",stdDeviation:a||0}).append(d),p=c._createElement("feOffset",{"in":"gaussianBlurResult",result:"offsetResult",dx:r||0,dy:o||0}).append(d),f=c._createElement("feFlood",{result:"floodResult","flood-color":s||"","flood-opacity":l}).append(d),g=c._createElement("feComposite",{"in":"floodResult",in2:"offsetResult",operator:"in",result:"compositeResult"}).append(d),_=c._createElement("feComposite",{"in":"SourceGraphic",in2:"compositeResult",operator:"over"}).append(d);return d.id=u,d.gaussianBlur=h,d.offset=p,d.flood=f,d.composite=g,d.finalComposite=_,d.attr=function(e){var t=this,n={},i={},r={};return"x"in e&&(n.x=e.x),"y"in e&&(n.y=e.y),"width"in e&&(n.width=e.width),"height"in e&&(n.height=e.height),k(t,n),"blur"in e&&t.gaussianBlur.attr({stdDeviation:e.blur}),"offsetX"in e&&(i.dx=e.offsetX),"offsetY"in e&&(i.dy=e.offsetY),t.offset.attr(i),"color"in e&&(r["flood-color"]=e.color),"opacity"in e&&(r["flood-opacity"]=e.opacity),t.flood.attr(r),t},d},brightFilter:function(e,t){var n=this,i=Ze(),r=n._createElement("filter",{id:i}).append(n._defs),o=n._createElement("feComponentTransfer").append(r),a={type:e,slope:t};return r.id=i,n._createElement("feFuncR",a).append(o),n._createElement("feFuncG",a).append(o),n._createElement("feFuncB",a).append(o),r},getGrayScaleFilter:function(){if(this._grayScaleFilter)return this._grayScaleFilter;var e=this,t=Ze(),n=e._createElement("filter",{id:t}).append(e._defs);return e._createElement("feColorMatrix").attr({type:"matrix",values:"0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 0.6 0"}).append(n),n.id=t,e._grayScaleFilter=n,n},initHatching:function(){var e,t=this._hatchingStorage=this._hatchingStorage||{
22
22
  byHash:{},baseId:Ze()},n=t.byHash;for(e in n)n[e].pattern.dispose();t.byHash={},t.refToHash={},t.nextId=0},lockHatching:function(e,t,n){var i,r,o=this._hatchingStorage,a=le(e,t);return o.refToHash[n]!==a&&(n&&this.releaseHatching(n),i=o.byHash[a],i||(r=this.pattern(e,t,o.baseId+"-hatching-"+o.nextId++),i=o.byHash[a]={pattern:r,count:0},o.refToHash[r.id]=a),++i.count,n=i.pattern.id),n},releaseHatching:function(e){var t=this._hatchingStorage,n=t.refToHash[e],i=t.byHash[n];0===--i.count&&(i.pattern.dispose(),delete t.byHash[n],delete t.refToHash[e])}};var et=function(){var e=[];return{add:function(t){e.push(t)},remove:function(t){e=e.filter(function(e){return e!==t})},removeByRenderer:function(t){e=e.filter(function(e){return e.renderer!==t})},fire:function(){e.forEach(function(e){e()})}}}();t.refreshPaths=function(){et.fire()}},function(e,t,n){function i(e){return u(e,function(e){return e.getCoords()}).concat(u(e.slice().reverse(),function(e){return e.getCoords(!0)}))}var r=n(54),o=n(0).extend,a=n(133).chart,s=n(253),l=s.chart.line,c=s.polar.line,u=n(16).map,d=o,h=s.chart.spline._calculateBezierPoints;t.chart={},t.polar={};var p={_createBorderElement:l._createMainElement,_createLegendState:function(e,t){return{fill:e.color||t,opacity:e.opacity,hatching:e.hatching}},getValueRangeInitialValue:function(){return"logarithmic"!==this.valueAxisType&&"datetime"!==this.valueType&&this.showZero!==!1?0:a.getValueRangeInitialValue.call(this)},_getDefaultSegment:function(e){var t=l._getDefaultSegment(e);return t.area=t.line.concat(t.line.slice().reverse()),t},_updateElement:function(e,t,n,i){var r={points:t.line},o={points:t.area},a=e.line;n?(a&&a.animate(r),e.area.animate(o,{},i)):(a&&a.attr(r),e.area.attr(o))},_removeElement:function(e){e.line&&e.line.remove(),e.area.remove()},_drawElement:function(e){return{line:this._bordersGroup&&this._createBorderElement(e.line,{"stroke-width":this._styles.normal.border["stroke-width"]}).append(this._bordersGroup),area:this._createMainElement(e.area).append(this._elementsGroup)}},_applyStyle:function(e){var t=this;t._elementsGroup&&t._elementsGroup.smartAttr(e.elements),t._bordersGroup&&t._bordersGroup.attr(e.border),(t._graphics||[]).forEach(function(t){t.line&&t.line.attr({"stroke-width":e.border["stroke-width"]}).sharp()})},_parseStyle:function(e,t,n){var i=e.border||{},r=l._parseLineOptions(i,n);return r.stroke=i.visible&&r["stroke-width"]?r.stroke:"none",r["stroke-width"]=r["stroke-width"]||1,{border:r,elements:{stroke:"none",fill:e.color||t,hatching:e.hatching,opacity:e.opacity}}},_areBordersVisible:function(){var e=this._options;return e.border.visible||e.hoverStyle.border.visible||e.selectionStyle.border.visible},_createMainElement:function(e,t){return this._renderer.path(e,"area").attr(t)},_getTrackerSettings:function(e){return{"stroke-width":e.singlePointSegment?this._defaultTrackerWidth:0}},_getMainPointsFromSegment:function(e){return e.area}},f=t.chart.area=d({},l,p,{_prepareSegment:function(e,t){var n=this._processSinglePointsAreaSegment(e,t);return{line:n,area:i(n),singlePointSegment:n!==e}},_processSinglePointsAreaSegment:function(e,t){if(e&&1===e.length){var n=e[0],i=r.clone(n);return i[t?"y":"x"]+=1,i.argument=null,[n,i]}return e}});t.polar.area=d({},c,p,{_prepareSegment:function(e,t,n){return n&&c._closeSegment.call(this,e),f._prepareSegment.call(this,e)},_processSinglePointsAreaSegment:function(e){return s.polar.line._prepareSegment.call(this,e).line}}),t.chart.steparea=d({},f,{_prepareSegment:function(e,t){var n=s.chart.stepline;return e=f._processSinglePointsAreaSegment(e,t),f._prepareSegment.call(this,n._calculateStepLinePoints(e))}}),t.chart.splinearea=d({},f,{_areaPointsToSplineAreaPoints:function(e){var t=e[e.length/2-1],n=e[e.length/2];e.splice(e.length/2,0,{x:t.x,y:t.y},{x:n.x,y:n.y})},_prepareSegment:function(e,t){var n=f._processSinglePointsAreaSegment(e,t),i=f._prepareSegment.call(this,h(n,t));return this._areaPointsToSplineAreaPoints(i.area),i.singlePointSegment=n!==e,i},_getDefaultSegment:function(e){var t=f._getDefaultSegment(e);return this._areaPointsToSplineAreaPoints(t.area),t},_createMainElement:function(e,t){return this._renderer.path(e,"bezierarea").attr(t)},_createBorderElement:s.chart.spline._createMainElement})},function(e,t,n){var i,r=n(4).noop,o=n(112),a=o.postCtor,s={_dataSourceLoadErrorHandler:function(){this._dataSourceChangedHandler()},_dataSourceOptions:function(){return{paginate:!1}},_updateDataSource:function(){this._refreshDataSource(),this.option("dataSource")||this._dataSourceChangedHandler()},_dataIsLoaded:function(){return!this._dataSource||this._dataSource.isLoaded()},_dataSourceItems:function(){return this._dataSource&&this._dataSource.items()}};for(i in o)"postCtor"!==i&&(s[i]=o[i]);t.plugin={name:"data_source",init:function(){a.call(this)},dispose:r,members:s}},function(e,t,n){function i(){}function r(e,t){e.smartAttr(t)}function o(e,t){e.outer.attr({stroke:t.stroke,"stroke-width":t["stroke-width"],"stroke-opacity":t["stroke-opacity"]}),e.inner.smartAttr({fill:t.fill,opacity:t.opacity,hatching:t.hatching})}var a=n(0).extend;a(i.prototype,{value:0,isNode:function(){return!!(this.nodes&&this.level<this.ctx.maxLevel)},isActive:function(){var e=this.ctx;return this.level>=e.minLevel&&this.level<=e.maxLevel},updateStyles:function(){var e=this,t=Number(e.isNode());e.state=e._buildState(e.ctx.settings[t].state,!t&&e.color&&{fill:e.color})},_buildState:function(e,t){var n=a({},e);return t?a(n,t):n},updateLabelStyle:function(){var e=this.ctx.settings[Number(this.isNode())];this.labelState=e.labelState,this.labelParams=e.labelParams},_getState:function(){return this.state},applyState:function(){s[Number(this.isNode())](this.tile,this._getState())}});var s=[r,o];e.exports=i},function(e,t,n){var i=n(119);i.framework=n(325),n(43),n(345),n(109),n(113),n(356),n(182),n(357),n(358),n(18),n(159),n(206),n(78),n(90),n(157),n(25),n(124),n(359),e.exports=i},function(e,t,n){var i=n(6).getWindow(),r=n(1),o=["auto","none","inherit","initial"],a=function(e,t){var n=0;return t.forEach(function(t){n+=parseFloat(e[t])||0}),n},s=function(e,t){var n="width"===e?"Left":"Top",i="width"===e?"Right":"Bottom";return{padding:a(t,["padding"+n,"padding"+i]),border:a(t,["border"+n+"Width","border"+i+"Width"]),margin:a(t,["margin"+n,"margin"+i])}},l=function(e,t,n){var i=t[e];return"border-box"===t.boxSizing&&i.length&&"%"!==i[i.length-1]?n.border+n.padding:0},c=function(e,t,n){var r=i.getComputedStyle(e),o=s(t,r),a=e.getClientRects().length,c=e.getBoundingClientRect()[t],u=a?c:0;return u<=0?(u=parseFloat(r[t]||e.style[t])||0,u-=l(t,r,o)):u-=o.padding+o.border,n.paddings&&(u+=o.padding),n.borders&&(u+=o.border),n.margins&&(u+=o.margin),u},u=function(e){return r.isWindow(e)?e.innerHeight:e.offsetHeight},d=function(e,t){return e.indexOf("px")>0?e=parseInt(e.replace("px","")):e.indexOf("%")>0?e=parseInt(e.replace("%",""))*u(t)/100:isNaN(e)||(e=parseInt(e)),e},h=function(e,t,n){if(!e)return null;if(o.indexOf(e)>-1)return t?null:e;if(r.isString(e)&&(e=d(e,n)),r.isNumeric(e))return Math.max(0,e+t);var i=t<0?" - ":" ";return"calc("+e+i+Math.abs(t)+"px)"},p=function(e,t,n){var i=h(e,t,n);return null!==i?i:"none"},f=function(e,t,n){var i=h(e,t,n);return null!==i?i:0},g=function(e,t){if(!e)return 0;var n=s("height",i.getComputedStyle(e));return n.padding+n.border+(t?n.margin:0)},_=function(e){if(e){var t=e.getBoundingClientRect();if(t.height)return t.height}return 0};t.getSize=c,t.getElementBoxParams=s,t.addOffsetToMaxHeight=p,t.addOffsetToMinHeight=f,t.getVerticalOffsets=g,t.getVisibleHeight=_},function(e,t,n){var i=n(2),r=n(5),o=n(8),a=n(39),s=n(0).extend,l=n(11).inArray,c=n(3).each,u=n(1),d=n(6),h=n(24),p=n(31).fitIntoRange,f=n(58),g=n(9),_=n(78),m=u.isPlainObject,v=u.isFunction,y=n(13),b="dxResizable",x="dx-resizable",S="dx-resizable-resizing",w="dx-resizable-handle",C="dx-resizable-handle-top",k="dx-resizable-handle-bottom",T="dx-resizable-handle-left",E="dx-resizable-handle-right",A="dx-resizable-handle-corner",O=g.addNamespace(_.start,b),I=g.addNamespace(_.move,b),D=g.addNamespace(_.end,b),M={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},P=f.inherit({_getDefaultOptions:function(){return s(this.callBase(),{handles:"all",step:"1",stepPrecision:"simple",area:void 0,minWidth:30,maxWidth:1/0,minHeight:30,maxHeight:1/0,onResizeStart:null,onResize:null,onResizeEnd:null})},_init:function(){this.callBase(),this.$element().addClass(x)},_initMarkup:function(){this.callBase(),this._renderHandles()},_render:function(){this.callBase(),this._renderActions()},_renderActions:function(){this._resizeStartAction=this._createActionByOption("onResizeStart"),this._resizeEndAction=this._createActionByOption("onResizeEnd"),this._resizeAction=this._createActionByOption("onResize")},_renderHandles:function(){var e=this.option("handles");if("none"!==e){var t="all"===e?["top","bottom","left","right"]:e.split(" ");c(t,function(e,t){this._renderHandle(t)}.bind(this)),l("bottom",t)+1&&l("right",t)+1&&this._renderHandle("corner-bottom-right"),l("bottom",t)+1&&l("left",t)+1&&this._renderHandle("corner-bottom-left"),l("top",t)+1&&l("right",t)+1&&this._renderHandle("corner-top-right"),l("top",t)+1&&l("left",t)+1&&this._renderHandle("corner-top-left")}},_renderHandle:function(e){var t=this.$element(),n=i("<div>");n.addClass(w).addClass(w+"-"+e).appendTo(t),this._attachEventHandlers(n)},_attachEventHandlers:function(e){if(!this.option("disabled")){var t={};t[O]=this._dragStartHandler.bind(this),t[I]=this._dragHandler.bind(this),t[D]=this._dragEndHandler.bind(this),r.on(e,t,{direction:"both",immediate:!0})}},_dragStartHandler:function(e){var t=this.$element();if(t.is(".dx-state-disabled, .dx-state-disabled *"))return void(e.cancel=!0);this._toggleResizingClass(!0),this._movingSides=this._getMovingSides(e),this._elementLocation=h.locate(t);var n=t.get(0).getBoundingClientRect();this._elementSize={width:n.width,height:n.height},this._renderDragOffsets(e),this._resizeStartAction({event:e,width:this._elementSize.width,height:this._elementSize.height,handles:this._movingSides}),e.targetElements=null},_toggleResizingClass:function(e){this.$element().toggleClass(S,e)},_renderDragOffsets:function(e){var t=this._getArea();if(t){var n=i(e.target).closest("."+w),r=n.outerWidth(),o=n.outerHeight(),a=n.offset(),s=t.offset;e.maxLeftOffset=a.left-s.left,e.maxRightOffset=s.left+t.width-a.left-r,e.maxTopOffset=a.top-s.top,e.maxBottomOffset=s.top+t.height-a.top-o}},_getBorderWidth:function(e,t){if(u.isWindow(e.get(0)))return 0;var n=e.css(M[t]);return parseInt(n)||0},_dragHandler:function(e){var t=this.$element(),n=this._movingSides,i=this._elementLocation,r=this._elementSize,o=this._getOffset(e),a=r.width+o.x*(n.left?-1:1),s=r.height+o.y*(n.top?-1:1);(o.x||"strict"===this.option("stepPrecision"))&&this._renderWidth(a),(o.y||"strict"===this.option("stepPrecision"))&&this._renderHeight(s);var l=t.get(0).getBoundingClientRect(),c=o.y-((l.height||s)-s),u=o.x-((l.width||a)-a);h.move(t,{top:i.top+(n.top?c:0),left:i.left+(n.left?u:0)}),this._resizeAction({event:e,width:this.option("width")||a,height:this.option("height")||s,handles:this._movingSides}),y.triggerResizeEvent(t)},_getOffset:function(e){var t=e.offset,n=a.pairToObject(this.option("step")),i=this._getMovingSides(e),r="strict"===this.option("stepPrecision");return i.left||i.right||(t.x=0),i.top||i.bottom||(t.y=0),r?this._getStrictOffset(t,n,i):this._getSimpleOffset(t,n)},_getSimpleOffset:function(e,t){return{x:e.x-e.x%t.h,y:e.y-e.y%t.v}},_getStrictOffset:function(e,t,n){var i=this._elementLocation,r=this._elementSize,o=n.left?i.left:i.left+r.width,a=n.top?i.top:i.top+r.height,s=(o+e.x)%t.h,l=(a+e.y)%t.v,c=Math.sign||function(e){return e=+e,0===e||isNaN(e)?e:e>0?1:-1},u=function(e,t){return(1+.2*c(t))%1*e},d=function(e,t){return Math.abs(e)<.2*t},h=e.x-s,p=e.y-l;return s>u(t.h,e.x)&&(h+=t.h),l>u(t.v,e.y)&&(p+=t.v),{x:!n.left&&!n.right||d(e.x,t.h)?0:h,y:!n.top&&!n.bottom||d(e.y,t.v)?0:p}},_getMovingSides:function(e){var t=i(e.target),n=t.hasClass(A+"-top-left"),r=t.hasClass(A+"-top-right"),o=t.hasClass(A+"-bottom-left"),a=t.hasClass(A+"-bottom-right");return{top:t.hasClass(C)||n||r,left:t.hasClass(T)||n||o,bottom:t.hasClass(k)||o||a,right:t.hasClass(E)||r||a}},_getArea:function(){var e=this.option("area");return v(e)&&(e=e.call(this)),m(e)?this._getAreaFromObject(e):this._getAreaFromElement(e)},_getAreaFromObject:function(e){var t={width:e.right-e.left,height:e.bottom-e.top,offset:{left:e.left,top:e.top}};return this._correctAreaGeometry(t),t},_getAreaFromElement:function(e){var t,n=i(e);return n.length&&(t={width:n.innerWidth(),height:n.innerHeight(),offset:s({top:0,left:0},u.isWindow(n[0])?{}:n.offset())},this._correctAreaGeometry(t,n)),t},_correctAreaGeometry:function(e,t){var n=t?this._getBorderWidth(t,"left"):0,i=t?this._getBorderWidth(t,"top"):0;e.offset.left+=n+this._getBorderWidth(this.$element(),"left"),e.offset.top+=i+this._getBorderWidth(this.$element(),"top"),e.width-=this.$element().outerWidth()-this.$element().innerWidth(),e.height-=this.$element().outerHeight()-this.$element().innerHeight()},_dragEndHandler:function(e){var t=this.$element();this._resizeEndAction({event:e,width:t.outerWidth(),height:t.outerHeight(),handles:this._movingSides}),this._toggleResizingClass(!1)},_renderWidth:function(e){this.option("width",p(e,this.option("minWidth"),this.option("maxWidth")))},_renderHeight:function(e){this.option("height",p(e,this.option("minHeight"),this.option("maxHeight")))},_optionChanged:function(e){switch(e.name){case"disabled":case"handles":this._invalidate();break;case"minWidth":case"maxWidth":d.hasWindow()&&this._renderWidth(this.$element().outerWidth());break;case"minHeight":case"maxHeight":d.hasWindow()&&this._renderHeight(this.$element().outerHeight());break;case"onResize":case"onResizeStart":case"onResizeEnd":this._renderActions();break;case"area":case"stepPrecision":case"step":break;default:this.callBase(e)}},_clean:function(){this.$element().find("."+w).remove()}});o(b,P),e.exports=P},,function(e,t,n){var i=n(5),r=n(13),o=n(12),a=n(10),s=n(61),l=n(18),c=n(9),u="dxdblclick",d="dxDblClick",h=c.addNamespace(l.name,d),p=300,f=a.inherit({ctor:function(){this._handlerCount=0,this._forgetLastClick()},_forgetLastClick:function(){this._firstClickTarget=null,this._lastClickTimeStamp=-p},add:function(){this._handlerCount<=0&&i.on(o.getDocument(),h,this._clickHandler.bind(this)),this._handlerCount++},_clickHandler:function(e){var t=e.timeStamp||Date.now();t-this._lastClickTimeStamp<p?(c.fireEvent({type:u,target:r.closestCommonParent(this._firstClickTarget,e.target),originalEvent:e}),this._forgetLastClick()):(this._firstClickTarget=e.target,this._lastClickTimeStamp=t)},remove:function(){this._handlerCount--,this._handlerCount<=0&&(this._forgetLastClick(),i.off(o.getDocument(),h))}});s(u,new f),t.name=u},,,,,,,function(e,t,n){var i=n(2),r=n(12),o=n(6),a=o.getWindow(),s=o.getNavigator(),l=n(5),c=n(21),u=n(29),d=n(1),h={EXCEL:"xlsx",CSS:"css",PNG:"png",JPEG:"jpeg",GIF:"gif",SVG:"svg",PDF:"pdf"},p=t.MIME_TYPES={CSS:"text/css",EXCEL:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",PNG:"image/png",JPEG:"image/jpeg",GIF:"image/gif",SVG:"image/svg+xml",PDF:"application/pdf"};t.fileSaver={_revokeObjectURLTimeout:3e4,_getDataUri:function(e,t){return"data:"+p[e]+";base64,"+t},_linkDownloader:function(e,t,n){var o=r.createElement("a"),a={download:e,href:t};return l.on(i(o),"click",function(){i(o).remove(),n&&n.apply(this,arguments)}),r.getBody().appendChild(o),i(o).css({display:"none"}).text("load").attr(a)[0].click(),o},_formDownloader:function(e,t,n,r){var o={method:"post",action:e,enctype:"multipart/form-data"},a=i("<form>").css({display:"none"}).attr(o);a.append('<input type="hidden" name="fileName" value="'+t+'" />'),a.append('<input type="hidden" name="contentType" value="'+n+'" />'),a.append('<input type="hidden" name="data" value="'+r+'" />'),a.appendTo("body"),l.trigger(a,"submit"),l.trigger(a,"submit")&&a.remove()},_saveByProxy:function(e,t,n,i){return this._formDownloader(e,t,p[n],i)},_winJSBlobSave:function(e,t,n){var i=new Windows.Storage.Pickers.FileSavePicker;i.suggestedStartLocation=Windows.Storage.Pickers.PickerLocationId.documentsLibrary,i.fileTypeChoices.insert(p[n],["."+h[n]]),i.suggestedFileName=t,i.pickSaveFileAsync().then(function(t){t&&t.openAsync(Windows.Storage.FileAccessMode.readWrite).then(function(t){var n=e.msDetachStream();Windows.Storage.Streams.RandomAccessStream.copyAsync(n,t).then(function(){t.flushAsync().done(function(){n.close(),t.close()})})})})},_saveBlobAs:function(e,t,n,i){var r=this;if(r._blobSaved=!1,d.isDefined(s.msSaveOrOpenBlob))s.msSaveOrOpenBlob(n,e),r._blobSaved=!0;else if(d.isDefined(a.WinJS))r._winJSBlobSave(n,e,t),r._blobSaved=!0;else{var o=a.URL||a.webkitURL||a.mozURL||a.msURL||a.oURL;if(d.isDefined(o)){var l=o.createObjectURL(n),c=r._revokeObjectURLTimeout,u=function(e){setTimeout(function(){o.revokeObjectURL(l)},c)};return r._linkDownloader(e,l,u)}}},saveAs:function(e,t,n,i,r,o){if(e+="."+h[t],o)this._saveByProxy(i,e,t,n);else if(d.isFunction(a.Blob))this._saveBlobAs(e,t,n,r);else if(d.isDefined(i)&&!d.isDefined(s.userAgent.match(/iPad/i)))this._saveByProxy(i,e,t,n);else{if(d.isDefined(s.userAgent.match(/iPad/i))||c.log("E1034"),u.msie&&parseInt(u.version)<10)return;this._linkDownloader(e,this._getDataUri(t,n),r)}}}},function(e,t,n){var i=n(35),r=n(12),o=n(6),a=o.getWindow(),s=n(1),l=n(83),c=n(203),u=n(216),d=function(e,t){return new h(e,t)},h=function(e,t){return e?"string"==typeof e?"body"===e?(this[0]=t?t.body:r.getBody(),this.length=1,this):(t=t||r.getDocument(),"<"===e[0]?(this[0]=r.createElement(e.slice(1,-1),t),this.length=1,this):([].push.apply(this,r.querySelectorAll(t,e)),this)):r.isNode(e)||s.isWindow(e)?(this[0]=e,this.length=1,this):Array.isArray(e)?([].push.apply(this,e),this):d(e.toArray?e.toArray():[e]):(this.length=0,this)};d.fn={dxRenderer:!0},h.prototype=d.fn;var p=function(e,t){for(var n=0;n<this.length;n++){var i=d(this[n]);i[e].apply(i,t)}return this},f=function(e,t,n){void 0!==n&&null!==n?r.setAttribute(e,t,n):r.removeAttribute(e,t)};h.prototype.show=function(){return this.toggle(!0)},h.prototype.hide=function(){return this.toggle(!1)},h.prototype.toggle=function(e){return this[0]&&this.toggleClass("dx-state-invisible",!e),this},h.prototype.attr=function(e,t){if(this.length>1&&arguments.length>1)return p.call(this,"attr",arguments);if(!this[0])return s.isObject(e)||void 0!==t?this:void 0;if(!this[0].getAttribute)return this.prop(e,t);if("string"==typeof e&&1===arguments.length){var n=this[0].getAttribute(e);return null==n?void 0:n}if(s.isPlainObject(e))for(var i in e)this.attr(i,e[i]);else f(this[0],e,t);return this},h.prototype.removeAttr=function(e){return this[0]&&r.removeAttribute(this[0],e),this},h.prototype.prop=function(e,t){if(!this[0])return this;if("string"==typeof e&&1===arguments.length)return this[0][e];if(s.isPlainObject(e))for(var n in e)this.prop(n,e[n]);else r.setProperty(this[0],e,t);return this},h.prototype.addClass=function(e){return this.toggleClass(e,!0)},h.prototype.removeClass=function(e){return this.toggleClass(e,!1)},h.prototype.hasClass=function(e){if(!this[0]||void 0===this[0].className)return!1;for(var t=e.split(" "),n=0;n<t.length;n++)if(this[0].classList){if(this[0].classList.contains(t[n]))return!0}else if(this[0].className.split(" ").indexOf(t[n])>=0)return!0;return!1},h.prototype.toggleClass=function(e,t){if(this.length>1)return p.call(this,"toggleClass",arguments);if(!this[0]||!e)return this;t=void 0===t?!this.hasClass(e):t;for(var n=e.split(" "),i=0;i<n.length;i++)r.setClass(this[0],n[i],t);return this},["width","height","outerWidth","outerHeight","innerWidth","innerHeight"].forEach(function(e){var t=e.toLowerCase().indexOf("width")>=0?"Width":"Height",n=t.toLowerCase(),i=0===e.indexOf("outer"),o=0===e.indexOf("inner");h.prototype[e]=function(l){if(this.length>1&&arguments.length>0)return p.call(this,e,arguments);var u=this[0];if(u){if(s.isWindow(u))return i?u["inner"+t]:r.getDocumentElement()["client"+t];if(r.isDocument(u)){var d=r.getDocumentElement(),h=r.getBody();return Math.max(h["scroll"+t],h["offset"+t],d["scroll"+t],d["offset"+t],d["client"+t])}if(0===arguments.length||"boolean"==typeof l){var f={paddings:o||i,borders:i,margins:l};return c.getSize(u,n,f)}if(void 0===l||null===l)return this;if(s.isNumeric(l)){var g=a.getComputedStyle(u),_=c.getElementBoxParams(n,g),m="border-box"===g.boxSizing;i?l-=m?0:_.border+_.padding:o?l+=m?_.border:-_.padding:m&&(l+=_.border+_.padding)}return l+=s.isNumeric(l)?"px":"",r.setStyle(u,n,l),this}}}),h.prototype.html=function(e){return arguments.length?(this.empty(),"string"==typeof e&&!u.isTablePart(e)||"number"==typeof e?(this[0].innerHTML=e,this):this.append(u.parseHTML(e))):this[0].innerHTML};var g=function(e,t){if(this[0]&&e){"string"==typeof e?e=u.parseHTML(e):e.nodeType?e=[e]:s.isNumeric(e)&&(e=[r.createTextNode(e)]);for(var n=0;n<e.length;n++){var i=e[n],o=this[0],a="TABLE"===o.tagName&&"TR"===i.tagName;a&&o.tBodies&&o.tBodies.length&&(o=o.tBodies[0]),r.insertElement(o,i.nodeType?i:i[0],t)}}},_=function(e,t){if(this[0]&&this[0].style){e=l.styleProp(e);for(var n=0;n<this.length;n++)this[n].style[e]=l.normalizeStyleProp(e,t)}};h.prototype.css=function(e,t){if(s.isString(e)){if(2!==arguments.length){if(!this[0])return;e=l.styleProp(e);var n=a.getComputedStyle(this[0])[e]||this[0].style[e];return s.isNumeric(n)?n.toString():n}_.call(this,e,t)}else if(s.isPlainObject(e))for(var i in e)_.call(this,i,e[i]);return this},h.prototype.prepend=function(e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.prepend(arguments[t]);return this}return g.apply(this,[e,this[0].firstChild]),this},h.prototype.append=function(e){if(arguments.length>1){for(var t=0;t<arguments.length;t++)this.append(arguments[t]);return this}return g.apply(this,[e]),this},h.prototype.prependTo=function(e){return e=d(e),e[0]&&r.insertElement(e[0],this[0],e[0].firstChild),this},h.prototype.appendTo=function(e){return this.length>1?p.call(this,"appendTo",arguments):(r.insertElement(d(e)[0],this[0]),this)},h.prototype.insertBefore=function(e){return e&&e[0]&&r.insertElement(e[0].parentNode,this[0],e[0]),this},h.prototype.insertAfter=function(e){return e&&e[0]&&r.insertElement(e[0].parentNode,this[0],e[0].nextSibling),this},h.prototype.before=function(e){return this[0]&&r.insertElement(this[0].parentNode,e[0],this[0]),this},h.prototype.after=function(e){return this[0]&&r.insertElement(this[0].parentNode,e[0],this[0].nextSibling),this},h.prototype.wrap=function(e){if(this[0]){var t=d(e);t.insertBefore(this),t.append(this)}return this},h.prototype.wrapInner=function(e){var t=this.contents();return t.length?t.wrap(e):this.append(e),this},h.prototype.replaceWith=function(e){if(e&&e[0])return e.insertBefore(this),this.remove(),e},h.prototype.remove=function(){return this.length>1?p.call(this,"remove",arguments):(i.cleanDataRecursive(this[0],!0),r.removeElement(this[0]),this)},h.prototype.detach=function(){return this.length>1?p.call(this,"detach",arguments):(r.removeElement(this[0]),this)},h.prototype.empty=function(){return this.length>1?p.call(this,"empty",arguments):(i.cleanDataRecursive(this[0]),r.setText(this[0],""),this)},h.prototype.clone=function(){for(var e=[],t=0;t<this.length;t++)e.push(this[t].cloneNode(!0));return d(e)},h.prototype.text=function(e){if(!arguments.length){for(var t="",n=0;n<this.length;n++)t+=this[n]&&this[n].textContent||"";return t}var o=s.isFunction(e)?e():e;return i.cleanDataRecursive(this[0],!1),r.setText(this[0],s.isDefined(o)?o:""),this},h.prototype.val=function(e){return 1===arguments.length?this.prop("value",s.isDefined(e)?e:""):this.prop("value")},h.prototype.contents=function(){if(!this[0])return d();var e=[];return e.push.apply(e,this[0].childNodes),d(e)},h.prototype.find=function(e){var t=d();if(!e)return t;var n,i=[];if("string"==typeof e)for(e=e.trim(),n=0;n<this.length;n++){var o=this[n];if(r.isElementNode(o)){var a=o.getAttribute("id"),s=a||"dx-query-children";a||f(o,"id",s),s="[id='"+s+"'] ";var l=s+e.replace(/([^\\])(,)/g,"$1, "+s);i.push.apply(i,r.querySelectorAll(o,l)),f(o,"id",a)}else r.isDocument(o)&&i.push.apply(i,r.querySelectorAll(o,e))}else for(n=0;n<this.length;n++)e=r.isNode(e)?e:e[0],this[n]!==e&&this[n].contains(e)&&i.push(e);return t.add(i)};var m=function(e,t){return!t.nodeType||!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)};h.prototype.filter=function(e){if(!e)return d();if(":visible"===e)return this.filter(m);if(":hidden"===e)return this.filter(function(e,t){return!m(e,t)});for(var t=[],n=0;n<this.length;n++){var i=this[n];if(r.isElementNode(i)&&"string"===s.type(e))r.elementMatches(i,e)&&t.push(i);else if(r.isNode(e)||s.isWindow(e))e===i&&t.push(i);else if(s.isFunction(e))e.call(i,n,i)&&t.push(i);else for(var o=0;o<e.length;o++)e[o]===i&&t.push(i)}return d(t)},h.prototype.not=function(e){for(var t=[],n=this.filter(e).toArray(),i=0;i<this.length;i++)n.indexOf(this[i])===-1&&t.push(this[i]);return d(t)},h.prototype.is=function(e){return!!this.filter(e).length},h.prototype.children=function(e){for(var t=[],n=0;n<this.length;n++)for(var i=this[n]?this[n].childNodes:[],o=0;o<i.length;o++)r.isElementNode(i[o])&&t.push(i[o]);return t=d(t),e?t.filter(e):t},h.prototype.siblings=function(){var e=this[0];if(!e||!e.parentNode)return d();for(var t=[],n=e.parentNode.childNodes||[],i=0;i<n.length;i++){var o=n[i];r.isElementNode(o)&&o!==e&&t.push(o)}return d(t)},h.prototype.each=function(e){for(var t=0;t<this.length&&e.call(this[t],t,this[t])!==!1;t++);},h.prototype.index=function(e){return e?(e=d(e),this.toArray().indexOf(e[0])):this.parent().children().index(this)},h.prototype.get=function(e){return this[e<0?this.length+e:e]},h.prototype.eq=function(e){return e=e<0?this.length+e:e,d(this[e])},h.prototype.first=function(){return this.eq(0)},h.prototype.last=function(){return this.eq(-1)},h.prototype.parent=function(e){if(!this[0])return d();var t=d(this[0].parentNode);return!e||t.is(e)?t:d()},h.prototype.parents=function(e){for(var t=[],n=this.parent();n&&n[0]&&!r.isDocument(n[0]);)r.isElementNode(n[0])&&(!e||e&&n.is(e))&&t.push(n.get(0)),n=n.parent();return d(t)},h.prototype.closest=function(e){if(this.is(e))return this;for(var t=this.parent();t&&t.length;){if(t.is(e))return t;t=t.parent()}return d()},h.prototype.next=function(e){if(!this[0])return d();var t=d(this[0].nextSibling);if(!arguments.length)return t;for(;t&&t.length;){if(t.is(e))return t;t=t.next()}return d()},h.prototype.prev=function(){return this[0]?d(this[0].previousSibling):d()},h.prototype.add=function(e){for(var t=d(e),n=this.toArray(),i=0;i<t.length;i++){var r=t[i];n.indexOf(r)===-1&&n.push(r)}return d(n)};var v=[];h.prototype.splice=function(){return d(v.splice.apply(this,arguments))},h.prototype.slice=function(){return d(v.slice.apply(this,arguments))},h.prototype.toArray=function(){return v.slice.call(this)};var y=function(e){return s.isWindow(e)?e:e.defaultView};h.prototype.offset=function(){if(this[0]){if(!this[0].getClientRects().length)return{top:0,left:0};var e=this[0].getBoundingClientRect(),t=y(this[0].ownerDocument),n=this[0].ownerDocument.documentElement;return{top:e.top+t.pageYOffset-n.clientTop,left:e.left+t.pageXOffset-n.clientLeft}}},h.prototype.offsetParent=function(){if(!this[0])return d();for(var e=d(this[0].offsetParent);e[0]&&"static"===e.css("position");)e=d(e[0].offsetParent);return e=e[0]?e:d(r.getDocumentElement())},h.prototype.position=function(){if(this[0]){var e,t=parseFloat(this.css("marginTop")),n=parseFloat(this.css("marginLeft"));if("fixed"===this.css("position"))return e=this[0].getBoundingClientRect(),{top:e.top-t,left:e.left-n};e=this.offset();var i=this.offsetParent(),r={top:0,left:0};return"HTML"!==i[0].nodeName&&(r=i.offset()),r={top:r.top+parseFloat(i.css("borderTopWidth")),left:r.left+parseFloat(i.css("borderLeftWidth"))},{top:e.top-r.top-t,left:e.left-r.left-n}}},[{name:"scrollLeft",offsetProp:"pageXOffset",scrollWindow:function(e,t){e.scrollTo(t,e.pageYOffset)}},{name:"scrollTop",offsetProp:"pageYOffset",scrollWindow:function(e,t){e.scrollTo(e.pageXOffset,t)}}].forEach(function(e){var t=e.name;h.prototype[t]=function(n){if(this[0]){var i=y(this[0]);return void 0===n?i?i[e.offsetProp]:this[0][t]:(i?e.scrollWindow(i,n):this[0][t]=n,this)}}}),h.prototype.data=function(e,t){if(this[0])return arguments.length<2?i.data.call(d,this[0],e):(i.data.call(d,this[0],e,t),this)},h.prototype.removeData=function(e){return this[0]&&i.removeData(this[0],e),this};var b=function(){return d.apply(this,arguments)};Object.defineProperty(b,"fn",{enumerable:!0,configurable:!0,get:function(){return d.fn},set:function(e){d.fn=e}}),e.exports={set:function(e){d=e},get:function(){return b}}},function(e,t,n){var i=["pageX","pageY","screenX","screenY","clientX","clientY"],r=function(e,t){if(t[e]&&!t.touches||!t.touches)return t[e];var n=t.touches.length?t.touches:t.changedTouches;if(n.length)return n[0][e]};e.exports=function(e){i.forEach(function(t){e(t,function(e){return r(t,e)})},this)}},function(e,t,n){var i=n(11).merge,r=n(12),o=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,a={"default":{tagsCount:0,startTags:"",endTags:""},thead:{tagsCount:1,startTags:"<table>",endTags:"</table>"},td:{tagsCount:3,startTags:"<table><tbody><tr>",endTags:"</tr></tbody></table>"},col:{tagsCount:2,startTags:"<table><colgroup>",endTags:"</colgroup></table>"},tr:{tagsCount:2,startTags:"<table><tbody>",endTags:"</tbody></table>"}};a.tbody=a.colgroup=a.caption=a.tfoot=a.thead,a.th=a.td;var s=function(e){if("string"!=typeof e)return null;var t=r.createDocumentFragment(),n=t.appendChild(r.createElement("div")),s=o.exec(e),l=s&&s[1].toLowerCase(),c=a[l]||a.default;n.innerHTML=c.startTags+e+c.endTags;for(var u=0;u<c.tagsCount;u++)n=n.lastChild;return i([],n.childNodes)},l=function(e){var t=o.exec(e);return t&&t[1]in a};t.parseHTML=s,t.isTablePart=l},function(e,t,n){var i=n(1),r=n(39),o=n(49),a=n(33),s=n(219).getFormat,l=n(261).getLanguageId,c={quarter:"shortDate",quarterAndYear:"shortDate",minute:"longTime",millisecond:"longTime"},u=1632,d={thousands:"#,##0{0},&quot;K&quot;",millions:"#,##0{0},,&quot;M&quot;",billions:"#,##0{0},,,&quot;B&quot;",trillions:"#,##0{0},,,,&quot;T&quot;",percent:"0{0}%",decimal:"#{0}",fixedpoint:"#,##0{0}",exponential:"0{0}E+00",currency:" "},h=/a+/g,p=/E/g,f=/dE+/g,g=/L/g,_=/h/g,m=/\//g,v=/\[/g,y=/]/g,b=/./g;n(137);var x=e.exports={_applyPrecision:function(e,t){var n,i;if(t>0){for(n="decimal"!==e?".":"",i=0;i<t;i++)n+="0";return n}return""},_getCurrencyFormat:function(e){return o.getOpenXmlCurrencyFormat(e)},_hasArabicDigits:function(e){for(var t,n=0;n<e.length;n++)if(t=e.charCodeAt(n),t>=u&&t<u+10)return!0;return!1},_convertDateFormatToOpenXml:function(e){return e.replace(m,"\\/").split("'").map(function(e,t){return t%2===0?e.replace(h,"AM/PM").replace(f,"d").replace(p,"d").replace(g,"M").replace(_,"H").replace(v,"\\[").replace(y,"\\]"):e?e.replace(b,"\\$&"):"'"}).join("")},_convertDateFormat:function(e){e=c[e&&e.type||e]||e;var t=this,n=(a.format(new Date(2009,8,8,6,5,4),e)||"").toString(),i=s(function(t){return a.format(t,e)});return i=t._convertDateFormatToOpenXml(i),i=t._getLanguageInfo(n)+i},_getLanguageInfo:function(e){var t=l(),n=t?t.toString(16):"",i="";if(this._hasArabicDigits(e)){for(;n.length<3;)n="0"+n;i="[$-2010"+n+"]"}else n&&(i="[$-"+n+"]");return i},_convertNumberFormat:function(e,t,n){var i,o="currency"===e?this._getCurrencyFormat(n):d[e.toLowerCase()];return o&&(i=r.format(o,this._applyPrecision(e,t))),i},convertFormat:function(e,t,n,r){if(i.isDefined(e)){if("date"===n)return x._convertDateFormat(e);if(i.isString(e)&&d[e.toLowerCase()])return x._convertNumberFormat(e,t,r)}}}},function(e,t,n){function i(e,t){for(;e.length<t;)e="0"+e;return e}var r={3:"abbreviated",4:"wide",5:"narrow"},o={y:function(e,t,n){var r=e[n?"getUTCFullYear":"getFullYear"]();return 2===t&&(r%=100),i(r.toString(),t)},M:function(e,t,n,o){
@@ -27,7 +27,7 @@ key:s,keyOf:function(e){return e},load:function(){return(new c).resolve([])},tot
27
27
  o=l):(r=l,o=s),r[c]=t.labelOffset,a.secondLine.push(r),a.firstLine.push(o)})},_alignLines:function(e,t){function n(e,t){b(t,r)}var i,r=t.altMeasure;if(k(e,n),r=t.measure,t.itemsAlignment){if(t.markerOffset)for(i=0;i<e.length;)k(x([e[i++],e[i++]]),n)}else k(x(e),n)},_applyItemPosition:function(e,t){var n=this,i={x:0,y:0},r=_(e,t);k(e,function(e,o){var a=o[0],s=a.altOffset||t.altSpacing;i[t.direction]=m(o,t,r),k(o,function(e,r){var o=r.offset||t.spacing,a=new T.WrapperLayoutElement(r.element,r.bBox),s=new T.WrapperLayoutElement(null,{x:i.x,y:i.y,width:r.width,height:r.height}),l=n._items[r.itemIndex];a.position({of:s,my:r.pos,at:r.pos}),l.bBoxes.push(s),i[t.direction]+=r[t.measure]+o}),i[t.altDirection]+=a[t.altMeasure]+s}),k(this._items,function(e,t){var i=a(t.bBoxes[0].getLayoutOptions(),t.bBoxes[1].getLayoutOptions()),r=n._options.columnItemSpacing/2,o=n._options.rowItemSpacing/2;t.tracker.left=i.left-r,t.tracker.right=i.right+r,t.tracker.top=i.top-o,t.tracker.bottom=i.bottom+o})},_getItemsLayoutOptions:function(){var e=this,t=e._options,n=t.orientation,i={itemsAlignment:t.itemsAlignment,orientation:t.orientation},r=e._size.width-(e._background?2*t.paddingLeftRight:0),o=e._size.height-(e._background?2*t.paddingTopBottom:0);return n===X?(i.length=r,i.spacing=t.columnItemSpacing,i.direction="x",i.measure=te,i.altMeasure=ee,i.altDirection="y",i.altSpacing=t.rowItemSpacing,i.countItem=t.columnCount,i.altCountItem=t.rowCount,i.marginTextLabel=4,i.labelOffset=7,t.itemTextPosition!==K&&t.itemTextPosition!==$||(i.labelOffset=4,i.markerOffset=!0)):(i.length=o,i.spacing=t.rowItemSpacing,i.direction="y",i.measure=ee,i.altMeasure=te,i.altDirection="x",i.altSpacing=t.columnItemSpacing,i.countItem=t.rowCount,i.altCountItem=t.columnCount,i.marginTextLabel=7,i.labelOffset=4,t.itemTextPosition!==U&&t.itemTextPosition!==Y||(i.labelOffset=7,i.markerOffset=!0)),i.countItem||(i.altCountItem?i.countItem=P(e._items.length/i.altCountItem):i.countItem=e._items.length),t.itemTextPosition!==$&&t.itemTextPosition!==Y||(i.inverseLabelPosition=!0),i.itemTextPosition=t.itemTextPosition,i.altCountItem=i.altCountItem||P(e._items.length/i.countItem),i},_adjustBackgroundSettings:function(e){if(this._background){var t=e.border,n=this._insideLegendGroup.getBBox(),i={x:I(n.x-e.paddingLeftRight),y:I(n.y-e.paddingTopBottom),width:I(n.width)+2*e.paddingLeftRight,height:I(n.height)+2*e.paddingTopBottom,opacity:e.backgroundOpacity};t.visible&&t.width&&t.color&&t.color!==J&&(i["stroke-width"]=t.width,i.stroke=t.color,i["stroke-opacity"]=t.opacity,i.dashStyle=t.dashStyle,i.rx=t.cornerRadius||0,i.ry=t.cornerRadius||0),this._background.attr(i)}},_setBoundingRect:function(e){if(this._insideLegendGroup){var t=this._insideLegendGroup.getBBox();t.height+=e.top+e.bottom,t.width+=e.left+e.right,t.x-=e.left,t.y-=e.top,this._boundingRect=t}},getActionCallback:function(e){var t=this;return t._options.visible?function(n){t[n](e.index)}:B},getLayoutOptions:function(){var e=this._options,t=this._insideLegendGroup?this._boundingRect:{width:0,height:0,x:0,y:0};return e?(t.verticalAlignment=e.verticalAlignment,t.horizontalAlignment=e.horizontalAlignment,e.orientation===X?(t.cutLayoutSide=e.verticalAlignment,t.cutSide="vertical"):e.horizontalAlignment===j?(t.cutLayoutSide=e.verticalAlignment,t.cutSide="vertical"):(t.cutLayoutSide=e.horizontalAlignment,t.cutSide="horizontal"),t.position={horizontal:e.horizontalAlignment,vertical:e.verticalAlignment},t):null},shift:function(e,t){var n=this,i={};return n._insideLegendGroup&&(n._insideLegendGroup.attr({translateX:e-n._boundingRect.x,translateY:t-n._boundingRect.y}),i=n._legendGroup.getBBox()),n._x1=i.x,n._y1=i.y,n._x2=i.x+i.width,n._y2=i.y+i.height,n},getPosition:function(){return this._options.position},coordsIn:function(e,t){return e>=this._x1&&e<=this._x2&&t>=this._y1&&t<=this._y2},getItemByCoord:function(e,t){var n=this._items,i=this._insideLegendGroup;e-=i.attr("translateX"),t-=i.attr("translateY");for(var r=0;r<n.length;r++)if(h(n[r].tracker,e,t))return n[r].tracker;return null},dispose:function(){var e=this;return e._legendGroup=e._insideLegendGroup=e._renderer=e._options=e._data=e._items=null,e},layoutOptions:function(){var e=this.getLayoutOptions();return{horizontalAlignment:this._options.horizontalAlignment,verticalAlignment:this._options.verticalAlignment,side:e.cutSide,priority:1}},measure:function(e){this.draw(e[0],e[1]);var t=this.getLayoutOptions();return[t.width,t.height]},move:function(e){this.shift(e[0],e[1])},freeSpace:function(){this._options._incidentOccurred("W2104"),this.erase()}}),t.plugin={name:"legend",init:function(){var e=this,n=this._renderer.g().attr({"class":this._rootClassPrefix+"-legend"}).append(e._renderer.root);e._legend=new t.Legend({renderer:e._renderer,group:n,textField:"text",getFormatObject:function(e){return{item:e,text:e.argument}}}),e._layout.add(e._legend)},extenders:{_applyTilesAppearance:function(){var e=this;this._items.forEach(function(t){e._applyLegendItemStyle(t.id,t.getState())})},_buildNodes:function(){this._createLegendItems()}},members:{_applyLegendItemStyle:function(e,t){var n=this._legend;switch(t){case"hover":n.applyHover(e);break;case"selection":n.applySelected(e);break;default:n.resetItem(e)}},_createLegendItems:function(){this._legend.update(this.getAllItems(),this._getOption("legend"))&&this._requestChange(["LAYOUT"])}},dispose:function(){this._legend.dispose()},customize:function(e){e.prototype._proxyData.push(function(e,t){if(this._legend.coordsIn(e,t)){var n=this._legend.getItemByCoord(e,t);if(n)return{id:n.id,type:"legend"}}}),e.addChange({code:"LEGEND",handler:function(){this._createLegendItems()},isThemeDependent:!0,option:"legend",isOptionChange:!0})}}},function(e,t,n){function i(e,t,n,i){i>=0&&e.slice(i).forEach(function(e){X(e[n])&&(t[n]+=e[n],e[n]=void 0)})}function r(e){e.forEach(function(e){e.valueType=e.valueAxisType=null,e.series.forEach(function(e){e.updateDataType({})}),e.valueAxis&&e.valueAxis.resetTypes(j)})}function o(e,t,n){var i=t?function(e,t){return e-t}:function(e,t){return t-e};return e.sort(function(e,t){var r=n(e),o=n(t),a=X(r)?1:0,s=X(o)?1:0;return a&&s?i(r,o):i(a,s)}),e}function a(e){e&&e.forEach(function(e){e.resetTypes(U)})}function s(e,t){var n=[];return e.forEach(function(e){var i=t(e);void 0!==i&&n.push(i)}),n}function l(e,t){var n=e.argumentOptions&&e.argumentOptions.categories,i=t[1];e.groups.forEach(function(e){var t=e.valueOptions&&e.valueOptions.categories;t&&(e.valueOptions.categories=s(t,i))}),n&&(e.argumentOptions.categories=s(n,t[0]))}function c(e,t,n){return e<=0&&null!==e&&(n("E2004",[t]),e=null),e}function u(e){return e}function d(e,t){var n=t;return t===V||Q(e)?n=V:t===z||J(e)?n=z:ee(e)&&(n=F),n}function h(e,t,n,i){return e!==V||t!==G&&t!==W&&t!==H||i("E2002"),t===W?W:n||t===N||e===V?N:t===H?H:G}function p(e,t,n){e&&n(ee(e)||J(e)||Q(e)?"E2004":"E2003",[t])}function f(e,t,n,i){var r=e?K(e):u,o=t===W?c:u,a=t!==N?function(e){return isFinite(e)||void 0===e?e:null}:u,s=n?function(e){return null===e?void 0:e}:u;return function(e,t){var n=function(e){return o(e,t,i)},l=s(n(a(r(e))));return void 0===l&&p(e,t,i),l}}function g(e,t){var n,i,r,o=f(e.argumentType,e.argumentAxisType,!1,t),a=[o],s={},c=[];e.groups.forEach(function(e){e.series.forEach(function(l){r=l.getOptions().ignoreEmptyPoints,i=f(e.valueType,e.valueAxisType,r,t),n=f(F,G,r,t),s[l.getArgumentField()]=o,l.getValueFields().forEach(function(e){!a[1]&&(a[1]=i),s[e]=i}),l.getSizeField()&&(s[l.getSizeField()]=n)})});for(var u in s)c.push([u,s[u]]);return c.length&&l(e,a),c}function _(e,t){var n,i,r,o=t.length,a=Y({},e);for(n=0;n<o;++n)i=t[n][0],r=e[i],a[i]=t[n][1](r,i);return a}function m(e,t){var n,i=[],r=e.length;for(i.length=r,n=0;n<r;++n)i[n]=_(e[n],t);return i}function v(e,t,n){var i,r,o=e.length;for(i=0;i<o&&(r=e[i][t],!(X(r)&&n>r));++i);return i}function y(e,t,n,r){r=r||{};var a,s=r.mode,l={};s&&"none"!==s&&(l[t]=String(r.groupName||"others"),l[n]=0,a=o(e.slice(),!1,function(e){return e[n]}),i(a,l,n,"smallValueThreshold"===s?v(a,n,r.threshold):r.topCount),l[n]&&e.push(l))}function b(e,t){var n=t.groups[0]&&t.groups[0].series[0],i=n&&("pie"===n.type||"doughnut"===n.type||"donut"===n.type);i&&t.groups.forEach(function(t){t.series.forEach(function(t){y(e,t.getArgumentField(),t.getValueFields()[0],t.getOptions().smallValuesGrouping)})})}function x(e,t,n){n[e]||(t.push(e),n[e]=!0)}function S(e){var t=[],n={};return e.groups.forEach(function(e){e.series.forEach(function(e){x(e.getArgumentField(),t,n)})}),t}function w(e,t){var n=e-t;return isNaN(n)?X(e)?X(t)?0:-1:1:n}function C(e,t){return e.slice().sort(function(e,n){return w(e[t],n[t])})}function k(e,t){return e.slice().sort(t)}function T(e,t){return e.series.forEach(function(n){n.getValueFields().forEach(function(n){e.valueType=d(t[n],e.valueType)})}),e.valueType}function E(e){var t={};return e.forEach(function(e,n){t[e]=n}),function(e,n){return o(e.slice(),!0,function(e){return t[e[n]]})}}function A(e,t,n,i){var r,o={},a=t.argumentAxisType===N,s=a&&t.argumentOptions&&t.argumentOptions.categories,l=function(e){return e},c=n.sortingMethod;return!s&&q(c)&&(e=k(e,c)),a&&(t.categories=I(e,i,s)),s||!q(c)&&t.argumentType===V&&!n._skipArgumentSorting?l=E(t.categories):c===!0&&t.argumentType!==V&&(l=C,r=a),i.forEach(function(t){o[t]=l(e,t)}),r&&(t.categories=t.categories.sort(w)),o}function O(e,t){return e.map(function(e){return e.valueOf()}).indexOf(t.valueOf())===-1}function I(e,t,n){var i=n?n.slice():[];return t.forEach(function(t){e.forEach(function(e){var n=e[t];X(n)&&O(i,n)&&i.push(n)})}),i}function D(e,t,n){return e.forEach(function(e){n.argumentType=d(t[e.getArgumentField()],n.argumentType)}),n.argumentType}function M(e,t,n){var i,r=[],o=[],a=t.argumentOptions&&$(t.argumentOptions.argumentType);t.groups.forEach(function(e){if(e.series.length){var n=e.valueOptions&&$(e.valueOptions.valueType);e.valueType=n,t.argumentType=a,!n&&r.push(e),!a&&o.push(e)}}),(r.length||o.length)&&(i=r.map(function(e,t){return t}),e.some(function(e){var a;if(r.forEach(function(t,n){T(t,e)&&i.indexOf(n)>=0&&i.splice(n,1)}),a||o.forEach(function(n){a=D(n.series,e,t)}),!n&&a&&0===i.length)return!0}))}function P(e,t){var n=e.argumentOptions||{},i=n&&n.categories||[],r=h(e.argumentType,n.type,!!i.length,t);e.groups.forEach(function(n){var i=n.valueOptions||{},o=i.categories||[],a=h(n.valueType,i.type,!!o.length,t);n.series.forEach(function(t){var o={};o.argumentAxisType=r,o.valueAxisType=a,e.argumentAxisType=e.argumentAxisType||o.argumentAxisType,n.valueAxisType=n.valueAxisType||o.valueAxisType,o.argumentType=e.argumentType,o.valueType=n.valueType,o.showZero=i.showZero,t.updateDataType(o)}),n.valueAxisType=n.valueAxisType||a,n.valueAxis&&(n.valueAxis.setTypes(n.valueAxisType,n.valueType,j),n.valueAxis.validate())}),e.argumentAxisType=e.argumentAxisType||r,e.argumentAxes&&e.argumentAxes.forEach(function(t){t.setTypes(e.argumentAxisType,e.argumentType,U),t.validate()})}function L(e,t){var n,i,r,o,a=[],s=X(e),l=s&&!Z(e);if(s&&!l)for(n=0,i=e.length,r=0;n<i;++n)o=e[n],te(o)?a[r++]=o:o&&(l=!0);return l&&t("E2001"),a}function B(e,t,n,i){var o;return e=L(e,n),t.argumentType=t.argumentAxisType=null,r(t.groups),a(t.argumentAxes),M(e,t,i.checkTypeForAllData),P(t,n),i.convertToAxisDataType&&(e=m(e,g(t,n))),b(e,t),o=A(e,t,i,S(t))}var R=n(1),V="string",F="numeric",z="datetime",N="discrete",H="semidiscrete",G="continuous",W="logarithmic",j="valueType",U="argumentType",Y=n(0).extend,$=n(16).enumParser([V,F,z]),K=n(296).getParser,X=R.isDefined,q=R.isFunction,Z=Array.isArray,Q=R.isString,J=R.isDate,ee=R.isNumeric,te=R.isObject;t.validateData=B},function(e,t,n){function i(e){return"numeric"===e||"datetime"===e||"string"===e?e:""}var r=n(4).noop,o=n(65),a=n(1).isDefined,s={string:function(e){return a(e)?""+e:e},numeric:function(e){if(!a(e))return e;var t=Number(e);return isNaN(t)&&(t=void 0),t},datetime:function(e){if(!a(e))return e;var t,n=Number(e);return t=isNaN(n)?o.deserializeDate(e):new Date(n),isNaN(Number(t))&&(t=void 0),t}};e.exports={correctValueType:i,getParser:function(e){return s[i(e)]||r}}},function(e,t,n){function i(e,t,n){e&&e.trigger(t,n)}function r(e){return e=S(e),e===U||e===Z}function o(e,t){var n=e||{},i=_({},n.font)||{},r=n.border||{},o=n.connector||{},a={fill:n.backgroundColor||t,"stroke-width":r.visible?r.width||0:0,stroke:r.visible&&r.width?r.color:"none",dashStyle:r.dashStyle},s={stroke:o.visible&&o.width?o.color||t:"none","stroke-width":o.visible?o.width||0:0};return i.color="none"===n.backgroundColor&&"#ffffff"===S(i.color)&&"inside"!==n.position?t:i.color,{alignment:n.alignment,format:n.format,argumentFormat:n.argumentFormat,precision:n.precision,argumentPrecision:n.argumentPrecision,percentPrecision:n.percentPrecision,customizeText:g.isFunction(n.customizeText)?n.customizeText:void 0,attributes:{font:i},visible:0!==i.size&&n.visible,showForZeroValues:n.showForZeroValues,horizontalOffset:n.horizontalOffset,verticalOffset:n.verticalOffset,radialOffset:n.radialOffset,background:a,position:n.position,connector:s,rotationAngle:n.rotationAngle}}function a(e,t){e.fullState|=V,e.applyView(t)}function s(e,t){e.fullState&=~V,e.applyView(t),e.releaseHoverState()}function l(e,t){e.fullState|=R,e.applyView(t)}function c(e,t){e.fullState&=~R,e.applyView(t)}function u(e,t){var n=_({},e,t);return n.border=_({},e&&e.border,t&&t.border),n}function d(e,t){var n=u(e,t);return n.image=_(!0,{},e.image,t.image),n.selectionStyle=u(e.selectionStyle,t.selectionStyle),n.hoverStyle=u(e.hoverStyle,t.hoverStyle),n}function h(e,t){var n=this;n.fullState=0,n._extGroups=e,n._renderer=e.renderer,n._group=e.renderer.g().attr({"class":"dxc-series"}),n._eventTrigger=e.eventTrigger,n._eventPipe=e.eventPipe,n._seriesModes=e.commonSeriesModes,n._incidentOccurred=e.incidentOccurred,n._valueAxis=e.valueAxis,n.axis=n._valueAxis&&n._valueAxis.name,n._argumentAxis=e.argumentAxis,n._legendCallback=w,n.updateOptions(t)}function p(e){return e.data}var f={},g=n(1),_=n(0).extend,m=n(3).each,v=n(659),y=g.isDefined,b=n(16),x=g.isEmptyObject,S=b.normalizeEnum,w=n(4).noop,C=n(150).states,k=n(425),T=n(133),E=n(253),A=n(199),O=n(165),I=n(664),D=n(665),M=n(666),P=n(667),L=n(668),B="discrete",R=C.selectedMark,V=C.hoverMark,F=C.hover,z=C.normal,N=C.selection,H=C.applySelected,G=C.applyHover,W=C.resetItem,j="none",U="includepoints",Y="nearestpoint",$="seriesSelectionChanged",K="pointSelectionChanged",X="seriesHoverChanged",q="pointHoverChanged",Z="allseriespoints",Q="allargumentpoints",J="pointHover",ee="clearPointHover",te="seriesSelect",ne="pointSelect",ie="pointDeselect",re=function(){return{arg:{},val:{}}};f.mixins={chart:{},pie:{},polar:{}},f.mixins.chart.scatter=T.chart,f.mixins.polar.scatter=T.polar,_(f.mixins.pie,M),_(f.mixins.chart,E.chart,A.chart,O.chart,I.chart,D.chart,P,L.chart),_(f.mixins.polar,E.polar,A.polar,O.polar,I.polar,D.polar,L.polar),t.Series=h,t.mixins=f.mixins,h.prototype={constructor:h,_createLegendState:w,getLegendStyles:function(){return this._styles.legendStyles},_createStyles:function(e){var t=this,n=e.mainSeriesColor;t._styles={normal:t._parseStyle(e,n,n),hover:t._parseStyle(e.hoverStyle||{},n,n),selection:t._parseStyle(e.selectionStyle||{},n,n),legendStyles:{normal:t._createLegendState(e,n),hover:t._createLegendState(e.hoverStyle||{},n),selection:t._createLegendState(e.selectionStyle||{},n)}}},setClippingParams:function(e,t,n){this._paneClipRectID=e,this._widePaneClipRectID=t,this._forceClipping=n},applyClip:function(){this._group.attr({"clip-path":this._paneClipRectID})},resetClip:function(){this._group.attr({"clip-path":null})},getTagField:function(){return this._options.tagField||"tag"},getValueFields:w,getSizeField:w,getArgumentField:w,getPoints:function(){return this._points},getPointsInViewPort:function(){return k.getPointsInViewPort(this)},_createPoint:function(e,t,n){e.index=t;var i,o=this,a=o.pointsByArgument,s=o._getCreatingPointOptions(e),l=e.argument.valueOf(),c=n;return c?c.update(e,s):(c=new v.Point(o,e,s),o.isSelected()&&r(o.lastSelectionMode)&&c.setView(N)),i=a[l],i?i.push(c):a[l]=[c],c.hasValue()&&o.customizePoint(c,e),c},getRangeData:function(){return this._visible?this._getRangeData():re()},getArgumentRange:function(){return this._visible?k.getArgumentRange(this):re()},getViewport:function(){return k.getViewport(this)},_deleteGroup:function(e){var t=this[e];t&&(t.dispose(),this[e]=null)},updateOptions:function(e){var t=this,n=e.widgetType,i=t.type,r=e.type;return t.type=r&&S(r.toString()),!t._checkType(n)||t._checkPolarBarType(n,e)?(t.dispose(),void(t.isUpdated=!1)):(i!==t.type&&(t._firstDrawing=!0,t._resetType(i,n),t._setType(t.type,n)),t._options=e,t._pointOptions=null,t._renderer.initHatching(),t.name=e.name,t.pane=e.pane,t.tag=e.tag,t._createStyles(e),t._stackName=null,t._updateOptions(e),t._visible=e.visible,t.isUpdated=!0,void t._createGroups())},_disposePoints:function(e){m(e||[],function(e,t){t.dispose()})},getErrorBarRangeCorrector:w,updateDataType:function(e){var t=this;return t.argumentType=e.argumentType,t.valueType=e.valueType,t.argumentAxisType=e.argumentAxisType,t.valueAxisType=e.valueAxisType,t.showZero=e.showZero,t},getOptions:function(){return this._options},_getOldPoint:function(e,t,n){var i=e.argument&&e.argument.valueOf(),r=(t[i]||[])[0];return r&&t[i].splice(0,1),r},updateData:function(e){var t=this,n=t._options,i=n.nameField;e=e||[],e.length&&(t._canRenderCompleteHandle=!0);var r=this._getPointDataSelector(),o=0;t._data=e.reduce(function(e,t,a){var s=r(t);return y(s.argument)?i&&t[i]!==n.nameFieldValue||(s.index=a,e.push(s)):o++,e},[]),o&&o===e.length&&t._incidentOccurred("W2002",[t.name,t.getArgumentField()]),t._endUpdateData()},_getData:function(){var e=this._data||[];return this.useAggregation()&&(e=this._resample(this.getArgumentAxis().getAggregationInfo(this._useAllAggregatedPoints,this.argumentAxisType!==B?this.getArgumentRange():{}),e)),e},useAggregation:function(){var e=this.getOptions().aggregation;return e&&e.enabled},createPoints:function(e){this._normalizeUsingAllAggregatedPoints(e),this._createPoints()},_normalizeUsingAllAggregatedPoints:function(e){this._useAllAggregatedPoints=this.useAggregation()&&(this.argumentAxisType===B||(this._data||[]).length>1&&!!e)},_createPoints:function(){var e,t=this,n=t.pointsByArgument||{},i=t._getData();t.pointsByArgument={},t._calculateErrorBars(i);var r={};e=i.reduce(function(e,i){if(t._checkData(i,r)){var o=e.length,a=t._getOldPoint(i,n,o),s=t._createPoint(i,o,a);e.push(s)}return e},[]);for(var o in r)r[o]===i.length&&t._incidentOccurred("W2002",[t.name,o]);Object.keys(n).forEach(function(e){return t._disposePoints(n[e])}),t._points=e},_removeOldSegments:function(){var e=this,t=e._segments.length;m(e._graphics.splice(t,e._graphics.length)||[],function(t,n){e._removeElement(n)}),e._trackers&&m(e._trackers.splice(t,e._trackers.length)||[],function(e,t){t.remove()})},_drawElements:function(e,t,n){var i,r=this,o=r._points||[],a=o[0]&&o[0].hasValue()&&r._options.closed,s={markers:r._markersGroup,errorBars:r._errorBarGroup};r._drawnPoints=[],r._graphics=r._graphics||[],r._segments=[],i=o.reduce(function(i,o){var a=i[i.length-1];return o.translated&&!n||(o.translate(),!n&&o.setDefaultCoords()),o.hasValue()&&o.hasCoords()?(n&&r._drawPoint({point:o,groups:s,hasAnimation:e,firstDrawing:t}),a.push(o)):o.hasValue()?o.setInvisibility():a.length&&i.push([]),i},[[]]),i.forEach(function(t,n){t.length&&r._drawSegment(t,e,n,a&&n===this.length-1)},i),r._firstDrawing=!o.length,r._removeOldSegments(),e&&r._animate(t)},draw:function(e,t,n){var i=this,r=i._firstDrawing;return i._legendCallback=n||i._legendCallback,i._visible?(i._appendInGroup(),i._applyVisibleArea(),i._setGroupsSettings(e,r),!r&&i._drawElements(!1,r,!1),i._drawElements(e,r,!0),t&&i.hideLabels(),void(i.isSelected()?i._changeStyle(i.lastSelectionMode,void 0,!0):i.isHovered()&&i._changeStyle(i.lastHoverMode,void 0,!0))):(e=!1,void i._group.remove())},_setLabelGroupSettings:function(e){var t={"class":"dxc-labels"};this._applyElementsClipRect(t),this._applyClearingSettings(t),e&&(t.opacity=.001),this._labelsGroup.attr(t).append(this._extGroups.labelsGroup)},_checkType:function(e){return!!f.mixins[e][this.type]},_checkPolarBarType:function(e,t){return"polar"===e&&t.spiderWidget&&this.type.indexOf("bar")!==-1},_resetType:function(e,t){var n,i;if(e){i=f.mixins[t][e];for(n in i)delete this[n]}},_setType:function(e,t){var n,i=f.mixins[t][e];for(n in i)this[n]=i[n]},_setPointsView:function(e,t){this.getPoints().forEach(function(n){t!==n&&n.setView(e)})},_resetPointsView:function(e,t){this.getPoints().forEach(function(n){t!==n&&n.resetView(e)})},_resetNearestPoint:function(){var e=this;e._nearestPoint&&e._nearestPoint.resetView(F),e._nearestPoint=null},_setSelectedState:function(e){var t=this;t.lastSelectionMode=S(e||t._options.selectionMode),t.fullState=t.fullState|R,t._resetNearestPoint(),t._changeStyle(t.lastSelectionMode),t.lastSelectionMode!==j&&t.isHovered()&&r(t.lastHoverMode)&&t._resetPointsView(F)},_releaseSelectedState:function(){var e=this;e.fullState=e.fullState&~R,e._changeStyle(e.lastSelectionMode,N),e.lastSelectionMode!==j&&e.isHovered()&&r(e.lastHoverMode)&&e._setPointsView(F)},isFullStackedSeries:function(){return 0===this.type.indexOf("fullstacked")},isStackedSeries:function(){return 0===this.type.indexOf("stacked")},isFinancialSeries:function(){return"stock"===this.type||"candlestick"===this.type},_canChangeView:function(){return!this.isSelected()&&S(this._options.hoverMode)!==j},_changeStyle:function(e,t,n){var i=this,o=i.fullState,a=[z,F,N,N];"none"===i.lastHoverMode&&(o&=~V),"none"===i.lastSelectionMode&&(o&=~R),r(e)&&!n&&(t?i._resetPointsView(t):i._setPointsView(a[o])),i._legendCallback([W,G,H,H][o]),i._applyStyle(i._styles[a[o]])},updateHover:function(e,t){var n=this,i=n._nearestPoint,r=n.isHovered()&&n.lastHoverMode===Y&&n.getNeighborPoint(e,t);r===i||n.isSelected()&&n.lastSelectionMode!==j||(n._resetNearestPoint(),r&&(r.setView(F),n._nearestPoint=r))},_getMainAxisName:function(){return this._options.rotated?"X":"Y"},areLabelsVisible:function(){return!y(this._options.maxLabelCount)||this._points.length<=this._options.maxLabelCount},getLabelVisibility:function(){return this.areLabelsVisible()&&this._options.label&&this._options.label.visible},customizePoint:function e(t,n){var i,r,o,a,s,l,c=this,u=c._options,e=u.customizePoint,d=u.customizeLabel;d&&d.call&&(i=_({seriesName:c.name},n),i.series=c,o=d.call(i,i),s=o&&!x(o),o=s?_(!0,{},u.label,o):null),e&&e.call&&(i=i||_({seriesName:c.name},n),i.series=c,a=e.call(i,i),l=a&&!x(a)),(s||l)&&(r=c._parsePointOptions(c._preparePointOptions(a),o||u.label,n,t),r.styles.useLabelCustomOptions=s,r.styles.usePointCustomOptions=l,t.updateOptions(r))},show:function(){this._visible||this._changeVisibility(!0)},hide:function(){this._visible&&this._changeVisibility(!1)},_changeVisibility:function(e){var t=this;t._visible=t._options.visible=e,t._updatePointsVisibility(),t.hidePointTooltip(),t._options.visibilityChanged()},_updatePointsVisibility:w,hideLabels:function(){m(this._points,function(e,t){t._label.draw(!1)})},_parsePointOptions:function(e,t,n,i){var r=this,a=r._options,s=r._createPointStyles(e,n,i),l=_({},e,{type:a.type,rotated:a.rotated,styles:s,widgetType:a.widgetType,visibilityChanged:a.visibilityChanged});return l.label=o(t,s.normal.fill),r.areErrorBarsVisible()&&(l.errorBars=a.valueErrorBar),l},_preparePointOptions:function(e){var t=this._getOptionsForPoint();return e?d(t,e):t},_getMarkerGroupOptions:function(){return _(!1,{},this._getOptionsForPoint(),{hoverStyle:{},selectionStyle:{}})},_getAggregationMethod:function(e){var t=this.getOptions().aggregation,n=S(t.method),i="custom"===n&&t.calculate,r=void 0;return r=e?function(e){var t=e.data;return t[0]}:this._aggregators[n]||this._aggregators[this._defaultAggregator],i||r},_resample:function(e,t){var n=e.interval,i=e.ticks,r=this,o=r.argumentAxisType===B||r.valueAxisType===B,a=0,s=this._getPointDataSelector(),l=r.getOptions(),c=function(e,t,n){if(t){var i=function(t){var i=t&&s(t,l);i&&r._checkData(i)&&(i.aggregationInfo=n,e.push(i))};t.length?t.forEach(i):i(t)}},u=this._getAggregationMethod(o);if(o)return t.reduce(function(e,t,i,o){if(e[1].push(t),i===o.length-1||(i+1)%n===0){var a=e[1],s={aggregationInterval:n,data:a.map(p)};c(e[0],u(s,r)),e[1]=[]}return e},[[],[]])[0];for(var d=[],h=1;h<i.length;h++){for(var f=i[h],g=i[h-1],_=[];t[a]&&t[a].argument<f;)t[a].argument>=g&&_.push(t[a]),a++;var m={intervalStart:g,intervalEnd:f,aggregationInterval:n,data:_.map(p)};c(d,u(m,r),m)}return r._endUpdateData(),d},canRenderCompleteHandle:function(){var e=this._canRenderCompleteHandle;return delete this._canRenderCompleteHandle,!!e},isHovered:function(){return!!(1&this.fullState)},isSelected:function(){return!!(2&this.fullState)},isVisible:function(){return this._visible},getAllPoints:function(){return this._createAllAggregatedPoints(),(this._points||[]).slice()},getPointByPos:function(e){return this._createAllAggregatedPoints(),(this._points||[])[e]},getVisiblePoints:function(){return(this._drawnPoints||[]).slice()},selectPoint:function(e){e.isSelected()||(l(e,this._legendCallback),this._eventPipe({action:ne,target:e}),this._eventTrigger(K,{target:e}))},deselectPoint:function(e){e.isSelected()&&(c(e,this._legendCallback),this._eventPipe({action:ie,target:e}),this._eventTrigger(K,{target:e}))},hover:function(e){var t=this,n=t._eventTrigger;t.isHovered()||(t.lastHoverMode=S(e||t._options.hoverMode),t.fullState=t.fullState|V,t._changeStyle(t.lastHoverMode,void 0,t.isSelected()&&t.lastSelectionMode!==j),n(X,{target:t}))},clearHover:function(){var e=this,t=e._eventTrigger;e.isHovered()&&(e._resetNearestPoint(),e.fullState=e.fullState&~V,e._changeStyle(e.lastHoverMode,F,e.isSelected()&&e.lastSelectionMode!==j),t(X,{target:e}))},hoverPoint:function(e){var t=this;e.isHovered()||(e.clearHover(),a(e,t._legendCallback),t._canChangeView()&&t._applyStyle(t._styles.hover),t._eventPipe({action:J,target:e}),t._eventTrigger(q,{target:e}))},clearPointHover:function(){var e=this;e.getPoints().some(function(t){return!!t.isHovered()&&(s(t,e._legendCallback),e._canChangeView()&&e._applyStyle(e._styles.normal),e._eventPipe({action:ee,target:t}),e._eventTrigger(q,{target:t}),!0)})},showPointTooltip:function(e){i(this._extGroups.seriesGroup,"showpointtooltip",e)},hidePointTooltip:function(e){i(this._extGroups.seriesGroup,"hidepointtooltip",e)},select:function(){var e=this;e.isSelected()||(e._setSelectedState(e._options.selectionMode),e._eventPipe({action:te,target:e}),e._group.toForeground(),e._eventTrigger($,{target:e}))},clearSelection:function(){var e=this;e.isSelected()&&(e._releaseSelectedState(),e._eventTrigger($,{target:e}))},getPointsByArg:function(e,t){var n=this,i=e.valueOf(),r=n.pointsByArgument[i];return r||t||!n._createAllAggregatedPoints()||(r=n.pointsByArgument[i]),r||[]},_createAllAggregatedPoints:function(){return!(!this.useAggregation()||this._useAllAggregatedPoints)&&(this.createPoints(!0),!0)},getPointsByKeys:function(e){return this.getPointsByArg(e)},notify:function(e){var t=this,n=e.action,i=t._seriesModes,r=e.target,o=r.getOptions(),a=S(o.hoverMode),s=S(o.selectionMode);n===J?t._hoverPointHandler(r,a,e.notifyLegend):n===ee?t._clearPointHoverHandler(r,a,e.notifyLegend):n===te?r!==t&&"single"===i.seriesSelectionMode&&t.clearSelection():n===ne?("single"===i.pointSelectionMode&&t.getPoints().some(function(e){return!(e===r||!e.isSelected())&&(t.deselectPoint(e),!0)}),t._selectPointHandler(r,s)):n===ie&&t._deselectPointHandler(r,s)},_selectPointHandler:function(e,t){var n=this;t===Z?e.series===n&&n._setPointsView(N,e):t===Q&&n.getPointsByKeys(e.argument,e.argumentIndex).forEach(function(t){t!==e&&t.setView(N)})},_deselectPointHandler:function(e,t){t===Z?e.series===this&&this._resetPointsView(N,e):t===Q&&this.getPointsByKeys(e.argument,e.argumentIndex).forEach(function(t){t!==e&&t.resetView(N)})},_hoverPointHandler:function(e,t,n){var i=this;e.series!==i&&t===Q?(i.getPointsByKeys(e.argument,e.argumentIndex).forEach(function(e){e.setView(F)}),n&&i._legendCallback(e)):t===Z&&e.series===i&&i._setPointsView(F,e)},_clearPointHoverHandler:function(e,t,n){var i=this;t===Q?(e.series!==i&&i.getPointsByKeys(e.argument,e.argumentIndex).forEach(function(e){e.resetView(F)}),n&&i._legendCallback(e)):t===Z&&e.series===i&&i._resetPointsView(F,e)},_deletePoints:function(){var e=this;e._disposePoints(e._points),e._points=e._drawnPoints=null},_deleteTrackers:function(){var e=this;m(e._trackers||[],function(e,t){t.remove()}),e._trackersGroup&&e._trackersGroup.dispose(),e._trackers=e._trackersGroup=null},dispose:function(){var e=this;e._deletePoints(),e._group.dispose(),e._labelsGroup&&e._labelsGroup.dispose(),e._errorBarGroup&&e._errorBarGroup.dispose(),e._deleteTrackers(),e._group=e._extGroups=e._markersGroup=e._elementsGroup=e._bordersGroup=e._labelsGroup=e._errorBarGroup=e._graphics=e._rangeData=e._renderer=e._styles=e._options=e._pointOptions=e._drawnPoints=e.pointsByArgument=e._segments=e._prevSeries=null},correctPosition:w,drawTrackers:w,getNeighborPoint:w,areErrorBarsVisible:w,getMarginOptions:function(){return this._patchMarginOptions({percentStick:this.isFullStackedSeries()})},getColor:function(){return this.getLegendStyles().normal.fill},getOpacity:function(){return this._options.opacity},getStackName:function(){return this._stackName},getPointByCoord:function(e,t){var n=this.getNeighborPoint(e,t);return n&&n.coordsIn(e,t)?n:null},getValueAxis:function(){return this._valueAxis},getArgumentAxis:function(){return this._argumentAxis}}},function(e,t,n){function i(e,t){var n,i=1/0;return p(t,function(t,r){var o=e[0]-r[0],a=e[1]-r[1],s=o*o+a*a;s<i&&(i=s,n=r)}),[y(n[0]),y(n[1])]}function r(e,t,n){return(t-e[0+n])/(e[2+n]-e[0+n])*(e[3-n]-e[1-n])+e[1-n]}function o(e){return void 0!==e.angle&&A||void 0!==e.r&&E||T}function a(e,t){e[t]&&e[t].dispose(),e[t]=null}function s(e){return e&&(e.fill&&"none"!==e.fill||e["stroke-width"]>0&&e.stroke&&"none"!==e.stroke)}function l(e){return e&&e["stroke-width"]>0&&e.stroke&&"none"!==e.stroke}function c(e,t){return e.valueText=d(e.value,t),e.argumentText=d(e.argument,{format:t.argumentFormat,precision:t.argumentPrecision}),void 0!==e.percent&&(e.percentText=d(e.percent,{format:{type:"percent",precision:t.format&&t.format.percentPrecision||t.percentPrecision}})),void 0!==e.total&&(e.totalText=d(e.total,t)),void 0!==e.openValue&&(e.openValueText=d(e.openValue,t)),void 0!==e.closeValue&&(e.closeValueText=d(e.closeValue,t)),void 0!==e.lowValue&&(e.lowValueText=d(e.lowValue,t)),void 0!==e.highValue&&(e.highValueText=d(e.highValue,t)),void 0!==e.reductionValue&&(e.reductionValueText=d(e.reductionValue,t)),t.customizeText?t.customizeText.call(e,e):e.valueText}function u(e){this._renderer=e.renderer,this._container=e.labelsGroup,this._point=e.point,this._strategy=e.strategy}var d=n(251),h=n(16),p=n(3).each,f=n(0).extend,g=h.degreesToRadians,_=h.patchFontOptions,m=Math,v=m.round,y=m.floor,b=m.abs,x=h.getCosAndSin,S=h.rotateBBox,w=12,C=8,k=4,T={isLabelInside:function(e,t){var n=e.x+e.width/2,i=e.y+e.height/2;return t.x<=n&&n<=t.x+t.width&&t.y<=i&&i<=t.y+t.height},prepareLabelPoints:function(e,t,n,i,o){var a,s=t.x,l=s+t.width/2,c=s+t.width-1,u=t.y,d=u+t.height/2,h=u+t.height-1,p=b(i)%90===0;return a=o[0]>s&&o[0]<c?p?[[o[0],b(o[1]-u)<b(o[1]-h)?u:h]]:[[o[0],r([s,u,c,h],o[0],0)]]:o[1]>u&&o[1]<h?p?[[b(o[0]-s)<b(o[0]-c)?s:c,o[1]]]:[[r([s,u,c,h],o[1],1),o[1]]]:p?[[s,u],[n?s:l,n?d:u],[c,u],[s,h],[n?c:l,n?d:h],[c,h]]:[[l,d]]},isHorizontal:function(e,t){return e.x>t.x+t.width||e.x+e.width<t.x},getFigureCenter:function(e){return[y(e.x+e.width/2),y(e.y+e.height/2)]},findFigurePoint:function(e,t){var n=T.getFigureCenter(e),r=i(t,[[e.x,n[1]],[n[0],e.y+e.height],[e.x+e.width,n[1]],[n[0],e.y]]);return r},adjustPoints:function(e){var t=b(e[1]-e[3])<=1,n=b(e[0]-e[2])<=1;return n&&(e[0]=e[2]),t&&(e[1]=e[3]),e}},E={isLabelInside:function(){return!1},prepareLabelPoints:T.prepareLabelPoints,isHorizontal:function(e,t){return e.x>t.x+t.r||e.x+e.width<t.x-t.r;
28
28
  },getFigureCenter:function(e){return[e.x,e.y]},findFigurePoint:function(e,t){var n=Math.atan2(e.y-t[1],t[0]-e.x);return[v(e.x+e.r*Math.cos(n)),v(e.y-e.r*Math.sin(n))]},adjustPoints:T.adjustPoints},A={isLabelInside:function(e,t,n){return!n},prepareLabelPoints:function(e,t,n,i){var r=e.x,o=r+e.width,a=r+v(e.width/2),s=e.y,l=s+e.height,c=s+v(e.height/2),u=[[[r,s],[o,s]],[[o,s],[o,l]],[[o,l],[r,l]],[[r,l],[r,s]]],d=x(i);return u=0===i?n?[[r,c],[o,c]]:[[a,s],[a,l]]:u.map(function(e){return e.map(function(e){return[v((e[0]-a)*d.cos+(e[1]-c)*d.sin+a),v(-(e[0]-a)*d.sin+(e[1]-c)*d.cos+c)]})}).reduce(function(e,t){var i=t[0][0],r=t[0][1],o=t[1][0],s=t[1][1];return n?(r>=c&&c>=s||r<=c&&c<=s)&&e.push([(c-r)*(o-i)/(s-r)+i,c]):(i>=a&&a>=o||i<=a&&a<=o)&&e.push([a,(a-i)*(s-r)/(o-i)+r]),e},[])},isHorizontal:function(e,t){return e.x>t.x||t.x>e.x+e.width},getFigureCenter:E.getFigureCenter,findFigurePoint:function(e,t,n){if(!n)return[e.x,e.y];var i=t[0],r=v(e.x+(e.y-t[1])/Math.tan(g(e.angle))),o=[e.x,e.y,r,t[1]];return e.x<=r&&r<=i||i<=r&&r<=e.x||(b(e.x-i)<w?o=[e.x,e.y]:e.x<=i?o[2]=e.x+w:o[2]=e.x-w),o},adjustPoints:function(e){return e}};u.prototype={constructor:u,setColor:function(e){this._color=e},setOptions:function(e){this._options=e},setData:function(e){this._data=e},setDataField:function(e,t){this._data=this._data||{},this._data[e]=t},getData:function(){return this._data},setFigureToDrawConnector:function(e){this._figure=e},dispose:function(){var e=this;a(e,"_group"),e._data=e._options=e._textContent=e._visible=e._insideGroup=e._text=e._background=e._connector=e._figure=null},_setVisibility:function(e,t){this._group&&this._group.attr({visibility:e}),this._visible=t},isVisible:function(){return this._visible},hide:function(e){this._holdVisibility=!!e,this._hide()},_hide:function(){this._setVisibility("hidden",!1)},show:function(e){var t=!this._drawn;this._point.hasValue()&&(this._holdVisibility=!!e,this._show(),t&&this._point.correctLabelPosition(this))},_show:function(){var e=this,t=e._renderer,n=e._container,i=e._options||{},r=e._textContent=c(e._data,e._options)||null;r?(e._group||(e._group=t.g().append(n),e._insideGroup=t.g().append(e._group),e._text=t.text("",0,0).append(e._insideGroup)),e._text.css(i.attributes?_(i.attributes.font):{}),s(i.background)?(e._background=e._background||t.rect().append(e._insideGroup).toBackground(),e._background.attr(i.background),e._color&&e._background.attr({fill:e._color})):a(e,"_background"),l(i.connector)?(e._connector=e._connector||t.path([],"line").sharp().append(e._group).toBackground(),e._connector.attr(i.connector),e._color&&e._connector.attr({stroke:e._color})):a(e,"_connector"),e._text.attr({text:r,align:i.textAlignment}),e._updateBackground(e._text.getBBox()),e._setVisibility("visible",!0),e._drawn=!0):e._hide()},_getLabelVisibility:function(e){return this._holdVisibility?this.isVisible():e},draw:function(e){return this._getLabelVisibility(e)?(this._show(),this._point&&this._point.correctLabelPosition(this)):(this._drawn=!1,this._hide()),this},_updateBackground:function(e){var t=this;t._background&&(e.x-=C,e.y-=k,e.width+=2*C,e.height+=2*k,t._background.attr(e)),t._bBoxWithoutRotation=f({},e);var n=t._options.rotationAngle||0;t._insideGroup.rotate(n,e.x+e.width/2,e.y+e.height/2),e=S(e,[e.x+e.width/2,e.y+e.height/2],-n),t._bBox=e},_getConnectorPoints:function(){var e,t,n=this,r=n._figure,a=n._options,s=n._strategy||o(r),l=n._shiftBBox(n._bBoxWithoutRotation),c=n.getBoundingRect(),u=[];if(!s.isLabelInside(l,r,"inside"!==a.position)){t=s.isHorizontal(l,r);var d=s.getFigureCenter(r);u=s.prepareLabelPoints(l,c,t,-a.rotationAngle||0,d),e=i(d,u),u=s.findFigurePoint(r,e,t),u=u.concat(e)}return s.adjustPoints(u)},fit:function(e){var t=this._background?2*C:0;this._text&&this._text.applyEllipsis(e-t),this._updateBackground(this._text.getBBox())},resetEllipsis:function(){this._text&&this._text.restoreText(),this._updateBackground(this._text.getBBox())},setTrackerData:function(e){this._text.data({"chart-data-point":e}),this._background&&this._background.data({"chart-data-point":e})},hideInsideLabel:function(e){return this._point.hideInsideLabel(this,e)},shift:function(e,t){var n=this;return n._textContent&&(n._insideGroup.attr({translateX:n._x=v(e-n._bBox.x),translateY:n._y=v(t-n._bBox.y)}),n._connector&&n._connector.attr({points:n._getConnectorPoints()})),n},getBoundingRect:function(){return this._shiftBBox(this._bBox)},_shiftBBox:function(e){return this._textContent?{x:e.x+this._x,y:e.y+this._y,width:e.width,height:e.height}:{}},getLayoutOptions:function(){var e=this._options;return{alignment:e.alignment,background:s(e.background),horizontalOffset:e.horizontalOffset,verticalOffset:e.verticalOffset,radialOffset:e.radialOffset,position:e.position,connectorOffset:(l(e.connector)?w:0)+(s(e.background)?C:0)}}},t.Label=u},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n){return V.default.tickGenerator({axisType:e.type,dataType:e.dataType,logBase:e.logarithmBase,axisDivisionFactor:e.axisDivisionFactor||ce,minorAxisDivisionFactor:e.minorAxisDivisionFactor||ue,numberMultipliers:e.numberMultipliers,calculateMinors:e.minorTick.visible||e.minorGrid.visible||e.calculateMinors,allowDecimals:e.allowDecimals,endOnTick:e.endOnTick,incidentOccurred:t,firstDayOfWeek:e.workWeek&&e.workWeek[0],skipTickGeneration:n,skipCalculationLimits:e.skipCalculationLimits,generateExtraTick:e.generateExtraTick,minTickInterval:e.minTickInterval,showCalculatedTicks:e.tick.showCalculatedTicks,showMinorCalculatedTicks:e.minorTick.showCalculatedTicks})}function o(e,t,n){var i=e.getOptions();return(0,G.tick)(e,t,i.tick,i.grid,n,e._translator.getBusinessRange().stubData)}function a(e,t){var n=e.getOptions();return(0,G.tick)(e,t,n.minorTick,n.minorGrid)}function s(e,t,n){var i=e.getOptions();return(0,G.tick)(e,t,(0,I.extend)({},i.tick,{visible:i.showCustomBoundaryTicks}),i.grid,void 0,!1,n?-1:1)}function l(e,t,n){e.forEach(function(e){e[t](n)})}function c(e){l(e,"initCoords")}function u(e){l(e,"drawMark")}function d(e,t){l(e,"drawGrid",t)}function h(e){l(e,"updateTickPosition")}function p(e){l(e,"updateGridPosition")}function f(e){e.forEach(function(e){e.labelBBox=e.label?e.label.getBBox():{x:0,y:0,width:0,height:0}})}function g(e){var t=e.length-1;for(t;t>=0&&_(e,t);t--);for(t=0;t<e.length&&_(e,t);t++)t--}function _(e,t){return(null===e[t].coords.x||null===e[t].coords.y)&&(e.splice(t,1),!0)}function m(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=T.default.getLog(t,e.base)+i*n;return T.default.raiseTo(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 v(e){var t=e.label,n=e.position,i=e.isHorizontal?oe:ae,r=e.isHorizontal?re:se;n!==i&&n!==r&&(n=i),n!==se||t.userAlignment||(t.alignment=ae),e.position=n,e.hoverMode=e.hoverMode?e.hoverMode.toLowerCase():"none",t.minSpacing=(0,E.isDefined)(t.minSpacing)?t.minSpacing:ne}function y(e,t){var n=180*Q.asin((e[0].height+t.minSpacing)/(e[1].x-e[0].x))/Q.PI;return n<45?-45:-90}function b(e,t,n){e.forEach(function(e,i){e.label&&(i%t!==0?e.label.remove():n&&n(e,i))})}function x(e){return e.valueOf()}function S(e,t,n,i){var r,o,a;return(0,E.isNumeric)(e)&&0!==e?t.size||t.checkInterval?(r=Q.floor(T.default.getAdjustedLog10(J(e))),o=Q.floor(T.default.getAdjustedLog10(J(n))),r=(r>=o?o:r)-2,0===r&&(r=-1),a=T.default.raiseTo(r,10),(0,W.adjust)(i((0,W.adjust)(e/a))*a)):(0,W.adjust)(e):e}function w(e,t,n,i,o){var a=(0,I.extend)({},e,{endOnTick:!0,axisDivisionFactor:t,skipCalculationLimits:!0,generateExtraTick:!0,minTickInterval:o});return function(e,t,o,s,l){return r(a,U.noop,t)({min:o,max:s,categories:n.categories,isSpacedMargin:n.isSpacedMargin,checkMinDataVisibility:n.checkMinDataVisibility,checkMaxDataVisibility:n.checkMaxDataVisibility},i,e,(0,E.isDefined)(e),void 0,void 0,void 0,l)}}var C=n(429),k=n(16),T=i(k),E=n(1),A=n(300),O=i(A),I=n(0),D=n(11),M=n(88),P=i(M),L=n(296),B=i(L),R=n(430),V=i(R),F=n(301),z=i(F),N=n(135),H=i(N),G=n(431),W=n(31),j=n(23),U=n(4),Y=n(432),$=i(Y),K=n(689),X=i(K),q=O.default.convertTicksToValues,Z=T.default.patchFontOptions,Q=Math,J=Q.abs,ee=Q.max,te=Q.min,ne=5,ie=4,re=O.default.top,oe=O.default.bottom,ae=O.default.left,se=O.default.right,le=O.default.center,ce=50,ue=15,de={day:864e5,week:6048e5},he=t.Axis=function(e){var t=this;t._renderer=e.renderer,t._incidentOccurred=e.incidentOccurred,t._stripsGroup=e.stripsGroup,t._labelAxesGroup=e.labelAxesGroup,t._constantLinesGroup=e.constantLinesGroup,t._scaleBreaksGroup=e.scaleBreaksGroup,t._axesContainerGroup=e.axesContainerGroup,t._gridContainerGroup=e.gridGroup,t._axisCssPrefix=e.widgetClass+"-"+(e.axisClass?e.axisClass+"-":""),t._setType(e.axisType,e.drawingType),t._createAxisGroups(),t._translator=t._createTranslator(),t.isArgumentAxis=e.isArgumentAxis};he.prototype={constructor:he,_drawAxis:function(){var e=this._options;e.visible&&(this._axisElement=this._createAxisElement(),this._updateAxisElementPosition(),this._axisElement.attr({"stroke-width":e.width,stroke:e.color,"stroke-opacity":e.opacity}).sharp(this._getSharpParam(!0)).append(this._axisLineGroup))},_createPathElement:function(e,t){return this._renderer.path(e,"line").attr(t).sharp(this._getSharpParam())},_getGridLineDrawer:function(e){var t=this,n=t._isHorizontal;return function(i,r){t.borderOptions=e;var o,a=n?ae:re,s=n?se:oe,l=t.getCanvas(),c={left:l.left,right:l.width-l.right,top:l.top,bottom:l.height-l.bottom},u=e.visible&&e[a]?c[a]:void 0,d=e.visible&&e[s]?c[s]:void 0,h=n?"x":"y",p=ie+u,f=d-ie;if(!(void 0===i.coords[h]||i.coords[h]<p||i.coords[h]>f)){var g=t._getGridPoints(i.coords);return g.points&&(o=t._createPathElement(g.points,r)),o}}},_getGridPoints:function(e){var t=this._isHorizontal,n=t?"x":"y",i=this._orthogonalPositions,r=i.start,o=i.end;return{points:t?null!==e[n]?[e[n],r,e[n],o]:null:null!==e[n]?[r,e[n],o,e[n]]:null}},_getConstantLinePos:function(e,t,n){var i=this._validateUnit(e,"E2105","constantLine"),r=this._getTranslatedCoord(i);return!(0,E.isDefined)(r)||r<te(t,n)||r>ee(t,n)?{}:{value:r,parsedValue:i}},_getConstantLineGraphicAttributes:function(e){var t=this._orthogonalPositions.start,n=this._orthogonalPositions.end;return{points:this._isHorizontal?[e,t,e,n]:[t,e,n,e]}},_createConstantLine:function(e,t){return this._createPathElement(this._getConstantLineGraphicAttributes(e).points,t)},_drawConstantLinesAndLabels:function(e,t,n,i){if(!(0,E.isDefined)(t.value))return{line:null,label:null,options:t};var r,o=this,a=o._getConstantLinePos(t.value,n,i),s=t.label||{},l=a.value,c={stroke:t.color,"stroke-width":t.width,dashStyle:t.dashStyle},u=o._axisConstantLineGroups[e];return u||(r=o._isHorizontal?s.verticalAlignment:s.horizontalAlignment,u=o._axisConstantLineGroups[r]),(0,E.isDefined)(l)?{line:o._createConstantLine(l,c).append(o._axisConstantLineGroups.inside),label:s.visible?o._drawConstantLineLabels(a.parsedValue,s,l,u):null,options:t,labelOptions:s,coord:l}:{line:null,label:null,options:t}},_drawConstantLines:function(e){var t=this,n=t._getCanvasStartEnd();return t._translator.getBusinessRange().stubData?[]:(t._options.constantLines||[]).reduce(function(i,r){var o=r.label.position;return(o===e||!o&&"inside"===e)&&i.push(t._drawConstantLinesAndLabels(e,r,n.start,n.end)),i},[])},_drawConstantLineLabelText:function(e,t,n,i,r){var o=this,a=o._options,s=a.label;return o._renderer.text(e,t,n).css(Z((0,I.extend)({},s.font,i.font))).attr({align:"center"}).append(r)},_drawConstantLineLabels:function(e,t,n,i){var r,o=this,a=t.text,s=o._options,l=s.label;return o._checkAlignmentConstantLineLabels(t),a=(0,E.isDefined)(a)?a:o.formatLabel(e,l),r=o._getConstantLineLabelsCoords(n,t),o._drawConstantLineLabelText(a,r.x,r.y,t,i)},_getStripPos:function(e,t,n,i,r){var o,a,s,l,c,u=!(!r.minVisible&&!r.maxVisible),d=(r.categories||[]).reduce(function(e,t){return e.push(t.valueOf()),e},[]),h=r.minVisible;if(!u&&(0,E.isDefined)(e)&&(0,E.isDefined)(t)){if(l=(0,D.inArray)(e.valueOf(),d),c=(0,D.inArray)(t.valueOf(),d),l===-1||c===-1)return{from:0,to:0};l>c&&(s=t,t=e,e=s)}return(0,E.isDefined)(e)?(e=this._validateUnit(e,"E2105","strip"),o=this._getTranslatedCoord(e,-1),!(0,E.isDefined)(o)&&u&&(o=e<h?n:i)):o=n,(0,E.isDefined)(t)?(t=this._validateUnit(t,"E2105","strip"),a=this._getTranslatedCoord(t,1),!(0,E.isDefined)(a)&&u&&(a=t>h?i:n)):a=i,o<a?{from:o,to:a}:{from:a,to:o}},_getStripGraphicAttributes:function(e,t){var n,i,r,o,a=this._orthogonalPositions,s=a.start,l=a.end;return this._isHorizontal?(n=e,i=te(s,l),r=t-e,o=J(s-l)):(n=te(s,l),i=e,r=J(s-l),o=J(e-t)),{x:n,y:i,width:r,height:o}},_createStrip:function(e,t,n){var i=this._getStripGraphicAttributes(e,t);return this._renderer.rect(i.x,i.y,i.width,i.height).attr(n)},_drawStrips:function(){var e,t,n,i,r,o,a=this,s=a._options,l=s.strips,c=this._getCanvasStartEnd(),u=a._translator.getBusinessRange(),d=[];if(!l||u.stubData)return[];for(e=0;e<l.length;e++)if(t=l[e],i=t.label||{},r={fill:t.color},((0,E.isDefined)(t.startValue)||(0,E.isDefined)(t.endValue))&&(0,E.isDefined)(t.color)){if(n=a._getStripPos(t.startValue,t.endValue,c.start,c.end,u),o=i.text?a._getStripLabelCoords(n.from,n.to,i):null,n.to-n.from===0||!(0,E.isDefined)(n.to)||!(0,E.isDefined)(n.from))continue;d.push({rect:a._createStrip(n.from,n.to,r).append(a._axisStripGroup),options:t,label:i.text?a._drawStripLabel(i,o):null,labelCoords:o})}return d},_drawStripLabel:function(e,t){return this._renderer.text(e.text,t.x,t.y).css(Z((0,I.extend)({},this._options.label.font,e.font))).attr({align:"center"}).append(this._axisStripLabelGroup)},_adjustStripLabels:function(){var e=this;this._strips.forEach(function(t){t.label&&t.label.attr(e._getAdjustedStripLabelCoords(t))})},_adjustLabels:function(e){var t=this,n=t._majorTicks.reduce(function(e,t){var n=t.labelRotationAngle?T.default.rotateBBox(t.labelBBox,[t.labelCoords.x,t.labelCoords.y],-t.labelRotationAngle):t.labelBBox;return{width:ee(e.width||0,n.width),height:ee(e.height||0,n.height),offset:ee(e.offset||0,t.labelOffset||0)}},{}),i=t._isHorizontal?n.height:n.width;return t._majorTicks.forEach(function(i){i.label&&i.label.attr(t._getLabelAdjustedCoord(i,e+(i.labelOffset||0),n.width))}),e+i+(i&&t._options.label.indentFromAxis)+n.offset},_getLabelAdjustedCoord:function(e,t,n){t=t||0;var i,r,o=this,a=o._options,s=T.default.rotateBBox(e.labelBBox,[e.labelCoords.x,e.labelCoords.y],-e.labelRotationAngle||0),l=a.position,c=e.labelAlignment||a.label.alignment,u=a.label.indentFromAxis,d=o._axisPosition,h=e.labelCoords,p=h.x;return o._isHorizontal?(r=l===oe?d+u-s.y+t:d-u-(s.y+s.height)-t,i=c===se?p-s.x-s.width:c===ae?p-s.x:p-s.x-s.width/2):(r=h.y-s.y-s.height/2,l===ae?(i=c===ae?d-u-n-s.x:c===le?d-u-n/2-s.x-s.width/2:d-u-s.x-s.width,i-=t):(i=c===se?d+u+n-s.x-s.width:c===le?d+u+n/2-s.x-s.width/2:d+u-s.x,i+=t)),{translateX:i,translateY:r}},_createAxisGroups:function(){var e,t,n,i=this,r=i._renderer,o=i._axisCssPrefix,a=o+"constant-lines";i._axisGroup=r.g().attr({"class":o+"axis"}),i._axisStripGroup=r.g().attr({"class":o+"strips"}),i._axisGridGroup=r.g().attr({"class":o+"grid"}),i._axisElementsGroup=r.g().attr({"class":o+"elements"}).append(i._axisGroup),i._axisLineGroup=r.g().attr({"class":o+"line"}).append(i._axisGroup),i._axisTitleGroup=r.g().attr({"class":o+"title"}).append(i._axisGroup),e=r.g().attr({"class":a}),t=r.g().attr({"class":a}),n=r.g().attr({"class":a}),i._axisConstantLineGroups={inside:e,outside1:t,left:t,top:t,outside2:n,right:n,bottom:n},i._axisStripLabelGroup=r.g().attr({"class":o+"axis-labels"})},_clearAxisGroups:function(){var e=this;e._axisGroup.remove(),e._axisStripGroup.remove(),e._axisStripLabelGroup.remove(),e._axisConstantLineGroups.inside.remove(),e._axisConstantLineGroups.outside1.remove(),e._axisConstantLineGroups.outside2.remove(),e._axisGridGroup.remove(),e._axisTitleGroup.clear(),e._axisElementsGroup.clear(),e._axisLineGroup&&e._axisLineGroup.clear(),e._axisStripGroup&&e._axisStripGroup.clear(),e._axisGridGroup&&e._axisGridGroup.clear(),e._axisConstantLineGroups.inside.clear(),e._axisConstantLineGroups.outside1.clear(),e._axisConstantLineGroups.outside2.clear(),e._axisStripLabelGroup&&e._axisStripLabelGroup.clear()},_getLabelFormatObject:function(e,t,n,i,r,o){n=n||this._getViewportRange();var a={value:e,valueText:(0,C.smartFormatter)(e,{labelOptions:t,ticks:o||q(this._majorTicks),tickInterval:(0,E.isDefined)(r)?r:this._tickInterval,dataType:this._options.dataType,logarithmBase:this._options.logarithmBase,type:this._options.type,showTransition:!this._options.marker.visible,point:i})||"",min:n.minVisible,max:n.maxVisible};return i&&(a.point=i),a},formatLabel:function(e,t,n,i,r,o){var a=this._getLabelFormatObject(e,t,n,i,r,o);return(0,E.isFunction)(t.customizeText)?t.customizeText.call(a,a):a.valueText},formatHint:function(e,t,n){var i=this._getLabelFormatObject(e,t,n);return(0,E.isFunction)(t.customizeHint)?t.customizeHint.call(i,i):void 0},formatRange:function(e,t,n){return(0,C.formatRange)(e,t,n,this.getOptions())},_setTickOffset:function(){var e=this._options,t=e.discreteAxisDivisionMode;this._tickOffset=+("crossLabels"!==t||!t)},getMargins:function(){var e=this,t=e._options,n=t.position,i=t.placeholderSize,r=e.getCanvas(),o=r.left,a=r.top,s=r.width-r.right,l=r.height-r.bottom,c=ee(t.grid.visible&&t.grid.width||0,t.tick.visible&&t.tick.width||0),u=[e._axisElementsGroup,e._axisConstantLineGroups.outside1,e._axisConstantLineGroups.outside2].map(function(e){return e&&e.getBBox()}).concat(function(t){var n=t&&t.getBBox();return!n||n.isEmpty?n:(e._isHorizontal?(n.x=o,n.width=s-o):(n.y=a,n.height=l-a),n)}(e._axisTitleGroup)),d=u.reduce(function(e,t){return!t||t.isEmpty?e:{left:ee(e.left,o-t.x),top:ee(e.top,a-t.y),right:ee(e.right,t.x+t.width-s),bottom:ee(e.bottom,t.y+t.height-l)}},{left:0,right:0,top:0,bottom:0});return d[n]+=t.crosshairMargin,i&&(d[n]=i),c&&(e._isHorizontal&&r.right<c&&d.right<c&&(d.right=c),!e._isHorizontal&&r.bottom<c&&d.bottom<c&&(d.bottom=c)),d},_validateUnit:function(e,t,n){var i=this;return e=i.parser(e),void 0===e&&t&&i._incidentOccurred(t,[n]),e},_setType:function(e,t){var n,i=this;switch(e){case"xyAxes":n=$.default;break;case"polarAxes":n=X.default}(0,I.extend)(i,n[t])},_getSharpParam:function(){return!0},_disposeBreaksGroup:U.noop,dispose:function(){var e=this;[e._axisElementsGroup,e._axisStripGroup,e._axisGroup].forEach(function(e){e.dispose()}),e._strips=e._title=null,e._axisStripGroup=e._axisConstantLineGroups=e._axisStripLabelGroup=e._axisBreaksGroup=null,e._axisLineGroup=e._axisElementsGroup=e._axisGridGroup=null,e._axisGroup=e._axisTitleGroup=null,e._axesContainerGroup=e._stripsGroup=e._constantLinesGroup=null,e._renderer=e._options=e._textOptions=e._textFontStyles=null,e._translator=null,e._majorTicks=e._minorTicks=null,e._disposeBreaksGroup()},getOptions:function(){return this._options},setPane:function(e){this.pane=e,this._options.pane=e},setTypes:function(e,t,n){this._options.type=e||this._options.type,this._options[n]=t||this._options[n],this._updateTranslator()},resetTypes:function(e){this._options.type=this._initTypes.type,this._options[e]=this._initTypes[e]},getTranslator:function(){return this._translator},updateOptions:function(e){var t=this,n=e.label;t._options=e,e.tick=e.tick||{},e.minorTick=e.minorTick||{},e.grid=e.grid||{},e.minorGrid=e.minorGrid||{},e.title=e.title||{},e.marker=e.marker||{},t._initTypes={type:e.type,argumentType:e.argumentType,valueType:e.valueType},v(e),t._setTickOffset(),t._isHorizontal=e.isHorizontal,t.pane=e.pane,t.name=e.name,t.priority=e.priority,t._hasLabelFormat=""!==n.format&&(0,E.isDefined)(n.format),t._textOptions={opacity:n.opacity,align:"center"},t._textFontStyles=T.default.patchFontOptions(n.font),e.type===O.default.logarithmic&&e.logarithmBaseError&&(t._incidentOccurred("E2104"),delete e.logarithmBaseError),t._updateTranslator()},calculateInterval:function(e,t){var n=this._options;return n&&n.type===O.default.logarithmic?T.default.getLog(e/t,n.logarithmBase):J(e-t)},_processCanvas:function(e){return e},updateCanvas:function(e){var t=this._orthogonalPositions={start:this._isHorizontal?e.top:e.left,end:this._isHorizontal?e.height-e.bottom:e.width-e.right};this._canvas=e,t.center=t.start+(t.end-t.start)/2,this._translator.updateCanvas(this._processCanvas(e)),this._initAxisPositions()},getCanvas:function(){return this._canvas},hideTitle:function(){var e=this;e._options.title.text&&(e._incidentOccurred("W2105",[e._isHorizontal?"horizontal":"vertical"]),e._axisTitleGroup.clear())},hideOuterElements:function(){var e=this,t=e._options,n=e._outsideConstantLines.map(function(e){return e.label});!t.label.visible&&!n.length||e._translator.getBusinessRange().stubData||(e._incidentOccurred("W2106",[e._isHorizontal?"horizontal":"vertical"]),e._axisElementsGroup.clear(),n.forEach(function(e){e&&e.remove()}))},setBusinessRange:function(e){var t=this,n=function(e,t,n){function i(t,n,i){e[t]=(0,E.isDefined)(i)?i:(0,E.isDefined)(e[t])?e[t]:e[n]}return i("minVisible","min",t),i("maxVisible","max",n),e},i=t._options;t._seriesData=new H.default.Range(n(e,i.min,i.max)),t._breaks=t._getScaleBreaks(i,t._seriesData,t._series,t.isArgumentAxis),t._translator.updateBusinessRange(t._seriesData)},setGroupSeries:function(e){this._series=e},getLabelsPosition:function(){var e=this,t=e._options,n=t.position,i=t.label.indentFromAxis+(e._axisShift||0)+e._constantLabelOffset,r=e._axisPosition;return n===re||n===ae?r-i:r+i},getFormattedValue:function(e,t,n){var i=this._options.label;return(0,E.isDefined)(e)?this.formatLabel(e,(0,I.extend)(!0,{},i,t),void 0,n):null},_getBoundaryTicks:function(e,t){var n=this,i=e.length,r=n._options,o=r.customBoundTicks,a=t.minVisible,s=t.maxVisible,l=r.showCustomBoundaryTicks?n._boundaryTicksVisibility:{},c=[];return r.type===O.default.discrete?n._tickOffset&&0!==e.length&&(c=[e[0],e[e.length-1]]):o?(l.min&&(0,E.isDefined)(o[0])&&c.push(o[0]),l.max&&(0,E.isDefined)(o[1])&&c.push(o[1])):(l.min&&(0===i||e[0]>a)&&c.push(a),l.max&&(0===i||e[i-1]<s)&&c.push(s)),c},setPercentLabelFormat:function(){this._hasLabelFormat||(this._options.label.format="percent")},resetAutoLabelFormat:function(){this._hasLabelFormat||delete this._options.label.format},getMultipleAxesSpacing:function(){return this._options.multipleAxesSpacing||0},getTicksValues:function(){return{majorTicksValues:q(this._majorTicks),minorTicksValues:q(this._minorTicks)}},setTicks:function(e){var t=e.majorTicks||[];this._majorTicks=t.map(o(this,this._renderer,this._getSkippedCategory(t))),this._minorTicks=(e.minorTicks||[]).map(a(this,this._renderer)),this._isSynchronized=!0},_getTicks:function(e,t,n){var i=this,o=i._options,a=o.customTicks,s=o.customMinorTicks;return r(o,t||i._incidentOccurred,n)({min:e.minVisible,max:e.maxVisible,categories:e.categories,isSpacedMargin:e.isSpacedMargin,checkMinDataVisibility:e.checkMinDataVisibility,checkMaxDataVisibility:e.checkMaxDataVisibility},i._getScreenDelta(),i._translator.getBusinessRange().stubData?null:o.tickInterval,"ignore"===o.label.overlappingBehavior.mode||o.forceUserTickInterval,{majors:a,minors:s},o.minorTickInterval,o.minorTickCount,i._breaks)},_createTicksAndLabelFormat:function(e,t){var n,i=this._options;return n=this._getTicks(e,t,!1),i.type===O.default.discrete&&"datetime"===i.dataType&&!this._hasLabelFormat&&n.ticks.length&&(i.label.format=P.default.getDateFormatByTicks(n.ticks)),n},getAggregationInfo:function(e,t){var n=this,i=n._options,r=n._marginOptions,o=new H.default.Range(n.getTranslator().getBusinessRange()).addRange(t),a=n._zoomArgs,s=a&&(0,E.isDefined)(a.min)?a.min:o.minVisible,l=a&&(0,E.isDefined)(a.max)?a.max:o.maxVisible,c=[],u=i.aggregationInterval,d=i.aggregationGroupWidth;!d&&r&&(r.checkInterval&&(d=i.axisDivisionFactor),r.sizePointNormalState&&(d=Math.min(r.sizePointNormalState,i.axisDivisionFactor)));var h=!i.aggregationGroupWidth&&!u&&t.interval,p=w(i,d,o,n._getScreenDelta(),h),f=p(u,!0,s,l,n._breaks).tickInterval;if(i.type!==O.default.discrete){var g=e?o.min:s,_=e?o.max:l;if((0,E.isDefined)(g)&&(0,E.isDefined)(_)){var v=m({base:i.logarithmBase,axisType:i.type,dataType:i.dataType},!1),y=g,b=_;if(!e){var x=Math.max(n.calculateInterval(_,g),"datetime"===i.dataType?(0,j.dateToMilliseconds)(f):f);y=v(g,x,-1),b=v(_,x)}y=y<o.min?o.min:y,b=b>o.max?o.max:b;var S=n._getScaleBreaks(i,{minVisible:y,maxVisible:b},n._series,n.isArgumentAxis);c=p(f,!1,y,b,S).ticks}}return n._aggregationInterval=f,{interval:f,ticks:c}},createTicks:function(e){var t,n,i,r=this,l=r._renderer,c=r._options;if(e){r._isSynchronized=!1,r.updateCanvas(e),r._estimatedTickInterval=r._getTicks(new H.default.Range(this._seriesData),U.noop,!0).tickInterval,i=r._getViewportRange(),t=r._createTicksAndLabelFormat(i),n=r._getBoundaryTicks(t.ticks,i),c.showCustomBoundaryTicks&&n.length?(r._boundaryTicks=[n[0]].map(s(r,l,!0)),n.length>1&&(r._boundaryTicks=r._boundaryTicks.concat([n[1]].map(s(r,l,!1))))):r._boundaryTicks=[];var u=(t.minorTicks||[]).filter(function(e){return!n.some(function(t){return x(t)===x(e)})});r._tickInterval=t.tickInterval,r._minorTickInterval=t.minorTickInterval,r._majorTicks=t.ticks.map(o(r,l,r._getSkippedCategory(t.ticks))),r._minorTicks=u.map(a(r,l)),r._correctedBreaks=t.breaks,r.correctTicksOnDeprecated(),r._reinitTranslator(i)}},_reinitTranslator:function(e){var t=this,n=e.min,i=e.max,r=e.minVisible,o=e.maxVisible,a=e.interval,s=t._majorTicks,l=s.length,c=t._translator;t._isSynchronized||(t._options.type!==O.default.discrete&&(!l||t._options.skipViewportExtending||(0,E.isDefined)(t._zoomArgs)&&t.isArgumentAxis||(s[0].value<e.minVisible&&(r=s[0].value),l>1&&s[l-1].value>e.maxVisible&&(o=s[l-1].value)),a=t._calculateRangeInterval(t.calculateInterval(o,r),a),e.addRange({minVisible:r,maxVisible:o,interval:a}),(0,E.isDefined)(n)&&(0,E.isDefined)(i)&&n.valueOf()===i.valueOf()&&(e.min=e.max=n)),e.breaks=t._correctedBreaks,c.updateBusinessRange(e))},_getViewportRange:function(){var e=new H.default.Range(this._seriesData),t=this._zoomArgs;return e=this._applyMargins(e),(0,E.isDefined)(t)&&((0,E.isDefined)(t.min)||(0,E.isDefined)(t.max))&&((0,E.isDefined)(t.min)&&(e.minVisible=t.min),(0,E.isDefined)(t.max)&&(e.maxVisible=t.max),this.isArgumentAxis||(e=this._applyMargins(e))),e},setMarginOptions:function(e){this._marginOptions=e},_calculateRangeInterval:function(e,t){var n="datetime"===this._options.dataType,i=[],r=function(e){(0,E.isDefined)(e)&&i.push(n?(0,j.dateToMilliseconds)(e):e)};return r(this._tickInterval),r(this._estimatedTickInterval),(0,E.isDefined)(t)&&i.push(t),r(this._aggregationInterval),this._calculateWorkWeekInterval(te.apply(this,i))},_calculateWorkWeekInterval:function(e){var t=this._options;if("datetime"===t.dataType&&t.workdaysOnly&&e){var n=t.workWeek.length*de.day,i=de.week-n;if(n!==e&&i<e){var r=Math.ceil(e/de.week);e=i>=e?de.day:e-i*r}else i>=e&&e>de.day&&(e=de.day)}return e},_applyMargins:function(e){function t(e,t,n){return(0,E.isDefined)(n)||o.percentStick&&1===J(e)&&!v||(e=h(e,t)),e}var n,i=this,r=i._options,o=(0,E.isDefined)(i._marginOptions)?i._marginOptions:{},a=o.size,s=0,l=r.type,c=r.valueMarginsEnabled&&l!==O.default.discrete&&"semidiscrete"!==l,u=r.minValueMargin,d=r.maxValueMargin,h=m(e,!i.isArgumentAxis),p=e.minVisible,f=e.maxVisible,g=e.interval,_=i.calculateInterval(f,p)-(i._breaks||[]).reduce(function(e,t){return e+=i.calculateInterval(t.to,t.from)},0),v=this.isArgumentAxis,y=!v&&o.checkInterval;return c&&((0,E.isDefined)(u)&&(p=h(p,-_*u)),(0,E.isDefined)(d)&&(f=h(f,_*d)),(0,E.isDefined)(u)&&(0,E.isDefined)(d)||(v&&o.checkInterval&&(0===_?g=0:(g=i._calculateRangeInterval(_,e.interval),s=g/2)),a&&(n=1/(i._getScreenDelta()/a-1)/2,s=ee(s,_*(n>1?n/10:n))),0!==_&&(p=t(p,-s,u),f=t(f,s,d),_=f-p,p=S(p,o,_,Q.floor),f=S(f,o,_,Q.ceil))),e.addRange({minVisible:p,maxVisible:f,interval:g,isSpacedMargin:0!==s,checkMinDataVisibility:y&&!(0,E.isDefined)(r.min)&&p.valueOf()>0,checkMaxDataVisibility:y&&!(0,E.isDefined)(r.max)&&f.valueOf()<0})),e},correctTicksOnDeprecated:function(){var e=this._options.label.overlappingBehavior,t=this._majorTicks,n=t.length;n&&(t[0].withoutLabel=e.hideFirstLabel,t[n-1].withoutLabel=e.hideLastLabel,t[0].withoutPath=e.hideFirstTick,t[n-1].withoutPath=e.hideLastTick)},draw:function(e,t){var n=this,i=n._getGridLineDrawer(t||{visible:!1});n.createTicks(e),n._clearAxisGroups(),c(n._majorTicks),c(n._minorTicks),c(n._boundaryTicks),n._drawAxis(),n._drawTitle(),u(n._majorTicks),u(n._minorTicks),u(n._boundaryTicks),d(n._majorTicks,i),d(n._minorTicks,i),l(n._majorTicks,"drawLabel",n._getViewportRange()),n._outsideConstantLines=n._drawConstantLines("outside"),n._insideConstantLines=n._drawConstantLines("inside"),n._strips=n._drawStrips(),n._dateMarkers=n._drawDateMarkers()||[],n._axisGroup.append(n._axesContainerGroup),n._labelAxesGroup&&n._axisStripLabelGroup.append(n._labelAxesGroup),n._gridContainerGroup&&n._axisGridGroup.append(n._gridContainerGroup),n._stripsGroup&&n._axisStripGroup.append(n._stripsGroup),n._constantLinesGroup&&(n._axisConstantLineGroups.inside.append(n._constantLinesGroup),n._axisConstantLineGroups.outside1.append(n._constantLinesGroup),n._axisConstantLineGroups.outside2.append(n._constantLinesGroup)),n._measureTitle(),f(n._majorTicks),f(n._outsideConstantLines),f(n._insideConstantLines),f(n._strips),f(n._dateMarkers),n._adjustConstantLineLabels(n._insideConstantLines),n._adjustStripLabels();var r=n._constantLabelOffset=n._adjustConstantLineLabels(n._outsideConstantLines);n._translator.getBusinessRange().stubData||(n._setLabelsPlacement(),r=n._adjustLabels(r)),r=n._adjustDateMarkers(r),n._adjustTitle(r)},_measureTitle:U.noop,updateSize:function(e){var t=this;t.updateCanvas(e),t._reinitTranslator(t._getViewportRange());var n=t._getCanvasStartEnd();c(t._majorTicks),c(t._minorTicks),c(t._boundaryTicks),g(t._majorTicks),g(t._minorTicks),g(t._boundaryTicks),t._updateAxisElementPosition(),h(t._majorTicks),h(t._minorTicks),h(t._boundaryTicks),l(t._majorTicks,"updateLabelPosition"),t._outsideConstantLines.concat(t._insideConstantLines||[]).forEach(function(e){var i=t._getConstantLinePos(e.options.value,n.start,n.end).value;e.label&&e.label.attr(t._getConstantLineLabelsCoords(i,e.labelOptions)),e.line&&e.line.attr(t._getConstantLineGraphicAttributes(i))}),(t._strips||[]).forEach(function(e){var i=t._translator.getBusinessRange(),r=t._getStripPos(e.options.startValue,e.options.endValue,n.start,n.end,i);e.label&&e.label.attr(t._getStripLabelCoords(r.from,r.to,e.options.label)),e.rect&&e.rect.attr(t._getStripGraphicAttributes(r.from,r.to))}),t._updateTitleCoords(),t._checkTitleOverflow(),p(t._majorTicks),p(t._minorTicks)},applyClipRects:function(e,t){this._axisGroup.attr({"clip-path":t}),this._axisStripGroup.attr({"clip-path":e})},validate:function(){var e=this,t=e._options,n=e.isArgumentAxis?t.argumentType:t.valueType,i=n?B.default.getParser(n):function(e){return e};e.parser=i,t.dataType=n,void 0!==t.min&&(t.min=e._validateUnit(t.min,"E2106")),void 0!==t.max&&(t.max=e._validateUnit(t.max,"E2106"))},zoom:function(e,t,n){var i=this,r=i._options,o=r.min,a=r.max,s=r.type===O.default.discrete,l=i.getTranslator();return n=n||s,e=i._validateUnit(e),t=i._validateUnit(t),!s&&(0,E.isDefined)(e)&&(0,E.isDefined)(t)&&e>t&&(t=[e,e=t][0]),n||(void 0!==o&&(e=o>e?o:e,t=o>t?o:t),void 0!==a&&(t=a<t?a:t,e=a<e?a:e)),i._zoomArgs={min:e,max:t},i._breaks=i._getScaleBreaks(r,{minVisible:e,maxVisible:t},i._series,i.isArgumentAxis),l.zoomArgsIsEqualCanvas(i._zoomArgs)&&i.resetZoom(),i._zoomArgs},resetZoom:function(){this._zoomArgs=null},isZoomed:function(){return(0,E.isDefined)(this._zoomArgs)&&((0,E.isDefined)(this._zoomArgs.min)||(0,E.isDefined)(this._zoomArgs.max))},getViewport:function(){var e=this,t=e._options.min,n=e._options.max;return e._zoomArgs?e._zoomArgs:(0,E.isDefined)(t)||(0,E.isDefined)(n)?{min:t,max:n}:void 0},getRangeData:function(e){var t=this,n=t._getMinMax(),i=t._zoomArgs||{},r=t._options,o=r.type,a=r.synchronizedValue,s=n.min,l=n.max,c=void 0,u=void 0,d=void 0,h=void 0;
29
29
  return o===O.default.logarithmic&&(s=s<=0?void 0:s,l=l<=0?void 0:l),o!==O.default.discrete?(c=s,u=l,(0,E.isDefined)(s)&&(0,E.isDefined)(l)&&(c=s<l?s:l,u=l>s?l:s),d=(0,E.isDefined)(i.min)&&e?i.min:c,h=(0,E.isDefined)(i.max)&&e?i.max:u,(0,E.isDefined)(a)&&(c=(0,E.isDefined)(c)&&c<a?c:a,u=(0,E.isDefined)(u)&&u>a?u:a)):(d=(0,E.isDefined)(i.min)&&e?i.min:s,h=(0,E.isDefined)(i.max)&&e?i.max:l),{categories:r.categories,dataType:r.dataType,axisType:o,base:r.logarithmBase,invert:r.inverted,min:c,max:u,minVisible:d,maxVisible:h}},getFullTicks:function(){var e=this._majorTicks||[];return this._options.type===O.default.discrete?q(e):q(e.concat(this._minorTicks,this._boundaryTicks)).sort(function(e,t){return x(e)-x(t)})},measureLabels:function(e,t){var n,i,r,o,a,s,l=this,c=l._options,u=c.visible?c.width:0,d=t?c.label.indentFromAxis+.5*c.tick.length:0;return c.label.visible&&l._axisElementsGroup?(l._majorTicks?n=q(l._majorTicks):(this.updateCanvas(e),n=l._createTicksAndLabelFormat(this._getViewportRange(),U.noop),a=n.tickInterval,n=n.ticks),s=l._getViewportRange(),i=n.reduce(function(e,t,i){var r=l.formatLabel(t,c.label,s,void 0,a,n);return e.length<r.length?r:e},l.formatLabel(n[0],c.label,s,void 0,a,n)),r=l._renderer.text(i,0,0).css(l._textFontStyles).attr(l._textOptions).append(l._renderer.root),o=r.getBBox(),r.remove(),{x:o.x,y:o.y,width:o.width+d,height:o.height+d}):{height:u,width:u,x:0,y:0}},_setLabelsPlacement:function(){if(this._options.label.visible){var e,t,n=this,i=n._options.label,r=n._validateDisplayMode(i.displayMode),o=n._validateOverlappingMode(i.overlappingBehavior.mode,r),a=i.overlappingBehavior.rotationAngle,s=i.overlappingBehavior.staggeringSpacing,l="none"===o||"ignore"===o,c={rotationAngle:(0,E.isDefined)(a)?a:i.rotationAngle,staggeringSpacing:(0,E.isDefined)(s)?s:i.staggeringSpacing},u=n._majorTicks.map(function(e){return e.labelBBox});switch(t=n._getStep(u),r){case"rotate":l&&(e=!0,t=1),n._applyLabelMode(r,t,u,i,e);break;case"stagger":l&&(t=2),n._applyLabelMode(r,ee(t,2),u,i);break;default:n._applyLabelOverlapping(u,o,t,c)}}},_applyLabelOverlapping:function(e,t,n,i){var r=this,o=r._options.label,a=r._majorTicks;if("none"!==t&&"ignore"!==t){var s=function(e,t,n){return 0!==t&&O.default.areLabelsOverlap(e,n[t-1],o.minSpacing,o.alignment)};n>1&&e.some(s)&&r._applyLabelMode(t,n,e,i),"hide"===t&&r._checkBoundedLabelsOverlapping(n,a,e)}},_applyLabelMode:function(e,t,n,i,r){var o,a,s,l=this,c=l._majorTicks,u=l._options.label,d=i.rotationAngle;switch(e){case"rotate":u.userAlignment||(a=d<0?se:ae,d%90===0&&(a=le)),t=r?t:l._getStep(n,d),s=function(e){e.label.rotate(d),e.labelRotationAngle=d,a&&(e.labelAlignment=a)},b(c,t,s);break;case"stagger":o=l._getMaxLabelHeight(n,i.staggeringSpacing),s=function(e,n){n/(t-1)%2!==0&&(e.labelOffset=o)},b(c,t-1,s);break;case"auto":case"_auto":2===t?l._applyLabelMode("stagger",t,n,i):l._applyLabelMode("rotate",t,n,{rotationAngle:y(n,u)});break;default:b(c,t)}},getMarkerTrackers:U.noop,_drawDateMarkers:U.noop,_adjustDateMarkers:U.noop,coordsIn:U.noop,areCoordsOutsideAxis:U.noop,_getSkippedCategory:U.noop,_initAxisPositions:U.noop,_drawTitle:U.noop,_updateTitleCoords:U.noop,_adjustConstantLineLabels:U.noop,_createTranslator:function(){return new z.default.Translator2D({},{},{})},_updateTranslator:function(){var e=this._translator;e.update(e.getBusinessRange(),this._canvas||{},this._getTranslatorOptions())},_getTranslatorOptions:function(){var e=this._options;return{isHorizontal:this._isHorizontal,interval:e.semiDiscreteInterval,stick:this._getStick(),breaksSize:e.breakStyle?e.breakStyle.width:0}},_getCanvasStartEnd:function(){var e=this._isHorizontal,t=this._canvas,n=this._translator.getBusinessRange().invert,i=e?[t.left,t.width-t.right]:[t.height-t.bottom,t.top];return n&&i.reverse(),{start:i[0],end:i[1]}},_getScreenDelta:function(){var e=this,t=e._getCanvasStartEnd(),n=e._breaks,i=n?n.length:0,r=Q.abs(t.start-t.end);return r-(i?n[i-1].cumulativeWidth:0)},_getScaleBreaks:function(){return[]},_adjustTitle:U.noop,_checkTitleOverflow:U.noop,getSpiderTicks:U.noop,setSpiderTicks:U.noop,_checkBoundedLabelsOverlapping:U.noop,drawScaleBreaks:U.noop,getCategoriesSorter:function(){var e=this._options.categoriesSortingMethod;return(0,E.isDefined)(e)?e:this._options.categories}}},function(e,t,n){var i=n(16).map;e.exports={logarithmic:"logarithmic",discrete:"discrete",numeric:"numeric",left:"left",right:"right",top:"top",bottom:"bottom",center:"center",canvasPositionPrefix:"canvas_position_",canvasPositionTop:"canvas_position_top",canvasPositionBottom:"canvas_position_bottom",canvasPositionLeft:"canvas_position_left",canvasPositionRight:"canvas_position_right",canvasPositionStart:"canvas_position_start",canvasPositionEnd:"canvas_position_end",horizontal:"horizontal",vertical:"vertical",convertTicksToValues:function(e){return i(e||[],function(e){return e.value})},validateOverlappingMode:function(e){return"ignore"===e||"none"===e?e:"hide"},getTicksCountInRange:function(e,t,n){var i=1;if(e.length>1)for(;i<e.length&&!(Math.abs(e[i].coords[t]-e[0].coords[t])>=n);i++);return i},areLabelsOverlap:function(e,t,n,i){var r,o,a=e.x>t.x,s=e.y>t.y,l=e.x,c=t.x,u=e.width,d=t.width;return"left"===i?(l+=u/2,c+=d/2):"right"===i&&(l-=u/2,c-=d/2),r=a?c+d+n>l:l+u+n>c,o=s?t.y+t.height>e.y:e.y+e.height>t.y,r&&o}}},function(e,t,n){function i(e,t){return T(e)&&T(t)&&e.valueOf()===t.valueOf()}function r(e,t){var n,i,r,o,a="logarithmic"===t.axisType?function(e){return C(e,t.base)}:function(e){return e},s=[],l=e.length,c=0;for(o=0;o<l;o++)n=e[o],i=a(n.from),r=a(n.to),c+=r-i,s.push({trFrom:i,trTo:r,from:n.from,to:n.to,length:c,cumulativeWidth:n.cumulativeWidth});return s}function o(e){var t,n,r=e.min,o=e.max,a=e.minVisible,s=e.maxVisible,l=e.base,c=S.isDate(o)||S.isDate(r),u=c?I:O,d="logarithmic"===e.axisType;return d&&(s=C(s,l),a=C(a,l),r=C(r,l),o=C(o,l)),i(r,o)&&(t=r.valueOf()-u,n=o.valueOf()+u,c?(r=new Date(t),o=new Date(n)):(r=0!==r||d?t:0,o=n)),i(a,s)&&(t=a.valueOf()-u,n=s.valueOf()+u,c?(a=t<r.valueOf()?r:new Date(t),s=n>o.valueOf()?o:new Date(n)):((0!==a||d)&&(a=t<r?r:t),s=n>o?o:n)),{base:l,rangeMin:r,rangeMax:o,rangeMinVisible:a,rangeMaxVisible:s}}function a(e){var t=S.isDate(e.min)||S.isDate(e.max);return t?I:O}function s(e){var t=this.getBusinessRange();return i(t.min,t.max)&&this.isEqualRange(e)}function l(e){var t=this,n=t.getBusinessRange(),i=o(n),r=a(n)/100,s=new w.Range(e);return"discrete"!==n.axisType&&(e&&"logarithmic"===n.axisType&&(s.min=s.min&&C(s.min,n.base),s.max=s.max&&C(s.max,n.base)),e&&(!T(s.min)||E(s.min-i.rangeMin)<=r)&&(!T(s.max)||E(s.max-i.rangeMax)<=r))}function c(e,t,n,i,r){var o=this,a=o.getBusinessRange(),s="discrete"===a.axisType,l=o.scrollHasExtremePosition(e,!1),c=o.scrollHasExtremePosition(e,!0),u=o.checkScrollForOriginalScale(e),d=l&&((a.rotated?n>0:n<0)||1!==t),h=c&&((a.rotated?n<0:n>0)||1!==t);return 2===i&&1===t||(r||s||!this.isEqualRange({min:a.minVisible,max:a.maxVisible}))&&!l&&!c||!u&&(d||h)||u&&t>1}function u(e){return this.scrollHasExtremePosition(e,!1)&&this.scrollHasExtremePosition(e,!0)}function d(e,t){var n,i,r=this,o=r.getBusinessRange(),s="discrete"===o.axisType,l=s?o.categories[0]:o.min,c=s?o.categories[o.categories.length-1]:o.max,u=l===c,d=!o.invert&&t||o.invert&&!t,h=d?c:l,p=d?o.maxVisible:o.minVisible;return s?!T(p)||h.valueOf()===p.valueOf():("logarithmic"===o.axisType&&(h=x.getLog(h,o.base),p=x.getLog(p,o.base)),n=h.valueOf()===p.valueOf()?0:a(o),i=u?Math.abs(h+(d?1:-1)*n-p):Math.abs(h-p),i*r._canvasOptions.ratioOfCanvasRange<e)}function h(e){return{isStartSide:e?function(e,t,n,i){return e<=t[t.length-1][i]}:function(e,t,n,i){return e<t[0][n]},isEndSide:e?function(e,t,n,i){return e>t[0][n]}:function(e,t,n,i){return e>=t[t.length-1][i]},isInBreak:e?function(e,t,n,i){return e>t[i]&&e<=t[n]}:function(e,t,n,i){return e>=t[n]&&e<t[i]},isBetweenBreaks:e?function(e,t,n,i,r){return e>=t[r]&&e<n[i]}:function(e,t,n,i,r){return e<t[i]&&e>=n[r]},getLength:e?function(e,t){return t.length-e.length}:function(e){return e.length},getBreaksSize:e?function(e,t){return t.cumulativeWidth-e.cumulativeWidth}:function(e){return e.cumulativeWidth}}}var p,f=n(0).extend,g=n(3).each,_=n(302),m=n(684),v=n(685),y=n(686),b=n(687),x=n(16),S=n(1),w=n(135),C=x.getLog,k=x.getPower,T=S.isDefined,E=Math.abs,A=["width","height","left","top","bottom","right"],O=1,I=6e4,D=n(4).noop,M=n(23).addInterval,P=function(e){return g(A,function(t,n){e[n]=parseInt(e[n])||0}),e},L=function(e){var t={};return e.forEach(function(e,n){t[e.valueOf()]=n}),t},B=function(e){function t(t,n){!T(e[t])&&T(e[n])&&(e[t]=e[n])}return t("minVisible","min"),t("maxVisible","max"),e};t.Translator2D=p=function(e,t,n){this.update(e,t,n)},p.prototype={constructor:p,reinit:function(){var e=this,t=e._options,n=e._businessRange,i=n.categories||[],r={},o=e._prepareCanvasOptions(),a=x.getCategoriesInfo(i,n.minVisible,n.maxVisible).categories,s=a.length;switch(n.axisType){case"logarithmic":r=b;break;case"semidiscrete":r=v,o.ratioOfCanvasRange=o.canvasLength/(M(o.rangeMaxVisible,t.interval)-o.rangeMinVisible);break;case"discrete":r=m,e._categories=i,o.interval=e._getDiscreteInterval(t.addSpiderCategory?s+1:s,o),e._categoriesToPoints=L(i,o.invert),s&&(o.startPointIndex=e._categoriesToPoints[a[0].valueOf()],e.visibleCategories=a);break;default:r="datetime"===n.dataType?y:_}f(e,r),e._conversionValue=t.conversionValue?function(e){return e}:function(e){return Math.round(e)},e.sc={},e._checkingMethodsAboutBreaks=[h(!1),h(e.isInverted())],e._translateBreaks(),e._calculateSpecialValues()},_translateBreaks:function(){var e,t,n,i,r=this._breaks,o=this._options.breaksSize;if(void 0!==r)for(e=0,i=r.length;e<i;e++)t=r[e],n=this.translate(t.to),t.end=n,t.start=t.gapSize?n:this.isInverted()?n+o:n-o},_checkValueAboutBreaks:function(e,t,n,i,r){var o,a,s,l,c={length:0,breaksSize:void 0,inBreak:!1},u=e[e.length-1];if(r.isStartSide(t,e,n,i))return c;if(r.isEndSide(t,e,n,i))return{length:u.length,breaksSize:u.cumulativeWidth,inBreak:!1};for(o=0,a=e.length;o<a;o++){if(s=e[o],l=e[o-1],r.isInBreak(t,s,n,i)){c.inBreak=!0,c.break=s;break}if(l&&r.isBetweenBreaks(t,s,l,n,i)){c={length:r.getLength(l,u),breaksSize:r.getBreaksSize(l,u),inBreak:!1};break}}return c},isInverted:function(){return!(this._options.isHorizontal^this._businessRange.invert)},_getDiscreteInterval:function(e,t){var n=e-(this._options.stick?1:0);return n>0?t.canvasLength/n:t.canvasLength},_prepareCanvasOptions:function(){var e,t=this,n=t._businessRange,i=t._canvasOptions=o(n),r=t._canvas,a=t._breaks;return t._options.isHorizontal?(i.startPoint=r.left,e=r.width,i.endPoint=r.width-r.right,i.invert=n.invert):(i.startPoint=r.top,e=r.height,i.endPoint=r.height-r.bottom,i.invert=!n.invert),t.canvasLength=i.canvasLength=i.endPoint-i.startPoint,i.rangeDoubleError=Math.pow(10,k(i.rangeMax-i.rangeMin)-k(e)-2),i.ratioOfCanvasRange=i.canvasLength/(i.rangeMaxVisible-i.rangeMinVisible),void 0!==a&&(i.ratioOfCanvasRange=(i.canvasLength-a[a.length-1].cumulativeWidth)/(i.rangeMaxVisible-i.rangeMinVisible-a[a.length-1].length)),i},updateCanvas:function(e){this._canvas=P(e),this.reinit()},updateBusinessRange:function(e){var t=this,n=e.breaks||[];t._businessRange=B(e),t._breaks=n.length?r(n,t._businessRange):void 0,t.reinit()},update:function(e,t,n){var i=this;i._options=f(i._options||{},n),i._canvas=P(t),i.updateBusinessRange(e)},getBusinessRange:function(){return this._businessRange},getCanvasVisibleArea:function(){return{min:this._canvasOptions.startPoint,max:this._canvasOptions.endPoint}},_calculateSpecialValues:function(){var e,t,n,i=this,r=i._canvasOptions,o=r.startPoint,a=r.endPoint,s=i._businessRange,l=s.minVisible,c=s.maxVisible;l<=0&&c>=0?t=i.translate(0,1):(e=s.invert^(l<=0&&c<=0),t=i._options.isHorizontal?e?a:o:e?o:a),n=o+r.canvasLength/2,i.sc={canvas_position_default:t,canvas_position_left:o,canvas_position_top:o,canvas_position_center:n,canvas_position_middle:n,canvas_position_right:a,canvas_position_bottom:a,canvas_position_start:r.invert?a:o,canvas_position_end:r.invert?o:a}},translateSpecialCase:function(e){return this.sc[e]},_calculateProjection:function(e){var t=this._canvasOptions;return t.invert?t.endPoint-e:t.startPoint+e},_calculateUnProjection:function(e){var t=this._canvasOptions;return t.invert?t.rangeMaxVisible.valueOf()-e:t.rangeMinVisible.valueOf()+e},getMinBarSize:function(e){var t=this.getCanvasVisibleArea(),n=this.untranslate(t.min+e);return E(this.untranslate(t.min)-(T(n)?n:this.untranslate(t.max)))},checkMinBarSize:function(e,t,n){return E(e)<t?e>=0?t:-t:e},translate:D,untranslate:D,getInterval:D,zoom:D,getMinScale:D,zoomArgsIsEqualCanvas:s,isEqualRange:l,checkScrollForOriginalScale:u,scrollHasExtremePosition:d,checkGestureEventsForScaleEdges:c,getRange:function(){return[this.untranslate(this._canvasOptions.startPoint,-1),this.untranslate(this._canvasOptions.endPoint,1)]},isEmptyValueRange:function(){return this._businessRange.stubData},getScreenRange:function(){return[this._canvasOptions.startPoint,this._canvasOptions.endPoint]},add:function(e,t,n){return this._add(e,t,(this._businessRange.invert?-1:1)*n)}}},function(e,t,n){var i=n(1).isDefined,r=Math.round;e.exports={translate:function(e,t){var n=this,r=n.translateSpecialCase(e);return i(r)?r:isNaN(e)?null:n.to(e,t)},untranslate:function(e,t,n,r){var o=this,a=o._canvasOptions,s=a.startPoint;return!n&&(e<s||e>a.endPoint)||!i(a.rangeMin)||!i(a.rangeMax)?null:o.from(e,r)},getInterval:function(){return r(this._canvasOptions.ratioOfCanvasRange*(this._businessRange.interval||Math.abs(this._canvasOptions.rangeMax-this._canvasOptions.rangeMin)))},_getValue:function(e){return e},zoom:function(e,t){var n=this,i=n._canvasOptions,r=i.startPoint,o=i.endPoint,a=(r+e)/t,s=(o+e)/t,l=[n.translate(n._getValue(i.rangeMin)),n.translate(n._getValue(i.rangeMax))],c=Math.min(l[0],l[1]),u=Math.max(l[0],l[1]);return c>a&&(s-=a-c,a=c),u<s&&(a-=s-u,s=u),u-c<s-a&&(a=c,s=u),e=(o-r)*a/(s-a)-r,t=(r+e)/a||1,{min:n.untranslate(a,void 0,!0,1),max:n.untranslate(s,void 0,!0,-1),translate:e,scale:t}},getMinScale:function(e){return e?1.1:.9},getScale:function(e,t){var n=this._canvasOptions;return e=i(e)?e:n.rangeMin,t=i(t)?t:n.rangeMax,(n.rangeMax-n.rangeMin)/Math.abs(e-t)},isValid:function(e){var t=this,n=t._canvasOptions;return null!==e&&!isNaN(e)&&e.valueOf()+n.rangeDoubleError>=n.rangeMin&&e.valueOf()-n.rangeDoubleError<=n.rangeMax},getCorrectValue:function(e,t){var n,i=this,r=i._breaks;return e=i._parse(e),i._breaks&&(n=i._checkValueAboutBreaks(r,e,"trFrom","trTo",i._checkingMethodsAboutBreaks[0]),n.inBreak===!0)?t>0?n.break.trTo:n.break.trFrom:e},_parse:function(e){return Number(e)},to:function(e,t){var n=this,r=n._canvasOptions,o=n._breaks,a={length:0},s=0;return void 0!==o&&(a=n._checkValueAboutBreaks(o,e,"trFrom","trTo",n._checkingMethodsAboutBreaks[0]),s=i(a.breaksSize)?a.breaksSize:0),a.inBreak===!0?t>0?a.break.start:t<0?a.break.end:null:n._conversionValue(n._calculateProjection((e-r.rangeMinVisible-a.length)*r.ratioOfCanvasRange+s))},from:function(e,t){var n=this,r=n._breaks,o={length:0},a=n._canvasOptions,s=a.startPoint,l=0;return void 0!==r&&(o=n._checkValueAboutBreaks(r,e,"start","end",n._checkingMethodsAboutBreaks[1]),l=i(o.breaksSize)?o.breaksSize:0),o.inBreak===!0?t>0?o.break.trTo:t<0?o.break.trFrom:null:this._calculateUnProjection((e-s-l)/a.ratioOfCanvasRange+o.length)},_add:function(e,t,n){return e+t*n},isValueProlonged:!1}},function(e,t,n){function i(e){var t,n,i=e.x,r=e.y,o=m[e.type],a=e.textWidth+2*e.horMargin,s=e.textHeight+2*e.verMargin,c=i,u=r;return t=n=e.tailLength,1&o[0]?n=Math.min(n,s/3):t=Math.min(t,a/3),{cx:l(c+o[0]*t+(o[0]+o[2])*a/2),cy:l(u+o[1]*n+(o[1]+o[3])*s/2),points:[l(i),l(r),l(i+=o[0]*(a+t)),l(r+=o[1]*(s+n)),l(i+=o[2]*a),l(r+=o[3]*s),l(i+=o[4]*a),l(r+=o[5]*s),l(i+=o[6]*(a-t)),l(r+=o[7]*(s-n))]}}var r=n(4).noop,o=n(3).each,a=isFinite,s=Number,l=Math.round,c=n(169),u=c.formatValue,d=c.getSampleText,h=n(16).patchFontOptions,p=n(0).extend,f=n(10),g=f.inherit({ctor:function(e){var t=this;o(e,function(e,n){t["_"+e]=n}),t._init()},dispose:function(){var e=this;return e._dispose(),o(e,function(t){e[t]=null}),e},getOffset:function(){return s(this._options.offset)||0}}),_=g.inherit({_init:function(){var e=this;e._rootElement=e._createRoot().linkOn(e._owner,{name:"value-indicator",after:"core"}),e._trackerElement=e._createTracker()},_dispose:function(){this._rootElement.linkOff()},_setupAnimation:function(){var e=this;e._options.animation&&(e._animation={step:function(t){e._actualValue=e._animation.start+e._animation.delta*t,e._actualPosition=e._translator.translate(e._actualValue),e._move()},duration:e._options.animation.duration>0?s(e._options.animation.duration):0,easing:e._options.animation.easing})},_runAnimation:function(e){var t=this,n=t._animation;n.start=t._actualValue,n.delta=e-t._actualValue,t._rootElement.animate({_:0},{step:n.step,duration:n.duration,easing:n.easing})},_createRoot:function(){return this._renderer.g().attr({"class":this._className})},_createTracker:function(){return this._renderer.path([],"area")},_getTrackerSettings:r,clean:function(){var e=this;return e._animation&&e._rootElement.stopAnimation(),e._rootElement.linkRemove().clear(),e._clear(),e._tracker.detach(e._trackerElement),e._options=e.enabled=e._animation=null,e},render:function(e){var t=this;return t.type=e.type,t._options=e,t._actualValue=t._currentValue=t._translator.adjust(t._options.currentValue),t.enabled=t._isEnabled(),t.enabled&&(t._setupAnimation(),t._rootElement.attr({fill:t._options.color}).linkAppend(),t._tracker.attach(t._trackerElement,t,t._trackerInfo)),t},resize:function(e){var t=this;return t._rootElement.clear(),t._clear(),t.visible=t._isVisible(e),t.visible&&(p(t._options,e),t._actualPosition=t._translator.translate(t._actualValue),t._render(),t._trackerElement.attr(t._getTrackerSettings()),t._move()),t},value:function(e,t){var n,i=this,r=this._rootElement,o=null;return void 0===e?i._currentValue:(null===e?(o="hidden",i._currentValue=e):(n=i._translator.adjust(e),i._currentValue!==n&&a(n)&&(i._currentValue=n,i.visible&&(i._animation&&!t?i._runAnimation(n):(i._actualValue=n,i._actualPosition=i._translator.translate(n),i._move())))),r.attr({visibility:o}),i)},_isEnabled:null,_isVisible:null,_render:null,_clear:null,_move:null}),m={};m["right-bottom"]=m.rb=[0,-1,-1,0,0,1,1,0],m["bottom-right"]=m.br=[-1,0,0,-1,1,0,0,1],m["left-bottom"]=m.lb=[0,-1,1,0,0,1,-1,0],m["bottom-left"]=m.bl=[1,0,0,-1,-1,0,0,1],m["left-top"]=m.lt=[0,1,1,0,0,-1,-1,0],m["top-left"]=m.tl=[1,0,0,1,-1,0,0,-1],m["right-top"]=m.rt=[0,1,-1,0,0,-1,1,0],m["top-right"]=m.tr=[-1,0,0,1,1,0,0,-1];var v=_.inherit({_move:function(){var e,t,n=this,r=n._getTextCloudOptions(),o=u(n._actualValue,n._options.text);n._text.attr({text:o}),e=n._text.getBBox(),t=i({x:r.x,y:r.y,textWidth:e.width||o.length*n._textUnitWidth,textHeight:e.height||n._textHeight,horMargin:n._options.horizontalOffset,verMargin:n._options.verticalOffset,tailLength:n._options.arrowLength,type:r.type}),n._text.attr({x:t.cx,y:t.cy+n._textVerticalOffset}),n._cloud.attr({points:t.points}),n._trackerElement&&n._trackerElement.attr({points:t.points})},_measureText:function(){var e,t,n,i,r=this;r._textVerticalOffset||(e=r._createRoot().append(r._owner),i=d(r._translator,r._options.text),t=r._renderer.text(i,0,0).attr({align:"center"}).css(h(r._options.text.font)).append(e),n=t.getBBox(),e.remove(),r._textVerticalOffset=-n.y-n.height/2,r._textWidth=n.width,r._textHeight=n.height,r._textUnitWidth=r._textWidth/i.length,r._textFullWidth=r._textWidth+2*r._options.horizontalOffset,r._textFullHeight=r._textHeight+2*r._options.verticalOffset)},_render:function(){var e=this;e._measureText(),e._cloud=e._cloud||e._renderer.path([],"area").append(e._rootElement),e._text=e._text||e._renderer.text().append(e._rootElement),e._text.attr({align:"center"}).css(h(e._options.text.font))},_clear:function(){delete this._cloud,delete this._text},getTooltipParameters:function(){var e=this._getTextCloudOptions();return{x:e.x,y:e.y,value:this._currentValue,color:this._options.color}}}),y=_.inherit({_measureText:function(){var e,t,n,i=this;i._hasText=i._isTextVisible(),i._hasText&&!i._textVerticalOffset&&(e=i._createRoot().append(i._owner),t=i._renderer.text(d(i._translator,i._options.text),0,0).attr({"class":"dxg-text",align:"center"}).css(h(i._options.text.font)).append(e),n=t.getBBox(),e.remove(),i._textVerticalOffset=-n.y-n.height/2,i._textWidth=n.width,i._textHeight=n.height)},_move:function(){var e=this;e._updateBarItemsPositions(),e._hasText&&(e._text.attr({text:u(e._actualValue,e._options.text)}),e._updateTextPosition(),e._updateLinePosition())},_updateBarItems:function(){var e,t,n=this,i=n._options,r=n._translator;n._setBarSides(),n._startPosition=r.translate(r.getDomainStart()),n._endPosition=r.translate(r.getDomainEnd()),n._basePosition=r.translate(i.baseValue),n._space=n._getSpace(),e=i.backgroundColor||"none","none"!==e&&n._space>0?t=i.containerBackgroundColor||"none":(n._space=0,t="none"),n._backItem1.attr({fill:e}),n._backItem2.attr({fill:e}),n._spaceItem1.attr({fill:t}),n._spaceItem2.attr({fill:t})},_getSpace:function(){return 0},_updateTextItems:function(){var e=this;e._hasText?(e._line=e._line||e._renderer.path([],"line").attr({"class":"dxg-main-bar","stroke-linecap":"square"}).append(e._rootElement),e._text=e._text||e._renderer.text("",0,0).attr({"class":"dxg-text"}).append(e._rootElement),e._text.attr({align:e._getTextAlign()}).css(e._getFontOptions()),e._setTextItemsSides()):(e._line&&(e._line.remove(),delete e._line),e._text&&(e._text.remove(),delete e._text))},_isTextVisible:function(){return!1},_getTextAlign:function(){return"center"},_getFontOptions:function(){var e=this._options,t=e.text.font;return t&&t.color||(t=p({},t,{color:e.color})),h(t)},_updateBarItemsPositions:function(){var e=this,t=e._getPositions();e._backItem1.attr(e._buildItemSettings(t.start,t.back1)),e._backItem2.attr(e._buildItemSettings(t.back2,t.end)),e._spaceItem1.attr(e._buildItemSettings(t.back1,t.main1)),e._spaceItem2.attr(e._buildItemSettings(t.main2,t.back2)),e._mainItem.attr(e._buildItemSettings(t.main1,t.main2)),e._trackerElement&&e._trackerElement.attr(e._buildItemSettings(t.main1,t.main2))},_render:function(){var e=this;e._measureText(),e._backItem1||(e._backItem1=e._createBarItem(),e._backItem1.attr({"class":"dxg-back-bar"})),e._backItem2||(e._backItem2=e._createBarItem(),e._backItem2.attr({"class":"dxg-back-bar"})),e._spaceItem1||(e._spaceItem1=e._createBarItem(),e._spaceItem1.attr({"class":"dxg-space-bar"})),e._spaceItem2||(e._spaceItem2=e._createBarItem(),e._spaceItem2.attr({"class":"dxg-space-bar"})),e._mainItem||(e._mainItem=e._createBarItem(),e._mainItem.attr({"class":"dxg-main-bar"})),e._updateBarItems(),e._updateTextItems()},_clear:function(){var e=this;delete e._backItem1,delete e._backItem2,delete e._spaceItem1,delete e._spaceItem2,delete e._mainItem,delete e._hasText,delete e._line,delete e._text},getTooltipParameters:function(){var e=this._getTooltipPosition();return{x:e.x,y:e.y,value:this._currentValue,color:this._options.color,offset:0}}});t.BaseElement=g,t.BaseIndicator=_,t.BaseTextCloudMarker=v,t.BaseRangeBar=y},function(e,t,n){var i=n(16).patchFontOptions;t.buildRectAppearance=function(e){var t=e.border||{};return{fill:e.color,opacity:e.opacity,stroke:t.color,"stroke-width":t.width,"stroke-opacity":t.opacity,hatching:e.hatching}},t.buildTextAppearance=function(e,t){return{attr:e["stroke-width"]?{stroke:e.stroke,"stroke-width":e["stroke-width"],"stroke-opacity":e["stroke-opacity"],filter:t}:{},css:i(e.font)}}},,,,,,,,function(e,t,n){var i=n(10),r=n(6).getWindow(),o=n(1),a=n(0).extend,s=n(11).inArray,l=n(21),c=n(39),u=n(313),d=n(213),h=n(217),p='<?xml version="1.0" encoding="utf-8"?>',f='<sheetPr><outlinePr summaryBelow="0"/></sheetPr>',g="<sheetPr/>",_='<fonts count="2"><font><sz val="11"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font><font><b/><sz val="11"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts><fills count="1"><fill><patternFill patternType="none"/></fill></fills><borders count="1"><border><left style="thin"><color rgb="FFD3D3D3"/></left><right style="thin"><color rgb="FFD3D3D3"/></right><top style="thin"><color rgb="FFD3D3D3"/></top><bottom style="thin"><color rgb="FFD3D3D3"/></bottom></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',m="http://schemas.openxmlformats.org",v="rels",y="xl",b="workbook.xml",x="[Content_Types].xml",S="sharedStrings.xml",w="styles.xml",C="worksheets",k="sheet1.xml",T={"boolean":"b",date:"d",number:"n",string:"s"},E=Date.UTC(1899,11,30),A=60,O=4,I=7,D=165;t.ExcelCreator=i.inherit({_getXMLTag:function(e,t,n){var i,r,a="<"+e,s=t.length;for(i=0;i<s;i++)r=t[i],a=a+" "+r.name+'="'+r.value+'"';return o.isDefined(n)?a+">"+n+"</"+e+">":a+" />"},_getCellIndex:function(e,t){var n,i,r="",o=26;for(this._maxIndex[0]<Number(e)&&(this._maxIndex[0]=Number(e)),this._maxIndex[1]<Number(t)&&(this._maxIndex[1]=Number(t));!i;)n=65+(t>=o?t%o:Math.ceil(t)),r=String.fromCharCode(n)+r,t>=o?t=Math.floor(t/o)-1:i=!0;return r+e},_getDataType:function(e){return T[e]||"s"},_formatObjectConverter:function(e,t,n){var i={format:e,precision:t,dataType:n};return o.isObject(e)?a(i,e,{format:e.formatter||e.type,currency:e.currency}):i},_appendFormat:function(e,t,n){var i,r=this._formatObjectConverter(e,t,n);if(e=r.format,t=r.precision,i=r.currency,n=r.dataType,e=h.convertFormat(e,t,n,i))return s(e,this._styleFormat)===-1&&this._styleFormat.push(e),s(e,this._styleFormat)+1},_appendString:function(e){if(o.isDefined(e)&&(e=String(e),e.length))return e=c.encodeHtml(e),void 0===this._stringHash[e]&&(this._stringHash[e]=this._stringArray.length,this._stringArray.push(e)),this._stringHash[e]},_getExcelDateValue:function(e){var t,n;if(o.isDate(e))return t=Math.floor((Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())-E)/864e5),t<A&&t--,n=(3600*e.getHours()+60*e.getMinutes()+e.getSeconds())/86400,t+n},_prepareValue:function(e,t){var n=this._dataProvider,i=n.getCellValue(e,t),r=this._getDataType(n.getCellType(e,t)),a=this._styleArray[this._dataProvider.getStyleId(e,t)].formatID,s=o.isNumeric(a)?this._styleFormat[a-1]:null;switch("d"!==r||o.isDate(i)||(r="s"),r){case"s":i=this._appendString(i);break;case"d":i=this._getExcelDateValue(i,s),r="n"}return{value:i,type:r}},_getDataArray:function(){var e,t,n,i,r,o=this,a=[],s=o._dataProvider,l=s.getRowsCount(),c=s.getColumns();for(e=0;e<l;e++){for(n=[],r=c.length,t=0;t!==r;t++)i=o._prepareValue(e,t),n.push({style:s.getStyleId(e,t),value:i.value,type:i.type});!o._needSheetPr&&s.getGroupLevel(e)>0&&(o._needSheetPr=!0),a.push(n)}return a},_getBoldStyleID:function(e){for(var t=0;t<O-1;t++)if(this._styleArray[t].alignment===e)return t},_calculateWidth:function(e){return e=parseInt(e,10),(!e||e<5)&&(e=100),Math.min(255,Math.floor((e-5)/I*100+.5)/100)},_prepareStyleData:function(){var e=this,t=e._dataProvider.getStyles();e._dataProvider.getColumns().forEach(function(t){e._colsArray.push(e._calculateWidth(t.width))}),t.forEach(function(t){e._styleArray.push({bold:!!t.bold,alignment:t.alignment||"left",formatID:e._appendFormat(t.format,t.precision,t.dataType),wrapText:t.wrapText})})},_prepareCellData:function(){this._cellsArray=this._getDataArray()},_createXMLRelationships:function(e){return this._getXMLTag("Relationships",[{name:"xmlns",value:m+"/package/2006/relationships"}],e)},_createXMLRelationship:function(e,t,n){return this._getXMLTag("Relationship",[{name:"Id",value:"rId"+e},{name:"Type",value:m+"/officeDocument/2006/relationships/"+t},{name:"Target",value:n}])},_getWorkbookContent:function(){var e='<bookViews><workbookView xWindow="0" yWindow="0" windowWidth="0" windowHeight="0"/></bookViews><sheets><sheet name="Sheet" sheetId="1" r:id="rId1" /></sheets><definedNames><definedName name="_xlnm.Print_Titles" localSheetId="0">Sheet!$1:$1</definedName><definedName name="_xlnm._FilterDatabase" hidden="0" localSheetId="0">Sheet!$A$1:$F$6332</definedName></definedNames>';return p+this._getXMLTag("workbook",[{name:"xmlns:r",value:m+"/officeDocument/2006/relationships"},{name:"xmlns",value:m+"/spreadsheetml/2006/main"}],e)},_getContentTypesContent:function(){return p+'<Types xmlns="'+m+'/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Default Extension="xml" ContentType="application/xml" /><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /><Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /></Types>'},_generateStylesXML:function(){var e,t=this,n=t._zip.folder(y),i=[],r="";for(e=0;e<t._styleFormat.length;e++)t._styleFormat[e]=t._getXMLTag("numFmt",[{name:"numFmtId",value:Number(e)+D},{name:"formatCode",value:t._styleFormat[e]}]);r=r+t._getXMLTag("numFmts",[{name:"count",value:t._styleFormat.length}],t._styleFormat.join(""))+_,this._styleArray.forEach(function(e){i.push(t._getXMLTag("xf",[{name:"xfId",value:0},{name:"applyAlignment",value:1},{name:"fontId",value:Number(!!e.bold)},{name:"applyNumberFormat",value:o.isDefined(e.formatID)?1:0},{name:"numFmtId",value:o.isDefined(e.formatID)?Number(e.formatID)+D-1:0}],t._getXMLTag("alignment",[{name:"vertical",value:"top"},{name:"wrapText",value:Number(!!e.wrapText)},{name:"horizontal",value:e.alignment}])))}),r+=t._getXMLTag("cellXfs",[{name:"count",value:i.length}],i.join("")),r+=t._getXMLTag("cellStyles",[{name:"count",value:1}],t._getXMLTag("cellStyle",[{name:"name",value:"Normal"},{name:"xfId",value:0},{name:"builtinId",value:0}])),r=p+t._getXMLTag("styleSheet",[{name:"xmlns",value:m+"/spreadsheetml/2006/main"}],r),n.file(w,r),t._styleArray=[]},_generateStringsXML:function(){var e,t=this._zip.folder(y),n=this._stringArray.length,i=p;for(e=0;e<n;e++)this._stringArray[e]=this._getXMLTag("si",[],this._getXMLTag("t",[],this._stringArray[e]));i+=this._getXMLTag("sst",[{name:"xmlns",value:m+"/spreadsheetml/2006/main"},{name:"count",value:this._stringArray.length},{name:"uniqueCount",value:this._stringArray.length}],this._stringArray.join("")),t.file(S,i),this._stringArray=[]},_getPaneXML:function(){var e=[{name:"activePane",value:"bottomLeft"},{name:"state",value:"frozen"}],t=this._dataProvider.getFrozenArea();return t.x||t.y?(t.x&&e.push({name:"xSplit",value:t.x}),t.y&&e.push({name:"ySplit",value:t.y}),e.push({name:"topLeftCell",value:this._getCellIndex(t.y+1,t.x)}),this._getXMLTag("pane",e)):""},_getAutoFilterXML:function(e){return this._options.autoFilterEnabled?'<autoFilter ref="A'+this._dataProvider.getHeaderRowCount()+":"+e+'" />':""},_getIgnoredErrorsXML:function(e){return this._options.ignoreErrors?'<ignoredErrors><ignoredError sqref="A1:'+e+'" numberStoredAsText="1" /></ignoredErrors>':""},_generateWorksheetXML:function(){var e,t,n,i,r,a,s=0,l=[],c=this._cellsArray.length,u=this._colsArray.length,d="1:"+u,h=this._dataProvider.getHeaderRowCount?this._dataProvider.getHeaderRowCount():1,p=[['<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">',this._needSheetPr?f:g,'<dimension ref="A1:',this._getCellIndex(this._maxIndex[0],this._maxIndex[1])+'"/><sheetViews><sheetView '+(this._rtlEnabled?'rightToLeft="1" ':"")+'tabSelected="1" workbookViewId="0">'+this._getPaneXML()+'</sheetView></sheetViews><sheetFormatPr defaultRowHeight="15" outlineLevelRow="',this._dataProvider.getRowsCount()>0?this._dataProvider.getGroupLevel(0):0,'" x14ac:dyDescent="0.25"/>'].join("")];
30
- for(e=0;e<u;e++)this._colsArray[e]=this._getXMLTag("col",[{name:"width",value:this._colsArray[e]},{name:"min",value:Number(e)+1},{name:"max",value:Number(e)+1}]);for(p.push(this._getXMLTag("cols",[],this._colsArray.join(""))+"<sheetData>"),t=0;t<c;t++){for(i=[],a=this._cellsArray[t].length,e=0;e<a;e++)t=Number(t),n=this._cellsArray[t][e],i.push(this._getXMLTag("c",[{name:"r",value:this._getCellIndex(t+1,e)},{name:"s",value:n.style},{name:"t",value:n.type}],o.isDefined(n.value)?this._getXMLTag("v",[],n.value):null));l.push(this._getXMLTag("row",[{name:"r",value:Number(t)+1},{name:"spans",value:d},{name:"outlineLevel",value:t>=h?this._dataProvider.getGroupLevel(t):0},{name:"x14ac:dyDescent",value:"0.25"}],i.join(""))),this._cellsArray[t]=null,s++>1e4&&(p.push(l.join("")),l=[],s=0)}p.push(l.join("")),l=[],r=this._getCellIndex(this._maxIndex[0],this._maxIndex[1]),p.push("</sheetData>"+this._getAutoFilterXML(r)+this._generateMergingXML()+this._getIgnoredErrorsXML(r)+"</worksheet>"),this._zip.folder(y).folder(C).file(k,p.join("")),this._colsArray=[],this._cellsArray=[],p=[]},_generateMergingXML:function(){var e,t,n,i,r,a,s=o.isDefined(this._dataProvider.getHeaderRowCount)?this._dataProvider.getHeaderRowCount():this._dataProvider.getRowsCount(),l=this._dataProvider.getColumns().length,c=[],u=[],d="";for(i=0;i<s;i++)for(n=0;n!==l;n++)if(!o.isDefined(c[i])||!o.isDefined(c[i][n])){var h=this._dataProvider.getCellMerging(i,n);if(h.colspan||h.rowspan)for(u.push({start:this._getCellIndex(i+1,n),end:this._getCellIndex(i+1+(h.rowspan||0),n+(h.colspan||0))}),e=i;e<=i+h.rowspan;e++)for(t=n;t<=n+h.colspan;t++)o.isDefined(c[e])||(c[e]=[]),c[e][t]=!0}for(r=u.length,a=0;a<r;a++)d+=this._getXMLTag("mergeCell",[{name:"ref",value:u[a].start+":"+u[a].end}]);return d.length?this._getXMLTag("mergeCells",[{name:"count",value:r}],d):""},_generateCommonXML:function(){var e,t=p+this._createXMLRelationships(this._createXMLRelationship(1,"officeDocument","xl/"+b)),n=this._zip.folder(y),i=p;this._zip.folder("_"+v).file("."+v,t),e=this._createXMLRelationship(1,"worksheet","worksheets/"+k)+this._createXMLRelationship(2,"styles",w)+this._createXMLRelationship(3,"sharedStrings",S),i+=this._createXMLRelationships(e),n.folder("_"+v).file(b+".rels",i),n.file(b,this._getWorkbookContent()),this._zip.file(x,this._getContentTypesContent())},_generateContent:function(){this._prepareStyleData(),this._prepareCellData(),this._generateWorkXML(),this._generateCommonXML()},_generateWorkXML:function(){this._generateStylesXML(),this._generateStringsXML(),this._generateWorksheetXML()},ctor:function(e,t){this._rtlEnabled=t&&!!t.rtlEnabled,this._options=t,this._maxIndex=[1,2],this._stringArray=[],this._stringHash={},this._styleArray=[],this._colsArray=[],this._cellsArray=[],this._styleFormat=[],this._needSheetPr=!1,this._dataProvider=e,o.isDefined(u)?this._zip=new u:this._zip=null},_checkZipState:function(){if(!this._zip)throw l.Error("E1041")},ready:function(){return this._dataProvider.ready()},getData:function(e){var t={type:e?"blob":"base64",compression:"DEFLATE",mimeType:d.MIME_TYPES.EXCEL};return this._checkZipState(),this._generateContent(),this._zip.generateAsync?this._zip.generateAsync(t):this._zip.generate(t)}}),t.getData=function(e,n,i){var a=new t.ExcelCreator(e,n);a._checkZipState(),a.ready().done(function(){a._zip.generateAsync?a.getData(o.isFunction(r.Blob)).then(i):i(a.getData(o.isFunction(r.Blob)))})}},function(e,t){e.exports=window.JSZip},function(e,t,n){var i=n(4).escapeRegExp,r={3:"abbreviated",4:"wide",5:"narrow"},o=function(e,t){return e>2?Object.keys(r).map(function(e){return["format","standalone"].map(function(n){return t.getMonthNames(r[e],n).join("|")}).join("|")}).join("|"):"0?[1-9]|1[012]"},a={y:function(e){return"[0-9]+"},M:o,L:o,Q:function(e,t){return e>2?t.getQuarterNames(r[e],"format").join("|"):"0?[1-4]"},E:function(e,t){return"\\D*"},a:function(e,t){return t.getPeriodNames(r[e<3?3:e],"format").join("|")},d:function(e){return"0?[1-9]|[12][0-9]|3[01]"},H:function(e){return"0?[0-9]|1[0-9]|2[0-3]"},h:function(e){return"0?[1-9]|1[012]"},m:function(e){return"0?[0-9]|[1-5][0-9]"},s:function(e){return"0?[0-9]|[1-5][0-9]"},S:function(e){return"[0-9]{1,"+e+"}"}},s=Number,l=function(e,t){return e.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())},c=function(e,t,n){return t>2?["format","standalone"].map(function(t){return Object.keys(r).map(function(i){var o=n.getMonthNames(r[i],t);return l(o,e)})}).reduce(function(e,t){return e.concat(t)}).filter(function(e){return e>=0})[0]:s(e)-1},u={y:function(e,t){var n=s(e);return 2===t?n<30?2e3+n:1900+n:n},M:c,L:c,Q:function(e,t,n){return t>2?n.getQuarterNames(r[t],"format").indexOf(e):s(e)-1},E:function(e,t,n){var i=n.getDayNames(r[t<3?3:t],"format");return l(i,e)},a:function(e,t,n){var i=n.getPeriodNames(r[t<3?3:t],"format");return l(i,e)},d:s,H:s,h:s,m:s,s:s,S:function(e,t){for(t=Math.max(t,3),e=e.slice(0,3);t<3;)e+="0",t++;return s(e)}},d=["y","M","d","h","m","s","S"],h={y:"setFullYear",M:"setMonth",L:"setMonth",a:function(e,t){var n=e.getHours();t||12!==n?t&&12!==n&&e.setHours(n+12):e.setHours(0)},d:"setDate",H:"setHours",h:"setHours",m:"setMinutes",s:"setSeconds",S:"setMilliseconds"},p=function(e,t){var n=e[t],i=0;do t++,i++;while(e[t]===n);return i},f=function(e,t){for(var n="",i=0;i<t;i++)n+=e;return n},g=function(e,t){var n,r="",o=[];e=i(e);for(var s=0;s<e.length;s++){var l=e[s],c="'"===l,u=a[l];if(!c||(n=!n,"'"===e[s-1]))if(u&&!n){var d=p(e,s),h=f(l,d);o.push(h),r+="("+u(d,t)+")",s+=d-1}else r+=l}return{patterns:o,regexp:new RegExp("^"+r+"$","i")}},_=function(e,t,n,i){var r=t[0],o=h[r],a=u[r];if(o&&a){var s=a(n,t.length,i);e[o]?e[o](s):o(e,s)}},m=function(e,t,n){var i=h[t],r="g"+i.substr(1);e[i](n[r]())},v=function(e){return e.map(function(e){return"H"===e[0]?"h":e[0]})},y=function(e){var t=e.map(function(e){return d.indexOf(e)});return Math.max.apply(Math,t)},b=function(e){var t=e.filter(function(e){return d.indexOf(e)<0});return d.concat(t)},x=function(e,t){var n=g(e,t);return function(e){var i=n.regexp.exec(e);if(i){var r=new Date,o=new Date(r.getFullYear(),0,1),a=v(n.patterns),s=y(a),l=b(a);return l.forEach(function(e,l){if(!(l<d.length&&l>s)){var c=a.indexOf(e);c>=0?_(o,n.patterns[c],i[c+1],t):m(o,e,r)}}),o}return null}};t.getParser=x},function(e,t,n){var i=n(2),r=n(72),o=n(6).getWindow(),a=n(1).isFunction,s=n(3).each,l=n(262).getSvgMarkup,c=n(7),u=c.when,d=c.Deferred;t.svgCreator={_markup:"",_imageArray:{},_imageDeferreds:[],_getBinaryFile:function(e,t){r.sendRequest({url:e,method:"GET",responseType:"arraybuffer"}).done(t).fail(function(){t(!1)})},_loadImages:function(){var e=this;s(e._imageArray,function(t){var n=new d;e._imageDeferreds.push(n),e._getBinaryFile(t,function(i){if(!i)return delete e._imageArray[t],void n.resolve();var r,a="",s=new Uint8Array(i),l=s.byteLength;for(r=0;r<l;r++)a+=String.fromCharCode(s[r]);e._imageArray[t]="data:image/png;base64,"+o.btoa(a),n.resolve()})})},_parseImages:function(e){var t,n=this;"image"===e.tagName&&(t=i(e).attr("xlink:href"),n._imageArray[t]||(n._imageArray[t]="")),s(e.childNodes,function(e,t){n._parseImages(t)})},_prepareImages:function(e){return this._parseImages(e),this._loadImages(),u.apply(i,this._imageDeferreds)},getData:function(e,t){var n,r=this,c='<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>',u=new d,h=new o.DOMParser,p=h.parseFromString(e,"image/svg+xml"),f=p.childNodes[0],g=i(f);return g.css("backgroundColor",t.backgroundColor),n=c+l(g.get(0)),r._prepareImages(f).done(function(){s(r._imageArray,function(e,t){n=n.split(e).join(t)}),u.resolve(a(o.Blob)?r._getBlob(n):r._getBase64(n))}),u},_getBlob:function(e){return new o.Blob([e],{type:"image/svg+xml"})},_getBase64:function(e){return o.btoa(e)}},t.getData=function(e,n,i){t.svgCreator.getData(e,n).done(i)}},function(e,t,n){var i=n(6),r=i.getWindow(),o=n(55),a={getXhr:function(){return new r.XMLHttpRequest}};e.exports=o(a)},function(e,t,n){var i=n(120),r=n(6).getWindow(),o=n(221).imageCreator,a=n(1).isFunction,s=n(0).extend,l=n(7),c=l.when,u=l.Deferred,d="%PDF-1.3\r\n2 0 obj\r\n<</ProcSet[/PDF/ImageB/ImageC/ImageI]/XObject<</I0 5 0 R>>>>\r\nendobj\r\n4 0 obj\r\n<</Type/Pages/Kids[1 0 R]/Count 1>>\r\nendobj\r\n7 0 obj\r\n<</OpenAction[1 0 R /FitH null]/Type/Catalog/Pages 4 0 R/PageLayout/OneColumn>>\r\nendobj\r\n1 0 obj\r\n<</Type/Page/Resources 2 0 R/MediaBox[0 0 _width_ _height_]/Contents 3 0 R/Parent 4 0 R>>\r\nendobj\r\n",h="3 0 obj\r\n<</Length 52>>stream\r\n0.20 w\n0 G\nq _width_ 0 0 _height_ 0.00 0.00 cm /I0 Do Q\r\nendstream\r\nendobj\r\n",p="6 0 obj\r\n<</CreationDate _date_/Producer(DevExtreme _version_)>>\r\nendobj\r\n",f="5 0 obj\r\n<</Type/XObject/Subtype/Image/Width _width_/Height _height_/ColorSpace/DeviceRGB/BitsPerComponent 8/Filter/DCTDecode/Length _length_>>stream\r\n",g="\r\nendstream\r\nendobj\r\n",_="trailer\r\n<<\r\n/Size 8\r\n/Root 7 0 R\r\n/Info 6 0 R\r\n>>\r\nstartxref\r\n_length_\r\n%%EOF",m="xref\r\n0 8\r\n0000000000 65535 f\r\n0000000241 00000 n\r\n0000000010 00000 n\r\n_main_ 00000 n\r\n0000000089 00000 n\r\n_image_ 00000 n\r\n_info_ 00000 n\r\n0000000143 00000 n\r\n",v=function e(t,n){return t.length<n?e("0"+t,n):t},y=function(e,t,n){var r=2*(t.margin||0),o=t.width+r,a=t.height+r,s=(.75*o).toFixed(2),l=(.75*a).toFixed(2),c=d.replace("_width_",s).replace("_height_",l),u=h.replace("_width_",s).replace("_height_",l),m=p.replace("_date_",n).replace("_version_",i),v=f.replace("_width_",o).replace("_height_",a).replace("_length_",e.length)+e+g,y=b(c.length,u.length,m.length),x=c+u+m+v,S=_.replace("_length_",x.length);return x+y+S},b=function(e,t,n){return m.replace("_main_",v(e+"",10)).replace("_info_",v(e+t+"",10)).replace("_image_",v(e+t+n+"",10))},x=function(){return new Date},S=function(e){for(var t=0,n=new Uint8Array(e.length);t<e.length;t++)n[t]=e.charCodeAt(t);return new r.Blob([n.buffer],{type:"application/pdf"})},w=function(e){return r.btoa(e)};t.getData=function(e,t,n){var i=o.getImageData(e,s({},t,{format:"JPEG"})),l=new u;l.done(n),c(i).done(function(e){var n=y(e,t,x()),i=a(r.Blob)?S(n):w(n);l.resolve(i)})}},function(e,t,n){var i=n(19),r=n(1).isFunction,o=n(3).each,a=n(10);e.exports=a.inherit({ctor:function(e){this._events={},this._owner=e},hasEvent:function(e){var t=this._events[e];return!!t&&t.has()},fireEvent:function(e,t){var n=this._events[e];n&&n.fireWith(this._owner,t)},on:function(e,t){var n,r=this._events[e];r||(r=i(),this._events[e]=r),n=r.originalAdd||r.add,n.call(r,t)},off:function(e,t){var n=this._events[e];n&&(r(t)?n.remove(t):n.empty())},dispose:function(){o(this._events,function(){this.empty()})}})},function(e,t,n){var i=n(5);t.on=i.on,t.one=i.one,t.off=i.off,t.trigger=i.trigger,t.triggerHandler=i.triggerHandler,t.Event=i.Event},function(e,t,n){var i,r=n(140),o=n(226),a=n(0).extend,s={dxpointerdown:"pointerdown",dxpointermove:"pointermove",dxpointerup:"pointerup",dxpointercancel:"pointercancel",dxpointerover:"pointerover",dxpointerout:"pointerout",dxpointerenter:"pointerenter",dxpointerleave:"pointerleave"},l=!1,c=function(){l||(i=new o(s,function(e,t){return e.pointerId===t.pointerId},function(e){e.isPrimary&&i.reset()}),l=!0)},u=r.inherit({ctor:function(){this.callBase.apply(this,arguments),c()},_fireEvent:function(e){return this.callBase(a({pointers:i.pointers(),pointerId:e.originalEvent.pointerId},e))}});u.map=s,u.resetObserver=function(){i.reset()},e.exports=u},function(e,t,n){var i=n(0).extend,r=n(140),o=n(227),a=n(225),s=n(9),l={dxpointerdown:"touchstart mousedown",dxpointermove:"touchmove mousemove",dxpointerup:"touchend mouseup",dxpointercancel:"touchcancel",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},c=!1,u=function(){c||(o.activate(),c=!0)},d=r.inherit({EVENT_LOCK_TIMEOUT:100,ctor:function(){this.callBase.apply(this,arguments),u()},_handler:function(e){var t=s.isMouseEvent(e);if(t||(this._skipNextEvents=!0),!t||!this._mouseLocked){if(t&&this._skipNextEvents){this._skipNextEvents=!1,this._mouseLocked=!0,clearTimeout(this._unlockMouseTimer);var n=this;return void(this._unlockMouseTimer=setTimeout(function(){n._mouseLocked=!1},this.EVENT_LOCK_TIMEOUT))}return this.callBase(e)}},_fireEvent:function(e){var t=s.isMouseEvent(e.originalEvent),n=t?o.normalize:a.normalize;return this.callBase(i(n(e.originalEvent),e))},dispose:function(){this.callBase(),this._skipNextEvents=!1,this._mouseLocked=!1,clearTimeout(this._unlockMouseTimer)}});d.map=l,d.resetObserver=o.resetObserver,e.exports=d},function(e,t,n){var i=n(81),r=n(15),o=n(49),a=n(33);n(137),t.locale=i.locale.bind(i),t.loadMessages=r.load.bind(r),t.formatMessage=r.format.bind(r),t.formatNumber=o.format.bind(o),t.parseNumber=o.parse.bind(o),t.formatDate=a.format.bind(a),t.parseDate=a.parse.bind(a),t.message=r,t.number=o,t.date=a},function(e,t,n){e.exports={en:{Yes:"Yes",No:"No",Cancel:"Cancel",Clear:"Clear",Done:"Done",Loading:"Loading...",Select:"Select...",Search:"Search",Back:"Back",OK:"OK","dxCollectionWidget-noDataText":"No data to display","validation-required":"Required","validation-required-formatted":"{0} is required","validation-numeric":"Value must be a number","validation-numeric-formatted":"{0} must be a number","validation-range":"Value is out of range","validation-range-formatted":"{0} is out of range","validation-stringLength":"The length of the value is not correct","validation-stringLength-formatted":"The length of {0} is not correct","validation-custom":"Value is invalid","validation-custom-formatted":"{0} is invalid","validation-compare":"Values do not match","validation-compare-formatted":"{0} does not match","validation-pattern":"Value does not match pattern","validation-pattern-formatted":"{0} does not match pattern","validation-email":"Email is invalid","validation-email-formatted":"{0} is invalid","validation-mask":"Value is invalid","dxLookup-searchPlaceholder":"Minimum character number: {0}","dxList-pullingDownText":"Pull down to refresh...","dxList-pulledDownText":"Release to refresh...","dxList-refreshingText":"Refreshing...","dxList-pageLoadingText":"Loading...","dxList-nextButtonText":"More","dxList-selectAll":"Select All","dxListEditDecorator-delete":"Delete","dxListEditDecorator-more":"More","dxScrollView-pullingDownText":"Pull down to refresh...","dxScrollView-pulledDownText":"Release to refresh...","dxScrollView-refreshingText":"Refreshing...","dxScrollView-reachBottomText":"Loading...","dxDateBox-simulatedDataPickerTitleTime":"Select time","dxDateBox-simulatedDataPickerTitleDate":"Select date","dxDateBox-simulatedDataPickerTitleDateTime":"Select date and time","dxDateBox-validation-datetime":"Value must be a date or time","dxFileUploader-selectFile":"Select file","dxFileUploader-dropFile":"or Drop file here","dxFileUploader-bytes":"bytes","dxFileUploader-kb":"kb","dxFileUploader-Mb":"Mb","dxFileUploader-Gb":"Gb","dxFileUploader-upload":"Upload","dxFileUploader-uploaded":"Uploaded","dxFileUploader-readyToUpload":"Ready to upload","dxFileUploader-uploadFailedMessage":"Upload failed","dxRangeSlider-ariaFrom":"From","dxRangeSlider-ariaTill":"Till","dxSwitch-onText":"ON","dxSwitch-offText":"OFF","dxForm-optionalMark":"optional","dxForm-requiredMessage":"{0} is required","dxNumberBox-invalidValueMessage":"Value must be a number","dxDataGrid-columnChooserTitle":"Column Chooser","dxDataGrid-columnChooserEmptyText":"Drag a column here to hide it","dxDataGrid-groupContinuesMessage":"Continues on the next page","dxDataGrid-groupContinuedMessage":"Continued from the previous page","dxDataGrid-groupHeaderText":"Group by This Column","dxDataGrid-ungroupHeaderText":"Ungroup","dxDataGrid-ungroupAllText":"Ungroup All","dxDataGrid-editingEditRow":"Edit","dxDataGrid-editingSaveRowChanges":"Save","dxDataGrid-editingCancelRowChanges":"Cancel","dxDataGrid-editingDeleteRow":"Delete","dxDataGrid-editingUndeleteRow":"Undelete","dxDataGrid-editingConfirmDeleteMessage":"Are you sure you want to delete this record?","dxDataGrid-validationCancelChanges":"Cancel changes","dxDataGrid-groupPanelEmptyText":"Drag a column header here to group by that column","dxDataGrid-noDataText":"No data","dxDataGrid-searchPanelPlaceholder":"Search...","dxDataGrid-filterRowShowAllText":"(All)","dxDataGrid-filterRowResetOperationText":"Reset","dxDataGrid-filterRowOperationEquals":"Equals","dxDataGrid-filterRowOperationNotEquals":"Does not equal","dxDataGrid-filterRowOperationLess":"Less than","dxDataGrid-filterRowOperationLessOrEquals":"Less than or equal to","dxDataGrid-filterRowOperationGreater":"Greater than","dxDataGrid-filterRowOperationGreaterOrEquals":"Greater than or equal to","dxDataGrid-filterRowOperationStartsWith":"Starts with","dxDataGrid-filterRowOperationContains":"Contains","dxDataGrid-filterRowOperationNotContains":"Does not contain","dxDataGrid-filterRowOperationEndsWith":"Ends with","dxDataGrid-filterRowOperationBetween":"Between","dxDataGrid-filterRowOperationBetweenStartText":"Start","dxDataGrid-filterRowOperationBetweenEndText":"End","dxDataGrid-applyFilterText":"Apply filter","dxDataGrid-trueText":"true","dxDataGrid-falseText":"false","dxDataGrid-sortingAscendingText":"Sort Ascending","dxDataGrid-sortingDescendingText":"Sort Descending","dxDataGrid-sortingClearText":"Clear Sorting","dxDataGrid-editingSaveAllChanges":"Save changes","dxDataGrid-editingCancelAllChanges":"Discard changes","dxDataGrid-editingAddRow":"Add a row","dxDataGrid-summaryMin":"Min: {0}","dxDataGrid-summaryMinOtherColumn":"Min of {1} is {0}","dxDataGrid-summaryMax":"Max: {0}","dxDataGrid-summaryMaxOtherColumn":"Max of {1} is {0}","dxDataGrid-summaryAvg":"Avg: {0}","dxDataGrid-summaryAvgOtherColumn":"Avg of {1} is {0}","dxDataGrid-summarySum":"Sum: {0}","dxDataGrid-summarySumOtherColumn":"Sum of {1} is {0}","dxDataGrid-summaryCount":"Count: {0}","dxDataGrid-columnFixingFix":"Fix","dxDataGrid-columnFixingUnfix":"Unfix","dxDataGrid-columnFixingLeftPosition":"To the left","dxDataGrid-columnFixingRightPosition":"To the right","dxDataGrid-exportTo":"Export","dxDataGrid-exportToExcel":"Export to Excel file","dxDataGrid-excelFormat":"Excel file","dxDataGrid-selectedRows":"Selected rows","dxDataGrid-exportSelectedRows":"Export selected rows","dxDataGrid-exportAll":"Export all data","dxDataGrid-headerFilterEmptyValue":"(Blanks)","dxDataGrid-headerFilterOK":"OK","dxDataGrid-headerFilterCancel":"Cancel","dxDataGrid-ariaColumn":"Column","dxDataGrid-ariaValue":"Value","dxDataGrid-ariaFilterCell":"Filter cell","dxDataGrid-ariaCollapse":"Collapse","dxDataGrid-ariaExpand":"Expand","dxDataGrid-ariaDataGrid":"Data grid","dxDataGrid-ariaSearchInGrid":"Search in data grid","dxDataGrid-ariaSelectAll":"Select all","dxDataGrid-ariaSelectRow":"Select row","dxDataGrid-filterBuilderPopupTitle":"Filter Builder","dxDataGrid-filterPanelCreateFilter":"Create Filter","dxDataGrid-filterPanelClearFilter":"Clear","dxDataGrid-filterPanelFilterEnabledHint":"Enable the filter","dxTreeList-ariaTreeList":"Tree list","dxTreeList-editingAddRowToNode":"Add","dxPager-infoText":"Page {0} of {1} ({2} items)","dxPager-pagesCountText":"of","dxPivotGrid-grandTotal":"Grand Total","dxPivotGrid-total":"{0} Total","dxPivotGrid-fieldChooserTitle":"Field Chooser","dxPivotGrid-showFieldChooser":"Show Field Chooser","dxPivotGrid-expandAll":"Expand All","dxPivotGrid-collapseAll":"Collapse All","dxPivotGrid-sortColumnBySummary":'Sort "{0}" by This Column',"dxPivotGrid-sortRowBySummary":'Sort "{0}" by This Row',"dxPivotGrid-removeAllSorting":"Remove All Sorting","dxPivotGrid-dataNotAvailable":"N/A","dxPivotGrid-rowFields":"Row Fields","dxPivotGrid-columnFields":"Column Fields","dxPivotGrid-dataFields":"Data Fields","dxPivotGrid-filterFields":"Filter Fields","dxPivotGrid-allFields":"All Fields","dxPivotGrid-columnFieldArea":"Drop Column Fields Here","dxPivotGrid-dataFieldArea":"Drop Data Fields Here","dxPivotGrid-rowFieldArea":"Drop Row Fields Here","dxPivotGrid-filterFieldArea":"Drop Filter Fields Here","dxScheduler-editorLabelTitle":"Subject","dxScheduler-editorLabelStartDate":"Start Date","dxScheduler-editorLabelEndDate":"End Date","dxScheduler-editorLabelDescription":"Description","dxScheduler-editorLabelRecurrence":"Repeat","dxScheduler-openAppointment":"Open appointment","dxScheduler-recurrenceNever":"Never","dxScheduler-recurrenceDaily":"Daily","dxScheduler-recurrenceWeekly":"Weekly","dxScheduler-recurrenceMonthly":"Monthly","dxScheduler-recurrenceYearly":"Yearly","dxScheduler-recurrenceEvery":"Every","dxScheduler-recurrenceEnd":"End repeat","dxScheduler-recurrenceAfter":"After","dxScheduler-recurrenceOn":"On","dxScheduler-recurrenceRepeatDaily":"day(s)","dxScheduler-recurrenceRepeatWeekly":"week(s)","dxScheduler-recurrenceRepeatMonthly":"month(s)","dxScheduler-recurrenceRepeatYearly":"year(s)","dxScheduler-switcherDay":"Day","dxScheduler-switcherWeek":"Week","dxScheduler-switcherWorkWeek":"Work Week","dxScheduler-switcherMonth":"Month","dxScheduler-switcherAgenda":"Agenda","dxScheduler-switcherTimelineDay":"Timeline Day","dxScheduler-switcherTimelineWeek":"Timeline Week","dxScheduler-switcherTimelineWorkWeek":"Timeline Work Week","dxScheduler-switcherTimelineMonth":"Timeline Month","dxScheduler-recurrenceRepeatOnDate":"on date","dxScheduler-recurrenceRepeatCount":"occurrence(s)","dxScheduler-allDay":"All day","dxScheduler-confirmRecurrenceEditMessage":"Do you want to edit only this appointment or the whole series?","dxScheduler-confirmRecurrenceDeleteMessage":"Do you want to delete only this appointment or the whole series?","dxScheduler-confirmRecurrenceEditSeries":"Edit series","dxScheduler-confirmRecurrenceDeleteSeries":"Delete series","dxScheduler-confirmRecurrenceEditOccurrence":"Edit appointment","dxScheduler-confirmRecurrenceDeleteOccurrence":"Delete appointment","dxScheduler-noTimezoneTitle":"No timezone","dxScheduler-moreAppointments":"{0} more","dxCalendar-todayButtonText":"Today","dxCalendar-ariaWidgetName":"Calendar","dxColorView-ariaRed":"Red","dxColorView-ariaGreen":"Green","dxColorView-ariaBlue":"Blue","dxColorView-ariaAlpha":"Transparency","dxColorView-ariaHex":"Color code","dxTagBox-selected":"{0} selected","dxTagBox-allSelected":"All selected ({0})","dxTagBox-moreSelected":"{0} more","vizExport-printingButtonText":"Print","vizExport-titleMenuText":"Exporting/Printing","vizExport-exportButtonText":"{0} file","dxFilterBuilder-and":"And","dxFilterBuilder-or":"Or","dxFilterBuilder-notAnd":"Not And","dxFilterBuilder-notOr":"Not Or","dxFilterBuilder-addCondition":"Add Condition","dxFilterBuilder-addGroup":"Add Group","dxFilterBuilder-enterValueText":"<enter a value>","dxFilterBuilder-filterOperationEquals":"Equals","dxFilterBuilder-filterOperationNotEquals":"Does not equal","dxFilterBuilder-filterOperationLess":"Is less than","dxFilterBuilder-filterOperationLessOrEquals":"Is less than or equal to","dxFilterBuilder-filterOperationGreater":"Is greater than","dxFilterBuilder-filterOperationGreaterOrEquals":"Is greater than or equal to","dxFilterBuilder-filterOperationStartsWith":"Starts with","dxFilterBuilder-filterOperationContains":"Contains","dxFilterBuilder-filterOperationNotContains":"Does not contain","dxFilterBuilder-filterOperationEndsWith":"Ends with","dxFilterBuilder-filterOperationIsBlank":"Is blank","dxFilterBuilder-filterOperationIsNotBlank":"Is not blank","dxFilterBuilder-filterOperationBetween":"Is between","dxFilterBuilder-filterOperationAnyOf":"Is any of","dxFilterBuilder-filterOperationNoneOf":"Is none of"}}},function(e,t,n){e.exports={"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CA":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PH":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150","es-AR":"es-419","es-BO":"es-419","es-BR":"es-419","es-BZ":"es-419","es-CL":"es-419","es-CO":"es-419","es-CR":"es-419","es-CU":"es-419","es-DO":"es-419","es-EC":"es-419","es-GT":"es-419","es-HN":"es-419","es-MX":"es-419","es-NI":"es-419","es-PA":"es-419","es-PE":"es-419","es-PR":"es-419","es-PY":"es-419","es-SV":"es-419","es-US":"es-419","es-UY":"es-419","es-VE":"es-419","pt-AO":"pt-PT","pt-CH":"pt-PT","pt-CV":"pt-PT","pt-FR":"pt-PT","pt-GQ":"pt-PT","pt-GW":"pt-PT","pt-LU":"pt-PT","pt-MO":"pt-PT","pt-MZ":"pt-PT","pt-ST":"pt-PT","pt-TL":"pt-PT","az-Arab":"root","az-Cyrl":"root","blt-Latn":"root","bm-Nkoo":"root","bs-Cyrl":"root","byn-Latn":"root","cu-Glag":"root","dje-Arab":"root","dyo-Arab":"root","en-Dsrt":"root","en-Shaw":"root","ff-Adlm":"root","ff-Arab":"root","ha-Arab":"root","iu-Latn":"root","kk-Arab":"root","ku-Arab":"root","ky-Arab":"root","ky-Latn":"root","ml-Arab":"root","mn-Mong":"root","ms-Arab":"root","pa-Arab":"root","sd-Deva":"root","sd-Khoj":"root","sd-Sind":"root","shi-Latn":"root","so-Arab":"root","sr-Latn":"root","sw-Arab":"root","tg-Arab":"root","ug-Cyrl":"root","uz-Arab":"root","uz-Cyrl":"root","vai-Latn":"root","wo-Arab":"root","yo-Arab":"root","yue-Hans":"root","zh-Hant":"root","zh-Hant-MO":"zh-Hant-HK"}},function(e,t,n){n(119),n(109),e.exports=DevExpress.framework={},DevExpress.framework.dxCommand=n(174),DevExpress.framework.Router=n(141),DevExpress.framework.StateManager=n(175),DevExpress.framework.ViewCache=n(82),DevExpress.framework.NullViewCache=n(82).NullViewCache,DevExpress.framework.ConditionalViewCacheDecorator=n(82).ConditionalViewCacheDecorator,DevExpress.framework.CapacityViewCacheDecorator=n(82).CapacityViewCacheDecorator,DevExpress.framework.HistoryDependentViewCacheDecorator=n(82).HistoryDependentViewCacheDecorator,DevExpress.framework.dxCommandContainer=n(176),DevExpress.framework.dxView=n(63).dxView,DevExpress.framework.dxLayout=n(63).dxLayout,DevExpress.framework.dxViewPlaceholder=n(63).dxViewPlaceholder,DevExpress.framework.dxContentPlaceholder=n(63).dxContentPlaceholder,DevExpress.framework.dxTransition=n(63).dxTransition,DevExpress.framework.dxContent=n(63).dxContent,DevExpress.framework.html={},DevExpress.framework.html.HtmlApplication=n(231),DevExpress.framework.Route=n(141).Route,DevExpress.framework.MemoryKeyValueStorage=n(175).MemoryKeyValueStorage,DevExpress.framework.NavigationDevices=n(142),DevExpress.framework.NavigationManager=n(111),DevExpress.framework.createActionExecutors=n(233).createActionExecutors,DevExpress.framework.Application=n(232).Application;var i=n(234);DevExpress.framework.DefaultBrowserAdapter=i.DefaultBrowserAdapter,DevExpress.framework.OldBrowserAdapter=i.OldBrowserAdapter,DevExpress.framework.BuggyAndroidBrowserAdapter=i.BuggyAndroidBrowserAdapter,DevExpress.framework.HistorylessBrowserAdapter=i.HistorylessBrowserAdapter,DevExpress.framework.BuggyCordovaWP81BrowserAdapter=i.BuggyCordovaWP81BrowserAdapter,DevExpress.framework.CommandMapping=n(178),DevExpress.framework.HistoryBasedNavigationDevice=n(142).HistoryBasedNavigationDevice,DevExpress.framework.StackBasedNavigationDevice=n(142).StackBasedNavigationDevice,DevExpress.framework.HistoryBasedNavigationManager=n(111).HistoryBasedNavigationManager,DevExpress.framework.StackBasedNavigationManager=n(111).StackBasedNavigationManager,DevExpress.framework.NavigationStack=n(111).NavigationStack,DevExpress.framework.utils=n(110).utils,DevExpress.framework.templateProvider=n(110).templateProvider,DevExpress.framework.html.CommandManager=n(235),DevExpress.framework.html.HtmlApplication=n(231),DevExpress.framework.html.layoutSets=n(143).layoutSets,DevExpress.framework.html.animationSets=n(143).animationSets,DevExpress.framework.html.DefaultLayoutController=n(179).DefaultLayoutController,DevExpress.framework.html.layoutSets=n(179).layoutSets,DevExpress.framework.html.MarkupComponent=n(177).MarkupComponent,DevExpress.framework.html.ViewEngine=n(237).ViewEngine,DevExpress.framework.html.ViewEngineComponents=n(63);var r=n(236);DevExpress.framework.html.commandToDXWidgetAdapters={dxToolbar:r.dxToolbar,dxList:r.dxList,dxNavBar:r.dxNavBar,dxPivot:r.dxPivot,dxSlideOut:r.dxSlideOut}},function(e,t,n){var i=n(2),r=n(56),o=n(19),a=n(17),s=n(37),l=n(1).isPlainObject,c=n(138),u=n(28),d=n(228),h=n(48),p=n(229),f=n(30),g="dxKoLocks",_="dxKoCreation",m=[],v=function(e,t){t.subclassOf(h)&&m.push(e),r.bindingHandlers[e]={init:function(e,n){var c,h,m=i(e),v=o(),y={},b=f().knockout,x=b&&b.isBindingPropertyPredicateName,S={onInitializing:function(){y=this._getOptionsByReference(),r.computed(function(){var e=r.unwrap(n());c&&c.beginUpdate(),h=x&&e&&e[x],A(e),c&&c.endUpdate()},null,{disposeWhenNodeIsRemoved:e}),c=this},modelByElement:function(e){if(e.length)return r.dataFor(e.get(0))},nestedComponentOptions:function(e){return{modelByElement:e.option("modelByElement"),nestedComponentOptions:e.option("nestedComponentOptions")}},_optionChangedCallbacks:v,integrationOptions:{watchMethod:function(e,t,n){n=n||{};var i=n.skipImmediate,o=r.computed(function(){var n=r.unwrap(e());i||t(n),i=!1});return function(){o.dispose()}},templates:{"dx-polymorph-widget":{render:function(e){var t=r.utils.unwrapObservable(e.model.widget);if(t){if("button"===t||"tabs"===t||"dropDownMenu"===t){var n=t;t=s.camelize("dx-"+t),a.log("W0001","dxToolbar - 'widget' item field",n,"16.1","Use: '"+t+"' instead")}var o=i("<div>").attr("data-bind",t+": options").get(0);i(e.container).append(o),r.applyBindings(e.model,o)}}}},createTemplate:function(e){return new d(e)}}},w={},C=function(e,t,n){var i=m.data(g),o=n?r.unwrap(t):t;if(r.isWriteableObservable(t)&&(w[e]=t),c){if(i.locked(e))return;i.obtain(e);try{r.ignoreDependencies?r.ignoreDependencies(c.option,c,[e,o]):c.option(e,o)}finally{i.release(e)}}else S[e]=o},k=function(e){var t=e.fullName,n=e.value;if(t in w){var i=this._$element,r=i.data(g);if(!r.locked(t)){r.obtain(t);try{w[t](n)}finally{r.release(t)}}}},T=function(){v.add(k),m.data(_,!0).data(g,new p),new t(m,S),S=null},E=function(t,n,i){if(i!==x)if(!h||h(i,n,t)){var o;r.computed(function(){var e=t[n];C(i,e,!0),o=r.unwrap(e)},null,{disposeWhenNodeIsRemoved:e}),l(o)&&(y[i]||A(o,i))}else C(i,t[n],!1)},A=function(e,t){for(var n in e)e.hasOwnProperty(n)&&E(e,n,t?[t,n].join("."):n)};return T(),{controlsDescendantBindings:t.subclassOf(u)}}},"dxValidator"===e&&(r.bindingHandlers.dxValidator.after=m)};c.add(function(e,t){v(e,t)})},function(e,t,n){var i=n(56),r=function e(t){var n=i.contextFor(t);return!n&&t.parentNode?e(t.parentNode):t};e.exports.getClosestNodeWithContext=r},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(2),o=n(12),a=n(6),s=n(51).add,l=a.getWindow(),c=a.getNavigator(),u=n(5),d=n(32),h=n(24),p=n(59).compare,f=n(73),g=n(0).extend,_=n(11).inArray,m=n(13).getPublicElement,v=f.changeCallback,y=n(136).hideCallback,b=n(77),x=n(31).fitIntoRange,S=n(13),w=n(4).noop,C=n(1),k=n(3).each,T=n(14),E=n(29),A=n(8),O=n(28),I=n(155),D=n(57),M=n(78),P=n(9),L=n(25),B=n(204),R=n(122),V=n(7).Deferred,F="dx-overlay",z="dx-overlay-wrapper",N="dx-overlay-content",H="dx-overlay-shader",G="dx-overlay-modal",W="dx-state-invisible",j="content",U="dx-rtl",Y=["onShowing","onShown","onHiding","onHidden","onPositioning","onPositioned","onResizeStart","onResize","onResizeEnd"],$=1500,K=[],X="dx-state-disabled",q=9,Z={
30
+ for(e=0;e<u;e++)this._colsArray[e]=this._getXMLTag("col",[{name:"width",value:this._colsArray[e]},{name:"min",value:Number(e)+1},{name:"max",value:Number(e)+1}]);for(p.push(this._getXMLTag("cols",[],this._colsArray.join(""))+"<sheetData>"),t=0;t<c;t++){for(i=[],a=this._cellsArray[t].length,e=0;e<a;e++)t=Number(t),n=this._cellsArray[t][e],i.push(this._getXMLTag("c",[{name:"r",value:this._getCellIndex(t+1,e)},{name:"s",value:n.style},{name:"t",value:n.type}],o.isDefined(n.value)?this._getXMLTag("v",[],n.value):null));l.push(this._getXMLTag("row",[{name:"r",value:Number(t)+1},{name:"spans",value:d},{name:"outlineLevel",value:t>=h?this._dataProvider.getGroupLevel(t):0},{name:"x14ac:dyDescent",value:"0.25"}],i.join(""))),this._cellsArray[t]=null,s++>1e4&&(p.push(l.join("")),l=[],s=0)}p.push(l.join("")),l=[],r=this._getCellIndex(this._maxIndex[0],this._maxIndex[1]),p.push("</sheetData>"+this._getAutoFilterXML(r)+this._generateMergingXML()+this._getIgnoredErrorsXML(r)+"</worksheet>"),this._zip.folder(y).folder(C).file(k,p.join("")),this._colsArray=[],this._cellsArray=[],p=[]},_generateMergingXML:function(){var e,t,n,i,r,a,s=o.isDefined(this._dataProvider.getHeaderRowCount)?this._dataProvider.getHeaderRowCount():this._dataProvider.getRowsCount(),l=this._dataProvider.getColumns().length,c=[],u=[],d="";for(i=0;i<s;i++)for(n=0;n!==l;n++)if(!o.isDefined(c[i])||!o.isDefined(c[i][n])){var h=this._dataProvider.getCellMerging(i,n);if(h.colspan||h.rowspan)for(u.push({start:this._getCellIndex(i+1,n),end:this._getCellIndex(i+1+(h.rowspan||0),n+(h.colspan||0))}),e=i;e<=i+h.rowspan;e++)for(t=n;t<=n+h.colspan;t++)o.isDefined(c[e])||(c[e]=[]),c[e][t]=!0}for(r=u.length,a=0;a<r;a++)d+=this._getXMLTag("mergeCell",[{name:"ref",value:u[a].start+":"+u[a].end}]);return d.length?this._getXMLTag("mergeCells",[{name:"count",value:r}],d):""},_generateCommonXML:function(){var e,t=p+this._createXMLRelationships(this._createXMLRelationship(1,"officeDocument","xl/"+b)),n=this._zip.folder(y),i=p;this._zip.folder("_"+v).file("."+v,t),e=this._createXMLRelationship(1,"worksheet","worksheets/"+k)+this._createXMLRelationship(2,"styles",w)+this._createXMLRelationship(3,"sharedStrings",S),i+=this._createXMLRelationships(e),n.folder("_"+v).file(b+".rels",i),n.file(b,this._getWorkbookContent()),this._zip.file(x,this._getContentTypesContent())},_generateContent:function(){this._prepareStyleData(),this._prepareCellData(),this._generateWorkXML(),this._generateCommonXML()},_generateWorkXML:function(){this._generateStylesXML(),this._generateStringsXML(),this._generateWorksheetXML()},ctor:function(e,t){this._rtlEnabled=t&&!!t.rtlEnabled,this._options=t,this._maxIndex=[1,2],this._stringArray=[],this._stringHash={},this._styleArray=[],this._colsArray=[],this._cellsArray=[],this._styleFormat=[],this._needSheetPr=!1,this._dataProvider=e,o.isDefined(u)?this._zip=new u:this._zip=null},_checkZipState:function(){if(!this._zip)throw l.Error("E1041")},ready:function(){return this._dataProvider.ready()},getData:function(e){var t={type:e?"blob":"base64",compression:"DEFLATE",mimeType:d.MIME_TYPES.EXCEL};return this._checkZipState(),this._generateContent(),this._zip.generateAsync?this._zip.generateAsync(t):this._zip.generate(t)}}),t.getData=function(e,n,i){var a=new t.ExcelCreator(e,n);a._checkZipState(),a.ready().done(function(){a._zip.generateAsync?a.getData(o.isFunction(r.Blob)).then(i):i(a.getData(o.isFunction(r.Blob)))})}},function(e,t){e.exports=window.JSZip},function(e,t,n){var i=n(4).escapeRegExp,r={3:"abbreviated",4:"wide",5:"narrow"},o=function(e,t){return e>2?Object.keys(r).map(function(e){return["format","standalone"].map(function(n){return t.getMonthNames(r[e],n).join("|")}).join("|")}).join("|"):"0?[1-9]|1[012]"},a={y:function(e){return"[0-9]+"},M:o,L:o,Q:function(e,t){return e>2?t.getQuarterNames(r[e],"format").join("|"):"0?[1-4]"},E:function(e,t){return"\\D*"},a:function(e,t){return t.getPeriodNames(r[e<3?3:e],"format").join("|")},d:function(e){return"0?[1-9]|[12][0-9]|3[01]"},H:function(e){return"0?[0-9]|1[0-9]|2[0-3]"},h:function(e){return"0?[1-9]|1[012]"},m:function(e){return"0?[0-9]|[1-5][0-9]"},s:function(e){return"0?[0-9]|[1-5][0-9]"},S:function(e){return"[0-9]{1,"+e+"}"}},s=Number,l=function(e,t){return e.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())},c=function(e,t,n){return t>2?["format","standalone"].map(function(t){return Object.keys(r).map(function(i){var o=n.getMonthNames(r[i],t);return l(o,e)})}).reduce(function(e,t){return e.concat(t)}).filter(function(e){return e>=0})[0]:s(e)-1},u={y:function(e,t){var n=s(e);return 2===t?n<30?2e3+n:1900+n:n},M:c,L:c,Q:function(e,t,n){return t>2?n.getQuarterNames(r[t],"format").indexOf(e):s(e)-1},E:function(e,t,n){var i=n.getDayNames(r[t<3?3:t],"format");return l(i,e)},a:function(e,t,n){var i=n.getPeriodNames(r[t<3?3:t],"format");return l(i,e)},d:s,H:s,h:s,m:s,s:s,S:function(e,t){for(t=Math.max(t,3),e=e.slice(0,3);t<3;)e+="0",t++;return s(e)}},d=["y","M","d","h","m","s","S"],h={y:"setFullYear",M:"setMonth",L:"setMonth",a:function(e,t){var n=e.getHours();t||12!==n?t&&12!==n&&e.setHours(n+12):e.setHours(0)},d:"setDate",H:"setHours",h:"setHours",m:"setMinutes",s:"setSeconds",S:"setMilliseconds"},p=function(e,t){var n=e[t],i=0;do t++,i++;while(e[t]===n);return i},f=function(e,t){for(var n="",i=0;i<t;i++)n+=e;return n},g=function(e,t){var n,r="",o=[];e=i(e);for(var s=0;s<e.length;s++){var l=e[s],c="'"===l,u=a[l];if(!c||(n=!n,"'"===e[s-1]))if(u&&!n){var d=p(e,s),h=f(l,d);o.push(h),r+="("+u(d,t)+")",s+=d-1}else r+=l}return{patterns:o,regexp:new RegExp("^"+r+"$","i")}},_=function(e,t,n,i){var r=t[0],o=h[r],a=u[r];if(o&&a){var s=a(n,t.length,i);e[o]?e[o](s):o(e,s)}},m=function(e,t,n){var i=h[t],r="g"+i.substr(1);e[i](n[r]())},v=function(e){return e.map(function(e){return"H"===e[0]?"h":e[0]})},y=function(e){var t=e.map(function(e){return d.indexOf(e)});return Math.max.apply(Math,t)},b=function(e){var t=e.filter(function(e){return d.indexOf(e)<0});return d.concat(t)},x=function(e,t){var n=g(e,t);return function(e){var i=n.regexp.exec(e);if(i){var r=new Date,o=new Date(r.getFullYear(),0,1),a=v(n.patterns),s=y(a),l=b(a);return l.forEach(function(e,l){if(!(l<d.length&&l>s)){var c=a.indexOf(e);c>=0?_(o,n.patterns[c],i[c+1],t):m(o,e,r)}}),o}return null}};t.getParser=x},function(e,t,n){var i=n(2),r=n(72),o=n(6).getWindow(),a=n(1).isFunction,s=n(3).each,l=n(262).getSvgMarkup,c=n(7),u=c.when,d=c.Deferred;t.svgCreator={_markup:"",_imageArray:{},_imageDeferreds:[],_getBinaryFile:function(e,t){r.sendRequest({url:e,method:"GET",responseType:"arraybuffer"}).done(t).fail(function(){t(!1)})},_loadImages:function(){var e=this;s(e._imageArray,function(t){var n=new d;e._imageDeferreds.push(n),e._getBinaryFile(t,function(i){if(!i)return delete e._imageArray[t],void n.resolve();var r,a="",s=new Uint8Array(i),l=s.byteLength;for(r=0;r<l;r++)a+=String.fromCharCode(s[r]);e._imageArray[t]="data:image/png;base64,"+o.btoa(a),n.resolve()})})},_parseImages:function(e){var t,n=this;"image"===e.tagName&&(t=i(e).attr("xlink:href"),n._imageArray[t]||(n._imageArray[t]="")),s(e.childNodes,function(e,t){n._parseImages(t)})},_prepareImages:function(e){return this._parseImages(e),this._loadImages(),u.apply(i,this._imageDeferreds)},getData:function(e,t){var n,r=this,c='<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>',u=new d,h=new o.DOMParser,p=h.parseFromString(e,"image/svg+xml"),f=p.childNodes[0],g=i(f);return g.css("backgroundColor",t.backgroundColor),n=c+l(g.get(0)),r._prepareImages(f).done(function(){s(r._imageArray,function(e,t){n=n.split(e).join(t)}),u.resolve(a(o.Blob)?r._getBlob(n):r._getBase64(n))}),u},_getBlob:function(e){return new o.Blob([e],{type:"image/svg+xml"})},_getBase64:function(e){return o.btoa(e)}},t.getData=function(e,n,i){t.svgCreator.getData(e,n).done(i)}},function(e,t,n){var i=n(6),r=i.getWindow(),o=n(55),a={getXhr:function(){return new r.XMLHttpRequest}};e.exports=o(a)},function(e,t,n){var i=n(120),r=n(6).getWindow(),o=n(221).imageCreator,a=n(1).isFunction,s=n(0).extend,l=n(7),c=l.when,u=l.Deferred,d="%PDF-1.3\r\n2 0 obj\r\n<</ProcSet[/PDF/ImageB/ImageC/ImageI]/XObject<</I0 5 0 R>>>>\r\nendobj\r\n4 0 obj\r\n<</Type/Pages/Kids[1 0 R]/Count 1>>\r\nendobj\r\n7 0 obj\r\n<</OpenAction[1 0 R /FitH null]/Type/Catalog/Pages 4 0 R/PageLayout/OneColumn>>\r\nendobj\r\n1 0 obj\r\n<</Type/Page/Resources 2 0 R/MediaBox[0 0 _width_ _height_]/Contents 3 0 R/Parent 4 0 R>>\r\nendobj\r\n",h="3 0 obj\r\n<</Length 52>>stream\r\n0.20 w\n0 G\nq _width_ 0 0 _height_ 0.00 0.00 cm /I0 Do Q\r\nendstream\r\nendobj\r\n",p="6 0 obj\r\n<</CreationDate _date_/Producer(DevExtreme _version_)>>\r\nendobj\r\n",f="5 0 obj\r\n<</Type/XObject/Subtype/Image/Width _width_/Height _height_/ColorSpace/DeviceRGB/BitsPerComponent 8/Filter/DCTDecode/Length _length_>>stream\r\n",g="\r\nendstream\r\nendobj\r\n",_="trailer\r\n<<\r\n/Size 8\r\n/Root 7 0 R\r\n/Info 6 0 R\r\n>>\r\nstartxref\r\n_length_\r\n%%EOF",m="xref\r\n0 8\r\n0000000000 65535 f\r\n0000000241 00000 n\r\n0000000010 00000 n\r\n_main_ 00000 n\r\n0000000089 00000 n\r\n_image_ 00000 n\r\n_info_ 00000 n\r\n0000000143 00000 n\r\n",v=function e(t,n){return t.length<n?e("0"+t,n):t},y=function(e,t,n){var r=2*(t.margin||0),o=t.width+r,a=t.height+r,s=(.75*o).toFixed(2),l=(.75*a).toFixed(2),c=d.replace("_width_",s).replace("_height_",l),u=h.replace("_width_",s).replace("_height_",l),m=p.replace("_date_",n).replace("_version_",i),v=f.replace("_width_",o).replace("_height_",a).replace("_length_",e.length)+e+g,y=b(c.length,u.length,m.length),x=c+u+m+v,S=_.replace("_length_",x.length);return x+y+S},b=function(e,t,n){return m.replace("_main_",v(e+"",10)).replace("_info_",v(e+t+"",10)).replace("_image_",v(e+t+n+"",10))},x=function(){return new Date},S=function(e){for(var t=0,n=new Uint8Array(e.length);t<e.length;t++)n[t]=e.charCodeAt(t);return new r.Blob([n.buffer],{type:"application/pdf"})},w=function(e){return r.btoa(e)};t.getData=function(e,t,n){var i=o.getImageData(e,s({},t,{format:"JPEG"})),l=new u;l.done(n),c(i).done(function(e){var n=y(e,t,x()),i=a(r.Blob)?S(n):w(n);l.resolve(i)})}},function(e,t,n){var i=n(19),r=n(1).isFunction,o=n(3).each,a=n(10);e.exports=a.inherit({ctor:function(e){this._events={},this._owner=e},hasEvent:function(e){var t=this._events[e];return!!t&&t.has()},fireEvent:function(e,t){var n=this._events[e];n&&n.fireWith(this._owner,t)},on:function(e,t){var n,r=this._events[e];r||(r=i(),this._events[e]=r),n=r.originalAdd||r.add,n.call(r,t)},off:function(e,t){var n=this._events[e];n&&(r(t)?n.remove(t):n.empty())},dispose:function(){o(this._events,function(){this.empty()})}})},function(e,t,n){var i=n(5);t.on=i.on,t.one=i.one,t.off=i.off,t.trigger=i.trigger,t.triggerHandler=i.triggerHandler,t.Event=i.Event},function(e,t,n){var i,r=n(140),o=n(226),a=n(0).extend,s={dxpointerdown:"pointerdown",dxpointermove:"pointermove",dxpointerup:"pointerup",dxpointercancel:"pointercancel",dxpointerover:"pointerover",dxpointerout:"pointerout",dxpointerenter:"pointerenter",dxpointerleave:"pointerleave"},l=!1,c=function(){l||(i=new o(s,function(e,t){return e.pointerId===t.pointerId},function(e){e.isPrimary&&i.reset()}),l=!0)},u=r.inherit({ctor:function(){this.callBase.apply(this,arguments),c()},_fireEvent:function(e){return this.callBase(a({pointers:i.pointers(),pointerId:e.originalEvent.pointerId},e))}});u.map=s,u.resetObserver=function(){i.reset()},e.exports=u},function(e,t,n){var i=n(0).extend,r=n(140),o=n(227),a=n(225),s=n(9),l={dxpointerdown:"touchstart mousedown",dxpointermove:"touchmove mousemove",dxpointerup:"touchend mouseup",dxpointercancel:"touchcancel",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},c=!1,u=function(){c||(o.activate(),c=!0)},d=r.inherit({EVENT_LOCK_TIMEOUT:100,ctor:function(){this.callBase.apply(this,arguments),u()},_handler:function(e){var t=s.isMouseEvent(e);if(t||(this._skipNextEvents=!0),!t||!this._mouseLocked){if(t&&this._skipNextEvents){this._skipNextEvents=!1,this._mouseLocked=!0,clearTimeout(this._unlockMouseTimer);var n=this;return void(this._unlockMouseTimer=setTimeout(function(){n._mouseLocked=!1},this.EVENT_LOCK_TIMEOUT))}return this.callBase(e)}},_fireEvent:function(e){var t=s.isMouseEvent(e.originalEvent),n=t?o.normalize:a.normalize;return this.callBase(i(n(e.originalEvent),e))},dispose:function(){this.callBase(),this._skipNextEvents=!1,this._mouseLocked=!1,clearTimeout(this._unlockMouseTimer)}});d.map=l,d.resetObserver=o.resetObserver,e.exports=d},function(e,t,n){var i=n(81),r=n(15),o=n(49),a=n(33);n(137),t.locale=i.locale.bind(i),t.loadMessages=r.load.bind(r),t.formatMessage=r.format.bind(r),t.formatNumber=o.format.bind(o),t.parseNumber=o.parse.bind(o),t.formatDate=a.format.bind(a),t.parseDate=a.parse.bind(a),t.message=r,t.number=o,t.date=a},function(e,t,n){e.exports={en:{Yes:"Yes",No:"No",Cancel:"Cancel",Clear:"Clear",Done:"Done",Loading:"Loading...",Select:"Select...",Search:"Search",Back:"Back",OK:"OK","dxCollectionWidget-noDataText":"No data to display","validation-required":"Required","validation-required-formatted":"{0} is required","validation-numeric":"Value must be a number","validation-numeric-formatted":"{0} must be a number","validation-range":"Value is out of range","validation-range-formatted":"{0} is out of range","validation-stringLength":"The length of the value is not correct","validation-stringLength-formatted":"The length of {0} is not correct","validation-custom":"Value is invalid","validation-custom-formatted":"{0} is invalid","validation-compare":"Values do not match","validation-compare-formatted":"{0} does not match","validation-pattern":"Value does not match pattern","validation-pattern-formatted":"{0} does not match pattern","validation-email":"Email is invalid","validation-email-formatted":"{0} is invalid","validation-mask":"Value is invalid","dxLookup-searchPlaceholder":"Minimum character number: {0}","dxList-pullingDownText":"Pull down to refresh...","dxList-pulledDownText":"Release to refresh...","dxList-refreshingText":"Refreshing...","dxList-pageLoadingText":"Loading...","dxList-nextButtonText":"More","dxList-selectAll":"Select All","dxListEditDecorator-delete":"Delete","dxListEditDecorator-more":"More","dxScrollView-pullingDownText":"Pull down to refresh...","dxScrollView-pulledDownText":"Release to refresh...","dxScrollView-refreshingText":"Refreshing...","dxScrollView-reachBottomText":"Loading...","dxDateBox-simulatedDataPickerTitleTime":"Select time","dxDateBox-simulatedDataPickerTitleDate":"Select date","dxDateBox-simulatedDataPickerTitleDateTime":"Select date and time","dxDateBox-validation-datetime":"Value must be a date or time","dxFileUploader-selectFile":"Select file","dxFileUploader-dropFile":"or Drop file here","dxFileUploader-bytes":"bytes","dxFileUploader-kb":"kb","dxFileUploader-Mb":"Mb","dxFileUploader-Gb":"Gb","dxFileUploader-upload":"Upload","dxFileUploader-uploaded":"Uploaded","dxFileUploader-readyToUpload":"Ready to upload","dxFileUploader-uploadFailedMessage":"Upload failed","dxRangeSlider-ariaFrom":"From","dxRangeSlider-ariaTill":"Till","dxSwitch-onText":"ON","dxSwitch-offText":"OFF","dxForm-optionalMark":"optional","dxForm-requiredMessage":"{0} is required","dxNumberBox-invalidValueMessage":"Value must be a number","dxDataGrid-columnChooserTitle":"Column Chooser","dxDataGrid-columnChooserEmptyText":"Drag a column here to hide it","dxDataGrid-groupContinuesMessage":"Continues on the next page","dxDataGrid-groupContinuedMessage":"Continued from the previous page","dxDataGrid-groupHeaderText":"Group by This Column","dxDataGrid-ungroupHeaderText":"Ungroup","dxDataGrid-ungroupAllText":"Ungroup All","dxDataGrid-editingEditRow":"Edit","dxDataGrid-editingSaveRowChanges":"Save","dxDataGrid-editingCancelRowChanges":"Cancel","dxDataGrid-editingDeleteRow":"Delete","dxDataGrid-editingUndeleteRow":"Undelete","dxDataGrid-editingConfirmDeleteMessage":"Are you sure you want to delete this record?","dxDataGrid-validationCancelChanges":"Cancel changes","dxDataGrid-groupPanelEmptyText":"Drag a column header here to group by that column","dxDataGrid-noDataText":"No data","dxDataGrid-searchPanelPlaceholder":"Search...","dxDataGrid-filterRowShowAllText":"(All)","dxDataGrid-filterRowResetOperationText":"Reset","dxDataGrid-filterRowOperationEquals":"Equals","dxDataGrid-filterRowOperationNotEquals":"Does not equal","dxDataGrid-filterRowOperationLess":"Less than","dxDataGrid-filterRowOperationLessOrEquals":"Less than or equal to","dxDataGrid-filterRowOperationGreater":"Greater than","dxDataGrid-filterRowOperationGreaterOrEquals":"Greater than or equal to","dxDataGrid-filterRowOperationStartsWith":"Starts with","dxDataGrid-filterRowOperationContains":"Contains","dxDataGrid-filterRowOperationNotContains":"Does not contain","dxDataGrid-filterRowOperationEndsWith":"Ends with","dxDataGrid-filterRowOperationBetween":"Between","dxDataGrid-filterRowOperationBetweenStartText":"Start","dxDataGrid-filterRowOperationBetweenEndText":"End","dxDataGrid-applyFilterText":"Apply filter","dxDataGrid-trueText":"true","dxDataGrid-falseText":"false","dxDataGrid-sortingAscendingText":"Sort Ascending","dxDataGrid-sortingDescendingText":"Sort Descending","dxDataGrid-sortingClearText":"Clear Sorting","dxDataGrid-editingSaveAllChanges":"Save changes","dxDataGrid-editingCancelAllChanges":"Discard changes","dxDataGrid-editingAddRow":"Add a row","dxDataGrid-summaryMin":"Min: {0}","dxDataGrid-summaryMinOtherColumn":"Min of {1} is {0}","dxDataGrid-summaryMax":"Max: {0}","dxDataGrid-summaryMaxOtherColumn":"Max of {1} is {0}","dxDataGrid-summaryAvg":"Avg: {0}","dxDataGrid-summaryAvgOtherColumn":"Avg of {1} is {0}","dxDataGrid-summarySum":"Sum: {0}","dxDataGrid-summarySumOtherColumn":"Sum of {1} is {0}","dxDataGrid-summaryCount":"Count: {0}","dxDataGrid-columnFixingFix":"Fix","dxDataGrid-columnFixingUnfix":"Unfix","dxDataGrid-columnFixingLeftPosition":"To the left","dxDataGrid-columnFixingRightPosition":"To the right","dxDataGrid-exportTo":"Export","dxDataGrid-exportToExcel":"Export to Excel file","dxDataGrid-excelFormat":"Excel file","dxDataGrid-selectedRows":"Selected rows","dxDataGrid-exportSelectedRows":"Export selected rows","dxDataGrid-exportAll":"Export all data","dxDataGrid-headerFilterEmptyValue":"(Blanks)","dxDataGrid-headerFilterOK":"OK","dxDataGrid-headerFilterCancel":"Cancel","dxDataGrid-ariaColumn":"Column","dxDataGrid-ariaValue":"Value","dxDataGrid-ariaFilterCell":"Filter cell","dxDataGrid-ariaCollapse":"Collapse","dxDataGrid-ariaExpand":"Expand","dxDataGrid-ariaDataGrid":"Data grid","dxDataGrid-ariaSearchInGrid":"Search in data grid","dxDataGrid-ariaSelectAll":"Select all","dxDataGrid-ariaSelectRow":"Select row","dxDataGrid-filterBuilderPopupTitle":"Filter Builder","dxDataGrid-filterPanelCreateFilter":"Create Filter","dxDataGrid-filterPanelClearFilter":"Clear","dxDataGrid-filterPanelFilterEnabledHint":"Enable the filter","dxTreeList-ariaTreeList":"Tree list","dxTreeList-editingAddRowToNode":"Add","dxPager-infoText":"Page {0} of {1} ({2} items)","dxPager-pagesCountText":"of","dxPivotGrid-grandTotal":"Grand Total","dxPivotGrid-total":"{0} Total","dxPivotGrid-fieldChooserTitle":"Field Chooser","dxPivotGrid-showFieldChooser":"Show Field Chooser","dxPivotGrid-expandAll":"Expand All","dxPivotGrid-collapseAll":"Collapse All","dxPivotGrid-sortColumnBySummary":'Sort "{0}" by This Column',"dxPivotGrid-sortRowBySummary":'Sort "{0}" by This Row',"dxPivotGrid-removeAllSorting":"Remove All Sorting","dxPivotGrid-dataNotAvailable":"N/A","dxPivotGrid-rowFields":"Row Fields","dxPivotGrid-columnFields":"Column Fields","dxPivotGrid-dataFields":"Data Fields","dxPivotGrid-filterFields":"Filter Fields","dxPivotGrid-allFields":"All Fields","dxPivotGrid-columnFieldArea":"Drop Column Fields Here","dxPivotGrid-dataFieldArea":"Drop Data Fields Here","dxPivotGrid-rowFieldArea":"Drop Row Fields Here","dxPivotGrid-filterFieldArea":"Drop Filter Fields Here","dxScheduler-editorLabelTitle":"Subject","dxScheduler-editorLabelStartDate":"Start Date","dxScheduler-editorLabelEndDate":"End Date","dxScheduler-editorLabelDescription":"Description","dxScheduler-editorLabelRecurrence":"Repeat","dxScheduler-openAppointment":"Open appointment","dxScheduler-recurrenceNever":"Never","dxScheduler-recurrenceDaily":"Daily","dxScheduler-recurrenceWeekly":"Weekly","dxScheduler-recurrenceMonthly":"Monthly","dxScheduler-recurrenceYearly":"Yearly","dxScheduler-recurrenceEvery":"Every","dxScheduler-recurrenceEnd":"End repeat","dxScheduler-recurrenceAfter":"After","dxScheduler-recurrenceOn":"On","dxScheduler-recurrenceRepeatDaily":"day(s)","dxScheduler-recurrenceRepeatWeekly":"week(s)","dxScheduler-recurrenceRepeatMonthly":"month(s)","dxScheduler-recurrenceRepeatYearly":"year(s)","dxScheduler-switcherDay":"Day","dxScheduler-switcherWeek":"Week","dxScheduler-switcherWorkWeek":"Work Week","dxScheduler-switcherMonth":"Month","dxScheduler-switcherAgenda":"Agenda","dxScheduler-switcherTimelineDay":"Timeline Day","dxScheduler-switcherTimelineWeek":"Timeline Week","dxScheduler-switcherTimelineWorkWeek":"Timeline Work Week","dxScheduler-switcherTimelineMonth":"Timeline Month","dxScheduler-recurrenceRepeatOnDate":"on date","dxScheduler-recurrenceRepeatCount":"occurrence(s)","dxScheduler-allDay":"All day","dxScheduler-confirmRecurrenceEditMessage":"Do you want to edit only this appointment or the whole series?","dxScheduler-confirmRecurrenceDeleteMessage":"Do you want to delete only this appointment or the whole series?","dxScheduler-confirmRecurrenceEditSeries":"Edit series","dxScheduler-confirmRecurrenceDeleteSeries":"Delete series","dxScheduler-confirmRecurrenceEditOccurrence":"Edit appointment","dxScheduler-confirmRecurrenceDeleteOccurrence":"Delete appointment","dxScheduler-noTimezoneTitle":"No timezone","dxScheduler-moreAppointments":"{0} more","dxCalendar-todayButtonText":"Today","dxCalendar-ariaWidgetName":"Calendar","dxColorView-ariaRed":"Red","dxColorView-ariaGreen":"Green","dxColorView-ariaBlue":"Blue","dxColorView-ariaAlpha":"Transparency","dxColorView-ariaHex":"Color code","dxTagBox-selected":"{0} selected","dxTagBox-allSelected":"All selected ({0})","dxTagBox-moreSelected":"{0} more","vizExport-printingButtonText":"Print","vizExport-titleMenuText":"Exporting/Printing","vizExport-exportButtonText":"{0} file","dxFilterBuilder-and":"And","dxFilterBuilder-or":"Or","dxFilterBuilder-notAnd":"Not And","dxFilterBuilder-notOr":"Not Or","dxFilterBuilder-addCondition":"Add Condition","dxFilterBuilder-addGroup":"Add Group","dxFilterBuilder-enterValueText":"<enter a value>","dxFilterBuilder-filterOperationEquals":"Equals","dxFilterBuilder-filterOperationNotEquals":"Does not equal","dxFilterBuilder-filterOperationLess":"Is less than","dxFilterBuilder-filterOperationLessOrEquals":"Is less than or equal to","dxFilterBuilder-filterOperationGreater":"Is greater than","dxFilterBuilder-filterOperationGreaterOrEquals":"Is greater than or equal to","dxFilterBuilder-filterOperationStartsWith":"Starts with","dxFilterBuilder-filterOperationContains":"Contains","dxFilterBuilder-filterOperationNotContains":"Does not contain","dxFilterBuilder-filterOperationEndsWith":"Ends with","dxFilterBuilder-filterOperationIsBlank":"Is blank","dxFilterBuilder-filterOperationIsNotBlank":"Is not blank","dxFilterBuilder-filterOperationBetween":"Is between","dxFilterBuilder-filterOperationAnyOf":"Is any of","dxFilterBuilder-filterOperationNoneOf":"Is none of"}}},function(e,t,n){e.exports={"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150","es-AR":"es-419","es-BO":"es-419","es-BR":"es-419","es-BZ":"es-419","es-CL":"es-419","es-CO":"es-419","es-CR":"es-419","es-CU":"es-419","es-DO":"es-419","es-EC":"es-419","es-GT":"es-419","es-HN":"es-419","es-MX":"es-419","es-NI":"es-419","es-PA":"es-419","es-PE":"es-419","es-PR":"es-419","es-PY":"es-419","es-SV":"es-419","es-US":"es-419","es-UY":"es-419","es-VE":"es-419",nb:"no",nn:"no","pt-AO":"pt-PT","pt-CH":"pt-PT","pt-CV":"pt-PT","pt-FR":"pt-PT","pt-GQ":"pt-PT","pt-GW":"pt-PT","pt-LU":"pt-PT","pt-MO":"pt-PT","pt-MZ":"pt-PT","pt-ST":"pt-PT","pt-TL":"pt-PT","az-Arab":"und","az-Cyrl":"und","bal-Latn":"und","blt-Latn":"und","bm-Nkoo":"und","bs-Cyrl":"und","byn-Latn":"und","cu-Glag":"und","dje-Arab":"und","dyo-Arab":"und","en-Dsrt":"und","en-Shaw":"und","ff-Adlm":"und","ff-Arab":"und","ha-Arab":"und","hi-Latn":"und","iu-Latn":"und","kk-Arab":"und","ks-Deva":"und","ku-Arab":"und","ky-Arab":"und","ky-Latn":"und","ml-Arab":"und","mn-Mong":"und","mni-Mtei":"und","ms-Arab":"und","pa-Arab":"und","sat-Deva":"und","sd-Deva":"und","sd-Khoj":"und","sd-Sind":"und","shi-Latn":"und","so-Arab":"und","sr-Latn":"und","sw-Arab":"und","tg-Arab":"und","ug-Cyrl":"und","uz-Arab":"und","uz-Cyrl":"und","vai-Latn":"und","wo-Arab":"und","yo-Arab":"und","yue-Hans":"und","zh-Hant":"und","zh-Hant-MO":"zh-Hant-HK"}},function(e,t,n){n(119),n(109),e.exports=DevExpress.framework={},DevExpress.framework.dxCommand=n(174),DevExpress.framework.Router=n(141),DevExpress.framework.StateManager=n(175),DevExpress.framework.ViewCache=n(82),DevExpress.framework.NullViewCache=n(82).NullViewCache,DevExpress.framework.ConditionalViewCacheDecorator=n(82).ConditionalViewCacheDecorator,DevExpress.framework.CapacityViewCacheDecorator=n(82).CapacityViewCacheDecorator,DevExpress.framework.HistoryDependentViewCacheDecorator=n(82).HistoryDependentViewCacheDecorator,DevExpress.framework.dxCommandContainer=n(176),DevExpress.framework.dxView=n(63).dxView,DevExpress.framework.dxLayout=n(63).dxLayout,DevExpress.framework.dxViewPlaceholder=n(63).dxViewPlaceholder,DevExpress.framework.dxContentPlaceholder=n(63).dxContentPlaceholder,DevExpress.framework.dxTransition=n(63).dxTransition,DevExpress.framework.dxContent=n(63).dxContent,DevExpress.framework.html={},DevExpress.framework.html.HtmlApplication=n(231),DevExpress.framework.Route=n(141).Route,DevExpress.framework.MemoryKeyValueStorage=n(175).MemoryKeyValueStorage,DevExpress.framework.NavigationDevices=n(142),DevExpress.framework.NavigationManager=n(111),DevExpress.framework.createActionExecutors=n(233).createActionExecutors,DevExpress.framework.Application=n(232).Application;var i=n(234);DevExpress.framework.DefaultBrowserAdapter=i.DefaultBrowserAdapter,DevExpress.framework.OldBrowserAdapter=i.OldBrowserAdapter,DevExpress.framework.BuggyAndroidBrowserAdapter=i.BuggyAndroidBrowserAdapter,DevExpress.framework.HistorylessBrowserAdapter=i.HistorylessBrowserAdapter,DevExpress.framework.BuggyCordovaWP81BrowserAdapter=i.BuggyCordovaWP81BrowserAdapter,DevExpress.framework.CommandMapping=n(178),DevExpress.framework.HistoryBasedNavigationDevice=n(142).HistoryBasedNavigationDevice,DevExpress.framework.StackBasedNavigationDevice=n(142).StackBasedNavigationDevice,DevExpress.framework.HistoryBasedNavigationManager=n(111).HistoryBasedNavigationManager,DevExpress.framework.StackBasedNavigationManager=n(111).StackBasedNavigationManager,DevExpress.framework.NavigationStack=n(111).NavigationStack,DevExpress.framework.utils=n(110).utils,DevExpress.framework.templateProvider=n(110).templateProvider,DevExpress.framework.html.CommandManager=n(235),DevExpress.framework.html.HtmlApplication=n(231),DevExpress.framework.html.layoutSets=n(143).layoutSets,DevExpress.framework.html.animationSets=n(143).animationSets,DevExpress.framework.html.DefaultLayoutController=n(179).DefaultLayoutController,DevExpress.framework.html.layoutSets=n(179).layoutSets,DevExpress.framework.html.MarkupComponent=n(177).MarkupComponent,DevExpress.framework.html.ViewEngine=n(237).ViewEngine,DevExpress.framework.html.ViewEngineComponents=n(63);var r=n(236);DevExpress.framework.html.commandToDXWidgetAdapters={dxToolbar:r.dxToolbar,dxList:r.dxList,dxNavBar:r.dxNavBar,dxPivot:r.dxPivot,dxSlideOut:r.dxSlideOut}},function(e,t,n){var i=n(2),r=n(56),o=n(19),a=n(17),s=n(37),l=n(1).isPlainObject,c=n(138),u=n(28),d=n(228),h=n(48),p=n(229),f=n(30),g="dxKoLocks",_="dxKoCreation",m=[],v=function(e,t){t.subclassOf(h)&&m.push(e),r.bindingHandlers[e]={init:function(e,n){var c,h,m=i(e),v=o(),y={},b=f().knockout,x=b&&b.isBindingPropertyPredicateName,S={onInitializing:function(){y=this._getOptionsByReference(),r.computed(function(){var e=r.unwrap(n());c&&c.beginUpdate(),h=x&&e&&e[x],A(e),c&&c.endUpdate()},null,{disposeWhenNodeIsRemoved:e}),c=this},modelByElement:function(e){if(e.length)return r.dataFor(e.get(0))},nestedComponentOptions:function(e){return{modelByElement:e.option("modelByElement"),nestedComponentOptions:e.option("nestedComponentOptions")}},_optionChangedCallbacks:v,integrationOptions:{watchMethod:function(e,t,n){n=n||{};var i=n.skipImmediate,o=r.computed(function(){var n=r.unwrap(e());i||t(n),i=!1});return function(){o.dispose()}},templates:{"dx-polymorph-widget":{render:function(e){var t=r.utils.unwrapObservable(e.model.widget);if(t){if("button"===t||"tabs"===t||"dropDownMenu"===t){var n=t;t=s.camelize("dx-"+t),a.log("W0001","dxToolbar - 'widget' item field",n,"16.1","Use: '"+t+"' instead")}var o=i("<div>").attr("data-bind",t+": options").get(0);i(e.container).append(o),r.applyBindings(e.model,o)}}}},createTemplate:function(e){return new d(e)}}},w={},C=function(e,t,n){var i=m.data(g),o=n?r.unwrap(t):t;if(r.isWriteableObservable(t)&&(w[e]=t),c){if(i.locked(e))return;i.obtain(e);try{r.ignoreDependencies?r.ignoreDependencies(c.option,c,[e,o]):c.option(e,o)}finally{i.release(e)}}else S[e]=o},k=function(e){var t=e.fullName,n=e.value;if(t in w){var i=this._$element,r=i.data(g);if(!r.locked(t)){r.obtain(t);try{w[t](n)}finally{r.release(t)}}}},T=function(){v.add(k),m.data(_,!0).data(g,new p),new t(m,S),S=null},E=function(t,n,i){if(i!==x)if(!h||h(i,n,t)){var o;r.computed(function(){var e=t[n];C(i,e,!0),o=r.unwrap(e)},null,{disposeWhenNodeIsRemoved:e}),l(o)&&(y[i]||A(o,i))}else C(i,t[n],!1)},A=function(e,t){for(var n in e)e.hasOwnProperty(n)&&E(e,n,t?[t,n].join("."):n)};return T(),{controlsDescendantBindings:t.subclassOf(u)}}},"dxValidator"===e&&(r.bindingHandlers.dxValidator.after=m)};c.add(function(e,t){v(e,t)})},function(e,t,n){var i=n(56),r=function e(t){var n=i.contextFor(t);return!n&&t.parentNode?e(t.parentNode):t};e.exports.getClosestNodeWithContext=r},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(2),o=n(12),a=n(6),s=n(51).add,l=a.getWindow(),c=a.getNavigator(),u=n(5),d=n(32),h=n(24),p=n(59).compare,f=n(73),g=n(0).extend,_=n(11).inArray,m=n(13).getPublicElement,v=f.changeCallback,y=n(136).hideCallback,b=n(77),x=n(31).fitIntoRange,S=n(13),w=n(4).noop,C=n(1),k=n(3).each,T=n(14),E=n(29),A=n(8),O=n(28),I=n(155),D=n(57),M=n(78),P=n(9),L=n(25),B=n(204),R=n(122),V=n(7).Deferred,F="dx-overlay",z="dx-overlay-wrapper",N="dx-overlay-content",H="dx-overlay-shader",G="dx-overlay-modal",W="dx-state-invisible",j="content",U="dx-rtl",Y=["onShowing","onShown","onHiding","onHidden","onPositioning","onPositioned","onResizeStart","onResize","onResizeEnd"],$=1500,K=[],X="dx-state-disabled",q=9,Z={
31
31
  top:{my:"top center",at:"top center"},bottom:{my:"bottom center",at:"bottom center"},right:{my:"right center",at:"right center"},left:{my:"left center",at:"left center"},center:{my:"center",at:"center"},"right bottom":{my:"right bottom",at:"right bottom"},"right top":{my:"right top",at:"right top"},"left bottom":{my:"left bottom",at:"left bottom"},"left top":{my:"left top",at:"left top"}},Q=T.real(),J=Q.version,ee=E.mozilla&&"desktop"===Q.deviceType,te="ios"===Q.platform,ne=E.safari&&"desktop"!==Q.deviceType,ie=te&&p(J,[7,1])<0,re="android"===Q.platform&&0===p(J,[4,0],2)&&c.userAgent.indexOf("Chrome")===-1,oe=function(e){if((ie||ee)&&e.width(),re){var t=e.parents(),n=t.is(".dx-scrollable-native");n||(t.css("backfaceVisibility","hidden"),t.css("backfaceVisibility"),t.css("backfaceVisibility","visible"))}},ae=function(e){return e&&r(e.target||e)};s(function(){u.subscribeGlobal(o.getDocument(),L.down,function(e){for(var t=K.length-1;t>=0;t--)if(!K[t]._proxiedDocumentDownHandler(e))return})});var se=O.inherit({_supportedKeys:function(){var e=5,t=function(e,t,n){if(this.option("dragEnabled")){n.preventDefault(),n.stopPropagation();var i=this._allowedOffsets(),r={top:x(e,-i.top,i.bottom),left:x(t,-i.left,i.right)};this._changePosition(r)}};return g(this.callBase(),{escape:function(){this.hide()},upArrow:t.bind(this,-e,0),downArrow:t.bind(this,e,0),leftArrow:t.bind(this,0,-e),rightArrow:t.bind(this,0,e)})},_getDefaultOptions:function(){return g(this.callBase(),{activeStateEnabled:!1,visible:!1,deferRendering:!0,shading:!0,shadingColor:"",position:{my:"center",at:"center"},width:function(){return.8*r(l).width()},minWidth:null,maxWidth:null,height:function(){return.8*r(l).height()},minHeight:null,maxHeight:null,animation:{show:{type:"pop",duration:300,from:{scale:.55}},hide:{type:"pop",duration:300,to:{opacity:0,scale:.55},from:{opacity:1,scale:1}}},closeOnOutsideClick:!1,closeOnBackButton:!0,onShowing:null,onShown:null,onHiding:null,onHidden:null,contentTemplate:"content",dragEnabled:!1,resizeEnabled:!1,onResizeStart:null,onResize:null,onResizeEnd:null,target:void 0,container:void 0,hideTopOverlayHandler:void 0,closeOnTargetScroll:!1,onPositioned:null,boundaryOffset:{h:0,v:0},propagateOutsideClick:!1,_checkParentVisibility:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var e=T.real(),t=e.platform,n=e.version;return"android"===t&&p(n,[4,2])<0},options:{animation:{show:{type:"fade",duration:400},hide:{type:"fade",duration:400,to:{opacity:0},from:{opacity:1}}}}},{device:function(){return!a.hasWindow()},options:{width:null,height:null,animation:null,_checkParentVisibility:!1}}])},_setOptionsByReference:function(){this.callBase(),g(this._optionsByReference,{animation:!0})},_getAnonymousTemplateName:function(){return j},_wrapper:function(){return this._$wrapper},_container:function(){return this._$content},_eventBindingTarget:function(){return this._$content},_init:function(){this.callBase(),this._initActions(),this._initCloseOnOutsideClickHandler(),this._initTabTerminatorHandler(),this._$wrapper=r("<div>").addClass(z),this._$content=r("<div>").addClass(N);var e=this.$element();this._$wrapper.addClass(e.attr("class")),e.addClass(F),this._$wrapper.attr("data-bind","dxControlsDescendantBindings: true"),u.on(this._$wrapper,"MSPointerDown",w),u.on(this._$wrapper,"focusin",function(e){e.stopPropagation()}),this._toggleViewPortSubscription(!0)},_initOptions:function(e){this._initTarget(e.target),this._initContainer(e.container),this._initHideTopOverlayHandler(e.hideTopOverlayHandler),this.callBase(e)},_initTarget:function(e){if(C.isDefined(e)){var t=this.option();k(["position.of","animation.show.from.position.of","animation.show.to.position.of","animation.hide.from.position.of","animation.hide.to.position.of"],function(n,i){for(var r=i.split("."),o=t;o;){if(1===r.length){C.isPlainObject(o)&&(o[r.shift()]=e);break}o=o[r.shift()]}})}},_initContainer:function(e){e=void 0===e?f.value():e;var t=this.$element(),n=t.closest(e);n.length||(n=r(e).first()),this._$container=n.length?n:t.parent()},_initHideTopOverlayHandler:function(e){this._hideTopOverlayHandler=void 0!==e?e:this._defaultHideTopOverlayHandler.bind(this)},_defaultHideTopOverlayHandler:function(){this.hide()},_initActions:function(){this._actions={},k(Y,function(e,t){this._actions[t]=this._createActionByOption(t,{excludeValidators:["disabled","readOnly"]})||w}.bind(this))},_initCloseOnOutsideClickHandler:function(){var e=this;this._proxiedDocumentDownHandler=function(){return e._documentDownHandler.apply(e,arguments)}},_documentDownHandler:function(e){this._showAnimationProcessing&&this._stopAnimation();var t=this.option("closeOnOutsideClick");C.isFunction(t)&&(t=t(e));var n=this._$content,i=r(l.document).is(e.target)||S.contains(l.document,e.target),o=i&&!(n.is(e.target)||S.contains(n.get(0),e.target));return o&&t&&(this.option("shading")&&e.preventDefault(),this.hide()),this.option("propagateOutsideClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.content=new R(this)},_isTopOverlay:function(){for(var e=this._overlayStack(),t=e.length-1;t>=0;t--){var n=e[t]._findTabbableBounds();if(n.first||n.last)return e[t]===this}return!1},_overlayStack:function(){return K},_zIndexInitValue:function(){return $},_toggleViewPortSubscription:function(e){v.remove(this._viewPortChangeHandle),e&&(this._viewPortChangeHandle=this._viewPortChangeHandler.bind(this),v.add(this._viewPortChangeHandle))},_viewPortChangeHandler:function(){this._initContainer(this.option("container")),this._refresh()},_renderVisibilityAnimate:function(e){return this._stopAnimation(),e?this._show():this._hide()},_normalizePosition:function(){var e=this.option("position");this._position="function"==typeof e?e():e},_getAnimationConfig:function(){var e=this.option("animation");return C.isFunction(e)&&(e=e.call(this)),e},_show:function(){var e=this,t=new V;if(this._parentHidden=this._isParentHidden(),t.done(function(){delete e._parentHidden}),this._parentHidden)return t.resolve();if(this._currentVisible)return(new V).resolve().promise();this._currentVisible=!0,this._normalizePosition();var n=e._getAnimationConfig()||{},i=this._normalizeAnimation(n.show,"to"),r=i&&i.start||w,o=i&&i.complete||w;if(this._isHidingActionCanceled)delete this._isHidingActionCanceled,t.resolve();else{var a=function(){this._renderVisibility(!0),this._animate(i,function(){e.option("focusStateEnabled")&&u.trigger(e._focusTarget(),"focus"),o.apply(this,arguments),e._showAnimationProcessing=!1,e._actions.onShown(),t.resolve()},function(){r.apply(this,arguments),e._showAnimationProcessing=!0})}.bind(this);this.option("templatesRenderAsynchronously")?(this._stopShowTimer(),this._asyncShowTimeout=setTimeout(a)):a()}return t.promise()},_normalizeAnimation:function(e,t){return e&&(e=g({type:"slide"},e),e[t]&&"object"===i(e[t])&&g(e[t],{position:this._position})),e},_hide:function(){if(!this._currentVisible)return(new V).resolve().promise();this._currentVisible=!1;var e=this,t=new V,n=e._getAnimationConfig()||{},i=this._normalizeAnimation(n.hide,"from"),r=i&&i.start||w,o=i&&i.complete||w,a={cancel:!1};return this._actions.onHiding(a),a.cancel?(this._isHidingActionCanceled=!0,this.option("visible",!0),t.resolve()):(this._forceFocusLost(),this._toggleShading(!1),this._toggleSubscriptions(!1),this._stopShowTimer(),this._animate(i,function(){e._$content.css("pointerEvents",""),e._renderVisibility(!1),o.apply(this,arguments),e._actions.onHidden(),t.resolve()},function(){e._$content.css("pointerEvents","none"),r.apply(this,arguments)})),t.promise()},_forceFocusLost:function(){var e=o.getActiveElement();e&&this._$content.find(e).length&&e.blur()},_animate:function(e,t,n){e?(n=n||e.start||w,d.animate(this._$content,g({},e,{start:n,complete:t}))):t()},_stopAnimation:function(){d.stop(this._$content,!0)},_renderVisibility:function(e){e&&this._isParentHidden()||(this._currentVisible=e,this._stopAnimation(),e||S.triggerHidingEvent(this._$content),this._toggleVisibility(e),this._$content.toggleClass(W,!e),this._updateZIndexStackPosition(e),e?(this._renderContent(),this._actions.onShowing(),this._moveToContainer(),this._renderGeometry(),S.triggerShownEvent(this._$content),S.triggerResizeEvent(this._$content)):this._moveFromContainer(),this._toggleShading(e),this._toggleSubscriptions(e))},_updateZIndexStackPosition:function(e){var t=this._overlayStack(),n=_(this,t);if(e){if(n===-1){var i=t.length;this._zIndex=(i?t[i-1]._zIndex:this._zIndexInitValue())+1,t.push(this)}this._$wrapper.css("zIndex",this._zIndex),this._$content.css("zIndex",this._zIndex)}else n!==-1&&t.splice(n,1)},_toggleShading:function(e){this._$wrapper.toggleClass(G,this.option("shading")&&!this.option("container")),this._$wrapper.toggleClass(H,e&&this.option("shading")),this._$wrapper.css("backgroundColor",this.option("shading")?this.option("shadingColor"):""),this._toggleTabTerminator(e&&this.option("shading"))},_initTabTerminatorHandler:function(){var e=this;this._proxiedTabTerminatorHandler=function(){e._tabKeyHandler.apply(e,arguments)}},_toggleTabTerminator:function(e){var t=P.addNamespace("keydown",this.NAME);e?u.on(o.getDocument(),t,this._proxiedTabTerminatorHandler):u.off(o.getDocument(),t,this._proxiedTabTerminatorHandler)},_findTabbableBounds:function(){for(var e=this._$wrapper.find("*"),t=e.length-1,n={first:null,last:null},i=0;i<=t&&(!n.first&&e.eq(i).is(D.tabbable)&&(n.first=e.eq(i)),!n.last&&e.eq(t-i).is(D.tabbable)&&(n.last=e.eq(t-i)),!n.first||!n.last);i++);return n},_tabKeyHandler:function(e){if(e.keyCode===q&&this._isTopOverlay()){var t=this._findTabbableBounds(),n=t.first,i=t.last,r=!e.shiftKey&&e.target===i.get(0),o=e.shiftKey&&e.target===n.get(0),a=0===t.length,s=!S.contains(this._$wrapper.get(0),e.target);if(r||o||a||s){e.preventDefault();var l=e.shiftKey?i:n;u.trigger(l,"focusin"),u.trigger(l,"focus")}}},_toggleSubscriptions:function(e){a.hasWindow()&&(this._toggleHideTopOverlayCallback(e),this._toggleParentsScrollSubscription(e))},_toggleHideTopOverlayCallback:function(e){this._hideTopOverlayHandler&&(e&&this.option("closeOnBackButton")?y.add(this._hideTopOverlayHandler):y.remove(this._hideTopOverlayHandler))},_toggleParentsScrollSubscription:function(e){if(this._position){var t=this._position.of||r(),n=this.option("closeOnTargetScroll"),i=ae(t).parents(),o=P.addNamespace("scroll",this.NAME);"generic"===T.real().platform&&(i=i.add(l)),this._proxiedTargetParentsScrollHandler=this._proxiedTargetParentsScrollHandler||function(e){this._targetParentsScrollHandler(e)}.bind(this),u.off(r().add(this._$prevTargetParents),o,this._proxiedTargetParentsScrollHandler),e&&n&&(u.on(i,o,this._proxiedTargetParentsScrollHandler),this._$prevTargetParents=i)}},_targetParentsScrollHandler:function(e){var t=!1,n=this.option("closeOnTargetScroll");C.isFunction(n)&&(t=n(e)),t||this._showAnimationProcessing||this.hide()},_render:function(){this.callBase(),this._$content.appendTo(this.$element()),this._renderVisibilityAnimate(this.option("visible"))},_renderContent:function(){var e=!this._currentVisible&&this.option("deferRendering"),t=this.option("visible")&&this._isParentHidden();return t?void(this._isHidden=!0):void(this._contentAlreadyRendered||e||(this._contentAlreadyRendered=!0,this.callBase()))},_isParentHidden:function(){if(!this.option("_checkParentVisibility"))return!1;if(void 0!==this._parentHidden)return this._parentHidden;var e=this.$element().parent();if(e.is(":visible"))return!1;var t=!1;return e.add(e.parents()).each(function(){var e=r(this);if("none"===e.css("display"))return t=!0,!1}),t||!o.getBody().contains(e.get(0))},_renderContentImpl:function(){var e=this.$element();this._$content.appendTo(e);var t=this.option("contentTemplate"),n=this._getTemplate(t),i=this._getAnonymousTemplateName()===t;n&&n.render({container:m(this.$content()),noModel:!0,transclude:i}),this._renderDrag(),this._renderResize(),this._renderScrollTerminator()},_renderDrag:function(){var e=this._getDragTarget();if(e){var t=P.addNamespace(M.start,this.NAME),n=P.addNamespace(M.move,this.NAME);u.off(e,t),u.off(e,n),this.option("dragEnabled")&&(u.on(e,t,this._dragStartHandler.bind(this)),u.on(e,n,this._dragUpdateHandler.bind(this)))}},_renderResize:function(){this._resizable=this._createComponent(this._$content,B,{handles:this.option("resizeEnabled")?"all":"none",onResizeEnd:this._resizeEndHandler.bind(this),onResize:this._actions.onResize.bind(this),onResizeStart:this._actions.onResizeStart.bind(this),minHeight:100,minWidth:100,area:this._getDragResizeContainer()})},_resizeEndHandler:function(){this._positionChangeHandled=!0;var e=this._resizable.option("width"),t=this._resizable.option("height");e&&this.option("width",e),t&&this.option("height",t),this._actions.onResizeEnd()},_renderScrollTerminator:function(){var e=this._wrapper(),t=P.addNamespace(M.move,this.NAME);u.off(e,t),u.on(e,t,{validate:function(){return!0},getDirection:function(){return"both"},_toggleGestureCover:w,_clearSelection:w,isNative:!0},function(e){var t=e.originalEvent.originalEvent;e._cancelPreventDefault=!0,t&&"mousemove"!==t.type&&e.preventDefault()})},_getDragTarget:function(){return this.$content()},_dragStartHandler:function(e){e.targetElements=[],this._prevOffset={x:0,y:0};var t=this._allowedOffsets();e.maxTopOffset=t.top,e.maxBottomOffset=t.bottom,e.maxLeftOffset=t.left,e.maxRightOffset=t.right},_getDragResizeContainer:function(){var e=f.originalViewPort().get(0)||this.option("container"),t=e?this._$container:r(l);return t},_deltaSize:function(){var e=this._$content,t=this._getDragResizeContainer(),n=e.outerWidth(),i=e.outerHeight(),a=t.outerWidth(),s=t.outerHeight();if(this._isWindow(t)){var l=o.getDocument(),c=Math.max(r(l).outerHeight(),s),u=Math.max(r(l).outerWidth(),a);s=c,a=u}return{width:a-n,height:s-i}},_dragUpdateHandler:function(e){var t=e.offset,n=this._prevOffset,i={top:t.y-n.y,left:t.x-n.x};this._changePosition(i),this._prevOffset=t},_changePosition:function(e){var t=h.locate(this._$content);h.move(this._$content,{left:t.left+e.left,top:t.top+e.top}),this._positionChangeHandled=!0},_allowedOffsets:function(){var e=h.locate(this._$content),t=this._deltaSize(),n=t.height>=0&&t.width>=0,i=!this.option("shading")||this.option("container")||this._isWindow(this._getContainer())?{top:0,left:0}:h.locate(this._$wrapper),r=this.option("boundaryOffset");return{top:n?e.top+i.top+r.v:0,bottom:n?-e.top-i.top+t.height-r.v:0,left:n?e.left+i.left+r.h:0,right:n?-e.left-i.left+t.width-r.h:0}},_fireContentReadyAction:function(){this.option("visible")&&this._moveToContainer(),this.callBase.apply(this,arguments)},_moveFromContainer:function(){this._$content.appendTo(this.$element()),this._detachWrapperToContainer()},_detachWrapperToContainer:function(){this._$wrapper.detach()},_moveToContainer:function(){this._attachWrapperToContainer(),this._$content.appendTo(this._$wrapper)},_attachWrapperToContainer:function(){var e=this.$element();this._$container&&this._$container[0]!==e.parent()[0]?this._$wrapper.appendTo(this._$container):this._$wrapper.appendTo(e)},_fixHeightAfterSafariAddressBarResizing:function(){this._isWindow(this._getContainer())&&ne&&this._$wrapper.css("minHeight",l.innerHeight)},_renderGeometry:function(){this.option("visible")&&a.hasWindow()&&this._renderGeometryImpl()},_renderGeometryImpl:function(){this._stopAnimation(),this._normalizePosition(),this._fixHeightAfterSafariAddressBarResizing(),this._renderShading(),this._renderDimensions();var e=this._renderPosition();this._actions.onPositioned({position:e})},_renderShading:function(){var e=this._$wrapper,t=this._getContainer();e.css("position",this._isWindow(t)&&!te?"fixed":"absolute"),this._renderShadingDimensions(),this._renderShadingPosition()},_renderShadingPosition:function(){if(this.option("shading")){var e=this._getContainer();b.setup(this._$wrapper,{my:"top left",at:"top left",of:e})}},_renderShadingDimensions:function(){var e,t;if(this.option("shading")){var n=this._getContainer();e=this._isWindow(n)?"100%":n.outerWidth(),t=this._isWindow(n)?"100%":n.outerHeight()}else e="",t="";this._$wrapper.css({width:e,height:t})},_isWindow:function(e){return!!e&&C.isWindow(e.get(0))},_getContainer:function(){var e=this._position,t=this.option("container"),n=e?e.of||l:null;return ae(t||n)},_renderDimensions:function(){var e=this._$content.get(0);this._$content.css({minWidth:this._getOptionValue("minWidth",e),maxWidth:this._getOptionValue("maxWidth",e),minHeight:this._getOptionValue("minHeight",e),maxHeight:this._getOptionValue("maxHeight",e),width:this._getOptionValue("width",e),height:this._getOptionValue("height",e)})},_renderPosition:function(){if(!this._positionChangeHandled){this._renderOverlayBoundaryOffset(),h.resetPosition(this._$content);var e=this._transformStringPosition(this._position,Z),t=b.setup(this._$content,e);return oe(this._$content),this._actions.onPositioning(),t}var n=this._allowedOffsets();this._changePosition({top:x(0,-n.top,n.bottom),left:x(0,-n.left,n.right)})},_transformStringPosition:function(e,t){return C.isString(e)&&(e=g({},t[e])),e},_renderOverlayBoundaryOffset:function(){var e=this.option("boundaryOffset");this._$content.css("margin",e.v+"px "+e.h+"px")},_focusTarget:function(){return this._$content},_attachKeyboardEvents:function(){this._keyboardProcessor=new I({element:this._$content,handler:this._keyboardHandler,context:this})},_keyboardHandler:function(e){var t=e.originalEvent,n=r(t.target);n.is(this._$content)&&this.callBase.apply(this,arguments)},_isVisible:function(){return this.option("visible")},_visibilityChanged:function(e){e?this.option("visible")&&this._renderVisibilityAnimate(e):this._renderVisibilityAnimate(e)},_dimensionChanged:function(){this._renderGeometry()},_clean:function(){this._contentAlreadyRendered||this.$content().empty(),this._renderVisibility(!1),this._stopShowTimer(),this._cleanFocusState()},_stopShowTimer:function(){this._asyncShowTimeout&&clearTimeout(this._asyncShowTimeout),this._asyncShowTimeout=null},_dispose:function(){d.stop(this._$content,!1),clearTimeout(this._deferShowTimer),this._toggleViewPortSubscription(!1),this._toggleSubscriptions(!1),this._updateZIndexStackPosition(!1),this._toggleTabTerminator(!1),this._actions=null,this.callBase(),this._$wrapper.remove(),this._$content.remove()},_toggleDisabledState:function(e){this.callBase.apply(this,arguments),this._$content.toggleClass(X,Boolean(e))},_toggleRTLDirection:function(e){this._$content.toggleClass(U,e)},_optionChanged:function(e){var t=e.value;if(_(e.name,Y)>-1)return void this._initActions();switch(e.name){case"dragEnabled":this._renderDrag(),this._renderGeometry();break;case"resizeEnabled":this._renderResize(),this._renderGeometry();break;case"shading":case"shadingColor":this._toggleShading(this.option("visible"));break;case"width":case"height":case"minWidth":case"maxWidth":case"minHeight":case"maxHeight":case"boundaryOffset":this._renderGeometry();break;case"position":this._positionChangeHandled=!1,this._renderGeometry();break;case"visible":this._renderVisibilityAnimate(t).done(function(){this._animateDeferred&&this._animateDeferred.resolveWith(this)}.bind(this));break;case"target":this._initTarget(t),this._invalidate();break;case"container":this._initContainer(t),this._invalidate();break;case"deferRendering":case"contentTemplate":this._contentAlreadyRendered=!1,this._clean(),this._invalidate();break;case"closeOnBackButton":this._toggleHideTopOverlayCallback(this.option("visible"));break;case"closeOnTargetScroll":this._toggleParentsScrollSubscription(this.option("visible"));break;case"closeOnOutsideClick":case"animation":case"propagateOutsideClick":break;case"rtlEnabled":this._contentAlreadyRendered=!1,this.option("visible",!1),this.callBase(e);break;default:this.callBase(e)}},toggle:function(e){if(e=void 0===e?!this.option("visible"):e,e===this.option("visible"))return(new V).resolve().promise();var t=new V;return this._animateDeferred=t,this.option("visible",e),t.promise().done(function(){delete this._animateDeferred}.bind(this))},$content:function(){return this._$content},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},content:function(){return m(this._$content)},repaint:function(){this._renderGeometry()}});se.baseZIndex=function(e){$=e},A("dxOverlay",se),e.exports=se},function(e,t,n){var i=n(2),r=n(5),o=n(56),a=n(1).isPlainObject,s=n(107),l=n(9);s.add(function(e){var t=l.addNamespace(e,e+"Binding");o.bindingHandlers[e]={update:function(e,n,s,l){var c=i(e),u=o.utils.unwrapObservable(n()),d=u.execute?u.execute:u;r.off(c,t),r.on(c,t,a(u)?u:{},function(e){d.call(l,l,e)})}}})},function(e,t,n){var i=n(2),r=n(5),o=n(76),a=n(22).compileGetter,s=n(0).extend,l=n(56),c=n(106),u=n(18);l.bindingHandlers.dxAction={update:function(e,t,n,c){var d=i(e),h=l.utils.unwrapObservable(t()),p=h,f={context:e};h.execute&&(p=h.execute,s(f,h));var g=new o(p,f);r.off(d,".dxActionBinding"),r.on(d,u.name+".dxActionBinding",function(t){g.execute({element:d,model:c,evaluate:function(t){var n=c;t.length>0&&"$"===t[0]&&(n=l.contextFor(e));var i=a(t);return i(n)},event:t}),f.bubbling||t.stopPropagation()})}},l.bindingHandlers.dxControlsDescendantBindings={init:function(e,t){return{controlsDescendantBindings:l.unwrap(t())}}},l.bindingHandlers.dxIcon={init:function(e,t){var n=l.utils.unwrapObservable(t())||{},i=c.getImageContainer(n);l.virtualElements.emptyNode(e),i&&l.virtualElements.prepend(e,i.get(0))},update:function(e,t){var n=l.utils.unwrapObservable(t())||{},i=c.getImageContainer(n);l.virtualElements.emptyNode(e),i&&l.virtualElements.prepend(e,i.get(0))}},l.virtualElements.allowedBindings.dxIcon=!0},function(e,t,n){var i=n(3).each,r=n(10),o=n(53),a=n(89),s=n(56),l=r.inherit({ctor:function(e,t){var n=this;n.target=e,n.validationRules=t.validationRules,n.name=t.name,n.isValid=s.observable(!0),n.validationError=s.observable(),i(this.validationRules,function(e,t){t.validator=n})},validate:function(){var e=a.validate(this.target(),this.validationRules,this.name);return this._applyValidationResult(e),e},reset:function(){this.target(null);var e={isValid:!0,brokenRule:null};return this._applyValidationResult(e),e},_applyValidationResult:function(e){e.validator=this,this.target.dxValidator.isValid(e.isValid),this.target.dxValidator.validationError(e.brokenRule),this.fireEvent("validated",[e])}}).include(o);s.extenders.dxValidator=function(e,t){return e.dxValidator=new l(e,t),e.subscribe(e.dxValidator.validate.bind(e.dxValidator)),e},a.registerModelForValidation=function(e){i(e,function(t,n){s.isObservable(n)&&n.dxValidator&&a.registerValidatorInGroup(e,n.dxValidator)})},a.unregisterModelForValidation=function(e){i(e,function(t,n){s.isObservable(n)&&n.dxValidator&&a.removeRegisteredValidator(e,n.dxValidator)})},a.validateModel=a.validateGroup},function(e,t,n){var i=n(56),r=n(71);r.inject({isWrapped:i.isObservable,isWritableWrapped:i.isWritableObservable,wrap:i.observable,unwrap:function(e){return i.isObservable(e)?i.utils.unwrapObservable(e):this.callBase(e)},assign:function(e,t){i.isObservable(e)?e(t):this.callBase(e,t)}})},function(e,t,n){var i=n(35),r=i.afterCleanData,o=i.strategyChanging,a=n(56),s=n(59).compare,l=a.utils.domNodeDisposal.cleanExternalData,c=function(){r(function(e){for(var t=0;t<e.length;t++)e[t].cleanedByJquery=!0;for(t=0;t<e.length;t++)e[t].cleanedByKo||a.cleanNode(e[t]),delete e[t].cleanedByKo;for(t=0;t<e.length;t++)delete e[t].cleanedByJquery}),a.utils.domNodeDisposal.cleanExternalData=function(e){e.cleanedByKo=!0,e.cleanedByJquery||i.cleanData([e])}},u=function(){r(function(){}),a.utils.domNodeDisposal.cleanExternalData=l};c(),o.add(function(e){var t=!!e.fn;t&&s(e.fn.jquery,[2,0])<0&&u()})},function(e,t,n){var i=n(56),r=n(59).compare,o=n(35).strategyChanging,a=function(e){var t=function(e,t){var n=function(){i.cleanNode(this)};t?e.each(n):e.find("*").each(n)},n=e.fn.empty;e.fn.empty=function(){return t(this,!1),n.apply(this,arguments)};var r=e.fn.remove;e.fn.remove=function(e,n){if(!n){var i=this;e&&(i=i.filter(e)),t(i,!0)}return r.call(this,e,n)};var o=e.fn.html;e.fn.html=function(e){return"string"==typeof e&&t(this,!1),o.apply(this,arguments)};var a=e.fn.replaceWith;e.fn.replaceWith=function(){var e=a.apply(this,arguments);return this.parent().length||t(this,!0),e}};o.add(function(e){var t=!!e.fn;t&&r(e.fn.jquery,[2,0])<0&&a(e)})},function(e,t,n){var i=n(26),r=n(214),o=n(74)();o&&r.set(i)},function(e,t,n){var i=n(26),r=n(74)(),o=n(59).compare,a=n(3).each,s=n(1).isNumeric,l=n(9).setEventFixMethod,c=n(61),u=n(215);if(r)if(o(i.fn.jquery,[3])<0){var d={2:"touch",3:"pen",4:"mouse"};a(["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerCancel","MSPointerOver","MSPointerOut","mouseenter","mouseleave","pointerdown","pointermove","pointerup","pointercancel","pointerover","pointerout","pointerenter","pointerleave"],function(){i.event.fixHooks[this]={filter:function(e,t){var n=t.pointerType;return s(n)&&(e.pointerType=d[n]),e},props:i.event.mouseHooks.props.concat(["pointerId","pointerType","originalTarget","width","height","pressure","result","tiltX","charCode","tiltY","detail","isPrimary","prevValue"])}}),a(["touchstart","touchmove","touchend","touchcancel"],function(){i.event.fixHooks[this]={filter:function(e,t){return u(function(n,i){e[n]=i(t)}),e},props:i.event.mouseHooks.props.concat(["touches","changedTouches","targetTouches","detail","result","originalTarget","charCode","prevValue"])}}),i.event.fixHooks.wheel=i.event.mouseHooks;var h={props:i.event.mouseHooks.props.concat(["pointerType","pointerId","pointers"])};c.callbacks.add(function(e){i.event.fixHooks[e]=h});var p=function(e,t){for(var n=i.event.fixHooks[t.type]||i.event.mouseHooks,r=n.props?i.event.props.concat(n.props):i.event.props,o=r.length;o--;){var a=r[o];e[a]=t[a]}return n.filter?n.filter(e,t):e};l(p)}else u(function(e,t){i.event.addProp(e,t)})},function(e,t,n){var i=n(26),r=n(7),o=n(74)(),a=n(59).compare;if(o){var s=i.Deferred,l={Deferred:s};l.when=a(i.fn.jquery,[3])<0?i.when:function(e){return 0===arguments.length?(new s).resolve():1===arguments.length?e&&e.then?e:(new s).resolve(e):i.when.apply(i,arguments)},r.setStrategy(l)}},function(e,t,n){var i=n(26),r=n(230),o=n(51).add;if(i&&!r.fired()){var a=i.holdReady||i.fn.holdReady;a(!0),r.add(function(){o(function(){a(!1)})})}},function(e,t,n){var i=n(26),r=n(5),o=n(74)(),a=n(107),s=n(12);o&&(a.add(function(e,t){i.event.special[e]=t}),r.forcePassiveFalseEventNames.forEach(function(e){i.event.special[e]={setup:function(t,n,i){s.listen(this,e,i,{passive:!1})}}}),r.set({on:function(e){i(e).on.apply(i(e),Array.prototype.slice.call(arguments,1))},one:function(e){i(e).one.apply(i(e),Array.prototype.slice.call(arguments,1))},off:function(e){i(e).off.apply(i(e),Array.prototype.slice.call(arguments,1))},trigger:function(e){i(e).trigger.apply(i(e),Array.prototype.slice.call(arguments,1))},triggerHandler:function(e){i(e).triggerHandler.apply(i(e),Array.prototype.slice.call(arguments,1))},Event:i.Event}))},function(e,t,n){var i=n(26),r=n(224);i&&r.setEasing(i.easing)},function(e,t,n){var i=n(26),r=n(35),o=n(74)();o&&r.setDataStrategy(i)},function(e,t,n){var i=n(13).setPublicElementWrapper,r=n(74)(),o=function(e){return e};r&&i(o)},function(e,t,n){var i=n(26),r=n(138),o=n(17);if(i){var a=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(a)}},function(e,t,n){var i=n(26),r=n(72),o=n(74)();o&&r.inject({sendRequest:function(e){return e.responseType||e.upload?this.callBase.apply(this,[e]):i.ajax(e)}})},function(e,t,n){var i=n(238);i&&(n(43),n(346),n(353),n(354),n(355))},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var 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},o=n(2),a=i(o),s=n(5),l=i(s),c=n(30),u=i(c),d=n(138),h=i(d),p=n(10),f=i(p),g=n(19),_=i(g),m=n(1),v=i(m),y=n(3),b=i(y),x=n(11),S=i(x),w=n(229),C=i(w),k=n(28),T=i(k),E=n(48),A=i(E),O=n(347),I=i(O),D=n(180),M=i(D),P=n(44),L=i(P),B=n(22),R=i(B),V=n(0),F=i(V),z=n(37),N=i(z),H=n(17),G=i(H),W=b.default.each,j=S.default.inArray,U=R.default.compileSetter,Y=R.default.compileGetter,$=F.default.extendFromObject,K="dxItemAlias",X=["rendering"],q="value",Z=function(e,t){return t.$root.$$phase?e(t):t.$apply(function(){return e(t)})},Q=f.default.inherit({ctor:function(e){this._componentDisposing=(0,_.default)(),this._optionChangedCallbacks=(0,_.default)(),this._ngLocker=new C.default,this._scope=e.scope,this._$element=e.$element,this._$templates=e.$templates,this._componentClass=e.componentClass,this._parse=e.parse,this._compile=e.compile,this._itemAlias=e.itemAlias,this._transcludeFn=e.transcludeFn,this._digestCallbacks=e.dxDigestCallbacks,this._normalizeOptions(e.ngOptions),this._initComponentBindings(),this._initComponent(this._scope),e.ngOptions||this._addOptionsStringWatcher(e.ngOptionsString)},_addOptionsStringWatcher:function(e){var t=this,n=this._scope.$watch(e,function(e){e&&(n(),t._normalizeOptions(e),t._initComponentBindings(),t._component.option(t._evalOptions(t._scope)))});this._componentDisposing.add(n)},_normalizeOptions:function(e){var t=this;this._ngOptions=$({},e),e&&(!e.hasOwnProperty("bindingOptions")&&e.bindingOptions&&(this._ngOptions.bindingOptions=e.bindingOptions),e.bindingOptions&&W(e.bindingOptions,function(e,n){"string"===v.default.type(n)&&(t._ngOptions.bindingOptions[e]={dataPath:n})}))},_initComponent:function(e){this._component=new this._componentClass(this._$element,this._evalOptions(e)),this._component._isHidden=!0,this._handleDigestPhase()},_handleDigestPhase:function(){var e=this,t=function(){e._component.beginUpdate()},n=function(){e._component.endUpdate()};this._digestCallbacks.begin.add(t),this._digestCallbacks.end.add(n),this._componentDisposing.add(function(){e._digestCallbacks.begin.remove(t),e._digestCallbacks.end.remove(n)})},_initComponentBindings:function(){var e=this,t={};this._ngOptions.bindingOptions&&(W(this._ngOptions.bindingOptions,function(n,i){var r=n.search(/\[|\./),o=r>-1?n.substring(0,r):n,a=void 0,s=void 0,l=i.dataPath,c=!0,u=!1;void 0!==i.deep&&(u=c=!!i.deep),t[o]||(t[o]={}),t[o][n]=l;var d=function(t,i){e._ngLocker.locked(n)||(e._ngLocker.obtain(n),e._component.option(n,t),h(),e._component._optionValuesEqual(n,i,t)&&e._ngLocker.locked(n)&&e._ngLocker.release(n))},h=function(){var t=Array.isArray(e._scope.$eval(l))&&!u?"$watchCollection":"$watch";a!==t&&(s&&s(),s=e._scope[t](l,d,c),a=t)};h(),e._componentDisposing.add(s)}),this._optionChangedCallbacks.add(function(n){var i=n.name,r=n.fullName,o=n.component;if(e._ngLocker.locked(r))return void e._ngLocker.release(r);if(t&&t[i]){var a=e._scope.$root.$$phase,s=function(){e._ngLocker.obtain(r)};a?e._digestCallbacks.begin.add(s):s(),Z(function(){W(t[i],function(t,i){if(e._optionsAreLinked(r,t)){var a=o.option(t);e._parse(i).assign(e._scope,a);var s=e._parse(i)(e._scope);s!==a&&n.component.option(t,s)}})},e._scope);var l=function t(){e._ngLocker.locked(r)&&e._ngLocker.release(r),e._digestCallbacks.begin.remove(s),e._digestCallbacks.end.remove(t)};a?e._digestCallbacks.end.addPrioritized(l):l()}}))},_optionsAreNested:function(e,t){var n=e[t.length];return 0===e.indexOf(t)&&("."===n||"["===n)},_optionsAreLinked:function(e,t){return e===t||(e.length>t.length?this._optionsAreNested(e,t):this._optionsAreNested(t,e))},_compilerByTemplate:function(e){var t=this,n=this._getScopeItemsPath();return function(i){var r=(0,a.default)(e).clone(),o=i.model&&i.model.constructor===t._scope.$root.constructor,s=o?i.model:i.noModel?t._scope:t._createScopeWithData(i);n&&t._synchronizeScopes(s,n,i.index),r.appendTo(i.container),i.noModel||l.default.on(r,"$destroy",function(){
32
32
  var e=!s.$parent;e||s.$destroy()});var c=t._compile(r,t._transcludeFn);return t._applyAsync(function(e){c(e,null,{parentBoundTranscludeFn:t._transcludeFn})},s),r}},_applyAsync:function(e,t){var n=this;e(t),t.$root.$$phase||(this._renderingTimer||(this._renderingTimer=setTimeout(function(){t.$apply(),n._renderingTimer=null})),this._componentDisposing.add(function(){clearTimeout(n._renderingTimer)}))},_getScopeItemsPath:function(){if(this._componentClass.subclassOf(L.default)&&this._ngOptions.bindingOptions&&this._ngOptions.bindingOptions.items)return this._ngOptions.bindingOptions.items.dataPath},_createScopeWithData:function(e){var t=this._scope.$new();return this._itemAlias&&(t[this._itemAlias]=e.model),v.default.isDefined(e.index)&&(t.$index=e.index),t},_synchronizeScopes:function(e,t,n){this._itemAlias&&"object"!==r(e[this._itemAlias])&&this._synchronizeScopeField({parentScope:this._scope,childScope:e,fieldPath:this._itemAlias,parentPrefix:t,itemIndex:n})},_synchronizeScopeField:function(e){var t=e.parentScope,n=e.childScope,i=e.fieldPath,r=e.parentPrefix,o=e.itemIndex,a=i===this._itemAlias?"":"."+i,s=void 0!==o,l=[r],c=void 0;if(s){if(!v.default.isNumeric(o))return;l.push("[",o,"]")}l.push(a),c=l.join("");var u=t.$watch(c,function(e,t){e!==t&&U(i)(n,e)}),d=n.$watch(i,function(e,n){if(e!==n){if(s&&!Y(r)(t)[o])return void d();U(c)(t,e)}});this._componentDisposing.add([u,d])},_evalOptions:function(e){var t=this,n=$({},this._ngOptions);return delete n.bindingOptions,this._ngOptions.bindingOptions&&W(this._ngOptions.bindingOptions,function(t,i){n[t]=e.$eval(i.dataPath)}),n._optionChangedCallbacks=this._optionChangedCallbacks,n._disposingCallbacks=this._componentDisposing,n.onActionCreated=function(t,n,i){if(i&&j(i.category,X)>-1)return n;var r=function(){var t=this,i=arguments;return e&&e.$root&&!e.$root.$$phase?Z(function(){return n.apply(t,i)},e):n.apply(this,i)};return r},n.beforeActionExecute=n.onActionCreated,n.nestedComponentOptions=function(e){return{templatesRenderAsynchronously:e.option("templatesRenderAsynchronously"),forceApplyBindings:e.option("forceApplyBindings"),modelByElement:e.option("modelByElement"),onActionCreated:e.option("onActionCreated"),beforeActionExecute:e.option("beforeActionExecute"),nestedComponentOptions:e.option("nestedComponentOptions")}},n.templatesRenderAsynchronously=!0,(0,u.default)().wrapActionsBeforeExecute&&(n.forceApplyBindings=function(){Z(function(){},e)}),n.integrationOptions={createTemplate:function(e){return new I.default(e,t._compilerByTemplate.bind(t))},watchMethod:function(n,i,r){r=r||{};var o=void 0,a=r.skipImmediate,s=e.$watch(function(){var e=n();return e instanceof Date&&(e=e.valueOf()),e},function(e){var t=o===e;!a&&(!t||t&&r.deep)&&i(e),a=!1},r.deep);return a||(o=n(),i(o)),(0,u.default)().wrapActionsBeforeExecute&&t._applyAsync(function(){},e),s},templates:{"dx-polymorph-widget":{render:function(e){var n=e.model.widget;if(n){if("button"===n||"tabs"===n||"dropDownMenu"===n){var i=n;n=N.default.camelize("dx-"+n),G.default.log("W0001","dxToolbar - 'widget' item field",i,"16.1","Use: '"+n+"' instead")}var r=(0,a.default)("<div>").attr(N.default.dasherize(n),"options").get(0),o=t._scope.$new();o.options=e.model.options,e.container.append(r),t._compile(r)(o)}}}}},n.modelByElement=function(){return e},n}});Q=Q.inherit({ctor:function(e){this._componentName=e.componentName,this._ngModel=e.ngModel,this._ngModelController=e.ngModelController,this.callBase.apply(this,arguments)},_isNgModelRequired:function(){return this._componentClass.subclassOf(A.default)&&this._ngModel},_initComponentBindings:function(){this.callBase.apply(this,arguments),this._initNgModelBinding()},_initNgModelBinding:function(){var e=this;if(this._isNgModelRequired()){var t=this._scope.$watch(this._ngModel,function(t,n){e._ngLocker.locked(q)||t!==n&&e._component.option(q,t)});this._optionChangedCallbacks.add(function(t){e._ngLocker.obtain(q);try{if(t.name!==q)return;e._ngModelController.$setViewValue(t.value)}finally{e._ngLocker.locked(q)&&e._ngLocker.release(q)}}),this._componentDisposing.add(t)}},_evalOptions:function(){if(!this._isNgModelRequired())return this.callBase.apply(this,arguments);var e=this.callBase.apply(this,arguments);return e[q]=this._parse(this._ngModel)(this._scope),e}});var J={},ee=function(e){var t="dxValidator"!==e?1:10;M.default.directive(e,["$compile","$parse","dxDigestCallbacks",function(n,i,r){return{restrict:"A",require:"^?ngModel",priority:t,compile:function(t){var o=J[e],a=o.subclassOf(T.default)?t.contents().detach():null;return function(t,s,l,c,u){s.append(a),Z(function(){new Q({componentClass:o,componentName:e,compile:n,parse:i,$element:s,scope:t,ngOptionsString:l[e],ngOptions:l[e]?t.$eval(l[e]):{},ngModel:l.ngModel,ngModelController:c,transcludeFn:u,itemAlias:l[K],dxDigestCallbacks:r})},t)}}}}])};h.default.add(function(e,t){J[e]||ee(e),J[e]=t})},function(e,t,n){var i=n(2),r=n(66),o=n(1).isFunction,a=n(13),s=r.inherit({ctor:function(e,t){this._element=e,this._compiledTemplate=t(a.normalizeTemplateElement(this._element))},_renderCore:function(e){var t=this._compiledTemplate;return o(t)?t(e):t},source:function(){return i(this._element).clone()}});e.exports=s},function(e,t,n){var i=n(2),r=n(5),o=n(4),a=n(13).getPublicElement,s=n(12),l=n(1).isPlainObject,c=n(7).when,u=n(0).extend,d=n(11).inArray,h=n(3),p=n(76),f=n(50),g=n(13),_=n(22),m=n(28),v=n(9),y=n(25),b=n(112),x=n(123),S=n(57),w=n(15),C=n(90),k=n(18),T=n(159),E=n(67),A="dx-collection",O="dx-item",I="-content",D="dx-item-content-placeholder",M="dxItemData",P="dxItemIndex",L="tmpl-",B="[data-options*='dxItem']",R="dx-item-selected",V="dx-item-response-wait",F="dx-empty-collection",z="dx-template-wrapper",N=/^([^.]+\[\d+\]\.)+([\w.]+)$/,H="up",G="down",W="left",j="right",U="pageup",Y="pagedown",$="last",K="first",X=m.inherit({_activeStateUnit:"."+O,_supportedKeys:function(){var e=function(e){var t=i(this.option("focusedElement"));t.length&&(e.target=t,e.currentTarget=t,this._itemClickHandler(e))},t=function(t){t.preventDefault(),e.call(this,t)},n=function(e,t){t.preventDefault(),t.stopPropagation(),this._moveFocus(e,t)};return u(this.callBase(),{space:t,enter:e,leftArrow:n.bind(this,W),rightArrow:n.bind(this,j),upArrow:n.bind(this,H),downArrow:n.bind(this,G),pageUp:n.bind(this,H),pageDown:n.bind(this,G),home:n.bind(this,K),end:n.bind(this,$)})},_getDefaultOptions:function(){return u(this.callBase(),{selectOnFocus:!1,loopItemFocus:!0,items:[],itemTemplate:"item",onItemRendered:null,onItemClick:null,onItemHold:null,itemHoldTimeout:750,onItemContextMenu:null,onFocusedItemChanged:null,noDataText:w.format("dxCollectionWidget-noDataText"),dataSource:null,_itemAttributes:{},itemTemplateProperty:"template",focusOnSelectedItem:!0,focusedElement:null,disabledExpr:function(e){return e?e.disabled:void 0},visibleExpr:function(e){return e?e.visible:void 0}})},_getAnonymousTemplateName:function(){return"item"},_init:function(){this.callBase(),this._cleanRenderedItems(),this._refreshDataSource()},_initTemplates:function(){this._initItemsFromMarkup(),this.callBase(),this._defaultTemplates.item=new E(function(e,t){l(t)?this._prepareDefaultItemTemplate(t,e):e.text(String(t))}.bind(this),["text","html"],this.option("integrationOptions.watchMethod"))},_prepareDefaultItemTemplate:function(e,t){e.text&&t.text(e.text),e.html&&t.html(e.html)},_initItemsFromMarkup:function(){var e=this,t=this.$element().contents().filter(B);if(t.length&&!this.option("items").length){var n=[].slice.call(t).map(function(t){var n=i(t),r=g.getElementOptions(t).dxItem,o=n.html().trim()&&!r.template;return o?r.template=e._prepareItemTemplate(n):n.remove(),r});this.option("items",n)}},_prepareItemTemplate:function(e){var t=L+new f,n='dxTemplate: { name: "'+t+'" }';return e.detach().clone().attr("data-options",n).data("options",n).appendTo(this.$element()),t},_dataSourceOptions:function(){return{paginate:!1}},_cleanRenderedItems:function(){this._renderedItemsCount=0},_focusTarget:function(){return this.$element()},_focusInHandler:function(e){if(this.callBase.apply(this,arguments),d(e.target,this._focusTarget())!==-1){var t=i(this.option("focusedElement"));if(t.length)this._setFocusedItem(t);else{var n=this._getActiveItem();n.length&&this.option("focusedElement",a(n))}}},_focusOutHandler:function(){this.callBase.apply(this,arguments);var e=i(this.option("focusedElement"));e.length&&this._toggleFocusClass(!1,e)},_getActiveItem:function(e){var t=i(this.option("focusedElement"));if(t.length)return t;var n=this.option("focusOnSelectedItem")?this.option("selectedIndex"):0,r=this._getActiveElement(),o=r.length-1;return n<0&&(n=e?o:0),r.eq(n)},_renderFocusTarget:function(){this.callBase.apply(this,arguments),this._refreshActiveDescendant()},_moveFocus:function(e){var t,n=this._getAvailableItems();switch(e){case U:case H:t=this._prevItem(n);break;case Y:case G:t=this._nextItem(n);break;case j:t=this.option("rtlEnabled")?this._prevItem(n):this._nextItem(n);break;case W:t=this.option("rtlEnabled")?this._nextItem(n):this._prevItem(n);break;case K:t=n.first();break;case $:t=n.last();break;default:return!1}0!==t.length&&this.option("focusedElement",a(t))},_getVisibleItems:function(e){return e=e||this._itemElements(),e.filter(":visible")},_getAvailableItems:function(e){return this._getVisibleItems(e).not(".dx-state-disabled")},_prevItem:function(e){var t=this._getActiveItem(),n=e.index(t),r=e.last(),o=i(e[n-1]),a=this.option("loopItemFocus");return 0===o.length&&a&&(o=r),o},_nextItem:function(e){var t=this._getActiveItem(!0),n=e.index(t),r=e.first(),o=i(e[n+1]),a=this.option("loopItemFocus");return 0===o.length&&a&&(o=r),o},_selectFocusedItem:function(e){this.selectItem(e)},_removeFocusedItem:function(e){var t=i(e);t.length&&(this._toggleFocusClass(!1,t),t.removeAttr("id"))},_refreshActiveDescendant:function(){this.setAria("activedescendant",""),this.setAria("activedescendant",this.getFocusedItemId())},_setFocusedItem:function(e){e&&e.length&&(e.attr("id",this.getFocusedItemId()),this._toggleFocusClass(!0,e),this.onFocusedItemChanged(this.getFocusedItemId()),this._refreshActiveDescendant(),this.option("selectOnFocus")&&this._selectFocusedItem(e))},_findItemElementByItem:function(e){var t=i(),n=this;return this.itemElements().each(function(){var r=i(this);if(r.data(n._itemDataKey())===e)return t=r,!1}),t},_getIndexByItem:function(e){return this.option("items").indexOf(e)},_itemOptionChanged:function(e,t,n,i){var r=this._findItemElementByItem(e);r.length&&(this.constructor.ItemClass.getInstance(r).setDataField(t,n)||this._refreshItem(r,e))},_refreshItem:function(e){var t=this._getItemData(e),n=e.data(this._itemIndexKey());this._renderItem(this._renderedItemsCount+n,t,null,e)},_optionChanged:function(e){if("items"===e.name){var t=e.fullName.match(N);if(t&&t.length){var n=t[t.length-1],r=e.fullName.replace("."+n,""),o=this.option(r);return void this._itemOptionChanged(o,n,e.value,e.previousValue)}}switch(e.name){case"items":case"_itemAttributes":case"itemTemplateProperty":this._cleanRenderedItems(),this._invalidate();break;case"dataSource":this.option("items",[]),this._refreshDataSource(),this._renderEmptyMessage();break;case"noDataText":this._renderEmptyMessage();break;case"itemTemplate":this._invalidate();break;case"onItemRendered":this._createItemRenderAction();break;case"onItemClick":break;case"onItemHold":case"itemHoldTimeout":this._attachHoldEvent();break;case"onItemContextMenu":this._attachContextMenuEvent();break;case"onFocusedItemChanged":this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged");break;case"selectOnFocus":case"loopItemFocus":case"focusOnSelectedItem":break;case"focusedElement":this._removeFocusedItem(e.previousValue),this._setFocusedItem(i(e.value));break;case"visibleExpr":case"disabledExpr":this._invalidate();break;default:this.callBase(e)}},_loadNextPage:function(){var e=this._dataSource;return this._expectNextPageLoading(),e.pageIndex(1+e.pageIndex()),e.load()},_expectNextPageLoading:function(){this._startIndexForAppendedItems=0},_expectLastItemLoading:function(){this._startIndexForAppendedItems=-1},_forgetNextPageLoading:function(){this._startIndexForAppendedItems=null},_dataSourceChangedHandler:function(e){var t=this.option("items");this._initialized&&t&&this._shouldAppendItems()?(this._renderedItemsCount=t.length,this._isLastPage()&&this._startIndexForAppendedItems===-1||(this.option().items=t.concat(e.slice(this._startIndexForAppendedItems))),this._forgetNextPageLoading(),this._refreshContent(),this._renderFocusTarget()):this.option("items",e)},_refreshContent:function(){this._prepareContent(),this._renderContent()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this.option("items",this.option("items"))},_shouldAppendItems:function(){return null!=this._startIndexForAppendedItems&&this._allowDynamicItemsAppend()},_allowDynamicItemsAppend:function(){return!1},_clean:function(){this._cleanFocusState(),this._cleanItemContainer()},_cleanItemContainer:function(){i(this._itemContainer()).empty()},_dispose:function(){this.callBase(),clearTimeout(this._itemFocusTimeout)},_refresh:function(){this._cleanRenderedItems(),this.callBase.apply(this,arguments)},_itemContainer:function(){return this.$element()},_itemClass:function(){return O},_itemContentClass:function(){return this._itemClass()+I},_selectedItemClass:function(){return R},_itemResponseWaitClass:function(){return V},_itemSelector:function(){return"."+this._itemClass()},_itemDataKey:function(){return M},_itemIndexKey:function(){return P},_itemElements:function(){return this._itemContainer().find(this._itemSelector())},_initMarkup:function(){this.callBase(),this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged"),this.$element().addClass(A),this._prepareContent()},_prepareContent:o.deferRenderer(function(){this._renderContentImpl()}),_renderContent:function(){this._fireContentReadyAction()},_render:function(){this.callBase(),this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent()},_attachClickEvent:function(){var e=this._itemSelector(),t=v.addNamespace(k.name,this.NAME),n=v.addNamespace(y.down,this.NAME),o=this,a=new p(function(e){var t=e.event;o._itemPointerDownHandler(t)});r.off(this._itemContainer(),t,e),r.off(this._itemContainer(),n,e),r.on(this._itemContainer(),t,e,function(e){this._itemClickHandler(e)}.bind(this)),r.on(this._itemContainer(),n,e,function(e){a.execute({element:i(e.target),event:e})})},_itemClickHandler:function(e,t,n){this._itemDXEventHandler(e,"onItemClick",t,n)},_itemPointerDownHandler:function(e){this.option("focusStateEnabled")&&(this._itemFocusHandler=function(){if(clearTimeout(this._itemFocusTimeout),this._itemFocusHandler=null,!e.isDefaultPrevented()){var t=i(e.target),n=t.closest(this._itemElements()),r=this._closestFocusable(t);n.length&&r&&d(r.get(0),this._focusTarget())!==-1&&this.option("focusedElement",a(n))}}.bind(this),this._itemFocusTimeout=setTimeout(this._forcePointerDownFocus.bind(this)))},_closestFocusable:function(e){if(e.is(S.focusable))return e;for(e=e.parent();e.length&&!s.isDocument(e.get(0));){if(e.is(S.focusable))return e;e=e.parent()}},_forcePointerDownFocus:function(){this._itemFocusHandler&&this._itemFocusHandler()},_updateFocusState:function(){this.callBase.apply(this,arguments),this._forcePointerDownFocus()},_attachHoldEvent:function(){var e=this._itemContainer(),t=this._itemSelector(),n=v.addNamespace(C.name,this.NAME);r.off(e,n,t),r.on(e,n,t,{timeout:this._getHoldTimeout()},this._itemHoldHandler.bind(this))},_getHoldTimeout:function(){return this.option("itemHoldTimeout")},_shouldFireHoldEvent:function(){return this.hasActionSubscription("onItemHold")},_itemHoldHandler:function(e){this._shouldFireHoldEvent()?this._itemDXEventHandler(e,"onItemHold"):e.cancel=!0},_attachContextMenuEvent:function(){var e=this._itemContainer(),t=this._itemSelector(),n=v.addNamespace(T.name,this.NAME);r.off(e,n,t),r.on(e,n,t,this._itemContextMenuHandler.bind(this))},_shouldFireContextMenuEvent:function(){return this.hasActionSubscription("onItemContextMenu")},_itemContextMenuHandler:function(e){this._shouldFireContextMenuEvent()?this._itemDXEventHandler(e,"onItemContextMenu"):e.cancel=!0},_renderContentImpl:function(){var e=this.option("items")||[];this._renderedItemsCount?this._renderItems(e.slice(this._renderedItemsCount)):this._renderItems(e)},_renderItems:function(e){e.length&&h.each(e,function(e,t){this._renderItem(this._renderedItemsCount+e,t)}.bind(this)),this._renderEmptyMessage()},_renderItem:function(e,t,n,i){n=n||this._itemContainer();var r=this._renderItemFrame(e,t,n,i);this._setElementData(r,t,e),r.attr(this.option("_itemAttributes")),this._attachItemClickEvent(t,r);var o=this._getItemContent(r),s=this._renderItemContent({index:e,itemData:t,container:a(o),contentClass:this._itemContentClass(),defaultTemplateName:this.option("itemTemplate")}),l=this;return c(s).done(function(n){l._postprocessRenderItem({itemElement:r,itemContent:n,itemData:t,itemIndex:e}),l._executeItemRenderAction(e,t,a(r))}),r},_getItemContent:function(e){var t=e.find("."+D);return t.removeClass(D),t},_attachItemClickEvent:function(e,t){e&&e.onClick&&r.on(t,k.name,function(n){this._itemEventHandlerByHandler(t,e.onClick,{event:n})}.bind(this))},_renderItemContent:function(e){var t=this._getItemTemplateName(e),n=this._getTemplate(t);this._addItemContentClasses(e);var r=i(this._createItemByTemplate(n,e));return r.hasClass(z)?this._renderItemContentByNode(e,r):e.container},_renderItemContentByNode:function(e,t){return i(e.container).replaceWith(t),e.container=a(t),this._addItemContentClasses(e),t},_addItemContentClasses:function(e){var t=[O+I,e.contentClass];i(e.container).addClass(t.join(" "))},_renderItemFrame:function(e,t,n,r){var o=i("<div>");return new this.constructor.ItemClass(o,this._itemOptions(),t||{}),r&&r.length?r.replaceWith(o):o.appendTo(n),o},_itemOptions:function(){var e=this;return{watchMethod:function(){return e.option("integrationOptions.watchMethod")},fieldGetter:function(t){var n=e.option(t+"Expr"),i=_.compileGetter(n);return i}}},_postprocessRenderItem:o.noop,_executeItemRenderAction:function(e,t,n){this._getItemRenderAction()({itemElement:n,itemIndex:e,itemData:t})},_setElementData:function(e,t,n){e.addClass([O,this._itemClass()].join(" ")).data(this._itemDataKey(),t).data(this._itemIndexKey(),n)},_createItemRenderAction:function(){return this._itemRenderAction=this._createActionByOption("onItemRendered",{element:this.element(),excludeValidators:["designMode","disabled","readOnly"],category:"rendering"})},_getItemRenderAction:function(){return this._itemRenderAction||this._createItemRenderAction()},_getItemTemplateName:function(e){var t=e.itemData,n=e.templateProperty||this.option("itemTemplateProperty"),i=t&&t[n];return i||e.defaultTemplateName},_createItemByTemplate:function(e,t){return e.render({model:t.itemData,container:t.container,index:t.index})},_emptyMessageContainer:function(){return this._itemContainer()},_renderEmptyMessage:function(e){e=e||this.option("items");var t=this.option("noDataText"),n=!t||e&&e.length||this._isDataSourceLoading();n&&this._$noData&&(this._$noData.remove(),this._$noData=null,this.setAria("label",void 0)),n||(this._$noData=this._$noData||i("<div>").addClass("dx-empty-message"),this._$noData.appendTo(this._emptyMessageContainer()).html(t),this.setAria("label",t)),this.$element().toggleClass(F,!n)},_itemDXEventHandler:function(e,t,n,i){this._itemEventHandler(e.target,t,u(n,{event:e}),i)},_itemEventHandler:function(e,t,n,i){var r=this._createActionByOption(t,u({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(e,r,n)},_itemEventHandlerByHandler:function(e,t,n,i){var r=this._createAction(t,u({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(e,r,n)},_itemEventHandlerImpl:function(e,t,n){var r=this._closestItemElement(i(e)),o=u({},n);return t(u(n,this._extendActionArgs(r),o))},_extendActionArgs:function(e){return{itemElement:a(e),itemIndex:this._itemElements().index(e),itemData:this._getItemData(e)}},_closestItemElement:function(e){return i(e).closest(this._itemSelector())},_getItemData:function(e){return i(e).data(this._itemDataKey())},_getSummaryItemsWidth:function(e,t){var n=0;return e&&h.each(e,function(e,r){n+=i(r).outerWidth(t||!1)}),n},getFocusedItemId:function(){return this._focusedItemId||(this._focusedItemId="dx-"+new f),this._focusedItemId},itemElements:function(){return this._itemElements()},itemsContainer:function(){return this._itemContainer()}}).include(b);X.ItemClass=x,e.exports=X},function(e,t,n){var i=n(181),r=n(36),o=n(3).each,a=n(1).isFunction,s=n(7).Deferred,l=n(144),c=function e(t,n,c){c=c||[],n=n||{};var u=function(e,t){return{name:e,args:t}},d=function(e){function d(e){switch(e.name){case"sortBy":return m=[e.args],!0;case"thenBy":if(!m)throw r.errors.Error("E4004");return m.push(e.args),!0}return!1}function h(){var e=g[0],t=[];e&&"multiSort"===e.name&&(g.shift(),o(e.args[0],function(){t.push(u(t.length?"thenBy":"sortBy",this))})),g=t.concat(g)}var p,f,g,_,m,v=new s,y=function(e){var t=n.errorHandler;t&&t(e),r._errorHandler(e),v.reject(e)};try{p=n.adapter,a(p)||(p=i[p]),f=p(n),g=[].concat(c).concat(e);var b=f.optimize;for(b&&b(g);g.length;){if(_=g[0],!d(_)){if(m){g.unshift(u("multiSort",[m])),m=null;continue}if("enumerate"!==String(_.name)&&(!f[_.name]||f[_.name].apply(f,_.args)===!1))break}g.shift()}h(),f.exec(t).done(function(e,t){if(g.length){var i=l(e,{errorHandler:n.errorHandler});o(g,function(){i=i[this.name].apply(i,this.args)}),i.done(v.resolve).fail(v.reject)}else v.resolve(e,t)}).fail(y)}catch(e){y(e)}return v.promise()},h={};return o(["sortBy","thenBy","filter","slice","select","groupBy"],function(){var i=String(this);h[i]=function(){return e(t,n,c.concat(u(i,arguments)))}}),o(["count","min","max","sum","avg","aggregate","enumerate"],function(){var e=String(this);h[e]=function(){return d.call(this,u(e,arguments))}}),h};e.exports=c},function(e,t,n){var i=n(2),r=n(10),o=n(4),a=r.abstract,s=r.inherit({ctor:function(e){this._collectionWidget=e},getIndexByItemData:a,getItemDataByIndex:a,getKeysByItems:a,getItemsByKeys:a,itemsGetter:a,getKeyByIndex:function(e){var t=this._denormalizeItemIndex(e);return this.getKeysByItems([this.getItemDataByIndex(t)])[0]},_equalKeys:function(e,t){return this._collectionWidget._isKeySpecified()?o.equalByValue(e,t):e===t},beginCache:function(){this._cache={}},endCache:function(){this._cache=null},getIndexByKey:a,getNormalizedIndex:function(e){return this._isNormalizedItemIndex(e)?e:this._isItemIndex(e)?this._normalizeItemIndex(e):this._isDOMNode(e)?this._getNormalizedItemIndex(e):this._normalizeItemIndex(this.getIndexByItemData(e))},getIndex:function(e){return this._isNormalizedItemIndex(e)?this._denormalizeItemIndex(e):this._isItemIndex(e)?e:this._isDOMNode(e)?this._denormalizeItemIndex(this._getNormalizedItemIndex(e)):this.getIndexByItemData(e)},getItemElement:function(e){if(this._isNormalizedItemIndex(e))return this._getItemByNormalizedIndex(e);if(this._isItemIndex(e))return this._getItemByNormalizedIndex(this._normalizeItemIndex(e));if(this._isDOMNode(e))return i(e);var t=this._normalizeItemIndex(this.getIndexByItemData(e));return this._getItemByNormalizedIndex(t)},deleteItemAtIndex:a,itemPlacementFunc:function(e,t){return this._itemsFromSameParent(e,t)&&e<t?"after":"before"},moveItemAtIndexToIndex:a,_isNormalizedItemIndex:function(e){return"number"==typeof e&&Math.round(e)===e},_isDOMNode:function(e){var t;try{t=i(e)}catch(e){return!1}return t&&t.length&&t.get(0).nodeType},_isItemIndex:a,_getNormalizedItemIndex:a,_normalizeItemIndex:a,_denormalizeItemIndex:a,_getItemByNormalizedIndex:a,_itemsFromSameParent:a});e.exports=s},function(e,t,n){var i=n(1),r=n(239),o=n(21),a=n(42),s=n(7).Deferred;e.exports=r.inherit({getSelectedItems:function(){return this._loadFilteredData(this.options.selectionFilter)},getSelectedItemKeys:function(){var e=new s,t=this,n=this.options.key(),r=i.isString(n)?[n]:n;return this._loadFilteredData(this.options.selectionFilter,null,r).done(function(n){var i=n.map(function(e){return t.options.keyOf(e)});e.resolve(i)}).fail(e.reject),e.promise()},selectedItemKeys:function(e,t,n,i){if(i){var r=this.options.filter();r?this._addSelectionFilter(n,r,!1):this._setOption("selectionFilter",n?[]:null)}else{t||this._setOption("selectionFilter",[]);for(var o=0;o<e.length;o++)n?this.removeSelectedItem(e[o]):this.addSelectedItem(e[o])}return this.onSelectionChanged(),(new s).resolve()},setSelectedItems:function(e){this._setOption("selectionFilter",null);for(var t=0;t<e.length;t++)this.addSelectedItem(e[t])},isItemDataSelected:function(e){return this.isItemKeySelected(e)},isItemKeySelected:function(e){var t=this.options.selectionFilter;return!t||!!a([e]).filter(t).toArray().length},_processSelectedItem:function(e){var t=this.options.key(),n=[t,"=",e];if(Array.isArray(t)){n=[];for(var i=0;i<t.length;i++)n.push([t[i],"=",e[t[i]]]),i!==t.length-1&&n.push("and")}return n},addSelectedItem:function(e){var t=this._processSelectedItem(e);this._addSelectionFilter(!1,t,!0)},removeSelectedItem:function(e){var t=this._processSelectedItem(e);this._addSelectionFilter(!0,t,!0)},validate:function(){var e=this.options.key;if(e&&void 0===e())throw o.Error("E1042")},_findSubFilter:function(e,t){if(!e)return-1;for(var n=JSON.stringify(t),i=0;i<e.length;i++){var r=e[i];if(r&&JSON.stringify(r)===n)return i}return-1},_isLastSubFilter:function(e,t){return!(!e||!t)&&(this._findSubFilter(e,t)===e.length-1||0===this._findSubFilter([e],t))},_addFilterOperator:function(e,t){return e.length>1&&i.isString(e[1])&&e[1]!==t&&(e=[e]),e.length&&e.push(t),e},_denormalizeFilter:function(e){return e&&i.isString(e[0])&&(e=[e]),e},_addSelectionFilter:function(e,t,n){var i=this,r=!0,o=e?["!",t]:t,a=e?"and":"or",s=i.options.selectionFilter||[];if(s=i._denormalizeFilter(s),s&&s.length){i._removeSameFilter(s,t,e);var l=i._removeSameFilter(s,t,!e);l&&("or"!==l&&e||"and"!==l&&!e)&&(r=!1,s=[]),r&&(s=i._addFilterOperator(s,a))}r&&s.push(o),s=i._normalizeFilter(s),i._setOption("selectionFilter",e||s.length?s:null)},_normalizeFilter:function(e){return e&&1===e.length&&(e=e[0]),e},_removeSameFilter:function(e,t,n){t=n?["!",t]:t;var i=this._findSubFilter(e,t);if(JSON.stringify(t)===JSON.stringify(e))return e.splice(0,e.length),"undefined";if(i>=0)return i>0?e.splice(i-1,2)[0]:e.splice(i,2)[1]||"undefined";for(var r=0;r<e.length;r++){var o=Array.isArray(e[r])&&e[r].length>2&&this._removeSameFilter(e[r],t);if(o)return 1===e[r].length&&(e[r]=e[r][0]),o}},getSelectAllState:function(){var e=this.options.filter(),t=this.options.selectionFilter;if(!t)return!0;if(!t.length)return!1;if(e&&e.length)return t=this._denormalizeFilter(t),!!this._isLastSubFilter(t,e)||!this._isLastSubFilter(t,["!",e])&&void 0}})},function(e,t,n){var i=n(4),r=n(1),o=i.getKeyHash,a=n(42),s=n(7),l=n(258).SelectionFilterCreator,c=s.when,u=s.Deferred,d=n(21),h=n(239);e.exports=h.inherit({ctor:function(e){this.callBase(e),this._initSelectedItemKeyHash()},_initSelectedItemKeyHash:function(){this._setOption("keyHashIndices",this.options.equalByReference?null:{})},getSelectedItemKeys:function(){return this.options.selectedItemKeys.slice(0)},getSelectedItems:function(){return this.options.selectedItems.slice(0)},_preserveSelectionUpdate:function(e,t){var n,i,r,o=this.options.keyOf;if(o){var a=t&&e.length>1&&!this.options.equalByReference;for(a&&(n={}),r=0;r<e.length;r++){var s=e[r],l=o(s);t?(i=this.removeSelectedItem(l,n),n&&i>=0&&(n[i]=!0)):this.addSelectedItem(l,s)}a&&this._batchRemoveSelectedItems(n)}},_batchRemoveSelectedItems:function(e){var t=this.options.selectedItemKeys.slice(0),n=this.options.selectedItems.slice(0);this.options.selectedItemKeys.length=0,this.options.selectedItems.length=0;for(var i=0;i<t.length;i++)e[i]||(this.options.selectedItemKeys.push(t[i]),this.options.selectedItems.push(n[i]));this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_loadSelectedItemsCore:function(e,t,n){var i=new u,r=this.options.key();if(!e.length&&!n)return i.resolve([]),i;var o=this.options.filter();if(n&&t&&!o)return i.resolve(this.getSelectedItems()),i;var s=new l(e,n),c=s.getCombinedFilter(r,o),d=[];t&&(d=c?a(this.options.selectedItems).filter(c).toArray():this.options.selectedItems.slice(0));var h=d.length?d:this.options.plainItems().filter(this.options.isSelectableItem).map(this.options.getItemData),p=s.getLocalFilter(this.options.keyOf,this.equalKeys.bind(this),this.options.equalByReference,r);return h=h.filter(p),d.length||!n&&h.length===e.length?i.resolve(h):i=this._loadFilteredData(c,p),i},_replaceSelectionUpdate:function(e){var t=[],n=this.options.keyOf;if(n){for(var i=0;i<e.length;i++){var r=e[i],o=n(r);t.push(o)}this.setSelectedItems(t,e)}},_warnOnIncorrectKeys:function(e){for(var t=0;t<e.length;t++)this.isItemKeySelected(e[t])||d.log("W1002",e[t])},_loadSelectedItems:function(e,t,n){var i=this,r=new u;return c(i._lastLoadDeferred).always(function(){i._loadSelectedItemsCore(e,t,n).done(r.resolve).fail(r.reject)}),i._lastLoadDeferred=r,r},selectedItemKeys:function(e,t,n,i){var r=this,o=r._loadSelectedItems(e,n,i);return o.done(function(e){t?r._preserveSelectionUpdate(e,n):r._replaceSelectionUpdate(e),r.onSelectionChanged()}),o},addSelectedItem:function(e,t){var n=this._getKeyHash(e);this._indexOfSelectedItemKey(n)===-1&&(!r.isObject(n)&&this.options.keyHashIndices&&(this.options.keyHashIndices[n]=[this.options.selectedItemKeys.length]),this.options.selectedItemKeys.push(e),this.options.addedItemKeys.push(e),this.options.addedItems.push(t),this.options.selectedItems.push(t))},_getSelectedIndexByKey:function(e,t){for(var n=this.options.selectedItemKeys,i=0;i<n.length;i++)if((!t||!t[i])&&this.equalKeys(n[i],e))return i;return-1},_getSelectedIndexByHash:function(e,t){var n=this.options.keyHashIndices[e];return n&&n.length>1&&t&&(n=n.filter(function(e){return!t[e]})),n&&n[0]>=0?n[0]:-1},_indexOfSelectedItemKey:function(e,t){var n;return n=this.options.equalByReference?this.options.selectedItemKeys.indexOf(e):r.isObject(e)?this._getSelectedIndexByKey(e,t):this._getSelectedIndexByHash(e,t)},_shiftSelectedKeyIndices:function(e){for(var t=e;t<this.options.selectedItemKeys.length;t++){var n=this.options.selectedItemKeys[t],i=o(n),r=this.options.keyHashIndices[i];if(r)for(var a=0;a<r.length;a++)r[a]>e&&r[a]--}},removeSelectedItem:function(e,t){var n=this._getKeyHash(e),i=!!t,o=this._indexOfSelectedItemKey(n,t);if(o<0)return o;if(this.options.removedItemKeys.push(e),this.options.removedItems.push(this.options.selectedItems[o]),i)return o;if(this.options.selectedItemKeys.splice(o,1),this.options.selectedItems.splice(o,1),r.isObject(n)||!this.options.keyHashIndices)return o;var a=this.options.keyHashIndices[n];return a?(a.shift(),a.length||delete this.options.keyHashIndices[n],this._shiftSelectedKeyIndices(o),o):o},_updateAddedItemKeys:function(e,t){for(var n=0;n<e.length;n++)this.isItemKeySelected(e[n])||(this.options.addedItemKeys.push(e[n]),this.options.addedItems.push(t[n]))},_updateRemovedItemKeys:function(e,t,n){for(var i=0;i<t.length;i++)this.isItemKeySelected(t[i])||(this.options.removedItemKeys.push(t[i]),this.options.removedItems.push(n[i]))},_getKeyHash:function(e){return this.options.equalByReference?e:o(e)},setSelectedItems:function(e,t){this._updateAddedItemKeys(e,t);var n=this.options.selectedItemKeys,i=this.options.selectedItems;this.options.equalByReference||(this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(e)),this._setOption("selectedItemKeys",e),this._setOption("selectedItems",t),this._updateRemovedItemKeys(e,n,i)},isItemDataSelected:function(e){var t=this.options.keyOf(e);return this.isItemKeySelected(t)},isItemKeySelected:function(e){var t=this._getKeyHash(e),n=this._indexOfSelectedItemKey(t);return n!==-1},getSelectAllState:function(e){return e?this._getVisibleSelectAllState():this._getFullSelectAllState()}})},function(e,t,n){var i=n(107),r=n(5),o=n(180);
33
33
  i.add(function(e){var t=e.slice(0,2)+e.charAt(2).toUpperCase()+e.slice(3);o.directive(t,["$parse",function(n){return function(i,o,a){var s,l=a[t].trim(),c={};"{"===l.charAt(0)?(c=i.$eval(l),s=n(c.execute)):s=n(a[t]),r.on(o,e,c,function(e){i.$apply(function(){s(i,{$event:e})})})}}])})},function(e,t,n){var i=n(19),r=n(180);r.service("dxDigestCallbacks",["$rootScope",function(e){var t=i(),n=i(),r=i(),o=!1;return e.$watch(function(){o||(o=!0,t.fire(),e.$$postDigest(function(){o=!1,n.fire(),r.fire()}))}),{begin:{add:function(e){o&&e(),t.add(e)},remove:t.remove.bind(t)},end:{add:r.add.bind(r),addPrioritized:n.add.bind(n),remove:r.remove.bind(r)}}}])},function(e,t,n){var i=n(76);i.registerExecutor({ngExpression:{execute:function(e){"string"==typeof e.action&&e.context.$eval(e.action)}}})},function(e,t,n){n(113);var i=n(64),r=n(15),o=n(81);if(n(64),i&&i.formatMessage){var a="en",s=i.loadMessages;i.loadMessages=function(e){r.load(e)};var l={ctor:function(){this.load(this._dictionary)},load:function(e){this.callBase(e),s(e)},getMessagesByLocales:function(){return i.cldr.get("globalize-messages")},getFormatter:function(e,t){var n=t||o.locale(),i=this._getFormatterBase(e,t);return i||(i=this._formatterByGlobalize(e,t)),i||n===a||(i=this.getFormatter(e,a)),i},_formatterByGlobalize:function(e,t){var n,r=t&&t!==o.locale()?new i(t):i;return this._messageLoaded(e,t)&&(n=r.messageFormatter(e)),n},_messageLoaded:function(e,t){var n=t?new i(t).cldr:i.locale(),r=n.get(["globalize-messages/{bundle}",e]);return!!r},_loadSingle:function(e,t,n){var i={};i[n]={},i[n][e]=t,this.load(i)}};r.inject(l)}},function(e,t,n){n(113),n(182),n(64);var i={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},timeData:{"001":{_allowed:"H h",_preferred:"H"},DE:{_allowed:"H",_preferred:"H"},JP:{_allowed:"H K h",_preferred:"H"},RU:{_allowed:"H",_preferred:"H"},US:{_allowed:"H h",_preferred:"h"}}}},r={main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},dates:{calendars:{gregorian:{months:{format:{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},narrow:{1:"J",2:"F",3:"M",4:"A",5:"M",6:"J",7:"J",8:"A",9:"S",10:"O",11:"N",12:"D"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}},"stand-alone":{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},narrow:{1:"J",2:"F",3:"M",4:"A",5:"M",6:"J",7:"J",8:"A",9:"S",10:"O",11:"N",12:"D"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}}},days:{format:{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},"short":{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}},"stand-alone":{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},"short":{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}}},quarters:{format:{abbreviated:{1:"Q1",2:"Q2",3:"Q3",4:"Q4"},narrow:{1:"1",2:"2",3:"3",4:"4"},wide:{1:"1st quarter",2:"2nd quarter",3:"3rd quarter",4:"4th quarter"}},"stand-alone":{abbreviated:{1:"Q1",2:"Q2",3:"Q3",4:"Q4"},narrow:{1:"1",2:"2",3:"3",4:"4"},wide:{1:"1st quarter",2:"2nd quarter",3:"3rd quarter",4:"4th quarter"}}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{eraNames:{0:"Before Christ","0-alt-variant":"Before Common Era",1:"Anno Domini","1-alt-variant":"Common Era"},eraAbbr:{0:"BC","0-alt-variant":"BCE",1:"AD","1-alt-variant":"CE"},eraNarrow:{0:"B","0-alt-variant":"BCE",1:"A","1-alt-variant":"CE"}},dateFormats:{full:"EEEE, MMMM d, y","long":"MMMM d, y",medium:"MMM d, y","short":"M/d/yy"},timeFormats:{full:"h:mm:ss a zzzz","long":"h:mm:ss a z",medium:"h:mm:ss a","short":"h:mm a"},dateTimeFormats:{full:"{1} 'at' {0}","long":"{1} 'at' {0}",medium:"{1}, {0}","short":"{1}, {0}",availableFormats:{d:"d",E:"ccc",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y"},appendItems:{Day:"{0} ({2}: {1})","Day-Of-Week":"{0} {1}",Era:"{0} {1}",Hour:"{0} ({2}: {1})",Minute:"{0} ({2}: {1})",Month:"{0} ({2}: {1})",Quarter:"{0} ({2}: {1})",Second:"{0} ({2}: {1})",Timezone:"{0} {1}",Week:"{0} ({2}: {1})",Year:"{0} {1}"},intervalFormats:{intervalFormatFallback:"{0} \u2013 {1}",d:{d:"d \u2013 d"},h:{a:"h a \u2013 h a",h:"h \u2013 h a"},H:{H:"HH \u2013 HH"},hm:{a:"h:mm a \u2013 h:mm a",h:"h:mm \u2013 h:mm a",m:"h:mm \u2013 h:mm a"},Hm:{H:"HH:mm \u2013 HH:mm",m:"HH:mm \u2013 HH:mm"},hmv:{a:"h:mm a \u2013 h:mm a v",h:"h:mm \u2013 h:mm a v",m:"h:mm \u2013 h:mm a v"},Hmv:{H:"HH:mm \u2013 HH:mm v",m:"HH:mm \u2013 HH:mm v"},hv:{a:"h a \u2013 h a v",h:"h \u2013 h a v"},Hv:{H:"HH \u2013 HH v"},M:{M:"M \u2013 M"},Md:{d:"M/d \u2013 M/d",M:"M/d \u2013 M/d"},MEd:{d:"E, M/d \u2013 E, M/d",M:"E, M/d \u2013 E, M/d"},MMM:{M:"MMM \u2013 MMM"},MMMd:{d:"MMM d \u2013 d",M:"MMM d \u2013 MMM d"},MMMEd:{d:"E, MMM d \u2013 E, MMM d",M:"E, MMM d \u2013 E, MMM d"},y:{y:"y \u2013 y"},yM:{M:"M/y \u2013 M/y",y:"M/y \u2013 M/y"},yMd:{d:"M/d/y \u2013 M/d/y",M:"M/d/y \u2013 M/d/y",y:"M/d/y \u2013 M/d/y"},yMEd:{d:"E, M/d/y \u2013 E, M/d/y",M:"E, M/d/y \u2013 E, M/d/y",y:"E, M/d/y \u2013 E, M/d/y"},yMMM:{M:"MMM \u2013 MMM y",y:"MMM y \u2013 MMM y"},yMMMd:{d:"MMM d \u2013 d, y",M:"MMM d \u2013 MMM d, y",y:"MMM d, y \u2013 MMM d, y"},yMMMEd:{d:"E, MMM d \u2013 E, MMM d, y",M:"E, MMM d \u2013 E, MMM d, y",y:"E, MMM d, y \u2013 E, MMM d, y"},yMMMM:{M:"MMMM \u2013 MMMM y",y:"MMMM y \u2013 MMMM y"}}}}}}}}},o={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},weekData:{minDays:{"001":"1",US:"1",DE:"4"},firstDay:{"001":"mon",DE:"mon",RU:"mon",JP:"sun",US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}},a=["skeleton","date","time","datetime","raw"],s=n(64),l=n(33),c=n(1).isObject,u=n(11).inArray,d=n(3);if(s&&s.formatDate){"en"===s.locale().locale&&(s.load(o,i,r),s.locale("en"));var h={},p={shortdate:{path:"dateTimeFormats/availableFormats/yMd"},shorttime:{path:"timeFormats/short"},longdate:{path:"dateFormats/full"},longtime:{path:"timeFormats/medium"},monthandday:{path:"dateTimeFormats/availableFormats/MMMMd"},monthandyear:{path:"dateTimeFormats/availableFormats/yMMMM"},quarterandyear:{path:"dateTimeFormats/availableFormats/yQQQ"},day:{path:"dateTimeFormats/availableFormats/d"},year:{path:"dateTimeFormats/availableFormats/y"},shortdateshorttime:{path:"dateTimeFormats/short",parts:["shorttime","shortdate"]},mediumdatemediumtime:{path:"dateTimeFormats/medium",parts:["shorttime","monthandday"]},longdatelongtime:{path:"dateTimeFormats/medium",parts:["longtime","longdate"]},month:{pattern:"LLLL"},shortyear:{pattern:"yy"},dayofweek:{pattern:"EEEE"},quarter:{pattern:"QQQ"},millisecond:{pattern:"SSS"},hour:{pattern:"HH"},minute:{pattern:"mm"},second:{pattern:"ss"}},f={_getPatternByFormat:function(e){var t=this,n=e.toLowerCase(),i=p[n];if("datetime-local"===n)return"yyyy-MM-ddTHH':'mm':'ss";if(i){var r=i.path&&t._getFormatStringByPath(i.path)||i.pattern;return i.parts&&d.each(i.parts,function(e,n){r=r.replace("{"+e+"}",t._getPatternByFormat(n))}),r}},_getFormatStringByPath:function(e){return s.locale().main("dates/calendars/gregorian/"+e)},getPeriodNames:function(){var e=s.locale().main("dates/calendars/gregorian/dayPeriods/stand-alone/wide");return[e.am,e.pm]},getMonthNames:function(e,t){var n=s.locale().main("dates/calendars/gregorian/months/"+(t||"stand-alone")+"/"+(e||"wide"));return d.map(n,function(e){return e})},getDayNames:function(e){var t=s.locale().main("dates/calendars/gregorian/days/stand-alone/"+(e||"wide"));return d.map(t,function(e){return e})},getTimeSeparator:function(){return s.locale().main("numbers/symbols-numberSystem-latn/timeSeparator")},format:function(e,t){if(e){if(!t)return e;var n,i;if("function"==typeof t)return t(e);if(t.formatter)return t.formatter(e);if(t=t.type||t,"string"==typeof t)i=s.locale().locale+":"+t,n=h[i],n||(t={raw:this._getPatternByFormat(t)||t},n=h[i]=s.dateFormatter(t));else{if(!this._isAcceptableFormat(t))return;n=s.dateFormatter(t)}return n(e)}},parse:function(e,t){if(e){if(!t||"function"==typeof t||c(t)&&!this._isAcceptableFormat(t)){if(t){var n=this.callBase(e,t);if(n)return n}return s.parseDate(e)}return t.parser?t.parser(e):("string"==typeof t&&(t={raw:this._getPatternByFormat(t)||t}),s.parseDate(e,t))}},_isAcceptableFormat:function(e){if(e.parser)return!0;for(var t=0;t<a.length;t++)if(e.hasOwnProperty(a[t]))return!0},firstDayOfWeekIndex:function(){var e=s.locale().supplemental.weekData.firstDay();return u(e,this._getDayKeys())},_getDayKeys:function(){var e=s.locale().main("dates/calendars/gregorian/days/format/short");return d.map(e,function(e,t){return t})}};l.inject(f)}},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n(113),n(182),n(137),n(64);var r={main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},numbers:{currencies:{USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}}}}}},o={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},currencyData:{fractions:{DEFAULT:{_rounding:"0",_digits:"2"}}}}},a=n(64),s=n(30),l=n(49);if(a&&a.formatCurrency){"en"===a.locale().locale&&(a.load(r,o),a.locale("en"));var c={},u=function(e,t){var n,r;return r="object"===("undefined"==typeof t?"undefined":i(t))?a.locale().locale+":"+e+":"+JSON.stringify(t):a.locale().locale+":"+e+":"+t,n=c[r],n||(n=c[r]=a.currencyFormatter(e,t)),n},d={_formatNumberCore:function(e,t,n){if("currency"===t){var i=n&&n.currency||s().defaultCurrency;return u(i,this._normalizeFormatConfig(t,n,e))(e)}return this.callBase.apply(this,arguments)},_normalizeFormatConfig:function(e,t,n){var i=this.callBase(e,t,n);return"currency"===e&&(i.style="accounting"),i},format:function(e,t){if("number"!=typeof e)return e;if(t=this._normalizeFormat(t)){if("default"===t.currency&&(t.currency=s().defaultCurrency),"currency"===t.type)return this._formatNumber(e,this._parseNumberFormatString("currency"),t);if(!t.type&&t.currency)return u(t.currency,t)(e)}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(e){return e||(e=s().defaultCurrency),a.cldr.main("numbers/currencies/"+e)},getOpenXmlCurrencyFormat:function(e){var t,n,i,r,o=this.getCurrencySymbol(e).symbol,s=a.cldr.main("numbers/currencyFormats-numberSystem-latn");if(s.accounting){for(r={".00":"{0}","'":"\\'","\\(":"\\(","\\)":"\\)"," ":"\\ ",'"':"&quot;","\\\xa4":o},n=s.accounting.split(";"),t=0;t<n.length;t++)for(i in r)r.hasOwnProperty(i)&&(n[t]=n[t].replace(new RegExp(i,"g"),r[i]));return 2===n.length?n[0]+"_);"+n[1]:n[0]}}};l.inject(d)}},function(e,t,n){var i=n(31),r=n(3),o=n(17),a=n(9),s=n(108),l=n(84),c="dx",u="transform",d="translate",h="zoom",p="pinch",f="rotate",g="start",_="",m="end",v=[],y=function(e,t){v.push({name:e,args:t})};y(u,{scale:!0,deltaScale:!0,rotation:!0,deltaRotation:!0,translation:!0,deltaTranslation:!0}),y(d,{translation:!0,deltaTranslation:!0}),y(h,{scale:!0,deltaScale:!0}),y(p,{scale:!0,deltaScale:!0}),y(f,{rotation:!0,deltaRotation:!0});var b=function(e,t){return{x:t.pageX-e.pageX,y:-t.pageY+e.pageY,centerX:.5*(t.pageX+e.pageX),centerY:.5*(t.pageY+e.pageY)}},x=function(e){var t=e.pointers;return b(t[0],t[1])},S=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},w=function(e,t){return S(e)/S(t)},C=function(e,t){var n=e.x*t.x+e.y*t.y,r=S(e)*S(t);if(0===r)return 0;var o=i.sign(e.x*t.y-t.x*e.y),a=Math.acos(i.fitIntoRange(n/r,-1,1));return o*a},k=function(e,t){return{x:e.centerX-t.centerX,y:e.centerY-t.centerY}},T=s.inherit({configure:function(e,t){t.indexOf(h)>-1&&o.log("W0005",t,"15.1","Use '"+t.replace(h,p)+"' event instead"),this.callBase(e)},validatePointers:function(e){return a.hasTouches(e)>1},start:function(e){this._accept(e);var t=x(e);this._startVector=t,this._prevVector=t,this._fireEventAliases(g,e)},move:function(e){var t=x(e),n=this._getEventArgs(t);this._fireEventAliases(_,e,n),this._prevVector=t},end:function(e){var t=this._getEventArgs(this._prevVector);this._fireEventAliases(m,e,t)},_getEventArgs:function(e){return{scale:w(e,this._startVector),deltaScale:w(e,this._prevVector),rotation:C(e,this._startVector),deltaRotation:C(e,this._prevVector),translation:k(e,this._startVector),deltaTranslation:k(e,this._prevVector)}},_fireEventAliases:function(e,t,n){n=n||{},r.each(v,function(i,o){var a={};r.each(o.args,function(e){e in n&&(a[e]=n[e])}),this._fireEvent(c+o.name+e,t,a)}.bind(this))}}),E=v.reduce(function(e,t){return[g,_,m].forEach(function(n){e.push(c+t.name+n)}),e},[]);l({emitter:T,events:E}),r.each(E,function(e,n){t[n.substring(c.length)]=n})},function(e,t,n){e.exports=n(52).DataSource},function(e,t,n){var i=n(5),r=n(12),o=n(6),a=o.getWindow(),s=n(10),l=s.abstract,c=n(36).errors,u=n(79),d=s.inherit({ctor:function(e,t){this._store=e,this._dirty=!!t.data,this.save();var n=this._immediate=t.immediate,o=Math.max(100,t.flushInterval||1e4);if(!n){var s=this.save.bind(this);setInterval(s,o),i.on(a,"beforeunload",s),a.cordova&&r.listen(r.getDocument(),"pause",s,!1)}},notifyChanged:function(){this._dirty=!0,this._immediate&&this.save()},load:function(){this._store._array=this._loadImpl(),this._dirty=!1},save:function(){this._dirty&&(this._saveImpl(this._store._array),this._dirty=!1)},_loadImpl:l,_saveImpl:l}),h=d.inherit({ctor:function(e,t){var n=t.name;if(!n)throw c.Error("E4013");this._key="dx-data-localStore-"+n,this.callBase(e,t)},_loadImpl:function(){var e=a.localStorage.getItem(this._key);return e?JSON.parse(e):[]},_saveImpl:function(e){e.length?a.localStorage.setItem(this._key,JSON.stringify(e)):a.localStorage.removeItem(this._key)}}),p={dom:h},f=u.inherit({ctor:function(e){e="string"==typeof e?{name:e}:e||{},this.callBase(e),this._backend=new p[e.backend||"dom"](this,e),this._backend.load()},clear:function(){this.callBase(),this._backend.notifyChanged()},_insertImpl:function(e){var t=this._backend;return this.callBase(e).done(t.notifyChanged.bind(t))},_updateImpl:function(e,t){var n=this._backend;return this.callBase(e,t).done(n.notifyChanged.bind(n))},_removeImpl:function(e){var t=this._backend;return this.callBase(e).done(t.notifyChanged.bind(t))}},"local");e.exports=f},function(e,t,n){function i(e){return/^(localhost$|127\.)/i.test(e)}var r,o,a=n(17),s=n(6).getWindow(),l=n(242),c=function(e){this.config=e,r="ms-appx:"===s.location.protocol,o=i(s.location.hostname)};c.prototype={urlFor:function(e){var t=this.config[e];if(!t)throw a.Error("E0006");return l.isProxyUsed()?l.formatProxyUrl(t.local):t.production&&(r&&!Debug.debuggerEnabled||!r&&!o)?t.production:t.local}},e.exports=c},function(e,t,n){n(241),DevExpress.data.ODataStore=n(243),DevExpress.data.ODataContext=n(364),DevExpress.data.utils=DevExpress.data.utils||{},DevExpress.data.utils.odata={},DevExpress.data.utils.odata.keyConverters=n(97).keyConverters,DevExpress.data.EdmLiteral=n(97).EdmLiteral;var i=n(97);DevExpress.data.utils.odata.serializePropName=i.serializePropName,DevExpress.data.utils.odata.serializeValue=i.serializeValue,DevExpress.data.utils.odata.serializeKey=i.serializeKey,DevExpress.data.utils.odata.sendRequest=i.sendRequest,DevExpress.data.queryAdapters=DevExpress.data.queryAdapters||{},DevExpress.data.queryAdapters.odata=n(145).odata},function(e,t,n){var i=n(10),r=n(0).extend,o=n(1),a=n(3).each,s=n(36),l=n(243),c=n(244),u=n(7),d=u.when,h=u.Deferred;n(145);var p=i.inherit({ctor:function(e){var t=this;t._extractServiceOptions(e),t._errorHandler=e.errorHandler,a(e.entities||[],function(n,i){t[n]=new l(r({},e,{url:t._url+"/"+encodeURIComponent(i.name||n)},i))})},get:function(e,t){return this.invoke(e,t,"GET")},invoke:function(e,t,n){t=t||{},n=(n||"POST").toLowerCase();var i,r=new h,a=this._url+"/"+encodeURIComponent(e);return 4===this.version()&&("get"===n?(a=c.formatFunctionInvocationUrl(a,c.escapeServiceOperationParams(t,this.version())),t=null):"post"===n&&(i=t,t=null)),d(this._sendRequest(a,n,c.escapeServiceOperationParams(t,this.version()),i)).done(function(t){o.isPlainObject(t)&&e in t&&(t=t[e]),r.resolve(t)}).fail(this._errorHandler).fail(s._errorHandler).fail(r.reject),r.promise()},objectLink:function(e,t){var n=this[e];if(!n)throw s.errors.Error("E4015",e);return o.isDefined(t)?{__metadata:{uri:n._byKeyUrl(t,!0)}}:null}}).include(c.SharedMethods);e.exports=p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){e.exports=n(131)},function(e,t,n){var i=n(0).extend,r=n(151),o=i,a=Math.round,s=Math.sqrt,l=Math.acos,c=180/Math.PI,u=Math.abs,d=n(16),h=d.normalizeAngle,p=d.getCosAndSin,f=n(1).isDefined,g=d.getVerticallyShiftedAngularCoords,_=n(150).radialLabelIndent;e.exports=o({},r,{_updateData:function(e,t){var n=this;r._updateData.call(this,e),!t&&f(n._visible)||(n._visible=!0),n.minValue=n.initialMinValue=n.originalMinValue=f(e.minValue)?e.minValue:0},animate:function(e,t,n){var i=this;i.graphic.animate({x:i.centerX,y:i.centerY,outerRadius:i.radiusOuter,innerRadius:i.radiusInner,startAngle:i.toAngle,endAngle:i.fromAngle},{delay:n,partitionDuration:t},e)},correctPosition:function(e){var t=this;t.correctRadius(e),t.correctLabelRadius(e.radiusOuter+_),t.centerX=e.centerX,t.centerY=e.centerY},correctRadius:function(e){this.radiusInner=e.radiusInner,this.radiusOuter=e.radiusOuter},correctLabelRadius:function(e){this.radiusLabels=e},correctValue:function(e,t,n){var i=this;i.value=(n||i.normalInitialValue)+e,i.minValue=e,i.percent=t,i._label.setDataField("percent",t)},_updateLabelData:function(){this._label.setData(this._getLabelFormatObject())},_getShiftLabelCoords:function(){var e=this,t=e._label.getBoundingRect(),n=e._getLabelCoords(e._label),i=e._getVisibleArea();return e._isLabelDrawingWithoutPoints?e._checkLabelPosition(n,t,i):e._getLabelExtraCoord(n,e._checkVerticalLabelPosition(n,t,i),t)},_getLabelPosition:function(e){return e.position},_getLabelCoords:function(e){var t,n,i=this,r=e.getBoundingRect(),o=e.getLayoutOptions(),s=p(i.middleAngle),l=i._getLabelPosition(o),c=i.radiusInner,u=i.radiusOuter,d=i.radiusLabels,h="columns"===l;return"inside"===l?(t=c+(u-c)/2+o.radialOffset,n=i.centerX+t*s.cos-r.width/2):(t=d+o.radialOffset,n=s.cos>.1||h&&s.cos>=0?i.centerX+t*s.cos:s.cos<-.1||h&&s.cos<0?i.centerX+t*s.cos-r.width:i.centerX+t*s.cos-r.width/2),{x:n,y:a(i.centerY-t*s.sin-r.height/2)}},_correctLabelCoord:function(e,t){var n=this,i=n._label,r=i.getBoundingRect(),o=r.width,a=i.getLayoutOptions(),s=n._getVisibleArea(),l=s.maxX-o,c=s.minX,u=h(n.middleAngle),d=n.centerX,p=a.connectorOffset,f=e.x;return"columns"===a.position?(f=u<=90||u>=270?l:c,e.x=f):"inside"!==a.position&&t&&(u<=90||u>=270?f-p<d&&(f=d+p):f+o+p>d&&(f=d-o-p),e.x=f),e},drawLabel:function(){this.translate(),this._isLabelDrawingWithoutPoints=!0,this._drawLabel(),this._isLabelDrawingWithoutPoints=!1},updateLabelCoord:function(e){var t=this,n=t._label.getBoundingRect(),i=t._correctLabelCoord(n,e);i=t._checkHorizontalLabelPosition(i,n,t._getVisibleArea()),t._label.shift(a(i.x),a(n.y))},_checkVerticalLabelPosition:function(e,t,n){var i=e.x,r=e.y;return e.y+t.height>n.maxY?r=n.maxY-t.height:e.y<n.minY&&(r=n.minY),{x:i,y:r}},_getLabelExtraCoord:function(e,t,n){return e.y!==t.y?g({x:e.x,y:e.y,width:n.width,height:n.height},t.y-e.y,{x:this.centerX,y:this.centerY}):e},_checkHorizontalLabelPosition:function(e,t,n){var i=e.x,r=e.y;return e.x+t.width>n.maxX?i=n.maxX-t.width:e.x<n.minX&&(i=n.minX),{x:i,y:r}},setLabelEllipsis:function(e){var t=this,n=t._label,i=n.getBoundingRect(),r=t._getVisibleArea(),o=n.getLayoutOptions().position,a=i.width;"columns"===o&&t.series.index>0?a=r.maxX-t.centerX-t.radiusLabels:"inside"===o?a>r.maxX-r.minX&&(a=r.maxX-r.minX):e&&i.x<t.centerX&&i.width+i.x>t.centerX?a=Math.floor((r.maxX-r.minX)/2):i.x+a>r.maxX?a=r.maxX-i.x:i.x<r.minX&&(a=i.x+a-r.minX),a<i.width&&n.fit(a)},setLabelTrackerData:function(){this._label.setTrackerData(this)},_checkLabelPosition:function(e,t,n){return e=this._checkHorizontalLabelPosition(e,t,n),this._checkVerticalLabelPosition(e,t,n)},_getLabelConnector:function(){var e=this,t=e.radiusOuter,n=e._options.styles.normal,i=n["stroke-width"]/2,r=a(e.series.getOptions().containerBackgroundColor===n.stroke?i:-i),o=p(a(e.middleAngle));return{x:a(e.centerX+(t-r)*o.cos),y:a(e.centerY-(t-r)*o.sin),angle:e.middleAngle}},_drawMarker:function(e,t,n,i){var r=this,o=r.radiusOuter,a=r.radiusInner,s=r.fromAngle,l=r.toAngle;n&&(a=o=0,i||(s=l=r.shiftedAngle)),r.graphic=e.arc(r.centerX,r.centerY,a,o,l,s).attr({"stroke-linejoin":"round"}).smartAttr(r._getStyle()).data({"chart-data-point":r}).sharp().append(t)},getTooltipParams:function(){var e=this,t=p(e.middleAngle),n=e.radiusInner,i=e.radiusOuter;return{x:e.centerX+(n+(i-n)/2)*t.cos,y:e.centerY-(n+(i-n)/2)*t.sin,offset:0}},_translate:function(){var e=this,t=e.shiftedAngle||0,n=e.value,i=e.minValue,r=e._getValTranslator();e.fromAngle=r.translate(i)+t,e.toAngle=r.translate(n)+t,e.middleAngle=r.translate((n-i)/2+i)+t,e.isVisible()||(e.middleAngle=e.toAngle=e.fromAngle=e.fromAngle||t)},getMarkerVisibility:function(){return!0},_updateMarker:function(e,t,n,i){var r=this;e||(t=o({x:r.centerX,y:r.centerY,outerRadius:r.radiusOuter,innerRadius:r.radiusInner,startAngle:r.toAngle,endAngle:r.fromAngle},t)),r.graphic.smartAttr(t).sharp(),i&&i()},getLegendStyles:function(){return this._styles.legendStyles},isInVisibleArea:function(){return!0},hide:function(){var e=this;e._visible&&(e._visible=!1,e.hideTooltip(),e._options.visibilityChanged(e))},show:function(){var e=this;e._visible||(e._visible=!0,e._options.visibilityChanged(e))},setInvisibility:function(){this._label.draw(!1)},isVisible:function(){return this._visible},_getFormatObject:function(e){var t=r._getFormatObject.call(this,e),n=this.percent;return t.percent=n,t.percentText=e.formatValue(n,"percent"),t},getColor:function(){return this._styles.normal.fill},coordsIn:function(e,t){var n,i=this,r=e-i.centerX,o=t-i.centerY,a=s(r*r+o*o),d=i.fromAngle%360,h=i.toAngle%360;return!(a<i.radiusInner||a>i.radiusOuter||0===a)&&(n=l(r/a)*c*(o>0?-1:1),n<0&&(n+=360),d===h&&u(i.toAngle-i.fromAngle)>1e-4||(d>=h?n<=d&&n>=h:!(n>=d&&n<=h)))}})},function(e,t,n){var i=n(3).each,r=n(0).extend,o=n(4).noop,a=n(298),s=n(151),l=r,c=n(1).isDefined,u=Math,d=u.abs,h=u.min,p=u.max,f=u.round,g=20,_=20;e.exports=l({},s,{deleteLabel:function(){var e=this;e._topLabel.dispose(),e._topLabel=null,e._bottomLabel.dispose(),e._bottomLabel=null},hideMarker:function(e){var t=this.graphic,n=t&&t[e+"Marker"],i=this["_"+e+"Label"];n&&"hidden"!==n.attr("visibility")&&n.attr({visibility:"hidden"}),i.draw(!1)},setInvisibility:function(){this.hideMarker("top"),this.hideMarker("bottom")},clearVisibility:function(){var e=this,t=e.graphic,n=t&&t.topMarker,i=t&&t.bottomMarker;n&&n.attr("visibility")&&n.attr({visibility:null}),i&&i.attr("visibility")&&i.attr({visibility:null})},clearMarker:function(){var e=this,t=e.graphic,n=t&&t.topMarker,i=t&&t.bottomMarker,r=e._emptySettings;n&&n.attr(r),i&&i.attr(r)},_getLabelPosition:function(e){var t,n="inside"===this._options.label.position;return t=this._options.rotated?"top"===e^n?"right":"left":"top"===e^n?"top":"bottom"},_getLabelMinFormatObject:function(){var e=this;return{index:0,argument:e.initialArgument,value:e.initialMinValue,seriesName:e.series.name,originalValue:e.originalMinValue,originalArgument:e.originalArgument,point:e}},_updateLabelData:function(){var e=this._getLabelFormatObject();e.index=1,this._topLabel.setData(e),this._bottomLabel.setData(this._getLabelMinFormatObject())},_updateLabelOptions:function(){var e=this,t=this._options.label;(!e._topLabel||!e._bottomLabel)&&e._createLabel(),e._topLabel.setOptions(t),e._bottomLabel.setOptions(t)},_createLabel:function(){var e={renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this};this._topLabel=new a.Label(e),this._bottomLabel=new a.Label(e)},_getGraphicBBox:function(e){var t,n=this._options,i=this._getImage(n.image),r="top"===e?this._checkImage(i.top):this._checkImage(i.bottom),o=this._getPositionFromLocation(e);return t=n.visible?r?this._getImageBBox(o.x,o.y):this._getSymbolBBox(o.x,o.y,n.styles.normal.r):{x:o.x,y:o.y,width:0,height:0}},_getPositionFromLocation:function(e){var t,n,i="top"===e;return this._options.rotated?(t=i?p(this.x,this.minX):h(this.x,this.minX),n=this.y):(t=this.x,n=i?h(this.y,this.minY):p(this.y,this.minY)),{x:t,y:n}},_checkOverlay:function(e,t,n){return e<t+n},_getOverlayCorrections:function(e,t){var n=this._options.rotated,i=n?"x":"y",r=n?"width":"height",o=this._getValTranslator().getCanvasVisibleArea(),a=o.min,s=o.max,l=f((e[i]+e[r]-t[i])/2),c=e[i]-l,u=t[i]+l;return c<a?(l=a-e[i],c+=l,u+=l):u+t[r]>s&&(l=-(t[i]+t[r]-s),c+=l,u+=l),{coord1:c,coord2:u}},_checkLabelsOverlay:function(e){var t=this,n=t._topLabel.getBoundingRect(),i=t._bottomLabel.getBoundingRect(),r={};t._options.rotated?"top"===e?this._checkOverlay(n.x,i.x,i.width)&&(r=this._getOverlayCorrections(i,n),t._topLabel.shift(r.coord2,n.y),t._bottomLabel.shift(r.coord1,i.y)):this._checkOverlay(i.x,n.x,n.width)&&(r=this._getOverlayCorrections(n,i),t._topLabel.shift(r.coord1,n.y),t._bottomLabel.shift(r.coord2,i.y)):"top"===e?this._checkOverlay(i.y,n.y,n.height)&&(r=this._getOverlayCorrections(n,i),t._topLabel.shift(n.x,r.coord1),t._bottomLabel.shift(i.x,r.coord2)):this._checkOverlay(n.y,i.y,i.height)&&(r=this._getOverlayCorrections(i,n),t._topLabel.shift(n.x,r.coord2),t._bottomLabel.shift(i.x,r.coord1))},_drawLabel:function(){var e=this,t=[],n=e._options.rotated?e.x>=e.minX:e.y<e.minY,r=e._getCustomLabelVisibility(),o=e._topLabel,a=e._bottomLabel;o.pointPosition=n?"top":"bottom",a.pointPosition=n?"bottom":"top",(e.series.getLabelVisibility()||r)&&e.hasValue()&&r!==!1?(e.visibleTopMarker!==!1&&t.push(o),e.visibleBottomMarker!==!1&&t.push(a),i(t,function(e,t){t.draw(!0)}),e._checkLabelsOverlay(e._topLabel.pointPosition)):(o.draw(!1),a.draw(!1))},_getImage:function(e){var t={};return c(e)&&("string"==typeof e?t.top=t.bottom=e:(t.top={url:"string"==typeof e.url?e.url:e.url&&e.url.rangeMaxPoint,width:"number"==typeof e.width?e.width:e.width&&e.width.rangeMaxPoint,height:"number"==typeof e.height?e.height:e.height&&e.height.rangeMaxPoint},t.bottom={url:"string"==typeof e.url?e.url:e.url&&e.url.rangeMinPoint,width:"number"==typeof e.width?e.width:e.width&&e.width.rangeMinPoint,height:"number"==typeof e.height?e.height:e.height&&e.height.rangeMinPoint})),t},_checkSymbol:function(e,t){var n=this,i=e.symbol,r=t.symbol,o="circle"===i&&"circle"!==r||"circle"!==i&&"circle"===r,a=n._getImage(e.image),s=n._getImage(t.image),l=n._checkImage(a.top)!==n._checkImage(s.top),c=n._checkImage(a.bottom)!==n._checkImage(s.bottom);return o||l||c},_getSettingsForTwoMarkers:function(e){var t=this,n=t._options,i={},r=n.rotated?h(t.x,t.minX):t.x,o=n.rotated?t.y:h(t.y,t.minY),a=e.r,s=t._populatePointShape(n.symbol,a);return i.top=l({translateX:r+t.width,translateY:o,r:a},e),i.bottom=l({translateX:r,translateY:o+t.height,r:a},e),s&&(i.top.points=i.bottom.points=s),i},_hasGraphic:function(){return this.graphic&&this.graphic.topMarker&&this.graphic.bottomMarker},_drawOneMarker:function(e,t,n,i){var r=this,o=r.graphic;o[t]?r._updateOneMarker(t,i):o[t]=r._createMarker(e,o,n,i)},_drawMarker:function(e,t,n,i,r){var o=this,a=o._getSettingsForTwoMarkers(r||o._getStyle()),s=o._getImage(o._options.image);o._checkImage(s.top)&&(a.top=o._getImageSettings(a.top,s.top)),o._checkImage(s.bottom)&&(a.bottom=o._getImageSettings(a.bottom,s.bottom)),o.graphic=o.graphic||e.g().append(t),o.visibleTopMarker&&o._drawOneMarker(e,"topMarker",s.top,a.top),o.visibleBottomMarker&&o._drawOneMarker(e,"bottomMarker",s.bottom,a.bottom)},_getSettingsForTracker:function(e){var t=this,n=t._options.rotated;return{translateX:n?h(t.x,t.minX)-e:t.x-e,translateY:n?t.y-e:h(t.y,t.minY)-e,width:t.width+2*e,height:t.height+2*e}},isInVisibleArea:function(){var e,t,n,i,r,o=this,a=o._options.rotated,s=a?o.y:o.x,l=a?p(o.minX,o.x):p(o.minY,o.y),c=a?h(o.minX,o.x):h(o.minY,o.y),u=!0,d=!0,f=!0;return i=o._getArgTranslator().getCanvasVisibleArea(),r=o._getValTranslator().getCanvasVisibleArea(),e=i.max<s||i.min>s,t=r.min>c&&r.min>l||r.max<c&&r.max<l,e||t?u=d=f=!1:(u=r.min<=c&&r.max>c,d=r.min<l&&r.max>=l,a&&(n=u,u=d,d=n)),o.visibleTopMarker=u,o.visibleBottomMarker=d,f},getTooltipParams:function(){var e,t,n=this,i=n._options.rotated,r=i?h(n.x,n.minX):h(n.y,n.minY),o=i?"width":"height",a=n._getVisibleArea(),s=i?a.minX:a.minY,l=i?a.maxX:a.maxY,c=p(s,r),u=h(l,r+n[o]);return i?(t=n.y,e=c+(u-c)/2):(e=n.x,t=c+(u-c)/2),{x:e,y:t,offset:0}},_translate:function(){var e=this,t=e._options.rotated;s._translate.call(e),e.height=t?0:d(e.minY-e.y),e.width=t?d(e.x-e.minX):0},hasCoords:function(){return s.hasCoords.call(this)&&!(null===this.minX||null===this.minY)},_updateData:function(e){var t=this;s._updateData.call(t,e),t.minValue=t.initialMinValue=t.originalMinValue=e.minValue},_getImageSettings:function(e,t){return{href:t.url||t.toString(),width:t.width||g,height:t.height||_,translateX:e.translateX,translateY:e.translateY}},getCrosshairData:function(e,t){var n=this,i=n._options.rotated,r=n.minX,o=n.minY,a=n.vx,s=n.vy,l=n.value,c=n.minValue,u=n.argument,h={axis:n.series.axis,x:a,y:s,yValue:l,xValue:u};return i?(h.yValue=u,d(a-e)<d(r-e)?h.xValue=l:(h.x=r,h.xValue=c)):d(s-t)>=d(o-t)&&(h.y=o,h.yValue=c),h},_updateOneMarker:function(e,t){this.graphic&&this.graphic[e]&&this.graphic[e].attr(t)},_updateMarker:function(e,t){this._drawMarker(void 0,void 0,!1,!1,t)},_getFormatObject:function(e){var t=this,n=t.initialMinValue,i=t.initialValue,r=t.initialArgument,o=e.formatValue(n),a=e.formatValue(i);return{argument:r,argumentText:e.formatValue(r,"argument"),valueText:o+" - "+a,rangeValue1Text:o,rangeValue2Text:a,rangeValue1:n,rangeValue2:i,seriesName:t.series.name,