devextreme 18.2.16 → 18.2.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 +3 -3
- 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/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.d.ts +3 -3
- package/core/dom_component.js +3 -3
- package/core/element.d.ts +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/array_compare.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 +3 -3
- package/data/array_store.d.ts +3 -3
- package/data/array_store.js +3 -3
- package/data/array_utils.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/load_options.d.ts +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 +6 -5
- package/dist/js/dx.all.js +5 -5
- package/dist/js/dx.aspnet.mvc.js +3 -3
- package/dist/js/dx.mobile.debug.js +6 -5
- package/dist/js/dx.mobile.js +5 -5
- package/dist/js/dx.viz-web.debug.js +6 -5
- package/dist/js/dx.viz-web.js +5 -5
- package/dist/js/dx.viz.debug.js +6 -5
- package/dist/js/dx.viz.js +6 -6
- package/dist/js/dx.web.debug.js +6 -5
- package/dist/js/dx.web.js +6 -6
- 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.sl.js +3 -3
- package/dist/js/localization/dx.messages.sv.js +3 -3
- package/dist/js/localization/dx.messages.tr.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/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/excel/excel.cell_alignment_helper.js +3 -3
- package/exporter/excel/excel.cell_format_helper.js +3 -3
- package/exporter/excel/excel.color_helper.js +3 -3
- package/exporter/excel/excel.doc_comments.js +3 -3
- package/exporter/excel/excel.file.js +3 -3
- package/exporter/excel/excel.fill_helper.js +3 -3
- package/exporter/excel/excel.font_helper.js +3 -3
- package/exporter/excel/excel.number_format_helper.js +3 -3
- package/exporter/excel/excel.pattern_fill_helper.js +3 -3
- package/exporter/excel/excel.tag_helper.js +3 -3
- package/exporter/excel_creator.js +3 -3
- package/exporter/excel_format_converter.js +3 -3
- package/exporter/file_saver.js +3 -3
- package/exporter/image_creator.js +3 -3
- package/exporter/pdf_creator.js +3 -3
- package/exporter/svg_creator.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 +5 -4
- 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/utils.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 +1 -1
- 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/button_group.d.ts +3 -3
- package/ui/button_group.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/collection/ui.collection_widget.live_update.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.d.ts +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.focus.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.utils.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.base.js +3 -3
- package/ui/date_box/ui.date_box.js +3 -3
- package/ui/date_box/ui.date_box.mask.js +3 -3
- package/ui/date_box/ui.date_box.mask.parts.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/drawer/ui.drawer.js +3 -3
- package/ui/drawer/ui.drawer.rendering.strategy.js +3 -3
- package/ui/drawer/ui.drawer.rendering.strategy.overlap.js +3 -3
- package/ui/drawer/ui.drawer.rendering.strategy.push.js +3 -3
- package/ui/drawer/ui.drawer.rendering.strategy.shrink.js +3 -3
- package/ui/drawer.d.ts +3 -3
- package/ui/drawer.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.d.ts +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/ui.form.items_runtime_info.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.focus.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/html_editor/converterController.js +3 -3
- package/ui/html_editor/converters/delta.js +3 -3
- package/ui/html_editor/converters/markdown.js +3 -3
- package/ui/html_editor/formats/align.js +3 -3
- package/ui/html_editor/formats/font.js +3 -3
- package/ui/html_editor/formats/image.js +3 -3
- package/ui/html_editor/formats/link.js +3 -3
- package/ui/html_editor/formats/size.js +3 -3
- package/ui/html_editor/formats/variable.js +3 -3
- package/ui/html_editor/matchers/textDecoration.js +3 -3
- package/ui/html_editor/matchers/wordLists.js +3 -3
- package/ui/html_editor/modules/dropImage.js +3 -3
- package/ui/html_editor/modules/popup.js +3 -3
- package/ui/html_editor/modules/toolbar.js +3 -3
- package/ui/html_editor/modules/variables.js +3 -3
- package/ui/html_editor/modules/widget_collector.js +3 -3
- package/ui/html_editor/quill_importer.js +3 -3
- package/ui/html_editor/quill_registrator.js +3 -3
- package/ui/html_editor/themes/base.js +3 -3
- package/ui/html_editor/ui/formDialog.js +3 -3
- package/ui/html_editor/ui.html_editor.js +3 -3
- package/ui/html_editor.d.ts +3 -3
- package/ui/html_editor.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/z_index.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/recurrence_editor.d.ts +3 -3
- package/ui/recurrence_editor.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/rendering_strategies/ui.scheduler.appointments.strategy.agenda.js +3 -3
- package/ui/scheduler/rendering_strategies/ui.scheduler.appointments.strategy.base.js +3 -3
- package/ui/scheduler/rendering_strategies/ui.scheduler.appointments.strategy.horizontal.js +3 -3
- package/ui/scheduler/rendering_strategies/ui.scheduler.appointments.strategy.horizontal_month.js +3 -3
- package/ui/scheduler/rendering_strategies/ui.scheduler.appointments.strategy.horizontal_month_line.js +3 -3
- package/ui/scheduler/rendering_strategies/ui.scheduler.appointments.strategy.vertical.js +3 -3
- package/ui/scheduler/shaders/ui.scheduler.current_time_shader.horizontal.js +3 -3
- package/ui/scheduler/shaders/ui.scheduler.current_time_shader.js +3 -3
- package/ui/scheduler/shaders/ui.scheduler.current_time_shader.vertical.js +3 -3
- package/ui/scheduler/timezones/ui.scheduler.timezone_editor.js +3 -3
- package/ui/scheduler/timezones/ui.scheduler.timezones.js +3 -3
- package/ui/scheduler/timezones/ui.scheduler.timezones_data.js +3 -3
- package/ui/scheduler/ui.loading.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.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/utils.recurrence.js +3 -3
- package/ui/scheduler/workspaces/ui.scheduler.agenda.js +3 -3
- package/ui/scheduler/workspaces/ui.scheduler.timeline.js +3 -3
- package/ui/scheduler/workspaces/ui.scheduler.timeline_day.js +3 -3
- package/ui/scheduler/workspaces/ui.scheduler.timeline_month.js +3 -3
- package/ui/scheduler/workspaces/ui.scheduler.timeline_week.js +3 -3
- package/ui/scheduler/workspaces/ui.scheduler.timeline_work_week.js +3 -3
- package/ui/scheduler/workspaces/ui.scheduler.work_space.grouped.strategy.horizontal.js +3 -3
- package/ui/scheduler/workspaces/ui.scheduler.work_space.grouped.strategy.js +3 -3
- package/ui/scheduler/workspaces/ui.scheduler.work_space.grouped.strategy.vertical.js +3 -3
- package/ui/scheduler/workspaces/ui.scheduler.work_space.indicator.js +3 -3
- package/ui/scheduler/workspaces/ui.scheduler.work_space.js +3 -3
- package/ui/scheduler/workspaces/ui.scheduler.work_space_day.js +3 -3
- package/ui/scheduler/workspaces/ui.scheduler.work_space_month.js +3 -3
- package/ui/scheduler/workspaces/ui.scheduler.work_space_week.js +3 -3
- package/ui/scheduler/workspaces/ui.scheduler.work_space_work_week.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/scrollable.d.ts +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/grouped_data_converter_mixin.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.focus.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 +3 -3
- 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/selectors.js +3 -3
- package/ui/widget/swatch_container.js +3 -3
- package/ui/widget/template.d.ts +3 -3
- package/ui/widget/template.js +3 -3
- package/ui/widget/template_engine_registry.js +3 -3
- package/ui/widget/template_engines.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/constant_line.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/strip.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/chart_components/zoom_and_pan.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/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/sankey/constants.js +3 -3
- package/viz/sankey/data_validator.js +3 -3
- package/viz/sankey/graph.js +3 -3
- package/viz/sankey/layout.js +3 -3
- package/viz/sankey/link_item.js +3 -3
- package/viz/sankey/node_item.js +3 -3
- package/viz/sankey/sankey.js +3 -3
- package/viz/sankey/tooltip.js +3 -3
- package/viz/sankey/tracker.js +3 -3
- package/viz/sankey.d.ts +3 -3
- package/viz/sankey.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/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.web.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* DevExtreme (dx.web.js)
|
|
3
|
-
* Version: 18.2.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 18.2.17
|
|
4
|
+
* Build date: Wed Apr 27 2022
|
|
5
5
|
*
|
|
6
|
-
* Copyright (c) 2012 -
|
|
6
|
+
* Copyright (c) 2012 - 2022 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=827)}([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],d=a[r],c=!1;"__proto__"!==r&&t!==d&&(o&&d&&(i(d)||(c=Array.isArray(d)))?(s=c?l&&Array.isArray(l)?l:[]:l&&i(l)?l:{},t[r]=e(o,s,d)):void 0!==d&&(t[r]=d))}}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)},d=function(e){return null!==e&&void 0!==e},c=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)},m=function(e){return["object","array","function"].indexOf(a(e))===-1},_=function(e){return null!=e&&e===e.window},v=function(e){return!(!e.jquery&&!e.dxRenderer)},w=function(e){return e&&c(e.then)},y=function(e){return e&&c(e.done)&&c(e.fail)};t.isBoolean=r,t.isExponential=s,t.isDate=l,t.isDefined=d,t.isFunction=c,t.isString=u,t.isNumeric=h,t.isObject=p,t.isEmptyObject=f,t.isPlainObject=g,t.isPrimitive=m,t.isWindow=_,t.isRenderer=v,t.isPromise=w,t.isDeferred=y,t.type=a},function(e,t,n){var i=n(224);e.exports=i.get()},function(e,t,n){var i=function(e,t){if(Array.isArray(e))return e.map(t);var n=[];for(var i in e)n.push(t(e[i],i));return n},o=function(e,t){if(e){if("length"in e)for(var n=0;n<e.length&&t.call(e[n],n,e[n])!==!1;n++);else for(var i in e)if(t.call(e[i],i,e[i])===!1)break;return e}},a=function(e,t){if(e&&"length"in e&&0!==e.length)for(var n=e.length-1;n>=0&&t.call(e[n],n,e[n])!==!1;n--);};t.map=i,t.each=o,t.reverseEach=a},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}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(23),r=i(a),s=n(40),l=i(s),d=n(7),c=n(3),u=n(22),h=n(1),p=function(e,t){return(0,h.isDefined)(e)?e:t},f=function(e,t){var n=new d.Deferred,i=t||this,o=void 0,a={promise:n.promise(),abort:function(){clearTimeout(o),n.rejectWith(i)}},r=function(){var t=e.call(i);t&&t.done&&(0,h.isFunction)(t.done)?t.done(function(){n.resolveWith(i)}):n.resolveWith(i)};return o=(arguments[2]||setTimeout)(r,"number"==typeof t?t:0),a},g=[],m=[],_=[],v=void 0,w=function(e,t,n){if(v&&v!==e)return g.push(t),m.push(e),n=n||new d.Deferred,_.push(n),n;var i=v,o=_.length;v=e;var a=t();return a||(_.length>o?a=d.when.apply(this,_.slice(o)):n&&n.resolve()),v=i,n&&a&&a.done&&a.done(n.resolve).fail(n.reject),!v&&g.length&&("render"===m.shift()?y:x)(g.shift(),_.shift()),a||(0,d.when)()},y=function(e,t){return w("render",e,t)},x=function(e,t){return w("update",e,t)},b=function(e){return function(){var t=this;return w("render",function(){return e.call(t)})}},C=function(e){return function(){var t=this;return w("update",function(){return e.call(t)})}},k=function(e,t,n){var i=[],o=0;return(0,c.each)(t,function(t,a){var r=0,s=n?n(a):a;(0,c.each)(e,function(e,t){var n=s[e];if(void 0!==n)return I(n,t)?void r++:(r=-1,!1)}),r<o||(r>o&&(i.length=0,o=r),i.push(a))}),i},I=function(e,t){if(Array.isArray(e)&&Array.isArray(t)){var n=!1;return(0,c.each)(e,function(e,i){if(i!==t[e])return n=!0,!1}),!n}return e===t},S=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}},D=function(e){var t=(0,h.isString)(e)?e:e.toString(),n=t.match(/[^a-zA-Z0-9_]/g);return n&&(0,c.each)(n,function(e,n){t=t.replace(n,"__"+n.charCodeAt()+"__")}),t},T=function(e){var t=e.match(/__\d+__/g);return t&&t.forEach(function(t){var n=parseInt(t.replace("__",""));e=e.replace(t,String.fromCharCode(n))}),e},E=function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!R(e[i],t[i],n+1))return!1;return!0},A=function(e,t,n){for(var i in e)if(e.hasOwnProperty(i)&&!R(e[i],t[i],n+1))return!1;for(var o in t)if(!(o in e))return!1;return!0},B=function(e,t){var n=S(e),i=t?parseFloat(n&&n[0]):parseInt(n&&n[0],10),o=t?parseFloat(n&&n[1]):parseInt(n&&n[1],10);return isFinite(i)||(i=0),isFinite(o)||(o=i),{h:i,v:o}},O=3,R=function(e,t,n){return n=n||0,e=(0,u.toComparable)(e,!0),t=(0,u.toComparable)(t,!0),e===t||n>=O||((0,h.isObject)(e)&&(0,h.isObject)(t)?A(e,t,n):!(!Array.isArray(e)||!Array.isArray(t))&&E(e,t,n))},M=function(e){if(e instanceof l.default)return e.toString();if((0,h.isObject)(e)||Array.isArray(e))try{var t=JSON.stringify(e);return"{}"===t?e:t}catch(t){return e}return e},P=function(e){return e.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},F=function(e){var t=(0,r.default)().serverDecimalSeparator;return(0,h.isDefined)(e)&&(e=e.toString().replace(".",t)),e},V=function(){},H=function(){return(new d.Deferred).resolve().promise()},$=function(e,t,n){for(var i=[],o=void 0,a=!n,r=0;r<e.length;r++)o=!!t(e[r],r),o===a&&i.push(e[r]);return i};t.ensureDefined=p,t.executeAsync=f,t.deferRender=y,t.deferRenderer=b,t.deferUpdate=x,t.deferUpdater=C,t.pairToObject=B,t.splitPair=S,t.findBestMatches=k,t.normalizeKey=D,t.denormalizeKey=T,t.equalByValue=R,t.getKeyHash=M,t.escapeRegExp=P,t.applyServerDecimalSeparator=F,t.noop=V,t.asyncNoop=H,t.grep=$},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(112),r=n(0).extend,s=n(13),l=n(6),d=l.getWindow(),c=n(55),u=n(1),h=n(19),p=u.isWindow,f=u.isFunction,g=u.isString,m=n(18),_=n(175),v=n(225),w=n(61),y="dxEmptyEventType",x={mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},b={focusin:"focus",focusout:"blur"},C=["blur","focusout","focus","focusin","load"],k=["touchmove","wheel","mousewheel"],I=function(e,t){return!p(e)&&"#document"!==e.nodeName&&s.elementMatches(e,t)},S=new _,D=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)}}}(),E=function e(t,n){var i=t[0];if(i)if(s.isNode(i)||p(i))n.apply(W,t);else{if(g(i)||!("length"in i))throw m.Error("E0025");var o=Array.prototype.slice.call(t,0);Array.prototype.forEach.call(i,function(t){o[0]=t,e(o,n)})}},A=function(e){return function(){E(arguments,e)}},B=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0,!0}});d.addEventListener("test",null,t)}catch(e){}return e},O=w(B),R=function(e,t){var n=S.get(e);t=t||"";var o=t.split("."),a=o.slice(1),r=!!o[0];t=o[0]||y,n||(n={},S.set(e,n)),n[t]||(n[t]={handleObjects:[],nativeHandler:null});var l=n[t];return{addHandler:function(n,o,d){var c=function(i,o){var a,r,s=[i],l=i.currentTarget,c=i.relatedTarget;t in x&&(a=c&&l&&(c===l||l.contains(c))),void 0!==o&&s.push(o),T.callMethod(t,"handle",e,[i,d]),a||(r=n.apply(l,s)),r===!1&&(i.preventDefault(),i.stopPropagation())},u=function(t,n){if(!i||t.type!==i)if(t.data=d,t.delegateTarget=e,o)for(var a=t.target;a&&a!==e;)I(a,o)&&(t.currentTarget=a,c(t,n)),a=a.parentNode;else c(t,n)},h={handler:n,wrappedHandler:u,selector:o,type:t,data:d,namespace:a.join("."),namespaces:a,guid:++D};l.handleObjects.push(h);var p,f=1===l.handleObjects.length,g=f&&r;g&&(g=!T.callMethod(t,"setup",e,[d,a,n])),g&&(l.nativeHandler=M(t),O()&&k.indexOf(t)>-1&&(p={passive:!1}),l.removeListener=s.listen(e,x[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&&!P(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,d=l&&t!==y;d&&(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 d=0===Object.keys(n).length;d&&S.delete(e)},callHandlers:function(e,t){var i=!1,o=function(n){i||a.length&&!P(n.namespaces,a)||(n.wrappedHandler(e,t),i=e.isImmediatePropagationStopped())};l.handleObjects.forEach(o),a.length&&n[y]&&n[y].handleObjects.forEach(o)}}},M=function(e){return function(t,n){var i=R(this,e);t=W.Event(t),i.callHandlers(t,n)}},P=function(e,t){for(var n=0;n<t.length;n++)if(e.indexOf(t[n])<0)return!1;return!0},F=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)}},V=function(e){return function(t,n,i,o){"function"==typeof i&&(o=i,i=void 0),e(t,n,i,o)}},H=function(e){return function(t,n,i){"string"==typeof n&&(n={type:n}),n.target||(n.target=t),n.currentTarget=t,n.delegateTarget||(n.delegateTarget=t),!n.type&&n.originalEvent&&(n.type=n.originalEvent.type),e(t,n instanceof W.Event?n:W.Event(n),i)}},$=function(e){return function(t,n){return this instanceof W.Event?(t||(t={}),"string"==typeof t&&(t={type:t}),n||(n={}),void e.call(this,t,n)):new W.Event(t,n)}},z=function(e){var t=function(t,n){if(n&&n.indexOf(" ")>-1){var i=Array.prototype.slice.call(arguments,0);n.split(" ").forEach(function(t){i[1]=t,e.apply(this,i)})}else e.apply(this,arguments)};return function(e,n){if("object"===("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)},N=function(e){var t=function(e){var t=/^(?:mouse|pointer|contextmenu|drag|drop)|click/;return!e.which&&void 0!==e.button&&t.test(e.type)},n=function(e){return null==e.which&&0===e.type.indexOf("key")};if(n(e))return null!=e.charCode?e.charCode:e.keyCode;if(t(e)){var i={1:1,2:3,3:1,4:2};return i[e.button]}return e.which},W=c({on:A(F(z(function(e,t,n,i,o){var a=R(e,t);a.addHandler(o,n,i)}))),one:A(F(function(e,t,n,i,o){var a=function i(){W.off(e,t,n,i),o.apply(this,arguments)};W.on(e,t,n,i,a)})),off:A(V(z(function(e,t,n,i){var o=R(e,t);o.removeHandler(i,n)}))),trigger:A(H(function(e,t,n){var i=t.type,o=R(e,t.type);T.callMethod(i,"trigger",e,[t,n]),o.callHandlers(t,n);var a=T.getField(i,"noBubble")||t.isPropagationStopped()||C.indexOf(i)!==-1;if(!a){var s=[],l=function e(t){var n=t.parentNode;n&&(s.push(n),e(n))};l(e),s.push(d);for(var c=0;s[c]&&!t.isPropagationStopped();){var u=R(s[c],t.type);u.callHandlers(r(t,{currentTarget:s[c]}),n),c++}}(e.nodeType||p(e))&&(T.callMethod(i,"_default",e,[t,n]),L(i,e))})),triggerHandler:A(H(function(e,t,n){var i=R(e,t.type);i.callHandlers(t,n)}))}),q=function(e){e&&(W.Event=e,W.Event.prototype=e.prototype)};q($(function(e,t){var n=this,i=!1,o=!1,a=!1;r(n,e),(e instanceof W.Event||l.hasWindow()&&e instanceof d.Event)&&(n.originalEvent=e,n.currentTarget=void 0),e instanceof W.Event||r(n,{isPropagationStopped:function(){return!!(i||n.originalEvent&&n.originalEvent.propagationStopped)},stopPropagation:function(){i=!0,n.originalEvent&&n.originalEvent.stopPropagation()},isImmediatePropagationStopped:function(){return o},stopImmediatePropagation:function(){this.stopPropagation(),o=!0,n.originalEvent&&n.originalEvent.stopImmediatePropagation()},isDefaultPrevented:function(){return!!(a||n.originalEvent&&n.originalEvent.defaultPrevented)},preventDefault:function(){a=!0,n.originalEvent&&n.originalEvent.preventDefault()}}),G("which",N,n),0===e.type.indexOf("touch")&&(delete t.pageX,delete t.pageY),r(n,t),n.guid=++D}));var G=function(e,t,n){Object.defineProperty(n||W.Event.prototype,e,{enumerable:!0,configurable:!0,get:function(){return this.originalEvent&&t(this.originalEvent)},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})};v(G);var K=h(),j=h();W.set=function(e){K.fire(),W.inject(e),q(e.Event),j.fire()},W.subscribeGlobal=function(){E(arguments,F(function(){var e=arguments;W.on.apply(this,e),K.add(function(){var t=Array.prototype.slice.call(e,0);t.splice(3,1),W.off.apply(this,t)}),j.add(function(){W.on.apply(this,e)})}))},W.forcePassiveFalseEventNames=k,W.passiveEventHandlersSupported=O,e.exports=W},function(e,t,n){var i=n(13),o="undefined"!=typeof window,a=o&&window;a||(a={},a.window=a),e.exports={hasWindow:function(){return o},getWindow:function(){return a},hasProperty:function(e){return this.hasWindow()&&e in a},defaultScreenFactorFunc:function(e){return e<768?"xs":e<992?"sm":e<1200?"md":"lg"},getCurrentScreenFactor:function(e){var t=e||this.defaultScreenFactorFunc,n=i.getDocumentElement().clientWidth;return t(n)},getNavigator:function(){return this.hasWindow()?a.navigator:{userAgent:""}}}},function(e,t,n){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"}],d=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 d;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;d.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 d;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 d).resolveWith(t,[e])};var c=function(){if(1===arguments.length)return t.fromPromise(arguments[0]);for(var e=[].slice.call(arguments),n=[],i=0,o=new d,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){d=e.Deferred,c=e.when},t.Deferred=function(){return new d},t.when=function(){return c.apply(this,arguments)}},function(e,t,n){var i=n(2),o=n(141),a=n(18),r=n(103),s=function(e,t,n){n?t[e]=n:n=t,r.name(n,e),o.fire(e,n)},l=function(e,t){i.fn[e]=function(n){var i,o="string"==typeof n;if(o){var r=n,s=[].slice.call(arguments).slice(1);this.each(function(){var n=t.getInstance(this);if(!n)throw a.Error("E0009",e);var o=n[r],l=o.apply(n,s);void 0===i&&(i=l)})}else this.each(function(){var e=t.getInstance(this);e?e.option(n):new t(this,n)}),i=this;return i}};o.add(l),e.exports=s},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(5),s=i(r),l=n(18),d=i(l),c=n(63),u=n(0),h=n(3),p={backspace:"backspace",tab:"tab",enter:"enter",escape:"escape",pageup:"pageUp",pagedown:"pageDown",end:"end",home:"home",arrowleft:"leftArrow",arrowup:"upArrow",arrowright:"rightArrow",arrowdown:"downArrow","delete":"del"," ":"space",f:"F",a:"A","*":"asterisk","-":"minus",alt:"alt",control:"control",shift:"shift",left:"leftArrow",up:"upArrow",right:"rightArrow",down:"downArrow",multiply:"asterisk",spacebar:"space",del:"del",subtract:"minus",esc:"escape"},f={8:"backspace",9:"tab",13:"enter",27:"escape",33:"pageUp",34:"pageDown",35:"end",36:"home",37:"leftArrow",38:"upArrow",39:"rightArrow",40:"downArrow",46:"del",32:"space",70:"F",65:"A",106:"asterisk",109:"minus",189:"minus",173:"minus",16:"shift",17:"control",18:"alt"},g=function(){var e={dx:/^dx/i,mouse:/(mouse|wheel)/i,touch:/^touch/i,keyboard:/^key/i,pointer:/^(ms)?pointer/i};return function(t){var n="other";return(0,h.each)(e,function(e){if(this.test(t.type))return n=e,!1}),n}}(),m=function(e){return"dx"===g(e)},_=function(e){return"mouse"===g(e)},v=function(e){return"touch"===g(e)},w=function(e){return"pointer"===g(e)},y=function(e){return _(e)||(w(e)||m(e))&&"mouse"===e.pointerType},x=function(e){return e&&"dxmousewheel"===e.type},b=function(e){return v(e)||(w(e)||m(e))&&"touch"===e.pointerType},C=function(e){return"keyboard"===g(e)},k=function(e){return 0===e.screenX&&!e.offsetX&&0===e.pageX},I=function(e){return{x:e.pageX,y:e.pageY,time:e.timeStamp}},S=function(e,t){return{x:t.x-e.x,y:t.y-e.y,time:t.time-e.time||1}},D=function(e){return v(e)?(e.originalEvent.touches||[]).length:m(e)?(e.pointers||[]).length:0},T=function(e){var t=e.target,n=(0,a.default)(t),i=n.is("input, textarea, select");if(n.is(".dx-skip-gesture-event *, .dx-skip-gesture-event"))return!0;if(x(e)){if(n.is("textarea")&&n.hasClass("dx-texteditor-input"))return!1;var o=t.isContentEditable&&n.closest("div[contenteditable='true']").is(":focus"),r=n.is("input[type='number'], textarea, select")&&n.is(":focus");return r||o}return y(e)?i||e.which>1:b(e)?i&&(0,c.focused)(n):void 0},E=function(e){return e},A=function(e){E=e},B=function(e){return E(s.default.Event(e,e),e)},O=function(e,t){var n=B(e);return t&&(0,u.extend)(n,t),n},R=function(e){var t=O(e.originalEvent,e);return s.default.trigger(e.delegateTarget||t.target,t),t},M=function e(t,n){if(!n)throw d.default.Error("E0017");return"string"==typeof t?t.indexOf(" ")===-1?t+"."+n:e(t.split(/\s+/g),n):((0,h.each)(t,function(e,i){t[e]=i+"."+n}),t.join(" "))},P=function(e){var t=!!e.key,n=t?e.key:e.which;if(n)return n=t?p[n.toLowerCase()]||n:f[n]||String.fromCharCode(n)},F=function(e){return e.key||String.fromCharCode(e.which)};e.exports={eventSource:g,isPointerEvent:w,isMouseEvent:y,isDxMouseWheelEvent:x,isTouchEvent:b,isKeyboardEvent:C,isFakeClickEvent:k,hasTouches:D,eventData:I,eventDelta:S,needSkipEvent:T,createEvent:O,fireEvent:R,addNamespace:M,setEventFixMethod:A,normalizeKeyName:P,getChar:F}},function(e,t,n){var i=n(18),o=n(1),a=function(e,t,n){return function(){var i=this.callBase;this.callBase=e[t];try{return n.apply(this,arguments)}finally{this.callBase=i}}},r=function(e){var t=function(){};return t.prototype=e.prototype,new t},s=function(e){var t,n,i,o=this;if(!e)return o;for(n in e)i=e[n],t="function"==typeof o.prototype[n]&&"function"==typeof i,o.prototype[n]=t?a(o.parent.prototype,n,i):i;return o},l=function(){var e,t,n,i=this,o=!i.hasOwnProperty("_includedCtors")&&!i.hasOwnProperty("_includedPostCtors");for(o&&(i._includedCtors=i._includedCtors.slice(0),i._includedPostCtors=i._includedPostCtors.slice(0)),n=0;n<arguments.length;n++){e=arguments[n],e.ctor&&i._includedCtors.push(e.ctor),e.postCtor&&i._includedPostCtors.push(e.postCtor);for(t in e)"ctor"!==t&&"postCtor"!==t&&(i.prototype[t]=e[t])}return i},d=function(e){return this.parent===e||!(!this.parent||!this.parent.subclassOf)&&this.parent.subclassOf(e)},c=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=c,t.redefine=s,t.include=l,t.subclassOf=d,t.parent=this,t._includedCtors=this._includedCtors?this._includedCtors.slice(0):[],t._includedPostCtors=this._includedPostCtors?this._includedPostCtors.slice(0):[],t.prototype.constructor=t,t.redefine(e),t},h.abstract=c,e.exports=h},function(e,t,n){var i=n(1).isDefined,o=n(3).each,a=n(54),r=n(23),s=function(e){return Array.isArray(e)&&!e.length},l=function(e){return Array.isArray(e)?e:[e]},d=function(e,t){if(!Array.isArray(e)||0===e.length||!Array.isArray(t)||0===t.length)return[];var n=[];return o(e,function(e,i){var o=h(i,t);o!==-1&&n.push(i)}),n},c=function(e,t){if(!Array.isArray(e)||0===e.length)return[];if(!Array.isArray(t)||0===t.length)return e.slice();var n=[];return o(e,function(e,i){var o=h(i,t);o===-1&&n.push(i)}),n},u=function(e,t,n,s){var l={},d=0,c=r().useLegacyVisibleIndex;return o(e,function(e,i){e=i[t],e>=0?(l[e]=l[e]||[],i===n?l[e].unshift(i):l[e].push(i)):i[t]=void 0}),c||o(e,function(){if(!i(this[t])&&(!s||s(this))){for(;l[d];)d++;l[d]=[this],d++}}),d=0,a.orderEach(l,function(e,n){o(n,function(){e>=0&&(this[t]=d++)})}),c&&o(e,function(){i(this[t])||s&&!s(this)||(this[t]=d++)}),d},h=function(e,t){if(!t)return-1;var n=Array.isArray(t)?t:t.toArray();return n.indexOf(e)},p=function(e,t){for(var n=0;n<t.length;n++)e[e.length]=t[n];return e};t.isEmpty=s,t.wrapToArray=l,t.intersection=d,t.removeDuplicates=c,t.normalizeIndexes=u,t.inArray=h,t.merge=p},function(e,t,n){var i,o=n(2),a=n(23),r=n(13),s=n(6),l=s.getWindow(),d=n(5),c=n(11).inArray,u=n(1),h=u.isDefined,p=u.isRenderer,f=n(226),g=function(){var e=r.getActiveElement();e&&e!==r.getBody()&&e.blur&&e.blur()},m=function(){var e=l.getSelection();if(e&&"Caret"!==e.type)if(e.empty)e.empty();else if(e.removeAllRanges)try{e.removeAllRanges()}catch(e){}},_=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++)d.triggerHandler(a[r],e)}},w=function(){var e=0;return function(t){return(t||"")+e++}}(),y="data-options",x=function(e){var t=o(e).attr(y)||"";return a().optionsParser(t)},b=function(e,t){var n=[],i="["+y+"]",a=e.find(i).add(e.filter(i));return a.each(function(e,i){var a=o(i),r=x(i);for(var s in r)(!t||c(s,t)>-1)&&a[s]&&(a[s](r[s]),n.push(a[s]("instance")))}),n},C=function(e){if(!l.WinJS)return o(f.parseHTML(e));var t=o("<div>");return l.WinJS.Utilities.setInnerHTMLUnsafe(t.get(0),e),t.contents()},k=function(e){e=o(e);var t=e.length&&e.filter(function(){var e=o(this);return e.is("script[type]")&&e.attr("type").indexOf("script")<0});return t.length?t.eq(0).html():(e=o("<div>").append(e),e.html())},I=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)},D=function(e,t){var n=e.originalEvent&&e.originalEvent.clipboardData||l.clipboardData;return 1===arguments.length?n&&n.getData("Text"):void(n&&n.setData("Text",t))},T=function(e,t){return!!t&&(t=r.isTextNode(t)?t.parentNode:t,r.isDocument(e)?e.documentElement.contains(t):e.contains(t))},E=function(e){return i(e)},A=function(e){i=e};A(function(e){return e&&e.get(0)});var B=function(e,t,n){var i=l.getComputedStyle(o(e).get(0)),a=n&&n.includePaddings;return o("<div>").text(t).css({fontStyle:i.fontStyle,fontVariant:i.fontVariant,fontWeight:i.fontWeight,fontSize:i.fontSize,fontFamily:i.fontFamily,letterSpacing:i.letterSpacing,border:i.border,paddingTop:a?i.paddingTop:"",paddingRight:a?i.paddingRight:"",paddingBottom:a?i.paddingBottom:"",paddingLeft:a?i.paddingLeft:"",visibility:"hidden",whiteSpace:"nowrap",position:"absolute","float":"left"})};t.setPublicElementWrapper=A,t.resetActiveElement=g,t.createMarkupFromString=C,t.triggerShownEvent=v("dxshown"),t.triggerHidingEvent=v("dxhiding"),t.triggerResizeEvent=v("dxresize"),t.getElementOptions=x,t.createComponents=b,t.extractTemplateMarkup=k,t.normalizeTemplateElement=I,t.clearSelection=m,t.uniqueId=w,t.closestCommonParent=_,t.clipboardText=D,t.toggleAttr=S,t.contains=T,t.getPublicElement=E,t.createTextElementHiddenCopy=B},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))},getAttribute:function(e,t){return e.getAttribute(t)},setAttribute:function(e,t,n){e.setAttribute(t,n)},removeAttribute:function(e,t){e.removeAttribute(t)},setProperty:function(e,t,n){e[t]=n},setText:function(e,t){e&&(e.textContent=t)},setClass:function(e,t,n){if(1===e.nodeType&&t)if(e.classList)n?e.classList.add(t):e.classList.remove(t);else{var i,o="string"==typeof e.className,a=o?e.className:this.getAttribute(e,"class")||"",r=a.split(" "),s=r.indexOf(t);n&&s<0&&(i=a?a+" "+t:t),!n&&s>=0&&(r.splice(s,1),i=r.join(" ")),void 0!==i&&(o?e.className=i:this.setAttribute(e,"class",i))}},setStyle:function(e,t,n){e.style[t]=n||""},_document:"undefined"==typeof document?void 0:document,getDocument:function(){return this._document},getActiveElement:function(){return this._document.activeElement},getBody:function(){return this._document.body},createDocumentFragment:function(){return this._document.createDocumentFragment()},getDocumentElement:function(){return this._document.documentElement},getLocation:function(){return this._document.location},getSelection:function(){return this._document.selection},getReadyState:function(){return this._document.readyState},getHead:function(){return this._document.head},hasDocumentProperty:function(e){return e in this._document},listen:function(e,t,n,i){return e&&"addEventListener"in e?(e.addEventListener(t,n,i),function(){e.removeEventListener(t,n)}):a}};e.exports=o(r)},function(e,t,n){var i=n(2),o=n(55),a=n(0).extend,r=n(3).each,s=n(46).format,l=n(32).humanize,d=n(82);n(82);var c="-",u=a(!0,{},n(345)),h=n(346),p=function(e){var t=h[e];return t?"root"!==t&&t:e.substr(0,e.lastIndexOf(c))},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||(m[a]=l(a)),n+(r||s)})},_messageLoaded:function(e,t){return void 0!==g(this._dictionary,t||d.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?m:a({},m,this.getMessagesByLocales()[d.locale()])},getFormatter:function(e){return this._getFormatterBase(e)||this._getFormatterBase(e,"en")},_getFormatterBase:function(e,t){var n=g(this._dictionary,t||d.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=_},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,d=n(3).each,c=n(10),u=n(18),h=n(19),p=n(130),f=n(52),g=n(158).sessionStorage,m=n(65),_=n(23),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"},w={deviceType:"desktop",platform:"generic",version:[],phone:!1,tablet:!1,android:!1,ios:!1,win:!1,generic:!0,grade:"A",mac:!1},y={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";
|
|
@@ -15,7 +15,7 @@ this._$bottom.removeClass(n))}.bind(this))},_getDragTarget:function(){return thi
|
|
|
15
15
|
}}};c.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=c},function(e,t,n){var i=n(1),o=n(25),a=n(50),r=n(34),s=n(55);n(140),e.exports=s({format:function(e,t){var n=i.isString(t)&&""!==t||i.isPlainObject(t)||i.isFunction(t),o=i.isNumeric(e)||i.isDate(e);return n&&o?i.isFunction(t)?t(e):(i.isString(t)&&(t={type:t}),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"},d=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}},c=function(e,t,n){!n.getMilliseconds()&&n.getSeconds()?n.getSeconds()-t.getSeconds()===1&&(e.millisecond=!0,e.second=!1):!n.getSeconds()&&n.getMinutes()?n.getMinutes()-t.getMinutes()===1&&(e.second=!0,e.minute=!1):!n.getMinutes()&&n.getHours()?n.getHours()-t.getHours()===1&&(e.minute=!0,e.hour=!1):!n.getHours()&&n.getDate()>1?n.getDate()-t.getDate()===1&&(e.hour=!0,e.day=!1):1===n.getDate()&&n.getMonth()?n.getMonth()-t.getMonth()===1&&(e.day=!0,e.month=!1):!n.getMonth()&&n.getFullYear()&&n.getFullYear()-t.getFullYear()===1&&(e.month=!0,e.year=!1)};return n=i.isString(n)?n.toLowerCase():n,r=o.getDatesDifferences(e,t),e!==t&&c(r,e>t?t:e,e>t?e:t),s=o.getDateUnitInterval(r),d(r,s,!0),s=o.getDateUnitInterval(n||"second"),d(r,s,!1),r[l[s]||s]=!0,a=this.getDateFormatByDifferences(r)}})},function(e,t,n){var i,o=n(2),a=n(4),r=n(3).each,s=n(6),l=s.getWindow(),d=n(13),c=n(1).isWindow,u=n(0).extend,h=n(28),p=n(24),f=n(41),g=/left|right/,m=/top|bottom/,_=/fit|flip|none/,v=h.safari,w=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:m.test(e)&&(t.v=e)}),t},y=function(e){return a.pairToObject(e)},x=function(e){var t=a.splitPair(e),n=String(t&&t[0]).toLowerCase(),i=String(t&&t[1]).toLowerCase();return _.test(n)||(n="none"),_.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}},C=function(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return e}},k=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},I=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},D={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=u({},e,{myAlign:C(e.myAlign),atAlign:C(e.atAlign),offset:-e.offset});S(n),n.oversize=k(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},E={h:{location:0,flip:!1,fit:!1,oversize:0},v:{location:0,flip:!1,fit:!1,oversize:0}},A=function(e,t){var n=o(e),a=n.offset(),r=u(!0,{},E,{h:{location:a.left},v:{location:a.top}});if(!t)return r;var s=w(t.my),h=w(t.at),p=o(t.of).length&&t.of||l,g=y(t.offset),m=x(t.collision),_=t.boundary,b=y(t.boundaryOffset),C={mySize:n.outerWidth(),myAlign:s.h,atAlign:h.h,offset:g.h,collision:m.h,boundaryOffset:b.h},A={mySize:n.outerHeight(),myAlign:s.v,atAlign:h.v,offset:g.v,collision:m.v,boundaryOffset:b.v};if(p.preventDefault)C.atLocation=p.pageX,A.atLocation=p.pageY,C.atSize=0,A.atSize=0;else if(p=o(p),c(p[0]))C.atLocation=p.scrollLeft(),A.atLocation=p.scrollTop(),C.atSize=p[0].innerWidth>=p[0].outerWidth?p[0].innerWidth:p.width(),A.atSize=p[0].innerHeight>=p[0].outerHeight||v?p[0].innerHeight:p.height();else if(9===p[0].nodeType)C.atLocation=0,A.atLocation=0,C.atSize=p.width(),A.atSize=p.height();else{var B=p.offset();C.atLocation=B.left,A.atLocation=B.top,C.atSize=p.outerWidth(),A.atSize=p.outerHeight()}S(C),S(A);var O=function(){var e=o(l),t=e.width(),n=e.height(),a=e.scrollLeft(),r=e.scrollTop(),s=d.getDocumentElement(),c=f.touch?s.clientWidth/t:1,u=f.touch?s.clientHeight/n:1;void 0===i&&T();var h=t,p=n;if(_){var g=o(_),m=g.offset();a=m.left,r=m.top,h=g.width(),p=g.height()}return{h:{min:a+C.boundaryOffset,max:a+h/c-C.mySize-C.boundaryOffset},v:{min:r+A.boundaryOffset,max:r+p/u-A.mySize-A.boundaryOffset}}}();C.oversize=k(C,O.h),A.oversize=k(A,O.v),C.collisionSide=I("h",C,O.h),A.collisionSide=I("v",A,O.v),D[C.collision]&&D[C.collision](C,O.h),D[A.collision]&&D[A.collision](A,O.v);var R=function(e){return t.precise?e:Math.round(e)};return u(!0,r,{h:{location:R(C.myLocation),oversize:R(C.oversize),fit:C.fit,flip:C.flip,collisionSide:C.collisionSide},v:{location:R(A.myLocation),oversize:R(A.oversize),fit:A.fit,flip:A.flip,collisionSide:A.collisionSide},precise:t.precise}),r},B=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:A(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},O=function(e){return e=o(e).get(0),c(e)?null:e&&"pageY"in e&&"pageX"in e?{top:e.pageY,left:e.pageX}:o(e).offset()};B.inverseAlign||(B.inverseAlign=C),B.normalizeAlign||(B.normalizeAlign=w),e.exports={calculateScrollbarWidth:T,calculate:A,setup:B,offset:O}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(39),a=n(42),r=i(a),s=n(36),l=n(95),d=i(l),c=n(135),u=i(c),h=d.default.inherit({ctor:function(e){e=Array.isArray(e)?{data:e}:e||{},this.callBase(e);var t=e.data;if(t&&!Array.isArray(t))throw s.errors.Error("E4006");this._array=t||[]},createQuery:function(){return(0,r.default)(this._array,{errorHandler:this._errorHandler})},_byKeyImpl:function(e){var t=u.default.indexByKey(this,this._array,e);return t===-1?(0,o.rejectedPromise)(s.errors.Error("E4009")):(0,o.trivialPromise)(this._array[t])},_insertImpl:function(e){return u.default.insert(this,this._array,e)},_pushImpl:function(e){u.default.applyBatch(this,this._array,e)},_updateImpl:function(e,t){return u.default.update(this,this._array,e,t)},_removeImpl:function(e){return u.default.remove(this,this._array,e)},clear:function(){this.fireEvent("modifying"),this._array=[],this.fireEvent("modified")}},"array");e.exports=h},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(d(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;if(a&&(e=e.filter(a)),n)return e;var r=t.sort,s=t.select,d=t.group,u=t.skip,h=t.take;return d&&(d=c(d),d.keepInitialKeyOrder=!!t.group.keepInitialKeyOrder),(r||d)&&(r=c(r||[]),d&&!d.keepInitialKeyOrder&&(r=o(d,r)),l(r,function(t){e=e[t?"thenBy":"sortBy"](this.selector,this.desc,this.compare)})),s&&(e=e.select(s)),d&&(e=i(e,d)),(h||u)&&(e=e.slice(u||0,h)),e}var r=n(4).grep,s=n(0).extend,l=n(3).each,d=n(147),c=n(39).normalizeSortingInfo;e.exports={multiLevelGroup:i,arrangeSortingInfo:o,queryByOptions:a}},function(e,t,n){var i=n(55);e.exports=i({locale:function(){var e="en";return function(t){return t?void(e=t):e}}()})},function(e,t,n){function i(e,t,n){t.on(e,function(){n.fireEvent(e,arguments)})}var o=n(11).inArray,a=n(3).each,r=n(10),s=n(52),l=r.inherit({ctor:function(){this._cache={}},setView:function(e,t){this._cache[e]=t},getView:function(e){return this._cache[e]},removeView:function(e){var t=this._cache[e];return t&&(delete this._cache[e],this.fireEvent("viewRemoved",[{viewInfo:t}])),t},clear:function(){var e=this;a(this._cache,function(t){e.removeView(t)})},hasView:function(e){return e in this._cache}}).include(s),d=l.inherit({setView:function(e,t){this.callBase(e,t),this.removeView(e)}}),c=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=d,e.exports.ConditionalViewCacheDecorator=c,e.exports.CapacityViewCacheDecorator=h,e.exports.HistoryDependentViewCacheDecorator=p},function(e,t,n){var i=n(32).camelize,o=n(61),a=n(1),r=n(13),s=["","Webkit","Moz","O","Ms"],l={"":"",Webkit:"-webkit-",Moz:"-moz-",O:"-o-",ms:"-ms-"},d=o(function(){return r.createElement("dx").style}),c=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,d=i(l);if(n=t(d,r),void 0===n&&(n=t(l,r)),void 0!==n)break}return n||""},u=function(e){if(e in d())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 d())return i}return t},h=function(e){return c(e,function(e,t){if(e in d())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}},m=function(e,t){g(e,"width",t)},_=function(e,t){g(e,"height",t)};t.styleProp=u,t.stylePropPrefix=h,t.normalizeStyleProp=f,t.setWidth=m,t.setHeight=_},function(e,t,n){var i=n(2),o=n(51),a=n(13),r=n(5),s=n(37),l=n(10),d=n(0).extend,c=n(11).inArray,u=n(3).each,h=n(64),p=n(9),f=n(26),g=n(126),m="dxEventManager",_="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,m),this._pointerDownHandler.bind(this)),r.subscribeGlobal(e,p.addNamespace(f.move,m),this._pointerMoveHandler.bind(this)),r.subscribeGlobal(e,p.addNamespace([f.up,f.cancel].join(" "),m),this._pointerUpHandler.bind(this)),r.subscribeGlobal(e,p.addNamespace(g.name,m),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),_)||[];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=c(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}}),w=new v,y="dxEmitterSubscription",x=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,y)||{},o=s.data(e,_)||{},r=o[n]||new t(e);i[a]=!0,o[n]=r,s.data(e,_,o),s.data(e,y,i)},add:function(e,t){var i=s.data(e,_),o=i[n];o.configure(d({delegateSelector:t.selector},t.data),t.type)},teardown:function(e){var t=s.data(e,y),o=s.data(e,_),r=o[n];delete t[a];var l=!0;u(i,function(e,n){return l=l&&!t[n]}),l&&(w.isActive(e)&&w.resetEmitter(r),r&&r.dispose(),delete o[n])}})})};e.exports=x},,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){function i(e){this.baseColor=e;var t;e&&(t=String(e).toLowerCase().replace(/ /g,""),t=_[t]?"#"+_[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=c(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,d,c;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,d=o,c=a;break;case 1:l=i,d=n,c=a;break;case 2:l=a,d=n,c=o;break;case 3:l=a,d=i,c=n;break;case 4:l=o,d=a,c=n;break;case 5:l=n,d=a,c=i}return[Math.round(2.55*l),Math.round(2.55*d),Math.round(2.55*c)]}function d(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 c(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 c=a-r;o=l>.5?c/(2-s):c/s,i=d(e,t,n,c),i/=6}return{h:w(360*i),s:w(100*o),l:w(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[w(255*i),w(255*o),w(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 m(e,t,n){return t=t||0,n=n||255,!(e%1!==0||e<t||e>n||"number"!=typeof e||isNaN(e))}var _={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]]}}],w=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(w(this.r*(1-t)+n.r*t)),o.g=a(w(this.g*(1-t)+n.g*t)),o.b=a(w(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!!(m(e)&&m(t)&&m(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=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(2),o=n(6),a=o.getNavigator(),r=n(41),s=n(21),l=n(0).extend,d=n(15),c=n(8),u=n(27),h="dx-loadindicator",p="dx-loadindicator-wrapper",f="dx-loadindicator-content",g="dx-loadindicator-icon",m="dx-loadindicator-segment",_="dx-loadindicator-segment-inner",v="dx-loadindicator-image",w=u.inherit({_getDefaultOptions:function(){return l(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 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(h)},_initMarkup:function(){this.callBase(),this._renderWrapper(),this._renderIndicatorContent(),this._renderMarkup()},_renderWrapper:function(){this._$wrapper=i("<div>").addClass(p),this.$element().append(this._$wrapper)},_renderIndicatorContent:function(){this._$content=i("<div>").addClass(f),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(g),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(_)),this._$indicator.append(n)}},_renderMarkupForImage:function(){var e=this.option("indicatorSrc");this._$wrapper.addClass(v),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)}}});c("dxLoadIndicator",w),e.exports=w},function(e,t,n){var i=n(87).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(10),o=n(0).extend,a=n(11).inArray,r=n(3).each,s=n(52),l=n(18),d=n(4),c=n(1),u=n(50),h=n(14),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)},_isValueEmpty:function(e){return!b.required.validate(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!!c.isDefined(e)&&(e!==!1&&(e=String(e),!t.trim&&c.isDefined(t.trim)||(e=e.trim()),""!==e))}}),g=p.inherit({NAME:"numeric",_validate:function(e,t){return!(t.ignoreEmptyValue===!1||!this._isValueEmpty(e))||(t.useCultureSettings&&c.isString(e)?!isNaN(u.parse(e)):c.isNumeric(e))}}),m=p.inherit({NAME:"range",_validate:function(e,t){if(t.ignoreEmptyValue!==!1&&this._isValueEmpty(e))return!0;var n=b.numeric.validate(e,t),i=c.isDefined(e)&&""!==e,o=n?parseFloat(e):i&&e.valueOf(),a=t.min,r=t.max;if(!n&&!c.isDate(e)&&!i)return!1;if(c.isDefined(a))return c.isDefined(r)?o>=a&&o<=r:o>=a;if(c.isDefined(r))return o<=r;throw l.Error("E0101")}}),_=p.inherit({NAME:"stringLength",_validate:function(e,t){return e=c.isDefined(e)?String(e):"",!t.trim&&c.isDefined(t.trim)||(e=e.trim()),!(!t.ignoreEmptyValue||!this._isValueEmpty(e))||b.range.validate(e.length,o({},t))}}),v=p.inherit({NAME:"custom",validate:function(e,t){if(t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;var n=t.validator,i=n&&c.isFunction(n.option)&&n.option("dataGetter"),o=c.isFunction(i)&&i(),a={value:e,validator:n,rule:t};return o&&(a.data=o),t.validationCallback(a)}}),w=p.inherit({NAME:"compare",_validate:function(e,t){if(!t.comparisonTarget)throw l.Error("E0102");if(t.ignoreEmptyValue&&this._isValueEmpty(e))return!0;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}}}),y=p.inherit({NAME:"pattern",_validate:function(e,t){if(t.ignoreEmptyValue!==!1&&this._isValueEmpty(e))return!0;var n=t.pattern;return c.isString(n)&&(n=new RegExp(n)),n.test(e)}}),x=p.inherit({NAME:"email",_validate:function(e,t){return!(t.ignoreEmptyValue===!1||!this._isValueEmpty(e))||b.pattern.validate(e,o({},t,{pattern:/^[\d\w._-]+@[\d\w._-]+\.[\w]+$/i}))}}),b={required:new f,numeric:new g,range:new m,stringLength:new _,custom:new v,compare:new w,pattern:new y,email:new x},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=d.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){c.isDefined(e.message)||(t.defaultFormattedMessage&&c.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=b[a.type];if(!s)throw l.Error("E0100");return c.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();
|
|
16
16
|
},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(113),a=n(85),r=Math.abs,s="dxhold",l=750,d=5,c=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)>d||r(t.y)>d},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}});a({emitter:c,bubble:!0,events:[s]}),e.exports={name:s}},function(e,t,n){var i=n(2),o=n(71),a=o.inherit({_renderCore:function(){return i()}});e.exports=a},function(e,t,n){var i=n(10),o=i.abstract,a=n(52),r=n(3).each,s=n(36),l=n(39),d=n(22).compileGetter,c=n(81),u=c.queryByOptions,h=n(7).Deferred,p=n(4).noop,f={},g=i.inherit({ctor:function(e){var t=this;e=e||{},r(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","onPush","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=d(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(){n.fireEvent("updated",[e,t]),n.fireEvent("modified")}))},_updateImpl:o,push:function(e){this._pushImpl(e),this.fireEvent("push",[e])},_pushImpl:p,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);g.create=function(e,t){if(!(e in f))throw s.errors.Error("E4020",e);return new f[e](t)},g.inherit=function(e){return function(t,n){var i=e.apply(this,[t]);return n&&(f[n]=i),i}}(g.inherit),e.exports=g},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(41),r=n(28),s=n(4),l=n(1),d=n(0).extend,c=n(12).getPublicElement,u=n(6),h=u.getNavigator(),p=n(13),f=n(15),g=n(8),m=n(60),_=n(63),v=n(9),w=n(290),y=n(288),x=n(188),b=n(7).when,C="dxScrollable",k="dxScrollableStrategy",I="dx-scrollable",S="dx-scrollable-disabled",D="dx-scrollable-container",T="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=m.inherit({_getDefaultOptions:function(){return d(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(I),t=this._$container=i("<div>").addClass(D),n=this._$wrapper=i("<div>").addClass(T),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(_.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(w.init,C),t,this._initHandler.bind(this)),o.on(this._$wrapper,v.addNamespace(w.start,C),e.handleStart.bind(e)),o.on(this._$wrapper,v.addNamespace(w.move,C),e.handleMove.bind(e)),o.on(this._$wrapper,v.addNamespace(w.end,C),e.handleEnd.bind(e)),o.on(this._$wrapper,v.addNamespace(w.cancel,C),e.handleCancel.bind(e)),o.on(this._$wrapper,v.addNamespace(w.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(S,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 x(this):new y.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 c(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 b(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("."+I).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,d=e[i?"outerHeight":"outerWidth"](),c=i?this.scrollTop():this.scrollLeft(),u=i?this.clientHeight():this.clientWidth(),h=c-l+o,p=c-l-d+u-a;return h<=0&&p>=0?c:c-(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){_(t(n,i,o,a,r,s)).done(e.resolve)}a=a||[],n=n||[];var d,c,u,h;for(r=r||0,c=r;c<n.length;c++){if(e&&c>r&&c%1e4===0&&new Date-y>=300)return y=new Date,u=new v,setTimeout(l(u,c,!1),0),u;if(d=n[c],!s){if(a.unshift(d),o&&i(a,c)===!1)return;if(d.children&&(h=t(d.children,i,o,a),e&&h))return u=new v,h.done(l(u,c,!0)),u}if(s=!1,!o&&i(a,c)===!1)return;a.shift(),n[c]!==d&&c--}};return t}function o(e){return d.map(["year","quarter","month"],function(t,n){return c({},e,{groupInterval:t,groupIndex:n})})}function a(e,t,n,i){var s=[];return d.each(t||[],function(t,d){if(!t||0!==t.indexOf("__")){for(var c,u=1,h=n.length?n+"."+t:t,p=i[h],f=l.compileGetter(h);!r.isDefined(d)&&e[u];)d=f(e[u]),u++;!p&&r.isDefined(d)&&(p=r.type(d)),c=[{dataField:h,dataType:p,groupName:"date"===p?t:void 0,groupInterval:void 0,displayFolder:n}],"date"===p?c=c.concat(o(c[0])):"object"===p&&(c=a(e,d,h,i)),s.push.apply(s,c)}}),s}var r=n(1),s=n(75),l=n(22),d=n(3),c=n(0).extend,u=n(1).isDefined,h=n(34),p=n(78),f=n(49),g=n(80),m=n(7),_=m.when,v=m.Deferred,w=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 y=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)||""};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:d.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 d.each(e,function(e,n){t[n.dataField]=t[n.dataField]||n.dataType}),t};var x={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||w(e,"format",x[e.groupInterval]);else if("number"===e.dataType){var t=r.isNumeric(e.groupInterval)&&e.groupInterval>0&&e.groupInterval;t&&!e.customizeText&&w(e,"customizeText",function(n){var i=n.value+t,o=p.format(i,e.format);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(c({},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,_(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,o=n(10),a=n(4),r=n(12).contains,s=n(15),l=n(9),d=n(26),c=n(113),u=n(85),h="dxactive",p="dxinactive",f=30,g=400,m=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}}),_=c.inherit({ctor:function(){this.callBase.apply(this,arguments),this._active=new m(0,a.noop),this._inactive=new m(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(),d=r||!o,c=a.ensureDefined(this.activeTimeout,f),u=a.ensureDefined(this.inactiveTimeout,g);this._active=new m(d?c:0,function(){t._fireEvent(h,e,{target:n})}),this._inactive=new m(d?u:0,function(){t._fireEvent(p,e,{target:n}),i=null})},cancel:function(e){this.end(e)},end:function(e){var t=e.type!==d.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)}});_.lock=function(e){var t=i?i.lockInactive():a.noop;e.done(t)},u({emitter:_,events:[h,p]}),t.lock=_.lock,t.active=h,t.inactive=p},function(e,t,n){function i(e,t,n){var i=[],o=function(){return e.getHours()+e.getMinutes()+e.getSeconds()+e.getMilliseconds()<1},a=function(e){return D(e,2)};return i.push(e.getFullYear()),i.push("-"),i.push(a(e.getMonth()+1)),i.push("-"),i.push(a(e.getDate())),t&&o()||(i.push("T"),i.push(a(e.getHours())),i.push(":"),i.push(a(e.getMinutes())),i.push(":"),i.push(a(e.getSeconds())),e.getMilliseconds()&&(i.push("."),i.push(D(e.getMilliseconds(),3))),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]);if(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]));var a=(o[4]||"").slice(0,3);a=D(a,3,!0),t.setMilliseconds(Number(a))}return 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),d=n(0).extend,c=n(1),u=n(3),h=n(3).each,p=n(75),f=n(40),g=c.isDefined,m=c.isPlainObject,_=n(4).grep,v=n(7).Deferred,w=n(36).errors,y=n(39),x=/^(\{{0,1}([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}\}{0,1})$/,b=/^\/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",I=function(e){return"string"===c.type(e)?e.split():e},S=function(e){return/\./.test(e)},D=function(e,t,n){for(e=String(e);e.length<t;)e=n?e+"0":"0"+e;return e},T=function(e){var t=[];for(var n in e)t.push(n+"="+e[n]);return t.join("&")},E=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 w.Error("E4002")}})}t=d({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,c=d({},t.params),u=s?c:o(t.payload),h=!s&&T(c),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}}},A=function e(t,n,i){var o=new v,s=E(t,n,i);return p.sendRequest(s).always(function(n,l){var d,c={deserializeDates:i.deserializeDates,fieldTypes:i.fieldTypes},u=R(n,l,c,s),h=u.error,p=u.data,f=u.nextUrl;h?h.message!==y.XHR_ERROR_UNLOAD&&o.reject(h):i.countOnly?isFinite(u.count)?o.resolve(u.count):o.reject(new w.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)&&(d={totalCount:u.count}),o.resolve(p,d))}),o.promise()},B=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},O=function(e,t,n){if("nocontent"===t)return null;var i="Unknown error",o=e,a=200,r={requestOptions:n};if("success"!==t){a=e.status,i=y.errorMessageFromXhr(e,t);try{o=JSON.parse(e.responseText)}catch(e){}}var s=o&&(o.then&&o||o.error||o["odata.error"]||o["@odata.error"]);if(s){i=B(s)||i,r.errorDetails=s,200===a&&(a=500);var l=Number(s.code);isFinite(l)&&l>=400&&(a=l)}return a>=400||0===a?(r.httpStatus=a,d(Error(i),r)):null},R=function(e,t,n,i){var o,a=O(e,t,i);return a?{error:a}:m(e)?(o="d"in e&&(Array.isArray(e.d)||c.isObject(e.d))?M(e,t):P(e,t),V(o,n),o):{data:e}},M=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")}},P=function(e){var t=e;return g(t.value)&&(t=t.value),{data:t,nextUrl:e["@odata.nextLink"],count:parseInt(e["@odata.count"],10)}},F=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&&x.test(a)&&(t[i]=new f(a)),n.deserializeDates!==!1)if(a.match(b)){var d=new Date(Number(RegExp.$1)+60*RegExp.$2*1e3);t[i]=new Date(d.valueOf()+60*d.getTimezoneOffset()*1e3)}else C.test(a)&&(t[i]=new Date(o(t[i]).valueOf()))}})},H=function(e){return"datetime'"+i(e,!0,!0)+"'"},$=function(e){return"'"+e.replace(/'/g,"''")+"'"},z=function(e){return e instanceof F?e.valueOf():e.replace(/\./g,"/")},L=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?H(e):e instanceof f?"guid'"+e+"'":e instanceof F?e.valueOf():"string"==typeof e?$(e):String(e)},W=function(e,t){switch(t){case 2:case 3:return N(e);case 4:return L(e);default:throw w.Error("E4002")}},q=function(e,t){if(m(e)){var n=[];return h(e,function(e,i){n.push(z(e)+"="+W(i,t))}),n.join()}return W(e,t)},G={String:function(e){return e+""},Int32:function(e){return Math.floor(e)},Int64:function(e){return e instanceof F?e:new F(e+"L")},Guid:function(e){return e instanceof f?e:new f(e)},Boolean:function(e){return!!e},Single:function(e){return e instanceof F?e:new F(e+"f")},Decimal:function(e){return e instanceof F?e:new F(e+"m")}},K=function(e,t){if(null===t)return null;var n=G[e];if(!n)throw w.Error("E4014",e);return n(t)},j=function(e,t){if(t)return e<4?z(t.join()):_(t,S,!0).join()},U=function(e,t,n){var i=function(){var e={};return t&&u.each(I(t),function(){e[z(this)]=1}),n&&u.each(I(n),function(){var t=this.split(".");t.length<2||(t.pop(),e[z(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),m(n)&&o.push(t+e(n))}),(i.length||o.length)&&(n+="(",i.length&&(n+="$select="+u.map(i,z).join()),o.length&&(i.length&&(n+=";"),n+="$expand="+u.map(o,z).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(I(t),o,function(e,t,n){return e[t]=e[t]||{},!!n.length&&e[t]}),n&&i(_(I(n),S),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=A,t.serializePropName=z,t.serializeValue=W,t.serializeKey=q,t.keyConverters=G,t.convertPrimitiveValue=K,t.generateExpand=U,t.generateSelect=j,t.EdmLiteral=F},function(e,t,n){e.exports=n(482)},function(e,t,n){var i=n(7),o=n(6),a=i.Deferred,r=i.when,s=o.hasWindow()?o.getWindow().Promise:Promise;s||(s=function(e){var t=new a;return e(t.resolve.bind(this),t.reject.bind(this)),t.promise()},s.resolve=function(e){return(new a).resolve(e).promise()},s.reject=function(e){return(new a).reject(e).promise()},s.all=function(e){return r.apply(this,e).then(function(){return[].slice.call(arguments)})}),e.exports=s},function(e,t,n){var i=n(37),o=n(5),a=n(175),r=n(1).isDefined,s=n(134),l="dxComponents",d="dxPrivateComponent",c=new a,u=0,h=t.name=function(e,t){if(r(t))return void c.set(e,t);if(!c.has(e)){var n=d+u++;return c.set(e,n),n}return c.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(0).extend,o=n(87),a=n(46),r=n(129),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 c([].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),d(t,l(t,e))},l=function(e,t){return t=[n.ERROR_MESSAGES[e]].concat(t),a.format.apply(this,t).replace(/\.*\s*?$/,"")},d=function(e,t){return a.format.apply(this,["{0} - {1}. See:\n{2}",e,t,u(e)])},c=function(e){var t,n,o,a;return t=e[0],e=e.slice(1),n=l(t,e),a=u(t),o=d(t,n),i(new Error(o),{__id:t,__details:n,url:a})},u=function(e){return s+e};return n}},function(e,t,n){var i=n(23),o=function(e){var t=e||i().rtlEnabled;return t?"right":"left"};t.getDefaultAlignment=o},function(e,t,n){var i=n(486),o=n(8);o("dxList",i),e.exports=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(70),r=n(1).isDate,s=n(3).each,l=n(34),d=function(){return["year","day","month","day"]},c=6e4,u=60*c*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:c,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:d()},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:d().concat(["hours","minutes","seconds","milliseconds"])},"datetime-local":{getStandardPattern:function(){return"yyyy-MM-ddTHH:mm:ss"},components:d().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(2),o=n(5),a=n(4),r=n(1),s=r.isDefined,l=r.isPromise,d=n(0).extend,c=n(11).inArray,u=n(3).each,h=n(7),p=n(12).getPublicElement,f=h.Deferred,g=n(18),m=n(13),_=n(73),v=n(14),w=n(8),y=n(9),x=n(217),b=n(21),C=n(17),k=".dx-state-disabled",I="dx-selectbox",S="dx-selectbox-popup",D="dx-selectbox-container",T="dx-selectbox-popup-wrapper",E=x.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 d({},t,{tab:function(){this.option("opened")&&"instantly"===this.option("applyValueMode")&&this._cleanInputSelection(),this._wasSearch()&&this._clearFilter(),
|
|
17
17
|
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){var n=this.option("opened"),i=this._input().val().trim(),o=i&&this._list&&!this._list.option("focusedElement");if(!i&&this.option("value")&&this.option("allowClearing"))this.option({selectedItem:null,value:null}),this.close();else{if(this.option("acceptCustomValue"))return e.preventDefault(),o&&(this._valueChangeEventHandler(),n&&this._toggleOpenState()),n;if(t.enter&&t.enter.apply(this,arguments))return n}},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 d(this.callBase(),{placeholder:v.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=b.current();return this.callBase().concat([{device:function(){return b.isWin8(e)},options:{_isAdaptablePopupPosition:!0,popupPosition:{at:"left top",offset:{h:0,v:0}}}},{device:function(){return b.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(I),this._renderTooltip(),this.option("useInkRipple")&&this._renderInkRipple(),this.callBase(),this._$container.addClass(D)},_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(S)},_popupWrapperClass:function(){return this.callBase()+" "+T},_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=c(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()},_setNextItem:function(e){var t=this._calcNextItem(e),n=this._valueGetter(t);this._setValue(n)},_setNextValue:function(e){var t=this._dataSource.isLoaded()?(new f).resolve():this._dataSource.load();t.done(function(){var t=this._getSelectedIndex(),n=this._dataSource.pageSize(),i=this._dataSource.isLastPage(),o=t===this._items().length-1;n&&!i&&o&&e>0?(this._popup||this._createPopup(),this._list._loadNextPage().done(this._setNextItem.bind(this,e))):this._setNextItem(e)}.bind(this))},_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=d(this.callBase(),{pageLoadMode:"scrollBottom",onSelectionChanged:this._getSelectionChangeHandler(),selectedItem:this.option("selectedItem"),onFocusedItemChanged:this._listFocusedItemChangeHandler.bind(this)});return this.option("showSelectionControls")&&d(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){this._wasSearch(!1);var t=this.option("showDataBeforeSearch")||0===this.option("minSearchLength");if(t&&this._dataSource){if(this._searchTimer)return;var n=this._getActualSearchValue();n&&this._wasSearch(!0),this._filterDataSource(n||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")},_isValueEqualInputText:function(){var e=this.option("selectedItem"),t=this._displayGetter(e),n=t?String(t):"",i=this._searchValue();return n===i},_popupHidingHandler:function(){this._isValueEqualInputText()&&this._cancelEditing(),this.callBase()},_restoreInputText:function(){this.option("readOnly")||this._loadItemDeferred&&this._loadItemDeferred.always(function(){var e=this.option("selectedItem");return this.option("acceptCustomValue")?void this._updateField(e):this.option("searchEnabled")&&!this._searchValue()&&this.option("allowClearing")?void this._clearTextValue():void(this._isValueEqualInputText()||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._clearSearchTimer(),this._restoreInputText()},_clearTextValue:function(){this.option("value",null)},_shouldOpenPopup:function(){return this._needPassDataSourceToList()},_isFocused:function(){var e=m.getActiveElement();return this.callBase()&&i(e).closest(this._input()).length>0},_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=y.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()}});w("dxSelectBox",E),e.exports=E},function(e,t,n){var i=n(6),o=i.hasWindow()?i.getWindow():{},a=n(61),r=1e3/60,s=function(e){return setTimeout(e,r)},l=function(e){clearTimeout(e)},d=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 d(),s.apply(o,arguments)},t.cancelAnimationFrame=function(){d(),l.apply(o,arguments)}},function(e,t,n){var i=n(71),o=n(12),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=n(2),o=n(10),a=n(3).each,r=n(103),s="dx-state-invisible",l="dx-state-disabled",d="dx-item-content-placeholder",c=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(d);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=c(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(176);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),d=a.inherit({ctor:function(e){this._$element=i(e),this._cancelCallback=r(),this._acceptCallback=r()},getElement:function(){return this._$element},validate:function(e){return!l.isDxMouseWheelEvent(e)},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=d},function(e,t,n){var i=n(56);if(i){var o=n(18),a=n(58).compare;if(a(i.version,[2,3])<0)throw o.Error("E0013");n(348),n(353),n(354),n(355),n(356),n(357),n(358)}},function(e,t,n){var i=n(71);e.exports=i.inherit({ctor:function(e){this.name=e}})},function(e,t,n){var i=n(56),o=n(3).each,a=n(241),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)},d=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},c=function(e,t){var n=d(e,t,"showText"),i=!!e.option("icon"),o=d(e,t,"title","");return n||!i?o:""},u=function(e,t){var n=d(e,t,"showIcon"),i=!!e.option("title"),o=d(e,t,"icon","");return n||!i?o:""};t.utils={mergeCommands:l,commandToContainer:{resolveIconValue:u,resolveTextValue:c,resolvePropertyValue:d}},t.templateProvider={createTemplate:function(e){return new a(e)},applyTemplate:function(e,t){i.applyBindings(t,e)}}},function(e,t,n){n(44);var i=n(29),o=n(10),a=n(19),r=n(4),s=n(3),l=n(1).isPlainObject,d=n(0).extend,c=n(145),u=n(52),h=n(67),p=n(236).processCallback,f=n(139),g=n(7).when,m={current:"current",blank:"blank",back:"back"},_="__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 c.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:m.blank}},_updateHistory:function(e,t){this._previousItem=this._currentItem,this._currentItem={uri:e,key:e},this._navigationDevice.setUri(e,t.target===m.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||{},c=s.uri,u=s.key,h=l.key;return void 0===e&&(e=o._navigationDevice.getUri()),/^_back$/.test(e)?void o.back():(t=d(o._getDefaultOptions(),t||{}),a&&(t.target=m.current),n={currentUri:c,uri:e,cancel:!1,navigateWhen:[],options:t},o.fireEvent("navigating",[n]),e=n.uri,void(n.cancel||c===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:c,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),w=v.inherit({ctor:function(e){e=e||{},this.callBase(e),this._createNavigationStacks(e),p.add(this._deviceBackInitiated.bind(this)),this._stateStorageKey=e.stateStorageKey||_},init:function(){return this._navigationDevice.init()},_createNavigationDevice:function(e){e.navigationDevice||(e.navigationDevice=new c.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 y},_deviceBackInitiated:function(){f()?this._syncUriWithCurrentNavigationItem():this.back({isHardwareButton:!0})},_getDefaultOptions:function(){return{target:m.blank}},_createNavigationStack:function(){var e=new y;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 m.blank:this.currentStack.navigate(e);break;case m.current:this.currentStack.navigate(e,!0);break;case m.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 d=this.currentStack.currentIndex-s;d<0?t.direction=this.currentStack.currentItem().backDirection||"backward":d>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=d({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:m.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()}}),y=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=w,t.NavigationStack=y},function(e,t,n){var i=n(49).DataSource,o=n(0).extend,a=n(49).normalizeDataSourceOptions,r="_dataSourceOptions",s="_dataSourceChangedHandler",l="_dataSourceLoadErrorHandler",d="_dataSourceLoadingChangedHandler",c="_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:c in this&&this[c]()}),this._dataSource=new t(o(!0,{},e,n))),this._addDataSourceHandlers())},_addDataSourceHandlers:function(){s in this&&this._addDataSourceChangeHandler(),l in this&&this._addDataSourceLoadErrorHandler(),d 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(t){this[s](e.items(),t)}.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[d].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(69),o=n(82);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(131),o=n(5),a=n(60),r=n(3).each,s=n(9),l=n(0).extend,d=n(103),c="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(),"."+c)},_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)}}});d.name(p,c),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(23),l=n(13),d=n(0).extend,c=n(10),u=n(77),h=n(18),p=n(22),f=n(4),g=n(1),m=n(7),_=m.Deferred,v=m.when,w=n(19),y=n(52),x=n(103),b=n(15),C=g.isFunction,k=f.noop,I={},S={},D=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{
|
|
18
|
-
var i=new _;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];g.isDefined(t)&&(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}(),T=c.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);d(!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=b.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&&d(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=x.name(this.constructor),e=e||{},e.eventsStrategy&&this.setEventsStrategy(e.eventsStrategy),this._options={},this._updateLockCount=0,this._optionChangedCallbacks=e._optionChangedCallbacks||w(),this._disposingCallbacks=e._disposingCallbacks||w(),this.postponedOperations=new D,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,[d(i._defaultActionArgs(),s)]),i._optionChangedAction(d({},s)),i._disposed||this._cancelOptionChange===s.name||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,d(t,i._defaultActionConfig())),n.execute.call(n,d(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,d=l(a,n,t)||n;return d.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)},_setOptionSilent:function(e,t){this._cancelOptionChange=e,this.option(e,t),this._cancelOptionChange=!1},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=I[t];return i||(i=I[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){S[t]||(S[t]=p.compileSetter(t));var i=t.split(/[.[]/);S[t](e._options,n,{functionsAsIs:!0,merge:!e._getOptionsByReference()[t],unwrapObservables:i.length>1&&!!e._getOptionsByReference()[i[0]]})},d=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)d(o,r,t[r])}finally{o.endUpdate()}}}(),_getOptionValue:function(e,t){var n=this.option(e);return C(n)?n.bind(t)():n}}).include(y);e.exports=T,e.exports.PostponedOperations=D},function(e,t,n){var i=n(2),o=n(10),a=n(0).extend,r=n(4),s=n(1),l=n(3),d=n(33),c=n(142),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",m=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=c.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=d.createAnimation(e,t):s.isFunction(t)&&(i=t(e,n)),i},_startAnimations:function(){for(var e=this._animations,t=0;t<e.length;t++)e[t].start()},_stopAnimations:function(e){for(var t=this._animations,n=0;n<t.length;n++)t[n].stop(e)},_clearAnimations:function(){for(var e=this._animations,t=0;t<e.length;t++)e[t].element.removeClass(g);this._animations.length=0},reset:function(){this._accumulatedDelays.enter=0,this._accumulatedDelays.leave=0,this._clearAnimations(),this._completeDeferred=new p,this._completePromise=this._completeDeferred.promise()},enter:function(e,t,n){var i=this._createAnimations(e,t,n,"enter");this._animations.push.apply(this._animations,i)},leave:function(e,t,n){var i=this._createAnimations(e,t,n,"leave");this._animations.push.apply(this._animations,i)},start:function(){var e,t=this;if(this._animations.length){var n=l.map(this._animations,function(e){var t=new p;return e.deferred.always(function(){t.resolve()}),t.promise()});e=h.apply(i,n).always(function(){t._completeDeferred.resolve(),t.reset()}),r.executeAsync(function(){t._startAnimations()})}else t.reset(),e=(new p).resolve().promise();return e},stop:function(e){this._stopAnimations(e)}});t.TransitionExecutor=m},function(e,t,n){var i=n(2),o=n(5),a=n(13),r=n(61),s=n(64),l=n(9),d="dxmousewheel",c="dxWheel",u=r(function(){return a.hasDocumentProperty("onwheel")?"wheel":"mousewheel"}),h={setup:function(e){var t=i(e);o.on(t,l.addNamespace(u(),c),h._wheelHandler.bind(h))},teardown:function(e){o.off(e,"."+c)},_wheelHandler:function(e){var t=this._getWheelDelta(e.originalEvent);l.fireEvent({type:d,originalEvent:e,delta:t,pointerType:"mouse"}),e.stopPropagation()},_getWheelDelta:function(e){return e.wheelDelta?e.wheelDelta:30*-e.deltaY}};s(d,h),t.name=d},function(e,t,n){e.exports=n(511)},function(e,t,n){var i=n(6),o=i.getWindow(),a=o.DevExpress=o.DevExpress||{},r=a.errors=n(18);if(a._DEVEXTREME_BUNDLE_INITIALIZED)throw r.Error("E0024");a._DEVEXTREME_BUNDLE_INITIALIZED=!0,a.clientExporter=n(192),a.VERSION=n(129),a.Class=n(10),a.DOMComponent=n(60),a.registerComponent=n(8),a.devices=n(15),a.Color=n(88);var s=n(109);a.EventsMixin=n(52),a.utils={},a.utils.requestAnimationFrame=s.requestAnimationFrame,a.utils.cancelAnimationFrame=s.cancelAnimationFrame,a.utils.initMobileViewport=n(235).initMobileViewport,a.utils.extendFromObject=n(0).extendFromObject,a.utils.createComponents=n(12).createComponents,a.utils.triggerShownEvent=n(12).triggerShownEvent,a.utils.triggerHidingEvent=n(12).triggerHidingEvent,a.utils.resetActiveElement=n(12).resetActiveElement,a.utils.findBestMatches=n(4).findBestMatches,a.createQueue=n(177).create,a.utils.dom=n(12),a.utils.common=n(4),a.utils.date=n(25),a.utils.browser=n(28),a.utils.inflector=n(32),a.utils.iterator=n(3),a.utils.resizeCallbacks=n(130),a.utils.console=n(87),a.utils.string=n(46),a.utils.support=n(41),a.processHardwareBackButton=n(236),a.viewPort=n(65).value,a.hideTopOverlay=n(139),a.formatHelper=n(78),a.config=n(23),a.animationPresets=n(142).presets,a.fx=n(33),a.TransitionExecutor=n(125).TransitionExecutor,a.AnimationPresetCollection=n(142).PresetCollection,a.events=n(341),a.events.click=n(17),a.events.utils=n(9),a.events.GestureEmitter=n(149),a.localization=n(344),e.exports=a},function(e,t,n){e.exports="18.2.16"},function(e,t,n){var i=n(6),o=n(13),a=n(19),r=n(51),s=n(61),l=function(){var e,t=a(),n=t.add,l=t.remove;if(!i.hasWindow())return t;var d,c=function(){var e=o.getDocumentElement();return{width:e.clientWidth,height:e.clientHeight}},u=function(){var n=c();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=c()});return t.add=function(){var e=n.apply(t,arguments);return h(),r.add(function(){!d&&t.has()&&(d=o.listen(i.getWindow(),"resize",u))}),e},t.remove=function(){var e=l.apply(t,arguments);return!t.has()&&d&&(d(),d=void 0),e},t}();e.exports=l},function(e,t,n){var i=n(9),o=n(149),a=n(85),r="dxswipestart",s="dxswipe",l="dxswipeend",d={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}},c={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:d,vertical:c},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(2),o=n(5),a=n(4).noop,r=n(10),s=n(131),l=n(9),d="dxListEditDecorator",c=l.addNamespace(s.start,d),u=l.addNamespace(s.swipe,d),h=l.addNamespace(s.end,d),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,c,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(15),r=n(0).extend,s=n(73),l=n(47),d=n(8),c=n(9),u=n(21),h=n(17),p="dx-checkbox",f="dx-checkbox-icon",g="dx-checkbox-checked",m="dx-checkbox-container",_="dx-checkbox-text",v="dx-checkbox-has-text",w="dx-checkbox-indeterminate",y=100,x=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}}])},_canValueBeChangedByClick:function(){return!0},_feedbackHideTimeout:y,_initMarkup:function(){this._renderSubmitElement(),this._$container=i("<div>").addClass(m),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(_)),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=c.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(w,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()}});d("dxCheckBox",x),e.exports=x},function(e,t,n){var i=n(2),o=n(37).beforeCleanData,a=n(5),r=n(64),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){function i(e){return e&&e.__esModule?e:{"default":e}}function o(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}function a(e,t,n,i){var o,r;if(i){for(var s=0;s<t.length;s++)if(o=t[s].items||t[s].collapsedItems||[],r=a(e,o||[],n,i-1))return r}else if(f(e,t,n)>=0)return t}function r(e,t,n,i){return i?a(e,t,n,i)||[]:t}function s(e,t){if(e.key()&&!t._hasKeyMap){for(var n={},i=0,o=t.length;i<o;i++)n[JSON.stringify(e.keyOf(t[i]))]=!0;t._hasKeyMap=n}}function l(e,t){return!e._hasKeyMap||e._hasKeyMap[JSON.stringify(t)]}function d(e,t){e._hasKeyMap&&(e._hasKeyMap[JSON.stringify(t)]=!0)}function c(e,t,n,i,o){n.forEach(function(n){var a="insert"===n.type?t:r(e,t,n.key,i);switch(s(e,a),n.type){case"update":u(e,a,n.key,n.data,!0);break;case"insert":h(e,a,n.data,o&&(0,m.isDefined)(n.index)?n.index:-1,!0);break;case"remove":p(e,a,n.key,!0)}})}function u(e,t,n,i,a){var r,s=!0,l=e.key();if(l){if(o(i,l)&&!(0,I.keysEqual)(l,n,e.keyOf(i)))return!a&&(0,I.rejectedPromise)(b.errors.Error("E4017"));var d=f(e,t,n);if(d<0)return!a&&(0,I.rejectedPromise)(b.errors.Error("E4009"));r=t[d]}else r=n;if(k.default.deepExtendArraySafe(r,i,s),!a)return(0,v.default)().useLegacyStoreResult?(0,I.trivialPromise)(n,i):(0,I.trivialPromise)(r,n)}function h(e,t,n,i,o){var a,r,s=e.key();if(r=(0,m.isPlainObject)(n)?(0,x.extend)({},n):n,s){if(a=e.keyOf(r),void 0===a||"object"===("undefined"==typeof a?"undefined":g(a))&&(0,m.isEmptyObject)(a)){if(Array.isArray(s))throw b.errors.Error("E4007");a=r[s]=String(new y.default)}else if(void 0!==t[f(e,t,a)])return!o&&(0,I.rejectedPromise)(b.errors.Error("E4008"))}else a=r;if(i>=0?t.splice(i,0,r):t.push(r),d(t,a),!o)return(0,I.trivialPromise)((0,v.default)().useLegacyStoreResult?n:r,a)}function p(e,t,n,i){var o=f(e,t,n);if(o>-1&&t.splice(o,1),!i)return(0,I.trivialPromise)(n)}function f(e,t,n){var i=e.key();if(!l(t,n))return-1;for(var o=0,a=t.length;o<a;o++)if((0,I.keysEqual)(i,e.keyOf(t[o]),n))return o;return-1}var g="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},m=n(1),_=n(23),v=i(_),w=n(40),y=i(w),x=n(0),b=n(36),C=n(54),k=i(C),I=n(39);e.exports.applyBatch=c,e.exports.update=u,e.exports.insert=h,e.exports.remove=p,e.exports.indexByKey=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},o=n(2),a=n(6),r=a.getWindow(),s=n(13),l=n(5),d=n(8),c=n(4),u=n(0).extend,h=n(24),p=n(79),f=n(1),g=n(31),m=n(9),_=n(57),v="dx-popover",w="dx-popover-wrapper",y="dx-popover-arrow",x="dx-popover-without-title",b={left:"right",top:"bottom",right:"left",bottom:"top",center:"center"},C={left:-1,top:-1,center:0,right:1,bottom:1},k={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"},S=function(e,t){var n=e.option(t);return D(n)},D=function(e){return f.isObject(e)?e.name:e},T=function(e,t){var n=e.option(t);return f.isObject(n)&&n.delay},E=function(e,t){var n,i,a,r,d=e.option("target"),c=S(e,t+"Event");c&&!e.option("disabled")&&(r=m.addNamespace(c,e.NAME),i=e._createAction(function(){n=T(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)})},d.jquery||d.nodeType||f.isWindow(d)?(e["_"+t+"EventHandler"]=void 0,l.on(d,r,a)):(e["_"+t+"EventHandler"]=a,l.on(s.getDocument(),r,d,a)))},A=function(e,t,n,i){var a=i||S(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))},B=_.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(v),this._wrapper().addClass(w)},_render:function(){this.callBase.apply(this,arguments),this._detachEvents(this.option("target")),this._attachEvents()},_detachEvents:function(e){A(this,e,"show"),A(this,e,"hide")},_attachEvents:function(){E(this,"show"),E(this,"hide")},_renderArrow:function(){this._$arrow=o("<div>").addClass(y).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(x,!this.option("showTitle")),this.callBase()},_renderPosition:function(){this.callBase(),this._renderOverlayPosition()},_renderOverlayBoundaryOffset:c.noop,_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);var i=this._isHorizontalSide()||this._isVerticalSide();i&&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=c.pairToObject(this._position.offset||""),t=e.h,n=e.v,i=this._isVerticalSide(),o=this._isHorizontalSide();if(i||o){var a=this._isPopoverInside(),r=(a?-1:1)*C[this._positionSide],s=i?this._$arrow.height():this._$arrow.width(),l=this._getContentBorderWidth(this._positionSide),d=r*(s-l);i?n+=d:t+=d}return 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()?b[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(b[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](),d=s[n],c=this._$content[i](),u=r[n],h=a.get(0).preventDefault?0:a[i](),f=Math.max(d,u),m=Math.min(d+c,u+h);t="start"===this.option("arrowPosition")?f-d:"end"===this.option("arrowPosition")?m-d-l:(f+m)/2-d-l/2;var _=this._getContentBorderWidth(e),v=g.fitIntoRange(t-_+this.option("arrowOffset"),_,c-l-2*_);this._$arrow.css(n,v)},_isPopoverInside:function(){var e=this._transformStringPosition(this.option("position"),k),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"),k));e.of||(e.of=this.option("target")),e.collision||(e.collision="flip"),e.boundaryOffset||(e.boundaryOffset=this.option("boundaryOffset")),this._positionSide=this._getDisplaySide(e),this._position=e},_getDisplaySide:function(e){var t=p.setup.normalizeAlign(e.my),n=p.setup.normalizeAlign(e.at),i=C[t.h]===C[n.h]&&C[t.v]===C[n.v]?-1:1,o=Math.abs(C[t.h]-i*C[n.h]),a=Math.abs(C[t.v]-i*C[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(),A(this,this.option("target"),t,n),E(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()}});d("dxPopover",B),e.exports=B},,,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(50);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(176);
|
|
18
|
+
var i=new _;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];g.isDefined(t)&&(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}(),T=c.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);d(!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=b.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&&d(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=x.name(this.constructor),e=e||{},e.eventsStrategy&&this.setEventsStrategy(e.eventsStrategy),this._options={},this._updateLockCount=0,this._optionChangedCallbacks=e._optionChangedCallbacks||w(),this._disposingCallbacks=e._disposingCallbacks||w(),this.postponedOperations=new D,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,[d(i._defaultActionArgs(),s)]),i._optionChangedAction(d({},s)),i._disposed||this._cancelOptionChange===s.name||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,d(t,i._defaultActionConfig())),n.execute.call(n,d(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,d=l(a,n,t)||n;return d.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)},_setOptionSilent:function(e,t){this._cancelOptionChange=e,this.option(e,t),this._cancelOptionChange=!1},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=I[t];return i||(i=I[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){S[t]||(S[t]=p.compileSetter(t));var i=t.split(/[.[]/);S[t](e._options,n,{functionsAsIs:!0,merge:!e._getOptionsByReference()[t],unwrapObservables:i.length>1&&!!e._getOptionsByReference()[i[0]]})},d=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)d(o,r,t[r])}finally{o.endUpdate()}}}(),_getOptionValue:function(e,t){var n=this.option(e);return C(n)?n.bind(t)():n}}).include(y);e.exports=T,e.exports.PostponedOperations=D},function(e,t,n){var i=n(2),o=n(10),a=n(0).extend,r=n(4),s=n(1),l=n(3),d=n(33),c=n(142),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",m=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=c.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=d.createAnimation(e,t):s.isFunction(t)&&(i=t(e,n)),i},_startAnimations:function(){for(var e=this._animations,t=0;t<e.length;t++)e[t].start()},_stopAnimations:function(e){for(var t=this._animations,n=0;n<t.length;n++)t[n].stop(e)},_clearAnimations:function(){for(var e=this._animations,t=0;t<e.length;t++)e[t].element.removeClass(g);this._animations.length=0},reset:function(){this._accumulatedDelays.enter=0,this._accumulatedDelays.leave=0,this._clearAnimations(),this._completeDeferred=new p,this._completePromise=this._completeDeferred.promise()},enter:function(e,t,n){var i=this._createAnimations(e,t,n,"enter");this._animations.push.apply(this._animations,i)},leave:function(e,t,n){var i=this._createAnimations(e,t,n,"leave");this._animations.push.apply(this._animations,i)},start:function(){var e,t=this;if(this._animations.length){var n=l.map(this._animations,function(e){var t=new p;return e.deferred.always(function(){t.resolve()}),t.promise()});e=h.apply(i,n).always(function(){t._completeDeferred.resolve(),t.reset()}),r.executeAsync(function(){t._startAnimations()})}else t.reset(),e=(new p).resolve().promise();return e},stop:function(e){this._stopAnimations(e)}});t.TransitionExecutor=m},function(e,t,n){var i=n(2),o=n(5),a=n(13),r=n(61),s=n(64),l=n(9),d="dxmousewheel",c="dxWheel",u=r(function(){return a.hasDocumentProperty("onwheel")?"wheel":"mousewheel"}),h={setup:function(e){var t=i(e);o.on(t,l.addNamespace(u(),c),h._wheelHandler.bind(h))},teardown:function(e){o.off(e,"."+c)},_wheelHandler:function(e){var t=this._getWheelDelta(e.originalEvent);l.fireEvent({type:d,originalEvent:e,delta:t,pointerType:"mouse"}),e.stopPropagation()},_getWheelDelta:function(e){return e.wheelDelta?e.wheelDelta:30*-e.deltaY}};s(d,h),t.name=d},function(e,t,n){e.exports=n(511)},function(e,t,n){var i=n(6),o=i.getWindow(),a=o.DevExpress=o.DevExpress||{},r=a.errors=n(18);if(a._DEVEXTREME_BUNDLE_INITIALIZED)throw r.Error("E0024");a._DEVEXTREME_BUNDLE_INITIALIZED=!0,a.clientExporter=n(192),a.VERSION=n(129),a.Class=n(10),a.DOMComponent=n(60),a.registerComponent=n(8),a.devices=n(15),a.Color=n(88);var s=n(109);a.EventsMixin=n(52),a.utils={},a.utils.requestAnimationFrame=s.requestAnimationFrame,a.utils.cancelAnimationFrame=s.cancelAnimationFrame,a.utils.initMobileViewport=n(235).initMobileViewport,a.utils.extendFromObject=n(0).extendFromObject,a.utils.createComponents=n(12).createComponents,a.utils.triggerShownEvent=n(12).triggerShownEvent,a.utils.triggerHidingEvent=n(12).triggerHidingEvent,a.utils.resetActiveElement=n(12).resetActiveElement,a.utils.findBestMatches=n(4).findBestMatches,a.createQueue=n(177).create,a.utils.dom=n(12),a.utils.common=n(4),a.utils.date=n(25),a.utils.browser=n(28),a.utils.inflector=n(32),a.utils.iterator=n(3),a.utils.resizeCallbacks=n(130),a.utils.console=n(87),a.utils.string=n(46),a.utils.support=n(41),a.processHardwareBackButton=n(236),a.viewPort=n(65).value,a.hideTopOverlay=n(139),a.formatHelper=n(78),a.config=n(23),a.animationPresets=n(142).presets,a.fx=n(33),a.TransitionExecutor=n(125).TransitionExecutor,a.AnimationPresetCollection=n(142).PresetCollection,a.events=n(341),a.events.click=n(17),a.events.utils=n(9),a.events.GestureEmitter=n(149),a.localization=n(344),e.exports=a},function(e,t,n){e.exports="18.2.17"},function(e,t,n){var i=n(6),o=n(13),a=n(19),r=n(51),s=n(61),l=function(){var e,t=a(),n=t.add,l=t.remove;if(!i.hasWindow())return t;var d,c=function(){var e=o.getDocumentElement();return{width:e.clientWidth,height:e.clientHeight}},u=function(){var n=c();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=c()});return t.add=function(){var e=n.apply(t,arguments);return h(),r.add(function(){!d&&t.has()&&(d=o.listen(i.getWindow(),"resize",u))}),e},t.remove=function(){var e=l.apply(t,arguments);return!t.has()&&d&&(d(),d=void 0),e},t}();e.exports=l},function(e,t,n){var i=n(9),o=n(149),a=n(85),r="dxswipestart",s="dxswipe",l="dxswipeend",d={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}},c={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:d,vertical:c},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(2),o=n(5),a=n(4).noop,r=n(10),s=n(131),l=n(9),d="dxListEditDecorator",c=l.addNamespace(s.start,d),u=l.addNamespace(s.swipe,d),h=l.addNamespace(s.end,d),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,c,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(15),r=n(0).extend,s=n(73),l=n(47),d=n(8),c=n(9),u=n(21),h=n(17),p="dx-checkbox",f="dx-checkbox-icon",g="dx-checkbox-checked",m="dx-checkbox-container",_="dx-checkbox-text",v="dx-checkbox-has-text",w="dx-checkbox-indeterminate",y=100,x=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}}])},_canValueBeChangedByClick:function(){return!0},_feedbackHideTimeout:y,_initMarkup:function(){this._renderSubmitElement(),this._$container=i("<div>").addClass(m),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(_)),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=c.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(w,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()}});d("dxCheckBox",x),e.exports=x},function(e,t,n){var i=n(2),o=n(37).beforeCleanData,a=n(5),r=n(64),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){function i(e){return e&&e.__esModule?e:{"default":e}}function o(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}function a(e,t,n,i){var o,r;if(i){for(var s=0;s<t.length;s++)if(o=t[s].items||t[s].collapsedItems||[],r=a(e,o||[],n,i-1))return r}else if(f(e,t,n)>=0)return t}function r(e,t,n,i){return i?a(e,t,n,i)||[]:t}function s(e,t){if(e.key()&&!t._hasKeyMap){for(var n={},i=0,o=t.length;i<o;i++)n[JSON.stringify(e.keyOf(t[i]))]=!0;t._hasKeyMap=n}}function l(e,t){return!e._hasKeyMap||e._hasKeyMap[JSON.stringify(t)]}function d(e,t){e._hasKeyMap&&(e._hasKeyMap[JSON.stringify(t)]=!0)}function c(e,t,n,i,o){n.forEach(function(n){var a="insert"===n.type?t:r(e,t,n.key,i);switch(s(e,a),n.type){case"update":u(e,a,n.key,n.data,!0);break;case"insert":h(e,a,n.data,o&&(0,m.isDefined)(n.index)?n.index:-1,!0);break;case"remove":p(e,a,n.key,!0)}})}function u(e,t,n,i,a){var r,s=!0,l=e.key();if(l){if(o(i,l)&&!(0,I.keysEqual)(l,n,e.keyOf(i)))return!a&&(0,I.rejectedPromise)(b.errors.Error("E4017"));var d=f(e,t,n);if(d<0)return!a&&(0,I.rejectedPromise)(b.errors.Error("E4009"));r=t[d]}else r=n;if(k.default.deepExtendArraySafe(r,i,s),!a)return(0,v.default)().useLegacyStoreResult?(0,I.trivialPromise)(n,i):(0,I.trivialPromise)(r,n)}function h(e,t,n,i,o){var a,r,s=e.key();if(r=(0,m.isPlainObject)(n)?(0,x.extend)({},n):n,s){if(a=e.keyOf(r),void 0===a||"object"===("undefined"==typeof a?"undefined":g(a))&&(0,m.isEmptyObject)(a)){if(Array.isArray(s))throw b.errors.Error("E4007");a=r[s]=String(new y.default)}else if(void 0!==t[f(e,t,a)])return!o&&(0,I.rejectedPromise)(b.errors.Error("E4008"))}else a=r;if(i>=0?t.splice(i,0,r):t.push(r),d(t,a),!o)return(0,I.trivialPromise)((0,v.default)().useLegacyStoreResult?n:r,a)}function p(e,t,n,i){var o=f(e,t,n);if(o>-1&&t.splice(o,1),!i)return(0,I.trivialPromise)(n)}function f(e,t,n){var i=e.key();if(!l(t,n))return-1;for(var o=0,a=t.length;o<a;o++)if((0,I.keysEqual)(i,e.keyOf(t[o]),n))return o;return-1}var g="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},m=n(1),_=n(23),v=i(_),w=n(40),y=i(w),x=n(0),b=n(36),C=n(54),k=i(C),I=n(39);e.exports.applyBatch=c,e.exports.update=u,e.exports.insert=h,e.exports.remove=p,e.exports.indexByKey=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},o=n(2),a=n(6),r=a.getWindow(),s=n(13),l=n(5),d=n(8),c=n(4),u=n(0).extend,h=n(24),p=n(79),f=n(1),g=n(31),m=n(9),_=n(57),v="dx-popover",w="dx-popover-wrapper",y="dx-popover-arrow",x="dx-popover-without-title",b={left:"right",top:"bottom",right:"left",bottom:"top",center:"center"},C={left:-1,top:-1,center:0,right:1,bottom:1},k={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"},S=function(e,t){var n=e.option(t);return D(n)},D=function(e){return f.isObject(e)?e.name:e},T=function(e,t){var n=e.option(t);return f.isObject(n)&&n.delay},E=function(e,t){var n,i,a,r,d=e.option("target"),c=S(e,t+"Event");c&&!e.option("disabled")&&(r=m.addNamespace(c,e.NAME),i=e._createAction(function(){n=T(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)})},d.jquery||d.nodeType||f.isWindow(d)?(e["_"+t+"EventHandler"]=void 0,l.on(d,r,a)):(e["_"+t+"EventHandler"]=a,l.on(s.getDocument(),r,d,a)))},A=function(e,t,n,i){var a=i||S(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))},B=_.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(v),this._wrapper().addClass(w)},_render:function(){this.callBase.apply(this,arguments),this._detachEvents(this.option("target")),this._attachEvents()},_detachEvents:function(e){A(this,e,"show"),A(this,e,"hide")},_attachEvents:function(){E(this,"show"),E(this,"hide")},_renderArrow:function(){this._$arrow=o("<div>").addClass(y).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(x,!this.option("showTitle")),this.callBase()},_renderPosition:function(){this.callBase(),this._renderOverlayPosition()},_renderOverlayBoundaryOffset:c.noop,_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);var i=this._isHorizontalSide()||this._isVerticalSide();i&&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=c.pairToObject(this._position.offset||""),t=e.h,n=e.v,i=this._isVerticalSide(),o=this._isHorizontalSide();if(i||o){var a=this._isPopoverInside(),r=(a?-1:1)*C[this._positionSide],s=i?this._$arrow.height():this._$arrow.width(),l=this._getContentBorderWidth(this._positionSide),d=r*(s-l);i?n+=d:t+=d}return 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()?b[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(b[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](),d=s[n],c=this._$content[i](),u=r[n],h=a.get(0).preventDefault?0:a[i](),f=Math.max(d,u),m=Math.min(d+c,u+h);t="start"===this.option("arrowPosition")?f-d:"end"===this.option("arrowPosition")?m-d-l:(f+m)/2-d-l/2;var _=this._getContentBorderWidth(e),v=g.fitIntoRange(t-_+this.option("arrowOffset"),_,c-l-2*_);this._$arrow.css(n,v)},_isPopoverInside:function(){var e=this._transformStringPosition(this.option("position"),k),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"),k));e.of||(e.of=this.option("target")),e.collision||(e.collision="flip"),e.boundaryOffset||(e.boundaryOffset=this.option("boundaryOffset")),this._positionSide=this._getDisplaySide(e),this._position=e},_getDisplaySide:function(e){var t=p.setup.normalizeAlign(e.my),n=p.setup.normalizeAlign(e.at),i=C[t.h]===C[n.h]&&C[t.v]===C[n.v]?-1:1,o=Math.abs(C[t.h]-i*C[n.h]),a=Math.abs(C[t.v]-i*C[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(),A(this,this.option("target"),t,n),E(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()}});d("dxPopover",B),e.exports=B},,,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(50);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(176);
|
|
19
19
|
e.exports=new i},function(e,t,n){var i=n(124),o=n(3).each,a=n(0).extend,r=n(15),s=n(33),l={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},d="preset_",c=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 d+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=c;var u=new c;t.presets=u},function(e,t,n){var i=n(5),o=n(28),a=n(13),r=n(10),s=n(9),l="dxPointerEvents",d=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=d},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:"),d=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,d=[],c=[],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(d[n]=n?t._separators[n-1]:"",":"===i.charAt(0)){var o=i.substr(1);if(!(o in e||o in t._defaults))return d=null,!1;if(o in t._constraints&&!t._checkConstraint(e[o],t._constraints[o]))return d=null,!1;o in e?(void 0!==e[o]&&(s[o]=e[o],d[n]+=e[o],l=n),delete u[o]):o in s&&(d[n]+=s[o],c.push(n))}else d[n]+=i,l=n}),a.each(s,function(n,i){if(i&&r(":"+n,t._segments)===-1&&e[n]!==i)return d=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===d)return!1;c.length&&a.map(c,function(e){e>=l&&(d[e]="")});var p=d.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)}}),c=s.inherit({ctor:function(){this._registry=[]},_trimSeparators:function(e){return e.replace(/^[\/.]+|\/+$/g,"")},_createRoute:function(e,t,n){return new d(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=c,e.exports.Route=d},function(e,t,n){n(44);var i=n(29),o=n(4).noop,a=n(6).getWindow(),r=n(10),s=n(19),l=n(248),d=n(158).sessionStorage,c=n(15),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=c.real(),t=e.version;return"android"===e.platform&&t.length>1&&(2===t[0]&&t[1]<4||t[0]<2)},_isBuggyAndroid4:function(){var e=c.real(),t=e.version;return"android"===e.platform&&t.length>1&&4===t[0]&&0===t[1]},_isWindowsPhone8:function(){var e=c.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=d();e&&e.setItem(u,!0)},_initRootPage:function(){var e=this.getUri(),t=d();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,d=n(36),c=n(39),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},m=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 m(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),d=r.compare||g,c=d(s,l);if(c)return r.desc?-c:c}return n-i}}),_=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=_(e[1]);if("!"===t)return function(e){return!n(e)};throw d.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 d.errors.Error("E4019");t.push(_(this)),n=i,i=!0}else i=c.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=c.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 d.errors.Error("E4003",i)};return function(e){return o.isFunction(e)?e:c.isGroupCriterion(e)?i(e):c.isUnaryOperation(e)?n(e):u(e)}}(),v=p.inherit({ctor:function(e,t){this.callBase(e),this.criteria=_(t)},next:function(){for(;this.iter.next();)if(this.criteria(this.current()))return!0;return!1}}),w=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]}}))}}}),y=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()}}),x=p.inherit({ctor:function(e,t,n){this.callBase(e),this.skip=Math.max(0,t),this.take=Math.max(0,n),this.pos=0},next:function(){if(this.pos>=this.skip+this.take)return!1;for(;this.pos<this.skip&&this.iter.next();)this.pos++;return this.pos++,this.iter.next()},reset:function(){this.callBase(),this.pos=0},countable:function(){return this.iter.countable()},count:function(){return Math.min(this.iter.count()-this.skip,this.take)}}),b=function e(t,n){n=n||{},t instanceof u||(t=new h(t));var i=function(e){var t=n.errorHandler;t&&t(e),d._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(c.aggregators[e])},f=function(e){return o.isFunction(e)||Array.isArray(e)||(e=[].slice.call(arguments)),_(new y(t,e))},g=function(e){return f(r(e))},_=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 _(new m(t,e,n,i))},thenBy:function(e,n,i){if(t instanceof m)return _(t.thenBy(e,n,i));throw d.errors.Error("E4004")},filter:function(e){return Array.isArray(e)||(e=[].slice.call(arguments)),_(new v(t,e))},slice:function(e,n){return void 0===n&&(n=Number.MAX_VALUE),_(new x(t,e,n))},select:f,groupBy:function(e){return _(new w(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=b},function(e,t,n){var i=n(1),o=n(3),a=n(23),r=n(0).extend,s=n(185),l=n(100),d=l.serializePropName,c=n(36).errors,u=n(39),h=i.isFunction,p=2,f=function(){var e,t,n,s=function(e){return function(t,n){return t+" "+e+" "+n}},h=function(e,n){return function(i,o){var a=[e,"("];return t&&(i=i.indexOf("tolower(")===-1?"tolower("+i+")":i,o=o.toLowerCase()),n?a.push(o,",",i):a.push(i,",",o),a.push(")"),a.join("")}},p={"=":s("eq"),"<>":s("ne"),">":s("gt"),">=":s("ge"),"<":s("lt"),"<=":s("le"),startswith:h("startswith"),endswith:h("endswith")},f=r({},p,{contains:h("substringof",!0),notcontains:h("not substringof",!0)}),g=r({},p,{contains:h("contains"),notcontains:h("not contains")}),m=function(t){t=u.normalizeBinaryCriterion(t);var i=t[1],o=4===e?g:f,a=o[i.toLowerCase()];if(!a)throw c.Error("E4003",i);var r=t[0],s=t[2];return n&&n[r]&&(s=l.convertPrimitiveValue(n[r],s)),a(d(r),l.serializeValue(s,e))},_=function(e){var t=e[0],n=w(e[1]);if("!"===t)return"not ("+n+")";throw c.Error("E4003",t)},v=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("("+w(o)+")"),t=n,n="and"}else n=u.isConjunctiveOperator(this)?"and":"or"}),i.join(" "+t+" ")},w=function(e){return Array.isArray(e[0])?v(e):u.isUnaryOperation(e)?_(e):m(e)};return function(o,r,s,l){return n=s,t=i.isDefined(l)?l:a().oDataFilterToLower,e=r,w(o)}}(),g=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)&&h(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,a,s=[],c=[],u=e.expand,g=e.version||p,m=function(){return i||void 0!==o},_=function e(t){for(var n=0;n<t.length;n++){if(h(t[n]))return!0;if(Array.isArray(t[n])&&e(t[n]))return!0}return!1},v=function(){var t={};if(a||(s.length&&(t.$orderby=s.join(",")),i&&(t.$skip=i),void 0!==o&&(t.$top=o),t.$select=l.generateSelect(g,n)||void 0,t.$expand=l.generateExpand(g,u,n)||void 0),c.length){var r=c.length<2?c[0]:c,d=e&&e.fieldTypes,h=e&&e.filterToLower;t.$filter=f(r,g,d,h)}return a&&(t.$top=0),(e.requireTotalCount||a)&&(4!==g?t.$inlinecount="allpages":t.$count="true"),t};return{optimize:function(e){t(e)},exec:function(t){return l.sendRequest(g,{url:t,params:r(v(),e&&e.params)},{beforeSend:e.beforeSend,jsonp:e.jsonp,withCredentials:e.withCredentials,countOnly:a,deserializeDates:e.deserializeDates,fieldTypes:e.fieldTypes,isPaged:isFinite(o)})},multiSort:function(e){var t;if(m())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=d(o),a&&(i+=" desc"),t=t||[],t.push(i)}s=t},slice:function(e,t){return!m()&&(i=e,void(o=t))},filter:function(e){return!m()&&(Array.isArray(e)||(e=[].slice.call(arguments)),!_(e)&&(c.length&&c.push("and"),void c.push(e)))},select:function(e){return!n&&!h(e)&&(Array.isArray(e)||(e=[].slice.call(arguments)),void(n=e))},count:function(){a=!0}}};s.odata=g,t.odata=g},function(e,t,n){var i=n(2),o=n(5),a=n(15),r=n(84),s=n(61),l=n(12),d=n(51),c=d.add,u=n(31),h=n(4).noop,p=n(1).isDefined,f=n(9),g=n(113),m=u.sign,_=Math.abs,v=0,w=1,y=2,x=10,b=0,C=180,k=function(){return r.styleProp("pointer-events")},I=s(function(){var e="dx-gesture-cover",t="generic"===a.real().platform;if(!k()||!t)return h;var n=i("<div>").addClass(e).css("pointerEvents","none");return o.subscribeGlobal(n,"dxmousewheel",function(e){e.preventDefault()}),c(function(){n.appendTo("body")}),function(e,t){n.css("pointerEvents",e?"all":"none"),e&&n.css("cursor",t)}}),S=function(e,t){var n=I();n(e,t)},D=g.inherit({gesture:!0,configure:function(e){this.getElement().css("msTouchAction",e.immediate?"pinch-zoom":""),this.callBase(e)},allowInterruptionByMouseWheel:function(){return this._stage!==y},getDirection:function(){return this.direction},_cancel:function(){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=v},start:function(e){return e._needSkipEvent||f.needSkipEvent(e)?void this._cancel(e):(this._startEvent=f.createEvent(e),this._startEventData=f.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),C))},move:function(e){if(this._stage===w&&this._directionConfirmed(e)){if(this._stage=y,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(e),this._adjustStartEvent(e),this._start(this._startEvent),this._stage===v)return;this._requestAccept(e),this._move(e),this._forgetAccept()}else this._stage===y&&(this._clearSelection(e),this._move(e))},_directionConfirmed:function(e){var t=this._getTouchBoundary(e),n=f.eventDelta(this._startEventData,f.eventData(e)),i=_(n.x),o=_(n.y),a=this._validateMove(t,i,o),r=this._validateMove(t,o,i),s=this.getDirection(e),l="both"===s&&(a||r),d="horizontal"===s&&a,c="vertical"===s&&r;return l||d||c||this._immediateAccepted},_validateMove:function(e,t,n){return t&&t>=e&&(!this.immediate||t>=n)},_getTouchBoundary:function(e){return this.immediate||f.isDxMouseWheelEvent(e)?b:x},_adjustStartEvent:function(e){var t=this._getTouchBoundary(e),n=f.eventDelta(this._startEventData,f.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&&l.resetActiveElement()},_toggleGestureCover:function(e){var t=this._stage===y;t&&S(e,this.getElement().css("cursor"))},_clearSelection:function(e){f.isDxMouseWheelEvent(e)||f.isTouchEvent(e)||l.clearSelection()},end:function(e){this._toggleGestureCover(!1),this._stage===y?this._end(e):this._stage===w&&this._stop(e),this._stage=v},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:h,_start:h,_move:h,_stop:h,_end:h});D.initialTouchBoundary=x,D.touchBoundary=function(e){return p(e)?void(x=e):x},e.exports=D},function(e,t,n){var i=n(2),o=n(280),a=n(5),r=n(40),s=n(8),l=n(4),d=n(12),c=n(63).focused,u=n(3).each,h=n(1).isDefined,p=n(0).extend,f=n(12).getPublicElement,g=n(20),m=n(79),_=n(105).getDefaultAlignment,v=n(14),w=n(38),y=n(9),x=n(101),b=n(17),C=n(110),k=n(57),I="dx-dropdowneditor",S="dx-dropdowneditor-input-wrapper",D="dx-dropdowneditor-button",T="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=x.inherit({
|
|
20
20
|
_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,dropDownOptions:{},popupPosition:this._getDefaultPopupPosition(),onPopupInitialized:null,applyButtonText:v.format("OK"),cancelButtonText:v.format("Cancel"),buttonsLocation:"default",showPopupTitle:!1})},_getDefaultPopupPosition:function(){var e=_(this.option("rtlEnabled"));return{offset:{h:0,v:-1},my:e+" top",at:e+" bottom",collision:"flip flip"}},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(e){var t="generic"===e.platform,n="win"===e.platform&&e.version&&10===e.version[0];return t||n},options:{popupPosition:{offset:{v:0}}}}])},_inputWrapper:function(){return this.$element().find("."+S)},_init:function(){this.callBase(),this._initVisibilityActions(),this._initPopupInitializedAction(),this._initInnerOptionCache("dropDownOptions")},_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(I),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(S)),this._$container=this.$element().children().eq(0),this.setAria({haspopup:"true",autocomplete:"list"})},_readOnlyPropValue:function(){return!this.option("acceptCustomValue")||this.callBase()},_cleanFocusState:function(){this.callBase(),this.option("fieldTemplate")&&a.off(this._input(),"focusin focusout beforeactivate")},_getFieldTemplate:function(){return this.option("fieldTemplate")&&this._getTemplateByOption("fieldTemplate")},_renderField:function(){var e=this._getFieldTemplate();e&&this._renderTemplatedField(e,this._fieldRenderData())},_renderPlaceholder:function(){var e=!!this._getFieldTemplate();e||this.callBase()},_renderTemplatedField:function(e,t){var n=this,i=c(this._input()),o=this._$container;this._disposeKeyboardProcessor();var r=this._$beforeButtonsContainer&&this._$beforeButtonsContainer[0].parentNode,s=this._$afterButtonsContainer&&this._$afterButtonsContainer[0].parentNode;r&&r.removeChild(this._$beforeButtonsContainer[0]),s&&s.removeChild(this._$afterButtonsContainer[0]),this._detachFocusEvents(),o.empty(),this._$dropDownButton=null,this._$clearButton=null,e.render({model:t,container:d.getPublicElement(o),onRendered:function(){var e=n._input();if(!e.length)throw g.Error("E1010");n._refreshEvents(),n._refreshValueChangeEvent(),n._renderFocusState(),i&&a.trigger(e,"focus")}})},_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(T);i(e.container).append(t)},this)},_createDropDownButton:function(){var e=this,t=i("<div>").addClass(D).prependTo(this._buttonsContainer());return this._createComponent(t,w,{focusStateEnabled:!1,hoverStateEnabled:!1,activeStateEnabled:!1,disabled:this.option("readOnly"),useInkRipple:!1,template:this._getTemplateByOption("dropDownButtonTemplate")}),t.removeClass("dx-button"),a.on(t,"mousedown",function(t){e.$element().is(".dx-state-focused")&&t.preventDefault()}),t},_renderOpenHandler:function(){var e=this,t=e._inputWrapper(),n=y.addNamespace(b.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")&&!c(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,p(this._popupConfig(),this._getInnerOptionsCache("dropDownOptions"))),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()),this._bindInnerWidgetOptions(this._popup,"dropDownOptions")},_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=m.setup(this.$element()).top,n=m.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:d.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"))},_updatePopupWidth:l.noop,_popupOptionChanged:function(e){var t=this._getOptionsFromContainer(e);this._setPopupOption(t),Object.keys(t).indexOf("width")!==-1&&void 0===t.width&&this._updatePopupWidth()},_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"dropDownOptions":this._popupOptionChanged(e),this._cacheInnerOptions("dropDownOptions",e.value);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=n(6).getWindow(),o=function(){var e;try{e=i.sessionStorage}catch(e){}return e};t.sessionStorage=o},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(5),s=i(r),l=n(10),d=i(l),c=n(11),u=n(3),h=n(9),p="compositionstart",f="compositionend",g="keydown",m="KeyboardProcessor",_=d.default.inherit({_keydown:(0,h.addNamespace)(g,m),_compositionStart:(0,h.addNamespace)(p,m),_compositionEnd:(0,h.addNamespace)(f,m),ctor:function(e){var t=this;e=e||{},e.element&&(this._element=(0,a.default)(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)},this._toggleProcessingWithContext=this.toggleProcessing.bind(this),s.default.on(this._element,this._keydown,this._processFunction),s.default.on(this._element,this._compositionStart,this._toggleProcessingWithContext),s.default.on(this._element,this._compositionEnd,this._toggleProcessingWithContext))},dispose:function(){this._element&&(s.default.off(this._element,this._keydown,this._processFunction),s.default.off(this._element,this._compositionStart,this._toggleProcessingWithContext),s.default.off(this._element,this._compositionEnd,this._toggleProcessingWithContext)),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 _;return this._childProcessors.push(e),e},reinitialize:function(e,t){return this._context=t,this._handler=e,this},process:function(e){var t=this._focusTarget&&this._focusTarget!==e.target&&(0,c.inArray)(e.target,this._focusTarget)<0,n=this._isComposingJustFinished&&229===e.which||this._isComposing||t;if(this._isComposingJustFinished=!1,n)return!1;var i={keyName:(0,h.normalizeKeyName)(e),key:e.key,code:e.code,ctrl:e.ctrlKey,location:e.location,metaKey:e.metaKey,shift:e.shiftKey,alt:e.altKey,which:e.which,originalEvent:e},o=this._handler&&this._handler.call(this._context,i);o&&this._childProcessors&&(0,u.each)(this._childProcessors,function(t,n){n.process(e)})},toggleProcessing:function(e){var t=e.type;this._isComposing=t===p,this._isComposingJustFinished=!this._isComposing}});e.exports=_},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(6).getWindow(),o=n(1),a=["auto","none","inherit","initial"],r=function(e,t){var n=0;return t.forEach(function(t){n+=parseFloat(e[t])||0}),n},s=function(e,t){var n="width"===e?"Left":"Top",i="width"===e?"Right":"Bottom";return{padding:r(t,["padding"+n,"padding"+i]),border:r(t,["border"+n+"Width","border"+i+"Width"]),margin:r(t,["margin"+n,"margin"+i])}},l=function(e,t,n){var i=t[e];return"border-box"===t.boxSizing&&i.length&&"%"!==i[i.length-1]?n.border+n.padding:0},d=function(e,t,n){var o=i.getComputedStyle(e),a=s(t,o),r=e.getClientRects().length,d=e.getBoundingClientRect()[t],c=r?d:0;return c<=0?(c=parseFloat(o[t]||e.style[t])||0,c-=l(t,o,a)):c-=a.padding+a.border,n.paddings&&(c+=a.padding),n.borders&&(c+=a.border),n.margins&&(c+=a.margin),c},c=function(e){return o.isWindow(e)?e.innerHeight:e.offsetHeight},u=function(e,t){return e.indexOf("px")>0?e=parseInt(e.replace("px","")):e.indexOf("%")>0?e=parseInt(e.replace("%",""))*c(t)/100:isNaN(e)||(e=parseInt(e)),e},h=function(e,t,n){if(!e)return null;if(a.indexOf(e)>-1)return t?null:e;if(o.isString(e)&&(e=u(e,n)),o.isNumeric(e))return Math.max(0,e+t);var i=t<0?" - ":" ";return"calc("+e+i+Math.abs(t)+"px)"},p=function(e,t,n){var i=h(e,t,n);return null!==i?i:"none"},f=function(e,t,n){var i=h(e,t,n);return null!==i?i:0},g=function(e,t){if(!e)return 0;var n=s("height",i.getComputedStyle(e));return n.padding+n.border+(t?n.margin:0)},m=function(e){if(e){var t=e.getBoundingClientRect();if(t.height)return t.height}return 0};t.getSize=d,t.getElementBoxParams=s,t.addOffsetToMaxHeight=p,t.addOffsetToMinHeight=f,t.getVerticalOffsets=g,t.getVisibleHeight=m,t.parseHeight=u},function(e,t,n){var i=n(5),o=n(37),a=n(10),r=n(15),s=n(64),l=n(9),d=n(26),c="dxHoverStart",u="dxhoverstart",h=l.addNamespace(d.enter,c),p="dxHoverEnd",f="dxhoverend",g=l.addNamespace(d.leave,p),m=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=c,this._eventName=u,this._originalEventName=h,this.callBase()},_handler:function(e){var t=e.pointers||[];t.length||this.callBase(e)}}),v=m.inherit({ctor:function(){this._eventNamespace=p,this._eventName=f,this._originalEventName=g,this.callBase()}});s(u,new _),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 k).resolve(e).promise()}function a(e,t){if(!_(t))throw w.Error("E4011",e)}function r(e){throw w.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(T,s),n=s.apply(e,[t]),Array.isArray(n)?n=o(n):null===n||void 0===n?n=o([]):i(n)||r(T),S(n)}function d(e,t){var n,a=e._totalCountFunc;if(!_(a))throw w.Error("E4021");return n=a.apply(e,[t]),i(n)||(n=Number(n),isFinite(n)||r(D),n=o(n)),S(n)}function c(e,t,n){var r,s=e._byKeyFunc;return a(E,s),r=s.apply(e,[t,n]),i(r)||(r=o(r)),S(r)}function u(e,t,n,i){if(t.__rawData)i(t.__rawData);else{var o=t.__rawDataPromise||l(t,n);t._cacheRawData&&(t.__rawDataPromise=o),o.always(function(){delete t.__rawDataPromise}).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,d=x(o,{errorHandler:t._errorHandler}),c=[];i||(a=b(d,n),a===d?s=o.slice(0):c.push(a.enumerate().done(function(e){s=e}))),(n.requireTotalCount||i)&&(r=b(d,n,!0),r===d?l=o.length:c.push(r.count().done(function(e){l=e}))),I.apply(f,c).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(w.Error("E4009"))})}var f=n(2),g=n(39),m=n(135),_=n(1).isFunction,v=n(23),w=n(36).errors,y=n(95),x=n(147),b=n(81).queryByOptions,C=n(7),k=C.Deferred,I=C.when,S=C.fromPromise,D="totalCount",T="load",E="byKey",A="insert",B="update",O="remove",R=y.inherit({ctor:function(e){e=e||{},this.callBase(e),this._useDefaultSearch=!!e.useDefaultSearch||"raw"===e.loadMode,this._loadMode=e.loadMode,this._cacheRawData=e.cacheRawData!==!1,this._loadFunc=e[T],this._totalCountFunc=e[D],this._byKeyFunc=e[E],this._insertFunc=e[A],this._updateFunc=e[B],this._removeFunc=e[O]},createQuery:function(){throw w.Error("E4010")},clearRawDataCache:function(){delete this.__rawData},_totalCountImpl:function(e){var t=new k;return"raw"!==this._loadMode||this._totalCountFunc?(d(this,e).done(function(e){t.resolve(Number(e))}).fail(s(t)),t=this._addFailHandlers(t)):h(t,this,e,!0),t.promise()},_pushImpl:function(e){this.__rawData&&m.applyBatch(this,this.__rawData,e)},_loadImpl:function(e){var t=new k;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 k;return this._byKeyViaLoad()?(this._requireKey(),p(n,this,e)):c(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,r=n._insertFunc,l=new k;return a(A,r),t=r.apply(n,[e]),i(t)||(t=o(t)),S(t).done(function(t){v().useLegacyStoreResult?l.resolve(e,t):l.resolve(t||e,n.keyOf(t))}).fail(s(l)),l.promise()},_updateImpl:function(e,t){var n,r=this._updateFunc,l=new k;return a(B,r),n=r.apply(this,[e,t]),i(n)||(n=o(n)),S(n).done(function(n){v().useLegacyStoreResult?l.resolve(e,t):l.resolve(n||t,e)}).fail(s(l)),l.promise()},_removeImpl:function(e){var t,n=this._removeFunc,r=new k;return a(O,n),t=n.apply(this,[e]),i(t)||(t=o()),S(t).done(function(){r.resolve(e)}).fail(s(r)),r.promise()}});e.exports=R},function(e,t,n){var i=n(2),o=n(6).getWindow(),a=n(15),r=n(8),s=n(0).extend,l=n(27),d=n(38),c=n(136),u=n(118),h=n(106),p=n(21),f=n(115),g="dx-dropdownmenu",m="dx-dropdownmenu-popup",_="dx-dropdownmenu-popup-wrapper",v="dx-dropdownmenu-list",w="dx-dropdownmenu-button",y={popupWidth:"width",popupHeight:"height",popupMaxHeight:"maxHeight",popupAutoResizeEnabled:"autoResizeEnabled"},x={buttonIcon:"icon",buttonText:"text",buttonWidth:"width",buttonHeight:"height",buttonTemplate:"template"},b=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,container:void 0,popupAutoResizeEnabled:!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.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(w),t=this._buttonOptions();this._button=this._createComponent(e,d,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,c,t)}},_popupOptions:function(){var e=!this.option("usePopover");return{onInitialized:function(t){t.component._wrapper().addClass(_).toggleClass(m,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"),container:this.option("container"),autoResizeEnabled:this.option("popupAutoResizeEnabled")}},_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.option("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(x[t],n),this._renderPopup();break;case"popupWidth":case"popupHeight":case"popupMaxHeight":case"popupAutoResizeEnabled":this._popup.option(y[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;case"container":this._popup&&this._popup.option(e.name,e.value);break;default:this.callBase(e)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)}}).include(u);r("dxDropDownMenu",b),e.exports=b},function(e,t,n){e.exports=n(535)},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(582),a=i(o);e.exports=a.default},function(e,t,n){e.exports=n(601)},function(e,t,n){var i=n(18),o=n(0).extend,a=n(3).each,r=n(11).inArray,s=n(1).isDefined,l=n(25),d=l.dateToMilliseconds,c=4,u={secondly:"seconds",minutely:"minutes",hourly:"hours",daily:"days",weekly:"weeks",monthly:"months",yearly:"years"},h={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);p(n,1,-1);var i=n.getDate();i>=Math.abs(t)?p(e,1,t):p(e,2,t)}else e.setDate(t),E(e,t)},byday:function(e,t,n,i,o){var a=e.getDay(),r=_[n];t+=t>=r==r>a?7:0,e.setDate(e.getDate()-a+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*d("day"),s=a+1;s>c?e.setTime(r+7*t*d("day")):e.setTime(r+7*(t-1)*d("day"));var l=(e.getTimezoneOffset()-o.getTimezoneOffset())*d("minute");l&&e.setTime(e.getTime()+l)},byyearday:function(e,t){e.setMonth(0,1),e.setDate(t)}},p=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)},f={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=d("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())*d("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*d("minute"),o=d("day");return Math.floor(i/o)}},g=["freq","interval","byday","byweekno","byyearday","bymonth","bymonthday","count","until","byhour","byminute","bysecond","bysetpos","wkst"],m=["DAILY","WEEKLY","MONTHLY","YEARLY","SECONDLY","MINUTELY","HOURLY"],_={SU:0,MO:1,TU:2,WE:3,TH:4,FR:5,SA:6},v={0:"SU",1:"MO",2:"TU",3:"WE",4:"TH",5:"FR",6:"SA"},w=function(){return(new Date).getTimezoneOffset()},y=function(e){var t=[];return e.rule&&(t=I(e)),!!t.length},x=function(e){var t=e.interval,n=e.freq,i={},o=u[n.toLowerCase()];return"MONTHLY"===n&&e.byday&&(o=u.daily),i[o]=t,i},b=function(e,t){for(var n=[],i=0,o=e.length;i<o;i++)n[i]=q(e[i],t);return n},C=function(e,t){var n=!1;if(!t)return n;for(var i=t.split(","),o=b(i,e),a=/\d{8}$/,r=0,s=o.length;r<s;r++)if(i[r].match(a)){var l=B(e,o[r]);0===l.years&&0===l.months&&0===l.days&&(n=!0)}else e.getTime()===o[r].getTime()&&(n=!0);return n},k=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},I=function(e){var t,n=[],i=O(e.rule),o={},r=i.rule,s=e.start;if(!i.isValid||!r.freq)return n;r.interval=x(r),t=U(r,e.firstDayOfWeek);var l=e.end?e.end.getTime()-e.start.getTime():d("day"),c={exception:e.exception,min:e.min,dateRules:t,rule:r,recurrenceStartDate:s,
|
|
21
21
|
recurrenceEndDate:e.end,duration:l};if(t.length&&r.count){var u=0;J(t,new Date(s),new Date(s),r).forEach(function(t,n){t<e.max&&(u++,o=S(u,o,t,n,c,!0))})}else Q(t,new Date(s),r).forEach(function(t,n){for(var i=0;k(t,s,e.max,r,i);)i++,o=S(i,o,t,n,c),t=A(t,s,r,n)});return r.bysetpos&&a(o,function(e,t){o[e]=T(t,r.bysetpos)}),a(o,function(e,t){n=n.concat(t)}),n.sort(function(e,t){return e-t}),n},S=function(e,t,n,i,o,a){return t[e]||(t[e]=[]),D(n,i,o,a)&&t[e].push(n),t},D=function(e,t,n,i){if(!C(e,n.exception)){var o=l.sameDate(e,n.recurrenceEndDate)&&n.recurrenceEndDate.getTime()>e.getTime()?n.recurrenceEndDate.getTime()-e.getTime():n.duration;if(e.getTime()>=n.recurrenceStartDate.getTime()&&e.getTime()+o>n.min.getTime())return i||te(e,[n.dateRules[t]],n.rule.wkst)}return!1},T=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},E=function(e,t){e.getDate()!==t&&e.setDate(t)},A=function(e,t,n,i){var o=new Date(e),a=!0;if(e=l.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),h.bymonthday(o,r),e=o,a=!1)),a&&E(e,r)}if("YEARLY"===n.freq){if(n.byyearday){var s=Number(n.byyearday.split(",")[i]);h.byyearday(e,s)}var d=U(n);for(var c in d[i])h[c]&&h[c](e,d[i][c],n.wkst)}return e},B=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()}},O=function(e){var t={rule:{},isValid:!1};return e&&(t.rule=W(e),t.isValid=M(t.rule,e)),t},R=[],M=function(e,t){return!(L(e)||r(e.freq,m)===-1||F(e)||$(e)||z(e)||V(e)||H(e)||P(e))||(N(t),!1)},P=function(e){var t=!1,n=e.until;return void 0===n||n instanceof Date||(t=!0),t},F=function(e){var t=!1,n=e.count;return n&&"string"==typeof n&&(t=!0),t},V=function(e){var t=!1,n=e.bymonthday;return n&&isNaN(parseInt(n))&&(t=!0),t},H=function e(t){var e=!1,n=t.bymonth;return n&&isNaN(parseInt(n))&&(e=!0),e},$=function(e){var t=!1,n=e.interval;return n&&"string"==typeof n&&(t=!0),t},z=function(e){var t=K(e),n=!1;return a(t,function(e,t){if(!_.hasOwnProperty(t))return n=!0,!1}),n},L=function(e){var t=!1;return a(e,function(e){if(r(e,g)===-1)return t=!0,!1}),t},N=function(e){r(e,R)===-1&&(i.log("W0006",e),R.push(e))},W=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 d=parseInt(t.interval);isNaN(d)||(t.interval=d)}else t.interval=1;return t.freq&&t.until&&(t.until=q(t.until)),t},q=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():ie.getTimeZoneOffset(),a=new(Function.prototype.bind.apply(Date,G(n)));return o=6e4*o,i&&(a=new Date(a.getTime()-o)),a},G=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},K=function(e){var t=[];return e.byday&&(t=Array.isArray(e.byday)?e.byday:e.byday.split(",")),t},j=function(e){var t=6e4*ie.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"},U=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=[];if(s(t)&&(e.fdow=t),e.wkst||(e.wkst=s(t)?v[t]:"MO"),e.byweekno&&!e.byday){for(var i=Object.keys(_),o=0;o<_[e.wkst];o++)i.push(i.shift());e.byday=i.join(",")}for(var a in h)if(e[a]){var r=e[a].split(","),l=Y(a,r);n=n.length?Z(l,n):l}return n},Y=function(e,t){for(var n=[],i=0,o=t.length;i<o;i++){var a={};a[e]=X(e,t[i]),n.push(a)}return n},X=function(e,t){var n=parseInt(t);return"bymonth"===e&&(n-=1),"byday"===e&&(n=_[t]),n},Z=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},Q=function(e,t,n){for(var i=[],o=0,a=e.length;o<a;o++){var r=e[o],s=ee(t,e,n.wkst);for(var l in r)h[l]&&h[l](s,r[l],n.wkst,n.freq,n.fdow);Array.isArray(s)?i=i.concat(s):i.push(new Date(s))}return i.length||i.push(t),i},J=function(e,t,n,i){for(var o=[],a=i.count,r=0,s=ee(t,e,i.wkst);r<a;){for(var d=Q(e,s,i),c=[],u=0;u<d.length;u++)d[u].getTime()>=n.getTime()&&c.push(d[u]);var h=c.length;r+=h;var p=r-a;for(r>a&&c.splice(h-p,p),u=0;u<c.length;u++)o.push(c[u]);var f=i.interval;"days"===Object.keys(f)[0]&&(f={weeks:1}),s=l.addInterval(s,f)}return o},ee=function(e,t,n){var i=new Date(e),o=i.getDay();return t.length&&s(t[0].byday)?i.setDate(i.getDate()-o+_[n]-(o<_[n]?7:0)):i.setDate(1),i},te=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;f[s]&&!l&&a[s]!==f[s](e,n)&&(r=!1)}i=i||r}return i||!t.length},ne=function(e){if(e&&e.freq){var t="";for(var n in e){var i=e[n];"interval"===n&&i<2||("until"===n&&(i=j(i)),t+=n+"="+i+";")}return t=t.substring(0,t.length-1),t.toUpperCase()}},ie={getRecurrenceString:ne,getRecurrenceRule:O,getAsciiStringByDate:j,getDatesByRecurrence:I,dateInRecurrenceRange:y,getDateByAsciiString:q,daysFromByDayRule:K,getTimeZoneOffset:w};e.exports=ie},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){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(18),a=n(7).when;t.create=i,t.enqueue=i().add},function(e,t,n){n(44);var i=n(29),o=n(67),a=n(0).extend,r=n(1),s=n(8),l=n(60),d=r.isFunction,c=r.isPlainObject,u=n(4).noop;n(114);var h=l.inherit({ctor:function(e,t){c(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(d(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(44);var i=n(29),o=n(181).MarkupComponent,a=n(1).isPlainObject,r=n(8);n(114);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(44);var i=n(29),o=n(10),a=n(0).extend,r=n(4).noop,s=n(103),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(67),d=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)})})}});d.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=d},function(e,t,n){n(44);var i=n(29),o=n(13),a=n(5),r=n(10),s=n(4),l=n(3),d=n(116),c=n(146).layoutSets,u=n(52),h=n(67),p=n(12),f=n(7).when,g="__hidden-bag",m=".dx-transition",_=".dx-content",v="onViewShown",w="dxcontentrendered.layoutController",y=".dx-pending-rendering",x=".dx-pending-rendering-manual",b=n(125);n(180),n(68);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 b.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){d.templateProvider.applyTemplate(n,t)})},_releaseVisibleViews:function(){var e=this;l.each(this._visibleViews,function(t,n){e._hideView(n),e._releaseView(n)}),this._visibleViews={}},_templateContextChangedHandler:function(){var e=this,t=[];l.each(e._visibleViews,function(n,i){i.currentViewTemplateId!==e._getViewTemplateId(i)&&t.push(i)}),f.apply(i,l.map(t,function(t){return e.showView(t)})).done(function(){e._notifyShown(t)})},_attachRefreshViewRequiredHandler:function(){this._templateContext&&this._templateContext.on("optionChanged",this._proxiedTemplateContextChangedHandler)},_detachRefreshViewRequiredHandler:function(){this._templateContextChanged&&this._templateContext.off("optionChanged",this._proxiedTemplateContextChangedHandler)},_getPreviousViewInfo:function(e){return this._visibleViews[this._getViewPaneName(e.viewTemplateInfo)]},_prepareTemplates:function(){var e=this,t=e._viewEngine.getLayoutTemplate(this._getLayoutTemplateName());e._$layoutTemplate=t,e._$mainLayout=e._createEmptyLayout(),e._showElements(e._$mainLayout),e._applyTemplate(e._$mainLayout,e._layoutModel),e._$navigationWidget=e._createNavigationWidget()},renderNavigation:function(e){this._clearNavigationWidget(),this._renderNavigationImpl(e)},_renderNavigationImpl:function(e){this._renderCommands(this._$mainLayout,e)},_createNavigationWidget:function(){var e,t=this._findCommandContainers(this._$mainLayout);return l.each(t,function(t,n){if("global-navigation"===n.option("id"))return e=n.element(),!1}),e},_clearNavigationWidget:function(){this._$navigationWidget&&this._commandManager.clearContainer(this._$navigationWidget.dxCommandContainer("instance"))},element:function(){return this._$mainLayout},_getViewFrame:function(e){return this._$mainLayout},_getLayoutTemplateName:function(){return this.name},_applyModelToTransitionElements:function(e,t){var n=this;this._getTransitionElements(e).each(function(e,o){n._applyTemplate(i(o).children(),t)})},_createViewLayoutTemplate:function(){var e=this,t=e._$layoutTemplate.clone();return this._hideElements(t),t},_createEmptyLayout:function(){var e=this,t=e._$layoutTemplate.clone();return this._hideElements(t),this._getTransitionElements(t).empty(),t.children(_).remove(),t},_getTransitionElements:function(e){for(var t=e.find(m).add(e.filter(m)),n=[],o=0;o<t.length;o++){var a=t.eq(o);0===a.parents(m).length&&n.push(a.get(0))}return i(n)},showView:function(e,t){t=t||"forward";var n,o=this,a=o._getPreviousViewInfo(e),r=a===e?a.currentViewTemplateId:void 0;return this._showViewFired=!0,this._updateCurrentViewTemplateId(e),r&&r===e.currentViewTemplateId&&e===a?(o.fireEvent("viewShowing",[e,t]),n=i.Deferred().resolve().promise()):(o._ensureViewRendered(e),o.fireEvent("viewShowing",[e,t]),n=this._showViewImpl(e,t,r).done(function(){o._onViewShown(e)})),n},disposeView:function(e){this._clearRenderResult(e)},_clearRenderResult:function(e){e.renderResult&&(e.renderResult.$markup.remove(),e.renderResult.$viewItems.remove(),delete e.renderResult)},_renderViewImpl:function(e,t){var n,o=this,a=".dx-command,.dx-content,script",r=this._createViewLayoutTemplate(),s=!0,l=i();if(0===e.children(a).length&&this._viewEngine._wrapViewDefaultContent(e),n=e.children(),this._applyModelToTransitionElements(r,t.model),this._viewEngine.applyLayout(e,r),n.each(function(e,n){var r=i(n);o._applyTemplate(r,t.model),r.is(a)?s=!1:l=l.add(r)}),l.length&&!s)throw h.Error("E3014",l[0].outerHTML);t.renderResult=t.renderResult||{},t.renderResult.$viewItems=n,t.renderResult.$markup=r},_renderCommands:function(e,t){var n=this._findCommandContainers(e);return this._commandManager.renderCommandsToContainers(t,n)},_prepareViewCommands:function(e){var t=e.renderResult.$viewItems,n=this._commandManager.findCommands(t),i={};e.commands=d.utils.mergeCommands(e.commands||[],n),e.commandsToRenderMap=i,l.each(e.commands,function(e,t){var n=t.option("renderStage")||v,o=i[n]=i[n]||[];o.push(t)})},_applyViewCommands:function(e,t){t=t||v;var n,o=e.commandsToRenderMap[t],a=e.renderResult.$markup;return o?(n=this._renderCommands(a,o),delete e.commandsToRenderMap[t]):n=i.Deferred().resolve().promise(),n},_findCommandContainers:function(e){return p.createComponents(e,["dxCommandContainer"])},_getViewTemplateId:function(e){var t=e.$viewTemplate?e.$viewTemplate.dxView("instance"):this._viewEngine.getViewTemplateInfo(e.viewName);return t.getId()},_updateCurrentViewTemplateId:function(e){e.currentViewTemplateId=this._getViewTemplateId(e)},_ensureViewRendered:function(e){var t=e.renderResult&&e.renderResult.markupCache[e.currentViewTemplateId];t?e.renderResult.$markup=t:(this._renderView(e),e.renderResult.markupCache=e.renderResult.markupCache||{},e.renderResult.markupCache[e.currentViewTemplateId]=e.renderResult.$markup)},_renderView:function(e){var t=e.$viewTemplate||this._viewEngine.getViewTemplate(e.viewName);this._renderViewImpl(t,e),this._prepareViewCommands(e),this._applyViewCommands(e,"onViewRendering"),this._appendViewToLayout(e),t.remove(),this._onRenderComplete(e),this.fireEvent("viewRendered",[e])},_prepareTransition:function(e,t){0===e.children(".dx-content").length&&(e.wrapInner("<div>"),e.children().dxContent({targetPlaceholder:t}))},_appendViewToLayout:function(e){var t=this,n=t._getViewFrame(e),o=e.renderResult.$markup,a=i(),r=[];l.each(o.find(".dx-content-placeholder"),function(e,n){t._prepareTransition(i(n),i(n).attr("data-dx-content-placeholder-name"))}),l.each(t._getTransitionElements(n),function(e,n){var s=i(n),l=o.find(C(s.attr("data-dx-transition-name"))).children(),d={$element:l,animation:s.attr("data-dx-transition-type")};r.push(d),s.append(l),t._showViewElements(l),p.triggerShownEvent(l),a=a.add(l)}),t._$mainLayout.append(e.renderResult.$viewItems.filter(".dx-command")),o.remove(),e.renderResult.$markup=a,e.renderResult.animationItems=r},_onRenderComplete:function(e){},_onViewShown:function(e){a.trigger(o.getDocument(),"dx.viewchanged")},_enter:function(e,t){var n=this.transitionExecutor;l.each(e,function(e,i){n.enter(i.$element,i.animation,t)})},_leave:function(e,t){var n=this.transitionExecutor;l.each(e,function(e,i){n.leave(i.$element,i.animation,t)})},_doTransition:function(e,t,n){return e&&this._leave(e.renderResult.animationItems,n),this._enter(t.renderResult.animationItems,n),this._showView(t),this.transitionExecutor.start()},_showViewImpl:function(e,t,n){var o=this,a=this._getPreviousViewInfo(e),r={direction:t};a===e&&(a=void 0),a||(r.duration=0,r.delay=0);var s=i.Deferred();return o._doTransition(a,e,r).done(function(){o._changeView(e,n).done(function(e){s.resolve(e)})}),s.promise()},_releaseView:function(e){this.fireEvent("viewReleased",[e])},_getReadyForRenderDeferredItems:function(e){return i.Deferred().resolve().promise()},_changeView:function(e,t){var n=this;if(t)n._hideView(e,t);else{var o=n._getPreviousViewInfo(e);o&&o!==e&&(n._hideView(o),n._releaseView(o)),this._visibleViews[this._getViewPaneName(e.viewTemplateInfo)]=e}this._subscribeToDeferredItems(e);var a=i.Deferred();return this._getReadyForRenderDeferredItems(e).done(function(){n._applyViewCommands(e).done(function(){n._renderDeferredItems(e.renderResult.$markup).done(function(){a.resolve()})})}),a.promise()},_subscribeToDeferredItems:function(e){var t=this,n=e.renderResult.$markup;n.find(y).add(n.filter(y)).each(function(){var n={viewInfo:e,context:t};i(this).on(w,n,t._onDeferredContentRendered)})},_onDeferredContentRendered:function(e){var t=i(e.target),n=e.data.viewInfo,o=e.data.context;t.off(w,o._onDeferredContentRendered),o._renderCommands(t,n.commands)},_renderDeferredItems:function(e){var t=this,n=i.Deferred(),o=e.find(x).add(e.filter(x)).first();if(o.length){var a=o.data("dx-render-delegate");s.executeAsync(function(){a().done(function(){t._renderDeferredItems(e).done(function(){n.resolve()})})})}else n.resolve();return n.promise()},_getViewPaneName:function(e){return this._defaultPaneName},_hideElements:function(e){e.addClass("dx-fast-hidden")},_showElements:function(e){e.removeClass("dx-fast-hidden")},_hideViewElements:function(e){this._patchIds(e),this._disableInputs(e),e.removeClass("dx-active-view").addClass("dx-inactive-view")},_hideView:function(e,t){if(e.renderResult){var n=void 0===t?e.renderResult.$markup:e.renderResult.markupCache[t];this._hideViewElements(n),this.fireEvent("viewHidden",[e])}},_showViewElements:function(e){this._unPatchIds(e),this._enableInputs(e),e.removeClass("dx-inactive-view").addClass("dx-active-view"),this._skipAnimation(e)},_showView:function(e){e.renderResult&&this._showViewElements(e.renderResult.$markup)},_skipAnimation:function(e){e.addClass("dx-skip-animation");for(var t=0;t<e.length;t++)e.eq(t).css("transform");e.removeClass("dx-skip-animation")},_patchIds:function(e){this._processIds(e,function(e){var t=e;return e.indexOf(g)===-1&&(t=g+"-"+e),t})},_unPatchIds:function(e){this._processIds(e,function(e){var t=e;return 0===e.indexOf(g)&&(t=e.substr(g.length+1)),t})},_processIds:function(e,t){var n=e.find("[id]");l.each(n,function(e,n){var o=i(n),a=o.attr("id");o.attr("id",t(a))})},_enableInputs:function(e){var t=this._getInputs(e).filter("[data-disabled='true']");l.each(t,function(e,t){i(t).removeAttr("disabled").removeAttr("data-disabled")})},_disableInputs:function(e){var t=this._getInputs(e);t=t.filter(":not([disabled])").add(t.filter("[disabled=true]")),l.each(t,function(e,t){i(t).attr({disabled:!0,"data-disabled":!0})})},_getInputs:function(e){return e.find("input, button, select, textarea")}}).include(u);c.default=c.default||[],c.default.push({controller:new k}),t.DefaultLayoutController=k,t.layoutSets=c},function(e,t,n){var i=n(252);e.exports=i.module("dx",[])},function(e,t,n){e.exports={}},function(e,t,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n(119);var o=n(69),a=n(50),r=n(18);if(n(69),o&&o.formatNumber){var s={main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},numbers:{defaultNumberingSystem:"latn",otherNumberingSystems:{"native":"latn"},minimumGroupingDigits:"1","symbols-numberSystem-latn":{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"\xd7",perMille:"\u2030",infinity:"\u221e",nan:"NaN",timeSeparator:":"},"decimalFormats-numberSystem-latn":{standard:"#,##0.###","long":{decimalFormat:{"1000-count-one":"0 thousand","1000-count-other":"0 thousand","10000-count-one":"00 thousand","10000-count-other":"00 thousand","100000-count-one":"000 thousand","100000-count-other":"000 thousand","1000000-count-one":"0 million","1000000-count-other":"0 million","10000000-count-one":"00 million","10000000-count-other":"00 million","100000000-count-one":"000 million","100000000-count-other":"000 million","1000000000-count-one":"0 billion","1000000000-count-other":"0 billion","10000000000-count-one":"00 billion","10000000000-count-other":"00 billion","100000000000-count-one":"000 billion","100000000000-count-other":"000 billion","1000000000000-count-one":"0 trillion","1000000000000-count-other":"0 trillion","10000000000000-count-one":"00 trillion","10000000000000-count-other":"00 trillion","100000000000000-count-one":"000 trillion","100000000000000-count-other":"000 trillion"}},"short":{decimalFormat:{"1000-count-one":"0K","1000-count-other":"0K","10000-count-one":"00K","10000-count-other":"00K","100000-count-one":"000K","100000-count-other":"000K","1000000-count-one":"0M","1000000-count-other":"0M","10000000-count-one":"00M","10000000-count-other":"00M","100000000-count-one":"000M","100000000-count-other":"000M","1000000000-count-one":"0B","1000000000-count-other":"0B","10000000000-count-one":"00B","10000000000-count-other":"00B","100000000000-count-one":"000B","100000000000-count-other":"000B","1000000000000-count-one":"0T","1000000000000-count-other":"0T","10000000000000-count-one":"00T","10000000000000-count-other":"00T","100000000000000-count-one":"000T","100000000000000-count-other":"000T"}}},"scientificFormats-numberSystem-latn":{standard:"#E0"},"percentFormats-numberSystem-latn":{standard:"#,##0%"},"currencyFormats-numberSystem-latn":{currencySpacing:{beforeCurrency:{currencyMatch:"[:^S:]",surroundingMatch:"[:digit:]",insertBetween:"\xa0"},afterCurrency:{currencyMatch:"[:^S:]",surroundingMatch:"[:digit:]",insertBetween:"\xa0"}},standard:"\xa4#,##0.00",accounting:"\xa4#,##0.00;(\xa4#,##0.00)","short":{standard:{"1000-count-one":"\xa40K","1000-count-other":"\xa40K","10000-count-one":"\xa400K","10000-count-other":"\xa400K","100000-count-one":"\xa4000K","100000-count-other":"\xa4000K","1000000-count-one":"\xa40M","1000000-count-other":"\xa40M","10000000-count-one":"\xa400M","10000000-count-other":"\xa400M","100000000-count-one":"\xa4000M","100000000-count-other":"\xa4000M","1000000000-count-one":"\xa40B","1000000000-count-other":"\xa40B","10000000000-count-one":"\xa400B","10000000000-count-other":"\xa400B","100000000000-count-one":"\xa4000B","100000000000-count-other":"\xa4000B","1000000000000-count-one":"\xa40T","1000000000000-count-other":"\xa40T","10000000000000-count-one":"\xa400T","10000000000000-count-other":"\xa400T","100000000000000-count-one":"\xa4000T","100000000000000-count-other":"\xa4000T"}},"unitPattern-count-one":"{0} {1}","unitPattern-count-other":"{0} {1}"},"miscPatterns-numberSystem-latn":{atLeast:"{0}+",range:"{0}\u2013{1}"}}}}};"en"===o.locale().locale&&(o.load(s),o.locale("en"));var l={},d=function(e){var t,n;return n="object"===("undefined"==typeof e?"undefined":i(e))?o.locale().locale+":"+JSON.stringify(e):o.locale().locale+":"+e,t=l[n],t||(t=l[n]=o.numberFormatter(e)),t},c={_formatNumberCore:function(e,t,n){return"exponential"===t?this.callBase.apply(this,arguments):d(this._normalizeFormatConfig(t,n,e))(e)},_normalizeFormatConfig:function(e,t,n){var i;return i="decimal"===e?{minimumIntegerDigits:t.precision||1,useGrouping:!1,minimumFractionDigits:0,maximumFractionDigits:20,round:n<0?"ceil":"floor"}:this._getPrecisionConfig(t.precision),"percent"===e&&(i.style="percent"),i},_getPrecisionConfig:function(e){var t;return t=null===e?{minimumFractionDigits:0,maximumFractionDigits:20}:{minimumFractionDigits:e||0,maximumFractionDigits:e||0}},format:function(e,t){return"number"!=typeof e?e:(t=this._normalizeFormat(t),t&&("function"==typeof t||t.type||t.formatter)?this.callBase.apply(this,arguments):d(t)(e))},parse:function(e,t){if(e){if(t&&(t.parser||"string"==typeof t))return this.callBase.apply(this,arguments);t&&r.log("W0011");var n=o.parseNumber(e);return isNaN(n)&&(n=this.callBase.apply(this,arguments)),n}}};a.inject(c)}},function(e,t,n){var i=n(2),o=n(5),a=n(4),r=n(1),s=n(89),l=n(12).getPublicElement,d=n(3).each,c=n(22).compileGetter,u=n(0).extend,h=n(33),p=n(17),f=n(131),g=n(41),m=n(14),_=n(73),v=n(15),w=n(495),y=n(38),x=n(9),b=n(21),C=n(6),k=n(196),I=n(97).deviceDependentOptions,S=n(197).default,D=n(62),T=n(7).Deferred,E=n(274).default,A="dx-list",B="dx-list-item",O="."+B,R="dx-list-item-icon-container",M="dx-list-item-icon",P="dx-list-group",F="dx-list-group-header",V="dx-list-group-body",H="dx-list-collapsible-groups",$="dx-list-group-collapsed",z="dx-list-group-header-indicator",L="dx-has-next",N="dx-list-next-button",W=".dx-list-select-all",q="dxListItemData",G=70,K=c("items"),j=S.inherit({_activeStateUnit:[O,W].join(","),_supportedKeys:function(){var e=this,t=function(t){var i=n(t),a=i.is(e.option("focusedElement"));a&&(o(i,t),i=n(t)),e.option("focusedElement",l(i)),e.scrollToItem(i)},n=function(t){var n=e.scrollTop(),o=e.$element().height(),a=i(e.option("focusedElement")),r=!0;if(!a.length)return i();for(;r;){var s=a[t]();if(!s.length)break;var l=s.position().top+s.outerHeight()/2;r=l<o+n&&l>n,r&&(a=s)}return a},o=function(t,n){var i=t.position().top;"prev"===n&&(i=t.position().top-e.$element().height()+t.outerHeight()),e.scrollTo(i)};return u(this.callBase(),{leftArrow:a.noop,rightArrow:a.noop,pageUp:function(){return t("prev"),!1},pageDown:function(){return t("next"),!1}})},_getDefaultOptions:function(){return u(this.callBase(),{hoverStateEnabled:!0,pullRefreshEnabled:!1,scrollingEnabled:!0,showScrollbar:"onScroll",useNativeScrolling:!0,bounceEnabled:!0,scrollByContent:!0,
|
|
@@ -33,8 +33,8 @@ value:function(e){return this._findWidgetInstance(function(t){return e===t.dataF
|
|
|
33
33
|
collision:"none"},right:{my:"left center",at:"right center",collision:"none"},left:{my:"right center",at:"left center",collision:"none"}},g=o.inherit({_getDefaultOptions:function(){return c(this.callBase(),{hoverStateEnabled:!1,value:0,tooltipEnabled:!1,tooltipFormat:function(e){return e},tooltipPosition:"top",tooltipShowMode:"onHover",tooltipFitIn:null})},_initMarkup:function(){this.callBase(),this.$element().addClass(p),this.setAria({role:"slider",valuenow:this.option("value")})},_render:function(){this._renderTooltip(),this.callBase()},_renderTooltip:function(){this.option("tooltipEnabled")?(this._$tooltip||(this._$tooltip=i("<div>").appendTo(this.$element())),this._$slider=this.$element().closest("."+h),this._updateTooltip()):this._removeTooltip()},_createTooltip:function(){return!this._tooltip&&(this._tooltip=this._createComponent(this._$tooltip,a,{visible:!0,target:this.$element(),closeOnOutsideClick:!1,container:this.$element(),closeOnBackButton:!1,closeOnTargetScroll:!1,onPositioned:function(e){this._saveTooltipElements(e.component),this._saveTooltipLocation(),this._centeredTooltipPosition()}.bind(this),animation:null,arrowPosition:null,templatesRenderAsynchronously:!1}),!0)},_removeTooltip:function(){this._$tooltip&&(this._$tooltip.remove(),delete this._$tooltip,delete this._tooltip)},_renderTooltipPosition:function(){if(this._tooltip){var e=this.option("tooltipPosition");this._saveTooltipElements(),this._resetTooltipPosition(),"string"===d.type(e)&&(e=c({boundary:this._$slider,boundaryOffset:{h:1,v:1}},f[e])),this._tooltip.option("position",e),this._saveTooltipLocation()}},_saveTooltipElements:function(e){e=this._tooltip||e,this._$tooltipContent=e.$content().parent(),this._$tooltipArrow=this._$tooltipContent.find(".dx-popover-arrow")},_resetTooltipPosition:function(){r.resetPosition(this._$tooltipContent),r.resetPosition(this._$tooltipArrow)},_saveTooltipLocation:function(){this._contentLocate=r.locate(this._$tooltipContent)},_centeredTooltipPosition:function(){if(this._tooltip){this._$tooltipContent.outerWidth("auto");var e=this._$tooltipContent.get(0).getBoundingClientRect().width,t=Math.ceil(e),n=t%2+t;this._$tooltipContent.outerWidth(n);var i=(n-this.$element().width())/2;this._contentLocate.left=-i,this._$tooltipArrow.css({marginLeft:-this._$tooltipArrow.outerWidth()/2,left:"50%"}),this._fitTooltip()}},_fitTooltip:function(){if(this._tooltip){var e=this.option("tooltipPosition");"string"===d.type(e)&&(e=c({of:this.$element(),boundary:this._$slider,boundaryOffset:{h:2,v:1}},f[e],{collision:"fit none"}));var t=s.calculate(this._$tooltipContent,e),n="left"===t.h.collisionSide,i=(n?-1:1)*t.h.oversize,o=this._contentLocate.left,a=this._contentLocate.left+this._$tooltipContent.outerWidth()-this._$tooltipArrow.outerWidth();r.move(this._$tooltipContent,{left:this._contentLocate.left+(n?1:-1)*t.h.oversize}),r.move(this._$tooltipArrow,{left:l.fitIntoRange(i,o,a)})}},_getFormattedValue:function(e){return u.format(e,this.option("tooltipFormat"))},_renderValue:function(){if(this._tooltip){var e=this.option("value");this._tooltip.$content().html(this._getFormattedValue(e)),this._fitTooltip()}},_updateTooltip:function(){var e=/^onhover$/i.test(this.option("tooltipShowMode"));e||this._createTooltip(),this.$element().toggleClass("dx-slider-tooltip-on-hover",e),this._renderTooltipPosition(),this._renderValue(),this._centeredTooltipPosition()},_clean:function(){this.callBase(),delete this._$tooltip,delete this._tooltip},_ensureTooltipIsCentered:function(e,t){d.isDefined(e)&&d.isDefined(t)&&e.toString().length!==t.toString().length&&this._centeredTooltipPosition()},_optionChanged:function(e){switch(e.name){case"tooltipFormat":this._renderValue();break;case"value":this._renderValue();var t=this._getFormattedValue(e.value),n=this._getFormattedValue(e.previousValue);this._ensureTooltipIsCentered(t,n),this.setAria("valuenow",e.value);break;case"tooltipEnabled":this._renderTooltip();break;case"tooltipPosition":this._renderTooltipPosition(),this._centeredTooltipPosition();break;case"tooltipShowMode":this._updateTooltip();break;case"tooltipFitIn":this._fitTooltip();break;default:this.callBase(e)}},fitTooltipPosition:function(){this._fitTooltip()},updateTooltip:function(){this._createTooltip()&&(this._renderTooltipPosition(),this._renderValue(),this._centeredTooltipPosition())},repaint:function(){this._renderTooltipPosition(),this._centeredTooltipPosition(),this._tooltip&&this._tooltip._visibilityChanged(!0)}});e.exports=g},function(e,t,n){var i=n(2),o=n(40),a=n(8),r=n(0).extend,s=n(136),l="dx-tooltip",d="dx-tooltip-wrapper",c=s.inherit({_getDefaultOptions:function(){return r(this.callBase(),{toolbarItems:[],showCloseButton:!1,showTitle:!1,title:null,titleTemplate:null,onTitleRendered:null,bottomTemplate:null,propagateOutsideClick:!0})},_render:function(){this.$element().addClass(l),this._wrapper().addClass(d),this.callBase()},_renderContent:function(){this.callBase(),this._contentId="dx-"+new o,this._$content.attr({id:this._contentId,role:"tooltip"}),this._toggleAriaDescription(!0)},_toggleAriaDescription:function(e){var t=i(this.option("target")),n=e?this._contentId:void 0;this.setAria("describedby",n,t)}});a("dxTooltip",c),e.exports=c},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(43),a=i(o),r=n(39);t.createGroupFilter=function(e,t){var n,i=(0,r.normalizeSortingInfo)(t.group),o=[];for(n=0;n<e.length;n++)o.push([i[n].selector,"=",e[n]]);return t.filter&&o.push(t.filter),a.default.combineFilters(o)}},function(e,t,n){function i(e,t,n,i){var o=0,a=0,r=n/2;return e+i-(t+n)>1?(e>=t+n+r&&(a=parseInt((e-(t+n))/r,10)),o=t+n+r*a):e<t?(e<=t-r&&(a=parseInt((e-(t-r))/r,10)),o=t-(n-r*a)):o=t,o}var o=n(2),a=n(10),r=n(12).getPublicElement,s=n(0).extend,l=n(1).isDefined,d="dx-expand",c=function(e){var t=0,n=e.offsetWidth;if(e.getBoundingClientRect){var i=e.getBoundingClientRect();t=i.width,t||(t=i.right-i.left),t<=n-1&&(t=n)}return t>0?t:n};t.AreaItem=a.inherit({_getRowElement:function(e){var t=this;return t._tableElement&&t._tableElement.length>0?t._tableElement[0].rows[e]:null},_createGroupElement:function(){return o("<div>")},_createTableElement:function(){return o("<table>")},_getCellText:function(e,t){var n=e.isWhiteSpace?" ":e.text||" ";return!t||n.indexOf("<")===-1&&n.indexOf(">")===-1||(n=o("<div>").text(n).html()),n},_getRowClassNames:function(){},_applyCustomStyles:function(e){e.cell.width&&e.cssArray.push("min-width:"+e.cell.width+"px"),e.cell.sorted&&e.classArray.push("dx-pivotgrid-sorted")},_getMainElementMarkup:function(){return"<tbody>"},_getCloseMainElementMarkup:function(){return"</tbody>"},_renderTableContent:function(e,t){var n,i,o,a,r,s,c,u,h=this,p=t.length,f=h.option("rtlEnabled"),g=[],m=h.option("encodeHtml"),_="colspan='",v="rowspan='";for(e.data("area",h._getAreaName()),e.data("data",t),e.css("width",""),g.push(h._getMainElementMarkup()),o=0;o<p;o++){n=t[o];var w=[];for(u=[],g.push("<tr "),a=0;a<n.length;a++){if(i=n[a],this._getRowClassNames(o,i,u),w.push("<td "),i){i.rowspan&&w.push(v+(i.rowspan||1)+"'"),i.colspan&&w.push(_+(i.colspan||1)+"'");var y={cellElement:s,cell:i,cellsCount:n.length,cellIndex:a,rowElement:r,rowIndex:o,rowsCount:p,rtlEnabled:f,classArray:[],cssArray:[]};h._applyCustomStyles(y),y.cssArray.length&&(w.push("style='"),w.push(y.cssArray.join(";")),w.push("'")),y.classArray.length&&(w.push("class='"),w.push(y.classArray.join(" ")),w.push("'")),w.push(">"),l(i.expanded)&&w.push("<div class='dx-expand-icon-container'><span class='"+d+"'></span></div>"),c=this._getCellText(i,m)}else c="";w.push("<span "),l(i.wordWrapEnabled)&&w.push("style='white-space:",i.wordWrapEnabled?"normal":"nowrap",";'"),w.push(">"+c+"</span>"),i.sorted&&w.push("<span class='dx-icon-sorted'></span>"),w.push("</td>")}u.length&&(g.push("class='"),g.push(u.join(" ")),g.push("'")),g.push(">"),g.push(w.join("")),g.push("</tr>")}g.push(this._getCloseMainElementMarkup()),e.append(g.join("")),this._triggerOnCellPrepared(e,t)},_triggerOnCellPrepared:function(e,t){var n,i,o,a,l,d,c,u=this,h=e.find("tr"),p=u._getAreaName(),f=u.option("onCellPrepared"),g=u.component.hasEvent("cellPrepared"),m=this.component._defaultActionArgs();if(f||g)for(d=0;d<t.length;d++)for(a=t[d],n=h.eq(d),c=0;c<a.length;c++)l=a[c],i=n.children().eq(c),o={area:p,rowIndex:d,columnIndex:c,cellElement:r(i),cell:l},g?u.component._trigger("onCellPrepared",o):f(s(o,m))},_getRowHeight:function(e){var t=this._getRowElement(e),n=0,i=t.offsetHeight;if(t&&t.lastChild){if(t.getBoundingClientRect){var o=t.getBoundingClientRect();n=o.height,n<=i-1&&(n=i)}return n>0?n:i}return 0},_setRowHeight:function(e,t){var n=this._getRowElement(e);n&&(n.style.height=t+"px")},ctor:function(e){this.component=e},option:function(){return this.component.option.apply(this.component,arguments)},getRowsLength:function(){var e=this;return e._tableElement&&e._tableElement.length>0?e._tableElement[0].rows.length:0},getRowsHeight:function(){var e,t=this,n=[],i=t.getRowsLength();for(e=0;e<i;e++)n.push(t._getRowHeight(e));return n},setRowsHeight:function(e){var t,n=this,i=0,o=e.length;for(t=0;t<o;t++)i+=e[t],n._setRowHeight(t,e[t]);this._tableHeight=i,this._tableElement[0].style.height=i+"px"},getColumnsWidth:function(){var e,t,n,i,o=this.getRowsLength(),a=[],r=[],s=function(e,t,n,i,o){var a,r;for(a=0;a<i;a++)for(r=0;r<o;r++)e[t+a]=e[t+a]||[],e[t+a][n+r]=!0};if(o)for(e=0;e<o;e++)for(a[e]=a[e]||[],t=this._getRowElement(e),n=0;n<t.cells.length;n++){for(i=0;a[e][i];i++);s(a,e,i,t.cells[n].rowSpan,t.cells[n].colSpan),1===t.cells[n].colSpan&&(r[i]=r[i]||c(t.cells[n]))}return r},setColumnsWidth:function(e){var t,n=0,i=this._tableElement[0],o="",a=this.getColumnsCount(),r=[];for(t=0;t<a;t++)r.push(e[t]||0);for(t=a;t<e.length&&e;t++)r[a-1]+=e[t];for(t=0;t<a;t++)n+=r[t],o+='<col style="width: '+r[t]+'px">';this._colgroupElement.html(o),this._tableWidth=n-this._groupWidth>.01?Math.ceil(n):n,i.style.width=this._tableWidth+"px",i.style.tableLayout="fixed"},resetColumnsWidth:function(){this._colgroupElement.find("col").width("auto"),this._tableElement.css({width:"",tableLayout:""})},groupWidth:function(e){return void 0===e?this._groupElement.width():e>=0?(this._groupWidth=e,this._groupElement[0].style.width=e+"px"):this._groupElement[0].style.width=e},groupHeight:function(e){return void 0===e?this._groupElement.height():(this._groupHeight=null,void(e>=0?(this._groupHeight=e,this._groupElement[0].style.height=e+"px"):this._groupElement[0].style.height=e))},groupElement:function(){return this._groupElement},tableElement:function(){return this._tableElement},element:function(){return this._rootElement},headElement:function(){return this._tableElement.find("thead")},_setTableCss:function(e){this.option("rtlEnabled")&&(e.right=e.left,delete e.left),this.tableElement().css(e)},setVirtualContentParams:function(e){this._virtualContent.css({width:e.width,height:e.height}),this.groupElement().addClass("dx-virtual-mode")},disableVirtualMode:function(){this.groupElement().removeClass("dx-virtual-mode")},_renderVirtualContent:function(){var e=this;e._virtualContent||"virtual"!==e.option("scrolling.mode")||(e._virtualContent=o("<div>").addClass("dx-virtual-content").insertBefore(e._tableElement))},reset:function(){var e=this,t=e._tableElement[0];if(e._fakeTable&&e._fakeTable.detach(),e._fakeTable=null,e.disableVirtualMode(),e.groupWidth("100%"),e.groupHeight("auto"),e.resetColumnsWidth(),t){for(var n=0;n<t.rows.length;n++)t.rows[n].style.height="";t.style.height="",t.style.width="100%"}},_updateFakeTableVisibility:function(){var e=this,t=e.tableElement()[0],n=e.option("rtlEnabled")?"right":"left",i=e._fakeTable[0];t.style.top===i.style.top&&i.style[n]===t.style[n]?e._fakeTable.addClass("dx-hidden"):e._fakeTable.removeClass("dx-hidden")},_moveFakeTableHorizontally:function(e){var t=this,n=t.option("rtlEnabled"),o=n?"right":"left",a=parseFloat(t.tableElement()[0].style[o]),r=i(e,a,t._tableWidth,t._groupWidth);parseFloat(t._fakeTable[0].style[o])!==r&&(t._fakeTable[0].style[o]=r+"px")},_moveFakeTableTop:function(e){var t=this,n=parseFloat(t.tableElement()[0].style.top),o=i(e,n,t._tableHeight,t._groupHeight);parseFloat(t._fakeTable[0].style.top)!==o&&(t._fakeTable[0].style.top=o+"px")},_moveFakeTable:function(){this._updateFakeTableVisibility()},_createFakeTable:function(){var e=this;e._fakeTable||(e._fakeTable=e.tableElement().clone().addClass("dx-pivot-grid-fake-table").appendTo(e._virtualContent))},render:function(e,t){var n=this;if(n._tableElement){try{n._tableElement[0].innerHTML=""}catch(e){n._tableElement.empty()}n._tableElement.attr("style","")}else n._groupElement=n._createGroupElement(),n._tableElement=n._createTableElement(),n._tableElement.appendTo(n._groupElement),n._groupElement.appendTo(e),n._rootElement=e;n._colgroupElement=o("<colgroup>").appendTo(n._tableElement),n._renderTableContent(n._tableElement,t),n._renderVirtualContent()},_getScrollable:function(){return this.groupElement().data("dxScrollable")},on:function(e,t){var n=this,i=n._getScrollable();return i&&i.on(e,function(e){n.option("rtlEnabled")&&l(e.scrollOffset.left)&&(e.scrollOffset.left=i.$content().width()-i._container().width()-e.scrollOffset.left),t(e)}),this},off:function(e){var t=this._getScrollable();return t&&t.off(e),this},scrollTo:function(e){var t=this._getScrollable(),n=e;t&&(this.option("rtlEnabled")&&("column"===this._getAreaName()?n=t.$content().width()-t._container().width()-e:"data"===this._getAreaName()&&(n={x:t.$content().width()-t._container().width()-e.x,y:e.y})),t.scrollTo(n),this._virtualContent&&(this._createFakeTable(),this._moveFakeTable(e)))},updateScrollable:function(){var e=this._getScrollable();if(e)return e.update()},getColumnsCount:function(){var e,t=0,n=this._getRowElement(0);if(n){e=n.cells;for(var i=0,o=e.length;i<o;++i)t+=e[i].colSpan}return t},getData:function(){var e=this._tableElement;return e?e.data("data"):[]}})},function(e,t,n){function i(e,t){var n=t;return c(t.groupIndex)&&(n=e.getAreaFields(t.area,!0)[t.areaIndex]),n}function o(e){return e=e||{},JSON.stringify([e.fields,e.columnExpandedPaths,e.rowExpandedPaths])}var a=n(2),r=n(5),s=n(80),l=n(17),d=n(4).noop,c=n(1).isDefined,u=n(11).inArray,h=n(0).extend,p=n(3),f=n(14),g=n(8),m=n(27),_=n(418),v=n(392),w=n(397),y=n(98),x=n(675),b=n(7).Deferred,C=p.each,k=1,I="<div>",S=_.HeaderFilterView.inherit({_getSearchExpr:function(e){return e.useDefaultSearchExpr=!0,this.callBase(e)}}),D=function(e,t){var n=[],i=!!t.groupName,o="exclude"===t.filterType;t.filterValues&&C(t.filterValues,function(e,t){n.push(Array.isArray(t)?t.join("/"):t&&t.valueOf())}),y.foreachTree(e,function(e){var t,a=e[0],r=y.createPath(e),s=i?p.map(e,function(e){return e.text}).reverse().join("/"):a.text;a.value=i?r.slice(0):a.key||a.value,t=i?r.join("/"):a.value&&a.value.valueOf(),a.children&&(a.items=a.children,a.children=null),_.updateHeaderFilterItemSelectionState(a,a.key&&u(s,n)>-1||u(t,n)>-1,o)})},T=m.inherit(v).inherit(w).inherit(_.headerFilterMixin).inherit({_getDefaultOptions:function(){return h(this.callBase(),{allowFieldDragging:!0,applyChangesMode:"instantly",state:null,headerFilter:{width:252,height:325,searchTimeout:500,texts:{emptyValue:f.format("dxDataGrid-headerFilterEmptyValue"),ok:f.format("dxDataGrid-headerFilterOK"),cancel:f.format("dxDataGrid-headerFilterCancel")}}})},_init:function(){this.callBase(),this._headerFilterView=new S(this),this._refreshDataSource(),this.subscribeToEvents()},_refreshDataSource:function(){var e=this.option("dataSource");e&&e.fields&&e.load&&(this._dataSource=e)},_optionChanged:function(e){switch(e.name){case"dataSource":this._refreshDataSource();break;case"applyChangesMode":break;case"state":if(this._skipStateChange||!this._dataSource)break;"instantly"===this.option("applyChangesMode")&&o(this._dataSource.state())!==o(e.value)?this._dataSource.state(e.value):(this._clean(!0),this._renderComponent());break;case"headerFilter":case"allowFieldDragging":this._invalidate();break;default:this.callBase(e)}},renderField:function(e,t){var n=this,o=a(I).addClass("dx-area-field-content").text(e.caption||e.dataField),r=a(I).addClass("dx-area-field").addClass("dx-area-box").data("field",e).append(o),s=i(n._dataSource,e);return"data"!==e.area&&(e.allowSorting&&n._applyColumnState({name:"sort",rootElement:r,column:{alignment:n.option("rtlEnabled")?"right":"left",sortOrder:"desc"===e.sortOrder?"desc":"asc"},showColumnLines:t}),n._applyColumnState({name:"headerFilter",rootElement:r,column:{alignment:n.option("rtlEnabled")?"right":"left",filterValues:s.filterValues,allowFiltering:s.allowFiltering&&!e.groupIndex},showColumnLines:t})),e.groupName&&r.attr("item-group",e.groupName),r},_clean:function(){},_render:function(){this.callBase(),this._headerFilterView.render(this.$element())},renderSortable:function(){var e=this;e._createComponent(e.$element(),x,h({allowDragging:e.option("allowFieldDragging"),itemSelector:".dx-area-field",itemContainerSelector:".dx-area-field-container",groupSelector:".dx-area-fields",groupFilter:function(){var t=e._dataSource,n=a(this).closest(".dx-sortable"),i=n.data("dxPivotGrid"),o=n.data("dxPivotGridFieldChooser");return i?i.getDataSource()===t:!!o&&o.option("dataSource")===t},itemRender:function(e,t){var n;if(e.hasClass("dx-area-box")?(n=e.clone(),"drag"===t&&C(e,function(e,t){n.eq(e).css("width",parseInt(a(t).outerWidth(),10)+k)})):n=a(I).addClass("dx-area-field").addClass("dx-area-box").text(e.text()),"drag"===t){var i=a(I);return C(n,function(e,t){var n=a("<div>").addClass("dx-pivotgrid-fields-container").addClass("dx-widget").append(a(t));i.append(n)}),i.children()}return n},onDragging:function(e){var t=e.sourceElement.data("field"),n=e.targetGroup;e.cancel=!1,t.isMeasure===!0?"column"!==n&&"row"!==n&&"filter"!==n||(e.cancel=!0):t.isMeasure===!1&&"data"===n&&(e.cancel=!0)},useIndicator:!0,onChanged:function(t){var n=e._dataSource,o=t.sourceElement.data("field");t.removeSourceElement=!!t.sourceGroup,e._adjustSortableOnChangedArgs(t),o&&e._applyChanges([i(n,o)],{area:t.targetGroup,areaIndex:t.targetIndex})}},e._getSortableOptions()))},_processDemandState:function(e){var t=this,n="instantly"===t.option("applyChangesMode"),i=t._dataSource;if(n)e(i,n);else{var o=i.state();i.state(t.option("state"),!0),e(i,n),i.state(o,!0)}},_applyChanges:function(e,t){var n=this;n._processDemandState(function(i,o){e.forEach(function(e){var n=e.index;i.field(n,t)}),o?i.load():n._changedHandler()})},_adjustSortableOnChangedArgs:function(e){e.removeSourceElement=!1,e.removeTargetElement=!0,e.removeSourceClass=!1},_getSortableOptions:function(){return{direction:"auto"}},subscribeToEvents:function(e){var t=this,n=function(e){var n=a(e.currentTarget).data("field"),o=h(!0,{},i(t._dataSource,n)),r=a(e.target).hasClass("dx-header-filter"),l=t._dataSource;r?t._headerFilterView.showHeaderFilterMenu(a(e.currentTarget),h(o,{type:o.groupName?"tree":"list",encodeHtml:t.option("encodeHtml"),dataSource:{useDefaultSearch:!0,load:function(e){var t=e.userData;if(t.store)return t.store.load(e);var n=new b;return l.getFieldValues(o.index).done(function(i){t.store=new s(i),t.store.load(e).done(n.resolve).fail(n.reject)}).fail(n.reject),n},postProcess:function(e){return D(e,o),e}},apply:function(){t._applyChanges([o],{filterValues:this.filterValues,filterType:this.filterType})}})):n.allowSorting&&"data"!==n.area&&t._applyChanges([n],{sortOrder:"desc"===n.sortOrder?"asc":"desc"})};return e?void r.on(e,l.name,".dx-area-field.dx-area-box",n):void r.on(t.$element(),l.name,".dx-area-field.dx-area-box",n)},_initTemplates:d,addWidgetPrefix:function(e){return"dx-pivotgrid-"+e}});g("dxPivotGridFieldChooserBase",T),e.exports=T},function(e,t,n){var i=n(2),o=n(13),a=n(37),r=n(1),s=n(12).getPublicElement,l="tr",d={VERTICAL:"vertical",HORIZONTAL:"horizontal",insertAllDayRow:function(e,t,n){if(e[n]){var a=e[n].find(l);a.length||(a=i(o.createElement(l)),a.append(e[n].get(0))),t.appendChild(a.get?a.get(0):a)}},makeTable:function(e){var t,n=o.createElement("tbody"),d=[],c=e.groupCount?e.rowCount/e.groupCount:e.rowCount,u=0,h=e.allDayElements,p=e.groupIndex,f=e.rowCount;i(e.container).append(n),h&&(this.insertAllDayRow(h,n,0),u++);for(var g=0;g<f;g++){t=o.createElement(l),n.appendChild(t);var m=(g+1)%c===0;e.rowClass&&(t.className=e.rowClass);for(var _=0;_<e.cellCount;_++){var v=o.createElement("td");t.appendChild(v),e.cellClass&&(r.isFunction(e.cellClass)?v.className=e.cellClass(g,_):v.className=e.cellClass);var w,y,x;if(e.getCellData&&(w=e.getCellData(v,g,_,p),y=w.key,x=w.value,y&&a.data(v,y,x)),e.cellTemplate&&e.cellTemplate.render){var b={model:{text:e.getCellText?e.getCellText(g,_):"",date:e.getCellDate?e.getCellDate(g):void 0},container:s(i(v)),index:g*e.cellCount+_};x&&(x.startDate&&(b.model.startDate=x.startDate),x.endDate&&(b.model.endDate=x.endDate),x.groups&&(b.model.groups=x.groups),x.allDay&&(b.model.allDay=x.allDay)),d.push(e.cellTemplate.render.bind(e.cellTemplate,b))}else e.getCellText&&(v.innerHTML="<div>"+e.getCellText(g,_)+"</div>")}h&&m&&(this.insertAllDayRow(h,n,u),u++)}return d},makeGroupedTable:function(e,t,n,i,o,a,r){var s=[];return s=e===this.VERTICAL?this._makeVerticalGroupedRows(t,n,o,a):this._makeHorizontalGroupedRows(t,n,i,o,r)},makeGroupedTableFromJSON:function(e,t,n){function i(){c=o.createElement("table"),m&&(c.className=m)}function a(e){return e[f]?e[f].length:0}function r(e,t,n,i){var a={element:o.createElement(p),childCount:t};v&&(a.element.className=v);var r=o.createTextNode(e);return"function"==typeof w?w(a.element,r,n,i):a.element.appendChild(r),a}function s(e){for(var t=0;t<e.length;t++){var n=a(e[t]),i=r(e[t][g],n,t,e[t]);u[h]||(u[h]=[]),u[h].push(i),n?s(e[t][f]):h++}}function d(){u.forEach(function(e){var t=o.createElement(l);_&&(t.className=_);for(var n=[],i=e.length-1;i>=0;i--){var a=e[i+1],r=e[i].childCount;a&&a.childCount&&(r*=a.childCount),n.push(r)}n.reverse(),e.forEach(function(e,i){n[i]&&e.element.setAttribute("rowSpan",n[i]),t.appendChild(e.element)}),c.appendChild(t)})}var c,u=[],h=0;n=n||{};var p=n.cellTag||"td",f=n.childrenField||"children",g=n.titleField||"title",m=n.groupTableClass,_=n.groupRowClass,v=n.groupCellClass,w=n.groupCellCustomContent;return i(),s(t),d(),c},_makeVerticalGroupedRows:function(e,t,n,o){var a,r=[],s=1,l=[],d=function(e){e.template&&r.push(e.template)};for(a=0;a<e.length;a++){a>0&&(s=e[a-1].items.length*s);var c=this._makeGroupedRowCells(e[a],s,t,n);c.forEach(d),l.push(c)}var u=[],h=l.length,p=l[h-1].length;for(a=0;a<p;a++)u.push(i("<tr>").addClass(t.groupHeaderRowClass));for(a=h-1;a>=0;a--)for(var f=l[a].length,g=p/f,m=0;m<f;m++){var _=m*g,v=u[_];v.prepend(l[a][m].element.attr("rowSpan",g))}return{elements:u,cellTemplates:r}},_makeHorizontalGroupedRows:function(e,t,n,o,a){for(var r=1,s=e.length,l=[],d=[],c=a?n:1,u=function(e){return e.template&&d.push(e.template),e.element},h=0;h<s;h++){h>0&&(r=e[h-1].items.length*r);var p=this._makeGroupedRowCells(e[h],r,t,o,c);l.push(i("<tr>").addClass(t.groupRowClass).append(p.map(u)))}for(var f=l[s-1].find("th").length,g=0;g<s;g++){var m=l[g].find("th"),_=f/m.length;a||(_*=n),(_>1&&1===c||a&&s>1)&&m.attr("colSpan",_)}return{elements:l,cellTemplates:d}},_makeGroupedRowCells:function(e,t,n,o,a){a=a||1,t*=a;for(var l=[],d=e.items,c=d.length,u=0;u<t;u++)for(var h=0;h<c;h++){var p=i("<div>"),f={};if(o&&o.render){var g={model:d[h],container:s(p),index:u*c+h};e.data&&(g.model.data=e.data[h]),f.template=o.render.bind(o,g)}else p.text(d[h].text),p=i("<div>").append(p);p.addClass(n.groupHeaderContentClass);var m;m=r.isFunction(n.groupHeaderClass)?n.groupHeaderClass(h):n.groupHeaderClass,f.element=i("<th>").addClass(m).append(p),l.push(f)}return l}};e.exports=d},function(e,t,n){var i=n(2),o=n(4).noop,a=n(0).extend,r=n(8),s=n(264),l=n(25),d=n(309),c=n(694),u="dx-scheduler-timeline",h="dx-scheduler-group-table",p="dx-scheduler-work-space-horizontal-grouped",f="dx-scheduler-header-panel-cell",g="dx-scheduler-header-panel-week-cell",m="dx-scheduler-header-row",_="horizontal",v=1,w=10,y=l.dateToMilliseconds,x=s.inherit({_init:function(){this.callBase(),this.$element().addClass(u),this._$sidebarTable=i("<table>").addClass(h)},_getCellFromNextRow:function(e,t){return t?this._$focusedCell:this.callBase(e,t)},_getDefaultGroupStrategy:function(){return"vertical"},_toggleGroupingDirectionClass:function(){this.$element().toggleClass(p,this._isHorizontalGroupedWorkSpace())},_getDefaultOptions:function(){return a(this.callBase(),{groupOrientation:"vertical"})},_getRightCell:function(){var e,t=this._$focusedCell,n=this._getCellCount(),i=this._isRTL()?0:n-1,o=this._isRTL()?"prev":"next";return t.index()===i?e=t:(e=t[o](),e=this._checkForViewBounds(e)),e},_getLeftCell:function(){var e,t=this._$focusedCell,n=this._getCellCount(),i=this._isRTL()?n-1:0,o=this._isRTL()?"next":"prev";return t.index()===i?e=t:(e=t[o](),e=this._checkForViewBounds(e)),e},_getRowCount:function(){return 1},_getCellCount:function(){return this._getCellCountInDay()*this.option("intervalCount")},getGroupTableWidth:function(){return this._$sidebarTable?this._$sidebarTable.outerWidth():0},_getTotalRowCount:function(e){return this._isHorizontalGroupedWorkSpace()?this._getRowCount():(e=e||1,this._getRowCount()*e)},_getDateByIndex:function(e){var t=new Date(this._firstViewDate),n=Math.floor(e/this._getCellCountInDay());return t.setTime(this._firstViewDate.getTime()+this._calculateCellIndex(0,e)*this._getInterval()+n*this._getHiddenInterval()),t},_getFormat:function(){return"shorttime"},_needApplyLastGroupCellClass:function(){return!0},_calculateHiddenInterval:function(e,t){var n=Math.floor(t/this._getCellCountInDay());return n*this._getHiddenInterval()},_getMillisecondsOffset:function(e,t){return t=this._calculateCellIndex(e,t),this._getInterval()*t+this._calculateHiddenInterval(e,t)},_createWorkSpaceElements:function(){this._createWorkSpaceScrollableElements()},_getWorkSpaceHeight:function(){return this.option("crossScrollingEnabled")?this._$dateTable.get(0).getBoundingClientRect().height:this.$element().get(0).getBoundingClientRect().height},_dateTableScrollableConfig:function(){var e,t=this.callBase(),n={direction:_,onStart:function(){this._headerScrollable&&(e=this._headerScrollable.option("onScroll"),this._headerScrollable.option("onScroll",void 0))}.bind(this),onScroll:function(e){this._headerScrollable&&this._headerScrollable.scrollTo({left:e.scrollOffset.left})}.bind(this),onEnd:function(t){this._headerScrollable&&this._headerScrollable.option("onScroll",e)}.bind(this)};return this.option("crossScrollingEnabled")?t:a(t,n)},_headerScrollableConfig:function(){var e=this.callBase();return a(e,{scrollByContent:!0})},_renderTimePanel:o,_renderAllDayPanel:o,_getTableAllDay:function(){return!1},_getDateHeaderTemplate:function(){return this.option("timeCellTemplate")},_toggleAllDayVisibility:o,_changeAllDayVisibility:o,supportAllDayRow:function(){return!1},_getGroupHeaderContainer:function(){return this._isHorizontalGroupedWorkSpace()?this._$thead:this._$sidebarTable},_insertAllDayRowsIntoDateTable:function(){return!1},_createAllDayPanelElements:o,_renderDateHeader:function(){var e=this.callBase();if(this._needRenderWeekHeader()){for(var t=new Date(this._firstViewDate),n=[],o=this._getCellCountInDay(),a=this.option("dateCellTemplate"),r=0;r<this._getWeekDuration()*this.option("intervalCount");r++){var s=i("<th>"),l=this._formatWeekdayAndDay(t);if(a){var d={model:{text:l,date:new Date(t)},container:s,index:r};a.render(d)}else s.text(l);s.addClass(f).addClass(g).attr("colSpan",o),n.push(s),this._incrementDate(t)}var c=i("<tr>").addClass(m).append(n);e.before(c)}},_needRenderWeekHeader:function(){return!1},_incrementDate:function(e){e.setDate(e.getDate()+1)},_getWeekDuration:function(){return 1},_renderView:function(){this._setFirstViewDate();var e=this._renderGroupHeader();this._renderDateHeader(),this._renderAllDayPanel(),this._renderTimePanel(),this._renderDateTable(),this._shader=new c,this._updateGroupTableHeight(),this._$sidebarTable.appendTo(this._sidebarScrollable.$content()),this._applyCellTemplates(e)},_setHorizontalGroupHeaderCellsHeight:o,getIndicationWidth:function(){var e=this._getToday(),t=this.getCellWidth(),n=this._getIndicationFirstViewDate(),i=this._getHiddenInterval(),o=e.getTime()-n.getTime(),a=Math.ceil(o/y("day"))-1,r=o-a*i,s=r/this.getCellDuration();return s*t},_renderIndicator:function(e,t,n,i){var o,a=this.getIndicationWidth();if("vertical"===this.option("groupOrientation"))o=this._createIndicator(n),o.height(n.get(0).getBoundingClientRect().height),o.css("left",t?t-a:a);else for(var r=0;r<i;r++){var s=this._getCellCount()*this.getCellWidth()*r;o=this._createIndicator(n),o.height(n.get(0).getBoundingClientRect().height),o.css("left",t?t-a-s:a+s)}},_isVerticalShader:function(){return!1},_isCurrentTimeHeaderCell:function(e){var t=!1;if(this.option("showCurrentTimeIndicator")&&this._needRenderDateTimeIndicator()){var n=this._getDateByIndex(e),i=this._getToday();if(n=new Date(n),l.sameDate(i,n)){var o=new Date(n),a=new Date(n);a=a.setMilliseconds(n.getMilliseconds()+this.getCellDuration()),t=l.dateInRange(i,o,a)}}return t},_cleanView:function(){this.callBase(),this._$sidebarTable.empty()},_visibilityChanged:function(e){this.callBase(e)},_setTableSizes:function(){var e=this.getCellHeight(),t=this._getWorkSpaceMinHeight(),n=this._$sidebarTable.find("tr"),i=e*n.length;i<t&&(i=t),this._$sidebarTable.height(i),this._$dateTable.height(i),this.callBase()},_getWorkSpaceMinHeight:function(){var e=this._getWorkSpaceHeight(),t=this.$element().outerHeight(!0)-this.getHeaderPanelHeight()-2*v-w;return e<t&&(e=t),e},_makeGroupRows:function(e,t){var n="vertical"===this.option("groupOrientation")?d.VERTICAL:d.HORIZONTAL;return d.makeGroupedTable(n,e,{groupRowClass:this._getGroupRowClass(),groupHeaderRowClass:this._getGroupRowClass(),groupHeaderClass:this._getGroupHeaderClass.bind(this),groupHeaderContentClass:this._getGroupHeaderContentClass()},this._getCellCount()||1,this.option("resourceCellTemplate"),this._getTotalRowCount(this._getGroupCount()),t)},_ensureGroupHeaderCellsHeight:function(e){var t=this._calculateMinCellHeight();return e<t?t:e},_calculateMinCellHeight:function(){var e=this._getDateTable(),t="."+this._getDateTableRowClass();return e.get(0).getBoundingClientRect().height/e.find(t).length-2*v},_getCellCoordinatesByIndex:function(e){return{cellIndex:e%this._getCellCount(),rowIndex:0}},_getCellByCoordinates:function(e,t){var n=this._groupedStrategy.prepareCellIndexes(e,t);return this._$dateTable.find("tr").eq(n.rowIndex).find("td").eq(n.cellIndex)},_getWorkSpaceWidth:function(){return this._$dateTable.outerWidth(!0)},_getGroupIndexByCell:function(e){return e.parent().index()},_getIndicationFirstViewDate:function(){return new Date(this._firstViewDate)},_getIntervalBetween:function(e,t){var n=this.option("startDayHour"),i=this.option("endDayHour"),o=this.getStartViewDate(),a=o.getTime(),r=(24-i+n)*y("hour"),s=l.getTimezonesDifference(o,e),d=e.getTime(),c=d-a-s,u=Math.floor(c/y("day")),h=c-u*y("day"),p=0,f=this._getCellCountInDay()*(u-this._getWeekendsCount(u)),g=d-l.trimTime(new Date(e)).getTime(),m=f*this.option("hoursInterval")*y("hour");return t||(e.getHours()<n?p=h-r+g:e.getHours()>=n&&e.getHours()<i?p=h:e.getHours()>=n&&e.getHours()>=i?p=h-(g-i*y("hour")):u||(m=c),m+=p),m},_getWeekendsCount:function(){return 0},getAllDayContainer:function(){return null},getTimePanelWidth:function(){return 0},getPositionShift:function(e){var t=this.callBase(e),n=this.getCellWidth()*e;return this.option("rtlEnabled")&&(n*=-1),n+=t.left,{top:0,left:n,cellPosition:n}},getVisibleBounds:function(){var e=this.option("rtlEnabled"),t={},n=this.getScrollable().$element(),i=this.getCellWidth(),o=e?this.getScrollableOuterWidth()-this.getScrollableScrollLeft():this.getScrollableScrollLeft(),a=o/i,r=n.width()/i,s=e?a-r:a+r,d=this._getDateByIndex(a),c=this._getDateByIndex(s);return e&&(d=this._getDateByIndex(s),c=this._getDateByIndex(a)),t.left={hours:d.getHours(),minutes:d.getMinutes()>=30?30:0,date:l.trimTime(d)
|
|
34
34
|
},t.right={hours:c.getHours(),minutes:c.getMinutes()>=30?30:0,date:l.trimTime(c)},t},needUpdateScrollPosition:function(e,t,n,i){var o=!1;return o=this._dateWithinBounds(n,i),(e<n.left.hours||e>n.right.hours)&&(o=!0),e===n.left.hours&&t<n.left.minutes&&(o=!0),e===n.right.hours&&t>n.right.minutes&&(o=!0),o},getIntervalDuration:function(e){return this.getCellDuration()},_dateWithinBounds:function(e,t){var n=l.trimTime(new Date(t)),i=!1;return(n<e.left.date||n>e.right.date)&&(i=!0),i},_supportCompactDropDownAppointments:function(){return!1},getCellMinWidth:function(){return 0},getWorkSpaceLeftOffset:function(){return 0},scrollToTime:function(e,t,n){var i=this._getScrollCoordinates(e,t,n),o=this.getScrollable(),a=this.option("rtlEnabled")?this.getScrollableContainer().get(0).getBoundingClientRect().width:0;o.scrollBy({left:i.left-o.scrollLeft()-a,top:0})}});r("dxSchedulerTimeline",x),e.exports=x},function(e,t,n){var i=n(4).noop,o=n(10),a=n(0).extend,r=n(20),s=n(25),l=n(1).isNumeric,d=n(1),c=n(21),u=s.dateToMilliseconds,h=o.abstract,p=1,f=2,g=15,m=20,_=40,v=18,w=22,y=3,x=24,b=o.inherit({ctor:function(e){this.instance=e},getAppointmentMinSize:function(){return f},keepAppointmentSettings:function(){return!1},getDeltaTime:h,getAppointmentGeometry:function(e){return e},needCorrectAppointmentDates:function(){return!0},getDirection:function(){return"horizontal"},createTaskPositionMap:function(e){delete this._maxAppointmentCountPerCell;var t=e&&e.length;if(t){this._defaultWidth=this.instance._cellWidth,this._defaultHeight=this.instance._cellHeight,this._allDayHeight=this.instance._allDayCellHeight;for(var n=[],i=0;i<t;i++){var o=this._getItemPosition(e[i]);this._isRtl()&&(o=this._correctRtlCoordinates(o)),n.push(o)}var a=this._getSortedPositions(n),r=this._getResultPositions(a);return this._getExtendedPositionMap(n,r)}},_getDeltaWidth:function(e,t){var n=this.instance.fire("getResizableStep")||this.getAppointmentMinSize(),i=t.width;return Math.round((e.width-i)/n)},_correctRtlCoordinates:function(e){for(var t=e[0].width||this._getAppointmentMaxWidth(),n=0;n<e.length;n++){var i=e[n];i.appointmentReduced||(i.left-=t)}return e},_getAppointmentMaxWidth:function(){return this._defaultWidth},_getItemPosition:function(e){for(var t=this._getAppointmentCoordinates(e),n=this.isAllDay(e),i=[],o=new Date(this.instance.fire("getField","startDate",e)),r=!!this.instance.fire("getField","recurrenceRule",e),s=0;s<t.length;s++){var l=this.calculateAppointmentHeight(e,t[s],r),d=this.calculateAppointmentWidth(e,t[s],r),c=d,u=null,h=[],p=t[s].rowIndex,f=t[s].cellIndex;if(this._needVerifyItemSize()||n){var g=t[s].hMax;this.isAppointmentGreaterThan(g,{left:t[s].left,width:d})&&(u="head",p=t[s].rowIndex,f=t[s].cellIndex,c=this._reduceMultiWeekAppointment(d,{left:t[s].left,right:g}),h=this._getAppointmentParts({sourceAppointmentWidth:d,reducedWidth:c,height:l},t[s],o),this._isRtl()&&(t[s].left=g))}a(t[s],{height:l,width:c,allDay:n,rowIndex:p,cellIndex:f,appointmentReduced:u}),i=this._getAppointmentPartsPosition(h,t[s],i)}return i},_getAppointmentPartsPosition:function(e,t,n){return e.length?(e.unshift(t),n=n.concat(e)):n.push(t),n},_getAppointmentCoordinates:function(e){var t=[{top:0,left:0}];return this.instance.fire("needCoordinates",{startDate:this.startDate(e),originalStartDate:this.startDate(e,!0),appointmentData:e,callback:function(e){t=e}}),t},_isRtl:function(){return this.instance.option("rtlEnabled")},_getAppointmentParts:function(){return[]},_getCompactAppointmentParts:function(e){var t=this._defaultWidth||this.getAppointmentMinSize();return Math.round(e/t)},_reduceMultiWeekAppointment:function(e,t){return e=this._isRtl()?Math.floor(t.left-t.right):t.right-Math.floor(t.left)},calculateAppointmentHeight:function(){return 0},calculateAppointmentWidth:function(){return 0},isAppointmentGreaterThan:function(e,t){var n=t.left+t.width-e;return this._isRtl()&&(n=e+t.width-t.left),n>this._defaultWidth/2},isAllDay:function(){return!1},cropAppointmentWidth:function(e,t){return this.instance.fire("isGroupedByDate")&&(e=t),e},_getSortedPositions:function(e){for(var t=[],n=function(e){return Math.round(100*e)/100},i=function(e,t,i,o,a,r,s,l){return{i:e,j:t,top:n(i),left:n(o),cellPosition:a,isStart:r,allDay:s,__tmpIndex:l}},o=0,a=0,r=e.length;a<r;a++)for(var s=0,l=e[a].length;s<l;s++){var d=e[a][s],c=d.top,u=d.left,h=d.height,p=d.width,f=d.cellPosition,g=d.allDay,m=i(a,s,c,u,f,!0,g,o);o++;var _=i(a,s,c+h,u+p,f,!1,g,o);o++,t.push(m,_)}return t.sort(function(e,t){return this._sortCondition(e,t)}.bind(this))},_fixUnstableSorting:function(e,t,n){if(0===e){if(t.__tmpIndex<n.__tmpIndex)return-1;if(t.__tmpIndex>n.__tmpIndex)return 1}return e},_sortCondition:h,_rowCondition:function(e,t){var n=this._isSomeEdge(e,t),i=this._normalizeCondition(e.left,t.left,n),o=this._normalizeCondition(e.top,t.top,n);return i?i:o?o:e.isStart-t.isStart},_columnCondition:function(e,t){var n=this._isSomeEdge(e,t),i=this._normalizeCondition(e.left,t.left,n),o=this._normalizeCondition(e.top,t.top,n);return o?o:i?i:e.isStart-t.isStart},_isSomeEdge:function(e,t){return e.i===t.i&&e.j===t.j},_normalizeCondition:function(e,t,n){var i=e-t;return n||Math.abs(i)>1?i:0},_getResultPositions:function(e){for(var t,n=[],i=[],o=[],a=[],r=0,s=0,l=0;l<e.length;l++){var d,c=e[l];if(c.isStart){for(t=void 0,d=0;d<i.length;d++)if(!i[d]){t=d,i[d]=!0;break}if(void 0===t)for(t=i.length,i.push(!0),d=0;d<n.length;d++)n[d].count++;n.push({index:t,count:i.length,i:c.i,j:c.j,sortedIndex:this._skipSortedIndex(t)?null:s++}),r<i.length&&(r=i.length)}else{var u=this._findIndexByKey(n,"i","j",c.i,c.j),h=n[u];if(n.splice(u,1),i[h.index]=!1,a.push(h),!n.length){i=[];for(var p=0;p<a.length;p++)a[p].count=r;a=[],r=0}o.push(h)}}return o.sort(function(e,t){var n=e.j-t.j,i=e.i-t.i;return i?i:n})},_skipSortedIndex:function(e){return this.instance.fire("getMaxAppointmentsPerCell")&&e>this._getMaxAppointmentCountPerCell()-1},_findIndexByKey:function(e,t,n,i,o){for(var a=0,r=0,s=e.length;r<s;r++)if(e[r][t]===i&&e[r][n]===o){a=r;break}return a},_getExtendedPositionMap:function(e,t){for(var n=0,i=[],o=0,a=e.length;o<a;o++){for(var r=[],s=0,l=e[o].length;s<l;s++)e[o][s].index=t[n].index,e[o][s].sortedIndex=t[n].sortedIndex,e[o][s].count=t[n++].count,r.push(e[o][s]),this._checkLongCompactAppointment(e[o][s],r);i.push(r)}return i},_checkLongCompactAppointment:i,_splitLongCompactAppointment:function(e,t){var n=this._getMaxAppointmentCountPerCellByType(e.allDay),i=0;if(void 0!==n&&e.index>n-1){e.isCompact=!0,i=this._getCompactAppointmentParts(e.width);for(var o=1;o<i;o++){var r=a(!0,{},e);r.left=this._getCompactLeftCoordinate(e.left,o),r.cellIndex=r.cellIndex+o,r.sortedIndex=null,t.push(r)}}return t},startDate:function e(t,n,i){var e=i&&i.startDate,o=this.instance._getStartDate(t,n),a=this.instance.fire("getField","text",t);if((e&&o>e||!e)&&(e=o),isNaN(e.getTime()))throw r.Error("E1032",a);return e},endDate:function e(t,n,i){var e=this.instance._getEndDate(t),o=this.startDate(t,!0),a=this.startDate(t,!1,n);if(a.getTime()>e.getTime()||i){var r=n?n.initialStartDate||n.startDate:o,l=n?n.startDate:o,d=e.getTime()-o.getTime();if(d=this._adjustDurationByDaylightDiff(d,o,e),e=new Date(a.getTime()>=r.getTime()?r.getTime():a.getTime()),i&&(e=new Date(e.getTime()+d)),!s.sameDate(o,e)&&l.getTime()<a.getTime()){var c=s.trimTime(e).getTime()-l.getTime(),u=d-c||d;e=new Date(s.trimTime(a).getTime()+u)}}if(!this.isAllDay(t)){var h=s.roundToHour(this.instance.fire("getEndViewDate"));e>h&&(e=h)}return e},_adjustDurationByDaylightDiff:function(e,t,n){var i=this.instance.fire("getDaylightOffset",t,n);return this._needAdjustDuration(i)?this._calculateDurationByDaylightDiff(e,i):e},_needAdjustDuration:function(e){return 0!==e},_calculateDurationByDaylightDiff:function(e,t){return e+t*u("minute")},_getAppointmentDurationInMs:function(e,t,n){var i;return this.instance.fire("getAppointmentDurationInMs",{startDate:e,endDate:t,allDay:n,callback:function(e){i=e}}),i},_getMaxNeighborAppointmentCount:function(){var e=this.instance.fire("getMaxAppointmentsPerCell");if(e)return 0;var t=this.getCompactAppointmentDefaultSize()+this.getCompactAppointmentDefaultOffset();return Math.floor(this.getCompactAppointmentGroupMaxWidth()/t)},_markAppointmentAsVirtual:function(e,t){var n=this._getMaxAppointmentCountPerCellByType(t);e.count-n>this._getMaxNeighborAppointmentCount()&&(e.virtual={top:e.top,left:e.left,index:"tail"===e.appointmentReduced?e.groupIndex+"-"+e.rowIndex+"-"+e.cellIndex:e.groupIndex+"-"+e.rowIndex+"-"+e.cellIndex+"-tail",isAllDay:t})},_getMaxAppointmentCountPerCellByType:function(e){var t=this._getMaxAppointmentCountPerCell();return d.isObject(t)?e?this._getMaxAppointmentCountPerCell().allDay:this._getMaxAppointmentCountPerCell().simple:t},getCompactAppointmentGroupMaxWidth:function(e,t){if(t||!d.isDefined(t)){var n=75;return n*this.getDefaultCellWidth()/100}return x},getDefaultCellWidth:function(){return this._defaultWidth},getCompactAppointmentDefaultSize:function(){return g},getCompactAppointmentDefaultOffset:function(){return y},getAppointmentDataCalculator:i,_customizeCoordinates:function(e,t,n,i,o){var a,r,s=e.index,l=t/n,d=e.top+s*l,c=d+i,u=e.width,h=e.left;return e.isCompact&&(a=this.getCompactAppointmentDefaultSize(),r=this.getCompactAppointmentDefaultOffset(),c=e.top+r,h=e.left+(s-n)*(a+r)+r,l=a,u=a,this._markAppointmentAsVirtual(e,o)),{height:l,width:u,top:c,left:h,empty:this._isAppointmentEmpty(t,u)}},convertToPercents:function(e,t){return{x:100*e/(this.instance.fire("getDateTableWidth")-t)}},_isAppointmentEmpty:function(e,t){return e<this._getAppointmentMinHeight()||t<this._getAppointmentMinWidth()},_calculateGeometryConfig:function(e){var t=this.instance.fire("getMaxAppointmentsPerCell"),n=this._getOffsets(),i=this._getAppointmentDefaultOffset(),o=this._getAppointmentCount(t,e),a=this._getDefaultRatio(e,o),r=this._getMaxHeight();l(o)||(o=e.count,a=(r-n.unlimited)/r);var s=(1-a)*r;return("auto"===t||l(t))&&(a=1,r-=i,s=i),{height:a*r,appointmentCountPerCell:o,offset:s}},_getAppointmentCount:i,_getDefaultRatio:i,_getOffsets:i,_getMaxHeight:i,_needVerifyItemSize:function(){return!1},needSeparateAppointment:function(e){return this.instance.fire("isGroupedByDate")&&e},_getMaxAppointmentCountPerCell:function(){if(!this._maxAppointmentCountPerCell){var e,t=this.instance.fire("getMaxAppointmentsPerCell");t||(e=2),l(t)&&(e=t),"auto"===t&&(e=this._getDynamicAppointmentCountPerCell()),"unlimited"===t&&(e=void 0),this._maxAppointmentCountPerCell=e}return this._maxAppointmentCountPerCell},_getDynamicAppointmentCountPerCell:function(){var e=this.instance.fire("getCellHeight");return Math.floor((e-this._getAppointmentDefaultOffset())/this._getAppointmentDefaultHeight())||this._getAppointmentMinCount()},_getAppointmentMinCount:function(){return p},_isCompactTheme:function(){return"compact"===(c.current()||"").split(".")[2]},_getAppointmentDefaultOffset:function(){return this._isCompactTheme()?w:this.instance.option("_appointmentOffset")},_getAppointmentDefaultHeight:function(){return this._getAppointmentHeightByTheme()},_getAppointmentMinHeight:function(){return this._getAppointmentDefaultHeight()},_getAppointmentHeightByTheme:function(){return this._isCompactTheme()?v:m},_getAppointmentDefaultWidth:function(){return _},_getAppointmentMinWidth:function(){return this._getAppointmentDefaultWidth()},_needVerticalGroupBounds:function(){return!1},_needHorizontalGroupBounds:function(){return!1}});e.exports=b},,,,,,,,,,,,,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.findChanges=void 0;var i=n(1),o=function(e,t){var n=t(e);if((0,i.isObject)(n))try{return JSON.stringify(n)}catch(e){return n}return n},a=function(e,t,n,i){var a=o(e,i);return t[n[a]]};t.findChanges=function(e,t,n,i){var r={},s={},l=0,d=0,c=[];e.forEach(function(e,t){var i=o(e,n);r[i]=t}),t.forEach(function(e,t){var i=o(e,n);s[i]=t});for(var u=Math.max(e.length,t.length),h=0;h<u+l;h++){var p=t[h],f=h-l+d,g=e[f],m=!p||g&&!a(g,t,s,n);if(m)g&&(c.push({type:"remove",key:n(g),index:h,oldItem:g}),d++,h--);else{var _=o(p,n),v=r[_],w=e[v];if(w){if(v!==f)return;i(w,p)||c.push({type:"update",data:p,key:n(p),index:h,oldItem:w})}else l++,c.push({type:"insert",data:p,index:h})}}return c}},function(e,t,n){var i=n(2),o=n(6).getWindow(),a=n(5),r=n(46),s=n(8),l=n(24),d=n(32).dasherize,c=n(0).extend,u=n(60),h=n(9),p=n(26),f=n(72),g=n(79),m=n(1).isFunction,_=n(4).noop,v="dxDraggable",w=h.addNamespace(f.start,v),y=h.addNamespace(f.move,v),x=h.addNamespace(f.end,v),b=h.addNamespace(p.down,v),C=d(v),k=C+"-dragging",I=u.inherit({_getDefaultOptions:function(){return c(this.callBase(),{onDragStart:_,onDrag:_,onDragEnd:_,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[w]=this._dragStartHandler.bind(this),t[y]=this._dragHandler.bind(this),t[x]=this._dragEndHandler.bind(this),n&&(t[b]=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(),d=t.height();this._toggleDraggingClass(!0);var c={left:t.offset().left-i.left,top:t.offset().top-i.top};this._startPosition=l.locate(t),e.maxLeftOffset=c.left-o.left,e.maxRightOffset=a-c.left-s-o.right,e.maxTopOffset=c.top-o.top,e.maxBottomOffset=r-c.top-d-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 m(e)&&(e=e.call(this)),r.quadToObject(e)},_getArea:function(){var e=this.option("area");return m(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,I),e.exports=I},function(e,t,n){e.exports=n(572)},function(e,t,n){var i=n(2),o=n(5),a=n(15),r=n(0).extend,s=n(73),l=n(8),d=n(47),c=n(9),u=n(99),h=n(21),p=n(33),f=n(14),g=n(17),m=n(120),_=n(7).Deferred,v="dx-switch",w=v+"-wrapper",y=v+"-container",x=v+"-inner",b=v+"-handle",C=v+"-on-value",k=v+"-on",I=v+"-off",S=100,D=d.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,switchedOnText:this._getLocalizationMessage("On"),switchedOffText:this._getLocalizationMessage("Off"),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}}])},_setDeprecatedOptions:function(){this.callBase(),r(this._deprecatedOptions,{onText:{since:"18.2",alias:"switchedOnText"},offText:{since:"18.2",alias:"switchedOffText"}})},_getLocalizationMessage:function(e){var t=f.format("dxSwitch-switched"+e+"Text"),n=f.format("dxSwitch-"+e.toLowerCase()+"Text");return t||n},_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(x).appendTo(this._$switchContainer),this._$handle=i("<div>").addClass(b).appendTo(this._$switchInner)},_renderLabels:function(){this._$labelOn=i("<div>").addClass(k).prependTo(this._$switchInner),this._$labelOff=i("<div>").addClass(I).appendTo(this._$switchInner),this._setLabelsText()},_renderContainers:function(){this._$switchContainer=i("<div>").addClass(y),this._$switchWrapper=i("<div>").addClass(w).append(this._$switchContainer)},_renderSwipeable:function(){this._createComponent(this.$element(),m,{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=c.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={},d={},c={},u={};l.transform=" translateX("+i+")",d.transform=" translateX("+o+")",c.transform=" translateX("+a+")",u.transform=" translateX("+r+")",this.$element().toggleClass(C,n),p.animate(this._$handle,{from:c,to:u,duration:S}),p.animate(this._$switchInner,{from:l,to:d,duration:S,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 _,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:S}),p.animate(this._$switchInner,{to:i,duration:S,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("switchedOnText"):this.option("switchedOffText")})},_setLabelsText:function(){this._$labelOn&&this._$labelOn.text(this.option("switchedOnText")),this._$labelOff&&this._$labelOff.text(this.option("switchedOffText"))},_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"switchedOnText":case"switchedOffText":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",D),e.exports=D},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(15),l=i(s),d=n(37),c=i(d),u=n(5),h=i(u),p=n(8),f=i(p),g=n(28),m=i(g),_=n(4),v=n(272),w=n(7),y=n(12),x=n(1),b=n(6),C=n(0),k=n(11),I=n(3),S=n(14),D=i(S),T=n(9),E=n(17),A=n(284),B=i(A),O=n(49),R=n(108),M=i(R),P=n(62),F=i(P),V="dxTagData",H="dx-tagbox",$="dx-tag-container",z="dx-tag",L="dx-tagbox-multi-tag",N="dx-tag-custom",W="dx-tag-remove-button",q="dx-tagbox-only-select",G="dx-tagbox-single-line",K="dx-tagbox-popup-wrapper",j="dx-list-select-all-checkbox",U="dx-tag-content",Y="dx-tagbox-default-template",X="dx-tagbox-custom-template",Z="dx-native-click",Q="dx-texteditor-container",J=-.3,ee=M.default.inherit({_supportedKeys:function(){var e=this.callBase();return(0,C.extend)(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=(0,B.default)(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]("."+z);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")&&(0,b.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&&!m.default.webkit,o=!t||m.default.webkit||m.default.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(),o=i.left,a=this._$tagsContainer.scrollLeft();if(n&&(o+=this._$focusedTag.outerWidth(!0)-this._$tagsContainer.outerWidth()),n^o<0){var r=t&&m.default.msie?-1:1;a+=o*r}return a},_setNextValue:_.noop,_getDefaultOptions:function(){return(0,C.extend)(this.callBase(),{value:[],showDropDownButton:!1,maxFilterLength:1500,tagTemplate:"tag",selectAllText:D.default.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(),n=t.length;this.option("showMultiTagOnly")?e.text=D.default.getFormatter("dxTagBox-selected")(n):e.text=D.default.getFormatter("dxTagBox-moreSelected")(n-this.option("maxDisplayedTags")+1)},_initDynamicTemplates:function(){this.callBase(),this._defaultTemplates.tag=new F.default(function(e,t){var n=(0,r.default)("<div>").addClass(U);(0,r.default)("<span>").text(t.text||t).appendTo(n),(0,r.default)("<div>").addClass(W).appendTo(n),e.append(n)},["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=(0,r.default)("<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,o=e.length;i<o;i++)n.push((0,r.default)("<option>").val(t?this._displayGetter(e[i]):e[i]).attr("selected","selected"));this._$submitElement.empty(),this._$submitElement.append(n)}},_initMarkup:function(){this._tagElementsCache=(0,r.default)();var e=!this.option("multiline");this.$element().addClass(H).toggleClass(q,!(this.option("searchEnabled")||this.option("acceptCustomValue"))).toggleClass(G,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=!(0,x.isDefined)(this.option("fieldTemplate"));this.$element().toggleClass(Y,e).toggleClass(X,!e),this.callBase()},_renderTagRemoveAction:function(){var e=this._createAction(this._removeTagHandler.bind(this)),t=(0,T.addNamespace)(E.name,"dxTagBoxTagRemove");h.default.off(this._$tagsContainer,t),h.default.on(this._$tagsContainer,t,"."+W,function(t){e({event:t})}),this._renderTypingEvent()},_renderSingleLineScroll:function(){var e=(0,T.addNamespace)("dxmousewheel",this.NAME),t=this.$element(),n=this.option("multiline");return h.default.off(t,e),"desktop"!==l.default.real().deviceType?void(this._$tagsContainer&&this._$tagsContainer.css("overflowX",n?"":"auto")):void(n||h.default.on(t,e,this._tagContainerMouseWheelHandler.bind(this)))},_tagContainerMouseWheelHandler:function(e){var t=e.delta,n=this._$tagsContainer.scrollLeft();return this._$tagsContainer.scrollLeft(n+t*J),!1},_renderTypingEvent:function(){var e=this;h.default.on(this._input(),(0,T.addNamespace)("keydown",this.NAME),function(t){var n=(0,T.normalizeKeyName)(t);!e._isControlKey(n)&&e._isEditable()&&e._clearTagFocus()})},_popupWrapperClass:function(){return this.callBase()+" "+K},_renderInput:function(){this.callBase(),this._renderPreventBlur(this._inputWrapper())},_renderInputValueImpl:function(){return this._renderMultiSelect()},_loadInputValue:function(){return(0,w.when)()},_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("."+j):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("."+j),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(0,C.extend)(this.callBase(),{selectionMode:t,selectAllText:this.option("selectAllText"),onSelectAllValueChanged:function(t){var n=t.value;e._selectAllValueChangeAction({value:n})},selectAllMode:this.option("selectAllMode"),selectedItems:this._selectedItems,onFocusedItemChanged:null})},_renderMultiSelect:function(){var e=this,t=new w.Deferred;return this._$tagsContainer=this.$element().find("."+Q).addClass($).addClass(Z),this._renderInputSize(),this._renderTags().done(function(){e._popup&&e._popup.refreshPosition(),t.resolve()}).fail(t.reject),t.promise()},_listItemClickHandler:function(e){!this.option("showSelectionControls")&&this._clearTextValue(),
|
|
35
35
|
"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(),t=e.val(),n=5,i="",o="",a=this.option("searchEnabled")||this.option("acceptCustomValue");if(t&&a){var r=(0,y.createTextElementHiddenCopy)(e,t,{includePaddings:!0});r.insertAfter(e),i=r.outerWidth()+n,r.remove()}else t||(o=1);e.css("width",i),e.attr("size",o)},_renderInputSubstitution:function(){this.callBase(),this._renderInputSize()},_getValue:function(){return this.option("value")||[]},_multiTagRequired:function(){var e=this._getValue(),t=this.option("maxDisplayedTags");return(0,x.isDefined)(t)&&e.length>t},_renderMultiTag:function(e){var t=(0,r.default)("<div>").addClass(z).addClass(L),n={multiTagElement:(0,y.getPublicElement)(t),selectedItems:this.option("selectedItems")};return this._multiTagPreparingAction(n),!n.cancel&&(t.data(V,n.text),t.insertBefore(e),this._tagTemplate.render({model:n.text,container:(0,y.getPublicElement)(t)}),t)},_getFilteredItems:function(e){var t=this,n=new v.SelectionFilterCreator(e),i=this._list&&this._list.option("selectedItems")||this.option("selectedItems"),o=n.getLocalFilter(this._valueGetter),a=i.filter(o),r=a.length===e.length,s=new w.Deferred;if(r)return s.resolve(a).promise();var l=this._dataSource,d=l.filter(),c=n.getCombinedFilter(this.option("valueExpr"),d),u=encodeURI(JSON.stringify(c)).length,h=u>this.option("maxFilterLength")?void 0:c,p=l.loadOptions(),f=p.customQueryParams,g=p.expand;return l.store().load({filter:h,customQueryParams:f,expand:g}).done(function(e,n){if(t._disposed)return void s.reject();var i=(0,O.normalizeLoadResult)(e,n),a=i.data,r=l._applyMapFunction(a);s.resolve(r.filter(o))}).fail(s.reject),s.promise()},_createTagsData:function(e,t){var n=this,i=[],o={},a="this"===this._valueGetterExpr(),r={};t.forEach(function(e){var t=a?JSON.stringify(e):n._valueGetter(e);r[t]=e});var s=[];e.forEach(function(e,t){var l=r[a?JSON.stringify(e):e];if(a&&!(0,x.isDefined)(l))s.push(n._loadItem(e,o).always(function(o){var a=n._createTagData(i,o,e,t);i.splice(t,0,a)}));else{var d=n._createTagData(i,l,e,t);i.splice(t,0,d)}});var l=new w.Deferred;return w.when.apply(this,s).always(function(){l.resolve(i)}),l.promise()},_createTagData:function(e,t,n,i){if((0,x.isDefined)(t))return this._selectedItems.push(t),t;var o=this.option("selectedItem"),a=this._valueGetter(o)===n?o:n;return a},_loadTagsData:function(){var e=this,t=this._getValue(),n=new w.Deferred;return this._selectedItems=[],this._getFilteredItems(t).done(function(i){var o=e._createTagsData(t,i);o.always(function(e){n.resolve(e)})}).fail(n.reject.bind(this)),n.promise()},_renderTags:function(){var e=this,t=new w.Deferred;return this._loadTagsData().always(function(n){return e._disposed?void t.reject():(e._renderTagsCore(n),e._renderEmptyState(),e._preserveFocusedTag||e._clearTagFocus(),void t.resolve())}),t.promise()},_renderTagsCore:function(e){var t=this;this._renderInputAddons(),this.option("selectedItems",this._selectedItems.slice()),this._cleanTags();var n=this._multiTagRequired()&&this._renderMultiTag(this._input()),i=this.option("showMultiTagOnly"),o=this.option("maxDisplayedTags");e.forEach(function(e,a){return!(n&&i||n&&!i&&a-o>=-1)&&void t._renderTag(e,n||t._input())}),this._scrollContainer("end"),this._refreshTagElements()},_cleanTags:function(){if(this._multiTagRequired())this._tagElements().remove();else{var e=this._tagElements(),t=this._getValue();(0,I.each)(e,function(e,n){var i=(0,r.default)(n),o=(0,k.inArray)(i.data(V),t);o<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("."+z)},_tagElements:function(){return this._tagElementsCache},_applyTagTemplate:function(e,t){this._tagTemplate.render({model:e,container:(0,y.getPublicElement)(t)})},_renderTag:function(e,t){var n=this._valueGetter(e);if((0,x.isDefined)(n)){var i=this._getTag(n),o=this._displayGetter(e),a=this._getItemModel(e,o);i?((0,x.isDefined)(o)&&(i.empty(),this._applyTagTemplate(a,i)),i.removeClass(N)):(i=this._createTag(n,t),(0,x.isDefined)(e)?this._applyTagTemplate(a,i):(i.addClass(N),this._applyTagTemplate(n,i)))}},_getItemModel:function(e,t){return(0,x.isObject)(e)&&t?e:(0,_.ensureDefined)(t,"")},_getTag:function(e){for(var t=this._tagElements(),n=t.length,i=!1,o=0;o<n;o++){var a=t[o],s=c.default.data(a,V);if(e===s||(0,_.equalByValue)(e,s)){i=(0,r.default)(a);break}}return i},_createTag:function(e,t){return(0,r.default)("<div>").addClass(z).data(V,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(),this._saveValueChangeEvent(t);var n=(0,r.default)(t.target).closest("."+z);this._removeTagElement(n)},_removeTagElement:function(e){if(e.hasClass(L))return void(this.option("showMultiTagOnly")?this.reset():this.option("value",this._getValue().slice(0,this.option("maxDisplayedTags"))));var t=e.data(V);this._removeTagWithUpdate(t),this._refreshTagElements()},_updateField:_.noop,_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){var t=this;if("useButtons"!==this.option("applyValueMode")){var n=this._getValue().slice();(0,I.each)(e.removedItems||[],function(e,i){t._removeTag(n,t._valueGetter(i))}),(0,I.each)(e.addedItems||[],function(e,i){t._addTag(n,t._valueGetter(i))}),this._updateWidgetHeight(),this.option("value",n)}},_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 i=this,a=-1;return n&&"object"!==("undefined"==typeof e?"undefined":o(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(),(0,I.each)(t,function(t,n){if(i._isValueEquals(e,n))return a=t,!1}),a)},_lastValue:function(){var e=this._getValue(),t=e[e.length-1];return(0,x.isDefined)(t)?t:null},_valueChangeEventHandler:_.noop,_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((0,x.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=this,t=[];return(0,I.each)(this._getValue(),function(n,i){t.push(["!",[e._valueGetterExpr(),i]])}),t},_dataSourceFilterFunction:function(e){var t=this,n=this._valueGetter(e),i=!0;return(0,I.each)(this._getValue(),function(e,o){if(t._isValueEquals(o,n))return i=!1,!1}),i},_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(){var e=this;if(!this._list)return[];var t=this._getPlainItems(this._list.option("selectedItems")),n=[];return(0,I.each)(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(0,I.each)(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":this._selectionChangedAction({addedItems:this._removeDuplicates(e.value,e.previousValue),removedItems:this._removeDuplicates(e.previousValue,e.value)});break;case"multiline":this.$element().toggleClass(G,!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()}});(0,f.default)("dxTagBox",ee),e.exports=ee},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(5),s=i(r),l=n(4),d=n(6),c=n(8),u=i(c),h=n(0),p=n(1),f=n(9),g=i(f),m=n(26),_=i(m),v=n(290),w=i(v),y=n(161),x=i(y),b=n(101),C=i(b),k="dx-textarea",I="dx-texteditor-input",S="dx-texteditor-input-auto-resize",D=C.default.inherit({_getDefaultOptions:function(){return(0,h.extend)(this.callBase(),{spellcheck:!0,minHeight:void 0,maxHeight:void 0,autoResizeEnabled:!1})},_initMarkup:function(){this.$element().addClass(k),this.callBase(),this.setAria("multiline","true")},_renderContentImpl:function(){this._updateInputHeight(),this.callBase()},_renderInput:function(){this.callBase(),this._renderScrollHandler()},_createInput:function(){var e=(0,a.default)("<textarea>");return this._applyInputAttributes(e,this.option("inputAttr")),this._updateInputAutoResizeAppearance(e),e},_applyInputAttributes:function(e,t){e.attr(t).addClass(I)},_renderScrollHandler:function(){var e=this;this._eventY=0;var t=this._input(),n={validate:function(t){if(g.default.isDxMouseWheelEvent(t)&&(0,a.default)(t.target).is(e._input()))return!!e._allowScroll(-t.delta,t.shiftKey)&&(t._needSkipEvent=!0,!0)}};s.default.on(t,g.default.addNamespace(w.default.init,this.NAME),n,l.noop),s.default.on(t,g.default.addNamespace(_.default.down,this.NAME),this._pointerDownHandler.bind(this)),s.default.on(t,g.default.addNamespace(_.default.move,this.NAME),this._pointerMoveHandler.bind(this))},_pointerDownHandler:function(e){this._eventY=g.default.eventData(e).y},_pointerMoveHandler:function(e){var t=g.default.eventData(e).y,n=this._eventY-t;this._allowScroll(n)&&(e.isScrollingEvent=!0,e.stopPropagation()),this._eventY=t},_allowScroll:function(e,t){var n=this._input(),i=t?n.scrollLeft():n.scrollTop(),o=t?"Width":"Height",a=n.prop("scroll"+o)-n.prop("client"+o)-i;if(0===i&&0===a)return!1;var r=0===i&&e>=0,s=0===a&&e<=0,l=i>0&&a>0;return!!(r||s||l)||void 0},_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")&&s.default.on(this._input(),g.default.addNamespace("input paste",this.NAME),this._updateInputHeight.bind(this)),this.callBase()},_refreshEvents:function(){s.default.off(this._input(),g.default.addNamespace("input paste",this.NAME)),this.callBase()},_getHeightDifference:function(e){return x.default.getVerticalOffsets(this._$element.get(0),!1)+x.default.getVerticalOffsets(e.parent().get(0),!1)+x.default.getElementBoxParams("height",(0,d.getWindow)().getComputedStyle(e.get(0))).margin},_updateInputHeight:function(){var e=this._input(),t=void 0===this.option("height")&&this.option("autoResizeEnabled");if(!t)return void e.css("height","");this._resetDimensions(),this._$element.css("height",this._$element.outerHeight()),e.css("height",0);var n=this._getHeightDifference(e);this._renderDimensions();var i=this._getBoundaryHeight("minHeight"),o=this._getBoundaryHeight("maxHeight"),a=e[0].scrollHeight;if(void 0!==i&&(a=Math.max(a,i-n)),void 0!==o){var r=o-n,s=a>r;a=Math.min(a,r),this._updateInputAutoResizeAppearance(e,!s)}e.css("height",a),t&&this._$element.css("height","auto")},_getBoundaryHeight:function(e){var t=this.option(e);if((0,p.isDefined)(t))return"number"==typeof t?t:x.default.parseHeight(t,this._input().get(0))},_renderInputType:l.noop,_visibilityChanged:function(e){e&&this._updateInputHeight()},_updateInputAutoResizeAppearance:function(e,t){if(e){var n=(0,l.ensureDefined)(t,this.option("autoResizeEnabled"));e.toggleClass(S,n)}},_optionChanged:function(e){switch(e.name){case"autoResizeEnabled":this._updateInputAutoResizeAppearance(this._input(),e.value),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)}}});(0,u.default)("dxTextArea",D),e.exports=D},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(10),a=n(6).getWindow(),r=n(1),s=n(0).extend,l=n(20),d=n(46),c=n(331),u=n(223),h=n(227),p=n(332),f=r.isDefined,g='<?xml version="1.0" encoding="utf-8"?>',m='<sheetPr><outlinePr summaryBelow="0"/></sheetPr>',_="<sheetPr/>",v='<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>',w="http://schemas.openxmlformats.org",y="rels",x="xl",b="workbook.xml",C="[Content_Types].xml",k="sharedStrings.xml",I="styles.xml",S="worksheets",D="sheet1.xml",T='<?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">',E={"boolean":"b",date:"d",number:"n",string:"s"},A=Date.UTC(1899,11,30),B=60,O=7,R=o.inherit({_getXMLTag:function(e,t,n){var i,o,a="<"+e,s=t.length;for(i=0;i<s;i++)o=t[i],void 0!==o.value&&(a=a+" "+o.name+'="'+o.value+'"');return r.isDefined(n)?a+">"+n+"</"+e+">":a+" />"},_convertToExcelCellRef:function(e,t){for(var n,i,o="",a=26;!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+1)},_convertToExcelCellRefAndTrackMaxIndex:function(e,t){return this._maxRowIndex<Number(e)&&(this._maxRowIndex=Number(e)),this._maxColumnIndex<Number(t)&&(this._maxColumnIndex=Number(t)),this._convertToExcelCellRef(e,t)},_getDataType:function(e){return E[e]||E.string},_tryGetExcelCellDataType:function(e){if(r.isDefined(e)){if("number"==typeof e)return isFinite(e)?E.number:E.string;if(r.isString(e))return E.string;if(r.isDate(e))return E.number;if(r.isBoolean(e))return E.boolean}},_formatObjectConverter:function(e,t){var n={format:e,precision:e&&e.precision,dataType:t};return r.isObject(e)?s(n,e,{format:e.formatter||e.type,currency:e.currency}):n},_tryConvertToExcelNumberFormat:function(e,t){var n,i=this._formatObjectConverter(e,t);return e=i.format,n=i.currency,t=i.dataType,h.convertFormat(e,i.precision,t,n)},_appendString:function(e){if(r.isDefined(e)&&(e=String(e),e.length))return e=d.encodeHtml(e),void 0===this._stringHash[e]&&(this._stringHash[e]=this._stringArray.length,this._stringArray.push(e)),this._stringHash[e]},_tryGetExcelDateValue:function(e){var t,n;if(r.isDate(e))return t=Math.floor((Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())-A)/864e5),t<B&&t--,n=(3600*e.getHours()+60*e.getMinutes()+e.getSeconds())/86400,t+n},_prepareValue:function(e,t){var n,i=this._dataProvider,o=i.getCellData(e,t)||{},a=o.value,s=o.cellSourceData,l=this._getDataType(i.getCellType(e,t));switch(l!==E.date||r.isDate(a)||(l=E.string),l){case E.string:n=a,a=this._appendString(a);break;case E.date:n=a,a=this._tryGetExcelDateValue(a),l=E.number}return{value:a,type:l,sourceValue:n,cellSourceData:s}},_callCustomizeExcelCell:function(e){var t=e.dataProvider,n=e.value,i=e.style,o=e.sourceData,a=p.copyCellFormat(i),r={value:n,numberFormat:a.numberFormat,clearStyle:function(){this.horizontalAlignment=null,this.verticalAlignment=null,this.wrapTextEnabled=null,this.font=null,this.numberFormat=null}};f(a)&&(f(a.alignment)&&(r.horizontalAlignment=a.alignment.horizontal,r.verticalAlignment=a.alignment.vertical,r.wrapTextEnabled=a.alignment.wrapText),r.backgroundColor=a.backgroundColor,r.fillPatternType=a.fillPatternType,r.fillPatternColor=a.fillPatternColor,r.font=a.font),t.customizeExcelCell(r,o);var s=a||{};return s.font=r.font,s.alignment=s.alignment||{},s.alignment.horizontal=r.horizontalAlignment,s.alignment.vertical=r.verticalAlignment,s.alignment.wrapText=r.wrapTextEnabled,s.backgroundColor=r.backgroundColor,s.fillPatternType=r.fillPatternType,s.fillPatternColor=r.fillPatternColor,s.numberFormat=r.numberFormat,{value:r.value,style:s}},_getDataArray:function(){var e,t,n,o,a,s=this,l=[],d=s._dataProvider,c=d.getRowsCount(),u=d.getColumns();for(e=0;e<c;e++){for(n=[],a=u.length,t=0;t!==a;t++){o=s._prepareValue(e,t);var h=d.getStyleId(e,t),p=this._styleArrayIndexToCellStyleIdMap[h];if(d.hasCustomizeExcelCell&&d.hasCustomizeExcelCell()){var f=o.sourceValue||o.value,g=this._callCustomizeExcelCell({dataProvider:d,value:f,style:s._styleArray[h],sourceData:o.cellSourceData});if(g.value!==f){if(i(g.value)!==("undefined"==typeof f?"undefined":i(f))||"number"==typeof g.value&&!isFinite(g.value)){var m=this._tryGetExcelCellDataType(g.value);r.isDefined(m)&&(o.type=m)}switch(o.type){case E.string:o.value=this._appendString(g.value);break;case E.date:o.value=g.value;break;case E.number:var _=g.value,v=this._tryGetExcelDateValue(_);r.isDefined(v)&&(_=v),o.value=_;break;default:o.value=g.value}}p=this._excelFile.registerCellFormat(g.style)}n.push({style:p,value:o.value,type:o.type})}!s._needSheetPr&&d.getGroupLevel(e)>0&&(s._needSheetPr=!0),l.push(n)}return l},_calculateWidth:function(e){return e=parseInt(e,10),(!e||e<5)&&(e=100),Math.min(255,Math.floor((e-5)/O*100+.5)/100)},_prepareStyleData:function(){var e=this,t=this,n=t._dataProvider.getStyles();t._dataProvider.getColumns().forEach(function(e){t._colsArray.push(t._calculateWidth(e.width))});var i=[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor",bold:!1},{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor",bold:!0}];this._excelFile.registerFont(i[0]),this._excelFile.registerFont(i[1]),n.forEach(function(e){var n=t._tryConvertToExcelNumberFormat(e.format,e.dataType);r.isDefined(n)||(n=0),t._styleArray.push({font:i[Number(!!e.bold)],numberFormat:n,alignment:{vertical:"top",wrapText:!!e.wrapText,horizontal:e.alignment||"left"}})}),t._styleArrayIndexToCellStyleIdMap=t._styleArray.map(function(t){return e._excelFile.registerCellFormat(t)})},_prepareCellData:function(){this._cellsArray=this._getDataArray()},_createXMLRelationships:function(e){return this._getXMLTag("Relationships",[{name:"xmlns",value:w+"/package/2006/relationships"}],e)},_createXMLRelationship:function(e,t,n){return this._getXMLTag("Relationship",[{name:"Id",value:"rId"+e},{name:"Type",value:w+"/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 g+this._getXMLTag("workbook",[{name:"xmlns:r",value:w+"/officeDocument/2006/relationships"},{name:"xmlns",value:w+"/spreadsheetml/2006/main"}],e)},_getContentTypesContent:function(){return g+'<Types xmlns="'+w+'/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=this,t=e._zip.folder(x),n="";n+=this._excelFile.generateNumberFormatsXml(),n+=this._excelFile.generateFontsXml(),n+=this._excelFile.generateFillsXml(),n+=v,n+=this._excelFile.generateCellFormatsXml(),n+=e._getXMLTag("cellStyles",[{name:"count",value:1}],e._getXMLTag("cellStyle",[{name:"name",value:"Normal"},{name:"xfId",value:0},{name:"builtinId",value:0}])),n=g+e._getXMLTag("styleSheet",[{name:"xmlns",value:w+"/spreadsheetml/2006/main"}],n),t.file(I,n),e._styleArray=[]},_generateStringsXML:function(){var e,t=this._zip.folder(x),n=this._stringArray.length,i=g;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:w+"/spreadsheetml/2006/main"},{name:"count",value:this._stringArray.length},{name:"uniqueCount",value:this._stringArray.length}],this._stringArray.join("")),t.file(k,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._convertToExcelCellRefAndTrackMaxIndex(t.y,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,a,s=[],l=this._cellsArray.length,d=this._colsArray.length,c="1:"+d,u=this._dataProvider.getHeaderRowCount?this._dataProvider.getHeaderRowCount():1,h=[T];for(h.push(this._needSheetPr?m:_),h.push('<dimension ref="A1:C1"/>'),h.push("<sheetViews><sheetView "),h.push(this._rtlEnabled?'rightToLeft="1" ':""),h.push('tabSelected="1" workbookViewId="0">'),h.push(this._getPaneXML()),h.push("</sheetView></sheetViews>"),h.push('<sheetFormatPr defaultRowHeight="15"'),h.push(' outlineLevelRow="'+(this._dataProvider.getRowsCount()>0?this._dataProvider.getGroupLevel(0):0)+'"'),h.push(' x14ac:dyDescent="0.25"/>'),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(h.push(this._getXMLTag("cols",[],this._colsArray.join(""))+"<sheetData>"),t=0;t<l;t++){for(i=[],a=this._cellsArray[t].length,e=0;e<a;e++)t=Number(t),n=this._cellsArray[t][e],i.push(this._getXMLTag("c",[{name:"r",value:this._convertToExcelCellRefAndTrackMaxIndex(t,e)},{name:"s",value:n.style},{name:"t",value:n.type}],r.isDefined(n.value)?this._getXMLTag("v",[],n.value):null));s.push(this._getXMLTag("row",[{name:"r",value:Number(t)+1},{name:"spans",value:c},{name:"outlineLevel",value:t>=u?this._dataProvider.getGroupLevel(t):0},{name:"x14ac:dyDescent",value:"0.25"}],i.join(""))),this._cellsArray[t]=null,s.length>1e4&&(h.push(s.join("")),s=[])}h.push(s.join("")),s=[],o=this._convertToExcelCellRef(this._maxRowIndex,this._maxColumnIndex),h.push("</sheetData>"+this._getAutoFilterXML(o)+this._generateMergingXML()+this._getIgnoredErrorsXML(o)+"</worksheet>"),this._zip.folder(x).folder(S).file(D,h.join("")),this._colsArray=[],this._cellsArray=[],h=[]},_generateMergingXML:function(){var e,t,n,i,o,a,s=r.isDefined(this._dataProvider.getHeaderRowCount)?this._dataProvider.getHeaderRowCount():this._dataProvider.getRowsCount(),l=this._dataProvider.getColumns().length,d=[],c=[],u="";for(i=0;i<s;i++)for(n=0;n!==l;n++)if(!r.isDefined(d[i])||!r.isDefined(d[i][n])){var h=this._dataProvider.getCellMerging(i,n);if(h.colspan||h.rowspan)for(c.push({start:this._convertToExcelCellRefAndTrackMaxIndex(i,n),end:this._convertToExcelCellRefAndTrackMaxIndex(i+(h.rowspan||0),n+(h.colspan||0))}),e=i;e<=i+h.rowspan;e++)for(t=n;t<=n+h.colspan;t++)r.isDefined(d[e])||(d[e]=[]),d[e][t]=!0}for(o=c.length,a=0;a<o;a++)u+=this._getXMLTag("mergeCell",[{name:"ref",value:c[a].start+":"+c[a].end}]);return u.length?this._getXMLTag("mergeCells",[{name:"count",value:o}],u):""},_generateCommonXML:function(){var e,t=g+this._createXMLRelationships(this._createXMLRelationship(1,"officeDocument","xl/"+b)),n=this._zip.folder(x),i=g;this._zip.folder("_"+y).file("."+y,t),e=this._createXMLRelationship(1,"worksheet","worksheets/"+D)+this._createXMLRelationship(2,"styles",I)+this._createXMLRelationship(3,"sharedStrings",k),i+=this._createXMLRelationships(e),n.folder("_"+y).file(b+".rels",i),n.file(b,this._getWorkbookContent()),this._zip.file(C,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._maxRowIndex=0,this._maxColumnIndex=0,this._stringArray=[],this._stringHash={},this._styleArray=[],this._colsArray=[],this._cellsArray=[],this._needSheetPr=!1,this._dataProvider=e,this._excelFile=new p,r.isDefined(R.JSZip)?this._zip=new R.JSZip:this._zip=null},_checkZipState:function(){if(!this._zip)throw l.Error("E1041","JSZip")},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)}});R.JSZip=c,t.ExcelCreator=R,t.getData=function(e,n,i){var o=new t.ExcelCreator(e,n);o._checkZipState(),o.ready().done(function(){o._zip.generateAsync?o.getData(r.isFunction(a.Blob)).then(i):i(o.getData(r.isFunction(a.Blob)))})}},function(e,t){e.exports=window.JSZip},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(1),s=n(74),l=i(s),d=n(333),c=i(d),u=n(231),h=i(u),p=n(233),f=i(p),g=n(336),m=i(g),_=function(){function e(){o(this,e),this._cellFormatTags=[],this._fillTags=[],this._fontTags=[],this._numberFormatTags=[],this._fillTags.push(h.default.tryCreateTag({patternFill:{patternType:"none"}}))}return a(e,[{key:"registerCellFormat",value:function(e){var t=void 0,n=c.default.tryCreateTag(e,{registerFill:this.registerFill.bind(this),registerFont:this.registerFont.bind(this),registerNumberFormat:this.registerNumberFormat.bind(this)});if((0,r.isDefined)(n)){for(var i=0;i<this._cellFormatTags.length;i++)if(c.default.areEqual(this._cellFormatTags[i],n)){t=i;break}void 0===t&&(t=this._cellFormatTags.push(n)-1)}return t}},{key:"generateCellFormatsXml",value:function(){var e=this._cellFormatTags.map(function(e){return c.default.toXml(e)});return l.default.toXml("cellXfs",{count:e.length},e.join(""))}},{key:"registerFill",value:function(e){var t=void 0,n=h.default.tryCreateTag(e);if((0,r.isDefined)(n)){for(var i=0;i<this._fillTags.length;i++)if(h.default.areEqual(this._fillTags[i],n)){t=i;break}void 0===t&&(this._fillTags.length<2&&this._fillTags.push(h.default.tryCreateTag({patternFill:{patternType:"Gray125"}})),t=this._fillTags.push(n)-1)}return t}},{key:"generateFillsXml",value:function(){var e=this._fillTags.map(function(e){return h.default.toXml(e)});return l.default.toXml("fills",{count:e.length},e.join(""))}},{key:"registerFont",value:function(e){var t=void 0,n=f.default.tryCreateTag(e);if((0,r.isDefined)(n)){for(var i=0;i<this._fontTags.length;i++)if(f.default.areEqual(this._fontTags[i],n)){t=i;break}void 0===t&&(t=this._fontTags.push(n)-1)}return t}},{key:"generateFontsXml",value:function(){var e=this._fontTags.map(function(e){return f.default.toXml(e)});return l.default.toXml("fonts",{count:e.length},e.join(""))}},{key:"_convertNumberFormatIndexToId",value:function(e){var t=165;return t+e}},{key:"registerNumberFormat",value:function(e){var t=void 0,n=m.default.tryCreateTag(e);if((0,r.isDefined)(n)){for(var i=0;i<this._numberFormatTags.length;i++)if(m.default.areEqual(this._numberFormatTags[i],n)){t=this._numberFormatTags[i][m.default.ID_PROPERTY_NAME];break}void 0===t&&(n[m.default.ID_PROPERTY_NAME]=this._convertNumberFormatIndexToId(this._numberFormatTags.length),t=n[m.default.ID_PROPERTY_NAME],this._numberFormatTags.push(n))}return t}},{key:"generateNumberFormatsXml",value:function(){if(this._numberFormatTags.length>0){var e=this._numberFormatTags.map(function(e){return m.default.toXml(e);
|
|
36
|
-
});return l.default.toXml("numFmts",{count:e.length},e.join(""))}return""}}],[{key:"copyCellFormat",value:function(e){return c.default.copy(e)}}]),e}();t.default=_,e.exports=_},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=n(74),r=i(a),s=n(334),l=i(s),d=n(231),c=i(d),u=n(233),h=i(u),p={tryCreateTag:function(e,t){var n=null;if((0,o.isDefined)(e)){var i=void 0;i="number"==typeof e.numberFormat?e.numberFormat:t.registerNumberFormat(e.numberFormat);var a=e.fill;(0,o.isDefined)(a)||(a=c.default.tryCreateFillFromSimpleFormat(e)),n={numberFormatId:i,alignment:l.default.tryCreateTag(e.alignment),fontId:t.registerFont(e.font),fillId:t.registerFill(a)},p.isEmpty(n)&&(n=null)}return n},copy:function(e){var t=void 0;return null===e?t=null:(0,o.isDefined)(e)&&(t={},void 0!==e.numberFormat&&(t.numberFormat=e.numberFormat),void 0!==e.fill?t.fill=c.default.copy(e.fill):c.default.copySimpleFormat(e,t),void 0!==e.alignment&&(t.alignment=l.default.copy(e.alignment)),void 0!==e.font&&(t.font=h.default.copy(e.font))),t},areEqual:function(e,t){return p.isEmpty(e)&&p.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.fontId===t.fontId&&e.numberFormatId===t.numberFormatId&&e.fillId===t.fillId&&l.default.areEqual(e.alignment,t.alignment)},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.fontId)&&!(0,o.isDefined)(e.numberFormatId)&&!(0,o.isDefined)(e.fillId)&&l.default.isEmpty(e.alignment)},toXml:function(e){var t=l.default.isEmpty(e.alignment),n=void 0;return(0,o.isDefined)(e.numberFormatId)&&(n=e.numberFormatId>0?1:0),r.default.toXml("xf",{xfId:0,applyAlignment:t?null:1,fontId:e.fontId,applyNumberFormat:n,fillId:e.fillId,numFmtId:e.numberFormatId},t?null:l.default.toXml(e.alignment))}};t.default=p},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=n(74),r=i(a),s={tryCreateTag:function(e){var t=null;return(0,o.isDefined)(e)&&(t={vertical:e.vertical,wrapText:e.wrapText,horizontal:e.horizontal},s.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,o.isDefined)(e)&&(t={},void 0!==e.horizontal&&(t.horizontal=e.horizontal),void 0!==e.vertical&&(t.vertical=e.vertical),void 0!==e.wrapText&&(t.wrapText=e.wrapText)),t},areEqual:function(e,t){return s.isEmpty(e)&&s.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.vertical===t.vertical&&e.wrapText===t.wrapText&&e.horizontal===t.horizontal},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.vertical)&&!(0,o.isDefined)(e.wrapText)&&!(0,o.isDefined)(e.horizontal)},toXml:function(e){return r.default.toXml("alignment",{vertical:e.vertical,wrapText:(0,o.isDefined)(e.wrapText)?Number(e.wrapText):void 0,horizontal:e.horizontal})}};t.default=s},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=n(74),r=i(a),s=n(232),l=i(s),d={tryCreateTag:function(e){var t=null;return(0,o.isDefined)(e)&&(t={patternType:e.patternType,backgroundColor:l.default.tryCreateTag(e.backgroundColor),foregroundColor:l.default.tryCreateTag(e.foregroundColor)},d.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,o.isDefined)(e)&&(t={},void 0!==e.patternType&&(t.patternType=e.patternType),void 0!==e.backgroundColor&&(t.backgroundColor=l.default.copy(e.backgroundColor)),void 0!==e.foregroundColor&&(t.foregroundColor=l.default.copy(e.foregroundColor))),t},areEqual:function(e,t){return d.isEmpty(e)&&d.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.patternType===t.patternType&&l.default.areEqual(e.backgroundColor,t.backgroundColor)&&l.default.areEqual(e.foregroundColor,t.foregroundColor)},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.patternType)},toXml:function(e){var t=[(0,o.isDefined)(e.foregroundColor)?l.default.toXml("fgColor",e.foregroundColor):"",(0,o.isDefined)(e.backgroundColor)?l.default.toXml("bgColor",e.backgroundColor):""].join("");return r.default.toXml("patternFill",{patternType:e.patternType},t)}};t.default=d},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=n(74),r=i(a),s={ID_PROPERTY_NAME:"id",tryCreateTag:function(e){var t=null;return"string"==typeof e&&(t={formatCode:e},s.isEmpty(t)&&(t=null)),t},areEqual:function(e,t){return s.isEmpty(e)&&s.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.formatCode===t.formatCode},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.formatCode)||""===e.formatCode},toXml:function(e){return r.default.toXml("numFmt",{numFmtId:e[s.ID_PROPERTY_NAME],formatCode:e.formatCode})}};t.default=s},function(e,t,n){var i=n(2),o=n(75),a=n(6).getWindow(),r=n(1).isFunction,s=n(3).each,l=n(201),d=n(7),c=d.when,u=d.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("href")||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(),c.apply(i,this._imageDeferreds)},getData:function(e,t){var n,o=this,d='<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>',c=new u,h=l.getSvgElement(e),p=i(h);return n=d+l.getSvgMarkup(p.get(0),t.backgroundColor),o._prepareImages(h).done(function(){s(o._imageArray,function(e,t){var i="href=['|\"]"+e+"['|\"]";n=n.replace(new RegExp(i,"gi"),'href="'+t+'"')}),c.resolve(r(a.Blob)?o._getBlob(n):o._getBase64(n))}),c},_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){return 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(129),o=n(6).getWindow(),a=n(234).imageCreator,r=n(1).isFunction,s=n(0).extend,l=n(7),d=l.when,c=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",m="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",_="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},w=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),d=u.replace("_width_",s).replace("_height_",l),c=h.replace("_width_",s).replace("_height_",l),_=p.replace("_date_",n).replace("_version_",i),v=f.replace("_width_",a).replace("_height_",r).replace("_length_",e.length)+e+g,w=y(d.length,c.length,_.length),x=d+c+_+v,b=m.replace("_length_",x.length);return x+w+b},y=function(e,t,n){return _.replace("_main_",v(e+"",10)).replace("_info_",v(e+t+"",10)).replace("_image_",v(e+t+n+"",10))},x=function(){return new Date},b=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 c;return l.done(n),d(i).done(function(e){var n=w(e,t,x()),i=r(o.Blob)?b(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);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(143),a=n(239),r=n(0).extend,s={dxpointerdown:"pointerdown",dxpointermove:"pointermove",dxpointerup:"pointerup",dxpointercancel:"pointercancel",dxpointerover:"pointerover",dxpointerout:"pointerout",dxpointerenter:"pointerenter",dxpointerleave:"pointerleave"},l=!1,d=function(){l||(i=new a(s,function(e,t){return e.pointerId===t.pointerId},function(e){e.isPrimary&&i.reset()}),l=!0)},c=o.inherit({ctor:function(){this.callBase.apply(this,arguments),d()},_fireEvent:function(e){return this.callBase(r({pointers:i.pointers(),pointerId:e.originalEvent.pointerId},e))}});c.map=s,c.resetObserver=function(){i.reset()},e.exports=c},function(e,t,n){var i=n(0).extend,o=n(143),a=n(240),r=n(238),s=n(9),l={dxpointerdown:"touchstart mousedown",dxpointermove:"touchmove mousemove",dxpointerup:"touchend mouseup",dxpointercancel:"touchcancel",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},d=!1,c=function(){d||(a.activate(),d=!0)},u=o.inherit({EVENT_LOCK_TIMEOUT:100,ctor:function(){this.callBase.apply(this,arguments),c()},_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(82),o=n(14),a=n(50),r=n(34);n(140),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","dxFileUploader-invalidFileExtension":"File type is not allowed","dxFileUploader-invalidMaxFileSize":"File is too large","dxFileUploader-invalidMinFileSize":"File is too small","dxRangeSlider-ariaFrom":"From","dxRangeSlider-ariaTill":"Till","dxSwitch-switchedOnText":"ON","dxSwitch-switchedOffText":"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","dxHtmlEditor-dialogColorCaption":"Change Font Color","dxHtmlEditor-dialogBackgroundCaption":"Change Background Color","dxHtmlEditor-dialogLinkCaption":"Add Link","dxHtmlEditor-dialogLinkUrlField":"URL","dxHtmlEditor-dialogLinkTextField":"Text","dxHtmlEditor-dialogLinkTargetField":"Open link in new window","dxHtmlEditor-dialogImageCaption":"Add Image","dxHtmlEditor-dialogImageUrlField":"URL","dxHtmlEditor-dialogImageAltField":"Alternate text","dxHtmlEditor-dialogImageWidthField":"Width (px)","dxHtmlEditor-dialogImageHeightField":"Height (px)","dxHtmlEditor-heading":"Heading","dxHtmlEditor-normalText":"Normal text"}}},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(128),n(114),e.exports=DevExpress.framework={},DevExpress.framework.dxCommand=n(178),DevExpress.framework.Router=n(144),DevExpress.framework.StateManager=n(179),DevExpress.framework.ViewCache=n(83),DevExpress.framework.NullViewCache=n(83).NullViewCache,DevExpress.framework.ConditionalViewCacheDecorator=n(83).ConditionalViewCacheDecorator,DevExpress.framework.CapacityViewCacheDecorator=n(83).CapacityViewCacheDecorator,DevExpress.framework.HistoryDependentViewCacheDecorator=n(83).HistoryDependentViewCacheDecorator,DevExpress.framework.dxCommandContainer=n(180),DevExpress.framework.dxView=n(68).dxView,DevExpress.framework.dxLayout=n(68).dxLayout,DevExpress.framework.dxViewPlaceholder=n(68).dxViewPlaceholder,DevExpress.framework.dxContentPlaceholder=n(68).dxContentPlaceholder,DevExpress.framework.dxTransition=n(68).dxTransition,DevExpress.framework.dxContent=n(68).dxContent,DevExpress.framework.html={},DevExpress.framework.html.HtmlApplication=n(245),DevExpress.framework.Route=n(144).Route,DevExpress.framework.MemoryKeyValueStorage=n(179).MemoryKeyValueStorage,DevExpress.framework.NavigationDevices=n(145),DevExpress.framework.NavigationManager=n(117),DevExpress.framework.createActionExecutors=n(247).createActionExecutors,DevExpress.framework.Application=n(246).Application;var i=n(248);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(182),DevExpress.framework.HistoryBasedNavigationDevice=n(145).HistoryBasedNavigationDevice,DevExpress.framework.StackBasedNavigationDevice=n(145).StackBasedNavigationDevice,DevExpress.framework.HistoryBasedNavigationManager=n(117).HistoryBasedNavigationManager,DevExpress.framework.StackBasedNavigationManager=n(117).StackBasedNavigationManager,DevExpress.framework.NavigationStack=n(117).NavigationStack,DevExpress.framework.utils=n(116).utils,DevExpress.framework.templateProvider=n(116).templateProvider,DevExpress.framework.html.CommandManager=n(249),DevExpress.framework.html.HtmlApplication=n(245),DevExpress.framework.html.layoutSets=n(146).layoutSets,DevExpress.framework.html.animationSets=n(146).animationSets,DevExpress.framework.html.DefaultLayoutController=n(183).DefaultLayoutController,DevExpress.framework.html.layoutSets=n(183).layoutSets,DevExpress.framework.html.MarkupComponent=n(181).MarkupComponent,DevExpress.framework.html.ViewEngine=n(251).ViewEngine,DevExpress.framework.html.ViewEngineComponents=n(68);var o=n(250);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(18),s=n(32),l=n(1).isPlainObject,d=n(141),c=n(27),u=n(241),h=n(47),p=n(243),f=n(242).getClosestNodeWithContext,g=n(23),m="dxKoLocks",_="dxKoCreation",v=[],w=function(e,t){t.subclassOf(h)&&v.push(e),o.bindingHandlers[e]={init:function(e,n){var d,h,v=i(e),w=a(),y={},x=g().knockout,b=x&&x.isBindingPropertyPredicateName,C={onInitializing:function(){y=this._getOptionsByReference(),o.computed(function(){var e=o.unwrap(n());d&&d.beginUpdate(),h=b&&e&&e[b],E(e),d&&d.endUpdate()},null,{disposeWhenNodeIsRemoved:e}),d=this},modelByElement:function(e){if(e.length){var t=f(e.get(0));return o.dataFor(t)}},nestedComponentOptions:function(e){return{modelByElement:e.option("modelByElement"),nestedComponentOptions:e.option("nestedComponentOptions")}},_optionChangedCallbacks:w,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)}}},k={},I=function(e,t,n){var i=v.data(m),a=n?o.unwrap(t):t;if(o.isWriteableObservable(t)&&(k[e]=t),d){if(i.locked(e))return;i.obtain(e);try{o.ignoreDependencies?o.ignoreDependencies(d.option,d,[e,a]):d.option(e,a)}finally{i.release(e)}}else C[e]=a},S=function(e){var t=e.fullName,n=e.value;if(t in k){var i=this._$element,o=i.data(m);if(!o.locked(t)){o.obtain(t);try{k[t](n)}finally{o.release(t)}}}},D=function(){w.add(S),v.data(_,!0).data(m,new p),new t(v,C),C=null},T=function(t,n,i){if(i!==b)if(!h||h(i,n,t)){var a;o.computed(function(){var e=t[n];I(i,e,!0),a=o.unwrap(e)},null,{disposeWhenNodeIsRemoved:e}),l(a)&&(y[i]||E(a,i))}else I(i,t[n],!1)},E=function(e,t){for(var n in e)e.hasOwnProperty(n)&&T(e,n,t?[t,n].join("."):n)};return D(),{controlsDescendantBindings:t.subclassOf(c)}}},"dxValidator"===e&&(o.bindingHandlers.dxValidator.after=v)};d.add(function(e,t){w(e,t)})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(71),s=i(r),l=n(12),d=n(194);n(350),(0,d.registerTemplateEngine)("default",{compile:function(e){return(0,l.normalizeTemplateElement)(e)},render:function(e,t,n){return e.clone()}}),(0,d.setTemplateEngine)("default");var c=s.default.inherit({ctor:function(e){this._element=e},_renderCore:function(e){var t=e.transclude;return t||this._compiledTemplate||(this._compiledTemplate=(0,d.getCurrentTemplateEngine)().compile(this._element)),(0,a.default)("<div>").append(t?this._element:(0,d.getCurrentTemplateEngine)().render(this._compiledTemplate,e.model,e.index)).contents()},source:function(){return(0,a.default)(this._element).clone()}});e.exports=c},function(e,t,n){var i=n(12),o=n(194);(0,o.registerTemplateEngine)("jquery-tmpl",{compile:function(e){return(0,i.extractTemplateMarkup)(e)},render:function(e,t){return jQuery.tmpl(e,t)}}),(0,o.registerTemplateEngine)("jsrender",{compile:function(e){return(jQuery?jQuery:jsrender).templates((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e.render(t)}}),(0,o.registerTemplateEngine)("mustache",{compile:function(e){return(0,i.extractTemplateMarkup)(e)},
|
|
37
|
-
render:function(e,t){return Mustache.render(e,t)}}),(0,o.registerTemplateEngine)("hogan",{compile:function(e){return Hogan.compile((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e.render(t)}}),(0,o.registerTemplateEngine)("underscore",{compile:function(e){return _.template((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e(t)}}),(0,o.registerTemplateEngine)("handlebars",{compile:function(e){return Handlebars.compile((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e(t)}}),(0,o.registerTemplateEngine)("doT",{compile:function(e){return doT.template((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e(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(13),r=n(6),s=n(51).add,l=r.getWindow(),d=r.getNavigator(),c=n(5),u=n(33),h=n(24),p=n(58).compare,f=n(65),g=n(0).extend,m=n(11).inArray,_=n(12).getPublicElement,v=f.changeCallback,w=n(139).hideCallback,y=n(79),x=n(31).fitIntoRange,b=n(12),C=n(4).noop,k=n(1),I=n(3).each,S=n(15),D=n(28),T=n(8),E=n(27),A=n(159),B=n(63),O=n(72),R=n(9),M=n(26),P=n(213),F=n(94),V=n(7).Deferred,H=n(352),$=n(214),z="dx-overlay",L="dx-overlay-wrapper",N="dx-overlay-content",W="dx-overlay-shader",q="dx-overlay-modal",G="dx-inner-overlay",K="dx-state-invisible",j="content",U="dx-rtl",Y=["onShowing","onShown","onHiding","onHidden","onPositioning","onPositioned","onResizeStart","onResize","onResizeEnd"],X=[],Z="dx-state-disabled",Q="tab",J={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"}},ee=S.real(),te=ee.version,ne=D.mozilla&&"desktop"===ee.deviceType,ie="ios"===ee.platform,oe=D.safari&&"desktop"!==ee.deviceType,ae=ie&&p(te,[7,1])<0,re="android"===ee.platform&&0===p(te,[4,0],2)&&d.userAgent.indexOf("Chrome")===-1,se=function(e){if((ae||ne)&&e.width(),re){var t=e.parents(),n=t.is(".dx-scrollable-native");n||(t.css("backfaceVisibility","hidden"),t.css("backfaceVisibility"),t.css("backfaceVisibility","visible"))}},le=function(e){return e&&o(e.target||e)};s(function(){c.subscribeGlobal(a.getDocument(),M.down,function(e){for(var t=X.length-1;t>=0;t--)if(!X[t]._proxiedDocumentDownHandler(e))return})});var de=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:x(e,-i.top,i.bottom),left:x(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,innerOverlay:!1,target:void 0,container:void 0,hideTopOverlayHandler:void 0,closeOnTargetScroll:!1,onPositioned:null,boundaryOffset:{h:0,v:0},propagateOutsideClick:!1,ignoreChildEvents:!0,_checkParentVisibility:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var e=S.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 j},_wrapper:function(){return this._$wrapper},_container:function(){return this._$content},_eventBindingTarget:function(){return this._$content},_init:function(){this.callBase(),this._initActions(),this._initCloseOnOutsideClickHandler(),this._initTabTerminatorHandler(),this._$wrapper=o("<div>").addClass(L),this._$content=o("<div>").addClass(N),this._initInnerOverlayClass();var e=this.$element();this._$wrapper.addClass(e.attr("class")),e.addClass(z),this._$wrapper.attr("data-bind","dxControlsDescendantBindings: true"),c.on(this._$wrapper,"MSPointerDown",C),c.on(this._$wrapper,"focusin",function(e){e.stopPropagation()}),this._toggleViewPortSubscription(!0)},_initOptions:function(e){this._initTarget(e.target);var t=void 0===e.container?this.option("container"):e.container;this._initContainer(t),this._initHideTopOverlayHandler(e.hideTopOverlayHandler),this.callBase(e)},_initInnerOverlayClass:function(){this._$content.toggleClass(G,this.option("innerOverlay"))},_initTarget:function(e){if(k.isDefined(e)){var t=this.option();I(["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={},I(Y,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)||b.contains(l.document,e.target),a=o(e.target).closest("."+G).length,r=i&&!a&&!(n.is(e.target)||b.contains(n.get(0),e.target));return r&&t&&(this.option("shading")&&e.preventDefault(),this.hide()),this.option("propagateOutsideClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.content=new F(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 X},_zIndexInitValue:function(){return de.baseZIndex()},_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 V;if(this._parentHidden=this._isParentHidden(),t.done(function(){delete e._parentHidden}),this._parentHidden)return this._isHidden=!0,t.resolve();if(this._currentVisible)return(new V).resolve().promise();this._currentVisible=!0,this._normalizePosition();var n=e._getAnimationConfig()||{},i=this._normalizeAnimation(n.show,"to"),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")&&c.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 V).resolve().promise();this._currentVisible=!1;var e=this,t=new V,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(),t=!!this._$content.find(e).length;t&&b.resetActiveElement()},_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||b.triggerHidingEvent(this._$content),this._toggleVisibility(e),this._$content.toggleClass(K,!e),this._updateZIndexStackPosition(e),e?(this._renderContent(),this._actions.onShowing(),this._moveToContainer(),this._renderGeometry(),b.triggerShownEvent(this._$content),b.triggerResizeEvent(this._$content)):this._moveFromContainer(),this._toggleShading(e),this._toggleSubscriptions(e))},_updateZIndexStackPosition:function(e){var t=this._overlayStack(),n=m(this,t);e?(n===-1&&(this._zIndex=H.create(this._zIndexInitValue()),t.push(this)),this._$wrapper.css("zIndex",this._zIndex),this._$content.css("zIndex",this._zIndex)):n!==-1&&(t.splice(n,1),H.remove(this._zIndex))},_toggleShading:function(e){this._$wrapper.toggleClass(q,this.option("shading")&&!this.option("container")),this._$wrapper.toggleClass(W,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?c.on(a.getDocument(),t,this._proxiedTabTerminatorHandler):c.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(R.normalizeKeyName(e)===Q&&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=!b.contains(this._$wrapper.get(0),e.target);if(o||a||r||s){e.preventDefault();var l=e.shiftKey?i:n;c.trigger(l,"focusin"),c.trigger(l,"focus")}}},_toggleSubscriptions:function(e){r.hasWindow()&&(this._toggleHideTopOverlayCallback(e),this._toggleParentsScrollSubscription(e))},_toggleHideTopOverlayCallback:function(e){this._hideTopOverlayHandler&&(e&&this.option("closeOnBackButton")?w.add(this._hideTopOverlayHandler):w.remove(this._hideTopOverlayHandler))},_toggleParentsScrollSubscription:function(e){if(this._position){var t=this._position.of||o(),n=this.option("closeOnTargetScroll"),i=le(t).parents(),a=R.addNamespace("scroll",this.NAME);"generic"===S.real().platform&&(i=i.add(l)),this._proxiedTargetParentsScrollHandler=this._proxiedTargetParentsScrollHandler||function(e){this._targetParentsScrollHandler(e)}.bind(this),c.off(o().add(this._$prevTargetParents),a,this._proxiedTargetParentsScrollHandler),e&&n&&(c.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._appendContentToElement(),this._renderVisibilityAnimate(this.option("visible"))},_appendContentToElement:function(){this._$content.parent().is(this.$element())||this._$content.appendTo(this.$element())},_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._appendContentToElement(),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,t=new V,n=this.option("contentTemplate"),i=this._getTemplate(n),o=this._getAnonymousTemplateName()===n;return i&&i.render({container:_(this.$content()),noModel:!0,transclude:o,onRendered:function(){t.resolve()}}),this._renderDrag(),this._renderResize(),this._renderScrollTerminator(),t.done(function(){e.option("visible")&&e._moveToContainer()}),t.promise()},_renderDrag:function(){var e=this._getDragTarget();if(e){var t=R.addNamespace(O.start,this.NAME),n=R.addNamespace(O.move,this.NAME);c.off(e,t),c.off(e,n),this.option("dragEnabled")&&(c.on(e,t,this._dragStartHandler.bind(this)),c.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);c.off(e,t),c.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(),d=Math.max(o(l).outerHeight(),s),c=Math.max(o(l).outerWidth(),r);s=d,r=c}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}},_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(),t=void 0!==this.option("container"),n=t?this._$container:$.getSwatchContainer(e);n&&n[0]===e.parent()[0]&&(n=e),this._$wrapper.appendTo(n)},_fixHeightAfterSafariAddressBarResizing:function(){this._isWindow(this._getContainer())&&oe&&this._$wrapper.css("minHeight",l.innerHeight)},_renderGeometry:function(){this.option("visible")&&r.hasWindow()&&this._renderGeometryImpl()},_renderGeometryImpl:function(){this._stopAnimation(),this._normalizePosition(),this._renderShading(),this._fixHeightAfterSafariAddressBarResizing(),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)&&!ie?"fixed":"absolute"),this._renderShadingDimensions(),this._renderShadingPosition()},_renderShadingPosition:function(){if(this.option("shading")){var e=this._getContainer();y.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 le(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,J),t=y.setup(this._$content,e);return se(this._$content),this._actions.onPositioning(),t}var n=this._allowedOffsets();this._changePosition({top:x(0,-n.top,n.bottom),left:x(0,-n.left,n.right)})},_transformStringPosition:function(e,t){return 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.option("ignoreChildEvents")||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(),H.remove(this._zIndex),this._$wrapper.remove(),this._$content.remove()},_toggleDisabledState:function(e){this.callBase.apply(this,arguments),this._$content.toggleClass(Z,Boolean(e))},_toggleRTLDirection:function(e){this._$content.toggleClass(U,e)},_optionChanged:function(e){var t=e.value;if(m(e.name,Y)>-1)return void this._initActions();switch(e.name){case"dragEnabled":this._renderDrag(),this._renderGeometry();break;case"resizeEnabled":this._renderResize(),this._renderGeometry();break;case"shading":case"shadingColor":this._toggleShading(this.option("visible"));break;case"width":case"height":case"minWidth":case"maxWidth":case"minHeight":case"maxHeight":case"boundaryOffset":this._renderGeometry();break;case"position":this._positionChangeHandled=!1,this._renderGeometry();break;case"visible":this._renderVisibilityAnimate(t).done(function(){this._animateDeferred&&this._animateDeferred.resolveWith(this)}.bind(this));break;case"target":this._initTarget(t),this._invalidate();break;case"container":this._initContainer(t),this._invalidate();break;case"innerOverlay":this._initInnerOverlayClass();break;case"deferRendering":case"contentTemplate":this._contentAlreadyRendered=!1,this._clean(),this._invalidate();break;case"closeOnBackButton":this._toggleHideTopOverlayCallback(this.option("visible"));break;case"closeOnTargetScroll":this._toggleParentsScrollSubscription(this.option("visible"));break;case"closeOnOutsideClick":case"animation":case"propagateOutsideClick":break;case"rtlEnabled":this._contentAlreadyRendered=!1,this.option("visible",!1),this.callBase(e);break;default:this.callBase(e)}},toggle:function(e){if(e=void 0===e?!this.option("visible"):e,e===this.option("visible"))return(new V).resolve().promise();var t=new V;return this._animateDeferred=t,this.option("visible",e),t.promise().done(function(){delete this._animateDeferred}.bind(this))},$content:function(){return this._$content},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},content:function(){return _(this._$content)},repaint:function(){this._renderGeometry()}});de.baseZIndex=function(e){return H.base(e)},T("dxOverlay",de),e.exports=de},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.clearStack=t.remove=t.create=t.base=void 0;var i=n(4),o=1500,a=[];t.base=function(e){return o=(0,i.ensureDefined)(e,o)},t.create=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=a.length,n=(t?a[t-1]:e)+1;return a.push(n),n},t.remove=function(e){var t=a.indexOf(e);t>=0&&a.splice(t,1)},t.clearStack=function(){a=[]}},function(e,t,n){var i=n(2),o=n(5),a=n(56),r=n(1).isPlainObject,s=n(112),l=n(9);s.add(function(e){var t=l.addNamespace(e,e+"Binding");a.bindingHandlers[e]={update:function(e,n,s,l){var d=i(e),c=a.utils.unwrapObservable(n()),u=c.execute?c.execute:c;o.off(d,t),o.on(d,t,r(c)?c:{},function(e){u.call(l,l,e)})}}})},function(e,t,n){var i=n(2),o=n(5),a=n(77),r=n(22).compileGetter,s=n(0).extend,l=n(56),d=n(89),c=n(17);l.bindingHandlers.dxAction={update:function(e,t,n,d){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,c.name+".dxActionBinding",function(t){g.execute({element:u,model:d,evaluate:function(t){var n=d;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=d.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=d.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(52),r=n(92),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(91);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(37),o=i.afterCleanData,a=i.strategyChanging,r=n(56),s=n(58).compare,l=r.utils.domNodeDisposal.cleanExternalData,d=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])}},c=function(){o(function(){}),r.utils.domNodeDisposal.cleanExternalData=l};d(),a.add(function(e){var t=!!e.fn;t&&s(e.fn.jquery,[2,0])<0&&c()})},function(e,t,n){var i=n(56),o=n(58).compare,a=n(37).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(29),o=n(224),a=n(76)();a&&o.set(i)},function(e,t,n){var i=n(29),o=n(76)(),a=n(58).compare,r=n(3).each,s=n(1).isNumeric,l=n(9).setEventFixMethod,d=n(64),c=n(225);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 c(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"])};d.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 c(function(e,t){i.event.addProp(e,t)})},function(e,t,n){var i=n(29),o=n(7),a=n(76)(),r=n(58).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(29),o=n(244),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(29),o=n(5),a=n(76)(),r=n(112),s=n(13);a&&(r.add(function(e,t){i.event.special[e]=t}),o.passiveEventHandlersSupported()&&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(29),o=n(237);i&&o.setEasing(i.easing)},function(e,t,n){var i=n(29),o=n(37),a=n(76)();a&&o.setDataStrategy(i)},function(e,t,n){var i=n(12).setPublicElementWrapper,o=n(76)(),a=function(e){return e};o&&i(a)},function(e,t,n){var i=n(29),o=n(141),a=n(18);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(29),o=n(75),a=n(76)();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(252);i&&(n(44),n(370),n(377),n(378),n(379))},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),d=n(23),c=i(d),u=n(141),h=i(u),p=n(10),f=i(p),g=n(19),m=i(g),_=n(1),v=i(_),w=n(3),y=i(w),x=n(11),b=i(x),C=n(243),k=i(C),I=n(27),S=i(I),D=n(47),T=i(D),E=n(371),A=i(E),B=n(184),O=i(B),R=n(48),M=i(R),P=n(22),F=i(P),V=n(0),H=i(V),$=n(32),z=i($),L=n(18),N=i(L),W=y.default.each,q=b.default.inArray,G=F.default.compileSetter,K=F.default.compileGetter,j=H.default.extendFromObject,U="dxItemAlias",Y=["rendering"],X="value",Z=function(e,t){return t.$root.$$phase?e(t):t.$apply(function(){return e(t)})},Q=f.default.inherit({ctor:function(e){this._componentDisposing=(0,m.default)(),this._optionChangedCallbacks=(0,m.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)));
|
|
36
|
+
});return l.default.toXml("numFmts",{count:e.length},e.join(""))}return""}}],[{key:"copyCellFormat",value:function(e){return c.default.copy(e)}}]),e}();t.default=_,e.exports=_},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=n(74),r=i(a),s=n(334),l=i(s),d=n(231),c=i(d),u=n(233),h=i(u),p={tryCreateTag:function(e,t){var n=null;if((0,o.isDefined)(e)){var i=void 0;i="number"==typeof e.numberFormat?e.numberFormat:t.registerNumberFormat(e.numberFormat);var a=e.fill;(0,o.isDefined)(a)||(a=c.default.tryCreateFillFromSimpleFormat(e)),n={numberFormatId:i,alignment:l.default.tryCreateTag(e.alignment),fontId:t.registerFont(e.font),fillId:t.registerFill(a)},p.isEmpty(n)&&(n=null)}return n},copy:function(e){var t=void 0;return null===e?t=null:(0,o.isDefined)(e)&&(t={},void 0!==e.numberFormat&&(t.numberFormat=e.numberFormat),void 0!==e.fill?t.fill=c.default.copy(e.fill):c.default.copySimpleFormat(e,t),void 0!==e.alignment&&(t.alignment=l.default.copy(e.alignment)),void 0!==e.font&&(t.font=h.default.copy(e.font))),t},areEqual:function(e,t){return p.isEmpty(e)&&p.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.fontId===t.fontId&&e.numberFormatId===t.numberFormatId&&e.fillId===t.fillId&&l.default.areEqual(e.alignment,t.alignment)},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.fontId)&&!(0,o.isDefined)(e.numberFormatId)&&!(0,o.isDefined)(e.fillId)&&l.default.isEmpty(e.alignment)},toXml:function(e){var t=l.default.isEmpty(e.alignment),n=void 0;return(0,o.isDefined)(e.numberFormatId)&&(n=e.numberFormatId>0?1:0),r.default.toXml("xf",{xfId:0,applyAlignment:t?null:1,fontId:e.fontId,applyNumberFormat:n,fillId:e.fillId,numFmtId:e.numberFormatId},t?null:l.default.toXml(e.alignment))}};t.default=p},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=n(74),r=i(a),s={tryCreateTag:function(e){var t=null;return(0,o.isDefined)(e)&&(t={vertical:e.vertical,wrapText:e.wrapText,horizontal:e.horizontal},s.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,o.isDefined)(e)&&(t={},void 0!==e.horizontal&&(t.horizontal=e.horizontal),void 0!==e.vertical&&(t.vertical=e.vertical),void 0!==e.wrapText&&(t.wrapText=e.wrapText)),t},areEqual:function(e,t){return s.isEmpty(e)&&s.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.vertical===t.vertical&&e.wrapText===t.wrapText&&e.horizontal===t.horizontal},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.vertical)&&!(0,o.isDefined)(e.wrapText)&&!(0,o.isDefined)(e.horizontal)},toXml:function(e){return r.default.toXml("alignment",{vertical:e.vertical,wrapText:(0,o.isDefined)(e.wrapText)?Number(e.wrapText):void 0,horizontal:e.horizontal})}};t.default=s},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=n(74),r=i(a),s=n(232),l=i(s),d={tryCreateTag:function(e){var t=null;return(0,o.isDefined)(e)&&(t={patternType:e.patternType,backgroundColor:l.default.tryCreateTag(e.backgroundColor),foregroundColor:l.default.tryCreateTag(e.foregroundColor)},d.isEmpty(t)&&(t=null)),t},copy:function(e){var t=null;return(0,o.isDefined)(e)&&(t={},void 0!==e.patternType&&(t.patternType=e.patternType),void 0!==e.backgroundColor&&(t.backgroundColor=l.default.copy(e.backgroundColor)),void 0!==e.foregroundColor&&(t.foregroundColor=l.default.copy(e.foregroundColor))),t},areEqual:function(e,t){return d.isEmpty(e)&&d.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.patternType===t.patternType&&l.default.areEqual(e.backgroundColor,t.backgroundColor)&&l.default.areEqual(e.foregroundColor,t.foregroundColor)},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.patternType)},toXml:function(e){var t=[(0,o.isDefined)(e.foregroundColor)?l.default.toXml("fgColor",e.foregroundColor):"",(0,o.isDefined)(e.backgroundColor)?l.default.toXml("bgColor",e.backgroundColor):""].join("");return r.default.toXml("patternFill",{patternType:e.patternType},t)}};t.default=d},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=n(74),r=i(a),s={ID_PROPERTY_NAME:"id",tryCreateTag:function(e){var t=null;return"string"==typeof e&&(t={formatCode:e},s.isEmpty(t)&&(t=null)),t},areEqual:function(e,t){return s.isEmpty(e)&&s.isEmpty(t)||(0,o.isDefined)(e)&&(0,o.isDefined)(t)&&e.formatCode===t.formatCode},isEmpty:function(e){return!(0,o.isDefined)(e)||!(0,o.isDefined)(e.formatCode)||""===e.formatCode},toXml:function(e){return r.default.toXml("numFmt",{numFmtId:e[s.ID_PROPERTY_NAME],formatCode:e.formatCode})}};t.default=s},function(e,t,n){var i=n(2),o=n(75),a=n(6).getWindow(),r=n(1).isFunction,s=n(3).each,l=n(201),d=n(7),c=d.when,u=d.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("href")||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(),c.apply(i,this._imageDeferreds)},getData:function(e,t){var n,o=this,d='<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>',c=new u,h=l.getSvgElement(e),p=i(h);return n=d+l.getSvgMarkup(p.get(0),t.backgroundColor),o._prepareImages(h).done(function(){s(o._imageArray,function(e,t){var i="href=['|\"]"+e+"['|\"]";n=n.replace(new RegExp(i,"gi"),'href="'+t+'"')}),c.resolve(r(a.Blob)?o._getBlob(n):o._getBase64(n))}),c},_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){return 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(129),o=n(6).getWindow(),a=n(234).imageCreator,r=n(1).isFunction,s=n(0).extend,l=n(7),d=l.when,c=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",m="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",_="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},w=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),d=u.replace("_width_",s).replace("_height_",l),c=h.replace("_width_",s).replace("_height_",l),_=p.replace("_date_",n).replace("_version_",i),v=f.replace("_width_",a).replace("_height_",r).replace("_length_",e.length)+e+g,w=y(d.length,c.length,_.length),x=d+c+_+v,b=m.replace("_length_",x.length);return x+w+b},y=function(e,t,n){return _.replace("_main_",v(e+"",10)).replace("_info_",v(e+t+"",10)).replace("_image_",v(e+t+n+"",10))},x=function(){return new Date},b=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 c;return l.done(n),d(i).done(function(e){var n=w(e,t,x()),i=r(o.Blob)?b(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);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(143),a=n(239),r=n(0).extend,s={dxpointerdown:"pointerdown",dxpointermove:"pointermove",dxpointerup:"pointerup",dxpointercancel:"pointercancel",dxpointerover:"pointerover",dxpointerout:"pointerout",dxpointerenter:"pointerenter",dxpointerleave:"pointerleave"},l=!1,d=function(){l||(i=new a(s,function(e,t){return e.pointerId===t.pointerId},function(e){e.isPrimary&&i.reset()}),l=!0)},c=o.inherit({ctor:function(){this.callBase.apply(this,arguments),d()},_fireEvent:function(e){return this.callBase(r({pointers:i.pointers(),pointerId:e.originalEvent.pointerId},e))}});c.map=s,c.resetObserver=function(){i.reset()},e.exports=c},function(e,t,n){var i=n(0).extend,o=n(143),a=n(240),r=n(238),s=n(9),l={dxpointerdown:"touchstart mousedown",dxpointermove:"touchmove mousemove",dxpointerup:"touchend mouseup",dxpointercancel:"touchcancel",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},d=!1,c=function(){d||(a.activate(),d=!0)},u=o.inherit({EVENT_LOCK_TIMEOUT:100,ctor:function(){this.callBase.apply(this,arguments),c()},_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(82),o=n(14),a=n(50),r=n(34);n(140),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","dxFileUploader-invalidFileExtension":"File type is not allowed","dxFileUploader-invalidMaxFileSize":"File is too large","dxFileUploader-invalidMinFileSize":"File is too small","dxRangeSlider-ariaFrom":"From","dxRangeSlider-ariaTill":"Till","dxSwitch-switchedOnText":"ON","dxSwitch-switchedOffText":"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","dxHtmlEditor-dialogColorCaption":"Change Font Color","dxHtmlEditor-dialogBackgroundCaption":"Change Background Color","dxHtmlEditor-dialogLinkCaption":"Add Link","dxHtmlEditor-dialogLinkUrlField":"URL","dxHtmlEditor-dialogLinkTextField":"Text","dxHtmlEditor-dialogLinkTargetField":"Open link in new window","dxHtmlEditor-dialogImageCaption":"Add Image","dxHtmlEditor-dialogImageUrlField":"URL","dxHtmlEditor-dialogImageAltField":"Alternate text","dxHtmlEditor-dialogImageWidthField":"Width (px)","dxHtmlEditor-dialogImageHeightField":"Height (px)","dxHtmlEditor-heading":"Heading","dxHtmlEditor-normalText":"Normal text"}}},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-MV":"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","hi-Latn":"en-IN","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","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(128),n(114),e.exports=DevExpress.framework={},DevExpress.framework.dxCommand=n(178),DevExpress.framework.Router=n(144),DevExpress.framework.StateManager=n(179),DevExpress.framework.ViewCache=n(83),DevExpress.framework.NullViewCache=n(83).NullViewCache,DevExpress.framework.ConditionalViewCacheDecorator=n(83).ConditionalViewCacheDecorator,DevExpress.framework.CapacityViewCacheDecorator=n(83).CapacityViewCacheDecorator,DevExpress.framework.HistoryDependentViewCacheDecorator=n(83).HistoryDependentViewCacheDecorator,DevExpress.framework.dxCommandContainer=n(180),DevExpress.framework.dxView=n(68).dxView,DevExpress.framework.dxLayout=n(68).dxLayout,DevExpress.framework.dxViewPlaceholder=n(68).dxViewPlaceholder,DevExpress.framework.dxContentPlaceholder=n(68).dxContentPlaceholder,DevExpress.framework.dxTransition=n(68).dxTransition,DevExpress.framework.dxContent=n(68).dxContent,DevExpress.framework.html={},DevExpress.framework.html.HtmlApplication=n(245),DevExpress.framework.Route=n(144).Route,DevExpress.framework.MemoryKeyValueStorage=n(179).MemoryKeyValueStorage,DevExpress.framework.NavigationDevices=n(145),DevExpress.framework.NavigationManager=n(117),DevExpress.framework.createActionExecutors=n(247).createActionExecutors,DevExpress.framework.Application=n(246).Application;var i=n(248);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(182),DevExpress.framework.HistoryBasedNavigationDevice=n(145).HistoryBasedNavigationDevice,DevExpress.framework.StackBasedNavigationDevice=n(145).StackBasedNavigationDevice,DevExpress.framework.HistoryBasedNavigationManager=n(117).HistoryBasedNavigationManager,DevExpress.framework.StackBasedNavigationManager=n(117).StackBasedNavigationManager,DevExpress.framework.NavigationStack=n(117).NavigationStack,DevExpress.framework.utils=n(116).utils,DevExpress.framework.templateProvider=n(116).templateProvider,DevExpress.framework.html.CommandManager=n(249),DevExpress.framework.html.HtmlApplication=n(245),DevExpress.framework.html.layoutSets=n(146).layoutSets,DevExpress.framework.html.animationSets=n(146).animationSets,DevExpress.framework.html.DefaultLayoutController=n(183).DefaultLayoutController,DevExpress.framework.html.layoutSets=n(183).layoutSets,DevExpress.framework.html.MarkupComponent=n(181).MarkupComponent,DevExpress.framework.html.ViewEngine=n(251).ViewEngine,DevExpress.framework.html.ViewEngineComponents=n(68);var o=n(250);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(18),s=n(32),l=n(1).isPlainObject,d=n(141),c=n(27),u=n(241),h=n(47),p=n(243),f=n(242).getClosestNodeWithContext,g=n(23),m="dxKoLocks",_="dxKoCreation",v=[],w=function(e,t){t.subclassOf(h)&&v.push(e),o.bindingHandlers[e]={init:function(e,n){var d,h,v=i(e),w=a(),y={},x=g().knockout,b=x&&x.isBindingPropertyPredicateName,C={onInitializing:function(){y=this._getOptionsByReference(),o.computed(function(){var e=o.unwrap(n());d&&d.beginUpdate(),h=b&&e&&e[b],E(e),d&&d.endUpdate()},null,{disposeWhenNodeIsRemoved:e}),d=this},modelByElement:function(e){if(e.length){var t=f(e.get(0));return o.dataFor(t)}},nestedComponentOptions:function(e){return{modelByElement:e.option("modelByElement"),nestedComponentOptions:e.option("nestedComponentOptions")}},_optionChangedCallbacks:w,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)}}},k={},I=function(e,t,n){var i=v.data(m),a=n?o.unwrap(t):t;if(o.isWriteableObservable(t)&&(k[e]=t),d){if(i.locked(e))return;i.obtain(e);try{o.ignoreDependencies?o.ignoreDependencies(d.option,d,[e,a]):d.option(e,a)}finally{i.release(e)}}else C[e]=a},S=function(e){var t=e.fullName,n=e.value;if(t in k){var i=this._$element,o=i.data(m);if(!o.locked(t)){o.obtain(t);try{k[t](n)}finally{o.release(t)}}}},D=function(){w.add(S),v.data(_,!0).data(m,new p),new t(v,C),C=null},T=function(t,n,i){if(i!==b)if(!h||h(i,n,t)){var a;o.computed(function(){var e=t[n];I(i,e,!0),a=o.unwrap(e)},null,{disposeWhenNodeIsRemoved:e}),l(a)&&(y[i]||E(a,i))}else I(i,t[n],!1)},E=function(e,t){for(var n in e)e.hasOwnProperty(n)&&T(e,n,t?[t,n].join("."):n)};return D(),{controlsDescendantBindings:t.subclassOf(c)}}},"dxValidator"===e&&(o.bindingHandlers.dxValidator.after=v)};d.add(function(e,t){w(e,t)})},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(71),s=i(r),l=n(12),d=n(194);n(350),(0,d.registerTemplateEngine)("default",{compile:function(e){return(0,l.normalizeTemplateElement)(e)},render:function(e,t,n){return e.clone()}}),(0,d.setTemplateEngine)("default");var c=s.default.inherit({ctor:function(e){this._element=e},_renderCore:function(e){var t=e.transclude;return t||this._compiledTemplate||(this._compiledTemplate=(0,d.getCurrentTemplateEngine)().compile(this._element)),(0,a.default)("<div>").append(t?this._element:(0,d.getCurrentTemplateEngine)().render(this._compiledTemplate,e.model,e.index)).contents()},source:function(){return(0,a.default)(this._element).clone()}});e.exports=c},function(e,t,n){var i=n(12),o=n(194);(0,o.registerTemplateEngine)("jquery-tmpl",{compile:function(e){return(0,i.extractTemplateMarkup)(e)},render:function(e,t){return jQuery.tmpl(e,t)}}),(0,o.registerTemplateEngine)("jsrender",{compile:function(e){return(jQuery?jQuery:jsrender).templates((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e.render(t)}}),(0,o.registerTemplateEngine)("mustache",{compile:function(e){return(0,i.extractTemplateMarkup)(e);
|
|
37
|
+
},render:function(e,t){return Mustache.render(e,t)}}),(0,o.registerTemplateEngine)("hogan",{compile:function(e){return Hogan.compile((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e.render(t)}}),(0,o.registerTemplateEngine)("underscore",{compile:function(e){return _.template((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e(t)}}),(0,o.registerTemplateEngine)("handlebars",{compile:function(e){return Handlebars.compile((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e(t)}}),(0,o.registerTemplateEngine)("doT",{compile:function(e){return doT.template((0,i.extractTemplateMarkup)(e))},render:function(e,t){return e(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(13),r=n(6),s=n(51).add,l=r.getWindow(),d=r.getNavigator(),c=n(5),u=n(33),h=n(24),p=n(58).compare,f=n(65),g=n(0).extend,m=n(11).inArray,_=n(12).getPublicElement,v=f.changeCallback,w=n(139).hideCallback,y=n(79),x=n(31).fitIntoRange,b=n(12),C=n(4).noop,k=n(1),I=n(3).each,S=n(15),D=n(28),T=n(8),E=n(27),A=n(159),B=n(63),O=n(72),R=n(9),M=n(26),P=n(213),F=n(94),V=n(7).Deferred,H=n(352),$=n(214),z="dx-overlay",L="dx-overlay-wrapper",N="dx-overlay-content",W="dx-overlay-shader",q="dx-overlay-modal",G="dx-inner-overlay",K="dx-state-invisible",j="content",U="dx-rtl",Y=["onShowing","onShown","onHiding","onHidden","onPositioning","onPositioned","onResizeStart","onResize","onResizeEnd"],X=[],Z="dx-state-disabled",Q="tab",J={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"}},ee=S.real(),te=ee.version,ne=D.mozilla&&"desktop"===ee.deviceType,ie="ios"===ee.platform,oe=D.safari&&"desktop"!==ee.deviceType,ae=ie&&p(te,[7,1])<0,re="android"===ee.platform&&0===p(te,[4,0],2)&&d.userAgent.indexOf("Chrome")===-1,se=function(e){if((ae||ne)&&e.width(),re){var t=e.parents(),n=t.is(".dx-scrollable-native");n||(t.css("backfaceVisibility","hidden"),t.css("backfaceVisibility"),t.css("backfaceVisibility","visible"))}},le=function(e){return e&&o(e.target||e)};s(function(){c.subscribeGlobal(a.getDocument(),M.down,function(e){for(var t=X.length-1;t>=0;t--)if(!X[t]._proxiedDocumentDownHandler(e))return})});var de=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:x(e,-i.top,i.bottom),left:x(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,innerOverlay:!1,target:void 0,container:void 0,hideTopOverlayHandler:void 0,closeOnTargetScroll:!1,onPositioned:null,boundaryOffset:{h:0,v:0},propagateOutsideClick:!1,ignoreChildEvents:!0,_checkParentVisibility:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var e=S.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 j},_wrapper:function(){return this._$wrapper},_container:function(){return this._$content},_eventBindingTarget:function(){return this._$content},_init:function(){this.callBase(),this._initActions(),this._initCloseOnOutsideClickHandler(),this._initTabTerminatorHandler(),this._$wrapper=o("<div>").addClass(L),this._$content=o("<div>").addClass(N),this._initInnerOverlayClass();var e=this.$element();this._$wrapper.addClass(e.attr("class")),e.addClass(z),this._$wrapper.attr("data-bind","dxControlsDescendantBindings: true"),c.on(this._$wrapper,"MSPointerDown",C),c.on(this._$wrapper,"focusin",function(e){e.stopPropagation()}),this._toggleViewPortSubscription(!0)},_initOptions:function(e){this._initTarget(e.target);var t=void 0===e.container?this.option("container"):e.container;this._initContainer(t),this._initHideTopOverlayHandler(e.hideTopOverlayHandler),this.callBase(e)},_initInnerOverlayClass:function(){this._$content.toggleClass(G,this.option("innerOverlay"))},_initTarget:function(e){if(k.isDefined(e)){var t=this.option();I(["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={},I(Y,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)||b.contains(l.document,e.target),a=o(e.target).closest("."+G).length,r=i&&!a&&!(n.is(e.target)||b.contains(n.get(0),e.target));return r&&t&&(this.option("shading")&&e.preventDefault(),this.hide()),this.option("propagateOutsideClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.content=new F(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 X},_zIndexInitValue:function(){return de.baseZIndex()},_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 V;if(this._parentHidden=this._isParentHidden(),t.done(function(){delete e._parentHidden}),this._parentHidden)return this._isHidden=!0,t.resolve();if(this._currentVisible)return(new V).resolve().promise();this._currentVisible=!0,this._normalizePosition();var n=e._getAnimationConfig()||{},i=this._normalizeAnimation(n.show,"to"),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")&&c.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 V).resolve().promise();this._currentVisible=!1;var e=this,t=new V,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(),t=!!this._$content.find(e).length;t&&b.resetActiveElement()},_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||b.triggerHidingEvent(this._$content),this._toggleVisibility(e),this._$content.toggleClass(K,!e),this._updateZIndexStackPosition(e),e?(this._renderContent(),this._actions.onShowing(),this._moveToContainer(),this._renderGeometry(),b.triggerShownEvent(this._$content),b.triggerResizeEvent(this._$content)):this._moveFromContainer(),this._toggleShading(e),this._toggleSubscriptions(e))},_updateZIndexStackPosition:function(e){var t=this._overlayStack(),n=m(this,t);e?(n===-1&&(this._zIndex=H.create(this._zIndexInitValue()),t.push(this)),this._$wrapper.css("zIndex",this._zIndex),this._$content.css("zIndex",this._zIndex)):n!==-1&&(t.splice(n,1),H.remove(this._zIndex))},_toggleShading:function(e){this._$wrapper.toggleClass(q,this.option("shading")&&!this.option("container")),this._$wrapper.toggleClass(W,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?c.on(a.getDocument(),t,this._proxiedTabTerminatorHandler):c.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(R.normalizeKeyName(e)===Q&&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=!b.contains(this._$wrapper.get(0),e.target);if(o||a||r||s){e.preventDefault();var l=e.shiftKey?i:n;c.trigger(l,"focusin"),c.trigger(l,"focus")}}},_toggleSubscriptions:function(e){r.hasWindow()&&(this._toggleHideTopOverlayCallback(e),this._toggleParentsScrollSubscription(e))},_toggleHideTopOverlayCallback:function(e){this._hideTopOverlayHandler&&(e&&this.option("closeOnBackButton")?w.add(this._hideTopOverlayHandler):w.remove(this._hideTopOverlayHandler))},_toggleParentsScrollSubscription:function(e){if(this._position){var t=this._position.of||o(),n=this.option("closeOnTargetScroll"),i=le(t).parents(),a=R.addNamespace("scroll",this.NAME);"generic"===S.real().platform&&(i=i.add(l)),this._proxiedTargetParentsScrollHandler=this._proxiedTargetParentsScrollHandler||function(e){this._targetParentsScrollHandler(e)}.bind(this),c.off(o().add(this._$prevTargetParents),a,this._proxiedTargetParentsScrollHandler),e&&n&&(c.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._appendContentToElement(),this._renderVisibilityAnimate(this.option("visible"))},_appendContentToElement:function(){this._$content.parent().is(this.$element())||this._$content.appendTo(this.$element())},_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._appendContentToElement(),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,t=new V,n=this.option("contentTemplate"),i=this._getTemplate(n),o=this._getAnonymousTemplateName()===n;return i&&i.render({container:_(this.$content()),noModel:!0,transclude:o,onRendered:function(){t.resolve()}}),this._renderDrag(),this._renderResize(),this._renderScrollTerminator(),t.done(function(){e.option("visible")&&e._moveToContainer()}),t.promise()},_renderDrag:function(){var e=this._getDragTarget();if(e){var t=R.addNamespace(O.start,this.NAME),n=R.addNamespace(O.move,this.NAME);c.off(e,t),c.off(e,n),this.option("dragEnabled")&&(c.on(e,t,this._dragStartHandler.bind(this)),c.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);c.off(e,t),c.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(),d=Math.max(o(l).outerHeight(),s),c=Math.max(o(l).outerWidth(),r);s=d,r=c}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}},_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(),t=void 0!==this.option("container"),n=t?this._$container:$.getSwatchContainer(e);n&&n[0]===e.parent()[0]&&(n=e),this._$wrapper.appendTo(n)},_fixHeightAfterSafariAddressBarResizing:function(){this._isWindow(this._getContainer())&&oe&&this._$wrapper.css("minHeight",l.innerHeight)},_renderGeometry:function(){this.option("visible")&&r.hasWindow()&&this._renderGeometryImpl()},_renderGeometryImpl:function(){this._stopAnimation(),this._normalizePosition(),this._renderShading(),this._fixHeightAfterSafariAddressBarResizing(),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)&&!ie?"fixed":"absolute"),this._renderShadingDimensions(),this._renderShadingPosition()},_renderShadingPosition:function(){if(this.option("shading")){var e=this._getContainer();y.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 le(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,J),t=y.setup(this._$content,e);return se(this._$content),this._actions.onPositioning(),t}var n=this._allowedOffsets();this._changePosition({top:x(0,-n.top,n.bottom),left:x(0,-n.left,n.right)})},_transformStringPosition:function(e,t){return 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.option("ignoreChildEvents")||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(),H.remove(this._zIndex),this._$wrapper.remove(),this._$content.remove()},_toggleDisabledState:function(e){this.callBase.apply(this,arguments),this._$content.toggleClass(Z,Boolean(e))},_toggleRTLDirection:function(e){this._$content.toggleClass(U,e)},_optionChanged:function(e){var t=e.value;if(m(e.name,Y)>-1)return void this._initActions();switch(e.name){case"dragEnabled":this._renderDrag(),this._renderGeometry();break;case"resizeEnabled":this._renderResize(),this._renderGeometry();break;case"shading":case"shadingColor":this._toggleShading(this.option("visible"));break;case"width":case"height":case"minWidth":case"maxWidth":case"minHeight":case"maxHeight":case"boundaryOffset":this._renderGeometry();break;case"position":this._positionChangeHandled=!1,this._renderGeometry();break;case"visible":this._renderVisibilityAnimate(t).done(function(){this._animateDeferred&&this._animateDeferred.resolveWith(this)}.bind(this));break;case"target":this._initTarget(t),this._invalidate();break;case"container":this._initContainer(t),this._invalidate();break;case"innerOverlay":this._initInnerOverlayClass();break;case"deferRendering":case"contentTemplate":this._contentAlreadyRendered=!1,this._clean(),this._invalidate();break;case"closeOnBackButton":this._toggleHideTopOverlayCallback(this.option("visible"));break;case"closeOnTargetScroll":this._toggleParentsScrollSubscription(this.option("visible"));break;case"closeOnOutsideClick":case"animation":case"propagateOutsideClick":break;case"rtlEnabled":this._contentAlreadyRendered=!1,this.option("visible",!1),this.callBase(e);break;default:this.callBase(e)}},toggle:function(e){if(e=void 0===e?!this.option("visible"):e,e===this.option("visible"))return(new V).resolve().promise();var t=new V;return this._animateDeferred=t,this.option("visible",e),t.promise().done(function(){delete this._animateDeferred}.bind(this))},$content:function(){return this._$content},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},content:function(){return _(this._$content)},repaint:function(){this._renderGeometry()}});de.baseZIndex=function(e){return H.base(e)},T("dxOverlay",de),e.exports=de},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.clearStack=t.remove=t.create=t.base=void 0;var i=n(4),o=1500,a=[];t.base=function(e){return o=(0,i.ensureDefined)(e,o)},t.create=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=a.length,n=(t?a[t-1]:e)+1;return a.push(n),n},t.remove=function(e){var t=a.indexOf(e);t>=0&&a.splice(t,1)},t.clearStack=function(){a=[]}},function(e,t,n){var i=n(2),o=n(5),a=n(56),r=n(1).isPlainObject,s=n(112),l=n(9);s.add(function(e){var t=l.addNamespace(e,e+"Binding");a.bindingHandlers[e]={update:function(e,n,s,l){var d=i(e),c=a.utils.unwrapObservable(n()),u=c.execute?c.execute:c;o.off(d,t),o.on(d,t,r(c)?c:{},function(e){u.call(l,l,e)})}}})},function(e,t,n){var i=n(2),o=n(5),a=n(77),r=n(22).compileGetter,s=n(0).extend,l=n(56),d=n(89),c=n(17);l.bindingHandlers.dxAction={update:function(e,t,n,d){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,c.name+".dxActionBinding",function(t){g.execute({element:u,model:d,evaluate:function(t){var n=d;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=d.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=d.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(52),r=n(92),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(91);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(37),o=i.afterCleanData,a=i.strategyChanging,r=n(56),s=n(58).compare,l=r.utils.domNodeDisposal.cleanExternalData,d=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])}},c=function(){o(function(){}),r.utils.domNodeDisposal.cleanExternalData=l};d(),a.add(function(e){var t=!!e.fn;t&&s(e.fn.jquery,[2,0])<0&&c()})},function(e,t,n){var i=n(56),o=n(58).compare,a=n(37).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(29),o=n(224),a=n(76)();a&&o.set(i)},function(e,t,n){var i=n(29),o=n(76)(),a=n(58).compare,r=n(3).each,s=n(1).isNumeric,l=n(9).setEventFixMethod,d=n(64),c=n(225);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 c(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"])};d.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 c(function(e,t){i.event.addProp(e,t)})},function(e,t,n){var i=n(29),o=n(7),a=n(76)(),r=n(58).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(29),o=n(244),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(29),o=n(5),a=n(76)(),r=n(112),s=n(13);a&&(r.add(function(e,t){i.event.special[e]=t}),o.passiveEventHandlersSupported()&&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(29),o=n(237);i&&o.setEasing(i.easing)},function(e,t,n){var i=n(29),o=n(37),a=n(76)();a&&o.setDataStrategy(i)},function(e,t,n){var i=n(12).setPublicElementWrapper,o=n(76)(),a=function(e){return e};o&&i(a)},function(e,t,n){var i=n(29),o=n(141),a=n(18);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(29),o=n(75),a=n(76)();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(252);i&&(n(44),n(370),n(377),n(378),n(379))},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),d=n(23),c=i(d),u=n(141),h=i(u),p=n(10),f=i(p),g=n(19),m=i(g),_=n(1),v=i(_),w=n(3),y=i(w),x=n(11),b=i(x),C=n(243),k=i(C),I=n(27),S=i(I),D=n(47),T=i(D),E=n(371),A=i(E),B=n(184),O=i(B),R=n(48),M=i(R),P=n(22),F=i(P),V=n(0),H=i(V),$=n(32),z=i($),L=n(18),N=i(L),W=y.default.each,q=b.default.inArray,G=F.default.compileSetter,K=F.default.compileGetter,j=H.default.extendFromObject,U="dxItemAlias",Y=["rendering"],X="value",Z=function(e,t){return t.$root.$$phase?e(t):t.$apply(function(){return e(t)})},Q=f.default.inherit({ctor:function(e){this._componentDisposing=(0,m.default)(),this._optionChangedCallbacks=(0,m.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)));
|
|
38
38
|
});this._componentDisposing.add(n)},_normalizeOptions:function(e){var t=this;this._ngOptions=j({},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,d=!0,c=!1;void 0!==i.deep&&(c=d=!!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))&&!c?"$watchCollection":"$watch";r!==t&&(s&&s(),s=e._scope[t](l,u,d),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 d=t._compile(o,t._transcludeFn);return t._applyAsync(function(e){d(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],d=void 0;if(s){if(!v.default.isNumeric(a))return;l.push("[",a,"]")}l.push(r),d=l.join("");var c=t.$watch(d,function(e,t){e!==t&&G(i)(n,e)}),u=n.$watch(i,function(e,n){if(e!==n){if(s&&!K(o)(t)[a])return void u();G(d)(t,e)}});this._componentDisposing.add([c,u])},_evalOptions:function(e){var t=this,n=j({},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&&q(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,c.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,c.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),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}});Q=Q.inherit({ctor:function(e){this._componentName=e.componentName,this._ngModel=e.ngModel,this._ngModelController=e.ngModelController,this.callBase.apply(this,arguments)},_isNgModelRequired:function(){return(this._componentClass.subclassOf(T.default)||this._componentClass.prototype instanceof T.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 J={},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=J[e],r=a.subclassOf(S.default)?t.contents().detach():null;return function(t,s,l,d,c){s.append(r),Z(function(){new Q({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:d,transcludeFn:c,itemAlias:l[U],dxDigestCallbacks:o})},t)}}}}])};h.default.add(function(e,t){J[e]||ee(e),J[e]=t})},function(e,t,n){var i=n(2),o=n(71),a=n(1).isFunction,r=n(12),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){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(5),s=i(r),l=n(4),d=i(l),c=n(12),u=n(13),h=i(u),p=n(1),f=n(7),g=n(0),m=n(11),_=n(3),v=i(_),w=n(77),y=i(w),x=n(40),b=i(x),C=n(27),k=i(C),I=n(9),S=i(I),D=n(26),T=i(D),E=n(118),A=i(E),B=n(111),O=i(B),R=n(63),M=i(R),P=n(14),F=i(P),V=n(93),H=i(V),$=n(22),z=n(17),L=i(z),N=n(202),W=i(N),q=n(62),G=i(q),K="dx-collection",j="dx-item",U="-content",Y="dx-item-content-placeholder",X="dxItemData",Z="dxItemIndex",Q="tmpl-",J="[data-options*='dxItem']",ee="dx-item-selected",te="dx-item-response-wait",ne="dx-empty-collection",ie="dx-template-wrapper",oe=/^([^.]+\[\d+\]\.)+([\w.]+)$/,ae="up",re="down",se="left",le="right",de="pageup",ce="pagedown",ue="last",he="first",pe=k.default.inherit({_activeStateUnit:"."+j,_supportedKeys:function(){var e=function(e){var t=(0,a.default)(this.option("focusedElement"));t.length&&this._itemClickHandler((0,g.extend)({},e,{target:t,currentTarget:t}))},t=function(t){t.preventDefault(),e.call(this,t)},n=function(e,t){t.preventDefault(),t.stopPropagation(),this._moveFocus(e,t)};return(0,g.extend)(this.callBase(),{space:t,enter:e,leftArrow:n.bind(this,se),rightArrow:n.bind(this,le),upArrow:n.bind(this,ae),downArrow:n.bind(this,re),pageUp:n.bind(this,ae),pageDown:n.bind(this,re),home:n.bind(this,he),end:n.bind(this,ue)})},_getDefaultOptions:function(){return(0,g.extend)(this.callBase(),{selectOnFocus:!1,loopItemFocus:!0,items:[],itemTemplate:"item",onItemRendered:null,onItemClick:null,onItemHold:null,itemHoldTimeout:750,onItemContextMenu:null,onFocusedItemChanged:null,noDataText:F.default.format("dxCollectionWidget-noDataText"),dataSource:null,_itemAttributes:{},itemTemplateProperty:"template",focusOnSelectedItem:!0,focusedElement:null,displayExpr:void 0,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._compileDisplayGetter(),this.callBase(),this._cleanRenderedItems(),this._refreshDataSource()},_compileDisplayGetter:function(){var e=this.option("displayExpr");this._displayGetter=e?(0,$.compileGetter)(this.option("displayExpr")):void 0},_initTemplates:function(){this._initItemsFromMarkup(),this.callBase(),this._initDefaultItemTemplate()},_initDefaultItemTemplate:function(){var e=this._getFieldsMap();this._defaultTemplates.item=new G.default(function(t,n){(0,p.isPlainObject)(n)?this._prepareDefaultItemTemplate(n,t):(e&&(0,p.isFunction)(e.text)&&(n=e.text(n)),t.text(String(d.default.ensureDefined(n,""))))}.bind(this),this._getBindableFields(),this.option("integrationOptions.watchMethod"),e)},_getBindableFields:function(){return["text","html"]},_getFieldsMap:function(){if(this._displayGetter)return{text:this._displayGetter}},_prepareDefaultItemTemplate:function(e,t){(0,p.isDefined)(e.text)&&t.text(e.text),(0,p.isDefined)(e.html)&&t.html(e.html)},_initItemsFromMarkup:function(){var e=this,t=this.$element().contents().filter(J);if(t.length&&!this.option("items").length){var n=[].slice.call(t).map(function(t){var n=(0,a.default)(t),i=(0,c.getElementOptions)(t).dxItem,o=n.html().trim()&&!i.template;return o?i.template=e._prepareItemTemplate(n):n.remove(),i});this.option("items",n)}},_prepareItemTemplate:function(e){var t=Q+new b.default,n=e.detach().clone().removeAttr("data-options").addClass(ie);return this._saveTemplate(t,n),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),(0,m.inArray)(e.target,this._focusTarget())!==-1){var t=(0,a.default)(this.option("focusedElement"));if(t.length)this._setFocusedItem(t);else{var n=this._getActiveItem();n.length&&this.option("focusedElement",(0,c.getPublicElement)(n))}}},_focusOutHandler:function(){this.callBase.apply(this,arguments);var e=(0,a.default)(this.option("focusedElement"));e.length&&this._toggleFocusClass(!1,e)},_getActiveItem:function(e){var t=(0,a.default)(this.option("focusedElement"));if(t.length)return t;var n=this.option("focusOnSelectedItem")?this.option("selectedIndex"):0,i=this._getActiveElement(),o=i.length-1;return n<0&&(n=e?o:0),i.eq(n)},_renderFocusTarget:function(){this.callBase.apply(this,arguments),this._refreshActiveDescendant()},_moveFocus:function(e){var t,n=this._getAvailableItems();switch(e){case de:case ae:t=this._prevItem(n);break;case ce:case re:t=this._nextItem(n);break;case le:t=this.option("rtlEnabled")?this._prevItem(n):this._nextItem(n);break;case se:t=this.option("rtlEnabled")?this._nextItem(n):this._prevItem(n);break;case he:t=n.first();break;case ue:t=n.last();break;default:return!1}0!==t.length&&this.option("focusedElement",(0,c.getPublicElement)(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),i=e.last(),o=(0,a.default)(e[n-1]),r=this.option("loopItemFocus");return 0===o.length&&r&&(o=i),o},_nextItem:function(e){var t=this._getActiveItem(!0),n=e.index(t),i=e.first(),o=(0,a.default)(e[n+1]),r=this.option("loopItemFocus");return 0===o.length&&r&&(o=i),o},_selectFocusedItem:function(e){this.selectItem(e)},_removeFocusedItem:function(e){var t=(0,a.default)(e);t.length&&(this._toggleFocusClass(!1,t),t.removeAttr("id"))},_refreshActiveDescendant:function(){this.setAria("activedescendant",""),this.setAria("activedescendant",this.getFocusedItemId())},_setFocusedItem:function(e){e&&e.length&&(e.attr("id",this.getFocusedItemId()),this._toggleFocusClass(!0,e),this.onFocusedItemChanged(this.getFocusedItemId()),this._refreshActiveDescendant(),this.option("selectOnFocus")&&this._selectFocusedItem(e))},_findItemElementByItem:function(e){var t=(0,a.default)(),n=this;return this.itemElements().each(function(){var i=(0,a.default)(this);if(i.data(n._itemDataKey())===e)return t=i,!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(oe);if(t&&t.length){var n=t[t.length-1],i=e.fullName.replace("."+n,""),o=this.option(i);return void this._itemOptionChanged(o,n,e.value,e.previousValue)}}switch(e.name){case"items":case"_itemAttributes":case"itemTemplateProperty":this._cleanRenderedItems(),this._invalidate();break;case"dataSource":this._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((0,a.default)(e.value));break;case"displayExpr":this._compileDisplayGetter(),this._initDefaultItemTemplate(),this._invalidate();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.slice())},_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(){(0,a.default)(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 j},_itemContentClass:function(){return this._itemClass()+U},_selectedItemClass:function(){return ee},_itemResponseWaitClass:function(){return te},_itemSelector:function(){return"."+this._itemClass()},_itemDataKey:function(){return X},_itemIndexKey:function(){return Z},_itemElements:function(){return this._itemContainer().find(this._itemSelector())},_initMarkup:function(){this.callBase(),this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged"),this.$element().addClass(K),this._prepareContent()},_prepareContent:d.default.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=S.default.addNamespace(L.default.name,this.NAME),n=S.default.addNamespace(T.default.down,this.NAME),i=this,o=new y.default(function(e){var t=e.event;i._itemPointerDownHandler(t)});s.default.off(this._itemContainer(),t,e),s.default.off(this._itemContainer(),n,e),s.default.on(this._itemContainer(),t,e,function(e){this._itemClickHandler(e)}.bind(this)),s.default.on(this._itemContainer(),n,e,function(e){o.execute({element:(0,a.default)(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=(0,a.default)(e.target),n=t.closest(this._itemElements()),i=this._closestFocusable(t);n.length&&i&&(0,m.inArray)(i.get(0),this._focusTarget())!==-1&&this.option("focusedElement",(0,c.getPublicElement)(n))}}.bind(this),this._itemFocusTimeout=setTimeout(this._forcePointerDownFocus.bind(this)))},_closestFocusable:function(e){if(e.is(M.default.focusable))return e;for(e=e.parent();e.length&&!h.default.isDocument(e.get(0));){if(e.is(M.default.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=S.default.addNamespace(H.default.name,this.NAME);s.default.off(e,n,t),s.default.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=S.default.addNamespace(W.default.name,this.NAME);s.default.off(e,n,t),s.default.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&&v.default.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),r=this._renderItemContent({index:e,itemData:t,container:(0,c.getPublicElement)(a),contentClass:this._itemContentClass(),defaultTemplateName:this.option("itemTemplate")}),s=this;return(0,f.when)(r).done(function(n){s._postprocessRenderItem({itemElement:o,itemContent:n,itemData:t,itemIndex:e}),s._executeItemRenderAction(e,t,(0,c.getPublicElement)(o))}),o},_getItemContent:function(e){var t=e.find("."+Y);return t.removeClass(Y),t},_attachItemClickEvent:function(e,t){e&&e.onClick&&s.default.on(t,L.default.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 i=(0,a.default)(this._createItemByTemplate(n,e));return i.hasClass(ie)?this._renderItemContentByNode(e,i):e.container},_renderItemContentByNode:function(e,t){return(0,a.default)(e.container).replaceWith(t),e.container=(0,c.getPublicElement)(t),this._addItemContentClasses(e),t},_addItemContentClasses:function(e){var t=[j+U,e.contentClass];(0,a.default)(e.container).addClass(t.join(" "))},_appendItemToContainer:function(e,t,n){t.appendTo(e)},_renderItemFrame:function(e,t,n,i){var o=(0,a.default)("<div>");return new this.constructor.ItemClass(o,this._itemOptions(),t||{}),i&&i.length?i.replaceWith(o):this._appendItemToContainer.call(this,n,o,e),o},_itemOptions:function(){var e=this;return{watchMethod:function(){return e.option("integrationOptions.watchMethod")},fieldGetter:function(t){var n=e.option(t+"Expr"),i=(0,$.compileGetter)(n);return i}}},_postprocessRenderItem:d.default.noop,_executeItemRenderAction:function(e,t,n){this._getItemRenderAction()({itemElement:n,itemIndex:e,itemData:t})},_setElementData:function(e,t,n){e.addClass([j,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||(0,a.default)("<div>").addClass("dx-empty-message"),this._$noData.appendTo(this._emptyMessageContainer()).html(t),this.setAria("label",t)),this.$element().toggleClass(ne,!n)},_itemDXEventHandler:function(e,t,n,i){this._itemEventHandler(e.target,t,(0,g.extend)(n,{event:e}),i)},_itemEventHandler:function(e,t,n,i){var o=this._createActionByOption(t,(0,g.extend)({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(e,o,n)},_itemEventHandlerByHandler:function(e,t,n,i){var o=this._createAction(t,(0,g.extend)({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(e,o,n)},_itemEventHandlerImpl:function(e,t,n){var i=this._closestItemElement((0,a.default)(e)),o=(0,g.extend)({},n);return t((0,g.extend)(n,this._extendActionArgs(i),o))},_extendActionArgs:function(e){return{itemElement:(0,c.getPublicElement)(e),itemIndex:this._itemElements().index(e),itemData:this._getItemData(e)}},_closestItemElement:function(e){return(0,a.default)(e).closest(this._itemSelector())},_getItemData:function(e){return(0,a.default)(e).data(this._itemDataKey())},_getSummaryItemsWidth:function(e,t){var n=0;return e&&v.default.each(e,function(e,i){n+=(0,a.default)(i).outerWidth(t||!1)}),n},getFocusedItemId:function(){return this._focusedItemId||(this._focusedItemId="dx-"+new b.default),this._focusedItemId},itemElements:function(){return this._itemElements()},itemsContainer:function(){return this._itemContainer()}}).include(A.default);pe.ItemClass=O.default,e.exports=pe},function(e,t,n){var i=n(185),o=n(36),a=n(3).each,r=n(1).isFunction,s=n(7).Deferred,l=n(147),d=function e(t,n,d){d=d||[],n=n||{};var c=function(e,t){return{name:e,args:t}},u=function(e){function u(e){switch(e.name){case"sortBy":return _=[e.args],!0;case"thenBy":if(!_)throw o.errors.Error("E4004");return _.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(c(t.length?"thenBy":"sortBy",this))})),g=t.concat(g)}var p,f,g,m,_,v=new s,w=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(d).concat(e);var y=f.optimize;for(y&&y(g);g.length;){if(m=g[0],!u(m)){if(_){g.unshift(c("multiSort",[_])),_=null;continue}if("enumerate"!==String(m.name)&&(!f[m.name]||f[m.name].apply(f,m.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(w)}catch(e){w(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,d.concat(c(i,arguments)))}}),a(["count","min","max","sum","avg","aggregate","enumerate"],function(){var e=String(this);h[e]=function(){return u.call(this,c(e,arguments))}}),h};e.exports=d},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(253),a=n(20),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,i):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)},removeSelectedItem:function(e){var t=this._processSelectedItem(e);this._addSelectionFilter(!0,t)},validate:function(){var e=this.options.key;if(e&&void 0===e())throw a.Error("E1042","Deferred selection")},_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,n);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},_removeFilterByIndex:function(e,t,n){var i;return i=t>0?e.splice(t-1,2)[0]:e.splice(t,2)[1]||"undefined",n&&"and"===i&&e.splice(0,e.length),i},_removeSameFilter:function(e,t,n,i){t=n?["!",t]:t;var o=this._findSubFilter(e,t);if(JSON.stringify(t)===JSON.stringify(e))return e.splice(0,e.length),"undefined";if(o>=0)return this._removeFilterByIndex(e,o,i);for(var a=0;a<e.length;a++){var r=Array.isArray(e[a])&&e[a].length>2&&this._removeSameFilter(e[a],t,!1,i);if(r)return e[a].length?1===e[a].length&&(e[a]=e[a][0]):this._removeFilterByIndex(e,a,i),r}},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(272).SelectionFilterCreator,d=s.when,c=s.Deferred,u=n(20),h=n(253);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++){
|
|
39
39
|
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 c,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),d=s.getCombinedFilter(o,a),u=[];t&&(u=d?r(this.options.selectedItems).filter(d).toArray():this.options.selectedItems.slice(0));var h=u.length?u:this.options.plainItems(!0).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(d,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 c;return d(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(112),o=n(5),a=n(184);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(),d={};"{"===l.charAt(0)?(d=i.$eval(l),s=n(d.execute)):s=n(r[t]),o.on(a,e,d,function(e){i.$apply(function(){s(i,{$event:e})})})}}])})},function(e,t,n){var i=n(19),o=n(184);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(77);i.registerExecutor({ngExpression:{execute:function(e){"string"==typeof e.action&&e.context.$eval(e.action)}}})},function(e,t,n){n(119);var i=n(69),o=n(14),a=n(82);if(n(69),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(119),n(186),n(69);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(69),l=n(34),d=n(1).isObject,c=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")},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||d(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 c(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(119),n(186),n(140),n(69);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(69),s=n(23),l=n(50);if(r&&r.formatCurrency){"en"===r.locale().locale&&(r.load(o,a),r.locale("en"));var d={},c=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=d[o],n||(n=d[o]=r.currencyFormatter(e,t)),n},u={_formatNumberCore:function(e,t,n){if("currency"===t){var i=n&&n.currency||s().defaultCurrency;return c(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 c(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){e.exports=n(49).DataSource},function(e,t,n){var i=n(5),o=n(13),a=n(6),r=a.getWindow(),s=n(10),l=s.abstract,d=n(36).errors,c=n(80),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 d.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=c.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(18),s=n(6).getWindow(),l=n(256),d=function(e){this.config=e,o="ms-appx:"===s.location.protocol,a=i(s.location.hostname)};d.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=d},function(e,t,n){n(255),DevExpress.data.ODataStore=n(257),DevExpress.data.ODataContext=n(387),DevExpress.data.utils=DevExpress.data.utils||{},DevExpress.data.utils.odata={},DevExpress.data.utils.odata.keyConverters=n(100).keyConverters,DevExpress.data.EdmLiteral=n(100).EdmLiteral;var i=n(100);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(148).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(257),d=n(258),c=n(7),u=c.when,h=c.Deferred;n(148);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=d.formatFunctionInvocationUrl(r,d.escapeServiceOperationParams(t,this.version())),t=null):"post"===n&&(i=t,t=null)),u(this._sendRequest(r,n,d.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(d.SharedMethods);e.exports=p},function(e,t,n){var i=n(212);n(254);var o=i.ui=n(477);o.themes=n(21),o.setTemplateEngine=n(478),o.dialog=n(273),o.notify=n(480),o.dxActionSheet=n(216),o.dxAutocomplete=n(481),o.dxBox=n(189),o.dxButton=n(38),o.dxButtonGroup=n(504),o.dxCalendar=n(259),o.dxCheckBox=n(133),o.dxColorBox=n(509),o.dxDateBox=n(204),o.dxDrawer=n(527),o.dxDeferRendering=n(532),o.dxDropDownBox=n(533),o.dxDropDownMenu=n(164),o.dxFileUploader=n(534),o.dxForm=n(165),o.dxGallery=n(539),o.dxHtmlEditor=n(540),o.dxList=n(106),o.dxLoadIndicator=n(90),o.dxLoadPanel=n(203),o.dxLookup=n(565),o.dxMap=n(566),o.dxMultiView=n(297),o.dxNavBar=n(570),o.dxNumberBox=n(127),o.dxOverlay=n(66),o.dxPopover=n(136),o.dxPopup=n(57),o.dxProgressBar=n(293),o.dxRadioGroup=n(326),o.dxRangeSlider=n(573),o.dxResizable=n(213),o.dxResponsiveBox=n(295),o.dxScrollView=n(196),o.dxSelectBox=n(108),o.dxSlider=n(303),o.dxSwitch=n(327),o.dxTabPanel=n(296),o.dxTabs=n(199),o.dxTagBox=n(328),o.dxTextArea=n(329),o.dxTextBox=n(101),o.dxTileView=n(575),o.dxToast=n(282),o.dxToolbar=n(260),o.dxTooltip=n(205),o.dxTrackBar=n(219),i.validationEngine=n(92),o.dxValidationSummary=n(220),o.dxValidationGroup=n(299),o.dxValidator=n(198),n(576),o.CollectionWidget=n(48),o.dxDropDownEditor=n(150),e.exports=o},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=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}}(),l=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in o)return o.value;var r=o.get;if(void 0!==r)return r.call(i)},d=n(2),c=i(d),u=n(4),h=n(1),p=n(3),f=n(0),g=n(73),m=n(390),_=i(m),v=n(585),w=i(v),y=n(15),x=i(y),b=n(111),C=i(b),k=n(21),I=i(k),S="dx-menu",D=S+"-no-icons",T="dx-menu-base",E=S+"-item",A=E+"-content",B=E+"-selected",O=E+"-wrapper",R=S+"-items-container",M=E+"-expanded",P=S+"-separator",F=S+"-last-group-item",V=E+"-has-text",H=E+"-has-icon",$=E+"-has-submenu",z=E+"-popout",L=z+"-container",N=E+"-text",W="single",q={show:50,hide:300},G=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),s(t,[{key:"_getDefaultOptions",value:function(){return(0,f.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultOptions",this).call(this),{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})}},{key:"_defaultOptionsRules",value:function(){return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_defaultOptionsRules",this).call(this).concat([{device:function(){return I.default.isAndroid5()},options:{useInkRipple:!0}}])}},{key:"_itemDataKey",value:function(){return"dxMenuItemDataKey"}},{key:"_itemClass",value:function(){return E}},{key:"_setAriaSelected",value:function(){}},{key:"_selectedItemClass",value:function(){return B}},{key:"_widgetClass",value:function(){return T}},{key:"_focusTarget",value:function(){return this._itemContainer()}},{key:"_clean",value:function(){this.option("focusedElement",null),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_clean",this).call(this)}},{key:"_supportedKeys",value:function(){var e=this,n=function(){var t=(0,c.default)(e.option("focusedElement"));t.length&&e._isSelectionEnabled()&&e.selectItem(t[0])};return(0,f.extend)(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_supportedKeys",this).call(this),{space:n,pageUp:u.noop,pageDown:u.noop})}},{key:"_isSelectionEnabled",value:function(){return this.option("selectionMode")===W}},{key:"_init",value:function(){this._activeStateUnit="."+E,l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this._renderSelectedItem(),this._initActions()}},{key:"_getTextContainer",value:function(e){var t=e.text,n=(0,c.default)("<span>").addClass(N),i=(0,h.isPlainObject)(e)?t:String(e);return t&&n.text(i)}},{key:"_getPopoutContainer",value:function(e){var t=e.items,n=void 0;if(t&&t.length){var i=(0,c.default)("<div>").addClass(z);n=(0,c.default)("<span>").addClass(L).append(i)}return n}},{key:"_getDataAdapterOptions",value:function(){return{rootValue:0,multipleSelection:!1,recursiveSelection:!1,recursiveExpansion:!1,searchValue:""}}},{key:"_selectByItem",value:function(e){if(e){var t=this._dataAdapter.getNodeByItem(e);this._dataAdapter.toggleSelection(t.internalFields.key,!0)}}},{key:"_renderSelectedItem",value: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);return i.selectable!==!1?n?void(n!==i.internalFields.item&&(this._dataAdapter.toggleSelection(t,!1),this._selectByItem(n))):void this.option("selectedItem",i.internalFields.item):void 0}},{key:"_initActions",value:function(){}},{key:"_initMarkup",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initMarkup",this).call(this),this._addCustomCssClass(this.$element()),this.option("useInkRipple")&&this._renderInkRipple()}},{key:"_renderInkRipple",value:function(){this._inkRipple=(0,g.render)()}},{key:"_toggleActiveState",value:function(e,n,i){if(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_toggleActiveState",this).apply(this,arguments),this._inkRipple){var o={element:e,event:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}}},{key:"_getShowSubmenuMode",value:function(){var e="onClick",t=this.option("showSubmenuMode");return t=(0,h.isObject)(t)?t.name:t,this._isDesktopDevice()?t:e}},{key:"_initSelectedItems",value:function(){}},{key:"_isDesktopDevice",value:function(){return"desktop"===x.default.real().deviceType}},{key:"_initEditStrategy",value:function(){var e=w.default;this._editStrategy=new e(this)}},{key:"_addCustomCssClass",value:function(e){e.addClass(this.option("cssClass"))}},{key:"_itemWrapperSelector",value:function(){return"."+O}},{key:"_hoverStartHandler",value:function(e){var t=this._getItemElementByEventArgs(e);t&&!this._isItemDisabled(t)&&(e.stopPropagation(),"onHover"===this._getShowSubmenuMode()&&(clearTimeout(this._showSubmenusTimeout),this._showSubmenusTimeout=setTimeout(this._showSubmenu.bind(this,t),this._getSubmenuDelay("show"))))}},{key:"_getAvailableItems",value:function(e){return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getAvailableItems",this).call(this,e).filter(function(){return"hidden"!==(0,c.default)(this).css("visibility")})}},{key:"_isItemDisabled",value:function(e){return this._disabledGetter(e.data(this._itemDataKey()))}},{key:"_showSubmenu",value:function(e){this._addExpandedClass(e)}},{key:"_addExpandedClass",value:function(e){(0,c.default)(e).addClass(M)}},{key:"_getSubmenuDelay",value:function(e){var t=this.option("showSubmenuMode"),n=t.delay;return(0,h.isDefined)(n)?(0,h.isObject)(n)?n[e]:n:q[e]}},{key:"_getItemElementByEventArgs",value:function(e){var t=(0,c.default)(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}},{key:"_hoverEndHandler",value:function(){clearTimeout(this._showSubmenusTimeout)}},{key:"_hasSubmenu",value:function(e){return e.internalFields.childrenKeys.length}},{key:"_renderContentImpl",value:function(){this._renderItems(this._dataAdapter.getRootNodes())}},{key:"_renderItems",value:function(e,t){var n=this;if(e.length){this.hasIcons=!1;var i=this._renderContainer(this.$element(),t),o=-1,a=-1;(0,p.each)(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&&n._renderSeparator(i),n._renderItem(e,t,i)}),this.hasIcons||i.addClass(D)}}},{key:"_renderContainer",value:function(e){return(0,c.default)("<ul>").appendTo(e).addClass(R)}},{key:"_createDOMElement",value:function(e){var t=(0,c.default)("<li>").appendTo(e).addClass(O);return t}},{key:"_renderItem",value:function(e,n,i,o){var a=this.option("items"),r=void 0;if(n.internalFields.item.visible!==!1){var s=o||this._createDOMElement(i);a[e+1]&&a[e+1].beginGroup&&s.addClass(F),r=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_renderItem",this).call(this,e,n.internalFields.item,s),n.internalFields.item===this.option("selectedItem")&&r.addClass(B),r.attr("tabIndex",-1),this._hasSubmenu(n)&&this.setAria("haspopup","true",r)}}},{key:"_renderItemFrame",value:function(e,n,i){var o=i.children("."+E);return o.length?o:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_renderItemFrame",this).apply(this,arguments)}},{key:"_refreshItem",value: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)}},{key:"_addContentClasses",value:function(e,t){var n=!!e.text&&!!e.text.length,i=!!e.icon,o=!!e.items&&!!e.items.length;t.toggleClass(V,n),t.toggleClass(H,i),this.hasIcons||(this.hasIcons=i),t.toggleClass($,o)}},{key:"_getItemContent",value:function(e){var n=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getItemContent",this).call(this,e);return n.length||(n=e.children("."+A)),n}},{key:"_postprocessRenderItem",value:function(e){var t=(0,c.default)(e.itemElement),n=this._dataAdapter.getSelectedNodesKeys();if(!n.length||!this._selectedGetter(e.itemData)||!this._isItemSelectable(e.itemData))return void this._setAriaSelected(t,"false");var i=this._dataAdapter.getNodeByItem(e.itemData);i.internalFields.key===n[0]?(t.addClass(this._selectedItemClass()),this._setAriaSelected(t,"true")):this._setAriaSelected(t,"false")}},{key:"_isItemSelectable",value:function(e){return e.selectable!==!1}},{key:"_renderSeparator",value:function(e){(0,c.default)("<li>").appendTo(e).addClass(P)}},{key:"_itemClickHandler",value:function(e){if(!e._skipHandling){var t=this._createAction(this._updateSubmenuVisibilityOnClick.bind(this));
|
|
40
40
|
this._itemDXEventHandler(e,"onItemClick",{},{afterExecute:t.bind(this)}),e._skipHandling=!0}}},{key:"_updateSubmenuVisibilityOnClick",value:function(e){this._updateSelectedItemOnClick(e),"onClick"===this._getShowSubmenuMode()&&this._addExpandedClass(e.args[0].itemElement)}},{key:"_updateSelectedItemOnClick",value:function(e){var t=e.args?e.args[0]:e;if(this._isItemSelectionAllowed(t.itemData)){var n=this._dataAdapter.getSelectedNodesKeys(),i=n.length&&this._dataAdapter.getNodeByKey(n[0]);i&&this._toggleItemSelection(i,!1),i&&i.internalFields.item===t.itemData?(this._fireSelectionChangeEvent(null,this.option("selectedItem")),this._setOptionSilent("selectedItem",null)):this.selectItem(t.itemData)}}},{key:"_isItemSelectionAllowed",value:function(e){var t=this._isSelectionEnabled()&&this.option("selectByClick");return!this._isContainerEmpty()&&t&&this._isItemSelectable(e)&&!this._itemsGetter(e)}},{key:"_isContainerEmpty",value:function(){return this._itemContainer().is(":empty")}},{key:"_syncSelectionOptions",value:function(){return(0,u.asyncNoop)()}},{key:"_optionChanged",value:function(e){switch(e.name){case"showSubmenuMode":break;case"selectedItem":var n=this._dataAdapter.getNodeByItem(e.value),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:l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_optionChanged",this).call(this,e)}}},{key:"_toggleItemSelection",value:function(e,t){var n=this._getElementByItem(e.internalFields.item);n&&(0,c.default)(n).toggleClass(B),this._dataAdapter.toggleSelection(e.internalFields.key,t)}},{key:"_getElementByItem",value:function(e){var t=this,n=void 0;return(0,p.each)(this._itemElements(),function(i,o){return(0,c.default)(o).data(t._itemDataKey())!==e||(n=o,!1)}),n}},{key:"_updateSelectedItems",value:function(e,t){(e||t)&&(this._updateSelection(t,e),this._fireSelectionChangeEvent(t,e))}},{key:"_fireSelectionChangeEvent",value:function(e,t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:[e],removedItems:[t]})}},{key:"selectItem",value:function(e){var t=e.nodeType?this._getItemData(e):e,n=this._dataAdapter.getSelectedNodesKeys()[0],i=this.option("selectedItem"),o=this._dataAdapter.getNodeByItem(t);o.internalFields.key!==n&&(n&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(n),!1),this._toggleItemSelection(o,!0),this._updateSelectedItems(i,t),this._setOptionSilent("selectedItem",t))}},{key:"unselectItem",value: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))}}]),t}(_.default);G.ItemClass=C.default,e.exports=G},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(22),s=n(0),l=n(3),d=n(15),c=i(d),u=n(89),h=i(u),p=n(583),f=i(p),g=n(48),m=i(g),_=n(62),v=i(_),w=n(1),y=n(4),x="dx-state-disabled",b=m.default.inherit({_getDefaultOptions:function(){return(0,s.extend)(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"===c.default.real().deviceType&&!c.default.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 f.default((0,s.extend)({dataAccessors:{getters:e.getters,setters:e.setters},items:this.option("items")},this._getDataAdapterOptions()))},_getDataAdapterOptions:y.noop,_initDynamicTemplates:function(){var e=this;this._defaultTemplates.item=new v.default(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?h.default.getImageContainer(e.icon):void 0},_getTextContainer:function(e){return(0,a.default)("<span>").text(e.text)},_getPopoutContainer:y.noop,_addContentClasses:y.noop,_initAccessors:function(){var e=this;(0,l.each)(this._getAccessors(),function(t,n){e._compileAccessor(n)}),this._compileDisplayGetter()},_getAccessors:function(){return["key","selected","items","disabled","parentId","expanded"]},_getChildNodes:function(e){var t=this,n=[];return(0,l.each)(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?(0,w.isFunction)(i)?(this[n]=function(e,t){e[i()]=t},void(this[t]=function(e){return e[i()]})):(this[t]=(0,r.compileGetter)(i),void(this[n]=(0,r.compileSetter)(i))):(this[t]=y.noop,void(this[n]=y.noop))},_createDataAdapterAccessors:function(){var e=this,t={getters:{},setters:{}};return(0,l.each)(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.getters.display=this._displayGetter?this._displayGetter:function(e){return e.text},t},_initMarkup:function(){this.callBase(),this._addWidgetClass()},_addWidgetClass:function(){this._focusTarget().addClass(this._widgetClass())},_widgetClass:y.noop,_renderItemFrame:function(e,t){var n=this.callBase.apply(this,arguments);return n.toggleClass(x,!!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=b},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(5),s=i(r),l=n(208),d=i(l),c=n(14),u=i(c),h=n(1),p=n(3),f=n(0),g="text-content",m="headers",_="nowrap",v="dx-header-row",w="dx-column-lines",y="context-menu-sort-asc",x="context-menu-sort-desc",b="context-menu-sort-none",C="dx-cell-focus-disabled",k="dx-visibility-hidden",I="dx-text-content-alignment-",S="dx-sort-indicator",D="dx-header-filter-indicator",T="dx-header-multi-row";e.exports={defaultOptions:function(){return{showColumnHeaders:!0,cellHintEnabled:!0}},views:{columnHeadersView:d.default.ColumnsView.inherit(function(){var e=function(e,n,i){var o,r=(0,a.default)("<div>").addClass(e.addWidgetPrefix(g));return e.setAria("role","presentation",r),t(e,n,i.column,r),o=e.option("showColumnLines"),r[o||"right"===i.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(g)),i.toggleClass(I+s,r>0).toggleClass(I+("left"===s?"right":"left"),r>0&&"center"===n.alignment).toggleClass(S,!!a.filter("."+e._getIndicatorClassName("sort")).length).toggleClass(D,!!a.filter("."+e._getIndicatorClassName("headerFilter")).length)};return{_createTable:function(){var e=this.callBase.apply(this,arguments);return s.default.on(e,"mousedown selectstart",this.createAction(function(e){var t=e.event;t.shiftKey&&t.preventDefault()})),e},_getDefaultTemplate:function(t){var n=this;return function(i,o){var a=t.command?i:e(n,i,o),r="expand"!==t.command&&t.caption;r?a.text(r):t.command&&i.html(" ")}},_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((0,f.extend)({},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(C),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.headerId),this.setAria("label",u.default.format("dxDataGrid-ariaColumn")+" "+t.column.caption,e)))},_createRow:function(e){var t=this.callBase(e).toggleClass(w,this.option("showColumnLines"));return"header"===e.rowType&&t.addClass(v),t},_renderCore:function(){var e=this,t=e.element();(!e._tableElement||e._dataController.isLoaded()||e._hasRowElements)&&(t.addClass(e.addWidgetPrefix(m)).toggleClass(e.addWidgetPrefix(_),!e.option("wordWrapEnabled")).empty(),e.setAria("role","presentation",t),e._updateContent(e._renderTable()),e.getRowCount()>1&&t.addClass(T),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("."+k).remove(),t=this._getIndicatorContainer(e),t.clone().addClass(k).css("float","").insertBefore(e.children("."+this.addWidgetPrefix(g))))},_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(."+k+")")},_isSortableElement:function(){return!0},getHeadersRowHeight:function(){var e=this._getTableElement(),t=e&&e.find("."+v);return t&&t.toArray().reduce(function(e,t){return e+(0,a.default)(t).height()},0)||0},getHeaderElement:function(e){var t=this.getColumnElements();return t&&t.eq(e)},getColumnElements:function(e,t){var n,i,o,r,s=this,l=s._columnsController,d=s.getRowCount();if(s.option("showColumnHeaders")){if(d>1&&(!(0,h.isDefined)(e)||(0,h.isDefined)(t)))return i=[],r=(0,h.isDefined)(t)?l.getChildrenByBandColumn(t,!0):l.getVisibleColumns(),(0,p.each)(r,function(t,a){n=(0,h.isDefined)(e)?e:l.getRowIndex(a.index),o=s._getCellElement(n,l.getVisibleIndex(a.index,n)),o&&i.push(o.get(0))}),(0,a.default)(i);if(!e||e<d)return s.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:y,onItemClick:t},{text:n.descendingText,value:"desc",disabled:"desc"===o.sortOrder,icon:x,onItemClick:t},{text:n.clearText,value:"none",disabled:!o.sortOrder,icon:b,onItemClick:t}]},getRowCount:function(){return this._columnsController&&this._columnsController.getRowCount()},setRowsOpacity:function(e,t,n){var i,o,a=this,r=a.getRowCount(),s=a._columnsController.getColumns(),l=s&&s[e],d=l&&l.isBand&&l.index,c=function(e,n){n.ownerBand===d&&(o.eq(e).css({opacity:t}),n.isBand&&a.setRowsOpacity(n.index,t,i+1))};if((0,h.isDefined)(d))for(n=n||0,i=n;i<r;i++)o=a.getCellElements(i),(0,p.each)(a.getColumns(i),c)}}}())}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(4),s=n(0),l=n(105),d="dx-column-indicators",c="dx-group-panel-item";e.exports={_applyColumnState:function(e){var t=this,n=this.option("rtlEnabled"),i=t._getColumnAlignment(e.column.alignment,n),o=(0,s.extend)(!0,{columnAlignment:i},e),r=o.rootElement.hasClass(c),l=t._createIndicatorContainer(o,r),d=(0,a.default)("<span>").addClass(t._getIndicatorClassName(e.name)),u=function(){return n?"left"===i?"right":"left":i};return o.container=l,o.indicator=d,t._renderIndicator(o),l[!r&&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:(0,l.getDefaultAlignment)(t)},_createIndicatorContainer:function(e,t){var n=this._getIndicatorContainer(e.rootElement),i="left"===e.columnAlignment?"right":"left";return n.length||(n=(0,a.default)("<div>").addClass(d)),this.setAria("role","presentation",n),n.css("float",e.showColumnLines&&!t?i:null)},_getIndicatorContainer:function(e){return e&&e.find("."+d)},_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&&a.length===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){function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(2),a=i(o),r=n(19),s=i(r),l=n(91),d=n(22),c=i(d),u=n(4),h=n(1),p=n(3),f=i(p),g=n(105),m=n(0),_=n(11),v=n(23),w=i(v),y=n(54),x=n(20),b=i(x),C=n(45),k=i(C),I=n(43),S=n(32),D=i(S),T=n(70),E=i(T),A=n(50),B=i(A),O=n(34),R=i(O),M=n(14),P=i(M),F=n(7),V=n(95),H=i(V),$=n(49),z=n(207),L=i(z),N=["filterValues","filterType","fixed","fixedPosition"],W=["visibleIndex","dataField","name","dataType","width","visible","sortOrder","lastSortOrder","sortIndex","groupIndex","filterValue","selectedFilterOperation","added"].concat(N),q={visibleWidth:!0,bestFitWidth:!0,bufferedFilterValue:!0},G="dx-command-expand",K=Number.MAX_SAFE_INTEGER||9007199254740991,j="groupExpand",U=/columns\[(\d+)\]\.?/gi,Y=1;e.exports={defaultOptions:function(){return{commonColumnSettings:{allowFiltering:!0,allowHiding:!0,allowSorting:!0,allowEditing:!0,encodeHtml:!0,trueText:P.default.format("dxDataGrid-trueText"),falseText:P.default.format("dxDataGrid-falseText")},allowColumnReordering:!1,allowColumnResizing:!1,columnResizingMode:"nextColumn",columnMinWidth:void 0,columnWidth:void 0,adaptColumnWidthByRatio:!0,columns:void 0,regenerateColumnsByVisibleItems:!1,customizeColumns:null,dateSerializationFormat:void 0}},controllers:{columns:k.default.Controller.inherit(function(){var e={visible:!0,showInColumnChooser:!0},t={number:["=","<>","<",">","<=",">=","between"],string:["contains","notcontains","startswith","endswith","=","<>"],date:["=","<>","<",">","<=",">=","between"],datetime:["=","<>","<",">","<=",">=","between"]},n={visibleIndex:!0,groupIndex:!0,grouped:!0,sortIndex:!0,sortOrder:!0},i="group",o="columnChooser",r=function(e){e.filterOperations=e.defaultFilterOperations},d=function(t,n,i,o){var a,s={};if(n){(0,h.isString)(n)&&(n={dataField:n});var l=void 0;return n.command?l=(0,y.deepExtendArraySafe)(s,n):(s=t.getCommonSettings(n),i&&i.name&&i.dataField&&(n=(0,m.extend)({},n,{dataField:i.dataField})),a=t._createCalculatedColumnOptions(n,o),l=(0,y.deepExtendArraySafe)({headerId:"dx-col-"+Y++},e),(0,y.deepExtendArraySafe)(l,s),(0,y.deepExtendArraySafe)(l,a),(0,y.deepExtendArraySafe)(l,n),(0,y.deepExtendArraySafe)(l,{selector:null})),n.filterOperations===n.defaultFilterOperations&&r(l),l}},p=function e(t,n,i){var o=[];return n&&f.default.each(n,function(n,a){var r=t._columnsUserState&&ne(a,t._columnsUserState[n])&&t._columnsUserState[n],s=d(t,a,r,i);s&&(i&&(s.ownerBand=i),o.push(s),s.isBand&&(o=o.concat(e(t,s.columns,s)),delete s.columns))}),o},v=function(e,t){for(var n=[],i=t[e];i;)n.unshift(i),e=i.index,i=t[e];return n},x=function e(t,n,i){var o,a=[],r=n[t];if(r)for(var s=0;s<r.length;s++)o=r[s],(0,h.isDefined)(o.groupIndex)&&!o.showWhenGrouped||(a.push(o),i&&o.isBand&&(a=a.concat(e(o.index,n,i))));return a},C=function(e,t){for(var n,i=function(e){var t=n?n.index:void 0;return e.ownerBand===t},o=e._columns.filter(i),a=0;a<t.length;a++)n=o[t[a]],n&&(o=e._columns.filter(i));return n},k=function(e,t){for(var n=[],i=e.getBandColumnsCache(),o=function(e){return e.ownerBand===t.ownerBand},a=e._columns.filter(o);a.length&&a.indexOf(t)!==-1;)n.unshift("columns["+a.indexOf(t)+"]"),t=i.columnParentByIndex[t.index],a=t?e._columns.filter(o):[];return n.join(".")},S=function e(t,n){var i=0,o=t.getChildrenByBandColumn(n,!0);return f.default.each(o,function(n,o){o.isBand?(o.colspan=o.colspan||e(t,o.index),i+=o.colspan||1):i+=1}),i},T=function(e,t,n){var i,o,a,r=e.getRowCount();for(i=0;i<t.length;i++)o=t[i],(o.visible||o.command)&&(o.isBand&&(o.colspan=o.colspan||S(e,o.index)),o.isBand&&o.colspan||(a=r-(o.command||(0,h.isDefined)(o.groupIndex)?0:v(o.index,n.columnParentByIndex).length),a>1&&(o.rowspan=a)))},A=function(e){var t=(0,h.type)(e);return"string"!==t&&"boolean"!==t&&"number"!==t&&"date"!==t&&"object"!==t&&(t=void 0),t},O=function(e,t){switch(e){case"date":case"datetime":return E.default.getDateSerializationFormat(t);case"number":if((0,h.isString)(t))return"string";if((0,h.isNumeric)(t))return null}},M=function(e,t){e.deserializeValue||((0,I.isDateType)(t)&&(e.deserializeValue=function(e){return E.default.deserializeDate(e)},e.serializeValue=function(e){return(0,h.isString)(e)?e:E.default.serializeDate(e,this.serializationFormat)}),"number"===t&&(e.deserializeValue=function(e){var t=parseFloat(e);return isNaN(t)?e:t},e.serializeValue=function(e,t){return"filter"===t?e:(0,h.isDefined)(e)&&"string"===this.serializationFormat?e.toString():e}))},P=function(e,t){switch(e){case"number":return"right";case"boolean":return"center";default:return(0,g.getDefaultAlignment)(t)}},V=function(e){if("boolean"===e)return function(e){return e.value===!0?this.trueText||"true":e.value===!1?this.falseText||"false":e.valueText||""}},z=function(e,t){var n,i,o=e._getFirstItems(t),a={},r=[];for(i=0;i<o.length;i++)if(o[i])for(n in o[i])(0,h.isFunction)(o[i][n])&&!(0,l.isWrapped)(o[i][n])||(a[n]=!0);for(n in a)if(0!==n.indexOf("__")){var s=d(e,n);r.push(s)}return r},X=function(e){f.default.each(e._columns,function(e,t){t.index=e}),f.default.each(e._columns,function(e,t){(0,h.isObject)(t.ownerBand)&&(t.ownerBand=t.ownerBand.index)}),f.default.each(e._commandColumns,function(e,t){t.index=-(e+1)})},Z=function(e,t){(0,_.normalizeIndexes)(e._columns,"groupIndex",t,function(e){var t=e.grouped;return delete e.grouped,t})},Q=function(e,t){f.default.each(e._columns,function(e,t){(0,h.isDefined)(t.sortIndex)&&!he(t.sortOrder)&&delete t.sortIndex}),(0,_.normalizeIndexes)(e._columns,"sortIndex",t,function(e){return!(0,h.isDefined)(e.groupIndex)&&he(e.sortOrder)})},J=function(e,t){var n,i,o,a,r,s={},l=[],d=e.getBandColumnsCache(),c=e._columns.filter(function(e){return!e.command});for(n=0;n<c.length;n++)o=c[n],r=v(n,d.columnParentByIndex),r.length?(a=r[r.length-1].index,s[a]=s[a]||[],s[a].push(o)):l.push(o);for(i in s)(0,_.normalizeIndexes)(s[i],"visibleIndex",t);(0,_.normalizeIndexes)(l,"visibleIndex",t)},ee=function(e,t,n){var a,r=(0,h.isObject)(t)?t.rowIndex:null,s=n===i?e.getGroupColumns():n===o?e.getChooserColumns():e.getVisibleColumns(r);return t=(0,h.isObject)(t)?t.columnIndex:t,a=s[t],a&&a.type===j&&(a=e._columns.filter(function(e){return a.type===e.type})[0]||a),a&&(0,h.isDefined)(a.index)?a.index:-1},te=function(e,t,n){var i,o=e.getGroupColumns();if(n>=0)for(i=0;i<o.length;i++)o[i].groupIndex>=n&&o[i].groupIndex++;else for(n=0,i=0;i<o.length;i++)n=Math.max(n,o[i].groupIndex+1);return n},ne=function(e,t){return e&&t&&t.name===e.name&&(t.dataField===e.dataField||e.name)},ie=function(e){function t(e,t){var n;if(t)for(var i=0;i<W.length;i++)n=W[i],(0,_.inArray)(n,l)>=0||("dataType"===n?e[n]=e[n]||t[n]:(0,_.inArray)(n,N)>=0?n in t&&(e[n]=t[n]):("selectedFilterOperation"===n&&t[n]&&(e.defaultSelectedFilterOperation=e[n]||null),e[n]=t[n]))}function n(e,t){for(var n=t.name||t.dataField,i=u[n]||0,o=0;o<e.length;o++)if(ne(t,e[o])){if(!i)return u[n]=u[n]||0,u[n]++,o;i--}return-1}var i,o,a,r,s=e._columnsUserState,l=e._ignoreColumnOptionNames||[],c=e._columns,u={},f=[],g=!0,m=[];if(s){for(r=0;r<c.length;r++)a=n(s,c[r]),g=g&&a>=0,m.push(a);for(r=0;r<c.length;r++)i=c[r],a=m[r],(e._hasUserState||g)&&t(i,s[a]),a>=0&&(0,h.isDefined)(s[a].initialIndex)?f[a]=i:f.push(i);var v=!1;for(r=0;r<s.length;r++)o=s[r],o.added&&n(c,o)<0&&(i=d(e,o.added),t(i,o),f.push(i),o.added.columns&&(v=!0));v&&(X(e),f=p(e,f)),re(e,f)}},oe=function(e,t){X(e),Z(e,t),Q(e,t),J(e,t)},ae=function(e){e.resetColumnsCache()},re=function(e,t){e._columns=t,ae(e),e.updateColumnDataTypes()},se=function(e,t,n,i){var o=e._columnChanges||{optionNames:{length:0},changeTypes:{length:0},columnIndex:i};n=n||"all",n=n.split(".")[0];var a=o.changeTypes;t&&!a[t]&&(a[t]=!0,a.length++);var r=o.optionNames;n&&!r[n]&&(r[n]=!0,r.length++),void 0!==i&&i===o.columnIndex||delete o.columnIndex,e._columnChanges=o,ae(e)},le=function(e){var t=e.option("onColumnsChanging"),n=e._columnChanges,i=["dataField","lookup","dataType","columns"],o=function(e){return e&&i.some(function(t){return e[t]})};e.isInitialized()&&!e._updateLockCount&&n&&(t&&(e._updateLockCount++,t((0,m.extend)({component:e.component},n)),e._updateLockCount--),e._columnChanges=void 0,o(n.optionNames)?e.reinit():e.columnsChanged.fire(n))},de=function(e,t,n){var i=n>=0;t>=0?i||(e.lastSortOrder=e.sortOrder):e.sortOrder=e.lastSortOrder},ce=function(e,t){var n=t.value,i=t.optionName,o=t.prevValue,a=t.fullOptionName;q[i]||(e._skipProcessingColumnsChange=!0,e.component._notifyOptionChanged(a+"."+i,n,o),e._skipProcessingColumnsChange=!1)},ue=function(e,t,n,i,o){var a,r,s,l,d,u,p=c.default.compileGetter(n),f=t.index;return 3===arguments.length?p(t,{functionsAsIs:!0}):(a=p(t,{functionsAsIs:!0}),void(a!==i&&("groupIndex"===n||"calculateGroupValue"===n?(l="grouping",de(t,i,a)):l="sortIndex"===n||"sortOrder"===n||"calculateSortValue"===n?"sorting":"columns",r=c.default.compileSetter(n),r(t,i,{functionsAsIs:!0}),d=k(e,t),d&&ce(e,{fullOptionName:d,optionName:n,value:i,prevValue:a}),(0,h.isDefined)(a)||(0,h.isDefined)(i)||0===n.indexOf("buffer")||(o=!0),o?ae(e):((0,_.inArray)(n,W)<0&&"visibleWidth"!==n&&(s=e.option("columns"),u=e.getColumnByPath(d,s),(0,h.isString)(u)&&(u=s[f]={dataField:u}),u&&ne(u,t)&&r(u,i,{functionsAsIs:!0})),se(e,l,n,f)))))},he=function(e){return"asc"===e||"desc"===e},pe=function(e){var t=e._getExpandColumnOptions();e.addCommandColumn(t)},fe=function(e,t){var n,i,o=this.dataField.split("."),a=o.length-1;for(this.serializeValue&&(t=this.serializeValue(t)),i=0;i<a;i++)n=o[i],e=e[n]=e[n]||{};e[o[a]]=t},ge=function e(t,n,i){var o=[];return n=n||0,t[n]&&f.default.each(t[n],function(a,r){(r.ownerBand===i||(0,h.isDefined)(r.groupIndex))&&(r.isBand&&r.colspan?o.push.apply(o,e(t,n+1,r.index)):(!r.command||n<1)&&o.push(r))}),o},me=function(e,t,n){var i=1,o=e.getBandColumnsCache(),a=o.columnParentByIndex;return e._columns.forEach(function(e){var t=v(e.index,a),n=t.filter(function(e){return!e.visible});e.visible&&!n.length&&(i=Math.max(i,t.length+1))}),i},_e=function(e,t){var n=e.option("rtlEnabled");return t.command&&!be(e,t)||!t.fixedPosition?n?"right":"left":t.fixedPosition},ve=function(e,t,n,i){var o,a=this.getRowCount(),r=e[i]&&e[i].rowspan,s=t.filter(function(e){return e.type===n});return e.forEach(function(t,i){t.type===n&&(o=i,r=e[i+1]?e[i+1].rowspan:a)}),r>1&&(s=f.default.map(s,function(e){return(0,m.extend)({},e,{rowspan:r})})),s.unshift.apply(s,(0,h.isDefined)(o)?[o,1]:[i,0]),e.splice.apply(e,s),r||1},we=function(e){var t;for(t=0;e>1;t++)e/=10;return t},ye=function(e,t){for(var n=e?e.toString():"0";n.length<t;)n="0"+n;return n},xe=function(e,t,n,i){var o,a,r,s,l=t.slice().map(function(e){return(0,m.extend)({},e)}),d=e._isColumnFixing(),c=n.slice().map(function(e){return(0,m.extend)({fixed:d},e)}),u=function(e){return n.reduce(function(t,n,o){var a=i&&e.type===j?"expand":e.type;return n.type===a||n.command===e.command?o:t},-1)},h=function(e){return e.command!==n[s].command};for(o=0;o<t.length;o++)a=t[o],s=a&&(a.type||a.command)?u(a):-1,s>=0&&(i?(l[o]=(0,m.extend)({fixed:d},n[s],a),a.type!==j&&(c=c.filter(h))):(r={visibleIndex:a.visibleIndex,index:a.index,headerId:a.headerId,allowFixing:0===a.groupIndex,allowReordering:0===a.groupIndex,groupIndex:a.groupIndex},l[o]=(0,m.extend)({},a,n[s],a.type===j&&r)));return t.length&&i&&c.length&&(l=l.concat(c)),l},be=function(e,t){return!!e._columns.filter(function(e){return e.type===t.type}).length},Ce=function(e,t){return(0,h.isDefined)(t.fixed)||!t.type?t.fixed:e._isColumnFixing()};return{_getExpandColumnOptions:function(){return{type:"expand",command:"expand",width:"auto",cssClass:G,allowEditing:!1,allowGrouping:!1,allowSorting:!1,allowResizing:!1,allowReordering:!1,allowHiding:!1}},_getFirstItems:function(e){var t,n=[],i=function e(t,n){var i,o;if(!t||!n)return t;for(i=0;i<t.length;i++)if(o=e(t[i].items||t[i].collapsedItems,n-1),o&&o.length)return o};return e&&e.items().length>0&&(t=(0,I.normalizeSortingInfo)(e.group()).length,n=i(e.items(),t)||[]),n},_endUpdateCore:function(){!this._skipProcessingColumnsChange&&le(this)},init:function(){var e=this,t=e.option("columns");e._commandColumns=e._commandColumns||[],e._columns=e._columns||[],e._isColumnsFromOptions=!!t,e._isColumnsFromOptions?(re(e,t?p(e,t):[]),ie(e)):re(e,e._columnsUserState?p(e,e._columnsUserState):e._columns),pe(e),e._dataSourceApplied?e.applyDataSource(e._dataSource,!0):oe(e)},callbackNames:function(){return["columnsChanged"]},getColumnByPath:function(e,t){var n,i=this,o=[];return e.replace(U,function(e,t){return o.push(parseInt(t)),""}),o.length&&(n=t?o.reduce(function(e,t){return e&&e.columns&&e.columns[t]},{columns:t}):C(i,o)),n},optionChanged:function(e){switch(e.name){case"adaptColumnWidthByRatio":e.handled=!0;break;case"columns":e.handled=!0,this._skipProcessingColumnsChange?this._updateRequireResize(e):e.name===e.fullName?(this._columnsUserState=null,this._ignoreColumnOptionNames=null,this.init()):this._columnOptionChanged(e);break;case"commonColumnSettings":case"columnAutoWidth":case"allowColumnResizing":case"allowColumnReordering":case"columnFixing":case"grouping":case"groupPanel":case"regenerateColumnsByVisibleItems":case"customizeColumns":case"editing":case"columnHidingEnabled":case"dateSerializationFormat":case"columnResizingMode":case"columnMinWidth":case"columnWidth":e.handled=!0,e.fullName&&0===e.fullName.indexOf("editing.popup")||this.reinit();break;case"rtlEnabled":this.reinit();break;default:this.callBase(e)}},_columnOptionChanged:function(e){var t={},n=this.getColumnByPath(e.fullName),i=e.fullName.replace(U,"");n&&(i?t[i]=e.value:t=e.value,this.columnOption(n.index,t))},_updateRequireResize:function(e){var t=this.component;"width"===e.fullName.replace(U,"")&&t._updateLockCount&&(t._requireResize=!0)},publicMethods:function(){return["addColumn","deleteColumn","columnOption","columnCount","clearSorting","clearGrouping","getVisibleColumns"]},applyDataSource:function(e,t){var n=this,i=e&&e.isLoaded();if(n._dataSource=e,!n._dataSourceApplied||0===n._dataSourceColumnsCount||t||n.option("regenerateColumnsByVisibleItems")){if(i){if(!n._isColumnsFromOptions){var o=z(n,e);o.length&&(re(n,o),n._dataSourceColumnsCount=n._columns.length,ie(n))}return n.updateColumns(e,t)}n._dataSourceApplied=!1}else if(i&&!n.isAllDataTypesDefined(!0)&&n.updateColumnDataTypes(e))return se(n,"columns"),le(n),(new F.Deferred).reject().promise()},reset:function(){this._dataSourceApplied=!1,this._dataSourceColumnsCount=void 0,this.reinit()},resetColumnsCache:function(){var e=this;e._visibleColumns=void 0,e._fixedColumns=void 0,e._rowCount=void 0,e._bandColumnsCache=void 0},reinit:function(){this._columnsUserState=this.getUserState(),this._ignoreColumnOptionNames=null,this.init()},isInitialized:function(){return!!this._columns.length||!!this.option("columns")},isDataSourceApplied:function(){return this._dataSourceApplied},getCommonSettings:function(e){var t=(!e||!e.type)&&this.option("commonColumnSettings")||{},n=this.option("grouping")||{},i=this.option("groupPanel")||{};return(0,m.extend)({allowFixing:this.option("columnFixing.enabled"),allowResizing:this.option("allowColumnResizing")||void 0,allowReordering:this.option("allowColumnReordering"),minWidth:this.option("columnMinWidth"),width:this.option("columnWidth"),autoExpandGroup:n.autoExpandAll,allowCollapsing:n.allowCollapsing,allowGrouping:i.allowColumnDragging&&i.visible||n.contextMenuEnabled},t)},isColumnOptionUsed:function(e){for(var t=0;t<this._columns.length;t++)if(this._columns[t][e])return!0},isAllDataTypesDefined:function(e){var t,n=this._columns;if(!n.length)return!1;for(t=0;t<n.length;t++)if((n[t].dataField||n[t].calculateCellValue!==n[t].defaultCalculateCellValue)&&(!n[t].dataType||e&&n[t].deserializeValue&&void 0===n[t].serializationFormat))return!1;return!0},getColumns:function(){return this._columns},isBandColumnsUsed:function(){return this.getColumns().some(function(e){return e.isBand})},getGroupColumns:function(){var e=[];return f.default.each(this._columns,function(){var t=this;(0,h.isDefined)(t.groupIndex)&&(e[t.groupIndex]=t)}),e},getVisibleColumns:function(e){return this._visibleColumns=this._visibleColumns||this._getVisibleColumnsCore(),
|