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.
- package/animation/easing.js +3 -3
- package/animation/frame.d.ts +3 -3
- package/animation/frame.js +3 -3
- package/animation/fx.d.ts +3 -3
- package/animation/fx.js +4 -4
- package/animation/position.js +3 -3
- package/animation/presets/presets.js +3 -3
- package/animation/presets.d.ts +3 -3
- package/animation/presets.js +3 -3
- package/animation/transition_executor/transition_executor.js +3 -3
- package/animation/transition_executor.d.ts +3 -3
- package/animation/transition_executor.js +3 -3
- package/animation/translator.js +3 -3
- package/aspnet.js +3 -3
- package/bundles/dx.all.d.ts +3 -3
- package/bundles/modules/core.js +3 -3
- package/bundles/modules/data.js +3 -3
- package/bundles/modules/data.odata.js +3 -3
- package/bundles/modules/framework.js +3 -3
- package/bundles/modules/ui.js +3 -3
- package/bundles/modules/viz.js +3 -3
- package/client_exporter/excel_creator.js +3 -3
- package/client_exporter/excel_format_converter.js +3 -3
- package/client_exporter/file_saver.js +3 -3
- package/client_exporter/image_creator.js +3 -3
- package/client_exporter/pdf_creator.js +3 -3
- package/client_exporter/svg_creator.js +3 -3
- package/client_exporter.js +3 -3
- package/color.js +3 -3
- package/core/action.js +3 -3
- package/core/class.js +3 -3
- package/core/component.js +3 -3
- package/core/component_registrator.js +3 -3
- package/core/component_registrator_callbacks.js +3 -3
- package/core/config.d.ts +3 -3
- package/core/config.js +3 -3
- package/core/devices.d.ts +3 -3
- package/core/devices.js +3 -3
- package/core/dom_adapter.js +3 -3
- package/core/dom_component.js +3 -3
- package/core/element_data.js +3 -3
- package/core/errors.js +3 -3
- package/core/events_mixin.js +3 -3
- package/core/events_strategy.js +3 -3
- package/core/guid.d.ts +3 -3
- package/core/guid.js +3 -3
- package/core/http_request.js +3 -3
- package/core/memorized_callbacks.js +3 -3
- package/core/polyfills/promise.js +3 -3
- package/core/polyfills/weak_map.js +3 -3
- package/core/remove_event.js +3 -3
- package/core/renderer.js +3 -3
- package/core/renderer_base.js +3 -3
- package/core/utils/ajax.js +3 -3
- package/core/utils/array.js +3 -3
- package/core/utils/browser.js +3 -3
- package/core/utils/call_once.js +3 -3
- package/core/utils/callbacks.js +3 -3
- package/core/utils/common.js +3 -3
- package/core/utils/console.js +3 -3
- package/core/utils/data.js +3 -3
- package/core/utils/date.js +3 -3
- package/core/utils/date_serialization.js +3 -3
- package/core/utils/deferred.js +3 -3
- package/core/utils/dependency_injector.js +3 -3
- package/core/utils/dom.js +3 -3
- package/core/utils/error.js +3 -3
- package/core/utils/extend.js +3 -3
- package/core/utils/html_parser.js +3 -3
- package/core/utils/icon.js +3 -3
- package/core/utils/inflector.js +3 -3
- package/core/utils/iterator.js +3 -3
- package/core/utils/locker.js +3 -3
- package/core/utils/math.js +3 -3
- package/core/utils/object.js +3 -3
- package/core/utils/position.js +3 -3
- package/core/utils/public_component.js +3 -3
- package/core/utils/queue.js +3 -3
- package/core/utils/ready_callbacks.js +3 -3
- package/core/utils/resize_callbacks.js +3 -3
- package/core/utils/selection_filter.js +3 -3
- package/core/utils/size.js +3 -3
- package/core/utils/storage.js +3 -3
- package/core/utils/string.js +3 -3
- package/core/utils/style.js +3 -3
- package/core/utils/support.js +3 -3
- package/core/utils/svg.js +3 -3
- package/core/utils/type.js +3 -3
- package/core/utils/variable_wrapper.js +3 -3
- package/core/utils/version.js +3 -3
- package/core/utils/view_port.js +3 -3
- package/core/utils/window.js +3 -3
- package/core/version.js +4 -4
- package/data/abstract_store.js +3 -3
- package/data/array_query.js +5 -4
- package/data/array_store.d.ts +3 -3
- package/data/array_store.js +3 -3
- package/data/custom_store.d.ts +3 -3
- package/data/custom_store.js +3 -3
- package/data/data_source/data_source.js +3 -3
- package/data/data_source.d.ts +3 -3
- package/data/data_source.js +3 -3
- package/data/endpoint_selector.d.ts +3 -3
- package/data/endpoint_selector.js +3 -3
- package/data/errors.d.ts +3 -3
- package/data/errors.js +3 -3
- package/data/local_store.d.ts +3 -3
- package/data/local_store.js +3 -3
- package/data/odata/context.d.ts +3 -3
- package/data/odata/context.js +3 -3
- package/data/odata/mixins.js +3 -3
- package/data/odata/query_adapter.js +3 -3
- package/data/odata/store.d.ts +3 -3
- package/data/odata/store.js +3 -3
- package/data/odata/utils.d.ts +3 -3
- package/data/odata/utils.js +3 -3
- package/data/proxy_url_formatter.js +3 -3
- package/data/query.d.ts +3 -3
- package/data/query.js +3 -3
- package/data/query_adapters.js +3 -3
- package/data/remote_query.js +3 -3
- package/data/store_helper.js +3 -3
- package/data/utils.d.ts +3 -3
- package/data/utils.js +3 -3
- package/data_helper.js +3 -3
- package/dist/css/dx.android5.light.css +3 -3
- package/dist/css/dx.carmine.compact.css +3 -3
- package/dist/css/dx.carmine.css +3 -3
- package/dist/css/dx.common.css +3 -3
- package/dist/css/dx.contrast.compact.css +3 -3
- package/dist/css/dx.contrast.css +3 -3
- package/dist/css/dx.dark.compact.css +3 -3
- package/dist/css/dx.dark.css +3 -3
- package/dist/css/dx.darkmoon.compact.css +3 -3
- package/dist/css/dx.darkmoon.css +3 -3
- package/dist/css/dx.darkviolet.compact.css +3 -3
- package/dist/css/dx.darkviolet.css +3 -3
- package/dist/css/dx.greenmist.compact.css +3 -3
- package/dist/css/dx.greenmist.css +3 -3
- package/dist/css/dx.ios7.default.css +3 -3
- package/dist/css/dx.light.compact.css +3 -3
- package/dist/css/dx.light.css +3 -3
- package/dist/css/dx.material.blue.dark.css +3 -3
- package/dist/css/dx.material.blue.light.css +3 -3
- package/dist/css/dx.material.lime.dark.css +3 -3
- package/dist/css/dx.material.lime.light.css +3 -3
- package/dist/css/dx.material.orange.dark.css +3 -3
- package/dist/css/dx.material.orange.light.css +3 -3
- package/dist/css/dx.material.purple.dark.css +3 -3
- package/dist/css/dx.material.purple.light.css +3 -3
- package/dist/css/dx.material.teal.dark.css +3 -3
- package/dist/css/dx.material.teal.light.css +3 -3
- package/dist/css/dx.softblue.compact.css +3 -3
- package/dist/css/dx.softblue.css +3 -3
- package/dist/css/dx.spa.css +3 -3
- package/dist/css/dx.win10.black.css +3 -3
- package/dist/css/dx.win10.white.css +3 -3
- package/dist/css/dx.win8.black.css +3 -3
- package/dist/css/dx.win8.white.css +3 -3
- package/dist/js/dx.all.debug.js +54 -48
- package/dist/js/dx.all.js +8 -8
- package/dist/js/dx.aspnet.mvc.js +3 -3
- package/dist/js/dx.mobile.debug.js +54 -48
- package/dist/js/dx.mobile.js +41 -41
- package/dist/js/dx.viz-web.debug.js +54 -48
- package/dist/js/dx.viz-web.js +8 -8
- package/dist/js/dx.viz.debug.js +54 -48
- package/dist/js/dx.viz.js +9 -9
- package/dist/js/dx.web.debug.js +54 -48
- package/dist/js/dx.web.js +23 -23
- package/dist/js/localization/dx.messages.cs.js +3 -3
- package/dist/js/localization/dx.messages.de.js +3 -3
- package/dist/js/localization/dx.messages.el.js +3 -3
- package/dist/js/localization/dx.messages.en.js +3 -3
- package/dist/js/localization/dx.messages.es.js +3 -3
- package/dist/js/localization/dx.messages.fi.js +3 -3
- package/dist/js/localization/dx.messages.fr.js +3 -3
- package/dist/js/localization/dx.messages.it.js +3 -3
- package/dist/js/localization/dx.messages.ja.js +3 -3
- package/dist/js/localization/dx.messages.nl.js +3 -3
- package/dist/js/localization/dx.messages.pt.js +3 -3
- package/dist/js/localization/dx.messages.ru.js +3 -3
- package/dist/js/localization/dx.messages.sv.js +3 -3
- package/dist/js/localization/dx.messages.zh.js +3 -3
- package/dist/js/vectormap-utils/dx.vectormaputils.debug.js +3 -3
- package/dist/js/vectormap-utils/dx.vectormaputils.js +3 -3
- package/dist/js/vectormap-utils/dx.vectormaputils.node.js +3 -3
- package/dist/ts/dx.all.d.ts +3 -3
- package/dist/ts/dx.all.legacy.d.ts +3 -3
- package/docEnums.js +3 -3
- package/events/click.d.ts +3 -3
- package/events/click.js +3 -3
- package/events/contextmenu.d.ts +3 -3
- package/events/contextmenu.js +3 -3
- package/events/core/emitter.feedback.js +3 -3
- package/events/core/emitter.js +3 -3
- package/events/core/emitter_registrator.js +3 -3
- package/events/core/event_registrator.js +3 -3
- package/events/core/event_registrator_callbacks.js +3 -3
- package/events/core/events_engine.js +3 -3
- package/events/core/hook_touch_props.js +3 -3
- package/events/core/wheel.js +3 -3
- package/events/core.js +3 -3
- package/events/dblclick.d.ts +3 -3
- package/events/dblclick.js +3 -3
- package/events/double_click.js +3 -3
- package/events/drag.d.ts +3 -3
- package/events/drag.js +3 -3
- package/events/gesture/emitter.gesture.js +3 -3
- package/events/gesture/swipeable.js +3 -3
- package/events/hold.d.ts +3 -3
- package/events/hold.js +3 -3
- package/events/hover.d.ts +3 -3
- package/events/hover.js +3 -3
- package/events/pointer/base.js +3 -3
- package/events/pointer/mouse.js +3 -3
- package/events/pointer/mouse_and_touch.js +3 -3
- package/events/pointer/mspointer.js +3 -3
- package/events/pointer/observer.js +3 -3
- package/events/pointer/touch.js +3 -3
- package/events/pointer.d.ts +3 -3
- package/events/pointer.js +3 -3
- package/events/swipe.d.ts +3 -3
- package/events/swipe.js +3 -3
- package/events/transform.d.ts +3 -3
- package/events/transform.js +3 -3
- package/events/utils.js +3 -3
- package/events.d.ts +3 -3
- package/events.js +3 -3
- package/exporter.js +3 -3
- package/format_helper.js +3 -3
- package/framework/action_executors.js +3 -3
- package/framework/application.js +3 -3
- package/framework/browser_adapters.js +3 -3
- package/framework/command.d.ts +3 -3
- package/framework/command.js +3 -3
- package/framework/command_mapping.js +3 -3
- package/framework/errors.js +3 -3
- package/framework/html/command_container.d.ts +3 -3
- package/framework/html/command_container.js +3 -3
- package/framework/html/command_manager.js +3 -3
- package/framework/html/html_application.d.ts +3 -3
- package/framework/html/html_application.js +3 -3
- package/framework/html/layout_controller.js +3 -3
- package/framework/html/markup_component.js +3 -3
- package/framework/html/presets.js +3 -3
- package/framework/html/view_engine.js +3 -3
- package/framework/html/view_engine_components.d.ts +3 -3
- package/framework/html/view_engine_components.js +3 -3
- package/framework/html/widget_command_adapters.js +3 -3
- package/framework/navigation_devices.js +3 -3
- package/framework/navigation_manager.js +3 -3
- package/framework/router.d.ts +3 -3
- package/framework/router.js +3 -3
- package/framework/state_manager.d.ts +3 -3
- package/framework/state_manager.js +3 -3
- package/framework/utils.js +3 -3
- package/framework/view_cache.d.ts +3 -3
- package/framework/view_cache.js +3 -3
- package/integration/angular/action_executors.js +3 -3
- package/integration/angular/component_registrator.js +3 -3
- package/integration/angular/components.js +3 -3
- package/integration/angular/event_registrator.js +3 -3
- package/integration/angular/module.js +3 -3
- package/integration/angular/template.js +3 -3
- package/integration/angular.js +3 -3
- package/integration/jquery/ajax.js +3 -3
- package/integration/jquery/component_registrator.js +3 -3
- package/integration/jquery/deferred.js +3 -3
- package/integration/jquery/easing.js +3 -3
- package/integration/jquery/element.js +3 -3
- package/integration/jquery/element_data.js +3 -3
- package/integration/jquery/events.js +3 -3
- package/integration/jquery/hold_ready.js +3 -3
- package/integration/jquery/hooks.js +3 -3
- package/integration/jquery/renderer.js +3 -3
- package/integration/jquery/use_jquery.js +3 -3
- package/integration/jquery.d.ts +3 -3
- package/integration/jquery.js +3 -3
- package/integration/knockout/clean_node.js +3 -3
- package/integration/knockout/clean_node_old.js +3 -3
- package/integration/knockout/component_registrator.js +3 -3
- package/integration/knockout/components.js +3 -3
- package/integration/knockout/event_registrator.js +3 -3
- package/integration/knockout/template.js +3 -3
- package/integration/knockout/utils.js +3 -3
- package/integration/knockout/validation.js +3 -3
- package/integration/knockout/variable_wrapper_utils.js +3 -3
- package/integration/knockout.js +3 -3
- package/localization/cldr-data/parentLocales.js +49 -44
- package/localization/core.js +3 -3
- package/localization/currency.js +3 -3
- package/localization/date.js +3 -3
- package/localization/default_date_names.js +3 -3
- package/localization/default_messages.js +3 -3
- package/localization/globalize/core.js +3 -3
- package/localization/globalize/currency.js +3 -3
- package/localization/globalize/date.js +3 -3
- package/localization/globalize/message.js +3 -3
- package/localization/globalize/number.js +3 -3
- package/localization/language_codes.js +3 -3
- package/localization/ldml/date.format.js +3 -3
- package/localization/ldml/date.formatter.js +3 -3
- package/localization/ldml/date.parser.js +3 -3
- package/localization/ldml/number.js +3 -3
- package/localization/message.js +3 -3
- package/localization/number.js +3 -3
- package/localization.d.ts +3 -3
- package/localization.js +3 -3
- package/mobile/hide_top_overlay.d.ts +3 -3
- package/mobile/hide_top_overlay.js +3 -3
- package/mobile/init_mobile_viewport/init_mobile_viewport.js +3 -3
- package/mobile/init_mobile_viewport.d.ts +3 -3
- package/mobile/init_mobile_viewport.js +3 -3
- package/mobile/process_hardware_back_button.d.ts +3 -3
- package/mobile/process_hardware_back_button.js +3 -3
- package/package.json +2 -2
- package/ui/accordion.d.ts +3 -3
- package/ui/accordion.js +3 -3
- package/ui/action_sheet.d.ts +3 -3
- package/ui/action_sheet.js +3 -3
- package/ui/autocomplete.d.ts +3 -3
- package/ui/autocomplete.js +3 -3
- package/ui/box.d.ts +3 -3
- package/ui/box.js +3 -3
- package/ui/button.d.ts +3 -3
- package/ui/button.js +3 -3
- package/ui/calendar/ui.calendar.base_view.js +3 -3
- package/ui/calendar/ui.calendar.js +3 -3
- package/ui/calendar/ui.calendar.navigator.js +3 -3
- package/ui/calendar/ui.calendar.views.js +3 -3
- package/ui/calendar.d.ts +3 -3
- package/ui/calendar.js +3 -3
- package/ui/check_box.d.ts +3 -3
- package/ui/check_box.js +3 -3
- package/ui/collection/item.js +3 -3
- package/ui/collection/ui.collection_widget.async.js +3 -3
- package/ui/collection/ui.collection_widget.base.js +3 -3
- package/ui/collection/ui.collection_widget.edit.js +3 -3
- package/ui/collection/ui.collection_widget.edit.strategy.js +3 -3
- package/ui/collection/ui.collection_widget.edit.strategy.plain.js +3 -3
- package/ui/color_box/color_box.js +3 -3
- package/ui/color_box/color_view.js +3 -3
- package/ui/color_box.d.ts +3 -3
- package/ui/color_box.js +3 -3
- package/ui/context_menu/ui.context_menu.js +3 -3
- package/ui/context_menu/ui.menu_base.edit.strategy.js +3 -3
- package/ui/context_menu/ui.menu_base.js +3 -3
- package/ui/context_menu.d.ts +3 -3
- package/ui/context_menu.js +3 -3
- package/ui/data_grid/aggregate_calculator.js +3 -3
- package/ui/data_grid/ui.data_grid.adaptivity.js +3 -3
- package/ui/data_grid/ui.data_grid.base.js +3 -3
- package/ui/data_grid/ui.data_grid.column_chooser.js +3 -3
- package/ui/data_grid/ui.data_grid.column_fixing.js +3 -3
- package/ui/data_grid/ui.data_grid.column_headers.js +3 -3
- package/ui/data_grid/ui.data_grid.columns_controller.js +3 -3
- package/ui/data_grid/ui.data_grid.columns_resizing_reordering.js +3 -3
- package/ui/data_grid/ui.data_grid.context_menu.js +3 -3
- package/ui/data_grid/ui.data_grid.core.js +3 -3
- package/ui/data_grid/ui.data_grid.data_controller.js +3 -3
- package/ui/data_grid/ui.data_grid.data_source_adapter.js +3 -3
- package/ui/data_grid/ui.data_grid.editing.js +3 -3
- package/ui/data_grid/ui.data_grid.editor_factory.js +3 -3
- package/ui/data_grid/ui.data_grid.error_handling.js +3 -3
- package/ui/data_grid/ui.data_grid.export.js +3 -3
- package/ui/data_grid/ui.data_grid.filter_builder.js +3 -3
- package/ui/data_grid/ui.data_grid.filter_panel.js +3 -3
- package/ui/data_grid/ui.data_grid.filter_row.js +3 -3
- package/ui/data_grid/ui.data_grid.filter_sync.js +3 -3
- package/ui/data_grid/ui.data_grid.grid_view.js +3 -3
- package/ui/data_grid/ui.data_grid.grouping.collapsed.js +3 -3
- package/ui/data_grid/ui.data_grid.grouping.core.js +3 -3
- package/ui/data_grid/ui.data_grid.grouping.expanded.js +3 -3
- package/ui/data_grid/ui.data_grid.grouping.js +3 -3
- package/ui/data_grid/ui.data_grid.header_filter.js +3 -3
- package/ui/data_grid/ui.data_grid.header_panel.js +3 -3
- package/ui/data_grid/ui.data_grid.js +3 -3
- package/ui/data_grid/ui.data_grid.keyboard_navigation.js +3 -3
- package/ui/data_grid/ui.data_grid.master_detail.js +3 -3
- package/ui/data_grid/ui.data_grid.pager.js +3 -3
- package/ui/data_grid/ui.data_grid.rows.js +3 -3
- package/ui/data_grid/ui.data_grid.search.js +3 -3
- package/ui/data_grid/ui.data_grid.selection.js +3 -3
- package/ui/data_grid/ui.data_grid.sorting.js +3 -3
- package/ui/data_grid/ui.data_grid.state_storing.js +3 -3
- package/ui/data_grid/ui.data_grid.summary.js +3 -3
- package/ui/data_grid/ui.data_grid.validating.js +3 -3
- package/ui/data_grid/ui.data_grid.virtual_columns.js +3 -3
- package/ui/data_grid/ui.data_grid.virtual_scrolling.js +3 -3
- package/ui/data_grid.d.ts +3 -3
- package/ui/data_grid.js +3 -3
- package/ui/date_box/ui.date_box.js +3 -3
- package/ui/date_box/ui.date_box.strategy.calendar.js +3 -3
- package/ui/date_box/ui.date_box.strategy.calendar_with_time.js +3 -3
- package/ui/date_box/ui.date_box.strategy.date_view.js +3 -3
- package/ui/date_box/ui.date_box.strategy.js +3 -3
- package/ui/date_box/ui.date_box.strategy.list.js +3 -3
- package/ui/date_box/ui.date_box.strategy.native.js +3 -3
- package/ui/date_box/ui.date_utils.js +3 -3
- package/ui/date_box/ui.date_view.js +3 -3
- package/ui/date_box/ui.date_view_roller.js +3 -3
- package/ui/date_box/ui.time_view.js +3 -3
- package/ui/date_box.d.ts +3 -3
- package/ui/date_box.js +3 -3
- package/ui/defer_rendering.d.ts +3 -3
- package/ui/defer_rendering.js +3 -3
- package/ui/dialog.d.ts +3 -3
- package/ui/dialog.js +3 -3
- package/ui/draggable.js +3 -3
- package/ui/drop_down_box.d.ts +3 -3
- package/ui/drop_down_box.js +3 -3
- package/ui/drop_down_editor/ui.drop_down_editor.js +3 -3
- package/ui/drop_down_editor/ui.drop_down_list.js +3 -3
- package/ui/drop_down_menu.js +3 -3
- package/ui/editor/editor.js +3 -3
- package/ui/editor/ui.data_expression.js +3 -3
- package/ui/file_uploader.d.ts +3 -3
- package/ui/file_uploader.js +3 -3
- package/ui/filter_builder/between.js +3 -3
- package/ui/filter_builder/filter_builder.js +3 -3
- package/ui/filter_builder/ui.filter_operations_dictionary.js +3 -3
- package/ui/filter_builder/utils.js +3 -3
- package/ui/filter_builder.d.ts +3 -3
- package/ui/filter_builder.js +3 -3
- package/ui/form/instance_storage.js +3 -3
- package/ui/form/ui.form.js +3 -3
- package/ui/form/ui.form.layout_manager.js +3 -3
- package/ui/form.d.ts +3 -3
- package/ui/form.js +3 -3
- package/ui/gallery.d.ts +3 -3
- package/ui/gallery.js +3 -3
- package/ui/grid_core/ui.grid_core.adaptivity.js +3 -3
- package/ui/grid_core/ui.grid_core.column_chooser.js +3 -3
- package/ui/grid_core/ui.grid_core.column_fixing.js +3 -3
- package/ui/grid_core/ui.grid_core.column_headers.js +3 -3
- package/ui/grid_core/ui.grid_core.column_state_mixin.js +3 -3
- package/ui/grid_core/ui.grid_core.columns_controller.js +3 -3
- package/ui/grid_core/ui.grid_core.columns_resizing_reordering.js +3 -3
- package/ui/grid_core/ui.grid_core.columns_view.js +3 -3
- package/ui/grid_core/ui.grid_core.context_menu.js +3 -3
- package/ui/grid_core/ui.grid_core.data_controller.js +3 -3
- package/ui/grid_core/ui.grid_core.data_source_adapter.js +3 -3
- package/ui/grid_core/ui.grid_core.editing.js +3 -3
- package/ui/grid_core/ui.grid_core.editor_factory.js +3 -3
- package/ui/grid_core/ui.grid_core.error_handling.js +3 -3
- package/ui/grid_core/ui.grid_core.export_mixin.js +3 -3
- package/ui/grid_core/ui.grid_core.filter_builder.js +3 -3
- package/ui/grid_core/ui.grid_core.filter_custom_operations.js +3 -3
- package/ui/grid_core/ui.grid_core.filter_panel.js +3 -3
- package/ui/grid_core/ui.grid_core.filter_row.js +3 -3
- package/ui/grid_core/ui.grid_core.filter_sync.js +3 -3
- package/ui/grid_core/ui.grid_core.grid_view.js +3 -3
- package/ui/grid_core/ui.grid_core.header_filter.js +3 -3
- package/ui/grid_core/ui.grid_core.header_filter_core.js +3 -3
- package/ui/grid_core/ui.grid_core.header_panel.js +3 -3
- package/ui/grid_core/ui.grid_core.keyboard_navigation.js +3 -3
- package/ui/grid_core/ui.grid_core.master_detail.js +3 -3
- package/ui/grid_core/ui.grid_core.modules.js +3 -3
- package/ui/grid_core/ui.grid_core.pager.js +3 -3
- package/ui/grid_core/ui.grid_core.rows.js +3 -3
- package/ui/grid_core/ui.grid_core.search.js +3 -3
- package/ui/grid_core/ui.grid_core.selection.js +3 -3
- package/ui/grid_core/ui.grid_core.sorting.js +3 -3
- package/ui/grid_core/ui.grid_core.sorting_mixin.js +3 -3
- package/ui/grid_core/ui.grid_core.state_storing.js +3 -3
- package/ui/grid_core/ui.grid_core.state_storing_core.js +3 -3
- package/ui/grid_core/ui.grid_core.utils.js +3 -3
- package/ui/grid_core/ui.grid_core.validating.js +3 -3
- package/ui/grid_core/ui.grid_core.virtual_columns.js +3 -3
- package/ui/grid_core/ui.grid_core.virtual_columns_core.js +3 -3
- package/ui/grid_core/ui.grid_core.virtual_scrolling.js +3 -3
- package/ui/grid_core/ui.grid_core.virtual_scrolling_core.js +3 -3
- package/ui/hierarchical_collection/ui.data_adapter.js +3 -3
- package/ui/hierarchical_collection/ui.data_converter.js +3 -3
- package/ui/hierarchical_collection/ui.hierarchical_collection_widget.js +3 -3
- package/ui/list/item.js +3 -3
- package/ui/list/ui.list.base.js +3 -3
- package/ui/list/ui.list.edit.decorator.context.js +3 -3
- package/ui/list/ui.list.edit.decorator.js +3 -3
- package/ui/list/ui.list.edit.decorator.reorder.js +3 -3
- package/ui/list/ui.list.edit.decorator.selection.js +3 -3
- package/ui/list/ui.list.edit.decorator.static.js +3 -3
- package/ui/list/ui.list.edit.decorator.swipe.js +3 -3
- package/ui/list/ui.list.edit.decorator.switchable.button.js +3 -3
- package/ui/list/ui.list.edit.decorator.switchable.js +3 -3
- package/ui/list/ui.list.edit.decorator.switchable.slide.js +3 -3
- package/ui/list/ui.list.edit.decorator_menu_helper.js +3 -3
- package/ui/list/ui.list.edit.decorator_registry.js +3 -3
- package/ui/list/ui.list.edit.js +3 -3
- package/ui/list/ui.list.edit.provider.js +3 -3
- package/ui/list/ui.list.edit.search.js +3 -3
- package/ui/list/ui.list.edit.strategy.grouped.js +3 -3
- package/ui/list.d.ts +3 -3
- package/ui/list.js +3 -3
- package/ui/load_indicator.d.ts +3 -3
- package/ui/load_indicator.js +3 -3
- package/ui/load_panel.d.ts +3 -3
- package/ui/load_panel.js +3 -3
- package/ui/lookup.d.ts +3 -3
- package/ui/lookup.js +3 -3
- package/ui/map/provider.dynamic.bing.js +3 -3
- package/ui/map/provider.dynamic.google.js +3 -3
- package/ui/map/provider.dynamic.js +3 -3
- package/ui/map/provider.google_static.js +3 -3
- package/ui/map/provider.js +3 -3
- package/ui/map.d.ts +3 -3
- package/ui/map.js +3 -3
- package/ui/menu/ui.menu.js +3 -3
- package/ui/menu/ui.submenu.js +3 -3
- package/ui/menu.d.ts +3 -3
- package/ui/menu.js +3 -3
- package/ui/multi_view.d.ts +3 -3
- package/ui/multi_view.js +3 -3
- package/ui/nav_bar/item.js +3 -3
- package/ui/nav_bar.d.ts +3 -3
- package/ui/nav_bar.js +3 -3
- package/ui/notify.d.ts +3 -3
- package/ui/notify.js +3 -3
- package/ui/number_box/number_box.base.js +3 -3
- package/ui/number_box/number_box.caret.js +3 -3
- package/ui/number_box/number_box.js +3 -3
- package/ui/number_box/number_box.mask.js +3 -3
- package/ui/number_box/number_box.spin.js +3 -3
- package/ui/number_box.d.ts +3 -3
- package/ui/number_box.js +3 -3
- package/ui/overlay/ui.overlay.js +3 -3
- package/ui/overlay/utils.js +3 -3
- package/ui/overlay.d.ts +3 -3
- package/ui/overlay.js +3 -3
- package/ui/pager.js +3 -3
- package/ui/panorama/item.js +3 -3
- package/ui/panorama.d.ts +3 -3
- package/ui/panorama.js +3 -3
- package/ui/pivot/ui.pivot_tabs.js +3 -3
- package/ui/pivot.d.ts +3 -3
- package/ui/pivot.js +3 -3
- package/ui/pivot_grid/data_source.d.ts +3 -3
- package/ui/pivot_grid/data_source.js +3 -3
- package/ui/pivot_grid/local_store.js +3 -3
- package/ui/pivot_grid/remote_store.js +3 -3
- package/ui/pivot_grid/ui.pivot_grid.area_item.js +3 -3
- package/ui/pivot_grid/ui.pivot_grid.chart_integration.js +3 -3
- package/ui/pivot_grid/ui.pivot_grid.data_area.js +3 -3
- package/ui/pivot_grid/ui.pivot_grid.data_controller.js +3 -3
- package/ui/pivot_grid/ui.pivot_grid.export.js +3 -3
- package/ui/pivot_grid/ui.pivot_grid.field_chooser.js +3 -3
- package/ui/pivot_grid/ui.pivot_grid.field_chooser_base.js +3 -3
- package/ui/pivot_grid/ui.pivot_grid.fields_area.js +3 -3
- package/ui/pivot_grid/ui.pivot_grid.headers_area.js +3 -3
- package/ui/pivot_grid/ui.pivot_grid.js +3 -3
- package/ui/pivot_grid/ui.pivot_grid.summary_display_modes.js +3 -3
- package/ui/pivot_grid/ui.pivot_grid.utils.js +3 -3
- package/ui/pivot_grid/ui.sortable.js +3 -3
- package/ui/pivot_grid/xmla_store/xmla_store.js +3 -3
- package/ui/pivot_grid/xmla_store.d.ts +3 -3
- package/ui/pivot_grid/xmla_store.js +3 -3
- package/ui/pivot_grid.d.ts +3 -3
- package/ui/pivot_grid.js +3 -3
- package/ui/pivot_grid_field_chooser.d.ts +3 -3
- package/ui/pivot_grid_field_chooser.js +3 -3
- package/ui/popover.d.ts +3 -3
- package/ui/popover.js +3 -3
- package/ui/popup.d.ts +3 -3
- package/ui/popup.js +3 -3
- package/ui/progress_bar.d.ts +3 -3
- package/ui/progress_bar.js +3 -3
- package/ui/radio_group/radio_button.js +3 -3
- package/ui/radio_group/radio_group.js +3 -3
- package/ui/radio_group.d.ts +3 -3
- package/ui/radio_group.js +3 -3
- package/ui/range_slider.d.ts +3 -3
- package/ui/range_slider.js +3 -3
- package/ui/resizable.d.ts +3 -3
- package/ui/resizable.js +3 -3
- package/ui/responsive_box.d.ts +3 -3
- package/ui/responsive_box.js +3 -3
- package/ui/scheduler/ui.loading.js +3 -3
- package/ui/scheduler/ui.scheduler.agenda.js +3 -3
- package/ui/scheduler/ui.scheduler.appointment.js +3 -3
- package/ui/scheduler/ui.scheduler.appointment_form.js +3 -3
- package/ui/scheduler/ui.scheduler.appointment_model.js +3 -3
- package/ui/scheduler/ui.scheduler.appointment_tooltip.js +3 -3
- package/ui/scheduler/ui.scheduler.appointments.drop_down.js +3 -3
- package/ui/scheduler/ui.scheduler.appointments.js +3 -3
- package/ui/scheduler/ui.scheduler.appointments.layout_manager.js +3 -3
- package/ui/scheduler/ui.scheduler.appointments.strategy.agenda.js +3 -3
- package/ui/scheduler/ui.scheduler.appointments.strategy.base.js +3 -3
- package/ui/scheduler/ui.scheduler.appointments.strategy.horizontal.js +3 -3
- package/ui/scheduler/ui.scheduler.appointments.strategy.horizontal_month.js +3 -3
- package/ui/scheduler/ui.scheduler.appointments.strategy.horizontal_month_line.js +3 -3
- package/ui/scheduler/ui.scheduler.appointments.strategy.vertical.js +3 -3
- package/ui/scheduler/ui.scheduler.current_time_shader.horizontal.js +3 -3
- package/ui/scheduler/ui.scheduler.current_time_shader.js +3 -3
- package/ui/scheduler/ui.scheduler.current_time_shader.vertical.js +3 -3
- package/ui/scheduler/ui.scheduler.header.js +3 -3
- package/ui/scheduler/ui.scheduler.js +3 -3
- package/ui/scheduler/ui.scheduler.navigator.js +3 -3
- package/ui/scheduler/ui.scheduler.publisher_mixin.js +3 -3
- package/ui/scheduler/ui.scheduler.recurrence_editor.js +3 -3
- package/ui/scheduler/ui.scheduler.resource_manager.js +3 -3
- package/ui/scheduler/ui.scheduler.subscribes.js +3 -3
- package/ui/scheduler/ui.scheduler.table_creator.js +3 -3
- package/ui/scheduler/ui.scheduler.timeline.js +3 -3
- package/ui/scheduler/ui.scheduler.timeline_day.js +3 -3
- package/ui/scheduler/ui.scheduler.timeline_month.js +3 -3
- package/ui/scheduler/ui.scheduler.timeline_week.js +3 -3
- package/ui/scheduler/ui.scheduler.timeline_work_week.js +3 -3
- package/ui/scheduler/ui.scheduler.timezone_editor.js +3 -3
- package/ui/scheduler/ui.scheduler.timezones.js +3 -3
- package/ui/scheduler/ui.scheduler.timezones_data.js +3 -3
- package/ui/scheduler/ui.scheduler.work_space.grouped.strategy.horizontal.js +3 -3
- package/ui/scheduler/ui.scheduler.work_space.grouped.strategy.js +3 -3
- package/ui/scheduler/ui.scheduler.work_space.grouped.strategy.vertical.js +3 -3
- package/ui/scheduler/ui.scheduler.work_space.indicator.js +3 -3
- package/ui/scheduler/ui.scheduler.work_space.js +3 -3
- package/ui/scheduler/ui.scheduler.work_space_day.js +3 -3
- package/ui/scheduler/ui.scheduler.work_space_month.js +3 -3
- package/ui/scheduler/ui.scheduler.work_space_week.js +3 -3
- package/ui/scheduler/ui.scheduler.work_space_work_week.js +3 -3
- package/ui/scheduler/utils.recurrence.js +3 -3
- package/ui/scheduler.d.ts +3 -3
- package/ui/scheduler.js +3 -3
- package/ui/scroll_view/animator.js +3 -3
- package/ui/scroll_view/ui.events.emitter.gesture.scroll.js +3 -3
- package/ui/scroll_view/ui.scroll_view.js +3 -3
- package/ui/scroll_view/ui.scroll_view.native.pull_down.js +3 -3
- package/ui/scroll_view/ui.scroll_view.native.slide_down.js +3 -3
- package/ui/scroll_view/ui.scroll_view.native.swipe_down.js +3 -3
- package/ui/scroll_view/ui.scroll_view.simulated.js +3 -3
- package/ui/scroll_view/ui.scrollable.js +3 -3
- package/ui/scroll_view/ui.scrollable.native.js +3 -3
- package/ui/scroll_view/ui.scrollable.simulated.js +3 -3
- package/ui/scroll_view/ui.scrollbar.js +3 -3
- package/ui/scroll_view.d.ts +3 -3
- package/ui/scroll_view.js +3 -3
- package/ui/select_box.d.ts +3 -3
- package/ui/select_box.js +3 -3
- package/ui/selection/selection.js +3 -3
- package/ui/selection/selection.strategy.deferred.js +3 -3
- package/ui/selection/selection.strategy.js +3 -3
- package/ui/selection/selection.strategy.standard.js +3 -3
- package/ui/set_template_engine.d.ts +3 -3
- package/ui/set_template_engine.js +3 -3
- package/ui/shared/async_template_mixin.js +3 -3
- package/ui/shared/filtering.js +3 -3
- package/ui/shared/ui.editor_factory_mixin.js +3 -3
- package/ui/slide_out.d.ts +3 -3
- package/ui/slide_out.js +3 -3
- package/ui/slide_out_view.d.ts +3 -3
- package/ui/slide_out_view.js +3 -3
- package/ui/slider/ui.slider.js +3 -3
- package/ui/slider/ui.slider_handle.js +3 -3
- package/ui/slider.d.ts +3 -3
- package/ui/slider.js +3 -3
- package/ui/switch.d.ts +3 -3
- package/ui/switch.js +3 -3
- package/ui/tab_panel/item.js +3 -3
- package/ui/tab_panel.d.ts +3 -3
- package/ui/tab_panel.js +3 -3
- package/ui/tabs/item.js +3 -3
- package/ui/tabs.d.ts +3 -3
- package/ui/tabs.js +3 -3
- package/ui/tag_box.d.ts +3 -3
- package/ui/tag_box.js +3 -3
- package/ui/text_area.d.ts +3 -3
- package/ui/text_area.js +3 -3
- package/ui/text_box/text_box.js +3 -3
- package/ui/text_box/ui.text_editor.base.js +3 -3
- package/ui/text_box/ui.text_editor.js +3 -3
- package/ui/text_box/ui.text_editor.mask.js +3 -3
- package/ui/text_box/ui.text_editor.mask.rule.js +3 -3
- package/ui/text_box/utils.caret.js +3 -3
- package/ui/text_box.d.ts +3 -3
- package/ui/text_box.js +3 -3
- package/ui/themes.d.ts +3 -3
- package/ui/themes.js +3 -3
- package/ui/themes_callback.js +3 -3
- package/ui/tile_view.d.ts +3 -3
- package/ui/tile_view.js +3 -3
- package/ui/toast.d.ts +3 -3
- package/ui/toast.js +3 -3
- package/ui/toolbar/ui.toolbar.base.js +3 -3
- package/ui/toolbar/ui.toolbar.menu.js +3 -3
- package/ui/toolbar/ui.toolbar.strategy.action_sheet.js +3 -3
- package/ui/toolbar/ui.toolbar.strategy.drop_down_menu.js +3 -3
- package/ui/toolbar/ui.toolbar.strategy.js +3 -3
- package/ui/toolbar/ui.toolbar.strategy.list_base.js +3 -3
- package/ui/toolbar/ui.toolbar.strategy.list_bottom.js +3 -3
- package/ui/toolbar/ui.toolbar.strategy.list_top.js +3 -3
- package/ui/toolbar.d.ts +3 -3
- package/ui/toolbar.js +3 -3
- package/ui/tooltip/tooltip.js +3 -3
- package/ui/tooltip/ui.tooltip.js +3 -3
- package/ui/tooltip.d.ts +3 -3
- package/ui/tooltip.js +3 -3
- package/ui/track_bar.js +3 -3
- package/ui/tree_list/ui.tree_list.adaptivity.js +3 -3
- package/ui/tree_list/ui.tree_list.base.js +3 -3
- package/ui/tree_list/ui.tree_list.column_chooser.js +3 -3
- package/ui/tree_list/ui.tree_list.column_fixing.js +3 -3
- package/ui/tree_list/ui.tree_list.column_headers.js +3 -3
- package/ui/tree_list/ui.tree_list.columns_controller.js +3 -3
- package/ui/tree_list/ui.tree_list.columns_resizing_reordering.js +3 -3
- package/ui/tree_list/ui.tree_list.context_menu.js +3 -3
- package/ui/tree_list/ui.tree_list.core.js +3 -3
- package/ui/tree_list/ui.tree_list.data_controller.js +3 -3
- package/ui/tree_list/ui.tree_list.data_source_adapter.js +3 -3
- package/ui/tree_list/ui.tree_list.editing.js +3 -3
- package/ui/tree_list/ui.tree_list.editor_factory.js +3 -3
- package/ui/tree_list/ui.tree_list.error_handling.js +3 -3
- package/ui/tree_list/ui.tree_list.filter_builder.js +3 -3
- package/ui/tree_list/ui.tree_list.filter_panel.js +3 -3
- package/ui/tree_list/ui.tree_list.filter_row.js +3 -3
- package/ui/tree_list/ui.tree_list.filter_sync.js +3 -3
- package/ui/tree_list/ui.tree_list.grid_view.js +3 -3
- package/ui/tree_list/ui.tree_list.header_filter.js +3 -3
- package/ui/tree_list/ui.tree_list.header_panel.js +3 -3
- package/ui/tree_list/ui.tree_list.js +3 -3
- package/ui/tree_list/ui.tree_list.keyboard_navigation.js +3 -3
- package/ui/tree_list/ui.tree_list.master_detail.js +3 -3
- package/ui/tree_list/ui.tree_list.pager.js +3 -3
- package/ui/tree_list/ui.tree_list.rows.js +3 -3
- package/ui/tree_list/ui.tree_list.search.js +3 -3
- package/ui/tree_list/ui.tree_list.selection.js +3 -3
- package/ui/tree_list/ui.tree_list.sorting.js +3 -3
- package/ui/tree_list/ui.tree_list.state_storing.js +3 -3
- package/ui/tree_list/ui.tree_list.validating.js +3 -3
- package/ui/tree_list/ui.tree_list.virtual_columns.js +3 -3
- package/ui/tree_list/ui.tree_list.virtual_scrolling.js +3 -3
- package/ui/tree_list.d.ts +3 -3
- package/ui/tree_list.js +3 -3
- package/ui/tree_view/ui.tree_view.base.js +3 -3
- package/ui/tree_view/ui.tree_view.search.js +3 -3
- package/ui/tree_view.d.ts +3 -3
- package/ui/tree_view.js +3 -3
- package/ui/validation/default_adapter.js +3 -3
- package/ui/validation/validation_mixin.js +3 -3
- package/ui/validation_engine.d.ts +3 -3
- package/ui/validation_engine.js +4 -4
- package/ui/validation_group.d.ts +3 -3
- package/ui/validation_group.js +3 -3
- package/ui/validation_summary.d.ts +3 -3
- package/ui/validation_summary.js +3 -3
- package/ui/validator.d.ts +3 -3
- package/ui/validator.js +3 -3
- package/ui/widget/bindable_template.js +3 -3
- package/ui/widget/child_default_template.js +3 -3
- package/ui/widget/empty_template.js +3 -3
- package/ui/widget/function_template.js +3 -3
- package/ui/widget/jquery.template.js +3 -3
- package/ui/widget/selectors.js +3 -3
- package/ui/widget/ui.errors.js +3 -3
- package/ui/widget/ui.keyboard_processor.js +3 -3
- package/ui/widget/ui.search_box_mixin.js +3 -3
- package/ui/widget/ui.template_base.js +3 -3
- package/ui/widget/ui.widget.js +3 -3
- package/ui/widget/utils.ink_ripple.js +3 -3
- package/utils.d.ts +3 -3
- package/utils.js +3 -3
- package/viz/axes/axes_constants.js +3 -3
- package/viz/axes/base_axis.js +3 -3
- package/viz/axes/datetime_breaks.js +3 -3
- package/viz/axes/polar_axes.js +3 -3
- package/viz/axes/smart_formatter.js +3 -3
- package/viz/axes/tick.js +3 -3
- package/viz/axes/tick_generator.js +3 -3
- package/viz/axes/xy_axes.js +3 -3
- package/viz/bar_gauge.d.ts +3 -3
- package/viz/bar_gauge.js +3 -3
- package/viz/bullet.d.ts +3 -3
- package/viz/bullet.js +3 -3
- package/viz/chart.d.ts +3 -3
- package/viz/chart.js +3 -3
- package/viz/chart_components/advanced_chart.js +3 -3
- package/viz/chart_components/base_chart.js +3 -3
- package/viz/chart_components/crosshair.js +3 -3
- package/viz/chart_components/header_block.js +3 -3
- package/viz/chart_components/layout_manager.js +3 -3
- package/viz/chart_components/multi_axes_synchronizer.js +3 -3
- package/viz/chart_components/scroll_bar.js +3 -3
- package/viz/chart_components/shutter_zoom.js +3 -3
- package/viz/chart_components/tracker.js +3 -3
- package/viz/circular_gauge.d.ts +3 -3
- package/viz/circular_gauge.js +3 -3
- package/viz/components/chart_theme_manager.js +3 -3
- package/viz/components/consts.js +3 -3
- package/viz/components/data_validator.js +3 -3
- package/viz/components/legend.js +3 -3
- package/viz/components/parse_utils.js +3 -3
- package/viz/components/tracker.js +3 -3
- package/viz/core/base_theme_manager.js +3 -3
- package/viz/core/base_widget.js +3 -3
- package/viz/core/data_source.js +3 -3
- package/viz/core/errors_warnings.js +3 -3
- package/viz/core/export.js +3 -3
- package/viz/core/format.js +3 -3
- package/viz/core/helpers.js +3 -3
- package/viz/core/layout.js +3 -3
- package/viz/core/layout_element.js +3 -3
- package/viz/core/loading_indicator.js +3 -3
- package/viz/core/renderers/animation.js +3 -3
- package/viz/core/renderers/renderer.js +3 -3
- package/viz/core/series_family.js +3 -3
- package/viz/core/themes/android.js +3 -3
- package/viz/core/themes/generic.carmine.js +3 -3
- package/viz/core/themes/generic.contrast.compact.js +3 -3
- package/viz/core/themes/generic.contrast.js +3 -3
- package/viz/core/themes/generic.dark.compact.js +3 -3
- package/viz/core/themes/generic.dark.js +3 -3
- package/viz/core/themes/generic.darkmoon.js +3 -3
- package/viz/core/themes/generic.darkviolet.js +3 -3
- package/viz/core/themes/generic.greenmist.js +3 -3
- package/viz/core/themes/generic.light.compact.js +3 -3
- package/viz/core/themes/generic.light.js +3 -3
- package/viz/core/themes/generic.softblue.js +3 -3
- package/viz/core/themes/ios.js +3 -3
- package/viz/core/themes/material.js +3 -3
- package/viz/core/themes/win.js +3 -3
- package/viz/core/title.js +3 -3
- package/viz/core/tooltip.js +3 -3
- package/viz/core/utils.js +3 -3
- package/viz/export.d.ts +3 -3
- package/viz/export.js +3 -3
- package/viz/funnel/funnel.js +3 -3
- package/viz/funnel/item.js +3 -3
- package/viz/funnel/label.js +3 -3
- package/viz/funnel/tiling.funnel.js +3 -3
- package/viz/funnel/tiling.js +3 -3
- package/viz/funnel/tiling.pyramid.js +3 -3
- package/viz/funnel/tooltip.js +3 -3
- package/viz/funnel/tracker.js +3 -3
- package/viz/funnel.d.ts +3 -3
- package/viz/funnel.js +3 -3
- package/viz/gauges/bar_gauge.js +3 -3
- package/viz/gauges/base_gauge.js +3 -3
- package/viz/gauges/base_indicators.js +3 -3
- package/viz/gauges/base_range_container.js +3 -3
- package/viz/gauges/circular_gauge.js +3 -3
- package/viz/gauges/circular_indicators.js +3 -3
- package/viz/gauges/circular_range_container.js +3 -3
- package/viz/gauges/common.js +3 -3
- package/viz/gauges/linear_gauge.js +3 -3
- package/viz/gauges/linear_indicators.js +3 -3
- package/viz/gauges/linear_range_container.js +3 -3
- package/viz/gauges/theme_manager.js +3 -3
- package/viz/gauges/tracker.js +3 -3
- package/viz/linear_gauge.d.ts +3 -3
- package/viz/linear_gauge.js +3 -3
- package/viz/palette.d.ts +3 -3
- package/viz/palette.js +3 -3
- package/viz/pie_chart.d.ts +3 -3
- package/viz/pie_chart.js +3 -3
- package/viz/polar_chart.d.ts +3 -3
- package/viz/polar_chart.js +3 -3
- package/viz/range_selector/common.js +3 -3
- package/viz/range_selector/range_selector.js +3 -3
- package/viz/range_selector/range_view.js +3 -3
- package/viz/range_selector/series_data_source.js +3 -3
- package/viz/range_selector/slider.js +3 -3
- package/viz/range_selector/slider_marker.js +3 -3
- package/viz/range_selector/sliders_controller.js +3 -3
- package/viz/range_selector/theme_manager.js +3 -3
- package/viz/range_selector/tracker.js +3 -3
- package/viz/range_selector.d.ts +3 -3
- package/viz/range_selector.js +3 -3
- package/viz/series/area_series.js +3 -3
- package/viz/series/bar_series.js +3 -3
- package/viz/series/base_series.js +3 -3
- package/viz/series/bubble_series.js +3 -3
- package/viz/series/financial_series.js +3 -3
- package/viz/series/helpers/range_data_calculator.js +3 -3
- package/viz/series/line_series.js +3 -3
- package/viz/series/pie_series.js +3 -3
- package/viz/series/points/bar_point.js +3 -3
- package/viz/series/points/base_point.js +3 -3
- package/viz/series/points/bubble_point.js +3 -3
- package/viz/series/points/candlestick_point.js +3 -3
- package/viz/series/points/label.js +3 -3
- package/viz/series/points/pie_point.js +3 -3
- package/viz/series/points/polar_point.js +3 -3
- package/viz/series/points/range_bar_point.js +3 -3
- package/viz/series/points/range_symbol_point.js +3 -3
- package/viz/series/points/stock_point.js +3 -3
- package/viz/series/points/symbol_point.js +3 -3
- package/viz/series/range_series.js +3 -3
- package/viz/series/scatter_series.js +3 -3
- package/viz/series/stacked_series.js +3 -3
- package/viz/sparkline.d.ts +3 -3
- package/viz/sparkline.js +3 -3
- package/viz/sparklines/base_sparkline.js +3 -3
- package/viz/sparklines/bullet.js +3 -3
- package/viz/sparklines/sparkline.js +3 -3
- package/viz/themes.d.ts +3 -3
- package/viz/themes.js +3 -3
- package/viz/translators/category_translator.js +3 -3
- package/viz/translators/datetime_translator.js +3 -3
- package/viz/translators/interval_translator.js +3 -3
- package/viz/translators/logarithmic_translator.js +3 -3
- package/viz/translators/numeric_translator.js +3 -3
- package/viz/translators/range.js +3 -3
- package/viz/translators/translator1d.js +3 -3
- package/viz/translators/translator2d.js +3 -3
- package/viz/tree_map/api.js +3 -3
- package/viz/tree_map/colorizing.discrete.js +3 -3
- package/viz/tree_map/colorizing.gradient.js +3 -3
- package/viz/tree_map/colorizing.js +3 -3
- package/viz/tree_map/colorizing.range.js +3 -3
- package/viz/tree_map/common.js +3 -3
- package/viz/tree_map/drilldown.js +3 -3
- package/viz/tree_map/hover.js +3 -3
- package/viz/tree_map/node.js +3 -3
- package/viz/tree_map/plain_data_source.js +3 -3
- package/viz/tree_map/selection.js +3 -3
- package/viz/tree_map/states.js +3 -3
- package/viz/tree_map/tiling.js +3 -3
- package/viz/tree_map/tiling.rotated_slice_and_dice.js +3 -3
- package/viz/tree_map/tiling.slice_and_dice.js +3 -3
- package/viz/tree_map/tiling.squarified.base.js +3 -3
- package/viz/tree_map/tiling.squarified.js +3 -3
- package/viz/tree_map/tiling.strip.js +3 -3
- package/viz/tree_map/tooltip.js +3 -3
- package/viz/tree_map/tracker.js +3 -3
- package/viz/tree_map/tree_map.base.js +3 -3
- package/viz/tree_map/tree_map.js +3 -3
- package/viz/tree_map.d.ts +3 -3
- package/viz/tree_map.js +3 -3
- package/viz/utils.d.ts +3 -3
- package/viz/utils.js +3 -3
- package/viz/vector_map/control_bar.js +3 -3
- package/viz/vector_map/data_exchanger.js +3 -3
- package/viz/vector_map/event_emitter.js +3 -3
- package/viz/vector_map/gesture_handler.js +3 -3
- package/viz/vector_map/layout.js +3 -3
- package/viz/vector_map/legend.js +3 -3
- package/viz/vector_map/map_layer.js +3 -3
- package/viz/vector_map/projection.d.ts +3 -3
- package/viz/vector_map/projection.js +3 -3
- package/viz/vector_map/projection.main.js +3 -3
- package/viz/vector_map/theme_manager.js +3 -3
- package/viz/vector_map/tooltip_viewer.js +3 -3
- package/viz/vector_map/tracker.js +3 -3
- package/viz/vector_map/vector_map.js +3 -3
- package/viz/vector_map.d.ts +3 -3
- package/viz/vector_map.js +3 -3
package/dist/js/dx.viz-web.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* DevExtreme (dx.viz-web.js)
|
|
3
|
-
* Version: 18.1.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 18.1.17
|
|
4
|
+
* Build date: Fri Dec 03 2021
|
|
5
5
|
*
|
|
6
|
-
* Copyright (c) 2012 -
|
|
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 o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=763)}([function(e,t,n){var i=n(1).isPlainObject,o=function(e,t,n){e=e||{};for(var i in t)if(t.hasOwnProperty(i)){var o=t[i];i in e&&!n||(e[i]=o)}return e},a=function e(t){t=t||{};var n=1,o=!1;for("boolean"==typeof t&&(o=t,t=arguments[1]||{},n++);n<arguments.length;n++){var a=arguments[n];if(null!=a)for(var r in a){var s,l=t[r],c=a[r],d=!1;"__proto__"!==r&&t!==c&&(o&&c&&(i(c)||(d=Array.isArray(c)))?(s=d?l&&Array.isArray(l)?l:[]:l&&i(l)?l:{},t[r]=e(o,s,c)):void 0!==c&&(t[r]=c))}}return t};t.extend=a,t.extendFromObject=o},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o={"[object Array]":"array","[object Date]":"date","[object Object]":"object","[object String]":"string","[object Null]":"null"},a=function(e){var t=Object.prototype.toString.call(e);return"object"===("undefined"==typeof e?"undefined":i(e))?o[t]||"object":"undefined"==typeof e?"undefined":i(e)},r=function(e){return"boolean"==typeof e},s=function(e){return h(e)&&e.toString().indexOf("e")!==-1},l=function(e){return"date"===a(e)},c=function(e){return null!==e&&void 0!==e},d=function(e){return"function"==typeof e},u=function(e){return"string"==typeof e},h=function(e){return"number"==typeof e&&isFinite(e)||!isNaN(e-parseFloat(e))},p=function(e){return"object"===a(e)},f=function(e){var t;for(t in e)return!1;return!0},g=function(e){if(!e||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e),n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&Object.toString.call(n)===Object.toString.call(Object)},_=function(e){return["object","array","function"].indexOf(a(e))===-1},m=function(e){return null!=e&&e===e.window},v=function(e){return!(!e.jquery&&!e.dxRenderer)},x=function(e){return e&&d(e.then)},w=function(e){return e&&d(e.done)&&d(e.fail)};t.isBoolean=r,t.isExponential=s,t.isDate=l,t.isDefined=c,t.isFunction=d,t.isString=u,t.isNumeric=h,t.isObject=p,t.isEmptyObject=f,t.isPlainObject=g,t.isPrimitive=_,t.isWindow=m,t.isRenderer=v,t.isPromise=x,t.isDeferred=w,t.type=a},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},o=function(e,t){if(e){if("length"in e)for(var n=0;n<e.length&&t.call(e[n],n,e[n])!==!1;n++);else for(var i in e)if(t.call(e[i],i,e[i])===!1)break;return e}};t.map=i,t.each=o},function(e,t,n){var i,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=n(30),r=n(7),s=r.when,l=r.Deferred,c=n(3).each,d=n(1),u=function(e,t){return d.isDefined(e)?e:t},h=function(e,t){var n,i=new l,o=t||this,a={promise:i.promise(),abort:function(){clearTimeout(n),i.rejectWith(o)}},r=function(){var t=e.call(o);t&&t.done&&d.isFunction(t.done)?t.done(function(){i.resolveWith(o)}):i.resolveWith(o)};return n=(arguments[2]||setTimeout)(r,"number"==typeof t?t:0),a},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 o=i,a=g.length;i=e;var r=t();return r||(g.length>a?r=s.apply(this,g.slice(a)):n&&n.resolve()),i=o,n&&r&&r.done&&r.done(n.resolve).fail(n.reject),!i&&p.length&&("render"===f.shift()?m:v)(p.shift(),g.shift()),r||s()},m=function(e,t){return _("render",e,t)},v=function(e,t){return _("update",e,t)},x=function(e){return function(){var t=this;return _("render",function(){return e.call(t)})}},w=function(e){return function(){var t=this;return _("update",function(){return e.call(t)})}},b=function(e,t,n){var i=[],o=0;return c(t,function(t,a){var r=0,s=n?n(a):a;c(e,function(e,t){var n=s[e];if(void 0!==n)return y(n,t)?void r++:(r=-1,!1)}),r<o||(r>o&&(i.length=0,o=r),i.push(a))}),i},y=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){var n=!1;return c(e,function(e,i){if(i!==t[e])return n=!0,!1}),!n}return e===t},C=function(e){switch("undefined"==typeof e?"undefined":o(e)){case"string":return e.split(/\s+/,2);case"object":return[e.x||e.h,e.y||e.v];case"number":return[e];default:return e}},k=function(e){switch("undefined"==typeof e?"undefined":o(e)){case"string":return e.split(/\s+/,4);case"object":return[e.x||e.h||e.left,e.y||e.v||e.top,e.x||e.h||e.right,e.y||e.v||e.bottom];case"number":return[e];default:return e}},S=function(e){var t=d.isString(e)?e:e.toString(),n=t.match(/[^a-zA-Z0-9_]/g);return n&&c(n,function(e,n){t=t.replace(n,"__"+n.charCodeAt()+"__")}),t},I=function(e){var t=e.match(/__\d+__/g);return t&&t.forEach(function(t){var n=parseInt(t.replace("__",""));e=e.replace(t,String.fromCharCode(n))}),e},T=function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!E(e[i],t[i],n+1))return!1;return!0},D=function(e,t,n){for(var i in e)if(e.hasOwnProperty(i)&&!E(e[i],t[i],n+1))return!1;for(i in t)if(!(i in e))return!1;return!0},E=function(e,t,n){if(e===t)return!0;var i=3;return n=n||0,n>=i||(d.isObject(e)&&d.isObject(t)?D(e,t,n):Array.isArray(e)&&Array.isArray(t)?T(e,t,n):!(!d.isDate(e)||!d.isDate(t))&&e.getTime()===t.getTime())},A=function(e){if(d.isObject(e)||Array.isArray(e))try{var t=JSON.stringify(e);return"{}"===t?e:t}catch(t){return e}return e},B=function(e){return e.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},O=function(e){var t=a().serverDecimalSeparator;return d.isDefined(e)&&(e=e.toString().replace(".",t)),e},R=function(){},M=function(e,t,n){for(var i,o=[],a=!n,r=0;r<e.length;r++)i=!!t(e[r],r),i===a&&o.push(e[r]);return o};t.ensureDefined=u,t.executeAsync=h,t.deferRender=m,t.deferRenderer=x,t.deferUpdate=v,t.deferUpdater=w,t.splitPair=C,t.splitQuad=k,t.findBestMatches=b,t.normalizeKey=S,t.denormalizeKey=I,t.equalByValue=E,t.getKeyHash=A,t.escapeRegExp=B,t.applyServerDecimalSeparator=O,t.noop=R,t.grep=M},function(e,t,n){var i,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=n(107),r=n(0).extend,s=n(12),l=n(6),c=l.getWindow(),d=n(55),u=n(1),h=n(19),p=u.isWindow,f=u.isFunction,g=u.isString,_=n(17),m=n(171),v=n(215),x="dxEmptyEventType",w={mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},b={focusin:"focus",focusout:"blur"},y=["blur","focusout","focus","focusin","load"],C=["touchmove","wheel","mousewheel"],k=function(e,t){return!p(e)&&"#document"!==e.nodeName&&s.elementMatches(e,t)},S=new m,I=0,T=function(){var e={};return a.add(function(t,n){e[t]=n}),{getField:function(t,n){return e[t]&&e[t][n]},callMethod:function(t,n,i,o){return e[t]&&e[t][n]&&e[t][n].apply(i,o)}}}(),D=function e(t,n){var i=t[0];if(i)if(s.isNode(i)||p(i))n.apply(z,t);else{if(g(i)||!("length"in i))throw _.Error("E0025");var o=Array.prototype.slice.call(t,0);Array.prototype.forEach.call(i,function(t){o[0]=t,e(o,n)})}},E=function(e){return function(){D(arguments,e)}},A=function(e,t){var n=S.get(e);t=t||"";var o=t.split("."),a=o.slice(1),r=!!o[0];t=o[0]||x,n||(n={},S.set(e,n)),n[t]||(n[t]={handleObjects:[],nativeHandler:null});var l=n[t];return{addHandler:function(n,o,c){var d=function(i,o){var a,r,s=[i],l=i.currentTarget,d=i.relatedTarget;t in w&&(a=d&&l&&(d===l||l.contains(d))),void 0!==o&&s.push(o),T.callMethod(t,"handle",e,[i,c]),a||(r=n.apply(l,s)),r===!1&&(i.preventDefault(),i.stopPropagation())},u=function(t,n){if(!i||t.type!==i)if(t.data=c,t.delegateTarget=e,o)for(var a=t.target;a&&a!==e;)k(a,o)&&(t.currentTarget=a,d(t,n)),a=a.parentNode;else d(t,n)},h={handler:n,wrappedHandler:u,selector:o,type:t,data:c,namespace:a.join("."),namespaces:a,guid:++I};l.handleObjects.push(h);var p,f=1===l.handleObjects.length,g=f&&r;g&&(g=!T.callMethod(t,"setup",e,[c,a,n])),g&&(l.nativeHandler=B(t),C.indexOf(t)>-1&&(p={passive:!1}),l.removeListener=s.listen(e,w[t]||t,l.nativeHandler,p)),T.callMethod(t,"add",e,[h])},removeHandler:function(i,o){var s=function(t){var r=n[t];if(!r.handleObjects.length)return void delete n[t];var s;r.handleObjects=r.handleObjects.filter(function(n){var r=a.length&&!O(n.namespaces,a)||i&&n.handler!==i||o&&n.selector!==o;return r||(s=n.handler,T.callMethod(t,"remove",e,[n])),r});var l=!r.handleObjects.length,c=l&&t!==x;c&&(T.callMethod(t,"teardown",e,[a,s]),r.nativeHandler&&r.removeListener(),delete n[t])};if(r)s(t);else for(var l in n)s(l);var c=0===Object.keys(n).length;c&&S.delete(e)},callHandlers:function(e,t){var i=!1,o=function(n){i||a.length&&!O(n.namespaces,a)||(n.wrappedHandler(e,t),i=e.isImmediatePropagationStopped())};l.handleObjects.forEach(o),a.length&&n[x]&&n[x].handleObjects.forEach(o)}}},B=function(e){return function(t,n){var i=A(this,e);t=z.Event(t),i.callHandlers(t,n)}},O=function(e,t){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])<0)return!1;return!0},R=function(e){return function(t,n,i,o,a){a||(a=o,o=void 0),"string"!=typeof i&&(o=i,i=void 0),a||"string"!=typeof n||(a=o||i,i=void 0,o=void 0),e(t,n,i,o,a)}},M=function(e){return function(t,n,i,o){"function"==typeof i&&(o=i,i=void 0),e(t,n,i,o)}},P=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 z.Event?n:z.Event(n),i)}},V=function(e){return function(t,n){return this instanceof z.Event?(t||(t={}),"string"==typeof t&&(t={type:t}),n||(n={}),void e.call(this,t,n)):new z.Event(t,n)}},F=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":o(n))){var i=Array.prototype.slice.call(arguments,0);for(var a in n)i[1]=a,i[i.length-1]=n[a],t.apply(this,i)}else t.apply(this,arguments)}},L=function(e,t){var n=b[e]||e,o=function(e,t){return"click"===e&&"a"===t.localName};o(e,t)||f(t[n])&&(i=e,t[n](),i=void 0)},H=function(e){var t=function(e){var t=/^(?:mouse|pointer|contextmenu|drag|drop)|click/;return!e.which&&void 0!==e.button&&t.test(e.type)},n=function(e){return null==e.which&&0===e.type.indexOf("key")};if(n(e))return null!=e.charCode?e.charCode:e.keyCode;if(t(e)){var i={1:1,2:3,3:1,4:2};return i[e.button]}return e.which},z=d({on:E(R(F(function(e,t,n,i,o){var a=A(e,t);a.addHandler(o,n,i)}))),one:E(R(function(e,t,n,i,o){var a=function i(){z.off(e,t,n,i),o.apply(this,arguments)};z.on(e,t,n,i,a)})),off:E(M(F(function(e,t,n,i){var o=A(e,t);o.removeHandler(i,n)}))),trigger:E(P(function(e,t,n){var i=t.type,o=A(e,t.type);T.callMethod(i,"trigger",e,[t,n]),o.callHandlers(t,n);var a=T.getField(i,"noBubble")||t.isPropagationStopped()||y.indexOf(i)!==-1;if(!a){var s=[],l=function e(t){var n=t.parentNode;n&&(s.push(n),e(n))};l(e),s.push(c);for(var d=0;s[d]&&!t.isPropagationStopped();){var u=A(s[d],t.type);u.callHandlers(r(t,{currentTarget:s[d]}),n),d++}}(e.nodeType||p(e))&&(T.callMethod(i,"_default",e,[t,n]),L(i,e))})),triggerHandler:E(P(function(e,t,n){var i=A(e,t.type);i.callHandlers(t,n)}))}),N=function(e){e&&(z.Event=e,z.Event.prototype=e.prototype)};N(V(function(e,t){var n=this,i=!1,o=!1,a=!1;r(n,e),(e instanceof z.Event||l.hasWindow()&&e instanceof c.Event)&&(n.originalEvent=e,n.currentTarget=void 0),e instanceof z.Event||r(n,{isPropagationStopped:function(){return!!(i||n.originalEvent&&n.originalEvent.propagationStopped)},stopPropagation:function(){i=!0,n.originalEvent&&n.originalEvent.stopPropagation()},isImmediatePropagationStopped:function(){return o},stopImmediatePropagation:function(){this.stopPropagation(),o=!0,n.originalEvent&&n.originalEvent.stopImmediatePropagation()},isDefaultPrevented:function(){return!!(a||n.originalEvent&&n.originalEvent.defaultPrevented)},preventDefault:function(){a=!0,n.originalEvent&&n.originalEvent.preventDefault()}}),$("which",H,n),0===e.type.indexOf("touch")&&(delete t.pageX,delete t.pageY),r(n,t),n.guid=++I}));var $=function(e,t,n){Object.defineProperty(n||z.Event.prototype,e,{enumerable:!0,configurable:!0,get:function(){return this.originalEvent&&t(this.originalEvent)},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})};v($);var W=h(),G=h();z.set=function(e){W.fire(),z.inject(e),N(e.Event),G.fire()},z.subscribeGlobal=function(){D(arguments,R(function(){var e=arguments;z.on.apply(this,e),W.add(function(){var t=Array.prototype.slice.call(e,0);t.splice(3,1),z.off.apply(this,t)}),G.add(function(){z.on.apply(this,e)})}))},z.forcePassiveFalseEventNames=C,e.exports=z},function(e,t,n){var i=n(12),o="undefined"!=typeof window,a=o&&window;a||(a={},a.window=a),e.exports={hasWindow:function(){return o},getWindow:function(){return a},hasProperty:function(e){return this.hasWindow()&&e in a},defaultScreenFactorFunc:function(e){return e<768?"xs":e<992?"sm":e<1200?"md":"lg"},getCurrentScreenFactor:function(e){var t=e||this.defaultScreenFactorFunc,n=i.getDocumentElement().clientWidth;return t(n)},openWindow:function(){return this.hasProperty("open")?a.open():null},getNavigator:function(){return this.hasWindow()?a.navigator:{userAgent:""}}}},function(e,t,n){var i=n(1),o=i.isPromise,a=i.isDeferred,r=n(0).extend,s=n(19),l=[{method:"resolve",handler:"done",state:"resolved"},{method:"reject",handler:"fail",state:"rejected"},{method:"notify",handler:"progress"}],c=function(){var e=this;this._state="pending",this._promise={},l.forEach(function(t){var n=t.method;this[n+"Callbacks"]=new s,this[n]=function(){return this[n+"With"](this._promise,arguments)}.bind(this),this._promise[t.handler]=function(t){if(!t)return this;var i=e[n+"Callbacks"];return i.fired()?t.apply(e[n+"Context"],e[n+"Args"]):i.add(function(e,n){t.apply(e,n)}.bind(this)),this}}.bind(this)),this._promise.always=function(e){return this.done(e).fail(e)},this._promise.catch=function(e){return this.then(null,e)},this._promise.then=function(e,t){var n=new c;return["done","fail"].forEach(function(i){var r="done"===i?e:t;this[i](function(){if(!r)return void n["done"===i?"resolve":"reject"].apply(this,arguments);var e=r&&r.apply(this,arguments);a(e)?e.done(n.resolve).fail(n.reject):o(e)?e.then(n.resolve,n.reject):n.resolve.apply(this,e?[e]:arguments)})}.bind(this)),n.promise()},this._promise.state=function(){return e._state},this._promise.promise=function(t){return t?r(t,e._promise):e._promise},this._promise.promise(this)};l.forEach(function(e){var t=e.method,n=e.state;c.prototype[t+"With"]=function(e,i){var o=this[t+"Callbacks"];return"pending"===this.state()&&(this[t+"Args"]=i,this[t+"Context"]=e,n&&(this._state=n),o.fire(e,i)),this}}),t.fromPromise=function(e,t){if(a(e))return e;if(o(e)){var n=new c;return e.then(function(){n.resolveWith.apply(n,[t].concat([[].slice.call(arguments)]))},function(){n.rejectWith.apply(n,[t].concat([[].slice.call(arguments)]))}),n}return(new c).resolveWith(t,[e])};var d=function(){if(1===arguments.length)return t.fromPromise(arguments[0]);for(var e=[].slice.call(arguments),n=[],i=0,o=new c,r=function(t){return function(a){n[t]=this,e[t]=arguments.length>1?[].slice.call(arguments):a,i++,i===e.length&&o.resolveWith(n,e)}},s=0;s<e.length;s++)a(e[s])?e[s].promise().done(r(s)).fail(o.reject):i++;return i===e.length&&o.resolveWith(n,e),o.promise()};t.setStrategy=function(e){c=e.Deferred,d=e.when},t.Deferred=function(){return new c},t.when=function(){return d.apply(this,arguments)}},function(e,t,n){var i=n(2),o=n(138),a=n(17),r=n(100),s=function(e,t,n){n?t[e]=n:n=t,r.name(n,e),o.fire(e,n)},l=function(e,t){i.fn[e]=function(n){var i,o="string"==typeof n;if(o){var r=n,s=[].slice.call(arguments).slice(1);this.each(function(){var n=t.getInstance(this);if(!n)throw a.Error("E0009",e);var o=n[r],l=o.apply(n,s);void 0===i&&(i=l)})}else this.each(function(){var e=t.getInstance(this);e?e.option(n):new t(this,n)}),i=this;return i}};o.add(l),e.exports=s},function(e,t,n){var i=n(2),o=n(5),a=n(17),r=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}}(),d=function(e){return"dx"===c(e)},u=function(e){return"mouse"===c(e)},h=function(e){return"touch"===c(e)},p=function(e){return"pointer"===c(e)},f=function(e){return u(e)||(p(e)||d(e))&&"mouse"===e.pointerType},g=function(e){return h(e)||(p(e)||d(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}},x=function(e,t){return{x:t.x-e.x,y:t.y-e.y,time:t.time-e.time||1}},w=function(e){return h(e)?(e.originalEvent.touches||[]).length:d(e)?(e.pointers||[]).length:0},b=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&&r(t):void 0)},y=function(e){return e},C=function(e){y=e},k=function(e){return y(o.Event(e,e),e)},S=function(e,t){var n=k(e);return t&&s(n,t),n},I=function(e){var t=S(e.originalEvent,e);return o.trigger(e.delegateTarget||t.target,t),t},T=function e(t,n){if(!n)throw a.Error("E0017");return"string"==typeof t?t.indexOf(" ")===-1?t+"."+n:e(t.split(/\s+/g),n):(l(t,function(e,i){t[e]=i+"."+n}),t.join(" "))};e.exports={eventSource:c,isPointerEvent:p,isMouseEvent:f,isTouchEvent:g,isKeyboardEvent:_,isFakeClickEvent:m,hasTouches:w,eventData:v,eventDelta:x,needSkipEvent:b,createEvent:S,fireEvent:I,addNamespace:T,setEventFixMethod:C}},function(e,t,n){var i=n(17),o=n(1),a=function(e,t,n){return function(){var i=this.callBase;this.callBase=e[t];try{return n.apply(this,arguments)}finally{this.callBase=i}}},r=function(e){var t=function(){};return t.prototype=e.prototype,new t},s=function(e){var t,n,i,o=this;if(!e)return o;for(n in e)i=e[n],t="function"==typeof o.prototype[n]&&"function"==typeof i,o.prototype[n]=t?a(o.parent.prototype,n,i):i;return o},l=function(){var e,t,n,i=this;for(n=0;n<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)},d=function(){throw i.Error("E0001")},u=function(){var e=Object.prototype.hasOwnProperty;return function(t,n){for(var i in t){if(!e.call(t,i))return;n[i]=t[i]}}}(),h=function(){};h.inherit=function(e){var t=function(){if(!this||o.isWindow(this)||"function"!=typeof this.constructor)throw i.Error("E0003");var e,t=this,n=t.ctor,a=t.constructor._includedCtors,r=t.constructor._includedPostCtors;for(e=0;e<a.length;e++)a[e].call(t);for(n&&n.apply(t,arguments),e=0;e<r.length;e++)r[e].call(t)};return t.prototype=r(this),u(this,t),t.inherit=this.inherit,t.abstract=d,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=d,e.exports=h},function(e,t,n){var i=n(1).isDefined,o=n(3).each,a=n(54),r=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 o(e,function(e,i){var o=u(i,t);o!==-1&&n.push(i)}),n},c=function(e,t){if(!Array.isArray(e)||0===e.length)return[];if(!Array.isArray(t)||0===t.length)return e.slice();var n=[];return o(e,function(e,i){var o=u(i,t);o===-1&&n.push(i)}),n},d=function(e,t,n,r){var s={},l=0;return o(e,function(e,o){e=o[t],i(e)&&(s[e]=s[e]||[],o===n?s[e].unshift(o):s[e].push(o),delete o[t])}),a.orderEach(s,function(e,n){o(n,function(){e>=0&&(this[t]=l++)})}),o(e,function(){i(this[t])||r&&!r(this)||(this[t]=l++)}),l},u=function(e,t){if(!t)return-1;var n=Array.isArray(t)?t:t.toArray();return n.indexOf(e)},h=function(e,t){for(var n=0;n<t.length;n++)e[e.length]=t[n];return e};t.isEmpty=r,t.wrapToArray=s,t.intersection=l,t.removeDuplicates=c,t.normalizeIndexes=d,t.inArray=u,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},o=n(55),a=n(4).noop,r={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),o=0;o<i.length;o++)if(i[o]===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(" "),o=i.indexOf(t);n&&o<0&&(e.className=e.className?e.className+" "+t:t),!n&&o>=0&&(i.splice(o,1),e.className=i.join(" "))}},setStyle:function(e,t,n){e.style[t]=n||""},_document:"undefined"==typeof document?void 0:document,getDocument:function(){return this._document},getActiveElement:function(){return this._document.activeElement},getBody:function(){return this._document.body},createDocumentFragment:function(){return this._document.createDocumentFragment()},getDocumentElement:function(){return this._document.documentElement},getLocation:function(){return this._document.location},getSelection:function(){return this._document.selection},getReadyState:function(){return this._document.readyState},getHead:function(){return this._document.head},hasDocumentProperty:function(e){return e in this._document},listen:function(e,t,n,i){return e&&"addEventListener"in e?(e.addEventListener(t,n,i),function(){e.removeEventListener(t,n)}):a}};e.exports=o(r)},function(e,t,n){var i,o=n(2),a=n(12),r=n(6),s=r.getWindow(),l=n(5),c=n(17),d=n(11).inArray,u=n(1),h=u.isDefined,p=u.isRenderer,f=n(216),g=function(){var e=a.getActiveElement();e&&e!==a.getBody()&&e.blur&&e.blur()},_=function(){var e=s.getSelection();if(e&&"Caret"!==e.type)if(e.empty)e.empty();else if(e.removeAllRanges)try{e.removeAllRanges()}catch(e){}},m=function(e,t){var n=o(e),i=o(t);if(n[0]===i[0])return n[0];for(var a=n.parents(),r=i.parents(),s=Math.min(a.length,r.length),l=-s;l<0;l++)if(a.get(l)===r.get(l))return a.get(l)},v=function(e){var t=".dx-visibility-change-handler";return function(n){for(var i=o(n||"body"),a=i.filter(t).add(i.find(t)),r=0;r<a.length;r++)l.triggerHandler(a[r],e)}},x=function(){var e=0;return function(t){return(t||"")+e++}}(),w="data-options",b=function(e){var t,n=o(e).attr(w)||"";"{"!==n.trim().charAt(0)&&(n="{"+n+"}");try{t=new Function("return "+n)()}catch(e){throw c.Error("E3018",e,n)}return t},y=function(e,t){var n=[],i="["+w+"]",a=e.find(i).add(e.filter(i));return a.each(function(e,i){var a=o(i),r=b(i);for(var s in r)(!t||d(s,t)>-1)&&a[s]&&(a[s](r[s]),n.push(a[s]("instance")))}),n},C=function(e){if(!s.WinJS)return o(f.parseHTML(e));var t=o("<div>");return s.WinJS.Utilities.setInnerHTMLUnsafe(t.get(0),e),t.contents()},k=function e(t){var n=h(t)&&(t.nodeType||p(t))?o(t):o("<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},S=function(e,t,n){n?e.attr(t,n):e.removeAttr(t)},I=function(e,t){var n=e.originalEvent&&e.originalEvent.clipboardData||s.clipboardData;return 1===arguments.length?n&&n.getData("Text"):void(n&&n.setData("Text",t))},T=function(e,t){return!!t&&(t=a.isTextNode(t)?t.parentNode:t,a.isDocument(e)?e.documentElement.contains(t):e.contains(t))},D=function(e){return i(e)},E=function(e){i=e};E(function(e){return e&&e.get(0)}),t.setPublicElementWrapper=E,t.resetActiveElement=g,t.createMarkupFromString=C,t.triggerShownEvent=v("dxshown"),t.triggerHidingEvent=v("dxhiding"),t.triggerResizeEvent=v("dxresize"),t.getElementOptions=b,t.createComponents=y,t.normalizeTemplateElement=k,t.clearSelection=_,t.uniqueId=x,t.closestCommonParent=m,t.clipboardText=I,t.toggleAttr=S,t.contains=T,t.getPublicElement=D},function(e,t,n){var i=n(2),o=n(6),a=o.getNavigator(),r=o.getWindow(),s=n(0).extend,l=n(1).isPlainObject,c=n(3).each,d=n(10),u=n(17),h=n(19),p=n(121),f=n(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"},x={deviceType:"desktop",platform:"generic",version:[],phone:!1,tablet:!1,android:!1,ios:!1,win:!1,generic:!0,grade:"A",mac:!1},w={win:function(e){var t=/windows phone/i.test(e)||e.match(/WPDesktop/),n=!t&&/Windows(.*)arm(.*)Tablet PC/i.test(e),i=!t&&!n&&/msapphost/i.test(e);if(t||n||i){var o=e.match(/windows phone (\d+).(\d+)/i)||e.match(/windows nt (\d+).(\d+)/i),a=[];return o?a.push(parseInt(o[1],10),parseInt(o[2],10)):(o=e.match(/msapphost(\/(\d+).(\d+))?/i),o&&a.push(3===parseInt(o[2],10)?10:8)),{deviceType:t?"phone":n?"tablet":"desktop",platform:"win",version:a,grade:"A"}}},ios:function(e){if(/ip(hone|od|ad)/i.test(e)){var t=/ip(hone|od)/i.test(e),n=e.match(/os (\d+)_(\d+)_?(\d+)?/i),i=n?[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3]||0,10)]:[],o=480===r.screen.height,a=o?"B":"A";return{deviceType:t?"phone":"tablet",platform:"ios",version:i,grade:a}}},android:function(e){if(/android|htc_|silk/i.test(e)){var t=/mobile/i.test(e),n=e.match(/android (\d+)\.(\d+)\.?(\d+)?/i),i=n?[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3]||0,10)]:[],o=i.length>1&&(i[0]<4||4===i[0]&&i[1]<4),a=o?"B":"A";return{deviceType:t?"phone":"tablet",platform:"android",version:i,grade:a}}}},b=d.inherit({ctor:function(e){this._window=e&&e.window||r,this._realDevice=this._getDevice(),this._currentDevice=void 0,this._currentOrientation=void 0,this.changed=h(),o.hasWindow()&&(this._recalculateOrientation(),p.add(this._recalculateOrientation.bind(this)))},current:function(e){if(e)return this._currentDevice=this._getDevice(e),this._forced=!0,void this.changed.fire();if(!this._currentDevice){e=void 0;try{e=this._getDeviceOrNameFromWindowScope()}catch(t){e=this._getDeviceNameFromSessionStorage()}finally{e||(e=this._getDeviceNameFromSessionStorage()),e&&(this._forced=!0)}this._currentDevice=this._getDevice(e)}return this._currentDevice},real:function(){return s({},this._realDevice)},orientation:function(){return this._currentOrientation},isForced:function(){return this._forced},isRippleEmulator:function(){return!!this._window.tinyHippos},_getCssClasses:function(e){var t=[],n=this._realDevice;return e=e||this.current(),e.deviceType&&(t.push("dx-device-"+e.deviceType),"desktop"!==e.deviceType&&t.push("dx-device-mobile")),t.push("dx-device-"+n.platform),n.version&&n.version.length&&t.push("dx-device-"+n.platform+"-"+n.version[0]),y.isSimulator()&&t.push("dx-simulator"),m().rtlEnabled&&t.push("dx-rtl"),t},attachCssClasses:function(e,t){this._deviceClasses=this._getCssClasses(t).join(" "),i(e).addClass(this._deviceClasses)},detachCssClasses:function(e){i(e).removeClass(this._deviceClasses)},isSimulator:function(){try{return this._isSimulator||o.hasWindow()&&this._window.top!==this._window.self&&this._window.top["dx-force-device"]||this.isRippleEmulator()}catch(e){return!1}},forceSimulator:function(){this._isSimulator=!0},_getDevice:function(e){if("genericPhone"===e&&(e={deviceType:"phone",platform:"generic",generic:!0}),l(e))return this._fromConfig(e);var t;if(e){if(t=v[e],!t)throw u.Error("E0005")}else t=a.userAgent;return this._fromUA(t)},_getDeviceOrNameFromWindowScope:function(){var e;return o.hasWindow()&&(this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"])&&(e=this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"]),e},_getDeviceNameFromSessionStorage:function(){var e=g();if(e){var t=e.getItem("dx-force-device");try{return JSON.parse(t)}catch(e){return t}}},_fromConfig:function(e){var t=s({},x,this._currentDevice,e),n={phone:"phone"===t.deviceType,tablet:"tablet"===t.deviceType,android:"android"===t.platform,ios:"ios"===t.platform,win:"win"===t.platform,generic:"generic"===t.platform};return s(t,n)},_fromUA:function(e){var t;if(c(w,function(n,i){return t=i(e),!t}),t)return this._fromConfig(t);var n=/(mac os)/.test(e.toLowerCase()),i=x;return i.mac=n,i},_changeOrientation:function(){var e=i(this._window),t=e.height()>e.width()?"portrait":"landscape";this._currentOrientation!==t&&(this._currentOrientation=t,this.fireEvent("orientationChanged",[{orientation:t}]))},_recalculateOrientation:function(){var e=i(this._window).width();this._currentWidth!==e&&(this._currentWidth=e,this._changeOrientation())}}).include(f),y=new b;_.changeCallback.add(function(e,t){y.detachCssClasses(t),y.attachCssClasses(e)}),y.isForced()||"win"!==y.current().platform||y.current({version:[10]}),e.exports=y},function(e,t,n){var i=n(2),o=n(55),a=n(0).extend,r=n(3).each,s=n(39).format,l=n(37).humanize,c=n(81);n(81);var d="-",u=a(!0,{},n(323)),h=n(324),p=function(e){var t=h[e];return t?"root"!==t&&t:e.substr(0,e.lastIndexOf(d))},f=function(e,t){return e[t]||{}},g=function(e,t,n){for(var i,o=f(e,t)[n];!o&&!i;)t=p(t),t?o=f(e,t)[n]:i=!0;return o},_={},m=o({_dictionary:u,load:function(e){a(!0,this._dictionary,e)},_localizablePrefix:"@",setup:function(e){this._localizablePrefix=e},localizeString:function(e){var t=this,n=new RegExp("(^|[^a-zA-Z_0-9"+t._localizablePrefix+"-]+)("+t._localizablePrefix+"{1,2})([a-zA-Z_0-9-]+)","g"),i=t._localizablePrefix+t._localizablePrefix;return e.replace(n,function(e,n,o,a){var r,s=t._localizablePrefix+a;return o!==i&&(r=t.format(a)),r||(_[a]=l(a)),n+(r||s)})},_messageLoaded:function(e,t){return void 0!==g(this._dictionary,t||c.locale(),e)},localizeNode:function(e){var t=this;i(e).each(function(e,n){n.nodeType&&(3===n.nodeType?n.nodeValue=t.localizeString(n.nodeValue):i(n).is("iframe")||(r(n.attributes||[],function(e,n){if("string"==typeof n.value){var i=t.localizeString(n.value);n.value!==i&&(n.value=i)}}),i(n).contents().each(function(e,n){t.localizeNode(n)})))})},getMessagesByLocales:function(){return this._dictionary},getDictionary:function(e){return e?_:a({},_,this.getMessagesByLocales()[c.locale()])},getFormatter:function(e){
|
|
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,o=e.length,a=[];i<o;)n=t(e[i],i),null!==n&&a.push(n),i++;return a}function o(e,t){return i(t,function(t){return e[t]?e[t]:null})}function a(e,t,n,i){var o=i;return f(t,function(t,i){e[i]&&(e[i]-=n,o-=n)}),o}function r(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-C<e&&e<+C?e:0}function c(e){var t=l(A(e.x)),n=l(A(e.y)),i=l(B(e.width+e.x)),o=l(B(e.height+e.y)),a={x:t,y:n,width:i-t,height:o-n};return a.isEmpty=!(a.x||a.y||a.width||a.height),a}function d(e,t,n){var i=M(I(n*k).toFixed(3)),o=M(T(n*k).toFixed(3)),a=e.width/2,r=e.height/2,s=e.x+a,l=e.y+r,d=D(a*i)+D(r*o),u=D(a*o)+D(r*i),h=t[0]+(s-t[0])*i+(l-t[1])*o,p=t[1]-(s-t[0])*o+(l-t[1])*i;return c({x:h-d,y:p-u,width:2*d,height:2*u})}var u=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,x=Math,w=x.round,b=Math.sqrt,y=Math.PI,C=1e10,k=y/180,S=Math.LN10,I=Math.cos,T=Math.sin,D=Math.abs,E=Math.log,A=Math.floor,B=Math.ceil,O=Math.max,R=isNaN,M=Number,P=NaN,V=function(e,t){return e?Math.log(e)/Math.log(t):P},F=function(e){return g(V(e,10))},L=function(e,t){return Math.pow(t,e)},H=function(e){return(e%360+360)%360},z=function(e){return 90-e},N=function(e){return y*e/180},$=function(e){var t=N(e);return{cos:I(t),sin:T(t)}},W=1e-14,G=function(e,t,n,i){var o=n-e,a=i-t;return Math.sqrt(a*a+o*o)},q=function(e){var t,n=D(e);return R(n)?P:n>0?(n=E(n)/S,t=B(n),t-n<W?t:A(n)):0},j=function(e,t,n){var i,o=O(q(e),q(t)),a=-q(D(t-e)/n);return R(o)||R(a)?null:(D(o)<=4?(i="fixedPoint",a<0&&(a=0),a>4&&(a=4)):(i="exponential",a+=o-1,a>3&&(a=3)),{type:i,precision:a})},K=function(e,t){if(t>20&&(t=20),m(e))return M(v(e)?e.toExponential(t):e.toFixed(t))},U=function(e){return e.toExponential().split("e")[1]};p(t,{decreaseGaps:function(e,t,n){var i;do i=o(e,t),i.push(x.ceil(n/i.length)),n=a(e,t,x.min.apply(null,i),n);while(n>0&&i.length>1);return n},normalizeEnum:r,parseScalar:function(e,t){return void 0!==e?e:t},enumParser:function(e){var t,n,i={};for(t=0,n=e.length;t<n;++t)i[r(e[t])]=1;return function(e,t){var n=r(e);return i[n]?n:t}},patchFontOptions:function(e){var t={};return f(e||{},function(e,n){/^(cursor|opacity)$/i.test(e)||(e="color"===e?"fill":"font-"+e),t[e]=n}),t},convertPolarToXY:function(e,t,n,i){var o,a=90;return n=_(n)?n+t-a:0,o=$(n),{x:w(e.x+i*o.cos),y:w(e.y+i*o.sin)}},convertXYToPolar:function(e,t,n){var i=G(e.x,e.y,t,n),o=x.atan2(n-e.y,t-e.x);return{phi:w(H(180*o/x.PI)),r:w(i)}},processSeriesTemplate:function(e,t){var n,o,a,r=h.isFunction(e.customizeSeries)?e.customizeSeries:u,s=e.nameField,l={},c=[],d=0;for(t=t||[],o=t.length;d<o;d++)a=t[d],s in a&&(n=l[a[s]],n||(n=l[a[s]]={name:a[s],nameFieldValue:a[s]},c.push(n.name)));return i(c,function(e){var t=l[e];return p(t,r.call(null,t.name))})},getCategoriesInfo:function(e,t,n){if(0===e.length)return{categories:[]};t=_(t)?t:e[0],n=_(n)?n:e[e.length-1];var o,a,r,s=i(e,function(e){return _(e)?e.valueOf():null}),l=s.indexOf(t.valueOf()),c=s.indexOf(n.valueOf()),d=!1;return l<0&&(l=0),c<0&&(c=e.length-1),c<l&&(a=c,c=l,l=a,d=!0),o=e.slice(l,c+1),r=o.length-1,{categories:o,start:o[d?r:0],end:o[d?0:r],inverted:d}},setCanvasValues:s,updatePanesCanvases:function(e,t,n){var i=0;f(e,function(e,t){t.weight=t.weight||1,i+=t.weight});var o=0,a=e.padding||10,r=n?t.width-t.left-t.right:t.height-t.top-t.bottom,l=(r-a*(e.length-1))/i,c=n?"left":"top",d=n?"right":"bottom";f(e,function(e,n){var i=w(n.weight*l);n.canvas=n.canvas||{},p(n.canvas,t),n.canvas[c]=t[c]+o,n.canvas[d]=t[d]+(r-i-o),o=o+i+a,s(n.canvas)})},unique:function(e){var t={};return i(e,function(e){var n=t[e]?null:e;return t[e]=!0,n})},map:i,getVerticallyShiftedAngularCoords:function(e,t,n){var i=e.x+e.width/2>=n.x,o=(i?e.x:e.x+e.width)-n.x,a=e.y-n.y,r=a+t,s=w(b(o*o+a*a-r*r)),l=(i?+s:-s)||o;return{x:n.x+(i?l:l-e.width),y:e.y+t}},mergeMarginOptions:function(e,t){return{checkInterval:e.checkInterval||t.checkInterval,size:Math.max(e.size||0,t.size||0),percentStick:e.percentStick||t.percentStick,sizePointNormalState:Math.max(e.sizePointNormalState||0,t.sizePointNormalState||0)}}}),t.getLog=V,t.getAdjustedLog10=F,t.raiseTo=L,t.normalizeAngle=H,t.convertAngleToRendererSpace=z,t.degreesToRadians=N,t.getCosAndSin=$,t.getDecimalOrder=q,t.getAppropriateFormat=j,t.getDistance=G,t.roundValue=K,t.getPower=U,t.rotateBBox=d,t.normalizeBBox=c},function(e,t,n){var i=n(102);e.exports=i({E0001:"Method is not implemented",E0002:"Member name collision: {0}",E0003:"A class must be instantiated using the 'new' keyword",E0004:"The NAME property of the component is not specified",E0005:"Unknown device",E0006:"Unknown endpoint key is requested",E0007:"'Invalidate' method is called outside the update transaction",E0008:"Type of the option name is not appropriate to create an action",E0009:"Component '{0}' has not been initialized for an element",E0010:"Animation configuration with the '{0}' type requires '{1}' configuration as {2}",E0011:"Unknown animation type '{0}'",E0012:"jQuery version is too old. Please upgrade jQuery to 1.10.0 or later",E0013:"KnockoutJS version is too old. Please upgrade KnockoutJS to 2.3.0 or later",E0014:"The 'release' method shouldn't be called for an unlocked Lock object",E0015:"Queued task returned an unexpected result",E0017:"Event namespace is not defined",E0018:"DevExpress.ui.DevExpressPopup widget is required",E0020:"Template engine '{0}' is not supported",E0021:"Unknown theme is set: {0}",E0022:"LINK[rel=DevExpress-theme] tags must go before DevExpress included scripts",E0023:"Template name is not specified",E0024:"DevExtreme bundle already included",E0025:"Unexpected argument type",E0100:"Unknown validation type is detected",E0101:"Misconfigured range validation rule is detected",E0102:"Misconfigured comparison validation rule is detected",E0110:"Unknown validation group is detected",E0120:"Adapter for a DevExpressValidator component cannot be configured",E0121:"The 'customItem' field of the 'onCustomItemCreating' function's parameter should contain a custom item or Promise that is resolved after the item is created.",W0000:"'{0}' is deprecated in {1}. {2}",W0001:"{0} - '{1}' option is deprecated in {2}. {3}",W0002:"{0} - '{1}' method is deprecated in {2}. {3}",W0003:"{0} - '{1}' property is deprecated in {2}. {3}",W0004:"Timeout for theme loading is over: {0}",W0005:"'{0}' event is deprecated in {1}. {2}",W0006:"Invalid recurrence rule: '{0}'",W0007:"'{0}' Globalize culture is not defined",W0008:"Invalid view name: '{0}'",W0009:"Invalid time zone name: '{0}'",W0010:"{0} is deprecated in {1}. {2}",W0011:"Number parsing is invoked while the parser is not defined",W0012:"Date parsing is invoked while the parser is not defined",W0013:"'{0}' file is deprecated in {1}. {2}",W0014:"{0} - '{1}' type is deprecated in {2}. {3}",W0015:"Instead of returning a value from the '{0}' function, write it into the '{1}' field of the function's parameter.",W0016:'The "{0}" option does not accept the "{1}" value since v.{2}. {3}.'})},function(e,t,n){var i=n(2),o=n(5),a=n(14),r=n(12),s=n(13),l=n(105),c=n(9),d=n(25),u=n(108),h=n(84),p=n(59).compare,f="dxclick",g=10,_=Math.abs,m=function(e){return i(e).is("input, textarea, select, button ,:focus, :focus *")},v={requestAnimationFrame:l.requestAnimationFrame,cancelAnimationFrame:l.cancelAnimationFrame},x=u.inherit({ctor:function(e){this.callBase(e),this._makeElementClickable(i(e))},_makeElementClickable:function(e){e.attr("onclick")||e.attr("onclick","void(0)")},start:function(e){this._blurPrevented=e.isDefaultPrevented(),this._startTarget=e.target,this._startEventData=c.eventData(e)},end:function(e){return this._eventOutOfElement(e,this.getElement().get(0))||e.type===d.cancel?void this._cancel(e):(m(e.target)||this._blurPrevented||s.resetActiveElement(),this._accept(e),void(this._clickAnimationFrame=v.requestAnimationFrame(function(){this._fireClickEvent(e)}.bind(this))))},_eventOutOfElement:function(e,t){var n=e.target,i=!s.contains(t,n)&&t!==n,o=c.eventDelta(c.eventData(e),this._startEventData),a=_(o.x)>g||_(o.y)>g;return i||a},_fireClickEvent:function(e){this._fireEvent(f,e,{target:s.closestCommonParent(this._startTarget,e.target)})},dispose:function(){v.cancelAnimationFrame(this._clickAnimationFrame)}});!function(){var e="dx-native-click",t=a.real(),n=t.generic||t.ios&&p(t.version,[9,3])>=0||t.android&&p(t.version,[5])>=0,r=function(t){return n||i(t).closest("."+e).length},s=null,l=null,d=function(e){var t=e.originalEvent,n=l!==t,i=!e.which||1===e.which;i&&!s&&r(e.target)&&n&&(l=t,c.fireEvent({type:f,originalEvent:e}))};x=x.inherit({_makeElementClickable:function(e){r(e)||this.callBase(e),o.on(e,"click",d)},configure:function(t){this.callBase(t),t.useNative&&this.getElement().addClass(e)},start:function(e){s=null,r(e.target)||this.callBase(e)},end:function(e){r(e.target)||this.callBase(e)},cancel:function(){s=!0},dispose:function(){this.callBase(),o.off(this.getElement(),"click",d)}})}(),function(){var e=a.real().generic;if(!e){var t=null,n=!1,l=function(e){t=e.target,n=e.isDefaultPrevented()},u=function(e){var o=i(e.target);n||!t||o.is(t)||i(t).is("label")||!m(o)||s.resetActiveElement(),t=null,n=!1},h="NATIVE_CLICK_FIXER",p=r.getDocument();o.subscribeGlobal(p,c.addNamespace(d.down,h),l),o.subscribeGlobal(p,c.addNamespace("click",h),u)}}(),h({emitter:x,bubble:!0,events:[f]}),t.name=f},function(e,t,n){var i=function(e){this._options=e||{},this._list=[],this._queue=[],this._firing=!1,this._fired=!1,this._firingIndexes=[]};i.prototype._fireCore=function(e,t){var n=this._firingIndexes,i=this._list,o=this._options.stopOnFalse,a=n.length;for(n[a]=0;n[a]<i.length;n[a]++){var r=i[n[a]].apply(e,t);if(r===!1&&o)break}n.pop()},i.prototype.add=function(e){return"function"!=typeof e||this._options.unique&&this.has(e)||this._list.push(e),this},i.prototype.remove=function(e){var t=this._list,n=this._firingIndexes,i=t.indexOf(e);if(i>-1&&(t.splice(i,1),this._firing&&n.length))for(var o=0;o<n.length;o++)i<=n[o]&&n[o]--;return this},i.prototype.has=function(e){var t=this._list;return e?t.indexOf(e)>-1:!!t.length},i.prototype.empty=function(e){return this._list=[],this},i.prototype.fireWith=function(e,t){var n=this._queue;if(t=t||[],t=t.slice?t.slice():t,this._options.syncStrategy)this._firing=!0,this._fireCore(e,t);else{if(n.push([e,t]),this._firing)return;for(this._firing=!0;n.length;){var i=n.shift();this._fireCore(i[0],i[1])}}return this._firing=!1,this._fired=!0,this},i.prototype.fire=function(){this.fireWith(this,arguments)},i.prototype.fired=function(){return this._fired};var o=function(e){return new i(e)};e.exports=o},function(e,t,n){function i(){if(!M.hasWindow())return null;var e,t=O("<div>",S).addClass("dx-theme-marker").appendTo(S.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 o(e){function t(){E=null,G.fire(),G.empty()}var n;E=e,a()?t():(n=Date.now(),A=setInterval(function(){var e=a(),i=!e&&Date.now()-n>15e3;i&&F.log("W0004",E),(e||i)&&(clearInterval(A),A=void 0,t())},10))}function a(){return!E||i()===E}function r(){var e=O(K,S);e.length&&(T={},I=O(L.createMarkupFromString("<link rel=stylesheet>"),S),e.each(function(){var e=O(this,S),t=e.attr(U),n=e.attr("href"),i="true"===e.attr(Y);T[t]={url:n,isActive:i}}),e.last().after(I),e.remove())}function s(e){var t=e.split("."),n=null;if(T){if(e in T)return e;N(T,function(e,i){var o=e.split(".");if(o[0]===t[0]&&!(t[1]&&t[1]!==o[1]||t[2]&&t[2]!==o[2]))return n&&!i.isActive||(n=e),!i.isActive&&void 0})}return n}function l(e){try{e!==S&&(T=null)}catch(e){T=null}S=e}function c(e){e=e||{},l(e.context||R.getDocument()),S&&(r(),D=void 0,d(e))}function d(e){if(!arguments.length)return D=D||i();f(q()),e=e||{},"string"==typeof e&&(e={theme:e});var t,n=e._autoInit,a=e.loadCallback;if(D=e.theme||D,n&&!D&&(D=u($.current())),D=s(D),D&&(t=T[D]),a&&G.add(a),t)I.attr("href",T[D].url),!G.has()&&!e._forceTimeout||A?E&&(E=D):o(D);else{if(!n)throw F.Error("E0021",D);G.fire(),G.empty()}C(),p(W.originalViewPort(),D)}function u(e){var t=e.platform,n=e.version&&e.version[0];switch(t){case"ios":t+="7";break;case"android":t+="5";break;case"win":t+=n&&8===n?"8":"10"}return t}function h(e){e=e||d();var t=[],n=e&&e.split(".");return n&&(t.push("dx-theme-"+n[0],"dx-theme-"+n[0]+"-typography"),n.length>1&&t.push("dx-color-scheme-"+n[1]+(m(e)?"-"+n[2]:""))),t}function p(e,t){B=h(t).join(" "),O(e).addClass(B);var n=function(){var t=M.hasWindow()&&P.devicePixelRatio;if(t&&!(t<2)){var n=O("<div>");n.css("border",".5px solid transparent"),O("body").append(n),1===n.outerHeight()&&(O(e).addClass(X),B+=" "+X),n.remove()}};n()}function f(e){O(e).removeClass(B)}function g(e){G.add(e)}function _(e,t){return t||(t=D||i()),new RegExp(e).test(t)}function m(e){return _("material",e)}function v(e){return _("android5",e)}function x(e){return _("ios7",e)}function w(e){return _("generic",e)}function b(e){return _("win8",e)}function y(e){return _("win10",e)}function C(){b()&&F.log("W0010","The 'win8' theme","16.1","Use the 'generic' theme instead."),y()&&F.log("W0010","The 'win10' theme","17.2","Use the 'generic' theme instead."),v()&&F.log("W0010","The 'android5' theme","18.1","Use the 'material' theme instead.")}function k(){if(c({_autoInit:!0,_forceTimeout:!0}),O(K,S).length)throw F.Error("E0022");J.resolve()}var S,I,T,D,E,A,B,O=n(2),R=n(12),M=n(6),P=M.getWindow(),V=n(7).Deferred,F=n(21),L=n(13),H=n(51),z=H.add,N=n(3).each,$=n(14),W=n(73),G=n(230),q=W.value,j=W.changeCallback,K="link[rel=dx-theme]",U="data-theme",Y="data-active",X="dx-hairlines",Z="dx.",J=new V;M.hasWindow()?k():z(k),j.add(function(e,t){J.done(function(){f(t),p(e)})}),$.changed.add(function(){c({_autoInit:!0})}),t.current=d,t.ready=g,t.init=c,t.attachCssClasses=p,t.detachCssClasses=f,t.themeNameFromDevice=u,t.waitForThemeLoad=o,t.isMaterial=m,t.isAndroid5=v,t.isIos7=x,t.isGeneric=w,t.isWin8=b,t.isWin10=y,t.resetTheme=function(){I&&I.attr("href","about:blank"),D=null,E=null}},function(e,t,n){var i=n(102),o=n(17);e.exports=i(o.ERROR_MESSAGES,{E1001:"Module '{0}'. Controller '{1}' is already registered",E1002:"Module '{0}'. Controller '{1}' does not inherit from DevExpress.ui.dxDataGrid.Controller",E1003:"Module '{0}'. View '{1}' is already registered",E1004:"Module '{0}'. View '{1}' does not inherit from DevExpress.ui.dxDataGrid.View",E1005:"Public method '{0}' is already registered",E1006:"Public method '{0}.{1}' does not exist",E1007:"State storing cannot be provided due to the restrictions of the browser",E1010:"The template does not contain the TextBox widget",E1011:'Items cannot be deleted from the List. Implement the "remove" function in the data store',E1012:"Editing type '{0}' with the name '{1}' is unsupported",E1016:"Unexpected type of data source is provided for a lookup column",E1018:"The 'collapseAll' method cannot be called if you use a remote data source",E1019:"Search mode '{0}' is unavailable",E1020:"The type cannot be changed after initialization",E1021:"{0} '{1}' you are trying to remove does not exist",E1022:'The "markers" option is given an invalid value. Assign an array instead',E1023:'The "routes" option is given an invalid value. Assign an array instead',E1025:"This layout is too complex to render",E1026:'The "calculateCustomSummary" function is missing from a field whose "summaryType" option is set to "custom"',E1030:"Unknown ScrollView refresh strategy: '{0}'",E1031:"Unknown subscription in the Scheduler widget: '{0}'",E1032:"Unknown start date in an appointment: '{0}'",E1033:"Unknown step in the date navigator: '{0}'",E1034:"The browser does not implement an API for saving files",E1035:"The editor cannot be created because of an internal error: {0}",E1036:"Validation rules are not defined for any form item",E1037:"Invalid structure of grouped data",E1038:"The browser does not support local storages for local web pages",E1039:"A cell's position cannot be calculated",E1040:"The '{0}' key value is not unique within the data array",E1041:"The JSZip script is referenced after the DevExtreme scripts or not referenced at all",E1042:'Deferred selection cannot be performed. Set the "key" field for the data store',E1043:"Changes cannot be processed due to the incorrectly set key",E1044:"The key field specified by the keyExpr option does not match the key field specified in the data store",E1045:"Editing requires the key field to be specified in the data store",E1046:"The '{0}' key field is not found in data objects",E1047:'The "{0}" field is not found in the fields array',E1048:'The "{0}" operation is not found in the filterOperations array',E1049:"\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),o=n(10),a=n(54),r=n(1),s=n(3).each,l=n(71),c=l.unwrap,d=l.isWrapped,u=l.assign,h=function(e){return e.replace(/\[/g,".").replace(/\]/g,"")},p=function(e,t,n){return n=n||{},"this"===t?_(e,n):_(e[t],n)},f=function(e,t,n,o){if("this"===t)throw new i.Error("E4016");var a=e[t];o.unwrapObservables&&d(a)?u(a,n):e[t]=n},g=function(e){return e=e||{},e.unwrapObservables=void 0===e.unwrapObservables||e.unwrapObservables,e},_=function(e,t){return t.unwrapObservables?c(e):e},m=function(e){if(arguments.length>1&&(e=[].slice.call(arguments)),!e||"this"===e)return function(e){return e};if("string"==typeof e){e=h(e);var t=e.split(".");return function(e,n){n=g(n);for(var i=n.functionsAsIs,o=("defaultValue"in n),a=_(e,n),s=0;s<t.length;s++){if(!a){if(null==a&&o)return n.defaultValue;break}var l=t[s];if(o&&r.isObject(a)&&!(l in a))return n.defaultValue;var c=_(a[l],n);!i&&r.isFunction(c)&&(c=c.call(a)),a=c}return a}}return Array.isArray(e)?v(e):r.isFunction(e)?e:void 0},v=function(e){for(var t={},n=0,i=e.length;n<i;n++){var o=e[n];t[o]=m(o)}return function(e,n){var i;return s(t,function(t){var o,a,r,s,l=this(e,n);if(void 0!==l){for(o=i||(i={}),a=t.split("."),r=a.length-1,s=0;s<r;s++)o=o[a[s]]={};o[a[s]]=l}}),i}},x=function(e,t,n,i){if(r.isDefined(n))return n;var o={};return f(e,t,o,i),o},w=function(e){e=h(e||"this").split(".");var t=e.length-1;return function(n,i,o){o=g(o);var s=_(n,o);e.forEach(function(e,n){var l=p(s,e,o),c=!o.functionsAsIs&&r.isFunction(l)&&!d(l);n===t?o.merge&&r.isPlainObject(i)&&(!r.isDefined(l)||r.isPlainObject(l))?(l=x(s,e,l,o),a.deepExtendArraySafe(l,i,!1,!0)):c?s[e](i):f(s,e,i,o):(l=x(s,e,l,o),c&&(l=l.call(s)),s=l)})}},b=function(e,t){return e instanceof Date?e.getTime():e&&e instanceof o&&e.valueOf?e.valueOf():t||"string"!=typeof e?e:e.toLowerCase()};t.compileGetter=m,t.compileSetter=w,t.toComparable=b},function(e,t,n){function i(e){return b[w(e)]||""}function o(e,t,n){var i=new Date(e.getTime()),o=d(t)?H(t.toLowerCase()):a.isNumeric(t)?m(t):t;return o.years&&i.setFullYear(i.getFullYear()+o.years*n),o.quarters&&i.setMonth(i.getMonth()+3*o.quarters*n),o.months&&i.setMonth(i.getMonth()+o.months*n),o.weeks&&i.setDate(i.getDate()+7*o.weeks*n),o.days&&i.setDate(i.getDate()+o.days*n),o.hours&&i.setTime(i.getTime()+36e5*o.hours*n),o.minutes&&i.setTime(i.getTime()+6e4*o.minutes*n),o.seconds&&i.setTime(i.getTime()+1e3*o.seconds*n),o.milliseconds&&i.setTime(i.getTime()+o.milliseconds*n),i}var a=n(1),r=n(31).adjust,s=n(3).each,l=n(37).camelize,c=a.isObject,d=a.isString,u=a.isDate,h=a.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(),o=f(n)||1;return Math.floor(i/o)},_=function(e,t){var n=w(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,o=["millisecond","second","minute","hour","day","month","year"],a={};for(t=o.length-1;t>=0;t--)i=o[t],n=Math.floor(e/f(i)),n>0&&(a[i+"s"]=n,e-=x(i,n));return a},v=function(e){var t=0;return c(e)&&s(e,function(e,n){t+=x(e.substr(0,e.length-1),n)}),d(e)&&(t=x(e,1)),t},x=function(e,t){return f(e)*t},w=function(e){var t,n=-1;return d(e)?e:c(e)?(s(e,function(e,i){for(t=0;t<p.length;t++)i&&(e===p[t]+"s"||e===p[t])&&n<t&&(n=t)}),p[n]):""},b={millisecond:"millisecond",second:"longtime",minute:"shorttime",hour:"shorttime",day:"day",week:"day",month:"month",quarter:"quarter",year:"year"},y=function(e){return Math.floor(e/3)},C=function(e){return 3*y(e)},k=function(e,t,n,i){e=new Date(e.getTime());var o,a,r=new Date(e.getTime()),s=w(t);switch(s){case"second":e=new Date(1e3*Math.floor(r.getTime()/1e3));break;case"minute":e=new Date(6e4*Math.floor(r.getTime()/6e4));break;case"hour":e=new Date(36e5*Math.floor(r.getTime()/36e5));break;case"year":e.setMonth(0);case"month":e.setDate(1);case"day":e.setHours(0,0,0,0);break;case"week":e=X(e,i||0),e.setHours(0,0,0,0);break;case"quarter":o=C(e.getMonth()),a=e.getMonth(),e.setDate(1),e.setHours(0,0,0,0),a!==o&&e.setMonth(o)}return n&&"hour"!==s&&"minute"!==s&&"second"!==s&&te(r,e),e},S=function(e){return ae.correctDateWithUnitBeginning(e,"day")},I=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},T=function(e,t,n){var i=n?-1:1;return u(e)?o(e,t,i):r(e+t*i,t)},D=function(e,t,n){var i,o=[];for(o.push(u(e)?new Date(e.getTime()):e),i=e;i<t;)i=T(i,n),o.push(i);return o},E=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(j(t),t.getMonth(),t.getDate()):"century"===e?new Date(q(t),t.getMonth(),t.getDate()):void 0},A=function(e,t){return"month"===e?new Date(t.getFullYear(),t.getMonth(),R(t)):"year"===e?new Date(t.getFullYear(),11,t.getDate()):"decade"===e?new Date(j(t)+9,t.getMonth(),t.getDate()):"century"===e?new Date(q(t)+90,t.getMonth(),t.getDate()):void 0},B=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(j(t)),"century"===e&&n.setFullYear(q(t)),n))},O=function(e,t){var n=new Date(t);return n.setDate(R(t)),"month"===e?n:(n.setMonth(11),n.setDate(R(n)),"year"===e?n:("decade"===e&&n.setFullYear(j(t)+9),"century"===e&&n.setFullYear(q(t)+99),n))},R=function(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0);return t.getDate()},M=function(e,t,n){return ae[l("same "+e)](t,n)},P=function(e){switch(e){case"month":return"year";case"year":return"decade";case"decade":return"century"}},V=function(e){switch(e){case"century":return"decade";case"decade":return"year";case"year":return"month"}},F=function(e){var t=1;return"year"===e&&(t=12),"decade"===e&&(t=120),"century"===e&&(t=1200),t},L=function(e){var t=1;return"decade"===e&&(t=12),"century"===e&&(t=120),t},H=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},z=function(e,t){return N(e,t)&&e.getDate()===t.getDate()},N=function(e,t){return $(e,t)&&e.getMonth()===t.getMonth()},$=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}},G=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}},q=function(e){return e&&e.getFullYear()-e.getFullYear()%100},j=function(e){return e&&e.getFullYear()-e.getFullYear()%10},K=function(){return"yyyy/MM/dd"},U=function(e){if(h(e)){var t=new Date(e.getFullYear(),e.getMonth(),1);return t}},Y=function(e){if(h(e)){var t=new Date(e.getFullYear(),e.getMonth()+1,0);return t}},X=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=ae.getDatesInterval(e,t,"day"),i=new Date(e);return n>=6&&(i=new Date(i.setDate(i.getDate()+7))),i},J=function(e,t,n,i){return"date"===i&&(t=t&&ae.correctDateWithUnitBeginning(t,"day"),n=n&&ae.correctDateWithUnitBeginning(n,"day"),e=e&&ae.correctDateWithUnitBeginning(e,"day")),ee(e,t,n)===e},Q=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,o=t.getHours()-e.getHours();0!==o&&(n=1===o||o===-23?-1:1,i=new Date(t.getTime()+36e5*n),(n>0||i.getDate()===t.getDate())&&t.setTime(i.getTime()))}},ne=function(e){return e.setHours(e.getHours()+1),e.setMinutes(0),e},ie=function(e,t){return 60*(t.getTimezoneOffset()-e.getTimezoneOffset())*1e3},oe=function(e){return new Date(e)},ae={dateUnitIntervals:p,convertMillisecondsToDateUnits:m,dateToMilliseconds:v,getNextDateUnit:_,convertDateUnitToMilliseconds:x,getDateUnitInterval:w,getDateFormatByTickInterval:i,getDatesDifferences:I,correctDateWithUnitBeginning:k,trimTime:S,dateTimeFromDecimal:Q,addDateInterval:o,addInterval:T,getSequenceByInterval:D,getDateIntervalByString:H,sameDate:z,sameMonthAndYear:N,sameMonth:N,sameYear:$,sameDecade:W,sameCentury:G,sameView:M,getDifferenceInMonth:F,getDifferenceInMonthForCells:L,getFirstYearInDecade:j,getFirstDecadeInCentury:q,getShortDateFormat:K,getViewFirstCellDate:E,getViewLastCellDate:A,getViewDown:V,getViewUp:P,getLastMonthDay:R,getLastMonthDate:Y,getFirstMonthDate:U,getFirstWeekDate:X,normalizeDateByWeek:Z,getQuarter:y,getFirstQuarterMonth:C,dateInRange:J,roundToHour:ne,normalizeDate:ee,getViewMinBoundaryDate:B,getViewMaxBoundaryDate:O,fixTimezoneGap:te,getTimezonesDifference:ie,makeDate:oe,getDatesInterval:g};e.exports=ae},function(e,t,n){var i=n(35),o=n(1).type,a="dxTranslator",r=/matrix(3d)?\((.+?)\)/,s=/translate(?:3d)?\((.+?)\)/,l=function(e){var t=u(e);return{left:t.x,top:t.y}},c=function(e,t){var n,i=t.left,o=t.top;void 0===i?(n=u(e),n.y=o||0):void 0===o?(n=u(e),n.x=i||0):(n={x:i||0,y:o||0,z:0},h(e,n)),e.css({transform:_(n)}),(d(i)||d(o))&&p(e)},d=function(e){return"string"===o(e)&&"%"===e[e.length-1]},u=function(e){var t=e.length?i.data(e.get(0),a):null;if(!t){var n=e.css("transform")||_({x:0,y:0}),o=n.match(r),s=o&&o[1];o?(o=o[2].split(","),"3d"===s?o=o.slice(12,15):(o.push(0),o=o.slice(4,7))):o=[0,0,0],t={x:parseFloat(o[0]),y:parseFloat(o[1]),z:parseFloat(o[2])},h(e,t)}return t},h=function(e,t){e.length&&i.data(e.get(0),a,t)},p=function(e){e.length&&i.removeData(e.get(0),a)},f=function(e,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=d(e.x)?e.x:e.x+"px",n=d(e.y)?e.y:e.y+"px";return"translate("+t+", "+n+")"};t.move=c,t.locate=l,t.clearCache=p,t.parseTranslate=g,t.getTranslate=u,t.getTranslateCss=_,t.resetPosition=f},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(40),a=i(o),r=n(3),s=n(29),l=i(s),c=n(14),d=i(c),u=n(61),h=i(u),p=n(225),f=i(p),g=n(320),_=i(g),m=n(227),v=i(m),x=n(321),w=i(x),b=function(e,t,n){if(e.pointerEvents&&n.msie)return _.default;var i=t.tablet,o=t.phone;return!e.touch||i||o?e.touch?f.default:v.default:w.default},y=b(a.default,d.default.real(),l.default);(0,r.each)(y.map,function(e,t){(0,h.default)(e,new y(e,t))});var C={down:"dxpointerdown",up:"dxpointerup",move:"dxpointermove",cancel:"dxpointercancel",enter:"dxpointerenter",leave:"dxpointerleave",over:"dxpointerover",out:"dxpointerout"};e.exports=C},function(e,t){e.exports=window.jQuery},function(e,t,n){var i=n(0).extend,o=n(45),a=n(46);i(t,a,o,{modules:[]})},function(e,t,n){var i=n(2),o=n(5),a=n(21),r=n(76),s=n(0).extend,l=n(11).inArray,c=n(3).each,d=n(4),u=n(1),h=n(13),p=n(12),f=n(14),g=n(58),_=n(257),m=n(66),v=n(95),x=n(122),w=n(101),b=n(155),y=n(57),C=n(9),k=n(157),S=n(96),I=n(18),T=n(37),D="UIFeedback",E="dx-widget",A="dx-state-active",B="dx-state-disabled",O="dx-state-invisible",R="dx-state-hover",M="dx-state-focused",P=30,V=400,F="Focus",L="template",H=3,z="[data-options*='dxTemplate']",N="dx-template-wrapper",$=new v(function(e){var t=e.model.widget;if(t){var n=i("<div>"),o=e.model.options||{};if("button"===t||"tabs"===t||"dropDownMenu"===t){var r=t;t=T.camelize("dx-"+t),a.log("W0001","dxToolbar - 'widget' item field",r,"16.1","Use: '"+t+"' instead")}return n[t](o),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()),d.noop},templates:{"dx-polymorph-widget":$},createTemplate:function(e){return new _(e)}},_keyboardProcessor:void 0})},_feedbackShowTimeout:P,_feedbackHideTimeout:V,_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(z),n={};t.each(function(e,t){var o=h.getElementOptions(t).dxTemplate;if(o){if(!o.name)throw a.Error("E0023");i(t).addClass(N).detach(),n[o.name]=n[o.name]||[],n[o.name].push(t)}}),c(n,function(t,n){var i=this._findTemplateByDevice(n);i&&(e[t]=this._createTemplate(i))}.bind(this))},_findTemplateByDevice:function(e){var t=d.findBestMatches(f.current(),e,function(e){
|
|
11
|
-
return h.getElementOptions(e).dxTemplate})[0];return c(e,function(e,n){n!==t&&i(n).remove()}),t},_extractAnonymousTemplate:function(){var e=this.option("integrationOptions.templates"),t=this._getAnonymousTemplateName(),n=this.$element().contents().detach(),o=n.filter(function(e,t){var n=t.nodeType===H,o=i(t).text().trim().length<1;return!(n&&o)}),a=o.length<1;e[t]||a||(e[t]=this._createTemplate(n))},_getAriaTarget:function(){return this._focusTarget()},_getAnonymousTemplateName:function(){return L},_getTemplateByOption:function(e){return this._getTemplate(this.option(e))},_getTemplate:function(e){return u.isFunction(e)?new v(function(t){var n=e.apply(this,this._getNormalizedTemplateArgs(t));if(!u.isDefined(n))return new x;var o=!1,a=this._acquireTemplate(n,function(e){return e.nodeType||u.isRenderer(e)&&!i(e).is("script")?new v(function(){return e}):(o=!0,this._createTemplate(e))}.bind(this)),r=a.render(t);return o&&a.dispose&&a.dispose(),r}.bind(this)):this._acquireTemplate(e,this._createTemplateIfNeeded.bind(this))},_acquireTemplate:function(e,t){return null==e?new x:e instanceof w?this._defaultTemplates[e.name]:e instanceof m?e:u.isFunction(e.render)&&!u.isRenderer(e)?this._addOneRenderedCall(e):e.nodeType||u.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 u.isRenderer(e)&&e[0]||e},n=this._tempTemplates.filter(function(n){return e=t(e),n.source===e})[0];if(n)return n.template;var i=this._createTemplate(e);return this._tempTemplates.push({template:i,source:t(e)}),i},_createTemplate:function(e){return e="string"==typeof e?h.normalizeTemplateElement(e):e,this.option("integrationOptions.createTemplate")(e)},_getNormalizedTemplateArgs:function(e){var t=[];return"model"in e&&t.push(e.model),"index"in e&&t.push(e.index),t.push(e.container),t},_cleanTemplates:function(){this._tempTemplates.forEach(function(e){e.template.dispose&&e.template.dispose()}),this._tempTemplates=[]},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["designMode","disabled","readOnly"]})},_initMarkup:function(){this.$element().addClass(E),this._toggleDisabledState(this.option("disabled")),this._toggleVisibility(this.option("visible")),this._renderHint(),this._isFocusable()&&this._renderFocusTarget(),this.callBase()},_render:function(){this.callBase(),this._renderContent(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents()},_renderHint:function(){h.toggleAttr(this.$element(),"title",this.option("hint"))},_renderContent:function(){var e=this;d.deferRender(function(){e._renderContentImpl()}),e._fireContentReadyAction()},_renderContentImpl:d.noop,_fireContentReadyAction:d.deferRenderer(function(){this._contentReadyAction()}),_dispose:function(){this._cleanTemplates(),this._contentReadyAction=null,this.callBase()},_resetActiveState:function(){this._toggleActiveState(this._eventBindingTarget(),!1)},_clean:function(){this._cleanFocusState(),this._resetActiveState(),this.callBase(),this.$element().empty()},_toggleVisibility:function(e){this.$element().toggleClass(O,!e),this.setAria("hidden",!e||void 0)},_renderFocusState:function(){this._attachKeyboardEvents(),this._isFocusable()&&(this._renderFocusTarget(),this._attachFocusEvents(),this._renderAccessKey())},_renderAccessKey:function(){var e=this._focusTarget();e.attr("accesskey",this.option("accessKey"));var t=C.addNamespace(I.name,D);o.off(e,t),this.option("accessKey")&&o.on(e,t,function(e){C.isFakeClickEvent(e)&&(e.stopImmediatePropagation(),this.focus())}.bind(this))},_isFocusable:function(){return this.option("focusStateEnabled")&&!this.option("disabled")},_eventBindingTarget:function(){return this.$element()},_focusTarget:function(){return this._getActiveElement()},_getActiveElement:function(){var e=this._eventBindingTarget();return this._activeStateUnit&&(e=e.find(this._activeStateUnit).not("."+B)),e},_renderFocusTarget:function(){this._focusTarget().attr("tabIndex",this.option("tabIndex"))},_keyboardEventBindingTarget:function(){return this._eventBindingTarget()},_detachFocusEvents:function(){var e=this._focusTarget(),t=this.NAME+F,n=C.addNamespace("focusin",t);n=n+" "+C.addNamespace("focusout",t),p.hasDocumentProperty("onbeforeactivate")&&(n=n+" "+C.addNamespace("beforeactivate",t)),o.off(e,n)},_attachFocusEvents:function(){var e=this.NAME+F,t=C.addNamespace("focusin",e),n=C.addNamespace("focusout",e),a=this._focusTarget();if(o.on(a,t,this._focusInHandler.bind(this)),o.on(a,n,this._focusOutHandler.bind(this)),p.hasDocumentProperty("onbeforeactivate")){var r=C.addNamespace("beforeactivate",e);o.on(this._focusTarget(),r,function(e){i(e.target).is(y.focusable)||e.preventDefault()})}},_refreshFocusEvent:function(){this._detachFocusEvents(),this._attachFocusEvents()},_focusInHandler:function(e){var t=this;t._createActionByOption("onFocusIn",{beforeExecute:function(){t._updateFocusState(e,!0)},excludeValidators:["readOnly"]})({event:e})},_focusOutHandler:function(e){var t=this;t._createActionByOption("onFocusOut",{beforeExecute:function(){t._updateFocusState(e,!1)},excludeValidators:["readOnly","disabled"]})({event:e})},_updateFocusState:function(e,t){var n=e.target;l(n,this._focusTarget())!==-1&&this._toggleFocusClass(t,i(n))},_toggleFocusClass:function(e,t){var n=t&&t.length?t:this._focusTarget();n.toggleClass(M,e)},_hasFocusClass:function(e){var t=i(e||this._focusTarget());return t.hasClass(M)},_attachKeyboardEvents:function(){var e=this.option("_keyboardProcessor");e?this._keyboardProcessor=e.reinitialize(this._keyboardHandler,this):this.option("focusStateEnabled")&&(this._keyboardProcessor=new b({element:this._keyboardEventBindingTarget(),handler:this._keyboardHandler,focusTarget:this._focusTarget(),context:this}))},_keyboardHandler:function(e){var t=e.originalEvent,n=e.key,i=this._supportedKeys(),o=i[n];if(void 0!==o){var a=o.bind(this);return a(t)||!1}return!0},_refreshFocusState:function(){this._cleanFocusState(),this._renderFocusState()},_cleanFocusState:function(){var e=this._focusTarget();this._detachFocusEvents(),this._toggleFocusClass(!1),e.removeAttr("tabIndex"),this._keyboardProcessor&&(this._keyboardProcessor.dispose(),delete this._keyboardProcessor)},_attachHoverEvents:function(){var e=this,t=e._activeStateUnit,n=C.addNamespace(k.start,D),a=C.addNamespace(k.end,D);if(o.off(e._eventBindingTarget(),n,t),o.off(e._eventBindingTarget(),a,t),e.option("hoverStateEnabled")){var s=new r(function(t){e._hoverStartHandler(t.event),e._refreshHoveredElement(i(t.element))},{excludeValidators:["readOnly"]}),l=e._eventBindingTarget();o.on(l,n,t,function(e){s.execute({element:i(e.target),event:e})}),o.on(l,a,t,function(t){e._hoverEndHandler(t),e._forgetHoveredElement()})}else e._toggleHoverClass(!1)},_hoverStartHandler:d.noop,_hoverEndHandler:d.noop,_attachFeedbackEvents:function(){var e,t,n=this,a=n._activeStateUnit,s=C.addNamespace(S.active,D),l=C.addNamespace(S.inactive,D);if(o.off(n._eventBindingTarget(),s,a),o.off(n._eventBindingTarget(),l,a),n.option("activeStateEnabled")){var c=function(e){var t=i(e.element),o=e.value,a=e.event;n._toggleActiveState(t,o,a)};o.on(n._eventBindingTarget(),s,a,{timeout:n._feedbackShowTimeout},function(t){e=e||new r(c),e.execute({element:i(t.currentTarget),value:!0,event:t})}),o.on(n._eventBindingTarget(),l,a,{timeout:n._feedbackHideTimeout},function(e){t=t||new r(c,{excludeValidators:["disabled","readOnly"]}),t.execute({element:i(e.currentTarget),value:!1,event:e})})}},_toggleActiveState:function(e,t){this._toggleHoverClass(!t),e.toggleClass(A,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(R,e&&this.option("hoverStateEnabled"))},_toggleDisabledState:function(e){this.$element().toggleClass(B,Boolean(e)),this._toggleHoverClass(!e),this.setAria("disabled",e||void 0)},_setWidgetOption:function(e,t){if(this[e]){if(u.isPlainObject(t[0]))return void c(t[0],function(t,n){this._setWidgetOption(e,[t,n])}.bind(this));var n=t[0],i=t[1];1===t.length&&(i=this.option(n));var o=this[e+"OptionMap"];this[e].option(o?o(n):n,i)}},_optionChanged:function(e){switch(e.name){case"disabled":this._toggleDisabledState(e.value),this._refreshFocusState();break;case"hint":this._renderHint();break;case"activeStateEnabled":this._attachFeedbackEvents();break;case"hoverStateEnabled":this._attachHoverEvents();break;case"tabIndex":case"_keyboardProcessor":case"focusStateEnabled":this._refreshFocusState();break;case"onFocusIn":case"onFocusOut":break;case"accessKey":this._renderAccessKey();break;case"visible":var t=e.value;this._toggleVisibility(t),this._isVisibilityChangeSupported()&&this._checkVisibilityChanged(e.value?"shown":"hiding");break;case"onContentReady":this._initContentReadyAction();break;default:this.callBase(e)}},_isVisible:function(){return this.callBase()&&this.option("visible")},beginUpdate:function(){this._ready(!1),this.callBase()},endUpdate:function(){this.callBase(),this._initialized&&this._ready(!0)},_ready:function(e){return 0===arguments.length?this._isReady:void(this._isReady=e)},setAria:function(){var e=function(e){var t="role"===e.name||"id"===e.name?e.name:"aria-"+e.name,n=e.value;n=null===n||void 0===n?void 0:n.toString(),h.toggleAttr(e.target,t,n)};if(u.isPlainObject(arguments[0])){var t=arguments[1]||this._getAriaTarget();c(arguments[0],function(n,i){e({name:n,value:i,target:t})})}else e({name:arguments[0],value:arguments[1],target:arguments[2]||this._getAriaTarget()})},isReady:function(){return this._ready()},repaint:function(){this._refresh()},focus:function(){o.trigger(this._focusTarget(),"focus")},registerKeyHandler:function(e,t){var n=this._supportedKeys(),i={};i[e]=t,this._supportedKeys=function(){return s(n,i)}}});e.exports=W},function(e,t,n){var i=n(0).extend,o=n(6),a=o.getNavigator(),r=/(webkit)[ \/]([\w.]+)/,s=/(msie) (\d{1,2}\.\d)/,l=/(trident).*rv:(\d{1,2}\.\d)/,c=/(edge)\/((\d+)?[\w.]+)/,d=/(safari)/i,u=/(mozilla)(?:.*? rv:([\w.]+))/,h=function(e){e=e.toLowerCase();var t={},n=s.exec(e)||l.exec(e)||c.exec(e)||e.indexOf("compatible")<0&&u.exec(e)||r.exec(e)||[],i=n[1],o=n[2];return"webkit"===i&&e.indexOf("chrome")<0&&d.exec(e)&&(i="safari",t.webkit=!0,o=/Version\/([0-9.]+)/i.exec(e),o=o&&o[1]),"trident"!==i&&"edge"!==i||(i="msie"),i&&(t[i]=!0,t.version=o),t};e.exports=i({_fromUA:h},h(a.userAgent))},function(e,t,n){var i=n(0),o={rtlEnabled:!1,defaultCurrency:"USD",designMode:!1,serverDecimalSeparator:".",decimalSeparator:".",thousandsSeparator:",",forceIsoDateParsing:!0,wrapActionsBeforeExecute:!0,useJQuery:void 0},a=function(){return arguments.length?void i.extend(o,arguments[0]):o};"undefined"!=typeof DevExpress&&DevExpress.config&&a(DevExpress.config),e.exports=a},function(e,t,n){function i(e){return Math.abs(parseInt(e.toExponential().split("e")[1]))}function o(){var e=3e-4,t="0.000300",n=3;return t!==e.toPrecision(n)}function a(e,t){var n,a=r(t||0)+2,l=e.toString().split("."),c=e,d=Math.abs(e),u=s(e),h=d>1?10:0;return 1===l.length?e:(u||(s(t)&&(a=l[0].length+i(t)),e=d,e=e-Math.floor(e)+h),a=o()&&i(e)>6||a>7?15:7,u||(n=parseFloat(e.toPrecision(a)).toString().split("."),n[0]!==h.toString())?parseFloat(c.toPrecision(a)):parseFloat(l[0]+"."+n[1]))}function r(e){var t,n,i=e.toString();return i.indexOf(".")<0?0:(t=i.split("."),n=t[1].indexOf("e"),n>=0?n:t[1].length)}var s=n(1).isExponential,l=function(e){return 0===e?0:e/Math.abs(e)},c=function(e,t,n){var i=!t&&0!==t,o=!n&&0!==n;return i&&(t=o?e:Math.min(e,n)),o&&(n=i?e:Math.max(e,t)),Math.min(Math.max(e,t),n)},d=function(e,t,n){return e>=t&&e<=n};t.sign=l,t.fitIntoRange=c,t.inRange=d,t.adjust=a,t.getPrecision=r,t.getExponent=i},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(6).getWindow(),r=n(5),s=n(17),l=n(13).getPublicElement,c=n(0).extend,d=n(1),u=n(3),h=n(24),p=n(224),f=n(105),g=n(40),_=n(77),m=n(129),v=n(9),x=n(7),w=x.when,b=x.Deferred,y=v.addNamespace(m,"dxFX"),C=d.isFunction,k=d.isPlainObject,S=n(4).noop,I=/^([+-])=(.*)/i,T="dxAnimData",D="dxAnimQueue",E="transform",A={initAnimation:function(e,t){e.css({transitionProperty:"none"}),"string"==typeof t.from?e.addClass(t.from):ce(e,t.from);var n=this,i=new b,o=t.cleanupWhen;t.transitionAnimation={deferred:i,finish:function(){n._finishTransition(e),o?w(i,o).always(function(){n._cleanup(e,t)}):n._cleanup(e,t),i.resolveWith(e,[t,e])}},this._completeAnimationCallback(e,t).done(function(){t.transitionAnimation.finish()}).fail(function(){i.rejectWith(e,[t,e])}),t.duration||t.transitionAnimation.finish(),e.css("transform")},animate:function(e,t){return this._startAnimation(e,t),t.transitionAnimation.deferred.promise()},_completeAnimationCallback:function(e,t){var n,i,o=this,a=Date.now()+t.delay,s=new b,l=new b,c=new b,d=g.transitionEndEventName()+".dxFX";return t.transitionAnimation.cleanup=function(){clearTimeout(n),clearTimeout(i),r.off(e,d),r.off(e,y)},r.one(e,d,function(){Date.now()-a>=t.duration&&l.reject()}),r.off(e,y),r.on(e,y,function(){o.stop(e,t),s.reject()}),i=setTimeout(function(){n=setTimeout(function(){c.reject()},t.duration+t.delay+ue._simulatedTransitionEndDelay),w(l,c).fail(function(){s.resolve()}.bind(this))}),s.promise()},_startAnimation:function(e,t){e.css({transitionProperty:"all",transitionDelay:t.delay+"ms",transitionDuration:t.duration+"ms",transitionTimingFunction:t.easing}),"string"==typeof t.to?e[0].className+=" "+t.to:t.to&&ce(e,t.to)},_finishTransition:function(e){e.css("transition","none")},_cleanup:function(e,t){t.transitionAnimation.cleanup(),"string"==typeof t.from&&(e.removeClass(t.from),e.removeClass(t.to))},stop:function(e,t,n){t&&(n?t.transitionAnimation.finish():(k(t.to)&&u.each(t.to,function(t){e.css(t,e.css(t))}),this._finishTransition(e),this._cleanup(e,t)))}},B={initAnimation:function(e,t){ce(e,t.from)},animate:function(e,t){var n=new b,i=this;return t?(u.each(t.to,function(n){void 0===t.from[n]&&(t.from[n]=i._normalizeValue(e.css(n)))}),t.to[E]&&(t.from[E]=i._parseTransform(t.from[E]),t.to[E]=i._parseTransform(t.to[E])),t.frameAnimation={to:t.to,from:t.from,currentValue:t.from,easing:p.convertTransitionTimingFuncToEasing(t.easing),duration:t.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),f.cancelAnimationFrame(t.frameAnimation.animationFrameId),n.resolve()},draw:function(){if(t.draw)return void t.draw(this.currentValue);var n=c({},this.currentValue);n[E]&&(n[E]=u.map(n[E],function(e,t){return"translate"===t?h.getTranslateCss(e):"scale"===t?"scale("+e+")":"rotate"===t.substr(0,t.length-1)?t+"("+e+"deg)":void 0}).join(" ")),e.css(n)}},t.delay?(t.frameAnimation.startTime+=t.delay,t.frameAnimation.delayTimeout=setTimeout(function(){i._startAnimation(e,t)},t.delay)):i._startAnimation(e,t),n.promise()):n.reject().promise()},_startAnimation:function(e,t){r.off(e,y),r.on(e,y,function(){t.frameAnimation&&f.cancelAnimationFrame(t.frameAnimation.animationFrameId)}),this._animationStep(e,t)},_parseTransform:function(e){var t={};return u.each(e.match(/(\w|\d)+\([^)]*\)\s*/g),function(e,n){var i=h.parseTranslate(n),o=n.match(/scale\((.+?)\)/),a=n.match(/(rotate.)\((.+)deg\)/);i&&(t.translate=i),o&&o[1]&&(t.scale=parseFloat(o[1])),a&&a[1]&&(t[a[1]]=parseFloat(a[2]))}),t},stop:function(e,t,n){var i=t&&t.frameAnimation;i&&(f.cancelAnimationFrame(i.animationFrameId),clearTimeout(i.delayTimeout),n&&i.finish(),delete t.frameAnimation)},_animationStep:function(e,t){var n=t&&t.frameAnimation;if(n){var i=(new Date).valueOf();if(i>=n.startTime+n.duration)return void n.finish();n.currentValue=this._calcStepValue(n,i-n.startTime),n.draw();var o=this;n.animationFrameId=f.requestAnimationFrame(function(){o._animationStep(e,t)})}},_calcStepValue:function(e,t){var n=function n(o,a){var r=Array.isArray(a)?[]:{},s=function(n){var i=t/e.duration,r=t,s=1*o[n],l=a[n]-o[n],c=e.duration;return p.getEasing(e.easing)(i,r,s,l,c)};return u.each(a,function(e,t){return"string"==typeof t&&parseFloat(t,10)===!1||void(r[e]="object"===("undefined"==typeof t?"undefined":i(t))?n(o[e],t):s(e))}),r};return n(e.from,e.to)},_normalizeValue:function(e){var t=parseFloat(e,10);return t===!1?e:t}},O={initAnimation:function(){},animate:function(){return(new b).resolve().promise()},stop:S,isSynchronous:!0},R=function(e){e=e||{};var t={transition:g.transition()?A:B,frame:B,noAnimation:O},n=e.strategy||"transition";return"css"!==e.type||g.transition()||(n="noAnimation"),t[n]},M=function(e,t,n,i){u.each(["from","to"],function(){if(!n(e[this]))throw s.Error("E0010",t,this,i)})},P=function(e,t){return M(e,t,function(e){return k(e)},"a plain object")},V=function(e,t){return M(e,t,function(e){return"string"==typeof e},"a string")},F={setup:function(){}},L={validateConfig:function(e){V(e,"css")},setup:function(){}},H={top:{my:"bottom center",at:"top center"},bottom:{my:"top center",at:"bottom center"},right:{my:"left center",at:"right center"},left:{my:"right center",at:"left center"}},z={validateConfig:function(e){P(e,"slide")},setup:function(e,t){var n=h.locate(e);if("slide"!==t.type){var i="slideIn"===t.type?t.from:t.to;i.position=c({of:a},H[t.direction]),le(e,i)}this._setUpConfig(n,t.from),this._setUpConfig(n,t.to),h.clearCache(e)},_setUpConfig:function(e,t){t.left="left"in t?t.left:"+=0",t.top="top"in t?t.top:"+=0",this._initNewPosition(e,t)},_initNewPosition:function(e,t){var n={left:t.left,top:t.top};delete t.left,delete t.top;var i=this._getRelativeValue(n.left);void 0!==i?n.left=i+e.left:t.left=0,i=this._getRelativeValue(n.top),void 0!==i?n.top=i+e.top:t.top=0,t[E]=h.getTranslateCss({x:n.left,y:n.top})},_getRelativeValue:function(e){var t;if("string"==typeof e&&(t=I.exec(e)))return parseInt(t[1]+"1")*t[2]}},N={setup:function(e,t){var n,i=t.from,o=k(i)?t.skipElementInitialStyles?0:e.css("opacity"):String(i);switch(t.type){case"fadeIn":n=1;break;case"fadeOut":n=0;break;default:n=String(t.to)}t.from={visibility:"visible",opacity:o},t.to={opacity:n}}},$={validateConfig:function(e){P(e,"pop")},setup:function(e,t){var n=t.from,i=t.to,o="opacity"in n?n.opacity:e.css("opacity"),a="opacity"in i?i.opacity:1,r="scale"in n?n.scale:0,s="scale"in i?i.scale:1;t.from={opacity:o};var l=h.getTranslate(e);t.from[E]=this._getCssTransform(l,r),t.to={opacity:a},t.to[E]=this._getCssTransform(l,s)},_getCssTransform:function(e,t){return h.getTranslateCss(e)+"scale("+t+")"}},W={custom:F,slide:z,slideIn:z,slideOut:z,fade:N,fadeIn:N,fadeOut:N,pop:$,css:L},G=function(e){var t=W[e.type];if(!t)throw s.Error("E0011",e.type);return t},q={type:"custom",from:{},to:{},duration:400,start:S,complete:S,easing:"ease",delay:0},j={duration:400,easing:"ease",delay:0},K=function(){var e=this,t=e.element,n=e.config;if(le(t,n.from),le(t,n.to),e.configurator.setup(t,n),t.data(T,e),ue.off&&(n.duration=0,n.delay=0),e.strategy.initAnimation(t,n),n.start){var i=l(t);n.start.apply(this,[i,n])}},U=function(e){var t=e.element,n=e.config;if(t.removeData(T),n.complete){var i=l(t);n.complete.apply(this,[i,n])}e.deferred.resolveWith(this,[t,n])},Y=function(){var e=this,t=e.element,n=e.config;return e.isStarted=!0,e.strategy.animate(t,n).done(function(){U(e)}).fail(function(){e.deferred.rejectWith(this,[t,n])})},X=function(e){var t=this,n=t.element,i=t.config;clearTimeout(t.startTimeout),t.isStarted||t.start(),t.strategy.stop(n,i,e)},Z=v.addNamespace(m,"dxFXStartAnimation"),J=function(e){r.off(e.element,Z),r.on(e.element,Z,function(){ue.stop(e.element)}),e.deferred.always(function(){r.off(e.element,Z)})},Q=function(e,t){var n="css"===t.type?j:q,i=c(!0,{},n,t),a=G(i),r=R(i),s={element:o(e),config:i,configurator:a,strategy:r,isSynchronous:r.isSynchronous,setup:K,start:Y,stop:X,deferred:new b};return C(a.validateConfig)&&a.validateConfig(i),J(s),s},ee=function(e,t){var n=o(e);if(!n.length)return(new b).resolve().promise();var i=Q(n,t);return te(n,i),i.deferred.promise()},te=function(e,t){var n=ne(e);ie(e,n),n.push(t),ae(e)||re(e,n)},ne=function(e){return e.data(D)||[]},ie=function(e,t){e.data(D,t)},oe=function(e){e.removeData(D)},ae=function(e){return!!e.data(T)},re=function e(t,n){if(n=ne(t),n.length){var i=n.shift();0===n.length&&oe(t),se(i).done(function(){ae(t)||e(t)})}},se=function(e){return e.setup(),ue.off||e.isSynchronous?e.start():e.startTimeout=setTimeout(function(){e.start()}),e.deferred.promise()},le=function(e,t){if(t&&t.position){var n=o(a),i=0,r=0,s=_.calculate(e,t.position),l=e.offset(),d=e.position();d.top>l.top&&(r=n.scrollTop()),d.left>l.left&&(i=n.scrollLeft()),c(t,{left:s.h.location-l.left+d.left-i,top:s.v.location-l.top+d.top-r}),delete t.position}},ce=function(e,t){u.each(t,function(t,n){try{e.css(t,d.isFunction(n)?n():n)}catch(e){}})},de=function(e,t){var n=o(e),i=ne(n);u.each(i,function(e,t){t.config.delay=0,t.config.duration=0,t.isSynchronous=!0}),ae(n)||re(n,i);var a=n.data(T);a&&a.stop(t),n.removeData(T),oe(n)},ue={off:!1,animationTypes:W,animate:ee,createAnimation:Q,isAnimating:ae,stop:de,_simulatedTransitionEndDelay:100};e.exports=ue},function(e,t,n){var i=n(55),o=n(1).isString,a=n(3),r=n(11).inArray,s=n(218).getFormatter,l=n(219).getFormat,c=n(314).getParser,d=n(220),u=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 a.each(t.split(/\W+/),function(e,t){a.each(f,function(e,i){r(t,i)>-1&&n.push(e)})}),n},getMonthNames:function(e){return d.getMonthNames(e)},getDayNames:function(e){return d.getDayNames(e)},getQuarterNames:function(e){return d.getQuarterNames(e)},getPeriodNames:function(e){return d.getPeriodNames(e)},getTimeSeparator:function(){return":"},is24HourFormat:function(e){for(var t=new Date(2017,0,20,11,0,0,0),n=new Date(2017,0,20,23,0,0,0),i=this.format(t,e),o=this.format(n,e),a=0;a<i.length;a++)if(i[a]!==o[a])return!isNaN(parseInt(i[a]))},format:function(e,t){if(e){if(!t)return e;var n;if("function"==typeof t)n=t;else if(t.formatter)n=t.formatter;else if(t=t.type||t,o(t))return t=p[t.toLowerCase()]||t,u.convertDigits(s(t,this)(e));if(n)return n(e)}},parse:function(e,t){var n,i,o,a=this;if(e){if(!t)return this.parse(e,"shortdate");if(t.parser)return t.parser(e);if("string"!=typeof t||p[t.toLowerCase()]){o=function(e){var n=a.format(e,t);return u.convertDigits(n,!0)};try{i=l(o)}catch(e){}}else i=t;if(i)return e=u.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=n(0).extend,o=n(46);i(t,o,{modules:[],foreachNodes:function(e,t){for(var n=0;n<e.length;n++)t(e[n])!==!1&&e[n].hasChildren&&e[n].children.length&&this.foreachNodes(e[n].children,t)}})},function(e,t,n){var i,o=n(171),a=n(12),r=n(5),s=n(172),l=new o,c=new s,d=function(){},u=function(){},h=t.setDataStrategy=function(e){c.fire(e),i=e;var t=i.cleanData;i.cleanData=function(e){d(e);var n=t.call(this,e);return u(e),n}};h({data:function(){var e=arguments[0],t=arguments[1],n=arguments[2];if(e){var i=l.get(e);return i||(i={},l.set(e,i)),void 0===t?i:2===arguments.length?i[t]:(i[t]=n,n)}},removeData:function(e,t){if(e)if(void 0===t)l.delete(e);else{var n=l.get(e);n&&delete n[t]}},cleanData:function(e){for(var t=0;t<e.length;t++)r.off(e[t]),l.delete(e[t])}}),t.setDataStrategy=h,t.getDataStrategy=function(){return i},t.data=function(){return i.data.apply(this,arguments)},t.strategyChanging=c,t.beforeCleanData=function(e){d=e},t.afterCleanData=function(e){u=e},t.cleanData=function(e){return i.cleanData.call(this,e)},t.removeData=function(e,t){return i.removeData.call(this,e,t)},t.cleanDataRecursive=function(e,t){if(a.isElementNode(e)){var n=e.getElementsByTagName("*");i.cleanData(n),t&&i.cleanData([e])}}},function(e,t,n){var i=n(102),o=n(17),a={},r=i(o.ERROR_MESSAGES,{E4000:"[DevExpress.data]: {0}",E4001:"Unknown aggregating function is detected: '{0}'",E4002:"Unsupported OData protocol version is used",E4003:"Unknown filter operation is used: {0}",E4004:"The thenby() method is called before the sortby() method",E4005:"Store requires a key expression for this operation",E4006:"ArrayStore 'data' option must be an array",E4007:"Compound keys cannot be auto-generated",E4008:"Attempt to insert an item with the a duplicated key",E4009:"Data item cannot be found",E4010:"CustomStore does not support creating queries",E4011:"Custom Store method is not implemented or is not a function: {0}",E4012:"Custom Store method returns an invalid value: {0}",E4013:"Local Store requires the 'name' configuration option is specified",E4014:"Unknown data type is specified for ODataStore: {0}",E4015:"Unknown entity name or alias is used: {0}",E4016:"The compileSetter(expr) method is called with 'self' passed as a parameter",E4017:"Keys cannot be modified",E4018:"The server has returned a non-numeric value in a response to an item count request",E4019:"Mixing of group operators inside a single group of filter expression is not allowed",E4020:"Unknown store type is detected: {0}",E4021:"The server response does not provide the totalCount value",E4022:"The server response does not provide the groupCount value",E4023:"Could not parse the following XML: {0}",W4000:"Data returned from the server has an incorrect structure",W4001:'The {0} field is listed in both "keyType" and "fieldTypes". The value of "fieldTypes" is used.',W4002:"Data loading has failed for some cells due to the following error: {0}"}),s=null,l=function(e){a.errorHandler&&a.errorHandler(e)};a={errors:r,errorHandler:s,_errorHandler:l},e.exports=a},function(e,t,n){var i=n(3).map,o=function(e){return void 0===e||null===e?"":String(e)},a=function(e){return o(e).charAt(0).toUpperCase()+e.substr(1)},r=function(e){return o(e).replace(/([a-z\d])([A-Z])/g,"$1 $2").split(/[\s_-]+/)},s=function(e){return i(r(e),function(e){return e.toLowerCase()}).join("-")},l=function(e){return s(e).replace(/-/g,"_")},c=function(e,t){return i(r(e),function(e,n){return e=e.toLowerCase(),(t||n>0)&&(e=a(e)),e}).join("")},d=function(e){return a(s(e).replace(/-/g," "))},u=function(e){return i(r(e),function(e){return a(e.toLowerCase())}).join(" ")},h=["0","1","2","3","4","5","6","7","8","9"],p=function(e){var t,n,i=[],o=!1,a=!1;for(t=0;t<e.length;t++)n=e.charAt(t),a=n===n.toUpperCase()&&"-"!==n&&")"!==n||n in h,"_"===n||"."===n?(n=" ",a=!0):0===t?(n=n.toUpperCase(),a=!0):!o&&a&&i.length>0&&i.push(" "),i.push(n),o=a;return i.join("")};t.dasherize=s,t.camelize=c,t.humanize=d,t.titleize=u,t.underscore=l,t.captionize=p},function(e,t,n){var i=n(2),o=n(5),a=n(106),r=n(13),s=n(14),l=n(8),c=n(0).extend,d=n(156),u=n(89),h=n(28),p=n(69),f=n(9),g=n(20),_=n(18),m=n(95),v="dx-button",x="dx-button-content",w="dx-button-has-text",b="dx-button-has-icon",y="dx-template-wrapper",C="dx-button-text",k="content",S=100,I=h.inherit({_supportedKeys:function(){var e=this,t=function(t){t.preventDefault(),e._executeClickAction(t)};return c(this.callBase(),{space:t,enter:t})},_setDeprecatedOptions:function(){this.callBase()},_getDefaultOptions:function(){return c(this.callBase(),{hoverStateEnabled:!0,onClick:null,type:"normal",text:"",icon:"",validationGroup:void 0,activeStateEnabled:!0,template:"content",useSubmitBehavior:!1,useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===s.real().deviceType&&!s.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){var e=g.current();return g.isMaterial(e)||g.isAndroid5(e)},options:{useInkRipple:!0}}])},_getAnonymousTemplateName:function(){return k},_feedbackHideTimeout:S,_initTemplates:function(){this.callBase(),this._defaultTemplates.content=new m(function(e){var t=e.model,n=a.getImageContainer(t&&t.icon),o=t&&t.text?i("<span>").text(t.text).addClass(C):void 0;i(e.container).append(n).append(o)},this)},_initMarkup:function(){this.$element().addClass(v),this._renderType(),this.option("useInkRipple")&&this._renderInkRipple(),this._renderClick(),this.setAria("role","button"),this._updateAriaLabel(),this.callBase(),this._updateContent()},_renderInkRipple:function(){var e=!this.option("text")&&this.option("icon")||"back"===this.option("type"),t={};e&&c(t,{waveSizeCoefficient:1,useHoldAnimation:!1,isCentered:!0}),this._inkRipple=p.render(t)},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:this._$content,event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_updateContent:function(){var e=this.$element(),t=this._getContentData();this._$content?this._$content.empty():this._$content=i("<div>").addClass(x).appendTo(e),e.toggleClass(b,!!t.icon).toggleClass(w,!!t.text);var n=this._getAnonymousTemplateName()===this.option("template"),o=this._getTemplateByOption("template"),a=i(o.render({model:t,container:r.getPublicElement(this._$content),transclude:n}));a.hasClass(y)&&(this._$content.replaceWith(a),this._$content=a,this._$content.addClass(x)),this.option("useSubmitBehavior")&&this._renderSubmitInput()},_renderSubmitInput:function(){var e=this._createAction(function(e){var t=e.event,n=u.getGroupConfig(e.component._findGroup());n&&!n.validate().isValid&&t.preventDefault(),t.stopPropagation()});this._$submitInput=i("<input>").attr("type","submit").attr("tabindex",-1).addClass("dx-button-submit-input").appendTo(this._$content),o.on(this._$submitInput,"click",function(t){e({event:t})})},_getContentData:function(){var e=this.option("icon"),t=this.option("text"),n="back"===this.option("type");return n&&!e&&(e="back"),{icon:e,text:t}},_renderClick:function(){var e=this,t=f.addNamespace(_.name,this.NAME),n={};this.option("useSubmitBehavior")&&(n.afterExecute=function(e){setTimeout(function(){e.component._$submitInput.get(0).click()})}),this._clickAction=this._createActionByOption("onClick",n),o.off(this.$element(),t),o.on(this.$element(),t,function(t){e._executeClickAction(t)})},_executeClickAction:function(e){this._clickAction({event:e,validationGroup:u.getGroupConfig(this._findGroup())})},_updateAriaLabel:function(){var e=this.option("icon"),t=this.option("text");"image"===a.getImageSourceType(e)&&(e=e.indexOf("base64")===-1?e.replace(/.+\/([^.]+)\..+$/,"$1"):"Base64");var n=t||e||"";n=n.toString().trim(),this.setAria("label",n)},_renderType:function(){var e=this.option("type");e&&this.$element().addClass("dx-button-"+e)},_refreshType:function(e){var t=this.option("type");
|
|
11
|
+
return h.getElementOptions(e).dxTemplate})[0];return c(e,function(e,n){n!==t&&i(n).remove()}),t},_extractAnonymousTemplate:function(){var e=this.option("integrationOptions.templates"),t=this._getAnonymousTemplateName(),n=this.$element().contents().detach(),o=n.filter(function(e,t){var n=t.nodeType===H,o=i(t).text().trim().length<1;return!(n&&o)}),a=o.length<1;e[t]||a||(e[t]=this._createTemplate(n))},_getAriaTarget:function(){return this._focusTarget()},_getAnonymousTemplateName:function(){return L},_getTemplateByOption:function(e){return this._getTemplate(this.option(e))},_getTemplate:function(e){return u.isFunction(e)?new v(function(t){var n=e.apply(this,this._getNormalizedTemplateArgs(t));if(!u.isDefined(n))return new x;var o=!1,a=this._acquireTemplate(n,function(e){return e.nodeType||u.isRenderer(e)&&!i(e).is("script")?new v(function(){return e}):(o=!0,this._createTemplate(e))}.bind(this)),r=a.render(t);return o&&a.dispose&&a.dispose(),r}.bind(this)):this._acquireTemplate(e,this._createTemplateIfNeeded.bind(this))},_acquireTemplate:function(e,t){return null==e?new x:e instanceof w?this._defaultTemplates[e.name]:e instanceof m?e:u.isFunction(e.render)&&!u.isRenderer(e)?this._addOneRenderedCall(e):e.nodeType||u.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 u.isRenderer(e)&&e[0]||e},n=this._tempTemplates.filter(function(n){return e=t(e),n.source===e})[0];if(n)return n.template;var i=this._createTemplate(e);return this._tempTemplates.push({template:i,source:t(e)}),i},_createTemplate:function(e){return e="string"==typeof e?h.normalizeTemplateElement(e):e,this.option("integrationOptions.createTemplate")(e)},_getNormalizedTemplateArgs:function(e){var t=[];return"model"in e&&t.push(e.model),"index"in e&&t.push(e.index),t.push(e.container),t},_cleanTemplates:function(){this._tempTemplates.forEach(function(e){e.template.dispose&&e.template.dispose()}),this._tempTemplates=[]},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["designMode","disabled","readOnly"]})},_initMarkup:function(){this.$element().addClass(E),this._toggleDisabledState(this.option("disabled")),this._toggleVisibility(this.option("visible")),this._renderHint(),this._isFocusable()&&this._renderFocusTarget(),this.callBase()},_render:function(){this.callBase(),this._renderContent(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents()},_renderHint:function(){h.toggleAttr(this.$element(),"title",this.option("hint"))},_renderContent:function(){var e=this;d.deferRender(function(){e._renderContentImpl()}),e._fireContentReadyAction()},_renderContentImpl:d.noop,_fireContentReadyAction:d.deferRenderer(function(){this._contentReadyAction()}),_dispose:function(){this._cleanTemplates(),this._contentReadyAction=null,this.callBase()},_resetActiveState:function(){this._toggleActiveState(this._eventBindingTarget(),!1)},_clean:function(){this._cleanFocusState(),this._resetActiveState(),this.callBase(),this.$element().empty()},_toggleVisibility:function(e){this.$element().toggleClass(O,!e),this.setAria("hidden",!e||void 0)},_renderFocusState:function(){this._attachKeyboardEvents(),this._isFocusable()&&(this._renderFocusTarget(),this._attachFocusEvents(),this._renderAccessKey())},_renderAccessKey:function(){var e=this._focusTarget();e.attr("accesskey",this.option("accessKey"));var t=C.addNamespace(I.name,D);o.off(e,t),this.option("accessKey")&&o.on(e,t,function(e){C.isFakeClickEvent(e)&&(e.stopImmediatePropagation(),this.focus())}.bind(this))},_isFocusable:function(){return this.option("focusStateEnabled")&&!this.option("disabled")},_eventBindingTarget:function(){return this.$element()},_focusTarget:function(){return this._getActiveElement()},_getActiveElement:function(){var e=this._eventBindingTarget();return this._activeStateUnit&&(e=e.find(this._activeStateUnit).not("."+B)),e},_renderFocusTarget:function(){this._focusTarget().attr("tabIndex",this.option("tabIndex"))},_keyboardEventBindingTarget:function(){return this._eventBindingTarget()},_detachFocusEvents:function(){var e=this._focusTarget(),t=this.NAME+F,n=C.addNamespace("focusin",t);n=n+" "+C.addNamespace("focusout",t),p.hasDocumentProperty("onbeforeactivate")&&(n=n+" "+C.addNamespace("beforeactivate",t)),o.off(e,n)},_attachFocusEvents:function(){var e=this.NAME+F,t=C.addNamespace("focusin",e),n=C.addNamespace("focusout",e),a=this._focusTarget();if(o.on(a,t,this._focusInHandler.bind(this)),o.on(a,n,this._focusOutHandler.bind(this)),p.hasDocumentProperty("onbeforeactivate")){var r=C.addNamespace("beforeactivate",e);o.on(this._focusTarget(),r,function(e){i(e.target).is(y.focusable)||e.preventDefault()})}},_refreshFocusEvent:function(){this._detachFocusEvents(),this._attachFocusEvents()},_focusInHandler:function(e){var t=this;t._createActionByOption("onFocusIn",{beforeExecute:function(){t._updateFocusState(e,!0)},excludeValidators:["readOnly"]})({event:e})},_focusOutHandler:function(e){var t=this;t._createActionByOption("onFocusOut",{beforeExecute:function(){t._updateFocusState(e,!1)},excludeValidators:["readOnly","disabled"]})({event:e})},_updateFocusState:function(e,t){var n=e.target;l(n,this._focusTarget())!==-1&&this._toggleFocusClass(t,i(n))},_toggleFocusClass:function(e,t){var n=t&&t.length?t:this._focusTarget();n.toggleClass(M,e)},_hasFocusClass:function(e){var t=i(e||this._focusTarget());return t.hasClass(M)},_attachKeyboardEvents:function(){var e=this.option("_keyboardProcessor");e?this._keyboardProcessor=e.reinitialize(this._keyboardHandler,this):this.option("focusStateEnabled")&&(this._keyboardProcessor=new b({element:this._keyboardEventBindingTarget(),handler:this._keyboardHandler,focusTarget:this._focusTarget(),context:this}))},_keyboardHandler:function(e){var t=e.originalEvent,n=e.key,i=this._supportedKeys(),o=i[n];if(void 0!==o){var a=o.bind(this);return a(t)||!1}return!0},_refreshFocusState:function(){this._cleanFocusState(),this._renderFocusState()},_cleanFocusState:function(){var e=this._focusTarget();this._detachFocusEvents(),this._toggleFocusClass(!1),e.removeAttr("tabIndex"),this._keyboardProcessor&&(this._keyboardProcessor.dispose(),delete this._keyboardProcessor)},_attachHoverEvents:function(){var e=this,t=e._activeStateUnit,n=C.addNamespace(k.start,D),a=C.addNamespace(k.end,D);if(o.off(e._eventBindingTarget(),n,t),o.off(e._eventBindingTarget(),a,t),e.option("hoverStateEnabled")){var s=new r(function(t){e._hoverStartHandler(t.event),e._refreshHoveredElement(i(t.element))},{excludeValidators:["readOnly"]}),l=e._eventBindingTarget();o.on(l,n,t,function(e){s.execute({element:i(e.target),event:e})}),o.on(l,a,t,function(t){e._hoverEndHandler(t),e._forgetHoveredElement()})}else e._toggleHoverClass(!1)},_hoverStartHandler:d.noop,_hoverEndHandler:d.noop,_attachFeedbackEvents:function(){var e,t,n=this,a=n._activeStateUnit,s=C.addNamespace(S.active,D),l=C.addNamespace(S.inactive,D);if(o.off(n._eventBindingTarget(),s,a),o.off(n._eventBindingTarget(),l,a),n.option("activeStateEnabled")){var c=function(e){var t=i(e.element),o=e.value,a=e.event;n._toggleActiveState(t,o,a)};o.on(n._eventBindingTarget(),s,a,{timeout:n._feedbackShowTimeout},function(t){e=e||new r(c),e.execute({element:i(t.currentTarget),value:!0,event:t})}),o.on(n._eventBindingTarget(),l,a,{timeout:n._feedbackHideTimeout},function(e){t=t||new r(c,{excludeValidators:["disabled","readOnly"]}),t.execute({element:i(e.currentTarget),value:!1,event:e})})}},_toggleActiveState:function(e,t){this._toggleHoverClass(!t),e.toggleClass(A,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(R,e&&this.option("hoverStateEnabled"))},_toggleDisabledState:function(e){this.$element().toggleClass(B,Boolean(e)),this._toggleHoverClass(!e),this.setAria("disabled",e||void 0)},_setWidgetOption:function(e,t){if(this[e]){if(u.isPlainObject(t[0]))return void c(t[0],function(t,n){this._setWidgetOption(e,[t,n])}.bind(this));var n=t[0],i=t[1];1===t.length&&(i=this.option(n));var o=this[e+"OptionMap"];this[e].option(o?o(n):n,i)}},_optionChanged:function(e){switch(e.name){case"disabled":this._toggleDisabledState(e.value),this._refreshFocusState();break;case"hint":this._renderHint();break;case"activeStateEnabled":this._attachFeedbackEvents();break;case"hoverStateEnabled":this._attachHoverEvents();break;case"tabIndex":case"_keyboardProcessor":case"focusStateEnabled":this._refreshFocusState();break;case"onFocusIn":case"onFocusOut":break;case"accessKey":this._renderAccessKey();break;case"visible":var t=e.value;this._toggleVisibility(t),this._isVisibilityChangeSupported()&&this._checkVisibilityChanged(e.value?"shown":"hiding");break;case"onContentReady":this._initContentReadyAction();break;default:this.callBase(e)}},_isVisible:function(){return this.callBase()&&this.option("visible")},beginUpdate:function(){this._ready(!1),this.callBase()},endUpdate:function(){this.callBase(),this._initialized&&this._ready(!0)},_ready:function(e){return 0===arguments.length?this._isReady:void(this._isReady=e)},setAria:function(){var e=function(e){var t="role"===e.name||"id"===e.name?e.name:"aria-"+e.name,n=e.value;n=null===n||void 0===n?void 0:n.toString(),h.toggleAttr(e.target,t,n)};if(u.isPlainObject(arguments[0])){var t=arguments[1]||this._getAriaTarget();c(arguments[0],function(n,i){e({name:n,value:i,target:t})})}else e({name:arguments[0],value:arguments[1],target:arguments[2]||this._getAriaTarget()})},isReady:function(){return this._ready()},repaint:function(){this._refresh()},focus:function(){o.trigger(this._focusTarget(),"focus")},registerKeyHandler:function(e,t){var n=this._supportedKeys(),i={};i[e]=t,this._supportedKeys=function(){return s(n,i)}}});e.exports=W},function(e,t,n){var i=n(0).extend,o=n(6),a=o.getNavigator(),r=/(webkit)[ \/]([\w.]+)/,s=/(msie) (\d{1,2}\.\d)/,l=/(trident).*rv:(\d{1,2}\.\d)/,c=/(edge)\/((\d+)?[\w.]+)/,d=/(safari)/i,u=/(mozilla)(?:.*? rv:([\w.]+))/,h=function(e){e=e.toLowerCase();var t={},n=s.exec(e)||l.exec(e)||c.exec(e)||e.indexOf("compatible")<0&&u.exec(e)||r.exec(e)||[],i=n[1],o=n[2];return"webkit"===i&&e.indexOf("chrome")<0&&d.exec(e)&&(i="safari",t.webkit=!0,o=/Version\/([0-9.]+)/i.exec(e),o=o&&o[1]),"trident"!==i&&"edge"!==i||(i="msie"),i&&(t[i]=!0,t.version=o),t};e.exports=i({_fromUA:h},h(a.userAgent))},function(e,t,n){var i=n(0),o={rtlEnabled:!1,defaultCurrency:"USD",designMode:!1,serverDecimalSeparator:".",decimalSeparator:".",thousandsSeparator:",",forceIsoDateParsing:!0,wrapActionsBeforeExecute:!0,useJQuery:void 0},a=function(){return arguments.length?void i.extend(o,arguments[0]):o};"undefined"!=typeof DevExpress&&DevExpress.config&&a(DevExpress.config),e.exports=a},function(e,t,n){function i(e){return Math.abs(parseInt(e.toExponential().split("e")[1]))}function o(){var e=3e-4,t="0.000300",n=3;return t!==e.toPrecision(n)}function a(e,t){var n,a=r(t||0)+2,l=e.toString().split("."),c=e,d=Math.abs(e),u=s(e),h=d>1?10:0;return 1===l.length?e:(u||(s(t)&&(a=l[0].length+i(t)),e=d,e=e-Math.floor(e)+h),a=o()&&i(e)>6||a>7?15:7,u||(n=parseFloat(e.toPrecision(a)).toString().split("."),n[0]!==h.toString())?parseFloat(c.toPrecision(a)):parseFloat(l[0]+"."+n[1]))}function r(e){var t,n,i=e.toString();return i.indexOf(".")<0?0:(t=i.split("."),n=t[1].indexOf("e"),n>=0?n:t[1].length)}var s=n(1).isExponential,l=function(e){return 0===e?0:e/Math.abs(e)},c=function(e,t,n){var i=!t&&0!==t,o=!n&&0!==n;return i&&(t=o?e:Math.min(e,n)),o&&(n=i?e:Math.max(e,t)),Math.min(Math.max(e,t),n)},d=function(e,t,n){return e>=t&&e<=n};t.sign=l,t.fitIntoRange=c,t.inRange=d,t.adjust=a,t.getPrecision=r,t.getExponent=i},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(6).getWindow(),r=n(5),s=n(17),l=n(13).getPublicElement,c=n(0).extend,d=n(1),u=n(3),h=n(24),p=n(224),f=n(105),g=n(40),_=n(77),m=n(129),v=n(9),x=n(7),w=x.when,b=x.Deferred,y=v.addNamespace(m,"dxFX"),C=d.isFunction,k=d.isPlainObject,S=n(4).noop,I=/^([+-])=(.*)/i,T="dxAnimData",D="dxAnimQueue",E="transform",A={initAnimation:function(e,t){e.css({transitionProperty:"none"}),"string"==typeof t.from?e.addClass(t.from):ce(e,t.from);var n=this,i=new b,o=t.cleanupWhen;t.transitionAnimation={deferred:i,finish:function(){n._finishTransition(e),o?w(i,o).always(function(){n._cleanup(e,t)}):n._cleanup(e,t),i.resolveWith(e,[t,e])}},this._completeAnimationCallback(e,t).done(function(){t.transitionAnimation.finish()}).fail(function(){i.rejectWith(e,[t,e])}),t.duration||t.transitionAnimation.finish(),e.css("transform")},animate:function(e,t){return this._startAnimation(e,t),t.transitionAnimation.deferred.promise()},_completeAnimationCallback:function(e,t){var n,i,o=this,a=Date.now()+t.delay,s=new b,l=new b,c=new b,d=g.transitionEndEventName()+".dxFX";return t.transitionAnimation.cleanup=function(){clearTimeout(n),clearTimeout(i),r.off(e,d),r.off(e,y)},r.one(e,d,function(){Date.now()-a>=t.duration&&l.reject()}),r.off(e,y),r.on(e,y,function(){o.stop(e,t),s.reject()}),i=setTimeout(function(){n=setTimeout(function(){c.reject()},t.duration+t.delay+ue._simulatedTransitionEndDelay),w(l,c).fail(function(){s.resolve()}.bind(this))}),s.promise()},_startAnimation:function(e,t){e.css({transitionProperty:"all",transitionDelay:t.delay+"ms",transitionDuration:t.duration+"ms",transitionTimingFunction:t.easing}),"string"==typeof t.to?e[0].className+=" "+t.to:t.to&&ce(e,t.to)},_finishTransition:function(e){e.css("transition","none")},_cleanup:function(e,t){t.transitionAnimation.cleanup(),"string"==typeof t.from&&(e.removeClass(t.from),e.removeClass(t.to))},stop:function(e,t,n){t&&(n?t.transitionAnimation.finish():(k(t.to)&&u.each(t.to,function(t){e.css(t,e.css(t))}),this._finishTransition(e),this._cleanup(e,t)))}},B={initAnimation:function(e,t){ce(e,t.from)},animate:function(e,t){var n=new b,i=this;return t?(u.each(t.to,function(n){void 0===t.from[n]&&(t.from[n]=i._normalizeValue(e.css(n)))}),t.to[E]&&(t.from[E]=i._parseTransform(t.from[E]),t.to[E]=i._parseTransform(t.to[E])),t.frameAnimation={to:t.to,from:t.from,currentValue:t.from,easing:p.convertTransitionTimingFuncToEasing(t.easing),duration:t.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),f.cancelAnimationFrame(t.frameAnimation.animationFrameId),n.resolve()},draw:function(){if(t.draw)return void t.draw(this.currentValue);var n=c({},this.currentValue);n[E]&&(n[E]=u.map(n[E],function(e,t){return"translate"===t?h.getTranslateCss(e):"scale"===t?"scale("+e+")":"rotate"===t.substr(0,t.length-1)?t+"("+e+"deg)":void 0}).join(" ")),e.css(n)}},t.delay?(t.frameAnimation.startTime+=t.delay,t.frameAnimation.delayTimeout=setTimeout(function(){i._startAnimation(e,t)},t.delay)):i._startAnimation(e,t),n.promise()):n.reject().promise()},_startAnimation:function(e,t){r.off(e,y),r.on(e,y,function(){t.frameAnimation&&f.cancelAnimationFrame(t.frameAnimation.animationFrameId)}),this._animationStep(e,t)},_parseTransform:function(e){var t={};return u.each(e.match(/\w+\d*\w*\([^)]*\)\s*/g),function(e,n){var i=h.parseTranslate(n),o=n.match(/scale\((.+?)\)/),a=n.match(/(rotate.)\((.+)deg\)/);i&&(t.translate=i),o&&o[1]&&(t.scale=parseFloat(o[1])),a&&a[1]&&(t[a[1]]=parseFloat(a[2]))}),t},stop:function(e,t,n){var i=t&&t.frameAnimation;i&&(f.cancelAnimationFrame(i.animationFrameId),clearTimeout(i.delayTimeout),n&&i.finish(),delete t.frameAnimation)},_animationStep:function(e,t){var n=t&&t.frameAnimation;if(n){var i=(new Date).valueOf();if(i>=n.startTime+n.duration)return void n.finish();n.currentValue=this._calcStepValue(n,i-n.startTime),n.draw();var o=this;n.animationFrameId=f.requestAnimationFrame(function(){o._animationStep(e,t)})}},_calcStepValue:function(e,t){var n=function n(o,a){var r=Array.isArray(a)?[]:{},s=function(n){var i=t/e.duration,r=t,s=1*o[n],l=a[n]-o[n],c=e.duration;return p.getEasing(e.easing)(i,r,s,l,c)};return u.each(a,function(e,t){return"string"==typeof t&&parseFloat(t,10)===!1||void(r[e]="object"===("undefined"==typeof t?"undefined":i(t))?n(o[e],t):s(e))}),r};return n(e.from,e.to)},_normalizeValue:function(e){var t=parseFloat(e,10);return t===!1?e:t}},O={initAnimation:function(){},animate:function(){return(new b).resolve().promise()},stop:S,isSynchronous:!0},R=function(e){e=e||{};var t={transition:g.transition()?A:B,frame:B,noAnimation:O},n=e.strategy||"transition";return"css"!==e.type||g.transition()||(n="noAnimation"),t[n]},M=function(e,t,n,i){u.each(["from","to"],function(){if(!n(e[this]))throw s.Error("E0010",t,this,i)})},P=function(e,t){return M(e,t,function(e){return k(e)},"a plain object")},V=function(e,t){return M(e,t,function(e){return"string"==typeof e},"a string")},F={setup:function(){}},L={validateConfig:function(e){V(e,"css")},setup:function(){}},H={top:{my:"bottom center",at:"top center"},bottom:{my:"top center",at:"bottom center"},right:{my:"left center",at:"right center"},left:{my:"right center",at:"left center"}},z={validateConfig:function(e){P(e,"slide")},setup:function(e,t){var n=h.locate(e);if("slide"!==t.type){var i="slideIn"===t.type?t.from:t.to;i.position=c({of:a},H[t.direction]),le(e,i)}this._setUpConfig(n,t.from),this._setUpConfig(n,t.to),h.clearCache(e)},_setUpConfig:function(e,t){t.left="left"in t?t.left:"+=0",t.top="top"in t?t.top:"+=0",this._initNewPosition(e,t)},_initNewPosition:function(e,t){var n={left:t.left,top:t.top};delete t.left,delete t.top;var i=this._getRelativeValue(n.left);void 0!==i?n.left=i+e.left:t.left=0,i=this._getRelativeValue(n.top),void 0!==i?n.top=i+e.top:t.top=0,t[E]=h.getTranslateCss({x:n.left,y:n.top})},_getRelativeValue:function(e){var t;if("string"==typeof e&&(t=I.exec(e)))return parseInt(t[1]+"1")*t[2]}},N={setup:function(e,t){var n,i=t.from,o=k(i)?t.skipElementInitialStyles?0:e.css("opacity"):String(i);switch(t.type){case"fadeIn":n=1;break;case"fadeOut":n=0;break;default:n=String(t.to)}t.from={visibility:"visible",opacity:o},t.to={opacity:n}}},$={validateConfig:function(e){P(e,"pop")},setup:function(e,t){var n=t.from,i=t.to,o="opacity"in n?n.opacity:e.css("opacity"),a="opacity"in i?i.opacity:1,r="scale"in n?n.scale:0,s="scale"in i?i.scale:1;t.from={opacity:o};var l=h.getTranslate(e);t.from[E]=this._getCssTransform(l,r),t.to={opacity:a},t.to[E]=this._getCssTransform(l,s)},_getCssTransform:function(e,t){return h.getTranslateCss(e)+"scale("+t+")"}},W={custom:F,slide:z,slideIn:z,slideOut:z,fade:N,fadeIn:N,fadeOut:N,pop:$,css:L},G=function(e){var t=W[e.type];if(!t)throw s.Error("E0011",e.type);return t},q={type:"custom",from:{},to:{},duration:400,start:S,complete:S,easing:"ease",delay:0},j={duration:400,easing:"ease",delay:0},K=function(){var e=this,t=e.element,n=e.config;if(le(t,n.from),le(t,n.to),e.configurator.setup(t,n),t.data(T,e),ue.off&&(n.duration=0,n.delay=0),e.strategy.initAnimation(t,n),n.start){var i=l(t);n.start.apply(this,[i,n])}},U=function(e){var t=e.element,n=e.config;if(t.removeData(T),n.complete){var i=l(t);n.complete.apply(this,[i,n])}e.deferred.resolveWith(this,[t,n])},Y=function(){var e=this,t=e.element,n=e.config;return e.isStarted=!0,e.strategy.animate(t,n).done(function(){U(e)}).fail(function(){e.deferred.rejectWith(this,[t,n])})},X=function(e){var t=this,n=t.element,i=t.config;clearTimeout(t.startTimeout),t.isStarted||t.start(),t.strategy.stop(n,i,e)},Z=v.addNamespace(m,"dxFXStartAnimation"),J=function(e){r.off(e.element,Z),r.on(e.element,Z,function(){ue.stop(e.element)}),e.deferred.always(function(){r.off(e.element,Z)})},Q=function(e,t){var n="css"===t.type?j:q,i=c(!0,{},n,t),a=G(i),r=R(i),s={element:o(e),config:i,configurator:a,strategy:r,isSynchronous:r.isSynchronous,setup:K,start:Y,stop:X,deferred:new b};return C(a.validateConfig)&&a.validateConfig(i),J(s),s},ee=function(e,t){var n=o(e);if(!n.length)return(new b).resolve().promise();var i=Q(n,t);return te(n,i),i.deferred.promise()},te=function(e,t){var n=ne(e);ie(e,n),n.push(t),ae(e)||re(e,n)},ne=function(e){return e.data(D)||[]},ie=function(e,t){e.data(D,t)},oe=function(e){e.removeData(D)},ae=function(e){return!!e.data(T)},re=function e(t,n){if(n=ne(t),n.length){var i=n.shift();0===n.length&&oe(t),se(i).done(function(){ae(t)||e(t)})}},se=function(e){return e.setup(),ue.off||e.isSynchronous?e.start():e.startTimeout=setTimeout(function(){e.start()}),e.deferred.promise()},le=function(e,t){if(t&&t.position){var n=o(a),i=0,r=0,s=_.calculate(e,t.position),l=e.offset(),d=e.position();d.top>l.top&&(r=n.scrollTop()),d.left>l.left&&(i=n.scrollLeft()),c(t,{left:s.h.location-l.left+d.left-i,top:s.v.location-l.top+d.top-r}),delete t.position}},ce=function(e,t){u.each(t,function(t,n){try{e.css(t,d.isFunction(n)?n():n)}catch(e){}})},de=function(e,t){var n=o(e),i=ne(n);u.each(i,function(e,t){t.config.delay=0,t.config.duration=0,t.isSynchronous=!0}),ae(n)||re(n,i);var a=n.data(T);a&&a.stop(t),n.removeData(T),oe(n)},ue={off:!1,animationTypes:W,animate:ee,createAnimation:Q,isAnimating:ae,stop:de,_simulatedTransitionEndDelay:100};e.exports=ue},function(e,t,n){var i=n(55),o=n(1).isString,a=n(3),r=n(11).inArray,s=n(218).getFormatter,l=n(219).getFormat,c=n(314).getParser,d=n(220),u=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 a.each(t.split(/\W+/),function(e,t){a.each(f,function(e,i){r(t,i)>-1&&n.push(e)})}),n},getMonthNames:function(e){return d.getMonthNames(e)},getDayNames:function(e){return d.getDayNames(e)},getQuarterNames:function(e){return d.getQuarterNames(e)},getPeriodNames:function(e){return d.getPeriodNames(e)},getTimeSeparator:function(){return":"},is24HourFormat:function(e){for(var t=new Date(2017,0,20,11,0,0,0),n=new Date(2017,0,20,23,0,0,0),i=this.format(t,e),o=this.format(n,e),a=0;a<i.length;a++)if(i[a]!==o[a])return!isNaN(parseInt(i[a]))},format:function(e,t){if(e){if(!t)return e;var n;if("function"==typeof t)n=t;else if(t.formatter)n=t.formatter;else if(t=t.type||t,o(t))return t=p[t.toLowerCase()]||t,u.convertDigits(s(t,this)(e));if(n)return n(e)}},parse:function(e,t){var n,i,o,a=this;if(e){if(!t)return this.parse(e,"shortdate");if(t.parser)return t.parser(e);if("string"!=typeof t||p[t.toLowerCase()]){o=function(e){var n=a.format(e,t);return u.convertDigits(n,!0)};try{i=l(o)}catch(e){}}else i=t;if(i)return e=u.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=n(0).extend,o=n(46);i(t,o,{modules:[],foreachNodes:function(e,t){for(var n=0;n<e.length;n++)t(e[n])!==!1&&e[n].hasChildren&&e[n].children.length&&this.foreachNodes(e[n].children,t)}})},function(e,t,n){var i,o=n(171),a=n(12),r=n(5),s=n(172),l=new o,c=new s,d=function(){},u=function(){},h=t.setDataStrategy=function(e){c.fire(e),i=e;var t=i.cleanData;i.cleanData=function(e){d(e);var n=t.call(this,e);return u(e),n}};h({data:function(){var e=arguments[0],t=arguments[1],n=arguments[2];if(e){var i=l.get(e);return i||(i={},l.set(e,i)),void 0===t?i:2===arguments.length?i[t]:(i[t]=n,n)}},removeData:function(e,t){if(e)if(void 0===t)l.delete(e);else{var n=l.get(e);n&&delete n[t]}},cleanData:function(e){for(var t=0;t<e.length;t++)r.off(e[t]),l.delete(e[t])}}),t.setDataStrategy=h,t.getDataStrategy=function(){return i},t.data=function(){return i.data.apply(this,arguments)},t.strategyChanging=c,t.beforeCleanData=function(e){d=e},t.afterCleanData=function(e){u=e},t.cleanData=function(e){return i.cleanData.call(this,e)},t.removeData=function(e,t){return i.removeData.call(this,e,t)},t.cleanDataRecursive=function(e,t){if(a.isElementNode(e)){var n=e.getElementsByTagName("*");i.cleanData(n),t&&i.cleanData([e])}}},function(e,t,n){var i=n(102),o=n(17),a={},r=i(o.ERROR_MESSAGES,{E4000:"[DevExpress.data]: {0}",E4001:"Unknown aggregating function is detected: '{0}'",E4002:"Unsupported OData protocol version is used",E4003:"Unknown filter operation is used: {0}",E4004:"The thenby() method is called before the sortby() method",E4005:"Store requires a key expression for this operation",E4006:"ArrayStore 'data' option must be an array",E4007:"Compound keys cannot be auto-generated",E4008:"Attempt to insert an item with the a duplicated key",E4009:"Data item cannot be found",E4010:"CustomStore does not support creating queries",E4011:"Custom Store method is not implemented or is not a function: {0}",E4012:"Custom Store method returns an invalid value: {0}",E4013:"Local Store requires the 'name' configuration option is specified",E4014:"Unknown data type is specified for ODataStore: {0}",E4015:"Unknown entity name or alias is used: {0}",E4016:"The compileSetter(expr) method is called with 'self' passed as a parameter",E4017:"Keys cannot be modified",E4018:"The server has returned a non-numeric value in a response to an item count request",E4019:"Mixing of group operators inside a single group of filter expression is not allowed",E4020:"Unknown store type is detected: {0}",E4021:"The server response does not provide the totalCount value",E4022:"The server response does not provide the groupCount value",E4023:"Could not parse the following XML: {0}",W4000:"Data returned from the server has an incorrect structure",W4001:'The {0} field is listed in both "keyType" and "fieldTypes". The value of "fieldTypes" is used.',W4002:"Data loading has failed for some cells due to the following error: {0}"}),s=null,l=function(e){a.errorHandler&&a.errorHandler(e)};a={errors:r,errorHandler:s,_errorHandler:l},e.exports=a},function(e,t,n){var i=n(3).map,o=function(e){return void 0===e||null===e?"":String(e)},a=function(e){return o(e).charAt(0).toUpperCase()+e.substr(1)},r=function(e){return o(e).replace(/([a-z\d])([A-Z])/g,"$1 $2").split(/[\s_-]+/)},s=function(e){return i(r(e),function(e){return e.toLowerCase()}).join("-")},l=function(e){return s(e).replace(/-/g,"_")},c=function(e,t){return i(r(e),function(e,n){return e=e.toLowerCase(),(t||n>0)&&(e=a(e)),e}).join("")},d=function(e){return a(s(e).replace(/-/g," "))},u=function(e){return i(r(e),function(e){return a(e.toLowerCase())}).join(" ")},h=["0","1","2","3","4","5","6","7","8","9"],p=function(e){var t,n,i=[],o=!1,a=!1;for(t=0;t<e.length;t++)n=e.charAt(t),a=n===n.toUpperCase()&&"-"!==n&&")"!==n||n in h,"_"===n||"."===n?(n=" ",a=!0):0===t?(n=n.toUpperCase(),a=!0):!o&&a&&i.length>0&&i.push(" "),i.push(n),o=a;return i.join("")};t.dasherize=s,t.camelize=c,t.humanize=d,t.titleize=u,t.underscore=l,t.captionize=p},function(e,t,n){var i=n(2),o=n(5),a=n(106),r=n(13),s=n(14),l=n(8),c=n(0).extend,d=n(156),u=n(89),h=n(28),p=n(69),f=n(9),g=n(20),_=n(18),m=n(95),v="dx-button",x="dx-button-content",w="dx-button-has-text",b="dx-button-has-icon",y="dx-template-wrapper",C="dx-button-text",k="content",S=100,I=h.inherit({_supportedKeys:function(){var e=this,t=function(t){t.preventDefault(),e._executeClickAction(t)};return c(this.callBase(),{space:t,enter:t})},_setDeprecatedOptions:function(){this.callBase()},_getDefaultOptions:function(){return c(this.callBase(),{hoverStateEnabled:!0,onClick:null,type:"normal",text:"",icon:"",validationGroup:void 0,activeStateEnabled:!0,template:"content",useSubmitBehavior:!1,useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===s.real().deviceType&&!s.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){var e=g.current();return g.isMaterial(e)||g.isAndroid5(e)},options:{useInkRipple:!0}}])},_getAnonymousTemplateName:function(){return k},_feedbackHideTimeout:S,_initTemplates:function(){this.callBase(),this._defaultTemplates.content=new m(function(e){var t=e.model,n=a.getImageContainer(t&&t.icon),o=t&&t.text?i("<span>").text(t.text).addClass(C):void 0;i(e.container).append(n).append(o)},this)},_initMarkup:function(){this.$element().addClass(v),this._renderType(),this.option("useInkRipple")&&this._renderInkRipple(),this._renderClick(),this.setAria("role","button"),this._updateAriaLabel(),this.callBase(),this._updateContent()},_renderInkRipple:function(){var e=!this.option("text")&&this.option("icon")||"back"===this.option("type"),t={};e&&c(t,{waveSizeCoefficient:1,useHoldAnimation:!1,isCentered:!0}),this._inkRipple=p.render(t)},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:this._$content,event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_updateContent:function(){var e=this.$element(),t=this._getContentData();this._$content?this._$content.empty():this._$content=i("<div>").addClass(x).appendTo(e),e.toggleClass(b,!!t.icon).toggleClass(w,!!t.text);var n=this._getAnonymousTemplateName()===this.option("template"),o=this._getTemplateByOption("template"),a=i(o.render({model:t,container:r.getPublicElement(this._$content),transclude:n}));a.hasClass(y)&&(this._$content.replaceWith(a),this._$content=a,this._$content.addClass(x)),this.option("useSubmitBehavior")&&this._renderSubmitInput()},_renderSubmitInput:function(){var e=this._createAction(function(e){var t=e.event,n=u.getGroupConfig(e.component._findGroup());n&&!n.validate().isValid&&t.preventDefault(),t.stopPropagation()});this._$submitInput=i("<input>").attr("type","submit").attr("tabindex",-1).addClass("dx-button-submit-input").appendTo(this._$content),o.on(this._$submitInput,"click",function(t){e({event:t})})},_getContentData:function(){var e=this.option("icon"),t=this.option("text"),n="back"===this.option("type");return n&&!e&&(e="back"),{icon:e,text:t}},_renderClick:function(){var e=this,t=f.addNamespace(_.name,this.NAME),n={};this.option("useSubmitBehavior")&&(n.afterExecute=function(e){setTimeout(function(){e.component._$submitInput.get(0).click()})}),this._clickAction=this._createActionByOption("onClick",n),o.off(this.$element(),t),o.on(this.$element(),t,function(t){e._executeClickAction(t)})},_executeClickAction:function(e){this._clickAction({event:e,validationGroup:u.getGroupConfig(this._findGroup())})},_updateAriaLabel:function(){var e=this.option("icon"),t=this.option("text");"image"===a.getImageSourceType(e)&&(e=e.indexOf("base64")===-1?e.replace(/.+\/([^.]+)\..+$/,"$1"):"Base64");var n=t||e||"";n=n.toString().trim(),this.setAria("label",n)},_renderType:function(){var e=this.option("type");e&&this.$element().addClass("dx-button-"+e)},_refreshType:function(e){var t=this.option("type");
|
|
12
12
|
e&&this.$element().removeClass("dx-button-"+e).addClass("dx-button-"+t),this.$element().hasClass(b)||"back"!==t||this._updateContent()},_optionChanged:function(e){switch(e.name){case"onClick":this._renderClick();break;case"icon":case"text":this._updateContent(),this._updateAriaLabel();break;case"type":this._refreshType(e.previousValue),this._updateContent(),this._updateAriaLabel();break;case"template":this._updateContent();break;case"useInkRipple":this._invalidate();break;case"useSubmitBehavior":this._invalidate();break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase(),delete this._$content}}).include(d);l("dxButton",I),e.exports=I},function(e,t,n){var i=n(1),o=n(4),a=function(){var e=[new RegExp("&","g"),new RegExp('"',"g"),new RegExp("'","g"),new RegExp("<","g"),new RegExp(">","g")];return function(t){return String(t).replace(e[0],"&").replace(e[1],""").replace(e[2],"'").replace(e[3],"<").replace(e[4],">")}}(),r=function(e){var t=o.splitPair(e),n=parseInt(t&&t[0],10),i=parseInt(t&&t[1],10);return isFinite(n)||(n=0),isFinite(i)||(i=n),{h:n,v:i}},s=function(e){var t=o.splitQuad(e),n=parseInt(t&&t[0],10),i=parseInt(t&&t[1],10),a=parseInt(t&&t[2],10),r=parseInt(t&&t[3],10);return isFinite(n)||(n=0),isFinite(i)||(i=n),isFinite(a)||(a=n),isFinite(r)||(r=i),{top:i,right:a,bottom:r,left:n}},l=function(){var e,t,n,o=arguments[0],a=[].slice.call(arguments).slice(1);if(i.isFunction(o))return o.apply(this,a);for(var r=0;r<a.length;r++)t=new RegExp("\\{"+r+"\\}","gm"),n=a[r],"string"===i.type(n)&&n.indexOf("$")>=0&&(e="$".replace("$","$$").length,n=n.replace("$",1===e?"$$$$":"$$")),o=o.replace(t,n);return o},c=function(){var e=function(e){return(e+"").replace(/([+*?.[^\]$(){}><|=!:])/g,"\\$1")};return function(t,n,i){return t.replace(new RegExp("("+e(n)+")","gi"),i)}}(),d=function(){var e=/\s/g;return function(t){return!t||!t.replace(e,"")}}();t.encodeHtml=a,t.pairToObject=r,t.quadToObject=s,t.format=l,t.replaceAll=c,t.isEmpty=d},function(e,t,n){var i=n(11).inArray,o=n(12),a=n(68),r=n(6),s=r.getNavigator(),l=n(14),c=n(83),d={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MsTransitionEnd",transition:"transitionend"},u=function(e){return!!c.styleProp(e)},h=function(){var e=l.real(),t=e.platform,n=e.version,o=n&&n[0]<4&&"android"===t,a=!o&&i(t,["ios","android","win"])>-1||e.mac;return a},p=function(e){if("text"===e)return!0;var t=o.createElement("input");try{return t.setAttribute("type",e),t.value="wrongValue",!t.value}catch(e){return!1}},f=function(e,t){return(e.hasProperty("ontouchstart")||!!t)&&!e.hasProperty("callPhantom")},g=function(e,t){return e.hasProperty("PointerEvent")||!!t.pointerEnabled},_=f(r,s.maxTouchPoints),m=g(r,s),v=!!s.maxTouchPoints||!!s.msMaxTouchPoints;t.touchEvents=_,t.pointerEvents=m,t.touch=_||m&&v,t.transition=a(function(){return u("transition")}),t.transitionEndEventName=a(function(){return d[c.styleProp("transition")]}),t.animation=a(function(){return u("animation")}),t.nativeScrolling=h(),t.styleProp=c.styleProp,t.stylePropPrefix=c.stylePropPrefix,t.supportProp=u,t.inputType=p},function(e,t,n){function i(e){return/^(or|\|\||\|)$/i.test(e)}function o(e){return/^(and|&&|&)$/i.test(e)}var a=n(1).isFunction,r=n(12),s=n(51).add,l=n(6),c=l.getWindow(),d=n(3).map,u=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]),d(e,function(e){var t={selector:a(e)||"string"==typeof e?e:e.getter||e.field||e.selector,desc:!(!e.desc&&"d"!==String(e.dir).charAt(0).toLowerCase())};return e.compare&&(t.compare=e.compare),t})},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(){r.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}}},x=function(){var e,t=0,n=function(){0===t&&(e=new h),t++},i=function(){t--,t<1&&e.resolve()},o=function(){var n=0===t?(new h).resolve():e;return n.promise()},a=function(){t=0,e&&e.resolve()};return{obtain:n,release:i,promise:o,reset:a}}(),w=function(e,t,n){if(Array.isArray(e)){for(var i,o=d(t,function(e,t){return t}),a=0;a<o.length;a++)if(i=o[a],u(t[i],!0)!=u(n[i],!0))return!1;return!0}return u(t,!0)==u(n,!0)},b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",y=function(e){function t(e){return b.charAt(e)}Array.isArray(e)||(e=C(String(e)));for(var n="",i=0;i<e.length;i+=3){var o=e[i],a=e[i+1],r=e[i+2];n+=d([o>>2,(3&o)<<4|a>>4,isNaN(a)?64:(15&a)<<2|r>>6,isNaN(r)?64:63&r],t).join("")}return n},C=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},k=function(e){return"!"===e[0]&&Array.isArray(e[1])},S=function(e){return"and"===e||"or"===e},I=function(e){var t=e[0],n=e[1];return!!Array.isArray(t)||!(!p.isFunction(t)||!(Array.isArray(n)||p.isFunction(n)||S(n)))},T={XHR_ERROR_UNLOAD:f,normalizeBinaryCriterion:g,normalizeSortingInfo:_,errorMessageFromXhr:m,aggregators:v,keysEqual:w,isDisjunctiveOperator:i,isConjunctiveOperator:o,processRequestResultLock:x,isUnaryOperation:k,isGroupCriterion:I,base64_encode:y};e.exports=T},function(e,t,n){var i=n(144),o=n(349),a={array:i,remote:o},r=function(){var e=Array.isArray(arguments[0])?"array":"remote";return a[e].apply(this,arguments)};e.exports=r,e.exports.queryImpl=a},function(e,t,n){var i=n(26),o=n(59).compare,a=n(102),r=n(74)();if(r&&o(i.fn.jquery,[1,10])<0)throw a.Error("E0012");n(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),o=n(5),a=n(348),r=n(21),s=n(0).extend,l=n(3).each,c=n(4).noop,d=n(1).isDefined,u=n(188),h=n(22).compileGetter,p=n(52).DataSource,f=n(263),g=n(7),_=g.when,m=g.Deferred,v="dxItemDeleting",x=-1,w=function(e){return e!==x},b=a.inherit({_setOptionsByReference:function(){this.callBase(),s(this._optionsByReference,{selectedItem:!0})},_getDefaultOptions:function(){return s(this.callBase(),{selectionMode:"none",selectionRequired:!1,selectionByClick:!0,selectedItems:[],selectedItemKeys:[],maxFilterLengthInRequest:1500,keyExpr:null,selectedIndex:x,selectedItem:null,onSelectionChanged:null,onItemReordered:null,onItemDeleting:null,onItemDeleted:null})},ctor:function(e,t){this._userOptions=t||{},this.callBase(e,t)},_init:function(){this._initEditStrategy(),this.callBase(),this._initKeyGetter(),this._initSelectionModule(),"multi"===this.option("selectionMode")&&this._showDeprecatedSelectionMode()},_initKeyGetter:function(){this._keyGetter=h(this.option("keyExpr"))},_getKeysByItems:function(e){return this._editStrategy.getKeysByItems(e)},_getItemsByKeys:function(e,t){return this._editStrategy.getItemsByKeys(e,t)},_getKeyByIndex:function(e){return this._editStrategy.getKeyByIndex(e)},_getIndexByKey:function(e){return this._editStrategy.getIndexByKey(e)},_getIndexByItemData:function(e){return this._editStrategy.getIndexByItemData(e)},_isKeySpecified:function(){return!(!this._dataSource||!this._dataSource.key())},_getCombinedFilter:function(){return this._dataSource&&this._dataSource.filter()},keyOf:function(e){var t=e,n=this._dataSource&&this._dataSource.store();return this.option("keyExpr")?t=this._keyGetter(e):n&&(t=n.keyOf(e)),t},_initSelectionModule:function(){var e=this,t=e._editStrategy.itemsGetter;this._selection=new f({mode:this.option("selectionMode"),maxFilterLengthInRequest:this.option("maxFilterLengthInRequest"),equalByReference:!this._isKeySpecified(),onSelectionChanged:function(t){(t.addedItemKeys.length||t.removedItemKeys.length)&&(e.option("selectedItems",e._getItemsByKeys(t.selectedItemKeys,t.selectedItems)),e._updateSelectedItems(t))},filter:e._getCombinedFilter.bind(e),totalCount:function(){var t=e.option("items"),n=e._dataSource;return n&&n.totalCount()>=0?n.totalCount():t.length},key:function(){return e.option("keyExpr")?e.option("keyExpr"):e._dataSource&&e._dataSource.key()},keyOf:e.keyOf.bind(e),load:function(t){if(e._dataSource){var n=e._dataSource.loadOptions();t.customQueryParams=n.customQueryParams,t.userData=e._dataSource._userData}var i=e._dataSource&&e._dataSource.store();return i?i.load(t).done(function(t){e._dataSource._applyMapFunction(t)}):(new m).resolve([])},dataFields:function(){return e._dataSource&&e._dataSource.select()},plainItems:t.bind(e._editStrategy)})},_initEditStrategy:function(){var e=u;this._editStrategy=new e(this)},_getSelectedItemIndices:function(e){var t=this,n=[];return e=e||this._selection.getSelectedItemKeys(),t._editStrategy.beginCache(),l(e,function(e,i){var o=t._getIndexByKey(i);w(o)&&n.push(o)}),t._editStrategy.endCache(),n},_initMarkup:function(){this._rendering=!0,this._dataSource&&this._dataSource.isLoading()||(this._syncSelectionOptions(),this._normalizeSelectedItems()),this.callBase();var e=this._getSelectedItemIndices();this._renderSelection(e,[])},_render:function(){this.callBase(),this._rendering=!1},_fireContentReadyAction:function(){this._rendering=!1,this._rendered=!0,this.callBase.apply(this,arguments)},_syncSelectionOptions:function(e){e=e||this._chooseSelectOption();var t,n,i;switch(e){case"selectedIndex":t=this._editStrategy.getItemDataByIndex(this.option("selectedIndex")),d(t)?(this._setOptionSilent("selectedItems",[t]),this._setOptionSilent("selectedItem",t),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionSilent("selectedItems",[]),this._setOptionSilent("selectedItemKeys",[]),this._setOptionSilent("selectedItem",null));break;case"selectedItems":if(n=this.option("selectedItems")||[],i=this._editStrategy.getIndexByItemData(n[0]),this.option("selectionRequired")&&!w(i))return void this._syncSelectionOptions("selectedIndex");this._setOptionSilent("selectedItem",n[0]),this._setOptionSilent("selectedIndex",i),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems(n));break;case"selectedItem":if(t=this.option("selectedItem"),i=this._editStrategy.getIndexByItemData(t),this.option("selectionRequired")&&!w(i))return void this._syncSelectionOptions("selectedIndex");d(t)?(this._setOptionSilent("selectedItems",[t]),this._setOptionSilent("selectedIndex",i),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems([t]))):(this._setOptionSilent("selectedItems",[]),this._setOptionSilent("selectedItemKeys",[]),this._setOptionSilent("selectedIndex",x));break;case"selectedItemKeys":var o=this.option("selectedItemKeys");if(this.option("selectionRequired")&&!w(this._getIndexByKey(o[0])))return void this._syncSelectionOptions("selectedIndex");this._selection.setSelection(o)}},_chooseSelectOption:function(){var e="selectedIndex",t=function(e){var t=this.option(e),n=d(t)&&t.length;return n||e in this._userOptions}.bind(this);return t("selectedItems")?e="selectedItems":t("selectedItem")?e="selectedItem":t("selectedItemKeys")&&(e="selectedItemKeys"),e},_compareKeys:function(e,t){if(e.length!==t.length)return!1;for(var n=0;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")),o=this._selection.getSelectedItemKeys();this._compareKeys(o,i)||this._selection.setSelection(i)}},_renderSelection:c,_itemClickHandler:function(e){this._createAction(function(e){this._itemSelectHandler(e.event)}.bind(this),{validatingTargetName:"itemElement"})({itemElement:i(e.currentTarget),event:e}),this.callBase.apply(this,arguments)},_itemSelectHandler:function(e){if(this.option("selectionByClick")){var t=e.currentTarget;this.isItemSelected(t)?this.unselectItem(e.currentTarget):this.selectItem(e.currentTarget)}},_selectedItemElement:function(e){return this._itemElements().eq(e)},_postprocessRenderItem:function(e){if("none"!==this.option("selectionMode")){var t=i(e.itemElement);this._isItemSelected(this._editStrategy.getNormalizedIndex(t))?(t.addClass(this._selectedItemClass()),this._setAriaSelected(t,"true")):this._setAriaSelected(t,"false")}},_updateSelectedItems:function(e){var t=this,n=e.addedItemKeys,i=e.removedItemKeys;if(t._rendered&&(n.length||i.length)){var o=t._selectionChangePromise;if(!t._rendering){var a,r,s=[],l=[];for(t._editStrategy.beginCache(),r=0;r<n.length;r++)a=t._getIndexByKey(n[r]),s.push(a),t._addSelection(a);for(r=0;r<i.length;r++)a=t._getIndexByKey(i[r]),l.push(a),t._removeSelection(a);t._editStrategy.endCache(),t._updateSelection(s,l)}_(o).done(function(){t._fireSelectionChangeEvent(e.addedItems,e.removedItems)})}},_fireSelectionChangeEvent:function(e,t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:e,removedItems:t})},_updateSelection:function(){this._renderSelection.apply(this,arguments)},_setAriaSelected:function(e,t){this.setAria("selected",t,e)},_removeSelection:function(e){var t=this._editStrategy.getItemElement(e);w(e)&&(t.removeClass(this._selectedItemClass()),this._setAriaSelected(t,"false"),o.triggerHandler(t,"stateChanged",!1))},_showDeprecatedSelectionMode:function(){r.log("W0001",this.NAME,"selectionMode: 'multi'","16.1","Use selectionMode: 'multiple' instead"),this.option("selectionMode","multiple")},_addSelection:function(e){var t=this._editStrategy.getItemElement(e);w(e)&&(t.addClass(this._selectedItemClass()),this._setAriaSelected(t,"true"),o.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(o){var a=!i,r=!a&&"resolved"===i.state(),s=!!arguments.length,l=a||r&&!s||r&&o;_(g.fromPromise(n.cancel)).always(function(){e.data(v,!1)}).done(function(e){l&&!e?t.resolve():t.reject()}).fail(t.reject)}.bind(this)),t.promise()},_deleteItemFromDS:function(e){if(!this._dataSource)return(new m).resolve().promise();var t=new m,n=this.option("disabled"),i=this._dataSource.store();if(this.option("disabled",!0),!i.remove)throw r.Error("E1011");return i.remove(i.keyOf(this._getItemData(e))).done(function(e){void 0!==e?t.resolve():t.reject()}).fail(function(){t.reject()}),t.always(function(){this.option("disabled",n)}.bind(this)),t},_tryRefreshLastPage:function(){var e=new m;return this._isLastPage()||this.option("grouped")?e.resolve():this._refreshLastPage().done(function(){e.resolve()}),e.promise()},_refreshLastPage:function(){return this._expectLastItemLoading(),this._dataSource.load()},_updateSelectionAfterDelete:function(e){var t=this._getKeyByIndex(e);this._selection.deselect([t])},_updateIndicesAfterIndex:function(e){for(var t=this._itemElements(),n=e+1;n<t.length;n++)i(t[n]).data(this._itemIndexKey(),n-1)},_simulateOptionChange:function(e){var t=this.option(e);t instanceof p||this._optionChangedAction({name:e,fullName:e,value:t})},isItemSelected:function(e){return this._isItemSelected(this._editStrategy.getNormalizedIndex(e))},selectItem:function(e){if("none"!==this.option("selectionMode")){var t=this._editStrategy.getNormalizedIndex(e);if(w(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(w(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),o=this._editStrategy.getNormalizedIndex(e),a=this._dataSource?"dataSource":"items",r=this._itemResponseWaitClass();return w(o)?this._waitDeletingPrepare(i).done(function(){i.addClass(r);var e=t._extendActionArgs(i);t._deleteItemFromDS(i).done(function(){t._updateSelectionAfterDelete(o),t._updateIndicesAfterIndex(o),t._editStrategy.deleteItemAtIndex(o),t._simulateOptionChange(a),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(r),n.rejectWith(t)})}).fail(function(){n.rejectWith(t)}):n.rejectWith(t),n.promise()},reorderItem:function(e,t){var n=new m,i=this,o=this._editStrategy,a=o.getItemElement(e),r=o.getItemElement(t),s=o.getNormalizedIndex(e),l=o.getNormalizedIndex(t),c=this._dataSource?"dataSource":"items",d=w(s)&&w(l)&&s!==l;return d?n.resolveWith(this):n.rejectWith(this),n.promise().done(function(){r[o.itemPlacementFunc(s,l)](a),o.moveItemAtIndexToIndex(s,l),this._updateIndicesAfterIndex(s),i.option("selectedItems",i._getItemsByKeys(i._selection.getSelectedItemKeys(),i._selection.getSelectedItems())),"items"===c&&i._simulateOptionChange(c),i._itemEventHandler(a,"onItemReordered",{fromIndex:o.getIndex(s),toIndex:o.getIndex(l)},{excludeValidators:["disabled","readOnly"]})})}});e.exports=b},function(e,t,n){var i=n(2),o=n(4),a=n(1),r=n(196),s=n(39),l=n(3),c=n(0).extend,d=n(0).extendFromObject,u=n(22).toComparable,h=n(192),p=n(41),f=n(88),g=n(54),_=n(6).getWindow(),m="dx-selection-disabled",v="dx-datagrid-group-opened",x="dx-datagrid-group-closed",w="dx-datagrid-expand",b="nodata",y={year:function(e){return e&&e.getFullYear()},month:function(e){return e&&e.getMonth()+1},day:function(e){return e&&e.getDate()},quarter:function(e){return e&&Math.floor(e.getMonth()/3)+1},hour:function(e){return e&&e.getHours()},minute:function(e){return e&&e.getMinutes()},second:function(e){return e&&e.getSeconds()}};e.exports=function(){var t=function(){var e,t,n=arguments[1],i=this.calculateCellValue(n);return a.isDefined(i)?C(this.dataType)?(t=arguments[0],y[t](i)):"number"===this.dataType?(e=arguments[0],Math.floor(Number(i)/e)*e):void 0:null},n=function(e,t){return a.isFunction(e)&&a.isFunction(t)&&e.originalCallback&&t.originalCallback?e.originalCallback===t.originalCallback:e===t},C=function(e){return"date"===e||"datetime"===e},k=function(e){e.get(0).textContent="\xa0"};return{renderNoDataText:function(e){var t=this;if(e=e||this.element()){var n=t.addWidgetPrefix(b),o=e.find("."+n).last(),a=this._dataController.isEmpty(),r=this._dataController.isLoading();o.length||(o=i("<span>").addClass(n).appendTo(e)),a&&!r?o.removeClass("dx-hidden").text(t._getNoDataText()):o.addClass("dx-hidden")}},renderLoadPanel:function(e,t,n){var o,a=this;a._loadPanel&&a._loadPanel.$element().remove(),o=a.option("loadPanel"),o&&("auto"===o.enabled?!n:o.enabled)?(o=c({shading:!1,message:o.text,position:function(){return e.height()>i(_).height()?{of:i(_),boundary:e,collision:"fit"}:{of:e}},container:t},o),a._loadPanel=a._createComponent(i("<div>").appendTo(t),h,o)):a._loadPanel=null},getIndexByKey:function(e,t,n){var i,r=-1;if(void 0!==e&&Array.isArray(t)){n=arguments.length<=2?"key":n;for(var s=0;s<t.length;s++)if(i=a.isDefined(n)?t[s][n]:t[s],o.equalByValue(e,i)){r=s;break}}return r},combineFilters:function(e,t){var n,i=[];for(t=t||"and",n=0;n<e.length;n++)e[n]&&(i.length&&i.push(t),i.push(e[n]));if(1===i.length&&(i=i[0]),i.length)return i},checkChanges:function(e,t){var n,i=0;for(n=0;n<t.length;n++)e[t[n]]&&i++;return e.length&&e.length===i},equalFilterParameters:function(t,n){var i;if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;for(i=0;i<t.length;i++)if(!e.exports.equalFilterParameters(t[i],n[i]))return!1;return!0}return a.isFunction(t)&&t.columnIndex>=0&&a.isFunction(n)&&n.columnIndex>=0?t.columnIndex===n.columnIndex&&u(t.filterValue)===u(n.filterValue):u(t)==u(n)},proxyMethod:function(e,t,n){e[t]||(e[t]=function(){var e=this._dataSource;return e?e[t].apply(e,arguments):n})},formatValue:function(e,t){var n=f.format(e,t.format,t.precision)||e&&e.toString()||"",i={value:e,valueText:t.getDisplayFormat?t.getDisplayFormat(n):n,target:t.target||"row",groupInterval:t.groupInterval};return t.customizeText?t.customizeText.call(t,i):i.valueText},getFormatOptionsByColumn:function(e,t){return{format:e.format,precision:e.precision,getDisplayFormat:e.getDisplayFormat,customizeText:e.customizeText,target:t,trueText:e.trueText,falseText:e.falseText}},getDisplayValue:function(e,t,n,i){return e.displayValueMap&&void 0!==e.displayValueMap[t]?e.displayValueMap[t]:e.calculateDisplayValue&&n&&"group"!==i?e.calculateDisplayValue(n):!e.lookup||"group"===i&&(e.calculateGroupValue||e.calculateDisplayValue)?t:e.lookup.calculateCellValue(t)},getGroupRowSummaryText:function(t,n){var i,o,a="(";for(i=0;i<t.length;i++)o=t[i],a+=(i>0?", ":"")+e.exports.getSummaryText(o,n);return a+=")"},getSummaryText:function(e,t){var n=e.displayFormat||e.columnCaption&&t[e.summaryType+"OtherColumn"]||t[e.summaryType];return this.formatValue(e.value,{format:e.valueFormat,precision:e.precision,getDisplayFormat:function(t){return n?s.format(n,t,e.columnCaption):t},customizeText:e.customizeText})},normalizeSortingInfo:function(e){e=e||[];var t,n;for(t=p.normalizeSortingInfo(e),n=0;n<e.length;n++)e&&e[n]&&void 0!==e[n].isExpanded&&(t[n].isExpanded=e[n].isExpanded),e&&e[n]&&void 0!==e[n].groupInterval&&(t[n].groupInterval=e[n].groupInterval);return t},getFormatByDataType:function(e){switch(e){case"date":return"shortDate";case"datetime":return"shortDateShortTime"}},getHeaderFilterGroupParameters:function(e,n){var i=[],o=e.dataField||e.name,a=r.getGroupInterval(e);return a?(l.each(a,function(r,s){i.push(n?{selector:o,groupInterval:s,isExpanded:r<a.length-1}:t.bind(e,s))}),i):(n?i=[{selector:o,isExpanded:!1}]:(i=function t(n){var t=e.calculateCellValue(n);return void 0!==t&&""!==t||(t=null),t},e.sortingMethod&&(i=[{selector:i,compare:e.sortingMethod.bind(e)}])),i)},equalSortParameters:function(t,i,o){var a;if(t=e.exports.normalizeSortingInfo(t),i=e.exports.normalizeSortingInfo(i),Array.isArray(t)&&Array.isArray(i)){if(t.length!==i.length)return!1;for(a=0;a<t.length;a++)if(!n(t[a].selector,i[a].selector)||t[a].desc!==i[a].desc||t[a].groupInterval!==i[a].groupInterval||!o&&Boolean(t[a].isExpanded)!==Boolean(i[a].isExpanded))return!1;return!0}return(!t||!t.length)==(!i||!i.length)},getPointsByColumns:function(e,t,n,i){var o,a,r,s,l,c,d=e.length,u=!1,h=i||0,p=[];for(a=0;a<=d;a++)a<d&&(r=e.eq(a),s=r.offset(),c="rtl"===r.css("direction")),o={index:h,x:s?s.left+(!n&&c^a===d?r.outerWidth():0):0,y:s?s.top+(n&&a===d?r.outerHeight():0):0,columnIndex:h},!n&&a>0&&(l=e.eq(a-1).offset(),l.top<o.y&&(o.y=l.top)),t&&(u=t(o)),u||p.push(o),h++;return p},createObjectWithChanges:function(e,t){var n=e?Object.create(Object.getPrototypeOf(e)):{},i=d({},e);return g.deepExtendArraySafe(n,i,!0,!0),g.deepExtendArraySafe(n,t,!0,!0)},getExpandCellTemplate:function(){return{allowRenderToDetachedContainer:!0,render:function(e,t){var n,o=i(e);!a.isDefined(t.value)||t.data&&t.data.isContinuation||t.row.inserted?k(o):(n=t.component.getView("rowsView"),o.addClass(w).addClass(m),i("<div>").addClass(t.value?v:x).appendTo(o),n.setAria("label",t.value?n.localize("dxDataGrid-ariaCollapse"):n.localize("dxDataGrid-ariaExpand"),o))}}},setEmptyText:k,isDateType:C,getSelectionRange:function(e){try{if(e)return{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}catch(e){}return{}},setSelectionRange:function(e,t){try{e&&e.setSelectionRange&&e.setSelectionRange(t.selectionStart,t.selectionEnd)}catch(e){}},getLastResizableColumnIndex:function(e,t){for(var n=e.some(function(e){return e&&!e.command&&!e.fixed&&e.allowResizing!==!1}),i=e.length-1;e[i];i--){var o=e[i],a=t&&t[i],r=!n||o.allowResizing!==!1;if(!o.command&&!o.fixed&&"adaptiveHidden"!==a&&r)break}return i}}}()},function(e,t,n){var i=n(2),o=n(5),a=n(10),r=n(19),s=n(4).grep,l=n(1).isFunction,c=n(11).inArray,d=n(3).each,u=n(21),h=n(15),p=n(6).hasWindow(),f="dxDataGrid",g=a.inherit({_endUpdateCore:function(){},ctor:function(e){var t=this;t._updateLockCount=0,t.component=e,t._actions={},t._actionConfigs={},d(this.callbackNames()||[],function(e,n){var i=t.callbackFlags(n)||{};i.unique=!0,i.syncStrategy=!0,t[this]=r(i)})},init:function(){},callbackNames:function(){},callbackFlags:function(){},publicMethods:function(){},beginUpdate:function(){this._updateLockCount++},endUpdate:function(){this._updateLockCount>0&&(this._updateLockCount--,this._updateLockCount||this._endUpdateCore())},option:function(e){var t=this.component,n=t._optionCache;return 1===arguments.length&&n?(e in n||(n[e]=t.option(e)),n[e]):t.option.apply(t,arguments)},localize:function(e){var t=this.component._optionCache;return t?(e in t||(t[e]=h.format(e)),t[e]):h.format(e)},on:function(){return this.component.on.apply(this.component,arguments)},off:function(){return this.component.off.apply(this.component,arguments)},optionChanged:function(e){e.name in this._actions&&(this.createAction(e.name,this._actionConfigs[e.name]),e.handled=!0)},getAction:function(e){return this._actions[e]},setAria:function(e,t,n){var i=n.get(0),o="role"!==e&&"id"!==e?"aria-":"";i.setAttribute?i.setAttribute(o+e,t):n.attr(o+e,t)},_createComponent:function(){return this.component._createComponent.apply(this.component,arguments)},getController:function(e){return this.component._controllers[e]},createAction:function(e,t){var n;return l(e)?(n=this.component._createAction(e.bind(this),t),function(e){n({event:e})}):(this._actions[e]=this.component._createActionByOption(e,t),void(this._actionConfigs[e]=t))},executeAction:function(e,t){var n=this._actions[e];return n&&n(t)},dispose:function(){var e=this;d(e.callbackNames()||[],function(){e[this].empty()})},addWidgetPrefix:function(e){var t=this.component.NAME;return"dx-"+t.slice(2).toLowerCase()+(e?"-"+e:"")},getWidgetContainerClass:function(){var e=this.component.NAME===f?null:"container";return this.addWidgetPrefix(e)}}),_=g,m=_.inherit({getView:function(e){return this.component._views[e]},getViews:function(){return this.component._views}}),v=g.inherit({_isReady:function(){return this.component.isReady()},_endUpdateCore:function(){this.callBase(),!this._isReady()&&this._requireReady&&(this._requireRender=!1,this.component._requireResize=!1),this._requireRender&&(this._requireRender=!1,this.render(this._$parent))},_invalidate:function(e,t){this._requireRender=!0,this.component._requireResize=p&&(this.component._requireResize||e),this._requireReady=this._requireReady||t},_renderCore:function(){},_resizeCore:function(){},_afterRender:function(){},_parentElement:function(){return this._$parent},ctor:function(e){this.callBase(e),this.renderCompleted=r(),this.resizeCompleted=r()},element:function(){return this._$element},getElementHeight:function(){var e=this.element();if(!e)return 0;var t=parseFloat(e.css("marginTop"))||0,n=parseFloat(e.css("marginBottom"))||0,i=e.get(0).offsetHeight;return i+t+n},isVisible:function(){return!0},getTemplate:function(e){return this.component._getTemplate(e)},render:function(e,t){var n=this._$element,o=this.isVisible();(n||e)&&(this._requireReady=!1,n||(n=this._$element=i("<div>").appendTo(e),this._$parent=e),n.toggleClass("dx-hidden",!o),o&&(this.component._optionCache={},this._renderCore(t),this.component._optionCache=void 0,this._afterRender(e),this.renderCompleted.fire(t)))},resize:function(){this.isResizing=!0,this._resizeCore(),this.resizeCompleted.fire(),this.isResizing=!1},focus:function(){o.trigger(this.element(),"focus")}}),x=1e6,w=function(e,t){var n=t.modules,i=t.modulesOrder,o=t.controllerTypes||{},a=t.viewTypes||{};t.controllerTypes||(i&&n.sort(function(e,t){var n=c(e.name,i),o=c(t.name,i);return n<0&&(n=x),o<0&&(o=x),n-o}),d(n,function(){var e=this.controllers,t=this.name,n=this.views;e&&d(e,function(e,n){if(o[e])throw u.Error("E1001",t,e);if(!(n&&n.subclassOf&&n.subclassOf(_)))throw n.subclassOf(_),u.Error("E1002",t,e);o[e]=n}),n&&d(n,function(e,n){if(a[e])throw u.Error("E1003",t,e);if(!(n&&n.subclassOf&&n.subclassOf(v)))throw u.Error("E1004",t,e);a[e]=n})}),d(n,function(){var e=this.extenders;e&&(e.controllers&&d(e.controllers,function(e,t){o[e]&&(o[e]=o[e].inherit(t))}),e.views&&d(e.views,function(e,t){a[e]&&(a[e]=a[e].inherit(t))}))}),t.controllerTypes=o,t.viewTypes=a);var r=function(e,t,n){var i=n.publicMethods();i&&d(i,function(i,o){if(!n[o])throw u.Error("E1006",t,o);if(e[o])throw u.Error("E1005",o);e[o]=function(){return n[o].apply(n,arguments)}})},s=function(t){var n={};return d(t,function(t,i){var o=new i(e);o.name=t,r(e,t,o),n[t]=o}),n};e._controllers=s(o),e._views=s(a)},b=function(e,t,n){n=n||[],e._controllers&&d(e._controllers,function(){this[t]&&this[t].apply(this,n)}),e._views&&d(e._views,function(){this[t]&&this[t].apply(this,n)})};e.exports={modules:[],View:v,ViewController:m,Controller:_,registerModule:function(e,t){var n,i=this.modules;for(n=0;n<i.length;n++)if(i[n].name===e)return;t.name=e,i.push(t),delete this.controllerTypes,delete this.viewTypes},registerModulesOrder:function(e){this.modulesOrder=e},unregisterModule:function(e){this.modules=s(this.modules,function(t){return t.name!==e}),delete this.controllerTypes,delete this.viewTypes},processModules:w,callModuleItemsMethod:b}},function(e,t,n){function i(e){var t=A(e);return S[t]||S[I[t]||r()]}function o(e,t){return I[e+"."+t]||T[e+"."+t]||I[e]}function a(e,t,n){return o(e+t,n)||o(e,n)}function r(e,t){if(!arguments.length)return B||o(k.current())||w;var n=A(t);return B=(e&&e.platform?a(A(e.platform),e.version,n):o(A(e),n))||B,this}function s(e,t){var n=e.indexOf(t);return n>0?{name:e.substring(0,n),scheme:e.substring(n+1)}:null}function l(e,t){var n=s(e,".")||s(e,"-")||{name:e},i=n.name,o=n.scheme;o?(I[i]=I[i]||t,I[i+"."+o]=I[i+"-"+o]=t):I[i]=t}function c(e,t){var n=A(e&&e.name);n&&(e.isDefault&&(w=n),l(n,n),S[n]=D(!0,{},i(t),f(e)))}function d(e,t){
|
|
13
13
|
l(A(e),A(t))}function u(e,t){T[e]=t}function h(e,t,n,i){var o=n?n[t]:i;void 0!==o&&void 0===e[t]&&(e[t]=o)}function p(e,t,n,i){var o=n?n[t]:i;void 0!==o&&(e[t]=D(!0,{},o,e[t]))}function f(e){return e=D(!0,{loadingIndicator:{font:{}},"export":{font:{}},legend:{font:{},border:{}},title:{font:{}},tooltip:{font:{}},"chart:common":{},"chart:common:axis":{grid:{},minorGrid:{},tick:{},minorTick:{},title:{font:{}},label:{font:{}}},chart:{commonSeriesSettings:{candlestick:{}}},pie:{},polar:{},gauge:{scale:{tick:{},minorTick:{},label:{font:{}}}},barGauge:{},funnel:{},map:{background:{}},treeMap:{tile:{selectionStyle:{border:{}}},group:{border:{},selectionStyle:{border:{}},label:{font:{}}}},rangeSelector:{scale:{tick:{},minorTick:{},label:{font:{}}},chart:{}},sparkline:{},bullet:{}},e),h(e.loadingIndicator,"backgroundColor",e),h(e.chart.commonSeriesSettings.candlestick,"innerColor",null,e.backgroundColor),h(e.map.background,"color",null,e.backgroundColor),h(e.title.font,"color",null,e.primaryTitleColor),p(e.title,"subtitle",null,e.title),h(e.legend.font,"color",null,e.secondaryTitleColor),h(e.legend.border,"color",null,e.axisColor),g(e),E(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector","sparkline","bullet"],function(t,n){h(e[n],"redrawOnResize",e),h(e[n],"containerBackgroundColor",null,e.backgroundColor),p(e[n],"tooltip",e),p(e[n],"export",e)}),E(["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)}),E(["chart","pie","polar"],function(t,n){p(e,n,null,e["chart:common"])}),E(["chart","polar"],function(t,n){e[n]=e[n]||{},p(e[n],"commonAxisSettings",null,e["chart:common:axis"])}),p(e.rangeSelector.chart,"commonSeriesSettings",e.chart),p(e.rangeSelector.chart,"dataPrepareSettings",e.chart),h(e.treeMap.group.border,"color",null,e.axisColor),h(e.treeMap.tile.selectionStyle.border,"color",null,e.primaryTitleColor),h(e.treeMap.group.selectionStyle.border,"color",null,e.primaryTitleColor),h(e.map.legend,"backgroundColor",e),_(e),e}function g(e){var t=e["chart:common:axis"],n="color";E([t,t.grid,t.minorGrid,t.tick,t.minorTick],function(t,i){h(i,n,null,e.axisColor)}),h(t.title.font,n,null,e.secondaryTitleColor),h(t.label.font,n,null,e.axisLabelColor),h(e.gauge.scale.label.font,n,null,e.axisLabelColor),h(e.gauge.scale.tick,n,null,e.backgroundColor),h(e.gauge.scale.minorTick,n,null,e.backgroundColor),h(e.rangeSelector.scale.label.font,n,null,e.axisLabelColor)}function _(e){var t=e.map;E(["area","line","marker"],function(e,n){p(t,"layer:"+n,null,t.layer)}),E(["dot","bubble","pie","image"],function(e,n){p(t,"layer:marker:"+n,null,t["layer:marker"])})}function m(e){var t=++O;e._cache=t,R[t]=e}function v(e){delete R[e._cache]}function x(){return E(R,function(){this.refresh()}),this}var w,b=n(0).extend,y=n(3).each,C=n(16),k=n(20),S={},I={},T={},D=b,E=y,A=C.normalizeEnum,B=null,O=0,R={};D(t,{currentTheme:r,registerTheme:c,getTheme:i,registerThemeAlias:d,registerThemeSchemeAlias:u,refreshTheme:x,addCacheItem:m,removeCacheItem:v})},function(e,t,n){var i=n(2),o=n(35),a=n(19),r=n(4),s=n(6),l=n(103).getDefaultAlignment,c=n(0).extend,d=n(28),u=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",x=100,w=d.inherit({_init:function(){this.callBase(),this.validationRequest=a();var e=this.$element();e&&o.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:r.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"),o=this.$element();o.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(o),this._validationMessage=this._createComponent(this._$validationMessage,h,{integrationOptions:{},templatesRenderAsynchronously:!1,target:this._getValidationMessageTarget(),shading:!1,width:"auto",height:"auto",container:o,position:this._getValidationMessagePosition("below"),closeOnOutsideClick:!1,closeOnTargetScroll:!1,animation:null,visible:!0,propagateOutsideClick:!0,_checkParentVisibility:!1}),this._$validationMessage.toggleClass(_,"auto"===n).toggleClass(m,"always"===n),this._setValidationMessageMaxWidth()))},_setValidationMessageMaxWidth:function(){if(this._validationMessage){if(0===this._getValidationMessageTarget().outerWidth())return void this._validationMessage.option("maxWidth","100%");var e=Math.max(x,this._getValidationMessageTarget().outerWidth());this._validationMessage.option("maxWidth",e)}},_getValidationMessageTarget:function(){return this.$element()},_getValidationMessagePosition:function(e){var t=this.option("rtlEnabled"),n=l(t),i=this.option("validationMessageOffset"),o={h:i.h,v:i.v},a="below"===e?[" top"," bottom"]:[" bottom"," top"];return t&&(o.h=-o.h),"below"!==e&&(o.v=-o.v),{offset:o,boundary:this.option("validationBoundary"),my:n+a[0],at:n+a[1],collision:"none flip"}},_toggleReadOnlyState:function(){this.$element().toggleClass(p,!!this.option("readOnly")),this.setAria("readonly",this.option("readOnly")||void 0)},_dispose:function(){var e=this.$element()[0];o.data(e,v,null),this.callBase()},_setSubmitElementName:function(e){var t=this._getSubmitElement();t&&(e.length>0?t.attr("name",e):t.removeAttr("name"))},_getSubmitElement:function(){return null},_optionChanged:function(e){switch(e.name){case"onValueChanged":this._createValueChangeAction();break;case"isValid":case"validationError":case"validationBoundary":case"validationMessageMode":this._renderValidationState();break;case"readOnly":this._toggleReadOnlyState(),this._refreshFocusState();break;case"value":this._valueChangeActionSuppressed||(this._raiseValueChangeAction(e.value,e.previousValue),this._saveValueChangeEvent(void 0)),e.value!=e.previousValue&&this.validationRequest.fire({value:e.value,editor:this});break;case"width":this.callBase(e),this._setValidationMessageMaxWidth();break;case"name":this._setSubmitElementName(e.value);break;default:this.callBase(e)}},reset:function(){var e=this._getDefaultOptions();this.option("value",e.value)}}).include(u);e.exports=w},function(e,t,n){var i=n(55),o=n(11).inArray,a=n(4).escapeRegExp,r=n(3).each,s=n(1).isPlainObject,l=n(256),c=n(30),d=n(17),u=4,h=10,p=["currency","fixedpoint","exponential","percent","decimal"],f={1:"K",2:"M",3:"B",4:"T"},g={largenumber:"auto",thousands:1,millions:2,billions:3,trillions:4},_=i({numericFormats:p,defaultLargeNumberFormatPostfixes:f,_parseNumberFormatString:function(e){var t,n={};if(e&&"string"==typeof e)return t=e.toLowerCase().split(" "),r(t,function(e,t){o(t,p)>-1?n.formatType=t:t in g&&(n.power=g[t])}),n.power&&!n.formatType&&(n.formatType="fixedpoint"),n.formatType?n:void 0},_calculateNumberPower:function(e,t,n,i){var o=Math.abs(e),a=0;if(o>1)for(;o&&o>=t&&(void 0===i||a<i);)a++,o/=t;else if(o>0&&o<1)for(;o<1&&(void 0===n||a>n);)a--,o*=t;return a},_getNumberByPower:function(e,t,n){for(var i=e;t>0;)i/=n,t--;for(;t<0;)i*=n,t++;return i},_formatNumber:function(e,t,n){var i,o;return"auto"===t.power&&(t.power=this._calculateNumberPower(e,1e3,0,u)),t.power&&(e=this._getNumberByPower(e,t.power,1e3)),i=this.defaultLargeNumberFormatPostfixes[t.power]||"",o=this._formatNumberCore(e,t.formatType,n),o=o.replace(/(\d|.$)(\D*)$/,"$1"+i+"$2")},_formatNumberExponential:function(e,t){var n,i=this._calculateNumberPower(e,h),o=this._getNumberByPower(e,i,h);return void 0===t.precision&&(t.precision=1),o.toFixed(t.precision||0)>=h&&(i++,o/=h),n=(i>=0?"+":"")+i.toString(),this._formatNumberCore(o,"fixedpoint",t)+"E"+n},_addZeroes:function(e,t){var n=Math.pow(10,t),i=e<0?"-":"";e=(Math.abs(e)*n>>>0)/n;for(var o=e.toString();o.length<t;)o="0"+o;return i+o},_addGroupSeparators:function(e){var t=e.toString().split(".");return t[0].replace(/\B(?=(\d{3})+(?!\d))/g,c().thousandsSeparator)+(t[1]?c().decimalSeparator+t[1]:"")},_formatNumberCore:function(e,t,n){return"exponential"===t?this._formatNumberExponential(e,n):("decimal"!==t&&null!==n.precision&&(n.precision=n.precision||0),"percent"===t&&(e=100*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",o=t?"0":n[1],a=t?n[0]:"9",r=new RegExp("["+i+"-"+a+"]","g");return e.replace(r,function(e){return String.fromCharCode(e.charCodeAt(0)+(o.charCodeAt(0)-i.charCodeAt(0)))})},getSign:function(e,t){if("-"===e.replace(/[^0-9-]/g,"").charAt(0))return-1;if(!t)return 1;var n=this._getSeparators(),i=new RegExp("[0-9"+a(n.decimalSeparator+n.thousandsSeparator)+"]+","g"),o=this.format(-1,t).replace(i,"1"),r=e.replace(i,"1");return r===o?-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&&d.log("W0011");var n=this.getDecimalSeparator(),i=new RegExp("[^0-9"+a(n)+"]","g"),o=e.replace(i,"").replace(n,".").replace(/\.$/g,""),r=+o;return o=o.replace(/^\./g,""),o.length>15?NaN:""===o?null:r*this.getSign(e,t)}}});e.exports=_},function(e,t,n){var i=n(10),o=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=o},function(e,t,n){var i=n(12),o=n(55),a=n(6),r=n(68),s=[],l=function(){return"complete"===i.getReadyState()||"loading"!==i.getReadyState()&&!i.getDocumentElement().doScroll},c=r(function(){var e=i.listen(i.getDocument(),"DOMContentLoaded",function(){d.fire(),e()})}),d={add:function(e){var t=a.hasWindow();t&&l()?e():(s.push(e),t&&c())},fire:function(){s.forEach(function(e){return e()}),s=[]}};e.exports=o(d)},function(e,t,n){function i(){this._counter=-1,this._deferreds={}}function o(e){return"pending"===e.state()}function a(e,t){function n(){var t={};return h.each(["useDefaultSearch","key","load","loadMode","cacheRawData","byKey","lookup","totalCount","insert","update","remove"],function(){t[this]=e[this],delete e[this]}),new v(t)}function i(e){var t=e.type;return delete e.type,_.create(t,e)}function o(e){return new v({load:function(){return p.sendRequest({url:e,dataType:"json"})},loadMode:t&&t.fromUrlLoadMode})}var a;return"string"==typeof e&&(e={paginate:!1,store:o(e)}),void 0===e&&(e=[]),e=Array.isArray(e)||e instanceof _?{store:e}:d({},e),void 0===e.store&&(e.store=[]),a=e.store,"load"in e?a=n():Array.isArray(a)?a=new m(a):f.isPlainObject(a)&&(a=i(d({},a))),e.store=a,e}function r(e){switch(e.length){case 0:return;case 1:return e[0]}return[].slice.call(e)}function s(e){return function(){var t=r(arguments);return void 0===t?this._storeLoadOptions[e]:void(this._storeLoadOptions[e]=t)}}function l(e,t,n){function i(e,n){return Array.isArray(e)?n?o(e,n):h.map(e,t):e}function o(e,t){return h.map(e,function(e){var n={key:e.key,items:i(e.items,t-1)};return"aggregates"in e&&(n.aggregates=e.aggregates),n})}return i(e,n?g.normalizeSortingInfo(n).length:0)}var c=n(10),d=n(0).extend,u=n(4),h=n(3),p=n(72),f=n(1),g=n(41),_=n(91),m=n(79),v=n(158),x=n(53),w=n(36).errors,b=n(11),y=n(173),C=n(7),k=C.when,S=C.Deferred,I=f.isString,T=f.isNumeric,D=f.isBoolean,E=f.isDefined,A="canceled";i.prototype.constructor=i,i.prototype.add=function(e){return this._counter+=1,this._deferreds[this._counter]=e,this._counter},i.prototype.remove=function(e){return delete this._deferreds[e]},i.prototype.cancel=function(e){return e in this._deferreds&&(this._deferreds[e].reject(A),!0)},i.prototype.cancelAll=function(){for(;this._counter>-1;)this.cancel(this._counter),this._counter--};var B=c.inherit({ctor:function(e){var t=this;e=a(e),this._store=e.store,this._storeLoadOptions=this._extractLoadOptions(e),this._mapFunc=e.map,this._postProcessFunc=e.postProcess,this._pageIndex=void 0!==e.pageIndex?e.pageIndex:0,this._pageSize=void 0!==e.pageSize?e.pageSize:20,this._loadingCount=0,this._loadQueue=this._createLoadQueue(),this._searchValue="searchValue"in e?e.searchValue:null,this._searchOperation=e.searchOperation||"contains",this._searchExpr=e.searchExpr,this._paginate=e.paginate,h.each(["onChanged","onLoadError","onLoadingChanged","onCustomizeLoadResult","onCustomizeStoreLoadOptions"],function(n,i){i in e&&t.on(i.substr(2,1).toLowerCase()+i.substr(3),e[i])}),this._operationManager=new i,this._init()},_init:function(){this._items=[],this._userData={},this._totalCount=-1,this._isLoaded=!1,E(this._paginate)||(this._paginate=!this.group()),this._isLastPage=!this._paginate},dispose:function(){this._disposeEvents(),delete this._store,this._delayedLoadTask&&this._delayedLoadTask.abort(),this._operationManager.cancelAll(),this._disposed=!0},_extractLoadOptions:function(e){var t={},n=["sort","filter","select","group","requireTotalCount"],i=this._store._customLoadOptions();return i&&(n=n.concat(i)),h.each(n,function(){t[this]=e[this]}),t},loadOptions:function(){return this._storeLoadOptions},items:function(){return this._items},pageIndex:function(e){return T(e)?(this._pageIndex=e,void(this._isLastPage=!this._paginate)):this._pageIndex},paginate:function(e){return D(e)?void(this._paginate!==e&&(this._paginate=e,this.pageIndex(0))):this._paginate},pageSize:function(e){return T(e)?void(this._pageSize=e):this._pageSize},isLastPage:function(){return this._isLastPage},sort:s("sort"),filter:function(){var e=r(arguments);return void 0===e?this._storeLoadOptions.filter:(this._storeLoadOptions.filter=e,void this.pageIndex(0))},group:s("group"),select:s("select"),requireTotalCount:function(e){return D(e)?void(this._storeLoadOptions.requireTotalCount=e):this._storeLoadOptions.requireTotalCount},searchValue:function(e){return arguments.length<1?this._searchValue:(this._searchValue=e,void this.pageIndex(0))},searchOperation:function(e){return I(e)?(this._searchOperation=e,void this.pageIndex(0)):this._searchOperation},searchExpr:function(e){var t=arguments.length;return 0===t?this._searchExpr:(t>1&&(e=[].slice.call(arguments)),this._searchExpr=e,void this.pageIndex(0))},store:function(){return this._store},key:function(){return this._store&&this._store.key()},totalCount:function(){return this._totalCount},isLoaded:function(){return this._isLoaded},isLoading:function(){return this._loadingCount>0},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_createLoadQueue:function(){return y.create()},_changeLoadingCount:function(e){var t,n=this.isLoading();this._loadingCount+=e,t=this.isLoading(),n^t&&this.fireEvent("loadingChanged",[t])},_scheduleLoadCallbacks:function(e){var t=this;t.beginLoading(),e.always(function(){t.endLoading()})},_scheduleFailCallbacks:function(e){var t=this;e.fail(function(){arguments[0]!==A&&t.fireEvent("loadError",arguments)})},_scheduleChangedCallbacks:function(e){var t=this;e.done(function(){t.fireEvent("changed")})},loadSingle:function(e,t){function n(){return r instanceof v&&!r._byKeyViaLoad()}var i=this,o=new S,a=this.key(),r=this._store,s=this._createStoreLoadOptions(),l=function(e){!E(e)||b.isEmpty(e)?o.reject(new w.Error("E4009")):(Array.isArray(e)||(e=[e]),o.resolve(i._applyMapFunction(e)[0]))};return this._scheduleFailCallbacks(o),arguments.length<2&&(t=e,e=a),delete s.skip,delete s.group,delete s.refresh,delete s.pageIndex,delete s.searchString,function(){return e===a||n()?r.byKey(t,s):(s.take=1,s.filter=s.filter?[s.filter,[e,t]]:[e,t],r.load(s))}().fail(o.reject).done(l),o.promise()},load:function(){function e(){if(!n._disposed&&o(i))return n._loadFromStore(t,i)}var t,n=this,i=new S;return this._scheduleLoadCallbacks(i),this._scheduleFailCallbacks(i),this._scheduleChangedCallbacks(i),t=this._createLoadOperation(i),this.fireEvent("customizeStoreLoadOptions",[t]),this._loadQueue.add(function(){return"number"==typeof t.delay?n._delayedLoadTask=u.executeAsync(e,t.delay):e(),i.promise()}),i.promise({operationId:t.operationId})},_createLoadOperation:function(e){var t=this._operationManager.add(e),n=this._createStoreLoadOptions();return e.always(function(){this._operationManager.remove(t)}.bind(this)),{operationId:t,storeLoadOptions:n}},reload:function(){var e=this.store();return e instanceof v&&e.clearRawDataCache(),this._init(),this.load()},cancel:function(e){return this._operationManager.cancel(e)},_addSearchOptions:function(e){this._disposed||(this.store()._useDefaultSearch?this._addSearchFilter(e):(e.searchOperation=this._searchOperation,e.searchValue=this._searchValue,e.searchExpr=this._searchExpr))},_createStoreLoadOptions:function(){var e=d({},this._storeLoadOptions);return this._addSearchOptions(e),this._paginate&&this._pageSize&&(e.skip=this._pageIndex*this._pageSize,e.take=this._pageSize),e.userData=this._userData,e},_addSearchFilter:function(e){var t=this._searchValue,n=this._searchOperation,i=this._searchExpr,o=[];t&&(i||(i="this"),Array.isArray(i)||(i=[i]),h.each(i,function(e,i){o.length&&o.push("or"),o.push([i,n,t])}),e.filter?e.filter=[o,e.filter]:e.filter=o)},_loadFromStore:function(e,t){function n(n,a){function r(){var o;n&&!Array.isArray(n)&&n.data&&(a=n,n=n.data),Array.isArray(n)||(n=[n]),o=d({data:n,extra:a},e),i.fireEvent("customizeLoadResult",[o]),k(o.data).done(function(e){o.data=e,i._processStoreLoadResult(o,t)}).fail(t.reject)}i._disposed||o(t)&&r()}var i=this;return e.data?(new S).resolve(e.data).done(n):this.store().load(e.storeLoadOptions).done(n).fail(t.reject)},_processStoreLoadResult:function(e,t){function n(){return o._isLoaded=!0,o._totalCount=isFinite(r.totalCount)?r.totalCount:-1,t.resolve(a,r)}function i(){o.store().totalCount(s).done(function(e){r.totalCount=e,n()}).fail(t.reject)}var o=this,a=e.data,r=e.extra,s=e.storeLoadOptions;o._disposed||(a=o._applyPostProcessFunction(o._applyMapFunction(a)),f.isPlainObject(r)||(r={}),o._items=a,(!a.length||!o._paginate||o._pageSize&&a.length<o._pageSize)&&(o._isLastPage=!0),s.requireTotalCount&&!isFinite(r.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(x);t.DataSource=B,t.normalizeDataSourceOptions=a},function(e,t,n){var i=n(318),o=n(3).each,a=n(1).isPlainObject;e.exports={ctor:function(){this._events={},this.setEventsStrategy(new i(this))},setEventsStrategy:function(e){"function"==typeof e&&(e=e(this)),this._eventsStrategy=e},hasEvent:function(e){return this._eventsStrategy.hasEvent(e)},fireEvent:function(e,t){return this._eventsStrategy.fireEvent(e,t),this},on:function(e,t){return a(e)?o(e,function(e,t){this.on(e,t)}.bind(this)):this._eventsStrategy.on(e,t),this},off:function(e,t){return this._eventsStrategy.off(e,t),this},_disposeEvents:function(){this._eventsStrategy.dispose()}}},function(e,t,n){var i=n(1),o=n(71),a=function(){function e(){}return function(t){return e.prototype=t,new e}}(),r=function(e,t){var n,o,a=[];for(n in e)e.hasOwnProperty(n)&&a.push(n);for(a.sort(function(e,t){var n=i.isNumeric(e),o=i.isNumeric(t);return n&&o?e-t:n&&!o?-1:!n&&o?1:e<t?-1:e>t?1:0}),o=0;o<a.length;o++)n=a[o],t(n,e[n])},s=function(e,t,n,i){!i&&o.isWrapped(e[t])?o.assign(e[t],n):e[t]=n},l=function e(t,n,o,a){var r,l;for(var c in n)if(r=t[c],l=n[c],"__proto__"!==c&&t!==l){if(i.isPlainObject(l)){var d=o?i.isObject(r):i.isPlainObject(r);l=e(d?r:{},l,o,a)}void 0!==l&&r!==l&&s(t,c,l,a)}return t};t.clone=a,t.orderEach=r,t.deepExtendArraySafe=l},function(e,t,n){e.exports=function(e){var t=n(0).extend,i=n(1).isFunction,o=n(3).each,a=n(10),r=a.inherit(e),s=r,l=new s(e),c={},d=function(t,n){o(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 d(e,!0),e.inject=function(e){s=s.inherit(e),l=new s,d(e)},e.resetInjection=function(){t(e,c),s=r,l=new r},e}},function(e,t){e.exports=window.ko},function(e,t,n){var i=n(2),o=n(12),a=function(e,t){if(!r(e))return!1;var n=e.nodeName.toLowerCase(),i=!isNaN(t),o=e.disabled,a=/^(input|select|textarea|button|object|iframe)$/.test(n),s="a"===n,l=!0,c=e.isContentEditable;return l=a||c?!o:s?e.href||i:i},r=function(e){var t=i(e);return t.is(":visible")&&"hidden"!==t.css("visibility")&&"hidden"!==t.parents().css("visibility")};e.exports={focusable:function(e,t){return a(t,i(t).attr("tabIndex"))},tabbable:function(e,t){var n=i(t).attr("tabIndex");return(isNaN(n)||n>=0)&&a(t,n)},focused:function(e){var t=i(e).get(0);return o.getActiveElement()===t}}},function(e,t,n){var i=n(2),o=n(5),a=n(6),r=n(0).extend,s=n(30),l=n(17),c=n(13).getPublicElement,d=n(121),u=n(4),h=n(3).each,p=n(1),f=n(11).inArray,g=n(100),_=n(35),m=n(115),v=m.abstract,x="dx-rtl",w="dx-visibility-change-handler",b="VisibilityChange",y=m.inherit({_getDefaultOptions:function(){return r(this.callBase(),{width:void 0,height:void 0,rtlEnabled:s().rtlEnabled,elementAttr:{},disabled:!1,integrationOptions:{}})},ctor:function(e,t){this._$element=i(e),g.attachInstanceToElement(this._$element,this,this._dispose),this.callBase(t)},_visibilityChanged:v,_dimensionChanged:v,_init:function(){this.callBase(),this._attachWindowResizeCallback()},_setOptionsByDevice:function(e){this.callBase([].concat(this.constructor._classCustomRules||[],e||[]))},_isInitialOptionValue:function(e){var t=this.constructor._classCustomRules&&this._convertRulesToOptions(this.constructor._classCustomRules).hasOwnProperty(e);return!t&&this.callBase(e)},_attachWindowResizeCallback:function(){if(this._isDimensionChangeSupported()){var e=this._windowResizeCallBack=this._dimensionChanged.bind(this);d.add(e)}},_isDimensionChangeSupported:function(){return this._dimensionChanged!==v},_renderComponent:function(){this._initMarkup(),a.hasWindow()&&this._render()},_initMarkup:function(){this._renderElementAttributes(),this._toggleRTLDirection(this.option("rtlEnabled")),this._renderVisibilityChange(),this._renderDimensions()},_render:function(){this._attachVisibilityChangeHandlers()},_renderElementAttributes:function(){var e=r({},this.option("elementAttr")),t=e.class;delete e.class,this.$element().attr(e).addClass(t)},_renderVisibilityChange:function(){this._isDimensionChangeSupported()&&this._attachDimensionChangeHandlers(),this._isVisibilityChangeSupported()&&this.$element().addClass(w)},_renderDimensions:function(){var e=this.$element(),t=e.get(0),n=this._getOptionValue("width",t),i=this._getOptionValue("height",t);this._isCssUpdateRequired(t,i,n)&&e.css({width:n,height:i})},_isCssUpdateRequired:function(e,t,n){return!!(n||t||e.style.width||e.style.height)},_attachDimensionChangeHandlers:function(){var e=this,t="dxresize."+this.NAME+b;o.off(e.$element(),t),o.on(e.$element(),t,function(){e._dimensionChanged()})},_attachVisibilityChangeHandlers:function(){if(this._isVisibilityChangeSupported()){var e=this,t="dxhiding."+this.NAME+b,n="dxshown."+this.NAME+b;e._isHidden=!e._isVisible(),o.off(e.$element(),t),o.on(e.$element(),t,function(){e._checkVisibilityChanged("hiding")}),o.off(e.$element(),n),o.on(e.$element(),n,function(){e._checkVisibilityChanged("shown")})}},_isVisible:function(){return this.$element().is(":visible")},_checkVisibilityChanged:function(e){"hiding"===e&&this._isVisible()&&!this._isHidden?(this._visibilityChanged(!1),this._isHidden=!0):"shown"===e&&this._isVisible()&&this._isHidden&&(this._isHidden=!1,this._visibilityChanged(!0))},_isVisibilityChangeSupported:function(){return this._visibilityChanged!==v&&a.hasWindow()},_clean:u.noop,_modelByElement:function(){var e=this.option("modelByElement")||u.noop;return e(this.$element())},_invalidate:function(){if(!this._updateLockCount)throw l.Error("E0007");this._requireRefresh=!0},_refresh:function(){this._clean(),this._renderComponent()},_dispose:function(){this.callBase(),this._clean(),this._detachWindowResizeCallback()},_detachWindowResizeCallback:function(){this._isDimensionChangeSupported()&&d.remove(this._windowResizeCallBack)},_toggleRTLDirection:function(e){this.$element().toggleClass(x,e)},_createComponent:function(e,t,n){var o=this;n=n||{};var a=u.grep(["rtlEnabled","disabled"],function(e){return!(e in n)}),s=o.option("nestedComponentOptions")||u.noop;o._extendConfig(n,r({integrationOptions:this.option("integrationOptions"),rtlEnabled:this.option("rtlEnabled"),disabled:this.option("disabled")},s(this)));var l;if(p.isString(t)){var c=i(e)[t](n);l=c[t]("instance")}else e&&(l=t.getInstance(e),l?l.option(n):l=new t(e,n));if(l){var d=function(e){f(e.name,a)>=0&&l.option(e.name,e.value)};o.on("optionChanged",d),l.on("disposing",function(){o.off("optionChanged",d)})}return l},_extendConfig:function(e,t){h(t,function(t,n){e[t]=e.hasOwnProperty(t)?e[t]:n})},_defaultActionConfig:function(){return r(this.callBase(),{context:this._modelByElement(this.$element())})},_defaultActionArgs:function(){var e=this._modelByElement(this.$element());return r(this.callBase(),{element:this.element(),model:e})},_optionChanged:function(e){switch(e.name){case"width":case"height":this._renderDimensions();break;case"rtlEnabled":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)}});y.getInstance=function(e){return g.getInstanceByElement(i(e),this)},y.defaultOptions=function(e){this._classCustomRules=this._classCustomRules||[],this._classCustomRules.push(e)},e.exports=y},function(e,t,n){t.compare=function(e,t,n){function i(e){return"string"==typeof e?e.split("."):"number"==typeof e?[e]:e}e=i(e),t=i(t);var o=Math.max(e.length,t.length);isFinite(n)&&(o=Math.min(o,n));for(var a=0;a<o;a++){var r=parseInt(e[a]||0,10),s=parseInt(t[a]||0,10);if(r<s)return-1;if(r>s)return 1}return 0}},function(e,t,n){var i=n(2),o=n(6).getWindow(),a=n(24),r=n(37).camelize,s=n(4).noop,l=n(13).getPublicElement,c=n(3).each,d=n(1).isDefined,u=n(11).inArray,h=n(0).extend,p=n(29),f=n(15),g=n(14),_=n(8),m=n(38),v=n(20),x=n(70),w=n(122),b=n(13),y=n(203),C=n(6);n(265);var k="dx-popup",S="dx-popup-wrapper",I="dx-popup-fullscreen",T="dx-popup-fullscreen-width",D="dx-popup-normal",E="dx-popup-content",A="dx-popup-draggable",B="dx-popup-title",O="dx-closebutton",R="dx-popup-bottom",M="dx-template-wrapper",P=["cancel","clear","done"],V="default",F="normal",L="dx-button-flat",H=p.msie&&11===parseInt(p.version),z=function(e){var t=g.current(),n=t.platform,i="bottom",o="before";if("ios"===n)switch(e){case"cancel":i="top";break;case"clear":i="top",o="after";break;case"done":o="after"}else if("win"===n)o="after";else if("android"===n&&t.version&&parseInt(t.version[0])>4)switch(e){case"cancel":o="after";break;case"done":o="after"}else"android"===n&&(o="center");return{toolbar:i,location:o}},N=x.inherit({_getDefaultOptions:function(){return h(this.callBase(),{fullScreen:!1,title:"",showTitle:!0,titleTemplate:"title",onTitleRendered:null,dragEnabled:!1,toolbarItems:[],showCloseButton:!1,bottomTemplate:"bottom",useDefaultToolbarButtons:!1,useFlatToolbarButtons:!1,autoResizeEnabled:!0})},_defaultOptionsRules:function(){var e=v.current();return this.callBase().concat([{device:function(t){return t.phone&&v.isWin8(e)},options:{position:{my:"top center",at:"top center",offset:"0 0"}}},{device:{platform:"ios"},options:{animation:this._iosAnimation}},{device:{platform:"android"},options:{animation:this._androidAnimation}},{device:{platform:"generic"},options:{showCloseButton:!0}},{device:function(e){return"generic"===g.real().platform&&"generic"===e.platform},options:{dragEnabled:!0}},{device:function(){return"desktop"===g.real().deviceType&&!g.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return v.isMaterial(e)},options:{useDefaultToolbarButtons:!0,useFlatToolbarButtons:!0}}])},_iosAnimation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom"}},to:{position:{my:"center",at:"center"}}},hide:{type:"slide",duration:400,from:{opacity:1,position:{my:"center",at:"center"}},to:{opacity:1,position:{my:"top",at:"bottom"}}}},_androidAnimation:function(){var e={show:{type:"slide",duration:300,from:{top:"30%",opacity:0},to:{top:0,opacity:1}},hide:{type:"slide",duration:300,from:{top:0,opacity:1},to:{top:"30%",opacity:0}}},t={show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}};return this.option("fullScreen")?e:t},_init:function(){this.callBase(),this.$element().addClass(k),this._wrapper().addClass(S),this._$popupContent=this._$content.wrapInner(i("<div>").addClass(E)).children().eq(0)},_render:function(){var e=this.option("fullScreen");this._toggleFullScreenClass(e),this.callBase()},_toggleFullScreenClass:function(e){this._$content.toggleClass(I,e).toggleClass(D,!e)},_initTemplates:function(){this.callBase(),this._defaultTemplates.title=new w(this),
|
|
14
14
|
this._defaultTemplates.bottom=new w(this)},_renderContentImpl:function(){this.callBase(),this._renderTitle(),this._renderBottom()},_renderTitle:function(){var e=this._getToolbarItems("top"),t=this.option("title"),n=this.option("showTitle");if(n&&t&&e.unshift({location:g.current().ios?"center":"before",text:t}),n||e.length>0){this._$title&&this._$title.remove();var o=i("<div>").addClass(B).insertBefore(this.$content());this._$title=this._renderTemplateByType("titleTemplate",e,o).addClass(B),this._renderDrag(),this._executeTitleRenderAction(this._$title)}else this._$title&&this._$title.detach()},_renderTemplateByType:function(e,t,n,o){var a=this._getTemplateByOption(e),r=a instanceof w;if(r){var s=h(o,{items:t,rtlEnabled:this.option("rtlEnabled"),useDefaultButtons:this.option("useDefaultToolbarButtons"),useFlatButtons:this.option("useFlatToolbarButtons")});this._getTemplate("dx-polymorph-widget").render({container:n,model:{widget:"dxToolbarBase",options:s}});var c=n.children("div");return n.replaceWith(c),c}var d=i(a.render({container:l(n)}));return d.hasClass(M)&&(n.replaceWith(d),n=d),n},_executeTitleRenderAction:function(e){this._getTitleRenderAction()({titleElement:l(e)})},_getTitleRenderAction:function(){return this._titleRenderAction||this._createTitleRenderAction()},_createTitleRenderAction:function(){return this._titleRenderAction=this._createActionByOption("onTitleRendered",{element:this.element(),excludeValidators:["designMode","disabled","readOnly"]})},_getCloseButton:function(){return{toolbar:"top",location:"after",template:this._getCloseButtonRenderer()}},_getCloseButtonRenderer:function(){return function(e,t,n){var o=i("<div>").addClass(O);this._createComponent(o,m,{icon:"close",onClick:this._createToolbarItemAction(void 0),integrationOptions:{}}),i(n).append(o)}.bind(this)},_getToolbarItems:function(e){var t=this.option("toolbarItems"),n=[];this._toolbarItemClasses=[];var i=g.current().platform,o=0;return c(t,function(t,a){var r=d(a.shortcut),s=r?z(a.shortcut):a;if(r&&"ios"===i&&o<2&&(s.toolbar="top",o++),s.toolbar=a.toolbar||s.toolbar||"top",s&&s.toolbar===e){r&&h(s,{location:a.location},this._getToolbarItemByAlias(a));var l="win"===i||"generic"===i;"done"===a.shortcut&&l||"cancel"===a.shortcut&&!l?n.unshift(s):n.push(s)}}.bind(this)),"top"===e&&this.option("showCloseButton")&&this.option("showTitle")&&n.push(this._getCloseButton()),n},_getToolbarItemByAlias:function(e){var t=this,n=e.shortcut;if(u(n,P)<0)return!1;var o=h({text:f.format(r(n,!0)),onClick:this._createToolbarItemAction(e.onClick),integrationOptions:{},type:t.option("useDefaultToolbarButtons")?V:F},e.options||{}),a=k+"-"+n;return t.option("useFlatToolbarButtons")&&(a+=" "+L),this._toolbarItemClasses.push(a),{template:function(e,n,r){var s=i("<div>").addClass(a).appendTo(r);t._createComponent(s,m,o)}}},_createToolbarItemAction:function(e){return this._createAction(e,{afterExecute:function(e){e.component.hide()}})},_renderBottom:function(){var e=this._getToolbarItems("bottom");if(e.length){this._$bottom&&this._$bottom.remove();var t=i("<div>").addClass(R).insertAfter(this.$content());this._$bottom=this._renderTemplateByType("bottomTemplate",e,t,{compactMode:!0}).addClass(R),this._toggleClasses()}else this._$bottom&&this._$bottom.detach()},_toggleClasses:function(){var e=P;c(e,function(e,t){var n=k+"-"+t;u(n,this._toolbarItemClasses)>=0?(this._wrapper().addClass(n+"-visible"),this._$bottom.addClass(n)):(this._wrapper().removeClass(n+"-visible"),this._$bottom.removeClass(n))}.bind(this))},_getDragTarget:function(){return this.topToolbar()},_renderGeometryImpl:function(){this._resetContentHeight(),this.callBase.apply(this,arguments),this._setContentHeight()},_resetContentHeight:function(){this._$popupContent.css({height:"auto"})},_renderDrag:function(){this.callBase(),this._$content.toggleClass(A,this.option("dragEnabled"))},_renderResize:function(){this.callBase(),this._resizable.option("onResize",function(){this._setContentHeight(),this._actions.onResize(arguments)}.bind(this))},_setContentHeight:function(){(this.option("forceApplyBindings")||s)();var e=this._splitPopupHeight(),t=e.header+e.footer+e.contentVerticalOffsets+e.popupVerticalOffsets,n=this.overlayContent().get(0),o={},a=this._getOptionValue("maxHeight",n),r=this._getOptionValue("minHeight",n),l=!H||!a&&!r;if(this.option("autoResizeEnabled")&&this._isAutoHeight()&&l){if(!H){var c=i(this._getContainer()).get(0),d=y.addOffsetToMaxHeight(a,-t,c),u=y.addOffsetToMinHeight(r,-t,c);o=h(o,{minHeight:u,maxHeight:d})}}else{var p=n.getBoundingClientRect().height-t;o={height:Math.max(0,p)}}this.$content().css(o)},_isAutoHeight:function(){return"auto"===this.overlayContent().get(0).style.height},_splitPopupHeight:function(){var e=this.topToolbar(),t=this.bottomToolbar();return{header:y.getVisibleHeight(e&&e.get(0)),footer:y.getVisibleHeight(t&&t.get(0)),contentVerticalOffsets:y.getVerticalOffsets(this.overlayContent().get(0),!0),popupVerticalOffsets:y.getVerticalOffsets(this.$content().get(0),!0)}},_renderDimensions:function(){this.option("fullScreen")?this._$content.css({width:"100%",height:"100%"}):this.callBase.apply(this,arguments),C.hasWindow()&&this._renderFullscreenWidthClass()},_renderFullscreenWidthClass:function(){this.overlayContent().toggleClass(T,this.overlayContent().outerWidth()===i(o).width())},_renderShadingDimensions:function(){this.option("fullScreen")?this._wrapper().css({width:"100%",height:"100%"}):this.callBase.apply(this,arguments)},refreshPosition:function(){this._renderPosition()},_renderPosition:function(){return this.option("fullScreen")?void a.move(this._$content,{top:0,left:0}):((this.option("forceApplyBindings")||s)(),this.callBase.apply(this,arguments))},_optionChanged:function(e){switch(e.name){case"showTitle":case"title":case"titleTemplate":this._renderTitle(),this._renderGeometry();break;case"bottomTemplate":this._renderBottom(),this._renderGeometry();break;case"onTitleRendered":this._createTitleRenderAction(e.value);break;case"toolbarItems":case"useDefaultToolbarButtons":case"useFlatToolbarButtons":var t=e.fullName.search(".options")!==-1;this._renderTitle(),this._renderBottom(),t||this._renderGeometry();break;case"dragEnabled":this._renderDrag();break;case"autoResizeEnabled":this._renderGeometry(),b.triggerResizeEvent(this._$content);break;case"fullScreen":this._toggleFullScreenClass(e.value),this._renderGeometry(),b.triggerResizeEvent(this._$content);break;case"showCloseButton":this._renderTitle();break;default:this.callBase(e)}},bottomToolbar:function(){return this._$bottom},topToolbar:function(){return this._$title},$content:function(){return this._$popupContent},content:function(){return l(this._$popupContent)},overlayContent:function(){return this._$content}});_("dxPopup",N),e.exports=N},function(e,t,n){var i=n(3).each,o=n(107),a=function(e,t){var n={};"noBubble"in t&&(n.noBubble=t.noBubble),"bindType"in t&&(n.bindType=t.bindType),"delegateType"in t&&(n.delegateType=t.delegateType),i(["setup","teardown","add","remove","trigger","handle","_default","dispose"],function(e,i){t[i]&&(n[i]=function(){var e=[].slice.call(arguments);return e.unshift(this),t[i].apply(t,e)})}),o.fire(e,n)};a.callbacks=o,e.exports=a},function(e,t,n){var i=n(102),o=n(17);e.exports=i(o.ERROR_MESSAGES,{E3001:"Routing rule is not found for the '{0}' URI.",E3002:"The passed object cannot be formatted into a URI string by the application's router. An appropriate route should be registered.",E3003:"Unable to navigate. Application is being initialized.",E3004:"Cannot execute the command: {0}.",E3005:"The '{0}' command {1} is not registered in the application's command mapping. Go to http://dxpr.es/1bTjfj1 for more details.",E3006:"Unknown navigation target: '{0}'. Use the 'current', 'back' or 'blank' values.",E3007:"Error while restoring the application state. The state has been cleared. Refresh the page.",E3008:"Unable to go back.",E3009:"Unable to go forward.",E3010:"The command's 'id' option should be specified.\r\nProcessed markup: {0}\n",E3011:"Layout controller cannot be resolved. There are no appropriate layout controllers for the current context. Check browser console for details.",E3012:"Layout controller cannot be resolved. Two or more layout controllers suit the current context. Check browser console for details.",E3013:"The '{0}' template with the '{1}' name is not found. Make sure the case is correct in the specified view name and the template fits the current context.",E3014:"All the children of the dxView element should be either of the dxCommand or dxContent type.\r\nProcessed markup: {0}",E3015:"The 'exec' method should be called before the 'finalize' method.",E3016:"Unknown transition type '{0}'.",E3018:"Unable to parse options.\nMessage: {0};\nOptions value: {1}.",E3019:"View templates should be updated according to the 13.1 changes. Go to http://dxpr.es/15ikrJA for more details.",E3020:"Concurrent templates are found:\r\n{0}Target device:\r\n{1}.",E3021:"Remote template cannot be loaded.\r\nUrl:{0}\r\nError:{1}.",E3022:"Cannot initialize the HtmlApplication component.",E3023:"Navigation item is not found",E3024:"Layout controller is not initialized",W3001:"A view with the '{0}' key doesn't exist.",W3002:"A view with the '{0}' key has already been released.",W3003:"Layout resolving context:\n{0}\nAvailable layout controller registrations:\n{1}\n",W3004:"Layout resolving context:\n{0}\nConcurent layout controller registrations for the context:\n{1}\n",W3005:'Direct hash-based navigation is detected in a mobile application. Use data-bind="dxAction: url" instead of href="#url" to avoid navigation issues.\nFound markup:\n{0}\n'})},function(e,t,n){var i=n(62),o=n(13),a=n(8),r=n(177).MarkupComponent;n(109);var s=r.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null,title:null})},ctor:function(){this._id=o.uniqueId(),this.callBase.apply(this,arguments)},_render:function(){this.callBase(),this.element().addClass("dx-view"),this.element().attr("dx-data-template-id",this._id)},getId:function(){return this._id}}),l=r.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null})},_render:function(){this.callBase(),this.element().addClass("dx-layout")}}),c=r.inherit({_setDefaultOptions:function(){this.callBase(),this.option({viewName:null})},_render:function(){this.callBase(),this.element().addClass("dx-view-placeholder")}}),d=function(e,t,n,i){"absolute"===i?e.addClass("dx-transition-absolute"):e.addClass("dx-transition-static"),e.addClass("dx-transition").addClass("dx-transition-"+n).addClass("dx-transition-"+t).attr("data-dx-transition-type",t).attr("data-dx-transition-name",n)},u=function(e){e.addClass("dx-transition-inner-wrapper")},h=r.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null,type:void 0,animation:"slide"})},_render:function(){this.callBase();var e=this.element();d(e,this.option("type")||this.option("animation"),this.option("name"),"absolute"),e.wrapInner("<div>"),u(e.children()),this.option("type")&&i.log("W0003","dxTransition","type","15.1","Use the 'animation' property instead")},_clean:function(){this.callBase(),this.element().empty()}}),p=r.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null,transition:void 0,animation:"none",contentCssPosition:"absolute"})},_render:function(){this.callBase();var e=this.element();e.addClass("dx-content-placeholder").addClass("dx-content-placeholder-"+this.option("name")),e.attr("data-dx-content-placeholder-name",this.option("name")),d(e,this.option("transition")||this.option("animation"),this.option("name"),this.option("contentCssPosition")),this.option("transition")&&i.log("W0003","dxContentPlaceholder","transition","15.1","Use the 'animation' property instead")}}),f=r.inherit({_setDefaultOptions:function(){this.callBase(),this.option({targetPlaceholder:null})},_optionChanged:function(){this._refresh()},_clean:function(){this.callBase(),this.element().removeClass(this._currentClass)},_render:function(){this.callBase();var e=this.element();e.addClass("dx-content"),this._currentClass="dx-content-"+this.option("targetPlaceholder"),e.attr("data-dx-target-placeholder-id",this.option("targetPlaceholder")),e.addClass(this._currentClass),u(e)}});a("dxView",s),a("dxLayout",l),a("dxViewPlaceholder",c),a("dxContentPlaceholder",p),a("dxTransition",h),a("dxContent",f),t.dxView=s,t.dxLayout=l,t.dxViewPlaceholder=c,t.dxContentPlaceholder=p,t.dxTransition=h,t.dxContent=f},function(e,t){e.exports=window.Globalize},function(e,t,n){var i=n(30),o=n(218).getFormatter,a=n(220),r=n(1),s=r.isString,l=r.isDate,c=r.isNumeric,d="number",u="yyyy/MM/dd",h="yyyy/MM/dd HH:mm:ss",p=/^(\d{4,})(-)?(\d{2})(-)?(\d{2})(?:T(\d{2})(:)?(\d{2})?(:)?(\d{2}(?:\.(\d{1,3})\d*)?)?)?(Z|([+-])(\d{2})(:)?(\d{2})?)?$/,f=/^(\d{2}):(\d{2})(:(\d{2}))?$/,g=["","yyyy","","MM","","dd","THH","","mm","","ss",".SSS"],_=3,m=function(e,t){var n,i;return s(e)&&!t&&(n=v(e)),n||(i=!l(e)&&Date.parse(e),n=c(i)?new Date(i):e),n},v=function(e){var t=e.match(p),n=function(e){return+e||0};if(t){var i=t[1],o=--t[3],a=t[5],r=0,s=0;r=n(t[14]),s=n(t[16]),"-"===t[13]&&(r=-r,s=-s);var l=n(t[6])-r,c=n(t[8])-s,d=n(t[10]),u=function(e){return e=e||"",n(e)*Math.pow(10,_-e.length)},h=u(t[11]);return t[12]?new Date(Date.UTC(i,o,a,l,c,d,h)):new Date(i,o,a,l,c,d,h)}if(t=e.match(f))return new Date(0,0,0,n(t[1]),n(t[2]),n(t[4]))},x=function(e,t){var n=e.match(p),i="";{if(n){for(var o=1;o<g.length;o++)n[o]&&(i+=g[o]||n[o]);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"}},w=function(e){return"number"==typeof e?new Date(e):m(e,!i().forceIsoDateParsing)},b=function(e,t){return t?l(e)?t===d?e&&e.valueOf?e.valueOf():null:o(t,a)(e):null:e},y=function(e){if("number"==typeof e)return d;if(s(e)){var t;return i().forceIsoDateParsing&&(t=x(e)),t?t:e.indexOf(":")>=0?h:u}return e?null:void 0};e.exports={dateParser:m,deserializeDate:w,serializeDate:b,getDateSerializationFormat:y}},function(e,t,n){var i=n(2),o=n(12),a=n(19),r=n(13),s=n(10),l=s.abstract,c=a(),d=s.inherit({render:function(e){e=e||{};var t=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),a=r.contains(n.get(0),e.get(0));if(n.append(e),!a){var s=o.getBody().contains(n.get(0));s&&r.triggerShownEvent(e)}}},_renderCore:l});e.exports=d,e.exports.renderedCallbacks=c},function(e,t,n){var i=n(2),o=n(66),a=n(5),r=n(129),s=n(3),l=n(1).isPrimitive,c=function(){var e=function(e,i,o,a,r){var s,c;return s=t(e,i,function(e){return c&&c(),l(e)?void r(e):void(c=n(e,i,o,a,function(e){r(e)}))}),function(){c&&c(),s&&s()}},t=function(e,t,n){return t(function(){return e},n)},n=function(e,t,n,i,o){var a={},r=n.slice(),l=s.map(n,function(n){var s=i[n];return t(s?function(){return s(e)}:function(){return e[n]},function(e){if(a[n]=e,r.length){var t=r.indexOf(n);t>=0&&r.splice(t,1)}r.length||o(a)})});return function(){s.each(l,function(e,t){t()})}};return e}();e.exports=o.inherit({ctor:function(e,t,n,i){this._render=e,this._fields=t,this._fieldsMap=i||{},this._watchMethod=n},_renderCore:function(e){var t=i(e.container),n=c(e.model,this._watchMethod,this._fields,this._fieldsMap,function(n){t.empty(),this._render(t,n,e.model)}.bind(this));return a.on(t,r,n),t.contents()}})},function(e,t,n){var i=function(e){var t,n=function(){return t=e.apply(this,arguments),n=function(){return t},t};return function(){return n.apply(this,arguments)}};e.exports=i},function(e,t,n){var i=n(2),o="dx-inkripple",a="dx-inkripple-wave",r="dx-inkripple-showing",s="dx-inkripple-hiding",l=2,c=4e3,d=300,u=1e3,h=0,p=function(e){e=e||{},void 0===e.useHoldAnimation&&(e.useHoldAnimation=!0);var t={waveSizeCoefficient:e.waveSizeCoefficient||l,isCentered:e.isCentered||!1,wavesNumber:e.wavesNumber||1,durations:x(e.useHoldAnimation)};return{showWave:m.bind(this,t),hideWave:b.bind(this,t)}},f=function(e){var t=e.children("."+o);return 0===t.length&&(t=i("<div>").addClass(o).appendTo(e)),t},g=function(e,t){for(var n=f(e),o=n.children("."+a).toArray(),r=o.length;r<t;r++){var s=i("<div>").appendTo(n).addClass(a);o.push(s[0])}return i(o)},_=function(e,t){var n,i,o=t.element,a=o.outerWidth(),r=o.outerHeight(),s=parseInt(Math.sqrt(a*a+r*r)),l=Math.min(c,parseInt(s*e.waveSizeCoefficient));if(e.isCentered)n=(a-l)/2,i=(r-l)/2;else{var d=t.event,u=t.element.offset(),h=d.pageX-u.left,p=d.pageY-u.top;n=h-l/2,i=p-l/2}return{left:n,top:i,height:l,width:l}},m=function(e,t){var n=g(t.element,e.wavesNumber).eq(t.wave||h);e.hidingTimeout&&clearTimeout(e.hidingTimeout),w(n),n.css(_(e,t)),e.showingTimeout=setTimeout(v.bind(this,e,n),0)},v=function(e,t){var n=e.durations.showingScale+"ms";t.addClass(r).css("transitionDuration",n)},x=function(e){return{showingScale:e?u:d,hidingScale:d,hidingOpacity:d}},w=function(e){e.removeClass(s).css("transitionDuration","")},b=function(e,t){e.showingTimeout&&clearTimeout(e.showingTimeout);var n=g(t.element,t.wavesNumber).eq(t.wave||h),i=e.durations,o=i.hidingScale+"ms, "+i.hidingOpacity+"ms";n.addClass(s).removeClass(r).css("transitionDuration",o);var a=Math.max(i.hidingScale,i.hidingOpacity);e.hidingTimeout=setTimeout(w.bind(this,n),a)};e.exports={render:p}},function(e,t,n){e.exports=n(328)},function(e,t,n){var i=n(75).logger,o=n(55);e.exports=o({isWrapped:function(){return!1},isWritableWrapped:function(){return!1},wrap:function(e){return e},unwrap:function(e){return e},assign:function(){i.error("Method 'assign' should not be used for not wrapped variables. Use 'isWrapped' method for ensuring.")}})},function(e,t,n){var i=n(7).Deferred,o=n(12),a=n(316),r=n(6),s=r.getWindow(),l=n(0).extendFromObject,c=n(1).isDefined,d=n(99),u=n(55),h="success",p="error",f="timeout",g="nocontent",_="parsererror",m=function(e){return 200<=e&&e<300},v=function(e){return 204!==e},x=function(e){var t=[];for(var n in e){var i=e[n];void 0!==i&&(null===i&&(i=""),t.push(encodeURIComponent(n)+"="+encodeURIComponent(i)))}return t.join("&")},w=function(e){var t=o.createElement("script");for(var n in e)t[n]=e[n];return t},b=function(e){e.parentNode.removeChild(e)},y=function(e){return o.getHead().appendChild(e)},C=function(e){var t=w({text:e});y(t),b(t)},k=function(e){var t=w({src:e});return new d(function(e,n){var i={load:e,error:n},a=function(e){i[e.type](),b(t)};for(var r in i)o.listen(t,r,a);y(t)})},S=function(e){var t=e.dataType||"*",n="text/javascript, application/javascript, application/ecmascript, application/x-ecmascript",i={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",jsonp:n,script:n};return l(i,e.accepts,!0),i[t]?i[t]+("*"!==t?", */*; q=0.01":""):i["*"]},I=function(e){var t;return e.data&&!e.upload&&"GET"!==R(e)&&(t="application/x-www-form-urlencoded;charset=utf-8"),e.contentType||t},T=function(e){return e.responseType&&"text"!==e.responseType||"string"!=typeof e.responseText?e.response:e.responseText},D=function(e,t,n){var i=T(t);switch(n){case"jsonp":C(i);break;case"script":C(i),e.resolve(i,h,t);break;case"json":try{e.resolve(JSON.parse(i),h,t)}catch(n){e.reject(t,_,n)}break;default:e.resolve(i,h,t)}},E=function(e){if(!r.hasWindow())return!0;var t=!1,n=o.createElement("a"),i=o.createElement("a");n.href=s.location.href;try{i.href=e,i.href=i.href,t=n.protocol+"//"+n.host!=i.protocol+"//"+i.host}catch(e){t=!0}return t},A=function(e,t){return e&&setTimeout(function(){t.customStatus=f,t.abort()},e)},B=function(e){if("jsonp"===e.dataType){var t=Math.random().toString().replace(/\D/g,""),n=e.jsonpCallback||"dxCallback"+Date.now()+"_"+t,i=e.jsonp||"callback";return e.data=e.data||{},e.data[i]=n,n}},O=function(e,t){var n=e.data,i="string"==typeof n,o=e.url||s.location.href;return i||e.cache||(n=n||{},n._=Date.now()),n&&!e.upload&&(i||(n=x(n)),"GET"===R(e)?(""!==n&&(o+=(o.indexOf("?")>-1?"&":"?")+n),n=null):t["Content-Type"]&&t["Content-Type"].indexOf("application/x-www-form-urlencoded")>-1&&(n=n.replace(/%20/g,"+"))),{url:o,parameters:n}},R=function(e){return(e.method||"GET").toUpperCase()},M=function(e){var t=e.headers||{};return t["Content-Type"]=t["Content-Type"]||I(e),t.Accept=t.Accept||S(e),e.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t},P=function(e){var t,n=a.getXhr(),o=new i,r=o.promise(),l=!c(e.async)||e.async,d=e.dataType,u=e.timeout||0;e.crossDomain=E(e.url);var f="jsonp"===d||"script"===d;void 0===e.cache&&(e.cache=!f);var _=B(e),x=M(e),w=O(e,x),b=w.url,y=w.parameters;if(_&&(s[_]=function(e){o.resolve(e,h,n)}),e.crossDomain&&f){var C=function(){o.reject(n,p)},S=function(){"jsonp"!==d&&o.resolve(null,h,n)};return k(b).then(S,C),r}if(e.crossDomain&&!("withCredentials"in n))return o.reject(n,p),r;if(n.open(R(e),b,l,e.username,e.password),l&&(n.timeout=u,t=A(u,n,o)),n.onreadystatechange=function(e){4===n.readyState&&(clearTimeout(t),m(n.status)?v(n.status)?D(o,n,d):o.resolve(null,g,n):o.reject(n,n.customStatus||p))},e.upload&&(n.upload.onprogress=e.upload.onprogress,n.upload.onloadstart=e.upload.onloadstart,n.upload.onabort=e.upload.onabort),e.xhrFields)for(var I in e.xhrFields)n[I]=e.xhrFields[I];"arraybuffer"===e.responseType&&(n.responseType=e.responseType);for(var T in x)x.hasOwnProperty(T)&&c(x[T])&&n.setRequestHeader(T,x[T]);return e.beforeSend&&e.beforeSend(n),n.send(y),r.abort=function(){n.abort()},r};e.exports=u({sendRequest:P})},function(e,t,n){var i=n(2),o=n(51),a=o.add,r=n(19)(),s=i(),l=function(){var e;return function(t){if(!arguments.length)return e;var n=i(t);s=n;var o=!!n.length,a=l();e=o?n:i("body"),r.fire(o?l():i(),a)}}();a(function(){l(".dx-viewport")}),t.value=l,t.changeCallback=r,t.originalViewPort=function(){return s}},function(e,t,n){var i=n(26),o=n(30),a=o().useJQuery;i&&a!==!1&&o({useJQuery:!0}),e.exports=function(){return i&&o().useJQuery}},function(e,t,n){var i=n(1).isFunction,o=function(){},a=function(e){return"undefined"!=typeof console&&i(console[e])?console[e].bind(console):o},r={info:a("info"),warn:a("warn"),error:a("error")},s=function(){function e(e,t){if(!e)throw new Error(t)}function t(t,n){e(null!==t&&void 0!==t,n)}return{assert:e,assertParam:t}}();t.logger=r,t.debug=s},function(e,t,n){var i=n(2),o=n(30),a=n(6).getWindow(),r=n(1),s=n(3).each,l=n(10),c=n(17),d=l.inherit({ctor:function(e,t){t=t||{},this._action=e,this._context=t.context||a,this._beforeExecute=t.beforeExecute,this._afterExecute=t.afterExecute,this._component=t.component,this._validatingTargetName=t.validatingTargetName;var n=this._excludeValidators={};if(t.excludeValidators)for(var i=0;i<t.excludeValidators.length;i++)n[t.excludeValidators[i]]=!0},execute:function(){var e={action:this._action,args:Array.prototype.slice.call(arguments),context:this._context,component:this._component,validatingTargetName:this._validatingTargetName,cancel:!1,handled:!1},t=this._beforeExecute,n=this._afterExecute,i=e.args[0]||{};if("jQueryEvent"in i||!i.event||!o().useJQuery||Object.defineProperty(i,"jQueryEvent",{get:function(){return 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 a=this._executeAction(e);if(!i.cancel)return n&&n.call(this._context,e),a}},_validateAction:function(e){var t=this._excludeValidators,n=d.executors;for(var i in n)if(!t[i]){var o=n[i];if(o.validate&&o.validate(e),e.cancel)return!1}return!0},_executeAction:function(e){var t,n=d.executors;for(var i in n){var o=n[i];if(o.execute&&o.execute(e),e.handled){t=e.result;break}}return t}});d.executors={},d.registerExecutor=function(e,t){return r.isPlainObject(e)?void s(e,d.registerExecutor):void(d.executors[e]=t)},d.unregisterExecutor=function(){var e=[].slice.call(arguments);s(e,function(){delete d.executors[this]})},d.registerExecutor({undefined:{execute:function(e){e.action||(e.result=void 0,e.handled=!0)}},func:{execute:function(e){r.isFunction(e.action)&&(e.result=e.action.call(e.context,e.args[0]),e.handled=!0)}}});var u=function(e){return function(t){if(t.args.length){var n=t.args[0],o=n[t.validatingTargetName]||n.element;o&&e(i(o))&&(t.cancel=!0)}}};d.registerExecutor({designMode:{validate:function(e){o().designMode&&(e.cancel=!0)}},disabled:{validate:u(function(e){return e.is(".dx-state-disabled, .dx-state-disabled *")})},readOnly:{validate:u(function(e){return e.is(".dx-state-readonly, .dx-state-readonly *")})}}),e.exports=d},function(e,t,n){var i,o=n(2),a=n(4),r=n(3).each,s=n(6),l=s.getWindow(),c=n(12),d=n(1).isWindow,u=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=a.splitPair(e);return n&&r(n,function(){var e=String(this).toLowerCase();g.test(e)?t.h=e:_.test(e)&&(t.v=e)}),t},x=function(e){return u.pairToObject(e)},w=function(e){var t=a.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}},b=function(e){switch(e){case"center":return.5;case"right":case"bottom":return 1;default:return 0}},y=function(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return e}},C=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},k=function(e,t,n){return t.myLocation<n.min?"h"===e?"left":"top":t.myLocation>n.max?"h"===e?"right":"bottom":"none"},S=function(e){e.myLocation=e.atLocation+b(e.atAlign)*e.atSize-b(e.myAlign)*e.mySize+e.offset},I={fit:function(e,t){var n=!1;e.myLocation>t.max&&(e.myLocation=t.max,n=!0),e.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:y(e.myAlign),atAlign:y(e.atAlign),offset:-e.offset});S(n),n.oversize=C(n,t),(n.myLocation>=t.min&&n.myLocation<=t.max||e.oversize>n.oversize)&&(e.myLocation=n.myLocation,e.oversize=n.oversize,e.flip=!0)}},flipfit:function(e,t){this.flip(e,t),this.fit(e,t)},none:function(e){e.oversize=0}},T=function(){var e=o("<div>").css({width:100,height:100,overflow:"scroll",position:"absolute",top:-9999}).appendTo(o("body")),t=e.get(0).offsetWidth-e.get(0).clientWidth;e.remove(),i=t},D={h:{location:0,flip:!1,fit:!1,oversize:0},v:{location:0,flip:!1,fit:!1,oversize:0}},E=function(e,t){var n=o(e),a=n.offset(),r=h(!0,{},D,{h:{location:a.left},v:{location:a.top}});if(!t)return r;var s=v(t.my),u=v(t.at),p=o(t.of).length&&t.of||l,g=x(t.offset),_=w(t.collision),m=t.boundary,b=x(t.boundaryOffset),y={mySize:n.outerWidth(),myAlign:s.h,atAlign:u.h,offset:g.h,collision:_.h,boundaryOffset:b.h},E={mySize:n.outerHeight(),myAlign:s.v,atAlign:u.v,offset:g.v,collision:_.v,boundaryOffset:b.v};if(p.preventDefault)y.atLocation=p.pageX,E.atLocation=p.pageY,y.atSize=0,E.atSize=0;else if(p=o(p),d(p[0]))y.atLocation=p.scrollLeft(),E.atLocation=p.scrollTop(),y.atSize=p[0].innerWidth>p[0].outerWidth?p[0].innerWidth:p.width(),E.atSize=p[0].innerHeight>p[0].outerHeight?p[0].innerHeight:p.height();else if(9===p[0].nodeType)y.atLocation=0,E.atLocation=0,y.atSize=p.width(),E.atSize=p.height();else{var A=p.offset();y.atLocation=A.left,E.atLocation=A.top,y.atSize=p.outerWidth(),E.atSize=p.outerHeight()}S(y),S(E);var B=function(){var e=o(l),t=e.width(),n=e.height(),a=e.scrollLeft(),r=e.scrollTop(),s=c.getDocumentElement(),d=f.touch?s.clientWidth/t:1,u=f.touch?s.clientHeight/n:1;void 0===i&&T();var h=t,p=n;if(m){var g=o(m),_=g.offset();a=_.left,r=_.top,h=g.width(),p=g.height()}return{h:{min:a+y.boundaryOffset,max:a+h/d-y.mySize-y.boundaryOffset},v:{min:r+E.boundaryOffset,max:r+p/u-E.mySize-E.boundaryOffset}}}();y.oversize=C(y,B.h),E.oversize=C(E,B.v),y.collisionSide=k("h",y,B.h),E.collisionSide=k("v",E,B.v),I[y.collision]&&I[y.collision](y,B.h),I[E.collision]&&I[E.collision](E,B.v);var O=function(e){return t.precise?e:Math.round(e)};return h(!0,r,{h:{location:O(y.myLocation),oversize:O(y.oversize),fit:y.fit,flip:y.flip,collisionSide:y.collisionSide},v:{location:O(E.myLocation),oversize:O(E.oversize),fit:E.fit,flip:E.flip,collisionSide:E.collisionSide},precise:t.precise}),r},A=function(e,t){var n=o(e);if(!t)return n.offset();p.resetPosition(n,!0);var i=n.offset(),a=t.h&&t.v?t:E(n,t),r=function(e){return t.precise?e:Math.round(e)};return p.move(n,{left:a.h.location-r(i.left),top:a.v.location-r(i.top)}),a},B=function(e){return e=o(e).get(0),d(e)?null:e&&"pageY"in e&&"pageX"in e?{top:e.pageY,left:e.pageX}:o(e).offset()};A.inverseAlign||(A.inverseAlign=y),A.normalizeAlign||(A.normalizeAlign=v),e.exports={calculateScrollbarWidth:T,calculate:E,setup:A,offset:B}},function(e,t,n){var i=n(2),o=n(35),a=n(11).wrapToArray,r=n(11).inArray,s=n(3),l=n(13).contains,c=n(61),d=n(9),u=n(146),h=n(84),p="dxdragstart",f="dxdrag",g="dxdragend",_="dxdragenter",m="dxdragleave",v="dxdrop",x="dxDragEventsCount",w=[],b=[],y=[],C={setup:function(e,t){var n=r(e,w)!==-1;n||(w.push(e),b.push([]),y.push(t||{}))},add:function(e,t){var n=r(e,w);this.updateEventsCounter(e,t.type,1);var i=t.selector;r(i,b[n])===-1&&b[n].push(i)},updateEventsCounter:function(e,t,n){if([_,m,v].indexOf(t)>-1){var i=o.data(e,x)||0;o.data(e,x,Math.max(0,i+n))}},remove:function(e,t){this.updateEventsCounter(e,t.type,-1)},teardown:function(e){var t=o.data(e,x);if(!t){var n=r(e,w);w.splice(n,1),b.splice(n,1),y.splice(n,1),o.removeData(e,x)}}};c(_,C),c(m,C),c(v,C);var k=function(e){var t=r(e.get(0),w),n=b[t],i=e.find(n.join(", "));return r(void 0,n)!==-1&&(i=i.add(e)),i},S=function(e){var t=r(e.get(0),w);return y[t]},I=function(e,t){return e.itemPositionFunc?e.itemPositionFunc(t):t.offset()},T=function(e,t){return e.itemSizeFunc?e.itemSizeFunc(t):{width:t.get(0).getBoundingClientRect().width,height:t.get(0).getBoundingClientRect().height}},D=u.inherit({ctor:function(e){this.callBase(e),this.direction="both"},_init:function(e){this._initEvent=e},_start:function(e){e=this._fireEvent(p,this._initEvent),this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset;var t=a(e.targetElements||(null===e.targetElements?[]:w));this._dropTargets=s.map(t,function(e){return i(e).get(0)})},_move:function(e){var t=d.eventData(e),n=this._calculateOffset(t);e=this._fireEvent(f,e,{offset:n}),this._processDropTargets(e),e._cancelPreventDefault||e.preventDefault()},_calculateOffset:function(e){return{x:this._calculateXOffset(e),y:this._calculateYOffset(e)}},_calculateXOffset:function(e){if("vertical"!==this.direction){var t=e.x-this._startEventData.x;return this._fitOffset(t,this._maxLeftOffset,this._maxRightOffset)}return 0},_calculateYOffset:function(e){if("horizontal"!==this.direction){var t=e.y-this._startEventData.y;return this._fitOffset(t,this._maxTopOffset,this._maxBottomOffset)}return 0},_fitOffset:function(e,t,n){return null!=t&&(e=Math.max(e,-t)),null!=n&&(e=Math.min(e,n)),e},_processDropTargets:function(e){var t=this._findDropTarget(e),n=t===this._currentDropTarget;n||(this._fireDropTargetEvent(e,m),this._currentDropTarget=t,this._fireDropTargetEvent(e,_))},_fireDropTargetEvent:function(e,t){if(this._currentDropTarget){var n={type:t,originalEvent:e,draggingElement:this._$element.get(0),target:this._currentDropTarget};d.fireEvent(n)}},_findDropTarget:function(e){var t,n=this;return s.each(w,function(o,a){if(n._checkDropTargetActive(a)){var r=i(a);s.each(k(r),function(o,a){var s=i(a);n._checkDropTarget(S(r),s,e)&&(t=a)})}}),t},_checkDropTargetActive:function(e){var t=!1;return s.each(this._dropTargets,function(n,i){return t=t||i===e||l(i,e),!t}),t},_checkDropTarget:function(e,t,n){var i=t.get(0)===this._$element.get(0);if(i)return!1;var o=I(e,t);if(n.pageX<o.left)return!1;if(n.pageY<o.top)return!1;var a=T(e,t);return!(n.pageX>o.left+a.width)&&(!(n.pageY>o.top+a.height)&&t);
|
|
15
15
|
},_end:function(e){var t=d.eventData(e);this._fireEvent(g,e,{offset:this._calculateOffset(t)}),this._fireDropTargetEvent(e,v),delete this._currentDropTarget}});h({emitter:D,events:[p,f,g]}),t.move=f,t.start=p,t.end=g,t.enter=_,t.leave=m,t.drop=v},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(0).extend,a=n(1),r=n(50),s=n(54),l=n(41).keysEqual,c=n(42),d=n(36).errors,u=n(91),h=n(7).Deferred,p=function(e,t){for(var n,i="string"==typeof t?t.split():t.slice();i.length;)if(n=i.shift(),n in e)return!0;return!1},f=function(){var e=new h;return e.resolve.apply(e,arguments).promise()},g=function(){var e=new h;return e.reject.apply(e,arguments).promise()},_=u.inherit({ctor:function(e){e=Array.isArray(e)?{data:e}:e||{},this.callBase(e);var t=e.data;if(t&&!Array.isArray(t))throw d.Error("E4006");this._array=t||[]},createQuery:function(){return c(this._array,{errorHandler:this._errorHandler})},_byKeyImpl:function(e){var t=this._indexByKey(e);return t===-1?g(d.Error("E4009")):f(this._array[t])},_insertImpl:function(e){var t,n,s=this.key();if(n=a.isPlainObject(e)?o({},e):e,s){if(t=this.keyOf(n),void 0===t||"object"===("undefined"==typeof t?"undefined":i(t))&&a.isEmptyObject(t)){if(Array.isArray(s))throw d.Error("E4007");t=n[s]=String(new r)}else if(void 0!==this._array[this._indexByKey(t)])return g(d.Error("E4008"))}else t=n;return this._array.push(n),f(e,t)},_updateImpl:function(e,t){var n,i,o=this.key(),a=!0;if(o){if(p(t,o)&&!l(o,e,this.keyOf(t)))return g(d.Error("E4017"));if(n=this._indexByKey(e),n<0)return g(d.Error("E4009"));i=this._array[n]}else i=e;return s.deepExtendArraySafe(i,t,a),f(e,t)},_removeImpl:function(e){var t=this._indexByKey(e);return t>-1&&this._array.splice(t,1),f(e)},_indexByKey:function(e){for(var t=0,n=this._array.length;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 o(e,t){var n=[];return l(e,function(e,i){var o=r(t,function(e){return i.selector===e.selector});o.length<1&&n.push(i)}),n.concat(t)}function a(e,t,n){t=t||{};var a=t.filter,r=t.sort,s=t.select,c=t.group,u=t.skip,h=t.take;return a&&(e=e.filter(a)),c&&(c=d(c)),n||((r||c)&&(r=d(r||[]),c&&(r=o(c,r)),l(r,function(t){e=e[t?"thenBy":"sortBy"](this.selector,this.desc,this.compare)})),s&&(e=e.select(s))),c&&(e=i(e,c)),n||(h||u)&&(e=e.slice(u||0,h)),e}var r=n(4).grep,s=n(0).extend,l=n(3).each,c=n(144),d=n(41).normalizeSortingInfo;e.exports={multiLevelGroup:i,arrangeSortingInfo:o,queryByOptions:a}},function(e,t,n){var i=n(55);e.exports=i({locale:function(){var e="en";return function(t){return t?void(e=t):e}}()})},function(e,t,n){function i(e,t,n){t.on(e,function(){n.fireEvent(e,arguments)})}var o=n(11).inArray,a=n(3).each,r=n(10),s=n(53),l=r.inherit({ctor:function(){this._cache={}},setView:function(e,t){this._cache[e]=t},getView:function(e){return this._cache[e]},removeView:function(e){var t=this._cache[e];return t&&(delete this._cache[e],this.fireEvent("viewRemoved",[{viewInfo:t}])),t},clear:function(){var e=this;a(this._cache,function(t){e.removeView(t)})},hasView:function(e){return e in this._cache}}).include(s),c=l.inherit({setView:function(e,t){this.callBase(e,t),this.removeView(e)}}),d=r.inherit({ctor:function(e){this._filter=e.filter,this._viewCache=e.viewCache,this.viewRemoved=this._viewCache.viewRemoved,i("viewRemoved",this._viewCache,this)},setView:function(e,t){this._viewCache.setView(e,t),this._filter(e,t)||this._viewCache.removeView(e)},getView:function(e){return this._viewCache.getView(e)},removeView:function(e){return this._viewCache.removeView(e)},clear:function(){return this._viewCache.clear()},hasView:function(e){return this._viewCache.hasView(e)}}).include(s),u=5,h=r.inherit({ctor:function(e){this._keys=[],this._size=e.size||u,this._viewCache=e.viewCache,this.viewRemoved=this._viewCache.viewRemoved,i("viewRemoved",this._viewCache,this)},setView:function(e,t){this.hasView(e)||(this._keys.length===this._size&&this.removeView(this._keys[0]),this._keys.push(e)),this._viewCache.setView(e,t)},getView:function(e){var t=o(e,this._keys);return t<0?null:(this._keys.push(e),this._keys.splice(t,1),this._viewCache.getView(e))},removeView:function(e){var t=o(e,this._keys);return t>-1&&this._keys.splice(t,1),this._viewCache.removeView(e)},clear:function(){return this._keys=[],this._viewCache.clear()},hasView:function(e){return this._viewCache.hasView(e)}}).include(s),p=r.inherit({ctor:function(e){this._viewCache=e.viewCache||new l,this._navigationManager=e.navigationManager,this._navigationManager.on("itemRemoved",this._onNavigationItemRemoved.bind(this)),this.viewRemoved=this._viewCache.viewRemoved,i("viewRemoved",this._viewCache,this)},_onNavigationItemRemoved:function(e){this.removeView(e.key)},setView:function(e,t){this._viewCache.setView(e,t)},getView:function(e){return this._viewCache.getView(e)},removeView:function(e){return this._viewCache.removeView(e)},clear:function(){return this._viewCache.clear()},hasView:function(e){return this._viewCache.hasView(e)}}).include(s);e.exports=l,e.exports.NullViewCache=c,e.exports.ConditionalViewCacheDecorator=d,e.exports.CapacityViewCacheDecorator=h,e.exports.HistoryDependentViewCacheDecorator=p},function(e,t,n){var i=n(37).camelize,o=n(68),a=n(1),r=n(12),s=["","Webkit","Moz","O","Ms"],l={"":"",Webkit:"-webkit-",Moz:"-moz-",O:"-o-",ms:"-ms-"},c=o(function(){return r.createElement("dx").style}),d=function(e,t){e=i(e,!0);for(var n,o=0,a=s.length;o<a;o++){var r=s[o],l=r+e,c=i(l);if(n=t(c,r),void 0===n&&(n=t(l,r)),void 0!==n)break}return n||""},u=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 d(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 a.isNumeric(t)&&p.indexOf(e)===-1&&(t+="px"),t},g=function(e,t,n){if(e){n=a.isNumeric(n)?n+="px":n;for(var i=0;i<e.length;++i)e[i].style[t]=n}},_=function(e,t){g(e,"width",t)},m=function(e,t){g(e,"height",t)};t.styleProp=u,t.stylePropPrefix=h,t.normalizeStyleProp=f,t.setWidth=_,t.setHeight=m},function(e,t,n){var i=n(2),o=n(51),a=n(12),r=n(5),s=n(35),l=n(10),c=n(0).extend,d=n(11).inArray,u=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(){o.add(function(){var e=a.getDocument();r.subscribeGlobal(e,p.addNamespace(f.down,_),this._pointerDownHandler.bind(this)),r.subscribeGlobal(e,p.addNamespace(f.move,_),this._pointerMoveHandler.bind(this)),r.subscribeGlobal(e,p.addNamespace([f.up,f.cancel].join(" "),_),this._pointerUpHandler.bind(this)),r.subscribeGlobal(e,p.addNamespace(g.name,_),this._mouseWheelHandler.bind(this))}.bind(this))},_eachEmitter:function(e){for(var t=this._activeEmitters||[],n=0;t.length>n;){var i=t[n];if(e(i)===!1)break;t[n]===i&&n++}},_applyToEmitters:function(e,t){this._eachEmitter(function(n){n[e].call(n,t)})},reset:function(){this._eachEmitter(this._proxiedCancelHandler),this._activeEmitters=[]},resetEmitter:function(e){this._proxiedCancelHandler(e)},_pointerDownHandler:function(e){p.isMouseEvent(e)&&e.which>1||this._updateEmitters(e)},_updateEmitters:function(e){this._isSetChanged(e)&&(this._cleanEmitters(e),this._fetchEmitters(e))},_isSetChanged:function(e){var t=this._closestEmitter(e),n=this._emittersSet||[],i=t.length!==n.length;return u(t,function(e,t){return i=i||n[e]!==t,!i}),this._emittersSet=t,i},_closestEmitter:function(e){function t(t,i){i&&i.validatePointers(e)&&i.validate(e)&&(i.addCancelCallback(n._proxiedCancelHandler),i.addAcceptCallback(n._proxiedAcceptHandler),o.push(i))}for(var n=this,o=[],a=i(e.target);a.length;){var r=s.data(a.get(0),m)||[];u(r,t),a=a.parent()}return o},_acceptHandler:function(e,t){var n=this;this._eachEmitter(function(i){i!==e&&n._cancelEmitter(i,t)})},_cancelHandler:function(e,t){this._cancelEmitter(e,t)},_cancelEmitter:function(e,t){var n=this._activeEmitters;t?e.cancel(t):e.reset(),e.removeCancelCallback(),e.removeAcceptCallback();var i=d(e,n);i>-1&&n.splice(i,1)},_cleanEmitters:function(e){this._applyToEmitters("end",e),this.reset(e)},_fetchEmitters:function(e){this._activeEmitters=this._emittersSet.slice(),this._applyToEmitters("start",e)},_pointerMoveHandler:function(e){this._applyToEmitters("move",e)},_pointerUpHandler:function(e){this._updateEmitters(e)},_mouseWheelHandler:function(e){this._allowInterruptionByMouseWheel()&&(e.pointers=[null],this._pointerDownHandler(e),this._adjustWheelEvent(e),this._pointerMoveHandler(e),e.pointers=[],this._pointerUpHandler(e))},_allowInterruptionByMouseWheel:function(){var e=!0;return this._eachEmitter(function(t){return e=t.allowInterruptionByMouseWheel()&&e}),e},_adjustWheelEvent:function(e){var t=null;if(this._eachEmitter(function(n){if(n.gesture){var i=n.getDirection(e);return"horizontal"!==i&&!e.shiftKey||"vertical"!==i&&e.shiftKey?(t=n,!1):void 0}}),t){var n=t.getDirection(e),i="both"===n&&!e.shiftKey||"vertical"===n,o=i?"pageY":"pageX";e[o]+=e.delta}},isActive:function(e){var t=!1;return this._eachEmitter(function(n){t=t||n.getElement().is(e)}),t}}),x=new v,w="dxEmitterSubscription",b=function(e){var t=e.emitter,n=e.events[0],i=e.events;u(i,function(o,a){h(a,{noBubble:!e.bubble,setup:function(e){var i=s.data(e,w)||{},o=s.data(e,m)||{},r=o[n]||new t(e);i[a]=!0,o[n]=r,s.data(e,m,o),s.data(e,w,i)},add:function(e,t){var i=s.data(e,m),o=i[n];o.configure(c({delegateSelector:t.selector},t.data),t.type)},teardown:function(e){var t=s.data(e,w),o=s.data(e,m),r=o[n];delete t[a];var l=!0;u(i,function(e,n){return l=l&&!t[n]}),l&&(x.isActive(e)&&x.resetEmitter(r),r&&r.dispose(),delete o[n])}})})};e.exports=b},function(e,t,n){function i(e){return e>0?Math.round(e):0}function o(e,t,n,i){var a,r,s,l,c=[],d=i.nodes,u=t.length,h=0;for(r=0;r<u;++r)s=t[r],a=new x,a._id=d.length,a.ctx=i.ctx,a.parent=e,a.level=n,a.index=c.length,a.data=s,i.buildNode(a),d.push(a),c.push(a),l=s[i.itemsField],l&&l.length&&o(a,l,n+1,i),s[i.valueField]>0&&(a.value=Number(s[i.valueField])),h+=a.value;e.nodes=c,e.value=h}function a(e,t,n){var i,o,r=t.nodes,s=r.length;for(o=0;o<s;++o)i=r[o],n(e,i),i.isNode()&&a(e,i,n)}function r(e,t){t.color=t.data[e.colorField]||e.getColor(t)||t.parent.color,t.updateStyles(),t.tile=!t.ctx.forceReset&&t.tile||E[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&&d(e,t,t.labelState,t.labelParams)}function d(e,t,n,i){var o=t.data[e.labelField];t.label=o?String(o):null,o=t.customLabel||t.label,o&&(t.text=e.renderer.text(o).attr(n.attr).css(n.css).append(e.group),e.setTrackerData(t,t.text))}function u(e,t){var n,i=t.nodes,o=[],a=[],r=0,s=o.length=a.length=i.length;for(n=0;n<s;++n)r+=i[n].value,o[n]={value:i[n].value,i:n};for(r>0&&e.algorithm({items:o.slice(),sum:r,rect:t.innerRect.slice(),isRotated:1&i[0].level,directions:e.directions}),n=0;n<s;++n)a[n]=o[n].rect||A;t.rects=a}function h(e,t){var n,i=t.parent.rects[t.index],o=e.rectOffsets;t.isNode()?(g(t.tile.outer,f(i,t.parent.innerRect,o.headerEdge,o.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,o.headerEdge)),i[1]+=n,t.innerRect=i,u(e,t)):(t.rect=i,g(t.tile,f(i,t.parent.innerRect,o.tileEdge,o.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:I(t[2]-t[0],0),height:I(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,o=i.getBBox(),a=t.paddingLeftRight,r=t.paddingTopBottom,s=n[2]-n[0]-a,l=o.height+r<=n[3]-n[1],c=o.width<=s;"ellipsis"===t.resolveLabelOverflow&&l&&(i.applyEllipsis(s),c||(o=i.getBBox(),c=o.width<=s)),i.attr({visibility:l&&c?"visible":"hidden"}),l&&c&&i.move(t.rtlEnabled?n[2]-a-o.x-o.width:n[0]+a-o.x,n[1]+r-o.y)}var v=n(304),x=n(201),w=n(152).getAlgorithm,b=n(153).getColorizer,y=n(16).patchFontOptions,C=v.buildRectAppearance,k=v.buildTextAppearance,S=n(4).noop,I=Math.max,T={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 D=n(132).inherit({_handlers:{beginBuildNodes:S,buildNode:S,endBuildNodes:S,setTrackerData:S,calculateState:function(e){return C(e)}},_rootClass:"dxtm-tree-map",_rootClassPrefix:"dxtm",_getDefaultSize:function(){return{width:400,height:400}},_createThemeManager:function(){return new B},_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:k},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:S,_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 x;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()||[]),o(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:S,_processDataSourceItems:function(e){return{items:e,isPlain:!1}},_changeTileSettings:function(){var e=this,t=e._getOption("tile"),n=e._rectOffsets,o=i(t.border.width),a=o/2,r=1&o?.5:0,s=t.label,l=e._context.settings[0];e._change(["TILES","LABELS"]),l.state=e._handlers.calculateState(t),e._filter=e._filter||e._renderer.shadowFilter("-50%","-50%","200%","200%"),e._filter.attr(s.shadow),e._calculateLabelSettings(l,s,e._filter.id),n.tileEdge===a&&n.tileInner===r||(n.tileEdge=a,n.tileInner=r,e._change(["TILING"]))},_changeGroupSettings:function(){var e=this,t=e._getOption("group"),n=t.label,o=e._rectOffsets,a=i(t.border.width),r=a/2,s=1&a?.5:0,l=0,c=i(t.padding),d=e._context.settings[1];e._change(["TILES","LABELS"]),d.state=e._handlers.calculateState(t),e._calculateLabelSettings(d,n),l=t.headerHeight>=0?i(t.headerHeight):d.labelParams.height+2*i(n.paddingTopBottom),e._headerHeight!==l&&(e._headerHeight=l,e._change(["TILING"])),e._groupPadding!==c&&(e._groupPadding=c,e._change(["TILING"])),o.headerEdge===r&&o.headerInner===s||(o.headerEdge=r,o.headerInner=s,e._change(["TILING"]))},_calculateLabelSettings:function(e,t,n){var o=this._getTextBBox(t.font),a=i(t.paddingLeftRight),r=i(t.paddingTopBottom);e.labelState=k(t,n),e.labelState.visible=!("visible"in t&&!t.visible),e.labelParams={height:o.height,rtlEnabled:this._getOption("rtlEnabled",!0),paddingTopBottom:r,paddingLeftRight:a,resolveLabelOverflow:this._getOption("resolveLabelOverflow",!0)}},_changeMaxDepth:function(){var e=this._getOption("maxDepth",!0);e=e>=1?Math.round(e):1/0,this._maxDepth!==e&&(this._maxDepth=e,this._change(["NODES_RESET"]))},_resetNodes:function(){var e=this;e._tilesGroup.clear(),e._renderer.initHatching(),e._context.forceReset=!0,e._context.minLevel=e._topNode.level+1,e._context.maxLevel=e._context.minLevel+e._maxDepth-1,e._change(["TILES","LABELS","TILING"])},_processNodes:function(e,t){a(e,this._topNode,t)},_applyTilesAppearance:function(){var e=this,t=b(e._getOption("colorizer"),e._themeManager,e._topNode);e._processNodes({renderer:e._renderer,group:e._tilesGroup,setTrackerData:e._handlers.setTrackerData,colorField:e._getOption("colorField",!0)||"color",getColor:t},r)},_applyLabelsAppearance:function(){var e=this;e._labelsGroup.clear(),e._processNodes({renderer:e._renderer,group:e._labelsGroup,setTrackerData:e._handlers.setTrackerData,labelField:e._getOption("labelField",!0)||"name"},c),e._change(["LABELS_LAYOUT"])},_performTiling:function(){var e=this,t={algorithm:w(e._getOption("layoutAlgorithm",!0)),directions:T[String(e._getOption("layoutDirection",!0)).toLowerCase()]||T.lefttoprightbottom,headerHeight:e._headerHeight,groupPadding:e._groupPadding,rectOffsets:e._rectOffsets};e._topNode.innerRect=e._tilingRect,u(t,e._topNode),e._processNodes(t,h),e._change(["LABELS_LAYOUT"]),e._onTilingPerformed()},_onTilingPerformed:S,_performLabelsLayout:function(){this._processNodes(null,_)},_getTextBBox:function(e){var t,n=this._renderer,i=this._textForCalculations||n.text("0",0,0);return this._textForCalculations=i,i.css(y(e)).append(n.root),t=i.getBBox(),i.remove(),t}}),E=[s,l],A=[0,0,0,0],B=n(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",D),e.exports=D,D.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=o(t)),t||(this.colorIsInvalid=!0),t=t||{},this.r=a(t[0]),this.g=a(t[1]),this.b=a(t[2]),this.a=a(t[3],1,1),t[4]?this.hsv={h:t[4][0],s:t[4][1],v:t[4][2]}:this.hsv=s(this.r,this.g,this.b),t[5]?this.hsl={h:t[5][0],s:t[5][1],l:t[5][2]}:this.hsl=d(this.r,this.g,this.b)}function o(e){if("transparent"===e)return[0,0,0,0];for(var t,n=0,i=v.length;n<i;++n)if(t=v[n].re.exec(e))return v[n].process(t);return null}function a(e,t,n){return t=t||0,n=n||255,e<0||isNaN(e)?t:e>n?n:e}function r(e,t,n){return"#"+(16777216|e<<16|t<<8|n).toString(16).slice(1)}function s(e,t,n){var i,o,a,r=Math.max(e,t,n),s=Math.min(e,t,n),l=r-s;if(a=r,o=0===r?0:1-s/r,r===s)i=0;else switch(r){case e:i=60*((t-n)/l),t<n&&(i+=360);break;case t:i=60*((n-e)/l)+120;break;case n:i=60*((e-t)/l)+240}return o*=100,a*=100/255,{h:Math.round(i),s:Math.round(o),v:Math.round(a)}}function l(e,t,n){var i,o,a,r,s,l,c,d;switch(r=Math.floor(e%360/60),a=(100-t)*n/100,s=(n-a)*(e%60/60),o=a+s,i=n-s,r){case 0:l=n,c=o,d=a;break;case 1:l=i,c=n,d=a;break;case 2:l=a,c=n,d=o;break;case 3:l=a,c=i,d=n;break;case 4:l=o,c=a,d=n;break;case 5:l=n,c=a,d=i}return[Math.round(2.55*l),Math.round(2.55*c),Math.round(2.55*d)]}function c(e,t,n,i){var o=Math.max(e,t,n);switch(o){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 d(e,t,n){e=g(e,255),t=g(t,255),n=g(n,255);var i,o,a=Math.max(e,t,n),r=Math.min(e,t,n),s=a+r,l=s/2;if(a===r)i=o=0;else{var d=a-r;o=l>.5?d/(2-s):d/s,i=c(e,t,n,d),i/=6}return{h:x(360*i),s:x(100*o),l:x(100*l)}}function u(e,t){var n=t;return"r"===e&&(n=t+1/3),"b"===e&&(n=t-1/3),n}function h(e){return e<0&&(e+=1),e>1&&(e-=1),e}function p(e,t,n){return n=h(n),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function f(e,t,n){var i,o,a;if(e=g(e,360),t=g(t,100),n=g(n,100),0===t)i=o=a=n;else{var r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=p(s,r,u("r",e)),o=p(s,r,u("g",e)),a=p(s,r,u("b",e))}return[x(255*i),x(255*o),x(255*a)]}function g(e,t){return e=Math.min(t,Math.max(0,parseFloat(e))),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function _(e,t,n){return t=t||0,n=n||255,!(e%1!==0||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),o=l(t,n,i);return[o[0],o[1],o[2],1,[t,n,i]]}},{re:/^hsl\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){var t=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[3],10),o=f(t,n,i);return[o[0],o[1],o[2],1,null,[t,n,i]]}}],x=Math.round;i.prototype={constructor:i,highlight:function(e){return e=e||10,this.alter(e).toHex()},darken:function(e){return e=e||10,this.alter(-e).toHex()},alter:function(e){var t=new i;return t.r=a(this.r+e),t.g=a(this.g+e),t.b=a(this.b+e),t},blend:function(e,t){var n=e instanceof i?e:new i(e),o=new i;return o.r=a(x(this.r*(1-t)+n.r*t)),o.g=a(x(this.g*(1-t)+n.g*t)),o.b=a(x(this.b*(1-t)+n.b*t)),o},toHex:function(){return r(this.r,this.g,this.b)},getPureColor:function(){var e=l(this.hsv.h,100,100);return new i("rgb("+e.join(",")+")")},isValidHex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},isValidRGB:function(e,t,n){return!!(_(e)&&_(t)&&_(n))},isValidAlpha:function(e){return!(isNaN(e)||e<0||e>1||"number"!=typeof e)},colorIsInvalid:!1,fromHSL:function(e){var t=new i,n=f(e.h,e.s,e.l);return t.r=n[0],t.g=n[1],t.b=n[2],t}},e.exports=i},function(e,t,n){var i=n(2),o=n(6),a=o.getNavigator(),r=n(40),s=n(20),l=n(29),c=n(0).extend,d=n(14),u=n(8),h=n(28),p="dx-loadindicator",f="dx-loadindicator-wrapper",g="dx-loadindicator-content",_="dx-loadindicator-icon",m="dx-loadindicator-segment",v="dx-loadindicator-segment-inner",x="dx-loadindicator-image",w=h.inherit({_getDefaultOptions:function(){return c(this.callBase(),{indicatorSrc:"",activeStateEnabled:!1,hoverStateEnabled:!1,_animatingSegmentCount:1,_animatingSegmentInner:!1})},_defaultOptionsRules:function(){var e=s.current();return this.callBase().concat([{device:function(){var e=d.real(),t="android"===e.platform&&!/chrome/i.test(a.userAgent);return l.msie&&l.version<10||t},options:{viaImage:!0}},{device:function(){return s.isWin8(e)||s.isWin10(e)},options:{_animatingSegmentCount:5}},{device:function(){return s.isIos7(e)},options:{_animatingSegmentCount:11}},{device:function(){return s.isMaterial(e)||s.isAndroid5(e)},options:{_animatingSegmentCount:2,_animatingSegmentInner:!0}},{device:function(){return s.isGeneric(e)},options:{_animatingSegmentCount:7}}])},_init:function(){this.callBase(),this.$element().addClass(p)},_initMarkup:function(){this.callBase(),this._renderWrapper(),this._renderIndicatorContent(),this._renderMarkup()},_renderWrapper:function(){this._$wrapper=i("<div>").addClass(f),this.$element().append(this._$wrapper)},_renderIndicatorContent:function(){this._$content=i("<div>").addClass(g),this._$wrapper.append(this._$content)},_renderMarkup:function(){!r.animation()||this.option("viaImage")||this.option("indicatorSrc")?this._renderMarkupForImage():this._renderMarkupForAnimation()},_renderMarkupForAnimation:function(){var e=this.option("_animatingSegmentInner");this._$indicator=i("<div>").addClass(_),this._$content.append(this._$indicator);for(var t=this.option("_animatingSegmentCount");t>=0;--t){var n=i("<div>").addClass(m).addClass(m+t);e&&n.append(i("<div>").addClass(v)),this._$indicator.append(n)}},_renderMarkupForImage:function(){var e=this.option("indicatorSrc");this._$wrapper.addClass(x),e&&this._$wrapper.css("backgroundImage","url("+e+")")},_renderDimensions:function(){this.callBase(),this._updateContentSizeForAnimation()},_updateContentSizeForAnimation:function(){if(this._$indicator){var e=this.option("width"),t=this.option("height");if(e||t){e=this.$element().width(),t=this.$element().height();var n=Math.min(t,e);this._$wrapper.css({height:n,width:n,fontSize:n})}}},_clean:function(){this.callBase(),this._removeMarkupForAnimation(),this._removeMarkupForImage()},_removeMarkupForAnimation:function(){this._$indicator&&(this._$indicator.remove(),delete this._$indicator)},_removeMarkupForImage:function(){this._$wrapper.css("backgroundImage","none")},_optionChanged:function(e){switch(e.name){case"_animatingSegmentCount":case"_animatingSegmentInner":case"indicatorSrc":this._invalidate();break;default:this.callBase(e)}}});u("dxLoadIndicator",w),e.exports=w},function(e,t,n){var i=n(1),o=n(23),a=n(49),r=n(33),s=n(55),l=n(75).logger;n(137),e.exports=s({format:function(e,t,n){var o=i.isString(t)&&""!==t||i.isPlainObject(t)||i.isFunction(t),s=i.isNumeric(e)||i.isDate(e);return o&&s?i.isFunction(t)?t(e):(void 0!==n&&l.warn("Option 'precision' is deprecated. Use field 'precision' of a format object instead."),i.isString(t)&&(t={type:t,precision:n}),i.isNumeric(e)?a.format(e,t):i.isDate(e)?r.format(e,t):void 0):i.isDefined(e)?e.toString():""},getTimeFormat:function(e){return e?"longtime":"shorttime"},_normalizeFormat:function(e){return Array.isArray(e)?1===e.length?e[0]:function(t){return e.map(function(e){return r.format(t,e)}).join(" ")}:e},getDateFormatByDifferences:function(e,t){var n=[],i=t&&e.millisecond&&!(e.year||e.month||e.day);if(i){var o=function(e){return e.getSeconds()+e.getMilliseconds()/1e3+"s"};n.push(o)}else e.millisecond&&n.push("millisecond");if((e.hour||e.minute||!i&&e.second)&&n.unshift(this.getTimeFormat(e.second)),e.year&&e.month&&e.day)return t&&"month"===t?"monthandyear":(n.unshift("shortdate"),this._normalizeFormat(n));if(e.year&&e.month)return"monthandyear";if(e.year&&e.quarter)return"quarterandyear";if(e.year)return"year";if(e.quarter)return"quarter";if(e.month&&e.day){if(t){var a=function(e){return r.getMonthNames("abbreviated")[e.getMonth()]+" "+r.format(e,"day")};n.unshift(a)}else n.unshift("monthandday");return this._normalizeFormat(n)}if(e.month)return"month";if(e.day){if(t)n.unshift("day");else{var s=function(e){return r.format(e,"dayofweek")+", "+r.format(e,"day")};n.unshift(s)}return this._normalizeFormat(n)}return this._normalizeFormat(n)},getDateFormatByTicks:function(e){var t,n,i,a;if(e.length>1)for(n=o.getDatesDifferences(e[0],e[1]),a=1;a<e.length-1;a++)i=o.getDatesDifferences(e[a],e[a+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 a,r,s,l={week:"day"},c=function(e,t,n){switch(t){case"year":case"quarter":e.month=n;case"month":e.day=n;case"week":case"day":e.hour=n;case"hour":e.minute=n;case"minute":e.second=n;case"second":e.millisecond=n}},d=function(e,t,n){!n.getMilliseconds()&&n.getSeconds()?n.getSeconds()-t.getSeconds()===1&&(e.millisecond=!0,e.second=!1):!n.getSeconds()&&n.getMinutes()?n.getMinutes()-t.getMinutes()===1&&(e.second=!0,
|
|
16
|
-
e.minute=!1):!n.getMinutes()&&n.getHours()?n.getHours()-t.getHours()===1&&(e.minute=!0,e.hour=!1):!n.getHours()&&n.getDate()>1?n.getDate()-t.getDate()===1&&(e.hour=!0,e.day=!1):1===n.getDate()&&n.getMonth()?n.getMonth()-t.getMonth()===1&&(e.day=!0,e.month=!1):!n.getMonth()&&n.getFullYear()&&n.getFullYear()-t.getFullYear()===1&&(e.month=!0,e.year=!1)};return n=i.isString(n)?n.toLowerCase():n,r=o.getDatesDifferences(e,t),e!==t&&d(r,e>t?t:e,e>t?e:t),s=o.getDateUnitInterval(r),c(r,s,!0),s=o.getDateUnitInterval(n||"second"),c(r,s,!1),r[l[s]||s]=!0,a=this.getDateFormatByDifferences(r)}})},function(e,t,n){var i=n(10),o=n(0).extend,a=n(11).inArray,r=n(3).each,s=n(53),l=n(17),c=n(4),d=n(1),u=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!!d.isDefined(e)&&(e!==!1&&(e=String(e),!t.trim&&d.isDefined(t.trim)||(e=e.trim()),""!==e))}}),g=p.inherit({NAME:"numeric",_validate:function(e,t){return!y.required.validate(e,{})||(t.useCultureSettings&&d.isString(e)?!isNaN(u.parse(e)):d.isNumeric(e))}}),_=p.inherit({NAME:"range",_validate:function(e,t){if(!y.required.validate(e,{}))return!0;var n=y.numeric.validate(e,t),i=d.isDefined(e),o=n?parseFloat(e):i&&e.valueOf(),a=t.min,r=t.max;if(!n&&!d.isDate(e)&&!i)return!1;if(d.isDefined(a))return d.isDefined(r)?o>=a&&o<=r:o>=a;if(d.isDefined(r))return o<=r;throw l.Error("E0101")}}),m=p.inherit({NAME:"stringLength",_validate:function(e,t){return e=d.isDefined(e)?String(e):"",!t.trim&&d.isDefined(t.trim)||(e=e.trim()),y.range.validate(e.length,o({},t))}}),v=p.inherit({NAME:"custom",validate:function(e,t){var n=t.validator,i=n&&d.isFunction(n.option)&&n.option("dataGetter"),o=d.isFunction(i)&&i(),a={value:e,validator:n,rule:t};return o&&(a.data=o),t.validationCallback(a)}}),x=p.inherit({NAME:"compare",_validate:function(e,t){if(!t.comparisonTarget)throw l.Error("E0102");o(t,{reevaluate:!0});var n=t.comparisonTarget(),i=t.comparisonType||"==";switch(i){case"==":return e==n;case"!=":return e!=n;case"===":return e===n;case"!==":return e!==n;case">":return e>n;case">=":return e>=n;case"<":return e<n;case"<=":return e<=n}}}),w=p.inherit({NAME:"pattern",_validate:function(e,t){if(!y.required.validate(e,{}))return!0;var n=t.pattern;return d.isString(n)&&(n=new RegExp(n)),n.test(e)}}),b=p.inherit({NAME:"email",_validate:function(e,t){return!y.required.validate(e,{})||y.pattern.validate(e,o({},t,{pattern:/^[\d\w._-]+@([\d\w._-]+\.)+[\w]+$/i}))}}),y={required:new f,numeric:new g,range:new _,stringLength:new m,custom:new v,compare:new x,pattern:new w,email:new b},C=i.inherit({ctor:function(e){this.group=e,this.validators=[]},validate:function(){var e={isValid:!0,brokenRules:[],validators:[]};return r(this.validators,function(t,n){var i=n.validate();e.isValid=e.isValid&&i.isValid,i.brokenRule&&e.brokenRules.push(i.brokenRule),e.validators.push(n)}),this.fireEvent("validated",[{validators:e.validators,brokenRules:e.brokenRules,isValid:e.isValid}]),e},reset:function(){r(this.validators,function(e,t){t.reset()})}}).include(s),k={groups:[],getGroupConfig:function(e){var t=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 C(e),this.groups.push(t)),t},removeGroup:function(e){var t=this.getGroupConfig(e),n=a(t,this.groups);return n>-1&&this.groups.splice(n,1),t},_setDefaultMessage:function(e,t,n){d.isDefined(e.message)||(t.defaultFormattedMessage&&d.isDefined(n)?e.message=t.defaultFormattedMessage(n):e.message=t.defaultMessage())},validate:function(e,t,n){var i={name:n,value:e,brokenRule:null,isValid:!0,validationRules:t},o=this;return r(t||[],function(t,a){var r,s=y[a.type];if(!s)throw l.Error("E0100");return d.isDefined(a.isValid)&&a.value===e&&!a.reevaluate?!!a.isValid||(i.isValid=!1,i.brokenRule=a,!1):(a.value=e,r=s.validate(e,a),a.isValid=r,r||(i.isValid=!1,o._setDefaultMessage(a,s,n),i.brokenRule=a),!!a.isValid&&void 0)}),i},registerValidatorInGroup:function(e,t){var n=k.addGroup(e);a(t,n.validators)<0&&n.validators.push(t)},_shouldRemoveGroup:function(e,t){var n=void 0===e,i=e&&"dxValidationGroup"===e.NAME;return!n&&!i&&!t.length},removeRegisteredValidator:function(e,t){var n=k.getGroupConfig(e),i=n&&n.validators,o=a(t,i);o>-1&&(i.splice(o,1),this._shouldRemoveGroup(e,i)&&this.removeGroup(e))},validateGroup:function(e){var t=k.getGroupConfig(e);if(!t)throw l.Error("E0110");return t.validate()},resetGroup:function(e){var t=k.getGroupConfig(e);if(!t)throw l.Error("E0110");return t.reset()}};k.initGroups(),e.exports=k},function(e,t,n){var i=n(9),o=n(108),a=n(84),r=Math.abs,s="dxhold",l=750,c=5,d=o.inherit({start:function(e){this._startEventData=i.eventData(e),this._startTimer(e)},_startTimer:function(e){var t="timeout"in this?this.timeout:l;this._holdTimer=setTimeout(function(){this._requestAccept(e),this._fireEvent(s,e,{target:e.target}),this._forgetAccept()}.bind(this),t)},move:function(e){this._touchWasMoved(e)&&this._cancel(e)},_touchWasMoved:function(e){var t=i.eventDelta(this._startEventData,i.eventData(e));return r(t.x)>c||r(t.y)>c},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}});a({emitter:d,bubble:!0,events:[s]}),e.exports={name:s}},function(e,t,n){var i=n(10),o=i.abstract,a=n(53),r=n(3).each,s=n(36),l=n(41),c=n(22).compileGetter,d=n(80),u=d.queryByOptions,h=n(7).Deferred,p={},f=i.inherit({ctor:function(e){var t=this;e=e||{},r(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","onRemoved","onRemoving","onModified","onModifying"],function(n,i){i in e&&t.on(i.slice(2).toLowerCase(),e[i])}),this._key=e.key,this._errorHandler=e.errorHandler,this._useDefaultSearch=!0},_customLoadOptions:function(){return null},key:function(){return this._key},keyOf:function(e){return this._keyGetter||(this._keyGetter=c(this.key())),this._keyGetter(e)},_requireKey:function(){if(!this.key())throw s.errors.Error("E4005")},load:function(e){var t=this;return e=e||{},this.fireEvent("loading",[e]),this._withLock(this._loadImpl(e)).done(function(n){t.fireEvent("loaded",[n,e])})},_loadImpl:function(e){return u(this.createQuery(e),e).enumerate()},_withLock:function(e){var t=new h;return e.done(function(){var e=this,n=arguments;l.processRequestResultLock.promise().done(function(){t.resolveWith(e,n)})}).fail(function(){t.rejectWith(this,arguments)}),t},createQuery:o,totalCount:function(e){return this._totalCountImpl(e)},_totalCountImpl:function(e){return u(this.createQuery(e),e,!0).count()},byKey:function(e,t){return this._addFailHandlers(this._withLock(this._byKeyImpl(e,t)))},_byKeyImpl:o,insert:function(e){var t=this;return t.fireEvent("modifying"),t.fireEvent("inserting",[e]),t._addFailHandlers(t._insertImpl(e).done(function(e,n){t.fireEvent("inserted",[e,n]),t.fireEvent("modified")}))},_insertImpl:o,update:function(e,t){var n=this;return n.fireEvent("modifying"),n.fireEvent("updating",[e,t]),n._addFailHandlers(n._updateImpl(e,t).done(function(e,t){n.fireEvent("updated",[e,t]),n.fireEvent("modified")}))},_updateImpl:o,remove:function(e){var t=this;return t.fireEvent("modifying"),t.fireEvent("removing",[e]),t._addFailHandlers(t._removeImpl(e).done(function(e){t.fireEvent("removed",[e]),t.fireEvent("modified")}))},_removeImpl:o,_addFailHandlers:function(e){return e.fail(this._errorHandler).fail(s._errorHandler)}}).include(a);f.create=function(e,t){if(!(e in p))throw s.errors.Error("E4020",e);return new p[e](t)},f.inherit=function(e){return function(t,n){var i=e.apply(this,[t]);return n&&(p[n]=i),i}}(f.inherit),e.exports=f},function(e,t,n){var i=n(0).extend;t.registry={},t.register=function(e,n,o){var a=t.registry,r={};r[e]=a[e]?a[e]:{},r[e][n]=o,a=i(a,r)}},function(e,t,n){var i=n(2),o=n(5),a=n(40),r=n(29),s=n(4),l=n(1),c=n(0).extend,d=n(13).getPublicElement,u=n(6),h=u.getNavigator(),p=n(12),f=n(14),g=n(8),_=n(58),m=n(57),v=n(9),x=n(475),w=n(272),b=n(184),y=n(7).when,C="dxScrollable",k="dxScrollableStrategy",S="dx-scrollable",I="dx-scrollable-disabled",T="dx-scrollable-container",D="dx-scrollable-wrapper",E="dx-scrollable-content",A="dx-scrollable-customizable-scrollbars",B="vertical",O="horizontal",R="both",M=function(){return[{device:function(){return!a.nativeScrolling},options:{useNative:!1}},{device:function(e){return!f.isSimulator()&&"generic"===f.real().platform&&"generic"===e.platform},options:{bounceEnabled:!1,scrollByThumb:!0,scrollByContent:a.touch,showScrollbar:"onHover"}}]},P=_.inherit({_getDefaultOptions:function(){return c(this.callBase(),{disabled:!1,onScroll:null,direction:B,showScrollbar:"onScroll",useNative:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,onUpdated:null,onStart:null,onEnd:null,onBounce:null,onStop:null,useSimulatedScrollbar:!1,useKeyboard:!0,inertiaEnabled:!0,pushBackValue:0,updateManually:!1})},_defaultOptionsRules:function(){return this.callBase().concat(M(),[{device:function(){return a.nativeScrolling&&"android"===f.real().platform&&!r.mozilla},options:{useSimulatedScrollbar:!0}},{device:function(){return"ios"===f.real().platform},options:{pushBackValue:1}}])},_initOptions:function(e){this.callBase(e),"useSimulatedScrollbar"in e||this._setUseSimulatedScrollbar()},_setUseSimulatedScrollbar:function(){this.initialOption("useSimulatedScrollbar")||this.option("useSimulatedScrollbar",!this.option("useNative"))},_init:function(){this.callBase(),this._initScrollableMarkup(),this._locked=!1},_visibilityChanged:function(e){e?(this.update(),this._updateRtlPosition(),this._savedScrollOffset&&this.scrollTo(this._savedScrollOffset),delete this._savedScrollOffset):this._savedScrollOffset=this.scrollOffset()},_initScrollableMarkup:function(){var e=this.$element().addClass(S),t=this._$container=i("<div>").addClass(T),n=this._$wrapper=i("<div>").addClass(D),a=this._$content=i("<div>").addClass(E);p.hasDocumentProperty("onbeforeactivate")&&r.msie&&r.version<12&&o.on(e,v.addNamespace("beforeactivate",C),function(e){i(e.target).is(m.focusable)||e.preventDefault()}),a.append(e.contents()).appendTo(t),t.appendTo(n),n.appendTo(e)},_dimensionChanged:function(){this.update()},_attachNativeScrollbarsCustomizationCss:function(){"desktop"!==f.real().deviceType||h.platform.indexOf("Mac")>-1&&r.webkit||this.$element().addClass(A)},_initMarkup:function(){this.callBase(),this._renderDirection()},_render:function(){this._renderStrategy(),this._attachNativeScrollbarsCustomizationCss(),this._attachEventHandlers(),this._renderDisabledState(),this._createActions(),this.update(),this.callBase(),this._updateRtlPosition()},_updateRtlPosition:function(){var e=this,t=e.option("rtlEnabled");this._updateBounds(),t&&this.option("direction")!==B&&s.deferUpdate(function(){var t=e.scrollWidth()-e.clientWidth();s.deferRender(function(){e.scrollTo({left:t})})})},_updateBounds:function(){this._strategy.updateBounds()},_attachEventHandlers:function(){var e=this._strategy,t={getDirection:e.getDirection.bind(e),validate:this._validate.bind(this),isNative:this.option("useNative"),scrollTarget:this._$container};o.off(this._$wrapper,"."+C),o.on(this._$wrapper,v.addNamespace(x.init,C),t,this._initHandler.bind(this)),o.on(this._$wrapper,v.addNamespace(x.start,C),e.handleStart.bind(e)),o.on(this._$wrapper,v.addNamespace(x.move,C),e.handleMove.bind(e)),o.on(this._$wrapper,v.addNamespace(x.end,C),e.handleEnd.bind(e)),o.on(this._$wrapper,v.addNamespace(x.cancel,C),e.handleCancel.bind(e)),o.on(this._$wrapper,v.addNamespace(x.stop,C),e.handleStop.bind(e)),o.off(this._$container,"."+C),o.on(this._$container,v.addNamespace("scroll",C),e.handleScroll.bind(e))},_validate:function(e){return!this._isLocked()&&(this._updateIfNeed(),this._strategy.validate(e))},_initHandler:function(){var e=this._strategy;e.handleInit.apply(e,arguments)},_renderDisabledState:function(){this.$element().toggleClass(I,this.option("disabled")),this.option("disabled")?this._lock():this._unlock()},_renderDirection:function(){this.$element().removeClass("dx-scrollable-"+O).removeClass("dx-scrollable-"+B).removeClass("dx-scrollable-"+R).addClass("dx-scrollable-"+this.option("direction"))},_renderStrategy:function(){this._createStrategy(),this._strategy.render(),this.$element().data(k,this._strategy)},_createStrategy:function(){this._strategy=this.option("useNative")?new b(this):new w.SimulatedStrategy(this)},_createActions:function(){this._strategy&&this._strategy.createActions()},_clean:function(){this._strategy&&this._strategy.dispose()},_optionChanged:function(e){switch(e.name){case"onStart":case"onEnd":case"onStop":case"onUpdated":case"onScroll":case"onBounce":this._createActions();break;case"direction":this._resetInactiveDirection(),this._invalidate();break;case"useNative":this._setUseSimulatedScrollbar(),this._invalidate();break;case"inertiaEnabled":case"scrollByContent":case"scrollByThumb":case"bounceEnabled":case"useKeyboard":case"showScrollbar":case"useSimulatedScrollbar":case"pushBackValue":this._invalidate();break;case"disabled":this._renderDisabledState(),this._strategy&&this._strategy.disabledChanged();break;case"updateManually":break;case"width":this.callBase(e),this._updateRtlPosition();break;default:this.callBase(e)}},_resetInactiveDirection:function(){var e=this._getInactiveProp();if(e&&u.hasWindow()){var t=this.scrollOffset();t[e]=0,this.scrollTo(t)}},_getInactiveProp:function(){var e=this.option("direction");return e===B?"left":e===O?"top":void 0},_location:function(){return this._strategy.location()},_normalizeLocation:function(e){if(l.isPlainObject(e)){var t=s.ensureDefined(e.left,e.x),n=s.ensureDefined(e.top,e.y);return{left:l.isDefined(t)?-t:void 0,top:l.isDefined(n)?-n:void 0}}var i=this.option("direction");return{left:i!==B?-e:void 0,top:i!==O?-e:void 0}},_isLocked:function(){return this._locked},_lock:function(){this._locked=!0},_unlock:function(){this.option("disabled")||(this._locked=!1)},_isDirection:function(e){var t=this.option("direction");return e===B?t!==O:e===O?t!==B:t===e},_updateAllowedDirection:function(){var e=this._strategy._allowedDirections();this._isDirection(R)&&e.vertical&&e.horizontal?this._allowedDirectionValue=R:this._isDirection(O)&&e.horizontal?this._allowedDirectionValue=O:this._isDirection(B)&&e.vertical?this._allowedDirectionValue=B:this._allowedDirectionValue=null},_allowedDirection:function(){return this._allowedDirectionValue},_container:function(){return this._$container},$content:function(){return this._$content},content:function(){return d(this._$content)},scrollOffset:function(){var e=this._location();return{top:-e.top,left:-e.left}},scrollTop:function(){return this.scrollOffset().top},scrollLeft:function(){return this.scrollOffset().left},clientHeight:function(){return this._$container.height()},scrollHeight:function(){return this.$content().outerHeight()-2*this._strategy.verticalOffset()},clientWidth:function(){return this._$container.width()},scrollWidth:function(){return this.$content().outerWidth()},update:function(){if(this._strategy)return y(this._strategy.update()).done(function(){this._updateAllowedDirection()}.bind(this))},scrollBy:function(e){e=this._normalizeLocation(e),(e.top||e.left)&&(this._updateIfNeed(),this._strategy.scrollBy(e))},scrollTo:function(e){e=this._normalizeLocation(e),this._updateIfNeed();var t=this._location();this.option("useNative")||(e=this._strategy._applyScaleRatio(e),t=this._strategy._applyScaleRatio(t));var n=this._normalizeLocation({left:t.left-s.ensureDefined(e.left,t.left),top:t.top-s.ensureDefined(e.top,t.top)});(n.top||n.left)&&this._strategy.scrollBy(n)},scrollToElement:function(e,t){t=t||{};var n=i(e),o=this.$content().find(e).length,a=n.parents("."+S).length-n.parents("."+E).length===0;if(o&&a){var r={top:0,left:0},s=this.option("direction");s!==B&&(r.left=this._scrollToElementPosition(n,O,t)),s!==O&&(r.top=this._scrollToElementPosition(n,B,t)),this.scrollTo(r)}},_scrollToElementPosition:function(e,t,n){var i=t===B,o=(i?n.top:n.left)||0,a=(i?n.bottom:n.right)||0,r=i?this._strategy.verticalOffset():0,s=this._elementPositionRelativeToContent(e,i?"top":"left"),l=s-r,c=e[i?"outerHeight":"outerWidth"](),d=i?this.scrollTop():this.scrollLeft(),u=i?this.clientHeight():this.clientWidth(),h=d-l+o,p=d-l-c+u-a;return h<=0&&p>=0?d:d-(Math.abs(h)>Math.abs(p)?p:h)},_elementPositionRelativeToContent:function(e,t){for(var n=0;this._hasScrollContent(e);)n+=e.position()[t],e=e.offsetParent();return n},_hasScrollContent:function(e){var t=this.$content();return e.closest(t).length&&!e.is(t)},_updateIfNeed:function(){this.option("updateManually")||this.update()}});g(C,P),e.exports=P,e.exports.deviceDependentOptions=M},function(e,t,n){function i(e){var t=function t(n,i,o,a,r,s){function l(e,r,s){m(t(n,i,o,a,r,s)).done(e.resolve)}a=a||[],n=n||[];var c,d,u,h;for(r=r||0,d=r;d<n.length;d++){if(e&&d>r&&d%1e4===0&&new Date-w>=300)return w=new Date,u=new v,setTimeout(l(u,d,!1),0),u;if(c=n[d],!s){if(a.unshift(c),o&&i(a,d)===!1)return;if(c.children&&(h=t(c.children,i,o,a),e&&h))return u=new v,h.done(l(u,d,!0)),u}if(s=!1,!o&&i(a,d)===!1)return;a.shift(),n[d]!==c&&d--}};return t}function o(e){return c.map(["year","quarter","month"],function(t,n){return d({},e,{groupInterval:t,groupIndex:n})})}function a(e,t,n,i){var s=[];return c.each(t||[],function(t,c){if(!t||0!==t.indexOf("__")){for(var d,u=1,h=n.length?n+"."+t:t,p=i[h],f=l.compileGetter(h);!r.isDefined(c)&&e[u];)c=f(e[u]),u++;!p&&r.isDefined(c)&&(p=r.type(c)),d=[{dataField:h,dataType:p,groupName:"date"===p?t:void 0,groupInterval:void 0,displayFolder:n}],"date"===p?d=d.concat(o(d[0])):"object"===p&&(d=a(e,c,h,i)),s.push.apply(s,d)}}),s}var r=n(1),s=n(72),l=n(22),c=n(3),d=n(0).extend,u=n(1).isDefined,h=n(33),p=n(88),f=n(52),g=n(79),_=n(7),m=_.when,v=_.Deferred,x=t.setFieldProperty=function(e,t,n,i){var o=e._initProperties=e._initProperties||{},a=i?n:e[t];o.hasOwnProperty(t)&&!i||(o[t]=a),e[t]=n};t.sendRequest=function(e){return s.sendRequest(e)};var w=new Date;t.foreachTree=i(!1),t.foreachTreeAsync=i(!0),t.findField=function(e,t){var n,i;if(e&&r.isDefined(t))for(n=0;n<e.length;n++)if(i=e[n],i.name===t||i.caption===t||i.dataField===t||i.index===t)return n;return-1},t.formatValue=function(e,t){var n={value:e,valueText:p.format(e,t.format,t.precision)||""};return t.customizeText?t.customizeText.call(t,n):n.valueText},t.getCompareFunction=function(e){return function(t,n){var i=0,o=e(t),a=e(n),r=u(o),s=u(a);return r&&s&&(o>a?i=1:o<a&&(i=-1)),r&&!s&&(i=1),!r&&s&&(i=-1),i}},t.createPath=function(e){var t,n=[];for(t=e.length-1;t>=0;t--)n.push(e[t].key||e[t].value);return n},t.foreachDataLevel=function e(t,n,i,o){var a,r;for(i=i||0,o=o||"children",t.length&&n(t,i),r=0;r<t.length;r++)a=t[r],a[o]&&a[o].length&&e(a[o],n,i+1,o)},t.mergeArraysByMaxValue=function(e,t){var n,i=[];for(n=0;n<e.length;n++)i.push(Math.max(e[n]||0,t[n]||0));return i},t.getExpandedLevel=function(e,t){var n=e[t],i=0,o=("columns"===t?e.columnExpandedPaths:e.rowExpandedPaths)||[];for(e.headerName===t?i=e.path.length:c.each(o,function(e,t){i=Math.max(i,t.length)});n[i+1]&&n[i].expanded;)i++;return i},t.discoverObjectFields=function(e,n){var i=t.getFieldsDataType(n);return a(e,e[0],"",i)},t.getFieldsDataType=function(e){var t={};return c.each(e,function(e,n){t[n.dataField]=t[n.dataField]||n.dataType}),t};var b={month:function(e){return h.getMonthNames()[e-1]},quarter:function(e){return h.format(new Date(2e3,3*e-1),"quarter")},dayOfWeek:function(e){return h.getDayNames()[e]}};t.setDefaultFieldValueFormatting=function(e){if("date"===e.dataType)e.format||x(e,"format",b[e.groupInterval]);else if("number"===e.dataType){var t=r.isNumeric(e.groupInterval)&&e.groupInterval>0&&e.groupInterval;t&&!e.customizeText&&x(e,"customizeText",function(n){var i=n.value+t,o=p.format(i,e.format,e.precision);return n.valueText&&o?n.valueText+" - "+o:""})}},t.getFiltersByPath=function(e,t){var n=[];t=t||[];for(var i=0;i<t.length;i++)n.push(d({},e[i],{groupIndex:null,groupName:null,filterType:"include",filterValues:[t[i]]}));return n},t.storeDrillDownMixin={createDrillDownDataSource:function(e,t){function n(e){return function(t){var n;return i?n=i[e](t):(n=new v,m(o).done(function(o){i=new g(o),i[e](t).done(n.resolve).fail(n.reject)}).fail(n.reject)),n}}var i,o=this.getDrillDownItems(e,t),a=new f.DataSource({load:n("load"),totalCount:n("totalCount"),key:this.key()});return a}},t.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){var i=n(66),o=n(13),a=i.inherit({ctor:function(e){this._render=e},_renderCore:function(e){return o.normalizeTemplateElement(this._render(e))}});e.exports=a},function(e,t,n){var i,o=n(10),a=n(4),r=n(13).contains,s=n(14),l=n(9),c=n(25),d=n(108),u=n(84),h="dxactive",p="dxinactive",f=30,g=400,_=o.inherit({ctor:function(e,t){this._timeout=e,this._fire=t},start:function(){var e=this;this._schedule(function(){e.force()})},_schedule:function(e){this.stop(),this._timer=setTimeout(e,this._timeout)},stop:function(){clearTimeout(this._timer)},force:function(){this._fired||(this.stop(),this._fire(),this._fired=!0)},fired:function(){return this._fired}}),m=d.inherit({ctor:function(){this.callBase.apply(this,arguments),this._active=new _(0,a.noop),this._inactive=new _(0,a.noop)},configure:function(e,t){switch(t){case h:e.activeTimeout=e.timeout;break;case p:e.inactiveTimeout=e.timeout}this.callBase(e)},start:function(e){if(i){var t=r(this.getElement().get(0),i.getElement().get(0)),n=!i._active.fired();if(t&&n)return void this._cancel();i._inactive.force()}i=this,this._initEvents(e),this._active.start()},_initEvents:function(e){var t=this,n=this._getEmitterTarget(e),o=l.isMouseEvent(e),r=s.isSimulator(),c=r||!o,d=a.ensureDefined(this.activeTimeout,f),u=a.ensureDefined(this.inactiveTimeout,g);this._active=new _(c?d:0,function(){t._fireEvent(h,e,{target:n})}),this._inactive=new _(c?u: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():a.noop;e.done(t)},u({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=[],o=function(e){return e<10?"0".concat(e):String(e)},a=function(){return e.getHours()+e.getMinutes()+e.getSeconds()+e.getMilliseconds()<1};return i.push(e.getFullYear()),i.push("-"),i.push(o(e.getMonth()+1)),i.push("-"),i.push(o(e.getDate())),t&&a()||(i.push("T"),i.push(o(e.getHours())),i.push(":"),i.push(o(e.getMinutes())),i.push(":"),i.push(o(e.getSeconds())),e.getMilliseconds()&&(i.push("."),i.push(e.getMilliseconds())),n||i.push("Z")),i.join("")}function o(e){var t=new Date(60*new Date(0).getTimezoneOffset()*1e3),n=e.replace("Z","").split("T"),i=/(\d{4})-(\d{2})-(\d{2})/.exec(n[0]),o=/(\d{2}):(\d{2}):(\d{2})\.?(\d{0,7})?/.exec(n[1]);return t.setFullYear(Number(i[1])),t.setMonth(Number(i[2])-1),t.setDate(Number(i[3])),Array.isArray(o)&&o.length&&(t.setHours(Number(o[1])),t.setMinutes(Number(o[2])),t.setSeconds(Number(o[3])),t.setMilliseconds(Number(String(o[4]).substr(0,3))||0)),t}function a(e){return/^(?:[a-z]+:)?\/\//i.test(e)}function r(e,t){function n(e){var t=e.indexOf("?");return t>-1?e.substr(0,t):e}var i,o=n(e).split("/"),a=t.split("/");for(o.pop();a.length;)i=a.shift(),".."===i?o.pop():o.push(i);return o.join("/")}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=n(10),c=n(0).extend,d=n(1),u=n(3),h=n(3).each,p=n(72),f=n(50),g=d.isDefined,_=d.isPlainObject,m=n(4).grep,v=n(7).Deferred,x=n(36).errors,w=n(41),b=/^(\{{0,1}([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}\}{0,1})$/,y=/^\/Date\((-?\d+)((\+|-)?(\d+)?)\)\/$/,C=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[-+]{1}\d{2}(:?)(\d{2})?)?$/,k="application/json;odata=verbose",S=function(e){return"string"===d.type(e)?e.split():e},I=function(e){return/\./.test(e)},T=function(e){var t=[];for(var n in e)t.push(n+"="+e[n]);return t.join("&")},D=function(e,t,n){function o(t){return JSON.stringify(t,function(t,n){if(!(this[t]instanceof Date))return n;switch(n=i(this[t]),e){case 2:return n.substr(0,n.length-1);case 3:case 4:return n;default:throw x.Error("E4002")}})}t=c({async:!0,method:"get",url:"",params:{},payload:null,headers:{},timeout:3e4},t),n=n||{};var a=n.beforeSend;a&&a(t);var r=(t.method||"get").toLowerCase(),s="get"===r,l=s&&n.jsonp,d=c({},t.params),u=s?d:o(t.payload),h=!s&&T(d),p=t.url,f=!s&&k;return h&&(p+=(p.indexOf("?")>-1?"&":"?")+h),l&&(u.$format="json"),{url:p,data:u,dataType:l?"jsonp":"json",jsonp:l&&"$callback",method:r,async:t.async,timeout:t.timeout,headers:t.headers,contentType:f,accepts:{json:[k,"text/plain"].join()},xhrFields:{withCredentials:n.withCredentials}}},E=function e(t,n,i){var o=new v,s=D(t,n,i);return p.sendRequest(s).always(function(n,l){var c,d={deserializeDates:i.deserializeDates,fieldTypes:i.fieldTypes},u=O(n,l,d),h=u.error,p=u.data,f=u.nextUrl;h?h.message!==w.XHR_ERROR_UNLOAD&&o.reject(h):i.countOnly?isFinite(u.count)?o.resolve(u.count):o.reject(new x.Error("E4018")):f&&!i.isPaged?(a(f)||(f=r(s.url,f)),e(t,{url:f},i).fail(o.reject).done(function(e){o.resolve(p.concat(e))})):(isFinite(u.count)&&(c={totalCount:u.count}),o.resolve(p,c))}),o.promise()},A=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},B=function(e,t){if("nocontent"===t)return null;var n=200,i="Unknown error",o=e;if("success"!==t){n=e.status,i=w.errorMessageFromXhr(e,t);try{o=JSON.parse(e.responseText)}catch(e){}}var a=o&&(o.then&&o||o.error||o["odata.error"]||o["@odata.error"]);return a?(i=A(a)||i,200===n&&(n=500),a.code&&(n=Number(a.code)),c(Error(i),{httpStatus:n,errorDetails:a})):200!==n?c(Error(i),{httpStatus:n}):void 0},O=function(e,t,n){var i,o=B(e,t);return o?{error:o}:_(e)?(i="d"in e&&(Array.isArray(e.d)||d.isObject(e.d))?R(e,t):M(e,t),V(i,n),i):{data:e}},R=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")}},M=function(e){var t=e;return g(t.value)&&(t=t.value),{data:t,nextUrl:e["@odata.nextLink"],count:parseInt(e["@odata.count"],10)}},P=l.inherit({ctor:function(e){this._value=e},valueOf:function(){return this._value}}),V=function e(t,n){n=n||{},h(t,function(i,a){if(null!==a&&"object"===("undefined"==typeof a?"undefined":s(a)))"results"in a&&(t[i]=a.results),e(t[i],n);else if("string"==typeof a){var r=n.fieldTypes,l=!r||"String"!==r[i];if(l&&b.test(a)&&(t[i]=new f(a)),n.deserializeDates!==!1)if(a.match(y)){var c=new Date(Number(RegExp.$1)+60*RegExp.$2*1e3);t[i]=new Date(c.valueOf()+60*c.getTimezoneOffset()*1e3)}else C.test(a)&&(t[i]=new Date(o(t[i]).valueOf()))}})},F=function(e){return"datetime'"+i(e,!0,!0)+"'"},L=function(e){return"'"+e.replace(/'/g,"''")+"'"},H=function(e){return e instanceof P?e.valueOf():e.replace(/\./g,"/")},z=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(",")+"]":N(t)},N=function(e){return e instanceof Date?F(e):e instanceof f?"guid'"+e+"'":e instanceof P?e.valueOf():"string"==typeof e?L(e):String(e)},$=function(e,t){switch(t){case 2:case 3:return N(e);case 4:return z(e);default:throw x.Error("E4002")}},W=function(e,t){if(_(e)){var n=[];return h(e,function(e,i){n.push(H(e)+"="+$(i,t))}),n.join()}return $(e,t)},G={String:function(e){return e+""},Int32:function(e){return Math.floor(e)},Int64:function(e){return e instanceof P?e:new P(e+"L")},Guid:function(e){return e instanceof f?e:new f(e)},Boolean:function(e){return!!e},Single:function(e){return e instanceof P?e:new P(e+"f")},Decimal:function(e){return e instanceof P?e:new P(e+"m")}},q=function(e,t){if(null===t)return null;var n=G[e];if(!n)throw x.Error("E4014",e);return n(t)},j=function(e,t){if(t)return e<4?H(t.join()):m(t,I,!0).join()},K=function(e,t,n){var i=function(){var e={};return t&&u.each(S(t),function(){e[H(this)]=1}),n&&u.each(S(n),function(){var t=this.split(".");t.length<2||(t.pop(),e[H(t.join("."))]=1)}),u.map(e,function(e,t){return t}).join()},o=function(){var e=function(e){var t=function e(t){var n="",i=[],o=[];return u.each(t,function(t,n){Array.isArray(n)&&[].push.apply(i,n),_(n)&&o.push(t+e(n))}),(i.length||o.length)&&(n+="(",i.length&&(n+="$select="+u.map(i,H).join()),o.length&&(i.length&&(n+=";"),n+="$expand="+u.map(o,H).join()),n+=")"),n},n=[];return u.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 o=i(n,t.shift(),t);o!==!1&&e(t,o,i)};u.each(e,function(e,o){i(o.split("."),t,n)})},o={};if(t||n)return t&&i(S(t),o,function(e,t,n){return e[t]=e[t]||{},!!n.length&&e[t]}),n&&i(m(S(n),I),o,function(e,t,n){return n.length?e[t]=e[t]||{}:(e[t]=e[t]||[],e[t].push(t),!1)}),e(o)};return e<4?i():o()};t.sendRequest=E,t.serializePropName=H,t.serializeValue=$,t.serializeKey=W,t.keyConverters=G,t.convertPrimitiveValue=q,t.generateExpand=K,t.generateSelect=j,t.EdmLiteral=P},function(e,t,n){e.exports=n(456)},function(e,t,n){var i=n(7),o=n(6),a=i.Deferred,r=i.when,s=o.hasWindow()?o.getWindow().Promise:Promise;s||(s=function(e){var t=new a;return e(t.resolve.bind(this),t.reject.bind(this)),t.promise()},s.resolve=function(e){return(new a).resolve(e).promise()},s.reject=function(e){return(new a).reject(e).promise()},s.all=function(e){return r.apply(this,e).then(function(){return[].slice.call(arguments)})}),e.exports=s},function(e,t,n){var i=n(35),o=n(5),a=n(171),r=n(1).isDefined,s=n(129),l="dxComponents",c="dxPrivateComponent",d=new a,u=0,h=t.name=function(e,t){if(r(t))return void d.set(e,t);if(!d.has(e)){var n=c+u++;return d.set(e,n),n}return d.get(e)};t.attachInstanceToElement=function(e,t,n){var a=i.data(e.get(0)),r=h(t.constructor);a[r]=t,n&&o.one(e,s,function(){n.call(t)}),a[l]||(a[l]=[]),a[l].push(r)},t.getInstanceByElement=function(e,t){var n=h(t);return i.data(e.get(0),n)}},function(e,t,n){var i=n(66);e.exports=i.inherit({ctor:function(e){this.name=e}})},function(e,t,n){var i=n(0).extend,o=n(75),a=n(39),r=n(120),s="http://js.devexpress.com/error/"+r.split(".").slice(0,2).join("_")+"/";e.exports=function(e,t){var n={ERROR_MESSAGES:i(t,e),Error:function(){return d([].slice.call(arguments))},log:function(e){var t="log";/^E\d+$/.test(e)?t="error":/^W\d+$/.test(e)&&(t="warn"),o.logger[t]("log"===t?e:r([].slice.call(arguments)))}},r=function(e){var t=e[0];return e=e.slice(1),c(t,l(t,e))},l=function(e,t){return t=[n.ERROR_MESSAGES[e]].concat(t),a.format.apply(this,t).replace(/\.*\s*?$/,"")},c=function(e,t){return a.format.apply(this,["{0} - {1}. See:\n{2}",e,t,s+e])},d=function(e){var t,n,o;return t=e[0],e=e.slice(1),n=l(t,e),o=c(t,n),i(new Error(o),{__id:t,__details:n})};return n}},function(e,t,n){var i=n(30),o=function(e){var t=e||i().rtlEnabled;return t?"right":"left"};t.getDefaultAlignment=o},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(65),r=n(1).isDate,s=n(3).each,l=n(33),c=function(){
|
|
16
|
+
e.minute=!1):!n.getMinutes()&&n.getHours()?n.getHours()-t.getHours()===1&&(e.minute=!0,e.hour=!1):!n.getHours()&&n.getDate()>1?n.getDate()-t.getDate()===1&&(e.hour=!0,e.day=!1):1===n.getDate()&&n.getMonth()?n.getMonth()-t.getMonth()===1&&(e.day=!0,e.month=!1):!n.getMonth()&&n.getFullYear()&&n.getFullYear()-t.getFullYear()===1&&(e.month=!0,e.year=!1)};return n=i.isString(n)?n.toLowerCase():n,r=o.getDatesDifferences(e,t),e!==t&&d(r,e>t?t:e,e>t?e:t),s=o.getDateUnitInterval(r),c(r,s,!0),s=o.getDateUnitInterval(n||"second"),c(r,s,!1),r[l[s]||s]=!0,a=this.getDateFormatByDifferences(r)}})},function(e,t,n){var i=n(10),o=n(0).extend,a=n(11).inArray,r=n(3).each,s=n(53),l=n(17),c=n(4),d=n(1),u=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!!d.isDefined(e)&&(e!==!1&&(e=String(e),!t.trim&&d.isDefined(t.trim)||(e=e.trim()),""!==e))}}),g=p.inherit({NAME:"numeric",_validate:function(e,t){return!y.required.validate(e,{})||(t.useCultureSettings&&d.isString(e)?!isNaN(u.parse(e)):d.isNumeric(e))}}),_=p.inherit({NAME:"range",_validate:function(e,t){if(!y.required.validate(e,{}))return!0;var n=y.numeric.validate(e,t),i=d.isDefined(e),o=n?parseFloat(e):i&&e.valueOf(),a=t.min,r=t.max;if(!n&&!d.isDate(e)&&!i)return!1;if(d.isDefined(a))return d.isDefined(r)?o>=a&&o<=r:o>=a;if(d.isDefined(r))return o<=r;throw l.Error("E0101")}}),m=p.inherit({NAME:"stringLength",_validate:function(e,t){return e=d.isDefined(e)?String(e):"",!t.trim&&d.isDefined(t.trim)||(e=e.trim()),y.range.validate(e.length,o({},t))}}),v=p.inherit({NAME:"custom",validate:function(e,t){var n=t.validator,i=n&&d.isFunction(n.option)&&n.option("dataGetter"),o=d.isFunction(i)&&i(),a={value:e,validator:n,rule:t};return o&&(a.data=o),t.validationCallback(a)}}),x=p.inherit({NAME:"compare",_validate:function(e,t){if(!t.comparisonTarget)throw l.Error("E0102");o(t,{reevaluate:!0});var n=t.comparisonTarget(),i=t.comparisonType||"==";switch(i){case"==":return e==n;case"!=":return e!=n;case"===":return e===n;case"!==":return e!==n;case">":return e>n;case">=":return e>=n;case"<":return e<n;case"<=":return e<=n}}}),w=p.inherit({NAME:"pattern",_validate:function(e,t){if(!y.required.validate(e,{}))return!0;var n=t.pattern;return d.isString(n)&&(n=new RegExp(n)),n.test(e)}}),b=p.inherit({NAME:"email",_validate:function(e,t){return!y.required.validate(e,{})||y.pattern.validate(e,o({},t,{pattern:/^[\d\w._-]+@[\d\w._-]+\.[\w]+$/i}))}}),y={required:new f,numeric:new g,range:new _,stringLength:new m,custom:new v,compare:new x,pattern:new w,email:new b},C=i.inherit({ctor:function(e){this.group=e,this.validators=[]},validate:function(){var e={isValid:!0,brokenRules:[],validators:[]};return r(this.validators,function(t,n){var i=n.validate();e.isValid=e.isValid&&i.isValid,i.brokenRule&&e.brokenRules.push(i.brokenRule),e.validators.push(n)}),this.fireEvent("validated",[{validators:e.validators,brokenRules:e.brokenRules,isValid:e.isValid}]),e},reset:function(){r(this.validators,function(e,t){t.reset()})}}).include(s),k={groups:[],getGroupConfig:function(e){var t=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 C(e),this.groups.push(t)),t},removeGroup:function(e){var t=this.getGroupConfig(e),n=a(t,this.groups);return n>-1&&this.groups.splice(n,1),t},_setDefaultMessage:function(e,t,n){d.isDefined(e.message)||(t.defaultFormattedMessage&&d.isDefined(n)?e.message=t.defaultFormattedMessage(n):e.message=t.defaultMessage())},validate:function(e,t,n){var i={name:n,value:e,brokenRule:null,isValid:!0,validationRules:t},o=this;return r(t||[],function(t,a){var r,s=y[a.type];if(!s)throw l.Error("E0100");return d.isDefined(a.isValid)&&a.value===e&&!a.reevaluate?!!a.isValid||(i.isValid=!1,i.brokenRule=a,!1):(a.value=e,r=s.validate(e,a),a.isValid=r,r||(i.isValid=!1,o._setDefaultMessage(a,s,n),i.brokenRule=a),!!a.isValid&&void 0)}),i},registerValidatorInGroup:function(e,t){var n=k.addGroup(e);a(t,n.validators)<0&&n.validators.push(t)},_shouldRemoveGroup:function(e,t){var n=void 0===e,i=e&&"dxValidationGroup"===e.NAME;return!n&&!i&&!t.length},removeRegisteredValidator:function(e,t){var n=k.getGroupConfig(e),i=n&&n.validators,o=a(t,i);o>-1&&(i.splice(o,1),this._shouldRemoveGroup(e,i)&&this.removeGroup(e))},validateGroup:function(e){var t=k.getGroupConfig(e);if(!t)throw l.Error("E0110");return t.validate()},resetGroup:function(e){var t=k.getGroupConfig(e);if(!t)throw l.Error("E0110");return t.reset()}};k.initGroups(),e.exports=k},function(e,t,n){var i=n(9),o=n(108),a=n(84),r=Math.abs,s="dxhold",l=750,c=5,d=o.inherit({start:function(e){this._startEventData=i.eventData(e),this._startTimer(e)},_startTimer:function(e){var t="timeout"in this?this.timeout:l;this._holdTimer=setTimeout(function(){this._requestAccept(e),this._fireEvent(s,e,{target:e.target}),this._forgetAccept()}.bind(this),t)},move:function(e){this._touchWasMoved(e)&&this._cancel(e)},_touchWasMoved:function(e){var t=i.eventDelta(this._startEventData,i.eventData(e));return r(t.x)>c||r(t.y)>c},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}});a({emitter:d,bubble:!0,events:[s]}),e.exports={name:s}},function(e,t,n){var i=n(10),o=i.abstract,a=n(53),r=n(3).each,s=n(36),l=n(41),c=n(22).compileGetter,d=n(80),u=d.queryByOptions,h=n(7).Deferred,p={},f=i.inherit({ctor:function(e){var t=this;e=e||{},r(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","onRemoved","onRemoving","onModified","onModifying"],function(n,i){i in e&&t.on(i.slice(2).toLowerCase(),e[i])}),this._key=e.key,this._errorHandler=e.errorHandler,this._useDefaultSearch=!0},_customLoadOptions:function(){return null},key:function(){return this._key},keyOf:function(e){return this._keyGetter||(this._keyGetter=c(this.key())),this._keyGetter(e)},_requireKey:function(){if(!this.key())throw s.errors.Error("E4005")},load:function(e){var t=this;return e=e||{},this.fireEvent("loading",[e]),this._withLock(this._loadImpl(e)).done(function(n){t.fireEvent("loaded",[n,e])})},_loadImpl:function(e){return u(this.createQuery(e),e).enumerate()},_withLock:function(e){var t=new h;return e.done(function(){var e=this,n=arguments;l.processRequestResultLock.promise().done(function(){t.resolveWith(e,n)})}).fail(function(){t.rejectWith(this,arguments)}),t},createQuery:o,totalCount:function(e){return this._totalCountImpl(e)},_totalCountImpl:function(e){return u(this.createQuery(e),e,!0).count()},byKey:function(e,t){return this._addFailHandlers(this._withLock(this._byKeyImpl(e,t)))},_byKeyImpl:o,insert:function(e){var t=this;return t.fireEvent("modifying"),t.fireEvent("inserting",[e]),t._addFailHandlers(t._insertImpl(e).done(function(e,n){t.fireEvent("inserted",[e,n]),t.fireEvent("modified")}))},_insertImpl:o,update:function(e,t){var n=this;return n.fireEvent("modifying"),n.fireEvent("updating",[e,t]),n._addFailHandlers(n._updateImpl(e,t).done(function(e,t){n.fireEvent("updated",[e,t]),n.fireEvent("modified")}))},_updateImpl:o,remove:function(e){var t=this;return t.fireEvent("modifying"),t.fireEvent("removing",[e]),t._addFailHandlers(t._removeImpl(e).done(function(e){t.fireEvent("removed",[e]),t.fireEvent("modified")}))},_removeImpl:o,_addFailHandlers:function(e){return e.fail(this._errorHandler).fail(s._errorHandler)}}).include(a);f.create=function(e,t){if(!(e in p))throw s.errors.Error("E4020",e);return new p[e](t)},f.inherit=function(e){return function(t,n){var i=e.apply(this,[t]);return n&&(p[n]=i),i}}(f.inherit),e.exports=f},function(e,t,n){var i=n(0).extend;t.registry={},t.register=function(e,n,o){var a=t.registry,r={};r[e]=a[e]?a[e]:{},r[e][n]=o,a=i(a,r)}},function(e,t,n){var i=n(2),o=n(5),a=n(40),r=n(29),s=n(4),l=n(1),c=n(0).extend,d=n(13).getPublicElement,u=n(6),h=u.getNavigator(),p=n(12),f=n(14),g=n(8),_=n(58),m=n(57),v=n(9),x=n(475),w=n(272),b=n(184),y=n(7).when,C="dxScrollable",k="dxScrollableStrategy",S="dx-scrollable",I="dx-scrollable-disabled",T="dx-scrollable-container",D="dx-scrollable-wrapper",E="dx-scrollable-content",A="dx-scrollable-customizable-scrollbars",B="vertical",O="horizontal",R="both",M=function(){return[{device:function(){return!a.nativeScrolling},options:{useNative:!1}},{device:function(e){return!f.isSimulator()&&"generic"===f.real().platform&&"generic"===e.platform},options:{bounceEnabled:!1,scrollByThumb:!0,scrollByContent:a.touch,showScrollbar:"onHover"}}]},P=_.inherit({_getDefaultOptions:function(){return c(this.callBase(),{disabled:!1,onScroll:null,direction:B,showScrollbar:"onScroll",useNative:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,onUpdated:null,onStart:null,onEnd:null,onBounce:null,onStop:null,useSimulatedScrollbar:!1,useKeyboard:!0,inertiaEnabled:!0,pushBackValue:0,updateManually:!1})},_defaultOptionsRules:function(){return this.callBase().concat(M(),[{device:function(){return a.nativeScrolling&&"android"===f.real().platform&&!r.mozilla},options:{useSimulatedScrollbar:!0}},{device:function(){return"ios"===f.real().platform},options:{pushBackValue:1}}])},_initOptions:function(e){this.callBase(e),"useSimulatedScrollbar"in e||this._setUseSimulatedScrollbar()},_setUseSimulatedScrollbar:function(){this.initialOption("useSimulatedScrollbar")||this.option("useSimulatedScrollbar",!this.option("useNative"))},_init:function(){this.callBase(),this._initScrollableMarkup(),this._locked=!1},_visibilityChanged:function(e){e?(this.update(),this._updateRtlPosition(),this._savedScrollOffset&&this.scrollTo(this._savedScrollOffset),delete this._savedScrollOffset):this._savedScrollOffset=this.scrollOffset()},_initScrollableMarkup:function(){var e=this.$element().addClass(S),t=this._$container=i("<div>").addClass(T),n=this._$wrapper=i("<div>").addClass(D),a=this._$content=i("<div>").addClass(E);p.hasDocumentProperty("onbeforeactivate")&&r.msie&&r.version<12&&o.on(e,v.addNamespace("beforeactivate",C),function(e){i(e.target).is(m.focusable)||e.preventDefault()}),a.append(e.contents()).appendTo(t),t.appendTo(n),n.appendTo(e)},_dimensionChanged:function(){this.update()},_attachNativeScrollbarsCustomizationCss:function(){"desktop"!==f.real().deviceType||h.platform.indexOf("Mac")>-1&&r.webkit||this.$element().addClass(A)},_initMarkup:function(){this.callBase(),this._renderDirection()},_render:function(){this._renderStrategy(),this._attachNativeScrollbarsCustomizationCss(),this._attachEventHandlers(),this._renderDisabledState(),this._createActions(),this.update(),this.callBase(),this._updateRtlPosition()},_updateRtlPosition:function(){var e=this,t=e.option("rtlEnabled");this._updateBounds(),t&&this.option("direction")!==B&&s.deferUpdate(function(){var t=e.scrollWidth()-e.clientWidth();s.deferRender(function(){e.scrollTo({left:t})})})},_updateBounds:function(){this._strategy.updateBounds()},_attachEventHandlers:function(){var e=this._strategy,t={getDirection:e.getDirection.bind(e),validate:this._validate.bind(this),isNative:this.option("useNative"),scrollTarget:this._$container};o.off(this._$wrapper,"."+C),o.on(this._$wrapper,v.addNamespace(x.init,C),t,this._initHandler.bind(this)),o.on(this._$wrapper,v.addNamespace(x.start,C),e.handleStart.bind(e)),o.on(this._$wrapper,v.addNamespace(x.move,C),e.handleMove.bind(e)),o.on(this._$wrapper,v.addNamespace(x.end,C),e.handleEnd.bind(e)),o.on(this._$wrapper,v.addNamespace(x.cancel,C),e.handleCancel.bind(e)),o.on(this._$wrapper,v.addNamespace(x.stop,C),e.handleStop.bind(e)),o.off(this._$container,"."+C),o.on(this._$container,v.addNamespace("scroll",C),e.handleScroll.bind(e))},_validate:function(e){return!this._isLocked()&&(this._updateIfNeed(),this._strategy.validate(e))},_initHandler:function(){var e=this._strategy;e.handleInit.apply(e,arguments)},_renderDisabledState:function(){this.$element().toggleClass(I,this.option("disabled")),this.option("disabled")?this._lock():this._unlock()},_renderDirection:function(){this.$element().removeClass("dx-scrollable-"+O).removeClass("dx-scrollable-"+B).removeClass("dx-scrollable-"+R).addClass("dx-scrollable-"+this.option("direction"))},_renderStrategy:function(){this._createStrategy(),this._strategy.render(),this.$element().data(k,this._strategy)},_createStrategy:function(){this._strategy=this.option("useNative")?new b(this):new w.SimulatedStrategy(this)},_createActions:function(){this._strategy&&this._strategy.createActions()},_clean:function(){this._strategy&&this._strategy.dispose()},_optionChanged:function(e){switch(e.name){case"onStart":case"onEnd":case"onStop":case"onUpdated":case"onScroll":case"onBounce":this._createActions();break;case"direction":this._resetInactiveDirection(),this._invalidate();break;case"useNative":this._setUseSimulatedScrollbar(),this._invalidate();break;case"inertiaEnabled":case"scrollByContent":case"scrollByThumb":case"bounceEnabled":case"useKeyboard":case"showScrollbar":case"useSimulatedScrollbar":case"pushBackValue":this._invalidate();break;case"disabled":this._renderDisabledState(),this._strategy&&this._strategy.disabledChanged();break;case"updateManually":break;case"width":this.callBase(e),this._updateRtlPosition();break;default:this.callBase(e)}},_resetInactiveDirection:function(){var e=this._getInactiveProp();if(e&&u.hasWindow()){var t=this.scrollOffset();t[e]=0,this.scrollTo(t)}},_getInactiveProp:function(){var e=this.option("direction");return e===B?"left":e===O?"top":void 0},_location:function(){return this._strategy.location()},_normalizeLocation:function(e){if(l.isPlainObject(e)){var t=s.ensureDefined(e.left,e.x),n=s.ensureDefined(e.top,e.y);return{left:l.isDefined(t)?-t:void 0,top:l.isDefined(n)?-n:void 0}}var i=this.option("direction");return{left:i!==B?-e:void 0,top:i!==O?-e:void 0}},_isLocked:function(){return this._locked},_lock:function(){this._locked=!0},_unlock:function(){this.option("disabled")||(this._locked=!1)},_isDirection:function(e){var t=this.option("direction");return e===B?t!==O:e===O?t!==B:t===e},_updateAllowedDirection:function(){var e=this._strategy._allowedDirections();this._isDirection(R)&&e.vertical&&e.horizontal?this._allowedDirectionValue=R:this._isDirection(O)&&e.horizontal?this._allowedDirectionValue=O:this._isDirection(B)&&e.vertical?this._allowedDirectionValue=B:this._allowedDirectionValue=null},_allowedDirection:function(){return this._allowedDirectionValue},_container:function(){return this._$container},$content:function(){return this._$content},content:function(){return d(this._$content)},scrollOffset:function(){var e=this._location();return{top:-e.top,left:-e.left}},scrollTop:function(){return this.scrollOffset().top},scrollLeft:function(){return this.scrollOffset().left},clientHeight:function(){return this._$container.height()},scrollHeight:function(){return this.$content().outerHeight()-2*this._strategy.verticalOffset()},clientWidth:function(){return this._$container.width()},scrollWidth:function(){return this.$content().outerWidth()},update:function(){if(this._strategy)return y(this._strategy.update()).done(function(){this._updateAllowedDirection()}.bind(this))},scrollBy:function(e){e=this._normalizeLocation(e),(e.top||e.left)&&(this._updateIfNeed(),this._strategy.scrollBy(e))},scrollTo:function(e){e=this._normalizeLocation(e),this._updateIfNeed();var t=this._location();this.option("useNative")||(e=this._strategy._applyScaleRatio(e),t=this._strategy._applyScaleRatio(t));var n=this._normalizeLocation({left:t.left-s.ensureDefined(e.left,t.left),top:t.top-s.ensureDefined(e.top,t.top)});(n.top||n.left)&&this._strategy.scrollBy(n)},scrollToElement:function(e,t){t=t||{};var n=i(e),o=this.$content().find(e).length,a=n.parents("."+S).length-n.parents("."+E).length===0;if(o&&a){var r={top:0,left:0},s=this.option("direction");s!==B&&(r.left=this._scrollToElementPosition(n,O,t)),s!==O&&(r.top=this._scrollToElementPosition(n,B,t)),this.scrollTo(r)}},_scrollToElementPosition:function(e,t,n){var i=t===B,o=(i?n.top:n.left)||0,a=(i?n.bottom:n.right)||0,r=i?this._strategy.verticalOffset():0,s=this._elementPositionRelativeToContent(e,i?"top":"left"),l=s-r,c=e[i?"outerHeight":"outerWidth"](),d=i?this.scrollTop():this.scrollLeft(),u=i?this.clientHeight():this.clientWidth(),h=d-l+o,p=d-l-c+u-a;return h<=0&&p>=0?d:d-(Math.abs(h)>Math.abs(p)?p:h)},_elementPositionRelativeToContent:function(e,t){for(var n=0;this._hasScrollContent(e);)n+=e.position()[t],e=e.offsetParent();return n},_hasScrollContent:function(e){var t=this.$content();return e.closest(t).length&&!e.is(t)},_updateIfNeed:function(){this.option("updateManually")||this.update()}});g(C,P),e.exports=P,e.exports.deviceDependentOptions=M},function(e,t,n){function i(e){var t=function t(n,i,o,a,r,s){function l(e,r,s){m(t(n,i,o,a,r,s)).done(e.resolve)}a=a||[],n=n||[];var c,d,u,h;for(r=r||0,d=r;d<n.length;d++){if(e&&d>r&&d%1e4===0&&new Date-w>=300)return w=new Date,u=new v,setTimeout(l(u,d,!1),0),u;if(c=n[d],!s){if(a.unshift(c),o&&i(a,d)===!1)return;if(c.children&&(h=t(c.children,i,o,a),e&&h))return u=new v,h.done(l(u,d,!0)),u}if(s=!1,!o&&i(a,d)===!1)return;a.shift(),n[d]!==c&&d--}};return t}function o(e){return c.map(["year","quarter","month"],function(t,n){return d({},e,{groupInterval:t,groupIndex:n})})}function a(e,t,n,i){var s=[];return c.each(t||[],function(t,c){if(!t||0!==t.indexOf("__")){for(var d,u=1,h=n.length?n+"."+t:t,p=i[h],f=l.compileGetter(h);!r.isDefined(c)&&e[u];)c=f(e[u]),u++;!p&&r.isDefined(c)&&(p=r.type(c)),d=[{dataField:h,dataType:p,groupName:"date"===p?t:void 0,groupInterval:void 0,displayFolder:n}],"date"===p?d=d.concat(o(d[0])):"object"===p&&(d=a(e,c,h,i)),s.push.apply(s,d)}}),s}var r=n(1),s=n(72),l=n(22),c=n(3),d=n(0).extend,u=n(1).isDefined,h=n(33),p=n(88),f=n(52),g=n(79),_=n(7),m=_.when,v=_.Deferred,x=t.setFieldProperty=function(e,t,n,i){var o=e._initProperties=e._initProperties||{},a=i?n:e[t];o.hasOwnProperty(t)&&!i||(o[t]=a),e[t]=n};t.sendRequest=function(e){return s.sendRequest(e)};var w=new Date;t.foreachTree=i(!1),t.foreachTreeAsync=i(!0),t.findField=function(e,t){var n,i;if(e&&r.isDefined(t))for(n=0;n<e.length;n++)if(i=e[n],i.name===t||i.caption===t||i.dataField===t||i.index===t)return n;return-1},t.formatValue=function(e,t){var n={value:e,valueText:p.format(e,t.format,t.precision)||""};return t.customizeText?t.customizeText.call(t,n):n.valueText},t.getCompareFunction=function(e){return function(t,n){var i=0,o=e(t),a=e(n),r=u(o),s=u(a);return r&&s&&(o>a?i=1:o<a&&(i=-1)),r&&!s&&(i=1),!r&&s&&(i=-1),i}},t.createPath=function(e){var t,n=[];for(t=e.length-1;t>=0;t--)n.push(e[t].key||e[t].value);return n},t.foreachDataLevel=function e(t,n,i,o){var a,r;for(i=i||0,o=o||"children",t.length&&n(t,i),r=0;r<t.length;r++)a=t[r],a[o]&&a[o].length&&e(a[o],n,i+1,o)},t.mergeArraysByMaxValue=function(e,t){var n,i=[];for(n=0;n<e.length;n++)i.push(Math.max(e[n]||0,t[n]||0));return i},t.getExpandedLevel=function(e,t){var n=e[t],i=0,o=("columns"===t?e.columnExpandedPaths:e.rowExpandedPaths)||[];for(e.headerName===t?i=e.path.length:c.each(o,function(e,t){i=Math.max(i,t.length)});n[i+1]&&n[i].expanded;)i++;return i},t.discoverObjectFields=function(e,n){var i=t.getFieldsDataType(n);return a(e,e[0],"",i)},t.getFieldsDataType=function(e){var t={};return c.each(e,function(e,n){t[n.dataField]=t[n.dataField]||n.dataType}),t};var b={month:function(e){return h.getMonthNames()[e-1]},quarter:function(e){return h.format(new Date(2e3,3*e-1),"quarter")},dayOfWeek:function(e){return h.getDayNames()[e]}};t.setDefaultFieldValueFormatting=function(e){if("date"===e.dataType)e.format||x(e,"format",b[e.groupInterval]);else if("number"===e.dataType){var t=r.isNumeric(e.groupInterval)&&e.groupInterval>0&&e.groupInterval;t&&!e.customizeText&&x(e,"customizeText",function(n){var i=n.value+t,o=p.format(i,e.format,e.precision);return n.valueText&&o?n.valueText+" - "+o:""})}},t.getFiltersByPath=function(e,t){var n=[];t=t||[];for(var i=0;i<t.length;i++)n.push(d({},e[i],{groupIndex:null,groupName:null,filterType:"include",filterValues:[t[i]]}));return n},t.storeDrillDownMixin={createDrillDownDataSource:function(e,t){function n(e){return function(t){var n;return i?n=i[e](t):(n=new v,m(o).done(function(o){i=new g(o),i[e](t).done(n.resolve).fail(n.reject)}).fail(n.reject)),n}}var i,o=this.getDrillDownItems(e,t),a=new f.DataSource({load:n("load"),totalCount:n("totalCount"),key:this.key()});return a}},t.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){var i=n(66),o=n(13),a=i.inherit({ctor:function(e){this._render=e},_renderCore:function(e){return o.normalizeTemplateElement(this._render(e))}});e.exports=a},function(e,t,n){var i,o=n(10),a=n(4),r=n(13).contains,s=n(14),l=n(9),c=n(25),d=n(108),u=n(84),h="dxactive",p="dxinactive",f=30,g=400,_=o.inherit({ctor:function(e,t){this._timeout=e,this._fire=t},start:function(){var e=this;this._schedule(function(){e.force()})},_schedule:function(e){this.stop(),this._timer=setTimeout(e,this._timeout)},stop:function(){clearTimeout(this._timer)},force:function(){this._fired||(this.stop(),this._fire(),this._fired=!0)},fired:function(){return this._fired}}),m=d.inherit({ctor:function(){this.callBase.apply(this,arguments),this._active=new _(0,a.noop),this._inactive=new _(0,a.noop)},configure:function(e,t){switch(t){case h:e.activeTimeout=e.timeout;break;case p:e.inactiveTimeout=e.timeout}this.callBase(e)},start:function(e){if(i){var t=r(this.getElement().get(0),i.getElement().get(0)),n=!i._active.fired();if(t&&n)return void this._cancel();i._inactive.force()}i=this,this._initEvents(e),this._active.start()},_initEvents:function(e){var t=this,n=this._getEmitterTarget(e),o=l.isMouseEvent(e),r=s.isSimulator(),c=r||!o,d=a.ensureDefined(this.activeTimeout,f),u=a.ensureDefined(this.inactiveTimeout,g);this._active=new _(c?d:0,function(){t._fireEvent(h,e,{target:n})}),this._inactive=new _(c?u: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():a.noop;e.done(t)},u({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=[],o=function(e){return e<10?"0".concat(e):String(e)},a=function(){return e.getHours()+e.getMinutes()+e.getSeconds()+e.getMilliseconds()<1};return i.push(e.getFullYear()),i.push("-"),i.push(o(e.getMonth()+1)),i.push("-"),i.push(o(e.getDate())),t&&a()||(i.push("T"),i.push(o(e.getHours())),i.push(":"),i.push(o(e.getMinutes())),i.push(":"),i.push(o(e.getSeconds())),e.getMilliseconds()&&(i.push("."),i.push(e.getMilliseconds())),n||i.push("Z")),i.join("")}function o(e){var t=new Date(60*new Date(0).getTimezoneOffset()*1e3),n=e.replace("Z","").split("T"),i=/(\d{4})-(\d{2})-(\d{2})/.exec(n[0]),o=/(\d{2}):(\d{2}):(\d{2})\.?(\d{0,7})?/.exec(n[1]);return t.setFullYear(Number(i[1])),t.setMonth(Number(i[2])-1),t.setDate(Number(i[3])),Array.isArray(o)&&o.length&&(t.setHours(Number(o[1])),t.setMinutes(Number(o[2])),t.setSeconds(Number(o[3])),t.setMilliseconds(Number(String(o[4]).substr(0,3))||0)),t}function a(e){return/^(?:[a-z]+:)?\/\//i.test(e)}function r(e,t){function n(e){var t=e.indexOf("?");return t>-1?e.substr(0,t):e}var i,o=n(e).split("/"),a=t.split("/");for(o.pop();a.length;)i=a.shift(),".."===i?o.pop():o.push(i);return o.join("/")}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=n(10),c=n(0).extend,d=n(1),u=n(3),h=n(3).each,p=n(72),f=n(50),g=d.isDefined,_=d.isPlainObject,m=n(4).grep,v=n(7).Deferred,x=n(36).errors,w=n(41),b=/^(\{{0,1}([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}\}{0,1})$/,y=/^\/Date\((-?\d+)((\+|-)?(\d+)?)\)\/$/,C=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[-+]{1}\d{2}(:?)(\d{2})?)?$/,k="application/json;odata=verbose",S=function(e){return"string"===d.type(e)?e.split():e},I=function(e){return/\./.test(e)},T=function(e){var t=[];for(var n in e)t.push(n+"="+e[n]);return t.join("&")},D=function(e,t,n){function o(t){return JSON.stringify(t,function(t,n){if(!(this[t]instanceof Date))return n;switch(n=i(this[t]),e){case 2:return n.substr(0,n.length-1);case 3:case 4:return n;default:throw x.Error("E4002")}})}t=c({async:!0,method:"get",url:"",params:{},payload:null,headers:{},timeout:3e4},t),n=n||{};var a=n.beforeSend;a&&a(t);var r=(t.method||"get").toLowerCase(),s="get"===r,l=s&&n.jsonp,d=c({},t.params),u=s?d:o(t.payload),h=!s&&T(d),p=t.url,f=!s&&k;return h&&(p+=(p.indexOf("?")>-1?"&":"?")+h),l&&(u.$format="json"),{url:p,data:u,dataType:l?"jsonp":"json",jsonp:l&&"$callback",method:r,async:t.async,timeout:t.timeout,headers:t.headers,contentType:f,accepts:{json:[k,"text/plain"].join()},xhrFields:{withCredentials:n.withCredentials}}},E=function e(t,n,i){var o=new v,s=D(t,n,i);return p.sendRequest(s).always(function(n,l){var c,d={deserializeDates:i.deserializeDates,fieldTypes:i.fieldTypes},u=O(n,l,d),h=u.error,p=u.data,f=u.nextUrl;h?h.message!==w.XHR_ERROR_UNLOAD&&o.reject(h):i.countOnly?isFinite(u.count)?o.resolve(u.count):o.reject(new x.Error("E4018")):f&&!i.isPaged?(a(f)||(f=r(s.url,f)),e(t,{url:f},i).fail(o.reject).done(function(e){o.resolve(p.concat(e))})):(isFinite(u.count)&&(c={totalCount:u.count}),o.resolve(p,c))}),o.promise()},A=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},B=function(e,t){if("nocontent"===t)return null;var n=200,i="Unknown error",o=e;if("success"!==t){n=e.status,i=w.errorMessageFromXhr(e,t);try{o=JSON.parse(e.responseText)}catch(e){}}var a=o&&(o.then&&o||o.error||o["odata.error"]||o["@odata.error"]);return a?(i=A(a)||i,200===n&&(n=500),a.code&&(n=Number(a.code)),c(Error(i),{httpStatus:n,errorDetails:a})):200!==n?c(Error(i),{httpStatus:n}):void 0},O=function(e,t,n){var i,o=B(e,t);return o?{error:o}:_(e)?(i="d"in e&&(Array.isArray(e.d)||d.isObject(e.d))?R(e,t):M(e,t),V(i,n),i):{data:e}},R=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")}},M=function(e){var t=e;return g(t.value)&&(t=t.value),{data:t,nextUrl:e["@odata.nextLink"],count:parseInt(e["@odata.count"],10)}},P=l.inherit({ctor:function(e){this._value=e},valueOf:function(){return this._value}}),V=function e(t,n){n=n||{},h(t,function(i,a){if(null!==a&&"object"===("undefined"==typeof a?"undefined":s(a)))"results"in a&&(t[i]=a.results),e(t[i],n);else if("string"==typeof a){var r=n.fieldTypes,l=!r||"String"!==r[i];if(l&&b.test(a)&&(t[i]=new f(a)),n.deserializeDates!==!1)if(a.match(y)){var c=new Date(Number(RegExp.$1)+60*RegExp.$2*1e3);t[i]=new Date(c.valueOf()+60*c.getTimezoneOffset()*1e3)}else C.test(a)&&(t[i]=new Date(o(t[i]).valueOf()))}})},F=function(e){return"datetime'"+i(e,!0,!0)+"'"},L=function(e){return"'"+e.replace(/'/g,"''")+"'"},H=function(e){return e instanceof P?e.valueOf():e.replace(/\./g,"/")},z=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(",")+"]":N(t)},N=function(e){return e instanceof Date?F(e):e instanceof f?"guid'"+e+"'":e instanceof P?e.valueOf():"string"==typeof e?L(e):String(e)},$=function(e,t){switch(t){case 2:case 3:return N(e);case 4:return z(e);default:throw x.Error("E4002")}},W=function(e,t){if(_(e)){var n=[];return h(e,function(e,i){n.push(H(e)+"="+$(i,t))}),n.join()}return $(e,t)},G={String:function(e){return e+""},Int32:function(e){return Math.floor(e)},Int64:function(e){return e instanceof P?e:new P(e+"L")},Guid:function(e){return e instanceof f?e:new f(e)},Boolean:function(e){return!!e},Single:function(e){return e instanceof P?e:new P(e+"f")},Decimal:function(e){return e instanceof P?e:new P(e+"m")}},q=function(e,t){if(null===t)return null;var n=G[e];if(!n)throw x.Error("E4014",e);return n(t)},j=function(e,t){if(t)return e<4?H(t.join()):m(t,I,!0).join()},K=function(e,t,n){var i=function(){var e={};return t&&u.each(S(t),function(){e[H(this)]=1}),n&&u.each(S(n),function(){var t=this.split(".");t.length<2||(t.pop(),e[H(t.join("."))]=1)}),u.map(e,function(e,t){return t}).join()},o=function(){var e=function(e){var t=function e(t){var n="",i=[],o=[];return u.each(t,function(t,n){Array.isArray(n)&&[].push.apply(i,n),_(n)&&o.push(t+e(n))}),(i.length||o.length)&&(n+="(",i.length&&(n+="$select="+u.map(i,H).join()),o.length&&(i.length&&(n+=";"),n+="$expand="+u.map(o,H).join()),n+=")"),n},n=[];return u.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 o=i(n,t.shift(),t);o!==!1&&e(t,o,i)};u.each(e,function(e,o){i(o.split("."),t,n)})},o={};if(t||n)return t&&i(S(t),o,function(e,t,n){return e[t]=e[t]||{},!!n.length&&e[t]}),n&&i(m(S(n),I),o,function(e,t,n){return n.length?e[t]=e[t]||{}:(e[t]=e[t]||[],e[t].push(t),!1)}),e(o)};return e<4?i():o()};t.sendRequest=E,t.serializePropName=H,t.serializeValue=$,t.serializeKey=W,t.keyConverters=G,t.convertPrimitiveValue=q,t.generateExpand=K,t.generateSelect=j,t.EdmLiteral=P},function(e,t,n){e.exports=n(456)},function(e,t,n){var i=n(7),o=n(6),a=i.Deferred,r=i.when,s=o.hasWindow()?o.getWindow().Promise:Promise;s||(s=function(e){var t=new a;return e(t.resolve.bind(this),t.reject.bind(this)),t.promise()},s.resolve=function(e){return(new a).resolve(e).promise()},s.reject=function(e){return(new a).reject(e).promise()},s.all=function(e){return r.apply(this,e).then(function(){return[].slice.call(arguments)})}),e.exports=s},function(e,t,n){var i=n(35),o=n(5),a=n(171),r=n(1).isDefined,s=n(129),l="dxComponents",c="dxPrivateComponent",d=new a,u=0,h=t.name=function(e,t){if(r(t))return void d.set(e,t);if(!d.has(e)){var n=c+u++;return d.set(e,n),n}return d.get(e)};t.attachInstanceToElement=function(e,t,n){var a=i.data(e.get(0)),r=h(t.constructor);a[r]=t,n&&o.one(e,s,function(){n.call(t)}),a[l]||(a[l]=[]),a[l].push(r)},t.getInstanceByElement=function(e,t){var n=h(t);return i.data(e.get(0),n)}},function(e,t,n){var i=n(66);e.exports=i.inherit({ctor:function(e){this.name=e}})},function(e,t,n){var i=n(0).extend,o=n(75),a=n(39),r=n(120),s="http://js.devexpress.com/error/"+r.split(".").slice(0,2).join("_")+"/";e.exports=function(e,t){var n={ERROR_MESSAGES:i(t,e),Error:function(){return d([].slice.call(arguments))},log:function(e){var t="log";/^E\d+$/.test(e)?t="error":/^W\d+$/.test(e)&&(t="warn"),o.logger[t]("log"===t?e:r([].slice.call(arguments)))}},r=function(e){var t=e[0];return e=e.slice(1),c(t,l(t,e))},l=function(e,t){return t=[n.ERROR_MESSAGES[e]].concat(t),a.format.apply(this,t).replace(/\.*\s*?$/,"")},c=function(e,t){return a.format.apply(this,["{0} - {1}. See:\n{2}",e,t,s+e])},d=function(e){var t,n,o;return t=e[0],e=e.slice(1),n=l(t,e),o=c(t,n),i(new Error(o),{__id:t,__details:n})};return n}},function(e,t,n){var i=n(30),o=function(e){var t=e||i().rtlEnabled;return t?"right":"left"};t.getDefaultAlignment=o},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(65),r=n(1).isDate,s=n(3).each,l=n(33),c=function(){
|
|
17
17
|
return["year","day","month","day"]},d=6e4,u=60*d*24,h=365*u,p=function(e){var t="undefined"==typeof e?"undefined":i(e);return"string"===t?"format":"object"===t&&void 0!==e.type?e.type:null},f={SUPPORTED_FORMATS:["date","time","datetime"],DATE_COMPONENT_TEXT_FORMATTER:function(e,t){var n=o("<div>").addClass("dx-dateview-formatter-container");return o("<span>").text(e).addClass("dx-dateview-value-formatter").appendTo(n),o("<span>").text(t).addClass("dx-dateview-name-formatter").appendTo(n),n},ONE_MINUTE:d,ONE_DAY:u,ONE_YEAR:h,MIN_DATEVIEW_DEFAULT_DATE:new Date(1900,0,1),MAX_DATEVIEW_DEFAULT_DATE:function(){var e=new Date;return new Date(e.getFullYear()+50,e.getMonth(),e.getDate(),23,59,59)}(),FORMATS_INFO:{date:{getStandardPattern:function(){return"yyyy-MM-dd"},components:c()},time:{getStandardPattern:function(){return"HH:mm"},components:["hours","minutes","seconds","milliseconds"]},datetime:{getStandardPattern:function(){var e;return function(){var t="yyyy-MM-ddTHH:mmZ",n="2000-01-01T01:01Z",i=o("<input>").attr("type","datetime");i.val(n),i.val()&&(e=t)}(),e||(e="yyyy-MM-ddTHH:mm:ssZ"),f.FORMATS_INFO.datetime.getStandardPattern=function(){return e},e},components:c().concat(["hours","minutes","seconds","milliseconds"])},"datetime-local":{getStandardPattern:function(){return"yyyy-MM-ddTHH:mm:ss"},components:c().concat(["hours","minutes","seconds"])}},FORMATS_MAP:{date:"shortdate",time:"shorttime",datetime:"shortdateshorttime"},SUBMIT_FORMATS_MAP:{date:"date",time:"time",datetime:"datetime-local"},toStandardDateFormat:function(e,t){var n=f.FORMATS_INFO[t].getStandardPattern();return a.serializeDate(e,n)},fromStandardDateFormat:function(e){var t=a.dateParser(e);return r(t)?t:void 0},getMaxMonthDay:function(e,t){return new Date(e,t+1,0).getDate()},mergeDates:function(e,t,n){if(!t)return t||null;if(!e||isNaN(e.getTime())){var i=new Date(null);e=new Date(i.getFullYear(),i.getMonth(),i.getDate())}var o=new Date(e.valueOf()),a=f.FORMATS_INFO[n];return s(a.components,function(){var e=f.DATE_COMPONENTS_INFO[this];o[e.setter](t[e.getter]())}),o},getLongestCaptionIndex:function(e){var t,n=0,i=0;for(t=0;t<e.length;++t)e[t].length>i&&(n=t,i=e[t].length);return n},formatUsesMonthName:function(e){return l.formatUsesMonthName(e)},formatUsesDayName:function(e){return l.formatUsesDayName(e)},getLongestDate:function(e,t,n){var i=p(e),o=9;i&&!f.formatUsesMonthName(i)||(o=f.getLongestCaptionIndex(t));var a=new Date(1888,o,21,23,59,59,999);if(!i||f.formatUsesDayName(i)){var r=a.getDate()-a.getDay()+f.getLongestCaptionIndex(n);a.setDate(r)}return a},normalizeTime:function(e){e.setSeconds(0),e.setMilliseconds(0)}};f.DATE_COMPONENTS_INFO={year:{getter:"getFullYear",setter:"setFullYear",formatter:function(e,t,n){var i=new Date(n.getTime());return i.setFullYear(e),l.format(i,"yyyy")},startValue:void 0,endValue:void 0},day:{getter:"getDate",setter:"setDate",formatter:function(e,t,n){var i=new Date(n.getTime());return i.setDate(e),t?f.DATE_COMPONENT_TEXT_FORMATTER(e,l.getDayNames()[i.getDay()]):l.format(i,"d")},startValue:1,endValue:void 0},month:{getter:"getMonth",setter:"setMonth",formatter:function(e,t){var n=l.getMonthNames()[e];return t?f.DATE_COMPONENT_TEXT_FORMATTER(e+1,n):n},startValue:0,endValue:11},hours:{getter:"getHours",setter:"setHours",formatter:function(e){return l.format(new Date(0,0,0,e),"hour")},startValue:0,endValue:23},minutes:{getter:"getMinutes",setter:"setMinutes",formatter:function(e){return l.format(new Date(0,0,0,0,e),"minute")},startValue:0,endValue:59},seconds:{getter:"getSeconds",setter:"setSeconds",formatter:function(e){return l.format(new Date(0,0,0,0,0,e),"second")},startValue:0,endValue:59},milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",formatter:function(e){return l.format(new Date(0,0,0,0,0,0,e),"millisecond")},startValue:0,endValue:999}},e.exports=f},function(e,t,n){var i=n(6),o=i.hasWindow()?i.getWindow():{},a=n(68),r=1e3/60,s=function(e){return setTimeout(e,r)},l=function(e){clearTimeout(e)},c=a(function(){var e=o.requestAnimationFrame||o.webkitRequestAnimationFrame||o.mozRequestAnimationFrame||o.oRequestAnimationFrame||o.msRequestAnimationFrame,t=o.cancelAnimationFrame||o.webkitCancelAnimationFrame||o.mozCancelAnimationFrame||o.oCancelAnimationFrame||o.msCancelAnimationFrame;if(e&&t&&(s=e,l=t),e&&!t){var n={};s=function(t){var i=e.call(o,function(){try{if(i in n)return;t.apply(this,arguments)}finally{delete n[i]}});return i},l=function(e){n[e]=!0}}});t.requestAnimationFrame=function(){return c(),s.apply(o,arguments)},t.cancelAnimationFrame=function(){c(),l.apply(o,arguments)}},function(e,t,n){var i=n(2),o=function(e){return!(!e||"string"!=typeof e)&&(/data:.*base64|\.|\//.test(e)?"image":/^[\w-_]+$/.test(e)?"dxIcon":"fontIcon")},a=function(e){var t=o(e),n="dx-icon";switch(t){case"image":return i("<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=o,t.getImageContainer=a},function(e,t,n){var i=n(172);e.exports=new i},function(e,t,n){var i=n(2),o=n(4).noop,a=n(10),r=n(19),s=n(0).extend,l=n(9),c=a.inherit({ctor:function(e){this._$element=i(e),this._cancelCallback=r(),this._acceptCallback=r()},getElement:function(){return this._$element},validate:function(e){return"dxmousewheel"!==e.type},validatePointers:function(e){return 1===l.hasTouches(e)},allowInterruptionByMouseWheel:function(){return!0},configure:function(e){s(this,e)},addCancelCallback:function(e){this._cancelCallback.add(e)},removeCancelCallback:function(){this._cancelCallback.empty()},_cancel:function(e){this._cancelCallback.fire(this,e)},addAcceptCallback:function(e){this._acceptCallback.add(e)},removeAcceptCallback:function(){this._acceptCallback.empty()},_accept:function(e){this._acceptCallback.fire(this,e)},_requestAccept:function(e){this._acceptRequestEvent=e},_forgetAccept:function(){this._accept(this._acceptRequestEvent),this._acceptRequestEvent=null},start:o,move:o,end:o,cancel:o,reset:function(){this._acceptRequestEvent&&this._accept(this._acceptRequestEvent)},_fireEvent:function(e,t,n){var i=s({type:e,originalEvent:t,target:this._getEmitterTarget(t),delegateTarget:this.getElement().get(0)},n);return t=l.fireEvent(i),t.cancel&&this._cancel(t),t},_getEmitterTarget:function(e){return(this.delegateSelector?i(e.target).closest(this.delegateSelector):this.getElement()).get(0)},dispose:o});e.exports=c},function(e,t,n){var i=n(56);if(i){var o=n(17),a=n(59).compare;if(a(i.version,[2,3])<0)throw o.Error("E0013");n(326),n(329),n(330),n(331),n(332),n(333),n(334)}},function(e,t,n){var i=n(56),o=n(3).each,a=n(228),r=function(e,t,n){for(var i=[],o=0,a=e.length;o<a;o++)n(e[o],t)||i.push(e[o]);return i.push.apply(i,t),i},s=function(e,t){var n=!1;return o(t,function(t,i){var o=e.option("id")===i.option("id")&&i.option("id"),a=e.option("behavior")===i.option("behavior")&&e.option("behavior");if(n=o||a,a&&null===i.option("onExecute")&&i.option("onExecute",e.option("onExecute")),n)return e.$element().remove(),!1}),n},l=function(e,t){return r(e,t,s)},c=function(e,t,n,i){var o=t?t[n]:void 0,a=void 0===o?i:o,r=e.option(n);return void 0===r||r===i?a:r},d=function(e,t){var n=c(e,t,"showText"),i=!!e.option("icon"),o=c(e,t,"title","");return n||!i?o:""},u=function(e,t){var n=c(e,t,"showIcon"),i=!!e.option("title"),o=c(e,t,"icon","");return n||!i?o:""};t.utils={mergeCommands:l,commandToContainer:{resolveIconValue:u,resolveTextValue:d,resolvePropertyValue:c}},t.templateProvider={createTemplate:function(e){return new a(e)},applyTemplate:function(e,t){i.applyBindings(t,e)}}},function(e,t,n){n(43);var i=n(26),o=n(10),a=n(19),r=n(4),s=n(3),l=n(1).isPlainObject,c=n(0).extend,d=n(142),u=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=o.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 d.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,o=this,a=!o._currentItem,s=o._currentItem||{},l=t.item||{},d=s.uri,u=s.key,h=l.key;return void 0===e&&(e=o._navigationDevice.getUri()),/^_back$/.test(e)?void o.back():(t=c(o._getDefaultOptions(),t||{}),a&&(t.target=_.current),n={currentUri:d,uri:e,cancel:!1,navigateWhen:[],options:t},o.fireEvent("navigating",[n]),e=n.uri,void(n.cancel||d===e&&(void 0===h||h===u)&&!o._forceNavigate?o._cancelNavigation(n):(o._forceNavigate=!1,g.apply(i,n.navigateWhen).done(function(){r.executeAsync(function(){o._updateHistory(e,t),o.fireEvent("navigated",[{uri:e,previousUri:d,options:t,item:o._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:r.noop,restoreState:r.noop,removeState:r.noop}).include(u),x=v.inherit({ctor:function(e){e=e||{},this.callBase(e),this._createNavigationStacks(e),p.add(this._deviceBackInitiated.bind(this)),this._stateStorageKey=e.stateStorageKey||m},init:function(){return this._navigationDevice.init()},_createNavigationDevice:function(e){e.navigationDevice||(e.navigationDevice=new d.StackBasedNavigationDevice),this.callBase(e),this._navigationDevice.backInitiated.add(this._deviceBackInitiated.bind(this))},_uriChangedHandler:function(e){this.navigate(e)},_createNavigationStacks:function(e){this.navigationStacks={},this._keepPositionInStack=e.keepPositionInStack,this.currentStack=new w},_deviceBackInitiated:function(){f()?this._syncUriWithCurrentNavigationItem():this.back({isHardwareButton:!0})},_getDefaultOptions:function(){return{target:_.blank}},_createNavigationStack:function(){var e=new w;return e.itemsRemoved.add(this._removeItems.bind(this)),e},_setCurrentItem:function(e){this._setCurrentStack(e.stack),this.currentStack.currentItem(e),this.callBase(e),this._syncUriWithCurrentNavigationItem()},_setCurrentStack:function(e){var t,n;"string"==typeof e?(n=e,n in this.navigationStacks||(this.navigationStacks[n]=this._createNavigationStack()),t=this.navigationStacks[n]):(t=e,n=s.map(this.navigationStacks,function(t,n){return t===e?n:null})[0]),this.currentStack=t,this.currentStackKey=n},_getViewTargetStackKey:function(e,t){var n;if(t)if(void 0!==this.navigationStacks[e])n=e;else{for(var i in this.navigationStacks)if(this.navigationStacks[i].items[0].uri===e){n=i;break}n=n||e}else n=this.currentStackKey||e;return n},_updateHistory:function(e,t){var n=t.root,i=n,o=!1,a=this.currentStack,r=void 0!==t.keepPositionInStack?t.keepPositionInStack:this._keepPositionInStack;if(t.stack=t.stack||this._getViewTargetStackKey(e,n),this._setCurrentStack(t.stack),!n&&this.currentStack.items.length||(o=this.currentStack===a,i=!0),n&&this.currentStack.items.length)r&&!o||(this.currentStack.currentIndex=0,this.currentItem().uri!==e&&this.currentStack.navigate(e,!0)),t.direction=t.direction||"none";else{var s=this.currentStack.currentIndex,l=this.currentItem()||{};switch(t.target){case _.blank:this.currentStack.navigate(e);break;case _.current:this.currentStack.navigate(e,!0);break;case _.back:this.currentStack.currentIndex>0?this.currentStack.back(e):this.currentStack.navigate(e,!0);break;default:throw h.Error("E3006",t.target)}if(void 0===t.direction){var c=this.currentStack.currentIndex-s;c<0?t.direction=this.currentStack.currentItem().backDirection||"backward":c>0&&this.currentStack.currentIndex>0?t.direction="forward":t.direction="none"}l.backDirection="forward"===t.direction?"backward":"none"}t.root=i,this._currentItem=this.currentStack.currentItem(),this._syncUriWithCurrentNavigationItem()},_removeItems:function(e){var t=this;s.each(e,function(e,n){t.fireEvent("itemRemoved",[n])})},back:function(e){e=e||{};var t=c({cancel:!1},e);if(this.fireEvent("navigatingBack",[t]),t.cancel)return void this._syncUriWithCurrentNavigationItem();var n=this.previousItem(t.stack);n?this.navigate(n.uri,{stack:t.stack,target:_.back,item:n}):this.callBase()},rootUri:function(){return this.currentStack.items.length?this.currentStack.items[0].uri:this.callBase()},canBack:function(e){var t=e?this.navigationStacks[e]:this.currentStack;return!!t&&t.canBack()},saveState:function(e){if(this.currentStack.items.length){var t={navigationStacks:{},currentStackKey:this.currentStackKey};s.each(this.navigationStacks,function(e,n){var i={};t.navigationStacks[e]=i,i.currentIndex=n.currentIndex,i.items=s.map(n.items,function(e){return{key:e.key,uri:e.uri}})});var n=JSON.stringify(t);e.setItem(this._stateStorageKey,n)}else this.removeState(e)},restoreState:function(e){if(!this.disableRestoreState){var t=e.getItem(this._stateStorageKey);if(t)try{var n=this,i=JSON.parse(t);s.each(i.navigationStacks,function(e,t){var i=n._createNavigationStack();n.navigationStacks[e]=i,i.currentIndex=t.currentIndex,i.items=s.map(t.items,function(e){return e.stack=i,e})}),this.currentStackKey=i.currentStackKey,this.currentStack=this.navigationStacks[this.currentStackKey],this._currentItem=this.currentStack.currentItem(),this._navigationDevice.setUri(this.currentItem().uri),this._forceNavigate=!0}catch(t){throw this.removeState(e),h.Error("E3007")}}},removeState:function(e){e.removeItem(this._stateStorageKey)},currentIndex:function(){return this.currentStack.currentIndex},previousItem:function(e){var t=this.navigationStacks[e]||this.currentStack;return t.previousItem()},getItemByIndex:function(e){return this.currentStack.items[e]},clearHistory:function(){this._createNavigationStacks({keepPositionInStack:this._keepPositionInStack})},itemByKey:function(e){var t;return s.each(this.navigationStacks,function(n,i){var o=i.itemByKey(e);if(o)return t=o,!1}),t},currentItem:function(e){var t;return arguments.length>0?("string"==typeof e?t=this.itemByKey(e):l(e)&&(t=e),void this.callBase(t)):this.callBase()}}),w=o.inherit({ctor:function(e){e=e||{},this.itemsRemoved=a(),this.clear()},currentItem:function(e){if(!e)return this.items[this.currentIndex];for(var t=0;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){e&&this.itemsRemoved.fire(e)}});t.HistoryBasedNavigationManager=v,t.StackBasedNavigationManager=x,t.NavigationStack=w},function(e,t,n){var i=n(52).DataSource,o=n(0).extend,a=n(52).normalizeDataSourceOptions,r="_dataSourceOptions",s="_dataSourceChangedHandler",l="_dataSourceLoadErrorHandler",c="_dataSourceLoadingChangedHandler",d="_dataSourceFromUrlLoadMode",u="_getSpecificDataSourceOption",h={postCtor:function(){this.on("disposing",function(){this._disposeDataSource()}.bind(this))},_refreshDataSource:function(){this._initDataSource(),this._loadDataSource()},_initDataSource:function(){var e,t,n=u in this?this[u]():this.option("dataSource");this._disposeDataSource(),n&&(n instanceof i?(this._isSharedDataSource=!0,this._dataSource=n):(e=r in this?this[r]():{},t=this._dataSourceType?this._dataSourceType():i,n=a(n,{fromUrlLoadMode:d in this&&this[d]()}),this._dataSource=new t(o(!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),o=n(81);if(i&&i.load){var a={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(a),i.locale("en")),o.inject({locale:function(e){return e?void i.locale(e):i.locale().locale}})}},function(e,t,n){var i=n(124),o=n(5),a=n(58),r=n(3).each,s=n(9),l=n(0).extend,c=n(100),d="dxSwipeable",u="dx-swipeable",h={onStart:i.start,onUpdated:i.swipe,onEnd:i.end,onCancel:"dxswipecancel"},p=a.inherit({_getDefaultOptions:function(){return l(this.callBase(),{elastic:!0,immediate:!1,direction:"horizontal",itemSizeFunc:null,onStart:null,onUpdated:null,onEnd:null,onCancel:null})},_render:function(){this.callBase(),this.$element().addClass(u),this._attachEventHandlers()},_attachEventHandlers:function(){if(this._detachEventHandlers(),!this.option("disabled")){var e=this.NAME;this._createEventData(),r(h,function(t,n){var i=this._createActionByOption(t,{context:this});n=s.addNamespace(n,e),o.on(this.$element(),n,this._eventData,function(e){return i({event:e})})}.bind(this))}},_createEventData:function(){this._eventData={elastic:this.option("elastic"),itemSizeFunc:this.option("itemSizeFunc"),direction:this.option("direction"),immediate:this.option("immediate")}},_detachEventHandlers:function(){o.off(this.$element(),"."+d)},_optionChanged:function(e){switch(e.name){case"disabled":case"onStart":case"onUpdated":case"onEnd":case"onCancel":case"elastic":case"immediate":case"itemSizeFunc":case"direction":this._detachEventHandlers(),this._attachEventHandlers();break;case"rtlEnabled":break;default:this.callBase(e)}}});c.name(p,d),e.exports=p},function(e,t,n){function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a="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=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,d=n(10),u=n(76),h=n(17),p=n(22),f=n(4),g=n(1),_=n(7),m=_.Deferred,v=_.when,x=n(19),w=n(53),b=n(100),y=n(14),C=g.isFunction,k=f.noop,S={},I={},T=function(){function e(){o(this,e),this._postponedOperations={}}return r(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}(),D=d.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=y.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},o=0;o<e.length;o++){var a,r=e[o],s=r.device||{};a=C(s)?s(n):i(n,s),a&&c(t,r.options)}return t},_isInitialOptionValue:function(e){var t=this.option(e),n=this.initialOption(e),i=C(t)&&C(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=b.name(this.constructor),e=e||{},e.eventsStrategy&&this.setEventsStrategy(e.eventsStrategy),this._options={},this._updateLockCount=0,this._optionChangedCallbacks=e._optionChangedCallbacks||x(),this._disposingCallbacks=e._disposingCallbacks||x(),this.postponedOperations=new T,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,o=n!==n;return!(!i||!o)||!(null!==t&&"object"===("undefined"==typeof t?"undefined":a(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:k,_notifyOptionChanged:function(e,t,n){var i=this;if(this._initialized)for(var o=[e].concat(i._getOptionAliasesByName(e)),a=0;a<o.length;a++){var r=o[a],s={name:r.split(/[.[]/)[0],fullName:r,value:t,previousValue:n};i._optionChangedCallbacks.fireWith(i,[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(o){return arguments.length||(o={}),g.isPlainObject(o)||(o={actionValue:o}),n=n||new u(e,c(t,i._defaultActionConfig())),n.execute.call(n,c(o,i._defaultActionArgs()))}},_createActionByOption:function(e,t){var n,i,o,a=this,r=function(){if(!i){if(t=t||{},"string"!=typeof e)throw h.Error("E0008");0===e.indexOf("on")&&(i=a._getEventName(e)),o=a.option(e)}if(n||o||t.beforeExecute||t.afterExecute||a.hasEvent(i)){if(!n){var r=t.beforeExecute;t.beforeExecute=function(e){r&&r.apply(a,arguments),a.fireEvent(i,e.args)},a._suppressDeprecatedWarnings(),n=a._createAction(o,t),a._resumeDeprecatedWarnings()}if(s().wrapActionsBeforeExecute){var l=a.option("beforeActionExecute")||k,c=l(a,n,t)||n;return c.apply(a,arguments)}return n.apply(a,arguments)}};if(!s().wrapActionsBeforeExecute){var l=a.option("onActionCreated")||k;r=l(a,r,t)||r}return r},_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 o=0;o<e._cachedDeprecateNames.length;o++)if(e._cachedDeprecateNames[o]===t){n=e._deprecatedOptions[t];break}if(n){e._logWarningIfDeprecated(t);var a=n.alias;a&&(t=a)}}return t},t=function(e){var t=e.split(".");return t.pop(),t.join(".")},n=function(e){var t=e.split(".");return t[t.length-1]},i=function(e,t,n){var i=S[t];return i||(i=S[t]=p.compileGetter(t)),i(e,{functionsAsIs:!0,unwrapObservables:n})},o=function(e,o){delete e[o];var a=t(o),r=n(o),s=a?i(e,a,!1):e;s&&delete s[r]},a=function(e,o,a){var r,s="";do s&&(s="."+s),s=n(o)+s,o=t(o),r=o?i(e,o,!1):e;while(!r);r[s]=a},r=function(t,n,i,r){if(i){var s=e(t,i);s&&s!==i&&(a(n,s,r),o(n,i))}},s=function e(t,n,i,o){if(g.isPlainObject(o))for(var a in o)e(t,n,i+"."+a,o[a]);r(t,n,i,o)},l=function(e,t,n){I[t]||(I[t]=p.compileSetter(t));var i=t.split(/[.[]/);I[t](e._options,n,{functionsAsIs:!0,merge:!e._getOptionsByReference()[t],unwrapObservables:i.length>1&&!!e._getOptionsByReference()[i[0]]})},c=function(e,t,n){var o=i(e._options,t,!1);e._optionValuesEqual(t,o,n)||(e._initialized&&e._optionChanging(t,o,n),l(e,t,n),e._notifyOptionChanged(t,n,o))};return function(t,n){var o=this,a=t;if(arguments.length<2&&"object"!==g.type(a))return a=e(o,a),i(o._options,a);"string"==typeof a&&(t={},t[a]=n),o.beginUpdate();try{var r;for(r in t)s(o,t,r,t[r]);for(r in t)c(o,r,t[r])}finally{o.endUpdate()}}}(),_getOptionValue:function(e,t){var n=this.option(e);return C(n)?n.bind(t)():n}}).include(w);e.exports=D,e.exports.PostponedOperations=T},function(e,t,n){var i=n(2),o=n(10),a=n(0).extend,r=n(4),s=n(1),l=n(3),c=n(32),d=n(139),u=n(7),h=u.when,p=u.Deferred,f={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},g="dx-animating",_=o.inherit({ctor:function(){this._accumulatedDelays={enter:0,leave:0},this._animations=[],this.reset()},_createAnimations:function(e,t,n,o){var a,r=this,s=[];return n=n||{},a=this._prepareElementAnimationConfig(t,n,o),a&&e.each(function(){var e=r._createAnimation(i(this),a,n);e&&(e.element.addClass(g),e.setup(),s.push(e))}),s},_prepareElementAnimationConfig:function(e,t,n){var i;if("string"==typeof e){var o=e;e=d.presets.getPreset(o)}if(e)if(s.isFunction(e[n]))i=e[n];else{if(i=a({skipElementInitialStyles:!0,cleanupWhen:this._completePromise},e,t),!i.type||"css"===i.type){var r="dx-"+n,l=(i.extraCssClasses?" "+i.extraCssClasses:"")+f[i.direction];i.type="css",i.from=(i.from||r)+l,i.to=i.to||r+"-active"}i.staggerDelay=i.staggerDelay||0,i.delay=i.delay||0,i.staggerDelay&&(i.delay+=this._accumulatedDelays[n],this._accumulatedDelays[n]+=i.staggerDelay)}else i=void 0;return i},_createAnimation:function(e,t,n){var i;return s.isPlainObject(t)?i=c.createAnimation(e,t):s.isFunction(t)&&(i=t(e,n)),i},_startAnimations:function(){for(var e=this._animations,t=0;t<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");
|
|
18
|
-
this._animations.push.apply(this._animations,i)},start:function(){var e,t=this;if(this._animations.length){var n=l.map(this._animations,function(e){var t=new p;return e.deferred.always(function(){t.resolve()}),t.promise()});e=h.apply(i,n).always(function(){t._completeDeferred.resolve(),t.reset()}),r.executeAsync(function(){t._startAnimations()})}else t.reset(),e=(new p).resolve().promise();return e},stop:function(e){this._stopAnimations(e)}});t.TransitionExecutor=_},function(e,t,n){var i=n(2),o=n(5),a=n(12),r=n(68),s=n(61),l=n(9),c="dxmousewheel",d="dxWheel",u=r(function(){return a.hasDocumentProperty("onwheel")?"wheel":"mousewheel"}),h={setup:function(e){var t=i(e);o.on(t,l.addNamespace(u(),d),h._wheelHandler.bind(h))},teardown:function(e){o.off(e,"."+d)},_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){e.exports=n(486)},function(e,t,n){var i=n(6),o=i.getWindow(),a=o.DevExpress=o.DevExpress||{},r=a.errors=n(17);if(a._DEVEXTREME_BUNDLE_INITIALIZED)throw r.Error("E0024");a._DEVEXTREME_BUNDLE_INITIALIZED=!0,a.clientExporter=n(187),a.VERSION=n(120),a.Class=n(10),a.DOMComponent=n(58),a.registerComponent=n(8),a.devices=n(14),a.Color=n(86);var s=n(105);a.EventsMixin=n(53),a.utils={},a.utils.requestAnimationFrame=s.requestAnimationFrame,a.utils.cancelAnimationFrame=s.cancelAnimationFrame,a.utils.initMobileViewport=n(222).initMobileViewport,a.utils.extendFromObject=n(0).extendFromObject,a.utils.createComponents=n(13).createComponents,a.utils.triggerShownEvent=n(13).triggerShownEvent,a.utils.triggerHidingEvent=n(13).triggerHidingEvent,a.utils.resetActiveElement=n(13).resetActiveElement,a.utils.findBestMatches=n(4).findBestMatches,a.createQueue=n(173).create,a.utils.dom=n(13),a.utils.common=n(4),a.utils.date=n(23),a.utils.browser=n(29),a.utils.inflector=n(37),a.utils.iterator=n(3),a.utils.resizeCallbacks=n(121),a.utils.console=n(75),a.utils.string=n(39),a.utils.support=n(40),a.processHardwareBackButton=n(223),a.viewPort=n(73).value,a.hideTopOverlay=n(136),a.formatHelper=n(88),a.config=n(30),a.animationPresets=n(139).presets,a.fx=n(32),a.TransitionExecutor=n(116).TransitionExecutor,a.AnimationPresetCollection=n(139).PresetCollection,a.events=n(319),a.events.click=n(18),a.events.utils=n(9),a.events.GestureEmitter=n(146),a.localization=n(322),e.exports=a},function(e,t,n){e.exports="18.1.13"},function(e,t,n){var i=n(6),o=n(12),a=n(19),r=n(51),s=n(68),l=function(){var e,t=a(),n=t.add,l=t.remove;if(!i.hasWindow())return t;var c,d=function(){var e=o.getDocumentElement();return{width:e.clientWidth,height:e.clientHeight}},u=function(){var n=d();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=d()});return t.add=function(){var e=n.apply(t,arguments);return h(),r.add(function(){!c&&t.has()&&(c=o.listen(i.getWindow(),"resize",u))}),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),o=n(66),a=o.inherit({_renderCore:function(){return i()}});e.exports=a},function(e,t,n){var i=n(2),o=n(10),a=n(3).each,r=n(100),s="dx-state-invisible",l="dx-state-disabled",c="dx-item-content-placeholder",d=function(e,t,n){var i=function(){var e;return function(t){e!==t&&(n(t,e),e=t)}}();return{dispose:e(t,i),force:function(){i(t())}}},u=o.inherit({ctor:function(e,t,n){this._$element=e,this._options=t,this._rawData=n,r.attachInstanceToElement(e,this,this._dispose),this._render()},_render:function(){var e=i("<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),o=d(this._options.watchMethod(),function(){return i(n)},function(e,n){this._dirty=!0,t(e,n)}.bind(this));this._watchers.push(o)},setDataField:function(){if(this._dirty=!1,a(this._watchers,function(e,t){t.force()}),this._dirty)return!0},_renderDisabled:function(e,t){this._$element.toggleClass(l,!!e)},_renderVisible:function(e,t){this._$element.toggleClass(s,void 0!==e&&!e)},_dispose:function(){a(this._watchers,function(e,t){t.dispose()})}});u.getInstance=function(e){return r.getInstanceByElement(e,this)},e.exports=u},function(e,t,n){var i=n(9),o=n(146),a=n(84),r="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}},d={defaultItemSizeFunc:function(){return this.getElement().height()},getBounds:function(){return[this._maxTopOffset,this._maxBottomOffset]},calcOffsetRatio:function(e){var t=i.eventData(e);return(t.y-(this._savedEventData&&this._savedEventData.y||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=i.eventData(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.y-this._tickData.y)>=t.time-this._tickData.time}},u={horizontal:c,vertical:d},h=o.inherit({TICK_INTERVAL:300,FAST_SWIPE_SPEED_LIMIT:10,ctor:function(e){this.callBase(e),this.direction="horizontal",this.elastic=!0},_getStrategy:function(){return u[this.direction]},_defaultItemSizeFunc:function(){return this._getStrategy().defaultItemSizeFunc.call(this)},_itemSizeFunc:function(){return this.itemSizeFunc||this._defaultItemSizeFunc},_init:function(e){this._tickData=i.eventData(e)},_start:function(e){this._savedEventData=i.eventData(e),e=this._fireEvent(r,e),e.cancel||(this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset)},_move:function(e){var t=this._getStrategy(),n=i.eventData(e),o=t.calcOffsetRatio.call(this,e);o=this._fitOffset(o,this.elastic),n.time-this._tickData.time>this.TICK_INTERVAL&&(this._tickData=n),this._fireEvent(s,e,{offset:o}),e.preventDefault()},_end:function(e){var t=this._getStrategy(),n=t.calcOffsetRatio.call(this,e),i=t.isFastSwipe.call(this,e),o=n,a=this._calcTargetOffset(n,i);o=this._fitOffset(o,this.elastic),a=this._fitOffset(a,!1),this._fireEvent(l,e,{offset:o,targetOffset:a})},_fitOffset:function(e,t){var n=this._getStrategy(),i=n.getBounds.call(this);return e<-i[0]?t?(-2*i[0]+e)/3:-i[0]:e>i[1]?t?(2*i[1]+e)/3:i[1]:e},_calcTargetOffset:function(e,t){var n;return t?(n=Math.ceil(Math.abs(e)),e<0&&(n=-n)):n=Math.round(e),n}});a({emitter:h,events:[r,s,l]}),t.swipe=s,t.start=r,t.end=l},function(e,t,n){var i=n(460),o=n(8);o("dxList",i),e.exports=i},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(10),s=n(124),l=n(9),c="dxListEditDecorator",d=l.addNamespace(s.start,c),u=l.addNamespace(s.swipe,c),h=l.addNamespace(s.end,c),p=r.inherit({ctor:function(e){this._list=e,this._init()},_init:a,_shouldHandleSwipe:!1,_attachSwipeEvent:function(e){var t={itemSizeFunc:function(){return this._clearSwipeCache&&(this._itemWidthCache=this._list.$element().width(),this._clearSwipeCache=!1),this._itemWidthCache}.bind(this)};o.on(e.$itemElement,d,t,this._itemSwipeStartHandler.bind(this)),o.on(e.$itemElement,u,this._itemSwipeUpdateHandler.bind(this)),o.on(e.$itemElement,h,this._itemSwipeEndHandler.bind(this))},_itemSwipeStartHandler:function(e){var t=i(e.currentTarget);return t.is(".dx-state-disabled, .dx-state-disabled *")?void(e.cancel=!0):(clearTimeout(this._list._inkRippleTimer),void this._swipeStartHandler(t,e))},_itemSwipeUpdateHandler:function(e){var t=i(e.currentTarget);this._swipeUpdateHandler(t,e)},_itemSwipeEndHandler:function(e){var t=i(e.currentTarget);this._swipeEndHandler(t,e),this._clearSwipeCache=!0},beforeBag:a,afterBag:a,_commonOptions:function(){return{activeStateEnabled:this._list.option("activeStateEnabled"),hoverStateEnabled:this._list.option("hoverStateEnabled"),focusStateEnabled:this._list.option("focusStateEnabled")}},modifyElement:function(e){this._shouldHandleSwipe&&(this._attachSwipeEvent(e),this._clearSwipeCache=!0)},afterRender:a,handleClick:a,handleKeyboardEvents:a,handleEnterPressing:a,handleContextMenu:a,_swipeStartHandler:a,_swipeUpdateHandler:a,_swipeEndHandler:a,visibilityChange:a,getExcludedSelectors:a,dispose:a});e.exports=p},function(e,t,n){var i=n(2),o=n(5),a=n(14),r=n(0).extend,s=n(69),l=n(48),c=n(8),d=n(9),u=n(20),h=n(18),p="dx-checkbox",f="dx-checkbox-icon",g="dx-checkbox-checked",_="dx-checkbox-container",m="dx-checkbox-text",v="dx-checkbox-has-text",x="dx-checkbox-indeterminate",w=100,b=l.inherit({_supportedKeys:function(){var e=function(e){e.preventDefault(),this._clickAction({event:e})};return r(this.callBase(),{space:e})},_getDefaultOptions:function(){return r(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,value:!1,text:"",useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return u.isAndroid5()},options:{useInkRipple:!0}}])},_feedbackHideTimeout:w,_initMarkup:function(){this._renderSubmitElement(),this._$container=i("<div>").addClass(_),this.setAria("role","checkbox"),this.$element().addClass(p),this._renderValue(),this._renderIcon(),this._renderText(),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().append(this._$container),this.callBase()},_render:function(){this._renderClick(),this.callBase()},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=s.render({waveSizeCoefficient:2.5,useHoldAnimation:!1,wavesNumber:2,isCentered:!0})},_renderInkWave:function(e,t,n,i){if(this._inkRipple){var o={element:e,event:t,wave:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}},_updateFocusState:function(e,t){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,e,t,0)},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,n,t,1)},_renderIcon:function(){this._$icon=i("<span>").addClass(f).prependTo(this._$container)},_renderText:function(){var e=this.option("text");return e?(this._$text||(this._$text=i("<span>").addClass(m)),this._$text.text(e),this._$container.append(this._$text),void this.$element().addClass(v)):void(this._$text&&(this._$text.remove(),this.$element().removeClass(v)))},_renderClick:function(){var e=this,t=d.addNamespace(h.name,e.NAME);e._clickAction=e._createAction(e._clickHandler),o.off(e.$element(),t),o.on(e.$element(),t,function(t){e._clickAction({event:t})})},_clickHandler:function(e){var t=e.component;t._saveValueChangeEvent(e.event),t.option("value",!t.option("value"))},_renderValue:function(){var e=this.$element(),t=this.option("value"),n=void 0===t;e.toggleClass(g,Boolean(t)),e.toggleClass(x,n),this._$submitElement.val(t),this.setAria("checked",n?"mixed":t||"false")},_optionChanged:function(e){switch(e.name){case"useInkRipple":this._invalidate();break;case"value":this._renderValue(),this.callBase(e);break;case"text":this._renderText(),this._renderDimensions();break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});c("dxCheckBox",b),e.exports=b},function(e,t,n){var i=n(2),o=n(5),a=n(4),r=n(1),s=r.isDefined,l=r.isPromise,c=n(0).extend,d=n(11).inArray,u=n(3).each,h=n(7),p=n(13).getPublicElement,f=h.Deferred,g=n(17),_=n(69),m=n(15),v=n(8),x=n(9),w=n(42),b=n(208),y=n(20),C=n(18),k=".dx-state-disabled",S="dx-selectbox",I="dx-selectbox-popup",T="dx-selectbox-container",D="dx-selectbox-popup-wrapper",E=b.inherit({_supportedKeys:function(){var e=this,t=this.callBase(),n=function(e){var t=this._isEditable();t?this._valueSubstituted()&&(this._preventFiltering=!0):this.option("showClearButton")&&(e.preventDefault(),this.reset()),this._preventSubstitution=!0},i=function(){e.option("searchEnabled")&&e._valueSubstituted()&&e._searchHandler()};return c({},t,{tab:function(){this.option("opened")&&"instantly"===this.option("applyValueMode")&&this._cleanInputSelection(),this._wasSearch()&&this._clearFilter(),t.tab&&t.tab.apply(this,arguments)},upArrow:function(){if(t.upArrow&&t.upArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(-1),!0},downArrow:function(){if(t.downArrow&&t.downArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(1),!0},leftArrow:function(){i(),t.leftArrow&&t.leftArrow.apply(this,arguments)},rightArrow:function(){i(),t.rightArrow&&t.rightArrow.apply(this,arguments)},home:function(){i(),t.home&&t.home.apply(this,arguments)},end:function(){i(),t.end&&t.end.apply(this,arguments)},escape:function(){t.escape&&t.escape.apply(this,arguments),this._cancelEditing()},enter:function(e){if(""===this._input().val()&&this.option("value")&&this.option("allowClearing"))this.option({selectedItem:null,value:null}),this.close();else{if(this.option("acceptCustomValue"))return e.preventDefault(),this.option("opened");if(t.enter&&t.enter.apply(this,arguments))return this.option("opened")}},space:function(e){var t=this.option("opened"),n=this.option("searchEnabled"),i=this.option("acceptCustomValue");if(t&&!n&&!i)return e.preventDefault(),this._valueChangeEventHandler(e),!0},backspace:n,del:n})},_getDefaultOptions:function(){return c(this.callBase(),{placeholder:m.format("Select"),fieldTemplate:null,valueChangeEvent:"change",acceptCustomValue:!1,onCustomItemCreating:function(e){s(e.customItem)||(e.customItem=e.text)},showSelectionControls:!1,autocompletionEnabled:!0,allowClearing:!0,tooltipEnabled:!1,openOnFieldClick:!0,showDropDownButton:!0,displayCustomValue:!1,_isAdaptablePopupPosition:!1,useInkRipple:!1})},_defaultOptionsRules:function(){var e=y.current();return this.callBase().concat([{device:function(){return y.isWin8(e)},options:{_isAdaptablePopupPosition:!0,popupPosition:{at:"left top",offset:{h:0,v:0}}}},{device:function(){return y.isAndroid5(e)},options:{_isAdaptablePopupPosition:!0,popupPosition:{offset:{h:-16,v:-8}},useInkRipple:!0}}])},_init:function(){this.callBase(),this._initCustomItemCreatingAction()},_initMarkup:function(){this._renderSubmitElement(),this.$element().addClass(S),this._renderTooltip(),this.option("useInkRipple")&&this._renderInkRipple(),this.callBase(),this._$container.addClass(T)},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element())},_renderInkRipple:function(){this._inkRipple=_.render()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple&&!this._isEditable()){var i={element:this._inputWrapper(),event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_createPopup:function(){this.callBase(),this._popup.$element().addClass(I)},_popupWrapperClass:function(){return this.callBase()+" "+D},_cancelEditing:function(){!this.option("searchEnabled")&&this._list&&(this._focusListElement(null),this._updateField(this.option("selectedItem")))},_renderOpenedState:function(){this.callBase(),this.option("opened")&&(this._scrollToSelectedItem(),this._focusSelectedElement())},_focusSelectedElement:function(){var e=this._searchValue();if(!e)return void this._focusListElement(null);var t=this._list._itemElements(),n=d(this.option("selectedItem"),this.option("items")),i=n>=0&&!this._isCustomItemSelected()?t.eq(n):null;this._focusListElement(i)},_renderFocusedElement:function(){if(this._list){var e=this._searchValue();if(!e||this.option("acceptCustomValue"))return void this._focusListElement(null);var t=this._list._itemElements(),n=t.not(k).eq(0);this._focusListElement(n)}},_focusListElement:function(e){this._preventInputValueRender=!0,this._list.option("focusedElement",p(e)),delete this._preventInputValueRender},_scrollToSelectedItem:function(){this._list&&this._list.scrollToItem(this._list.option("selectedItem"))},_listContentReadyHandler:function(){this.callBase();var e=this._dataSource&&this._dataSource.paginate();e&&this._needPopupRepaint()||this._scrollToSelectedItem()},_renderValue:function(){this._renderInputValue(),this._setSubmitValue()},_setSubmitValue:function(){var e=this.option("value"),t="this"===this.option("valueExpr")?this._displayGetter(e):e;this._$submitElement.val(t)},_getSubmitElement:function(){return this._$submitElement},_renderInputValue:function(){return this.callBase().always(function(){this._renderInputValueAsync()}.bind(this))},_renderInputValueAsync:function(){this._renderTooltip(),this._renderInputValueImpl().always(function(){this._refreshSelected()}.bind(this))},_renderInputValueImpl:function(){return this._renderInputAddons(),(new f).resolve()},_fitIntoRange:function(e,t,n){return e>n?t:e<t?n:e},_setNextValue:function(e){var t=this._dataSource.isLoaded()?(new f).resolve():this._dataSource.load();t.done(function(){var t=this._calcNextItem(e),n=this._valueGetter(t);this._setValue(n)}.bind(this))},_calcNextItem:function(e){var t=this._items(),n=this._fitIntoRange(this._getSelectedIndex()+e,0,t.length-1);return t[n]},_items:function(){var e=this._getPlainItems(!this._list&&this._dataSource.items()),t=new w(e).filter("disabled","<>",!0).toArray();return t},_getSelectedIndex:function(){var e=this._items(),t=this.option("selectedItem"),n=-1;return u(e,function(e,i){if(this._isValueEquals(i,t))return n=e,!1}.bind(this)),n},_setSelectedItem:function(e){var t=!this._isCustomValueAllowed()&&void 0===e;this.callBase(t?null:e)},_isCustomValueAllowed:function(){return this.option("acceptCustomValue")||this.callBase()},_displayValue:function(e){return e=!s(e)&&this._isCustomValueAllowed()?this.option("value"):e,this.callBase(e)},_listConfig:function(){var e=c(this.callBase(),{pageLoadMode:"scrollBottom",onSelectionChanged:this._getSelectionChangeHandler(),selectedItem:this.option("selectedItem"),onFocusedItemChanged:this._listFocusedItemChangeHandler.bind(this)});return this.option("showSelectionControls")&&c(e,{showSelectionControls:!0,selectionByClick:!0}),e},_listFocusedItemChangeHandler:function(e){if(!this._preventInputValueRender){var t=e.component,n=i(t.option("focusedElement")),o=t._getItemData(n);this._updateField(o)}},_updateField:function(e){var t=this._getTemplateByOption("fieldTemplate");return t&&this.option("fieldTemplate")?void this._renderInputAddons():void this._renderDisplayText(this._displayGetter(e))},_getSelectionChangeHandler:function(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):a.noop},_selectionChangeHandler:function(e){u(e.addedItems||[],function(e,t){this._setValue(this._valueGetter(t))}.bind(this))},_getActualSearchValue:function(){return this._dataSource.searchValue()},_toggleOpenState:function(e){if(!this.option("disabled")){if(e=arguments.length?e:!this.option("opened"),e||this._restoreInputText(),this._wasSearch()&&e)if(this._wasSearch(!1),this.option("showDataBeforeSearch")||0===this.option("minSearchLength")){if(this._searchTimer)return;var t=this._getActualSearchValue();t&&this._wasSearch(!0),this._filterDataSource(t||null)}else this._setListOption("items",[]);e&&this._scrollToSelectedItem(),this.callBase(e)}},_renderTooltip:function(){this.option("tooltipEnabled")&&this.$element().attr("title",this.option("displayValue"))},_renderDimensions:function(){this.callBase(),this._setPopupOption("width")},_popupHidingHandler:function(){this._cancelEditing(),this.callBase()},_restoreInputText:function(){this._loadItemDeferred&&this._loadItemDeferred.always(function(){if(!this.option("acceptCustomValue")){if(this.option("searchEnabled")&&!this._searchValue()&&this.option("allowClearing"))return void this._clearTextValue();var e=this.option("selectedItem");(this._displayGetter(e)||"").toString()!==this._searchValue()&&this._renderInputValue().always(function(t){var n=a.ensureDefined(t,e);this._setSelectedItem(n),this._updateField(n),this._clearFilter()}.bind(this))}}.bind(this))},_focusOutHandler:function(e){this.callBase(e),this._restoreInputText()},_clearTextValue:function(){this.option("value",null)},_shouldOpenPopup:function(){return this._needPassDataSourceToList()},_renderValueChangeEvent:function(){this._isEditable()&&this.callBase()},_isEditable:function(){return this.option("acceptCustomValue")||this.option("searchEnabled")},_fieldRenderData:function(){var e=this._list&&this.option("opened")&&i(this._list.option("focusedElement"));return e&&e.length?this._list._getItemData(e):this.option("selectedItem")},_readOnlyPropValue:function(){return!this._isEditable()||this.option("readOnly")},_isSelectedValue:function(e){return this._isValueEquals(e,this.option("value"))},_shouldCloseOnItemClick:function(){return!(this.option("showSelectionControls")&&"single"!==this.option("selectionMode"))},_listItemClickHandler:function(e){var t=this._getCurrentValue();this._focusListElement(i(e.itemElement)),this._saveValueChangeEvent(e.event),this._shouldClearFilter()&&this._clearFilter(),this._completeSelection(this._valueGetter(e.itemData)),this._shouldCloseOnItemClick()&&this.option("opened",!1),this.option("searchEnabled")&&t===this._valueGetter(e.itemData)&&this._updateField(e.itemData)},_shouldClearFilter:function(){return this._wasSearch()},_completeSelection:function(e){this._setValue(e)},_loadItem:function(e,t){var n=this,i=new f;return this.callBase(e,t).done(function(e){i.resolve(e)}.bind(this)).fail(function(){var t=n.option("selectedItem");n.option("acceptCustomValue")&&e===n._valueGetter(t)?i.resolve(t):i.reject()}.bind(this)),i.promise()},_loadInputValue:function(e,t){return this._loadItemDeferred=this._loadItem(e).always(t),this._loadItemDeferred},_isCustomItemSelected:function(){var e=this.option("selectedItem"),t=this._searchValue(),n=this._displayGetter(e);return!n||t!==n.toString()},_valueChangeEventHandler:function(){this.option("acceptCustomValue")&&this._isCustomItemSelected()&&this._customItemAddedHandler()},_initCustomItemCreatingAction:function(){this._customItemCreatingAction=this._createActionByOption("onCustomItemCreating")},_createCustomItem:function(e){var t={text:e},n=this._customItemCreatingAction(t),i=a.ensureDefined(n,t.customItem);return s(n)&&g.log("W0015","onCustomItemCreating","customItem"),i},_customItemAddedHandler:function(){var e=this._searchValue(),t=this._createCustomItem(e);if(void 0===t)throw this._renderValue(),g.Error("E0121");l(t)?h.fromPromise(t).done(this._setCustomItem.bind(this)).fail(this._setCustomItem.bind(this,null)):this._setCustomItem(t)},_setCustomItem:function(e){this._disposed||(e=e||null,this.option("selectedItem",e),this._shouldClearFilter()&&this._filterDataSource(null),this._setValue(this._valueGetter(e)),this._renderDisplayText(this._displayGetter(e)))},_createClearButton:function(){var e=x.addNamespace(C.name,this.NAME),t=this.callBase();return o.on(t,e,function(){return!1}),t},_wasSearch:function(e){return arguments.length?void(this._wasSearchValue=e):this._wasSearchValue},_searchHandler:function(e){return this._preventFiltering?void delete this._preventFiltering:(this._needPassDataSourceToList()&&this._wasSearch(!0),void this.callBase(e))},_dataSourceFiltered:function(e){this.callBase(),null!==e&&(this._renderInputSubstitution(),this._renderFocusedElement())},_valueSubstituted:function(){var e=this._input().get(0),t=0===e.selectionStart&&e.selectionEnd===this._searchValue().length,n=e.selectionStart!==e.selectionEnd;return this._wasSearch()&&n&&!t},_shouldSubstitutionBeRendered:function(){return this.option("autocompletionEnabled")&&!this._preventSubstitution&&this.option("searchEnabled")&&!this.option("acceptCustomValue")&&"startswith"===this.option("searchMode")},_renderInputSubstitution:function(){if(!this._shouldSubstitutionBeRendered())return void delete this._preventSubstitution;var e=this._list&&this._getPlainItems(this._list.option("items"))[0];if(e){var t=this._input(),n=t.val().length;if(0!==n){var i=t.get(0),o=this._displayGetter(e).toString();i.value=o,this._caret({start:n,end:o.length})}}},_cleanInputSelection:function(){var e=this._input().get(0),t=e.value.length;e.selectionStart=t,e.selectionEnd=t},_dispose:function(){this._renderInputValueAsync=a.noop,delete this._loadItemDeferred,this.callBase()},_optionChanged:function(e){switch(e.name){case"_isAdaptablePopupPosition":case"autocompletionEnabled":break;case"onCustomItemCreating":this._initCustomItemCreatingAction();break;case"tooltipEnabled":this._renderTooltip();break;case"displayCustomValue":case"acceptCustomValue":case"showSelectionControls":case"useInkRipple":this._invalidate();break;case"selectedItem":e.previousValue!==e.value&&this.callBase(e);break;case"allowClearing":break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});v("dxSelectBox",E),e.exports=E},function(e,t,n){var i=n(2),o=n(35).beforeCleanData,a=n(5),r=n(61),s="dxremove",l="dxRemoveEvent";o(function(e){e=[].slice.call(e);for(var t=0;t<e.length;t++){var n=i(e[t]);n.prop(l)&&(n[0][l]=null,a.triggerHandler(n,s))}}),r(s,{noBubble:!0,setup:function(e){i(e).prop(l,!0)}}),e.exports=s},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(6),r=a.getWindow(),s=n(12),l=n(5),c=n(8),d=n(39),u=n(0).extend,h=n(24),p=n(77),f=n(4).noop,g=n(1),_=n(31),m=n(9),v=n(60),x="dx-popover",w="dx-popover-wrapper",b="dx-popover-arrow",y="dx-popover-without-title",C={left:"right",top:"bottom",right:"left",bottom:"top",center:"center"},k={left:-1,top:-1,center:0,right:1,bottom:1},S={top:{my:"bottom center",at:"top center",collision:"fit flip"},bottom:{my:"top center",at:"bottom center",collision:"fit flip"},right:{my:"left center",at:"right center",collision:"flip fit"},left:{my:"right center",at:"left center",collision:"flip fit"}},I={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},T=function(e,t){var n=e.option(t);return D(n)},D=function(e){return g.isObject(e)?e.name:e},E=function(e,t){var n=e.option(t);return g.isObject(n)&&n.delay},A=function(e,t){var n,i,a,r,c=e.option("target"),d=T(e,t+"Event");d&&!e.option("disabled")&&(r=m.addNamespace(d,e.NAME),i=e._createAction(function(){n=E(e,t+"Event"),this._clearEventTimeout("hide"===t),n?this._timeouts[t]=setTimeout(function(){e[t]()},n):e[t]()}.bind(e),{validatingTargetName:"target"}),a=function(e){i({event:e,target:o(e.currentTarget)})},c.jquery||c.nodeType||g.isWindow(c)?(e["_"+t+"EventHandler"]=void 0,l.on(c,r,a)):(e["_"+t+"EventHandler"]=a,l.on(s.getDocument(),r,c,a)))},B=function(e,t,n,i){var a=i||T(e,n+"Event");a&&(a=m.addNamespace(a,e.NAME),e["_"+n+"EventHandler"]?l.off(s.getDocument(),a,t,e["_"+n+"EventHandler"]):l.off(o(t),a))},O=v.inherit({_getDefaultOptions:function(){return u(this.callBase(),{target:r,shading:!1,position:"bottom",closeOnOutsideClick:!0,animation:{show:{type:"fade",from:0,to:1},hide:{type:"fade",to:0}},showTitle:!1,width:"auto",height:"auto",dragEnabled:!1,resizeEnabled:!1,fullScreen:!1,closeOnTargetScroll:!0,arrowPosition:"",arrowOffset:0,boundaryOffset:{h:10,v:10}})},_defaultOptionsRules:function(){return[{device:{platform:"ios"},options:{arrowPosition:{boundaryOffset:{h:20,v:-10},collision:"fit"}}},{device:function(){return!a.hasWindow()},options:{animation:null}}]},_init:function(){this.callBase(),this._renderArrow(),this._timeouts={},this.$element().addClass(x),this._wrapper().addClass(w)},_render:function(){this.callBase.apply(this,arguments),this._detachEvents(this.option("target")),this._attachEvents()},_detachEvents:function(e){B(this,e,"show"),B(this,e,"hide")},_attachEvents:function(){A(this,"show"),A(this,"hide")},_renderArrow:function(){this._$arrow=o("<div>").addClass(b).prependTo(this.overlayContent())},_documentDownHandler:function(e){return!this._isOutsideClick(e)||this.callBase(e)},_isOutsideClick:function(e){return!o(e.target).closest(this.option("target")).length},_animate:function(e){e&&e.to&&"object"===i(e.to)&&u(e.to,{position:this._getContainerPosition()}),this.callBase.apply(this,arguments)},_stopAnimation:function(){this.callBase.apply(this,arguments)},_renderTitle:function(){this._wrapper().toggleClass(y,!this.option("showTitle")),this.callBase()},_renderPosition:function(){this.callBase(),this._renderOverlayPosition()},_renderOverlayBoundaryOffset:f,_renderOverlayPosition:function(){this._resetOverlayPosition(),this._updateContentSize();var e=this._getContainerPosition(),t=p.setup(this._$content,e),n=this._getSideByLocation(t);this._togglePositionClass("dx-position-"+n),this._toggleFlippedClass(t.h.flip,t.v.flip),this._renderArrowPosition(n)},_resetOverlayPosition:function(){this._setContentHeight(!0),this._togglePositionClass("dx-position-"+this._positionSide),h.move(this._$content,{left:0,top:0}),this._$arrow.css({top:"auto",right:"auto",bottom:"auto",left:"auto"})},_updateContentSize:function(){if(this._$popupContent){var e=p.calculate(this._$content,this._getContainerPosition());if(e.h.oversize>0&&this._isHorizontalSide()&&!e.h.fit){var t=this._$content.width()-e.h.oversize;this._$content.width(t)}if(e.v.oversize>0&&this._isVerticalSide()&&!e.v.fit){var n=this._$content.height()-e.v.oversize,i=this._$popupContent.height()-e.v.oversize;this._$content.height(n),this._$popupContent.height(i)}}},_getContainerPosition:function(){var e=d.pairToObject(this._position.offset||""),t=e.h,n=e.v,i=this._isPopoverInside(),o=(i?-1:1)*k[this._positionSide],a=this._getContentBorderWidth(this._positionSide);return this._isVerticalSide()?n+=o*(this._$arrow.height()-a):this._isHorizontalSide()&&(t+=o*(this._$arrow.width()-a)),u({},this._position,{offset:t+" "+n})},_getContentBorderWidth:function(e){var t=this._$content.css(I[e]);return parseInt(t)||0},_getSideByLocation:function(e){var t=e.v.flip,n=e.h.flip;return this._isVerticalSide()&&t||this._isHorizontalSide()&&n||this._isPopoverInside()?C[this._positionSide]:this._positionSide},_togglePositionClass:function(e){this._$wrapper.removeClass("dx-position-left dx-position-right dx-position-top dx-position-bottom").addClass(e)},_toggleFlippedClass:function(e,t){this._$wrapper.toggleClass("dx-popover-flipped-horizontal",e).toggleClass("dx-popover-flipped-vertical",t)},_renderArrowPosition:function(e){this._$arrow.css(C[e],-(this._isVerticalSide(e)?this._$arrow.height():this._$arrow.width()));var t,n=this._isVerticalSide(e)?"left":"top",i=this._isVerticalSide(e)?"outerWidth":"outerHeight",a=o(this._position.of),r=p.offset(a)||{top:0,left:0},s=p.offset(this._$content),l=this._$arrow[i](),c=s[n],d=this._$content[i](),u=r[n],h=a.get(0).preventDefault?0:a[i](),f=Math.max(c,u),g=Math.min(c+d,u+h);t="start"===this.option("arrowPosition")?f-c:"end"===this.option("arrowPosition")?g-c-l:(f+g)/2-c-l/2;var m=this._getContentBorderWidth(e),v=_.fitIntoRange(t-m+this.option("arrowOffset"),m,d-l-2*m);this._$arrow.css(n,v)},_isPopoverInside:function(){var e=this._transformStringPosition(this.option("position"),S),t=p.setup.normalizeAlign(e.my),n=p.setup.normalizeAlign(e.at);return t.h===n.h&&t.v===n.v},_setContentHeight:function(e){e&&this.callBase()},_renderShadingPosition:function(){this.option("shading")&&this._$wrapper.css({top:0,left:0})},_renderShadingDimensions:function(){this.option("shading")&&this._$wrapper.css({width:"100%",height:"100%"})},_normalizePosition:function(){var e=u({},this._transformStringPosition(this.option("position"),S));e.of||(e.of=this.option("target")),e.collision||(e.collision="flip"),e.boundaryOffset||(e.boundaryOffset=this.option("boundaryOffset")),
|
|
18
|
+
this._animations.push.apply(this._animations,i)},start:function(){var e,t=this;if(this._animations.length){var n=l.map(this._animations,function(e){var t=new p;return e.deferred.always(function(){t.resolve()}),t.promise()});e=h.apply(i,n).always(function(){t._completeDeferred.resolve(),t.reset()}),r.executeAsync(function(){t._startAnimations()})}else t.reset(),e=(new p).resolve().promise();return e},stop:function(e){this._stopAnimations(e)}});t.TransitionExecutor=_},function(e,t,n){var i=n(2),o=n(5),a=n(12),r=n(68),s=n(61),l=n(9),c="dxmousewheel",d="dxWheel",u=r(function(){return a.hasDocumentProperty("onwheel")?"wheel":"mousewheel"}),h={setup:function(e){var t=i(e);o.on(t,l.addNamespace(u(),d),h._wheelHandler.bind(h))},teardown:function(e){o.off(e,"."+d)},_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){e.exports=n(486)},function(e,t,n){var i=n(6),o=i.getWindow(),a=o.DevExpress=o.DevExpress||{},r=a.errors=n(17);if(a._DEVEXTREME_BUNDLE_INITIALIZED)throw r.Error("E0024");a._DEVEXTREME_BUNDLE_INITIALIZED=!0,a.clientExporter=n(187),a.VERSION=n(120),a.Class=n(10),a.DOMComponent=n(58),a.registerComponent=n(8),a.devices=n(14),a.Color=n(86);var s=n(105);a.EventsMixin=n(53),a.utils={},a.utils.requestAnimationFrame=s.requestAnimationFrame,a.utils.cancelAnimationFrame=s.cancelAnimationFrame,a.utils.initMobileViewport=n(222).initMobileViewport,a.utils.extendFromObject=n(0).extendFromObject,a.utils.createComponents=n(13).createComponents,a.utils.triggerShownEvent=n(13).triggerShownEvent,a.utils.triggerHidingEvent=n(13).triggerHidingEvent,a.utils.resetActiveElement=n(13).resetActiveElement,a.utils.findBestMatches=n(4).findBestMatches,a.createQueue=n(173).create,a.utils.dom=n(13),a.utils.common=n(4),a.utils.date=n(23),a.utils.browser=n(29),a.utils.inflector=n(37),a.utils.iterator=n(3),a.utils.resizeCallbacks=n(121),a.utils.console=n(75),a.utils.string=n(39),a.utils.support=n(40),a.processHardwareBackButton=n(223),a.viewPort=n(73).value,a.hideTopOverlay=n(136),a.formatHelper=n(88),a.config=n(30),a.animationPresets=n(139).presets,a.fx=n(32),a.TransitionExecutor=n(116).TransitionExecutor,a.AnimationPresetCollection=n(139).PresetCollection,a.events=n(319),a.events.click=n(18),a.events.utils=n(9),a.events.GestureEmitter=n(146),a.localization=n(322),e.exports=a},function(e,t,n){e.exports="18.1.17"},function(e,t,n){var i=n(6),o=n(12),a=n(19),r=n(51),s=n(68),l=function(){var e,t=a(),n=t.add,l=t.remove;if(!i.hasWindow())return t;var c,d=function(){var e=o.getDocumentElement();return{width:e.clientWidth,height:e.clientHeight}},u=function(){var n=d();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=d()});return t.add=function(){var e=n.apply(t,arguments);return h(),r.add(function(){!c&&t.has()&&(c=o.listen(i.getWindow(),"resize",u))}),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),o=n(66),a=o.inherit({_renderCore:function(){return i()}});e.exports=a},function(e,t,n){var i=n(2),o=n(10),a=n(3).each,r=n(100),s="dx-state-invisible",l="dx-state-disabled",c="dx-item-content-placeholder",d=function(e,t,n){var i=function(){var e;return function(t){e!==t&&(n(t,e),e=t)}}();return{dispose:e(t,i),force:function(){i(t())}}},u=o.inherit({ctor:function(e,t,n){this._$element=e,this._options=t,this._rawData=n,r.attachInstanceToElement(e,this,this._dispose),this._render()},_render:function(){var e=i("<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),o=d(this._options.watchMethod(),function(){return i(n)},function(e,n){this._dirty=!0,t(e,n)}.bind(this));this._watchers.push(o)},setDataField:function(){if(this._dirty=!1,a(this._watchers,function(e,t){t.force()}),this._dirty)return!0},_renderDisabled:function(e,t){this._$element.toggleClass(l,!!e)},_renderVisible:function(e,t){this._$element.toggleClass(s,void 0!==e&&!e)},_dispose:function(){a(this._watchers,function(e,t){t.dispose()})}});u.getInstance=function(e){return r.getInstanceByElement(e,this)},e.exports=u},function(e,t,n){var i=n(9),o=n(146),a=n(84),r="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}},d={defaultItemSizeFunc:function(){return this.getElement().height()},getBounds:function(){return[this._maxTopOffset,this._maxBottomOffset]},calcOffsetRatio:function(e){var t=i.eventData(e);return(t.y-(this._savedEventData&&this._savedEventData.y||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var t=i.eventData(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(t.y-this._tickData.y)>=t.time-this._tickData.time}},u={horizontal:c,vertical:d},h=o.inherit({TICK_INTERVAL:300,FAST_SWIPE_SPEED_LIMIT:10,ctor:function(e){this.callBase(e),this.direction="horizontal",this.elastic=!0},_getStrategy:function(){return u[this.direction]},_defaultItemSizeFunc:function(){return this._getStrategy().defaultItemSizeFunc.call(this)},_itemSizeFunc:function(){return this.itemSizeFunc||this._defaultItemSizeFunc},_init:function(e){this._tickData=i.eventData(e)},_start:function(e){this._savedEventData=i.eventData(e),e=this._fireEvent(r,e),e.cancel||(this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset)},_move:function(e){var t=this._getStrategy(),n=i.eventData(e),o=t.calcOffsetRatio.call(this,e);o=this._fitOffset(o,this.elastic),n.time-this._tickData.time>this.TICK_INTERVAL&&(this._tickData=n),this._fireEvent(s,e,{offset:o}),e.preventDefault()},_end:function(e){var t=this._getStrategy(),n=t.calcOffsetRatio.call(this,e),i=t.isFastSwipe.call(this,e),o=n,a=this._calcTargetOffset(n,i);o=this._fitOffset(o,this.elastic),a=this._fitOffset(a,!1),this._fireEvent(l,e,{offset:o,targetOffset:a})},_fitOffset:function(e,t){var n=this._getStrategy(),i=n.getBounds.call(this);return e<-i[0]?t?(-2*i[0]+e)/3:-i[0]:e>i[1]?t?(2*i[1]+e)/3:i[1]:e},_calcTargetOffset:function(e,t){var n;return t?(n=Math.ceil(Math.abs(e)),e<0&&(n=-n)):n=Math.round(e),n}});a({emitter:h,events:[r,s,l]}),t.swipe=s,t.start=r,t.end=l},function(e,t,n){var i=n(460),o=n(8);o("dxList",i),e.exports=i},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(10),s=n(124),l=n(9),c="dxListEditDecorator",d=l.addNamespace(s.start,c),u=l.addNamespace(s.swipe,c),h=l.addNamespace(s.end,c),p=r.inherit({ctor:function(e){this._list=e,this._init()},_init:a,_shouldHandleSwipe:!1,_attachSwipeEvent:function(e){var t={itemSizeFunc:function(){return this._clearSwipeCache&&(this._itemWidthCache=this._list.$element().width(),this._clearSwipeCache=!1),this._itemWidthCache}.bind(this)};o.on(e.$itemElement,d,t,this._itemSwipeStartHandler.bind(this)),o.on(e.$itemElement,u,this._itemSwipeUpdateHandler.bind(this)),o.on(e.$itemElement,h,this._itemSwipeEndHandler.bind(this))},_itemSwipeStartHandler:function(e){var t=i(e.currentTarget);return t.is(".dx-state-disabled, .dx-state-disabled *")?void(e.cancel=!0):(clearTimeout(this._list._inkRippleTimer),void this._swipeStartHandler(t,e))},_itemSwipeUpdateHandler:function(e){var t=i(e.currentTarget);this._swipeUpdateHandler(t,e)},_itemSwipeEndHandler:function(e){var t=i(e.currentTarget);this._swipeEndHandler(t,e),this._clearSwipeCache=!0},beforeBag:a,afterBag:a,_commonOptions:function(){return{activeStateEnabled:this._list.option("activeStateEnabled"),hoverStateEnabled:this._list.option("hoverStateEnabled"),focusStateEnabled:this._list.option("focusStateEnabled")}},modifyElement:function(e){this._shouldHandleSwipe&&(this._attachSwipeEvent(e),this._clearSwipeCache=!0)},afterRender:a,handleClick:a,handleKeyboardEvents:a,handleEnterPressing:a,handleContextMenu:a,_swipeStartHandler:a,_swipeUpdateHandler:a,_swipeEndHandler:a,visibilityChange:a,getExcludedSelectors:a,dispose:a});e.exports=p},function(e,t,n){var i=n(2),o=n(5),a=n(14),r=n(0).extend,s=n(69),l=n(48),c=n(8),d=n(9),u=n(20),h=n(18),p="dx-checkbox",f="dx-checkbox-icon",g="dx-checkbox-checked",_="dx-checkbox-container",m="dx-checkbox-text",v="dx-checkbox-has-text",x="dx-checkbox-indeterminate",w=100,b=l.inherit({_supportedKeys:function(){var e=function(e){e.preventDefault(),this._clickAction({event:e})};return r(this.callBase(),{space:e})},_getDefaultOptions:function(){return r(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,value:!1,text:"",useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return u.isAndroid5()},options:{useInkRipple:!0}}])},_feedbackHideTimeout:w,_initMarkup:function(){this._renderSubmitElement(),this._$container=i("<div>").addClass(_),this.setAria("role","checkbox"),this.$element().addClass(p),this._renderValue(),this._renderIcon(),this._renderText(),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().append(this._$container),this.callBase()},_render:function(){this._renderClick(),this.callBase()},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=s.render({waveSizeCoefficient:2.5,useHoldAnimation:!1,wavesNumber:2,isCentered:!0})},_renderInkWave:function(e,t,n,i){if(this._inkRipple){var o={element:e,event:t,wave:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}},_updateFocusState:function(e,t){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,e,t,0)},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,n,t,1)},_renderIcon:function(){this._$icon=i("<span>").addClass(f).prependTo(this._$container)},_renderText:function(){var e=this.option("text");return e?(this._$text||(this._$text=i("<span>").addClass(m)),this._$text.text(e),this._$container.append(this._$text),void this.$element().addClass(v)):void(this._$text&&(this._$text.remove(),this.$element().removeClass(v)))},_renderClick:function(){var e=this,t=d.addNamespace(h.name,e.NAME);e._clickAction=e._createAction(e._clickHandler),o.off(e.$element(),t),o.on(e.$element(),t,function(t){e._clickAction({event:t})})},_clickHandler:function(e){var t=e.component;t._saveValueChangeEvent(e.event),t.option("value",!t.option("value"))},_renderValue:function(){var e=this.$element(),t=this.option("value"),n=void 0===t;e.toggleClass(g,Boolean(t)),e.toggleClass(x,n),this._$submitElement.val(t),this.setAria("checked",n?"mixed":t||"false")},_optionChanged:function(e){switch(e.name){case"useInkRipple":this._invalidate();break;case"value":this._renderValue(),this.callBase(e);break;case"text":this._renderText(),this._renderDimensions();break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});c("dxCheckBox",b),e.exports=b},function(e,t,n){var i=n(2),o=n(5),a=n(4),r=n(1),s=r.isDefined,l=r.isPromise,c=n(0).extend,d=n(11).inArray,u=n(3).each,h=n(7),p=n(13).getPublicElement,f=h.Deferred,g=n(17),_=n(69),m=n(15),v=n(8),x=n(9),w=n(42),b=n(208),y=n(20),C=n(18),k=".dx-state-disabled",S="dx-selectbox",I="dx-selectbox-popup",T="dx-selectbox-container",D="dx-selectbox-popup-wrapper",E=b.inherit({_supportedKeys:function(){var e=this,t=this.callBase(),n=function(e){var t=this._isEditable();t?this._valueSubstituted()&&(this._preventFiltering=!0):this.option("showClearButton")&&(e.preventDefault(),this.reset()),this._preventSubstitution=!0},i=function(){e.option("searchEnabled")&&e._valueSubstituted()&&e._searchHandler()};return c({},t,{tab:function(){this.option("opened")&&"instantly"===this.option("applyValueMode")&&this._cleanInputSelection(),this._wasSearch()&&this._clearFilter(),t.tab&&t.tab.apply(this,arguments)},upArrow:function(){if(t.upArrow&&t.upArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(-1),!0},downArrow:function(){if(t.downArrow&&t.downArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(1),!0},leftArrow:function(){i(),t.leftArrow&&t.leftArrow.apply(this,arguments)},rightArrow:function(){i(),t.rightArrow&&t.rightArrow.apply(this,arguments)},home:function(){i(),t.home&&t.home.apply(this,arguments)},end:function(){i(),t.end&&t.end.apply(this,arguments)},escape:function(){t.escape&&t.escape.apply(this,arguments),this._cancelEditing()},enter:function(e){if(""===this._input().val()&&this.option("value")&&this.option("allowClearing"))this.option({selectedItem:null,value:null}),this.close();else{if(this.option("acceptCustomValue"))return e.preventDefault(),this.option("opened");if(t.enter&&t.enter.apply(this,arguments))return this.option("opened")}},space:function(e){var t=this.option("opened"),n=this.option("searchEnabled"),i=this.option("acceptCustomValue");if(t&&!n&&!i)return e.preventDefault(),this._valueChangeEventHandler(e),!0},backspace:n,del:n})},_getDefaultOptions:function(){return c(this.callBase(),{placeholder:m.format("Select"),fieldTemplate:null,valueChangeEvent:"change",acceptCustomValue:!1,onCustomItemCreating:function(e){s(e.customItem)||(e.customItem=e.text)},showSelectionControls:!1,autocompletionEnabled:!0,allowClearing:!0,tooltipEnabled:!1,openOnFieldClick:!0,showDropDownButton:!0,displayCustomValue:!1,_isAdaptablePopupPosition:!1,useInkRipple:!1})},_defaultOptionsRules:function(){var e=y.current();return this.callBase().concat([{device:function(){return y.isWin8(e)},options:{_isAdaptablePopupPosition:!0,popupPosition:{at:"left top",offset:{h:0,v:0}}}},{device:function(){return y.isAndroid5(e)},options:{_isAdaptablePopupPosition:!0,popupPosition:{offset:{h:-16,v:-8}},useInkRipple:!0}}])},_init:function(){this.callBase(),this._initCustomItemCreatingAction()},_initMarkup:function(){this._renderSubmitElement(),this.$element().addClass(S),this._renderTooltip(),this.option("useInkRipple")&&this._renderInkRipple(),this.callBase(),this._$container.addClass(T)},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element())},_renderInkRipple:function(){this._inkRipple=_.render()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple&&!this._isEditable()){var i={element:this._inputWrapper(),event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_createPopup:function(){this.callBase(),this._popup.$element().addClass(I)},_popupWrapperClass:function(){return this.callBase()+" "+D},_cancelEditing:function(){!this.option("searchEnabled")&&this._list&&(this._focusListElement(null),this._updateField(this.option("selectedItem")))},_renderOpenedState:function(){this.callBase(),this.option("opened")&&(this._scrollToSelectedItem(),this._focusSelectedElement())},_focusSelectedElement:function(){var e=this._searchValue();if(!e)return void this._focusListElement(null);var t=this._list._itemElements(),n=d(this.option("selectedItem"),this.option("items")),i=n>=0&&!this._isCustomItemSelected()?t.eq(n):null;this._focusListElement(i)},_renderFocusedElement:function(){if(this._list){var e=this._searchValue();if(!e||this.option("acceptCustomValue"))return void this._focusListElement(null);var t=this._list._itemElements(),n=t.not(k).eq(0);this._focusListElement(n)}},_focusListElement:function(e){this._preventInputValueRender=!0,this._list.option("focusedElement",p(e)),delete this._preventInputValueRender},_scrollToSelectedItem:function(){this._list&&this._list.scrollToItem(this._list.option("selectedItem"))},_listContentReadyHandler:function(){this.callBase();var e=this._dataSource&&this._dataSource.paginate();e&&this._needPopupRepaint()||this._scrollToSelectedItem()},_renderValue:function(){this._renderInputValue(),this._setSubmitValue()},_setSubmitValue:function(){var e=this.option("value"),t="this"===this.option("valueExpr")?this._displayGetter(e):e;this._$submitElement.val(t)},_getSubmitElement:function(){return this._$submitElement},_renderInputValue:function(){return this.callBase().always(function(){this._renderInputValueAsync()}.bind(this))},_renderInputValueAsync:function(){this._renderTooltip(),this._renderInputValueImpl().always(function(){this._refreshSelected()}.bind(this))},_renderInputValueImpl:function(){return this._renderInputAddons(),(new f).resolve()},_fitIntoRange:function(e,t,n){return e>n?t:e<t?n:e},_setNextValue:function(e){var t=this._dataSource.isLoaded()?(new f).resolve():this._dataSource.load();t.done(function(){var t=this._calcNextItem(e),n=this._valueGetter(t);this._setValue(n)}.bind(this))},_calcNextItem:function(e){var t=this._items(),n=this._fitIntoRange(this._getSelectedIndex()+e,0,t.length-1);return t[n]},_items:function(){var e=this._getPlainItems(!this._list&&this._dataSource.items()),t=new w(e).filter("disabled","<>",!0).toArray();return t},_getSelectedIndex:function(){var e=this._items(),t=this.option("selectedItem"),n=-1;return u(e,function(e,i){if(this._isValueEquals(i,t))return n=e,!1}.bind(this)),n},_setSelectedItem:function(e){var t=!this._isCustomValueAllowed()&&void 0===e;this.callBase(t?null:e)},_isCustomValueAllowed:function(){return this.option("acceptCustomValue")||this.callBase()},_displayValue:function(e){return e=!s(e)&&this._isCustomValueAllowed()?this.option("value"):e,this.callBase(e)},_listConfig:function(){var e=c(this.callBase(),{pageLoadMode:"scrollBottom",onSelectionChanged:this._getSelectionChangeHandler(),selectedItem:this.option("selectedItem"),onFocusedItemChanged:this._listFocusedItemChangeHandler.bind(this)});return this.option("showSelectionControls")&&c(e,{showSelectionControls:!0,selectionByClick:!0}),e},_listFocusedItemChangeHandler:function(e){if(!this._preventInputValueRender){var t=e.component,n=i(t.option("focusedElement")),o=t._getItemData(n);this._updateField(o)}},_updateField:function(e){var t=this._getTemplateByOption("fieldTemplate");return t&&this.option("fieldTemplate")?void this._renderInputAddons():void this._renderDisplayText(this._displayGetter(e))},_getSelectionChangeHandler:function(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):a.noop},_selectionChangeHandler:function(e){u(e.addedItems||[],function(e,t){this._setValue(this._valueGetter(t))}.bind(this))},_getActualSearchValue:function(){return this._dataSource.searchValue()},_toggleOpenState:function(e){if(!this.option("disabled")){if(e=arguments.length?e:!this.option("opened"),e||this._restoreInputText(),this._wasSearch()&&e)if(this._wasSearch(!1),this.option("showDataBeforeSearch")||0===this.option("minSearchLength")){if(this._searchTimer)return;var t=this._getActualSearchValue();t&&this._wasSearch(!0),this._filterDataSource(t||null)}else this._setListOption("items",[]);e&&this._scrollToSelectedItem(),this.callBase(e)}},_renderTooltip:function(){this.option("tooltipEnabled")&&this.$element().attr("title",this.option("displayValue"))},_renderDimensions:function(){this.callBase(),this._setPopupOption("width")},_popupHidingHandler:function(){this._cancelEditing(),this.callBase()},_restoreInputText:function(){this._loadItemDeferred&&this._loadItemDeferred.always(function(){if(!this.option("acceptCustomValue")){if(this.option("searchEnabled")&&!this._searchValue()&&this.option("allowClearing"))return void this._clearTextValue();var e=this.option("selectedItem");(this._displayGetter(e)||"").toString()!==this._searchValue()&&this._renderInputValue().always(function(t){var n=a.ensureDefined(t,e);this._setSelectedItem(n),this._updateField(n),this._clearFilter()}.bind(this))}}.bind(this))},_focusOutHandler:function(e){this.callBase(e),this._restoreInputText()},_clearTextValue:function(){this.option("value",null)},_shouldOpenPopup:function(){return this._needPassDataSourceToList()},_renderValueChangeEvent:function(){this._isEditable()&&this.callBase()},_isEditable:function(){return this.option("acceptCustomValue")||this.option("searchEnabled")},_fieldRenderData:function(){var e=this._list&&this.option("opened")&&i(this._list.option("focusedElement"));return e&&e.length?this._list._getItemData(e):this.option("selectedItem")},_readOnlyPropValue:function(){return!this._isEditable()||this.option("readOnly")},_isSelectedValue:function(e){return this._isValueEquals(e,this.option("value"))},_shouldCloseOnItemClick:function(){return!(this.option("showSelectionControls")&&"single"!==this.option("selectionMode"))},_listItemClickHandler:function(e){var t=this._getCurrentValue();this._focusListElement(i(e.itemElement)),this._saveValueChangeEvent(e.event),this._shouldClearFilter()&&this._clearFilter(),this._completeSelection(this._valueGetter(e.itemData)),this._shouldCloseOnItemClick()&&this.option("opened",!1),this.option("searchEnabled")&&t===this._valueGetter(e.itemData)&&this._updateField(e.itemData)},_shouldClearFilter:function(){return this._wasSearch()},_completeSelection:function(e){this._setValue(e)},_loadItem:function(e,t){var n=this,i=new f;return this.callBase(e,t).done(function(e){i.resolve(e)}.bind(this)).fail(function(){var t=n.option("selectedItem");n.option("acceptCustomValue")&&e===n._valueGetter(t)?i.resolve(t):i.reject()}.bind(this)),i.promise()},_loadInputValue:function(e,t){return this._loadItemDeferred=this._loadItem(e).always(t),this._loadItemDeferred},_isCustomItemSelected:function(){var e=this.option("selectedItem"),t=this._searchValue(),n=this._displayGetter(e);return!n||t!==n.toString()},_valueChangeEventHandler:function(){this.option("acceptCustomValue")&&this._isCustomItemSelected()&&this._customItemAddedHandler()},_initCustomItemCreatingAction:function(){this._customItemCreatingAction=this._createActionByOption("onCustomItemCreating")},_createCustomItem:function(e){var t={text:e},n=this._customItemCreatingAction(t),i=a.ensureDefined(n,t.customItem);return s(n)&&g.log("W0015","onCustomItemCreating","customItem"),i},_customItemAddedHandler:function(){var e=this._searchValue(),t=this._createCustomItem(e);if(void 0===t)throw this._renderValue(),g.Error("E0121");l(t)?h.fromPromise(t).done(this._setCustomItem.bind(this)).fail(this._setCustomItem.bind(this,null)):this._setCustomItem(t)},_setCustomItem:function(e){this._disposed||(e=e||null,this.option("selectedItem",e),this._shouldClearFilter()&&this._filterDataSource(null),this._setValue(this._valueGetter(e)),this._renderDisplayText(this._displayGetter(e)))},_createClearButton:function(){var e=x.addNamespace(C.name,this.NAME),t=this.callBase();return o.on(t,e,function(){return!1}),t},_wasSearch:function(e){return arguments.length?void(this._wasSearchValue=e):this._wasSearchValue},_searchHandler:function(e){return this._preventFiltering?void delete this._preventFiltering:(this._needPassDataSourceToList()&&this._wasSearch(!0),void this.callBase(e))},_dataSourceFiltered:function(e){this.callBase(),null!==e&&(this._renderInputSubstitution(),this._renderFocusedElement())},_valueSubstituted:function(){var e=this._input().get(0),t=0===e.selectionStart&&e.selectionEnd===this._searchValue().length,n=e.selectionStart!==e.selectionEnd;return this._wasSearch()&&n&&!t},_shouldSubstitutionBeRendered:function(){return this.option("autocompletionEnabled")&&!this._preventSubstitution&&this.option("searchEnabled")&&!this.option("acceptCustomValue")&&"startswith"===this.option("searchMode")},_renderInputSubstitution:function(){if(!this._shouldSubstitutionBeRendered())return void delete this._preventSubstitution;var e=this._list&&this._getPlainItems(this._list.option("items"))[0];if(e){var t=this._input(),n=t.val().length;if(0!==n){var i=t.get(0),o=this._displayGetter(e).toString();i.value=o,this._caret({start:n,end:o.length})}}},_cleanInputSelection:function(){var e=this._input().get(0),t=e.value.length;e.selectionStart=t,e.selectionEnd=t},_dispose:function(){this._renderInputValueAsync=a.noop,delete this._loadItemDeferred,this.callBase()},_optionChanged:function(e){switch(e.name){case"_isAdaptablePopupPosition":case"autocompletionEnabled":break;case"onCustomItemCreating":this._initCustomItemCreatingAction();break;case"tooltipEnabled":this._renderTooltip();break;case"displayCustomValue":case"acceptCustomValue":case"showSelectionControls":case"useInkRipple":this._invalidate();break;case"selectedItem":e.previousValue!==e.value&&this.callBase(e);break;case"allowClearing":break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});v("dxSelectBox",E),e.exports=E},function(e,t,n){var i=n(2),o=n(35).beforeCleanData,a=n(5),r=n(61),s="dxremove",l="dxRemoveEvent";o(function(e){e=[].slice.call(e);for(var t=0;t<e.length;t++){var n=i(e[t]);n.prop(l)&&(n[0][l]=null,a.triggerHandler(n,s))}}),r(s,{noBubble:!0,setup:function(e){i(e).prop(l,!0)}}),e.exports=s},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(6),r=a.getWindow(),s=n(12),l=n(5),c=n(8),d=n(39),u=n(0).extend,h=n(24),p=n(77),f=n(4).noop,g=n(1),_=n(31),m=n(9),v=n(60),x="dx-popover",w="dx-popover-wrapper",b="dx-popover-arrow",y="dx-popover-without-title",C={left:"right",top:"bottom",right:"left",bottom:"top",center:"center"},k={left:-1,top:-1,center:0,right:1,bottom:1},S={top:{my:"bottom center",at:"top center",collision:"fit flip"},bottom:{my:"top center",at:"bottom center",collision:"fit flip"},right:{my:"left center",at:"right center",collision:"flip fit"},left:{my:"right center",at:"left center",collision:"flip fit"}},I={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},T=function(e,t){var n=e.option(t);return D(n)},D=function(e){return g.isObject(e)?e.name:e},E=function(e,t){var n=e.option(t);return g.isObject(n)&&n.delay},A=function(e,t){var n,i,a,r,c=e.option("target"),d=T(e,t+"Event");d&&!e.option("disabled")&&(r=m.addNamespace(d,e.NAME),i=e._createAction(function(){n=E(e,t+"Event"),this._clearEventTimeout("hide"===t),n?this._timeouts[t]=setTimeout(function(){e[t]()},n):e[t]()}.bind(e),{validatingTargetName:"target"}),a=function(e){i({event:e,target:o(e.currentTarget)})},c.jquery||c.nodeType||g.isWindow(c)?(e["_"+t+"EventHandler"]=void 0,l.on(c,r,a)):(e["_"+t+"EventHandler"]=a,l.on(s.getDocument(),r,c,a)))},B=function(e,t,n,i){var a=i||T(e,n+"Event");a&&(a=m.addNamespace(a,e.NAME),e["_"+n+"EventHandler"]?l.off(s.getDocument(),a,t,e["_"+n+"EventHandler"]):l.off(o(t),a))},O=v.inherit({_getDefaultOptions:function(){return u(this.callBase(),{target:r,shading:!1,position:"bottom",closeOnOutsideClick:!0,animation:{show:{type:"fade",from:0,to:1},hide:{type:"fade",to:0}},showTitle:!1,width:"auto",height:"auto",dragEnabled:!1,resizeEnabled:!1,fullScreen:!1,closeOnTargetScroll:!0,arrowPosition:"",arrowOffset:0,boundaryOffset:{h:10,v:10}})},_defaultOptionsRules:function(){return[{device:{platform:"ios"},options:{arrowPosition:{boundaryOffset:{h:20,v:-10},collision:"fit"}}},{device:function(){return!a.hasWindow()},options:{animation:null}}]},_init:function(){this.callBase(),this._renderArrow(),this._timeouts={},this.$element().addClass(x),this._wrapper().addClass(w)},_render:function(){this.callBase.apply(this,arguments),this._detachEvents(this.option("target")),this._attachEvents()},_detachEvents:function(e){B(this,e,"show"),B(this,e,"hide")},_attachEvents:function(){A(this,"show"),A(this,"hide")},_renderArrow:function(){this._$arrow=o("<div>").addClass(b).prependTo(this.overlayContent())},_documentDownHandler:function(e){return!this._isOutsideClick(e)||this.callBase(e)},_isOutsideClick:function(e){return!o(e.target).closest(this.option("target")).length},_animate:function(e){e&&e.to&&"object"===i(e.to)&&u(e.to,{position:this._getContainerPosition()}),this.callBase.apply(this,arguments)},_stopAnimation:function(){this.callBase.apply(this,arguments)},_renderTitle:function(){this._wrapper().toggleClass(y,!this.option("showTitle")),this.callBase()},_renderPosition:function(){this.callBase(),this._renderOverlayPosition()},_renderOverlayBoundaryOffset:f,_renderOverlayPosition:function(){this._resetOverlayPosition(),this._updateContentSize();var e=this._getContainerPosition(),t=p.setup(this._$content,e),n=this._getSideByLocation(t);this._togglePositionClass("dx-position-"+n),this._toggleFlippedClass(t.h.flip,t.v.flip),this._renderArrowPosition(n)},_resetOverlayPosition:function(){this._setContentHeight(!0),this._togglePositionClass("dx-position-"+this._positionSide),h.move(this._$content,{left:0,top:0}),this._$arrow.css({top:"auto",right:"auto",bottom:"auto",left:"auto"})},_updateContentSize:function(){if(this._$popupContent){var e=p.calculate(this._$content,this._getContainerPosition());if(e.h.oversize>0&&this._isHorizontalSide()&&!e.h.fit){var t=this._$content.width()-e.h.oversize;this._$content.width(t)}if(e.v.oversize>0&&this._isVerticalSide()&&!e.v.fit){var n=this._$content.height()-e.v.oversize,i=this._$popupContent.height()-e.v.oversize;this._$content.height(n),this._$popupContent.height(i)}}},_getContainerPosition:function(){var e=d.pairToObject(this._position.offset||""),t=e.h,n=e.v,i=this._isPopoverInside(),o=(i?-1:1)*k[this._positionSide],a=this._getContentBorderWidth(this._positionSide);return this._isVerticalSide()?n+=o*(this._$arrow.height()-a):this._isHorizontalSide()&&(t+=o*(this._$arrow.width()-a)),u({},this._position,{offset:t+" "+n})},_getContentBorderWidth:function(e){var t=this._$content.css(I[e]);return parseInt(t)||0},_getSideByLocation:function(e){var t=e.v.flip,n=e.h.flip;return this._isVerticalSide()&&t||this._isHorizontalSide()&&n||this._isPopoverInside()?C[this._positionSide]:this._positionSide},_togglePositionClass:function(e){this._$wrapper.removeClass("dx-position-left dx-position-right dx-position-top dx-position-bottom").addClass(e)},_toggleFlippedClass:function(e,t){this._$wrapper.toggleClass("dx-popover-flipped-horizontal",e).toggleClass("dx-popover-flipped-vertical",t)},_renderArrowPosition:function(e){this._$arrow.css(C[e],-(this._isVerticalSide(e)?this._$arrow.height():this._$arrow.width()));var t,n=this._isVerticalSide(e)?"left":"top",i=this._isVerticalSide(e)?"outerWidth":"outerHeight",a=o(this._position.of),r=p.offset(a)||{top:0,left:0},s=p.offset(this._$content),l=this._$arrow[i](),c=s[n],d=this._$content[i](),u=r[n],h=a.get(0).preventDefault?0:a[i](),f=Math.max(c,u),g=Math.min(c+d,u+h);t="start"===this.option("arrowPosition")?f-c:"end"===this.option("arrowPosition")?g-c-l:(f+g)/2-c-l/2;var m=this._getContentBorderWidth(e),v=_.fitIntoRange(t-m+this.option("arrowOffset"),m,d-l-2*m);this._$arrow.css(n,v)},_isPopoverInside:function(){var e=this._transformStringPosition(this.option("position"),S),t=p.setup.normalizeAlign(e.my),n=p.setup.normalizeAlign(e.at);return t.h===n.h&&t.v===n.v},_setContentHeight:function(e){e&&this.callBase()},_renderShadingPosition:function(){this.option("shading")&&this._$wrapper.css({top:0,left:0})},_renderShadingDimensions:function(){this.option("shading")&&this._$wrapper.css({width:"100%",height:"100%"})},_normalizePosition:function(){var e=u({},this._transformStringPosition(this.option("position"),S));e.of||(e.of=this.option("target")),e.collision||(e.collision="flip"),e.boundaryOffset||(e.boundaryOffset=this.option("boundaryOffset")),
|
|
19
19
|
this._positionSide=this._getDisplaySide(e),this._position=e},_getDisplaySide:function(e){var t=p.setup.normalizeAlign(e.my),n=p.setup.normalizeAlign(e.at),i=k[t.h]===k[n.h]&&k[t.v]===k[n.v]?-1:1,o=Math.abs(k[t.h]-i*k[n.h]),a=Math.abs(k[t.v]-i*k[n.v]);return o>a?n.h:n.v},_isVerticalSide:function(e){return e=e||this._positionSide,"top"===e||"bottom"===e},_isHorizontalSide:function(e){return e=e||this._positionSide,"left"===e||"right"===e},_clearEventTimeout:function(e){clearTimeout(this._timeouts[e?"show":"hide"])},_clean:function(){this._detachEvents(this.option("target")),this.callBase.apply(this,arguments)},_optionChanged:function(e){switch(e.name){case"showTitle":case"title":case"titleTemplate":this.callBase(e),this._renderGeometry();break;case"boundaryOffset":case"arrowPosition":case"arrowOffset":this._renderGeometry();break;case"fullScreen":e.value&&this.option("fullScreen",!1);break;case"target":e.previousValue&&this._detachEvents(e.previousValue),this.callBase(e);break;case"showEvent":case"hideEvent":var t=e.name.substring(0,4),n=D(e.previousValue);this.hide(),B(this,this.option("target"),t,n),A(this,t);break;case"visible":this._clearEventTimeout(e.value),this.callBase(e);break;default:this.callBase(e)}},show:function(e){return e&&this.option("target",e),this.callBase()}});c("dxPopover",O),e.exports=O},function(e,t,n){function i(){var e=v.testFormats(L);return{unsupported:e.unsupported,supported:e.supported.concat(H)}}function o(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 a(e){return"SVG"===e?x.getData:"PDF"===e?w.getData:v.getData}function r(e,t,n){e&&e.hide(),_.export(t(),n,a(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,o={},a=I-E,r=I+D+R+n*O;return o.rect={width:E-2*R,height:O,x:a+R,y:r},o.text={x:a+(e.rtl?E-B:B),y:r+O-A},"printing"===t&&(i="M "+a+" "+(r+O-R)+" L "+(a+E)+" "+(r+O-R),o.separator={stroke:e.button.default.borderColor,"stroke-width":R,cursor:"pointer",sharp:"v",d:i}),o}function c(e,t,n){var i,o={},a=n.type,r=n.format,s=l(t,a,n.itemIndex),c=g(t.font),d=e.rect(),u=e.text(n.text);return c["pointer-events"]="none",i=e.g().attr({"class":z+"-list-item"}),o[N]=a,r&&(o[$]=r),d.attr(s.rect).css({cursor:"pointer","pointer-events":"all"}).data(o),d.on(C.start+".export",function(){d.attr({fill:t.button.hover.backgroundColor})}).on(C.end+".export",function(){d.attr({fill:null})}),d.append(i),u.css(c).attr(s.text).append(i),"printing"===a&&e.path(null,"line").attr(s.separator).append(i),{g:i,rect:d,resetState:function(){d.attr({fill:null})},fixPosition:function(){var e=u.getBBox(),n=s.text.x-e.x;t.rtl&&(n-=e.width),u.move(n)}}}function d(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 u(e){var t=W.exec(e);return t?t[1]:void 0}function h(e,t,n,i){return(i||t.format)&&(i=o(i||t.format,e._incidentOccurred)),{format:i||F,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,x=_.svg,w=_.pdf,b=n(1).isDefined,y=n(47),C=n(157),k=n(25),S=[k.down,k.move].join(" "),I=35,T=[[9,12,26,12,26,14,9,14],[9,17,26,17,26,19,9,19],[9,22,26,22,26,24,9,24]],D=4,E=120,A=8,B=15,O=30,R=1,M=10,P=2,V=3,F="PNG",L=[F,"JPEG","GIF"],H=["PDF","SVG"],z="dx-export-menu",N="export-element-type",$="export-element-format",W=/data-backgroundcolor="([^"]*)"/;t.exportFromMarkup=function(e,t){t.format=o(t.format)||F,t.fileName=t.fileName||"file",t.exportingAction=t.onExporting,t.exportedAction=t.onExported,t.fileSavingAction=t.onFileSaving,t.margin=b(t.margin)?t.margin:M,t.backgroundColor=b(t.backgroundColor)?t.backgroundColor:u(e),_.export(e,t,a(t.format))},t.getMarkup=function(e){var t=[],n=0,i=0,o=[],a="";return e.forEach(function(e){var a=e.getSize(),r=e.option("backgroundColor")||y.getTheme(e.option("theme")).backgroundColor;r&&o.indexOf(r)===-1&&o.push(r),t.push(e.svg().replace("<svg",'<g transform="translate(0,'+n+')" ').replace("</svg>","</g>")),n+=a.height,i=Math.max(i,a.width)}),1===o.length&&(a='data-backgroundcolor="'+o[0]+'" '),"<svg "+a+'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%",P,6,V),t._shadow.attr({opacity:.8}),t._group=n.g().attr({"class":z}).linkOn(n.root,{name:"export-menu",after:"peripheral"}),t._buttonGroup=n.g().attr({"class":z+"-button"}).append(t._group),t._listGroup=n.g().attr({"class":z+"-list"}).append(t._group),t._overlay=n.rect(-E+I,I+D,E,0),t._overlay.attr({"stroke-width":R,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+=M,e.position={vertical:"top",horizontal:"right"},e.verticalAlignment="top",e.horizontalAlignment="right",e},probeDraw:function(){this._fillSpace(),this.show()},shift:function(e,t){this._group.attr({translateY:this._group.attr("translateY")+t})},draw:function(e,t,n){var i;return this.updateCanvasSize(n),this._group.move(e-I-P-V+n.left,Math.floor(t/2-I/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=o(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(),[I+P,I]},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(k.up+".export",function(t){var n,i=t.target[N],o=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(),o.backgroundColor),e.show(),e._hideList()):"exporting"===i&&(n=p({},o.exportOptions,{format:t.target[$]}),r(e,function(){return e._svgMethod()},n),e._hideList())):void(e._button&&e._hideList())}),e._listGroup.on(S,function(e){e.stopPropagation()}),e._buttonGroup.on(k.enter,function(){e._setButtonState("hover")}),e._buttonGroup.on(k.leave,function(){e._setButtonState(e._listShown?"focus":"default")}),e._buttonGroup.on(k.down+".export",function(){e._setButtonState("active")})},_unsubscribeEvents:function(){this._renderer.root.off(".export"),this._listGroup.off(),this._buttonGroup.off()},_updateButton:function(){var e=this,t=e._renderer,n=e._options,i={fill:n.button.default.color,cursor:"pointer"},o={"export-element-type":"button"};e._button||(e._button=t.rect(0,0,I,I).append(e._buttonGroup),e._button.attr({rx:4,ry:4,fill:n.button.default.backgroundColor,stroke:n.button.default.borderColor,"stroke-width":1,cursor:"pointer"}),e._button.data(o),e._icon=t.path(T).append(e._buttonGroup),e._icon.attr(i),e._icon.data(o),e._buttonGroup.setTitle(m.format("vizExport-titleMenuText")))},_updateList:function(){var e=this,t=e._options,n=t.button.default,i=e._listGroup,o=d(e._renderer,t);e._shadow.attr({color:t.shadowColor}),e._overlay.attr({height:o.length*O+2*R,fill:n.backgroundColor,stroke:n.borderColor}),i.clear(),e._overlay.append(i),o.forEach(function(e){e.g.append(i)}),e._menuItems=o}}),t.plugin={name:"export",init:function(){var e=this;e._exportMenu=new t.ExportMenu({renderer:e._renderer,svgMethod:function(){return e.svg()},incidentOccurred:e._incidentOccurred}),e._layout.add(e._exportMenu)},dispose:function(){this._exportMenu.dispose(),this._exportMenu=null},extenders:{_change_LAYOUT:function(){this._exportMenu&&this._exportMenu.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);r(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 o(){return!1}function a(e,t){return!(e.width===t.width&&e.height===t.height&&e.left===t.left&&e.top===t.top&&e.right===t.right&&e.bottom===t.bottom)}function r(e){var t,n=function(){clearTimeout(t),t=setTimeout(e,100)};return n.dispose=function(){return clearTimeout(t),this},n}function s(e){e.component.hasEvent("incidentOccurred")||I.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 d(e,t){function n(n){var i=e[n];o[i.name]=t(n)}function i(e,t,n){o[e](t),n&&n()}var o={};g(e,function(e,t){t.name&&n(e)});var a;return i.change=function(t){var n=e[t];return n&&((a=a||{})[t]=n),!!n},i.applyChanges=function(){a&&(g(a,function(e,t){n(t.newName||e)}),a=null)},i.dispose=function(){e=t=o=null},i}var u=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,x=n(1).isObject,w=n(0).extend,b=Math.floor,y=n(58),C=n(164),k=n(16).parseScalar,S=n(656),I=S.log,T=n(198),D=n(658),E="rtlEnabled",A="dx-sized-element",B=y.prototype.option,O=function(e,t){return function(n,i){t("incidentOccurred",{target:{id:n,type:"E"===n[0]?"error":"warning",args:i,text:v.apply(null,[S.ERROR_MESSAGES[n]].concat(i||[])),widget:e,version:_}})}},R=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%",o=t&&f.isNumeric(t.height)?t.height+"px":this._getDefaultSize().height+"px";p.setStyle(n,"width",i),p.setStyle(n,"height",o),p.setClass(n,A),p.insertElement(e,n)};var t=y.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]=u);return n.call(this,e)},t},M=!h.hasWindow();e.exports=M?R():y.inherit({_eventsMap:{onIncidentOccurred:{name:"incidentOccurred"},onDrawn:{name:"drawn"}},_getDefaultOptions:function(){return w(this.callBase(),{onIncidentOccurred:s})},_useLinks:!0,_init:function(){var e,t=this;t._$element.children("."+A).remove(),t.callBase.apply(t,arguments),t._changesLocker=0,t._changes=C.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=O(t.NAME,t._eventTrigger),t._layout=new D,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,o=i.length;for(e=0;e<o;++e)n.has(i[e])&&t["_change_"+i[e]]()},_optionChangesOrder:["EVENTS","THEME","RENDERER","RESIZE_HANDLER"],_layoutChangesOrder:["ELEMENT_ATTR","CONTAINER_SIZE","LAYOUT"],_customChangesOrder:["DISABLED"],_change_EVENTS:function(){this._eventTrigger.applyChanges()},_change_THEME:function(){this._setThemeAndRtl()},_change_RENDERER:function(){this._setRendererOptions()},_change_RESIZE_HANDLER:function(){this._setupResizeHandler()},_change_ELEMENT_ATTR:function(){this._renderElementAttributes(),this._change(["CONTAINER_SIZE"])},_change_CONTAINER_SIZE:function(){this._updateSize()},_change_LAYOUT:function(){this._setContentSize()},_change_DISABLED:function(){var e=this._renderer,t=e.root;this.option("disabled")?(this._initDisabledState=t.attr("pointer-events"),t.attr({"pointer-events":"none",filter:e.getGrayScaleFilter().id})):"none"===t.attr("pointer-events")&&t.attr({"pointer-events":f.isDefined(this._initDisabledState)?this._initDisabledState:null,filter:null})},_themeDependentChanges:["RENDERER"],_initRenderer:function(){var e=this;e._canvas=e._calculateCanvas(),e._renderer=new T.Renderer({cssClass:e._rootClassPrefix+" "+e._rootClass,pathModified:e.option("pathModified"),container:e._$element[0]}),e._renderer.resize(e._canvas.width,e._canvas.height)},_disposeRenderer:function(){this._renderer.dispose()},_getAnimationOptions:u,render:function(){this._requestChange(["CONTAINER_SIZE"]),this._onRender()},_onRender:u,_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=d(e._eventsMap,function(t){return e._createActionByOption(t)})},_calculateCanvas:function(){var e=this,t=e.option("size")||{},n=e.option("margin")||{},i=e._getDefaultSize()||{},o=!c(t.width)&&h.hasWindow()?e._$element.width():0,a=!c(t.height)&&h.hasWindow()?e._$element.height():0,r={width:t.width<=0?0:b(l([t.width,o,i.width])),height:t.height<=0?0:b(l([t.height,a,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(r.width-r.left-r.right<=0||r.height-r.top-r.bottom<=0)&&(r={width:0,height:0}),r},_updateSize:function(){var e=this,t=e._calculateCanvas();e._renderer.fixPlacement(),(a(e._canvas,t)||e.__forceRender)&&(e._canvas=t,e._recreateSizeDependentObjects(!0),e._renderer.resize(t.width,t.height),e._change(["LAYOUT"]))},_recreateSizeDependentObjects:u,_getMinSize:function(){return[0,0]},_getAlignmentRect:u,_setContentSize:function(){var e,t=this._canvas,n=this._layout,i=t.width>0&&t.height>0?[t.left,t.top,t.width-t.right,t.height-t.bottom]:[0,0,0,0];i=n.forward(i,this._getMinSize()),e=this._applySize(i)||i,n.backward(e,this._getAlignmentRect()||e)},_getOption:function(e,t){var n=this._themeManager.theme(e),i=this.option(e);return t?void 0!==i?i:n:w(!0,{},n,i)},_setupResizeHandler:function(){var e=this,t=k(this._getOption("redrawOnResize",!0),!0);e._resizeHandler&&e._removeResizeHandler(),e._resizeHandler=r(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:u,beginUpdate:function(){var e=this;return e._initialized&&0===e._updateLockCount&&(e._onBeginUpdate(),e._suspendChanges()),e.callBase.apply(e,arguments),e},endUpdate:function(){var e=this;return e.callBase.apply(e,arguments),0===e._updateLockCount&&e._resumeChanges(),e},option:function(e){var t=this;return t._initialized&&t._applyingChanges&&(arguments.length>1||x(e))?(t._optionsQueue=t._optionsQueue||[],void t._optionsQueue.push(t._getActionForUpdating(arguments))):B.apply(t,arguments)},_getActionForUpdating:function(e){var t=this;return t._deprecatedOptionsSuppressed?function(){t._suppressDeprecatedWarnings(),B.apply(t,e),t._resumeDeprecatedWarnings()}:function(){B.apply(t,e)}},_clean:u,_render:u,_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(E))},_getRendererOptions:function(){return{rtl:this.option(E),encodeHtml:this.option("encodeHtml"),animation:this._getAnimationOptions()}},_setRendererOptions:function(){this._renderer.setOptions(this._getRendererOptions())},svg:function(){return this._renderer.svg()},getSize:function(){var e=this._canvas||{};return{width:e.width,height:e.height}},isReady:o,_dataIsReady:i,_resetIsReady:function(){this.isReady=o},_drawn:function(){var e=this;e.isReady=o,e._dataIsReady()&&e._renderer.onEndAnimation(function(){e.isReady=i}),e._eventTrigger("drawn",{})}}),C.replaceInherit(e.exports)},function(e,t,n){function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=0;return p(e,function(e,n){t+=n}),t}function a(e){return h(e,[M,R,A,B,O])!==-1}function r(e,t){return o(w(e,function(e){return(e-t)*(e-t)}))/e.length}function s(e,t,n){var i=n.getOptions().valueErrorBar,o=n.getValueFields()[0],a=i.lowValueField||E,r=i.highValueField||D;if(n.areErrorBarsVisible()&&void 0===i.type){var s=t.reduce(function(e,t){return v(t[a])&&(e[0]+=t[o]-t[a],e[1]++),v(t[r])&&(e[2]+=t[r]-t[o],e[3]++),e},[0,0,0,0]);s[1]&&(e[a]=e[o]-s[0]/s[1]),s[2]&&(e[r]=e[o]+s[2]/s[3])}return e}function l(e,t,n){var i=n.getOptions().valueErrorBar,o=i.lowValueField||E,a=i.highValueField||D;return n.areErrorBarsVisible()&&void 0===i.type&&(e[o]=0,e[a]=0,e=t.reduce(function(e,t){return e[o]+=t[o],e[a]+=t[a],e},e)),e}function c(e){return function(t,n){var o=t.intervalStart,a=t.data,r=n.getValueFields()[0],s=a[0];return s=a.reduce(function(t,n){var i=n[r];return null===t[r]&&(t=n),null!==i&&e(i,t[r])?n:t},s),u({},s,i({},n.getArgumentField(),o))}}function d(e,t,n){var i=!0;for(var o in t){var a="argument"===o;if(a||"size"===o?!v(e[o]):void 0===e[o]){var r=t[o];a||(n[r]=(n[r]||0)+1),i=!1}}return i}var u=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,x=g.isString,w=_.map,b=_.normalizeEnum,y=Math,C=y.abs,k=y.sqrt,S=y.max,I=12,T=400,D="highError",E="lowError",A="variance",B="stddeviation",O="stderror",R="percent",M="fixed",P="undefined",V="discrete",F="logarithmic",L="datetime";t.chart={},t.polar={};var H={_defaultDuration:T,_defaultTrackerWidth:I,_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?u({},e.hatching,{direction:"right"}):void 0}},_applyElementsClipRect:function(e){e["clip-path"]=this._paneClipRectID},_applyMarkerClipRect:function(e){e["clip-path"]=this._forceClipping?this._paneClipRectID:null},_createGroup:function(e,t,n,i){var o=t[e]=t[e]||this._renderer.g();n&&o.append(n),i&&o.attr(i)},_applyClearingSettings:function(e){e.opacity=null,e.scale=null,this._options.rotated?e.translateX=null:e.translateY=null},_createGroups:function(){var e=this;e._createGroup("_markersGroup",e,e._group),e._createGroup("_labelsGroup",e)},_setMarkerGroupSettings:function(){var e=this,t=e._createPointStyles(e._getMarkerGroupOptions()).normal;t.class="dxc-markers",t.opacity=1,e._applyMarkerClipRect(t),e._markersGroup.attr(t)},getVisibleArea:function(){return this._visibleArea},areErrorBarsVisible:function(){var e=this._options.valueErrorBar;return e&&this._errorBarsEnabled()&&"none"!==e.displayMode&&(a(b(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=u(!0,{styles:{}},e),t=e.styles&&e.styles.normal||{},i.styles=i.styles||{},i.styles.normal={"stroke-width":t["stroke-width"],r:t.r,opacity:t.opacity}),i},_getPointOptions:function(){return this._parsePointOptions(this._preparePointOptions(),this._options.label)},_getOptionsForPoint:function(){return this._options.point},_parsePointStyle:function(e,t,n,i){var o=e.border||{},a=void 0!==e.size?e.size:i;return{fill:e.color||t,stroke:o.color||n,"stroke-width":o.visible?o.width:0,r:a/2+(o.visible&&0!==a?~~(o.width/2)||0:0)}},_createPointStyles:function(e){var t=this,n=e.color||t._options.mainSeriesColor,i=t._options.containerBackgroundColor,o=t._parsePointStyle(e,n,n);return o.visibility=e.visible?"visible":"hidden",{normal:o,hover:t._parsePointStyle(e.hoverStyle,i,n,e.size),selection:t._parsePointStyle(e.selectionStyle,i,n,e.size)}},_checkData:function(e,t,n){return n=n||{value:this.getValueFields()[0]},n.argument=this.getArgumentField(),d(e,n,t||{})&&e.value===e.value},getErrorBarRangeCorrector:function(){var e,t;return this.areErrorBarsVisible()&&(e=b(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(),o=void 0,a=void 0;if(i){var r=this._options.valueErrorBar;o=r.lowValueField||E,a=r.highValueField||D}return function(r){var s={value:r[e],argument:r[t],tag:r[n],data:r};return i&&(s.lowError=r[o],s.highError=r[a]),s}},_errorBarsEnabled:function(){return this.valueAxisType!==V&&this.valueAxisType!==F&&this.valueType!==L},_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,o=e.data,a=e.intervalStart;if(o.length){var r=t.getValueFields()[0],l=o.reduce(function(e,t){var n=t[r];return v(n)?(e[0]+=n,e[1]++):null===n&&e[2]++,e},[0,0,0]);return s((n={},i(n,r,l[2]===o.length?null:l[0]/l[1]),i(n,t.getArgumentField(),a),n),o,t)}},sum:function(e,t){var n,o=e.intervalStart,a=e.data;if(a.length){var r=t.getValueFields()[0],s=a.reduce(function(e,t){var n=t[r];return void 0!==n&&(e[0]+=n),null===n?e[1]++:void 0===n&&e[2]++,e},[0,0,0]),c=s[0];if(s[1]===a.length&&(c=null),s[2]!==a.length)return l((n={},i(n,r,c),i(n,t.getArgumentField(),o),n),a,t)}},count:function(e,t){var n,o=e.data,a=e.intervalStart,r=t.getValueFields()[0];return n={},i(n,t.getArgumentField(),a),i(n,r,o.filter(function(e){return void 0!==e[r]}).length),n},min:c(function(e,t){return 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,o=[n.valueField||"val"];return i&&(e=i.lowValueField,t=i.highValueField,x(e)&&o.push(e),x(t)&&o.push(t)),o},_calculateErrorBars:function(e){if(this.areErrorBarsVisible()){var t,n,i,a,s,l=this,c=l._options,d=c.valueErrorBar,u=b(d.type),h=parseFloat(d.value),f=l.getValueFields()[0],g=d.lowValueField||E,_=d.highValueField||D,m=function(e,n){t=n.value,n.lowError=t-h,n.highError=t+h};switch(u){case M:s=m;break;case R:s=function(e,n){t=n.value;var i=t*h/100;n.lowError=t-i,n.highError=t+i};break;case P:s=function(e,t){t.lowError=t.data[g],t.highError=t.data[_]};break;default:switch(n=w(e,function(e){return v(e.data[f])?e.data[f]:null}),i=n.length,h=h||1,u){case A:h=r(n,o(n)/i)*h,s=m;break;case B:a=o(n)/i,h=k(r(n,a))*h,s=function(e,t){t.lowError=a-h,t.highError=a+h};break;case O:h=k(r(n,o(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 S(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=u({},H,{drawTrackers:function(){var e,t,n=this,i=n._segments||[],o=n._options.rotated,a=[];n.isVisible()&&(i.length&&(e=n._trackers=n._trackers||[],t=n._trackersGroup=(n._trackersGroup||n._renderer.g().attr({fill:"gray",opacity:.001,stroke:"gray","class":"dxc-trackers"})).attr({"clip-path":this._paneClipRectID||null}).append(n._group),p(i,function(i,o){e[i]?n._updateTrackerElement(o,e[i]):e[i]=n._drawTrackerElement(o).data({"chart-data-series":n}).append(t)})),n._trackersTranslator=a,p(n.getVisiblePoints(),function(e,t){var n=parseInt(o?t.vy:t.vx);a[n]?Array.isArray(a[n])?a[n].push(t):a[n]=[a[n],t]:a[n]=t}))},getNeighborPoint:function(e,t){var n,i=this._options.rotated?t:e,o=i,a=this._trackersTranslator,r=null,s=this._options.rotated?e:t,l=this._options.rotated?"vx":"vy";if(this.isVisible()&&a){r=a[i];do r=a[o]||a[i],i--,o++;while((i>=0||o<a.length)&&!r);Array.isArray(r)&&(n=C(r[0][l]-s),p(r,function(e,t){var i=C(t[l]-s);n>=i&&(n=i,r=t)}))}return r},_applyVisibleArea:function(){var e=this,t=e._options.rotated,n=(t?e.getValueAxis():e.getArgumentAxis()).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=u({},H,{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 o=n(10),a=n(0).extend,r=n(1),s=n(3).each,l=n(149),c=r.isString,d=n(16).parseScalar,u=n(47),h=u.getTheme,p=u.addCacheItem,f=u.removeCacheItem,g=a,_=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=o.inherit({ctor:function(){p(this)},dispose:function(){var e=this;return f(e),e._callback=e._theme=e._font=null,e},setCallback:function(e){return this._callback=e,this},setTheme:function(e,t){return this._current=e,this._rtl=t,this.refresh()},refresh:function(){var e=this,t=e._current||{},n=h(t.name||t);return e._themeName=n.name,e._defaultPalette=n.defaultPalette,e._font=g({},n.font,t.font),e._themeSection&&_(e._themeSection.split("."),function(e,t){n=g(!0,{},n[t])}),e._theme=g(!0,{},n,c(t)?{}:t),e._initializeTheme(),d(e._rtl,e._theme.rtlEnabled)&&g(!0,e._theme,e._theme._rtl),e._callback(),e},theme:function(e){return i(this._theme,e)},themeName:function(){return this._themeName},createPalette:function(e,t){return new l.Palette(e,t,this._defaultPalette)},createDiscretePalette:function(e,t){return new l.DiscretePalette(e,t,this._defaultPalette)},createGradientPalette:function(e){return new l.GradientPalette(e,this._defaultPalette)},getAccentColor:function(e){return l.getAccentColor(e,this._defaultPalette)},_initializeTheme:function(){var e=this;_(e._fontFields||[],function(t,n){e._initializeFont(i(e._theme,n))})},_initializeFont:function(e){g(e,this._font,g({},e))}})},function(e,t,n){function i(e,t){return t<e}function o(e,t){return t>e}function a(e,t,n,i){var o=c(t);c(e)?o&&i(e,t)&&n(t):o&&n(t)}var r,s=n(1),l=n(0).extend,c=s.isDefined,d=s.isDate,u=s.isFunction,h=n(16).unique,p="min",f="max",g="minVisible",_="maxVisible",m="base",v="axisType";r=t.Range=function(e){e&&l(this,e)},r.prototype={constructor:r,addRange:function(e){var t=this,n=t.categories,r=e.categories,s=function(n,i){a(t[n],e[n],function(e){t[n]=e},i)},l=function(e,n,i){a(t[e],t[n],function(n){c(t[e])&&(t[e]=n)},i)},d=function(n){t[n]=t[n]||e[n]};return d("invert"),d(v),d("dataType"),d("isSpacedMargin"),d("checkMinDataVisibility"),d("checkMaxDataVisibility"),"logarithmic"===t[v]?d(m):t[m]=void 0,s(p,i),s(f,o),"discrete"===t[v]?(d(g),d(_)):(s(g,i),s(_,o)),s("interval",i),l(p,g,i),l(p,_,i),l(f,_,o),l(f,g,o),void 0===n?t.categories=r:t.categories=r?h(n.concat(r)):n,t},isDefined:function(){return c(this[p])&&c(this[f])||this.categories&&this.categories.length},setStubData:function(e){var t=this,n=(new Date).getFullYear()-1,i="datetime"===e,o=t[v],a="logarithmic"===o?1:0;return"discrete"===o?t.categories=i?[new Date(n,0,1),new Date(n,3,1),new Date(n,6,1),new Date(n,9,1)]:["0","1","2"]:(t[p]=i?new Date(n,0,1):a,
|
|
20
|
-
t[f]=i?new Date(n,11,31):10),t.stubData=!0,t},correctValueZeroLevel:function(){function e(e,n){t[e]<0&&t[n]<0&&(t[n]=0),t[e]>0&&t[n]>0&&(t[e]=0)}var t=this;return"logarithmic"===t[v]||d(t[f])||d(t[p])?t:(e(p,f),e(g,_),t)},sortCategories:function(e){if(e!==!1&&this.categories)if(Array.isArray(e)){var t=this.categories.map(function(e){return e&&e.valueOf()});this.categories=e.filter(function(e){return t.indexOf(e&&e.valueOf())!==-1})}else{var n=!u(e);n&&"string"!==this.dataType?e=function(e,t){return e.valueOf()-t.valueOf()}:n&&(e=!1),e&&this.categories.sort(e)}}}},function(e,t,n){var i=n(11).inArray,o=function(){var e=[];return{add:function(t){var n=i(t,e);n===-1&&e.push(t)},remove:function(t){var n=i(t,e);n!==-1&&e.splice(n,1)},fire:function(){var t=e.pop(),n=!!t;return n&&t(),n},hasCallback:function(){return e.length>0}}}();e.exports=function(){return o.fire()},e.exports.hideCallback=o},function(e,t,n){var i=n(0).extend,o=n(49);o.inject({_formatNumberCore:function(e,t,n){if("currency"===t){n.precision=n.precision||0;var o=this.format(e,i({},n,{type:"fixedpoint"})),a=this.getCurrencySymbol().symbol.replace("$","$$$$");return o=o.replace(/^(\D*)(\d.*)/,"$1"+a+"$2")}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(){return{symbol:"$"}},getOpenXmlCurrencyFormat:function(){return"$#,##0{0}_);\\($#,##0{0}\\)"}})},function(e,t,n){var i=n(172);e.exports=new i},function(e,t,n){var i=n(115),o=n(3).each,a=n(0).extend,r=n(14),s=n(32),l={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},c="preset_",d=i.inherit({ctor:function(){this.callBase.apply(this,arguments),this._registeredPresets=[],this.resetToDefaults()},_getDefaultOptions:function(){return a(this.callBase(),{defaultAnimationDuration:400,defaultAnimationDelay:0,defaultStaggerAnimationDuration:300,defaultStaggerAnimationDelay:40,defaultStaggerAnimationStartDelay:500})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return e.phone},options:{defaultStaggerAnimationDuration:350,defaultStaggerAnimationDelay:50,defaultStaggerAnimationStartDelay:0}},{device:function(){return r.current().android||r.real.android},options:{defaultAnimationDelay:100}}])},_getPresetOptionName:function(e){return c+e},_createAndroidSlideAnimationConfig:function(e,t){var n=this,i=function(e){return{type:"slide",delay:void 0===e.delay?n.option("defaultAnimationDelay"):e.delay,duration:void 0===e.duration?n.option("defaultAnimationDuration"):e.duration}};return{enter:function(n,o){var a=n.parent().width()*t,r=o.direction,l=i(o);return l.to={left:0,opacity:1},"forward"===r?l.from={left:a,opacity:e}:"backward"===r?l.from={left:-a,opacity:e}:l.from={left:0,opacity:0},s.createAnimation(n,l)},leave:function(n,o){var a=n.parent().width()*t,r=o.direction,l=i(o);return l.from={left:0,opacity:1},"forward"===r?l.to={left:-a,opacity:e}:"backward"===r?l.to={left:a,opacity:e}:l.to={left:0,opacity:0},s.createAnimation(n,l)}}},_createOpenDoorConfig:function(){var e=this,t=function(t){return{type:"css",extraCssClasses:"dx-opendoor-animation",delay:void 0===t.delay?e.option("defaultAnimationDelay"):t.delay,duration:void 0===t.duration?e.option("defaultAnimationDuration"):t.duration}};return{enter:function(e,n){var i=n.direction,o=t(n);return o.delay="none"===i?o.delay:o.duration,o.from="dx-enter dx-opendoor-animation"+l[i],o.to="dx-enter-active",s.createAnimation(e,o)},leave:function(e,n){var i=n.direction,o=t(n);return o.from="dx-leave dx-opendoor-animation"+l[i],o.to="dx-leave-active",s.createAnimation(e,o)}}},_createWinPopConfig:function(){var e=this,t={type:"css",extraCssClasses:"dx-win-pop-animation",duration:e.option("defaultAnimationDuration")};return{enter:function(n,i){var o=t,a=i.direction;return o.delay="none"===a?e.option("defaultAnimationDelay"):e.option("defaultAnimationDuration")/2,o.from="dx-enter dx-win-pop-animation"+l[a],o.to="dx-enter-active",s.createAnimation(n,o)},leave:function(n,i){var o=t,a=i.direction;return o.delay=e.option("defaultAnimationDelay"),o.from="dx-leave dx-win-pop-animation"+l[a],o.to="dx-leave-active",s.createAnimation(n,o)}}},resetToDefaults:function(){this.clear(),this.registerDefaultPresets(),this.applyChanges()},clear:function(e){var t=this,n=[];o(this._registeredPresets,function(i,o){e&&e!==o.name?n.push(o):t.option(t._getPresetOptionName(o.name),void 0)}),this._registeredPresets=n,this.applyChanges()},registerPreset:function(e,t){this._registeredPresets.push({name:e,config:t})},applyChanges:function(){var e=this,t=[];o(this._registeredPresets,function(n,i){var o={device:i.config.device,options:{}};o.options[e._getPresetOptionName(i.name)]=i.config.animation,t.push(o)}),this._setOptionsByDevice(t)},getPreset:function(e){for(var t=e;"string"==typeof t;)t=this.option(this._getPresetOptionName(t));return t},registerDefaultPresets:function(){this.registerPreset("pop",{animation:{extraCssClasses:"dx-android-pop-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("openDoor",{animation:this._createOpenDoorConfig()}),this.registerPreset("win-pop",{animation:this._createWinPopConfig()}),this.registerPreset("fade",{animation:{extraCssClasses:"dx-fade-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("slide",{device:function(){return r.current().android||r.real.android},animation:this._createAndroidSlideAnimationConfig(1,1)}),this.registerPreset("slide",{device:function(){return!r.current().android&&!r.real.android},animation:{extraCssClasses:"dx-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-slide",{animation:{extraCssClasses:"dx-ios7-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("overflow",{animation:{extraCssClasses:"dx-overflow-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return!r.current().android&&!r.real.android},animation:{extraCssClasses:"dx-ios7-toolbar-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return r.current().android||r.real.android},animation:this._createAndroidSlideAnimationConfig(0,.4)}),this.registerPreset("stagger-fade",{animation:{extraCssClasses:"dx-fade-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-slide",{animation:{extraCssClasses:"dx-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-slide",{animation:{extraCssClasses:"dx-fade-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-drop",{animation:{extraCssClasses:"dx-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-drop",{animation:{extraCssClasses:"dx-fade-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-rise",{animation:{extraCssClasses:"dx-fade-rise-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-3d-drop",{animation:{extraCssClasses:"dx-3d-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-zoom",{animation:{extraCssClasses:"dx-fade-zoom-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}})}});t.PresetCollection=d;var u=new d;t.presets=u},function(e,t,n){var i=n(5),o=n(29),a=n(12),r=n(10),s=n(9),l="dxPointerEvents",c=r.inherit({ctor:function(e,t){this._eventName=e,this._originalEvents=s.addNamespace(t,l),this._handlerCount=0,this.noBubble=this._isNoBubble()},_isNoBubble:function(){var e=this._eventName;return"dxpointerenter"===e||"dxpointerleave"===e},_handler:function(e){var t=this._getDelegateTarget(e);return this._fireEvent({type:this._eventName,pointerType:e.pointerType||s.eventSource(e),originalEvent:e,delegateTarget:t,timeStamp:o.mozilla?(new Date).getTime():e.timeStamp})},_getDelegateTarget:function(e){var t;return this.noBubble&&(t=e.delegateTarget),t},_fireEvent:function(e){return s.fireEvent(e)},_setSelector:function(e){this._selector=this.noBubble&&e?e.selector:null},_getSelector:function(){return this._selector},setup:function(){return!0},add:function(e,t){if(this._handlerCount<=0||this.noBubble){e=this.noBubble?e:a.getDocument(),this._setSelector(t);var n=this;i.on(e,this._originalEvents,this._getSelector(),function(e){n._handler(e)})}this.noBubble||this._handlerCount++},remove:function(e){this._setSelector(e),this.noBubble||this._handlerCount--},teardown:function(e){this._handlerCount&&!this.noBubble||(e=this.noBubble?e:a.getDocument(),this._originalEvents!=="."+l&&i.off(e,this._originalEvents,this._getSelector()))},dispose:function(e){e=this.noBubble?e:a.getDocument(),i.off(e,this._originalEvents)}});e.exports=c},function(e,t,n){var i=n(0).extend,o=n(1),a=n(3),r=n(11).inArray,s=n(10),l=encodeURIComponent("json:"),c=s.inherit({_trimSeparators:function(e){return e.replace(/^[\/.]+|\/+$/g,"")},_escapeRe:function(e){return e.replace(/[^-\w]/g,"\\$1")},_checkConstraint:function(e,t){e=String(e),"string"==typeof t&&(t=new RegExp(t));var n=t.exec(e);return!(!n||n[0]!==e)},_ensureReady:function(){var e=this;return!this._patternRe&&(this._pattern=this._trimSeparators(this._pattern),this._patternRe="",this._params=[],this._segments=[],this._separators=[],this._pattern.replace(/[^\/]+/g,function(t,n){e._segments.push(t),n&&e._separators.push(e._pattern.substr(n-1,1))}),a.each(this._segments,function(t){var n=this,i=t?e._separators[t-1]:"";":"===n.charAt(0)?(n=n.substr(1),e._params.push(n),e._patternRe+="(?:"+i+"([^/]*))",n in e._defaults&&(e._patternRe+="?")):e._patternRe+=i+e._escapeRe(n)}),void(this._patternRe=new RegExp("^"+this._patternRe+"$")))},ctor:function(e,t,n){this._pattern=e||"",this._defaults=t||{},this._constraints=n||{}},parse:function(e){var t=this;this._ensureReady();var n=this._patternRe.exec(e);if(!n)return!1;var o=i({},this._defaults);return a.each(this._params,function(e){var i=e+1;n.length>=i&&n[i]&&(o[this]=t.parseSegment(n[i]))}),a.each(this._constraints,function(e){if(!t._checkConstraint(o[e],t._constraints[e]))return o=!1,!1}),o},format:function(e){var t=this,n="";this._ensureReady();var s=i({},this._defaults),l=0,c=[],d=[],u={};a.each(e,function(n,i){e[n]=t.formatSegment(i),n in s||(u[n]=!0)}),a.each(this._segments,function(n,i){if(c[n]=n?t._separators[n-1]:"",":"===i.charAt(0)){var o=i.substr(1);if(!(o in e||o in t._defaults))return c=null,!1;if(o in t._constraints&&!t._checkConstraint(e[o],t._constraints[o]))return c=null,!1;o in e?(void 0!==e[o]&&(s[o]=e[o],c[n]+=e[o],l=n),delete u[o]):o in s&&(c[n]+=s[o],d.push(n))}else c[n]+=i,l=n}),a.each(s,function(n,i){if(i&&r(":"+n,t._segments)===-1&&e[n]!==i)return c=null,!1});var h=0;if(o.isEmptyObject(u)||(n="?",a.each(u,function(t){n+=t+"="+e[t]+"&",h++}),n=n.substr(0,n.length-1)),null===c)return!1;d.length&&a.map(d,function(e){e>=l&&(c[e]="")});var p=c.join("");return p=p.replace(/\/+$/,""),{uri:p+n,unusedCount:h}},formatSegment:function(e){return Array.isArray(e)||o.isPlainObject(e)?l+encodeURIComponent(JSON.stringify(e)):encodeURIComponent(e)},parseSegment:function(e){if(e.substr(0,l.length)===l)try{return JSON.parse(decodeURIComponent(e.substr(l.length)))}catch(e){}return decodeURIComponent(e)}}),d=s.inherit({ctor:function(){this._registry=[]},_trimSeparators:function(e){return e.replace(/^[\/.]+|\/+$/g,"")},_createRoute:function(e,t,n){return new c(e,t,n)},register:function(e,t,n){this._registry.push(this._createRoute(e,t,n))},_parseQuery:function(e){var t={},n=e.split("&");return a.each(n,function(e,n){var i=n.split("=");t[i[0]]=decodeURIComponent(i[1])}),t},parse:function(e){var t,n=this;e=this._trimSeparators(e);var o=e.split("?",2),r=o[0],s=o[1];return a.each(this._registry,function(){var e=this.parse(r);if(e!==!1)return t=e,s&&(t=i(t,n._parseQuery(s))),!1}),!!t&&t},format:function(e){var t=!1,n=99999;return e=e||{},a.each(this._registry,function(){var o=i(!0,{},e),a=this.format(o);a!==!1&&n>a.unusedCount&&(n=a.unusedCount,t=a.uri)}),t}});e.exports=d,e.exports.Route=c},function(e,t,n){n(43);var i=n(26),o=n(4).noop,a=n(6).getWindow(),r=n(10),s=n(19),l=n(234),c=n(154).sessionStorage,d=n(14),u="dxPhoneJSApplication",h=r.inherit({ctor:function(e){e=e||{},this._browserAdapter=e.browserAdapter||this._createBrowserAdapter(e),this.uriChanged=s(),this._browserAdapter.popState.add(this._onPopState.bind(this))},init:o,getUri:function(){return this._browserAdapter.getHash()},setUri:function(e,t){return t?this._browserAdapter.replaceState(e):e!==this.getUri()?this._browserAdapter.pushState(e):i.Deferred().resolve().promise()},back:function(){return this._browserAdapter.back()},_onPopState:function(){this.uriChanged.fire(this.getUri())},_isBuggyAndroid2:function(){var e=d.real(),t=e.version;return"android"===e.platform&&t.length>1&&(2===t[0]&&t[1]<4||t[0]<2)},_isBuggyAndroid4:function(){var e=d.real(),t=e.version;return"android"===e.platform&&t.length>1&&4===t[0]&&0===t[1]},_isWindowsPhone8:function(){var e=d.real();return"win"===e.platform&&e.phone},_createBrowserAdapter:function(e){var t,n=e.window||a,i=n.history.replaceState&&n.history.pushState;return t=this._isWindowsPhone8()?new l.BuggyCordovaWP81BrowserAdapter(e):n!==n.top?new l.HistorylessBrowserAdapter(e):this._isBuggyAndroid4()?new l.BuggyAndroidBrowserAdapter(e):this._isBuggyAndroid2()||!i?new l.OldBrowserAdapter(e):new l.DefaultBrowserAdapter(e)}}),p=h.inherit({ctor:function(e){this.callBase(e),this.backInitiated=s(),this._rootStateHandler=null,i(a).on("unload",this._saveBrowserState)},init:function(){var e=this;return e._browserAdapter.canWorkInPureBrowser?e._initRootPage().done(function(){e._browserAdapter.isRootPage()&&e._browserAdapter.pushState("")}):i.Deferred().resolve().promise()},setUri:function(e){return this.callBase(e,!this._browserAdapter.isRootPage())},_saveBrowserState:function(){var e=c();e&&e.setItem(u,!0)},_initRootPage:function(){var e=this.getUri(),t=c();return!t||t.getItem(u)?i.Deferred().resolve().promise():(t.removeItem(u),this._browserAdapter.createRootPage(),this._browserAdapter.pushState(e))},_onPopState:function(){this._browserAdapter.isRootPage()?this._rootStateHandler?this._rootStateHandler():this.backInitiated.fire():(this._rootStateHandler||this._createRootStateHandler(),this.back())},_createRootStateHandler:function(){var e=this.getUri();this._rootStateHandler=function(){this.uriChanged.fire(e),this._rootStateHandler=null}}});t.HistoryBasedNavigationDevice=h,t.StackBasedNavigationDevice=p},function(e,t,n){t.layoutSets={},t.animationSets={"native":{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"none",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"none",device:{grade:"C"}}]},"default":{"layout-change":[{animation:"none"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"pop",device:{platform:"android"}},{animation:"openDoor",device:{deviceType:"phone",platform:"win",version:[8]}},{animation:"win-pop",device:{deviceType:"phone",platform:"win"}}],"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-drop"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}},{animation:"none",device:{platform:"win",version:[10]}}],"command-rendered-bottom":[{animation:"stagger-fade-rise"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}},{animation:"none",device:{platform:"win",version:[10]}}],"list-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]},slide:{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-drop"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-bottom":[{animation:"stagger-fade-rise"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"list-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]},zoom:{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-zoom"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-bottom":[{animation:"stagger-fade-zoom"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"list-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]}}},function(e,t,n){var i=n(10),o=n(1),a=n(3),r=n(22).compileGetter,s=n(22).toComparable,l=n(7).Deferred,c=n(36),d=n(41),u=i.inherit({toArray:function(){var e=[];for(this.reset();this.next();)e.push(this.current());return e},countable:function(){return!1}}),h=u.inherit({ctor:function(e){this.array=e,this.index=-1},next:function(){return this.index+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=u.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},_=u.inherit({ctor:function(e,t,n,i){e instanceof f||(e=new f(e,this._wrap)),this.iter=e,this.rules=[{getter:t,desc:n,compare:i}]},thenBy:function(e,t,n){var i=new _(this.sortedIter||this.iter,e,t,n);return this.sortedIter||(i.rules=this.rules.concat(i.rules)),i},next:function(){return this._ensureSorted(),this.sortedIter.next()},current:function(){return this._ensureSorted(),this.sortedIter.current()},reset:function(){delete this.sortedIter},countable:function(){return this.sortedIter||this.iter.countable()},count:function(){return this.sortedIter?this.sortedIter.count():this.iter.count()},_ensureSorted:function(){var e=this;e.sortedIter||(a.each(e.rules,function(){this.getter=r(this.getter)}),e.sortedIter=new f(new h(this.iter.toArray().sort(function(t,n){return e._compare(t,n)})),e._unwrap))},_wrap:function(e,t){return{index:t,value:e}},_unwrap:function(e){return e.value},_compare:function(e,t){var n=e.index,i=t.index;if(e=e.value,t=t.value,e===t)return n-i;for(var o=0,a=this.rules.length;o<a;o++){var r=this.rules[o],s=r.getter(e),l=r.getter(t),c=r.compare||g,d=c(s,l);if(d)return r.desc?-d:d}return n-i}}),m=function(){function e(e,n,i){return function(o){o=s(e(o));var a=t(n)?o===n:o==n;return i&&(a=!a),a}}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 a.each(e,function(){if(Array.isArray(this)||o.isFunction(this)){if(t.length>1&&n!==i)throw new c.errors.Error("E4019");t.push(m(this)),n=i,i=!0}else i=d.isConjunctiveOperator(this)}),function(e){for(var i=n,o=0;o<t.length;o++)if(t[o](e)!==n){i=!n;break}return i}},l=function(e){return o.isDefined(e)?e.toString():""},u=function(t){t=d.normalizeBinaryCriterion(t);var n=r(t[0]),i=t[1],o=t[2];switch(o=s(o),i.toLowerCase()){case"=":return e(n,o);case"<>":return e(n,o,!0);case">":return function(e){return s(n(e))>o};case"<":return function(e){return s(n(e))<o};case">=":return function(e){return s(n(e))>=o};case"<=":return function(e){return s(n(e))<=o};case"startswith":return function(e){return 0===s(l(n(e))).indexOf(o)};case"endswith":return function(e){var t=s(l(n(e))),i=l(o);return!(t.length<i.length)&&t.lastIndexOf(o)===t.length-o.length};case"contains":return function(e){return s(l(n(e))).indexOf(o)>-1};case"notcontains":return function(e){return s(l(n(e))).indexOf(o)===-1}}throw c.errors.Error("E4003",i)};return function(e){return o.isFunction(e)?e:d.isGroupCriterion(e)?i(e):d.isUnaryOperation(e)?n(e):u(e)}}(),v=p.inherit({ctor:function(e,t){this.callBase(e),this.criteria=m(t)},next:function(){for(;this.iter.next();)if(this.criteria(this.current()))return!0;return!1}}),x=u.inherit({ctor:function(e,t){this.iter=e,this.getter=t},next:function(){return this._ensureGrouped(),this.groupedIter.next()},current:function(){return this._ensureGrouped(),this.groupedIter.current()},reset:function(){delete this.groupedIter},countable:function(){return!!this.groupedIter},count:function(){return this.groupedIter.count()},_ensureGrouped:function(){if(!this.groupedIter){var e={},t=[],n=this.iter,i=r(this.getter);for(n.reset();n.next();){var o=n.current(),s=i(o);s in e?e[s].push(o):(e[s]=[o],t.push(s))}this.groupedIter=new h(a.map(t,function(t){return{key:t,items:e[t]}}))}}}),w=p.inherit({ctor:function(e,t){this.callBase(e),this.getter=r(t)},current:function(){return this.getter(this.callBase())},countable:function(){return this.iter.countable()},count:function(){return this.iter.count()}}),b=p.inherit({ctor:function(e,t,n){this.callBase(e),this.skip=Math.max(0,t),this.take=Math.max(0,n),this.pos=0},next:function(){if(this.pos>=this.skip+this.take)return!1;for(;this.pos<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)}}),y=function e(t,n){n=n||{},t instanceof u||(t=new h(t));var i=function(e){var t=n.errorHandler;t&&t(e),c._errorHandler(e)},a=function(e){var n,o=(new l).fail(i),a=e.step,r=e.finalize;try{t.reset(),n="seed"in e?e.seed:t.next()?t.current():NaN;for(var s=n;t.next();)s=a(s,t.current());o.resolve(r?r(s):s)}catch(e){o.reject(e)}return o.promise()},s=function(e,t,n){return a(arguments.length<2?{step:arguments[0]}:{seed:e,step:t,finalize:n})},p=function(e){return a(d.aggregators[e])},f=function(e){return o.isFunction(e)||Array.isArray(e)||(e=[].slice.call(arguments)),m(new w(t,e))},g=function(e){return f(r(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 b(t,e,n))},select:f,groupBy:function(e){return m(new x(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=y},function(e,t,n){var i=n(1),o=n(3),a=n(0).extend,r=n(181),s=n(97),l=s.serializePropName,c=n(36).errors,d=n(41),u=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 o=[e,"("];return t.forceLowerCase&&(n=n.indexOf("tolower(")===-1?"tolower("+n+")":n,i=i.toLowerCase()),t.reverse?o.push(i,",",n):o.push(n,",",i),o.push(")"),o.join("")}},r={"=":n("eq"),"<>":n("ne"),">":n("gt"),">=":n("ge"),"<":n("lt"),"<=":n("le"),startswith:i("startswith",{forceLowerCase:!0}),endswith:i("endswith",{forceLowerCase:!0})},u=a({},r,{contains:i("substringof",{reverse:!0,forceLowerCase:!0}),notcontains:i("not substringof",{reverse:!0,forceLowerCase:!0})}),h=a({},r,{contains:i("contains",{forceLowerCase:!0}),notcontains:i("not contains",{forceLowerCase:!0})}),p=function(n){n=d.normalizeBinaryCriterion(n);var i=n[1],o=4===e?h:u,a=o[i.toLowerCase()];if(!a)throw c.Error("E4003",i);var r=n[0],p=n[2];return t&&t[r]&&(p=s.convertPrimitiveValue(t[r],p)),a(l(r),s.serializeValue(p,e))},f=function(e){var t=e[0],n=_(e[1]);if("!"===t)return"not ("+n+")";throw c.Error("E4003",t)},g=function(e){var t,n,i=[];return o.each(e,function(e,o){if(Array.isArray(o)){if(i.length>1&&t!==n)throw new c.Error("E4019");i.push("("+_(o)+")"),t=n,n="and"}else n=d.isConjunctiveOperator(this)?"and":"or"}),i.join(" "+t+" ")},_=function(e){return Array.isArray(e[0])?g(e):d.isUnaryOperation(e)?f(e):p(e)};return function(n,i,o){return t=o,e=i,_(n)}}(),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)&&u(e[t].args[0])){var i=e[1+t];i&&"slice"===i.name&&(e[1+t]=e[t],e[t]=i)}}var n,i,o,r,c=[],d=[],f=e.expand,g=e.version||h,_=function(){return i||void 0!==o},m=function e(t){for(var n=0;n<t.length;n++){if(u(t[n]))return!0;if(Array.isArray(t[n])&&e(t[n]))return!0}return!1},v=function(){var t={};if(r||(c.length&&(t.$orderby=c.join(",")),i&&(t.$skip=i),void 0!==o&&(t.$top=o),t.$select=s.generateSelect(g,n)||void 0,t.$expand=s.generateExpand(g,f,n)||void 0),d.length){var a=d.length<2?d[0]:d,l=e&&e.fieldTypes;t.$filter=p(a,g,l)}return r&&(t.$top=0),(e.requireTotalCount||r)&&(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:a(v(),e&&e.params)},{beforeSend:e.beforeSend,jsonp:e.jsonp,withCredentials:e.withCredentials,countOnly:r,deserializeDates:e.deserializeDates,fieldTypes:e.fieldTypes,isPaged:isFinite(o)})},multiSort:function(e){var t;if(_())return!1;for(var n=0;n<e.length;n++){var i,o=e[n][0],a=!!e[n][1];if("string"!=typeof o)return!1;i=l(o),a&&(i+=" desc"),t=t||[],t.push(i)}c=t},slice:function(e,t){return!_()&&(i=e,void(o=t))},filter:function(e){return!_()&&(Array.isArray(e)||(e=[].slice.call(arguments)),!m(e)&&(d.length&&d.push("and"),void d.push(e)))},select:function(e){return!n&&!u(e)&&(Array.isArray(e)||(e=[].slice.call(arguments)),void(n=e))},count:function(){r=!0}}};r.odata=f,t.odata=f},function(e,t,n){var i=n(2),o=n(5),a=n(14),r=n(83),s=n(68),l=n(29),c=n(13),d=n(51),u=d.add,h=n(31),p=n(4).noop,f=n(1).isDefined,g=n(9),_=n(108),m=h.sign,v=Math.abs,x=0,w=1,b=2,y=10,C=0,k=180,S=function(e){return e&&"dxmousewheel"===e.type},I=function(){var e=r.styleProp("pointer-events"),t=l.msie&&parseInt(l.version,10)<11;return e&&!t},T=s(function(){var e="dx-gesture-cover",t="generic"===a.real().platform;if(!I()||!t)return p;var n=i("<div>").addClass(e).css("pointerEvents","none");return o.subscribeGlobal(n,"dxmousewheel",function(e){e.preventDefault()}),u(function(){n.appendTo("body")}),function(e,t){n.css("pointerEvents",e?"all":"none"),e&&n.css("cursor",t)}}),D=function(e,t){var n=T();n(e,t)},E=_.inherit({gesture:!0,configure:function(e){this.getElement().css("msTouchAction",e.immediate?"pinch-zoom":""),this.callBase(e)},allowInterruptionByMouseWheel:function(){return this._stage!==b},getDirection:function(){return this.direction},_cancel:function(){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=x},start:function(e){return g.needSkipEvent(e)?void this._cancel(e):(this._startEvent=g.createEvent(e),this._startEventData=g.eventData(e),this._stage=w,this._init(e),void this._setupImmediateTimer())},_setupImmediateTimer:function(){clearTimeout(this._immediateTimer),this._immediateAccepted=!1,this.immediate&&(this._immediateTimer=setTimeout(function(){this._immediateAccepted=!0}.bind(this),k))},move:function(e){if(this._stage===w&&this._directionConfirmed(e)){if(this._stage=b,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(e),this._adjustStartEvent(e),this._start(this._startEvent),this._stage===x)return;this._requestAccept(e),this._move(e),this._forgetAccept()}else this._stage===b&&(this._clearSelection(e),this._move(e))},_directionConfirmed:function(e){var t=this._getTouchBoundary(e),n=g.eventDelta(this._startEventData,g.eventData(e)),i=v(n.x),o=v(n.y),a=this._validateMove(t,i,o),r=this._validateMove(t,o,i),s=this.getDirection(e),l="both"===s&&(a||r),c="horizontal"===s&&a,d="vertical"===s&&r;
|
|
20
|
+
t[f]=i?new Date(n,11,31):10),t.stubData=!0,t},correctValueZeroLevel:function(){function e(e,n){t[e]<0&&t[n]<0&&(t[n]=0),t[e]>0&&t[n]>0&&(t[e]=0)}var t=this;return"logarithmic"===t[v]||d(t[f])||d(t[p])?t:(e(p,f),e(g,_),t)},sortCategories:function(e){if(e!==!1&&this.categories)if(Array.isArray(e)){var t=this.categories.map(function(e){return e&&e.valueOf()});this.categories=e.filter(function(e){return t.indexOf(e&&e.valueOf())!==-1})}else{var n=!u(e);n&&"string"!==this.dataType?e=function(e,t){return e.valueOf()-t.valueOf()}:n&&(e=!1),e&&this.categories.sort(e)}}}},function(e,t,n){var i=n(11).inArray,o=function(){var e=[];return{add:function(t){var n=i(t,e);n===-1&&e.push(t)},remove:function(t){var n=i(t,e);n!==-1&&e.splice(n,1)},fire:function(){var t=e.pop(),n=!!t;return n&&t(),n},hasCallback:function(){return e.length>0}}}();e.exports=function(){return o.fire()},e.exports.hideCallback=o},function(e,t,n){var i=n(0).extend,o=n(49);o.inject({_formatNumberCore:function(e,t,n){if("currency"===t){n.precision=n.precision||0;var o=this.format(e,i({},n,{type:"fixedpoint"})),a=this.getCurrencySymbol().symbol.replace("$","$$$$");return o=o.replace(/^(\D*)(\d.*)/,"$1"+a+"$2")}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(){return{symbol:"$"}},getOpenXmlCurrencyFormat:function(){return"$#,##0{0}_);\\($#,##0{0}\\)"}})},function(e,t,n){var i=n(172);e.exports=new i},function(e,t,n){var i=n(115),o=n(3).each,a=n(0).extend,r=n(14),s=n(32),l={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},c="preset_",d=i.inherit({ctor:function(){this.callBase.apply(this,arguments),this._registeredPresets=[],this.resetToDefaults()},_getDefaultOptions:function(){return a(this.callBase(),{defaultAnimationDuration:400,defaultAnimationDelay:0,defaultStaggerAnimationDuration:300,defaultStaggerAnimationDelay:40,defaultStaggerAnimationStartDelay:500})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){return e.phone},options:{defaultStaggerAnimationDuration:350,defaultStaggerAnimationDelay:50,defaultStaggerAnimationStartDelay:0}},{device:function(){return r.current().android||r.real.android},options:{defaultAnimationDelay:100}}])},_getPresetOptionName:function(e){return c+e},_createAndroidSlideAnimationConfig:function(e,t){var n=this,i=function(e){return{type:"slide",delay:void 0===e.delay?n.option("defaultAnimationDelay"):e.delay,duration:void 0===e.duration?n.option("defaultAnimationDuration"):e.duration}};return{enter:function(n,o){var a=n.parent().width()*t,r=o.direction,l=i(o);return l.to={left:0,opacity:1},"forward"===r?l.from={left:a,opacity:e}:"backward"===r?l.from={left:-a,opacity:e}:l.from={left:0,opacity:0},s.createAnimation(n,l)},leave:function(n,o){var a=n.parent().width()*t,r=o.direction,l=i(o);return l.from={left:0,opacity:1},"forward"===r?l.to={left:-a,opacity:e}:"backward"===r?l.to={left:a,opacity:e}:l.to={left:0,opacity:0},s.createAnimation(n,l)}}},_createOpenDoorConfig:function(){var e=this,t=function(t){return{type:"css",extraCssClasses:"dx-opendoor-animation",delay:void 0===t.delay?e.option("defaultAnimationDelay"):t.delay,duration:void 0===t.duration?e.option("defaultAnimationDuration"):t.duration}};return{enter:function(e,n){var i=n.direction,o=t(n);return o.delay="none"===i?o.delay:o.duration,o.from="dx-enter dx-opendoor-animation"+l[i],o.to="dx-enter-active",s.createAnimation(e,o)},leave:function(e,n){var i=n.direction,o=t(n);return o.from="dx-leave dx-opendoor-animation"+l[i],o.to="dx-leave-active",s.createAnimation(e,o)}}},_createWinPopConfig:function(){var e=this,t={type:"css",extraCssClasses:"dx-win-pop-animation",duration:e.option("defaultAnimationDuration")};return{enter:function(n,i){var o=t,a=i.direction;return o.delay="none"===a?e.option("defaultAnimationDelay"):e.option("defaultAnimationDuration")/2,o.from="dx-enter dx-win-pop-animation"+l[a],o.to="dx-enter-active",s.createAnimation(n,o)},leave:function(n,i){var o=t,a=i.direction;return o.delay=e.option("defaultAnimationDelay"),o.from="dx-leave dx-win-pop-animation"+l[a],o.to="dx-leave-active",s.createAnimation(n,o)}}},resetToDefaults:function(){this.clear(),this.registerDefaultPresets(),this.applyChanges()},clear:function(e){var t=this,n=[];o(this._registeredPresets,function(i,o){e&&e!==o.name?n.push(o):t.option(t._getPresetOptionName(o.name),void 0)}),this._registeredPresets=n,this.applyChanges()},registerPreset:function(e,t){this._registeredPresets.push({name:e,config:t})},applyChanges:function(){var e=this,t=[];o(this._registeredPresets,function(n,i){var o={device:i.config.device,options:{}};o.options[e._getPresetOptionName(i.name)]=i.config.animation,t.push(o)}),this._setOptionsByDevice(t)},getPreset:function(e){for(var t=e;"string"==typeof t;)t=this.option(this._getPresetOptionName(t));return t},registerDefaultPresets:function(){this.registerPreset("pop",{animation:{extraCssClasses:"dx-android-pop-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("openDoor",{animation:this._createOpenDoorConfig()}),this.registerPreset("win-pop",{animation:this._createWinPopConfig()}),this.registerPreset("fade",{animation:{extraCssClasses:"dx-fade-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("slide",{device:function(){return r.current().android||r.real.android},animation:this._createAndroidSlideAnimationConfig(1,1)}),this.registerPreset("slide",{device:function(){return!r.current().android&&!r.real.android},animation:{extraCssClasses:"dx-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-slide",{animation:{extraCssClasses:"dx-ios7-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("overflow",{animation:{extraCssClasses:"dx-overflow-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return!r.current().android&&!r.real.android},animation:{extraCssClasses:"dx-ios7-toolbar-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return r.current().android||r.real.android},animation:this._createAndroidSlideAnimationConfig(0,.4)}),this.registerPreset("stagger-fade",{animation:{extraCssClasses:"dx-fade-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-slide",{animation:{extraCssClasses:"dx-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-slide",{animation:{extraCssClasses:"dx-fade-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-drop",{animation:{extraCssClasses:"dx-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-drop",{animation:{extraCssClasses:"dx-fade-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-rise",{animation:{extraCssClasses:"dx-fade-rise-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-3d-drop",{animation:{extraCssClasses:"dx-3d-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-zoom",{animation:{extraCssClasses:"dx-fade-zoom-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}})}});t.PresetCollection=d;var u=new d;t.presets=u},function(e,t,n){var i=n(5),o=n(29),a=n(12),r=n(10),s=n(9),l="dxPointerEvents",c=r.inherit({ctor:function(e,t){this._eventName=e,this._originalEvents=s.addNamespace(t,l),this._handlerCount=0,this.noBubble=this._isNoBubble()},_isNoBubble:function(){var e=this._eventName;return"dxpointerenter"===e||"dxpointerleave"===e},_handler:function(e){var t=this._getDelegateTarget(e);return this._fireEvent({type:this._eventName,pointerType:e.pointerType||s.eventSource(e),originalEvent:e,delegateTarget:t,timeStamp:o.mozilla?(new Date).getTime():e.timeStamp})},_getDelegateTarget:function(e){var t;return this.noBubble&&(t=e.delegateTarget),t},_fireEvent:function(e){return s.fireEvent(e)},_setSelector:function(e){this._selector=this.noBubble&&e?e.selector:null},_getSelector:function(){return this._selector},setup:function(){return!0},add:function(e,t){if(this._handlerCount<=0||this.noBubble){e=this.noBubble?e:a.getDocument(),this._setSelector(t);var n=this;i.on(e,this._originalEvents,this._getSelector(),function(e){n._handler(e)})}this.noBubble||this._handlerCount++},remove:function(e){this._setSelector(e),this.noBubble||this._handlerCount--},teardown:function(e){this._handlerCount&&!this.noBubble||(e=this.noBubble?e:a.getDocument(),this._originalEvents!=="."+l&&i.off(e,this._originalEvents,this._getSelector()))},dispose:function(e){e=this.noBubble?e:a.getDocument(),i.off(e,this._originalEvents)}});e.exports=c},function(e,t,n){var i=n(0).extend,o=n(1),a=n(3),r=n(11).inArray,s=n(10),l=encodeURIComponent("json:"),c=s.inherit({_trimSeparators:function(e){return e.replace(/^[\/.]+|\/+$/g,"")},_escapeRe:function(e){return e.replace(/[^-\w]/g,"\\$1")},_checkConstraint:function(e,t){e=String(e),"string"==typeof t&&(t=new RegExp(t));var n=t.exec(e);return!(!n||n[0]!==e)},_ensureReady:function(){var e=this;return!this._patternRe&&(this._pattern=this._trimSeparators(this._pattern),this._patternRe="",this._params=[],this._segments=[],this._separators=[],this._pattern.replace(/[^\/]+/g,function(t,n){e._segments.push(t),n&&e._separators.push(e._pattern.substr(n-1,1))}),a.each(this._segments,function(t){var n=this,i=t?e._separators[t-1]:"";":"===n.charAt(0)?(n=n.substr(1),e._params.push(n),e._patternRe+="(?:"+i+"([^/]*))",n in e._defaults&&(e._patternRe+="?")):e._patternRe+=i+e._escapeRe(n)}),void(this._patternRe=new RegExp("^"+this._patternRe+"$")))},ctor:function(e,t,n){this._pattern=e||"",this._defaults=t||{},this._constraints=n||{}},parse:function(e){var t=this;this._ensureReady();var n=this._patternRe.exec(e);if(!n)return!1;var o=i({},this._defaults);return a.each(this._params,function(e){var i=e+1;n.length>=i&&n[i]&&(o[this]=t.parseSegment(n[i]))}),a.each(this._constraints,function(e){if(!t._checkConstraint(o[e],t._constraints[e]))return o=!1,!1}),o},format:function(e){var t=this,n="";this._ensureReady();var s=i({},this._defaults),l=0,c=[],d=[],u={};a.each(e,function(n,i){e[n]=t.formatSegment(i),n in s||(u[n]=!0)}),a.each(this._segments,function(n,i){if(c[n]=n?t._separators[n-1]:"",":"===i.charAt(0)){var o=i.substr(1);if(!(o in e||o in t._defaults))return c=null,!1;if(o in t._constraints&&!t._checkConstraint(e[o],t._constraints[o]))return c=null,!1;o in e?(void 0!==e[o]&&(s[o]=e[o],c[n]+=e[o],l=n),delete u[o]):o in s&&(c[n]+=s[o],d.push(n))}else c[n]+=i,l=n}),a.each(s,function(n,i){if(i&&r(":"+n,t._segments)===-1&&e[n]!==i)return c=null,!1});var h=0;if(o.isEmptyObject(u)||(n="?",a.each(u,function(t){n+=t+"="+e[t]+"&",h++}),n=n.substr(0,n.length-1)),null===c)return!1;d.length&&a.map(d,function(e){e>=l&&(c[e]="")});var p=c.join("");return p=p.replace(/\/+$/,""),{uri:p+n,unusedCount:h}},formatSegment:function(e){return Array.isArray(e)||o.isPlainObject(e)?l+encodeURIComponent(JSON.stringify(e)):encodeURIComponent(e)},parseSegment:function(e){if(e.substr(0,l.length)===l)try{return JSON.parse(decodeURIComponent(e.substr(l.length)))}catch(e){}return decodeURIComponent(e)}}),d=s.inherit({ctor:function(){this._registry=[]},_trimSeparators:function(e){return e.replace(/^[\/.]+|\/+$/g,"")},_createRoute:function(e,t,n){return new c(e,t,n)},register:function(e,t,n){this._registry.push(this._createRoute(e,t,n))},_parseQuery:function(e){var t={},n=e.split("&");return a.each(n,function(e,n){var i=n.split("=");t[i[0]]=decodeURIComponent(i[1])}),t},parse:function(e){var t,n=this;e=this._trimSeparators(e);var o=e.split("?",2),r=o[0],s=o[1];return a.each(this._registry,function(){var e=this.parse(r);if(e!==!1)return t=e,s&&(t=i(t,n._parseQuery(s))),!1}),!!t&&t},format:function(e){var t=!1,n=99999;return e=e||{},a.each(this._registry,function(){var o=i(!0,{},e),a=this.format(o);a!==!1&&n>a.unusedCount&&(n=a.unusedCount,t=a.uri)}),t}});e.exports=d,e.exports.Route=c},function(e,t,n){n(43);var i=n(26),o=n(4).noop,a=n(6).getWindow(),r=n(10),s=n(19),l=n(234),c=n(154).sessionStorage,d=n(14),u="dxPhoneJSApplication",h=r.inherit({ctor:function(e){e=e||{},this._browserAdapter=e.browserAdapter||this._createBrowserAdapter(e),this.uriChanged=s(),this._browserAdapter.popState.add(this._onPopState.bind(this))},init:o,getUri:function(){return this._browserAdapter.getHash()},setUri:function(e,t){return t?this._browserAdapter.replaceState(e):e!==this.getUri()?this._browserAdapter.pushState(e):i.Deferred().resolve().promise()},back:function(){return this._browserAdapter.back()},_onPopState:function(){this.uriChanged.fire(this.getUri())},_isBuggyAndroid2:function(){var e=d.real(),t=e.version;return"android"===e.platform&&t.length>1&&(2===t[0]&&t[1]<4||t[0]<2)},_isBuggyAndroid4:function(){var e=d.real(),t=e.version;return"android"===e.platform&&t.length>1&&4===t[0]&&0===t[1]},_isWindowsPhone8:function(){var e=d.real();return"win"===e.platform&&e.phone},_createBrowserAdapter:function(e){var t,n=e.window||a,i=n.history.replaceState&&n.history.pushState;return t=this._isWindowsPhone8()?new l.BuggyCordovaWP81BrowserAdapter(e):n!==n.top?new l.HistorylessBrowserAdapter(e):this._isBuggyAndroid4()?new l.BuggyAndroidBrowserAdapter(e):this._isBuggyAndroid2()||!i?new l.OldBrowserAdapter(e):new l.DefaultBrowserAdapter(e)}}),p=h.inherit({ctor:function(e){this.callBase(e),this.backInitiated=s(),this._rootStateHandler=null,i(a).on("unload",this._saveBrowserState)},init:function(){var e=this;return e._browserAdapter.canWorkInPureBrowser?e._initRootPage().done(function(){e._browserAdapter.isRootPage()&&e._browserAdapter.pushState("")}):i.Deferred().resolve().promise()},setUri:function(e){return this.callBase(e,!this._browserAdapter.isRootPage())},_saveBrowserState:function(){var e=c();e&&e.setItem(u,!0)},_initRootPage:function(){var e=this.getUri(),t=c();return!t||t.getItem(u)?i.Deferred().resolve().promise():(t.removeItem(u),this._browserAdapter.createRootPage(),this._browserAdapter.pushState(e))},_onPopState:function(){this._browserAdapter.isRootPage()?this._rootStateHandler?this._rootStateHandler():this.backInitiated.fire():(this._rootStateHandler||this._createRootStateHandler(),this.back())},_createRootStateHandler:function(){var e=this.getUri();this._rootStateHandler=function(){this.uriChanged.fire(e),this._rootStateHandler=null}}});t.HistoryBasedNavigationDevice=h,t.StackBasedNavigationDevice=p},function(e,t,n){t.layoutSets={},t.animationSets={"native":{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"none",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"none",device:{grade:"C"}}]},"default":{"layout-change":[{animation:"none"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"pop",device:{platform:"android"}},{animation:"openDoor",device:{deviceType:"phone",platform:"win",version:[8]}},{animation:"win-pop",device:{deviceType:"phone",platform:"win"}}],"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-drop"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}},{animation:"none",device:{platform:"win",version:[10]}}],"command-rendered-bottom":[{animation:"stagger-fade-rise"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}},{animation:"none",device:{platform:"win",version:[10]}}],"list-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]},slide:{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-drop"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-bottom":[{animation:"stagger-fade-rise"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"list-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]},zoom:{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-zoom"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-bottom":[{animation:"stagger-fade-zoom"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"list-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]}}},function(e,t,n){var i=n(10),o=n(1),a=n(3),r=n(22).compileGetter,s=n(22).toComparable,l=n(7).Deferred,c=n(36),d=n(41),u=i.inherit({toArray:function(){var e=[];for(this.reset();this.next();)e.push(this.current());return e},countable:function(){return!1}}),h=u.inherit({ctor:function(e){this.array=e,this.index=-1},next:function(){return this.index+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=u.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},_=u.inherit({ctor:function(e,t,n,i){e instanceof f||(e=new f(e,this._wrap)),this.iter=e,this.rules=[{getter:t,desc:n,compare:i}]},thenBy:function(e,t,n){var i=new _(this.sortedIter||this.iter,e,t,n);return this.sortedIter||(i.rules=this.rules.concat(i.rules)),i},next:function(){return this._ensureSorted(),this.sortedIter.next()},current:function(){return this._ensureSorted(),this.sortedIter.current()},reset:function(){delete this.sortedIter},countable:function(){return this.sortedIter||this.iter.countable()},count:function(){return this.sortedIter?this.sortedIter.count():this.iter.count()},_ensureSorted:function(){var e=this;e.sortedIter||(a.each(e.rules,function(){this.getter=r(this.getter)}),e.sortedIter=new f(new h(this.iter.toArray().sort(function(t,n){return e._compare(t,n)})),e._unwrap))},_wrap:function(e,t){return{index:t,value:e}},_unwrap:function(e){return e.value},_compare:function(e,t){var n=e.index,i=t.index;if(e=e.value,t=t.value,e===t)return n-i;for(var o=0,a=this.rules.length;o<a;o++){var r=this.rules[o],s=r.getter(e),l=r.getter(t),c=r.compare||g,d=c(s,l);if(d)return r.desc?-d:d}return n-i}}),m=function(){function e(e,n,i){return function(o){o=s(e(o));var a=t(n)?o===n:o==n;return i&&(a=!a),a}}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 a.each(e,function(){if(Array.isArray(this)||o.isFunction(this)){if(t.length>1&&n!==i)throw new c.errors.Error("E4019");t.push(m(this)),n=i,i=!0}else i=d.isConjunctiveOperator(this)}),function(e){for(var i=n,o=0;o<t.length;o++)if(t[o](e)!==n){i=!n;break}return i}},l=function(e){return o.isDefined(e)?e.toString():""},u=function(t){t=d.normalizeBinaryCriterion(t);var n=r(t[0]),i=t[1],o=t[2];switch(o=s(o),i.toLowerCase()){case"=":return e(n,o);case"<>":return e(n,o,!0);case">":return function(e){return s(n(e))>o};case"<":return function(e){return s(n(e))<o};case">=":return function(e){return s(n(e))>=o};case"<=":return function(e){return s(n(e))<=o};case"startswith":return function(e){return 0===s(l(n(e))).indexOf(o)};case"endswith":return function(e){var t=s(l(n(e))),i=l(o);if(t.length<i.length)return!1;var a=t.lastIndexOf(o);return a!==-1&&a===t.length-o.length};case"contains":return function(e){return s(l(n(e))).indexOf(o)>-1};case"notcontains":return function(e){return s(l(n(e))).indexOf(o)===-1}}throw c.errors.Error("E4003",i)};return function(e){return o.isFunction(e)?e:d.isGroupCriterion(e)?i(e):d.isUnaryOperation(e)?n(e):u(e)}}(),v=p.inherit({ctor:function(e,t){this.callBase(e),this.criteria=m(t)},next:function(){for(;this.iter.next();)if(this.criteria(this.current()))return!0;return!1}}),x=u.inherit({ctor:function(e,t){this.iter=e,this.getter=t},next:function(){return this._ensureGrouped(),this.groupedIter.next()},current:function(){return this._ensureGrouped(),this.groupedIter.current()},reset:function(){delete this.groupedIter},countable:function(){return!!this.groupedIter},count:function(){return this.groupedIter.count()},_ensureGrouped:function(){if(!this.groupedIter){var e={},t=[],n=this.iter,i=r(this.getter);for(n.reset();n.next();){var o=n.current(),s=i(o);s in e?e[s].push(o):(e[s]=[o],t.push(s))}this.groupedIter=new h(a.map(t,function(t){return{key:t,items:e[t]}}))}}}),w=p.inherit({ctor:function(e,t){this.callBase(e),this.getter=r(t)},current:function(){return this.getter(this.callBase())},countable:function(){return this.iter.countable()},count:function(){return this.iter.count()}}),b=p.inherit({ctor:function(e,t,n){this.callBase(e),this.skip=Math.max(0,t),this.take=Math.max(0,n),this.pos=0},next:function(){if(this.pos>=this.skip+this.take)return!1;for(;this.pos<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)}}),y=function e(t,n){n=n||{},t instanceof u||(t=new h(t));var i=function(e){var t=n.errorHandler;t&&t(e),c._errorHandler(e)},a=function(e){var n,o=(new l).fail(i),a=e.step,r=e.finalize;try{t.reset(),n="seed"in e?e.seed:t.next()?t.current():NaN;for(var s=n;t.next();)s=a(s,t.current());o.resolve(r?r(s):s)}catch(e){o.reject(e)}return o.promise()},s=function(e,t,n){return a(arguments.length<2?{step:arguments[0]}:{seed:e,step:t,finalize:n})},p=function(e){return a(d.aggregators[e])},f=function(e){return o.isFunction(e)||Array.isArray(e)||(e=[].slice.call(arguments)),m(new w(t,e))},g=function(e){return f(r(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 b(t,e,n))},select:f,groupBy:function(e){return m(new x(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=y},function(e,t,n){var i=n(1),o=n(3),a=n(0).extend,r=n(181),s=n(97),l=s.serializePropName,c=n(36).errors,d=n(41),u=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 o=[e,"("];return t.forceLowerCase&&(n=n.indexOf("tolower(")===-1?"tolower("+n+")":n,i=i.toLowerCase()),t.reverse?o.push(i,",",n):o.push(n,",",i),o.push(")"),o.join("")}},r={"=":n("eq"),"<>":n("ne"),">":n("gt"),">=":n("ge"),"<":n("lt"),"<=":n("le"),startswith:i("startswith",{forceLowerCase:!0}),endswith:i("endswith",{forceLowerCase:!0})},u=a({},r,{contains:i("substringof",{reverse:!0,forceLowerCase:!0}),notcontains:i("not substringof",{reverse:!0,forceLowerCase:!0})}),h=a({},r,{contains:i("contains",{forceLowerCase:!0}),notcontains:i("not contains",{forceLowerCase:!0})}),p=function(n){n=d.normalizeBinaryCriterion(n);var i=n[1],o=4===e?h:u,a=o[i.toLowerCase()];if(!a)throw c.Error("E4003",i);var r=n[0],p=n[2];return t&&t[r]&&(p=s.convertPrimitiveValue(t[r],p)),a(l(r),s.serializeValue(p,e))},f=function(e){var t=e[0],n=_(e[1]);if("!"===t)return"not ("+n+")";throw c.Error("E4003",t)},g=function(e){var t,n,i=[];return o.each(e,function(e,o){if(Array.isArray(o)){if(i.length>1&&t!==n)throw new c.Error("E4019");i.push("("+_(o)+")"),t=n,n="and"}else n=d.isConjunctiveOperator(this)?"and":"or"}),i.join(" "+t+" ")},_=function(e){return Array.isArray(e[0])?g(e):d.isUnaryOperation(e)?f(e):p(e)};return function(n,i,o){return t=o,e=i,_(n)}}(),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)&&u(e[t].args[0])){var i=e[1+t];i&&"slice"===i.name&&(e[1+t]=e[t],e[t]=i)}}var n,i,o,r,c=[],d=[],f=e.expand,g=e.version||h,_=function(){return i||void 0!==o},m=function e(t){for(var n=0;n<t.length;n++){if(u(t[n]))return!0;if(Array.isArray(t[n])&&e(t[n]))return!0}return!1},v=function(){var t={};if(r||(c.length&&(t.$orderby=c.join(",")),i&&(t.$skip=i),void 0!==o&&(t.$top=o),t.$select=s.generateSelect(g,n)||void 0,t.$expand=s.generateExpand(g,f,n)||void 0),d.length){var a=d.length<2?d[0]:d,l=e&&e.fieldTypes;t.$filter=p(a,g,l)}return r&&(t.$top=0),(e.requireTotalCount||r)&&(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:a(v(),e&&e.params)},{beforeSend:e.beforeSend,jsonp:e.jsonp,withCredentials:e.withCredentials,countOnly:r,deserializeDates:e.deserializeDates,fieldTypes:e.fieldTypes,isPaged:isFinite(o)})},multiSort:function(e){var t;if(_())return!1;for(var n=0;n<e.length;n++){var i,o=e[n][0],a=!!e[n][1];if("string"!=typeof o)return!1;i=l(o),a&&(i+=" desc"),t=t||[],t.push(i)}c=t},slice:function(e,t){return!_()&&(i=e,void(o=t))},filter:function(e){return!_()&&(Array.isArray(e)||(e=[].slice.call(arguments)),!m(e)&&(d.length&&d.push("and"),void d.push(e)))},select:function(e){return!n&&!u(e)&&(Array.isArray(e)||(e=[].slice.call(arguments)),void(n=e))},count:function(){r=!0}}};r.odata=f,t.odata=f},function(e,t,n){var i=n(2),o=n(5),a=n(14),r=n(83),s=n(68),l=n(29),c=n(13),d=n(51),u=d.add,h=n(31),p=n(4).noop,f=n(1).isDefined,g=n(9),_=n(108),m=h.sign,v=Math.abs,x=0,w=1,b=2,y=10,C=0,k=180,S=function(e){return e&&"dxmousewheel"===e.type},I=function(){var e=r.styleProp("pointer-events"),t=l.msie&&parseInt(l.version,10)<11;return e&&!t},T=s(function(){var e="dx-gesture-cover",t="generic"===a.real().platform;if(!I()||!t)return p;var n=i("<div>").addClass(e).css("pointerEvents","none");return o.subscribeGlobal(n,"dxmousewheel",function(e){e.preventDefault()}),u(function(){n.appendTo("body")}),function(e,t){n.css("pointerEvents",e?"all":"none"),e&&n.css("cursor",t)}}),D=function(e,t){var n=T();n(e,t)},E=_.inherit({gesture:!0,configure:function(e){this.getElement().css("msTouchAction",e.immediate?"pinch-zoom":""),this.callBase(e)},allowInterruptionByMouseWheel:function(){return this._stage!==b},getDirection:function(){return this.direction},_cancel:function(){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=x},start:function(e){return g.needSkipEvent(e)?void this._cancel(e):(this._startEvent=g.createEvent(e),this._startEventData=g.eventData(e),this._stage=w,this._init(e),void this._setupImmediateTimer())},_setupImmediateTimer:function(){clearTimeout(this._immediateTimer),this._immediateAccepted=!1,this.immediate&&(this._immediateTimer=setTimeout(function(){this._immediateAccepted=!0}.bind(this),k))},move:function(e){if(this._stage===w&&this._directionConfirmed(e)){if(this._stage=b,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(e),this._adjustStartEvent(e),this._start(this._startEvent),this._stage===x)return;this._requestAccept(e),this._move(e),this._forgetAccept()}else this._stage===b&&(this._clearSelection(e),this._move(e))},_directionConfirmed:function(e){var t=this._getTouchBoundary(e),n=g.eventDelta(this._startEventData,g.eventData(e)),i=v(n.x),o=v(n.y),a=this._validateMove(t,i,o),r=this._validateMove(t,o,i),s=this.getDirection(e),l="both"===s&&(a||r),c="horizontal"===s&&a,d="vertical"===s&&r;
|
|
21
21
|
return l||c||d||this._immediateAccepted},_validateMove:function(e,t,n){return t&&t>=e&&(!this.immediate||t>=n)},_getTouchBoundary:function(e){return this.immediate||S(e)?C:y},_adjustStartEvent:function(e){var t=this._getTouchBoundary(e),n=g.eventDelta(this._startEventData,g.eventData(e));this._startEvent.pageX+=m(n.x)*t,this._startEvent.pageY+=m(n.y)*t},_resetActiveElement:function(){"ios"===a.real().platform&&this.getElement().find(":focus").length&&c.resetActiveElement()},_toggleGestureCover:function(e){var t=this._stage===b;t&&D(e,this.getElement().css("cursor"))},_clearSelection:function(e){S(e)||g.isTouchEvent(e)||c.clearSelection()},end:function(e){this._toggleGestureCover(!1),this._stage===b?this._end(e):this._stage===w&&this._stop(e),this._stage=x},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:p,_start:p,_move:p,_stop:p,_end:p});E.initialTouchBoundary=y,E.touchBoundary=function(e){return f(e)?void(y=e):y},e.exports=E},function(e,t,n){var i=n(2),o=n(264),a=n(5),r=n(50),s=n(8),l=n(4),c=n(13),d=n(57).focused,u=n(3).each,h=n(1).isDefined,p=n(0).extend,f=n(13).getPublicElement,g=n(21),_=n(77),m=n(103).getDefaultAlignment,v=n(15),x=n(38),w=n(9),b=n(98),y=n(18),C=n(95),k=n(60),S="dx-dropdowneditor",I="dx-dropdowneditor-input-wrapper",T="dx-dropdowneditor-button",D="dx-dropdowneditor-icon",E="dx-dropdowneditor-overlay",A="dx-dropdowneditor-overlay-flipped",B="dx-dropdowneditor-active",O="dx-dropdowneditor-button-visible",R="dx-dropdowneditor-field-clickable",M=b.inherit({_supportedKeys:function(){var e=function(e){return!!this.option("opened")&&(e.preventDefault(),!0)};return p({},this.callBase(),{tab:function(e){if(this.option("opened")){if("instantly"===this.option("applyValueMode"))return void this.close();var t=e.shiftKey?this._getLastPopupElement():this._getFirstPopupElement();t&&a.trigger(t,"focus"),e.preventDefault()}},escape:function(e){this.option("opened")&&e.preventDefault(),this.close()},upArrow:function(e){return e.preventDefault(),e.stopPropagation(),!e.altKey||(this.close(),!1)},downArrow:function(e){return e.preventDefault(),e.stopPropagation(),!e.altKey||(this._validatedOpening(),!1)},enter:function(e){return this.option("opened")&&(e.preventDefault(),this._valueChangeEventHandler(e)),!0},home:e,end:e})},_getDefaultOptions:function(){return p(this.callBase(),{value:null,onOpened:null,onClosed:null,opened:!1,acceptCustomValue:!0,applyValueMode:"instantly",deferRendering:!0,activeStateEnabled:!0,dropDownButtonTemplate:"dropDownButton",fieldTemplate:null,contentTemplate:null,openOnFieldClick:!1,showDropDownButton:!0,popupPosition:this._getDefaultPopupPosition(),onPopupInitialized:null,applyButtonText:v.format("OK"),cancelButtonText:v.format("Cancel"),buttonsLocation:"default",showPopupTitle:!1})},_getDefaultPopupPosition:function(){var e=m(this.option("rtlEnabled"));return{offset:{h:0,v:-1},my:e+" top",at:e+" bottom",collision:"flip flip"}},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){var t="generic"===e.platform,n="win"===e.platform&&e.version&&10===e.version[0];return t||n},options:{popupPosition:{offset:{v:0}}}}])},_inputWrapper:function(){return this.$element().find("."+I)},_init:function(){this.callBase(),this._initVisibilityActions(),this._initPopupInitializedAction()},_initVisibilityActions:function(){this._openAction=this._createActionByOption("onOpened",{excludeValidators:["disabled","readOnly"]}),this._closeAction=this._createActionByOption("onClosed",{excludeValidators:["disabled","readOnly"]})},_initPopupInitializedAction:function(){this._popupInitializedAction=this._createActionByOption("onPopupInitialized",{excludeValidators:["disabled","readOnly","designMode"]})},_initMarkup:function(){this.callBase(),this.$element().addClass(S),this.setAria("role","combobox")},_render:function(){this.callBase(),this._renderOpenHandler(),this._renderOpenedState()},_renderContentImpl:function(){this.option("deferRendering")||this._createPopup()},_renderInput:function(){this.callBase(),this.$element().wrapInner(i("<div>").addClass(I)),this._$container=this.$element().children().eq(0),this.setAria({haspopup:"true",autocomplete:"list"})},_readOnlyPropValue:function(){return!this.option("acceptCustomValue")||this.callBase()},_cleanFocusState:function(){this.callBase(),this.option("fieldTemplate")&&a.off(this._input(),"focusin focusout beforeactivate")},_renderField:function(){var e=this._getTemplateByOption("fieldTemplate");e&&this.option("fieldTemplate")&&this._renderTemplatedField(e,this._fieldRenderData())},_renderTemplatedField:function(e,t){var n=this,i=d(this._input());this._resetFocus(i);var o=this._$container;o.empty(),this._$dropDownButton=null,this._$clearButton=null,e.render({model:t,container:c.getPublicElement(o),onRendered:function(){if(!n._input().length)throw g.Error("E1010");n._refreshEvents(),n._refreshValueChangeEvent(),n._renderFocusState(),i&&a.trigger(n._input(),"focus")}})},_resetFocus:function(e){this._cleanFocusState(),e&&a.trigger(this._input(),"focusout")},_fieldRenderData:function(){return this.option("value")},_renderInputAddons:function(){this._renderField(),this.callBase(),this._renderDropDownButton()},_renderDropDownButton:function(){this._$dropDownButton&&(this._$dropDownButton.remove(),this._$dropDownButton=null);var e=this.option("showDropDownButton");this.$element().toggleClass(O,e),e&&(this._$dropDownButton=this._createDropDownButton(),this._attachDropDownButtonClickHandler())},_attachDropDownButtonClickHandler:function(){this.option("showDropDownButton")&&!this.option("openOnFieldClick")&&this._$dropDownButton.dxButton("option","onClick",this._openHandler.bind(this))},_initTemplates:function(){this.callBase(),this._defaultTemplates.dropDownButton=new C(function(e){var t=i("<div>").addClass(D);i(e.container).append(t)},this)},_createDropDownButton:function(){var e=i("<div>").addClass(T).prependTo(this._buttonsContainer());return this._createComponent(e,x,{focusStateEnabled:!1,hoverStateEnabled:!1,activeStateEnabled:!1,disabled:this.option("readOnly"),useInkRipple:!1,template:this._getTemplateByOption("dropDownButtonTemplate")}),e.removeClass("dx-button"),a.on(e,"mousedown",function(e){e.preventDefault()}),e},_renderOpenHandler:function(){var e=this,t=e._inputWrapper(),n=w.addNamespace(y.name,e.NAME),i=e.option("openOnFieldClick");a.off(t,n),a.on(t,n,e._getInputClickHandler(i)),e.$element().toggleClass(R,i),i&&(e._openOnFieldClickAction=e._createAction(e._openHandler.bind(e)))},_getInputClickHandler:function(e){var t=this;return e?function(e){t._executeOpenAction(e)}:function(e){t._focusInput()}},_openHandler:function(){this._toggleOpenState()},_executeOpenAction:function(e){this._openOnFieldClickAction({event:e})},_keyboardEventBindingTarget:function(){return this._input()},_focusInput:function(){return!this.option("disabled")&&(this.option("focusStateEnabled")&&!d(this._input())&&a.trigger(this._input(),"focus"),!0)},_toggleOpenState:function(e){this._focusInput()&&(this.option("readOnly")||(e=arguments.length?e:!this.option("opened"),this.option("opened",e)))},_renderOpenedState:function(){var e=this.option("opened");e&&this._createPopup(),this.$element().toggleClass(B,e),this._setPopupOption("visible",e),this.setAria({expanded:e,owns:(e||void 0)&&this._popupContentId})},_createPopup:function(){this._$popup||(this._$popup=i("<div>").addClass(E).addClass(this.option("customOverlayCssClass")).appendTo(this.$element()),this._renderPopup(),this._renderPopupContent())},_renderPopup:function(){this._popup=this._createComponent(this._$popup,k,this._popupConfig()),this._popup.on({showing:this._popupShowingHandler.bind(this),shown:this._popupShownHandler.bind(this),hiding:this._popupHidingHandler.bind(this),hidden:this._popupHiddenHandler.bind(this)}),this._popup.option("onContentReady",this._contentReadyHandler.bind(this)),this._contentReadyHandler(),this._popupContentId="dx-"+new r,this.setAria("id",this._popupContentId,this._popup.$content())},_contentReadyHandler:l.noop,_popupConfig:function(){return{onInitialized:this._popupInitializedHandler(),position:p(this.option("popupPosition"),{of:this.$element()}),showTitle:this.option("showPopupTitle"),width:"auto",height:"auto",shading:!1,closeOnTargetScroll:!0,closeOnOutsideClick:this._closeOutsideDropDownHandler.bind(this),animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},deferRendering:!1,focusStateEnabled:!1,showCloseButton:!1,toolbarItems:this._getPopupToolbarItems(),onPositioned:this._popupPositionedHandler.bind(this),fullScreen:!1}},_popupInitializedHandler:function(){if(this.option("onPopupInitialized"))return function(e){this._popupInitializedAction({popup:e.component})}.bind(this)},_popupPositionedHandler:function(e){e.position&&this._popup.overlayContent().toggleClass(A,e.position.v.flip)},_popupShowingHandler:l.noop,_popupHidingHandler:function(){this.option("opened",!1)},_popupShownHandler:function(){this._openAction(),this._$validationMessage&&this._$validationMessage.dxOverlay("option","position",this._getValidationMessagePosition())},_popupHiddenHandler:function(){this._closeAction(),this._$validationMessage&&this._$validationMessage.dxOverlay("option","position",this._getValidationMessagePosition())},_getValidationMessagePosition:function(){var e="below";if(this._popup&&this._popup.option("visible")){var t=_.setup(this.$element()).top,n=_.setup(this._popup.$content()).top;e=t+this.option("popupPosition").offset.v>n?"below":"above"}return this.callBase(e)},_renderPopupContent:function(){var e=this._getTemplateByOption("contentTemplate");if(e&&this.option("contentTemplate")){var t=this._popup.$content(),n={value:this._fieldRenderData(),component:this};t.empty(),e.render({container:c.getPublicElement(t),model:n})}},_closeOutsideDropDownHandler:function(e){var t=i(e.target),n=!!t.closest(this.$element()).length,o=!!t.closest(this._$dropDownButton).length,a=!n&&!o;return a},_clean:function(){delete this._$dropDownButton,delete this._openOnFieldClickAction,this._$popup&&(this._$popup.remove(),delete this._$popup,delete this._popup),this.callBase()},_setPopupOption:function(e,t){this._setWidgetOption("_popup",arguments)},_validatedOpening:function(){this.option("readOnly")||this._toggleOpenState(!0)},_getPopupToolbarItems:function(){return"useButtons"===this.option("applyValueMode")?this._popupToolbarItemsConfig():[]},_getFirstPopupElement:function(){return this._popup._wrapper().find(".dx-popup-done.dx-button")},_getLastPopupElement:function(){return this._popup._wrapper().find(".dx-popup-cancel.dx-button")},_popupElementTabHandler:function(e){var t=i(e.currentTarget);(e.shiftKey&&t.is(this._getFirstPopupElement())||!e.shiftKey&&t.is(this._getLastPopupElement()))&&(a.trigger(this._input(),"focus"),e.preventDefault())},_popupElementEscHandler:function(){a.trigger(this._input(),"focus"),this.close()},_popupButtonInitializedHandler:function(e){e.component.registerKeyHandler("tab",this._popupElementTabHandler.bind(this)),e.component.registerKeyHandler("escape",this._popupElementEscHandler.bind(this))},_popupToolbarItemsConfig:function(){var e=[{shortcut:"done",options:{onClick:this._applyButtonHandler.bind(this),text:this.option("applyButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}},{shortcut:"cancel",options:{onClick:this._cancelButtonHandler.bind(this),text:this.option("cancelButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}}];return this._applyButtonsLocation(e)},_applyButtonsLocation:function(e){var t=this.option("buttonsLocation"),n=e;if("default"!==t){var i=l.splitPair(t);u(n,function(e,t){p(t,{toolbar:i[0],location:i[1]})})}return n},_applyButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_cancelButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_toggleReadOnlyState:function(){this.callBase(),this._$dropDownButton&&this._$dropDownButton.dxButton("option","disabled",this.option("readOnly"))},_optionChanged:function(e){switch(e.name){case"opened":this._renderOpenedState();break;case"onOpened":case"onClosed":this._initVisibilityActions();break;case"onPopupInitialized":this._initPopupInitializedAction();break;case"fieldTemplate":h(e.value)?this._renderInputAddons():this._invalidate();break;case"showDropDownButton":case"contentTemplate":case"acceptCustomValue":case"openOnFieldClick":this._invalidate();break;case"dropDownButtonTemplate":this._renderDropDownButton();break;case"popupPosition":case"deferRendering":break;case"applyValueMode":case"applyButtonText":case"cancelButtonText":case"buttonsLocation":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"showPopupTitle":this._setPopupOption("showTitle",e.value);break;default:this.callBase(e)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)},field:function(){return f(this._input())},content:function(){return this._popup?this._popup.content():null}}).include(o);s("dxDropDownEditor",M),e.exports=M},function(e,t,n){var i={notifyObserver:function(e,t){var n=this.option("observer");n&&n.fire(e,t)},invoke:function(){var e=this.option("observer");if(e)return e.fire.apply(e,arguments)}};e.exports=i},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return void 0===e?P||O:(e=(0,y.normalizeEnum)(e),void(P=e in M?e:void 0))}function r(e,t){t=t||{},e=w(e,t.themeDefault);var n,i=t.type;return E(e)?e.slice(0):(A(e)&&(n=M[(0,y.normalizeEnum)(e)]),n||(n=M[a()]),n=n||null,i&&n?n[i].slice(0):n)}function s(e,t){var n,i={};E(t)?i.simpleSet=t.slice(0):t&&(i.simpleSet=E(t.simpleSet)?t.simpleSet.slice(0):void 0,i.indicatingSet=E(t.indicatingSet)?t.indicatingSet.slice(0):void 0,i.gradientSet=E(t.gradientSet)?t.gradientSet.slice(0):void 0,i.accentColor=t.accentColor),i.accentColor||(i.accentColor=i.simpleSet&&i.simpleSet[0]),(i.simpleSet||i.indicatingSet||i.gradientSet)&&(n=(0,y.normalizeEnum)(e),(0,C.extend)(M[n]=M[n]||{},i))}function l(e,t){return e=r(e,{themeDefault:t}),e.accentColor||e[0]}function c(e){var t=0;this.next=function(){var n=e[t++];return t===e.length&&this.reset(),n},this.reset=function(){t=0}}function d(e,t){function n(){var t=o.next();a=t?f(e,t):e.slice(0)}var i=t.useHighlight?B:0,o=new c([0,i,-i]),a=[];return{getColor:function(t){var i=a[t%e.length];return t%e.length===e.length-1&&n(),i},reset:function(){o.reset(),n()}}}function u(e){function t(e,t,n){var i=new D(e).hsl,o=i.l/100,a=n-1/n,r=o-.5*a,s=o+.5*a,l=(n-1)/2,c=t-l;return r<Math.min(.5,.9*o)&&(r=Math.min(.5,.9*o)),s>Math.max(.8,o+.15*(1-o))&&(s=Math.max(.8,o+.15*(1-o))),c<0?o-=(r-o)*c/l:o+=(s-o)*(c/l),i.l=100*o,D.prototype.fromHSL(i).toHex()}return{getColor:function(n,i){var o=e.length,a=I((i-1)/o+1),r=e[n%o];return a>1?t(r,I(n/o),a):r},reset:function(){}}}function h(e,t){function n(e,t,n,i){for(var o,a,r=Math.floor(e/t),s=e-t*r,l=n;l<n+e;)a=r,s>0&&(a+=1,s--),o=a>2?Math.floor(a/2):0,i.push(l+o),l+=a;return i.sort(function(e,t){return e-t})}function i(e,t,n){t=(n+t)%n;for(var i=0,o=t;o<2*n;o+=1){var a=(n+o)%n;if(e[a])return[e[a],i];i++}}function o(e,t){for(var n=0;n<t;n++){var o=e[n];if(!o){var a=e[n-1];if(!a)continue;var r=i(e,n,t),s=new D(r[0]);a=new D(a);for(var l=0;l<r[1];l++,n++)e[n]=a.blend(s,(l+1)/(r[1]+1)).toHex()}}return e}function a(i){if(i<=r)return e;var a=[],s=r-2,l=0,c=[];c=t.keepLastColorInEnd?n(i-2,s,1,[0,i-1]):n(i-1,r-1,1,[0]);for(var d=0;d<i;d++)c.indexOf(d)>-1&&(a[d]=e[l++]);return a=o(a,i)}var r=e.length,s=[];return{getColor:function(e,t){return t=t||r,s.length!==t&&(s=a(t)),s[e%t]},reset:function(){}}}function p(e,t,n){t=t||{};var i=(t.extensionMode||"").toLowerCase(),o=r(e,{type:t.type||"simpleSet",themeDefault:n});"alternate"===i?this._extensionStrategy=d(o,t):"extrapolate"===i?this._extensionStrategy=u(o):this._extensionStrategy=h(o,t),this.reset()}function f(e,t){var n,i=[],o=e.length;for(n=0;n<o;++n)i.push(g(e[n],t));return i}function g(e,t){var n=new D(e).alter(t),i=_(n);return(i>200||i<55)&&(n=new D(e).alter(-t/2)),n.toHex()}function _(e){return.3*e.r+.59*e.g+.11*e.b}function m(e,t,n){var i=t>0?v(r(e,{type:"gradientSet",themeDefault:n}),t):[];this.getColor=function(e){return i[e]||null}}function v(e,t){function n(e){var t=a*e,n=I(t),i=T(t);s.push(r[n].blend(r[i],t-n).toHex())}var i,o=t-1,a=e.length-1,r=[],s=[];for(i=0;i<=a;++i)r.push(new D(e[i]));if(o>0)for(i=0;i<=o;++i)n(i/o);else n(.5);return s}function x(e,t){var n=r(e,{type:"gradientSet",themeDefault:t}),i=new D(n[0]),o=new D(n[1]);this.getColor=function(e){return 0<=e&&e<=1?i.blend(o,e).toHex():null}}function w(e,t){var n=e||(void 0===P?t:a());return"default"===n&&S.default.log("W0016",'"palette"',"Default","18.1",'Use the "Office" value instead.'),n}Object.defineProperty(t,"__esModule",{value:!0}),t._DEBUG_palettes=void 0;var b;t.currentPalette=a,t.getPalette=r,t.registerPalette=s,t.getAccentColor=l,t.Palette=p,t.DiscretePalette=m,t.GradientPalette=x;var y=n(16),C=n(0),k=n(17),S=i(k),I=Math.floor,T=Math.ceil,D=n(86),E=Array.isArray,A=n(1).isString,B=50,O="material",R={simpleSet:["#5f8b95","#ba4d51","#af8a53","#955f71","#859666","#7e688c"],indicatingSet:["#a3b97c","#e1b676","#ec7f83"],gradientSet:["#5f8b95","#ba4d51"],accentColor:"#ba4d51"},M=(b={},o(b,O,{simpleSet:["#1db2f5","#f5564a","#97c95c","#ffc720","#eb3573","#a63db8"],indicatingSet:["#97c95c","#ffc720","#f5564a"],gradientSet:["#1db2f5","#97c95c"],accentColor:"#1db2f5"}),o(b,"default",R),o(b,"office",R),o(b,"harmony light",{simpleSet:["#fcb65e","#679ec5","#ad79ce","#7abd5c","#e18e92","#b6d623","#b7abea","#85dbd5"],indicatingSet:["#b6d623","#fcb65e","#e18e92"],gradientSet:["#7abd5c","#fcb65e"],accentColor:"#679ec5"}),o(b,"soft pastel",{simpleSet:["#60a69f","#78b6d9","#6682bb","#a37182","#eeba69","#90ba58","#456c68","#7565a4"],indicatingSet:["#90ba58","#eeba69","#a37182"],gradientSet:["#78b6d9","#eeba69"],accentColor:"#60a69f"}),o(b,"pastel",{simpleSet:["#bb7862","#70b3a1","#bb626a","#057d85","#ab394b","#dac599","#153459","#b1d2c6"],indicatingSet:["#70b3a1","#dac599","#bb626a"],gradientSet:["#bb7862","#70b3a1"],accentColor:"#bb7862"}),o(b,"bright",{simpleSet:["#70c92f","#f8ca00","#bd1550","#e97f02","#9d419c","#7e4452","#9ab57e","#36a3a6"],indicatingSet:["#70c92f","#f8ca00","#bd1550"],gradientSet:["#e97f02","#f8ca00"],accentColor:"#e97f02"}),o(b,"soft",{simpleSet:["#cbc87b","#9ab57e","#e55253","#7e4452","#e8c267","#565077","#6babac","#ad6082"],indicatingSet:["#9ab57e","#e8c267","#e55253"],gradientSet:["#9ab57e","#e8c267"],accentColor:"#565077"}),o(b,"ocean",{simpleSet:["#75c099","#acc371","#378a8a","#5fa26a","#064970","#38c5d2","#00a7c6","#6f84bb"],indicatingSet:["#c8e394","#7bc59d","#397c8b"],gradientSet:["#acc371","#38c5d2"],accentColor:"#378a8a"}),o(b,"vintage",{simpleSet:["#dea484","#efc59c","#cb715e","#eb9692","#a85c4c","#f2c0b5","#c96374","#dd956c"],indicatingSet:["#ffe5c6","#f4bb9d","#e57660"],gradientSet:["#efc59c","#cb715e"],accentColor:"#cb715e"}),o(b,"violet",{simpleSet:["#d1a1d1","#eeacc5","#7b5685","#7e7cad","#a13d73","#5b41ab","#e287e2","#689cc1"],indicatingSet:["#d8e2f6","#d0b2da","#d56a8a"],gradientSet:["#eeacc5","#7b5685"],accentColor:"#7b5685"}),o(b,"carmine",{simpleSet:["#fb7764","#73d47f","#fed85e","#d47683","#dde392","#757ab2"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#fb7764","#73d47f"],accentColor:"#f05b41"}),o(b,"dark moon",{simpleSet:["#4ddac1","#f4c99a","#80dd9b","#f998b3","#4aaaa0","#a5aef1"],indicatingSet:["#59d8a4","#f0ad4e","#f9517e"],gradientSet:["#4ddac1","#f4c99a"],accentColor:"#3debd3"}),o(b,"soft blue",{simpleSet:["#7ab8eb","#97da97","#facb86","#e78683","#839bda","#4db7be"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#7ab8eb","#97da97"],accentColor:"#7ab8eb"}),o(b,"dark violet",{simpleSet:["#9c63ff","#64c064","#eead51","#d2504b","#4b6bbf","#2da7b0"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#9c63ff","#64c064"],accentColor:"#9c63ff"}),o(b,"green mist",{simpleSet:["#3cbab2","#8ed962","#5b9d95","#efcc7c","#f1929f","#4d8dab"],indicatingSet:["#72d63c","#ffc852","#f74a5e"],gradientSet:["#3cbab2","#8ed962"],accentColor:"#3cbab2"}),b),P=void 0;p.prototype={constructor:p,dispose:function(){this._extensionStrategy=null},getNextColor:function(e){return this._extensionStrategy.getColor(this._currentColor++,e)},reset:function(){return this._currentColor=0,this._extensionStrategy.reset(),this}}},function(e,t,n){e.exports={events:{mouseover:"mouseover",mouseout:"mouseout",mousemove:"mousemove",touchstart:"touchstart",touchmove:"touchmove",touchend:"touchend",mousedown:"mousedown",mouseup:"mouseup",click:"click",selectSeries:"selectseries",deselectSeries:"deselectseries",selectPoint:"selectpoint",deselectPoint:"deselectpoint",showPointTooltip:"showpointtooltip",hidePointTooltip:"hidepointtooltip"},states:{hover:"hover",normal:"normal",selection:"selection",normalMark:0,hoverMark:1,selectedMark:2,applyHover:"applyHover",applySelected:"applySelected",resetItem:"resetItem"},radialLabelIndent:30,pieLabelSpacing:10,pieSeriesSpacing:4}},function(e,t,n){function i(e){return[-e,-e,e,-e,e,e,-e,e,-e,-e]}function o(e){var t=w(e);return[-t,0,0,-t,t,0,0,t,-t,0]}function a(e){var t=w(e),n=x(t/2),i=w(t/2);return[-t,-n,-n,-t,0,-i,n,-t,t,-n,i,0,t,n,n,t,0,i,-n,t,-t,n,-i,0]}function r(e){return[-e,-e,e,-e,0,e,-e,-e]}function s(e){return[-e,e,e,e,0,-e,-e,e]}var l=n(0).extend,c=n(3).each,d=n(4).noop,u=n(6),h=u.getWindow(),p=n(298),f=l,g=n(1).isDefined,_=n(16).normalizeEnum,m=Math,v=m.round,x=m.floor,w=m.ceil,b=20,y=20,C=10,k="canvas_position_default";e.exports={deleteLabel:function(){this._label.dispose(),this._label=null},_hasGraphic:function(){return this.graphic},clearVisibility:function(){var e=this,t=e.graphic;t&&t.attr("visibility")&&t.attr({visibility:null})},isVisible:function(){return this.inVisibleArea&&this.series.isVisible()},setInvisibility:function(){var e=this,t=e.graphic;t&&"hidden"!==t.attr("visibility")&&t.attr({visibility:"hidden"}),e._errorBar&&e._errorBar.attr({visibility:"hidden"}),e._label.draw(!1)},clearMarker:function(){var e=this.graphic;e&&e.attr(this._emptySettings)},_createLabel:function(){this._label=new p.Label({renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this})},_updateLabelData:function(){this._label.setData(this._getLabelFormatObject())},_updateLabelOptions:function(){!this._label&&this._createLabel(),this._label.setOptions(this._options.label)},_checkImage:function(e){return g(e)&&("string"==typeof e||g(e.url))},_fillStyle:function(){this._styles=this._options.styles},_checkSymbol:function(e,t){var n=e.symbol,i=t.symbol,o="circle"===n&&"circle"!==i||"circle"!==n&&"circle"===i,a=this._checkImage(e.image)!==this._checkImage(t.image);return!(!o&&!a)},_populatePointShape:function(e,t){switch(e){case"square":return i(t);case"polygon":return o(t);case"triangle":case"triangleDown":return r(t);case"triangleUp":return s(t);case"cross":return a(t)}},hasCoords:function(){return null!==this.x&&null!==this.y},correctValue:function(e){var t=this;t.hasValue()&&(t.value=t.properValue=t.initialValue+e,t.minValue=e)},resetCorrection:function(){this.value=this.properValue=this.initialValue,this.minValue=k},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||b,o=n.height||y;return e.image(-v(.5*i),-v(.5*o),i,o,n.url?n.url.toString():n.toString(),"center").attr({translateX:t.translateX,translateY:t.translateY,visibility:t.visibility})},_createSymbolMarker:function(e,t){var n,i=this._options.symbol;return"circle"===i?(delete t.points,n=e.circle().attr(t)):"square"!==i&&"polygon"!==i&&"triangle"!==i&&"triangleDown"!==i&&"triangleUp"!==i&&"cross"!==i||(n=e.path([],"area").attr(t).sharp()),n},_createMarker:function(e,t,n,i){var o=this,a=o._checkImage(n)?o._createImageMarker(e,i,n):o._createSymbolMarker(e,i);return a&&a.data({"chart-data-point":o}).append(t),a},_getSymbolBBox:function(e,t,n){return{x:e-n,y:t-n,width:2*n,height:2*n}},_getImageBBox:function(e,t){var n=this._options.image,i=n.width||b,o=n.height||y;return{x:e-v(i/2),y:t-v(o/2),width:i,height:o}},_getGraphicBBox:function(){var e,t=this,n=t._options,i=t.x,o=t.y;return e=n.visible?t._checkImage(n.image)?t._getImageBBox(i,o):t._getSymbolBBox(i,o,n.styles.normal.r):{x:i,y:o,width:0,height:0}},hideInsideLabel:d,_getShiftLabelCoords:function(e){var t=this._addLabelAlignmentAndOffset(e,this._getLabelCoords(e));return this._checkLabelPosition(e,t)},_drawLabel:function(){var e=this,t=e._getCustomLabelVisibility(),n=e._label,i=e._showForZeroValues()&&e.hasValue()&&t!==!1&&(e.series.getLabelVisibility()||t);n.draw(!!i)},correctLabelPosition:function(e){var t=this,n=t._getShiftLabelCoords(e);t.hideInsideLabel(e,n)||(e.setFigureToDrawConnector(t._getLabelConnector(e.pointPosition)),e.shift(v(n.x),v(n.y)))},_showForZeroValues:function(){return!0},_getLabelConnector:function(e){var t=this._getGraphicBBox(e),n=t.width/2,i=t.height/2;return{x:t.x+n,y:t.y+i,r:this._options.visible?Math.max(n,i):0}},_getPositionFromLocation:function(){return{x:this.x,y:this.y}},_isPointInVisibleArea:function(e,t){return e.minX<=t.x+t.width&&e.maxX>=t.x&&e.minY<=t.y+t.height&&e.maxY>=t.y},_checkLabelPosition:function(e,t){var n=this,i=n._getVisibleArea(),o=e.getBoundingRect(),a=n._getGraphicBBox(e.pointPosition),r=C;return n._isPointInVisibleArea(i,a)&&(n._options.rotated?(i.minX>t.x&&(t.x=a.x+a.width+r),i.maxX<t.x+o.width&&(t.x=a.x-r-o.width),i.minY>t.y&&(t.y=i.minY),i.maxY<t.y+o.height&&(t.y=i.maxY-o.height)):(i.minX>t.x&&(t.x=i.minX),i.maxX<t.x+o.width&&(t.x=i.maxX-o.width),i.minY>t.y&&(t.y=a.y+a.height+r),i.maxY<t.y+o.height&&(t.y=a.y-o.height-r))),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(),o=n._getGraphicBBox(e.pointPosition),a=C,r=o.height/2-i.height/2,s=o.width/2-i.width/2,l=o.x,c=o.y;switch(t){case"left":l-=i.width+a,c+=r;break;case"right":l+=o.width+a,c+=r;break;case"top":l+=s,c-=i.height+a;break;case"bottom":l+=s,c+=o.height+a;break;case"inside":l+=s,c+=r}return{x:l,y:c}},_drawMarker:function(e,t,n){var i=this,o=i._options,a=i._getTranslates(n),r=i._getStyle();i.graphic=i._createMarker(e,t,o.image,f({translateX:a.x,translateY:a.y,points:i._populatePointShape(o.symbol,r.r)},r))},_getErrorBarSettings:function(){return{visibility:"visible"}},_drawErrorBar:function(e,t){if(this._options.errorBars){var n,i=this,o=i._options,a=o.errorBars,r=[],s=i._errorBarPos,l=i._highErrorCoord,d=i._lowErrorCoord,u=_(a.displayMode),h="high"===u,p="low"===u,f=x(parseInt(a.edgeLength)/2),m=(h||!g(d))&&g(l)&&!p,v=(p||!g(l))&&g(d)&&!h;m&&(d=i._baseErrorBarPos),v&&(l=i._baseErrorBarPos),"none"!==u&&g(l)&&g(d)&&g(s)?(!v&&r.push([s-f,l,s+f,l]),r.push([s,l,s,d]),!m&&r.push([s+f,d,s-f,d]),o.rotated&&c(r,function(e,t){t.reverse()}),n=i._getErrorBarSettings(a),i._errorBar?(n.points=r,i._errorBar.attr(n)):i._errorBar=e.path(r,"line").attr(n).append(t)):i._errorBar&&i._errorBar.attr({visibility:"hidden"})}},getTooltipParams:function(){var e=this,t=e.graphic;return{x:e.x,y:e.y,offset:t?t.getBBox().height/2:0}},setPercentValue:function(e,t,n,i){var o=this,a=o.value/e||0,r=o.minValue/e||0,s=a-r;o._label.setDataField("percent",s),o._label.setDataField("total",t),o.series.isFullStackedSeries()&&o.hasValue()&&(o.leftHole&&(o.leftHole/=e-n,o.minLeftHole/=e-n),o.rightHole&&(o.rightHole/=e-i,o.minRightHole/=e-i),o.value=o.properValue=a,o.minValue=r?r:o.minValue)},_storeTrackerR:function(){var e,t=this,n=h.navigator,i=t._options.styles.normal.r;return e=u.hasProperty("ontouchstart")||n.msPointerEnabled&&n.msMaxTouchPoints||n.pointerEnabled&&n.maxTouchPoints?20:6,t._options.trackerR=i<e?e:i,t._options.trackerR},_translateErrorBars:function(){var e=this,t=e._options,n=t.rotated,i=t.errorBars,o=e._getValTranslator();i&&(g(e.lowError)&&(e._lowErrorCoord=o.translate(e.lowError)),g(e.highError)&&(e._highErrorCoord=o.translate(e.highError)),e._errorBarPos=x(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(k)):(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(k)),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:k},_getImageSettings:function(e){return{href:e.url||e.toString(),width:e.width||b,height:e.height||y}},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,o=n.symbol,a="square"===o,r="triangle"===o||"triangleDown"===o||"triangleUp"===o;return n.visible&&!n.image&&i?(e=t["stroke-width"]/2,(a||r?1.4*i:i)+e):0},_updateMarker:function(e,t){var n,i=this,o=i._options,a=o.image,r=i.isVisible()?{}:{visibility:"hidden"};n=i._checkImage(a)?f({},{visibility:t.visibility},r,i._getImageSettings(a)):f({},t,r,{points:i._populatePointShape(o.symbol,t.r)}),e||(n.translateX=i.x,n.translateY=i.y),i.graphic.attr(n).sharp()},_getLabelFormatObject:function(){var e=this;return{argument:e.initialArgument,value:e.initialValue,originalArgument:e.originalArgument,originalValue:e.originalValue,seriesName:e.series.name,lowErrorValue:e.lowError,highErrorValue:e.highError,point:e}},_getLabelPosition:function(){var e=this._options.rotated;return this.initialValue>0?e?"right":"top":e?"left":"bottom"},_getFormatObject:function(e){var t=this,n=t._label.getData();return 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,o=n(1).isFunction,a=n(16).normalizeEnum,r=Math.round,s={};t.getAlgorithm=function(e){return s[a(e)]||o(e)&&e||i},t.addAlgorithm=function(e,t){s[e]=t},t.setDefaultAlgorithm=function(e){i=s[e]};var l={};l[-1]=[2,0],l[1]=[0,2];var c=function(e){return e[2]-e[0]<e[3]-e[1]?0:1};t.getStaticSideIndex=c,t.buildSidesData=function(e,t,n){var i=void 0!==n?n:c(e),o=1-i,a=t[i],r=t[o],s=l[a],d=l[r];return{staticSide:e[2+i]-e[i],variedSide:e[2+o]-e[o],static1:i+s[0],static2:i+s[1],varied1:o+d[0],varied2:o+d[1],staticDir:a,variedDir:r}},t.calculateRectangles=function(e,t,n,i,o){var a,s,l,c,d=[0,0,0,0],u=i.static1,h=i.static2,p=n[u],f=i.staticDir,g=i.staticSide,_=o.sum;
|
|
22
22
|
for(d[i.varied1]=n[i.varied1],d[i.varied2]=n[i.varied1]+i.variedDir*o.side,a=t,s=t+o.count;a<s;++a)l=d.slice(),l[u]=p,c=r(g*e[a].value/_)||0,_-=e[a].value,g-=c,p+=f*c,l[h]=p,e[a].rect=l;n[i.varied1]=d[i.varied2]}},function(e,t,n){function i(e){return function(t){return t.isNode()?void 0:e(t)}}function o(e){return function(t){var n=!t.isNode()&&t.parent;return n?n._groupColor=n._groupColor||e(n):void 0}}function a(e){return e.value}function r(e){return function(t){return Number(t.data[e])}}var s,l=n(16).normalizeEnum,c=n(4).noop,d={};t.getColorizer=function(e,t,n){var a=l(e.type||s),r=d[a]&&d[a](e,t,n);return r?(e.colorizeGroups?o:i)(r):c},t.addColorizer=function(e,t){d[e]=t},t.setDefaultColorizer=function(e){s=e},t.createColorCodeGetter=function(e){return e.colorCodeField?r(e.colorCodeField):a}},function(e,t,n){var i=n(6).getWindow(),o=function(){var e;try{e=i.sessionStorage}catch(e){}return e};t.sessionStorage=o},function(e,t,n){var i=n(2),o=n(5),a=n(10),r=n(11).inArray,s=n(3).each,l=n(9),c=a.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)},o.on(this._element,this._keydown,this._processFunction))},dispose:function(){this._element&&o.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&&r(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),o=n(35),a=n(10),r=n(14),s=n(61),l=n(9),c=n(25),d="dxHoverStart",u="dxhoverstart",h=l.addNamespace(c.enter,d),p="dxHoverEnd",f="dxhoverend",g=l.addNamespace(c.leave,p),_=a.inherit({noBubble:!0,ctor:function(){this._handlerArrayKeyPath=this._eventNamespace+"_HandlerStore"},setup:function(e){o.data(e,this._handlerArrayKeyPath,{})},add:function(e,t){var n=this,a=function(e){n._handler(e)};i.on(e,this._originalEventName,t.selector,a),o.data(e,this._handlerArrayKeyPath)[t.guid]=a},_handler:function(e){l.isTouchEvent(e)||r.isSimulator()||l.fireEvent({type:this._eventName,originalEvent:e,delegateTarget:e.delegateTarget})},remove:function(e,t){var n=o.data(e,this._handlerArrayKeyPath)[t.guid];i.off(e,this._originalEventName,t.selector,n)},teardown:function(e){o.removeData(e,this._handlerArrayKeyPath)}}),m=_.inherit({ctor:function(){this._eventNamespace=d,this._eventName=u,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(u,new m),s(f,new v),t.start=u,t.end=f},function(e,t,n){function i(e){return e&&_(e.then)}function o(e){return(new y).resolve(e).promise()}function a(e,t){if(!_(t))throw m.Error("E4011",e)}function r(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 a(I,s),n=s.apply(e,[t]),Array.isArray(n)?n=o(n):null===n||void 0===n?n=o([]):i(n)||r(I),k(n)}function c(e,t){var n,a=e._totalCountFunc;if(!_(a))throw m.Error("E4021");return n=a.apply(e,[t]),i(n)||(n=Number(n),isFinite(n)||r(S),n=o(n)),k(n)}function d(e,t,n){var r,s=e._byKeyFunc;return a(T,s),r=s.apply(e,[t,n]),i(r)||(r=o(r)),k(r)}function u(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 o={};"userData"in n&&(o.userData=n.userData),u(e,t,o,function(o){var a,r,s,l,c=x(o,{errorHandler:t._errorHandler}),d=[];i||(a=w(c,n),a===c?s=o.slice(0):d.push(a.enumerate().done(function(e){s=e}))),(n.requireTotalCount||i)&&(r=w(c,n,!0),r===c?l=o.length:d.push(r.count().done(function(e){l=e}))),C.apply(f,d).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){u(e,t,{},function(i){for(var o,a=t.key(),r=0,s=i.length;r<s;r++)if(o=i[r],g.keysEqual(a,t.keyOf(i[r]),n))return void e.resolve(o);e.reject(m.Error("E4009"))})}var f=n(2),g=n(41),_=n(1).isFunction,m=n(36).errors,v=n(91),x=n(144),w=n(80).queryByOptions,b=n(7),y=b.Deferred,C=b.when,k=b.fromPromise,S="totalCount",I="load",T="byKey",D="insert",E="update",A="remove",B=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[I],this._totalCountFunc=e[S],this._byKeyFunc=e[T],this._insertFunc=e[D],this._updateFunc=e[E],this._removeFunc=e[A]},createQuery:function(){throw m.Error("E4010")},clearRawDataCache:function(){delete this.__rawData},_totalCountImpl:function(e){var t=new y;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 y;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 y;return this._byKeyViaLoad()?(this._requireKey(),p(n,this,e)):d(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,r=new y;return a(D,n),t=n.apply(this,[e]),i(t)||(t=o(t)),k(t).done(function(t){r.resolve(e,t)}).fail(s(r)),r.promise()},_updateImpl:function(e,t){var n,r=this._updateFunc,l=new y;return a(E,r),n=r.apply(this,[e,t]),i(n)||(n=o()),k(n).done(function(){l.resolve(e,t)}).fail(s(l)),l.promise()},_removeImpl:function(e){var t,n=this._removeFunc,r=new y;return a(A,n),t=n.apply(this,[e]),i(t)||(t=o()),k(t).done(function(){r.resolve(e)}).fail(s(r)),r.promise()}});e.exports=B},function(e,t,n){var i=n(2),o=n(5),a=n(40),r=n(14),s=n(10),l=n(61),c=n(9),d=n(90),u="dxContexMenu",h=c.addNamespace("contextmenu",u),p=c.addNamespace(d.name,u),f="dxcontextmenu",g=s.inherit({setup:function(e){var t=i(e);o.on(t,h,this._contextMenuHandler.bind(this)),(a.touch||r.isSimulator())&&o.on(t,p,this._holdHandler.bind(this))},_holdHandler:function(e){c.isMouseEvent(e)&&!r.isSimulator()||this._fireContextMenu(e)},_contextMenuHandler:function(e){this._fireContextMenu(e)},_fireContextMenu:function(e){return c.fireEvent({type:f,originalEvent:e})},teardown:function(e){o.off(e,"."+u)}});l(f,new g),t.name=f},function(e,t,n){var i=n(2),o=n(6).getWindow(),a=n(14),r=n(8),s=n(0).extend,l=n(28),c=n(38),d=n(130),u=n(112),h=n(125),p=n(20),f=n(101),g="dx-dropdownmenu",_="dx-dropdownmenu-popup",m="dx-dropdownmenu-popup-wrapper",v="dx-dropdownmenu-list",x="dx-dropdownmenu-button",w={popupWidth:"width",popupHeight:"height",popupMaxHeight:"maxHeight"},b={buttonIcon:"icon",buttonText:"text",buttonWidth:"width",buttonHeight:"height",buttonTemplate:"template"},y=l.inherit({_supportedKeys:function(){var e={};return this.option("opened")&&this._list.option("focusedElement")||(e=this._button._supportedKeys()),s(this.callBase(),e,{tab:function(){this._popup&&this._popup.hide()}})},_getDefaultOptions:function(){return s(this.callBase(),{items:[],onItemClick:null,dataSource:null,itemTemplate:"item",buttonText:"",buttonIcon:"overflow",buttonWidth:void 0,buttonHeight:void 0,buttonTemplate:"content",onButtonClick:null,usePopover:!1,popupWidth:"auto",popupHeight:"auto",activeStateEnabled:!0,hoverStateEnabled:!0,opened:!1,deferRendering:!1,popupPosition:{my:"top center",at:"bottom center",collision:"fit flip",offset:{v:1}},popupAnimation:void 0,onItemRendered:null,menuWidget:h,popupMaxHeight:void 0,closeOnClick:!0,useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{usePopover:!0}},{device:{platform:"generic"},options:{popupPosition:{offset:{v:4}}}},{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}},{device:{platform:"android"},options:{popupPosition:{my:"top "+(this.option("rtlEnabled")?"left":"right"),at:"top "+(this.option("rtlEnabled")?"left":"right"),collision:"flipfit"},popupAnimation:{show:{type:"pop",duration:200,from:{scale:0},to:{scale:1}},hide:{type:"pop",duration:200,from:{scale:1},to:{scale:0}}}}},{device:function(){return p.isMaterial()},options:{useInkRipple:!0}}])},_initOptions:function(e){"android"===a.current().platform&&(e.popupPosition||(e.popupPosition={at:(e.usePopover?"bottom ":"top ")+(e.rtlEnabled?"left":"right")})),this.callBase(e)},_dataSourceOptions:function(){return{paginate:!1}},_init:function(){this.callBase(),this.$element().addClass(g),this._initDataSource(),this._initItemClickAction(),this._initButtonClickAction()},_initItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initButtonClickAction:function(){this._buttonClickAction=this._createActionByOption("onButtonClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.item=new f("item",this),this._defaultTemplates.content=new f("content",this)},_initMarkup:function(){this._renderButton(),this.callBase()},_render:function(){this.callBase(),this.setAria({role:"menubar",haspopup:!0,expanded:this.option("opened")})},_renderContentImpl:function(){this.option("opened")&&this._renderPopup()},_clean:function(){this._cleanFocusState(),this._popup&&(this._popup.$element().remove(),delete this._$popup)},_renderButton:function(){var e=this.$element().addClass(x),t=this._buttonOptions();this._button=this._createComponent(e,c,t)},_toggleActiveState:function(e,t,n){this._button._toggleActiveState(e,t,n)},_buttonOptions:function(){return{text:this.option("buttonText"),icon:this.option("buttonIcon"),width:this.option("buttonWidth"),height:this.option("buttonHeight"),useInkRipple:this.option("useInkRipple"),template:this.option("buttonTemplate"),focusStateEnabled:!1,onClick:function(e){this.option("opened",!this.option("opened")),this._buttonClickAction(e)}.bind(this)}},_toggleMenuVisibility:function(e){var t=void 0===e?!this._popup.option("visible"):e;e&&this._renderPopup(),this._popup.toggle(t),this.setAria("expanded",t)},_renderPopup:function(){if(!this._$popup){var e=this._$popup=i("<div>").appendTo(this.$element()),t=this._popupOptions();this._popup=this._createComponent(e,d,t)}},_popupOptions:function(){var e=!this.option("usePopover");return{onInitialized:function(t){t.component._wrapper().addClass(m).toggleClass(_,e)},visible:this.option("opened"),deferRendering:!1,contentTemplate:function(e){this._renderList(e)}.bind(this),position:this.option("popupPosition"),animation:this.option("popupAnimation"),onOptionChanged:function(e){"visible"===e.name&&this.option("opened",e.value)}.bind(this),target:this.$element(),height:this.option("popupHeight"),width:this.option("popupWidth"),maxHeight:this.option("popupMaxHeight")}},_renderList:function(e){var t=i(e),n=this._listOptions();t.addClass(v),this._list=this._createComponent(t,this.option("menuWidget"),n),this._list._getAriaTarget=function(){return this.$element()}.bind(this),this._setListDataSource();var a=.5*i(o).height();t.height()>a&&t.height(a)},_listOptions:function(){return{_keyboardProcessor:this._listProcessor,pageLoadMode:"scrollBottom",indicateLoading:!1,noDataText:"",itemTemplate:this._getTemplateByOption("itemTemplate"),onItemClick:function(e){this.option("closeOnClick")&&this.option("opened",!1),this._itemClickAction(e)}.bind(this),tabIndex:-1,focusStateEnabled:this.option("focusStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),onItemRendered:this.option("onItemRendered"),_itemAttributes:{role:"menuitem"}}},_setListDataSource:function(){this._list&&this._list.option("dataSource",this._dataSource||this.option("items")),delete this._deferRendering},_attachKeyboardEvents:function(){this.callBase.apply(this,arguments),this._listProcessor=this._keyboardProcessor&&this._keyboardProcessor.attachChildProcessor(),this._list&&this._list.option("_keyboardProcessor",this._listProcessor)},_cleanFocusState:function(){this.callBase.apply(this,arguments),delete this._listProcessor},_toggleVisibility:function(e){this.callBase(e),this._button.option("visible",e)},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"items":case"dataSource":this.option("deferRendering")&&!this.option("opened")?this._deferRendering=!0:(this._refreshDataSource(),this._setListDataSource());break;case"itemTemplate":this._list&&this._list.option(t,this._getTemplate(n));break;case"onItemClick":this._initItemClickAction();break;case"onButtonClick":this._buttonClickAction();break;case"buttonIcon":case"buttonText":case"buttonWidth":case"buttonHeight":case"buttonTemplate":this._button.option(b[t],n),this._renderPopup();break;case"popupWidth":case"popupHeight":case"popupMaxHeight":this._popup.option(w[t],n);break;case"usePopover":case"menuWidget":case"useInkRipple":this._invalidate();break;case"focusStateEnabled":case"activeStateEnabled":this._list&&this._list.option(t,n),this.callBase(e);break;case"onItemRendered":this._list&&this._list.option(t,n);break;case"opened":this._deferRendering&&(this._refreshDataSource(),this._setListDataSource()),this._toggleMenuVisibility(n);break;case"deferRendering":case"popupPosition":case"closeOnClick":break;default:this.callBase(e)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)}}).include(u);r("dxDropDownMenu",y),e.exports=y},function(e,t,n){e.exports=n(526)},function(e,t,n){e.exports=n(545)},function(e,t,n){var i=n(17),o=n(0).extend,a=n(3).each,r=n(11).inArray,s=n(23),l=s.dateToMilliseconds,c=4,d={secondly:"seconds",minutely:"minutes",hourly:"hours",daily:"days",weekly:"weeks",monthly:"months",yearly:"years"},u={bysecond:function(e,t){e.setSeconds(t)},byminute:function(e,t){e.setMinutes(t)},byhour:function(e,t){e.setHours(t)},bymonth:function(e,t){e.setMonth(t)},bymonthday:function(e,t){if(t<0){var n=new Date(e);h(n,1,-1);var i=n.getDate();i>=Math.abs(t)?h(e,1,t):h(e,2,t)}else e.setDate(t),T(e,t)},byday:function(e,t,n,i){var o=t;"DAILY"!==i&&"WEEKLY"!==i||0!==t||(o=7),t+=_[n]>o?7:0,e.setDate(e.getDate()-e.getDay()+t)},byweekno:function(e,t,n){var i=new Date(e),o=new Date(i.setMonth(0,1)),a=o.getDay()-_[n],r=o.getTime()-a*l("day"),s=a+1;s>c?e.setTime(r+7*t*l("day")):e.setTime(r+7*(t-1)*l("day"));var d=(e.getTimezoneOffset()-o.getTimezoneOffset())*l("minute");d&&e.setTime(e.getTime()+d)},byyearday:function(e,t){e.setMonth(0,1),e.setDate(t)}},h=function(e,t,n){var i=new Date(e);e.setMonth(e.getMonth()+t),e.getMonth()-i.getMonth()>t&&e.setDate(n+1),e.setDate(n+1)},p={bysecond:function(e){return e.getSeconds()},byminute:function(e){return e.getMinutes()},byhour:function(e){return e.getHours()},bymonth:function(e){return e.getMonth()},bymonthday:function(e){return e.getDate()},byday:function(e){return e.getDay()},byweekno:function(e,t){var n,i=new Date(e),o=c-i.getDay()+_[t]-1,a=l("day");e.getDay()<_[t]&&(o-=7),i.setHours(0,0,0),i.setDate(i.getDate()+o);var r=new Date(i.getFullYear(),0,1),s=(r.getTimezoneOffset()-i.getTimezoneOffset())*l("minute");return n=1+(i-r+s)/a,Math.ceil(n/7)},byyearday:function(e){var t=new Date(e.getFullYear(),0,0),n=e.getTimezoneOffset()-t.getTimezoneOffset(),i=e-t-n*l("minute"),o=l("day");return Math.floor(i/o)}},f=["freq","interval","byday","byweekno","byyearday","bymonth","bymonthday","count","until","byhour","byminute","bysecond","bysetpos","wkst"],g=["DAILY","WEEKLY","MONTHLY","YEARLY","SECONDLY","MINUTELY","HOURLY"],_={SU:0,MO:1,TU:2,WE:3,TH:4,FR:5,SA:6},m=function(){return(new Date).getTimezoneOffset()},v=function(e){var t=[];return e.rule&&(t=C(e)),!!t.length},x=function(e){var t=e.interval,n=e.freq,i={},o=d[n.toLowerCase()];return"MONTHLY"===n&&e.byday&&(o=d.daily),i[o]=t,i},w=function(e,t){for(var n=[],i=0,o=e.length;i<o;i++)n[i]=$(e[i],t);return n},b=function(e,t){var n=!1;if(!t)return n;for(var i=t.split(","),o=w(i,e),a=/\d{8}$/,r=0,s=o.length;r<s;r++)if(i[r].match(a)){var l=E(e,o[r]);0===l.years&&0===l.months&&0===l.days&&(n=!0)}else e.getTime()===o[r].getTime()&&(n=!0);return n},y=function(e,t,n,i,o){var a,r=!0;return n=n.getTime(),i.until&&i.until.getTime()<n&&(n=i.until.getTime()),i.count&&o===i.count&&(r=!1),a=e.getTime()<=n,a&&r},C=function(e){var t,n=[],i=A(e.rule),o={},r=i.rule,s=e.start;if(!i.isValid||!r.freq)return n;r.interval=x(r),t=j(r);var c=e.end?e.end.getTime()-e.start.getTime():l("day"),d={exception:e.exception,min:e.min,dateRules:t,rule:r,recurrenceStartDate:s,recurrenceEndDate:e.end,duration:c};if(t.length&&r.count){var u=0;Z(t,new Date(s),new Date(s),r).forEach(function(t,n){t<e.max&&(u++,o=k(u,o,t,n,d,!0))})}else X(t,new Date(s),r).forEach(function(t,n){for(var i=0;y(t,s,e.max,r,i);)i++,o=k(i,o,t,n,d),t=D(t,s,r,n)});return r.bysetpos&&a(o,function(e,t){o[e]=I(t,r.bysetpos)}),a(o,function(e,t){n=n.concat(t)}),n.sort(function(e,t){return e-t}),n},k=function(e,t,n,i,o,a){return t[e]||(t[e]=[]),S(n,i,o,a)&&t[e].push(n),t},S=function(e,t,n,i){if(!b(e,n.exception)){var o=s.sameDate(e,n.recurrenceEndDate)?n.recurrenceEndDate.getTime()-e.getTime():n.duration;if(e.getTime()>=n.recurrenceStartDate.getTime()&&e.getTime()+o>n.min.getTime())return i||J(e,[n.dateRules[t]],n.rule.wkst)}return!1},I=function(e,t){var n=[];return t.split(",").forEach(function(t){t=Number(t);var i=t>0?t-1:e.length+t;e[i]&&n.push(e[i])}),n},T=function(e,t){e.getDate()!==t&&e.setDate(t)},D=function(e,t,n,i){var o=new Date(e),a=!0;if(e=s.addInterval(e,n.interval),"MONTHLY"===n.freq&&!n.byday){var r=t.getDate();n.bymonthday&&(r=Number(n.bymonthday.split(",")[i]),r<0&&(o.setMonth(o.getMonth()+1,1),u.bymonthday(o,r),e=o,a=!1)),a&&T(e,r)}if("YEARLY"===n.freq){if(n.byyearday){var l=Number(n.byyearday.split(",")[i]);u.byyearday(e,l)}var c=j(n);for(var d in c[i])u[d]&&u[d](e,c[i][d],n.wkst)}return e},E=function(e,t){return{years:e.getFullYear()-t.getFullYear(),months:e.getMonth()-t.getMonth(),days:e.getDate()-t.getDate(),hours:e.getHours()-t.getHours(),minutes:e.getMinutes()-t.getMinutes(),seconds:e.getSeconds()-t.getSeconds()}},A=function(e){var t={rule:{},isValid:!1};return e&&(t.rule=N(e),t.isValid=O(t.rule,e)),t},B=[],O=function(e,t){return!(H(e)||r(e.freq,g)===-1||M(e)||F(e)||L(e)||P(e)||V(e)||R(e))||(z(t),!1)},R=function(e){var t=!1,n=e.until;return void 0===n||n instanceof Date||(t=!0),t},M=function(e){var t=!1,n=e.count;return n&&"string"==typeof n&&(t=!0),t},P=function(e){var t=!1,n=e.bymonthday;return n&&isNaN(parseInt(n))&&(t=!0),t},V=function e(t){var e=!1,n=t.bymonth;return n&&isNaN(parseInt(n))&&(e=!0),e},F=function(e){var t=!1,n=e.interval;return n&&"string"==typeof n&&(t=!0),t},L=function(e){var t=G(e),n=!1;return a(t,function(e,t){if(!_.hasOwnProperty(t))return n=!0,!1}),n},H=function(e){var t=!1;return a(e,function(e){if(r(e,f)===-1)return t=!0,!1}),t},z=function(e){r(e,B)===-1&&(i.log("W0006",e),B.push(e))},N=function(e){for(var t={},n=e.split(";"),i=0,o=n.length;i<o;i++){var a=n[i].split("="),r=a[0].toLowerCase(),s=a[1];t[r]=s}var l=parseInt(t.count);if(isNaN(l)||(t.count=l),t.interval){var c=parseInt(t.interval);isNaN(c)||(t.interval=c)}else t.interval=1;return t.freq&&t.until&&(t.until=$(t.until)),t},$=function(e,t){if("string"!=typeof e)return e;var n=e.match(/(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2}))?(Z)?/);if(!n)return null;var i=void 0!==n[8],o=t?t.getTimezoneOffset():ee.getTimeZoneOffset(),a=new(Function.prototype.bind.apply(Date,W(n)));return o=6e4*o,i&&(a=new Date(a.getTime()-o)),a},W=function(e){return e.shift(),void 0===e[3]?e.splice(3):(e.splice(3,1),e.splice(6)),e[1]--,e.unshift(null),e},G=function(e){var t=[];return e.byday&&(t=e.byday.split(",")),t},q=function(e){var t=6e4*ee.getTimeZoneOffset();return e=new Date(e.getTime()+t),e.getFullYear()+("0"+(e.getMonth()+1)).slice(-2)+("0"+e.getDate()).slice(-2)+"T"+("0"+e.getHours()).slice(-2)+("0"+e.getMinutes()).slice(-2)+("0"+e.getSeconds()).slice(-2)+"Z"},j=function(e){var t=[];if(e.wkst||(e.wkst="MO"),e.byweekno&&!e.byday){for(var n=Object.keys(_),i=0;i<_[e.wkst];i++)n.push(n.shift());e.byday=n.join(",")}for(var o in u)if(e[o]){var a=e[o].split(","),r=K(o,a);t=t.length?Y(r,t):r}return t},K=function(e,t){for(var n=[],i=0,o=t.length;i<o;i++){var a={};a[e]=U(e,t[i]),n.push(a)}return n},U=function(e,t){var n=parseInt(t);return"bymonth"===e&&(n-=1),"byday"===e&&(n=_[t]),n},Y=function(e,t){for(var n=[],i=0,a=e.length;i<a;i++)for(var r=0,s=t.length;r<s;r++)n.push(o({},e[i],t[r]));return n},X=function(e,t,n){for(var i=[],o=0,a=e.length;o<a;o++){var r=e[o],s=new Date(t);for(var l in r)u[l]&&u[l](s,r[l],n.wkst,n.freq);Array.isArray(s)?i=i.concat(s):i.push(new Date(s))}return i.length||i.push(t),i},Z=function(e,t,n,i){for(var o=[],a=i.count,r=0,l=new Date(t.setDate(1));r<a;){for(var c=X(e,l,i),d=[],u=0;u<c.length;u++)c[u].getTime()>=n.getTime()&&d.push(c[u]);var h=d.length;r+=h;var p=r-a;for(r>a&&d.splice(h-p,p),u=0;u<d.length;u++)o.push(d[u]);var f=i.interval;"days"===Object.keys(f)[0]&&(f={weeks:1}),l=s.addInterval(l,f)}return o},J=function(e,t,n){for(var i=!1,o=0;o<t.length;o++){var a=t[o],r=!0;for(var s in a){var l="bymonthday"===s&&a[s]<0;p[s]&&!l&&a[s]!==p[s](e,n)&&(r=!1)}i=i||r}return i||!t.length},Q=function(e){if(e&&e.freq){var t="";for(var n in e){var i=e[n];"interval"===n&&i<2||("until"===n&&(i=q(i)),t+=n+"="+i+";")}return t=t.substring(0,t.length-1),t.toUpperCase()}},ee={getRecurrenceString:Q,getRecurrenceRule:A,getAsciiStringByDate:q,getDatesByRecurrence:C,dateInRecurrenceRange:v,getDateByAsciiString:$,daysFromByDayRule:G,getTimeZoneOffset:m};e.exports=ee},function(e,t,n){function i(){this.reset()}function o(e,t){return e!==t?u({},e,t):u({},e)}function a(e,t){return e!==t?e.concat(t):e.slice()}function r(e){e._totalChangesOrder=e._optionChangesOrder.concat(e._layoutChangesOrder,e._customChangesOrder)}function s(e){var t=this.prototype,n=e.code;t["_change_"+n]=e.handler,e.isThemeDependent&&t._themeDependentChanges.push(n),e.option&&(t._optionChangesMap[e.option]=n),(e.isOptionChange?t._optionChangesOrder:t._customChangesOrder).push(n),r(t)}function l(){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 d(e){var t=this.prototype;t._plugins.push(e),e.members&&u(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 u=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,u=e._optionChangesOrder,h=e._layoutChangesOrder,p=e._customChangesOrder,f=t.apply(this,arguments);return e=f.prototype,e._plugins=a(n,e._plugins),e._eventsMap=o(i,e._eventsMap),e._initialChanges=a(s,e._initialChanges),e._themeDependentChanges=a(l,e._themeDependentChanges),e._optionChangesMap=o(c,e._optionChangesMap),e._optionChangesOrder=a(u,e._optionChangesOrder),e._layoutChangesOrder=a(h,e._layoutChangesOrder),e._customChangesOrder=a(p,e._customChangesOrder),r(e),f.addPlugin=d,f},e.prototype._plugins=[],e.addChange=s,e.addPlugin=d},t.changes=function(){return new i},t.expand=c},function(e,t,n){var i=n(0).extend,o=n(3).each,a=n(133),r=n(199).chart.area,s=a.chart,l=a.polar,c=i,d=o;t.chart={},t.polar={};var u={_createLegendState:function(e,t){return{fill:e.color||t,hatching:e.hatching}},_parsePointStyle:function(e,t,n){var i=e.color||t,o=s._parsePointStyle.call(this,e,i,n);return o.fill=i,o.hatching=e.hatching,o.dashStyle=e.border&&e.border.dashStyle||"solid",delete o.r,o},_applyMarkerClipRect:function(e){e["clip-path"]=null},_setGroupsSettings:function(e,t){var n=this,i={};s._setGroupsSettings.apply(n,arguments),e&&t?i=this._getAffineCoordOptions():e||(i={scaleX:1,scaleY:1,translateX:0,translateY:0}),n._markersGroup.attr(i)},_drawPoint:function(e){e.hasAnimation=e.hasAnimation&&!e.firstDrawing,e.firstDrawing=!1,s._drawPoint.call(this,e)},_getMainColor:function(){return this._options.mainSeriesColor},_createPointStyles:function(e){var t=this,n=e.color||t._getMainColor();return{normal:t._parsePointStyle(e,n,n),hover:t._parsePointStyle(e.hoverStyle||{},n,n),selection:t._parsePointStyle(e.selectionStyle||{},n,n)}},_updatePointsVisibility:function(){var e=this._options.visible;o(this._points,function(t,n){n._options.visible=e})},_getOptionsForPoint:function(){return this._options},_animate:function(e){var t=this,n=function(){t._animateComplete()},i=function(e,t){var n=e.length-1;d(e||[],function(e,i){i.animate(e===n?t:void 0,i.getMarkerCoords())})};t._animatePoints(e,n,i)},getValueRangeInitialValue:r.getValueRangeInitialValue,_patchMarginOptions:function(e){return e.checkInterval=!0,e},_defaultAggregator:"sum"};t.chart.bar=c({},s,u,{_getAffineCoordOptions:function(){var e=this._options.rotated,t=e?"X":"Y",n={scaleX:e?.001:1,scaleY:e?1:.001};return n["translate"+t]=this.getValueAxis().getTranslator().translate("canvas_position_default"),n},_animatePoints:function(e,t,n){var i=this;i._markersGroup.animate({scaleX:1,scaleY:1,translateY:0,translateX:0},void 0,t),e||n(i._drawnPoints,t)}}),t.polar.bar=c({},l,u,{_animatePoints:function(e,t,n){n(this._drawnPoints,t)},_setGroupsSettings:s._setGroupsSettings,_drawPoint:function(e,t,n){s._drawPoint.call(this,e,t,n)},_parsePointStyle:function(e){var t=u._parsePointStyle.apply(this,arguments);return t.opacity=e.opacity,t},_createGroups:s._createGroups,_setMarkerGroupSettings:function(){var e,t=this,n=t._createPointStyles(t._getMarkerGroupOptions()).normal;n.class="dxc-markers",t._applyMarkerClipRect(n),e=c({},n),delete e.opacity,t._markersGroup.attr(e)},_createLegendState:r._createLegendState})},function(e,t,n){function i(e){return!!(e&&String(e).length>0)}function o(e,t,n){e.attr({text:t}).applyEllipsis(n)&&e.setTitle(t)}function a(e){return e>=0?c(e):g}function r(e){var t;return e>=0?t={left:c(e),top:c(e),right:c(e),bottom:c(e)}:(e=e||{},t={left:a(e.left),top:a(e.top),right:a(e.right),bottom:a(e.bottom)}),t}function s(e){this._params=e,this._group=e.renderer.g().attr({"class":e.cssClass}).linkOn(e.renderer.root,{name:"title",after:"peripheral"}),this._hasText=!1}function l(e){var t=d(e)?{text:e}:e||{};return t.subtitle=d(t.subtitle)?{text:t.subtitle}:t.subtitle||{},t}var c=Number,d=n(1).isString,u=n(0).extend,h=n(16).patchFontOptions,p=n(16).enumParser(["left","center","right"]),f=n(16).enumParser(["top","bottom"]),g=10,_=3;u(s.prototype,n(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=r(e.margin)},_updateStructure:function(){var e=this,t=e._params.renderer,n=e._group,o={align:e._options.horizontalAlignment};e._titleElement||(e._titleElement=t.text().attr(o).append(n),e._subtitleElement=t.text().attr(o),e._clipRect=t.clipRect(),n.attr({"clip-path":e._clipRect.id})),n.linkAppend(),i(e._options.subtitle.text)?e._subtitleElement.append(n):e._subtitleElement.remove()},_updateTexts:function(){var e,t,n=this,o=n._options,a=o.subtitle,r=n._titleElement,s=n._subtitleElement,l="A";r.attr({text:l,y:0}).css(h(o.font)),e=r.getBBox(),n._titleTextY=e.height+e.y,r.attr({text:o.text}),e=r.getBBox(),t=-e.y,r.attr({y:t}),i(a.text)&&(t+=e.height+e.y,s.attr({text:a.text,y:0}).css(h(a.font)),t+=-s.getBBox().y-n._titleTextY+_,s.attr({y:t}))},_updateBoundingRectAlignment:function(){var e=this._boundingRect,t=this._options;e.verticalAlignment=t.verticalAlignment,e.horizontalAlignment=t.horizontalAlignment,e.cutLayoutSide=t.verticalAlignment,e.cutSide="vertical",e.position={horizontal:t.horizontalAlignment,vertical:t.verticalAlignment}},update:function(e){var t=this,n=i(e.text),o=n||n!==t._hasText;return n?(t._updateOptions(e),t._updateStructure(),t._updateTexts(),t._boundingRect={},t._updateBoundingRect(),t._updateBoundingRectAlignment()):(t._group.linkRemove(),t._boundingRect=null),t._hasText=n,o},draw:function(e,t){var n,i=this;return i._group.linkAppend(),i._correctTitleLength(e),n=i.getLayoutOptions(),n.height>t&&this.freeSpace(),i},probeDraw:function(e,t){return this.draw(e,t),this},_correctTitleLength:function(e){var t=this,n=t._options,i=n.margin,a=e-i.left-i.right;o(t._titleElement,n.text,a),t._subtitleElement&&o(t._subtitleElement,n.subtitle.text,a),t._updateBoundingRect()},getLayoutOptions:function(){return this._boundingRect||null},shift:function(e,t){var n=this,i=n.getLayoutOptions();return n._group.move(e-i.x,t-i.y),n._setClipRectSettings(),n},_setClipRectSettings:function(){var e=this.getLayoutOptions();this._clipRect.attr({x:e.x,y:e.y,width:e.width,height:e.height})},_updateBoundingRect:function(){var e,t=this,n=t._options,i=n.margin,o=t._boundingRect;e=t._group.getBBox(),e.height+=i.top+i.bottom-t._titleTextY,e.width+=i.left+i.right,e.x-=i.left,e.y+=t._titleTextY-i.top,n.placeholderSize>0&&(e.height=n.placeholderSize),o.height=e.height,o.width=e.width,o.x=e.x,o.y=e.y},layoutOptions:function(){return this._boundingRect&&{horizontalAlignment:this._boundingRect.horizontalAlignment,verticalAlignment:this._boundingRect.verticalAlignment,priority:0}},measure:function(e){return this.draw(e[0],e[1]),[this._boundingRect.width,this._boundingRect.height]},move:function(e){var t=this._boundingRect;(e[2]-e[0]<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",
|
|
23
23
|
incidentOccurred:e._incidentOccurred}),e._layout.add(e._title)},dispose:function(){this._title.dispose(),this._title=null},members:{_getTitleOptions:function(){return u(!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 o(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 a(e){var t,n,i=this;i._eventTrigger=e.eventTrigger,i._widgetRoot=e.widgetRoot,i._wrapper=d("<div>").css({position:"absolute",overflow:"visible",height:"1px",pointerEvents:"none"}).addClass(e.cssClass),i._renderer=t=new u.Renderer({pathModified:e.pathModified,container:i._wrapper[0]}),n=t.root,n.attr({"pointer-events":"none"}),i._cloud=t.path([],"area").sharp().append(n),i._shadow=t.shadowFilter(),i._textGroup=t.g().attr({align:"center"}).append(n),i._text=t.text(void 0,0,0).append(i._textGroup),i._textGroupHtml=d("<div>").css({position:"absolute",width:0,padding:0,margin:0,border:"0px solid transparent"}).appendTo(i._wrapper),i._textHtml=d("<div>").css({position:"relative",display:"inline-block",padding:0,margin:0,border:"0px solid transparent"}).appendTo(i._textGroupHtml)}var r=n(12),s=n(6),l=n(37),c=s.getWindow(),d=n(2),u=n(198),h=n(1),p=n(0).extend,f=10,g=n(16),_=n(251),m=Math.ceil,v=Math.max,x=Math.min;a.prototype={constructor:a,dispose:function(){this._wrapper.remove(),this._renderer.dispose(),this._options=this._widgetRoot=null},_getContainer:function(){var e=this._options,t=d(this._widgetRoot).closest(e.container);return 0===t.length&&(t=d(e.container)),(t.length?t:d("body")).get(0)},setOptions:function(e){e=e||{};var t=this,n=t._cloudSettings={opacity:e.opacity,filter:t._shadow.id,"stroke-width":null,stroke:null},i=e.border||{};return t._shadowSettings=p({x:"-50%",y:"-50%",width:"200%",height:"200%"},e.shadow),t._options=e,i.visible&&p(n,{"stroke-width":i.width,stroke:i.color,"stroke-opacity":i.opacity,dashStyle:i.dashStyle}),t._textFontStyles=g.patchFontOptions(e.font),t._textFontStyles.color=e.font.color,t._wrapper.css({zIndex:e.zIndex}),t._customizeTooltip=h.isFunction(e.customizeTooltip)?e.customizeTooltip:null,t},setRendererOptions:function(e){return this._renderer.setOptions(e),this._textGroupHtml.css({direction:e.rtl?"rtl":"ltr"}),this},render:function(){var e=this;i(e._wrapper),e._cloud.attr(e._cloudSettings),e._shadow.attr(e._shadowSettings);var t={};for(var n in e._textFontStyles)t[l.camelize(n)]=e._textFontStyles[n];return e._textGroupHtml.css(t),e._textGroup.css(e._textFontStyles),e._text.css(e._textFontStyles),e._eventData=null,e},update:function(e){return this.setOptions(e).render()},_prepare:function(e,t){var n=this._options,i={};return this._customizeTooltip&&(i=this._customizeTooltip.call(e,e),i=h.isPlainObject(i)?i:{},"text"in i&&(t.text=h.isDefined(i.text)?String(i.text):""),"html"in i&&(t.html=h.isDefined(i.html)?String(i.html):"")),"text"in t||"html"in t||(t.text=e.valueText||""),t.color=i.color||n.color,t.borderColor=i.borderColor||(n.border||{}).color,t.textColor=i.fontColor||(n.font||{}).color,!!t.text||!!t.html},show:function(e,t,n){var i,o,a=this,r={},s=a._options,l=s.paddingLeftRight,d=s.paddingTopBottom,u=a._textGroupHtml,h=a._textHtml,p=a._shadowSettings,f=p.offsetX,g=p.offsetY,_=2*p.blur+1,v=c.getComputedStyle;return!!a._prepare(e,r)&&(a._state=r,r.tc={},a._wrapper.appendTo(a._getContainer()),a._cloud.attr({fill:r.color,stroke:r.borderColor}),r.html?(a._text.attr({text:""}),u.css({color:r.textColor,width:a._getCanvas().width}),h.html(r.html),v?(i=v(h.get(0)),i={x:0,y:0,width:m(parseFloat(i.width)),height:m(parseFloat(i.height))}):(i=h.get(0).getBoundingClientRect(),i={x:0,y:0,width:m(i.width?i.width:i.right-i.left),height:m(i.height?i.height:i.bottom-i.top)}),u.width(i.width),u.height(i.height)):(h.html(""),a._text.css({fill:r.textColor}).attr({text:r.text}),i=a._textGroup.css({fill:r.textColor}).getBBox()),o=r.contentSize={x:i.x-l,y:i.y-d,width:i.width+2*l,height:i.height+2*d,lm:_-f>0?_-f:0,rm:_+f>0?_+f:0,tm:_-g>0?_-g:0,bm:_+g>0?_+g:0},o.fullWidth=o.width+o.lm+o.rm,o.fullHeight=o.height+o.tm+o.bm+s.arrowLength,a.move(t.x,t.y,t.offset),a._eventData&&a._eventTrigger("tooltipHidden",a._eventData),a._eventData=n,a._eventTrigger("tooltipShown",a._eventData),!0)},hide:function(){var e=this;i(e._wrapper),e._eventData&&e._eventTrigger("tooltipHidden",e._eventData),e._eventData=null},move:function(e,t,n){n=n||0;var i=this,o=i._getCanvas(),a=i._state,r=a.tc,s=a.contentSize;i._calculatePosition(e,t,n,o)&&(i._cloud.attr({points:r.cloudPoints}).move(s.lm,s.tm),a.html?i._textGroupHtml.css({left:-s.x+s.lm,top:-s.y+s.tm+r.correction}):i._textGroup.move(-s.x+s.lm,-s.y+s.tm+r.correction),i._renderer.resize("out"===r.hp?o.fullWidth+s.lm:s.fullWidth,"out"===r.vp?o.fullHeight:s.fullHeight)),n=i._wrapper.css({left:0,top:0}).offset(),i._wrapper.css({left:r.x-n.left,top:r.y-n.top,width:"out"===r.hp?o.fullWidth+s.lm:s.fullWidth})},formatValue:function(e,t){var n=t?o(this._options,t):this._options;return _(e,n)},getLocation:function(){return g.normalizeEnum(this._options.location)},isEnabled:function(){return!!this._options.enabled},isShared:function(){return!!this._options.shared},_calculatePosition:function(e,t,n,i){var o,a,r,s,l=this,c=l._options,d=c.arrowLength,u=l._state,h=u.tc,p=u.contentSize,g=p.width,_=g/2,m=p.height,v=t-i.top,x=i.top+i.height-t,w=e-i.left,b=i.width+i.left-e,y=m+d+n+p.tm,C=m+d+n+p.bm,k=g+p.lm,S=g+p.rm,I=_+p.lm,T=_+p.rm,D=0,E=[6,0],A=_+f,B=_,O=_-f,R=m+d,M="center",P="bottom";switch(a=r=m,c.verticalAlignment){case"top":P="bottom",s=!0;break;case"bottom":P="top",s=!0}switch(s||(y>v&&C>x?P="out":y>v&&(P="top")),s=!1,c.horizontalAlignment){case"left":M="right",s=!0;break;case"center":M="center",s=!0;break;case"right":M="left",s=!0}return s||(k>w&&S>b?M="out":I>w&&S<b?M="left":T>b&&k<w&&(M="right")),"out"===M?e=i.left:"left"===M?(A=f,B=O=0):"right"===M?(A=B=g,O=g-f,e-=g):"center"===M&&(e-=_),"out"===P?t=i.top:"top"===P?("out"!==M&&(D=d),E[0]=2,a=r=d,R=A,A=O,O=R,R=0,t+=n):t-=m+d+n,h.x=e-p.lm,h.y=t-p.tm,h.correction=D,(M!==h.hp||P!==h.vp)&&(h.hp=M,h.vp=P,o=[0,0+D,g,0+D,g,m+D,0,m+D],"out"!==M&&"out"!==P&&(E.splice(2,0,A,a,B,R,O,r),o.splice.apply(o,E)),h.cloudPoints=o,!0)},_getCanvas:function(){var e=this._getContainer(),t=e.getBoundingClientRect(),n=r.getDocumentElement(),i=r.getBody(),o=c.pageXOffset||n.scrollLeft||0,a=c.pageYOffset||n.scrollTop||0,s={left:o,top:a,width:n.clientWidth||0,height:n.clientHeight||0,fullWidth:v(i.scrollWidth,n.scrollWidth,i.offsetWidth,n.offsetWidth,i.clientWidth,n.clientWidth)-o,fullHeight:v(i.scrollHeight,n.scrollHeight,i.offsetHeight,n.offsetHeight,i.clientHeight,n.clientHeight)-a};return e!==i&&(o=v(s.left,s.left+t.left),a=v(s.top,s.top+t.top),s.width=x(s.width+s.left-o,t.width+(t.left>0?0:t.left)),s.height=x(s.height+s.top-a,t.height+(t.top>0?0:t.top)),s.fullWidth=s.width,s.fullHeight=s.height,s.left=o,s.top=a),s}},t.Tooltip=a,t.plugin={name:"tooltip",init:function(){this._initTooltip()},dispose:function(){this._disposeTooltip()},members:{_initTooltip:function(){this._tooltip=new t.Tooltip({cssClass:this._rootClassPrefix+"-tooltip",eventTrigger:this._eventTrigger,pathModified:this.option("pathModified"),widgetRoot:this.element()})},_disposeTooltip:function(){this._tooltip.dispose(),this._tooltip=null},_hideTooltip:function(){this._tooltip.hide()},_onRender:function(){this._$element.is(":visible")||this._hideTooltip()},_setTooltipRendererOptions:function(){this._tooltip.setRendererOptions(this._getRendererOptions())},_setTooltipOptions:function(){this._tooltip.update(this._getOption("tooltip"))}},customize:function(e){var t=e.prototype;t._eventsMap.onTooltipShown={name:"tooltipShown"},t._eventsMap.onTooltipHidden={name:"tooltipHidden"},e.addChange({code:"TOOLTIP_RENDERER",handler:function(){this._setTooltipRendererOptions()},isThemeDependent:!0,isOptionChange:!0}),e.addChange({code:"TOOLTIP",handler:function(){this._setTooltipOptions()},isThemeDependent:!0,isOptionChange:!0,option:"tooltip"})}}},function(e,t,n){function i(e){var t=this,n=e.renderer;t._group=n.g().attr({"class":"dx-loading-indicator"}).linkOn(n.root,{name:"loading-indicator",after:"peripheral"}),t._rect=n.rect().attr({opacity:0}).append(t._group),t._text=n.text().attr({align:"center"}).append(t._group),t._createStates(e.eventTrigger,t._group,n.root,e.notify)}var o=n(16).patchFontOptions,a=0,r=1,s="linear",l=400,c="loadingIndicatorReady";i.prototype={constructor:i,_createStates:function(e,t,n,i){var o=this;o._states=[{opacity:0,start:function(){i(!1)},complete:function(){t.linkRemove(),n.css({"pointer-events":""}),e(c)}},{opacity:.85,start:function(){t.linkAppend(),n.css({"pointer-events":"none"}),i(!0)},complete:function(){e(c)}}],o._state=a},setSize:function(e){var t=e.width,n=e.height;this._rect.attr({width:t,height:n}),this._text.attr({x:t/2,y:n/2})},setOptions:function(e){this._rect.attr({fill:e.backgroundColor}),this._text.css(o(e.font)).attr({text:e.text}),this[e.show?"show":"hide"]()},dispose:function(){var e=this;e._group.linkRemove().linkOff(),e._group=e._rect=e._text=e._states=null},_transit:function(e){var t,n=this;n._state!==e&&(n._state=e,n._isHiding=!1,t=n._states[e],n._rect.stopAnimation().animate({opacity:t.opacity},{complete:t.complete,easing:s,duration:l,unstoppable:!0}),n._noHiding=!0,t.start(),n._noHiding=!1)},show:function(){this._transit(r)},hide:function(){this._transit(a)},scheduleHiding:function(){this._noHiding||(this._isHiding=!0)},fulfillHiding:function(){this._isHiding&&this.hide()}},t.LoadingIndicator=i,t.plugin={name:"loading_indicator",init:function(){function e(e){n._skipLoadingIndicatorOptions=!0,n.option("loadingIndicator",{show:e}),n._skipLoadingIndicatorOptions=!1,e&&n._hideTooltip&&n._hideTooltip()}var n=this;n._loadingIndicator=new t.LoadingIndicator({eventTrigger:n._eventTrigger,renderer:n._renderer,notify:e}),n._scheduleLoadingIndicatorHiding()},dispose:function(){this._loadingIndicator.dispose(),this._loadingIndicator=null},members:{_scheduleLoadingIndicatorHiding:function(){this._loadingIndicator.scheduleHiding()},_fulfillLoadingIndicatorHiding:function(){this._loadingIndicator.fulfillHiding()},showLoadingIndicator:function(){this._loadingIndicator.show()},hideLoadingIndicator:function(){this._loadingIndicator.hide()},_onBeginUpdate:function(){this._scheduleLoadingIndicatorHiding()}},customize:function(e){var t=e.prototype;if(t._dataSourceChangedHandler){var n=t._dataSourceChangedHandler;t._dataSourceChangedHandler=function(){this._scheduleLoadingIndicatorHiding(),n.apply(this,arguments)}}var i=t._setContentSize;t._setContentSize=function(){i.apply(this,arguments),this._loadingIndicator.setSize(this._canvas)},e.addChange({code:"LOADING_INDICATOR",handler:function(){this._skipLoadingIndicatorOptions||this._loadingIndicator.setOptions(this._getOption("loadingIndicator")),this._scheduleLoadingIndicatorHiding()},isThemeDependent:!0,option:"loadingIndicator",isOptionChange:!0}),t._eventsMap.onLoadingIndicatorReady={name:"loadingIndicatorReady"};var o=t._drawn;t._drawn=function(){o.apply(this,arguments),this._dataIsReady()&&this._fulfillLoadingIndicatorHiding()}}}},function(e,t,n){function i(e,t){var n,i,o,a=e.length;for(n=0;n<a;++n)if(i=e[n]!==e[n],o=t[n]!==t[n],!(i&&o||e[n]===t[n]))return!1;return!0}function o(e){return p(e)?{text:e}:e||{}}var a=Number,r=n(16).getAppropriateFormat,s=n(0).extend,l=n(435),c=s,d=n(132),u=n(16).normalizeEnum,h=n(696),p=n(1).isString,f=d.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 o=e.getTooltipParameters(),a=t.getRootOffset(),r=c({value:o.value,valueText:n.formatValue(o.value),color:o.color},i);return n.show(r,{x:o.x+a.left,y:o.y+a.top,offset:o.offset},{target:i})},"tooltip-hide":function(){return n.hide()}})},_dispose:function(){this._cleanCore(),this.callBase.apply(this,arguments)},_disposeCore:function(){var e=this;e._themeManager.dispose(),e._tracker.dispose(),e._translator=e._tracker=null},_cleanCore:function(){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:a(t.duration),easing:t.easing})),e._containerBackgroundColor=e.option("containerBackgroundColor")||e._themeManager.theme().containerBackgroundColor},_setupDefaultFormat:function(){var e=this._translator.getDomain();this._defaultFormatOptions=r(e[0],e[1],this._getApproximateScreenRange())},_setupDomainCore:null,_calculateSize:null,_cleanContent:null,_renderContent:null,_setupCodomain:null,_getApproximateScreenRange:null,_factory:{createTranslator:function(){return new l.Translator1D},createTracker:function(e){return new h(e)}}});t.dxBaseGauge=f;var g=n(251),_=function(e,t,n){t=t||{};var i,o=g(e,t);return"function"==typeof t.customizeText?(i=c({value:e,valueText:o},n),String(t.customizeText.call(i,i))):o},m=function(e,t){var n=_(e.getDomainStart(),t),i=_(e.getDomainEnd(),t);return n.length>=i.length?n:i};t.formatValue=_,t.getSampleText=m,t.compareArrays=function(e,t){return e&&t&&e.length===t.length&&i(e,t)},f.addPlugin(n(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=o(n.option("title"));return n._suppressDeprecatedWarnings(),i.subtitle=s(o(i.subtitle),o(n.option("subtitle"))),n._resumeDeprecatedWarnings(),e=c(!0,{},n._themeManager.theme("title"),i),e.position&&(t=u(e.position).split("-"),e.verticalAlignment=t[0],e.horizontalAlignment=t[1]),e}},function(e,t,n){function i(e,t){var n=e.ctx;n.suspend(),n.change(t),n.resume()}function o(e,t){var n,i=e.nodes,a=i&&i.length;for(n=0;n<a;++n)t.push(i[n].proxy),o(i[n],t)}function a(e,t){for(var n=t-e.value;e;)e.value+=n,e=e.parent}function r(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,o=[];for(e=0;e<i;++e)o.push(n[e].proxy);return o},getAllNodes:function(){var e=[];return o(t[this._id],e),e},isLeaf:function(){return!t[this._id].isNode()},isActive:function(){return t[this._id].isActive()},value:function(e){var n,o=t[this._id];return void 0!==e?(a(o,e>0?Number(e):0),i(o,["TILING"]),n=this):n=o.value,n},label:function(e){var n,o=t[this._id];return void 0!==e?(o.customLabel=e?String(e):null,i(o,["LABELS"]),n=this):n=o.customLabel||o.label,n},customize:function(e){var n=t[this._id];return e&&(n._custom=n._custom||{},c(!0,n._custom,e),n._partialState=n._partialLabelState=null),i(n,["TILES","LABELS"]),this},resetCustomization:function(){var e=t[this._id];return e._custom=e._partialState=e._partialLabelState=null,i(e,["TILES","LABELS"]),this}},n._extendProxyType(e.prototype),n._handlers.beginBuildNodes=function(){t=n._nodes,new e(n._root)},n._handlers.buildNode=function(t){new e(t)},n._handlers.endBuildNodes=function(){n._eventTrigger("nodesInitialized",{root:n._root.proxy})}},s._extendProxyType=n(4).noop;var d=s._resetNodes;s._resetNodes=function(){d.call(this),this._eventTrigger("nodesRendering",{node:this._topNode.proxy})};var u=l.updateStyles;l.updateStyles=function(){var e=this;u.call(e),e._custom&&(e._partialState=!e.ctx.forceReset&&e._partialState||e.ctx.calculateState(e._custom),c(!0,e.state,e._partialState))};var h=l.updateLabelStyle;l.updateLabelStyle=function(){var e=this,t=e._custom;h.call(e),t&&t.label&&(e._partialLabelState=!e.ctx.forceReset&&e._partialLabelState||r(e,t.label),e.labelState=c(!0,{},e.labelState,e._partialLabelState))},s.getRootNode=function(){return this._root.proxy},s.resetNodes=function(){var e=this._context;return e.suspend(),e.change(["NODES_CREATE"]),e.resume(),this}},function(e,t,n){var i=n(11).inArray,o=n(6),a=o.hasWindow()?o.getWindow().WeakMap:WeakMap;a||(a=function(){var e=[],t=[];this.set=function(n,o){var a=i(n,e);a===-1?(e.push(n),t.push(o)):t[a]=o},this.get=function(n){var o=i(n,e);if(o!==-1)return t[o]},this.has=function(t){var n=i(t,e);return n!==-1},this.delete=function(n){var o=i(n,e);o!==-1&&(e.splice(o,1),t.splice(o,1))}}),e.exports=a},function(e,t,n){var i=n(3).each,o=n(19),a=function(){var e=[],t=o();this.add=function(n){i(e,function(e,t){n.apply(n,t)}),t.add(n)},this.remove=function(e){t.remove(e)},this.fire=function(){e.push(arguments),t.fire.apply(t,arguments)}};e.exports=a},function(e,t,n){function i(e){function t(){for(;r.length;){s=!0;var e=r.shift(),n=e();if(void 0!==n){if(n.then)return void a(n).always(t);throw o.Error("E0015")}}s=!1}function n(n,i){e?(r[0]&&i&&i(r[0]),r=[n]):r.push(n),s||t()}function i(){return s}var r=[],s=!1;return{add:n,busy:i}}var o=n(17),a=n(7).when;t.create=i,t.enqueue=i().add},function(e,t,n){n(43);var i=n(26),o=n(62),a=n(0).extend,r=n(1),s=n(8),l=n(58),c=r.isFunction,d=r.isPlainObject,u=n(4).noop;n(109);var h=l.inherit({ctor:function(e,t){d(e)&&(t=e,e=i("<div>")),this.callBase(e,t)},_setDeprecatedOptions:function(){this.callBase(),a(this._deprecatedOptions,{iconSrc:{since:"15.1",alias:"icon"}})},_getDefaultOptions:function(){return a(this.callBase(),{onExecute:null,id:null,title:"",icon:"",visible:!0,disabled:!1,renderStage:"onViewShown"})},execute:function(){var e=this._options.disabled;if(c(e)&&(e=!!e.apply(this,arguments)),e)throw o.Error("E3004",this._options.id);this.fireEvent("beforeExecute",arguments),this._createActionByOption("onExecute").apply(this,arguments),this.fireEvent("afterExecute",arguments)},_render:function(){this.callBase(),this.$element().addClass("dx-command")},_renderDisabledState:u,_dispose:function(){this.callBase(),this.$element().removeData(this.NAME)}});s("dxCommand",h),e.exports=h},function(e,t,n){var i=n(10),o=n(11).inArray,a=n(3).each,r=i.inherit({ctor:function(){this.storage={}},getItem:function(e){return this.storage[e]},setItem:function(e,t){this.storage[e]=t},removeItem:function(e){delete this.storage[e]}}),s=i.inherit({ctor:function(e){e=e||{},this.storage=e.storage||new r,this.stateSources=e.stateSources||[]},addStateSource:function(e){this.stateSources.push(e)},removeStateSource:function(e){var t=o(e,this.stateSources);t>-1&&(this.stateSources.splice(t,1),e.removeState(this.storage))},saveState:function(){var e=this;a(this.stateSources,function(t,n){n.saveState(e.storage)})},restoreState:function(){var e=this;a(this.stateSources,function(t,n){n.restoreState(e.storage)})},clearState:function(){var e=this;a(this.stateSources,function(t,n){n.removeState(e.storage)})}});e.exports=s,e.exports.MemoryKeyValueStorage=r},function(e,t,n){n(43);var i=n(26),o=n(177).MarkupComponent,a=n(1).isPlainObject,r=n(8);n(109);var s=o.inherit({ctor:function(e,t){a(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")}});r("dxCommandContainer",s),e.exports=s},function(e,t,n){n(43);var i=n(26),o=n(10),a=n(0).extend,r=n(4).noop,s=n(100),l=o.inherit({ctor:function(e,t){this.NAME=s.name(this.constructor),t=t||{},this._$element=i(e),s.attachInstanceToElement(this._$element,this,this._dispose),t.fromCache?this._options=t:(this._options={},this._setDefaultOptions(),t&&this.option(t),this._render())},_setDefaultOptions:r,_render:r,_dispose:r,element:function(){return this._$element},option:function(e,t){if(0===arguments.length)return this._options;if(1===arguments.length){if("string"==typeof e)return this._options[e];t=e,a(this._options,t)}else this._options[e]=t},instance:function(){return this}});l.getInstance=function(e){return s.getInstanceByElement(i(e),this)},t.MarkupComponent=l},function(e,t,n){var i=n(10),o=n(4).grep,a=n(0).extend,r=n(3).each,s=n(11).inArray,l=n(62),c=i.inherit({ctor:function(){this._commandMappings={},this._containerDefaults={}},setDefaults:function(e,t){return this._containerDefaults[e]=t,this},mapCommands:function(e,t){var n=this;return r(t,function(t,i){"string"==typeof i&&(i={id:i});var o=i.id,r=n._commandMappings[e]||{};r[o]=a({showIcon:!0,showText:!0},n._containerDefaults[e]||{},i),n._commandMappings[e]=r}),this._initExistingCommands(),this},unmapCommands:function(e,t){var n=this;r(t,function(t,i){var o=n._commandMappings[e]||{};o&&delete o[i]}),this._initExistingCommands()},getCommandMappingForContainer:function(e,t){return(this._commandMappings[t]||{})[e]},checkCommandsExist:function(e){var t=this,n=o(e,function(n,i){return s(n,t._existingCommands)<0&&s(n,e)===i});if(0!==n.length)throw l.Error("E3005",n.join("', '"),1===n.length?" is":"s are")},load:function(e){if(e){var t=this;return r(e,function(e,n){t.setDefaults(e,n.defaults),t.mapCommands(e,n.commands)}),this}},_initExistingCommands:function(){var e=this;this._existingCommands=[],r(e._commandMappings,function(t,n){r(n,function(t,n){s(n.id,e._existingCommands)<0&&e._existingCommands.push(n.id)})})}});c.defaultMapping={"global-navigation":{defaults:{showIcon:!0,showText:!0},commands:[]},"ios-header-toolbar":{defaults:{showIcon:!1,showText:!0,location:"after"},commands:["edit","save",{id:"back",location:"before"},{id:"cancel",location:"before"},{id:"create",showIcon:!0,showText:!1}]},"ios-action-sheet":{defaults:{showIcon:!1,showText:!0},commands:[]},"ios-view-footer":{defaults:{showIcon:!1,showText:!0},commands:[{id:"delete",type:"danger"}]},"android-header-toolbar":{defaults:{showIcon:!0,showText:!1,location:"after"},commands:[{id:"back",showIcon:!1,location:"before"},"create",{id:"save",showText:!0,showIcon:!1,location:"after"},{id:"edit",showText:!1,location:"after"},{id:"cancel",showText:!1,location:"before"},{id:"delete",showText:!1,location:"after"}]},"android-simple-toolbar":{defaults:{showIcon:!0,showText:!1,location:"after"},commands:[{id:"back",showIcon:!1,location:"before"},{id:"create"},{id:"save",showText:!0,showIcon:!1,location:"after"},{id:"edit",showText:!1,location:"after"},{id:"cancel",showText:!1,location:"before"},{id:"delete",showText:!1,location:"after"}]},"android-footer-toolbar":{defaults:{location:"after"},commands:[{id:"create",showText:!1,location:"center"},{id:"edit",showText:!1,location:"before"},{id:"delete",locateInMenu:"always"},{id:"save",showIcon:!1,location:"before"}]},"generic-header-toolbar":{defaults:{showIcon:!1,showText:!0,location:"after"},commands:["edit","save",{id:"back",location:"before"},{id:"cancel",location:"before"},{id:"create",showIcon:!0,showText:!1}]},"generic-view-footer":{defaults:{showIcon:!1,showText:!0},commands:[{id:"delete",type:"danger"}]},"win8-appbar":{defaults:{location:"after"},commands:["edit","cancel","save","delete",{id:"create",location:"before"},{id:"refresh",location:"before"}]},"win8-toolbar":{defaults:{showText:!1,location:"before"},commands:[{id:"previousPage"}]},"win8-phone-appbar":{defaults:{location:"center"},commands:["create","edit","cancel","save","refresh",{id:"delete",locateInMenu:"always"}]},"win8-split-toolbar":{defaults:{showIcon:!0,showText:!1,location:"after"},commands:[{id:"back",showIcon:!1,location:"before"},{id:"create"},{id:"save",showText:!0,location:"before"},{id:"edit",showText:!0,locateInMenu:"always"},{id:"cancel",showText:!0,locateInMenu:"always"},{id:"delete",showText:!0,locateInMenu:"always"}]},"win8-master-detail-toolbar":{defaults:{showText:!1,location:"before"},commands:["back"]},"win10-appbar":{defaults:{showText:!1,location:"after"},commands:[{id:"back",location:"before"},"edit","cancel","save","delete","create","refresh"]},"win10-phone-appbar":{defaults:{location:"after"},commands:["create","edit","cancel","save","refresh",{id:"delete",locateInMenu:"always"}]},"desktop-toolbar":{defaults:{showIcon:!1,showText:!0,location:"after"},commands:["cancel","create","edit","save",{id:"delete",type:"danger"}]}},e.exports=c},function(e,t,n){n(43);var i=n(26),o=n(12),a=n(5),r=n(10),s=n(4),l=n(3),c=n(110),d=n(143).layoutSets,u=n(53),h=n(62),p=n(13),f=n(7).when,g="__hidden-bag",_=".dx-transition",m=".dx-content",v="onViewShown",x="dxcontentrendered.layoutController",w=".dx-pending-rendering",b=".dx-pending-rendering-manual",y=n(116);n(176),n(63);var C=function(e){return".dx-transition-"+e},k=r.inherit({ctor:function(e){e=e||{},this.name=e.name||"",this._layoutModel=e.layoutModel||{},this._defaultPaneName=e.defaultPaneName||"content",this._transitionDuration=void 0===e.transitionDuration?400:e.transitionDuration,this._showViewFired=!1},init:function(e){e=e||{},this._visibleViews={},this._$viewPort=e.$viewPort||i("body"),this._commandManager=e.commandManager,this._viewEngine=e.viewEngine,this.transitionExecutor=new y.TransitionExecutor,this._prepareTemplates(),this._$viewPort.append(this.element()),this._hideElements(this.element()),e.templateContext&&(this._templateContext=e.templateContext,this._proxiedTemplateContextChangedHandler=this._templateContextChangedHandler.bind(this))},ensureActive:function(e){return this._disabledState?this.enable():this.activate(e)},activate:function(){this._showViewFired=!1;var e=this.element();return this._showElements(e),this._attachRefreshViewRequiredHandler(),i.Deferred().resolve().promise()},deactivate:function(){return this._disabledState=!1,this._showViewFired=!1,this._releaseVisibleViews(),this._hideElements(this.element()),this._detachRefreshViewRequiredHandler(),i.Deferred().resolve().promise()},enable:function(){return this._disabledState=!1,this._showViewFired||this._notifyShowing(),this._showViewFired=!1,i.Deferred().resolve().promise()},disable:function(){this._disabledState=!0,this._showViewFired=!1,this._notifyHidden()},activeViewInfo:function(){return this._visibleViews[this._defaultPaneName]},_fireViewEvents:function(e,t){var n=this;t=t||this._visibleViews,l.each(t,function(t,i){n.fireEvent(e,[i])})},_notifyShowing:function(e){this._fireViewEvents("viewShowing",e)},_notifyShown:function(e){this._fireViewEvents("viewShown",e)},_notifyHidden:function(e){this._fireViewEvents("viewHidden",e)},_applyTemplate:function(e,t){e.each(function(e,n){c.templateProvider.applyTemplate(n,t)})},_releaseVisibleViews:function(){var e=this;l.each(this._visibleViews,function(t,n){e._hideView(n),e._releaseView(n)}),this._visibleViews={}},_templateContextChangedHandler:function(){var e=this,t=[];l.each(e._visibleViews,function(n,i){i.currentViewTemplateId!==e._getViewTemplateId(i)&&t.push(i)}),f.apply(i,l.map(t,function(t){return e.showView(t)})).done(function(){e._notifyShown(t)})},_attachRefreshViewRequiredHandler:function(){this._templateContext&&this._templateContext.on("optionChanged",this._proxiedTemplateContextChangedHandler)},_detachRefreshViewRequiredHandler:function(){this._templateContextChanged&&this._templateContext.off("optionChanged",this._proxiedTemplateContextChangedHandler)},_getPreviousViewInfo:function(e){return this._visibleViews[this._getViewPaneName(e.viewTemplateInfo)]},_prepareTemplates:function(){var e=this,t=e._viewEngine.getLayoutTemplate(this._getLayoutTemplateName());e._$layoutTemplate=t,e._$mainLayout=e._createEmptyLayout(),e._showElements(e._$mainLayout),e._applyTemplate(e._$mainLayout,e._layoutModel),e._$navigationWidget=e._createNavigationWidget()},renderNavigation:function(e){this._clearNavigationWidget(),this._renderNavigationImpl(e)},_renderNavigationImpl:function(e){this._renderCommands(this._$mainLayout,e)},_createNavigationWidget:function(){var e,t=this._findCommandContainers(this._$mainLayout);return l.each(t,function(t,n){if("global-navigation"===n.option("id"))return e=n.element(),!1}),e},_clearNavigationWidget:function(){this._$navigationWidget&&this._commandManager.clearContainer(this._$navigationWidget.dxCommandContainer("instance"))},element:function(){return this._$mainLayout},_getViewFrame:function(e){return this._$mainLayout},_getLayoutTemplateName:function(){return this.name},_applyModelToTransitionElements:function(e,t){var n=this;this._getTransitionElements(e).each(function(e,o){
|
|
@@ -39,7 +39,7 @@ return{arg:{},val:{}}};f.mixins={chart:{},pie:{},polar:{}},f.mixins.chart.scatte
|
|
|
39
39
|
return a._isHorizontal?(o=l===ae?u+d-s.y+t:u-d-(s.y+s.height)-t,i=c===se?p-s.x-s.width:c===re?p-s.x:p-s.x-s.width/2):(o=h.y-s.y-s.height/2,l===re?(i=c===re?u-d-n-s.x:c===le?u-d-n/2-s.x-s.width/2:u-d-s.x-s.width,i-=t):(i=c===se?u+d+n-s.x-s.width:c===le?u+d+n/2-s.x-s.width/2:u+d-s.x,i+=t)),{translateX:i,translateY:o}},_createAxisGroups:function(){var e,t,n,i=this,o=i._renderer,a=i._axisCssPrefix,r=a+"constant-lines";i._axisGroup=o.g().attr({"class":a+"axis"}),i._axisStripGroup=o.g().attr({"class":a+"strips"}),i._axisGridGroup=o.g().attr({"class":a+"grid"}),i._axisElementsGroup=o.g().attr({"class":a+"elements"}).append(i._axisGroup),i._axisLineGroup=o.g().attr({"class":a+"line"}).append(i._axisGroup),i._axisTitleGroup=o.g().attr({"class":a+"title"}).append(i._axisGroup),e=o.g().attr({"class":r}),t=o.g().attr({"class":r}),n=o.g().attr({"class":r}),i._axisConstantLineGroups={inside:e,outside1:t,left:t,top:t,outside2:n,right:n,bottom:n},i._axisStripLabelGroup=o.g().attr({"class":a+"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,o,a){n=n||this._getViewportRange();var r={value:e,valueText:(0,k.smartFormatter)(e,{labelOptions:t,ticks:a||X(this._majorTicks),tickInterval:(0,T.isDefined)(o)?o:this._tickInterval,dataType:this._options.dataType,logarithmBase:this._options.logarithmBase,type:this._options.type,showTransition:!this._options.marker.visible,point:i})||"",min:n.minVisible,max:n.maxVisible};return i&&(r.point=i),r},formatLabel:function(e,t,n,i,o,a){var r=this._getLabelFormatObject(e,t,n,i,o,a);return(0,T.isFunction)(t.customizeText)?t.customizeText.call(r,r):r.valueText},formatHint:function(e,t,n){var i=this._getLabelFormatObject(e,t,n);return(0,T.isFunction)(t.customizeHint)?t.customizeHint.call(i,i):void 0},formatRange:function(e,t,n){return(0,k.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,o=e.getCanvas(),a=o.left,r=o.top,s=o.width-o.right,l=o.height-o.bottom,c=ee(t.grid.visible&&t.grid.width||0,t.tick.visible&&t.tick.width||0),d=[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=a,n.width=s-a):(n.y=r,n.height=l-r),n)}(e._axisTitleGroup)),u=d.reduce(function(e,t){return!t||t.isEmpty?e:{left:ee(e.left,a-t.x),top:ee(e.top,r-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 u[n]+=t.crosshairMargin,i&&(u[n]=i),c&&(e._isHorizontal&&o.right<c&&u.right<c&&(u.right=c),!e._isHorizontal&&o.bottom<c&&u.bottom<c&&(u.bottom=c)),u},_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=K.default;break;case"polarAxes":n=Y.default}(0,A.extend)(i,n[t])},_getSharpParam:function(){return!0},_disposeBreaksGroup:q.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,T.isDefined)(n.format),t._textOptions={opacity:n.opacity,align:"center"},t._textFontStyles=I.default.patchFontOptions(n.font),e.type===E.default.logarithmic&&e.logarithmBaseError&&(t._incidentOccurred("E2104"),delete e.logarithmBaseError),t._updateTranslator()},calculateInterval:function(e,t){var n=this._options;return n&&n.type===E.default.logarithmic?I.default.getLog(e/t,n.logarithmBase):Q(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,T.isDefined)(i)?i:(0,T.isDefined)(e[t])?e[t]:e[n]}return i("minVisible","min",t),i("maxVisible","max",n),e},i=t._options;t._seriesData=new N.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,o=e._axisPosition;return n===oe||n===re?o-i:o+i},getFormattedValue:function(e,t,n){var i=this._options.label;return(0,T.isDefined)(e)?this.formatLabel(e,(0,A.extend)(!0,{},i,t),void 0,n):null},_getBoundaryTicks:function(e,t){var n=this,i=e.length,o=n._options,a=o.customBoundTicks,r=t.minVisible,s=t.maxVisible,l=o.showCustomBoundaryTicks?n._boundaryTicksVisibility:{},c=[];return o.type===E.default.discrete?n._tickOffset&&0!==e.length&&(c=[e[0],e[e.length-1]]):a?(l.min&&(0,T.isDefined)(a[0])&&c.push(a[0]),l.max&&(0,T.isDefined)(a[1])&&c.push(a[1])):(l.min&&(0===i||e[0]>r)&&c.push(r),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:X(this._majorTicks),minorTicksValues:X(this._minorTicks)}},setTicks:function(e){var t=e.majorTicks||[];this._majorTicks=t.map(a(this,this._renderer,this._getSkippedCategory(t))),this._minorTicks=(e.minorTicks||[]).map(r(this,this._renderer)),this._isSynchronized=!0},_getTicks:function(e,t,n){var i=this,a=i._options,r=a.customTicks,s=a.customMinorTicks;return o(a,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:a.tickInterval,"ignore"===a.label.overlappingBehavior.mode||a.forceUserTickInterval,{majors:r,minors:s},a.minorTickInterval,a.minorTickCount,i._breaks)},_createTicksAndLabelFormat:function(e,t){var n,i=this._options;return n=this._getTicks(e,t,!1),i.type===E.default.discrete&&"datetime"===i.dataType&&!this._hasLabelFormat&&n.ticks.length&&(i.label.format=R.default.getDateFormatByTicks(n.ticks)),n},getAggregationInfo:function(e,t){var n=this,i=n._options,o=n._marginOptions,a=new N.default.Range(n.getTranslator().getBusinessRange()).addRange(t),r=n._zoomArgs,s=r&&(0,T.isDefined)(r.min)?r.min:a.minVisible,l=r&&(0,T.isDefined)(r.max)?r.max:a.maxVisible,c=[],d=i.aggregationInterval,u=i.aggregationGroupWidth;!u&&o&&(o.checkInterval&&(u=i.axisDivisionFactor),o.sizePointNormalState&&(u=Math.min(o.sizePointNormalState,i.axisDivisionFactor)));var h=!i.aggregationGroupWidth&&!d&&t.interval,p=C(i,u,a,n._getScreenDelta(),h),f=p(d,!0,s,l,n._breaks).tickInterval;if(i.type!==E.default.discrete){var g=e?a.min:s,_=e?a.max:l;if((0,T.isDefined)(g)&&(0,T.isDefined)(_)){var v=m({base:i.logarithmBase,axisType:i.type,dataType:i.dataType},!1),x=g,w=_;if(!e){var b=Math.max(n.calculateInterval(_,g),"datetime"===i.dataType?(0,G.dateToMilliseconds)(f):f);x=v(g,b,-1),w=v(_,b)}x=x<a.min?a.min:x,w=w>a.max?a.max:w;var y=n._getScaleBreaks(i,{minVisible:x,maxVisible:w},n._series,n.isArgumentAxis);c=p(f,!1,x,w,y).ticks}}return n._aggregationInterval=f,{interval:f,ticks:c}},createTicks:function(e){var t,n,i,o=this,l=o._renderer,c=o._options;if(e){o._isSynchronized=!1,o.updateCanvas(e),o._estimatedTickInterval=o._getTicks(new N.default.Range(this._seriesData),q.noop,!0).tickInterval,i=o._getViewportRange(),t=o._createTicksAndLabelFormat(i),n=o._getBoundaryTicks(t.ticks,i),c.showCustomBoundaryTicks&&n.length?(o._boundaryTicks=[n[0]].map(s(o,l,!0)),n.length>1&&(o._boundaryTicks=o._boundaryTicks.concat([n[1]].map(s(o,l,!1))))):o._boundaryTicks=[];var d=(t.minorTicks||[]).filter(function(e){return!n.some(function(t){return b(t)===b(e)})});o._tickInterval=t.tickInterval,o._minorTickInterval=t.minorTickInterval,o._majorTicks=t.ticks.map(a(o,l,o._getSkippedCategory(t.ticks))),o._minorTicks=d.map(r(o,l)),o._correctedBreaks=t.breaks,o.correctTicksOnDeprecated(),o._reinitTranslator(i)}},_reinitTranslator:function(e){var t=this,n=e.min,i=e.max,o=e.minVisible,a=e.maxVisible,r=e.interval,s=t._majorTicks,l=s.length,c=t._translator;t._isSynchronized||(t._options.type!==E.default.discrete&&(!l||t._options.skipViewportExtending||(0,T.isDefined)(t._zoomArgs)&&t.isArgumentAxis||(s[0].value<e.minVisible&&(o=s[0].value),l>1&&s[l-1].value>e.maxVisible&&(a=s[l-1].value)),r=t._calculateRangeInterval(t.calculateInterval(a,o),r),e.addRange({minVisible:o,maxVisible:a,interval:r}),(0,T.isDefined)(n)&&(0,T.isDefined)(i)&&n.valueOf()===i.valueOf()&&(e.min=e.max=n)),e.breaks=t._correctedBreaks,c.updateBusinessRange(e))},_getViewportRange:function(){var e=new N.default.Range(this._seriesData),t=this._zoomArgs;return e=this._applyMargins(e),(0,T.isDefined)(t)&&((0,T.isDefined)(t.min)||(0,T.isDefined)(t.max))&&((0,T.isDefined)(t.min)&&(e.minVisible=t.min),(0,T.isDefined)(t.max)&&(e.maxVisible=t.max),this.isArgumentAxis||(e=this._applyMargins(e))),e},setMarginOptions:function(e){this._marginOptions=e},_calculateRangeInterval:function(e,t){var n="datetime"===this._options.dataType,i=[],o=function(e){(0,T.isDefined)(e)&&i.push(n?(0,G.dateToMilliseconds)(e):e)};return o(this._tickInterval),o(this._estimatedTickInterval),(0,T.isDefined)(t)&&i.push(t),o(this._aggregationInterval),this._calculateWorkWeekInterval(te.apply(this,i))},_calculateWorkWeekInterval:function(e){var t=this._options;if("datetime"===t.dataType&&t.workdaysOnly&&e){var n=t.workWeek.length*ue.day,i=ue.week-n;if(n!==e&&i<e){var o=Math.ceil(e/ue.week);e=i>=e?ue.day:e-i*o}else i>=e&&e>ue.day&&(e=ue.day)}return e},_applyMargins:function(e){function t(e,t,n){return(0,T.isDefined)(n)||a.percentStick&&1===Q(e)&&!v||(e=h(e,t)),e}var n,i=this,o=i._options,a=(0,T.isDefined)(i._marginOptions)?i._marginOptions:{},r=a.size,s=0,l=o.type,c=o.valueMarginsEnabled&&l!==E.default.discrete&&"semidiscrete"!==l,d=o.minValueMargin,u=o.maxValueMargin,h=m(e,!i.isArgumentAxis),p=e.minVisible,f=e.maxVisible,g=e.interval,_=i.calculateInterval(f,p)-(i._breaks||[]).reduce(function(e,t){return e+=i.calculateInterval(t.to,t.from)},0),v=this.isArgumentAxis,x=!v&&a.checkInterval;return c&&((0,T.isDefined)(d)&&(p=h(p,-_*d)),(0,T.isDefined)(u)&&(f=h(f,_*u)),(0,T.isDefined)(d)&&(0,T.isDefined)(u)||(v&&a.checkInterval&&(0===_?g=0:(g=i._calculateRangeInterval(_,e.interval),s=g/2)),r&&(n=1/(i._getScreenDelta()/r-1)/2,s=ee(s,_*(n>1?n/10:n))),0!==_&&(p=t(p,-s,d),f=t(f,s,u),_=f-p,p=y(p,a,_,J.floor),f=y(f,a,_,J.ceil))),e.addRange({minVisible:p,maxVisible:f,interval:g,isSpacedMargin:0!==s,checkMinDataVisibility:x&&!(0,T.isDefined)(o.min)&&p.valueOf()>0,checkMaxDataVisibility:x&&!(0,T.isDefined)(o.max)&&f.valueOf()<0})),e},correctTicksOnDeprecated:function(){var e=this._options.label.overlappingBehavior,t=this._majorTicks,n=t.length;n&&(t[0].withoutLabel=e.hideFirstLabel,t[n-1].withoutLabel=e.hideLastLabel,t[0].withoutPath=e.hideFirstTick,t[n-1].withoutPath=e.hideLastTick)},draw:function(e,t){var n=this,i=n._getGridLineDrawer(t||{visible:!1});n.createTicks(e),n._clearAxisGroups(),c(n._majorTicks),c(n._minorTicks),c(n._boundaryTicks),n._drawAxis(),n._drawTitle(),d(n._majorTicks),d(n._minorTicks),d(n._boundaryTicks),u(n._majorTicks,i),u(n._minorTicks,i),l(n._majorTicks,"drawLabel",n._getViewportRange()),n._outsideConstantLines=n._drawConstantLines("outside"),n._insideConstantLines=n._drawConstantLines("inside"),n._strips=n._drawStrips(),n._dateMarkers=n._drawDateMarkers()||[],n._axisGroup.append(n._axesContainerGroup),n._labelAxesGroup&&n._axisStripLabelGroup.append(n._labelAxesGroup),n._gridContainerGroup&&n._axisGridGroup.append(n._gridContainerGroup),n._stripsGroup&&n._axisStripGroup.append(n._stripsGroup),n._constantLinesGroup&&(n._axisConstantLineGroups.inside.append(n._constantLinesGroup),n._axisConstantLineGroups.outside1.append(n._constantLinesGroup),n._axisConstantLineGroups.outside2.append(n._constantLinesGroup)),n._measureTitle(),f(n._majorTicks),f(n._outsideConstantLines),f(n._insideConstantLines),f(n._strips),f(n._dateMarkers),n._adjustConstantLineLabels(n._insideConstantLines),n._adjustStripLabels();var o=n._constantLabelOffset=n._adjustConstantLineLabels(n._outsideConstantLines);n._translator.getBusinessRange().stubData||(n._setLabelsPlacement(),o=n._adjustLabels(o)),o=n._adjustDateMarkers(o),n._adjustTitle(o)},_measureTitle:q.noop,updateSize:function(e){var t=this;t.updateCanvas(e),t._reinitTranslator(t._getViewportRange());var n=t._getCanvasStartEnd();c(t._majorTicks),c(t._minorTicks),c(t._boundaryTicks),g(t._majorTicks),g(t._minorTicks),g(t._boundaryTicks),t._updateAxisElementPosition(),h(t._majorTicks),h(t._minorTicks),h(t._boundaryTicks),l(t._majorTicks,"updateLabelPosition"),t._outsideConstantLines.concat(t._insideConstantLines||[]).forEach(function(e){var i=t._getConstantLinePos(e.options.value,n.start,n.end).value;e.label&&e.label.attr(t._getConstantLineLabelsCoords(i,e.labelOptions)),e.line&&e.line.attr(t._getConstantLineGraphicAttributes(i))}),(t._strips||[]).forEach(function(e){var i=t._translator.getBusinessRange(),o=t._getStripPos(e.options.startValue,e.options.endValue,n.start,n.end,i);e.label&&e.label.attr(t._getStripLabelCoords(o.from,o.to,e.options.label)),e.rect&&e.rect.attr(t._getStripGraphicAttributes(o.from,o.to))}),t._updateTitleCoords(),t._checkTitleOverflow(),p(t._majorTicks),p(t._minorTicks)},applyClipRects:function(e,t){this._axisGroup.attr({"clip-path":t}),this._axisStripGroup.attr({"clip-path":e})},validate:function(){var e=this,t=e._options,n=e.isArgumentAxis?t.argumentType:t.valueType,i=n?P.default.getParser(n):function(e){return e};e.parser=i,t.dataType=n,void 0!==t.min&&(t.min=e._validateUnit(t.min,"E2106")),void 0!==t.max&&(t.max=e._validateUnit(t.max,"E2106"))},zoom:function(e,t,n){var i=this,o=i._options,a=o.min,r=o.max,s=o.type===E.default.discrete,l=i.getTranslator();return n=n||s,e=i._validateUnit(e),t=i._validateUnit(t),!s&&(0,T.isDefined)(e)&&(0,T.isDefined)(t)&&e>t&&(t=[e,e=t][0]),n||(void 0!==a&&(e=a>e?a:e,t=a>t?a:t),void 0!==r&&(t=r<t?r:t,e=r<e?r:e)),i._zoomArgs={min:e,max:t},i._breaks=i._getScaleBreaks(o,{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,T.isDefined)(this._zoomArgs)&&((0,T.isDefined)(this._zoomArgs.min)||(0,T.isDefined)(this._zoomArgs.max))},getViewport:function(){var e=this,t=e._options.min,n=e._options.max;return e._zoomArgs?e._zoomArgs:(0,T.isDefined)(t)||(0,T.isDefined)(n)?{min:t,max:n}:void 0},getRangeData:function(e){var t=this,n=t._getMinMax(),i=t._zoomArgs||{},o=t._options,a=o.type,r=o.synchronizedValue,s=n.min,l=n.max,c=void 0,d=void 0,u=void 0,h=void 0;return a===E.default.logarithmic&&(s=s<=0?void 0:s,l=l<=0?void 0:l),a!==E.default.discrete?(c=s,d=l,(0,T.isDefined)(s)&&(0,T.isDefined)(l)&&(c=s<l?s:l,d=l>s?l:s),u=(0,T.isDefined)(i.min)&&e?i.min:c,h=(0,T.isDefined)(i.max)&&e?i.max:d,(0,T.isDefined)(r)&&(c=(0,T.isDefined)(c)&&c<r?c:r,d=(0,T.isDefined)(d)&&d>r?d:r)):(u=(0,T.isDefined)(i.min)&&e?i.min:s,h=(0,T.isDefined)(i.max)&&e?i.max:l),{categories:o.categories,dataType:o.dataType,axisType:a,base:o.logarithmBase,invert:o.inverted,min:c,max:d,minVisible:u,maxVisible:h}},getFullTicks:function(){var e=this._majorTicks||[];return this._options.type===E.default.discrete?X(e):X(e.concat(this._minorTicks,this._boundaryTicks)).sort(function(e,t){return b(e)-b(t)})},measureLabels:function(e,t){var n,i,o,a,r,s,l=this,c=l._options,d=c.visible?c.width:0,u=t?c.label.indentFromAxis+.5*c.tick.length:0;return c.label.visible&&l._axisElementsGroup?(l._majorTicks?n=X(l._majorTicks):(this.updateCanvas(e),n=l._createTicksAndLabelFormat(this._getViewportRange(),q.noop),r=n.tickInterval,n=n.ticks),s=l._getViewportRange(),i=n.reduce(function(e,t,i){var o=l.formatLabel(t,c.label,s,void 0,r,n);return e.length<o.length?o:e},l.formatLabel(n[0],c.label,s,void 0,r,n)),o=l._renderer.text(i,0,0).css(l._textFontStyles).attr(l._textOptions).append(l._renderer.root),a=o.getBBox(),o.remove(),{x:a.x,y:a.y,width:a.width+u,height:a.height+u}):{height:d,width:d,x:0,y:0}},_setLabelsPlacement:function(){if(this._options.label.visible){var e,t,n=this,i=n._options.label,o=n._validateDisplayMode(i.displayMode),a=n._validateOverlappingMode(i.overlappingBehavior.mode,o),r=i.overlappingBehavior.rotationAngle,s=i.overlappingBehavior.staggeringSpacing,l="none"===a||"ignore"===a,c={rotationAngle:(0,T.isDefined)(r)?r:i.rotationAngle,staggeringSpacing:(0,T.isDefined)(s)?s:i.staggeringSpacing},d=n._majorTicks.map(function(e){return e.labelBBox});switch(t=n._getStep(d),o){case"rotate":l&&(e=!0,t=1),n._applyLabelMode(o,t,d,i,e);break;case"stagger":l&&(t=2),n._applyLabelMode(o,ee(t,2),d,i);break;default:n._applyLabelOverlapping(d,a,t,c)}}},_applyLabelOverlapping:function(e,t,n,i){var o=this,a=o._options.label,r=o._majorTicks;if("none"!==t&&"ignore"!==t){var s=function(e,t,n){return 0!==t&&E.default.areLabelsOverlap(e,n[t-1],a.minSpacing,a.alignment)};n>1&&e.some(s)&&o._applyLabelMode(t,n,e,i),"hide"===t&&o._checkBoundedLabelsOverlapping(n,r,e)}},_applyLabelMode:function(e,t,n,i,o){var a,r,s,l=this,c=l._majorTicks,d=l._options.label,u=i.rotationAngle;switch(e){case"rotate":d.userAlignment||(r=u<0?se:re,u%90===0&&(r=le)),t=o?t:l._getStep(n,u),s=function(e){e.label.rotate(u),e.labelRotationAngle=u,r&&(e.labelAlignment=r)},w(c,t,s);break;case"stagger":a=l._getMaxLabelHeight(n,i.staggeringSpacing),s=function(e,n){n/(t-1)%2!==0&&(e.labelOffset=a)},w(c,t-1,s);break;case"auto":case"_auto":2===t?l._applyLabelMode("stagger",t,n,i):l._applyLabelMode("rotate",t,n,{rotationAngle:x(n,d)});break;default:w(c,t)}},getMarkerTrackers:q.noop,_drawDateMarkers:q.noop,_adjustDateMarkers:q.noop,coordsIn:q.noop,areCoordsOutsideAxis:q.noop,_getSkippedCategory:q.noop,_initAxisPositions:q.noop,_drawTitle:q.noop,_updateTitleCoords:q.noop,_adjustConstantLineLabels:q.noop,_createTranslator:function(){return new H.default.Translator2D({},{},{})},_updateTranslator:function(){var e=this._translator;e.update(e.getBusinessRange(),this._canvas||{},this._getTranslatorOptions())},_getTranslatorOptions:function(){var e=this._options;return{isHorizontal:this._isHorizontal,interval:e.semiDiscreteInterval,stick:this._getStick(),breaksSize:e.breakStyle?e.breakStyle.width:0}},_getCanvasStartEnd:function(){var e=this._isHorizontal,t=this._canvas,n=this._translator.getBusinessRange().invert,i=e?[t.left,t.width-t.right]:[t.height-t.bottom,t.top];return n&&i.reverse(),{start:i[0],end:i[1]}},_getScreenDelta:function(){var e=this,t=e._getCanvasStartEnd(),n=e._breaks,i=n?n.length:0,o=J.abs(t.start-t.end);return o-(i?n[i-1].cumulativeWidth:0)},_getScaleBreaks:function(){return[]},_adjustTitle:q.noop,_checkTitleOverflow:q.noop,getSpiderTicks:q.noop,setSpiderTicks:q.noop,_checkBoundedLabelsOverlapping:q.noop,drawScaleBreaks:q.noop,getCategoriesSorter:function(){var e=this._options.categoriesSortingMethod;return(0,T.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 o,a,r=e.x>t.x,s=e.y>t.y,l=e.x,c=t.x,d=e.width,u=t.width;return"left"===i?(l+=d/2,c+=u/2):"right"===i&&(l-=d/2,c-=u/2),o=r?c+u+n>l:l+d+n>c,a=s?t.y+t.height>e.y:e.y+e.height>t.y,o&&a}}},function(e,t,n){function i(e,t){return I(e)&&I(t)&&e.valueOf()===t.valueOf()}function o(e,t){var n,i,o,a,r="logarithmic"===t.axisType?function(e){return k(e,t.base)}:function(e){return e},s=[],l=e.length,c=0;for(a=0;a<l;a++)n=e[a],i=r(n.from),o=r(n.to),c+=o-i,s.push({trFrom:i,trTo:o,from:n.from,to:n.to,length:c,cumulativeWidth:n.cumulativeWidth});return s}function a(e){var t,n,o=e.min,a=e.max,r=e.minVisible,s=e.maxVisible,l=e.base,c=y.isDate(a)||y.isDate(o),d=c?A:E,u="logarithmic"===e.axisType;return u&&(s=k(s,l),r=k(r,l),o=k(o,l),a=k(a,l)),i(o,a)&&(t=o.valueOf()-d,n=a.valueOf()+d,c?(o=new Date(t),a=new Date(n)):(o=0!==o||u?t:0,a=n)),i(r,s)&&(t=r.valueOf()-d,n=s.valueOf()+d,c?(r=t<o.valueOf()?o:new Date(t),s=n>a.valueOf()?a:new Date(n)):((0!==r||u)&&(r=t<o?o:t),s=n>a?a:n)),{base:l,rangeMin:o,rangeMax:a,rangeMinVisible:r,rangeMaxVisible:s}}function r(e){var t=y.isDate(e.min)||y.isDate(e.max);return t?A:E}function s(e){var t=this.getBusinessRange();return i(t.min,t.max)&&this.isEqualRange(e)}function l(e){var t=this,n=t.getBusinessRange(),i=a(n),o=r(n)/100,s=new C.Range(e);return"discrete"!==n.axisType&&(e&&"logarithmic"===n.axisType&&(s.min=s.min&&k(s.min,n.base),s.max=s.max&&k(s.max,n.base)),e&&(!I(s.min)||T(s.min-i.rangeMin)<=o)&&(!I(s.max)||T(s.max-i.rangeMax)<=o))}function c(e,t,n,i,o){var a=this,r=a.getBusinessRange(),s="discrete"===r.axisType,l=a.scrollHasExtremePosition(e,!1),c=a.scrollHasExtremePosition(e,!0),d=a.checkScrollForOriginalScale(e),u=l&&((r.rotated?n>0:n<0)||1!==t),h=c&&((r.rotated?n<0:n>0)||1!==t);return 2===i&&1===t||(o||s||!this.isEqualRange({min:r.minVisible,max:r.maxVisible}))&&!l&&!c||!d&&(u||h)||d&&t>1}function d(e){return this.scrollHasExtremePosition(e,!1)&&this.scrollHasExtremePosition(e,!0)}function u(e,t){var n,i,o=this,a=o.getBusinessRange(),s="discrete"===a.axisType,l=s?a.categories[0]:a.min,c=s?a.categories[a.categories.length-1]:a.max,d=l===c,u=!a.invert&&t||a.invert&&!t,h=u?c:l,p=u?a.maxVisible:a.minVisible;return s?!I(p)||h.valueOf()===p.valueOf():("logarithmic"===a.axisType&&(h=b.getLog(h,a.base),p=b.getLog(p,a.base)),n=h.valueOf()===p.valueOf()?0:r(a),i=d?Math.abs(h+(u?1:-1)*n-p):Math.abs(h-p),i*o._canvasOptions.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,o){return e>=t[o]&&e<n[i]}:function(e,t,n,i,o){return e<t[i]&&e>=n[o]},getLength:e?function(e,t){return t.length-e.length}:function(e){return e.length},getBreaksSize:e?function(e,t){return t.cumulativeWidth-e.cumulativeWidth}:function(e){return e.cumulativeWidth}}}var p,f=n(0).extend,g=n(3).each,_=n(302),m=n(684),v=n(685),x=n(686),w=n(687),b=n(16),y=n(1),C=n(135),k=b.getLog,S=b.getPower,I=y.isDefined,T=Math.abs,D=["width","height","left","top","bottom","right"],E=1,A=6e4,B=n(4).noop,O=n(23).addInterval,R=function(e){return g(D,function(t,n){e[n]=parseInt(e[n])||0}),e},M=function(e){var t={};return e.forEach(function(e,n){t[e.valueOf()]=n}),t},P=function(e){function t(t,n){!I(e[t])&&I(e[n])&&(e[t]=e[n])}return t("minVisible","min"),t("maxVisible","max"),e};t.Translator2D=p=function(e,t,n){this.update(e,t,n)},p.prototype={constructor:p,reinit:function(){var e=this,t=e._options,n=e._businessRange,i=n.categories||[],o={},a=e._prepareCanvasOptions(),r=b.getCategoriesInfo(i,n.minVisible,n.maxVisible).categories,s=r.length;switch(n.axisType){case"logarithmic":o=w;break;case"semidiscrete":o=v,a.ratioOfCanvasRange=a.canvasLength/(O(a.rangeMaxVisible,t.interval)-a.rangeMinVisible);break;case"discrete":o=m,e._categories=i,a.interval=e._getDiscreteInterval(t.addSpiderCategory?s+1:s,a),e._categoriesToPoints=M(i,a.invert),s&&(a.startPointIndex=e._categoriesToPoints[r[0].valueOf()],e.visibleCategories=r);break;default:o="datetime"===n.dataType?x:_}f(e,o),e._conversionValue=t.conversionValue?function(e){return e}:function(e){return Math.round(e)},e.sc={},e._checkingMethodsAboutBreaks=[h(!1),h(e.isInverted())],e._translateBreaks(),e._calculateSpecialValues()},_translateBreaks:function(){var e,t,n,i,o=this._breaks,a=this._options.breaksSize;if(void 0!==o)for(e=0,i=o.length;e<i;e++)t=o[e],n=this.translate(t.to),t.end=n,t.start=t.gapSize?n:this.isInverted()?n+a:n-a},_checkValueAboutBreaks:function(e,t,n,i,o){var a,r,s,l,c={length:0,breaksSize:void 0,inBreak:!1},d=e[e.length-1];if(o.isStartSide(t,e,n,i))return c;if(o.isEndSide(t,e,n,i))return{length:d.length,breaksSize:d.cumulativeWidth,inBreak:!1};for(a=0,r=e.length;a<r;a++){if(s=e[a],l=e[a-1],o.isInBreak(t,s,n,i)){c.inBreak=!0,c.break=s;break}if(l&&o.isBetweenBreaks(t,s,l,n,i)){c={length:o.getLength(l,d),breaksSize:o.getBreaksSize(l,d),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=a(n),o=t._canvas,r=t._breaks;return t._options.isHorizontal?(i.startPoint=o.left,e=o.width,i.endPoint=o.width-o.right,i.invert=n.invert):(i.startPoint=o.top,e=o.height,i.endPoint=o.height-o.bottom,i.invert=!n.invert),t.canvasLength=i.canvasLength=i.endPoint-i.startPoint,i.rangeDoubleError=Math.pow(10,S(i.rangeMax-i.rangeMin)-S(e)-2),i.ratioOfCanvasRange=i.canvasLength/(i.rangeMaxVisible-i.rangeMinVisible),void 0!==r&&(i.ratioOfCanvasRange=(i.canvasLength-r[r.length-1].cumulativeWidth)/(i.rangeMaxVisible-i.rangeMinVisible-r[r.length-1].length)),i},updateCanvas:function(e){this._canvas=R(e),this.reinit()},updateBusinessRange:function(e){var t=this,n=e.breaks||[];t._businessRange=P(e),t._breaks=n.length?o(n,t._businessRange):void 0,t.reinit()},update:function(e,t,n){var i=this;i._options=f(i._options||{},n),i._canvas=R(t),i.updateBusinessRange(e)},getBusinessRange:function(){return this._businessRange},getCanvasVisibleArea:function(){return{min:this._canvasOptions.startPoint,max:this._canvasOptions.endPoint}},_calculateSpecialValues:function(){var e,t,n,i=this,o=i._canvasOptions,a=o.startPoint,r=o.endPoint,s=i._businessRange,l=s.minVisible,c=s.maxVisible;l<=0&&c>=0?t=i.translate(0,1):(e=s.invert^(l<=0&&c<=0),t=i._options.isHorizontal?e?r:a:e?a:r),n=a+o.canvasLength/2,i.sc={canvas_position_default:t,canvas_position_left:a,canvas_position_top:a,canvas_position_center:n,canvas_position_middle:n,canvas_position_right:r,canvas_position_bottom:r,canvas_position_start:o.invert?r:a,canvas_position_end:o.invert?a:r}},translateSpecialCase:function(e){return this.sc[e]},_calculateProjection:function(e){var t=this._canvasOptions;return t.invert?t.endPoint-e:t.startPoint+e},_calculateUnProjection:function(e){var t=this._canvasOptions;return t.invert?t.rangeMaxVisible.valueOf()-e:t.rangeMinVisible.valueOf()+e},getMinBarSize:function(e){var t=this.getCanvasVisibleArea(),n=this.untranslate(t.min+e);return T(this.untranslate(t.min)-(I(n)?n:this.untranslate(t.max)))},checkMinBarSize:function(e,t,n){return T(e)<t?e>=0?t:-t:e},translate:B,untranslate:B,getInterval:B,zoom:B,getMinScale:B,zoomArgsIsEqualCanvas:s,isEqualRange:l,checkScrollForOriginalScale:d,scrollHasExtremePosition:u,checkGestureEventsForScaleEdges:c,getRange:function(){return[this.untranslate(this._canvasOptions.startPoint,-1),this.untranslate(this._canvasOptions.endPoint,1)]},isEmptyValueRange:function(){return this._businessRange.stubData},getScreenRange:function(){return[this._canvasOptions.startPoint,this._canvasOptions.endPoint]},add:function(e,t,n){return this._add(e,t,(this._businessRange.invert?-1:1)*n)}}},function(e,t,n){var i=n(1).isDefined,o=Math.round;e.exports={translate:function(e,t){var n=this,o=n.translateSpecialCase(e);return i(o)?o:isNaN(e)?null:n.to(e,t)},untranslate:function(e,t,n,o){var a=this,r=a._canvasOptions,s=r.startPoint;return!n&&(e<s||e>r.endPoint)||!i(r.rangeMin)||!i(r.rangeMax)?null:a.from(e,o)},getInterval:function(){return o(this._canvasOptions.ratioOfCanvasRange*(this._businessRange.interval||Math.abs(this._canvasOptions.rangeMax-this._canvasOptions.rangeMin)))},_getValue:function(e){return e},zoom:function(e,t){var n=this,i=n._canvasOptions,o=i.startPoint,a=i.endPoint,r=(o+e)/t,s=(a+e)/t,l=[n.translate(n._getValue(i.rangeMin)),n.translate(n._getValue(i.rangeMax))],c=Math.min(l[0],l[1]),d=Math.max(l[0],l[1]);return c>r&&(s-=r-c,r=c),d<s&&(r-=s-d,s=d),d-c<s-r&&(r=c,s=d),e=(a-o)*r/(s-r)-o,t=(o+e)/r||1,{min:n.untranslate(r,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,o=i._breaks;return e=i._parse(e),i._breaks&&(n=i._checkValueAboutBreaks(o,e,"trFrom","trTo",i._checkingMethodsAboutBreaks[0]),n.inBreak===!0)?t>0?n.break.trTo:n.break.trFrom:e},_parse:function(e){
|
|
40
40
|
return Number(e)},to:function(e,t){var n=this,o=n._canvasOptions,a=n._breaks,r={length:0},s=0;return void 0!==a&&(r=n._checkValueAboutBreaks(a,e,"trFrom","trTo",n._checkingMethodsAboutBreaks[0]),s=i(r.breaksSize)?r.breaksSize:0),r.inBreak===!0?t>0?r.break.start:t<0?r.break.end:null:n._conversionValue(n._calculateProjection((e-o.rangeMinVisible-r.length)*o.ratioOfCanvasRange+s))},from:function(e,t){var n=this,o=n._breaks,a={length:0},r=n._canvasOptions,s=r.startPoint,l=0;return void 0!==o&&(a=n._checkValueAboutBreaks(o,e,"start","end",n._checkingMethodsAboutBreaks[1]),l=i(a.breaksSize)?a.breaksSize:0),a.inBreak===!0?t>0?a.break.trTo:t<0?a.break.trFrom:null:this._calculateUnProjection((e-s-l)/r.ratioOfCanvasRange+a.length)},_add:function(e,t,n){return e+t*n},isValueProlonged:!1}},function(e,t,n){function i(e){var t,n,i=e.x,o=e.y,a=m[e.type],r=e.textWidth+2*e.horMargin,s=e.textHeight+2*e.verMargin,c=i,d=o;return t=n=e.tailLength,1&a[0]?n=Math.min(n,s/3):t=Math.min(t,r/3),{cx:l(c+a[0]*t+(a[0]+a[2])*r/2),cy:l(d+a[1]*n+(a[1]+a[3])*s/2),points:[l(i),l(o),l(i+=a[0]*(r+t)),l(o+=a[1]*(s+n)),l(i+=a[2]*r),l(o+=a[3]*s),l(i+=a[4]*r),l(o+=a[5]*s),l(i+=a[6]*(r-t)),l(o+=a[7]*(s-n))]}}var o=n(4).noop,a=n(3).each,r=isFinite,s=Number,l=Math.round,c=n(169),d=c.formatValue,u=c.getSampleText,h=n(16).patchFontOptions,p=n(0).extend,f=n(10),g=f.inherit({ctor:function(e){var t=this;a(e,function(e,n){t["_"+e]=n}),t._init()},dispose:function(){var e=this;return e._dispose(),a(e,function(t){e[t]=null}),e},getOffset:function(){return s(this._options.offset)||0}}),_=g.inherit({_init:function(){var e=this;e._rootElement=e._createRoot().linkOn(e._owner,{name:"value-indicator",after:"core"}),e._trackerElement=e._createTracker()},_dispose:function(){this._rootElement.linkOff()},_setupAnimation:function(){var e=this;e._options.animation&&(e._animation={step:function(t){e._actualValue=e._animation.start+e._animation.delta*t,e._actualPosition=e._translator.translate(e._actualValue),e._move()},duration:e._options.animation.duration>0?s(e._options.animation.duration):0,easing:e._options.animation.easing})},_runAnimation:function(e){var t=this,n=t._animation;n.start=t._actualValue,n.delta=e-t._actualValue,t._rootElement.animate({_:0},{step:n.step,duration:n.duration,easing:n.easing})},_createRoot:function(){return this._renderer.g().attr({"class":this._className})},_createTracker:function(){return this._renderer.path([],"area")},_getTrackerSettings:o,clean:function(){var e=this;return e._animation&&e._rootElement.stopAnimation(),e._rootElement.linkRemove().clear(),e._clear(),e._tracker.detach(e._trackerElement),e._options=e.enabled=e._animation=null,e},render:function(e){var t=this;return t.type=e.type,t._options=e,t._actualValue=t._currentValue=t._translator.adjust(t._options.currentValue),t.enabled=t._isEnabled(),t.enabled&&(t._setupAnimation(),t._rootElement.attr({fill:t._options.color}).linkAppend(),t._tracker.attach(t._trackerElement,t,t._trackerInfo)),t},resize:function(e){var t=this;return t._rootElement.clear(),t._clear(),t.visible=t._isVisible(e),t.visible&&(p(t._options,e),t._actualPosition=t._translator.translate(t._actualValue),t._render(),t._trackerElement.attr(t._getTrackerSettings()),t._move()),t},value:function(e,t){var n,i=this,o=this._rootElement,a=null;return void 0===e?i._currentValue:(null===e?(a="hidden",i._currentValue=e):(n=i._translator.adjust(e),i._currentValue!==n&&r(n)&&(i._currentValue=n,i.visible&&(i._animation&&!t?i._runAnimation(n):(i._actualValue=n,i._actualPosition=i._translator.translate(n),i._move())))),o.attr({visibility:a}),i)},_isEnabled:null,_isVisible:null,_render:null,_clear:null,_move:null}),m={};m["right-bottom"]=m.rb=[0,-1,-1,0,0,1,1,0],m["bottom-right"]=m.br=[-1,0,0,-1,1,0,0,1],m["left-bottom"]=m.lb=[0,-1,1,0,0,1,-1,0],m["bottom-left"]=m.bl=[1,0,0,-1,-1,0,0,1],m["left-top"]=m.lt=[0,1,1,0,0,-1,-1,0],m["top-left"]=m.tl=[1,0,0,1,-1,0,0,-1],m["right-top"]=m.rt=[0,1,-1,0,0,-1,1,0],m["top-right"]=m.tr=[-1,0,0,1,1,0,0,-1];var v=_.inherit({_move:function(){var e,t,n=this,o=n._getTextCloudOptions(),a=d(n._actualValue,n._options.text);n._text.attr({text:a}),e=n._text.getBBox(),t=i({x:o.x,y:o.y,textWidth:e.width||a.length*n._textUnitWidth,textHeight:e.height||n._textHeight,horMargin:n._options.horizontalOffset,verMargin:n._options.verticalOffset,tailLength:n._options.arrowLength,type:o.type}),n._text.attr({x:t.cx,y:t.cy+n._textVerticalOffset}),n._cloud.attr({points:t.points}),n._trackerElement&&n._trackerElement.attr({points:t.points})},_measureText:function(){var e,t,n,i,o=this;o._textVerticalOffset||(e=o._createRoot().append(o._owner),i=u(o._translator,o._options.text),t=o._renderer.text(i,0,0).attr({align:"center"}).css(h(o._options.text.font)).append(e),n=t.getBBox(),e.remove(),o._textVerticalOffset=-n.y-n.height/2,o._textWidth=n.width,o._textHeight=n.height,o._textUnitWidth=o._textWidth/i.length,o._textFullWidth=o._textWidth+2*o._options.horizontalOffset,o._textFullHeight=o._textHeight+2*o._options.verticalOffset)},_render:function(){var e=this;e._measureText(),e._cloud=e._cloud||e._renderer.path([],"area").append(e._rootElement),e._text=e._text||e._renderer.text().append(e._rootElement),e._text.attr({align:"center"}).css(h(e._options.text.font))},_clear:function(){delete this._cloud,delete this._text},getTooltipParameters:function(){var e=this._getTextCloudOptions();return{x:e.x,y:e.y,value:this._currentValue,color:this._options.color}}}),x=_.inherit({_measureText:function(){var e,t,n,i=this;i._hasText=i._isTextVisible(),i._hasText&&!i._textVerticalOffset&&(e=i._createRoot().append(i._owner),t=i._renderer.text(u(i._translator,i._options.text),0,0).attr({"class":"dxg-text",align:"center"}).css(h(i._options.text.font)).append(e),n=t.getBBox(),e.remove(),i._textVerticalOffset=-n.y-n.height/2,i._textWidth=n.width,i._textHeight=n.height)},_move:function(){var e=this;e._updateBarItemsPositions(),e._hasText&&(e._text.attr({text:d(e._actualValue,e._options.text)}),e._updateTextPosition(),e._updateLinePosition())},_updateBarItems:function(){var e,t,n=this,i=n._options,o=n._translator;n._setBarSides(),n._startPosition=o.translate(o.getDomainStart()),n._endPosition=o.translate(o.getDomainEnd()),n._basePosition=o.translate(i.baseValue),n._space=n._getSpace(),e=i.backgroundColor||"none","none"!==e&&n._space>0?t=i.containerBackgroundColor||"none":(n._space=0,t="none"),n._backItem1.attr({fill:e}),n._backItem2.attr({fill:e}),n._spaceItem1.attr({fill:t}),n._spaceItem2.attr({fill:t})},_getSpace:function(){return 0},_updateTextItems:function(){var e=this;e._hasText?(e._line=e._line||e._renderer.path([],"line").attr({"class":"dxg-main-bar","stroke-linecap":"square"}).append(e._rootElement),e._text=e._text||e._renderer.text("",0,0).attr({"class":"dxg-text"}).append(e._rootElement),e._text.attr({align:e._getTextAlign()}).css(e._getFontOptions()),e._setTextItemsSides()):(e._line&&(e._line.remove(),delete e._line),e._text&&(e._text.remove(),delete e._text))},_isTextVisible:function(){return!1},_getTextAlign:function(){return"center"},_getFontOptions:function(){var e=this._options,t=e.text.font;return t&&t.color||(t=p({},t,{color:e.color})),h(t)},_updateBarItemsPositions:function(){var e=this,t=e._getPositions();e._backItem1.attr(e._buildItemSettings(t.start,t.back1)),e._backItem2.attr(e._buildItemSettings(t.back2,t.end)),e._spaceItem1.attr(e._buildItemSettings(t.back1,t.main1)),e._spaceItem2.attr(e._buildItemSettings(t.main2,t.back2)),e._mainItem.attr(e._buildItemSettings(t.main1,t.main2)),e._trackerElement&&e._trackerElement.attr(e._buildItemSettings(t.main1,t.main2))},_render:function(){var e=this;e._measureText(),e._backItem1||(e._backItem1=e._createBarItem(),e._backItem1.attr({"class":"dxg-back-bar"})),e._backItem2||(e._backItem2=e._createBarItem(),e._backItem2.attr({"class":"dxg-back-bar"})),e._spaceItem1||(e._spaceItem1=e._createBarItem(),e._spaceItem1.attr({"class":"dxg-space-bar"})),e._spaceItem2||(e._spaceItem2=e._createBarItem(),e._spaceItem2.attr({"class":"dxg-space-bar"})),e._mainItem||(e._mainItem=e._createBarItem(),e._mainItem.attr({"class":"dxg-main-bar"})),e._updateBarItems(),e._updateTextItems()},_clear:function(){var e=this;delete e._backItem1,delete e._backItem2,delete e._spaceItem1,delete e._spaceItem2,delete e._mainItem,delete e._hasText,delete e._line,delete e._text},getTooltipParameters:function(){var e=this._getTooltipPosition();return{x:e.x,y:e.y,value:this._currentValue,color:this._options.color,offset:0}}});t.BaseElement=g,t.BaseIndicator=_,t.BaseTextCloudMarker=v,t.BaseRangeBar=x},function(e,t,n){var i=n(16).patchFontOptions;t.buildRectAppearance=function(e){var t=e.border||{};return{fill:e.color,opacity:e.opacity,stroke:t.color,"stroke-width":t.width,"stroke-opacity":t.opacity,hatching:e.hatching}},t.buildTextAppearance=function(e,t){return{attr:e["stroke-width"]?{stroke:e.stroke,"stroke-width":e["stroke-width"],"stroke-opacity":e["stroke-opacity"],filter:t}:{},css:i(e.font)}}},function(e,t,n){var i=n(2),o=n(6).getWindow(),a=n(5),r=n(39),s=n(8),l=n(24),c=n(37).dasherize,d=n(0).extend,u=n(58),h=n(9),p=n(25),f=n(78),g=n(77),_=n(1).isFunction,m=n(4).noop,v="dxDraggable",x=h.addNamespace(f.start,v),w=h.addNamespace(f.move,v),b=h.addNamespace(f.end,v),y=h.addNamespace(p.down,v),C=c(v),k=C+"-dragging",S=u.inherit({_getDefaultOptions:function(){return d(this.callBase(),{onDragStart:m,onDrag:m,onDragEnd:m,immediate:!0,direction:"both",area:o,boundOffset:0,allowMoveByClick:!1})},_init:function(){this.callBase(),this._attachEventHandlers()},_attachEventHandlers:function(){if(!this.option("disabled")){var e=this.$element().css("position","absolute"),t={},n=this.option("allowMoveByClick");t[x]=this._dragStartHandler.bind(this),t[w]=this._dragHandler.bind(this),t[b]=this._dragEndHandler.bind(this),n&&(t[y]=this._pointerDownHandler.bind(this),e=this._getArea()),a.on(e,t,{direction:this.option("direction"),immediate:this.option("immediate")})}},_detachEventHandlers:function(){a.off(this.$element(),"."+v),a.off(this._getArea(),"."+v)},_move:function(e){l.move(this.$element(),e)},_pointerDownHandler:function(e){if(!h.needSkipEvent(e)){var t=this._getAreaOffset(i(e.currentTarget)),n=this.option("direction"),o={};"horizontal"!==n&&"both"!==n||(o.left=e.pageX-this.$element().width()/2-t.left),"vertical"!==n&&"both"!==n||(o.top=e.pageY-this.$element().height()/2-t.top),this._move(o),this._getAction("onDrag")({event:e})}},_dragStartHandler:function(e){var t=this.$element();if(t.is(".dx-state-disabled, .dx-state-disabled *"))return void(e.cancel=!0);var n=this._getArea(),i=this._getAreaOffset(n),o=this._getBoundOffset(),a=n.outerWidth(),r=n.outerHeight(),s=t.width(),c=t.height();this._toggleDraggingClass(!0);var d={left:t.offset().left-i.left,top:t.offset().top-i.top};this._startPosition=l.locate(t),e.maxLeftOffset=d.left-o.left,e.maxRightOffset=a-d.left-s-o.right,e.maxTopOffset=d.top-o.top,e.maxBottomOffset=r-d.top-c-o.bottom,this._getAction("onDragStart")({event:e})},_getAreaOffset:function(e){var t=e&&g.offset(e);return t?t:{left:0,top:0}},_toggleDraggingClass:function(e){this.$element().toggleClass(k,e)},_getBoundOffset:function(){var e=this.option("boundOffset");return _(e)&&(e=e.call(this)),r.quadToObject(e)},_getArea:function(){var e=this.option("area");return _(e)&&(e=e.call(this)),i(e)},_dragHandler:function(e){var t=e.offset,n=this._startPosition;this._move({left:n.left+t.x,top:n.top+t.y}),this._getAction("onDrag")({event:e})},_dragEndHandler:function(e){this._toggleDraggingClass(!1),this._getAction("onDragEnd")({event:e})},_getAction:function(e){return this["_"+e+"Action"]||this._createActionByOption(e)},_render:function(){this.callBase(),this.$element().addClass(C)},_optionChanged:function(e){var t=e.name;switch(t){case"onDragStart":case"onDrag":case"onDragEnd":this["_"+t+"Action"]=this._createActionByOption(t);break;case"allowMoveByClick":case"direction":case"disabled":this._detachEventHandlers(),this._attachEventHandlers();break;case"boundOffset":case"area":break;default:this.callBase(e)}},_dispose:function(){this.callBase(),this._detachEventHandlers()}});s(v,S),e.exports=S},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getElementMaxHeightByWindow=void 0;var o=n(2),a=i(o),r=n(6),s=.9,l=function(e){var t=(0,r.getWindow)(),n=e.offset().top-(0,a.default)(t).scrollTop(),i=(0,a.default)(t).innerHeight()-n-e.outerHeight();return Math.max(n,i)*s};t.getElementMaxHeightByWindow=l},function(e,t,n){e.exports=n(514)},function(e,t,n){var i=n(2),o=n(5),a=n(14),r=n(0).extend,s=n(69),l=n(8),c=n(48),d=n(9),u=n(96),h=n(20),p=n(32),f=n(15),g=n(18),_=n(114),m=n(7).Deferred,v="dx-switch",x=v+"-wrapper",w=v+"-container",b=v+"-inner",y=v+"-handle",C=v+"-on-value",k=v+"-on",S=v+"-off",I=100,T=c.inherit({_supportedKeys:function(){var e=this.option("rtlEnabled"),t=function(e){e.preventDefault(),this._clickAction({event:e})},n=function(e,t){t.preventDefault(),t.stopPropagation(),this._animateValue(e)};return r(this.callBase(),{space:t,enter:t,leftArrow:n.bind(this,!!e),rightArrow:n.bind(this,!e)})},_getDefaultOptions:function(){return r(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,onText:f.format("dxSwitch-onText"),offText:f.format("dxSwitch-offText"),value:!1,useInkRipple:!1,_animateHandle:!0})},_defaultOptionsRules:function(){var e=h.current();return this.callBase().concat([{device:function(){return"desktop"===a.real().deviceType&&!a.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return h.isAndroid5(e)},options:{useInkRipple:!0}},{device:function(t){return h.isIos7(e)},options:{_animateHandle:!1}}])},_feedbackHideTimeout:0,_animating:!1,_initMarkup:function(){this._renderContainers(),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().addClass(v).append(this._$switchWrapper),this._renderSubmitElement(),this._renderClick(),this.setAria("role","button"),this._renderSwipeable(),this.callBase(),this._renderSwitchInner(),this._renderLabels(),this._renderValue()},_getInnerOffset:function(e,t){var n=(t-this._offsetDirection()*Number(!e))/2;return 100*n+"%"},_getHandleOffset:function(e,t){if(this.option("rtlEnabled")&&(e=!e),e){var n=-100+100*-t;return n+"%"}return 100*-t+"%"},_renderSwitchInner:function(){this._$switchInner=i("<div>").addClass(b).appendTo(this._$switchContainer),this._$handle=i("<div>").addClass(y).appendTo(this._$switchInner)},_renderLabels:function(){this._$labelOn=i("<div>").addClass(k).prependTo(this._$switchInner),this._$labelOff=i("<div>").addClass(S).appendTo(this._$switchInner),this._setLabelsText()},_renderContainers:function(){this._$switchContainer=i("<div>").addClass(w),this._$switchWrapper=i("<div>").addClass(x).append(this._$switchContainer)},_renderSwipeable:function(){this._createComponent(this.$element(),_,{elastic:!1,immediate:!0,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._getItemSizeFunc.bind(this)})},_getItemSizeFunc:function(){return this._$switchContainer.outerWidth(!0)-this._$handle.get(0).getBoundingClientRect().width},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=s.render({waveSizeCoefficient:1.7,isCentered:!0,useHoldAnimation:!1,wavesNumber:2})},_renderInkWave:function(e,t,n,i){if(this._inkRipple){var o={element:e,event:t,wave:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}},_updateFocusState:function(e,t){this.callBase.apply(this,arguments),this._renderInkWave(this._$handle,e,t,0)},_toggleActiveState:function(e,t,n){this.callBase.apply(this,arguments),this._renderInkWave(this._$handle,n,t,1)},_offsetDirection:function(){return this.option("rtlEnabled")?-1:1},_renderPosition:function(e,t){var n=this._getInnerOffset(e,t),i=this._getHandleOffset(e,t);this.option("_animateHandle")&&(this._$switchInner.css("transform"," translateX("+n+")"),this._$handle.css("transform"," translateX("+i+")"))},_validateValue:function(){var e=this.option("value");"boolean"!=typeof e&&(this._options.value=!!e)},_renderClick:function(){var e=d.addNamespace(g.name,this.NAME),t=this.$element();this._clickAction=this._createAction(this._clickHandler.bind(this)),o.off(t,e),o.on(t,e,function(e){this._clickAction({event:e})}.bind(this))},_clickHandler:function(e){var t=e.event;this._saveValueChangeEvent(t),this._animating||this._swiping||this._animateValue(!this.option("value"))},_animateValue:function(e){var t=this.option("value"),n=e;if(t!==n){this._animating=!0;var i=this._getInnerOffset(t,0),o=this._getInnerOffset(n,0),a=this._getHandleOffset(t,0),r=this._getHandleOffset(n,0),s=this,l={},c={},d={},u={};l.transform=" translateX("+i+")",c.transform=" translateX("+o+")",d.transform=" translateX("+a+")",u.transform=" translateX("+r+")",this.$element().toggleClass(C,n),p.animate(this._$handle,{from:d,to:u,duration:I}),p.animate(this._$switchInner,{from:l,to:c,duration:I,complete:function(){s._animating=!1,s.option("value",n)}})}},_swipeStartHandler:function(e){var t=this.option("value"),n=this.option("rtlEnabled"),i=n?0:1,o=n?1:0;e.event.maxLeftOffset=t?i:o,e.event.maxRightOffset=t?o:i,this._swiping=!0,this._feedbackDeferred=new m,u.lock(this._feedbackDeferred),this._toggleActiveState(this.$element(),this.option("activeStateEnabled"))},_swipeUpdateHandler:function(e){this._renderPosition(this.option("value"),e.event.offset)},_swipeEndHandler:function(e){var t=this,n=this._offsetDirection(),i={},o={},a=this._getInnerOffset(t.option("value"),e.event.targetOffset),r=this._getHandleOffset(t.option("value"),e.event.targetOffset);i.transform=" translateX("+a+")",o.transform=" translateX("+r+")",p.animate(this._$handle,{to:o,duration:I}),p.animate(this._$switchInner,{to:i,duration:I,complete:function(){t._swiping=!1;var i=t.option("value")+n*e.event.targetOffset;t.option("value",Boolean(i)),t._feedbackDeferred.resolve(),t._toggleActiveState(t.$element(),!1)}})},_renderValue:function(){this._validateValue();var e=this.option("value");this._renderPosition(e,0),this.$element().toggleClass(C,e),this._$submitElement.val(e),this.setAria({pressed:e,label:e?this.option("onText"):this.option("offText")})},_setLabelsText:function(){this._$labelOn&&this._$labelOn.text(this.option("onText")),this._$labelOff&&this._$labelOff.text(this.option("offText"))},_visibilityChanged:function(e){e&&this.repaint()},_optionChanged:function(e){switch(e.name){case"useInkRipple":this._invalidate();break;case"width":delete this._marginBound,this._refresh();break;case"onText":case"offText":this._setLabelsText();break;case"value":this._renderValue(),this.callBase(e);break;case"_animateHandle":break;default:this.callBase(e)}},_clean:function(){delete this._inkRipple,this.callBase()}});l("dxSwitch",T),e.exports=T},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(14),r=n(35),s=n(5),l=n(8),c=n(29),d=n(4),u=d.noop,h=n(258).SelectionFilterCreator,p=n(7),f=p.when,g=p.Deferred,_=n(13).getPublicElement,m=n(1),v=m.isDefined,x=n(6),w=n(0).extend,b=n(11).inArray,y=n(3).each,C=n(15),k=n(9),S=n(18),I=n(128),T=n(268),D=n(67),E="dxTagData",A="dx-tagbox",B="dx-tag-container",O="dx-tag",R="dx-tagbox-multi-tag",M="dx-tag-custom",P="dx-tag-remove-button",V="dx-tagbox-only-select",F="dx-tagbox-single-line",L="dx-tagbox-popup-wrapper",H="dx-list-select-all-checkbox",z="dx-tag-content",N="dx-tagbox-default-template",$="dx-tagbox-custom-template",W="dx-native-click",G="dx-texteditor-container",q=-.3,j=I.inherit({_supportedKeys:function(){var e=this.callBase();return w(e,{backspace:function(e){if(this._isCaretAtTheStart()){e.preventDefault(),e.stopPropagation(),this._isTagRemoved=!0;var t=this._$focusedTag||this._tagElements().last();this._$focusedTag&&this._moveTagFocus("prev",!0),0!==t.length&&(this._preserveFocusedTag=!0,this._removeTagElement(t),delete this._preserveFocusedTag)}},del:function(e){if(this._$focusedTag&&this._isCaretAtTheStart()){e.preventDefault(),e.stopPropagation(),this._isTagRemoved=!0;var t=this._$focusedTag;this._moveTagFocus("next",!0),this._preserveFocusedTag=!0,this._removeTagElement(t),delete this._preserveFocusedTag}},enter:function(e){var t=this._list&&null!==this._list.option("focusedElement"),n=this.option("acceptCustomValue")&&!t;return n?(e.preventDefault(),void(""!==this._searchValue()&&this._customItemAddedHandler())):void(this.option("opened")&&(e.preventDefault(),this._keyboardProcessor._childProcessors[0].process(e)))},space:function(e){var t=this.option("opened"),n=this._shouldRenderSearchEvent();t&&!n&&(e.preventDefault(),this._keyboardProcessor._childProcessors[0].process(e))},leftArrow:function(e){if(this._isCaretAtTheStart()){var t=this.option("rtlEnabled");if(!this._isEditable()||!t||this._$focusedTag){e.preventDefault();var n=t?"next":"prev";this._moveTagFocus(n),!this.option("multiline")&&this._scrollContainer(n)}}},rightArrow:function(e){if(this._isCaretAtTheStart()){var t=this.option("rtlEnabled");if(!this._isEditable()||t||this._$focusedTag){e.preventDefault();var n=t?"prev":"next";this._moveTagFocus(n),!this.option("multiline")&&this._scrollContainer(n)}}}})},_allowSelectItemByTab:function(){return!1},_isCaretAtTheStart:function(){var e=T(this._input());return 0===e.start&&0===e.end},_moveTagFocus:function(e,t){if(!this._$focusedTag){var n=this._tagElements();return this._$focusedTag="next"===e?n.first():n.last(),void this._toggleFocusClass(!0,this._$focusedTag)}var i=this._$focusedTag[e]("."+O);i.length>0?this._replaceFocusedTag(i):(t||"next"===e&&this._isEditable())&&this._clearTagFocus()},_replaceFocusedTag:function(e){this._toggleFocusClass(!1,this._$focusedTag),this._$focusedTag=e,this._toggleFocusClass(!0,this._$focusedTag)},_clearTagFocus:function(){this._$focusedTag&&(this._toggleFocusClass(!1,this._$focusedTag),delete this._$focusedTag)},_focusClassTarget:function(e){return e&&e.length&&e[0]!==this._focusTarget()[0]?e:this.callBase()},_scrollContainer:function(e){if(!this.option("multiline")&&x.hasWindow()&&this._$tagsContainer){var t=this._getScrollPosition(e);this._$tagsContainer.scrollLeft(t)}},_getScrollPosition:function(e){return"start"===e||"end"===e?this._getBorderPosition(e):this._$focusedTag?this._getFocusedTagPosition(e):this._getBorderPosition("end")},_getBorderPosition:function(e){var t=this.option("rtlEnabled"),n="end"===e^t,i=t&&!c.webkit,o=!t||c.webkit||c.msie?1:-1;return n^!i?0:o*(this._$tagsContainer.get(0).scrollWidth-this._$tagsContainer.outerWidth())},_getFocusedTagPosition:function(e){var t=this.option("rtlEnabled"),n="next"===e^t,i=this._$focusedTag.position().left,o=this._$tagsContainer.scrollLeft();if(n&&(i+=this._$focusedTag.outerWidth(!0)-this._$tagsContainer.outerWidth()),n^i<0){var a=t&&c.msie?-1:1;o+=i*a}return o},_setNextValue:u,_getDefaultOptions:function(){return w(this.callBase(),{value:[],showDropDownButton:!1,maxFilterLength:1500,tagTemplate:"tag",selectAllText:C.format("dxList-selectAll"),hideSelectedItems:!1,selectedItems:[],selectAllMode:"page",onSelectAllValueChanged:null,maxDisplayedTags:void 0,showMultiTagOnly:!0,onMultiTagPreparing:null,multiline:!0,useSubmitBehavior:!0})},_init:function(){this.callBase(),this._selectedItems=[],this._initSelectAllValueChangedAction()},_initActions:function(){this.callBase(),this._initMultiTagPreparingAction()},_initMultiTagPreparingAction:function(){this._multiTagPreparingAction=this._createActionByOption("onMultiTagPreparing",{beforeExecute:function(e){this._multiTagPreparingHandler(e.args[0])}.bind(this),excludeValidators:["disabled","readOnly"]})},_multiTagPreparingHandler:function(e){var t=this._getValue().length;this.option("showMultiTagOnly")?e.text=C.getFormatter("dxTagBox-selected")(t):e.text=C.getFormatter("dxTagBox-moreSelected")(t-this.option("maxDisplayedTags")+1)},_initDynamicTemplates:function(){this.callBase(),this._defaultTemplates.tag=new D(function(e,t){var n=o("<div>").addClass(z);o("<span>").text(t.text||t).appendTo(n),o("<div>").addClass(P).appendTo(n),e.append(n)}.bind(this),["text"],this.option("integrationOptions.watchMethod"),{text:this._displayGetter})},_toggleSubmitElement:function(e){e?(this._renderSubmitElement(),this._setSubmitValue()):(this._$submitElement&&this._$submitElement.remove(),delete this._$submitElement)},_renderSubmitElement:function(){this.option("useSubmitBehavior")&&(this._$submitElement=o("<select>").attr("multiple","multiple").css("display","none").appendTo(this.$element()))},_setSubmitValue:function(){if(this.option("useSubmitBehavior")){for(var e=this._getValue(),t="this"===this.option("valueExpr"),n=[],i=0,a=e.length;i<a;i++)n.push(o("<option>").val(t?this._displayGetter(e[i]):e[i]).attr("selected","selected"));this._$submitElement.empty(),this._$submitElement.append(n)}},_initMarkup:function(){this._tagElementsCache=o();var e=!this.option("multiline");this.$element().addClass(A).toggleClass(V,!(this.option("searchEnabled")||this.option("acceptCustomValue"))).toggleClass(F,e),this._initTagTemplate(),this.callBase()},_render:function(){this.callBase(),this._renderTagRemoveAction(),this._renderSingleLineScroll(),this._scrollContainer("start")},_initTagTemplate:function(){this._tagTemplate=this._getTemplateByOption("tagTemplate")},_renderField:function(){var e=!v(this.option("fieldTemplate"));this.$element().toggleClass(N,e).toggleClass($,!e),this.callBase()},_renderTagRemoveAction:function(){var e=this._createAction(this._removeTagHandler.bind(this)),t=k.addNamespace(S.name,"dxTagBoxTagRemove");s.off(this._$tagsContainer,t),s.on(this._$tagsContainer,t,"."+P,function(t){e({event:t})}),this._renderTypingEvent()},_renderSingleLineScroll:function(){var e=k.addNamespace("dxmousewheel",this.NAME),t=this.$element(),n=this.option("multiline");return s.off(t,e),"desktop"!==a.real().deviceType?void(this._$tagsContainer&&this._$tagsContainer.css("overflowX",n?"":"auto")):void(n||s.on(t,e,this._tagContainerMouseWheelHandler.bind(this)))},_tagContainerMouseWheelHandler:function(e){var t=this._$tagsContainer.scrollLeft();return this._$tagsContainer.scrollLeft(t+e.delta*q),!1},_renderTypingEvent:function(){s.on(this._input(),k.addNamespace("keydown",this.NAME),function(e){!this._isControlKey(e.key)&&this._isEditable()&&this._clearTagFocus()}.bind(this))},_popupWrapperClass:function(){return this.callBase()+" "+L},_renderInput:function(){this.callBase(),this._renderPreventBlur(this._inputWrapper())},_renderInputValueImpl:function(){return this._renderMultiSelect()},_loadInputValue:function(){return f()},_clearTextValue:function(){this._input().val(""),this._toggleEmptinessEventHandler()},_focusInHandler:function(e){this.callBase(e),this._scrollContainer("end")},_restoreInputText:function(){this._clearTextValue()},_focusOutHandler:function(e){this.callBase(e),this._clearTagFocus(),this._scrollContainer("start")},_getFirstPopupElement:function(){return this.option("showSelectionControls")?this._popup._wrapper().find("."+H):this.callBase()},_initSelectAllValueChangedAction:function(){this._selectAllValueChangeAction=this._createActionByOption("onSelectAllValueChanged")},_renderList:function(){if(this.callBase(),this._setListDataSourceFilter(),this.option("showSelectionControls")){var e=this._list.$element().find("."+H),t=e.dxCheckBox("instance");t.registerKeyHandler("tab",this._popupElementTabHandler.bind(this)),t.registerKeyHandler("escape",this._popupElementEscHandler.bind(this))}},_listConfig:function(){var e=this,t=this.option("showSelectionControls")?"all":"multiple";return w(this.callBase(),{selectionMode:t,selectAllText:this.option("selectAllText"),onSelectAllValueChanged:function(t){e._selectAllValueChangeAction({value:t.value})},selectAllMode:this.option("selectAllMode"),selectedItems:this._selectedItems,onFocusedItemChanged:null})},_renderMultiSelect:function(){var e=new g;return this._$tagsContainer=this.$element().find("."+G).addClass(B).addClass(W),this._renderInputSize(),this._renderTags().always(function(){this._popup&&this._popup.refreshPosition(),e.resolve()}.bind(this)),e.promise()},_listItemClickHandler:function(e){!this.option("showSelectionControls")&&this._clearTextValue(),"useButtons"!==this.option("applyValueMode")&&this.callBase(e)},_shouldClearFilter:function(){var e=this.callBase(),t=this.option("showSelectionControls");return!t&&e},_renderInputSize:function(){var e=this._input();e.prop("size",e.val()?e.val().length+2:1)},_renderInputSubstitution:function(){this.callBase(),this._renderInputSize()},_getValue:function(){return this.option("value")||[]},_multiTagRequired:function(){var e=this._getValue(),t=this.option("maxDisplayedTags");return v(t)&&e.length>t},_renderMultiTag:function(e){var t=o("<div>").addClass(O).addClass(R),n={multiTagElement:_(t),selectedItems:this.option("selectedItems")};return this._multiTagPreparingAction(n),!n.cancel&&(t.data(E,n.text),t.insertBefore(e),this._tagTemplate.render({model:n.text,container:_(t)}),t)},_getFilteredItems:function(e){var t=new h(e),n=this._list&&this._list.option("selectedItems")||this.option("selectedItems"),i=t.getLocalFilter(this._valueGetter),o=n.filter(i),a=o.length===e.length,r=new g;if(a)return r.resolve(o).promise();var s=this._dataSource.filter(),l=t.getCombinedFilter(this.option("valueExpr"),s),c=encodeURI(JSON.stringify(l)).length,d=c>this.option("maxFilterLength")?void 0:l,u=this._dataSource.loadOptions(),p=u.customQueryParams;return this._dataSource.store().load({filter:d,customQueryParams:p}).done(function(e){r.resolve(e.filter(i))}),r.promise()},_createTagsData:function(e,t){var n=[],i={},o="this"===this._valueGetterExpr(),a={};return t.forEach(function(e){var t=o?JSON.stringify(e):this._valueGetter(e);a[t]=e}.bind(this)),e.forEach(function(e,t){var r=a[o?JSON.stringify(e):e];o&&!v(r)?this._loadItem(e,i).always(function(i){this._createTagData(n,i,e,t)}.bind(this)):this._createTagData(n,r,e,t)}.bind(this)),n},_createTagData:function(e,t,n,i){if(v(t))this._selectedItems.push(t),e.splice(i,0,t);else{var o=this.option("selectedItem"),a=this._valueGetter(o)===n?o:n;e.splice(i,0,a)}},_loadTagsData:function(){var e=this._getValue(),t=new g;return this._selectedItems=[],this._getFilteredItems(e).done(function(n){var i=this._createTagsData(e,n);t.resolve(i)}.bind(this)).fail(t.reject.bind(this)),t.promise()},_renderTags:function(){var e=new g;return this._loadTagsData().always(function(t){this._renderTagsCore(t),this._renderEmptyState(),this._preserveFocusedTag||this._clearTagFocus(),e.resolve()}.bind(this)),e.promise()},_renderTagsCore:function(e){this._renderInputAddons(),this.option("selectedItems",this._selectedItems.slice()),this._cleanTags();var t=this._multiTagRequired()&&this._renderMultiTag(this._input()),n=this.option("showMultiTagOnly"),i=this.option("maxDisplayedTags");e.forEach(function(e,o){return!(t&&n||t&&!n&&o-i>=-1)&&void this._renderTag(e,t||this._input())}.bind(this)),this._scrollContainer("end"),this._refreshTagElements()},_cleanTags:function(){if(this._multiTagRequired())this._tagElements().remove();else{var e=this._tagElements(),t=this._getValue();y(e,function(e,n){var i=o(n),a=b(i.data(E),t);a<0&&i.remove()})}},_renderEmptyState:function(){var e=!(this._getValue().length||this._selectedItems.length||this._searchValue());this._toggleEmptiness(e),this._renderDisplayText()},_renderDisplayText:function(){this._renderInputSize()},_refreshTagElements:function(){this._tagElementsCache=this.$element().find("."+O)},_tagElements:function(){return this._tagElementsCache},_applyTagTemplate:function(e,t){this._tagTemplate.render({model:e,container:_(t)})},_renderTag:function(e,t){var n=this._valueGetter(e);if(v(n)){var i=this._getTag(n),o=this._displayGetter(e),a=this._getItemModel(e,o);i?(v(o)&&(i.empty(),this._applyTagTemplate(a,i)),
|
|
41
41
|
i.removeClass(M)):(i=this._createTag(n,t),v(e)?this._applyTagTemplate(a,i):(i.addClass(M),this._applyTagTemplate(n,i)))}},_getItemModel:function(e,t){return m.isObject(e)?e:t},_getTag:function(e){for(var t=this._tagElements(),n=t.length,i=!1,a=0;a<n;a++){var s=t[a],l=r.data(s,E);if(e===l||d.equalByValue(e,l)){i=o(s);break}}return i},_createTag:function(e,t){return o("<div>").addClass(O).data(E,e).insertBefore(t)},_toggleEmptinessEventHandler:function(){this._toggleEmptiness(!this._getValue().length&&!this._searchValue().length)},_customItemAddedHandler:function(e){this.callBase(e),this._input().val("")},_removeTagHandler:function(e){var t=e.event;t.stopPropagation();var n=o(t.target).closest("."+O);this._removeTagElement(n)},_removeTagElement:function(e){if(e.hasClass(R))return void(this.option("showMultiTagOnly")?this.reset():this.option("value",this._getValue().slice(0,this.option("maxDisplayedTags"))));var t=e.data(E);this._removeTagWithUpdate(t),this._refreshTagElements()},_updateField:u,_removeTagWithUpdate:function(e){var t=this._getValue().slice();this._removeTag(t,e),this.option("value",t),0===t.length&&this._clearTagFocus()},_getCurrentValue:function(){return this._lastValue()},_selectionChangeHandler:function(e){if("useButtons"!==this.option("applyValueMode")){var t=this._getValue().slice();y(e.removedItems||[],function(e,n){this._removeTag(t,this._valueGetter(n))}.bind(this)),y(e.addedItems||[],function(e,n){this._addTag(t,this._valueGetter(n))}.bind(this)),this._updateWidgetHeight(),this.option("value",t)}},_removeTag:function(e,t){var n=this._valueIndex(t,e);n>=0&&e.splice(n,1)},_addTag:function(e,t){var n=this._valueIndex(t);n<0&&e.push(t)},_fieldRenderData:function(){return this._selectedItems.slice()},_completeSelection:function(e){this.option("showSelectionControls")||this._setValue(e)},_setValue:function(e){if(null!==e){var t="useButtons"===this.option("applyValueMode"),n=this._valueIndex(e),i=(t?this._list.option("selectedItemKeys"):this._getValue()).slice();n>=0?i.splice(n,1):i.push(e),"useButtons"===this.option("applyValueMode")?this._list.option("selectedItemKeys",i):this.option("value",i)}},_isSelectedValue:function(e,t){return this._valueIndex(e,null,t)>-1},_valueIndex:function(e,t,n){var o=-1;return n&&"object"!==("undefined"==typeof e?"undefined":i(e))&&(n.indexByValues||(n.indexByValues={},t=t||this._getValue(),t.forEach(function(e,t){n.indexByValues[e]=t})),e in n.indexByValues)?n.indexByValues[e]:(t=t||this._getValue(),y(t,function(t,n){if(this._isValueEquals(e,n))return o=t,!1}.bind(this)),o)},_lastValue:function(){var e=this._getValue(),t=e[e.length-1];return v(t)?t:null},_valueChangeEventHandler:u,_shouldRenderSearchEvent:function(){return this.option("searchEnabled")||this.option("acceptCustomValue")},_searchHandler:function(e){this.option("searchEnabled")&&e&&!this._isTagRemoved&&this.callBase(e),this._updateWidgetHeight(),delete this._isTagRemoved},_updateWidgetHeight:function(){var e=this.$element(),t=e.height();this._renderInputSize();var n=e.height();this._popup&&this.option("opened")&&this._isEditable()&&n!==t&&this._popup.repaint()},_refreshSelected:function(){this._list&&this._list.option("selectedItems",this._selectedItems)},_resetListDataSourceFilter:function(){var e=this._getDataSource();e&&(delete this._userFilter,e.filter(null),e.reload())},_setListDataSourceFilter:function(){if(this.option("hideSelectedItems")&&this._list){var e=this._getDataSource();if(e){var t=this._valueGetterExpr();if(m.isString(t)&&"this"!==t){var n=this._dataSourceFilterExpr();void 0===this._userFilter&&(this._userFilter=e.filter()||null),this._userFilter&&n.push(this._userFilter),n.length?e.filter(n):e.filter(null)}else e.filter(this._dataSourceFilterFunction.bind(this));e.load()}}},_dataSourceFilterExpr:function(){var e=[];return y(this._getValue(),function(t,n){e.push(["!",[this._valueGetterExpr(),n]])}.bind(this)),e},_dataSourceFilterFunction:function(e){var t=this._valueGetter(e),n=!0;return y(this._getValue(),function(e,i){if(this._isValueEquals(i,t))return n=!1,!1}.bind(this)),n},_applyButtonHandler:function(){this.option("value",this._getSortedListValues()),this._clearTextValue(),this._clearFilter(),this.callBase()},_getSortedListValues:function(){var e=this._getListValues(),t=this.option("value")||[],n=e.length?t.filter(function(t){return e.indexOf(t)!==-1}):[],i=n.length?e.filter(function(e){return t.indexOf(e)===-1}):e;return n.concat(i)},_getListValues:function(){if(!this._list)return[];var e=this,t=this._getPlainItems(this._list.option("selectedItems")),n=[];return y(t,function(t,i){n[t]=e._valueGetter(i)}),n},_renderOpenedState:function(){this.callBase(),"useButtons"!==this.option("applyValueMode")||this.option("opened")||this._refreshSelected()},reset:function(){this._restoreInputText(),this.callBase()},_clean:function(){this.callBase(),delete this._defaultTagTemplate,delete this._tagTemplate},_removeDuplicates:function(e,t){var n=this,i=[];return y(e,function(e,o){var a=t.filter(function(e){return n._valueGetter(o)===n._valueGetter(e)});a.length||i.push(o)}),i},_optionChanged:function(e){switch(e.name){case"onSelectAllValueChanged":this._initSelectAllValueChangedAction();break;case"onMultiTagPreparing":this._initMultiTagPreparingAction(),this._renderTags();break;case"hideSelectedItems":e.value?this._setListDataSourceFilter():this._resetListDataSourceFilter();break;case"useSubmitBehavior":this._toggleSubmitElement(e.value);break;case"displayExpr":this.callBase(e),this._initTemplates(),this._invalidate();break;case"tagTemplate":this._initTagTemplate(),this._invalidate();break;case"selectAllText":this._setListOption("selectAllText",this.option("selectAllText"));break;case"value":this.callBase(e),this._setListDataSourceFilter();break;case"maxDisplayedTags":case"showMultiTagOnly":this._renderTags();break;case"selectAllMode":this._setListOption(e.name,e.value);break;case"selectedItem":break;case"selectedItems":var t=this._removeDuplicates(e.value,e.previousValue),n=this._removeDuplicates(e.previousValue,e.value);this._selectionChangedAction({addedItems:t,removedItems:n});break;case"multiline":this.$element().toggleClass(F,!e.value),this._renderSingleLineScroll();break;case"maxFilterLength":break;default:this.callBase(e)}},_getActualSearchValue:function(){return this.callBase()||this._searchValue()},_popupHidingHandler:function(){this.callBase(),this._clearFilter()}});l("dxTagBox",j),e.exports=j},function(e,t,n){var i=n(2),o=n(5),a=n(4).noop,r=n(8),s=n(0).extend,l=n(9),c=n(25),d=n(98),u="dx-textarea",h="dx-texteditor-input",p=d.inherit({_getDefaultOptions:function(){return s(this.callBase(),{spellcheck:!0,minHeight:void 0,maxHeight:void 0,autoResizeEnabled:!1})},_initMarkup:function(){this.$element().addClass(u),this.callBase(),this.setAria("multiline","true")},_renderContentImpl:function(){this._updateInputHeight(),this.callBase()},_renderInput:function(){this.callBase(),this._renderScrollHandler()},_createInput:function(){var e=i("<textarea>");return this._applyInputAttributes(e,this.option("inputAttr")),e},_applyInputAttributes:function(e,t){e.attr(t).addClass(h)},_renderScrollHandler:function(){var e=this._input(),t=0;o.on(e,l.addNamespace(c.down,this.NAME),function(e){t=l.eventData(e).y}),o.on(e,l.addNamespace(c.move,this.NAME),function(n){var i=e.scrollTop(),o=e.prop("scrollHeight")-e.prop("clientHeight")-i;if(0!==i||0!==o){var a=l.eventData(n).y,r=0===i&&t>=a,s=0===o&&t<=a,c=i>0&&o>0;(r||s||c)&&(n.isScrollingEvent=!0,n.stopPropagation()),t=a}})},_renderDimensions:function(){var e=this.$element(),t=e.get(0),n=this._getOptionValue("width",t),i=this._getOptionValue("height",t),o=this.option("minHeight"),a=this.option("maxHeight");e.css({minHeight:void 0!==o?o:"",maxHeight:void 0!==a?a:"",width:n,height:i})},_resetDimensions:function(){this.$element().css({height:"",minHeight:"",maxHeight:""})},_renderEvents:function(){this.option("autoResizeEnabled")&&o.on(this._input(),l.addNamespace("input paste",this.NAME),this._updateInputHeight.bind(this)),this.callBase()},_refreshEvents:function(){o.off(this._input(),l.addNamespace("input paste",this.NAME)),this.callBase()},_updateInputHeight:function(){var e=this._input();if(!this.option("autoResizeEnabled")||void 0!==this.option("height"))return void e.css("height","");this._resetDimensions(),e.css("height",0);var t=this._$element.outerHeight()-e.outerHeight();this._renderDimensions();var n=this.option("minHeight"),i=this.option("maxHeight"),o=e[0].scrollHeight;void 0!==n&&(o=Math.max(o,n-t)),void 0!==i&&(o=Math.min(o,i-t)),e.css("height",o)},_renderInputType:a,_visibilityChanged:function(e){e&&this._updateInputHeight()},_optionChanged:function(e){switch(e.name){case"autoResizeEnabled":this._refreshEvents(),this._updateInputHeight();break;case"value":case"height":this.callBase(e),this._updateInputHeight();break;case"minHeight":case"maxHeight":this._renderDimensions(),this._updateInputHeight();break;case"visible":this.callBase(e),e.value&&this._updateInputHeight();break;default:this.callBase(e)}}});r("dxTextArea",p),e.exports=p},function(e,t,n){var i=n(2),o=n(20),a=n(8),r=n(4).grep,s=n(0).extend,l=n(11),c=n(3),d=n(518),u=n(519),h=n(521),p=n(522),f=n(265),g=n(101),_={actionSheet:d,dropDownMenu:u,listBottom:h,listTop:p},m="dx-toolbar-item-auto-hide",v="dx-toolbar-text-auto-hide",x="dx-toolbar-item-invisible",w=f.inherit({_getDefaultOptions:function(){return s(this.callBase(),{menuItemTemplate:"menuItem",submenuType:"dropDownMenu"})},_defaultOptionsRules:function(){var e=o.current();return this.callBase().concat([{device:function(){return o.isIos7(e)},options:{submenuType:"actionSheet"}},{device:function(){return o.isAndroid5(e)},options:{submenuType:"dropDownMenu"}},{device:function(){return o.isWin8(e)},options:{submenuType:"listBottom"}},{device:function(){return o.isWin10(e)},options:{submenuType:"listTop"}}])},_dimensionChanged:function(e){"height"!==e&&(this._menuStrategy.toggleMenuVisibility(!1,!0),this.callBase(),this._menuStrategy.renderMenuItems())},_initTemplates:function(){this.callBase(),this._defaultTemplates.actionSheetItem=new g("item",this)},_initMarkup:function(){this.callBase(),this._renderMenu()},_postProcessRenderItems:function(){this._hideOverflowItems(),this._menuStrategy._updateMenuVisibility(),this.callBase(),this._menuStrategy.renderMenuItems()},_renderItem:function(e,t,n,i){var o=this.callBase(e,t,n,i);return"auto"===t.locateInMenu&&o.addClass(m),"dxButton"===t.widget&&"inMenu"===t.showText&&o.toggleClass(v),o},_getItemsWidth:function(){return this._getSummaryItemsWidth([this._$beforeSection,this._$centerSection,this._$afterSection])},_hideOverflowItems:function(e){var t=this.$element().find("."+m);if(t.length){e=e||this.$element().width(),i(t).removeClass(x);for(var n=this._getItemsWidth();t.length&&e<n;){var o=t.eq(-1);n-=o.outerWidth(),o.addClass(x),t.splice(-1,1)}}},_getMenuItems:function(){var e=this,t=r(this.option("items")||[],function(t){return e._isMenuItem(t)}),n=this._itemContainer().children("."+m+"."+x).not(".dx-state-invisible");this._restoreItems=this._restoreItems||[];var o=[].slice.call(n).map(function(t){var n=e._getItemData(t),o=i(t).children(),a=o.children();return s({menuItemTemplate:function(){e._restoreItems.push({container:o,item:a});var t=i("<div>").addClass(m);return t.append(a)}},n)});return l.merge(o,t)},_getToolbarItems:function(){var e=this;return r(this.option("items")||[],function(t){return!e._isMenuItem(t)})},_renderMenu:function(){this._renderMenuStrategy(),this._menuStrategy.render()},_renderMenuStrategy:function(){var e=this.option("submenuType");this._requireDropDownStrategy()&&(e="dropDownMenu");var t=_[e];this._menuStrategy&&this._menuStrategy.NAME===e||(this._menuStrategy=new t(this))},_requireDropDownStrategy:function(){var e=this.option("submenuType");if(("listBottom"===e||"listTop"===e)&&"topToolbar"===this.option("renderAs"))return!0;var t=this.option("items")||[],n=!1;return c.each(t,function(e,t){"auto"===t.locateInMenu?n=!0:"always"===t.locateInMenu&&t.widget&&(n=!0)}),n},_arrangeItems:function(){if(!this.$element().is(":hidden")){this._$centerSection.css({margin:"0 auto","float":"none"}),c.each(this._restoreItems||[],function(e,t){i(t.container).append(t.item)}),this._restoreItems=[];var e=this.$element().width();this._hideOverflowItems(e),this.callBase(e)}},_itemOptionChanged:function(e,t,n){this._isMenuItem(e)?this._menuStrategy.renderMenuItems():this._isToolbarItem(e)?this.callBase(e,t,n):(this.callBase(e,t,n),this._menuStrategy.renderMenuItems())},_isMenuItem:function(e){return"menu"===e.location||"always"===e.locateInMenu},_isToolbarItem:function(e){return void 0===e.location||"never"===e.locateInMenu},_optionChanged:function(e){var t=e.name,n=e.value;switch(t){case"submenuType":this._invalidate();break;case"visible":this.callBase.apply(this,arguments),this._menuStrategy.handleToolbarVisibilityChange(n);break;case"menuItemTemplate":this._changeMenuOption("itemTemplate",this._getTemplate(n));break;case"onItemClick":this._changeMenuOption(t,n),this.callBase.apply(this,arguments);break;default:this.callBase.apply(this,arguments)}},_changeMenuOption:function(e,t){this._menuStrategy.widgetOption(e,t)}});a("dxToolbar",w),e.exports=w},function(e,t,n){var i=n(10),o=n(6).getWindow(),a=n(1),r=n(0).extend,s=n(11).inArray,l=n(21),c=n(39),d=n(313),u=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",x="xl",w="workbook.xml",b="[Content_Types].xml",y="sharedStrings.xml",C="styles.xml",k="worksheets",S="sheet1.xml",I={"boolean":"b",date:"d",number:"n",string:"s"},T=Date.UTC(1899,11,30),D=60,E=4,A=7,B=165;t.ExcelCreator=i.inherit({_getXMLTag:function(e,t,n){var i,o,r="<"+e,s=t.length;for(i=0;i<s;i++)o=t[i],r=r+" "+o.name+'="'+o.value+'"';return a.isDefined(n)?r+">"+n+"</"+e+">":r+" />"},_getCellIndex:function(e,t){var n,i,o="",a=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>=a?t%a:Math.ceil(t)),o=String.fromCharCode(n)+o,t>=a?t=Math.floor(t/a)-1:i=!0;return o+e},_getDataType:function(e){return I[e]||"s"},_formatObjectConverter:function(e,t,n){var i={format:e,precision:t,dataType:n};return a.isObject(e)?r(i,e,{format:e.formatter||e.type,currency:e.currency}):i},_appendFormat:function(e,t,n){var i,o=this._formatObjectConverter(e,t,n);if(e=o.format,t=o.precision,i=o.currency,n=o.dataType,e=h.convertFormat(e,t,n,i))return s(e,this._styleFormat)===-1&&this._styleFormat.push(e),s(e,this._styleFormat)+1},_appendString:function(e){if(a.isDefined(e)&&(e=String(e),e.length))return e=c.encodeHtml(e),void 0===this._stringHash[e]&&(this._stringHash[e]=this._stringArray.length,this._stringArray.push(e)),this._stringHash[e]},_getExcelDateValue:function(e){var t,n;if(a.isDate(e))return t=Math.floor((Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())-T)/864e5),t<D&&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),o=this._getDataType(n.getCellType(e,t)),r=this._styleArray[this._dataProvider.getStyleId(e,t)].formatID,s=a.isNumeric(r)?this._styleFormat[r-1]:null;switch("d"!==o||a.isDate(i)||(o="s"),o){case"s":i=this._appendString(i);break;case"d":i=this._getExcelDateValue(i,s),o="n"}return{value:i,type:o}},_getDataArray:function(){var e,t,n,i,o,a=this,r=[],s=a._dataProvider,l=s.getRowsCount(),c=s.getColumns();for(e=0;e<l;e++){for(n=[],o=c.length,t=0;t!==o;t++)i=a._prepareValue(e,t),n.push({style:s.getStyleId(e,t),value:i.value,type:i.type});!a._needSheetPr&&s.getGroupLevel(e)>0&&(a._needSheetPr=!0),r.push(n)}return r},_getBoldStyleID:function(e){for(var t=0;t<E-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)/A*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(x),i=[],o="";for(e=0;e<t._styleFormat.length;e++)t._styleFormat[e]=t._getXMLTag("numFmt",[{name:"numFmtId",value:Number(e)+B},{name:"formatCode",value:t._styleFormat[e]}]);o=o+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:a.isDefined(e.formatID)?1:0},{name:"numFmtId",value:a.isDefined(e.formatID)?Number(e.formatID)+B-1:0}],t._getXMLTag("alignment",[{name:"vertical",value:"top"},{name:"wrapText",value:Number(!!e.wrapText)},{name:"horizontal",value:e.alignment}])))}),o+=t._getXMLTag("cellXfs",[{name:"count",value:i.length}],i.join("")),o+=t._getXMLTag("cellStyles",[{name:"count",value:1}],t._getXMLTag("cellStyle",[{name:"name",value:"Normal"},{name:"xfId",value:0},{name:"builtinId",value:0}])),o=p+t._getXMLTag("styleSheet",[{name:"xmlns",value:m+"/spreadsheetml/2006/main"}],o),n.file(C,o),t._styleArray=[]},_generateStringsXML:function(){var e,t=this._zip.folder(x),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(y,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,o,r,s=0,l=[],c=this._cellsArray.length,d=this._colsArray.length,u="1:"+d,h=this._dataProvider.getHeaderRowCount?this._dataProvider.getHeaderRowCount():1,p=[['<?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("")];for(e=0;e<d;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=[],r=this._cellsArray[t].length,e=0;e<r;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}],a.isDefined(n.value)?this._getXMLTag("v",[],n.value):null));l.push(this._getXMLTag("row",[{name:"r",value:Number(t)+1},{name:"spans",value:u},{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=[],o=this._getCellIndex(this._maxIndex[0],this._maxIndex[1]),p.push("</sheetData>"+this._getAutoFilterXML(o)+this._generateMergingXML()+this._getIgnoredErrorsXML(o)+"</worksheet>"),this._zip.folder(x).folder(k).file(S,p.join("")),this._colsArray=[],this._cellsArray=[],p=[]},_generateMergingXML:function(){var e,t,n,i,o,r,s=a.isDefined(this._dataProvider.getHeaderRowCount)?this._dataProvider.getHeaderRowCount():this._dataProvider.getRowsCount(),l=this._dataProvider.getColumns().length,c=[],d=[],u="";for(i=0;i<s;i++)for(n=0;n!==l;n++)if(!a.isDefined(c[i])||!a.isDefined(c[i][n])){var h=this._dataProvider.getCellMerging(i,n);if(h.colspan||h.rowspan)for(d.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++)a.isDefined(c[e])||(c[e]=[]),c[e][t]=!0}for(o=d.length,r=0;r<o;r++)u+=this._getXMLTag("mergeCell",[{name:"ref",value:d[r].start+":"+d[r].end}]);return u.length?this._getXMLTag("mergeCells",[{name:"count",value:o}],u):""},_generateCommonXML:function(){var e,t=p+this._createXMLRelationships(this._createXMLRelationship(1,"officeDocument","xl/"+w)),n=this._zip.folder(x),i=p;this._zip.folder("_"+v).file("."+v,t),e=this._createXMLRelationship(1,"worksheet","worksheets/"+S)+this._createXMLRelationship(2,"styles",C)+this._createXMLRelationship(3,"sharedStrings",y),i+=this._createXMLRelationships(e),n.folder("_"+v).file(w+".rels",i),n.file(w,this._getWorkbookContent()),this._zip.file(b,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,a.isDefined(d)?this._zip=new d: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:u.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 r=new t.ExcelCreator(e,n);r._checkZipState(),r.ready().done(function(){r._zip.generateAsync?r.getData(a.isFunction(o.Blob)).then(i):i(r.getData(a.isFunction(o.Blob)))})}},function(e,t){e.exports=window.JSZip},function(e,t,n){var i=n(4).escapeRegExp,o={3:"abbreviated",4:"wide",5:"narrow"},a=function(e,t){return e>2?Object.keys(o).map(function(e){return["format","standalone"].map(function(n){return t.getMonthNames(o[e],n).join("|")}).join("|")}).join("|"):"0?[1-9]|1[012]"},r={y:function(e){return"[0-9]+"},M:a,L:a,Q:function(e,t){return e>2?t.getQuarterNames(o[e],"format").join("|"):"0?[1-4]"},E:function(e,t){return"\\D*"},a:function(e,t){return t.getPeriodNames(o[e<3?3:e],"format").join("|")},d:function(e){return"0?[1-9]|[12][0-9]|3[01]"},H:function(e){return"0?[0-9]|1[0-9]|2[0-3]"},h:function(e){return"0?[1-9]|1[012]"},m:function(e){return"0?[0-9]|[1-5][0-9]"},s:function(e){return"0?[0-9]|[1-5][0-9]"},S:function(e){return"[0-9]{1,"+e+"}"}},s=Number,l=function(e,t){return e.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())},c=function(e,t,n){return t>2?["format","standalone"].map(function(t){return Object.keys(o).map(function(i){var a=n.getMonthNames(o[i],t);return l(a,e)})}).reduce(function(e,t){return e.concat(t)}).filter(function(e){return e>=0})[0]:s(e)-1},d={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(o[t],"format").indexOf(e):s(e)-1},E:function(e,t,n){var i=n.getDayNames(o[t<3?3:t],"format");return l(i,e)},a:function(e,t,n){var i=n.getPeriodNames(o[t<3?3:t],"format");return l(i,e)},d:s,H:s,h:s,m:s,s:s,S:function(e,t){for(t=Math.max(t,3),e=e.slice(0,3);t<3;)e+="0",t++;return s(e)}},u=["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,o="",a=[];e=i(e);for(var s=0;s<e.length;s++){var l=e[s],c="'"===l,d=r[l];if(!c||(n=!n,"'"===e[s-1]))if(d&&!n){var u=p(e,s),h=f(l,u);a.push(h),o+="("+d(u,t)+")",s+=u-1}else o+=l}return{patterns:a,regexp:new RegExp("^"+o+"$","i")}},_=function(e,t,n,i){var o=t[0],a=h[o],r=d[o];if(a&&r){var s=r(n,t.length,i);e[a]?e[a](s):a(e,s)}},m=function(e,t,n){var i=h[t],o="g"+i.substr(1);e[i](n[o]())},v=function(e){return e.map(function(e){return"H"===e[0]?"h":e[0]})},x=function(e){var t=e.map(function(e){return u.indexOf(e)});return Math.max.apply(Math,t)},w=function(e){var t=e.filter(function(e){return u.indexOf(e)<0});return u.concat(t)},b=function(e,t){var n=g(e,t);return function(e){var i=n.regexp.exec(e);if(i){var o=new Date,a=new Date(o.getFullYear(),0,1),r=v(n.patterns),s=x(r),l=w(r);return l.forEach(function(e,l){if(!(l<u.length&&l>s)){var c=r.indexOf(e);c>=0?_(a,n.patterns[c],i[c+1],t):m(a,e,o)}}),a}return null}};t.getParser=b},function(e,t,n){var i=n(2),o=n(72),a=n(6).getWindow(),r=n(1).isFunction,s=n(3).each,l=n(262).getSvgMarkup,c=n(7),d=c.when,u=c.Deferred;t.svgCreator={_markup:"",_imageArray:{},_imageDeferreds:[],_getBinaryFile:function(e,t){o.sendRequest({url:e,method:"GET",responseType:"arraybuffer"}).done(t).fail(function(){t(!1)})},_loadImages:function(){var e=this;s(e._imageArray,function(t){var n=new u;e._imageDeferreds.push(n),e._getBinaryFile(t,function(i){if(!i)return delete e._imageArray[t],void n.resolve();var o,r="",s=new Uint8Array(i),l=s.byteLength;for(o=0;o<l;o++)r+=String.fromCharCode(s[o]);e._imageArray[t]="data:image/png;base64,"+a.btoa(r),n.resolve()})})},_parseImages:function(e){var t,n=this;"image"===e.tagName&&(t=i(e).attr("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(),d.apply(i,this._imageDeferreds)},getData:function(e,t){var n,o=this,c='<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>',d=new u,h=new a.DOMParser,p=h.parseFromString(e,"image/svg+xml"),f=p.childNodes[0],g=i(f);return g.css("backgroundColor",t.backgroundColor),n=c+l(g.get(0)),o._prepareImages(f).done(function(){s(o._imageArray,function(e,t){n=n.split(e).join(t)}),d.resolve(r(a.Blob)?o._getBlob(n):o._getBase64(n))}),d},_getBlob:function(e){return new a.Blob([e],{type:"image/svg+xml"})},_getBase64:function(e){return a.btoa(e)}},t.getData=function(e,n,i){t.svgCreator.getData(e,n).done(i)}},function(e,t,n){var i=n(6),o=i.getWindow(),a=n(55),r={getXhr:function(){return new o.XMLHttpRequest}};e.exports=a(r)},function(e,t,n){var i=n(120),o=n(6).getWindow(),a=n(221).imageCreator,r=n(1).isFunction,s=n(0).extend,l=n(7),c=l.when,d=l.Deferred,u="%PDF-1.3\r\n2 0 obj\r\n<</ProcSet[/PDF/ImageB/ImageC/ImageI]/XObject<</I0 5 0 R>>>>\r\nendobj\r\n4 0 obj\r\n<</Type/Pages/Kids[1 0 R]/Count 1>>\r\nendobj\r\n7 0 obj\r\n<</OpenAction[1 0 R /FitH null]/Type/Catalog/Pages 4 0 R/PageLayout/OneColumn>>\r\nendobj\r\n1 0 obj\r\n<</Type/Page/Resources 2 0 R/MediaBox[0 0 _width_ _height_]/Contents 3 0 R/Parent 4 0 R>>\r\nendobj\r\n",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},x=function(e,t,n){var o=2*(t.margin||0),a=t.width+o,r=t.height+o,s=(.75*a).toFixed(2),l=(.75*r).toFixed(2),c=u.replace("_width_",s).replace("_height_",l),d=h.replace("_width_",s).replace("_height_",l),m=p.replace("_date_",n).replace("_version_",i),v=f.replace("_width_",a).replace("_height_",r).replace("_length_",e.length)+e+g,x=w(c.length,d.length,m.length),b=c+d+m+v,y=_.replace("_length_",b.length);return b+x+y},w=function(e,t,n){return m.replace("_main_",v(e+"",10)).replace("_info_",v(e+t+"",10)).replace("_image_",v(e+t+n+"",10))},b=function(){return new Date},y=function(e){for(var t=0,n=new Uint8Array(e.length);t<e.length;t++)n[t]=e.charCodeAt(t);return new o.Blob([n.buffer],{type:"application/pdf"})},C=function(e){return o.btoa(e)};t.getData=function(e,t,n){var i=a.getImageData(e,s({},t,{format:"JPEG"})),l=new d;l.done(n),c(i).done(function(e){var n=x(e,t,b()),i=r(o.Blob)?y(n):C(n);l.resolve(i)})}},function(e,t,n){var i=n(19),o=n(1).isFunction,a=n(3).each,r=n(10);
|
|
42
|
-
e.exports=r.inherit({ctor:function(e){this._events={},this._owner=e},hasEvent:function(e){var t=this._events[e];return!!t&&t.has()},fireEvent:function(e,t){var n=this._events[e];n&&n.fireWith(this._owner,t)},on:function(e,t){var n,o=this._events[e];o||(o=i(),this._events[e]=o),n=o.originalAdd||o.add,n.call(o,t)},off:function(e,t){var n=this._events[e];n&&(o(t)?n.remove(t):n.empty())},dispose:function(){a(this._events,function(){this.empty()})}})},function(e,t,n){var i=n(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,o=n(140),a=n(226),r=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 a(s,function(e,t){return e.pointerId===t.pointerId},function(e){e.isPrimary&&i.reset()}),l=!0)},d=o.inherit({ctor:function(){this.callBase.apply(this,arguments),c()},_fireEvent:function(e){return this.callBase(r({pointers:i.pointers(),pointerId:e.originalEvent.pointerId},e))}});d.map=s,d.resetObserver=function(){i.reset()},e.exports=d},function(e,t,n){var i=n(0).extend,o=n(140),a=n(227),r=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,d=function(){c||(a.activate(),c=!0)},u=o.inherit({EVENT_LOCK_TIMEOUT:100,ctor:function(){this.callBase.apply(this,arguments),d()},_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?a.normalize:r.normalize;return this.callBase(i(n(e.originalEvent),e))},dispose:function(){this.callBase(),this._skipNextEvents=!1,this._mouseLocked=!1,clearTimeout(this._unlockMouseTimer)}});u.map=l,u.resetObserver=a.resetObserver,e.exports=u},function(e,t,n){var i=n(81),o=n(15),a=n(49),r=n(33);n(137),t.locale=i.locale.bind(i),t.loadMessages=o.load.bind(o),t.formatMessage=o.format.bind(o),t.formatNumber=a.format.bind(a),t.parseNumber=a.parse.bind(a),t.formatDate=r.format.bind(r),t.parseDate=r.parse.bind(r),t.message=o,t.number=a,t.date=r},function(e,t,n){e.exports={en:{Yes:"Yes",No:"No",Cancel:"Cancel",Clear:"Clear",Done:"Done",Loading:"Loading...",Select:"Select...",Search:"Search",Back:"Back",OK:"OK","dxCollectionWidget-noDataText":"No data to display","validation-required":"Required","validation-required-formatted":"{0} is required","validation-numeric":"Value must be a number","validation-numeric-formatted":"{0} must be a number","validation-range":"Value is out of range","validation-range-formatted":"{0} is out of range","validation-stringLength":"The length of the value is not correct","validation-stringLength-formatted":"The length of {0} is not correct","validation-custom":"Value is invalid","validation-custom-formatted":"{0} is invalid","validation-compare":"Values do not match","validation-compare-formatted":"{0} does not match","validation-pattern":"Value does not match pattern","validation-pattern-formatted":"{0} does not match pattern","validation-email":"Email is invalid","validation-email-formatted":"{0} is invalid","validation-mask":"Value is invalid","dxLookup-searchPlaceholder":"Minimum character number: {0}","dxList-pullingDownText":"Pull down to refresh...","dxList-pulledDownText":"Release to refresh...","dxList-refreshingText":"Refreshing...","dxList-pageLoadingText":"Loading...","dxList-nextButtonText":"More","dxList-selectAll":"Select All","dxListEditDecorator-delete":"Delete","dxListEditDecorator-more":"More","dxScrollView-pullingDownText":"Pull down to refresh...","dxScrollView-pulledDownText":"Release to refresh...","dxScrollView-refreshingText":"Refreshing...","dxScrollView-reachBottomText":"Loading...","dxDateBox-simulatedDataPickerTitleTime":"Select time","dxDateBox-simulatedDataPickerTitleDate":"Select date","dxDateBox-simulatedDataPickerTitleDateTime":"Select date and time","dxDateBox-validation-datetime":"Value must be a date or time","dxFileUploader-selectFile":"Select file","dxFileUploader-dropFile":"or Drop file here","dxFileUploader-bytes":"bytes","dxFileUploader-kb":"kb","dxFileUploader-Mb":"Mb","dxFileUploader-Gb":"Gb","dxFileUploader-upload":"Upload","dxFileUploader-uploaded":"Uploaded","dxFileUploader-readyToUpload":"Ready to upload","dxFileUploader-uploadFailedMessage":"Upload failed","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 o=n(236);DevExpress.framework.html.commandToDXWidgetAdapters={dxToolbar:o.dxToolbar,dxList:o.dxList,dxNavBar:o.dxNavBar,dxPivot:o.dxPivot,dxSlideOut:o.dxSlideOut}},function(e,t,n){var i=n(2),o=n(56),a=n(19),r=n(17),s=n(37),l=n(1).isPlainObject,c=n(138),d=n(28),u=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),o.bindingHandlers[e]={init:function(e,n){var c,h,m=i(e),v=a(),x={},w=f().knockout,b=w&&w.isBindingPropertyPredicateName,y={onInitializing:function(){x=this._getOptionsByReference(),o.computed(function(){var e=o.unwrap(n());c&&c.beginUpdate(),h=b&&e&&e[b],D(e),c&&c.endUpdate()},null,{disposeWhenNodeIsRemoved:e}),c=this},modelByElement:function(e){if(e.length)return o.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,a=o.computed(function(){var n=o.unwrap(e());i||t(n),i=!1});return function(){a.dispose()}},templates:{"dx-polymorph-widget":{render:function(e){var t=o.utils.unwrapObservable(e.model.widget);if(t){if("button"===t||"tabs"===t||"dropDownMenu"===t){var n=t;t=s.camelize("dx-"+t),r.log("W0001","dxToolbar - 'widget' item field",n,"16.1","Use: '"+t+"' instead")}var a=i("<div>").attr("data-bind",t+": options").get(0);i(e.container).append(a),o.applyBindings(e.model,a)}}}},createTemplate:function(e){return new u(e)}}},C={},k=function(e,t,n){var i=m.data(g),a=n?o.unwrap(t):t;if(o.isWriteableObservable(t)&&(C[e]=t),c){if(i.locked(e))return;i.obtain(e);try{o.ignoreDependencies?o.ignoreDependencies(c.option,c,[e,a]):c.option(e,a)}finally{i.release(e)}}else y[e]=a},S=function(e){var t=e.fullName,n=e.value;if(t in C){var i=this._$element,o=i.data(g);if(!o.locked(t)){o.obtain(t);try{C[t](n)}finally{o.release(t)}}}},I=function(){v.add(S),m.data(_,!0).data(g,new p),new t(m,y),y=null},T=function(t,n,i){if(i!==b)if(!h||h(i,n,t)){var a;o.computed(function(){var e=t[n];k(i,e,!0),a=o.unwrap(e)},null,{disposeWhenNodeIsRemoved:e}),l(a)&&(x[i]||D(a,i))}else k(i,t[n],!1)},D=function(e,t){for(var n in e)e.hasOwnProperty(n)&&T(e,n,t?[t,n].join("."):n)};return I(),{controlsDescendantBindings:t.subclassOf(d)}}},"dxValidator"===e&&(o.bindingHandlers.dxValidator.after=m)};c.add(function(e,t){v(e,t)})},function(e,t,n){var i=n(56),o=function e(t){var n=i.contextFor(t);return!n&&t.parentNode?e(t.parentNode):t};e.exports.getClosestNodeWithContext=o},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(12),r=n(6),s=n(51).add,l=r.getWindow(),c=r.getNavigator(),d=n(5),u=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,x=n(136).hideCallback,w=n(77),b=n(31).fitIntoRange,y=n(13),C=n(4).noop,k=n(1),S=n(3).each,I=n(14),T=n(29),D=n(8),E=n(28),A=n(155),B=n(57),O=n(78),R=n(9),M=n(25),P=n(204),V=n(122),F=n(7).Deferred,L="dx-overlay",H="dx-overlay-wrapper",z="dx-overlay-content",N="dx-overlay-shader",$="dx-overlay-modal",W="dx-state-invisible",G="content",q="dx-rtl",j=["onShowing","onShown","onHiding","onHidden","onPositioning","onPositioned","onResizeStart","onResize","onResizeEnd"],K=1500,U=[],Y="dx-state-disabled",X=9,Z={top:{my:"top center",at:"top center"},bottom:{my:"bottom center",at:"bottom center"},right:{my:"right center",at:"right center"},left:{my:"left center",at:"left center"},center:{my:"center",at:"center"},"right bottom":{my:"right bottom",at:"right bottom"},"right top":{my:"right top",at:"right top"},"left bottom":{my:"left bottom",at:"left bottom"},"left top":{my:"left top",at:"left top"}},J=I.real(),Q=J.version,ee=T.mozilla&&"desktop"===J.deviceType,te="ios"===J.platform,ne=T.safari&&"desktop"!==J.deviceType,ie=te&&p(Q,[7,1])<0,oe="android"===J.platform&&0===p(Q,[4,0],2)&&c.userAgent.indexOf("Chrome")===-1,ae=function(e){if((ie||ee)&&e.width(),oe){var t=e.parents(),n=t.is(".dx-scrollable-native");n||(t.css("backfaceVisibility","hidden"),t.css("backfaceVisibility"),t.css("backfaceVisibility","visible"))}},re=function(e){return e&&o(e.target||e)};s(function(){d.subscribeGlobal(a.getDocument(),M.down,function(e){for(var t=U.length-1;t>=0;t--)if(!U[t]._proxiedDocumentDownHandler(e))return})});var se=E.inherit({_supportedKeys:function(){var e=5,t=function(e,t,n){if(this.option("dragEnabled")){n.preventDefault(),n.stopPropagation();var i=this._allowedOffsets(),o={top:b(e,-i.top,i.bottom),left:b(t,-i.left,i.right)};this._changePosition(o)}};return g(this.callBase(),{escape:function(){this.hide()},upArrow:t.bind(this,-e,0),downArrow:t.bind(this,e,0),leftArrow:t.bind(this,0,-e),rightArrow:t.bind(this,0,e)})},_getDefaultOptions:function(){return g(this.callBase(),{activeStateEnabled:!1,visible:!1,deferRendering:!0,shading:!0,shadingColor:"",position:{my:"center",at:"center"},width:function(){return.8*o(l).width()},minWidth:null,maxWidth:null,height:function(){return.8*o(l).height()},minHeight:null,maxHeight:null,animation:{show:{type:"pop",duration:300,from:{scale:.55}},hide:{type:"pop",duration:300,to:{opacity:0,scale:.55},from:{opacity:1,scale:1}}},closeOnOutsideClick:!1,closeOnBackButton:!0,onShowing:null,onShown:null,onHiding:null,onHidden:null,contentTemplate:"content",dragEnabled:!1,resizeEnabled:!1,onResizeStart:null,onResize:null,onResizeEnd:null,target:void 0,container:void 0,hideTopOverlayHandler:void 0,closeOnTargetScroll:!1,onPositioned:null,boundaryOffset:{h:0,v:0},propagateOutsideClick:!1,_checkParentVisibility:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var e=I.real(),t=e.platform,n=e.version;return"android"===t&&p(n,[4,2])<0},options:{animation:{show:{type:"fade",duration:400},hide:{type:"fade",duration:400,to:{opacity:0},from:{opacity:1}}}}},{device:function(){return!r.hasWindow()},options:{width:null,height:null,animation:null,_checkParentVisibility:!1}}])},_setOptionsByReference:function(){this.callBase(),g(this._optionsByReference,{animation:!0})},_getAnonymousTemplateName:function(){return G},_wrapper:function(){return this._$wrapper},_container:function(){return this._$content},_eventBindingTarget:function(){return this._$content},_init:function(){this.callBase(),this._initActions(),this._initCloseOnOutsideClickHandler(),this._initTabTerminatorHandler(),this._$wrapper=o("<div>").addClass(H),this._$content=o("<div>").addClass(z);var e=this.$element();this._$wrapper.addClass(e.attr("class")),e.addClass(L),this._$wrapper.attr("data-bind","dxControlsDescendantBindings: true"),d.on(this._$wrapper,"MSPointerDown",C),d.on(this._$wrapper,"focusin",function(e){e.stopPropagation()}),this._toggleViewPortSubscription(!0)},_initOptions:function(e){this._initTarget(e.target),this._initContainer(e.container),this._initHideTopOverlayHandler(e.hideTopOverlayHandler),this.callBase(e)},_initTarget:function(e){if(k.isDefined(e)){var t=this.option();S(["position.of","animation.show.from.position.of","animation.show.to.position.of","animation.hide.from.position.of","animation.hide.to.position.of"],function(n,i){for(var o=i.split("."),a=t;a;){if(1===o.length){k.isPlainObject(a)&&(a[o.shift()]=e);break}a=a[o.shift()]}})}},_initContainer:function(e){e=void 0===e?f.value():e;var t=this.$element(),n=t.closest(e);n.length||(n=o(e).first()),this._$container=n.length?n:t.parent()},_initHideTopOverlayHandler:function(e){this._hideTopOverlayHandler=void 0!==e?e:this._defaultHideTopOverlayHandler.bind(this)},_defaultHideTopOverlayHandler:function(){this.hide()},_initActions:function(){this._actions={},S(j,function(e,t){this._actions[t]=this._createActionByOption(t,{excludeValidators:["disabled","readOnly"]})||C}.bind(this))},_initCloseOnOutsideClickHandler:function(){var e=this;this._proxiedDocumentDownHandler=function(){return e._documentDownHandler.apply(e,arguments)}},_documentDownHandler:function(e){this._showAnimationProcessing&&this._stopAnimation();var t=this.option("closeOnOutsideClick");k.isFunction(t)&&(t=t(e));var n=this._$content,i=o(l.document).is(e.target)||y.contains(l.document,e.target),a=i&&!(n.is(e.target)||y.contains(n.get(0),e.target));return a&&t&&(this.option("shading")&&e.preventDefault(),this.hide()),this.option("propagateOutsideClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.content=new V(this)},_isTopOverlay:function(){for(var e=this._overlayStack(),t=e.length-1;t>=0;t--){var n=e[t]._findTabbableBounds();if(n.first||n.last)return e[t]===this}return!1},_overlayStack:function(){return U},_zIndexInitValue:function(){return K},_toggleViewPortSubscription:function(e){v.remove(this._viewPortChangeHandle),e&&(this._viewPortChangeHandle=this._viewPortChangeHandler.bind(this),v.add(this._viewPortChangeHandle))},_viewPortChangeHandler:function(){this._initContainer(this.option("container")),this._refresh()},_renderVisibilityAnimate:function(e){return this._stopAnimation(),e?this._show():this._hide()},_normalizePosition:function(){var e=this.option("position");this._position="function"==typeof e?e():e},_getAnimationConfig:function(){var e=this.option("animation");return k.isFunction(e)&&(e=e.call(this)),e},_show:function(){var e=this,t=new F;if(this._parentHidden=this._isParentHidden(),t.done(function(){delete e._parentHidden}),this._parentHidden)return t.resolve();if(this._currentVisible)return(new F).resolve().promise();this._currentVisible=!0,this._normalizePosition();var n=e._getAnimationConfig()||{},i=this._normalizeAnimation(n.show,"to"),o=i&&i.start||C,a=i&&i.complete||C;if(this._isHidingActionCanceled)delete this._isHidingActionCanceled,t.resolve();else{var r=function(){this._renderVisibility(!0),this._animate(i,function(){e.option("focusStateEnabled")&&d.trigger(e._focusTarget(),"focus"),a.apply(this,arguments),e._showAnimationProcessing=!1,e._actions.onShown(),t.resolve()},function(){o.apply(this,arguments),e._showAnimationProcessing=!0})}.bind(this);this.option("templatesRenderAsynchronously")?(this._stopShowTimer(),this._asyncShowTimeout=setTimeout(r)):r()}return t.promise()},_normalizeAnimation:function(e,t){return e&&(e=g({type:"slide"},e),e[t]&&"object"===i(e[t])&&g(e[t],{position:this._position})),e},_hide:function(){if(!this._currentVisible)return(new F).resolve().promise();this._currentVisible=!1;var e=this,t=new F,n=e._getAnimationConfig()||{},i=this._normalizeAnimation(n.hide,"from"),o=i&&i.start||C,a=i&&i.complete||C,r={cancel:!1};return this._actions.onHiding(r),r.cancel?(this._isHidingActionCanceled=!0,this.option("visible",!0),t.resolve()):(this._forceFocusLost(),this._toggleShading(!1),this._toggleSubscriptions(!1),this._stopShowTimer(),this._animate(i,function(){e._$content.css("pointerEvents",""),e._renderVisibility(!1),a.apply(this,arguments),e._actions.onHidden(),t.resolve()},function(){e._$content.css("pointerEvents","none"),o.apply(this,arguments)})),t.promise()},_forceFocusLost:function(){var e=a.getActiveElement();e&&this._$content.find(e).length&&e.blur()},_animate:function(e,t,n){e?(n=n||e.start||C,u.animate(this._$content,g({},e,{start:n,complete:t}))):t()},_stopAnimation:function(){u.stop(this._$content,!0)},_renderVisibility:function(e){e&&this._isParentHidden()||(this._currentVisible=e,this._stopAnimation(),e||y.triggerHidingEvent(this._$content),this._toggleVisibility(e),this._$content.toggleClass(W,!e),this._updateZIndexStackPosition(e),e?(this._renderContent(),this._actions.onShowing(),this._moveToContainer(),this._renderGeometry(),y.triggerShownEvent(this._$content),y.triggerResizeEvent(this._$content)):this._moveFromContainer(),this._toggleShading(e),this._toggleSubscriptions(e))},_updateZIndexStackPosition:function(e){var t=this._overlayStack(),n=_(this,t);if(e){if(n===-1){var i=t.length;this._zIndex=(i?t[i-1]._zIndex:this._zIndexInitValue())+1,t.push(this)}this._$wrapper.css("zIndex",this._zIndex),this._$content.css("zIndex",this._zIndex)}else n!==-1&&t.splice(n,1)},_toggleShading:function(e){this._$wrapper.toggleClass($,this.option("shading")&&!this.option("container")),this._$wrapper.toggleClass(N,e&&this.option("shading")),this._$wrapper.css("backgroundColor",this.option("shading")?this.option("shadingColor"):""),this._toggleTabTerminator(e&&this.option("shading"))},_initTabTerminatorHandler:function(){var e=this;this._proxiedTabTerminatorHandler=function(){e._tabKeyHandler.apply(e,arguments)}},_toggleTabTerminator:function(e){var t=R.addNamespace("keydown",this.NAME);e?d.on(a.getDocument(),t,this._proxiedTabTerminatorHandler):d.off(a.getDocument(),t,this._proxiedTabTerminatorHandler)},_findTabbableBounds:function(){for(var e=this._$wrapper.find("*"),t=e.length-1,n={first:null,last:null},i=0;i<=t&&(!n.first&&e.eq(i).is(B.tabbable)&&(n.first=e.eq(i)),!n.last&&e.eq(t-i).is(B.tabbable)&&(n.last=e.eq(t-i)),!n.first||!n.last);i++);return n},_tabKeyHandler:function(e){if(e.keyCode===X&&this._isTopOverlay()){var t=this._findTabbableBounds(),n=t.first,i=t.last,o=!e.shiftKey&&e.target===i.get(0),a=e.shiftKey&&e.target===n.get(0),r=0===t.length,s=!y.contains(this._$wrapper.get(0),e.target);
|
|
42
|
+
e.exports=r.inherit({ctor:function(e){this._events={},this._owner=e},hasEvent:function(e){var t=this._events[e];return!!t&&t.has()},fireEvent:function(e,t){var n=this._events[e];n&&n.fireWith(this._owner,t)},on:function(e,t){var n,o=this._events[e];o||(o=i(),this._events[e]=o),n=o.originalAdd||o.add,n.call(o,t)},off:function(e,t){var n=this._events[e];n&&(o(t)?n.remove(t):n.empty())},dispose:function(){a(this._events,function(){this.empty()})}})},function(e,t,n){var i=n(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,o=n(140),a=n(226),r=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 a(s,function(e,t){return e.pointerId===t.pointerId},function(e){e.isPrimary&&i.reset()}),l=!0)},d=o.inherit({ctor:function(){this.callBase.apply(this,arguments),c()},_fireEvent:function(e){return this.callBase(r({pointers:i.pointers(),pointerId:e.originalEvent.pointerId},e))}});d.map=s,d.resetObserver=function(){i.reset()},e.exports=d},function(e,t,n){var i=n(0).extend,o=n(140),a=n(227),r=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,d=function(){c||(a.activate(),c=!0)},u=o.inherit({EVENT_LOCK_TIMEOUT:100,ctor:function(){this.callBase.apply(this,arguments),d()},_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?a.normalize:r.normalize;return this.callBase(i(n(e.originalEvent),e))},dispose:function(){this.callBase(),this._skipNextEvents=!1,this._mouseLocked=!1,clearTimeout(this._unlockMouseTimer)}});u.map=l,u.resetObserver=a.resetObserver,e.exports=u},function(e,t,n){var i=n(81),o=n(15),a=n(49),r=n(33);n(137),t.locale=i.locale.bind(i),t.loadMessages=o.load.bind(o),t.formatMessage=o.format.bind(o),t.formatNumber=a.format.bind(a),t.parseNumber=a.parse.bind(a),t.formatDate=r.format.bind(r),t.parseDate=r.parse.bind(r),t.message=o,t.number=a,t.date=r},function(e,t,n){e.exports={en:{Yes:"Yes",No:"No",Cancel:"Cancel",Clear:"Clear",Done:"Done",Loading:"Loading...",Select:"Select...",Search:"Search",Back:"Back",OK:"OK","dxCollectionWidget-noDataText":"No data to display","validation-required":"Required","validation-required-formatted":"{0} is required","validation-numeric":"Value must be a number","validation-numeric-formatted":"{0} must be a number","validation-range":"Value is out of range","validation-range-formatted":"{0} is out of range","validation-stringLength":"The length of the value is not correct","validation-stringLength-formatted":"The length of {0} is not correct","validation-custom":"Value is invalid","validation-custom-formatted":"{0} is invalid","validation-compare":"Values do not match","validation-compare-formatted":"{0} does not match","validation-pattern":"Value does not match pattern","validation-pattern-formatted":"{0} does not match pattern","validation-email":"Email is invalid","validation-email-formatted":"{0} is invalid","validation-mask":"Value is invalid","dxLookup-searchPlaceholder":"Minimum character number: {0}","dxList-pullingDownText":"Pull down to refresh...","dxList-pulledDownText":"Release to refresh...","dxList-refreshingText":"Refreshing...","dxList-pageLoadingText":"Loading...","dxList-nextButtonText":"More","dxList-selectAll":"Select All","dxListEditDecorator-delete":"Delete","dxListEditDecorator-more":"More","dxScrollView-pullingDownText":"Pull down to refresh...","dxScrollView-pulledDownText":"Release to refresh...","dxScrollView-refreshingText":"Refreshing...","dxScrollView-reachBottomText":"Loading...","dxDateBox-simulatedDataPickerTitleTime":"Select time","dxDateBox-simulatedDataPickerTitleDate":"Select date","dxDateBox-simulatedDataPickerTitleDateTime":"Select date and time","dxDateBox-validation-datetime":"Value must be a date or time","dxFileUploader-selectFile":"Select file","dxFileUploader-dropFile":"or Drop file here","dxFileUploader-bytes":"bytes","dxFileUploader-kb":"kb","dxFileUploader-Mb":"Mb","dxFileUploader-Gb":"Gb","dxFileUploader-upload":"Upload","dxFileUploader-uploaded":"Uploaded","dxFileUploader-readyToUpload":"Ready to upload","dxFileUploader-uploadFailedMessage":"Upload failed","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 o=n(236);DevExpress.framework.html.commandToDXWidgetAdapters={dxToolbar:o.dxToolbar,dxList:o.dxList,dxNavBar:o.dxNavBar,dxPivot:o.dxPivot,dxSlideOut:o.dxSlideOut}},function(e,t,n){var i=n(2),o=n(56),a=n(19),r=n(17),s=n(37),l=n(1).isPlainObject,c=n(138),d=n(28),u=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),o.bindingHandlers[e]={init:function(e,n){var c,h,m=i(e),v=a(),x={},w=f().knockout,b=w&&w.isBindingPropertyPredicateName,y={onInitializing:function(){x=this._getOptionsByReference(),o.computed(function(){var e=o.unwrap(n());c&&c.beginUpdate(),h=b&&e&&e[b],D(e),c&&c.endUpdate()},null,{disposeWhenNodeIsRemoved:e}),c=this},modelByElement:function(e){if(e.length)return o.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,a=o.computed(function(){var n=o.unwrap(e());i||t(n),i=!1});return function(){a.dispose()}},templates:{"dx-polymorph-widget":{render:function(e){var t=o.utils.unwrapObservable(e.model.widget);if(t){if("button"===t||"tabs"===t||"dropDownMenu"===t){var n=t;t=s.camelize("dx-"+t),r.log("W0001","dxToolbar - 'widget' item field",n,"16.1","Use: '"+t+"' instead")}var a=i("<div>").attr("data-bind",t+": options").get(0);i(e.container).append(a),o.applyBindings(e.model,a)}}}},createTemplate:function(e){return new u(e)}}},C={},k=function(e,t,n){var i=m.data(g),a=n?o.unwrap(t):t;if(o.isWriteableObservable(t)&&(C[e]=t),c){if(i.locked(e))return;i.obtain(e);try{o.ignoreDependencies?o.ignoreDependencies(c.option,c,[e,a]):c.option(e,a)}finally{i.release(e)}}else y[e]=a},S=function(e){var t=e.fullName,n=e.value;if(t in C){var i=this._$element,o=i.data(g);if(!o.locked(t)){o.obtain(t);try{C[t](n)}finally{o.release(t)}}}},I=function(){v.add(S),m.data(_,!0).data(g,new p),new t(m,y),y=null},T=function(t,n,i){if(i!==b)if(!h||h(i,n,t)){var a;o.computed(function(){var e=t[n];k(i,e,!0),a=o.unwrap(e)},null,{disposeWhenNodeIsRemoved:e}),l(a)&&(x[i]||D(a,i))}else k(i,t[n],!1)},D=function(e,t){for(var n in e)e.hasOwnProperty(n)&&T(e,n,t?[t,n].join("."):n)};return I(),{controlsDescendantBindings:t.subclassOf(d)}}},"dxValidator"===e&&(o.bindingHandlers.dxValidator.after=m)};c.add(function(e,t){v(e,t)})},function(e,t,n){var i=n(56),o=function e(t){var n=i.contextFor(t);return!n&&t.parentNode?e(t.parentNode):t};e.exports.getClosestNodeWithContext=o},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(2),a=n(12),r=n(6),s=n(51).add,l=r.getWindow(),c=r.getNavigator(),d=n(5),u=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,x=n(136).hideCallback,w=n(77),b=n(31).fitIntoRange,y=n(13),C=n(4).noop,k=n(1),S=n(3).each,I=n(14),T=n(29),D=n(8),E=n(28),A=n(155),B=n(57),O=n(78),R=n(9),M=n(25),P=n(204),V=n(122),F=n(7).Deferred,L="dx-overlay",H="dx-overlay-wrapper",z="dx-overlay-content",N="dx-overlay-shader",$="dx-overlay-modal",W="dx-state-invisible",G="content",q="dx-rtl",j=["onShowing","onShown","onHiding","onHidden","onPositioning","onPositioned","onResizeStart","onResize","onResizeEnd"],K=1500,U=[],Y="dx-state-disabled",X=9,Z={top:{my:"top center",at:"top center"},bottom:{my:"bottom center",at:"bottom center"},right:{my:"right center",at:"right center"},left:{my:"left center",at:"left center"},center:{my:"center",at:"center"},"right bottom":{my:"right bottom",at:"right bottom"},"right top":{my:"right top",at:"right top"},"left bottom":{my:"left bottom",at:"left bottom"},"left top":{my:"left top",at:"left top"}},J=I.real(),Q=J.version,ee=T.mozilla&&"desktop"===J.deviceType,te="ios"===J.platform,ne=T.safari&&"desktop"!==J.deviceType,ie=te&&p(Q,[7,1])<0,oe="android"===J.platform&&0===p(Q,[4,0],2)&&c.userAgent.indexOf("Chrome")===-1,ae=function(e){if((ie||ee)&&e.width(),oe){var t=e.parents(),n=t.is(".dx-scrollable-native");n||(t.css("backfaceVisibility","hidden"),t.css("backfaceVisibility"),t.css("backfaceVisibility","visible"))}},re=function(e){return e&&o(e.target||e)};s(function(){d.subscribeGlobal(a.getDocument(),M.down,function(e){for(var t=U.length-1;t>=0;t--)if(!U[t]._proxiedDocumentDownHandler(e))return})});var se=E.inherit({_supportedKeys:function(){var e=5,t=function(e,t,n){if(this.option("dragEnabled")){n.preventDefault(),n.stopPropagation();var i=this._allowedOffsets(),o={top:b(e,-i.top,i.bottom),left:b(t,-i.left,i.right)};this._changePosition(o)}};return g(this.callBase(),{escape:function(){this.hide()},upArrow:t.bind(this,-e,0),downArrow:t.bind(this,e,0),leftArrow:t.bind(this,0,-e),rightArrow:t.bind(this,0,e)})},_getDefaultOptions:function(){return g(this.callBase(),{activeStateEnabled:!1,visible:!1,deferRendering:!0,shading:!0,shadingColor:"",position:{my:"center",at:"center"},width:function(){return.8*o(l).width()},minWidth:null,maxWidth:null,height:function(){return.8*o(l).height()},minHeight:null,maxHeight:null,animation:{show:{type:"pop",duration:300,from:{scale:.55}},hide:{type:"pop",duration:300,to:{opacity:0,scale:.55},from:{opacity:1,scale:1}}},closeOnOutsideClick:!1,closeOnBackButton:!0,onShowing:null,onShown:null,onHiding:null,onHidden:null,contentTemplate:"content",dragEnabled:!1,resizeEnabled:!1,onResizeStart:null,onResize:null,onResizeEnd:null,target:void 0,container:void 0,hideTopOverlayHandler:void 0,closeOnTargetScroll:!1,onPositioned:null,boundaryOffset:{h:0,v:0},propagateOutsideClick:!1,_checkParentVisibility:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var e=I.real(),t=e.platform,n=e.version;return"android"===t&&p(n,[4,2])<0},options:{animation:{show:{type:"fade",duration:400},hide:{type:"fade",duration:400,to:{opacity:0},from:{opacity:1}}}}},{device:function(){return!r.hasWindow()},options:{width:null,height:null,animation:null,_checkParentVisibility:!1}}])},_setOptionsByReference:function(){this.callBase(),g(this._optionsByReference,{animation:!0})},_getAnonymousTemplateName:function(){return G},_wrapper:function(){return this._$wrapper},_container:function(){return this._$content},_eventBindingTarget:function(){return this._$content},_init:function(){this.callBase(),this._initActions(),this._initCloseOnOutsideClickHandler(),this._initTabTerminatorHandler(),this._$wrapper=o("<div>").addClass(H),this._$content=o("<div>").addClass(z);var e=this.$element();this._$wrapper.addClass(e.attr("class")),e.addClass(L),this._$wrapper.attr("data-bind","dxControlsDescendantBindings: true"),d.on(this._$wrapper,"MSPointerDown",C),d.on(this._$wrapper,"focusin",function(e){e.stopPropagation()}),this._toggleViewPortSubscription(!0)},_initOptions:function(e){this._initTarget(e.target),this._initContainer(e.container),this._initHideTopOverlayHandler(e.hideTopOverlayHandler),this.callBase(e)},_initTarget:function(e){if(k.isDefined(e)){var t=this.option();S(["position.of","animation.show.from.position.of","animation.show.to.position.of","animation.hide.from.position.of","animation.hide.to.position.of"],function(n,i){for(var o=i.split("."),a=t;a;){if(1===o.length){k.isPlainObject(a)&&(a[o.shift()]=e);break}a=a[o.shift()]}})}},_initContainer:function(e){e=void 0===e?f.value():e;var t=this.$element(),n=t.closest(e);n.length||(n=o(e).first()),this._$container=n.length?n:t.parent()},_initHideTopOverlayHandler:function(e){this._hideTopOverlayHandler=void 0!==e?e:this._defaultHideTopOverlayHandler.bind(this)},_defaultHideTopOverlayHandler:function(){this.hide()},_initActions:function(){this._actions={},S(j,function(e,t){this._actions[t]=this._createActionByOption(t,{excludeValidators:["disabled","readOnly"]})||C}.bind(this))},_initCloseOnOutsideClickHandler:function(){var e=this;this._proxiedDocumentDownHandler=function(){return e._documentDownHandler.apply(e,arguments)}},_documentDownHandler:function(e){this._showAnimationProcessing&&this._stopAnimation();var t=this.option("closeOnOutsideClick");k.isFunction(t)&&(t=t(e));var n=this._$content,i=o(l.document).is(e.target)||y.contains(l.document,e.target),a=i&&!(n.is(e.target)||y.contains(n.get(0),e.target));return a&&t&&(this.option("shading")&&e.preventDefault(),this.hide()),this.option("propagateOutsideClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.content=new V(this)},_isTopOverlay:function(){for(var e=this._overlayStack(),t=e.length-1;t>=0;t--){var n=e[t]._findTabbableBounds();if(n.first||n.last)return e[t]===this}return!1},_overlayStack:function(){return U},_zIndexInitValue:function(){return K},_toggleViewPortSubscription:function(e){v.remove(this._viewPortChangeHandle),e&&(this._viewPortChangeHandle=this._viewPortChangeHandler.bind(this),v.add(this._viewPortChangeHandle))},_viewPortChangeHandler:function(){this._initContainer(this.option("container")),this._refresh()},_renderVisibilityAnimate:function(e){return this._stopAnimation(),e?this._show():this._hide()},_normalizePosition:function(){var e=this.option("position");this._position="function"==typeof e?e():e},_getAnimationConfig:function(){var e=this.option("animation");return k.isFunction(e)&&(e=e.call(this)),e},_show:function(){var e=this,t=new F;if(this._parentHidden=this._isParentHidden(),t.done(function(){delete e._parentHidden}),this._parentHidden)return t.resolve();if(this._currentVisible)return(new F).resolve().promise();this._currentVisible=!0,this._normalizePosition();var n=e._getAnimationConfig()||{},i=this._normalizeAnimation(n.show,"to"),o=i&&i.start||C,a=i&&i.complete||C;if(this._isHidingActionCanceled)delete this._isHidingActionCanceled,t.resolve();else{var r=function(){this._renderVisibility(!0),this._animate(i,function(){e.option("focusStateEnabled")&&d.trigger(e._focusTarget(),"focus"),a.apply(this,arguments),e._showAnimationProcessing=!1,e._actions.onShown(),t.resolve()},function(){o.apply(this,arguments),e._showAnimationProcessing=!0})}.bind(this);this.option("templatesRenderAsynchronously")?(this._stopShowTimer(),this._asyncShowTimeout=setTimeout(r)):r()}return t.promise()},_normalizeAnimation:function(e,t){return e&&(e=g({type:"slide"},e),e[t]&&"object"===i(e[t])&&g(e[t],{position:this._position})),e},_hide:function(){if(!this._currentVisible)return(new F).resolve().promise();this._currentVisible=!1;var e=this,t=new F,n=e._getAnimationConfig()||{},i=this._normalizeAnimation(n.hide,"from"),o=i&&i.start||C,a=i&&i.complete||C,r={cancel:!1};return this._actions.onHiding(r),r.cancel?(this._isHidingActionCanceled=!0,this.option("visible",!0),t.resolve()):(this._forceFocusLost(),this._toggleShading(!1),this._toggleSubscriptions(!1),this._stopShowTimer(),this._animate(i,function(){e._$content.css("pointerEvents",""),e._renderVisibility(!1),a.apply(this,arguments),e._actions.onHidden(),t.resolve()},function(){e._$content.css("pointerEvents","none"),o.apply(this,arguments)})),t.promise()},_forceFocusLost:function(){var e=a.getActiveElement();e&&this._$content.find(e).length&&e.blur()},_animate:function(e,t,n){e?(n=n||e.start||C,u.animate(this._$content,g({},e,{start:n,complete:t}))):t()},_stopAnimation:function(){u.stop(this._$content,!0)},_renderVisibility:function(e){e&&this._isParentHidden()||(this._currentVisible=e,this._stopAnimation(),e||y.triggerHidingEvent(this._$content),this._toggleVisibility(e),this._$content.toggleClass(W,!e),this._updateZIndexStackPosition(e),e?(this._renderContent(),this._actions.onShowing(),this._moveToContainer(),this._renderGeometry(),y.triggerShownEvent(this._$content),y.triggerResizeEvent(this._$content)):this._moveFromContainer(),this._toggleShading(e),this._toggleSubscriptions(e))},_updateZIndexStackPosition:function(e){var t=this._overlayStack(),n=_(this,t);if(e){if(n===-1){var i=t.length;this._zIndex=(i?t[i-1]._zIndex:this._zIndexInitValue())+1,t.push(this)}this._$wrapper.css("zIndex",this._zIndex),this._$content.css("zIndex",this._zIndex)}else n!==-1&&t.splice(n,1)},_toggleShading:function(e){this._$wrapper.toggleClass($,this.option("shading")&&!this.option("container")),this._$wrapper.toggleClass(N,e&&this.option("shading")),this._$wrapper.css("backgroundColor",this.option("shading")?this.option("shadingColor"):""),this._toggleTabTerminator(e&&this.option("shading"))},_initTabTerminatorHandler:function(){var e=this;this._proxiedTabTerminatorHandler=function(){e._tabKeyHandler.apply(e,arguments)}},_toggleTabTerminator:function(e){var t=R.addNamespace("keydown",this.NAME);e?d.on(a.getDocument(),t,this._proxiedTabTerminatorHandler):d.off(a.getDocument(),t,this._proxiedTabTerminatorHandler)},_findTabbableBounds:function(){for(var e=this._$wrapper.find("*"),t=e.length-1,n={first:null,last:null},i=0;i<=t&&(!n.first&&e.eq(i).is(B.tabbable)&&(n.first=e.eq(i)),!n.last&&e.eq(t-i).is(B.tabbable)&&(n.last=e.eq(t-i)),!n.first||!n.last);i++);return n},_tabKeyHandler:function(e){if(e.keyCode===X&&this._isTopOverlay()){var t=this._findTabbableBounds(),n=t.first,i=t.last,o=!e.shiftKey&&e.target===i.get(0),a=e.shiftKey&&e.target===n.get(0),r=0===t.length,s=!y.contains(this._$wrapper.get(0),e.target);
|
|
43
43
|
if(o||a||r||s){e.preventDefault();var l=e.shiftKey?i:n;d.trigger(l,"focusin"),d.trigger(l,"focus")}}},_toggleSubscriptions:function(e){r.hasWindow()&&(this._toggleHideTopOverlayCallback(e),this._toggleParentsScrollSubscription(e))},_toggleHideTopOverlayCallback:function(e){this._hideTopOverlayHandler&&(e&&this.option("closeOnBackButton")?x.add(this._hideTopOverlayHandler):x.remove(this._hideTopOverlayHandler))},_toggleParentsScrollSubscription:function(e){if(this._position){var t=this._position.of||o(),n=this.option("closeOnTargetScroll"),i=re(t).parents(),a=R.addNamespace("scroll",this.NAME);"generic"===I.real().platform&&(i=i.add(l)),this._proxiedTargetParentsScrollHandler=this._proxiedTargetParentsScrollHandler||function(e){this._targetParentsScrollHandler(e)}.bind(this),d.off(o().add(this._$prevTargetParents),a,this._proxiedTargetParentsScrollHandler),e&&n&&(d.on(i,a,this._proxiedTargetParentsScrollHandler),this._$prevTargetParents=i)}},_targetParentsScrollHandler:function(e){var t=!1,n=this.option("closeOnTargetScroll");k.isFunction(n)&&(t=n(e)),t||this._showAnimationProcessing||this.hide()},_render:function(){this.callBase(),this._$content.appendTo(this.$element()),this._renderVisibilityAnimate(this.option("visible"))},_renderContent:function(){var e=!this._currentVisible&&this.option("deferRendering"),t=this.option("visible")&&this._isParentHidden();return t?void(this._isHidden=!0):void(this._contentAlreadyRendered||e||(this._contentAlreadyRendered=!0,this.callBase()))},_isParentHidden:function(){if(!this.option("_checkParentVisibility"))return!1;if(void 0!==this._parentHidden)return this._parentHidden;var e=this.$element().parent();if(e.is(":visible"))return!1;var t=!1;return e.add(e.parents()).each(function(){var e=o(this);if("none"===e.css("display"))return t=!0,!1}),t||!a.getBody().contains(e.get(0))},_renderContentImpl:function(){var e=this.$element();this._$content.appendTo(e);var t=this.option("contentTemplate"),n=this._getTemplate(t),i=this._getAnonymousTemplateName()===t;n&&n.render({container:m(this.$content()),noModel:!0,transclude:i}),this._renderDrag(),this._renderResize(),this._renderScrollTerminator()},_renderDrag:function(){var e=this._getDragTarget();if(e){var t=R.addNamespace(O.start,this.NAME),n=R.addNamespace(O.move,this.NAME);d.off(e,t),d.off(e,n),this.option("dragEnabled")&&(d.on(e,t,this._dragStartHandler.bind(this)),d.on(e,n,this._dragUpdateHandler.bind(this)))}},_renderResize:function(){this._resizable=this._createComponent(this._$content,P,{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=R.addNamespace(O.move,this.NAME);d.off(e,t),d.on(e,t,{validate:function(){return!0},getDirection:function(){return"both"},_toggleGestureCover:C,_clearSelection:C,isNative:!0},function(e){var t=e.originalEvent.originalEvent;e._cancelPreventDefault=!0,t&&"mousemove"!==t.type&&e.preventDefault()})},_getDragTarget:function(){return this.$content()},_dragStartHandler:function(e){e.targetElements=[],this._prevOffset={x:0,y:0};var t=this._allowedOffsets();e.maxTopOffset=t.top,e.maxBottomOffset=t.bottom,e.maxLeftOffset=t.left,e.maxRightOffset=t.right},_getDragResizeContainer:function(){var e=f.originalViewPort().get(0)||this.option("container"),t=e?this._$container:o(l);return t},_deltaSize:function(){var e=this._$content,t=this._getDragResizeContainer(),n=e.outerWidth(),i=e.outerHeight(),r=t.outerWidth(),s=t.outerHeight();if(this._isWindow(t)){var l=a.getDocument(),c=Math.max(o(l).outerHeight(),s),d=Math.max(o(l).outerWidth(),r);s=c,r=d}return{width:r-n,height:s-i}},_dragUpdateHandler:function(e){var t=e.offset,n=this._prevOffset,i={top:t.y-n.y,left:t.x-n.x};this._changePosition(i),this._prevOffset=t},_changePosition:function(e){var t=h.locate(this._$content);h.move(this._$content,{left:t.left+e.left,top:t.top+e.top}),this._positionChangeHandled=!0},_allowedOffsets:function(){var e=h.locate(this._$content),t=this._deltaSize(),n=t.height>=0&&t.width>=0,i=!this.option("shading")||this.option("container")||this._isWindow(this._getContainer())?{top:0,left:0}:h.locate(this._$wrapper),o=this.option("boundaryOffset");return{top:n?e.top+i.top+o.v:0,bottom:n?-e.top-i.top+t.height-o.v:0,left:n?e.left+i.left+o.h:0,right:n?-e.left-i.left+t.width-o.h:0}},_fireContentReadyAction:function(){this.option("visible")&&this._moveToContainer(),this.callBase.apply(this,arguments)},_moveFromContainer:function(){this._$content.appendTo(this.$element()),this._detachWrapperToContainer()},_detachWrapperToContainer:function(){this._$wrapper.detach()},_moveToContainer:function(){this._attachWrapperToContainer(),this._$content.appendTo(this._$wrapper)},_attachWrapperToContainer:function(){var e=this.$element();this._$container&&this._$container[0]!==e.parent()[0]?this._$wrapper.appendTo(this._$container):this._$wrapper.appendTo(e)},_fixHeightAfterSafariAddressBarResizing:function(){this._isWindow(this._getContainer())&&ne&&this._$wrapper.css("minHeight",l.innerHeight)},_renderGeometry:function(){this.option("visible")&&r.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();w.setup(this._$wrapper,{my:"top left",at:"top left",of:e})}},_renderShadingDimensions:function(){var e,t;if(this.option("shading")){var n=this._getContainer();e=this._isWindow(n)?"100%":n.outerWidth(),t=this._isWindow(n)?"100%":n.outerHeight()}else e="",t="";this._$wrapper.css({width:e,height:t})},_isWindow:function(e){return!!e&&k.isWindow(e.get(0))},_getContainer:function(){var e=this._position,t=this.option("container"),n=e?e.of||l:null;return re(t||n)},_renderDimensions:function(){var e=this._$content.get(0);this._$content.css({minWidth:this._getOptionValue("minWidth",e),maxWidth:this._getOptionValue("maxWidth",e),minHeight:this._getOptionValue("minHeight",e),maxHeight:this._getOptionValue("maxHeight",e),width:this._getOptionValue("width",e),height:this._getOptionValue("height",e)})},_renderPosition:function(){if(!this._positionChangeHandled){this._renderOverlayBoundaryOffset(),h.resetPosition(this._$content);var e=this._transformStringPosition(this._position,Z),t=w.setup(this._$content,e);return ae(this._$content),this._actions.onPositioning(),t}var n=this._allowedOffsets();this._changePosition({top:b(0,-n.top,n.bottom),left:b(0,-n.left,n.right)})},_transformStringPosition:function(e,t){return k.isString(e)&&(e=g({},t[e])),e},_renderOverlayBoundaryOffset:function(){var e=this.option("boundaryOffset");this._$content.css("margin",e.v+"px "+e.h+"px")},_focusTarget:function(){return this._$content},_attachKeyboardEvents:function(){this._keyboardProcessor=new A({element:this._$content,handler:this._keyboardHandler,context:this})},_keyboardHandler:function(e){var t=e.originalEvent,n=o(t.target);n.is(this._$content)&&this.callBase.apply(this,arguments)},_isVisible:function(){return this.option("visible")},_visibilityChanged:function(e){e?this.option("visible")&&this._renderVisibilityAnimate(e):this._renderVisibilityAnimate(e)},_dimensionChanged:function(){this._renderGeometry()},_clean:function(){this._contentAlreadyRendered||this.$content().empty(),this._renderVisibility(!1),this._stopShowTimer(),this._cleanFocusState()},_stopShowTimer:function(){this._asyncShowTimeout&&clearTimeout(this._asyncShowTimeout),this._asyncShowTimeout=null},_dispose:function(){u.stop(this._$content,!1),clearTimeout(this._deferShowTimer),this._toggleViewPortSubscription(!1),this._toggleSubscriptions(!1),this._updateZIndexStackPosition(!1),this._toggleTabTerminator(!1),this._actions=null,this.callBase(),this._$wrapper.remove(),this._$content.remove()},_toggleDisabledState:function(e){this.callBase.apply(this,arguments),this._$content.toggleClass(Y,Boolean(e))},_toggleRTLDirection:function(e){this._$content.toggleClass(q,e)},_optionChanged:function(e){var t=e.value;if(_(e.name,j)>-1)return void this._initActions();switch(e.name){case"dragEnabled":this._renderDrag(),this._renderGeometry();break;case"resizeEnabled":this._renderResize(),this._renderGeometry();break;case"shading":case"shadingColor":this._toggleShading(this.option("visible"));break;case"width":case"height":case"minWidth":case"maxWidth":case"minHeight":case"maxHeight":case"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 F).resolve().promise();var t=new F;return this._animateDeferred=t,this.option("visible",e),t.promise().done(function(){delete this._animateDeferred}.bind(this))},$content:function(){return this._$content},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},content:function(){return m(this._$content)},repaint:function(){this._renderGeometry()}});se.baseZIndex=function(e){K=e},D("dxOverlay",se),e.exports=se},function(e,t,n){var i=n(2),o=n(5),a=n(56),r=n(1).isPlainObject,s=n(107),l=n(9);s.add(function(e){var t=l.addNamespace(e,e+"Binding");a.bindingHandlers[e]={update:function(e,n,s,l){var c=i(e),d=a.utils.unwrapObservable(n()),u=d.execute?d.execute:d;o.off(c,t),o.on(c,t,r(d)?d:{},function(e){u.call(l,l,e)})}}})},function(e,t,n){var i=n(2),o=n(5),a=n(76),r=n(22).compileGetter,s=n(0).extend,l=n(56),c=n(106),d=n(18);l.bindingHandlers.dxAction={update:function(e,t,n,c){var u=i(e),h=l.utils.unwrapObservable(t()),p=h,f={context:e};h.execute&&(p=h.execute,s(f,h));var g=new a(p,f);o.off(u,".dxActionBinding"),o.on(u,d.name+".dxActionBinding",function(t){g.execute({element:u,model:c,evaluate:function(t){var n=c;t.length>0&&"$"===t[0]&&(n=l.contextFor(e));var i=r(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,o=n(10),a=n(53),r=n(89),s=n(56),l=o.inherit({ctor:function(e,t){var n=this;n.target=e,n.validationRules=t.validationRules,n.name=t.name,n.isValid=s.observable(!0),n.validationError=s.observable(),i(this.validationRules,function(e,t){t.validator=n})},validate:function(){var e=r.validate(this.target(),this.validationRules,this.name);return this._applyValidationResult(e),e},reset:function(){this.target(null);var e={isValid:!0,brokenRule:null};return this._applyValidationResult(e),e},_applyValidationResult:function(e){e.validator=this,this.target.dxValidator.isValid(e.isValid),this.target.dxValidator.validationError(e.brokenRule),this.fireEvent("validated",[e])}}).include(a);s.extenders.dxValidator=function(e,t){return e.dxValidator=new l(e,t),e.subscribe(e.dxValidator.validate.bind(e.dxValidator)),e},r.registerModelForValidation=function(e){i(e,function(t,n){s.isObservable(n)&&n.dxValidator&&r.registerValidatorInGroup(e,n.dxValidator)})},r.unregisterModelForValidation=function(e){i(e,function(t,n){s.isObservable(n)&&n.dxValidator&&r.removeRegisteredValidator(e,n.dxValidator)})},r.validateModel=r.validateGroup},function(e,t,n){var i=n(56),o=n(71);o.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),o=i.afterCleanData,a=i.strategyChanging,r=n(56),s=n(59).compare,l=r.utils.domNodeDisposal.cleanExternalData,c=function(){o(function(e){for(var t=0;t<e.length;t++)e[t].cleanedByJquery=!0;for(t=0;t<e.length;t++)e[t].cleanedByKo||r.cleanNode(e[t]),delete e[t].cleanedByKo;for(t=0;t<e.length;t++)delete e[t].cleanedByJquery}),r.utils.domNodeDisposal.cleanExternalData=function(e){e.cleanedByKo=!0,e.cleanedByJquery||i.cleanData([e])}},d=function(){o(function(){}),r.utils.domNodeDisposal.cleanExternalData=l};c(),a.add(function(e){var t=!!e.fn;t&&s(e.fn.jquery,[2,0])<0&&d()})},function(e,t,n){var i=n(56),o=n(59).compare,a=n(35).strategyChanging,r=function(e){var t=function(e,t){var n=function(){i.cleanNode(this)};t?e.each(n):e.find("*").each(n)},n=e.fn.empty;e.fn.empty=function(){return t(this,!1),n.apply(this,arguments)};var o=e.fn.remove;e.fn.remove=function(e,n){if(!n){var i=this;e&&(i=i.filter(e)),t(i,!0)}return o.call(this,e,n)};var a=e.fn.html;e.fn.html=function(e){return"string"==typeof e&&t(this,!1),a.apply(this,arguments)};var r=e.fn.replaceWith;e.fn.replaceWith=function(){var e=r.apply(this,arguments);return this.parent().length||t(this,!0),e}};a.add(function(e){var t=!!e.fn;t&&o(e.fn.jquery,[2,0])<0&&r(e)})},function(e,t,n){var i=n(26),o=n(214),a=n(74)();a&&o.set(i)},function(e,t,n){var i=n(26),o=n(74)(),a=n(59).compare,r=n(3).each,s=n(1).isNumeric,l=n(9).setEventFixMethod,c=n(61),d=n(215);if(o)if(a(i.fn.jquery,[3])<0){var u={2:"touch",3:"pen",4:"mouse"};r(["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerCancel","MSPointerOver","MSPointerOut","mouseenter","mouseleave","pointerdown","pointermove","pointerup","pointercancel","pointerover","pointerout","pointerenter","pointerleave"],function(){i.event.fixHooks[this]={filter:function(e,t){var n=t.pointerType;return s(n)&&(e.pointerType=u[n]),e},props:i.event.mouseHooks.props.concat(["pointerId","pointerType","originalTarget","width","height","pressure","result","tiltX","charCode","tiltY","detail","isPrimary","prevValue"])}}),r(["touchstart","touchmove","touchend","touchcancel"],function(){i.event.fixHooks[this]={filter:function(e,t){return d(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,o=n.props?i.event.props.concat(n.props):i.event.props,a=o.length;a--;){var r=o[a];e[r]=t[r]}return n.filter?n.filter(e,t):e};l(p)}else d(function(e,t){i.event.addProp(e,t)})},function(e,t,n){var i=n(26),o=n(7),a=n(74)(),r=n(59).compare;if(a){var s=i.Deferred,l={Deferred:s};l.when=r(i.fn.jquery,[3])<0?i.when:function(e){return 0===arguments.length?(new s).resolve():1===arguments.length?e&&e.then?e:(new s).resolve(e):i.when.apply(i,arguments)},o.setStrategy(l)}},function(e,t,n){var i=n(26),o=n(230),a=n(51).add;if(i&&!o.fired()){var r=i.holdReady||i.fn.holdReady;r(!0),o.add(function(){a(function(){r(!1)})})}},function(e,t,n){var i=n(26),o=n(5),a=n(74)(),r=n(107),s=n(12);a&&(r.add(function(e,t){i.event.special[e]=t}),o.forcePassiveFalseEventNames.forEach(function(e){i.event.special[e]={setup:function(t,n,i){s.listen(this,e,i,{passive:!1})}}}),o.set({on:function(e){i(e).on.apply(i(e),Array.prototype.slice.call(arguments,1))},one:function(e){i(e).one.apply(i(e),Array.prototype.slice.call(arguments,1))},off:function(e){i(e).off.apply(i(e),Array.prototype.slice.call(arguments,1))},trigger:function(e){i(e).trigger.apply(i(e),Array.prototype.slice.call(arguments,1))},triggerHandler:function(e){i(e).triggerHandler.apply(i(e),Array.prototype.slice.call(arguments,1))},Event:i.Event}))},function(e,t,n){var i=n(26),o=n(224);i&&o.setEasing(i.easing)},function(e,t,n){var i=n(26),o=n(35),a=n(74)();a&&o.setDataStrategy(i)},function(e,t,n){var i=n(13).setPublicElementWrapper,o=n(74)(),a=function(e){return e};o&&i(a)},function(e,t,n){var i=n(26),o=n(138),a=n(17);if(i){var r=function(e,t){i.fn[e]=function(n){var i,o="string"==typeof n;if(o){var r=n,s=[].slice.call(arguments).slice(1);this.each(function(){var n=t.getInstance(this);if(!n)throw a.Error("E0009",e);var o=n[r],l=o.apply(n,s);void 0===i&&(i=l)})}else this.each(function(){var e=t.getInstance(this);e?e.option(n):new t(this,n)}),i=this;return i}};o.add(r)}},function(e,t,n){var i=n(26),o=n(72),a=n(74)();a&&o.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 o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=n(2),r=i(a),s=n(5),l=i(s),c=n(30),d=i(c),u=n(138),h=i(u),p=n(10),f=i(p),g=n(19),_=i(g),m=n(1),v=i(m),x=n(3),w=i(x),b=n(11),y=i(b),C=n(229),k=i(C),S=n(28),I=i(S),T=n(48),D=i(T),E=n(347),A=i(E),B=n(180),O=i(B),R=n(44),M=i(R),P=n(22),V=i(P),F=n(0),L=i(F),H=n(37),z=i(H),N=n(17),$=i(N),W=w.default.each,G=y.default.inArray,q=V.default.compileSetter,j=V.default.compileGetter,K=L.default.extendFromObject,U="dxItemAlias",Y=["rendering"],X="value",Z=function(e,t){return t.$root.$$phase?e(t):t.$apply(function(){return e(t)})},J=f.default.inherit({ctor:function(e){this._componentDisposing=(0,_.default)(),this._optionChangedCallbacks=(0,_.default)(),this._ngLocker=new k.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=K({},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 o=n.search(/\[|\./),a=o>-1?n.substring(0,o):n,r=void 0,s=void 0,l=i.dataPath,c=!0,d=!1;void 0!==i.deep&&(d=c=!!i.deep),t[a]||(t[a]={}),t[a][n]=l;var u=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))&&!d?"$watchCollection":"$watch";r!==t&&(s&&s(),s=e._scope[t](l,u,c),r=t)};h(),e._componentDisposing.add(s)}),this._optionChangedCallbacks.add(function(n){var i=n.name,o=n.fullName,a=n.component;if(e._ngLocker.locked(o))return void e._ngLocker.release(o);if(t&&t[i]){var r=e._scope.$root.$$phase,s=function(){e._ngLocker.obtain(o)};r?e._digestCallbacks.begin.add(s):s(),Z(function(){W(t[i],function(t,i){if(e._optionsAreLinked(o,t)){var r=a.option(t);e._parse(i).assign(e._scope,r);var s=e._parse(i)(e._scope);s!==r&&n.component.option(t,s)}})},e._scope);var l=function t(){e._ngLocker.locked(o)&&e._ngLocker.release(o),e._digestCallbacks.begin.remove(s),e._digestCallbacks.end.remove(t)};r?e._digestCallbacks.end.addPrioritized(l):l()}}))},_optionsAreNested:function(e,t){var n=e[t.length];return 0===e.indexOf(t)&&("."===n||"["===n)},_optionsAreLinked:function(e,t){return e===t||(e.length>t.length?this._optionsAreNested(e,t):this._optionsAreNested(t,e))},_compilerByTemplate:function(e){var t=this,n=this._getScopeItemsPath();return function(i){var o=(0,r.default)(e).clone(),a=i.model&&i.model.constructor===t._scope.$root.constructor,s=a?i.model:i.noModel?t._scope:t._createScopeWithData(i);n&&t._synchronizeScopes(s,n,i.index),o.appendTo(i.container),i.noModel||l.default.on(o,"$destroy",function(){var e=!s.$parent;e||s.$destroy()});var c=t._compile(o,t._transcludeFn);return t._applyAsync(function(e){c(e,null,{parentBoundTranscludeFn:t._transcludeFn})},s),o}},_applyAsync:function(e,t){var n=this;e(t),t.$root.$$phase||(this._renderingTimer||(this._renderingTimer=setTimeout(function(){t.$apply(),n._renderingTimer=null})),this._componentDisposing.add(function(){clearTimeout(n._renderingTimer)}))},_getScopeItemsPath:function(){if(this._componentClass.subclassOf(M.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"!==o(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,o=e.parentPrefix,a=e.itemIndex,r=i===this._itemAlias?"":"."+i,s=void 0!==a,l=[o],c=void 0;if(s){if(!v.default.isNumeric(a))return;l.push("[",a,"]")}l.push(r),c=l.join("");var d=t.$watch(c,function(e,t){e!==t&&q(i)(n,e)}),u=n.$watch(i,function(e,n){if(e!==n){if(s&&!j(o)(t)[a])return void u();q(c)(t,e)}});this._componentDisposing.add([d,u])},_evalOptions:function(e){var t=this,n=K({},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&&G(i.category,Y)>-1)return n;var o=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 o},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,d.default)().wrapActionsBeforeExecute&&(n.forceApplyBindings=function(){Z(function(){},e)}),n.integrationOptions={createTemplate:function(e){return new A.default(e,t._compilerByTemplate.bind(t))},watchMethod:function(n,i,o){o=o||{};var a=void 0,r=o.skipImmediate,s=e.$watch(function(){var e=n();return e instanceof Date&&(e=e.valueOf()),e},function(e){var t=a===e;!r&&(!t||t&&o.deep)&&i(e),r=!1},o.deep);return r||(a=n(),i(a)),(0,d.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=z.default.camelize("dx-"+n),$.default.log("W0001","dxToolbar - 'widget' item field",i,"16.1","Use: '"+n+"' instead")}var o=(0,r.default)("<div>").attr(z.default.dasherize(n),"options").get(0),a=t._scope.$new();a.options=e.model.options,e.container.append(o),t._compile(o)(a)}}}}},n.modelByElement=function(){return e},n}});J=J.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(D.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(X)||t!==n&&e._component.option(X,t)});this._optionChangedCallbacks.add(function(t){e._ngLocker.obtain(X);try{if(t.name!==X)return;e._ngModelController.$setViewValue(t.value)}finally{e._ngLocker.locked(X)&&e._ngLocker.release(X)}}),this._componentDisposing.add(t)}},_evalOptions:function(){if(!this._isNgModelRequired())return this.callBase.apply(this,arguments);var e=this.callBase.apply(this,arguments);return e[X]=this._parse(this._ngModel)(this._scope),e}});var Q={},ee=function(e){var t="dxValidator"!==e?1:10;O.default.directive(e,["$compile","$parse","dxDigestCallbacks",function(n,i,o){return{restrict:"A",require:"^?ngModel",priority:t,compile:function(t){var a=Q[e],r=a.subclassOf(I.default)?t.contents().detach():null;return function(t,s,l,c,d){s.append(r),Z(function(){new J({componentClass:a,componentName:e,compile:n,parse:i,$element:s,scope:t,ngOptionsString:l[e],ngOptions:l[e]?t.$eval(l[e]):{},ngModel:l.ngModel,ngModelController:c,transcludeFn:d,itemAlias:l[U],dxDigestCallbacks:o})},t)}}}}])};h.default.add(function(e,t){Q[e]||ee(e),Q[e]=t})},function(e,t,n){var i=n(2),o=n(66),a=n(1).isFunction,r=n(13),s=o.inherit({ctor:function(e,t){this._element=e,this._compiledTemplate=t(r.normalizeTemplateElement(this._element))},_renderCore:function(e){var t=this._compiledTemplate;return a(t)?t(e):t},source:function(){return i(this._element).clone()}});e.exports=s},function(e,t,n){var i=n(2),o=n(5),a=n(4),r=n(13).getPublicElement,s=n(12),l=n(1).isPlainObject,c=n(7).when,d=n(0).extend,u=n(11).inArray,h=n(3),p=n(76),f=n(50),g=n(13),_=n(22),m=n(28),v=n(9),x=n(25),w=n(112),b=n(123),y=n(57),C=n(15),k=n(90),S=n(18),I=n(159),T=n(67),D="dx-collection",E="dx-item",A="-content",B="dx-item-content-placeholder",O="dxItemData",R="dxItemIndex",M="tmpl-",P="[data-options*='dxItem']",V="dx-item-selected",F="dx-item-response-wait",L="dx-empty-collection",H="dx-template-wrapper",z=/^([^.]+\[\d+\]\.)+([\w.]+)$/,N="up",$="down",W="left",G="right",q="pageup",j="pagedown",K="last",U="first",Y=m.inherit({_activeStateUnit:"."+E,_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 d(this.callBase(),{space:t,enter:e,leftArrow:n.bind(this,W),rightArrow:n.bind(this,G),upArrow:n.bind(this,N),downArrow:n.bind(this,$),pageUp:n.bind(this,N),pageDown:n.bind(this,$),home:n.bind(this,U),end:n.bind(this,K)})},_getDefaultOptions:function(){return d(this.callBase(),{selectOnFocus:!1,loopItemFocus:!0,items:[],itemTemplate:"item",onItemRendered:null,onItemClick:null,onItemHold:null,itemHoldTimeout:750,onItemContextMenu:null,onFocusedItemChanged:null,noDataText:C.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 T(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(P);if(t.length&&!this.option("items").length){var n=[].slice.call(t).map(function(t){var n=i(t),o=g.getElementOptions(t).dxItem,a=n.html().trim()&&!o.template;return a?o.template=e._prepareItemTemplate(n):n.remove(),o});this.option("items",n)}},_prepareItemTemplate:function(e){var t=M+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),u(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",r(n))}}},_focusOutHandler:function(){this.callBase.apply(this,arguments);var e=i(this.option("focusedElement"));e.length&&this._toggleFocusClass(!1,e)},_getActiveItem:function(e){var t=i(this.option("focusedElement"));if(t.length)return t;var n=this.option("focusOnSelectedItem")?this.option("selectedIndex"):0,o=this._getActiveElement(),a=o.length-1;return n<0&&(n=e?a:0),o.eq(n)},_renderFocusTarget:function(){this.callBase.apply(this,arguments),this._refreshActiveDescendant()},_moveFocus:function(e){var t,n=this._getAvailableItems();switch(e){case q:case N:t=this._prevItem(n);break;case j:case $:t=this._nextItem(n);break;case G: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 U:t=n.first();break;case K:t=n.last();break;default:return!1}0!==t.length&&this.option("focusedElement",r(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),o=e.last(),a=i(e[n-1]),r=this.option("loopItemFocus");return 0===a.length&&r&&(a=o),a},_nextItem:function(e){var t=this._getActiveItem(!0),n=e.index(t),o=e.first(),a=i(e[n+1]),r=this.option("loopItemFocus");return 0===a.length&&r&&(a=o),a},_selectFocusedItem:function(e){this.selectItem(e)},_removeFocusedItem:function(e){var t=i(e);t.length&&(this._toggleFocusClass(!1,t),t.removeAttr("id"));
|
|
44
44
|
},_refreshActiveDescendant:function(){this.setAria("activedescendant",""),this.setAria("activedescendant",this.getFocusedItemId())},_setFocusedItem:function(e){e&&e.length&&(e.attr("id",this.getFocusedItemId()),this._toggleFocusClass(!0,e),this.onFocusedItemChanged(this.getFocusedItemId()),this._refreshActiveDescendant(),this.option("selectOnFocus")&&this._selectFocusedItem(e))},_findItemElementByItem:function(e){var t=i(),n=this;return this.itemElements().each(function(){var o=i(this);if(o.data(n._itemDataKey())===e)return t=o,!1}),t},_getIndexByItem:function(e){return this.option("items").indexOf(e)},_itemOptionChanged:function(e,t,n,i){var o=this._findItemElementByItem(e);o.length&&(this.constructor.ItemClass.getInstance(o).setDataField(t,n)||this._refreshItem(o,e))},_refreshItem:function(e){var t=this._getItemData(e),n=e.data(this._itemIndexKey());this._renderItem(this._renderedItemsCount+n,t,null,e)},_optionChanged:function(e){if("items"===e.name){var t=e.fullName.match(z);if(t&&t.length){var n=t[t.length-1],o=e.fullName.replace("."+n,""),a=this.option(o);return void this._itemOptionChanged(a,n,e.value,e.previousValue)}}switch(e.name){case"items":case"_itemAttributes":case"itemTemplateProperty":this._cleanRenderedItems(),this._invalidate();break;case"dataSource":this.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 E},_itemContentClass:function(){return this._itemClass()+A},_selectedItemClass:function(){return V},_itemResponseWaitClass:function(){return F},_itemSelector:function(){return"."+this._itemClass()},_itemDataKey:function(){return O},_itemIndexKey:function(){return R},_itemElements:function(){return this._itemContainer().find(this._itemSelector())},_initMarkup:function(){this.callBase(),this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged"),this.$element().addClass(D),this._prepareContent()},_prepareContent:a.deferRenderer(function(){this._renderContentImpl()}),_renderContent:function(){this._fireContentReadyAction()},_render:function(){this.callBase(),this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent()},_attachClickEvent:function(){var e=this._itemSelector(),t=v.addNamespace(S.name,this.NAME),n=v.addNamespace(x.down,this.NAME),a=this,r=new p(function(e){var t=e.event;a._itemPointerDownHandler(t)});o.off(this._itemContainer(),t,e),o.off(this._itemContainer(),n,e),o.on(this._itemContainer(),t,e,function(e){this._itemClickHandler(e)}.bind(this)),o.on(this._itemContainer(),n,e,function(e){r.execute({element:i(e.target),event:e})})},_itemClickHandler:function(e,t,n){this._itemDXEventHandler(e,"onItemClick",t,n)},_itemPointerDownHandler:function(e){this.option("focusStateEnabled")&&(this._itemFocusHandler=function(){if(clearTimeout(this._itemFocusTimeout),this._itemFocusHandler=null,!e.isDefaultPrevented()){var t=i(e.target),n=t.closest(this._itemElements()),o=this._closestFocusable(t);n.length&&o&&u(o.get(0),this._focusTarget())!==-1&&this.option("focusedElement",r(n))}}.bind(this),this._itemFocusTimeout=setTimeout(this._forcePointerDownFocus.bind(this)))},_closestFocusable:function(e){if(e.is(y.focusable))return e;for(e=e.parent();e.length&&!s.isDocument(e.get(0));){if(e.is(y.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(k.name,this.NAME);o.off(e,n,t),o.on(e,n,t,{timeout:this._getHoldTimeout()},this._itemHoldHandler.bind(this))},_getHoldTimeout:function(){return this.option("itemHoldTimeout")},_shouldFireHoldEvent:function(){return this.hasActionSubscription("onItemHold")},_itemHoldHandler:function(e){this._shouldFireHoldEvent()?this._itemDXEventHandler(e,"onItemHold"):e.cancel=!0},_attachContextMenuEvent:function(){var e=this._itemContainer(),t=this._itemSelector(),n=v.addNamespace(I.name,this.NAME);o.off(e,n,t),o.on(e,n,t,this._itemContextMenuHandler.bind(this))},_shouldFireContextMenuEvent:function(){return this.hasActionSubscription("onItemContextMenu")},_itemContextMenuHandler:function(e){this._shouldFireContextMenuEvent()?this._itemDXEventHandler(e,"onItemContextMenu"):e.cancel=!0},_renderContentImpl:function(){var e=this.option("items")||[];this._renderedItemsCount?this._renderItems(e.slice(this._renderedItemsCount)):this._renderItems(e)},_renderItems:function(e){e.length&&h.each(e,function(e,t){this._renderItem(this._renderedItemsCount+e,t)}.bind(this)),this._renderEmptyMessage()},_renderItem:function(e,t,n,i){n=n||this._itemContainer();var o=this._renderItemFrame(e,t,n,i);this._setElementData(o,t,e),o.attr(this.option("_itemAttributes")),this._attachItemClickEvent(t,o);var a=this._getItemContent(o),s=this._renderItemContent({index:e,itemData:t,container:r(a),contentClass:this._itemContentClass(),defaultTemplateName:this.option("itemTemplate")}),l=this;return c(s).done(function(n){l._postprocessRenderItem({itemElement:o,itemContent:n,itemData:t,itemIndex:e}),l._executeItemRenderAction(e,t,r(o))}),o},_getItemContent:function(e){var t=e.find("."+B);return t.removeClass(B),t},_attachItemClickEvent:function(e,t){e&&e.onClick&&o.on(t,S.name,function(n){this._itemEventHandlerByHandler(t,e.onClick,{event:n})}.bind(this))},_renderItemContent:function(e){var t=this._getItemTemplateName(e),n=this._getTemplate(t);this._addItemContentClasses(e);var o=i(this._createItemByTemplate(n,e));return o.hasClass(H)?this._renderItemContentByNode(e,o):e.container},_renderItemContentByNode:function(e,t){return i(e.container).replaceWith(t),e.container=r(t),this._addItemContentClasses(e),t},_addItemContentClasses:function(e){var t=[E+A,e.contentClass];i(e.container).addClass(t.join(" "))},_renderItemFrame:function(e,t,n,o){var a=i("<div>");return new this.constructor.ItemClass(a,this._itemOptions(),t||{}),o&&o.length?o.replaceWith(a):a.appendTo(n),a},_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:a.noop,_executeItemRenderAction:function(e,t,n){this._getItemRenderAction()({itemElement:n,itemIndex:e,itemData:t})},_setElementData:function(e,t,n){e.addClass([E,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(L,!n)},_itemDXEventHandler:function(e,t,n,i){this._itemEventHandler(e.target,t,d(n,{event:e}),i)},_itemEventHandler:function(e,t,n,i){var o=this._createActionByOption(t,d({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(e,o,n)},_itemEventHandlerByHandler:function(e,t,n,i){var o=this._createAction(t,d({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(e,o,n)},_itemEventHandlerImpl:function(e,t,n){var o=this._closestItemElement(i(e)),a=d({},n);return t(d(n,this._extendActionArgs(o),a))},_extendActionArgs:function(e){return{itemElement:r(e),itemIndex:this._itemElements().index(e),itemData:this._getItemData(e)}},_closestItemElement:function(e){return i(e).closest(this._itemSelector())},_getItemData:function(e){return i(e).data(this._itemDataKey())},_getSummaryItemsWidth:function(e,t){var n=0;return e&&h.each(e,function(e,o){n+=i(o).outerWidth(t||!1)}),n},getFocusedItemId:function(){return this._focusedItemId||(this._focusedItemId="dx-"+new f),this._focusedItemId},itemElements:function(){return this._itemElements()},itemsContainer:function(){return this._itemContainer()}}).include(w);Y.ItemClass=b,e.exports=Y},function(e,t,n){var i=n(181),o=n(36),a=n(3).each,r=n(1).isFunction,s=n(7).Deferred,l=n(144),c=function e(t,n,c){c=c||[],n=n||{};var d=function(e,t){return{name:e,args:t}},u=function(e){function u(e){switch(e.name){case"sortBy":return m=[e.args],!0;case"thenBy":if(!m)throw o.errors.Error("E4004");return m.push(e.args),!0}return!1}function h(){var e=g[0],t=[];e&&"multiSort"===e.name&&(g.shift(),a(e.args[0],function(){t.push(d(t.length?"thenBy":"sortBy",this))})),g=t.concat(g)}var p,f,g,_,m,v=new s,x=function(e){var t=n.errorHandler;t&&t(e),o._errorHandler(e),v.reject(e)};try{p=n.adapter,r(p)||(p=i[p]),f=p(n),g=[].concat(c).concat(e);var w=f.optimize;for(w&&w(g);g.length;){if(_=g[0],!u(_)){if(m){g.unshift(d("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});a(g,function(){i=i[this.name].apply(i,this.args)}),i.done(v.resolve).fail(v.reject)}else v.resolve(e,t)}).fail(x)}catch(e){x(e)}return v.promise()},h={};return a(["sortBy","thenBy","filter","slice","select","groupBy"],function(){var i=String(this);h[i]=function(){return e(t,n,c.concat(d(i,arguments)))}}),a(["count","min","max","sum","avg","aggregate","enumerate"],function(){var e=String(this);h[e]=function(){return u.call(this,d(e,arguments))}}),h};e.exports=c},function(e,t,n){var i=n(2),o=n(10),a=n(4),r=o.abstract,s=o.inherit({ctor:function(e){this._collectionWidget=e},getIndexByItemData:r,getItemDataByIndex:r,getKeysByItems:r,getItemsByKeys:r,itemsGetter:r,getKeyByIndex:function(e){var t=this._denormalizeItemIndex(e);return this.getKeysByItems([this.getItemDataByIndex(t)])[0]},_equalKeys:function(e,t){return this._collectionWidget._isKeySpecified()?a.equalByValue(e,t):e===t},beginCache:function(){this._cache={}},endCache:function(){this._cache=null},getIndexByKey:r,getNormalizedIndex:function(e){return this._isNormalizedItemIndex(e)?e:this._isItemIndex(e)?this._normalizeItemIndex(e):this._isDOMNode(e)?this._getNormalizedItemIndex(e):this._normalizeItemIndex(this.getIndexByItemData(e))},getIndex:function(e){return this._isNormalizedItemIndex(e)?this._denormalizeItemIndex(e):this._isItemIndex(e)?e:this._isDOMNode(e)?this._denormalizeItemIndex(this._getNormalizedItemIndex(e)):this.getIndexByItemData(e)},getItemElement:function(e){if(this._isNormalizedItemIndex(e))return this._getItemByNormalizedIndex(e);if(this._isItemIndex(e))return this._getItemByNormalizedIndex(this._normalizeItemIndex(e));if(this._isDOMNode(e))return i(e);var t=this._normalizeItemIndex(this.getIndexByItemData(e));return this._getItemByNormalizedIndex(t)},deleteItemAtIndex:r,itemPlacementFunc:function(e,t){return this._itemsFromSameParent(e,t)&&e<t?"after":"before"},moveItemAtIndexToIndex:r,_isNormalizedItemIndex:function(e){return"number"==typeof e&&Math.round(e)===e},_isDOMNode:function(e){var t;try{t=i(e)}catch(e){return!1}return t&&t.length&&t.get(0).nodeType},_isItemIndex:r,_getNormalizedItemIndex:r,_normalizeItemIndex:r,_denormalizeItemIndex:r,_getItemByNormalizedIndex:r,_itemsFromSameParent:r});e.exports=s},function(e,t,n){var i=n(1),o=n(239),a=n(21),r=n(42),s=n(7).Deferred;e.exports=o.inherit({getSelectedItems:function(){return this._loadFilteredData(this.options.selectionFilter)},getSelectedItemKeys:function(){var e=new s,t=this,n=this.options.key(),o=i.isString(n)?[n]:n;return this._loadFilteredData(this.options.selectionFilter,null,o).done(function(n){var i=n.map(function(e){return t.options.keyOf(e)});e.resolve(i)}).fail(e.reject),e.promise()},selectedItemKeys:function(e,t,n,i){if(i){var o=this.options.filter();o?this._addSelectionFilter(n,o,!1):this._setOption("selectionFilter",n?[]:null)}else{t||this._setOption("selectionFilter",[]);for(var a=0;a<e.length;a++)n?this.removeSelectedItem(e[a]):this.addSelectedItem(e[a])}return this.onSelectionChanged(),(new s).resolve()},setSelectedItems:function(e){this._setOption("selectionFilter",null);for(var t=0;t<e.length;t++)this.addSelectedItem(e[t])},isItemDataSelected:function(e){return this.isItemKeySelected(e)},isItemKeySelected:function(e){var t=this.options.selectionFilter;return!t||!!r([e]).filter(t).toArray().length},_processSelectedItem:function(e){var t=this.options.key(),n=[t,"=",e];if(Array.isArray(t)){n=[];for(var i=0;i<t.length;i++)n.push([t[i],"=",e[t[i]]]),i!==t.length-1&&n.push("and")}return n},addSelectedItem:function(e){var t=this._processSelectedItem(e);this._addSelectionFilter(!1,t,!0)},removeSelectedItem:function(e){var t=this._processSelectedItem(e);this._addSelectionFilter(!0,t,!0)},validate:function(){var e=this.options.key;if(e&&void 0===e())throw a.Error("E1042")},_findSubFilter:function(e,t){if(!e)return-1;for(var n=JSON.stringify(t),i=0;i<e.length;i++){var o=e[i];if(o&&JSON.stringify(o)===n)return i}return-1},_isLastSubFilter:function(e,t){return!(!e||!t)&&(this._findSubFilter(e,t)===e.length-1||0===this._findSubFilter([e],t))},_addFilterOperator:function(e,t){return e.length>1&&i.isString(e[1])&&e[1]!==t&&(e=[e]),e.length&&e.push(t),e},_denormalizeFilter:function(e){return e&&i.isString(e[0])&&(e=[e]),e},_addSelectionFilter:function(e,t,n){var i=this,o=!0,a=e?["!",t]:t,r=e?"and":"or",s=i.options.selectionFilter||[];if(s=i._denormalizeFilter(s),s&&s.length){i._removeSameFilter(s,t,e);var l=i._removeSameFilter(s,t,!e);l&&("or"!==l&&e||"and"!==l&&!e)&&(o=!1,s=[]),o&&(s=i._addFilterOperator(s,r))}o&&s.push(a),s=i._normalizeFilter(s),i._setOption("selectionFilter",e||s.length?s:null)},_normalizeFilter:function(e){return e&&1===e.length&&(e=e[0]),e},_removeSameFilter:function(e,t,n){t=n?["!",t]:t;var i=this._findSubFilter(e,t);if(JSON.stringify(t)===JSON.stringify(e))return e.splice(0,e.length),"undefined";if(i>=0)return i>0?e.splice(i-1,2)[0]:e.splice(i,2)[1]||"undefined";for(var o=0;o<e.length;o++){var a=Array.isArray(e[o])&&e[o].length>2&&this._removeSameFilter(e[o],t);if(a)return 1===e[o].length&&(e[o]=e[o][0]),a}},getSelectAllState:function(){var e=this.options.filter(),t=this.options.selectionFilter;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),o=n(1),a=i.getKeyHash,r=n(42),s=n(7),l=n(258).SelectionFilterCreator,c=s.when,d=s.Deferred,u=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,o,a=this.options.keyOf;if(a){var r=t&&e.length>1&&!this.options.equalByReference;for(r&&(n={}),o=0;o<e.length;o++){var s=e[o],l=a(s);t?(i=this.removeSelectedItem(l,n),n&&i>=0&&(n[i]=!0)):this.addSelectedItem(l,s)}r&&this._batchRemoveSelectedItems(n)}},_batchRemoveSelectedItems:function(e){var t=this.options.selectedItemKeys.slice(0),n=this.options.selectedItems.slice(0);this.options.selectedItemKeys.length=0,this.options.selectedItems.length=0;for(var i=0;i<t.length;i++)e[i]||(this.options.selectedItemKeys.push(t[i]),this.options.selectedItems.push(n[i]));this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_loadSelectedItemsCore:function(e,t,n){var i=new d,o=this.options.key();if(!e.length&&!n)return i.resolve([]),i;var a=this.options.filter();if(n&&t&&!a)return i.resolve(this.getSelectedItems()),i;var s=new l(e,n),c=s.getCombinedFilter(o,a),u=[];t&&(u=c?r(this.options.selectedItems).filter(c).toArray():this.options.selectedItems.slice(0));var h=u.length?u:this.options.plainItems().filter(this.options.isSelectableItem).map(this.options.getItemData),p=s.getLocalFilter(this.options.keyOf,this.equalKeys.bind(this),this.options.equalByReference,o);return h=h.filter(p),u.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 o=e[i],a=n(o);t.push(a)}this.setSelectedItems(t,e)}},_warnOnIncorrectKeys:function(e){for(var t=0;t<e.length;t++)this.isItemKeySelected(e[t])||u.log("W1002",e[t])},_loadSelectedItems:function(e,t,n){var i=this,o=new d;return c(i._lastLoadDeferred).always(function(){i._loadSelectedItemsCore(e,t,n).done(o.resolve).fail(o.reject)}),i._lastLoadDeferred=o,o},selectedItemKeys:function(e,t,n,i){var o=this,a=o._loadSelectedItems(e,n,i);return a.done(function(e){t?o._preserveSelectionUpdate(e,n):o._replaceSelectionUpdate(e),o.onSelectionChanged()}),a},addSelectedItem:function(e,t){var n=this._getKeyHash(e);this._indexOfSelectedItemKey(n)===-1&&(!o.isObject(n)&&this.options.keyHashIndices&&(this.options.keyHashIndices[n]=[this.options.selectedItemKeys.length]),this.options.selectedItemKeys.push(e),this.options.addedItemKeys.push(e),this.options.addedItems.push(t),this.options.selectedItems.push(t))},_getSelectedIndexByKey:function(e,t){for(var n=this.options.selectedItemKeys,i=0;i<n.length;i++)if((!t||!t[i])&&this.equalKeys(n[i],e))return i;return-1},_getSelectedIndexByHash:function(e,t){var n=this.options.keyHashIndices[e];return n&&n.length>1&&t&&(n=n.filter(function(e){return!t[e]})),n&&n[0]>=0?n[0]:-1},_indexOfSelectedItemKey:function(e,t){var n;return n=this.options.equalByReference?this.options.selectedItemKeys.indexOf(e):o.isObject(e)?this._getSelectedIndexByKey(e,t):this._getSelectedIndexByHash(e,t)},_shiftSelectedKeyIndices:function(e){for(var t=e;t<this.options.selectedItemKeys.length;t++){var n=this.options.selectedItemKeys[t],i=a(n),o=this.options.keyHashIndices[i];if(o)for(var r=0;r<o.length;r++)o[r]>e&&o[r]--}},removeSelectedItem:function(e,t){var n=this._getKeyHash(e),i=!!t,a=this._indexOfSelectedItemKey(n,t);if(a<0)return a;if(this.options.removedItemKeys.push(e),this.options.removedItems.push(this.options.selectedItems[a]),i)return a;if(this.options.selectedItemKeys.splice(a,1),this.options.selectedItems.splice(a,1),o.isObject(n)||!this.options.keyHashIndices)return a;var r=this.options.keyHashIndices[n];return r?(r.shift(),r.length||delete this.options.keyHashIndices[n],this._shiftSelectedKeyIndices(a),a):a},_updateAddedItemKeys:function(e,t){for(var n=0;n<e.length;n++)this.isItemKeySelected(e[n])||(this.options.addedItemKeys.push(e[n]),this.options.addedItems.push(t[n]))},_updateRemovedItemKeys:function(e,t,n){for(var i=0;i<t.length;i++)this.isItemKeySelected(t[i])||(this.options.removedItemKeys.push(t[i]),this.options.removedItems.push(n[i]))},_getKeyHash:function(e){return this.options.equalByReference?e:a(e)},setSelectedItems:function(e,t){this._updateAddedItemKeys(e,t);var n=this.options.selectedItemKeys,i=this.options.selectedItems;this.options.equalByReference||(this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(e)),this._setOption("selectedItemKeys",e),this._setOption("selectedItems",t),this._updateRemovedItemKeys(e,n,i)},isItemDataSelected:function(e){var t=this.options.keyOf(e);return this.isItemKeySelected(t)},isItemKeySelected:function(e){var t=this._getKeyHash(e),n=this._indexOfSelectedItemKey(t);return n!==-1},getSelectAllState:function(e){return e?this._getVisibleSelectAllState():this._getFullSelectAllState()}})},function(e,t,n){var i=n(107),o=n(5),a=n(180);i.add(function(e){var t=e.slice(0,2)+e.charAt(2).toUpperCase()+e.slice(3);a.directive(t,["$parse",function(n){return function(i,a,r){var s,l=r[t].trim(),c={};"{"===l.charAt(0)?(c=i.$eval(l),s=n(c.execute)):s=n(r[t]),o.on(a,e,c,function(e){i.$apply(function(){s(i,{$event:e})})})}}])})},function(e,t,n){var i=n(19),o=n(180);o.service("dxDigestCallbacks",["$rootScope",function(e){var t=i(),n=i(),o=i(),a=!1;return e.$watch(function(){a||(a=!0,t.fire(),e.$$postDigest(function(){a=!1,n.fire(),o.fire()}))}),{begin:{add:function(e){a&&e(),t.add(e)},remove:t.remove.bind(t)},end:{add:o.add.bind(o),addPrioritized:n.add.bind(n),remove:o.remove.bind(o)}}}])},function(e,t,n){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),o=n(15),a=n(81);if(n(64),i&&i.formatMessage){var r="en",s=i.loadMessages;i.loadMessages=function(e){o.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||a.locale(),i=this._getFormatterBase(e,t);return i||(i=this._formatterByGlobalize(e,t)),i||n===r||(i=this.getFormatter(e,r)),i},_formatterByGlobalize:function(e,t){var n,o=t&&t!==a.locale()?new i(t):i;return this._messageLoaded(e,t)&&(n=o.messageFormatter(e)),n},_messageLoaded:function(e,t){var n=t?new i(t).cldr:i.locale(),o=n.get(["globalize-messages/{bundle}",e]);return!!o},_loadSingle:function(e,t,n){var i={};i[n]={},i[n][e]=t,this.load(i)}};o.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"}}}},o={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"}}}}}}}}},a={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"}}}},r=["skeleton","date","time","datetime","raw"],s=n(64),l=n(33),c=n(1).isObject,d=n(11).inArray,u=n(3);if(s&&s.formatDate){"en"===s.locale().locale&&(s.load(a,i,o),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 o=i.path&&t._getFormatStringByPath(i.path)||i.pattern;return i.parts&&u.each(i.parts,function(e,n){o=o.replace("{"+e+"}",t._getPatternByFormat(n))}),o}},_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 u.map(n,function(e){return e})},getDayNames:function(e){var t=s.locale().main("dates/calendars/gregorian/days/stand-alone/"+(e||"wide"));return u.map(t,function(e){return e})},getTimeSeparator:function(){return s.locale().main("numbers/symbols-numberSystem-latn/timeSeparator");
|
|
45
45
|
},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<r.length;t++)if(e.hasOwnProperty(r[t]))return!0},firstDayOfWeekIndex:function(){var e=s.locale().supplemental.weekData.firstDay();return d(e,this._getDayKeys())},_getDayKeys:function(){var e=s.locale().main("dates/calendars/gregorian/days/format/short");return u.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 o={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":"$"}}}}}},a={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},currencyData:{fractions:{DEFAULT:{_rounding:"0",_digits:"2"}}}}},r=n(64),s=n(30),l=n(49);if(r&&r.formatCurrency){"en"===r.locale().locale&&(r.load(o,a),r.locale("en"));var c={},d=function(e,t){var n,o;return o="object"===("undefined"==typeof t?"undefined":i(t))?r.locale().locale+":"+e+":"+JSON.stringify(t):r.locale().locale+":"+e+":"+t,n=c[o],n||(n=c[o]=r.currencyFormatter(e,t)),n},u={_formatNumberCore:function(e,t,n){if("currency"===t){var i=n&&n.currency||s().defaultCurrency;return d(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 d(t.currency,t)(e)}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(e){return e||(e=s().defaultCurrency),r.cldr.main("numbers/currencies/"+e)},getOpenXmlCurrencyFormat:function(e){var t,n,i,o,a=this.getCurrencySymbol(e).symbol,s=r.cldr.main("numbers/currencyFormats-numberSystem-latn");if(s.accounting){for(o={".00":"{0}","'":"\\'","\\(":"\\(","\\)":"\\)"," ":"\\ ",'"':""","\\\xa4":a},n=s.accounting.split(";"),t=0;t<n.length;t++)for(i in o)o.hasOwnProperty(i)&&(n[t]=n[t].replace(new RegExp(i,"g"),o[i]));return 2===n.length?n[0]+"_);"+n[1]:n[0]}}};l.inject(u)}},function(e,t,n){var i=n(31),o=n(3),a=n(17),r=n(9),s=n(108),l=n(84),c="dx",d="transform",u="translate",h="zoom",p="pinch",f="rotate",g="start",_="",m="end",v=[],x=function(e,t){v.push({name:e,args:t})};x(d,{scale:!0,deltaScale:!0,rotation:!0,deltaRotation:!0,translation:!0,deltaTranslation:!0}),x(u,{translation:!0,deltaTranslation:!0}),x(h,{scale:!0,deltaScale:!0}),x(p,{scale:!0,deltaScale:!0}),x(f,{rotation:!0,deltaRotation:!0});var w=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)}},b=function(e){var t=e.pointers;return w(t[0],t[1])},y=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},C=function(e,t){return y(e)/y(t)},k=function(e,t){var n=e.x*t.x+e.y*t.y,o=y(e)*y(t);if(0===o)return 0;var a=i.sign(e.x*t.y-t.x*e.y),r=Math.acos(i.fitIntoRange(n/o,-1,1));return a*r},S=function(e,t){return{x:e.centerX-t.centerX,y:e.centerY-t.centerY}},I=s.inherit({configure:function(e,t){t.indexOf(h)>-1&&a.log("W0005",t,"15.1","Use '"+t.replace(h,p)+"' event instead"),this.callBase(e)},validatePointers:function(e){return r.hasTouches(e)>1},start:function(e){this._accept(e);var t=b(e);this._startVector=t,this._prevVector=t,this._fireEventAliases(g,e)},move:function(e){var t=b(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:C(e,this._startVector),deltaScale:C(e,this._prevVector),rotation:k(e,this._startVector),deltaRotation:k(e,this._prevVector),translation:S(e,this._startVector),deltaTranslation:S(e,this._prevVector)}},_fireEventAliases:function(e,t,n){n=n||{},o.each(v,function(i,a){var r={};o.each(a.args,function(e){e in n&&(r[e]=n[e])}),this._fireEvent(c+a.name+e,t,r)}.bind(this))}}),T=v.reduce(function(e,t){return[g,_,m].forEach(function(n){e.push(c+t.name+n)}),e},[]);l({emitter:I,events:T}),o.each(T,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),o=n(12),a=n(6),r=a.getWindow(),s=n(10),l=s.abstract,c=n(36).errors,d=n(79),u=s.inherit({ctor:function(e,t){this._store=e,this._dirty=!!t.data,this.save();var n=this._immediate=t.immediate,a=Math.max(100,t.flushInterval||1e4);if(!n){var s=this.save.bind(this);setInterval(s,a),i.on(r,"beforeunload",s),r.cordova&&o.listen(o.getDocument(),"pause",s,!1)}},notifyChanged:function(){this._dirty=!0,this._immediate&&this.save()},load:function(){this._store._array=this._loadImpl(),this._dirty=!1},save:function(){this._dirty&&(this._saveImpl(this._store._array),this._dirty=!1)},_loadImpl:l,_saveImpl:l}),h=u.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=r.localStorage.getItem(this._key);return e?JSON.parse(e):[]},_saveImpl:function(e){e.length?r.localStorage.setItem(this._key,JSON.stringify(e)):r.localStorage.removeItem(this._key)}}),p={dom:h},f=d.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 o,a,r=n(17),s=n(6).getWindow(),l=n(242),c=function(e){this.config=e,o="ms-appx:"===s.location.protocol,a=i(s.location.hostname)};c.prototype={urlFor:function(e){var t=this.config[e];if(!t)throw r.Error("E0006");return l.isProxyUsed()?l.formatProxyUrl(t.local):t.production&&(o&&!Debug.debuggerEnabled||!o&&!a)?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),o=n(0).extend,a=n(1),r=n(3).each,s=n(36),l=n(243),c=n(244),d=n(7),u=d.when,h=d.Deferred;n(145);var p=i.inherit({ctor:function(e){var t=this;t._extractServiceOptions(e),t._errorHandler=e.errorHandler,r(e.entities||[],function(n,i){t[n]=new l(o({},e,{url:t._url+"/"+encodeURIComponent(i.name||n)},i))})},get:function(e,t){return this.invoke(e,t,"GET")},invoke:function(e,t,n){t=t||{},n=(n||"POST").toLowerCase();var i,o=new h,r=this._url+"/"+encodeURIComponent(e);return 4===this.version()&&("get"===n?(r=c.formatFunctionInvocationUrl(r,c.escapeServiceOperationParams(t,this.version())),t=null):"post"===n&&(i=t,t=null)),u(this._sendRequest(r,n,c.escapeServiceOperationParams(t,this.version()),i)).done(function(t){a.isPlainObject(t)&&e in t&&(t=t[e]),o.resolve(t)}).fail(this._errorHandler).fail(s._errorHandler).fail(o.reject),o.promise()},objectLink:function(e,t){var n=this[e];if(!n)throw s.errors.Error("E4015",e);return a.isDefined(t)?{__metadata:{uri:n._byKeyUrl(t,!0)}}:null}}).include(c.SharedMethods);e.exports=p},function(e,t,n){var i=n(202);n(240);var o=i.ui=n(451);o.themes=n(20),o.setTemplateEngine=n(452),o.dialog=n(259),o.notify=n(454),o.dxActionSheet=n(207),o.dxAutocomplete=n(455),o.dxBox=n(185),o.dxButton=n(38),o.dxCalendar=n(245),o.dxCheckBox=n(127),o.dxColorBox=n(483),o.dxDateBox=n(193),o.dxDeferRendering=n(499),o.dxDropDownBox=n(500),o.dxDropDownMenu=n(160),o.dxFileUploader=n(501),o.dxForm=n(205),o.dxGallery=n(506),o.dxList=n(125),o.dxLoadIndicator=n(87),o.dxLoadPanel=n(192),o.dxLookup=n(507),o.dxMap=n(508),o.dxMultiView=n(279),o.dxNavBar=n(512),o.dxNumberBox=n(118),o.dxOverlay=n(70),o.dxPopover=n(130),o.dxPopup=n(60),o.dxProgressBar=n(275),o.dxRadioGroup=n(307),o.dxRangeSlider=n(515),o.dxResizable=n(204),o.dxResponsiveBox=n(277),o.dxScrollView=n(189),o.dxSelectBox=n(128),o.dxSlider=n(284),o.dxSwitch=n(308),o.dxTabPanel=n(278),o.dxTabs=n(191),o.dxTagBox=n(309),o.dxTextArea=n(310),o.dxTextBox=n(98),o.dxTileView=n(517),o.dxToast=n(266),o.dxToolbar=n(311),o.dxTooltip=n(194),o.dxTrackBar=n(210),i.validationEngine=n(89),o.dxValidationSummary=n(211),o.dxValidationGroup=n(281),o.dxValidator=n(190),o.CollectionWidget=n(44),o.dxDropDownEditor=n(147),e.exports=o},function(e,t,n){var i=n(2),o=n(4),a=n(1),r=n(3).each,s=n(0).extend,l=n(69),c=n(367),d=n(529),u=n(14),h=n(20),p="dx-menu",f=p+"-no-icons",g="dx-menu-base",_=p+"-item",m=_+"-content",v=_+"-selected",x=_+"-wrapper",w=p+"-items-container",b=_+"-expanded",y=p+"-separator",C=p+"-last-group-item",k=_+"-has-text",S=_+"-has-icon",I=_+"-has-submenu",T=_+"-popout",D=T+"-container",E=_+"-text",A="single",B={show:50,hide:300},O=c.inherit({_getDefaultOptions:function(){return s(this.callBase(),{items:[],cssClass:"",activeStateEnabled:!0,showSubmenuMode:{name:"onHover",delay:{show:50,hide:300}},animation:{show:{type:"fade",from:0,to:1,duration:100},hide:{type:"fade",from:1,to:0,duration:100}},selectByClick:!1,focusOnSelectedItem:!1,keyExpr:null,_itemAttributes:{role:"menuitem"},useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return h.isAndroid5()},options:{useInkRipple:!0}}])},_activeStateUnit:"."+_,_itemDataKey:function(){return"dxMenuItemDataKey"},_itemClass:function(){return _},_setAriaSelected:o.noop,_selectedItemClass:function(){return v},_widgetClass:function(){return g},_focusTarget:function(){return this._itemContainer()},_clean:function(){this.option("focusedElement",null),this.callBase()},_supportedKeys:function(){var e=function(){var e=i(this.option("focusedElement"));e.length&&this._isSelectionEnabled()&&this.selectItem(e[0])};return s(this.callBase(),{space:e,pageUp:o.noop,pageDown:o.noop})},_isSelectionEnabled:function(){return this.option("selectionMode")===A},_init:function(){this.callBase(),this._renderSelectedItem(),this._initActions()},_getTextContainer:function(e){var t=e.text,n=i("<span>").addClass(E),o=a.isPlainObject(e)?t:String(e);return t&&n.text(o)},_getPopoutContainer:function(e){var t,n=e.items;if(n&&n.length){var o=i("<div>").addClass(T);t=i("<span>").addClass(D).append(o)}return t},_getDataAdapterOptions:function(){return{rootValue:0,multipleSelection:!1,recursiveSelection:!1,recursiveExpansion:!1,searchValue:""}},_selectByItem:function(e){if(e){var t=this._dataAdapter.getNodeByItem(e);this._dataAdapter.toggleSelection(t.internalFields.key,!0)}},_renderSelectedItem:function(){var e=this._dataAdapter.getSelectedNodesKeys(),t=e.length&&e[0],n=this.option("selectedItem");if(!t)return void this._selectByItem(n);var i=this._dataAdapter.getNodeByKey(t);if(i.selectable!==!1)return n?void(n!==i.internalFields.item&&(this._dataAdapter.toggleSelection(t,!1),this._selectByItem(n))):void this.option("selectedItem",i.internalFields.item)},_initActions:o.noop,_initMarkup:function(){this.callBase(),this._addCustomCssClass(this.$element()),this.option("useInkRipple")&&this._renderInkRipple()},_renderInkRipple:function(){this._inkRipple=l.render()},_toggleActiveState:function(e,t,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:e,event:n};t?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_getShowSubmenuMode:function(){var e="onClick",t=this.option("showSubmenuMode");return t=a.isObject(t)?t.name:t,this._isDesktopDevice()?t:e},_initSelectedItems:o.noop,_isDesktopDevice:function(){return"desktop"===u.real().deviceType},_initEditStrategy:function(){var e=d;this._editStrategy=new e(this)},_addCustomCssClass:function(e){e.addClass(this.option("cssClass"))},_itemWrapperSelector:function(){return"."+x},_hoverStartHandler:function(e){var t=this,n=t._getItemElementByEventArgs(e);n&&!t._isItemDisabled(n)&&(e.stopPropagation(),"onHover"===t._getShowSubmenuMode()&&(clearTimeout(this._showSubmenusTimeout),this._showSubmenusTimeout=setTimeout(t._showSubmenu.bind(t,n),t._getSubmenuDelay("show"))))},_getAvailableItems:function(e){return this.callBase(e).filter(function(){return"hidden"!==i(this).css("visibility")})},_isItemDisabled:function(e){return this._disabledGetter(e.data(this._itemDataKey()))},_showSubmenu:function(e){this._addExpandedClass(e)},_addExpandedClass:function(e){i(e).addClass(b)},_getSubmenuDelay:function(e){var t=this.option("showSubmenuMode").delay;return a.isDefined(t)?a.isObject(t)?t[e]:t:B[e]},_getItemElementByEventArgs:function(e){var t=i(e.target);if(t.hasClass(this._itemClass())||t.get(0)===e.currentTarget)return t;for(;!t.hasClass(this._itemClass());)if(t=t.parent(),t.hasClass("dx-submenu"))return null;return t},_hoverEndHandler:function(){clearTimeout(this._showSubmenusTimeout)},_hasSubmenu:function(e){return e.internalFields.childrenKeys.length},_renderContentImpl:function(){this._renderItems(this._dataAdapter.getRootNodes())},_renderItems:function(e,t){var n,i=this;if(e.length){this.hasIcons=!1,n=this._renderContainer(this.$element(),t);var o=-1,a=-1;r(e,function(e,t){var r=t.visible!==!1;r&&o<0&&(o=e);var s=o<e&&(t.beginGroup||e===a);s&&(a=r?e:e+1),e===a&&o<e&&i._renderSeparator(n),i._renderItem(e,t,n)}),this.hasIcons||n.addClass(f)}},_renderContainer:function(e){return i("<ul>").appendTo(e).addClass(w)},_createDOMElement:function(e){var t=i("<li>").appendTo(e).addClass(x);return t},_renderItem:function(e,t,n,i){var o,a=this.option("items");if(t.internalFields.item.visible!==!1){var r=i||this._createDOMElement(n);a[e+1]&&a[e+1].beginGroup&&r.addClass(C),o=this.callBase(e,t.internalFields.item,r),t.internalFields.item===this.option("selectedItem")&&o.addClass(v),o.attr("tabIndex",-1),this._hasSubmenu(t)&&this.setAria("haspopup","true",o)}},_renderItemFrame:function(e,t,n){var i=n.children("."+_);return i.length?i:this.callBase.apply(this,arguments)},_refreshItem:function(e,t){var n=this._dataAdapter.getNodeByItem(t),i=e.data(this._itemIndexKey()),o=e.closest("ul"),a=e.closest("li");this._renderItem(i,n,o,a)},_addContentClasses:function(e,t){var n=!!e.text&&!!e.text.length,i=!!e.icon,o=!!e.items&&!!e.items.length;t.toggleClass(k,n),t.toggleClass(S,i),this.hasIcons||(this.hasIcons=i),t.toggleClass(I,o)},_getItemContent:function(e){var t=this.callBase(e);return t.length||(t=e.children("."+m)),t},_postprocessRenderItem:function(e){var t,n=i(e.itemElement),o=this._dataAdapter.getSelectedNodesKeys();return o.length&&this._selectedGetter(e.itemData)&&this._isItemSelectable(e.itemData)?(t=this._dataAdapter.getNodeByItem(e.itemData),void(t.internalFields.key===o[0]?(n.addClass(this._selectedItemClass()),this._setAriaSelected(n,"true")):this._setAriaSelected(n,"false"))):void this._setAriaSelected(n,"false")},_isItemSelectable:function(e){return e.selectable!==!1},_renderSeparator:function(e){i("<li>").appendTo(e).addClass(y)},_itemClickHandler:function(e){if(!e._skipHandling){var t=this._createAction(this._updateSubmenuVisibilityOnClick.bind(this));this._itemDXEventHandler(e,"onItemClick",{},{afterExecute:t.bind(this)}),e._skipHandling=!0}},_updateSubmenuVisibilityOnClick:function(e){this._updateSelectedItemOnClick(e),"onClick"===this._getShowSubmenuMode()&&this._addExpandedClass(e.args[0].itemElement)},_updateSelectedItemOnClick:function(e){var t,n=e.args?e.args[0]:e;if(this._isItemSelectionAllowed(n.itemData)){t=this._dataAdapter.getSelectedNodesKeys();var i=t.length&&this._dataAdapter.getNodeByKey(t[0]);i&&this._toggleItemSelection(i,!1),i&&i.internalFields.item===n.itemData?(this._fireSelectionChangeEvent(null,this.option("selectedItem")),this._setOptionSilent("selectedItem",null)):this.selectItem(n.itemData)}},_isItemSelectionAllowed:function(e){var t=this._isSelectionEnabled()&&this.option("selectByClick");return!this._isContainerEmpty()&&t&&this._isItemSelectable(e)&&!this._itemsGetter(e)},_isContainerEmpty:function(){return this._itemContainer().is(":empty")},_syncSelectionOptions:o.noop,_optionChanged:function(e){if(this._cancelOptionChange!==e.name)switch(e.name){case"showSubmenuMode":break;case"selectedItem":var t=e.value,n=this._dataAdapter.getNodeByItem(t),i=this._dataAdapter.getSelectedNodesKeys()[0];if(n&&n.internalFields.key!==i){if(n.selectable===!1)break;i&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(i),!1),this._toggleItemSelection(n,!0),this._updateSelectedItems()}break;case"cssClass":case"position":case"selectByClick":case"animation":case"useInkRipple":this._invalidate();break;default:this.callBase(e)}},_toggleItemSelection:function(e,t){var n=this._getElementByItem(e.internalFields.item);n&&i(n).toggleClass(v),this._dataAdapter.toggleSelection(e.internalFields.key,t)},_getElementByItem:function(e){var t,n=this;return r(this._itemElements(),function(o,a){return i(a).data(n._itemDataKey())!==e||(t=a,!1)}),t},_updateSelectedItems:function(e,t){(e||t)&&(this._updateSelection(t,e),this._fireSelectionChangeEvent(t,e))},_fireSelectionChangeEvent:function(e,t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:[e],removedItems:[t]})},selectItem:function(e){var t=e.nodeType?this._getItemData(e):e,n=this._dataAdapter.getNodeByItem(t),i=this._dataAdapter.getSelectedNodesKeys()[0],o=this.option("selectedItem");n.internalFields.key!==i&&(i&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(i),!1),this._toggleItemSelection(n,!0),this._updateSelectedItems(o,t),this._setOptionSilent("selectedItem",t))},unselectItem:function(e){var t=e.nodeType?this._getItemData(e):e,n=this._dataAdapter.getNodeByItem(t),i=this.option("selectedItem");n.internalFields.selected&&(this._toggleItemSelection(n,!1),this._updateSelectedItems(i,null),this._setOptionSilent("selectedItem",null))}});e.exports=O},function(e,t,n){var i=n(2),o=n(22),a=n(0).extend,r=n(3).each,s=n(14),l=n(106),c=n(527),d=n(44),u=n(67),h=n(1).isFunction,p=n(4).noop,f="dx-state-disabled",g=d.inherit({_getDefaultOptions:function(){return a(this.callBase(),{keyExpr:"id",displayExpr:"text",selectedExpr:"selected",disabledExpr:"disabled",itemsExpr:"items",hoverStateEnabled:!0,parentIdExpr:"parentId",expandedExpr:"expanded"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===s.real().deviceType&&!s.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this._initAccessors(),this._initDataAdapter(),this._initDynamicTemplates()},_initDataSource:function(){this.callBase(),this._dataSource&&this._dataSource.paginate(!1)},_initDataAdapter:function(){var e=this._createDataAdapterAccessors();this._dataAdapter=new c(a({dataAccessors:{getters:e.getters,setters:e.setters},items:this.option("items")},this._getDataAdapterOptions()))},_getDataAdapterOptions:p,_initDynamicTemplates:function(){var e=this;this._defaultTemplates.item=new u(function(t,n){t.html(n.html).append(this._getIconContainer(n)).append(this._getTextContainer(n)).append(this._getPopoutContainer(n)),e._addContentClasses(n,t.parent())}.bind(this),["text","html","items","icon"],this.option("integrationOptions.watchMethod"),{text:this._displayGetter,items:this._itemsGetter})},_getIconContainer:function(e){return e.icon?l.getImageContainer(e.icon):void 0},_getTextContainer:function(e){return i("<span>").text(e.text)},_getPopoutContainer:p,_addContentClasses:p,_initAccessors:function(){var e=this;r(this._getAccessors(),function(t,n){e._compileAccessor(n)})},_getAccessors:function(){return["key","display","selected","items","disabled","parentId","expanded"]},_getChildNodes:function(e){var t=this,n=[];return r(e.internalFields.childrenKeys,function(e,i){var o=t._dataAdapter.getNodeByKey(i);n.push(o)}),n},_hasChildren:function(e){return e&&e.internalFields.childrenKeys.length},_compileAccessor:function(e){var t="_"+e+"Getter",n="_"+e+"Setter",i=this.option(e+"Expr");return i?h(i)?(this[n]=function(e,t){e[i()]=t},void(this[t]=function(e){return e[i()]})):(this[t]=o.compileGetter(i),void(this[n]=o.compileSetter(i))):(this[t]=p,void(this[n]=p))},_createDataAdapterAccessors:function(){var e=this,t={getters:{},setters:{}};return r(this._getAccessors(),function(n,i){var o="_"+i+"Getter",a="_"+i+"Setter",r="parentId"===i?"parentKey":i;t.getters[r]=e[o],t.setters[r]=e[a]}),t},_initMarkup:function(){this.callBase(),this._addWidgetClass()},_addWidgetClass:function(){this._focusTarget().addClass(this._widgetClass())},_widgetClass:p,_renderItemFrame:function(e,t){var n=this.callBase.apply(this,arguments);return n.toggleClass(f,!!this._disabledGetter(t)),n},_optionChanged:function(e){switch(e.name){case"displayExpr":case"keyExpr":this._initAccessors(),this._initDynamicTemplates(),this.repaint();break;case"itemsExpr":case"selectedExpr":case"disabledExpr":case"expandedExpr":case"parentIdExpr":this._initAccessors(),this._initDataAdapter(),this.repaint();break;case"items":this._initDataAdapter(),this.callBase(e);break;default:this.callBase(e)}}});e.exports=g},function(e,t,n){var i=n(2),o=n(5),a=n(197),r=n(1).isDefined,s=n(3).each,l=n(15),c=n(0).extend,d="text-content",u="headers",h="nowrap",p="dx-header-row",f="dx-column-lines",g="context-menu-sort-asc",_="context-menu-sort-desc",m="context-menu-sort-none",v="dx-cell-focus-disabled",x="dx-visibility-hidden",w="dx-text-content-alignment-",b="dx-sort-indicator",y="dx-header-filter-indicator",C="dx-header-multi-row";e.exports={defaultOptions:function(){return{showColumnHeaders:!0,cellHintEnabled:!0}},views:{columnHeadersView:a.ColumnsView.inherit(function(){var e=function(e,n,o){var a,r=i("<div>").addClass(e.addWidgetPrefix(d));return e.setAria("role","presentation",r),t(e,n,o.column,r),a=e.option("showColumnLines"),r[a||"right"===o.column.alignment?"appendTo":"prependTo"](n)},t=function(e,t,n,i){var o=e._getIndicatorElements(t,!0),a=e._getIndicatorElements(t),r=o&&o.length,s=e._getColumnAlignment(n.alignment);i=i||t.children("."+e.addWidgetPrefix(d)),i.toggleClass(w+s,r>0).toggleClass(w+("left"===s?"right":"left"),r>0&&"center"===n.alignment).toggleClass(b,!!a.filter("."+e._getIndicatorClassName("sort")).length).toggleClass(y,!!a.filter("."+e._getIndicatorClassName("headerFilter")).length)};return{_createTable:function(){var e=this.callBase.apply(this,arguments);return o.on(e,"mousedown selectstart",this.createAction(function(e){var t=e.event;t.shiftKey&&t.preventDefault()})),e},_getDefaultTemplate:function(t){var n,i=this;return n=t.command?function(e,t){var n=t.column;e.html(" "),e.addClass(n.cssClass)}:function(n,o){var a=e(i,n,o);a.text(t.caption)}},_getHeaderTemplate:function(e){return e.headerCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(e)}},_processTemplate:function(t,n){var i,o=this,a=n.column,r=o.callBase(t);return i="header"===n.rowType&&r&&a.headerCellTemplate&&!a.command?{render:function(t){var n=e(o,t.container,t.model);r.render(c({},t,{container:n}))}}:r},_handleDataChanged:function(e){"refresh"===e.changeType&&(this._isGroupingChanged||this._requireReady)&&(this._isGroupingChanged=!1,this.render())},_renderCell:function(e,t){var n=this.callBase(e,t);return"header"===t.row.rowType&&n.addClass(v),n},_setCellAriaAttributes:function(e,t){this.callBase(e,t),"header"===t.rowType&&(this.setAria("role","columnheader",e),!t.column||t.column.command||t.column.isBand||(e.attr("id",t.column.id),this.setAria("label",l.format("dxDataGrid-ariaColumn")+" "+t.column.caption,e)))},_createRow:function(e){var t=this.callBase(e).toggleClass(f,this.option("showColumnLines"));return"header"===e.rowType&&t.addClass(p),t},_renderCore:function(){var e=this,t=e.element();(!e._tableElement||e._dataController.isLoaded()||e._hasRowElements)&&(t.addClass(e.addWidgetPrefix(u)).toggleClass(e.addWidgetPrefix(h),!e.option("wordWrapEnabled")).empty(),e.setAria("role","presentation",t),e._updateContent(e._renderTable()),e.getRowCount()>1&&t.addClass(C),e.callBase.apply(e,arguments))},_renderRows:function(){var e=this;(e._dataController.isLoaded()||e._hasRowElements)&&(e.callBase.apply(e,arguments),e._hasRowElements=!0)},_getRowVisibleColumns:function(e){return this._columnsController.getVisibleColumns(e)},_renderRow:function(e,t){t.columns=this._getRowVisibleColumns(t.row.rowIndex),this.callBase(e,t)},_createCell:function(e){var t=e.column,n=this.callBase.apply(this,arguments);return t.rowspan>1&&"header"===e.rowType&&n.attr("rowSpan",t.rowspan),n},_getRows:function(){var e,t=[],n=this.getRowCount();if(this.option("showColumnHeaders"))for(e=0;e<n;e++)t.push({rowType:"header",rowIndex:e});return t},_getCellTemplate:function(e){if("header"===e.rowType)return this._getHeaderTemplate(e.column)},_columnOptionChanged:function(e){var t=e.changeTypes,n=e.optionNames;return t.grouping?void(this._isGroupingChanged=!0):(this.callBase(e),void((n.width||n.visible)&&this.resizeCompleted.fire()))},_isElementVisible:function(e){return e&&e.visible},_alignCaptionByCenter:function(e){var t=this._getIndicatorContainer(e,!0);t&&t.length&&(t.filter("."+x).remove(),t=this._getIndicatorContainer(e),t.clone().addClass(x).css("float","").insertBefore(e.children("."+this.addWidgetPrefix(d))))},_updateCell:function(e,t){"header"===t.rowType&&"center"===t.column.alignment&&this._alignCaptionByCenter(e),this.callBase.apply(this,arguments)},_updateIndicator:function(e,n,i){var o=this.callBase.apply(this,arguments);return"center"===n.alignment&&this._alignCaptionByCenter(e),t(this,e,n),o},_getIndicatorContainer:function(e,t){var n=this.callBase(e);return t?n:n.filter(":not(."+x+")")},_isSortableElement:function(){return!0},getHeadersRowHeight:function(){var e=this._getTableElement(),t=e&&e.find("."+p);return t&&t.toArray().reduce(function(e,t){return e+i(t).height()},0)||0},getHeaderElement:function(e){var t=this.getColumnElements();return t&&t.eq(e)},getColumnElements:function(e,t){var n,o,a,l,c=this,d=c._columnsController,u=c.getRowCount();if(c.option("showColumnHeaders")){if(u>1&&(!r(e)||r(t)))return o=[],l=r(t)?d.getChildrenByBandColumn(t,!0):d.getVisibleColumns(),s(l,function(t,i){n=r(e)?e:d.getRowIndex(i.index),a=c._getCellElement(n,d.getVisibleIndex(i.index,n)),a&&o.push(a.get(0))}),i(o);if(!e||e<u)return c.getCellElements(e||0)}},getVisibleColumnIndex:function(e,t){var n=this.getColumns()[e];return n?this._columnsController.getVisibleIndex(n.index,t):-1},getColumnWidths:function(){var e=this.getColumnElements();return e&&e.length?this._getWidths(e):this.callBase.apply(this,arguments)},allowDragging:function(e,t,n){var i,o,a=e&&this._columnsController.getRowIndex(e.index),r=this.getColumns(0===a?0:null),s=0,l=function(e){return e.allowReordering||e.allowGrouping||e.allowHiding};for(i=0;i<r.length;i++)l(r[i])&&s++;if(s<=1)return!1;if(!n)return(this.option("allowColumnReordering")||this._columnsController.isColumnOptionUsed("allowReordering"))&&e&&e.allowReordering;for(i=0;i<n.length;i++)if(o=n[i],o&&o.allowDragging(e,t))return!0;return!1},getBoundingRect:function(){var e,t=this,n=t.getColumnElements();return n&&n.length?(e=t._getTableElement().offset(),{top:e.top}):null},getName:function(){return"headers"},getColumnCount:function(){var e=this.getColumnElements();return e?e.length:0},isVisible:function(){return this.option("showColumnHeaders")},optionChanged:function(e){var t=this;switch(e.name){case"showColumnHeaders":case"wordWrapEnabled":case"showColumnLines":t._invalidate(!0,!0),e.handled=!0;break;default:t.callBase(e)}},getHeight:function(){return this.getElementHeight()},getContextMenuItems:function(e){var t,n,i=this,o=e.column;if(e.row&&("header"===e.row.rowType||"detailAdaptive"===e.row.rowType)&&(n=i.option("sorting"),n&&"none"!==n.mode&&o&&o.allowSorting))return t=function(e){setTimeout(function(){i._columnsController.changeSortOrder(o.index,e.itemData.value)})},[{text:n.ascendingText,value:"asc",disabled:"asc"===o.sortOrder,icon:g,onItemClick:t},{text:n.descendingText,value:"desc",disabled:"desc"===o.sortOrder,icon:_,onItemClick:t},{text:n.clearText,value:"none",disabled:!o.sortOrder,icon:m,onItemClick:t}]},getRowCount:function(){return this._columnsController&&this._columnsController.getRowCount()},setRowsOpacity:function(e,t,n){var i,o,a=this,l=a.getRowCount(),c=a._columnsController.getColumns(),d=c&&c[e],u=d&&d.isBand&&d.index,h=function(e,n){n.ownerBand===u&&(o.eq(e).css({opacity:t}),n.isBand&&a.setRowsOpacity(n.index,t,i+1))};if(r(u))for(n=n||0,i=n;i<l;i++)o=a.getCellElements(i),s(a.getColumns(i),h)}}}())}}},function(e,t,n){var i=n(2),o=n(0).extend,a=n(103).getDefaultAlignment,r=n(4),s="dx-column-indicators",l="dx-group-panel-item";e.exports={_applyColumnState:function(e){var t=this,n=this.option("rtlEnabled"),a=t._getColumnAlignment(e.column.alignment,n),r=o(!0,{columnAlignment:a},e),s=r.rootElement.hasClass(l),c=t._createIndicatorContainer(r,s),d=i("<span>").addClass(t._getIndicatorClassName(e.name)),u=function(){return n?"left"===a?"right":"left":a};return r.container=c,r.indicator=d,t._renderIndicator(r),c[!s&&e.showColumnLines||"left"!==u()?"prependTo":"appendTo"](e.rootElement),d},_getIndicatorClassName:r.noop,_getColumnAlignment:function(e,t){return t=t||this.option("rtlEnabled"),e&&"center"!==e?e:a(t)},_createIndicatorContainer:function(e,t){var n=this._getIndicatorContainer(e.rootElement),o="left"===e.columnAlignment?"right":"left";return n.length||(n=i("<div>").addClass(s)),this.setAria("role","presentation",n),n.css("float",e.showColumnLines&&!t?o:null)},_getIndicatorContainer:function(e){return e&&e.find("."+s)},_getIndicatorElements:function(e){var t=this._getIndicatorContainer(e);return t&&t.children()},_renderIndicator:function(e){var t=e.container,n=e.indicator;t&&n&&t.append(n)},_updateIndicators:function(e){var t,n,i,o=this,a=o.getColumns(),r=o.getColumnElements();if(r&&r.length)for(i=0;i<a.length;i++)n=r.eq(i),o._updateIndicator(n,a[i],e),t=n.parent().data("options"),t&&t.cells&&(t.cells[n.index()].column=a[i])},_updateIndicator:function(e,t,n){if(!t.command)return this._applyColumnState({name:n,rootElement:e,column:t,showColumnLines:this.option("showColumnLines")})}}},function(e,t,n){var i=n(2),o=n(19),a=n(71).isWrapped,r=n(22),s=n(4).grep,l=n(1),c=n(3),d=n(103).getDefaultAlignment,u=n(0).extend,h=n(11).inArray,p=n(30),f=l.isDefined,g=n(54),_=n(21),m=n(46),v=n(45),x=v.normalizeSortingInfo,w=v.equalSortParameters,b=n(11).normalizeIndexes,y=n(37),C=n(65),k=n(49),S=n(33),I=n(15),T=n(7),D=T.when,E=T.Deferred,A=n(91),B=n(52),O=B.normalizeDataSourceOptions,R=n(196),M=["filterValues","filterType","fixed","fixedPosition"],P=["visibleIndex","dataField","name","dataType","width","visible","sortOrder","lastSortOrder","sortIndex","groupIndex","filterValue","selectedFilterOperation","added"].concat(M),V={
|